Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use ra_syntax::{AstNode, File, SyntaxNodeRef, SyntaxKind}; | |
use regex::Regex; | |
use rustc_lexer::{tokenize, Token, TokenKind}; | |
/* | |
* [dependencies] | |
* ra_syntax = "0.1.0" | |
* regex = "1.4.1" | |
* rustc_lexer = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original: https://github.com/emilybache/Tennis-Refactoring-Kata/blob/master/java/src/main/java/TennisGame1.java | |
package com.example.tennis; | |
public class TennisScore { | |
public static class GamesWon { | |
final int player1; | |
final int player2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Original: https://github.com/emilybache/Tennis-Refactoring-Kata/blob/master/java/src/main/java/TennisGame1.java | |
package com.example.tennis; | |
public class TennisScore { | |
public String announceScore(int m_score1, int m_score2) { | |
String score = ""; | |
int tempScore = 0; | |
if (m_score1 == m_score2) { | |
switch (m_score1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import Bio | |
from Bio import SwissProt | |
#Complementary base pairs | |
#Used when "inverting" sequence | |
base_pairs = { | |
"A" : "T" , | |
"C" : "G" , |