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
e293cca18b23965e2e233b748798a42b72cb8821
257
py
Python
statistical/core/models/time_parameter.py
hsxian/StatisticalSample
f9908a022a3502f00b7d5025049d8d23e55e6a4b
[ "MIT" ]
null
null
null
statistical/core/models/time_parameter.py
hsxian/StatisticalSample
f9908a022a3502f00b7d5025049d8d23e55e6a4b
[ "MIT" ]
null
null
null
statistical/core/models/time_parameter.py
hsxian/StatisticalSample
f9908a022a3502f00b7d5025049d8d23e55e6a4b
[ "MIT" ]
null
null
null
from datetime import datetime from dateutil.relativedelta import relativedelta class TimeParameter(object): start = datetime.now() - relativedelta(months=1) end = datetime.now() segmentation = '3H' time_name = 'time' as_index = True
19.769231
52
0.712062
29
257
6.241379
0.689655
0.121547
0
0
0
0
0
0
0
0
0
0.009709
0.198444
257
12
53
21.416667
0.868932
0
0
0
0
0
0.023438
0
0
0
0
0
0
1
0
false
0
0.25
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e295067e4ad266b2e0ac070ae311f343c7af67d5
3,706
py
Python
mqttObjectTracker.py
greenbreakfast/jevoisObjectTracker
e1b3c32e9457bdfa87d759c94b1b36b3f6c4b718
[ "MIT" ]
2
2019-04-01T16:59:28.000Z
2020-12-18T02:12:13.000Z
mqttObjectTracker.py
greenbreakfast/jevoisObjectTracker
e1b3c32e9457bdfa87d759c94b1b36b3f6c4b718
[ "MIT" ]
null
null
null
mqttObjectTracker.py
greenbreakfast/jevoisObjectTracker
e1b3c32e9457bdfa87d759c94b1b36b3f6c4b718
[ "MIT" ]
null
null
null
#!/usr/bin/python import time import json import sys, getopt import paho.mqtt.client as mqtt import jevois, colourConv def printUsage(): print 'mqttObjectTrackerColourTuning.py -t <tolerance> -s <MQTT Server> -t <MQTT Topic> -p <MQTT PORT>' sys.exit(2) def parseCommandLineArgs(config, argv): # check for argume...
26.471429
132
0.652455
499
3,706
4.799599
0.298597
0.037578
0.040919
0.036743
0.182881
0.132777
0.111065
0.083507
0.083507
0.083507
0
0.006649
0.188343
3,706
139
133
26.661871
0.789561
0.211549
0
0.22619
0
0.011905
0.22153
0.011077
0
0
0
0.007194
0
0
null
null
0
0.059524
null
null
0.202381
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
e2965ad371a4c69fdf1d5c5fe737d9cf6802a7ea
383
py
Python
DS-400/Medium/50-Pow(x,n)/Recursion.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
2
2020-04-24T18:36:52.000Z
2020-04-25T00:15:57.000Z
DS-400/Medium/50-Pow(x,n)/Recursion.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
DS-400/Medium/50-Pow(x,n)/Recursion.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
class Solution(object): def myPow(self, x, n): """ :type x: float :type n: int :rtype: float """ if (n < 0): x = 1 / x n = -n if n == 0: return 1 half = self.myPow(x, n // 2) if(n % 2 == 0): retu...
22.529412
36
0.35248
47
383
2.87234
0.404255
0.044444
0.059259
0
0
0
0
0
0
0
0
0.038251
0.522193
383
17
37
22.529412
0.699454
0.10705
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e29bf4856759243c2039c244d5d8b4522bf025f4
2,329
py
Python
kaffeefinder/apps/cafes/views.py
rezyte/kaffeefinder
e29a10ce3bc9e6e80f36f2db0e46262ea0f27363
[ "MIT" ]
null
null
null
kaffeefinder/apps/cafes/views.py
rezyte/kaffeefinder
e29a10ce3bc9e6e80f36f2db0e46262ea0f27363
[ "MIT" ]
null
null
null
kaffeefinder/apps/cafes/views.py
rezyte/kaffeefinder
e29a10ce3bc9e6e80f36f2db0e46262ea0f27363
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, reverse, get_object_or_404 from django.views import generic, View from django.http import HttpResponse from django.contrib.auth import mixins from django.contrib import messages from .models import Cafe, CafeTag from .forms import CafeForm class CafeCreatView(mixins.Logi...
31.90411
85
0.623444
276
2,329
5.192029
0.369565
0.034892
0.047453
0.019539
0.175855
0.11305
0.11305
0
0
0
0
0.003456
0.254616
2,329
72
86
32.347222
0.822005
0.103478
0
0.075472
0
0
0.110577
0.010096
0
0
0
0
0
1
0.075472
false
0
0.132075
0.018868
0.566038
0.056604
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
e29c779643bb6ade0f987cb4442ab27f1c73ed3c
1,211
py
Python
src/model/api_wrapper.py
enriquecorimayo/Arbitraje-de-Tasas
6dbc474865a343d5279f81bd61b1567a7f165468
[ "MIT" ]
null
null
null
src/model/api_wrapper.py
enriquecorimayo/Arbitraje-de-Tasas
6dbc474865a343d5279f81bd61b1567a7f165468
[ "MIT" ]
null
null
null
src/model/api_wrapper.py
enriquecorimayo/Arbitraje-de-Tasas
6dbc474865a343d5279f81bd61b1567a7f165468
[ "MIT" ]
1
2022-02-21T14:10:42.000Z
2022-02-21T14:10:42.000Z
import json import pyRofex class Singleton(type): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) return cls._instances[cls] class APIWrapper(metaclass=Singleton): """ ...
25.765957
88
0.635838
128
1,211
5.742188
0.484375
0.04898
0.061224
0.081633
0
0
0
0
0
0
0
0.00558
0.260116
1,211
46
89
26.326087
0.814732
0.04872
0
0
0
0.030303
0.072183
0.058979
0
0
0
0
0
1
0.151515
false
0.090909
0.060606
0.030303
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e29de059472c47f6c8f1ecf06a5fea397c4d2d6d
6,391
py
Python
script/python/source/modify_unit_tests.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
script/python/source/modify_unit_tests.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
script/python/source/modify_unit_tests.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: iso-8859-15 -*- ############################################################################## # Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II # Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI # # Distributed under the Boost ...
34.360215
92
0.511813
842
6,391
3.692399
0.223278
0.025088
0.00579
0.009006
0.258926
0.178836
0.112898
0.100032
0.082663
0.054358
0
0.024888
0.333594
6,391
185
93
34.545946
0.705095
0.173056
0
0.245763
0
0
0.039613
0
0
0
0
0
0
0
null
null
0
0.084746
null
null
0.016949
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
e29e610b53e2701cef33f11f3f5f44adeb6dba62
1,095
py
Python
informer/libs/clients/telegram.py
smthnspcl/informer
f4fbdad3327606ab676c1816faf2a2c9e6b1cd77
[ "MIT" ]
null
null
null
informer/libs/clients/telegram.py
smthnspcl/informer
f4fbdad3327606ab676c1816faf2a2c9e6b1cd77
[ "MIT" ]
null
null
null
informer/libs/clients/telegram.py
smthnspcl/informer
f4fbdad3327606ab676c1816faf2a2c9e6b1cd77
[ "MIT" ]
null
null
null
from . import Client from telegram.ext import Updater, CommandHandler class TelegramClient(Client): updater = None def __init__(self, token): Client.__init__(self, None) self.updater = Updater(token, use_context=True) self.updater.dispatcher.add_handler(CommandHandler("available", sel...
29.594595
92
0.651142
138
1,095
4.985507
0.347826
0.111919
0.122093
0.139535
0.263081
0.263081
0.06686
0
0
0
0
0
0.229224
1,095
36
93
30.416667
0.815166
0
0
0
0
0
0.153425
0
0
0
0
0
0
1
0.214286
false
0.035714
0.071429
0
0.357143
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e2b2eef5db69ae56d2bff1a7e1b0017bc0ba95d3
1,100
py
Python
predictive/MLManager.py
EduardoSantos7/RLSampler
5f385926aae4f3d7881a046324b64b354b362feb
[ "MIT" ]
1
2022-03-08T23:36:33.000Z
2022-03-08T23:36:33.000Z
predictive/MLManager.py
EduardoSantos7/RLSampler
5f385926aae4f3d7881a046324b64b354b362feb
[ "MIT" ]
null
null
null
predictive/MLManager.py
EduardoSantos7/RLSampler
5f385926aae4f3d7881a046324b64b354b362feb
[ "MIT" ]
null
null
null
import sys import os import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression from data.DataManager import DataManager class MLManager: @staticmethod def logistic_regression(data): X_train, X_test, y_train, y_te...
25
97
0.674545
160
1,100
4.35625
0.3375
0.05165
0.05165
0.031564
0.109039
0.063128
0.063128
0.063128
0
0
0
0.016706
0.238182
1,100
43
98
25.581395
0.815036
0
0
0.137931
0
0
0.034545
0
0
0
0
0
0
1
0.137931
false
0
0.241379
0.068966
0.586207
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
e2b50c4cdc7a2a51f8af36f414fae83c61684e83
949
py
Python
setup.py
KernelA/nsga3
fc8c862fb41657108d5499f4343beb408e526c19
[ "MIT" ]
7
2020-06-12T21:52:18.000Z
2022-03-24T14:28:01.000Z
setup.py
KernelA/nsga3
fc8c862fb41657108d5499f4343beb408e526c19
[ "MIT" ]
null
null
null
setup.py
KernelA/nsga3
fc8c862fb41657108d5499f4343beb408e526c19
[ "MIT" ]
3
2018-01-01T09:46:18.000Z
2021-06-16T07:09:26.000Z
from setuptools import setup setup( name="pynsga3", version="0.0.1", package_dir={"": "src"}, packages=["pynsga3", "pynsga3.operators", "pynsga3.utils"], install_requires=[ 'numpy>=1.10.*', "scipy>=0.15.*" ], author="Alexander Kryuchkov", author_email="KernelA@users.nore...
35.148148
136
0.626976
103
949
5.728155
0.825243
0.030508
0
0
0
0
0
0
0
0
0
0.064384
0.230769
949
26
137
36.5
0.743836
0
0
0
0
0.041667
0.563291
0.083333
0
0
0
0
0
1
0
true
0
0.041667
0
0.041667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
2c3698ea981a7e206dd67c1fe6128b06347baa57
7,226
py
Python
testing/1.0.0/tmp.py
sais7/python-apps
3cef25e95216843ec461897c489d22d0a4cf4a19
[ "MIT" ]
41
2020-05-21T17:00:46.000Z
2021-09-23T21:24:12.000Z
testing/1.0.0/tmp.py
sais7/python-apps
3cef25e95216843ec461897c489d22d0a4cf4a19
[ "MIT" ]
179
2020-05-22T08:11:39.000Z
2021-09-22T15:48:27.000Z
testing/1.0.0/tmp.py
sais7/python-apps
3cef25e95216843ec461897c489d22d0a4cf4a19
[ "MIT" ]
57
2020-07-07T10:38:16.000Z
2021-09-21T20:43:04.000Z
import json import re # This whole thing should be recursive. basejson = [{'highlight_ranges': {}, 'message': {'Alert': 'Account Manipulation', '_id': 'd097c6f2-f6b6-11ea-aaa1-0050569f425d', 'timestamp': '2020-09-14T18:19:24.427Z'}, 'index': 'test', 'decoration_stats': None}, {'highlight_ranges': {}, 'message': {...
56.015504
2,325
0.527678
707
7,226
5.314003
0.248939
0.038328
0.064413
0.079052
0.53367
0.53367
0.511312
0.500665
0.500665
0.500665
0
0.092733
0.323969
7,226
128
2,326
56.453125
0.676356
0.189455
0
0.384615
0
0
0.326794
0.123215
0
0
0
0.007813
0
1
0.015385
false
0
0.030769
0
0.123077
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c3b6a6916f2cc73a61e6d4e5c6816f3f0495f3a
3,111
py
Python
lib/server/client.py
saneletm/sample_chat_app
d4bd335d9562a09d0c74a2fdefdd6cad0fe5f2be
[ "MIT" ]
null
null
null
lib/server/client.py
saneletm/sample_chat_app
d4bd335d9562a09d0c74a2fdefdd6cad0fe5f2be
[ "MIT" ]
null
null
null
lib/server/client.py
saneletm/sample_chat_app
d4bd335d9562a09d0c74a2fdefdd6cad0fe5f2be
[ "MIT" ]
null
null
null
""" This is a server implementation of a chat app This is only safe to use on the same machine (as in run both the server and client on the same machine) Further cleanup would need to be done to support real clients on different machines (as of Jan 4 2019) """ import select from multiprocessing import Event from threa...
41.48
129
0.573128
398
3,111
4.38191
0.407035
0.036697
0.027523
0.048165
0.109518
0.109518
0.040138
0.040138
0
0
0
0.00496
0.351977
3,111
74
130
42.040541
0.860119
0.384121
0
0.051282
0
0
0.050332
0
0.051282
0
0
0.013514
0
1
0.102564
false
0.025641
0.076923
0
0.230769
0.025641
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
2c3e57cccd08de2792d13ac5657e3a93f3e01202
3,573
py
Python
pytrol/control/agent/HPREstimator.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
pytrol/control/agent/HPREstimator.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
pytrol/control/agent/HPREstimator.py
mothguib/pytrol
1b9634fb97e77407b4c609399c27663396a8d7e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import torch import pytrol.util.argsparser as parser from pytrol.control.agent.HPAgent import HPAgent from pytrol.control.agent.MAPTrainerModelAgent import MAPTrainerModelAgent from pytrol.model.knowledge.EnvironmentKnowledge import EnvironmentKnowledge from pytrol.util.net....
35.73
79
0.539603
348
3,573
5.327586
0.324713
0.02589
0.05178
0.062567
0.24164
0.24164
0.24164
0.208198
0.208198
0.208198
0
0.003651
0.38679
3,573
99
80
36.090909
0.842538
0.212147
0
0
0
0
0.002648
0
0
0
0
0.010101
0
1
0.054545
false
0
0.127273
0
0.236364
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
2c3f3ecd724928d365232ebf8b768d1291d014a9
815
py
Python
pyplexus/aws.py
baliame/pyplexus
9a0d2d6c9601858ab1995e6c16962918e0a5f7ab
[ "MIT" ]
1
2019-08-08T17:00:26.000Z
2019-08-08T17:00:26.000Z
pyplexus/aws.py
baliame/pyplexus
9a0d2d6c9601858ab1995e6c16962918e0a5f7ab
[ "MIT" ]
null
null
null
pyplexus/aws.py
baliame/pyplexus
9a0d2d6c9601858ab1995e6c16962918e0a5f7ab
[ "MIT" ]
null
null
null
import boto3 import boto3.session class AWS: def __init__(self, access=None, secret=None, region='us-east-1', resources=[], clients=[]): self.region = region if access is None or secret is None: self.sessid = "__ROLE__" self.session = boto3.session.Session(region_name=self...
30.185185
129
0.630675
105
815
4.733333
0.333333
0.110664
0.064386
0.092555
0.120724
0
0
0
0
0
0
0.008278
0.258896
815
26
130
31.346154
0.81457
0
0
0
0
0
0.028221
0
0
0
0
0
0
1
0.157895
false
0
0.105263
0.105263
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
2c5d3b60c06a4f0c6538efefd5e59a12774efc4a
953
py
Python
languages/python/concepts/P028_Sequence_BuiltInMethods.py
lakshmikanth-tesla/DeveloperNotes2Myself
9a5dad930ddbb99ace46d2d672109e8553aecbc2
[ "MIT" ]
2
2019-05-25T10:09:00.000Z
2022-03-11T09:06:23.000Z
languages/python/concepts/P028_Sequence_BuiltInMethods.py
lakshmikanth-tesla/DeveloperNotes2Myself
9a5dad930ddbb99ace46d2d672109e8553aecbc2
[ "MIT" ]
2
2020-03-31T04:30:17.000Z
2020-10-30T07:54:28.000Z
languages/python/concepts/P028_Sequence_BuiltInMethods.py
lakshmikanth-tesla/DeveloperNotes2Myself
9a5dad930ddbb99ace46d2d672109e8553aecbc2
[ "MIT" ]
4
2019-07-12T13:18:56.000Z
2021-11-17T08:04:55.000Z
# Description: Sequence Built-in Methods # Sequence Methods word = 'Hello' print(len(word[1:3])) # 2 print(ord('A')) # 65 print(chr(65)) # A print(str(65)) # 65 # Looping Sequence # 1. The position index and corresponding value can be retrieved at the same time using the e...
30.741935
113
0.637985
144
953
4.222222
0.5625
0.019737
0.029605
0.042763
0
0
0
0
0
0
0
0.025367
0.214061
953
30
114
31.766667
0.786382
0.395593
0
0
0
0
0.222025
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
2c6790a216766b547b738fbb973b287a1acb9ab0
1,899
py
Python
optimization/basic_neuralnet_lib/training.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
1
2022-01-06T04:50:09.000Z
2022-01-06T04:50:09.000Z
optimization/basic_neuralnet_lib/training.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
1
2022-01-23T06:09:21.000Z
2022-01-23T06:14:17.000Z
optimization/basic_neuralnet_lib/training.py
thundergolfer/uni
e604d1edd8e5085f0ae1c0211015db38c07fc926
[ "MIT" ]
null
null
null
import numpy as np from optimization.basic_neuralnet_lib import neuralnet from optimization.basic_neuralnet_lib import tensors from optimization.basic_neuralnet_lib import loss from typing import Iterator, NamedTuple DEFAULT_BATCH_SIZE = 32 def train( network: neuralnet.NeuralNet, inputs: tensors.Tensor, ...
33.910714
95
0.660874
224
1,899
5.433036
0.325893
0.066557
0.042728
0.073952
0.192276
0.192276
0
0
0
0
0
0.015395
0.247499
1,899
55
96
34.527273
0.836249
0.06793
0
0
0
0
0.022637
0
0
0
0
0.018182
0
1
0.068182
false
0
0.113636
0
0.272727
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
2c684ec0174927dc70e8a9ac3a51b1226fea448d
1,796
py
Python
templates/django/settings/production.py
Bournix/bouto
9eadd911b33257e9966a978696ab6437232c3ba9
[ "Apache-2.0" ]
null
null
null
templates/django/settings/production.py
Bournix/bouto
9eadd911b33257e9966a978696ab6437232c3ba9
[ "Apache-2.0" ]
null
null
null
templates/django/settings/production.py
Bournix/bouto
9eadd911b33257e9966a978696ab6437232c3ba9
[ "Apache-2.0" ]
null
null
null
"""Production settings for django project.""" from settings.common import * from os import environ from django.core.exceptions import ImproperlyConfigured ## PRODUCTION APPS CONFIGURATION INSTALLED_APPS = ("corsheaders",) + INSTALLED_APPS + ("gunicorn",) ## PRODUCTION APPS CONFIGURATION ## EMAIL CONFIGURATION EMAIL_...
44.9
117
0.809577
237
1,796
5.746835
0.324895
0.057269
0.040382
0.066079
0.14978
0.041116
0
0
0
0
0
0
0.080735
1,796
39
118
46.051282
0.824955
0.152561
0
0
0
0
0.288215
0.183165
0
0
0
0.025641
0
1
0
false
0.04
0.12
0
0.12
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
2c71b13481b7e80d958d51a32db3925c4c256590
1,800
py
Python
tests/parser/exceptions/test_invalid_literal_exception.py
siraben/vyper
fc9348b997b571e2b608e89b899362143f78d754
[ "MIT" ]
null
null
null
tests/parser/exceptions/test_invalid_literal_exception.py
siraben/vyper
fc9348b997b571e2b608e89b899362143f78d754
[ "MIT" ]
null
null
null
tests/parser/exceptions/test_invalid_literal_exception.py
siraben/vyper
fc9348b997b571e2b608e89b899362143f78d754
[ "MIT" ]
null
null
null
import pytest from pytest import raises from vyper import compiler from vyper.exceptions import InvalidLiteral fail_list = [ """ b: decimal @public def foo(): self.b = 7.5178246872145875217495129745982164981654986129846 """, """ @public def foo(): x = as_wei_value(0x05, "babbage") """, """...
18
92
0.618889
180
1,800
6.105556
0.438889
0.131028
0.152866
0.10646
0.154686
0.040036
0
0
0
0
0
0.258411
0.223889
1,800
99
93
18.181818
0.528275
0
0
0
0
0
0.020305
0
0
0
0
0
0
1
0.038462
false
0
0.153846
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c71b21036be9c2d0f1c761e2343b36f6b91ad2d
4,784
py
Python
examples/Redfish/get_SmartArray_EncryptionSettings.py
andreaslangnevyjel/python-ilorest-library
cd40e5ed9dfd615074d34ec6bb929dc8ea04a797
[ "Apache-2.0" ]
214
2016-04-04T12:24:52.000Z
2022-03-28T11:35:46.000Z
examples/Redfish/get_SmartArray_EncryptionSettings.py
andreaslangnevyjel/python-ilorest-library
cd40e5ed9dfd615074d34ec6bb929dc8ea04a797
[ "Apache-2.0" ]
139
2016-04-02T04:22:29.000Z
2022-03-25T06:54:45.000Z
examples/Redfish/get_SmartArray_EncryptionSettings.py
andreaslangnevyjel/python-ilorest-library
cd40e5ed9dfd615074d34ec6bb929dc8ea04a797
[ "Apache-2.0" ]
116
2016-04-04T20:39:42.000Z
2021-11-13T06:53:41.000Z
# Copyright 2020 Hewlett Packard Enterprise Development LP # # 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 ...
48.323232
100
0.655518
498
4,784
6.14257
0.39759
0.022883
0.027787
0.049689
0.111801
0.064073
0
0
0
0
0
0.006789
0.261079
4,784
98
101
48.816327
0.858557
0.290761
0
0
0
0
0.187183
0.080775
0
0
0
0
0
1
0.019231
false
0.096154
0.076923
0
0.096154
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
2c83580c47f93f3d95fdc5510e39f01ea13f8093
498
py
Python
tests/utils_tests/__init__.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
tests/utils_tests/__init__.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
tests/utils_tests/__init__.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
# tests.utils_tests # Tests for the Baleen utilities package. # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Sun Feb 21 15:31:55 2016 -0500 # # Copyright (C) 2016 Bengfort.com # For license information, see LICENSE.txt # # ID: __init__.py [] benjamin@bengfort.com $ """ Tests for the Baleen utiliti...
26.210526
74
0.5
48
498
5.083333
0.625
0.196721
0.090164
0.139344
0.270492
0.270492
0
0
0
0
0
0.045558
0.118474
498
18
75
27.666667
0.510251
0.63253
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
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
2c87db2dea4fee36d039413c7765522280b2321b
1,315
py
Python
playback/studio/equalizer_tuning.py
stjordanis/playback
7e8ea29f764a52753aef4e3334fd9bcf7826e082
[ "BSD-3-Clause" ]
85
2021-03-10T15:11:09.000Z
2022-03-07T13:03:48.000Z
playback/studio/equalizer_tuning.py
stjordanis/playback
7e8ea29f764a52753aef4e3334fd9bcf7826e082
[ "BSD-3-Clause" ]
35
2021-02-03T12:48:18.000Z
2021-11-14T11:48:46.000Z
playback/studio/equalizer_tuning.py
stjordanis/playback
7e8ea29f764a52753aef4e3334fd9bcf7826e082
[ "BSD-3-Clause" ]
6
2021-02-03T14:19:49.000Z
2021-08-11T06:43:35.000Z
from abc import ABCMeta, abstractmethod class EqualizerTuning(object): def __init__(self, playback_function, result_extractor, comparator, comparison_data_extractor=None): """ :param playback_function: A function that plays back the operation using the recording in the given id :type playb...
37.571429
114
0.709506
142
1,315
6.359155
0.401408
0.088594
0.127353
0
0
0
0
0
0
0
0
0
0.241065
1,315
34
115
38.676471
0.90481
0.485171
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.083333
0.083333
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
2c88a2d4193aebf1c6442a83146153e70f8d41f8
2,238
py
Python
tests/test_hosts_entry.py
mastanpatel/python-hosts
e3a2427f383747fbffb7fb9ea023ccf13b6114ac
[ "MIT" ]
102
2015-11-18T14:47:44.000Z
2022-03-14T19:32:06.000Z
tests/test_hosts_entry.py
mastanpatel/python-hosts
e3a2427f383747fbffb7fb9ea023ccf13b6114ac
[ "MIT" ]
43
2016-02-03T19:55:34.000Z
2022-03-22T20:01:26.000Z
tests/test_hosts_entry.py
mastanpatel/python-hosts
e3a2427f383747fbffb7fb9ea023ccf13b6114ac
[ "MIT" ]
36
2016-02-03T23:00:49.000Z
2022-02-24T05:46:42.000Z
# -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from python_hosts.hosts import HostsEntry def test_create_ipv4_instance(): """ add an ipv4 type entry """ hosts_entry = HostsEntry(entry_type='ipv4', address='1.2.3.4', names=['exam...
39.263158
115
0.677837
322
2,238
4.496894
0.201863
0.074586
0.129144
0.121547
0.661602
0.575967
0.428867
0.357735
0.256215
0.256215
0
0.058289
0.164433
2,238
56
116
39.964286
0.716043
0.020554
0
0.054054
0
0.027027
0.273684
0.058581
0
0
0
0
0.378378
1
0.216216
false
0
0.081081
0
0.297297
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
2c8f30da5a43e7b4c3831cfe0beff6a77c83bfd1
2,263
py
Python
example/example/admin.py
yourcelf/django-ajax-selects
a1539fd16868746aca9ccd8303cc8cd29aacbb89
[ "MIT" ]
1
2019-12-27T02:03:19.000Z
2019-12-27T02:03:19.000Z
example/example/admin.py
yourcelf/django-ajax-selects
a1539fd16868746aca9ccd8303cc8cd29aacbb89
[ "MIT" ]
null
null
null
example/example/admin.py
yourcelf/django-ajax-selects
a1539fd16868746aca9ccd8303cc8cd29aacbb89
[ "MIT" ]
null
null
null
from django.contrib import admin from ajax_select import make_ajax_form from ajax_select.admin import AjaxSelectAdmin, AjaxSelectAdminTabularInline from example.forms import ReleaseForm from example.models import * class PersonAdmin(AjaxSelectAdmin): pass admin.site.register(Person, PersonAdmin) class LabelA...
26.011494
95
0.699956
257
2,263
6.058366
0.447471
0.030829
0.065511
0.041105
0.037251
0.037251
0
0
0
0
0
0.000564
0.216969
2,263
86
96
26.313953
0.878104
0.409191
0
0
0
0
0.064541
0
0
0
0
0
0
1
0
false
0.030303
0.151515
0
0.606061
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
2c8f45acc34a63c12e7fd2f86566c8ae2aa2e540
409
py
Python
onadata/apps/messaging/urls.py
childhelpline/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
1
2018-07-15T13:13:43.000Z
2018-07-15T13:13:43.000Z
onadata/apps/messaging/urls.py
aondiaye/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
14
2018-07-10T12:48:46.000Z
2022-03-11T23:24:51.000Z
onadata/apps/messaging/urls.py
aondiaye/myhelpline
d72120ee31b6713cbaec79f299f5ee8bcb7ea429
[ "BSD-3-Clause" ]
5
2018-07-04T07:59:14.000Z
2020-01-28T07:50:18.000Z
# -*- coding: utf-8 -*- """ Messaging urls module. """ from django.conf.urls import include, url from rest_framework import routers from onadata.apps.messaging.viewsets import MessagingViewSet router = routers.DefaultRouter(trailing_slash=False) # pylint: disable=C0103 router.register(r'messaging', MessagingViewSet)...
25.5625
77
0.748166
50
409
6.08
0.64
0.085526
0.118421
0
0
0
0
0
0
0
0
0.027778
0.119804
409
15
78
27.266667
0.816667
0.217604
0
0
0
0
0.054839
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
2c9038da16b9454bd31d0f39f4da033190be6b8c
600
py
Python
app/migrations/0004_customer_phone_number.py
nibinn/Rnd
e306b3da3af5e9da66d11436bc7abf3a77f50573
[ "MIT" ]
null
null
null
app/migrations/0004_customer_phone_number.py
nibinn/Rnd
e306b3da3af5e9da66d11436bc7abf3a77f50573
[ "MIT" ]
null
null
null
app/migrations/0004_customer_phone_number.py
nibinn/Rnd
e306b3da3af5e9da66d11436bc7abf3a77f50573
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2021-07-02 04:01 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0003_customer_phone'), ] operations = [ migrations.AddField( model_name='customer', ...
30
235
0.648333
73
600
5.260274
0.753425
0.052083
0.104167
0
0
0
0
0
0
0
0
0.078556
0.215
600
19
236
31.578947
0.73673
0.076667
0
0
1
0
0.255435
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
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
2c918fdd4e95de48a6ec521f0e49a6f98396350f
240
py
Python
app/exo_currency/urls.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
app/exo_currency/urls.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
app/exo_currency/urls.py
jcazallasc/exo-investing
c32900dd2fd426a15f3b02389d75b51427e5df66
[ "MIT" ]
null
null
null
from django.urls import path from exo_currency.views import ExchangeRateEvolutionView urlpatterns = [ path( 'currency-exchange-rates/', ExchangeRateEvolutionView().get, name='exchange-rate-evolution', ), ]
20
56
0.6875
22
240
7.454545
0.727273
0
0
0
0
0
0
0
0
0
0
0
0.2125
240
11
57
21.818182
0.867725
0
0
0
0
0
0.195833
0.195833
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2c95aea8c317b5aeabf4b923fd70ea969dec287b
3,054
py
Python
clef14/author-profiling/pan14-author-profiling-validator.py
deltonvaz/pan-code
7a1d11eab81d9b4111d3ba0fb7d7038ff7ebfa0a
[ "MIT" ]
15
2020-04-22T04:04:46.000Z
2022-01-24T09:34:57.000Z
clef14/author-profiling/pan14-author-profiling-validator.py
deltonvaz/pan-code
7a1d11eab81d9b4111d3ba0fb7d7038ff7ebfa0a
[ "MIT" ]
2
2020-05-27T18:29:38.000Z
2020-09-26T03:36:23.000Z
clef14/author-profiling/pan14-author-profiling-validator.py
deltonvaz/pan-code
7a1d11eab81d9b4111d3ba0fb7d7038ff7ebfa0a
[ "MIT" ]
18
2020-02-24T20:55:29.000Z
2022-03-23T01:14:50.000Z
#!/usr/bin/python import sys, getopt, os import lxml from lxml import objectify IS_VALID=True ################################################################################ # Usage # def usage(): print "Usage: python " + sys.argv[0] + " -i <runDir> -t <truthFile>" sys.exit(1) # ##################################...
23.674419
85
0.47446
330
3,054
4.212121
0.278788
0.064748
0.05036
0.046763
0.256835
0.202158
0.166187
0.123022
0.123022
0
0
0.001552
0.156189
3,054
128
86
23.859375
0.537835
0.074329
0
0.228571
0
0
0.118762
0
0
0
0
0
0
0
null
null
0
0.042857
null
null
0.014286
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
2ca3c762942bda9abcae8944e38b0c3aafee2ee3
358
py
Python
Dataset/Leetcode/valid/78/152.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/78/152.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/valid/78/152.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def permute(self, nums: List[int]) -> List[List[int]]: res = [] def backtrack(nums, temp): if not nums: res.append(temp) return for i in range(len(nums)): backtrack(nums[:i]+nums[i+1:], temp+[nums[i]]) ba...
27.538462
62
0.472067
42
358
4.02381
0.5
0.230769
0
0
0
0
0
0
0
0
0
0.004545
0.385475
358
12
63
29.833333
0.763636
0
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.454545
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
2cae05e6667f54e297a8be2d88bcb0f143741fac
247
py
Python
Pillow-4.3.0/Tests/test_image_tobytes.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
Pillow-4.3.0/Tests/test_image_tobytes.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
Pillow-4.3.0/Tests/test_image_tobytes.py
leorzz/simplemooc
8b1c5e939d534b1fd729596df4c59fc69708b896
[ "MIT" ]
null
null
null
from helper import unittest, PillowTestCase, hopper class TestImageToBytes(PillowTestCase): def test_sanity(self): data = hopper().tobytes() self.assertIsInstance(data, bytes) if __name__ == '__main__': unittest.main()
20.583333
51
0.700405
25
247
6.56
0.76
0
0
0
0
0
0
0
0
0
0
0
0.194332
247
11
52
22.454545
0.824121
0
0
0
0
0
0.032389
0
0
0
0
0
0.142857
1
0.142857
false
0
0.142857
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2caf1eeaf5226c99d21e9c939f7a7b1b95a5484f
242
py
Python
students/k3342/laboratory_works/Litvinova_Elizaveta/laboratory_work_1/django_tours/django_tours_app/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3342/laboratory_works/Litvinova_Elizaveta/laboratory_work_1/django_tours/django_tours_app/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3342/laboratory_works/Litvinova_Elizaveta/laboratory_work_1/django_tours/django_tours_app/urls.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
from django.contrib import admin from django.urls import path, include from .views import * urlpatterns = [ path('tours/', TourView.as_view()), path('tours/<int:tour_id>/', about_tour), path('auth/', auth), path('register/', register) ]
22
42
0.702479
33
242
5.060606
0.606061
0.11976
0
0
0
0
0
0
0
0
0
0
0.123967
242
10
43
24.2
0.787736
0
0
0
0
0
0.165289
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
2cb41c3b27c578ff9a20ef373ea7d9d90c754c70
426
py
Python
algorithm/challenges/sublime.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
null
null
null
algorithm/challenges/sublime.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
null
null
null
algorithm/challenges/sublime.py
rishabhiitbhu/hackerrank
acc300851c81a29472177f15fd8b56ebebe853ea
[ "MIT" ]
1
2020-01-30T06:47:09.000Z
2020-01-30T06:47:09.000Z
import urllib.request,os pf='Package Control.sublime-package' ipp=sublime.installed_packages_path() urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler( {"http":"http://069.15084016:1056018XYZ@10.1.1.45:80"} ) ) ) open(os.path.join(ipp,pf),'wb').w...
26.625
66
0.652582
54
426
5.074074
0.62963
0.237226
0.138686
0
0
0
0
0
0
0
0
0.078652
0.164319
426
16
67
26.625
0.691011
0
0
0
0
0
0.255869
0.053991
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
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
2cb44e7448fa36fa03c5c5cd810be91645e9fe43
1,456
py
Python
objetos/index.py
emmanuellesoy/python
7ded2240a9f72f2b042a64131266318663bfa7d9
[ "Apache-2.0" ]
null
null
null
objetos/index.py
emmanuellesoy/python
7ded2240a9f72f2b042a64131266318663bfa7d9
[ "Apache-2.0" ]
null
null
null
objetos/index.py
emmanuellesoy/python
7ded2240a9f72f2b042a64131266318663bfa7d9
[ "Apache-2.0" ]
null
null
null
import "../funciones/funciones" class Usuario: def __init__(self, nombre="", apellido=""): self.nombre = nombre self.apellido = apellido def saludar(self): print("Hola, mi nombre es", self.nombre, self.apellido) usuario = Usuario("Emmanuelle", "Laguna") print(usuario.nombre, usuario...
20.8
79
0.673077
162
1,456
5.925926
0.259259
0.083333
0.058333
0.053125
0.186458
0.09375
0.09375
0.09375
0.09375
0.09375
0
0.006762
0.1875
1,456
69
80
21.101449
0.804734
0.028846
0
0.139535
0
0
0.137394
0.015581
0
0
0
0
0
0
null
null
0
0.023256
null
null
0.139535
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
2cb82199ff2811791b37271098a89288b4cecd1c
2,782
py
Python
objectModel/Python/cdm/persistence/syms/manifest_databases_persistence.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
884
2019-05-10T02:09:10.000Z
2022-03-31T14:02:00.000Z
objectModel/Python/cdm/persistence/syms/manifest_databases_persistence.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
171
2019-06-10T11:34:37.000Z
2022-03-31T22:50:12.000Z
objectModel/Python/cdm/persistence/syms/manifest_databases_persistence.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
340
2019-05-07T18:00:16.000Z
2022-03-31T12:00:15.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. import dateutil.parser from cdm.enums import CdmObjectType from cdm.objectmodel import CdmCorpusContext, CdmManifestDefinition from cdm.persistence import Persiste...
50.581818
399
0.800144
278
2,782
7.863309
0.485612
0.093321
0.038426
0.031107
0
0
0
0
0
0
0
0.001261
0.14486
2,782
54
400
51.518519
0.917612
0.053918
0
0
0
0
0.074173
0.045645
0
0
0
0
0
1
0.025641
false
0
0.538462
0
0.666667
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
2cbaa10707e4ad016f9bb4fd1116ae9b24ed27b2
2,529
py
Python
trans_prebuilt_apk.py
ioz9/tools
4331742985ee7692dc902518a882eec7d3d3fa6a
[ "Apache-2.0" ]
1
2015-04-12T08:20:34.000Z
2015-04-12T08:20:34.000Z
trans_prebuilt_apk.py
ioz9/tools
4331742985ee7692dc902518a882eec7d3d3fa6a
[ "Apache-2.0" ]
null
null
null
trans_prebuilt_apk.py
ioz9/tools
4331742985ee7692dc902518a882eec7d3d3fa6a
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # lishaoyan@baidu.com, 2012 import sys, os, shutil from os.path import join, basename, dirname import zipfile import re def usage(): print """ Transform the source apk to the destinal apk, while extracting the so libraries in apk to /system/lib and removing the so lirary items in apk at the s...
28.1
72
0.601423
383
2,529
3.827676
0.302872
0.042974
0.018417
0.030696
0.110505
0.049113
0.049113
0.049113
0.049113
0
0
0.00884
0.284302
2,529
89
73
28.41573
0.801105
0.055753
0
0.151515
0
0
0.201371
0.008997
0
0
0
0
0
0
null
null
0.030303
0.060606
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2cbdb0062ca22eed79e7cf54b0e9cbedfa30b25c
3,417
py
Python
Script_hc-sr04.py
Lilly7777/GRobot
b31a67cd3debb22d2e6c542c694c773b175fa7ae
[ "MIT" ]
null
null
null
Script_hc-sr04.py
Lilly7777/GRobot
b31a67cd3debb22d2e6c542c694c773b175fa7ae
[ "MIT" ]
null
null
null
Script_hc-sr04.py
Lilly7777/GRobot
b31a67cd3debb22d2e6c542c694c773b175fa7ae
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) TRIG = 23 ECHO = 24 TRIG_2 = 22 ECHO_2 = 27 R_MOTOR_1 = 5 R_MOTOR_2 = 6 L_MOTOR_1 = 25 L_MOTOR_2 = 17 GPIO.setup(TRIG, GPIO.OUT) GPIO.setup(ECHO, GPIO.IN) GPIO.setup(TRIG_2, GPIO.OUT) GPIO.setup(ECHO_2, GPIO.IN) GPIO.setup(R_MOTOR_1, GPIO.OUT) GPIO.setu...
27.556452
58
0.53585
439
3,417
3.970387
0.15262
0.149168
0.068847
0.091796
0.591509
0.508893
0.44062
0.438325
0.401606
0.401606
0
0.043155
0.36933
3,417
123
59
27.780488
0.765661
0
0
0.45
0
0
0.027225
0
0
0
0
0
0
0
null
null
0
0.02
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2cbe5c6c8a38d2ea7a722d5a57ab77c4632f2125
588
py
Python
src/main.py
otaviocap/PyDashboard
b2ffbe47e93d90700a266c8a7e229eb81845c65f
[ "MIT" ]
null
null
null
src/main.py
otaviocap/PyDashboard
b2ffbe47e93d90700a266c8a7e229eb81845c65f
[ "MIT" ]
null
null
null
src/main.py
otaviocap/PyDashboard
b2ffbe47e93d90700a266c8a7e229eb81845c65f
[ "MIT" ]
null
null
null
from http import client import json from rich.console import Console from Connector import Connector from Dashboard import Dashboard import signal import sys if __name__ == "__main__": console = Console() data = [] with open("credentials.json", "r") as file: data = json.loads(file.read()) connection = Conne...
19.6
59
0.738095
75
588
5.64
0.493333
0.070922
0
0
0
0
0
0
0
0
0
0.002
0.14966
588
30
60
19.6
0.844
0
0
0
0
0
0.052632
0
0
0
0
0
0
1
0.047619
false
0
0.333333
0
0.380952
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
2cc5c725d780399382d97b65a9c02e977b310b66
246
py
Python
streamlit_prophet/cli/deploy.py
carolinedlu/darkpool-snowvation
c795a95288e5d58c60aee69afacbb93374fe0900
[ "MIT" ]
36
2021-09-16T12:34:13.000Z
2021-12-11T20:51:58.000Z
streamlit_prophet/cli/deploy.py
carolinedlu/darkpool-snowvation
c795a95288e5d58c60aee69afacbb93374fe0900
[ "MIT" ]
7
2022-01-22T03:53:37.000Z
2022-02-12T17:41:23.000Z
streamlit_prophet/cli/deploy.py
carolinedlu/darkpool-snowvation
c795a95288e5d58c60aee69afacbb93374fe0900
[ "MIT" ]
20
2021-12-16T00:56:32.000Z
2022-03-20T00:52:08.000Z
import typer from rich.console import Console from streamlit_prophet.app import deploy_streamlit app = typer.Typer() console = Console() @app.command() def dashboard() -> None: """Deploys the streamlit dashboard.""" deploy_streamlit()
18.923077
50
0.739837
30
246
5.966667
0.5
0.167598
0
0
0
0
0
0
0
0
0
0
0.150407
246
12
51
20.5
0.856459
0.130081
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
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
2cc688d2335a1eda83a770aa914c6f4a774bcbe8
5,088
py
Python
analysis_for_AlleleHMM_manuscript/alleledb_pipeline_mouse/SQDedWrapper.py
Danko-Lab/AlleleHMM
03c3ac6d50d81cf9329fa1ac2bf0e7b89b39ba79
[ "BSD-2-Clause" ]
3
2018-08-11T16:48:09.000Z
2019-06-20T02:32:26.000Z
analysis_for_AlleleHMM_manuscript/alleledb_pipeline_mouse/SQDedWrapper.py
Danko-Lab/AlleleHMM
03c3ac6d50d81cf9329fa1ac2bf0e7b89b39ba79
[ "BSD-2-Clause" ]
null
null
null
analysis_for_AlleleHMM_manuscript/alleledb_pipeline_mouse/SQDedWrapper.py
Danko-Lab/AlleleHMM
03c3ac6d50d81cf9329fa1ac2bf0e7b89b39ba79
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env /home2/njc2/myInstalls/bin/njcPython # Set the above path as part of the install? import logging, nws.client, os, signal, socket, sys, thread, time LogC, LogD, LogE, LogI, LogW = logging.critical, logging.debug, logging.error, logging.info, logging.warning myHost = socket.gethostname() prog, verbose, ...
34.849315
151
0.662146
668
5,088
5.02994
0.332335
0.009524
0.010714
0.039286
0.325298
0.259226
0.215179
0.205655
0.205655
0.160417
0
0.005532
0.218357
5,088
145
152
35.089655
0.839326
0.180818
0
0.320388
0
0
0.172489
0
0
0
0
0
0
0
null
null
0.009709
0.009709
null
null
0.009709
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
2cc76d3c0aebc657891d6ed896d0a18bc557130c
4,419
py
Python
cacheutil_experimental.py
yulkang/constorch
9365577b5087d00c571a2b0afb8a115a7082a3b2
[ "Apache-2.0" ]
11
2019-07-09T18:13:52.000Z
2021-08-31T23:08:57.000Z
cacheutil_experimental.py
yulkang/constorch
9365577b5087d00c571a2b0afb8a115a7082a3b2
[ "Apache-2.0" ]
1
2020-05-21T06:44:58.000Z
2020-08-31T08:05:58.000Z
cacheutil_experimental.py
yulkang/constorch
9365577b5087d00c571a2b0afb8a115a7082a3b2
[ "Apache-2.0" ]
3
2020-04-23T01:42:46.000Z
2020-08-30T13:27:18.000Z
# Copyright (c) 2020 Yul HR Kang. hk2699 at caa dot columbia dot edu. import os from . import zipPickle """ Deprecated subkeys separate from keys. Now all input/output must be done using key to Cache._dict[key]. Use Cache.get_dict() to get the whole _dict. """ def dict_except(d, keys_to_excl): return {k:d[k] f...
27.968354
79
0.521838
608
4,419
3.654605
0.210526
0.056706
0.022502
0.012601
0.415392
0.40009
0.378488
0.309631
0.309631
0.276328
0
0.0091
0.353474
4,419
158
80
27.968354
0.768638
0.406427
0
0.129032
0
0
0.024379
0
0
0
0
0
0
1
0.225806
false
0
0.032258
0.064516
0.419355
0.032258
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
2cc99ae19dfa44ffd6b1bb7b38c20ddfdcad1a8c
12,313
py
Python
tools/chrome_proxy/webdriver/https_previews.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/chrome_proxy/webdriver/https_previews.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/chrome_proxy/webdriver/https_previews.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import re import time import urllib from common import ParseFlags from common import TestDriver from common import IntegrationTest from decorator...
41.597973
100
0.718428
1,405
12,313
6.238434
0.262633
0.017342
0.012322
0.019395
0.345579
0.318996
0.302795
0.261266
0.203537
0.18939
0
0.010566
0.192886
12,313
295
101
41.738983
0.871403
0.261431
0
0.363158
0
0.005263
0.226029
0.10089
0
0
0
0
0.173684
1
0.068421
false
0.052632
0.057895
0
0.131579
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
e2cacb7993b48bdf4c87bc31040bf40cad700ce7
1,079
py
Python
src/main.py
rkouhei/Autocorrelation-Analysis
91c629d3c22d6b34707b9011dc625842e7cca994
[ "MIT" ]
null
null
null
src/main.py
rkouhei/Autocorrelation-Analysis
91c629d3c22d6b34707b9011dc625842e7cca994
[ "MIT" ]
null
null
null
src/main.py
rkouhei/Autocorrelation-Analysis
91c629d3c22d6b34707b9011dc625842e7cca994
[ "MIT" ]
null
null
null
""" ============================== 2020/12/30 rkouhei ============================== """ # ライブラリのインポート from calc_acf import mode1, mode2, mode3, mode4, mode5, mode6 def select_mode(): """ 計算モードの選択とファイルのパスの入力をする。 一度に、複数ファイルの読み込みも可能。 相対パスと絶対パス、どちらでも可能。 Raises ------ 存在しないモードを選択したとき。 モ...
20.358491
108
0.518072
116
1,079
4.732759
0.534483
0.10929
0.127505
0.163934
0
0
0
0
0
0
0
0.041612
0.287303
1,079
53
109
20.358491
0.671001
0.203892
0
0.068966
0
0.034483
0.173645
0.028325
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.068966
0.137931
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
e2cc3b2d7bea0d8a64afbed2370c7bf4aab57a9d
1,173
py
Python
0301-0400/0394-Decode String/0394-Decode String.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
0301-0400/0394-Decode String/0394-Decode String.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
0301-0400/0394-Decode String/0394-Decode String.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
class Solution: def decodeString(self, s: str) -> str: St = [] num = 0 curr = '' for c in s: if c.isdigit(): num = num*10 + int(c) elif c == '[': St.append([num, curr]) num = 0 curr = '' ...
27.928571
56
0.317136
116
1,173
3.206897
0.310345
0.032258
0.102151
0.107527
0.317204
0.22043
0.080645
0
0
0
0
0.025692
0.568627
1,173
41
57
28.609756
0.709486
0
0
0.333333
0
0
0.002558
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e2dee38475be9f92fc58d70a07b737b026748f08
810
py
Python
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/groups.py
572314705/meiduo_24
d279719506c536d21141b65eabf92fb3fa2bcff0
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/groups.py
572314705/meiduo_24
d279719506c536d21141b65eabf92fb3fa2bcff0
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/meiduo_admin/views/groups.py
572314705/meiduo_24
d279719506c536d21141b65eabf92fb3fa2bcff0
[ "MIT" ]
null
null
null
from django.contrib.auth.models import Group, Permission from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet from meiduo_admin.serializer.groups import GroupSerializer from meiduo_admin.serializer.permission import PermissionS...
27.931034
67
0.749383
86
810
6.953488
0.534884
0.040134
0.085284
0.083612
0
0
0
0
0
0
0
0
0.190123
810
28
68
28.928571
0.911585
0.051852
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0.4375
0
0.875
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
e2e5c774d18b6623758d8a01e36fe55739afb3a6
324
py
Python
clashtk/common/log.py
Libitum/clash-for-linux
4d79b2900e21fce667a4ac03f099a95d64779004
[ "MIT" ]
2
2021-06-29T05:08:21.000Z
2021-07-19T13:18:01.000Z
clashtk/common/log.py
Libitum/clash-for-linux
4d79b2900e21fce667a4ac03f099a95d64779004
[ "MIT" ]
1
2021-03-09T03:02:12.000Z
2021-03-09T03:02:12.000Z
clashtk/common/log.py
Libitum/clash-for-linux
4d79b2900e21fce667a4ac03f099a95d64779004
[ "MIT" ]
2
2021-06-29T05:08:23.000Z
2021-09-07T08:51:42.000Z
"""The log module for the project.""" import logging # Common logger in the whole library logger = logging.getLogger('clashtk') def enable_log_for_debug(): """Enables logging for debug purpose.""" logger.setLevel(logging.DEBUG) # TODO: Add format for the logger logger.addHandler(logging.StreamHandler...
24.923077
46
0.725309
42
324
5.52381
0.595238
0.051724
0
0
0
0
0
0
0
0
0
0
0.16358
324
12
47
27
0.856089
0.41358
0
0
0
0
0.039326
0
0
0
0
0.083333
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e2e6813933387051c1853f77b160b1a553d0d9ac
1,173
py
Python
timers/usingTimeIt.py
rbiswas4/TimingComparisons
bd5ad7908a005ed825583b782c827391768ddbd4
[ "MIT" ]
null
null
null
timers/usingTimeIt.py
rbiswas4/TimingComparisons
bd5ad7908a005ed825583b782c827391768ddbd4
[ "MIT" ]
null
null
null
timers/usingTimeIt.py
rbiswas4/TimingComparisons
bd5ad7908a005ed825583b782c827391768ddbd4
[ "MIT" ]
null
null
null
import timeit import numpy as np import matplotlib.pyplot as plt import seaborn as sns import numba sns.set() # using setitem t = timeit.Timer("print 'main statement'", "print 'setup'") print 'TIMEIT:' print t.timeit(2) print 'REPEAT:' print t.repeat(3, 2) print "DONE" @numba.jit(nopython=False) def sumvars(x): ...
24.4375
94
0.606991
194
1,173
3.649485
0.350515
0.039548
0.055085
0.063559
0.214689
0.050847
0
0
0
0
0
0.039195
0.195226
1,173
47
95
24.957447
0.710805
0.086957
0
0
0
0
0.150749
0.019663
0
0
0
0
0
0
null
null
0
0.184211
null
null
0.210526
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
e2e761b4458288a764882db68d88b8881e499d5a
280
py
Python
Dataset/Leetcode/train/78/546.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/78/546.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/78/546.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, nums: List[int]) -> List[List[int]]: if not nums: return [[]] rec = [] res = self.XXX(nums[1:]) for r in res: rec.append(r) rec.append([nums[0]]+r) return rec
21.538462
54
0.432143
35
280
3.457143
0.542857
0.115702
0
0
0
0
0
0
0
0
0
0.012346
0.421429
280
12
55
23.333333
0.734568
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
e2e8394c0b59c084acf3a6885aceef5be0489fd3
16,700
py
Python
docusign_esign/models/comment.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
docusign_esign/models/comment.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
docusign_esign/models/comment.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from p...
26.299213
415
0.577964
2,043
16,700
4.441997
0.093
0.067438
0.120331
0.059504
0.625344
0.512066
0.452231
0.296749
0.203636
0.120661
0
0.001088
0.339701
16,700
634
416
26.340694
0.821892
0.363234
0
0.287611
0
0
0.095227
0
0
0
0
0
0
1
0.212389
false
0
0.013274
0
0.345133
0.004425
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
e2ea533ab64663888bc8bff11f309d8320afc166
1,261
py
Python
sacrud/__init__.py
sacrud/sacrud
40dcbb22083cb1ad4c1f626843397b89c2ce18f5
[ "MIT" ]
19
2016-01-15T14:17:34.000Z
2021-12-27T04:02:06.000Z
sacrud/__init__.py
ITCase/sacrud
40dcbb22083cb1ad4c1f626843397b89c2ce18f5
[ "MIT" ]
6
2015-02-04T07:45:34.000Z
2015-10-23T09:02:06.000Z
sacrud/__init__.py
ITCase/sacrud
40dcbb22083cb1ad4c1f626843397b89c2ce18f5
[ "MIT" ]
3
2016-05-09T16:58:08.000Z
2017-10-04T13:47:33.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2015 uralbash <root@uralbash.ru> # # Distributed under terms of the MIT license. import types from sqlalchemy.orm import Session from .action import CRUD __all__ = ['crud_sessionmaker', 'CRUDSession'] class CRUDSession(Session): "...
24.72549
66
0.681205
136
1,261
6.227941
0.397059
0.075561
0.118064
0.081464
0.27863
0.217237
0.217237
0.217237
0.217237
0.217237
0
0.008089
0.215702
1,261
50
67
25.22
0.847321
0.636796
0
0
0
0
0.075881
0
0
0
0
0
0
1
0.2
false
0
0.3
0.1
0.8
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
e2ebbe92c6762da4c1d73e62ca915acd4070e81a
213
py
Python
Scripts/mousemargins.py
Ifelsethendo/Blender-Game-Engine-Templates
b4cd92ee7e1c4e9ac8d10b4d843392856285f6ba
[ "Apache-2.0" ]
5
2021-12-11T02:27:43.000Z
2022-01-08T08:51:21.000Z
Scripts/mousemargins.py
Ifelsethendo/Blender-Game-Engine-Templates
b4cd92ee7e1c4e9ac8d10b4d843392856285f6ba
[ "Apache-2.0" ]
null
null
null
Scripts/mousemargins.py
Ifelsethendo/Blender-Game-Engine-Templates
b4cd92ee7e1c4e9ac8d10b4d843392856285f6ba
[ "Apache-2.0" ]
2
2021-12-29T05:48:58.000Z
2022-03-05T15:31:33.000Z
import bge mouse = list(bgelogic.mouse.position) margin = .05 mouse[0] = min(max(mouse[0], 0 + margin), 1 - margin) mouse[1] = min(max(mouse[1], 0 + margin), 1 - margin) bge.logic.mouse.position = tuple(mouse)
21.3
53
0.666667
35
213
4.057143
0.4
0.183099
0.15493
0.197183
0
0
0
0
0
0
0
0.055249
0.150235
213
10
54
21.3
0.729282
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
e2ef72b6a9e0de1d8bef0838fc1c33b18b5557f0
2,602
py
Python
test/issues/test_071.py
ajnelson-nist/pySHACL
eebb546c981d5e7de72c8e51b0d9eaf14960e807
[ "Apache-2.0" ]
167
2018-09-05T11:28:28.000Z
2022-03-29T13:31:02.000Z
test/issues/test_071.py
ajnelson-nist/pySHACL
eebb546c981d5e7de72c8e51b0d9eaf14960e807
[ "Apache-2.0" ]
123
2018-09-07T04:27:05.000Z
2022-03-25T15:07:56.000Z
test/issues/test_071.py
ajnelson-nist/pySHACL
eebb546c981d5e7de72c8e51b0d9eaf14960e807
[ "Apache-2.0" ]
50
2018-09-14T11:12:31.000Z
2022-03-25T15:00:21.000Z
# -*- coding: utf-8 -*- # """ https://github.com/RDFLib/pySHACL/issues/71 """ import rdflib from pyshacl import validate shacl_file_text = """\ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix...
23.441441
76
0.629131
363
2,602
4.440771
0.289256
0.047767
0.061414
0.081886
0.547767
0.520471
0.485732
0.439826
0.439826
0.439826
0
0.045389
0.195619
2,602
110
77
23.654545
0.724797
0.025365
0
0.413793
0
0.045977
0.810843
0.008706
0
0
0
0
0.011494
1
0.011494
false
0
0.022989
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e2f66845d3bed9c1829a6cfda188c7d4c8538647
2,255
py
Python
tests/prolog_test.py
combinatorylogic/pyexpert
2cbb8d14455a5a00f39f230adbb2ada654c22961
[ "MIT" ]
1
2018-07-15T16:03:40.000Z
2018-07-15T16:03:40.000Z
tests/prolog_test.py
combinatorylogic/pyexpert
2cbb8d14455a5a00f39f230adbb2ada654c22961
[ "MIT" ]
null
null
null
tests/prolog_test.py
combinatorylogic/pyexpert
2cbb8d14455a5a00f39f230adbb2ada654c22961
[ "MIT" ]
null
null
null
from pyexpert import * def test(): lib = """ ntest(X, Y) :- testX(X,aaa), testY(Y,bbb). testX(X, []). testX(X, V) :- X = V. testY(X, V) :- X = V. """ query1 = '? append(A, B, [x,y]).' query2 = '? revert([a,b,c,d,e], A).' query3 ...
30.066667
127
0.548559
372
2,255
3.258065
0.172043
0.057756
0.148515
0.172442
0.589934
0.514851
0.494224
0.319307
0.314356
0.259901
0
0.020845
0.21286
2,255
74
128
30.472973
0.661972
0
0
0.396825
0
0.126984
0.388914
0.124612
0
0
0
0
0.349206
1
0.015873
false
0
0.015873
0
0.031746
0.238095
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
39008e4a5839291668277cf7a1f0532d59db3326
1,259
py
Python
python/TrackML_example.py
vvolkl/TrickTrack
b164fad1361505ff8dbf328107b645753ce331ac
[ "Apache-2.0" ]
4
2018-10-10T11:12:41.000Z
2022-02-09T10:59:12.000Z
python/TrackML_example.py
HSF/TrickTrack
b164fad1361505ff8dbf328107b645753ce331ac
[ "Apache-2.0" ]
6
2018-06-26T07:35:13.000Z
2020-07-22T09:11:04.000Z
python/TrackML_example.py
HEP-SF/TrickTrack
b164fad1361505ff8dbf328107b645753ce331ac
[ "Apache-2.0" ]
6
2017-07-17T14:58:58.000Z
2018-03-02T10:09:41.000Z
from pyTT import TTReco import trackml from trackml.dataset import load_event, load_dataset import sys import numpy as np import pandas as pd filename = sys.argv[1] hits, cells, particles, truth = load_event(filename) hits = pd.merge(hits,truth,on='hit_id') hits['phi'] = np.arctan2(hits['y'],hits['x']) hits['r'] = n...
33.131579
130
0.660048
220
1,259
3.7
0.386364
0.018428
0.07371
0.083538
0.286241
0.211302
0.211302
0
0
0
0
0.037273
0.126291
1,259
37
131
34.027027
0.702727
0.037331
0
0
0
0
0.170389
0
0
0
0
0
0
0
null
null
0
0.206897
null
null
0.103448
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
390d6f894b661f565b08c34fea58d7d744afa4f4
3,061
py
Python
pyefun/threadingUtil_test.py
nobodxbodon/pyefun
a713e499ed0f1678c836a68320616423e6f59c1e
[ "Apache-2.0" ]
1
2021-08-23T07:48:17.000Z
2021-08-23T07:48:17.000Z
pyefun/threadingUtil_test.py
1431241631/pyefun
ac2290d4bcc8de16c195d2782f3eacd26e5e6ed4
[ "Apache-2.0" ]
null
null
null
pyefun/threadingUtil_test.py
1431241631/pyefun
ac2290d4bcc8de16c195d2782f3eacd26e5e6ed4
[ "Apache-2.0" ]
null
null
null
import unittest from .threadingUtil import * from .__init__ import * from .asyncPoolGevent.asyncPoolGevent import * # from .asyncPool.asyncPool import * 无法在测试用例中测试 # import asyncio lock = 互斥锁() lock2 = 递归锁() def 工作线程(参数): lock.进入() print(取现行时间(), 参数, "启动线程了") lock.退出() def 工作线程2(参数): print(取现行时间()...
19.876623
62
0.487422
386
3,061
3.797927
0.313472
0.052524
0.028649
0.052524
0.208731
0.109141
0.109141
0.109141
0.042292
0.042292
0
0.032291
0.352499
3,061
153
63
20.006536
0.707366
0.212022
0
0.309524
0
0
0.055602
0
0
0
0
0
0
1
0.202381
false
0.011905
0.047619
0
0.27381
0.214286
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
3910e387ca267f4b993b4c473d64624cbc566996
734
py
Python
pseudodata.py
mchels/FolderBrowser
2915634ebae8b093f26117d65f6bd97a3de59f07
[ "MIT" ]
1
2016-11-04T11:06:05.000Z
2016-11-04T11:06:05.000Z
pseudodata.py
mchels/FolderBrowser
2915634ebae8b093f26117d65f6bd97a3de59f07
[ "MIT" ]
null
null
null
pseudodata.py
mchels/FolderBrowser
2915634ebae8b093f26117d65f6bd97a3de59f07
[ "MIT" ]
3
2017-08-07T15:04:59.000Z
2019-03-22T13:25:00.000Z
class PseudoData(dict): def __init__(self, name_func_dict, sweep): super(PseudoData, self).__init__() self.name_func_dict = name_func_dict self.sweep = sweep def __getitem__(self, key): if key in self.keys(): return dict.__getitem__(self, key) elif key in sel...
33.363636
75
0.598093
98
734
4.102041
0.306122
0.119403
0.179104
0.199005
0.308458
0
0
0
0
0
0
0
0.298365
734
21
76
34.952381
0.780583
0
0
0.105263
0
0
0.010899
0
0
0
0
0
0
1
0.157895
false
0
0
0
0.421053
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
39176cb1c6e09de841036ff043c1d8a78fba09a7
4,651
py
Python
backend/src/test/test_postprocessing.py
datarootsio/bikefitting
cd4048e623da9b8378c447579134ae2bc2734521
[ "MIT" ]
3
2021-12-06T09:48:43.000Z
2022-03-22T05:36:08.000Z
backend/src/test/test_postprocessing.py
datarootsio/bikefitting
cd4048e623da9b8378c447579134ae2bc2734521
[ "MIT" ]
null
null
null
backend/src/test/test_postprocessing.py
datarootsio/bikefitting
cd4048e623da9b8378c447579134ae2bc2734521
[ "MIT" ]
null
null
null
import unittest import os import sys # add src dir to sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) from utils.postprocessing import calc_knee_angle from utils.postprocessing import find_camera_facing_side from utils.postprocessing import filter_bad_angles from utils.postprocessing import mak...
33.221429
88
0.522898
494
4,651
4.724696
0.287449
0.084833
0.068552
0.113111
0.49443
0.445587
0.415596
0.38132
0.293916
0.293916
0
0.213843
0.341432
4,651
139
89
33.460432
0.548155
0.00387
0
0.454545
0
0
0.009501
0
0
0
0
0
0.166667
1
0.030303
false
0
0.05303
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
39188292d6bf2b6fcd69e2f082f088df40aa8ba0
2,103
py
Python
issuebox/website/migrations/0003_auto_20160303_0041.py
UKS-Tim3/Issuebox
cd0f85c9cca5500947b16b23c21b65ad6c81fdbe
[ "MIT" ]
null
null
null
issuebox/website/migrations/0003_auto_20160303_0041.py
UKS-Tim3/Issuebox
cd0f85c9cca5500947b16b23c21b65ad6c81fdbe
[ "MIT" ]
18
2016-03-07T14:44:28.000Z
2016-07-17T22:44:05.000Z
issuebox/website/migrations/0003_auto_20160303_0041.py
UKS-Tim3/Issuebox
cd0f85c9cca5500947b16b23c21b65ad6c81fdbe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2016-03-03 00:41 from __future__ import unicode_literals from django.conf import settings import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ...
37.553571
197
0.592962
213
2,103
5.685446
0.41784
0.039637
0.057803
0.090834
0.387283
0.387283
0.208918
0.208918
0.171759
0.132122
0
0.019685
0.275321
2,103
55
198
38.236364
0.774934
0.031859
0
0.354167
1
0
0.126906
0.019675
0
0
0
0
0
1
0
false
0
0.104167
0
0.166667
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
3918975cfb759148faa7147d5a927e4167694f89
1,876
py
Python
test_translator.py
PseudoMera/Universal_Translator
02ed0191fe73e81966fc7ef610e136a640e48496
[ "MIT" ]
null
null
null
test_translator.py
PseudoMera/Universal_Translator
02ed0191fe73e81966fc7ef610e136a640e48496
[ "MIT" ]
null
null
null
test_translator.py
PseudoMera/Universal_Translator
02ed0191fe73e81966fc7ef610e136a640e48496
[ "MIT" ]
null
null
null
import unittest import universal_translator class UniversalTranslatorTest(unittest.TestCase): '''Raises file not found error if the given file route is empty''' def test_empty_file_route(self): universe = universal_translator.UnitsTranslator('') with self.assertRaises(FileNotFoundError): ...
44.666667
94
0.698294
239
1,876
5.313808
0.284519
0.104724
0.099213
0.146457
0.482677
0.446457
0.424409
0.293701
0.200787
0.200787
0
0.00538
0.207356
1,876
41
95
45.756098
0.848689
0.031983
0
0.275862
0
0
0.105708
0.015504
0
0
0
0
0.206897
1
0.206897
false
0
0.068966
0
0.310345
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
391ae49f60917163c125c02bec1997e4fe0bdfb8
7,312
py
Python
tests/test_pwm.py
CrazyIvan359/python-periphery
77ae0a3680e58dba299a7af8f7abb346191c0d2e
[ "MIT" ]
433
2015-06-19T12:47:58.000Z
2022-03-23T07:05:06.000Z
tests/test_pwm.py
CrazyIvan359/python-periphery
77ae0a3680e58dba299a7af8f7abb346191c0d2e
[ "MIT" ]
48
2015-08-30T17:55:46.000Z
2021-12-07T15:53:20.000Z
tests/test_pwm.py
CrazyIvan359/python-periphery
77ae0a3680e58dba299a7af8f7abb346191c0d2e
[ "MIT" ]
102
2015-08-27T13:07:09.000Z
2022-03-13T03:19:54.000Z
import os import sys import periphery from .test import ptest, pokay, passert, AssertRaises if sys.version_info[0] == 3: raw_input = input pwm_chip = None pwm_channel = None def test_arguments(): ptest() # Invalid open types with AssertRaises("invalid open types", TypeError): periphery.PW...
35.153846
111
0.655224
1,067
7,312
4.377694
0.148079
0.100193
0.077071
0.096339
0.590024
0.529009
0.494113
0.465425
0.409548
0.348319
0
0.062718
0.214989
7,312
207
112
35.323672
0.751045
0.102708
0
0.48951
0
0
0.300612
0
0
0
0
0
0.342657
1
0.027972
false
0.342657
0.027972
0
0.055944
0.118881
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
391e30020fb3e3898b15c46d82d6d51becec4b18
383
py
Python
hadoop_training/part2/mapperQ2.py
renatorangel/bigdata_courses
9b3459b031e3d4ef81f7e498feb30669233a4353
[ "MIT" ]
null
null
null
hadoop_training/part2/mapperQ2.py
renatorangel/bigdata_courses
9b3459b031e3d4ef81f7e498feb30669233a4353
[ "MIT" ]
null
null
null
hadoop_training/part2/mapperQ2.py
renatorangel/bigdata_courses
9b3459b031e3d4ef81f7e498feb30669233a4353
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import re for line in sys.stdin: regex = '([(\d\.)]+) (-|\w+) (-|\w+) \[(.*?)\] "(.*?)" (\d+) (\d+|-)' match = re.match(regex, line) if match is not None: data = match.groups() if len(data) == 7: ip, first_dash, second_dash, time_date, request_lin...
23.9375
90
0.509138
52
383
3.653846
0.673077
0
0
0
0
0
0
0
0
0
0
0.007092
0.263708
383
15
91
25.533333
0.666667
0.041775
0
0
0
0
0.169399
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
3921d89cfcdf1183629e0bdde58d42c666760d0d
1,806
py
Python
adlibre_dms/apps/dms_plugins/workers/security/groups.py
adlibre/Adlibre-DMS
96ce41b5699e2ea58e3ca560d46d481e954f17a4
[ "BSD-3-Clause" ]
48
2015-02-25T03:20:35.000Z
2022-03-11T09:02:42.000Z
adlibre_dms/apps/dms_plugins/workers/security/groups.py
adlibre/Adlibre-DMS
96ce41b5699e2ea58e3ca560d46d481e954f17a4
[ "BSD-3-Clause" ]
6
2015-01-09T08:30:53.000Z
2016-12-05T15:03:01.000Z
adlibre_dms/apps/dms_plugins/workers/security/groups.py
adlibre/Adlibre-DMS
96ce41b5699e2ea58e3ca560d46d481e954f17a4
[ "BSD-3-Clause" ]
24
2015-01-15T11:41:40.000Z
2022-03-17T20:31:06.000Z
from django.contrib.auth.models import Group from django.db.models import signals from dms_plugins.pluginpoints import BeforeStoragePluginPoint, BeforeRetrievalPluginPoint, BeforeRemovalPluginPoint from dms_plugins.workers import Plugin, PluginError SECURITY_GROUP_NAME = 'security' class GroupSecurityStore(Plugin, ...
34.075472
115
0.743079
209
1,806
6.301435
0.358852
0.138193
0.051633
0.057707
0.310554
0.233106
0.233106
0.233106
0.233106
0.166287
0
0.00404
0.177741
1,806
53
116
34.075472
0.882828
0.060908
0
0.285714
0
0
0.154938
0
0
0
0
0
0
1
0.142857
false
0
0.114286
0.085714
0.742857
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
3927e0725e7996c3b190b38379cdb5be501f6d4b
6,209
py
Python
python/tests/sklearn/preprocessing/one_hot_encoder_test.py
voganrc/mleap
68cbf375968d9f55acb1d673a4c2390602c0274a
[ "Apache-2.0" ]
1,401
2017-01-07T03:34:44.000Z
2022-03-31T22:17:58.000Z
python/tests/sklearn/preprocessing/one_hot_encoder_test.py
voganrc/mleap
68cbf375968d9f55acb1d673a4c2390602c0274a
[ "Apache-2.0" ]
546
2016-12-30T19:10:55.000Z
2022-03-31T16:56:52.000Z
python/tests/sklearn/preprocessing/one_hot_encoder_test.py
voganrc/mleap
68cbf375968d9f55acb1d673a4c2390602c0274a
[ "Apache-2.0" ]
326
2017-01-24T10:35:41.000Z
2022-03-15T15:53:17.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
44.035461
106
0.711709
855
6,209
4.899415
0.211696
0.027214
0.040582
0.066842
0.728575
0.713774
0.680592
0.614466
0.597756
0.572452
0
0.003694
0.171686
6,209
140
107
44.35
0.810811
0.1464
0
0.58427
0
0
0.096646
0.007959
0
0
0
0
0.157303
1
0.11236
false
0
0.078652
0
0.202247
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
3929fabf9bea9e7298828538ea9e0d895cc685f8
3,357
py
Python
src/python/debug.py
dmft-wien2k/dmft-wien2k-v2
83481be27e8a9ff14b9635d6cc1cd9d96f053487
[ "Apache-2.0" ]
7
2018-04-03T06:37:42.000Z
2021-11-08T11:44:06.000Z
src/python/debug.py
dmft-wien2k/dmft-wien2k-v2
83481be27e8a9ff14b9635d6cc1cd9d96f053487
[ "Apache-2.0" ]
2
2016-07-12T21:37:53.000Z
2016-07-12T21:42:01.000Z
src/python/debug.py
dmft-wien2k/dmft-wien2k
83481be27e8a9ff14b9635d6cc1cd9d96f053487
[ "Apache-2.0" ]
3
2016-10-27T20:23:34.000Z
2019-12-13T13:54:11.000Z
#!/usr/bin/env python from types import FileType from inspect import trace from traceback import print_exc from sys import stderr import math # log and floor def print_stacktrace(exception=None, file=stderr, context=10, printshort=True): '''Prints detailed backtrace including local variables in each stack ...
32.592233
138
0.607388
429
3,357
4.685315
0.370629
0.067164
0.043781
0.055721
0.199005
0.199005
0.108458
0.108458
0.060697
0.060697
0
0.00841
0.291629
3,357
102
139
32.911765
0.836838
0.110217
0
0.186441
0
0
0.168269
0
0
0
0
0
0
0
null
null
0
0.084746
null
null
0.389831
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
392ab5d60ceb982f3c2366a456922cfd270287ca
2,708
py
Python
assignment2/part2-pytorch/models/cnn.py
simonanez/deep-learning-cs7643
2ccd3ca336e49abe83ba6516919314db72f9bb8c
[ "MIT" ]
3
2022-01-16T14:46:57.000Z
2022-02-20T22:40:16.000Z
assignment2/part2-pytorch/models/cnn.py
steven-rr/deep-learning-cs7643
2ccd3ca336e49abe83ba6516919314db72f9bb8c
[ "MIT" ]
null
null
null
assignment2/part2-pytorch/models/cnn.py
steven-rr/deep-learning-cs7643
2ccd3ca336e49abe83ba6516919314db72f9bb8c
[ "MIT" ]
6
2021-09-29T11:42:37.000Z
2022-02-02T02:33:51.000Z
import torch import torch.nn as nn class VanillaCNN(nn.Module): def __init__(self): super(VanillaCNN, self).__init__() ############################################################################# # TODO: Initialize the Vanilla CNN # # ...
48.357143
126
0.408419
240
2,708
4.45
0.345833
0.026217
0.018727
0.029963
0
0
0
0
0
0
0
0.023949
0.30613
2,708
56
127
48.357143
0.544439
0.257386
0
0
0
0
0
0
0
0
0
0.017857
0
1
0.071429
false
0
0.071429
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
392da8a96412fc20b217c46575818408c53dafc8
15,767
py
Python
evalml/tests/preprocessing_tests/test_balanced_classification_sampler.py
BlockchainClimateInstitute/price_microservice
11d1cff8965fe1befc997e9da3dc09efceed4579
[ "BSD-3-Clause" ]
null
null
null
evalml/tests/preprocessing_tests/test_balanced_classification_sampler.py
BlockchainClimateInstitute/price_microservice
11d1cff8965fe1befc997e9da3dc09efceed4579
[ "BSD-3-Clause" ]
13
2021-03-04T19:29:09.000Z
2022-03-07T01:00:43.000Z
evalml/tests/preprocessing_tests/test_balanced_classification_splitter.py
RG4421/evalml
33c62abe6d107d1da2f54e9e44a90f18aaf916a9
[ "BSD-3-Clause" ]
null
null
null
import random import pandas as pd import pytest from evalml.preprocessing.data_splitters import BalancedClassificationSampler @pytest.mark.parametrize("ratio,samples,percentage,seed", [(1, 1, 0.2, 1), (3.3, 101, 0.5, 100)]) def test_balanced_classification_init(rat...
41.933511
139
0.64635
2,286
15,767
4.313211
0.095801
0.048682
0.017647
0.032353
0.741278
0.70213
0.642698
0.607404
0.582657
0.553347
0
0.075881
0.213484
15,767
375
140
42.045333
0.719216
0.082134
0
0.549669
0
0.003311
0.043412
0.002008
0
0
0
0
0.231788
1
0.062914
false
0
0.013245
0
0.076159
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
393385482dc97e93a4e4cf9a94b5ce7683091f63
1,283
py
Python
tpdatasrc/tpgamefiles/scr/Spell1064 - Ironthunder Horn.py
dolio/TemplePlus
37446bb3d1fcbf460e611a4fcb2caff167e9ac08
[ "MIT" ]
69
2015-05-05T14:09:25.000Z
2022-02-15T06:13:04.000Z
tpdatasrc/tpgamefiles/scr/Spell1064 - Ironthunder Horn.py
anatoliy-savchak/TemplePlus
50922bb14cc2d7dcf8fceeccf45c3b905c1b512f
[ "MIT" ]
457
2015-05-01T22:07:45.000Z
2022-03-31T02:19:10.000Z
tpdatasrc/tpgamefiles/scr/Spell1064 - Ironthunder Horn.py
anatoliy-savchak/TemplePlus
50922bb14cc2d7dcf8fceeccf45c3b905c1b512f
[ "MIT" ]
25
2016-02-04T21:19:53.000Z
2021-11-15T23:14:51.000Z
from toee import * def OnBeginSpellCast(spell): print "Ironthunder Horn OnBeginSpellCast" print "spell.target_list=", spell.target_list print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level def OnSpellEffect(spell): print "Ironthunder Horn OnSpellEffect" targetsToRemove = [] ...
37.735294
121
0.706157
150
1,283
5.906667
0.426667
0.126411
0.094808
0.112867
0.074492
0.074492
0
0
0
0
0
0.014437
0.190179
1,283
34
122
37.735294
0.838306
0.04053
0
0
0
0
0.195281
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.230769
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
39354538acbae757d6592a08028b6a28a4c0a995
1,282
py
Python
predict.py
Harish4948/Image-Classifier-using-Deep-Learning
f1a1460b500555722b62cbbfefc6c67203b13077
[ "MIT" ]
null
null
null
predict.py
Harish4948/Image-Classifier-using-Deep-Learning
f1a1460b500555722b62cbbfefc6c67203b13077
[ "MIT" ]
null
null
null
predict.py
Harish4948/Image-Classifier-using-Deep-Learning
f1a1460b500555722b62cbbfefc6c67203b13077
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch import optim from torchvision import datasets,transforms,models import numpy as np import json from collections import OrderedDict from PIL import Image import matplotlib.pyplot as plt import seaborn as sb import helper import numpy as np imp...
28.488889
126
0.792512
197
1,282
5.035533
0.380711
0.045363
0.085685
0.030242
0.042339
0
0
0
0
0
0
0.006843
0.088144
1,282
44
127
29.136364
0.841745
0
0
0.125
0
0
0.164715
0.0242
0
0
0
0
0
1
0
false
0
0.46875
0
0.46875
0.09375
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
3936720ca6190332cbe52eecceacb27c0ada9f3e
586
py
Python
tests/v1/id.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
133
2018-07-01T06:08:49.000Z
2022-03-26T15:22:21.000Z
tests/v1/id.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
76
2018-06-28T16:41:57.000Z
2022-03-26T17:23:06.000Z
tests/v1/id.py
tombry/virlutils
e98136b4e88c456828f2d0496c14f851f2627a46
[ "MIT" ]
43
2018-06-27T20:40:52.000Z
2022-02-22T06:16:11.000Z
from . import BaseTest from .mocks.api import MockVIRLServer from click.testing import CliRunner import requests_mock from virl.cli.main import virl class IdTest(BaseTest): def test_virl_id_nosim(self): with requests_mock.mock() as m: # Mock the request to return what we expect from the API. ...
32.555556
69
0.662116
74
586
5.162162
0.635135
0.062827
0
0
0
0
0
0
0
0
0
0.011261
0.242321
586
17
70
34.470588
0.849099
0.093857
0
0
0
0
0.109641
0
0
0
0
0
0.076923
1
0.076923
false
0
0.384615
0
0.538462
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
394377d50b8a0b213de25f7cf6f3777265187f78
1,127
py
Python
plugins/url_expander/komand_url_expander/actions/expand/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/url_expander/komand_url_expander/actions/expand/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/url_expander/komand_url_expander/actions/expand/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "Expand a shortened URL" class Input: FOLLOW = "follow" URL = "url" class Output: URL = "url" class ExpandInput(komand.Input): schema = json.loads(""" { "type": "object", "title": ...
16.573529
57
0.530612
110
1,127
5.218182
0.4
0.055749
0.038328
0.066202
0.432056
0.432056
0.320557
0.320557
0.149826
0.149826
0
0.003764
0.292813
1,127
67
58
16.820896
0.716437
0.032831
0
0.444444
1
0
0.586397
0
0
0
0
0
0
1
0.037037
false
0
0.037037
0
0.277778
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
394d849417cf2885e316b939f7c11b4c32af2395
10,181
py
Python
getresults.py
alex1770/footballpredictions
54d2f1425e9201218e43c1ec27776a22804dee24
[ "MIT" ]
2
2016-04-19T06:05:02.000Z
2018-12-05T22:17:27.000Z
getresults.py
alex1770/footballpredictions
54d2f1425e9201218e43c1ec27776a22804dee24
[ "MIT" ]
null
null
null
getresults.py
alex1770/footballpredictions
54d2f1425e9201218e43c1ec27776a22804dee24
[ "MIT" ]
3
2016-01-03T14:03:07.000Z
2021-11-04T00:04:28.000Z
#!/usr/bin/python import urllib2,csv,sys,datetime,time,re,bs4,string from subprocess import PIPE,Popen def err(s): print >>sys.stderr,datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'),s err("Info: starting getresults.py "+' '.join(sys.argv[1:])) if len(sys.argv)<=1: print >>sys.stderr,"Usage:",sys.argv[0],"...
36.231317
155
0.607504
1,788
10,181
3.443512
0.251119
0.009745
0.018516
0.005685
0.202696
0.159818
0.145201
0.130583
0.123112
0.115641
0
0.039114
0.201454
10,181
280
156
36.360714
0.718204
0.208722
0
0.231441
0
0.004367
0.201048
0.032073
0
0
0
0.003571
0
0
null
null
0.004367
0.008734
null
null
0.017467
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
1a34b34bf93d01223e3b548083bab618ab42a0ef
1,224
py
Python
src/backend/uac-registry/user/serializers.py
guligon90/uac-registry
cb5afe941919c2d9ceffa8d8bf220613b7a20613
[ "MIT" ]
null
null
null
src/backend/uac-registry/user/serializers.py
guligon90/uac-registry
cb5afe941919c2d9ceffa8d8bf220613b7a20613
[ "MIT" ]
null
null
null
src/backend/uac-registry/user/serializers.py
guligon90/uac-registry
cb5afe941919c2d9ceffa8d8bf220613b7a20613
[ "MIT" ]
null
null
null
# Django imports from rest_framework.serializers import ModelSerializer, ReadOnlyField # Project imports from address.serializers import AddressSerializer from client.serializers import ClientSerializer from user_address.models import UserAddress from .models import User class UserSerializer(ModelSerializer): ad...
27.818182
84
0.626634
116
1,224
6.456897
0.5
0.068091
0.032043
0
0
0
0
0
0
0
0
0
0.286765
1,224
43
85
28.465116
0.857961
0.02451
0
0
0
0
0.073048
0
0
0
0
0
0
1
0.030303
false
0.060606
0.151515
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1a356040f237813893eebc7488a2e030e61358bd
533
py
Python
main.py
VojtaKai/repo-try-out
003d6cdf8237301426829e6f41492ed850906803
[ "MIT" ]
null
null
null
main.py
VojtaKai/repo-try-out
003d6cdf8237301426829e6f41492ed850906803
[ "MIT" ]
null
null
null
main.py
VojtaKai/repo-try-out
003d6cdf8237301426829e6f41492ed850906803
[ "MIT" ]
null
null
null
import os print('Hello World!') print('I just entered the branch \'develop\'') x = 1 if -1 != x: print('Neni rovno!!!') print('Nachazim se v novem developu, ten stary uz jsem smazal!') print('Neco jsem dodelat, ale jeste nepridal') folder = 'C:/Users/Vojta/Documents/git/repo-try-out' files_dirs = os.listdir(...
22.208333
64
0.667917
87
533
4.034483
0.655172
0.076923
0
0
0
0
0
0
0
0
0
0.004566
0.178236
533
24
65
22.208333
0.796804
0
0
0
0
0
0.417603
0.076779
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
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
1a3aaffa55167ef754d8f35549b385a02bc3a1e5
1,815
py
Python
gen/build_deploy/powershell.py
KostiantynOleksiienko/dcos
7fb35e445bbfa4135f9addf36cb9453c0077bff6
[ "Apache-2.0" ]
null
null
null
gen/build_deploy/powershell.py
KostiantynOleksiienko/dcos
7fb35e445bbfa4135f9addf36cb9453c0077bff6
[ "Apache-2.0" ]
null
null
null
gen/build_deploy/powershell.py
KostiantynOleksiienko/dcos
7fb35e445bbfa4135f9addf36cb9453c0077bff6
[ "Apache-2.0" ]
null
null
null
""" Generates a powershell script to install Windows agent - dcos_install.ps1 """ import os import os.path import gen.build_deploy.util as util import gen.template import gen.util import pkgpanda import pkgpanda.util def generate(gen_out, output_dir): print("Generating Powershell configuration files for DC/OS"...
36.3
88
0.709642
237
1,815
5.156118
0.345992
0.03928
0.061375
0.036825
0.198036
0.047463
0
0
0
0
0
0.022373
0.187328
1,815
49
89
37.040816
0.806102
0.098072
0
0
1
0.029412
0.206281
0.07266
0
0
0
0
0
1
0.058824
false
0
0.205882
0
0.264706
0.029412
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
1a3db0d0d2ffee1f6ff8389f1ef924c449f07dea
693
py
Python
scripts/parseLog.py
Kandongwe/RunestoneServer
f555868521b3717beec0ec42dbcbcb443c64686c
[ "MIT" ]
344
2015-10-15T20:03:57.000Z
2022-03-25T18:37:42.000Z
scripts/parseLog.py
Kandongwe/RunestoneServer
f555868521b3717beec0ec42dbcbcb443c64686c
[ "MIT" ]
1,170
2015-10-15T08:17:03.000Z
2022-03-28T14:32:47.000Z
scripts/parseLog.py
Kandongwe/RunestoneServer
f555868521b3717beec0ec42dbcbcb443c64686c
[ "MIT" ]
278
2015-10-12T23:44:38.000Z
2022-03-19T09:22:47.000Z
#!/usr/bin/env python3 # {address space usage: 359067648 bytes/342MB} {rss usage: 107823104 bytes/102MB} [pid: 11266|app: 0|req: 99163/885977] 64.208.17.170 () {48 vars in 1249 bytes} [Thu Feb 15 16:28:43 2018] GET /runestone/ajax/getnumonline => generated 16 bytes in 2553 msecs (HTTP/1.1 200) 8 headers in 381 bytes (...
46.2
317
0.646465
127
693
3.527559
0.708661
0.013393
0.013393
0
0
0
0
0
0
0
0
0.151414
0.132756
693
14
318
49.5
0.59401
0.486291
0
0
0
0.142857
0.439093
0.410765
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1a3e0bb7efd90e9847f7990b89e890dd00c06412
2,979
py
Python
im_v2/common/data/transform/test/test_convert_csv_to_pq.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
5
2021-08-10T23:16:44.000Z
2022-03-17T17:27:00.000Z
im_v2/common/data/transform/test/test_convert_csv_to_pq.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
330
2021-06-10T17:28:22.000Z
2022-03-31T00:55:48.000Z
im_v2/common/data/transform/test/test_convert_csv_to_pq.py
alphamatic/amp
5018137097159415c10eaa659a2e0de8c4e403d4
[ "BSD-3-Clause" ]
6
2021-06-10T17:20:32.000Z
2022-03-28T08:08:03.000Z
import os import pandas as pd import helpers.hgit as hgit import helpers.hio as hio import helpers.hsystem as hsysinte import helpers.hunit_test as hunitest class TestCsvToPq(hunitest.TestCase): def test_csv_to_pq_script(self) -> None: """ Test that generated parquet dataset is correct. ...
37.708861
87
0.557234
381
2,979
4.15748
0.385827
0.035354
0.030303
0.037879
0.265152
0.222222
0.222222
0.222222
0.222222
0.185606
0
0.21186
0.298087
2,979
78
88
38.192308
0.545672
0.040282
0
0.215385
0
0
0.210957
0.0619
0
0
0
0
0
1
0.030769
false
0
0.092308
0
0.138462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1a406c981d5719d888eb2034a60f1bc8801c6824
364
py
Python
list_IonHeight.py
TowardtheStars/DysonSphereProjectSeedData
7a33c6c5f178cdca63e998b885fcd921b5376974
[ "MIT" ]
1
2021-08-23T14:44:55.000Z
2021-08-23T14:44:55.000Z
list_IonHeight.py
TowardtheStars/DysonSphereProjectSeedData
7a33c6c5f178cdca63e998b885fcd921b5376974
[ "MIT" ]
null
null
null
list_IonHeight.py
TowardtheStars/DysonSphereProjectSeedData
7a33c6c5f178cdca63e998b885fcd921b5376974
[ "MIT" ]
1
2021-08-23T14:44:58.000Z
2021-08-23T14:44:58.000Z
import json from os.path import join data = join('data', 'ThemeProtoSet.json') with open(data, encoding='UTF-8') as file: data = json.load(file) data = data['dataArray']['Array']['data'] theme_ionheight = {} for theme in data: theme_ionheight[theme['DisplayName']] = theme['IonHeight'] print(json.dumps(theme_...
22.75
64
0.708791
51
364
4.980392
0.588235
0.220472
0.141732
0
0
0
0
0
0
0
0
0.006309
0.129121
364
15
65
24.266667
0.794953
0
0
0
0
0
0.179558
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0.1
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
1a448d808be139254e3a743bc4f3f1ea79902398
1,759
py
Python
tests/test_tile.py
amosborne/dorfperfekt
b030141e8bed35c89b48c81776a1b6d52ac7c5c2
[ "MIT" ]
2
2022-03-28T13:39:00.000Z
2022-03-29T02:16:05.000Z
tests/test_tile.py
amosborne/dorfperfekt
b030141e8bed35c89b48c81776a1b6d52ac7c5c2
[ "MIT" ]
null
null
null
tests/test_tile.py
amosborne/dorfperfekt
b030141e8bed35c89b48c81776a1b6d52ac7c5c2
[ "MIT" ]
1
2022-03-31T11:06:18.000Z
2022-03-31T11:06:18.000Z
import pytest from dorfperfekt.tile import ( InvalidTileDefinitionError, Terrain, string2tile, tile2string, validate_terrains, validate_tiles, ) def test_tile(): tile = string2tile("frdwtg") assert tile2string(tile) == "FRDWTG" assert tile2string(tile._replace(ori=0)) == "DWTGFR" ...
30.327586
81
0.706083
201
1,759
6.074627
0.278607
0.104832
0.108108
0.142506
0.453726
0.316134
0.282555
0.120393
0
0
0
0.018531
0.171688
1,759
57
82
30.859649
0.819492
0
0
0.047619
0
0
0.039795
0
0
0
0
0
0.428571
1
0.142857
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1a44b80bf8c87d17613b239fc4d7b36acb660985
360
py
Python
src/numpy/ndcopy.py
mumupy/pythonlearn
5be03d156f11af2467a6052a476de4b706f7d53a
[ "Apache-2.0" ]
9
2019-10-25T03:50:02.000Z
2022-03-22T13:22:11.000Z
src/numpy/ndcopy.py
mumupy/pythonlearn
5be03d156f11af2467a6052a476de4b706f7d53a
[ "Apache-2.0" ]
11
2019-12-11T14:47:54.000Z
2022-02-10T00:23:57.000Z
src/numpy/ndcopy.py
mumupy/pythonlearn
5be03d156f11af2467a6052a476de4b706f7d53a
[ "Apache-2.0" ]
1
2021-04-20T07:30:42.000Z
2021-04-20T07:30:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/9/21 14:06 # @Author : ganliang # @File : ndcopy.py # @Desc : 数据复制 import numpy as np a = np.arange(10) b = np.copy(a) print ("修改之前:") print (a) print (id(a)) print (b) print (id(b)) a[0] = 100 print ("修改之后:") print (a) print (id(a)) print (b) pr...
13.846154
28
0.566667
66
360
3.090909
0.590909
0.147059
0.107843
0.127451
0.27451
0.27451
0.27451
0.27451
0.27451
0.27451
0
0.06993
0.205556
360
26
29
13.846154
0.643357
0.35
0
0.5
0
0
0.043668
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0.6875
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
1a45f48dbb7c84568d6c841de7696db90e433929
4,455
py
Python
{{cookiecutter.repo_name}}/setup.py
srswinde/cookiecutter-tornado
045583f1aa149668fe721c6f1c744dc58a2a30f7
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/setup.py
srswinde/cookiecutter-tornado
045583f1aa149668fe721c6f1c744dc58a2a30f7
[ "MIT" ]
null
null
null
{{cookiecutter.repo_name}}/setup.py
srswinde/cookiecutter-tornado
045583f1aa149668fe721c6f1c744dc58a2a30f7
[ "MIT" ]
null
null
null
{%- set python_versions = cookiecutter.python_versions.split(",") -%} #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import distutils import subprocess from os.path import dirname, join from setuptools import setup, find_packages {%- if cookiecutter.use_i18n == "Yes" %} from s...
33.246269
103
0.655892
504
4,455
5.650794
0.394841
0.03441
0.035815
0.022121
0.084972
0.020365
0
0
0
0
0
0.005076
0.20404
4,455
133
104
33.496241
0.798082
0
0
0.144444
0
0
0.318709
0.071044
0
0
0
0
0
0
null
null
0.022222
0.077778
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
1a4e4d164de5c0cbc58460ec1391dc59f894aac2
859
py
Python
chapter05/demo_5.3.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
1
2019-02-08T03:14:17.000Z
2019-02-08T03:14:17.000Z
chapter05/demo_5.3.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
chapter05/demo_5.3.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 # -*- coding:utf-8 -*- # Author: NetworkRanger # Date: 2019/1/28 2:40 PM from email.header import Header from email.mime.text import MIMEText from email.utils import parseaddr, formataddr import smtplib def _format_addr(s): name, addr = parseaddr(s) return formataddr((Header(name, 'utf-...
24.542857
64
0.701979
127
859
4.622047
0.519685
0.027257
0.034072
0
0
0
0
0
0
0
0
0.039894
0.124563
859
34
65
25.264706
0.740691
0.14901
0
0
0
0
0.180305
0.033287
0
0
0
0
0
1
0.052632
false
0.105263
0.210526
0
0.315789
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
1a5728f51031d36f1fbaa1a753bed2faac1d3f19
609
py
Python
Fracktory3-3.0_b11/plugins/GCodeWriter/__init__.py
ganeshmev/Fracktory3-3.0_b11_KLE
16066e6993b96a880aa1a2f044a27930cbd0787d
[ "MIT" ]
1
2018-10-19T10:08:45.000Z
2018-10-19T10:08:45.000Z
misc/zip/Cura-master/plugins/GCodeWriter/__init__.py
criscola/G-Gen
293d4f46cb40d7917a10a95921040a14a086efc1
[ "MIT" ]
null
null
null
misc/zip/Cura-master/plugins/GCodeWriter/__init__.py
criscola/G-Gen
293d4f46cb40d7917a10a95921040a14a086efc1
[ "MIT" ]
null
null
null
# Copyright (c) 2015 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from . import GCodeWriter from UM.i18n import i18nCatalog catalog = i18nCatalog("cura") def getMetaData(): return { "mesh_writer": { "output": [{ "extension": "gcode", ...
24.36
79
0.579639
62
609
5.645161
0.758065
0.057143
0.091429
0
0
0
0
0
0
0
0
0.030233
0.293924
609
24
80
25.375
0.783721
0.149425
0
0
0
0
0.209709
0
0
0
0
0
0
1
0.125
false
0
0.125
0.125
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1a5b39668ca3f50c17aaf6f12704825e2be2a824
905
py
Python
psycopg2_extension/patch_database_creation.py
druids/django-psycopg2-extension
e5ddc26a9260d358fe93df337ce66d0c0c9b30db
[ "MIT" ]
4
2019-10-07T12:40:28.000Z
2020-07-31T03:11:54.000Z
psycopg2_extension/patch_database_creation.py
druids/django-psycopg2-extension
e5ddc26a9260d358fe93df337ce66d0c0c9b30db
[ "MIT" ]
null
null
null
psycopg2_extension/patch_database_creation.py
druids/django-psycopg2-extension
e5ddc26a9260d358fe93df337ce66d0c0c9b30db
[ "MIT" ]
1
2020-07-31T03:11:58.000Z
2020-07-31T03:11:58.000Z
from django.conf import settings from django.db.backends.postgresql.creation import DatabaseCreation from psycopg2_extension.utils import init_database def _patch_execute_create_test_db(self, cursor, parameters, keepdb=False): if keepdb and self._database_exists(cursor, parameters['dbname']): return ...
37.708333
90
0.774586
119
905
5.529412
0.378151
0.118541
0.155015
0.173252
0.407295
0.205167
0.135258
0.135258
0.135258
0
0
0.003812
0.130387
905
23
91
39.347826
0.832274
0
0
0
0
0
0.109392
0.043094
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.333333
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
1a5ce229d0485d4ab276f5e5a66bea950c88c474
497
py
Python
agendamentos/endpoints/exceptions.py
ceb10n/agendamentos
91e1044cad825db763474cb47935a0c42509ab32
[ "MIT" ]
1
2019-02-20T00:37:14.000Z
2019-02-20T00:37:14.000Z
agendamentos/endpoints/exceptions.py
ceb10n/agendamentos
91e1044cad825db763474cb47935a0c42509ab32
[ "MIT" ]
null
null
null
agendamentos/endpoints/exceptions.py
ceb10n/agendamentos
91e1044cad825db763474cb47935a0c42509ab32
[ "MIT" ]
null
null
null
class BaseRequestError(Exception): def __init__(self, *args, **kwargs): self.errors = [] self.code = 400 if 'code' in kwargs: self.code = kwargs['code'] def add_error(self, err): self.info.append(err) def set_errors(self, errors): self.errors = errors ...
23.666667
62
0.61167
54
497
5.37037
0.388889
0.103448
0.075862
0.103448
0.144828
0
0
0
0
0
0
0.016173
0.253521
497
20
63
24.85
0.765499
0.038229
0
0.153846
0
0
0.016949
0
0
0
0
0
0
1
0.307692
false
0
0
0
0.461538
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
1a5f37dead9747a34b1ac96bbca1d06d0a427c0b
221
py
Python
app/__init__.py
luisds95/genreit
0782631ae4a61f98812c14a316a9559c8b3490f5
[ "MIT" ]
null
null
null
app/__init__.py
luisds95/genreit
0782631ae4a61f98812c14a316a9559c8b3490f5
[ "MIT" ]
null
null
null
app/__init__.py
luisds95/genreit
0782631ae4a61f98812c14a316a9559c8b3490f5
[ "MIT" ]
null
null
null
from flask import Flask from model import Model from app.config import Config app = Flask(__name__) app.config.from_object(Config) model = Model('models/LogisticRegressionCV.pickle') model.load() from app import routes
20.090909
51
0.800905
32
221
5.375
0.40625
0.081395
0
0
0
0
0
0
0
0
0
0
0.117647
221
11
52
20.090909
0.882051
0
0
0
0
0
0.153153
0.153153
0
0
0
0
0
1
0
false
0
0.5
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
1a608a1daa2b76641b39ec970d66d5ed054c93fd
3,313
py
Python
atcodertools/tools/judgetype_setter.py
sei40kr/atcoder-tools
693427a14b296584eab6e20d8f5326d61486a535
[ "MIT" ]
3
2019-12-24T00:53:19.000Z
2020-02-10T08:46:25.000Z
atcodertools/tools/judgetype_setter.py
sei40kr/atcoder-tools
693427a14b296584eab6e20d8f5326d61486a535
[ "MIT" ]
null
null
null
atcodertools/tools/judgetype_setter.py
sei40kr/atcoder-tools
693427a14b296584eab6e20d8f5326d61486a535
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import os import shutil from atcodertools.common.judgetype import ErrorType, NormalJudge, DecimalJudge, MultiSolutionJudge, InteractiveJudge, JudgeType, NoJudgeTypeException, DEFAULT_EPS from atcodertools.tools.models.metadata import Metadata from atcodertools.common.language import ...
40.901235
162
0.616963
367
3,313
5.386921
0.283379
0.054628
0.054628
0.074355
0.354072
0.29742
0.235711
0.155792
0.155792
0.155792
0
0.001682
0.282222
3,313
80
163
41.4125
0.829689
0.011168
0
0.238806
0
0
0.116371
0
0
0
0
0.0125
0
1
0.014925
false
0
0.104478
0
0.134328
0.074627
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
1a656c7c3bd7520b07f82383bef48e36233927c6
1,356
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/color_subtable.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/color_subtable.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/color_subtable.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
'''OpenGL extension EXT.color_subtable Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_EXT_color_subtable' _DEPRECATED = False glColorSubTable...
37.666667
127
0.792773
154
1,356
6.87013
0.396104
0.049149
0.068053
0.041588
0.183365
0.183365
0.183365
0.183365
0.183365
0.183365
0
0
0.075221
1,356
35
128
38.742857
0.8437
0.123894
0
0.230769
1
0.076923
0.278061
0.097789
0
0
0
0
0
1
0.038462
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1a717c0b4fcb7574471c697544395ed09c5d2f80
4,551
py
Python
cloudmesh_cmd3/plugins/cm_shell_inventory.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
cloudmesh_cmd3/plugins/cm_shell_inventory.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
cloudmesh_cmd3/plugins/cm_shell_inventory.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from cmd3.shell import command from pprint import pprint from cloudmesh.inventory import Inventory from cloudmesh_base.logger import LOGGER log = LOGGER(__file__) class cm_shell_inventory: """opt_example class""" inventory_connection = False inventory_name = None ...
29.36129
78
0.522523
421
4,551
5.551069
0.249406
0.066752
0.043646
0.017116
0.209671
0.179718
0.060762
0
0
0
0
0.006048
0.382334
4,551
154
79
29.551948
0.825329
0.029224
0
0.359551
0
0
0.136052
0.006252
0
0
0
0.006494
0
0
null
null
0.011236
0.05618
null
null
0.247191
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
1a77fa916095db244b758a25ee1203fad8323757
722
py
Python
cursos/admin.py
ShadowsS01/Cursos-Django
40ca002d7de34d2d4e192819801e99b62938f1f2
[ "MIT" ]
null
null
null
cursos/admin.py
ShadowsS01/Cursos-Django
40ca002d7de34d2d4e192819801e99b62938f1f2
[ "MIT" ]
null
null
null
cursos/admin.py
ShadowsS01/Cursos-Django
40ca002d7de34d2d4e192819801e99b62938f1f2
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Cursos, Aulas, Comentarios, NotasAulas from django.contrib.admin.decorators import display @admin.register(Cursos) class CursosAdm(admin.ModelAdmin): search_fields = ['nome',] @admin.register(Aulas) class AulasAdm(admin.ModelAdmin): list_display = ('nome', ...
32.818182
60
0.735457
82
722
6.268293
0.353659
0.101167
0.099222
0.151751
0.264591
0.136187
0.136187
0
0
0
0
0
0.121884
722
22
61
32.818182
0.810726
0
0
0.111111
0
0
0.157676
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.777778
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
1a7f872736e2f0855dd4cfca803729112e1be3b4
8,110
py
Python
tests/test_model_type.py
Attsun1031/schematics
90dee53fd1d5c29f2c947bec6f5ffe5f74305ab1
[ "BSD-3-Clause" ]
1,430
2015-01-01T19:22:19.000Z
2022-03-29T11:34:35.000Z
tests/test_model_type.py
Attsun1031/schematics
90dee53fd1d5c29f2c947bec6f5ffe5f74305ab1
[ "BSD-3-Clause" ]
360
2015-01-02T05:27:34.000Z
2022-03-18T14:08:27.000Z
tests/test_model_type.py
Attsun1031/schematics
90dee53fd1d5c29f2c947bec6f5ffe5f74305ab1
[ "BSD-3-Clause" ]
222
2015-01-07T20:07:02.000Z
2022-03-22T16:12:47.000Z
import pytest from schematics.models import Model from schematics.types import IntType, StringType from schematics.types.compound import ModelType, ListType from schematics.exceptions import DataError from schematics.util import ImportStringError def test_simple_embedded_models(): class Location(Model): ...
25.746032
79
0.636128
944
8,110
5.308263
0.195975
0.023748
0.012572
0.012971
0.360407
0.334863
0.314508
0.297545
0.242866
0.21353
0
0.008674
0.246609
8,110
314
80
25.828025
0.811457
0.031689
0
0.397196
0
0
0.059258
0.004715
0
0
0
0.003185
0.149533
1
0.102804
false
0.014019
0.051402
0
0.546729
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
1a810fe388f8c635a631118b335b9d66d3f15af7
5,354
py
Python
vavs_project/addata/media.py
valuesandvalue/valuesandvalue
7d7602d0b620b38dcb761c63e74077a00bae891f
[ "MIT" ]
1
2016-03-17T10:00:28.000Z
2016-03-17T10:00:28.000Z
vavs_project/addata/media.py
valuesandvalue/valuesandvalue
7d7602d0b620b38dcb761c63e74077a00bae891f
[ "MIT" ]
null
null
null
vavs_project/addata/media.py
valuesandvalue/valuesandvalue
7d7602d0b620b38dcb761c63e74077a00bae891f
[ "MIT" ]
null
null
null
# addata.media # PYTHON import os from time import time import urllib from urlparse import urlparse # DJANGO from django.conf import settings # PILLOW from PIL import Image from .models import ( AdRecord, FBAdImage ) _IMAGE_TYPES = [ 'image/gif', 'image/jpeg', 'image/png', ] _MEDIA_TYPES = [...
27.597938
79
0.618229
625
5,354
5.104
0.1904
0.067712
0.028213
0.050784
0.342633
0.285266
0.20721
0.178997
0.178997
0.178997
0
0.004685
0.282406
5,354
193
80
27.740933
0.825612
0.00635
0
0.277778
0
0
0.050988
0.010913
0
0
0
0
0
0
null
null
0
0.04321
null
null
0.024691
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
1a840b3a6fffe461e889ad0d281fe61931133a1e
6,046
py
Python
src/smartApp/smart/scripts/build.py
NucleoHIS/Medical
1c530925e01ea4c7eada105cbe4b72580163723e
[ "Apache-2.0" ]
9
2016-01-25T17:18:19.000Z
2021-03-26T17:37:00.000Z
src/smartApp/smart/scripts/build.py
NucleoHIS/Medical
1c530925e01ea4c7eada105cbe4b72580163723e
[ "Apache-2.0" ]
null
null
null
src/smartApp/smart/scripts/build.py
NucleoHIS/Medical
1c530925e01ea4c7eada105cbe4b72580163723e
[ "Apache-2.0" ]
14
2015-01-10T09:11:23.000Z
2021-09-28T10:31:50.000Z
import re from smart_client.common import rdf_ontology X_MAP = [("record_id","_this.record.id"), ("user_id","_this.user.id"), ("smart_app_id","_this.manifest.id")] FORMATS = {"Alert": None, "User": None, "UserPreferences": None, "AppManifest": "JSON", "Co...
32.858696
176
0.532584
726
6,046
4.296143
0.221763
0.020519
0.040398
0.05194
0.175697
0.146842
0.101956
0.076948
0.063482
0.035268
0
0.002079
0.283824
6,046
184
177
32.858696
0.718245
0.005458
0
0.111111
0
0.020833
0.375915
0.119594
0
0
0
0
0
0
null
null
0
0.013889
null
null
0.048611
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
1a877c0d36cb130b54d9df3c065a76e308977a80
363
py
Python
api/resources/__init__.py
wopost/opencmdb
e21f4a5cdf1079a29a30a2a4eb8cca0c17b50e26
[ "Apache-2.0" ]
2
2021-06-27T13:59:34.000Z
2022-03-26T14:56:58.000Z
api/resources/__init__.py
wopost/opencmdb
e21f4a5cdf1079a29a30a2a4eb8cca0c17b50e26
[ "Apache-2.0" ]
null
null
null
api/resources/__init__.py
wopost/opencmdb
e21f4a5cdf1079a29a30a2a4eb8cca0c17b50e26
[ "Apache-2.0" ]
1
2021-06-27T16:44:00.000Z
2021-06-27T16:44:00.000Z
from flask import Blueprint from flask_restful import Api from api.resources.demo import DemoResource from api.resources.login import LoginResource api_bp_v1 = Blueprint('bp_v1', __name__) api_v1 = Api(api_bp_v1, '/v1') api_v1.add_resource(DemoResource, '/demo') api_v1.add_resource(LoginResource, '/login') BLUEPRIN...
22.6875
45
0.785124
53
363
4.981132
0.339623
0.060606
0.079545
0.121212
0
0
0
0
0
0
0
0.024691
0.107438
363
15
46
24.2
0.790123
0
0
0
0
0
0.07989
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
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
1a8e874b7c511b055d76c6fbeec99e2dd4c67470
586
py
Python
airmozilla/comments/forms.py
RAMilewski/airmozilla
70d52295294fd319e60b046bf75baf971cd00f98
[ "BSD-3-Clause" ]
115
2015-01-06T18:45:39.000Z
2022-02-07T10:56:49.000Z
airmozilla/comments/forms.py
april/airmozilla
ee357f5396cdcb50147c72ff1e81a610f9cb292c
[ "BSD-3-Clause" ]
321
2015-01-02T15:19:25.000Z
2018-07-05T14:58:50.000Z
airmozilla/comments/forms.py
Acidburn0zzz/airmozilla
7b03af6d6efe9af00a6070f5327e10fb755c3766
[ "BSD-3-Clause" ]
101
2015-01-13T17:59:15.000Z
2020-12-15T02:58:38.000Z
from django import forms from airmozilla.base.forms import BaseForm from airmozilla.comments.models import Comment class CommentForm(BaseForm): name = forms.CharField(required=False) comment = forms.CharField(widget=forms.Textarea) reply_to = forms.IntegerField(required=False) def clean_reply_to(se...
27.904762
63
0.677474
67
586
5.835821
0.567164
0.071611
0
0
0
0
0
0
0
0
0
0
0.242321
586
20
64
29.3
0.880631
0
0
0
0
0
0.040956
0
0
0
0
0
0
1
0.066667
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
1a91be7428f9d8eb395e886e6971ba6391a81c97
292
py
Python
build.py
sergei-dyshel/vscode-cquery
106f2e6c854cd69c2892c80e418784b02d1002c7
[ "MIT" ]
null
null
null
build.py
sergei-dyshel/vscode-cquery
106f2e6c854cd69c2892c80e418784b02d1002c7
[ "MIT" ]
null
null
null
build.py
sergei-dyshel/vscode-cquery
106f2e6c854cd69c2892c80e418784b02d1002c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import subprocess import sys from os.path import join if __name__ == "__main__": OUT = 'out/cquery.vsix' VSCE = 'vsce.cmd' if sys.platform == 'win32' else 'vsce' VSCE = join('node_modules', '.bin', VSCE) sys.exit(subprocess.call([VSCE, 'package', '-o', OUT]))
24.333333
58
0.664384
43
292
4.302326
0.651163
0.086486
0
0
0
0
0
0
0
0
0
0.008097
0.15411
292
11
59
26.545455
0.740891
0.068493
0
0
0
0
0.239852
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
1a942159fe061c06b48ac9b079806bca2f3609be
324
py
Python
messaging/rapidpro_client.py
ChrisMarsh82/iogt
8141421a79b73bd038880a3be92fa6809adced13
[ "BSD-2-Clause" ]
20
2021-04-29T12:36:25.000Z
2022-03-27T12:17:41.000Z
messaging/rapidpro_client.py
ChrisMarsh82/iogt
8141421a79b73bd038880a3be92fa6809adced13
[ "BSD-2-Clause" ]
892
2021-02-02T13:56:06.000Z
2022-03-31T11:25:44.000Z
messaging/rapidpro_client.py
ChrisMarsh82/iogt
8141421a79b73bd038880a3be92fa6809adced13
[ "BSD-2-Clause" ]
28
2021-02-19T19:28:37.000Z
2022-03-11T11:46:00.000Z
import requests class RapidProClient: def __init__(self, thread): self.thread = thread def send_reply(self, text): response = requests.get(url=self.thread.chatbot.request_url, params={ 'from': self.thread.uuid, 'text': text, }, timeout=10) return respo...
21.6
77
0.604938
36
324
5.277778
0.611111
0.210526
0
0
0
0
0
0
0
0
0
0.008658
0.287037
324
14
78
23.142857
0.813853
0
0
0
0
0
0.024691
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.5
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
1a9c8487e171a4d1f07d70a3144f79d8028fef85
4,957
py
Python
code/post_run.d/02_process.py
serl/hls-bba-testbed
ca7194837b1b1a1cbe9afb2f3bc246cbcf094afb
[ "MIT" ]
3
2018-02-06T02:45:27.000Z
2018-03-22T03:58:23.000Z
code/post_run.d/02_process.py
serl/hls-bba-testbed
ca7194837b1b1a1cbe9afb2f3bc246cbcf094afb
[ "MIT" ]
null
null
null
code/post_run.d/02_process.py
serl/hls-bba-testbed
ca7194837b1b1a1cbe9afb2f3bc246cbcf094afb
[ "MIT" ]
null
null
null
import sys, os, os.path from getopt import getopt, GetoptError class PlainObject(object): def __repr__(self): return self.__dict__.__repr__() class Packet(PlainObject): def __init__(self, line): (self.time, self.stream, self.src_ip, self.src_port, self.dst_ip, self.dst_port, self.len, self.seq, self.ack) = line...
32.398693
173
0.678031
760
4,957
4.178947
0.152632
0.059824
0.039673
0.020466
0.457809
0.421914
0.367758
0.328715
0.313287
0.313287
0
0.006242
0.192052
4,957
152
174
32.611842
0.786767
0
0
0.37037
0
0.007407
0.067783
0.006657
0
0
0
0
0
0
null
null
0
0.014815
null
null
0.02963
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
1a9f9b5b38761f51db71b8d13508e87cd54efe1a
988
py
Python
frag_gt/frag_gt/src/stereo.py
JoshuaMeyers/guacamol_baselines
44d24c53f3acf9266eb2fb06dbff909836549291
[ "MIT" ]
null
null
null
frag_gt/frag_gt/src/stereo.py
JoshuaMeyers/guacamol_baselines
44d24c53f3acf9266eb2fb06dbff909836549291
[ "MIT" ]
1
2022-03-09T10:56:36.000Z
2022-03-09T11:52:09.000Z
guacamol_baselines/frag_gt/frag_gt/src/stereo.py
GT4SD/guacamol_baselines
1dbaa68b8972778a13a8372befeff9df207654a9
[ "MIT" ]
null
null
null
from rdkit import Chem from rdkit.Chem.EnumerateStereoisomers import EnumerateStereoisomers, StereoEnumerationOptions from rdkit.Chem.rdchem import StereoSpecified from typing import List STEREO_OPTIONS = StereoEnumerationOptions(tryEmbedding=True, unique=True, maxIsomers=8, rand=None) # todo explore fragment on chir...
32.933333
98
0.738866
117
988
6.153846
0.495727
0.055556
0.054167
0.077778
0.080556
0
0
0
0
0
0
0.01107
0.177126
988
29
99
34.068966
0.874539
0.090081
0
0.181818
0
0
0
0
0
0
0
0.034483
0
1
0.090909
false
0
0.181818
0
0.454545
0.090909
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
1aa9bc5c70647efde55cd940b59fe4ae6269ed74
3,915
py
Python
pogo/util/config.py
tonyrein/boing
af1c04bc3028340ea55362d911d487ab8bdbcb77
[ "MIT" ]
null
null
null
pogo/util/config.py
tonyrein/boing
af1c04bc3028340ea55362d911d487ab8bdbcb77
[ "MIT" ]
2
2015-01-20T04:53:55.000Z
2015-01-20T04:54:56.000Z
pogo/util/config.py
tonyrein/boing
af1c04bc3028340ea55362d911d487ab8bdbcb77
[ "MIT" ]
null
null
null
import ConfigParser import os import os.path import sys class StretchConfig(object): def __init__(self): def_top_dir = '/opt/honssh' def_db_dir = '/usr/local/share/pogo/db' config_file_search_path = [ '/etc/pogo.cfg', '/etc/default/pogo.cfg', '/etc/pogo/pogo.cfg', ...
41.210526
99
0.447765
365
3,915
4.564384
0.315068
0.086435
0.032413
0.036014
0.156062
0.109244
0.088836
0.063625
0
0
0
0.003655
0.440868
3,915
94
100
41.648936
0.757423
0.052874
0
0.027778
0
0
0.19238
0.026479
0
0
0
0
0
0
null
null
0.013889
0.055556
null
null
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
1
0
0
0
0
0
0
0
0
1
1aac0b90191a74ce85b6548be8525dfc1edc7092
192
py
Python
tests/settings.py
willseward/django-versionfield3
4ae365fb42f38a02c77d317cba3fef22806f2b24
[ "Unlicense" ]
null
null
null
tests/settings.py
willseward/django-versionfield3
4ae365fb42f38a02c77d317cba3fef22806f2b24
[ "Unlicense" ]
null
null
null
tests/settings.py
willseward/django-versionfield3
4ae365fb42f38a02c77d317cba3fef22806f2b24
[ "Unlicense" ]
null
null
null
INSTALLED_APPS = ( "testapp", ) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', } } SECRET_KEY = "django_tests_secret_key"
14.769231
47
0.567708
18
192
5.777778
0.833333
0.173077
0
0
0
0
0
0
0
0
0
0.006993
0.255208
192
12
48
16
0.72028
0
0
0
0
0
0.421875
0.255208
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ab53a8f55710c8bc88c53bcfcf12741329242ee
12,632
py
Python
walky/serializer.py
tallynerdy/walky
fab2dbf6471f1f8cc50edc6467d8d7dd1d9e12d0
[ "MIT" ]
null
null
null
walky/serializer.py
tallynerdy/walky
fab2dbf6471f1f8cc50edc6467d8d7dd1d9e12d0
[ "MIT" ]
null
null
null
walky/serializer.py
tallynerdy/walky
fab2dbf6471f1f8cc50edc6467d8d7dd1d9e12d0
[ "MIT" ]
null
null
null
import json import pytz import pytz.reference import tzlocal from constants import * from walky.registry import * from walky.objects import * from utils import * class NormalizedData(object): def __init__(self,data=None): self.data = data def struct_normalize(self,serializer,connection): retu...
37.707463
93
0.604813
1,344
12,632
5.505952
0.203869
0.060811
0.036486
0.024324
0.293514
0.20473
0.116486
0.103243
0.103243
0.082432
0
0.001772
0.329956
12,632
334
94
37.820359
0.872519
0.180969
0
0.159341
0
0
0.014046
0
0
0
0
0.011976
0
1
0.087912
false
0
0.043956
0.005495
0.395604
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
1ab7645352bf9f8d82e4ab23cbac0fedfc7a4b54
965
py
Python
setup.py
adaptivelab/datasift-python
3cd530866f6929f3f20f0dca3459518df86b6ff9
[ "MIT" ]
null
null
null
setup.py
adaptivelab/datasift-python
3cd530866f6929f3f20f0dca3459518df86b6ff9
[ "MIT" ]
null
null
null
setup.py
adaptivelab/datasift-python
3cd530866f6929f3f20f0dca3459518df86b6ff9
[ "MIT" ]
null
null
null
# encoding: utf-8 from setuptools import setup from datasift import __version__ setup( name = "datasift", version = __version__, author = "Stuart Dallas", author_email = "stuart@3ft9.com", maintainer = "MediaSift Ltd", maintainer_email = "opensource@datasift.com", description = ("The offic...
33.275862
108
0.65285
102
965
6.04902
0.696078
0.038898
0
0
0
0
0
0
0
0
0
0.014628
0.220725
965
28
109
34.464286
0.805851
0.015544
0
0
0
0
0.520042
0.024262
0
0
0
0
0
1
0
true
0
0.08
0
0.08
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
1aba01d14035a785bd9ab2da3110df2e597536e7
1,261
py
Python
week3_priority_queues_and_disjoint_sets/build_heap.py
winnochan/data_structures_fundamentals_solutions
f4f609a0947809df6c538e8cda26353758ea716a
[ "MIT" ]
null
null
null
week3_priority_queues_and_disjoint_sets/build_heap.py
winnochan/data_structures_fundamentals_solutions
f4f609a0947809df6c538e8cda26353758ea716a
[ "MIT" ]
null
null
null
week3_priority_queues_and_disjoint_sets/build_heap.py
winnochan/data_structures_fundamentals_solutions
f4f609a0947809df6c538e8cda26353758ea716a
[ "MIT" ]
null
null
null
# python3 def build_heap(data): """Build a heap from ``data`` inplace. Returns a sequence of swaps performed by the algorithm. """ # The following naive implementation just sorts the given sequence # using selection sort algorithm and saves the resulting sequence # of swaps. This turns the gi...
23.792453
72
0.495638
178
1,261
3.455056
0.404494
0.03252
0.042276
0.045528
0
0
0
0
0
0
0
0.016839
0.387787
1,261
52
73
24.25
0.779793
0.367962
0
0
0
0
0.021992
0
0
0
0
0.019231
0
1
0.071429
false
0
0
0
0.107143
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
1
0
0
0
0
0
0
0
0
0
0
1