hexsha
stringlengths
40
40
size
int64
109
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
227
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
82.5k
max_stars_repo_stars_event_min_datetime
stringdate
2015-01-01 00:04:51
2022-03-31 21:53:07
max_stars_repo_stars_event_max_datetime
stringdate
2015-01-01 06:08:26
2022-03-31 23:57:44
max_issues_repo_path
stringlengths
3
225
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringdate
2015-01-01 00:00:47
2022-03-31 22:44:55
max_issues_repo_issues_event_max_datetime
stringdate
2015-01-01 16:29:55
2022-03-31 23:59:47
max_forks_repo_path
stringlengths
3
225
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
54.3k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
109
1.04M
avg_line_length
float64
5.17
98.7
max_line_length
int64
9
999
alphanum_fraction
float64
0.28
0.91
qsc_code_num_words_quality_signal
int64
30
182k
qsc_code_num_chars_quality_signal
float64
109
1.04M
qsc_code_mean_word_length_quality_signal
float64
2
9.97
qsc_code_frac_words_unique_quality_signal
float64
0.01
1
qsc_code_frac_chars_top_2grams_quality_signal
float64
0
0.2
qsc_code_frac_chars_top_3grams_quality_signal
float64
0
0.18
qsc_code_frac_chars_top_4grams_quality_signal
float64
0
0.16
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
0
0.8
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
0
0.7
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
0
0.7
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
0
0.7
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
0
0.69
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
0
0.6
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
0
0.01
qsc_code_frac_chars_digital_quality_signal
float64
0
0.2
qsc_code_frac_chars_whitespace_quality_signal
float64
0.01
0.5
qsc_code_size_file_byte_quality_signal
float64
109
1.04M
qsc_code_num_lines_quality_signal
float64
10
25.7k
qsc_code_num_chars_line_max_quality_signal
float64
10
1k
qsc_code_num_chars_line_mean_quality_signal
float64
5.19
98.7
qsc_code_frac_chars_alphabet_quality_signal
float64
0.5
1
qsc_code_frac_chars_comments_quality_signal
float64
0
0.8
qsc_code_cate_xml_start_quality_signal
float64
0
0
qsc_code_frac_lines_dupe_lines_quality_signal
float64
0
0.7
qsc_code_cate_autogen_quality_signal
float64
0
0
qsc_code_frac_lines_long_string_quality_signal
float64
0
0.2
qsc_code_frac_chars_string_length_quality_signal
float64
0
0.6
qsc_code_frac_chars_long_word_length_quality_signal
float64
0
0.4
qsc_code_frac_lines_string_concat_quality_signal
float64
0
0.42
qsc_code_cate_encoded_data_quality_signal
float64
0
0
qsc_code_frac_chars_hex_words_quality_signal
float64
0
0.33
qsc_code_frac_lines_prompt_comments_quality_signal
float64
0
0.01
qsc_code_frac_lines_assert_quality_signal
float64
0
0.4
qsc_codepython_cate_ast_quality_signal
float64
0
0
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
0 classes
qsc_codepython_frac_lines_pass_quality_signal
float64
0
0.05
qsc_codepython_frac_lines_import_quality_signal
float64
0
0.3
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
0
0.4
qsc_code_num_words
int64
0
0
qsc_code_num_chars
int64
0
0
qsc_code_mean_word_length
int64
0
0
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
0
0
qsc_code_frac_chars_top_3grams
int64
0
0
qsc_code_frac_chars_top_4grams
int64
0
0
qsc_code_frac_chars_dupe_5grams
int64
0
0
qsc_code_frac_chars_dupe_6grams
int64
0
0
qsc_code_frac_chars_dupe_7grams
int64
0
0
qsc_code_frac_chars_dupe_8grams
int64
0
0
qsc_code_frac_chars_dupe_9grams
int64
0
0
qsc_code_frac_chars_dupe_10grams
int64
0
0
qsc_code_frac_chars_replacement_symbols
int64
0
0
qsc_code_frac_chars_digital
int64
0
0
qsc_code_frac_chars_whitespace
int64
0
0
qsc_code_size_file_byte
int64
0
0
qsc_code_num_lines
int64
0
0
qsc_code_num_chars_line_max
int64
0
0
qsc_code_num_chars_line_mean
int64
0
0
qsc_code_frac_chars_alphabet
int64
0
0
qsc_code_frac_chars_comments
int64
0
0
qsc_code_cate_xml_start
int64
0
0
qsc_code_frac_lines_dupe_lines
int64
0
0
qsc_code_cate_autogen
int64
0
0
qsc_code_frac_lines_long_string
int64
0
0
qsc_code_frac_chars_string_length
int64
0
0
qsc_code_frac_chars_long_word_length
int64
0
0
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
0
0
qsc_code_frac_chars_hex_words
int64
0
0
qsc_code_frac_lines_prompt_comments
int64
0
0
qsc_code_frac_lines_assert
int64
0
0
qsc_codepython_cate_ast
int64
1
1
qsc_codepython_frac_lines_func_ratio
int64
0
0
qsc_codepython_cate_var_zero
int64
0
0
qsc_codepython_frac_lines_pass
int64
0
0
qsc_codepython_frac_lines_import
int64
0
0
qsc_codepython_frac_lines_simplefunc
int64
0
0
qsc_codepython_score_lines_no_logic
int64
0
0
qsc_codepython_frac_lines_print
int64
0
0
effective
stringclasses
1 value
hits
int64
1
1
d9c3b05c7fcf1f87eb65a4b552deef9342032f24
6,520
py
Python
src/Components/missions/GEMS/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
2
2020-12-02T14:23:30.000Z
2021-12-31T15:39:30.000Z
src/Components/missions/GEMS/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
9
2020-04-15T16:22:14.000Z
2022-03-24T13:59:25.000Z
src/Components/missions/SENTINEL-4/mcd43c.py
GEOS-ESM/AeroApps
874dad6f34420c014d98eccbe81a061bdc0110cf
[ "NASA-1.3", "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Reads climate modeling grid 0.05 degree MCD43 BRDF files. """ import os import sys from numpy import loadtxt, array, tile, where, concatenate, flipud from numpy import ones from datetime import date, datetime, timedelta from glob import glob from pyhdf.SD import SD, HDF4Error MISSING = 32.767 SDS = dict...
36.222222
103
0.533282
747
6,520
4.373494
0.273092
0.137741
0.085706
0.018365
0.039792
0.012244
0
0
0
0
0
0.067998
0.316564
6,520
179
104
36.424581
0.665171
0.100767
0
0.056604
0
0
0.209649
0.133752
0
0
0
0
0
0
null
null
0
0.066038
null
null
0.04717
0
0
0
null
0
0
0
0
0
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
8a13a931088f76e07468fa49084284d44b5cf0eb
936
py
Python
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
autolatex-master/exemplos_codigo/certificados/certificados.py
luizgui05/autolatex.
366eb3d88b7e60c119737f958e35cce99e8775e9
[ "MIT" ]
null
null
null
import os import sys import sqlite3 con = None filename = 'certificado' # Abrir banco de dados para ler nomes. try: con = sqlite3.connect('math.db') cur = con.cursor() cur.execute('select * from math') data = cur.fetchall() except sqlite3.Error, e: print "Error %s:" % e.args[0] sys.exit(...
20.8
85
0.569444
128
936
4.148438
0.5625
0.045198
0
0
0
0
0
0
0
0
0
0.018545
0.251068
936
44
86
21.272727
0.738944
0.145299
0
0.0625
0
0
0.148428
0
0
0
0
0
0
0
null
null
0
0.09375
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8a328b7be397a48ed8f6202385b17e0dbf81357c
12,156
py
Python
networks/larflow/models/larflow_uresnet.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
2
2020-07-09T19:34:03.000Z
2021-06-21T23:09:23.000Z
networks/larflow/models/larflow_uresnet.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
networks/larflow/models/larflow_uresnet.py
LArbys/ublarcvserver
02381c937f49a2eab2f754017ab431c3f6fa70d7
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch as torch import math import torch.utils.model_zoo as model_zoo ########################################################### # # U-ResNet # U-net witih ResNet modules # # Semantic segmentation network used by MicroBooNE # to label track/shower pixels # # resnet implementation from pyto...
36.286567
152
0.599786
1,583
12,156
4.43904
0.131396
0.107585
0.043546
0.037
0.562971
0.525829
0.444002
0.410132
0.362317
0.346236
0
0.044164
0.27542
12,156
334
153
36.39521
0.753633
0.069842
0
0.362791
0
0
0.023833
0
0
0
0
0
0
0
null
null
0.04186
0.018605
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
8a4c6c7b420769dc35e8f30f400909774d7d25e6
22,154
py
Python
gfirefly/dbentrust/dbutils.py
handsome3163/H2Dgame-Firefly
2d213928977dc490909f456327e5cae80998e60d
[ "MIT" ]
675
2015-01-01T05:18:30.000Z
2022-03-18T08:27:06.000Z
gfirefly/dbentrust/dbutils.py
liuis/Firefly
fd2795b8c26de6ab63bbec23d11f18c3dfb39a50
[ "MIT" ]
3
2015-01-29T02:36:14.000Z
2022-01-21T09:19:21.000Z
gfirefly/dbentrust/dbutils.py
liuis/Firefly
fd2795b8c26de6ab63bbec23d11f18c3dfb39a50
[ "MIT" ]
248
2015-01-04T08:24:31.000Z
2022-02-18T07:14:02.000Z
#coding:utf8 ''' Created on 2013-8-21 @author: lan (www.9miao.com) ''' import itertools import datetime def safeunicode(obj, encoding='utf-8'): r""" Converts any given object to unicode string. >>> safeunicode('hello') u'hello' >>> safeunicode(2) u'2' >>> safeunic...
31.693848
115
0.510743
2,510
22,154
4.4251
0.147809
0.015846
0.012605
0.017106
0.231476
0.174124
0.124066
0.094715
0.08121
0.073467
0
0.009403
0.35673
22,154
699
116
31.693848
0.769981
0.021802
0
0.235135
0
0
0.033266
0.004527
0
0
0
0
0
0
null
null
0.008108
0.008108
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
8a59e89d09e32fec1b404a96ad1edf1ccd223adb
8,871
py
Python
tests/test_preempt_return.py
vpv11110000/pyss
bc2226e2e66e0b551a09ae6ab6835b0bb6c7f32b
[ "MIT" ]
null
null
null
tests/test_preempt_return.py
vpv11110000/pyss
bc2226e2e66e0b551a09ae6ab6835b0bb6c7f32b
[ "MIT" ]
2
2017-09-05T11:12:05.000Z
2017-09-07T19:23:15.000Z
tests/test_preempt_return.py
vpv11110000/pyss
bc2226e2e66e0b551a09ae6ab6835b0bb6c7f32b
[ "MIT" ]
null
null
null
# #!/usr/bin/python # -*- coding: utf-8 -*- # test_preempt_return.py # pylint: disable=line-too-long,missing-docstring,bad-whitespace, unused-argument, too-many-locals import sys import os import random import unittest DIRNAME_MODULE = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))...
35.342629
106
0.578289
1,021
8,871
4.89618
0.199804
0.009202
0.064013
0.041808
0.602721
0.556511
0.524505
0.458092
0.434687
0.417083
0
0.016611
0.294217
8,871
250
107
35.484
0.781824
0.153872
0
0.356643
0
0
0.048515
0.01676
0
0
0
0
0.132867
0
null
null
0.013986
0.167832
null
null
0.06993
0
0
0
null
0
0
0
0
0
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
8a75b4a74e6ecd635d9404db9ea5df06d5114069
10,282
py
Python
bufr_extract_unique_stations.py
glamod/glamod-misc
4c8743dd3aa436377017c49bec990b11fe1c6f7d
[ "BSD-3-Clause" ]
null
null
null
bufr_extract_unique_stations.py
glamod/glamod-misc
4c8743dd3aa436377017c49bec990b11fe1c6f7d
[ "BSD-3-Clause" ]
16
2018-10-23T08:06:18.000Z
2018-10-30T10:20:01.000Z
bufr_extract_unique_stations.py
glamod/glamod-misc
4c8743dd3aa436377017c49bec990b11fe1c6f7d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python2.7 """ Extract unique set of station locations (and names) along with number of obs RJHD - Exeter - October 2017 """ # ECMWF import defaults import traceback import sys from eccodes import * # RJHD imports import cartopy import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotli...
33.167742
184
0.540751
1,142
10,282
4.74606
0.283713
0.042066
0.012177
0.017712
0.240959
0.228967
0.192066
0.1869
0.1869
0.1869
0
0.025263
0.326298
10,282
309
185
33.275081
0.757182
0.15814
0
0.181287
0
0
0.080679
0.028656
0
0
0
0
0
0
null
null
0.005848
0.052632
null
null
0.017544
0
0
0
null
0
0
0
0
0
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
8a7a7334b3428135d28ee8a3da56e39eed250254
1,564
py
Python
day16/solve16.py
jmacarthur/aoc2017
2a3096aabf464ef52c05f9437498035cfb5ca1a6
[ "MIT" ]
null
null
null
day16/solve16.py
jmacarthur/aoc2017
2a3096aabf464ef52c05f9437498035cfb5ca1a6
[ "MIT" ]
null
null
null
day16/solve16.py
jmacarthur/aoc2017
2a3096aabf464ef52c05f9437498035cfb5ca1a6
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import copy stage_length = 16 stage = map(chr, range(ord('a'),ord('a')+stage_length)) def spin(amount): """To save time, this function isn't used except at the end. Normally, a counter marks the start of the stage and this changes instead. """ global stage stage = stag...
30.076923
101
0.621483
229
1,564
4.170306
0.375546
0.06911
0.058639
0.027225
0.05445
0
0
0
0
0
0
0.029826
0.228261
1,564
51
102
30.666667
0.761392
0.039003
0
0.052632
0
0
0.045052
0
0
0
0
0
0
0
null
null
0
0.052632
null
null
0.052632
0
0
0
null
0
0
0
0
0
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
8a82d93e4ba8abbe55f44853090dbccbc8c6e819
48,277
py
Python
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/GenericHazards.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/GenericHazards.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/GenericHazards.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non...
41.29769
151
0.53106
4,665
48,277
5.465166
0.18821
0.003138
0.008237
0.007688
0.223416
0.196038
0.167327
0.150971
0.134262
0.120455
0
0.009976
0.358432
48,277
1,168
152
41.333048
0.81316
0.306378
0
0.274096
0
0
0.101009
0.012153
0
0
0
0
0
0
null
null
0.003012
0.009036
null
null
0.02259
0
0
0
null
0
0
0
0
0
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
8a8bd51e1880ca1483e91fca0ab41237e4c4f869
4,896
py
Python
Lib/hTools2/dialogs/glyphs/slide.py
gferreira/hTools2
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
[ "BSD-3-Clause" ]
11
2015-01-06T15:43:56.000Z
2019-07-27T00:35:20.000Z
Lib/hTools2/dialogs/glyphs/slide.py
gferreira/hTools2
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
[ "BSD-3-Clause" ]
2
2017-05-17T10:11:46.000Z
2018-11-21T21:43:43.000Z
Lib/hTools2/dialogs/glyphs/slide.py
gferreira/hTools2
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
[ "BSD-3-Clause" ]
4
2015-01-10T13:58:50.000Z
2019-12-18T15:40:14.000Z
# [h] slide selected glyphs from mojo.roboFont import CurrentFont, CurrentGlyph, version from vanilla import * from hTools2 import hDialog from hTools2.modules.fontutils import get_full_name, get_glyphs from hTools2.modules.messages import no_font_open, no_glyph_selected class slideGlyphsDialog(hDialog): '''A di...
31.184713
89
0.55576
611
4,896
4.217676
0.175123
0.069849
0.065192
0.046566
0.397749
0.35196
0.32402
0.313931
0.313931
0.282499
0
0.019565
0.34232
4,896
156
90
31.384615
0.780745
0.020221
0
0.291667
0
0
0.009854
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.016667
0
0
0
null
0
0
0
0
0
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
8a92dd9cacd718af3ee73590efc1c1d73a3833aa
12,093
py
Python
beansdbadmin/core/client.py
ariesdevil/beansdbadmin
3165087ef57b7511ab84fbc50cf16eb8f54d83cd
[ "BSD-3-Clause" ]
11
2018-08-28T09:16:02.000Z
2021-11-08T09:39:15.000Z
beansdbadmin/core/client.py
ariesdevil/beansdbadmin
3165087ef57b7511ab84fbc50cf16eb8f54d83cd
[ "BSD-3-Clause" ]
2
2019-08-29T03:27:24.000Z
2020-07-24T02:45:39.000Z
beansdbadmin/core/client.py
ariesdevil/beansdbadmin
3165087ef57b7511ab84fbc50cf16eb8f54d83cd
[ "BSD-3-Clause" ]
4
2019-05-10T12:10:31.000Z
2020-07-17T03:22:02.000Z
#!/usr/bin/python # encoding: utf-8 '''a rich client 1. for one server (instead of multi like in libmc.Client) 2. encapsulate @, ?, gc ... use is instead of libmc.Client ''' import telnetlib import logging import libmc import string import urllib import itertools import warnings from collections import defaul...
30.308271
103
0.561399
1,649
12,093
3.936325
0.164342
0.019411
0.009706
0.011092
0.173779
0.099676
0.060545
0.037899
0.02126
0.0114
0
0.018807
0.309683
12,093
398
104
30.384422
0.758745
0.00645
0
0.133117
0
0
0.063222
0.001881
0
0
0.000537
0.002513
0.00974
0
null
null
0.003247
0.035714
null
null
0.051948
0
0
0
null
0
0
0
0
0
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
8a975211bf46410d2e2a9a98de298bed52013baa
6,589
py
Python
lib/formatter/text.py
ylafon/redbot
87f4edcc8ccda35f556331abd1e76d5e9b79cdd0
[ "Unlicense" ]
null
null
null
lib/formatter/text.py
ylafon/redbot
87f4edcc8ccda35f556331abd1e76d5e9b79cdd0
[ "Unlicense" ]
null
null
null
lib/formatter/text.py
ylafon/redbot
87f4edcc8ccda35f556331abd1e76d5e9b79cdd0
[ "Unlicense" ]
1
2021-06-01T12:08:29.000Z
2021-06-01T12:08:29.000Z
#!/usr/bin/env python """ HAR Formatter for REDbot. """ __author__ = "Jerome Renard <jerome.renard@gmail.com>" __copyright__ = """\ Copyright (c) 2008-2010 Mark Nottingham Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
33.277778
101
0.587039
850
6,589
4.437647
0.303529
0.033404
0.026511
0.03579
0.27492
0.239926
0.170467
0.140774
0.095705
0.081919
0
0.015914
0.294278
6,589
197
102
33.446701
0.795269
0.010472
0
0.234483
0
0
0.26713
0.003947
0
0
0
0.005076
0.006897
0
null
null
0.027586
0.027586
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
8a995f399ed25fbe111acb3f8ad5749b538eef0a
433
py
Python
python/re_user.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
1
2017-10-14T04:23:45.000Z
2017-10-14T04:23:45.000Z
python/re_user.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
python/re_user.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python #-*- coding=utf-8 -*- # # Copyright 2012 Jike Inc. All Rights Reserved. # Author: liwei@jike.com import re from urlparse import urlparse def parse1(): p = re.compile(r"/(?P<uid>\d+)/(?P<mid>\w+)") o = urlparse("http://weibo.com/2827699110/yz62AlEjF") m = p.search(o.path) print m....
22.789474
57
0.637413
65
433
4.215385
0.707692
0.043796
0.080292
0
0
0
0
0
0
0
0
0.055249
0.163972
433
18
58
24.055556
0.701657
0.251732
0
0
0
0
0.310345
0.15674
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8ab94a7177eff40dfe2d54daa4adb7bbd8788e95
1,084
py
Python
elm_mnist/elm_mnist.py
ahara/-blog
926ae4808ede6efb1e64381a19a210235a97ac36
[ "MIT" ]
null
null
null
elm_mnist/elm_mnist.py
ahara/-blog
926ae4808ede6efb1e64381a19a210235a97ac36
[ "MIT" ]
null
null
null
elm_mnist/elm_mnist.py
ahara/-blog
926ae4808ede6efb1e64381a19a210235a97ac36
[ "MIT" ]
null
null
null
import cPickle import numpy as np from elm import ELMClassifier from sklearn import linear_model def load_mnist(path='../Data/mnist.pkl'): with open(path, 'rb') as f: return cPickle.load(f) def get_datasets(data): _train_x, _train_y = data[0][0], np.array(data[0][1]).reshape(len(data[0][1]), 1) ...
32.848485
85
0.621771
171
1,084
3.631579
0.350877
0.016103
0.070853
0.077295
0.096618
0.096618
0.096618
0.096618
0.096618
0.096618
0
0.043373
0.234317
1,084
32
86
33.875
0.704819
0.035978
0
0
0
0
0.064361
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
8ac941eb3b632a517433fbaf339a5dae04e7e556
6,534
py
Python
heatsink.py
sww1235/heatsink-calc
3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759
[ "MIT" ]
1
2020-11-20T07:09:00.000Z
2020-11-20T07:09:00.000Z
heatsink.py
sww1235/heatsink-calc
3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759
[ "MIT" ]
null
null
null
heatsink.py
sww1235/heatsink-calc
3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759
[ "MIT" ]
null
null
null
"""Class representations of heatsinks.""" import math from scipy import constants as const from materials import Aluminium_6063 as aluminium class Heatsink: """ A Heatsink. Extended by form factor subclasses """ def __init__(self, material, configuration): """Init material and configur...
44.148649
78
0.520814
575
6,534
5.888696
0.34087
0.067336
0.014176
0.028352
0.124336
0.069699
0.039575
0
0
0
0
0.035732
0.396082
6,534
147
79
44.44898
0.822352
0.061371
0
0.091954
0
0
0
0
0
0
0
0.006803
0
0
null
null
0
0.034483
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
8acb71f44d08977a58d847a4d25a262b4cc3e603
35,471
py
Python
src/parser.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
2
2019-02-13T11:30:08.000Z
2021-02-14T04:20:44.000Z
src/parser.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
null
null
null
src/parser.py
harkiratbehl/PyGM
e0a4e0b865afb607dfa0525ca386bfbe77bb6508
[ "MIT" ]
null
null
null
#!/usr/bin/python from code import TreeNode from code import ThreeAddressCode from lexer import tokens from random import * from symbol_table import SymbolTable from symbol_table import SymbolTableNode import logging import ply.lex as lex import ply.yacc as yacc import sys from codegen import convert_tac from code...
29.050778
172
0.5361
4,440
35,471
4.178153
0.072072
0.02264
0.046898
0.080535
0.482076
0.438251
0.37529
0.314107
0.258854
0.240149
0
0.026433
0.305686
35,471
1,220
173
29.07459
0.726815
0.048744
0
0.511502
0
0
0.103066
0.001517
0
0
0
0.004918
0
0
null
null
0.001353
0.024357
null
null
0.035183
0
0
0
null
0
0
0
0
0
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
76f6512f7d0f9be2b22c77b6be1aa4a85a8c2498
1,530
py
Python
utils/setAddress.py
wedvjin/rs485-moist-sensor
90930a34d0e6ec977f6083e70cc4bd931d7453fb
[ "Apache-2.0" ]
1
2019-03-04T13:24:42.000Z
2019-03-04T13:24:42.000Z
utils/setAddress.py
wedvjin/rs485-moist-sensor
90930a34d0e6ec977f6083e70cc4bd931d7453fb
[ "Apache-2.0" ]
null
null
null
utils/setAddress.py
wedvjin/rs485-moist-sensor
90930a34d0e6ec977f6083e70cc4bd931d7453fb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Looks for sensor on the bus and changes it's address to the one specified on command line""" import argparse import minimalmodbus import serial from time import sleep parser = argparse.ArgumentParser() parser.add_argument('address', metavar='ADDR', type=int, choices=range(1, 248), help='An ad...
27.321429
105
0.733333
207
1,530
5.352657
0.483092
0.027076
0.07852
0.086643
0.268051
0.268051
0.16426
0
0
0
0
0.02439
0.142484
1,530
56
106
27.321429
0.820122
0.022222
0
0.142857
0
0
0.182857
0
0
0
0
0
0
0
null
null
0.02381
0.095238
null
null
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
76f8632c56e75a6a31f710898b1568e855cfd849
9,238
py
Python
apps/interactor/tests/commander/commands/test_animations.py
Djelibeybi/photons
bc0aa91771d8e88fd3c691fb58f18cb876f292ec
[ "MIT" ]
51
2020-07-03T08:34:48.000Z
2022-03-16T10:56:08.000Z
apps/interactor/tests/commander/commands/test_animations.py
delfick/photons
bc0aa91771d8e88fd3c691fb58f18cb876f292ec
[ "MIT" ]
81
2020-07-03T08:13:59.000Z
2022-03-31T23:02:54.000Z
apps/interactor/tests/commander/commands/test_animations.py
Djelibeybi/photons
bc0aa91771d8e88fd3c691fb58f18cb876f292ec
[ "MIT" ]
8
2020-07-24T23:48:20.000Z
2021-05-24T17:20:16.000Z
# coding: spec from interactor.commander.store import store, load_commands from photons_app.mimic.event import Events from photons_app import helpers as hp from photons_canvas.points.simple_messages import Set64 from unittest import mock import pytest @pytest.fixture() def store_clone(): load_commands() r...
31.209459
112
0.544923
904
9,238
5.512168
0.173673
0.05298
0.115593
0.125226
0.589203
0.553482
0.514148
0.476018
0.476018
0.44692
0
0.018894
0.306776
9,238
295
113
31.315254
0.759213
0.01115
0
0.408889
0
0.004444
0.230508
0
0
0
0
0
0.244444
0
null
null
0
0.026667
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
0a36ce830d4011a6336f73093bb61b54abdb2cbd
7,782
py
Python
pypy/interpreter/test/test_generator.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/interpreter/test/test_generator.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/interpreter/test/test_generator.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
30
2018-08-20T03:16:34.000Z
2022-01-12T17:39:22.000Z
class AppTestGenerator: def test_generator(self): def f(): yield 1 assert f().next() == 1 def test_generator2(self): def f(): yield 1 g = f() assert g.next() == 1 raises(StopIteration, g.next) def test_attributes(self): def f...
24.092879
77
0.467489
945
7,782
3.730159
0.167196
0.069504
0.056738
0.062695
0.495035
0.428936
0.371915
0.272057
0.230922
0.140426
0
0.023841
0.423285
7,782
322
78
24.167702
0.761586
0.035209
0
0.592857
0
0
0.104575
0
0
0
0
0
0.146429
0
null
null
0.007143
0.007143
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
0a42fad82c7026120ddbfdc222f7f45f5ba001fc
8,219
py
Python
seqenv/ontology.py
xapple/seqenv
a898b936b64b51340f439b05fc8909f4ed826247
[ "MIT" ]
7
2016-12-02T09:28:00.000Z
2021-11-04T13:47:16.000Z
seqenv/ontology.py
xapple/seqenv
a898b936b64b51340f439b05fc8909f4ed826247
[ "MIT" ]
7
2016-04-07T17:00:50.000Z
2018-05-14T12:16:06.000Z
seqenv/ontology.py
xapple/seqenv
a898b936b64b51340f439b05fc8909f4ed826247
[ "MIT" ]
4
2016-03-15T16:41:12.000Z
2021-12-06T09:30:35.000Z
# Built-in modules # # Internal modules # from seqenv import module_dir from seqenv.common.cache import property_cached # Third party modules # import sh, networkx import matplotlib.colors # A list of envos to help test this module # test_envos = [ "ENVO:00000033", "ENVO:00000043", "ENVO:00000067", "...
35.426724
90
0.565397
1,002
8,219
4.558882
0.257485
0.021016
0.018608
0.020797
0.20359
0.091068
0.075306
0.065674
0.058669
0.058669
0
0.01723
0.279718
8,219
231
91
35.580087
0.754392
0.100742
0
0.090164
0
0.016393
0.223596
0.03455
0
0
0
0
0.02459
0
null
null
0
0.065574
null
null
0.114754
0
0
0
null
0
0
0
0
0
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
0a554fb894afeaf01a54f7e6b34139ca26334475
862
py
Python
dbschema/revertDBinstall.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
dbschema/revertDBinstall.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
dbschema/revertDBinstall.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python from sinedon import dbupgrade, dbconfig import updatelib project_dbupgrade = dbupgrade.DBUpgradeTools('projectdata', drop=True) if __name__ == "__main__": updatelib_inst = updatelib.UpdateLib(project_dbupgrade) checkout_version = raw_input('Revert to checkout version, for example, 2.1 -->') i...
41.047619
90
0.759861
114
862
5.54386
0.517544
0.142405
0.079114
0.050633
0.075949
0
0
0
0
0
0
0.040789
0.118329
862
20
91
43.1
0.790789
0.023202
0
0
0
0
0.326992
0
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.176471
0
0
0
null
0
0
0
0
0
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
0a56c8065ff434f391ba424536df2984e5ef9221
3,396
py
Python
notebooks/classical_clustering.py
prise6/smart-iss-posts
fc913078e7fbe6343fd36ec6ca9852322247da5d
[ "MIT" ]
null
null
null
notebooks/classical_clustering.py
prise6/smart-iss-posts
fc913078e7fbe6343fd36ec6ca9852322247da5d
[ "MIT" ]
10
2020-01-28T23:15:20.000Z
2022-03-12T00:12:31.000Z
notebooks/classical_clustering.py
prise6/smart-iss-posts
fc913078e7fbe6343fd36ec6ca9852322247da5d
[ "MIT" ]
null
null
null
#%% [markdown] # # Clustering classique #%% [markdown] # ## import classique import os #%% %load_ext autoreload %autoreload 2 os.chdir('/home/jovyan/work') #%% [markdown] # ## Import iss #%% from iss.tools import Config from iss.tools import Tools from iss.models import SimpleConvAutoEncoder from iss.clustering imp...
22.196078
152
0.707008
441
3,396
5.272109
0.342404
0.044731
0.075699
0.03957
0.343226
0.295914
0.190968
0.162581
0.141505
0.141505
0
0.019614
0.12927
3,396
152
153
22.342105
0.766655
0.232332
0
0.043478
0
0
0.076801
0.033426
0
0
0
0
0
0
null
null
0
0.195652
null
null
0.065217
0
0
0
null
0
0
0
0
0
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
0a585a8c735b3266210fbee5416e533aa2feb0c6
8,847
py
Python
desktop/core/src/desktop/auth/views.py
bopopescu/hue-5
665c275d0c0570b1a4a34a293503cc72ec35695c
[ "Apache-2.0" ]
1
2018-05-07T05:40:36.000Z
2018-05-07T05:40:36.000Z
desktop/core/src/desktop/auth/views.py
lockhart39/HueQualityAndIngestionApp
c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/auth/views.py
lockhart39/HueQualityAndIngestionApp
c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c
[ "Apache-2.0" ]
1
2022-03-21T09:41:35.000Z
2022-03-21T09:41:35.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
34.158301
126
0.722505
1,136
8,847
5.442782
0.242958
0.019408
0.022643
0.018114
0.19214
0.172893
0.123403
0.110464
0.096232
0.082161
0
0.001513
0.178026
8,847
258
127
34.290698
0.848735
0.119363
0
0.222857
0
0
0.11319
0.01041
0
0
0
0
0.005714
0
null
null
0.017143
0.131429
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
6a57cefd47f3150e0a9d0bbdcd3affcfe90d72c9
15,520
py
Python
legtool/tabs/servo_tab.py
jpieper/legtool
ab3946051bd16817b61d3073ce7be8bd27af90d0
[ "Apache-2.0" ]
10
2015-09-23T19:28:06.000Z
2021-04-27T02:32:27.000Z
legtool/tabs/servo_tab.py
jpieper/legtool
ab3946051bd16817b61d3073ce7be8bd27af90d0
[ "Apache-2.0" ]
null
null
null
legtool/tabs/servo_tab.py
jpieper/legtool
ab3946051bd16817b61d3073ce7be8bd27af90d0
[ "Apache-2.0" ]
9
2015-10-16T07:26:18.000Z
2021-01-13T07:18:35.000Z
# Copyright 2014 Josh Pieper, jjp@pobox.com. # # 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...
35.514874
78
0.593814
1,727
15,520
5.188188
0.169658
0.042857
0.045313
0.014286
0.333259
0.252232
0.206027
0.152567
0.11529
0.086496
0
0.005517
0.299227
15,520
436
79
35.59633
0.818316
0.040013
0
0.168675
0
0
0.032926
0
0
0
0
0
0
0
null
null
0.003012
0.024096
null
null
0.006024
0
0
0
null
0
0
0
0
0
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
6a8f3e25920be24fb569cc55eff90ae879efa647
73,328
py
Python
ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
3
2019-06-20T11:49:36.000Z
2020-12-11T10:44:29.000Z
ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
1
2019-03-20T08:36:17.000Z
2019-03-20T08:36:17.000Z
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
36.13997
166
0.551836
5,880
73,328
6.787245
0.115476
0.031672
0.011652
0.007517
0.639555
0.586584
0.534165
0.493473
0.45496
0.410509
0
0.023864
0.307972
73,328
2,028
167
36.157791
0.762597
0.021179
0
0.463305
0
0.003922
0.333962
0.112355
0
0
0
0
0.052661
0
null
null
0.001681
0.003361
null
null
0.002801
0
0
0
null
0
0
0
0
0
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
6a9907c6e19624e9a00da0b3cff99ba87e746680
3,206
py
Python
models2.py
Lydia-Tan/MindLife
644f1a3834f337d51c99650c3924df99c5200d06
[ "MIT" ]
1
2020-01-20T19:49:07.000Z
2020-01-20T19:49:07.000Z
models2.py
lindaweng/Mindlife
30be070b39728fb3fe149d4c95e5bce280a3b6a7
[ "MIT" ]
null
null
null
models2.py
lindaweng/Mindlife
30be070b39728fb3fe149d4c95e5bce280a3b6a7
[ "MIT" ]
null
null
null
import nltk import re import sys from sys import argv from nltk.sentiment.vader import SentimentIntensityAnalyzer def ajay(ans): ajay = SentimentIntensityAnalyzer() completeScore = 0 questionWeights = [0.05, 0.20, 0.05, 0.05, 0.05, 0.20, 0.05, 0.05, 0.20, 0.10] print ans ansList = ans.split("$") ...
51.709677
98
0.585153
379
3,206
4.94723
0.490765
0.0096
0.0128
0.042667
0.014933
0.014933
0.014933
0.013333
0.013333
0
0
0.020648
0.335309
3,206
62
99
51.709677
0.859221
0.033063
0
0
0
0
0.510204
0
0
0
0
0
0
0
null
null
0
0.092593
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
6a9d299ac035789dcfbdc5b67b56e5ebe19176e2
33,321
py
Python
bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/CCSBpckgs/mglutil/gui/BasicWidgets/Tk/Dial.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
################################################################################ ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your op...
36.376638
87
0.547643
3,868
33,321
4.706825
0.152792
0.046523
0.004779
0.005273
0.32341
0.297484
0.258376
0.209162
0.176261
0.161046
0
0.018954
0.333393
33,321
915
88
36.416393
0.800693
0.101378
0
0.279534
0
0
0.064124
0
0
0
0
0.001093
0.023295
0
null
null
0
0.016639
null
null
0.023295
0
0
0
null
0
0
0
0
0
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
6a9d42bd307c1507375c76e403f46b3901bbf76d
3,560
py
Python
qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
5
2018-12-22T14:49:13.000Z
2022-01-13T07:21:46.000Z
qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
null
null
null
qt-creator-opensource-src-4.6.1/scripts/checkInstalledFiles.py
kevinlq/Qt-Creator-Opensource-Study
b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f
[ "MIT" ]
8
2018-07-17T03:55:48.000Z
2021-12-22T06:37:53.000Z
#!/usr/bin/env python ############################################################################ # # Copyright (C) 2016 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of Qt Creator. # # Commercial License Usage # Licensees holding valid commercial Qt licenses may use this file in #...
31.504425
136
0.608989
439
3,560
4.91344
0.416856
0.016226
0.013908
0.01669
0.024108
0
0
0
0
0
0
0.008453
0.235674
3,560
112
137
31.785714
0.78427
0.290169
0
0.123288
0
0
0.100851
0
0
0
0
0
0
0
null
null
0
0.082192
null
null
0.068493
0
0
0
null
0
0
0
0
0
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
6aaa29259fb6e01655aa91ee60654bb2eceee036
1,271
py
Python
gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
gjqyxyxxcxxt/gjqyxyxxcxxt/queue_companies.py
AisinoPythonTeam/PythonAiniso
983a29962752679d8cc26a2c3cdb0ba8fcfa3f02
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pymysql import sys, os, json, time, pymongo app_dir = os.path.abspath("../") sys.path.append(app_dir) from gjqyxyxxcxxt import settings from gjqyxyxxcxxt.database.my_redis import QueueRedis conn = None def connect_db(): global conn conn = pymysql.connect(host="172.16.16.15",port...
24.921569
125
0.650669
173
1,271
4.612717
0.508671
0.037594
0.030075
0.030075
0
0
0
0
0
0
0
0.027328
0.222659
1,271
50
126
25.42
0.780364
0.028324
0
0.121951
0
0
0.112916
0
0
0
0
0
0
0
null
null
0.02439
0.097561
null
null
0.04878
0
0
0
null
0
0
0
0
0
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
6ad3007b95e5d17415b05151d343ee3326e45e1d
2,157
py
Python
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
2
2020-10-25T17:01:10.000Z
2020-12-04T14:26:26.000Z
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
null
null
null
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
null
null
null
import numpy as np import sys from timeit import default_timer as timer sys.path.append("../../") from core import wnn from encoding import thermometer from encoding import util #Load Diabetes data base_path = "../../dataset/diabetes/" #2/3 Test bits_encoding = 20 train_data, train_label, test_data, test_label, data...
23.445652
95
0.658785
349
2,157
3.868195
0.240688
0.047407
0.013333
0.024444
0.395556
0.34963
0.34963
0.28
0.225185
0.225185
0
0.040756
0.215114
2,157
91
96
23.703297
0.756645
0.046824
0
0.3125
0
0
0.039063
0.01123
0
0
0
0
0
0
null
null
0
0.09375
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
0a7c48d84a538009f1d4846a3bf1ffec3626caf1
1,005
py
Python
Components/Align All Components.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
1
2021-09-04T18:41:30.000Z
2021-09-04T18:41:30.000Z
Components/Align All Components.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
null
null
null
Components/Align All Components.py
davidtahim/Glyphs-Scripts
5ed28805b5fe03c63d904ad2f79117844c22aa44
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Align All Components # -*- coding: utf-8 -*- __doc__=""" Fakes auto-alignment in glyphs that cannot be auto-aligned. """ import GlyphsApp thisFont = Glyphs.font # frontmost font thisFontMaster = thisFont.selectedFontMaster # active master thisFontMasterID = thisFont.selectedFontMaster.id # active master l...
32.419355
81
0.78607
112
1,005
7.017857
0.5625
0.066158
0.022901
0.038168
0.048346
0
0
0
0
0
0
0.005727
0.131343
1,005
30
82
33.5
0.894616
0.235821
0
0
0
0
0.110818
0
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0a7cd64e2508df91e539f1a6f804bc5eb4b0ea83
12,372
py
Python
audio/audio_server.py
artigianitecnologici/marrtino_apps
b58bf4daa1d06db2f1c8a47be02b29948d41f48d
[ "BSD-4-Clause" ]
null
null
null
audio/audio_server.py
artigianitecnologici/marrtino_apps
b58bf4daa1d06db2f1c8a47be02b29948d41f48d
[ "BSD-4-Clause" ]
null
null
null
audio/audio_server.py
artigianitecnologici/marrtino_apps
b58bf4daa1d06db2f1c8a47be02b29948d41f48d
[ "BSD-4-Clause" ]
null
null
null
# Only PCM 16 bit wav 44100 Hz - Use audacity or sox to convert audio files. # WAV generation # Synth # sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bip.wav synth 0.25 sine 800 # sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bop.wav synth 0.25 sine 400 # Voices # pico2wave -l ...
30.93
116
0.516246
1,364
12,372
4.585777
0.246334
0.020144
0.023022
0.01279
0.119265
0.096882
0.086331
0.086331
0.076739
0.076739
0
0.020704
0.375364
12,372
399
117
31.007519
0.78869
0.165535
0
0.312977
0
0
0.106993
0.002341
0
0
0
0
0
0
null
null
0.003817
0.049618
null
null
0.114504
0
0
0
null
0
0
0
0
0
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
0a85751a815d71753d3e2aaa3ccbd06b815ba219
5,200
py
Python
bat_train/evaluate.py
bgotthold-usgs/batdetect
0d4a70f1cda9f6104f6f785f0d953f802fddf0f1
[ "BSD-Source-Code" ]
59
2018-03-05T08:58:59.000Z
2022-03-19T17:33:14.000Z
bat_train/evaluate.py
bgotthold-usgs/batdetect
0d4a70f1cda9f6104f6f785f0d953f802fddf0f1
[ "BSD-Source-Code" ]
11
2018-03-16T21:46:51.000Z
2021-12-14T16:07:55.000Z
bat_train/evaluate.py
bgotthold-usgs/batdetect
0d4a70f1cda9f6104f6f785f0d953f802fddf0f1
[ "BSD-Source-Code" ]
24
2018-03-15T14:48:08.000Z
2022-01-09T01:12:51.000Z
import numpy as np from sklearn.metrics import roc_curve, auc def compute_error_auc(op_str, gt, pred, prob): # classification error pred_int = (pred > prob).astype(np.int) class_acc = (pred_int == gt).mean() * 100.0 # ROC - area under curve fpr, tpr, thresholds = roc_curve(gt, pred) roc_auc ...
38.80597
109
0.649038
814
5,200
3.927518
0.255528
0.031905
0.015327
0.012512
0.1198
0.071317
0.054426
0.041289
0.041289
0.041289
0
0.012323
0.250962
5,200
133
110
39.097744
0.808472
0.180962
0
0.027027
0
0
0.009756
0
0
0
0
0
0
0
null
null
0
0.027027
null
null
0.013514
0
0
0
null
0
0
0
0
0
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
0a86094f8b6e8a0e12d48278a3971b48591f4ec2
27,399
py
Python
azure-mgmt/tests/test_mgmt_network.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
2
2020-07-29T14:22:17.000Z
2020-11-06T18:47:40.000Z
azure-mgmt/tests/test_mgmt_network.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
1
2016-08-01T07:37:04.000Z
2016-08-01T07:37:04.000Z
azure-mgmt/tests/test_mgmt_network.py
SUSE/azure-sdk-for-python
324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f
[ "MIT" ]
1
2020-12-12T21:04:41.000Z
2020-12-12T21:04:41.000Z
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #---------------------------------------------------------------------...
33.454212
115
0.567904
2,714
27,399
5.389831
0.119381
0.057151
0.085999
0.036369
0.688474
0.577864
0.510938
0.401217
0.331966
0.267774
0
0.013431
0.334209
27,399
818
116
33.49511
0.7884
0.05409
0
0.440703
0
0
0.097832
0.025009
0
0
0
0
0.046852
0
null
null
0
0.005857
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
0a9abefb5c7f43f4b3586ebf44ef35bd05d5118a
1,223
py
Python
redisSeed.py
bigmacd/miscPython
ec473c724be54241e369a1bdb0f739d2b0ed02ee
[ "BSD-3-Clause" ]
null
null
null
redisSeed.py
bigmacd/miscPython
ec473c724be54241e369a1bdb0f739d2b0ed02ee
[ "BSD-3-Clause" ]
null
null
null
redisSeed.py
bigmacd/miscPython
ec473c724be54241e369a1bdb0f739d2b0ed02ee
[ "BSD-3-Clause" ]
null
null
null
import time import redis import json import argparse """ Follows the StackExchange best practice for creating a work queue. Basically push a task and publish a message that a task is there.""" def PushTask(client, queue, task, topic): client.lpush(queue, task) client.publish(topic, queue) if __name_...
34.942857
95
0.614881
158
1,223
4.664557
0.424051
0.061058
0.115332
0.048847
0
0
0
0
0
0
0
0.008959
0.269828
1,223
34
96
35.970588
0.816349
0
0
0
0
0
0.192771
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
0a9e0852ce066b6a61ac5cfb9625f8879b66f594
536
py
Python
serveur/serveurDroit.py
PL4typus/SysNetProject17
283c127a3363876360bc52b54eae939c6104c6b4
[ "MIT" ]
null
null
null
serveur/serveurDroit.py
PL4typus/SysNetProject17
283c127a3363876360bc52b54eae939c6104c6b4
[ "MIT" ]
null
null
null
serveur/serveurDroit.py
PL4typus/SysNetProject17
283c127a3363876360bc52b54eae939c6104c6b4
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket,sys,os TCP_IP = '127.0.0.1' TCP_PORT = 6262 BUFFER_SIZE = 1024 s= socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.bind((TCP_IP,TCP_PORT)) s.listen(5) conn, addr = s.accept() print('Connection entrante :', addr) data = conn.recv(BUFFER_SIZE) if data == "m" : os.popen("chmod...
14.486486
51
0.641791
91
536
3.681319
0.538462
0.089552
0.071642
0.107463
0.226866
0
0
0
0
0
0
0.042889
0.173507
536
36
52
14.888889
0.713318
0.029851
0
0.090909
0
0
0.144509
0
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0aab9dbbc4006ac10614eb6e13f1101929dde5bc
5,242
py
Python
objectstoreSiteMover.py
nikmagini/pilot
1c84fcf6f7e43b669d2357326cdbe06382ac829f
[ "Apache-2.0" ]
13
2015-02-19T17:17:10.000Z
2021-12-22T06:48:02.000Z
objectstoreSiteMover.py
nikmagini/pilot
1c84fcf6f7e43b669d2357326cdbe06382ac829f
[ "Apache-2.0" ]
85
2015-01-06T15:01:51.000Z
2018-11-29T09:03:35.000Z
objectstoreSiteMover.py
nikmagini/pilot
1c84fcf6f7e43b669d2357326cdbe06382ac829f
[ "Apache-2.0" ]
22
2015-06-09T12:08:29.000Z
2018-11-20T10:07:01.000Z
#!/usr/bin/env python # Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: ...
44.803419
256
0.702404
618
5,242
5.857605
0.333333
0.012431
0.039779
0.053039
0.530663
0.513536
0.487569
0.487569
0.427072
0.427072
0
0.093664
0.169019
5,242
116
257
45.189655
0.737374
0.15166
0
0.2
0
0.05
0.226713
0.155919
0
0
0
0
0
0
null
null
0
0.1
null
null
0.033333
0
0
0
null
0
0
0
0
0
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
0ab4aa21cfd4871d1766355bdd0923074d0f5c05
32,515
py
Python
gpMgmt/bin/gpload_test/gpload2/TEST.py
Tylarb/gpdb
15e1341cfbac7f70d2086a9a1d46149a82765b5e
[ "PostgreSQL", "Apache-2.0" ]
1
2020-07-08T13:20:27.000Z
2020-07-08T13:20:27.000Z
gpMgmt/bin/gpload_test/gpload2/TEST.py
Tylarb/gpdb
15e1341cfbac7f70d2086a9a1d46149a82765b5e
[ "PostgreSQL", "Apache-2.0" ]
6
2020-06-24T18:56:06.000Z
2022-02-26T08:53:11.000Z
gpMgmt/bin/gpload_test/gpload2/TEST.py
Tylarb/gpdb
15e1341cfbac7f70d2086a9a1d46149a82765b5e
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import unittest import sys import os import string import time import socket import fileinput import platform import re try: import subprocess32 as subprocess except: import subprocess import pg def get_port_from_conf(): file = os.environ.get('MASTER_DATA_DIRECTORY')+'/postgresql.con...
42.172503
421
0.611041
4,386
32,515
4.347697
0.120383
0.02706
0.023127
0.034611
0.524411
0.480518
0.454612
0.416487
0.386019
0.359589
0
0.024738
0.249085
32,515
770
422
42.227273
0.756266
0.030909
0
0.257282
0
0.006472
0.291934
0.010893
0
0
0
0
0.001618
0
null
null
0.001618
0.019417
null
null
0.004854
0
0
0
null
0
0
0
0
0
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
0ab8196f812a9bd1c5cff6d84c43cd3a82467a55
618
py
Python
VMI/VMItest.py
thomasbarillot/DAQ
20126655f74194757d25380680af9429ff27784e
[ "MIT" ]
1
2017-04-25T10:56:01.000Z
2017-04-25T10:56:01.000Z
VMI/VMItest.py
thomasbarillot/DAQ
20126655f74194757d25380680af9429ff27784e
[ "MIT" ]
null
null
null
VMI/VMItest.py
thomasbarillot/DAQ
20126655f74194757d25380680af9429ff27784e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat May 7 11:38:18 2016 @author: thomasbarillot VMI control """ from ctypes import cdll #slib="VMIcrtl_ext.dll" #hlib=cdll('VMIcrtl.dll') import VMIcrtl_ext test=VMIcrtl_ext.VMIcrtl() #%% print test.GetFilename() #%% test.setFilename('20161115_1841.dat') print test.GetFilen...
12.875
37
0.699029
90
618
4.755556
0.555556
0.070093
0.093458
0.11215
0.074766
0
0
0
0
0
0
0.066543
0.124595
618
48
38
12.875
0.724584
0.134304
0
0.111111
0
0
0.038375
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.277778
0
0
0
null
0
0
0
0
0
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
0abbc3e1d5afde9470d734d62bcb0511ac93cadd
5,390
py
Python
samples/samplenetconf/demos/vr_demo3.py
gaberger/pysdn
67442e1c259d8ca8620ada95b95977e3852463c5
[ "BSD-3-Clause" ]
1
2017-08-22T14:17:10.000Z
2017-08-22T14:17:10.000Z
samples/samplenetconf/demos/vr_demo3.py
gaberger/pysdn
67442e1c259d8ca8620ada95b95977e3852463c5
[ "BSD-3-Clause" ]
1
2021-03-26T00:47:22.000Z
2021-03-26T00:47:22.000Z
samples/samplenetconf/demos/vr_demo3.py
gaberger/pysdn
67442e1c259d8ca8620ada95b95977e3852463c5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, INC # 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 n...
34.113924
78
0.62115
637
5,390
5.188383
0.343799
0.01997
0.026626
0.03177
0.288351
0.232073
0.232073
0.232073
0.232073
0.214523
0
0.007679
0.226902
5,390
157
79
34.33121
0.785457
0.281633
0
0.425743
0
0
0.254305
0.061457
0
0
0
0
0
0
null
null
0
0.059406
null
null
0.336634
0
0
0
null
0
0
0
0
0
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
0abf250849dcb075b82b1ca50e27cc3adefcc742
3,993
py
Python
src/mgls_bootstrapping.py
rosich/mgls
64c924f59adba2dddf44bb70a84868173f0b7120
[ "MIT" ]
null
null
null
src/mgls_bootstrapping.py
rosich/mgls
64c924f59adba2dddf44bb70a84868173f0b7120
[ "MIT" ]
null
null
null
src/mgls_bootstrapping.py
rosich/mgls
64c924f59adba2dddf44bb70a84868173f0b7120
[ "MIT" ]
null
null
null
#!/usr/bin/python from math import sin, cos, tan, atan, pi, acos, sqrt, exp, log10 import sys, os import copy import random import numpy as np import multiprocessing as mp import ConfigParser sys.path.append('./bin') import mGLS, mMGLS sys.path.append('./src') from EnvGlobals import Globals import mgls_io import mgls_m...
31.690476
91
0.672176
543
3,993
4.767956
0.313076
0.118192
0.023175
0.016995
0.4017
0.344921
0.323677
0.323677
0.27192
0.27192
0
0.020395
0.214125
3,993
125
92
31.944
0.804653
0.088405
0
0.381579
0
0.013158
0.031302
0
0
0
0
0
0
0
null
null
0
0.157895
null
null
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0acb3e8369864a2998734321cae251dc26fd05fa
2,884
py
Python
extractFeatures.py
PatrickJReed/Longboard
f6ca4a6e51c91296894aee2e02b86f83b38c080a
[ "MIT" ]
1
2020-04-27T19:55:29.000Z
2020-04-27T19:55:29.000Z
extractFeatures.py
PatrickJReed/Longboard2
f6ca4a6e51c91296894aee2e02b86f83b38c080a
[ "MIT" ]
1
2020-02-26T18:06:09.000Z
2020-02-26T18:06:09.000Z
extractFeatures.py
PatrickJReed/Longboard
f6ca4a6e51c91296894aee2e02b86f83b38c080a
[ "MIT" ]
null
null
null
#!/home/ubuntu/miniconda2/bin/python from __future__ import division import sys import glob, os, gc import uuid import os.path import csv import numpy as np from time import time from subprocess import (call, Popen, PIPE) from itertools import product import shutil import re import pickle from boto3.session import Ses...
31.692308
138
0.662968
452
2,884
4.09292
0.265487
0.048649
0.075676
0.077838
0.402703
0.38
0.342703
0.261081
0.215676
0.215676
0
0.02397
0.175451
2,884
91
139
31.692308
0.753995
0.016297
0
0.106667
0
0
0.093827
0.028571
0
0
0
0
0
0
null
null
0
0.293333
null
null
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0ad16ca68b13c3255bfd62c00d84e6b8aa940002
3,021
py
Python
finex_history.py
yihming/gdax-data
7e562f314e9ef12eb6be2df3b97190af632c4530
[ "MIT" ]
null
null
null
finex_history.py
yihming/gdax-data
7e562f314e9ef12eb6be2df3b97190af632c4530
[ "MIT" ]
null
null
null
finex_history.py
yihming/gdax-data
7e562f314e9ef12eb6be2df3b97190af632c4530
[ "MIT" ]
null
null
null
import datetime import calendar import requests import pandas as pd import json import os.path import time import MySQLdb as M from gdax_history import timestamp_to_utcstr def connect_to_db(): config = json.load(open('dbconn.json'))["mysql"] db = M.connect(host = config["host"], user = conf...
30.21
207
0.581595
398
3,021
4.28392
0.386935
0.058065
0.008798
0.009384
0.119648
0.081525
0.03871
0
0
0
0
0.031496
0.285336
3,021
99
208
30.515152
0.758221
0.098974
0
0.060606
0
0.015152
0.117899
0
0
0
0
0
0
0
null
null
0.015152
0.136364
null
null
0.060606
0
0
0
null
0
0
0
0
0
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
0af766c917854c90cf7eae087d9105162f3eb248
8,667
py
Python
py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
py/testdir_multi_jvm/test_many_fp_formats_libsvm_2.py
vkuznet/h2o
e08f7014f228cbaecfb21f57379970e6a3ac0756
[ "Apache-2.0" ]
null
null
null
import unittest, random, sys, time sys.path.extend(['.','..','py']) import h2o, h2o_cmd, h2o_hosts, h2o_browse as h2b, h2o_import as h2i, h2o_exec as h2e, h2o_glm import h2o_util zeroList = [ 'Result0 = 0', ] # the first column should use this exprList = [ 'Result<n> = sum(<keyX>[<col1>])', ] DO_S...
45.376963
151
0.572055
989
8,667
4.905966
0.336704
0.016076
0.016488
0.02535
0.128813
0.125103
0.112531
0.02803
0.02803
0
0
0.025137
0.325257
8,667
190
152
45.615789
0.804549
0.219222
0
0.113821
0
0
0.097485
0.00387
0
0
0
0
0.04878
0
null
null
0
0.03252
null
null
0.073171
0
0
0
null
0
0
0
0
0
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
0afb2dc8c2daf11d9a82ca819aeffdafacc6c971
2,515
py
Python
graph.py
VaniSHadow/tpGenerator
2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0
[ "Unlicense" ]
null
null
null
graph.py
VaniSHadow/tpGenerator
2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0
[ "Unlicense" ]
null
null
null
graph.py
VaniSHadow/tpGenerator
2a2e0a65df48c812d9fa2e2b1474573c6a6ab6c0
[ "Unlicense" ]
null
null
null
import random import numpy import copy class Graph: """n表示图中点的个数,m表示图中边的个数""" def __init__(self, n, m, edge_weight=1, directed=True, connected='weak', loop=False, weighted=False, trim=True): """ n 图中点的个数 m 图中边的个数 edge_weight 边的权值上限 directed 有向性 connected 连通性 loop 有环性 weighted 带权性 trim ...
27.043011
113
0.622664
407
2,515
3.815725
0.184275
0.035415
0.061816
0.066967
0.388281
0.365744
0.324533
0.324533
0.282035
0.282035
0
0.024549
0.206362
2,515
92
114
27.336957
0.753507
0.006759
0
0.236111
0
0
0.005314
0
0
0
0
0
0
0
null
null
0
0.041667
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
7c120c632a3695672ca8dce5ff251b3540195c6e
68,026
py
Python
sandroad.py
lancelee82/bluelake
3ac3bba191ec5e331dcf66e0a20725445585c316
[ "MIT" ]
null
null
null
sandroad.py
lancelee82/bluelake
3ac3bba191ec5e331dcf66e0a20725445585c316
[ "MIT" ]
null
null
null
sandroad.py
lancelee82/bluelake
3ac3bba191ec5e331dcf66e0a20725445585c316
[ "MIT" ]
null
null
null
""" Flatpath, go forward forever. http://codeincomplete.com/posts/javascript-racer/ http://www.extentofthejam.com/pseudo/ http://pixel.garoux.net/screen/game_list Usage: * UP/DOWN/LEFT/RIGHT * SPACE : hide/show road map * TAB : replay this road * RETURN : go to a new road TODO: * hill road * more road sprites * soun...
28.824576
100
0.467263
9,147
68,026
3.285886
0.075107
0.032606
0.023789
0.014639
0.617647
0.553234
0.499667
0.445269
0.421613
0.401051
0
0.064184
0.397186
68,026
2,359
101
28.836795
0.668764
0.099668
0
0.460497
0
0
0.046124
0.008643
0
0
0
0.00212
0
0
null
null
0.003762
0.005267
null
null
0.007524
0
0
0
null
0
0
0
0
0
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
7c1d6fd7dc1976bcfc2727fbe10b4b7b22073b1a
705
py
Python
2017/third.py
vla3089/adventofcode
0aefb5509e9f816f89eeab703393be7222632e02
[ "Apache-2.0" ]
null
null
null
2017/third.py
vla3089/adventofcode
0aefb5509e9f816f89eeab703393be7222632e02
[ "Apache-2.0" ]
null
null
null
2017/third.py
vla3089/adventofcode
0aefb5509e9f816f89eeab703393be7222632e02
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python input = 368078 size = 1 s_size = size * size # squared size while (s_size < input): size += 2 s_size = size * size bottom_right = s_size bottom_left = s_size - size + 1 top_left = s_size - 2 * size + 2 top_right = s_size - 3 * size + 3 input_x = -1 input_y = -1 # bottom horizontal lin...
19.054054
47
0.631206
125
705
3.28
0.224
0.085366
0.065854
0.063415
0
0
0
0
0
0
0
0.040462
0.26383
705
36
48
19.583333
0.749518
0.079433
0
0.148148
0
0
0
0
0
0
0
0
0
0
null
null
0
0
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
7c2c549754955b919f978ac6624f7aa2371b569a
19,500
py
Python
PS12/api2.py
AbhinavSingh-21f1002369/AFKZenCoders
344475e7d5d60c09637b0bec28c5dab1befe2b65
[ "MIT" ]
null
null
null
PS12/api2.py
AbhinavSingh-21f1002369/AFKZenCoders
344475e7d5d60c09637b0bec28c5dab1befe2b65
[ "MIT" ]
null
null
null
PS12/api2.py
AbhinavSingh-21f1002369/AFKZenCoders
344475e7d5d60c09637b0bec28c5dab1befe2b65
[ "MIT" ]
2
2021-10-11T09:28:00.000Z
2021-10-14T10:30:11.000Z
from flask import Flask, render_template, request, jsonify,send_file, redirect,session, url_for from werkzeug import secure_filename import os import utilities, queries import logger from flask_cors import CORS, cross_origin from datetime import timedelta app = Flask(__name__) CORS(app) cors = CORS(app, resources={r"/*...
38.16047
182
0.655385
2,475
19,500
5.080808
0.117172
0.044612
0.012883
0.02505
0.673797
0.629026
0.557694
0.508072
0.493201
0.448668
0
0.014299
0.182308
19,500
511
183
38.16047
0.774287
0.051795
0
0.48227
0
0.01182
0.345304
0.025683
0
0
0
0
0
0
null
null
0.009456
0.016548
null
null
0.016548
0
0
0
null
0
0
0
0
0
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
7c3d1d7e925f2c1752e9865895938aea4dee29d9
6,830
py
Python
guardian/decorators.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
null
null
null
guardian/decorators.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
null
null
null
guardian/decorators.py
peopledoc/django-guardian
459827c2329975113cbf0d11f4fd476b5689a055
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME from django.core.exceptions import PermissionDenied from django.http import HttpResponseForbidden, HttpResponseRedirect from django.utils.functional import wraps from django.utils.http import urlquote from django.db.models import Model...
47.762238
80
0.630893
796
6,830
5.258794
0.273869
0.026278
0.028428
0.016722
0.11419
0.053989
0.043
0.043
0
0
0
0.014131
0.295461
6,830
142
81
48.098592
0.855777
0.048609
0
0.027027
0
0
0.116797
0.005387
0
0
0
0
0
0
null
null
0.027027
0.175676
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
7c46086ba91c653227726b101b253bd36be2a7f4
5,963
py
Python
boolean2/tokenizer.py
AbrahmAB/booleannet
a07124047d18a5b7265e050a234969ac58970c7a
[ "MIT" ]
null
null
null
boolean2/tokenizer.py
AbrahmAB/booleannet
a07124047d18a5b7265e050a234969ac58970c7a
[ "MIT" ]
null
null
null
boolean2/tokenizer.py
AbrahmAB/booleannet
a07124047d18a5b7265e050a234969ac58970c7a
[ "MIT" ]
null
null
null
""" Main tokenizer. """ from itertools import * import sys, random import util import ply.lex as lex class Lexer: """ Lexer for boolean rules """ literals = '=*,' tokens = ( 'LABEL', 'ID','STATE', 'ASSIGN', 'EQUAL', 'AND', 'OR', 'NOT', 'NUMBER', 'LPAREN','RPAREN', 'COMMA'...
25.374468
171
0.528928
777
5,963
3.990991
0.234234
0.017414
0.022573
0.021928
0.159626
0.133505
0.098355
0.060626
0.039987
0.039987
0
0.019417
0.309073
5,963
235
172
25.374468
0.733252
0.015093
0
0.097744
0
0
0.139391
0.007136
0
0
0
0
0
0
null
null
0
0.037594
null
null
0.007519
0
0
0
null
0
0
0
0
0
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
7c478777d84107b3217342ab649b11b3244e8389
7,606
py
Python
pyec/distribution/bayes/structure/basic.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
2
2015-03-16T21:18:27.000Z
2017-10-09T19:59:24.000Z
pyec/distribution/bayes/structure/basic.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
null
null
null
pyec/distribution/bayes/structure/basic.py
hypernicon/pyec
7072835c97d476fc45ffc3b34f5c3ec607988e6d
[ "MIT" ]
null
null
null
""" Copyright (C) 2012 Alan J Lockett Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,...
35.050691
460
0.620431
858
7,606
5.48951
0.258741
0.053716
0.017197
0.015287
0.310403
0.278981
0.206794
0.140127
0.128238
0.109554
0
0.006008
0.299763
7,606
217
461
35.050691
0.878333
0.007757
0
0.511905
0
0
0.018501
0
0
0
0
0
0
0
null
null
0.029762
0.017857
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
7c486bb219145330aa050e526b0e111823623d51
620
py
Python
projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
projects/code_combat/8_Cloudrip_Mountain/471-Distracting_Dungeon/distracting_dungeon.py
only-romano/junkyard
b60a25b2643f429cdafee438d20f9966178d6f36
[ "MIT" ]
null
null
null
def moveBothTo(point): while hero.distanceTo(point) > 1: hero.move(point) hero.command(peasant, "move", point) peasant = hero.findNearest(hero.findFriends()) while True: hero.command(peasant, "buildXY", "decoy", peasant.pos.x + 2, peasant.pos.y) var nextPoint = {"x": hero.pos.x,...
31
80
0.606452
76
620
4.947368
0.355263
0.074468
0.095745
0.090426
0.095745
0
0
0
0
0
0
0.014989
0.246774
620
19
81
32.631579
0.79015
0
0
0.125
0
0
0.033278
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c4a4e05ac30862172f332ac22daa59c8c1ecce1
2,764
py
Python
com/binghe/hacker/tools/script/ak/check_virus.py
ffffff0x/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
52
2019-02-11T13:02:20.000Z
2022-02-06T07:43:55.000Z
com/binghe/hacker/tools/script/ak/check_virus.py
sunshinelyz/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
null
null
null
com/binghe/hacker/tools/script/ak/check_virus.py
sunshinelyz/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
15
2019-02-25T03:04:50.000Z
2021-10-19T02:13:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- coding: gbk -*- # Date: 2019/2/22 # Created by 冰河 # Description 将生成的bindshell.exe提交到vscan.novirusthanks.org检测 # 用法 python check_virus.py -f bindshell.exe # 博客 https://blog.csdn.net/l1028386804 import re import httplib import time import os import optparse...
29.72043
67
0.599132
291
2,764
5.652921
0.4811
0.007295
0.045593
0.035258
0.167781
0.167781
0.167781
0.167781
0.080243
0.080243
0
0.020457
0.239508
2,764
93
68
29.72043
0.762131
0.087192
0
0.185714
0
0
0.242846
0.079889
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.114286
0
0
0
null
0
0
0
0
0
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
7c606dd98dcd0e38522a604061eae8d10c8862e6
1,844
py
Python
manuscript/link_checker.py
wuyang1002431655/tango_with_django_19
42d5878e4a12037daf04d785826357cd4351a16d
[ "Apache-2.0" ]
244
2016-04-12T15:39:47.000Z
2021-09-10T07:43:55.000Z
manuscript/link_checker.py
wuyang1002431655/tango_with_django_19
42d5878e4a12037daf04d785826357cd4351a16d
[ "Apache-2.0" ]
57
2016-03-29T22:12:09.000Z
2019-08-26T07:50:11.000Z
manuscript/link_checker.py
wuyang1002431655/tango_with_django_19
42d5878e4a12037daf04d785826357cd4351a16d
[ "Apache-2.0" ]
311
2016-04-27T04:41:02.000Z
2021-09-19T14:03:35.000Z
# Checks for broken links in the book chapters, printing the status of each link found to stdout. # The Python package 'requests' must be installed and available for this simple module to work. # Author: David Maxwell # Date: 2017-02-14 import re import requests def main(chapters_list_filename, hide_success=True): ""...
28.369231
103
0.645879
256
1,844
4.496094
0.441406
0.069505
0.034752
0.03649
0
0
0
0
0
0
0
0.023571
0.240781
1,844
65
104
28.369231
0.798571
0.170824
0
0.125
0
0
0.13836
0.096633
0
0
0
0
0
0
null
null
0
0.05
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7c67194eb5ab82333266efd8ffcbf64d199afeff
637
py
Python
Luke 02/02.py
Nilzone-/Knowit-Julekalender-2017
66ef8a651277e0fef7d9278f3f129410b5b98ee0
[ "MIT" ]
null
null
null
Luke 02/02.py
Nilzone-/Knowit-Julekalender-2017
66ef8a651277e0fef7d9278f3f129410b5b98ee0
[ "MIT" ]
null
null
null
Luke 02/02.py
Nilzone-/Knowit-Julekalender-2017
66ef8a651277e0fef7d9278f3f129410b5b98ee0
[ "MIT" ]
null
null
null
import numpy as np size = 1000 def create_wall(x, y): return "{0:b}".format(x**3 + 12*x*y + 5*x*y**2).count("1") & 1 def build_grid(): return np.array([create_wall(j+1, i+1) for i in range(size) for j in range(size)]).reshape(size, size) def visit(grid, x=0, y=0): if grid[x][y]: return grid[x][y] = 1 ...
20.548387
104
0.620094
133
637
2.932331
0.308271
0.035897
0.128205
0.053846
0.187179
0.071795
0
0
0
0
0
0.050193
0.186813
637
31
105
20.548387
0.702703
0
0
0.095238
0
0
0.106583
0
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.238095
0
0
0
null
0
0
0
0
0
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
7c6b5cb13f50ba4f535dc82987b58898ad693a5f
5,966
py
Python
data/external/repositories/42139/KDDCup13Track2-master/blocking.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/42139/KDDCup13Track2-master/blocking.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories/42139/KDDCup13Track2-master/blocking.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
#!/usr/bin/env python from common import * import csv import argparse from unidecode import unidecode from nameparser import constants as npc from collections import defaultdict import cPickle as pickle import re stopwords_custom = set(['document', 'preparation', 'system', 'consortium', 'committee', 'international', '...
29.979899
703
0.632417
936
5,966
3.930556
0.192308
0.014134
0.030443
0.074205
0.563468
0.555858
0.555858
0.537374
0.537374
0.522153
0
0.029124
0.177003
5,966
199
704
29.9799
0.720163
0.016929
0
0.58642
0
0
0.15714
0.005289
0
0
0
0
0
0
null
null
0
0.049383
null
null
0.092593
0
0
0
null
0
0
0
0
0
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
7c7633cae0980db6c9c40b9c34972bdb7f5c0282
7,139
py
Python
Detect.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
2
2017-10-17T10:08:25.000Z
2017-10-17T11:17:39.000Z
Detect.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
null
null
null
Detect.py
SymenYang/Vanish-Point-Detect
0e83e2b2a86e9523ed4a86f592f3a8dee594d691
[ "MIT" ]
null
null
null
import cv2 as cv import numpy as np import copy import math import Edges import INTPoint eps = 1e-7 votes = {} Groups = [] VPoints = [] Centers = [] Cluster = [] voters = {} def getEdges(image): #moved to Edges.py return Edges.getEdges(image) def getLines(edges): #moved to Edges.py return Edges.getLin...
26.838346
157
0.559462
979
7,139
4.078652
0.162411
0.030053
0.033058
0.038567
0.314801
0.261207
0.184323
0.118708
0.089657
0.089657
0
0.049771
0.2964
7,139
266
158
26.838346
0.745172
0.057851
0
0.237209
0
0
0.011481
0
0
0
0
0
0
0
null
null
0
0.027907
null
null
0.004651
0
0
0
null
0
0
0
0
0
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
7c85f2097ce6518402e3aa24b38cc365cc5ffeaa
4,981
py
Python
Whats Cooking/KaggleCookingComparison.py
rupakc/Kaggle-Compendium
61634ba742f9a0239f2d1e45973c4bb477ac6306
[ "MIT" ]
17
2018-01-11T05:49:06.000Z
2021-08-22T16:50:10.000Z
Whats Cooking/KaggleCookingComparison.py
Tuanlase02874/Machine-Learning-Kaggle
c31651acd8f2407d8b60774e843a2527ce19b013
[ "MIT" ]
null
null
null
Whats Cooking/KaggleCookingComparison.py
Tuanlase02874/Machine-Learning-Kaggle
c31651acd8f2407d8b60774e843a2527ce19b013
[ "MIT" ]
8
2017-11-27T06:58:50.000Z
2021-08-22T16:50:13.000Z
# -*- coding: utf-8 -*- """ Created on Sat Dec 26 13:20:45 2015 Code for Kaggle What's Cooking Competition It uses the following classifiers with tf-idf,hashvectors and bag_of_words approach 1. Adaboost 2. Extratrees 3. Bagging 4. Random Forests @author: Rupak Chakraborty """ import numpy as np import time import json...
32.344156
90
0.739611
635
4,981
5.607874
0.233071
0.019657
0.038753
0.028082
0.251896
0.155013
0.074136
0.038192
0
0
0
0.012103
0.153985
4,981
153
91
32.555556
0.832938
0.024493
0
0.183486
0
0
0.171447
0.009778
0
0
0
0
0
0
null
null
0
0.110092
null
null
0.174312
0
0
0
null
0
0
0
0
0
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
7c98495a22a6d3d8755497c989624d8a5c427192
60,943
py
Python
elastalert/alerts.py
dekhrekh/elastalert
0c1ce30302c575bd0be404582cd452f38c01c774
[ "Apache-2.0" ]
null
null
null
elastalert/alerts.py
dekhrekh/elastalert
0c1ce30302c575bd0be404582cd452f38c01c774
[ "Apache-2.0" ]
null
null
null
elastalert/alerts.py
dekhrekh/elastalert
0c1ce30302c575bd0be404582cd452f38c01c774
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import copy import datetime import json import logging import subprocess import sys import warnings from email.mime.text import MIMEText from email.utils import formatdate from smtplib import SMTP from smtplib import SMTP_SSL from smtplib import SMTPAuthenticationError from smtplib import SMTPEx...
44.289971
137
0.607814
7,440
60,943
4.771371
0.104301
0.05048
0.026959
0.006704
0.427646
0.314544
0.252373
0.207583
0.181695
0.173526
0
0.002861
0.283101
60,943
1,375
138
44.322182
0.809613
0.093514
0
0.245411
0
0.000966
0.15868
0.024326
0
0
0
0
0
0
null
null
0.011594
0.029952
null
null
0.002899
0
0
0
null
0
0
0
0
0
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
7cb439e7ed9a5e950d6cf894c40e5a62043d06e9
5,183
py
Python
vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/translate-toolkit/translate/convert/test_po2tmx.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from translate.convert import po2tmx from translate.convert import test_convert from translate.misc import wStringIO from translate.storage import tmx from translate.storage import lisa class TestPO2TMX: def po2tmx(self, posource, sourcelanguage='en', targetlanguage=...
33.43871
128
0.641134
636
5,183
5.198113
0.349057
0.019964
0.03539
0.051724
0.22686
0.185723
0.176951
0.176951
0.156987
0.156987
0
0.015672
0.224387
5,183
154
129
33.655844
0.806716
0.017557
0
0.289256
0
0.016529
0.349851
0.045087
0
0
0
0
0.157025
0
null
null
0.016529
0.041322
null
null
0.140496
0
0
0
null
0
0
0
0
0
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
7cbe3198f6071ec0d541441f81f18f624a937b6f
5,044
py
Python
t2k/bin/cmttags.py
tianluyuan/pyutils
2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50
[ "MIT" ]
1
2019-02-22T10:57:13.000Z
2019-02-22T10:57:13.000Z
t2k/bin/cmttags.py
tianluyuan/pyutils
2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50
[ "MIT" ]
null
null
null
t2k/bin/cmttags.py
tianluyuan/pyutils
2cd3a90dbbd3d0eec3054fb9493ca0f6e0272e50
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A script to create tags for CMT managed packages. Call from within cmt/ directory """ import subprocess import sys import os from optparse import OptionParser __author__ = 'Tianlu Yuan' __email__ = 'tianlu.yuan [at] colorado.edu' # Ignore large external packages for now IGNORES = ['CMT', ...
28.822857
80
0.585052
639
5,044
4.482003
0.353678
0.039106
0.024441
0.030726
0.076466
0.050628
0.039804
0.039804
0
0
0
0.003606
0.285289
5,044
174
81
28.988506
0.790846
0.126289
0
0.086022
0
0
0.136083
0
0
0
0
0
0
0
null
null
0
0.043011
null
null
0.021505
0
0
0
null
0
0
0
0
0
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
7cbea5a7d278dcb466c16a1d3e035b7e14f3c77c
63,630
py
Python
salt/daemons/masterapi.py
rickh563/salt
02822d6466c47d0daafd6e98b4e767a396b0ed48
[ "Apache-2.0" ]
null
null
null
salt/daemons/masterapi.py
rickh563/salt
02822d6466c47d0daafd6e98b4e767a396b0ed48
[ "Apache-2.0" ]
null
null
null
salt/daemons/masterapi.py
rickh563/salt
02822d6466c47d0daafd6e98b4e767a396b0ed48
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' This module contains all of the routines needed to set up a master server, this involves preparing the three listeners and the workers needed by the master. ''' from __future__ import absolute_import # Import python libs import fnmatch import logging import os import re import time import s...
39.253547
173
0.49604
6,893
63,630
4.476861
0.098796
0.036553
0.027577
0.032373
0.547879
0.500891
0.476717
0.438413
0.407499
0.389643
0
0.002932
0.394232
63,630
1,620
174
39.277778
0.797665
0.055603
0
0.510989
0
0
0.154149
0.010159
0
0
0
0.000617
0
0
null
null
0.002355
0.027473
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
7cd4c163b81a2a9f7a9f4fb51454b97b7933bffd
1,565
py
Python
dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
dwh_analytic/dags/data_warehouse_prod/schema/dim_process.py
dnguyenngoc/analytic
d609a93e96e7c546ad3ee3ebd4e13309ddf575f8
[ "MIT" ]
null
null
null
resource ='human ad machime' class DimProcess: def __init__( self, *kwargs, process_key: int, module: str, type: str, step: str, sub_step: str, resource: str = 'human', ): def step(self): return ['qc', 'auto_qc', 'apr_qc', 'ke...
27.946429
62
0.548882
173
1,565
4.572254
0.271676
0.136536
0.030341
0.072061
0
0
0
0
0
0
0
0.001988
0.357189
1,565
56
62
27.946429
0.784294
0
0
0.269231
0
0
0.104725
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7cd6ff8a4443655a42df05eccf62b0e804763fb0
2,898
py
Python
service.py
Tigge/script.filmtipset-grade
a5b438dc478d6ef40f611585e9cd196c2ff49cf6
[ "BSD-2-Clause" ]
1
2015-02-19T08:45:57.000Z
2015-02-19T08:45:57.000Z
service.py
Tigge/script.filmtipset-grade
a5b438dc478d6ef40f611585e9cd196c2ff49cf6
[ "BSD-2-Clause" ]
1
2015-02-01T19:28:17.000Z
2015-03-18T22:27:14.000Z
service.py
Tigge/script.filmtipset-grade
a5b438dc478d6ef40f611585e9cd196c2ff49cf6
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2013, Gustav Tiger # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and th...
34.094118
82
0.670807
352
2,898
5.485795
0.463068
0.024858
0.020197
0.023822
0.095287
0.07043
0.07043
0.07043
0.07043
0.07043
0
0.00866
0.242926
2,898
84
83
34.5
0.871468
0.446515
0
0.046512
0
0
0.080482
0.028517
0
0
0
0
0
0
null
null
0
0.093023
null
null
0.139535
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ce16cb7ee2c1e090289468a70fd88401aba8ddc
339
py
Python
examples/xml-rpc/echoserver.py
keobox/yap101
26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9
[ "MIT" ]
null
null
null
examples/xml-rpc/echoserver.py
keobox/yap101
26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9
[ "MIT" ]
null
null
null
examples/xml-rpc/echoserver.py
keobox/yap101
26913da9f61ef3d0d9cb3ef54bbfc451a9ef9de9
[ "MIT" ]
null
null
null
import SimpleXMLRPCServer as xmls def echo(msg): print 'Got', msg return msg class echoserver(xmls.SimpleXMLRPCServer): allow_reuse_address = True server = echoserver(('127.0.0.1', 8001)) server.register_function(echo, 'echo') print 'Listening on port 8001' try: server.serve_forever() except: ser...
19.941176
42
0.728614
45
339
5.377778
0.688889
0
0
0
0
0
0
0
0
0
0
0.049123
0.159292
339
16
43
21.1875
0.8
0
0
0
0
0
0.112094
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.153846
0
0
0
null
0
0
0
0
0
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
7ce32e38118a236e7f22400e28b670e7f2079e82
869
py
Python
practice/2008/qualification/C-Fly_swatter/c.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
practice/2008/qualification/C-Fly_swatter/c.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
practice/2008/qualification/C-Fly_swatter/c.py
victorWeiFreelancer/CodeJam
edb8f921860a35985823cb3dbd3ebec8a8f3c12f
[ "MIT" ]
null
null
null
import sys sys.dont_write_bytecode = True def hitP(f, R, t, r, g): if f>=g/2 : return 0.0 missArea = 0.0 gridL = g+2*r nGrids = (R - t) // gridL missGridSideLength = g - 2*f print("gridL %.12f; nGrids %d" %(gridL, nGrids) ) indentSquareLength = nGrids*gridL remain = (R - t) - in...
25.558824
69
0.537399
127
869
3.598425
0.393701
0.030635
0.019694
0.026258
0.050328
0.039387
0
0
0
0
0
0.040519
0.289988
869
34
70
25.558824
0.700162
0
0
0
0
0
0.087356
0
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.111111
0
0
0
null
0
0
0
0
0
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
7cec971c07d5ed98dc62f84b80e44472db92d7d3
531
py
Python
Uber/validExpression.py
Nithanaroy/random_scripts
908e539e2b7050a09e03b4fc0d2621b23733d65a
[ "MIT" ]
null
null
null
Uber/validExpression.py
Nithanaroy/random_scripts
908e539e2b7050a09e03b4fc0d2621b23733d65a
[ "MIT" ]
null
null
null
Uber/validExpression.py
Nithanaroy/random_scripts
908e539e2b7050a09e03b4fc0d2621b23733d65a
[ "MIT" ]
null
null
null
def main(expr): openingParams = '({[' closingParams = ')}]' stack = [] for c in expr: if c in openingParams: stack.append(c) elif c in closingParams: topOfStack = stack.pop() openingIndex = openingParams.find(topOfStack) closingIndex = clos...
25.285714
57
0.551789
53
531
5.377358
0.509434
0.031579
0.091228
0
0
0
0
0
0
0
0
0.002874
0.344633
531
20
58
26.55
0.816092
0
0
0.111111
0
0
0.039548
0
0
0
0
0
0
0
null
null
0
0
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6b052c373e2583931e7668595c831adfd5fed432
491
py
Python
read_sensor.py
shivupoojar/openfaas-pi
5eda501368a1ac321954cb2aaf58be617977bd58
[ "Apache-2.0" ]
1
2020-11-24T03:31:26.000Z
2020-11-24T03:31:26.000Z
read_sensor.py
shivupoojar/openfaas-pi
5eda501368a1ac321954cb2aaf58be617977bd58
[ "Apache-2.0" ]
null
null
null
read_sensor.py
shivupoojar/openfaas-pi
5eda501368a1ac321954cb2aaf58be617977bd58
[ "Apache-2.0" ]
null
null
null
import requests from sense_hat import SenseHat import smbus import time while True: try: pressure=0 sense = SenseHat() pressure = sense.get_pressure() data = {'pressure':pressure} print(pressure) #send http request to sense serverless function with pressure #data r=req...
21.347826
69
0.672098
63
491
5.190476
0.571429
0.079511
0
0
0
0
0
0
0
0
0
0.028947
0.226069
491
22
70
22.318182
0.831579
0.130346
0
0.117647
0
0
0.105882
0
0
0
0
0
0
0
null
null
0
0.235294
null
null
0.117647
0
0
0
null
0
0
0
0
0
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
6b2b5f9728064d787e0b3474fa79a57d993dda3b
594
py
Python
main.py
Meat0Project/ChatBot
35ebadc71b100d861f9c9e211e1e751175f47c50
[ "MIT" ]
4
2020-10-30T07:46:39.000Z
2020-10-30T18:20:57.000Z
main.py
Meat0Project/ChatBot
35ebadc71b100d861f9c9e211e1e751175f47c50
[ "MIT" ]
null
null
null
main.py
Meat0Project/ChatBot
35ebadc71b100d861f9c9e211e1e751175f47c50
[ "MIT" ]
null
null
null
''' Made by - Aditya mangal Purpose - Python mini project Date - 18 october 2020 ''' from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer form termcolor import cprint import time chatbot = ChatBot('Bot') trainer = ChatterBotCorpusTrainer(chatbot) trainer.train('chatterbot.corpus.eng...
22.846154
55
0.69697
74
594
5.581081
0.662162
0.067797
0.072639
0
0
0
0
0
0
0
0
0.024341
0.170034
594
25
56
23.76
0.813387
0
0
0.117647
0
0
0.182711
0.049116
0
0
0
0
0
0
null
null
0
0.235294
null
null
0.352941
0
0
0
null
0
0
0
0
0
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
860b82a531bcd228b8d28c903681d9b70c4a8b49
2,793
py
Python
topology.py
destinysky/nsh_sfc
290fa49df2880527e0b7844bf3bec4d55c4945a6
[ "Apache-2.0" ]
2
2020-10-26T17:22:04.000Z
2020-11-11T13:19:08.000Z
topology.py
destinysky/nsh_sfc
290fa49df2880527e0b7844bf3bec4d55c4945a6
[ "Apache-2.0" ]
null
null
null
topology.py
destinysky/nsh_sfc
290fa49df2880527e0b7844bf3bec4d55c4945a6
[ "Apache-2.0" ]
3
2020-03-28T12:53:35.000Z
2021-06-29T18:13:43.000Z
#!/usr/bin/python """ """ from mininet.net import Mininet from mininet.node import Controller, RemoteController, OVSKernelSwitch,UserSwitch #OVSLegacyKernelSwitch, UserSwitch from mininet.cli import CLI from mininet.log import setLogLevel from mininet.link import Link, TCLink #conf_port=50000 conf_ip_1='10.0.0.254'...
30.358696
90
0.617257
474
2,793
3.535865
0.219409
0.047733
0.053699
0.047733
0.25358
0.25358
0.214797
0.214797
0.074582
0
0
0.125
0.192266
2,793
92
91
30.358696
0.617908
0.022914
0
0
0
0
0.304412
0.038603
0
0
0
0
0
0
null
null
0
0.074627
null
null
0.074627
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
862625f0bd5d6882a14a812018126e427778e14a
11,603
py
Python
build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py
mkubux/egenix-mx-base
3e6f9186334d9d73743b0219ae857564c7208247
[ "eGenix" ]
null
null
null
build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py
mkubux/egenix-mx-base
3e6f9186334d9d73743b0219ae857564c7208247
[ "eGenix" ]
null
null
null
build/lib.linux-x86_64-2.7_ucs4/mx/Misc/PackageTools.py
mkubux/egenix-mx-base
3e6f9186334d9d73743b0219ae857564c7208247
[ "eGenix" ]
null
null
null
""" PackageTools - A set of tools to aid working with packages. Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2015, eGenix.com Software GmbH; mailto:info@egenix.com See the documentation for further information on copyrights, or contact the author. All Rights Re...
35.375
82
0.613031
1,395
11,603
4.967025
0.21147
0.008659
0.011257
0.012989
0.340597
0.311156
0.297878
0.290807
0.254438
0.233223
0
0.00666
0.314143
11,603
327
83
35.48318
0.864036
0.026976
0
0.242038
0
0
0.018765
0
0
0
0
0
0
0
null
null
0.006369
0.057325
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
8630b3c80464d13f544a914873b82ed141f94bf1
9,098
py
Python
qstklearn/1knn.py
elxavicio/QSTK
4981506c37227a72404229d5e1e0887f797a5d57
[ "BSD-3-Clause" ]
339
2015-01-01T10:06:49.000Z
2022-03-23T23:32:24.000Z
QSTK/qstklearn/1knn.py
jenniyanjie/QuantSoftwareToolkit
0eb2c7a776c259a087fdcac1d3ff883eb0b5516c
[ "BSD-3-Clause" ]
19
2015-01-04T13:12:33.000Z
2021-07-19T11:13:47.000Z
QSTK/qstklearn/1knn.py
jenniyanjie/QuantSoftwareToolkit
0eb2c7a776c259a087fdcac1d3ff883eb0b5516c
[ "BSD-3-Clause" ]
154
2015-01-30T09:41:15.000Z
2022-03-19T02:27:59.000Z
''' (c) 2011, 2012 Georgia Tech Research Corporation This source code is released under the New BSD license. Please see http://wiki.quantsoftware.org/index.php?title=QSTK_License for license details. Created on Feb 20, 2011 @author: John Cornwell @organization: Georgia Institute of Technology @contact: JohnW...
31.811189
112
0.523522
1,069
9,098
4.434051
0.282507
0.008017
0.022785
0.021519
0.277004
0.228481
0.203587
0.197468
0.197468
0.165823
0
0.056915
0.339525
9,098
285
113
31.922807
0.731902
0.029677
0
0.189189
0
0
0.041518
0
0
0
0
0
0
0
null
null
0
0.054054
null
null
0.013514
0
0
0
null
0
0
0
0
0
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
86609708c6740fc5dcff69f746034012abb3d227
1,112
py
Python
01_basics/01_building_expressions/02_vector_mat_soln.py
johny-c/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
711
2015-01-10T05:39:21.000Z
2022-03-15T23:45:45.000Z
01_basics/01_building_expressions/02_vector_mat_soln.py
rsingh2083/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
2
2016-06-13T06:46:58.000Z
2017-04-14T08:21:20.000Z
01_basics/01_building_expressions/02_vector_mat_soln.py
rsingh2083/theano_exercises
7fd43315bf7c475a6f218091316c0bd34e0688c4
[ "BSD-3-Clause" ]
371
2015-01-16T01:31:41.000Z
2022-03-15T11:37:30.000Z
import numpy as np from theano import function import theano.tensor as T def make_vector(): """ Returns a new Theano vector. """ return T.vector() def make_matrix(): """ Returns a new Theano matrix. """ return T.matrix() def elemwise_mul(a, b): """ a: A theano matrix b: ...
19.508772
48
0.607014
176
1,112
3.664773
0.289773
0.018605
0.023256
0.052713
0.20155
0.20155
0.083721
0.083721
0.083721
0.083721
0
0.008589
0.267086
1,112
56
49
19.857143
0.782822
0
0
0
0
0
0.019656
0
0
0
0
0
0.037037
0
null
null
0
0.111111
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
8671b6a372caa3589eb77dcc566a9b3713aa80a9
6,499
py
Python
genlist.py
truckli/technotes
11d3cc0a1bd33141a22eaa2247cac1be1d74718a
[ "Apache-2.0" ]
null
null
null
genlist.py
truckli/technotes
11d3cc0a1bd33141a22eaa2247cac1be1d74718a
[ "Apache-2.0" ]
null
null
null
genlist.py
truckli/technotes
11d3cc0a1bd33141a22eaa2247cac1be1d74718a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import shutil, re, os, sys file_model = "Model.template" bookname = "TechNotes" file_bibtex = "thebib.bib" folder_target = "../pdf/" #if name is a chapter, return its sections def get_sections(name): if not os.path.isdir(name): return [] files = os.listdir(name) sections = ...
27.892704
82
0.610248
810
6,499
4.687654
0.201235
0.047406
0.046352
0.023703
0.1596
0.053463
0.029497
0.018436
0.018436
0
0
0.003137
0.264348
6,499
232
83
28.012931
0.791048
0.142791
0
0.135484
0
0
0.088342
0.017304
0
0
0
0
0
0
null
null
0
0.006452
null
null
0.025806
0
0
0
null
0
0
0
0
0
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
8674487bc14ab6d974246602ccaa1b9927159028
4,724
py
Python
rr_ml/nodes/end_to_end/train.py
ebretl/roboracing-software
8803c97a885500069d04e70894b19f807ae5baf9
[ "MIT" ]
null
null
null
rr_ml/nodes/end_to_end/train.py
ebretl/roboracing-software
8803c97a885500069d04e70894b19f807ae5baf9
[ "MIT" ]
null
null
null
rr_ml/nodes/end_to_end/train.py
ebretl/roboracing-software
8803c97a885500069d04e70894b19f807ae5baf9
[ "MIT" ]
null
null
null
import os import math import string import numpy as np import rospy import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D, \ GaussianNoise, BatchNormalization import cv2 import collections import random import time from example_s...
33.503546
94
0.622777
583
4,724
4.919383
0.319039
0.030683
0.018131
0.01569
0.108787
0.08159
0.08159
0.032775
0.032775
0
0
0.022932
0.270745
4,724
140
95
33.742857
0.809579
0.028154
0
0
0
0
0.054101
0.006108
0
0
0
0
0
0
null
null
0
0.130841
null
null
0.046729
0
0
0
null
0
0
0
0
0
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
86864787ee128fda8f0e696df8fc12952938543c
4,356
py
Python
run_mod.py
fpl-analytics/gr_crypto
2b0ab451c9c205a9f572c4bca23fffbb68ca188f
[ "MIT" ]
null
null
null
run_mod.py
fpl-analytics/gr_crypto
2b0ab451c9c205a9f572c4bca23fffbb68ca188f
[ "MIT" ]
null
null
null
run_mod.py
fpl-analytics/gr_crypto
2b0ab451c9c205a9f572c4bca23fffbb68ca188f
[ "MIT" ]
null
null
null
""" Setup: - Import Libraries - Setup tf on multiple cores - Import Data """ import pandas as pd import numpy as np import tensorflow as tf import seaborn as sns from time import time import multiprocessing import random import os from tensorflow.keras.models import Sequential from tensorflow.keras.layer...
25.623529
93
0.677456
657
4,356
4.266362
0.252664
0.048163
0.024973
0.028541
0.358188
0.34142
0.330717
0.271495
0.271495
0.261149
0
0.022166
0.181818
4,356
169
94
25.775148
0.76431
0.025941
0
0.186047
0
0
0.093323
0.05122
0
0
0
0
0
0
null
null
0
0.197674
null
null
0.05814
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
86a7a933257c5b58ca131b6e09db3e5af93d5f4e
19,069
py
Python
netesto/local/psPlot.py
fakeNetflix/facebook-repo-fbkutils
16ec0c024322c163e7dbe691812ba8fdf5b511ad
[ "BSD-3-Clause" ]
346
2016-04-08T17:04:29.000Z
2021-09-30T06:05:47.000Z
netesto/local/psPlot.py
fakeNetflix/facebook-repo-fbkutils
16ec0c024322c163e7dbe691812ba8fdf5b511ad
[ "BSD-3-Clause" ]
38
2016-04-26T14:58:17.000Z
2021-10-07T20:43:39.000Z
netesto/local/psPlot.py
fakeNetflix/facebook-repo-fbkutils
16ec0c024322c163e7dbe691812ba8fdf5b511ad
[ "BSD-3-Clause" ]
76
2016-04-08T17:59:23.000Z
2021-09-05T13:18:27.000Z
#!/usr/bin/env python2 import sys import random import os.path import shutil import commands import types import math #gsPath = '/usr/local/bin/gs' gsPath = 'gs' logFile = '/dev/null' #logFile = 'plot.log' #--- class PsPlot(fname, pageHeader, pageSubHeader, plotsPerPage) # class PsPlot(object): def __init__(self...
31.260656
147
0.457968
2,295
19,069
3.798693
0.156427
0.070658
0.099908
0.0195
0.254416
0.193164
0.161849
0.146708
0.133861
0.129158
0
0.054708
0.391316
19,069
609
148
31.311987
0.69639
0.063873
0
0.280079
0
0
0.090128
0
0
0
0
0
0
0
null
null
0
0.013807
null
null
0.149901
0
0
0
null
0
0
0
0
0
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
86d75f7e9a302f49289d9be8498b550dc47650fa
79,634
py
Python
private/templates/NYC/config.py
devinbalkind/eden
d5a684eae537432eb2c7d954132484a4714ca8fb
[ "MIT" ]
null
null
null
private/templates/NYC/config.py
devinbalkind/eden
d5a684eae537432eb2c7d954132484a4714ca8fb
[ "MIT" ]
null
null
null
private/templates/NYC/config.py
devinbalkind/eden
d5a684eae537432eb2c7d954132484a4714ca8fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- try: # Python 2.7 from collections import OrderedDict except: # Python 2.6 from gluon.contrib.simplejson.ordered_dict import OrderedDict from gluon import current from gluon.html import A, URL from gluon.storage import Storage from s3 import s3_fullname T = current.T settings...
39.422772
187
0.470226
6,895
79,634
5.26454
0.130384
0.00843
0.011984
0.012783
0.393427
0.319761
0.283727
0.267941
0.245544
0.22907
0
0.009749
0.422922
79,634
2,019
188
39.442298
0.780133
0.206733
0
0.538405
0
0.000732
0.087764
0.012475
0
0
0
0.002972
0
0
null
null
0
0.037308
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
86d90c0ca6a5dbc266bca705498a4a9e3c8d3aac
721
py
Python
chroma-manager/tests/utils/__init__.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
chroma-manager/tests/utils/__init__.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
chroma-manager/tests/utils/__init__.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
import time import datetime import contextlib @contextlib.contextmanager def patch(obj, **attrs): "Monkey patch an object's attributes, restoring them after the block." stored = {} for name in attrs: stored[name] = getattr(obj, name) setattr(obj, name, attrs[name]) try: yield ...
24.033333
74
0.629681
86
721
5.27907
0.488372
0.046256
0.118943
0
0
0
0
0
0
0
0
0.001905
0.271845
721
29
75
24.862069
0.862857
0
0
0.32
0
0
0.174757
0
0
0
0
0
0
0
null
null
0
0.12
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
86dd7f5030a8b0c0b8c5d1166bbac51638b7d539
25,946
py
Python
opaflib/xmlast.py
feliam/opaf
f9908c26af1bf28cc29f3d647dcd9f55d631d732
[ "MIT" ]
2
2019-11-23T14:46:35.000Z
2022-01-21T16:09:47.000Z
opaflib/xmlast.py
feliam/opaf
f9908c26af1bf28cc29f3d647dcd9f55d631d732
[ "MIT" ]
null
null
null
opaflib/xmlast.py
feliam/opaf
f9908c26af1bf28cc29f3d647dcd9f55d631d732
[ "MIT" ]
1
2019-09-06T21:04:39.000Z
2019-09-06T21:04:39.000Z
from lxml import etree from opaflib.filters import defilterData #Logging facility import logging,code logger = logging.getLogger("OPAFXML") class PDFXML(etree.ElementBase): ''' Base pdf-xml class. Every pdf token xml representation will have a span wich indicates where the original token layed in the file...
37.332374
172
0.582248
3,230
25,946
4.57678
0.141486
0.015558
0.010417
0.014206
0.342826
0.282081
0.235406
0.207536
0.178584
0.154908
0
0.012456
0.279041
25,946
694
173
37.386167
0.777825
0.04413
0
0.206287
0
0.009823
0.13935
0.029108
0
0
0.00258
0.001441
0.060904
0
null
null
0.017682
0.017682
null
null
0.039293
0
0
0
null
0
0
0
0
0
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
86f0c522be62919400b4d5f2f8a78d4b4a38dcb9
399
py
Python
scripts/make_gene_table.py
lmdu/bioinfo
4542b0718410d15f3956c6545d9824a16608e02b
[ "MIT" ]
null
null
null
scripts/make_gene_table.py
lmdu/bioinfo
4542b0718410d15f3956c6545d9824a16608e02b
[ "MIT" ]
null
null
null
scripts/make_gene_table.py
lmdu/bioinfo
4542b0718410d15f3956c6545d9824a16608e02b
[ "MIT" ]
null
null
null
#!/usr/bin/env python descripts = {} with open('macaca_genes.txt') as fh: fh.readline() for line in fh: cols = line.strip('\n').split('\t') if cols[1]: descripts[cols[0]] = cols[1].split('[')[0].strip() else: descripts[cols[0]] = cols[1] with open('gene_info.txt') as fh: for line in fh: cols = line....
19.95
53
0.611529
66
399
3.666667
0.454545
0.082645
0.057851
0.090909
0.355372
0.198347
0.198347
0
0
0
0
0.020958
0.162907
399
19
54
21
0.703593
0.050125
0
0.142857
0
0
0.100529
0
0
0
0
0
0
0
null
null
0
0
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
86f7b299e6e411fb0020928642f34720d9448cf2
301
py
Python
python_for_everybody/py2_p4i_old/6.5findslicestringextract.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
null
null
null
python_for_everybody/py2_p4i_old/6.5findslicestringextract.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
null
null
null
python_for_everybody/py2_p4i_old/6.5findslicestringextract.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
1
2020-04-18T16:09:04.000Z
2020-04-18T16:09:04.000Z
# 6.5 Write code using find() and string slicing (see section 6.10) to extract # the number at the end of the line below. # Convert the extracted value to a floating point number and print it out. text = "X-DSPAM-Confidence: 0.8475"; pos = text.find(':') text = float(text[pos+1:]) print text
27.363636
79
0.697674
53
301
3.962264
0.735849
0
0
0
0
0
0
0
0
0
0
0.045267
0.192691
301
11
80
27.363636
0.81893
0.637874
0
0
0
0
0.283019
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
0
0
0
null
0
0
0
0
0
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
8101825b7fae5806f4a1d2d670c101bc508918db
5,681
py
Python
modules/documents.py
rotsee/protokollen
a001a1db86df57adcf5c53c95c4c2fae426340f1
[ "MIT", "Apache-2.0", "CC0-1.0", "Unlicense" ]
4
2015-03-22T20:23:36.000Z
2015-12-09T14:31:34.000Z
modules/documents.py
rotsee/protokollen
a001a1db86df57adcf5c53c95c4c2fae426340f1
[ "MIT", "Apache-2.0", "CC0-1.0", "Unlicense" ]
4
2015-03-24T10:42:00.000Z
2016-06-21T08:44:01.000Z
modules/documents.py
rotsee/protokollen
a001a1db86df57adcf5c53c95c4c2fae426340f1
[ "MIT", "Apache-2.0", "CC0-1.0", "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """This module contains classes for documents, and lists of documents. Documents are defined by the document rules in settings.py A file can contain one or more document. However, a document can not be constructed from more than one file. This is a limitation, obvious in cases like ...
33.417647
80
0.582996
686
5,681
4.603499
0.246356
0.019949
0.018999
0.026916
0.141862
0.096897
0.065231
0.051298
0.051298
0.027866
0
0.003908
0.324415
5,681
169
81
33.615385
0.818916
0.037141
0
0.149533
0
0
0.041942
0
0
0
0
0
0
0
null
null
0.009346
0.037383
null
null
0.009346
0
0
0
null
0
0
0
0
0
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
811898bc6c0124ca8489662af03fc5f7195a1876
5,191
py
Python
octopart/scrape_octopart.py
nicholaschiang/dl-datasheets
1c5ab2545a85c1ea7643fc655005259544617d90
[ "MIT" ]
null
null
null
octopart/scrape_octopart.py
nicholaschiang/dl-datasheets
1c5ab2545a85c1ea7643fc655005259544617d90
[ "MIT" ]
null
null
null
octopart/scrape_octopart.py
nicholaschiang/dl-datasheets
1c5ab2545a85c1ea7643fc655005259544617d90
[ "MIT" ]
1
2019-12-07T20:13:06.000Z
2019-12-07T20:13:06.000Z
#! /usr/bin/env python import sys import json import urllib import urllib2 import time import argparse import re # Category ID for Discrete Semiconductors > Transistors > BJTs TRANSISTOR_ID = b814751e89ff63d3 def find_total_hits(search_query): """ Function: find_total_hits -------------------- Return...
38.169118
97
0.571374
569
5,191
5.115993
0.363796
0.034009
0.019237
0.013054
0.231536
0.176572
0.138097
0.138097
0.138097
0.138097
0
0.014171
0.306685
5,191
135
98
38.451852
0.794665
0.199961
0
0.204545
0
0
0.191288
0
0
0
0
0
0
0
null
null
0
0.079545
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
811ce2660d66f66cb91158b2b6a72ae00e0a02c5
3,904
py
Python
multidoc_mnb.py
dropofwill/author-attr-experiments
a90e2743591358a6253f3b3664f5e398517f84bc
[ "Unlicense" ]
2
2015-01-06T12:53:39.000Z
2018-02-01T13:57:09.000Z
multidoc_mnb.py
dropofwill/author-attr-experiments
a90e2743591358a6253f3b3664f5e398517f84bc
[ "Unlicense" ]
null
null
null
multidoc_mnb.py
dropofwill/author-attr-experiments
a90e2743591358a6253f3b3664f5e398517f84bc
[ "Unlicense" ]
null
null
null
from sklearn import datasets from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.feature_extraction.text import CountVectorizer from sklearn.cross_validation import train_test_split from sklearn.cross_validation import cross_val_score from sklearn.cross_validation import ShuffleSplit from sklearn....
27.111111
175
0.733863
636
3,904
4.323899
0.319182
0.018182
0.022909
0.037818
0.159273
0.104727
0.042909
0.018909
0
0
0
0.017748
0.119621
3,904
144
176
27.111111
0.782368
0.157018
0
0.04
0
0
0.072816
0
0
0
0
0
0
0
null
null
0
0.226667
null
null
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
81338229b9f75f52ae6ffcf7ef860588b32f5b97
3,915
py
Python
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
Harpe-website/website/contrib/communication/utils.py
Krozark/Harpe-Website
1038a8550d08273806c9ec244cb8157ef9e9101e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import socket as csocket from struct import pack,unpack from website.contrib.communication.models import * def enum(**enums): return type('Enum', (), enums) class Socket: Dommaine = enum(IP=csocket.AF_INET,LOCAL=csocket.AF_UNIX) Type = enum(TCP=csocket.SOCK_STREAM, UDP=csocket.SOCK...
29.659091
110
0.527458
490
3,915
4.132653
0.283673
0.059259
0.014815
0.014815
0.059259
0.059259
0.059259
0.034568
0
0
0
0.016453
0.363474
3,915
131
111
29.885496
0.796148
0.203321
0
0.230769
0
0
0.055215
0
0
0
0
0
0
0
null
null
0
0.032967
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
81368cbcf7560067152788c0a732e279491b5a68
7,884
py
Python
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
pydeap/feature_extraction/_time_domain_features.py
Wlgls/pyDEAP
b7cec369cedd4a69ea82bc49a2fb8376260e4ad2
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @File :_time_domain_features.py @Time :2021/04/16 20:02:55 @Author :wlgls @Version :1.0 ''' import numpy as np def statistics(data, combined=True): """Statistical features, include Power, Mean, Std, 1st differece, Normalized 1st difference, 2nd difference, Nor...
29.977186
291
0.597793
1,240
7,884
3.712097
0.164516
0.027156
0.02607
0.05214
0.560721
0.544645
0.525092
0.511623
0.511623
0.504454
0
0.038592
0.250634
7,884
262
292
30.091603
0.740521
0.064688
0
0.189873
0
0
0
0
0
0
0
0
0
0
null
null
0
0.012658
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
8143df98ebce82100584c4d53ea2d04b4dccafa6
3,351
py
Python
experiments/rpi/gertboard/dtoa.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
experiments/rpi/gertboard/dtoa.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
1
2021-03-20T05:17:03.000Z
2021-03-20T05:17:03.000Z
experiments/rpi/gertboard/dtoa.py
willingc/pingo
0890bf5ed763e9061320093fc3fb5f7543c5cc2c
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 # Python 2.7 version by Alex Eames of http://RasPi.TV # functionally equivalent to the Gertboard dtoa test by Gert Jan van Loo & Myra VanInwegen # Use at your own risk - I'm pretty sure the code is harmless, but check it yourself. # This will not work unless you have installed py-spidev as in the ...
45.90411
110
0.664279
545
3,351
4.056881
0.46789
0.024876
0.04749
0.019901
0.150158
0.150158
0.150158
0.091361
0.091361
0.091361
0
0.063821
0.251865
3,351
72
111
46.541667
0.818109
0.411817
0
0.177778
0
0
0.341225
0
0
0
0
0
0
0
null
null
0
0.088889
null
null
0.288889
0
0
0
null
0
0
0
0
0
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
d4a0dbe903b46f2ac15b321d70b46c5431fada6b
4,932
py
Python
scripts/H5toXMF.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
scripts/H5toXMF.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
scripts/H5toXMF.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
#import numpy #import os #from xml.etree.ElementTree import * import tables #from Xdmf import * def H5toXMF(basename,size,start,finaltime,stride): # Open XMF files for step in range(start,finaltime+1,stride): XMFfile = open(basename+"."+str(step)+".xmf","w") XMFfile.write(r"""<?xml version="1.0...
42.153846
172
0.491484
507
4,932
4.753452
0.242604
0.144398
0.134855
0.092946
0.518257
0.417427
0.385892
0.372614
0.372614
0.258506
0
0.010098
0.317315
4,932
116
173
42.517241
0.705673
0.018045
0
0.166667
0
0.011905
0.336435
0.036601
0.202381
0
0
0
0
0
null
null
0
0.02381
null
null
0.011905
0
0
0
null
0
0
0
0
0
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
d4b1cf0c1cabef461b1902ca1dbcbf5165c73bc9
45,496
py
Python
rpython/memory/test/test_transformed_gc.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
1
2019-11-25T10:52:01.000Z
2019-11-25T10:52:01.000Z
rpython/memory/test/test_transformed_gc.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
null
null
null
rpython/memory/test/test_transformed_gc.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
null
null
null
import py import inspect from rpython.rlib.objectmodel import compute_hash, compute_identity_hash from rpython.translator.c import gc from rpython.annotator import model as annmodel from rpython.rtyper.llannotation import SomePtr from rpython.rtyper.lltypesystem import lltype, llmemory, rffi, llgroup from rpython.memo...
31.904628
93
0.512638
5,174
45,496
4.327406
0.123695
0.013444
0.020322
0.024297
0.429879
0.340107
0.302099
0.273828
0.256856
0.242296
0
0.027162
0.389858
45,496
1,425
94
31.927018
0.779423
0.058027
0
0.459504
0
0
0.041585
0.011524
0
0
0.000561
0
0.042975
0
null
null
0.015702
0.038843
null
null
0.001653
0
0
0
null
0
0
0
0
0
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
d4b5c94f17a9cee798f64b657926900668bb67f6
5,431
py
Python
classify_images.py
rmsare/cs231a-project
91776ada3512d3805de0e66940c9f1c5b3c4c641
[ "MIT" ]
2
2017-11-06T10:23:16.000Z
2019-11-09T15:11:19.000Z
classify_images.py
rmsare/cs231a-project
91776ada3512d3805de0e66940c9f1c5b3c4c641
[ "MIT" ]
null
null
null
classify_images.py
rmsare/cs231a-project
91776ada3512d3805de0e66940c9f1c5b3c4c641
[ "MIT" ]
null
null
null
""" Classification of pixels in images using color and other features. General pipeline usage: 1. Load and segment images (img_utils.py) 2. Prepare training data (label_image.py) 3. Train classifier or cluster data (sklearn KMeans, MeanShift, SVC, etc.) 4. Predict labels on new image or directory (classify_directory(...
30.857955
104
0.662861
712
5,431
4.933989
0.308989
0.025619
0.027896
0.039852
0.131512
0.047253
0.019357
0
0
0
0
0.01364
0.230528
5,431
175
105
31.034286
0.826992
0
0
0.120482
0
0
0.065334
0
0
0
0
0
0
0
null
null
0
0.108434
null
null
0.024096
0
0
0
null
0
0
0
0
0
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
d4cf41c3907f30d0f8d4b3c715caa3ef127581dc
5,353
py
Python
backend/services/apns_util.py
xuantan/viewfinder
992209086d01be0ef6506f325cf89b84d374f969
[ "Apache-2.0" ]
645
2015-01-03T02:03:59.000Z
2021-12-03T08:43:16.000Z
backend/services/apns_util.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
null
null
null
backend/services/apns_util.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
222
2015-01-07T05:00:52.000Z
2021-12-06T09:54:26.000Z
# -*- coding: utf-8 -*- # Copyright 2012 Viewfinder Inc. All Rights Reserved. """Apple Push Notification service utilities. Original copyright for this code: https://github.com/jayridge/apnstornado TokenToBinary(): converts a hex-encoded token into a binary value CreateMessage(): formats a binary APNs message fr...
34.75974
110
0.713992
759
5,353
4.968379
0.322793
0.021215
0.02864
0.015115
0.09467
0.052241
0.052241
0.041368
0.041368
0.041368
0
0.019155
0.190547
5,353
153
111
34.986928
0.85045
0.198767
0
0.022989
0
0
0.151417
0.007379
0
0
0
0
0.022989
0
null
null
0
0.057471
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
d4d48c8aa150de0f108ac0a0655e92b6976fd528
41,579
py
Python
megaboat.py
xros/megaboat
e55e7959c39677ad2a0cdbb00ac88814b838d3e3
[ "MIT" ]
4
2015-06-07T18:44:02.000Z
2021-04-03T02:53:01.000Z
megaboat.py
xros/megaboat
e55e7959c39677ad2a0cdbb00ac88814b838d3e3
[ "MIT" ]
null
null
null
megaboat.py
xros/megaboat
e55e7959c39677ad2a0cdbb00ac88814b838d3e3
[ "MIT" ]
2
2015-03-27T04:24:55.000Z
2016-06-26T11:02:47.000Z
# -*- coding: utf-8 -*- # Copyright to Alexander Liu. # Any distrubites of this copy should inform its author. If for commercial, please inform the author for authentication. Apr 2014 import sys reload(sys) sys.setdefaultencoding('utf-8') from lxml import etree import time import json import urllib import urllib2 # Fo...
37.391187
577
0.527237
4,799
41,579
4.487602
0.113982
0.028603
0.011283
0.016298
0.474043
0.434389
0.4095
0.384751
0.333488
0.320347
0
0.018928
0.343082
41,579
1,111
578
37.424842
0.769532
0.102143
0
0.572592
0
0.004071
0.216631
0.070952
0
0
0
0.0018
0
0
null
null
0.006784
0.010855
null
null
0.033921
0
0
0
null
0
0
0
0
0
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
d4f0759288304875f2de20fc2b91d86d509cb718
3,820
py
Python
examples/add_compensation_to_sample.py
whitews/ReFlowRESTClient
69369bbea501382291b71facea7a511ab8f7848b
[ "BSD-3-Clause" ]
null
null
null
examples/add_compensation_to_sample.py
whitews/ReFlowRESTClient
69369bbea501382291b71facea7a511ab8f7848b
[ "BSD-3-Clause" ]
null
null
null
examples/add_compensation_to_sample.py
whitews/ReFlowRESTClient
69369bbea501382291b71facea7a511ab8f7848b
[ "BSD-3-Clause" ]
null
null
null
import getpass import sys import json from reflowrestclient.utils import * host = raw_input('Host: ') username = raw_input('Username: ') password = getpass.getpass('Password: ') token = get_token(host, username, password) if token: print "Authentication successful" print '=' * 40 else: print "No token fo...
28.939394
100
0.625654
458
3,820
5.028384
0.189956
0.041685
0.033869
0.026053
0.330004
0.258359
0.195397
0.164134
0.164134
0.164134
0
0.002776
0.24555
3,820
132
101
28.939394
0.796322
0.020157
0
0.27957
0
0
0.192668
0
0
0
0
0
0
0
null
null
0.032258
0.043011
null
null
0.236559
0
0
0
null
0
0
0
0
0
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
be05301485051b024d0504eecb5189daad437a58
3,242
py
Python
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
null
null
null
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
null
null
null
600/unit-1/recursion/problem-set/mit-solutions/ps2_hangman_sol1.py
marioluan/mit-opencourseware-cs
5de013f8e321fed2ff3b7a13e8929a44805db78b
[ "MIT" ]
1
2020-05-19T13:29:18.000Z
2020-05-19T13:29:18.000Z
# 6.00 Problem Set 2 # # Hangman # Name : Solutions # Collaborators : <your collaborators> # Time spent : <total time> # ----------------------------------- # Helper code # You don't need to understand this helper code, # but you will have to know how to use the functions import random import string WO...
32.42
108
0.604874
415
3,242
4.616867
0.404819
0.057411
0.044363
0.054802
0.095511
0.095511
0.04071
0
0
0
0
0.003383
0.270512
3,242
99
109
32.747475
0.806765
0.189081
0
0.096154
0
0
0.1527
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0779ab4524c7785b80eb2c94fee42447c65c7dbc
8,824
py
Python
utils.py
g4idrijs/CardiacUltrasoundPhaseEstimation
6bd2e157240133b6e306a7ca931d3d3b96647b88
[ "Apache-2.0" ]
1
2020-11-17T16:14:06.000Z
2020-11-17T16:14:06.000Z
utils.py
g4idrijs/CardiacUltrasoundPhaseEstimation
6bd2e157240133b6e306a7ca931d3d3b96647b88
[ "Apache-2.0" ]
null
null
null
utils.py
g4idrijs/CardiacUltrasoundPhaseEstimation
6bd2e157240133b6e306a7ca931d3d3b96647b88
[ "Apache-2.0" ]
1
2020-06-28T09:19:02.000Z
2020-06-28T09:19:02.000Z
import os, time import numpy as np import scipy.signal import scipy.misc import scipy.ndimage.filters import matplotlib.pyplot as plt import PIL from PIL import ImageDraw import angles import cv2 import SimpleITK as sitk def cvShowImage(imDisp, strName, strAnnotation='', textColor=(0, 0, 255), r...
24.241758
79
0.592248
1,031
8,824
5.031038
0.275461
0.008097
0.013881
0.017351
0.217467
0.174475
0.124157
0.124157
0.124157
0.118373
0
0.022293
0.288305
8,824
364
80
24.241758
0.803662
0.051904
0
0.241546
0
0
0.028841
0
0
0
0.000491
0
0
0
null
null
0
0.05314
null
null
0.067633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
078810f30530e12e24a60251c7822cc072db8c3d
1,142
py
Python
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
from typogrify.filters import amp, caps, initial_quotes, smartypants, titlecase, typogrify, widont, TypogrifyError from functools import wraps from django.conf import settings from django import template from django.utils.safestring import mark_safe from django.utils.encoding import force_unicode register = template....
27.853659
114
0.69965
143
1,142
5.468531
0.356643
0.081841
0.038363
0
0
0
0
0
0
0
0
0
0.205779
1,142
40
115
28.55
0.862183
0
0
0
0
0
0.05364
0
0
0
0
0
0
0
null
null
0
0.206897
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
07a0beb6aad78f79be93a859fb255e52020dee2b
1,931
py
Python
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
1
2020-06-04T01:09:24.000Z
2020-06-04T01:09:24.000Z
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
null
null
null
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # import numpy as np import .Selection as Sel import .Exploration as Exp import .CatUtils as CU #----------------------------------------------------------------------------------------- def GaussWin (Dis, Sig): return np.exp(-(Dis**2)/(Sig**2.)) #------------------...
23.26506
90
0.483169
271
1,931
3.442804
0.346863
0.021436
0.038585
0.019293
0.066452
0.066452
0.066452
0.066452
0.066452
0.066452
0
0.027496
0.284309
1,931
83
91
23.26506
0.647612
0.188503
0
0.245283
0
0
0
0
0
0
0
0
0
0
null
null
0
0.075472
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
07a6ea2e95247eb4360055919661bfab2c787424
442
py
Python
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
import time import subprocess import os print os.uname() if not os.uname()[0].startswith("Darw"): import pygame pygame.mixer.init() # Plays a song def playSong(filename): print "play song" if not os.uname()[0].startswith("Darw"): pygame.mixer.music.fadeout(1000) #fadeout current music over 1 sec. pygame.m...
24.555556
69
0.708145
64
442
4.890625
0.5
0.140575
0.153355
0.076677
0.172524
0.172524
0.172524
0
0
0
0
0.018325
0.135747
442
18
70
24.555556
0.801047
0.11086
0
0.133333
0
0
0.089514
0
0
0
0
0
0
0
null
null
0
0.266667
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
07b58dc361c480dc7628924d4fba99b729151138
687
py
Python
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
import wikipedia import re import TCPclient as client WORDS = ["WIKIPEDIA","SEARCH","INFORMATION"] def handle(text,mic,profile): # SEARCH ON WIKIPEDIA # ny = wikipedia.summary("New York",sentences=3); # mic.say("%s"% ny) #mic.say("What you want to search about") #text = mic.activeListen() print "entering wik...
19.083333
61
0.679767
93
687
4.989247
0.516129
0.038793
0.060345
0.081897
0
0
0
0
0
0
0
0.003534
0.176128
687
35
62
19.628571
0.816254
0.24163
0
0.117647
0
0
0.160156
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.235294
0
0
0
null
0
0
0
0
0
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
07d274563189ebc57a38c1571e12c09ed638080d
18,828
py
Python
scanlogger.py
pythonhacker/pyscanlogd
64d6ad38127243e5c422be7f899ecfa802e1ad21
[ "BSD-3-Clause" ]
1
2021-04-03T22:15:06.000Z
2021-04-03T22:15:06.000Z
scanlogger.py
pythonhacker/pyscanlogd
64d6ad38127243e5c422be7f899ecfa802e1ad21
[ "BSD-3-Clause" ]
null
null
null
scanlogger.py
pythonhacker/pyscanlogd
64d6ad38127243e5c422be7f899ecfa802e1ad21
[ "BSD-3-Clause" ]
2
2020-12-18T20:06:21.000Z
2021-04-08T02:47:40.000Z
# -- coding: utf-8 #!/usr/bin/env python """ pyscanlogger: Port scan detector/logger tool, inspired by scanlogd {http://www.openwall.com/scanlogd} but with added ability to log slow port-scans. Features 1. Detects all stealth (half-open) and full-connect scans. 2. Detects Idle scan and logs it correctly usi...
37.8833
132
0.468929
2,152
18,828
4.015799
0.196097
0.013539
0.017357
0.00648
0.206781
0.151701
0.11583
0.103795
0.103217
0.099514
0
0.013553
0.439611
18,828
496
133
37.959677
0.805516
0.126036
0
0.258065
0
0.016129
0.084012
0.001656
0
0
0.00053
0
0
0
null
null
0
0.029032
null
null
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1