hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
bf4f1bc2c88eea77883111bb514d3727d052d5a3
1,039
py
Python
doc/ext/local.py
bneradt/libswoc
58719322a17fe020ed2340592abb30bbfba26f2f
[ "Apache-2.0" ]
4
2020-05-08T01:11:59.000Z
2021-10-19T19:04:14.000Z
doc/ext/local.py
bneradt/libswoc
58719322a17fe020ed2340592abb30bbfba26f2f
[ "Apache-2.0" ]
12
2018-12-19T17:19:18.000Z
2022-03-01T13:20:11.000Z
doc/ext/local.py
bneradt/libswoc
58719322a17fe020ed2340592abb30bbfba26f2f
[ "Apache-2.0" ]
10
2019-04-15T14:52:49.000Z
2022-02-15T00:26:03.000Z
from docutils import nodes from docutils.parsers import rst from sphinx.domains import Domain import os.path # This is a place to hang git file references. class SWOCDomain(Domain): """ Solid Wall Of Code. """ name = 'swoc' label = 'SWOC' data_version = 1 def make_github_link(name, rawtext, t...
30.558824
100
0.688162
147
1,039
4.755102
0.537415
0.030043
0.06867
0.098712
0.11588
0
0
0
0
0
0
0.001175
0.180943
1,039
33
101
31.484848
0.820212
0.207892
0
0
0
0
0.108723
0
0
0
0
0
0
1
0.105263
false
0
0.210526
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bf5eb7600c6effe11ba9834981e9b94a78c72d11
630
py
Python
vehicle_counter.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
vehicle_counter.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
vehicle_counter.py
tzechiop/Traffic-Counter-Image-Analysis
54fbd50ed616e9e09686b8a02debe96d584486f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 3 21:28:05 2016 @author: thasegawa """ import logging # ============================================================================ class VehicleCounter(object): def __init__(self, shape, divider): self.log = logging.getLogger("vehicle_counter") ...
24.230769
78
0.48254
60
630
4.933333
0.7
0.074324
0
0
0
0
0
0
0
0
0
0.025048
0.17619
630
25
79
25.2
0.545279
0.368254
0
0
0
0
0.126289
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bf601bab0eabedcbb63dd95b687c310892810533
8,130
py
Python
examples/muffin/app.py
javdrher/umongo
7eef315cea588c4c22815effbd1e4d8c571e8aa7
[ "MIT" ]
null
null
null
examples/muffin/app.py
javdrher/umongo
7eef315cea588c4c22815effbd1e4d8c571e8aa7
[ "MIT" ]
null
null
null
examples/muffin/app.py
javdrher/umongo
7eef315cea588c4c22815effbd1e4d8c571e8aa7
[ "MIT" ]
null
null
null
import json import datetime import muffin from bson import ObjectId from aiohttp.web import json_response from motor.motor_asyncio import AsyncIOMotorClient from functools import partial from umongo import Instance, Document, fields, ValidationError, set_gettext from umongo.marshmallow_bonus import SchemaFromUmongo i...
31.882353
97
0.651661
1,046
8,130
4.893881
0.269598
0.031647
0.042196
0.025982
0.32018
0.302989
0.279742
0.269389
0.246337
0.246337
0
0.017003
0.218696
8,130
254
98
32.007874
0.788885
0.080443
0
0.231156
0
0
0.17591
0.017054
0
0
0
0
0
1
0.035176
false
0.135678
0.060302
0.01005
0.291457
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bf64e15c2ae7fbe778bd815cba2fe89218f46d8c
1,284
py
Python
flux/trapezoidal.py
AaronDJohnson/fbtpoint
d5f84006b7b5a53cbf92a9e763f8a6913b86233e
[ "MIT" ]
1
2021-01-19T19:14:03.000Z
2021-01-19T19:14:03.000Z
flux/trapezoidal.py
AaronDJohnson/fbtpoint
d5f84006b7b5a53cbf92a9e763f8a6913b86233e
[ "MIT" ]
null
null
null
flux/trapezoidal.py
AaronDJohnson/fbtpoint
d5f84006b7b5a53cbf92a9e763f8a6913b86233e
[ "MIT" ]
null
null
null
import numpy as np def trapezoidal_rule(f, a, b, tol=1e-8): """ The trapezoidal rule is known to be very accurate for oscillatory integrals integrated over their period. See papers on spectral integration (it's just the composite trapezoidal rule....) TODO (aaron): f is memoized to get the alrea...
32.1
92
0.560748
206
1,284
3.42233
0.451456
0.068085
0.04539
0.056738
0.13617
0.13617
0.13617
0.13617
0.13617
0.13617
0
0.041096
0.317757
1,284
40
93
32.1
0.763699
0.295171
0
0.148148
0
0
0.044674
0
0
0
0
0.025
0
1
0.037037
false
0
0.037037
0
0.148148
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
1
0
0
0
0
0
0
0
0
0
0
1
bf6bba62cfa86d75f46fc7260c7fa058af76ac89
2,897
py
Python
opsrest/custom/basecontroller.py
chinhtle/ops-restd
ab3599a0b8b4df99c35b3f99de6948b2c41630d5
[ "Apache-2.0" ]
null
null
null
opsrest/custom/basecontroller.py
chinhtle/ops-restd
ab3599a0b8b4df99c35b3f99de6948b2c41630d5
[ "Apache-2.0" ]
null
null
null
opsrest/custom/basecontroller.py
chinhtle/ops-restd
ab3599a0b8b4df99c35b3f99de6948b2c41630d5
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015-2016 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
33.686047
78
0.678288
370
2,897
5.151351
0.381081
0.04617
0.055089
0.053515
0.262329
0.262329
0.251836
0.21511
0.21511
0.21511
0
0.00554
0.25233
2,897
85
79
34.082353
0.874423
0.319986
0
0.272727
0
0
0.016054
0
0
0
0
0
0
1
0.204545
false
0.022727
0.090909
0.022727
0.340909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bf6c8896b3823d91e05bd42f0104f9e302b14adf
1,417
py
Python
RecoLocalCalo/Configuration/python/ecalLocalRecoSequenceCosmics_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoLocalCalo/Configuration/python/ecalLocalRecoSequenceCosmics_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoLocalCalo/Configuration/python/ecalLocalRecoSequenceCosmics_cff.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # Calo geometry service model # # removed by tommaso # #ECAL conditions # include "CalibCalorimetry/EcalTrivialCondModules/data/EcalTrivialCondRetriever.cfi" # #TPG condition needed by ecalRecHit producer if TT recovery is ON from RecoLocalCalo.EcalRecProducers.ecalRecHitTPGCo...
33.738095
100
0.819337
106
1,417
10.896226
0.59434
0.088312
0.171429
0.067532
0.109091
0
0
0
0
0
0
0.002387
0.112915
1,417
41
101
34.560976
0.916468
0.161609
0
0
0
0
0.175722
0.112054
0
0
0
0
0
1
0
false
0
0.233333
0
0.233333
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bf714ad8fd6286252d03542ce325ec9f5d78e4a5
2,375
py
Python
photoapp/tests.py
johnmwangi/Gallery_jpG
e8c9874cbedf519c522f7e313a3bdfd6ea193cbf
[ "MIT" ]
null
null
null
photoapp/tests.py
johnmwangi/Gallery_jpG
e8c9874cbedf519c522f7e313a3bdfd6ea193cbf
[ "MIT" ]
5
2021-03-19T01:11:45.000Z
2022-03-11T23:49:40.000Z
photoapp/tests.py
johnmwangi/Gallery_jpG
e8c9874cbedf519c522f7e313a3bdfd6ea193cbf
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import * # Create your tests here. class ImageTest(TestCase): # # def class instance setup for the project # def setUp(self): # self.nairobi = Location(name='nairobi') # self.nairobi.save() # # self.nature = Category(name='nature') ...
30.063291
116
0.624421
277
2,375
5.252708
0.184116
0.076976
0.081787
0.074227
0.470103
0.224055
0.100344
0.057732
0
0
0
0.003889
0.242105
2,375
78
117
30.448718
0.804444
0.549053
0
0.269231
0
0
0.012683
0
0
0
0
0
0.192308
1
0.269231
false
0
0.076923
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bf78aaaa0acb465353b273336d13b89d4bd83f96
1,176
py
Python
tests/config/test_structure.py
gcollard/lightbus
d04deeda8ccef5a582b79255725ca2025a085c02
[ "Apache-2.0" ]
178
2017-07-22T12:35:00.000Z
2022-03-28T07:53:13.000Z
tests/config/test_structure.py
adamcharnock/warren
5e7069da06cd37a8131e8c592ee957ccb73603d5
[ "Apache-2.0" ]
26
2017-08-03T12:09:29.000Z
2021-10-19T16:47:18.000Z
tests/config/test_structure.py
adamcharnock/warren
5e7069da06cd37a8131e8c592ee957ccb73603d5
[ "Apache-2.0" ]
19
2017-09-15T17:51:24.000Z
2022-02-28T13:00:16.000Z
import pytest from lightbus.config.structure import make_transport_selector_structure, ApiConfig, RootConfig pytestmark = pytest.mark.unit def test_make_transport_config_structure(): EventTransportSelector = make_transport_selector_structure("event") assert "redis" in EventTransportSelector.__annotations__ ...
32.666667
94
0.783163
143
1,176
6.041958
0.314685
0.08912
0.101852
0.107639
0.315972
0.1875
0.1875
0.1875
0.1875
0.1875
0
0.002016
0.156463
1,176
35
95
33.6
0.868952
0.130102
0
0
0
0
0.062745
0
0
0
0
0
0.565217
1
0.173913
false
0
0.086957
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
bf7bb0df2ea5bd1508b28ac03700685986a30403
3,565
py
Python
main.py
DataBiosphere/bond
8459ea2f2a1f0b4e7c9c5e3c4e6361cf71e45ecd
[ "BSD-3-Clause" ]
2
2018-05-29T14:32:55.000Z
2020-01-16T18:42:14.000Z
main.py
DataBiosphere/bond
8459ea2f2a1f0b4e7c9c5e3c4e6361cf71e45ecd
[ "BSD-3-Clause" ]
45
2018-06-07T11:30:57.000Z
2021-05-27T15:13:48.000Z
main.py
DataBiosphere/bond
8459ea2f2a1f0b4e7c9c5e3c4e6361cf71e45ecd
[ "BSD-3-Clause" ]
2
2018-05-31T20:14:06.000Z
2020-03-06T01:29:19.000Z
import logging import logging.config import os import flask import google.cloud.logging import yaml from flask_cors import CORS from google.auth.credentials import AnonymousCredentials from google.cloud import ndb from bond_app import routes from bond_app.json_exception_handler import JsonExceptionHandler from bond_a...
37.135417
120
0.718373
473
3,565
5.238901
0.389006
0.036723
0.024213
0.027441
0.018563
0
0
0
0
0
0
0.000355
0.208976
3,565
95
121
37.526316
0.878369
0.331276
0
0
0
0
0.111729
0.029538
0
0
0
0.010526
0
1
0.086207
false
0
0.206897
0
0.362069
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
bf8d1de3cc701ac9377ddd86ee131b8f80174c12
2,323
py
Python
src/couplib/constants.py
DKosenkov/PyFREC
a578f649b1309f1e23412e3695cce2b9e48fda3d
[ "MIT" ]
null
null
null
src/couplib/constants.py
DKosenkov/PyFREC
a578f649b1309f1e23412e3695cce2b9e48fda3d
[ "MIT" ]
null
null
null
src/couplib/constants.py
DKosenkov/PyFREC
a578f649b1309f1e23412e3695cce2b9e48fda3d
[ "MIT" ]
null
null
null
import math #------------------------------------------------------------------------------- # Conversion factors ATOB = 1.889725989 #Angstrom to Bohr Conversion BTOA = 1.0/ATOB HartreeToKCal = 627.509 HartreeToCM1 = 219474.629232 HartreeToeV = 27.211215 eVToHartree = 1/HartreeToeV #eVToCM1_old ...
47.408163
163
0.541541
378
2,323
3.259259
0.640212
0.012175
0.019481
0.00974
0.071429
0.071429
0.071429
0.071429
0.071429
0.071429
0
0.118133
0.114507
2,323
49
164
47.408163
0.480797
0.434783
0
0
0
0
0.231366
0.055124
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bf91fd0e6ff5a588ad41746670409b50877da233
4,056
py
Python
tests/test_molecule.py
zig1000/schem
22883d345e6efbc6e2cc8c6b107a61f267b7b067
[ "MIT" ]
null
null
null
tests/test_molecule.py
zig1000/schem
22883d345e6efbc6e2cc8c6b107a61f267b7b067
[ "MIT" ]
1
2021-02-15T23:21:03.000Z
2021-02-15T23:21:03.000Z
tests/test_molecule.py
zig1000/schem
22883d345e6efbc6e2cc8c6b107a61f267b7b067
[ "MIT" ]
1
2021-02-15T22:48:38.000Z
2021-02-15T22:48:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from pathlib import Path import pickle from timeit import Timer import unittest import sys # Insert the parent directory to sys path so schem is accessible even if it's not available system-wide sys.path.insert(1, str(Path(__file__).parent.parent)) from schem.molecule im...
44.086957
220
0.655325
556
4,056
4.564748
0.363309
0.052009
0.047281
0.022459
0.396375
0.313239
0.282112
0.227738
0.189913
0.154452
0
0.225806
0.220414
4,056
91
221
44.571429
0.57685
0.10429
0
0.032258
0
0.064516
0.281547
0.199112
0
0
0
0
0.016129
1
0.032258
false
0
0.096774
0
0.16129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bf94d09f1a74c7a79cfafcb370c14a7e527ca36f
654
py
Python
Discussion/migrations/0003_auto_20180906_1441.py
Arianxx/ShareForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
39
2018-09-08T04:40:59.000Z
2021-09-10T02:02:04.000Z
Discussion/migrations/0003_auto_20180906_1441.py
STARCASTPOD/BookForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
null
null
null
Discussion/migrations/0003_auto_20180906_1441.py
STARCASTPOD/BookForum
b3bf6a3b2ace869cb88a0b41bbbd4575b6cdfd28
[ "MIT" ]
8
2018-09-08T08:50:45.000Z
2020-03-13T15:38:56.000Z
# Generated by Django 2.0.5 on 2018-09-06 06:41 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('Discussion', '0002_auto_20180613_1819'), ] opera...
26.16
98
0.639144
69
654
5.855072
0.608696
0.049505
0.079208
0.10396
0.158416
0.158416
0
0
0
0
0
0.063918
0.25841
654
24
99
27.25
0.769072
0.068807
0
0.333333
1
0
0.138386
0.037891
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bf95e8ba45ff95f24183b488e1c746015e0ff293
1,879
py
Python
ambry/cli/test.py
kball/ambry
ae865245128b92693d654fbdbb3efc9ef29e9745
[ "BSD-2-Clause" ]
1
2017-06-14T13:40:57.000Z
2017-06-14T13:40:57.000Z
ambry/cli/test.py
kball/ambry
ae865245128b92693d654fbdbb3efc9ef29e9745
[ "BSD-2-Clause" ]
null
null
null
ambry/cli/test.py
kball/ambry
ae865245128b92693d654fbdbb3efc9ef29e9745
[ "BSD-2-Clause" ]
null
null
null
""" Copyright (c) 2013 Clarinova. This file is licensed under the terms of the Revised BSD License, included in this distribution as LICENSE.txt """ from ..cli import prt,fatal def test_parser(cmd): import argparse test_p = cmd.add_parser('test', help='Test and debugging') test_p.set_defaults(command=...
25.053333
105
0.674827
251
1,879
4.916335
0.438247
0.02269
0.019449
0.034036
0.058347
0
0
0
0
0
0
0.005302
0.196913
1,879
74
106
25.391892
0.812459
0.025013
0
0
0
0
0.262656
0.041691
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.051282
0
0
0
null
0
0
0
0
0
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
bfa262fe8a13bcb8142e0bf9665a364d87fdf705
752
py
Python
core/models.py
GuiSilva11/sospet
f29a8cd3f06a955974292025e9ba1272e84a385a
[ "MIT" ]
null
null
null
core/models.py
GuiSilva11/sospet
f29a8cd3f06a955974292025e9ba1272e84a385a
[ "MIT" ]
null
null
null
core/models.py
GuiSilva11/sospet
f29a8cd3f06a955974292025e9ba1272e84a385a
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django import dj_database_url # Create your models here. class Pet(models.Model): city = models.CharField(max_length=100) description = models.TextField() phone = models.CharField(max_length=11, null=True) email = model...
32.695652
69
0.719415
102
752
5.147059
0.558824
0.060952
0.068571
0.091429
0
0
0
0
0
0
0
0.008078
0.176862
752
23
70
32.695652
0.840065
0.031915
0
0
0
0
0.015131
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0.058824
0.941176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bfa263056c348a6c1f4150ad9b38871d4c77f498
422
py
Python
8KYU/first_non_consecutive.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
4
2021-07-17T22:48:03.000Z
2022-03-25T14:10:58.000Z
8KYU/first_non_consecutive.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
null
null
null
8KYU/first_non_consecutive.py
yaznasivasai/python_codewars
25493591dde4649dc9c1ec3bece8191a3bed6818
[ "MIT" ]
3
2021-06-14T14:18:16.000Z
2022-03-16T06:02:02.000Z
def first_non_consecutive(arr: list) -> int: ''' This function returns the first element of an array that is not consecutive. ''' if len(arr) < 2: return None non_consecutive = [] for i in range(len(arr) - 1): if arr[i+1] - arr[i] != 1: non_consecutive.append(arr[i+1]) if...
38.363636
88
0.599526
63
422
3.920635
0.52381
0.283401
0.060729
0
0
0
0
0
0
0
0
0.022436
0.260664
422
11
89
38.363636
0.769231
0.180095
0
0.2
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.4
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bfa7843bcdb86b3f94012b1ea1de6ffb043c292c
1,692
py
Python
bitey/cpu/pin.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
bitey/cpu/pin.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
bitey/cpu/pin.py
jgerrish/bitey
a393a83c19338d94116f3405f4b8a0f03ea84d79
[ "MIT" ]
null
null
null
from dataclasses import dataclass from enum import Enum class State(Enum): "State of a pin, can either be LOW or HIGH" LOW = 1 HIGH = 2 @dataclass class Pin: """ Physical pins on the microprocessor. Most of the code in this project is higher-level, ignoring things like clock-cycles and p...
20.888889
76
0.630615
258
1,692
4.073643
0.387597
0.028544
0.031399
0.022835
0
0
0
0
0
0
0
0.001679
0.296099
1,692
80
77
21.15
0.880772
0.391253
0
0.09375
0
0
0.158273
0
0
0
0
0
0
1
0.15625
false
0
0.0625
0.0625
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bfa97c289b0736c98a1200a9e4a73734a8953802
276
py
Python
sme_uniforme_apps/custom_user/urls.py
prefeiturasp/SME-PortalUniforme-BackEnd
d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f
[ "MIT" ]
null
null
null
sme_uniforme_apps/custom_user/urls.py
prefeiturasp/SME-PortalUniforme-BackEnd
d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f
[ "MIT" ]
null
null
null
sme_uniforme_apps/custom_user/urls.py
prefeiturasp/SME-PortalUniforme-BackEnd
d7e15dd3b9c7b9cfb621e53ec81d40f18c1fab3f
[ "MIT" ]
1
2020-02-01T12:10:42.000Z
2020-02-01T12:10:42.000Z
from django.urls import include, path from rest_framework import routers from .api.viewsets.usuario_viewset import UsuarioViewset router = routers.DefaultRouter() router.register("usuarios", UsuarioViewset, "Usuários") urlpatterns = [ path('', include(router.urls)) ]
21.230769
56
0.775362
31
276
6.83871
0.645161
0
0
0
0
0
0
0
0
0
0
0
0.119565
276
12
57
23
0.872428
0
0
0
0
0
0.057971
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bfa9e9e64bf356bd1cacc359a0d51be50f947a91
2,837
py
Python
Driver/models.py
Anne56njeri/Carpool
b1d95b1307c287a8edca576ad24ccc3b7a8427fc
[ "Unlicense", "MIT" ]
1
2018-08-01T08:57:44.000Z
2018-08-01T08:57:44.000Z
Driver/models.py
Anne56njeri/Carpool
b1d95b1307c287a8edca576ad24ccc3b7a8427fc
[ "Unlicense", "MIT" ]
null
null
null
Driver/models.py
Anne56njeri/Carpool
b1d95b1307c287a8edca576ad24ccc3b7a8427fc
[ "Unlicense", "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. ''' we create a profile class that will help us save information on whether the...
38.337838
128
0.739161
400
2,837
5.1
0.305
0.088235
0.088235
0.117647
0.334804
0.19951
0.155882
0.057843
0.057843
0.057843
0
0.012023
0.149806
2,837
73
129
38.863014
0.833748
0.00846
0
0.109091
0
0
0.02967
0
0
0
0
0
0
1
0.127273
false
0.036364
0.090909
0.054545
0.854545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bfaa06301e4f72dec47a85b72806305bb7f8be9a
375
py
Python
taskmanager/src/modules/events/infrastructure/persistence/models/event_model.py
alice-biometrics/petisco-task-manager
2bad52013ab122f8c3e5dce740dcd154883e6940
[ "MIT" ]
1
2020-04-14T18:12:11.000Z
2020-04-14T18:12:11.000Z
taskmanager/src/modules/events/infrastructure/persistence/models/event_model.py
alice-biometrics/petisco-task-manager
2bad52013ab122f8c3e5dce740dcd154883e6940
[ "MIT" ]
3
2020-04-20T10:35:26.000Z
2020-06-15T07:45:59.000Z
taskmanager/src/modules/events/infrastructure/persistence/models/event_model.py
alice-biometrics/petisco-task-manager
2bad52013ab122f8c3e5dce740dcd154883e6940
[ "MIT" ]
1
2021-03-12T13:48:01.000Z
2021-03-12T13:48:01.000Z
from petisco.persistence.persistence import Persistence from sqlalchemy import Column, Integer, String, JSON Base = Persistence.get_base("taskmanager") class EventModel(Base): __tablename__ = "Event" id = Column("id", Integer, primary_key=True) event_id = Column("event_id", String(36)) type = Colum...
25
55
0.712
46
375
5.630435
0.521739
0.081081
0.100386
0
0
0
0
0
0
0
0
0.015924
0.162667
375
14
56
26.785714
0.808917
0
0
0
0
0
0.090667
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bfaaa304ed1acd0ac8c6f5beb7135584dfbb4b6e
558
py
Python
Literature-backend/utils/authorization.py
czl0325/Literature-python3
e5b061f503b0a18a092b67469086f64b615f8604
[ "MIT" ]
7
2021-04-13T08:01:00.000Z
2022-03-17T05:47:47.000Z
Literature-backend/utils/authorization.py
czl0325/Literature-python3
e5b061f503b0a18a092b67469086f64b615f8604
[ "MIT" ]
1
2022-01-01T13:43:24.000Z
2022-01-01T13:43:24.000Z
Literature-backend/utils/authorization.py
czl0325/Literature-python3
e5b061f503b0a18a092b67469086f64b615f8604
[ "MIT" ]
1
2021-07-14T04:13:57.000Z
2021-07-14T04:13:57.000Z
import functools from flask import g, request from lib.jwt_utils import verify_jwt def LoginRequired(view_func): @functools.wraps(view_func) def check_auth(*args, **kwargs): g.user_id = None auth = request.headers.get('token') payload = verify_jwt(auth) if payload: ...
27.9
61
0.645161
71
558
4.887324
0.507042
0.069164
0.040346
0
0
0
0
0
0
0
0
0
0.263441
558
19
62
29.368421
0.844282
0
0
0
0
0
0.021505
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bfac88aa2efc80d3e0ff9e391c7c17befe2acae2
2,661
py
Python
backend/emailer.py
amm042/Flower
fb28defb27a30b2cd59c21e4f0adb21ed0a541e7
[ "MIT" ]
3
2017-10-28T23:21:56.000Z
2018-03-27T18:52:18.000Z
backend/emailer.py
amm042/Flower
fb28defb27a30b2cd59c21e4f0adb21ed0a541e7
[ "MIT" ]
276
2017-10-27T16:25:22.000Z
2018-05-03T20:55:47.000Z
backend/emailer.py
amm042/Flower
fb28defb27a30b2cd59c21e4f0adb21ed0a541e7
[ "MIT" ]
2
2017-11-28T01:44:42.000Z
2018-11-16T14:09:37.000Z
import os import subprocess import smtplib from email.mime.text import MIMEText from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart EMAIL_HTML_START = '<html><head></head><body><p>' EMAIL_HTML_END = '</p></body></html>' """ Send Email with attachments and text attachments should be ...
32.851852
117
0.705374
352
2,661
5.295455
0.434659
0.045064
0.04721
0.019313
0.052575
0.052575
0.052575
0.052575
0.052575
0.052575
0
0.001399
0.193912
2,661
80
118
33.2625
0.867599
0.130026
0
0.047619
0
0
0.221909
0.071146
0
0
0
0.025
0.047619
1
0.071429
false
0
0.166667
0
0.261905
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
bfb00b3878976eb401bb6b11b7726def9ea5c5a6
5,632
py
Python
lib/datasets/mot_info.py
liuqk3/GSM
188965b3a11f9cdbe166d79cac7cd2e9fb4c1785
[ "MIT" ]
3
2021-06-16T13:06:27.000Z
2021-12-27T03:52:51.000Z
lib/datasets/mot_info.py
liuqk3/GSM
188965b3a11f9cdbe166d79cac7cd2e9fb4c1785
[ "MIT" ]
5
2021-08-25T16:16:51.000Z
2022-03-12T00:57:46.000Z
lib/datasets/mot_info.py
liuqk3/GSM
188965b3a11f9cdbe166d79cac7cd2e9fb4c1785
[ "MIT" ]
1
2021-12-01T13:31:38.000Z
2021-12-01T13:31:38.000Z
from lib.utils.misc import detect_os MOT_info = { "readme": "The sequences in MOT16 and MOT17 are the same, while the sequences in 2DMOT2015 are " "not all the same with those in MOT17. To handle this, we filter 2DMOT2015 dataset, " "i.e. those sequences that are contained in MOT17 will...
36.335484
120
0.457741
556
5,632
4.597122
0.219424
0.125196
0.150235
0.178404
0.483959
0.426448
0.368936
0.368936
0.368936
0.368936
0
0.098919
0.34304
5,632
154
121
36.571429
0.591892
0.04652
0
0.374101
0
0
0.459071
0.222637
0
0
0
0
0
1
0.007194
false
0
0.007194
0
0.021583
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bfb039de17e3f2df74bac61d966e6421f6778c40
537
py
Python
src/dama/data/web.py
elaeon/ML
8b56c62a28c69987fc5dbd8a47406a3a22214371
[ "Apache-2.0" ]
4
2017-07-16T14:25:35.000Z
2018-08-27T14:18:01.000Z
src/dama/data/web.py
elaeon/dama_ml
8b56c62a28c69987fc5dbd8a47406a3a22214371
[ "Apache-2.0" ]
6
2017-10-06T16:46:13.000Z
2019-02-12T23:51:01.000Z
src/dama/data/web.py
elaeon/dama_ml
8b56c62a28c69987fc5dbd8a47406a3a22214371
[ "Apache-2.0" ]
null
null
null
import tqdm class HttpDataset(object): def __init__(self, url, sess=None): self.url = url self.sess = sess def download(self, filepath, chunksize): response = self.sess.get(self.url) with open(filepath, "wb") as f: for chunk in tqdm.tqdm(response.iter_content(chunks...
29.833333
69
0.577281
63
537
4.825397
0.52381
0.069079
0
0
0
0
0
0
0
0
0
0.008197
0.318436
537
17
70
31.588235
0.822404
0
0
0
0
0
0.003724
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bfb1cec8422d4ddf12fb71d0f3a2b6e8767d1860
1,791
py
Python
deeplab_segment.py
Prakadeeswaran05/Simple-Tf-ObjectDetection-SemanticSegmentation-ROS
f119f0f8394c324c8453d540f4dfa495e34ee001
[ "MIT" ]
9
2021-04-29T14:30:16.000Z
2022-01-26T16:39:34.000Z
deeplab_segment.py
Prakadeeswaran05/Tf-ObjectDetection-SemanticSegmentation-ROS
f119f0f8394c324c8453d540f4dfa495e34ee001
[ "MIT" ]
null
null
null
deeplab_segment.py
Prakadeeswaran05/Tf-ObjectDetection-SemanticSegmentation-ROS
f119f0f8394c324c8453d540f4dfa495e34ee001
[ "MIT" ]
null
null
null
import collections import os import io import sys import tarfile import tempfile import urllib import rospy from std_msgs.msg import Header from sensor_msgs.msg import Image as ros_img from notcv_bridge import * from matplotlib import gridspec from matplotlib import pyplot as plt import numpy as np from PIL import Imag...
24.202703
75
0.71971
264
1,791
4.617424
0.424242
0.039377
0.044299
0.02297
0.02461
0
0
0
0
0
0
0.024105
0.18928
1,791
73
76
24.534247
0.815427
0.061977
0
0
0
0
0.077705
0.054991
0
0
0
0
0
1
0.043478
false
0
0.391304
0
0.434783
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bfc10809cb17d41c9d5e0845a79f7790e9acfb95
9,469
py
Python
dnctest.py
nburn42/nburn42_deep_q
b353138c3aac4cb26222d012dd10de8a784e0ff1
[ "MIT" ]
4
2016-09-10T15:41:35.000Z
2018-01-19T18:17:59.000Z
dnctest.py
nburn42/nburn42_deep_q
b353138c3aac4cb26222d012dd10de8a784e0ff1
[ "MIT" ]
null
null
null
dnctest.py
nburn42/nburn42_deep_q
b353138c3aac4cb26222d012dd10de8a784e0ff1
[ "MIT" ]
null
null
null
# Deep Q network import gym import numpy as np import tensorflow as tf import math import random import bisect import nplot # HYPERPARMETERS H = 150 H2 = 150 batch_number = 500 gamma = 0.995 num_of_ticks_between_q_copies = 1000 explore_decay = 0.99999 min_explore = 0.05 max_steps = 499 max_episodes = 1500 memory_...
34.684982
140
0.52656
1,129
9,469
4.192205
0.213463
0.033805
0.040566
0.060849
0.319882
0.269385
0.187619
0.095922
0.055779
0.039721
0
0.039009
0.369205
9,469
272
141
34.8125
0.75339
0.055655
0
0.064516
0
0
0.012444
0
0
0
0
0
0
0
null
null
0
0.037634
null
null
0.026882
0
0
0
null
0
0
0
0
0
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
bfc812b90b219bd86fe5f140919d65ec9bcddac7
563
py
Python
Src/AlgorithmLimp.py
sanjeevmk/GLASS
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
2
2022-03-22T17:36:14.000Z
2022-03-27T05:03:39.000Z
Src/AlgorithmLimp.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
Src/AlgorithmLimp.py
sanjeevmk/glass
91c0954eab87d25d4866fea5c338f79fbca4f79e
[ "MIT" ]
null
null
null
import torch torch.manual_seed(10) torch.cuda.manual_seed_all(10) import header import init import sys import train_limp import randomSample import latentSpaceExplore_VanillaHMC,latentSpaceExplore_NUTSHmc config = sys.argv[1] training_params,data_classes,network_params,misc_variables,losses = init.initialize(config) fr...
33.117647
103
0.841918
78
563
5.871795
0.538462
0.091703
0.078603
0.10917
0.165939
0.165939
0
0
0
0
0
0.015385
0.076377
563
16
104
35.1875
0.865385
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bfc892ba58f5ff6da305ddd579103f6d443a641e
11,165
py
Python
medgen/db/dataset.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
medgen/db/dataset.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
medgen/db/dataset.py
reece/medgen
8d57c058315f77769f2a2827737d56682e15dc91
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # from __future__ import absolute_import from __future__ import unicode_literals, print_function from pyrfc3339 import parse import MySQLdb as mdb import MySQLdb.cursors as cursors import PySQLPool from ..log import log, IS_DEBUG_ENABLED DEFAULT_HOST = 'localhost' DEFAULT_USER = 'medgen' DEFA...
35.557325
153
0.595074
1,387
11,165
4.656092
0.221341
0.029266
0.021679
0.011614
0.280427
0.238154
0.209043
0.190771
0.150046
0.126974
0
0.004179
0.2927
11,165
314
154
35.557325
0.8136
0.120197
0
0.171975
0
0.012739
0.134009
0
0
0
0
0.006369
0
0
null
null
0.019108
0.044586
null
null
0.006369
0
0
0
null
0
0
0
0
0
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
bfd063ade24331aec9eaa119b346a43099af793f
6,596
py
Python
archive/LoadData.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
1
2019-02-02T17:50:51.000Z
2019-02-02T17:50:51.000Z
archive/LoadData.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
null
null
null
archive/LoadData.py
sjayakum/csci544
c452ed518fda0909836107668428791be90b82b4
[ "Apache-2.0" ]
null
null
null
stop_words_dict= {'': 0, 'all': 0, 'these': 0, 'are': 0, "weren't": 0, "they're": 0, 'those': 0, 'why': 0, 'under': 0, 'same': 0, "aren't": 0, 'his': 0, 'her': 0, 'had': 0, "she'd": 0, 'no': 0, 'your': 0, 'not': 0, 'because': 0, 'they': 0, 'which': 0, 'further': 0, "hadn't": 0, "he's": 0, 'while': 0, 'himself': 0, "he...
34
2,017
0.5849
1,018
6,596
3.626719
0.212181
0.083965
0.03792
0.048754
0.252167
0.189057
0.119447
0.094529
0.094529
0.02844
0
0.046793
0.222408
6,596
194
2,018
34
0.673036
0.014099
0
0.164063
0
0
0.15194
0
0
0
0
0
0
1
0.007813
false
0.015625
0.015625
0
0.03125
0.054688
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bfd2553688eea939f4604d16731abf6e0a2a1ad3
339
py
Python
mysite/recipes/migrations/0031_merge_20161201_0145.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
mysite/recipes/migrations/0031_merge_20161201_0145.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
mysite/recipes/migrations/0031_merge_20161201_0145.py
Jason0705/ICanCook
b215e29183e588a0c161c81f1dc7e2da89563905
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-01 01:45 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('recipes', '0030_auto_20161129_2138'), ('recipes', '0030_merge_20161130_0139'), ] op...
19.941176
48
0.663717
41
339
5.219512
0.804878
0.102804
0
0
0
0
0
0
0
0
0
0.183521
0.212389
339
16
49
21.1875
0.617978
0.20059
0
0
1
0
0.227612
0.175373
0
0
0
0
0
1
0
false
0
0.222222
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bfd389f7fe51f3050b8d8eeba81b50ed5e0fe336
374
py
Python
python全栈/day43/day43-6 类装饰器.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
python全栈/day43/day43-6 类装饰器.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
python全栈/day43/day43-6 类装饰器.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
# 类装饰器,使用类装饰已有函数 class MyDecorator(object): def __init__(self, func): self.__func = func # 实现__call__方法,让实例对象变为像函数一样的可调用对象 def __call__(self, *args, **kwds): # 对已有函数进行封装 print("课已经讲完了") self.__func() @MyDecorator # MyDecorator => show = MyDecorator(show) def show(): pri...
22
54
0.647059
38
374
5.947368
0.578947
0.106195
0
0
0
0
0
0
0
0
0
0
0.227273
374
17
55
22
0.782007
0.339572
0
0
0
0
0.049793
0
0
0
0
0
0
1
0.3
false
0
0
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
44a61f8c95d30fc8390923ffa8f86c9b6a091073
1,143
py
Python
app/annohub/lib/fileutils.py
inktrap/annohub
dd91035b18263ce91ea4c922d7e597176fbf6172
[ "MIT" ]
null
null
null
app/annohub/lib/fileutils.py
inktrap/annohub
dd91035b18263ce91ea4c922d7e597176fbf6172
[ "MIT" ]
null
null
null
app/annohub/lib/fileutils.py
inktrap/annohub
dd91035b18263ce91ea4c922d7e597176fbf6172
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from annohub import app from annohub.lib import error as e def try_unicode(this_string, errors='strict'): u''' taken from <https://stackoverflow.com/a/9600161> and changed so it turns input into unicode Attention: Order of ENCODINGS_ALLOWED is important. ''...
30.078947
65
0.67629
142
1,143
5.352113
0.577465
0.052632
0.044737
0.047368
0
0
0
0
0
0
0
0.010147
0.223972
1,143
37
66
30.891892
0.846674
0.144357
0
0.083333
0
0
0.041825
0
0
0
0
0
0.041667
0
null
null
0
0.083333
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
44a9b48d19ecc708bb17d5ec3f810a99423f4548
1,694
py
Python
Built-In functions in Python.py
MYJOR/Software-Engineering-With-Python
01031ba60df1c65b82a1b32f11b3deb6b45574d0
[ "MIT" ]
null
null
null
Built-In functions in Python.py
MYJOR/Software-Engineering-With-Python
01031ba60df1c65b82a1b32f11b3deb6b45574d0
[ "MIT" ]
null
null
null
Built-In functions in Python.py
MYJOR/Software-Engineering-With-Python
01031ba60df1c65b82a1b32f11b3deb6b45574d0
[ "MIT" ]
null
null
null
#built in functions from math import * #abs() function number=-120 print(abs(number)) #len() function name_1='sam' name_2="JOSH" print(len(name_1)) #upper()function print(name_1.upper()) #lower() function print(name_2.lower()) #replace function print(name_1.replace(name_1,name_2)) #St...
14.355932
98
0.669421
265
1,694
4.249057
0.381132
0.069272
0.045293
0.031972
0.079929
0.079929
0.079929
0.079929
0.079929
0.079929
0
0.095737
0.210744
1,694
117
99
14.478632
0.746447
0.353011
0
0.1
0
0
0.078142
0
0
0
0
0
0
1
0
false
0
0.025
0
0.025
0.475
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
44aa68f2a766bf6b08abe4a106387c847de89174
49,123
py
Python
digsby/src/gui/toolbox/toolbox.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/gui/toolbox/toolbox.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/gui/toolbox/toolbox.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
''' GUI utilities. ''' from __future__ import with_statement from __future__ import division import config import functools import wx, struct from wx import GetTopLevelWindows, Point, Size from logging import getLogger; log = getLogger('gui.util') from traceback import print_exc from PIL import Image, ImageDraw, ImageF...
30.549129
142
0.612422
6,164
49,123
4.78196
0.16499
0.005089
0.007939
0.002205
0.154295
0.118605
0.091871
0.078369
0.065138
0.063781
0
0.00812
0.278016
49,123
1,607
143
30.568139
0.822985
0.055392
0
0.17444
0
0
0.043026
0.003294
0
0
0.00042
0.002489
0.001866
0
null
null
0.010261
0.054104
null
null
0.017724
0
0
0
null
0
0
0
0
0
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
44ae9abc4a9a98e70e5eb2741c8483abff0fde6f
234
py
Python
print1.py
shubhamm033/googlepython
03da9f056a795455ae30774a12d31d2f8b3ec299
[ "Apache-2.0" ]
null
null
null
print1.py
shubhamm033/googlepython
03da9f056a795455ae30774a12d31d2f8b3ec299
[ "Apache-2.0" ]
6
2020-03-24T15:37:56.000Z
2021-04-30T20:33:32.000Z
print1.py
shubhamm033/googlepython
03da9f056a795455ae30774a12d31d2f8b3ec299
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt import sys def repeat(name,age): if name == 'Guido' or age ==2: print 10 else: print 101 def main(): repeat(sys.argv[1],sys.argv[2]) if __name__ == '__main__': main()
6.882353
32
0.538462
34
234
3.470588
0.617647
0.101695
0
0
0
0
0
0
0
0
0
0.04908
0.303419
234
34
33
6.882353
0.674847
0.08547
0
0
0
0
0.060748
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
44b3434f83833b5a418dc8a7e1ea5e2d80329437
11,843
py
Python
bgcArgoDMQC/fplt.py
ArgoCanada/bgcArgoDMQC
513b05729e605eed2cd9dafe9aef6260f577a0b5
[ "MIT" ]
3
2020-11-30T14:49:43.000Z
2022-02-08T17:23:36.000Z
bgcArgoDMQC/fplt.py
ArgoCanada/bgcArgoDMQC
513b05729e605eed2cd9dafe9aef6260f577a0b5
[ "MIT" ]
32
2020-11-11T16:00:04.000Z
2022-02-23T18:59:48.000Z
bgcArgoDMQC/fplt.py
ArgoCanada/bgcArgoDMQC
513b05729e605eed2cd9dafe9aef6260f577a0b5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as mdates import seaborn as sns sns.set(style='ticks', context='paper', palette='colorblind') try: import cmocean.cm as cmo cmocean_flag = True except: cmocean_flag = False class pltClass: def __init__(self): self.__i...
30.211735
153
0.559909
1,623
11,843
3.982748
0.152803
0.016708
0.018564
0.018564
0.686108
0.680848
0.673731
0.673731
0.670173
0.659035
0
0.024951
0.272397
11,843
391
154
30.289003
0.725194
0.001351
0
0.678808
0
0
0.130317
0.01167
0
0
0
0
0
1
0.02649
false
0
0.016556
0
0.069536
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
44c6e896f823576d5d53f2d5f0e88e2fd6fdc726
392
py
Python
section4: methods and functions/2-arguments.py
rpotter12/learning-python
57200fe296e0d297b96a785e7e27ee3a44694eaf
[ "MIT" ]
2
2018-12-05T05:04:59.000Z
2020-01-29T02:42:40.000Z
section4: methods and functions/2-arguments.py
rpotter12/learning-python
57200fe296e0d297b96a785e7e27ee3a44694eaf
[ "MIT" ]
null
null
null
section4: methods and functions/2-arguments.py
rpotter12/learning-python
57200fe296e0d297b96a785e7e27ee3a44694eaf
[ "MIT" ]
null
null
null
# *args - arguments - it returns tuple # **kwargs - keyword arguments - it returns dictionary def myfunc(*args): print(args) myfunc(1,2,3,4,5,6,7,8,9,0) def myfunc1(**kwargs): print(kwargs) if 'fruit' in kwargs: print('my fruit of choice is {}'.format(kwargs['fruit'])) else: print('...
23.058824
65
0.635204
59
392
4.220339
0.677966
0.088353
0.144578
0
0
0
0
0
0
0
0
0.038462
0.204082
392
16
66
24.5
0.759615
0.229592
0
0
0
0
0.250836
0
0
0
0
0
0
1
0.2
true
0
0
0
0.2
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
44c89577e517f8807975d3af226cfb6c8918ae4e
13,776
py
Python
sdb/passwords.py
gavinwahl/sdb
27abec1f9001d541124ea57c258ca48f930d6d88
[ "BSD-2-Clause" ]
1
2015-12-28T07:02:10.000Z
2015-12-28T07:02:10.000Z
sdb/passwords.py
gavinwahl/sdb
27abec1f9001d541124ea57c258ca48f930d6d88
[ "BSD-2-Clause" ]
null
null
null
sdb/passwords.py
gavinwahl/sdb
27abec1f9001d541124ea57c258ca48f930d6d88
[ "BSD-2-Clause" ]
null
null
null
import os import ast import sys import math import time import string import hashlib import tempfile import subprocess from operator import itemgetter from contextlib import contextmanager from getpass import getpass import random; random = random.SystemRandom() import sdb.subprocess_compat as subprocess from sdb.util...
31.59633
99
0.591173
1,622
13,776
4.924168
0.200986
0.025041
0.028171
0.011268
0.167272
0.125078
0.108051
0.081507
0.07675
0.056717
0
0.008577
0.297546
13,776
435
100
31.668966
0.816782
0.043844
0
0.196481
0
0
0.070194
0.001835
0
0
0
0
0.005865
1
0.108504
false
0.155425
0.052786
0.020528
0.293255
0.005865
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
44e3de96d18021f8c3b9a4c81b76aeddcd2ffcd2
670
py
Python
gitviper/gitconnector.py
BeayemX/GitViper
1d6bb8f070d47868e687d879aa30e572ec6cb876
[ "MIT" ]
41
2017-11-30T19:38:18.000Z
2021-04-06T21:39:00.000Z
gitviper/gitconnector.py
BeayemX/GitViper
1d6bb8f070d47868e687d879aa30e572ec6cb876
[ "MIT" ]
24
2017-11-21T22:56:45.000Z
2020-11-03T20:16:11.000Z
gitviper/gitconnector.py
BeayemX/GitViper
1d6bb8f070d47868e687d879aa30e572ec6cb876
[ "MIT" ]
6
2017-12-13T13:38:48.000Z
2022-01-05T19:27:01.000Z
import os from git import InvalidGitRepositoryError, Repo from gitviper.colors import * class Connection: def __init__(self): self.repo = None self.working_directory = None self.is_git_repo = False connection = Connection() def connect(): connection.working_directory = os.getcwd() ...
29.130435
86
0.701493
86
670
5.302326
0.476744
0.140351
0.171053
0
0
0
0
0
0
0
0
0
0.216418
670
23
87
29.130435
0.868571
0.119403
0
0
0
0
0.050934
0
0
0
0
0.043478
0
1
0.117647
false
0
0.176471
0
0.352941
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
44eeb6a3678576eec5de5e12470d1e6f8be25d51
4,570
py
Python
src/iOS/toga_iOS/dialogs.py
samschott/toga
400b6935c4689bedb134324b38eb1286af5b5ec6
[ "BSD-3-Clause" ]
null
null
null
src/iOS/toga_iOS/dialogs.py
samschott/toga
400b6935c4689bedb134324b38eb1286af5b5ec6
[ "BSD-3-Clause" ]
null
null
null
src/iOS/toga_iOS/dialogs.py
samschott/toga
400b6935c4689bedb134324b38eb1286af5b5ec6
[ "BSD-3-Clause" ]
null
null
null
import asyncio from rubicon.objc import Block from rubicon.objc.runtime import objc_id from toga_iOS.libs import ( UIAlertAction, UIAlertActionStyle, UIAlertController, UIAlertControllerStyle, ) class BaseDialog: def __init__(self): loop = asyncio.get_event_loop() self.future = l...
27.69697
87
0.647046
489
4,570
5.670757
0.208589
0.066354
0.039668
0.072124
0.632889
0.614136
0.585287
0.570141
0.492247
0.492247
0
0
0.257112
4,570
164
88
27.865854
0.816789
0
0
0.341463
0
0
0.057112
0.023195
0
0
0
0
0
1
0.203252
false
0.00813
0.03252
0.00813
0.325203
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
44f1ee779a726fff67d92e5ac579e362f94992a0
986
py
Python
djangae/models.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
467
2015-01-02T22:35:37.000Z
2022-02-22T23:13:36.000Z
djangae/models.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
743
2015-01-02T15:55:34.000Z
2021-01-29T09:43:19.000Z
djangae/models.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
154
2015-01-01T17:05:59.000Z
2021-12-09T06:40:07.000Z
from django.db import models from djangae import patches # noqa class DeferIterationMarker(models.Model): """ Marker to keep track of sharded defer iteration tasks """ # Set to True when all shards have been deferred is_ready = models.BooleanField(default=False) shard_count = m...
26.648649
73
0.679513
117
986
5.538462
0.57265
0.021605
0.07716
0.104938
0.095679
0.095679
0
0
0
0
0
0.010652
0.238337
986
36
74
27.388889
0.852197
0.107505
0
0
0
0
0.045828
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0.095238
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
44f347e38e371ebb53e0758c63f468672437e9d6
694
py
Python
setup.py
WillBux/Darwin
7226237283bebff058840dc22132164187d6a1b6
[ "MIT" ]
1
2018-06-02T20:46:34.000Z
2018-06-02T20:46:34.000Z
setup.py
WillBux/darwin
7226237283bebff058840dc22132164187d6a1b6
[ "MIT" ]
null
null
null
setup.py
WillBux/darwin
7226237283bebff058840dc22132164187d6a1b6
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import find_packages setup(name='darwin', version='0.1', description='Machine Learning with Genetic Algorithms', author='Will Buxton', author_email='will.buxton88@gmail.com', url='https://github.com/WillBux/darwin', license='MIT', i...
36.526316
61
0.560519
74
694
5.202703
0.702703
0.072727
0.103896
0
0
0
0
0
0
0
0
0.04321
0.299712
694
18
62
38.555556
0.748971
0
0
0
0
0
0.410663
0.033141
0
0
0
0
0
1
0
true
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
44ff99f1966cb25def6a935cc8e8d094b45ac74a
1,276
py
Python
tests/common/test_io.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
1
2017-06-11T01:32:33.000Z
2017-06-11T01:32:33.000Z
tests/common/test_io.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
null
null
null
tests/common/test_io.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from conda.common.io import attach_stderr_handler, captured from logging import DEBUG, NOTSET, WARN, getLogger def test_attach_stderr_handler(): name = 'abbacadabba' logr = getLogger(name) assert le...
28.355556
82
0.679467
174
1,276
4.862069
0.275862
0.099291
0.076832
0.089835
0.56383
0.56383
0.56383
0.483452
0.483452
0.387707
0
0.015106
0.221787
1,276
44
83
29
0.836858
0.033699
0
0.5
0
0
0.085505
0
0
0
0
0
0.5
1
0.03125
false
0
0.09375
0
0.125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
7802f742be27a766b4db20255b494ac4739dd458
1,588
py
Python
components/collector/src/base_collectors/api_source_collector.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/collector/src/base_collectors/api_source_collector.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/collector/src/base_collectors/api_source_collector.py
kargaranamir/quality-time
1c427c61bee9d31c3526f0a01be2218a7e167c23
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""API source collector base classes.""" from abc import ABC from datetime import datetime from collector_utilities.type import URL, Response from model import SourceResponses from .source_collector import SourceCollector, SourceUpToDatenessCollector class JenkinsPluginCollector(SourceCollector, ABC): # skipcq: P...
41.789474
111
0.714106
199
1,588
5.603015
0.361809
0.037668
0.029596
0.040359
0.273543
0.2287
0.2287
0.2287
0.188341
0.188341
0
0.008378
0.173174
1,588
37
112
42.918919
0.840823
0.15995
0
0.111111
0
0
0.219203
0.153986
0
0
0
0
0
1
0
false
0
0.277778
0
0.722222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7803618eb0ae1dc78214daffa6ff69e1281707e9
4,854
py
Python
apps/address/constants.py
ozet-team/ozet-server
4772d37339634adee6ace65a5e2380df4bd22bbb
[ "MIT" ]
null
null
null
apps/address/constants.py
ozet-team/ozet-server
4772d37339634adee6ace65a5e2380df4bd22bbb
[ "MIT" ]
4
2021-11-27T14:15:55.000Z
2021-12-10T12:59:44.000Z
apps/address/constants.py
ozet-team/ozet-server
4772d37339634adee6ace65a5e2380df4bd22bbb
[ "MIT" ]
null
null
null
class AppConstants: ADDRESS = { "서울": [ "강남구", "강동구", "강북구", "강서구", "관악구", "광진구", "구로구", "금천구", "노원구", "도봉구", "동대문구", "동작구", "마포구", "서대문구", ...
19.812245
83
0.183354
301
4,854
2.956811
0.850498
0.013483
0.013483
0
0
0
0
0
0
0
0
0
0.642151
4,854
244
84
19.893443
0.512378
0
0
0.065574
0
0
0.185002
0
0
0
0
0
0
1
0
false
0
0
0
0.008197
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
780711d65aaf7ad757cd312974c9dcd270340af5
6,019
py
Python
aws-blog-campanile/bin/objectcopy.py
securityscorecard/aws-big-data-blog
6c726f60c293f26de57469b9332f92a3807423c5
[ "Apache-2.0" ]
305
2018-03-29T10:45:51.000Z
2022-03-15T16:01:19.000Z
aws-blog-campanile/bin/objectcopy.py
securityscorecard/aws-big-data-blog
6c726f60c293f26de57469b9332f92a3807423c5
[ "Apache-2.0" ]
14
2018-04-26T19:06:35.000Z
2022-02-26T10:50:19.000Z
aws-blog-campanile/bin/objectcopy.py
securityscorecard/aws-big-data-blog
6c726f60c293f26de57469b9332f92a3807423c5
[ "Apache-2.0" ]
204
2018-03-26T23:43:30.000Z
2022-03-20T17:04:41.000Z
#!/usr/bin/python2.7 import sys import os import fileinput import argparse import random import tempfile import ConfigParser # ----------------------------------------------------------------------------- # Support for Hadoop Streaming Sandbox Env # -------------------------------------------------------------------...
38.583333
79
0.511879
584
6,019
5.140411
0.30137
0.026649
0.03964
0.006662
0.224184
0.180213
0.128248
0.10493
0.036309
0.00433
0
0.005896
0.26732
6,019
155
80
38.832258
0.67483
0.160159
0
0.110092
0
0.009174
0.101911
0.010947
0
0
0
0
0
0
null
null
0
0.091743
null
null
0.009174
0
0
0
null
0
0
0
0
0
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
780fad77d312784127e399f00c7f290a144c53ef
325
py
Python
test/test_blog.py
Jn-mic/blog
065e6ce4c71065a2e81c227424da5271300757ea
[ "MIT" ]
null
null
null
test/test_blog.py
Jn-mic/blog
065e6ce4c71065a2e81c227424da5271300757ea
[ "MIT" ]
null
null
null
test/test_blog.py
Jn-mic/blog
065e6ce4c71065a2e81c227424da5271300757ea
[ "MIT" ]
null
null
null
from app.models import User,Post, Comment,Clap from app import db # def setUp(self): # self.user_Jack = User(username = 'Jack',password = 'vila', email = 'jackotienokey@gmail.com') def tearDown(self): Post.query.delete() User.query.delete() Comment.query.delete() Clap.query.del...
29.545455
99
0.646154
42
325
4.97619
0.547619
0.210526
0
0
0
0
0
0
0
0
0
0
0.215385
325
11
100
29.545455
0.819608
0.350769
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7817a693208f067b414838d30d8b8daa4391d49d
1,295
py
Python
src/pytools/viz/util/_matplot.py
BCG-Gamma/pytools
d7be703e0665917cd75b671564d5c0163f13b77b
[ "Apache-2.0" ]
17
2021-01-12T08:07:11.000Z
2022-03-03T22:59:04.000Z
src/pytools/viz/util/_matplot.py
BCG-Gamma/pytools
d7be703e0665917cd75b671564d5c0163f13b77b
[ "Apache-2.0" ]
10
2021-01-08T17:04:39.000Z
2022-01-18T13:21:52.000Z
src/pytools/viz/util/_matplot.py
BCG-Gamma/pytools
d7be703e0665917cd75b671564d5c0163f13b77b
[ "Apache-2.0" ]
1
2021-11-06T00:16:43.000Z
2021-11-06T00:16:43.000Z
""" Utilities related to matplotlib. """ import logging from matplotlib.ticker import Formatter from pytools.api import AllTracker from pytools.meta import SingletonMeta log = logging.getLogger(__name__) # # Exported names # __all__ = ["PercentageFormatter"] # # Ensure all symbols introduced below are included...
20.234375
85
0.620849
168
1,295
4.642857
0.541667
0.141026
0.166667
0.053846
0
0
0
0
0
0
0
0.084577
0.223938
1,295
63
86
20.555556
0.691542
0.542857
0
0
0
0
0.113281
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
781f99b5ecc40a218b95def9a0066c13dd3412a9
717
py
Python
logs_manager/migrations/0006_auto_20200724_0722.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
null
null
null
logs_manager/migrations/0006_auto_20200724_0722.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
7
2020-06-06T01:40:06.000Z
2022-02-10T09:12:56.000Z
logs_manager/migrations/0006_auto_20200724_0722.py
adwait-thattey/raygun_api
9d5571de452fbf70d34b9583ebc42eb662292f61
[ "MIT" ]
1
2021-08-16T13:23:34.000Z
2021-08-16T13:23:34.000Z
# Generated by Django 2.1.5 on 2020-07-24 07:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('logs_manager', '0005_auto_20200724_0647'), ] operations = [ migrations.RemoveField( model_name='analyticlog', name='logobjec...
23.9
58
0.562064
63
717
6.206349
0.68254
0.046036
0
0
0
0
0
0
0
0
0
0.063786
0.322176
717
29
59
24.724138
0.740741
0.062762
0
0.173913
1
0
0.210448
0.034328
0
0
0
0
0
1
0
false
0
0.043478
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7821804bf2b23895276ffd252dcee5238acf418a
559
py
Python
test/test_json.py
Zhu-Jianwei/LaTeX-helper
322bf686d1aee32804013d813d46bd27a4a8325f
[ "MIT" ]
4
2022-03-13T12:02:38.000Z
2022-03-13T15:30:20.000Z
test/test_json.py
Zhu-Jianwei/LaTeX-helper
322bf686d1aee32804013d813d46bd27a4a8325f
[ "MIT" ]
null
null
null
test/test_json.py
Zhu-Jianwei/LaTeX-helper
322bf686d1aee32804013d813d46bd27a4a8325f
[ "MIT" ]
3
2022-02-06T08:05:37.000Z
2022-02-07T08:26:48.000Z
import json json_data =r''' { "Print to console": { "prefix": "log", "body": [ "console.log('$1');", "$2" ], "description": "Log output to console" }, "hello": { "prefix": "hello", "body": [ "hello world" ], ...
18.032258
52
0.415027
48
559
4.75
0.5
0.070175
0
0
0
0
0
0
0
0
0
0.00597
0.400716
559
31
53
18.032258
0.674627
0
0
0.206897
0
0
0.85
0.0375
0
0
0
0
0
1
0
false
0
0.034483
0
0.034483
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7833f40832f2ab477746a194696a73f28e408bad
1,707
py
Python
atari/atari.py
neevparikh/lwm
ec8d27f6c011a732aa58ae04cba66a5bac68f8f8
[ "MIT" ]
17
2020-10-07T08:15:46.000Z
2022-01-10T02:47:53.000Z
atari/atari.py
neevparikh/lwm
ec8d27f6c011a732aa58ae04cba66a5bac68f8f8
[ "MIT" ]
null
null
null
atari/atari.py
neevparikh/lwm
ec8d27f6c011a732aa58ae04cba66a5bac68f8f8
[ "MIT" ]
2
2021-02-19T17:47:17.000Z
2021-03-07T16:41:54.000Z
import torch from gym.spaces.box import Box from baselines import bench from baselines.common.vec_env.shmem_vec_env import ShmemVecEnv from baselines.common.atari_wrappers import wrap_deepmind, make_atari from baselines.common.vec_env import VecEnvWrapper def make_vec_envs(name, num, seed=0, max_ep_len=100000): d...
33.470588
75
0.641476
232
1,707
4.512931
0.357759
0.049666
0.054441
0.042025
0.047755
0
0
0
0
0
0
0.017054
0.244288
1,707
50
76
34.14
0.794574
0
0
0
0
0
0.01406
0
0
0
0
0
0.025
1
0.2
false
0
0.15
0.05
0.525
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7835bab4723390e294981a238603d58b310e255b
1,833
py
Python
05/scrum/board/views.py
mezklador/lightweight-django
9ab23cdc76cfd44f7f76c4901bbd77411076d66b
[ "MIT" ]
null
null
null
05/scrum/board/views.py
mezklador/lightweight-django
9ab23cdc76cfd44f7f76c4901bbd77411076d66b
[ "MIT" ]
null
null
null
05/scrum/board/views.py
mezklador/lightweight-django
9ab23cdc76cfd44f7f76c4901bbd77411076d66b
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from rest_framework import authentication, permissions, viewsets, filters from .forms import TaskFilter, SprintFilter from .models import Sprint, Task from .serializers import SprintSerializer, TaskSerializer, UserSerializer #from django.shortcuts import render User = ge...
30.55
75
0.722313
181
1,833
7.138122
0.469613
0.037152
0.052632
0.048762
0.100619
0.100619
0.100619
0.100619
0.100619
0
0
0.003362
0.188762
1,833
59
76
31.067797
0.865501
0.130387
0
0
0
0
0.042065
0
0
0
0
0
0
1
0
false
0
0.128205
0
0.74359
0.179487
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
783728555589f370b870d328e9622c595d23d1ec
49,243
py
Python
tests/functional/rest/test_client.py
terrorizer1980/copra
2f1262aba63ab70e80b171624da04d7f19829ddf
[ "MIT" ]
48
2018-07-09T00:58:35.000Z
2021-11-14T01:31:21.000Z
tests/functional/rest/test_client.py
terrorizer1980/copra
2f1262aba63ab70e80b171624da04d7f19829ddf
[ "MIT" ]
9
2018-08-19T14:55:36.000Z
2022-03-28T18:44:11.000Z
tests/functional/rest/test_client.py
terrorizer1980/copra
2f1262aba63ab70e80b171624da04d7f19829ddf
[ "MIT" ]
17
2018-11-11T23:12:15.000Z
2022-01-24T18:28:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Functional tests for `copra.rest.Client` class. Without any additional user input, this module will test all of the unauthenticated methods of the copra.rest.Client. An API key for the Coinbase Pro sandbox is required to test the authenticated methods. The key informa...
43.539346
121
0.555653
5,409
49,243
4.90941
0.078758
0.137262
0.055884
0.073696
0.681077
0.626699
0.582866
0.559066
0.499944
0.455922
0
0.021977
0.31438
49,243
1,130
122
43.577876
0.764558
0.045083
0
0.445946
0
0
0.12166
0.001916
0
0
0.000894
0
0.406634
1
0.002457
false
0.011057
0.015971
0
0.019656
0.001229
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
783e184c54f1db06b7ea583543c4cf885d8b04a4
1,315
py
Python
web2py/applications/rip/modules/parseLogic.py
2spmohanty/vcenter-automation
1d10b765ef335087902b0194ed12a61e53807987
[ "Apache-2.0" ]
1
2019-10-02T13:25:03.000Z
2019-10-02T13:25:03.000Z
web2py/applications/rip/modules/parseLogic.py
2spmohanty/vcenter-automation
1d10b765ef335087902b0194ed12a61e53807987
[ "Apache-2.0" ]
null
null
null
web2py/applications/rip/modules/parseLogic.py
2spmohanty/vcenter-automation
1d10b765ef335087902b0194ed12a61e53807987
[ "Apache-2.0" ]
1
2021-11-05T09:51:02.000Z
2021-11-05T09:51:02.000Z
import re analysis_array = {'hvc': '151: 0x10b8 (4,280) ', 'applmgmt': '76: 0x7a0 (1,952) ', 'statsmonitor': '0: 0x0 (0) ', 'analytics': '643: 0x5cb8 (23,736) ', 'rhttpproxy': '0: 0x0 (0) ', 'vapi-endpoint': '912: 0x6d60 (28,000) ', 'vsm': '202: 0x1d90 (7,568) ', 'vmonapi': '71: 0x6a8 (1,7...
65.75
128
0.592395
171
1,315
4.438596
0.725146
0.098814
0.019763
0.060606
0.081686
0
0
0
0
0
0
0.209738
0.187833
1,315
20
129
65.75
0.500936
0.076046
0
0
0
0
0.531381
0.017573
0
0
0.097071
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7846af745a3479a86fe8eba7b12a1d06be8e19d8
2,286
py
Python
PhotoOrg.py
rdgao/PhotoOrg
f45218d17702f2ff93e43c857e27913a174fb8cf
[ "MIT" ]
2
2017-06-02T02:00:47.000Z
2020-09-05T19:04:10.000Z
PhotoOrg.py
rdgao/PhotoOrg
f45218d17702f2ff93e43c857e27913a174fb8cf
[ "MIT" ]
null
null
null
PhotoOrg.py
rdgao/PhotoOrg
f45218d17702f2ff93e43c857e27913a174fb8cf
[ "MIT" ]
null
null
null
#Richard Gao, 2014 #Library of code for image file manipulation #and statistic gathering from os import listdir, path, rename from datetime import datetime import PhotoOrg def findFiles(dir): #get a list of all pictures in the directory dir = checkFolder(dir) if dir is None: return #search for target extensions...
26.894118
86
0.695976
349
2,286
4.532951
0.358166
0.035398
0.043616
0.049305
0.195954
0.195954
0.164349
0.164349
0.164349
0.164349
0
0.010805
0.190289
2,286
85
87
26.894118
0.843868
0.335521
0
0.259259
0
0
0.075434
0
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7846bd187a642e3509aeeb9b0be6e8ea1276892b
2,821
py
Python
torchlib/utils/random/sampler.py
vermouth1992/torchlib
63b2bedb40f670b2d9fbfc0daeab4a8d44623095
[ "MIT" ]
3
2019-07-23T21:32:36.000Z
2022-02-04T23:13:30.000Z
torchlib/utils/random/sampler.py
Sayani21/mbrl-hvac
eb0e2213cc2734b1a8f83e485180cc622ffced5d
[ "MIT" ]
1
2022-03-12T00:52:44.000Z
2022-03-12T00:52:44.000Z
torchlib/utils/random/sampler.py
Sayani21/mbrl-hvac
eb0e2213cc2734b1a8f83e485180cc622ffced5d
[ "MIT" ]
1
2019-07-23T21:32:23.000Z
2019-07-23T21:32:23.000Z
""" A sampler defines a method to sample random data from certain distribution. """ from typing import List import numpy as np class BaseSampler(object): def __init__(self): pass def sample(self, shape, *args): raise NotImplementedError class IntSampler(BaseSampler): def __init__(self...
32.802326
136
0.629918
387
2,821
4.472868
0.211886
0.046216
0.038128
0.062392
0.469093
0.424032
0.332756
0.302715
0.169844
0.169844
0
0.006567
0.24424
2,821
85
137
33.188235
0.805347
0.056009
0
0.280702
0
0
0.092319
0
0
0
0
0
0.105263
1
0.210526
false
0.017544
0.035088
0.052632
0.438596
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
78547897866cc63cf047c71a1fb0bc84a0a8f551
10,079
py
Python
tests/unit_tests/v1/test_kubernetes_methods.py
ddeka2910/hvac
80cf3950157bf003ee6622e6db84bb9d6c90e5f1
[ "Apache-2.0" ]
1
2020-12-14T04:01:10.000Z
2020-12-14T04:01:10.000Z
tests/unit_tests/v1/test_kubernetes_methods.py
TerryHowe/hvac
a6b7f904bfaba3c1133ccc7fa5a0cff0d29340c7
[ "Apache-2.0" ]
2
2019-07-08T03:09:38.000Z
2021-07-08T18:17:51.000Z
tests/unit_tests/v1/test_kubernetes_methods.py
TerryHowe/hvac
a6b7f904bfaba3c1133ccc7fa5a0cff0d29340c7
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import requests_mock from parameterized import parameterized from hvac import Client class TestKubernetesMethods(TestCase): """Unit tests providing coverage for Kubernetes auth backend-related methods/routes.""" @parameterized.expand([ ("default mount point", None, '12...
34.517123
147
0.571188
1,006
10,079
5.421471
0.157058
0.102677
0.049505
0.039787
0.761276
0.724789
0.693986
0.671617
0.648882
0.59571
0
0.039064
0.321857
10,079
291
148
34.635739
0.758888
0.020042
0
0.573077
0
0
0.2
0.040223
0
0
0
0
0.026923
1
0.026923
false
0
0.015385
0
0.046154
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7856542a78848ad39b3fdf129fb9aed087356444
400
py
Python
login/migrations/0002_auto_20200404_2123.py
bbsddn2020/django-user-LinHai-v1.0
b4f1d4c38f9a98d850358eb0dfd93502a2d42907
[ "MIT" ]
null
null
null
login/migrations/0002_auto_20200404_2123.py
bbsddn2020/django-user-LinHai-v1.0
b4f1d4c38f9a98d850358eb0dfd93502a2d42907
[ "MIT" ]
8
2021-03-19T01:39:43.000Z
2022-03-12T00:22:19.000Z
login/migrations/0002_auto_20200404_2123.py
bbsddn2020/django-user-LinHai-v1.0
b4f1d4c38f9a98d850358eb0dfd93502a2d42907
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-04 13:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='c_time', field...
21.052632
79
0.6
45
400
5.2
0.822222
0
0
0
0
0
0
0
0
0
0
0.065972
0.28
400
18
80
22.222222
0.746528
0.1125
0
0
1
0
0.087819
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7859f91bde5be0e471228aaf20e69559dc908a81
2,484
py
Python
script/util/MixIn.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
script/util/MixIn.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
script/util/MixIn.py
demetoir/MLtools
8c42fcd4cc71728333d9c116ade639fe57d50d37
[ "MIT" ]
null
null
null
from multiprocessing.pool import Pool from script.util.Logger import Logger from script.util.misc_util import dump_pickle, load_pickle, dump_json, load_json class LoggerMixIn: def __init__(self, verbose=0): self.verbose = verbose @property def log(self): level = Logger.verbose_...
27.910112
119
0.629227
317
2,484
4.444795
0.192429
0.07665
0.039745
0.039745
0.298084
0.238467
0.238467
0.238467
0.238467
0.238467
0
0.001129
0.287037
2,484
88
120
28.227273
0.794466
0.01087
0
0.349206
0
0
0.072666
0
0
0
0
0
0
1
0.222222
false
0
0.047619
0.047619
0.492063
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
78631bb24e50a8426b5da59ee2705af3b943ad83
361
py
Python
exceptions.py
udartsev/django-geodata
945cac06dd8010733225f7adb0536443cc5ebac6
[ "MIT" ]
null
null
null
exceptions.py
udartsev/django-geodata
945cac06dd8010733225f7adb0536443cc5ebac6
[ "MIT" ]
null
null
null
exceptions.py
udartsev/django-geodata
945cac06dd8010733225f7adb0536443cc5ebac6
[ "MIT" ]
null
null
null
class BaseServerException(Exception): def __init__(self, detail, status_code, message): super().__init__(message) self.detail = detail self.status_code = status_code class SearchFieldRequiered(BaseServerException): def __init__(self): super().__init__(detail='entity', status_co...
32.818182
91
0.714681
38
361
6.263158
0.447368
0.168067
0.092437
0
0
0
0
0
0
0
0
0.010135
0.180055
361
10
92
36.1
0.793919
0
0
0
0
0
0.074792
0
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7864fa9e3feb65d8c57f4031a9b8d6c91a5790ce
269
py
Python
stackoverflow/spiders/items.py
Janeho454199/stackoverflow-spider
6d60fc2d19d22cfeccdb8bca4aa144f3b633850c
[ "MIT" ]
131
2018-03-17T14:59:47.000Z
2022-03-23T02:36:56.000Z
stackoverflow/spiders/items.py
Janeho454199/stackoverflow-spider
6d60fc2d19d22cfeccdb8bca4aa144f3b633850c
[ "MIT" ]
18
2019-02-13T09:15:25.000Z
2021-12-09T21:32:13.000Z
stackoverflow/spiders/items.py
Janeho454199/stackoverflow-spider
6d60fc2d19d22cfeccdb8bca4aa144f3b633850c
[ "MIT" ]
54
2018-03-25T03:30:34.000Z
2022-03-23T02:36:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import scrapy class StackoverflowItem(scrapy.Item): links = scrapy.Field() views = scrapy.Field() votes = scrapy.Field() answers = scrapy.Field() tags = scrapy.Field() questions = scrapy.Field()
17.933333
37
0.63197
31
269
5.483871
0.612903
0.388235
0
0
0
0
0
0
0
0
0
0.004717
0.211896
269
14
38
19.214286
0.79717
0.156134
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
786a7c8d7a83b054334be66c769984509fe218e8
9,774
py
Python
tests/test_covar.py
ComputationalCryoEM/ASPIRE
6e6699eae532874de44b98adb7ddb2ad96c43d9d
[ "MIT" ]
null
null
null
tests/test_covar.py
ComputationalCryoEM/ASPIRE
6e6699eae532874de44b98adb7ddb2ad96c43d9d
[ "MIT" ]
5
2019-06-07T13:25:29.000Z
2019-06-18T20:34:37.000Z
tests/test_covar.py
computationalcryoem/aspyre
6e6699eae532874de44b98adb7ddb2ad96c43d9d
[ "MIT" ]
1
2019-06-18T17:41:52.000Z
2019-06-18T17:41:52.000Z
import os import numpy as np from scipy.cluster.vq import kmeans2 from unittest import TestCase from unittest.mock import patch import pytest from aspyre.source import SourceFilter from aspyre.source.simulation import Simulation from aspyre.basis.fb_3d import FBBasis3D from aspyre.imaging.filters import RadialCTFFilt...
57.83432
152
0.661756
1,403
9,774
4.513899
0.213115
0.080531
0.096637
0.055424
0.597031
0.587084
0.587084
0.553134
0.529133
0.529133
0
0.307514
0.206159
9,774
168
153
58.178571
0.5087
0.1283
0
0.491935
0
0
0.026932
0.012584
0
0
0
0
0.112903
1
0.072581
false
0.008065
0.129032
0
0.209677
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7870afd916a5ff1b2cfabce4e171321789b079fb
820
py
Python
preference/models.py
ASL-19/outline-distribution
6ef595d59c0d7d9416cd1d3c0fb263ba83830126
[ "Apache-2.0" ]
5
2020-12-21T21:19:28.000Z
2022-03-28T00:53:45.000Z
preference/models.py
ASL-19/outline-distribution
6ef595d59c0d7d9416cd1d3c0fb263ba83830126
[ "Apache-2.0" ]
5
2021-01-07T02:32:47.000Z
2022-03-28T14:28:52.000Z
preference/models.py
ASL-19/outline-distribution
6ef595d59c0d7d9416cd1d3c0fb263ba83830126
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 ASL19 Organization # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
27.333333
74
0.72439
119
820
4.94958
0.714286
0.101868
0.044143
0.054329
0
0
0
0
0
0
0
0.019969
0.206098
820
29
75
28.275862
0.884793
0.739024
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
78730c4c34562140b4aa13d567d8e6bd4a0cbb65
784
py
Python
deprecated/ipport-list-to-script-nmap-portgroup-cmds.py
NullByte8080/ipport
fedee1ab956d8d0327b3572c67ebc5b945419aae
[ "MIT" ]
10
2016-11-24T17:36:10.000Z
2022-02-22T03:06:16.000Z
deprecated/ipport-list-to-script-nmap-portgroup-cmds.py
NullByte8080/ipport
fedee1ab956d8d0327b3572c67ebc5b945419aae
[ "MIT" ]
null
null
null
deprecated/ipport-list-to-script-nmap-portgroup-cmds.py
NullByte8080/ipport
fedee1ab956d8d0327b3572c67ebc5b945419aae
[ "MIT" ]
4
2017-09-07T03:11:12.000Z
2020-10-17T17:55:18.000Z
#!/usr/bin/env python ''' convert ip port list nmap commands sorrounded in script statements ''' import sys,re if len(sys.argv) > 1: filename = sys.argv[1] else: sys.stderr.write('Usage: '+sys.argv[0]+' <in-file>\n') sys.exit(1) ips = [] ports = dict() for ip,port in map(lambda x: x.split(), filter(lambda x: re.ma...
31.36
154
0.570153
130
784
3.438462
0.523077
0.040268
0.060403
0.127517
0
0
0
0
0
0
0
0.012559
0.1875
784
24
155
32.666667
0.689168
0.153061
0
0
0
0
0.18569
0.080068
0
0
0
0
0
0
null
null
0
0.0625
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
7878dfadb37ab9ac5e636612f7783f3e1751ae64
3,370
py
Python
app/db/repositories/user.py
Max-Zhenzhera/my_vocab_backend
f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72
[ "MIT" ]
1
2021-11-18T16:25:22.000Z
2021-11-18T16:25:22.000Z
app/db/repositories/user.py
Max-Zhenzhera/my_vocab_backend
f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72
[ "MIT" ]
null
null
null
app/db/repositories/user.py
Max-Zhenzhera/my_vocab_backend
f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72
[ "MIT" ]
null
null
null
from datetime import datetime from uuid import uuid4 from typing import ( ClassVar, TypeVar, Union ) from sqlalchemy import update as sa_update from sqlalchemy.future import select as sa_select from sqlalchemy.sql.elements import BinaryExpression from .base import BaseRepository from .types_ import ModelT...
34.742268
98
0.694659
395
3,370
5.605063
0.235443
0.072267
0.03523
0.04065
0.33785
0.278681
0.195122
0.195122
0.129178
0.129178
0
0.000762
0.221068
3,370
96
99
35.104167
0.842667
0.028487
0
0.12987
0
0
0.054401
0.007029
0
0
0
0
0
1
0.038961
false
0.090909
0.155844
0.025974
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7878f45b36afa40f0d3868d56e6815cb872b5fa0
713
py
Python
docs/index-7.py
farisachugthai/rtdpy
ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce
[ "MIT" ]
5
2019-12-28T19:53:57.000Z
2021-09-14T19:59:25.000Z
docs/index-7.py
farisachugthai/rtdpy
ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce
[ "MIT" ]
3
2019-08-19T11:29:01.000Z
2020-11-10T21:09:41.000Z
docs/index-7.py
farisachugthai/rtdpy
ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce
[ "MIT" ]
5
2019-03-19T08:35:15.000Z
2020-11-06T20:23:32.000Z
from scipy import optimize # Generate noisy data from NCSTR system with tau=10 and n=2 a = rtdpy.Ncstr(tau=10, n=2, dt=1, time_end=50) xdata = a.time noisefactor = 0.01 ydata = a.exitage \ + (noisefactor * (np.random.rand(a.time.size) - 0.5)) def f(xdata, tau, n): a = rtdpy.Ncstr(tau=tau, n=n, dt=1, time_end=...
33.952381
59
0.635344
132
713
3.401515
0.439394
0.066815
0.08686
0.066815
0.080178
0
0
0
0
0
0
0.055077
0.185133
713
21
60
33.952381
0.717728
0.130435
0
0
1
0
0.098706
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
787d74e97c95f1df67c3e62879aee9f69a021e02
1,653
py
Python
Bugscan_exploits-master/exp_list/exp-2405.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-2405.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-2405.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!usr/bin/env python # *-* coding:utf-8 *-* ''' name: TRS学位论文系统papercon处SQL注入 author: yichin refer: http://www.wooyun.org/bugs/wooyun-2010-0124453 description: paper/submit1.jsp POST stacked queries; AND/OR time-based blind google dork: intitle:"学位论文服务系统" ''' import time def assign(service, arg)...
38.44186
179
0.630369
261
1,653
3.888889
0.45977
0.015764
0.023645
0.031527
0.393103
0.306404
0.283744
0.283744
0.283744
0.283744
0
0.071001
0.190563
1,653
43
180
38.44186
0.687593
0.206897
0
0.16
0
0.08
0.41256
0.283784
0
0
0
0
0
1
0.08
false
0.08
0.08
0
0.28
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
787e44f31c1c1961203ac8ac66cfb4c727e970b2
519
py
Python
migrations/0007_doubleentry_account.py
PyUnchained/books
656d375765300accb1767a8ab1bf4b96c884539f
[ "MIT" ]
null
null
null
migrations/0007_doubleentry_account.py
PyUnchained/books
656d375765300accb1767a8ab1bf4b96c884539f
[ "MIT" ]
14
2019-10-23T00:01:18.000Z
2022-03-11T23:38:52.000Z
migrations/0007_doubleentry_account.py
PyUnchained/books
656d375765300accb1767a8ab1bf4b96c884539f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2020-01-24 00:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('books', '0006_auto_20200124_0048'), ] operations = [ migrations.AddField( model_name='doubleent...
24.714286
112
0.637765
59
519
5.508475
0.677966
0.073846
0.086154
0.135385
0
0
0
0
0
0
0
0.081841
0.246628
519
20
113
25.95
0.749361
0.086705
0
0
1
0
0.125
0.048729
0
0
0
0
0
1
0
false
0
0.142857
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7883b1c92ae0cd35356f8bfc3d8f7d8485f000d8
687
py
Python
tests/test-cli.py
zondo/pypkg
edbd2b1d8aab1c2c0de219ac74c16688939591b9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test-cli.py
zondo/pypkg
edbd2b1d8aab1c2c0de219ac74c16688939591b9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test-cli.py
zondo/pypkg
edbd2b1d8aab1c2c0de219ac74c16688939591b9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# TODO: update or remove this file from pytest import raises from pypkg import cli def test_main(capsys): cli.main([]) captured = capsys.readouterr() assert "write me" in captured.err def test_usage(capsys): with raises(SystemExit): cli.main(["-h"]) captured = capsys.readouterr() ...
20.818182
66
0.656477
84
687
5.309524
0.5
0.078475
0.134529
0.134529
0.121076
0
0
0
0
0
0
0
0.215429
687
32
67
21.46875
0.827458
0.046579
0
0.3
0
0
0.101072
0
0
0
0
0.03125
0.1
1
0.2
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7884640c82209137373642e0fa1bd092ed891be6
7,284
py
Python
examples/_todo/http2-upload.py
karpierz/libcurl
531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8
[ "Zlib" ]
null
null
null
examples/_todo/http2-upload.py
karpierz/libcurl
531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8
[ "Zlib" ]
null
null
null
examples/_todo/http2-upload.py
karpierz/libcurl
531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8
[ "Zlib" ]
null
null
null
#*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|...
31.128205
82
0.605711
965
7,284
4.38342
0.312953
0.030733
0.039953
0.034752
0.238061
0.185106
0.119622
0.053901
0.036879
0.018913
0
0.013503
0.267985
7,284
233
83
31.261803
0.77982
0.233251
0
0.137681
0
0
0.058577
0
0
0
0
0
0
0
null
null
0
0.036232
null
null
0.057971
0
0
0
null
0
0
0
0
0
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
7885663aa4d13fc0c192951f418e5a31c44b6f75
669
py
Python
tasks.py
joeblackwaslike/pyramid_bootstrap
fc2ee51f9d2d3853a00e44d92c4635d61b638671
[ "BSD-3-Clause" ]
1
2018-10-03T14:28:54.000Z
2018-10-03T14:28:54.000Z
tasks.py
joeblackwaslike/pyramid_bootstrap
fc2ee51f9d2d3853a00e44d92c4635d61b638671
[ "BSD-3-Clause" ]
2
2018-11-17T06:39:30.000Z
2018-11-17T07:00:58.000Z
tasks.py
joeblackwaslike/pyramid_bootstrap
fc2ee51f9d2d3853a00e44d92c4635d61b638671
[ "BSD-3-Clause" ]
null
null
null
from invoke import task @task def test(ctx): ctx.run('pytest --cov tests') @task def install(ctx): ctx.run('pip3 install -e ".[testing]"') @task def check(ctx): ctx.run('pyroma .') ctx.run('pylint pyramid_bootstrap') ctx.run('pycodestyle') @task def clean(ctx): ctx.run('rm -rf build dist...
17.153846
78
0.620329
89
669
4.640449
0.516854
0.116223
0.108959
0
0
0
0
0
0
0
0
0.011385
0.212257
669
38
79
17.605263
0.772296
0
0
0.192308
0
0
0.334828
0
0
0
0
0
0
1
0.230769
false
0
0.038462
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
788bc7f4dda393bb2e1b1e58a66b9417d93958ac
6,569
py
Python
Autonomous_Control/Image_Processing/3_Coordinate_Transformation.py
tatsujin16/Intellectual_Robot_Contest_2019
2dfdcb11ecea991dbbf053f8a71dd7e0838c4626
[ "BSD-3-Clause" ]
null
null
null
Autonomous_Control/Image_Processing/3_Coordinate_Transformation.py
tatsujin16/Intellectual_Robot_Contest_2019
2dfdcb11ecea991dbbf053f8a71dd7e0838c4626
[ "BSD-3-Clause" ]
1
2019-02-02T12:06:22.000Z
2019-02-02T12:06:22.000Z
Autonomous_Control/Image_Processing/3_Coordinate_Transformation.py
tatsujin16/Intellectual_Robot_Contest_2019
2dfdcb11ecea991dbbf053f8a71dd7e0838c4626
[ "BSD-3-Clause" ]
1
2022-03-19T07:37:41.000Z
2022-03-19T07:37:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import rospy import cv2 import math import numpy as np from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError from geometry_msgs.msg import Twist class first(object): def __init__(self): #sub self._sub_tag0 = rospy.Subscriber('/tag0_info', Twis...
32.519802
99
0.662506
1,099
6,569
3.704277
0.165605
0.035372
0.019897
0.014738
0.329403
0.309998
0.218865
0.188897
0.164333
0.140752
0
0.035375
0.182372
6,569
201
100
32.681592
0.722584
0.031664
0
0.248588
0
0
0.037777
0
0
0
0
0
0
0
null
null
0.00565
0.039548
null
null
0.022599
0
0
0
null
0
0
0
0
0
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
788d68479fe04280827b76769dc0786af1cc14a6
2,674
py
Python
dev/examples/tungraph.py
Cam2337/snap-python
0bf722b461f8b5aae3ecb2757313521e9e9e76f1
[ "BSD-3-Clause" ]
242
2015-01-01T08:40:28.000Z
2022-03-18T05:22:09.000Z
dev/examples/tungraph.py
Cam2337/snap-python
0bf722b461f8b5aae3ecb2757313521e9e9e76f1
[ "BSD-3-Clause" ]
99
2015-01-24T07:55:27.000Z
2021-10-30T18:20:13.000Z
dev/examples/tungraph.py
Cam2337/snap-python
0bf722b461f8b5aae3ecb2757313521e9e9e76f1
[ "BSD-3-Clause" ]
105
2015-03-03T06:45:17.000Z
2022-02-24T15:52:40.000Z
import random import sys sys.path.append("../swig-r") import snap def PrintGStats(s, Graph): ''' Print graph statistics ''' print "graph %s, nodes %d, edges %d, empty %s" % ( s, Graph.GetNodes(), Graph.GetEdges(), "yes" if Graph.Empty() else "no") def DefaultConstructor(): ''' ...
21.739837
81
0.590501
297
2,674
5.289562
0.3367
0.098663
0.032463
0.028008
0.061108
0.061108
0.038192
0.038192
0
0
0
0.022268
0.277861
2,674
122
82
21.918033
0.7913
0.081152
0
0.180556
0
0
0.174596
0.081624
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.069444
0
0
0
null
0
0
0
0
0
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
788e0638a7912e25398b0f82d66adabc2d629b91
1,381
py
Python
weighted_round_robin.py
ppd0705/cheatsheet
224a50cb69ad82d4134b2b40a204731b2d71c22d
[ "MIT" ]
null
null
null
weighted_round_robin.py
ppd0705/cheatsheet
224a50cb69ad82d4134b2b40a204731b2d71c22d
[ "MIT" ]
null
null
null
weighted_round_robin.py
ppd0705/cheatsheet
224a50cb69ad82d4134b2b40a204731b2d71c22d
[ "MIT" ]
null
null
null
from typing import List class ServerConfig: def __init__(self, addr: str, weight: int): self.addr: str = addr self.weight: int = weight self.cur_weight: int = 0 def __repr__(self): return f"\n [Server]addr:{self.addr}, weigh:{self.weight}, cur_weight:{self.cur_weight}" cl...
24.660714
99
0.577118
180
1,381
4.194444
0.266667
0.145695
0.203974
0.07947
0.193377
0.157616
0
0
0
0
0
0.033916
0.295438
1,381
55
100
25.109091
0.742035
0
0
0
0
0.025
0.088342
0.038378
0
0
0
0
0
1
0.15
false
0
0.025
0.025
0.275
0.05
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
788e8236832189bd8502b010fdb3dd0a1e59ce61
2,181
py
Python
project/store/migrations/0014_auto_20220225_2209.py
aliharby12/Book-Store
d2d1d374f58ad1e64e5e470567f6cf347f5cf09a
[ "MIT" ]
null
null
null
project/store/migrations/0014_auto_20220225_2209.py
aliharby12/Book-Store
d2d1d374f58ad1e64e5e470567f6cf347f5cf09a
[ "MIT" ]
null
null
null
project/store/migrations/0014_auto_20220225_2209.py
aliharby12/Book-Store
d2d1d374f58ad1e64e5e470567f6cf347f5cf09a
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-02-25 22:09 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('store', '0013_auto_20220224_2311'), ] operations = [ migrations.RenameMod...
38.946429
121
0.581843
224
2,181
5.486607
0.419643
0.032547
0.045566
0.071603
0.387307
0.310822
0.25712
0.25712
0.25712
0.133442
0
0.032134
0.286566
2,181
55
122
39.654545
0.757712
0.021091
0
0.306122
1
0
0.093296
0.010783
0
0
0
0
0
1
0
false
0
0.061224
0
0.122449
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
789ecd7f205ac32e1321d079bdbf084feed9bd43
2,628
py
Python
volunteerapp/views.py
mclark4386/volunteer_connection
d869da4ada3cf17d5ff857ecab9e486b696063aa
[ "MIT" ]
null
null
null
volunteerapp/views.py
mclark4386/volunteer_connection
d869da4ada3cf17d5ff857ecab9e486b696063aa
[ "MIT" ]
31
2017-10-23T20:21:11.000Z
2017-12-14T00:28:56.000Z
volunteerapp/views.py
mclark4386/volunteer_connection
d869da4ada3cf17d5ff857ecab9e486b696063aa
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth import authenticate, login from django.views.generic import View from django.contrib.auth.models import User from .forms import UserForm from .models import UserProfile, Project, Tag from .search import get_query def Leaderboard...
36.5
110
0.651065
316
2,628
5.281646
0.316456
0.03595
0.05692
0.055722
0.115039
0.115039
0.051528
0.051528
0
0
0
0.00501
0.240487
2,628
71
111
37.014085
0.831162
0.040335
0
0.035088
0
0
0.098927
0.047279
0
0
0
0
0
1
0.087719
false
0.070175
0.122807
0
0.385965
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
78a80518172fc9f436295e54d6a5409fd478b55c
12,592
py
Python
registration.py
shubham9019/omega_attendance_manager
8380be39c73ee80881a0d85e31fa6d77241b6ef7
[ "MIT" ]
null
null
null
registration.py
shubham9019/omega_attendance_manager
8380be39c73ee80881a0d85e31fa6d77241b6ef7
[ "MIT" ]
null
null
null
registration.py
shubham9019/omega_attendance_manager
8380be39c73ee80881a0d85e31fa6d77241b6ef7
[ "MIT" ]
2
2021-10-04T16:11:28.000Z
2021-10-04T16:26:48.000Z
from tkinter import * from tkinter import messagebox import sys import os import signal import time from subprocess import * from tkinter.scrolledtext import ScrolledText import sqlite3 def file_previous_close(): try: with open('home_id.txt', 'r') as f: lines = f.read().splitlines() ...
36.183908
592
0.623015
1,554
12,592
4.918275
0.217503
0.029308
0.018317
0.025644
0.298181
0.2325
0.203847
0.177941
0.171137
0.171137
0
0.015591
0.261436
12,592
347
593
36.288184
0.806237
0.020966
0
0.192771
0
0.028112
0.231988
0.018764
0.004016
0
0
0
0
1
0.060241
false
0.064257
0.040161
0
0.104418
0.072289
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
78b6b965994bd0785c77caa03eeb03a96a7b1651
3,936
py
Python
mc_states/modules/mc_supervisor.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
18
2015-02-22T12:53:50.000Z
2019-03-15T16:45:10.000Z
doc/sphinx/mc_states/modules/mc_supervisor.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
20
2015-01-20T22:35:02.000Z
2017-11-06T11:17:34.000Z
doc/sphinx/mc_states/modules/mc_supervisor.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
5
2015-01-13T04:23:09.000Z
2019-01-03T17:00:31.000Z
# -*- coding: utf-8 -*- ''' .. _module_mc_supervisor: mc_supervisor / supervisor functions ============================================ ''' # Import python libs import logging import mc_states.api __name = 'supervisor' log = logging.getLogger(__name__) def settings(): ''' supervisor settings loca...
34.226087
72
0.423526
282
3,936
5.638298
0.471631
0.022642
0.037736
0.041509
0
0
0
0
0
0
0
0.021538
0.422002
3,936
114
73
34.526316
0.677363
0.066311
0
0.089888
0
0
0.335991
0.124828
0
0
0
0
0
1
0.022472
false
0.05618
0.022472
0
0.067416
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
78d0fdc99eef8a84cba546e1e44176c8661c6b32
354
py
Python
test_frame/test_redis_ack_able/test_redis_ack_able_consumer.py
DJMIN/funboost
7570ca2909bb0b44a1080f5f98aa96c86d3da9d4
[ "Apache-2.0" ]
120
2021-12-26T03:27:12.000Z
2022-03-31T16:20:44.000Z
test_frame/test_redis_ack_able/test_redis_ack_able_consumer.py
mooti-barry/funboost
2cd9530e2c4e5a52fc921070d243d402adbc3a0e
[ "Apache-2.0" ]
18
2021-12-31T06:26:37.000Z
2022-03-31T16:16:33.000Z
test_frame/test_redis_ack_able/test_redis_ack_able_consumer.py
mooti-barry/funboost
2cd9530e2c4e5a52fc921070d243d402adbc3a0e
[ "Apache-2.0" ]
27
2021-12-26T16:12:31.000Z
2022-03-26T17:43:08.000Z
""" 这个是用来测试,以redis为中间件,随意关闭代码会不会造成任务丢失的。 """ import time from funboost import boost,BrokerEnum @boost('test_cost_long_time_fun_queue2', broker_kind=BrokerEnum.REDIS_ACK_ABLE, concurrent_num=5) def cost_long_time_fun(x): print(f'正在消费 {x} 中 。。。。') time.sleep(3) print(f'消费完成 {x} ') if __name__ == '__main__'...
23.6
97
0.731638
52
354
4.538462
0.673077
0.101695
0.152542
0.190678
0
0
0
0
0
0
0
0.009709
0.127119
354
15
98
23.6
0.754045
0.101695
0
0
0
0
0.199357
0.096463
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.333333
0.222222
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
78d6ac1780a834d58960d00f2b454d544cc545be
320
py
Python
a-practical-introduction-to-python-programming-brian-heinold/chapter-01/exercise-07.py
elarabyelaidy19/awesome-reading
5c01a4272ba58e4f7ea665aab14b4c0aa252ea89
[ "MIT" ]
31
2021-11-02T19:51:13.000Z
2022-02-17T10:55:26.000Z
a-practical-introduction-to-python-programming-brian-heinold/chapter-01/exercise-07.py
MosTafaHoSamm/awesome-reading
469408fefc049d78ed53a2b2331b5d5cecdc6c06
[ "MIT" ]
1
2022-01-18T12:27:54.000Z
2022-01-18T12:27:54.000Z
a-practical-introduction-to-python-programming-brian-heinold/chapter-01/exercise-07.py
MosTafaHoSamm/awesome-reading
469408fefc049d78ed53a2b2331b5d5cecdc6c06
[ "MIT" ]
3
2022-01-11T05:01:34.000Z
2022-02-05T14:36:29.000Z
# Write a program that asks the user for a weight in kilograms and converts it to pounds. There # are 2.2 pounds in a kilogram. # Enter a weight in kilograms: 7 # The weight in pounds is: 15.4 kilograms = eval(input('Enter a weight in kilograms: ')) pounds = kilograms * 2.2 print('The weight in pounds is:', pounds)
29.090909
95
0.721875
57
320
4.052632
0.491228
0.17316
0.116883
0.233766
0.363636
0
0
0
0
0
0
0.031008
0.19375
320
10
96
32
0.864341
0.575
0
0
0
0
0.40458
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1520a48351b4834a95ad9f000db6325507ab5753
5,836
py
Python
wt_plus/core/http.py
andersoncustodio/wt-plus
b31b782fb4dde8a0d92f5aa478797a929a0f8d0c
[ "BSD-3-Clause" ]
1
2022-02-20T19:15:22.000Z
2022-02-20T19:15:22.000Z
wt_plus/core/http.py
andersoncustodio/wt-plus
b31b782fb4dde8a0d92f5aa478797a929a0f8d0c
[ "BSD-3-Clause" ]
null
null
null
wt_plus/core/http.py
andersoncustodio/wt-plus
b31b782fb4dde8a0d92f5aa478797a929a0f8d0c
[ "BSD-3-Clause" ]
null
null
null
import os import re from jinja2 import Template class Http(object): def __init__(self, config): self.config = config def install(self): os.system(rf'mkdir -p {self.config.wt_config_path}/sites') os.system(rf'mkdir -p {self.config.wt_config_path}/log') os.system(rf'mkdir -p {s...
38.649007
117
0.576251
727
5,836
4.45392
0.191197
0.061767
0.048178
0.048178
0.492897
0.413218
0.344348
0.286288
0.273935
0.247375
0
0.014778
0.304318
5,836
150
118
38.906667
0.782759
0.008568
0
0.205128
0
0.042735
0.293273
0.154245
0
0
0
0
0
1
0.08547
false
0.051282
0.025641
0
0.128205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1529448fe3457ec4ff872b8296c0cfa1eb4b79fd
1,696
py
Python
observations/r/edc_t.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/edc_t.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/edc_t.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def edc_t(path): """EPICA Dome C Ice Core 800KYr Temperature Estimates ...
25.313433
77
0.683962
244
1,696
4.614754
0.581967
0.01421
0.042629
0.040853
0.039076
0
0
0
0
0
0
0.023202
0.237618
1,696
66
78
25.69697
0.847641
0.540684
0
0
0
0
0.086675
0
0
0
0
0
0
1
0.045455
false
0
0.409091
0
0.5
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
0
0
0
0
1
0
0
0
0
1
152baac0bcb386cd9039bbdf5a3fc9368ffcc277
449
py
Python
packages/w3af/w3af/core/controllers/tests/pylint_plugins/scapy_fix.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/controllers/tests/pylint_plugins/scapy_fix.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/controllers/tests/pylint_plugins/scapy_fix.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
from astroid import MANAGER, register_module_extender from astroid.builder import AstroidBuilder CODE_FIX = """ class IP(object): pass class TCP(object): pass class UDP(object): pass class traceroute(object): def __init__(domain, dport=80, maxttl=1): pass """ def scapy_transform(): return AstroidBui...
21.380952
67
0.755011
58
449
5.62069
0.551724
0.092025
0.138037
0
0
0
0
0
0
0
0
0.007792
0.142539
449
20
68
22.45
0.838961
0
0
0
0
0
0.36971
0
0
0
0
0
0
1
0.142857
false
0.285714
0.142857
0.071429
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1531dbe5c427016a8df4fde2687fdccee363670d
428
py
Python
exercises/es/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): import spacy.tokens import spacy.lang.de assert isinstance( nlp, spacy.lang.de.German ), "El objeto nlp debería ser un instance de la clase de alemán." assert isinstance( doc, spacy.tokens.Doc ), "¿Procesaste el texto con el objeto nlp para crear un doc?" assert ...
30.571429
84
0.658879
63
428
4.380952
0.603175
0.07971
0.07971
0
0
0
0
0
0
0
0
0
0.235981
428
13
85
32.923077
0.83792
0
0
0.181818
0
0
0.420561
0
0
0
0
0
0.272727
1
0.090909
true
0
0.181818
0
0.272727
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
0
0
1
0
0
0
0
0
0
1
153b36c3ab1564adaec52e59c3f3bdda7d0a41bf
1,091
py
Python
resources/libraries/python/TLDK/TLDKConstants.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
resources/libraries/python/TLDK/TLDKConstants.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
resources/libraries/python/TLDK/TLDKConstants.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Cisco and/or its affiliates. # 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 ag...
34.09375
74
0.740605
158
1,091
5.063291
0.582278
0.075
0.0375
0.0525
0.045
0
0
0
0
0
0
0.008979
0.183318
1,091
31
75
35.193548
0.888889
0.741522
0
0
0
0
0.347656
0.28125
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
153d87e711b2229f4d6b50d986f38e678169f1ca
2,423
py
Python
comsyl/utils/Logger.py
s-sajid-ali/comsyl
f2a5d984b1e870d203a9152bbeca804c4304850e
[ "MIT" ]
2
2020-07-22T06:50:55.000Z
2021-01-10T05:26:59.000Z
comsyl/utils/Logger.py
s-sajid-ali/comsyl
f2a5d984b1e870d203a9152bbeca804c4304850e
[ "MIT" ]
1
2017-07-06T09:55:30.000Z
2017-07-06T09:55:30.000Z
comsyl/utils/Logger.py
s-sajid-ali/comsyl
f2a5d984b1e870d203a9152bbeca804c4304850e
[ "MIT" ]
4
2019-12-09T18:27:36.000Z
2021-01-10T05:27:03.000Z
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2017 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal #...
30.2875
79
0.651671
323
2,423
4.773994
0.489164
0.057069
0.023346
0.023346
0.022049
0
0
0
0
0
0
0.009714
0.192736
2,423
79
80
30.670886
0.77863
0.45357
0
0
0
0
0.093913
0
0
0
0
0
0
1
0.277778
false
0
0.083333
0.055556
0.444444
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
15557b0acfa632452741f9b804e97b7b1326c532
497
py
Python
python/iterables-and-iterators/sol.py
natebwangsut/hackerrank
548daf5d8e976031f839fba384755536a4d92869
[ "MIT" ]
null
null
null
python/iterables-and-iterators/sol.py
natebwangsut/hackerrank
548daf5d8e976031f839fba384755536a4d92869
[ "MIT" ]
null
null
null
python/iterables-and-iterators/sol.py
natebwangsut/hackerrank
548daf5d8e976031f839fba384755536a4d92869
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Hackerrank Solution - Nate B. Wangsutthitham <@natebwangsut | nate.bwangsut@gmail.com> """ __author__ = "Nate B. Wangsutthitham" __credits__ = ["Nate B. Wangsutthitham"] __license__ = "MIT" __version__ = "1.0.0" __maintainer__ = "Nate B. Wangsutthitham" __email__ = "nate.bwangsut@gmail.com" ...
19.115385
48
0.704225
64
497
5.09375
0.59375
0.06135
0.233129
0.122699
0
0
0
0
0
0
0
0.006977
0.134809
497
25
49
19.88
0.751163
0.215292
0
0
0
0
0.256545
0.060209
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1558f878e6d53f74f8dea1a8a029e87ceea27170
774
py
Python
app/exception.py
hggffhhfg/project_clever
fe0f954765c8570f504b6b92430333eef0658fc9
[ "MIT" ]
null
null
null
app/exception.py
hggffhhfg/project_clever
fe0f954765c8570f504b6b92430333eef0658fc9
[ "MIT" ]
null
null
null
app/exception.py
hggffhhfg/project_clever
fe0f954765c8570f504b6b92430333eef0658fc9
[ "MIT" ]
null
null
null
class TimeInBedLessSleepError(Exception): """Ошибка возникающая, если время проведенное в кровати меньше времени сна""" pass class NonUniqueNotationDate(Exception): """Ошибка возникающая, если при импортировании файла с записями находится запись с датой, которая уже существует в дневнике сна/базе данн...
33.652174
93
0.710594
86
774
6.395349
0.651163
0.109091
0.094545
0.109091
0
0
0
0
0
0
0
0
0.18863
774
22
94
35.181818
0.875796
0.268734
0
0.133333
0
0
0.575318
0
0
0
0
0
0
1
0
false
0.133333
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
155c943d731c9fffb4028721fc8f1209e9ca0e8b
354
py
Python
Operation/Sub.py
janvi16/-HACKTOBERFEST2K20
aa9c8b6f7feb245793c0a003ba6fbea3fca9ca22
[ "Apache-2.0" ]
null
null
null
Operation/Sub.py
janvi16/-HACKTOBERFEST2K20
aa9c8b6f7feb245793c0a003ba6fbea3fca9ca22
[ "Apache-2.0" ]
null
null
null
Operation/Sub.py
janvi16/-HACKTOBERFEST2K20
aa9c8b6f7feb245793c0a003ba6fbea3fca9ca22
[ "Apache-2.0" ]
null
null
null
#python program to subtract two numbers using function def subtraction(x,y): #function definifion for subtraction sub=x-y return sub num1=int(input("please enter first number: "))#input from user to num1 num2=int(input("please enter second number: "))#input from user to num2 print("Subtraction is: ",subtract...
35.4
71
0.754237
54
354
4.944444
0.574074
0.014981
0.104869
0.142322
0.157303
0
0
0
0
0
0
0.019802
0.144068
354
9
72
39.333333
0.861386
0.426554
0
0
0
0
0.358586
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
155db2774fcc01b3f5cf921b0001ee17ef81286e
681
py
Python
workplanner/fields.py
pavelmaksimov/work-planner
e6659e7e00520d32b8bc622909990ba3522046da
[ "Apache-2.0" ]
null
null
null
workplanner/fields.py
pavelmaksimov/work-planner
e6659e7e00520d32b8bc622909990ba3522046da
[ "Apache-2.0" ]
null
null
null
workplanner/fields.py
pavelmaksimov/work-planner
e6659e7e00520d32b8bc622909990ba3522046da
[ "Apache-2.0" ]
null
null
null
from typing import Optional import peewee import pendulum from workplanner.utils import normalize_datetime, strftime_utc class DateTimeUTCField(peewee.DateTimeField): def python_value(self, value: str) -> Optional[pendulum.DateTime]: if value is not None: return pendulum.parse(value, tz=pend...
26.192308
76
0.666667
81
681
5.530864
0.419753
0.046875
0.0625
0.053571
0.071429
0
0
0
0
0
0
0
0.25257
681
25
77
27.24
0.880157
0
0
0.125
0
0
0.041116
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
155f5d6fdc9986ef1c6d5d459061790335cd6046
993
py
Python
wagtail_to_ion/templatetags/content_type_description.py
anfema/wagtail_to_ion
2c042d220f4421f8a277c4bfcbdd65f89d76f4c7
[ "MIT" ]
1
2022-02-22T08:13:16.000Z
2022-02-22T08:13:16.000Z
wagtail_to_ion/templatetags/content_type_description.py
anfema/wagtail_to_ion
2c042d220f4421f8a277c4bfcbdd65f89d76f4c7
[ "MIT" ]
33
2020-11-05T10:30:27.000Z
2022-03-11T12:23:25.000Z
wagtail_to_ion/templatetags/content_type_description.py
anfema/wagtail_to_ion
2c042d220f4421f8a277c4bfcbdd65f89d76f4c7
[ "MIT" ]
null
null
null
from collections import namedtuple from django import template from wagtail_to_ion.models import get_ion_content_type_description_model register = template.Library() @register.simple_tag def content_type_description(app_label, model_name, verbose_name): ContentTypeDescription = get_ion_content_type_descriptio...
34.241379
130
0.787513
115
993
6.382609
0.356522
0.134877
0.209809
0.046322
0.089918
0.089918
0
0
0
0
0
0
0.148036
993
28
131
35.464286
0.867612
0
0
0
0
0
0.06143
0.024169
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.315789
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1561aa03dbe771d5034e94f0d6d20984e6bcc7cc
480
py
Python
src/ukw_intelli_store/__init__.py
Maddonix/ukw-intelli-store
a6ba088e70d5ee2e9499a9c72477833dfccafb0b
[ "MIT" ]
null
null
null
src/ukw_intelli_store/__init__.py
Maddonix/ukw-intelli-store
a6ba088e70d5ee2e9499a9c72477833dfccafb0b
[ "MIT" ]
null
null
null
src/ukw_intelli_store/__init__.py
Maddonix/ukw-intelli-store
a6ba088e70d5ee2e9499a9c72477833dfccafb0b
[ "MIT" ]
null
null
null
''' Package to read and process material export data. To use, initiate an endomaterial object and start exploring! --------- Examples: ## Init from ukw_intelli_store import EndoMaterial em = EndoMaterial(path, path) ## To explore all used materials: em.mat_info ## To explore specific material id em.get_mat_info_f...
16
60
0.7375
75
480
4.493333
0.573333
0.080119
0.053412
0
0
0
0
0
0
0
0
0.007407
0.15625
480
29
61
16.551724
0.824691
0.93125
0
0
0
0
0.208333
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
156605f988cf64194142750c94c848f0887cf602
1,199
py
Python
weibospider/WeiboCookies.py
cirlmcesc/weibo-userdata-crawler
e6bb2740a31701a7c2bda931f6714f105951328d
[ "MIT" ]
3
2018-01-16T07:33:50.000Z
2018-01-21T05:30:43.000Z
weibospider/WeiboCookies.py
cirlmcesc/weibo-userdata-spider
e6bb2740a31701a7c2bda931f6714f105951328d
[ "MIT" ]
null
null
null
weibospider/WeiboCookies.py
cirlmcesc/weibo-userdata-spider
e6bb2740a31701a7c2bda931f6714f105951328d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ weibo login """ import json import os import logging import requests from weibospider.WeiboAccounts import accounts logger = logging.getLogger(__name__) def getCookies(username, password): """ 单个账号登录 """ def getAllAccountsCookies(rconn): """ 将所有账号登录后把cookies存入reids """ for...
27.883721
108
0.664721
133
1,199
5.962406
0.458647
0.080706
0.098361
0.040353
0.080706
0.080706
0.080706
0.080706
0
0
0
0.008147
0.180984
1,199
42
109
28.547619
0.799389
0.076731
0
0
0
0
0.184944
0.019517
0
0
0
0
0
1
0.173913
false
0.217391
0.217391
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
156f7d77d17c563b95530ec46f7751f349e4e705
1,315
py
Python
website/tests/test_practical_info.py
laudrup/ebbamaala
1e6bb3dc625e1613e23cbfd69b9cb4336ab9ef13
[ "MIT" ]
null
null
null
website/tests/test_practical_info.py
laudrup/ebbamaala
1e6bb3dc625e1613e23cbfd69b9cb4336ab9ef13
[ "MIT" ]
8
2020-05-22T11:48:52.000Z
2021-11-06T15:34:23.000Z
website/tests/test_practical_info.py
laudrup/ebbamaala
1e6bb3dc625e1613e23cbfd69b9cb4336ab9ef13
[ "MIT" ]
1
2021-08-03T22:42:18.000Z
2021-08-03T22:42:18.000Z
from unittest import mock from urllib.parse import urlencode from django.conf import settings from django.contrib.auth import get_user_model from django.test import TestCase from website.models import PracticalInfo class PracticalInfoViewTests(TestCase): def setUp(self): User = get_user_model() s...
36.527778
88
0.709506
164
1,315
5.530488
0.414634
0.055127
0.059537
0.06946
0.208379
0.180816
0.180816
0.180816
0.180816
0.180816
0
0.005535
0.175665
1,315
35
89
37.571429
0.831181
0
0
0.185185
0
0
0.114829
0.01597
0
0
0
0
0.185185
1
0.148148
false
0.074074
0.222222
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1571341d83cd432e4e2b3f570d8cc5296c59376d
5,401
py
Python
library/templexer.py
K4zuki/tempcommand
ee5c7474975f08e38492f1a98271c2dde9350333
[ "Apache-2.0" ]
null
null
null
library/templexer.py
K4zuki/tempcommand
ee5c7474975f08e38492f1a98271c2dde9350333
[ "Apache-2.0" ]
null
null
null
library/templexer.py
K4zuki/tempcommand
ee5c7474975f08e38492f1a98271c2dde9350333
[ "Apache-2.0" ]
null
null
null
#-*- coding: utf-8 -*- #!/usr/bin/env python # Copyright (c) 2016 Kazuki Yamamoto # # 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 t...
31.04023
86
0.522681
623
5,401
4.295345
0.298555
0.035874
0.038864
0.038117
0.232063
0.219731
0.150224
0.150224
0.107997
0.095665
0
0.009843
0.341603
5,401
173
87
31.219653
0.742688
0.366784
0
0.293478
0
0
0.037351
0
0
0
0
0
0
0
null
null
0
0.021739
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
15727598d3535ab4c01841285576554553a6132c
3,161
py
Python
kimsta/migrations/0002_auto_20211208_1726.py
Evan-cell/instagram
630031b7a5887392466a0ba84da95e5bac106f39
[ "Unlicense" ]
null
null
null
kimsta/migrations/0002_auto_20211208_1726.py
Evan-cell/instagram
630031b7a5887392466a0ba84da95e5bac106f39
[ "Unlicense" ]
null
null
null
kimsta/migrations/0002_auto_20211208_1726.py
Evan-cell/instagram
630031b7a5887392466a0ba84da95e5bac106f39
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.7 on 2021-12-08 14:26 import cloudinary.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), (...
42.716216
145
0.601708
327
3,161
5.66055
0.29052
0.034576
0.052944
0.083198
0.56618
0.554835
0.422474
0.422474
0.345759
0.293895
0
0.014133
0.26131
3,161
73
146
43.30137
0.778587
0.014236
0
0.492537
1
0
0.085421
0
0
0
0
0
0
1
0
false
0
0.059701
0
0.104478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1573df68f0c7fd25a083bffddc3a0093c5f81f19
2,388
py
Python
python/taskmda/mda/svc/generate_entity_ngrams.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/taskmda/mda/svc/generate_entity_ngrams.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/taskmda/mda/svc/generate_entity_ngrams.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os import pprint from base import BaseObject from base import FileIO from base import MandatoryParamError class GenerateEntityNgrams(BaseObject): def __init__(self, ontology_name: str, some_labels: list, som...
33.166667
102
0.600084
257
2,388
5.36965
0.435798
0.052174
0.034783
0.043478
0.107971
0
0
0
0
0
0
0.026413
0.318258
2,388
71
103
33.633803
0.821253
0.247069
0
0
1
0
0.026878
0
0
0
0
0
0
1
0.054054
false
0
0.243243
0
0.351351
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
157b40f5bd5e10ed04c063e23c30e7f531f7e95b
1,870
py
Python
modules/core/dbshell/dbshell.py
petabyteboy/nixcloud-webservices
a08cab699af8eecee5e9142c0acd50bc44c65c0b
[ "MIT" ]
121
2017-11-18T13:41:58.000Z
2022-03-29T19:11:18.000Z
modules/core/dbshell/dbshell.py
petabyteboy/nixcloud-webservices
a08cab699af8eecee5e9142c0acd50bc44c65c0b
[ "MIT" ]
62
2017-11-18T23:07:04.000Z
2021-07-14T15:47:16.000Z
modules/core/dbshell/dbshell.py
petabyteboy/nixcloud-webservices
a08cab699af8eecee5e9142c0acd50bc44c65c0b
[ "MIT" ]
24
2017-11-18T21:12:18.000Z
2021-06-03T13:50:02.000Z
#!@interpreter@ import os from pwd import getpwnam from argparse import ArgumentParser DBSHELL_CONFIG = @dbshellConfig@ # noqa WEBSERVICES_PREFIX = "/var/lib/nixcloud/webservices" def run_shell(dbname, user, command): os.setuid(getpwnam(user).pw_uid) os.execl(command, command, user, dbname) def determine_w...
34.62963
76
0.668449
235
1,870
5.161702
0.382979
0.04122
0.06925
0.016488
0.044518
0
0
0
0
0
0
0.002104
0.237433
1,870
53
77
35.283019
0.848527
0.01016
0
0.116279
0
0
0.205517
0.015684
0
0
0
0
0
0
null
null
0
0.069767
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
15806f602493b87131d570db5bf0de3988dac8d8
3,115
py
Python
validator/fastq.py
rdgoite/fastq-validation
7a9d074b4c109451d7d71567dbaf4245d2cad716
[ "Apache-2.0" ]
null
null
null
validator/fastq.py
rdgoite/fastq-validation
7a9d074b4c109451d7d71567dbaf4245d2cad716
[ "Apache-2.0" ]
1
2021-06-01T21:45:45.000Z
2021-06-01T21:45:45.000Z
validator/fastq.py
rdgoite/fastq-validation
7a9d074b4c109451d7d71567dbaf4245d2cad716
[ "Apache-2.0" ]
null
null
null
class Validator: PLUS_CHAR = 43 AT_CHAR = 64 def __init__(self): self.validation_results = None self.sequence_symbols = list() for symbol in "ACTGN.": self.sequence_symbols.append(ord(symbol)) self.quality_score_symbols = list() for symbol in "!\"#$%&'()*...
35.804598
90
0.582665
364
3,115
4.684066
0.233516
0.045161
0.025806
0.040469
0.090323
0.064516
0
0
0
0
0
0.013139
0.340289
3,115
86
91
36.22093
0.816545
0.041091
0
0.082192
0
0
0.004025
0
0
0
0
0.011628
0
1
0.123288
false
0
0
0
0.30137
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
15898a995b5971187abab36d048bb1449cd025a4
64,499
py
Python
source/codegen/metadata/nirfsg/enums.py
tdunkle/grpc-device
2c784476327595fdeae06d6a3fc7aaf6daac597e
[ "MIT" ]
24
2021-03-25T18:37:59.000Z
2022-03-03T16:33:56.000Z
source/codegen/metadata/nirfsg/enums.py
tdunkle/grpc-device
2c784476327595fdeae06d6a3fc7aaf6daac597e
[ "MIT" ]
129
2021-04-03T15:16:04.000Z
2022-03-25T21:48:18.000Z
source/codegen/metadata/nirfsg/enums.py
tdunkle/grpc-device
2c784476327595fdeae06d6a3fc7aaf6daac597e
[ "MIT" ]
24
2021-03-31T12:36:14.000Z
2022-02-25T03:01:25.000Z
enums = { 'AmpPath': { 'values': [ { 'documentation': { 'description': ' Sets the amplification path to use the high power path. \n' }, 'name': 'HIGH_POWER', 'value': 16000 }, { ...
34.090381
1,071
0.40013
4,854
64,499
5.230326
0.129378
0.174886
0.055538
0.049551
0.652395
0.59922
0.556759
0.517922
0.477982
0.425713
0
0.039258
0.492907
64,499
1,891
1,072
34.108408
0.736662
0
0
0.350079
0
0.019038
0.4441
0.034373
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1591fda0bf27adaef74f6f31a6d8012b1ea509fa
676
py
Python
utilities/calculate_missing_diffs.py
SafeBreach-Labs/Back2TheFuture
39b5eaf289e694aa9cae1bd26fd1f35b0d4dd0c3
[ "BSD-3-Clause" ]
84
2021-08-07T02:39:50.000Z
2022-03-18T13:20:43.000Z
utilities/calculate_missing_diffs.py
SafeBreach-Labs/Back2TheFuture
39b5eaf289e694aa9cae1bd26fd1f35b0d4dd0c3
[ "BSD-3-Clause" ]
null
null
null
utilities/calculate_missing_diffs.py
SafeBreach-Labs/Back2TheFuture
39b5eaf289e694aa9cae1bd26fd1f35b0d4dd0c3
[ "BSD-3-Clause" ]
13
2021-08-07T15:53:08.000Z
2022-02-02T14:23:06.000Z
# (CWD: executables/amd64 folder) # TODO: finish this import os packages = [] total_executables_packages = len(os.listdir(".")) for package_name in os.listdir("."): packages.append(os.path.join(".", package_name)) without_diffs = [] expected_diffs = 0 for package_path in packages: match_found = os.listdir(packa...
37.555556
74
0.724852
91
676
5.186813
0.406593
0.110169
0.101695
0.076271
0
0
0
0
0
0
0
0.010327
0.140533
676
18
75
37.555556
0.802065
0.072485
0
0
0
0
0.1648
0
0
0
0
0.055556
0
1
0
false
0
0.0625
0
0.0625
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1