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
3cb929d8fa24f1122564db813af9ab0475a425f5
838
py
Python
tests/elections/test_police_and_crime_commissioner.py
DemocracyClub/uk-election-timetables
2541f9e5050a393906bafa2b70709fe650de3f32
[ "MIT" ]
2
2020-11-14T15:56:56.000Z
2021-01-11T11:11:09.000Z
tests/elections/test_police_and_crime_commissioner.py
DemocracyClub/uk-election-timetables
2541f9e5050a393906bafa2b70709fe650de3f32
[ "MIT" ]
12
2020-11-18T20:27:43.000Z
2021-12-15T10:47:01.000Z
tests/elections/test_police_and_crime_commissioner.py
DemocracyClub/uk-election-timetables
2541f9e5050a393906bafa2b70709fe650de3f32
[ "MIT" ]
null
null
null
from datetime import date from uk_election_timetables.elections import PoliceAndCrimeCommissionerElection # Reference election: pcc.avon-and-somerset.2016-05-05 def test_publish_date_police_and_crime_commissioner(): election = PoliceAndCrimeCommissionerElection(date(2016, 5, 5)) assert election.sopn_publish...
33.52
79
0.805489
103
838
6.281553
0.359223
0.049459
0.092736
0.120556
0.528594
0.528594
0.528594
0.417311
0.309119
0.309119
0
0.083221
0.110979
838
24
80
34.916667
0.785235
0.145585
0
0.181818
0
0
0
0
0
0
0
0
0.272727
1
0.272727
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3cb98b826371f4dfda09a39ed9c09c8f6ab7451b
847
py
Python
LaureatsBackEnd-master/laureats/migrations/0011_auto_20200111_1525.py
SanaaCHAOU/laureat_management_ENSAT
d769714f9f8cb9ebf90e02577547ec348c011461
[ "MIT" ]
null
null
null
LaureatsBackEnd-master/laureats/migrations/0011_auto_20200111_1525.py
SanaaCHAOU/laureat_management_ENSAT
d769714f9f8cb9ebf90e02577547ec348c011461
[ "MIT" ]
null
null
null
LaureatsBackEnd-master/laureats/migrations/0011_auto_20200111_1525.py
SanaaCHAOU/laureat_management_ENSAT
d769714f9f8cb9ebf90e02577547ec348c011461
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-11 14:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('laureats', '0010_auto_20200111_1458'), ] operations = [ migrations.CreateModel( name='Professio...
28.233333
132
0.570248
80
847
5.9375
0.7
0.050526
0.058947
0.092632
0
0
0
0
0
0
0
0.057336
0.299882
847
29
133
29.206897
0.743676
0.053129
0
0.086957
1
0
0.13625
0.02875
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3cbc5cfef3c4ee6f751fd3f8b8b9e741e7ebbbd4
1,952
py
Python
python/250.count-univalue-subtrees.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
10
2019-09-15T00:23:57.000Z
2022-01-05T12:53:42.000Z
python/250.count-univalue-subtrees.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
3
2021-06-30T00:39:26.000Z
2021-08-01T07:13:59.000Z
python/250.count-univalue-subtrees.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
6
2020-02-08T02:55:22.000Z
2022-01-02T22:48:18.000Z
# [250] Count Univalue Subtrees # Description # Given a binary tree, count the number of uni-value subtrees. # A Uni-value subtree means all nodes of the subtree have the same value. # Example # Example 1 # Input: root = {5,1,5,5,5,#,5} # Output: 4 # Explanation: # 5 # / \ # ...
22.436782
103
0.518955
248
1,952
3.987903
0.254032
0.049545
0.012133
0.064712
0.478261
0.478261
0.399393
0.371082
0.326593
0.326593
0
0.0299
0.383197
1,952
86
104
22.697674
0.791528
0.387807
0
0.333333
0
0
0
0
0
0
0
0.011628
0
1
0.083333
false
0
0
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3cd8375d5dea7465c5253237889db106c353b42a
4,342
py
Python
src/main/python/bktools/framework/money/currency.py
bspa10/bktools
8ddff2bb325df6c4c2bb5cadd3029c0e11ba0734
[ "MIT" ]
null
null
null
src/main/python/bktools/framework/money/currency.py
bspa10/bktools
8ddff2bb325df6c4c2bb5cadd3029c0e11ba0734
[ "MIT" ]
null
null
null
src/main/python/bktools/framework/money/currency.py
bspa10/bktools
8ddff2bb325df6c4c2bb5cadd3029c0e11ba0734
[ "MIT" ]
null
null
null
# encoding: utf-8 # Standard Library from os import path from threading import Lock from typing import Set from typing import Optional from xml.etree import ElementTree as ET from xml.etree.ElementTree import Element # 3rd Party Library # Current Folder # Current Application # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-...
25.692308
120
0.52211
454
4,342
4.764317
0.328194
0.040684
0.033287
0.036986
0.118354
0.118354
0.067499
0.042534
0
0
0
0.012825
0.33556
4,342
168
121
25.845238
0.736915
0.25357
0
0.168831
0
0
0.048996
0.018374
0
0
0
0
0
1
0.155844
false
0
0.077922
0.025974
0.519481
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3ce716ac3e56a4c2bf161beb78851142feb3c86b
1,585
py
Python
pysanejs/api.py
Lookyloo/PySaneJS
99615608222d7386e74472bcc052f40b05916b2a
[ "BSD-2-Clause" ]
1
2019-01-30T16:12:32.000Z
2019-01-30T16:12:32.000Z
pysanejs/api.py
CIRCL/PySaneJS
501f22d0d22d6361bb71a8bf0bbb2e14d3c0f9f1
[ "BSD-2-Clause" ]
36
2021-06-09T17:34:05.000Z
2022-03-28T09:04:37.000Z
pysanejs/api.py
Lookyloo/PySaneJS
99615608222d7386e74472bcc052f40b05916b2a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import requests from urllib.parse import urljoin from typing import Union, Dict, List, Optional class SaneJS(): def __init__(self, root_url: str='https://sanejs.circl.lu/'): self.root_url = root_url self.session = requests.session() @property ...
28.303571
129
0.477603
158
1,585
4.696203
0.398734
0.056604
0.074124
0.056604
0.12938
0.12938
0.091644
0.091644
0
0
0
0.026749
0.386751
1,585
55
130
28.818182
0.736626
0.251104
0
0.086957
0
0
0.057229
0
0
0
0
0
0
1
0.173913
false
0
0.130435
0
0.521739
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3cf38cae0f2a545ab33232a28befeb4c8470d502
1,103
py
Python
tests/test_http_basic_auth.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
1
2020-12-04T03:15:47.000Z
2020-12-04T03:15:47.000Z
tests/test_http_basic_auth.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
1
2021-06-01T22:24:27.000Z
2021-06-01T22:24:27.000Z
tests/test_http_basic_auth.py
zhanghe06/flask_restful
6ef54f3f7efbbaff6169e963dcf45ab25e11e593
[ "MIT" ]
2
2020-12-04T03:16:18.000Z
2021-09-04T14:10:12.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: test_http_basic_auth.py @time: 2018-06-21 11:17 """ from __future__ import print_function from __future__ import unicode_literals import unittest import requests from requests.auth import HTTPBasicAuth class HttpBasicAuthTest(u...
20.425926
73
0.635539
133
1,103
5
0.488722
0.084211
0.049624
0.07218
0.168421
0.084211
0.084211
0
0
0
0
0.032569
0.248413
1,103
53
74
20.811321
0.769602
0.148685
0
0
0
0
0.057444
0
0
0
0
0
0.090909
1
0.181818
false
0.136364
0.227273
0
0.454545
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
1
0
0
0
0
0
1
3cf5781010a796345729a2c7347029eba43ec197
1,696
py
Python
snomed_parent_cat_mapper.py
vickysam/pyHealth
5660afd385a0342aa2039b42af5f208c672bfdeb
[ "Apache-2.0" ]
7
2017-04-30T15:12:33.000Z
2021-11-21T01:39:04.000Z
snomed_parent_cat_mapper.py
vickysam/pyHealth
5660afd385a0342aa2039b42af5f208c672bfdeb
[ "Apache-2.0" ]
null
null
null
snomed_parent_cat_mapper.py
vickysam/pyHealth
5660afd385a0342aa2039b42af5f208c672bfdeb
[ "Apache-2.0" ]
2
2018-08-07T14:38:14.000Z
2021-04-09T05:41:08.000Z
import csv import pymedtermino from pymedtermino.snomedct import * pymedtermino.LANGUAGE = "en" pymedtermino.REMOVE_SUPPRESSED_CONCEPTS = False input_delta_file = 'sct2_Concept_Delta_INT_20160131.csv' output_delta_file = 'sct2_Concept_Delta_INT_20160131_Top_Category_Mapped.csv' data = [] snomed_data = [] with open('...
32.615385
219
0.722877
218
1,696
5.486239
0.344037
0.0301
0.023411
0.033445
0.175585
0.175585
0.175585
0.115385
0.115385
0.115385
0
0.047745
0.110849
1,696
51
220
33.254902
0.745358
0
0
0.1
0
0
0.229363
0.053066
0
0
0
0
0
0
null
null
0
0.075
null
null
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3cf96ed28f3d03023b6eb089f792b8961163dffe
1,927
py
Python
panopto_client/access.py
uw-it-cte/django-panopto-client
cdfc22e1a7c1e06de62477c30681da0755238152
[ "Apache-2.0" ]
4
2017-12-29T19:15:37.000Z
2019-11-18T18:32:39.000Z
panopto_client/access.py
uw-it-cte/django-panopto-client
cdfc22e1a7c1e06de62477c30681da0755238152
[ "Apache-2.0" ]
2
2017-09-07T23:27:52.000Z
2019-04-10T20:27:22.000Z
panopto_client/access.py
uw-it-cte/django-panopto-client
cdfc22e1a7c1e06de62477c30681da0755238152
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module exposes Panopto "AccessManagement" Service methods """ from panopto_client import PanoptoAPI, PanoptoAPIException class AccessManagement(PanoptoAPI): def __init__(self): super(AccessManagement, self).__...
34.410714
76
0.637779
180
1,927
6.594444
0.388889
0.050548
0.071609
0.10952
0.368997
0.368997
0.368997
0.259478
0.259478
0.192081
0
0.006233
0.250649
1,927
55
77
35.036364
0.815789
0.075765
0
0.414634
0
0
0.176072
0.099323
0
0
0
0
0
1
0.170732
false
0
0.02439
0.121951
0.390244
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
3cfb5d1a0f1982dc0361736334993c9728647d4a
367
py
Python
webapi.py
Netherdrake/steemdata-webapi
02b443b6e7292577dfcca1a7fcc55329b1b70fb9
[ "MIT" ]
1
2017-04-20T04:22:07.000Z
2017-04-20T04:22:07.000Z
webapi.py
Netherdrake/steemdata-webapi
02b443b6e7292577dfcca1a7fcc55329b1b70fb9
[ "MIT" ]
1
2017-06-07T13:08:32.000Z
2017-06-07T13:08:32.000Z
webapi.py
Netherdrake/steemdata-webapi
02b443b6e7292577dfcca1a7fcc55329b1b70fb9
[ "MIT" ]
null
null
null
import os from eve import Eve from eve_docs import eve_docs from flask_bootstrap import Bootstrap # init Eve app = Eve(settings='settings.py') # init Eve-Docs Bootstrap(app) app.register_blueprint(eve_docs, url_prefix='/docs') if __name__ == '__main__': app.run(host=os.getenv('FLASK_HOST', '127.0.0.1'), ...
21.588235
54
0.719346
57
367
4.368421
0.491228
0.11245
0
0
0
0
0
0
0
0
0
0.019231
0.149864
367
16
55
22.9375
0.778846
0.059946
0
0
0
0
0.154971
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a70b86cdb095113c2f13cde684b541b11f3759d8
4,975
py
Python
my_tagger.py
jndevanshu/tagger
51181d3ac9b0959ba507ee0c06c28bed55b51c76
[ "Apache-2.0" ]
null
null
null
my_tagger.py
jndevanshu/tagger
51181d3ac9b0959ba507ee0c06c28bed55b51c76
[ "Apache-2.0" ]
null
null
null
my_tagger.py
jndevanshu/tagger
51181d3ac9b0959ba507ee0c06c28bed55b51c76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import time import codecs import optparse import sys import json import numpy as np from my_loader import prepare_sentence from utils import create_input, iobes_iob, iob_ranges, zero_digits from model import Model from ccg_nlpy.core.text_annotation import TextAnnotation from ccg_nlpy....
30.521472
213
0.605427
646
4,975
4.458204
0.287926
0.0375
0.041319
0.027083
0.117361
0.027083
0
0
0
0
0
0.012623
0.267538
4,975
162
214
30.709877
0.777717
0.066332
0
0.084746
0
0
0.12851
0.013607
0
0
0
0
0.042373
0
null
null
0
0.101695
null
null
0.076271
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a70d45fc226ab2dd59c5db64dd9ed218486ffae6
4,691
py
Python
Inkscape-OUTPUT-PRO-master/outputpro/cutmarks.py
ilnanny/Inkscape-addons
a30cdde2093fa2da68b90213e057519d0304433f
[ "X11" ]
3
2019-03-08T23:32:29.000Z
2019-05-11T23:53:46.000Z
Inkscape-OUTPUT-PRO-master/outputpro/cutmarks.py
ilnanny/Inkscape-addons
a30cdde2093fa2da68b90213e057519d0304433f
[ "X11" ]
null
null
null
Inkscape-OUTPUT-PRO-master/outputpro/cutmarks.py
ilnanny/Inkscape-addons
a30cdde2093fa2da68b90213e057519d0304433f
[ "X11" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import subprocess #re, subprocess, simplestyle, os#inkex, os, random, sys, subprocess, shutil def generate_final_file(isvector, hide_inside_marks, colormode, width, height, space, strokewidth, bleedsize, marksize, temp_dir): if not isvector: command = [] ...
56.518072
248
0.5534
487
4,691
5.143737
0.168378
0.176447
0.083034
0.092216
0.657086
0.633533
0.622754
0.607984
0.562475
0.503393
0
0.005212
0.304626
4,691
82
249
57.207317
0.762722
0.024515
0
0.278689
1
0
0.06671
0
0
0
0
0
0
1
0.016393
false
0
0.016393
0
0.032787
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a71112e7354fe0bb8dca61271d9bc6a1f7ca9381
8,430
py
Python
lib/overnet/gen_bazel.py
PowerOlive/garnet
16b5b38b765195699f41ccb6684cc58dd3512793
[ "BSD-3-Clause" ]
null
null
null
lib/overnet/gen_bazel.py
PowerOlive/garnet
16b5b38b765195699f41ccb6684cc58dd3512793
[ "BSD-3-Clause" ]
null
null
null
lib/overnet/gen_bazel.py
PowerOlive/garnet
16b5b38b765195699f41ccb6684cc58dd3512793
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.7 # Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import os import sys # This program generates BUILD.bazel, WORKSPACE, .bazelrc from BUILD.gn ##################...
27.281553
100
0.57758
1,137
8,430
4.175022
0.203166
0.02865
0.024647
0.020223
0.378555
0.308405
0.225195
0.172741
0.137982
0.129134
0
0.011475
0.234994
8,430
308
101
27.37013
0.724608
0.032384
0
0.164502
0
0
0.411135
0.125366
0
0
0
0
0.004329
0
null
null
0
0.012987
null
null
0.099567
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a71203325ed630e617cb8551726c8b7f07f5f6f8
423
py
Python
accounts/migrations/0013_alter_caller_list_file.py
Srinjay-hack/Buddy
155b9ba58a20bf043493213dd8349f61012fc480
[ "Apache-2.0" ]
null
null
null
accounts/migrations/0013_alter_caller_list_file.py
Srinjay-hack/Buddy
155b9ba58a20bf043493213dd8349f61012fc480
[ "Apache-2.0" ]
null
null
null
accounts/migrations/0013_alter_caller_list_file.py
Srinjay-hack/Buddy
155b9ba58a20bf043493213dd8349f61012fc480
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.4 on 2021-07-12 14:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0012_alter_caller_estimated_amount'), ] operations = [ migrations.AlterField( model_name='caller', name=...
22.263158
72
0.614657
47
423
5.382979
0.829787
0
0
0
0
0
0
0
0
0
0
0.06129
0.267139
423
18
73
23.5
0.754839
0.106383
0
0
1
0
0.151596
0.090426
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a712ce0eafb15d53426b4b979da8580fdd2c7a4c
7,978
py
Python
vk_bots/api.py
termisaal/VkBotsApi
0957ea46952c260090741aeddf71d50dd950f74c
[ "MIT" ]
null
null
null
vk_bots/api.py
termisaal/VkBotsApi
0957ea46952c260090741aeddf71d50dd950f74c
[ "MIT" ]
null
null
null
vk_bots/api.py
termisaal/VkBotsApi
0957ea46952c260090741aeddf71d50dd950f74c
[ "MIT" ]
null
null
null
""" VK Bots API Wrapper Copyright (c) 2020-2021 Misaal """ import aiohttp import json import typing from .errors import VKAPIError from .keyboard import Keyboard from .utils import to_namedtuple, get_random_id class MethodGroup: """Base class for API methods groups""" def __init__(self, access_token, v): ...
27.701389
93
0.534971
813
7,978
5.071341
0.189422
0.062091
0.088285
0.108659
0.192578
0.157167
0.157167
0.157167
0.149406
0.149406
0
0.00244
0.383429
7,978
287
94
27.797909
0.835739
0.015668
0
0.308824
0
0
0.028462
0
0
0
0
0
0
1
0.019608
false
0.20098
0.039216
0.004902
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a731c3353defbbffeebffba89c597908966a9fbc
936
py
Python
Catchphrase.py
YaruKatsaros/Catchphrase
5d674cc251be226e233fd427f9533a56f1a24284
[ "MIT" ]
null
null
null
Catchphrase.py
YaruKatsaros/Catchphrase
5d674cc251be226e233fd427f9533a56f1a24284
[ "MIT" ]
null
null
null
Catchphrase.py
YaruKatsaros/Catchphrase
5d674cc251be226e233fd427f9533a56f1a24284
[ "MIT" ]
null
null
null
import glob import os import sys import re savedlines = [] def startreading(): if os.path.isdir(sys.argv[1]): os.chdir(sys.argv[1]) target = sys.argv[2] # TODO: Multiple lines. for file in glob.glob("*.srt"): read(sys.argv[1], file, target) savelines() print("...
21.767442
96
0.573718
116
936
4.62931
0.525862
0.052142
0.044693
0
0
0
0
0
0
0
0
0.006024
0.290598
936
42
97
22.285714
0.802711
0.048077
0
0
0
0
0.099099
0
0
0
0
0.02381
0
1
0.09375
false
0
0.125
0
0.21875
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a738885fc845ac09ce24d938e1de039911e09569
6,061
py
Python
python/federatedml/protobuf/generated/sample_weight_model_param_pb2.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
715
2019-01-24T10:52:03.000Z
2019-10-31T12:19:22.000Z
python/federatedml/protobuf/generated/sample_weight_model_param_pb2.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
270
2019-02-11T02:57:36.000Z
2019-08-29T11:22:33.000Z
python/federatedml/protobuf/generated/sample_weight_model_param_pb2.py
rubenlozanoaht3m/DataDogm
cd605e8072cca31e8418830c3300657ae2fa5b16
[ "Apache-2.0" ]
200
2019-01-26T14:21:35.000Z
2019-11-01T01:14:36.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sample-weight-model-param.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 ...
42.985816
502
0.707144
661
6,061
6.226929
0.216339
0.033042
0.03207
0.043732
0.557337
0.516521
0.516521
0.500972
0.49174
0.470845
0
0.029821
0.181158
6,061
140
503
43.292857
0.799516
0.067316
0
0.479339
1
0.008264
0.250664
0.218601
0
0
0
0
0
1
0
false
0
0.041322
0
0.041322
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59519f91376cf89bef0bf6bdc3580d8bfb999e90
808
py
Python
python/163_missing_ranges.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
17
2016-03-01T22:40:53.000Z
2021-04-19T02:15:03.000Z
python/163_missing_ranges.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
null
null
null
python/163_missing_ranges.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
3
2019-03-07T03:48:43.000Z
2020-04-05T01:11:36.000Z
class Solution: def findMissingRanges(self, nums: List[int], lower: int, upper: int) -> List[str]: range_iter = lower num_iter = 0 ranges = [] while range_iter < upper and num_iter < len(nums): if range_iter < nums[num_iter]: if nums[num_iter] - 1...
36.727273
86
0.516089
93
808
4.27957
0.27957
0.248744
0.140704
0.120603
0.459799
0.364322
0.20603
0.20603
0
0
0
0.009671
0.360149
808
22
87
36.727273
0.760155
0
0
0
0
0
0.017305
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.166667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
595b940d98d4c9ba62ad1e7789fd5ad05f9b32ef
3,270
py
Python
Python3/726.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/726.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/726.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 24 ms submission class Solution: def countOfAtoms(self, formula: str) -> str: stack, atom, dic, count, coeff, c = [], '', collections.defaultdict(int), 0, 1, 0 for i in formula...
30
98
0.45107
288
3,270
4.09375
0.229167
0.061069
0.061069
0.044105
0.206955
0.186599
0.132316
0.132316
0.132316
0.132316
0
0.017251
0.450459
3,270
108
99
30.277778
0.638843
0
0
0.333333
0
0
0.001223
0
0
0
0
0
0
0
null
null
0
0.011111
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
59629f7a0c5633f940aafc1f0319ef57490ea9f2
9,441
py
Python
phl_courts_scraper/court_summary/schema.py
PhiladelphiaController/phl-courts-scraper
0c3c915a7fa355538c43a138fa7b104b8bf6ef1e
[ "MIT" ]
null
null
null
phl_courts_scraper/court_summary/schema.py
PhiladelphiaController/phl-courts-scraper
0c3c915a7fa355538c43a138fa7b104b8bf6ef1e
[ "MIT" ]
4
2020-12-09T18:25:53.000Z
2021-03-19T22:30:18.000Z
phl_courts_scraper/court_summary/schema.py
PhiladelphiaController/phl-courts-scraper
0c3c915a7fa355538c43a138fa7b104b8bf6ef1e
[ "MIT" ]
null
null
null
"""Define the schema for the court summary report.""" import datetime from dataclasses import dataclass, field, fields from typing import Any, Iterator, List, Optional, Union import desert import marshmallow import pandas as pd from ..utils import DataclassSchema __all__ = ["CourtSummary", "Docket", "Charge", "Sent...
26.594366
72
0.586696
1,136
9,441
4.713028
0.169894
0.030818
0.005043
0.025775
0.313971
0.287262
0.252148
0.219462
0.219462
0.219462
0
0
0.304841
9,441
354
73
26.669492
0.815785
0.343608
0
0.333333
0
0
0.083541
0.02915
0
0
0
0
0
1
0.119048
false
0
0.041667
0
0.577381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5962e0c96855173baf9ead74168b62eef51ee37e
216
py
Python
Day_43/json_dump_python.py
kiranrraj/100Days_Of_Coding
ab75d83be9be87fb7bc83a3f3b72a4638dab22a1
[ "MIT" ]
null
null
null
Day_43/json_dump_python.py
kiranrraj/100Days_Of_Coding
ab75d83be9be87fb7bc83a3f3b72a4638dab22a1
[ "MIT" ]
null
null
null
Day_43/json_dump_python.py
kiranrraj/100Days_Of_Coding
ab75d83be9be87fb7bc83a3f3b72a4638dab22a1
[ "MIT" ]
null
null
null
# Title : Json Module Module # Author : Kiran Raj R. # Date : 26/11/2020 python_json = {"name":"kiran", "email":"kiran@gmail.com", "isHappy": "Yes"} import json string_j = json.dumps(python_json) print(string_j)
24
75
0.680556
33
216
4.333333
0.69697
0.13986
0
0
0
0
0
0
0
0
0
0.043478
0.148148
216
9
76
24
0.733696
0.319444
0
0
0
0
0.270833
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5968638622036a0684e095d3de7062e4e3ce8115
292
py
Python
bigcode-fetcher/tests/fixtures/__init__.py
sourcery-ai-bot/bigcode-tools
87aaa609998017d0312b7f4f102d41cc2942fa9d
[ "MIT" ]
6
2017-10-15T08:21:27.000Z
2018-05-17T12:57:41.000Z
bigcode-fetcher/tests/fixtures/__init__.py
bdqnghi/bigcode-tools
94ce416fbb40b9b25d49bf88284bf7ccb6132bd3
[ "MIT" ]
2
2017-12-17T19:02:06.000Z
2018-03-01T04:00:26.000Z
bigcode-fetcher/tests/fixtures/__init__.py
bdqnghi/bigcode-tools
94ce416fbb40b9b25d49bf88284bf7ccb6132bd3
[ "MIT" ]
2
2017-10-18T08:17:54.000Z
2018-06-28T09:57:36.000Z
from os import path import json from bigcode_fetcher.project import Project FIXTURES_DIR = path.dirname(__file__) PROJECTS_PATH = path.join(FIXTURES_DIR, "projects.json") with open(PROJECTS_PATH, "r") as f: JSON_PROJECTS = json.load(f) PROJECTS = [Project(p) for p in JSON_PROJECTS]
20.857143
56
0.763699
45
292
4.711111
0.511111
0.103774
0
0
0
0
0
0
0
0
0
0
0.140411
292
13
57
22.461538
0.844622
0
0
0
0
0
0.047945
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
59692f082625d38c4980a6276af160523062869b
1,465
py
Python
examples/timeflies/timeflies_qt.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2018-11-16T09:07:13.000Z
2018-11-16T09:07:13.000Z
examples/timeflies/timeflies_qt.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/timeflies/timeflies_qt.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-04T11:13:49.000Z
2021-11-04T11:13:49.000Z
from rx.subjects import Subject from rx.concurrency import QtScheduler import sys try: from PyQt4 import QtCore from PyQt4.QtGui import QWidget, QLabel from PyQt4.QtGui import QApplication except ImportError: try: from PyQt5 import QtCore from PyQt5.QtWidgets import QApplication, QWidge...
24.416667
77
0.647099
183
1,465
5.060109
0.420765
0.047516
0.051836
0.043197
0.060475
0
0
0
0
0
0
0.016621
0.260751
1,465
59
78
24.830508
0.838412
0.03686
0
0.095238
0
0
0.036196
0
0
0
0
0
0
1
0.119048
false
0
0.309524
0
0.452381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
596ab002529af664473cf2cc0c9a6d46e4922281
849
py
Python
ADAMTR.py
akashsuper2000/codechef-archive
e0e4a7daf66812ab7aa3fe42132c3d067a72457b
[ "bzip2-1.0.6" ]
null
null
null
ADAMTR.py
akashsuper2000/codechef-archive
e0e4a7daf66812ab7aa3fe42132c3d067a72457b
[ "bzip2-1.0.6" ]
null
null
null
ADAMTR.py
akashsuper2000/codechef-archive
e0e4a7daf66812ab7aa3fe42132c3d067a72457b
[ "bzip2-1.0.6" ]
null
null
null
def swap(p,j,k,n): a = p[j] b = [] for m in range(n): b.append(p[m][k]) for m in range(n): p[m][k] = a[m] p[j] = b for i in range(int(input())): n = int(input()) p,q = [],[] for j in range(n): p.append([int(k) for k in input().split()]) for j in range(n): ...
22.342105
54
0.366313
146
849
2.130137
0.205479
0.057878
0.205788
0.141479
0.662379
0.456592
0.37299
0.37299
0.205788
0.205788
0
0.010331
0.429918
849
37
55
22.945946
0.632231
0
0
0.457143
0
0
0.005889
0
0
0
0
0
0
1
0.028571
false
0
0
0
0.028571
0.057143
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5970d34126fb063a7fca4ff450fce1eed6c84c32
494
py
Python
projects/tornado_projects/tord/tord/urls.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
1
2019-11-25T07:23:42.000Z
2019-11-25T07:23:42.000Z
projects/tornado_projects/tord/tord/urls.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
13
2020-01-07T16:09:47.000Z
2022-03-02T12:51:44.000Z
projects/tornado_projects/tord/tord/urls.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu from tord.handlers import (block_test, gocron, index, media, upload) url_patterns = [ (r"/", index.IndexHandler), (r"/books", upload.BooksHandler), (r"/images", media.ImageHandler), (r"/videos", media.VideoHandler), # (r"/async/t...
26
68
0.629555
60
494
5.1
0.6
0.088235
0
0
0
0
0
0
0
0
0
0.004808
0.157895
494
18
69
27.444444
0.730769
0.311741
0
0
0
0
0.110778
0
0
0
0
0.055556
0
1
0
false
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
59733ab215ceaed85b6503b5568828c87eda4e73
1,943
py
Python
Code/v1.0/message.py
arik-le/Chips-Bits
fa343ea79f13ce3172292871cebd1144b2c3c1c5
[ "MIT" ]
4
2017-11-06T15:12:07.000Z
2020-12-20T13:44:05.000Z
Code/v1.0/message.py
arik-le/Chips-Bits
fa343ea79f13ce3172292871cebd1144b2c3c1c5
[ "MIT" ]
36
2017-11-03T12:07:40.000Z
2018-06-22T11:59:59.000Z
Code/v1.0/message.py
arik-le/Chips-Bits
fa343ea79f13ce3172292871cebd1144b2c3c1c5
[ "MIT" ]
null
null
null
import pickle import os from constant_variable import * # class Message class Message: def __init__(self,device, id, type, body): # constructor # message will consist: type of message,content - body,device to send self.id = id self.type = type self.body = body self.device ...
26.616438
77
0.65054
264
1,943
4.609848
0.280303
0.069022
0.09203
0.098603
0.221857
0.119967
0.119967
0.119967
0.090386
0.090386
0
0.002052
0.247555
1,943
72
78
26.986111
0.830369
0.172928
0
0.122449
0
0
0.015694
0
0
0
0
0
0
0
null
null
0
0.061224
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
59821d30d6e5bb63ead4e418643ab63f3b0a5f6b
1,125
py
Python
examples/gbdt_classifier_example.py
tushushu/Imilu
121c79574d3e6ca35b569dd58661175e5c3668e2
[ "Apache-2.0" ]
407
2018-08-22T05:58:33.000Z
2022-03-31T11:44:48.000Z
examples/gbdt_classifier_example.py
tushushu/Imilu
121c79574d3e6ca35b569dd58661175e5c3668e2
[ "Apache-2.0" ]
9
2018-11-07T07:44:02.000Z
2021-12-10T11:59:47.000Z
examples/gbdt_classifier_example.py
tushushu/Imilu
121c79574d3e6ca35b569dd58661175e5c3668e2
[ "Apache-2.0" ]
286
2018-08-22T08:00:19.000Z
2022-03-30T00:59:20.000Z
# -*- coding: utf-8 -*- """ @Author: tushushu @Date: 2018-08-21 14:33:11 @Last Modified by: tushushu @Last Modified time: 2019-05-22 15:41:11 """ import os os.chdir(os.path.split(os.path.realpath(__file__))[0]) import sys sys.path.append(os.path.abspath("..")) from imylu.ensemble.gbdt_classifier import GradientBoos...
28.846154
99
0.731556
163
1,125
4.797546
0.472393
0.046036
0.053708
0.056266
0.092072
0.092072
0
0
0
0
0
0.041009
0.154667
1,125
38
100
29.605263
0.781283
0.230222
0
0
0
0
0.063604
0
0
0
0
0
0
1
0.052632
false
0
0.315789
0
0.368421
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
599abd70ab2405fa33e84f2920872f4103dff83c
273
py
Python
tests/conftest.py
eddyvdaker/FlaskSimpleStarter
4992492ac1788d80e5914188f994b3e0ed1e75f4
[ "MIT" ]
null
null
null
tests/conftest.py
eddyvdaker/FlaskSimpleStarter
4992492ac1788d80e5914188f994b3e0ed1e75f4
[ "MIT" ]
null
null
null
tests/conftest.py
eddyvdaker/FlaskSimpleStarter
4992492ac1788d80e5914188f994b3e0ed1e75f4
[ "MIT" ]
null
null
null
import pytest from src.app import create_app @pytest.fixture def app(): app = create_app() app.config['TESTING'] = True ctx = app.app_context() ctx.push() yield app ctx.pop() @pytest.fixture def client(app): return app.test_client()
12.409091
32
0.6337
38
273
4.447368
0.5
0.106509
0.189349
0
0
0
0
0
0
0
0
0
0.245421
273
21
33
13
0.820388
0
0
0.153846
0
0
0.025641
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0.076923
0.384615
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
599c63fc42e3f63659183c30e8778ab397e4a872
2,533
py
Python
amd64-linux/lib/pmon.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
1
2020-06-15T10:41:18.000Z
2020-06-15T10:41:18.000Z
amd64-linux/lib/pmon.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
null
null
null
amd64-linux/lib/pmon.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
3
2020-08-10T10:25:02.000Z
2021-09-12T01:12:09.000Z
# This file implements the PMON firmware's LEON2 boot setup. It does not # implement the serial port boot loading, only the initial setup. # The PMON firmware for the LEON2 comes with a number of preprocessor defines # that the user typically changes to match the hardware configuration. # The PMON emulation function t...
51.693878
83
0.70075
372
2,533
4.454301
0.362903
0.10863
0.141219
0.184671
0.347013
0.131563
0
0
0
0
0
0.128334
0.215555
2,533
48
84
52.770833
0.705586
0.259376
0
0
0
0
0
0
0
0
0.120475
0
0
1
0.088235
false
0
0.058824
0
0.147059
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59b00b4f37a6f1b8e5b3f8e0512fea304aa3d6eb
411
py
Python
vaas-app/src/vaas/manager/migrations/0005_director_service_mesh_label.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
251
2015-09-02T10:50:51.000Z
2022-03-16T08:00:35.000Z
vaas-app/src/vaas/manager/migrations/0005_director_service_mesh_label.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
154
2015-09-02T14:54:08.000Z
2022-03-16T08:34:17.000Z
vaas-app/src/vaas/manager/migrations/0005_director_service_mesh_label.py
allegro/vaas
3d2d1f1a9dae6ac69a13563a37f9bfdf4f986ae2
[ "Apache-2.0" ]
31
2015-09-03T07:51:05.000Z
2020-09-24T09:02:40.000Z
# Generated by Django 3.1.8 on 2021-05-26 11:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('manager', '0004_auto_20210519_1334'), ] operations = [ migrations.AddField( model_name='director', name='service_mes...
21.631579
63
0.610706
45
411
5.422222
0.866667
0
0
0
0
0
0
0
0
0
0
0.113712
0.272506
411
18
64
22.833333
0.702341
0.109489
0
0
1
0
0.153846
0.063187
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
59b0bbb7000e474ae515947910be3e63863f01d7
1,053
py
Python
api/resources_portal/models/material_share_event.py
arielsvn/resources-portal
f5a25935e45ceb05e2f4738f567eec9ca8793441
[ "BSD-3-Clause" ]
null
null
null
api/resources_portal/models/material_share_event.py
arielsvn/resources-portal
f5a25935e45ceb05e2f4738f567eec9ca8793441
[ "BSD-3-Clause" ]
null
null
null
api/resources_portal/models/material_share_event.py
arielsvn/resources-portal
f5a25935e45ceb05e2f4738f567eec9ca8793441
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from resources_portal.models.material import Material from resources_portal.models.user import User class MaterialShareEvent(models.Model): class Meta: db_table = "material_share_events" get_latest_by = "created_at" objects = models.Manager() created_at = mo...
25.682927
96
0.687559
123
1,053
5.658537
0.414634
0.056034
0.060345
0.081897
0.395115
0.314655
0.314655
0.314655
0.314655
0.314655
0
0.003676
0.225071
1,053
40
97
26.325
0.849265
0.024691
0
0.275862
0
0
0.087805
0.066341
0
0
0
0.025
0
1
0
false
0
0.103448
0
0.448276
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
59b0fd13274223a0798e641585901c741c9e0720
1,941
py
Python
datasets/nhse_stats/topics/archived_flu.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
null
null
null
datasets/nhse_stats/topics/archived_flu.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
11
2015-03-02T16:30:20.000Z
2016-11-29T12:16:15.000Z
datasets/nhse_stats/topics/archived_flu.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
2
2020-12-25T20:38:31.000Z
2021-04-11T07:35:01.000Z
""" Archived flu data http://webarchive.nationalarchives.gov.uk/20130107105354/http://www.dh.gov.uk/en/Publicationsandstatistics/Statistics/Performancedataandstatistics/DailySituationReports/index.htm """ import collections import calendar import datetime import re import urllib from lxml.html import fromstring, tostr...
37.326923
187
0.725399
226
1,941
6.168142
0.460177
0.039455
0.057389
0.071736
0.355811
0.305595
0.305595
0.305595
0.305595
0.225251
0
0.034982
0.145801
1,941
52
188
37.326923
0.80579
0
0
0.051282
0
0.025641
0.29977
0
0
0
0
0
0
0
null
null
0
0.230769
null
null
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
59bb523ee1c7f0f47bac3fc8d75ede697eb27fb4
882
py
Python
remodet_repository_wdh_part/Projects/Rtpose/solverParam.py
UrwLee/Remo_experience
a59d5b9d6d009524672e415c77d056bc9dd88c72
[ "MIT" ]
null
null
null
remodet_repository_wdh_part/Projects/Rtpose/solverParam.py
UrwLee/Remo_experience
a59d5b9d6d009524672e415c77d056bc9dd88c72
[ "MIT" ]
null
null
null
remodet_repository_wdh_part/Projects/Rtpose/solverParam.py
UrwLee/Remo_experience
a59d5b9d6d009524672e415c77d056bc9dd88c72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import caffe from caffe import params as P from google.protobuf import text_format #import inputParam import os import sys import math sys.path.append('../') from username import USERNAME sys.dont_write_bytecode = True # #####################################...
36.75
106
0.709751
108
882
5.555556
0.537037
0.116667
0.12
0.145
0.278333
0.278333
0.278333
0.196667
0
0
0
0.030826
0.080499
882
23
107
38.347826
0.709001
0.276644
0
0
0
0
0.247273
0.209091
0
0
0
0
0
1
0
false
0
0.470588
0
0.470588
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
59c4557276ecc1c473640fffbc5008ee28b54ede
526
py
Python
ipc_playground/MessageRegister.py
kingkw1/ipc_playground
95c265de1e92e075e82b02b241ec181b565ce8e1
[ "MIT" ]
1
2019-01-15T10:31:40.000Z
2019-01-15T10:31:40.000Z
ipc_playground/MessageRegister.py
kingkw1/ipc_playground
95c265de1e92e075e82b02b241ec181b565ce8e1
[ "MIT" ]
null
null
null
ipc_playground/MessageRegister.py
kingkw1/ipc_playground
95c265de1e92e075e82b02b241ec181b565ce8e1
[ "MIT" ]
null
null
null
from enum import IntEnum, unique """Stores the unique values for interpretting message signatures and command types. Extra key-value pairs have been added to simply to demonstrate how to modify this file. Not all key-value pairs have not implemented. """ @unique class MessageSource(IntEnum): UNKNOWN = 0 TEST...
27.684211
133
0.745247
75
526
5.186667
0.786667
0.041131
0.066838
0.087404
0
0
0
0
0
0
0
0.016627
0.19962
526
18
134
29.222222
0.907363
0.155894
0
0.181818
0
0
0
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
59ce58e16e5fcb0888195cc28df1fb18bde585db
419
py
Python
tests/test_TftWatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
2
2020-10-06T23:33:01.000Z
2020-11-22T01:58:43.000Z
tests/test_TftWatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
null
null
null
tests/test_TftWatcher.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
null
null
null
import pytest from riotwatcher import TftWatcher @pytest.mark.tft @pytest.mark.usefixtures("reset_globals") class TestTftWatcher: def test_require_api_key(self): with pytest.raises(ValueError): TftWatcher() def test_allows_positional_api_key(self): TftWatcher("RGAPI-this-is-a-fak...
23.277778
50
0.720764
55
419
5.254545
0.527273
0.083045
0.103806
0.138408
0.110727
0
0
0
0
0
0
0
0.176611
419
17
51
24.647059
0.837681
0
0
0
0
0
0.126492
0
0
0
0
0
0
1
0.25
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
59dbf8fbac1799a8d37a328c84598c10251b5f6b
2,499
py
Python
resume/migrations/0001_initial.py
jshaarda/resume_app
a2470966153f673529324e3beb97a35090873c75
[ "CC0-1.0" ]
null
null
null
resume/migrations/0001_initial.py
jshaarda/resume_app
a2470966153f673529324e3beb97a35090873c75
[ "CC0-1.0" ]
null
null
null
resume/migrations/0001_initial.py
jshaarda/resume_app
a2470966153f673529324e3beb97a35090873c75
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-28 05:15 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contribution', fields=[ ('id', models.AutoF...
37.863636
198
0.517407
214
2,499
5.929907
0.313084
0.106383
0.113475
0.1513
0.544523
0.460993
0.403467
0.403467
0.318361
0.318361
0
0.020238
0.327731
2,499
65
199
38.446154
0.735119
0.018007
0
0.517241
1
0
0.136623
0
0
0
0
0
0
1
0
false
0
0.017241
0
0.086207
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab649405524e8cca63212861bf189fca151fd6d0
1,338
py
Python
bot/hooks/activities.py
lungdart/discord_rpg_bot
dc574026965b972c6935cca0db2679e7be757939
[ "MIT" ]
1
2021-03-01T22:20:33.000Z
2021-03-01T22:20:33.000Z
bot/hooks/activities.py
lungdart/discord_rpg_bot
dc574026965b972c6935cca0db2679e7be757939
[ "MIT" ]
17
2021-03-05T16:50:48.000Z
2021-03-18T17:49:47.000Z
bot/hooks/activities.py
lungdart/discord_rpg_bot
dc574026965b972c6935cca0db2679e7be757939
[ "MIT" ]
null
null
null
""" Activity commands """ from discord.ext import commands from bot.components.logging import log_all class Activities(commands.Cog): """ Activity Commands """ def __init__(self, api): self.api = api @commands.command() @log_all async def work(self, ctx): """ (NOT YET IMPLEMENTED) ...
31.857143
73
0.618834
174
1,338
4.695402
0.287356
0.068543
0.124847
0.077111
0.705018
0.616891
0.581395
0.581395
0.581395
0.581395
0
0
0.252616
1,338
41
74
32.634146
0.814
0.026906
0
0.75
0
0
0.086957
0
0
0
0
0
0
1
0.03125
false
0
0.0625
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab68ee0cd0648022de9c14af27cdf8a16db6a56a
3,331
py
Python
scripts/run.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
scripts/run.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
scripts/run.py
Quentin18/higgs-boson-challenge
67a85bcdf277a446e06aca5da0f07a123a5e4222
[ "MIT" ]
null
null
null
""" Generate predictions for AIcrowd. Usage: python3 run.py The csv file produced will be "out/predictions.csv". """ # flake8: noqa: E402 import os import numpy as np # Import functions from scripts/ from csv_utils import create_csv_submission, load_csv_data from path import (add_src_to_path, load_json_parameters,...
27.081301
79
0.68628
542
3,331
3.824723
0.195572
0.086831
0.037144
0.019296
0.200193
0.184274
0.13507
0.107091
0.099373
0.071394
0
0.008507
0.223657
3,331
122
80
27.303279
0.793117
0.175323
0
0.032787
1
0
0.118299
0
0
0
0
0
0
1
0.016393
false
0
0.163934
0
0.180328
0.311475
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab6910b1d16677aedc78eed6d9c4c6cfdce602b0
8,958
py
Python
samples/proc_gen_chunk_load.py
LyfeOnEdge/ursina
04795ceb567eaef51cb36baa696da6646d1eb650
[ "MIT" ]
null
null
null
samples/proc_gen_chunk_load.py
LyfeOnEdge/ursina
04795ceb567eaef51cb36baa696da6646d1eb650
[ "MIT" ]
null
null
null
samples/proc_gen_chunk_load.py
LyfeOnEdge/ursina
04795ceb567eaef51cb36baa696da6646d1eb650
[ "MIT" ]
null
null
null
DESC = f"""{__file__} - A code sample to help get you started with proceedurally generated terrain / chunkloading in Ursina. More complex terrain can be achieved by using a more complicated function in GameWithChunkloading.get_heightmap(). Supports both Perlin Noise and Open Simplex Noise. Written by Lyfe. """ TERRAIN...
47.396825
139
0.728288
1,392
8,958
4.543822
0.224856
0.005375
0.02419
0.013913
0.084111
0.051858
0.043636
0.038577
0.013597
0
0
0.008428
0.152266
8,958
189
140
47.396825
0.824467
0.188658
0
0.054545
1
0.006061
0.176031
0.012455
0
0
0
0
0
1
0.048485
false
0
0.042424
0.006061
0.127273
0.036364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab6b8eb979811d5b77ce1285c72dd2711f8ffa4a
688
py
Python
namedivider-api/src/tests/controller/test_division_controller.py
dmnlk/namedivider-python
d87a488d4696bc26d2f6444ed399d83a6a1911a7
[ "MIT" ]
null
null
null
namedivider-api/src/tests/controller/test_division_controller.py
dmnlk/namedivider-python
d87a488d4696bc26d2f6444ed399d83a6a1911a7
[ "MIT" ]
null
null
null
namedivider-api/src/tests/controller/test_division_controller.py
dmnlk/namedivider-python
d87a488d4696bc26d2f6444ed399d83a6a1911a7
[ "MIT" ]
null
null
null
from namedivider import NameDivider from controller.model import DivisionRequest from controller import division_controller def test_division_controller(): divider = NameDivider() undivided_names = ["菅義偉"] division_request = DivisionRequest(names=undivided_names) res = division_controller.divide(divid...
36.210526
88
0.760174
81
688
6.148148
0.395062
0.090361
0.160643
0.210843
0.220884
0
0
0
0
0
0
0.037162
0.139535
688
19
89
36.210526
0.804054
0
0
0
0
0
0.040639
0
0
0
0
0
0.333333
1
0.066667
false
0
0.2
0
0.266667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab74852985676ec82cdc7e188c47c6f4ba919b55
1,956
py
Python
tests/drawing.py
xrloong/Xie
c45c454b4467d91e242a84fda665b67bd3d43ca9
[ "Apache-2.0" ]
null
null
null
tests/drawing.py
xrloong/Xie
c45c454b4467d91e242a84fda665b67bd3d43ca9
[ "Apache-2.0" ]
null
null
null
tests/drawing.py
xrloong/Xie
c45c454b4467d91e242a84fda665b67bd3d43ca9
[ "Apache-2.0" ]
null
null
null
import unittest from xie.graphics.drawing import DrawingSystem from xie.graphics.canvas import EncodedTextCanvasController from xie.graphics.factory import StrokeSpec, StrokeFactory class DrawingSystemTestCase(unittest.TestCase): def setUp(self): self.controller = EncodedTextCanvasController() self.ds = DrawingS...
34.928571
105
0.742331
269
1,956
5.349442
0.282528
0.050035
0.058374
0.116748
0.462821
0.37943
0.37943
0.184851
0.184851
0.159833
0
0.096811
0.102249
1,956
55
106
35.563636
0.722665
0
0
0.27907
0
0.023256
0.0711
0.022506
0
0
0
0
0.139535
1
0.209302
false
0.023256
0.093023
0
0.348837
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ab7b996b6afb9c15c69bb4ad3aab6bc1af3488de
694
py
Python
undistort_img.py
fwa785/CarND-Advanced_Lane_Lines
b36852e2519128c40bc22a2efed92d8014496b7e
[ "MIT" ]
null
null
null
undistort_img.py
fwa785/CarND-Advanced_Lane_Lines
b36852e2519128c40bc22a2efed92d8014496b7e
[ "MIT" ]
null
null
null
undistort_img.py
fwa785/CarND-Advanced_Lane_Lines
b36852e2519128c40bc22a2efed92d8014496b7e
[ "MIT" ]
null
null
null
import cv2 import pickle import matplotlib.image as mpimg import matplotlib.pyplot as plt def load_cal_dist(): # load the pickle file file = open("wide_dist_pickle.p", "rb") dist_pickle = pickle.load(file) objpoints = dist_pickle["objpoints"] imgpoints = dist_pickle["imgpoints"] return objpoi...
30.173913
104
0.721902
93
694
5.290323
0.451613
0.081301
0
0
0
0
0
0
0
0
0
0.015625
0.170029
694
22
105
31.545455
0.838542
0.144092
0
0
0
0
0.064407
0
0
0
0
0
0
1
0.133333
false
0
0.266667
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
0
0
0
1
0
0
1
ab811227dffc3fa3115f79fca2c6b8952322b4fe
1,395
py
Python
app/auth/views.py
Maryan23/1-MIN-OF-YOU
635607914f2782a7550a219a143a7f4735668c0d
[ "MIT" ]
null
null
null
app/auth/views.py
Maryan23/1-MIN-OF-YOU
635607914f2782a7550a219a143a7f4735668c0d
[ "MIT" ]
null
null
null
app/auth/views.py
Maryan23/1-MIN-OF-YOU
635607914f2782a7550a219a143a7f4735668c0d
[ "MIT" ]
null
null
null
from . import auth from flask_login import login_user,login_required,logout_user from flask import render_template,url_for,flash,redirect,request from .forms import SignupForm,SigninForm from ..models import User from .. import db from ..email import mail_message @auth.route('/signup', methods = ["GET","POST"]) def si...
35.769231
98
0.735484
204
1,395
4.872549
0.333333
0.070423
0.028169
0.034205
0.162978
0.056338
0
0
0
0
0
0.001647
0.129749
1,395
39
99
35.769231
0.817133
0
0
0
0
0
0.133238
0
0
0
0
0
0
1
0.090909
false
0.090909
0.212121
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ab821d3f7bbe4a732152f7621931f2be1339ca52
2,433
py
Python
examples/apps/python/ai/rapids/spark/examples/mortgage/consts.py
mgzhao/spark-examples
8db68af3fd62f097a0c145f78f7c76b59de6038d
[ "Apache-2.0" ]
69
2019-06-28T05:29:02.000Z
2022-01-11T22:32:13.000Z
examples/apps/python/ai/rapids/spark/examples/mortgage/consts.py
mgzhao/spark-examples
8db68af3fd62f097a0c145f78f7c76b59de6038d
[ "Apache-2.0" ]
30
2019-06-26T22:36:56.000Z
2020-07-11T01:02:58.000Z
examples/apps/python/ai/rapids/spark/examples/mortgage/consts.py
mgzhao/spark-examples
8db68af3fd62f097a0c145f78f7c76b59de6038d
[ "Apache-2.0" ]
45
2019-06-26T21:38:38.000Z
2021-12-21T03:59:23.000Z
# # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # 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...
34.757143
74
0.695438
272
2,433
6.080882
0.547794
0.266022
0.043531
0.019347
0
0
0
0
0
0
0
0.017098
0.158652
2,433
69
75
35.26087
0.790914
0.237567
0
0
0
0
0.2882
0.071234
0
0
0
0
0
1
0
false
0
0.020408
0
0.020408
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab849166beb1a14a49a2fed3c2e864b011e54654
7,732
py
Python
bounter/tests/hashtable/test_htc_get_set.py
BenLangmead/bounter
ab53c8edc168e9d991c5c25d68a30d2f7334ead2
[ "MIT" ]
987
2017-09-01T17:53:42.000Z
2022-03-30T02:34:46.000Z
bounter/tests/hashtable/test_htc_get_set.py
BenLangmead/bounter
ab53c8edc168e9d991c5c25d68a30d2f7334ead2
[ "MIT" ]
38
2017-09-01T22:05:01.000Z
2022-02-23T20:06:22.000Z
bounter/tests/hashtable/test_htc_get_set.py
BenLangmead/bounter
ab53c8edc168e9d991c5c25d68a30d2f7334ead2
[ "MIT" ]
52
2017-10-14T00:03:48.000Z
2021-09-19T00:39:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Filip Stefanak <f.stefanak@rare-technologies.com> # Copyright (C) 2017 Rare Technologies # # This code is distributed under the terms and conditions # from the MIT License (MIT). import sys import unittest from bounter import HashTable long_long_max = 9223372...
30.085603
120
0.603725
1,033
7,732
4.38819
0.177154
0.10589
0.150893
0.166777
0.651224
0.574454
0.492389
0.350982
0.281491
0.258107
0
0.023848
0.27328
7,732
256
121
30.203125
0.780744
0.208484
0
0.257143
0
0
0.088256
0
0
0
0
0
0.328571
1
0.15
false
0.014286
0.021429
0
0.2
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab893f5cecbf91a0d55eb76b909d67ec58082f49
235
py
Python
leetCode/algorithms/easy/create_target_array_in_the_given_order.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/easy/create_target_array_in_the_given_order.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/easy/create_target_array_in_the_given_order.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from typing import List class Solution: def createTargetArray(self, nums: List[int], index: List[int]) -> List[int]: target = [] for n, i in zip(nums, index): target.insert(i, n) return target
23.5
80
0.587234
31
235
4.451613
0.645161
0.152174
0
0
0
0
0
0
0
0
0
0
0.293617
235
9
81
26.111111
0.831325
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab8e89a1f7eaac263909d5acb64b0809c26923b5
507
py
Python
noise_generator.py
MxFxM/TerrainGenerator
9947f467d4224627b9f4d627f9cee5cb3cfec7ab
[ "MIT" ]
null
null
null
noise_generator.py
MxFxM/TerrainGenerator
9947f467d4224627b9f4d627f9cee5cb3cfec7ab
[ "MIT" ]
null
null
null
noise_generator.py
MxFxM/TerrainGenerator
9947f467d4224627b9f4d627f9cee5cb3cfec7ab
[ "MIT" ]
null
null
null
""" test to generate noise but failed for 2d """ import math import random maxfreq = 1/500 myfrequencies = [random.random() * maxfreq * 2 * math.pi for _ in range(5)] myphases = [random.random() * math.pi for _ in range(5)] def myfunction(x, y): global myfrequencies global myphases start = 1 for f, ...
21.125
75
0.639053
80
507
4.0125
0.475
0.065421
0.056075
0.068536
0.105919
0.105919
0
0
0
0
0
0.036082
0.234714
507
23
76
22.043478
0.791237
0.078895
0
0
1
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab8e9c9c2d80477fa8d1bdb740cc94ec4da0d950
947
py
Python
events/admin.py
DragosNicuDev/myhub
00f915b92b5cb7afd571811c5e020cfe9dcbb3ea
[ "MIT" ]
1
2018-02-11T19:07:18.000Z
2018-02-11T19:07:18.000Z
events/admin.py
DragosNicuDev/myhub
00f915b92b5cb7afd571811c5e020cfe9dcbb3ea
[ "MIT" ]
6
2020-06-05T18:27:46.000Z
2022-03-11T23:26:03.000Z
events/admin.py
DragosNicuDev/myhub
00f915b92b5cb7afd571811c5e020cfe9dcbb3ea
[ "MIT" ]
null
null
null
from django.contrib import admin from django_summernote.admin import SummernoteModelAdmin from .models import ( Event, EventDateAndTime, EventDescription, EventLocation) # Apply summernote to all TextField in model. class SomeModelAdmin(SummernoteModelAdmin): # instead of ModelAdmin summer_note_...
20.148936
68
0.708553
88
947
7.477273
0.488636
0.082067
0.104863
0
0
0
0
0
0
0
0
0.00406
0.219641
947
46
69
20.586957
0.886333
0.068638
0
0.09375
0
0
0.063709
0
0
0
0
0
0
1
0
false
0
0.09375
0
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
0
0
0
0
0
0
0
0
1
0
0
1
ab8f394d3739524d1318b614ee608ca8343c0792
930
py
Python
djangocms_bootstrap4/contrib/bootstrap4_link/migrations/0006_auto_20200213_0516.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
null
null
null
djangocms_bootstrap4/contrib/bootstrap4_link/migrations/0006_auto_20200213_0516.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
1
2018-12-12T10:52:07.000Z
2018-12-12T10:52:07.000Z
djangocms_bootstrap4/contrib/bootstrap4_link/migrations/0006_auto_20200213_0516.py
compoundpartners/js-bootstrap4
2b7e35ee476b6cc149448752aab5fbd605d92afb
[ "BSD-3-Clause" ]
1
2018-12-12T09:40:11.000Z
2018-12-12T09:40:11.000Z
# Generated by Django 2.2.10 on 2020-02-13 05:16 from django.db import migrations, models import djangocms_bootstrap4.contrib.bootstrap4_link.validators class Migration(migrations.Migration): dependencies = [ ('bootstrap4_link', '0005_auto_20190709_1626'), ] operations = [ migrations.Ad...
37.2
245
0.68172
103
930
5.980583
0.582524
0.068182
0.084416
0.116883
0.256494
0.162338
0
0
0
0
0
0.060976
0.206452
930
24
246
38.75
0.773713
0.049462
0
0.222222
1
0
0.207483
0.026077
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ab9e9c2eada36636bd43aa94268d3aee76259f10
1,989
py
Python
test/test_users.py
hanguokai/youku
8032710902411f92e1ae3f280eb121fd7231983b
[ "Apache-2.0" ]
106
2015-01-18T09:02:44.000Z
2020-10-23T14:32:16.000Z
test/test_users.py
hanguokai/youku
8032710902411f92e1ae3f280eb121fd7231983b
[ "Apache-2.0" ]
6
2016-10-16T14:17:47.000Z
2019-09-26T16:42:13.000Z
test/test_users.py
hanguokai/youku
8032710902411f92e1ae3f280eb121fd7231983b
[ "Apache-2.0" ]
25
2015-01-24T03:01:07.000Z
2020-05-04T12:23:28.000Z
# -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import unittest from config import * from youku import YoukuUsers class UserTest(unittest.TestCase): def setUp(self): self.youku = YoukuUsers(CLIENT_ID) def test_my_info(self)...
32.606557
79
0.685772
250
1,989
5.18
0.24
0.097297
0.027799
0.055598
0.3861
0.318147
0.257915
0
0
0
0
0.045511
0.193565
1,989
60
80
33.15
0.761845
0.010558
0
0.136364
0
0
0.096134
0
0
0
0
0
0.25
1
0.272727
false
0
0.113636
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
0
0
0
0
0
0
1
aba42aace3da5a22bb64d7c6415ae3217f5a8a2c
589
py
Python
old sources/loops.py
archang3l-media/neuroscience-master
e435a6d38d84afede65a8a406d28a4dc3e473f30
[ "MIT" ]
null
null
null
old sources/loops.py
archang3l-media/neuroscience-master
e435a6d38d84afede65a8a406d28a4dc3e473f30
[ "MIT" ]
null
null
null
old sources/loops.py
archang3l-media/neuroscience-master
e435a6d38d84afede65a8a406d28a4dc3e473f30
[ "MIT" ]
null
null
null
my_list = ['banana', 'strawberry', 'apple', 'watermelon', 'peach'] #a simple list sorted_list = sorted(my_list) #python includes powerful sorting algorithms for x in range(1,11,1): #a for loop which counts to ten """range takes up to three arguments: the start, which is inclusive, the end, which is exclusive and th...
45.307692
81
0.718166
101
589
4.138614
0.584158
0.07177
0.052632
0
0
0
0
0
0
0
0
0.016393
0.171477
589
12
82
49.083333
0.840164
0.348048
0
0.2
0
0
0.138462
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
aba8585d9a6da63e6cb8ee1a4fa109ef589d5a83
9,993
py
Python
autobidder.py
planet-winter/forumbidder
f80f1893b8bb7284f3ca0a95f184812b5c4a0244
[ "MIT" ]
null
null
null
autobidder.py
planet-winter/forumbidder
f80f1893b8bb7284f3ca0a95f184812b5c4a0244
[ "MIT" ]
null
null
null
autobidder.py
planet-winter/forumbidder
f80f1893b8bb7284f3ca0a95f184812b5c4a0244
[ "MIT" ]
null
null
null
#!/usr/bin/python import requests import json import re import mechanize import cookielib import sys from BeautifulSoup import BeautifulSoup # Variables engaged = False #topic_url="https://www.kvraudio.com/forum/viewtopic.php?f=1&t=470835" topic_url = "http://www.kvraudio.com/forum/viewtopic.php?f=1&t=492028" #topic...
34.105802
119
0.566497
1,198
9,993
4.590985
0.249583
0.008727
0.030545
0.008727
0.267273
0.163818
0.142727
0.132909
0.120909
0.108545
0
0.030536
0.259382
9,993
292
120
34.222603
0.712606
0.240668
0
0.162791
0
0.017442
0.303131
0.075683
0
0
0
0
0
0
null
null
0.023256
0.040698
null
null
0.127907
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
aba85a8982f79dd5cfad67d945512f5c715817c8
371
py
Python
office_tracker/leave_tracker/apps.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
null
null
null
office_tracker/leave_tracker/apps.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
11
2020-06-05T18:04:42.000Z
2022-03-11T23:19:32.000Z
office_tracker/leave_tracker/apps.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.db.models.signals import post_save from django.apps import apps from .signals import assign_season_to_all_user class LeaveTrackerConfig(AppConfig): name = 'leave_tracker' def ready(self): Season = apps.get_model('leave_tracker', 'Season') post_save...
30.916667
67
0.773585
52
371
5.269231
0.519231
0.109489
0.10219
0.145985
0.153285
0
0
0
0
0
0
0
0.148248
371
11
68
33.727273
0.867089
0
0
0
0
0
0.086253
0
0
0
0
0
0
1
0.111111
false
0
0.444444
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
abac74889730121207b018502893e78b98c8747a
422
py
Python
apps/users/migrations/0008_user_roles.py
andipandiber/CajaAhorros
cb0769fc04529088768ea650f9ee048bd9a55837
[ "MIT" ]
null
null
null
apps/users/migrations/0008_user_roles.py
andipandiber/CajaAhorros
cb0769fc04529088768ea650f9ee048bd9a55837
[ "MIT" ]
8
2021-03-30T13:39:24.000Z
2022-03-12T00:36:15.000Z
apps/users/migrations/0008_user_roles.py
andresbermeoq/CajaAhorros
cb0769fc04529088768ea650f9ee048bd9a55837
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-08 15:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('roles', '0001_initial'), ('users', '0007_auto_20200706_0436'), ] operations = [ migrations.AddField( model_name='user', ...
21.1
58
0.582938
45
422
5.355556
0.822222
0
0
0
0
0
0
0
0
0
0
0.116279
0.28673
422
19
59
22.210526
0.684385
0.106635
0
0
1
0
0.170667
0.061333
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abb0ccb320d11e326c6450c49171c55c9d867c94
5,385
py
Python
meggie/mainwindow/dialogs/preferencesDialogUi.py
Teekuningas/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
4
2020-04-29T08:57:11.000Z
2021-01-15T21:21:51.000Z
meggie/mainwindow/dialogs/preferencesDialogUi.py
Teekuningas/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
16
2019-05-03T10:31:16.000Z
2021-05-06T14:59:55.000Z
meggie/mainwindow/dialogs/preferencesDialogUi.py
cibr-jyu/meggie
0790559febb990a5487d4f0c92987066632e1d99
[ "BSD-2-Clause-FreeBSD" ]
3
2020-12-12T09:57:00.000Z
2020-12-20T17:12:05.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'preferencesDialogUi.ui' # # Created by: PyQt5 UI code generator 5.12.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_DialogPreferences(object): def setupUi(self, DialogPr...
62.616279
160
0.758774
474
5,385
8.537975
0.246835
0.058809
0.006672
0.012108
0.104275
0.014826
0.014826
0
0
0
0
0.020861
0.145404
5,385
85
161
63.352941
0.85854
0.03584
0
0
1
0
0.116876
0.016393
0
0
0
0
0
1
0.027778
false
0
0.013889
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abba7040a0cfe0cf70bb295473073b731da5a2e6
412
py
Python
places/permissions.py
easymean/ModusDRF
155a33a058c6b86c4b12081f589da78761d83438
[ "MIT" ]
null
null
null
places/permissions.py
easymean/ModusDRF
155a33a058c6b86c4b12081f589da78761d83438
[ "MIT" ]
null
null
null
places/permissions.py
easymean/ModusDRF
155a33a058c6b86c4b12081f589da78761d83438
[ "MIT" ]
null
null
null
from common.permissions import IsOwner from rest_framework.permissions import IsAuthenticated class IsHostAuthenticated(IsOwner): def has_permission(self, request, view): if IsAuthenticated(request, view): host = request.user # if host.is_auth is True: # return Tru...
25.75
54
0.604369
41
412
6
0.609756
0.138211
0.121951
0
0
0
0
0
0
0
0
0
0.337379
412
15
55
27.466667
0.901099
0.152913
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
abbae38fd528e8e3b7d6157c4bab4dfdbdd77b68
602
py
Python
PyObjCTest/test_nsnibloading.py
Khan/pyobjc-framework-Cocoa
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
[ "MIT" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsnibloading.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsnibloading.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from AppKit import * from PyObjCTools.TestSupport import * class TestNSNibLoading (TestCase): def testMethods(self): self.assertResultIsBOOL(NSBundle.loadNibFile_externalNameTable_withZone_) self.assertResultIsBOOL(NSBundle.loadNibNamed_owner_) self.assertResultIsBOOL(NSBundle.loadNibFile_...
31.684211
81
0.777409
56
602
7.910714
0.535714
0.198646
0.27088
0.153499
0.510158
0.297968
0
0
0
0
0
0.013619
0.146179
602
18
82
33.444444
0.848249
0
0
0.153846
0
0
0.019934
0
0
0
0
0
0.384615
1
0.153846
false
0
0.153846
0
0.384615
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abbb57cc94fe1363193069eeb5073e9570578f59
2,956
py
Python
analysis.py
RaiderYi/data-analysis-wordcloud
c3eea7b9a3ac396981a1a19fa60fd1716ed05aa9
[ "MIT" ]
2
2020-11-24T03:56:29.000Z
2020-11-24T04:02:41.000Z
analysis.py
RaiderYi/data-analysis-wordcloud
c3eea7b9a3ac396981a1a19fa60fd1716ed05aa9
[ "MIT" ]
null
null
null
analysis.py
RaiderYi/data-analysis-wordcloud
c3eea7b9a3ac396981a1a19fa60fd1716ed05aa9
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- import pandas as pd import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei']# 用于显示plt的中文标签 pd.set_option('display.max_columns', None)#显示所有列 pd.set_option('display.max_rows', None)#显示所有行 data = pd.read_csv('C:\User\dell\Desktop\大众点评\dazhong.csv',encoding='gbk') #print(data.head()...
34.776471
93
0.72429
423
2,956
4.926714
0.361702
0.119962
0.064779
0.054703
0.261036
0.214971
0.192418
0.113244
0.113244
0.06334
0
0.022093
0.065968
2,956
84
94
35.190476
0.732706
0.106901
0
0.212121
0
0
0.249044
0.014155
0
0
0
0
0
0
null
null
0
0.030303
null
null
0.015152
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
abc03851149e0e601af538d349c6fb66b255a6d7
1,705
py
Python
mars/core/__init__.py
chineking/mars
660098c65bcb389c6bbebc26b2502a9b3af43cf9
[ "Apache-2.0" ]
1
2022-02-24T08:39:26.000Z
2022-02-24T08:39:26.000Z
mars/core/__init__.py
chineking/mars
660098c65bcb389c6bbebc26b2502a9b3af43cf9
[ "Apache-2.0" ]
null
null
null
mars/core/__init__.py
chineking/mars
660098c65bcb389c6bbebc26b2502a9b3af43cf9
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
25.073529
74
0.734311
192
1,705
6.369792
0.630208
0.04906
0.021259
0.026165
0
0
0
0
0
0
0
0.008876
0.207038
1,705
67
75
25.447761
0.89571
0.375953
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
abcd4a48420badb64f86a53b7b28f0e7b524fd7f
1,409
py
Python
bumblebee/users/tests.py
sthasam2/bumblebee-backend
22057399f34cdc1edb0ef04e622c97df46532de3
[ "Linux-OpenIB" ]
null
null
null
bumblebee/users/tests.py
sthasam2/bumblebee-backend
22057399f34cdc1edb0ef04e622c97df46532de3
[ "Linux-OpenIB" ]
null
null
null
bumblebee/users/tests.py
sthasam2/bumblebee-backend
22057399f34cdc1edb0ef04e622c97df46532de3
[ "Linux-OpenIB" ]
null
null
null
import random import string from django.test import TestCase from bumblebee.users.models import CustomUser class UserProfileTest(TestCase): def random_string(self): return "".join(random.choice(string.ascii_lowercase) for i in range(10)) def test_user_has_profile(self): user = CustomUser( ...
29.354167
80
0.620298
152
1,409
5.625
0.328947
0.112281
0.112281
0.091228
0.484211
0.484211
0.484211
0.484211
0.484211
0.484211
0
0.013283
0.251952
1,409
47
81
29.978723
0.797913
0
0
0.388889
0
0
0.15472
0.069553
0
0
0
0
0.138889
1
0.111111
false
0.111111
0.111111
0.055556
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
abd0e54c20c46104555050953447f088dffd69a5
1,349
py
Python
hal/libraries/convert.py
virtualanup/hal
c45757ee2d0661b6f1a5141fc67ebe94cf3ab673
[ "MIT" ]
3
2017-02-14T01:00:39.000Z
2017-06-11T09:51:20.000Z
hal/libraries/convert.py
virtualanup/hal
c45757ee2d0661b6f1a5141fc67ebe94cf3ab673
[ "MIT" ]
null
null
null
hal/libraries/convert.py
virtualanup/hal
c45757ee2d0661b6f1a5141fc67ebe94cf3ab673
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re import random from semantic3.units import ConversionService from hal.library import HalLibrary class ConvLib(HalLibrary): """ Conversion library """ name = "Converter" keywords = ["convert", "converter", "conversion"] convregex = re.compile( "(con...
25.942308
101
0.530022
126
1,349
5.634921
0.563492
0.019718
0.039437
0.03662
0
0
0
0
0
0
0
0.003542
0.372128
1,349
51
102
26.45098
0.834711
0.05189
0
0.058824
0
0
0.207772
0
0
0
0
0
0
1
0.117647
false
0.058824
0.117647
0.029412
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
abd8b52c7e5526a7a50e3b7112ad423f0a22076f
4,452
py
Python
dgp/features/feature_ontology.py
chrisochoatri/dgp
7eb437072b656804a8716186cc61f6ba148e3a46
[ "MIT" ]
null
null
null
dgp/features/feature_ontology.py
chrisochoatri/dgp
7eb437072b656804a8716186cc61f6ba148e3a46
[ "MIT" ]
null
null
null
dgp/features/feature_ontology.py
chrisochoatri/dgp
7eb437072b656804a8716186cc61f6ba148e3a46
[ "MIT" ]
null
null
null
# Copyright 2021-2022 Toyota Research Institute. All rights reserved. import os from collections import OrderedDict from dgp.proto.ontology_pb2 import FeatureOntology as FeatureOntologyPb2 from dgp.proto.ontology_pb2 import FeatureOntologyItem from dgp.utils.protobuf import (generate_uid_from_pbobject, open_feature_o...
32.49635
120
0.659704
525
4,452
5.302857
0.28
0.014368
0.022989
0.021552
0.188218
0.117098
0.073276
0.030172
0.030172
0.030172
0
0.007862
0.257188
4,452
136
121
32.735294
0.833989
0.259659
0
0.128571
0
0
0.032227
0
0
0
0
0
0
1
0.185714
false
0
0.071429
0.114286
0.485714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
abde163a27adea2e134a7e338567ffa9749d3d5e
1,139
py
Python
db25_hole_plate/cnc/boundary.py
iorodeo/panels_mpja_1u
6d3a44150b41d25457041b9246be11b1778112bc
[ "Apache-2.0" ]
1
2020-07-23T19:04:06.000Z
2020-07-23T19:04:06.000Z
db25_hole_plate/cnc/boundary.py
iorodeo/panels_mpja_1u
6d3a44150b41d25457041b9246be11b1778112bc
[ "Apache-2.0" ]
null
null
null
db25_hole_plate/cnc/boundary.py
iorodeo/panels_mpja_1u
6d3a44150b41d25457041b9246be11b1778112bc
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import sys from py2gcode import gcode_cmd from py2gcode import cnc_dxf fileName = sys.argv[1] feedrate = 120.0 prog = gcode_cmd.GCodeProg() prog.add(gcode_cmd.GenericStart()) prog.add(gcode_cmd.Space()) prog.add(gcode_cmd.FeedRate(feedrate)) prog.add(gcode_cmd.PathBl...
25.311111
48
0.624232
145
1,139
4.758621
0.462069
0.115942
0.13913
0.173913
0.152174
0.152174
0.152174
0.152174
0.152174
0
0
0.041714
0.221247
1,139
44
49
25.886364
0.736189
0
0
0.078947
0
0
0.131694
0
0
0
0
0
0
1
0
false
0
0.131579
0
0.131579
0.052632
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abe247f69531769f09c500de2ab3ea0c0fe0c0ac
6,939
py
Python
rr/tests/api/test_views_api_certificate.py
UniversityofHelsinki/sp-registry
b1336b89788c076bf93f61b97b5469a99acd902c
[ "MIT" ]
null
null
null
rr/tests/api/test_views_api_certificate.py
UniversityofHelsinki/sp-registry
b1336b89788c076bf93f61b97b5469a99acd902c
[ "MIT" ]
1
2020-08-10T13:16:58.000Z
2020-08-18T06:30:20.000Z
rr/tests/api/test_views_api_certificate.py
UniversityofHelsinki/sp-registry
b1336b89788c076bf93f61b97b5469a99acd902c
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from rest_framework import status from rest_framework.test import APIRequestFactory from rr.models.certificate import Certificate from rr.models.serviceprovider import ServiceProvider from rr.tests.api.api_common import APITestCase from rr.views_api.certificate import Certif...
55.071429
114
0.724024
657
6,939
7.415525
0.254186
0.029557
0.066092
0.045156
0.448892
0.425082
0.366585
0.315066
0.28633
0.28633
0
0.050081
0.200029
6,939
125
115
55.512
0.827599
0
0
0.181818
0
0
0.280012
0.250901
0
1
0
0
0.154545
1
0.109091
false
0
0.063636
0
0.181818
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
1
0
0
0
0
0
0
0
0
0
0
0
0
1
abed9d35fcc34be316a0a17409f3f6ae90788595
443
py
Python
src/biking/migrations/0002_auto_20170312_1532.py
AlexDevelop/seen-movies
95d83d3271258feb5c55544de1078f467c569bc5
[ "MIT" ]
null
null
null
src/biking/migrations/0002_auto_20170312_1532.py
AlexDevelop/seen-movies
95d83d3271258feb5c55544de1078f467c569bc5
[ "MIT" ]
null
null
null
src/biking/migrations/0002_auto_20170312_1532.py
AlexDevelop/seen-movies
95d83d3271258feb5c55544de1078f467c569bc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-12 15:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('biking', '0001_initial'), ] operations = [ migrations.AlterField( ...
21.095238
48
0.609481
49
443
5.326531
0.836735
0
0
0
0
0
0
0
0
0
0
0.065015
0.27088
443
20
49
22.15
0.743034
0.153499
0
0
1
0
0.099462
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
abf9214c7a6d2106de8bbc2f4be984b13c38f4bf
10,200
py
Python
parrot/sample.py
weixsong/Codeblock
413e7acd6addc4950bffe2d57eb0cc7973c6fb7a
[ "MIT" ]
null
null
null
parrot/sample.py
weixsong/Codeblock
413e7acd6addc4950bffe2d57eb0cc7973c6fb7a
[ "MIT" ]
null
null
null
parrot/sample.py
weixsong/Codeblock
413e7acd6addc4950bffe2d57eb0cc7973c6fb7a
[ "MIT" ]
null
null
null
"""Sampling code for the parrot. Loads the trained model and samples. """ import numpy import os import cPickle import logging from blocks.serialization import load_parameters from blocks.model import Model from datasets import parrot_stream from model import Parrot from utils import ( attention_plot, sample_pa...
35.172414
111
0.678824
1,501
10,200
4.273151
0.15523
0.044902
0.031805
0.028375
0.419083
0.363736
0.304646
0.272373
0.240879
0.224665
0
0.008233
0.202157
10,200
289
112
35.294118
0.779921
0.026569
0
0.258621
0
0
0.089469
0.010054
0
0
0
0
0.008621
0
null
null
0
0.056034
null
null
0.025862
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e6009ec1e028167f3a49c3031f357398c17f1387
663
py
Python
models/functions/main.py
hkennyv/meowbot
c5a0d3c2a21cc0ef1bc5f266e15e3a8ca6f1fb02
[ "MIT" ]
null
null
null
models/functions/main.py
hkennyv/meowbot
c5a0d3c2a21cc0ef1bc5f266e15e3a8ca6f1fb02
[ "MIT" ]
null
null
null
models/functions/main.py
hkennyv/meowbot
c5a0d3c2a21cc0ef1bc5f266e15e3a8ca6f1fb02
[ "MIT" ]
null
null
null
import os from flask import jsonify from utils import generate_text_from_model def handler(request): url = request.url prompt = request.args.get("prompt", None) n = int(request.args.get("n", 1)) print(f"{url=} {prompt=} {n=}") res = generate_text_from_model(n, prompt, min_length=25) return...
23.678571
69
0.529412
75
663
4.52
0.493333
0.079646
0.106195
0.123894
0
0
0
0
0
0
0
0.017817
0.322775
663
27
70
24.555556
0.737194
0
0
0
1
0
0.167421
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.238095
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6053698599b3626d8934d6ed2fbd3ec5c67702d
271
py
Python
Physics250-ME24/calcChargeonCap.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME24/calcChargeonCap.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME24/calcChargeonCap.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
import numpy as np import math Esubo = 8.854 * pow(10,-12) k = 8.988 * pow(10,9) def calcCharge(): faraday = float(input("Input Faraday: ")) volts = float(input("Input Volts: ")) charge = faraday * volts print(charge) calcCharge()
14.263158
45
0.583026
36
271
4.388889
0.611111
0.063291
0.189873
0
0
0
0
0
0
0
0
0.076531
0.276753
271
19
46
14.263158
0.729592
0
0
0
0
0
0.102941
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
0.1
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e6065f668a6e90368fa3e3ff5c24af7760fb1883
738
py
Python
Visualizer.py
jjeong19/evalHeight_gridMap
506d1253ce62e7b06ed97555ba1d3ec8140a8335
[ "MIT" ]
null
null
null
Visualizer.py
jjeong19/evalHeight_gridMap
506d1253ce62e7b06ed97555ba1d3ec8140a8335
[ "MIT" ]
null
null
null
Visualizer.py
jjeong19/evalHeight_gridMap
506d1253ce62e7b06ed97555ba1d3ec8140a8335
[ "MIT" ]
null
null
null
import numpy as np import argparse import scipy.linalg from mpl_toolkits.mplot3d import Axes3D from skimage.draw import polygon import matplotlib.pyplot as plt import glob from sklearn import datasets, linear_model import pdb import time parser = argparse.ArgumentParser() parser.add_argument('--folder', default = "") ...
22.363636
47
0.707317
108
738
4.759259
0.611111
0.038911
0
0
0
0
0
0
0
0
0
0.018062
0.174797
738
33
48
22.363636
0.825944
0
0
0
0
0
0.024357
0
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e615a7a5295760430baa3da38fd3109a777ed978
226
py
Python
TestDictComprehension.py
prakharindoria/Python-Code-Snippets
96887caa73c92fda7ebae0b59a72cf24c97a94f5
[ "MIT" ]
null
null
null
TestDictComprehension.py
prakharindoria/Python-Code-Snippets
96887caa73c92fda7ebae0b59a72cf24c97a94f5
[ "MIT" ]
null
null
null
TestDictComprehension.py
prakharindoria/Python-Code-Snippets
96887caa73c92fda7ebae0b59a72cf24c97a94f5
[ "MIT" ]
null
null
null
t=input("Type a string") s=t.lower() alll="abcdefghijklmnopqrstuvwxyz1234567890" for c in alll: d={c:s.count(c) for c in s} dt=sorted(d.items(), key=lambda x: x[1], reverse=True) for k,v in dt.items(): print(k,":",v)
25.111111
54
0.654867
43
226
3.44186
0.604651
0.054054
0.081081
0
0
0
0
0
0
0
0
0.056995
0.146018
226
8
55
28.25
0.709845
0
0
0
0
0
0.225664
0.159292
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e62402ac83b864060bad9000d2d1550eba4920c4
3,538
py
Python
savingzelda/lib.py
recarreira/saving-zelda
70d1dd799f516ceb7ea9a435472da74b3b58bf91
[ "MIT" ]
2
2016-07-11T01:56:08.000Z
2017-01-04T17:39:17.000Z
savingzelda/lib.py
recarreira/saving-zelda
70d1dd799f516ceb7ea9a435472da74b3b58bf91
[ "MIT" ]
5
2016-07-10T16:25:44.000Z
2016-07-22T14:20:02.000Z
savingzelda/lib.py
recarreira/saving-zelda
70d1dd799f516ceb7ea9a435472da74b3b58bf91
[ "MIT" ]
1
2016-07-21T22:10:02.000Z
2016-07-21T22:10:02.000Z
import requests import re from urlparse import urlparse from bs4 import BeautifulSoup from collections import defaultdict class SavingZelda(object): def __init__(self, url, logger): self.url = url self.logger = logger self.body = "" self.not_checked = [] self.list_of_links...
35.38
112
0.628604
463
3,538
4.559395
0.259179
0.049266
0.086215
0.068214
0.174799
0.168167
0.144481
0.099479
0.031265
0
0
0.007336
0.267948
3,538
99
113
35.737374
0.807722
0
0
0.036585
0
0
0.08649
0
0
0
0
0
0
0
null
null
0
0.073171
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e626176d8836eb758155d498bd351936493ec76d
3,871
py
Python
pyrbi/__init__.py
hack-a-team/pyrbi
09296788d9b9a29ae7aaeff960992d2893468372
[ "MIT" ]
null
null
null
pyrbi/__init__.py
hack-a-team/pyrbi
09296788d9b9a29ae7aaeff960992d2893468372
[ "MIT" ]
null
null
null
pyrbi/__init__.py
hack-a-team/pyrbi
09296788d9b9a29ae7aaeff960992d2893468372
[ "MIT" ]
null
null
null
""" Provides a simple Python client for RBI REST API """ from . import exceptions import requests __version__ = "0.1.0" class PyRBI: """ A client for RBI Blockchain's REST API Usage: Create a new instance using your credentials >>> cli = PyRBI("user", "pass") From there on you can creat...
28.674074
88
0.57427
429
3,871
5.114219
0.384615
0.018232
0.025524
0.049225
0.088423
0.088423
0.060164
0.060164
0.060164
0
0
0.004098
0.306639
3,871
134
89
28.88806
0.813338
0.231465
0
0.125
0
0
0.165507
0.069205
0
0
0
0
0
1
0.125
false
0.0625
0.03125
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e62c2f0e0a2aa9f2cc633c9f3f0f670db80af86f
24,534
py
Python
test/test_tsdb.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
null
null
null
test/test_tsdb.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
null
null
null
test/test_tsdb.py
eneelo/qats
9280e2487bde97874cc8857b2780ac830323f363
[ "MIT" ]
1
2020-10-29T13:40:47.000Z
2020-10-29T13:40:47.000Z
# -*- coding: utf-8 -*- """ Module for testing TsDB class """ from qats import TimeSeries, TsDB import unittest import os import numpy as np import sys # todo: add tests for listing subset(s) based on specifying parameter `names` (with and wo param. `keys`) # todo: add test for getm() with fullkey=False (...
44.36528
121
0.59815
3,271
24,534
4.378172
0.111281
0.053628
0.0405
0.05279
0.700859
0.654354
0.626004
0.599888
0.5589
0.535577
0
0.011695
0.285522
24,534
552
122
44.445652
0.805294
0.106301
0
0.484932
0
0
0.200608
0
0
0
0
0.01087
0.123288
1
0.128767
false
0.043836
0.013699
0
0.145205
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e631a24a11407592b87e8e8c899720b7b1343b18
1,457
py
Python
vectorc2/blocks/migrations/0002_initialize_data.py
sebastiankruk/vectorc2
13232cd63ebed32346fb4a669511b102b8ed24c0
[ "Apache-2.0" ]
11
2019-02-27T01:38:47.000Z
2020-11-13T02:14:58.000Z
vectorc2/blocks/migrations/0002_initialize_data.py
sebastiankruk/vectorc2
13232cd63ebed32346fb4a669511b102b8ed24c0
[ "Apache-2.0" ]
20
2019-02-27T21:22:59.000Z
2022-01-13T01:22:16.000Z
vectorc2/blocks/migrations/0002_initialize_data.py
sebastiankruk/vectorc2
13232cd63ebed32346fb4a669511b102b8ed24c0
[ "Apache-2.0" ]
1
2020-01-14T09:14:28.000Z
2020-01-14T09:14:28.000Z
# Generated by Django 2.1.7 on 2019-05-14 20:36 from django.db import migrations from blocks.models import AnimationName, AnimationTrigger import anki_vector def generate_names(apps, schema_editor): """ Helper function to populate names of animations and triggers and update their status """ def __update_or_...
28.019231
86
0.705559
173
1,457
5.699422
0.427746
0.045639
0.056795
0.036511
0.178499
0.081136
0.081136
0
0
0
0
0.016007
0.185312
1,457
51
87
28.568627
0.814659
0.142073
0
0
1
0
0.056465
0
0
0
0
0
0
1
0.064516
false
0
0.096774
0
0.258065
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e64c6e151cf650530049e08cc621f9b0d7bf3833
967
py
Python
save.py
jonoxia/pencilbox
1ebcbefd0110a2d23ad0da27427df2e32eadfbfe
[ "Condor-1.1" ]
3
2015-04-01T07:20:09.000Z
2020-12-26T02:37:56.000Z
save.py
jonoxia/pencilbox
1ebcbefd0110a2d23ad0da27427df2e32eadfbfe
[ "Condor-1.1" ]
null
null
null
save.py
jonoxia/pencilbox
1ebcbefd0110a2d23ad0da27427df2e32eadfbfe
[ "Condor-1.1" ]
null
null
null
#!/usr/bin/python from database_tables import DrawingHistory from webserver_utils import verify_id import cgi import cgitb import datetime def createNew(title, creator, history, layers): kwargs = {"date": datetime.datetime.now(), "title": title, "history_json": history, ...
23.585366
64
0.677353
113
967
5.725664
0.415929
0.100464
0.061824
0.071097
0
0
0
0
0
0
0
0.002561
0.192347
967
40
65
24.175
0.825864
0.016546
0
0
0
0
0.092632
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e64ebb3be618b728917060906d4f5af8a1cfc287
10,720
py
Python
NetworkScanners/libs/Pyssh/pyssh.py
isislovecruft/torflow
666689ad18d358d764a35d041a7b16adb8d3287c
[ "BSD-3-Clause" ]
null
null
null
NetworkScanners/libs/Pyssh/pyssh.py
isislovecruft/torflow
666689ad18d358d764a35d041a7b16adb8d3287c
[ "BSD-3-Clause" ]
1
2018-12-18T15:58:40.000Z
2018-12-26T16:52:51.000Z
NetworkScanners/libs/Pyssh/pyssh.py
isislovecruft/torflow
666689ad18d358d764a35d041a7b16adb8d3287c
[ "BSD-3-Clause" ]
null
null
null
"""A SSH Interface class. An interface to ssh on posix systems, and plink (part of the Putty suite) on Win32 systems. By Rasjid Wilcox. Copyright (c) 2002. Version: 0.2 Last modified 4 September 2002. Drawing on ideas from work by Julian Schaefer-Jasinski, Guido's telnetlib and version 0.1 of pyssh (htt...
33.395639
82
0.547201
1,274
10,720
4.538462
0.270016
0.015566
0.012452
0.021792
0.054306
0.038395
0.038395
0.032169
0
0
0
0.010225
0.352239
10,720
320
83
33.5
0.822437
0.088433
0
0.269406
0
0
0.074696
0.002977
0
0
0
0
0
0
null
null
0.045662
0.031963
null
null
0.03653
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e65ac754450ace4ed72f64034c033bc64885d270
4,026
py
Python
backend/src/chat/api/views.py
CSCapstone2019/WebDoctor
cda9e4e2bd2c4e22dc4a4aa9c0758e67cdee62d5
[ "MIT" ]
4
2019-09-13T14:50:22.000Z
2019-11-27T03:19:44.000Z
backend/src/chat/api/views.py
CSCapstone2019/WebDoctor
cda9e4e2bd2c4e22dc4a4aa9c0758e67cdee62d5
[ "MIT" ]
8
2019-09-15T23:02:21.000Z
2022-02-10T09:26:10.000Z
backend/src/chat/api/views.py
CSCapstone2019/WebDoctor
cda9e4e2bd2c4e22dc4a4aa9c0758e67cdee62d5
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.shortcuts import get_object_or_404 from rest_framework import permissions from rest_framework import viewsets from django.views.decorators.csrf import csrf_exempt from django.core.files.storage import FileSystemStorage from rest_framework.generics import ( ...
29.822222
80
0.748634
380
4,026
7.776316
0.207895
0.076142
0.142132
0.101523
0.575635
0.570558
0.570558
0.530964
0.530964
0.46802
0
0.000904
0.17536
4,026
135
81
29.822222
0.889157
0.003726
0
0.6
0
0
0.005987
0
0
0
0
0
0
1
0.031579
false
0
0.105263
0
0.768421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e663a08bf8bd9abb5a531e95d22eb32be3364bee
2,173
py
Python
slidingWindow/smallestSubarrayWithGivenSum.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
11
2019-05-02T22:27:01.000Z
2020-10-30T08:43:02.000Z
slidingWindow/smallestSubarrayWithGivenSum.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
null
null
null
slidingWindow/smallestSubarrayWithGivenSum.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
3
2019-11-01T01:35:01.000Z
2020-01-11T18:00:39.000Z
# 5 27 20 def smallest_subarray_with_given_sum(s, arr): # TODO: Write your code here windowStart, minLen, currSum = 0,100,0 for windowEnd in range(len(arr)): currSum += arr[windowEnd] while currSum >= s: minLen = min(minLen, windowEnd - windowStart +1) currSum -= arr[windowStart] win...
23.879121
196
0.658997
303
2,173
4.660066
0.359736
0.056657
0.070822
0.088527
0.525496
0.505666
0.469547
0.469547
0.444759
0.444759
0
0.03106
0.244363
2,173
90
197
24.144444
0.828867
0.292683
0
0.674419
0
0
0
0
0
0
0
0.011111
0
1
0.093023
false
0
0.023256
0
0.232558
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e6691884e90ad61e89f19cad4d887cbd1d5007c5
2,161
py
Python
tests/scripts/run_lookups.py
abelard2008/overlog
8df2bb95d2e39e41dd8e30249da6bb8a1615f39f
[ "BSD-3-Clause" ]
3
2016-01-26T22:19:12.000Z
2019-07-10T02:12:38.000Z
tests/scripts/run_lookups.py
abelard2008/overlog
8df2bb95d2e39e41dd8e30249da6bb8a1615f39f
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/run_lookups.py
abelard2008/overlog
8df2bb95d2e39e41dd8e30249da6bb8a1615f39f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 # -*- Mode: python -*- # # DESCRIPTION: Setup and run n chord nodes. # # import getopt import os import sys import time import random import signal import threading def print_usage(): print print "Usage: run_lookups -p <port> [-t <sleep_time>] [-v <vantages>] [-s <seed>] lookup_exec outp...
30.43662
126
0.529847
304
2,161
3.664474
0.289474
0.048474
0.028725
0.032316
0.102334
0.070018
0.070018
0.041293
0
0
0
0.016213
0.286441
2,161
70
127
30.871429
0.706226
0.038871
0
0.218182
0
0.018182
0.18608
0
0
0
0
0
0
0
null
null
0
0.127273
null
null
0.163636
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
05031a4fb3f43f4e15927e78ef77f8dcad229be0
767
py
Python
csf_tz/fleet_management/doctype/vehicle/vehicle.py
Craftint/CSF_TZ
b5cb2d59d8f4e958ad7d4cb89421cfbec992abc5
[ "MIT" ]
4
2021-09-24T12:30:32.000Z
2022-03-19T14:55:34.000Z
csf_tz/fleet_management/doctype/vehicle/vehicle.py
Craftint/CSF_TZ
b5cb2d59d8f4e958ad7d4cb89421cfbec992abc5
[ "MIT" ]
null
null
null
csf_tz/fleet_management/doctype/vehicle/vehicle.py
Craftint/CSF_TZ
b5cb2d59d8f4e958ad7d4cb89421cfbec992abc5
[ "MIT" ]
7
2021-09-24T12:30:33.000Z
2022-03-21T11:34:02.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Bravo Logistics and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class Vehicle(Document): pass @frappe.whitelist(allow_guest=True) def change_status(**a...
25.566667
62
0.741851
100
767
5.56
0.46
0.140288
0.043165
0.064748
0.244604
0.244604
0.244604
0.244604
0.244604
0.244604
0
0.007657
0.148631
767
29
63
26.448276
0.843798
0.183833
0
0.315789
0
0
0.112721
0
0
0
0
0
0
1
0.052632
false
0.052632
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0509cd66d3399c704328d6c31b4db43646200a86
8,576
py
Python
sdtables/sdtables.py
cunningr/sdtables
a698acbeca30e5451ca3285292f089109b360a04
[ "MIT" ]
null
null
null
sdtables/sdtables.py
cunningr/sdtables
a698acbeca30e5451ca3285292f089109b360a04
[ "MIT" ]
1
2020-06-25T08:55:00.000Z
2021-03-22T12:54:48.000Z
sdtables/sdtables.py
cunningr/sdtables
a698acbeca30e5451ca3285292f089109b360a04
[ "MIT" ]
1
2020-07-03T10:18:58.000Z
2020-07-03T10:18:58.000Z
# coding: utf-8 """ xlTables - Load/generate table data with Excel from python dictionary structures cunningr - 2020 Requires openpyxl >= 2.6.2, jsonschema """ import os import openpyxl from openpyxl import Workbook from sdtables import xlTables from tabulate import tabulate class SdTables: ...
40.262911
160
0.649021
1,105
8,576
4.79276
0.161991
0.073074
0.029079
0.018505
0.412764
0.325906
0.283421
0.274924
0.263973
0.255665
0
0.003292
0.256063
8,576
213
161
40.262911
0.826803
0.188083
0
0.25
1
0
0.103459
0
0
0
0
0
0
1
0.125
false
0
0.041667
0
0.233333
0.108333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
050d54bffebd30db922715e17f24f419261765d4
2,834
py
Python
bendyprank.py
gazhay/bendyprank
9af6b2536fb54001fe1681551362418f1ae78ed3
[ "Unlicense" ]
null
null
null
bendyprank.py
gazhay/bendyprank
9af6b2536fb54001fe1681551362418f1ae78ed3
[ "Unlicense" ]
null
null
null
bendyprank.py
gazhay/bendyprank
9af6b2536fb54001fe1681551362418f1ae78ed3
[ "Unlicense" ]
null
null
null
/* Bendy and the Ink Machine, BATIM, and all graphics and sounds are © The Meatly NOT AN OFFICIAL BENDY AND THE INK MACHINE PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH THEMEATLY GAMES, LTD. Code below released under GPLv2 */ import wx import subprocess from random import randint from time import sleep ...
34.560976
111
0.617855
362
2,834
4.729282
0.361878
0.03271
0.035047
0.045561
0.293224
0.244159
0.218458
0.218458
0.184579
0.184579
0
0.015414
0.267466
2,834
81
112
34.987654
0.808767
0.007057
0
0.205882
0
0
0.040541
0
0
0
0
0
0
0
null
null
0.014706
0.058824
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
050f7c817ca7e48958c01acf2a63b083dd36ff69
1,347
py
Python
src/answer_key.py
quuu/ASCIImage
d276b9428b8b127069999ffe8e025e8e0ad43c0c
[ "MIT" ]
2
2018-08-01T02:13:31.000Z
2018-08-01T03:02:31.000Z
src/answer_key.py
quuu/Genetic-ASCIImage
d276b9428b8b127069999ffe8e025e8e0ad43c0c
[ "MIT" ]
11
2018-08-12T13:28:19.000Z
2018-09-08T19:15:30.000Z
src/answer_key.py
quuu/ASCIImage
d276b9428b8b127069999ffe8e025e8e0ad43c0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os from skimage import io from skimage import color from PIL import Image #TODO Multi-thread def avg_brightness(image_list): """ A list of grey scale images """ brightness_per_block=[] for image in image_list: img_shape = image.shape img_Size = image...
26.94
71
0.626578
198
1,347
4.09596
0.338384
0.099877
0.039457
0.036991
0.078915
0
0
0
0
0
0
0.024096
0.260579
1,347
49
72
27.489796
0.790161
0.048998
0
0
0
0
0.031646
0
0
0
0
0.020408
0
1
0.076923
false
0
0.102564
0
0.25641
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
1
0
0
0
0
0
0
0
0
0
0
1
0520c8a0308bb129120ec328a9eacba21da937c0
277
py
Python
python/pid.py
gin2018/test_tools
46d911da6719ae2069ed4e87bdcc6922c21459a5
[ "MIT" ]
null
null
null
python/pid.py
gin2018/test_tools
46d911da6719ae2069ed4e87bdcc6922c21459a5
[ "MIT" ]
null
null
null
python/pid.py
gin2018/test_tools
46d911da6719ae2069ed4e87bdcc6922c21459a5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt pid_file = open("pid.txt", "w") x = np.linspace(0, 2 * np.pi, 100) print x pid_file.write(x) y1, y2 = np.sin(x), np.cos(x) plt.plot(x, y1, label='y = sin(x)') plt.plot(x, y2, label='y = cos(x)') plt.legend() plt.show()
16.294118
35
0.624549
57
277
3
0.508772
0.070175
0.081871
0.105263
0
0
0
0
0
0
0
0.038961
0.166065
277
16
36
17.3125
0.701299
0
0
0
0
0
0.101083
0
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
053b161da791d51b0f7c77d904ccb2a6a0472da3
6,492
py
Python
dls7-1[cnn].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
dls7-1[cnn].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
dls7-1[cnn].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
import numpy as np from common.util import im2col from collections import OrderedDict from common.layers import * from common.gradient import numerical_gradient ## 4차원 배열 ## x = np.random.rand(10, 1, 28, 28) # (m, c, h, w) print(x.shape) x[0].shape # data 1개 x[0, 0] # 첫 data의 channel 공간 x1 = np.random.rand(1, 3, 7, ...
31.211538
95
0.518792
911
6,492
3.575192
0.216246
0.046055
0.013816
0.010132
0.231501
0.210316
0.149217
0.1179
0.081056
0.081056
0
0.037558
0.331485
6,492
208
96
31.211538
0.712903
0
0
0.107143
0
0
0.035044
0
0
0
0
0
0
0
null
null
0
0.044643
null
null
0.026786
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
053c288fde8eaacd236f5d1f96f0de4ba7806a4f
2,976
py
Python
prototype/couch/couch_concurrent.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
2
2015-06-09T16:07:09.000Z
2015-07-28T10:06:31.000Z
prototype/couch/couch_concurrent.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
3
2020-07-22T15:14:55.000Z
2021-12-13T19:35:06.000Z
prototype/couch/couch_concurrent.py
ooici/pyon
122c629290d27f32f2f41dafd5c12469295e8acf
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python __author__ = 'Michael Meisinger' import gevent import random from pyon.datastore.datastore import DatastoreManager from pyon.public import IonObject import ooi.timer """ from prototype.couch.couch_concurrent import runcc runcc(dict(num_obj=100000, num_read=2000, num_thread=3)) """ class Couc...
30.680412
109
0.652218
428
2,976
4.285047
0.245327
0.053435
0.065431
0.058888
0.462923
0.450382
0.450382
0.393675
0.359869
0.359869
0
0.016986
0.228495
2,976
96
110
31
0.781794
0.222782
0
0.163265
0
0
0.062271
0
0
0
0
0
0
0
null
null
0
0.122449
null
null
0.061224
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
053c773f4e711f1e0bdb6a424915109fb1e18820
2,226
py
Python
serve.py
racterub/itac-flask
5b30e51c9a625483eaf312fb64472622b60b00eb
[ "MIT" ]
null
null
null
serve.py
racterub/itac-flask
5b30e51c9a625483eaf312fb64472622b60b00eb
[ "MIT" ]
null
null
null
serve.py
racterub/itac-flask
5b30e51c9a625483eaf312fb64472622b60b00eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Date : 2020-04-06 23:45:54 # @Author : Racter Liu (racterub) (racterub@gmail.com) # @Link : https://racterub.me # @License : MIT from flask import Flask, render_template, request, url_for, redirect, session, send_from_directory, send_file, make_response app = F...
24.195652
124
0.612309
288
2,226
4.635417
0.385417
0.059925
0.038202
0.044944
0.140824
0.11985
0.11985
0.11985
0
0
0
0.018729
0.208446
2,226
91
125
24.461538
0.738933
0.118598
0
0.118644
0
0
0.188302
0.011801
0
0
0
0
0
1
0.169492
false
0.084746
0.016949
0.067797
0.440678
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
053ff9d6d078fd3f1bdb31f203cc1982c89849c7
4,067
py
Python
api/list_bp.py
kziovas/practise-todolist
53e6b789b46e1104a076835ac606544ba1ef7b25
[ "MIT" ]
2
2021-07-27T08:38:35.000Z
2021-08-03T10:00:58.000Z
api/list_bp.py
kziovas/practise-sanic-rest-api-to-do-list
53e6b789b46e1104a076835ac606544ba1ef7b25
[ "MIT" ]
null
null
null
api/list_bp.py
kziovas/practise-sanic-rest-api-to-do-list
53e6b789b46e1104a076835ac606544ba1ef7b25
[ "MIT" ]
null
null
null
from sanic.response import json from sanic import Blueprint from service import ListService from injector import inject, singleton from logging import Logger from sanic import Sanic @singleton class ListController: @inject def __init__(self, logger: Logger, list_service : ListService): self.logger = l...
37.311927
157
0.715761
603
4,067
4.396352
0.079602
0.217277
0.105621
0.049793
0.740853
0.632214
0.604677
0.521313
0.476801
0.476801
0
0
0.190066
4,067
108
158
37.657407
0.804797
0
0
0.328947
0
0
0.064175
0.028768
0
0
0
0
0
1
0.026316
false
0
0.078947
0
0.25
0.039474
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0543197cdee0aacdb12b0d10810f263f61b2c8d7
538
py
Python
Sorting/ShortBubbleSort.py
sonivaibhv/Algo
ea53d61a17687ef08bb2a7dbfd9331fd10f49ea8
[ "MIT" ]
1
2017-05-06T13:05:35.000Z
2017-05-06T13:05:35.000Z
Sorting/ShortBubbleSort.py
CuriousLearner/Algorithms
e44a04b3a0797da36a9de18c116a48241ce59d9d
[ "MIT" ]
null
null
null
Sorting/ShortBubbleSort.py
CuriousLearner/Algorithms
e44a04b3a0797da36a9de18c116a48241ce59d9d
[ "MIT" ]
null
null
null
def Short_Bubble_Sort(alist): ''' Sorting alist using Short Bubble Sort ''' passnum = len(alist) - 1 exchangesDone = True while passnum > 0 and exchangesDone: exchangesDone = False for i in range(passnum): if alist[i] > alist[i+1]: exchangesDone = True...
25.619048
59
0.565056
71
538
4.225352
0.478873
0.12
0.15
0.133333
0.13
0
0
0
0
0
0
0.076087
0.315985
538
20
60
26.9
0.73913
0.068773
0
0.133333
0
0
0
0
0
0
0
0
0
1
0.133333
false
0.266667
0
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0543991c023c828b9777016230758b911a5898f1
5,997
py
Python
src/arclink/libs/python/seiscomp/db/generic/genwrap.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/arclink/libs/python/seiscomp/db/generic/genwrap.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/arclink/libs/python/seiscomp/db/generic/genwrap.py
yannikbehr/seiscomp3
ebb44c77092555eef7786493d00ac4efc679055f
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-09-15T08:13:27.000Z
2021-09-15T08:13:27.000Z
# This file was created by a source code generator: # genxml2wrap.py # Do not modify. Change the definition and # run the generator again! # # (c) 2010 Mathias Hoffmann, GFZ Potsdam # # import datetime class _TrackedObject(object): def __init__(self): self.__dict__['last_modified'] = datetime.datetime(1970, 1, 1, ...
18.395706
73
0.691346
539
5,997
7.545455
0.300557
0.05311
0.038358
0.051143
0.288419
0.250307
0.172609
0.162528
0.144578
0.144578
0
0.002878
0.188928
5,997
325
74
18.452308
0.833265
0.15341
0
0.634538
0
0
0.00517
0
0
0
0
0
0
1
0.008032
false
0
0.004016
0
0.983936
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
05461bddcd3bd1546efdbcd5e16d6aa27b51efe8
7,754
py
Python
mailchimp_marketing_asyncio/models/problem_detail_document.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/problem_detail_document.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/problem_detail_document.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
1
2022-03-09T14:52:22.000Z
2022-03-09T14:52:22.000Z
# coding: utf-8 """ Mailchimp Marketing API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3.0.74 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import...
32.995745
181
0.607557
912
7,754
5.105263
0.184211
0.056701
0.115979
0.099871
0.570447
0.532002
0.530069
0.367268
0.314003
0.268471
0
0.022538
0.301909
7,754
234
182
33.136752
0.837613
0.458086
0
0.067961
1
0
0.101237
0
0
0
0
0
0
1
0.15534
false
0
0.029126
0
0.320388
0.019417
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
054f8d75e59fcecffb5d9b04254a41c1dbff6742
1,118
py
Python
loadingstatus.py
NesbiDevelopment/PythonHelper
6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3
[ "MIT" ]
null
null
null
loadingstatus.py
NesbiDevelopment/PythonHelper
6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3
[ "MIT" ]
null
null
null
loadingstatus.py
NesbiDevelopment/PythonHelper
6dc7545cd0ebd5bd3daf32860a7dc45d1caf50e3
[ "MIT" ]
null
null
null
import time import sys class Loadingstatus: def __init__(self, barlength = 20): self.loading = 0 self.lastCall = self.getMilliSeconds() self.barlength = barlength def getMilliSeconds(self): return int(time.time() * 1000) def updatePending(self): newCall = self.getM...
31.055556
75
0.584079
114
1,118
5.692982
0.368421
0.080123
0.046225
0.067797
0
0
0
0
0
0
0
0.028221
0.27102
1,118
35
76
31.942857
0.768098
0.012522
0
0.071429
0
0
0.017226
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.035714
0.392857
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
05573cc8d3a341c5de3d72784bf092562a5a2e63
1,848
py
Python
mishris/utils/util.py
virazura/mishris
60762364347bfa50ffc9948e9d227c569fe68da5
[ "MIT" ]
null
null
null
mishris/utils/util.py
virazura/mishris
60762364347bfa50ffc9948e9d227c569fe68da5
[ "MIT" ]
null
null
null
mishris/utils/util.py
virazura/mishris
60762364347bfa50ffc9948e9d227c569fe68da5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe import filetype """ NEED IMPORT LOCAL LANG FROM FRAPPE """ def attach_print(doctype, name, file_name=None, print_format=None, style=None, html=None, doc=None, lang=None, encrypt=False, password=None, print_letterhead=True): from frappe.utils import scrub_urls ...
34.222222
165
0.67803
241
1,848
4.966805
0.323651
0.073517
0.0401
0.030075
0.252297
0.19883
0.09858
0.09858
0.09858
0.09858
0
0.002801
0.227273
1,848
53
166
34.867925
0.835434
0.155303
0
0.068966
0
0
0.045093
0
0
0
0
0
0
1
0.034483
false
0.068966
0.241379
0
0.310345
0.241379
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0560a6e08907adcfebf943f18a20892cd59deb17
311
py
Python
Exercises/python/Cod1/cod1.py
Rick222555000/Princess
29c4c22351eeb8f2124ffe63632351fa373668e8
[ "MIT" ]
null
null
null
Exercises/python/Cod1/cod1.py
Rick222555000/Princess
29c4c22351eeb8f2124ffe63632351fa373668e8
[ "MIT" ]
null
null
null
Exercises/python/Cod1/cod1.py
Rick222555000/Princess
29c4c22351eeb8f2124ffe63632351fa373668e8
[ "MIT" ]
null
null
null
#1- Crie um programa que ler 3 números inteiros A, B, C e exibe a mensagem se o resultado R=(A+B)/C é maior que B ou não. A, B, C = int(input()), int(input()), int(input()) R = (A + B)/C def Maior(R, B): if (R > B): return 'R é maior que B.' else: return 'R não é maior que B.' print(Maior(R, B))
25.916667
121
0.59164
67
311
2.746269
0.447761
0.043478
0.065217
0.163043
0
0
0
0
0
0
0
0.008475
0.241158
311
12
122
25.916667
0.771186
0.385852
0
0
0
0
0.188482
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0.125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
05622f786bb071a97ceb1da54cab05760a5a36c8
624
py
Python
classes.py
thepfanner/CrisisComABM
919ab45ad522ec82806a6dff8ef8807a88e398d0
[ "MIT" ]
1
2017-03-31T01:48:07.000Z
2017-03-31T01:48:07.000Z
classes.py
thepfanner/CrisisComABM
919ab45ad522ec82806a6dff8ef8807a88e398d0
[ "MIT" ]
null
null
null
classes.py
thepfanner/CrisisComABM
919ab45ad522ec82806a6dff8ef8807a88e398d0
[ "MIT" ]
null
null
null
__author__ = 'sp' class Location: def __init__(self, x, y): self.x = x self.y = y class Location_ID: def __init__(self, id, direct, x, y, range): self.id = id self.direct = direct self.x = x self.y = y self.range = range class Products(): def __in...
19.5
48
0.517628
96
624
3.041667
0.197917
0.119863
0.188356
0.123288
0.376712
0.239726
0.109589
0
0
0
0
0.009901
0.352564
624
32
49
19.5
0.712871
0
0
0.32
0
0
0.0032
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0564823c9e294186f86aee5daa972c4a2f49f3f0
2,400
py
Python
app.py
saty2146/flask_api_log
760ac901b310649fe5dc98c6a8bdd0fdb5883a82
[ "Apache-2.0" ]
null
null
null
app.py
saty2146/flask_api_log
760ac901b310649fe5dc98c6a8bdd0fdb5883a82
[ "Apache-2.0" ]
null
null
null
app.py
saty2146/flask_api_log
760ac901b310649fe5dc98c6a8bdd0fdb5883a82
[ "Apache-2.0" ]
null
null
null
#!venv/bin/python import os, re, json from flask import Flask, request from flask_restful import Resource, Api from json import dumps from flask_jsonpify import jsonify from flask import render_template from boxes import * app = Flask(__name__) api = Api(app) def get_logs(date, severity, box): DATESTAMP_RE...
30.379747
96
0.617917
321
2,400
4.395639
0.333333
0.017009
0.072289
0.067328
0.065202
0
0
0
0
0
0
0.011425
0.234167
2,400
78
97
30.769231
0.756257
0.03
0
0.031746
0
0.015873
0.115699
0.018495
0
0
0
0
0
0
null
null
0.015873
0.111111
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
056958a4ad13bb68213d3b4a27aff485fb258a2f
317
py
Python
10-Days-of-Statistics/Python/day-0_weighted_mean.py
joaopalmeiro/hackerrank
271b87645710e5ed56cbfd8c4209f3a7436e3f72
[ "MIT" ]
null
null
null
10-Days-of-Statistics/Python/day-0_weighted_mean.py
joaopalmeiro/hackerrank
271b87645710e5ed56cbfd8c4209f3a7436e3f72
[ "MIT" ]
null
null
null
10-Days-of-Statistics/Python/day-0_weighted_mean.py
joaopalmeiro/hackerrank
271b87645710e5ed56cbfd8c4209f3a7436e3f72
[ "MIT" ]
null
null
null
N = int(input()) X = list(map(int, input().split())) W = list(map(int, input().split())) def weighted_mean(X, W): numerator = sum([a * b for a, b in zip(X, W)]) denominator = sum(W) weighted_mean_value = numerator / denominator return round(weighted_mean_value, 1) print(weighted_mean(X, W))
16.684211
50
0.630915
50
317
3.88
0.48
0.247423
0.103093
0.154639
0.206186
0
0
0
0
0
0
0.003937
0.198738
317
18
51
17.611111
0.759843
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0.111111
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
056bdc49927b577c2ca6f33c088621f5b1d3d179
8,834
py
Python
interface.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
9
2021-03-22T09:18:58.000Z
2022-03-02T01:42:11.000Z
interface.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
null
null
null
interface.py
singularitai/Morphling
e7a3af969123c0d3c0f3c6f1036a97e9be0b289c
[ "MIT", "Condor-1.1", "Unlicense" ]
2
2022-03-29T07:59:12.000Z
2022-03-31T09:10:47.000Z
import os os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE" # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Mock.ui' # # Created by: PyQt5 UI code generator 5.12.3 # # WARNING! All changes made in this file will be lost! import sys import subprocess import application_backend as ab from PyQt5 im...
43.732673
130
0.677043
888
8,834
6.622748
0.211712
0.04285
0.058663
0.068866
0.184322
0.058153
0.058153
0.058153
0.047271
0.047271
0
0.015542
0.21338
8,834
202
131
43.732673
0.830767
0.055581
0
0.092105
1
0
0.077542
0
0
0
0
0
0
1
0.046053
false
0
0.046053
0
0.098684
0.013158
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
057149c969c7c699e7d3de460f67852d23e83cd2
2,622
py
Python
monitors/dns-monitor.py
CompeteNZ/Minotaur
47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803
[ "MIT" ]
null
null
null
monitors/dns-monitor.py
CompeteNZ/Minotaur
47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803
[ "MIT" ]
null
null
null
monitors/dns-monitor.py
CompeteNZ/Minotaur
47afb2ed7bd9c21d1adf8cf4fd0d5396c80fd803
[ "MIT" ]
null
null
null
# DESCRIPTION # Run dns check and store the results in the db # monitor_source = host address # DEPENDENCIES # Install python # Install mysql.connector "python -m pip install mysql-connector-python" # Install dotenv "python -m pip install python-dotenv" # Install nslookup "python -m pip install nslookup" # HOW TO RUN...
30.137931
131
0.676583
365
2,622
4.742466
0.339726
0.060081
0.055459
0.069324
0.340843
0.320046
0.281918
0.281918
0.281918
0.281918
0
0.003448
0.225782
2,622
87
132
30.137931
0.849261
0.433638
0
0.357143
0
0.02381
0.179945
0.026099
0
0
0
0.011494
0
1
0
false
0.02381
0.142857
0
0.142857
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
05757df9e7e0717b064bec504f59f7b4d4c67024
7,795
py
Python
get_both_current_and_active_power.py
wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition
d8a01915f46457257bda7c699fe36e7bdf4f907d
[ "MIT" ]
null
null
null
get_both_current_and_active_power.py
wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition
d8a01915f46457257bda7c699fe36e7bdf4f907d
[ "MIT" ]
null
null
null
get_both_current_and_active_power.py
wed35/Two-dimensional-Images-of-Current-and-Active-Power-Signals-for-Elevator-Condition-Recognition
d8a01915f46457257bda7c699fe36e7bdf4f907d
[ "MIT" ]
null
null
null
#%% # import libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt from datetime import datetime import os import time %matplotlib inline #%% import pymysql def Select(tableName, start, end) : sql_query = """ SELECT DataSavedTime, Item005 FROM """+tableName+""" WHERE DataSavedTime...
29.194757
134
0.630276
1,278
7,795
3.600939
0.144757
0.024989
0.036506
0.023903
0.432203
0.352238
0.26771
0.192308
0.143851
0.143851
0
0.054033
0.190378
7,795
266
135
29.304511
0.67517
0.107377
0
0.232804
0
0
0.102374
0
0
0
0
0
0
0
null
null
0.005291
0.037037
null
null
0.058201
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0576551dec71ed65de6452c0a4914168209bd3e8
2,987
py
Python
braille/lang.py
galou/braille-converter
bf3b898c212a5067d61ce7dc6828df227ddd9db5
[ "MIT" ]
24
2015-04-03T10:24:18.000Z
2022-01-29T10:50:34.000Z
braille/lang.py
galou/braille-converter
bf3b898c212a5067d61ce7dc6828df227ddd9db5
[ "MIT" ]
2
2016-03-28T04:10:14.000Z
2017-02-22T23:25:12.000Z
braille/lang.py
galou/braille-converter
bf3b898c212a5067d61ce7dc6828df227ddd9db5
[ "MIT" ]
10
2015-05-06T06:26:21.000Z
2019-11-13T23:11:11.000Z
# Copyright 2012 Jonathan Paugh # See COPYING for license details ''' Functions that deal with lang files or rulesets ''' import ds import comp as cpl from .options import opt from .util import fwarn, do_re, gettype import os langdir = os.path.join(os.path.dirname(__file__), 'lang') if not os.path.isdir(langdir): ...
23.706349
69
0.657181
452
2,987
4.294248
0.358407
0.020608
0.017002
0.017517
0.086553
0.065945
0.065945
0.065945
0.065945
0
0
0.006867
0.219953
2,987
125
70
23.896
0.82618
0.125544
0
0.132353
0
0
0.11436
0
0
0
0
0
0
0
null
null
0
0.102941
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1