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
bc936c9856eecc335b0cca94f1df34512def1882
754
py
Python
Physics250-ME29/magAverageEMFinCoil.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME29/magAverageEMFinCoil.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME29/magAverageEMFinCoil.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
import numpy as np import math extraNumber = 4 * math.pi * pow(10,-7) def avgEMF(): turns = input("Input how many turns: ") radius = input("Input the radius (cm):") resistance = input("Input resistance (Ω): ") magField0 = input("Input the first magnetic Field value (T): ") magField1 = in...
29
69
0.624668
92
754
5.119565
0.413043
0.127389
0.110403
0.080679
0
0
0
0
0
0
0
0.028219
0.248011
754
25
70
30.16
0.802469
0
0
0
0
0
0.234568
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.142857
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc93ed322f15833ada38ade26d0df82b04900ca0
1,908
py
Python
bench_cupy.py
zhouxzh/Jetson_nano_stft_benchmark
ffa97984f95b9862ac2a10b8459bb7ef241c6c72
[ "MIT" ]
null
null
null
bench_cupy.py
zhouxzh/Jetson_nano_stft_benchmark
ffa97984f95b9862ac2a10b8459bb7ef241c6c72
[ "MIT" ]
null
null
null
bench_cupy.py
zhouxzh/Jetson_nano_stft_benchmark
ffa97984f95b9862ac2a10b8459bb7ef241c6c72
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Computes the spectrogram of a test signal using cupy and cuFFT. Author: Jan Schlüter """ import sys import os import timeit import numpy as np import cupy as cp INPUT_ON_GPU = True OUTPUT_ON_GPU = True from testfile import make_test_signal def spectrogram(signal...
26.5
92
0.649371
279
1,908
4.290323
0.480287
0.02924
0.033417
0
0
0
0
0
0
0
0
0.027624
0.24109
1,908
72
93
26.5
0.799033
0.354822
0
0
0
0
0.057143
0
0
0
0
0
0
1
0.055556
false
0
0.194444
0
0.277778
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bc945bd064cef2e58f31004f5a02ca29c75f9558
1,597
py
Python
dataxHWSp2021/HW3-4_NeuralNet/student/tests/q2b3.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
28
2020-06-15T23:53:36.000Z
2022-03-19T09:27:02.000Z
dataxHWSp2021/HW3-4_NeuralNet/student/tests/q2b3.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
4
2020-06-24T22:20:31.000Z
2022-02-28T01:37:36.000Z
dataxHWSp2021/HW3-4_NeuralNet/student/tests/q2b3.py
UCBerkeley-SCET/DataX-Berkeley
f912d22c838b511d3ada4ecfa3548afd80437b74
[ "Apache-2.0" ]
78
2020-06-19T09:41:01.000Z
2022-02-05T00:13:29.000Z
test = { 'name': 'q2b3', 'points': 5, 'suites': [ { 'cases': [ { 'code': '>>> ' 'histories_2b[2].model.count_params()\n' '119260', 'hidden': False, ...
55.068966
102
0.21603
74
1,597
4.527027
0.459459
0.164179
0.179104
0.191045
0.474627
0.41194
0.41194
0.41194
0.298507
0.298507
0
0.048689
0.665623
1,597
28
103
57.035714
0.578652
0
0
0.357143
0
0
0.226049
0.125235
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
bc96f541ad15eaf540c8e8c9a48800ebc1c0301c
1,427
py
Python
geotrek/appconfig.py
Cynthia-Borot-PNE/Geotrek-admin
abd9ca8569a7e35ef7473f5b52731b1c78668754
[ "BSD-2-Clause" ]
null
null
null
geotrek/appconfig.py
Cynthia-Borot-PNE/Geotrek-admin
abd9ca8569a7e35ef7473f5b52731b1c78668754
[ "BSD-2-Clause" ]
null
null
null
geotrek/appconfig.py
Cynthia-Borot-PNE/Geotrek-admin
abd9ca8569a7e35ef7473f5b52731b1c78668754
[ "BSD-2-Clause" ]
null
null
null
from django.apps import AppConfig from django.contrib.admin.apps import AdminConfig from django.contrib.auth.apps import AuthConfig from django.contrib.contenttypes.apps import ContentTypesConfig from django.contrib.sessions.apps import SessionsConfig from django.db.models.signals import post_migrate from django_celery...
27.442308
95
0.775753
162
1,427
6.722222
0.481481
0.064279
0.062443
0.031221
0.099174
0
0
0
0
0
0
0
0.15487
1,427
51
96
27.980392
0.902985
0.183602
0
0.2
0
0
0.048605
0.021602
0
0
0
0
0
1
0.04
false
0.2
0.32
0
0.72
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
2
bc96fd29e9d6cb6eb71dd73f5f39dcfd2bcd44f8
11,604
py
Python
dtr_code/shared/run_torch_trial.py
merrymercy/dtr-prototype
bf40e182453a7d8d23581ea68f32a9d7d2037d62
[ "Linux-OpenIB" ]
1
2021-08-02T02:42:58.000Z
2021-08-02T02:42:58.000Z
dtr_code/shared/run_torch_trial.py
merrymercy/dtr-prototype
bf40e182453a7d8d23581ea68f32a9d7d2037d62
[ "Linux-OpenIB" ]
null
null
null
dtr_code/shared/run_torch_trial.py
merrymercy/dtr-prototype
bf40e182453a7d8d23581ea68f32a9d7d2037d62
[ "Linux-OpenIB" ]
1
2021-08-05T08:58:53.000Z
2021-08-05T08:58:53.000Z
""" To avoid any issues of memory hanging around between inputs, we run each input as a separate process. A little ugly but effective """ import gc import glob import json import os import random import time import numpy as np import torch from common import invoke_main, read_json, write_json, prepare_out_file, chec...
35.057402
170
0.635384
1,549
11,604
4.479019
0.199484
0.062554
0.019458
0.016143
0.242721
0.196887
0.122081
0.09729
0.088931
0.082445
0
0.006542
0.262323
11,604
330
171
35.163636
0.803972
0.134781
0
0.115044
0
0
0.114507
0.003921
0
0
0
0
0.013274
1
0.026549
false
0
0.057522
0
0.106195
0.022124
0
0
0
null
0
0
0
0
0
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
1
0
bc986ff7e618db67d5b1902a0fdfeecd1595ea88
1,482
py
Python
pythonTools/downloadPDBsInList.py
rsanchezgarc/BIPSPI
e155fee0836084ea02bc9919c58817d26a4a13e5
[ "Apache-2.0" ]
5
2020-01-21T21:11:49.000Z
2022-02-06T19:55:28.000Z
pythonTools/downloadPDBsInList.py
rsanchezgarc/BIPSPI
e155fee0836084ea02bc9919c58817d26a4a13e5
[ "Apache-2.0" ]
null
null
null
pythonTools/downloadPDBsInList.py
rsanchezgarc/BIPSPI
e155fee0836084ea02bc9919c58817d26a4a13e5
[ "Apache-2.0" ]
3
2018-05-25T14:57:36.000Z
2022-01-27T12:53:41.000Z
import sys, os from subprocess import call try: from downloadPdb import downloadPDB except ImportError: from .downloadPdb import downloadPDB pdbListFile="/home/rsanchez/Tesis/rriPredMethod/data/joanDimers/117_dimers_list.tsv" outPath="/home/rsanchez/Tesis/rriPredMethod/data/joanDimers/pdbFiles/rawPDBs" USE_BIO_...
36.146341
129
0.702429
209
1,482
4.913876
0.430622
0.035054
0.032132
0.040896
0.318403
0.318403
0.232717
0.232717
0.16261
0.16261
0
0.013333
0.139676
1,482
40
130
37.05
0.792157
0.421727
0
0
0
0
0.174489
0.164862
0
0
0
0
0
1
0.047619
false
0
0.238095
0
0.285714
0.095238
0
0
0
null
0
0
0
0
0
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
1
0
bc98a22d0cd11d65a7d45c78d01ce4ed45420116
1,935
py
Python
code/python3/search_facets.py
hsethi2709/xapian-docsprint
a872c83fef6fde13efce67fd5563d43514c7444a
[ "MIT" ]
47
2015-01-20T15:38:41.000Z
2022-02-15T21:03:50.000Z
code/python3/search_facets.py
hsethi2709/xapian-docsprint
a872c83fef6fde13efce67fd5563d43514c7444a
[ "MIT" ]
16
2015-06-09T16:12:50.000Z
2020-02-05T06:40:18.000Z
code/python3/search_facets.py
hsethi2709/xapian-docsprint
a872c83fef6fde13efce67fd5563d43514c7444a
[ "MIT" ]
56
2015-01-20T15:38:44.000Z
2022-03-03T18:13:39.000Z
#!/usr/bin/env python import json import sys import xapian import support def search(dbpath, querystring, offset=0, pagesize=10): # offset - defines starting point within result set # pagesize - defines number of records to retrieve # Open the database we're going to search. db = xapian.Database(dbpa...
31.209677
69
0.649612
259
1,935
4.80695
0.474903
0.02249
0.009639
0
0
0
0
0
0
0
0
0.012048
0.227907
1,935
61
70
31.721311
0.821285
0.268217
0
0.057143
0
0
0.110079
0
0
0
0
0
0
1
0.028571
false
0
0.114286
0
0.142857
0.085714
0
0
0
null
0
0
0
0
0
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
1
0
bc98ed1d916dea38c19eaadce5f09692d5d10eeb
1,272
py
Python
iconcollections/serializers.py
plrthink/myicons
62475e118e2c7404d88146ea5d67961418d7f8ab
[ "BSD-2-Clause" ]
83
2015-01-02T04:50:43.000Z
2021-06-06T03:26:55.000Z
iconcollections/serializers.py
plrthink/myicons
62475e118e2c7404d88146ea5d67961418d7f8ab
[ "BSD-2-Clause" ]
2
2015-01-04T11:25:20.000Z
2015-01-05T11:13:37.000Z
iconcollections/serializers.py
plrthink/myicons
62475e118e2c7404d88146ea5d67961418d7f8ab
[ "BSD-2-Clause" ]
20
2015-01-15T10:00:09.000Z
2019-11-06T07:25:59.000Z
import re from rest_framework import serializers from .models import Collection, CollectionIcon class CollectionSerializer(serializers.ModelSerializer): """Collections's serializer""" class Meta: model = Collection read_only = ('token', ) class CollectionIconSerializer(serializers.ModelSe...
27.06383
81
0.616352
140
1,272
5.55
0.421429
0.070785
0.119691
0.05148
0.06435
0
0
0
0
0
0
0.006494
0.273585
1,272
46
82
27.652174
0.834416
0.042453
0
0.125
0
0
0.113505
0
0
0
0
0
0
1
0.09375
false
0
0.09375
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
0
0
0
0
1
0
bc99e84c9e8d7aa99d673f47ef51acfd45692fba
1,738
py
Python
Python/partition-to-k-equal-sum-subsets.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/partition-to-k-equal-sum-subsets.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/partition-to-k-equal-sum-subsets.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
# Time: O(n*2^n) # Space: O(2^n) class Solution(object): def canPartitionKSubsets(self, nums, k): """ :type nums: List[int] :type k: int :rtype: bool """ def dfs(nums, target, used, todo, lookup): if lookup[used] is None: targ = (todo-1)%...
30.491228
87
0.468354
217
1,738
3.709677
0.253456
0.111801
0.064596
0.055901
0.442236
0.42236
0.278261
0.213665
0.213665
0.213665
0
0.014423
0.401611
1,738
56
88
31.035714
0.759615
0.10817
0
0.257143
0
0
0
0
0
0
0
0
0
1
0.114286
false
0
0
0
0.4
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
0
0
1
0
bc9aea616fee38b1a73a79e690091369c909ef06
737
py
Python
var/spack/repos/builtin/packages/aspell/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/aspell/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/aspell/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * # See also: AspellDictPackage class Aspell(AutotoolsPackage, GNUMirrorPackage): """GNU A...
32.043478
98
0.738128
95
737
5.694737
0.778947
0.016636
0.022181
0.027726
0
0
0
0
0
0
0
0.113419
0.150611
737
22
99
33.5
0.750799
0.459973
0
0
0
0
0.409922
0.24282
0
0
0
0
0
1
0
false
0
0.125
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
bc9b38aa93978a9c5a2ff6d24ac4f1e6be8b4faa
1,888
py
Python
third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
9
2019-04-23T01:46:12.000Z
2021-08-16T07:07:12.000Z
third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
null
null
null
third_party_package/RDKit_2015_03_1/rdkit/ML/Descriptors/UnitTestParser.py
Ivy286/cluster_basedfps
7fc216537f570436f008ea567c137d03ba2b6d81
[ "WTFPL" ]
5
2016-09-21T03:47:48.000Z
2019-07-30T22:17:35.000Z
# # Copyright (C) 2001 greg Landrum # """ unit testing code for compound descriptors """ from __future__ import print_function import unittest import Parser from rdkit.six.moves import xrange class TestCase(unittest.TestCase): def setUp(self): print('\n%s: '%self.shortDescription(),end='') self.piec...
35.622642
101
0.64036
248
1,888
4.822581
0.358871
0.055184
0.050167
0.032609
0.334448
0.254181
0.254181
0.254181
0.188963
0.120401
0
0.040921
0.17161
1,888
52
102
36.307692
0.723785
0.175318
0
0.157895
0
0
0.137171
0
0
0
0
0
0.078947
1
0.105263
false
0
0.105263
0
0.263158
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
0
0
0
0
1
0
bc9c8f24e080e4c64950de33e4962b6b2e44ede2
1,575
py
Python
setup.py
maciek3000/data_dashboard
1b573b674d37f57ae7e8bbfb1e83c801b488dfd6
[ "MIT" ]
8
2021-05-03T04:06:15.000Z
2022-01-15T16:27:42.000Z
setup.py
maciek3000/data_dashboard
1b573b674d37f57ae7e8bbfb1e83c801b488dfd6
[ "MIT" ]
null
null
null
setup.py
maciek3000/data_dashboard
1b573b674d37f57ae7e8bbfb1e83c801b488dfd6
[ "MIT" ]
3
2021-05-19T17:31:18.000Z
2021-06-19T12:24:01.000Z
from setuptools import setup, find_packages import pathlib here = pathlib.Path(__file__).parent.resolve() long_description = (here / "readme.md").read_text(encoding="utf-8") setup( name="data_dashboard", version="0.1.1", description="Dashboard to explore the data and to create baseline Machine Learning m...
32.142857
95
0.615238
177
1,575
5.333333
0.564972
0.082627
0.040254
0.063559
0.07839
0.07839
0
0
0
0
0
0.04401
0.220952
1,575
48
96
32.8125
0.725346
0
0
0.044444
0
0
0.499683
0.056508
0
0
0
0
0
1
0
false
0
0.044444
0
0.044444
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
0
0
1
0
bc9d746d95215d78b546409456d7b42ad25142a0
5,577
py
Python
test/e2e/tests/test_instance.py
acornett21/ack-ec2-controller
aa747d981239e41ae4254a9b31ee0f20ac882c85
[ "Apache-2.0" ]
null
null
null
test/e2e/tests/test_instance.py
acornett21/ack-ec2-controller
aa747d981239e41ae4254a9b31ee0f20ac882c85
[ "Apache-2.0" ]
null
null
null
test/e2e/tests/test_instance.py
acornett21/ack-ec2-controller
aa747d981239e41ae4254a9b31ee0f20ac882c85
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com Inc. or its affiliates. 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. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
33.8
95
0.684777
701
5,577
5.195435
0.31669
0.034596
0.039539
0.042834
0.183141
0.127403
0.085667
0.049973
0.049973
0.028556
0
0.01333
0.23328
5,577
165
96
33.8
0.8384
0.178591
0
0.104348
0
0
0.09688
0
0
0
0
0
0.052174
1
0.052174
false
0.008696
0.078261
0
0.165217
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
0
0
1
0
bc9f42407dc824808c93da43b669882c77d6d9f4
9,461
py
Python
web/app/forms.py
Devidence7/Break
f961b1b46977c86739ff651fe81a1d9fff98a8e1
[ "MIT" ]
null
null
null
web/app/forms.py
Devidence7/Break
f961b1b46977c86739ff651fe81a1d9fff98a8e1
[ "MIT" ]
null
null
null
web/app/forms.py
Devidence7/Break
f961b1b46977c86739ff651fe81a1d9fff98a8e1
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import Form, StringField, PasswordField, BooleanField, SubmitField, IntegerField, validators, FileField, \ MultipleFileField, SelectField, RadioField, HiddenField, DecimalField, TextAreaField from wtforms.fields.html5 import DateField from wtforms.validators import DataR...
48.025381
323
0.649931
957
9,461
6.426332
0.258098
0.075122
0.099024
0.095772
0.56374
0.539024
0.507317
0.47122
0.396423
0.353008
0
0.014233
0.220273
9,461
196
324
48.270408
0.819032
0.036043
0
0.376471
0
0
0.374383
0
0
0
0
0
0
1
0
false
0.064706
0.023529
0
0.458824
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
bc9fd661a260bba8109c66590275e9d7c9b1094c
2,774
py
Python
hello.py
LMiceOrg/postdoc-voting
091fd6caa120f7c5aae600c0a492a185ec10e9d6
[ "CC0-1.0", "MIT" ]
null
null
null
hello.py
LMiceOrg/postdoc-voting
091fd6caa120f7c5aae600c0a492a185ec10e9d6
[ "CC0-1.0", "MIT" ]
null
null
null
hello.py
LMiceOrg/postdoc-voting
091fd6caa120f7c5aae600c0a492a185ec10e9d6
[ "CC0-1.0", "MIT" ]
null
null
null
#coding: utf-8 import sys import os import asyncio import websockets import json import socket import xlrd #global vars phd_data = None pro_data = None def get_host_ip(): try: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(('1.255.255.255', 65535)) ip = s.getsockname()[0] ...
20.248175
60
0.519466
338
2,774
4.130178
0.37574
0.04298
0.031519
0.04298
0.190544
0.123209
0.044413
0.044413
0
0
0
0.019882
0.329128
2,774
136
61
20.397059
0.730253
0.010815
0
0.189655
0
0
0.131704
0
0
0
0
0
0
1
0.025862
false
0
0.060345
0
0.112069
0.008621
0
0
0
null
0
0
0
0
0
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
1
0
bca0727b76dc54909be0bf60b6d636ec8f539927
2,518
py
Python
runtime/Python3/src/antlr4/dfa/DFASerializer.py
maximmenshikov/antlr4
5ad8c150ae6b9a34a92df1f59606516fe58cb65f
[ "BSD-3-Clause" ]
11,811
2015-01-01T02:40:39.000Z
2022-03-31T16:11:19.000Z
runtime/Python3/src/antlr4/dfa/DFASerializer.py
maximmenshikov/antlr4
5ad8c150ae6b9a34a92df1f59606516fe58cb65f
[ "BSD-3-Clause" ]
2,364
2015-01-01T00:29:19.000Z
2022-03-31T21:26:34.000Z
runtime/Python3/src/antlr4/dfa/DFASerializer.py
maximmenshikov/antlr4
5ad8c150ae6b9a34a92df1f59606516fe58cb65f
[ "BSD-3-Clause" ]
3,240
2015-01-05T02:34:15.000Z
2022-03-30T18:26:29.000Z
# # Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. # Use of this file is governed by the BSD 3-clause license that # can be found in the LICENSE.txt file in the project root. #/ # A DFA walker that knows how to dump them to serialized strings.#/ from io import StringIO from antlr4 import DFA from antl...
34.027027
113
0.548451
293
2,518
4.638225
0.327645
0.03532
0.033113
0.02649
0.0883
0.029433
0.029433
0
0
0
0
0.013464
0.351072
2,518
73
114
34.493151
0.818237
0.098888
0
0.140351
0
0
0.019903
0
0
0
0.004423
0
0
1
0.105263
false
0
0.070175
0.017544
0.421053
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
0
0
1
0
bca253db9d9aae8a5131355cc2fd801c42bb88f2
13,242
py
Python
sw/calibrate.py
microsoft/moabian
db95844103faedb3788abb5f37d0f37a771a9455
[ "MIT" ]
13
2020-09-17T19:54:30.000Z
2022-03-01T00:25:11.000Z
sw/calibrate.py
microsoft/moabian
db95844103faedb3788abb5f37d0f37a771a9455
[ "MIT" ]
27
2020-09-21T23:51:50.000Z
2022-03-25T19:45:16.000Z
sw/calibrate.py
microsoft/moabian
db95844103faedb3788abb5f37d0f37a771a9455
[ "MIT" ]
13
2020-11-30T19:01:38.000Z
2021-11-10T11:28:36.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ Calibration Controller Performs calibration for hue, center of camera position, and servo offsets """ import os import cv2 import time import json import argparse import datetime import numpy as np import logging as log from env import Moa...
32.696296
105
0.655264
1,817
13,242
4.567969
0.201981
0.005542
0.004699
0.003855
0.370361
0.325422
0.266145
0.203976
0.203976
0.194337
0
0.018233
0.246186
13,242
404
106
32.777228
0.813264
0.175276
0
0.283088
0
0.011029
0.118899
0.02855
0
0
0
0.002475
0
1
0.0625
false
0
0.055147
0.018382
0.242647
0.018382
0
0
0
null
0
0
0
0
0
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
1
0
bca450dae1b4675ac1d585a61880a16b6a3d235e
3,739
py
Python
marketing/tests_celery_tasks.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
1
2021-03-01T12:07:10.000Z
2021-03-01T12:07:10.000Z
marketing/tests_celery_tasks.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
null
null
null
marketing/tests_celery_tasks.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
1
2021-12-09T09:38:50.000Z
2021-12-09T09:38:50.000Z
from datetime import datetime, timedelta from django.test import TestCase from django.test.utils import override_settings from marketing.tasks import ( delete_multiple_contacts_tasks, list_all_bounces_unsubscribes, run_all_campaigns, run_campaign, send_campaign_email_to_admin_contact, send_sch...
29.912
58
0.502006
331
3,739
5.425982
0.241692
0.073497
0.080178
0.115813
0.630846
0.589087
0.537305
0.455457
0.400891
0.373051
0
0.00477
0.383258
3,739
124
59
30.153226
0.774068
0
0
0.390909
0
0
0.1931
0
0
0
0
0
0.072727
1
0.009091
false
0
0.045455
0
0.063636
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
0
0
1
0
bca568d5e71e781c0b945807208117a83879f72f
263
py
Python
doc's/3-labels_and_titles.py
andreluispy/py2html
227f3225632b467c95131b841d6ffab4c5202e44
[ "MIT" ]
null
null
null
doc's/3-labels_and_titles.py
andreluispy/py2html
227f3225632b467c95131b841d6ffab4c5202e44
[ "MIT" ]
null
null
null
doc's/3-labels_and_titles.py
andreluispy/py2html
227f3225632b467c95131b841d6ffab4c5202e44
[ "MIT" ]
null
null
null
from py2html.main import * page = web() page.create() # Header Parameters # text = header text # n = title level page.header(text='My Site', n=1) # Label Parameters # text = label text # color = label color page.label(text='', color='') page.compile()
16.4375
32
0.657795
37
263
4.675676
0.513514
0.16185
0.16185
0
0
0
0
0
0
0
0
0.009434
0.193916
263
16
33
16.4375
0.806604
0.437262
0
0
0
0
0.049296
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bca56f1f07a7efd89750413292d60e6212055e4a
1,022
py
Python
JorGpi/tests/test_pickup.py
adujovic/JorG
15062984e837a938819e548c83f6f5414fa47103
[ "BSD-3-Clause" ]
1
2020-07-22T11:05:03.000Z
2020-07-22T11:05:03.000Z
JorGpi/tests/test_pickup.py
adujovic/JorG
15062984e837a938819e548c83f6f5414fa47103
[ "BSD-3-Clause" ]
2
2019-06-07T11:53:48.000Z
2019-06-24T08:20:25.000Z
JorGpi/tests/test_pickup.py
adujovic/JorG
15062984e837a938819e548c83f6f5414fa47103
[ "BSD-3-Clause" ]
3
2019-07-01T12:38:06.000Z
2022-02-01T21:38:12.000Z
import unittest from JorGpi.pickup.pickup import SmartPickUp,Reference,CommandLineOptions class TestPickupIron(unittest.TestCase): @staticmethod def options(*args): return CommandLineOptions(*args) def test_iron_001(self): _input = "test -R _VASP/Fe/noFlip -D _VASP/Fe/flip00000 -E Fe -J1 ...
37.851852
92
0.682975
112
1,022
6.089286
0.473214
0.131965
0.064516
0.079179
0
0
0
0
0
0
0
0.054632
0.176125
1,022
26
93
39.307692
0.755344
0
0
0
0
0.05
0.163405
0.043053
0
0
0
0
0.3
1
0.1
false
0
0.1
0.05
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bca5cc541dfab73d45981c6f120eb783e0579f49
131
py
Python
jwt_auth/admin.py
alaraayan/todo-backend
37e46b6789012c2d64a39f6d2429b1ae893dba37
[ "CC-BY-3.0" ]
null
null
null
jwt_auth/admin.py
alaraayan/todo-backend
37e46b6789012c2d64a39f6d2429b1ae893dba37
[ "CC-BY-3.0" ]
null
null
null
jwt_auth/admin.py
alaraayan/todo-backend
37e46b6789012c2d64a39f6d2429b1ae893dba37
[ "CC-BY-3.0" ]
null
null
null
from django.contrib import admin from django.contrib.auth import get_user_model User = get_user_model() admin.site.register(User)
21.833333
46
0.824427
21
131
4.952381
0.52381
0.192308
0.326923
0
0
0
0
0
0
0
0
0
0.099237
131
5
47
26.2
0.881356
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
bca685ecc21d97e8e24f16ef46f6aaabe24a9d13
21,795
py
Python
spotseeker_server/test/search/distance.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
5
2015-03-12T00:36:33.000Z
2022-02-24T16:41:25.000Z
spotseeker_server/test/search/distance.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
133
2016-02-03T23:54:45.000Z
2022-03-30T21:33:58.000Z
spotseeker_server/test/search/distance.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
6
2015-01-07T23:21:15.000Z
2017-12-07T08:26:33.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase from django.conf import settings from django.test.client import Client from spotseeker_server.models import Spot import simplejson as json from decimal import * from django.test.utils import override...
31.864035
79
0.501491
2,302
21,795
4.622068
0.085578
0.024812
0.108271
0.084492
0.827726
0.769173
0.765977
0.755921
0.729981
0.726974
0
0.041821
0.391099
21,795
683
80
31.910688
0.759928
0.044873
0
0.592652
0
0
0.198384
0.002405
0
0
0
0
0.127796
1
0.015974
false
0
0.014377
0
0.031949
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
bca72e22e6e8fe1739abb6f05b2ae3bdddd3d4b0
1,807
py
Python
get_active_LSPs.py
JNPRAutomate/northstar_SDN_controller_automation
09fb5b84eaa1cf939268b542239c9923520d99d3
[ "MIT" ]
3
2019-03-18T17:27:11.000Z
2020-01-22T15:39:18.000Z
get_active_LSPs.py
ksator/northstar_SDN_controller_automation
b78b304194bb64bc14a9c96235ae0792c974f1af
[ "MIT" ]
null
null
null
get_active_LSPs.py
ksator/northstar_SDN_controller_automation
b78b304194bb64bc14a9c96235ae0792c974f1af
[ "MIT" ]
2
2018-03-12T21:13:52.000Z
2020-11-20T23:16:31.000Z
# this python script makes a rest call to Juniper Northstar to get active LSPs # usage: python get_active_LSPs.py import json import requests from requests.auth import HTTPBasicAuth from pprint import pprint import yaml from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3...
37.645833
116
0.753735
253
1,807
5.166008
0.359684
0.100995
0.089518
0.091048
0.218822
0.179036
0.13619
0.084162
0.084162
0.084162
0
0.008647
0.10404
1,807
47
117
38.446809
0.798641
0.143885
0
0
0
0
0.237662
0.019481
0
0
0
0
0
0
null
null
0.064516
0.258065
null
null
0.064516
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
bca98a1ce3fff11966f586aae11d75f7d4194f73
859
py
Python
bindings/python/tests/cdef_types.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
bindings/python/tests/cdef_types.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
bindings/python/tests/cdef_types.py
mewbak/dragonffi
2a205dbe4dd980d5dd53026c871514795573a7fb
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Adrien Guinet <adrien@guinet.me> # # 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 o...
26.030303
74
0.726426
133
859
4.684211
0.669173
0.096308
0.041734
0.051364
0
0
0
0
0
0
0
0.01683
0.169965
859
32
75
26.84375
0.856943
0.689173
0
0
0
0
0.334661
0
0
0
0
0
0.153846
1
0
false
0
0.153846
0
0.153846
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
0
0
1
0
bcaa2cc3091f251f513b10ec7f23dc034c71de01
6,031
py
Python
hierarchical_foresight/env/environment.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
hierarchical_foresight/env/environment.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
hierarchical_foresight/env/environment.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # 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...
37.228395
80
0.636213
860
6,031
4.25
0.193023
0.109166
0.155951
0.223256
0.626539
0.605746
0.59699
0.588509
0.588509
0.575103
0
0.022213
0.216216
6,031
161
81
37.459627
0.751005
0.157519
0
0.721311
0
0
0.020717
0
0
0
0
0
0
1
0.057377
false
0
0.057377
0
0.172131
0.008197
0
0
0
null
0
0
1
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
2
bcaa324b8d6cf63921fcf9763740cc9027d44173
855
py
Python
trips/migrations/0004_invoice.py
chorna/taxi24
09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c
[ "MIT" ]
null
null
null
trips/migrations/0004_invoice.py
chorna/taxi24
09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c
[ "MIT" ]
null
null
null
trips/migrations/0004_invoice.py
chorna/taxi24
09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-11 23:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('trips', '0003_alter_trip_state'), ] operations = [ migrations.CreateModel( name='Invoice', ...
32.884615
130
0.592982
94
855
5.244681
0.62766
0.048682
0.056795
0.089249
0
0
0
0
0
0
0
0.036566
0.264327
855
25
131
34.2
0.747218
0.052632
0
0
1
0
0.115099
0.02599
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bcaa742ec3f2633707689915b345db35e3f84a87
25,875
py
Python
src/general_harvester.py
Badger-Finance/python-keepers
b5b2b0b083a237dceecd161d81754512959822b1
[ "MIT" ]
null
null
null
src/general_harvester.py
Badger-Finance/python-keepers
b5b2b0b083a237dceecd161d81754512959822b1
[ "MIT" ]
22
2022-03-08T19:30:45.000Z
2022-03-28T21:14:15.000Z
src/general_harvester.py
Badger-Finance/python-keepers
b5b2b0b083a237dceecd161d81754512959822b1
[ "MIT" ]
null
null
null
import logging import os from decimal import Decimal from time import sleep import requests from hexbytes import HexBytes from web3 import Web3 from web3 import contract from web3.contract import Contract from config.constants import BASE_CURRENCIES from config.constants import GAS_LIMITS from config.constants import...
37.939883
100
0.602705
2,938
25,875
5.048673
0.105174
0.017798
0.023596
0.025281
0.627857
0.565159
0.517697
0.473943
0.43828
0.374907
0
0.005763
0.315981
25,875
681
101
37.995595
0.832307
0.143498
0
0.46
0
0
0.088887
0.005272
0
0
0
0.001468
0
1
0.054
false
0
0.052
0.01
0.15
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
0
0
1
0
bcaab7186ea62c16403a777679f43c5651b2eeea
1,170
py
Python
clickhouse_plantuml/column.py
yonesko/clickhouse-plantuml
6db26788fe86854967f627f28fd8a403ccbf7ffb
[ "Apache-2.0" ]
null
null
null
clickhouse_plantuml/column.py
yonesko/clickhouse-plantuml
6db26788fe86854967f627f28fd8a403ccbf7ffb
[ "Apache-2.0" ]
null
null
null
clickhouse_plantuml/column.py
yonesko/clickhouse-plantuml
6db26788fe86854967f627f28fd8a403ccbf7ffb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # License: Apache-2.0 # Copyright (C) 2020 Mikhail f. Shiryaev class Column(object): """ Represents ClickHouse column """ def __init__( self, database: str, table: str, name: str, type: str, default_kind: str, default_expr...
25.434783
56
0.622222
145
1,170
4.648276
0.310345
0.071217
0.047478
0.071217
0
0
0
0
0
0
0
0.00729
0.296581
1,170
45
57
26
0.811665
0.092308
0
0
0
0
0.004789
0
0
0
0
0
0
1
0.090909
false
0
0
0.060606
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
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcaae8938e310a72ba14496462496246c713e82d
577
py
Python
contrib/micronet/scripts/file2buf.py
pmalhaire/WireHub
588a372e678b49557deed6ba88a896596222fb2d
[ "Apache-2.0" ]
337
2018-12-21T22:13:57.000Z
2019-11-01T18:35:10.000Z
contrib/micronet/scripts/file2buf.py
nask0/WireHub
588a372e678b49557deed6ba88a896596222fb2d
[ "Apache-2.0" ]
8
2018-12-24T20:16:40.000Z
2019-09-02T11:54:48.000Z
contrib/micronet/scripts/file2buf.py
nask0/WireHub
588a372e678b49557deed6ba88a896596222fb2d
[ "Apache-2.0" ]
18
2018-12-24T02:49:38.000Z
2019-07-31T20:00:47.000Z
#!/usr/bin/env python3 import os import sys MAX = 8 fpath = sys.argv[1] name = sys.argv[2] with open(fpath, "rb") as fh: sys.stdout.write("char %s[] = {" % (name,) ) i = 0 while True: if i > 0: sys.stdout.write(", ") if i % MAX == 0: sys.stdout.write("\n\t") ...
15.594595
49
0.443674
82
577
3.109756
0.5
0.176471
0.27451
0.117647
0
0
0
0
0
0
0
0.029891
0.362218
577
36
50
16.027778
0.663043
0.036395
0
0.086957
0
0
0.099278
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.173913
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
bcab57fb16b16bdb97e645f2dba9e5a2f1d7fa1f
10,293
py
Python
tests/test_observable/test_skip.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
tests/test_observable/test_skip.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
tests/test_observable/test_skip.py
christiansandberg/RxPY
036027d2858ea6c9d45839c863bd791e5bb50c36
[ "MIT" ]
null
null
null
import unittest from reactivex import operators as ops from reactivex.testing import ReactiveTest, TestScheduler on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disp...
28.2
57
0.469445
1,270
10,293
3.57874
0.070866
0.285149
0.036964
0.026403
0.90055
0.886029
0.886029
0.886029
0.886029
0.864906
0
0.175933
0.404158
10,293
364
58
28.277473
0.565139
0
0
0.870769
0
0
0.00136
0
0
0
0
0
0.055385
1
0.055385
false
0
0.009231
0.027692
0.095385
0
0
0
0
null
1
0
0
1
1
1
1
1
1
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
8
bcab6a237bb88828d13a4bacbf608684ac108e0d
468
py
Python
CF#691/python/A.py
chaitanya1243/CP
a0e5e34daf6f7c22c9a91212b65338ef0c46d163
[ "MIT" ]
null
null
null
CF#691/python/A.py
chaitanya1243/CP
a0e5e34daf6f7c22c9a91212b65338ef0c46d163
[ "MIT" ]
null
null
null
CF#691/python/A.py
chaitanya1243/CP
a0e5e34daf6f7c22c9a91212b65338ef0c46d163
[ "MIT" ]
null
null
null
def solve(n, red , blue): rcount = bcount = 0 for i in range(n): if int(red[i]) > int(blue[i]): rcount = rcount +1 elif int(red[i]) < int(blue[i]): bcount = bcount + 1 print( 'RED' if rcount>bcount else ('BLUE' if bcount>rcount else 'EQUAL')) if __name__ == "__ma...
24.631579
79
0.5
67
468
3.373134
0.343284
0.053097
0.079646
0.115044
0.132743
0.132743
0
0
0
0
0
0.00974
0.34188
468
19
80
24.631579
0.724026
0
0
0
0
0
0.042918
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.066667
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
0
0
0
0
0
1
0
bcab784b7b6a5cec70ca79e8907334431af7152b
2,505
py
Python
shudder/__main__.py
fitpay/shudder
3bd3d7d712f60b7c7db1d259c024dde3eaeed26c
[ "Apache-2.0" ]
null
null
null
shudder/__main__.py
fitpay/shudder
3bd3d7d712f60b7c7db1d259c024dde3eaeed26c
[ "Apache-2.0" ]
null
null
null
shudder/__main__.py
fitpay/shudder
3bd3d7d712f60b7c7db1d259c024dde3eaeed26c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Scopely, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
37.38806
75
0.637126
314
2,505
4.961783
0.44586
0.038511
0.048139
0.053915
0.065469
0.065469
0.065469
0.065469
0.065469
0.065469
0
0.009377
0.276248
2,505
66
76
37.954545
0.849972
0.219561
0
0.046512
0
0
0.084015
0
0
0
0
0
0
0
null
null
0
0.209302
null
null
0.069767
0
0
0
null
0
0
0
0
0
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
bcac6e3cd42df76570409abe5d700496d0e0e054
1,688
py
Python
example/hydrogen.py
NLESC-JCER/pyCHAMP
97523237b3521a426d664b6e2972257045ff8f5e
[ "Apache-2.0" ]
4
2019-05-15T13:09:23.000Z
2021-03-28T09:10:11.000Z
example/hydrogen.py
NLESC-JCER/pyCHAMP
97523237b3521a426d664b6e2972257045ff8f5e
[ "Apache-2.0" ]
14
2019-04-23T15:05:07.000Z
2019-08-14T13:21:07.000Z
example/hydrogen.py
NLESC-JCER/pyCHAMP
97523237b3521a426d664b6e2972257045ff8f5e
[ "Apache-2.0" ]
1
2019-09-30T22:55:53.000Z
2019-09-30T22:55:53.000Z
import autograd.numpy as np from pyCHAMP.wavefunction.wf_base import WF from pyCHAMP.optimizer.minimize import Minimize from pyCHAMP.sampler.metropolis import Metropolis from pyCHAMP.sampler.hamiltonian import Hamiltonian from pyCHAMP.solver.vmc import VMC class Hydrogen(WF): def __init__(self, nelec, ndim): ...
26.375
71
0.603081
227
1,688
4.361233
0.39207
0.055556
0.027273
0.033333
0.117172
0.117172
0.117172
0.117172
0.082828
0.082828
0
0.040883
0.275474
1,688
63
72
26.793651
0.768602
0.109597
0
0.054054
0
0
0.027529
0
0
0
0
0
0
1
0.108108
false
0
0.162162
0.027027
0.378378
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcac914db6f36c54dadd0991d6bb9fbf2492dbe9
585
py
Python
braintree/account_updater_daily_report.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
182
2015-01-09T05:26:46.000Z
2022-03-16T14:10:06.000Z
braintree/account_updater_daily_report.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
95
2015-02-24T23:29:56.000Z
2022-03-13T03:27:58.000Z
braintree/account_updater_daily_report.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
93
2015-02-19T17:59:06.000Z
2022-03-19T17:01:25.000Z
from braintree.configuration import Configuration from braintree.resource import Resource class AccountUpdaterDailyReport(Resource): def __init__(self, gateway, attributes): Resource.__init__(self, gateway, attributes) if "report_url" in attributes: self.report_url = attributes.pop("re...
36.5625
75
0.71453
63
585
6.222222
0.365079
0.091837
0.076531
0.127551
0
0
0
0
0
0
0
0
0.196581
585
15
76
39
0.834043
0
0
0
0
0
0.107692
0
0
0
0
0
0
1
0.166667
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
0
0
0
0
0
0
0
1
0
bcae93da2c9dcb0c8765b93504dcb020462aad8e
1,696
py
Python
game/ball.py
geoncic/PyBlock
69c8220e38a21b7e1c6dd2196752173f9e78981f
[ "MIT" ]
null
null
null
game/ball.py
geoncic/PyBlock
69c8220e38a21b7e1c6dd2196752173f9e78981f
[ "MIT" ]
null
null
null
game/ball.py
geoncic/PyBlock
69c8220e38a21b7e1c6dd2196752173f9e78981f
[ "MIT" ]
null
null
null
import pygame import pygame.gfxdraw from constants import Constants class Balls(object): def __init__(self, all_sprites, all_balls): self.all_sprites = all_sprites self.all_balls = all_balls def spawn_ball(self, pos, vel, team): # Todo: Figure out how to spawn multiple balls with some...
30.836364
102
0.625
245
1,696
4.130612
0.302041
0.041502
0.039526
0.035573
0.083992
0.059289
0.059289
0.059289
0.059289
0
0
0.006339
0.255896
1,696
54
103
31.407407
0.795563
0.081958
0
0.05
0
0
0.012878
0
0
0
0
0.018519
0
1
0.175
false
0
0.075
0
0.3
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
1
0
0
0
0
0
0
0
0
0
0
1
bcaebabdfa8553517a45b393cf40eff654bc096f
36,597
py
Python
program/eggUI.py
otills/embryocv
d501f057bada15ff5dc753d3dae5a883b5c9e244
[ "MIT" ]
1
2020-08-05T02:47:12.000Z
2020-08-05T02:47:12.000Z
program/eggUI.py
otills/embryocv
d501f057bada15ff5dc753d3dae5a883b5c9e244
[ "MIT" ]
null
null
null
program/eggUI.py
otills/embryocv
d501f057bada15ff5dc753d3dae5a883b5c9e244
[ "MIT" ]
1
2020-08-05T02:47:16.000Z
2020-08-05T02:47:16.000Z
from pyqtgraph.Qt import QtCore, QtGui import numpy as np from scipy.spatial import distance as dist import glob import re import os from PyQt5 import QtGui from PyQt5.QtCore import * from PyQt5.QtGui import * import sys import cv2 import pandas as pd from PyQt5.Qt import * import pyqtgraph as pg #from PyQt4.Qt import ...
54.540984
329
0.545099
3,856
36,597
5.138745
0.111774
0.055514
0.076306
0.034418
0.686652
0.660207
0.640424
0.617159
0.605249
0.605047
0
0.020821
0.244064
36,597
671
330
54.540984
0.695427
0.409924
0
0.585227
0
0
0.012608
0
0
0
0
0
0
1
0.048295
false
0
0.056818
0
0.116477
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bcaf2fd4c9457e78084e56f1b1fab3aa1985e417
394
py
Python
Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
Curso em Vídeo/Mundo 2 Estruturas de Controle/Desafios/desafio053.py
henriqueumeda/-Estudo-python
28e93a377afa4732037a29eb74d4bc7c9e24b62f
[ "MIT" ]
null
null
null
frase = input('Digite uma frase: ').upper().strip().replace(' ', '') tamanho = int(len(frase)) inverso = '' #Opção mais simples: # inverso = frase[::-1] for contador in range(tamanho-1, -1, -1): inverso += frase[contador] print('O inverso de {} é {}'.format(frase, inverso)) if frase == inverso: print('Temos...
24.625
68
0.639594
54
394
4.666667
0.592593
0.142857
0
0
0
0
0
0
0
0
0
0.012232
0.170051
394
16
69
24.625
0.75841
0.104061
0
0
0
0
0.272727
0
0
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
0
0
0
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
1
0
bcaf69ed2a6fded7e4b539b423940b33563b6d40
540
py
Python
tests/unittest/options/pricing/test_binomial_trees.py
yiluzhu/quant
784c5cc20eeded2ff684b464eec4744f000d9638
[ "MIT" ]
1
2020-10-14T12:56:14.000Z
2020-10-14T12:56:14.000Z
tests/unittest/options/pricing/test_binomial_trees.py
yiluzhu/quant
784c5cc20eeded2ff684b464eec4744f000d9638
[ "MIT" ]
null
null
null
tests/unittest/options/pricing/test_binomial_trees.py
yiluzhu/quant
784c5cc20eeded2ff684b464eec4744f000d9638
[ "MIT" ]
null
null
null
from unittest import TestCase from options.pricing.binomial_trees import BinomialTreePricer from options.option import OptionType, Option class BinomialTreeTestCase(TestCase): def test_basic(self): """European option, spot price 50, strike price 52, risk free interest rate 5% expiry 2 years, vo...
30
86
0.698148
67
540
5.58209
0.656716
0.058824
0
0
0
0
0
0
0
0
0
0.061466
0.216667
540
17
87
31.764706
0.822695
0.196296
0
0
0
0
0
0
0
0
0
0
0.111111
1
0.111111
false
0
0.333333
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bcaf71bd0c6cd2298c1b67ea7ef95ddacb0851be
16,589
py
Python
mctimer.py
Sharpieman20/MCtimer
5d4609f3697778de090816b8a768b82bbe217294
[ "Beerware" ]
null
null
null
mctimer.py
Sharpieman20/MCtimer
5d4609f3697778de090816b8a768b82bbe217294
[ "Beerware" ]
null
null
null
mctimer.py
Sharpieman20/MCtimer
5d4609f3697778de090816b8a768b82bbe217294
[ "Beerware" ]
null
null
null
import atexit import os import sys import platform import json import glob import datetime import time import threading import tkinter as tk from pynput import mouse from pathlib import Path from playsound import playsound from enum import Enum import copy #"THE BEER-WARE LICENSE" (Revision 42): #bleach86 wrote this ...
24.833832
119
0.578335
2,005
16,589
4.6
0.171571
0.012144
0.01171
0.020492
0.218909
0.133579
0.093028
0.08674
0.08674
0.08674
0
0.031005
0.300078
16,589
668
120
24.833832
0.763328
0.151727
0
0.366743
0
0
0.080072
0.00434
0
0
0
0
0
1
0.079727
false
0.002278
0.034169
0
0.150342
0.009112
0
0
0
null
0
0
0
0
0
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
1
0
bcb0236709da62fc588329e551c92b5fc621ffd9
2,927
py
Python
kafka/structs.py
informatique-cdc/kafka-python
d73bd6fc2f8825e2fddb7c4f091af7b266e37aea
[ "Apache-2.0" ]
4,389
2015-06-12T06:00:10.000Z
2022-03-31T20:41:42.000Z
kafka/structs.py
informatique-cdc/kafka-python
d73bd6fc2f8825e2fddb7c4f091af7b266e37aea
[ "Apache-2.0" ]
1,595
2015-12-02T20:58:22.000Z
2022-03-27T07:28:03.000Z
kafka/structs.py
informatique-cdc/kafka-python
d73bd6fc2f8825e2fddb7c4f091af7b266e37aea
[ "Apache-2.0" ]
1,115
2015-12-02T23:17:52.000Z
2022-03-30T03:34:29.000Z
""" Other useful structs """ from __future__ import absolute_import from collections import namedtuple """A topic and partition tuple Keyword Arguments: topic (str): A topic name partition (int): A partition id """ TopicPartition = namedtuple("TopicPartition", ["topic", "partition"]) """A Kafka broker...
33.261364
102
0.702767
358
2,927
5.692737
0.374302
0.023553
0.027478
0.023553
0.102552
0.069676
0.069676
0.035329
0.035329
0
0
0.001697
0.194739
2,927
87
103
33.643678
0.862961
0.031773
0
0
0
0
0.415135
0.022703
0
0
0
0.011494
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
bcb1c97f3222308944fcb2351152a564408ff396
7,357
py
Python
Vehicle_Counting_colab.py
manolosolalinde/Vehicle-Counting
898e1993613ea5a6803078cc5026d2d690c12322
[ "MIT" ]
null
null
null
Vehicle_Counting_colab.py
manolosolalinde/Vehicle-Counting
898e1993613ea5a6803078cc5026d2d690c12322
[ "MIT" ]
null
null
null
Vehicle_Counting_colab.py
manolosolalinde/Vehicle-Counting
898e1993613ea5a6803078cc5026d2d690c12322
[ "MIT" ]
null
null
null
import cv2 from trackers.tracker import create_blob, add_new_blobs, remove_duplicates import numpy as np from collections import OrderedDict from detectors.detector import get_bounding_boxes import uuid import os import contextlib from datetime import datetime import argparse from utils.detection_roi import get_roi_fra...
40.646409
125
0.644964
1,007
7,357
4.54717
0.270109
0.017034
0.040839
0.016598
0.116401
0.076436
0.062022
0.017471
0.017471
0
0
0.018939
0.246432
7,357
181
126
40.646409
0.806999
0.085905
0
0.137405
0
0.007634
0.079517
0
0
0
0.001194
0
0
1
0
false
0.015267
0.091603
0
0.091603
0.030534
0
0
0
null
0
0
0
0
0
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
1
0
bcb21686e2484863628d877e956c259a49e6e1be
2,542
py
Python
app/resources/magic_castle_api.py
ComputeCanada/mc-hub
92b4c212ba8f7b5b1c8b8700f981275605a07067
[ "BSD-3-Clause" ]
5
2020-09-04T16:34:36.000Z
2020-09-25T19:14:59.000Z
app/resources/magic_castle_api.py
ComputeCanada/mc-hub
92b4c212ba8f7b5b1c8b8700f981275605a07067
[ "BSD-3-Clause" ]
39
2020-09-12T17:37:14.000Z
2022-03-10T17:49:57.000Z
app/resources/magic_castle_api.py
ComputeCanada/mc-hub
92b4c212ba8f7b5b1c8b8700f981275605a07067
[ "BSD-3-Clause" ]
1
2021-03-29T15:42:13.000Z
2021-03-29T15:42:13.000Z
from flask import request from resources.api_view import ApiView from exceptions.invalid_usage_exception import InvalidUsageException from models.user.user import User from models.user.authenticated_user import AuthenticatedUser class MagicCastleAPI(ApiView): def get(self, user: User, hostname): if hostna...
39.71875
77
0.5893
257
2,542
5.509728
0.249027
0.217514
0.093927
0.056497
0.658192
0.634181
0.634181
0.634181
0.634181
0.580508
0
0
0.335563
2,542
63
78
40.349206
0.838366
0
0
0.54386
0
0
0.043666
0
0
0
0
0
0
1
0.070175
false
0.035088
0.087719
0
0.298246
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
bcb26248e648d4d9b19d0a9ff813f2b53c5baabf
2,615
py
Python
tests/rbac/api/role/propose_member_test.py
kthblmfld/sawtooth-next-directory
57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707
[ "Apache-2.0" ]
null
null
null
tests/rbac/api/role/propose_member_test.py
kthblmfld/sawtooth-next-directory
57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707
[ "Apache-2.0" ]
null
null
null
tests/rbac/api/role/propose_member_test.py
kthblmfld/sawtooth-next-directory
57291f1a7e6ce1dfc11a9c5e2930e8c5ebd31707
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
36.830986
79
0.702868
364
2,615
4.925824
0.362637
0.040156
0.029002
0.026771
0.281093
0.258226
0.258226
0.258226
0.189626
0.189626
0
0.006364
0.1587
2,615
70
80
37.357143
0.808636
0.338815
0
0.238095
0
0
0.106195
0
0
0
0
0
0.309524
1
0.047619
false
0
0.190476
0
0.238095
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
0
0
1
0
bcb2a48f3534ac05974fe4c223430ebf965fdf0b
881
py
Python
f2v.py
ClimberY/video_super_resolution_toolbox
e03fd34f60bf1104bd78ac0738a2648cee2eae46
[ "MIT" ]
null
null
null
f2v.py
ClimberY/video_super_resolution_toolbox
e03fd34f60bf1104bd78ac0738a2648cee2eae46
[ "MIT" ]
null
null
null
f2v.py
ClimberY/video_super_resolution_toolbox
e03fd34f60bf1104bd78ac0738a2648cee2eae46
[ "MIT" ]
null
null
null
import cv2 import os import numpy as np from PIL import Image def frame2video(im_dir, video_dir, fps): im_list = os.listdir(im_dir) im_list.sort(key=lambda x: int(x.replace("_RBPNF7", "").split('.')[0])) img = Image.open(os.path.join(im_dir, im_list[0])) img_size = img.size # 获得图片分辨率,im_dir文件夹下的图片分辨率...
33.884615
82
0.682179
132
881
4.325758
0.477273
0.052539
0.056042
0.073555
0.28021
0.227671
0.1331
0
0
0
0
0.019499
0.185017
881
25
83
35.24
0.775766
0.053348
0
0
0
0
0.148372
0.056695
0
0
0
0
0
1
0.047619
false
0
0.190476
0
0.238095
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
0
0
1
0
bcb332026597a8538e3390f5b54de4be3aa00f42
11,103
py
Python
mflops/model_info.py
shuncyu/mflops
81fddf9407bcbdca02b9c57f6b03640b3fb94101
[ "MIT" ]
1
2020-12-17T03:09:20.000Z
2020-12-17T03:09:20.000Z
mflops/model_info.py
shuncyu/mflops
81fddf9407bcbdca02b9c57f6b03640b3fb94101
[ "MIT" ]
null
null
null
mflops/model_info.py
shuncyu/mflops
81fddf9407bcbdca02b9c57f6b03640b3fb94101
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 14 17:38:48 2020 @author: luke """ import sys from functools import partial import torch import torch.nn as nn import prettytable as pt from .basic_hook import MODULES_MAPPING def get_model_compute_info(model, input_res, ...
35.359873
107
0.631721
1,358
11,103
4.764359
0.172312
0.033385
0.022102
0.02272
0.359351
0.278825
0.213138
0.181607
0.132767
0.111283
0
0.009632
0.280014
11,103
313
108
35.472843
0.799725
0.086103
0
0.181818
0
0
0.057023
0.004785
0
0
0
0
0.018182
1
0.104545
false
0.004545
0.027273
0
0.236364
0.040909
0
0
0
null
0
0
0
0
0
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
1
0
bcb33dd64b91d776f626dc908c114e472e82874d
2,301
py
Python
dosagelib/plugins/derideal.py
Church-/dosage
7ef18a2a2e9f77aa1e64a44906731506a00fac45
[ "MIT" ]
1
2020-06-18T17:51:13.000Z
2020-06-18T17:51:13.000Z
dosagelib/plugins/derideal.py
Church-/dosage
7ef18a2a2e9f77aa1e64a44906731506a00fac45
[ "MIT" ]
null
null
null
dosagelib/plugins/derideal.py
Church-/dosage
7ef18a2a2e9f77aa1e64a44906731506a00fac45
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (C) 2019-2020 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from ..scraper import _ParserScraper from ..helpers import indirectStarter class Derideal(_ParserScraper): baseUrl = 'https://www.derideal.com/' imageSearch = '//img[contains(@class, "comic-page"...
40.368421
94
0.614081
257
2,301
5.44358
0.474708
0.057184
0.082202
0.025733
0.038599
0.031451
0
0
0
0
0
0.012878
0.223816
2,301
56
95
41.089286
0.770437
0.046936
0
0
0
0
0.276382
0.074463
0
0
0
0
0
1
0.088889
false
0
0.044444
0.022222
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcb3b617387a63312fcb662d0698c65cf437acee
3,340
py
Python
LearnFunction/learnfunction01.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
1
2022-01-14T18:03:42.000Z
2022-01-14T18:03:42.000Z
LearnFunction/learnfunction01.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
null
null
null
LearnFunction/learnfunction01.py
subash-kc/2022-01-04-Python
5ce51e4265bcd860a4e62423edef6ec9cd1437b4
[ "MIT" ]
null
null
null
""" Function are subprograms which are used to compute a value or perform a task. Type of Functions:- Built in Functions: print(), upper() User define functions Advantage of Functions 1. Write once and use it as many time as you need. This provides code reusability 2. Function facilitates ease of code maint...
18.870056
106
0.645808
503
3,340
4.204771
0.326044
0.021277
0.005674
0.021277
0.115366
0.110638
0.101182
0.052009
0.052009
0
0
0.029786
0.246108
3,340
176
107
18.977273
0.810167
0.170359
0
0.173913
0
0
0.210858
0
0
0
0
0
0
1
0.115942
false
0
0.014493
0
0.188406
0.217391
0
0
0
null
0
0
0
0
0
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
1
0
bcb3deb24bc63c8049391df8c67ec2a72c8f437a
945
py
Python
trackr/cli.py
rpedigoni/trackr
ab5cf0cc661d003c6bd2ffa5516babf2e931de78
[ "MIT" ]
9
2017-04-23T23:54:56.000Z
2021-12-26T02:21:28.000Z
trackr/cli.py
rpedigoni/trackr
ab5cf0cc661d003c6bd2ffa5516babf2e931de78
[ "MIT" ]
null
null
null
trackr/cli.py
rpedigoni/trackr
ab5cf0cc661d003c6bd2ffa5516babf2e931de78
[ "MIT" ]
3
2017-04-23T23:55:13.000Z
2017-05-03T01:20:23.000Z
# coding: utf-8 import click @click.command() @click.option('--carrier', prompt='Carrier ID', help='Example: "ect" for Correios') @click.option('--object-id', prompt='Object ID', help='Example: PN871429404BR') def main(carrier, object_id): from trackr import Trackr from trackr.exceptions import ...
25.540541
83
0.582011
111
945
4.792793
0.441441
0.090226
0.078947
0.107143
0.139098
0.101504
0
0
0
0
0
0.014749
0.28254
945
36
84
26.25
0.769912
0.013757
0
0.074074
0
0
0.193548
0
0
0
0
0
0
1
0.037037
false
0
0.111111
0
0.185185
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
0
0
1
0
bcb3f4ba8d64955ba6c3c16193d7d7869a8725dd
3,043
py
Python
pitop/common/notifications.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
28
2020-11-24T08:02:58.000Z
2022-02-27T18:37:33.000Z
pitop/common/notifications.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
263
2020-11-10T14:35:10.000Z
2022-03-31T12:35:13.000Z
pitop/common/notifications.py
pi-top/pi-top-Python-SDK
6c83cc5f612d77f86f8d391c7f2924a28f7b1232
[ "Apache-2.0" ]
1
2022-01-31T22:48:35.000Z
2022-01-31T22:48:35.000Z
from enum import Enum, auto from subprocess import CalledProcessError, run from pitop.common.command_runner import run_command from pitop.common.logger import PTLogger class NotificationAction: def __init__(self, call_to_action_text, command_str) -> None: self.call_to_action_text = call_to_action_text ...
29.833333
92
0.621755
350
3,043
5.16
0.282857
0.066445
0.039867
0.053156
0.187154
0.087486
0.037652
0.037652
0
0
0
0.003126
0.264213
3,043
101
93
30.128713
0.803484
0.028262
0
0.052632
0
0
0.08291
0
0
0
0
0
0
1
0.078947
false
0
0.052632
0
0.223684
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcb4c4328d404e8eec9df91c64d171e98d7a2415
5,778
py
Python
src/Gismo_XY To Location.py
AntonelloDN/gismo
3ffbabaf8405efd3572701c9e0b7497211dfc248
[ "Apache-2.0" ]
57
2017-01-31T11:55:22.000Z
2022-03-26T16:00:40.000Z
src/Gismo_XY To Location.py
AntonelloDN/gismo
3ffbabaf8405efd3572701c9e0b7497211dfc248
[ "Apache-2.0" ]
11
2017-02-22T16:45:11.000Z
2020-05-06T17:00:07.000Z
src/Gismo_XY To Location.py
AntonelloDN/gismo
3ffbabaf8405efd3572701c9e0b7497211dfc248
[ "Apache-2.0" ]
19
2017-01-29T18:02:58.000Z
2021-08-25T10:56:57.000Z
# xy to location # # Gismo is a plugin for GIS environmental analysis (GPL) started by Djordje Spasic. # # This file is part of Gismo. # # Copyright (c) 2019, Djordje Spasic <djordjedspasic@gmail.com> # Gismo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
47.360656
246
0.72776
653
5,778
6.320061
0.338438
0.040708
0.028108
0.045554
0.17228
0.130119
0.089411
0.067846
0.038284
0.038284
0
0.012208
0.206127
5,778
121
247
47.752066
0.887508
0.18207
0
0.220339
0
0
0.065931
0
0
0
0
0
0
0
null
null
0.016949
0.050847
null
null
0.237288
0
0
0
null
0
0
0
0
0
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
bcb5f8a3494a7c1dd73bdaa2595e97b680531db5
256
py
Python
Notebooks/SentinelUtilities/SentinelAnomalyLookup/__init__.py
ytognder/Azure-Sentinel
7345560f178e731d7ba5a5541fd3383bca285311
[ "MIT" ]
266
2019-10-18T00:41:39.000Z
2022-03-18T05:44:01.000Z
Notebooks/SentinelUtilities/SentinelAnomalyLookup/__init__.py
ytognder/Azure-Sentinel
7345560f178e731d7ba5a5541fd3383bca285311
[ "MIT" ]
113
2020-03-10T16:56:10.000Z
2022-03-28T21:54:26.000Z
Notebooks/SentinelUtilities/SentinelAnomalyLookup/__init__.py
ytognder/Azure-Sentinel
7345560f178e731d7ba5a5541fd3383bca285311
[ "MIT" ]
93
2020-01-07T20:28:43.000Z
2022-03-23T04:09:39.000Z
# pylint: disable-msg=C0103 """ SentinelAnomalyLookup: This package is developed for Azure Sentinel Anomaly lookup """ # __init__.py from .anomaly_lookup_view_helper import AnomalyLookupViewHelper from .anomaly_finder import AnomalyQueries, AnomalyFinder
28.444444
82
0.832031
29
256
7.068966
0.827586
0.126829
0
0
0
0
0
0
0
0
0
0.017467
0.105469
256
8
83
32
0.877729
0.472656
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
bcb80d7d2c6e6e1e230619095dac5498b39b51c1
3,989
py
Python
items/coins.py
leerichoang/Legend-Of-Peach
bef98ba7afdbddc497c45f8adedfb60e81176bfb
[ "MIT" ]
null
null
null
items/coins.py
leerichoang/Legend-Of-Peach
bef98ba7afdbddc497c45f8adedfb60e81176bfb
[ "MIT" ]
null
null
null
items/coins.py
leerichoang/Legend-Of-Peach
bef98ba7afdbddc497c45f8adedfb60e81176bfb
[ "MIT" ]
2
2019-10-15T23:22:16.000Z
2019-10-29T04:38:02.000Z
import pygame from pygame.sprite import Sprite class Coins(Sprite): """Coins""" def __init__(self, hub, x, y, name='coin', state='floating'): super().__init__() # Values self.name = name self.hub = hub self.original_pos = [x, y] self.rest_height = y se...
34.387931
93
0.560792
494
3,989
4.402834
0.182186
0.074483
0.077241
0.069885
0.516782
0.44046
0.316782
0.211034
0.109885
0.109885
0
0.022303
0.314365
3,989
115
94
34.686957
0.772943
0.028077
0
0.174419
0
0
0.060669
0.030853
0
0
0
0
0
1
0.069767
false
0
0.023256
0
0.104651
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
0
0
1
0
bcb9144fdddbbf32bc78ac12f77acb144b544d93
142
py
Python
python/package/geo/test/__init__.py
fiomenankiti/playground
7c3139ffe5db4b18cf042b8027c9f670860371e0
[ "MIT" ]
null
null
null
python/package/geo/test/__init__.py
fiomenankiti/playground
7c3139ffe5db4b18cf042b8027c9f670860371e0
[ "MIT" ]
null
null
null
python/package/geo/test/__init__.py
fiomenankiti/playground
7c3139ffe5db4b18cf042b8027c9f670860371e0
[ "MIT" ]
null
null
null
from geo.calc import Calc from geo.calc import Distance from geo.geosp import Wt from geo.geosp import Gh from geo.files.csv_file import check
28.4
36
0.823944
27
142
4.296296
0.444444
0.301724
0.189655
0.293103
0
0
0
0
0
0
0
0
0.133803
142
5
36
28.4
0.943089
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
1
1
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
1
0
1
0
0
0
0
7
bcbacb893f1fc24efc7e31b69bae2dad2d6081f7
293
py
Python
tests/test_clean.py
tcapelle/nb_helpers
432b1f014f1b780b5a4d3722d44f237387db2330
[ "MIT" ]
7
2022-01-13T09:54:39.000Z
2022-02-08T23:34:47.000Z
tests/test_clean.py
tcapelle/nb_helpers
432b1f014f1b780b5a4d3722d44f237387db2330
[ "MIT" ]
62
2021-12-14T10:24:13.000Z
2022-02-09T00:00:12.000Z
tests/test_clean.py
tcapelle/nb_helpers
432b1f014f1b780b5a4d3722d44f237387db2330
[ "MIT" ]
2
2022-01-20T10:41:51.000Z
2022-02-04T11:26:41.000Z
from pathlib import Path from nb_helpers.clean import clean_all, clean_one from tests import TEST_PATH TEST_PATH TEST_NB = Path("test_nb.py") def test_clean_one(): "clean just one nb" clean_one(TEST_NB) def test_clean_all(): "clean all test nbs" clean_all(path=TEST_PATH)
17.235294
49
0.744027
51
293
3.980392
0.294118
0.157635
0.128079
0
0
0
0
0
0
0
0
0
0.177474
293
16
50
18.3125
0.842324
0.122867
0
0
0
0
0.153584
0
0
0
0
0
0
1
0.181818
false
0
0.272727
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
0
0
0
0
0
1
0
bcbc7df90a025f59202f5950277107bf1a366441
5,746
py
Python
apps/technical_analysis.py
KiloSat/FirstNivesh
0fe200e08bb9f7d89de91f59eb14448fa7b972b9
[ "MIT" ]
null
null
null
apps/technical_analysis.py
KiloSat/FirstNivesh
0fe200e08bb9f7d89de91f59eb14448fa7b972b9
[ "MIT" ]
null
null
null
apps/technical_analysis.py
KiloSat/FirstNivesh
0fe200e08bb9f7d89de91f59eb14448fa7b972b9
[ "MIT" ]
2
2021-04-03T16:39:23.000Z
2021-08-15T08:09:21.000Z
import streamlit as st def app(): import yfinance as yf import streamlit as st import datetime import matplotlib.pyplot as plt import talib import ta import numpy as np import matplotlib.ticker as mticker import pandas as pd import requests yf.pdr_override() st.wr...
34.202381
197
0.603376
779
5,746
4.392811
0.283697
0.035359
0.035067
0.0263
0.303331
0.249562
0.205435
0.156341
0.156341
0.124489
0
0.025095
0.223286
5,746
167
198
34.407186
0.741654
0.077793
0
0.107843
0
0.009804
0.239833
0
0
0
0
0
0
1
0.029412
false
0
0.107843
0
0.156863
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
0
0
1
0
bcbd7d0edc16eccd95b307b889e7f1a174b4d31c
4,642
py
Python
tests/sentry/mediators/sentry_apps/test_creator.py
pombredanne/django-sentry
4ad09417fb3cfa3aa4a0d4175ae49fe02837c567
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/mediators/sentry_apps/test_creator.py
pombredanne/django-sentry
4ad09417fb3cfa3aa4a0d4175ae49fe02837c567
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/mediators/sentry_apps/test_creator.py
pombredanne/django-sentry
4ad09417fb3cfa3aa4a0d4175ae49fe02837c567
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from mock import patch from django.db import IntegrityError from sentry.mediators.sentry_apps import Creator from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, ApiApplication, IntegrationFeature, SentryApp, SentryAppComponent, User, ) from...
32.013793
98
0.640888
523
4,642
5.460803
0.210325
0.069328
0.063025
0.033613
0.428221
0.326681
0.27486
0.261204
0.261204
0.233543
0
0
0.246446
4,642
144
99
32.236111
0.816467
0
0
0.330435
0
0
0.091771
0.029513
0
0
0
0
0.13913
1
0.130435
false
0
0.052174
0
0.191304
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
0
0
1
0
bcbdf778d11c4a8378ce0f01967703c04ca3e0b9
17,869
py
Python
python/Model_Files/LFV_3/parameters.py
ZAKI1905/HEP-Phen
bc06fecb2aa6bf108b59f76794e63c29eb37a35a
[ "MIT" ]
1
2019-10-21T08:25:46.000Z
2019-10-21T08:25:46.000Z
python/Model_Files/LFV_3/parameters.py
ZAKI1905/HEP-Phen
bc06fecb2aa6bf108b59f76794e63c29eb37a35a
[ "MIT" ]
null
null
null
python/Model_Files/LFV_3/parameters.py
ZAKI1905/HEP-Phen
bc06fecb2aa6bf108b59f76794e63c29eb37a35a
[ "MIT" ]
null
null
null
# This file was automatically created by FeynRules 2.3.32 # Mathematica version: 11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018) # Date: Sat 21 Apr 2018 20:48:39 from object_library import all_parameters, Parameter from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot # This is a defau...
31.459507
288
0.38245
1,497
17,869
4.553106
0.151637
0.148768
0.114437
0.109742
0.456866
0.361796
0.268192
0.235915
0.118545
0.031103
0
0.062539
0.466674
17,869
567
289
31.514991
0.652676
0.012983
0
0.550209
0
0.008368
0.188883
0.038911
0
0
0
0
0
1
0
false
0
0.004184
0
0.004184
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
0
0
1
0
bcbef8c15ce4fa1656c062f45eb901b87f935220
1,828
py
Python
musicLrc.py
xiangxing98/Rhythm-Enlightment
d6302321e858d07480b18e94c59de87f91c39202
[ "MIT" ]
null
null
null
musicLrc.py
xiangxing98/Rhythm-Enlightment
d6302321e858d07480b18e94c59de87f91c39202
[ "MIT" ]
null
null
null
musicLrc.py
xiangxing98/Rhythm-Enlightment
d6302321e858d07480b18e94c59de87f91c39202
[ "MIT" ]
null
null
null
import time musicLrc = """ [00:03.50]传奇 [00:19.10]作词:刘兵 作曲:李健 [00:20.60]演唱:王菲 [00:26.60] [04:40.75][02:39.90][00:36.25]只是因为在人群中多看了你一眼 [04:49.00] [02:47.44][00:43.69]再也没能忘掉你容颜 [02:54.83][00:51.24]梦想着偶然能有一天再相见 [03:02.32][00:58.75]从此我开始孤单思念 [03:08.15][01:04.30] [03:09.35][01:05.50]想你时你在天边 [03:16.90][01:13.13]想你时你在眼前 [03:...
22.292683
62
0.605033
297
1,828
3.723906
0.380471
0.014467
0.016275
0.0217
0.227848
0.209765
0.209765
0.209765
0.209765
0.209765
0
0.212225
0.203501
1,828
82
63
22.292683
0.54739
0.098468
0
0
0
0.04
0.413392
0.310044
0
0
0
0
0
1
0
false
0.02
0.02
0
0.02
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bcbfd5dadc46bd5eab08a4b4f4c45a601d0075b6
16,826
py
Python
octoprint_octopod/__init__.py
mnebelung/OctoPrint-OctoPod
3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a
[ "Apache-2.0" ]
52
2019-05-28T03:41:20.000Z
2022-01-29T00:32:57.000Z
octoprint_octopod/__init__.py
mnebelung/OctoPrint-OctoPod
3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a
[ "Apache-2.0" ]
111
2019-05-28T14:50:01.000Z
2022-03-21T22:12:05.000Z
octoprint_octopod/__init__.py
mnebelung/OctoPrint-OctoPod
3af1a2e1ad7c6f73ed05d9c1ff029fb645f3115a
[ "Apache-2.0" ]
11
2019-07-20T15:36:21.000Z
2021-12-30T16:53:56.000Z
# coding=utf-8 from __future__ import absolute_import import datetime import logging import sys import flask import octoprint.plugin from octoprint.events import eventManager, Events from octoprint.server import user_permission from octoprint.util import RepeatedTimer from .bed_notifications import BedNotifications ...
39.683962
141
0.757934
2,175
16,826
5.557701
0.19908
0.045665
0.031023
0.039957
0.245367
0.155113
0.092985
0.065602
0.036813
0.036813
0
0.00852
0.135029
16,826
423
142
39.777778
0.822042
0.136099
0
0.074074
0
0
0.15568
0.049475
0
0
0
0
0
1
0.077441
false
0
0.070707
0.020202
0.198653
0.124579
0
0
0
null
0
0
0
0
0
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
1
0
bcc019e1e7277f852d55bb225dc74bb333185aa3
660
py
Python
tests/test_buffers.py
romanchyla/CSPatterns
d9627297aabce1ab648f4a4cdbe9882527add138
[ "MIT" ]
null
null
null
tests/test_buffers.py
romanchyla/CSPatterns
d9627297aabce1ab648f4a4cdbe9882527add138
[ "MIT" ]
null
null
null
tests/test_buffers.py
romanchyla/CSPatterns
d9627297aabce1ab648f4a4cdbe9882527add138
[ "MIT" ]
null
null
null
from cspatterns.datastructures import buffer def test_circular_buffer(): b = buffer.CircularBuffer(2, ['n']) assert len(b.next) == 2 assert b.n is None b = buffer.CircularBuffer.create(2, attrs=['n', 'fib']) curr = b out = [0, 1, ] curr.prev[-2].n = 0 curr.prev[-2].fib = 1 curr...
25.384615
66
0.551515
109
660
3.321101
0.40367
0.176796
0.124309
0.082873
0.082873
0.082873
0
0
0
0
0
0.089583
0.272727
660
26
66
25.384615
0.664583
0.05303
0
0
0
0
0.008013
0
0
0
0
0
0.166667
1
0.055556
false
0
0.055556
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
0
0
0
0
0
0
0
0
0
0
1
0
bcc146cfb565fd0140a85d638082d12ef6686650
1,214
py
Python
plugins/redacted/migrations/0001_initial.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
9
2019-03-26T14:50:00.000Z
2020-11-10T16:44:08.000Z
plugins/redacted/migrations/0001_initial.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
22
2019-03-02T23:16:13.000Z
2022-02-27T10:36:36.000Z
plugins/redacted/migrations/0001_initial.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
5
2019-04-24T00:51:30.000Z
2020-11-06T18:31:49.000Z
# Generated by Django 2.1.7 on 2019-02-17 14:50 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='RedactedClientConfig', fields=[ ('id', mode...
31.947368
114
0.538715
104
1,214
6.201923
0.557692
0.116279
0.088372
0.106977
0.244961
0.244961
0.244961
0.244961
0.244961
0.244961
0
0.023227
0.326194
1,214
37
115
32.810811
0.765281
0.037068
0
0.333333
1
0
0.107112
0.020566
0
0
0
0
0
1
0
false
0.066667
0.033333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
bcc1d17c27a82c381571bf91c586033e374ec7d9
1,741
py
Python
code_examples/plotting_data/hexbin.py
ezcitron/BasemapTutorial
0db9248b430d39518bdfdb25d713145be4eb966a
[ "CC0-1.0" ]
99
2015-01-14T21:20:48.000Z
2022-01-25T10:38:37.000Z
code_examples/plotting_data/hexbin.py
ezcitron/BasemapTutorial
0db9248b430d39518bdfdb25d713145be4eb966a
[ "CC0-1.0" ]
1
2017-08-31T07:02:20.000Z
2017-08-31T07:02:20.000Z
code_examples/plotting_data/hexbin.py
ezcitron/BasemapTutorial
0db9248b430d39518bdfdb25d713145be4eb966a
[ "CC0-1.0" ]
68
2015-01-14T21:21:01.000Z
2022-01-29T14:53:38.000Z
from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import matplotlib.colors as colors from numpy import array from numpy import max map = Basemap(llcrnrlon=-0.5,llcrnrlat=39.8,urcrnrlon=4.,urcrnrlat=43., resolution='i', projection='tmerc', lat_0 = 39.5, lon_0 = 1) map.readshapefil...
23.527027
139
0.687536
246
1,741
4.813008
0.353659
0.067568
0.092905
0.11402
0.416385
0.346284
0.346284
0.326014
0.326014
0.326014
0
0.038058
0.124641
1,741
74
140
23.527027
0.738845
0
0
0.195122
0
0
0.175086
0.072331
0
0
0
0
0
1
0
false
0
0.121951
0
0.121951
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
0
0
1
0
bcc231c6648af0cd64b843faf63ad79a79b6853b
895
py
Python
src/plugins/sjsy.py
2443391447/nonebot2
c9fa0c44c130b8a1425b2b71105fa909232c37b0
[ "MIT" ]
1
2021-08-24T03:18:23.000Z
2021-08-24T03:18:23.000Z
src/plugins/sjsy.py
2443391447/nonebot2
c9fa0c44c130b8a1425b2b71105fa909232c37b0
[ "MIT" ]
null
null
null
src/plugins/sjsy.py
2443391447/nonebot2
c9fa0c44c130b8a1425b2b71105fa909232c37b0
[ "MIT" ]
1
2021-09-01T07:50:03.000Z
2021-09-01T07:50:03.000Z
from nonebot import on_keyword, on_command from nonebot.typing import T_State from nonebot.adapters.cqhttp import Message, Bot, Event # 这两个没用的别删 from nonebot.adapters.cqhttp.message import MessageSegment import requests from nonebot.permission import * from nonebot.rule import to_me from aiocqhttp.exceptions im...
28.870968
68
0.689385
119
895
5.168067
0.529412
0.107317
0.061789
0.081301
0
0
0
0
0
0
0
0
0.2
895
31
69
28.870968
0.850559
0.109497
0
0
0
0
0.086387
0.032723
0
0
0
0
0
1
0
false
0.045455
0.363636
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
0
0
0
1
0
0
0
0
1
bcc3dcd13da8bfacff9f3f45c797b5dd285e8744
4,031
py
Python
src/extractors/emojiextractor.py
chmduquesne/rofimoji
9abdc0a8db1b166bb30da994c4aadb7baf91df2d
[ "MIT" ]
574
2017-10-29T18:04:31.000Z
2022-03-30T23:34:34.000Z
src/extractors/emojiextractor.py
chmduquesne/rofimoji
9abdc0a8db1b166bb30da994c4aadb7baf91df2d
[ "MIT" ]
104
2017-11-02T08:24:29.000Z
2022-03-29T02:39:58.000Z
src/extractors/emojiextractor.py
chmduquesne/rofimoji
9abdc0a8db1b166bb30da994c4aadb7baf91df2d
[ "MIT" ]
53
2017-11-01T22:38:02.000Z
2022-02-14T09:20:36.000Z
import html from collections import namedtuple from pathlib import Path from typing import List, Dict import requests from bs4 import BeautifulSoup from lxml import etree from lxml.etree import XPath Emoji = namedtuple('Emoji', 'char name') class EmojiExtractor(object): def __init__(self): self.all_emo...
37.324074
159
0.607045
473
4,031
5.071882
0.30444
0.052522
0.018758
0.02501
0.082534
0.030013
0.030013
0
0
0
0
0.008696
0.258249
4,031
107
160
37.672897
0.793311
0.017614
0
0.107143
0
0.047619
0.223711
0.055106
0
0
0
0
0
1
0.119048
false
0
0.095238
0.011905
0.309524
0.059524
0
0
0
null
0
0
0
0
0
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
1
0
bcc4fcfb44a442a2523238a8484bf80417464006
5,084
py
Python
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
2
2018-12-20T05:40:43.000Z
2018-12-20T05:59:58.000Z
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/security/test_seccomp.py
gregbdunn/firecracker
e7bc0a1f9b70deaa7bfd9eb641e0c7982fe63e68
[ "Apache-2.0" ]
1
2018-11-27T08:50:51.000Z
2018-11-27T08:50:51.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Tests that the seccomp filters don't let blacklisted syscalls through.""" import os from subprocess import run import pytest import host_tools.cargo_build as host # pylint:disable=import-error @pyte...
29.387283
79
0.696302
625
5,084
5.3712
0.2
0.041108
0.035746
0.045874
0.65922
0.637176
0.54513
0.473339
0.445934
0.445934
0
0.002795
0.225806
5,084
172
80
29.55814
0.850102
0.285995
0
0.455446
0
0
0.083215
0.042318
0
0
0
0
0.079208
1
0.049505
false
0
0.039604
0
0.089109
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
0
0
1
0
bcc54625026e4e77ba54fe67d05a342fde131c90
185
py
Python
cluster/density/test.py
michealowen/MachingLearning
9dcc908f2d3e468390e5abb7f051b449b0ecb455
[ "Apache-2.0" ]
2
2019-09-11T07:02:25.000Z
2020-12-17T10:40:02.000Z
cluster/density/test.py
michealowen/MachingLearning
9dcc908f2d3e468390e5abb7f051b449b0ecb455
[ "Apache-2.0" ]
null
null
null
cluster/density/test.py
michealowen/MachingLearning
9dcc908f2d3e468390e5abb7f051b449b0ecb455
[ "Apache-2.0" ]
null
null
null
class a: def __init__(self,da): self.da = da return def go(self): dd() return None def dd(): print('ok') return None aa = a(1) aa.go()
12.333333
26
0.475676
27
185
3.111111
0.518519
0.142857
0
0
0
0
0
0
0
0
0
0.00885
0.389189
185
15
27
12.333333
0.734513
0
0
0.166667
0
0
0.010753
0
0
0
0
0
0
1
0.25
false
0
0
0
0.583333
0.083333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
3
bcc5a1b4f97e4fd31b1d8727fc7f8a5dcff9e43e
566,013
py
Python
REM/Tool/IDA 7.3/python/ida_hexrays.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
null
null
null
REM/Tool/IDA 7.3/python/ida_hexrays.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
null
null
null
REM/Tool/IDA 7.3/python/ida_hexrays.py
dodieboy/Np_class
af9ec993eda3c1e2bf70257c8384696bb64a5e9d
[ "MIT" ]
2
2021-03-30T00:46:58.000Z
2021-12-12T23:41:12.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. """ IDA Plugin SDK API wrapper: hexrays """ from sys import version_info if version_info >= (2,6,0): def sw...
29.641948
603
0.637696
76,138
566,013
4.204471
0.02573
0.129795
0.098313
0.045545
0.717344
0.604136
0.52406
0.448925
0.389117
0.35203
0
0.001155
0.250485
566,013
19,094
604
29.643501
0.753427
0.177061
0
0.289238
1
0
0.013218
0.000086
0
0
0.000025
0
0.002301
1
0.282975
false
0.001278
0.002684
0.003195
0.687372
0.014187
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
1
0
0
0
0
0
0
0
2
bcc6795e9da5c859c6308d7dfd37a7f5806dbb41
3,714
py
Python
webapp/gen_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-08-04T03:09:02.000Z
2020-06-08T15:48:36.000Z
webapp/gen_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-09-06T08:30:21.000Z
2020-06-30T03:24:56.000Z
webapp/gen_graphs.py
bfitzy2142/NET4901-SP-SDLENS
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ @author: Sam Cook MySql Parser for graphical presentation """ import mysql.connector import datetime from mysql.connector import Error from datetime import datetime, timedelta import json class sql_graph_info(): def __init__(self, node, interface, time, sql_creds, db): """ ...
34.71028
72
0.53608
430
3,714
4.423256
0.3
0.037855
0.053628
0.063091
0.120925
0.120925
0.014721
0
0
0
0
0.010915
0.358643
3,714
106
73
35.037736
0.787573
0.159666
0
0
0
0
0.117529
0.013022
0
0
0
0
0
1
0.027397
false
0.013699
0.068493
0
0.123288
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
0
0
1
0
bcca1a19ecd367ba4725d3ef774b347cae61be62
830
py
Python
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
scqubits/tests/test_fluxqubit.py
dmtvanzanten/scqubits
d4d8a0f71ac91077594a6173348279aa490ed048
[ "BSD-3-Clause" ]
null
null
null
# test_fluxqubit.py # meant to be run with 'pytest' # # This file is part of scqubits. # # Copyright (c) 2019 and later, Jens Koch and Peter Groszkowski # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. ...
28.62069
76
0.622892
110
830
4.590909
0.663636
0.039604
0
0
0
0
0
0
0
0
0
0.024578
0.215663
830
28
77
29.642857
0.751152
0.360241
0
0
0
0
0.083333
0
0
0
0
0
0
1
0.076923
false
0
0.230769
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcca9310b776373045a4dd0e28575a2063a3d591
1,379
py
Python
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
PhysicsTools/PatAlgos/python/producersLayer1/pfParticleProducer_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms patPFParticles = cms.EDProducer("PATPFParticleProducer", # General configurables pfCandidateSource = cms.InputTag("noJet"), # MC matching configurables addGenMatch = cms.bool(False), genParticleMatch = cms.InputTag(""), ## particles source to be used for ...
29.340426
106
0.585207
135
1,379
5.977778
0.555556
0.060719
0.05948
0.064436
0.123916
0.123916
0
0
0
0
0
0
0.315446
1,379
46
107
29.978261
0.854873
0.29079
0
0.333333
0
0
0.027168
0.021944
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
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
0
0
1
0
bccb37cf2799cc964344db7c5cf679594dae2889
2,252
py
Python
tests/test_api.py
ines/spacy-js
5b7a86cb0d1099285e01252f7e1d44a36ad9a07f
[ "MIT" ]
141
2018-10-27T17:18:54.000Z
2022-03-31T11:08:02.000Z
tests/test_api.py
Fabulabs/spacy-js
c7a34298203d26b25f9eb1f6b9eb875faa33d144
[ "MIT" ]
16
2018-10-27T21:44:36.000Z
2022-01-22T03:01:54.000Z
tests/test_api.py
Fabulabs/spacy-js
c7a34298203d26b25f9eb1f6b9eb875faa33d144
[ "MIT" ]
22
2019-01-12T16:38:20.000Z
2022-03-14T19:11:38.000Z
# coding: utf8 from __future__ import unicode_literals import pytest import spacy import json from api.server import parse, doc2json, load_model @pytest.fixture(scope="session") def model(): return "en_core_web_sm" @pytest.fixture(scope="session") def text(): return "This is a sentence about Facebook. Thi...
27.463415
68
0.654085
330
2,252
4.321212
0.193939
0.105189
0.063815
0.070126
0.28892
0.130435
0.051893
0
0
0
0
0.017214
0.174512
2,252
81
69
27.802469
0.749866
0.005329
0
0.133333
0
0
0.143878
0
0
0
0
0
0.433333
1
0.15
false
0
0.083333
0.066667
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
bcccafa97336dc1ded4587f29664425a01e6d815
28,365
py
Python
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
1
2019-12-02T02:31:25.000Z
2019-12-02T02:31:25.000Z
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
null
null
null
python/GafferArnold/ArnoldTextureBake.py
medubelko/gaffer
12c5994c21dcfb8b13b5b86efbcecdcb29202b33
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2018, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
47.196339
175
0.692649
2,883
28,365
6.627818
0.212973
0.035797
0.013921
0.014287
0.211325
0.157159
0.10001
0.066517
0.05673
0.05673
0
0.003247
0.142323
28,365
600
176
47.275
0.782185
0.136224
0
0.069264
0
0
0.360552
0.056976
0
0
0
0
0
1
0.008658
false
0
0.038961
0
0.056277
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
0
0
1
0
bccd1fa8fe336f245d1474aeb673c6c021c08a1b
20,598
py
Python
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/protocols/generator/common.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
35.636678
151
0.646373
2,533
20,598
5.006317
0.154757
0.019399
0.030282
0.027206
0.408485
0.332702
0.285388
0.262676
0.216781
0.193045
0
0.003535
0.258326
20,598
577
152
35.69844
0.826537
0.289785
0
0.230321
0
0.011662
0.149911
0.041137
0
0
0
0
0
1
0.061224
false
0
0.052478
0
0.169096
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
0
0
1
0
bccd22c451ca48a6b2b63fe4d46e6f3d5177271f
12,177
py
Python
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
tests/unit/python/foglamp/services/core/api/test_backup_restore.py
vaibhav-ScaleDB/FogLAMP
445e7a588f5ec5fcae0360b49fdc4e4de0ea2ec8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import os import asyncio import json from unittest.mock import MagicMock, patch from collections import Counter from aiohttp import web import pytest from foglamp.services.core import routes from foglamp.services.core import ...
46.834615
123
0.635214
1,398
12,177
5.334049
0.139485
0.030173
0.046265
0.035403
0.747351
0.686335
0.642484
0.606812
0.525412
0.525412
0
0.021977
0.241439
12,177
259
124
47.015444
0.78532
0.016753
0
0.400922
0
0
0.195283
0.030693
0
0
0
0
0.170507
1
0.018433
false
0
0.064516
0
0.119816
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
0
0
1
0
bccd4ecf3e75810f078465ed5395ba34d886f56a
3,690
py
Python
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
6
2021-10-21T14:13:25.000Z
2021-12-26T12:22:51.000Z
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
pyemits/core/preprocessing/dimensional_reduction.py
thompson0012/PyEmits
9cb6fbf27ca7e8952ed5aca26118055e04492c23
[ "Apache-2.0" ]
null
null
null
""" Why need dimensional reduction The following is the use of dimensionality reduction in the data set: • As data dimensions continue to decrease, the space required for data storage will also decrease. • Low-dimensional data helps reduce calculation/training time. • Some algorithms tend to perform poorly on high-dim...
30.495868
217
0.714363
453
3,690
5.743929
0.403974
0.069946
0.076864
0.066872
0.219831
0.029208
0
0
0
0
0
0.010186
0.228455
3,690
120
218
30.75
0.902002
0.389431
0
0.356164
0
0
0.001337
0
0
0
0
0
0
1
0.178082
false
0
0.164384
0.054795
0.561644
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
0
0
1
0
bccea585927cd051fb0a3ed4b33c0aada5c1d9b8
456
py
Python
sample_project/exam/exam.py
pcse/gitlab_tools
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
[ "BSD-3-Clause" ]
null
null
null
sample_project/exam/exam.py
pcse/gitlab_tools
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
[ "BSD-3-Clause" ]
null
null
null
sample_project/exam/exam.py
pcse/gitlab_tools
2896b636b0f8955bdb5f2236e257cc5d3efd54d7
[ "BSD-3-Clause" ]
1
2022-03-17T16:51:08.000Z
2022-03-17T16:51:08.000Z
""" These methods can be called inside WebCAT to determine which tests are loaded for a given section/exam pair. This allows a common WebCAT submission site to support different project tests """ def section(): # Instructor section (instructor to change before distribution) #return 8527 #return 8528 r...
25.333333
78
0.723684
64
456
5.15625
0.625
0.10303
0.109091
0
0
0
0
0
0
0
0
0.033708
0.219298
456
17
79
26.823529
0.893258
0.782895
0
0
0
0
0.011494
0
0
0
0
0
0
1
0.5
true
0
0
0.5
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
4
bccf9e77bf6eaccd18d5b5a8053e3859146a0272
2,727
py
Python
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
scrapy/clarinetear/spiders/pagina12.py
ramiror/clarinete
4ebf37cf9f705e04e2aad15015be12c48fe25fd3
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime import scrapy import lxml from lxml.html.clean import Cleaner import re SOURCE = 'Página 12' LANGUAGE = 'es' cleaner = Cleaner(allow_tags=['p', 'br', 'b', 'a', 'strong', 'i', 'em']) class Pagina12Spider(scrapy.Spider): name = 'pagina12' allowed_domains = ['www.pagina12.com.ar'] ...
32.855422
104
0.521819
316
2,727
4.443038
0.417722
0.017094
0.029915
0.034188
0.145299
0.082621
0.082621
0.082621
0.082621
0.082621
0
0.021727
0.324899
2,727
82
105
33.256098
0.740902
0
0
0.083333
0
0.013889
0.181885
0.020902
0
0
0
0
0
1
0.041667
false
0
0.069444
0
0.180556
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
0
0
1
0
bccfcca536c98cf3954ec419341b10079911dafc
6,978
py
Python
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
svd.py
christyc14/fyp
c63e719e383a84eb49ffa0c8bd901bfd4aef5864
[ "MIT" ]
null
null
null
from calendar import c from typing import Dict, List, Union from zlib import DEF_BUF_SIZE import json_lines import numpy as np import re from sklearn.preprocessing import MultiLabelBinarizer from sklearn.manifold import TSNE from sklearn.preprocessing import StandardScaler import pandas as pd import json from scipy.spa...
38.131148
111
0.655775
894
6,978
4.894855
0.285235
0.045247
0.029708
0.028793
0.208181
0.208181
0.15585
0.134369
0.134369
0.134369
0
0.011025
0.207079
6,978
182
112
38.340659
0.779866
0.033104
0
0.139241
0
0.006329
0.126391
0.021213
0
0
0
0
0
1
0.018987
false
0
0.094937
0
0.132911
0.094937
0
0
0
null
0
0
0
0
0
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
1
0
bccff1b3d6077ecdb8e86f1fedd69c5761247393
22,448
py
Python
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
null
null
null
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
null
null
null
esp32/tools/flasher.py
rodgergr/pycom-micropython-sigfox
50a31befc40a39b1e4c3513f20da968792227b0e
[ "MIT" ]
1
2019-09-22T01:28:52.000Z
2019-09-22T01:28:52.000Z
#!/usr/bin/env python # # Copyright (c) 2018, Pycom Limited. # # This software is licensed under the GNU GPL version 3 or any # later version, with permitted additional terms. For more information # see the Pycom Licence v1.0 document supplied with this file, or # available at https://www.pycom.io/opensource/licensing ...
42.116323
286
0.513587
2,506
22,448
4.442538
0.135674
0.082997
0.084074
0.039522
0.659481
0.625438
0.589149
0.552052
0.521513
0.51262
0
0.012657
0.30662
22,448
532
287
42.195489
0.702602
0.07239
0
0.608076
0
0.004751
0.252345
0.097041
0
0
0.002357
0
0
1
0.030879
false
0
0.054632
0.002375
0.087886
0.180523
0
0
0
null
0
0
0
0
0
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
1
0
bccff8756b8fd9c49c849a5ee7e86c1a5271fe95
2,315
py
Python
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
hknweb/events/tests/models/utils.py
jyxzhang/hknweb
a01ffd8587859bf63c46213be6a0c8b87164a5c2
[ "MIT" ]
null
null
null
import datetime from django.utils import timezone from django.contrib.auth.models import User from hknweb.events.models import Event, EventType, Rsvp class ModelFactory: @staticmethod def create_user(**kwargs): default_kwargs = { "username": "default username", } kwargs =...
28.9375
88
0.581425
234
2,315
5.508547
0.226496
0.069822
0.081458
0.096199
0.280838
0.183863
0.152832
0
0
0
0
0.003149
0.314039
2,315
79
89
29.303797
0.808564
0
0
0.179104
0
0
0.085097
0
0
0
0
0
0
1
0.074627
false
0
0.059701
0
0.223881
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
0
0
1
0
bcd088f1e5c34ccfa8be8350d7cb0a6ebc06a38b
4,979
py
Python
HealthNet/prescriptions/views.py
jimga150/HealthNet
84e55302b02221ae6e93640904af837fdfe09a83
[ "MIT" ]
null
null
null
HealthNet/prescriptions/views.py
jimga150/HealthNet
84e55302b02221ae6e93640904af837fdfe09a83
[ "MIT" ]
null
null
null
HealthNet/prescriptions/views.py
jimga150/HealthNet
84e55302b02221ae6e93640904af837fdfe09a83
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from .forms import PrescriptionForm from core.views import is_doctor, is_nurse, is_admin, is_patient from core.models import * from .models import Prescription from django.contrib.auth.decorators import login_required, user_passes_test from django.utils import timezone from dja...
33.193333
119
0.69753
612
4,979
5.537582
0.236928
0.030688
0.025081
0.033933
0.238713
0.179994
0.179994
0.179994
0.167896
0.156388
0
0
0.207672
4,979
149
120
33.416107
0.859062
0.228962
0
0.240506
0
0
0.096651
0.026409
0
0
0
0
0
1
0.088608
false
0.063291
0.113924
0
0.316456
0.025316
0
0
0
null
0
0
0
0
0
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
bcd22bd32e41749d160e83a36693fbb03e02a7c0
2,232
py
Python
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
1
2020-12-02T13:54:30.000Z
2020-12-02T13:54:30.000Z
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
algorithms/329. Longest Increasing Path in a Matrix.py
woozway/py3-leetcode
e51a9ce7a6bb3e35c0fcb8c8f4f6cd5763708dbf
[ "MIT" ]
null
null
null
""" 1. Clarification 2. Possible solutions - dfs + memoization - Topological sort 3. Coding 4. Tests """ # T=O(m*n), S=O(m*n) from functools import lru_cache class Solution: DIRS = [(-1, 0), (1, 0), (0, -1), (0, 1)] def longestIncreasingPath(self, matrix: List[List[int]]) -> int: if not mat...
30.162162
111
0.471774
283
2,232
3.706714
0.222615
0.114395
0.011439
0.025739
0.5796
0.5796
0.5796
0.5796
0.480458
0.480458
0
0.029696
0.396505
2,232
73
112
30.575342
0.749072
0.064068
0
0.510204
0
0
0
0
0
0
0
0
0
1
0.061224
false
0
0.020408
0
0.265306
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
0
0
1
0
bcd344e1483580a8d86580469eef57c0ac31bfc7
1,511
py
Python
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
898
2020-01-09T12:03:08.000Z
2022-03-31T07:59:46.000Z
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
172
2020-02-21T08:56:42.000Z
2021-05-12T03:18:40.000Z
cocos2d/tools/coding-style/tailing-spaces.py
NIKEA-SOFT/TestGame
04f13e5f1324bca9f1e47f02037ea1eddd3bcc8f
[ "MIT" ]
186
2020-01-13T09:34:30.000Z
2022-03-22T04:48:48.000Z
#!/usr/bin/env python #coding=utf-8 ''' Remove tailing whitespaces and ensures one and only one empty ending line. ''' import os, re def scan(*dirs, **kwargs): files = [] extensions = kwargs['extensions'] if kwargs.has_key('extensions') else None excludes = kwargs['excludes'] if kwargs.has_key('excludes') else...
24.370968
85
0.608868
221
1,511
4.126697
0.40724
0.065789
0.076754
0.092105
0
0
0
0
0
0
0
0.003376
0.215751
1,511
61
86
24.770492
0.766245
0.070814
0
0
0
0
0.107527
0
0
0
0
0
0
1
0.093023
false
0
0.023256
0
0.139535
0.046512
0
0
0
null
0
0
0
0
0
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
1
0
bcd3b0b0dedcabbec5fd0840549ab45783c9eb2d
4,096
py
Python
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
three.py/TestPostprocessing-8Bit.py
Michael-Pascale/three.py
9912f5f850245fb9456a25b6737e12290ae54a2d
[ "MIT" ]
null
null
null
from core import * from cameras import * from geometry import * from material import * from lights import * class TestPostprocessing2(Base): def initialize(self): self.setWindowTitle('Pixellation and Reduced Color Palette') self.setWindowSize(1024,768) self.renderer = Rendere...
32
99
0.577148
430
4,096
5.490698
0.351163
0.012706
0.015248
0.015248
0.109276
0.102499
0.076239
0.04659
0.04659
0.04659
0
0.043325
0.306885
4,096
127
100
32.251969
0.788306
0.062012
0
0.045455
0
0
0.324465
0.016954
0
0
0
0
0
1
0.022727
false
0
0.056818
0
0.102273
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
0
0
1
0
bcd3c580510f803674768f898ad9016345f92071
3,027
py
Python
scripts/test_cache_size_vs_code_balance.py
tareqmalas/girih
0c126788937d189147be47115703b752235e585c
[ "BSD-3-Clause" ]
7
2015-07-14T08:29:14.000Z
2021-07-30T14:53:13.000Z
scripts/test_cache_size_vs_code_balance.py
tareqmalas/girih
0c126788937d189147be47115703b752235e585c
[ "BSD-3-Clause" ]
null
null
null
scripts/test_cache_size_vs_code_balance.py
tareqmalas/girih
0c126788937d189147be47115703b752235e585c
[ "BSD-3-Clause" ]
3
2016-08-30T01:25:40.000Z
2017-06-22T05:50:05.000Z
#!/usr/bin/env python def igs_test(target_dir, exp_name, th, group='', dry_run=0): from scripts.conf.conf import machine_conf, machine_info from scripts.utils import run_test import itertools cs = 8192 th = th # Test using rasonable time # T = scale * size / perf # scale = T*perf/size desired_time...
31.863158
218
0.573835
546
3,027
2.981685
0.272894
0.015971
0.016585
0.014742
0.207617
0.140049
0.136364
0.095209
0.070639
0
0
0.102475
0.239181
3,027
94
219
32.202128
0.604429
0.072019
0
0.109375
0
0
0.094353
0.028592
0
0
0.00143
0
0
0
null
null
0
0.109375
null
null
0.015625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bcd4aa69ca55232166dab3fedc825cb402a37789
654
py
Python
generate/lib/run-firefox/firefox_runner.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
102
2015-01-09T22:12:00.000Z
2021-04-21T01:18:51.000Z
generate/lib/run-firefox/firefox_runner.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
17
2015-01-24T22:30:47.000Z
2020-11-19T01:13:32.000Z
generate/lib/run-firefox/firefox_runner.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
33
2015-01-15T16:11:15.000Z
2021-06-11T12:15:29.000Z
import os import shutil import codecs import json from cuddlefish.runner import run_app from cuddlefish.rdf import RDFManifest def run(): original_harness_options = os.path.join('development', 'firefox', 'harness-options.json') backup_harness_options = os.path.join('development', 'firefox', 'harness-options-bak.jso...
28.434783
92
0.785933
88
654
5.613636
0.409091
0.226721
0.060729
0.12753
0.311741
0.311741
0.311741
0.226721
0.226721
0
0
0.001706
0.103976
654
22
93
29.727273
0.841297
0
0
0
0
0
0.166667
0.036697
0
0
0
0
0
1
0.055556
false
0
0.333333
0
0.388889
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
bcd52639c509cc2628a1148eef258524825f4528
8,408
py
Python
pyripple/protocol/orderbook.py
gip/pyripple
d0c696bed7c6ad4c2309733484f9915074f9acdd
[ "Apache-2.0" ]
null
null
null
pyripple/protocol/orderbook.py
gip/pyripple
d0c696bed7c6ad4c2309733484f9915074f9acdd
[ "Apache-2.0" ]
null
null
null
pyripple/protocol/orderbook.py
gip/pyripple
d0c696bed7c6ad4c2309733484f9915074f9acdd
[ "Apache-2.0" ]
null
null
null
# PyRipple # # Copyright 2015 Gilles Pirio # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.20354
154
0.593958
1,142
8,408
4.335377
0.21366
0.014543
0.012927
0.017774
0.286811
0.226621
0.2143
0.172288
0.172288
0.140982
0
0.027131
0.228473
8,408
225
155
37.368889
0.736088
0.070171
0
0.177083
0
0
0.11526
0
0
0
0
0
0.005208
0
null
null
0
0.036458
null
null
0.036458
0
0
0
null
0
0
0
0
0
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
bcd61a8f67cde91f10cbb1a9264485fd9ef2e8b8
3,205
py
Python
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
myvenv/lib/python3.6/site-packages/nltk/test/unit/test_senna.py
catb0y/twitter_feeling
9092a26f2554bbf6b14b33d797abaffa48cda99c
[ "MIT" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
# -*- coding: utf-8 -*- """ Unit tests for Senna """ from __future__ import unicode_literals from os import environ, path, sep import logging import unittest from nltk.classify import Senna from nltk.tag import SennaTagger, SennaChunkTagger, SennaNERTagger # Set Senna executable path for tests if it is not specifie...
42.733333
108
0.597504
397
3,205
4.685139
0.287154
0.080645
0.08172
0.040323
0.282796
0.188172
0.188172
0.188172
0.188172
0.121505
0
0.01018
0.20312
3,205
74
109
43.310811
0.718089
0.067083
0
0.153846
0
0
0.219825
0.00708
0
0
0
0
0.115385
1
0.076923
false
0
0.115385
0
0.230769
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
0
0
1
0
bcd716fdc72869755eef1e517937f6675edfef9d
8,191
py
Python
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
25
2015-08-10T19:34:34.000Z
2021-02-05T08:28:01.000Z
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
153
2015-01-20T08:35:49.000Z
2022-03-16T11:00:56.000Z
eoxserver/services/opensearch/v11/description.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
10
2015-01-23T15:48:30.000Z
2021-01-21T15:41:18.000Z
#------------------------------------------------------------------------------- # # Project: EOxServer <http://eoxserver.org> # Authors: Fabian Schindler <fabian.schindler@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2015 EOX IT Services GmbH # # Permission...
37.746544
81
0.580393
827
8,191
5.654172
0.307134
0.016467
0.011976
0.019889
0.078914
0.037211
0
0
0
0
0
0.006554
0.29215
8,191
216
82
37.921296
0.799931
0.18911
0
0.093168
0
0
0.118031
0.018077
0
0
0
0
0
1
0.031056
false
0
0.074534
0
0.149068
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
0
0
1
0
bcd88cb9aee8377371dcb96cf615ef4e2ec10580
4,113
py
Python
exercises/level_0/stringing.py
eliranM98/python_course
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
[ "MIT" ]
6
2019-03-29T06:14:53.000Z
2021-10-15T23:42:36.000Z
exercises/level_0/stringing.py
eliranM98/python_course
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
[ "MIT" ]
4
2019-09-06T10:03:40.000Z
2022-03-11T23:30:55.000Z
exercises/level_0/stringing.py
eliranM98/python_course
d9431dd6c0f27fca8ca052cc2a821ed0b883136c
[ "MIT" ]
12
2019-06-20T19:34:52.000Z
2021-10-15T23:42:39.000Z
text = ''' Victor Hugo's ({}) tale of injustice, heroism and love follows the fortunes of Jean Valjean, an escaped convict determined to put his criminal past behind him. But his attempts to become a respected member of the community are constantly put under threat: by his own conscience, when, owing to a case of mista...
41.545455
590
0.735959
680
4,113
4.295588
0.310294
0.054776
0.061623
0.054776
0.093461
0.068127
0.046217
0.046217
0.046217
0.046217
0
0.026237
0.110382
4,113
98
591
41.969388
0.771796
0
0
0
0
0.033708
0.490396
0.029176
0
0
0
0
0
1
0
false
0
0
0
0
0.438202
0
0
0
null
0
0
0
0
0
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
bcda0fb17ff31d81f09ba63207547e8568fa2ae6
2,085
py
Python
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
lab1/text_recognizer/models/mlp.py
Agyey/fsdl-text-recognizer-2021-labs
4bd85042ab9f6decd78849bb655c197cc13ffc11
[ "MIT" ]
null
null
null
from typing import Any, Dict import argparse import numpy as np import torch import torch.nn as nn import torch.nn.functional as F FC1_DIM = 1024 FC2_DIM = 128 class MLP(nn.Module): """Simple MLP suitable for recognizing single characters.""" def __init__( self, data_config: Dict[str, Any],...
29.366197
95
0.533813
284
2,085
3.788732
0.285211
0.018587
0.033457
0.033457
0.139405
0.072491
0.072491
0.072491
0.072491
0.072491
0
0.034207
0.341007
2,085
70
96
29.785714
0.748908
0.025899
0
0.135593
0
0
0.02321
0
0
0
0
0
0
1
0.050847
false
0
0.101695
0
0.20339
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
0
0
1
0
bcda1861cc6349c05142c05367f155b32d44ad1c
979
py
Python
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
null
null
null
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
2
2019-10-05T14:20:11.000Z
2019-10-05T14:22:31.000Z
frontend/widgets/button.py
AzoeDesarrollos/PyMavisDatabase
bfcd0557f63a4d8a73f0f8e891c47b47a1de1b45
[ "MIT" ]
null
null
null
from pygame import Surface, font from .basewidget import BaseWidget from frontend import Renderer, WidgetHandler class Button(BaseWidget): action = None def __init__(self, x, y, texto, action=None): self.f = font.SysFont('Verdana', 16) imagen = self.crear(texto) rect = imagen.get_rect...
27.971429
74
0.592441
133
979
4.263158
0.406015
0.042328
0.045855
0.049383
0
0
0
0
0
0
0
0.058156
0.279877
979
34
75
28.794118
0.746099
0
0
0
0
0
0.00715
0
0
0
0
0
0
1
0.185185
false
0.037037
0.111111
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bcda32ab85ecef62e60d41fc5f944271b774ca47
709
py
Python
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
null
null
null
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
null
null
null
tensorflow_rnn/mnist_lstm.py
naoki009/samples
dac3bbddbd06374c39768cbe17fefd0110fe316f
[ "BSD-2-Clause" ]
1
2020-08-14T11:44:42.000Z
2020-08-14T11:44:42.000Z
import numpy as np import tensorflow as tf """ Do an MNIST classification line by line by LSTM """ (x_train, y_train), \ (x_test, y_test) = tf.keras.datasets.mnist.load_data() x_train, x_test = x_train/255.0, x_test/255.0 model = tf.keras.Sequential() model.add(tf.keras.layers.LSTM(128, input_shape=(None, 28))) ...
27.269231
67
0.70945
108
709
4.509259
0.481481
0.100616
0.082136
0.123203
0.172485
0
0
0
0
0
0
0.03437
0.138223
709
25
68
28.36
0.762684
0.066291
0
0
0
0
0.029752
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
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
0
0
1
0
bcdd9f6e351b12352ead172914df612d99371de2
984
py
Python
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
scrap/CloudCoverUndersampling.py
cseale/kaggle-amazon-rainforests
cf42941bb3c70ba19257764b66fe33550be88e0b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # In[1]: import numpy as np import pandas as pd import os from random import shuffle from tqdm import tqdm DATA_DIR = '../input/amazon/' TRAIN_TIF_DIR = DATA_DIR + 'train-tif/' TRAIN_CSV = DATA_DIR + 'train.csv' TEST_TIF_DIR = DATA_DIR + 'test-tif/' IMG_SIZE = 100 LR = 1e-3 MODEL_NAME = 'amazon=-{...
20.93617
83
0.690041
168
984
3.845238
0.434524
0.198142
0.102167
0.123839
0.123839
0.086687
0.086687
0.086687
0
0
0
0.036188
0.15752
984
46
84
21.391304
0.743064
0.087398
0
0
0
0
0.114478
0
0
0
0
0
0
1
0
false
0
0.185185
0
0.185185
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
0
0
1
0
bcddbefe85e0c400583bdfd288157408fcf8f518
11,271
py
Python
rpython/translator/platform/posix.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/translator/platform/posix.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/translator/platform/posix.py
wdv4758h/mu-client-pypy
d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf
[ "Apache-2.0", "OpenSSL" ]
null
null
null
"""Base support for POSIX-like platforms.""" import py, os, sys from rpython.translator.platform import Platform, log, _run_subprocess import rpython rpydir = str(py.path.local(rpython.__file__).join('..')) class BasePosix(Platform): exe_ext = '' make_cmd = 'make' relevant_environ = ('CPATH', 'LIBRARY_...
36.009585
130
0.53021
1,322
11,271
4.350227
0.196672
0.019475
0.018258
0.011824
0.113719
0.061902
0.041732
0.010433
0
0
0
0.000927
0.329784
11,271
312
131
36.125
0.760392
0.035933
0
0.11811
0
0.007874
0.11812
0.009157
0
0
0
0
0.011811
0
null
null
0.003937
0.019685
null
null
0.011811
0
0
0
null
0
0
0
0
0
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
bcde4233b8d9a36e066c7f656e904c7a4e46422b
3,247
py
Python
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
16
2018-02-06T14:43:41.000Z
2021-01-23T05:07:33.000Z
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
null
null
null
chintai-scrape/A001_parse_htmls.py
GINK03/itmedia-scraping
5afbe06dd0aa12db1694a2b387aa2eeafb20e981
[ "MIT" ]
4
2018-01-16T13:50:43.000Z
2019-12-16T19:45:54.000Z
import glob import bs4 import gzip import pickle import re import os from concurrent.futures import ProcessPoolExecutor as PPE import json from pathlib import Path from hashlib import sha256 import shutil Path('json').mkdir(exist_ok=True) def sanitize(text): text = re.sub(r'(\t|\n|\r)', '', text) text = re.s...
36.077778
158
0.55559
450
3,247
3.917778
0.297778
0.045944
0.054453
0.039705
0.263188
0.142938
0.052184
0
0
0
0
0.008959
0.278103
3,247
89
159
36.483146
0.743174
0.140437
0
0.081081
0
0
0.085252
0.007914
0
0
0
0
0
1
0.040541
false
0
0.162162
0
0.243243
0.040541
0
0
0
null
0
0
0
0
0
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
1
0
bcde81a6deec0252f40277dde895c56c9a4836eb
5,047
py
Python
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
ricardolsmendes/datacatalog-connectors-hive
9e71588133c0b0227e789c8d6bb26cfa031d2cfb
[ "Apache-2.0" ]
19
2020-04-27T21:55:47.000Z
2022-03-22T19:45:14.000Z
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
ricardolsmendes/datacatalog-connectors-hive
9e71588133c0b0227e789c8d6bb26cfa031d2cfb
[ "Apache-2.0" ]
12
2020-05-28T14:48:29.000Z
2022-01-15T17:52:09.000Z
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/scrape/metadata_scraper.py
mesmacosta/datacatalog-connectors-hive
ab7e49fbef8599dd9053c2260b261ce01f510a47
[ "Apache-2.0" ]
15
2020-05-03T17:25:51.000Z
2022-01-11T22:10:35.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
37.385185
79
0.656628
563
5,047
5.520426
0.248668
0.074003
0.040541
0.040541
0.211068
0.070463
0.038932
0.027027
0
0
0
0.002118
0.251437
5,047
134
80
37.664179
0.82054
0.12443
0
0.065217
0
0
0.089257
0.017488
0
0
0
0
0
1
0.086957
false
0
0.021739
0
0.141304
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
0
0
1
0
bcded4531d60ca947d6fb59affac50e25540dcfc
7,490
py
Python
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
aviary/roost/data.py
sxie22/aviary
74b87eee86067f69af6e5b86bd12fca2202c4de5
[ "MIT" ]
null
null
null
import functools import json from os.path import abspath, dirname, exists, join from typing import Dict, Sequence import numpy as np import pandas as pd import torch from pymatgen.core import Composition from torch.utils.data import Dataset class CompositionData(Dataset): def __init__( self, df: ...
33.738739
100
0.607076
960
7,490
4.517708
0.214583
0.037353
0.029052
0.029052
0.198063
0.110906
0.076089
0.061794
0.048421
0.031358
0
0.009901
0.298798
7,490
221
101
33.891403
0.81588
0.338451
0
0.017699
0
0
0.090372
0.008096
0
0
0
0
0.044248
1
0.035398
false
0
0.079646
0.00885
0.150442
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
0
0
1
0
bcdf1f594847bcd658c78df9bc4bf018e0d729b0
201
py
Python
tests/test_util.py
danqing/dqpy
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
[ "MIT" ]
null
null
null
tests/test_util.py
danqing/dqpy
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
[ "MIT" ]
25
2018-05-22T15:59:37.000Z
2020-02-14T08:08:24.000Z
tests/test_util.py
danqing/dqpy
f296341adb0dbbfb361eaf8b815b0ffd189ebf58
[ "MIT" ]
null
null
null
import unittest from dq import util class TestUtil(unittest.TestCase): def test_safe_cast(self): assert util.safe_cast('1', int) == 1 assert util.safe_cast('meow', int, 2) == 2
18.272727
50
0.656716
30
201
4.266667
0.6
0.1875
0.21875
0.28125
0
0
0
0
0
0
0
0.025641
0.223881
201
10
51
20.1
0.794872
0
0
0
0
0
0.024876
0
0
0
0
0
0.333333
1
0.166667
false
0
0.333333
0
0.666667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bce0bfd9222f594d713d4743ed32c26bb4279c4c
1,483
py
Python
check_perm.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
check_perm.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
check_perm.py
codecakes/random_games
1e670021ec97a196726e937e658878dc63ba9d34
[ "MIT" ]
null
null
null
""" PermCheck Check whether array A is a permutation. https://codility.com/demo/results/demoANZ7M2-GFU/ Task description A non-empty zero-indexed array A consisting of N integers is given. A permutation is a sequence containing each element from 1 to N once, and only once. For example, array A such that: A[0] = 4...
27.981132
123
0.662171
285
1,483
3.424561
0.329825
0.061475
0.032787
0.057377
0.25
0.229508
0.229508
0.110656
0.110656
0.110656
0
0.054916
0.238705
1,483
53
124
27.981132
0.809566
0.864464
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1