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
c20db7889cd3f07686bcf46c9ddb15188d21cd53
113
py
Python
fluentPython/3.tuple.py
Andychu525/python
9c0ac5dafe9354bec394593807136dc9d475fbc3
[ "MIT" ]
2
2017-08-26T04:03:06.000Z
2018-03-28T02:26:53.000Z
fluentPython/3.tuple.py
Andychu525/python
9c0ac5dafe9354bec394593807136dc9d475fbc3
[ "MIT" ]
null
null
null
fluentPython/3.tuple.py
Andychu525/python
9c0ac5dafe9354bec394593807136dc9d475fbc3
[ "MIT" ]
1
2018-03-28T02:26:56.000Z
2018-03-28T02:26:56.000Z
def main(): t = (1, 2, [30, 40]) t[2] += [50, 60] print(t) if __name__ == '__main__': main()
10.272727
26
0.424779
17
113
2.352941
0.705882
0
0
0
0
0
0
0
0
0
0
0.146667
0.336283
113
10
27
11.3
0.386667
0
0
0
0
0
0.072072
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.166667
1
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
2
c22347a9a24ccce06b0699dd37db2f42a5a0ab86
4,346
py
Python
test/test_plants/test_plants/test_fuel_lcoe_calculation.py
alexanderkell/elecsim
35e400809759a8e9a9baa3776344e383b13d8c54
[ "MIT" ]
18
2019-01-18T21:41:49.000Z
2022-02-14T15:49:40.000Z
test/test_plants/test_plants/test_fuel_lcoe_calculation.py
alexanderkell/elecsim
35e400809759a8e9a9baa3776344e383b13d8c54
[ "MIT" ]
40
2020-01-28T22:37:53.000Z
2022-03-12T01:00:07.000Z
test/test_plants/test_plants/test_fuel_lcoe_calculation.py
alexanderkell/elecsim
35e400809759a8e9a9baa3776344e383b13d8c54
[ "MIT" ]
3
2020-08-03T16:45:54.000Z
2021-08-04T07:45:16.000Z
""" File name: test_fuelPlant Date created: 27/11/2018 Feature: #Tests the functionality of the FuelPlant class. """ from unittest import TestCase from pytest import approx from elecsim.role.plants.costs.fuel_plant_cost_calculations import FuelPlantCostCalculations __author__ = "Alexander Kell" __copyright__ = "Copy...
68.984127
506
0.702715
591
4,346
4.918782
0.348562
0.015136
0.018576
0.02064
0.330925
0.322669
0.287582
0.287582
0.287582
0.246302
0
0.415523
0.178785
4,346
62
507
70.096774
0.398991
0.02485
0
0.142857
0
0
0.016079
0
0
0
0
0
0.214286
1
0.166667
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
c225f22f42f17829e373d572464723b6f34475e6
1,986
py
Python
base/site-packages/jsonrpc/__init__.py
edisonlz/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
base/site-packages/jsonrpc/__init__.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
null
null
null
base/site-packages/jsonrpc/__init__.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
from inspect import getargspec from functools import wraps from jsonrpc.site import jsonrpc_site from jsonrpc.exceptions import * def jsonrpc_method(name, authenticated=False, safe=False): def decorator(func): arg_names = getargspec(func)[0][1:] if authenticated: if authenticated is True: arg_...
37.471698
97
0.609768
222
1,986
5.328829
0.310811
0.030431
0.02705
0.027895
0.038039
0
0
0
0
0
0
0.004323
0.301108
1,986
52
98
38.192308
0.847983
0.013595
0
0.1
0
0
0.094021
0
0
0
0
0.019231
0
1
0.06
false
0.12
0.12
0
0.24
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
1
0
0
0
0
0
2
c2288c95aa2ccfc39177125d5048c7694d6ba619
16,112
py
Python
nar_module/nar/pageview_pb2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
null
null
null
nar_module/nar/pageview_pb2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
9
2020-01-28T23:07:43.000Z
2022-02-10T00:36:23.000Z
nar_module/nar/pageview_pb2.py
13520505/bigdataproj
09202c7e13366726415b1111cc93d3083d102cb3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pageview.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf im...
31.841897
1,226
0.737959
1,871
16,112
6.061464
0.113843
0.042324
0.061106
0.02998
0.572436
0.535667
0.508509
0.493695
0.43982
0.43982
0
0.03345
0.133503
16,112
505
1,227
31.904951
0.778884
0.039225
0
0.644295
1
0.002237
0.176786
0.093566
0
0
0
0
0
1
0
false
0
0.011186
0
0.011186
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c22d33010ca0821389226487f0959056b0a901cb
19,292
py
Python
pysnmp/CIENA-CES-MGMT-INTERFACE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CIENA-CES-MGMT-INTERFACE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CIENA-CES-MGMT-INTERFACE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CIENA-CES-MGMT-INTERFACE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CIENA-CES-MGMT-INTERFACE-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:31:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
166.310345
3,465
0.792816
1,889
19,292
8.095818
0.110641
0.009939
0.010397
0.013601
0.419538
0.376708
0.319623
0.319623
0.307788
0.307526
0
0.067379
0.069148
19,292
115
3,466
167.756522
0.784219
0.018142
0
0
0
0
0.184176
0.099984
0
0
0
0
0
1
0
false
0
0.092593
0
0.092593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
c2336ef0bc856fe820447832f35b3a9f59247f4d
799
py
Python
setup.py
RobertLucey/daft-property-price-register
c7b269fb88db8e1038b4221f80145bc406fab830
[ "Unlicense" ]
null
null
null
setup.py
RobertLucey/daft-property-price-register
c7b269fb88db8e1038b4221f80145bc406fab830
[ "Unlicense" ]
null
null
null
setup.py
RobertLucey/daft-property-price-register
c7b269fb88db8e1038b4221f80145bc406fab830
[ "Unlicense" ]
null
null
null
from setuptools import ( find_packages, setup ) INSTALL_REQUIRES = ( 'requests', 'cached_property', 'requests-ip-rotator', 'bs4', 'pandas' ) setup( name='daft_property_price_register', version='0.0.2', python_requires='>=3.5', author='Robert Lucey', url='https://github....
22.828571
73
0.619524
86
799
5.465116
0.569767
0.12766
0.180851
0.265957
0.13617
0.13617
0
0
0
0
0
0.009868
0.239049
799
34
74
23.5
0.763158
0
0
0
0
0
0.433041
0.209011
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
0
0
0
0
null
0
1
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
2
c23ce28586b97ffc3e256b1ef88bbcca8c452666
570
py
Python
mlpug/pytorch/trainers/callbacks/basic.py
nuhame/ml-pug
ed73b337b90759bdb92a6c441c6da49d689a2cca
[ "Apache-2.0" ]
4
2019-12-30T16:12:06.000Z
2022-03-25T15:25:49.000Z
mlpug/pytorch/trainers/callbacks/basic.py
nuhame/mlpug
be9f7c55f7d6616af5303e9350cfd8092d55440b
[ "Apache-2.0" ]
null
null
null
mlpug/pytorch/trainers/callbacks/basic.py
nuhame/mlpug
be9f7c55f7d6616af5303e9350cfd8092d55440b
[ "Apache-2.0" ]
null
null
null
from mlpug.pytorch.multi_processing import MultiProcessingMixin from mlpug.trainers.callbacks.basic import LogProgress as LogProgressBase from mlpug.trainers.callbacks.basic import BatchSizeLogger as BatchSizeLoggerBase class LogProgress(MultiProcessingMixin, LogProgressBase): def __init__(self, *args, **kwargs...
31.666667
94
0.777193
62
570
6.967742
0.596774
0.0625
0.078704
0.12037
0.171296
0.171296
0
0
0
0
0
0
0.150877
570
17
95
33.529412
0.892562
0
0
0
0
0
0.107018
0
0
0
0
0
0
1
0.1
false
0.1
0.3
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
c2403edbe1c010ca6facab9308acd5f1cd4b3d18
219
py
Python
HLTrigger/Configuration/python/HLT_75e33/modules/hltAK4PFPuppiJetsCorrected_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/modules/hltAK4PFPuppiJetsCorrected_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/modules/hltAK4PFPuppiJetsCorrected_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms hltAK4PFPuppiJetsCorrected = cms.EDProducer("CorrectedPFJetProducer", correctors = cms.VInputTag("hltAK4PFPuppiJetCorrector"), src = cms.InputTag("hltAK4PFPuppiJets") )
31.285714
69
0.794521
18
219
9.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0.015306
0.105023
219
6
70
36.5
0.872449
0
0
0
0
0
0.292237
0.214612
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
1
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
2
df9d39e1635c5a69f7790ae08ed10822d534be83
315
py
Python
test_package/conanfile.py
bincrafters/conan-automake_build_aux
94041c528c429890b68f96af9719e95ac2f9dab6
[ "MIT" ]
null
null
null
test_package/conanfile.py
bincrafters/conan-automake_build_aux
94041c528c429890b68f96af9719e95ac2f9dab6
[ "MIT" ]
null
null
null
test_package/conanfile.py
bincrafters/conan-automake_build_aux
94041c528c429890b68f96af9719e95ac2f9dab6
[ "MIT" ]
null
null
null
from conans import ConanFile, tools import os class TestPackageConan(ConanFile): def test(self): assert os.path.isfile(os.path.join(self.deps_cpp_info["automake_build_aux"].rootpath, "compile")) assert os.path.isfile(os.path.join(self.deps_cpp_info["automake_build_aux"].rootpath, "ar-lib"))
31.5
105
0.739683
46
315
4.891304
0.543478
0.106667
0.106667
0.16
0.595556
0.595556
0.595556
0.595556
0.595556
0.595556
0
0
0.126984
315
9
106
35
0.818182
0
0
0
0
0
0.155556
0
0
0
0
0
0.333333
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
df9fd1a6990d0c5b38b34a3e452a3c2271c9aa9f
288
py
Python
pytorch/chapter4.py
dragonnikkirocks/100Days
36a989a6fdb644cde64f9d4f4aa1c03884988fa3
[ "MIT" ]
null
null
null
pytorch/chapter4.py
dragonnikkirocks/100Days
36a989a6fdb644cde64f9d4f4aa1c03884988fa3
[ "MIT" ]
null
null
null
pytorch/chapter4.py
dragonnikkirocks/100Days
36a989a6fdb644cde64f9d4f4aa1c03884988fa3
[ "MIT" ]
null
null
null
import torch a = torch.ones(5) print(a) points = torch.tensor([[4.0,1.0],[5.0,3.0],[2.0,1.0]]) print(points.storage()) print(points) second_point= points[1] print(second_point.storage_offset()) #storage offset is 2 as we need to skip two elements to reach points[1] print(points.stride())
32
108
0.722222
55
288
3.727273
0.490909
0.160976
0.029268
0
0
0
0
0
0
0
0
0.061538
0.097222
288
9
109
32
0.726923
0.243056
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.555556
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
1
0
2
dfb14a548631e8ee3335ffb597c16ebddfe833ba
487
py
Python
myeventhub/exceptions.py
DirectlineDev/python-myeventhub
7d3351cbe22d9cb490f67fac66391a27b1c9e9e1
[ "Apache-2.0" ]
2
2016-03-25T09:42:48.000Z
2016-03-25T09:42:48.000Z
myeventhub/exceptions.py
DirectlineDev/python-myeventhub
7d3351cbe22d9cb490f67fac66391a27b1c9e9e1
[ "Apache-2.0" ]
null
null
null
myeventhub/exceptions.py
DirectlineDev/python-myeventhub
7d3351cbe22d9cb490f67fac66391a27b1c9e9e1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- class EventHubException(Exception): """ Базовый класс исключений для MyEventHub """ pass class InvalidCredentialsException(EventHubException): """ Неверный ID или ключ партнёра для API-запросов """ pass class APIRequestException(EventHubException): """ Ошибка пр...
18.730769
61
0.665298
45
487
7.2
0.711111
0.083333
0
0
0
0
0
0
0
0
0
0.002632
0.219713
487
25
62
19.48
0.85
0.447639
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
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
0
1
1
0
0
0
0
0
2
dfbe19488e9688ce4740cf270eaa602357018d7c
99
py
Python
study_revisao/testes.py
fredericohorst/old_python_studies_498263
639f8a34927d702379848ba905f734bf036ae13f
[ "Apache-2.0" ]
null
null
null
study_revisao/testes.py
fredericohorst/old_python_studies_498263
639f8a34927d702379848ba905f734bf036ae13f
[ "Apache-2.0" ]
null
null
null
study_revisao/testes.py
fredericohorst/old_python_studies_498263
639f8a34927d702379848ba905f734bf036ae13f
[ "Apache-2.0" ]
null
null
null
__author__ = 'frederico' a = [] b = [] a = input('digite a coordenadas iniciais: ') print(a[2:3])
14.142857
44
0.616162
14
99
4.071429
0.785714
0
0
0
0
0
0
0
0
0
0
0.024691
0.181818
99
7
45
14.142857
0.679012
0
0
0
0
0
0.4
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
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
2
dfc001d57a318a1dba9318718b5b372d989ceace
557
py
Python
muddery/game_templates/deprecated/legend2/statements/statement_func_set.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
127
2015-04-16T15:27:59.000Z
2022-03-10T08:35:37.000Z
muddery/game_templates/deprecated/legend2/statements/statement_func_set.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
14
2015-12-17T08:02:18.000Z
2022-01-30T15:15:38.000Z
muddery/game_templates/deprecated/legend2/statements/statement_func_set.py
dongwudanci/muddery
669fbbdb394d04995470e32e94f10d42f3387996
[ "BSD-3-Clause" ]
54
2015-06-23T07:27:45.000Z
2022-02-22T01:46:05.000Z
""" Default statement functions. """ from muddery.statements.statement_func_set import BaseStatementFuncSet import muddery.statements.skill as default_skill import statements.skill as skill class SkillFuncSet(BaseStatementFuncSet): """ Statement functions used in actions. """ def at_creation(self): ...
24.217391
70
0.694794
58
557
6.551724
0.482759
0.126316
0.110526
0.15
0
0
0
0
0
0
0
0
0.219031
557
22
71
25.318182
0.873563
0.172352
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.333333
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
dfc010a191457aee36366d1cd828c842331e498d
127
py
Python
src/kgmk/dsa/math/bit_count/naive/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/math/bit_count/naive/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/math/bit_count/naive/__init__.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
class BitCount(): def __call__(self, n: int) -> int: c = 0 while n: c += n & 1 n >>= 1 return c
15.875
36
0.433071
19
127
2.684211
0.631579
0.078431
0
0
0
0
0
0
0
0
0
0.041096
0.425197
127
8
37
15.875
0.657534
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
dfc1ffa537f37ea606ce940fc391a7794c2e4fef
3,033
py
Python
examples/run.py
quantmew/okex-py
3e96413cd4e6dd5779ff2c47b8c76be53448783d
[ "MIT" ]
32
2021-05-06T01:46:17.000Z
2022-03-09T03:34:24.000Z
examples/run.py
PattonChen/okex-py
cced7f1419da0940a2200ce66d62b4f9539949f2
[ "MIT" ]
3
2021-05-09T14:40:54.000Z
2021-11-24T13:29:30.000Z
examples/run.py
PattonChen/okex-py
cced7f1419da0940a2200ce66d62b4f9539949f2
[ "MIT" ]
14
2021-05-11T23:36:18.000Z
2021-12-28T09:47:35.000Z
import okex.v5.account_api as account import okex.v5.market_api as market import okex.v5.trade_api as trade from okex.v5.ccytype import CcyType from okex.exceptions import OkexRequestException import json import datetime import time import traceback import tqdm import numpy as np import requests from tenacity import ...
31.268041
89
0.704583
390
3,033
5.348718
0.417949
0.020134
0.023011
0.028763
0.139022
0.139022
0.103547
0.103547
0.103547
0.046021
0
0.014159
0.184965
3,033
97
90
31.268041
0.829693
0.0333
0
0
0
0
0.077975
0
0
0
0
0
0
1
0.014085
false
0.056338
0.352113
0.014085
0.380282
0.070423
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
2
dfd6cb48cc9d9c6d738a4dde1c7cd81974adb3d4
2,613
py
Python
torchexpresso/callbacks/__init__.py
phisad/pytorch-expresso
584f13fdaa3a31320381612f57cd520dbb5621ef
[ "MIT" ]
null
null
null
torchexpresso/callbacks/__init__.py
phisad/pytorch-expresso
584f13fdaa3a31320381612f57cd520dbb5621ef
[ "MIT" ]
null
null
null
torchexpresso/callbacks/__init__.py
phisad/pytorch-expresso
584f13fdaa3a31320381612f57cd520dbb5621ef
[ "MIT" ]
1
2021-02-16T13:05:28.000Z
2021-02-16T13:05:28.000Z
from collections import OrderedDict import torch class Callback(object): """ Base class for callbacks. """ def __init__(self, name: str, on_phase=None): # As default, we apply callbacks only during training if on_phase is None: on_phase = ["train", "validate"] sel...
28.402174
106
0.629927
333
2,613
4.642643
0.24024
0.045278
0.03881
0.074386
0.525226
0.452135
0.435317
0.353169
0.336352
0.285252
0
0
0.267126
2,613
91
107
28.714286
0.807311
0.096441
0
0.372881
0
0
0.024263
0
0
0
0
0
0
1
0.288136
false
0.050847
0.033898
0.084746
0.491525
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
1
0
0
0
0
0
2
dfd6ceedfdb0d93a0409369d60200fa6ff30a708
1,332
py
Python
leg_tracker/billcatcher/admin.py
wraldata/venus
f5fb8e9996cca8c5e8cb1c0539b6f6f5d07ab687
[ "MIT" ]
10
2016-05-25T15:42:51.000Z
2016-06-19T03:40:32.000Z
leg_tracker/billcatcher/admin.py
wraldata/venus
f5fb8e9996cca8c5e8cb1c0539b6f6f5d07ab687
[ "MIT" ]
18
2016-05-10T20:38:56.000Z
2021-09-22T17:39:20.000Z
leg_tracker/billcatcher/admin.py
wraldata/venus
f5fb8e9996cca8c5e8cb1c0539b6f6f5d07ab687
[ "MIT" ]
2
2016-05-25T20:24:50.000Z
2018-06-06T14:53:12.000Z
from django.contrib import admin # Register your models here. from .models import Lawmaker from .models import Bill from .models import Rollcall from .models import Vote from .models import Party class LawmakerAdmin(admin.ModelAdmin): list_display = ['name','chamber','party','county_short'] search_fields = ['name']...
31.714286
70
0.755255
165
1,332
5.933333
0.333333
0.073544
0.081716
0.132789
0
0
0
0
0
0
0
0
0.101351
1,332
42
71
31.714286
0.817878
0.06982
0
0.125
0
0
0.206952
0.017785
0
0
0
0
0
1
0
false
0.0625
0.1875
0
0.78125
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
1
0
0
2
dfd72a2a0b82869e595576df17010b0103573fb2
1,933
py
Python
src/main.py
Radarslan/gmail_api
39baae566af3f5fb2b9cd4553f45c17b2bbf134e
[ "MIT" ]
null
null
null
src/main.py
Radarslan/gmail_api
39baae566af3f5fb2b9cd4553f45c17b2bbf134e
[ "MIT" ]
null
null
null
src/main.py
Radarslan/gmail_api
39baae566af3f5fb2b9cd4553f45c17b2bbf134e
[ "MIT" ]
null
null
null
from pprint import pprint from typing import List from googleapiclient.discovery import Resource from googleapiclient.discovery import build from src.filters.body import Body from src.filters.filter import Filter from src.filters.subject import Subject from src.gmail_client import create_message from src.gmail_client...
29.738462
72
0.706674
250
1,933
5.324
0.332
0.052592
0.045079
0.054095
0.169797
0.051089
0.051089
0
0
0
0
0.003266
0.207967
1,933
64
73
30.203125
0.866101
0.150543
0
0
0
0
0.062694
0.018001
0
0
0
0.015625
0
1
0.04878
false
0
0.341463
0
0.439024
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
2
dff0801ba1967593aef5204c0200f3186e55625e
208
py
Python
isodisk/__init__.py
rokroskar/isodisk
1250f41b19a1e02e3176edbf1fc618a046ed9198
[ "MIT" ]
null
null
null
isodisk/__init__.py
rokroskar/isodisk
1250f41b19a1e02e3176edbf1fc618a046ed9198
[ "MIT" ]
null
null
null
isodisk/__init__.py
rokroskar/isodisk
1250f41b19a1e02e3176edbf1fc618a046ed9198
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for isodisk.""" __author__ = """Rok Roskar""" __email__ = 'rok.roskar@sdsc.ethz.ch' __version__ = '0.1.0' from . import diskfitting from . import parallel_util
18.909091
37
0.673077
28
208
4.535714
0.821429
0.141732
0
0
0
0
0
0
0
0
0
0.022472
0.144231
208
10
38
20.8
0.691011
0.254808
0
0
0
0
0.255034
0.154362
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
dff1730f26c13a11d88d08aeb412078e7fb15f16
593
py
Python
vision-plugins/src/bsmu/vision/plugins/loaders/dicom/multi_frame.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
2
2019-10-15T11:34:17.000Z
2021-02-03T10:46:07.000Z
vision-plugins/src/bsmu/vision/plugins/loaders/dicom/multi_frame.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
null
null
null
vision-plugins/src/bsmu/vision/plugins/loaders/dicom/multi_frame.py
IvanKosik/vision
74603d4b727e6d993b562eb4656952e29173323e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import pydicom from bsmu.vision.core.image.base import VolumeImage from bsmu.vision.plugins.loaders.base import FileLoaderPlugin, FileLoader class MultiFrameDicomFileLoaderPlugin(FileLoaderPlugin): def __init__(self): super().__init__(MultiFrameDicomFileLoader) class...
26.954545
73
0.750422
62
593
6.919355
0.612903
0.037296
0.065268
0
0
0
0
0
0
0
0
0
0.15683
593
21
74
28.238095
0.858
0
0
0
0
0
0.042159
0
0
0
0
0
0
1
0.153846
false
0
0.307692
0
0.769231
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
dffcaeb14560a5a16ade835032fd549c1ee940c8
2,576
py
Python
src/get_usernames/mine_usernames/reddit_util.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
src/get_usernames/mine_usernames/reddit_util.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
src/get_usernames/mine_usernames/reddit_util.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # reddit-reliability import random # TODO: add everyone. USER_AGENT = "Script by /u/kdalmia for a UIUC CS 598tar Research Project" def get_user_agent(): """Get the user agent we're using for this project, for the Reddit API. """ return USER_AGENT def load_file_as_set(file_name): ...
30.666667
80
0.690994
390
2,576
4.361538
0.246154
0.024691
0.035273
0.045855
0.309818
0.245738
0.245738
0.190476
0.139918
0.094062
0
0.003423
0.206134
2,576
83
81
31.036145
0.828362
0.330357
0
0
0
0
0.182555
0.117134
0
0
0
0.012048
0
1
0.297297
false
0
0.054054
0
0.540541
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
1
0
0
0
0
0
0
0
2
5f038736982702fb977dd8ca7621c00d2080e685
824
py
Python
result/migrations/tab/0089_auto_20200417_0239.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
3
2020-06-16T20:03:31.000Z
2021-01-17T20:45:51.000Z
result/migrations/tab/0089_auto_20200417_0239.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
8
2020-02-08T09:04:08.000Z
2021-06-09T18:31:03.000Z
result/migrations/tab/0089_auto_20200417_0239.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2020-04-17 00:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('result', '0088_auto_20200415_1403'), ] operations = [ migrations.AlterField( model_name='btutor', name='created', ...
28.413793
116
0.588592
89
824
5.337079
0.606742
0.037895
0.050526
0.183158
0.261053
0.261053
0.261053
0.261053
0.261053
0.261053
0
0.101351
0.281553
824
28
117
29.428571
0.701014
0.054612
0
0.454545
1
0
0.16731
0.029601
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
5f25cc7836da6eebf1a8280a0552b88203fbf582
154
py
Python
Python32/prova2tintas.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
null
null
null
Python32/prova2tintas.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
null
null
null
Python32/prova2tintas.py
andersonsilvade/python_C
ffc00184883089f1c2d9b8a6c32503b2c8b8d035
[ "MIT" ]
1
2020-11-04T08:36:28.000Z
2020-11-04T08:36:28.000Z
mt2=float(input('digite em metros quadrados: ')) mlt=54 ltt=mt2/mlt if mt2%mlt != 0: ltt=ltt+1 print('você vai precisar de %d latas tintas' %ltt)
22
54
0.668831
28
154
3.678571
0.75
0.116505
0
0
0
0
0
0
0
0
0
0.055556
0.181818
154
6
55
25.666667
0.761905
0
0
0
0
0
0.415584
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
1
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
2
5f2eb5aa6d9361c6a164092e253879c454cdd08e
130
py
Python
django/tests/template_tests/templates/included_content.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
django/tests/template_tests/templates/included_content.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
django/tests/template_tests/templates/included_content.html.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
BBBBBBB BBBBBBBBBBBBBBBBBBBB BBBBB BBBBBBB XXXXXXX BBBBBBBB BBBBB BBBBBBBBBB XXXXX XXXX BBB BBBBBBBBBBBBBBBBB BBBBBBBB
10.833333
28
0.815385
13
130
8.153846
0.769231
0
0
0
0
0
0
0
0
0
0
0
0.184615
130
11
29
11.818182
1
0
0
0.25
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
5f3145839797904a20d873499570afb167a8b9f7
1,022
py
Python
aprspy/packets/beacon.py
pduran2008/aprs2
d0a11c824c7ec3d2487e2ee92d8b968f71cb2ccf
[ "MIT" ]
11
2019-11-05T08:55:52.000Z
2021-05-14T13:16:49.000Z
aprspy/packets/beacon.py
pduran2008/aprs2
d0a11c824c7ec3d2487e2ee92d8b968f71cb2ccf
[ "MIT" ]
12
2019-10-26T04:11:53.000Z
2020-11-14T09:23:07.000Z
aprspy/packets/beacon.py
pduran2008/aprs2
d0a11c824c7ec3d2487e2ee92d8b968f71cb2ccf
[ "MIT" ]
1
2019-10-25T03:35:02.000Z
2019-10-25T03:35:02.000Z
#!/usr/bin/env python import logging from ..exceptions import ParseError from ..utils import APRSUtils from .generic import GenericPacket # Set up logging logger = logging.getLogger(__name__) class BeaconPacket(GenericPacket): """ Class to represent beacon packets. See APRS 1.01 C4 P12 """ de...
20.857143
73
0.598826
112
1,022
5.258929
0.517857
0.093379
0.047538
0
0
0
0
0
0
0
0
0.008197
0.283757
1,022
48
74
21.291667
0.796448
0.143836
0
0
0
0
0.071864
0
0
0
0
0
0
1
0.208333
false
0
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
5f32264ed2dbb4a3665c8f27aefad98684b72645
465
py
Python
apps/wiki/admin.py
edcwkim/globalsnu
22325ee1dc8a8bd6879776d6ebdd406e93b2f077
[ "MIT" ]
2
2017-06-07T19:59:57.000Z
2017-06-07T21:41:34.000Z
apps/wiki/admin.py
edcwkim/globalsnu
22325ee1dc8a8bd6879776d6ebdd406e93b2f077
[ "MIT" ]
null
null
null
apps/wiki/admin.py
edcwkim/globalsnu
22325ee1dc8a8bd6879776d6ebdd406e93b2f077
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Essay, External, Page, PageRevision @admin.register(Page) class PageAdmin(admin.ModelAdmin): fields = ('wiki', 'archived') @admin.register(PageRevision) class PageRevisionAdmin(admin.ModelAdmin): fields = ('page', 'title', 'content', 'edit_summary') @...
19.375
57
0.722581
51
465
6.568627
0.470588
0.116418
0.18806
0.149254
0.220896
0.220896
0
0
0
0
0
0
0.129032
465
23
58
20.217391
0.82716
0
0
0
0
0
0.137634
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.666667
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
1
0
0
2
5f353c7d8b1746ebe7436034ff738611d9235705
18,725
py
Python
API_Data_Retrieve.py
codemakerss/Alpha_Vantage_API-
49a9bc8db55e67f4888c7a012b58ad52c6320a48
[ "MIT" ]
1
2022-01-06T03:19:39.000Z
2022-01-06T03:19:39.000Z
API_Data_Retrieve.py
codemakerss/Alpha_Vantage_API-
49a9bc8db55e67f4888c7a012b58ad52c6320a48
[ "MIT" ]
1
2022-01-17T11:36:18.000Z
2022-01-20T05:26:41.000Z
API_Data_Retrieve.py
codemakerss/Alpha_Vantage_API-
49a9bc8db55e67f4888c7a012b58ad52c6320a48
[ "MIT" ]
null
null
null
from alpha_vantage.timeseries import TimeSeries from numpy.lib.index_tricks import _diag_indices_from from pandas.core.frame import DataFrame from sqlalchemy import create_engine from urllib.parse import quote from datetime import date import mysql.connector import pymysql import pandas as pd import pandas as pd impo...
46.695761
176
0.659386
2,294
18,725
5.158675
0.116391
0.054757
0.030759
0.028393
0.75376
0.707622
0.680159
0.671878
0.644161
0.622021
0
0.006679
0.224352
18,725
401
177
46.695761
0.808111
0.087156
0
0.631922
0
0
0.142589
0
0
0
0
0
0
1
0.081433
false
0
0.045603
0
0.205212
0.003257
0
0
0
null
0
0
0
0
1
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
2
5f3798d7c0a652acab29eca3297fe65d8795b2c0
223
py
Python
ietf/utils/draft_search.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-11-20T03:40:40.000Z
2021-11-20T03:40:42.000Z
ietf/utils/draft_search.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/utils/draft_search.py
ekr/ietfdb
8d936836b0b9ff31cda415b0a423e3f5b33ab695
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright The IETF Trust 2007, All Rights Reserved import re def normalize_draftname(string): string = string.strip() string = re.sub("\.txt$","",string) string = re.sub("-\d\d$","",string) return string
24.777778
52
0.654709
30
223
4.833333
0.633333
0.248276
0.151724
0
0
0
0
0
0
0
0
0.021978
0.183857
223
8
53
27.875
0.774725
0.224215
0
0
0
0
0.070175
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
1
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
2
a023872c5c97a0e089e45f44859b97242fae729f
3,367
py
Python
tests/regulator/test_feedback.py
terrencetec/kontrol
ba6461784e38d01399efeb7a42911259f9254db0
[ "MIT" ]
3
2020-08-31T10:34:43.000Z
2021-08-10T20:48:59.000Z
tests/regulator/test_feedback.py
terrencetec/kontrol
ba6461784e38d01399efeb7a42911259f9254db0
[ "MIT" ]
33
2020-06-16T18:38:25.000Z
2022-03-24T00:48:55.000Z
tests/regulator/test_feedback.py
terrencetec/kontrol
ba6461784e38d01399efeb7a42911259f9254db0
[ "MIT" ]
null
null
null
"""Tests for kontrol.regulator.feedback module""" import control import numpy as np import kontrol.regulator s = control.tf("s") k = np.random.random() q = np.random.randint(1, 100) wn = np.random.random() plant = k * wn**2 / (s**2 + wn/q*s + wn**2) def test_critical_damping(): """Tests for kontrol.regulator.f...
32.375
79
0.692308
419
3,367
5.300716
0.169451
0.151283
0.194507
0.10941
0.723548
0.67357
0.589824
0.455651
0.334984
0.281855
0
0.009198
0.192753
3,367
103
80
32.68932
0.807947
0.116721
0
0.534247
0
0
0.003398
0
0
0
0
0
0.09589
1
0.054795
false
0.054795
0.041096
0
0.09589
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
1
0
0
0
0
0
2
a02538ed21704692a2d51d7897710f13a7a7a7d9
68
py
Python
old/RG-python/test/closure/config.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
16
2015-01-02T15:39:04.000Z
2016-03-17T06:38:46.000Z
old/RG-python/test/closure/config.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
37
2015-01-28T20:58:05.000Z
2016-03-22T04:01:32.000Z
old/RG-python/test/closure/config.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
8
2015-04-08T02:26:03.000Z
2016-03-04T05:56:24.000Z
#!/usr/bin/python CONFIG = {"foo": "bar", "STORAGE_DIR": "/tmp/"}
13.6
47
0.558824
9
68
4.111111
1
0
0
0
0
0
0
0
0
0
0
0
0.132353
68
4
48
17
0.627119
0.235294
0
0
0
0
0.44
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
a0283615e1bd7af78950bb32c8bb3e2a5147579f
17,949
py
Python
cy_widgets/strategy/exchange/aberration_flash_bolling.py
cragod/CYWidgets
b1df1e32c363ed9252737d3041a7557b1dc604fe
[ "MIT" ]
1
2021-06-17T02:25:25.000Z
2021-06-17T02:25:25.000Z
cy_widgets/strategy/exchange/aberration_flash_bolling.py
cragod/CYWidgets
b1df1e32c363ed9252737d3041a7557b1dc604fe
[ "MIT" ]
null
null
null
cy_widgets/strategy/exchange/aberration_flash_bolling.py
cragod/CYWidgets
b1df1e32c363ed9252737d3041a7557b1dc604fe
[ "MIT" ]
1
2021-12-08T06:50:33.000Z
2021-12-08T06:50:33.000Z
from datetime import datetime import numpy as np import pandas as pd from .base import * class AberrationFlashBollingStrategy(BaseExchangeStrategy): """Aberration + J.Flash""" n = 0 m = 0.0 stop_loss_pct = 5 leverage_rate = 1 holding_times_min = 10 def __init__(self, *args, **kwargs): ...
40.886105
133
0.517689
2,025
17,949
4.318519
0.122963
0.048828
0.056489
0.04757
0.739623
0.709663
0.677187
0.66438
0.631447
0.615666
0
0.02532
0.355284
17,949
438
134
40.979452
0.730384
0.134994
0
0.521569
0
0
0.168805
0.008466
0
0
0
0
0
1
0.039216
false
0
0.015686
0.011765
0.109804
0.011765
0
0
0
null
0
0
0
0
1
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
2
a03963d419718f46847bb490b4c623dcfb9d5e1e
141
py
Python
ex010 - dinheiro carteira.py
fblaz/Python-ex---curso-em-video
794d1f7b9fa0803b168aaf973007906b66a02e2d
[ "MIT" ]
null
null
null
ex010 - dinheiro carteira.py
fblaz/Python-ex---curso-em-video
794d1f7b9fa0803b168aaf973007906b66a02e2d
[ "MIT" ]
null
null
null
ex010 - dinheiro carteira.py
fblaz/Python-ex---curso-em-video
794d1f7b9fa0803b168aaf973007906b66a02e2d
[ "MIT" ]
null
null
null
reais = float(input('quanto dinheiro tem na carteira: ')) dol = 3.27 cambio = reais/dol print(f'voce pode comprar {cambio:.2f} dólares')
28.2
58
0.695035
22
141
4.454545
0.863636
0
0
0
0
0
0
0
0
0
0
0.033898
0.163121
141
4
59
35.25
0.79661
0
0
0
0
0
0.518248
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
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
2
a044b39ef51a1271c47024818050ce914b7cea49
783
py
Python
lib_install.py
hshi/cmake_code_script
0dbdf3587cc33a40cbbae38c057035af5825576e
[ "MIT" ]
null
null
null
lib_install.py
hshi/cmake_code_script
0dbdf3587cc33a40cbbae38c057035af5825576e
[ "MIT" ]
null
null
null
lib_install.py
hshi/cmake_code_script
0dbdf3587cc33a40cbbae38c057035af5825576e
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os import subprocess import glob typ = sys.argv[1] src_name = sys.argv[2] install_dirc_name = sys.argv[3]+'/'+typ+"1.0" cwd_path = os.getcwd() script_path = os.path.abspath(os.path.dirname(__file__)) com='python '+ script_path+'/cmake.py ' + typ subproce...
26.1
75
0.67433
120
783
4.233333
0.35
0.192913
0.149606
0.181102
0.232283
0.125984
0.125984
0
0
0
0
0.007553
0.154534
783
29
76
27
0.759819
0.020434
0
0.090909
0
0
0.122715
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.045455
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
1
0
0
0
0
0
0
0
0
2
a049ede032e2b3daffa5e1f214bd6a3335a37ca0
140
py
Python
nltk_modulesdownloader.py
tfreundo/TensorFlow_SimpsonsChatbot
9767798dcf5096e91069960874c385bc0be0cd25
[ "MIT" ]
null
null
null
nltk_modulesdownloader.py
tfreundo/TensorFlow_SimpsonsChatbot
9767798dcf5096e91069960874c385bc0be0cd25
[ "MIT" ]
null
null
null
nltk_modulesdownloader.py
tfreundo/TensorFlow_SimpsonsChatbot
9767798dcf5096e91069960874c385bc0be0cd25
[ "MIT" ]
null
null
null
import nltk def main(): """Downloads the needed NLTK modules """ nltk.download('punkt') if __name__ == '__main__': main()
14
40
0.607143
16
140
4.8125
0.75
0
0
0
0
0
0
0
0
0
0
0
0.242857
140
10
41
14
0.726415
0.235714
0
0
0
0
0.134021
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
a04c08821f5817fb4bae782d1f97b232194db26e
2,745
py
Python
PSCmm/ConfigPara.py
zhuzhidong/AutoItTest
708ed19bcb4d1643a43cc8f3cedd6b5ff9d9a256
[ "Apache-2.0" ]
null
null
null
PSCmm/ConfigPara.py
zhuzhidong/AutoItTest
708ed19bcb4d1643a43cc8f3cedd6b5ff9d9a256
[ "Apache-2.0" ]
null
null
null
PSCmm/ConfigPara.py
zhuzhidong/AutoItTest
708ed19bcb4d1643a43cc8f3cedd6b5ff9d9a256
[ "Apache-2.0" ]
null
null
null
__author__ = "Zhu ZhiDong" __version__ = "1.0" # # Configuration Parameters # CTL_Default = [ "80000F0001", # 主敏感轴 "80010F0064", # 力初值波动范围 "80020F0064", # X轴加速度初值波动范围 "80030F0064", # Y轴加速度初值波动范围 "80040F0064", # Z轴加速度初值波动范围 "80050F9B88", # 力上限 "80060F0000", # 力下限 "80070F00...
25.654206
79
0.592714
196
2,745
8.234694
0.683673
0.022305
0.022305
0.026022
0.04461
0
0
0
0
0
0
0.37768
0.252459
2,745
106
80
25.896226
0.408869
0.338798
0
0.022222
0
0
0.443807
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
1
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
2
a0541447f37303e5012fa8dbf3ea5c96f0a31484
400
py
Python
wafer/users/tests/test_models.py
drnlm/wafer
1d843190428c401df06fcdfb89d1f9d9af67229e
[ "ISC" ]
41
2015-03-16T17:47:00.000Z
2022-01-07T04:31:21.000Z
wafer/users/tests/test_models.py
drnlm/wafer
1d843190428c401df06fcdfb89d1f9d9af67229e
[ "ISC" ]
338
2015-03-15T17:26:36.000Z
2021-12-02T04:34:53.000Z
wafer/users/tests/test_models.py
drnlm/wafer
1d843190428c401df06fcdfb89d1f9d9af67229e
[ "ISC" ]
28
2015-07-27T14:11:13.000Z
2020-11-16T03:50:30.000Z
# -*- coding: utf-8 -*- # vim:fileencoding=utf-8 ai ts=4 sts=4 et sw=4 """Tests for wafer.user.models""" from django.test import TestCase from wafer.tests.utils import create_user class UserModelTestCase(TestCase): def test_str_method_issue192(self): """Test that str(user) works correctly""" use...
26.666667
55
0.69
57
400
4.754386
0.614035
0.02952
0
0
0
0
0
0
0
0
0
0.024169
0.1725
400
14
56
28.571429
0.794562
0.3275
0
0
0
0
0.031128
0
0
0
0
0
0.166667
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
a07bcbcba30e5bc3c7e1810ee3d63419906c102b
1,338
py
Python
url.py
bornabesic/crawl-n-scrape
af216c9ae7adbd3686eb20225c54bb54e56e235c
[ "MIT" ]
2
2017-10-26T15:34:41.000Z
2019-01-27T01:09:01.000Z
url.py
bornabesic/crawl-n-scrape
af216c9ae7adbd3686eb20225c54bb54e56e235c
[ "MIT" ]
null
null
null
url.py
bornabesic/crawl-n-scrape
af216c9ae7adbd3686eb20225c54bb54e56e235c
[ "MIT" ]
null
null
null
""" Module that defines an interface for retrieving and handling web documents. """ import re from urllib.request import urlopen from urllib.error import URLError from typing import Tuple, Set def get(url: str, timeout: int = 10) -> str: """ Performs a GET request, decodes retrieved bytes using UTF-8 and ...
25.730769
93
0.665172
186
1,338
4.704301
0.462366
0.041143
0.029714
0.038857
0.054857
0
0
0
0
0
0
0.003887
0.230942
1,338
51
94
26.235294
0.846453
0.387892
0
0
0
0
0.028226
0
0
0
0
0.019608
0
1
0.15
false
0
0.2
0
0.55
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
1
0
0
2
a09282823f5a7ebae8c2bc78928e2fee97483c80
238
py
Python
drivers/plot_multicolor_phase.py
lgbouma/complexrotators
25b14ea4a760c58ce53440eb0a12b4116fb4eba7
[ "MIT" ]
null
null
null
drivers/plot_multicolor_phase.py
lgbouma/complexrotators
25b14ea4a760c58ce53440eb0a12b4116fb4eba7
[ "MIT" ]
null
null
null
drivers/plot_multicolor_phase.py
lgbouma/complexrotators
25b14ea4a760c58ce53440eb0a12b4116fb4eba7
[ "MIT" ]
null
null
null
import os import complexrotators.plotting as cp from complexrotators.paths import RESULTSDIR PLOTDIR = os.path.join(RESULTSDIR, 'multicolor_phase') if not os.path.exists(PLOTDIR): os.mkdir(PLOTDIR) cp.plot_multicolor_phase(PLOTDIR)
23.8
54
0.806723
33
238
5.727273
0.575758
0.095238
0
0
0
0
0
0
0
0
0
0
0.105042
238
9
55
26.444444
0.887324
0
0
0
0
0
0.067227
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
a0b2d8c75ef2b85968c2e2e2d0d279df96765274
435
py
Python
setup.py
mvrozanti/powerline-disk-segment
3a129043629214c31b8fb313b7eca74e34406ac5
[ "Apache-2.0" ]
1
2020-04-24T09:09:33.000Z
2020-04-24T09:09:33.000Z
setup.py
mvrozanti/powerline-disk-segment
3a129043629214c31b8fb313b7eca74e34406ac5
[ "Apache-2.0" ]
null
null
null
setup.py
mvrozanti/powerline-disk-segment
3a129043629214c31b8fb313b7eca74e34406ac5
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup(name='powerline-disk-segment', version='1.0', description='Disk usage segment for Powerline', author='nexor', author_email='', packages=['powerlinedisk'], url='https://github.com/mvrozanti/powerline_disk_segment', download_url='https://gi...
29
85
0.655172
48
435
5.791667
0.645833
0.140288
0.215827
0.122302
0.330935
0.330935
0.330935
0.330935
0
0
0
0.011594
0.206897
435
14
86
31.071429
0.794203
0
0
0
0
0
0.448276
0.050575
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
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
1
0
0
0
0
0
0
2
a0b7ec6b35f8a61fbff8a7e8490d21b255458655
1,352
py
Python
app/core/admin.py
fxavier/moz-marketplace-api
a9323e4df6a1340be25972a61ed9a26d799fd2df
[ "MIT" ]
null
null
null
app/core/admin.py
fxavier/moz-marketplace-api
a9323e4df6a1340be25972a61ed9a26d799fd2df
[ "MIT" ]
null
null
null
app/core/admin.py
fxavier/moz-marketplace-api
a9323e4df6a1340be25972a61ed9a26d799fd2df
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from . import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'nome'] fieldsets = ( (None, {'fields': ('email', 'pa...
28.765957
78
0.625
139
1,352
5.892086
0.438849
0.067155
0.103785
0.140415
0.092796
0.092796
0.092796
0.092796
0
0
0
0.003721
0.204882
1,352
46
79
29.391304
0.75814
0
0
0.054054
0
0
0.203402
0
0
0
0
0
0
1
0
false
0.054054
0.135135
0
0.540541
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
1
0
0
2
2610db74133c523e3a8c0380f965b711fc2eb59a
2,451
py
Python
testsuite.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
43
2015-03-31T01:37:10.000Z
2021-11-14T16:26:48.000Z
testsuite.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-06-10T16:39:41.000Z
2020-01-27T16:35:01.000Z
testsuite.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-04-07T08:12:37.000Z
2020-01-26T09:54:18.000Z
#!/usr/bin/python # # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
35.014286
78
0.669931
344
2,451
4.69186
0.563953
0.037175
0.016109
0.019827
0
0
0
0
0
0
0
0.006469
0.243166
2,451
69
79
35.521739
0.863612
0.438596
0
0
0
0
0.162963
0
0
0
0
0.014493
0.03125
1
0.125
false
0
0.21875
0.09375
0.53125
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
1
0
0
2
2614bcc35b1f14cd48f3620b8fee71f1d58203e8
275
py
Python
pypc/operations/io/output.py
xpenalosa/PyPc
fff3ae29b800d127d261492098aecbbf6719bd07
[ "MIT" ]
null
null
null
pypc/operations/io/output.py
xpenalosa/PyPc
fff3ae29b800d127d261492098aecbbf6719bd07
[ "MIT" ]
null
null
null
pypc/operations/io/output.py
xpenalosa/PyPc
fff3ae29b800d127d261492098aecbbf6719bd07
[ "MIT" ]
null
null
null
from pypc.operations import BaseOp class OutOp(BaseOp): ARGC = 1 def __init__(self, *args): super().__init__(*args) def _execute(self, args): self._output_values(args[0]) def _output_values(self, *args): self.LOGGER.info(args[0])
18.333333
36
0.629091
36
275
4.444444
0.555556
0.15
0.15
0
0
0
0
0
0
0
0
0.014354
0.24
275
14
37
19.642857
0.751196
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
261c463e02ada22a3dab00ba6fb5510f7b1a5332
296
py
Python
common/utils/messages.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
56
2019-07-10T06:02:11.000Z
2021-12-21T08:11:22.000Z
common/utils/messages.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
4
2019-09-26T08:51:58.000Z
2021-06-08T20:27:53.000Z
common/utils/messages.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
8
2019-10-21T12:43:08.000Z
2021-12-02T08:14:38.000Z
def get_type_error_msg(obj, *expected_cls): if len(expected_cls) > 1: exp = '({})'.format(','.join(e.__name__ for e in expected_cls)) else: exp = expected_cls[0].__name__ return 'expected type is "{}" but object is of type "{}"'.format(exp, obj.__class__.__name__)
29.6
97
0.635135
43
296
3.837209
0.604651
0.266667
0
0
0
0
0
0
0
0
0
0.008511
0.206081
296
9
98
32.888889
0.693617
0
0
0
0
0
0.180272
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
1
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
2
261e46afcbb82e411c9d10ade39c2ffcf5771c2f
485
py
Python
iris_sdk/models/totals.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/totals.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/totals.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from future.builtins import super from iris_sdk.models.base_resource import BaseResource from iris_sdk.models.data.totals import TotalsData XML_NAME_TOTALS = "Quantity" XPATH_TOTALS = "/totals" class Totals(BaseResource, TotalsDa...
24.25
64
0.769072
64
485
5.515625
0.546875
0.056657
0.062323
0.096317
0
0
0
0
0
0
0
0
0.152577
485
20
65
24.25
0.858881
0.119588
0
0
0
0
0.035545
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0.090909
0.818182
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
0
0
1
0
1
0
0
2
2621a38e9200ddb1f55860f0b2862123482c1142
1,051
py
Python
app/main/models.py
dorneanu/flask-app-template
ea238742f354937a19cd72a32418307dd4a7af1a
[ "MIT" ]
null
null
null
app/main/models.py
dorneanu/flask-app-template
ea238742f354937a19cd72a32418307dd4a7af1a
[ "MIT" ]
null
null
null
app/main/models.py
dorneanu/flask-app-template
ea238742f354937a19cd72a32418307dd4a7af1a
[ "MIT" ]
null
null
null
# Flask stuff from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.admin.contrib import sqla # SQLAlchemy stuff import sqlalchemy as sql from sqlalchemy import ForeignKey from app.database import db # Create additional tables user_tags_table = db.Table('user_tags', db.Column('user_id', db.Inte...
25.02381
74
0.648906
146
1,051
4.513699
0.321918
0.121396
0.121396
0.127466
0.242792
0.209408
0.100152
0.100152
0
0
0
0
0.221694
1,051
41
75
25.634146
0.805623
0.085633
0
0.153846
0
0
0.049683
0
0
0
0
0
0
1
0.115385
false
0.038462
0.192308
0.115385
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
2625514add3d4bac0bec2142df20f3b138cd12da
1,243
py
Python
Problems/Binary_Tree/array_to_bst.py
MayaScarlet/python-dsa
e5b62ec71f3a74b0f721e5d719d32797ccc06e3c
[ "MIT" ]
null
null
null
Problems/Binary_Tree/array_to_bst.py
MayaScarlet/python-dsa
e5b62ec71f3a74b0f721e5d719d32797ccc06e3c
[ "MIT" ]
null
null
null
Problems/Binary_Tree/array_to_bst.py
MayaScarlet/python-dsa
e5b62ec71f3a74b0f721e5d719d32797ccc06e3c
[ "MIT" ]
null
null
null
""" https://practice.geeksforgeeks.org/problems/array-to-bst4443/ Given a sorted array. Convert it into a Height balanced Binary Search Tree (BST). Find the preorder traversal of height balanced BST. If there exist many such balanced BST consider the tree whose preorder is lexicographically smallest. Height balanced B...
23.903846
102
0.650845
198
1,243
4.005051
0.439394
0.010088
0.034048
0.015132
0.027743
0
0
0
0
0
0
0.029444
0.262269
1,243
51
103
24.372549
0.835333
0.646018
0
0
0
0
0.021028
0
0
0
0
0
0
1
0.235294
false
0.058824
0
0
0.352941
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
26476b6f54b69eecc69ac9e6df5aca74da6a865b
249
py
Python
accounts/admin.py
eustone/PatientManagement
9b4895edb509e6609afe766d7cf5b8844757d047
[ "Apache-2.0" ]
2
2020-03-27T14:22:22.000Z
2020-03-27T15:53:52.000Z
accounts/admin.py
eustone/PatientManagement
9b4895edb509e6609afe766d7cf5b8844757d047
[ "Apache-2.0" ]
5
2021-03-19T01:13:01.000Z
2021-09-22T18:47:41.000Z
accounts/admin.py
eustone/PatientManagement
9b4895edb509e6609afe766d7cf5b8844757d047
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import User # Register your models here. @admin.register(User) class UserAdmin(admin.ModelAdmin): list_display = ['role','email', 'date_of_birth', 'gender', 'city', 'country']
22.636364
62
0.670683
30
249
5.466667
0.766667
0
0
0
0
0
0
0
0
0
0
0
0.200803
249
10
63
24.9
0.824121
0.104418
0
0
0
0
0.176471
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
264c57fa39c49b26ac7e6a458e6d87f8ac7326d4
885
py
Python
code-class-exceptions/DelaySayExceptions.py
kirmar/delaysay
9cba01d9840ddb1ba35430cc709608256134b798
[ "Apache-2.0" ]
null
null
null
code-class-exceptions/DelaySayExceptions.py
kirmar/delaysay
9cba01d9840ddb1ba35430cc709608256134b798
[ "Apache-2.0" ]
2
2022-01-19T11:20:06.000Z
2022-01-19T11:34:32.000Z
code-class-exceptions/DelaySayExceptions.py
kirmar/delaysay
9cba01d9840ddb1ba35430cc709608256134b798
[ "Apache-2.0" ]
null
null
null
# General exceptions class UserAuthorizeError(Exception): pass class TeamNotInDynamoDBError(Exception): pass class BillingTokenInvalidError(Exception): pass # Slash command exceptions class SlackSignaturesDoNotMatchError(Exception): pass class SlackSignatureTimeToleranceExceededError(Exception): ...
19.666667
58
0.763842
78
885
8.384615
0.346154
0.178899
0.192661
0.061162
0.094801
0.094801
0
0
0
0
0
0
0.168362
885
44
59
20.113636
0.888587
0.077966
0
0.423077
0
0
0
0
0
0
0
0
0
1
0.076923
false
0.346154
0
0
0.5
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
1
0
0
0
0
0
2
26508e10d1061faf6403200b2e238eef104ceba6
262
py
Python
tests/enable_package_to_be_found.py
KingND/RemoveIt
a6110a6186b92d5381d99e7255601c80298d4ca6
[ "MIT" ]
1
2021-04-16T17:54:31.000Z
2021-04-16T17:54:31.000Z
tests/enable_package_to_be_found.py
KingND/RemoveIt
a6110a6186b92d5381d99e7255601c80298d4ca6
[ "MIT" ]
null
null
null
tests/enable_package_to_be_found.py
KingND/RemoveIt
a6110a6186b92d5381d99e7255601c80298d4ca6
[ "MIT" ]
null
null
null
# # Only need to run this one time. # # COMMAND BELOW IS WRITTEN FOR WINDOWS! # You will need to edit if you are not using Windows. # You can also just manually do this equivalent process in your terminal. # import os os.system('cmd /c pip install -e ../src')
21.833333
73
0.717557
46
262
4.086957
0.847826
0.06383
0
0
0
0
0
0
0
0
0
0
0.20229
262
11
74
23.818182
0.899522
0.736641
0
0
0
0
0.459016
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
2
2655c875d504756bf2bdf874c1c2d9128a411175
1,573
py
Python
OpenGRC/organization/models.py
Dostal-Security/OpenGRC
3c0d68110195c02e65aeac7cee53c185da58b311
[ "MIT" ]
null
null
null
OpenGRC/organization/models.py
Dostal-Security/OpenGRC
3c0d68110195c02e65aeac7cee53c185da58b311
[ "MIT" ]
14
2021-11-18T15:36:31.000Z
2021-11-18T20:52:56.000Z
OpenGRC/organization/models.py
Dostal-Security/OpenGRC
3c0d68110195c02e65aeac7cee53c185da58b311
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Organization(models.Model): name = models.CharField(max_length=100) street_address = models.CharField(max_length=500) city = models.CharField(max_length=100) state = models.CharField(max_length=100) country = models.CharField(max_length=...
29.12963
76
0.714558
193
1,573
5.611399
0.248705
0.193906
0.232687
0.310249
0.683287
0.608495
0.484765
0.34072
0.249307
0.125577
0
0.032107
0.188175
1,573
53
77
29.679245
0.815975
0.015257
0
0.4
0
0
0.008403
0
0
0
0
0
0
1
0.1
false
0
0.025
0.1
0.825
0
0
0
0
null
0
1
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
2
2665d7ba2036ea7ca400e5346b698bb96e2e78c7
389
py
Python
dxlbootstrap/_compat.py
ndcolter-mcafee/opendxl-bootstrap-python
ce5386f9ab2806d9cdfd456bd7e9e3ca547171fc
[ "Apache-2.0" ]
13
2017-04-05T01:58:19.000Z
2019-03-16T19:45:36.000Z
dxlbootstrap/_compat.py
ndcolter-mcafee/opendxl-bootstrap-python
ce5386f9ab2806d9cdfd456bd7e9e3ca547171fc
[ "Apache-2.0" ]
1
2017-04-13T04:52:49.000Z
2017-04-13T04:52:49.000Z
dxlbootstrap/_compat.py
ndcolter-mcafee/opendxl-bootstrap-python
ce5386f9ab2806d9cdfd456bd7e9e3ca547171fc
[ "Apache-2.0" ]
8
2017-05-24T18:26:52.000Z
2020-04-04T10:15:26.000Z
""" Abstraction layer for Python 2 / 3 compatibility. """ from __future__ import absolute_import import sys # pylint: disable=unused-import try: from configparser import ConfigParser except ImportError: from ConfigParser import ConfigParser if sys.version_info[0] > 2: UnicodeString = str else: Unicod...
24.3125
78
0.763496
46
389
6.326087
0.673913
0.089347
0.151203
0.233677
0
0
0
0
0
0
0
0.012308
0.164524
389
15
79
25.933333
0.883077
0.33419
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
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
1
0
0
0
0
2
2668d3a0fce5be4ef5e3a85f27a77334ed4c1787
9,706
py
Python
pysnmp/CTTRAPLOG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CTTRAPLOG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CTTRAPLOG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CTTRAPLOG-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTTRAPLOG-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:16:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
112.860465
1,110
0.746033
1,156
9,706
6.263841
0.133218
0.022373
0.014501
0.019334
0.493578
0.432399
0.402707
0.395664
0.287806
0.278415
0
0.077924
0.089017
9,706
85
1,111
114.188235
0.741009
0.032969
0
0
0
0
0.137891
0.004692
0
0
0
0
0
1
0
false
0
0.089744
0
0.089744
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
266c1656104ccea951a9bef3dbfca047419bd551
301
py
Python
setup.py
OneIdentity/safeguard-sessions-plugin-azure-ad
3de364c34dbff3999bbed82be7cc7a8c9f8ecac2
[ "MIT" ]
1
2020-08-17T20:48:33.000Z
2020-08-17T20:48:33.000Z
setup.py
OneIdentity/safeguard-sessions-plugin-azure-ad
3de364c34dbff3999bbed82be7cc7a8c9f8ecac2
[ "MIT" ]
null
null
null
setup.py
OneIdentity/safeguard-sessions-plugin-azure-ad
3de364c34dbff3999bbed82be7cc7a8c9f8ecac2
[ "MIT" ]
null
null
null
# Auto generated by pluginv ensure_setup_py task from setuptools import find_packages, setup setup( name="SPS_Azure_AD".lower(), version="1.0.0", packages=find_packages(exclude=[ "*.tests", "*.tests.*", "tests.*", "tests" ]), py_modules=["main"] )
20.066667
48
0.58804
35
301
4.857143
0.714286
0.176471
0.176471
0
0
0
0
0
0
0
0
0.013333
0.252492
301
14
49
21.5
0.742222
0.152824
0
0
1
0
0.194444
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
267095dd8587c824ecc36a5beb6297d331c8b2d3
713
py
Python
src/collect.py
nizarabdouss/facerec
6475cff75220537805c37c18fc5a3d777371a205
[ "MIT" ]
null
null
null
src/collect.py
nizarabdouss/facerec
6475cff75220537805c37c18fc5a3d777371a205
[ "MIT" ]
null
null
null
src/collect.py
nizarabdouss/facerec
6475cff75220537805c37c18fc5a3d777371a205
[ "MIT" ]
null
null
null
#import main import os import datetime from re import search from tkinter import Button from typing import Any, Optional import numpy as np import pandas as pd from selenium import webdriver import time from PIL import Image as im import cv2 import imagehash class Person(): found: datetime.date def __init_...
19.27027
56
0.661992
99
713
4.666667
0.545455
0.056277
0.073593
0
0
0
0
0
0
0
0
0.001873
0.251052
713
36
57
19.805556
0.863296
0.015428
0
0
0
0
0.021583
0
0
0
0
0
0
1
0.08
false
0
0.48
0
0.68
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
1
0
0
2
26755f8a29fac68a376ef7de62740f8c47fe36ba
1,472
py
Python
debug.py
flags/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
56
2015-04-20T08:31:29.000Z
2021-12-19T14:05:18.000Z
debug.py
HexDecimal/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
2
2018-07-24T11:24:41.000Z
2021-05-16T03:04:53.000Z
debug.py
HexDecimal/Reactor-3
b41a2904c9ec8cc14bcee03611602d0e568acf12
[ "MIT" ]
9
2015-11-03T02:56:20.000Z
2021-04-28T08:19:57.000Z
from globals import * import weather import zones import alife import items import life def suicide(): life.kill(LIFE[SETTINGS['following']], 'suicide') def kill(life_id): life.kill(LIFE[life_id], 'suicide') def stop(): LIFE[SETTINGS['following']]['path'] = [] def clean_slate(): for alife in LIFE.values(): ...
19.891892
73
0.688859
213
1,472
4.619718
0.352113
0.109756
0.140244
0.132114
0.212398
0.179878
0
0
0
0
0
0.015504
0.123641
1,472
74
74
19.891892
0.747287
0
0
0
0
0
0.181263
0
0
0
0
0
0
1
0.392157
false
0
0.117647
0
0.509804
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
1
0
0
2
26828b9ddb1caea53791c4fd5a95cccd42ea2bfc
1,090
py
Python
sandy-disaster-recovery/incident_permissions_db.py
toddjcrane/crisiscleanup-legacy
74dbad143ebc3bfae4cc5afc478e43ab4033ff69
[ "Apache-2.0" ]
1
2017-01-07T21:44:21.000Z
2017-01-07T21:44:21.000Z
sandy-disaster-recovery/incident_permissions_db.py
aarontitus/crisiscleanup-legacy
74dbad143ebc3bfae4cc5afc478e43ab4033ff69
[ "Apache-2.0" ]
1
2021-03-26T00:25:19.000Z
2021-03-26T00:25:19.000Z
sandy-disaster-recovery/incident_permissions_db.py
toddjcrane/crisiscleanup-legacy
74dbad143ebc3bfae4cc5afc478e43ab4033ff69
[ "Apache-2.0" ]
1
2017-09-07T09:52:15.000Z
2017-09-07T09:52:15.000Z
#!/usr/bin/env python # # Copyright 2014 Andy Gimma # # 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...
28.684211
81
0.780734
156
1,090
5.397436
0.647436
0.071259
0.067696
0.038005
0.111639
0.111639
0
0
0
0
0
0.012945
0.149541
1,090
37
82
29.459459
0.895361
0.537615
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.571429
0
0.857143
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
1
0
0
2
2682eeb778ca00c9e3b15fd6753be8ac923a29e6
8,193
py
Python
logstash-filter-sig/scripts-create-db/misp2json4ioc.py
lprat/logstash-plugins
c95e58efc7babcb7a018125f513736450a06b5e1
[ "Apache-2.0" ]
10
2017-06-07T19:36:32.000Z
2020-12-06T08:43:44.000Z
logstash-filter-sig/scripts-create-db/misp2json4ioc.py
lprat/logstash-plugins
c95e58efc7babcb7a018125f513736450a06b5e1
[ "Apache-2.0" ]
1
2019-04-18T07:29:16.000Z
2019-04-18T07:29:16.000Z
logstash-filter-sig/scripts-create-db/misp2json4ioc.py
lprat/logstash-plugins
c95e58efc7babcb7a018125f513736450a06b5e1
[ "Apache-2.0" ]
1
2020-12-06T08:44:38.000Z
2020-12-06T08:44:38.000Z
#Parse misp result to json format for logstash filter ioc.rb #https://github.com/MISP/PyMISP #Contact: lionel.prat9@gmail.com #put file result.json and types.list #remove alexa top 100 of IOC import ujson import sys import re import os from pprint import pprint #ARGV if len(sys.argv) < 5: print("Syntaxe: ioc_pars...
39.965854
150
0.606371
1,306
8,193
3.7366
0.12634
0.043033
0.044262
0.029508
0.730533
0.70082
0.673566
0.646516
0.624385
0.559631
0
0.022161
0.206884
8,193
204
151
40.161765
0.72884
0.114
0
0.50289
0
0.017341
0.205695
0.033453
0
0
0
0
0
0
null
null
0
0.028902
null
null
0.023121
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
1
0
0
0
0
0
0
0
0
2
cd0f64de45663ff8d7479069ec5a6dd6bef2d3ea
1,460
py
Python
content/CookBook.py
jadikus/rezeptex
eeb21c8f60cc895d86f6a876982a6f373850441b
[ "Apache-2.0" ]
null
null
null
content/CookBook.py
jadikus/rezeptex
eeb21c8f60cc895d86f6a876982a6f373850441b
[ "Apache-2.0" ]
null
null
null
content/CookBook.py
jadikus/rezeptex
eeb21c8f60cc895d86f6a876982a6f373850441b
[ "Apache-2.0" ]
null
null
null
from content.recipe import Recipe import os class CookBook(object): def __init__(self): self.recipe_list = list() def read_directory(self, path): """ :param path: The path to the raw recipefiles (either .txt or .rcp [own invention]) :return: a list of all file paths "...
29.795918
165
0.593151
186
1,460
4.575269
0.526882
0.035253
0.032902
0
0
0
0
0
0
0
0
0
0.334247
1,460
49
166
29.795918
0.875514
0.482192
0
0.166667
0
0
0.003396
0
0
0
0
0
0
1
0.333333
false
0.166667
0.111111
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
1
0
0
0
0
0
2
cd664f7848e4a9e60009d888d5b59e0dc7dbbb42
704
py
Python
tests/test_asamplelib.py
tomestro-testorg/asamplelib
bfde80cd2baaf6b5904703022205badbedd60610
[ "Apache-2.0" ]
null
null
null
tests/test_asamplelib.py
tomestro-testorg/asamplelib
bfde80cd2baaf6b5904703022205badbedd60610
[ "Apache-2.0" ]
181
2020-04-11T16:34:28.000Z
2021-02-27T22:30:01.000Z
tests/test_asamplelib.py
tomestro-testorg/asamplelib
bfde80cd2baaf6b5904703022205badbedd60610
[ "Apache-2.0" ]
1
2020-04-10T01:07:38.000Z
2020-04-10T01:07:38.000Z
#!/usr/bin/env python """Tests for `asamplelib` package.""" import pytest from asamplelib import asamplelib @pytest.fixture def sample_fixture(): """Setup test fixture""" return 1 def test_func(sample_fixture): """Test the sample function""" assert asamplelib.sample_func(1) == 2 def test_negat...
15.644444
43
0.667614
97
704
4.721649
0.371134
0.106987
0.052402
0.131004
0.174672
0.174672
0
0
0
0
0
0.03351
0.194602
704
44
44
16
0.77425
0.183239
0
0
0
0
0
0
0
0
0
0
0.368421
1
0.421053
false
0
0.105263
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
1
0
0
0
0
1
0
0
2
cd66618f432b5b88c9738dfeff203aa5f17d5bac
240
py
Python
rootpy/plotting/style/atlas/__init__.py
masonproffitt/rootpy
3926935e1f2100d8ba68070c2ab44055d4800f73
[ "BSD-3-Clause" ]
146
2015-01-04T15:16:44.000Z
2022-01-27T11:29:31.000Z
rootpy/plotting/style/atlas/__init__.py
masonproffitt/rootpy
3926935e1f2100d8ba68070c2ab44055d4800f73
[ "BSD-3-Clause" ]
143
2015-01-07T00:20:42.000Z
2021-11-04T07:48:26.000Z
rootpy/plotting/style/atlas/__init__.py
masonproffitt/rootpy
3926935e1f2100d8ba68070c2ab44055d4800f73
[ "BSD-3-Clause" ]
56
2015-01-30T11:11:07.000Z
2022-03-28T09:42:06.000Z
from __future__ import absolute_import from .style import style as ATLAS_style from .style_mpl import style_mpl as ATLAS_style_mpl from .labels import ATLAS_label __all__ = [ 'ATLAS_style', 'ATLAS_style_mpl', 'ATLAS_label', ]
20
51
0.766667
35
240
4.714286
0.314286
0.242424
0.145455
0
0
0
0
0
0
0
0
0
0.170833
240
11
52
21.818182
0.829146
0
0
0
0
0
0.154167
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
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
1
0
0
0
0
2
cd742b0a1f8074f635e1ceffffd87074f18283d0
2,280
py
Python
hub/shtest.py
pennz/kaggle_runner
19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced
[ "MIT" ]
1
2020-08-06T09:07:49.000Z
2020-08-06T09:07:49.000Z
hub/shtest.py
pennz/kaggle_runner
19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced
[ "MIT" ]
1
2020-05-13T10:49:42.000Z
2020-05-15T22:52:37.000Z
hub/shtest.py
pennz/kaggle_runner
19b979ae86f1fcaff5d17f55f4d8bc3d3f2a4ced
[ "MIT" ]
null
null
null
from kaggle_runner.kernels.kernel import KaggleKernelOnlyPredict from transformers import * class ToxicPredictModel(KaggleKernelOnlyPredict): def __init__(self, model_path): super(ToxicPredictModel, self).__init__(model_path) self.only_predict = True self.model_path = model_path def ...
33.043478
117
0.726754
300
2,280
5.226667
0.37
0.040179
0.047832
0.036352
0.13648
0.105867
0.042092
0
0
0
0
0.004902
0.194737
2,280
68
118
33.529412
0.849129
0.266228
0
0.128205
0
0.025641
0.065782
0.056126
0
0
0
0
0.025641
1
0.25641
false
0.128205
0.102564
0
0.384615
0.025641
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
cd78c3dfbf8421d5c7e0f15cf595c0843d42ab7d
84
py
Python
tastypie/__init__.py
reshift/django-tastypie
a4a9b4da5bade2cc91087d9febeb1ca6e8578bf6
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:24.000Z
2019-06-13T16:18:24.000Z
tastypie/__init__.py
reshift/django-tastypie
a4a9b4da5bade2cc91087d9febeb1ca6e8578bf6
[ "BSD-3-Clause" ]
null
null
null
tastypie/__init__.py
reshift/django-tastypie
a4a9b4da5bade2cc91087d9febeb1ca6e8578bf6
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Daniel Lindsley, Cody Soyland, Matt Croydon' __version__ = (0, 9, 11)
28
58
0.72619
11
84
4.818182
1
0
0
0
0
0
0
0
0
0
0
0.056338
0.154762
84
2
59
42
0.690141
0
0
0
0
0
0.511905
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
cd8c548480dd29c157a2ce0fdf011e0deea5fff7
421
py
Python
machine-learning/adult-census-classification/scripts/util_cat_numeric.py
Kyledmw/student-projects
766ef9d4b879c8c2d2086c2abe0fa224e2e051c6
[ "Apache-2.0" ]
null
null
null
machine-learning/adult-census-classification/scripts/util_cat_numeric.py
Kyledmw/student-projects
766ef9d4b879c8c2d2086c2abe0fa224e2e051c6
[ "Apache-2.0" ]
null
null
null
machine-learning/adult-census-classification/scripts/util_cat_numeric.py
Kyledmw/student-projects
766ef9d4b879c8c2d2086c2abe0fa224e2e051c6
[ "Apache-2.0" ]
null
null
null
import constants.consts_data_set as consts_ds CAT_NUM_WORK_CLASS = range(1, len(consts_ds.CAT_WORK_CLASS) + 1) CAT_NUM_MAR_STAT = range(1, len(consts_ds.CAT_MAR_STAT) + 1) CAT_NUM_OCCUP = range(1, len(consts_ds.CAT_OCCUP) + 1) CAT_NUM_RELATIONSHIP = range(1, len(consts_ds.CAT_RELATIONSHIP) + 1) CAT_NUM_RACE = range(1...
38.272727
68
0.781473
80
421
3.7
0.2625
0.189189
0.260135
0.304054
0.405405
0.405405
0
0
0
0
0
0.031746
0.102138
421
10
69
42.1
0.751323
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
1
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
2
cd96bb5893435fe93bd6c3c637345a19919f3ea2
751
py
Python
imaginaire/losses/__init__.py
hw07216/imaginaire
87c774114622e39488a5ea8a7728b1a20896afb9
[ "RSA-MD" ]
3,308
2020-07-15T17:50:13.000Z
2022-03-31T14:53:31.000Z
imaginaire/losses/__init__.py
hw07216/imaginaire
87c774114622e39488a5ea8a7728b1a20896afb9
[ "RSA-MD" ]
132
2020-09-20T17:36:28.000Z
2022-03-28T12:40:03.000Z
src/imaginaire/losses/__init__.py
livingbio/imaginaire-fsvid2vid
d82c87aced50afd44fd162491ba5b59056b74034
[ "RSA-MD" ]
370
2020-09-29T00:34:08.000Z
2022-03-30T04:12:48.000Z
# Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, check out LICENSE.md from .gan import GANLoss from .perceptual import PerceptualLoss from .feature_matching import FeatureMatchingLoss fr...
34.136364
80
0.76032
84
751
6.666667
0.654762
0.071429
0
0
0
0
0
0
0
0
0
0.009539
0.16245
751
21
81
35.761905
0.880763
0.266312
0
0
0
0
0.212844
0
0
0
0
0
0
1
0
false
0.066667
0.533333
0
0.533333
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
1
0
0
0
0
2
269da2336f919923d5e611614dd00c4c7c0d2716
1,077
py
Python
scraper/storage_spiders/mytourvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/mytourvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/mytourvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='infomation_detail infomation']/h1/strong/span", 'price' : "//td[@class='voucher_td']/p[@class='price_room']/span[@class=...
39.888889
111
0.635097
139
1,077
4.76259
0.589928
0.036254
0.015106
0
0
0
0
0
0
0
0
0.003161
0.118849
1,077
26
112
41.423077
0.694415
0.111421
0
0
1
0.043478
0.54717
0.421384
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
26b01efada89270998580a639e441b76b6c9caed
493
py
Python
src/wai/annotations/tf/utils/_ensure_available.py
waikato-ufdl/wai-annotations-tf
be147d1d313abbd8bbf25ac8d9ab3d6f03d3b5b3
[ "Apache-2.0" ]
null
null
null
src/wai/annotations/tf/utils/_ensure_available.py
waikato-ufdl/wai-annotations-tf
be147d1d313abbd8bbf25ac8d9ab3d6f03d3b5b3
[ "Apache-2.0" ]
1
2021-07-29T01:48:26.000Z
2021-07-29T01:48:26.000Z
src/wai/annotations/tf/utils/_ensure_available.py
waikato-ufdl/wai-annotations-tf
be147d1d313abbd8bbf25ac8d9ab3d6f03d3b5b3
[ "Apache-2.0" ]
null
null
null
""" Makes sure tensorflow is available. To utilise, just import this module. """ try: import tensorflow except ImportError as e: raise RuntimeError("No tensorflow library found\n" "Please install either tensorflow or tensorflow-gpu\n" " pip install tensorflow\n" ...
32.866667
77
0.657201
59
493
5.423729
0.627119
0.13125
0.06875
0.13125
0
0
0
0
0
0
0
0
0.27789
493
14
78
35.214286
0.898876
0.223124
0
0
0
0
0.370667
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
26bb3e897140cb6a5433f4963e28b580a80631a0
620
py
Python
uberpong/engine/spot.py
axltxl/uberpong
7baa1d63064bc233ebe9d23da1e08fe2d81833cb
[ "CC-BY-4.0" ]
1
2015-12-07T18:02:09.000Z
2015-12-07T18:02:09.000Z
uberpong/engine/spot.py
axltxl/uberpong
7baa1d63064bc233ebe9d23da1e08fe2d81833cb
[ "CC-BY-4.0" ]
null
null
null
uberpong/engine/spot.py
axltxl/uberpong
7baa1d63064bc233ebe9d23da1e08fe2d81833cb
[ "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- """ engine.spot ~~~~~~~~ Single Point Of Truth (c) 2015 by Alejandro Ricoveri See LICENSE for more details. """ _spot = {} def spot_get(key): """Get value under key Args: key(str): name of value Returns: Value stored under 'key', otherwise None """ if ke...
15.5
48
0.574194
84
620
4.154762
0.464286
0.068768
0.074499
0.097421
0.166189
0.166189
0.166189
0.166189
0
0
0
0.01171
0.31129
620
39
49
15.897436
0.805621
0.583871
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0
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
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
26bc843561b3ac3badb112cd9112e66efc79ede1
659
py
Python
app/main/views.py
Belie06Loryn/-News_Highlight
5b7e6dada59e3eb117c147bacedf0169cd662719
[ "Unlicense" ]
null
null
null
app/main/views.py
Belie06Loryn/-News_Highlight
5b7e6dada59e3eb117c147bacedf0169cd662719
[ "Unlicense" ]
null
null
null
app/main/views.py
Belie06Loryn/-News_Highlight
5b7e6dada59e3eb117c147bacedf0169cd662719
[ "Unlicense" ]
null
null
null
from flask import render_template, request, redirect, url_for from ..models_article import Article from ..models_sources import Source from ..requests import get_articles, get_sources from . import main @main.route('/') def index(): """ This it's gone turn index.html page and it content """ isoko = ge...
28.652174
69
0.701062
89
659
5.05618
0.483146
0.093333
0.088889
0
0
0
0
0
0
0
0
0
0.185129
659
23
70
28.652174
0.837989
0.139605
0
0
0
0
0.126629
0
0
0
0
0
0
1
0.142857
false
0
0.357143
0
0.642857
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
1
0
0
2
26cab193ed996fa794174556c8f81954fb292fe8
1,200
py
Python
onlyflans/web/forms.py
NestorPatricio/OnlyFlans
f900d849e271557fe24ebbaf82922c97c5886d95
[ "MIT" ]
null
null
null
onlyflans/web/forms.py
NestorPatricio/OnlyFlans
f900d849e271557fe24ebbaf82922c97c5886d95
[ "MIT" ]
null
null
null
onlyflans/web/forms.py
NestorPatricio/OnlyFlans
f900d849e271557fe24ebbaf82922c97c5886d95
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import ContactForm class ContactFormForm(forms.Form): customer_email = forms.EmailField(label = 'Correo') customer_name = forms.CharField(max_length = 64, label = 'Nombre')...
37.5
115
0.69
129
1,200
6.372093
0.44186
0.10219
0.069343
0.051095
0.153285
0
0
0
0
0
0
0.009174
0.1825
1,200
31
116
38.709677
0.828746
0
0
0.090909
0
0
0.158333
0
0
0
0
0
0
1
0
false
0.136364
0.181818
0
0.772727
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
1
0
0
2
26cd5ffd827ee8defd1efa30deaaf0c797aa2050
5,353
py
Python
ooobuild/lo/ui/x_image_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/ui/x_image_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/ui/x_image_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
47.371681
313
0.719783
607
5,353
6.260297
0.342669
0.033158
0.055263
0.058947
0.429737
0.413421
0.376842
0.337368
0.337368
0.292632
0
0.014604
0.194097
5,353
112
314
47.794643
0.866249
0.59107
0
0.25
0
0
0.176239
0.085023
0
0
0
0
0
1
0.25
false
0
0.25
0
0.678571
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
1
0
0
2
26cf3ad6894e4f6508df023dbc5e30e5de8b4250
167
py
Python
tasks/EPAM/python_course/foundation-python/l4/m4-7.py
AleksNeStu/projects
1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb
[ "Apache-2.0" ]
2
2022-01-19T18:01:35.000Z
2022-02-06T06:54:38.000Z
tasks/EPAM/python_course/foundation-python/l4/m4-7.py
AleksNeStu/projects
1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb
[ "Apache-2.0" ]
null
null
null
tasks/EPAM/python_course/foundation-python/l4/m4-7.py
AleksNeStu/projects
1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb
[ "Apache-2.0" ]
null
null
null
"""Usage of lambda.""" l = [{'a':1}, {'a':2}, {'a':3}, {'a':4}] f = lambda d: d.get('a') f(l[1]) f = lambda d: d.get('a', 'No value') [f(item) for item in l] h = 1
15.181818
40
0.449102
37
167
2.027027
0.486486
0.186667
0.213333
0.24
0.346667
0.346667
0
0
0
0
0
0.044776
0.197605
167
11
41
15.181818
0.514925
0.095808
0
0
0
0
0.09589
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
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
2
f8016fae40879d74eaac3571d13d98feaa0d0597
465
py
Python
src/animations.py
Bizbud/Culminating
7c0a45dc12043e0c6805217cb733fd4cd9a84db5
[ "Unlicense" ]
null
null
null
src/animations.py
Bizbud/Culminating
7c0a45dc12043e0c6805217cb733fd4cd9a84db5
[ "Unlicense" ]
null
null
null
src/animations.py
Bizbud/Culminating
7c0a45dc12043e0c6805217cb733fd4cd9a84db5
[ "Unlicense" ]
null
null
null
class Animations(): animation_index = 0 animation_frame_index = 0 # Animation frames (images) animations = [] # Hitbox frames (rects) hitboxes = [] # Hurtbox frames (rects) hurtboxes = [] # Returns instantiated animations def init_animations(animations, hitboxes, hurtboxes): new_ani...
29.0625
80
0.683871
50
465
6.22
0.6
0.125402
0.096463
0
0
0
0
0
0
0
0
0.008108
0.204301
465
16
81
29.0625
0.832432
0.402151
0
0
0
0
0
0
0
0
0
0.0625
0
1
0.111111
false
0
0
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
1
0
0
0
0
0
0
0
1
0
0
2
f81374265a8af1991c67140f80706f1986e4613b
9,327
py
Python
tests/test_time.py
pavelsof/stl
e7771ed52f2dcbaf3f04fcc2c52759e7fd255335
[ "MIT" ]
12
2016-10-25T20:59:16.000Z
2022-03-19T14:14:34.000Z
tests/test_time.py
pavelsof/stl
e7771ed52f2dcbaf3f04fcc2c52759e7fd255335
[ "MIT" ]
null
null
null
tests/test_time.py
pavelsof/stl
e7771ed52f2dcbaf3f04fcc2c52759e7fd255335
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta from itertools import permutations from unittest import TestCase from hypothesis.strategies import dates, datetimes, just, sampled_from from hypothesis import assume, example, given from stl.time import Parser from stl.time import prettify_date, prettify_datetime, pretti...
36.151163
75
0.614131
1,241
9,327
4.509267
0.087027
0.206397
0.10025
0.048785
0.751966
0.706576
0.577377
0.524482
0.477663
0.424589
0
0.0473
0.247454
9,327
257
76
36.291829
0.749964
0
0
0.445596
0
0
0.03354
0
0
0
0
0
0.398964
1
0.088083
false
0
0.036269
0
0.134715
0
0
0
0
null
1
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
2
f81c4c932f99a5dce75cfc7248472fb2bafe639e
1,849
py
Python
temperature_controller/constants.py
andniz/temperature-controller
7b92032ae8ff3f257681cd7474c834011f0e72fb
[ "MIT" ]
null
null
null
temperature_controller/constants.py
andniz/temperature-controller
7b92032ae8ff3f257681cd7474c834011f0e72fb
[ "MIT" ]
null
null
null
temperature_controller/constants.py
andniz/temperature-controller
7b92032ae8ff3f257681cd7474c834011f0e72fb
[ "MIT" ]
null
null
null
from decimal import Decimal class Actions: COOLING = 'cooling' NO_ACTION = 'no_action' HEATING = 'heating' class CurrentTempStatus: TOO_HOT = 'too_hot' TOO_COLD = 'too_cold' class HysteresisStatus: WITHIN = 'within' OUT_OF = 'out_of' NO_CONFIG_MESSAGE = 'Config file not found at give...
44.02381
103
0.756084
222
1,849
6.067568
0.225225
0.193022
0.187082
0.106904
0.66444
0.654046
0.638456
0.561247
0.457313
0.407572
0
0.00122
0.113034
1,849
41
104
45.097561
0.820122
0
0
0
0
0
0.59762
0.484045
0
0
0
0
0
1
0
false
0
0.033333
0
0.366667
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
f820116c497e90c70605f66d7a193918d378295f
1,725
py
Python
greenflag/greenflags.py
redpoint13/greenflag
e168ab532ab54e421c8e4a235df2f71fc3690d88
[ "BSD-2-Clause" ]
null
null
null
greenflag/greenflags.py
redpoint13/greenflag
e168ab532ab54e421c8e4a235df2f71fc3690d88
[ "BSD-2-Clause" ]
null
null
null
greenflag/greenflags.py
redpoint13/greenflag
e168ab532ab54e421c8e4a235df2f71fc3690d88
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import helpers import pandas as pd import pandas_datareader as pdr import pandas_datareader.data as web from datetime import datetime import pandas_ta as ta import pyfolio as pf ''' Pyfolio package provides an easy way to generate a tearsheet containing performance statistics. These statistics ...
26.136364
101
0.72058
257
1,725
4.7393
0.498054
0.039409
0.036125
0.032841
0.060755
0.060755
0.060755
0
0
0
0
0.039375
0.146087
1,725
65
102
26.538462
0.787508
0.118261
0
0
0
0
0.053129
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.545455
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
1
0
0
2
f827b198e87a284bfbdaf8b7f54e65d3db41f4f7
389
py
Python
yunionclient/api/serviceaccounts.py
yunionyun/python_yunionsdk
40a567b80f6fb3ebc72d8cc6313b334a201b2f00
[ "Apache-2.0" ]
3
2021-09-22T11:34:08.000Z
2022-03-13T04:55:17.000Z
yunionclient/api/serviceaccounts.py
yunionyun/python_yunionsdk
40a567b80f6fb3ebc72d8cc6313b334a201b2f00
[ "Apache-2.0" ]
13
2019-06-06T08:25:41.000Z
2021-07-16T07:26:10.000Z
yunionclient/api/serviceaccounts.py
yunionyun/python_yunionsdk
40a567b80f6fb3ebc72d8cc6313b334a201b2f00
[ "Apache-2.0" ]
7
2019-03-31T05:43:36.000Z
2021-03-04T09:59:05.000Z
from yunionclient.common import base class Serviceaccount(base.ResourceBase): pass class ServiceaccountManager(base.StandaloneManager): resource_class = Serviceaccount keyword = 'serviceaccount' keyword_plural = 'serviceaccounts' _columns = ["Name", "Id", "Status", "Creationtimestamp", "Created_A...
29.923077
138
0.737789
36
389
7.805556
0.694444
0.135231
0
0
0
0
0
0
0
0
0
0
0.138817
389
12
139
32.416667
0.838806
0
0
0
0
0
0.28866
0
0
0
0
0
0
1
0
false
0.125
0.125
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
f8429f6d03c1013453235f2eb209f977649af5f1
782
py
Python
debug/printout.py
gimpf/talon-conf
50c334637341b748c959b9cd0904e6544d9f5626
[ "Unlicense" ]
5
2020-04-30T04:18:37.000Z
2021-07-28T20:50:34.000Z
debug/printout.py
gimpf/talon-conf
50c334637341b748c959b9cd0904e6544d9f5626
[ "Unlicense" ]
null
null
null
debug/printout.py
gimpf/talon-conf
50c334637341b748c959b9cd0904e6544d9f5626
[ "Unlicense" ]
3
2020-05-16T01:29:54.000Z
2020-11-24T11:17:51.000Z
from talon import actions, Module mod = Module() @mod.action def print_all_actions(): """Print all actions to stdout""" actions.list() # for m in actions._registry.modules: # for act in actions._registry.modules[m]._actions: # print(f'{act}:\t{actions._registry.modules[m]._actions[act...
25.225806
83
0.62532
106
782
4.45283
0.320755
0.190678
0.279661
0.20339
0.540254
0.131356
0.131356
0
0
0
0
0
0.217391
782
30
84
26.066667
0.771242
0.309463
0
0.176471
0
0
0.132184
0.103448
0
0
0
0
0
1
0.176471
false
0
0.058824
0
0.235294
0.294118
0
0
0
null
0
1
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
2
f8560d948856cee34c3630874e727717d24feb7e
788
py
Python
数值分析/t54.py
jasnzhuang/Personal-Homework
edf633ce94f22a646786b85e133797339cf9fc3d
[ "MIT" ]
463
2019-10-25T04:28:49.000Z
2022-03-31T06:03:44.000Z
数值分析/t54.py
1002753959/Undergraduate
95e6e95a98f53e350d628edacad0042382c6a464
[ "MIT" ]
1
2020-11-28T08:05:22.000Z
2020-11-28T08:26:34.000Z
数值分析/t54.py
1002753959/Undergraduate
95e6e95a98f53e350d628edacad0042382c6a464
[ "MIT" ]
201
2019-04-10T07:17:10.000Z
2019-10-15T09:46:30.000Z
import numpy as np from t53 import QR def solve(A): eps = 1e-6 k = A.shape[0] cnt = 0 while k > 1 and abs(A[k-1, k-2]) > eps and cnt < 5: s = A[k-1, k-1] A[:k, :k] -= np.identity(k) * s qk, rk = QR(A[:k, :k]) A[:k, :k] = rk.dot(qk) + np.identity(k) * s cnt += 1 if abs(A[k-1, k-2]) <= eps: k -= 1 pr...
20.736842
52
0.479695
155
788
2.387097
0.335484
0.081081
0.113514
0.140541
0.102703
0.102703
0.102703
0.043243
0.043243
0.043243
0
0.204283
0.229695
788
37
53
21.297297
0.405272
0.203046
0
0
0
0
0.05475
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.178571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
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
2
f876274e96537b5ceb294b2d20df81ffa53bdac8
3,332
py
Python
mendeley/resources/folders.py
cjblocker/mendeley-python-sdk
a76c7fecdd5e5c9691d327cd35a41ed30b2f5c57
[ "Apache-2.0" ]
null
null
null
mendeley/resources/folders.py
cjblocker/mendeley-python-sdk
a76c7fecdd5e5c9691d327cd35a41ed30b2f5c57
[ "Apache-2.0" ]
null
null
null
mendeley/resources/folders.py
cjblocker/mendeley-python-sdk
a76c7fecdd5e5c9691d327cd35a41ed30b2f5c57
[ "Apache-2.0" ]
2
2021-11-04T21:06:30.000Z
2022-03-28T18:47:23.000Z
import json from mendeley.models.folders import Folder from mendeley.resources.base import ListResource, GetByIdResource from mendeley.response import LazyResponseObject from mendeley.resources.base_documents import DocumentsBase from mendeley.models.documents import * class Folders(GetByIdResource, ListResource): ...
33.656566
189
0.638655
397
3,332
5.20403
0.259446
0.047435
0.031946
0.030978
0.25121
0.223137
0.212972
0.212972
0.10939
0.10939
0
0.002401
0.25
3,332
99
190
33.656566
0.82433
0.238595
0
0.072727
0
0
0.05753
0.025804
0
0
0
0
0
1
0.218182
false
0
0.109091
0.090909
0.581818
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
1
0
0
2
f876dea6e46b7dd902934773eb521d5449d80535
886
py
Python
aiotusclient/client.py
lablup/aiotusclient
1eb2f1a1037b122bb1a41a2b2763fbfb6d9eea37
[ "MIT" ]
2
2020-12-08T13:23:49.000Z
2022-01-04T08:20:10.000Z
aiotusclient/client.py
lablup/aiotusclient
1eb2f1a1037b122bb1a41a2b2763fbfb6d9eea37
[ "MIT" ]
1
2021-03-02T05:16:26.000Z
2021-03-02T05:16:26.000Z
aiotusclient/client.py
lablup/aiotusclient
1eb2f1a1037b122bb1a41a2b2763fbfb6d9eea37
[ "MIT" ]
null
null
null
from typing import Dict from .uploader import AsyncUploader class TusClient: """ Object representation of Tus client for the Backend.AI. :Attributes: - headers (dict): This can be used to set the server specific headers. These headers would be sent along with every reques...
30.551724
78
0.642212
108
886
5.222222
0.564815
0.039007
0.028369
0.039007
0
0
0
0
0
0
0
0
0.28781
886
28
79
31.642857
0.893819
0.558691
0
0
0
0
0.01791
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
f8876b889b02ee9401c6a33b8acae53bc06adc37
446
py
Python
src/sadie/utility/exception.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
9
2020-12-22T19:14:01.000Z
2022-03-17T04:34:06.000Z
src/sadie/utility/exception.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
32
2020-12-28T07:46:44.000Z
2022-03-31T01:25:01.000Z
src/sadie/utility/exception.py
jwillis0720/sadie
d289ae68f06f5698ee40ffc1757e1b8aa85f1175
[ "MIT" ]
2
2021-07-30T16:44:46.000Z
2022-01-12T20:15:17.000Z
class Error(Exception): """Base class for exceptions in this module.""" class SadieIOError(Error): """Exception raised for SadieIO""" def __init__(self, msg): super().__init__() self.msg = msg def __str__(self): return f"{self.msg}" class IOInferError(SadieIOError): """...
21.238095
72
0.636771
54
446
4.888889
0.537037
0.106061
0.125
0.106061
0.174242
0.174242
0
0
0
0
0
0
0.237668
446
20
73
22.3
0.776471
0.298206
0
0.2
0
0
0.03367
0
0
0
0
0
0
1
0.3
false
0
0
0.1
0.7
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
1
0
0
2
f887ea47b9a98d9eaf2406de38a06393c6926a69
1,666
py
Python
ums/userapp/middleware.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
ums/userapp/middleware.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
ums/userapp/middleware.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- from django.utils.deprecation import MiddlewareMixin from utils import * from models import Session, User from permission_mgr import PermissionManager import common class SessionMiddleware(MiddlewareMixin): def process_request(self, request): sid = request.COOKIES.get("sid") if not sid: r...
26.03125
99
0.7491
227
1,666
5.352423
0.273128
0.082305
0.062551
0.088889
0.502058
0.419753
0.348971
0.348971
0.348971
0.348971
0
0.002851
0.157863
1,666
63
100
26.444444
0.86315
0.033613
0
0.509804
0
0
0.041693
0
0
0
0
0
0
0
null
null
0.058824
0.098039
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
f89dcff802ee505c0aed983a67b8487eb0ad04f0
850
py
Python
CodesComplete/Alura/DesignPatterns/builder/nota_fiscal.py
vinimmelo/python
ef1f4e0550773592d3b0a88a3213de2f522870a3
[ "MIT" ]
null
null
null
CodesComplete/Alura/DesignPatterns/builder/nota_fiscal.py
vinimmelo/python
ef1f4e0550773592d3b0a88a3213de2f522870a3
[ "MIT" ]
null
null
null
CodesComplete/Alura/DesignPatterns/builder/nota_fiscal.py
vinimmelo/python
ef1f4e0550773592d3b0a88a3213de2f522870a3
[ "MIT" ]
1
2020-03-03T22:34:13.000Z
2020-03-03T22:34:13.000Z
# coding:UTF-8 # nota_fiscal.py class NotaFiscal(object): def __init__(self, razao_social, cnpj, itens, data_de_emissao, detalhes): self._razao_social = razao_social self._cnpj = cnpj self._itens = itens self._data_de_emissao = data_de_emissao if len(detalhes) > 20: ...
22.368421
90
0.647059
106
850
4.877358
0.358491
0.106383
0.125725
0.065764
0
0
0
0
0
0
0
0.008117
0.275294
850
37
91
22.972973
0.831169
0.031765
0
0.16
0
0
0.072127
0
0
0
0
0
0
1
0.24
false
0
0
0.16
0.48
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
1
0
0
0
2
f89e09df9481b8f57943df92d77096cb1803bf50
352
py
Python
Floating Rounded/4.5.3 Rounding Error.py
ferrerinicolas/python_samples
107cead4fbee30b275a5e2be1257833129ce5e46
[ "MIT" ]
null
null
null
Floating Rounded/4.5.3 Rounding Error.py
ferrerinicolas/python_samples
107cead4fbee30b275a5e2be1257833129ce5e46
[ "MIT" ]
null
null
null
Floating Rounded/4.5.3 Rounding Error.py
ferrerinicolas/python_samples
107cead4fbee30b275a5e2be1257833129ce5e46
[ "MIT" ]
null
null
null
x = 0.0037 / 100 y = 0.000037 # These numbers look equal! print(x) print(y) # ... But they aren't exactly equal! if x == y: print("Equal!") else: print("Unequal!") # ... But they are approximately equal (to five decimal places)! if round(x, 5) == round(y, 5): print("Approximately equal!") else: p...
16
64
0.625
53
352
4.150943
0.528302
0.245455
0.127273
0
0
0
0
0
0
0
0
0.061151
0.210227
352
22
65
16
0.730216
0.349432
0
0.166667
0
0
0.256637
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
2
6eff95be61e9b1894787ac7e23343d0451a491c7
272
py
Python
basketball/templatetags/get_url.py
rokj/django_basketball
beda23b83f9a0fb4000e63592754c10eb1a5844c
[ "MIT" ]
1
2016-01-31T22:15:08.000Z
2016-01-31T22:15:08.000Z
basketball/templatetags/get_url.py
rokj/django_basketball
beda23b83f9a0fb4000e63592754c10eb1a5844c
[ "MIT" ]
null
null
null
basketball/templatetags/get_url.py
rokj/django_basketball
beda23b83f9a0fb4000e63592754c10eb1a5844c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django import template from common.functions import get_url register = template.Library() # for future use # https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#assignment-tags # register.simple_tag(takes_context=True)(get_url)
30.222222
83
0.772059
39
272
5.282051
0.794872
0.058252
0
0
0
0
0
0
0
0
0
0.004049
0.091912
272
8
84
34
0.82996
0.610294
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
3e00021dca6bc71a2c97225176847e107f70008e
5,552
py
Python
formalchemy/tests/test_renderers.py
abourget/formalchemy-abourget
39a4b751cf561df0db9a982e4f5890a7d4ddf862
[ "MIT" ]
1
2019-06-14T08:49:00.000Z
2019-06-14T08:49:00.000Z
formalchemy/tests/test_renderers.py
abourget/formalchemy-abourget
39a4b751cf561df0db9a982e4f5890a7d4ddf862
[ "MIT" ]
null
null
null
formalchemy/tests/test_renderers.py
abourget/formalchemy-abourget
39a4b751cf561df0db9a982e4f5890a7d4ddf862
[ "MIT" ]
null
null
null
from formalchemy.tests import * from formalchemy.renderers import * import datetime __doc__ = r""" Let's test the behavior of a Field element, returning a modified copy of itself when we call some methods on it: >>> fs = FieldSet(User) >>> fs.password AttributeField(password) >>> fs.password.renderer <Text...
32.27907
114
0.67201
726
5,552
5.073003
0.290634
0.042357
0.029867
0.058648
0.445832
0.365191
0.345099
0.294054
0.249525
0.124627
0
0.00623
0.161563
5,552
171
115
32.467836
0.784962
0
0
0.343284
0
0.067164
0.970281
0.161563
0
0
0
0
0.007463
1
0
false
0.208955
0.029851
0
0.029851
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
3e4b10bb12645baec88a866080347585ab6f3381
599
py
Python
preprocessors/padpreprocessor.py
iamVarunAnand/image_classification
58120a2a708e495b598cc97fe297e2071c8c4197
[ "MIT" ]
18
2019-10-17T10:30:40.000Z
2020-12-26T03:59:23.000Z
preprocessors/padpreprocessor.py
iamVarunAnand/image_classification
58120a2a708e495b598cc97fe297e2071c8c4197
[ "MIT" ]
2
2021-08-25T15:05:01.000Z
2022-02-09T23:41:44.000Z
preprocessors/padpreprocessor.py
iamVarunAnand/image_classification
58120a2a708e495b598cc97fe297e2071c8c4197
[ "MIT" ]
3
2020-09-18T19:29:13.000Z
2021-12-27T05:17:53.000Z
# import the necessary packages import tensorflow as tf class PadPreprocessor: """ Zero pads the input image by the specified amount (Support only for padding both height and width by the same amount) Attributes ---------- pad: int amount of padding to add to both height and width of ...
26.043478
97
0.63606
82
599
4.597561
0.536585
0.111406
0.087533
0.111406
0.074271
0.074271
0
0
0
0
0
0.004556
0.267112
599
22
98
27.227273
0.854214
0.509182
0
0
0
0
0.03125
0
0
0
0
0
0
1
0.333333
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
1
0
0
0
1
0
0
0
2
3e6c6e6e63a15bc9166bdfd514c2eda3000b8163
414
py
Python
filter-small-images.py
creed30/python-utilities
cf4a7418d2cc4ad7b4062098287ae6aab536b803
[ "Apache-2.0" ]
null
null
null
filter-small-images.py
creed30/python-utilities
cf4a7418d2cc4ad7b4062098287ae6aab536b803
[ "Apache-2.0" ]
null
null
null
filter-small-images.py
creed30/python-utilities
cf4a7418d2cc4ad7b4062098287ae6aab536b803
[ "Apache-2.0" ]
null
null
null
from PIL import Image import sys import glob import os print "This is the directory of the pictures: ", sys.argv[1] arr = glob.glob(sys.argv[1] + "/*."+sys.argv[2]) x = int(sys.argv[3]) y = int(sys.argv[4]) for file in arr: im = Image.open(file) if im.size[0] < x and im.size[1] < y: os.rename(file, os...
25.875
64
0.618357
73
414
3.506849
0.520548
0.136719
0.0625
0
0
0
0
0
0
0
0
0.021341
0.207729
414
15
65
27.6
0.759146
0
0
0
0
0
0.125604
0
0
0
0
0
0
0
null
null
0
0.307692
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
3e7bb3abd00ecbde0f727fc1459a4c785748068d
598
py
Python
dolo/tests/test_complementarity_model.py
christophe-gouel/dolo
d9aef6d78d19899e2669e49ee6b7ad9aacf0e35d
[ "BSD-2-Clause" ]
null
null
null
dolo/tests/test_complementarity_model.py
christophe-gouel/dolo
d9aef6d78d19899e2669e49ee6b7ad9aacf0e35d
[ "BSD-2-Clause" ]
null
null
null
dolo/tests/test_complementarity_model.py
christophe-gouel/dolo
d9aef6d78d19899e2669e49ee6b7ad9aacf0e35d
[ "BSD-2-Clause" ]
null
null
null
#from dolo import * ## #model = yaml_import('/home/pablo/Documents/Work/Florin/flexible.yaml') ## #from dolo.compiler.compiler_global import CModel #cm = CModel(model) ## #[lb, ub] = cm.x_bounds # ## # # #dr = global_solve(model, verbose=True, smolyak_order=4, interp_type='spline', numdiff=True, polish=False) # #dr = g...
20.62069
115
0.690635
92
598
4.380435
0.532609
0.039702
0.064516
0.08933
0.168734
0.168734
0.168734
0
0
0
0
0.028409
0.117057
598
28
116
21.357143
0.734848
0.906355
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
3e80e3046c54056cf846f37f9fc7e4e0d39ef72b
2,012
py
Python
bw2data/backends/single_file/proxies.py
dgdekoning/brightway2-data
e7354ae86a778a98267d9bb1cdee60061aa164ab
[ "BSD-3-Clause" ]
null
null
null
bw2data/backends/single_file/proxies.py
dgdekoning/brightway2-data
e7354ae86a778a98267d9bb1cdee60061aa164ab
[ "BSD-3-Clause" ]
null
null
null
bw2data/backends/single_file/proxies.py
dgdekoning/brightway2-data
e7354ae86a778a98267d9bb1cdee60061aa164ab
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals from eight import * from ...proxies import ActivityProxyBase, ExchangeProxyBase from ...utils import get_activity class Activity(ActivityProxyBase): def __init__(self, key, data={}): data["database"], data["code"] = key[0], k...
30.029851
171
0.656064
245
2,012
5.285714
0.420408
0.02471
0.041699
0.048649
0.281081
0.281081
0.281081
0.217761
0.217761
0.143629
0
0.002556
0.222167
2,012
66
172
30.484848
0.82492
0.38668
0
0.4
0
0
0.106036
0
0
0
0
0
0
1
0.3
false
0
0.133333
0.1
0.6
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
3e830d17086b722b408e988879d25d3df61dda1f
517
py
Python
Ago-Dic-2020/aguilar-cedillo-jonathan-ivan/practica 1/practica1.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2020/aguilar-cedillo-jonathan-ivan/practica 1/practica1.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2020/aguilar-cedillo-jonathan-ivan/practica 1/practica1.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
class Matrix: def __init__(self, matrix_string): self.matrix_List = [[int(num) for num in e.split()] for e in matrix_string.splitlines()] def row(self, index): return list(self.matrix_List[index-1]) def column(self, index): return [i[index-1] for i in self.matrix_List] Matrix1 = M...
28.722222
96
0.676983
83
517
4.096386
0.421687
0.117647
0.123529
0
0
0
0
0
0
0
0
0.035294
0.17795
517
17
97
30.411765
0.764706
0
0
0
0
0
0.11412
0
0
0
0
0
0
1
0.230769
false
0
0
0.153846
0.461538
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
3e872244fb174b12d01c2e4c20154fbe91483a60
151
py
Python
main.py
OConnellErin/Deque
b923b33dbdaa6fcb45a17fbfb36370ac5f13341f
[ "FSFAP" ]
null
null
null
main.py
OConnellErin/Deque
b923b33dbdaa6fcb45a17fbfb36370ac5f13341f
[ "FSFAP" ]
null
null
null
main.py
OConnellErin/Deque
b923b33dbdaa6fcb45a17fbfb36370ac5f13341f
[ "FSFAP" ]
null
null
null
# Deque Scratchpad # YOUR NAME # Use this as a "scratchpad" to tinker with your deque. from deque import Deque # Example ages = Deque() print(ages)
13.727273
55
0.721854
23
151
4.73913
0.695652
0
0
0
0
0
0
0
0
0
0
0
0.198676
151
10
56
15.1
0.900826
0.582781
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
3e8de1d8ccfc83a9f5866f78e518d34d7f0840c7
3,076
py
Python
gan/bar_generator.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
1
2022-01-28T00:03:19.000Z
2022-01-28T00:03:19.000Z
gan/bar_generator.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
null
null
null
gan/bar_generator.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
1
2021-11-23T00:49:26.000Z
2021-11-23T00:49:26.000Z
import torch from torch import nn from .utils import Reshape, OOGANInput class BarGenerator(nn.Module): n_steps_per_bar = 16 n_pitches = 84 def __init__(self, c_dimension: int=3, z_dimension: int=32, hid_features: int=1024, hid_...
44.57971
95
0.55104
364
3,076
4.398352
0.184066
0.219863
0.097439
0.099938
0.557776
0.525297
0.474079
0.445971
0.445971
0.420987
0
0.041687
0.337126
3,076
68
96
45.235294
0.743502
0.241873
0
0.276596
0
0
0
0
0
0
0
0.014706
0
1
0.042553
false
0
0.06383
0
0.191489
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
1
0
0
0
0
0
0
0
0
0
0
2
3e8efc9fcb1db9d8a9620e6313b6ca0afdc614b2
2,119
py
Python
doc/generate_90_af.py
wangziqi2013/Android-Dalvik-Analysis
c22e48cffd0af84febe9796afa9598b7c4e976c7
[ "Apache-2.0" ]
4
2016-10-03T06:38:00.000Z
2019-06-15T02:57:27.000Z
doc/generate_90_af.py
wangziqi2013/Android-Dalvik-Analysis
c22e48cffd0af84febe9796afa9598b7c4e976c7
[ "Apache-2.0" ]
null
null
null
doc/generate_90_af.py
wangziqi2013/Android-Dalvik-Analysis
c22e48cffd0af84febe9796afa9598b7c4e976c7
[ "Apache-2.0" ]
1
2019-06-15T02:57:45.000Z
2019-06-15T02:57:45.000Z
s = \ """90: add-int 91: sub-int 92: mul-int 93: div-int 94: rem-int 95: and-int 96: or-int 97: xor-int 98: shl-int 99: shr-int 9a: ushr-int 9b: add-long 9c: sub-long 9d: mul-long 9e: div-long 9f: rem-long a0: and-long a1: or-long a2: xor-long a3: shl-long a4: shr-long a5: ushr-long a6: add-float a7: sub-float a8: mul...
23.032609
81
0.528551
313
2,119
3.476038
0.309904
0.08364
0.060662
0.060662
0.204044
0.180147
0.143382
0.053309
0
0
0
0.051333
0.292119
2,119
91
82
23.285714
0.674
0
0
0.16
0
0
0.330774
0.043709
0
0
0
0
0
0
null
null
0
0
null
null
0.42
0
0
0
null
0
0
0
0
0
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
1
0
2
e4168df26140c7a9417a28758bced69689d7d45f
1,549
py
Python
fluiddb/cache/factory.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
3
2021-05-10T14:41:30.000Z
2021-12-16T05:53:30.000Z
fluiddb/cache/factory.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
null
null
null
fluiddb/cache/factory.py
fluidinfo/fluiddb
b5a8c8349f3eaf3364cc4efba4736c3e33b30d96
[ "Apache-2.0" ]
2
2018-01-24T09:03:21.000Z
2021-06-25T08:34:54.000Z
class CachingAPIFactory(object): """Factory creates concrete caching API instances.""" def users(self): """Get a new L{UserAPI} instance.""" from fluiddb.cache.user import CachingUserAPI return CachingUserAPI() def objects(self, user): """Get a new L{ObjectAPI} instance."""...
36.023256
73
0.679793
155
1,549
6.793548
0.322581
0.030389
0.053181
0.060779
0.186135
0.151947
0
0
0
0
0
0
0.227889
1,549
42
74
36.880952
0.880435
0.215623
0
0
0
0
0
0
0
0
0
0
0
1
0.32
false
0
0.32
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
1
0
0
1
0
0
0
0
2
e4266084c172c72a06959044ab2b04fc421765dc
112
py
Python
day5/pong/colors.py
alqmy/The-Garage-Summer-Of-Code
af310d5e5194a62962db2fc1e601099468251efa
[ "MIT" ]
null
null
null
day5/pong/colors.py
alqmy/The-Garage-Summer-Of-Code
af310d5e5194a62962db2fc1e601099468251efa
[ "MIT" ]
null
null
null
day5/pong/colors.py
alqmy/The-Garage-Summer-Of-Code
af310d5e5194a62962db2fc1e601099468251efa
[ "MIT" ]
null
null
null
""" colors modules - defines colors for a game """ WHITE = (255, 255, 255) BLACK = (0, 0, 0) RED = (255, 0, 0)
14
42
0.571429
19
112
3.368421
0.578947
0.09375
0
0
0
0
0
0
0
0
0
0.197674
0.232143
112
7
43
16
0.546512
0.375
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
2
e430fa0ea316fdc13c555f3f33f1b7935e905d9c
6,808
py
Python
helper.py
krozmuszynska/geoportal
2e3f788a2f2574f1081884eeb491f3ec153b2f4f
[ "MIT" ]
null
null
null
helper.py
krozmuszynska/geoportal
2e3f788a2f2574f1081884eeb491f3ec153b2f4f
[ "MIT" ]
null
null
null
helper.py
krozmuszynska/geoportal
2e3f788a2f2574f1081884eeb491f3ec153b2f4f
[ "MIT" ]
null
null
null
from sheet_types import * from typing import Callable from openpyxl import load_workbook, Workbook import geojson # helper method to get cell value as string def get_str(work_book, work_sheet, col_id, row_id): return str(work_book[work_sheet][f'{str(col_id)}{str(row_id)}'].value) if work_book[work_sheet][f'{str(c...
49.333333
144
0.579025
969
6,808
3.755418
0.140351
0.1385
0.191261
0.270954
0.67601
0.649354
0.54438
0.459742
0.443803
0.150041
0
0.000834
0.295535
6,808
138
145
49.333333
0.757923
0.078731
0
0.322581
0
0
0.052412
0.01254
0
0
0
0
0
1
0.072581
false
0
0.032258
0.056452
0.185484
0
0
0
0
null
0
1
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
2
e4332225c39b83365d83857ca46ac9a4ceca74a3
719
py
Python
flaskapi/myflask01.py
ghazamu/mycode
dbea086bc3e21bb13b2b7ab04331a00cd1111969
[ "MIT" ]
null
null
null
flaskapi/myflask01.py
ghazamu/mycode
dbea086bc3e21bb13b2b7ab04331a00cd1111969
[ "MIT" ]
null
null
null
flaskapi/myflask01.py
ghazamu/mycode
dbea086bc3e21bb13b2b7ab04331a00cd1111969
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # An object of Flask class is our WSGI application from flask import Flask # Flask constructor takes the name of current # module (__name__) as argument app = Flask(__name__) # route() function of the Flask class is a # decorator, tells the application which URL # should call the associated functio...
24.793103
53
0.688456
105
719
4.533333
0.571429
0.05042
0.05042
0.058824
0
0
0
0
0
0
0
0.015075
0.16968
719
29
54
24.793103
0.782245
0.450626
0
0
0
0
0.253886
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.142857
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
1
0
0
0
2
e446e2bac698738c110ee074799c7aead2cd6e82
279
py
Python
game/combat/effects/endbattleeffect.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
5
2021-06-25T16:44:38.000Z
2021-12-31T01:29:00.000Z
game/combat/effects/endbattleeffect.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
null
null
null
game/combat/effects/endbattleeffect.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
1
2021-06-25T20:33:47.000Z
2021-06-25T20:33:47.000Z
from .baseeffect import BaseEffect class EndBattleEffect(BaseEffect): spd_on_action = -1 def on_action(self): # TODO show battle rewards and stuff self.scene.board.no_skip("Battle ends!", particle="", battle_end=True) return False, False, True
25.363636
78
0.688172
36
279
5.194444
0.75
0.085562
0
0
0
0
0
0
0
0
0
0.004587
0.218638
279
10
79
27.9
0.853211
0.121864
0
0
0
0
0.049383
0
0
0
0
0.1
0
1
0.166667
false
0
0.166667
0
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
1
0
0
0
0
0
0
0
1
0
0
2
e46ea32827ee6fc0c304a8def03bc817b3f131ad
1,206
py
Python
padatious/trainable.py
DodoHan/mycroft-core-zh
d07e374d29bbc9182a71cdcb72a1828272858b45
[ "Apache-2.0" ]
144
2017-08-03T11:33:47.000Z
2022-03-07T20:25:42.000Z
padatious/trainable.py
DodoHan/mycroft-core-zh
d07e374d29bbc9182a71cdcb72a1828272858b45
[ "Apache-2.0" ]
31
2017-09-06T16:39:35.000Z
2021-11-10T00:46:49.000Z
padatious/trainable.py
DodoHan/mycroft-core-zh
d07e374d29bbc9182a71cdcb72a1828272858b45
[ "Apache-2.0" ]
44
2017-09-05T16:44:56.000Z
2022-03-20T03:26:20.000Z
# Copyright 2017 Mycroft AI, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
26.8
74
0.665008
166
1,206
4.76506
0.566265
0.075853
0.03287
0.040455
0.08091
0.08091
0.08091
0
0
0
0
0.008772
0.243781
1,206
44
75
27.409091
0.858553
0.458541
0
0.272727
0
0
0.021909
0
0
0
0
0
0
1
0.272727
false
0.136364
0.045455
0
0.409091
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
1
0
0
0
0
0
2