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
9c048e3e8bdc9b4b95cc9e0528a68aa1fd3efcf5
10,365
py
Python
address/models.py
PerchLive/django-address
edab73847ba95d4f7a71993bcd55ea6bf300693e
[ "BSD-3-Clause" ]
null
null
null
address/models.py
PerchLive/django-address
edab73847ba95d4f7a71993bcd55ea6bf300693e
[ "BSD-3-Clause" ]
null
null
null
address/models.py
PerchLive/django-address
edab73847ba95d4f7a71993bcd55ea6bf300693e
[ "BSD-3-Clause" ]
null
null
null
import logging import sys from django.core.exceptions import ValidationError from django.db import models from django.db.models.fields.related import ForeignObject from django.utils.encoding import python_2_unicode_compatible try: from django.db.models.fields.related_descriptors import ForwardManyToOneDescriptor ...
31.409091
117
0.625663
1,218
10,365
5.17734
0.17734
0.026641
0.028544
0.038059
0.19648
0.131462
0.090073
0.053283
0.040913
0.026641
0
0.004349
0.267921
10,365
329
118
31.504559
0.8267
0.122721
0
0.184685
0
0
0.060093
0
0
0
0
0
0
1
0.058559
false
0.004505
0.04955
0.009009
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c07713f7b2c917072be6181205756050fc2c5cb
7,715
py
Python
addons/hr_payroll_account/models/hr_payroll_account.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/hr_payroll_account/models/hr_payroll_account.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/hr_payroll_account/models/hr_payroll_account.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.tools import float_compare, float_is_zero class HrPayslipLine(models.Model): _inherit = 'hr.payslip.line' def _get_partner_...
46.757576
142
0.583279
910
7,715
4.697802
0.164835
0.052632
0.030409
0.037661
0.467135
0.41731
0.386433
0.371462
0.293801
0.293801
0
0.009285
0.302009
7,715
164
143
47.042683
0.784587
0.02722
0
0.251852
0
0
0.155903
0.006418
0
0
0
0
0
1
0.037037
false
0
0.022222
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
9c08054f6ca4be429f3f9506fd1f8ea55ac7ad8b
3,048
py
Python
ml_datasets/utils.py
abkoesdw/ml-datasets
c8c7b85ba8ed9c0ea233b4092d499d5022952011
[ "MIT" ]
1
2020-07-05T04:58:07.000Z
2020-07-05T04:58:07.000Z
ml_datasets/utils.py
abkoesdw/ml-datasets
c8c7b85ba8ed9c0ea233b4092d499d5022952011
[ "MIT" ]
null
null
null
ml_datasets/utils.py
abkoesdw/ml-datasets
c8c7b85ba8ed9c0ea233b4092d499d5022952011
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import sys import numpy as np from matplotlib.colors import LinearSegmentedColormap from matplotlib.colors import BoundaryNorm def plot_images( num_sample_perclass=10, x=None, y=None, labels=None, title=None, cmap=None ): grid_x = num_samp...
27.709091
86
0.597113
451
3,048
3.931264
0.365854
0.020305
0.027073
0.029329
0.055274
0.040609
0.024817
0.024817
0
0
0
0.033247
0.240157
3,048
109
87
27.963303
0.732297
0.03937
0
0.08046
0
0
0.056088
0
0
0
0
0
0
1
0.034483
false
0
0.068966
0
0.103448
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c09326eb5f4c01f6725f6f04b0ab3e2c2184c2f
4,794
py
Python
Simulator/simulator.py
MasterRadule/DefenceFirst
d3c3a652357ac433213c38fa6134780e286f6cf2
[ "MIT" ]
null
null
null
Simulator/simulator.py
MasterRadule/DefenceFirst
d3c3a652357ac433213c38fa6134780e286f6cf2
[ "MIT" ]
null
null
null
Simulator/simulator.py
MasterRadule/DefenceFirst
d3c3a652357ac433213c38fa6134780e286f6cf2
[ "MIT" ]
2
2020-08-02T10:47:17.000Z
2021-08-31T06:00:44.000Z
import logging import os import random from abc import ABC, abstractmethod from random import randint from time import sleep, strftime HOSTNAME = ['defence-first.rs', 'defence-first.de', 'defence-first.ru'] HOSTIP = ['78.218.236.218', '87.236.11.212', '54.147.165.86'] SOURCEIP = ['163.189.141.53', '204.164.10.7', '213...
32.612245
118
0.569462
522
4,794
5.180077
0.33908
0.018121
0.022189
0.031435
0.244822
0.181953
0.139793
0.139793
0.110947
0.110947
0
0.045468
0.275136
4,794
146
119
32.835616
0.732662
0
0
0.196262
0
0.009346
0.205048
0.019816
0
0
0
0
0
1
0.084112
false
0
0.056075
0.018692
0.214953
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c0a0b0b086b2b7d8551997a7e4a8ba952ff7a5b
793
py
Python
pysteam/evaluator/vector_space_error_eval.py
utiasASRL/pysteam
c0c8809ee2a5e1dab5ce7f9e5ff9de91138ce68b
[ "BSD-3-Clause" ]
5
2021-10-23T00:35:20.000Z
2022-03-22T02:32:43.000Z
pysteam/evaluator/vector_space_error_eval.py
utiasASRL/pysteam
c0c8809ee2a5e1dab5ce7f9e5ff9de91138ce68b
[ "BSD-3-Clause" ]
null
null
null
pysteam/evaluator/vector_space_error_eval.py
utiasASRL/pysteam
c0c8809ee2a5e1dab5ce7f9e5ff9de91138ce68b
[ "BSD-3-Clause" ]
1
2022-02-04T21:49:48.000Z
2022-02-04T21:49:48.000Z
from typing import Optional import numpy as np from . import Evaluator from ..state import VectorSpaceStateVar class VectorSpaceErrorEval(Evaluator): """Error evaluator for a measured vector space state variable""" def __init__(self, meas: np.ndarray, state_vec: VectorSpaceStateVar) -> None: super().__init_...
24.78125
79
0.711223
107
793
5.028037
0.411215
0.118959
0.133829
0.052045
0.156134
0
0
0
0
0
0
0.001563
0.192938
793
32
80
24.78125
0.839063
0.07314
0
0
0
0
0
0
0
0
0
0
0.05
1
0.15
false
0
0.2
0.05
0.55
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c0b572f391a67c770410e50b8bf0631101d5372
4,152
py
Python
tests/test_autotuner.py
RajatRasal/devito
162abb6b318e77eaa4e8f719047327c45782056f
[ "MIT" ]
null
null
null
tests/test_autotuner.py
RajatRasal/devito
162abb6b318e77eaa4e8f719047327c45782056f
[ "MIT" ]
null
null
null
tests/test_autotuner.py
RajatRasal/devito
162abb6b318e77eaa4e8f719047327c45782056f
[ "MIT" ]
null
null
null
from __future__ import absolute_import from functools import reduce from operator import mul try: from StringIO import StringIO except ImportError: # Python3 compatibility from io import StringIO import pytest from conftest import skipif_yask import numpy as np from devito import Grid, Function, TimeFun...
35.793103
87
0.67317
535
4,152
5.160748
0.282243
0.05795
0.010866
0.015212
0.544006
0.52155
0.488953
0.488953
0.488953
0.469395
0
0.014101
0.197254
4,152
115
88
36.104348
0.814281
0.138006
0
0.55
0
0
0.067969
0
0
0
0
0
0.075
1
0.025
false
0
0.15
0
0.175
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c0c673d58dcba5d4585b62a8e7fbc1916ed2edb
2,683
py
Python
projects/CharGrid/data/bizcard2coco.py
timctho/detectron2-chargrid
547479c88ad7d1de2348377706167a84d024a622
[ "Apache-2.0" ]
3
2020-03-15T18:33:21.000Z
2020-03-28T18:06:45.000Z
projects/CharGrid/data/bizcard2coco.py
timctho/detectron2-chargrid
547479c88ad7d1de2348377706167a84d024a622
[ "Apache-2.0" ]
2
2021-09-08T01:46:39.000Z
2022-01-13T02:22:56.000Z
projects/CharGrid/data/bizcard2coco.py
timctho/detectron2-chargrid
547479c88ad7d1de2348377706167a84d024a622
[ "Apache-2.0" ]
null
null
null
from data.data_reader import BIZCARD_LABEL_MAP, BizcardDataParser import argparse from pathlib import Path import os import json import cv2 import numpy as np def convert_bizcard_to_coco_format(image_dir, json_dir, id_list, out_dir, out_name): coco_json = {} images = [] annotations = [] categories = [...
31.197674
120
0.566157
338
2,683
4.233728
0.286982
0.0587
0.031447
0.039133
0.238994
0.136268
0
0
0
0
0
0.00535
0.303392
2,683
85
121
31.564706
0.7603
0
0
0.027778
0
0
0.065971
0
0
0
0
0
0
1
0.013889
false
0
0.097222
0
0.111111
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c0cd3c1e4e41a88f41a644df51b7c36f341d915
643
py
Python
deckz/cli/run.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
null
null
null
deckz/cli/run.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
41
2020-04-06T13:49:18.000Z
2020-12-24T11:14:47.000Z
deckz/cli/run.py
m09/deckz
0f97ef2a43c2c714ac18173a4fe3266cccba31e2
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from typing import List, Optional from typer import Argument from deckz.cli import app from deckz.paths import Paths from deckz.running import run as running_run @app.command() def run( targets: Optional[List[str]] = Argument(None), handout: bool = True, presentation: bool = Tru...
22.964286
50
0.676516
80
643
5.325
0.4125
0.06338
0
0
0
0
0
0
0
0
0
0
0.227061
643
27
51
23.814815
0.857143
0.032659
0
0
0
0
0.001623
0
0
0
0
0
0
1
0.045455
false
0
0.272727
0
0.318182
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c0e950fb4a4ebdf55176f8dd2da092d38504b70
2,171
py
Python
chat.py
rchampa/chat-server
34b5897e90b580754ad95b36bf7f23ac9baf3175
[ "MIT" ]
null
null
null
chat.py
rchampa/chat-server
34b5897e90b580754ad95b36bf7f23ac9baf3175
[ "MIT" ]
null
null
null
chat.py
rchampa/chat-server
34b5897e90b580754ad95b36bf7f23ac9baf3175
[ "MIT" ]
null
null
null
import asyncio import contextvars import aioredis import uvloop from aioredis import Redis from fastapi import FastAPI from starlette.middleware.base import BaseHTTPMiddleware from starlette.staticfiles import StaticFiles from RLog import rprint from routers import apirest, websockets REDIS_HOST = 'redis' REDIS_PORT =...
31.463768
119
0.720405
281
2,171
5.359431
0.441281
0.02988
0.046481
0.047809
0.052457
0.052457
0.035857
0
0
0
0
0.008319
0.169507
2,171
68
120
31.926471
0.826955
0.063565
0
0
0
0
0.121675
0
0
0
0
0
0
1
0.018182
false
0
0.2
0
0.272727
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c0eb1c40d85566bde4854bf69d4592341ad2835
1,009
py
Python
cli.py
abel-bernabeu/facecompressor
9322f4e3d3f2787dc9dec2fad6b3f1995d052077
[ "BSD-3-Clause" ]
2
2020-10-20T09:35:56.000Z
2021-04-27T11:27:47.000Z
cli.py
abel-bernabeu/facecompressor
9322f4e3d3f2787dc9dec2fad6b3f1995d052077
[ "BSD-3-Clause" ]
null
null
null
cli.py
abel-bernabeu/facecompressor
9322f4e3d3f2787dc9dec2fad6b3f1995d052077
[ "BSD-3-Clause" ]
null
null
null
import argparse import autoencoder def addTrainablesArg(parser): parser.add_argument('--model', dest='model', help='Trained model', default='model.pt') def addExchangeArg(parser): parser.add_argument('--exchange', dest='exchange', help='File with exchanged data', required=True) parser = argparse.ArgumentPa...
31.53125
102
0.769078
124
1,009
6.129032
0.290323
0.059211
0.089474
0.060526
0.065789
0
0
0
0
0
0
0
0.09217
1,009
31
103
32.548387
0.829694
0
0
0
0
0
0.172448
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c0f0c2835497cfafc1c97305175f1c3c60456a9
6,995
py
Python
lib/bridgedb/email/request.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/email/request.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/email/request.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8; test-case-name: bridgedb.test.test_email_request; -*- #_____________________________________________________________________________ # # This file is part of BridgeDB, a Tor bridge distribution system. # # :authors: Nick Mathewson <nickm@torproject.org> # Isis Lovecruft <isis@torproject.o...
37.406417
79
0.666905
802
6,995
5.578554
0.283042
0.014305
0.020116
0.01274
0.236477
0.228431
0.217702
0.217702
0.206527
0.206527
0
0.0063
0.251179
6,995
186
80
37.607527
0.847843
0.551966
0
0.086957
0
0
0.123576
0
0
0
0
0
0
1
0.086957
false
0.028986
0.101449
0
0.246377
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c104172c7871ed658426c42c033c011c356f2f0
2,250
py
Python
packages/pyre/schemata/Container.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
packages/pyre/schemata/Container.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
packages/pyre/schemata/Container.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2021 all rights reserved # # superclass from .Schema import Schema # declaration class Container(Schema): """ The base class for type declarators that are sequences of other types """ # constants typename = 'container' # ...
28.481013
95
0.597333
275
2,250
4.84
0.483636
0.022539
0.024042
0
0
0
0
0
0
0
0
0.005825
0.313333
2,250
78
96
28.846154
0.855663
0.423556
0
0.086957
0
0
0.055696
0
0
0
0
0
0
1
0.173913
false
0
0.043478
0
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c108597606416225c709da3b768b53eee32eb1f
98,110
py
Python
electronicparsers/exciting/parser.py
nomad-coe/electronic-parsers
defb47be6ac22b2e48d4fb9204c85390a3c2f328
[ "Apache-2.0" ]
null
null
null
electronicparsers/exciting/parser.py
nomad-coe/electronic-parsers
defb47be6ac22b2e48d4fb9204c85390a3c2f328
[ "Apache-2.0" ]
null
null
null
electronicparsers/exciting/parser.py
nomad-coe/electronic-parsers
defb47be6ac22b2e48d4fb9204c85390a3c2f328
[ "Apache-2.0" ]
null
null
null
# # Copyright The NOMAD Authors. # # This file is part of NOMAD. # See https://nomad-lab.eu for further info. # # 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/lic...
42.768091
147
0.593742
11,985
98,110
4.577138
0.067668
0.029367
0.0175
0.02625
0.524509
0.442459
0.373243
0.286454
0.235266
0.204514
0
0.006007
0.297584
98,110
2,293
148
42.786742
0.790014
0.038966
0
0.311404
0
0.006579
0.126901
0.04121
0
0
0
0.000872
0
1
0.057018
false
0.000548
0.006579
0.002193
0.122807
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c13b63f316f27bf2445b7a4c746d0ccd26b4b27
2,644
py
Python
batch-tmp.py
texastribune/donations
45a75e528564b5fd502319ed7d512ca91bda7f37
[ "MIT" ]
6
2019-11-16T23:23:11.000Z
2022-02-13T00:53:45.000Z
batch-tmp.py
texastribune/donations
45a75e528564b5fd502319ed7d512ca91bda7f37
[ "MIT" ]
519
2018-11-20T22:22:16.000Z
2022-03-31T11:11:32.000Z
batch-tmp.py
texastribune/donations
45a75e528564b5fd502319ed7d512ca91bda7f37
[ "MIT" ]
6
2019-02-13T05:25:56.000Z
2020-08-19T14:41:14.000Z
import logging from config import ACCOUNTING_MAIL_RECIPIENT, LOG_LEVEL, REDIS_URL, TIMEZONE from datetime import datetime, timedelta from pytz import timezone import celery import redis from charges import amount_to_charge, charge, ChargeException from npsp import Opportunity from util import send_email zone = timez...
22.793103
92
0.642209
326
2,644
5.076687
0.42638
0.021148
0.027795
0.022961
0
0
0
0
0
0
0
0.003011
0.246218
2,644
115
93
22.991304
0.827396
0.113843
0
0
0
0
0.115556
0.012889
0
0
0
0.008696
0
1
0.111111
false
0.015873
0.142857
0
0.301587
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c16016ffd51a0a5e8e9512b1d5a109ac8fa3665
2,405
py
Python
app/__init__.py
jimmybutton/moviedb
61028ac4db7f58a671ab3a1c2afd3bfb53372773
[ "MIT" ]
null
null
null
app/__init__.py
jimmybutton/moviedb
61028ac4db7f58a671ab3a1c2afd3bfb53372773
[ "MIT" ]
null
null
null
app/__init__.py
jimmybutton/moviedb
61028ac4db7f58a671ab3a1c2afd3bfb53372773
[ "MIT" ]
null
null
null
from flask import Flask from config import Config from sqlalchemy import MetaData from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager from flask_moment import Moment from flask_misaka import Misaka from flask_bootstrap import Bootstrap import os import logging ...
28.630952
85
0.690644
323
2,405
4.934985
0.291022
0.033877
0.050188
0.055207
0.098494
0.027604
0.027604
0
0
0
0
0.005227
0.204574
2,405
83
86
28.975904
0.828019
0.010395
0
0
0
0.014706
0.142977
0.074012
0
0
0
0
0
1
0.014706
false
0
0.264706
0
0.294118
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c161b198ce5d788684f6856cc66f4bdfc78c217
7,252
py
Python
optimize.py
AranKomat/Sequential-Alpha-Zero
21f78dc95e70b68b5fd18eb33d1ea2d5b5a853d4
[ "Apache-2.0" ]
7
2021-04-01T09:52:02.000Z
2021-06-09T11:57:55.000Z
optimize.py
AranKomat/Alpha-Transformer
21f78dc95e70b68b5fd18eb33d1ea2d5b5a853d4
[ "Apache-2.0" ]
null
null
null
optimize.py
AranKomat/Alpha-Transformer
21f78dc95e70b68b5fd18eb33d1ea2d5b5a853d4
[ "Apache-2.0" ]
null
null
null
import numpy as np import random from time import time, sleep import h5py import torch import torch.nn as nn import torch.optim as optimizer import glob import os #from scipy.stats import rankdata from lstm import Model, initialize from Optim import ScheduledOptim # import _pickle as cPickle # np.set_printoptions(t...
37.968586
119
0.535714
947
7,252
3.938754
0.252376
0.005898
0.040214
0.034316
0.173995
0.139678
0.090885
0.06756
0.06756
0.031099
0
0.024486
0.335494
7,252
191
120
37.968586
0.749533
0.129619
0
0.094203
0
0
0.02919
0
0
0
0
0.005236
0
1
0.043478
false
0
0.07971
0.021739
0.15942
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c16fad5499d60d29e8503364a688806e916a7fc
2,031
py
Python
src/bin_expr.py
Command-Master/MCCC
a49440bfd8542002aee35d41bee093dc8b51d781
[ "MIT" ]
6
2021-01-15T03:49:01.000Z
2021-11-02T10:43:22.000Z
src/bin_expr.py
Command-Master/MCCC
a49440bfd8542002aee35d41bee093dc8b51d781
[ "MIT" ]
null
null
null
src/bin_expr.py
Command-Master/MCCC
a49440bfd8542002aee35d41bee093dc8b51d781
[ "MIT" ]
null
null
null
from c_int import Int from casting import cast from globals_consts import NAMESPACE from temps import used_temps, get_temp, get_temp_func def binary_expression(copy_strings, expression, target, variables_name, vtypes): from expression import generate_expression c1, t1, tt1 = generate_expression(None, expressi...
39.823529
109
0.557361
259
2,031
4.274131
0.258687
0.065041
0.036134
0.03252
0.471545
0.412827
0.349594
0.349594
0.325203
0.325203
0
0.036017
0.302807
2,031
51
110
39.823529
0.745763
0
0
0.428571
0
0.040816
0.108268
0
0
0
0
0
0
1
0.020408
false
0
0.102041
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c179ba2d16aa2d479920de1be09d5ac3e265384
1,186
py
Python
utest/x3270/test_screenshot.py
MichaelSeeburger/Robot-Framework-Mainframe-3270-Library
76b589d58c55a39f96c027a8ae28c41fa37ed445
[ "MIT" ]
3
2018-10-02T14:32:06.000Z
2018-10-02T14:33:32.000Z
utest/x3270/test_screenshot.py
MichaelSeeburger/Robot-Framework-Mainframe-3270-Library
76b589d58c55a39f96c027a8ae28c41fa37ed445
[ "MIT" ]
null
null
null
utest/x3270/test_screenshot.py
MichaelSeeburger/Robot-Framework-Mainframe-3270-Library
76b589d58c55a39f96c027a8ae28c41fa37ed445
[ "MIT" ]
null
null
null
import os from pytest_mock import MockerFixture from robot.api import logger from Mainframe3270.x3270 import x3270 def test_set_screenshot_folder(under_test: x3270): path = os.getcwd() under_test.set_screenshot_folder(path) assert under_test.imgfolder == os.getcwd() def test_set_screenshot_folder_no...
28.238095
88
0.725126
158
1,186
5.240506
0.379747
0.086957
0.082126
0.111111
0.323672
0.183575
0.10628
0
0
0
0
0.04995
0.155987
1,186
41
89
28.926829
0.777223
0
0
0.074074
0
0
0.232715
0.130691
0
0
0
0
0.148148
1
0.111111
false
0
0.148148
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
9c17a59c22e1b7744bde1f37891a9b3e7d5581e6
35,752
py
Python
splat/photometry.py
brackham/splat
5ee0da82f19017e900ee83af94609dbe9f8a0ea4
[ "MIT" ]
null
null
null
splat/photometry.py
brackham/splat
5ee0da82f19017e900ee83af94609dbe9f8a0ea4
[ "MIT" ]
null
null
null
splat/photometry.py
brackham/splat
5ee0da82f19017e900ee83af94609dbe9f8a0ea4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, division """ .. note:: These are the spectrophotometry functions for SPLAT """ # imports - internal import copy import os # imports - external import numpy from astropy import units as u # standard units from astropy import constants...
39.857302
197
0.623881
4,730
35,752
4.680973
0.11649
0.029357
0.015582
0.018969
0.5759
0.531774
0.490583
0.483628
0.450702
0.432952
0
0.017313
0.229386
35,752
896
198
39.901786
0.786324
0.241273
0
0.43787
0
0.001972
0.080124
0
0
0
0
0
0
1
0.045365
false
0.017751
0.023669
0
0.108481
0.045365
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c18aa829131bc05a668cd4d7a72da450336ed4f
4,766
py
Python
example_scripts/profile_validation/plot_validation_gridded_data.py
British-Oceanographic-Data-Centre/NEMO-ENTRUST
41ed278e56428404ab8ec41d74a9a3a761e308ae
[ "MIT" ]
null
null
null
example_scripts/profile_validation/plot_validation_gridded_data.py
British-Oceanographic-Data-Centre/NEMO-ENTRUST
41ed278e56428404ab8ec41d74a9a3a761e308ae
[ "MIT" ]
null
null
null
example_scripts/profile_validation/plot_validation_gridded_data.py
British-Oceanographic-Data-Centre/NEMO-ENTRUST
41ed278e56428404ab8ec41d74a9a3a761e308ae
[ "MIT" ]
null
null
null
""" Plot up surface or bottom (or any fixed level) errors from a profile object with no z_dim (vertical dimension). Provide an array of netcdf files and mess with the options to get a figure you like. You can define how many rows and columns the plot will have. This script will plot the provided list of netcdf datase...
31.562914
107
0.712547
777
4,766
4.207207
0.342342
0.012848
0.018354
0.022025
0.032426
0.025084
0.025084
0.025084
0.025084
0.025084
0
0.020914
0.187369
4,766
150
108
31.773333
0.823135
0.389845
0
0.069767
0
0
0.089348
0.043097
0
0
0
0
0
1
0
false
0
0.069767
0
0.069767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c191035667faa5283a1d949656c67ee58df9705
500
py
Python
feature-engineering/samples/statistical_features.py
jeury301/text-classifier
d86f658ef3368e4a3f6fd74328fa862e2881ac3b
[ "MIT" ]
null
null
null
feature-engineering/samples/statistical_features.py
jeury301/text-classifier
d86f658ef3368e4a3f6fd74328fa862e2881ac3b
[ "MIT" ]
null
null
null
feature-engineering/samples/statistical_features.py
jeury301/text-classifier
d86f658ef3368e4a3f6fd74328fa862e2881ac3b
[ "MIT" ]
null
null
null
from sklearn.feature_extraction.text import TfidfVectorizer def compute_tf_idf(corpus): """Computing term frequency (tf) - inverse document frequency (idf). :param corpus: List of documents. :returns: tf-idf of corpus. """ return TfidfVectorizer().fit_transform(corpus) if __name__ == '__main__': ...
26.315789
72
0.682
57
500
5.701754
0.614035
0.046154
0.073846
0
0
0
0
0
0
0
0
0
0.216
500
18
73
27.777778
0.829082
0.256
0
0
0
0
0.232295
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c194afa3b23b40f44a756d8271ecc2b2b439fa6
18,197
py
Python
Gds/src/fprime_gds/executables/tcpserver.py
hunterpaulson/fprime
70560897b56dc3037dc966c99751b708b1cc8a05
[ "Apache-2.0" ]
null
null
null
Gds/src/fprime_gds/executables/tcpserver.py
hunterpaulson/fprime
70560897b56dc3037dc966c99751b708b1cc8a05
[ "Apache-2.0" ]
null
null
null
Gds/src/fprime_gds/executables/tcpserver.py
hunterpaulson/fprime
70560897b56dc3037dc966c99751b708b1cc8a05
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import socket import threading try: import socketserver except ImportError: import SocketServer as socketserver import time import os import signal import sys import struct import errno from fprime.constants import DATA_ENCODING from optparse import...
32.093474
129
0.555531
2,104
18,197
4.715779
0.18251
0.011288
0.013102
0.008869
0.453336
0.404858
0.367668
0.352953
0.345495
0.345495
0
0.010943
0.342144
18,197
566
130
32.150177
0.817893
0.250756
0
0.297619
0
0
0.079925
0
0
0
0.000781
0
0
1
0.059524
false
0
0.041667
0.002976
0.181548
0.065476
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c1abecce40e385182d4e13996f277a150f1a3f4
453
py
Python
btb_manager_telegram/__init__.py
haivle/BTB-manager-telegram
c0f71c5a98a3d128ad03578930932737dc580ed1
[ "MIT" ]
3
2021-09-24T10:49:23.000Z
2021-11-18T13:38:17.000Z
btb_manager_telegram/__init__.py
haivle/BTB-manager-telegram
c0f71c5a98a3d128ad03578930932737dc580ed1
[ "MIT" ]
1
2021-09-01T14:40:35.000Z
2021-09-01T14:40:35.000Z
btb_manager_telegram/__init__.py
haivle/BTB-manager-telegram
c0f71c5a98a3d128ad03578930932737dc580ed1
[ "MIT" ]
2
2021-11-03T17:57:07.000Z
2022-02-01T11:55:54.000Z
import logging import sched import time ( MENU, EDIT_COIN_LIST, EDIT_USER_CONFIG, DELETE_DB, UPDATE_TG, UPDATE_BTB, PANIC_BUTTON, CUSTOM_SCRIPT, ) = range(8) BOUGHT, BUYING, SOLD, SELLING = range(4) logging.basicConfig( format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"...
18.875
85
0.697572
59
453
5.152542
0.694915
0.052632
0
0
0
0
0
0
0
0
0
0.005376
0.178808
453
23
86
19.695652
0.811828
0
0
0
0
0
0.174393
0.059603
0
0
0
0
0
1
0
false
0
0.157895
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c1b6d5a187986e544d8284aa99d48f0a66a5c3a
10,390
py
Python
test.py
xiaohuaibaoguigui/EllSeg
ff56b255f8e650856aec9af23792e105897eba5c
[ "MIT" ]
1
2021-05-26T05:45:42.000Z
2021-05-26T05:45:42.000Z
test.py
xiaohuaibaoguigui/EllSeg
ff56b255f8e650856aec9af23792e105897eba5c
[ "MIT" ]
null
null
null
test.py
xiaohuaibaoguigui/EllSeg
ff56b255f8e650856aec9af23792e105897eba5c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import tqdm import torch import pickle import resource import numpy as np import matplotlib.pyplot as plt from args import parse_args from modelSummary import model_dict from pytorchtools import load_from_file from torch.utils.data import DataLoader ...
42.933884
109
0.487777
1,048
10,390
4.63645
0.230916
0.027166
0.02058
0.020169
0.237292
0.124511
0.124511
0.113398
0.07553
0.032517
0
0.013249
0.389798
10,390
241
110
43.112033
0.753155
0.013763
0
0.123656
0
0
0.065045
0
0
0
0
0
0
1
0
false
0
0.086022
0
0.086022
0.053763
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c1c20ef193d7e2a2b62ae78d7b0e1c3d0bfeffb
21,072
py
Python
tests/test_util.py
meskio/tuf
09c3ceb993d40f7339bbbaf4eae617f95b972708
[ "MIT" ]
1
2015-02-16T22:53:00.000Z
2015-02-16T22:53:00.000Z
tests/test_util.py
meskio/tuf
09c3ceb993d40f7339bbbaf4eae617f95b972708
[ "MIT" ]
null
null
null
tests/test_util.py
meskio/tuf
09c3ceb993d40f7339bbbaf4eae617f95b972708
[ "MIT" ]
1
2019-09-12T02:32:54.000Z
2019-09-12T02:32:54.000Z
#!/usr/bin/env python """ <Program Name> test_util.py <Author> Konstantin Andrianov. <Started> February 1, 2013. <Copyright> See LICENSE for licensing information. <Purpose> Unit test for 'util.py' """ # Help with Python 3 compatibility, where the print statement is a function, an # implicit relative im...
36.968421
96
0.689683
2,593
21,072
5.340532
0.15349
0.027296
0.034301
0.030329
0.417966
0.346693
0.300116
0.242779
0.221404
0.197935
0
0.030321
0.204916
21,072
569
97
37.033392
0.796228
0.19291
0
0.240854
0
0
0.097111
0.032153
0
0
0
0
0.216463
1
0.070122
false
0
0.054878
0
0.137195
0.003049
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c1e4d053b5156945879fda6f1eb646b81a07f71
8,282
py
Python
cams/propressing/data_rotate.py
boliqq07/cam3d
8b66681166a8ce0ef3304309385c1b899f1d2bb9
[ "BSD-3-Clause" ]
1
2020-11-23T08:20:38.000Z
2020-11-23T08:20:38.000Z
cams/propressing/data_rotate.py
boliqq07/cam3d
8b66681166a8ce0ef3304309385c1b899f1d2bb9
[ "BSD-3-Clause" ]
null
null
null
cams/propressing/data_rotate.py
boliqq07/cam3d
8b66681166a8ce0ef3304309385c1b899f1d2bb9
[ "BSD-3-Clause" ]
null
null
null
from functools import lru_cache from math import cos, sin import scipy from scipy.ndimage import affine_transform import numpy as np @lru_cache(maxsize=10) def get_matrix(angles=(90, 90, 90), inverse=False): """ Axis of rotation Get matrix by angle. (shear+compress) Examples: z = 120 ######...
32.225681
108
0.584762
1,131
8,282
4.191866
0.161804
0.02953
0.025311
0.069606
0.453491
0.408564
0.390002
0.370808
0.366589
0.363215
0
0.027169
0.266723
8,282
256
109
32.351563
0.753499
0.484545
0
0.093023
0
0
0.010613
0
0
0
0
0
0
1
0.069767
false
0
0.05814
0
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c1f7437cc31d152ad0f3a65db16fb0d7effff6e
596
py
Python
playground/conversions/parser/lola2dot.py
flange/esp
78925925daf876e4936ca7af046b4f884e8a4233
[ "MIT" ]
null
null
null
playground/conversions/parser/lola2dot.py
flange/esp
78925925daf876e4936ca7af046b4f884e8a4233
[ "MIT" ]
null
null
null
playground/conversions/parser/lola2dot.py
flange/esp
78925925daf876e4936ca7af046b4f884e8a4233
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys #lolafile = open("ex-small.graph", "r") source = 0 target = 0 lowlink = 0 trans = "bla" print("digraph {") with open(sys.argv[1]) as lolafile: for line in lolafile: if len(line) == 1: continue linelist = line.split(" ") if "STATE" in linelist: ...
17.028571
98
0.540268
71
596
4.535211
0.535211
0.043478
0
0
0
0
0
0
0
0
0
0.020833
0.275168
596
34
99
17.529412
0.724537
0.097315
0
0
0
0
0.110075
0
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c1f830b50d1855accf6647797b5fa3fed845091
3,098
py
Python
engkor/views.py
takeshixx/dprkdict
7f436eb99a855ae8037b2219fc97944f5c000f68
[ "MIT" ]
10
2017-09-25T09:30:02.000Z
2021-12-10T13:38:55.000Z
engkor/views.py
takeshixx/dprkdict
7f436eb99a855ae8037b2219fc97944f5c000f68
[ "MIT" ]
null
null
null
engkor/views.py
takeshixx/dprkdict
7f436eb99a855ae8037b2219fc97944f5c000f68
[ "MIT" ]
null
null
null
import re import urllib.parse from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, JsonResponse from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from .models import Definition RE_HANGUL = re.compile(r'[(]*[\uAC00-\uD7AF]+[\uAC00-\uD7AF (),;]*', re.IGNOR...
35.204545
83
0.548741
310
3,098
5.345161
0.329032
0.08449
0.019916
0.025347
0.190103
0.166566
0.125528
0.125528
0.125528
0.125528
0
0.01191
0.295352
3,098
88
84
35.204545
0.747137
0
0
0.109589
0
0
0.095192
0.010971
0
0
0
0
0
1
0.082192
false
0
0.082192
0
0.246575
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c2000bb0df619412795ffbe35ee177921174a1f
1,867
py
Python
appdaemon/apps/toggle_switch/toggle_switch.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
3
2019-10-27T06:10:26.000Z
2020-07-21T01:27:11.000Z
appdaemon/apps/toggle_switch/toggle_switch.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
appdaemon/apps/toggle_switch/toggle_switch.py
Mithras/ha
d37f8673eed27a85f76c97ee3e924d2ddc033ee5
[ "MIT" ]
null
null
null
import globals class ToggleSwitch(globals.Hass): async def initialize(self): config = self.args["config"] self._input = config["input"] self._toggle_service = config["toggle_service"] self._toggle_payload = config["toggle_payload"] self._power = config["power"] self...
38.895833
121
0.619175
217
1,867
5.023041
0.235023
0.074312
0.082569
0.069725
0.320183
0.157798
0.106422
0.106422
0.106422
0.106422
0
0
0.27263
1,867
47
122
39.723404
0.802651
0.109266
0
0.121212
0
0
0.048913
0
0
0
0
0
0
1
0
false
0
0.030303
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
9c20a7fb2067e672343540ce82ccf23d80253a6c
336
py
Python
templates_deepdive_app_bagofwords/udf/dd_extract_features.py
charlieccarey/rdoc
2e857f29e128f893706d042d583eec698c0bc56a
[ "CC-BY-4.0" ]
null
null
null
templates_deepdive_app_bagofwords/udf/dd_extract_features.py
charlieccarey/rdoc
2e857f29e128f893706d042d583eec698c0bc56a
[ "CC-BY-4.0" ]
5
2016-05-07T04:42:06.000Z
2018-04-19T01:08:38.000Z
templates_deepdive_app_bagofwords/udf/dd_extract_features.py
charlieccarey/rdoc
2e857f29e128f893706d042d583eec698c0bc56a
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function ''' 1\taaaa~^~bbbb~^~cccc 2\tdddd~^~EEEE~^~ffff ''' import sys ARR_DELIM = '~^~' for row in sys.stdin: row = row.strip() sent_id, lemmas = row.split('\t') lemmas = lemmas.split(ARR_DELIM) for lemma in lemmas: print('{}\t{}'.format(s...
17.684211
46
0.625
50
336
4.02
0.64
0.079602
0.109453
0
0
0
0
0
0
0
0
0.007326
0.1875
336
18
47
18.666667
0.728938
0.059524
0
0
0
0
0.041667
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c232026bb42fe3062506f2b3ba59f07439cb07f
7,482
py
Python
ppos_dex_data.py
cusma/pposdex
31b834ffcb1a43958ccc57b444c7b9337a5623c9
[ "MIT" ]
10
2021-01-06T20:09:17.000Z
2022-01-07T09:38:02.000Z
ppos_dex_data.py
cusma/pposdex
31b834ffcb1a43958ccc57b444c7b9337a5623c9
[ "MIT" ]
null
null
null
ppos_dex_data.py
cusma/pposdex
31b834ffcb1a43958ccc57b444c7b9337a5623c9
[ "MIT" ]
1
2021-07-17T09:47:18.000Z
2021-07-17T09:47:18.000Z
import time import json import base64 import msgpack from schema import Schema, And, Optional from datetime import datetime from algosdk import mnemonic from algosdk.account import address_from_private_key from algosdk.error import * from algosdk.future.transaction import PaymentTxn from inequality_indexes import * fr...
36.320388
79
0.625234
889
7,482
4.993251
0.202475
0.028385
0.052039
0.020275
0.353007
0.293985
0.283172
0.225276
0.200045
0.177968
0
0.011007
0.283614
7,482
205
80
36.497561
0.817164
0.064288
0
0.277108
0
0
0.163576
0.015524
0
0
0
0.004878
0
1
0.018072
false
0.018072
0.072289
0
0.114458
0.060241
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c2938d99163d6ef8085c36d2b63a4a8fe4a49b8
117,896
py
Python
hvm/chains/base.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
hvm/chains/base.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
hvm/chains/base.py
hyperevo/py-helios-node
ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8
[ "MIT" ]
null
null
null
from __future__ import absolute_import import operator from collections import deque import functools from abc import ( ABCMeta, abstractmethod ) import rlp_cython as rlp import time import math from uuid import UUID from typing import ( # noqa: F401 Any, Optional, Callable, cast, Dict, ...
46.989239
285
0.672601
14,187
117,896
5.279693
0.05498
0.020547
0.012189
0.029318
0.614942
0.54899
0.499112
0.457271
0.420597
0.379971
0
0.002734
0.264852
117,896
2,508
286
47.007974
0.861488
0.187598
0
0.404427
0
0.003353
0.076882
0.003369
0
0
0
0.000399
0.000671
1
0.105298
false
0.004024
0.088531
0.005366
0.259557
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c29bc02bf13f97d4663f0060faece281922045c
3,113
py
Python
integreat_cms/api/v3/regions.py
Integreat/cms-django
ab0a89576ae901f4b30aa8e9c65ff43c44654a80
[ "Apache-2.0" ]
21
2018-10-26T20:10:45.000Z
2020-10-22T09:41:46.000Z
integreat_cms/api/v3/regions.py
Integreat/cms-django
ab0a89576ae901f4b30aa8e9c65ff43c44654a80
[ "Apache-2.0" ]
392
2018-10-25T08:34:07.000Z
2020-11-19T08:20:30.000Z
integreat_cms/api/v3/regions.py
digitalfabrik/integreat-cms
ab0a89576ae901f4b30aa8e9c65ff43c44654a80
[ "Apache-2.0" ]
23
2019-03-06T17:11:35.000Z
2020-10-16T04:36:41.000Z
""" This module includes functions related to the regions API endpoint. """ from django.http import JsonResponse from ...cms.models import Region from ...cms.constants import region_status from ..decorators import json_response def transform_region(region): """ Function to create a JSON from a single region ...
28.559633
106
0.673305
364
3,113
5.651099
0.288462
0.040836
0.029169
0.033544
0.582402
0.561011
0.561011
0.561011
0.561011
0.524064
0
0.001266
0.238677
3,113
108
107
28.824074
0.866667
0.401863
0
0.280702
0
0
0.07093
0
0
0
0
0
0
1
0.087719
false
0
0.070175
0
0.245614
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c2a4913dd37bcfdaee2efb5a4e62c145d6170b0
10,964
py
Python
cli/src/ansible/AnsibleVarsGenerator.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
cli/src/ansible/AnsibleVarsGenerator.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
cli/src/ansible/AnsibleVarsGenerator.py
romsok24/epiphany
f058984939561fc8d51288765976118ae12e6c32
[ "Apache-2.0" ]
null
null
null
import copy import os from cli.src.Config import Config from cli.src.helpers.build_io import (get_ansible_path, get_ansible_path_for_build, get_ansible_vault_path) from cli.src.helpers.data_loader import (load_all_schema_objs_from_directory, ...
46.854701
124
0.671105
1,370
10,964
5.077372
0.20073
0.051754
0.038815
0.012076
0.301323
0.186314
0.115871
0.09977
0.075331
0.061242
0
0.001096
0.251368
10,964
233
125
47.055794
0.846369
0.150401
0
0.161677
0
0
0.08258
0.011413
0
0
0
0
0
1
0.071856
false
0.011976
0.071856
0
0.197605
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c2cb9849ca550c888fd888e8fc11648dd0f1d72
2,501
py
Python
plenum/test/view_change/test_no_instance_change_before_node_is_ready.py
evernym/indy-plenum
dc390caa16c0b15dcc549d557ede6f64c0c1b842
[ "Apache-2.0" ]
null
null
null
plenum/test/view_change/test_no_instance_change_before_node_is_ready.py
evernym/indy-plenum
dc390caa16c0b15dcc549d557ede6f64c0c1b842
[ "Apache-2.0" ]
null
null
null
plenum/test/view_change/test_no_instance_change_before_node_is_ready.py
evernym/indy-plenum
dc390caa16c0b15dcc549d557ede6f64c0c1b842
[ "Apache-2.0" ]
2
2017-12-13T21:14:54.000Z
2021-06-06T15:48:03.000Z
import pytest from plenum.server.view_change.view_changer import ViewChanger from stp_core.common.log import getlogger from plenum.test.pool_transactions.helper import start_not_added_node, add_started_node logger = getlogger() @pytest.fixture(scope="module", autouse=True) def tconf(tconf): old_vc_timeout = tc...
41
111
0.692123
362
2,501
4.574586
0.279006
0.046498
0.092391
0.066425
0.675121
0.644324
0.583937
0.583937
0.583937
0.583937
0
0.009564
0.247501
2,501
60
112
41.683333
0.870351
0.396641
0
0.129032
0
0
0.023224
0
0
0
0
0
0.064516
1
0.064516
false
0
0.129032
0
0.193548
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c2d9e0a79b8d15e42eda3577f2435526ea67e86
1,688
py
Python
searching/jump_search.py
magnusrodseth/data-structures-and-algorithms
45dfdc0859683d5c76b82b87f415e2c0cdbc15e8
[ "MIT" ]
null
null
null
searching/jump_search.py
magnusrodseth/data-structures-and-algorithms
45dfdc0859683d5c76b82b87f415e2c0cdbc15e8
[ "MIT" ]
null
null
null
searching/jump_search.py
magnusrodseth/data-structures-and-algorithms
45dfdc0859683d5c76b82b87f415e2c0cdbc15e8
[ "MIT" ]
null
null
null
import math from typing import List def jump_search(array: List[int], value: int) -> int: """ Performs a jump search on a list of integers. :param array: is the array to search. :param value: is the value to search. :return: the index of the value, or -1 if it doesn't exist.' """ if len(ar...
28.610169
93
0.650474
262
1,688
4.083969
0.377863
0.075701
0.042056
0.028037
0.052336
0.052336
0.052336
0
0
0
0
0.019402
0.26718
1,688
58
94
29.103448
0.845594
0.454976
0
0.083333
0
0
0.009412
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.333333
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
9c2faa49ef48fc93a9aff0f5610c889ba1ee0f3a
3,219
py
Python
demo/test_bug_3d.py
zhanwj/multi-task-pytorch
7d57645ec8be0ca0c258cfa99fb788e3cd37f106
[ "MIT" ]
2
2019-06-11T16:16:11.000Z
2020-07-21T10:34:40.000Z
demo/test_bug_3d.py
zhanwj/multi-task-pytorch
7d57645ec8be0ca0c258cfa99fb788e3cd37f106
[ "MIT" ]
null
null
null
demo/test_bug_3d.py
zhanwj/multi-task-pytorch
7d57645ec8be0ca0c258cfa99fb788e3cd37f106
[ "MIT" ]
2
2019-05-21T11:07:29.000Z
2019-06-11T16:17:02.000Z
import torch import lib.modeling.resnet as resnet import lib.modeling.semseg_heads as snet import torch.nn as nn import torch.optim as optim import utils.resnet_weights_helper as resnet_utils from torch.autograd import Variable from roi_data.loader import RoiDataLoader, MinibatchSampler, collate_minibatch, collate_mini...
38.321429
113
0.695247
471
3,219
4.543524
0.363057
0.019626
0.02243
0.02243
0.080374
0.071028
0.017757
0.017757
0.017757
0
0
0.033924
0.175831
3,219
83
114
38.783133
0.77271
0.07114
0
0
0
0
0.059356
0.010396
0
0
0
0
0.014286
1
0.057143
false
0
0.228571
0
0.328571
0.042857
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c304e47e988cc3ac6451c94e5e66110773b8469
2,909
py
Python
tests/components/evil_genius_labs/test_light.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/evil_genius_labs/test_light.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/evil_genius_labs/test_light.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Test Evil Genius Labs light.""" from unittest.mock import patch import pytest from homeassistant.components.light import ( ATTR_COLOR_MODE, ATTR_SUPPORTED_COLOR_MODES, ColorMode, LightEntityFeature, ) from homeassistant.const import ATTR_SUPPORTED_FEATURES @pytest.mark.parametrize("platforms", [(...
33.056818
86
0.645583
357
2,909
4.955182
0.221289
0.055399
0.094969
0.099491
0.685698
0.644997
0.6026
0.530808
0.488977
0.414924
0
0.028992
0.229288
2,909
87
87
33.436782
0.760036
0.009625
0
0.352941
0
0
0.171014
0.096739
0
0
0
0
0.147059
1
0
false
0
0.058824
0
0.058824
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c30953c84b77a7d66d7d91568a3c0c17191380f
4,410
py
Python
python_on_whales/download_binaries.py
joshbode/python-on-whales
4d5b8b4c5c6dc3ac0af5713e4fe5a72788f44cda
[ "MIT" ]
null
null
null
python_on_whales/download_binaries.py
joshbode/python-on-whales
4d5b8b4c5c6dc3ac0af5713e4fe5a72788f44cda
[ "MIT" ]
null
null
null
python_on_whales/download_binaries.py
joshbode/python-on-whales
4d5b8b4c5c6dc3ac0af5713e4fe5a72788f44cda
[ "MIT" ]
null
null
null
import platform import shutil import tempfile import warnings from pathlib import Path import requests from tqdm import tqdm DOCKER_VERSION = "20.10.5" BUILDX_VERSION = "0.5.1" CACHE_DIR = Path.home() / ".cache" / "python-on-whales" TEMPLATE_CLI = ( "https://download.docker.com/{os}/static/stable/{arch}/docker-...
34.186047
110
0.664172
585
4,410
4.791453
0.331624
0.021406
0.039957
0.028541
0.179451
0.153407
0.053514
0.053514
0.053514
0.053514
0
0.009746
0.2322
4,410
128
111
34.453125
0.818074
0.042404
0
0.06
0
0.02
0.315078
0.020389
0
0
0
0
0
1
0.07
false
0
0.07
0.01
0.21
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c336d5aaf0a0461822389d24ee86c2449c67183
4,415
py
Python
reinvent-2019/connected-photo-booth/lambda_code/Cerebro_GetQRCode.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
reinvent-2019/connected-photo-booth/lambda_code/Cerebro_GetQRCode.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
reinvent-2019/connected-photo-booth/lambda_code/Cerebro_GetQRCode.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
import boto3 import json import os import logging from contextlib import closing from boto3.dynamodb.conditions import Key, Attr from botocore.exceptions import ClientError from random import shuffle import time import pyqrcode import png __BUCKET_NAME__ = "project-cerebro" dynamo = boto3.client('dynamodb') logg...
30.034014
115
0.622877
556
4,415
4.785971
0.30036
0.081172
0.022548
0.023675
0.08493
0.042089
0.024051
0.024051
0
0
0
0.02069
0.277463
4,415
146
116
30.239726
0.81348
0.186863
0
0.044944
0
0
0.162528
0.014955
0
0
0
0
0
1
0.044944
false
0
0.123596
0.022472
0.235955
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c36070009525ecb4d0b9ecb8aa020fd7b1f9bca
1,480
py
Python
src/cms/views/error_handler/error_handler.py
digitalfabrik/coldaid-backend
b769510570d5921e30876565263813c0362994e2
[ "Apache-2.0" ]
4
2019-12-05T16:45:17.000Z
2020-05-09T07:26:34.000Z
src/cms/views/error_handler/error_handler.py
digitalfabrik/coldaid-backend
b769510570d5921e30876565263813c0362994e2
[ "Apache-2.0" ]
56
2019-12-05T12:31:37.000Z
2021-01-07T15:47:45.000Z
src/cms/views/error_handler/error_handler.py
digitalfabrik/coldaid-backend
b769510570d5921e30876565263813c0362994e2
[ "Apache-2.0" ]
2
2019-12-11T09:52:26.000Z
2020-05-09T07:26:38.000Z
from django.shortcuts import render from django.utils.translation import ugettext as _ # pylint: disable=unused-argument def handler400(request, exception): ctx = {'code': 400, 'title': _('Bad request'), 'message': _('There was an error in your request.')} response = render(request, 'error_handler/...
37
78
0.686486
179
1,480
5.541899
0.363128
0.065524
0.095766
0.136089
0.477823
0.447581
0.447581
0.270161
0.270161
0.270161
0
0.02995
0.187838
1,480
39
79
37.948718
0.795341
0.107432
0
0.285714
0
0
0.323954
0.111787
0
0
0
0
0
1
0.178571
false
0
0.071429
0.035714
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
9c36da1c5a18d69672ff02d87de44158f45e8811
738
py
Python
examples/ex3/app/models.py
trym-inc/django-msg
0b306524515a8fb4840d1a2ef8cf20901b64bc11
[ "MIT" ]
7
2018-02-28T19:03:48.000Z
2020-12-21T01:15:34.000Z
examples/ex3/app/models.py
trym-inc/django-msg
0b306524515a8fb4840d1a2ef8cf20901b64bc11
[ "MIT" ]
null
null
null
examples/ex3/app/models.py
trym-inc/django-msg
0b306524515a8fb4840d1a2ef8cf20901b64bc11
[ "MIT" ]
null
null
null
from typing import NamedTuple from django.contrib.auth.models import AbstractUser from django.db import models from msg.models import Msg class User(AbstractUser): phone_number: 'str' = models.CharField(max_length=255, null=True, blank=True) class HelloSMSMessage(...
28.384615
65
0.612466
85
738
5.211765
0.494118
0.148984
0.063205
0
0
0
0
0
0
0
0
0.005906
0.311653
738
25
66
29.52
0.866142
0
0
0
0
0
0.084011
0
0
0
0
0
0
1
0.052632
false
0
0.210526
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
9c3a00aad13ad525c3f1adcd91ff20ba8d288a5b
6,558
py
Python
tfx/examples/chicago_taxi_pipeline/serving/chicago_taxi_client.py
pingsutw/tfx
bf0d1d74e3f6ea429989fc7b80b82bea08077857
[ "Apache-2.0" ]
1
2021-07-21T15:54:20.000Z
2021-07-21T15:54:20.000Z
tfx/examples/chicago_taxi_pipeline/serving/chicago_taxi_client.py
pingsutw/tfx
bf0d1d74e3f6ea429989fc7b80b82bea08077857
[ "Apache-2.0" ]
1
2020-08-28T09:59:13.000Z
2020-08-28T09:59:13.000Z
tfx/examples/chicago_taxi_pipeline/serving/chicago_taxi_client.py
pingsutw/tfx
bf0d1d74e3f6ea429989fc7b80b82bea08077857
[ "Apache-2.0" ]
1
2020-11-06T11:44:33.000Z
2020-11-06T11:44:33.000Z
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
33.630769
105
0.745502
888
6,558
5.242117
0.304054
0.025994
0.021053
0.010956
0.196992
0.156391
0.113856
0.095811
0.058432
0.058432
0
0.007093
0.161635
6,558
194
106
33.804124
0.839578
0.271729
0
0.122807
0
0
0.097187
0.011722
0.008772
0
0
0
0
1
0.070175
false
0
0.157895
0.008772
0.263158
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
9c3a1a0942bfa4b3696876f16d5ec82b36b6c9bd
23,156
py
Python
PyVideo/main.py
BlackIQ/Cute
5835e989d661f23b04b6e436589c6e844167522e
[ "Apache-2.0" ]
5
2021-11-21T10:59:47.000Z
2022-01-16T11:57:14.000Z
PyVideo/main.py
BlackIQ/Cute
5835e989d661f23b04b6e436589c6e844167522e
[ "Apache-2.0" ]
null
null
null
PyVideo/main.py
BlackIQ/Cute
5835e989d661f23b04b6e436589c6e844167522e
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtCore import (pyqtSignal, pyqtSlot, Q_ARG, QAbstractItemModel, QFileInfo, qFuzzyCompare, QMetaObject, QModelIndex, QObject, Qt, QThread, QTime, QUrl) from PyQt5.QtGui import QColor, qGray, QImage, QPainter, QPalette from PyQt5.QtMultimedia import (QAbstractVideoBuffer, QMediaContent, ...
35.734568
217
0.634738
2,198
23,156
6.634668
0.199272
0.014057
0.017829
0.01728
0.160118
0.124049
0.06631
0.05575
0.048893
0.040184
0
0.010181
0.266151
23,156
647
218
35.789799
0.847996
0.010969
0
0.127835
0
0
0.014852
0
0
0
0
0
0
1
0.11134
false
0
0.012371
0.018557
0.187629
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c3a31af53788d8bf47df143a1f5099537838024
1,234
py
Python
tests/snapshot/periodic.py
Uornca/mirheo
162c722ffa27c02e1f5b0d1866816e44c2393f0f
[ "MIT" ]
22
2019-07-17T13:06:41.000Z
2021-12-15T14:45:24.000Z
tests/snapshot/periodic.py
Uornca/mirheo
162c722ffa27c02e1f5b0d1866816e44c2393f0f
[ "MIT" ]
63
2019-06-26T13:30:47.000Z
2021-02-23T10:13:10.000Z
tests/snapshot/periodic.py
Uornca/mirheo
162c722ffa27c02e1f5b0d1866816e44c2393f0f
[ "MIT" ]
9
2019-10-11T07:32:19.000Z
2021-05-17T11:25:35.000Z
#!/usr/bin/env python """Test checkpoint-like periodic snapshots. We test that there are that many folders and that the currentStep changes. """ import mirheo as mir u = mir.Mirheo(nranks=(1, 1, 1), domain=(4, 6, 8), debug_level=3, log_filename='log', no_splash=True, checkpoint_every=1...
34.277778
98
0.71799
179
1,234
4.871508
0.553073
0.097477
0.052752
0.018349
0
0
0
0
0
0
0
0.040225
0.133712
1,234
35
99
35.257143
0.775491
0.300648
0
0
0
0
0.082353
0.032941
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
9c3aa677e610f9e2bf81b41d5bae0ca83fbbae6f
3,632
py
Python
tools/resource_prefetch_predictor/generate_database.py
xzhan96/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-01-07T18:51:03.000Z
2021-01-07T18:51:03.000Z
tools/resource_prefetch_predictor/generate_database.py
emilio/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/resource_prefetch_predictor/generate_database.py
emilio/chromium.src
1bd0cf3997f947746c0fc5406a2466e7b5f6159e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Loads a set of web pages several times on a device, and extracts the predictor database. """ import argparse import logging import os...
32.141593
80
0.704295
464
3,632
5.344828
0.37931
0.058065
0.016129
0.018145
0.127419
0.093548
0.093548
0.093548
0.057258
0.057258
0
0.004405
0.1875
3,632
112
81
32.428571
0.835988
0.128855
0
0.025641
0
0
0.163532
0.027096
0
0
0
0
0
1
0.064103
false
0
0.115385
0
0.24359
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c3ae120bfd666dab5412a24ae65101fc3c9e81d
9,947
py
Python
palm_wrapper/job_submission/domain.py
madeline-scyphers/palm
0ecf9eb49f66b86f284bac9506c9570159aba02b
[ "MIT" ]
null
null
null
palm_wrapper/job_submission/domain.py
madeline-scyphers/palm
0ecf9eb49f66b86f284bac9506c9570159aba02b
[ "MIT" ]
6
2021-12-07T15:59:42.000Z
2021-12-07T16:03:45.000Z
palm_wrapper/job_submission/domain.py
madeline-scyphers/palm
0ecf9eb49f66b86f284bac9506c9570159aba02b
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Optional from xml import dom import numpy as np import pandas as pd from .utils import get_factors_rev def calc_plot_size(domain_x, domain_y, plot_goal, house_goal): f1 = sorted(get_factors_rev(domain_x)) f2 = sorted(get_factors_rev(domain_y)) plot_...
38.405405
138
0.6037
1,477
9,947
3.787407
0.118483
0.023775
0.017698
0.019664
0.400965
0.295316
0.263497
0.207186
0.188059
0.158384
0
0.008761
0.265608
9,947
258
139
38.554264
0.757016
0.037901
0
0.158654
0
0
0.067162
0.007218
0
0
0
0
0
1
0.086538
false
0
0.033654
0
0.221154
0.067308
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c3c80f9f134a4c7e10b07a2a070fce993cd44e3
373
py
Python
zad5.py
Alba126/Laba21
ce5735ca223d92287efa64bc3347f4356234b399
[ "MIT" ]
null
null
null
zad5.py
Alba126/Laba21
ce5735ca223d92287efa64bc3347f4356234b399
[ "MIT" ]
null
null
null
zad5.py
Alba126/Laba21
ce5735ca223d92287efa64bc3347f4356234b399
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- config: utf-8 -*- from tkinter import * from random import random def on_click(): x = random() y = random() bt1.place(relx=x, rely=y) root = Tk() root['bg'] = 'white' root.title('crown') img = PhotoImage(file='crown.png') bt1 = Button(image=img, command=on_click) bt1.place...
16.217391
44
0.643432
59
373
4.033898
0.644068
0.058824
0.10084
0
0
0
0
0
0
0
0
0.028939
0.16622
373
22
45
16.954545
0.736334
0.115282
0
0
0
0
0.064024
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c3e76ea8723f85b50595507d895179df16ec7b9
341
py
Python
tests/importer/utils/test_utils.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
tests/importer/utils/test_utils.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
tests/importer/utils/test_utils.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
from openpyxl import Workbook def create_test_workbook(*worksheet_titles, include_default_sheet=False): workbook = Workbook() for title in worksheet_titles: workbook.create_sheet(title) if not include_default_sheet: default_sheet = workbook['Sheet'] workbook.remove(default_sheet) ...
24.357143
73
0.73607
40
341
6
0.5
0.2
0.158333
0
0
0
0
0
0
0
0
0
0.199413
341
13
74
26.230769
0.879121
0
0
0
0
0
0.014663
0
0
0
0
0
0
1
0.111111
false
0
0.111111
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
9c3ee51c4543a5b2653184ca78a98a29af6b98cb
2,114
py
Python
test/test_import_stats.py
WBobby/pytorch
655960460ccca936fa5c06df6bbafd25b5582115
[ "Intel" ]
24
2020-11-02T21:25:12.000Z
2022-03-17T07:20:33.000Z
test/test_import_stats.py
WBobby/pytorch
655960460ccca936fa5c06df6bbafd25b5582115
[ "Intel" ]
1
2019-08-01T00:17:43.000Z
2019-09-12T01:31:53.000Z
test/test_import_stats.py
WBobby/pytorch
655960460ccca936fa5c06df6bbafd25b5582115
[ "Intel" ]
12
2020-11-06T05:00:37.000Z
2022-01-30T19:17:36.000Z
import subprocess import sys import unittest import pathlib from torch.testing._internal.common_utils import TestCase, run_tests, IS_LINUX, IS_IN_CI REPO_ROOT = pathlib.Path(__file__).resolve().parent.parent try: # Just in case PyTorch was not built in 'develop' mode sys.path.append(str(REPO_ROOT)) from...
31.088235
116
0.637181
259
2,114
4.96139
0.474903
0.012451
0.052918
0.071595
0.079377
0
0
0
0
0
0
0.000647
0.268685
2,114
67
117
31.552239
0.83053
0.145695
0
0
0
0
0.187778
0.045556
0
0
0
0
0
1
0.081633
false
0
0.285714
0
0.408163
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c3ffd59fa98b323892e6f69d6dc5851e106b046
1,365
py
Python
post_office/validators.py
fasih/django-post_office
e4086527a48bc0d1e5b8e0dfe9c27ab3a6260224
[ "MIT" ]
661
2015-01-07T09:35:14.000Z
2022-03-24T11:45:33.000Z
post_office/validators.py
fasih/django-post_office
e4086527a48bc0d1e5b8e0dfe9c27ab3a6260224
[ "MIT" ]
267
2015-01-10T22:45:08.000Z
2022-03-31T11:49:52.000Z
post_office/validators.py
fasih/django-post_office
e4086527a48bc0d1e5b8e0dfe9c27ab3a6260224
[ "MIT" ]
238
2015-01-10T22:53:39.000Z
2022-03-24T12:56:16.000Z
from django.core.exceptions import ValidationError from django.core.validators import validate_email from django.template import Template, TemplateSyntaxError, TemplateDoesNotExist from django.utils.encoding import force_str def validate_email_with_name(value): """ Validate email address. Both "Recipient...
28.4375
80
0.677656
157
1,365
5.796178
0.401274
0.071429
0.030769
0.046154
0
0
0
0
0
0
0
0.000952
0.230769
1,365
47
81
29.042553
0.865714
0.185348
0
0.076923
0
0
0.056711
0
0
0
0
0
0
1
0.115385
false
0
0.153846
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c429be32392440a110878d04d24fb43356f3b77
1,144
py
Python
paperhub/input.py
GiuseppeBaldini/PaperHub
5efdee1a0374c995a6717a4baee2106df808af12
[ "MIT" ]
null
null
null
paperhub/input.py
GiuseppeBaldini/PaperHub
5efdee1a0374c995a6717a4baee2106df808af12
[ "MIT" ]
1
2020-03-27T12:05:14.000Z
2020-03-28T01:10:20.000Z
paperhub/input.py
GiuseppeBaldini/PaperHub
5efdee1a0374c995a6717a4baee2106df808af12
[ "MIT" ]
null
null
null
# Input DOI / URL import re import sys # Pyperclip is not built-in, check and download if needed try: import pyperclip except (ImportError, ModuleNotFoundError): print('Pyperclip module not found. Please download it.') sys.exit(0) # Regex for links link_regex = re.compile(r'''( http[s]?:// (?:[a-...
23.346939
85
0.581294
152
1,144
4.322368
0.526316
0.03653
0.015221
0.018265
0
0
0
0
0
0
0
0.013366
0.280594
1,144
49
86
23.346939
0.784933
0.262238
0
0.129032
0
0
0.25641
0.035409
0
0
0
0
0
1
0.032258
false
0
0.129032
0
0.193548
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c42cb2bbf7ba2f9f5bbb8435dcd766270fb6340
6,338
py
Python
main.py
chillum1718/EffcientNetV2
4338652454185db648a6ea5df04528bcafb24ed2
[ "Apache-2.0" ]
null
null
null
main.py
chillum1718/EffcientNetV2
4338652454185db648a6ea5df04528bcafb24ed2
[ "Apache-2.0" ]
null
null
null
main.py
chillum1718/EffcientNetV2
4338652454185db648a6ea5df04528bcafb24ed2
[ "Apache-2.0" ]
null
null
null
import argparse import csv import os import torch import tqdm from torch import distributed from torch.utils import data from torchvision import datasets from torchvision import transforms from nets import nn from utils import util data_dir = os.path.join('..', 'Dataset', 'IMAGENET') def batch(images, target, mode...
36.011364
100
0.570369
746
6,338
4.737265
0.286863
0.023769
0.029428
0.025467
0.123373
0.087719
0.057725
0.057725
0.057725
0.057725
0
0.038065
0.295361
6,338
175
101
36.217143
0.753247
0.010887
0
0.176871
0
0
0.055848
0.005266
0
0
0
0
0
1
0.040816
false
0
0.07483
0
0.136054
0.040816
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c42d1030d5bf12bec44656b0c6d8328e6f4647e
2,897
py
Python
cgbind/esp.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
7
2020-06-08T16:18:56.000Z
2021-01-28T09:59:16.000Z
cgbind/esp.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
null
null
null
cgbind/esp.py
duartegroup/cgbind
8c2369d4c49e8b008fc3951719d99e0c4f6b6b16
[ "MIT" ]
2
2020-11-16T04:52:43.000Z
2021-06-04T05:07:29.000Z
import numpy as np from time import time from cgbind.atoms import get_atomic_number from cgbind.log import logger from cgbind.constants import Constants from cgbind.exceptions import CgbindCritical def get_esp_cube_lines(charges, atoms): """ From a list of charges and a set of xyzs create the electrostatic po...
38.118421
112
0.661374
478
2,897
3.866109
0.307531
0.047619
0.063312
0.051407
0.103896
0.010823
0
0
0
0
0
0.036076
0.215395
2,897
75
113
38.626667
0.776947
0.233345
0
0
0
0.095238
0.23932
0.14102
0
0
0
0
0
1
0.02381
false
0
0.166667
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c43dad16fef03fbc908a7aa39b6c4226fc2883c
6,051
py
Python
codes/test_specular.py
mcdenoising/AdvMCDenoise
4ba00098c2d0f50a7dfc1e345b5e50a20768d7e8
[ "MIT" ]
35
2019-11-04T06:49:39.000Z
2022-01-13T07:53:37.000Z
codes/test_specular.py
qbhan/Adversarial_MCdenoising
a99bf312baf2430d750d70a79270aca0720532aa
[ "MIT" ]
1
2019-11-28T22:33:11.000Z
2019-11-28T22:33:11.000Z
codes/test_specular.py
qbhan/Adversarial_MCdenoising
a99bf312baf2430d750d70a79270aca0720532aa
[ "MIT" ]
8
2019-11-08T04:58:08.000Z
2020-11-03T07:49:58.000Z
import os import sys import logging import time import argparse import numpy as np from collections import OrderedDict import scripts.options as option import utils.util as util from data.util import bgr2ycbcr from data import create_dataset, create_dataloader from models import create_model # options parser = argpar...
44.822222
107
0.637085
830
6,051
4.350602
0.174699
0.057879
0.046525
0.066464
0.301855
0.28524
0.204376
0.204376
0.169482
0.154528
0
0.014781
0.228557
6,051
134
108
45.156716
0.758783
0.11056
0
0.06
0
0.02
0.110095
0
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0.01
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c4403124da36e660f5e49831ef1324004e35d3f
5,403
py
Python
neuralNetwork/layer3/nerualNet.py
zzw0929/deeplearning
d96aadd71838fa60a4c031b13fe475d4839e8a33
[ "Apache-2.0" ]
4
2017-09-04T07:54:33.000Z
2017-09-04T16:55:04.000Z
neuralNetwork/layer3/nerualNet.py
zzw0929/deeplearning
d96aadd71838fa60a4c031b13fe475d4839e8a33
[ "Apache-2.0" ]
null
null
null
neuralNetwork/layer3/nerualNet.py
zzw0929/deeplearning
d96aadd71838fa60a4c031b13fe475d4839e8a33
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import time import matplotlib.pyplot as plt import numpy as np import sklearn import sklearn.datasets import sklearn.linear_model import matplotlib matplotlib.rcParams['figure.figsize'] = (10.0, 8.0) np.random.seed(0) X, y = sklearn.datasets.make_moons(200, noise=0.20) plt.scatter(X[:,0], X[:,1], s=40...
34.634615
99
0.644827
851
5,403
3.985899
0.283196
0.02388
0.019458
0.015035
0.177182
0.163325
0.143868
0.143868
0.143868
0.118514
0
0.046478
0.227466
5,403
155
100
34.858065
0.766172
0.295021
0
0.231579
0
0
0.040648
0
0
0
0
0
0
1
0.063158
false
0.021053
0.073684
0
0.168421
0.042105
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c4523a703ff0d45d61f298f70ea4dd4f700b946
1,188
py
Python
tljh_repo2docker/tests/utils.py
TimoRoth/tljh-repo2docker
35e7e940266de0490990acc780b64802afe973c1
[ "BSD-3-Clause" ]
46
2020-05-04T19:32:39.000Z
2022-03-25T13:47:41.000Z
tljh_repo2docker/tests/utils.py
TimoRoth/tljh-repo2docker
35e7e940266de0490990acc780b64802afe973c1
[ "BSD-3-Clause" ]
41
2020-04-29T09:58:34.000Z
2022-03-15T21:44:15.000Z
tljh_repo2docker/tests/utils.py
TimoRoth/tljh-repo2docker
35e7e940266de0490990acc780b64802afe973c1
[ "BSD-3-Clause" ]
9
2020-04-29T08:42:12.000Z
2021-11-04T04:01:35.000Z
import asyncio import json from aiodocker import Docker, DockerError from jupyterhub.tests.utils import api_request async def add_environment( app, *, repo, ref="master", name="", memory="", cpu="" ): """Use the POST endpoint to add a new environment""" r = await api_request( app, "enviro...
25.826087
85
0.574074
139
1,188
4.827338
0.460432
0.053651
0.050671
0.059613
0.14307
0.14307
0.14307
0.14307
0
0
0
0.008547
0.310606
1,188
45
86
26.4
0.810745
0
0
0.114286
0
0
0.061069
0
0
0
0
0
0
1
0
false
0
0.114286
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c464b6985d41cae6c644e444882f725004b5bea
657
py
Python
05_ARIADNE_SUBSCRIPTIONS_GRAPHQL/api/resolvers/mutations/__init__.py
CrispenGari/python-flask
3e7896f401920b8dd045d807212ec24b8353a75a
[ "Apache-2.0" ]
2
2021-11-08T07:37:18.000Z
2021-11-13T09:23:46.000Z
05_ARIADNE_SUBSCRIPTIONS_GRAPHQL/api/resolvers/mutations/__init__.py
CrispenGari/Flask
3e7896f401920b8dd045d807212ec24b8353a75a
[ "Apache-2.0" ]
null
null
null
05_ARIADNE_SUBSCRIPTIONS_GRAPHQL/api/resolvers/mutations/__init__.py
CrispenGari/Flask
3e7896f401920b8dd045d807212ec24b8353a75a
[ "Apache-2.0" ]
null
null
null
from api import db from uuid import uuid4 from ariadne import MutationType from api.models import Post from api.store import queues mutation = MutationType() @mutation.field("createPost") async def create_post_resolver(obj, info, input): try: post = Post(postId=uuid4(), caption=input["caption"]) ...
24.333333
61
0.572298
75
657
4.986667
0.56
0.05615
0
0
0
0
0
0
0
0
0
0.004454
0.316591
657
27
62
24.333333
0.828508
0
0
0.086957
0
0
0.082192
0
0
0
0
0
0
1
0
false
0
0.217391
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c482fa55469ed7e8a8294ff4e637257f9060775
6,275
py
Python
source/tweet.py
jfilter/foia-bot
11a9e31116dddfcd7bbd17730be3bdb9cec65e27
[ "MIT" ]
null
null
null
source/tweet.py
jfilter/foia-bot
11a9e31116dddfcd7bbd17730be3bdb9cec65e27
[ "MIT" ]
null
null
null
source/tweet.py
jfilter/foia-bot
11a9e31116dddfcd7bbd17730be3bdb9cec65e27
[ "MIT" ]
null
null
null
""" tweet stuff in intervals """ import time import datetime import twitter from markov_chains import german_text from config import config_no, config_yes MAX_TWEET_LENGTH = 280 greeting = ' Sehr geehrte/r Anstragssteller/in.' ending = ' MfG' num_tweets = 3 class FoiaBot: def __init__(self, config): s...
33.918919
126
0.579283
754
6,275
4.514589
0.236074
0.060811
0.024677
0.031727
0.210341
0.124559
0.096357
0.096357
0.096357
0.096357
0
0.012811
0.340717
6,275
184
127
34.103261
0.810007
0.043187
0
0.202797
0
0
0.057773
0
0
0
0
0
0
1
0.090909
false
0
0.034965
0
0.174825
0.104895
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c4a756656ca930b517891bc50444eed71522301
2,537
py
Python
atlas-outreach-data-tools-framework-1.1/Configurations/PlotConf_TTbarAnalysis.py
Harvard-Neutrino/phys145
c3dc5788128fa2a7db0af0c796cf3afd957bf0ed
[ "CC0-1.0" ]
null
null
null
atlas-outreach-data-tools-framework-1.1/Configurations/PlotConf_TTbarAnalysis.py
Harvard-Neutrino/phys145
c3dc5788128fa2a7db0af0c796cf3afd957bf0ed
[ "CC0-1.0" ]
null
null
null
atlas-outreach-data-tools-framework-1.1/Configurations/PlotConf_TTbarAnalysis.py
Harvard-Neutrino/phys145
c3dc5788128fa2a7db0af0c796cf3afd957bf0ed
[ "CC0-1.0" ]
1
2021-11-30T02:08:12.000Z
2021-11-30T02:08:12.000Z
config = { "Luminosity": 1000, "InputDirectory": "results", "Histograms" : { "WtMass" : {}, "etmiss" : {}, "lep_n" : {}, "lep_pt" : {}, "lep_eta" : {}, "lep_E" : {}, "lep_phi" : {"y_margin" : 0.6}, "lep_...
32.525641
192
0.358691
160
2,537
5.475
0.54375
0.039954
0.045662
0.020548
0.027397
0
0
0
0
0
0
0.048551
0.45605
2,537
77
193
32.948052
0.586232
0
0
0
0
0
0.353961
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c4b16b905a82a27b27a39983a45cc2293e0e0ce
1,943
py
Python
modules/optimizations/dead_codes.py
OMGhozlan/deobshell
701c8a09f9258442255013605185ed0a7fbac704
[ "MIT" ]
null
null
null
modules/optimizations/dead_codes.py
OMGhozlan/deobshell
701c8a09f9258442255013605185ed0a7fbac704
[ "MIT" ]
null
null
null
modules/optimizations/dead_codes.py
OMGhozlan/deobshell
701c8a09f9258442255013605185ed0a7fbac704
[ "MIT" ]
null
null
null
# coding=utf-8 from ..logger import log_debug from ..utils import parent_map, replace_node, is_prefixed_var, get_used_vars def opt_unused_variable(ast): parents = parent_map(ast) used_vars = get_used_vars(ast) for node in ast.iter(): if node.tag in ["AssignmentStatementAst"]: subnodes...
36.660377
116
0.574884
207
1,943
5.275362
0.289855
0.074176
0.040293
0.098901
0.410256
0.229853
0.229853
0.229853
0.18315
0.18315
0
0.009878
0.322697
1,943
52
117
37.365385
0.819909
0.006176
0
0.358974
0
0
0.158631
0.066356
0
0
0
0
0
1
0.051282
false
0
0.051282
0
0.205128
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c4c40d49329ce6958ed3b498e11172edf73d231
1,433
py
Python
Convert Integer A to Integer B.py
RijuDasgupta9116/LintCode
4629a3857b2c57418b86a3b3a7180ecb15e763e3
[ "Apache-2.0" ]
321
2015-01-04T04:01:44.000Z
2022-03-20T13:21:55.000Z
Convert Integer A to Integer B.py
leifoo/LintCode
2520762a1cfbd486081583136396a2b2cac6e4fb
[ "Apache-2.0" ]
1
2016-01-11T04:29:37.000Z
2016-01-11T04:29:37.000Z
Convert Integer A to Integer B.py
leifoo/LintCode
2520762a1cfbd486081583136396a2b2cac6e4fb
[ "Apache-2.0" ]
114
2015-01-27T06:08:17.000Z
2022-03-23T03:58:11.000Z
""" Determine the number of bits required to convert integer A to integer B Example Given n = 31, m = 14,return 2 (31)10=(11111)2 (14)10=(01110)2 """ __author__ = 'Danyang' class Solution: def bitSwapRequired(self, a, b): """ :param a: :param b: :return: int """ ...
19.630137
71
0.415213
182
1,433
3.186813
0.340659
0.010345
0.031034
0.041379
0.051724
0
0
0
0
0
0
0.072319
0.440335
1,433
72
72
19.902778
0.650873
0.163294
0
0
0
0
0.015195
0
0
0
0
0
0.055556
1
0.055556
false
0
0
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
9c4d1d59e8d1a05ab55391042aa571be2ead1705
2,549
py
Python
macaddress/__init__.py
paradxum/django-macaddress
c223dc8c79555d2265789c4d13667036cfbd7bd8
[ "BSD-3-Clause" ]
42
2015-11-23T09:40:36.000Z
2022-03-15T18:15:44.000Z
macaddress/__init__.py
paradxum/django-macaddress
c223dc8c79555d2265789c4d13667036cfbd7bd8
[ "BSD-3-Clause" ]
19
2016-01-08T13:36:23.000Z
2021-05-13T23:57:39.000Z
macaddress/__init__.py
paradxum/django-macaddress
c223dc8c79555d2265789c4d13667036cfbd7bd8
[ "BSD-3-Clause" ]
16
2016-02-04T09:43:12.000Z
2021-04-15T13:27:40.000Z
from django.conf import settings from netaddr import mac_unix, mac_eui48 import importlib import warnings class mac_linux(mac_unix): """MAC format with zero-padded all upper-case hex and colon separated""" word_fmt = '%.2X' def default_dialect(eui_obj=None): # Check to see if a default dialect class has...
43.20339
124
0.710867
340
2,549
5.144118
0.352941
0.04574
0.054889
0.054889
0.232133
0.232133
0.232133
0.232133
0.232133
0.232133
0
0.004559
0.225579
2,549
58
125
43.948276
0.881459
0.326795
0
0.073171
0
0
0.191765
0.049412
0
0
0
0
0
1
0.04878
false
0
0.219512
0
0.439024
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c4ee3a1833fdef3d1343fa0ed07aabcf8faecca
2,422
py
Python
textmagic/test/message_status_tests.py
dfstrauss/textmagic-sms-api-python
9ab05b461861ac53da651588bef6b0b504653ecd
[ "BSD-3-Clause" ]
2
2017-12-20T11:16:57.000Z
2022-02-22T06:46:19.000Z
textmagic/test/message_status_tests.py
dfstrauss/textmagic-sms-api-python
9ab05b461861ac53da651588bef6b0b504653ecd
[ "BSD-3-Clause" ]
2
2015-06-14T16:06:33.000Z
2017-08-23T11:38:22.000Z
textmagic/test/message_status_tests.py
dfstrauss/textmagic-sms-api-python
9ab05b461861ac53da651588bef6b0b504653ecd
[ "BSD-3-Clause" ]
5
2015-06-12T16:21:17.000Z
2022-02-22T06:46:23.000Z
import time from textmagic.test import ONE_TEST_NUMBER from textmagic.test import THREE_TEST_NUMBERS from textmagic.test import TextMagicTestsBase from textmagic.test import LiveUnsafeTests class MessageStatusTestsBase(TextMagicTestsBase): def sendAndCheckStatusTo(self, numbers): message = 'sdfqwersdfg...
36.149254
87
0.660198
236
2,422
6.673729
0.360169
0.031746
0.043175
0.058413
0
0
0
0
0
0
0
0.014223
0.245252
2,422
66
88
36.69697
0.847374
0.0673
0
0
0
0
0.094002
0
0
0
0
0
0.148936
1
0.106383
false
0.021277
0.106383
0
0.319149
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c4ef34765e81a312523257e87f5ab76933d8997
2,245
py
Python
apps/orders/models.py
LinkanDawang/FreshMallDemo
5b8e2d2e8e137f609e8ac1e29ea013bb3ef34edb
[ "Apache-2.0" ]
null
null
null
apps/orders/models.py
LinkanDawang/FreshMallDemo
5b8e2d2e8e137f609e8ac1e29ea013bb3ef34edb
[ "Apache-2.0" ]
5
2020-06-05T18:27:41.000Z
2022-01-13T00:48:03.000Z
apps/orders/models.py
LinkanDawang/dailyfresh
4f0360d5e4eeda4737234942248715b77d9e3b12
[ "Apache-2.0" ]
null
null
null
from django.db import models from utils.models import BaseModel from users.models import User, Address from goods.models import GoodsSKU # Create your models here. class OrderInfo(BaseModel): """订单信息""" PAY_METHOD = ['1', '2'] PAY_METHOD_CHOICES = ( (1, "货到付款"), (2, "支付宝"), ) OR...
28.782051
104
0.620045
270
2,245
4.955556
0.366667
0.115097
0.041854
0.06278
0.45142
0.373692
0.213752
0.150972
0.150972
0.150972
0
0.023563
0.224944
2,245
77
105
29.155844
0.745402
0.01559
0
0.034483
0
0
0.078923
0
0
0
0
0
0
1
0
false
0
0.068966
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
9c4f72bb8eb3058809660eadcee54f1e16cab76f
18,201
py
Python
event/arguments/prepare/event_vocab.py
hunterhector/DDSemantics
883ef1015bd21d9b8575d8000faf3b506a09f21c
[ "Apache-2.0" ]
null
null
null
event/arguments/prepare/event_vocab.py
hunterhector/DDSemantics
883ef1015bd21d9b8575d8000faf3b506a09f21c
[ "Apache-2.0" ]
null
null
null
event/arguments/prepare/event_vocab.py
hunterhector/DDSemantics
883ef1015bd21d9b8575d8000faf3b506a09f21c
[ "Apache-2.0" ]
2
2018-06-24T17:40:31.000Z
2020-07-30T19:19:55.000Z
from collections import defaultdict, Counter import os import gzip import json import pickle from json.decoder import JSONDecodeError import logging from typing import Dict import pdb from event import util from event.arguments.prepare.slot_processor import get_simple_dep, is_propbank_dep logger = logging.getLogger(_...
31.598958
86
0.538652
2,097
18,201
4.455889
0.141631
0.023116
0.012842
0.013699
0.227633
0.176156
0.15229
0.110017
0.055009
0.030394
0
0.004404
0.363716
18,201
575
87
31.653913
0.802435
0.082138
0
0.191067
0
0
0.101958
0
0
0
0
0
0
1
0.07196
false
0
0.027295
0.022333
0.198511
0.009926
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c51e7ffa104c06ed45deeaa7e32faf7f56f41a1
4,570
py
Python
autovirt/equipment/domain/equipment.py
xlam/autovirt
a19f9237c8b1123ce4f4b8b396dc88122019d4f8
[ "MIT" ]
null
null
null
autovirt/equipment/domain/equipment.py
xlam/autovirt
a19f9237c8b1123ce4f4b8b396dc88122019d4f8
[ "MIT" ]
null
null
null
autovirt/equipment/domain/equipment.py
xlam/autovirt
a19f9237c8b1123ce4f4b8b396dc88122019d4f8
[ "MIT" ]
null
null
null
from enum import Enum from functools import reduce from math import ceil from typing import Optional, Tuple from autovirt import utils from autovirt.exception import AutovirtError from autovirt.structs import UnitEquipment, RepairOffer logger = utils.get_logger() # maximum allowed equipment price PRICE_MAX = 100000 ...
34.104478
92
0.679212
611
4,570
4.93617
0.224223
0.050729
0.036472
0.018568
0.148541
0.148541
0.089523
0.066976
0.066976
0.034483
0
0.006128
0.214442
4,570
133
93
34.360902
0.833983
0.114661
0
0.020408
0
0.020408
0.048878
0
0
0
0
0
0
1
0.081633
false
0
0.071429
0.010204
0.27551
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c520307c63d7fc118bc65c38c0ef12159f02949
594
py
Python
day09/part2.py
mtn/advent16
0df34237485ee1246532e9eda0ef643e6950d13e
[ "MIT" ]
null
null
null
day09/part2.py
mtn/advent16
0df34237485ee1246532e9eda0ef643e6950d13e
[ "MIT" ]
null
null
null
day09/part2.py
mtn/advent16
0df34237485ee1246532e9eda0ef643e6950d13e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re with open("input.txt") as f: content = f.read().strip() def ulen(content): ans = 0 i = 0 while i < len(content): if content[i] == "(": end = content[i:].find(")") + i instr = content[i+1:end] chars, times = map(int, content...
21.214286
64
0.481481
83
594
3.373494
0.457831
0.114286
0.064286
0.085714
0
0
0
0
0
0
0
0.026596
0.367003
594
27
65
22
0.718085
0.035354
0
0
0
0
0.020979
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c520e00d9b073d8aaafcc2b263b654b36c5fc45
17,397
py
Python
cirq-core/cirq/contrib/quimb/mps_simulator_test.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/contrib/quimb/mps_simulator_test.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
4
2022-01-16T14:12:15.000Z
2022-02-24T03:58:46.000Z
cirq-core/cirq/contrib/quimb/mps_simulator_test.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
null
null
null
# pylint: disable=wrong-or-nonexistent-copyright-notice import itertools import math import numpy as np import pytest import sympy import cirq import cirq.contrib.quimb as ccq import cirq.testing from cirq import value def assert_same_output_as_dense(circuit, qubit_order, initial_state=0, grouping=None): mps_si...
34.724551
100
0.647755
2,336
17,397
4.609161
0.12286
0.053497
0.054333
0.052661
0.661094
0.584285
0.504783
0.453701
0.445621
0.424166
0
0.03833
0.227683
17,397
500
101
34.794
0.763025
0.009772
0
0.331579
0
0
0.0288
0.004761
0
0
0
0
0.152632
1
0.094737
false
0
0.023684
0
0.118421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c53aaaab36a01f9660d76573d43ecd12a07d0cb
7,340
py
Python
src/greenbudget/app/subaccount/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/app/subaccount/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/app/subaccount/serializers.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
from django.contrib.contenttypes.models import ContentType from rest_framework import serializers, exceptions from greenbudget.lib.rest_framework_utils.fields import ModelChoiceField from greenbudget.lib.rest_framework_utils.serializers import ( EnhancedModelSerializer) from greenbudget.app.budget.models import B...
35.631068
80
0.674523
686
7,340
7.04519
0.223032
0.026485
0.039727
0.026071
0.311608
0.250155
0.146493
0.081523
0.062901
0.033106
0
0.000181
0.248229
7,340
205
81
35.804878
0.87568
0.023297
0
0.224852
0
0
0.05806
0.00307
0
0
0
0
0
1
0.047337
false
0
0.053254
0.011834
0.390533
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c554c033e4e1ae5351bb05f507b9e976ca41041
13,152
py
Python
modules/dbnd/src/dbnd/_core/tracking/managers/callable_tracking.py
busunkim96/dbnd
0191fdcd4c4fbd35006f1026d1a55b2abab9097b
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd/src/dbnd/_core/tracking/managers/callable_tracking.py
busunkim96/dbnd
0191fdcd4c4fbd35006f1026d1a55b2abab9097b
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd/src/dbnd/_core/tracking/managers/callable_tracking.py
busunkim96/dbnd
0191fdcd4c4fbd35006f1026d1a55b2abab9097b
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import contextlib import logging import typing from typing import Any, Dict, Tuple import attr from dbnd._core.configuration import get_dbnd_project_config from dbnd._core.constants import ( RESULT_PARAM, DbndTargetOperationStatus, DbndTargetOperationType, TaskRunState, ) from dbnd._core.current impo...
38.568915
113
0.633744
1,558
13,152
5.06611
0.186778
0.035474
0.027366
0.01419
0.25605
0.190929
0.169897
0.1215
0.112251
0.102116
0
0.00044
0.309231
13,152
340
114
38.682353
0.868354
0.1783
0
0.202479
0
0
0.038364
0
0
0
0
0
0
1
0.053719
false
0
0.107438
0.012397
0.235537
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c56d5b6165d77a3d76bfb27f03c0f747558ff24
5,534
py
Python
api.py
Benardi/redis-basics
614a15afe47780886bb6088f4ae45c6a7cbc6e22
[ "MIT" ]
null
null
null
api.py
Benardi/redis-basics
614a15afe47780886bb6088f4ae45c6a7cbc6e22
[ "MIT" ]
null
null
null
api.py
Benardi/redis-basics
614a15afe47780886bb6088f4ae45c6a7cbc6e22
[ "MIT" ]
null
null
null
import os import logging from json import loads, dumps from datetime import timedelta from argparse import ArgumentParser from redis import Redis from flask import Response, Flask, request app = Flask(__name__) log = logging.getLogger(__name__) parser = ArgumentParser() parser.add_argument("-a", "--address", ...
30.744444
85
0.632815
724
5,534
4.707182
0.16989
0.109155
0.055751
0.079225
0.594484
0.54284
0.502641
0.456573
0.43662
0.43662
0
0.008603
0.201843
5,534
179
86
30.916201
0.762961
0
0
0.376923
0
0
0.134285
0
0
0
0
0
0
1
0.084615
false
0
0.053846
0
0.215385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c5842107ba44f69dd4be13f1db7dd944439eb70
6,071
py
Python
zhihu_spider/ZhihuSpider/spiders/zhihu.py
Ki-Seki/gadgets
6e031e1f6536a15b48e3beb80ba8bf31d2a3db7a
[ "MIT" ]
1
2022-02-24T12:48:47.000Z
2022-02-24T12:48:47.000Z
zhihu_spider/ZhihuSpider/spiders/zhihu.py
Ki-Seki/gadgets
6e031e1f6536a15b48e3beb80ba8bf31d2a3db7a
[ "MIT" ]
null
null
null
zhihu_spider/ZhihuSpider/spiders/zhihu.py
Ki-Seki/gadgets
6e031e1f6536a15b48e3beb80ba8bf31d2a3db7a
[ "MIT" ]
1
2022-02-24T12:51:20.000Z
2022-02-24T12:51:20.000Z
""" 启动此 spider 前需要手动启动 Chrome,cmd 命令如下: cd 进入 Chrome 可执行文件 所在的目录 执行:chrome.exe --remote-debugging-port=9222 此时在浏览器窗口地址栏访问:http://127.0.0.1:9222/json,如果页面出现 json 数据,则表明手动启动成功 启动此 spider 后,注意与命令行交互! 在 settings 当中要做的: # ROBOTSTXT_OBEY = False # 如果不关闭,parse 方法无法执行 # COOKIES_ENABLED = True # 以便 Request 值在传递时自动传递 cookies...
46.7
813
0.680119
773
6,071
5.139715
0.349288
0.032721
0.029449
0.02819
0.157312
0.096652
0.056381
0.056381
0.034231
0.034231
0
0.01842
0.19519
6,071
129
814
47.062016
0.79472
0.232416
0
0
0
0.029851
0.333042
0.051288
0
0
0
0
0
1
0.059701
false
0
0.134328
0
0.283582
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c5b6f7b1147d0bfa29ae31ca75143f0f85b1910
523
py
Python
main/handle_file.py
nucluster/us_states
26cca38990b9afb6a2b8cc4d1365409428793c6d
[ "MIT" ]
null
null
null
main/handle_file.py
nucluster/us_states
26cca38990b9afb6a2b8cc4d1365409428793c6d
[ "MIT" ]
null
null
null
main/handle_file.py
nucluster/us_states
26cca38990b9afb6a2b8cc4d1365409428793c6d
[ "MIT" ]
null
null
null
from pathlib import Path BASE_DIR = Path(__file__).resolve().parent.parent # def handle_uploaded_file(f): # with open('screenshot.png', 'wb') as destination: # # for chunk in f.chunks(): # # destination.write(chunk) # destination.write(f) with open( BASE_DIR/'media'/'Greater_coat...
21.791667
74
0.659656
73
523
4.493151
0.561644
0.082317
0.109756
0
0
0
0
0
0
0
0
0
0.198853
523
24
75
21.791667
0.782816
0.500956
0
0
0
0
0.208
0.18
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c5ca9cec48517b47b0e018883a0875e922d1924
4,921
py
Python
2018/finals/pwn-gdb-as-a-service/web_challenge/challenge/gaas.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/pwn-gdb-as-a-service/web_challenge/challenge/gaas.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/pwn-gdb-as-a-service/web_challenge/challenge/gaas.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/env python3 # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
27.960227
104
0.710018
740
4,921
4.577027
0.308108
0.061707
0.066135
0.028048
0.178034
0.129318
0.113375
0.113375
0.066135
0.043696
0
0.00739
0.147531
4,921
175
105
28.12
0.8
0.134322
0
0.055118
0
0
0.106293
0.005421
0
0
0
0
0
1
0.03937
false
0
0.062992
0
0.133858
0.015748
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c5de31d5758cb655e6faea3c4a14331feb71111
4,960
py
Python
examples/multi_physics/piezo_elasticity.py
BubuLK/sfepy
3e8e2082c26d574dc334fe3a0e0eeb723f7a6657
[ "BSD-3-Clause" ]
null
null
null
examples/multi_physics/piezo_elasticity.py
BubuLK/sfepy
3e8e2082c26d574dc334fe3a0e0eeb723f7a6657
[ "BSD-3-Clause" ]
null
null
null
examples/multi_physics/piezo_elasticity.py
BubuLK/sfepy
3e8e2082c26d574dc334fe3a0e0eeb723f7a6657
[ "BSD-3-Clause" ]
null
null
null
r""" Piezo-elasticity problem - linear elastic material with piezoelectric effects. Find :math:`\ul{u}`, :math:`\phi` such that: .. math:: - \omega^2 \int_{Y} \rho\ \ul{v} \cdot \ul{u} + \int_{Y} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) - \int_{Y_2} g_{kij}\ e_{ij}(\ul{v}) \nabla_k \phi = 0 \;, \qu...
29.349112
78
0.563105
670
4,960
3.979104
0.319403
0.021005
0.02063
0.037509
0.208177
0.17892
0.168042
0.141785
0.069017
0.036009
0
0.024946
0.256452
4,960
168
79
29.52381
0.697939
0.216532
0
0.038462
0
0
0.289357
0.094718
0
0
0
0.005952
0
1
0.019231
false
0
0.086538
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
9c614378ccffafbcb6378e7da9d99a24c5b8ad0b
1,848
py
Python
tests/sentry/api/endpoints/test_project_details.py
erhuabushuo/sentry
8b3bad10155aaacfdff80910e5972e64304e880c
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_details.py
erhuabushuo/sentry
8b3bad10155aaacfdff80910e5972e64304e880c
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_project_details.py
erhuabushuo/sentry
8b3bad10155aaacfdff80910e5972e64304e880c
[ "BSD-3-Clause" ]
null
null
null
from django.core.urlresolvers import reverse from sentry.models import Project from sentry.testutils import APITestCase class ProjectDetailsTest(APITestCase): def test_simple(self): project = self.project # force creation self.login_as(user=self.user) url = reverse('sentry-api-0-project-d...
33
88
0.65368
225
1,848
5.275556
0.257778
0.090986
0.055602
0.050548
0.620051
0.574558
0.574558
0.554339
0.554339
0.468408
0
0.011872
0.225108
1,848
55
89
33.6
0.817039
0.015693
0
0.425
0
0
0.10793
0.061674
0
0
0
0
0.2
1
0.1
false
0
0.075
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
9c6258f2e73dfc4619740d301b9ae33bb12c5202
29,732
py
Python
tests/test_table.py
databook1/python-pptx
87ca6bf34f9ced17cc4f3c94cf141069429e7583
[ "MIT" ]
null
null
null
tests/test_table.py
databook1/python-pptx
87ca6bf34f9ced17cc4f3c94cf141069429e7583
[ "MIT" ]
12
2021-01-22T16:53:51.000Z
2022-02-23T13:57:43.000Z
tests/test_table.py
databook1/python-pptx
87ca6bf34f9ced17cc4f3c94cf141069429e7583
[ "MIT" ]
null
null
null
# encoding: utf-8 """Unit-test suite for `pptx.table` module.""" import pytest from pptx.dml.fill import FillFormat from pptx.dml.border import BorderFormat from pptx.enum.text import MSO_ANCHOR from pptx.oxml.ns import qn from pptx.oxml.table import CT_Table, CT_TableCell, TcRange from pptx.shapes.graphfrm import G...
35.995157
88
0.61227
3,862
29,732
4.421284
0.067323
0.017745
0.016105
0.015813
0.640586
0.504246
0.387174
0.313148
0.231508
0.206149
0
0.012538
0.246233
29,732
825
89
36.038788
0.749364
0.033533
0
0.30303
0
0.013636
0.120706
0.064028
0
0
0
0
0.104545
1
0.136364
false
0
0.018182
0.028788
0.236364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c6344071efa98707250768a8a8a6346ceb89a33
6,612
py
Python
bl60x_flash/main.py
v3l0c1r4pt0r/bl60x-flash
065770004629c3e5bf98057677e7a6ca566e9c4a
[ "MIT" ]
null
null
null
bl60x_flash/main.py
v3l0c1r4pt0r/bl60x-flash
065770004629c3e5bf98057677e7a6ca566e9c4a
[ "MIT" ]
null
null
null
bl60x_flash/main.py
v3l0c1r4pt0r/bl60x-flash
065770004629c3e5bf98057677e7a6ca566e9c4a
[ "MIT" ]
null
null
null
from serial import Serial from tqdm import tqdm import binascii import hashlib import struct import time import sys import os def if_read(ser, data_len): data = bytearray(0) received = 0 while received < data_len: tmp = ser.read(data_len - received) if len(tmp) == 0: ...
28.25641
86
0.613581
997
6,612
3.865597
0.202608
0.026466
0.039958
0.039958
0.32356
0.22548
0.158796
0.084587
0.057602
0.022314
0
0.043682
0.259074
6,612
233
87
28.377682
0.743009
0.027979
0
0.22449
0
0
0.072052
0.003393
0
0
0.011309
0
0
1
0.142857
false
0
0.040816
0
0.244898
0.056122
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c63d06a1b4ade87729c096ceb91bf4dea5b367b
467
py
Python
monte_py/__init__.py
domluna/fun_with_ffi
9fc197b11a3470395db517657d624f0a3aa06958
[ "MIT" ]
1
2018-07-16T22:10:58.000Z
2018-07-16T22:10:58.000Z
monte_py/__init__.py
domluna/fun_with_ffi
9fc197b11a3470395db517657d624f0a3aa06958
[ "MIT" ]
null
null
null
monte_py/__init__.py
domluna/fun_with_ffi
9fc197b11a3470395db517657d624f0a3aa06958
[ "MIT" ]
null
null
null
import random def estimate_pi(sims, needles): trials = [] for _ in xrange(sims): trials.append(simulate_pi(needles)) mean = sum(trials) / sims return mean # use a unit square def simulate_pi(needles): hits = 0 # how many hits we hit the circle for _ in xrange(needles): x = ran...
23.35
46
0.573876
68
467
3.867647
0.514706
0.038023
0.08365
0.114068
0
0
0
0
0
0
0
0.027523
0.299786
467
19
47
24.578947
0.776758
0.104925
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.066667
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
9c6424690b87c4502fb44bc4e25fa64fa727a995
36,577
py
Python
tools/mpy_ld.py
UVA-DSI/circuitpython
35ee4add63a604320d2fbd4e30baef2b5675f9a7
[ "Unlicense", "BSD-3-Clause", "MIT-0", "MIT" ]
1
2021-10-20T12:21:44.000Z
2021-10-20T12:21:44.000Z
tools/mpy_ld.py
UVA-DSI/circuitpython
35ee4add63a604320d2fbd4e30baef2b5675f9a7
[ "Unlicense", "BSD-3-Clause", "MIT-0", "MIT" ]
null
null
null
tools/mpy_ld.py
UVA-DSI/circuitpython
35ee4add63a604320d2fbd4e30baef2b5675f9a7
[ "Unlicense", "BSD-3-Clause", "MIT-0", "MIT" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of the MicroPython project, http://micropython.org/ # # The MIT License (MIT) # # Copyright (c) 2019 Damien P. George # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
33.618566
109
0.576893
4,974
36,577
3.991355
0.119019
0.019745
0.011333
0.016622
0.346396
0.270387
0.171914
0.138367
0.11021
0.096862
0
0.025682
0.299532
36,577
1,087
110
33.649494
0.74919
0.106269
0
0.238609
0
0
0.095906
0.016981
0
0
0.004798
0
0.033573
1
0.049161
false
0.004796
0.004796
0.008393
0.080336
0.015588
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c64d6e1ca9f65ffe83cf4a6cb96b5de160e7309
2,289
py
Python
ui_mant_libros.py
edzzn/Manejo_Liberia
c735d35b32fc53839acfc48d4e088e69983edf16
[ "MIT" ]
null
null
null
ui_mant_libros.py
edzzn/Manejo_Liberia
c735d35b32fc53839acfc48d4e088e69983edf16
[ "MIT" ]
null
null
null
ui_mant_libros.py
edzzn/Manejo_Liberia
c735d35b32fc53839acfc48d4e088e69983edf16
[ "MIT" ]
null
null
null
from PyQt4 import QtGui from ui_mant_libros_new import NewLibrosWindow from ui_mant_libros_edit import EditLibrosWindow from ui_mant_libros_id_edit import GetIdEditWindow # Debug only import inspect class MenuLibros(QtGui.QWidget): """ Ventana-menu para editar Libros """ def __init__(self): ...
26.929412
69
0.671035
273
2,289
5.315018
0.285714
0.043418
0.060648
0.066161
0.338387
0.203308
0.203308
0.203308
0.203308
0.203308
0
0.011811
0.223242
2,289
84
70
27.25
0.804274
0.076453
0
0.153846
0
0
0.044498
0
0
0
0
0
0
1
0.115385
false
0
0.115385
0
0.25
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c64e0be4c2600978945ef57f08d4ac03e9f96cf
6,583
py
Python
env/gym_poker_ai/envs/tests/holdem_calc/holdem_argparser.py
MrStonkus/PokerAi
9c43c3a7a9c3ac01f4ee9e3f1f95f0786c35de99
[ "MIT" ]
null
null
null
env/gym_poker_ai/envs/tests/holdem_calc/holdem_argparser.py
MrStonkus/PokerAi
9c43c3a7a9c3ac01f4ee9e3f1f95f0786c35de99
[ "MIT" ]
1
2020-05-09T20:27:33.000Z
2020-05-09T20:27:33.000Z
env/gym_poker_ai/envs/tests/holdem_calc/holdem_argparser.py
MrStonkus/PokerAi
9c43c3a7a9c3ac01f4ee9e3f1f95f0786c35de99
[ "MIT" ]
null
null
null
import argparse import re import holdem_calc.holdem_functions as holdem_functions # Wrapper class which holds the arguments for library calls # Mocks actual argparse object class LibArgs: def __init__(self, board, exact, num, input_file, hole_cards): self.board = board self.cards = hole_cards ...
33.93299
78
0.628285
915
6,583
4.375956
0.202186
0.107892
0.03996
0.021229
0.378871
0.362637
0.318681
0.311189
0.311189
0.311189
0
0.007824
0.281635
6,583
193
79
34.108808
0.838867
0.183047
0
0.416058
0
0
0.163086
0.003923
0
0
0
0
0
1
0.080292
false
0
0.021898
0.007299
0.160584
0.109489
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c651d14eff8b0f1392964eb0805b7871c20c731
8,318
py
Python
qbay/controllers.py
KarlDorogy/Cisc-327-Course-Project-Group-20
0e2c003f78bbdd932381a7a8cbc3aa757da18b24
[ "MIT" ]
null
null
null
qbay/controllers.py
KarlDorogy/Cisc-327-Course-Project-Group-20
0e2c003f78bbdd932381a7a8cbc3aa757da18b24
[ "MIT" ]
null
null
null
qbay/controllers.py
KarlDorogy/Cisc-327-Course-Project-Group-20
0e2c003f78bbdd932381a7a8cbc3aa757da18b24
[ "MIT" ]
null
null
null
from flask import render_template, request, session, redirect from qbay.models import * from datetime import date from qbay import app def authenticate(inner_function): """ :param inner_function: any python function that accepts a user object Wrap any python function and check the current session to see ...
34.658333
76
0.648593
1,039
8,318
5.07411
0.194418
0.0478
0.042489
0.012519
0.403073
0.315061
0.230273
0.185888
0.152314
0.135243
0
0.004496
0.251262
8,318
239
77
34.803347
0.842004
0.201972
0
0.331081
0
0
0.159543
0.007504
0
0
0
0
0
1
0.114865
false
0.047297
0.027027
0.040541
0.310811
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c6678445c5b8ffd9879e0f6a21e874c128e214d
6,998
py
Python
gbfs/serializers.py
stadtulm/cykel
b292d958330279654c49beafc3f95a0067274472
[ "MIT" ]
80
2019-08-20T17:41:31.000Z
2021-05-31T19:20:28.000Z
gbfs/serializers.py
transportkollektiv/cykel
b292d958330279654c49beafc3f95a0067274472
[ "MIT" ]
19
2019-08-24T15:17:33.000Z
2021-09-22T17:58:03.000Z
gbfs/serializers.py
stadtulm/cykel
b292d958330279654c49beafc3f95a0067274472
[ "MIT" ]
12
2019-08-21T17:55:14.000Z
2021-04-07T18:53:52.000Z
from datetime import timedelta from django.utils.timezone import now from preferences import preferences from rest_framework import fields, serializers from bikesharing.models import Bike, Station, VehicleType from cykel.serializers import EnumFieldSerializer class TimestampSerializer(fields.CharField): def to_...
36.447917
84
0.642612
680
6,998
6.448529
0.252941
0.040137
0.027366
0.031471
0.298974
0.243558
0.212087
0.196123
0.186545
0.138198
0
0.001188
0.278079
6,998
191
85
36.638743
0.866785
0.085024
0
0.281046
0
0
0.086215
0
0
0
0
0.005236
0
1
0.052288
false
0
0.039216
0.006536
0.287582
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c672aa16a64502ad882d71db5ffef21757f9d6f
1,095
py
Python
anime_downloader/extractors/vidstream.py
ngomile/anime-downloader
14d9cebe8aa4eb9d906b937d7c19fedfa737d184
[ "Unlicense" ]
2
2020-08-10T12:34:42.000Z
2020-11-19T08:13:48.000Z
anime_downloader/extractors/vidstream.py
ngomile/anime-downloader
14d9cebe8aa4eb9d906b937d7c19fedfa737d184
[ "Unlicense" ]
null
null
null
anime_downloader/extractors/vidstream.py
ngomile/anime-downloader
14d9cebe8aa4eb9d906b937d7c19fedfa737d184
[ "Unlicense" ]
null
null
null
import logging import re from anime_downloader.extractors.base_extractor import BaseExtractor from anime_downloader.sites import helpers logger = logging.getLogger(__name__) class VidStream(BaseExtractor): def _get_data(self): QUALITIES = { "360":[], "480":[], "720":[], "10...
31.285714
160
0.552511
123
1,095
4.813008
0.512195
0.045608
0.064189
0.060811
0.074324
0
0
0
0
0
0
0.038265
0.284018
1,095
34
161
32.205882
0.716837
0.021918
0
0
0
0
0.129907
0
0
0
0
0
0
1
0.035714
false
0
0.142857
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
9c67ab6dcf7da8380a3c1b1759e1c7f496809cce
2,799
py
Python
gui/sum_v1/views.py
time-crunched/nlp-toolbox
b732abd0b2c6b265971efe04a4d70ebe20d2ee8f
[ "MIT" ]
null
null
null
gui/sum_v1/views.py
time-crunched/nlp-toolbox
b732abd0b2c6b265971efe04a4d70ebe20d2ee8f
[ "MIT" ]
3
2020-06-05T18:58:57.000Z
2021-06-10T20:50:13.000Z
gui/sum_v1/views.py
time-crunched/nlp-toolbox
b732abd0b2c6b265971efe04a4d70ebe20d2ee8f
[ "MIT" ]
1
2019-12-01T16:56:41.000Z
2019-12-01T16:56:41.000Z
import time import os from django.shortcuts import render, redirect from django.http import JsonResponse from django.views import View from django.conf import settings from .forms import File_uploadForm from .models import File_upload, SummaryRes from sim_v1.textsummary import TEXTSummary summary_document_dir = os....
29.15625
133
0.679171
363
2,799
5.060606
0.305785
0.02613
0.054437
0.02123
0.209036
0.182907
0.182907
0.182907
0.182907
0.182907
0
0.005403
0.206502
2,799
95
134
29.463158
0.821702
0.097535
0
0.216667
0
0
0.059849
0
0
0
0
0
0
1
0.083333
false
0.033333
0.15
0
0.333333
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c67af820f4a5f09ac6dce61683f07d3e73f1273
1,290
py
Python
homeassistant/components/websocket_api/__init__.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
4
2019-01-10T14:47:54.000Z
2021-04-22T02:06:27.000Z
homeassistant/components/websocket_api/__init__.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
6
2021-02-08T21:02:40.000Z
2022-03-12T00:52:16.000Z
homeassistant/components/websocket_api/__init__.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
1
2019-08-13T11:54:30.000Z
2019-08-13T11:54:30.000Z
""" Websocket based API for Home Assistant. For more details about this component, please refer to the documentation at https://developers.home-assistant.io/docs/external_api_websocket.html """ from homeassistant.core import callback from homeassistant.loader import bind_hass from . import commands, connection, const...
30
75
0.784496
161
1,290
6.111801
0.496894
0.026423
0.036585
0.04878
0
0
0
0
0
0
0
0
0.130233
1,290
42
76
30.714286
0.877005
0.248837
0
0
0
0
0.004353
0
0
0
0
0
0
1
0.043478
false
0
0.130435
0
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9c6c3991eeee7dfdd77baaa787b34e6799b4425e
1,355
py
Python
Leetcode/Python/_1721.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
Leetcode/Python/_1721.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
Leetcode/Python/_1721.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def swapNodes(self, head: Optional[ListNode], k: int) -> Optional[ListNode]: temp = head array = [] while temp: a...
27.653061
81
0.500369
159
1,355
4.201258
0.238994
0.041916
0.056886
0.07485
0.516467
0.467066
0.467066
0.467066
0.467066
0.467066
0
0.009804
0.397786
1,355
48
82
28.229167
0.808824
0.20738
0
0.206897
0
0
0
0
0
0
0
0
0
1
0.068966
false
0
0
0
0.241379
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c6e78ca230293ad0a6075105e0e0da44e90fcbd
25,892
py
Python
Pyrado/pyrado/environments/mujoco/wam_bic.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
Pyrado/pyrado/environments/mujoco/wam_bic.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
null
null
null
Pyrado/pyrado/environments/mujoco/wam_bic.py
KhanhThiVo/SimuRLacra
fdeaf2059c2ed80ea696f018c29290510b5c4cb9
[ "DOC", "Zlib", "BSD-3-Clause" ]
1
2020-11-24T15:25:26.000Z
2020-11-24T15:25:26.000Z
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and # Technical University of Darmstadt. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source ...
49.037879
120
0.632551
3,649
25,892
4.300082
0.184708
0.013766
0.015295
0.011918
0.382703
0.317316
0.279651
0.239883
0.225161
0.208782
0
0.025472
0.281284
25,892
527
121
49.13093
0.817723
0.371389
0
0.269231
0
0
0.038103
0.002771
0
0
0
0.001898
0.002959
1
0.044379
false
0
0.065089
0.002959
0.171598
0.008876
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c6f5eebc67f2c098afe70ef549d9f14b27bc659
1,572
py
Python
app/strategies/ema_bb_alligator_strategy.py
namuan/crypto-rider
f5b47ada60a7cef07e66609e2e92993619c6bfbe
[ "MIT" ]
1
2022-01-18T19:06:20.000Z
2022-01-18T19:06:20.000Z
app/strategies/ema_bb_alligator_strategy.py
namuan/crypto-rider
f5b47ada60a7cef07e66609e2e92993619c6bfbe
[ "MIT" ]
null
null
null
app/strategies/ema_bb_alligator_strategy.py
namuan/crypto-rider
f5b47ada60a7cef07e66609e2e92993619c6bfbe
[ "MIT" ]
null
null
null
import pandas as pd import ta from app.common import reshape_data from app.strategies.base_strategy import BaseStrategy pd.set_option("display.max_columns", None) pd.set_option("display.width", None) class EMABBAlligatorStrategy(BaseStrategy): BUY_SIGNAL = "buy_signal" SELL_SIGNAL = "sell_signal" def c...
29.111111
83
0.564885
197
1,572
4.279188
0.309645
0.130486
0.099644
0.085409
0.410439
0.410439
0.410439
0.410439
0.372479
0.372479
0
0.017179
0.296438
1,572
53
84
29.660377
0.745027
0
0
0.244444
0
0
0.11514
0
0
0
0
0
0
1
0.088889
false
0
0.088889
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
9c723e762bff7b4ab80b6f5113e4e550464fb8ae
1,276
py
Python
awx/api/urls/ad_hoc_command.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
awx/api/urls/ad_hoc_command.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
2
2022-02-10T11:57:21.000Z
2022-02-27T22:43:44.000Z
awx/api/urls/ad_hoc_command.py
ziegenberg/awx
a3e29317c5d4220fffe28370ec73c73802255246
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from django.urls import re_path from awx.api.views import ( AdHocCommandList, AdHocCommandDetail, AdHocCommandCancel, AdHocCommandRelaunch, AdHocCommandAdHocCommandEventsList, AdHocCommandActivityStreamList, AdHocCommandNotification...
42.533333
137
0.724922
160
1,276
5.45
0.28125
0.061927
0.123853
0.110092
0.316514
0.316514
0.114679
0.073395
0
0
0
0.015666
0.09953
1,276
29
138
44
0.743255
0.041536
0
0
0
0
0.327049
0.292623
0
0
0
0
0
1
0
false
0
0.090909
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
9c7497307c0cb4f07fda11674de8080bc75940ac
3,265
py
Python
fgarcade/sprites.py
fabiommendes/fgarcade
2bfdb3ca18cb8260048ccfc9e84524987c322221
[ "MIT" ]
2
2019-04-20T00:07:16.000Z
2019-04-24T01:25:38.000Z
fgarcade/sprites.py
fabiommendes/fgarcade
2bfdb3ca18cb8260048ccfc9e84524987c322221
[ "MIT" ]
null
null
null
fgarcade/sprites.py
fabiommendes/fgarcade
2bfdb3ca18cb8260048ccfc9e84524987c322221
[ "MIT" ]
7
2019-06-18T17:59:41.000Z
2019-07-02T21:37:21.000Z
import arcade from arcade import FACE_RIGHT, FACE_DOWN, FACE_UP, FACE_LEFT class AnimatedWalkingSprite(arcade.Sprite): def __init__(self, scale: float = 1, image_x: float = 0, image_y: float = 0, center_x: float = 0, center_y: float = 0, *, stand_left, stand_righ...
40.8125
79
0.618989
414
3,265
4.487923
0.128019
0.04521
0.080732
0.113025
0.502691
0.495156
0.44887
0.415501
0.360603
0.302476
0
0.007018
0.301685
3,265
80
80
40.8125
0.807895
0.011639
0
0.261538
0
0
0
0
0
0
0
0
0
1
0.061538
false
0
0.030769
0
0.107692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c76b7443d1cefb8613a32ec558f3e2d259300ab
2,089
py
Python
src/mafUtility.py
gh-schen/SiriusEpiClassifier
617e0243a95fe1014acfeca25ff6f6ba617d366f
[ "Apache-2.0" ]
1
2021-12-08T19:21:07.000Z
2021-12-08T19:21:07.000Z
src/mafUtility.py
gh-schen/SiriusEpiClassifier
617e0243a95fe1014acfeca25ff6f6ba617d366f
[ "Apache-2.0" ]
null
null
null
src/mafUtility.py
gh-schen/SiriusEpiClassifier
617e0243a95fe1014acfeca25ff6f6ba617d366f
[ "Apache-2.0" ]
null
null
null
from numpy.core.fromnumeric import transpose from sklearn import linear_model from scipy.special import logit from scipy import stats from copy import deepcopy from numpy import random, concatenate, quantile, matmul, transpose import logging class singleRegModel(): """ data struct for running a single regress...
31.179104
87
0.650551
274
2,089
4.733577
0.324818
0.100231
0.052429
0.018504
0.245181
0.17579
0.17579
0.17579
0.17579
0.106399
0
0.004534
0.26089
2,089
67
88
31.179104
0.835492
0.150311
0
0.04878
0
0
0.029327
0
0
0
0
0
0
1
0.146341
false
0
0.170732
0.02439
0.439024
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c77b39243b7ae9ea7813df0033b58ce3c06fb82
4,553
py
Python
examples/linreg.py
hanyas/sds
3c195fb9cbd88a9284287d62c0eacb6afc4598a7
[ "MIT" ]
12
2019-09-21T13:52:09.000Z
2022-02-14T06:48:46.000Z
examples/linreg.py
hanyas/sds
3c195fb9cbd88a9284287d62c0eacb6afc4598a7
[ "MIT" ]
1
2020-01-22T12:34:52.000Z
2020-01-26T21:14:11.000Z
examples/linreg.py
hanyas/sds
3c195fb9cbd88a9284287d62c0eacb6afc4598a7
[ "MIT" ]
5
2019-09-18T15:11:26.000Z
2021-12-10T14:04:53.000Z
import numpy as np import matplotlib.pyplot as plt from scipy import stats from sklearn.linear_model import ARDRegression, LinearRegression # Parameters of the example np.random.seed(0) n_samples, n_features = 100, 100 # Create Gaussian data X = np.random.randn(n_samples, n_features) # Create weights with a precision...
39.591304
100
0.691852
543
4,553
5.627993
0.255985
0.04712
0.045812
0.039267
0.194372
0.034686
0.034686
0.018325
0.018325
0
0
0.016653
0.208654
4,553
114
101
39.938596
0.831529
0.097738
0
0.051282
0
0
0.02417
0
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
9c77f77e66dc427bbe7624fc776b41c3d875169f
7,516
py
Python
optimal/tompkins/examples/dask_scheduling_problem_nonetcontention.py
KarizCache/serverless
c5735afee29e104f3909f3b0140e993d461a5420
[ "MIT" ]
null
null
null
optimal/tompkins/examples/dask_scheduling_problem_nonetcontention.py
KarizCache/serverless
c5735afee29e104f3909f3b0140e993d461a5420
[ "MIT" ]
null
null
null
optimal/tompkins/examples/dask_scheduling_problem_nonetcontention.py
KarizCache/serverless
c5735afee29e104f3909f3b0140e993d461a5420
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import json import re import ast import json from graphviz import Digraph import pandas as pd # color the graph import graph_tool.all as gt import copy import matplotlib.colors as mcolors import sys import utils from tompkins.ilp import schedule, jobs_when_where from collections import d...
32.678261
125
0.548696
997
7,516
4.057172
0.248746
0.010383
0.025216
0.0267
0.269221
0.180717
0.17602
0.139926
0.100865
0.100865
0
0.021554
0.265434
7,516
229
126
32.820961
0.711103
0.106706
0
0.180723
0
0.006024
0.162328
0.076451
0
0
0
0
0.012048
1
0.03012
false
0.006024
0.162651
0
0.216867
0.048193
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c79f89ccfffa309abd3d78c50d5bebd47df7780
3,675
py
Python
slackchannel2pdf/locales.py
ErikKalkoken/slackchannel2pdf
2848dfaaffbf9a5255c6dbe87dcc1e90d062b820
[ "MIT" ]
52
2019-08-05T21:58:53.000Z
2022-03-21T22:36:22.000Z
slackchannel2pdf/locales.py
ErikKalkoken/slackchannel2pdf
2848dfaaffbf9a5255c6dbe87dcc1e90d062b820
[ "MIT" ]
10
2020-04-11T21:30:53.000Z
2022-03-12T07:14:06.000Z
slackchannel2pdf/locales.py
ErikKalkoken/slackchannel2pdf
2848dfaaffbf9a5255c6dbe87dcc1e90d062b820
[ "MIT" ]
10
2020-01-30T07:52:09.000Z
2022-02-03T03:44:41.000Z
import datetime as dt import logging from babel import Locale, UnknownLocaleError from babel.dates import format_datetime, format_time, format_date import pytz from tzlocal import get_localzone from . import settings logger = logging.getLogger(__name__) class LocaleHelper: """Helpers for converting date & tim...
36.386139
88
0.633741
449
3,675
4.966592
0.209354
0.050224
0.043946
0.034081
0.301794
0.270404
0.25157
0.224664
0.224664
0.188789
0
0
0.284082
3,675
100
89
36.75
0.847586
0.137959
0
0.277778
0
0
0.054098
0
0
0
0
0
0
1
0.138889
false
0
0.097222
0.041667
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
9c7c266f5c66aa6fb93fbd1ac553f14737d31adf
1,193
py
Python
python_developer_tools/cv/bases/pool/AvgPool2d.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
32
2021-06-21T04:49:48.000Z
2022-03-29T05:46:59.000Z
python_developer_tools/cv/bases/pool/AvgPool2d.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
1
2021-11-12T03:45:55.000Z
2021-11-12T03:45:55.000Z
python_developer_tools/cv/bases/pool/AvgPool2d.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
10
2021-06-03T08:05:05.000Z
2021-12-13T03:10:42.000Z
# !/usr/bin/env python # -- coding: utf-8 -- # @Author zengxiaohui # Datatime:8/31/2021 1:37 PM # @File:GlobalAvgPool2d import torch.nn as nn from python_developer_tools.cv.bases.activates.swish import h_swish class GlobalAvgPool2d(nn.Module): """ Fast implementation of global average pooling from TResNe...
31.394737
93
0.619447
159
1,193
4.503145
0.528302
0.034916
0.02514
0.041899
0.047486
0.047486
0.047486
0.047486
0
0
0
0.043285
0.244761
1,193
38
94
31.394737
0.751387
0.285834
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.045455
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
9c7c4de6be5e48f9c89afdf0a57351e2ebf01e66
28,531
py
Python
expyfun/_utils.py
nordme/expyfun
e644bba8cbfb6edd2a076099536417d4854d64af
[ "BSD-3-Clause" ]
2
2015-12-31T07:56:16.000Z
2016-08-22T17:23:02.000Z
expyfun/_utils.py
nordme/expyfun
e644bba8cbfb6edd2a076099536417d4854d64af
[ "BSD-3-Clause" ]
6
2015-02-18T04:25:46.000Z
2017-01-25T01:00:35.000Z
expyfun/_utils.py
nordme/expyfun
e644bba8cbfb6edd2a076099536417d4854d64af
[ "BSD-3-Clause" ]
1
2015-12-31T07:56:20.000Z
2015-12-31T07:56:20.000Z
"""Some utility functions""" # Authors: Eric Larson <larsoner@uw.edu> # # License: BSD (3-clause) import warnings import operator from copy import deepcopy import subprocess import importlib import os import os.path as op import inspect import sys import tempfile import ssl from shutil import rmtree import atexit imp...
31.45645
79
0.598156
3,582
28,531
4.63512
0.207984
0.008432
0.004337
0.001988
0.101488
0.059989
0.037824
0.034452
0.031079
0.031079
0
0.005049
0.291858
28,531
906
80
31.49117
0.816719
0.293681
0
0.189691
0
0
0.109688
0.006269
0
0
0
0.001104
0
1
0.098969
false
0.002062
0.101031
0.004124
0.294845
0.008247
0
0
0
null
0
0
0
0
0
0
0
0
0
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
9c7d50b1d9dc52a93f5eb0bc5220367d727e498d
9,079
py
Python
torch/_fx/graph_module.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
206
2020-11-28T22:56:38.000Z
2022-03-27T02:33:04.000Z
torch/_fx/graph_module.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
19
2020-12-09T23:13:14.000Z
2022-01-24T23:24:08.000Z
torch/_fx/graph_module.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
28
2020-11-29T15:25:12.000Z
2022-01-20T02:16:27.000Z
import torch import torch.overrides import linecache from typing import Type, Dict, List, Any, Union from .graph import Graph import copy # normal exec loses the source code, however we can patch # the linecache module to still recover it. # using exec_with_source will add it to our local cache # and then tools like T...
41.268182
107
0.651614
1,228
9,079
4.638436
0.265472
0.019663
0.027388
0.010007
0.135534
0.107795
0.107795
0.091994
0.091994
0.091994
0
0.002236
0.261042
9,079
219
108
41.456621
0.846773
0.43474
0
0.172414
0
0
0.064922
0.010347
0
0
0
0
0.017241
1
0.137931
false
0.017241
0.060345
0.025862
0.353448
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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