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
20cd223f5a5117dbe2d36d4a2b7a97e6588b5812
2,387
py
Python
common_modules/orm_settings.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
null
null
null
common_modules/orm_settings.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
2
2021-07-05T09:36:29.000Z
2021-07-05T09:36:29.000Z
common_modules/orm_settings.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
null
null
null
''' Supply a suitable dictionary for use in Django's ORM and settings.py file. Only the db settings are supplied, to allow other modules to use the Django ORM without all of Django Copyright (c) 2011, Kim van Wyk All rights reserved. Redistribution and use in source and binary forms, with or without modification, ...
39.783333
83
0.722245
351
2,387
4.883191
0.470085
0.02042
0.031505
0.026838
0.107351
0.079347
0.079347
0.079347
0.079347
0.079347
0
0.002614
0.198576
2,387
59
84
40.457627
0.893361
0.064097
0
0
0
0
0.187215
0.031963
0
0
0
0
0
0
null
null
0.047619
0.142857
null
null
0.047619
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
20e18595709498b9984def97ec135bc168a2d806
1,832
py
Python
estore/server/web.py
Jin-Xu/estore-server
2703b32a9944c30457ef6d27fd77ff2d3ac1184b
[ "MIT" ]
null
null
null
estore/server/web.py
Jin-Xu/estore-server
2703b32a9944c30457ef6d27fd77ff2d3ac1184b
[ "MIT" ]
3
2020-09-15T19:50:58.000Z
2020-09-19T06:14:05.000Z
estore/server/web.py
Jin-Xu/estore-server
2703b32a9944c30457ef6d27fd77ff2d3ac1184b
[ "MIT" ]
1
2020-09-30T21:17:01.000Z
2020-09-30T21:17:01.000Z
import functools import aiohttp.web class Application(aiohttp.web.Application): def __init__(self, name, *args, **kwargs): super(Application, self).__init__(*args, **kwargs) self.__name = name self.__children={} def get_name(self): return self.__name def add_get(self, pat...
32.714286
81
0.621179
228
1,832
4.72807
0.245614
0.055659
0.105751
0.064007
0.311688
0.242115
0.242115
0.242115
0.242115
0.242115
0
0.000723
0.244541
1,832
55
82
33.309091
0.778179
0
0
0.133333
0
0
0.019105
0
0
0
0
0
0
1
0.244444
false
0.022222
0.044444
0.044444
0.466667
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
20e1f51e98c073acb882daa175bd61f03163faf9
136
py
Python
main.py
vcokltfre/what-the-api
ad48433d2f22a60545b7c57d687fce9e9ea149de
[ "MIT" ]
null
null
null
main.py
vcokltfre/what-the-api
ad48433d2f22a60545b7c57d687fce9e9ea149de
[ "MIT" ]
null
null
null
main.py
vcokltfre/what-the-api
ad48433d2f22a60545b7c57d687fce9e9ea149de
[ "MIT" ]
null
null
null
from fastapi import FastAPI from routers import owo_router app = FastAPI() app.include_router( owo_router, prefix="/owo", )
11.333333
30
0.713235
18
136
5.222222
0.5
0.191489
0
0
0
0
0
0
0
0
0
0
0.198529
136
11
31
12.363636
0.862385
0
0
0
0
0
0.029412
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
20ec803fa484fa3dc1da238b030310dba6e0c64f
281
py
Python
windowNewWindow.py
piotrbla/pyExamples
d949784e614da53afc05a1245c824d0b853d8234
[ "MIT" ]
null
null
null
windowNewWindow.py
piotrbla/pyExamples
d949784e614da53afc05a1245c824d0b853d8234
[ "MIT" ]
null
null
null
windowNewWindow.py
piotrbla/pyExamples
d949784e614da53afc05a1245c824d0b853d8234
[ "MIT" ]
null
null
null
import tkinter as tk class NewWindow: def __init__(self, master, count): window = tk.Toplevel(master) text_value = "zażółć gęślą jaźń #%s" % count label = tk.Label(window, text=text_value) label.pack(side="top", fill="both", padx=10, pady=10)
28.1
61
0.633452
39
281
4.410256
0.717949
0.104651
0
0
0
0
0
0
0
0
0
0.018692
0.238434
281
9
62
31.222222
0.785047
0
0
0
0
0
0.099644
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
20ede89b47675696b6c1436e9535c6d02461a2a4
9,460
py
Python
test.py
mooshmoosh/chaido
548d5413d6e45371f1d4eccae9ff9b90a4bb5c87
[ "MIT" ]
null
null
null
test.py
mooshmoosh/chaido
548d5413d6e45371f1d4eccae9ff9b90a4bb5c87
[ "MIT" ]
null
null
null
test.py
mooshmoosh/chaido
548d5413d6e45371f1d4eccae9ff9b90a4bb5c87
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import data_migration import json import os import unittest import chaido import version class MockChaiDoApp(chaido.ChaidoApp): def load(self, filename): return def save(self, filename): return class CleanArgumentsTest(unittest.TestCase): def testCleanArgumentsToAddTod...
40.775862
113
0.628753
1,074
9,460
5.499069
0.108939
0.109042
0.151202
0.175076
0.701659
0.660515
0.625296
0.581273
0.541314
0.505249
0
0.016882
0.223573
9,460
231
114
40.952381
0.787202
0.001797
0
0.409091
0
0
0.149333
0
0
0
0
0
0.308081
1
0.136364
false
0
0.030303
0.010101
0.217172
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
45459e705edf3ec57d6520224f178bd8cf08168a
460
py
Python
main.py
wrobelp/PudelekCrawler
f2e1cbaf03054ce575ed54815cb490d793f003dd
[ "MIT" ]
null
null
null
main.py
wrobelp/PudelekCrawler
f2e1cbaf03054ce575ed54815cb490d793f003dd
[ "MIT" ]
null
null
null
main.py
wrobelp/PudelekCrawler
f2e1cbaf03054ce575ed54815cb490d793f003dd
[ "MIT" ]
null
null
null
from pydispatch import dispatcher from scrapy import signals from scrapy.crawler import CrawlerProcess from poodlebot.spiders import pudelek_spider items = [] def add_item(item): items.append(item) dispatcher.connect(add_item, signal=signals.item_passed) process = CrawlerProcess({ 'USER_AGENT': 'Mozilla/4.0 (c...
20
67
0.771739
62
460
5.629032
0.629032
0.057307
0
0
0
0
0
0
0
0
0
0.014742
0.115217
460
22
68
20.909091
0.842752
0
0
0
0
0
0.156522
0
0
0
0
0
0
1
0.071429
false
0.071429
0.285714
0
0.357143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
4545f41e87d6687203e83373f08f4b202440eb12
400
py
Python
src/python/WMCore/WMBS/Oracle/JobGroup/New.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMCore/WMBS/Oracle/JobGroup/New.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMCore/WMBS/Oracle/JobGroup/New.py
khurtado/WMCore
f74e252412e49189a92962945a94f93bec81cd1e
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ _New_ Oracle implementation of JobGroup.New """ __all__ = [] import time from WMCore.WMBS.MySQL.JobGroup.New import New as NewJobGroupMySQL class New(NewJobGroupMySQL): sql = """INSERT INTO wmbs_jobgroup (id, subscription, guid, output, last_update) VALUES (wmbs_jobgrou...
20
75
0.6825
48
400
5.479167
0.666667
0.08365
0.1673
0
0
0
0
0
0
0
0
0
0.1925
400
19
76
21.052632
0.814241
0.1625
0
0
0
0
0.510703
0.082569
0
0
0
0
0
1
0
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
454bd93b7645e43be7a171aee9b3fd8a94b299de
503
py
Python
change_ip_limit_app/tests/test_main.py
onionj/karamozi_backend
4b9f4f0fb1e200922972f68359a5f6c0639712b2
[ "Apache-2.0" ]
null
null
null
change_ip_limit_app/tests/test_main.py
onionj/karamozi_backend
4b9f4f0fb1e200922972f68359a5f6c0639712b2
[ "Apache-2.0" ]
null
null
null
change_ip_limit_app/tests/test_main.py
onionj/karamozi_backend
4b9f4f0fb1e200922972f68359a5f6c0639712b2
[ "Apache-2.0" ]
null
null
null
import requests service_domain = "http://localhost:8000" rate_limit_ip = 20 def test_ip_day_limit(): for ip in range(1, 41): response = requests.post(service_domain, json={"username": "test"}, headers={ "X-Forwarded-For": f"127.0.1.{ip}"}) if ip <= rate_limit_ip:...
29.588235
85
0.590457
62
503
4.612903
0.629032
0.146853
0.076923
0.167832
0
0
0
0
0
0
0
0.055249
0.280318
503
16
86
31.4375
0.734807
0
0
0
0
0
0.17495
0
0
0
0
0
0.25
1
0.083333
false
0
0.083333
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
456846dafd412cccc70c985e69559e10a4df18a7
1,769
py
Python
protocols/vitrimers/generate/lib/main.py
debeshmandal/brownian
bc5b2e00a04d11319c85e749f9c056b75b450ff7
[ "MIT" ]
1
2021-08-18T05:11:28.000Z
2021-08-18T05:11:28.000Z
protocols/vitrimers/generate/lib/main.py
debeshmandal/brownian
bc5b2e00a04d11319c85e749f9c056b75b450ff7
[ "MIT" ]
null
null
null
protocols/vitrimers/generate/lib/main.py
debeshmandal/brownian
bc5b2e00a04d11319c85e749f9c056b75b450ff7
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import generate import convert import analyse import equilibrate import yaml from pathlib import Path def main(settings: str, run: bool = False): if run: generate.run(settings) with open(settings, 'r') as f: params = yaml.safe_load(f) N = params['initial...
31.589286
122
0.633691
255
1,769
4.305882
0.380392
0.029144
0.025501
0.029144
0.142077
0.142077
0.142077
0.142077
0.142077
0.142077
0
0.02168
0.16563
1,769
55
123
32.163636
0.722222
0
0
0.086957
1
0
0.178632
0.055964
0
0
0
0
0
1
0.043478
false
0
0.173913
0
0.23913
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
456a51ec5c35735446abdaad7996c6b13a54762f
3,042
py
Python
Data Visualization/School/code5.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
2
2021-05-27T19:13:02.000Z
2021-06-02T13:26:35.000Z
Data Visualization/School/code5.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
null
null
null
Data Visualization/School/code5.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
1
2021-06-07T18:17:35.000Z
2021-06-07T18:17:35.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jun 15 15:46:25 2021 @author: ali_d """ import numpy as np import pandas as pd # plotly from plotly.offline import init_notebook_mode, iplot, plot import plotly as py init_notebook_mode(connected=True) import plotly.graph_objs as go from wordcloud import WordCloud # matp...
18.89441
86
0.595989
400
3,042
4.445
0.2675
0.089989
0.098988
0.085489
0.667042
0.632171
0.632171
0.632171
0.632171
0.554556
0
0.057811
0.255095
3,042
160
87
19.0125
0.726831
0.054569
0
0.766917
0
0
0.129934
0.025498
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
456c01c299842f407aa9558b018ee9972510400d
898
py
Python
allauth/socialaccount/providers/edx_provider/provider.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/edx_provider/provider.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/edx_provider/provider.py
Fuzzwah/django-allauth
071cbef1388bb61a563d3e41197bd5b7c26664d2
[ "MIT" ]
null
null
null
from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2_provider.provider import OAuth2Provider class EdxAccount(ProviderAccount): def get_profile_url(self): if self.account.extra_data["profile_image"]["has_image"]: return self.account.extra...
27.212121
83
0.657016
105
898
5.447619
0.438095
0.048951
0.083916
0.115385
0
0
0
0
0
0
0
0.00431
0.224944
898
32
84
28.0625
0.817529
0.045657
0
0
0
0
0.095182
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.090909
0.681818
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
4571bfbe77b34b84570a2db104b5bf4c3d809410
3,914
py
Python
Coursera/ml-foundations/assignments/Week2.py
hecate-xw/Courses
abf0624ac13a09b8af3ce9c5f65e2e828426f3a8
[ "Apache-2.0" ]
1
2017-03-01T05:44:27.000Z
2017-03-01T05:44:27.000Z
Coursera/ml-foundations/assignments/Week2.py
hecate-xw/Courses
abf0624ac13a09b8af3ce9c5f65e2e828426f3a8
[ "Apache-2.0" ]
null
null
null
Coursera/ml-foundations/assignments/Week2.py
hecate-xw/Courses
abf0624ac13a09b8af3ce9c5f65e2e828426f3a8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # In[5]: import graphlab as gl # In[6]: sales = gl.SFrame('home_data.gl/') # In[7]: sales # In[8]: gl.canvas.set_target('ipynb') sales.show(view="Scatter Plot", x="sqft_living", y="price") # In[9]: training_data,test_data = sales.random_split(0.8,seed=0) # In[10]: sqft_model = gl.linea...
20.279793
140
0.648952
522
3,914
4.683908
0.325671
0.035992
0.034765
0.042945
0.271984
0.252352
0.20409
0.17546
0.17546
0.152965
0
0.068189
0.171947
3,914
192
141
20.385417
0.686208
0.141032
0
0.052632
0
0.013158
0.230932
0
0
0
0
0
0
0
null
null
0
0.026316
null
null
0.118421
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
45743269c241c5de6203d96a30c089ee4b028543
259
py
Python
home/migrations/0013_merge_20190507_1221.py
nurpeiis/RED
0e1f61488f79283749ec11b5d0e5b066dd02bd68
[ "MIT" ]
null
null
null
home/migrations/0013_merge_20190507_1221.py
nurpeiis/RED
0e1f61488f79283749ec11b5d0e5b066dd02bd68
[ "MIT" ]
12
2019-02-03T07:54:32.000Z
2022-03-11T23:33:19.000Z
home/migrations/0013_merge_20190507_1221.py
nurpeiis/RED
0e1f61488f79283749ec11b5d0e5b066dd02bd68
[ "MIT" ]
2
2018-12-28T11:38:17.000Z
2019-09-11T22:45:04.000Z
# Generated by Django 2.1.3 on 2019-05-07 08:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('home', '0008_auto_20190421_1129'), ('home', '0012_team_title'), ] operations = [ ]
17.266667
47
0.629344
32
259
4.9375
0.875
0
0
0
0
0
0
0
0
0
0
0.178571
0.243243
259
14
48
18.5
0.627551
0.173745
0
0
1
0
0.216981
0.108491
0
0
0
0
0
1
0
false
0
0.125
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45786490235dc1bb0e823c70fa3859f700f0f5b4
2,025
py
Python
setup.py
rjenkinsjr/Auklet-Agent-Django
7161586a39fa82df6d834fe9934ad3bc27db73e4
[ "Apache-2.0" ]
null
null
null
setup.py
rjenkinsjr/Auklet-Agent-Django
7161586a39fa82df6d834fe9934ad3bc27db73e4
[ "Apache-2.0" ]
null
null
null
setup.py
rjenkinsjr/Auklet-Agent-Django
7161586a39fa82df6d834fe9934ad3bc27db73e4
[ "Apache-2.0" ]
1
2018-10-03T12:40:39.000Z
2018-10-03T12:40:39.000Z
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.absp...
32.142857
70
0.657778
221
2,025
5.923077
0.565611
0.145149
0.190985
0.099312
0
0
0
0
0
0
0
0.008075
0.204938
2,025
62
71
32.66129
0.804969
0.134321
0
0
0
0
0.487637
0
0
0
0
0
0
1
0.022727
false
0
0.068182
0
0.113636
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
457abd051d003f97d326cfd53525c479830e59bb
715
py
Python
tests/gdb/print_symbol.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tests/gdb/print_symbol.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tests/gdb/print_symbol.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- python -*- # Copyright (c) 2012 The Native Client 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 gdb_test class PrintSymbolTest(gdb_test.GdbTest): def test_print_symbol(self): self.gdb.Command('break set_global_v...
31.086957
72
0.714685
100
715
4.93
0.61
0.099391
0.162272
0.186613
0.255578
0.146045
0.146045
0
0
0
0
0.012987
0.138462
715
22
73
32.5
0.787338
0.25035
0
0
0
0
0.205273
0
0
0
0
0
0.333333
1
0.083333
false
0
0.083333
0
0.25
0.083333
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
4586b6b858b1ff1afc99e8a23de67f765a68ad74
1,817
py
Python
src/Account/migrations/0001_initial.py
keonsunkim/BlogWorld
7aaec6dcf78931f80ab26aad7ffea6098f42e62b
[ "BSD-3-Clause" ]
2
2018-12-04T10:20:10.000Z
2018-12-27T10:10:10.000Z
src/Account/migrations/0001_initial.py
keonsunkim/BlogWorld
7aaec6dcf78931f80ab26aad7ffea6098f42e62b
[ "BSD-3-Clause" ]
null
null
null
src/Account/migrations/0001_initial.py
keonsunkim/BlogWorld
7aaec6dcf78931f80ab26aad7ffea6098f42e62b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', mode...
40.377778
122
0.517336
161
1,817
5.608696
0.409938
0.158361
0.066445
0.079734
0.135105
0.090808
0.090808
0.090808
0
0
0
0.011265
0.364887
1,817
44
123
41.295455
0.771231
0.011558
0
0
0
0
0.147157
0
0
0
0
0
0
1
0
false
0.054054
0.054054
0
0.162162
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
4588395f1c72f2c6f4dde6b36714968ca5aba15c
6,079
py
Python
nest_box_helper/models.py
natalieehaas/nestboxhelper
5b7904145b007730c85ec262452e8723639de23a
[ "MIT" ]
null
null
null
nest_box_helper/models.py
natalieehaas/nestboxhelper
5b7904145b007730c85ec262452e8723639de23a
[ "MIT" ]
null
null
null
nest_box_helper/models.py
natalieehaas/nestboxhelper
5b7904145b007730c85ec262452e8723639de23a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager from django.conf import settings from django.utils.text import slugify from django.db.models.signals import pre_save import random import string class Park(models.Model): park_name = models.CharField(max_length=5...
33.960894
100
0.673466
758
6,079
5.204485
0.288918
0.027376
0.045627
0.060837
0.341952
0.220786
0.214956
0.114575
0.114575
0.114575
0
0.005819
0.208422
6,079
178
101
34.151685
0.814007
0
0
0.144928
0
0
0.125679
0
0
0
0
0
0
1
0.094203
false
0.028986
0.050725
0.072464
0.601449
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
458ce1a6277eca86246f6a6b8dd9b62868ff6152
1,843
py
Python
movies/api.py
hollow-tech/API_DRF_movie
f9d0b82c76d5a16c14b8fcff62aadd6e09b4018a
[ "BSD-3-Clause" ]
null
null
null
movies/api.py
hollow-tech/API_DRF_movie
f9d0b82c76d5a16c14b8fcff62aadd6e09b4018a
[ "BSD-3-Clause" ]
null
null
null
movies/api.py
hollow-tech/API_DRF_movie
f9d0b82c76d5a16c14b8fcff62aadd6e09b4018a
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import get_object_or_404 from rest_framework import viewsets, renderers, permissions from rest_framework.decorators import action from rest_framework.response import Response from .models import Actor from .serializers import ( ActorListSerializer, ActorDetailSerializer, ) class ActorVi...
35.442308
95
0.705372
183
1,843
6.994536
0.344262
0.066406
0.0625
0.071875
0.178125
0.1
0.1
0
0
0
0
0.004043
0.194791
1,843
52
96
35.442308
0.858491
0.297884
0
0.366667
0
0
0.00468
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.633333
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
458ce4180bea0e1145ee237ec36eb28ffe608a89
331
py
Python
src/server.py
sozercan/tensorflow-server
f754ad7b6427c11d9788ad6329b099e8061a595a
[ "MIT" ]
2
2017-07-20T23:17:54.000Z
2017-08-02T17:41:05.000Z
src/server.py
sozercan/tensorflow-container-sample
f754ad7b6427c11d9788ad6329b099e8061a595a
[ "MIT" ]
null
null
null
src/server.py
sozercan/tensorflow-container-sample
f754ad7b6427c11d9788ad6329b099e8061a595a
[ "MIT" ]
null
null
null
import numpy as np import json class Server: model = None def set_model(self, model): self.model = model def server_running(self): return 'Server is running.' def predict(self): x = np.random.rand(1,784) prediction = self.model.predict(x) return json.dumps(prediction.tolist(), separators...
20.6875
64
0.667674
46
331
4.76087
0.543478
0.123288
0.127854
0
0
0
0
0
0
0
0
0.015038
0.196375
331
16
64
20.6875
0.808271
0
0
0
0
0
0.060241
0
0
0
0
0
0
1
0.25
false
0
0.166667
0.083333
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
458e9b7b53aee14dd4377a705d96347b8aa6f457
481
py
Python
easy_tenants/models.py
eliasfank/django-easy-tenants
9278baa1d9a59981d58331b29d9be672f2cc336e
[ "MIT" ]
null
null
null
easy_tenants/models.py
eliasfank/django-easy-tenants
9278baa1d9a59981d58331b29d9be672f2cc336e
[ "MIT" ]
null
null
null
easy_tenants/models.py
eliasfank/django-easy-tenants
9278baa1d9a59981d58331b29d9be672f2cc336e
[ "MIT" ]
null
null
null
from django.db import models from easy_tenants.conf import settings class TenantMixin(models.Model): users = models.ManyToManyField( to=settings.AUTH_USER_MODEL, related_name='tenants' ) class Meta: abstract = True class TenantAbstract(models.Model): tenant = models.Foreign...
18.5
39
0.671518
54
481
5.833333
0.574074
0.069841
0.107937
0.133333
0
0
0
0
0
0
0
0
0.251559
481
25
40
19.24
0.875
0
0
0.235294
0
0
0.014553
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.529412
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
458f9a84db9928c8041efc3a6569e3e2ed48536e
5,659
py
Python
PrelimDataAnalysis.py
Cian-Byrne/ML_Yacht_Performance
97444b768a5d4335de49ab21890b13412802548e
[ "MIT" ]
null
null
null
PrelimDataAnalysis.py
Cian-Byrne/ML_Yacht_Performance
97444b768a5d4335de49ab21890b13412802548e
[ "MIT" ]
null
null
null
PrelimDataAnalysis.py
Cian-Byrne/ML_Yacht_Performance
97444b768a5d4335de49ab21890b13412802548e
[ "MIT" ]
null
null
null
import seaborn as sns import pickle import os import matplotlib.pyplot as plt import numpy as np import pandas as pd %matplotlib qt sns.set() # -------------------------------------------------------------------------------------------------- # Import both datasets separately dfTP = pd.DataFrame() dfTP = dfTP.append(...
30.424731
118
0.590917
809
5,659
3.974042
0.18047
0.055988
0.08958
0.083981
0.59409
0.581337
0.55521
0.538414
0.538414
0.538414
0
0.031808
0.100018
5,659
185
119
30.589189
0.59945
0.215586
0
0.452991
0
0
0.110507
0.019475
0
0
0
0
0
0
null
null
0
0.051282
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
4592ef788f608df50760e84f36138d2cd6c02bd7
1,921
py
Python
drf_auth/tasks.py
thomas545/django-drf-auth
b73c10057b22393ab5c5be7b63a6afaea6cabb0c
[ "MIT" ]
3
2020-03-21T17:49:42.000Z
2021-07-30T14:18:48.000Z
drf_auth/tasks.py
thomas545/django-drf-auth
b73c10057b22393ab5c5be7b63a6afaea6cabb0c
[ "MIT" ]
6
2021-03-19T01:02:13.000Z
2021-09-22T18:46:47.000Z
drf_auth/tasks.py
thomas545/django-drf-auth
b73c10057b22393ab5c5be7b63a6afaea6cabb0c
[ "MIT" ]
1
2020-03-24T09:56:01.000Z
2020-03-24T09:56:01.000Z
import smtplib from email.mime.text import MIMEText from django.conf import settings try: from celery import shared_task except ImportError: raise ImportError('you need to install celery and setup celery configuration') from django.utils.http import urlsafe_base64_encode from django.contrib.auth.tokens impor...
28.25
115
0.68506
254
1,921
5.047244
0.389764
0.058502
0.062403
0.046802
0.24961
0.226209
0.176287
0.176287
0.176287
0.176287
0
0.004534
0.196252
1,921
67
116
28.671642
0.825777
0
0
0.34
0
0.02
0.251563
0.014063
0
0
0
0
0
1
0.06
false
0.06
0.18
0
0.28
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
45931919f11919db1aa05b0b3ae4d9559a280b08
11,924
py
Python
src/PythonRL/agent.py
chkwon/TSPDrone.jl
9381296d8d50b2468da4ba594ea474c5c67a992c
[ "MIT" ]
4
2022-01-03T03:56:16.000Z
2022-02-03T22:46:40.000Z
src/PythonRL/agent.py
chkwon/TSPDrone.jl
9381296d8d50b2468da4ba594ea474c5c67a992c
[ "MIT" ]
null
null
null
src/PythonRL/agent.py
chkwon/TSPDrone.jl
9381296d8d50b2468da4ba594ea474c5c67a992c
[ "MIT" ]
1
2022-02-03T22:46:48.000Z
2022-02-03T22:46:48.000Z
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import os import copy import time import random import numpy as np from utils import printOut class A2CAgent(object): def __init__(self, actor, critic, args, env, dev, decode_len): self.actor = actor ...
49.069959
175
0.505787
1,399
11,924
4.072909
0.113653
0.075816
0.055985
0.083538
0.720253
0.683222
0.652159
0.631801
0.624605
0.611969
0
0.015202
0.349044
11,924
243
176
49.069959
0.718887
0.294867
0
0.504065
0
0
0.007193
0
0
0
0
0
0
1
0.02439
false
0
0.081301
0
0.130081
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45944431c71b1a32d9ab60b626cca2265302fe91
589
py
Python
help/examples/upload_demo.py
foxrenderfarm/rayvision_sync
5d01ed0d3648cdd81f49588ad076a6f97301b238
[ "Apache-2.0" ]
1
2019-11-18T09:59:29.000Z
2019-11-18T09:59:29.000Z
help/examples/upload_demo.py
foxrenderfarm/rayvision_sync
5d01ed0d3648cdd81f49588ad076a6f97301b238
[ "Apache-2.0" ]
2
2020-05-14T16:21:00.000Z
2020-05-14T16:21:58.000Z
help/examples/upload_demo.py
foxrenderfarm/rayvision_sync
5d01ed0d3648cdd81f49588ad076a6f97301b238
[ "Apache-2.0" ]
1
2020-05-12T16:51:28.000Z
2020-05-12T16:51:28.000Z
# -*- coding: utf-8 -*- """Upload demo.""" from rayvision_api import RayvisionAPI from rayvision_sync.upload import RayvisionUpload api = RayvisionAPI(access_id="xxxxx", access_key="xxxxx", domain="task.renderbus.com", platform="2") CONFIG_PATH = [ r"C:\wo...
25.608696
53
0.65365
74
589
5.094595
0.432432
0.026525
0.145889
0.198939
0.275862
0.164456
0.164456
0
0
0
0
0.018908
0.191851
589
22
54
26.772727
0.773109
0.059423
0
0
0
0
0.321168
0.255474
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
4599a689f8edae477db91e58b9b2cd98a45ba8b2
361
py
Python
dbConfig.py
jcamstan3370/MachineLearningPerovskites
d7bc433bac349bf53473dc6d636954cae996b8d2
[ "MIT" ]
6
2020-05-09T17:18:00.000Z
2021-09-22T09:37:40.000Z
dbConfig.py
jcamstan3370/MachineLearningPerovskites
d7bc433bac349bf53473dc6d636954cae996b8d2
[ "MIT" ]
null
null
null
dbConfig.py
jcamstan3370/MachineLearningPerovskites
d7bc433bac349bf53473dc6d636954cae996b8d2
[ "MIT" ]
1
2021-03-24T04:21:31.000Z
2021-03-24T04:21:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Jared """ #DB Config File host='localhost' port=27017 dummy=True saveFeatures = True featureDBFolder = '/Users/Jared/Dropbox/Master Thesis/Data/featureDB2/' crystalDBFolder = '/Users/Jared/Dropbox/Master Thesis/Data/crystalDB2/' saveFeaturesFile='junk.c...
15.695652
71
0.728532
42
361
6.261905
0.785714
0.076046
0.129278
0.174905
0.250951
0.250951
0
0
0
0
0
0.027864
0.105263
361
22
72
16.409091
0.786378
0.199446
0
0
0
0
0.485612
0.359712
0
0
0
0
0
1
0
false
0
0
0
0
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
45a7519cc2824f774516cc588a462df8572bcb3e
875
py
Python
triton/dns/message/rdata/pointer.py
jayvdb/triton
b64424c193b131721f172f94963d8d79b21804db
[ "MIT" ]
null
null
null
triton/dns/message/rdata/pointer.py
jayvdb/triton
b64424c193b131721f172f94963d8d79b21804db
[ "MIT" ]
1
2020-10-16T00:57:07.000Z
2020-10-27T13:02:24.000Z
triton/dns/message/rdata/pointer.py
jayvdb/triton
b64424c193b131721f172f94963d8d79b21804db
[ "MIT" ]
1
2020-08-27T13:59:08.000Z
2020-08-27T13:59:08.000Z
from .base import ResourceRecord from ..domains.domain import Domain class PTR(ResourceRecord): class _Binary(ResourceRecord._Binary): @property def full(self): return self.resource_record.ptrdname.binary_raw id = 12 repr = ['ptrdname'] @classmethod def parse_bytes(...
24.305556
59
0.642286
94
875
5.851064
0.37234
0.098182
0.092727
0.136364
0.365455
0.365455
0.294545
0.294545
0.294545
0.294545
0
0.003091
0.260571
875
36
60
24.305556
0.846986
0
0
0.481481
0
0
0.03653
0
0
0
0
0
0
1
0.185185
false
0
0.074074
0.074074
0.592593
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
45b2702b6ecfd9ff617928dee57cb17a48adcb15
437
py
Python
Templates/Python/Scientific/h5_read.py
grisu48/Templates
5aea7903daabe34983b9970d6d8d637a0713160e
[ "WTFPL" ]
null
null
null
Templates/Python/Scientific/h5_read.py
grisu48/Templates
5aea7903daabe34983b9970d6d8d637a0713160e
[ "WTFPL" ]
null
null
null
Templates/Python/Scientific/h5_read.py
grisu48/Templates
5aea7903daabe34983b9970d6d8d637a0713160e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import h5py import sys if __name__ == '__main__' : EXIT_FAILURE = 1 EXIT_SUCCESS = 0 # Check if we have a program argument, otherwise terminate if len(sys.argv) <= 1 : print("Usage: " + sys.argv[0] + " H5FILE\n") sys.exit(EXIT_FAILURE) file...
16.185185
59
0.640732
66
437
4.075758
0.681818
0.078067
0.05948
0
0
0
0
0
0
0
0
0.038012
0.217391
437
26
60
16.807692
0.748538
0.263158
0
0
0
0
0.078616
0
0
0
0
0
0
1
0
false
0.066667
0.2
0
0.2
0.066667
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
45b2a3ea2cc4b9df040a17731660420222e8e4ae
1,192
py
Python
users/migrations/0020_auto_20200622_1345.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
3
2020-05-05T12:12:09.000Z
2020-05-08T08:48:16.000Z
users/migrations/0020_auto_20200622_1345.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
160
2020-05-19T13:03:43.000Z
2022-03-12T00:35:28.000Z
users/migrations/0020_auto_20200622_1345.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-06-22 13:45 import core.storage.utils import django.core.files.storage from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0019_auto_20200520_1539'), ] operations = [ migrations.AlterField( ...
38.451613
200
0.677013
138
1,192
5.681159
0.369565
0.061224
0.081633
0.112245
0.596939
0.596939
0.502551
0.502551
0.502551
0.502551
0
0.03372
0.203859
1,192
30
201
39.733333
0.792413
0.038591
0
0.333333
1
0
0.090035
0.020105
0
0
0
0
0
1
0
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45b36f4dceb8c7f00cd46051689a1c9ec169b985
2,150
py
Python
pshaw/pshaw.py
cooijmanstim/pshaw
93124b125d6a1605ad6215fc64fba6b085b7d79c
[ "BSD-3-Clause" ]
null
null
null
pshaw/pshaw.py
cooijmanstim/pshaw
93124b125d6a1605ad6215fc64fba6b085b7d79c
[ "BSD-3-Clause" ]
null
null
null
pshaw/pshaw.py
cooijmanstim/pshaw
93124b125d6a1605ad6215fc64fba6b085b7d79c
[ "BSD-3-Clause" ]
null
null
null
import sys, json, os, subprocess as sp, getpass, logging, argparse from pathlib import Path import paramiko # silence deprecation warnings # https://github.com/paramiko/paramiko/issues/1386 import warnings warnings.filterwarnings(action='ignore',module='.*paramiko.*') logger = logging.getLogger() logger.setLevel(log...
32.089552
122
0.713488
289
2,150
5.214533
0.456747
0.019907
0.022561
0.033179
0.066357
0.066357
0.066357
0.066357
0.066357
0.066357
0
0.004369
0.148372
2,150
66
123
32.575758
0.818678
0.146512
0
0
0
0
0.172961
0
0
0
0
0
0
1
0.085106
false
0.255319
0.085106
0
0.212766
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
45bada6b6558245ff59a212ea1bb45a98b0d56cb
559
py
Python
django_code/demo/views.py
Zheaoli/benchmark-on-python-web-framework
f914a88312ae3a7ac6293acc050333477cf09e8b
[ "MIT" ]
23
2020-05-10T18:09:16.000Z
2022-01-12T09:32:35.000Z
django_code/demo/views.py
Zheaoli/benchmark-on-python-web-framework
f914a88312ae3a7ac6293acc050333477cf09e8b
[ "MIT" ]
null
null
null
django_code/demo/views.py
Zheaoli/benchmark-on-python-web-framework
f914a88312ae3a7ac6293acc050333477cf09e8b
[ "MIT" ]
1
2020-05-11T01:19:05.000Z
2020-05-11T01:19:05.000Z
import random from django.core import serializers from django.shortcuts import HttpResponse from .models import DemoData TEMP = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()_+=-" # Create your views here. def demo_views(request): result = DemoData.objects.filter( name="".joi...
26.619048
85
0.708408
59
559
6.661017
0.694915
0.050891
0
0
0
0
0
0
0
0
0
0.030108
0.168157
559
20
86
27.95
0.815054
0.093023
0
0
0
0
0.190476
0.150794
0
0
0
0
0
1
0.076923
false
0
0.307692
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
0
0
0
1
0
0
0
0
1
45bb489a9d0b0bd86359bce15b62ffe1f8b239cc
1,391
py
Python
ilp_check.py
rene-schoene/racr-mquat
5f985816cadd556d7636a74bea0a5d5b1d95f9ee
[ "MIT" ]
null
null
null
ilp_check.py
rene-schoene/racr-mquat
5f985816cadd556d7636a74bea0a5d5b1d95f9ee
[ "MIT" ]
null
null
null
ilp_check.py
rene-schoene/racr-mquat
5f985816cadd556d7636a74bea0a5d5b1d95f9ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. # Author: R. Schoene import json, codecs try: from fabric.api import task except ImportError: from fabric_workaround import task from ilp_tes...
29.595745
127
0.727534
243
1,391
3.975309
0.382716
0.074534
0.082816
0.049689
0.251553
0.156315
0.101449
0.055901
0
0
0
0.007595
0.148095
1,391
46
128
30.23913
0.807595
0.176132
0
0.129032
0
0
0.052192
0
0
0
0
0
0
0
null
null
0
0.16129
null
null
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
1
0
0
0
0
0
0
0
0
1
45bc73b8045d1c1b2e0f3eac105f90f0915dc684
1,457
py
Python
samuilivanov23-fast_tasks/segments-fast-task/segments.py
samuilivanov23/training-projects
9791f359da9589524231c9c9d4d97f2bfbde71f3
[ "Apache-2.0" ]
null
null
null
samuilivanov23-fast_tasks/segments-fast-task/segments.py
samuilivanov23/training-projects
9791f359da9589524231c9c9d4d97f2bfbde71f3
[ "Apache-2.0" ]
null
null
null
samuilivanov23-fast_tasks/segments-fast-task/segments.py
samuilivanov23/training-projects
9791f359da9589524231c9c9d4d97f2bfbde71f3
[ "Apache-2.0" ]
null
null
null
n = int(input("n: ")) a = int(input("a: ")) b = int(input("b: ")) c = int(input("c: ")) while (n <= 0 or n >= 100000) or (a <= 0 or a >= 100000) or (b <= 0 or b >= 100000) or (c <= 0 or c >= 100000): print("All numbers should be positive between 0 and 100 000!") n = int(input("n: ")) a = int(input("a: ")) ...
28.568627
111
0.52162
251
1,457
2.956175
0.195219
0.114555
0.06469
0.185984
0.513477
0.448787
0.448787
0.448787
0.448787
0.448787
0
0.066282
0.285518
1,457
51
112
28.568627
0.646494
0.124914
0
0.6
0
0
0.066876
0
0
0
0
0
0
1
0
false
0
0
0
0
0.05
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
45bf9d58d555e4fac30956a4aa92f18679771982
2,520
py
Python
join_reduce.py
cdelichy92/analysis-cabs_NYC
118da34198beb28ce0cdf2d97cd99c06e00d9234
[ "CNRI-Python" ]
null
null
null
join_reduce.py
cdelichy92/analysis-cabs_NYC
118da34198beb28ce0cdf2d97cd99c06e00d9234
[ "CNRI-Python" ]
null
null
null
join_reduce.py
cdelichy92/analysis-cabs_NYC
118da34198beb28ce0cdf2d97cd99c06e00d9234
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python2.7 from itertools import groupby from operator import itemgetter import sys from datetime import datetime from math import * #reader def read_mapper_output(file, separator='\t'): for line in file: yield line.rstrip().split(separator, 1) #discard trips with errors def correctOutput(...
30.731707
347
0.621825
343
2,520
4.460641
0.425656
0.079085
0.05098
0.017647
0.064706
0.035294
0
0
0
0
0
0.027013
0.250794
2,520
81
348
31.111111
0.783369
0.194841
0
0.069767
0
0
0.158809
0
0
0
0
0
0
0
null
null
0.046512
0.116279
null
null
0.046512
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
45c5bc200929e46277a3bdeb7b1479a5adabb26e
1,699
py
Python
Blender 2.91/2.91/scripts/addons/power_sequencer/addon_properties.py
calculusrobotics/RNNs-for-Bayesian-State-Estimation
2aacf86d2e447e10c840b4926d4de7bc5e46d9bc
[ "MIT" ]
1
2021-06-30T00:39:40.000Z
2021-06-30T00:39:40.000Z
release/scripts/addons/power_sequencer/addon_properties.py
ringsce/Rings3D
8059d1e2460fc8d6f101eff8e695f68a99f6671d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/addons/power_sequencer/addon_properties.py
ringsce/Rings3D
8059d1e2460fc8d6f101eff8e695f68a99f6671d
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# # Copyright (C) 2016-2020 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors # # This file is part of Power Sequencer. # # Power Sequencer is free software: you can redistribute it and/or modify it under the terms of the # GNU General Public License as published by the Free Software Foundation, either...
36.148936
99
0.693349
218
1,699
5.362385
0.56422
0.05988
0.033362
0.04876
0.070145
0.047904
0
0
0
0
0
0.014663
0.197175
1,699
46
100
36.934783
0.842375
0.439082
0
0
0
0
0.193376
0
0
0
0
0
0
1
0.090909
true
0
0.045455
0
0.318182
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
45c9be2ddac63a663b27b7d5eb3c6df709672490
4,247
py
Python
pkg/msgapi/mqtt/models/mqbrk.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
pkg/msgapi/mqtt/models/mqbrk.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
pkg/msgapi/mqtt/models/mqbrk.py
ToraNova/rapidflask
f42354b296659dac5be904d7bb68076b9458f79a
[ "MIT" ]
null
null
null
#-------------------------------------------------- # mqtt_control.py # MQTT_Control is a database model to control subscriptions # and publications # introduced in u8 # ToraNova #-------------------------------------------------- from pkg.resrc import res_import as r from shutil import copyfile import os from pkg.sys...
42.89899
129
0.614316
532
4,247
4.659774
0.325188
0.084308
0.083501
0.032271
0.259379
0.200484
0.187576
0.166599
0.118193
0.086729
0
0.000917
0.230045
4,247
98
130
43.336735
0.757187
0.16129
0
0.045455
0
0
0.14211
0
0
0
0
0.010204
0
1
0.090909
false
0.030303
0.106061
0.015152
0.393939
0.030303
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
45d2e679d9e21dac17d9cfe08b28ddcfc52c0bf3
757
py
Python
main/model/screening.py
keshavbohra/movie-bookie
3ca4f855bfaad6b2fa859a6feed8f2d512513b69
[ "MIT" ]
null
null
null
main/model/screening.py
keshavbohra/movie-bookie
3ca4f855bfaad6b2fa859a6feed8f2d512513b69
[ "MIT" ]
1
2021-09-06T11:49:05.000Z
2021-09-06T11:49:05.000Z
main/model/screening.py
keshavbohra/movie_bookie
3ca4f855bfaad6b2fa859a6feed8f2d512513b69
[ "MIT" ]
null
null
null
from .. import db from .user import User from .movie import Movie from .theatre import Theatre from datetime import datetime, timedelta class Screening(db.Model): """ User Model for storing theatre related details """ __tablename__ = "screening" id = db.Column(db.Integer, primary_key=True, au...
37.85
82
0.72391
99
757
5.434343
0.40404
0.089219
0.111524
0.126394
0.332714
0.297398
0.297398
0.182156
0.182156
0
0
0
0.155878
757
19
83
39.842105
0.841941
0.060766
0
0
0
0
0.075581
0
0
0
0
0
0
1
0
false
0
0.357143
0
1
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
45d8771645548b6e5aeacf5d20413d0d3b53f5a4
318
py
Python
xue/bandexams/urls.py
team-xue/xue
e6bd9539803a2bf902f48b65a9df86356b5d46b2
[ "BSD-3-Clause" ]
1
2015-11-23T02:33:07.000Z
2015-11-23T02:33:07.000Z
xue/bandexams/urls.py
team-xue/xue
e6bd9539803a2bf902f48b65a9df86356b5d46b2
[ "BSD-3-Clause" ]
null
null
null
xue/bandexams/urls.py
team-xue/xue
e6bd9539803a2bf902f48b65a9df86356b5d46b2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls.defaults import patterns, include, url from django.conf import settings urlpatterns = patterns('', url(r'^$', 'xue.bandexams.views.my_view'), url(r'add/$', 'xue.bandexams.views.add_view'), ) # vim:ai:et:ts=4:sw=4:sts=4:fenc=utf8:
22.714286
61
0.685535
47
318
4.489362
0.638298
0.094787
0.132701
0
0
0
0
0
0
0
0
0.014925
0.157233
318
13
62
24.461538
0.772388
0.113208
0
0
0
0
0.23221
0.205993
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
45e04c3074479143d0607b2189c4b3ac0c63f5df
441
py
Python
stats/migrations/0026_alter_player_hash_redeemable.py
MajorXaker/HuntLototron
14fd635d5e189135a7d91d62f69d6b1efc6d8524
[ "Unlicense" ]
null
null
null
stats/migrations/0026_alter_player_hash_redeemable.py
MajorXaker/HuntLototron
14fd635d5e189135a7d91d62f69d6b1efc6d8524
[ "Unlicense" ]
null
null
null
stats/migrations/0026_alter_player_hash_redeemable.py
MajorXaker/HuntLototron
14fd635d5e189135a7d91d62f69d6b1efc6d8524
[ "Unlicense" ]
null
null
null
# Generated by Django 4.0 on 2021-12-26 07:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stats', '0025_alter_player_created_by'), ] operations = [ migrations.AlterField( model_name='player', name='hash_redee...
23.210526
95
0.628118
50
441
5.4
0.8
0
0
0
0
0
0
0
0
0
0
0.055556
0.265306
441
18
96
24.5
0.777778
0.097506
0
0
1
0
0.199495
0.070707
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
45e4de66af68f97b6012f3b3c6e6f2f935c93d7b
19,865
py
Python
simphony/plugins/siepic/tests/test_siepic.py
joamatab/simphony
bfe20c656d19aa18d79b4c8dbccdc0b70daebe80
[ "MIT" ]
1
2020-10-07T17:16:18.000Z
2020-10-07T17:16:18.000Z
simphony/plugins/siepic/tests/test_siepic.py
joamatab/simphony
bfe20c656d19aa18d79b4c8dbccdc0b70daebe80
[ "MIT" ]
null
null
null
simphony/plugins/siepic/tests/test_siepic.py
joamatab/simphony
bfe20c656d19aa18d79b4c8dbccdc0b70daebe80
[ "MIT" ]
2
2020-11-24T22:49:32.000Z
2020-12-01T13:17:35.000Z
# -*- coding: utf-8 -*- # # Copyright © Simphony Project Contributors # Licensed under the terms of the MIT License # (see simphony/__init__.py for details) import pytest import os from simphony.plugins.siepic.parser import load_spi #============================================================================== # T...
42.628755
292
0.392852
1,941
19,865
3.747553
0.15662
0.046192
0.085785
0.082211
0.704014
0.64545
0.583173
0.516222
0.386307
0.351114
0
0.191503
0.439567
19,865
465
293
42.72043
0.46178
0.043393
0
0.455172
0
0.02069
0.316793
0.114623
0
0
0
0
0.006897
1
0.006897
false
0
0.006897
0
0.013793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
afd9190905c48fa92f5522ff8bdce5d3e3a82c15
1,132
py
Python
deployment/setup_db.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
deployment/setup_db.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
deployment/setup_db.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
import os os.environ["DJANGO_SETTINGS_MODULE"] = "settings.local" from path_settings import set_path set_path() from django.contrib.auth.models import User from django.core.management import ManagementUtility from what_apps.mellon import config as mellon_config from what_apps.do import config as do_config from what_a...
29.789474
101
0.820671
165
1,132
5.351515
0.327273
0.05436
0.08154
0.101925
0
0
0
0
0
0
0
0.000967
0.086572
1,132
38
102
29.789474
0.852998
0
0
0.071429
0
0
0.060018
0.019417
0
0
0
0
0
1
0
false
0.035714
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
afdfa51cbc38d39e02a954bb5c282ba4769a8685
2,611
py
Python
ecl/tests/functional/network/v2/test_firewall.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
null
null
null
ecl/tests/functional/network/v2/test_firewall.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
null
null
null
ecl/tests/functional/network/v2/test_firewall.py
keiichi-hikita/eclsdk
c43afb982fd54eb1875cdc22d46044644d804c4a
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
36.774648
76
0.691689
312
2,611
5.653846
0.387821
0.07483
0.174603
0.091837
0.371315
0.356009
0.173469
0.098639
0.098639
0.098639
0
0.020237
0.224052
2,611
71
77
36.774648
0.850444
0.250479
0
0.208333
0
0
0.048354
0.018519
0
0
0
0
0.1875
0
null
null
0
0.0625
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
afee7fe6cdff9753d88d0704fa5a4482870809f1
1,254
py
Python
PyCutter/utils/list.py
Codle/PyCutter
be405931f9b71ab577a79ad29dc04f8aa62e14eb
[ "MIT" ]
null
null
null
PyCutter/utils/list.py
Codle/PyCutter
be405931f9b71ab577a79ad29dc04f8aa62e14eb
[ "MIT" ]
null
null
null
PyCutter/utils/list.py
Codle/PyCutter
be405931f9b71ab577a79ad29dc04f8aa62e14eb
[ "MIT" ]
null
null
null
""" 列表工具类 Author: Yin Date: 2019/10/19 License: MIT """ from typing import Any class KeyCompareList(object): """Key Compare List 根据指定的键值而声明的列表,该列表只支持同一类型的数据,且声明的时候必须指定比较的键。 大部分操作与List数据类似,且可以依据键值直接使用xx in List或者 List[xx] 的方式进行访问。 """ def __init__(self, dtype: Any, attr: str): self.dtype...
23.222222
78
0.574163
156
1,254
4.487179
0.397436
0.077143
0.031429
0.042857
0.482857
0.482857
0.482857
0.482857
0.482857
0.482857
0
0.009434
0.323764
1,254
53
79
23.660377
0.816038
0.132376
0
0.357143
0
0
0.12806
0
0
0
0
0
0
1
0.214286
false
0.035714
0.035714
0.035714
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
aff613a4164ba0fe438a2f753fe991add2c84a4e
10,370
py
Python
web.py
Dreamsorcerer/bthidhub
bcee84c39e70dbb1122c47b915729c0dfa0d3923
[ "MIT" ]
166
2020-08-05T11:33:03.000Z
2022-03-29T06:23:00.000Z
web.py
Dreamsorcerer/bthidhub
bcee84c39e70dbb1122c47b915729c0dfa0d3923
[ "MIT" ]
41
2020-08-13T16:13:43.000Z
2022-03-27T22:59:50.000Z
web.py
Dreamsorcerer/bthidhub
bcee84c39e70dbb1122c47b915729c0dfa0d3923
[ "MIT" ]
28
2020-08-20T14:33:35.000Z
2022-03-01T01:44:58.000Z
# Copyright (c) 2020 ruundii. All rights reserved. from aiohttp import web,WSMessage from password import * import json from hid_devices import * from bluetooth_devices import * import asyncio import concurrent.futures import sys import subprocess from aiohttp_session import SimpleCookieStorage, session_middleware fr...
43.571429
140
0.650145
1,196
10,370
5.42893
0.16806
0.028338
0.034037
0.041891
0.432004
0.380256
0.303712
0.245957
0.233944
0.225474
0
0.001278
0.245709
10,370
238
141
43.571429
0.828816
0.014176
0
0.241026
0
0
0.085169
0.005254
0
0
0
0
0
1
0.005128
false
0.061538
0.061538
0
0.184615
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
0
0
0
0
0
1
0
0
0
0
0
1
aff66cb7fd3cd4447619cc79855e308e05896a6e
3,046
py
Python
location_booking/models.py
reload/Web-Based-Info-Screen
cf04c8ee45dc3c75457802ddfa1d789c9c765941
[ "MIT" ]
null
null
null
location_booking/models.py
reload/Web-Based-Info-Screen
cf04c8ee45dc3c75457802ddfa1d789c9c765941
[ "MIT" ]
null
null
null
location_booking/models.py
reload/Web-Based-Info-Screen
cf04c8ee45dc3c75457802ddfa1d789c9c765941
[ "MIT" ]
null
null
null
from django.db import models import requests, icalendar, re from datetime import datetime, date from dateutil.tz import tzlocal def localize_timezones(event): '''Makes sure all date and datetimes are in the local timezone.''' for field_name, field_value in event.items(): if isinstance(field_value, ical...
38.556962
118
0.613263
367
3,046
4.948229
0.299728
0.039648
0.029736
0.039648
0.081498
0
0
0
0
0
0
0.007175
0.267892
3,046
79
119
38.556962
0.807175
0.017072
0
0.194444
0
0
0.08715
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aff72387016228f48c5464ab77b79198ae7420fe
666
py
Python
cloud_storage/migrations/0005_auto_20200325_1527.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
cloud_storage/migrations/0005_auto_20200325_1527.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
cloud_storage/migrations/0005_auto_20200325_1527.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-03-25 20:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('content', '0018_auto_20200323_1458'), ('cloud_storage', '0004_auto_20200323_1458'), ] operations = [ ...
31.714286
242
0.671171
80
666
5.4
0.6625
0.055556
0.064815
0.101852
0
0
0
0
0
0
0
0.086629
0.202703
666
20
243
33.3
0.72693
0.064565
0
0
1
0
0.257649
0.074074
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
aff8c91472a979c685bc62f9b4cf5e164ace5358
7,297
py
Python
test/facts_test.py
chalothon/CLIPS_1
5f1489839893bce8e9cbed6c0d4499ee711274c0
[ "BSD-3-Clause" ]
null
null
null
test/facts_test.py
chalothon/CLIPS_1
5f1489839893bce8e9cbed6c0d4499ee711274c0
[ "BSD-3-Clause" ]
null
null
null
test/facts_test.py
chalothon/CLIPS_1
5f1489839893bce8e9cbed6c0d4499ee711274c0
[ "BSD-3-Clause" ]
null
null
null
import os import unittest from tempfile import mkstemp from clips import Environment, Symbol, CLIPSError, TemplateSlotDefaultType DEFTEMPLATE = """(deftemplate MAIN::template-fact (slot int (type INTEGER) (allowed-values 0 1 2 3 4 5 6 7 8 9)) (slot float (type FLOAT)) (slot str (type STRING)) (slot symbo...
34.582938
76
0.602439
843
7,297
5.117438
0.155397
0.11822
0.046361
0.007418
0.516922
0.434168
0.377608
0.325684
0.282568
0.221836
0
0.017058
0.252844
7,297
210
77
34.747619
0.774211
0.049746
0
0.276316
0
0.013158
0.140636
0
0
0
0
0
0.467105
1
0.078947
false
0
0.026316
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
1
0
0
0
0
0
0
0
0
0
1
affe2044af63f644aee4e740a4f0c80218fe1e56
15,756
py
Python
src/parser.py
birendpatel/pylox
360976713c920aa48dbc4fa717940b6a56c2e37d
[ "MIT" ]
null
null
null
src/parser.py
birendpatel/pylox
360976713c920aa48dbc4fa717940b6a56c2e37d
[ "MIT" ]
null
null
null
src/parser.py
birendpatel/pylox
360976713c920aa48dbc4fa717940b6a56c2e37d
[ "MIT" ]
null
null
null
# Copyright (C) 2021 Biren Patel # MIT License # Generate an abstract syntax tree via a recusive descent parser from src.error import ErrorHandler, ParseError from src.tokenizer import Token, TokenType from src.node import Binary, Unary, Variable, Literal, Grouping, Assignment from src.node import Logical from src.n...
30.183908
80
0.543666
1,695
15,756
4.986431
0.182891
0.042593
0.056791
0.081992
0.327023
0.2823
0.237577
0.211429
0.157123
0.146001
0
0.001641
0.342536
15,756
521
81
30.241843
0.814268
0.241178
0
0.410526
1
0
0.049574
0
0
0
0
0
0.010526
1
0.098246
false
0
0.021053
0
0.263158
0.007018
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
b3029d6cc1cd878122b9852d8043227261cc1313
759
py
Python
beetsplug/autofix/task/missing_file_checker.py
adamjakab/BeetsPluginAutofix
72a0ddaf35b8d04bd9af082de399251b42347a1b
[ "MIT" ]
8
2020-05-11T13:07:53.000Z
2022-03-23T23:40:56.000Z
beetsplug/autofix/task/missing_file_checker.py
adamjakab/BeetsPluginAutofix
72a0ddaf35b8d04bd9af082de399251b42347a1b
[ "MIT" ]
4
2020-03-28T19:49:15.000Z
2022-02-27T07:27:23.000Z
beetsplug/autofix/task/missing_file_checker.py
adamjakab/BeetsPluginAutofix
72a0ddaf35b8d04bd9af082de399251b42347a1b
[ "MIT" ]
null
null
null
# Copyright: Copyright (c) 2020., Adam Jakab # # Author: Adam Jakab <adam at jakab dot pro> # Created: 24/03/2020, 15.58 # License: See LICENSE.txt import time from os import path from beetsplug.autofix.task import Task class MissingFileCheckerTask(Task): removed = False def __init__(self): supe...
24.483871
81
0.636364
98
759
4.806122
0.510204
0.067941
0.063694
0
0
0
0
0
0
0
0
0.02812
0.250329
759
30
82
25.3
0.799649
0.184453
0
0
0
0
0.044118
0
0
0
0
0
0
1
0.222222
false
0
0.166667
0.055556
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b302e39b50d6e8f49d6b030a40e81b584268228f
1,016
py
Python
shortlinks/views.py
mr-kimia/shortlinks
8cecbdb69d7f99b488275ab16e376baf43e046e7
[ "MIT" ]
null
null
null
shortlinks/views.py
mr-kimia/shortlinks
8cecbdb69d7f99b488275ab16e376baf43e046e7
[ "MIT" ]
null
null
null
shortlinks/views.py
mr-kimia/shortlinks
8cecbdb69d7f99b488275ab16e376baf43e046e7
[ "MIT" ]
null
null
null
from flask import abort, redirect, render_template, request from shortlinks import app from shortlinks.links import add_link, get_link, get_most_popular_links from shortlinks.validators import LinkForm @app.route('/') def index(): return render_template('index.html', links=get_most_popular_links()) @app.route('/...
28.222222
72
0.697835
143
1,016
4.818182
0.384615
0.060958
0.060958
0.055152
0
0
0
0
0
0
0
0.021028
0.15748
1,016
35
73
29.028571
0.783879
0
0
0
0
0
0.119094
0
0
0
0
0
0
1
0.172414
false
0
0.137931
0.103448
0.482759
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
b306be1a10d94e50105b35cbe5b4eff1ff5ba381
225
py
Python
torchtest.py
juanman2/mlpy
e2db0cadc347cd19dc6150a55458dcdfc1a26eac
[ "MIT" ]
null
null
null
torchtest.py
juanman2/mlpy
e2db0cadc347cd19dc6150a55458dcdfc1a26eac
[ "MIT" ]
null
null
null
torchtest.py
juanman2/mlpy
e2db0cadc347cd19dc6150a55458dcdfc1a26eac
[ "MIT" ]
null
null
null
import torch MAX_PRIME = 100 sieve = [True] * MAX_PRIME for i in range(2, MAX_PRIME): if sieve[i]: print(i) for j in range(i*i, MAX_PRIME, i): sieve[j] = False x = torch.rand(5, 3) print(x)
16.071429
42
0.568889
40
225
3.1
0.5
0.258065
0
0
0
0
0
0
0
0
0
0.037975
0.297778
225
13
43
17.307692
0.746835
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.2
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
b3075411a200c434394ae2c39bdc55c19f72e0c4
2,535
py
Python
python/detect.py
rondagdag/node-python-opencv
c02f00f7a142335f2ccf9249328d5017376d869f
[ "MIT" ]
null
null
null
python/detect.py
rondagdag/node-python-opencv
c02f00f7a142335f2ccf9249328d5017376d869f
[ "MIT" ]
null
null
null
python/detect.py
rondagdag/node-python-opencv
c02f00f7a142335f2ccf9249328d5017376d869f
[ "MIT" ]
1
2018-10-09T16:47:02.000Z
2018-10-09T16:47:02.000Z
#!/usr/bin/env python """face-detection.py: Face detection using openCV.""" __author__ = "Aldo Vargas" __copyright__ = "Copyright 2015 Aldux.net" __license__ = "GPL" __version__ = "1" __maintainer__ = "Aldo Vargas" __email__ = "alduxvm@gmail.com" __status__ = "Development" import sys import cv, os, csv import numpy...
32.922078
90
0.568836
297
2,535
4.683502
0.447811
0.050324
0.037383
0.020129
0
0
0
0
0
0
0
0.022767
0.32426
2,535
76
91
33.355263
0.789259
0.095464
0
0.035714
0
0
0.06222
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b30a0b7c3af6f6970b3049b4d2e8368dff04a7c7
2,970
py
Python
tests/ami/test_ami.py
keith-turner/cloud-images
ca39fec2169850ae8994e19b40a2ecc8676773be
[ "MIT" ]
59
2021-02-03T21:04:31.000Z
2022-03-16T18:45:08.000Z
tests/ami/test_ami.py
keith-turner/cloud-images
ca39fec2169850ae8994e19b40a2ecc8676773be
[ "MIT" ]
44
2021-02-22T15:39:09.000Z
2022-03-08T21:37:14.000Z
tests/ami/test_ami.py
keith-turner/cloud-images
ca39fec2169850ae8994e19b40a2ecc8676773be
[ "MIT" ]
19
2021-03-08T12:30:52.000Z
2022-03-29T03:31:16.000Z
import pytest def test_ec2user_user_group(host): """Check if the ec2-user user created in a ec2-user group and its UID and GUID values is 1000""" assert host.user("ec2-user").exists assert host.group("ec2-user").exists assert host.user("ec2-user").uid == 1000 assert host.user("ec2-user").gid == 10...
38.571429
111
0.712795
442
2,970
4.61991
0.300905
0.058766
0.032321
0.03526
0.331048
0.238981
0.130264
0.100881
0
0
0
0.013736
0.142088
2,970
76
112
39.078947
0.787677
0.215152
0
0.088889
0
0
0.211404
0.089474
0
0
0
0
0.377778
1
0.222222
false
0.022222
0.022222
0
0.244444
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
b30a76568d72771b68e5aeb612a0e245ba0315da
17,340
py
Python
src/main/python/train_esitmator_distributed.py
moony320/shifu
86b00da5f448d2ddd3de6e733a19047d631bc11c
[ "Apache-2.0" ]
200
2015-01-08T15:15:28.000Z
2022-01-07T12:24:09.000Z
src/main/python/train_esitmator_distributed.py
moony320/shifu
86b00da5f448d2ddd3de6e733a19047d631bc11c
[ "Apache-2.0" ]
457
2015-01-05T02:07:35.000Z
2021-11-12T12:29:14.000Z
src/main/python/train_esitmator_distributed.py
moony320/shifu
86b00da5f448d2ddd3de6e733a19047d631bc11c
[ "Apache-2.0" ]
128
2015-01-06T08:26:44.000Z
2022-03-23T07:32:34.000Z
# -*- coding: utf-8 -*- # Copyright [2012-2018] PayPal Software Foundation # # 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 requir...
40.8
176
0.656228
2,067
17,340
5.249637
0.18626
0.046447
0.023592
0.023224
0.263754
0.21104
0.148373
0.122569
0.113261
0.085153
0
0.007016
0.235525
17,340
424
177
40.896226
0.811557
0.06684
0
0.183544
0
0
0.129227
0.007579
0
0
0
0
0
0
null
null
0
0.050633
null
null
0.047468
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
b30eede8f9a9fe653414e5ff83041540797b270a
1,873
py
Python
setup.py
awd4/kmeans
889922a76fa4669e237d6b082c8b0608f2112f56
[ "MIT" ]
5
2016-01-22T22:03:16.000Z
2021-12-28T14:11:12.000Z
setup.py
awd4/kmeans
889922a76fa4669e237d6b082c8b0608f2112f56
[ "MIT" ]
null
null
null
setup.py
awd4/kmeans
889922a76fa4669e237d6b082c8b0608f2112f56
[ "MIT" ]
null
null
null
from distutils.core import setup from Cython.Build import cythonize import os import sys import site import shutil def build(): # save current working directory; switch into the directory containing the setup.py file odir = os.getcwd() os.chdir( os.path.dirname( os.path.realpath(__file__) ) ) module...
31.745763
105
0.607048
245
1,873
4.514286
0.44898
0.037975
0.0217
0.025316
0.056058
0.056058
0.056058
0
0
0
0
0.003695
0.277629
1,873
58
106
32.293103
0.813747
0.2504
0
0
0
0
0.122933
0
0
0
0
0
0
0
null
null
0
0.153846
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
b312793154cc37f8bfabfc344ea2a54738be4cf9
1,795
py
Python
stories/tests.py
danknjoroge/instagram
f256a5aa36b362bb407ac3e86c1e0a115fa6bae4
[ "MIT" ]
null
null
null
stories/tests.py
danknjoroge/instagram
f256a5aa36b362bb407ac3e86c1e0a115fa6bae4
[ "MIT" ]
null
null
null
stories/tests.py
danknjoroge/instagram
f256a5aa36b362bb407ac3e86c1e0a115fa6bae4
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import Image, Profile, Comments from django.contrib.auth.models import User # Create your tests here. class TestImage(TestCase): def setUp(self): self.user = User(profile="Profile") self.user.save() self.new_image = Image(image="image", image...
26.014493
137
0.658496
222
1,795
5.216216
0.211712
0.062176
0.051813
0.051813
0.391192
0.342832
0.292746
0.292746
0.252159
0.165803
0
0.004958
0.21337
1,795
68
138
26.397059
0.815156
0.012813
0
0.333333
0
0
0.037917
0
0
0
0
0
0.142857
1
0.261905
false
0
0.071429
0
0.404762
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
b316de2ac5cc19e93c53930b76aa634f07f8339b
1,246
py
Python
PYTHON/fgsd_svm_demo.py
Anwar-Said/FGSD
80c525b882584272e4c79d87fc4eef119d83f6cd
[ "MIT" ]
25
2017-11-03T15:47:25.000Z
2021-11-21T17:06:26.000Z
PYTHON/fgsd_svm_demo.py
Anwar-Said/FGSD
80c525b882584272e4c79d87fc4eef119d83f6cd
[ "MIT" ]
2
2019-12-26T11:49:33.000Z
2020-02-26T19:30:47.000Z
PYTHON/fgsd_svm_demo.py
Anwar-Said/FGSD
80c525b882584272e4c79d87fc4eef119d83f6cd
[ "MIT" ]
7
2018-06-15T05:57:38.000Z
2021-12-22T18:31:25.000Z
import pandas as pd import numpy as np np.random.seed(163) from sklearn.svm import SVC from sklearn.cross_validation import StratifiedKFold # Load the precomputed X mutag feature matrix. print "Loading Feature Matrix..." df=pd.read_csv('X_mutag.csv',header=None) X=np.array(df) # Load the precomputed Y mutag feature...
27.086957
54
0.714286
198
1,246
4.434343
0.40404
0.068337
0.037585
0.071754
0.107062
0
0
0
0
0
0
0.027829
0.134831
1,246
45
55
27.688889
0.786642
0.178973
0
0
0
0
0.162883
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
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
1
0
0
0
0
0
0
0
0
1
b31936d418cc979aca30474f9fc49ebb23699c2b
8,694
py
Python
app/models/__init__.py
ardzix/instalment-app
6a86d62497f51865a784d3e7e8e18175b8303480
[ "MIT" ]
1
2018-03-10T17:55:05.000Z
2018-03-10T17:55:05.000Z
app/models/__init__.py
ardzix/instalment-app
6a86d62497f51865a784d3e7e8e18175b8303480
[ "MIT" ]
null
null
null
app/models/__init__.py
ardzix/instalment-app
6a86d62497f51865a784d3e7e8e18175b8303480
[ "MIT" ]
null
null
null
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # # Author: Arif Dzikrullah # ardzix@hotmail.com # # File Created: Wednesday, 10th January 2018 11:38:17 pm # Last Modified: Sunday, 4th March 2018 6:26:29 pm # Modified By: Arif Dzikrullah (ardzix@hotmail.com) # # Give the best to the world # Copyri...
41.598086
149
0.695537
1,031
8,694
5.609117
0.197866
0.11603
0.035967
0.047034
0.578247
0.546602
0.494207
0.42452
0.398063
0.398063
0
0.011155
0.185415
8,694
209
150
41.598086
0.805422
0.045779
0
0.445161
0
0
0.103344
0.030303
0
0
0
0
0
1
0.077419
false
0
0.077419
0.058065
0.664516
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
b31ad3f64306dbe7622160d5c2fb634df2d9b76a
299
py
Python
backend/timeline/urls.py
harmanen/demo-react-django
3b9a2e9194e2e37686c70978a0b84716402c8465
[ "MIT" ]
null
null
null
backend/timeline/urls.py
harmanen/demo-react-django
3b9a2e9194e2e37686c70978a0b84716402c8465
[ "MIT" ]
null
null
null
backend/timeline/urls.py
harmanen/demo-react-django
3b9a2e9194e2e37686c70978a0b84716402c8465
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path( "timelines/<int:pk>", views.TimelineViewSet.as_view( { "get": "retrieve", "patch": "partial_update", } ), name="timelines_pk", ), ]
19.933333
42
0.471572
25
299
5.52
0.76
0
0
0
0
0
0
0
0
0
0
0
0.401338
299
15
43
19.933333
0.77095
0
0
0.142857
0
0
0.2
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
b321a6c82a18438835281140695892d536249ba2
1,178
py
Python
aiohue/v2/models/device_power.py
balloob/aiohue
f50478027ccf3b8ee6b804abb9fb48ea436e1561
[ "Apache-2.0" ]
14
2018-03-02T15:39:19.000Z
2020-02-25T12:52:40.000Z
aiohue/v2/models/device_power.py
balloob/aiohue
f50478027ccf3b8ee6b804abb9fb48ea436e1561
[ "Apache-2.0" ]
16
2018-03-19T15:02:18.000Z
2020-02-08T02:06:07.000Z
aiohue/v2/models/device_power.py
balloob/aiohue
f50478027ccf3b8ee6b804abb9fb48ea436e1561
[ "Apache-2.0" ]
14
2018-03-17T10:43:30.000Z
2020-03-12T10:49:51.000Z
""" Model(s) for device_power resource on HUE bridge. https://developers.meethue.com/develop/hue-api-v2/api-reference/#resource_device_power """ from dataclasses import dataclass from enum import Enum from typing import Optional from .resource import ResourceIdentifier, ResourceTypes class BatteryState(Enum): ...
23.098039
94
0.727504
141
1,178
6
0.489362
0.052009
0.052009
0.059102
0.167849
0.167849
0.167849
0.167849
0.167849
0.167849
0
0.003125
0.185059
1,178
50
95
23.56
0.878125
0.48472
0
0.105263
0
0
0.031022
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.894737
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
b324ae72597da65a8f8d4b2c41fc9079f29c110a
3,968
py
Python
tributary/utils.py
mohanrajofficial87/tributary
0d5c540c21b7de4addf48227161818c6322e4429
[ "Apache-2.0" ]
1
2022-03-23T10:50:42.000Z
2022-03-23T10:50:42.000Z
tributary/utils.py
mohanrajofficial87/tributary
0d5c540c21b7de4addf48227161818c6322e4429
[ "Apache-2.0" ]
null
null
null
tributary/utils.py
mohanrajofficial87/tributary
0d5c540c21b7de4addf48227161818c6322e4429
[ "Apache-2.0" ]
null
null
null
import functools import inspect import numpy as np import pandas as pd from collections import namedtuple from .base import StreamEnd def _either_type(f): """Utility decorator to allow for either no-arg decorator or arg decorator Args: f (callable): Callable to decorate """ ...
26.630872
85
0.612147
452
3,968
5.267699
0.314159
0.026879
0.01848
0.026879
0.094078
0.073919
0.053759
0.026039
0
0
0
0.007914
0.299395
3,968
148
86
26.810811
0.848561
0.150454
0
0.089888
0
0
0.015453
0
0
0
0
0.013514
0
1
0.11236
false
0
0.134831
0.011236
0.494382
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
b327468220afda6a86953eeb1b973fb63843aa10
1,736
py
Python
mk/bin/process_ncsl_sloc.py
lydiaxing/fprime
f6b3e03f89e9aca1614243c9896d4a72aa0cc726
[ "Apache-2.0" ]
2
2020-09-08T05:39:05.000Z
2021-05-04T14:58:51.000Z
mk/bin/process_ncsl_sloc.py
JPLOpenSource/fprime-sw-Rel1.0
18364596c24fa369c938ef8758e5aa945ecc6a9b
[ "Apache-2.0" ]
2
2019-02-27T03:17:15.000Z
2019-03-01T22:34:30.000Z
mk/bin/process_ncsl_sloc.py
JPLOpenSource/fprime-sw-Rel1.0
18364596c24fa369c938ef8758e5aa945ecc6a9b
[ "Apache-2.0" ]
3
2019-02-17T20:41:15.000Z
2019-02-26T21:06:50.000Z
''' Created on Feb 23, 2015 @author: tcanham ''' import sys import optparse verbose = False parser = optparse.OptionParser() parser.add_option("-d", dest="description", help="Description of output") parser.add_option("-m", dest="module", help="Module") parser.add_option("-o", dest="output", help="Output format: cs...
25.529412
107
0.661866
262
1,736
4.259542
0.270992
0.056452
0.044803
0.067204
0.215054
0.189964
0.154122
0.154122
0.154122
0.154122
0
0.040972
0.170507
1,736
68
108
25.529412
0.734028
0.033986
0
0.288889
0
0
0.209231
0.029538
0
0
0
0
0
0
null
null
0
0.044444
null
null
0.133333
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
b327a2a05a6f8a92b54942d8b8843c84b56d36ff
402
py
Python
setup.py
anthonyblanchflower/dictlisttools
003c6552410a9d9315d315e5cf9b80ea771101b8
[ "MIT" ]
null
null
null
setup.py
anthonyblanchflower/dictlisttools
003c6552410a9d9315d315e5cf9b80ea771101b8
[ "MIT" ]
null
null
null
setup.py
anthonyblanchflower/dictlisttools
003c6552410a9d9315d315e5cf9b80ea771101b8
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='dictlisttools', version='1.0.0', packages=['dictlisttools', 'dictlisttools.tests'], test_suite='dictlisttools.tests', url='https://github.com/anthonyblanchflower/dictlisttools', author='Anthony Blanchflower', author_email='anthony.blanchflower@btint...
30.923077
67
0.736318
42
402
7
0.738095
0.122449
0
0
0
0
0
0
0
0
0
0.008646
0.136816
402
12
68
33.5
0.838617
0
0
0
0
0
0.559701
0.087065
0
0
0
0
0
1
0
true
0
0.090909
0
0.090909
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
b32a5b11e9ce1b796056a215d1b48aa45f5c6636
1,555
py
Python
doajtest/unit/test_prune_marvel.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
47
2015-04-24T13:13:39.000Z
2022-03-06T03:22:42.000Z
doajtest/unit/test_prune_marvel.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
1,215
2015-01-02T14:29:38.000Z
2022-03-28T14:19:13.000Z
doajtest/unit/test_prune_marvel.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
14
2015-11-27T13:01:23.000Z
2021-05-21T07:57:23.000Z
import datetime, calendar from dateutil.relativedelta import relativedelta from freezegun import freeze_time from doajtest.helpers import DoajTestCase from portality.scripts.prune_marvel import generate_delete_pattern class TestPruneMarvel(DoajTestCase): @classmethod def setUpClass(cls): cls.runs = ...
37.926829
185
0.650161
183
1,555
5.327869
0.393443
0.173333
0.116923
0.055385
0.069744
0
0
0
0
0
0
0.026724
0.254019
1,555
40
186
38.875
0.813793
0.029582
0
0.193548
0
0
0.084329
0.013944
0
0
0
0
0.064516
1
0.16129
false
0.064516
0.16129
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b32ad25b8f5811c9f7d2dfb5c2f99a6fa8a6d9e1
808
py
Python
handy_dict/core.py
fferegrino/handy-dict
fb9cab0c29b1d9d07862812bbf8c018f74f83e44
[ "Apache-2.0" ]
null
null
null
handy_dict/core.py
fferegrino/handy-dict
fb9cab0c29b1d9d07862812bbf8c018f74f83e44
[ "Apache-2.0" ]
2
2021-09-28T01:24:19.000Z
2022-02-26T07:00:43.000Z
handy_dict/core.py
fferegrino/handy-dict
fb9cab0c29b1d9d07862812bbf8c018f74f83e44
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 01_handy_dict.ipynb (unless otherwise specified). __all__ = ['HandyDict'] # Internal Cell from collections import UserDict # Internal Cell from .apply_keyed import apply_keyed from .return_keyed import return_keyed from .multi_get import multi_get # Cell class HandyDict(U...
28.857143
93
0.69802
107
808
5.046729
0.411215
0.059259
0.059259
0.07037
0.1
0
0
0
0
0
0
0.003145
0.212871
808
28
94
28.857143
0.845912
0.153465
0
0
1
0
0.013235
0
0
0
0
0
0
1
0.176471
false
0
0.235294
0.058824
0.705882
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
b32ff4bed593d7ae2f0a822a62019655619deac3
923
py
Python
nicos_virt_mlz/stressi/setups/eulerian.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_virt_mlz/stressi/setups/eulerian.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_virt_mlz/stressi/setups/eulerian.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
description = 'STRESS-SPEC setup with Eulerian cradle' group = 'basic' includes = [ 'standard', 'sampletable', ] sysconfig = dict( datasinks = ['caresssink'], ) devices = dict( chis = device('nicos.devices.generic.Axis', description = 'Simulated CHIS axis', motor = device('nicos.devi...
22.512195
60
0.514626
79
923
6.012658
0.531646
0.092632
0.151579
0.210526
0.623158
0.623158
0.501053
0.294737
0.294737
0.294737
0
0.039344
0.339112
923
40
61
23.075
0.739344
0
0
0.457143
0
0
0.286024
0.130011
0
0
0
0
0
1
0
false
0
0
0
0
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
b3337e151220aeee99a641a4ecd9cb878ea2301e
912
py
Python
bookwyrm/models/attachment.py
daveross/bookwyrm
d3251f511c184ae6b94b191b33919849c81ef2c2
[ "CC0-1.0" ]
null
null
null
bookwyrm/models/attachment.py
daveross/bookwyrm
d3251f511c184ae6b94b191b33919849c81ef2c2
[ "CC0-1.0" ]
null
null
null
bookwyrm/models/attachment.py
daveross/bookwyrm
d3251f511c184ae6b94b191b33919849c81ef2c2
[ "CC0-1.0" ]
null
null
null
''' media that is posted in the app ''' from django.db import models from bookwyrm import activitypub from .base_model import ActivitypubMixin from .base_model import BookWyrmModel from . import fields class Attachment(ActivitypubMixin, BookWyrmModel): ''' an image (or, in the future, video etc) associated with ...
29.419355
79
0.691886
109
912
5.706422
0.587156
0.038585
0.041801
0.061093
0.106109
0.106109
0
0
0
0
0
0
0.212719
912
30
80
30.4
0.866295
0.197368
0
0
0
0
0.043909
0
0
0
0
0
0
1
0
false
0
0.25
0
0.65
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
b336b736e14aad569fe7ec92a30c4dad07994907
3,507
py
Python
dash_carbon_components/Button.py
Matheus-Rangel/dash-carbon-components
e3f4aa4a8d649e2740db32677040f2548ef5da48
[ "Apache-2.0" ]
4
2021-04-25T22:55:25.000Z
2021-12-10T04:52:30.000Z
dash_carbon_components/Button.py
Matheus-Rangel/dash-carbon-components
e3f4aa4a8d649e2740db32677040f2548ef5da48
[ "Apache-2.0" ]
null
null
null
dash_carbon_components/Button.py
Matheus-Rangel/dash-carbon-components
e3f4aa4a8d649e2740db32677040f2548ef5da48
[ "Apache-2.0" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Button(Component): """A Button component. Carbon Button Keyword arguments: - children (list of a list of or a singular dash component, string or numbers | a list of or a singular dash component, st...
73.0625
464
0.712575
448
3,507
5.493304
0.319196
0.087769
0.036571
0.026412
0.186916
0.186916
0.130028
0.130028
0.130028
0.130028
0
0.000344
0.170231
3,507
47
465
74.617021
0.845361
0.532079
0
0
1
0
0.20257
0.013464
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
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
b3375e7bb9d5303e0dd64f21f63c1a843666898d
1,187
py
Python
dtect_connector/ComponentType.py
tetradsensors/gcp-functions
1c87bfa8edd70ae5f58968d18bb11ec3669fccb3
[ "MIT" ]
null
null
null
dtect_connector/ComponentType.py
tetradsensors/gcp-functions
1c87bfa8edd70ae5f58968d18bb11ec3669fccb3
[ "MIT" ]
null
null
null
dtect_connector/ComponentType.py
tetradsensors/gcp-functions
1c87bfa8edd70ae5f58968d18bb11ec3669fccb3
[ "MIT" ]
null
null
null
from enum import Enum class ComponentType(Enum): # Secondary subtypes AREA = 0 DENSITY = 1 DISTANCE = 2 ENERGY = 3 LENGTH = 4 MASS = 5 POWER = 6 SPEED = 7 VOLUME = 8 WORK = 9 ACCELERATION = 10 DISPLACEMENT = 11 DRAG = 12 FORCE = 13 FRICTION = 14 IMPU...
16.957143
68
0.553496
141
1,187
4.624113
0.900709
0.030675
0.039877
0
0
0
0
0
0
0
0
0.133333
0.393429
1,187
70
69
16.957143
0.772222
0.149115
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.018182
0
1
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
b339af4f61a180e23b7fb6da9b28db9bf0e75ee3
7,391
py
Python
waftools/modules.py
emersys/machine-stack
a9ac65b133a555703979781c8a6453a0f9e36b3a
[ "BSD-2-Clause" ]
1
2016-10-28T20:43:19.000Z
2016-10-28T20:43:19.000Z
waftools/modules.py
emersys/machine-stack
a9ac65b133a555703979781c8a6453a0f9e36b3a
[ "BSD-2-Clause" ]
null
null
null
waftools/modules.py
emersys/machine-stack
a9ac65b133a555703979781c8a6453a0f9e36b3a
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 import os import shutil from waflib.Configure import conf @conf def template_renderer(ctx, srcpath, dstpath, format=True, executable=False): print format kwargs = {"VIRTUAL_ENV": ctx.out_dir} kwargs.update(os.environ) dstpath = os.path.join(ctx.out_dir, dstpat...
25.933333
95
0.590313
975
7,391
4.417436
0.209231
0.017646
0.037149
0.030183
0.452055
0.393545
0.347109
0.319248
0.310657
0.260971
0
0.011922
0.262346
7,391
284
96
26.024648
0.778063
0.012583
0
0.569038
0
0.004184
0.489992
0.077461
0
0
0
0
0
0
null
null
0
0.012552
null
null
0.004184
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
b33ab49cee4c5ea9f7864a6f959174835dc376f2
248
py
Python
561. Array Partition I/main.py
Competitive-Programmers-Community/LeetCode
841fdee805b1a626e9f1cd0e12398d25054638af
[ "MIT" ]
2
2019-10-05T09:48:20.000Z
2019-10-05T15:40:01.000Z
561. Array Partition I/main.py
Competitive-Programmers-Community/LeetCode
841fdee805b1a626e9f1cd0e12398d25054638af
[ "MIT" ]
null
null
null
561. Array Partition I/main.py
Competitive-Programmers-Community/LeetCode
841fdee805b1a626e9f1cd0e12398d25054638af
[ "MIT" ]
3
2020-09-27T05:48:30.000Z
2021-08-13T10:07:08.000Z
class Solution: def arrayPairSum(self, nums): """ :type nums: List[int] :rtype: int """ nums.sort() s=0 for i in range(0,len(nums),2): s+=nums[i] return s
19.076923
38
0.41129
29
248
3.517241
0.689655
0
0
0
0
0
0
0
0
0
0
0.022388
0.459677
248
12
39
20.666667
0.738806
0.133065
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
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
b33e4b20d110a1dad0ef3a819c8a915ebf9c3e2c
304
py
Python
py/search_record.py
tianhanfangyan/Es-py
6589bc7cbd6db535e74ac6dca8f133f3c0b581a6
[ "MIT" ]
4
2019-06-17T11:29:48.000Z
2019-07-11T05:40:26.000Z
py/search_record.py
tianhanfangyan/elasticsearch-py
6589bc7cbd6db535e74ac6dca8f133f3c0b581a6
[ "MIT" ]
null
null
null
py/search_record.py
tianhanfangyan/elasticsearch-py
6589bc7cbd6db535e74ac6dca8f133f3c0b581a6
[ "MIT" ]
null
null
null
#! /usr/bin/env python #! coding:utf-8 from elasticsearch import Elasticsearch # connection es = Elasticsearch(["connection"]) # search record def search_record(): body = { "query": { "match_all": {} } } res = es.search(index="test", body=body) print(res)
16
44
0.585526
33
304
5.333333
0.69697
0.261364
0
0
0
0
0
0
0
0
0
0.004484
0.266447
304
18
45
16.888889
0.784753
0.197368
0
0
0
0
0.116667
0
0
0
0
0
0
1
0.1
false
0
0.1
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
b35099328fd668f51b902792927884a9faab32fb
1,480
py
Python
tests/test_register_config.py
zhangzhen273/python-dubbo-rpc
1f841e9954796c644f2b0dccdf09f00dd1e158af
[ "Apache-2.0" ]
null
null
null
tests/test_register_config.py
zhangzhen273/python-dubbo-rpc
1f841e9954796c644f2b0dccdf09f00dd1e158af
[ "Apache-2.0" ]
null
null
null
tests/test_register_config.py
zhangzhen273/python-dubbo-rpc
1f841e9954796c644f2b0dccdf09f00dd1e158af
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ 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"); y...
38.947368
97
0.77027
205
1,480
5.468293
0.560976
0.053524
0.040143
0.0562
0
0
0
0
0
0
0
0.03742
0.151351
1,480
37
98
40
0.855096
0.632432
0
0
0
0
0.167308
0.082692
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b350faaf03d4c977ca2ef23e07b5935abce9c4a5
19,909
py
Python
ref/bibconvert.py
limbo018/limbo018.github.io
d26f07fb0fdfb37f1369d850bda4630c5e14a6b7
[ "MIT" ]
2
2017-07-18T03:07:06.000Z
2020-07-22T09:24:40.000Z
ref/bibconvert.py
limbo018/limbo018.github.io
d26f07fb0fdfb37f1369d850bda4630c5e14a6b7
[ "MIT" ]
null
null
null
ref/bibconvert.py
limbo018/limbo018.github.io
d26f07fb0fdfb37f1369d850bda4630c5e14a6b7
[ "MIT" ]
12
2018-05-31T01:38:41.000Z
2020-07-03T22:17:55.000Z
# -*- coding: utf-8 -*- ######################################################################### # File Name: bibconvert.py # Author: Yibo Lin # mail: yibolin@utexas.edu # Created Time: Fri Dec 9 12:00:28 2016 ######################################################################### #!/bin/python import sys import ...
37.493409
128
0.580592
1,914
19,909
6.032915
0.137931
0.007967
0.008054
0.007275
0.725903
0.700268
0.613926
0.587252
0.565168
0.54014
0
0.003806
0.260937
19,909
530
129
37.564151
0.780957
0.061379
0
0.603037
0
0.006508
0.187446
0.010164
0
0
0
0
0.004338
1
0.02603
false
0
0.010846
0
0.045553
0.160521
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
b35362c446a4060635748b0a8d2c752be89220b1
2,735
py
Python
pymaclab/dsge/translators/translators.py
radovankavicky/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
96
2015-01-25T05:59:56.000Z
2021-12-29T14:05:22.000Z
pymaclab/dsge/translators/translators.py
1zinnur9/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
3
2015-12-17T19:25:46.000Z
2018-06-19T07:05:20.000Z
pymaclab/dsge/translators/translators.py
1zinnur9/pymaclab
21da758f64ed0b62969c9289576f677e977cfd98
[ "Apache-2.0" ]
36
2016-01-31T15:22:01.000Z
2021-03-29T07:03:07.000Z
from copy import deepcopy from pymaclab.dsge.translators import pml_to_dynarepp from pymaclab.dsge.translators import dynarepp_to_pml from pymaclab.dsge.translators import pml_to_pml from pymaclab.dsge.parsers._dsgeparser import ff_chron_str, bb_chron_str class Translators(object): def __init__(self,other=None): ...
47.982456
107
0.668373
342
2,735
5.096491
0.190058
0.302926
0.114745
0.100975
0.636833
0.56856
0.535284
0.484796
0.296615
0.142283
0
0.009556
0.234735
2,735
57
108
47.982456
0.82322
0.020475
0
0.306122
0
0
0.031367
0.008215
0
0
0
0
0
1
0.081633
false
0
0.102041
0
0.306122
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
b357440c9735014fa3601c6209a5ef824ae7f109
1,931
py
Python
parselogs.py
Bjwebb/detecting-clouds
d2abd1e91243bad6ab76d62a7aa98a710cdc026b
[ "MIT" ]
1
2017-11-09T06:58:47.000Z
2017-11-09T06:58:47.000Z
parselogs.py
Bjwebb/detecting-clouds
d2abd1e91243bad6ab76d62a7aa98a710cdc026b
[ "MIT" ]
null
null
null
parselogs.py
Bjwebb/detecting-clouds
d2abd1e91243bad6ab76d62a7aa98a710cdc026b
[ "MIT" ]
null
null
null
import datetime import subprocess import re from collections import defaultdict # NOTE: this code ignores windspeed events since there are none in the data """ find | grep log | xargs -d'\n' cat | grep weather= | sort | uniq -c 36525 finished weather Returned from weather_status, weather=0 2905 finished weather R...
35.109091
136
0.598654
258
1,931
4.437985
0.422481
0.052402
0.082969
0.10917
0.227074
0.164192
0.164192
0
0
0
0
0.044808
0.27188
1,931
54
137
35.759259
0.769559
0.075608
0
0.153846
0
0.025641
0.162974
0.033595
0
0
0
0
0
0
null
null
0
0.102564
null
null
0.076923
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
b35804f14a5f2c8e1eb2ec7df1ea43759684f719
554
py
Python
test/testPicExif.py
xidongsheng/PicCategory
8a70dabaeab3f005116bd5dc0542aaccd16a4183
[ "Apache-2.0" ]
1
2017-08-12T15:56:11.000Z
2017-08-12T15:56:11.000Z
test/testPicExif.py
xidongsheng/PicCategory
8a70dabaeab3f005116bd5dc0542aaccd16a4183
[ "Apache-2.0" ]
null
null
null
test/testPicExif.py
xidongsheng/PicCategory
8a70dabaeab3f005116bd5dc0542aaccd16a4183
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import unittest from picture_category import pic_exif class TestPicExif(unittest.TestCase): def setUp(self): self.picFile = 'F:\\DCIM\\100ANDRO\\DSC_0004.JPG' def tearDown(self): self.picFile = None def testGetExif(self): self.assertIsNotNone(pic_exif.get_...
25.181818
77
0.67509
64
554
5.640625
0.625
0.066482
0.083102
0
0
0
0
0
0
0
0
0.017857
0.191336
554
22
78
25.181818
0.787946
0.075812
0
0
0
0
0.123772
0.062868
0
0
0
0
0.071429
1
0.214286
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b35a7a6a791e5e87d0af61cd8baf9e4347757cbe
205
py
Python
tests/test_main.py
Robpol86/PythonTemplate
791a1aa71804eaeb933179bca66c58e14c4bd614
[ "MIT" ]
2
2016-02-06T04:51:24.000Z
2017-10-02T12:46:12.000Z
tests/test_main.py
Robpol86/PythonTemplate
791a1aa71804eaeb933179bca66c58e14c4bd614
[ "MIT" ]
null
null
null
tests/test_main.py
Robpol86/PythonTemplate
791a1aa71804eaeb933179bca66c58e14c4bd614
[ "MIT" ]
1
2019-06-30T19:09:05.000Z
2019-06-30T19:09:05.000Z
"""Example test.""" from replace_me import main def test(capsys): """Example test.""" main() stdout, stderr = capsys.readouterr() assert 'Hello World!\n' == stdout assert not stderr
17.083333
40
0.629268
25
205
5.12
0.68
0.171875
0
0
0
0
0
0
0
0
0
0
0.22439
205
11
41
18.636364
0.805031
0.131707
0
0
0
0
0.083832
0
0
0
0
0
0.333333
1
0.166667
false
0
0.166667
0
0.333333
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
b35d4cf00793fdc6cc99e882f770e5a067762a56
15,524
py
Python
hw5/Query.py
calvitronic/CS174A-Public-21Fall
3a4ead36f11d6ed4d8ca625caa55b3852c1ae2b7
[ "CC0-1.0" ]
1
2021-09-28T00:43:39.000Z
2021-09-28T00:43:39.000Z
hw5/Query.py
calvitronic/CS174A-Public-21Fall
3a4ead36f11d6ed4d8ca625caa55b3852c1ae2b7
[ "CC0-1.0" ]
null
null
null
hw5/Query.py
calvitronic/CS174A-Public-21Fall
3a4ead36f11d6ed4d8ca625caa55b3852c1ae2b7
[ "CC0-1.0" ]
13
2021-10-03T18:33:44.000Z
2021-12-09T10:54:09.000Z
import sqlite3 import operator import subprocess import os import csv import apsw import time import threading DB_NAME = "example.db" # A class to store flight information. class Flight: def __init__(self, fid = -1, dayOfMonth=0, carrierId=0, flightNum=0, originCity="", destCity="", time=0, capacity=0, price=0): ...
39.602041
143
0.57614
1,761
15,524
5.0318
0.208972
0.021668
0.030019
0.037919
0.241846
0.227175
0.169845
0.165557
0.128315
0.091412
0
0.009132
0.336898
15,524
391
144
39.703325
0.851661
0.060229
0
0.235602
0
0.010471
0.3987
0
0
0
0
0.017903
0
1
0.099476
false
0.020942
0.04712
0.005236
0.293194
0.005236
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
b35f48f58ce0efb663c012b6d6e63eccab43afcd
5,181
py
Python
script_format.py
marcelo-bn/tcc_marcelo
dd36f7746c15d3aaefc23872f810f71be66e31af
[ "MIT" ]
null
null
null
script_format.py
marcelo-bn/tcc_marcelo
dd36f7746c15d3aaefc23872f810f71be66e31af
[ "MIT" ]
null
null
null
script_format.py
marcelo-bn/tcc_marcelo
dd36f7746c15d3aaefc23872f810f71be66e31af
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Esse script é responsável por juntar todos os arquivos .csv de uma estação do INMET para um único arquivo .csv. Também é realizado a formatação dos dados. A base de dados pode ser encontra aqui: https://portal.inmet.gov.br/dadoshistoricos autho...
36.485915
148
0.553368
658
5,181
4.197568
0.344985
0.019551
0.017379
0.026068
0.176684
0.108617
0.108617
0.048516
0.018827
0
0
0.021751
0.316734
5,181
141
149
36.744681
0.757062
0.163289
0
0.118421
0
0
0.242789
0.078756
0
0
0
0.014184
0
1
0.039474
false
0.026316
0.026316
0
0.105263
0.039474
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
b36013fcb6bfd5fa1758e889533e0e80aab23bae
13,010
py
Python
tests/test_search.py
VIDA-NYU/auctus
49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2
[ "Apache-2.0" ]
15
2020-12-22T15:28:56.000Z
2022-03-29T08:13:49.000Z
tests/test_search.py
VIDA-NYU/auctus
49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2
[ "Apache-2.0" ]
4
2021-04-09T18:08:36.000Z
2022-03-21T17:51:05.000Z
tests/test_search.py
VIDA-NYU/auctus
49e83f9f61f3e35422b8c5fd40b9d5376b9f92a2
[ "Apache-2.0" ]
4
2021-08-12T09:34:29.000Z
2022-01-03T22:30:50.000Z
import unittest from unittest import mock from apiserver.search import parse_query from apiserver.search import join from apiserver.search.union import name_similarity from .utils import DataTestCase class TestSearch(unittest.TestCase): def test_simple(self): """Test the query generation for a simple se...
35.067385
91
0.254958
619
13,010
5.201939
0.258481
0.055901
0.02795
0.02795
0.473602
0.408696
0.35
0.331366
0.310559
0.296894
0
0.030277
0.647118
13,010
370
92
35.162162
0.671096
0.015988
0
0.426966
0
0
0.140756
0.014396
0
0
0
0
0.047753
1
0.014045
false
0
0.016854
0
0.036517
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
b360cb2db0ceb8d8b6428240257301a79db1899a
2,512
py
Python
layout.py
ShinyCode/handfree
1acb0973d6272c714e6b7f2d87a3ce4cee666a18
[ "MIT" ]
1
2018-05-25T05:12:41.000Z
2018-05-25T05:12:41.000Z
layout.py
ShinyCode/handfree
1acb0973d6272c714e6b7f2d87a3ce4cee666a18
[ "MIT" ]
null
null
null
layout.py
ShinyCode/handfree
1acb0973d6272c714e6b7f2d87a3ce4cee666a18
[ "MIT" ]
null
null
null
# proj: handfree # file: layout.py # author: Mark Sabini (GitHub: ShinyCode) # desc: This file defines remappings/layouts/special behavior. # ------------------------------------ from __future__ import print_function import keyboard import util # function: caps_remap # Basic function for remapping a key. If this...
39.873016
126
0.553344
357
2,512
3.719888
0.336134
0.216867
0.081325
0.054217
0.23494
0.23494
0.23494
0.23494
0.173193
0.173193
0
0.012764
0.189092
2,512
62
127
40.516129
0.639175
0.32922
0
0
0
0
0.121467
0
0
0
0
0
0
1
0.085714
false
0
0.085714
0
0.171429
0.028571
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
b36201adfa1b032dc785a563f2d6e0964d34b506
531
py
Python
pages/models.py
qvisty/djangostarterjq
1984a96aa73c6dbd9403f9429cbcb52eea6968ef
[ "MIT" ]
null
null
null
pages/models.py
qvisty/djangostarterjq
1984a96aa73c6dbd9403f9429cbcb52eea6968ef
[ "MIT" ]
null
null
null
pages/models.py
qvisty/djangostarterjq
1984a96aa73c6dbd9403f9429cbcb52eea6968ef
[ "MIT" ]
null
null
null
from django.db import models class Page(models.Model): title = models.CharField(max_length=120) text = models.TextField(blank=True, null=True) img_url = models.URLField() img_alt = models.CharField(max_length=120) external_url = models.URLField() external_text = models.CharField(max_length=50)...
31.235294
56
0.730697
71
531
5.225352
0.549296
0.121294
0.145553
0.19407
0.296496
0
0
0
0
0
0
0.0181
0.167608
531
16
57
33.1875
0.821267
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0.076923
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2fa13da3bb89ec9e834bbdec3e89703cb506fc4b
248
py
Python
pypebbleapi/__init__.py
bdjett/pypebbleapi
fe7b49da9c30e4a359cc6245a416862ccb3aa589
[ "MIT" ]
25
2015-02-14T08:52:35.000Z
2020-08-26T18:42:54.000Z
pypebbleapi/__init__.py
bdjett/pypebbleapi
fe7b49da9c30e4a359cc6245a416862ccb3aa589
[ "MIT" ]
13
2015-10-16T01:53:00.000Z
2021-05-26T01:00:39.000Z
pypebbleapi/__init__.py
bdjett/pypebbleapi
fe7b49da9c30e4a359cc6245a416862ccb3aa589
[ "MIT" ]
15
2015-02-14T08:52:37.000Z
2017-08-19T07:57:50.000Z
""" TODO: doc for init """ __version__ = '1.0.0' __author__ = 'Alessio Bogon' __email__ = 'youtux@example.com' __license__ = 'MIT' __copyright__ = 'Copyright 2015 Alessio Bogon' from .timeline import Timeline from .schemas import DocumentError
16.533333
46
0.737903
30
248
5.433333
0.766667
0.147239
0
0
0
0
0
0
0
0
0
0.033175
0.149194
248
14
47
17.714286
0.739336
0.072581
0
0
0
0
0.301802
0
0
0
0
0.071429
0
1
0
false
0
0.285714
0
0.285714
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
2fa28af7926fdf8051d052c295efbc1688f0959c
247
py
Python
exercises/ex10.py
EstebanDalelR/LearningPythonTheHardWay
e8db577aa4daf9781496b3db2202599046e5c6b9
[ "MIT" ]
null
null
null
exercises/ex10.py
EstebanDalelR/LearningPythonTheHardWay
e8db577aa4daf9781496b3db2202599046e5c6b9
[ "MIT" ]
null
null
null
exercises/ex10.py
EstebanDalelR/LearningPythonTheHardWay
e8db577aa4daf9781496b3db2202599046e5c6b9
[ "MIT" ]
null
null
null
tabby_cat = "\tI'm tabbed in" persian_cat = "I'm split \non a line" backslash_cat = "I \\ am a \\ cat" fat_cat = """ I'll do a list: \t*pizza \t*lasagna \t*burguers \n\t*soda """ print tabby_cat print persian_cat print backslash_cat print fat_cat
17.642857
37
0.696356
48
247
3.416667
0.520833
0.073171
0
0
0
0
0
0
0
0
0
0
0.161943
247
13
38
19
0.792271
0
0
0
0
0
0.449393
0
0
0
0
0
0
0
null
null
0
0
null
null
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2fa2f474d591269dbcc6b9f61eae54466d73194c
1,551
py
Python
src/paxos_case_2_new.py
hoanhan101/HPaxos
bf3bedfb53b92d9104ded3fde5c68e4e0baa7aa1
[ "MIT" ]
null
null
null
src/paxos_case_2_new.py
hoanhan101/HPaxos
bf3bedfb53b92d9104ded3fde5c68e4e0baa7aa1
[ "MIT" ]
null
null
null
src/paxos_case_2_new.py
hoanhan101/HPaxos
bf3bedfb53b92d9104ded3fde5c68e4e0baa7aa1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ paxos_case_2.py - Paxos Case 2 Implementation Author: Hoanh An (hoanhan@bennington.edu) Date: 10/10/17 """ import collections SuggestionID = collections.namedtuple('SuggestionID', ['number', 'uid']) """ If a Peer receive SUGGESTION: if that corresponding SUGGESTION ...
26.741379
78
0.533204
148
1,551
5.574324
0.405405
0.118788
0.127273
0.033939
0.218182
0.094545
0
0
0
0
0
0.010286
0.435848
1,551
58
79
26.741379
0.932571
0.079948
0
0
0
0
0.214286
0
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
2fa97054a877fb77196b1d23f7c72a7c1d74525f
3,628
py
Python
projects/morel/learn_model.py
xtwentian3/mjrl
e403c67c165e37d933a4bee8f80771d1046b51f3
[ "Apache-2.0" ]
null
null
null
projects/morel/learn_model.py
xtwentian3/mjrl
e403c67c165e37d933a4bee8f80771d1046b51f3
[ "Apache-2.0" ]
null
null
null
projects/morel/learn_model.py
xtwentian3/mjrl
e403c67c165e37d933a4bee8f80771d1046b51f3
[ "Apache-2.0" ]
null
null
null
""" Script to learn MDP model from data for offline policy optimization """ from os import environ environ['CUDA_DEVICE_ORDER']='PCI_BUS_ID' environ['MKL_THREADING_LAYER']='GNU' import numpy as np import copy import torch import torch.nn as nn import pickle import mjrl.envs import time as timer import argparse import ...
40.764045
110
0.640022
498
3,628
4.512048
0.373494
0.046729
0.018692
0.034268
0.097908
0.056075
0.033823
0.033823
0.033823
0
0
0.004356
0.114112
3,628
88
111
41.227273
0.694773
0.195149
0
0
0
0
0.139904
0
0
0
0
0
0.015152
1
0
false
0
0.409091
0
0.409091
0.015152
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
2fad9fbbd8c966f34bb92eb9a3005da3a6b7a93c
3,076
py
Python
code/shared/analysis/tests/test_equally_space.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
code/shared/analysis/tests/test_equally_space.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
code/shared/analysis/tests/test_equally_space.py
amarallab/waldo
e38d23d9474a0bcb7a94e685545edb0115b12af4
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Filename: test_equally_space.py Description: unit tests to test equally_space_old.py ''' __author__ = 'Peter B. Winter' __email__ = 'peterwinteriii@gmail.com' __status__ = 'prototype' # standard imports import unittest from equally_space import * import matplotlib.pyplot as plt import nump...
33.434783
79
0.637516
436
3,076
4.229358
0.357798
0.058568
0.048807
0.062364
0.164859
0.046638
0
0
0
0
0
0.037604
0.256502
3,076
91
80
33.802198
0.768693
0.242848
0
0
0
0
0.03776
0.010417
0
0
0
0.010989
0.226415
1
0.09434
false
0.018868
0.075472
0
0.207547
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
2fb266c4c48878bdc1303d1d99069b5bc1b72516
753
py
Python
apps/base/migrations/0085_projecttodoitemstate.py
KolevDarko/lifehq
88d92f5fe76f2fb6511f2a892e096d95a69985d8
[ "MIT" ]
null
null
null
apps/base/migrations/0085_projecttodoitemstate.py
KolevDarko/lifehq
88d92f5fe76f2fb6511f2a892e096d95a69985d8
[ "MIT" ]
null
null
null
apps/base/migrations/0085_projecttodoitemstate.py
KolevDarko/lifehq
88d92f5fe76f2fb6511f2a892e096d95a69985d8
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-08-20 05:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('base', '0084_auto_20190728_0424'), ] operations = [ migrations.CreateModel( name='ProjectTodoIt...
31.375
147
0.613546
80
753
5.6375
0.6625
0.053215
0.062084
0.097561
0
0
0
0
0
0
0
0.058615
0.252324
753
23
148
32.73913
0.742451
0.059761
0
0
1
0
0.13881
0.032578
0
0
0
0
0
1
0
false
0
0.117647
0
0.294118
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
2fb3bd160a0276b7eca3bdbb1fdf2781c0bfe156
1,745
py
Python
src/main/python/featureExtraction.py
nelango/ViralityAnalysis
1ddbaccb4ea04fc908a01b4964ab080f1d2b2f60
[ "MIT" ]
null
null
null
src/main/python/featureExtraction.py
nelango/ViralityAnalysis
1ddbaccb4ea04fc908a01b4964ab080f1d2b2f60
[ "MIT" ]
null
null
null
src/main/python/featureExtraction.py
nelango/ViralityAnalysis
1ddbaccb4ea04fc908a01b4964ab080f1d2b2f60
[ "MIT" ]
null
null
null
import string from nltk.corpus import stopwords from textblob import TextBlob from textblob.sentiments import NaiveBayesAnalyzer s = "It was November. Although it was not yet late, the sky was dark when I turned into Laundress Passage. Father had finished for the day, switched off the shop lights and closed the shutt...
37.934783
590
0.781089
285
1,745
4.680702
0.463158
0.033733
0.04048
0.028486
0
0
0
0
0
0
0
0.002706
0.153009
1,745
45
591
38.777778
0.899865
0.203438
0
0
0
0.045455
0.430444
0
0
0
0
0
0
0
null
null
0.045455
0.181818
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
2fb7f767332325d6b5c3cc19567830dbaf60b2d7
329
py
Python
rl/callbacks/checkpoint.py
SteffenBauer/Deep_RL
6671c723098037cef1013af9a7f434df993c9d91
[ "MIT" ]
1
2021-04-09T00:50:11.000Z
2021-04-09T00:50:11.000Z
rl/callbacks/checkpoint.py
SteffenBauer/Deep_RL
6671c723098037cef1013af9a7f434df993c9d91
[ "MIT" ]
null
null
null
rl/callbacks/checkpoint.py
SteffenBauer/Deep_RL
6671c723098037cef1013af9a7f434df993c9d91
[ "MIT" ]
null
null
null
from .callbacks import Callback class Checkpoint(Callback): def __init__(self, interval=1): self.interval = interval def epoch_end(self, stats): if stats['epoch'] % self.interval == 0: filename = '{}_{:03d}.h5'.format(stats['name'], stats['epoch']) stats['model'].save(fi...
29.909091
75
0.610942
38
329
5.131579
0.605263
0.184615
0
0
0
0
0
0
0
0
0
0.019763
0.231003
329
10
76
32.9
0.750988
0
0
0
0
0
0.094512
0
0
0
0
0
0
1
0.25
false
0
0.125
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
1
0
0
0
0
0
0
0
1
2fb7fbfac4db21820f8494924aaf9f15bdcd03d8
549
py
Python
month05/DataStructure/day03_course/day03_code/05_quickSort.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/DataStructure/day03_course/day03_code/05_quickSort.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/DataStructure/day03_course/day03_code/05_quickSort.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
""" python 快速排序 """ def quick_sort(): pass def sort(li): """进行一轮比较,给一个基准值找到一个正确位置的下标索引""" mid = li[0] l_cur = 1 r_cur = len(li) - 1 while True: # 左游标遇到比基准值大的停 while li[l_cur] <= mid and r_cur >= l_cur: l_cur += 1 while li[r_cur] > mid and r_cur >= l_cur: ...
18.3
55
0.477231
91
549
2.67033
0.340659
0.164609
0.123457
0.098765
0.26749
0.139918
0.139918
0
0
0
0
0.043353
0.369763
549
29
56
18.931034
0.65896
0.094718
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0.058824
0
0
0.176471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2fb9753a83c6abd1e5229e7049c86b876e7d6e27
3,602
py
Python
nautobot_ssot/tests/test_jobs.py
chadell/nautobot-plugin-ssot
256994da36023922bb5513f0f7a3fcad6bf379cb
[ "Apache-2.0" ]
null
null
null
nautobot_ssot/tests/test_jobs.py
chadell/nautobot-plugin-ssot
256994da36023922bb5513f0f7a3fcad6bf379cb
[ "Apache-2.0" ]
null
null
null
nautobot_ssot/tests/test_jobs.py
chadell/nautobot-plugin-ssot
256994da36023922bb5513f0f7a3fcad6bf379cb
[ "Apache-2.0" ]
null
null
null
"""Test the Job classes in nautobot_ssot.""" from django.forms import HiddenInput from django.test import TestCase from nautobot_ssot.choices import SyncLogEntryActionChoices, SyncLogEntryStatusChoices from nautobot_ssot.jobs.base import DataSyncBaseJob from nautobot_ssot.jobs import DataSource, DataTarget from nauto...
35.313725
88
0.682399
437
3,602
5.418764
0.221968
0.076858
0.051098
0.083615
0.48902
0.442568
0.410473
0.291385
0.148649
0.148649
0
0.00035
0.207385
3,602
101
89
35.663366
0.829072
0.196835
0
0.245614
0
0
0.051282
0.020655
0
0
0
0
0.298246
1
0.210526
false
0
0.105263
0
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
1
0
0
0
0
0
0
0
1
2fba2b4618e43453326af5e892ca50b58173653b
837
py
Python
pypy/module/pypyjit/test/test_pyframe.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/module/pypyjit/test/test_pyframe.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/module/pypyjit/test/test_pyframe.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
import py class TestJitTraceInteraction(object): def test_trace_while_blackholing(self): import sys l = [] printed = [] def trace(frame, event, arg): l.append((frame.f_code.co_name, event)) return trace def g(i, x): if i > x - 10: ...
22.621622
101
0.416965
97
837
3.546392
0.443299
0.023256
0.052326
0.116279
0.244186
0.197674
0.197674
0
0
0
0
0.030043
0.44325
837
36
102
23.25
0.708155
0
0
0.266667
0
0
0.032258
0
0
0
0
0
0.066667
0
null
null
0
0.066667
null
null
0.166667
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
2fc09e43ed598127911773d86d755c50ab08c25e
1,023
py
Python
mast/users/utils.py
Matfyz-Developer-Student-Club/matfyz-activity-sport-tracker
e44ccde10408ad4f864556eabba84fbfefacfd70
[ "MIT" ]
5
2020-11-11T12:38:48.000Z
2021-03-09T11:56:20.000Z
mast/users/utils.py
Matfyz-Developer-Student-Club/matfyz-activity-sport-tracker
e44ccde10408ad4f864556eabba84fbfefacfd70
[ "MIT" ]
9
2020-11-08T17:23:08.000Z
2021-04-18T19:50:15.000Z
mast/users/utils.py
Matfyz-Developer-Student-Club/matfyz-activity-sport-tracker
e44ccde10408ad4f864556eabba84fbfefacfd70
[ "MIT" ]
null
null
null
from flask import url_for from mast import mail from flask_mail import Message def send_reset_email(user): token = user.get_reset_token() msg = Message('Password Reset Request', sender='noreply@mathletics.mff.cuni.cz', recipients=[user.email]) msg.body = f'''To reset y...
26.921053
93
0.638319
133
1,023
4.827068
0.548872
0.028037
0.071651
0.080997
0.183801
0.183801
0.183801
0.183801
0.183801
0.183801
0
0
0.27175
1,023
37
94
27.648649
0.861745
0
0
0.32
0
0
0.556207
0.107527
0
0
0
0
0
1
0.08
false
0.08
0.12
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2fc683f5774df8b45dc3cd45b11c55a230742a50
2,662
py
Python
micropython/attic/server.py
hydronics2/esp8266
cdd72145ce94bdcbbabb52429c5c160f73ce4207
[ "BSD-2-Clause" ]
68
2016-11-27T18:10:35.000Z
2021-12-19T16:41:43.000Z
micropython/attic/server.py
hydronics2/esp8266
cdd72145ce94bdcbbabb52429c5c160f73ce4207
[ "BSD-2-Clause" ]
21
2017-01-03T12:23:22.000Z
2022-01-06T16:19:25.000Z
micropython/attic/server.py
hydronics2/esp8266
cdd72145ce94bdcbbabb52429c5c160f73ce4207
[ "BSD-2-Clause" ]
34
2017-01-06T16:54:45.000Z
2021-12-17T10:11:13.000Z
#!/usr/bin/env python ''' Copyright (c) dushin.net All Rights Reserved Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditio...
38.028571
77
0.68595
352
2,662
5.113636
0.485795
0.02
0.02
0.025556
0.102222
0.075556
0.075556
0.075556
0.075556
0.075556
0
0.008342
0.23441
2,662
70
78
38.028571
0.874877
0.016529
0
0.117647
0
0
0.072351
0
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2fd25b638d594b6503d00057d39e200ebd89ee95
348
py
Python
tests/test.py
kraftwerk28/Telephon
f97b1dacfcd126beb5392804155b728f800ff704
[ "MIT" ]
1
2020-04-08T17:38:53.000Z
2020-04-08T17:38:53.000Z
tests/test.py
kraftwerk28/Telephon
f97b1dacfcd126beb5392804155b728f800ff704
[ "MIT" ]
null
null
null
tests/test.py
kraftwerk28/Telephon
f97b1dacfcd126beb5392804155b728f800ff704
[ "MIT" ]
1
2020-04-13T12:23:42.000Z
2020-04-13T12:23:42.000Z
#!/usr/bin/python from utils import jsonclass from dataclasses import dataclass from typing import List @jsonclass('JsonClass.json') @dataclass class Cleanup: name: str age: int array: List[int] if __name__ == '__main__': # c1 = Cleanup(name='John', age=25, array=[12, 20]) # c1.save() c2 = C...
17.4
55
0.658046
47
348
4.702128
0.638298
0.099548
0
0
0
0
0
0
0
0
0
0.036232
0.206897
348
19
56
18.315789
0.764493
0.218391
0
0
0
0
0.081784
0
0
0
0
0
0
1
0
false
0
0.25
0
0.583333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2fd51f86f9dccfcd483cd270a6dfd48254bced83
310
py
Python
sam/__init__.py
cssat/sam-iam
8ad7f67d19fda8b5b9c08e4d3bbb57d429c45fda
[ "MIT" ]
4
2019-06-17T20:54:03.000Z
2020-10-09T22:42:21.000Z
sam/__init__.py
cssat/sam-iam
8ad7f67d19fda8b5b9c08e4d3bbb57d429c45fda
[ "MIT" ]
1
2020-05-19T20:33:00.000Z
2020-05-20T23:32:50.000Z
sam/__init__.py
cssat/sam-iam
8ad7f67d19fda8b5b9c08e4d3bbb57d429c45fda
[ "MIT" ]
5
2019-06-18T19:11:18.000Z
2021-03-25T06:25:33.000Z
from functools import wraps import click from pyfiglet import Figlet def load_logo(f): @wraps(f) def wrapped(*args, **kwargs): fig = Figlet(font='slant') click.echo(click.style(fig.renderText("SAMIAM"), fg='green')) r = f(*args, **kwargs) return r return wrapped
20.666667
69
0.622581
41
310
4.682927
0.609756
0.104167
0
0
0
0
0
0
0
0
0
0
0.245161
310
15
70
20.666667
0.820513
0
0
0
0
0
0.051447
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0
0.636364
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
2fd788e20ac4cf2de937d10516be38fdbc829821
1,302
py
Python
src/nebulo/env.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
76
2020-04-03T01:21:47.000Z
2021-12-06T02:54:53.000Z
src/nebulo/env.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
7
2020-04-06T04:44:10.000Z
2021-05-17T12:38:15.000Z
src/nebulo/env.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
2
2020-10-23T10:25:16.000Z
2020-10-28T14:16:57.000Z
import os from pathlib import Path from appdirs import user_data_dir class EnvManager: """Stashes environment variables in a file and retrieves them in (a different process) with get_environ with failover to os.environ """ app_env_dir = Path(user_data_dir("NEBULO")) app_env = app_env_dir / ...
25.529412
60
0.563748
170
1,302
4.094118
0.447059
0.077586
0.071839
0.043103
0.109195
0.109195
0.109195
0.109195
0.109195
0
0
0.001168
0.34255
1,302
50
61
26.04
0.811916
0.112903
0
0.285714
0
0
0.022887
0
0
0
0
0
0
1
0.114286
false
0.085714
0.085714
0
0.342857
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
2fdabd53100141b3705fb2adc82883289ea70e5d
364
py
Python
neuralnet/tf_template/ml_layer.py
hsmtknj/ml
ad8e050cd754e5a1c73ed5df3bc223a1f6dc4148
[ "MIT" ]
null
null
null
neuralnet/tf_template/ml_layer.py
hsmtknj/ml
ad8e050cd754e5a1c73ed5df3bc223a1f6dc4148
[ "MIT" ]
null
null
null
neuralnet/tf_template/ml_layer.py
hsmtknj/ml
ad8e050cd754e5a1c73ed5df3bc223a1f6dc4148
[ "MIT" ]
null
null
null
""" Machine learning layer class definition module """ import numpy as np import tensorflow as tf rng = np.random.RandomState(1000) class Dense(object): """ Dense layer class """ def __init__(self): self.W = 0 self.b = 0 self.name_W = 'hoge' self.name_b = 'hoge' ...
15.166667
46
0.574176
48
364
4.208333
0.604167
0.09901
0
0
0
0
0
0
0
0
0
0.024292
0.321429
364
23
47
15.826087
0.793522
0.175824
0
0.166667
0
0
0.028881
0
0
0
0
0
0
1
0.166667
false
0.166667
0.166667
0
0.416667
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
2fddd08cdd60c6217d8e0daf479e47f32a503aeb
5,510
py
Python
zobs/orecharge/Point_Analysis/NDVI_mean.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
7
2016-08-30T15:18:11.000Z
2021-08-22T00:28:10.000Z
zobs/orecharge/Point_Analysis/NDVI_mean.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
2
2016-06-08T06:41:45.000Z
2016-06-23T20:47:26.000Z
zobs/orecharge/Point_Analysis/NDVI_mean.py
NMTHydro/Recharge
bbc1a05add92064acffeffb19f04e370b99a7918
[ "Apache-2.0" ]
1
2018-09-18T10:38:08.000Z
2018-09-18T10:38:08.000Z
import datetime import os from dateutil import rrule from osgeo import gdal import numpy as np np.set_printoptions(linewidth=700, precision=2) startTime = datetime.datetime.now() print startTime def cells(array): window = array[480:510, 940:970] return window # Set start datetime object start, end = datet...
39.640288
122
0.46824
653
5,510
3.846861
0.271057
0.038217
0.023885
0.027866
0.430732
0.424761
0.41043
0.402866
0.383758
0.383758
0
0.090071
0.409619
5,510
139
123
39.640288
0.68214
0.006897
0
0.46875
0
0
0.07186
0.049918
0
0
0
0
0
0
null
null
0.007813
0.039063
null
null
0.03125
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