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
2be5b47948208c5f9a98d31bfef79c64df42b49c
1,346
py
Python
sdk/python/generated/azuremarketplace/saas/models/subscription_summary_py3.py
Ercenk/AMPSaaSSpecs
f36246f6e457d9986eb7f7360810c6dc7208c6ac
[ "MIT" ]
null
null
null
sdk/python/generated/azuremarketplace/saas/models/subscription_summary_py3.py
Ercenk/AMPSaaSSpecs
f36246f6e457d9986eb7f7360810c6dc7208c6ac
[ "MIT" ]
null
null
null
sdk/python/generated/azuremarketplace/saas/models/subscription_summary_py3.py
Ercenk/AMPSaaSSpecs
f36246f6e457d9986eb7f7360810c6dc7208c6ac
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
32.829268
146
0.552749
144
1,346
4.972222
0.368056
0.041899
0.041899
0
0
0
0
0
0
0
0
0.000938
0.208024
1,346
40
147
33.65
0.670732
0.381872
0
0
1
0
0.170103
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2be836a0ee63dd2dddda685f487d38fa2a0512f7
9,535
py
Python
tareas/4/JimenezRodrigo/Tarea4.py
EnriqueAlbores03/sistop-2022-1
bb71bdc77751e17a4ac9c54bc8528f38b8cd5aed
[ "CC-BY-4.0" ]
6
2021-08-30T19:11:57.000Z
2021-09-05T01:30:59.000Z
tareas/4/JimenezRodrigo/Tarea4.py
EnriqueAlbores03/sistop-2022-1
bb71bdc77751e17a4ac9c54bc8528f38b8cd5aed
[ "CC-BY-4.0" ]
13
2021-09-07T22:24:47.000Z
2021-11-23T05:26:38.000Z
tareas/4/JimenezRodrigo/Tarea4.py
EnriqueAlbores03/sistop-2022-1
bb71bdc77751e17a4ac9c54bc8528f38b8cd5aed
[ "CC-BY-4.0" ]
33
2021-09-01T00:44:27.000Z
2022-02-09T06:17:55.000Z
# -*- coding: utf-8 -*- """ Created on Sat Nov 27 21:06:27 2021 @author: RGJG """ global A global posicion A=[] posicion=0 def modos(archivo,identificador,modo,A,posicion): A.append([archivo,identificador,modo,posicion,False]) return A print("""dir → Muestra el directorio open <arch> <modo> → Especifica que o...
48.156566
465
0.517777
1,139
9,535
4.350307
0.164179
0.05005
0.033905
0.036327
0.710999
0.690817
0.668618
0.653885
0.641776
0.632896
0
0.043624
0.343681
9,535
197
466
48.401015
0.745286
0.007656
0
0.661376
0
0.010582
0.285382
0.003808
0
0
0
0
0
1
0.005291
false
0
0
0
0.010582
0.232804
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
2be908ac33ef0cea1a929dd6f3fd8726626d4502
3,686
py
Python
engine/test/unit/app/test_app_api.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
15
2020-07-09T17:41:14.000Z
2021-10-04T20:13:08.000Z
engine/test/unit/app/test_app_api.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
48
2020-07-10T15:16:17.000Z
2022-03-03T19:46:46.000Z
engine/test/unit/app/test_app_api.py
pcanto-hopeit/hopeit.engine
c17b0438e56940a4d1b2f071cca90ae8b6f70629
[ "Apache-2.0" ]
3
2020-07-08T20:12:58.000Z
2021-01-10T15:57:21.000Z
from typing import Optional import pytest import hopeit.app.api as api from hopeit.app.config import EventType from hopeit.server.api import APIError from mock_app import mock_app_api_get, MockData, mock_app_api_post, mock_app_api_get_list from mock_app import mock_api_app_config, mock_api_spec # noqa: F401 def te...
49.146667
115
0.69669
552
3,686
4.371377
0.105072
0.106921
0.15748
0.099461
0.747617
0.67758
0.674264
0.674264
0.656859
0.656859
0
0.010739
0.141074
3,686
74
116
49.810811
0.751421
0.017634
0
0.262295
0
0
0.264804
0.135307
0
0
0
0
0.180328
1
0.081967
false
0
0.114754
0
0.196721
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2be9d899799e3c02f9fadfcdefc520e04e7a32d0
1,772
py
Python
tests/test_client/test_init.py
Flickswitch/phx_events
080e5e83267c7f6e3fb735d9500c954a52aacf3f
[ "Apache-2.0" ]
null
null
null
tests/test_client/test_init.py
Flickswitch/phx_events
080e5e83267c7f6e3fb735d9500c954a52aacf3f
[ "Apache-2.0" ]
null
null
null
tests/test_client/test_init.py
Flickswitch/phx_events
080e5e83267c7f6e3fb735d9500c954a52aacf3f
[ "Apache-2.0" ]
null
null
null
import asyncio from urllib.parse import urlencode import pytest from phx_events.client import PHXChannelsClient pytestmark = pytest.mark.asyncio class TestPHXChannelsClientInit: def setup(self): self.socket_url = 'ws://test.socket/url/' self.channel_auth_token = 'test_token' self.phx_...
37.702128
114
0.769752
237
1,772
5.299578
0.223629
0.121815
0.103503
0.131369
0.487261
0.316083
0.139331
0.139331
0.139331
0.106688
0
0
0.151242
1,772
46
115
38.521739
0.835106
0
0
0
0
0
0.100451
0.082393
0
0
0
0
0.241379
1
0.206897
false
0
0.172414
0
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
2bebf83f739c76c94ce8a6983c9ff6d52ee5ea50
1,460
py
Python
newbeginning/network/test-analysis/distributionplots.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
newbeginning/network/test-analysis/distributionplots.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
newbeginning/network/test-analysis/distributionplots.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
# import plotly.plotly as py # import plotly.graph_objs as go # import plotly.figure_factory as FF import math import numpy as np import pandas as pd import matplotlib as mplt import itertools import matplotlib.pyplot as plt import seaborn as sns sns.set(color_codes=True) neededfiles = ['aim.fsm','battlefield2.fsm','...
33.181818
185
0.613699
176
1,460
5.056818
0.579545
0.040449
0
0
0
0
0
0
0
0
0
0.012942
0.206164
1,460
43
186
33.953488
0.754961
0.367123
0
0
0
0
0.234773
0.081949
0
0
0
0
0
1
0
false
0
0.35
0
0.35
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2bf66cc37d411782ebd4ca488d13c1d3ff5cc5b2
538
py
Python
Factorial.py
holtjma/pyku
1e9696701e9c5643d1038a5aa3d275d636f10756
[ "MIT" ]
null
null
null
Factorial.py
holtjma/pyku
1e9696701e9c5643d1038a5aa3d275d636f10756
[ "MIT" ]
null
null
null
Factorial.py
holtjma/pyku
1e9696701e9c5643d1038a5aa3d275d636f10756
[ "MIT" ]
null
null
null
''' Factorial int Recurse Implementation Auth.: holtjma ''' def dec(Input): ''' Pyku for decrement: y equals input y equals y minus two return y plus one ''' y = Input y = y-2 return y+1 def fac(x): ''' Pyku for factorial: if x and not false return x times fac dec x...
16.30303
37
0.546468
86
538
3.325581
0.430233
0.048951
0.041958
0.062937
0.244755
0.146853
0.146853
0
0
0
0
0.02514
0.334572
538
33
38
16.30303
0.773743
0
0
0
0
0
0.069597
0
0
0
0
0
0
0
null
null
0
0
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
2bf8e59f54ba308b97ca6cc80ae65dee9fca6d4e
2,008
py
Python
tintest.py
SaxonWang99/CMPE273-WeWin
a0c3051576f321d81bad39d13648b15b955e17e8
[ "MIT" ]
null
null
null
tintest.py
SaxonWang99/CMPE273-WeWin
a0c3051576f321d81bad39d13648b15b955e17e8
[ "MIT" ]
null
null
null
tintest.py
SaxonWang99/CMPE273-WeWin
a0c3051576f321d81bad39d13648b15b955e17e8
[ "MIT" ]
1
2018-05-04T00:03:01.000Z
2018-05-04T00:03:01.000Z
import requests import json print("register node 5000, 5001, 5002, 5003, 5004, 5005") m_node = { "nodes" : ["http://127.0.0.1:5000","http://127.0.0.1:5001", "http://127.0.0.1:5002","http://127.0.0.1:5003","http://127.0.0.1:5004","http://127.0.0.1:5005"] } r = requests.post('http://127.0.0.1:5000/nodes/regis...
31.873016
100
0.51992
274
2,008
3.748175
0.193431
0.10224
0.116845
0.131451
0.721519
0.620253
0.554041
0.554041
0.443038
0.352483
0
0.147651
0.109562
2,008
63
101
31.873016
0.426734
0.051295
0
0.46
0
0
0.57856
0.198634
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.36
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
2bf97ef08c32e1d68937a101a1c8b4b5bb2e2a33
1,016
py
Python
scripts/NoIp/noIp.py
tatan8425/hal-9000-webserver
77a306e051327a63fdc31a4f42d7d4b3563e489a
[ "MIT" ]
null
null
null
scripts/NoIp/noIp.py
tatan8425/hal-9000-webserver
77a306e051327a63fdc31a4f42d7d4b3563e489a
[ "MIT" ]
null
null
null
scripts/NoIp/noIp.py
tatan8425/hal-9000-webserver
77a306e051327a63fdc31a4f42d7d4b3563e489a
[ "MIT" ]
null
null
null
import requests, socket def get_ip(): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: # doesn't even have to be reachable s.connect(('10.255.255.255', 1)) IP = s.getsockname()[0] except Exception: IP = '127.0.0.1' finally: s.close() retu...
26.736842
104
0.633858
143
1,016
4.440559
0.559441
0.015748
0.022047
0
0
0
0
0
0
0
0
0.024453
0.235236
1,016
38
105
26.736842
0.792793
0.269685
0
0.083333
0
0
0.157593
0
0
0
0
0
0
1
0.083333
false
0.166667
0.041667
0
0.166667
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
0
0
0
1
0
0
0
0
0
1
2bf9976093a4dd5be3ed5fccaa44f1af7ae7c243
5,579
py
Python
src/keras_exp/distrib/cluster_parsers/slurm.py
avolkov1/keras_experiments
333fad99dfd0d789b86c6976c5b3f9929edd6a67
[ "Unlicense" ]
92
2017-05-03T01:47:09.000Z
2021-01-19T12:11:08.000Z
src/keras_exp/distrib/cluster_parsers/slurm.py
avolkov1/keras_experiments
333fad99dfd0d789b86c6976c5b3f9929edd6a67
[ "Unlicense" ]
15
2017-06-14T19:00:12.000Z
2018-07-19T04:48:13.000Z
src/keras_exp/distrib/cluster_parsers/slurm.py
avolkov1/keras_experiments
333fad99dfd0d789b86c6976c5b3f9929edd6a67
[ "Unlicense" ]
19
2017-05-27T18:34:12.000Z
2020-06-29T13:48:19.000Z
# Taken from: https://github.com/jhollowayj/tensorflow_slurm_manager # ref: # https://github.com/jhollowayj/tensorflow_slurm_manager/blob/master/slurm_manager.py # @IgnorePep8 ''' ''' from __future__ import print_function import os import re # import socket # depends on hostlist: pip install python-hostlist import ho...
37.193333
85
0.642409
738
5,579
4.643631
0.341463
0.03735
0.032098
0.029764
0.115845
0.048439
0.048439
0.021593
0.021593
0
0
0.013861
0.275856
5,579
149
86
37.442953
0.834406
0.458684
0
0.078125
0
0
0.066235
0
0
0
0
0.013423
0.125
1
0.109375
false
0
0.09375
0
0.3125
0.015625
0
0
0
null
0
0
0
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
2bfb7787515c4c469fbb83a54e507c2ba0aea894
2,087
py
Python
tools/w3af/w3af/core/controllers/core_helpers/consumers/tests/test_base_consumer.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/controllers/core_helpers/consumers/tests/test_base_consumer.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/controllers/core_helpers/consumers/tests/test_base_consumer.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" test_base_consumer.py Copyright 2011 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the ho...
30.246377
83
0.707235
285
2,087
5.098246
0.473684
0.045423
0.033035
0.039229
0.188575
0.170681
0.13214
0.13214
0.13214
0.13214
0
0.018182
0.209391
2,087
68
84
30.691176
0.862424
0
0
0.25
0
0
0.03059
0
0
0
0
0
0.1875
0
null
null
0
0.21875
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
2bfcdaf752784ff09e0f132f98450c88559d9a0f
1,045
py
Python
11/11.py
pemcconnell/euler
e879e3c534cf4881e2a591d77aaee02454dab363
[ "MIT" ]
null
null
null
11/11.py
pemcconnell/euler
e879e3c534cf4881e2a591d77aaee02454dab363
[ "MIT" ]
null
null
null
11/11.py
pemcconnell/euler
e879e3c534cf4881e2a591d77aaee02454dab363
[ "MIT" ]
null
null
null
import re SIZE = 4 GREATESTPRODUCT = 0 def find_biggest(cells): global GREATESTPRODUCT gp = 0 l = len(cells) for i,num in enumerate(cells): if i > (l - SIZE): break x = SIZE-1 p = 1 while x >= 0: p *= int(cells[i+x]) x -= 1 if p > gp: gp = p if gp > GREATESTPRODUCT: GREATESTPRODUCT = gp ...
16.076923
46
0.585646
168
1,045
3.619048
0.309524
0.072368
0.054276
0.059211
0.111842
0.111842
0.111842
0.111842
0.111842
0
0
0.016796
0.25933
1,045
64
47
16.328125
0.768734
0.02488
0
0.142857
0
0
0.009852
0
0
0
0
0
0
0
null
null
0
0.017857
null
null
0.017857
0
0
0
null
0
0
0
0
0
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
9202da091b39e200d9f80b37d5315d60c63a2087
15,045
py
Python
app/modules/assets/controllers.py
systemaker/Flask-Easy-Template
a31c374d0420524e6c7ee9f92824c5a9d62223cf
[ "Apache-2.0" ]
11
2017-06-03T15:58:25.000Z
2019-06-13T19:10:58.000Z
app/modules/assets/controllers.py
systemaker/flask-web-api-demo
a31c374d0420524e6c7ee9f92824c5a9d62223cf
[ "Apache-2.0" ]
null
null
null
app/modules/assets/controllers.py
systemaker/flask-web-api-demo
a31c374d0420524e6c7ee9f92824c5a9d62223cf
[ "Apache-2.0" ]
8
2017-07-31T04:10:05.000Z
2019-01-29T01:46:31.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # ------- IMPORT DEPENDENCIES ------- import datetime import sendgrid import os import json from werkzeug.utils import secure_filename from werkzeug.datastructures import CombinedMultiDict from flask import request, render_template, flash, current_app, redirect, abort, jsonif...
35.483491
218
0.535726
1,627
15,045
4.78488
0.135218
0.030058
0.018497
0.020809
0.634168
0.589338
0.551445
0.529223
0.529223
0.518947
0
0.006254
0.351745
15,045
424
219
35.483491
0.791961
0.093785
0
0.546875
0
0
0.115297
0
0
0
0
0
0
0
null
null
0
0.078125
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
920b149c86f3168ef69f2b995fbe91e1d019236b
426
py
Python
persister/observations/management/commands/initialize_data.py
City-of-Helsinki/hel-data-pipe
e473237cd00a54a791337ac611e99556dc37ea35
[ "MIT" ]
1
2021-02-25T14:21:41.000Z
2021-02-25T14:21:41.000Z
persister/observations/management/commands/initialize_data.py
City-of-Helsinki/hel-data-pipe
e473237cd00a54a791337ac611e99556dc37ea35
[ "MIT" ]
9
2020-11-23T11:56:56.000Z
2021-02-25T12:20:05.000Z
persister/observations/management/commands/initialize_data.py
City-of-Helsinki/hel-data-pipe
e473237cd00a54a791337ac611e99556dc37ea35
[ "MIT" ]
1
2021-07-25T12:16:53.000Z
2021-07-25T12:16:53.000Z
from django.core.management.base import BaseCommand from observations.models import Datasourcetype class Command(BaseCommand): def handle(self, *args, **options): Datasourcetype.objects.get_or_create( name="Digital Matter Sensornode LoRaWAN", defaults={ "descriptio...
28.4
67
0.626761
38
426
6.973684
0.763158
0.098113
0.173585
0.226415
0
0
0
0
0
0
0
0
0.28169
426
14
68
30.428571
0.866013
0
0
0
0
0
0.21831
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
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
920df6d345d50dc57b22f734d43354a7b725ee38
1,877
py
Python
python/fixrgraph/db/scripts/querydb.py
LesleyLai/biggroum
e26de363e4bf4645dd5d90121742d3f3533f5a00
[ "Apache-2.0" ]
7
2019-02-14T17:28:29.000Z
2021-01-11T07:12:34.000Z
python/fixrgraph/db/scripts/querydb.py
LesleyLai/biggroum
e26de363e4bf4645dd5d90121742d3f3533f5a00
[ "Apache-2.0" ]
23
2018-08-19T23:06:54.000Z
2020-04-14T08:21:05.000Z
python/fixrgraph/db/scripts/querydb.py
LesleyLai/biggroum
e26de363e4bf4645dd5d90121742d3f3533f5a00
[ "Apache-2.0" ]
4
2018-06-28T18:22:55.000Z
2019-03-21T06:36:56.000Z
""" Test script used to query the db programmatically """ import sys import os import optparse import logging import string import collections from fixrgraph.db.isodb import IsoDb import sqlalchemy if (len(sys.argv) != 2): print "Not enough param" db_path=sys.argv[1] if (not os.path.isfile(db_path)): pri...
23.759494
163
0.64731
302
1,877
3.963576
0.264901
0.0401
0.050125
0.054302
0.385965
0.385965
0.340852
0.218881
0.218881
0.191312
0
0.008558
0.19073
1,877
78
164
24.064103
0.77946
0.216835
0
0
0
0.052632
0.407275
0.038516
0
0
0
0
0
0
null
null
0
0.210526
null
null
0.289474
0
0
0
null
0
0
0
0
0
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
920df91fb23bed00eb502062ddf23ebd2f320290
480
py
Python
login_register/apps/userAuth/urls/v1/urls.py
Mr-IT007/django-vue
2e8465d42b63286b974ee144180e0c881b68a207
[ "MIT" ]
1
2021-04-22T09:18:27.000Z
2021-04-22T09:18:27.000Z
login_register/apps/userAuth/urls/v1/urls.py
Mr-IT007/django-vue
2e8465d42b63286b974ee144180e0c881b68a207
[ "MIT" ]
null
null
null
login_register/apps/userAuth/urls/v1/urls.py
Mr-IT007/django-vue
2e8465d42b63286b974ee144180e0c881b68a207
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework.routers import SimpleRouter from apps.userAuth.views.v1.views import SendCodeView, UserViewSet router = SimpleRouter(trailing_slash=False) router.register('user', UserViewSet, base_name='user') urlpatterns = [ path('sendcode', SendCodeView.as_view(), name='sendco...
28.235294
66
0.745833
57
480
6.175439
0.526316
0.051136
0.085227
0
0
0
0
0
0
0
0
0.002347
0.1125
480
16
67
30
0.823944
0.23125
0
0
0
0
0.065574
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ecf66aef233b23b1747684b9d15be00174574f63
620
py
Python
retrieve_tps/config.py
PedroMLF/guided-nmt
841f19b73375cc41a7a89c2a750f6d412d15c494
[ "MIT" ]
1
2018-10-19T16:18:29.000Z
2018-10-19T16:18:29.000Z
retrieve_tps/config.py
PedroMLF/guided-nmt
841f19b73375cc41a7a89c2a750f6d412d15c494
[ "MIT" ]
null
null
null
retrieve_tps/config.py
PedroMLF/guided-nmt
841f19b73375cc41a7a89c2a750f6d412d15c494
[ "MIT" ]
null
null
null
import os from dotenv import find_dotenv from dotenv import load_dotenv # Find and load dotenv load_dotenv(find_dotenv()) class Config: def __init__(self): # Source and target languages self.SRC = os.environ.get("SRC") self.TGT = os.environ.get("TGT") # Dirs self.BASE_D...
24.8
72
0.66129
87
620
4.45977
0.344828
0.162371
0.216495
0.123711
0
0
0
0
0
0
0
0
0.229032
620
24
73
25.833333
0.811715
0.095161
0
0
0
0
0.124324
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.384615
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
ecf6961d222a87ea28df54feac8fe3d760be570d
15,420
py
Python
test/memcache/memcache.py
bianhaoyi/neproxy
9c2c9e32ab84e9a91696c8754ffd2904888347d1
[ "Apache-2.0" ]
1
2015-03-10T01:52:37.000Z
2015-03-10T01:52:37.000Z
test/memcache/memcache.py
bianhaoyi/neproxy
9c2c9e32ab84e9a91696c8754ffd2904888347d1
[ "Apache-2.0" ]
null
null
null
test/memcache/memcache.py
bianhaoyi/neproxy
9c2c9e32ab84e9a91696c8754ffd2904888347d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Mixpanel, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
37.980296
114
0.579183
1,942
15,420
4.521627
0.227085
0.007972
0.019132
0.023915
0.361804
0.323426
0.301788
0.288805
0.288805
0.288805
0
0.008651
0.325357
15,420
405
115
38.074074
0.835432
0.234306
0
0.475
0
0
0.068415
0
0
0
0
0
0
0
null
null
0.01
0.015
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
ecfc26031c41dd441d19db7304fb07bd9d30e49a
5,573
py
Python
notion_properties/tests.py
marcphilippebeaujean-abertay/recur-notion
d09e03b35a2ea75c446025a6fe76781100bfd3bf
[ "MIT" ]
2
2022-03-29T06:20:34.000Z
2022-03-29T19:42:00.000Z
notion_properties/tests.py
marcphilippebeaujean-abertay/recur-notion
d09e03b35a2ea75c446025a6fe76781100bfd3bf
[ "MIT" ]
null
null
null
notion_properties/tests.py
marcphilippebeaujean-abertay/recur-notion
d09e03b35a2ea75c446025a6fe76781100bfd3bf
[ "MIT" ]
null
null
null
from django.test import TestCase from .dto import NotionPropertyDto TEST_NOTION_API_RESP_PROPERTIES_DICT = { "Comment": {"id": "!vXu", "type": "rich_text", "rich_text": []}, "Amount": {"id": "%225%3C%7B", "type": "number", "number": 690}, "Category": { "id": "93%3D%3E", "type": "multi_sele...
38.972028
88
0.628028
611
5,573
5.309329
0.153846
0.125462
0.17016
0.192355
0.675709
0.569667
0.472873
0.461159
0.461159
0.461159
0
0.028087
0.258927
5,573
142
89
39.246479
0.757385
0.004127
0
0.210938
0
0
0.139329
0.023792
0
0
0
0
0.1875
1
0.078125
false
0
0.015625
0
0.101563
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
a61259ea838b04eafa5067107c738594eb0f9eae
1,617
py
Python
bitchstorm.py
Ollyd1gger/crawler
529d3e3d2fe27db4ba20f8b7903389cea148b8aa
[ "MIT" ]
null
null
null
bitchstorm.py
Ollyd1gger/crawler
529d3e3d2fe27db4ba20f8b7903389cea148b8aa
[ "MIT" ]
null
null
null
bitchstorm.py
Ollyd1gger/crawler
529d3e3d2fe27db4ba20f8b7903389cea148b8aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import urlparse import scrapy from items import BitchstormItem BASE_URL="http://www.harikadiziler.com/" class BitchStormXPath(scrapy.Spider): name = 'bitchstorm' start_urls = [ 'http://www.harikadiziler.com/yabanci-dizi-bolumleri/', ] def parse(self, response): ...
26.080645
100
0.546691
172
1,617
5.116279
0.453488
0.023864
0.045455
0.052273
0
0
0
0
0
0
0
0.006323
0.315399
1,617
61
101
26.508197
0.788618
0.012987
0
0
0
0
0.160883
0.062461
0
0
0
0
0
0
null
null
0
0.069767
null
null
0.093023
0
0
0
null
0
0
0
0
0
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
a618b77077d5dec01755310145e12d7c8a08b3ae
1,240
py
Python
mindarmour/adv_robustness/defenses/__init__.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
139
2020-03-28T02:37:07.000Z
2022-03-24T15:35:39.000Z
mindarmour/adv_robustness/defenses/__init__.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
2
2020-04-02T09:50:21.000Z
2020-05-09T06:52:57.000Z
mindarmour/adv_robustness/defenses/__init__.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
12
2020-03-28T02:52:42.000Z
2021-07-15T08:05:06.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
42.758621
74
0.794355
141
1,240
6.907801
0.617021
0.061602
0.123203
0.086242
0
0
0
0
0
0
0
0.007597
0.150806
1,240
28
75
44.285714
0.917379
0.558065
0
0
0
0
0.236742
0.202652
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
a618d08a4e36d35b16afbbcfddac9c2a0eb020b0
1,331
py
Python
src/settings.py
AzemaBaptiste/SoundLandscape
a9a27606301dd3c9000474960668ea11bada1452
[ "BSD-3-Clause" ]
1
2019-05-13T22:05:06.000Z
2019-05-13T22:05:06.000Z
src/settings.py
AzemaBaptiste/SoundLandscape
a9a27606301dd3c9000474960668ea11bada1452
[ "BSD-3-Clause" ]
null
null
null
src/settings.py
AzemaBaptiste/SoundLandscape
a9a27606301dd3c9000474960668ea11bada1452
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os from pathlib import Path from dotenv import find_dotenv, load_dotenv load_dotenv(find_dotenv()) PROJECT_DIR = Path(__file__).resolve().parents[1] IMAGE_STREET_PATH = os.path.join(PROJECT_DIR, "data", "raw", "streetview") IMAGE_GPS_PATH = os.path.join(PROJECT_DIR, "data", "raw", "gp...
41.59375
88
0.755823
206
1,331
4.57767
0.276699
0.148462
0.137858
0.234358
0.497349
0.497349
0.497349
0.432662
0.124072
0
0
0.003273
0.081893
1,331
31
89
42.935484
0.768412
0.015778
0
0
0
0
0.242355
0.04893
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
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
a61aab4b53d5cb96fe8af453b9222a4331b80a92
1,105
py
Python
crawler/driver/rpc_gearman.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "Apache-2.0" ]
null
null
null
crawler/driver/rpc_gearman.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "Apache-2.0" ]
null
null
null
crawler/driver/rpc_gearman.py
dukov/simplecrawler
eb6c44b9e3c43cab34ee4a2b39c7283136ce9352
[ "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...
34.53125
75
0.714027
158
1,105
4.905063
0.56962
0.077419
0.046452
0.04129
0
0
0
0
0
0
0
0.004515
0.19819
1,105
31
76
35.645161
0.870203
0.472398
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0.071429
0.071429
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
a61c6c11fc7d3410fbbda036b5a75e369f550b13
1,456
py
Python
recipes/Python/496825_Game_theory_payoff_matrix_solver/recipe-496825.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/496825_Game_theory_payoff_matrix_solver/recipe-496825.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/496825_Game_theory_payoff_matrix_solver/recipe-496825.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
''' Approximate the strategy oddments for 2 person zero-sum games of perfect information. Applies the iterative solution method described by J.D. Williams in his classic book, The Compleat Strategyst, ISBN 0-486-25101-2. See chapter 5, page 180 for details. ''' from operator import add, neg def solve(payoff_matrix...
41.6
93
0.634615
210
1,456
4.266667
0.438095
0.100446
0.066964
0.033482
0
0
0
0
0
0
0
0.049558
0.223901
1,456
34
94
42.823529
0.743363
0.055632
0
0
0
0
0.06485
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a61e658568c48f5b3ce40f76342cdb75ff4b5b9f
2,810
py
Python
echopype/model/ek60.py
cyrf0006/echopype
54d385b896ef9d54f7daa1d107c6719ab1fa14c5
[ "Apache-2.0" ]
null
null
null
echopype/model/ek60.py
cyrf0006/echopype
54d385b896ef9d54f7daa1d107c6719ab1fa14c5
[ "Apache-2.0" ]
null
null
null
echopype/model/ek60.py
cyrf0006/echopype
54d385b896ef9d54f7daa1d107c6719ab1fa14c5
[ "Apache-2.0" ]
null
null
null
""" echopype data model inherited from based class EchoData for EK60 data. """ import datetime as dt import numpy as np import xarray as xr from .echo_data import EchoData class EchoDataEK60(EchoData): """Class for manipulating EK60 echo data that is already converted to netCDF.""" def __init__(self, file_p...
40.142857
114
0.63274
372
2,810
4.594086
0.392473
0.035108
0.028087
0.026331
0.123464
0.123464
0.107665
0
0
0
0
0.019753
0.279359
2,810
69
115
40.724638
0.824198
0.322776
0
0
0
0
0.030854
0
0
0
0
0.014493
0
1
0.060606
false
0
0.121212
0
0.212121
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
a61eb4e00700968d486663634a4fea56307c2b49
16,173
py
Python
samples/switch-commands/aci-show-fex.py
carterej1989/acitoolkit
8bc1e462c3bc0b6643004033e353520d438242d6
[ "Apache-2.0" ]
null
null
null
samples/switch-commands/aci-show-fex.py
carterej1989/acitoolkit
8bc1e462c3bc0b6643004033e353520d438242d6
[ "Apache-2.0" ]
2
2018-05-07T19:40:50.000Z
2020-04-02T14:43:15.000Z
samples/switch-commands/aci-show-fex.py
carterej1989/acitoolkit
8bc1e462c3bc0b6643004033e353520d438242d6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ This application replicates the switch CLI command 'show fex' It largely uses raw queries to the APIC API """ from acitoolkit import Credentials, Session from tabulate import tabulate class FexCollector(object): def __init__(self, url, login, password): # Login to APIC se...
50.226708
118
0.538985
1,852
16,173
4.49406
0.153348
0.039649
0.034603
0.035684
0.454283
0.417878
0.373904
0.334254
0.297008
0.297008
0
0.005378
0.356211
16,173
321
119
50.383178
0.793988
0.017498
0
0.3
0
0.046154
0.244937
0.071974
0
0
0
0.003115
0
0
null
null
0.015385
0.007692
null
null
0.234615
0
0
0
null
0
0
0
0
0
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
a623afbe66c5222f42cd3321cff3bd1842435939
3,721
py
Python
contents/apis/default.py
williamlagos/contents-api
d501d343396af7aec8d5dfa6092136ba689d8565
[ "MIT" ]
null
null
null
contents/apis/default.py
williamlagos/contents-api
d501d343396af7aec8d5dfa6092136ba689d8565
[ "MIT" ]
3
2021-04-24T20:50:16.000Z
2021-05-24T17:46:55.000Z
contents/apis/default.py
williamlagos/contents-api
d501d343396af7aec8d5dfa6092136ba689d8565
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of django-emporio project. # # Copyright (C) 2011-2020 William Oliveira de Lagos <william.lagos@icloud.com> # # Emporio is free software: you can redistribute it and/or modify # it under the terms of the Lesser GNU General Public License as published by # the Free Software Founda...
38.360825
123
0.671325
486
3,721
5.057613
0.366255
0.035801
0.052075
0.056143
0.205452
0.174939
0.103336
0.017901
0
0
0
0.003149
0.231927
3,721
97
124
38.360825
0.856893
0.435367
0
0.04878
0
0
0
0
0
0
0
0
0
1
0.170732
false
0.02439
0.146341
0.073171
0.512195
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
a627e78d85fa36aa4fc8dac08dc2d687cae8b287
731
py
Python
eca.py
PetarPeychev/elementary-cellular-automata
e82e45d78162d24497367e2636879752942e01a2
[ "Unlicense" ]
null
null
null
eca.py
PetarPeychev/elementary-cellular-automata
e82e45d78162d24497367e2636879752942e01a2
[ "Unlicense" ]
null
null
null
eca.py
PetarPeychev/elementary-cellular-automata
e82e45d78162d24497367e2636879752942e01a2
[ "Unlicense" ]
null
null
null
class ECA: def __init__(self, id): self.id = bin(id)[2:].zfill(8) self.dict = {} for i in range(8): self.dict[bin(7 - i)[2:].zfill(3)] = self.id[i] self.array = [0 for x in range(199)] self.array[99] = 1 def step(self): arr = [0 for x in range(len(s...
27.074074
59
0.399453
104
731
2.769231
0.298077
0.28125
0.125
0.135417
0.385417
0.145833
0.145833
0.145833
0.145833
0
0
0.048426
0.435021
731
26
60
28.115385
0.64891
0
0
0.173913
0
0
0.002736
0
0
0
0
0
0
1
0.086957
false
0
0
0
0.130435
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
a635ffd9d7bf1ae07044faee8168045efcbfe473
368
py
Python
fybot/tests/timing.py
juanlazarde/financial_scanner
a466aa553a413b65d08d4d23250867f938726e17
[ "Apache-2.0" ]
2
2021-02-06T20:22:26.000Z
2021-02-23T04:51:05.000Z
fybot/tests/timing.py
juanlazarde/fybot
a466aa553a413b65d08d4d23250867f938726e17
[ "Apache-2.0" ]
9
2021-11-20T05:32:39.000Z
2021-12-16T06:34:41.000Z
fybot/tests/timing.py
juanlazarde/financial_scanner
a466aa553a413b65d08d4d23250867f938726e17
[ "Apache-2.0" ]
1
2021-08-29T23:01:09.000Z
2021-08-29T23:01:09.000Z
from sys import exit from time import time as t import core.snp as sn def main(): forced = True symbols = sn.GetAssets(forced).symbols # 3.6s # 300 symbols # sn.GetFundamental(symbols, forced) # 44.6 s # s = t() # sn.GetPrice(symbols, forced) # 84.7 s # print(t() - s) # exit() ...
16.727273
50
0.584239
53
368
3.90566
0.566038
0.086957
0
0
0
0
0
0
0
0
0
0.041825
0.285326
368
21
51
17.52381
0.745247
0.361413
0
0
0
0
0.035714
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a63c73636ff3e33af5c3dc63009eb808e28ca962
227
py
Python
landmark/utils/images/test.py
greedpejo/FER_SPRING
622d093da579d17e167f2771da4fb3365824cdd3
[ "MIT" ]
1
2021-12-24T22:02:27.000Z
2021-12-24T22:02:27.000Z
landmark/utils/images/test.py
greedpejo/FER_SPRING
622d093da579d17e167f2771da4fb3365824cdd3
[ "MIT" ]
1
2021-12-24T22:02:19.000Z
2021-12-24T22:02:19.000Z
landmark/utils/images/test.py
greedpejo/FER_SPRING
622d093da579d17e167f2771da4fb3365824cdd3
[ "MIT" ]
null
null
null
from PIL import Image import numpy as np img = Image.open('cifar.png') pic = np.array(img) noise = np.random.randint(-10,10,pic.shape[-1]) print(noise.shape) pic = pic+noise pic = pic.astype(np.uint8) asd = Image.fromarray(pic)
25.222222
47
0.722467
41
227
4
0.585366
0.073171
0
0
0
0
0
0
0
0
0
0.029851
0.114537
227
9
48
25.222222
0.78607
0
0
0
0
0
0.039474
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
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
a63ed7e9f42677526be5ac9eba0bf01a9c3868ec
889
py
Python
fwrite/config/__init__.py
fooying/fwrite
e370ed66c2410b78db5db3fda2967f7b9a93e417
[ "MIT" ]
9
2015-05-05T02:03:42.000Z
2019-05-14T11:51:59.000Z
fwrite/config/__init__.py
fooying/fwrite
e370ed66c2410b78db5db3fda2967f7b9a93e417
[ "MIT" ]
null
null
null
fwrite/config/__init__.py
fooying/fwrite
e370ed66c2410b78db5db3fda2967f7b9a93e417
[ "MIT" ]
5
2015-06-10T01:09:20.000Z
2018-12-01T17:18:18.000Z
#!/usr/bin/env python #encoding=utf-8 #by Fooying 2013-11-17 01:49:57 ''' 配置读写相关方法 ''' import os import sys import ConfigParser reload(sys) sys.setdefaultencoding('utf-8') from ..utils import * CONFIG = ConfigParser.ConfigParser() FILE_PATH = os.path.join(os.path.dirname(__file__), 'config.fwrite') def write_config...
22.794872
68
0.644544
121
889
4.545455
0.512397
0.058182
0.065455
0.065455
0
0
0
0
0
0
0
0.035971
0.218223
889
38
69
23.394737
0.755396
0.071991
0
0.074074
0
0
0.07072
0
0
0
0
0
0
0
null
null
0
0.148148
null
null
0.037037
0
0
0
null
0
0
0
0
0
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
a647bca6ace27fa6758cf6a571f1641624478249
1,048
py
Python
api/website_analysis/views.py
gpiechnik2/senter
6f64f5410fe02a5215ba148553dec45feaadcc09
[ "CC0-1.0" ]
2
2021-12-08T19:38:33.000Z
2022-01-26T15:02:57.000Z
api/website_analysis/views.py
gpiechnik2/senter
6f64f5410fe02a5215ba148553dec45feaadcc09
[ "CC0-1.0" ]
null
null
null
api/website_analysis/views.py
gpiechnik2/senter
6f64f5410fe02a5215ba148553dec45feaadcc09
[ "CC0-1.0" ]
1
2021-12-08T19:38:39.000Z
2021-12-08T19:38:39.000Z
from rest_framework import viewsets, status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.decorators import action import json from .serializers import SEOSerializer from .utils import website_analysis class SEOViewSet(viewsets.ViewSet): ""...
29.942857
85
0.692748
114
1,048
6.210526
0.5
0.045198
0.096045
0
0
0
0
0
0
0
0
0.00738
0.224237
1,048
34
86
30.823529
0.863469
0.034351
0
0
0
0
0.01506
0
0
0
0
0
0
1
0.043478
false
0
0.304348
0
0.478261
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
a6509eef68ac277f5e87bded194dbecf31536506
4,489
py
Python
python/ShoppingList_to_excel.py
esix2/coffee-accounting
24337f48e3a1581df4dd5f50d1e17e9f6d89e13a
[ "MIT" ]
null
null
null
python/ShoppingList_to_excel.py
esix2/coffee-accounting
24337f48e3a1581df4dd5f50d1e17e9f6d89e13a
[ "MIT" ]
null
null
null
python/ShoppingList_to_excel.py
esix2/coffee-accounting
24337f48e3a1581df4dd5f50d1e17e9f6d89e13a
[ "MIT" ]
null
null
null
import pandas as pd import os from openpyxl.styles import Color, Fill, Border, Alignment, Font from openpyxl.cell import get_column_letter import numpy as np def ShoppingList_to_excel(): pwd = os.getcwd() os.chdir("../..") ## it changes to the parent folder, since shopping list is there csvFile ...
53.440476
112
0.52818
547
4,489
4.159049
0.290676
0.061538
0.10022
0.101538
0.433407
0.362637
0.348132
0.303736
0.098462
0.037802
0
0.029412
0.356204
4,489
83
113
54.084337
0.757785
0.062375
0
0.025974
0
0
0.045151
0
0.038961
0
0
0
0
0
null
null
0.012987
0.064935
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
a65a4e91a8434f5664f12c03b05e5c7e5f8c3edb
1,758
py
Python
Lincoln/Rougue/main.py
gcvalderrama/Jarvis
b38dc823f64997203db5f22c373116ce6276009b
[ "Apache-2.0" ]
null
null
null
Lincoln/Rougue/main.py
gcvalderrama/Jarvis
b38dc823f64997203db5f22c373116ce6276009b
[ "Apache-2.0" ]
null
null
null
Lincoln/Rougue/main.py
gcvalderrama/Jarvis
b38dc823f64997203db5f22c373116ce6276009b
[ "Apache-2.0" ]
null
null
null
from pythonrouge import pythonrouge ROUGE = './RELEASE-1.5.5/ROUGE-1.5.5.pl' data_path = './RELEASE-1.5.5/data' peer = "Tokyo is the one of the biggest city in the world." model = "The capital of Japan, Tokyo, is the center of Japanese economy." score = pythonrouge.pythonrouge(peer, model, ROUGE, data_path) print(sco...
51.705882
82
0.722981
258
1,758
4.910853
0.492248
0.025257
0.007103
0.035517
0.241515
0.241515
0.241515
0.241515
0.218627
0.218627
0
0.01637
0.200796
1,758
34
83
51.705882
0.885409
0
0
0.285714
0
0
0.701535
0.017055
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a65cbc7d67f13a5efa34d59f7cf299b050074799
357
py
Python
setup.py
SeanNobel/d4rl-pybullet
9f2f56c63bb7a80ebcbc4217cd7689e446aafd41
[ "MIT" ]
130
2020-07-09T11:38:57.000Z
2022-03-28T08:04:30.000Z
setup.py
SeanNobel/d4rl-pybullet
9f2f56c63bb7a80ebcbc4217cd7689e446aafd41
[ "MIT" ]
3
2020-08-26T09:08:24.000Z
2021-06-03T04:57:24.000Z
setup.py
SeanNobel/d4rl-pybullet
9f2f56c63bb7a80ebcbc4217cd7689e446aafd41
[ "MIT" ]
9
2020-08-10T02:43:22.000Z
2022-02-09T04:25:11.000Z
from setuptools import setup, find_packages setup(name="d4rl_pybullet", version="0.1", license="MIT", description="Datasets for data-driven deep reinforcement learnig with Pybullet environments", url="https://github.com/takuseno/d4rl-pybullet", install_requires=["gym", "pybullet", "h5py"...
32.454545
99
0.694678
41
357
5.95122
0.804878
0.147541
0
0
0
0
0
0
0
0
0
0.020202
0.168067
357
10
100
35.7
0.801347
0
0
0
0
0
0.464986
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a65f997388b00fed9fbf678f2f3ea385416e7916
1,376
py
Python
repokid/plugin.py
boost-entropy-repos-org/repokid
b4fedd9475ff10e7800ceb4826c2b1fce3d49072
[ "Apache-2.0" ]
999
2017-06-05T17:57:57.000Z
2022-03-30T16:15:04.000Z
repokid/plugin.py
boost-entropy-repos-org/repokid
b4fedd9475ff10e7800ceb4826c2b1fce3d49072
[ "Apache-2.0" ]
196
2017-06-13T20:46:06.000Z
2021-11-01T03:31:32.000Z
repokid/plugin.py
boost-entropy-repos-org/repokid
b4fedd9475ff10e7800ceb4826c2b1fce3d49072
[ "Apache-2.0" ]
99
2017-06-06T13:29:29.000Z
2022-03-20T14:35:51.000Z
# Copyright 2021 Netflix, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
28.666667
75
0.696948
182
1,376
5.082418
0.538462
0.064865
0.051892
0.034595
0
0
0
0
0
0
0
0.007498
0.224564
1,376
47
76
29.276596
0.859419
0.40625
0
0
0
0
0.008728
0
0
0
0
0
0
1
0.083333
false
0.041667
0.291667
0
0.583333
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
a663a12adb38c670e71516b05d29c027d4ea3a0c
289
py
Python
problem-003/Rithvik.py
arnavb/lockheed-martin-practice
eb2f8c4d96625305aa280919f0d7844e63ce74b3
[ "MIT" ]
2
2018-10-17T05:17:52.000Z
2020-10-10T21:34:04.000Z
problem-003/Rithvik.py
arnavb/lockheed-martin-practice
eb2f8c4d96625305aa280919f0d7844e63ce74b3
[ "MIT" ]
null
null
null
problem-003/Rithvik.py
arnavb/lockheed-martin-practice
eb2f8c4d96625305aa280919f0d7844e63ce74b3
[ "MIT" ]
2
2018-02-04T21:37:00.000Z
2018-10-17T21:06:35.000Z
with open("Prob03.in.txt") as f: content = f.readlines() content = [x.strip() for x in content] nola = content.pop(0) for x in content: x = x.strip(" ") x = x.split() add = int(x[0]) + int(x[1]) multi = int(x[0]) * int(x[1]) print( str(add) + " " + str(multi))
26.272727
39
0.532872
50
289
3.08
0.44
0.103896
0.077922
0.168831
0.12987
0.12987
0
0
0
0
0
0.032407
0.252595
289
11
40
26.272727
0.680556
0
0
0
0
0
0.051724
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
a666bee9adae8d7154881c07b41fdd1ef5eb1254
1,450
py
Python
simple_autocorrect_pt/insertion_filter.py
brenoskuk/simple_autocorrect_pt
9a9c3de9d19ecf4dba25d519d44b964771f3eaab
[ "MIT" ]
null
null
null
simple_autocorrect_pt/insertion_filter.py
brenoskuk/simple_autocorrect_pt
9a9c3de9d19ecf4dba25d519d44b964771f3eaab
[ "MIT" ]
null
null
null
simple_autocorrect_pt/insertion_filter.py
brenoskuk/simple_autocorrect_pt
9a9c3de9d19ecf4dba25d519d44b964771f3eaab
[ "MIT" ]
null
null
null
#important https://docs.python.org/3/library/stdtypes.html#string-methods import string from unicodedata import normalize import os #cria versões sem acentos das palavras def delete_acentos(text_input, codif='utf-8'): return normalize('NFKD', text_input).encode('ASCII', 'ignore').decode('ASCII') #cria versões com...
34.52381
139
0.523448
171
1,450
4.321637
0.497076
0.048714
0.052774
0.032476
0
0
0
0
0
0
0
0.011628
0.347586
1,450
41
140
35.365854
0.769556
0.143448
0
0.212121
0
0
0.090615
0
0
0
0
0.02439
0
1
0.060606
false
0
0.090909
0.060606
0.212121
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
a669e3801e7391a089b87fc36985727fb3de8070
1,243
py
Python
apps/users/backends.py
gene1wood/spark
071d6da19076ee047530220223d7beab3d31abab
[ "BSD-3-Clause" ]
3
2015-12-09T15:02:03.000Z
2017-10-05T16:54:14.000Z
apps/users/backends.py
gene1wood/spark
071d6da19076ee047530220223d7beab3d31abab
[ "BSD-3-Clause" ]
2
2019-02-17T17:29:25.000Z
2019-03-28T03:40:58.000Z
apps/users/backends.py
gene1wood/spark
071d6da19076ee047530220223d7beab3d31abab
[ "BSD-3-Clause" ]
3
2019-03-28T03:41:01.000Z
2020-04-29T09:47:21.000Z
import hashlib import os from django.contrib.auth import models as auth_models from django.contrib.auth.backends import ModelBackend # http://fredericiana.com/2010/10/12/adding-support-for-stronger-password-hashes-to-django/ """ from future import django_sha256_support Monkey-patch SHA-256 support into Django's aut...
29.595238
91
0.7321
170
1,243
5.217647
0.488235
0.094701
0.067644
0.047351
0
0
0
0
0
0
0
0.038241
0.158488
1,243
41
92
30.317073
0.809751
0.224457
0
0
0
0
0.026076
0
0
0
0
0
0
1
0.105263
false
0.421053
0.210526
0
0.473684
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
a67012a2b331aee2e1c7b49b59bf547e2add7ee7
2,663
py
Python
flask_project/campaign_manager/insights_functions/count_feature.py
russbiggs/MapCampaigner
05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148
[ "BSD-3-Clause" ]
24
2018-10-05T06:39:11.000Z
2022-02-22T08:54:37.000Z
flask_project/campaign_manager/insights_functions/count_feature.py
russbiggs/MapCampaigner
05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148
[ "BSD-3-Clause" ]
384
2017-05-17T07:50:02.000Z
2018-09-20T08:18:56.000Z
flask_project/campaign_manager/insights_functions/count_feature.py
russbiggs/MapCampaigner
05b6c6eb1bdefbe0b60313a9d3cd1a0d2df2a148
[ "BSD-3-Clause" ]
16
2017-05-11T08:52:19.000Z
2018-06-08T06:55:43.000Z
__author__ = 'Irwan Fathurrahman <irwan@kartoza.com>' __date__ = '17/05/17' from campaign_manager.insights_functions._abstract_overpass_insight_function \ import AbstractOverpassInsightFunction class CountFeature(AbstractOverpassInsightFunction): function_name = "Number of feature in group" # attribute ...
28.945652
78
0.580924
289
2,663
5.124567
0.349481
0.042539
0.024308
0.030385
0.185685
0.185685
0.185685
0.13707
0.13707
0.13707
0
0.005682
0.339091
2,663
91
79
29.263736
0.835795
0.233947
0
0.041667
0
0
0.084645
0
0
0
0
0
0
1
0.104167
false
0.083333
0.020833
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a670f9af20ba3de60849716ec4157b6e24cc4620
4,689
py
Python
wxc_sdk/person_settings/monitoring.py
jeokrohn/wxc_sdk
e28b7e0f870d17b7f9a79ad9a4b8af221e58f8e9
[ "MIT" ]
null
null
null
wxc_sdk/person_settings/monitoring.py
jeokrohn/wxc_sdk
e28b7e0f870d17b7f9a79ad9a4b8af221e58f8e9
[ "MIT" ]
null
null
null
wxc_sdk/person_settings/monitoring.py
jeokrohn/wxc_sdk
e28b7e0f870d17b7f9a79ad9a4b8af221e58f8e9
[ "MIT" ]
1
2022-03-29T18:56:59.000Z
2022-03-29T18:56:59.000Z
""" call monitoring API """ from typing import Optional, Union from pydantic import Field from .common import PersonSettingsApiChild from ..base import ApiModel, webex_id_to_uuid from ..common import MonitoredMember, CallParkExtension __all__ = ['MonitoredElementMember', 'MonitoredElement', 'Monitoring', ...
40.076923
118
0.683301
610
4,689
5.14918
0.260656
0.02547
0.02547
0.025788
0.24228
0.207259
0.207259
0.207259
0.207259
0.18561
0
0
0.245681
4,689
116
119
40.422414
0.888041
0.433568
0
0.142857
0
0
0.062187
0.020033
0
0
0
0.008621
0
1
0.102041
false
0
0.102041
0.061224
0.510204
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
a676fff6bada43ba749cca4e2433ef2bc3b4b259
578
py
Python
scrapyinfo/urls.py
ToonoW/SpiderManager
0bfa94645b931ded03e71a005100e944457085a1
[ "Apache-2.0" ]
34
2017-09-19T07:43:19.000Z
2020-09-04T03:26:58.000Z
scrapyinfo/urls.py
ToonoW/SpiderManager
0bfa94645b931ded03e71a005100e944457085a1
[ "Apache-2.0" ]
1
2017-12-13T10:22:21.000Z
2018-01-18T01:48:21.000Z
scrapyinfo/urls.py
ToonoW/SpiderManager
0bfa94645b931ded03e71a005100e944457085a1
[ "Apache-2.0" ]
10
2018-07-09T09:19:22.000Z
2021-11-28T03:54:12.000Z
from django.urls import path from scrapyinfo import views urlpatterns = [ path('refresh_platform_information', views.RefreshPlatformView.as_view()), path('scrapyds', views.ScrapydList.as_view()), path('scrapyd/<pk>', views.ScrapydDetial.as_view()), path('projects', views.ProjectList.as_view()), p...
34
78
0.697232
70
578
5.6
0.442857
0.137755
0.204082
0
0
0
0
0
0
0
0
0
0.119377
578
16
79
36.125
0.770138
0
0
0
0
0
0.176471
0.048443
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
a67c882cbadd7b8302ca864ceef5adeec2feebe9
8,865
py
Python
experiments/xor_rxor_spiral_exp/spiral_appendix_plot.py
jdey4/progressive-learning
410b3525ab63e1f7c32e9838460b2c9af7b9d256
[ "Apache-2.0" ]
1
2022-01-03T12:36:28.000Z
2022-01-03T12:36:28.000Z
experiments/xor_rxor_spiral_exp/spiral_appendix_plot.py
jdey4/progressive-learning
410b3525ab63e1f7c32e9838460b2c9af7b9d256
[ "Apache-2.0" ]
null
null
null
experiments/xor_rxor_spiral_exp/spiral_appendix_plot.py
jdey4/progressive-learning
410b3525ab63e1f7c32e9838460b2c9af7b9d256
[ "Apache-2.0" ]
null
null
null
#%% import random import matplotlib.pyplot as plt import tensorflow as tf import tensorflow.keras as keras import seaborn as sns import numpy as np import pickle from sklearn.model_selection import StratifiedKFold from math import log2, ceil import sys sys.path.append("../../src/") from lifelong_dnn import LifeLon...
31.325088
147
0.631134
1,500
8,865
3.623333
0.161333
0.054646
0.026495
0.048574
0.736155
0.712052
0.683349
0.648758
0.6046
0.58896
0
0.080623
0.167513
8,865
282
148
31.43617
0.655827
0.284151
0
0.406452
0
0
0.108911
0.028905
0
0
0
0
0
1
0.019355
false
0
0.077419
0
0.122581
0.006452
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
a67fc51a4993acf13c658b315a4e597bdf70cc24
1,105
py
Python
nlp/src/aad/aad_session_middleware.py
dupuyjs/lis-project
e949fad5f3dd62bd41c55ba545b0c532e9600724
[ "MIT" ]
null
null
null
nlp/src/aad/aad_session_middleware.py
dupuyjs/lis-project
e949fad5f3dd62bd41c55ba545b0c532e9600724
[ "MIT" ]
6
2021-08-31T11:04:54.000Z
2021-10-14T14:03:57.000Z
nlp/src/aad/aad_session_middleware.py
dupuyjs/lis-project
e949fad5f3dd62bd41c55ba545b0c532e9600724
[ "MIT" ]
1
2022-02-23T14:16:38.000Z
2022-02-23T14:16:38.000Z
from starlette.authentication import ( AuthCredentials, AuthenticationBackend, UnauthenticatedUser, ) from .aad_authentication_client import AadAuthenticationClient class AadSessionMiddleware(AuthenticationBackend): async def authenticate(self, request): """Authenticate a request. If ...
32.5
73
0.667873
111
1,105
6.594595
0.54955
0.114754
0.102459
0.180328
0
0
0
0
0
0
0
0
0.270588
1,105
33
74
33.484848
0.908189
0.133937
0
0.166667
0
0
0.007067
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.388889
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
a680f0cca965f8075d7797e3086f7089fef372ce
1,254
py
Python
src/lib/bigcities.py
taygetea/weather
329d1ca92c2c820d67549ac73756098aa4cebef5
[ "MIT" ]
1
2015-05-13T08:05:11.000Z
2015-05-13T08:05:11.000Z
src/lib/bigcities.py
taygetea/weather
329d1ca92c2c820d67549ac73756098aa4cebef5
[ "MIT" ]
null
null
null
src/lib/bigcities.py
taygetea/weather
329d1ca92c2c820d67549ac73756098aa4cebef5
[ "MIT" ]
null
null
null
import json """ This code cleans the city data from here, and puts it into a JSON file if the city has a population over some threshold. This is used to create a heuristic as to what is meant when a user inputs the name of a city. """ threshold = 100000 with open('worldcitiespop.txt') as f: f.next() cities...
32.153846
109
0.61882
192
1,254
4.036458
0.447917
0.032258
0.046452
0.051613
0
0
0
0
0
0
0
0.027719
0.251994
1,254
39
110
32.153846
0.798507
0
0
0
0
0
0.030039
0
0
0
0
0
0
0
null
null
0
0.04
null
null
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
1
0
0
0
0
0
0
0
0
1
a68a203ea34bc6952ee47d8ebe250fafdb9dd2b2
1,060
py
Python
shapelets/phs/ModColor.py
richarms/shapelets
30d3cec36dd300fe836d9e60d144819748470b55
[ "BSD-3-Clause" ]
18
2015-02-25T20:23:24.000Z
2022-01-21T08:42:46.000Z
shapelets/phs/ModColor.py
richarms/shapelets
30d3cec36dd300fe836d9e60d144819748470b55
[ "BSD-3-Clause" ]
12
2015-05-04T09:32:24.000Z
2016-03-31T06:26:45.000Z
shapelets/phs/ModColor.py
richarms/shapelets
30d3cec36dd300fe836d9e60d144819748470b55
[ "BSD-3-Clause" ]
4
2016-12-07T12:51:24.000Z
2019-11-21T09:31:30.000Z
HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' bold='\033[1m' nobold='\033[0m' Separator="================================%s==================================" silent=0 def Str(strin0,col="red",Bold=True): if silent==1: return st...
21.632653
81
0.486792
138
1,060
3.73913
0.326087
0.015504
0.075581
0.065891
0.096899
0.096899
0.096899
0.096899
0
0
0
0.060606
0.283962
1,060
49
82
21.632653
0.619236
0
0
0.155556
0
0
0.165844
0.067127
0
0
0
0
0
0
null
null
0
0
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
a68af35e49a58184930b0442cb48eefe5b1d8ba9
5,291
py
Python
pypeit/core/wavecal/spectrographs/templ_keck_deimos.py
mcoughlin/PypeIt
9aa1d10633faf3d73135e1a1c94b1cd18c7058e0
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/wavecal/spectrographs/templ_keck_deimos.py
mcoughlin/PypeIt
9aa1d10633faf3d73135e1a1c94b1cd18c7058e0
[ "BSD-3-Clause" ]
null
null
null
pypeit/core/wavecal/spectrographs/templ_keck_deimos.py
mcoughlin/PypeIt
9aa1d10633faf3d73135e1a1c94b1cd18c7058e0
[ "BSD-3-Clause" ]
null
null
null
""" Generate the wavelength templates for Keck/DEIMOS""" import os from pypeit.core.wavecal import templates # Keck/DEIMOS def keck_deimos_600ZD(): binspec = 1 slits = [0, 1] lcut = [7192.] xidl_file = os.path.join(templates.template_path, 'Keck_DEIMOS', '600ZD', 'deimos_600.sav') outroot = 'kec...
42.669355
111
0.642601
703
5,291
4.583215
0.236131
0.090006
0.043451
0.070764
0.701117
0.595903
0.595903
0.547486
0.534761
0.531037
0
0.128023
0.226422
5,291
123
112
43.01626
0.659174
0.149877
0
0.179487
1
0
0.209913
0.146894
0
0
0
0
0.025641
1
0.064103
false
0.012821
0.025641
0
0.089744
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
a68ce072cab42c63c86912de31bf5c74962bfb8d
1,427
py
Python
setup.py
USGS-EROS/lcmap-merlin
692568e7e8e0bbb236e6e801b90abde8be8a05ea
[ "Unlicense" ]
null
null
null
setup.py
USGS-EROS/lcmap-merlin
692568e7e8e0bbb236e6e801b90abde8be8a05ea
[ "Unlicense" ]
null
null
null
setup.py
USGS-EROS/lcmap-merlin
692568e7e8e0bbb236e6e801b90abde8be8a05ea
[ "Unlicense" ]
3
2018-05-08T14:51:56.000Z
2018-07-12T19:07:34.000Z
from setuptools import find_packages from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='lcmap-merlin', version='2.3.1', description='Python client library for LCMAP rasters', long_description=readme(), classifiers=[ 'Devel...
27.980392
72
0.531885
135
1,427
5.525926
0.740741
0.037534
0.053619
0
0
0
0
0
0
0
0
0.006329
0.335669
1,427
50
73
28.54
0.780591
0.144359
0
0.076923
0
0
0.311624
0
0
0
0
0
0
1
0.025641
true
0
0.051282
0
0.102564
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
a68dd7ef84d7d43ac1ca74bbeb2c759eeb144188
3,303
py
Python
tests/test_models/test_state.py
lowercaselife/AirBnB_clone
503c2889a0e1f96dd6ddd497ce7649ca00589a24
[ "MIT" ]
null
null
null
tests/test_models/test_state.py
lowercaselife/AirBnB_clone
503c2889a0e1f96dd6ddd497ce7649ca00589a24
[ "MIT" ]
null
null
null
tests/test_models/test_state.py
lowercaselife/AirBnB_clone
503c2889a0e1f96dd6ddd497ce7649ca00589a24
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """State unittests""" import unittest from models.state import State import datetime import time class TestState(unittest.TestCase): """class TestState""" def test_state_class_membership_and_attributes(self): """State is right class with correct attrs""" state = State() ...
37.534091
71
0.674841
395
3,303
5.346835
0.202532
0.072443
0.059659
0.040246
0.377367
0.265625
0.253788
0.225379
0.185606
0.147727
0
0.006579
0.217681
3,303
87
72
37.965517
0.810759
0.120194
0
0.292308
0
0
0.019264
0
0
0
0
0
0.446154
1
0.123077
false
0
0.061538
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
1
0
0
0
0
0
0
0
0
0
1
a69322ebc9f970a8cbe782a7fce65108e777c1ed
2,263
py
Python
intrinsic/evaluation/classifiers/dataset_readers/word_vector_reader.py
UKPLab/linspector
46a7cca6ad34dc673feb47c4d452f1248d5e635b
[ "Apache-2.0" ]
21
2019-03-21T12:10:09.000Z
2022-03-01T04:42:34.000Z
intrinsic/evaluation/classifiers/dataset_readers/word_vector_reader.py
UKPLab/linspector
46a7cca6ad34dc673feb47c4d452f1248d5e635b
[ "Apache-2.0" ]
1
2019-03-25T17:27:40.000Z
2019-04-04T07:01:08.000Z
intrinsic/evaluation/classifiers/dataset_readers/word_vector_reader.py
UKPLab/linspector
46a7cca6ad34dc673feb47c4d452f1248d5e635b
[ "Apache-2.0" ]
2
2019-04-17T07:36:12.000Z
2019-10-10T09:15:29.000Z
from typing import Dict, List, Iterator import json import logging from overrides import overrides import tqdm import os import sys import codecs import numpy as np from allennlp.common import Params from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetRe...
26.940476
98
0.727353
298
2,263
5.402685
0.439597
0.052174
0.049689
0
0
0
0
0
0
0
0
0.002134
0.171896
2,263
83
99
27.26506
0.85699
0.27574
0
0.045455
0
0
0.021303
0
0
0
0
0
0
1
0.068182
false
0
0.363636
0
0.477273
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
a694b3e1360de13137a7954832280c7b17efe003
7,497
py
Python
pysnmp/CISCO-LAG-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-LAG-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-LAG-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-LAG-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LAG-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 17:47:12 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
99.96
695
0.739629
834
7,497
6.646283
0.196643
0.015876
0.07541
0.103193
0.586506
0.535631
0.531481
0.531481
0.531481
0.529497
0
0.176408
0.123649
7,497
74
696
101.310811
0.667275
0.044551
0
0.328358
0
0.074627
0.244898
0.00615
0
0
0
0
0
1
0
false
0
0.104478
0
0.104478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a69f54a26f15c06ccf64b5654e8134d3b5ec7a7a
457
py
Python
hobbies/migrations/0004_auto_20200309_1310.py
ablades/sideline
8a153da3da0cb0de84cd15751c055f4c625f2f5f
[ "MIT" ]
1
2020-05-11T08:32:01.000Z
2020-05-11T08:32:01.000Z
hobbies/migrations/0004_auto_20200309_1310.py
ablades/sideline
8a153da3da0cb0de84cd15751c055f4c625f2f5f
[ "MIT" ]
7
2021-03-19T00:25:46.000Z
2022-03-12T00:22:45.000Z
hobbies/migrations/0004_auto_20200309_1310.py
ablades/sideline
8a153da3da0cb0de84cd15751c055f4c625f2f5f
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-09 20:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hobbies', '0003_userhobbies'), ] operations = [ migrations.AlterField( model_name='hobbies', name='img_url', ...
24.052632
126
0.623632
53
457
5.301887
0.849057
0
0
0
0
0
0
0
0
0
0
0.084058
0.245077
457
18
127
25.388889
0.730435
0.098468
0
0
1
0.083333
0.243902
0
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
a6a3c80a1af4e96e0cbf22aa7e6b5398c971813a
3,290
py
Python
ming_person_wiki/wiki_crawler/spiders/main.py
RUiN-jiarun/Chinese-Traditional-Art-KG
5bf1bc01f1087ea46b7a53d93642bcd046cedfb7
[ "MIT" ]
null
null
null
ming_person_wiki/wiki_crawler/spiders/main.py
RUiN-jiarun/Chinese-Traditional-Art-KG
5bf1bc01f1087ea46b7a53d93642bcd046cedfb7
[ "MIT" ]
null
null
null
ming_person_wiki/wiki_crawler/spiders/main.py
RUiN-jiarun/Chinese-Traditional-Art-KG
5bf1bc01f1087ea46b7a53d93642bcd046cedfb7
[ "MIT" ]
null
null
null
import scrapy from scrapy.loader import ItemLoader import pymongo from wiki_crawler.items import WikiCrawlerItem import zhconv import re def inter(a,b): return list(set(a)&set(b)) class MainSpider(scrapy.Spider): name = 'main' allowed_domains = ['zh.wikipedia.org'] db = pymongo.MongoClient("mongodb://...
36.153846
132
0.47538
385
3,290
3.914286
0.303896
0.078965
0.036496
0.03716
0.163902
0.163902
0.147313
0.147313
0.147313
0.147313
0
0.024894
0.352888
3,290
91
133
36.153846
0.68295
0.193313
0
0
0
0.035714
0.145683
0.093191
0
0
0
0.010989
0
1
0.053571
false
0
0.107143
0.017857
0.321429
0.089286
0
0
0
null
0
0
0
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
a6a61e3e5c8cfa41deb186bd785422e6bcaa4ff4
17,149
py
Python
MINTConformance/src/org/nema/medical/mint/MintDicomCompare.py
aweigold/medical-imaging-network-transport
b5ca920ba8a4f62d44274ed84ec3077516b233e2
[ "Apache-2.0" ]
null
null
null
MINTConformance/src/org/nema/medical/mint/MintDicomCompare.py
aweigold/medical-imaging-network-transport
b5ca920ba8a4f62d44274ed84ec3077516b233e2
[ "Apache-2.0" ]
null
null
null
MINTConformance/src/org/nema/medical/mint/MintDicomCompare.py
aweigold/medical-imaging-network-transport
b5ca920ba8a4f62d44274ed84ec3077516b233e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ----------------------------------------------------------------------------- # $Id$ # # Copyright (C) 2010 MINT Working group. All rights reserved. # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this w...
33.363813
106
0.510992
1,531
17,149
5.564337
0.22273
0.021129
0.015847
0.019016
0.141566
0.098016
0.082404
0.059631
0.039676
0.026764
0
0.015784
0.357164
17,149
513
107
33.42885
0.756985
0.175462
0
0.230263
0
0
0.07667
0
0
0
0
0.001949
0.006579
0
null
null
0.003289
0.052632
null
null
0.065789
0
0
0
null
0
0
0
0
0
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
a6a6381b3b0104ea6f4813b20ea5f49fe1a96c47
3,709
py
Python
text_analysis.py
doctorparadox/pyTwintel
43cb8dd1257939d5f1b93c179e8fa442772b03a9
[ "MIT" ]
2
2017-03-29T22:40:38.000Z
2020-06-26T07:04:38.000Z
text_analysis.py
doctorparadox/pyTwintel
43cb8dd1257939d5f1b93c179e8fa442772b03a9
[ "MIT" ]
null
null
null
text_analysis.py
doctorparadox/pyTwintel
43cb8dd1257939d5f1b93c179e8fa442772b03a9
[ "MIT" ]
null
null
null
import nltk ## helper function to create a word/count dict from a List of tweets def wordCount(tweetlist): words_dict = {} # Remove "common" words cw = open('common_words.txt', 'r') cw_str = cw.read() cw_tokens = nltk.word_tokenize(cw_str) for tweet in tweetlist: line_words = tweet.sp...
34.027523
97
0.644379
510
3,709
4.556863
0.321569
0.056799
0.013769
0.041308
0.32315
0.305508
0.275387
0.257315
0.229776
0.229776
0
0.009032
0.253707
3,709
108
98
34.342593
0.830564
0.231329
0
0.234375
0
0
0.030099
0.010269
0
0
0
0
0
0
null
null
0
0.015625
null
null
0.078125
0
0
0
null
0
0
0
0
0
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
a6aa02665d41cbe159097f0b6d6ab0018272fee7
662
py
Python
setup.py
lucasdavid/convolutional-cuda
2d1ef9121b49a70f71724d904a2bd53cb2fb658a
[ "MIT" ]
5
2017-04-16T22:47:10.000Z
2020-03-18T00:25:09.000Z
setup.py
lucasdavid/convolutional
2d1ef9121b49a70f71724d904a2bd53cb2fb658a
[ "MIT" ]
null
null
null
setup.py
lucasdavid/convolutional
2d1ef9121b49a70f71724d904a2bd53cb2fb658a
[ "MIT" ]
1
2016-07-01T23:01:49.000Z
2016-07-01T23:01:49.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='convolutional', description='Convolutional Networks implemented in CUDA.', long_description=open('README.md').read(), version='0.1', packages=['convolutional'], scripts=[], author='Lu...
31.52381
87
0.71148
74
662
6.297297
0.743243
0.04721
0.060086
0.072961
0.188841
0.188841
0.188841
0
0
0
0
0.003509
0.138973
662
20
88
33.1
0.814035
0
0
0
0
0
0.438066
0.036254
0
0
0
0
0
1
0
true
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a6b1aec635e82fd0165d5d054ff39dd32c8eed0e
870
py
Python
dbcron/tests/test_calendar.py
cloudspectatordevelopment/django-dbcron
53182ca803d1f5d8fd022a1cae79e0c0256bd25f
[ "BSD-3-Clause" ]
null
null
null
dbcron/tests/test_calendar.py
cloudspectatordevelopment/django-dbcron
53182ca803d1f5d8fd022a1cae79e0c0256bd25f
[ "BSD-3-Clause" ]
null
null
null
dbcron/tests/test_calendar.py
cloudspectatordevelopment/django-dbcron
53182ca803d1f5d8fd022a1cae79e0c0256bd25f
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from dbcron.calendar import JobCalendar from dbcron import models from dbcron.tests.factories import JobFactory class JobCalendarFormatMonthTest(TestCase): factory = JobFactory jobs = models.Job.objects.all() def test_meth(self): self.factory.create_batch(5, min=0...
30
61
0.666667
108
870
5.333333
0.398148
0.048611
0.086806
0.100694
0.506944
0.506944
0.506944
0.506944
0.506944
0.506944
0
0.042424
0.241379
870
28
62
31.071429
0.830303
0
0
0.545455
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a6b80952cf19597b711c0d038a57718ef41d0d75
535
py
Python
setup.py
oortega/django-async-messages-redux
2b1b2b1994fd17a01671e5f040f81dae9d378bad
[ "MIT" ]
2
2019-06-26T20:30:47.000Z
2021-02-26T22:42:44.000Z
setup.py
maurizi/django-async-messages
652a6600234196469d61b494b0e6122cc6f4cd1d
[ "MIT" ]
null
null
null
setup.py
maurizi/django-async-messages
652a6600234196469d61b494b0e6122cc6f4cd1d
[ "MIT" ]
1
2021-03-19T08:30:06.000Z
2021-03-19T08:30:06.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='django-async-messages-redux', version='0.4.1', url='https://github.com/maurizi/django-async-messages', author='Michael Maurizi', author_email='michael@maurizi.org', description="Send asynchronous messages to use...
38.214286
119
0.691589
67
535
5.447761
0.746269
0.065753
0.10411
0
0
0
0
0
0
0
0
0.011136
0.160748
535
13
120
41.153846
0.801782
0.037383
0
0
0
0
0.463035
0.052529
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
a6b9ec94c5c9c7313f743da9ef6d541017987840
1,693
py
Python
examples/hdx_wizard.py
orest-d/liquer
7a5b5a69cf673b4a849dd2da3050ccd75081e454
[ "MIT" ]
3
2019-12-10T10:22:36.000Z
2019-12-12T16:36:11.000Z
examples/hdx_wizard.py
orest-d/liquer
7a5b5a69cf673b4a849dd2da3050ccd75081e454
[ "MIT" ]
null
null
null
examples/hdx_wizard.py
orest-d/liquer
7a5b5a69cf673b4a849dd2da3050ccd75081e454
[ "MIT" ]
2
2019-11-14T16:26:52.000Z
2021-07-26T04:53:54.000Z
# Example of a wizard for Humanitarian Data Exchange # Make it run from the examples directory import sys sys.path.append("..") # Flask-related imports import logging import webbrowser from flask import Flask import liquer.blueprint as bp # This is the LiQuer blueprint containing the liquer web service # Modules ne...
33.196078
107
0.727112
236
1,693
5.080508
0.466102
0.037531
0.037531
0.028357
0
0
0
0
0
0
0
0.005694
0.170112
1,693
50
108
33.86
0.847687
0.383934
0
0
0
0
0.12963
0
0
0
0
0
0
1
0.034483
false
0
0.344828
0.034483
0.413793
0.068966
0
0
0
null
0
0
0
0
0
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
a6ba9d385d310bb78b8c3a4ddbe90cf2ec7f0e54
3,218
py
Python
oru_walk_control.py
asherikov/oru_walk_module
96a58b331b7d3011f414cc9b1643b44b80ea8710
[ "BSD-2-Clause" ]
9
2016-02-21T14:23:27.000Z
2021-07-30T13:27:24.000Z
oru_walk_control.py
asherikov/oru_walk_module
96a58b331b7d3011f414cc9b1643b44b80ea8710
[ "BSD-2-Clause" ]
null
null
null
oru_walk_control.py
asherikov/oru_walk_module
96a58b331b7d3011f414cc9b1643b44b80ea8710
[ "BSD-2-Clause" ]
5
2015-06-23T16:30:21.000Z
2018-08-20T11:39:32.000Z
#!/usr/bin/python #-*- coding: iso-8859-15 -*- # Remote control of walking module import os import sys import time from naoqi import ALProxy from optparse import OptionParser parser = OptionParser() parser.add_option("-a", "--action", action="store", type="int", dest="nao_action", default=0) parser.add_option("-b"...
30.942308
101
0.599441
408
3,218
4.620098
0.345588
0.081167
0.055172
0.033422
0.182493
0.066844
0
0
0
0
0
0.032342
0.279366
3,218
103
102
31.242718
0.780509
0.087943
0
0.178082
0
0
0.215727
0.010256
0
0
0
0
0
0
null
null
0
0.068493
null
null
0.246575
0
0
0
null
0
0
0
0
0
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
a6bef51e772e2f9ec170c20845c95497096a59b0
396
py
Python
tests/workspace/test_geopackage.py
dvntucker/geoscript-py
ea1b6ac584f3813b542204370399bb8f3209d214
[ "MIT" ]
22
2015-01-14T01:37:40.000Z
2021-07-11T14:21:38.000Z
tests/workspace/test_geopackage.py
dvntucker/geoscript-py
ea1b6ac584f3813b542204370399bb8f3209d214
[ "MIT" ]
15
2017-10-13T19:21:15.000Z
2021-08-06T08:59:31.000Z
tests/workspace/test_geopackage.py
dvntucker/geoscript-py
ea1b6ac584f3813b542204370399bb8f3209d214
[ "MIT" ]
15
2015-01-14T01:38:35.000Z
2020-04-26T02:05:01.000Z
import unittest from tests.workspace.workspacetest import WorkspaceTest from geoscript.workspace import GeoPackage class GeoPackageWorkspace_Test(WorkspaceTest): def setUp(self): self.ws = GeoPackage('work/data.gpkg') self.remove('widgets') self.remove('widgets2') self.remove('states2') def remov...
22
55
0.717172
46
396
6.152174
0.565217
0.106007
0
0
0
0
0
0
0
0
0
0.006135
0.176768
396
17
56
23.294118
0.861963
0
0
0
0
0
0.090909
0
0
0
0
0
0
1
0.142857
false
0.071429
0.214286
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
1
0
0
0
0
0
1
a6c06c21b1e435b0127f1bc35879c4160abc221d
2,160
py
Python
clarity-ext-scripts/deployment/slices.py
ctmrbio/claritylims
e4f193e9cd3aa54b2a1974a2ce5b573c397a88eb
[ "MIT" ]
4
2020-04-13T14:52:33.000Z
2022-02-03T14:50:41.000Z
clarity-ext-scripts/deployment/slices.py
ctmrbio/claritylims
e4f193e9cd3aa54b2a1974a2ce5b573c397a88eb
[ "MIT" ]
104
2019-04-01T08:35:59.000Z
2021-05-04T11:53:00.000Z
clarity-ext-scripts/deployment/slices.py
ctmrbio/claritylims
e4f193e9cd3aa54b2a1974a2ce5b573c397a88eb
[ "MIT" ]
4
2020-04-02T07:06:41.000Z
2021-08-20T06:42:27.000Z
import os import click from subprocess import call import yaml from datetime import datetime import logging logging.basicConfig(level="INFO") tool = "./bin/config-slicer/config-slicer-3.1.14.7.jar" # Fetches a manifest file from the staging server @click.group() def cli(): pass def read_config(): with open...
27.341772
96
0.627778
246
2,160
5.45122
0.333333
0.06264
0.053691
0.060403
0.397465
0.277405
0.185682
0.185682
0.158091
0.074571
0
0.002877
0.19537
2,160
78
97
27.692308
0.7687
0.021759
0
0.390625
0
0
0.226433
0.060635
0
0
0
0
0
1
0.078125
false
0.078125
0.15625
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a6c73262482e862e3efdaf8bf9594db56c07a531
1,295
py
Python
app.py
rejreign/Docufix-Page-Summary
c23efc34cfdc902148e874e42f27a1b6fec150a5
[ "MIT" ]
null
null
null
app.py
rejreign/Docufix-Page-Summary
c23efc34cfdc902148e874e42f27a1b6fec150a5
[ "MIT" ]
null
null
null
app.py
rejreign/Docufix-Page-Summary
c23efc34cfdc902148e874e42f27a1b6fec150a5
[ "MIT" ]
1
2019-11-13T16:41:44.000Z
2019-11-13T16:41:44.000Z
from __future__ import absolute_import from __future__ import division, print_function, unicode_literals from flask import Flask, request, jsonify, render_template, redirect # from sumy.parsers.html import HtmlParser from sumy.parsers.plaintext import PlaintextParser from sumy.nlp.tokenizers import Tokenizer from sumy...
30.116279
72
0.749035
162
1,295
5.771605
0.5
0.051337
0.034225
0.064171
0.072727
0
0
0
0
0
0
0.010791
0.141313
1,295
43
73
30.116279
0.830036
0.096525
0
0
0
0
0.05761
0
0
0
0
0
0
1
0.068966
false
0
0.310345
0.034483
0.448276
0.034483
0
0
0
null
0
0
0
0
0
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
a6cddad0865c9f51e1bae56b8f83e6779124c21b
845
py
Python
labs_web/views/student/announcement.py
okorienev/labs_web
9bfd69ffc2196832523d5809cf921debe530f886
[ "BSD-3-Clause" ]
2
2018-04-22T11:34:09.000Z
2018-05-09T20:14:48.000Z
labs_web/views/student/announcement.py
AlexPraefectus/labs_web
9bfd69ffc2196832523d5809cf921debe530f886
[ "BSD-3-Clause" ]
null
null
null
labs_web/views/student/announcement.py
AlexPraefectus/labs_web
9bfd69ffc2196832523d5809cf921debe530f886
[ "BSD-3-Clause" ]
null
null
null
from flask.views import View from flask_login import current_user, login_required from flask import render_template, redirect, url_for, flash from labs_web.extensions import get_announcement_by_oid class Announcement(View): decorators = [login_required] def dispatch_request(self, *args, **kwargs): an...
40.238095
77
0.704142
102
845
5.617647
0.470588
0.04712
0.073298
0.069808
0.132635
0.132635
0.132635
0
0
0
0
0.001506
0.214201
845
20
78
42.25
0.861446
0
0
0.125
0
0
0.180095
0.029621
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
a6cf51c28b604fe316fffeaef7fa47254d0c3c7b
608
py
Python
setup.py
ccnmtl/epubbuilder
c17746366c36c05d6079c364c490ce749439fc36
[ "BSD-2-Clause" ]
null
null
null
setup.py
ccnmtl/epubbuilder
c17746366c36c05d6079c364c490ce749439fc36
[ "BSD-2-Clause" ]
1
2018-12-19T21:30:18.000Z
2018-12-19T21:30:18.000Z
setup.py
ccnmtl/epubbuilder
c17746366c36c05d6079c364c490ce749439fc36
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals from setuptools import setup setup( name="epubbuilder", version="0.2.1", author="Anders Pearson", author_email="anders@columbia.edu", url="https://github.com/ccnmtl/epubbuilder", description="epub builder library", long_description="forked from pytho...
22.518519
55
0.639803
65
608
5.8
0.8
0.058355
0
0
0
0
0
0
0
0
0
0.006316
0.21875
608
26
56
23.384615
0.787368
0
0
0
0
0
0.309211
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
a6d0fe0ea1571ee9e53d56c97dd558e143562771
3,252
py
Python
framework/models/courses.py
sperea/LMS-Backend-Boilerplate-Django-REST
39adb9f57fd720aaba0ba27559fce00f74df4e0d
[ "ECL-2.0" ]
null
null
null
framework/models/courses.py
sperea/LMS-Backend-Boilerplate-Django-REST
39adb9f57fd720aaba0ba27559fce00f74df4e0d
[ "ECL-2.0" ]
null
null
null
framework/models/courses.py
sperea/LMS-Backend-Boilerplate-Django-REST
39adb9f57fd720aaba0ba27559fce00f74df4e0d
[ "ECL-2.0" ]
null
null
null
import os import uuid from django.db import models from accounts.models import Student from accounts.models import Teacher import cloudinary class CourseORM(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) name = models.CharField(max_length=150) slug = models.Sl...
29.297297
113
0.710025
401
3,252
5.566085
0.246883
0.040323
0.064516
0.086022
0.486559
0.486559
0.458333
0.458333
0.458333
0.448925
0
0.014232
0.178967
3,252
111
114
29.297297
0.821723
0.02337
0
0.5
0
0
0.03495
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0.064103
0.846154
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
a6d2ef8d529725c6a88574d63053436b63bbfda8
3,634
py
Python
bench/py/keyedpq_a.py
pskopnik/apq
827e722ec604d2f7c050f43748136613c3cd3d70
[ "MIT" ]
4
2020-02-12T11:59:19.000Z
2021-08-21T07:01:31.000Z
bench/py/keyedpq_a.py
pskopnik/apq
827e722ec604d2f7c050f43748136613c3cd3d70
[ "MIT" ]
null
null
null
bench/py/keyedpq_a.py
pskopnik/apq
827e722ec604d2f7c050f43748136613c3cd3d70
[ "MIT" ]
1
2020-02-11T18:52:35.000Z
2020-02-11T18:52:35.000Z
from dataclasses import dataclass, field from typing import Any, Dict, Generic, List, Tuple, TypeVar, Union import heapq import math _KT = TypeVar('_KT') # key type _DT = TypeVar('_DT') # data type _KT_inner = TypeVar('_KT_inner') # alternative key type for inner definitions _DT_inner = TypeVar('_DT_inner') # alterna...
35.627451
123
0.641717
460
3,634
4.713043
0.154348
0.02214
0.051661
0.058118
0.465406
0.299816
0.208948
0.170203
0.081181
0.081181
0
0.001808
0.238855
3,634
101
124
35.980198
0.781996
0.032746
0
0.25
0
0
0.083238
0.020525
0
0
0
0
0
1
0.210526
false
0
0.052632
0.065789
0.473684
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
a6d3a1298a6e97381945ac6ecb63f2b70ee129f4
2,005
py
Python
jrk/el_hyperparams.py
mehdi-mirzapour/eigenthemes
7252c21831b6856e9047a26bdb09bb0787b957d0
[ "Apache-2.0" ]
11
2021-09-16T06:38:27.000Z
2022-03-28T01:44:34.000Z
jrk/el_hyperparams.py
mehdi-mirzapour/eigenthemes
7252c21831b6856e9047a26bdb09bb0787b957d0
[ "Apache-2.0" ]
1
2022-02-28T16:53:56.000Z
2022-02-28T16:53:56.000Z
jrk/el_hyperparams.py
mehdi-mirzapour/eigenthemes
7252c21831b6856e9047a26bdb09bb0787b957d0
[ "Apache-2.0" ]
2
2022-01-10T09:45:52.000Z
2022-03-08T01:51:47.000Z
''' Code modified by the authors of the paper: "Low-rank Subspaces for Unsupervised Entity Linking" to enable working with "Wikidata" instead of "Freebase" ''' import argparse sup_train=False MAX_POS = 10 MAX_N_POSS_TEST = 100 MAX_N_POSS_TRAIN = 100 N_NEGS = 10 SAMPLE_NEGS = True TYPE_OPT = 'mean' parser = argparse....
50.125
151
0.756608
317
2,005
4.589905
0.340694
0.136082
0.257045
0.049485
0.215808
0.074227
0
0
0
0
0
0.027086
0.079302
2,005
39
152
51.410256
0.761105
0.075312
0
0
0
0
0.265981
0.050921
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
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
a6d7aa2dbeb0b62e780ca80c636e66e22d39cb3b
1,654
py
Python
clsim/python/GetIceCubeCableShadow.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
clsim/python/GetIceCubeCableShadow.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
clsim/python/GetIceCubeCableShadow.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
from icecube.icetray import OMKey from icecube.simclasses import I3MapModuleKeyI3ExtraGeometryItemCylinder, I3ExtraGeometryItemCylinder from icecube.dataclasses import I3Position, ModuleKey from I3Tray import I3Units import numpy as np from os.path import expandvars from_cable_shadow = expandvars("$I3_BUILD/ice-mod...
48.647059
167
0.758162
211
1,654
5.890995
0.417062
0.024135
0.03218
0.03218
0.148029
0.148029
0.104586
0.104586
0.104586
0.104586
0
0.024665
0.14208
1,654
33
168
50.121212
0.851304
0.284764
0
0
0
0
0.154657
0.135325
0
0
0
0
0
1
0.0625
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a6e24b7b40c5030d8980fa7ff9c8838c610a4c31
2,527
py
Python
hackerrank/algorithm/almost-sorted/a.py
SwordYoung/cutprob
f022b6bc23d80d5d214b54c49f372af49c837855
[ "Artistic-2.0" ]
null
null
null
hackerrank/algorithm/almost-sorted/a.py
SwordYoung/cutprob
f022b6bc23d80d5d214b54c49f372af49c837855
[ "Artistic-2.0" ]
null
null
null
hackerrank/algorithm/almost-sorted/a.py
SwordYoung/cutprob
f022b6bc23d80d5d214b54c49f372af49c837855
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python def test(n, nums): assert n == len(nums) mmax = [] stk = [] for i in xrange(n): # print "i = %d" % (i) mmax.append(i) while stk and nums[i] >= nums[stk[-1]]: stk.pop() if not stk: mmax[i] = 0 else: mmax[i]...
22.765766
61
0.452315
365
2,527
3.038356
0.186301
0.079351
0.048693
0.086564
0.258792
0.218215
0.164112
0.091975
0.070334
0.070334
0
0.045576
0.409577
2,527
110
62
22.972727
0.697721
0.042343
0
0.347368
0
0
0.008282
0
0
0
0
0
0.021053
0
null
null
0
0.010526
null
null
0.042105
0
0
0
null
0
0
0
0
0
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
a6e5cc925777b09be0998000451c5793982282d5
5,407
py
Python
week02_1.py
allqoow/exerciseML
a499c06f06ec1971f0c9e4da1919cc0b0f892b91
[ "MIT" ]
null
null
null
week02_1.py
allqoow/exerciseML
a499c06f06ec1971f0c9e4da1919cc0b0f892b91
[ "MIT" ]
null
null
null
week02_1.py
allqoow/exerciseML
a499c06f06ec1971f0c9e4da1919cc0b0f892b91
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Author : allqoow # Contact : allqoow@gmail.com # Started on: 20161029(yyyymmdd) # Project : exerciseML(Exercise for Machine Learning) # H2.1.A print "H2.1.A" import matplotlib.pyplot import math import numpy.random x1List = [] x2List = [] yList = [] colourList = [...
28.914439
87
0.667468
764
5,407
4.723822
0.215969
0.057634
0.017733
0.024383
0.464949
0.400665
0.373788
0.347742
0.340538
0.305071
0
0.04877
0.158128
5,407
187
88
28.914439
0.744069
0.165711
0
0.407407
0
0
0.030804
0
0
0
0
0
0
0
null
null
0
0.022222
null
null
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
1
0
0
0
0
0
0
0
0
1
a6e68adcba10f09bbef1264553de5ecd11ab3271
1,080
py
Python
knockoff/utilities/io.py
Nike-Inc/knockoff-factory
1567a46e5eaa3fe1bdf989ef5253f9ee0dbd69b3
[ "Apache-2.0" ]
26
2021-07-08T20:13:12.000Z
2022-03-27T21:08:38.000Z
knockoff/utilities/io.py
Nike-Inc/knockoff-factory
1567a46e5eaa3fe1bdf989ef5253f9ee0dbd69b3
[ "Apache-2.0" ]
8
2021-07-12T20:20:49.000Z
2021-09-11T20:49:40.000Z
knockoff/utilities/io.py
Nike-Inc/knockoff-factory
1567a46e5eaa3fe1bdf989ef5253f9ee0dbd69b3
[ "Apache-2.0" ]
null
null
null
import logging from sqlalchemy import create_engine from joblib import Parallel, delayed logger = logging.getLogger(__name__) def _to_sql(df, table, url, **kwargs): to_sql_kwargs = { 'index': False, 'method': 'multi', 'if_exists': 'append' } to_sql_kwargs.update(kwargs) engin...
25.714286
59
0.569444
126
1,080
4.690476
0.452381
0.067682
0.047377
0.060914
0.106599
0.106599
0
0
0
0
0
0.009472
0.315741
1,080
41
60
26.341463
0.790257
0.049074
0
0.117647
0
0
0.068293
0
0
0
0
0.02439
0
1
0.058824
false
0
0.088235
0
0.147059
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
a6e8b795203f60ee36bec9343ee3a7ef7ea531ec
1,425
py
Python
deepcave/utils/importing.py
PhMueller/DeepCAVE
2aec109470e667d4bbbe0cd0d9abb11e683a23c4
[ "Apache-2.0" ]
null
null
null
deepcave/utils/importing.py
PhMueller/DeepCAVE
2aec109470e667d4bbbe0cd0d9abb11e683a23c4
[ "Apache-2.0" ]
null
null
null
deepcave/utils/importing.py
PhMueller/DeepCAVE
2aec109470e667d4bbbe0cd0d9abb11e683a23c4
[ "Apache-2.0" ]
null
null
null
import os import glob from typing import List from importlib import import_module import importlib.util import sys import inspect import collections from deepcave.utils.logs import get_logger logger = get_logger(__name__) def auto_import_iter(module, paths: List[str]): for path in paths: for f in glob....
33.928571
125
0.618947
178
1,425
4.831461
0.44382
0.05814
0.032558
0.034884
0
0
0
0
0
0
0
0.011776
0.284912
1,425
41
126
34.756098
0.832188
0.18807
0
0.071429
0
0
0.073043
0
0
0
0
0
0
1
0.035714
false
0
0.428571
0
0.464286
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
a6eb2a3d252b38d2fbf8d2012c018b439b34ec15
2,142
py
Python
setup.py
Mykrass/data-synthesis-for-machine-learning
df56959424f73d7797b70dcbf9cc5105a2a2365f
[ "Apache-2.0" ]
1
2020-12-17T09:21:07.000Z
2020-12-17T09:21:07.000Z
setup.py
Mykrass/data-synthesis-for-machine-learning
df56959424f73d7797b70dcbf9cc5105a2a2365f
[ "Apache-2.0" ]
null
null
null
setup.py
Mykrass/data-synthesis-for-machine-learning
df56959424f73d7797b70dcbf9cc5105a2a2365f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup INSTALL_REQUIRES = [ 'numpy >= 1.14.3', 'matplotlib >= 2.2.2', 'mako ==1.0.12', 'pandas >= 0.24.2', 'scikit-learn >= 0.20.2', 'pytest >= 4.6.2', 'python-dateutil >= 2.7.3', 'setuptools >= 39.1.0' ] LONG_DESCRIPTION = """ The recent en...
31.5
79
0.64986
267
2,142
5.123596
0.543071
0.04386
0.030702
0.02193
0.048246
0.048246
0.048246
0
0
0
0
0.024
0.241363
2,142
67
80
31.970149
0.817846
0.009337
0
0
0
0
0.619991
0.026403
0
0
0
0
0
1
0.017544
false
0
0.017544
0
0.035088
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a6edd7544bb33658b2464d3cd2c9d819ad889766
20,805
py
Python
app/models.py
oblassers/tuw-servicebroker
228c9767e196393a08f34e1b283bf8b1c5d11a32
[ "MIT" ]
null
null
null
app/models.py
oblassers/tuw-servicebroker
228c9767e196393a08f34e1b283bf8b1c5d11a32
[ "MIT" ]
null
null
null
app/models.py
oblassers/tuw-servicebroker
228c9767e196393a08f34e1b283bf8b1c5d11a32
[ "MIT" ]
null
null
null
from openbrokerapi.catalog import ServicePlan, ServiceMetadata, ServicePlanMetaData, ServicePlanCost, Schemas from openbrokerapi.service_broker import ( ServiceBroker, Service, ProvisionDetails, ProvisionedServiceSpec, BindDetails, Binding, UpdateDetails, UpdateServiceSpec, UnbindDet...
50.620438
562
0.38558
1,338
20,805
5.95441
0.253363
0.015062
0.03163
0.038408
0.564453
0.502824
0.490649
0.469436
0.469436
0.458893
0
0.018048
0.536602
20,805
410
563
50.743902
0.808319
0
0
0.57513
0
0.010363
0.272098
0.012112
0
0
0
0
0
1
0.054404
false
0.046632
0.005181
0.007772
0.07513
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
a6f14220625e916146670ff7db3038a5f4acd31d
823
py
Python
src/amrpkg/scripts/scan_control.py
rafafigueroa/amrws
6ed9f6423fc0d45e267fa517107f80dab124b11b
[ "MIT" ]
null
null
null
src/amrpkg/scripts/scan_control.py
rafafigueroa/amrws
6ed9f6423fc0d45e267fa517107f80dab124b11b
[ "MIT" ]
null
null
null
src/amrpkg/scripts/scan_control.py
rafafigueroa/amrws
6ed9f6423fc0d45e267fa517107f80dab124b11b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy from nav_msgs.msg import Odometry from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan import numpy as np pub = rospy.Publisher('/mobile_base/commands/velocity', Twist, queue_size=10) def sc_callback(robot_sc): scan_ranges = robot_s...
20.073171
77
0.63548
117
823
4.25641
0.547009
0.080321
0.078313
0
0
0
0
0
0
0
0
0.016077
0.244228
823
40
78
20.575
0.784566
0.100851
0
0
0
0
0.07619
0.040816
0
0
0
0
0
0
null
null
0.038462
0.192308
null
null
0.038462
0
0
0
null
0
0
0
0
0
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
a6f379aa5c254a28c75e5aca984acb95e1745565
1,436
py
Python
src/pycropml/transpiler/antlr_py/tests/test_to_specification.py
AgriculturalModelExchangeInitiative/PyCropML
2eb330297d0765771c3b240e1936eb1110d47972
[ "MIT" ]
3
2018-01-22T15:33:44.000Z
2018-08-02T20:40:40.000Z
src/pycropml/transpiler/antlr_py/tests/test_to_specification.py
AgriculturalModelExchangeInitiative/PyCropML
2eb330297d0765771c3b240e1936eb1110d47972
[ "MIT" ]
24
2018-01-22T12:18:15.000Z
2018-11-19T12:55:18.000Z
src/pycropml/transpiler/antlr_py/tests/test_to_specification.py
AgriculturalModelExchangeInitiative/PyCropML
2eb330297d0765771c3b240e1936eb1110d47972
[ "MIT" ]
1
2018-01-25T07:07:09.000Z
2018-01-25T07:07:09.000Z
from pycropml.transpiler.antlr_py.to_specification import * specification =""" !<CyML Description Begin> ! ABD Average bulk density for soil profile (g [soil] / cm3 [soil]) ! (10.5, [0.5 - 100.0]) state variable ! TLL Total soil water in the profile at the lower limit of ! plant-ext...
41.028571
232
0.616295
183
1,436
4.814208
0.306011
0.068104
0.081725
0.095346
0.515324
0.515324
0.515324
0.515324
0.515324
0.515324
0
0.052137
0.185237
1,436
34
233
42.235294
0.700855
0
0
0.086957
0
0.043478
0.636681
0
0
0
0
0
0.086957
1
0.043478
false
0
0.043478
0
0.086957
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a6f7e0fc75d5e0f5dd1137da7fe386015ea28d75
200
py
Python
lab_7/main_4.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
lab_7/main_4.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
lab_7/main_4.py
MrLuckUA/python_course
50a87bc54550aedaac3afcce5b8b5c132fb6ec98
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*-S def crypt(line: str) -> str: result = str() for symbol in line: result += chr(ord(symbol) + 1) return result print(crypt(input()))
15.384615
38
0.56
28
200
4
0.75
0
0
0
0
0
0
0
0
0
0
0.020134
0.255
200
12
39
16.666667
0.731544
0.205
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
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
a6fb1c6268d5380571225bd18b727d2514aff888
1,170
py
Python
tg_utils/checks.py
wanaryytel/tg-utils
9cd5764d453ebd7fb49452561994007b780e693b
[ "0BSD" ]
6
2016-03-30T09:19:35.000Z
2019-12-22T03:38:43.000Z
tg_utils/checks.py
wanaryytel/tg-utils
9cd5764d453ebd7fb49452561994007b780e693b
[ "0BSD" ]
3
2016-12-28T17:37:55.000Z
2019-04-08T10:55:23.000Z
tg_utils/checks.py
wanaryytel/tg-utils
9cd5764d453ebd7fb49452561994007b780e693b
[ "0BSD" ]
4
2017-10-03T12:36:07.000Z
2019-05-26T23:09:01.000Z
from django.conf import settings from django.core.checks import Warning def check_production_settings(app_configs, **kwargs): issues = [] if settings.DEBUG: return issues if not settings.EMAIL_HOST_PASSWORD or 'TODO' in settings.EMAIL_HOST_PASSWORD: issues.append( Warning( ...
25.434783
96
0.570085
130
1,170
5
0.415385
0.049231
0.078462
0.067692
0.28
0.218462
0.218462
0.113846
0.113846
0.113846
0
0.011568
0.335043
1,170
45
97
26
0.823907
0
0
0.352941
0
0
0.252137
0.02906
0
0
0
0
0
1
0.058824
false
0.058824
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a6fcb86eda6ac6a942d935fd505665da759df596
4,229
py
Python
apps/build.py
broadinstitute/ebola-predictor
5c0ea769156f315f0a1c2ef7f947b7fb5fde47fb
[ "BSD-2-Clause" ]
12
2015-06-13T22:13:51.000Z
2022-02-12T16:18:14.000Z
apps/build.py
broadinstitute/ebola-predictor
5c0ea769156f315f0a1c2ef7f947b7fb5fde47fb
[ "BSD-2-Clause" ]
null
null
null
apps/build.py
broadinstitute/ebola-predictor
5c0ea769156f315f0a1c2ef7f947b7fb5fde47fb
[ "BSD-2-Clause" ]
10
2015-05-31T21:29:39.000Z
2022-02-12T12:35:41.000Z
#!/usr/bin/env python """ Build a Kivy app for the selected platform. @copyright: The Broad Institute of MIT and Harvard 2015 """ import os, argparse, shutil, platform def build_android(app_dir, build_options): p4a_dist = '' with open("./settings.cfg", "r") as sfile: lines = sfile.readlines() ...
30.868613
284
0.56349
534
4,229
4.305243
0.234082
0.041757
0.043497
0.028273
0.384515
0.384515
0.327099
0.30535
0.30535
0.278382
0
0.008054
0.295342
4,229
136
285
31.095588
0.763423
0.004729
0
0.366972
0
0
0.126616
0
0
0
0
0
0
0
null
null
0
0.009174
null
null
0.045872
0
0
0
null
0
0
0
0
0
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
4700b476362f3e6fa6e6b64ac2e9dfd47bbcfa15
16,591
py
Python
Agents/NetworkAgent/network/agent.py
Entek-Technical-Services/BEMOSS3.5
581a205b4129530474a5ceee93cb36ef62992d4c
[ "BSD-3-Clause" ]
73
2017-07-11T21:46:41.000Z
2022-03-11T03:35:25.000Z
Agents/NetworkAgent/network/agent.py
Entek-Technical-Services/BEMOSS3.5
581a205b4129530474a5ceee93cb36ef62992d4c
[ "BSD-3-Clause" ]
19
2017-10-10T22:06:15.000Z
2022-03-28T21:03:33.000Z
Agents/NetworkAgent/network/agent.py
Entek-Technical-Services/BEMOSS3.5
581a205b4129530474a5ceee93cb36ef62992d4c
[ "BSD-3-Clause" ]
36
2017-06-24T00:17:03.000Z
2022-03-31T13:58:36.000Z
# -*- coding: utf-8 -*- ''' Copyright (c) 2016, Virginia Tech All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condi...
47.402857
159
0.660237
2,077
16,591
5.051035
0.240732
0.034696
0.036603
0.030407
0.27128
0.19817
0.174721
0.127061
0.079306
0.073396
0
0.00629
0.242963
16,591
349
160
47.538682
0.828901
0.07269
0
0.218487
0
0.004202
0.166761
0.028428
0
0
0
0
0
0
null
null
0.021008
0.092437
null
null
0.037815
0
0
0
null
0
0
0
0
0
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
470a2c4e732982a9c5980b85f9c83066fd2c98bd
879
py
Python
tests/blueprints/test_points.py
drkane/find-that-postcode
78f6e7b1fc62f49c93a7ccc11565e85658bfdf7b
[ "MIT" ]
4
2020-11-27T21:28:17.000Z
2021-11-19T11:42:16.000Z
tests/blueprints/test_points.py
drkane/find-that-postcode
78f6e7b1fc62f49c93a7ccc11565e85658bfdf7b
[ "MIT" ]
17
2020-01-11T10:12:00.000Z
2022-01-18T14:28:18.000Z
tests/blueprints/test_points.py
drkane/find-that-postcode
78f6e7b1fc62f49c93a7ccc11565e85658bfdf7b
[ "MIT" ]
null
null
null
from tests.fixtures import client def test_point_json(client): rv = client.get("/points/51.501,-0.2936") point_json = rv.get_json() assert rv.headers["Access-Control-Allow-Origin"] == "*" assert ( point_json.get("data", {}) .get("relationships", {}) .get("nearest_postcode", {}...
23.131579
86
0.605233
111
879
4.63964
0.387387
0.087379
0.093204
0.062136
0.225243
0.225243
0.128155
0.128155
0.128155
0
0
0.078402
0.230944
879
37
87
23.756757
0.683432
0
0
0.142857
0
0
0.220705
0.11149
0
0
0
0
0.25
1
0.142857
false
0.071429
0.035714
0
0.178571
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
470df49e6874d735e0cb2d67d5b80658e63111fe
667
py
Python
ef/1_waves/wave_test.py
urbanij/misc-scripts
c4e6ee881dfe84342ee6bd34ceea1efe7d222dce
[ "MIT" ]
null
null
null
ef/1_waves/wave_test.py
urbanij/misc-scripts
c4e6ee881dfe84342ee6bd34ceea1efe7d222dce
[ "MIT" ]
null
null
null
ef/1_waves/wave_test.py
urbanij/misc-scripts
c4e6ee881dfe84342ee6bd34ceea1efe7d222dce
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- # # Created on: Sat Nov 2 14:41:15 CET 2019 # # Author(s): Francesco Urbani <https://urbanij.github.io> # # Description: Unit test for traveling_wave_1.py # # ========================================================== import unittest from wave import * from fun...
23
60
0.581709
90
667
4.144444
0.655556
0.016086
0.091153
0.117962
0
0
0
0
0
0
0
0.057196
0.187406
667
28
61
23.821429
0.630996
0.382309
0
0
0
0
0.019901
0
0
0
0
0
0.272727
1
0.181818
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
47135d5d2115f7aa8971b870616fd9873d479904
3,289
py
Python
tests/test_basics.py
vfxetc/zoneconfig
fdbc6699b79966fc4c4dc8e0038ae3a8bc10c18c
[ "BSD-3-Clause" ]
1
2018-10-04T20:05:04.000Z
2018-10-04T20:05:04.000Z
tests/test_basics.py
vfxetc/zoneconfig
fdbc6699b79966fc4c4dc8e0038ae3a8bc10c18c
[ "BSD-3-Clause" ]
null
null
null
tests/test_basics.py
vfxetc/zoneconfig
fdbc6699b79966fc4c4dc8e0038ae3a8bc10c18c
[ "BSD-3-Clause" ]
null
null
null
from . import * class TestBasics(TestCase): def test_find(self): path = root_path('basics') root = Zone(path=path) self.assertFalse(root.found) root.find() self.assertTrue(root.found) self.assertEqual(root.path, [path]) self.assertEqual(len(root.loaders),...
32.89
94
0.616601
392
3,289
5.117347
0.137755
0.194417
0.071785
0.055833
0.354935
0.258724
0.232802
0.21336
0.175474
0.089731
0
0.011006
0.226513
3,289
99
95
33.222222
0.777516
0.014898
0
0.183099
0
0
0.093045
0
0
0
0
0
0.633803
1
0.042254
false
0
0.014085
0
0.070423
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
471920bf59a505943bf2e71675de60c18881dae3
2,297
py
Python
soldash/views.py
ap0ught/soldash
ff26ca6db9dd9518946e1bd67d784c647cfa70e1
[ "Apache-2.0" ]
2
2015-08-14T19:54:19.000Z
2016-03-04T09:41:53.000Z
soldash/views.py
edelight/soldash
4fd36e835470af6e82e47b04b1dcaa60d1506c5e
[ "Apache-2.0" ]
null
null
null
soldash/views.py
edelight/soldash
4fd36e835470af6e82e47b04b1dcaa60d1506c5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- #Copyright 2011 Aengus Walton <aengus.walton@edelight.de> # #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 req...
33.779412
85
0.660862
310
2,297
4.864516
0.429032
0.041777
0.036472
0.03183
0.050398
0.030504
0
0
0
0
0
0.008782
0.206791
2,297
67
86
34.283582
0.81888
0.317806
0
0.052632
0
0
0.120286
0
0
0
0
0.014925
0
1
0.052632
false
0
0.131579
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
472e4a942628f87aaca4dda3f7db71a38f3fde11
399
py
Python
app/__init__.py
Haustorium/Flask-Microblog
c35ed040f9d80c4d08a10c5bee968bea8a6b8dc8
[ "BSD-3-Clause" ]
null
null
null
app/__init__.py
Haustorium/Flask-Microblog
c35ed040f9d80c4d08a10c5bee968bea8a6b8dc8
[ "BSD-3-Clause" ]
null
null
null
app/__init__.py
Haustorium/Flask-Microblog
c35ed040f9d80c4d08a10c5bee968bea8a6b8dc8
[ "BSD-3-Clause" ]
null
null
null
import os from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.openid import OpenID from flask.ext.login import LoginManager from config import basedir app = Flask(__name__) app.config.from_object('config') db = SQLAlchemy(app) lm = LoginManager() lm.init_app(app) lm.login_view = 'login...
21
45
0.779449
62
399
4.903226
0.387097
0.118421
0.118421
0
0
0
0
0
0
0
0
0
0.120301
399
19
46
21
0.866097
0
0
0
0
0
0.035
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
472ef256448c50af5d3ce3537a2b3df3ed4309c1
7,431
py
Python
test/test_use_cases.py
bitmuster/pytest_system_test_plugin
afa79e406f07a4f7d155e53ee4a327d07000c90e
[ "MIT" ]
2
2022-01-23T00:03:38.000Z
2022-02-03T18:18:20.000Z
test/test_use_cases.py
bitmuster/pytest_system_test_plugin
afa79e406f07a4f7d155e53ee4a327d07000c90e
[ "MIT" ]
null
null
null
test/test_use_cases.py
bitmuster/pytest_system_test_plugin
afa79e406f07a4f7d155e53ee4a327d07000c90e
[ "MIT" ]
null
null
null
import logging import os import time import pytest CURL = "/usr/bin/curl -X POST http://localhost:{} -d hello_my_plugins" WAITSTATUS = 0.1 def get_factory_args(port): # TODO: Find better way of getting an interpreter in the current env interpreter = os.path.abspath("./env-plugin/bin/python") args = [ ...
26.257951
82
0.6232
913
7,431
4.879518
0.159912
0.040404
0.026936
0.024691
0.649832
0.558249
0.489562
0.408979
0.408979
0.342985
0
0.024323
0.264164
7,431
282
83
26.351064
0.790417
0.130938
0
0.525822
0
0
0.144618
0.017941
0
0
0
0.010638
0.150235
1
0.056338
false
0
0.018779
0
0.079812
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
4732912bdb68f038535305102633e1d900581d3e
221
py
Python
process.py
PeterBee97/authors-tool
09b530be6b71a5efd39bf596fd770444da980af2
[ "CNRI-Python", "blessing", "Apache-1.1" ]
null
null
null
process.py
PeterBee97/authors-tool
09b530be6b71a5efd39bf596fd770444da980af2
[ "CNRI-Python", "blessing", "Apache-1.1" ]
null
null
null
process.py
PeterBee97/authors-tool
09b530be6b71a5efd39bf596fd770444da980af2
[ "CNRI-Python", "blessing", "Apache-1.1" ]
null
null
null
#!/usr/bin/python3 import spacy,sys en = spacy.load("en_core_web_sm") #en.max_length=2000000 sents = en(open(sys.argv[1]).read()) people = [ee for ee in sents.ents if ee.label_ == 'PERSON'] for p in people: print(p)
22.1
59
0.687783
41
221
3.585366
0.707317
0
0
0
0
0
0
0
0
0
0
0.047368
0.140271
221
9
60
24.555556
0.726316
0.171946
0
0
0
0
0.110497
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
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
5b2cf4d828bd81e14c72ac70b818c68ffe68d22c
2,068
py
Python
rdr_service/alembic/versions/6f9266e7a5fb_initial_metrics.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/alembic/versions/6f9266e7a5fb_initial_metrics.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/alembic/versions/6f9266e7a5fb_initial_metrics.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
"""Initial metrics Revision ID: 6f9266e7a5fb Revises: 51415576d3e9 Create Date: 2017-12-12 10:38:27.166562 """ import model.utils import sqlalchemy as sa from alembic import op from rdr_service.participant_enums import MetricSetType, MetricsKey # revision identifiers, used by Alembic. revision = "6f9266e7a5fb" down...
29.971014
109
0.676983
245
2,068
5.546939
0.318367
0.066225
0.077263
0.077263
0.397351
0.287712
0.287712
0.287712
0.260486
0.18543
0
0.035398
0.180368
2,068
68
110
30.411765
0.766372
0.218085
0
0.210526
0
0
0.191366
0.020619
0
0
0
0
0
1
0.157895
false
0.052632
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5b2dc23ba73dcc3e83f6cb052eccb59e9c3c116e
530
py
Python
Important/FlattenListofLists.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
2
2020-10-19T05:22:43.000Z
2020-10-19T06:01:28.000Z
Important/FlattenListofLists.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
null
null
null
Important/FlattenListofLists.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
null
null
null
''' Write a function to flatten a list of lists input: [1,[2,3,4],[5,[6,7]]] output: [1,2,3,4,5,6,7] ''' #recursive function def flattenList(lst, f_lst=None): if f_lst is None: f_lst=[] for l in lst: if isinstance(l,list): flattenList(l, f_lst) else: f_lst....
13.947368
52
0.590566
89
530
3.41573
0.47191
0.105263
0.029605
0.039474
0.069079
0.069079
0.069079
0
0
0
0
0.060606
0.25283
530
37
53
14.324324
0.707071
0.062264
0
0.142857
0
0
0
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
5b2f0bced1e78dc09eba8462292fb805aa1236cc
1,285
py
Python
Aula12/exercicio_45.py
brenuvida/cursoemvideo
8d482ea802ed93d984131f72188288c4ebdfc532
[ "MIT" ]
null
null
null
Aula12/exercicio_45.py
brenuvida/cursoemvideo
8d482ea802ed93d984131f72188288c4ebdfc532
[ "MIT" ]
null
null
null
Aula12/exercicio_45.py
brenuvida/cursoemvideo
8d482ea802ed93d984131f72188288c4ebdfc532
[ "MIT" ]
null
null
null
from random import randint print ('\n\n\nVamos jogar JOKENPÔ!!!\n\n\n') escolha = int(input('Escolha PEDRA, PAPEL ou TESOURA:\n\n[1] PEDRA\n\n[2] PAPEL\n\n[3] TESOURA\n\nFaça a sua escolha: ')) if escolha != 1 and escolha != 2 and escolha != 3: print('\n\nVocê escolheu: {}\nApenas números entre 1 e 3 são aceito...
32.948718
121
0.596887
178
1,285
4.308989
0.247191
0.031291
0.110821
0.082138
0.440678
0.269883
0.226858
0.226858
0.122555
0
0
0.028896
0.245914
1,285
38
122
33.815789
0.762642
0
0
0.310345
0
0.034483
0.320093
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0.482759
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
5b301f127a6d96023dc10f65c3e98eb57932a296
499
py
Python
solutions/official/11_bruteforce.py
kurazu/pycon_quiz
d7670d1bc29aaa5ef18dfd276b8da72700d1ac3d
[ "MIT" ]
null
null
null
solutions/official/11_bruteforce.py
kurazu/pycon_quiz
d7670d1bc29aaa5ef18dfd276b8da72700d1ac3d
[ "MIT" ]
null
null
null
solutions/official/11_bruteforce.py
kurazu/pycon_quiz
d7670d1bc29aaa5ef18dfd276b8da72700d1ac3d
[ "MIT" ]
null
null
null
import hashlib ENCODED = 'sha1$bh9ul$8e808fcea5418aa971311ea1598df65627ea3b98' _, SALT, PASSWORD = ENCODED.split('$') def check(possibility): return hashlib.sha1(SALT + possibility).hexdigest() == PASSWORD f = open('solutions/official/CSW12.txt', 'rb') for row in f: row = row.rstrip() if not row: continue if '...
19.192308
64
0.681363
67
499
5.044776
0.61194
0.04142
0
0
0
0
0
0
0
0
0
0.078759
0.160321
499
25
65
19.96
0.727924
0
0
0.1
0
0
0.226908
0.158635
0
0
0
0
0
1
0.05
false
0.1
0.05
0.05
0.15
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5b309cf8f6b3c0c91b86ce84c59555a57d686148
1,303
py
Python
features/features_classes/kl_divergence.py
swisscom/ai-research-data-valuation-repository
bcb45b7d8b84674f12e0a3671260290d98257c9f
[ "Apache-2.0" ]
null
null
null
features/features_classes/kl_divergence.py
swisscom/ai-research-data-valuation-repository
bcb45b7d8b84674f12e0a3671260290d98257c9f
[ "Apache-2.0" ]
null
null
null
features/features_classes/kl_divergence.py
swisscom/ai-research-data-valuation-repository
bcb45b7d8b84674f12e0a3671260290d98257c9f
[ "Apache-2.0" ]
null
null
null
"""Copyright © 2020-present, Swisscom (Schweiz) AG. All rights reserved.""" from .feature import Feature from scipy.stats import entropy import numpy as np class KLDivergence(Feature): r""" A feature that computes the KL divergence between the logits of each data points given by a classifier mean logits ...
31.02381
105
0.639294
174
1,303
4.683908
0.454023
0.09816
0.040491
0.058896
0.219632
0.219632
0.13865
0.13865
0.093252
0
0
0.007415
0.275518
1,303
41
106
31.780488
0.854873
0.559478
0
0
0
0
0
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
5b32b5f22cdcef2caaa04011c6f78e48053ffe80
5,657
py
Python
spectre/trading/stopmodel.py
rajach/spectre
0a9e81e0854fd4ae2658ba63f31d0931d57d50fb
[ "Apache-2.0" ]
302
2019-11-27T09:51:59.000Z
2022-03-31T13:11:30.000Z
spectre/trading/stopmodel.py
MohitJuneja/spectre
50ec95b4f554002f7316e9eba9306b04b078e49d
[ "Apache-2.0" ]
13
2020-01-26T04:29:11.000Z
2021-09-20T15:38:27.000Z
spectre/trading/stopmodel.py
MohitJuneja/spectre
50ec95b4f554002f7316e9eba9306b04b078e49d
[ "Apache-2.0" ]
67
2019-11-27T07:06:32.000Z
2022-02-09T08:27:37.000Z
""" @author: Heerozh (Zhang Jianhao) @copyright: Copyright 2019-2020, Heerozh. All rights reserved. @license: Apache 2.0 @email: heeroz@gmail.com """ import math def sign(x): return math.copysign(1, x) class PriceTracker: def __init__(self, current_price, recorder=max): self.last_price = current_pri...
33.081871
98
0.642213
669
5,657
5.192825
0.183857
0.075993
0.046056
0.034542
0.426598
0.407887
0.316926
0.241796
0.219919
0.15544
0
0.00874
0.231395
5,657
170
99
33.276471
0.790248
0.16157
0
0.40367
0
0
0.005552
0
0
0
0
0
0
1
0.201835
false
0
0.009174
0.027523
0.440367
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
5b33e7a3ee5022933904eaa5af6d3be659758429
3,822
py
Python
src/chameleon/nodes.py
fschulze/chameleon
524e0fa5fcb9d456457e3fa509e8d1f4ff859d1a
[ "PSF-2.0" ]
null
null
null
src/chameleon/nodes.py
fschulze/chameleon
524e0fa5fcb9d456457e3fa509e8d1f4ff859d1a
[ "PSF-2.0" ]
null
null
null
src/chameleon/nodes.py
fschulze/chameleon
524e0fa5fcb9d456457e3fa509e8d1f4ff859d1a
[ "PSF-2.0" ]
null
null
null
from .astutil import Node class UseExternalMacro(Node): """Extend external macro.""" _fields = "expression", "slots", "extend" class Sequence(Node): """Element sequence.""" _fields = "items", def __nonzero__(self): return bool(self.items) class Content(Node): """Content substitu...
16.763158
69
0.606489
402
3,822
5.639303
0.358209
0.048522
0.024702
0.025143
0.052051
0.052051
0.030878
0
0
0
0
0.000678
0.228414
3,822
227
70
16.837004
0.768057
0.236002
0
0.127907
0
0
0.189405
0
0
0
0
0
0
1
0.023256
false
0.011628
0.011628
0.011628
0.918605
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
5b3eb8b55d8b91d7336436f4da4217dd52f0ca36
2,050
py
Python
scripts/pick_model.py
jowagner/uuparser
c0d8a8210c1032272dfad9250a765f09e128976f
[ "Apache-2.0" ]
86
2017-06-17T13:14:15.000Z
2022-03-19T10:15:50.000Z
scripts/pick_model.py
jowagner/uuparser
c0d8a8210c1032272dfad9250a765f09e128976f
[ "Apache-2.0" ]
26
2018-06-18T12:07:50.000Z
2021-11-19T10:41:54.000Z
scripts/pick_model.py
jowagner/uuparser
c0d8a8210c1032272dfad9250a765f09e128976f
[ "Apache-2.0" ]
22
2018-01-03T13:57:16.000Z
2022-03-19T10:14:19.000Z
import os import sys #usage: #python file.txt trained_models_dir # where the file contains iso codes of languages for which you want a model # and trained_models_dir is a directory containing trained models and their # evaluation on the dev set for the languages of interest if len(sys.argv) < 3: r...
37.272727
103
0.649268
295
2,050
4.40339
0.386441
0.110085
0.123172
0.018476
0.026174
0
0
0
0
0
0
0.005629
0.22
2,050
54
104
37.962963
0.806754
0.137561
0
0
0
0
0.346198
0.027242
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5b42524af404956d76e499a53d7cc48d97c2cc81
1,168
py
Python
scripts/generate_accelerated_bindings.py
miiklay/pymapd
4665ea704eb7ffabf72048f1cb3519b4497b8830
[ "Apache-2.0" ]
null
null
null
scripts/generate_accelerated_bindings.py
miiklay/pymapd
4665ea704eb7ffabf72048f1cb3519b4497b8830
[ "Apache-2.0" ]
null
null
null
scripts/generate_accelerated_bindings.py
miiklay/pymapd
4665ea704eb7ffabf72048f1cb3519b4497b8830
[ "Apache-2.0" ]
null
null
null
""" Generate Accelerated Thrift bindings """ import os import argparse import re import shutil import subprocess import sys xpr_hints = re.compile(".*completion_hints.*") def parse_args(args=None): parser = argparse.ArgumentParser(description='Run some benchmarks') parser.add_argument('infile', nargs='?', ty...
25.955556
73
0.640411
151
1,168
4.821192
0.476821
0.037088
0.053571
0.063187
0
0
0
0
0
0
0
0
0.207192
1,168
44
74
26.545455
0.786177
0.030822
0
0
1
0
0.137011
0
0
0
0
0
0
1
0.096774
false
0
0.193548
0
0.322581
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
5b4903f16a13474ba4cdda61ea6156b2d8b074d9
254
py
Python
snow-dots/utilities/mouse.py
cpizzica/Lab-Matlab-Control
252a0a3e7ab9c4e60223144806dcfc7d1119f95a
[ "Apache-2.0" ]
6
2017-06-06T15:06:36.000Z
2018-12-05T21:09:33.000Z
snow-dots/utilities/mouse.py
cpizzica/Lab-Matlab-Control
252a0a3e7ab9c4e60223144806dcfc7d1119f95a
[ "Apache-2.0" ]
4
2017-07-05T15:45:55.000Z
2019-04-23T20:37:32.000Z
snow-dots/utilities/mouse.py
cpizzica/Lab-Matlab-Control
252a0a3e7ab9c4e60223144806dcfc7d1119f95a
[ "Apache-2.0" ]
3
2017-06-16T05:54:44.000Z
2018-08-14T01:05:14.000Z
#! python3 import pyautogui, sys, time #print('Press Ctrl-C to quit.') while True: x, y = pyautogui.position() positionStr = ',' + str(x).rjust(4) + ',' + str(y).rjust(4) print( time.time(), positionStr, '\n', flush=True) time.sleep(0.05)
31.75
63
0.610236
37
254
4.189189
0.675676
0.077419
0
0
0
0
0
0
0
0
0
0.028846
0.181102
254
8
64
31.75
0.716346
0.153543
0
0
0
0
0.018692
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
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
5b4e3e6400e5ca706d0448c1aacd905f9e46c491
1,587
py
Python
blogger_tests.py
cjhang/blogger
5868f2dbe7a7fe7e2ebde4c87e3d316b3bdf296b
[ "MIT" ]
null
null
null
blogger_tests.py
cjhang/blogger
5868f2dbe7a7fe7e2ebde4c87e3d316b3bdf296b
[ "MIT" ]
null
null
null
blogger_tests.py
cjhang/blogger
5868f2dbe7a7fe7e2ebde4c87e3d316b3bdf296b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import blogger import unittest import tempfile class FlaskTestCase(unittest.TestCase): def setUp(self): self.db_fd, blogger.app.config['DATABASE'] = tempfile.mkstemp() blogger.app.config['TESTING'] = True self.app = blogger.app.test_client() with b...
31.74
71
0.570888
219
1,587
4.045662
0.333333
0.071106
0.081264
0.079007
0.328442
0.27088
0.193002
0.193002
0.079007
0.079007
0
0.02336
0.298677
1,587
49
72
32.387755
0.772686
0.013233
0
0.142857
0
0
0.194373
0
0
0
0
0
0.214286
0
null
null
0
0.095238
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
5b50a16cabac83e06b01101e8838164c1b042edb
201
py
Python
kendall.py
Sharingsky/FORMERAMC
11ffacdd3dd03d78fa9d25f891b92afefec204e3
[ "MIT" ]
null
null
null
kendall.py
Sharingsky/FORMERAMC
11ffacdd3dd03d78fa9d25f891b92afefec204e3
[ "MIT" ]
null
null
null
kendall.py
Sharingsky/FORMERAMC
11ffacdd3dd03d78fa9d25f891b92afefec204e3
[ "MIT" ]
null
null
null
from pandas import DataFrame import pandas as pd x = [10-i for i in range(10)] y = [8,2,9,3,5,10,1,4,7,6] data = DataFrame({'x':x,'y':y}) print(data.head()) kend=data.corr(method='kendall') print(kend)
25.125
32
0.666667
43
201
3.116279
0.674419
0
0
0
0
0
0
0
0
0
0
0.08427
0.114428
201
8
33
25.125
0.668539
0
0
0
0
0
0.044554
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
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
5b51a9ffb4ee0eaa20fc533974303c2844c35c97
640
py
Python
src/djangoreactredux/djrenv/lib/python3.5/site-packages/prospector/exceptions.py
m2jobe/c_x
ba914449a9a85d82703895fc884733ca20454034
[ "MIT" ]
1
2019-11-01T11:45:22.000Z
2019-11-01T11:45:22.000Z
src/djangoreactredux/djrenv/lib/python3.5/site-packages/prospector/exceptions.py
m2jobe/c_x
ba914449a9a85d82703895fc884733ca20454034
[ "MIT" ]
7
2020-02-12T03:06:52.000Z
2021-06-10T19:33:14.000Z
src/djangoreactredux/djrenv/lib/python3.5/site-packages/prospector/exceptions.py
m2jobe/c_x
ba914449a9a85d82703895fc884733ca20454034
[ "MIT" ]
1
2019-11-01T11:38:54.000Z
2019-11-01T11:38:54.000Z
# -*- coding: utf-8 -*- # We are trying to handle pylint changes in their exception classes try: # pylint < 1.7 from pylint.utils import UnknownMessage as UnknownMessageError except ImportError: # pylint >= 1.7 from pylint.exceptions import UnknownMessageError class FatalProspectorException(Exception)...
29.090909
67
0.725
78
640
5.897436
0.717949
0.030435
0.034783
0.052174
0.078261
0
0
0
0
0
0
0.00994
0.214063
640
21
68
30.47619
0.904573
0.523438
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
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