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
6f11a287519a38fcf82e8d66f617304a1a4f570b
688
py
Python
setup.py
wgnet/grail
1d8d22bebda758800cb9aa9027486053d568bc14
[ "Apache-2.0" ]
37
2015-01-12T07:34:34.000Z
2020-12-29T09:46:28.000Z
setup.py
wgnet/grail
1d8d22bebda758800cb9aa9027486053d568bc14
[ "Apache-2.0" ]
7
2015-04-10T14:55:34.000Z
2021-04-28T10:00:47.000Z
setup.py
wgnet/grail
1d8d22bebda758800cb9aa9027486053d568bc14
[ "Apache-2.0" ]
17
2015-01-06T20:09:02.000Z
2019-06-28T08:57:36.000Z
from setuptools import setup version = '1.0.10' setup( name='grail', version=version, classifiers=[ 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', ], packages=[ ...
28.666667
111
0.640988
80
688
5.45
0.825
0.087156
0.114679
0
0
0
0
0
0
0
0
0.011583
0.247093
688
23
112
29.913043
0.830116
0
0
0.095238
0
0
0.547965
0.036337
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
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
6f123e344c537798141dc193f3e6368ab0209301
964
py
Python
tests/test_free.py
qingyunha/boltdb
2ea341336f02210f751cd49ea7724d890511db38
[ "MIT" ]
7
2020-11-18T10:06:47.000Z
2021-09-06T16:31:13.000Z
tests/test_free.py
qingyunha/boltdb
2ea341336f02210f751cd49ea7724d890511db38
[ "MIT" ]
1
2021-02-20T19:32:11.000Z
2021-02-20T19:32:11.000Z
tests/test_free.py
qingyunha/boltdb
2ea341336f02210f751cd49ea7724d890511db38
[ "MIT" ]
2
2020-11-25T15:21:20.000Z
2021-02-20T19:28:14.000Z
import os import unittest import tempfile from boltdb import BoltDB class TestFree(unittest.TestCase): def setUp(self): self.db = BoltDB(tempfile.mktemp()) def tearDown(self): os.unlink(self.db.filename) def test_free(self): with self.db.update() as tx: b = tx.bucke...
24.717949
61
0.551867
134
964
3.955224
0.276119
0.124528
0.075472
0.120755
0.573585
0.573585
0.573585
0.573585
0.573585
0.573585
0
0.01173
0.292531
964
38
62
25.368421
0.765396
0
0
0.428571
0
0
0.024896
0
0
0
0
0
0.178571
1
0.142857
false
0
0.142857
0
0.321429
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
6f162b9d147aaaf9aa9b58f1a839359e4e0bcd22
9,024
py
Python
nlp_fourier.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
1
2020-08-03T16:24:06.000Z
2020-08-03T16:24:06.000Z
nlp_fourier.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
null
null
null
nlp_fourier.py
neitzke/stokes-numerics
8845aef7598ca245d095cca690bf48568758a8c9
[ "MIT" ]
null
null
null
"""Fourier transform non-linear Poisson solver""" # This module is concerned with solving the "non-linear Poisson" # equation # Delta(u) = f(u,z) # on a uniform rectangular mesh, with u = u0 on the boundary. # # We solve the equation by an iterative method, solving an # approximation to the linearized equation at ...
38.729614
176
0.623559
1,355
9,024
4.076753
0.288561
0.043447
0.019913
0.015206
0.098841
0.081644
0.078023
0.05449
0.038559
0.038559
0
0.025255
0.271609
9,024
232
177
38.896552
0.815153
0.446254
0
0.021277
0
0.010638
0.099534
0
0
0
0
0.00431
0
1
0.106383
false
0
0.074468
0.010638
0.287234
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
6f18b3824b6daec3cd5fa315168eff3f33823b3f
24,236
py
Python
qatrack/qa/migrations/0001_initial.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/qa/migrations/0001_initial.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/qa/migrations/0001_initial.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models import django.utils.timezone import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('auth', '0006_require_conte...
74.572308
469
0.637523
2,784
24,236
5.391164
0.136853
0.029849
0.031714
0.034979
0.605503
0.562129
0.517623
0.474649
0.443734
0.424612
0
0.004926
0.22937
24,236
324
470
74.802469
0.798683
0.000866
0
0.451104
0
0.015773
0.308305
0.021641
0
0
0
0
0
1
0
false
0.009464
0.012618
0
0.022082
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
6f1b13d2e45c97356d3de371d486f2f4c6321a9d
746
py
Python
cloudygram_api_server/models/telethon_model.py
Maverick1983/cloudygram-api-server
acb0b0ed173ebfff8b1a2b69efef3abe943e735e
[ "Unlicense" ]
2
2021-05-25T15:24:03.000Z
2021-05-27T09:35:56.000Z
cloudygram_api_server/models/telethon_model.py
skurob/cgas
7660064882c5d5e56dbc4aa7e5be99754ffdcfd6
[ "Unlicense" ]
1
2021-05-27T08:32:55.000Z
2021-05-27T10:02:35.000Z
cloudygram_api_server/models/telethon_model.py
skurob/cgas
7660064882c5d5e56dbc4aa7e5be99754ffdcfd6
[ "Unlicense" ]
1
2021-06-03T10:06:49.000Z
2021-06-03T10:06:49.000Z
from .constants import SUCCESS_KEY, MESSAGE_KEY, DATA_KEY from cloudygram_api_server.scripts import CGMessage from typing import List class TtModels: @staticmethod def sing_in_failure(message) -> dict: return { SUCCESS_KEY : False, MESSAGE_KEY : message } @staticme...
25.724138
60
0.608579
80
746
5.4125
0.4375
0.092379
0.110855
0.110855
0.327945
0.327945
0.327945
0.327945
0.327945
0.327945
0
0
0.323056
746
28
61
26.642857
0.857426
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.12
false
0
0.12
0.08
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
6f1ed343bbac27b5996271e2bb652c962f6512bc
3,935
py
Python
michelanglo_api/ss_parser.py
matteoferla/MichelaNGLo-api
c00749d4b9385785f777bd6613ea8327381a3f38
[ "MIT" ]
1
2020-05-23T07:42:24.000Z
2020-05-23T07:42:24.000Z
michelanglo_api/ss_parser.py
matteoferla/MichelaNGLo-api
c00749d4b9385785f777bd6613ea8327381a3f38
[ "MIT" ]
null
null
null
michelanglo_api/ss_parser.py
matteoferla/MichelaNGLo-api
c00749d4b9385785f777bd6613ea8327381a3f38
[ "MIT" ]
null
null
null
from collections import namedtuple class SSParser: """ Create a SS block from PDB data. Written to be agnostic of PDB parser, but for now only has PyMOL. .. code-block:: python import pymol2 with pymol2.PyMOL() as pymol: pymol.cmd.load('model.pdb', 'prot') ss = ...
36.775701
99
0.516645
520
3,935
3.857692
0.303846
0.107677
0.048853
0.032901
0.327517
0.313559
0.301097
0.230309
0.195414
0.138584
0
0.021015
0.359085
3,935
106
100
37.122642
0.774385
0.271919
0
0.3125
0
0.078125
0.168148
0.052593
0
0
0
0
0
1
0.109375
false
0.015625
0.046875
0.015625
0.296875
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
6f1f6d17456ac645513cd747a8b58ba607f3346f
748
py
Python
Net640/apps/user_posts/mixin.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
1
2019-06-18T09:50:29.000Z
2019-06-18T09:50:29.000Z
Net640/apps/user_posts/mixin.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
10
2019-12-24T07:05:29.000Z
2022-02-10T07:42:44.000Z
Net640/apps/user_posts/mixin.py
86Ilya/net640kb
6724f3da3b678b637e0e776ee0d4953753ee2e05
[ "MIT" ]
null
null
null
from django.urls import reverse from Net640.settings import FRONTEND_DATE_FORMAT class AsDictMessageMixin: """ Mixin for representing user messages(post, comments) as dictionaries """ def as_dict(self, executor): return {'content': self.content, 'user_has_like': self.has_like(...
37.4
94
0.605615
84
748
5.190476
0.535714
0.073395
0.082569
0
0
0
0
0
0
0
0
0.007339
0.27139
748
19
95
39.368421
0.792661
0.090909
0
0
0
0
0.152338
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0.076923
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
6f1f734997fb69804fc6859e112a7faf8e27b40b
16,030
py
Python
squids/tfrecords/maker.py
mmgalushka/squids
2d6e1bbeb89721a2ff232a7031997111c600abb6
[ "MIT" ]
null
null
null
squids/tfrecords/maker.py
mmgalushka/squids
2d6e1bbeb89721a2ff232a7031997111c600abb6
[ "MIT" ]
37
2022-01-15T21:42:23.000Z
2022-02-23T23:43:31.000Z
squids/tfrecords/maker.py
mmgalushka/squids
2d6e1bbeb89721a2ff232a7031997111c600abb6
[ "MIT" ]
null
null
null
"""A module for converting a data source to TFRecords.""" import os import json import copy import csv from pathlib import Path from shutil import rmtree import PIL.Image as Image import tensorflow as tf from tqdm import tqdm from .feature import items_to_features from .errors import DirNotFoundError, InvalidDataset...
33.818565
80
0.564255
1,730
16,030
5.053179
0.179191
0.042324
0.020133
0.008236
0.356555
0.314688
0.294212
0.284832
0.241249
0.228781
0
0.005316
0.331067
16,030
473
81
33.890063
0.809941
0.36151
0
0.208
0
0
0.055246
0.002685
0
0
0
0
0
1
0.056
false
0
0.048
0
0.164
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
6f1fef78694338432a72024d0e2abb835ff193fd
5,335
py
Python
venv/KryptoSkattScript/mining_income.py
odgaard/KryptoSkatt
60338f25af2300b165738ceac033aae72969f7c5
[ "MIT" ]
null
null
null
venv/KryptoSkattScript/mining_income.py
odgaard/KryptoSkatt
60338f25af2300b165738ceac033aae72969f7c5
[ "MIT" ]
null
null
null
venv/KryptoSkattScript/mining_income.py
odgaard/KryptoSkatt
60338f25af2300b165738ceac033aae72969f7c5
[ "MIT" ]
null
null
null
import pathlib import datetime path = 'c:/Users/Jacob/PycharmProjects/KryptoSkatt/Data/' trans_in = list() trans_out = list() bitcoin_dict = dict() ethereum_dict = dict() USD_NOK_dict = dict() def unix_time_to_date(timestamp): return datetime.datetime.fromtimestamp(int(timestamp)).strftime('%Y-%m-%d') def popul...
37.307692
120
0.65567
785
5,335
4.22293
0.217834
0.038009
0.024133
0.045249
0.290799
0.267873
0.196983
0.175867
0.170136
0.152036
0
0.02032
0.215933
5,335
143
121
37.307692
0.772173
0.190066
0
0.263158
0
0
0.068388
0.023029
0
0
0
0
0
1
0.094737
false
0
0.021053
0.010526
0.147368
0.136842
0
0
0
null
0
0
0
0
0
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
6f21c952ba1d6ad55821e054cf4f9e1bcc0cbef5
1,222
py
Python
SymBOP_Analysis/ql_global.py
duttm/Octahedra_Nanoparticle_Project
aebee2859e104071a1a6f5f46b42ddc9bd2fa5ad
[ "MIT" ]
null
null
null
SymBOP_Analysis/ql_global.py
duttm/Octahedra_Nanoparticle_Project
aebee2859e104071a1a6f5f46b42ddc9bd2fa5ad
[ "MIT" ]
null
null
null
SymBOP_Analysis/ql_global.py
duttm/Octahedra_Nanoparticle_Project
aebee2859e104071a1a6f5f46b42ddc9bd2fa5ad
[ "MIT" ]
null
null
null
import numpy as np import scipy.special as ss import pathlib from Particle import Particle def ql_global(l, particles): # Keep only particles that have neighbors (this was changed 5/23/2020) particles = [i for i in particles if len(Particle.data[i].neighs)>0] neigh_total = sum([len(Particle.data[i].neig...
20.366667
140
0.672668
204
1,222
3.97549
0.323529
0.088779
0.073983
0.036991
0.490752
0.266338
0.266338
0.199753
0.199753
0.199753
0
0.02275
0.172668
1,222
59
141
20.711864
0.779426
0.097381
0
0.090909
0
0
0
0
0
0
0
0
0
1
0.045455
false
0
0.181818
0
0.272727
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
6f24922c982451aa56d071ba87202ae9a17e9ae3
1,030
py
Python
arsenal/sleep/openfaas/sleep-py/handler.py
nropatas/faasbenchmark
99f08c70a0ddaa8e9dcadb092b2c395318a6e215
[ "Apache-2.0" ]
null
null
null
arsenal/sleep/openfaas/sleep-py/handler.py
nropatas/faasbenchmark
99f08c70a0ddaa8e9dcadb092b2c395318a6e215
[ "Apache-2.0" ]
null
null
null
arsenal/sleep/openfaas/sleep-py/handler.py
nropatas/faasbenchmark
99f08c70a0ddaa8e9dcadb092b2c395318a6e215
[ "Apache-2.0" ]
null
null
null
import os import time import datetime def get_current_epoch(): return int((datetime.datetime.utcnow() - datetime.datetime(1970, 1, 1)).total_seconds() * 1000) def get_sleep_parameter(event): user_input = str(event.query["sleep"]) if not user_input or not user_input.isdigit() or int(user_input) < 0: ...
23.953488
99
0.615534
130
1,030
4.661538
0.346154
0.089109
0.074257
0.072607
0
0
0
0
0
0
0
0.037909
0.257282
1,030
42
100
24.52381
0.754248
0
0
0.117647
0
0
0.08835
0
0
0
0
0
0
1
0.147059
false
0
0.088235
0.029412
0.411765
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
6f25add3846c5ac4302faa8959401e3328e32572
2,223
py
Python
smile_recognition.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
5
2019-05-30T20:15:34.000Z
2020-04-16T08:21:16.000Z
smile_recognition.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
5
2021-08-25T14:43:34.000Z
2022-02-10T00:14:09.000Z
smile_recognition.py
audreymychan/djsmile
8dc5d6337f1b32db8bf3dfbf13315ec25049ebb5
[ "MIT" ]
null
null
null
# This script loads the pre-trained scaler and models and contains the # predict_smile() function to take in an image and return smile predictions import joblib from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing.image import img_to_array, array_to_img from PIL import Image import numpy ...
35.285714
92
0.706253
335
2,223
4.498507
0.352239
0.03716
0.063703
0.045123
0.191108
0.179164
0.159257
0.118115
0.118115
0.066357
0
0.031492
0.185785
2,223
62
93
35.854839
0.801105
0.421952
0
0
0
0
0.20447
0.145695
0
0
0
0
0
1
0.045455
false
0
0.227273
0
0.318182
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
6f25c6dda6bae99b736764ebd22f5be07aae919e
1,054
py
Python
comicstreamerlib/gui_qt.py
rlugojr/ComicStreamer
62eb914652695ea41a5e1f0cfbd044cbc6854e84
[ "Apache-2.0" ]
169
2015-01-08T03:23:37.000Z
2022-02-27T22:09:25.000Z
comicstreamerlib/gui_qt.py
gwhittey23/ComicStreamer
3e0fe2011984cee54197985cb313f5b6864f6f8c
[ "Apache-2.0" ]
46
2015-01-10T23:47:51.000Z
2020-05-31T01:04:28.000Z
comicstreamerlib/gui_qt.py
gwhittey23/ComicStreamer
3e0fe2011984cee54197985cb313f5b6864f6f8c
[ "Apache-2.0" ]
94
2015-01-26T01:57:52.000Z
2022-01-25T17:11:31.000Z
import sys import webbrowser import os from comicstreamerlib.folders import AppFolders from PyQt4 import QtGui,QtCore class SystemTrayIcon(QtGui.QSystemTrayIcon): def __init__(self, icon, app): QtGui.QSystemTrayIcon.__init__(self, icon, None) self.app = app self.menu = QtGui.QMenu(None) ...
23.422222
65
0.624288
111
1,054
5.738739
0.477477
0.037677
0.034537
0
0
0
0
0
0
0
0
0.006527
0.273245
1,054
44
66
23.954545
0.825065
0
0
0
0
0
0.019924
0
0
0
0
0
0
1
0.133333
false
0.033333
0.166667
0
0.366667
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
6f276dd2fdcae04762736c35013f0dd614ff7db4
3,892
py
Python
laserchicken/io/las_handler.py
eEcoLiDAR/eEcoLiDAR
f5c4e772e4893f7242ed0b10aa17ac7e693a55a0
[ "Apache-2.0" ]
null
null
null
laserchicken/io/las_handler.py
eEcoLiDAR/eEcoLiDAR
f5c4e772e4893f7242ed0b10aa17ac7e693a55a0
[ "Apache-2.0" ]
104
2017-09-07T08:06:49.000Z
2018-04-16T09:17:18.000Z
laserchicken/io/las_handler.py
eEcoLiDAR/eEcoLiDAR
f5c4e772e4893f7242ed0b10aa17ac7e693a55a0
[ "Apache-2.0" ]
2
2017-11-17T17:23:04.000Z
2017-12-15T07:13:20.000Z
""" IO Handler for LAS (and compressed LAZ) file format """ import laspy import numpy as np from laserchicken import keys from laserchicken.io.base_io_handler import IOHandler from laserchicken.io.utils import convert_to_short_type, select_valid_attributes DEFAULT_LAS_ATTRIBUTES = { 'x', 'y', 'z', 'i...
37.423077
98
0.610226
480
3,892
4.76875
0.275
0.039318
0.017475
0.024465
0.17737
0.117082
0
0
0
0
0
0.003272
0.293165
3,892
103
99
37.786408
0.82879
0.174717
0
0.0625
0
0
0.089499
0
0
0
0
0
0
1
0.0625
false
0
0.078125
0.03125
0.203125
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
6f29a0478e6fdf417f21eeca439c92961dbbacca
1,206
py
Python
prob.py
Y1fanHE/po_with_moead-levy
d0531c9685ea1a09dd074960b51756d8f19a9719
[ "MIT" ]
7
2020-09-02T12:40:58.000Z
2021-09-17T09:39:09.000Z
prob.py
Y1fanHE/po_with_moead-levy
d0531c9685ea1a09dd074960b51756d8f19a9719
[ "MIT" ]
null
null
null
prob.py
Y1fanHE/po_with_moead-levy
d0531c9685ea1a09dd074960b51756d8f19a9719
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def read_file(prob_num): df = pd.read_csv("dat/port" + str(prob_num) + ".txt", header=None, delimiter="\s+", names=range(3)) # info on assets n = int(df[0][0]) # number of assets r = df[1: (n + 1)][0].values.reshape(n, 1) # mean of returns s = df[1: (n + 1)][...
29.414634
78
0.529022
231
1,206
2.731602
0.337662
0.019017
0.019017
0.019017
0.066561
0
0
0
0
0
0
0.026018
0.266998
1,206
40
79
30.15
0.687783
0.150912
0
0.0625
0
0
0.0286
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.3125
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
6f2c2c62e843e5ddae5061bd51b492b090cca398
10,511
py
Python
parser.py
sberczuk/powerschool-reporter
2393d9f63ffe643499f6cbf2bf406f3c4d311129
[ "MIT" ]
1
2021-03-04T20:11:08.000Z
2021-03-04T20:11:08.000Z
parser.py
sberczuk/powerschool-reporter
2393d9f63ffe643499f6cbf2bf406f3c4d311129
[ "MIT" ]
null
null
null
parser.py
sberczuk/powerschool-reporter
2393d9f63ffe643499f6cbf2bf406f3c4d311129
[ "MIT" ]
1
2021-03-04T20:11:13.000Z
2021-03-04T20:11:13.000Z
#!/usr/bin/env python3 import io import xml.etree.ElementTree as ET import argparse ns = {'ns1': 'http://www.sifinfo.org/infrastructure/2.x', 'ns2': 'http://stumo.transcriptcenter.com'} class StudentInfo: def __init__(self, first_name, middle_name, last_name, ): self.last_name = last_name ...
38.083333
271
0.641328
1,406
10,511
4.591038
0.164296
0.040899
0.022308
0.012393
0.316344
0.266305
0.230519
0.153989
0.126723
0.091402
0
0.004647
0.221958
10,511
275
272
38.221818
0.784666
0.048521
0
0.133971
0
0.033493
0.245168
0.114772
0
0
0
0
0
1
0.105263
false
0.004785
0.019139
0.033493
0.22488
0.043062
0
0
0
null
0
0
0
0
0
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
6f2de6790116bc6ef41091db2832890bbce2457a
2,623
py
Python
eunite/eunite_data.py
jiasudemotuohe/deep_learning
44eb14d91b6b9ca2092361918a1bcaa73786f78e
[ "MIT" ]
null
null
null
eunite/eunite_data.py
jiasudemotuohe/deep_learning
44eb14d91b6b9ca2092361918a1bcaa73786f78e
[ "MIT" ]
null
null
null
eunite/eunite_data.py
jiasudemotuohe/deep_learning
44eb14d91b6b9ca2092361918a1bcaa73786f78e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020-04-11 12:34 # @Author : speeding_moto import numpy as np import pandas as pd from matplotlib import pyplot as plt EUNITE_PATH = "dataset/eunite.xlsx" PARSE_TABLE_NAME = "mainData" def load_eunite_data(): """ return the generated load data, include all the features...
22.808696
91
0.661456
404
2,623
4.064356
0.30198
0.036541
0.051157
0.021924
0.143118
0.12363
0
0
0
0
0
0.025518
0.208159
2,623
114
92
23.008772
0.765046
0.140297
0
0
0
0
0.066728
0
0
0
0
0
0
1
0.122807
false
0
0.052632
0.017544
0.280702
0.035088
0
0
0
null
0
0
0
0
0
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
6f2ef602fc37c19ef3635c7ccba25fb1c352192a
4,828
py
Python
tests/test_fibsem.py
DeMarcoLab/piescope
ea7acf5b198b91e4923097711d55ca038763eba2
[ "MIT" ]
4
2019-06-07T07:28:48.000Z
2022-02-23T23:02:08.000Z
tests/test_fibsem.py
DeMarcoLab/PIEScope
ea7acf5b198b91e4923097711d55ca038763eba2
[ "MIT" ]
44
2019-06-09T14:32:16.000Z
2022-03-25T06:04:20.000Z
tests/test_fibsem.py
DeMarcoLab/piescope
ea7acf5b198b91e4923097711d55ca038763eba2
[ "MIT" ]
3
2019-06-07T07:31:09.000Z
2021-03-01T10:47:24.000Z
import numpy as np import pytest from piescope.data.mocktypes import MockAdornedImage import piescope.fibsem autoscript = pytest.importorskip( "autoscript_sdb_microscope_client", reason="Autoscript is not available." ) try: from autoscript_sdb_microscope_client import SdbMicroscopeClient microscope = Sdb...
31.763158
89
0.719553
628
4,828
5.328025
0.216561
0.040646
0.071727
0.059773
0.56844
0.521518
0.456665
0.456665
0.456665
0.454274
0
0.038818
0.172949
4,828
151
90
31.97351
0.799149
0.031483
0
0.327586
0
0
0.047772
0.006855
0
0
0
0
0.241379
1
0.12069
false
0
0.060345
0
0.198276
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
6f2f4a5690de443a3e4f39e964bc36f35fd2bc86
8,206
py
Python
newnew.py
jennycs005/Skyscraper-App
53d69e005bec17a033be6ea1274e8f7372ed8b28
[ "MIT" ]
null
null
null
newnew.py
jennycs005/Skyscraper-App
53d69e005bec17a033be6ea1274e8f7372ed8b28
[ "MIT" ]
null
null
null
newnew.py
jennycs005/Skyscraper-App
53d69e005bec17a033be6ea1274e8f7372ed8b28
[ "MIT" ]
null
null
null
import streamlit as st import pandas as pd import matplotlib.pyplot as plt import csv import numpy as np import pydeck as pdk from PIL import Image def scatterplot(): skyscrapers_data = pd.read_csv("Skyscrapers2021.csv") completion_year_List = [] meters_List = [] for row in skyscrapers_data...
40.029268
115
0.598343
942
8,206
5.036093
0.253716
0.056914
0.025084
0.030987
0.359612
0.332209
0.301644
0.203415
0.135961
0.135961
0
0.036333
0.268828
8,206
204
116
40.22549
0.754333
0.032903
0
0.232143
0
0
0.171162
0.016079
0
0
0
0
0
1
0.035714
false
0
0.041667
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f2f4c53b7a08acbd2a5aec32456145e78be64d9
4,746
py
Python
cifar_train.py
usumfabricae/sagemaker-multi-model-endpoint-tensorflow-computer-vision
74a97ecc2fa9bf76c5543dfe23373a6c69c61647
[ "MIT-0" ]
4
2021-05-30T22:15:34.000Z
2022-03-12T23:01:36.000Z
cifar_train.py
usumfabricae/sagemaker-multi-model-endpoint-tensorflow-computer-vision
74a97ecc2fa9bf76c5543dfe23373a6c69c61647
[ "MIT-0" ]
null
null
null
cifar_train.py
usumfabricae/sagemaker-multi-model-endpoint-tensorflow-computer-vision
74a97ecc2fa9bf76c5543dfe23373a6c69c61647
[ "MIT-0" ]
3
2021-06-08T12:04:43.000Z
2021-06-12T13:44:48.000Z
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, Dropout, BatchNormalization from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.callbacks import ModelCheckpoint from tensorflow.keras.models import Sequential from tensorflow.keras.models import load_model ...
37.370079
112
0.676991
640
4,746
4.798438
0.248438
0.03647
0.03875
0.03126
0.279062
0.24422
0.24422
0.203191
0.088896
0.088896
0
0.015032
0.201011
4,746
126
113
37.666667
0.794831
0.078803
0
0.070588
0
0
0.134986
0.00551
0
0
0
0
0
1
0.047059
false
0
0.129412
0
0.223529
0.011765
0
0
0
null
0
0
0
0
0
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
6f30daadb871f9a5d1c444d73777bde40a45df2e
8,658
py
Python
src/utils/es_async.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
src/utils/es_async.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
null
null
null
src/utils/es_async.py
karawallace/mygene
35bf066eb50bc929b4bb4e2423d47b4c98797526
[ "Apache-2.0" ]
1
2018-11-17T08:53:06.000Z
2018-11-17T08:53:06.000Z
import re import json import tornado.web import tornado.httpclient tornado.httpclient.AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient") import tornadoes from utils.es import (ESQuery, ESQueryBuilder, MGQueryError, ElasticSearchException, ES_INDEX_NAME...
38.825112
136
0.524371
918
8,658
4.751634
0.203704
0.020862
0.034388
0.027281
0.456901
0.398212
0.377579
0.360844
0.341128
0.30995
0
0.004302
0.382536
8,658
222
137
39
0.811635
0.057981
0
0.510309
0
0
0.067273
0.007871
0
0
0
0
0.005155
1
0.051546
false
0
0.041237
0
0.216495
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
6f31322afdaea5a169b7473328dfc029ea716e21
10,203
py
Python
processviz/test.py
jurgendn/processviz
82808a92662962f04c48673c9cf159d7bc904ff7
[ "BSD-3-Clause" ]
null
null
null
processviz/test.py
jurgendn/processviz
82808a92662962f04c48673c9cf159d7bc904ff7
[ "BSD-3-Clause" ]
null
null
null
processviz/test.py
jurgendn/processviz
82808a92662962f04c48673c9cf159d7bc904ff7
[ "BSD-3-Clause" ]
2
2020-03-19T11:14:13.000Z
2021-08-14T14:24:08.000Z
""" Thư viện này viết ra phục vụ cho môn học `Các mô hình ngẫu nhiên và ứng dụng` Sử dụng các thư viện `networkx, pandas, numpy, matplotlib` """ import networkx as nx import numpy as np import matplotlib.pyplot as plt from matplotlib.image import imread import pandas as pd def _gcd(a, b): if a == 0: retu...
32.287975
101
0.503283
1,270
10,203
3.868504
0.192913
0.053124
0.015876
0.015673
0.273356
0.195604
0.160594
0.144311
0.127824
0.087523
0
0.007841
0.349995
10,203
315
102
32.390476
0.732961
0.112124
0
0.269565
0
0
0.034803
0
0
0
0
0
0
1
0.1
false
0
0.021739
0
0.252174
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
6f319a2e3b23a21c6ff1ef69178d3b4bc2931b78
3,322
py
Python
src/check_results.py
jagwar/Sentiment-Analysis
312186c066c360ed4b3ebc9e999dba419f10e93c
[ "MIT" ]
null
null
null
src/check_results.py
jagwar/Sentiment-Analysis
312186c066c360ed4b3ebc9e999dba419f10e93c
[ "MIT" ]
null
null
null
src/check_results.py
jagwar/Sentiment-Analysis
312186c066c360ed4b3ebc9e999dba419f10e93c
[ "MIT" ]
null
null
null
import os import json import numpy as np import torch from torch.utils.data import DataLoader, RandomSampler, TensorDataset, SequentialSampler from transformers import CamembertTokenizer, CamembertForSequenceClassification import pandas as pd from tqdm import tqdm, trange # tokenizer = CamembertTokenizer.from_pretr...
40.024096
147
0.705298
408
3,322
5.517157
0.311275
0.042648
0.047979
0.066637
0.415815
0.366948
0.366948
0.310973
0.278099
0.219458
0
0.03797
0.175497
3,322
83
148
40.024096
0.783863
0.161048
0
0
0
0.032787
0.109594
0.077973
0
0
0
0
0
1
0.032787
false
0
0.131148
0
0.180328
0.016393
0
0
0
null
0
0
0
0
0
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
6f34182931d744d711a9eaa391580c23eb3546c2
383
py
Python
blog/users/urls.py
simpleOnly1/blog
34343068318a64bd537e5862181e037fc4636247
[ "MIT" ]
null
null
null
blog/users/urls.py
simpleOnly1/blog
34343068318a64bd537e5862181e037fc4636247
[ "MIT" ]
null
null
null
blog/users/urls.py
simpleOnly1/blog
34343068318a64bd537e5862181e037fc4636247
[ "MIT" ]
null
null
null
#进行users 子应用的视图路由 from django.urls import path from users.views import RegisterView, ImageCodeView,SmsCodeView urlpatterns = [ #path的第一个参数:路由 #path的第二个函数:视图函数名 path('register/', RegisterView.as_view(),name='register'), #图片验证码的路由 path('imagecode/',ImageCodeView.as_view(),name='imagecode'), #短信...
25.533333
64
0.715405
42
383
6.452381
0.595238
0.066421
0.110701
0
0
0
0
0
0
0
0
0
0.138381
383
15
65
25.533333
0.821212
0.148825
0
0
0
0
0.158385
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f3478c403c5a4607452ef969c0985f21a247166
11,861
py
Python
src/config/fabric-ansible/ansible-playbooks/filter_plugins/import_lldp_info.py
EWERK-DIGITAL/tf-controller
311ea863b03d425a67d04d27c1f1b9cf1e20c926
[ "Apache-2.0" ]
null
null
null
src/config/fabric-ansible/ansible-playbooks/filter_plugins/import_lldp_info.py
EWERK-DIGITAL/tf-controller
311ea863b03d425a67d04d27c1f1b9cf1e20c926
[ "Apache-2.0" ]
null
null
null
src/config/fabric-ansible/ansible-playbooks/filter_plugins/import_lldp_info.py
EWERK-DIGITAL/tf-controller
311ea863b03d425a67d04d27c1f1b9cf1e20c926
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from builtins import object from builtins import str import sys import traceback sys.path.append("/opt/contrail/fabric_ansible_playbooks/module_utils") # noqa from filter_utils import _task_done, _task_error_log, _task_log, FilterLog from job_manager.job_utils import JobVncApi class FilterModule...
39.802013
79
0.517073
1,116
11,861
5.039427
0.176523
0.053165
0.03734
0.031117
0.330903
0.246444
0.161451
0.13478
0.093172
0.07468
0
0.015007
0.39887
11,861
297
80
39.936027
0.773773
0.275019
0
0.151899
0
0
0.10917
0.049611
0
0
0
0
0
1
0.050633
false
0
0.056962
0.006329
0.170886
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
6f355a92c02e0c6216729df9bbfec7b8bd8e4145
527
py
Python
src/shared/_menu.py
MarcSkovMadsen/awesome-panel-starter
b76854882a041c7b955a59785d08e167ffef07af
[ "Apache-2.0" ]
5
2021-01-04T16:39:09.000Z
2021-08-03T15:26:49.000Z
src/shared/_menu.py
MarcSkovMadsen/awesome-panel-starter
b76854882a041c7b955a59785d08e167ffef07af
[ "Apache-2.0" ]
6
2020-12-28T03:28:25.000Z
2021-09-11T13:07:51.000Z
src/shared/_menu.py
MarcSkovMadsen/awesome-panel-starter
b76854882a041c7b955a59785d08e167ffef07af
[ "Apache-2.0" ]
1
2021-09-15T20:08:44.000Z
2021-09-15T20:08:44.000Z
"""Provides the MENU html string which is appended to all templates Please note that the MENU only works in [Fast](https://www.fast.design/) based templates. If you need some sort of custom MENU html string feel free to customize this code. """ from awesome_panel_extensions.frameworks.fast.fast_menu import to_menu f...
31
89
0.73814
78
527
4.897436
0.679487
0.036649
0.073298
0
0
0
0
0
0
0
0
0
0.16129
527
16
90
32.9375
0.864253
0.45351
0
0
0
0
0.021352
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f35c3c4af214e988cae123b40970464d22b95ab
1,909
py
Python
prediction-api/app.py
BrokenImage/raptor-api
2cafc7fedf883a730d22dc0e2898f531d20fedf2
[ "MIT", "Unlicense" ]
null
null
null
prediction-api/app.py
BrokenImage/raptor-api
2cafc7fedf883a730d22dc0e2898f531d20fedf2
[ "MIT", "Unlicense" ]
null
null
null
prediction-api/app.py
BrokenImage/raptor-api
2cafc7fedf883a730d22dc0e2898f531d20fedf2
[ "MIT", "Unlicense" ]
null
null
null
import os import boto3 import numpy as np import tensorflow as tf from flask import Flask from dotenv import load_dotenv from pymongo import MongoClient from keras.models import load_model from sklearn.preprocessing import LabelEncoder from werkzeug.datastructures import FileStorage from werkzeug.middleware.proxy_fix i...
30.790323
103
0.736511
260
1,909
5.180769
0.438462
0.026726
0.026726
0.020787
0
0
0
0
0
0
0
0.008669
0.154007
1,909
61
104
31.295082
0.825387
0.028287
0
0
0
0
0.118855
0.027553
0
0
0
0
0
1
0.021277
false
0
0.276596
0
0.340426
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
6f37404f1493e37478a90fbc8c755991983fccf9
3,836
py
Python
beast/tests/helpers.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/tests/helpers.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/tests/helpers.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
# useful functions for BEAST tests # put here instead of having in every tests import os.path import numpy as np import h5py from astropy.io import fits from astropy.utils.data import download_file __all__ = ['download_rename', 'compare_tables', 'compare_fits', 'compare_hdf5'] def download_rename(filena...
31.966667
75
0.533889
441
3,836
4.480726
0.297052
0.02834
0.037955
0.046559
0.146761
0.146761
0.112348
0.112348
0.112348
0.112348
0
0.005381
0.370177
3,836
119
76
32.235294
0.8125
0.224713
0
0.152542
0
0
0.072644
0
0
0
0
0
0.118644
1
0.067797
false
0
0.084746
0
0.169492
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
6f38ecb37fdc239d1019da968ae8c9a2467372bc
4,494
py
Python
Win_Source/ESP_Autostart.py
maschhoff/ESP32-433Mhz-Receiver-and-Tools
a7cb8c0740054650d38444781d2b7b6c18779a29
[ "MIT" ]
3
2020-11-29T18:38:48.000Z
2022-02-23T15:13:56.000Z
Win_Source/ESP_Autostart.py
maschhoff/ESP32-433Mhz-Receiver-and-Tools
a7cb8c0740054650d38444781d2b7b6c18779a29
[ "MIT" ]
null
null
null
Win_Source/ESP_Autostart.py
maschhoff/ESP32-433Mhz-Receiver-and-Tools
a7cb8c0740054650d38444781d2b7b6c18779a29
[ "MIT" ]
2
2021-07-25T18:03:12.000Z
2021-07-26T11:50:14.000Z
# Detlev Aschhoff info@vmais.de # The MIT License (MIT) # # Copyright (c) 2020 # # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights...
29.372549
86
0.574099
541
4,494
4.768946
0.397412
0.034109
0.020155
0.04186
0.229457
0.193411
0.167054
0.122481
0.122481
0.122481
0
0.012793
0.26947
4,494
152
87
29.565789
0.773073
0.298843
0
0.413462
0
0
0.156951
0.02114
0
0
0
0
0
1
0.057692
false
0.009615
0.076923
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
6f3a244598ce08d2133e90a30870681650f7eccc
1,249
py
Python
spike/compiler/Node.py
spikeio/lang
33be3b51eaf22f873ddc94f2f9e381f605a2499f
[ "BSD-2-Clause" ]
1
2020-06-15T07:38:12.000Z
2020-06-15T07:38:12.000Z
spike/compiler/Node.py
spikeio/lang
33be3b51eaf22f873ddc94f2f9e381f605a2499f
[ "BSD-2-Clause" ]
1
2021-11-12T11:01:45.000Z
2021-11-12T11:01:45.000Z
spike/compiler/Node.py
spikeio/lang
33be3b51eaf22f873ddc94f2f9e381f605a2499f
[ "BSD-2-Clause" ]
null
null
null
class Node(object): # XXX: legacy code support kind = property(lambda self: self.__class__) def _iterChildren(self): for name in self.childAttrNames: yield (name, getattr(self, name)) return children = property(_iterChildren) def dump(self, stream, indent=0): ...
27.152174
75
0.5004
137
1,249
4.518248
0.364964
0.088853
0.058158
0.067851
0.235864
0.235864
0.193861
0.12601
0.12601
0.12601
0
0.002554
0.373098
1,249
45
76
27.755556
0.787995
0.07526
0
0.275862
0
0
0.077459
0.018277
0
0
0
0
0
1
0.103448
false
0.034483
0
0
0.310345
0.172414
0
0
0
null
0
0
0
0
0
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
6f3cd19601af3a6ec8e27fb00bfee8d9af472214
95,791
py
Python
leaderboard/scenarios/background_activity.py
casper-auto/leaderboard
111a48f9099c08a2f1068ee8aea2ad56ce52ef9d
[ "MIT" ]
68
2020-03-25T10:04:21.000Z
2022-03-21T01:03:39.000Z
leaderboard/scenarios/background_activity.py
casper-auto/leaderboard
111a48f9099c08a2f1068ee8aea2ad56ce52ef9d
[ "MIT" ]
32
2020-06-16T22:11:05.000Z
2022-03-24T09:35:48.000Z
leaderboard/scenarios/background_activity.py
casper-auto/leaderboard
111a48f9099c08a2f1068ee8aea2ad56ce52ef9d
[ "MIT" ]
40
2020-03-21T23:43:39.000Z
2022-01-03T14:04:31.000Z
#!/usr/bin/env python # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ Scenario spawning elements to make the town dynamic and interesting """ import math from collections import OrderedDict import py_trees import numpy as np import carla fr...
44.741242
120
0.608784
11,727
95,791
4.645178
0.061994
0.012722
0.010831
0.006866
0.509013
0.409278
0.331846
0.282704
0.2329
0.203804
0
0.008935
0.317692
95,791
2,140
121
44.76215
0.824523
0.151298
0
0.362681
0
0
0.025456
0.000264
0
0
0
0
0
1
0.046649
false
0.003942
0.005256
0
0.087385
0.011827
0
0
0
null
0
0
0
0
0
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
6f3d6d699afb7966b9d1c11324477310b224dc24
502
py
Python
Python/Interfacing_C_C++_Fortran/F2py/comp_pi_f2py.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
115
2015-03-23T13:34:42.000Z
2022-03-21T00:27:21.000Z
Python/Interfacing_C_C++_Fortran/F2py/comp_pi_f2py.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
56
2015-02-25T15:04:26.000Z
2022-01-03T07:42:48.000Z
Python/Interfacing_C_C++_Fortran/F2py/comp_pi_f2py.py
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
59
2015-11-26T11:44:51.000Z
2022-03-21T00:27:22.000Z
#!/usr/bin/env python from argparse import ArgumentParser import sys from comp_pi import compute_pi def main(): arg_parser = ArgumentParser(description='compute pi using Fortran ' 'function') arg_parser.add_argument('n', default=1000, nargs='?', hel...
25.1
71
0.62749
60
502
4.983333
0.683333
0.090301
0
0
0
0
0
0
0
0
0
0.013624
0.268924
502
19
72
26.421053
0.80109
0.039841
0
0
0
0
0.137214
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.357143
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f3e4697377cf878d0a79c14a88b2faa221afbab
2,224
py
Python
dqn/dqn_noisy_networks/model.py
AgentMaker/Paddle-RLBooks
2e879f7ec3befa2058f0181e205b790d47770a85
[ "Apache-2.0" ]
127
2021-03-22T07:34:43.000Z
2022-02-04T13:33:15.000Z
dqn/dqn_noisy_networks/model.py
WhiteFireFox/Paddle-RLBooks
1a6add1d01b1bab08bb9d246fcd6ab852a43c18c
[ "Apache-2.0" ]
1
2021-05-16T09:51:07.000Z
2021-05-16T09:51:07.000Z
dqn/dqn_noisy_networks/model.py
WhiteFireFox/Paddle-RLBooks
1a6add1d01b1bab08bb9d246fcd6ab852a43c18c
[ "Apache-2.0" ]
16
2021-04-03T05:31:30.000Z
2022-03-26T07:53:49.000Z
import paddle import paddle.nn as nn import paddle.nn.functional as F from paddle.nn.initializer import Assign import math class NoisyLinear(nn.Linear): def __init__(self, in_features, out_features, sigma_zero=0.4, bias=True): super(NoisyLinear, self).__init__(in_features, out_features) sigma_init ...
38.344828
131
0.619155
294
2,224
4.438776
0.261905
0.059004
0.039847
0.064368
0.267433
0.162452
0.131801
0.062835
0
0
0
0.023694
0.259892
2,224
57
132
39.017544
0.769137
0
0
0.039216
0
0
0.022032
0
0
0
0
0
0
1
0.098039
false
0
0.098039
0
0.294118
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
6f405d7dc1023a5440b606895121fbd0e2262df7
1,631
py
Python
forte/utils/utils_io.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
2
2021-01-01T12:07:27.000Z
2021-09-10T03:57:18.000Z
forte/utils/utils_io.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
forte/utils/utils_io.py
swapnull7/forte
737a72afd440d40c3826c3a7c5e4e44235c0f701
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Forte Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
24.343284
77
0.660331
224
1,631
4.723214
0.522321
0.056711
0.039698
0.030246
0
0
0
0
0
0
0
0.006568
0.253219
1,631
66
78
24.712121
0.862069
0.488044
0
0.074074
0
0
0.094241
0
0
0
0
0
0
1
0.111111
false
0
0.074074
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f4276bb292fddfa79fdb894416964ab4cf57b3a
4,834
py
Python
src/AFN.py
mbampi/LinguagensRegulares
1fc7fbcc21053577bbeb1f71e742aee3a48f2188
[ "MIT" ]
null
null
null
src/AFN.py
mbampi/LinguagensRegulares
1fc7fbcc21053577bbeb1f71e742aee3a48f2188
[ "MIT" ]
null
null
null
src/AFN.py
mbampi/LinguagensRegulares
1fc7fbcc21053577bbeb1f71e742aee3a48f2188
[ "MIT" ]
null
null
null
import re from AFD import AFD class AFN: def __init__(self, nome=None, estados=[], simbolos=[], estado_inicial=None, estados_finais=[], funcoes_programa={}): self.nome = nome self.estados = estados self.simbolos = simbolos self.estado_inicial = estado_inicial self.estados...
37.184615
156
0.528962
489
4,834
5.042945
0.224949
0.091241
0.048256
0.034063
0.130981
0.056772
0
0
0
0
0
0.005742
0.351469
4,834
129
157
37.472868
0.780861
0.058957
0
0.14433
0
0
0.051237
0.033569
0
0
0
0
0
1
0.061856
false
0
0.020619
0
0.154639
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
6f428bd943ae35a4fd79dc7877617c8e0b05143f
11,348
py
Python
cs_tools/tools/_searchable-dependencies/app.py
thoughtspot/cs_tools
7b516476be94adf7f121645b7c3fc7206fdae4ca
[ "MIT" ]
1
2022-03-14T19:04:53.000Z
2022-03-14T19:04:53.000Z
cs_tools/tools/_searchable-dependencies/app.py
thoughtspot/cs_tools
7b516476be94adf7f121645b7c3fc7206fdae4ca
[ "MIT" ]
10
2021-06-01T14:34:52.000Z
2022-03-24T00:47:47.000Z
cs_tools/tools/_searchable-dependencies/app.py
thoughtspot/cs_tools
7b516476be94adf7f121645b7c3fc7206fdae4ca
[ "MIT" ]
null
null
null
from typing import List, Dict import pathlib import shutil import enum from typer import Option as O_ import typer from cs_tools.helpers.cli_ux import console, frontend, CSToolsGroup, CSToolsCommand from cs_tools.util.datetime import to_datetime from cs_tools.tools.common import run_tql_command, run_tql_script, tsloa...
36.371795
139
0.607684
1,268
11,348
5.287855
0.246057
0.01044
0.013125
0.015213
0.336316
0.327069
0.293363
0.265921
0.253095
0.245787
0
0.00197
0.284191
11,348
311
140
36.488746
0.823464
0.094114
0
0.252212
0
0
0.265379
0.011632
0
0
0
0
0
1
0.035398
false
0
0.079646
0.00885
0.199115
0.00885
0
0
0
null
0
0
0
0
0
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
6f454cefd9a2976b1fecad345694dd6dc38f8205
6,098
py
Python
bots/philBots.py
phyxl/GameOfPureStrategy
95ec7b1cb0c85dbdd4da315dac02d12d5d9c1a6a
[ "MIT" ]
null
null
null
bots/philBots.py
phyxl/GameOfPureStrategy
95ec7b1cb0c85dbdd4da315dac02d12d5d9c1a6a
[ "MIT" ]
null
null
null
bots/philBots.py
phyxl/GameOfPureStrategy
95ec7b1cb0c85dbdd4da315dac02d12d5d9c1a6a
[ "MIT" ]
null
null
null
#!/usr/bin/python import math import random from utils.log import log from bots.simpleBots import BasicBot def get_Chosen(num_cards, desired_score): chosen = list(range(1,num_cards+1)) last_removed = 0 while sum(chosen) > desired_score: #remove a random element last_removed = random.randint(0,len(chosen)-1) ...
38.594937
130
0.735323
982
6,098
4.369654
0.248473
0.052202
0.042414
0.054533
0.431135
0.376369
0.312048
0.312048
0.268003
0.234444
0
0.011663
0.184487
6,098
157
131
38.840764
0.851196
0.388816
0
0.373832
0
0
0.008814
0
0
0
0
0
0
1
0.074766
false
0
0.037383
0
0.196262
0.009346
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f486f62f9567ab5d28e26f5db6697fa139744ec
1,622
py
Python
refined/refinement_types.py
espetro/refined
c2f38418268e8d89634ede1265d869d8d54dc9d4
[ "MIT" ]
4
2021-10-04T19:53:04.000Z
2021-12-17T07:08:42.000Z
refined/refinement_types.py
espetro/refined
c2f38418268e8d89634ede1265d869d8d54dc9d4
[ "MIT" ]
null
null
null
refined/refinement_types.py
espetro/refined
c2f38418268e8d89634ede1265d869d8d54dc9d4
[ "MIT" ]
null
null
null
from typing_extensions import Annotated, TypeGuard from typing import TypeVar, List, Set, Dict from refined.predicates import ( PositivePredicate, NegativePredicate, ValidIntPredicate, ValidFloatPredicate, EmptyPredicate, NonEmptyPredicate, TrimmedPredicate, IPv4Predicate, IPv6Predi...
25.34375
75
0.727497
143
1,622
8.076923
0.335664
0.083117
0.013853
0
0
0
0
0
0
0
0
0.020543
0.159679
1,622
63
76
25.746032
0.826853
0.047472
0
0
0
0
0.107143
0
0
0
0
0
0
1
0
false
0
0.061224
0
0.061224
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
6f4befaddb9a5f3e1b6a96cd0450bb3e135fa72a
1,151
py
Python
setup.py
evamvid/SpotPRIS2
4def72c626ac4184fbfb5741ae1f5616f9c34245
[ "MIT" ]
null
null
null
setup.py
evamvid/SpotPRIS2
4def72c626ac4184fbfb5741ae1f5616f9c34245
[ "MIT" ]
null
null
null
setup.py
evamvid/SpotPRIS2
4def72c626ac4184fbfb5741ae1f5616f9c34245
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.md", "r") as f: long_description = f.read() setup(name="SpotPRIS2", version='0.3.1', author="Adrian Freund", author_email="adrian@freund.io", url="https://github.com/freundTech/SpotPRIS2", description="MPRIS2 interface for Spotify Connec...
31.972222
66
0.569939
112
1,151
5.732143
0.767857
0.070093
0
0
0
0
0
0
0
0
0
0.021505
0.272806
1,151
35
67
32.885714
0.74552
0
0
0.060606
0
0
0.460469
0.028671
0
0
0
0
0
1
0
false
0
0.030303
0
0.030303
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
6f4c2801d9bd553871475afb7b65130adbc0816c
7,963
py
Python
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
3
2019-02-03T00:11:34.000Z
2020-12-08T03:12:29.000Z
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
null
null
null
raster_statistic.py
Summer0328/DeeplabforRS
e2f7fcee7a226bcf4ac0dfe481e5559cbd86c602
[ "MIT" ]
8
2019-03-08T03:20:24.000Z
2021-12-29T09:12:54.000Z
#!/usr/bin/env python # Filename: raster_statistic """ introduction: conduct statistic based on vectos, similar to https://github.com/perrygeo/python-rasterstats, # but allow image tiles (multi-raster). authors: Huang Lingcao email:huanglingcao@gmail.com add time: 02 March, 2021 """ import os,sys import ve...
39.034314
128
0.672485
1,117
7,963
4.4906
0.247986
0.027512
0.021531
0.019139
0.207137
0.172648
0.145534
0.112839
0.10327
0.076954
0
0.00854
0.235338
7,963
204
129
39.034314
0.815241
0.202185
0
0.057377
0
0
0.078973
0.025048
0
0
0
0
0
1
0.040984
false
0.016393
0.07377
0
0.147541
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
6f4f6ae38349e41996b32d4d35373858a72fda8b
1,226
py
Python
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
2
2016-03-15T15:07:06.000Z
2016-05-10T23:01:05.000Z
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
null
null
null
ariadne/old/defutils.py
microns-ariadne/ariadne-pipeline-test-harness
73e749c48d1ff103fee2044833778e33c70be73b
[ "MIT" ]
null
null
null
# Defutils.py -- Contains parsing functions for definition files. # Produces an organized list of tokens in the file. def parse(filename): f=open(filename, "r") contents=f.read() f.close() # Tokenize the file: #contents=contents.replace('\t', '\n') lines=contents.splitlines() outList=[] ...
22.703704
65
0.596248
151
1,226
4.735099
0.423841
0.01958
0.036364
0.058741
0.167832
0.167832
0
0
0
0
0
0.006615
0.260196
1,226
53
66
23.132075
0.781698
0.137847
0
0.277778
0
0
0.098953
0.019981
0
0
0
0
0
1
0.194444
false
0
0
0.055556
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f501da078c8264f3aa97dd237a4fd33b8efc2d3
492
py
Python
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
qnap_locate_parser.py
killruana/snippets
c4c63dc61c727cce53fd44175bdf0dbaa6ca2b3e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import json import sys import clize def get_file_handler(input_file): if input_file is None: return sys.stdin return open(input_file, 'r') @clize.clize def main(input_file=None): result = {'datas': []} with get_file_handler(input_file) as input_han...
17.571429
56
0.628049
66
492
4.393939
0.5
0.155172
0.096552
0.131034
0.158621
0
0
0
0
0
0
0.002747
0.260163
492
27
57
18.222222
0.793956
0.042683
0
0
0
0
0.060948
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.4375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f51e1b0451d36b7c6fa181d10bcac54b6aff907
2,254
py
Python
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
evennia/contrib/tutorial_examples/mirror.py
lootcrawl/evennia
a5f736ca0ff89e4f7da7d3f89a8886f1ea3698aa
[ "BSD-3-Clause" ]
null
null
null
""" TutorialMirror A simple mirror object to experiment with. """ from evennia import DefaultObject from evennia.utils import make_iter, is_iter from evennia import logger class TutorialMirror(DefaultObject): """ A simple mirror object that - echoes back the description of the object looking at it ...
35.777778
96
0.612689
300
2,254
4.54
0.436667
0.022026
0.023495
0.0279
0.026432
0
0
0
0
0
0
0.000641
0.308341
2,254
62
97
36.354839
0.872996
0.487134
0
0
0
0
0.25625
0.030208
0
0
0
0
0
1
0.105263
false
0
0.157895
0
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
6f52486edca89f5433834a3b9b6ee311e8cbfc7a
1,087
py
Python
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
python/patternlock.py
Floozutter/silly
8273b4a33e2001c0a530e859c12dbc30b9590a94
[ "Unlicense" ]
null
null
null
from tkinter import Tk from turtle import ScrolledCanvas, TurtleScreen, RawTurtle DIGIT2POS = dict(zip( "123456789", ((100 * (j - 1), 100 * (-i + 1)) for i in range(3) for j in range(3)) )) def draw_dots(turt: RawTurtle) -> None: penstate = turt.pen() turt.penup() for x, y in DIGIT2POS.values(): ...
25.880952
73
0.618215
144
1,087
4.583333
0.381944
0.018182
0.036364
0.057576
0.309091
0.309091
0.309091
0.230303
0.230303
0.230303
0
0.048309
0.23827
1,087
41
74
26.512195
0.748792
0
0
0.333333
0
0
0.022999
0
0
0
0
0
0
1
0.083333
false
0
0.055556
0
0.138889
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
6f541abd19a1111ebb51682e3f0933b11c46ab1e
1,043
py
Python
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
cnn_model/Compute_accuarcy.py
csJd/dg_text_contest_2018
24bf8ded51841ebc1b1487f239471d65ee1a2b18
[ "MIT" ]
null
null
null
#coding=utf-8 import pandas as pd def get_labels(init_file,predict_file): init_label = [] predict_label = [] pd_init = pd.read_csv(init_file,sep="^",header=None) for index,row in pd_init.iterrows(): init_label.append(row[0]) pd_predict = pd.read_csv(predict_file,sep=",",header=None) ...
21.729167
121
0.663471
145
1,043
4.42069
0.331034
0.070203
0.028081
0.053042
0.099844
0.099844
0.099844
0.099844
0.099844
0
0
0.006061
0.209012
1,043
47
122
22.191489
0.770909
0.011505
0
0
0
0
0.125243
0.070874
0
0
0
0
0
1
0.038462
false
0
0.038462
0
0.115385
0.192308
0
0
0
null
0
0
0
0
0
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
6f54410348912d7242d35c3b0676a8ad9e832eda
1,219
py
Python
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
ex01/arquivo/__init__.py
duartele/exerc-python
fc149a5bcd0686ba4cad87e95277658f9bbdc63b
[ "MIT" ]
null
null
null
from ex01.funcoes import * def arqExiste(nome): try: a = open(nome, 'rt') #rt = read text a.close() except FileNotFoundError: return False else: return True def criarArq(nome): try: a = open(nome, 'wt+') #wt = write text and + = create one if it not exists ...
23
82
0.528302
153
1,219
4.20915
0.477124
0.031056
0.049689
0.055901
0.152174
0.127329
0
0
0
0
0
0.012453
0.341263
1,219
52
83
23.442308
0.789539
0.068909
0
0.465116
0
0
0.243363
0.022124
0
0
0
0
0
1
0.093023
false
0
0.023256
0
0.162791
0.162791
0
0
0
null
0
0
0
0
0
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
6f55278da18ee1b87b293e3ecbf2009597eacc92
2,541
py
Python
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
src/04_exploration/03_determine_fire_season.py
ranarango/fuegos-orinoquia
d82941ef0c90fe66162c8678b6f4a4c010d4313b
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------- # Author: Marcelo Villa-Piñeros # # Purpose: Determines the fire season for each window. The fire season is # defined as the minimum number of consecutive months that contain more # than 80% of the burned area (Archibald ett al 2013; Abatzoglou e...
38.5
87
0.646989
330
2,541
4.821212
0.472727
0.056568
0.070396
0.041483
0.059082
0.040226
0
0
0
0
0
0.02286
0.19087
2,541
65
88
39.092308
0.749514
0.435262
0
0
0
0
0.122782
0.048261
0
0
0
0
0
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
6f5611d11711ac2d42a20770b0203d11ed9c22de
5,719
py
Python
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
1
2021-08-01T02:26:59.000Z
2021-08-01T02:26:59.000Z
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
null
null
null
holo/modules/blender.py
chinarjoshi/holo
45da9a8b4186b405d4f7338b953e10b335b76573
[ "MIT" ]
null
null
null
import bpy import json from bpy.types import SpaceView3D from bpy.app.handlers import persistent from mathutils import Quaternion, Matrix, Vector from holo.gestures import prediction_from_camera def duplicate_window(window_type: str = 'INVOKE_DEFAULT') -> None: """Duplicates a new window into bpy.data.screens fro...
43.656489
135
0.673719
687
5,719
5.422125
0.321689
0.02255
0.02094
0.020403
0.201879
0.132886
0.132886
0.062819
0.02255
0.02255
0
0.142762
0.211226
5,719
130
136
43.992308
0.682997
0.130967
0
0.079208
0
0
0.092089
0.004665
0
0
0
0
0
1
0.079208
false
0
0.059406
0
0.148515
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
6f57b93666fc12f3542b15b4104bbd2e0df4bc2a
2,506
py
Python
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "Apache-2.0" ]
2
2020-10-21T23:54:28.000Z
2020-12-26T14:00:07.000Z
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "Apache-2.0" ]
null
null
null
ncp/models/det_mix_ncp.py
JoeMWatson/ncp
705634393cc5b739323009aaa3ad0bd02f540728
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
41.081967
75
0.7502
367
2,506
4.953678
0.408719
0.066007
0.028603
0.041804
0.061606
0
0
0
0
0
0
0.014953
0.146049
2,506
60
76
41.766667
0.834579
0.218675
0
0
0
0
0.003601
0
0
0
0
0
0
1
0.04878
false
0
0.073171
0
0.170732
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
6f5a67d0b0a7c3b0ab3f8a01d7d7b783ef80e5c4
15,107
py
Python
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
myTeam.py
alexrichardson21/PacmanDQNAgent
7a7aff6f8fa80c0e00e107adb07380194e2fc2d3
[ "MIT" ]
null
null
null
# myTeam.py # --------- # Licensing Infoesmation: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # A...
34.256236
112
0.583769
1,885
15,107
4.535279
0.233422
0.036846
0.038601
0.047374
0.340742
0.276407
0.228448
0.199906
0.18353
0.139782
0
0.013625
0.314953
15,107
440
113
34.334091
0.812446
0.244787
0
0.255507
0
0
0.027835
0
0
0
0
0
0
1
0.070485
false
0
0.057269
0
0.22467
0.017621
0
0
0
null
0
0
0
0
0
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
6f5beb9a275be58bdbdf0da45a8be956e56f7cc6
850
py
Python
wordBreak2.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
wordBreak2.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
wordBreak2.py
saai/LeetcodePythonSolutions
201f2054dda3f303ae6a376b40cbc7f98688322c
[ "MIT" ]
null
null
null
class Solution: # @param s, a string # @param wordDict, a set<string> # @return a string[] def wordBreak(self, s, wordDict): n = len(s) res = [] chars = ''.join(wordDict) for i in xrange(n): if s[i] not in chars: return res lw = s[-1] ...
28.333333
49
0.443529
111
850
3.369369
0.315315
0.016043
0.032086
0
0
0
0
0
0
0
0
0.008316
0.434118
850
30
50
28.333333
0.769231
0.08
0
0.111111
0
0
0.001284
0
0
0
0
0
0
1
0.074074
false
0
0
0
0.259259
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
6f5dc8fddaaa9b918695e316e6b45bac16a19712
880
py
Python
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
null
null
null
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
null
null
null
deploy/deploy_asterisk_provider2.py
orpolaczek/astricon-2017-demos
1d3f24a72b19bf7ecf70831fd6b122cde59ea47b
[ "MIT" ]
1
2018-09-14T08:32:07.000Z
2018-09-14T08:32:07.000Z
import datetime import libcloud from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver from pprint import pprint Engine = get_driver(Provider.ELASTICHOSTS) driver = Engine("733b7dc7-7498-4db4-9dc4-74d3fee8abed", secret="6w6CDAqL6JyXFj3xNkWW2zpUjYfv9dYaLVdaaR4Y",...
25.882353
83
0.729545
112
880
5.633929
0.5625
0.038035
0.060222
0
0
0
0
0
0
0
0
0.082557
0.146591
880
33
84
26.666667
0.757656
0
0
0
0
0
0.232955
0.122727
0
0
0
0
0
1
0
false
0.04
0.2
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f60ca83d2a6e347812ac821a5981278c5493d55
1,853
py
Python
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
antoniog1995/biosys-analytics
f4ac78f0918c402b5405bcb95b6ad1f76f2d9f08
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : antoniog1 Date : 2019-02-21 Purpose: Rock the Casbah """ import argparse import sys import os # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python scri...
28.953125
110
0.51538
198
1,853
4.686869
0.5
0.045259
0.036638
0
0
0
0
0
0
0
0
0.00911
0.229897
1,853
63
111
29.412698
0.641205
0.239072
0
0
0
0
0.112564
0
0
0
0
0
0
1
0.111111
false
0
0.083333
0
0.222222
0.083333
0
0
0
null
0
0
0
0
0
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
6f60f993f98cc6ec2f6e673c50ecaa903ed57a90
4,042
py
Python
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
lvmsurveysim/target/target.py
albireox/lvmsurveysim
8ebe8ae7a90e5f50c4ea186b947a49720b7ed9ed
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # @Author: José Sánchez-Gallego # @Date: Oct 10, 2017 # @Filename: target.py # @License: BSD 3-Clause # @Copyright: José Sánchez-Gallego from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import pathlib impo...
30.854962
79
0.596487
481
4,042
4.889813
0.359667
0.072279
0.027211
0.037415
0.071429
0.034014
0.034014
0
0
0
0
0.024657
0.297625
4,042
130
80
31.092308
0.803804
0.575953
0
0
0
0
0.069444
0
0
0
0
0
0.060606
1
0.151515
false
0
0.242424
0.030303
0.545455
0.030303
0
0
0
null
0
0
0
0
0
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
6f628605ce1d839a711154a74d7ae1743fe66d28
1,889
py
Python
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
4
2021-08-15T04:55:44.000Z
2022-02-01T09:19:57.000Z
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
53
2021-07-16T11:02:44.000Z
2022-03-07T16:39:20.000Z
samples/snippets/test_export_to_bigquery.py
renovate-bot/python-contact-center-insights
d133f4028d862cc39d10ba4b0879df256a3505c1
[ "Apache-2.0" ]
5
2021-07-15T18:17:53.000Z
2022-01-29T08:09:16.000Z
# Copyright 2021 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 agreed to in writing, s...
28.621212
87
0.755956
271
1,889
5.062731
0.402214
0.059038
0.032799
0.046647
0.074344
0.036443
0
0
0
0
0
0.007585
0.16252
1,889
65
88
29.061538
0.859671
0.351509
0
0.096774
0
0
0.11599
0.077051
0
0
0
0
0.032258
1
0.129032
false
0
0.16129
0
0.354839
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
6f62e27b225bd0318b85812c8f42343dc3b0fca8
1,436
py
Python
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
3
2021-12-11T13:43:56.000Z
2022-03-31T02:36:05.000Z
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
9
2021-10-01T22:46:57.000Z
2021-12-16T18:01:31.000Z
Author/admin.py
CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution
63c0ba2a03f0b462e3673ce7a4bf6bae7999440c
[ "Apache-2.0" ]
2
2021-12-16T16:37:10.000Z
2021-12-16T20:30:12.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import * # Register your models here. def set_active(modeladmin, request, queryset): for user in queryset: user.is_active = True user.save() set_active.short_description = 'Set Account Status: Active' de...
31.217391
96
0.639972
154
1,436
5.844156
0.402597
0.07
0.113333
0.062222
0.191111
0.12
0.12
0.12
0.12
0.12
0
0.001765
0.211003
1,436
46
97
31.217391
0.792586
0.089136
0
0.114286
0
0
0.199387
0
0
0
0
0
0
1
0.057143
false
0.028571
0.085714
0
0.342857
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
6f637c0d8807f40cbf867588212e880e31335fd4
26,912
py
Python
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
TP2/pyApp/venv/lib/python3.8/site-packages/pyloco/task.py
MariusBallot/09-2021-Robotics-EFREI-Files
cf6bdb7b9d3b9f368970fbed42c6b403f56b0eeb
[ "W3C" ]
null
null
null
# -*- coding: utf-8 -*- """task module.""" from __future__ import unicode_literals import sys import os import pydoc import time import json import logging import collections import pkg_resources import subprocess import webbrowser import websocket from pyloco.parse import TaskArgParser, PylocoArgParser from pyloco....
31.329453
111
0.506986
2,771
26,912
4.751714
0.146878
0.019215
0.010633
0.01443
0.332118
0.278727
0.220248
0.178704
0.124782
0.105795
0
0.004644
0.391944
26,912
858
112
31.365967
0.799988
0.079927
0
0.265306
0
0
0.094228
0
0
0
0
0.002331
0.022263
1
0.076067
false
0.009276
0.064935
0.009276
0.191095
0.027829
0
0
0
null
0
0
0
0
0
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
6f647632e2c96c2063ca3a82382e2a10a7664a9e
1,716
py
Python
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
1
2018-01-12T14:09:48.000Z
2018-01-12T14:09:48.000Z
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
1
2019-09-10T05:03:47.000Z
2019-09-10T05:03:47.000Z
lino_xl/lib/reception/__init__.py
khchine5/xl
b1634937a9ce87af1e948eb712b934b11f221d9d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright 2013-2016 Luc Saffre # # License: BSD (see file COPYING for details) """This module is for managing a reception desk and a waiting queue: register clients into a waiting queue as they present themselves at a reception desk (Empfangsschalter), and unregister them when they leave agai...
28.6
72
0.701049
244
1,716
4.836066
0.57377
0.020339
0.042373
0.064407
0
0
0
0
0
0
0
0.006637
0.20979
1,716
59
73
29.084746
0.863569
0.441142
0
0
0
0
0.296012
0.187117
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.428571
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
6f659c58598cee6e53216640aed93bdbc6f2a194
320
py
Python
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/RuleRemoveThe.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
from accent_analyser.rules.EngRule import EngRule class RuleRemoveThe(EngRule): def __init__(self, likelihood=1.0): super().__init__(likelihood) def _convert_core(self, words: list, current_index: int): word = words[current_index].content if word == "the": return "" else: return word
22.857143
59
0.69375
40
320
5.225
0.7
0.114833
0
0
0
0
0
0
0
0
0
0.007782
0.196875
320
13
60
24.615385
0.805447
0
0
0
0
0
0.009375
0
0
0
0
0
0
1
0.2
false
0
0.1
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f6b28d63b93b95d61bab409bb560af9d95cf417
1,505
py
Python
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
2
2019-05-07T03:08:25.000Z
2020-05-22T10:10:00.000Z
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
7
2020-05-22T13:29:42.000Z
2021-09-23T23:30:25.000Z
tornado_demo/web2py/applications/examples/controllers/global.py
ls-2018/py
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
null
null
null
session.forget() def get(args): if args[0].startswith('__'): return None try: obj = globals(), get(args[0]) for k in range(1, len(args)): obj = getattr(obj, args[k]) return obj except: return None def vars(): """the running controller function!""" ...
27.363636
91
0.453821
167
1,505
3.934132
0.371257
0.100457
0.045662
0.021309
0
0
0
0
0
0
0
0.016873
0.409302
1,505
54
92
27.87037
0.72216
0.021262
0
0.083333
0
0
0.063395
0
0
0
0
0
0
1
0.041667
false
0
0
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f6e858702c8ce5b6a0c7be5155f97db4b0d395c
1,950
py
Python
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
null
null
null
src/pyg_base/_zip.py
nclarey/pyg-base
a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862
[ "MIT" ]
1
2022-01-03T21:56:14.000Z
2022-01-03T21:56:14.000Z
from pyg_base._types import is_iterable from pyg_base._loop import len0 __all__ = ['zipper', 'lens'] def lens(*values): """ measures (and enforces) a common length across all values :Parameters: ---------------- *values : lists Raises ------ ValueError if you have values with...
27.083333
118
0.510256
277
1,950
3.548736
0.270758
0.016277
0.024415
0.054934
0.2706
0.249237
0.167854
0.147508
0.114954
0.050865
0
0.064808
0.264103
1,950
71
119
27.464789
0.620209
0.578462
0
0
0
0
0.056515
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.4375
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
6f6e961109cfe080e1074fb4fb957b034dcf9958
1,997
py
Python
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
null
null
null
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
13
2022-02-17T06:05:44.000Z
2022-03-17T02:47:49.000Z
cli/pawls/preprocessors/grobid.py
vtcaregorodtcev/pawls-1
32cfb7bc56edac2fe972467a1133a31ae901c727
[ "Apache-2.0" ]
2
2021-09-28T08:01:42.000Z
2021-09-28T08:18:31.000Z
import json from typing import List import requests from pawls.preprocessors.model import Page def fetch_grobid_structure(pdf_file: str, grobid_host: str = "http://localhost:8070"): files = { "input": (pdf_file, open(pdf_file, "rb"), "application/pdf", {"Expires": "0"}) } url = "{}/api/processPdf...
31.203125
86
0.593891
232
1,997
4.987069
0.396552
0.042351
0.025929
0.039758
0.109767
0.069144
0.069144
0.069144
0.069144
0
0
0.011997
0.290436
1,997
63
87
31.698413
0.804517
0.190285
0
0.044444
0
0
0.123653
0.016487
0
0
0
0
0
1
0.066667
false
0
0.088889
0
0.222222
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
6f6fd6c2d42d2b9282a1e6483b23196da4a8aeeb
2,614
py
Python
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
4
2021-09-16T16:46:53.000Z
2022-02-06T13:00:14.000Z
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
80
2020-10-31T09:14:46.000Z
2021-01-12T23:38:15.000Z
scripts/run_custom_eslint_tests.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
1
2020-10-02T13:28:26.000Z
2020-10-02T13:28:26.000Z
# coding: utf-8 # # Copyright 2020 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
35.808219
74
0.649579
354
2,614
4.627119
0.409605
0.06044
0.078144
0.025641
0.113553
0.069597
0
0
0
0
0
0.013176
0.18707
2,614
72
75
36.305556
0.757647
0.281943
0
0.142857
0
0.047619
0.235135
0.136757
0
0
0
0
0
1
0.02381
false
0.047619
0.190476
0
0.214286
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
6f6fddc36a83d5396bed90f0e96d5995bd58f9a5
6,274
py
Python
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
nmpc_mhe/tst_algorithmsv2_nmpc_hi_t0115_setp.py
joycezyu/cappresse
45b40d0e9202180a0a07e1c03960cf30b08a4557
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from pyomo.environ import * from pyomo.core.base import Constraint, Objective, Suffix, minimize from pyomo.opt import ProblemFormat, SolverFactory from nmpc_mhe.dync.NMPCGenv2 import NmpcGen from nmpc_mhe.mods.bfb.nob5_hi_t import bfb_dae from snap_shot import snap import sys, os i...
36.690058
91
0.603602
1,010
6,274
3.580198
0.245545
0.02323
0.034845
0.029038
0.47594
0.426715
0.395741
0.362002
0.30531
0.231471
0
0.075378
0.230316
6,274
170
92
36.905882
0.673431
0.222665
0
0.258333
0
0
0.078322
0.009713
0
0
0
0
0
1
0
false
0.008333
0.083333
0
0.083333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6f709ca217e6ed7e435bf5ff768925bbdc7d9c7c
493
py
Python
csvapi/security.py
quaxsze/csvapi
7e5ab5839fb6cbf667c756798a55c9b719394602
[ "MIT" ]
15
2019-08-23T09:57:54.000Z
2021-11-08T10:38:03.000Z
csvapi/security.py
quaxsze/csvapi
7e5ab5839fb6cbf667c756798a55c9b719394602
[ "MIT" ]
36
2019-08-21T10:05:53.000Z
2022-03-23T08:58:02.000Z
csvapi/security.py
opendatateam/csvapi
4e4ea7167f7265782c8f654619b060dc04112392
[ "MIT" ]
1
2018-04-25T09:55:25.000Z
2018-04-25T09:55:25.000Z
from urllib.parse import urlparse from quart import current_app as app, request, jsonify def filter_referrers(): filters = app.config.get('REFERRERS_FILTER') if not filters: return None referrer = request.referrer if referrer: parsed = urlparse(referrer) for filter in filters:...
24.65
54
0.614604
54
493
5.555556
0.592593
0.066667
0
0
0
0
0
0
0
0
0
0.008721
0.302231
493
19
55
25.947368
0.863372
0
0
0.125
0
0
0.070994
0
0
0
0
0
0
1
0.0625
false
0
0.125
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
6f722918045c200389c503a068fc9c4194103a3f
9,679
py
Python
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
tests/helper.py
nirs/python-manhole
26821e083eefdc87492b13ebdd20ba000a616141
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import atexit import errno import logging import os import select import signal import sys import time from process_tests import setup_coverage TIMEOUT = int(os.getenv('MANHOLE_TEST_TIMEOUT', 10)) SOCKET_PATH = '/tmp/manhole-socket' OUTPUT = sys.__stdout__ def handle_sigterm(s...
37.226923
116
0.510073
1,022
9,679
4.668297
0.227984
0.049046
0.047789
0.057011
0.36135
0.321945
0.24607
0.20918
0.191155
0.143785
0
0.017848
0.386404
9,679
259
117
37.370656
0.785486
0.025622
0
0.45339
0
0.004237
0.129775
0.026952
0
0
0
0
0.012712
1
0.029661
false
0.008475
0.097458
0
0.127119
0.114407
0
0
0
null
0
0
0
0
0
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
6f741a22f6b69a36890074cd2db8d9ec2d946c37
38,189
py
Python
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
client/external/xp_tracker.py
Suirdna/OR-Origin
8eb7d99a87d835a7d590d56e0088ec79746f4630
[ "MIT" ]
null
null
null
from client import exception, embed_creator, console_interface, discord_manager, file_manager, ini_manager, json_manager, origin, permissions, server_timer from client.config import config as c, language as l from discord.ext import commands, tasks from client.external.hiscores import hiscores_xp from PIL import Image,...
52.601928
366
0.468224
3,900
38,189
4.408462
0.070256
0.020939
0.023847
0.033153
0.709882
0.65422
0.618333
0.593381
0.569709
0.541092
0
0.020576
0.420959
38,189
726
367
52.601928
0.75381
0.001859
0
0.560458
0
0.001634
0.073462
0
0
0
0
0
0
1
0.006536
false
0.003268
0.009804
0.003268
0.022876
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
6f75a1523bdd37ab1cd4cc70ef59345c182747bf
1,437
py
Python
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
days/01/part1.py
gr3yknigh1/aoc2021
55dca0685cc4213f0a14970ae9bfc882a59e82aa
[ "MIT" ]
null
null
null
from __future__ import annotations import os import collections BASE_PATH = os.path.dirname(__file__) INPUT_PATH = os.path.join(BASE_PATH, "input.txt") OUTPUT_PATH = os.path.join(BASE_PATH, "output.txt") def proceed_buffer(buffer: str) -> list[int]: return [int(line) for line in buffer.splitlines()] def mai...
26.127273
69
0.599165
182
1,437
4.510989
0.351648
0.131547
0.079172
0.06821
0.177832
0.141291
0.087698
0.087698
0
0
0
0.00661
0.263048
1,437
54
70
26.611111
0.76865
0
0
0
0
0
0.135003
0.01531
0
0
0
0
0
1
0.052632
false
0
0.078947
0.026316
0.184211
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
6f762afe905140cf74ce1d262513f6770e5cf96a
1,314
py
Python
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
leaflet_storage/management/commands/storagei18n.py
Biondilbiondo/django-leaflet-storage-concurrent-editing
98cc3be7c74ea545ed8a75b9ae198acfcbba03a3
[ "WTFPL" ]
null
null
null
import io import os from django.core.management.base import BaseCommand from django.conf import settings from django.contrib.staticfiles import finders from django.template.loader import render_to_string from django.utils.translation import to_locale class Command(BaseCommand): def handle(self, *args, **options...
33.692308
79
0.542618
148
1,314
4.756757
0.452703
0.071023
0.039773
0.056818
0.042614
0
0
0
0
0
0
0.002328
0.346271
1,314
38
80
34.578947
0.817229
0
0
0
0
0
0.124049
0.041857
0
0
0
0
0
1
0.060606
false
0
0.212121
0
0.30303
0.121212
0
0
0
null
0
0
0
0
0
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
6f76bbd91ccc6729e6385bce7b0f809d9736e91f
37,910
py
Python
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
spikemetrics/metrics.py
MarineChap/spikemetrics
c83a2e1e12efab5d2987d38d129ee6862cb4a454
[ "MIT" ]
null
null
null
# Copyright © 2019. Allen Institute. All rights reserved. import numpy as np import pandas as pd from collections import OrderedDict import math import warnings from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA from sklearn.neighbors import NearestNeighbors from sklearn.metrics import silho...
39.163223
120
0.603324
4,574
37,910
4.728902
0.114123
0.031253
0.01387
0.011003
0.407628
0.350763
0.277023
0.244568
0.211743
0.183033
0
0.008911
0.313242
37,910
967
121
39.203723
0.821855
0.27742
0
0.280088
0
0
0.031934
0.003193
0
0
0
0
0
1
0.043764
false
0.002188
0.028446
0
0.118162
0.039387
0
0
0
null
0
0
0
0
0
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
6f76bcfc2a09b5cceb410578869827df3cb772bb
23,746
py
Python
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
pdpbox/pdp_plot_utils.py
flinder/PDPbox
b832e37f840ae885d39a0ba8ff458f4be27dcc65
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec import copy from .pdp_calc_utils import _sample_data, _find_onehot_actual, _find_closest from sklearn.cluster import MiniBatchKMeans, KMeans def _pdp_plot_title(n_grids, feature_name, ax, multi_flag, whi...
40.730703
130
0.660111
3,420
23,746
4.313158
0.091228
0.069826
0.029422
0.029286
0.63955
0.559555
0.508643
0.464646
0.438004
0.417599
0
0.015965
0.232418
23,746
582
131
40.800687
0.793329
0.183526
0
0.298592
0
0
0.078561
0
0
0
0
0
0
1
0.033803
false
0
0.019718
0
0.059155
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
6f79949d19627c5156b74487a315345109a1b4e7
2,327
py
Python
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
null
null
null
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
null
null
null
egs/skl_historical_poly_regression_variable_window_overmqtt/client_mqtt_random.py
COMEA-TUAS/mcx-public
8ff486739f5332d075aeaaf7ea5dd33a04857b5c
[ "MIT" ]
1
2022-03-01T06:42:04.000Z
2022-03-01T06:42:04.000Z
#!/usr/bin/env python3 """Script for simulating IOT measurement stream to ModelConductor experiment.""" import pandas as pd import numpy as np import sqlalchemy as sqla from datetime import datetime as dt from time import sleep, time import logging import sys, os, asyncio from hbmqtt.client import MQTTClient, Connect...
33.724638
111
0.689729
323
2,327
4.786378
0.442724
0.023286
0.021345
0.03881
0.103493
0.05304
0.05304
0.05304
0.05304
0.05304
0
0.022117
0.183928
2,327
69
112
33.724638
0.791996
0.041255
0
0
0
0
0.174753
0.038634
0
0
0
0
0
1
0.02
false
0
0.24
0
0.26
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
6f7aa07e116a65a70f05b7ef70691b8f299b021f
694
py
Python
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
5/challenge2.py
roryeiffe/Adent-of-Code
80f123663fcf04bf5f0d6733807b4a2dd53bc68c
[ "MIT" ]
null
null
null
import sys import math L = [] f = open(sys.argv[1],"r") for item in f: L.append(item.strip()) def find_id(sequence): rows = sequence[:7] seats = sequence[7:] upper = 127 lower = 0 for letter in rows: half = math.ceil((upper-lower)/2) if letter == "F": upper -= half if letter == "B": lower += half...
13.09434
35
0.597983
119
694
3.445378
0.344538
0.078049
0.068293
0.082927
0.15122
0.15122
0.15122
0.15122
0
0
0
0.028791
0.24928
694
52
36
13.346154
0.758157
0
0
0.2
0
0
0.007205
0
0
0
0
0
0
1
0.025
false
0
0.05
0
0.1
0.025
0
0
0
null
0
0
0
0
0
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
488a4b657eabc94e1d145860d1dd73207641241d
2,890
py
Python
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
1
2018-03-26T23:46:01.000Z
2018-03-26T23:46:01.000Z
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
4
2018-03-24T15:41:12.000Z
2018-04-08T23:49:35.000Z
Injector/injector.py
MateusGabi/Binary-Hacking-on-Super-Mario
e75292aee6b419aad2d8fe173c2fab85d9ce23ee
[ "MIT" ]
1
2018-04-03T23:49:37.000Z
2018-04-03T23:49:37.000Z
# -*- coding: utf-8 -*- """ Injector. A partir de um arquivo binario, de uma tabela binaria gerada com o Finder, e um arquivo de substituição, o Injector é capaz de injetar um texto no binario trocando o texto in-game O Injector faz automaticamente a adequação do tamanho do texto ao tamanho da caixa, truncan...
29.489796
96
0.565052
355
2,890
4.492958
0.402817
0.037618
0.042633
0.04326
0.106583
0.106583
0.106583
0.106583
0.06395
0.06395
0
0.010251
0.324913
2,890
97
97
29.793814
0.807278
0.157439
0
0
0
0
0.044659
0
0
0
0
0
0
1
0.086207
false
0.017241
0.086207
0
0.189655
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
488d15bc02d47b9fb1ebe771ea194aa64ab3caea
3,545
py
Python
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
4
2019-10-23T06:58:31.000Z
2021-11-01T17:08:34.000Z
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
1
2021-06-02T00:35:23.000Z
2021-06-02T00:35:23.000Z
aio_logstash/formatter.py
SinaKhorami/aio-logstash
ac820bd683c79389bcc2750c753ea860eb35c686
[ "MIT" ]
1
2019-10-23T06:58:45.000Z
2019-10-23T06:58:45.000Z
import abc import json import logging import socket import sys import time import aio_logstash import traceback from aio_logstash import constants from datetime import datetime, date class BaseFormatter(logging.Formatter): def __init__(self, message_type='aio_logstash', fqdn=False): super().__init__() ...
29.297521
97
0.618336
394
3,545
5.263959
0.304569
0.037126
0.023144
0.023144
0.028447
0.028447
0
0
0
0
0
0.003908
0.278138
3,545
120
98
29.541667
0.806565
0
0
0.053191
0
0
0.064598
0.006488
0
0
0
0
0
1
0.106383
false
0.010638
0.106383
0.010638
0.37234
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
488df2d8a33bbefd7d27eb53f611e19d0eba095d
18,352
py
Python
.venv/lib/python2.7/site-packages/celery/events/cursesmon.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
.venv/lib/python2.7/site-packages/celery/events/cursesmon.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
3
2020-02-11T23:03:45.000Z
2021-06-10T18:05:11.000Z
oo/lib/python3.5/site-packages/celery/events/cursesmon.py
chunky2808/SPOJ-history-Django-App
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
1
2019-10-26T04:20:52.000Z
2019-10-26T04:20:52.000Z
# -*- coding: utf-8 -*- """Graphical monitor of Celery events using curses.""" from __future__ import absolute_import, print_function, unicode_literals import curses import sys import threading from datetime import datetime from itertools import count from textwrap import wrap from time import time from math import c...
33.797422
78
0.520325
2,064
18,352
4.484981
0.157461
0.024198
0.027655
0.008426
0.214972
0.172194
0.143243
0.117209
0.085881
0.068057
0
0.010652
0.375926
18,352
542
79
33.859779
0.797608
0.027245
0
0.237136
0
0.002237
0.044403
0.001403
0
0
0
0
0
1
0.082774
false
0.004474
0.03132
0.006711
0.210291
0.008949
0
0
0
null
0
0
0
0
0
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
488ea1167c4ff5c98e7760397218e331d094d166
1,705
py
Python
features/extraction/3_extraction/feature_extractors/utilization.py
bayesimpact/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
19
2016-10-06T18:10:36.000Z
2018-04-04T02:30:09.000Z
features/extraction/3_extraction/feature_extractors/utilization.py
BeaconLabs/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
2
2017-10-26T19:22:58.000Z
2017-11-16T07:44:58.000Z
features/extraction/3_extraction/feature_extractors/utilization.py
bayesimpact/readmission-risk
5b0f6c93826601e2dbb9c8c276e92801772e17c4
[ "Apache-2.0" ]
9
2016-11-15T14:13:20.000Z
2021-12-19T20:27:58.000Z
"""A feature extractor for patients' utilization.""" from __future__ import absolute_import import logging import pandas as pd from sutter.lib import postgres from sutter.lib.feature_extractor import FeatureExtractor log = logging.getLogger('feature_extraction') class UtilizationExtractor(FeatureExtractor): ...
34.1
95
0.626979
213
1,705
4.807512
0.502347
0.03125
0.025391
0.027344
0
0
0
0
0
0
0
0.011299
0.273314
1,705
49
96
34.795918
0.815174
0.281525
0
0
0
0
0.201695
0.044068
0
0
0
0
0
1
0.04
false
0
0.2
0
0.32
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
4893c3ed4760195e110268be8d490ec224a54ecd
1,434
py
Python
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
690
2020-07-31T15:37:59.000Z
2022-03-31T20:51:46.000Z
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
90
2020-07-25T11:00:15.000Z
2022-03-31T01:59:59.000Z
fastf1/tests/test_livetiming.py
JellybeanAsh/Fast-F1
cf0cb20fdd3e89fdee3755097722db5ced3a23b5
[ "MIT" ]
68
2020-07-21T23:21:29.000Z
2022-03-30T16:12:01.000Z
import os from fastf1.core import Session, Weekend from fastf1.livetiming.data import LiveTimingData def test_file_loading_w_errors(): # load file with many errors and invalid data without crashing livedata = LiveTimingData('fastf1/testing/reference_data/livedata/with_errors.txt') livedata.load() def t...
34.142857
87
0.679219
177
1,434
5.39548
0.468927
0.092147
0.023037
0.037696
0.186387
0.117277
0.117277
0
0
0
0
0.046769
0.179916
1,434
41
88
34.97561
0.765306
0.094142
0
0.148148
0
0
0.273359
0.105019
0
0
0
0
0.148148
1
0.111111
false
0
0.111111
0
0.222222
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
48946b441f56097b2a5a11c0168a86635a484d94
1,768
py
Python
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
4
2021-12-13T09:16:07.000Z
2022-01-06T15:45:02.000Z
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
null
null
null
src/plot/S0_read_jld2.py
OUCyf/NoiseCC
ad47e6894568bd007cd0425f766ba8aa243f83e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 21 20:09:08 2021 ###################### ##### read h5 ######## ###################### # 1.read h5-file h5_file = h5py.File(files[1],'r') # 2.show all keys in h5-file h5_file.keys() # 3.循环读取所有 keys in h5-file for key in h5_file.keys(): onekey =...
19.644444
84
0.581448
290
1,768
3.396552
0.372414
0.081218
0.040609
0.024365
0
0
0
0
0
0
0
0.061184
0.140271
1,768
89
85
19.865169
0.586842
0.611425
0
0
0
0
0.23503
0.112275
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
4896e1b1c5caef0d1e5aee9a140b1ba801b67e72
6,704
py
Python
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
src/test/test_pg_function.py
gyana/alembic_utils
a4bc7f5f025335faad7b178eb84ab78093e525ec
[ "MIT" ]
null
null
null
from alembic_utils.pg_function import PGFunction from alembic_utils.replaceable_entity import register_entities from alembic_utils.testbase import TEST_VERSIONS_ROOT, run_alembic_command TO_UPPER = PGFunction( schema="public", signature="toUpper(some_text text default 'my text!')", definition=""" r...
34.735751
100
0.702118
789
6,704
5.686946
0.174905
0.094718
0.064408
0.082015
0.670158
0.670158
0.656786
0.627814
0.587921
0.569646
0
0.002407
0.194511
6,704
192
101
34.916667
0.828519
0.103371
0
0.545455
0
0
0.215259
0.008515
0
0
0
0
0.14876
1
0.049587
false
0
0.041322
0
0.090909
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
4898793ace916333da3e62990ff5fb14ce91eb0e
4,762
py
Python
bin/mkSampleInfo.py
icbi-lab/nextNEOpi
d9f6ccf5178e7ef1742b95e740ce3f39405f21dd
[ "BSD-3-Clause-Clear" ]
24
2021-06-16T07:20:43.000Z
2022-03-23T05:40:01.000Z
bin/mkSampleInfo.py
abyssum/nextNEOpi
f7de4c76c7d98be485f8db0999ad278cd17fa642
[ "BSD-3-Clause-Clear" ]
2
2021-12-09T16:43:45.000Z
2022-02-18T14:03:36.000Z
bin/mkSampleInfo.py
abyssum/nextNEOpi
f7de4c76c7d98be485f8db0999ad278cd17fa642
[ "BSD-3-Clause-Clear" ]
5
2021-08-25T06:54:47.000Z
2022-03-03T06:11:31.000Z
#!/usr/bin/env python """ Requirements: * Python >= 3.7 * Pysam Copyright (c) 2021 Dietmar Rieder <dietmar.rieder@i-med.ac.at> MIT License <http://opensource.org/licenses/MIT> """ RELEASE = False __version_info__ = ( "0", "1", ) __version__ = ".".join(__version_info__) __version__ += "-dev" if not ...
26.309392
77
0.545569
589
4,762
4.108659
0.193548
0.072314
0.03719
0.018595
0.386777
0.347934
0.251653
0.226033
0.169421
0.143802
0
0.009934
0.302394
4,762
180
78
26.455556
0.718543
0.061949
0
0.204225
0
0
0.174725
0
0
0
0
0
0
1
0.035211
false
0
0.021127
0
0.084507
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
489a6ae22cd0b248814c3b6aa65494aabadf9db8
3,115
py
Python
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
garrick.py
SebNickel/garrick
b2ebf24054bc2770ced1674bd102022f8d01b169
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import colorama from pick_db_file import pick_db_file import db_connection import card_repository from review_cards import review_cards from new_card import new_card from new_cards import new_cards import review from user_colors import print_info, print_instruction, print_error from usa...
40.454545
97
0.65618
461
3,115
4.193059
0.219089
0.061562
0.066218
0.074496
0.509053
0.45732
0.361097
0.321262
0.294361
0.294361
0
0.010678
0.218299
3,115
76
98
40.986842
0.783162
0.012841
0
0
0
0
0.172144
0
0
0
0
0
0
1
0.015385
false
0
0.169231
0
0.184615
0.184615
0
0
0
null
0
0
0
0
0
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
489b07c5f60a2349d39829b932ee2b381db5353d
14,996
py
Python
perceiver/train/dataset.py
kawa-work/deepmind-research
8fb75643598f680fdde8d20342b1b82bd2c0abb2
[ "Apache-2.0" ]
10,110
2019-08-27T20:05:30.000Z
2022-03-31T16:31:56.000Z
perceiver/train/dataset.py
subhayuroy/deepmind-research
769bfdbeafbcb472cb8e2c6cfa746b53ac82efc2
[ "Apache-2.0" ]
317
2019-11-09T10:19:10.000Z
2022-03-31T00:05:19.000Z
perceiver/train/dataset.py
subhayuroy/deepmind-research
769bfdbeafbcb472cb8e2c6cfa746b53ac82efc2
[ "Apache-2.0" ]
2,170
2019-08-28T12:53:36.000Z
2022-03-31T13:15:11.000Z
# Copyright 2021 DeepMind Technologies Limited # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
35.367925
80
0.684449
2,199
14,996
4.451569
0.196453
0.023496
0.011033
0.013587
0.268873
0.231893
0.187353
0.155378
0.128001
0.108081
0
0.02555
0.190918
14,996
423
81
35.451537
0.781258
0.197119
0
0.208481
0
0
0.045172
0
0
0
0
0
0.010601
1
0.060071
false
0
0.028269
0.007067
0.166078
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
489b33857f5199eb9d0dc568f0aa601495f6f304
12,621
py
Python
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/manipulate_polynomials.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
import numpy as np from scipy.special import factorial from pyapprox.indexing import hash_array from pyapprox.indexing import compute_hyperbolic_level_indices def multiply_multivariate_polynomials(indices1,coeffs1,indices2,coeffs2): """ TODO: instead of using dictionary to colect terms consider using uniqu...
32.44473
120
0.659853
1,707
12,621
4.688928
0.135911
0.021864
0.022489
0.013493
0.391054
0.322089
0.286732
0.267866
0.220765
0.205522
0
0.017811
0.239284
12,621
388
121
32.528351
0.815853
0.356152
0
0.203209
0
0
0
0
0
0
0
0.005155
0.096257
1
0.069519
false
0
0.02139
0
0.160428
0.005348
0
0
0
null
0
0
0
0
0
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
489cc2435903d89dac82418e6c3f47ec952a38f4
12,303
py
Python
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
core/data/load_data.py
Originofamonia/mcan-vqa
e7e9fdc654d72dbbcbc03e43ae8a59c16b6d10d1
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------- # mcan-vqa (Deep Modular Co-Attention Networks) # Licensed under The MIT License [see LICENSE for details] # Written by Yuhao Cui https://github.com/cuiyuhao1996 # -------------------------------------------------------- import h5py import pickle import random ...
42.71875
142
0.600992
1,706
12,303
4.032825
0.169402
0.057994
0.028779
0.023547
0.493895
0.466715
0.415407
0.381541
0.33314
0.298401
0
0.016435
0.263107
12,303
287
143
42.867596
0.742444
0.299846
0
0.329032
0
0
0.077313
0.003064
0
0
0
0
0
1
0.058065
false
0
0.064516
0.012903
0.187097
0.070968
0
0
0
null
0
0
0
0
0
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
489e4aad3b2feb84feec86ee49098494b4522381
3,987
py
Python
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
1
2019-06-12T17:31:10.000Z
2019-06-12T17:31:10.000Z
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
null
null
null
spyder/widgets/ipythonconsole/debugging.py
Bhanditz/spyder
903ee4ace0f85ece730bcb670b1b92d464486f1a
[ "MIT" ]
1
2019-01-16T06:51:50.000Z
2019-01-16T06:51:50.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Widget that handles communications between a console in debugging mode and Spyder """ import ast from qtpy.QtCore import Qt from qtconsole.rich_jupyter_widget ...
36.577982
80
0.600953
461
3,987
4.982646
0.37744
0.034828
0.041794
0.045712
0.208098
0.121898
0.09926
0.09926
0.09926
0
0
0.000703
0.286431
3,987
108
81
36.916667
0.806327
0.275897
0
0.258621
0
0
0.112514
0.044356
0
0
0
0
0
1
0.12069
false
0.017241
0.051724
0
0.258621
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
48a016a1659ce678fbb42661714443c79c8a4486
9,848
py
Python
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
1
2021-11-28T09:29:33.000Z
2021-11-28T09:29:33.000Z
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
null
null
null
code/scripts/train_fxns_nonimage.py
estherrolf/representation-matters
502e351e21fc6b33aaa5c96b8c1409c76807f5a7
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import sklearn.metrics from dataset_chunking_fxns import subsample_df_by_groups import sklearn import sklearn.linear_model from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from sklearn.pipeline import make_pipeline from sklearn.preprocessing import StandardScaler import time...
39.870445
109
0.491166
1,047
9,848
4.312321
0.176695
0.056035
0.0268
0.012182
0.491694
0.398228
0.366556
0.351052
0.351052
0.343965
0
0.009639
0.431154
9,848
247
110
39.870445
0.796323
0.059504
0
0.475676
0
0
0.016005
0
0
0
0
0
0
1
0.037838
false
0
0.048649
0
0.124324
0.032432
0
0
0
null
0
0
0
0
0
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
48a147ad6df1458c845aa4fd687c23becb0926e9
6,206
py
Python
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
MITx-6.00.1x-EDX-Introduction-to-Computer-Science/Week-7/PSET-7/phraseTriggers.py
lilsweetcaligula/MIT6.00.1x
ee2902782a08ff685e388b2f40c09ea8c9c5fcfe
[ "MIT" ]
null
null
null
""" PSET-7 Part 2: Triggers (PhraseTriggers) At this point, you have no way of writing a trigger that matches on "New York City" -- the only triggers you know how to write would be a trigger that would fire on "New" AND "York" AND "City" -- which also fires on the phrase "New students at York University love the c...
41.099338
150
0.549468
663
6,206
5.131222
0.233786
0.058789
0.035567
0.049383
0.60729
0.546443
0.520576
0.520576
0.509406
0.509406
0
0.017294
0.36642
6,206
150
151
41.373333
0.847915
0.257493
0
0.588235
0
0
0.012746
0
0
0
0.003578
0
0
1
0.105882
false
0
0
0.011765
0.305882
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
48a22194d70cb5daa8b009c12fc1c26cc1c8d905
1,522
py
Python
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
1
2017-03-02T19:32:31.000Z
2017-03-02T19:32:31.000Z
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
null
null
null
vault/tests/unit/test_views.py
Natan7/vault
ad0e9d5434dc59c9573afefef5e4eb390a7383ae
[ "Apache-2.0" ]
2
2018-03-14T16:56:53.000Z
2018-03-14T17:20:07.000Z
# -*- coding: utf-8 -*- from unittest import TestCase from mock import Mock, patch from vault.tests.fakes import fake_request from vault.views import SetProjectView from django.utils.translation import ugettext as _ class SetProjectTest(TestCase): def setUp(self): self.view = SetProjectView.as_view() ...
33.086957
78
0.704336
198
1,522
5.227273
0.343434
0.127536
0.057971
0.100483
0.514976
0.488889
0.454106
0.454106
0.454106
0.454106
0
0.008842
0.182654
1,522
45
79
33.822222
0.823151
0.013798
0
0.333333
0
0
0.074049
0
0
0
0
0
0.2
1
0.166667
false
0
0.166667
0
0.366667
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
48a2c6f00acb55753f06b34ad48a128100334441
2,364
py
Python
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
4
2020-04-08T03:42:02.000Z
2020-10-01T20:34:48.000Z
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
93
2020-03-26T14:29:14.000Z
2020-11-12T05:54:55.000Z
qa/tasks/cephfs/test_dump_tree.py
rpratap-bot/ceph
9834961a66927ae856935591f2fd51082e2ee484
[ "MIT" ]
23
2020-03-24T10:28:44.000Z
2020-09-24T09:42:19.000Z
from tasks.cephfs.cephfs_test_case import CephFSTestCase import random import os class TestDumpTree(CephFSTestCase): def get_paths_to_ino(self): inos = {} p = self.mount_a.run_shell(["find", "./"]) paths = p.stdout.getvalue().strip().split() for path in paths: inos[path]...
35.283582
76
0.571489
305
2,364
4.272131
0.252459
0.092095
0.061397
0.069839
0.485802
0.471988
0.4198
0.378358
0.221796
0.172678
0
0.005817
0.272843
2,364
66
77
35.818182
0.752182
0.016074
0
0.22449
0
0
0.11714
0.03273
0
0
0
0
0.061224
1
0.081633
false
0
0.061224
0
0.183673
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
48a598d9751db785f23d9a8e28422d557cff93bc
966
py
Python
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
catkin_ws/src/devel_scripts/stepper.py
AROMAeth/robo_code
d920adee8eb7ab285ba50aa31c71d631adc35480
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) control_pins = [7,11,13,15] for pin in control_pins: GPIO.setup(pin, GPIO.OUT) GPIO.output(pin, 0) halfstep_seq = [ [1,0,0,0], [1,1,0,0], [0,1,0,0], [0,1,1,0], [0,0,1,0], [0,0,1,1], [0,0,0,1], [1,0,0,1] ] # speed from 0 to 1 (one bei...
18.576923
67
0.635611
186
966
3.236559
0.268817
0.043189
0.034884
0.039867
0.480066
0.480066
0.480066
0.480066
0.475083
0.475083
0
0.110546
0.1853
966
51
68
18.941176
0.654384
0.118012
0
0.235294
0
0
0
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
48a7ec0bb39b709f9863a091b7d85367791f1dab
2,924
py
Python
Experimental/OpenCVExp.py
awesomesauce12/6DBytes-CV
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
1
2016-06-24T23:09:43.000Z
2016-06-24T23:09:43.000Z
Experimental/OpenCVExp.py
awesomesauce12/image-recognition
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
null
null
null
Experimental/OpenCVExp.py
awesomesauce12/image-recognition
8e48c6e629eedcd5098a0b0f8c90c48e38d5abf8
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os import math os.system("fswebcam -r 507x456 --no-banner image11.jpg") def showImage(capImg): cv2.imshow('img', capImg) cv2.waitKey(0) cv2.destroyAllWindows() img = cv2.imread('image11.jpg',-1) height, width, channel = img.shape topy= height topx = width hsv = cv2.cv...
21.5
94
0.651505
475
2,924
3.974737
0.353684
0.038136
0.006356
0.014831
0.113877
0.020127
0
0
0
0
0
0.111997
0.141929
2,924
135
95
21.659259
0.640494
0.147743
0
0.130435
0
0
0.066566
0
0
0
0
0
0
1
0.021739
false
0
0.086957
0
0.108696
0.108696
0
0
0
null
0
0
0
0
0
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
48a8ac917e1b840d71d262dd221cf4cb43769865
902
py
Python
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
null
null
null
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
1
2022-03-12T00:01:12.000Z
2022-03-12T00:01:12.000Z
optimism/ReadMesh.py
btalamini/optimism
023e1b2a0b137900a7517e4c7ac5056255cf7bbe
[ "MIT" ]
3
2021-12-23T19:53:31.000Z
2022-03-27T23:12:03.000Z
import json from optimism.JaxConfig import * from optimism import Mesh def read_json_mesh(meshFileName): with open(meshFileName, 'r', encoding='utf-8') as jsonFile: meshData = json.load(jsonFile) coordinates = np.array(meshData['coordinates']) connectivity = np.array(meshData['connectivi...
31.103448
74
0.643016
98
902
5.846939
0.438776
0.061082
0.078534
0.08377
0
0
0
0
0
0
0
0.004386
0.241685
902
28
75
32.214286
0.833333
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0.05
false
0
0.15
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
48a9df7987bdd5e6e1faa8cd6a7c8279d997c6ae
1,058
py
Python
networkx/algorithms/approximation/ramsey.py
rakschahsa/networkx
6cac55b1064c3c346665f9281680fa3b66442ad0
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/approximation/ramsey.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/approximation/ramsey.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# -*- coding: utf-8 -*- """ Ramsey numbers. """ # Copyright (C) 2011 by # Nicholas Mancuso <nick.mancuso@gmail.com> # All rights reserved. # BSD license. import networkx as nx from ...utils import arbitrary_element __all__ = ["ramsey_R2"] __author__ = """Nicholas Mancuso (nick.mancuso@gmail.com)""" def ramse...
24.604651
70
0.63138
155
1,058
4.135484
0.490323
0.049922
0.042122
0.081123
0.159126
0.106084
0
0
0
0
0
0.02448
0.227788
1,058
42
71
25.190476
0.760098
0.441399
0
0
0
0
0.093458
0.04486
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.3125
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
48b05f987fe0e54d587244c5320a33f91ef59a44
10,824
py
Python
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
92
2020-01-22T22:15:29.000Z
2022-03-31T05:19:16.000Z
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
604
2020-01-25T17:13:27.000Z
2022-03-31T18:58:24.000Z
robocorp-code/tests/robocorp_code_tests/fixtures.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
39
2020-02-06T00:38:06.000Z
2022-03-15T06:14:19.000Z
import os import pytest from robocorp_ls_core.protocols import IConfigProvider from robocorp_ls_core.robotframework_log import get_logger from robocorp_ls_core.unittest_tools.cases_fixture import CasesFixture from robocorp_code.protocols import IRcc, ActionResult import sys from typing import Any from pathlib import ...
30.490141
324
0.610957
1,149
10,824
5.508268
0.226284
0.032233
0.035393
0.036657
0.310792
0.239216
0.197346
0.173961
0.130036
0.062569
0
0.017501
0.282058
10,824
354
325
30.576271
0.796937
0.036585
0
0.233333
0
0
0.169947
0.031589
0
0
0
0
0.044444
1
0.077778
false
0
0.092593
0.014815
0.266667
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
48b0b31dabd46b83a7d8a1c53e2be4a3ab952b42
2,182
py
Python
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
1
2019-10-10T06:14:45.000Z
2019-10-10T06:14:45.000Z
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulatable_layer.py
akarmi/model-optimization
2d3faaa361ecb3639f4a29da56e0e6ed52336318
[ "Apache-2.0" ]
1
2019-10-10T06:14:48.000Z
2019-10-10T06:14:48.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.770492
80
0.706691
287
2,182
5.348432
0.473868
0.039088
0.033225
0.020847
0.181107
0.14202
0.14202
0.072964
0.072964
0.072964
0
0.004606
0.203941
2,182
60
81
36.366667
0.879102
0.770394
0
0.4
0
0
0.174807
0
0
0
0
0
0
1
0.2
false
0
0.2
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
48b322c1b5c9322a3e7a06f6f8cf4904f59abc42
1,373
py
Python
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
null
null
null
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
1
2019-08-04T22:44:54.000Z
2019-08-04T22:44:54.000Z
GEN_cell_culture/phase_plotting.py
dezeraecox/GEN_cell_culture
70ca933bef53347e916e20e6b86dc9dc9da11825
[ "MIT" ]
null
null
null
import os import re import string import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from GEN_Utils import FileHandling from loguru import logger logger.info("Import OK") # Set sample-specific variables input_path = 'examples/python/gauss_models/' output_path = 'examples/py...
27.46
73
0.718135
223
1,373
4.300448
0.475336
0.04171
0.037539
0
0
0
0
0
0
0
0
0.019183
0.12673
1,373
49
74
28.020408
0.780651
0.095412
0
0
0
0
0.20291
0.088925
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
48b5904c4c46f166269a35d1d5aae2ecfb57bef7
765
py
Python
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
null
null
null
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
1
2020-06-07T17:56:13.000Z
2020-06-07T17:56:13.000Z
Lib/icecreamscrape/__main__.py
kdwatt15/icecreamscrape
aefe18d795bb9ae8daabda7f8e26653df7d47c44
[ "MIT" ]
null
null
null
# Standard imports import sys # Project imports from icecreamscrape.cli import cli from icecreamscrape.webdriver import driver_factory from icecreamscrape import composites as comps from icecreamscrape.composites import create_timestamped_dir def main(args=sys.argv[1:]): """ Main function. :param: args is used for ...
24.677419
60
0.75817
103
765
5.368932
0.466019
0.130199
0.072333
0
0
0
0
0
0
0
0
0.003067
0.147712
765
30
61
25.5
0.845092
0.156863
0
0
0
0
0.012678
0
0
0
0
0
0
1
0.105263
false
0
0.263158
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
48b8c62b25b3330d58b5291c6fc3a3f2df2e485f
5,051
py
Python
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
tests/models/programdb/mission/mission_unit_test.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# pylint: skip-file # type: ignore # -*- coding: utf-8 -*- # # tests.controllers.mission.mission_unit_test.py is part of The # RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """Test class for testing Mission module algorithms ...
33.673333
88
0.713324
591
5,051
5.739425
0.252115
0.067807
0.080483
0.111439
0.416863
0.33638
0.254127
0.206073
0.193986
0.09434
0
0.005736
0.206098
5,051
149
89
33.899329
0.84015
0.219956
0
0.285714
0
0
0.147135
0.059896
0
0
0
0
0.285714
1
0.043956
false
0.010989
0.065934
0
0.340659
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
48b9335e8465f09c7a066bfa90b273be5d354b55
569
py
Python
src/streamlink/packages/flashmedia/flv.py
RomanKornev/streamlink
acdefee0822b9c10628b91a166f9abe084e44800
[ "BSD-2-Clause" ]
5
2019-07-26T17:03:26.000Z
2020-10-17T23:23:43.000Z
src/streamlink/packages/flashmedia/flv.py
RomanKornev/streamlink
acdefee0822b9c10628b91a166f9abe084e44800
[ "BSD-2-Clause" ]
9
2018-01-14T15:20:23.000Z
2021-03-08T20:29:51.000Z
src/streamlink/packages/flashmedia/flv.py
bumplzz69/streamlink
34abc43875d7663ebafa241573dece272e93d88b
[ "BSD-2-Clause" ]
4
2018-01-14T13:27:25.000Z
2021-11-15T22:28:30.000Z
#!/usr/bin/env python from .error import FLVError from .compat import is_py2 from .tag import Header, Tag class FLV(object): def __init__(self, fd=None, strict=False): self.fd = fd self.header = Header.deserialize(self.fd) self.strict = strict def __iter__(self): return self ...
18.966667
62
0.606327
71
569
4.549296
0.478873
0.074303
0.105263
0
0
0
0
0
0
0
0
0.005
0.297012
569
29
63
19.62069
0.8025
0.035149
0
0
0
0
0.005474
0
0
0
0
0
0
1
0.157895
false
0
0.157895
0.052632
0.473684
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