hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
607e423547b6b2c487f14348f41a330ebc055a16 | 2,904 | py | Python | scanner.py | thomas-/rhubarb | 5a5d2901225643cc5a0b9289f07062dd42d37e4a | [
"Apache-2.0"
] | null | null | null | scanner.py | thomas-/rhubarb | 5a5d2901225643cc5a0b9289f07062dd42d37e4a | [
"Apache-2.0"
] | 1 | 2021-03-19T22:51:09.000Z | 2021-03-19T22:51:09.000Z | scanner.py | thomas-/rhubarb | 5a5d2901225643cc5a0b9289f07062dd42d37e4a | [
"Apache-2.0"
] | null | null | null | from flask import Flask
import sys
import os
import fnmatch
from mutagen.mp3 import EasyMP3 as MP3
from rhubarb import db, Track, Playlist
# from hashlib import sha256
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///music.db'
def add_mp3(db, path):
try:
audio ... | 32.629213 | 107 | 0.552342 | 364 | 2,904 | 4.340659 | 0.313187 | 0.013291 | 0.041772 | 0.01519 | 0.120253 | 0.073418 | 0.073418 | 0.073418 | 0.073418 | 0.073418 | 0 | 0.01626 | 0.322314 | 2,904 | 88 | 108 | 33 | 0.786585 | 0.047521 | 0 | 0.197183 | 0 | 0 | 0.120419 | 0.008601 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084507 | null | null | 0.070423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
608009669307f3ddf833443c38937fc74f987889 | 1,313 | py | Python | projects/lipid/misc/kap_a.py | kmckiern/scripts | acc8326ca653d804ee06752af9e7f5b011fc6e0e | [
"MIT"
] | 2 | 2015-04-27T01:57:43.000Z | 2015-05-01T18:18:56.000Z | projects/lipid/misc/kap_a.py | kmckiern/scripts | acc8326ca653d804ee06752af9e7f5b011fc6e0e | [
"MIT"
] | null | null | null | projects/lipid/misc/kap_a.py | kmckiern/scripts | acc8326ca653d804ee06752af9e7f5b011fc6e0e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--xvg')
parser.add_argument('--col')
parser.add_argument('--temp')
parser.add_argument('--nl', default=128)
parser.add_argument('--save_al', action='store_true')
args = parser.parse_args()
k = ... | 23.035088 | 56 | 0.584158 | 194 | 1,313 | 3.835052 | 0.402062 | 0.060484 | 0.114247 | 0.048387 | 0.05914 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043744 | 0.251333 | 1,313 | 56 | 57 | 23.446429 | 0.713123 | 0.056359 | 0 | 0 | 0 | 0 | 0.049353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
608573b14d47a191b9dc34ded9c410a23aa31990 | 504 | py | Python | projectflow/blocks.py | Th3RedMan/python-course | fa5e73903d319aeca89af91aa41a047c5158993c | [
"MIT"
] | null | null | null | projectflow/blocks.py | Th3RedMan/python-course | fa5e73903d319aeca89af91aa41a047c5158993c | [
"MIT"
] | null | null | null | projectflow/blocks.py | Th3RedMan/python-course | fa5e73903d319aeca89af91aa41a047c5158993c | [
"MIT"
] | null | null | null | name = input("Please enter your first name: ")
age = int(input("How old are you, {0}? ".format(name)))
print(age)
# if age >= 18:
# print("You are old enough to vote")
# print("Please put an X in the box")
# else:
# print("Please come back in {0} years".format(18-age))
if age < 18:
print("Please come back in {... | 28 | 57 | 0.638889 | 90 | 504 | 3.577778 | 0.422222 | 0.136646 | 0.049689 | 0.062112 | 0.60559 | 0.552795 | 0.552795 | 0.552795 | 0.552795 | 0.552795 | 0 | 0.035 | 0.206349 | 504 | 17 | 58 | 29.647059 | 0.77 | 0.293651 | 0 | 0 | 0 | 0 | 0.497143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6085a29a348e7a5b6a6699dbf443ec3d43459b8d | 1,537 | py | Python | BinaryTree/TreeTraversal.py | rdppathak/DataStructuresPython | bf560f827a63bdc5f0b95992a71032ba7553aa7c | [
"Apache-2.0"
] | null | null | null | BinaryTree/TreeTraversal.py | rdppathak/DataStructuresPython | bf560f827a63bdc5f0b95992a71032ba7553aa7c | [
"Apache-2.0"
] | null | null | null | BinaryTree/TreeTraversal.py | rdppathak/DataStructuresPython | bf560f827a63bdc5f0b95992a71032ba7553aa7c | [
"Apache-2.0"
] | null | null | null | import Queue
class Graph:
def __init__(self, number_of_vertices):
self.number_of_vertices = number_of_vertices
self.vertex_details = {}
self.visited = {}
def add_edge(self, vertex_label, edge):
if self.vertex_details.has_key(vertex_label):
self.vertex_details[vertex_label].append(edge)
else:
self.... | 24.015625 | 69 | 0.720234 | 232 | 1,537 | 4.465517 | 0.206897 | 0.086873 | 0.114865 | 0.088803 | 0.319498 | 0.303089 | 0.227799 | 0.227799 | 0.227799 | 0.133205 | 0 | 0.016241 | 0.158751 | 1,537 | 63 | 70 | 24.396825 | 0.784996 | 0.027977 | 0 | 0.125 | 0 | 0 | 0.034251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020833 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
608a5c02150b48238c4e6216be9a8edf8f28cc37 | 669 | py | Python | openapi_model_generator/generators/models/generator.py | sewi2/python-mdm-models-generator- | ac0c572f3ecd222919d6c8619e0e609f2cebd52a | [
"BSD-3-Clause"
] | null | null | null | openapi_model_generator/generators/models/generator.py | sewi2/python-mdm-models-generator- | ac0c572f3ecd222919d6c8619e0e609f2cebd52a | [
"BSD-3-Clause"
] | null | null | null | openapi_model_generator/generators/models/generator.py | sewi2/python-mdm-models-generator- | ac0c572f3ecd222919d6c8619e0e609f2cebd52a | [
"BSD-3-Clause"
] | null | null | null | from typing import Union
from openapi_model_generator.generators.base_filters import (
to_field_name,
)
from openapi_model_generator.generators.models.fields import ModelFieldGenerator
from openapi_model_generator.renderer import TemplateRenderer
class ModelGenerator:
TEMPLATE_NAME = 'base_models'
FILTER... | 30.409091 | 84 | 0.759342 | 77 | 669 | 6.25974 | 0.441558 | 0.068465 | 0.099585 | 0.155602 | 0.145228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16293 | 669 | 21 | 85 | 31.857143 | 0.860714 | 0.043348 | 0 | 0 | 0 | 0 | 0.059561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.0625 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
608bcdb634c8839db22bde3c9c271da6933f4fb8 | 1,741 | py | Python | synth_gen/charCombinations.py | sg130/hindi-htr | ca3258f4dcf14dd1670fa32d40d1d0567a622cbf | [
"MIT"
] | null | null | null | synth_gen/charCombinations.py | sg130/hindi-htr | ca3258f4dcf14dd1670fa32d40d1d0567a622cbf | [
"MIT"
] | null | null | null | synth_gen/charCombinations.py | sg130/hindi-htr | ca3258f4dcf14dd1670fa32d40d1d0567a622cbf | [
"MIT"
] | null | null | null | import os, sys, random
sys.path.append("../utils")
import numpy as np
def charCombinations(wordRepo, charFolders, copies):
wordRep = open(wordRepo, 'r', encoding = 'utf-8')
conjunct = ['091C_094D', '0915_094D', '0924_094D']
wordComb = []
for word in wordRep:
charList = []
if word[0] != '#' and len(word)... | 27.203125 | 82 | 0.589316 | 225 | 1,741 | 4.515556 | 0.328889 | 0.075787 | 0.055118 | 0.033465 | 0.070866 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 0.033673 | 0.266514 | 1,741 | 64 | 83 | 27.203125 | 0.761942 | 0 | 0 | 0.090909 | 0 | 0 | 0.055683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
608cb5f69c1d8472767b85a7678c12765900543f | 558 | py | Python | third_libs/stylegan_ops/setup.py | LizhenWangT/FaceVerse | bb4a5d3e52fb10b34bbe94f055ff637095bf9152 | [
"BSD-2-Clause",
"MIT"
] | 20 | 2022-03-02T06:46:33.000Z | 2022-03-30T01:36:58.000Z | third_libs/stylegan_ops/setup.py | LizhenWangT/FaceVerse | bb4a5d3e52fb10b34bbe94f055ff637095bf9152 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | third_libs/stylegan_ops/setup.py | LizhenWangT/FaceVerse | bb4a5d3e52fb10b34bbe94f055ff637095bf9152 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | from setuptools import setup, Extension
from torch.utils import cpp_extension
import os
setup(name='upfirdn2d',
ext_modules=[cpp_extension.CUDAExtension('upfirdn2d', [
os.path.join("upfirdn2d.cpp"),
os.path.join("upfirdn2d_kernel.cu")])],
cmdclass={'build_ext': cpp_extension.BuildExtension}... | 34.875 | 61 | 0.704301 | 69 | 558 | 5.478261 | 0.347826 | 0.15873 | 0.10582 | 0.116402 | 0.566138 | 0.380952 | 0.26455 | 0.26455 | 0 | 0 | 0 | 0.008421 | 0.148746 | 558 | 15 | 62 | 37.2 | 0.787368 | 0 | 0 | 0.153846 | 0 | 0 | 0.215054 | 0.043011 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
608ef008efc30d9585b8a620d912e3d001c64269 | 3,660 | py | Python | src/Python/Texture/AnimateVectors.py | sankhesh/vtk-examples | 2d50e847ad62ce0eb71b66c029ad8abb302cd39f | [
"Apache-2.0"
] | null | null | null | src/Python/Texture/AnimateVectors.py | sankhesh/vtk-examples | 2d50e847ad62ce0eb71b66c029ad8abb302cd39f | [
"Apache-2.0"
] | null | null | null | src/Python/Texture/AnimateVectors.py | sankhesh/vtk-examples | 2d50e847ad62ce0eb71b66c029ad8abb302cd39f | [
"Apache-2.0"
] | 1 | 2022-02-16T08:20:41.000Z | 2022-02-16T08:20:41.000Z | #!/usr/bin/env python
import vtk
def main():
fileNames = [''] * 2
fileNames[0], fileNames[1] = get_program_parameters()
# Generate the other vecAnim file names. There are 8 of them.
tmpFn = fileNames[1][:-5]
for i in range(2, 9):
fileNames.append(tmpFn + str(i) + '.vtk')
colors = vt... | 30.5 | 90 | 0.694262 | 368 | 3,660 | 6.861413 | 0.497283 | 0.011089 | 0.007129 | 0.013069 | 0.009505 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039322 | 0.193989 | 3,660 | 119 | 91 | 30.756303 | 0.81661 | 0.072951 | 0 | 0 | 1 | 0 | 0.062703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024691 | false | 0 | 0.024691 | 0 | 0.061728 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
608f9f759c4b4cc86f505f81e051353a0a5305a3 | 3,902 | py | Python | challenges/2021-10-26-the-24-game/solutions/mob/mob.py | JenniferToops/CodingDojo | 25f594a7ce0600d885e2e5665d8a70e9529720d3 | [
"MIT"
] | 34 | 2021-03-26T15:07:05.000Z | 2022-02-28T12:56:38.000Z | challenges/2021-10-26-the-24-game/solutions/mob/mob.py | JenniferToops/CodingDojo | 25f594a7ce0600d885e2e5665d8a70e9529720d3 | [
"MIT"
] | 129 | 2021-03-26T15:45:40.000Z | 2022-03-29T01:39:11.000Z | challenges/2021-10-26-the-24-game/solutions/mob/mob.py | JenniferToops/CodingDojo | 25f594a7ce0600d885e2e5665d8a70e9529720d3 | [
"MIT"
] | 51 | 2021-03-26T15:24:10.000Z | 2022-03-28T22:56:43.000Z | import unittest
"""
# The 24 Game
The `24` game is played as follows. You are given a list of four integers, each in a fixed order. By
placing the operators +, -, *, and / between the numbers, and grouping them with parentheses, determine whether it is possible to reach the value `24`.
For example, given the input ... | 36.12963 | 164 | 0.57919 | 588 | 3,902 | 3.784014 | 0.302721 | 0.028764 | 0.00809 | 0.010787 | 0.200899 | 0.133933 | 0.069213 | 0.033258 | 0 | 0 | 0 | 0.065345 | 0.301896 | 3,902 | 107 | 165 | 36.46729 | 0.751468 | 0.159149 | 0 | 0 | 0 | 0 | 0.106229 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 1 | 0.208333 | false | 0.020833 | 0.020833 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
609752b8853c65aa0d091efe62b0a4cd480867dd | 1,166 | py | Python | plenum/test/view_change/test_reset_monitor_after_view_change.py | anikitinDSR/indy-plenum | f2a03344cdff4edbe0bf3528a8ddf34a8b1c6b85 | [
"Apache-2.0"
] | null | null | null | plenum/test/view_change/test_reset_monitor_after_view_change.py | anikitinDSR/indy-plenum | f2a03344cdff4edbe0bf3528a8ddf34a8b1c6b85 | [
"Apache-2.0"
] | null | null | null | plenum/test/view_change/test_reset_monitor_after_view_change.py | anikitinDSR/indy-plenum | f2a03344cdff4edbe0bf3528a8ddf34a8b1c6b85 | [
"Apache-2.0"
] | null | null | null | from plenum.common.messages.internal_messages import ReOrderedInNewView
from plenum.test.testing_utils import FakeSomething
def test_reset_monitor_after_view_change_events(create_node_and_not_start):
node = create_node_and_not_start
node.view_changer = FakeSomething(propagate_primary=False,
... | 43.185185 | 90 | 0.749571 | 154 | 1,166 | 5.487013 | 0.519481 | 0.091124 | 0.104142 | 0.03787 | 0.194083 | 0.059172 | 0 | 0 | 0 | 0 | 0 | 0.018789 | 0.178388 | 1,166 | 26 | 91 | 44.846154 | 0.863257 | 0.240995 | 0 | 0 | 0 | 0 | 0.01479 | 0 | 0 | 0 | 0 | 0.038462 | 0.1875 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60986a1597cc20d9360bfea9095df100645c5693 | 1,326 | py | Python | makeGetLDRelatedSNPInfoRemoveInvalidPairs.py | imk1/MethylationQTLCode | d193f518994074a29a39e081d470b1c67a95a527 | [
"MIT"
] | null | null | null | makeGetLDRelatedSNPInfoRemoveInvalidPairs.py | imk1/MethylationQTLCode | d193f518994074a29a39e081d470b1c67a95a527 | [
"MIT"
] | null | null | null | makeGetLDRelatedSNPInfoRemoveInvalidPairs.py | imk1/MethylationQTLCode | d193f518994074a29a39e081d470b1c67a95a527 | [
"MIT"
] | null | null | null | def makeGetLDRelatedSNPInfoRemoveInvalidPairs(genotypeFileNameListFileName, suffix, distanceCutoff, scriptFileName, codePath):
# Make a script that will run getLDRelatedSNPInfoRemoveInvalidPairs.py for each file in a list
genotypeFileNameListFile = open(genotypeFileNameListFileName)
scriptFile = open(scriptFileNa... | 60.272727 | 170 | 0.77451 | 122 | 1,326 | 8.352459 | 0.5 | 0.034347 | 0.147203 | 0.174681 | 0.217861 | 0.217861 | 0 | 0 | 0 | 0 | 0 | 0.007813 | 0.131222 | 1,326 | 22 | 171 | 60.272727 | 0.876736 | 0.159879 | 0 | 0 | 0 | 0 | 0.05877 | 0.036731 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6098f14f3f0fb238ba1d90e720890f5a1258737d | 817 | py | Python | day07/solve-07a.py | ggchappell/AdventOfCode2021 | b209f7e26684c35906958ce7b5ee65348041a3f9 | [
"MIT"
] | null | null | null | day07/solve-07a.py | ggchappell/AdventOfCode2021 | b209f7e26684c35906958ce7b5ee65348041a3f9 | [
"MIT"
] | null | null | null | day07/solve-07a.py | ggchappell/AdventOfCode2021 | b209f7e26684c35906958ce7b5ee65348041a3f9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Advent of Code 2021
# Glenn G. Chappell
import sys # .stdin
# ======================================================================
# HELPER FUNCTIONS
# ======================================================================
# (NONE)
# ===========================================... | 19.926829 | 72 | 0.395349 | 72 | 817 | 4.486111 | 0.666667 | 0.049536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011396 | 0.140759 | 817 | 40 | 73 | 20.425 | 0.448718 | 0.608323 | 0 | 0 | 0 | 0 | 0.115512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
609a9e0894a8ea15ee2898d32030dd362fac3d41 | 683 | py | Python | rest_framework/tests/test_templatetags.py | yeraydiazdiaz/nonrel-blog | fc5179561a15ada8cd30fd178aa5356d38d937ff | [
"BSD-3-Clause"
] | 1 | 2016-07-16T09:02:38.000Z | 2016-07-16T09:02:38.000Z | rest_framework/tests/test_templatetags.py | yeraydiazdiaz/nonrel-blog | fc5179561a15ada8cd30fd178aa5356d38d937ff | [
"BSD-3-Clause"
] | null | null | null | rest_framework/tests/test_templatetags.py | yeraydiazdiaz/nonrel-blog | fc5179561a15ada8cd30fd178aa5356d38d937ff | [
"BSD-3-Clause"
] | 1 | 2016-03-11T22:43:11.000Z | 2016-03-11T22:43:11.000Z | # encoding: utf-8
from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.test import APIRequestFactory
from rest_framework.templatetags.rest_framework import add_query_param
factory = APIRequestFactory()
class TemplateTagTests(TestCase):
def test_add_query_param_with_non_la... | 34.15 | 70 | 0.721816 | 91 | 683 | 5.175824 | 0.615385 | 0.082803 | 0.082803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017794 | 0.17716 | 683 | 19 | 71 | 35.947368 | 0.820285 | 0.165447 | 0 | 0 | 0 | 0 | 0.079787 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
609dc77b36b1b6919b2c7fec05f04e93e4da01e3 | 1,893 | py | Python | neutron/extensions/uos_service_provider.py | CingHu/neutron-ustack | a1da17d0d63b3342a48c35da37984d6386ee1016 | [
"Apache-2.0"
] | null | null | null | neutron/extensions/uos_service_provider.py | CingHu/neutron-ustack | a1da17d0d63b3342a48c35da37984d6386ee1016 | [
"Apache-2.0"
] | null | null | null | neutron/extensions/uos_service_provider.py | CingHu/neutron-ustack | a1da17d0d63b3342a48c35da37984d6386ee1016 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2013 OpenStack Foundation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.... | 32.637931 | 78 | 0.639725 | 227 | 1,893 | 5.215859 | 0.537445 | 0.101351 | 0.071791 | 0.027027 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026163 | 0.273111 | 1,893 | 57 | 79 | 33.210526 | 0.834302 | 0.344955 | 0 | 0.166667 | 0 | 0 | 0.248366 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.2 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
60a2da0b8967a89d66834335869e728a29270b07 | 4,481 | py | Python | cedm/policy/Wizard.py | Ratnesh-Rai/Pydial-Personalisation | 3a149f511ee180507cd1bb1dd2c40100c14705ab | [
"Apache-2.0"
] | 3 | 2019-04-28T03:53:33.000Z | 2020-01-20T14:38:40.000Z | cedm/policy/Wizard.py | lgessler/pydial | 482aacd16870b84bcad70aa59aa67098b42efff5 | [
"Apache-2.0"
] | null | null | null | cedm/policy/Wizard.py | lgessler/pydial | 482aacd16870b84bcad70aa59aa67098b42efff5 | [
"Apache-2.0"
] | 1 | 2021-12-20T08:08:32.000Z | 2021-12-20T08:08:32.000Z | ###############################################################################
# PyDial: Multi-domain Statistical Spoken Dialogue System Software
###############################################################################
#
# Copyright 2015 - 2018
# Cambridge University Engineering Department Dialogue Systems Grou... | 36.430894 | 125 | 0.600089 | 449 | 4,481 | 5.933185 | 0.416481 | 0.028904 | 0.019144 | 0.024775 | 0.03003 | 0.011261 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.252399 | 4,481 | 123 | 126 | 36.430894 | 0.787761 | 0.169159 | 0 | 0.130435 | 0 | 0 | 0.030708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065217 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60a3113fd402f631369ab5183306628b3c9396c6 | 2,754 | py | Python | Project1Backend/daos/employee_dao_postgres.py | wolfryan97/Project1Backend | 8efff7b5261f91fbc06c77152cd0c4db9c571c42 | [
"MIT"
] | null | null | null | Project1Backend/daos/employee_dao_postgres.py | wolfryan97/Project1Backend | 8efff7b5261f91fbc06c77152cd0c4db9c571c42 | [
"MIT"
] | null | null | null | Project1Backend/daos/employee_dao_postgres.py | wolfryan97/Project1Backend | 8efff7b5261f91fbc06c77152cd0c4db9c571c42 | [
"MIT"
] | null | null | null | from typing import List
from daos.employee_dao import EmployeeDao
from entities.employee import Employee
from utils.connection_util import connection
class EmployeeDaoPostgres(EmployeeDao):
def create_employee(self, emp: Employee) -> Employee:
sql = """insert into employee (emp_firstname, emp_lastname, is... | 38.788732 | 211 | 0.620915 | 348 | 2,754 | 4.764368 | 0.212644 | 0.039204 | 0.092883 | 0.118215 | 0.594089 | 0.480097 | 0.434861 | 0.402292 | 0.337153 | 0.337153 | 0 | 0.0108 | 0.260349 | 2,754 | 70 | 212 | 39.342857 | 0.803142 | 0.011983 | 0 | 0.47541 | 0 | 0.04918 | 0.205666 | 0.033848 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114754 | false | 0.081967 | 0.065574 | 0 | 0.278689 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60a47e9c1af2085c839bbb45a8a2a8ab51837e5f | 9,486 | py | Python | tests/signal_util_tests.py | NeonMariia/neon-skill-utils | 6997e809aca86181ed92954e393f9ca617daa62a | [
"BSD-3-Clause"
] | null | null | null | tests/signal_util_tests.py | NeonMariia/neon-skill-utils | 6997e809aca86181ed92954e393f9ca617daa62a | [
"BSD-3-Clause"
] | null | null | null | tests/signal_util_tests.py | NeonMariia/neon-skill-utils | 6997e809aca86181ed92954e393f9ca617daa62a | [
"BSD-3-Clause"
] | null | null | null | # NEON AI (TM) SOFTWARE, Software Development Kit & Application Framework
# All trademark and other rights reserved by their respective owners
# Copyright 2008-2022 Neongecko.com Inc.
# Contributors: Daniel McKnight, Guy Daniels, Elon Gasper, Richard Leeds,
# Regina Bloomstine, Casimiro Ferreira, Andrii Pernatii, Kiril... | 50.457447 | 96 | 0.710099 | 1,199 | 9,486 | 5.259383 | 0.195163 | 0.104662 | 0.123692 | 0.164922 | 0.644624 | 0.585316 | 0.552331 | 0.530606 | 0.518871 | 0.510466 | 0 | 0.002018 | 0.216424 | 9,486 | 187 | 97 | 50.727273 | 0.846361 | 0.196289 | 0 | 0.527132 | 0 | 0 | 0.055732 | 0.032752 | 0 | 0 | 0 | 0 | 0.248062 | 1 | 0.116279 | false | 0 | 0.100775 | 0 | 0.232558 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60a9ae8c8c968d4bdefe60087cb6f4cd0291f5cb | 8,811 | py | Python | pre_processing/generate_pointclouds_ScanNet.py | LiangtongLu/Neural-Point-Cloud-Rendering-via-Multi-Plane-Projection | 93c3515ddca9518d9de80c7d56b69352c834780d | [
"MIT"
] | 36 | 2020-06-28T08:04:04.000Z | 2022-03-31T06:29:40.000Z | pre_processing/generate_pointclouds_ScanNet.py | LiangtongLu/Neural-Point-Cloud-Rendering-via-Multi-Plane-Projection | 93c3515ddca9518d9de80c7d56b69352c834780d | [
"MIT"
] | 4 | 2021-05-14T07:46:44.000Z | 2021-06-20T17:16:06.000Z | pre_processing/generate_pointclouds_ScanNet.py | LiangtongLu/Neural-Point-Cloud-Rendering-via-Multi-Plane-Projection | 93c3515ddca9518d9de80c7d56b69352c834780d | [
"MIT"
] | 6 | 2020-12-18T12:14:19.000Z | 2022-03-31T06:29:42.000Z | """
ScanNet
This file help you generate point clouds from RGB_D images.
"""
from __future__ import division
import numpy as np
import os, cv2, time, math, scipy
import scipy.io as io
import argparse
def CameraParameterRead(dir):
intrinsic_color_path = dir + 'intrinsic_color.txt'
intrinsic_depth_path = dir ... | 33.888462 | 143 | 0.633753 | 1,210 | 8,811 | 4.392562 | 0.187603 | 0.097272 | 0.051176 | 0.012418 | 0.322107 | 0.229351 | 0.175729 | 0.166322 | 0.135278 | 0.105362 | 0 | 0.029699 | 0.231869 | 8,811 | 259 | 144 | 34.019305 | 0.755615 | 0.087391 | 0 | 0.205882 | 1 | 0.005882 | 0.10483 | 0.027633 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023529 | false | 0 | 0.029412 | 0 | 0.076471 | 0.035294 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60a9d7ea67e193b8d88db6d70885b8e1c7ddede3 | 596 | py | Python | deepomatic/cli/cmds/site/work_order/status.py | Deepomatic/deepocli | 127b95200c3c8e4cbe98bb1548fe865893ab2a49 | [
"MIT"
] | 15 | 2018-12-19T16:51:05.000Z | 2019-02-22T09:08:05.000Z | deepomatic/cli/cmds/site/work_order/status.py | Deepomatic/deepocli | 127b95200c3c8e4cbe98bb1548fe865893ab2a49 | [
"MIT"
] | 150 | 2018-12-20T13:45:05.000Z | 2022-03-12T01:04:32.000Z | deepomatic/cli/cmds/site/work_order/status.py | Deepomatic/deepocli | 127b95200c3c8e4cbe98bb1548fe865893ab2a49 | [
"MIT"
] | null | null | null | from ...utils import Command
from ..utils import SiteManager
class StatusCommand(Command):
"""
Retrieve the work order status
"""
def setup(self, subparsers):
parser = super(StatusCommand, self).setup(subparsers)
parser.add_argument('-u', "--api_url", required=True, type=str, help... | 33.111111 | 104 | 0.672819 | 78 | 596 | 4.974359 | 0.461538 | 0.139175 | 0.113402 | 0.097938 | 0.206186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197987 | 596 | 17 | 105 | 35.058824 | 0.811715 | 0.050336 | 0 | 0 | 0 | 0 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
60abaf957b67778dda648fb7ed852c6e55ccff7a | 1,522 | py | Python | Project/src/Modules/Core/Utilities/_test/test_tools.py | DBrianKimmel/PyHouse | a100fc67761a22ae47ed6f21f3c9464e2de5d54f | [
"MIT"
] | 3 | 2016-11-16T00:37:58.000Z | 2019-11-10T13:10:19.000Z | Project/src/Modules/Core/Utilities/_test/test_tools.py | DBrianKimmel/PyHouse | a100fc67761a22ae47ed6f21f3c9464e2de5d54f | [
"MIT"
] | null | null | null | Project/src/Modules/Core/Utilities/_test/test_tools.py | DBrianKimmel/PyHouse | a100fc67761a22ae47ed6f21f3c9464e2de5d54f | [
"MIT"
] | 1 | 2020-07-19T22:06:52.000Z | 2020-07-19T22:06:52.000Z | """
@name: PyHouse/src/Modules.Core.Utilities.test_tools.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: 2013-2017 by D. Brian Kimmel
@note: Created on Apr 11, 2013
@license: MIT License
@summary: Various functions and utility methods.
Passed all 3 tests - DBK - 2016-11-22
... | 25.79661 | 107 | 0.704336 | 216 | 1,522 | 4.75463 | 0.472222 | 0.058423 | 0.070107 | 0.087634 | 0.054528 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032547 | 0.19251 | 1,522 | 58 | 108 | 26.241379 | 0.803092 | 0.252957 | 0 | 0.08 | 0 | 0 | 0.026079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.04 | 0.2 | 0 | 0.52 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
60af4a90b9c562577581ef58f176b5ec20da7b67 | 1,112 | py | Python | build/scripts/fs_tools.py | SitdikovRustam/CatBoost | 39fb9dfddb24e977ed87efc71063b03cd4bc8f16 | [
"Apache-2.0"
] | 33 | 2016-12-15T21:47:13.000Z | 2020-10-27T23:53:59.000Z | build/scripts/fs_tools.py | dsferz/machinelearning_yandex | 8fde8314c5c70299ece8b8f00075ddfcd5e07ddf | [
"Apache-2.0"
] | null | null | null | build/scripts/fs_tools.py | dsferz/machinelearning_yandex | 8fde8314c5c70299ece8b8f00075ddfcd5e07ddf | [
"Apache-2.0"
] | 14 | 2016-12-28T17:00:33.000Z | 2022-01-16T20:15:27.000Z | import os
import sys
import shutil
if __name__ == '__main__':
mode = sys.argv[1]
args = sys.argv[2:]
if mode == 'copy':
shutil.copy(args[0], args[1])
elif mode == 'copy_files':
src = args[0]
dst = args[1]
files = open(args[2]).read().strip().split()
for f in fil... | 27.121951 | 58 | 0.465827 | 140 | 1,112 | 3.621429 | 0.35 | 0.08284 | 0.053254 | 0.059172 | 0.145957 | 0.145957 | 0.110454 | 0.110454 | 0 | 0 | 0 | 0.018045 | 0.401978 | 1,112 | 40 | 59 | 27.8 | 0.744361 | 0 | 0 | 0.263158 | 0 | 0 | 0.06205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.078947 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60b13ea06b530e3f16ef097d980a3cc31d86717c | 3,690 | py | Python | scout/export/exon.py | mhkc/scout | a7162f28c0f3490c3f3376268118fa8e6072a9db | [
"BSD-3-Clause"
] | null | null | null | scout/export/exon.py | mhkc/scout | a7162f28c0f3490c3f3376268118fa8e6072a9db | [
"BSD-3-Clause"
] | null | null | null | scout/export/exon.py | mhkc/scout | a7162f28c0f3490c3f3376268118fa8e6072a9db | [
"BSD-3-Clause"
] | null | null | null | """
head develop/mip_references/grch37_scout_exons_-2017-01-.bed
13 22255179 22255286 13-22255181-22255284 NM_002010 3687 FGF9
1 154306977 154307069 1-154306979-154307067 NM_001005855,NM_020452 13534,13534 ATP8B2,ATP8B2
6 20739748 20739848 6-20739750-20739846 NM_017774,XM_005249202 21050,21050 CDKAL1,CDKAL1
2 228169699... | 33.545455 | 106 | 0.640921 | 508 | 3,690 | 4.431102 | 0.348425 | 0.042648 | 0.02932 | 0.019991 | 0.222124 | 0.151044 | 0.133274 | 0.133274 | 0.097734 | 0.069303 | 0 | 0.200861 | 0.244444 | 3,690 | 109 | 107 | 33.853211 | 0.606528 | 0.41084 | 0 | 0.190476 | 0 | 0.031746 | 0.14898 | 0.027466 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.015873 | 0 | 0.063492 | 0.063492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60b551a073ac5c7fcb556ab00b5a17754bbc3039 | 726 | py | Python | src/books/settings/testing.py | paula-em-lafon/books | cece2d09a6ad49568dedb2b2d008fa38621da237 | [
"Apache-2.0"
] | null | null | null | src/books/settings/testing.py | paula-em-lafon/books | cece2d09a6ad49568dedb2b2d008fa38621da237 | [
"Apache-2.0"
] | null | null | null | src/books/settings/testing.py | paula-em-lafon/books | cece2d09a6ad49568dedb2b2d008fa38621da237 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Django development settings for books project.
"""
from . import * # noqa
# Short key for tests speed up
SECRET_KEY = 'secret'
# Debug
DEBUG = False
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
# Application definition
INSTALLED_APPS += (
)
# Database
# https://docs.djangoproject.com/en/1... | 18.615385 | 63 | 0.674931 | 85 | 726 | 5.705882 | 0.682353 | 0.049485 | 0.080412 | 0.092784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.181818 | 726 | 38 | 64 | 19.105263 | 0.806397 | 0.391185 | 0 | 0 | 0 | 0 | 0.418824 | 0.298824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.117647 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60b88d703a1dc2092ec19a59173860491c5d0eaf | 412 | py | Python | api/test/api/test_docs.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | 18 | 2020-04-12T19:43:24.000Z | 2021-11-14T17:35:34.000Z | api/test/api/test_docs.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | 6 | 2020-04-12T22:56:15.000Z | 2020-04-17T19:06:41.000Z | api/test/api/test_docs.py | carlotacb/compra-local | 146289a67a0c943cd12ef9dfb16d0524af8e616e | [
"Apache-2.0"
] | null | null | null | import unittest
import requests
from src.config import PYTHON_MODULE_PORT
class APIStatusTest(unittest.TestCase):
def setUp(self):
self.url = f'http://localhost:{PYTHON_MODULE_PORT}/docs'
self.status_code = 200
self.response_message = True
def test_status_code(self):
respons... | 24.235294 | 64 | 0.713592 | 53 | 412 | 5.358491 | 0.54717 | 0.140845 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009063 | 0.196602 | 412 | 16 | 65 | 25.75 | 0.848943 | 0 | 0 | 0 | 0 | 0 | 0.101942 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
60be6064ab5bc38759e562b4a49e39a08b53c91d | 5,227 | py | Python | helium/auth/tests/views/apis/testcaseauthenticationviews.py | HeliumEdu/platform | 54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5 | [
"MIT"
] | 15 | 2018-01-02T00:44:58.000Z | 2022-03-19T21:38:29.000Z | helium/auth/tests/views/apis/testcaseauthenticationviews.py | HeliumEdu/platform | 54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5 | [
"MIT"
] | 327 | 2017-11-24T22:36:07.000Z | 2022-02-10T08:09:08.000Z | helium/auth/tests/views/apis/testcaseauthenticationviews.py | HeliumEdu/platform | 54b82a40c21fd14d1b7f37d5f2afb51eea2f8cf5 | [
"MIT"
] | 3 | 2018-05-04T17:57:58.000Z | 2021-11-18T13:58:46.000Z | import json
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from helium.auth.models import UserProfile
from helium.auth.models import UserSettings
from helium.auth.tests.helpers import userhelper
__author__ = "Alex Lair... | 42.495935 | 110 | 0.624259 | 580 | 5,227 | 5.344828 | 0.196552 | 0.067742 | 0.046452 | 0.058065 | 0.606774 | 0.549032 | 0.510645 | 0.460645 | 0.402258 | 0.384194 | 0 | 0.012984 | 0.263249 | 5,227 | 122 | 111 | 42.844262 | 0.792002 | 0.017792 | 0 | 0.283951 | 0 | 0 | 0.191007 | 0.074096 | 0 | 0 | 0 | 0 | 0.283951 | 1 | 0.08642 | false | 0.098765 | 0.098765 | 0 | 0.197531 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60c0cd827415a46d31c66b3462e5fe5c9ac90ec0 | 9,435 | py | Python | src/visitpy/visit_flow/flow/src/filters/pyocl_kernels.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 226 | 2018-12-29T01:13:49.000Z | 2022-03-30T19:16:31.000Z | src/visitpy/visit_flow/flow/src/filters/pyocl_kernels.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 5,100 | 2019-01-14T18:19:25.000Z | 2022-03-31T23:08:36.000Z | src/visitpy/visit_flow/flow/src/filters/pyocl_kernels.py | visit-dav/vis | c08bc6e538ecd7d30ddc6399ec3022b9e062127e | [
"BSD-3-Clause"
] | 84 | 2019-01-24T17:41:50.000Z | 2022-03-10T10:01:46.000Z | # Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
# Project developers. See the top-level LICENSE file for dates and other
# details. No copyright assignment is required to contribute to VisIt.
"""
file: pyocl_kernels.py
author: Cyrus Harrison <cyrush@llnl.gov>
created: 9/6/2012
descripti... | 28.248503 | 73 | 0.388977 | 1,047 | 9,435 | 3.408787 | 0.204394 | 0.086859 | 0.063883 | 0.054637 | 0.33875 | 0.240403 | 0.217428 | 0.200056 | 0.144018 | 0.101989 | 0 | 0.027345 | 0.441865 | 9,435 | 333 | 74 | 28.333333 | 0.650399 | 0.05045 | 0 | 0.340659 | 0 | 0.018315 | 0.65214 | 0.018356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003663 | false | 0.003663 | 0.010989 | 0 | 0.021978 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60c93c93601bf0cefae85375405ac15848f5bc53 | 1,332 | py | Python | timemachines/skatertools/offlinetesting/optimizerandomskater.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 253 | 2021-01-08T17:33:30.000Z | 2022-03-21T17:32:36.000Z | timemachines/skatertools/offlinetesting/optimizerandomskater.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 65 | 2021-01-20T16:43:35.000Z | 2022-03-30T19:07:22.000Z | timemachines/skatertools/offlinetesting/optimizerandomskater.py | iklasky/timemachines | 1820fa9453d31d4daaeff75274a935c7455febe3 | [
"MIT"
] | 28 | 2021-02-04T14:58:30.000Z | 2022-01-17T04:35:17.000Z | from timemachines.skatertools.tuning.hyper import optimal_r
from timemachines.skatertools.data.synthetic import brownian_with_exogenous
from timemachines.skaters.localskaters import SKATERS_R1, SKATERS_R2, SKATERS_R3
import time
import random
from pprint import pprint
from timemachines.skaters.proph.prophparams import ... | 37 | 86 | 0.720721 | 187 | 1,332 | 4.860963 | 0.44385 | 0.070407 | 0.059406 | 0.039604 | 0.059406 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0.021641 | 0.167417 | 1,332 | 36 | 87 | 37 | 0.798016 | 0.018018 | 0 | 0 | 0 | 0 | 0.090283 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.366667 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
60cd3302b1d8178fe7e9d7acbc30d8b053471afb | 733 | py | Python | app.py | herbeeg/aotnr-web | b0c6d65dca1d4a1c1717190edbbbec3c290066c2 | [
"MIT"
] | null | null | null | app.py | herbeeg/aotnr-web | b0c6d65dca1d4a1c1717190edbbbec3c290066c2 | [
"MIT"
] | null | null | null | app.py | herbeeg/aotnr-web | b0c6d65dca1d4a1c1717190edbbbec3c290066c2 | [
"MIT"
] | null | null | null | import sys
from flask import Flask, render_template
from flask_flatpages import FlatPages
from flask_frozen import Freezer
app = Flask(__name__)
app.config.from_pyfile('mysettings.cfg')
pages = FlatPages(app)
freezer = Freezer(app)
@app.route("/")
def index():
return render_template('index.html', navigation=True... | 24.433333 | 64 | 0.698499 | 97 | 733 | 5.082474 | 0.484536 | 0.11359 | 0.121704 | 0.15213 | 0.257606 | 0.257606 | 0.178499 | 0 | 0 | 0 | 0 | 0.009804 | 0.165075 | 733 | 29 | 65 | 25.275862 | 0.795752 | 0 | 0 | 0.090909 | 0 | 0 | 0.106984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0.136364 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
60d1c357ff69eeb499c46fa71f5e18de185296fc | 4,259 | py | Python | test/testtools.py | pgrit/var-aware-mis-pbrt | 102d4eba8a3214cc944311e7b81cf9eafbeff462 | [
"BSD-2-Clause"
] | 28 | 2019-10-31T02:10:05.000Z | 2021-12-29T13:19:19.000Z | test/testtools.py | pgrit/var-aware-mis-pbrt | 102d4eba8a3214cc944311e7b81cf9eafbeff462 | [
"BSD-2-Clause"
] | null | null | null | test/testtools.py | pgrit/var-aware-mis-pbrt | 102d4eba8a3214cc944311e7b81cf9eafbeff462 | [
"BSD-2-Clause"
] | 3 | 2019-12-10T07:53:36.000Z | 2021-12-29T13:18:55.000Z | import re
import os
import glob
import subprocess
from subprocess import Popen, PIPE
import numpy as np
# generates the string with the selected integrator
def set_integrator(scene, integrator_str):
start = '##INTEGRATOR-DEF-START'
end = '##INTEGRATOR-DEF-END'
replacement = integrator_str
match = re.ma... | 35.491667 | 111 | 0.590514 | 539 | 4,259 | 4.604824 | 0.348794 | 0.004835 | 0.004835 | 0.025786 | 0.17083 | 0.102337 | 0.102337 | 0.066882 | 0.066882 | 0.066882 | 0 | 0.013106 | 0.2834 | 4,259 | 120 | 112 | 35.491667 | 0.800131 | 0.128904 | 0 | 0.191011 | 1 | 0 | 0.132468 | 0.017302 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05618 | false | 0 | 0.078652 | 0 | 0.179775 | 0.022472 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60d3f8ffc566ba814a71ab83b977eee01379c563 | 990 | py | Python | src/examples/pin/callback_image.py | mxmssh/Triton | b4695fb7859b5e1a59387062c7bd62479ae07ea2 | [
"Apache-2.0"
] | 3 | 2018-09-29T01:03:29.000Z | 2019-07-18T07:03:51.000Z | src/examples/pin/callback_image.py | mxmssh/Triton | b4695fb7859b5e1a59387062c7bd62479ae07ea2 | [
"Apache-2.0"
] | null | null | null | src/examples/pin/callback_image.py | mxmssh/Triton | b4695fb7859b5e1a59387062c7bd62479ae07ea2 | [
"Apache-2.0"
] | 3 | 2018-03-04T04:34:39.000Z | 2019-08-27T16:10:15.000Z |
from triton import ARCH
from pintool import *
# Output
#
# $ ./build/triton ./src/examples/pin/callback_image.py ./src/samples/ir_test_suite/ir
# ----------
# Image path: /dir/Triton/samples/ir_test_suite/ir
# Image base: 0x400000L
# Image size: 2101312
# ----------
# Image path: /lib64/ld-linux-x86-64.so.2
# Im... | 23.023256 | 86 | 0.669697 | 119 | 990 | 5.436975 | 0.563025 | 0.055641 | 0.040185 | 0.055641 | 0.07728 | 0.07728 | 0 | 0 | 0 | 0 | 0 | 0.075776 | 0.186869 | 990 | 42 | 87 | 23.571429 | 0.72795 | 0.520202 | 0 | 0 | 0 | 0 | 0.119205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60db52e061794474f6e8b17c57ca7ae34185b16d | 2,409 | py | Python | ucscentralsdk/mometa/storage/StorageScsiDeviceDescriptor.py | ragupta-git/ucscentralsdk | 2678008b5fb6b0fafafec388d0874147e95a1086 | [
"Apache-2.0"
] | null | null | null | ucscentralsdk/mometa/storage/StorageScsiDeviceDescriptor.py | ragupta-git/ucscentralsdk | 2678008b5fb6b0fafafec388d0874147e95a1086 | [
"Apache-2.0"
] | null | null | null | ucscentralsdk/mometa/storage/StorageScsiDeviceDescriptor.py | ragupta-git/ucscentralsdk | 2678008b5fb6b0fafafec388d0874147e95a1086 | [
"Apache-2.0"
] | null | null | null | """This module contains the general information for StorageScsiDeviceDescriptor ManagedObject."""
from ...ucscentralmo import ManagedObject
from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta
from ...ucscentralmeta import VersionMeta
class StorageScsiDeviceDescriptorConsts():
TYPE_EUI_64 ... | 47.235294 | 249 | 0.655874 | 246 | 2,409 | 6.276423 | 0.349594 | 0.099741 | 0.108808 | 0.163212 | 0.165803 | 0.09715 | 0 | 0 | 0 | 0 | 0 | 0.0345 | 0.16978 | 2,409 | 50 | 250 | 48.18 | 0.7375 | 0.055625 | 0 | 0 | 0 | 0.055556 | 0.24304 | 0.128148 | 0 | 0 | 0.007512 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60e92940c615cee98dbba5849778f53e420e6dfe | 10,529 | py | Python | ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py | fangxingli/mambari | 6da9f6090d4d42623529b73413c8feb8b7f6fe45 | [
"Apache-2.0",
"MIT"
] | null | null | null | ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py | fangxingli/mambari | 6da9f6090d4d42623529b73413c8feb8b7f6fe45 | [
"Apache-2.0",
"MIT"
] | null | null | null | ambari-metrics/ambari-metrics-host-monitoring/src/main/python/core/host_info.py | fangxingli/mambari | 6da9f6090d4d42623529b73413c8feb8b7f6fe45 | [
"Apache-2.0",
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 34.185065 | 112 | 0.660841 | 1,431 | 10,529 | 4.577918 | 0.185884 | 0.034346 | 0.020608 | 0.02076 | 0.230804 | 0.126088 | 0.118455 | 0.109907 | 0.109907 | 0.096779 | 0 | 0.011288 | 0.234305 | 10,529 | 307 | 113 | 34.296417 | 0.80129 | 0.149492 | 0 | 0.236111 | 0 | 0 | 0.096392 | 0 | 0 | 0 | 0 | 0.006515 | 0 | 1 | 0.055556 | false | 0.069444 | 0.041667 | 0.00463 | 0.152778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60f3d9d754f373fe529e74fc99a8d8dc2ed0befe | 8,595 | py | Python | model/baseModel.py | gyeongmoon/CNN-DM | 5b71307fa41096bc439d480283c0c4c0200164be | [
"MIT"
] | 2 | 2021-05-31T04:43:12.000Z | 2021-10-06T07:48:21.000Z | model/baseModel.py | gyeongmoon/CNN-DM | 5b71307fa41096bc439d480283c0c4c0200164be | [
"MIT"
] | null | null | null | model/baseModel.py | gyeongmoon/CNN-DM | 5b71307fa41096bc439d480283c0c4c0200164be | [
"MIT"
] | null | null | null | import time
import torch
import torch.nn as nn
from torchvision import models
from torch.autograd import Variable
#########################################################################
# Defining the base model for Feature Extraction (FE) / Fine Tuning (FT).
# ------------------------------------------------------... | 37.697368 | 117 | 0.578592 | 979 | 8,595 | 4.886619 | 0.195097 | 0.033863 | 0.023411 | 0.022575 | 0.425167 | 0.383779 | 0.332776 | 0.270485 | 0.208612 | 0.181438 | 0 | 0.015813 | 0.293659 | 8,595 | 227 | 118 | 37.863436 | 0.772196 | 0.135777 | 0 | 0.326389 | 0 | 0 | 0.051423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034722 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60f61fddbfc39b4aa343fe6af0f7cb1f4a2cbfa3 | 1,747 | py | Python | data_reader.py | berkkayi1/Twitch_Analytics | 565e36faaa3dbfe689b67527760ee3b5cfa75060 | [
"MIT"
] | null | null | null | data_reader.py | berkkayi1/Twitch_Analytics | 565e36faaa3dbfe689b67527760ee3b5cfa75060 | [
"MIT"
] | null | null | null | data_reader.py | berkkayi1/Twitch_Analytics | 565e36faaa3dbfe689b67527760ee3b5cfa75060 | [
"MIT"
] | null | null | null | import socket
import logging
import os
from emoji import demojize
from dotenv import load_dotenv
from datetime import datetime
from get_tokenize import get_tokenize
import pymongo
# Get the path to the directory this file is in
BASEDIR = os.path.abspath(os.path.dirname(__file__))
# Connect the path with your '.env' f... | 30.12069 | 85 | 0.622782 | 228 | 1,747 | 4.692982 | 0.442982 | 0.052336 | 0.037383 | 0.041122 | 0.037383 | 0.037383 | 0.037383 | 0 | 0 | 0 | 0 | 0.010957 | 0.216371 | 1,747 | 57 | 86 | 30.649123 | 0.770636 | 0.20435 | 0 | 0 | 0 | 0 | 0.148443 | 0.027516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.210526 | 0 | 0.210526 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
60f6cb3f901b0dd0a717d2dbddae156f50ed7f7b | 1,476 | py | Python | utils/common_tools.py | anonymous4paper-github/kdd2021 | 1a4f0f550c5c4cb2cd6a23d1d178bed89d874338 | [
"MIT"
] | null | null | null | utils/common_tools.py | anonymous4paper-github/kdd2021 | 1a4f0f550c5c4cb2cd6a23d1d178bed89d874338 | [
"MIT"
] | null | null | null | utils/common_tools.py | anonymous4paper-github/kdd2021 | 1a4f0f550c5c4cb2cd6a23d1d178bed89d874338 | [
"MIT"
] | null | null | null | '''
Some common tools shared by multiple scripts.
'''
import os
import pickle
import numpy as np
import scipy.io as sio
import random
import torch
from torch.nn import init
def print_args(args):
print('-' * 50)
for arg, content in args.__dict__.items():
print("{}: {}".format(arg, co... | 24.6 | 105 | 0.627371 | 208 | 1,476 | 4.259615 | 0.456731 | 0.036117 | 0.03386 | 0.040632 | 0.060948 | 0.042889 | 0 | 0 | 0 | 0 | 0 | 0.007401 | 0.267615 | 1,476 | 59 | 106 | 25.016949 | 0.812211 | 0.099594 | 0 | 0.113636 | 0 | 0 | 0.014343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.159091 | 0.045455 | 0.454545 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60f7f0bad75bf6b374ada1ee7862fb2a538a4861 | 2,044 | py | Python | class/lect/Lect-25/tf8-linear-model.py | MikenzieAlasca/F21-1010 | a7c15b8d9bf84f316aa6921f6d8a588c513a22b8 | [
"MIT"
] | 5 | 2021-09-09T21:08:14.000Z | 2021-12-14T02:30:52.000Z | class/lect/Lect-25/tf8-linear-model.py | MikenzieAlasca/F21-1010 | a7c15b8d9bf84f316aa6921f6d8a588c513a22b8 | [
"MIT"
] | null | null | null | class/lect/Lect-25/tf8-linear-model.py | MikenzieAlasca/F21-1010 | a7c15b8d9bf84f316aa6921f6d8a588c513a22b8 | [
"MIT"
] | 8 | 2021-09-09T17:46:07.000Z | 2022-02-08T22:41:35.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from datetime import datetime
from packaging import version
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
plt.style.use('seaborn-whitegrid')
import numpy as np
print("Te... | 27.253333 | 79 | 0.670744 | 293 | 2,044 | 4.491468 | 0.467577 | 0.041033 | 0.036474 | 0.018237 | 0.030395 | 0.030395 | 0 | 0 | 0 | 0 | 0 | 0.025014 | 0.139432 | 2,044 | 74 | 80 | 27.621622 | 0.723138 | 0.172701 | 0 | 0 | 0 | 0 | 0.147883 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 0 | null | null | 0 | 0.2 | null | null | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60f885aa705005eb6596d7c3b4414fb25fc747a9 | 3,747 | py | Python | kitchen_bot/src/circle_validation.py | sumedhreddy90/KitchenRobot | 12dd5c89159dda96741cdf5aea8f3158ea8a6b91 | [
"Apache-2.0"
] | null | null | null | kitchen_bot/src/circle_validation.py | sumedhreddy90/KitchenRobot | 12dd5c89159dda96741cdf5aea8f3158ea8a6b91 | [
"Apache-2.0"
] | null | null | null | kitchen_bot/src/circle_validation.py | sumedhreddy90/KitchenRobot | 12dd5c89159dda96741cdf5aea8f3158ea8a6b91 | [
"Apache-2.0"
] | null | null | null | from sympy import *
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import math
# DH parameters of UR5 Robots
# a = [0.00000, -0.42500, -0.39225, 0.00000, 0.00000, 0.0000]
# d = [0.089159, 0.00000, 0.00000, 0.10915, 0.09465, 0.0823]
# alpha = [ 1.570796327, 0, 0, 1.570796327, -1.5707963... | 33.756757 | 111 | 0.516947 | 682 | 3,747 | 2.662757 | 0.193548 | 0.04185 | 0.028084 | 0.019824 | 0.379956 | 0.255507 | 0.196035 | 0.196035 | 0.196035 | 0.188877 | 0 | 0.192519 | 0.272218 | 3,747 | 111 | 112 | 33.756757 | 0.473414 | 0.102482 | 0 | 0.123457 | 0 | 0 | 0.015495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.049383 | 0 | 0.049383 | 0.012346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60fb1452c97154b6a7f4b19178d221f9ac8cc03f | 2,372 | py | Python | mojo/dart/dart_snapshotter/test/dart_snapshotter_test.py | gitFreeByte/sky_engine | 05c9048930f8a0d39c2f6385ba691eccbbdabb20 | [
"BSD-3-Clause"
] | 1 | 2021-06-12T00:47:11.000Z | 2021-06-12T00:47:11.000Z | mojo/dart/dart_snapshotter/test/dart_snapshotter_test.py | gitFreeByte/sky_engine | 05c9048930f8a0d39c2f6385ba691eccbbdabb20 | [
"BSD-3-Clause"
] | null | null | null | mojo/dart/dart_snapshotter/test/dart_snapshotter_test.py | gitFreeByte/sky_engine | 05c9048930f8a0d39c2f6385ba691eccbbdabb20 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import hashlib
import os
import subprocess
import sys
import tempfile
SNAPSHOT_TEST_DIR = os.path.dirname(os.path.absp... | 28.238095 | 79 | 0.668212 | 314 | 2,372 | 4.859873 | 0.388535 | 0.051114 | 0.042595 | 0.039318 | 0.125164 | 0.090433 | 0.076016 | 0.076016 | 0.076016 | 0 | 0 | 0.006853 | 0.200253 | 2,372 | 83 | 80 | 28.578313 | 0.797575 | 0.086003 | 0 | 0.043478 | 0 | 0 | 0.199352 | 0.010176 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
60fe036c078afac768d62d7404bf242b80327344 | 6,658 | py | Python | python/src/pipeline/status_ui.py | AppScale/appengine-pipelines | 277394648dac3e8214677af898935d07399ac8e1 | [
"Apache-2.0"
] | 82 | 2015-01-13T03:24:32.000Z | 2021-10-09T04:08:27.000Z | python/src/pipeline/status_ui.py | AppScale/appengine-pipelines | 277394648dac3e8214677af898935d07399ac8e1 | [
"Apache-2.0"
] | 57 | 2015-01-27T00:12:36.000Z | 2020-10-30T16:47:05.000Z | python/src/pipeline/status_ui.py | AppScale/appengine-pipelines | 277394648dac3e8214677af898935d07399ac8e1 | [
"Apache-2.0"
] | 58 | 2015-01-22T21:32:26.000Z | 2021-10-09T04:08:19.000Z | #!/usr/bin/env python
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 35.989189 | 80 | 0.679784 | 881 | 6,658 | 5.027242 | 0.273553 | 0.043351 | 0.036126 | 0.034319 | 0.399639 | 0.340032 | 0.301197 | 0.301197 | 0.280424 | 0.236622 | 0 | 0.006371 | 0.174827 | 6,658 | 184 | 81 | 36.184783 | 0.799782 | 0.127065 | 0 | 0.290323 | 0 | 0 | 0.312069 | 0.114158 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.129032 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88000994223d8d1896a166b99125c24b59cf86e4 | 7,761 | py | Python | src/ui/ui_revoke_mn_dlg.ui.py | D0WN3D/dash-masternode-tool | 837e00215df3e811b5383978caf1ac2abbb80565 | [
"MIT"
] | 2 | 2020-12-22T20:39:03.000Z | 2021-04-13T22:42:49.000Z | src/ui/ui_revoke_mn_dlg.ui.py | D0WN3D/dash-masternode-tool | 837e00215df3e811b5383978caf1ac2abbb80565 | [
"MIT"
] | 5 | 2021-04-20T20:15:21.000Z | 2021-05-07T07:39:12.000Z | src/ui/ui_revoke_mn_dlg.ui.py | D0WN3D/dash-masternode-tool | 837e00215df3e811b5383978caf1ac2abbb80565 | [
"MIT"
] | 5 | 2020-12-16T18:10:06.000Z | 2021-05-03T13:48:35.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/blogin/Projects/dash-masternode-tool/src/ui/ui_revoke_mn_dlg.ui.autosave'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Rev... | 54.272727 | 277 | 0.729932 | 719 | 7,761 | 7.844228 | 0.268428 | 0.056738 | 0.01383 | 0.027482 | 0.198759 | 0.154255 | 0.154255 | 0.154255 | 0.154255 | 0.138121 | 0 | 0.012048 | 0.165829 | 7,761 | 142 | 278 | 54.65493 | 0.859129 | 0.032083 | 0 | 0.117188 | 1 | 0.007813 | 0.082756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015625 | false | 0 | 0.015625 | 0 | 0.039063 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88030bd82666882aa0e89752fc75fa4a22ee01ea | 499 | py | Python | account/urls.py | madre/analytics_nvd3 | 052f775c12f04e0e3a9fd321ee05de1fbceec09a | [
"Apache-2.0"
] | null | null | null | account/urls.py | madre/analytics_nvd3 | 052f775c12f04e0e3a9fd321ee05de1fbceec09a | [
"Apache-2.0"
] | null | null | null | account/urls.py | madre/analytics_nvd3 | 052f775c12f04e0e3a9fd321ee05de1fbceec09a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# !/usr/bin/env python
"""
__version__ = "1.0"
__license__ = "Copyright (c) 2014-2010, levp-inc, All rights reserved."
__author__ = "madeling <madeling@letvpicture.com>"
"""
from django.conf.urls import patterns, url
from account.views import LoginView, LogOutView
urlpatterns = patterns('',
... | 33.266667 | 78 | 0.59519 | 56 | 499 | 5.053571 | 0.75 | 0.077739 | 0.070671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028871 | 0.236473 | 499 | 15 | 79 | 33.266667 | 0.713911 | 0.376754 | 0 | 0 | 0 | 0 | 0.092715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
880693dabde21c81fa7eec99e463163cef169d97 | 17,804 | py | Python | testify/test_runner_server.py | slingamn/Testify | ab9fd3948dd5a4327e4e71a6b7df5a007c613c83 | [
"Apache-2.0"
] | 1 | 2016-08-19T04:11:16.000Z | 2016-08-19T04:11:16.000Z | testify/test_runner_server.py | slingamn/Testify | ab9fd3948dd5a4327e4e71a6b7df5a007c613c83 | [
"Apache-2.0"
] | null | null | null | testify/test_runner_server.py | slingamn/Testify | ab9fd3948dd5a4327e4e71a6b7df5a007c613c83 | [
"Apache-2.0"
] | null | null | null | # vim: et ts=4 sts=4 sw=4
"""
Client-server setup to evenly distribute tests across multiple processes. The server
discovers all test classes and enqueues them, then clients connect to the server,
receive tests to run, and send back their results.
The server keeps track of the overall status of the run and manages tim... | 41.598131 | 168 | 0.592957 | 2,094 | 17,804 | 4.852436 | 0.161891 | 0.038973 | 0.020667 | 0.023915 | 0.299774 | 0.241807 | 0.168487 | 0.12361 | 0.107076 | 0.063281 | 0 | 0.001793 | 0.310717 | 17,804 | 427 | 169 | 41.69555 | 0.82619 | 0.072849 | 0 | 0.2443 | 0 | 0 | 0.090536 | 0.001389 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016287 | 0.039088 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
880b33597c0afcbff3ec3fe685a9ad1280dae45b | 324 | py | Python | Algorithm/Easy/1000+/1294PowerofThree.py | MartinYan623/Lint-Code | 57d2fa441d6496234615736e3f55d0b71aaa51dc | [
"MIT"
] | null | null | null | Algorithm/Easy/1000+/1294PowerofThree.py | MartinYan623/Lint-Code | 57d2fa441d6496234615736e3f55d0b71aaa51dc | [
"MIT"
] | 1 | 2020-08-08T10:14:53.000Z | 2020-08-08T10:18:37.000Z | Algorithm/Easy/1000+/1294PowerofThree.py | MartinYan623/Lint-Code | 57d2fa441d6496234615736e3f55d0b71aaa51dc | [
"MIT"
] | null | null | null | class Solution:
"""
@param n: an integer
@return: if n is a power of three
"""
def isPowerOfThree(self, n):
# Write your code here
if n == 0:
return False
while n > 1:
if n % 3 != 0:
return False
n = n / 3
return Tr... | 19.058824 | 37 | 0.438272 | 41 | 324 | 3.463415 | 0.634146 | 0.06338 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029586 | 0.478395 | 324 | 16 | 38 | 20.25 | 0.810651 | 0.234568 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8813d0c27ff02d67b43815a3760c26f52bb356e1 | 164 | py | Python | test/super_type.py | mrHola21/Eterm | b0892e122d1e06ac9b3141413b6ef29dd17f042c | [
"MIT"
] | 12 | 2021-08-16T13:34:04.000Z | 2022-03-21T00:48:00.000Z | test/super_type.py | mrHola21/Eterm | b0892e122d1e06ac9b3141413b6ef29dd17f042c | [
"MIT"
] | 2 | 2021-09-04T13:26:28.000Z | 2022-02-12T17:01:09.000Z | test/super_type.py | mrHola21/Eterm | b0892e122d1e06ac9b3141413b6ef29dd17f042c | [
"MIT"
] | 1 | 2021-08-20T01:21:11.000Z | 2021-08-20T01:21:11.000Z | import sys, time
def super_type(b): # used
for a in b:
sys.stdout.write(a)
sys.stdout.flush()
time.sleep(0.03)
super_type('HEllo')
| 13.666667 | 27 | 0.573171 | 26 | 164 | 3.538462 | 0.692308 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025862 | 0.292683 | 164 | 11 | 28 | 14.909091 | 0.767241 | 0.02439 | 0 | 0 | 0 | 0 | 0.031646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8813f3da4b3f6e66099366f1cf2b0e943e18b001 | 658 | py | Python | device/cripto/migrations/0003_miner.py | mahmud-antor/Blockchain | b6abe2210dcb458ffaf604f8ce0dc2a9bf8e93b6 | [
"MIT"
] | 1 | 2021-08-19T17:39:25.000Z | 2021-08-19T17:39:25.000Z | device/cripto/migrations/0003_miner.py | mahmud-antor/Blockchain | b6abe2210dcb458ffaf604f8ce0dc2a9bf8e93b6 | [
"MIT"
] | 4 | 2021-06-08T20:08:43.000Z | 2022-03-11T23:53:39.000Z | device/cripto/migrations/0003_miner.py | mahmud-antor/Blockchain | b6abe2210dcb458ffaf604f8ce0dc2a9bf8e93b6 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-22 15:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cripto', '0002_self_partial'),
]
operations = [
migrations.CreateModel(
name='Miner',
fields=[
('id'... | 28.608696 | 114 | 0.577508 | 68 | 658 | 5.485294 | 0.661765 | 0.144772 | 0.112601 | 0.144772 | 0.187668 | 0.187668 | 0 | 0 | 0 | 0 | 0 | 0.048936 | 0.285714 | 658 | 22 | 115 | 29.909091 | 0.744681 | 0.068389 | 0 | 0 | 1 | 0 | 0.090016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
714ede480b61aaa68e64d53e2d546085528256f9 | 1,863 | py | Python | web_root/tools/findgaps.py | citrtech/archiver | 8b2dd171e6fc6f229068cc949b6a7e3dfbf59f79 | [
"BSD-3-Clause"
] | null | null | null | web_root/tools/findgaps.py | citrtech/archiver | 8b2dd171e6fc6f229068cc949b6a7e3dfbf59f79 | [
"BSD-3-Clause"
] | 2 | 2016-07-26T02:55:11.000Z | 2016-07-26T05:08:45.000Z | web_root/tools/findgaps.py | CiTR/archiver | 8b2dd171e6fc6f229068cc949b6a7e3dfbf59f79 | [
"BSD-3-Clause"
] | 1 | 2021-12-19T20:12:53.000Z | 2021-12-19T20:12:53.000Z | from datetime import date
from datetime import datetime
from datetime import timedelta
from time import strftime
from time import mktime
from time import localtime
import sys
import tempfile
import os
#####
# CiTR Radio Archive Access
# May, 2013
# for The University Radio Society.
# ###### ##### ##### ####
# ### #... | 25.520548 | 92 | 0.599034 | 267 | 1,863 | 4.108614 | 0.423221 | 0.012762 | 0.013674 | 0.010939 | 0.06381 | 0.058341 | 0.058341 | 0 | 0 | 0 | 0 | 0.030116 | 0.215781 | 1,863 | 72 | 93 | 25.875 | 0.720739 | 0.230274 | 0 | 0 | 0 | 0 | 0.086891 | 0.017228 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.021739 | 0.195652 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
714f3b37ff04cbe78db87e2b38d9f18a4a2a969c | 1,484 | py | Python | module_commands/bot/prefix.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | module_commands/bot/prefix.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | module_commands/bot/prefix.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | import os, importlib, json, inspect
from helper.cEmbed import granted_msg, denied_msg
from helper.cLog import elog
from cDatabase.DB_Settings import DB_Settings
config = json.load(open('config.json', 'r'))
path = __file__.split(config['split_path'])
file = path[len(path) - 1][:-3]
available_commands = dict()
db_sett... | 36.195122 | 89 | 0.605121 | 187 | 1,484 | 4.673797 | 0.502674 | 0.06865 | 0.02746 | 0.045767 | 0.061785 | 0.061785 | 0 | 0 | 0 | 0 | 0 | 0.004983 | 0.188679 | 1,484 | 41 | 90 | 36.195122 | 0.72093 | 0.3531 | 0 | 0 | 0 | 0 | 0.115222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.181818 | 0.136364 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
7152088d5b528cdce04e45e5a3488f0119a6b3bd | 1,362 | py | Python | machina_search/migrations/0001_initial.py | savelmtr/django-machina-search | 488e879b12159801989d52466f29c73607166da7 | [
"MIT"
] | 4 | 2021-12-21T22:17:13.000Z | 2022-01-08T07:56:43.000Z | machina_search/migrations/0001_initial.py | savelmtr/django-machina-search | 488e879b12159801989d52466f29c73607166da7 | [
"MIT"
] | null | null | null | machina_search/migrations/0001_initial.py | savelmtr/django-machina-search | 488e879b12159801989d52466f29c73607166da7 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-19 19:34
import django.contrib.postgres.indexes
import django.contrib.postgres.search
from django.db import migrations, models
from machina_search import settings
class Migration(migrations.Migration):
initial = True
dependencies = [
]
if settings.SEARCH_ENGIN... | 37.833333 | 136 | 0.605727 | 127 | 1,362 | 6.291339 | 0.433071 | 0.097622 | 0.157697 | 0.105131 | 0.385482 | 0.385482 | 0.385482 | 0.255319 | 0.255319 | 0.255319 | 0 | 0.02381 | 0.290749 | 1,362 | 36 | 137 | 37.833333 | 0.803313 | 0.03304 | 0 | 0.233333 | 1 | 0 | 0.171733 | 0.077508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71520b46e04de3c91c86bb1f14d7c8ec3dfbabf8 | 1,088 | py | Python | buzzmobile/tools/image_const/image_const.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 25 | 2015-02-18T04:15:09.000Z | 2019-12-11T14:29:02.000Z | buzzmobile/tools/image_const/image_const.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 173 | 2016-09-16T05:34:27.000Z | 2017-11-15T07:31:53.000Z | buzzmobile/tools/image_const/image_const.py | gtagency/buzzmobile | 8f7215d35b3b7fe3c6ca6419f0123ba18e8aca0a | [
"MIT"
] | 4 | 2015-01-18T15:46:35.000Z | 2017-04-08T00:39:05.000Z | #!/usr/bin/env python
"""image_const: node that continuously publishes a given image from file.
Publishes:
image_filename Image with topic name same as file name
"""
from __future__ import print_function
# TODO(irapha): remove this when #126 is fixed.
import sys
import rospy
import cv2
from cv_bridge import CvB... | 24.177778 | 73 | 0.705882 | 158 | 1,088 | 4.620253 | 0.512658 | 0.071233 | 0.065753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022573 | 0.185662 | 1,088 | 44 | 74 | 24.727273 | 0.801354 | 0.236213 | 0 | 0 | 0 | 0 | 0.068627 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.043478 | false | 0 | 0.26087 | 0 | 0.304348 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
715371a9830acbddb1f90c799a8aac02cf2e0071 | 5,456 | py | Python | hassio-google-drive-backup/backup/drive/authcodequery.py | voxipbx/hassio-addons | ddf2f1745f4240c2905f9f9d7616a927fb8934e4 | [
"MIT"
] | null | null | null | hassio-google-drive-backup/backup/drive/authcodequery.py | voxipbx/hassio-addons | ddf2f1745f4240c2905f9f9d7616a927fb8934e4 | [
"MIT"
] | null | null | null | hassio-google-drive-backup/backup/drive/authcodequery.py | voxipbx/hassio-addons | ddf2f1745f4240c2905f9f9d7616a927fb8934e4 | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from backup.config import Config, Setting
from backup.time import Time
from backup.exceptions import GoogleCredGenerateError, KnownError, LogicError, ensureKey
from aiohttp import ClientSession
from injector import inject
from .driverequests import DriveRequester
from backup.lo... | 50.518519 | 172 | 0.626833 | 623 | 5,456 | 5.393258 | 0.316212 | 0.029762 | 0.021429 | 0.035714 | 0.206845 | 0.155357 | 0.120238 | 0.097024 | 0.06131 | 0.06131 | 0 | 0.006703 | 0.28904 | 5,456 | 107 | 173 | 50.990654 | 0.8595 | 0.04967 | 0 | 0.065934 | 1 | 0.032967 | 0.242418 | 0.012942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010989 | false | 0 | 0.10989 | 0 | 0.142857 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7155aa112fd31cd38e10ab7268b5822f7430b877 | 1,508 | py | Python | android_backup/unpack.py | bluec0re/android-backup-tools | e2e0d95e56624c1a99a176df9e307398e837d908 | [
"Apache-2.0"
] | 16 | 2016-11-08T22:23:53.000Z | 2021-05-05T15:01:07.000Z | android_backup/unpack.py | bluec0re/android-backup-tools | e2e0d95e56624c1a99a176df9e307398e837d908 | [
"Apache-2.0"
] | 5 | 2017-10-19T07:52:19.000Z | 2018-06-06T17:19:34.000Z | android_backup/unpack.py | bluec0re/android-backup-tools | e2e0d95e56624c1a99a176df9e307398e837d908 | [
"Apache-2.0"
] | 5 | 2017-06-16T15:37:04.000Z | 2020-09-04T23:52:31.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# License: Apache-2.0
import argparse
from android_backup import AndroidBackup
import sys
def _description():
plat = sys.platform
supported_platform = plat != 'Pocket PC' and (plat != 'win32' or
'ANSICON' in os.env... | 25.133333 | 90 | 0.529841 | 152 | 1,508 | 5.019737 | 0.526316 | 0.047182 | 0.089122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034381 | 0.324934 | 1,508 | 59 | 91 | 25.559322 | 0.715128 | 0.051724 | 0 | 0.170213 | 0 | 0 | 0.234222 | 0.01683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0.06383 | 0.06383 | 0 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
715f628246cf4e5eb25139e7ac8e022cb92bd09b | 1,445 | py | Python | tests/extmod/btree1.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 37 | 2017-12-07T15:49:29.000Z | 2022-03-16T16:01:38.000Z | tests/extmod/btree1.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 2 | 2018-04-05T13:51:44.000Z | 2019-11-25T17:05:39.000Z | tests/extmod/btree1.py | peterson79/pycom-micropython-sigfox | 3f93fc2c02567c96f18cff4af9125db8fd7a6fb4 | [
"MIT"
] | 12 | 2018-01-25T21:48:58.000Z | 2020-09-04T21:25:31.000Z | try:
import btree
import uio
import uerrno
except ImportError:
print("SKIP")
import sys
sys.exit()
#f = open("_test.db", "w+b")
f = uio.BytesIO()
db = btree.open(f, pagesize=512)
db[b"foo3"] = b"bar3"
db[b"foo1"] = b"bar1"
db[b"foo2"] = b"bar2"
db[b"bar1"] = b"foo1"
dbstr = str(db)
print(dbst... | 16.055556 | 48 | 0.570934 | 262 | 1,445 | 3.145038 | 0.225191 | 0.033981 | 0.042476 | 0.059466 | 0.399272 | 0.336165 | 0.319175 | 0.239078 | 0.239078 | 0.239078 | 0 | 0.027257 | 0.187543 | 1,445 | 89 | 49 | 16.235955 | 0.674617 | 0.018685 | 0 | 0.323529 | 0 | 0 | 0.116443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073529 | 0 | 0.073529 | 0.470588 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7166fdc078225c11daff689cb8fb8c83d5c849a4 | 2,641 | py | Python | pages/luxmed.py | przor3n/selenium_automation | 88b43ea40936cf4eee8370e53dae8bfec9a8b19e | [
"MIT"
] | null | null | null | pages/luxmed.py | przor3n/selenium_automation | 88b43ea40936cf4eee8370e53dae8bfec9a8b19e | [
"MIT"
] | null | null | null | pages/luxmed.py | przor3n/selenium_automation | 88b43ea40936cf4eee8370e53dae8bfec9a8b19e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from time import sleep
from selenium.webdriver.common.by import By
from codelib.automation_testing.selenium_automation.selenium_automation.pages.base import \
BasePage
from codelib.automation_testing.selenium_automation.selenium_automation.timeunits import \
two, ... | 31.070588 | 130 | 0.626657 | 370 | 2,641 | 4.351351 | 0.254054 | 0.052795 | 0.043478 | 0.06087 | 0.381988 | 0.350311 | 0.341615 | 0.303106 | 0.191304 | 0.12795 | 0 | 0.015955 | 0.193109 | 2,641 | 84 | 131 | 31.440476 | 0.739559 | 0.170769 | 0 | 0.125 | 0 | 0.041667 | 0.221967 | 0.148897 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.083333 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7167160d16dc22d477f325b786a747102509e6cf | 1,008 | py | Python | class_0609/class_0609_1.py | diaosi168/Test-demo | e09ca45a7cd1b898da13ef07ab3ac0598c7fafe1 | [
"Apache-2.0"
] | null | null | null | class_0609/class_0609_1.py | diaosi168/Test-demo | e09ca45a7cd1b898da13ef07ab3ac0598c7fafe1 | [
"Apache-2.0"
] | null | null | null | class_0609/class_0609_1.py | diaosi168/Test-demo | e09ca45a7cd1b898da13ef07ab3ac0598c7fafe1 | [
"Apache-2.0"
] | null | null | null |
import unittest
import HTMLTestRunnerNew
'''class Add():
def add(self,a,b):
print(a+b)
#要求你们对这个add类里面的函数进行测试
#1 2/-1 -2/0 0/-1 2/不输入数据a/不输入数据b/两个数据都不输入
#小数
t=Add()
if t.add(1,2)==3:
print('用例通过')
t.add(-1,-2)
t.add(0,0)
t.add(-1,2)
t.add(None,2)
t.add(1,None)
t.add(None,None)'''
#from class_0609 i... | 22.909091 | 128 | 0.751984 | 147 | 1,008 | 5.054422 | 0.469388 | 0.043069 | 0.026918 | 0.024226 | 0.026918 | 0.026918 | 0 | 0 | 0 | 0 | 0 | 0.061471 | 0.09623 | 1,008 | 43 | 129 | 23.44186 | 0.754116 | 0.31746 | 0 | 0 | 0 | 0 | 0.07601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
716c9ef7a12c759c03779ad39a07cb728fd1d278 | 8,691 | py | Python | HOMEWORK 4/HW4_v2.py | valbuenaster/ML-Material | d99d118944be1eadf64d9b4391ece081a8be648d | [
"MIT"
] | null | null | null | HOMEWORK 4/HW4_v2.py | valbuenaster/ML-Material | d99d118944be1eadf64d9b4391ece081a8be648d | [
"MIT"
] | null | null | null | HOMEWORK 4/HW4_v2.py | valbuenaster/ML-Material | d99d118944be1eadf64d9b4391ece081a8be648d | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu May 11 17:21:33 2017
@author: Luis Ariel Valbuena Reyes
"""
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as pl
import matplotlib.colors as mplc
import numpy as np
#from svmutil import *
import math
def generate_data(N,n_elements,phi... | 31.039286 | 102 | 0.58923 | 1,291 | 8,691 | 3.906274 | 0.185128 | 0.028753 | 0.023795 | 0.024985 | 0.470355 | 0.382709 | 0.369225 | 0.308943 | 0.279001 | 0.252627 | 0 | 0.024585 | 0.251179 | 8,691 | 280 | 103 | 31.039286 | 0.750307 | 0.366931 | 0 | 0.161765 | 0 | 0 | 0.041165 | 0.020301 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036765 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
716ff4cc8f5207c28bdbebb921e1c8f7472c6790 | 4,853 | py | Python | ThirdParty/protobuf-registry/tasks/rewrite.py | getcircle/luno-ios | d18260abb537496d86cf607c170dd5e91c406f0f | [
"MIT"
] | null | null | null | ThirdParty/protobuf-registry/tasks/rewrite.py | getcircle/luno-ios | d18260abb537496d86cf607c170dd5e91c406f0f | [
"MIT"
] | null | null | null | ThirdParty/protobuf-registry/tasks/rewrite.py | getcircle/luno-ios | d18260abb537496d86cf607c170dd5e91c406f0f | [
"MIT"
] | null | null | null | import os
import re
from invoke import task
import yaml
from . import common
PACKAGE_RE = re.compile('^package ([^;]+)')
OPTION_RE = re.compile('^option ([^;]+)')
@task
def options():
print 'rewriting options...'
with common.base_directory():
with open('headers.yml') as headers_file:
hea... | 42.2 | 118 | 0.431074 | 422 | 4,853 | 4.770142 | 0.263033 | 0.04769 | 0.022355 | 0.020864 | 0.087432 | 0.087432 | 0.031793 | 0.031793 | 0.031793 | 0 | 0 | 0.005177 | 0.482588 | 4,853 | 114 | 119 | 42.570175 | 0.796495 | 0.046363 | 0 | 0.107527 | 0 | 0 | 0.071413 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053763 | null | null | 0.043011 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
717415eb226c58278a02dc0481d78c8ba8736725 | 5,178 | py | Python | demo/objsearch/objsearch.py | dgtlmoon/deepdetect | 0b2f20be8211a95b1fea3a600f0d5ba17b8d339f | [
"Apache-2.0"
] | 1,672 | 2015-05-26T19:20:11.000Z | 2022-03-12T10:09:09.000Z | demo/objsearch/objsearch.py | dgtlmoon/deepdetect | 0b2f20be8211a95b1fea3a600f0d5ba17b8d339f | [
"Apache-2.0"
] | 401 | 2018-05-16T21:59:43.000Z | 2022-03-30T07:52:15.000Z | demo/objsearch/objsearch.py | dgtlmoon/deepdetect | 0b2f20be8211a95b1fea3a600f0d5ba17b8d339f | [
"Apache-2.0"
] | 412 | 2015-06-02T08:12:42.000Z | 2021-06-07T03:32:03.000Z | import os, sys, argparse
from os import listdir
from os.path import isfile, join
from os import walk
from dd_client import DD
from annoy import AnnoyIndex
import shelve
import cv2
parser = argparse.ArgumentParser()
parser.add_argument("--index",help="repository of images to be indexed")
parser.add_argument("--index-ba... | 34.986486 | 140 | 0.612978 | 687 | 5,178 | 4.526929 | 0.30131 | 0.02701 | 0.038264 | 0.038585 | 0.186495 | 0.146624 | 0.075241 | 0.075241 | 0.075241 | 0.075241 | 0 | 0.01836 | 0.232136 | 5,178 | 147 | 141 | 35.22449 | 0.763833 | 0.033024 | 0 | 0.111111 | 0 | 0 | 0.158527 | 0.004404 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015873 | 0.063492 | null | null | 0.039683 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7176b7d16d77abbb59dff0d9c6fb1353bb11a817 | 2,448 | py | Python | setup.py | bartash/impyla | 9f7ced4ce19df6af8a91c519ee668174d9ece76b | [
"Apache-2.0"
] | null | null | null | setup.py | bartash/impyla | 9f7ced4ce19df6af8a91c519ee668174d9ece76b | [
"Apache-2.0"
] | null | null | null | setup.py | bartash/impyla | 9f7ced4ce19df6af8a91c519ee668174d9ece76b | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 35.478261 | 77 | 0.656454 | 299 | 2,448 | 5.284281 | 0.518395 | 0.120253 | 0.158228 | 0.11519 | 0.062025 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025105 | 0.218954 | 2,448 | 68 | 78 | 36 | 0.801255 | 0.226716 | 0 | 0.0625 | 0 | 0 | 0.460064 | 0.064963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | true | 0 | 0.083333 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
717b4807e4796cf12cd21c84e097db668c5757ef | 601 | py | Python | python/get_allpages.py | quiddity-wp/mediawiki-api-demos | 98910dbd9c2cbbb13db790f3e8979419aeab34d4 | [
"MIT"
] | 63 | 2019-05-19T13:22:37.000Z | 2022-03-30T13:21:40.000Z | python/get_allpages.py | quiddity-wp/mediawiki-api-demos | 98910dbd9c2cbbb13db790f3e8979419aeab34d4 | [
"MIT"
] | 67 | 2019-05-03T17:17:19.000Z | 2021-06-21T11:02:10.000Z | python/get_allpages.py | quiddity-wp/mediawiki-api-demos | 98910dbd9c2cbbb13db790f3e8979419aeab34d4 | [
"MIT"
] | 49 | 2019-02-19T09:28:33.000Z | 2019-03-24T04:36:53.000Z | #This file is auto-generated. See modules.json and autogenerator.py for details
#!/usr/bin/python3
"""
get_allpages.py
MediaWiki API Demos
Demo of `Allpages` module: Get all pages whose title contains the text
"Jungle," in whole or part.
MIT License
"""
import requests
S = requests.Session()
... | 17.171429 | 79 | 0.642263 | 84 | 601 | 4.583333 | 0.702381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002088 | 0.202995 | 601 | 34 | 80 | 17.676471 | 0.80167 | 0.40599 | 0 | 0 | 1 | 0 | 0.295732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71805420aea43f7910a0c4eb375ed81d071867c6 | 858 | py | Python | redirink/links/serializers.py | Egor4ik325/redirink | 17ef85f48145ee6112f2fcbab60dcd9d65ba78bf | [
"MIT"
] | null | null | null | redirink/links/serializers.py | Egor4ik325/redirink | 17ef85f48145ee6112f2fcbab60dcd9d65ba78bf | [
"MIT"
] | null | null | null | redirink/links/serializers.py | Egor4ik325/redirink | 17ef85f48145ee6112f2fcbab60dcd9d65ba78bf | [
"MIT"
] | 1 | 2021-12-31T00:46:31.000Z | 2021-12-31T00:46:31.000Z | from django.urls import reverse
from rest_framework import serializers
from redirink.links.models import Link
class LinkSerializer(serializers.ModelSerializer):
"""
Serializer to dict for link.
"""
user = serializers.HiddenField(default=serializers.CurrentUserDefault())
from_url = serializers.Se... | 28.6 | 76 | 0.63986 | 95 | 858 | 5.631579 | 0.526316 | 0.039252 | 0.04486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229604 | 858 | 29 | 77 | 29.586207 | 0.80938 | 0.032634 | 0 | 0 | 0 | 0 | 0.170762 | 0.066339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0.052632 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7184c2356bff5c27e34a678aa83c2efc2b15cc2a | 2,964 | py | Python | spacedrive/renderpipeline/rpcore/pynative/rp_point_light.py | croxis/SpaceDrive | 3f610cf72002beb11e73a47c2f118e35ff2d9575 | [
"MIT"
] | 5 | 2016-01-02T05:23:37.000Z | 2017-07-01T13:53:36.000Z | spacedrive/renderpipeline/rpcore/pynative/rp_point_light.py | croxis/SpaceDrive | 3f610cf72002beb11e73a47c2f118e35ff2d9575 | [
"MIT"
] | 1 | 2016-06-28T08:43:59.000Z | 2016-07-07T20:28:43.000Z | spacedrive/renderpipeline/rpcore/pynative/rp_point_light.py | croxis/SpaceDrive | 3f610cf72002beb11e73a47c2f118e35ff2d9575 | [
"MIT"
] | null | null | null | """
RenderPipeline
Copyright (c) 2014-2016 tobspr <tobias.springer1@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the right... | 36.146341 | 86 | 0.698381 | 413 | 2,964 | 4.842615 | 0.414044 | 0.066 | 0.0375 | 0.014 | 0.0885 | 0.038 | 0.01 | 0 | 0 | 0 | 0 | 0.021882 | 0.229082 | 2,964 | 81 | 87 | 36.592593 | 0.853392 | 0.42274 | 0 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.210526 | false | 0 | 0.105263 | 0.052632 | 0.447368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
718b7506fb817d67eb05a4715f93df013c973668 | 7,942 | py | Python | misc_code/train_shapes_old.py | kbardool/Mask_RCNN_2 | dc0c5ef3615cff8ffea162c347aec7a7ab88188b | [
"MIT"
] | 7 | 2018-08-07T13:56:32.000Z | 2021-04-06T11:07:20.000Z | misc_code/train_shapes_old.py | kbardool/Contextual-Inference-V2 | f4cbb1e34de97ab08558b56fb7362647436edbd7 | [
"MIT"
] | null | null | null | misc_code/train_shapes_old.py | kbardool/Contextual-Inference-V2 | f4cbb1e34de97ab08558b56fb7362647436edbd7 | [
"MIT"
] | 1 | 2018-05-27T02:44:50.000Z | 2018-05-27T02:44:50.000Z |
# coding: utf-8
# # Mask R-CNN - Train on Shapes Dataset
#
#
# This notebook shows how to train Mask R-CNN on your own dataset. To keep things simple we use a synthetic dataset of shapes (squares, triangles, and circles) which enables fast training. You'd still need a GPU, though, because the network backbone is a ... | 33.940171 | 413 | 0.714052 | 1,177 | 7,942 | 4.639762 | 0.279524 | 0.031313 | 0.010987 | 0.013734 | 0.224867 | 0.156565 | 0.126717 | 0.116462 | 0.116462 | 0.088262 | 0 | 0.008354 | 0.186099 | 7,942 | 233 | 414 | 34.085837 | 0.836479 | 0.6414 | 0 | 0.031746 | 0 | 0 | 0.089658 | 0.019345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0 | 0.301587 | 0 | 0.333333 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
719187b97e3baa0b70627475045a94c7fd612471 | 1,352 | py | Python | core/python/spirit/constants.py | Zeleznyj/spirit | 5e23bf3be5aa4bacf5aae24514b0b22cbd395619 | [
"MIT"
] | 2 | 2020-11-12T13:54:22.000Z | 2021-11-05T09:10:27.000Z | core/python/spirit/constants.py | SpiritSuperUser/spirit | fbe69c2a9b7a73e8f47d302c619303aea2a22ace | [
"MIT"
] | null | null | null | core/python/spirit/constants.py | SpiritSuperUser/spirit | fbe69c2a9b7a73e8f47d302c619303aea2a22ace | [
"MIT"
] | null | null | null | import spirit.spiritlib as spiritlib
import ctypes
from spirit.scalar import scalar
# Load Library
_spirit = spiritlib.LoadSpiritLibrary()
# The Bohr Magneton [meV / T]
_mu_B = _spirit.Constants_mu_B
_mu_B.argtypes = None
_mu_B.restype = scalar
def mu_B():
return _mu_B()
# The vacuum permeability [... | 21.460317 | 47 | 0.663462 | 193 | 1,352 | 4.26943 | 0.253886 | 0.145631 | 0.15534 | 0.041262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007767 | 0.238166 | 1,352 | 63 | 48 | 21.460317 | 0.792233 | 0.188609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.068182 | 0.181818 | 0.431818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
71940118a1a2efc8e6474e753282da36735cea72 | 517 | py | Python | test/dqn.py | AliKhalili/girdword | 3f31a961847599b84a11f76846d2d361caeb7e5b | [
"MIT"
] | null | null | null | test/dqn.py | AliKhalili/girdword | 3f31a961847599b84a11f76846d2d361caeb7e5b | [
"MIT"
] | null | null | null | test/dqn.py | AliKhalili/girdword | 3f31a961847599b84a11f76846d2d361caeb7e5b | [
"MIT"
] | null | null | null | import os
from rl.control.DQN import DQN
from rl.control.QLearning import QLearning
from rl.environment.mdp.MDPGrid import MDPGrid
alpha = 0.1
gamma = 0.9
learning_rate = 0.001
epsilon = 0.1
number_of_episode = 200
environment = MDPGrid(json_path=os.path.join(os.getcwd(), f'../env/env_10.json'))
#environment.render(... | 27.210526 | 121 | 0.791103 | 79 | 517 | 5.025316 | 0.506329 | 0.04534 | 0.065491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031915 | 0.090909 | 517 | 18 | 122 | 28.722222 | 0.812766 | 0.112186 | 0 | 0 | 0 | 0 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7195047d34d99eda9de2cde2431338d06de91ba0 | 339 | py | Python | cloud_storage/migrations/0003_auto_20190424_0822.py | rowsheet/rowsheet | b9127796846ab02af302957dc1d275d0623c64ed | [
"FSFAP"
] | null | null | null | cloud_storage/migrations/0003_auto_20190424_0822.py | rowsheet/rowsheet | b9127796846ab02af302957dc1d275d0623c64ed | [
"FSFAP"
] | null | null | null | cloud_storage/migrations/0003_auto_20190424_0822.py | rowsheet/rowsheet | b9127796846ab02af302957dc1d275d0623c64ed | [
"FSFAP"
] | null | null | null | # Generated by Django 2.2 on 2019-04-24 08:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cloud_storage', '0002_auto_20190424_0756'),
]
operations = [
migrations.RenameModel(
old_name='TestFile',
new_name='CloudFile'... | 18.833333 | 53 | 0.60767 | 36 | 339 | 5.555556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123967 | 0.286136 | 339 | 17 | 54 | 19.941176 | 0.702479 | 0.126844 | 0 | 0 | 1 | 0 | 0.180272 | 0.078231 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
719da740f1a8a20598c3a37260ec8ad1b48238a7 | 3,453 | py | Python | sloppy/date_time.py | frankherfert/sloppy | def7612d85f453af138e98ed60cf60d315679d67 | [
"Apache-2.0"
] | 2 | 2020-06-05T11:51:33.000Z | 2020-08-10T13:42:49.000Z | sloppy/date_time.py | frankherfert/sloppy | def7612d85f453af138e98ed60cf60d315679d67 | [
"Apache-2.0"
] | null | null | null | sloppy/date_time.py | frankherfert/sloppy | def7612d85f453af138e98ed60cf60d315679d67 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
from pandas.api.types import is_numeric_dtype
from datetime import date, datetime
import calendar
def add_datetime_features(df, datetime_columns: list, add_time_features=False, scale_0_to_1=True,
cos_sin_transform=True, return_new_cols=True) -> pd.DataFrame:
... | 47.30137 | 128 | 0.523892 | 502 | 3,453 | 3.294821 | 0.173307 | 0.088875 | 0.177751 | 0.198307 | 0.511487 | 0.413543 | 0.276904 | 0.230955 | 0.230955 | 0.185006 | 0 | 0.014169 | 0.325514 | 3,453 | 73 | 129 | 47.30137 | 0.696007 | 0.103099 | 0 | 0.1875 | 0 | 0 | 0.241839 | 0.069287 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.104167 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71a78b30bc702d0228c741ae6025305e2241caec | 2,653 | py | Python | pptutils.py | TomWildenhain/pptcc | ea44b2d2b0dbb6c449f76065309adec696408e46 | [
"MIT"
] | 448 | 2020-04-01T23:37:24.000Z | 2022-03-20T20:27:48.000Z | pptutils.py | TomWildenhain/pptcc | ea44b2d2b0dbb6c449f76065309adec696408e46 | [
"MIT"
] | 8 | 2020-04-06T11:06:51.000Z | 2020-05-09T22:37:17.000Z | pptutils.py | TomWildenhain/pptcc | ea44b2d2b0dbb6c449f76065309adec696408e46 | [
"MIT"
] | 33 | 2020-04-06T10:10:20.000Z | 2022-03-29T10:43:41.000Z | def hex_to_int(hex):
assert hex.startswith('0x')
hex = hex[2:]
total = 0
for h in hex:
total *= 16
total += '0123456789abcdef'.index(h)
return total
def byte_to_uint(byte):
total = 0
for c in byte:
total *= 2
if c == '1':
total += 1
return tot... | 19.798507 | 54 | 0.429702 | 403 | 2,653 | 2.746898 | 0.114144 | 0.0271 | 0.056911 | 0.054201 | 0.663957 | 0.607949 | 0.586269 | 0.586269 | 0.586269 | 0.586269 | 0 | 0.074172 | 0.430833 | 2,653 | 134 | 55 | 19.798507 | 0.65894 | 0 | 0 | 0.722689 | 0 | 0 | 0.016956 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 1 | 0.134454 | false | 0 | 0 | 0.008403 | 0.268908 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71ab091d010fa95316e1736e7c5d3f30eea2cccb | 748 | py | Python | accounts/migrations/0007_alter_managers_active_phone_number_and_more.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | 1 | 2022-03-16T13:29:30.000Z | 2022-03-16T13:29:30.000Z | accounts/migrations/0007_alter_managers_active_phone_number_and_more.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | accounts/migrations/0007_alter_managers_active_phone_number_and_more.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-20 18:37
from django.db import migrations
import phonenumber_field.modelfields
class Migration(migrations.Migration):
dependencies = [
('accounts', '0006_alter_profile_phone'),
]
operations = [
migrations.AlterField(
model_name='manager... | 28.769231 | 119 | 0.652406 | 75 | 748 | 6.306667 | 0.6 | 0.10148 | 0.171247 | 0.122622 | 0.384778 | 0.291755 | 0.291755 | 0.291755 | 0.291755 | 0 | 0 | 0.065719 | 0.247326 | 748 | 25 | 120 | 29.92 | 0.774423 | 0.06016 | 0 | 0.315789 | 1 | 0 | 0.1398 | 0.034237 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71aca9091b9b73453251db8c398b78ca9a5b8201 | 326 | py | Python | codeChef/practice/easy/lucky1.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-09-30T19:53:08.000Z | 2020-09-30T19:53:08.000Z | codeChef/practice/easy/lucky1.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | null | null | null | codeChef/practice/easy/lucky1.py | gauravsingh58/algo | 397859a53429e7a585e5f6964ad24146c6261326 | [
"WTFPL"
] | 1 | 2020-10-15T09:10:57.000Z | 2020-10-15T09:10:57.000Z | res, four, seven, cnt = [0], [0], [0], [1] + [0] * 11111
for i in xrange(1, 100001):
s = str(i)
four.append(s.count("4") + four[-1])
seven.append(s.count("7") + seven[-1])
diff = four[-1] - seven[-1]
res.append(cnt[diff] + res[-1])
cnt[diff] += 1
for _ in xrange(int(raw_input())):
print res[int(raw_inp... | 25.076923 | 56 | 0.558282 | 58 | 326 | 3.086207 | 0.396552 | 0.022346 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093985 | 0.184049 | 326 | 13 | 57 | 25.076923 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71b2c7d6f4a71f10af6a28323c1172241e9df8df | 1,635 | py | Python | insights/parsers/tests/test_ip_netns_exec_namespace_lsof.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | 121 | 2017-05-30T20:23:25.000Z | 2022-03-23T12:52:15.000Z | insights/parsers/tests/test_ip_netns_exec_namespace_lsof.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | 1,977 | 2017-05-26T14:36:03.000Z | 2022-03-31T10:38:53.000Z | insights/parsers/tests/test_ip_netns_exec_namespace_lsof.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | 244 | 2017-05-30T20:22:57.000Z | 2022-03-26T10:09:39.000Z | from insights.parsers import SkipException
from insights.parsers import ip_netns_exec_namespace_lsof
from insights.parsers.ip_netns_exec_namespace_lsof import IpNetnsExecNamespaceLsofI
from insights.tests import context_wrap
import doctest
import pytest
IP_NETNS_EXEC_NAMESPACE_LSOF_I = """
COMMAND PID USER FD ... | 32.7 | 91 | 0.730887 | 219 | 1,635 | 5.200913 | 0.319635 | 0.061457 | 0.096576 | 0.175593 | 0.527656 | 0.429324 | 0.407375 | 0.298507 | 0.298507 | 0.071993 | 0 | 0.019809 | 0.166361 | 1,635 | 49 | 92 | 33.367347 | 0.815847 | 0 | 0 | 0.189189 | 0 | 0 | 0.171254 | 0 | 0 | 0 | 0 | 0 | 0.243243 | 1 | 0.108108 | false | 0 | 0.162162 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71b7a9e0985c74fd2013d41b81b5e32cf3766b8c | 1,182 | py | Python | hearthstone/battlebots/get_bot_contestants.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | hearthstone/battlebots/get_bot_contestants.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | hearthstone/battlebots/get_bot_contestants.py | dianarvp/stone_ground_hearth_battles | 450e70eaef21b543be579a6d696676fb148a99b0 | [
"Apache-2.0"
] | null | null | null | from inspect import getmembers, isfunction
from hearthstone.battlebots.early_game_bot import EarlyGameBot
from hearthstone.battlebots.priority_functions import racist_priority_bot
from hearthstone.battlebots.hero_bot import HeroBot
from hearthstone.battlebots.priority_bot import PriorityBot
from hearthstone.battlebots... | 42.214286 | 102 | 0.704738 | 132 | 1,182 | 5.969697 | 0.310606 | 0.114213 | 0.158629 | 0.083756 | 0.119289 | 0.119289 | 0.119289 | 0.119289 | 0.119289 | 0.119289 | 0 | 0.004391 | 0.229272 | 1,182 | 27 | 103 | 43.777778 | 0.860593 | 0 | 0 | 0.086957 | 0 | 0 | 0.068528 | 0.068528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.304348 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
71ba6c02acaadce0ec83dd0bd80d026cb6e1f390 | 1,062 | py | Python | linux_troubleshooting/logs/log_parser.py | aikrasnov/otus-examples | 607fe0c11d812bdff57d92fc0949d5bdf3356c22 | [
"MIT"
] | 8 | 2019-11-03T18:59:08.000Z | 2020-10-10T18:50:09.000Z | linux_troubleshooting/logs/log_parser.py | aikrasnov/otus-examples | 607fe0c11d812bdff57d92fc0949d5bdf3356c22 | [
"MIT"
] | null | null | null | linux_troubleshooting/logs/log_parser.py | aikrasnov/otus-examples | 607fe0c11d812bdff57d92fc0949d5bdf3356c22 | [
"MIT"
] | null | null | null | import argparse
import re
import json
from collections import defaultdict
# from collections import Counter TODO: не забыть упомянуть
parser = argparse.ArgumentParser(description='Process access.log')
# https://docs.python.org/3/library/argparse.html
# https://docs.python.org/3/library/argparse.html#the-add-argument-... | 36.62069 | 172 | 0.659134 | 170 | 1,062 | 4.082353 | 0.558824 | 0.034582 | 0.017291 | 0.017291 | 0.126801 | 0.126801 | 0.126801 | 0.126801 | 0.017291 | 0 | 0 | 0.080842 | 0.149718 | 1,062 | 28 | 173 | 37.928571 | 0.687708 | 0.354049 | 0 | 0 | 0 | 0.0625 | 0.150221 | 0.050074 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71bc43f7598fb77c13660fdab3df611419e94863 | 19,679 | py | Python | GENe_Mac/GENe.py | newOnahtaN/Genie-GENe-Cataloger | 3d19191e89e1b7543d99b98e39ef78d1743e15ff | [
"MIT"
] | 1 | 2018-07-19T05:57:25.000Z | 2018-07-19T05:57:25.000Z | GENe_Mac/GENe.py | newOnahtaN/Genie-GENe-Cataloger | 3d19191e89e1b7543d99b98e39ef78d1743e15ff | [
"MIT"
] | null | null | null | GENe_Mac/GENe.py | newOnahtaN/Genie-GENe-Cataloger | 3d19191e89e1b7543d99b98e39ef78d1743e15ff | [
"MIT"
] | null | null | null | import os
import wx
import sys
import time
import shlex
import subprocess
import __future__
from Bio.Blast import NCBIWWW
from Bio.Blast import NCBIXML
from Bio.Blast.Applications import *
from Bio import SeqIO
from xlrd import open_workbook
from xlwt import Workbook
from threading import Thread
#GENe RNA Cataloger - ... | 35.457658 | 387 | 0.708166 | 2,792 | 19,679 | 4.979943 | 0.203438 | 0.016182 | 0.022152 | 0.013449 | 0.387514 | 0.357955 | 0.334005 | 0.319045 | 0.309264 | 0.305236 | 0 | 0.008118 | 0.186239 | 19,679 | 554 | 388 | 35.521661 | 0.860122 | 0.177448 | 0 | 0.404682 | 0 | 0.036789 | 0.259182 | 0.012563 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010033 | 0.046823 | null | null | 0.070234 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71be451ad3d46bd28dc9f5661d8b1032c303e0e4 | 1,960 | py | Python | src/models/train_model.py | suzinyou/ubi_articles | fd4ffbf7d110055e5602d6c7def3c52c200809b5 | [
"RSA-MD"
] | 1 | 2021-03-03T12:22:01.000Z | 2021-03-03T12:22:01.000Z | src/models/train_model.py | suzinyou/ubi_articles | fd4ffbf7d110055e5602d6c7def3c52c200809b5 | [
"RSA-MD"
] | null | null | null | src/models/train_model.py | suzinyou/ubi_articles | fd4ffbf7d110055e5602d6c7def3c52c200809b5 | [
"RSA-MD"
] | null | null | null | import os
import re
import pickle
from pprint import pprint
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import pyLDAvis
import pyLDAvis.sklearn
pyLDAvis.enable_notebook(local=True)
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.decomposition impo... | 33.220339 | 113 | 0.728571 | 288 | 1,960 | 4.649306 | 0.336806 | 0.057506 | 0.131441 | 0.065721 | 0.309933 | 0.309933 | 0.309933 | 0.309933 | 0.215833 | 0.188947 | 0 | 0.011016 | 0.166327 | 1,960 | 59 | 114 | 33.220339 | 0.808446 | 0.103061 | 0 | 0 | 0 | 0 | 0.075299 | 0.053622 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
71c00a510ad995f39b4b4e3dd19276abfa3cb313 | 3,633 | py | Python | get_user_profile.py | appletime81/web-crawler-for-facebook-comment | 1560a7322b8206e1948a9d386a742f0a4a2b7af4 | [
"MIT"
] | null | null | null | get_user_profile.py | appletime81/web-crawler-for-facebook-comment | 1560a7322b8206e1948a9d386a742f0a4a2b7af4 | [
"MIT"
] | null | null | null | get_user_profile.py | appletime81/web-crawler-for-facebook-comment | 1560a7322b8206e1948a9d386a742f0a4a2b7af4 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
import time
import re
# global variables
comment_type_list = ['最相關留言', '最新', '所有留言']
def browse_post(driver, url):
if 'groups' not in url:
url = url.replace('www.', 'm.')
driver.get(url)
time.sleep(2) # 等待網頁跑完
# 把所有留言點擊出來
all_comment_btn = driver.find_elem... | 35.970297 | 126 | 0.511423 | 415 | 3,633 | 4.255422 | 0.298795 | 0.056625 | 0.073613 | 0.057758 | 0.370895 | 0.34145 | 0.323896 | 0.323896 | 0.255946 | 0.209513 | 0 | 0.020009 | 0.394715 | 3,633 | 100 | 127 | 36.33 | 0.783083 | 0.018442 | 0 | 0.390805 | 0 | 0 | 0.110705 | 0.06041 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.08046 | 0.034483 | 0 | 0.091954 | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
71c36ab7743480088d0d78380c4678c5f121d156 | 15,891 | py | Python | amos.py | tgensol/AMOS | cc74f0df036ec34dba65762afcd95872d3855db9 | [
"MIT"
] | 1 | 2021-05-06T16:25:11.000Z | 2021-05-06T16:25:11.000Z | amos.py | tgensol/AMOS | cc74f0df036ec34dba65762afcd95872d3855db9 | [
"MIT"
] | null | null | null | amos.py | tgensol/AMOS | cc74f0df036ec34dba65762afcd95872d3855db9 | [
"MIT"
] | 1 | 2021-02-06T04:32:01.000Z | 2021-02-06T04:32:01.000Z | """ Automated model order selection (AMOS) algorithm for spectral graph clustering (SGC)
"""
# Author: Pin-Yu Chen <pinyu@umich.edu>, Thibaut Gensollen <thibaut.gensollen@ens-cachan.fr>, Alfred O. Hero III, Fellow, IEEE <hero@umich.edu>
# License: BSD 3 clause
# Copyright: University of Michigan
from __future__ impo... | 35.235033 | 164 | 0.538103 | 2,084 | 15,891 | 4.019674 | 0.179942 | 0.003581 | 0.015519 | 0.021487 | 0.283634 | 0.249254 | 0.216903 | 0.196013 | 0.172377 | 0.138355 | 0 | 0.023216 | 0.335913 | 15,891 | 451 | 165 | 35.235033 | 0.770587 | 0.076144 | 0 | 0.243243 | 0 | 0 | 0.042822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023649 | 0.040541 | null | null | 0.050676 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71c70c4b1b7f0adbf9361e76943cb9ea5bbf457b | 2,312 | py | Python | cedar/cli/config.py | ceholden/cedar-datacube | d9463a28ce52665faaed069481d34a5ebe60558e | [
"BSD-3-Clause"
] | 12 | 2019-07-19T17:35:24.000Z | 2021-12-29T20:22:12.000Z | cedar/cli/config.py | ceholden/cedar-datacube | d9463a28ce52665faaed069481d34a5ebe60558e | [
"BSD-3-Clause"
] | null | null | null | cedar/cli/config.py | ceholden/cedar-datacube | d9463a28ce52665faaed069481d34a5ebe60558e | [
"BSD-3-Clause"
] | 2 | 2019-10-06T06:36:39.000Z | 2020-06-15T04:07:07.000Z | """ CLI tools for working with cedar configuration files
"""
import json
import logging
import os
from pathlib import Path
import shutil
import click
from . import options
@click.group('config', help='Create or check cedar configuration files')
@click.pass_context
def group_config(ctx):
pass
@group_config.com... | 29.265823 | 79 | 0.67474 | 318 | 2,312 | 4.811321 | 0.342767 | 0.052288 | 0.04183 | 0.049673 | 0.101307 | 0.055556 | 0.039216 | 0 | 0 | 0 | 0 | 0.000543 | 0.204152 | 2,312 | 78 | 80 | 29.641026 | 0.830978 | 0.070069 | 0 | 0.160714 | 0 | 0 | 0.187793 | 0.021127 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.089286 | 0.178571 | 0 | 0.25 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
71c7613557451fdd4b2467b9669859c21e6524e2 | 8,962 | py | Python | pylandtemp/pylandtemp.py | dongyi1996/pylandtemp | 8d5f154bc6972da90c7e8f2823cd4733caeb4969 | [
"Apache-2.0"
] | 2 | 2021-12-12T04:14:36.000Z | 2022-01-26T10:15:36.000Z | pylandtemp/pylandtemp.py | dongyi1996/pylandtemp | 8d5f154bc6972da90c7e8f2823cd4733caeb4969 | [
"Apache-2.0"
] | null | null | null | pylandtemp/pylandtemp.py | dongyi1996/pylandtemp | 8d5f154bc6972da90c7e8f2823cd4733caeb4969 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from .temperature import default_algorithms as temperature_algorithms
from .emissivity import default_algorithms as emissivity_algorithms
from .temperature import BrightnessTemperatureLandsat
from .runner import Runner
from .utils import compute_ndvi
from .exceptions import *
def split_window(
... | 38.299145 | 126 | 0.629547 | 1,114 | 8,962 | 4.859066 | 0.128366 | 0.136154 | 0.053205 | 0.029558 | 0.749861 | 0.707741 | 0.667652 | 0.627563 | 0.607981 | 0.580824 | 0 | 0.039184 | 0.299487 | 8,962 | 233 | 127 | 38.463519 | 0.823033 | 0.446552 | 0 | 0.439655 | 0 | 0.017241 | 0.161401 | 0.054159 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043103 | false | 0.017241 | 0.060345 | 0 | 0.146552 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71cc812942b52901aadca73396a71d116ce8da5e | 2,350 | py | Python | tests/test_session.py | jmsking/pykube | 2fa2aedfe7d2b188f629c881e80f5b955200c871 | [
"Apache-2.0"
] | 116 | 2019-03-03T17:19:09.000Z | 2021-11-15T11:30:13.000Z | tests/test_session.py | jmsking/pykube | 2fa2aedfe7d2b188f629c881e80f5b955200c871 | [
"Apache-2.0"
] | 62 | 2019-03-03T09:11:03.000Z | 2020-10-02T18:55:21.000Z | tests/test_session.py | valohai/pykube | e343c7a389b94d532df991d611daa947b24e0277 | [
"Apache-2.0"
] | 35 | 2019-03-25T08:32:13.000Z | 2020-12-05T07:09:45.000Z | """
pykube.http unittests
"""
import copy
import logging
import tempfile
from pathlib import Path
from . import TestCase
BASE_CONFIG = {
"clusters": [
{"name": "test-cluster", "cluster": {"server": "http://localhost:8080"}}
],
"contexts": [
{
"name": "test-cluster",
... | 29.012346 | 118 | 0.503404 | 209 | 2,350 | 5.555024 | 0.521531 | 0.027562 | 0.079242 | 0.029285 | 0.167097 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0.021262 | 0.359574 | 2,350 | 80 | 119 | 29.375 | 0.750166 | 0.250213 | 0 | 0.035714 | 0 | 0 | 0.243196 | 0.019687 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.035714 | false | 0 | 0.089286 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71ceb3e87370fb7197bcf28e30f3512e333e5205 | 125,735 | py | Python | dict-amber/amber_model_building_works.py | Shadybloom/army-structure-analyser | 1fd3b3fe86c83332258c314a22415f2d914a254f | [
"MIT"
] | null | null | null | dict-amber/amber_model_building_works.py | Shadybloom/army-structure-analyser | 1fd3b3fe86c83332258c314a22415f2d914a254f | [
"MIT"
] | null | null | null | dict-amber/amber_model_building_works.py | Shadybloom/army-structure-analyser | 1fd3b3fe86c83332258c314a22415f2d914a254f | [
"MIT"
] | null | null | null | #----
# Строительство зданий, сооружений (коррекция величин):
metadict_model['Кирпичная кладка в 0.5 кирпича (квадратный метр)'] = {
# http://www.gvozdem.ru/stroim-dom/kirpichnaya-kladka.php
# Толщина 125 мм:
'Кирпичная кладка (кубометр)':0.125,
}
metadict_model['Кирпичная кладка в 1 к... | 53.23243 | 156 | 0.646033 | 14,671 | 125,735 | 5.516666 | 0.118261 | 0.029715 | 0.012504 | 0.017051 | 0.747859 | 0.689998 | 0.622759 | 0.531019 | 0.461741 | 0.408575 | 0 | 0.101596 | 0.250678 | 125,735 | 2,361 | 157 | 53.254977 | 0.757398 | 0.365857 | 0 | 0.232653 | 0 | 0 | 0.588943 | 0.000915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71d3ec1853073bfdeb1e38501791a3a0dd293b63 | 8,594 | py | Python | UltronRoBo/modules/helper_funcs/msg_types.py | UltronRoBo/UltronRoBoAssistant | 874dcf725d453ffabd85543533d2a07676af4d65 | [
"MIT"
] | null | null | null | UltronRoBo/modules/helper_funcs/msg_types.py | UltronRoBo/UltronRoBoAssistant | 874dcf725d453ffabd85543533d2a07676af4d65 | [
"MIT"
] | null | null | null | UltronRoBo/modules/helper_funcs/msg_types.py | UltronRoBo/UltronRoBoAssistant | 874dcf725d453ffabd85543533d2a07676af4d65 | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2021 UltronRoBo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | 34.653226 | 88 | 0.665697 | 1,177 | 8,594 | 4.636364 | 0.158029 | 0.118747 | 0.148433 | 0.252336 | 0.701851 | 0.641928 | 0.599963 | 0.586036 | 0.559648 | 0.51915 | 0 | 0.00444 | 0.266232 | 8,594 | 247 | 89 | 34.793522 | 0.860926 | 0.18222 | 0 | 0.594444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.016667 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71d5d29214f2776a5d47d9130eb0929ae26737a2 | 580 | py | Python | momentum/management/commands/fixstatus.py | mod2/momentum | 07eef30b931ddf73d9ae0a5023acbc0cd02671e8 | [
"MIT"
] | 2 | 2016-02-29T05:48:56.000Z | 2021-12-05T22:47:31.000Z | momentum/management/commands/fixstatus.py | mod2/momentum | 07eef30b931ddf73d9ae0a5023acbc0cd02671e8 | [
"MIT"
] | 1 | 2015-09-23T16:10:56.000Z | 2015-09-23T17:21:31.000Z | momentum/management/commands/fixstatus.py | mod2/momentum | 07eef30b931ddf73d9ae0a5023acbc0cd02671e8 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand, CommandError
from momentum.models import Goal, Entry
from django.contrib.auth.models import User
import sqlite3
import datetime
class Command(BaseCommand):
args = ''
help = 'Updates statuses to be just active/inactive'
def handle(self, *args, **option... | 26.363636 | 65 | 0.603448 | 66 | 580 | 5.30303 | 0.69697 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0025 | 0.310345 | 580 | 21 | 66 | 27.619048 | 0.8725 | 0 | 0 | 0 | 0 | 0 | 0.098276 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.294118 | 0 | 0.529412 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
71d7e426e812ea3c1715026e198214467f6ff07e | 2,883 | py | Python | extra/bsmalea-notes-1c/different_priors.py | cookieblues/cookieblues.github.io | 9b570d83887eb2d6f92cfaa927a1adf136124a90 | [
"MIT"
] | null | null | null | extra/bsmalea-notes-1c/different_priors.py | cookieblues/cookieblues.github.io | 9b570d83887eb2d6f92cfaa927a1adf136124a90 | [
"MIT"
] | 2 | 2020-03-30T14:58:30.000Z | 2020-12-10T15:15:06.000Z | extra/bsmalea-notes-1c/different_priors.py | cookieblues/cookieblues.github.io | 9b570d83887eb2d6f92cfaa927a1adf136124a90 | [
"MIT"
] | null | null | null | import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from scipy.special import binom, gamma
from scipy.stats import beta
# turq 06C2AC, mag C20076, mixed 646191
# Set matplotlib font
mpl.rc("text", usetex=True)
mpl.rc("font", family="serif")
def likelihood(theta, n, k):
return binom(n, k) ... | 22.176923 | 82 | 0.492196 | 387 | 2,883 | 3.620155 | 0.320413 | 0.009993 | 0.024982 | 0.171306 | 0.244111 | 0.224126 | 0.182727 | 0.1399 | 0.049964 | 0.025696 | 0 | 0.062024 | 0.36247 | 2,883 | 129 | 83 | 22.348837 | 0.700218 | 0.069719 | 0 | 0.316832 | 0 | 0 | 0.08982 | 0.007859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009901 | false | 0 | 0.049505 | 0.009901 | 0.069307 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
71e02d0dc990b7f06251ab6b43b912e50bd35a48 | 2,807 | py | Python | pocketbook/key_store.py | pbukva/tools-pocketbook | f69527276ed1754f69886697a811277c2081bca2 | [
"Apache-2.0"
] | null | null | null | pocketbook/key_store.py | pbukva/tools-pocketbook | f69527276ed1754f69886697a811277c2081bca2 | [
"Apache-2.0"
] | null | null | null | pocketbook/key_store.py | pbukva/tools-pocketbook | f69527276ed1754f69886697a811277c2081bca2 | [
"Apache-2.0"
] | null | null | null | import os
import fnmatch
from fetchai.ledger.crypto import Entity, Address, Identity
import toml
class KeyStoreError(Exception):
pass
class DuplicateKeyNameError(KeyStoreError):
def __str__(self):
return 'Duplicate key name found'
class KeyNotFoundError(KeyStoreError):
def __str__(self):
... | 28.353535 | 73 | 0.613466 | 352 | 2,807 | 4.650568 | 0.221591 | 0.042761 | 0.040318 | 0.04215 | 0.30788 | 0.243739 | 0.172266 | 0.089188 | 0.089188 | 0.042761 | 0 | 0 | 0.281083 | 2,807 | 98 | 74 | 28.642857 | 0.811199 | 0.022444 | 0 | 0.134328 | 0 | 0 | 0.062409 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 1 | 0.164179 | false | 0.074627 | 0.059701 | 0.074627 | 0.447761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
71e70340dbe9d3cfc843b67670855cd9f53570ee | 5,831 | py | Python | app/migrations/0001_initial.py | Jamesnduge/Hood-Watch | 1eb7583dbe3f54a6325cae456c6b2f810f4b34b0 | [
"Unlicense"
] | null | null | null | app/migrations/0001_initial.py | Jamesnduge/Hood-Watch | 1eb7583dbe3f54a6325cae456c6b2f810f4b34b0 | [
"Unlicense"
] | 7 | 2020-06-05T20:08:36.000Z | 2022-03-11T23:42:58.000Z | app/migrations/0001_initial.py | Jamesnduge/Hood-Watch | 1eb7583dbe3f54a6325cae456c6b2f810f4b34b0 | [
"Unlicense"
] | 1 | 2020-11-04T08:42:15.000Z | 2020-11-04T08:42:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-03-25 12:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import pyuploadcare.dj.models
import tinymce.models
class Migration(migrations.Migration):
... | 45.20155 | 166 | 0.580861 | 562 | 5,831 | 5.875445 | 0.199288 | 0.038159 | 0.054512 | 0.072683 | 0.640218 | 0.579346 | 0.555421 | 0.555421 | 0.542399 | 0.521502 | 0 | 0.014282 | 0.27954 | 5,831 | 128 | 167 | 45.554688 | 0.771721 | 0.011833 | 0 | 0.558333 | 1 | 0 | 0.121549 | 0.003646 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.008333 | 0.05 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e07d811eba5b38c1a9323a65d586b5c8dbd27815 | 39,649 | py | Python | test/test_widget_textinput.py | dcartman/pygame-menu | 52a823b9121aadd6893fb878150d613ab516fcac | [
"MIT"
] | null | null | null | test/test_widget_textinput.py | dcartman/pygame-menu | 52a823b9121aadd6893fb878150d613ab516fcac | [
"MIT"
] | null | null | null | test/test_widget_textinput.py | dcartman/pygame-menu | 52a823b9121aadd6893fb878150d613ab516fcac | [
"MIT"
] | null | null | null | """
pygame-menu
https://github.com/ppizarror/pygame-menu
TEST WIDGET - TEXTINPUT
Test TextInput and ColorInput widgets.
"""
__all__ = ['TextInputWidgetTest']
from test._utils import MenuUtils, surface, PygameEventUtils, TEST_THEME, PYGAME_V2, \
BaseTest
import pygame
import pygame_menu
import pygame_menu.contro... | 46.811098 | 112 | 0.65414 | 4,430 | 39,649 | 5.585553 | 0.08623 | 0.096993 | 0.084384 | 0.097721 | 0.744261 | 0.676285 | 0.626778 | 0.581272 | 0.551811 | 0.49709 | 0 | 0.020826 | 0.228556 | 39,649 | 846 | 113 | 46.86643 | 0.787818 | 0.077833 | 0 | 0.530449 | 0 | 0 | 0.042442 | 0.011061 | 0 | 0 | 0.000111 | 0 | 0.402244 | 1 | 0.020833 | false | 0.025641 | 0.008013 | 0 | 0.030449 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e086f11740bafbcf2ce729a188da54a854091a39 | 656 | py | Python | teach/migrations/0004_alter_tenants_options_remove_tenants_tdate_in_and_more.py | Binamin-hussein100/MVC | b1fdca7ea43412d585f519ce28d9155ae69fb1b3 | [
"MIT"
] | 1 | 2022-03-01T04:48:36.000Z | 2022-03-01T04:48:36.000Z | teach/migrations/0004_alter_tenants_options_remove_tenants_tdate_in_and_more.py | Binamin-hussein100/MVC | b1fdca7ea43412d585f519ce28d9155ae69fb1b3 | [
"MIT"
] | null | null | null | teach/migrations/0004_alter_tenants_options_remove_tenants_tdate_in_and_more.py | Binamin-hussein100/MVC | b1fdca7ea43412d585f519ce28d9155ae69fb1b3 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.2 on 2022-02-26 15:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teach', '0003_alter_tenants_tdate_in'),
]
operations = [
migrations.AlterModelOptions(
name='tenants',
options={'ver... | 24.296296 | 81 | 0.571646 | 63 | 656 | 5.777778 | 0.650794 | 0.090659 | 0.087912 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050661 | 0.307927 | 656 | 26 | 82 | 25.230769 | 0.751101 | 0.068598 | 0 | 0.25 | 1 | 0 | 0.18555 | 0.044335 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e08935e0d21941ffefa24257f94fdef895778ad2 | 1,561 | py | Python | 08-debugging/conways_game_of_life/5_conway_final.py | jdblischak/boot-camps | bed9660cf4e6aca5a3c589cb4ef6ad13d9289525 | [
"CC-BY-3.0"
] | 1 | 2015-02-01T20:37:39.000Z | 2015-02-01T20:37:39.000Z | 08-debugging/conways_game_of_life/5_conway_final.py | jdblischak/boot-camps | bed9660cf4e6aca5a3c589cb4ef6ad13d9289525 | [
"CC-BY-3.0"
] | null | null | null | 08-debugging/conways_game_of_life/5_conway_final.py | jdblischak/boot-camps | bed9660cf4e6aca5a3c589cb4ef6ad13d9289525 | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python
"""
Conway's game of life, final version.
Rules:
* Any cell with fewer than two neighbors dies (underpopulation)
* Any cell with more than three neighbors dies (overpopulation)
* Any empty spot with three neighbors becomes a live cell (reproduction)
Check out the wikipedia article for more in... | 33.934783 | 77 | 0.639974 | 225 | 1,561 | 4.417778 | 0.426667 | 0.012072 | 0.018109 | 0.016097 | 0.120724 | 0.086519 | 0.018109 | 0.018109 | 0.018109 | 0.018109 | 0 | 0.031543 | 0.248559 | 1,561 | 45 | 78 | 34.688889 | 0.815857 | 0.106342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e08ae0ff7ee69e85e7fb4f744c7d742c4d3a571c | 578 | py | Python | gamerent/games/migrations/0003_game_borrower.py | juliusz-musik/gamerent | e0310fed1a3e4d2f8314b71c9aa3d083926abbb6 | [
"MIT"
] | null | null | null | gamerent/games/migrations/0003_game_borrower.py | juliusz-musik/gamerent | e0310fed1a3e4d2f8314b71c9aa3d083926abbb6 | [
"MIT"
] | null | null | null | gamerent/games/migrations/0003_game_borrower.py | juliusz-musik/gamerent | e0310fed1a3e4d2f8314b71c9aa3d083926abbb6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.10 on 2021-12-30 15:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('games', '0002_game_img'... | 26.272727 | 122 | 0.67128 | 70 | 578 | 5.4 | 0.614286 | 0.063492 | 0.074074 | 0.116402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.221453 | 578 | 21 | 123 | 27.52381 | 0.795556 | 0.079585 | 0 | 0 | 1 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e08dd03a6bb5f13550e95a9a0017bea17b869129 | 1,014 | py | Python | peek_plugin_base/worker/PluginWorkerEntryHookABC.py | Synerty/peek_plugin_base | aa8a09a52bd5e1f95e4b61907f5de3b661fc9780 | [
"MIT"
] | null | null | null | peek_plugin_base/worker/PluginWorkerEntryHookABC.py | Synerty/peek_plugin_base | aa8a09a52bd5e1f95e4b61907f5de3b661fc9780 | [
"MIT"
] | null | null | null | peek_plugin_base/worker/PluginWorkerEntryHookABC.py | Synerty/peek_plugin_base | aa8a09a52bd5e1f95e4b61907f5de3b661fc9780 | [
"MIT"
] | 1 | 2016-12-12T15:05:18.000Z | 2016-12-12T15:05:18.000Z | from abc import abstractproperty
from celery.app.base import Celery
from peek_plugin_base.PluginCommonEntryHookABC import PluginCommonEntryHookABC
from peek_plugin_base.worker.PeekWorkerPlatformHookABC import PeekWorkerPlatformHookABC
class PluginWorkerEntryHookABC(PluginCommonEntryHookABC):
def __init__(self, p... | 36.214286 | 87 | 0.720907 | 92 | 1,014 | 7.782609 | 0.48913 | 0.02514 | 0.039106 | 0.050279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220907 | 1,014 | 28 | 88 | 36.214286 | 0.906329 | 0.212032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e0943917e709789411761d48d773948bd96e46d9 | 3,685 | py | Python | flask_user/tests/test_multiple_emails.py | 80pctsols/Flask-User | d73f094e8bc6356d33bacd5e5f76e0d0492ebb93 | [
"BSD-2-Clause"
] | null | null | null | flask_user/tests/test_multiple_emails.py | 80pctsols/Flask-User | d73f094e8bc6356d33bacd5e5f76e0d0492ebb93 | [
"BSD-2-Clause"
] | null | null | null | flask_user/tests/test_multiple_emails.py | 80pctsols/Flask-User | d73f094e8bc6356d33bacd5e5f76e0d0492ebb93 | [
"BSD-2-Clause"
] | null | null | null | """
tests.test_all_forms.py
---------------------------
Flask-User automated tests:
Tests posting a sequence of valid forms for all possible config combinations
:copyright: (c) 2013 by Ling Thio
:author: Ling Thio (ling.thio@gmail.com)
:license: Simplified BSD License, see LICENSE.txt for m... | 32.043478 | 121 | 0.696065 | 479 | 3,685 | 5.141962 | 0.271399 | 0.038977 | 0.032481 | 0.060901 | 0.418595 | 0.38043 | 0.338205 | 0.312221 | 0.26756 | 0.225335 | 0 | 0.011453 | 0.170692 | 3,685 | 114 | 122 | 32.324561 | 0.794503 | 0.265672 | 0 | 0.229167 | 0 | 0 | 0.09745 | 0.016749 | 0 | 0 | 0 | 0 | 0.104167 | 1 | 0.020833 | false | 0.1875 | 0.0625 | 0 | 0.083333 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e09491fe51f8b3e27fc1cca16cd8dcc72a048af0 | 3,484 | py | Python | Dashboard/SeeFood/recipe_scraping.py | vigneshvaidy/Food-Image-Classification | 50d4c8f0b95c8e367825f573f45fe1df4b2f509c | [
"MIT"
] | null | null | null | Dashboard/SeeFood/recipe_scraping.py | vigneshvaidy/Food-Image-Classification | 50d4c8f0b95c8e367825f573f45fe1df4b2f509c | [
"MIT"
] | 4 | 2021-05-11T19:58:05.000Z | 2022-02-27T08:09:59.000Z | Dashboard/SeeFood/recipe_scraping.py | sampasha/SeeFood | ea5459e4af9b2d6de59059d38cc7d92c69b912ce | [
"MIT"
] | null | null | null | import requests as r
from bs4 import BeautifulSoup as bs
from urllib.request import urlopen
def find_recipes(food):
food=food.lower()
page=r.get("https://www.allrecipes.com/search/results/?wt="+food+"&sort=re")
content=page.content
soup=bs(content,'html.parser')
soup.prettify()
recipes=[]
... | 28.325203 | 105 | 0.570608 | 444 | 3,484 | 4.263514 | 0.189189 | 0.058109 | 0.040676 | 0.03962 | 0.61701 | 0.568938 | 0.568938 | 0.546223 | 0.546223 | 0.479662 | 0 | 0.016076 | 0.303674 | 3,484 | 122 | 106 | 28.557377 | 0.764221 | 0 | 0 | 0.588889 | 0 | 0 | 0.07433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0956fc4d0d626ba8dc97a695873a1ebbe056d46 | 8,851 | py | Python | tyrell/venv/lib/python3.8/site-packages/rpy2/rinterface_lib/callbacks.py | YuehanLee/CS190I | c5e3dca9f3b936a15b254abfd0c245c470e8c27e | [
"Apache-2.0"
] | null | null | null | tyrell/venv/lib/python3.8/site-packages/rpy2/rinterface_lib/callbacks.py | YuehanLee/CS190I | c5e3dca9f3b936a15b254abfd0c245c470e8c27e | [
"Apache-2.0"
] | null | null | null | tyrell/venv/lib/python3.8/site-packages/rpy2/rinterface_lib/callbacks.py | YuehanLee/CS190I | c5e3dca9f3b936a15b254abfd0c245c470e8c27e | [
"Apache-2.0"
] | null | null | null | """Callbacks available from R's C-API.
The callbacks make available in R's C-API can be specified as
Python functions, with the module providing the adapter code
that makes it possible."""
from contextlib import contextmanager
import logging
import typing
from rpy2.rinterface_lib import openrlib
from rpy2.rinterface_... | 26.032353 | 74 | 0.63281 | 1,088 | 8,851 | 4.904412 | 0.193015 | 0.065217 | 0.044603 | 0.047226 | 0.326087 | 0.164543 | 0.059595 | 0.017991 | 0.017991 | 0 | 0 | 0.003262 | 0.272625 | 8,851 | 339 | 75 | 26.109145 | 0.825567 | 0.133205 | 0 | 0.283721 | 0 | 0 | 0.05043 | 0 | 0 | 0 | 0 | 0.014749 | 0 | 1 | 0.12093 | false | 0.027907 | 0.027907 | 0.004651 | 0.190698 | 0.037209 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e09ce18138e09837d621133e239ca670681d471e | 500 | py | Python | tornado_opentracing/tracing.py | owais/python-tornado | cdb8162768eb6b6fbcd4c0fac4156f3422c3c711 | [
"Apache-2.0"
] | null | null | null | tornado_opentracing/tracing.py | owais/python-tornado | cdb8162768eb6b6fbcd4c0fac4156f3422c3c711 | [
"Apache-2.0"
] | 1 | 2020-04-29T00:07:04.000Z | 2020-04-29T00:07:04.000Z | tornado_opentracing/tracing.py | owais/python-tornado | cdb8162768eb6b6fbcd4c0fac4156f3422c3c711 | [
"Apache-2.0"
] | 2 | 2020-04-23T03:50:40.000Z | 2021-03-15T18:01:58.000Z | import sys
from tornado import version_info as tornado_version
# Use asyncio compatible tracing when running tornado 5 or above
# on Python3.5 or above. Older version continue to use the
# old tornado tracing based on tornado.stack_context.
use_async_tracing = sys.version_info >= (3, 5) and tornado_version >= (5, 0... | 31.25 | 77 | 0.786 | 72 | 500 | 5.291667 | 0.5 | 0.057743 | 0.041995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016746 | 0.164 | 500 | 15 | 78 | 33.333333 | 0.894737 | 0.362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e0a028725f79fe334d30982e50fbce2cae86a80e | 491 | py | Python | btpp/migrations/0003_auto_20191122_1916.py | yvesjordan06/hiro_django | 24ccfdfaf9258bd254d031563190a45a0d837a02 | [
"MIT"
] | null | null | null | btpp/migrations/0003_auto_20191122_1916.py | yvesjordan06/hiro_django | 24ccfdfaf9258bd254d031563190a45a0d837a02 | [
"MIT"
] | null | null | null | btpp/migrations/0003_auto_20191122_1916.py | yvesjordan06/hiro_django | 24ccfdfaf9258bd254d031563190a45a0d837a02 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-22 19:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('btpp', '0002_auto_20191122_1903'),
]
operations = [
migrations.RemoveField(
model_name='tache',
name='metier',
... | 21.347826 | 59 | 0.564155 | 49 | 491 | 5.55102 | 0.693878 | 0.066176 | 0.102941 | 0.132353 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092262 | 0.315682 | 491 | 22 | 60 | 22.318182 | 0.717262 | 0.09165 | 0 | 0.375 | 1 | 0 | 0.135135 | 0.051802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0a02a23f917c8ea551087fa9dcace31ddbcd92c | 322 | py | Python | problems/maximum_69_number/solution.py | yogeshsingh01/LeetCode | 606b608fccae81fc1dfd7a0283e1739c1e6dfed1 | [
"MIT"
] | null | null | null | problems/maximum_69_number/solution.py | yogeshsingh01/LeetCode | 606b608fccae81fc1dfd7a0283e1739c1e6dfed1 | [
"MIT"
] | null | null | null | problems/maximum_69_number/solution.py | yogeshsingh01/LeetCode | 606b608fccae81fc1dfd7a0283e1739c1e6dfed1 | [
"MIT"
] | null | null | null | class Solution:
def maximum69Number (self, num: int) -> int:
n = 1000
m = num
#// as it is mentioned constraint as num < 10^4
while m:
if((m//n) == 6):
num += n*3
break
m = m%n
n = n/10
return int(num)
... | 24.769231 | 55 | 0.391304 | 40 | 322 | 3.15 | 0.575 | 0.031746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08125 | 0.503106 | 322 | 13 | 56 | 24.769231 | 0.70625 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0a3f8daae3c8ae9a32af47e25ba6cc610f1484f | 1,637 | py | Python | cheetah_core/djangoapps/users/models.py | dota-2-cheetah/cheetah_core | 2afd035223af44f770835c9568c94d2ac9eb408e | [
"MIT"
] | null | null | null | cheetah_core/djangoapps/users/models.py | dota-2-cheetah/cheetah_core | 2afd035223af44f770835c9568c94d2ac9eb408e | [
"MIT"
] | null | null | null | cheetah_core/djangoapps/users/models.py | dota-2-cheetah/cheetah_core | 2afd035223af44f770835c9568c94d2ac9eb408e | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import AbstractUser
from shortuuidfield import ShortUUIDField
class User(AbstractUser):
uuid = ShortUUIDField(primary_key=True)
def __str__(self):
return self.email
class UserKey(models.Model):
DEFAULT_MONTHLY_MAX_REQUESTS = 1000
... | 33.408163 | 103 | 0.698228 | 189 | 1,637 | 5.740741 | 0.301587 | 0.081106 | 0.066359 | 0.04424 | 0.058986 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006839 | 0.19609 | 1,637 | 48 | 104 | 34.104167 | 0.817629 | 0 | 0 | 0.135135 | 0 | 0 | 0.102627 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.081081 | 0.081081 | 0.756757 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e0a53aef3d81b842882a82dca34ea07c2bdea8dd | 386 | py | Python | Django/myblog/blog/migrations/0004_auto_20200128_1816.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | null | null | null | Django/myblog/blog/migrations/0004_auto_20200128_1816.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | null | null | null | Django/myblog/blog/migrations/0004_auto_20200128_1816.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | 1 | 2019-11-05T01:10:15.000Z | 2019-11-05T01:10:15.000Z | # Generated by Django 2.2.6 on 2020-01-28 10:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20200128_1814'),
]
operations = [
migrations.AlterField(
model_name='article',
name='pub_time',
... | 20.315789 | 50 | 0.598446 | 42 | 386 | 5.380952 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112727 | 0.287565 | 386 | 18 | 51 | 21.444444 | 0.709091 | 0.11658 | 0 | 0 | 1 | 0 | 0.123894 | 0.067847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0b4f5dcd74bff931635fe55e9cb107aa3f3b79a | 3,953 | py | Python | venv/lib/python3.9/site-packages/streamlit/proto/Video_pb2.py | CMU-IDS-2022/final-project-the-evaluators | 3b9262ad1a0f7315208a94a05ea1ce38e679d01d | [
"BSD-3-Clause"
] | 1 | 2022-01-17T02:58:50.000Z | 2022-01-17T02:58:50.000Z | venv/lib/python3.9/site-packages/streamlit/proto/Video_pb2.py | CMU-IDS-2022/final-project-the-evaluators | 3b9262ad1a0f7315208a94a05ea1ce38e679d01d | [
"BSD-3-Clause"
] | null | null | null | venv/lib/python3.9/site-packages/streamlit/proto/Video_pb2.py | CMU-IDS-2022/final-project-the-evaluators | 3b9262ad1a0f7315208a94a05ea1ce38e679d01d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: streamlit/proto/Video.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_databas... | 33.5 | 405 | 0.747534 | 516 | 3,953 | 5.408915 | 0.25969 | 0.058044 | 0.088499 | 0.087066 | 0.383017 | 0.383017 | 0.366535 | 0.352204 | 0.322823 | 0.303475 | 0 | 0.045666 | 0.130281 | 3,953 | 117 | 406 | 33.786325 | 0.766143 | 0.058437 | 0 | 0.46875 | 1 | 0.010417 | 0.159085 | 0.117093 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e0b56a0d4356785e0014f6918e12ea80eadf4703 | 667 | py | Python | src/445. Add Two Numbers II.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/445. Add Two Numbers II.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | src/445. Add Two Numbers II.py | xiaonanln/myleetcode-python | 95d282f21a257f937cd22ef20c3590a69919e307 | [
"Apache-2.0"
] | null | null | null | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
n1 = self.ll2num(l1)
n2 = self.ll2num(l2)
... | 17.102564 | 36 | 0.592204 | 97 | 667 | 4.030928 | 0.340206 | 0.038363 | 0.061381 | 0.061381 | 0.071611 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057732 | 0.272864 | 667 | 38 | 37 | 17.552632 | 0.748454 | 0.196402 | 0 | 0.090909 | 0 | 0 | 0.013043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.