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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
159834a48ad30aa5febd29f688989cb0c8e8b757 | 2,656 | py | Python | fine_tune.py | My-code-works/MBTI | 8895ab01f93c024f108f0a6c444e2d9effd81d51 | [
"MIT"
] | null | null | null | fine_tune.py | My-code-works/MBTI | 8895ab01f93c024f108f0a6c444e2d9effd81d51 | [
"MIT"
] | null | null | null | fine_tune.py | My-code-works/MBTI | 8895ab01f93c024f108f0a6c444e2d9effd81d51 | [
"MIT"
] | 1 | 2019-01-25T01:39:31.000Z | 2019-01-25T01:39:31.000Z | import csv
import bert.runDataProcessor
class MyProcessor(DataProcessor):
"""Processor for the move data set ."""
def get_train_examples(self, data_dir):
"""See base class."""
return self._create_examples(
self._read_tsv(os.path.join(data_dir='./data/', "train.tsv")), "train")
def ... | 32.790123 | 93 | 0.557982 | 340 | 2,656 | 4.179412 | 0.25 | 0.059113 | 0.033779 | 0.050669 | 0.587614 | 0.587614 | 0.543279 | 0.43209 | 0.43209 | 0.43209 | 0 | 0.004348 | 0.307229 | 2,656 | 81 | 94 | 32.790123 | 0.767935 | 0 | 0 | 0.327586 | 0 | 0 | 0.047965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034483 | null | null | 0.017241 | 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 |
159b952f42b1fea3d0d744c86909859fe7faf8b7 | 350 | py | Python | threads.py | gladson-sza/python-security | dfa5d24647835abdb8ec9138bf96e682095496b5 | [
"MIT"
] | null | null | null | threads.py | gladson-sza/python-security | dfa5d24647835abdb8ec9138bf96e682095496b5 | [
"MIT"
] | null | null | null | threads.py | gladson-sza/python-security | dfa5d24647835abdb8ec9138bf96e682095496b5 | [
"MIT"
] | null | null | null | import time
from threading import Thread
def car(speed, name):
road = 0
while road < 100:
print(f'Car {name}: {road}\n')
road += speed
time.sleep(0.5)
if __name__ == '__main__':
t_car1 = Thread(target=car, args=[10, '1'])
t_car2 = Thread(target=car, args=[20, '2'])
t_ca... | 17.5 | 47 | 0.574286 | 52 | 350 | 3.634615 | 0.576923 | 0.084656 | 0.15873 | 0.201058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062257 | 0.265714 | 350 | 19 | 48 | 18.421053 | 0.673152 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0.076923 | 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 |
159df9f888a4bd22c1a0cb150f6df1eeb2027b1c | 8,172 | py | Python | multiprotInterfaceListExtractor.py | ecukuroglu/pdbClustering | d223f47d38f22628b99129d11d93e48efeec0ed7 | [
"Apache-2.0"
] | null | null | null | multiprotInterfaceListExtractor.py | ecukuroglu/pdbClustering | d223f47d38f22628b99129d11d93e48efeec0ed7 | [
"Apache-2.0"
] | null | null | null | multiprotInterfaceListExtractor.py | ecukuroglu/pdbClustering | d223f47d38f22628b99129d11d93e48efeec0ed7 | [
"Apache-2.0"
] | null | null | null | #################
## Created by Engin Cukuroglu
#################
import os,sys,time
import multiprocessing
from operator import itemgetter
from multiprocessing import Queue, Process
def multiprotInterfaceListWork(taskQueue_multiprotInterfaceList, multiprotInterfaceResultQueue, interfaceList, interfaceListLength, mul... | 61.443609 | 431 | 0.726505 | 518 | 8,172 | 11.42471 | 0.285714 | 0.041906 | 0.00338 | 0.004055 | 0.197195 | 0.157486 | 0.134167 | 0.134167 | 0.134167 | 0.134167 | 0 | 0.008412 | 0.199951 | 8,172 | 132 | 432 | 61.909091 | 0.896757 | 0.003182 | 0 | 0.137931 | 0 | 0.017241 | 0.040942 | 0.007399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.034483 | 0 | 0.051724 | 0.051724 | 0 | 0 | 1 | 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 |
159ff6ad0b8b068dce0d50ea667e7385382cbe6f | 3,301 | py | Python | snap_plugin/v1/collector.py | hykavitha/snap-python | d264bd5c91fc5948c22298c3110ff5a5ea277aba | [
"Apache-2.0"
] | null | null | null | snap_plugin/v1/collector.py | hykavitha/snap-python | d264bd5c91fc5948c22298c3110ff5a5ea277aba | [
"Apache-2.0"
] | null | null | null | snap_plugin/v1/collector.py | hykavitha/snap-python | d264bd5c91fc5948c22298c3110ff5a5ea277aba | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# http://www.apache.org/licenses/LICENSE-2.0.txt
#
# Copyright 2016 Intel Corporation
#
# 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/lic... | 35.117021 | 78 | 0.681612 | 432 | 3,301 | 5.12037 | 0.381944 | 0.049729 | 0.059675 | 0.040687 | 0.262206 | 0.228752 | 0.228752 | 0.17179 | 0.141953 | 0.141953 | 0 | 0.009073 | 0.232051 | 3,301 | 93 | 79 | 35.494624 | 0.863511 | 0.688276 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.1 | 0.3 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
15a93e19e0b46204ae54adacc46a5af1e15fd949 | 1,725 | py | Python | vnpy/app/cta_strategy/neural_network.py | tonywanggit/vnpy | a4913606c0ca85ae0d5d3705a516b1e43feb3937 | [
"MIT"
] | 11 | 2019-11-18T06:07:16.000Z | 2020-10-12T11:36:21.000Z | vnpy/app/cta_strategy/neural_network.py | tonywanggit/vnpy | a4913606c0ca85ae0d5d3705a516b1e43feb3937 | [
"MIT"
] | null | null | null | vnpy/app/cta_strategy/neural_network.py | tonywanggit/vnpy | a4913606c0ca85ae0d5d3705a516b1e43feb3937 | [
"MIT"
] | 6 | 2019-10-30T14:52:21.000Z | 2021-01-11T05:41:17.000Z | # neural network class definition
import numpy as np
import scipy.special
class NeuralNetwork:
def __init__(self, inputnodes, hiddennodes, outputnodes, learningrate):
self.inodes = inputnodes
self.hnodes = hiddennodes
self.onodes = outputnodes
self.wih = np.random.normal(0.0, pow... | 34.5 | 117 | 0.658551 | 223 | 1,725 | 4.910314 | 0.251121 | 0.031963 | 0.100457 | 0.054795 | 0.393607 | 0.393607 | 0.393607 | 0.351598 | 0.308676 | 0.308676 | 0 | 0.011338 | 0.233043 | 1,725 | 49 | 118 | 35.204082 | 0.816327 | 0.017971 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.0625 | 0.0625 | 0 | 0.21875 | 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 |
15af1808c16403e5209ab1cabdb9354e002c7ce7 | 709 | py | Python | pdf2db-em.py | benjlis/pdf2db-em | fb469150697961b4d45ff69598b6e849ce3403a0 | [
"MIT"
] | null | null | null | pdf2db-em.py | benjlis/pdf2db-em | fb469150697961b4d45ff69598b6e849ce3403a0 | [
"MIT"
] | null | null | null | pdf2db-em.py | benjlis/pdf2db-em | fb469150697961b4d45ff69598b6e849ce3403a0 | [
"MIT"
] | null | null | null | import aiosql
import psycopg2
import os
# import pdfemail # right now it's a symbolic link to pdf2mbox
PDFDIR = os.getenv('PDFDIR')
conn = psycopg2.connect("")
conn.autocommit = True
stmts = aiosql.from_path("pdf2db-em.sql", "psycopg2")
# pdfs = sql.get_dc19pdf_list(conn)
# for p in pdfs:
# print(p[1])
#
... | 29.541667 | 79 | 0.641749 | 104 | 709 | 4.211538 | 0.653846 | 0.031963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030631 | 0.217207 | 709 | 23 | 80 | 30.826087 | 0.758559 | 0.249647 | 0 | 0 | 0 | 0 | 0.178161 | 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 |
15ba09eda44d02e4a06852f6bdc6b16f90f60f73 | 447 | py | Python | 121. Best Time to Buy and Sell Stock.py | rohitpatwa/leetcode | f4826763e8f154cac9134d53b154b8299acd39a8 | [
"Xnet",
"X11",
"CECILL-B"
] | 1 | 2020-07-15T20:48:27.000Z | 2020-07-15T20:48:27.000Z | 121. Best Time to Buy and Sell Stock.py | rohitpatwa/leetcode | f4826763e8f154cac9134d53b154b8299acd39a8 | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | 121. Best Time to Buy and Sell Stock.py | rohitpatwa/leetcode | f4826763e8f154cac9134d53b154b8299acd39a8 | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | # Iterate through the array and maintain the min_so_far value. at each step profit = max(profit, arr[i]-min_so_far)
class Solution:
def maxProfit(self, prices: List[int]) -> int:
i = 0
max_profit = 0
min_so_far = 99999
for i in range(len(prices)):
max_profit = m... | 34.384615 | 115 | 0.60179 | 68 | 447 | 3.720588 | 0.470588 | 0.118577 | 0.189723 | 0.071146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022654 | 0.308725 | 447 | 13 | 116 | 34.384615 | 0.796117 | 0.252796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
15be0cc3c1c8dfdf0cf9e9da5f06e06a0e6a07b3 | 1,532 | py | Python | canyin_accuracy_sample.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | canyin_accuracy_sample.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | canyin_accuracy_sample.py | leeamen/eva | 311c59d24dec74359a5e15ff5b6b50c2c51dae5b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#coding:utf8
import mymodel
import mybaselib
import logging
import sys
import os
import time
reload(sys)
sys.setdefaultencoding('utf8')
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logging.disable(logging.DEBUG)
#hdlr = logging.FileHandler(sys.argv[0]+'.log', 'w')
#logger.addHand... | 26.413793 | 81 | 0.625979 | 221 | 1,532 | 4.226244 | 0.38914 | 0.014989 | 0.012848 | 0.047109 | 0.132762 | 0.132762 | 0.132762 | 0.087794 | 0 | 0 | 0 | 0.012573 | 0.221279 | 1,532 | 57 | 82 | 26.877193 | 0.770327 | 0.174935 | 0 | 0 | 0 | 0 | 0.0472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.025 | 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 |
ec5d1a5a7373157b9a1484449b74a17a2f861e32 | 905 | py | Python | src/citycode.py | masaminh/weatherapi | abdb5d92cbce14cd4cd81e0b2f0b37843b7bc1e4 | [
"MIT"
] | null | null | null | src/citycode.py | masaminh/weatherapi | abdb5d92cbce14cd4cd81e0b2f0b37843b7bc1e4 | [
"MIT"
] | 4 | 2021-03-31T19:17:23.000Z | 2021-12-13T20:15:11.000Z | src/citycode.py | masaminh/weatherapi | abdb5d92cbce14cd4cd81e0b2f0b37843b7bc1e4 | [
"MIT"
] | null | null | null | """市町村コード関係の関数群."""
from collections import namedtuple
Urls = namedtuple('Urls', 'hourly')
def get_cityname(code):
"""市町村名を取得する.
Arguments:
code {str} -- 市町村コード
Returns:
str -- 市町村名
"""
if code != '01101':
return None
return "札幌市中央区"
def get_tenkijp_urls(code):
... | 15.603448 | 69 | 0.571271 | 93 | 905 | 5.505376 | 0.430108 | 0.085938 | 0.09375 | 0.128906 | 0.382813 | 0.285156 | 0.15625 | 0.15625 | 0.15625 | 0 | 0 | 0.048666 | 0.296133 | 905 | 57 | 70 | 15.877193 | 0.755102 | 0.308287 | 0 | 0.555556 | 0 | 0 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.055556 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ec5f2dde607fd1f85b4df9beae63bacbe6ef74f5 | 436 | py | Python | tests/sproxy/test_utils.py | lee0210/sproxy | 86fe12278d139a431131b2197d0e9adc38e19954 | [
"MIT"
] | 1 | 2018-07-26T03:55:27.000Z | 2018-07-26T03:55:27.000Z | tests/sproxy/test_utils.py | lee0210/sproxy | 86fe12278d139a431131b2197d0e9adc38e19954 | [
"MIT"
] | null | null | null | tests/sproxy/test_utils.py | lee0210/sproxy | 86fe12278d139a431131b2197d0e9adc38e19954 | [
"MIT"
] | null | null | null | from sproxy.utils import read_request, write_request
class fake_socket:
def recv(self, n):
self.c = self.c + n
return self.data[self.c-n:self.c]
def send(self, data):
self.data = data
self.c = 0
conn = fake_socket()
def test_read_write_request():
input_data = 'hello world'... | 24.222222 | 52 | 0.65367 | 65 | 436 | 4.169231 | 0.4 | 0.092251 | 0.095941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00303 | 0.243119 | 436 | 17 | 53 | 25.647059 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0.025229 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.428571 | 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 |
ec6222fe9cfe71b8fae58e8799e051329f3687e9 | 258 | py | Python | providers/brewerslab.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | 1 | 2020-04-12T10:08:10.000Z | 2020-04-12T10:08:10.000Z | providers/brewerslab.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | 2 | 2021-12-13T20:09:45.000Z | 2022-03-08T21:09:57.000Z | providers/brewerslab.py | allena29/brewerslabng | f47e671971436b7af806b54f6019c5b185d7d194 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import dataprovider
class brewerslab(dataprovider.DataProvider):
MODULE_NAME = "brewerslab"
DEBUG = True
def process_path(self, dry_run, xpath, oper, old_val, new_val):
print(xpath)
dp = brewerslab()
dp.connect()
| 16.125 | 67 | 0.697674 | 32 | 258 | 5.46875 | 0.78125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.189922 | 258 | 15 | 68 | 17.2 | 0.832536 | 0.065891 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0.125 | 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 |
ec6361c4306d776f00c77bbe8907d57a75e6d4b0 | 3,016 | py | Python | tests/query/test_range.py | brosner/django-sqlalchemy | 3f427d726acac2469ba2b39c59210bde574591e5 | [
"BSD-3-Clause"
] | 4 | 2015-11-14T13:54:56.000Z | 2020-06-05T15:04:48.000Z | tests/query/test_range.py | brosner/django-sqlalchemy | 3f427d726acac2469ba2b39c59210bde574591e5 | [
"BSD-3-Clause"
] | null | null | null | tests/query/test_range.py | brosner/django-sqlalchemy | 3f427d726acac2469ba2b39c59210bde574591e5 | [
"BSD-3-Clause"
] | 3 | 2015-11-25T10:56:46.000Z | 2021-07-13T19:19:42.000Z | import datetime
from django_sqlalchemy.test import *
from apps.blog.models import Category, Post
class TestRange(object):
def setup(self):
Category.__table__.insert().execute(
{'id': 1, 'name': 'Python'},
{'id': 2, 'name': 'PHP'},
{'id': 3, 'name': 'Ruby'},
... | 51.118644 | 139 | 0.610411 | 408 | 3,016 | 4.27451 | 0.279412 | 0.041284 | 0.044725 | 0.051606 | 0.508028 | 0.398509 | 0.337729 | 0.321674 | 0.269495 | 0.126147 | 0 | 0.032752 | 0.220491 | 3,016 | 58 | 140 | 52 | 0.70906 | 0 | 0 | 0.058824 | 0 | 0 | 0.160477 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0 | null | null | 0 | 0.058824 | 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 |
ec6b27fe1dd20b3aa5106bec4177cfc8be0a0443 | 46,104 | py | Python | PathVerification/PathVerification.py | tavaughan/SlicerPathReconstruction | 5504e03ade1892e7c0186495c21e64ebf93d3cce | [
"MIT"
] | 1 | 2019-04-18T15:00:05.000Z | 2019-04-18T15:00:05.000Z | PathVerification/PathVerification.py | tavaughan/SlicerPathReconstruction | 5504e03ade1892e7c0186495c21e64ebf93d3cce | [
"MIT"
] | 11 | 2018-03-24T16:06:06.000Z | 2019-04-10T18:36:22.000Z | PathVerification/PathVerification.py | tavaughan/SlicerPathReconstruction | 5504e03ade1892e7c0186495c21e64ebf93d3cce | [
"MIT"
] | 1 | 2018-04-02T14:00:33.000Z | 2018-04-02T14:00:33.000Z | import os
import unittest
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
#
# PathVerification
#
class PathVerification(ScriptedLoadableModule):
"""Uses ScriptedLoadableModule base class, available at:
https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedL... | 54.690391 | 137 | 0.778935 | 3,027 | 46,104 | 11.859597 | 0.187975 | 0.008914 | 0.003259 | 0.013371 | 0.199031 | 0.152762 | 0.116076 | 0.109223 | 0.093122 | 0.087161 | 0 | 0.007106 | 0.15144 | 46,104 | 842 | 138 | 54.755344 | 0.910511 | 0.043662 | 0 | 0.168331 | 0 | 0 | 0.043815 | 0.01859 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035663 | false | 0.002853 | 0.007133 | 0.001427 | 0.061341 | 0 | 0 | 0 | 1 | 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 |
ec7b08de25136763236e8d322b3ac6376b21189d | 9,967 | py | Python | CSV_reading_Gibbs.py | FrostadResearchGroup/PendantDropTensiometer | 418eac859164080ac3ddfa2eac4968c996b6e567 | [
"BSD-3-Clause"
] | null | null | null | CSV_reading_Gibbs.py | FrostadResearchGroup/PendantDropTensiometer | 418eac859164080ac3ddfa2eac4968c996b6e567 | [
"BSD-3-Clause"
] | null | null | null | CSV_reading_Gibbs.py | FrostadResearchGroup/PendantDropTensiometer | 418eac859164080ac3ddfa2eac4968c996b6e567 | [
"BSD-3-Clause"
] | 1 | 2019-01-29T19:34:00.000Z | 2019-01-29T19:34:00.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 19 14:36:50 2018
@author: jlapucha
"""
"""
This file is a working version for the curve-fitting of adsorption isotherm models to the
eqiulibrum surface tension change with concentrations.
"""
import numpy as np
import csv
import glob as glob
import matplotli... | 33.003311 | 192 | 0.63951 | 1,334 | 9,967 | 4.70015 | 0.231634 | 0.014354 | 0.029027 | 0.009569 | 0.322648 | 0.295694 | 0.273684 | 0.259968 | 0.2437 | 0.222967 | 0 | 0.026471 | 0.200261 | 9,967 | 301 | 193 | 33.112957 | 0.76013 | 0.32427 | 0 | 0.261628 | 0 | 0.005814 | 0.125208 | 0.01013 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046512 | null | null | 0.05814 | 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 |
ec85c0a226bb6706583c6021da771bb6ee87a713 | 4,281 | py | Python | mirror_api_server/monkey_patch.py | mparramont/mirror-api | 297edc636321fee364a1905b0e858efc6deea2a5 | [
"Apache-2.0"
] | 1 | 2015-11-14T17:51:06.000Z | 2015-11-14T17:51:06.000Z | mirror_api_server/monkey_patch.py | mparramont/mirror-api | 297edc636321fee364a1905b0e858efc6deea2a5 | [
"Apache-2.0"
] | null | null | null | mirror_api_server/monkey_patch.py | mparramont/mirror-api | 297edc636321fee364a1905b0e858efc6deea2a5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2007 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... | 36.279661 | 82 | 0.704742 | 607 | 4,281 | 4.807249 | 0.3229 | 0.04318 | 0.039068 | 0.021933 | 0.056203 | 0.019191 | 0 | 0 | 0 | 0 | 0 | 0.002411 | 0.224947 | 4,281 | 117 | 83 | 36.589744 | 0.877034 | 0.381453 | 0 | 0.269231 | 0 | 0 | 0.144873 | 0.021637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0.057692 | 0.076923 | 0 | 0.269231 | 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 |
ec89512007e8a7cbe45f736e90d19be247b1d0d5 | 792 | py | Python | app/models/blacklist_device_token.py | livlikwav/GoodPooPee_ML_backend | ead1b3fccbe432c233d9fb6c0a115d526b74b68e | [
"MIT"
] | null | null | null | app/models/blacklist_device_token.py | livlikwav/GoodPooPee_ML_backend | ead1b3fccbe432c233d9fb6c0a115d526b74b68e | [
"MIT"
] | null | null | null | app/models/blacklist_device_token.py | livlikwav/GoodPooPee_ML_backend | ead1b3fccbe432c233d9fb6c0a115d526b74b68e | [
"MIT"
] | null | null | null | import datetime
from app import db
class BlacklistDeviceToken(db.Model):
# Token Model for sorting JWT tokens
__tablename__ = 'blacklist_device_tokens'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
token = db.Column(db.String(500), unique=True, nullable=False)
created_date = db.... | 39.6 | 111 | 0.708333 | 99 | 792 | 5.525253 | 0.525253 | 0.058501 | 0.073126 | 0.051188 | 0.26691 | 0.26691 | 0.26691 | 0.26691 | 0.26691 | 0.26691 | 0 | 0.004695 | 0.193182 | 792 | 20 | 112 | 39.6 | 0.85133 | 0.10101 | 0 | 0 | 0 | 0 | 0.032394 | 0.032394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.733333 | 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 |
ec8beda07db3f3a7e609b69a1a6e9c160e05d334 | 2,128 | py | Python | venv/Lib/site-packages/tests/test_6755_ExtraNULLChar_ResultCLOBCol.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tests/test_6755_ExtraNULLChar_ResultCLOBCol.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/tests/test_6755_ExtraNULLChar_ResultCLOBCol.py | shehzadulislam/Assignment4 | a9cced70be6ae5d2685027d68032d5849f638301 | [
"Apache-2.0"
] | null | null | null | #
# Licensed Materials - Property of IBM
#
# (c) Copyright IBM Corp. 2007-2008
#
import unittest, sys
import ibm_db
import config
from testfunctions import IbmDbTestFunctions
class IbmDbTestCase(unittest.TestCase):
def test_6755_ExtraNULLChar_ResultCLOBCol(self):
obj = IbmDbTestFunctions()
obj.assert_ex... | 33.25 | 134 | 0.656015 | 295 | 2,128 | 4.542373 | 0.305085 | 0.080597 | 0.047761 | 0.071642 | 0.50597 | 0.50597 | 0.407463 | 0.407463 | 0.337313 | 0.337313 | 0 | 0.044903 | 0.225564 | 2,128 | 63 | 135 | 33.777778 | 0.768204 | 0.279135 | 0 | 0.166667 | 0 | 0 | 0.234478 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.194444 | 0.055556 | 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 |
ec8e28c6a22e7f46f593055af5b0ee39fffee9e8 | 2,504 | py | Python | youbot_gazebo_publisher/src/gripper.py | ingjavierpinilla/youBot-Gazebo-Publisher | 9314f5c471cde91127d76ba205ce6259e595145a | [
"MIT"
] | null | null | null | youbot_gazebo_publisher/src/gripper.py | ingjavierpinilla/youBot-Gazebo-Publisher | 9314f5c471cde91127d76ba205ce6259e595145a | [
"MIT"
] | null | null | null | youbot_gazebo_publisher/src/gripper.py | ingjavierpinilla/youBot-Gazebo-Publisher | 9314f5c471cde91127d76ba205ce6259e595145a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
from std_msgs.msg import Float64
import trajectory_msgs.msg as tm
from numpy import inf, zeros, ones
from geometry_msgs.msg import Twist
def moveArm():
armPublisher = rospy.Publisher(
"/arm_1/arm_controller/command", tm.JointTrajectory, queue_size=1
)
jointvalu... | 24.54902 | 77 | 0.684505 | 319 | 2,504 | 5.241379 | 0.332288 | 0.010766 | 0.035885 | 0.014354 | 0.348086 | 0.31878 | 0.31878 | 0.266148 | 0.101675 | 0.05622 | 0 | 0.030754 | 0.194888 | 2,504 | 101 | 78 | 24.792079 | 0.798611 | 0.019968 | 0 | 0.293333 | 0 | 0 | 0.084455 | 0.052224 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.053333 | 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 |
ec931ae735d01c7a573497a090b2653164099077 | 7,236 | py | Python | infra/libs/git2/test/testing_support_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | infra/libs/git2/test/testing_support_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 21 | 2020-09-06T02:41:05.000Z | 2022-03-02T04:40:01.000Z | infra/libs/git2/test/testing_support_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 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.
from collections import OrderedDict as OD
from infra.libs.git2 import testing_support
from infra.libs.git2.test import test_util
from infra.libs.git2.testin... | 34.293839 | 82 | 0.628386 | 851 | 7,236 | 5.184489 | 0.212691 | 0.036265 | 0.047597 | 0.040798 | 0.661378 | 0.574116 | 0.507253 | 0.43903 | 0.398912 | 0.355621 | 0 | 0.04652 | 0.221669 | 7,236 | 210 | 83 | 34.457143 | 0.736861 | 0.045744 | 0 | 0.464865 | 0 | 0.005405 | 0.276553 | 0.056152 | 0 | 0 | 0 | 0 | 0.156757 | 0 | null | null | 0 | 0.037838 | 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 |
ec962f9c6f1240f30c13632e97464101fe8e9abd | 391 | py | Python | restfy/file.py | manasseslima/restfy | 58a5f1470868c279ef515164a0b87d75a2a3f337 | [
"MIT"
] | null | null | null | restfy/file.py | manasseslima/restfy | 58a5f1470868c279ef515164a0b87d75a2a3f337 | [
"MIT"
] | null | null | null | restfy/file.py | manasseslima/restfy | 58a5f1470868c279ef515164a0b87d75a2a3f337 | [
"MIT"
] | null | null | null | class File:
def __init__(self, name: str, kind: str, content=None, base64=False):
self.content = content
self.name = name
self.type = kind
self.base64 = base64
def save(self, path):
with open(path, 'wb') as f:
f.write(self.content)
def open(self, path):
... | 27.928571 | 73 | 0.549872 | 53 | 391 | 3.981132 | 0.433962 | 0.156398 | 0.113744 | 0.151659 | 0.189573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.324808 | 391 | 14 | 74 | 27.928571 | 0.776515 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec967c69d032a829cdcb1b0ea96a45e16c2b28f3 | 1,463 | py | Python | python/protoconf/agent/api/proto/v1/protoconf_service_grpc.py | mcornea/protoconf | d929833e4594188732297160d4a2d48a688f31ae | [
"MIT"
] | 70 | 2019-12-05T11:24:27.000Z | 2022-02-28T10:04:36.000Z | python/protoconf/agent/api/proto/v1/protoconf_service_grpc.py | mcornea/protoconf | d929833e4594188732297160d4a2d48a688f31ae | [
"MIT"
] | 171 | 2019-12-12T20:12:17.000Z | 2022-03-28T16:26:47.000Z | python/protoconf/agent/api/proto/v1/protoconf_service_grpc.py | mcornea/protoconf | d929833e4594188732297160d4a2d48a688f31ae | [
"MIT"
] | 5 | 2021-01-02T04:55:53.000Z | 2022-02-22T05:34:12.000Z | # Generated by the Protocol Buffers compiler. DO NOT EDIT!
# source: agent/api/proto/v1/protoconf_service.proto
# plugin: grpclib.plugin.main
import abc
import typing
import grpclib.const
import grpclib.client
if typing.TYPE_CHECKING:
import grpclib.server
import google.protobuf.any_pb2
import agent.api.proto.v1.... | 34.833333 | 203 | 0.718387 | 157 | 1,463 | 6.528662 | 0.356688 | 0.062439 | 0.101463 | 0.117073 | 0.382439 | 0.382439 | 0.352195 | 0.319024 | 0.319024 | 0.319024 | 0 | 0.015216 | 0.191388 | 1,463 | 41 | 204 | 35.682927 | 0.851226 | 0.092276 | 0 | 0.137931 | 1 | 0.034483 | 0.167674 | 0.166918 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.034483 | 0.241379 | 0.034483 | 0.413793 | 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 |
ec9fe13378ef9c3e48493c7adcdc8d125222f718 | 520 | py | Python | setup.py | fzyzcjy/h5bs | a4b4568138ba6bbf4edd6492ba952476c64942ac | [
"MIT"
] | null | null | null | setup.py | fzyzcjy/h5bs | a4b4568138ba6bbf4edd6492ba952476c64942ac | [
"MIT"
] | 1 | 2021-04-19T23:42:24.000Z | 2021-04-20T07:15:53.000Z | setup.py | fzyzcjy/h5bs | a4b4568138ba6bbf4edd6492ba952476c64942ac | [
"MIT"
] | 1 | 2021-04-19T23:31:13.000Z | 2021-04-19T23:31:13.000Z | from setuptools import setup
from Cython.Build import cythonize
from numpy import get_include
setup(
name='vis_precision',
ext_modules=cythonize('vis_precision.pyx'),
include_dirs=[get_include()],
zip_safe=False,
)
setup(
name='dnb_int32',
ext_modules=cythonize('dnb_int32.pyx'),
... | 20.8 | 48 | 0.675 | 65 | 520 | 5.107692 | 0.353846 | 0.120482 | 0.171687 | 0.153614 | 0.39759 | 0.39759 | 0.39759 | 0.39759 | 0.289157 | 0.289157 | 0 | 0.019277 | 0.201923 | 520 | 24 | 49 | 21.666667 | 0.780723 | 0 | 0 | 0.428571 | 0 | 0 | 0.157258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eca336d6d257293c44480b8296679ca61eda3285 | 13,108 | py | Python | expert_management/views.py | ungleich/mri-connect | 8b7f6a1481c379e23363ad8c60a66b526b7c155c | [
"MIT"
] | null | null | null | expert_management/views.py | ungleich/mri-connect | 8b7f6a1481c379e23363ad8c60a66b526b7c155c | [
"MIT"
] | 1 | 2021-05-23T08:02:22.000Z | 2021-05-23T08:02:22.000Z | expert_management/views.py | ungleich/mri-connect | 8b7f6a1481c379e23363ad8c60a66b526b7c155c | [
"MIT"
] | 1 | 2021-02-10T14:13:22.000Z | 2021-02-10T14:13:22.000Z | import logging
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.gis.db.models import F, Q, Value
from django.contrib.sites.shortcuts import get_current_site
from django.core.... | 37.558739 | 115 | 0.700793 | 1,513 | 13,108 | 5.825512 | 0.169861 | 0.041184 | 0.032335 | 0.041298 | 0.491037 | 0.428069 | 0.376673 | 0.295893 | 0.269912 | 0.235875 | 0 | 0.000861 | 0.202395 | 13,108 | 348 | 116 | 37.666667 | 0.842181 | 0.028837 | 0 | 0.371648 | 0 | 0 | 0.128655 | 0.076155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10728 | false | 0 | 0.08046 | 0.022989 | 0.59387 | 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 |
ecac95f096dbc3555e133d41c7e25490bc67ed64 | 1,270 | py | Python | kickstart/Round_H/C.py | s-cs-s/cp-codes | 3cb009d6524efc269d874f768e990c58d785716c | [
"MIT"
] | null | null | null | kickstart/Round_H/C.py | s-cs-s/cp-codes | 3cb009d6524efc269d874f768e990c58d785716c | [
"MIT"
] | null | null | null | kickstart/Round_H/C.py | s-cs-s/cp-codes | 3cb009d6524efc269d874f768e990c58d785716c | [
"MIT"
] | null | null | null | #passed Test Set 1 in py
# def romanToInt(s):
# translations = {
# "I": 1,
# "V": 5,
# "X": 10,
# "L": 50,
# "C": 100,
# "D": 500,
# "M": 1000
# }
# number = 0
# s = s.replace("IV", "IIII").replace("IX",... | 22.678571 | 60 | 0.40315 | 169 | 1,270 | 3.005917 | 0.449704 | 0.059055 | 0.230315 | 0.03937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063512 | 0.367717 | 1,270 | 55 | 61 | 23.090909 | 0.569116 | 0.398425 | 0 | 0 | 0 | 0 | 0.05163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.083333 | 0.041667 | 0 | 0 | 0 | null | 0 | 1 | 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 |
ecada6ec8e7ffac8f10d8c0d41f9694851897884 | 662 | py | Python | codenation-aceleradev-data-science/w02-data-science-0/test_submit.py | diego-marcelino/sandbox-ds-ml | a257f419a6cfa4d3ead2692043d0bb5f89db7c9b | [
"MIT"
] | 1 | 2020-07-24T22:10:25.000Z | 2020-07-24T22:10:25.000Z | codenation-aceleradev-data-science/w02-data-science-0/test_submit.py | diego-marcelino/sandbox-ds-ml | a257f419a6cfa4d3ead2692043d0bb5f89db7c9b | [
"MIT"
] | 9 | 2020-11-18T23:00:19.000Z | 2022-03-12T00:42:48.000Z | codenation-aceleradev-data-science/w02-data-science-0/test_submit.py | diego-marcelino/sandbox-ds-ml | a257f419a6cfa4d3ead2692043d0bb5f89db7c9b | [
"MIT"
] | null | null | null | from main import *
def test_q1():
result = q1()
assert result == (537577, 12)
def test_q2():
result = q2()
assert result == 49348
def test_q3():
result = q3()
assert result == 5891
def test_q4():
result = q4()
assert result == 3
def test_q5():
result = q5()
assert ... | 10.852459 | 36 | 0.555891 | 89 | 662 | 4.022472 | 0.325843 | 0.195531 | 0.094972 | 0.100559 | 0.106145 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139738 | 0.308157 | 662 | 61 | 37 | 10.852459 | 0.641921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.322581 | 1 | 0.322581 | false | 0 | 0.032258 | 0 | 0.354839 | 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 |
ecb621f5b5aa9cde3a8e713947e817e1b03890bd | 2,277 | py | Python | tests/forms/test_dm_radio_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 3 | 2015-07-24T21:23:36.000Z | 2020-11-28T03:42:16.000Z | tests/forms/test_dm_radio_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 350 | 2015-05-05T09:24:39.000Z | 2021-07-27T15:02:35.000Z | tests/forms/test_dm_radio_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 16 | 2015-06-13T15:37:13.000Z | 2021-04-10T18:03:18.000Z | import pytest
import wtforms
from dmutils.forms.fields import DMRadioField
_options = [
{
"label": "Yes",
"value": "yes",
"description": "A positive response."
},
{
"label": "No",
"value": "no",
"description": "A negative response."
}
]
class RadioFor... | 25.3 | 90 | 0.69697 | 293 | 2,277 | 5.133106 | 0.242321 | 0.071809 | 0.056516 | 0.047872 | 0.31516 | 0.224734 | 0.168883 | 0.168883 | 0.144947 | 0.144947 | 0 | 0.000523 | 0.159859 | 2,277 | 89 | 91 | 25.58427 | 0.785677 | 0 | 0 | 0.071429 | 0 | 0 | 0.083004 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.232143 | false | 0 | 0.053571 | 0.053571 | 0.410714 | 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 |
ecbf43c192d362c3a3ded97b994c8ca8efa0b19a | 403 | py | Python | PART05/7_drop_duplicates.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | 1 | 2021-01-21T09:11:51.000Z | 2021-01-21T09:11:51.000Z | PART05/7_drop_duplicates.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | null | null | null | PART05/7_drop_duplicates.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 8 08:26:28 2020
@author: arti
"""
import pandas as pd
df = pd.DataFrame({'c1':['a', 'a', 'b', 'a', 'b'],
'c2':[1, 1, 1, 2, 2],
'c3':[1, 1, 2, 2, 2]})
print(df)
print('--')
df2 = df.drop_duplicates()
print(df2... | 16.791667 | 50 | 0.496278 | 63 | 403 | 3.142857 | 0.571429 | 0.030303 | 0.030303 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10356 | 0.233251 | 403 | 24 | 51 | 16.791667 | 0.537217 | 0.233251 | 0 | 0.25 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
ecc2a088f1eb686985360ad1af60a002ac63e5f9 | 633 | py | Python | apps/main/forms.py | simtokic/DjangoDemo | d38efb267ed93088f25a716f8daf69a7c4e2f729 | [
"MIT"
] | null | null | null | apps/main/forms.py | simtokic/DjangoDemo | d38efb267ed93088f25a716f8daf69a7c4e2f729 | [
"MIT"
] | 7 | 2020-06-06T01:31:13.000Z | 2022-03-12T00:17:29.000Z | apps/main/forms.py | simtokic/DjangoDemo | d38efb267ed93088f25a716f8daf69a7c4e2f729 | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import UserProfile
class UserForm(forms.ModelForm):
class Meta:
model = User
fields = ('first_name', 'last_name', 'email')
class ProfileForm(forms.ModelForm):... | 24.346154 | 96 | 0.684044 | 72 | 633 | 5.958333 | 0.513889 | 0.06993 | 0.097902 | 0.097902 | 0.20979 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.210111 | 633 | 25 | 97 | 25.32 | 0.848 | 0 | 0 | 0.294118 | 0 | 0 | 0.154818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.235294 | 0 | 0.647059 | 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 |
ecd30de891b507170f35e9a4b434aed3c119fa36 | 645 | py | Python | gtcrew/migrations/0012_auto_20210724_1243.py | Aleccc/gtcrew | 7e6e7024afdbf48ee796cb1f9a86b913e6843dda | [
"MIT"
] | null | null | null | gtcrew/migrations/0012_auto_20210724_1243.py | Aleccc/gtcrew | 7e6e7024afdbf48ee796cb1f9a86b913e6843dda | [
"MIT"
] | 21 | 2019-02-14T02:47:34.000Z | 2022-01-23T02:22:54.000Z | gtcrew/migrations/0012_auto_20210724_1243.py | Aleccc/gtcrew | 7e6e7024afdbf48ee796cb1f9a86b913e6843dda | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-24 16:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gtcrew', '0011_favicon'),
]
operations = [
migrations.AlterField(
model_name='favicon',
name='id',
field... | 26.875 | 111 | 0.609302 | 69 | 645 | 5.565217 | 0.565217 | 0.0625 | 0.130208 | 0.151042 | 0.442708 | 0.442708 | 0.442708 | 0.442708 | 0.442708 | 0.442708 | 0 | 0.04034 | 0.269767 | 645 | 23 | 112 | 28.043478 | 0.774947 | 0.069767 | 0 | 0.470588 | 1 | 0 | 0.070234 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
ecf085bbb2a49279a839030c308d2f2b8c6cacc9 | 365 | py | Python | freeze.py | wcpr740/wcpr.org | 6a9120122d45a9721a7140fcc594ba5634b91f90 | [
"Apache-2.0"
] | 2 | 2019-09-10T15:53:20.000Z | 2020-10-06T20:51:06.000Z | freeze.py | wcpr740/wcpr.org | 6a9120122d45a9721a7140fcc594ba5634b91f90 | [
"Apache-2.0"
] | 8 | 2020-12-18T22:13:17.000Z | 2022-03-11T23:14:13.000Z | freeze.py | wcpr740/wcpr.org | 6a9120122d45a9721a7140fcc594ba5634b91f90 | [
"Apache-2.0"
] | 1 | 2018-09-19T22:58:19.000Z | 2018-09-19T22:58:19.000Z | from flask_site import freezer, flask_config, env
if __name__ == '__main__':
if flask_config.get('DEBUG', True):
freezer.run(debug=True) # build and serve from build directory
else:
freezer.freeze() # only build, don't serve
if env == 'freeze':
with open('build/CNAME', 'w+... | 33.181818 | 71 | 0.594521 | 49 | 365 | 4.204082 | 0.653061 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276712 | 365 | 10 | 72 | 36.5 | 0.780303 | 0.164384 | 0 | 0 | 0 | 0 | 0.13245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 |
ecf0e05ab2318a61aa8f1e5c2786dae16d3a7976 | 934 | py | Python | deb-stm8flash.py | ulikoehler/deb-buildscripts | 58e2d51a458a39bc1d7a3fa580ed94bedcc772bc | [
"CC0-1.0"
] | 39 | 2015-03-03T12:20:05.000Z | 2022-03-16T11:47:42.000Z | deb-stm8flash.py | ulikoehler/deb-buildscripts | 58e2d51a458a39bc1d7a3fa580ed94bedcc772bc | [
"CC0-1.0"
] | 2 | 2021-01-31T09:58:12.000Z | 2021-09-21T05:14:28.000Z | deb-stm8flash.py | ulikoehler/deb-buildscripts | 58e2d51a458a39bc1d7a3fa580ed94bedcc772bc | [
"CC0-1.0"
] | 13 | 2015-07-20T01:53:00.000Z | 2018-08-25T02:39:07.000Z | #!/usr/bin/env python3
from deblib import *
# General config
set_name("stm8flash")
remove_old_buildtree()
set_homepage("https://github.com/vdudouyt/stm8flash.git")
#Download it
git_clone("https://github.com/vdudouyt/stm8flash.git")
set_version("0.1", gitcount=True)
add_version_suffix("-deb1")
set_debversion(1)
# Remove... | 25.944444 | 147 | 0.777302 | 139 | 934 | 4.964029 | 0.561151 | 0.03913 | 0.056522 | 0.063768 | 0.171014 | 0.171014 | 0 | 0 | 0 | 0 | 0 | 0.013953 | 0.079229 | 934 | 35 | 148 | 26.685714 | 0.788372 | 0.286938 | 0 | 0 | 0 | 0.055556 | 0.375573 | 0.132824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 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 |
ecf39a5d276bcbd0eabeeeb94962116bbaeb4edc | 1,369 | py | Python | code/tasks/REGEX/evaluate_student.py | khanhptnk/iliad | 3eb4f11c1d3cdb6784fd2f78a83ce07f984d3825 | [
"MIT"
] | 7 | 2021-06-10T22:17:13.000Z | 2022-03-03T05:58:55.000Z | code/tasks/REGEX/evaluate_student.py | khanhptnk/iliad | 3eb4f11c1d3cdb6784fd2f78a83ce07f984d3825 | [
"MIT"
] | null | null | null | code/tasks/REGEX/evaluate_student.py | khanhptnk/iliad | 3eb4f11c1d3cdb6784fd2f78a83ce07f984d3825 | [
"MIT"
] | null | null | null | import os
import sys
import time
import logging
import numpy as np
from datetime import datetime
from collections import defaultdict
import torch
import flags
import datacode
import trainers
import agents
from misc import util
def main():
config = configure()
datasets = datacode.load(config)
trainer =... | 23.20339 | 89 | 0.705625 | 180 | 1,369 | 5.227778 | 0.377778 | 0.05526 | 0.057386 | 0.070138 | 0.095643 | 0.068013 | 0 | 0 | 0 | 0 | 0 | 0.001771 | 0.17531 | 1,369 | 58 | 90 | 23.603448 | 0.831709 | 0 | 0 | 0 | 0 | 0 | 0.04748 | 0 | 0.025 | 0 | 0 | 0 | 0.025 | 1 | 0.05 | false | 0 | 0.325 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
019eee77fe4fe8b335602c7a75e8fc88eb798f38 | 284 | py | Python | main.py | Aleppi/ElectricFields | 8642918f44f2b8b01e3d1c36bae151c92c362c2c | [
"MIT"
] | 3 | 2020-06-14T01:37:58.000Z | 2022-02-24T13:41:48.000Z | main.py | Aleppi/ElectricFields | 8642918f44f2b8b01e3d1c36bae151c92c362c2c | [
"MIT"
] | null | null | null | main.py | Aleppi/ElectricFields | 8642918f44f2b8b01e3d1c36bae151c92c362c2c | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import charge
import fieldlines
poscharge = charge.Charge(0, [-1,0])
negcharge = charge.Charge(-1, [1,0])
charges = [poscharge, negcharge]
l = fieldlines.Field_lines(charges, max_x=2, max_y=2, num_of_lines=30, step=0.05)
l.plot()
plt.show() | 21.846154 | 81 | 0.711268 | 46 | 284 | 4.282609 | 0.565217 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053279 | 0.140845 | 284 | 13 | 82 | 21.846154 | 0.754098 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
01a13d51dbfbca870922a59c56c5ac34857e318d | 471 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/production.py | perryyo/django-project-template | 8c6a0ebbfbe7042c249e373fc35cef3a45bc2077 | [
"0BSD"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/production.py | perryyo/django-project-template | 8c6a0ebbfbe7042c249e373fc35cef3a45bc2077 | [
"0BSD"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/production.py | perryyo/django-project-template | 8c6a0ebbfbe7042c249e373fc35cef3a45bc2077 | [
"0BSD"
] | null | null | null | from settings.staging import *
# Allowed hosts for the site
ALLOWED_HOSTS = ['{{ cookiecutter.live_hostname }}']
# Static site url, used when we need absolute url but lack request object, e.g. in email sending.
SITE_URL = 'https://{{ cookiecutter.live_hostname }}'
EMAIL_HOST_PASSWORD = 'TODO (api key)'
RAVEN_BACKE... | 31.4 | 97 | 0.749469 | 69 | 471 | 4.927536 | 0.608696 | 0.070588 | 0.141176 | 0.117647 | 0.170588 | 0.170588 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121019 | 471 | 14 | 98 | 33.642857 | 0.821256 | 0.259023 | 0 | 0 | 0 | 0 | 0.479769 | 0.150289 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
01bc0e1822c36094be26d4bcb3997ea9492d6708 | 1,483 | py | Python | hms/migrations/0003_auto_20210608_2121.py | kasparov-creat/hms-api | 7cf7da5da59a8bebfd4629fd65ac159ab19319ec | [
"MIT"
] | null | null | null | hms/migrations/0003_auto_20210608_2121.py | kasparov-creat/hms-api | 7cf7da5da59a8bebfd4629fd65ac159ab19319ec | [
"MIT"
] | null | null | null | hms/migrations/0003_auto_20210608_2121.py | kasparov-creat/hms-api | 7cf7da5da59a8bebfd4629fd65ac159ab19319ec | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-08 18:21
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),
('hms', '0002_doctor_name'... | 40.081081 | 140 | 0.616318 | 152 | 1,483 | 5.861842 | 0.513158 | 0.084175 | 0.060606 | 0.080808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027853 | 0.249494 | 1,483 | 36 | 141 | 41.194444 | 0.772686 | 0.030344 | 0 | 0.066667 | 1 | 0 | 0.130223 | 0.043872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 |
01bf89a6ca3d4f5c8157cc7d58dc78e80c903fcf | 1,706 | py | Python | libcst/codemod/commands/remove_pyre_directive.py | jschavesr/LibCST | e5ab7b90b4c9cd1f46e5b875ad317411abf48298 | [
"Apache-2.0"
] | 880 | 2019-08-07T21:21:11.000Z | 2022-03-29T06:25:34.000Z | libcst/codemod/commands/remove_pyre_directive.py | jschavesr/LibCST | e5ab7b90b4c9cd1f46e5b875ad317411abf48298 | [
"Apache-2.0"
] | 537 | 2019-08-08T18:34:30.000Z | 2022-03-30T16:46:14.000Z | libcst/codemod/commands/remove_pyre_directive.py | jschavesr/LibCST | e5ab7b90b4c9cd1f46e5b875ad317411abf48298 | [
"Apache-2.0"
] | 108 | 2019-08-08T00:17:21.000Z | 2022-03-24T20:53:31.000Z | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
import re
from abc import ABC
from typing import Pattern, Union
import libcst
from libcst.codemod import CodemodContext, VisitorBasedCodem... | 29.929825 | 78 | 0.684642 | 207 | 1,706 | 5.531401 | 0.42029 | 0.024454 | 0.026201 | 0.066376 | 0.242795 | 0.242795 | 0.242795 | 0.200873 | 0.200873 | 0.200873 | 0 | 0 | 0.234467 | 1,706 | 56 | 79 | 30.464286 | 0.876723 | 0.250879 | 0 | 0 | 0 | 0 | 0.104623 | 0.02352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.178571 | 0 | 0.607143 | 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 |
01c5afba02b25dd096167384832014be24e56dc9 | 847 | py | Python | junit_reporting/migrations/0006_add_JUnitProblem.py | nashif/django-junit-reporting | 38c776ee5395d7b0e41174918a0b218c7cfeb8f8 | [
"BSD-3-Clause"
] | null | null | null | junit_reporting/migrations/0006_add_JUnitProblem.py | nashif/django-junit-reporting | 38c776ee5395d7b0e41174918a0b218c7cfeb8f8 | [
"BSD-3-Clause"
] | 1 | 2019-07-29T18:25:50.000Z | 2019-07-29T18:25:50.000Z | junit_reporting/migrations/0006_add_JUnitProblem.py | nashif/django-junit-reporting | 38c776ee5395d7b0e41174918a0b218c7cfeb8f8 | [
"BSD-3-Clause"
] | 2 | 2019-10-26T02:53:16.000Z | 2022-02-23T15:12:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-13 20:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('junit_reporting', '0005_add_JUnitTest'),
]
operati... | 32.576923 | 121 | 0.608028 | 91 | 847 | 5.505495 | 0.714286 | 0.047904 | 0.055888 | 0.087824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034161 | 0.239669 | 847 | 25 | 122 | 33.88 | 0.743789 | 0.080283 | 0 | 0 | 1 | 0 | 0.134021 | 0.032216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
01ce6c512e24a39b04b49bf55505f759bf3e50d6 | 443 | py | Python | QuestionTime/questions/api/permissions.py | pogginicolo98/QuestionTime | 5adb3ce97189a9991e9956268c11a1a4b25aac7e | [
"MIT"
] | null | null | null | QuestionTime/questions/api/permissions.py | pogginicolo98/QuestionTime | 5adb3ce97189a9991e9956268c11a1a4b25aac7e | [
"MIT"
] | null | null | null | QuestionTime/questions/api/permissions.py | pogginicolo98/QuestionTime | 5adb3ce97189a9991e9956268c11a1a4b25aac7e | [
"MIT"
] | null | null | null | from rest_framework import permissions
class IsAuthorOrReadOnly(permissions.BasePermission):
"""
* Everyone can use safe methods ('GET', 'HEAD', 'OPTIONS')
* Users can write data (create, update, ecc..) only for their own Question instances.
"""
def has_object_permission(self, request, view, obj)... | 31.642857 | 89 | 0.68623 | 52 | 443 | 5.769231 | 0.826923 | 0.073333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218962 | 443 | 13 | 90 | 34.076923 | 0.867052 | 0.325056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.833333 | 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 |
01d1c80a68eeb662aa0691b4d03a7f62c6e50db0 | 5,188 | py | Python | main/views.py | shoorday/IC | dfd6509d2e850ffd02dc0ddd31366e5e7f51eab8 | [
"MIT"
] | 2 | 2020-05-13T03:53:11.000Z | 2020-05-27T11:19:18.000Z | main/views.py | ShoorDay/IC | dfd6509d2e850ffd02dc0ddd31366e5e7f51eab8 | [
"MIT"
] | 4 | 2021-03-01T21:13:48.000Z | 2021-06-28T19:57:00.000Z | main/views.py | shoorday/IC | dfd6509d2e850ffd02dc0ddd31366e5e7f51eab8 | [
"MIT"
] | null | null | null | from django.db import models
from rest_framework import mixins
from rest_framework import status
from rest_framework.decorators import action, api_view
from rest_framework.response import Response
from rest_framework.viewsets import GenericViewSet
from .models import *
from .serializers import *
__all__ = ('Component... | 37.594203 | 90 | 0.634541 | 537 | 5,188 | 5.94041 | 0.195531 | 0.050784 | 0.039498 | 0.053605 | 0.640439 | 0.631034 | 0.631034 | 0.631034 | 0.631034 | 0.628213 | 0 | 0.003746 | 0.228219 | 5,188 | 137 | 91 | 37.868613 | 0.792957 | 0 | 0 | 0.512397 | 0 | 0 | 0.108327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049587 | false | 0 | 0.066116 | 0 | 0.338843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
01df48ab5783c28a35ea823d2375b2a49ef6f86f | 628 | py | Python | standards/tests/test_jurisdiction.py | GROCCAD/groccad | 1d461043030bebe277d74b1c9df9877436baa270 | [
"MIT"
] | 1 | 2022-03-05T03:11:51.000Z | 2022-03-05T03:11:51.000Z | standards/tests/test_jurisdiction.py | rocdata/rocserver | 1d461043030bebe277d74b1c9df9877436baa270 | [
"MIT"
] | null | null | null | standards/tests/test_jurisdiction.py | rocdata/rocserver | 1d461043030bebe277d74b1c9df9877436baa270 | [
"MIT"
] | null | null | null | import django
import pytest
from standards.models import Jurisdiction, UserProfile
@pytest.mark.django_db
def test_juri():
juri = Jurisdiction(
name="Ghana",
display_name="Ghana NaCCA",
country='GH'
)
juri.save()
assert juri.id
# print(juri.__dict__)
@pytest.mark.django_... | 22.428571 | 80 | 0.678344 | 78 | 628 | 5.294872 | 0.410256 | 0.130751 | 0.152542 | 0.20339 | 0.607748 | 0.607748 | 0.486683 | 0.486683 | 0.486683 | 0.363196 | 0 | 0.003968 | 0.197452 | 628 | 27 | 81 | 23.259259 | 0.815476 | 0.031847 | 0 | 0.3 | 0 | 0 | 0.089256 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.25 | 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 |
01e603a47f12b063582ba5f099cbbbd4ccf97de7 | 649 | py | Python | Turidity.py | cybertraining-dsc/boat | 32e4942b69059d1dd48d79c8e0f55bac438eb5e7 | [
"Apache-2.0"
] | null | null | null | Turidity.py | cybertraining-dsc/boat | 32e4942b69059d1dd48d79c8e0f55bac438eb5e7 | [
"Apache-2.0"
] | null | null | null | Turidity.py | cybertraining-dsc/boat | 32e4942b69059d1dd48d79c8e0f55bac438eb5e7 | [
"Apache-2.0"
] | null | null | null | """
Test of the Turbidity meter using an ADC
# The Turbidity sensor mapped from 0 to 1023 (0 - 5 volts)
# ADC maps values -32768 to 32767, GND is 0 (-5 - 5 v)
# Voltage conversion is volts = (reading / 32767) * 5
# This may need some calibration adjustment
"""
# Import the ADS1x15 module.
from ADS1115 import ADS1115
... | 19.666667 | 58 | 0.639445 | 92 | 649 | 4.326087 | 0.576087 | 0.060302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088477 | 0.251156 | 649 | 32 | 59 | 20.28125 | 0.730453 | 0.431433 | 0 | 0 | 0 | 0 | 0.047354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.428571 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
01f138a6461e9717da0f32470289059433e2291d | 492 | py | Python | python/engine/functions/anomaly_computation_test.py | RomainEndelin/keplerian_orbits | 3380e5d9a1006e73580cf3a86cb10845196c405d | [
"MIT"
] | null | null | null | python/engine/functions/anomaly_computation_test.py | RomainEndelin/keplerian_orbits | 3380e5d9a1006e73580cf3a86cb10845196c405d | [
"MIT"
] | null | null | null | python/engine/functions/anomaly_computation_test.py | RomainEndelin/keplerian_orbits | 3380e5d9a1006e73580cf3a86cb10845196c405d | [
"MIT"
] | null | null | null | import math
import pytest
from .anomaly_computation import compute_eccentric_anomaly
@pytest.mark.parametrize(
"mean_anomaly,eccentricity,expected",
[
(0, 0, 0),
(math.pi / 3, 0, math.pi / 3),
(0, 0.5, 0),
(math.pi / 3, 0.5, math.pi / 2.0306),
],
)
def test_eccentric_anom... | 23.428571 | 82 | 0.656504 | 64 | 492 | 4.84375 | 0.390625 | 0.077419 | 0.222581 | 0.077419 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052219 | 0.221545 | 492 | 20 | 83 | 24.6 | 0.75718 | 0 | 0 | 0 | 0 | 0 | 0.069106 | 0.069106 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
01f735bcd8e2c517a91fa4c78d05804bb1d4aeb9 | 813 | py | Python | home_downloader.py | pigna90/home-downloader-bot | b543e0106a3b226e91c4f9eb449083610543490d | [
"MIT"
] | 9 | 2020-11-05T19:27:21.000Z | 2021-06-04T00:39:25.000Z | youtube_downloader.py | MdHridoyHasan/youtube-dl-bot | fd707875525feaeb41996de148a665a483b2fe1f | [
"MIT"
] | null | null | null | youtube_downloader.py | MdHridoyHasan/youtube-dl-bot | fd707875525feaeb41996de148a665a483b2fe1f | [
"MIT"
] | 10 | 2020-11-08T15:39:05.000Z | 2022-01-11T11:31:00.000Z | from telegram.ext import Updater
from telegram.ext import MessageHandler, CommandHandler, Filters
from modules import incoming_message_action, welcome, config, ls
if __name__ == '__main__':
token = config["bot_token"]
updater = Updater(token=token, use_context=True)
dispatcher = updater.dispatcher
... | 26.225806 | 76 | 0.760148 | 98 | 813 | 6.061224 | 0.510204 | 0.10101 | 0.10101 | 0.070707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158672 | 813 | 30 | 77 | 27.1 | 0.868421 | 0.189422 | 0 | 0 | 0 | 0 | 0.036753 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 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 |
01f762d43a931f4da27e5cfdc1c04795c1539c21 | 13,245 | py | Python | scripts/go_annotation_changes.py | Antonialock/go-site | 7dcb8b0b5a7987ff9b3e4c8b6fc15b434b8a6195 | [
"BSD-3-Clause"
] | null | null | null | scripts/go_annotation_changes.py | Antonialock/go-site | 7dcb8b0b5a7987ff9b3e4c8b6fc15b434b8a6195 | [
"BSD-3-Clause"
] | 2 | 2017-07-13T21:34:19.000Z | 2021-02-04T18:41:46.000Z | scripts/go_annotation_changes.py | Antonialock/go-site | 7dcb8b0b5a7987ff9b3e4c8b6fc15b434b8a6195 | [
"BSD-3-Clause"
] | null | null | null | import sys, getopt, os
import requests
import json
def compute_changes(current_stats, previous_stats):
stats_changes = {
"releases_compared": {
"current" : current_stats['release_date'],
"previous" : previous_stats['release_date']
}
}
for key, val in ... | 47.135231 | 194 | 0.633522 | 1,659 | 13,245 | 4.855937 | 0.094033 | 0.099305 | 0.084906 | 0.038232 | 0.771351 | 0.712885 | 0.677383 | 0.653674 | 0.615318 | 0.565541 | 0 | 0.001957 | 0.189958 | 13,245 | 281 | 195 | 47.135231 | 0.748905 | 0.034881 | 0 | 0.253731 | 0 | 0.004975 | 0.324102 | 0.00761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039801 | false | 0 | 0.014925 | 0 | 0.074627 | 0.049751 | 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 |
01fe0abfe3df08e25d091d34b5d052be8bf8fe85 | 195 | py | Python | outputCoverageGeneration.py | ArtashesH/PylayersWith3D | e4c35279a7da121d9a68282a6a0c3decfba696b4 | [
"MIT"
] | null | null | null | outputCoverageGeneration.py | ArtashesH/PylayersWith3D | e4c35279a7da121d9a68282a6a0c3decfba696b4 | [
"MIT"
] | null | null | null | outputCoverageGeneration.py | ArtashesH/PylayersWith3D | e4c35279a7da121d9a68282a6a0c3decfba696b4 | [
"MIT"
] | null | null | null | from pylayers.gis.layout import *
# Load the layout from its .ini file in $BASENAME/struc/ini
L = Layout('WHERE1.lay')
# Build all the graphs
L.build()
# Check graphs
L._visual_check()
plt.show() | 24.375 | 59 | 0.733333 | 33 | 195 | 4.272727 | 0.69697 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.138462 | 195 | 8 | 60 | 24.375 | 0.833333 | 0.466667 | 0 | 0 | 0 | 0 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
bf03d9d2d348271c15ec2863f5bc41901571cf98 | 378 | py | Python | tasks/EPAM/python_course/foundation-python/l6/m6-20-extra.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | 2 | 2022-01-19T18:01:35.000Z | 2022-02-06T06:54:38.000Z | tasks/EPAM/python_course/foundation-python/l6/m6-20-extra.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | null | null | null | tasks/EPAM/python_course/foundation-python/l6/m6-20-extra.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | null | null | null | """read()"""
f = open("./test_file2", 'r', encoding = 'utf-8')
# read a file line-by-line using a for loop
for line in f:
print(line, end='')
# read individual lines of a file
f5 = f.readline()
f6 = f.readline()
f7 = f.readline()
print("f5\n", f5)
print("f6\n", f6)
print("f7\n", f7)
# list of remaining lines of... | 16.434783 | 49 | 0.613757 | 68 | 378 | 3.397059 | 0.485294 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.185185 | 378 | 22 | 50 | 17.181818 | 0.704545 | 0.330688 | 0 | 0 | 0 | 0 | 0.140496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.454545 | 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 |
bf0b61a1deea730a7c589dfb08b6a5cbdf09119e | 4,103 | py | Python | oldcode/9.py | MikeBeradino/face_glitch | fbadeb198c4536477e89aa92a449ceb7a0b95bf1 | [
"MIT"
] | null | null | null | oldcode/9.py | MikeBeradino/face_glitch | fbadeb198c4536477e89aa92a449ceb7a0b95bf1 | [
"MIT"
] | null | null | null | oldcode/9.py | MikeBeradino/face_glitch | fbadeb198c4536477e89aa92a449ceb7a0b95bf1 | [
"MIT"
] | null | null | null | import cv2
import sys
import os
import numpy as np
from insta_get import scrape,prep_insta_dump,check_clean_insta_dump
from PIL import Image, ImageSequence,ImageDraw
import random
import sys, select
sleep = 60 # in min
loop = False
x = 0
y = 0
w=0
h=0
number_frames = 3
# Get user supplied values
face_cascade = cv2... | 23.180791 | 133 | 0.504509 | 507 | 4,103 | 3.930966 | 0.331361 | 0.027095 | 0.015053 | 0.019067 | 0.011039 | 0.011039 | 0.011039 | 0 | 0 | 0 | 0 | 0.025829 | 0.30173 | 4,103 | 176 | 134 | 23.3125 | 0.669808 | 0.100658 | 0 | 0.130435 | 0 | 0.01087 | 0.172084 | 0.094237 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.184783 | 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 |
bf1b6ded88c9c962aef271448649cf7000e0eb06 | 330 | py | Python | commerce/commerce/auctions/migrations/0010_remove_auction_seller.py | immortal-zeus/CS50_WEBProgammingProjectDjango | 96c547154b6c2ff4bf47c6e6946c36e858f07c4a | [
"BSD-3-Clause"
] | 1 | 2021-06-22T06:31:58.000Z | 2021-06-22T06:31:58.000Z | commerce/commerce/auctions/migrations/0010_remove_auction_seller.py | immortal-zeus/CS50_WEBProgammingProjectDjango | 96c547154b6c2ff4bf47c6e6946c36e858f07c4a | [
"BSD-3-Clause"
] | null | null | null | commerce/commerce/auctions/migrations/0010_remove_auction_seller.py | immortal-zeus/CS50_WEBProgammingProjectDjango | 96c547154b6c2ff4bf47c6e6946c36e858f07c4a | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-30 13:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auctions', '0009_auto_20210330_1826'),
]
operations = [
migrations.RemoveField(
model_name='auction',
name='Seller',
... | 18.333333 | 48 | 0.593939 | 35 | 330 | 5.485714 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133047 | 0.293939 | 330 | 17 | 49 | 19.411765 | 0.690987 | 0.136364 | 0 | 0 | 1 | 0 | 0.155477 | 0.081272 | 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 |
bf1bd7e3a739e5d0102de5e325fd4937b5461b1e | 1,338 | py | Python | src/xdsl/dialects/affine.py | martin-luecke/xdsl | b96d19d97a5282823e7735da06764fa57a781429 | [
"Apache-2.0"
] | null | null | null | src/xdsl/dialects/affine.py | martin-luecke/xdsl | b96d19d97a5282823e7735da06764fa57a781429 | [
"Apache-2.0"
] | null | null | null | src/xdsl/dialects/affine.py | martin-luecke/xdsl | b96d19d97a5282823e7735da06764fa57a781429 | [
"Apache-2.0"
] | null | null | null | from typing import Union
from xdsl.ir import *
from xdsl.util import new_op
@dataclass
class Affine:
ctx: MLContext
def __post_init__(self):
self.ctx.register_op(new_op("affine.for", 0, 0, 1))
self.ctx.register_op(new_op("affine.load", 1, 3, 0))
self.ctx.register_op(new_op("affine.st... | 34.307692 | 79 | 0.562033 | 162 | 1,338 | 4.512346 | 0.277778 | 0.067031 | 0.21067 | 0.069767 | 0.611491 | 0.532148 | 0.391245 | 0.276334 | 0.276334 | 0.276334 | 0 | 0.011603 | 0.29148 | 1,338 | 38 | 80 | 35.210526 | 0.759494 | 0 | 0 | 0.064516 | 0 | 0 | 0.05157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.096774 | 0.064516 | 0.387097 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
bf2054d5862b899520352d86e419743a0a5152b2 | 174 | py | Python | RepeatedString.py | vantonini/HackerRankCodes | 657b782b0a678a8edd84194b1bd147a305c6f01c | [
"MIT"
] | null | null | null | RepeatedString.py | vantonini/HackerRankCodes | 657b782b0a678a8edd84194b1bd147a305c6f01c | [
"MIT"
] | null | null | null | RepeatedString.py | vantonini/HackerRankCodes | 657b782b0a678a8edd84194b1bd147a305c6f01c | [
"MIT"
] | null | null | null | def repeatedString(s, n):
total = s.count("a") * int(n/len(s))
total += s[:n % len(s)].count("a")
return total
s = "aba"
n = 10
n = int(n)
repeatedString(s, n)
| 15.818182 | 40 | 0.545977 | 31 | 174 | 3.064516 | 0.387097 | 0.063158 | 0.336842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.229885 | 174 | 10 | 41 | 17.4 | 0.69403 | 0 | 0 | 0 | 0 | 0 | 0.028736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 |
bf219a66bf0bffde51f62f9aad77735e37cec783 | 3,825 | py | Python | exercises.py | suryakc/udemy-pymega | 62b63adc7734bdf0d6ca070d0da2c9de1560120a | [
"MIT"
] | null | null | null | exercises.py | suryakc/udemy-pymega | 62b63adc7734bdf0d6ca070d0da2c9de1560120a | [
"MIT"
] | null | null | null | exercises.py | suryakc/udemy-pymega | 62b63adc7734bdf0d6ca070d0da2c9de1560120a | [
"MIT"
] | null | null | null | """ Test """
import datetime
import os
def celsius_to_fahrenheit(celsius):
"""A function to convert celsius to fahrenheit"""
print("Converting {0} to fahrenheit...".format(celsius))
try:
return celsius * 9 / 5 + 32
except ZeroDivisionError:
print("An error occurred.")
... | 33.552632 | 94 | 0.541176 | 413 | 3,825 | 4.83293 | 0.290557 | 0.072144 | 0.09519 | 0.052104 | 0.444389 | 0.281563 | 0.248497 | 0.208417 | 0.164329 | 0.104208 | 0 | 0.027416 | 0.237124 | 3,825 | 113 | 95 | 33.849558 | 0.656271 | 0.091765 | 0 | 0.390244 | 0 | 0 | 0.28688 | 0.124244 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109756 | false | 0 | 0.02439 | 0 | 0.170732 | 0.402439 | 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 |
bf281cd951d471f8f3251ddfdd7f8a3865f06533 | 997 | py | Python | code/bp_chrono/pull.py | niplav/site | 09380a8585e6b067c4cce23da13ca9601320bd51 | [
"MIT"
] | 2 | 2022-02-09T14:02:59.000Z | 2022-03-23T11:50:47.000Z | code/bp_chrono/pull.py | niplav/site | 09380a8585e6b067c4cce23da13ca9601320bd51 | [
"MIT"
] | null | null | null | code/bp_chrono/pull.py | niplav/site | 09380a8585e6b067c4cce23da13ca9601320bd51 | [
"MIT"
] | null | null | null | import urllib2
from bs4 import BeautifulSoup
import sys
import datetime
for year in range(2006, datetime.datetime.now().year+1):
yearposts=[]
for page in range(1, 1000):
url='http://bit-player.org/{}/page/{}'.format(year, page)
req=urllib2.Request(url, headers={'User-Agent' : "Firefox"})
try:
con=urllib2.ur... | 34.37931 | 95 | 0.677031 | 157 | 997 | 4.191083 | 0.426752 | 0.085106 | 0.145897 | 0.155015 | 0.215805 | 0.215805 | 0.182371 | 0.182371 | 0.106383 | 0.106383 | 0 | 0.024831 | 0.111334 | 997 | 28 | 96 | 35.607143 | 0.717833 | 0 | 0 | 0 | 0 | 0 | 0.170512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 0.074074 | 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 |
bf298fc544660c6d6a57f5cebd8a3879fa5ed303 | 15,088 | py | Python | num_thai/thainumbers.py | lanuxos/num-thai | 26e78537fc2789733c2541c3f31cadc76e25844d | [
"MIT"
] | null | null | null | num_thai/thainumbers.py | lanuxos/num-thai | 26e78537fc2789733c2541c3f31cadc76e25844d | [
"MIT"
] | null | null | null | num_thai/thainumbers.py | lanuxos/num-thai | 26e78537fc2789733c2541c3f31cadc76e25844d | [
"MIT"
] | null | null | null | import re
from decimal import Decimal
class NumThai:
def __init__(self):
self.number = None
self.num_text = {
'-': "ລົບ", '.': "จุด", 0: "ศูนย์", 1: "หนื่ง",
2: "ສອງ", 3: "สาม", 4: "สี่", 5: "ห้า",
6: "หก", 7: "เจ็ด", 8: "แป... | 30.918033 | 106 | 0.405952 | 2,513 | 15,088 | 2.626741 | 0.185436 | 0.04363 | 0.038328 | 0.046054 | 0.659446 | 0.62339 | 0.597637 | 0.585517 | 0.579306 | 0.579306 | 0 | 0.040524 | 0.417749 | 15,088 | 487 | 107 | 30.98152 | 0.645987 | 0.08351 | 0 | 0.720635 | 0 | 0.009524 | 0.087316 | 0.026691 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025397 | false | 0.006349 | 0.006349 | 0 | 0.057143 | 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 |
bf2aa759924b87b3cac8caa094f263e42b2477cd | 1,618 | py | Python | install/app_store/tk-nuke/v0.9.4/plugins/basic/menu.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | 4 | 2019-01-11T03:41:28.000Z | 2019-09-12T06:57:17.000Z | bundle_cache/app_store/tk-nuke/v0.11.4.1/plugins/basic/menu.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | null | null | null | bundle_cache/app_store/tk-nuke/v0.11.4.1/plugins/basic/menu.py | ColinKennedy/tk-config-default2-respawn | 855fb8033daa549b92615792442f19a7f9c4f55c | [
"Linux-OpenIB"
] | 2 | 2019-01-10T05:00:18.000Z | 2020-02-15T16:32:56.000Z | # Copyright (c) 2017 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the S... | 29.418182 | 81 | 0.697775 | 225 | 1,618 | 4.906667 | 0.484444 | 0.032609 | 0.038043 | 0.036232 | 0.07971 | 0.07971 | 0.07971 | 0.07971 | 0 | 0 | 0 | 0.003984 | 0.224351 | 1,618 | 54 | 82 | 29.962963 | 0.875697 | 0.45241 | 0 | 0 | 0 | 0 | 0.081001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.277778 | 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 |
bf2bb6ce2a7adc94cfade7c532864da4578322bc | 11,121 | py | Python | kikola/forms/widgets.py | playpauseandstop/kikola | 0dcce731dc609922697c21c198d00bdc61b412b3 | [
"BSD-3-Clause"
] | 4 | 2015-10-23T21:57:54.000Z | 2021-01-08T04:17:07.000Z | kikola/forms/widgets.py | playpauseandstop/kikola | 0dcce731dc609922697c21c198d00bdc61b412b3 | [
"BSD-3-Clause"
] | null | null | null | kikola/forms/widgets.py | playpauseandstop/kikola | 0dcce731dc609922697c21c198d00bdc61b412b3 | [
"BSD-3-Clause"
] | 1 | 2016-03-29T22:09:16.000Z | 2016-03-29T22:09:16.000Z | """
Custom forms widgets for Django.
"""
import datetime
import re
from time import strptime
from django import forms
from django.core.urlresolvers import NoReverseMatch, reverse
from django.core.serializers.json import DjangoJSONEncoder
from django.forms.util import flatatt
from django.utils import simplejson
from ... | 32.708824 | 80 | 0.548692 | 1,231 | 11,121 | 4.838343 | 0.201462 | 0.027703 | 0.014103 | 0.005876 | 0.154466 | 0.084621 | 0.065984 | 0.043653 | 0 | 0 | 0 | 0.002583 | 0.338459 | 11,121 | 339 | 81 | 32.80531 | 0.806987 | 0 | 0 | 0.126761 | 0 | 0 | 0.078436 | 0.006297 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004695 | 0.056338 | 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 |
bf2d961c57b6d7faf54b5f89ecb4152581bfa7ea | 2,042 | py | Python | Prediction_Utils/Classification/_use_svc.py | xinyuwang1209/Prediction_Utils | a6ff6ec74c8fbdfe4013c760da361ad5b7447651 | [
"MIT"
] | null | null | null | Prediction_Utils/Classification/_use_svc.py | xinyuwang1209/Prediction_Utils | a6ff6ec74c8fbdfe4013c760da361ad5b7447651 | [
"MIT"
] | null | null | null | Prediction_Utils/Classification/_use_svc.py | xinyuwang1209/Prediction_Utils | a6ff6ec74c8fbdfe4013c760da361ad5b7447651 | [
"MIT"
] | null | null | null | __auther__ = 'Xinyu Wang'
import numpy as np
from sklearn.svm import SVR
from sklearn.svm import SVC
from sklearn.svm import LinearSVC
import matplotlib.pyplot as plt
from sklearn.model_selection import cross_validate, cross_val_score
from sklearn.model_selection import train_test_split
from sklearn.model_selection im... | 32.412698 | 111 | 0.642507 | 313 | 2,042 | 4.067093 | 0.28754 | 0.015711 | 0.018853 | 0.05106 | 0.285153 | 0.191673 | 0.135114 | 0.135114 | 0.135114 | 0.135114 | 0 | 0.027127 | 0.205681 | 2,042 | 62 | 112 | 32.935484 | 0.757707 | 0.25857 | 0 | 0.30303 | 0 | 0 | 0.108491 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.090909 | false | 0 | 0.242424 | 0 | 0.424242 | 0.121212 | 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 |
bf2ea6dbbe9ee8d5f3c20728fa71aac2ec95e256 | 362 | py | Python | PART06/5_df_apply_row.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | 1 | 2021-01-21T09:11:51.000Z | 2021-01-21T09:11:51.000Z | PART06/5_df_apply_row.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | null | null | null | PART06/5_df_apply_row.py | arti1117/python-machine-learning-pandas-data-analytics | 132b0f3326aeb028348bc9e07d38d18e4ec2e18e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 11 06:37:15 2020
@author: arti
"""
import pandas as pd
titanic = pd.read_csv('./titanic.csv')
df = titanic.loc[:, ['age', 'fare']]
df['ten'] = 10
def add_two_obj(a, b):
return a + b
df['add'] = df.apply(lambda x: add_two_obj(x['age'], x['ten... | 17.238095 | 71 | 0.593923 | 64 | 362 | 3.28125 | 0.703125 | 0.057143 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055921 | 0.160221 | 362 | 20 | 72 | 18.1 | 0.634868 | 0.259669 | 0 | 0 | 0 | 0 | 0.131274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0.222222 | 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 |
bf34b841564cf68e6671b6414b60a145de569a57 | 1,011 | py | Python | talentmap_api/bidding/tests/test_cycleposition_endpoints.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 5 | 2018-08-09T18:51:12.000Z | 2021-11-08T10:28:17.000Z | talentmap_api/bidding/tests/test_cycleposition_endpoints.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 13 | 2019-01-11T18:19:33.000Z | 2021-03-22T17:15:17.000Z | talentmap_api/bidding/tests/test_cycleposition_endpoints.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 4 | 2018-06-13T14:49:27.000Z | 2021-06-30T22:29:15.000Z | import pytest
from model_mommy import mommy
from rest_framework import status
@pytest.mark.django_db()
def test_favorite_action_endpoints(authorized_client, authorized_user):
position = mommy.make_recipe('talentmap_api.bidding.tests.cycleposition')
response = authorized_client.get(f'/api/v1/cycleposition/{po... | 34.862069 | 89 | 0.781405 | 134 | 1,011 | 5.634328 | 0.320896 | 0.127152 | 0.15894 | 0.125828 | 0.686093 | 0.686093 | 0.686093 | 0.686093 | 0.686093 | 0.686093 | 0 | 0.022148 | 0.106825 | 1,011 | 28 | 90 | 36.107143 | 0.813953 | 0 | 0 | 0.5 | 0 | 0 | 0.263106 | 0.263106 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
bf3d54d593c07a6808a3257bd8ae7e49e8928551 | 826 | py | Python | src/leagues/migrations/0007_auto_20200702_0023.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | null | null | null | src/leagues/migrations/0007_auto_20200702_0023.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | 6 | 2020-03-15T03:32:06.000Z | 2022-01-13T03:46:05.000Z | src/leagues/migrations/0007_auto_20200702_0023.py | sfernandezf/analytics-yahoofantasy | 6242599b903e4b8a7f9c56892ba26591a441b8fb | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.3 on 2020-07-02 00:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leagues', '0006_auto_20200701_0047'),
]
operations = [
migrations.AddField(
model_name='yahooleague',
name='is_visib... | 28.482759 | 97 | 0.606538 | 81 | 826 | 6.024691 | 0.580247 | 0.07377 | 0.053279 | 0.118852 | 0.241803 | 0.241803 | 0.241803 | 0 | 0 | 0 | 0 | 0.058824 | 0.279661 | 826 | 28 | 98 | 29.5 | 0.761345 | 0.054479 | 0 | 0.318182 | 1 | 0 | 0.191271 | 0.08344 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
17109ab2aa3ac2b0fb47c0cac771fb23c923f384 | 568 | py | Python | ryu/app/python_ui.py | nithinv13/ryu_backup | 10026f7d32fcc4381f745a5f11e43e9ed0143756 | [
"Apache-2.0"
] | null | null | null | ryu/app/python_ui.py | nithinv13/ryu_backup | 10026f7d32fcc4381f745a5f11e43e9ed0143756 | [
"Apache-2.0"
] | null | null | null | ryu/app/python_ui.py | nithinv13/ryu_backup | 10026f7d32fcc4381f745a5f11e43e9ed0143756 | [
"Apache-2.0"
] | null | null | null | from Tkinter import *
root = Tk()
theLabel = Label(root, text = "UI for showing algorithm working")
theLabel.pack()
topFrame = Frame(root)
topFrame.pack()
bottomFrame = Frame(root)
bottomFrame.pack(side = BOTTOM)
button1 = Button(topFrame, text = "Button 1", fg = "red")
button2 = Button(topFrame, text = "Button 2", ... | 24.695652 | 65 | 0.695423 | 76 | 568 | 5.197368 | 0.460526 | 0.081013 | 0.136709 | 0.182278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024793 | 0.147887 | 568 | 23 | 66 | 24.695652 | 0.791322 | 0 | 0 | 0 | 0 | 0 | 0.144112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 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 |
171254a9a1d28f734113fdbf64b778348b23818f | 1,814 | py | Python | src/conv1d/l2_model.py | niisan-tokyo/music_generator | 27d97e80a3acc3794fe1b6a5446c619d9675844c | [
"MIT"
] | 4 | 2017-08-10T15:01:03.000Z | 2018-09-19T15:30:32.000Z | src/conv1d/l2_model.py | niisan-tokyo/music_generator | 27d97e80a3acc3794fe1b6a5446c619d9675844c | [
"MIT"
] | null | null | null | src/conv1d/l2_model.py | niisan-tokyo/music_generator | 27d97e80a3acc3794fe1b6a5446c619d9675844c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
sys.path.append('/notebooks')
import wave
import struct
import glob
import params as par
from scipy import fromstring, int16
import numpy as np
import os.path
from keras.models import Sequential, load_model
from keras.layers import Dense, Flatten, Reshape
from keras.layers.noise impo... | 41.227273 | 113 | 0.766262 | 263 | 1,814 | 5.13308 | 0.269962 | 0.062963 | 0.082963 | 0.100741 | 0.406667 | 0.382963 | 0.382963 | 0.382963 | 0.382963 | 0.348889 | 0 | 0.030172 | 0.104741 | 1,814 | 43 | 114 | 42.186047 | 0.801108 | 0.011577 | 0 | 0.105263 | 0 | 0 | 0.039084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.394737 | 0 | 0.394737 | 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 |
1713e20b555e2586be2abc5c6344a58029fc4f5e | 345 | py | Python | 12306/single.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | 1 | 2019-07-09T09:59:39.000Z | 2019-07-09T09:59:39.000Z | 12306/single.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | null | null | null | 12306/single.py | MisterZhouZhou/pythonLearn | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | [
"Apache-2.0"
] | null | null | null |
def Singleton(cls):
_instance = {}
def _singleton(*args, **kwargs):
if cls not in _instance:
_instance[cls] = cls(*args, *kwargs)
return _instance[cls]
return _singleton
@Singleton
class A(object):
def __init__(self, x):
self.x = x
if __name__ == '__main__':
... | 17.25 | 48 | 0.571014 | 43 | 345 | 4.162791 | 0.465116 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008264 | 0.298551 | 345 | 20 | 49 | 17.25 | 0.731405 | 0 | 0 | 0 | 0 | 0 | 0.023188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0 | 0.428571 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
171c0fafcd1675b785c80479d9f6a663dee523e2 | 831 | py | Python | test/application/test_application_cancel_options.py | SvenMarcus/hpc-rocket | b28917e7afe6e2e839d1ae58f2e21fba6e3eb61c | [
"MIT"
] | 7 | 2022-01-03T13:52:40.000Z | 2022-03-10T16:26:04.000Z | test/application/test_application_cancel_options.py | SvenMarcus/hpclaunch | 1a0459167bf5d7b26b1d7e46a1b1d073a4a55650 | [
"MIT"
] | 10 | 2021-09-16T15:25:04.000Z | 2021-11-10T13:22:07.000Z | test/application/test_application_cancel_options.py | SvenMarcus/hpclaunch | 1a0459167bf5d7b26b1d7e46a1b1d073a4a55650 | [
"MIT"
] | null | null | null | from test.application.launchoptions import cancel_options_with_proxy
from test.slurm_assertions import assert_job_canceled
from test.slurmoutput import DEFAULT_JOB_ID
from test.testdoubles.executor import SlurmJobExecutorSpy
from test.testdoubles.filesystem import DummyFilesystemFactory
from typing import Optional
from... | 34.625 | 84 | 0.830325 | 105 | 831 | 6.285714 | 0.419048 | 0.060606 | 0.051515 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109507 | 831 | 23 | 85 | 36.130435 | 0.891892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.5625 | 0.0625 | 0.75 | 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 |
172110509a8335c010c303a473ad4043ccce6bb7 | 589 | py | Python | lambdatas_connorpheraty/code_review.py | connorpheraty/lambdatas | 81a34f3007afc584a98de2d78d19aa2d2ddd04f9 | [
"MIT"
] | null | null | null | lambdatas_connorpheraty/code_review.py | connorpheraty/lambdatas | 81a34f3007afc584a98de2d78d19aa2d2ddd04f9 | [
"MIT"
] | 4 | 2020-03-24T17:19:15.000Z | 2021-06-02T00:09:45.000Z | lambdatas_connorpheraty/code_review.py | connorpheraty/data_transformer | 81a34f3007afc584a98de2d78d19aa2d2ddd04f9 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from jeff_rowe_module import NullHelper as nh
from Data_Transformers import DataTransformer as dt
df = pd.read_csv("/Users/connorheraty/Desktop/Datasets/UCI/adult.csv",
names=['age', 'workclass', 'fnlwgt', 'education', 'education-num', 'marital-status',
... | 25.608696 | 101 | 0.643463 | 74 | 589 | 5.013514 | 0.716216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 589 | 22 | 102 | 26.772727 | 0.797849 | 0.042445 | 0 | 0 | 0 | 0 | 0.359712 | 0.089928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
172f8a277f935a5d3b1d61cda2e0d7c22ba01248 | 1,122 | py | Python | contentcuration/contentcuration/utils/messages.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | 1 | 2021-11-09T11:30:12.000Z | 2021-11-09T11:30:12.000Z | contentcuration/contentcuration/utils/messages.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | null | null | null | contentcuration/contentcuration/utils/messages.py | DXCanas/content-curation | 06ac2cf2a49d2420cb8a418f5df2bfee53ef644b | [
"MIT"
] | 1 | 2020-10-20T05:21:56.000Z | 2020-10-20T05:21:56.000Z | import json
import os
from django.conf import settings
from django.utils.translation import get_language
from django.utils.translation import to_locale
_JSON_MESSAGES_FILE_CACHE = {}
def locale_data_file(locale):
path = getattr(settings, 'LOCALE_PATHS')[0]
return os.path.join(path, locale, "LC_FRONTEND_MESS... | 32.057143 | 94 | 0.666667 | 133 | 1,122 | 5.300752 | 0.368421 | 0.102128 | 0.13617 | 0.178723 | 0.243972 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001185 | 0.247772 | 1,122 | 34 | 95 | 33 | 0.834123 | 0 | 0 | 0 | 0 | 0 | 0.057041 | 0.025847 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.36 | 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 |
1733884174746b1744c0cd0261b056a072a12065 | 1,207 | py | Python | app/database/api/schemas/node.py | space-logistics-org/spacenet | fd004437ed7b27dd6dc41a374e1dedfcea92e37d | [
"MIT"
] | 1 | 2022-02-17T18:01:41.000Z | 2022-02-17T18:01:41.000Z | app/database/api/schemas/node.py | space-logistics-org/spacenet | fd004437ed7b27dd6dc41a374e1dedfcea92e37d | [
"MIT"
] | 2 | 2021-06-19T19:41:15.000Z | 2021-07-21T17:07:48.000Z | app/database/api/schemas/node.py | space-logistics-org/spacenet | fd004437ed7b27dd6dc41a374e1dedfcea92e37d | [
"MIT"
] | 3 | 2021-06-16T16:31:12.000Z | 2022-02-17T18:02:57.000Z | """
This module defines the schemas for Read and Update variants of nodes and the corresponding
subtypes.
"""
from spacenet.schemas.mixins import ReadSchema, RequiresOnlyType
from spacenet.schemas.node import LagrangeNode, OrbitalNode, SurfaceNode
__all__ = [
"LagrangeNode",
"LagrangeNodeRead",
"Lagrange... | 19.467742 | 91 | 0.692626 | 107 | 1,207 | 7.775701 | 0.35514 | 0.09375 | 0.115385 | 0.126202 | 0.379808 | 0.25 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0.216239 | 1,207 | 61 | 92 | 19.786885 | 0.879493 | 0.279205 | 0 | 0.24 | 0 | 0 | 0.171206 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.24 | 0.08 | 0 | 0.32 | 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 |
174086132b3c29ae4b968bb2b7c238a1c2d45237 | 5,435 | py | Python | src/html_generators/_standard_elements.py | quadrant-newmedia/html_generators | c78bb28518efd212a13541c794e8ae426818bb9e | [
"MIT"
] | 1 | 2022-01-19T11:02:00.000Z | 2022-01-19T11:02:00.000Z | src/html_generators/_standard_elements.py | quadrant-newmedia/html_generators | c78bb28518efd212a13541c794e8ae426818bb9e | [
"MIT"
] | null | null | null | src/html_generators/_standard_elements.py | quadrant-newmedia/html_generators | c78bb28518efd212a13541c794e8ae426818bb9e | [
"MIT"
] | 1 | 2022-01-19T11:02:08.000Z | 2022-01-19T11:02:08.000Z | '''
Shortcut factories for all (non-svg) standard HTML elements
'''
from ._element import Element, VoidElement, RawTextElement
# Note - we add items to this dynamically, below
__all__ = []
# Taken from https://html.spec.whatwg.org/multipage/syntax.html June 19, 2020
VOID_ELEMENTS = [
'area',
'base',
'br',
'col',
... | 33.549383 | 265 | 0.758602 | 671 | 5,435 | 5.913562 | 0.326379 | 0.496976 | 0.015121 | 0.012097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004935 | 0.105244 | 5,435 | 161 | 266 | 33.757764 | 0.811022 | 0.141122 | 0 | 0.013699 | 0 | 0 | 0.129108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013699 | false | 0 | 0.006849 | 0.006849 | 0.034247 | 0 | 0 | 0 | 0 | null | 1 | 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 |
1746261da7327da66473de17b2dda5a25fd42ece | 7,843 | py | Python | docs/auto_doc.py | zhengyuli/addonfactory-solutions-library-python | 1a8d0345a117e70b072bc9a85c2c3a12756502e4 | [
"Apache-2.0"
] | null | null | null | docs/auto_doc.py | zhengyuli/addonfactory-solutions-library-python | 1a8d0345a117e70b072bc9a85c2c3a12756502e4 | [
"Apache-2.0"
] | null | null | null | docs/auto_doc.py | zhengyuli/addonfactory-solutions-library-python | 1a8d0345a117e70b072bc9a85c2c3a12756502e4 | [
"Apache-2.0"
] | 1 | 2021-12-05T00:59:39.000Z | 2021-12-05T00:59:39.000Z | # Copyright 2016 Splunk, Inc.
# SPDX-FileCopyrightText: 2020 2020
#
# SPDX-License-Identifier: Apache-2.0
"""
This program is used to construct sphinx rst directory tree from source code.
"""
import re
import sys
import os
import time
import shutil
import inspect
import importlib
import os.path as op
cur_dir = op.di... | 35.013393 | 88 | 0.534362 | 893 | 7,843 | 4.379619 | 0.192609 | 0.101253 | 0.049859 | 0.063155 | 0.365891 | 0.273587 | 0.179494 | 0.166198 | 0.143186 | 0.091025 | 0 | 0.005197 | 0.337626 | 7,843 | 223 | 89 | 35.170404 | 0.747642 | 0.012368 | 0 | 0.208791 | 0 | 0 | 0.157957 | 0.035058 | 0.027473 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.016484 | 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 |
1749d435b74e4271b24f22634b1be57babee5a4f | 37,033 | py | Python | bin/git-remote-hg.py | jcfr/dotfiles | a325e60558f8e8f7693e70d3dc23f2963a6ed5b4 | [
"MIT"
] | 2 | 2018-08-31T19:03:23.000Z | 2022-01-31T20:37:35.000Z | bin/git-remote-hg.py | jcfr/dotfiles | a325e60558f8e8f7693e70d3dc23f2963a6ed5b4 | [
"MIT"
] | 1 | 2016-12-16T08:42:14.000Z | 2016-12-16T08:42:14.000Z | bin/git-remote-hg.py | jcfr/dotfiles | a325e60558f8e8f7693e70d3dc23f2963a6ed5b4 | [
"MIT"
] | 2 | 2016-12-16T22:07:43.000Z | 2017-09-03T17:46:41.000Z | #!/usr/bin/env python2
#
# Copyright (c) 2012 Felipe Contreras
#
# Inspired by Rocco Rutte's hg-fast-export
# Just copy to your ~/bin, or anywhere in your $PATH.
# Then you can clone with:
# git clone hg::/path/to/mercurial/repo/
#
# For remote repositories a local clone is stored in
# "$GIT_DIR/hg/origin/clone/.hg/"... | 27.290346 | 94 | 0.54014 | 4,674 | 37,033 | 4.187848 | 0.116175 | 0.00843 | 0.006131 | 0.008583 | 0.235261 | 0.150659 | 0.119291 | 0.085419 | 0.071217 | 0.061459 | 0 | 0.007599 | 0.331974 | 37,033 | 1,356 | 95 | 27.310472 | 0.783621 | 0.050901 | 0 | 0.277295 | 0 | 0 | 0.077476 | 0.005045 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.001932 | 0.022222 | null | null | 0.067633 | 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 |
17598fa6dc40067531520e596eb09389e0e28958 | 8,235 | py | Python | matrix.py | khanyorko/py_deneme | be82e9dda20fcd8abe810f595d94ddc5103fdb46 | [
"MIT"
] | null | null | null | matrix.py | khanyorko/py_deneme | be82e9dda20fcd8abe810f595d94ddc5103fdb46 | [
"MIT"
] | null | null | null | matrix.py | khanyorko/py_deneme | be82e9dda20fcd8abe810f595d94ddc5103fdb46 | [
"MIT"
] | null | null | null | class matrix:
def __init__(self, data):
self.data = [data] if type(data[0]) != list else data
#if not all(list(map(lambda x: len(x) == len(self.data[0]), self.data))): raise ValueError("Matrix shape is not OK")
self.row = len(self.data)
self.col = len(self.data[0])
se... | 47.877907 | 154 | 0.415058 | 870 | 8,235 | 3.729885 | 0.111494 | 0.07396 | 0.11094 | 0.068105 | 0.669646 | 0.653005 | 0.640678 | 0.640678 | 0.610169 | 0.610169 | 0 | 0.003831 | 0.239223 | 8,235 | 171 | 155 | 48.157895 | 0.514126 | 0.252945 | 0 | 0.496552 | 0 | 0.013793 | 0.051583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0 | 0.013793 | 0.337931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
175c2947f4ec497dc4a8ed3ea888a96e4dc86e70 | 1,929 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/calendar_sync/tests/test_views.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/calendar_sync/tests/test_views.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/features/calendar_sync/tests/test_views.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
Tests for Calendar Sync views.
"""
import ddt
from django.test import TestCase
from django.urls import reverse
from openedx.features.calendar_sync.api import SUBSCRIBE, UNSUBSCRIBE
from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase
from xmodule.modulestore.tests.factories import CourseF... | 37.823529 | 106 | 0.664593 | 226 | 1,929 | 5.522124 | 0.367257 | 0.05609 | 0.045673 | 0.052885 | 0.169872 | 0.112179 | 0.112179 | 0.112179 | 0.112179 | 0.112179 | 0 | 0.015524 | 0.198548 | 1,929 | 50 | 107 | 38.58 | 0.791721 | 0.117159 | 0 | 0.0625 | 0 | 0 | 0.213095 | 0.0125 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.09375 | false | 0.0625 | 0.1875 | 0 | 0.3125 | 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 |
17633d792ce9d5f37b56b7eb527c5eddd123739f | 278 | py | Python | celeryconfig.py | SandStormHoldings/ScratchDocs | 24f3e4239781791385c0a14056335ec5f043b533 | [
"MIT"
] | 1 | 2018-05-18T15:45:35.000Z | 2018-05-18T15:45:35.000Z | celeryconfig.py | SandStormHoldings/ScratchDocs | 24f3e4239781791385c0a14056335ec5f043b533 | [
"MIT"
] | null | null | null | celeryconfig.py | SandStormHoldings/ScratchDocs | 24f3e4239781791385c0a14056335ec5f043b533 | [
"MIT"
] | null | null | null | from datetime import timedelta
from config import REDIS_BROKER as BROKER_URL
CELERYD_CONCURRENCY=1
CELERYD_MAX_TASKS_PER_CHILD=5
CELERYBEAT_SCHEDULE = {
# 'feed-populate': {
# 'task': 'tasks.changes_to_feed',
# 'schedule': timedelta(minutes=15),
# },
}
| 23.166667 | 45 | 0.705036 | 34 | 278 | 5.470588 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.18705 | 278 | 11 | 46 | 25.272727 | 0.80531 | 0.348921 | 0 | 0 | 0 | 0 | 0 | 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 |
176e61828d20f23f8a82b0fe37f2fd8ed5817d9f | 5,036 | py | Python | hydrabot_py/lib/chatbot.py | alexanderroidl/hydrabot | 1aaa93f2e7f36ded4711d22c09cdbafc31f21e87 | [
"BSD-3-Clause"
] | null | null | null | hydrabot_py/lib/chatbot.py | alexanderroidl/hydrabot | 1aaa93f2e7f36ded4711d22c09cdbafc31f21e87 | [
"BSD-3-Clause"
] | 6 | 2021-02-08T20:46:50.000Z | 2022-03-12T00:23:26.000Z | hydrabot_py/lib/chatbot.py | alexanderroidl/hydrabot | 1aaa93f2e7f36ded4711d22c09cdbafc31f21e87 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CHATBOT - chatbot.py
Manages communications with Facebook Messenger API
(https://github.com/rehabstudio/fbmessenger)
"""
# Dependencies
from getpass import getpass
import json
import os
import time
from fbchat import Client
from fbchat.models import Messa... | 30.337349 | 79 | 0.618149 | 584 | 5,036 | 5.207192 | 0.282534 | 0.1049 | 0.034528 | 0.021703 | 0.171325 | 0.142059 | 0.112463 | 0.112463 | 0.112463 | 0.112463 | 0 | 0.002566 | 0.303415 | 5,036 | 165 | 80 | 30.521212 | 0.86431 | 0.335187 | 0 | 0.115385 | 0 | 0 | 0.015585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.064103 | 0.102564 | 0 | 0.307692 | 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 |
1770eaa7884ec37f37ebf9bf06ec43bce2f041e6 | 481 | py | Python | python/Datas/Texts/TextReplaceResult.py | toolgood/ToolGood.TextFilter.Api | e01177a5a2ffb675e1ad034f2668cb3a28154952 | [
"MIT"
] | null | null | null | python/Datas/Texts/TextReplaceResult.py | toolgood/ToolGood.TextFilter.Api | e01177a5a2ffb675e1ad034f2668cb3a28154952 | [
"MIT"
] | null | null | null | python/Datas/Texts/TextReplaceResult.py | toolgood/ToolGood.TextFilter.Api | e01177a5a2ffb675e1ad034f2668cb3a28154952 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# TextReplaceResult.py
# 2021, Lin Zhijun, https://github.com/toolgood/ToolGood.TextFilter.Api
# MIT Licensed
__all__ = ['ToolGood.TextFilter.TextReplaceResult']
class TextReplaceResult():
'返回码:0) 成功,1) 失败'
code=0
'返回码详情描述'
message=""
'请求标识'
reque... | 21.863636 | 71 | 0.648649 | 56 | 481 | 5.5 | 0.857143 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023196 | 0.193347 | 481 | 22 | 72 | 21.863636 | 0.770619 | 0.334719 | 0 | 0 | 0 | 0 | 0.438066 | 0.111782 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1771ccbbbd6d265868bbee93722ae65d3d529ecd | 3,218 | py | Python | codes/nlper/modules/modeling_outputs.py | zhaoxiongjun/NLPer-Arsenal | c62cc155de5f471a522a26199893348abd9184f4 | [
"MIT"
] | 1 | 2022-03-29T08:14:48.000Z | 2022-03-29T08:14:48.000Z | codes/nlper/modules/modeling_outputs.py | zhaoxiongjun/NLPer-Arsenal | c62cc155de5f471a522a26199893348abd9184f4 | [
"MIT"
] | null | null | null | codes/nlper/modules/modeling_outputs.py | zhaoxiongjun/NLPer-Arsenal | c62cc155de5f471a522a26199893348abd9184f4 | [
"MIT"
] | null | null | null | from collections import OrderedDict
import torch
class ModelOutput(OrderedDict):
"""修改自transformers.file_utils.ModelOutput,允许下标、索引、属性访问,根据创建时的顺序决定
>>> t = ModelOutput(lr=1e-5)
>>> t.update(n_epochs=2)
>>> t
>>> ModelOutput([('lr', 1e-05), ('n_epochs', 2)])
>>> t[0] == t['lr'] == t.lr
>>> ... | 25.744 | 89 | 0.590118 | 377 | 3,218 | 4.785146 | 0.366048 | 0.0449 | 0.041574 | 0.033259 | 0.120288 | 0.079823 | 0.079823 | 0.045455 | 0.045455 | 0.045455 | 0 | 0.008554 | 0.273462 | 3,218 | 125 | 90 | 25.744 | 0.763045 | 0.387197 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163265 | false | 0 | 0.040816 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
177f3a4a83c17d8c5322d3aaf3f86330cfb7a95f | 1,895 | py | Python | utils/howIsMadeTheLayersParameterization.py | bottero/IMCMCrun | 18d9badbb58e3a23f99d9d1ed0cd9f97b6ec12e6 | [
"MIT"
] | 13 | 2015-04-26T09:24:48.000Z | 2022-01-03T04:34:19.000Z | utils/howIsMadeTheLayersParameterization.py | bottero/IMCMCrun | 18d9badbb58e3a23f99d9d1ed0cd9f97b6ec12e6 | [
"MIT"
] | null | null | null | utils/howIsMadeTheLayersParameterization.py | bottero/IMCMCrun | 18d9badbb58e3a23f99d9d1ed0cd9f97b6ec12e6 | [
"MIT"
] | 4 | 2016-08-31T05:43:55.000Z | 2020-12-08T19:53:30.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 15 16:15:45 2015
@author: bottero
"""
import numpy as np
import matplotlib.pyplot as plt
plt.close('all')
NPU=10
ztop=-100
zbottom=-500
N=512
N2=10
zp=np.linspace(ztop,zbottom,N)
vpPrior=np.cos(zp/50)
#vpPrior = np.zeros(512)+8000
#for i in np.arange(295):
# if i < 5... | 22.831325 | 55 | 0.645383 | 322 | 1,895 | 3.798137 | 0.242236 | 0.040065 | 0.040883 | 0.019624 | 0.04906 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05897 | 0.149868 | 1,895 | 83 | 56 | 22.831325 | 0.700186 | 0.169921 | 0 | 0.145455 | 0 | 0 | 0.060626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.181818 | 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 |
1780c9439eaed31699bc88bac7af9a4129f353a4 | 346 | py | Python | backend/users/serializers.py | alessondelmiro/github_monitor | 27447da7ddd9a3da6241da112c494f4abff57928 | [
"MIT"
] | null | null | null | backend/users/serializers.py | alessondelmiro/github_monitor | 27447da7ddd9a3da6241da112c494f4abff57928 | [
"MIT"
] | 1 | 2020-05-18T02:53:52.000Z | 2020-05-18T02:53:52.000Z | backend/users/serializers.py | alessondelmiro/github_monitor | 27447da7ddd9a3da6241da112c494f4abff57928 | [
"MIT"
] | null | null | null | from rest_framework.serializers import ModelSerializer
from .models import User
from django.core.paginator import Paginator
class UserSerializer(ModelSerializer):
class Meta:
model = User
fields = (
'id', 'email', 'username', 'avatar',
)
read_only_fields = ('id', 'email... | 26.615385 | 65 | 0.647399 | 35 | 346 | 6.314286 | 0.628571 | 0.072398 | 0.117647 | 0.190045 | 0.244344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239884 | 346 | 12 | 66 | 28.833333 | 0.840304 | 0 | 0 | 0 | 0 | 0 | 0.121387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.5 | 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 |
178360a2a6a68e344cba99b3090a81e8fe7aa93a | 1,730 | py | Python | Code/Python/timekey.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | 1 | 2021-02-10T12:53:37.000Z | 2021-02-10T12:53:37.000Z | Code/Python/timekey.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | null | null | null | Code/Python/timekey.py | rf-peixoto/Studies | 89178b6caa29cfa24d54058f3c7fc3424c541760 | [
"CC0-1.0"
] | null | null | null | # ======================================================== #
# TimeKey
# ======================================================== #
from secrets import token_urlsafe
from datetime import datetime
from hashlib import md5
# ======================================================== #
# Class
# ============================... | 36.808511 | 106 | 0.495954 | 186 | 1,730 | 4.553763 | 0.349462 | 0.085006 | 0.100354 | 0.061393 | 0.070838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019486 | 0.258382 | 1,730 | 46 | 107 | 37.608696 | 0.640686 | 0.230058 | 0 | 0.064516 | 0 | 0 | 0.011655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.193548 | 0.096774 | 0 | 0.419355 | 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 |
179e1bf992e721422983e9d08a476b525a9ee26b | 352 | py | Python | erode_d8_global/test_erode_d8_global.py | mdpiper/topoflow-erode-d8-examples | 30ebe1bec3510506166897360c263ad9bdb9b21c | [
"MIT"
] | null | null | null | erode_d8_global/test_erode_d8_global.py | mdpiper/topoflow-erode-d8-examples | 30ebe1bec3510506166897360c263ad9bdb9b21c | [
"MIT"
] | null | null | null | erode_d8_global/test_erode_d8_global.py | mdpiper/topoflow-erode-d8-examples | 30ebe1bec3510506166897360c263ad9bdb9b21c | [
"MIT"
] | null | null | null | """IRF with the ErodeD8Global component."""
import os
from topoflow.components.erode_d8_global import erosion_component as Model
component = Model()
print component.get_component_name()
out_dir = 'out'
if os.path.exists(out_dir) is False:
os.mkdir(out_dir)
component.initialize('Erode_D8_Global.cfg')
component.u... | 22 | 74 | 0.784091 | 52 | 352 | 5.115385 | 0.634615 | 0.067669 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.105114 | 352 | 15 | 75 | 23.466667 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.071197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
179f9b308587ec5ad51ee92c5c5f37893681c4a8 | 1,084 | py | Python | python/ql/test/library-tests/web/client/stdlib/test.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/library-tests/web/client/stdlib/test.py | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/library-tests/web/client/stdlib/test.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | import sys
PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] == 3
if PY2:
from httplib import HTTPConnection, HTTPSConnection
if PY3:
from http.client import HTTPConnection, HTTPSConnection
def basic():
conn = HTTPConnection('example.com')
conn.request('GET', '/path')
def indirect_caller():
... | 24.088889 | 81 | 0.688192 | 145 | 1,084 | 5.048276 | 0.441379 | 0.075137 | 0.102459 | 0.114754 | 0.310109 | 0.26776 | 0.161202 | 0.161202 | 0.161202 | 0.161202 | 0 | 0.009122 | 0.190959 | 1,084 | 44 | 82 | 24.636364 | 0.825542 | 0.190037 | 0 | 0.178571 | 0 | 0 | 0.122426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0 | 0.321429 | 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 |
17a39a46d55a9c82a88e32d0c721c9a2f7d736d3 | 862 | py | Python | generators/phrase_generator/chinese_name_generator.py | storyoftime66/everything-generator | 617584740dd55a4b0fe713f57ab91ef61ba8ae31 | [
"MIT"
] | null | null | null | generators/phrase_generator/chinese_name_generator.py | storyoftime66/everything-generator | 617584740dd55a4b0fe713f57ab91ef61ba8ae31 | [
"MIT"
] | null | null | null | generators/phrase_generator/chinese_name_generator.py | storyoftime66/everything-generator | 617584740dd55a4b0fe713f57ab91ef61ba8ae31 | [
"MIT"
] | null | null | null | import json
import random
class ChineseNameGenerator(object):
"""中国姓名生成器
由预设好的姓和名随机组合而成 TODO:修改生成方式
"""
with open("./generators/phrase_generator/data/chinese_name/chinese_name.json") as f:
_name_data = json.load(f)
# 性别
GENDER_FEMALE = 0
GENDER_MALE = 1
GENDER_ANY = 2
d... | 21.55 | 88 | 0.563805 | 98 | 862 | 4.755102 | 0.530612 | 0.06867 | 0.077253 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006826 | 0.320186 | 862 | 39 | 89 | 22.102564 | 0.788396 | 0.12993 | 0 | 0 | 0 | 0 | 0.129272 | 0.096582 | 0 | 0 | 0 | 0.051282 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bd56071fcfc4204ec7230d1d93add518ada5575e | 27,306 | py | Python | pymeasure/instruments/keysight/keysight34980A.py | Neel-Sancheti/pymeasure | 5ea0cf2d9b0af34c11aa02cd560759240c879c3b | [
"MIT"
] | null | null | null | pymeasure/instruments/keysight/keysight34980A.py | Neel-Sancheti/pymeasure | 5ea0cf2d9b0af34c11aa02cd560759240c879c3b | [
"MIT"
] | null | null | null | pymeasure/instruments/keysight/keysight34980A.py | Neel-Sancheti/pymeasure | 5ea0cf2d9b0af34c11aa02cd560759240c879c3b | [
"MIT"
] | null | null | null | #
# This file is part of the PyMeasure package.
#
# Copyright (c) 2013-2021 PyMeasure Developers
#
# 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 limit... | 43.411765 | 143 | 0.600894 | 3,283 | 27,306 | 4.891258 | 0.097167 | 0.051563 | 0.036617 | 0.020924 | 0.776747 | 0.719641 | 0.635696 | 0.608108 | 0.549321 | 0.458401 | 0 | 0.009998 | 0.274738 | 27,306 | 628 | 144 | 43.480892 | 0.800646 | 0.307185 | 0 | 0.528302 | 0 | 0 | 0.210471 | 0.150212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194969 | false | 0 | 0.009434 | 0 | 0.207547 | 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 |
bd56c8215ba54053548961f36b260b062cb2d5e3 | 1,028 | py | Python | allpages.py | lhirschfeld/PathOfExamineBot | 633280f81ee9fd605c9fb4cc8f9de398c88a6bb3 | [
"MIT"
] | null | null | null | allpages.py | lhirschfeld/PathOfExamineBot | 633280f81ee9fd605c9fb4cc8f9de398c88a6bb3 | [
"MIT"
] | null | null | null | allpages.py | lhirschfeld/PathOfExamineBot | 633280f81ee9fd605c9fb4cc8f9de398c88a6bb3 | [
"MIT"
] | null | null | null | # Generates a list of every page on pathofexile.gamepedia.com
# This list is used to find the most appropriate page for a user's request.
# Imports
import pickle
import requests
from bs4 import BeautifulSoup
def getPages():
print("Getting pages...", end=" ")
pages = dict()
def getSet(url):
r = req... | 32.125 | 75 | 0.594358 | 132 | 1,028 | 4.628788 | 0.560606 | 0.065466 | 0.075286 | 0.052373 | 0.085106 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0.001325 | 0.265564 | 1,028 | 31 | 76 | 33.16129 | 0.807947 | 0.13716 | 0 | 0 | 1 | 0 | 0.19479 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.28 | 0.08 | 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 |
bd5f9083cea37d6fa7320f931c78d98ec47af595 | 317 | py | Python | server/utils/auth.py | clitetailor/mummum | 2b6b272892469aa71fc68a9f76a7b3df1e1fda34 | [
"Apache-2.0"
] | null | null | null | server/utils/auth.py | clitetailor/mummum | 2b6b272892469aa71fc68a9f76a7b3df1e1fda34 | [
"Apache-2.0"
] | null | null | null | server/utils/auth.py | clitetailor/mummum | 2b6b272892469aa71fc68a9f76a7b3df1e1fda34 | [
"Apache-2.0"
] | null | null | null | import ldap3
def authenticate(address, username, password):
try:
if len(password) == 0:
password = "noob"
server = ldap3.Server("ldap://192.168.4.222")
conn = ldap3.Connection(server)
# conn.search()
except Exception:
raise "Wrong username or password"
| 21.133333 | 53 | 0.589905 | 35 | 317 | 5.342857 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.293375 | 317 | 14 | 54 | 22.642857 | 0.772321 | 0.041009 | 0 | 0 | 0 | 0 | 0.165563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.444444 | 0.111111 | 0 | 0.222222 | 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 |
bd604c060cc312f4afbd056c74647b0fbfb3f99d | 326 | py | Python | cap3/ex11.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | cap3/ex11.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | cap3/ex11.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | #Perde 10 minutos de vida por cigarro. Informar quantos dias de vida perdeu
q_d = int(input('Quantos cigarros por dia: '))
q_a = int(input('Fumante por quantos anos? '))
# Total de cigarros
t_c = (q_d * q_a) * 364
# Total de dias perdidos.
q_d = (t_c * 10) / 60 / 24
print(f'Você perdeu {q_d // 1:.0f} dias de vida fuman... | 36.222222 | 75 | 0.680982 | 62 | 326 | 3.451613 | 0.532258 | 0.037383 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049057 | 0.187117 | 326 | 8 | 76 | 40.75 | 0.758491 | 0.355828 | 0 | 0 | 0 | 0 | 0.483092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
bd6377019fe17af6a31839c83800bca659374dac | 914 | py | Python | 1.基本概念/tensor_operation.py | wzmw-zr/Pytorch-Note | 4c93aa7e0d2862d967d4bc11ab6a3521342a1e33 | [
"MIT"
] | null | null | null | 1.基本概念/tensor_operation.py | wzmw-zr/Pytorch-Note | 4c93aa7e0d2862d967d4bc11ab6a3521342a1e33 | [
"MIT"
] | null | null | null | 1.基本概念/tensor_operation.py | wzmw-zr/Pytorch-Note | 4c93aa7e0d2862d967d4bc11ab6a3521342a1e33 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
import torch
# import numpy as np
a = torch.zeros((3, 3, 3))
b = torch.ones((3, 3, 3))
print("cancatenate operations")
print(a.shape)
print(b.shape)
c = torch.cat([a, b], dim=0)
d = torch.cat([a, b], dim=1)
e = torch.cat([a, b], dim=2)
print(c.shape)
print(d.shape)
print(e.shape)... | 19.041667 | 50 | 0.665208 | 172 | 914 | 3.47093 | 0.284884 | 0.020101 | 0.033501 | 0.050251 | 0.296482 | 0.20268 | 0.093802 | 0 | 0 | 0 | 0 | 0.044529 | 0.140044 | 914 | 47 | 51 | 19.446809 | 0.715013 | 0.056893 | 0 | 0.090909 | 0 | 0 | 0.062937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0.515152 | 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 |
bd6dd7d4675c43b5f1d014144a938687ea46794f | 500 | py | Python | janus/janus/evaluation/user-scripts/otto-script4.py | josepablocam/janus-public | 4713092b27d02386bdb408213d8edc0dc5859eec | [
"MIT"
] | null | null | null | janus/janus/evaluation/user-scripts/otto-script4.py | josepablocam/janus-public | 4713092b27d02386bdb408213d8edc0dc5859eec | [
"MIT"
] | null | null | null | janus/janus/evaluation/user-scripts/otto-script4.py | josepablocam/janus-public | 4713092b27d02386bdb408213d8edc0dc5859eec | [
"MIT"
] | null | null | null | # Source:
# https://www.kaggle.com/sachinsharma1123/otto-group-classification-acc-82from sklearn.pipeline import Pipeline
dataset = "otto"
metric = "neg_log_loss"
def make_pipeline():
from sklearn.pipeline import Pipeline
from sklearn.svm import SVC
# focused on SVC pipeline
# to provide some diversi... | 27.777778 | 111 | 0.712 | 68 | 500 | 5.147059 | 0.676471 | 0.085714 | 0.12 | 0.165714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017199 | 0.186 | 500 | 17 | 112 | 29.411765 | 0.842752 | 0.476 | 0 | 0 | 0 | 0 | 0.07451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
bd7165b5f16e649a698253c70d2ecc96d09035c4 | 590 | py | Python | datalad_registry_client/__init__.py | datalad/datalad-registry | 2e517f70300f2211fe08600c757e150f1c35eaeb | [
"MIT"
] | null | null | null | datalad_registry_client/__init__.py | datalad/datalad-registry | 2e517f70300f2211fe08600c757e150f1c35eaeb | [
"MIT"
] | 53 | 2020-10-26T21:50:04.000Z | 2021-10-13T17:31:33.000Z | datalad_registry_client/__init__.py | datalad/datalad-registry | 2e517f70300f2211fe08600c757e150f1c35eaeb | [
"MIT"
] | 1 | 2021-07-16T16:27:43.000Z | 2021-07-16T16:27:43.000Z | import sys
command_suite = (
"Interact with DataLad registry",
[
(
"datalad_registry_client.submit",
"RegistrySubmit",
"registry-submit",
"registry_submit",
),
(
"datalad_registry_client.submit_urls",
"RegistrySubmi... | 21.851852 | 50 | 0.571186 | 51 | 590 | 6.313725 | 0.45098 | 0.186335 | 0.130435 | 0.167702 | 0.21118 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007538 | 0.325424 | 590 | 26 | 51 | 22.692308 | 0.801508 | 0 | 0 | 0.086957 | 0 | 0 | 0.361017 | 0.110169 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 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 |
bd728d78d255b74e182574f8d8e044c1e87ac553 | 15,062 | py | Python | test/unit/pipelines/test_pipeline_tuning.py | rozlana-g/FEDOT | a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c | [
"BSD-3-Clause"
] | 358 | 2020-06-11T09:34:53.000Z | 2022-03-31T12:56:22.000Z | test/unit/pipelines/test_pipeline_tuning.py | rozlana-g/FEDOT | a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c | [
"BSD-3-Clause"
] | 467 | 2020-06-11T13:49:45.000Z | 2022-03-31T14:19:48.000Z | test/unit/pipelines/test_pipeline_tuning.py | rozlana-g/FEDOT | a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c | [
"BSD-3-Clause"
] | 48 | 2020-07-13T14:50:45.000Z | 2022-03-26T09:37:13.000Z | import os
from random import seed
import numpy as np
from hyperopt import hp, tpe, rand
import pytest
from sklearn.metrics import mean_squared_error as mse, roc_auc_score as roc
from fedot.core.data.data import InputData
from fedot.core.data.data_split import train_test_data_setup
from fedot.core.pipelines.node impor... | 44.694362 | 112 | 0.618643 | 1,594 | 15,062 | 5.501255 | 0.117942 | 0.07652 | 0.040712 | 0.017334 | 0.774319 | 0.71958 | 0.663131 | 0.63964 | 0.614779 | 0.59813 | 0 | 0.010712 | 0.299628 | 15,062 | 336 | 113 | 44.827381 | 0.820552 | 0.059355 | 0 | 0.576763 | 0 | 0 | 0.051307 | 0.00978 | 0 | 0 | 0 | 0 | 0.062241 | 1 | 0.070539 | false | 0 | 0.062241 | 0 | 0.161826 | 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 |
bd72a2860af65540e7edf23fc0ad1c22bf1fd0dc | 6,913 | py | Python | config/settings.py | Pygmy-Final/social-club-backend | ceb2d4ee879900597cf65685f7119c1f03e92637 | [
"MIT"
] | null | null | null | config/settings.py | Pygmy-Final/social-club-backend | ceb2d4ee879900597cf65685f7119c1f03e92637 | [
"MIT"
] | null | null | null | config/settings.py | Pygmy-Final/social-club-backend | ceb2d4ee879900597cf65685f7119c1f03e92637 | [
"MIT"
] | null | null | null | from pathlib import Path
import environ
from datetime import timedelta
from django.conf import settings
BASE_DIR = Path(__file__).resolve().parent.parent
env = environ.Env(
DEBUG=(bool, False),
ENVIRONMENT=(str, "PRODUCTION"),
ALLOW_ALL_ORIGINS=(bool, False),
ALLOWED_HOSTS=(list, []),
ALLOWED_ORIGI... | 34.914141 | 97 | 0.670331 | 699 | 6,913 | 6.430615 | 0.327611 | 0.05495 | 0.03782 | 0.044494 | 0.194661 | 0.194661 | 0.148165 | 0.1297 | 0.083204 | 0.062291 | 0 | 0.003505 | 0.133227 | 6,913 | 198 | 98 | 34.914141 | 0.746662 | 0.263417 | 0 | 0.013514 | 0 | 0 | 0.478511 | 0.364627 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0.027027 | 0 | 0.027027 | 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 |
bd7a2367249b7331d4233a9503ac059932ad598a | 1,108 | py | Python | src/extract_browser_data/__init__.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | null | null | null | src/extract_browser_data/__init__.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | 7 | 2020-04-05T19:39:24.000Z | 2020-04-15T18:55:04.000Z | src/extract_browser_data/__init__.py | sandorex/extract-browser-data.py | f2b2a60b9af2f7331e09167abf0b8c6cd6e534d0 | [
"Apache-2.0"
] | null | null | null | # (https://github.com/sandorex/extract-browser-data.py)
# extract-browser-data
#
# Copyright 2020 Aleksandar Radivojevic
#
# 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://... | 36.933333 | 80 | 0.750903 | 151 | 1,108 | 5.350993 | 0.602649 | 0.074257 | 0.066832 | 0.054455 | 0.10396 | 0.10396 | 0.10396 | 0.10396 | 0 | 0 | 0 | 0.018319 | 0.162455 | 1,108 | 29 | 81 | 38.206897 | 0.852371 | 0.640794 | 0 | 0 | 0 | 0 | 0.368876 | 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 |
bd82abddd0ce8f067350dd5a12cb81793482564c | 617 | py | Python | tools/data/state_data/upload_dataset.py | mindthegrow/cannlytics | c266bc1169bef75214985901cd3165f415ad9ba7 | [
"MIT"
] | 7 | 2021-05-31T15:30:22.000Z | 2022-02-05T14:12:31.000Z | tools/data/state_data/upload_dataset.py | mindthegrow/cannlytics | c266bc1169bef75214985901cd3165f415ad9ba7 | [
"MIT"
] | 17 | 2021-06-09T01:04:27.000Z | 2022-03-18T14:48:12.000Z | tools/data/state_data/upload_dataset.py | mindthegrow/cannlytics | c266bc1169bef75214985901cd3165f415ad9ba7 | [
"MIT"
] | 5 | 2021-06-07T13:52:33.000Z | 2021-08-04T00:09:39.000Z | """
Upload Dataset | Cannlytics
Author: Keegan Skeate
Contact: <keegan@cannlytics.com>
Created: 5/30/2021
Updated: 8/22
/2021
License: MIT License <https://opensource.org/licenses/MIT>
"""
from datetime import datetime
import os
import environ
import sys
sys.path.append('../../../')
from cannlytics import firebase # ... | 21.275862 | 64 | 0.706645 | 78 | 617 | 5.435897 | 0.653846 | 0.091981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026923 | 0.157212 | 617 | 28 | 65 | 22.035714 | 0.788462 | 0.431118 | 0 | 0 | 0 | 0 | 0.139053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
bd8fb415540f7d5f6e220d172487d5fd7f116d3a | 6,884 | py | Python | src/bot_maker/maker.py | wj-Mcat/bot-maker | 44dfd4e8b74b37003b824128e0297e1ce047f239 | [
"Apache-2.0"
] | null | null | null | src/bot_maker/maker.py | wj-Mcat/bot-maker | 44dfd4e8b74b37003b824128e0297e1ce047f239 | [
"Apache-2.0"
] | null | null | null | src/bot_maker/maker.py | wj-Mcat/bot-maker | 44dfd4e8b74b37003b824128e0297e1ce047f239 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import asyncio
import os
from abc import abstractmethod
from datetime import datetime
from typing import Any, Type, List, Optional, Dict, Union
from wechaty import Contact, Room
from wechaty_puppet import FileBox
from bot_maker.nlu import NLUServer
from bot_maker.nlu.base_nlu impor... | 31.290909 | 111 | 0.641197 | 823 | 6,884 | 5.164034 | 0.207776 | 0.049412 | 0.019765 | 0.024 | 0.129176 | 0.092471 | 0.056706 | 0.056706 | 0.028235 | 0.028235 | 0 | 0.001203 | 0.275567 | 6,884 | 219 | 112 | 31.43379 | 0.851013 | 0.06842 | 0 | 0.125828 | 0 | 0 | 0.036424 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.099338 | false | 0.013245 | 0.072848 | 0.019868 | 0.317881 | 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 |
bda47cff921e6fb843483dafb4622e8e26233d51 | 367 | py | Python | 2D/histogram.py | manojitballav/charts_python | f65c6197ee6e3c971a94086755454c228a6256be | [
"Apache-2.0"
] | null | null | null | 2D/histogram.py | manojitballav/charts_python | f65c6197ee6e3c971a94086755454c228a6256be | [
"Apache-2.0"
] | null | null | null | 2D/histogram.py | manojitballav/charts_python | f65c6197ee6e3c971a94086755454c228a6256be | [
"Apache-2.0"
] | null | null | null | # This program will contain code related to map the probability distribution on a histogram
import matplotlib.pyplot as plt
import numpy as np
# generating 1000 randome values
# x = np.random.random(100)
# Getting normal distribution values
x = np.random.normal(0,1,400)
# plotting the probability of the random value... | 26.214286 | 91 | 0.779292 | 58 | 367 | 4.931034 | 0.672414 | 0.097902 | 0.062937 | 0.104895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038585 | 0.152589 | 367 | 14 | 92 | 26.214286 | 0.881029 | 0.675749 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bdac1766126140bdda4b6a3385ad495285aa2b81 | 850 | py | Python | services/tests/factories.py | Sukriva/open-city-profile | 8c8df883457b9c79534dc9f7b57d556143362229 | [
"MIT"
] | null | null | null | services/tests/factories.py | Sukriva/open-city-profile | 8c8df883457b9c79534dc9f7b57d556143362229 | [
"MIT"
] | null | null | null | services/tests/factories.py | Sukriva/open-city-profile | 8c8df883457b9c79534dc9f7b57d556143362229 | [
"MIT"
] | null | null | null | import factory
from profiles.tests.factories import ProfileFactory
from services.models import AllowedDataField, Service, ServiceConnection
from ..enums import ServiceType
class ServiceFactory(factory.django.DjangoModelFactory):
service_type = ServiceType.BERTH
title = "Berth"
description = "Service for... | 25.757576 | 72 | 0.743529 | 84 | 850 | 7.488095 | 0.464286 | 0.062003 | 0.147854 | 0.069952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 850 | 32 | 73 | 26.5625 | 0.902439 | 0 | 0 | 0.142857 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.857143 | 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 |
bdaf9fd76a9b48b3f669ad7d38bacb82ca9af0b9 | 36,174 | py | Python | script.module.python.koding.aio/lib/koding/guitools.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:38:10.000Z | 2019-03-05T09:38:10.000Z | script.module.python.koding.aio/lib/koding/guitools.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | script.module.python.koding.aio/lib/koding/guitools.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | # -*- coding: utf-8 -*-
# script.module.python.koding.aio
# Python Koding AIO (c) by whufclee (info@totalrevolution.tv)
# Python Koding AIO is licensed under a
# Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
# You should have received a copy of the license along with this
# wor... | 46.496144 | 374 | 0.674075 | 5,098 | 36,174 | 4.695371 | 0.148882 | 0.010026 | 0.014288 | 0.012282 | 0.308894 | 0.247483 | 0.221373 | 0.183732 | 0.1524 | 0.142875 | 0 | 0.020573 | 0.204539 | 36,174 | 777 | 375 | 46.555985 | 0.81126 | 0.075082 | 0 | 0.156364 | 0 | 0.010909 | 0.127365 | 0.022361 | 0 | 0 | 0.00344 | 0 | 0 | 0 | null | null | 0 | 0.025455 | 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 |
bdb2ff36dd7d47a2b59c6d3bc24905713e2f9827 | 10,132 | py | Python | sdk/python/pulumi_oci/aianomalydetection/get_model.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/aianomalydetection/get_model.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/aianomalydetection/get_model.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 39.889764 | 315 | 0.669364 | 1,218 | 10,132 | 5.29064 | 0.182266 | 0.048417 | 0.037244 | 0.069832 | 0.297331 | 0.189168 | 0.108007 | 0.062073 | 0.027933 | 0.01707 | 0 | 0.001159 | 0.233912 | 10,132 | 253 | 316 | 40.047431 | 0.829039 | 0.186735 | 0 | 0.109756 | 1 | 0 | 0.173459 | 0.036042 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109756 | false | 0 | 0.036585 | 0.006098 | 0.262195 | 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 |
bdbef1c9740d1dbdd9f4b972617c44f53e7aa2a2 | 5,178 | py | Python | Rules/RuleManager.py | soumikmohianuta/pixtoapp | f103a580e015ef7779998f14c9533a238a4bf1d1 | [
"BSD-3-Clause"
] | 31 | 2018-03-19T19:30:29.000Z | 2022-02-16T08:50:42.000Z | Rules/RuleManager.py | soumikmohianuta/pixtoapp | f103a580e015ef7779998f14c9533a238a4bf1d1 | [
"BSD-3-Clause"
] | 4 | 2018-10-04T08:01:15.000Z | 2019-04-25T15:50:36.000Z | Rules/RuleManager.py | soumikmohianuta/pixtoapp | f103a580e015ef7779998f14c9533a238a4bf1d1 | [
"BSD-3-Clause"
] | 12 | 2018-07-24T18:52:07.000Z | 2021-07-15T11:36:14.000Z | from Rules.RuleTextTooBigCompWords import RuleTextTooBigCompWords
from Rules.RuleVisionBoxHasSoManyInvalidTexts import RuleVisionBoxHasSoManyInvalidTexts
from Rules.RuleBaseOnNeighbour import RuleBaseOnNeighbour
from Rules.RuleAlignVertically import RuleAlignVertically
from Rules.RuleBigLotChildren import RuleBigLotChi... | 61.642857 | 162 | 0.780031 | 472 | 5,178 | 8.523305 | 0.148305 | 0.085011 | 0.098434 | 0.170022 | 0.498136 | 0.498136 | 0.498136 | 0.498136 | 0.498136 | 0.498136 | 0 | 0 | 0.143878 | 5,178 | 84 | 163 | 61.642857 | 0.907512 | 0.004635 | 0 | 0.117647 | 0 | 0 | 0.000779 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.294118 | 0 | 0.397059 | 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 |
bdcbf5a94ce1a4ef6db299ba87e987bdd379e7e9 | 248 | py | Python | src/intelliflow/core/application/context/traversal.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | 4 | 2022-03-24T04:39:02.000Z | 2022-03-31T16:41:50.000Z | src/intelliflow/core/application/context/traversal.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | src/intelliflow/core/application/context/traversal.py | amzn/rheoceros | 5e8f79d97f8b21d693d3c869b0df70de3d5fd068 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from abc import ABC, abstractmethod
class ContextVisitor(ABC):
@abstractmethod
def visit(self, node: "Node") -> None:
...
| 22.545455 | 68 | 0.693548 | 31 | 248 | 5.548387 | 0.870968 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.189516 | 248 | 10 | 69 | 24.8 | 0.845771 | 0.41129 | 0 | 0 | 0 | 0 | 0.027972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 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 |
bdcce88bc9dc01a5b55a52d5f9367ed50de7eb73 | 590 | py | Python | netbox/virtualization/migrations/0003_cluster_add_site.py | BrnoPCmaniak/netbox | 7b517abdb68a6324950dfd0375861163c7bfff00 | [
"Apache-2.0"
] | 6 | 2017-12-01T05:13:39.000Z | 2020-01-23T13:04:43.000Z | netbox/virtualization/migrations/0003_cluster_add_site.py | emersonfelipesp/netbox | fecca5ad83fb6b48a2f15982dfd3242653f105f9 | [
"Apache-2.0"
] | 25 | 2019-09-17T19:40:50.000Z | 2022-03-11T04:01:55.000Z | netbox/virtualization/migrations/0003_cluster_add_site.py | emersonfelipesp/netbox | fecca5ad83fb6b48a2f15982dfd3242653f105f9 | [
"Apache-2.0"
] | 3 | 2017-11-18T01:28:22.000Z | 2018-05-17T14:04:43.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-22 16:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dcim', '0044_virtualization'),
('virtualization', '0002_virtualmachine_add_status'),
]
... | 28.095238 | 145 | 0.640678 | 67 | 590 | 5.537313 | 0.701493 | 0.06469 | 0.075472 | 0.118598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054466 | 0.222034 | 590 | 20 | 146 | 29.5 | 0.753813 | 0.115254 | 0 | 0 | 1 | 0 | 0.183044 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.