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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ee577040f0b69f4aa6fe4fd3ea6ac9a67d2b842 | 394 | py | Python | externals/pyglet-1.2.4/pyglet-1.2.4/tests/image/PIL_LA_LOAD.py | Soulrez/psychsim-teamwork | 7c660a48c48664efcb863ba73bfbae2f5eb5566f | [
"MIT"
] | 1 | 2016-07-19T16:56:46.000Z | 2016-07-19T16:56:46.000Z | externals/pyglet-1.2.4/pyglet-1.2.4/tests/image/PIL_LA_LOAD.py | Soulrez/psychsim-teamwork | 7c660a48c48664efcb863ba73bfbae2f5eb5566f | [
"MIT"
] | 1 | 2018-08-27T22:31:16.000Z | 2018-08-27T22:31:16.000Z | externals/pyglet-1.2.4/pyglet-1.2.4/tests/image/PIL_LA_LOAD.py | Soulrez/psychsim-teamwork | 7c660a48c48664efcb863ba73bfbae2f5eb5566f | [
"MIT"
] | 1 | 2019-09-06T03:05:35.000Z | 2019-09-06T03:05:35.000Z | #!/usr/bin/env python
'''Test LA load using PIL. You should see the la.png image on
a checkboard background.
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
import unittest
import base_load
from pyglet.image.codecs.pil import *
class TEST_PNG_LA(base_load.TestLoad):
texture_file = 'la.png'
de... | 18.761905 | 63 | 0.720812 | 53 | 394 | 4.962264 | 0.716981 | 0.038023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164975 | 394 | 20 | 64 | 19.7 | 0.799392 | 0.269036 | 0 | 0 | 0 | 0 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9ee6cf890a89db1a608eec589124da7790950850 | 867 | py | Python | tests/test_evaluate_model.py | pribij/MovieRecommender | b83572ecf0632a7260ee548f6f845f63daae40cd | [
"MIT"
] | 1 | 2022-01-14T05:28:08.000Z | 2022-01-14T05:28:08.000Z | tests/test_evaluate_model.py | pribij/MovieRecommender | b83572ecf0632a7260ee548f6f845f63daae40cd | [
"MIT"
] | null | null | null | tests/test_evaluate_model.py | pribij/MovieRecommender | b83572ecf0632a7260ee548f6f845f63daae40cd | [
"MIT"
] | 4 | 2021-03-10T02:18:35.000Z | 2021-04-05T02:32:21.000Z | import unittest
import os
import pandas as pd
from scipy.sparse import csr_matrix, load_npz
from MovieRecommender.train_test_model import *
test_sparse_user_item = load_npz("./tests/test_sparse_user_item.npz")
test_train_data, test_test_data, test_users_altered = test_train_split(test_sparse_user_item)
test_als_model,... | 37.695652 | 169 | 0.800461 | 129 | 867 | 4.899225 | 0.372093 | 0.056962 | 0.066456 | 0.085443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116494 | 867 | 22 | 170 | 39.409091 | 0.825065 | 0.053057 | 0 | 0 | 0 | 0 | 0.050307 | 0.040491 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9ee71469b6bbb4287c584b6b575e09912cf11151 | 284 | py | Python | utils/run_all_tests.py | nehswu/ShortcutMapper | fd7d040283e90ce7e5bee9151fe9a640da4c0feb | [
"MIT"
] | 388 | 2015-01-04T14:53:53.000Z | 2022-03-29T05:16:24.000Z | utils/run_all_tests.py | nehswu/ShortcutMapper | fd7d040283e90ce7e5bee9151fe9a640da4c0feb | [
"MIT"
] | 20 | 2015-01-25T16:06:17.000Z | 2021-11-13T11:47:21.000Z | utils/run_all_tests.py | nehswu/ShortcutMapper | fd7d040283e90ce7e5bee9151fe9a640da4c0feb | [
"MIT"
] | 112 | 2015-01-04T14:53:55.000Z | 2022-03-23T13:26:51.000Z | import os
import sys
# Add root dir to PATH env var
CWD = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, CWD)
sys.path.insert(0, os.path.normpath(os.path.join(CWD, '..')))
import tests
import shmaplib
shmaplib.setuplog()
if __name__ == '__main__':
tests.main()
| 17.75 | 61 | 0.711268 | 46 | 284 | 4.130435 | 0.521739 | 0.126316 | 0.136842 | 0.147368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.133803 | 284 | 15 | 62 | 18.933333 | 0.764228 | 0.098592 | 0 | 0 | 0 | 0 | 0.03937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9ee8bb1f8128d303327cb0991ed4e1f57117583b | 14,823 | py | Python | cross3d/maya/mayasceneobject.py | vedantirb/cross3d | e27c2dc80bf607ef7ccf3970b713bfea8211228b | [
"MIT"
] | 129 | 2016-07-26T16:00:56.000Z | 2021-08-07T03:44:41.000Z | cross3d/maya/mayasceneobject.py | vedantirb/cross3d | e27c2dc80bf607ef7ccf3970b713bfea8211228b | [
"MIT"
] | 3 | 2016-08-26T01:37:03.000Z | 2019-08-13T01:46:01.000Z | cross3d/maya/mayasceneobject.py | vedantirb/cross3d | e27c2dc80bf607ef7ccf3970b713bfea8211228b | [
"MIT"
] | 33 | 2016-07-30T00:26:00.000Z | 2022-03-09T07:10:54.000Z | import re
import maya.OpenMaya as om
import maya.OpenMayaAnim as oma
import maya.cmds as cmds
from cross3d.constants import ObjectType, RotationOrder, PointerTypes
from cross3d import application, UserProps, ExceptionRouter
from cross3d.abstract.abstractsceneobject import AbstractSceneObject
class MayaSc... | 37.910486 | 143 | 0.693112 | 1,702 | 14,823 | 5.969448 | 0.237955 | 0.017717 | 0.020472 | 0.024409 | 0.131398 | 0.087205 | 0.062795 | 0.050984 | 0.042913 | 0.034055 | 0 | 0.00264 | 0.182419 | 14,823 | 390 | 144 | 38.007692 | 0.835713 | 0.135533 | 0 | 0.137615 | 0 | 0 | 0.048176 | 0 | 0 | 0 | 0 | 0.005128 | 0 | 0 | null | null | 0.004587 | 0.041284 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ee8c8979c7cae022fe43ad033bcf2ba6d1e0f53 | 7,315 | py | Python | sdk/python/pulumi_vault/generic/get_secret.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2019-10-07T17:44:18.000Z | 2022-03-30T20:46:33.000Z | sdk/python/pulumi_vault/generic/get_secret.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 79 | 2019-10-11T18:13:07.000Z | 2022-03-31T21:09:41.000Z | sdk/python/pulumi_vault/generic/get_secret.py | pulumi/pulumi-vault | 1682875f4a5d7d508f36e166529ad2b8aec34090 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-10-28T10:08:40.000Z | 2020-03-17T14:20:55.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 38.703704 | 169 | 0.654272 | 923 | 7,315 | 4.975081 | 0.19935 | 0.020906 | 0.036585 | 0.058798 | 0.383493 | 0.287456 | 0.251524 | 0.233232 | 0.194686 | 0.194686 | 0 | 0.000552 | 0.256733 | 7,315 | 188 | 170 | 38.909574 | 0.844032 | 0.282297 | 0 | 0.111111 | 1 | 0 | 0.139324 | 0.01146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.042735 | 0.034188 | 0.264957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9eecd52aa47724d823071208eab177f9016c1ea8 | 4,386 | py | Python | bin_wind.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 32 | 2015-01-07T01:48:05.000Z | 2022-03-02T07:07:42.000Z | bin_wind.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 1 | 2015-04-13T21:00:18.000Z | 2015-04-13T21:00:18.000Z | bin_wind.py | petercunning/notebook | 5b26f2dc96bcb36434542b397de6ca5fa3b61a0a | [
"MIT"
] | 30 | 2015-01-28T09:31:29.000Z | 2022-03-07T03:08:28.000Z | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
import netCDF4
%matplotlib inline
from scipy.stats import binned_statistic_2d
import datetime as dt
import pandas as pd
import oceans
import matplotlib.pyplot as plt
import numpy as np
import numpy.ma as ma
# <codecell>
url='http://dods.ndbc.noaa.gov/t... | 19.321586 | 106 | 0.70839 | 722 | 4,386 | 4.210526 | 0.239612 | 0.041447 | 0.025658 | 0.039474 | 0.605592 | 0.558553 | 0.542105 | 0.509868 | 0.469079 | 0.469079 | 0 | 0.039313 | 0.124259 | 4,386 | 226 | 107 | 19.40708 | 0.752148 | 0.174419 | 0 | 0.427184 | 0 | 0.048544 | 0.16028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.07767 | null | null | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9eefac972f019353d09d09c2428a8b5c4c397bf5 | 4,010 | py | Python | src/cosmospy/generated/coin_pb2.py | bitpanda-labs/cosmospy | d7371033ce9d34df586b37b87f1f4dd333c3f4c7 | [
"MIT"
] | null | null | null | src/cosmospy/generated/coin_pb2.py | bitpanda-labs/cosmospy | d7371033ce9d34df586b37b87f1f4dd333c3f4c7 | [
"MIT"
] | null | null | null | src/cosmospy/generated/coin_pb2.py | bitpanda-labs/cosmospy | d7371033ce9d34df586b37b87f1f4dd333c3f4c7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: coin.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.... | 50.125 | 868 | 0.779052 | 591 | 4,010 | 4.98308 | 0.248731 | 0.024448 | 0.032598 | 0.040747 | 0.463837 | 0.36129 | 0.341596 | 0.300849 | 0.296774 | 0.286587 | 0 | 0.112009 | 0.073815 | 4,010 | 79 | 869 | 50.759494 | 0.680937 | 0.116209 | 0 | 0.142857 | 1 | 0.107143 | 0.37762 | 0.309632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9ef5ae2551092bd8ff401d1c8d84b7035918f433 | 213 | py | Python | m7.py | mohitalivenetsolutions/alivenet-python-training | 19968bbec0b9a44884e0175414342a8ca4ebb1fd | [
"MIT"
] | null | null | null | m7.py | mohitalivenetsolutions/alivenet-python-training | 19968bbec0b9a44884e0175414342a8ca4ebb1fd | [
"MIT"
] | 1 | 2018-07-17T17:09:38.000Z | 2018-07-17T17:09:38.000Z | m7.py | mohitalivenetsolutions/alivenet-python-training | 19968bbec0b9a44884e0175414342a8ca4ebb1fd | [
"MIT"
] | null | null | null | try:
fh = open("mohit.txt", "r")
fh.write("This is exception handling!!")
except IOError:
print("Error: can\'t find file or read data")
else:
print ("Written content in the file successfully")
| 26.625 | 54 | 0.643192 | 31 | 213 | 4.419355 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215962 | 213 | 7 | 55 | 30.428571 | 0.820359 | 0 | 0 | 0 | 0 | 0 | 0.558252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7310d17b8170f7345f88c2657ce56db9cd7d2ec9 | 2,248 | py | Python | Incident-Response/Tools/cyphon/cyphon/warehouses/views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/cyphon/cyphon/warehouses/views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/cyphon/cyphon/warehouses/views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | # -*- coding: utf-8 -*-
# Copyright 2017-2019 ControlScan, Inc.
#
# This file is part of Cyphon Engine.
#
# Cyphon Engine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Cyphon En... | 31.661972 | 76 | 0.660142 | 236 | 2,248 | 6.254237 | 0.483051 | 0.0271 | 0.04065 | 0.04065 | 0.162602 | 0.096206 | 0 | 0 | 0 | 0 | 0 | 0.005356 | 0.169484 | 2,248 | 70 | 77 | 32.114286 | 0.785217 | 0.609431 | 0 | 0.105263 | 0 | 0 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.210526 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
73136b82c4515ad8e20516c67a4271877fea0e86 | 561 | py | Python | whitelist.py | IGLOU-EU/bscdiff | 273d21d9e0f976193921da7cedc46971b16c2a1b | [
"MIT"
] | 1 | 2019-04-11T07:54:23.000Z | 2019-04-11T07:54:23.000Z | whitelist.py | IGLOU-EU/bscdiff | 273d21d9e0f976193921da7cedc46971b16c2a1b | [
"MIT"
] | 3 | 2019-05-28T07:22:01.000Z | 2020-08-17T14:17:58.000Z | whitelist.py | IGLOU-EU/bscdiff | 273d21d9e0f976193921da7cedc46971b16c2a1b | [
"MIT"
] | 1 | 2020-10-20T22:38:51.000Z | 2020-10-20T22:38:51.000Z | # You can get a list of syscalls via strace:
# $ strace -qcf ./bscdiff
dump = """\
read
write
close
fstat
mmap
mprotect
munmap
brk
rt_sigaction
rt_sigprocmask
access
nanosleep
clone
execve
uname
fcntl
sigaltstack
arch_prctl
gettid
futex
sched_getaffinity
set_tid_address
epoll_ctl
openat
newfstatat
readlinkat
set_robus... | 13.682927 | 75 | 0.773619 | 82 | 561 | 5.158537 | 0.841463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008282 | 0.139037 | 561 | 41 | 76 | 13.682927 | 0.867495 | 0.192513 | 0 | 0 | 0 | 0 | 0.648889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7317ca628324ee68a35831e9024c7c133c8a7f2e | 265 | py | Python | CursoEmVideo/Python/Mundo1/ex011 - area e quntidade de tinta para pintar parede.py | Rodrigofsiqueira/Estudo | 3b56ed3f60d0dd62c5531e1bf3bd53308646c722 | [
"MIT"
] | null | null | null | CursoEmVideo/Python/Mundo1/ex011 - area e quntidade de tinta para pintar parede.py | Rodrigofsiqueira/Estudo | 3b56ed3f60d0dd62c5531e1bf3bd53308646c722 | [
"MIT"
] | null | null | null | CursoEmVideo/Python/Mundo1/ex011 - area e quntidade de tinta para pintar parede.py | Rodrigofsiqueira/Estudo | 3b56ed3f60d0dd62c5531e1bf3bd53308646c722 | [
"MIT"
] | null | null | null | altura = float(input("Informe a altura em metros de uma parede: "))
largura = float(input("Digite a largura: "))
area = altura * largura
print("A parede tem um total de {}m²".format(area))
print("E serão necessários {}l de tinta, para pinta-la".format(area / 2))
| 33.125 | 73 | 0.698113 | 43 | 265 | 4.302326 | 0.651163 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.154717 | 265 | 7 | 74 | 37.857143 | 0.816964 | 0 | 0 | 0 | 0 | 0 | 0.513208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7324551f705133373e8957ce7a881ba7598bc2f3 | 474 | py | Python | test_opencv_pi.py | orionrobots/skittlebot | 504bdf9524055acd607a997248198b89ae987cc8 | [
"Apache-2.0"
] | null | null | null | test_opencv_pi.py | orionrobots/skittlebot | 504bdf9524055acd607a997248198b89ae987cc8 | [
"Apache-2.0"
] | null | null | null | test_opencv_pi.py | orionrobots/skittlebot | 504bdf9524055acd607a997248198b89ae987cc8 | [
"Apache-2.0"
] | 2 | 2018-02-23T22:50:20.000Z | 2018-10-03T13:54:28.000Z | # import the necessary packages
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2
# initialize the camera and grab a reference to the raw camera capture
camera = PiCamera()
camera.shutter_speed = 20000
camera.vflip = True
rawCapture = PiRGBArray(camera)
# allow the camera to... | 22.571429 | 70 | 0.780591 | 68 | 474 | 5.426471 | 0.529412 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 0.147679 | 474 | 20 | 71 | 23.7 | 0.893564 | 0.327004 | 0 | 0 | 0 | 0 | 0.035032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7325d42f55b73a6b5b78109fbd8f4ba900c1a314 | 1,430 | py | Python | questions/models.py | Dev-Mehta/AskaDev | 4514383cb1f94178e8082f0b710c7efbdd3225a7 | [
"MIT"
] | 7 | 2020-08-26T12:32:50.000Z | 2020-09-20T09:17:12.000Z | questions/models.py | Dev-Mehta/AskaDev | 4514383cb1f94178e8082f0b710c7efbdd3225a7 | [
"MIT"
] | null | null | null | questions/models.py | Dev-Mehta/AskaDev | 4514383cb1f94178e8082f0b710c7efbdd3225a7 | [
"MIT"
] | 3 | 2020-08-27T06:06:43.000Z | 2020-10-10T15:53:26.000Z | from django.db import models
from django.contrib.auth.models import User
from datetime import datetime
from django.utils import timezone
import secrets
class Tags(models.Model):
tag = models.CharField(max_length=255)
bg_color = models.CharField(max_length=12)
def __str__(self):
return str(self.tag)
class Meta:
... | 35.75 | 65 | 0.791608 | 192 | 1,430 | 5.786458 | 0.296875 | 0.10081 | 0.088209 | 0.132313 | 0.570657 | 0.50405 | 0.365437 | 0.365437 | 0.365437 | 0.283528 | 0 | 0.011628 | 0.097902 | 1,430 | 40 | 66 | 35.75 | 0.849612 | 0 | 0 | 0.305556 | 0 | 0 | 0.002096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.138889 | 0.027778 | 0.972222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7326d7883619145c118f7bdea56eb1578e4868ed | 956 | py | Python | load_graph.py | znalbert/alg_think_mod_1 | 290c19806282e9067f056a65ffa03c95034be9f0 | [
"MIT"
] | null | null | null | load_graph.py | znalbert/alg_think_mod_1 | 290c19806282e9067f056a65ffa03c95034be9f0 | [
"MIT"
] | null | null | null | load_graph.py | znalbert/alg_think_mod_1 | 290c19806282e9067f056a65ffa03c95034be9f0 | [
"MIT"
] | null | null | null | """
Provided code for Application portion of Module 1
Imports physics citation graph
"""
# general imports
import urllib2
# Code for loading citation graph
CITATION_URL = "http://storage.googleapis.com/codeskulptor-alg/alg_phys-cite.txt"
def load_graph(graph_url):
"""
Function that loads a graph given the ... | 24.512821 | 81 | 0.680962 | 129 | 956 | 4.883721 | 0.472868 | 0.079365 | 0.050794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009383 | 0.219665 | 956 | 38 | 82 | 25.157895 | 0.835121 | 0.049163 | 0 | 0 | 0 | 0 | 0.133034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
732febbcd3ba83987fbb56166c8800b660250008 | 851 | py | Python | gcb_web_auth/management/commands/creategroupmanagerconnection.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | 1 | 2017-04-26T10:26:01.000Z | 2017-04-26T10:26:01.000Z | gcb_web_auth/management/commands/creategroupmanagerconnection.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | 25 | 2017-04-26T20:08:55.000Z | 2021-06-07T19:14:43.000Z | gcb_web_auth/management/commands/creategroupmanagerconnection.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | null | null | null | from django.core.management.base import BaseCommand
from gcb_web_auth.models import GroupManagerConnection
class Command(BaseCommand):
help = 'Create/Replace GroupManagerConnection record in the database.'
def add_arguments(self, parser):
parser.add_argument('account_id', type=str, help='Duke Unique ... | 38.681818 | 106 | 0.692127 | 99 | 851 | 5.818182 | 0.494949 | 0.125 | 0.059028 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217391 | 851 | 21 | 107 | 40.52381 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.211516 | 0.025852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.235294 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
73328537bcc0d6c2f2c1ee90eb8017f0854707f5 | 4,906 | py | Python | src/gen_utils.py | vivekvenkris/psrpype | fff6919b3ab00f042478bd73ed8bff0f0101d00a | [
"MIT"
] | null | null | null | src/gen_utils.py | vivekvenkris/psrpype | fff6919b3ab00f042478bd73ed8bff0f0101d00a | [
"MIT"
] | null | null | null | src/gen_utils.py | vivekvenkris/psrpype | fff6919b3ab00f042478bd73ed8bff0f0101d00a | [
"MIT"
] | null | null | null | from configparser import ConfigParser
import os,sys
import subprocess
import shlex
from subprocess import call, PIPE, STDOUT
from errno import ENOENT
from log import Logger
import time
from astropy.time import Time
import datetime
import threading
def get_nearest_even_number(number_int):
return number_int if i... | 26.808743 | 124 | 0.654301 | 655 | 4,906 | 4.735878 | 0.267176 | 0.02579 | 0.012895 | 0.019342 | 0.161186 | 0.145712 | 0.075435 | 0.054803 | 0.027724 | 0.027724 | 0 | 0.002358 | 0.222177 | 4,906 | 182 | 125 | 26.956044 | 0.810535 | 0.160008 | 0 | 0.07767 | 0 | 0.019417 | 0.054878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213592 | false | 0.019417 | 0.106796 | 0.067961 | 0.456311 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7333cf27198d1267e9dd46e08165eb6ed977f8fd | 4,832 | py | Python | assignments/2019/assignment1/cs231n/classifiers/linear_svm.py | adychn/cs231n.github.io | f04e6852ef727d46bc3d0cf6d0ca47cc62af542d | [
"MIT"
] | null | null | null | assignments/2019/assignment1/cs231n/classifiers/linear_svm.py | adychn/cs231n.github.io | f04e6852ef727d46bc3d0cf6d0ca47cc62af542d | [
"MIT"
] | null | null | null | assignments/2019/assignment1/cs231n/classifiers/linear_svm.py | adychn/cs231n.github.io | f04e6852ef727d46bc3d0cf6d0ca47cc62af542d | [
"MIT"
] | null | null | null | from builtins import range
import numpy as np
from random import shuffle
from past.builtins import xrange
def svm_loss_naive(W, X, y, reg):
"""
Structured SVM loss function, naive implementation (with loops).
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
... | 37.169231 | 83 | 0.470406 | 576 | 4,832 | 3.911458 | 0.284722 | 0.021749 | 0.026631 | 0.031957 | 0.327119 | 0.30759 | 0.266755 | 0.222814 | 0.161562 | 0.161562 | 0 | 0.006057 | 0.350786 | 4,832 | 129 | 84 | 37.457364 | 0.712145 | 0.544081 | 0 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015504 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73341294f263b4f8edb09d1a1057567bae96077e | 4,677 | py | Python | python/GafferSceneUI/InstancerUI.py | sebaDesmet/gaffer | 47b2d093c40452bd77947e3b5bd0722a366c8d59 | [
"BSD-3-Clause"
] | null | null | null | python/GafferSceneUI/InstancerUI.py | sebaDesmet/gaffer | 47b2d093c40452bd77947e3b5bd0722a366c8d59 | [
"BSD-3-Clause"
] | null | null | null | python/GafferSceneUI/InstancerUI.py | sebaDesmet/gaffer | 47b2d093c40452bd77947e3b5bd0722a366c8d59 | [
"BSD-3-Clause"
] | 1 | 2020-12-21T12:33:49.000Z | 2020-12-21T12:33:49.000Z | ##########################################################################
#
# Copyright (c) 2015, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistrib... | 26.275281 | 77 | 0.652983 | 585 | 4,677 | 5.220513 | 0.403419 | 0.041257 | 0.020629 | 0.039293 | 0.170923 | 0.147675 | 0.147675 | 0.147675 | 0.147675 | 0.147675 | 0 | 0.002475 | 0.222579 | 4,677 | 177 | 78 | 26.423729 | 0.837459 | 0.340603 | 0 | 0.44186 | 0 | 0 | 0.300633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73348a32e1e3f15cdf6107f345f99536d35c6e27 | 227 | py | Python | Gathered CTF writeups/2016-09-24-dctf/revcrypt400/solv.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:00:41.000Z | 2022-03-27T06:00:41.000Z | Gathered CTF writeups/2016-09-24-dctf/revcrypt400/solv.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | null | null | null | Gathered CTF writeups/2016-09-24-dctf/revcrypt400/solv.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:01:42.000Z | 2022-03-27T06:01:42.000Z | import string, hashlib
s=open("re400.bin").read().strip().decode("hex")[::-1]
lasthi=2
res=""
for c in s:
hi=ord(c)>>4
res+=chr(ord(c)^((hi^lasthi)<<4))
lasthi=hi
print res
print hashlib.md5(res[1:]).hexdigest()
| 16.214286 | 54 | 0.60793 | 40 | 227 | 3.45 | 0.625 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.140969 | 227 | 13 | 55 | 17.461538 | 0.661538 | 0 | 0 | 0 | 0 | 0 | 0.052863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73349546adfdbb33e11befec49d52b654818f23f | 1,859 | py | Python | libsrc/wifi_start_ap.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | libsrc/wifi_start_ap.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | 1 | 2022-01-19T00:16:02.000Z | 2022-01-26T03:43:34.000Z | libsrc/wifi_start_ap.py | t-ikegami/WioTerminal-CircuitPython | efbdc2e13ad969fe009d88f7ec4b836ca61ae973 | [
"MIT"
] | null | null | null | import time
import struct
from wio_terminal_rtl import rpc
from wio_terminal_rtl.rpc import wifi, tcpip_adapter
import wio_terminal_rtl.rpc.constants as C
from wio_terminal_rtl.rpc.struct_wifi import Struct
local_ip = (192, 168, 1, 1)
gateway = (192, 168, 1, 1)
subnet = (255, 255, 255, 0)
def wifi_start_ap(ssi... | 34.425926 | 79 | 0.681549 | 298 | 1,859 | 4.02349 | 0.312081 | 0.110092 | 0.046706 | 0.050042 | 0.250209 | 0.11593 | 0.098415 | 0 | 0 | 0 | 0 | 0.032653 | 0.209252 | 1,859 | 53 | 80 | 35.075472 | 0.782993 | 0.030662 | 0 | 0.093023 | 0 | 0 | 0.073333 | 0.025556 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.139535 | 0.139535 | 0 | 0.255814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
73398cf74434d8736272aadf82cf2493301ad2c4 | 10,636 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/config/users/users.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/config/users/users.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/dellemc/enterprise_sonic/plugins/module_utils/network/sonic/config/users/users.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 2 | 2020-03-11T12:19:45.000Z | 2020-03-11T15:37:53.000Z | #
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The sonic_users class
It is in this file where the current configuration (as dict)
is compared to the provided configuration (as dict) and the command set
necessary to br... | 35.453333 | 115 | 0.598533 | 1,267 | 10,636 | 4.855564 | 0.170481 | 0.022757 | 0.044863 | 0.024382 | 0.364109 | 0.314857 | 0.267555 | 0.258453 | 0.258453 | 0.247724 | 0 | 0.002709 | 0.305754 | 10,636 | 299 | 116 | 35.571906 | 0.830444 | 0.178733 | 0 | 0.175 | 0 | 0 | 0.080892 | 0.020282 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07 | false | 0.075 | 0.04 | 0 | 0.2 | 0.005 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
733e58496c8de11c5f38ac76f72471a84c490e6d | 384 | py | Python | starfish/core/image/_registration/LearnTransform/_base.py | kne42/starfish | 78b348c9756f367221dcca725cfa5107e5520b33 | [
"MIT"
] | null | null | null | starfish/core/image/_registration/LearnTransform/_base.py | kne42/starfish | 78b348c9756f367221dcca725cfa5107e5520b33 | [
"MIT"
] | null | null | null | starfish/core/image/_registration/LearnTransform/_base.py | kne42/starfish | 78b348c9756f367221dcca725cfa5107e5520b33 | [
"MIT"
] | null | null | null | from abc import abstractmethod
from starfish.core.image._registration.transforms_list import TransformsList
from starfish.core.pipeline.algorithmbase import AlgorithmBase
class LearnTransformBase(metaclass=AlgorithmBase):
@abstractmethod
def run(self, stack, *args) -> TransformsList:
"""Learns Trans... | 29.538462 | 76 | 0.776042 | 39 | 384 | 7.589744 | 0.692308 | 0.081081 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148438 | 384 | 12 | 77 | 32 | 0.905199 | 0.09375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7343b831566a626aee75c9a979d90d493b5af3cf | 257 | py | Python | tlib/_sadmtest/check/__init__.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | 1 | 2019-10-15T08:37:56.000Z | 2019-10-15T08:37:56.000Z | tlib/_sadmtest/check/__init__.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | null | null | null | tlib/_sadmtest/check/__init__.py | jrmsdev/pysadm | 0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Jeremías Casteglione <jrmsdev@gmail.com>
# See LICENSE file.
from .builddir import CheckBuilddir
class CheckEnv(object):
_env = None
builddir = None
def __init__(self, env):
self._env = env
self.builddir = CheckBuilddir(self._env)
| 19.769231 | 56 | 0.7393 | 33 | 257 | 5.545455 | 0.666667 | 0.114754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159533 | 257 | 12 | 57 | 21.416667 | 0.847222 | 0.280156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
734657e1e912a5956b0e3f2d32ba71d71c035f8b | 878 | py | Python | programs/pgm05_08.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | programs/pgm05_08.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | programs/pgm05_08.py | danielsunzhongyuan/python_practice | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | [
"Apache-2.0"
] | null | null | null | #
# This file contains the Python code from Program 5.8 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm05_08.txt
#
class Container(Obj... | 25.823529 | 69 | 0.601367 | 105 | 878 | 4.742857 | 0.580952 | 0.120482 | 0.11245 | 0.120482 | 0.080321 | 0.080321 | 0 | 0 | 0 | 0 | 0 | 0.017488 | 0.283599 | 878 | 33 | 70 | 26.606061 | 0.774245 | 0.323462 | 0 | 0.125 | 0 | 0 | 0.015464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.0625 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7348d5eb542dbdd3a0d1497be263dfb5173719d3 | 2,664 | py | Python | parchment/views.py | mentix02/Scrolls | b2df8b6061027dc9519e90740182a369356d9af9 | [
"Apache-2.0"
] | null | null | null | parchment/views.py | mentix02/Scrolls | b2df8b6061027dc9519e90740182a369356d9af9 | [
"Apache-2.0"
] | null | null | null | parchment/views.py | mentix02/Scrolls | b2df8b6061027dc9519e90740182a369356d9af9 | [
"Apache-2.0"
] | null | null | null | """
Views for CRUD operations (mostly filtering
and retrieving) for the Parchment model. Creating
is tricky since we don't want a special page
for creating new Parchments since that is usually
done by the admin panel but a JSON view for
doing it from a native app is not a bad idea yet.
"""
import typing
from parchment... | 27.183673 | 70 | 0.649399 | 321 | 2,664 | 5.333333 | 0.510903 | 0.030374 | 0.051402 | 0.047313 | 0.168808 | 0.150701 | 0.150701 | 0.150701 | 0.095794 | 0.095794 | 0 | 0.003638 | 0.277778 | 2,664 | 97 | 71 | 27.463918 | 0.886175 | 0.356231 | 0 | 0.309524 | 0 | 0 | 0.079701 | 0.013076 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.047619 | false | 0 | 0.119048 | 0.02381 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
734fe9a157a98be25cf66d4cdf175dbf1f23328d | 3,804 | py | Python | kbcqa/method_sp/grounding/_2_1_grounded_graph/grounded_graph_2_1_generation.py | nju-websoft/SkeletonKBQA | 8cf2e697830ef09dca40692e7d254b61f9ffdf8d | [
"Apache-2.0"
] | 6 | 2021-06-05T02:02:13.000Z | 2022-03-14T14:03:54.000Z | kbcqa/method_sp/grounding/_2_1_grounded_graph/grounded_graph_2_1_generation.py | nju-websoft/SkeletonKBQA | 8cf2e697830ef09dca40692e7d254b61f9ffdf8d | [
"Apache-2.0"
] | 1 | 2022-03-16T01:53:38.000Z | 2022-03-16T01:53:38.000Z | kbcqa/method_sp/grounding/_2_1_grounded_graph/grounded_graph_2_1_generation.py | nju-websoft/SkeletonKBQA | 8cf2e697830ef09dca40692e7d254b61f9ffdf8d | [
"Apache-2.0"
] | 2 | 2021-06-10T09:17:56.000Z | 2022-03-15T00:12:12.000Z | from common_structs.grounded_graph import GrounedGraph, GroundedNode, GroundedEdge
nodes_sequence_completed_list = []
node_sequence = []
def _recursion_generate_grounded_graph(grounding_result_list=None, index=0):
'''meanwhile multiple nodes grounding, exponent complexity
:param grounding_result_list [
... | 43.227273 | 138 | 0.649842 | 432 | 3,804 | 5.351852 | 0.199074 | 0.089965 | 0.08218 | 0.044983 | 0.268599 | 0.183824 | 0.157007 | 0.093426 | 0.093426 | 0.093426 | 0 | 0.017131 | 0.263407 | 3,804 | 87 | 139 | 43.724138 | 0.807994 | 0.179811 | 0 | 0.034483 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.017241 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7352a304e49b289b782009dead9b70182f865820 | 449 | py | Python | backend/util/request/models/datespan/datespan_schema.py | willrp/willorders-ws | de0757d8888dab41095c93500a6a88c813755530 | [
"MIT"
] | 4 | 2020-02-19T09:27:23.000Z | 2021-11-26T00:42:06.000Z | backend/util/request/order/models/datespan/datespan_schema.py | willrp/willbuyer | 069836a91c777ede6f62a16daa9f26e555d66bcb | [
"MIT"
] | null | null | null | backend/util/request/order/models/datespan/datespan_schema.py | willrp/willbuyer | 069836a91c777ede6f62a16daa9f26e555d66bcb | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields, validates_schema
from backend.errors.request_error import ValidationError
class DatespanSchema(Schema):
start = fields.Date(format="%Y-%m-%d", required=True)
end = fields.Date(format="%Y-%m-%d", required=True)
@validates_schema
def validate_datespan(self, data,... | 34.538462 | 76 | 0.690423 | 59 | 449 | 5.186441 | 0.59322 | 0.098039 | 0.104575 | 0.111111 | 0.202614 | 0.202614 | 0.202614 | 0.202614 | 0 | 0 | 0 | 0 | 0.173719 | 449 | 12 | 77 | 37.416667 | 0.824798 | 0 | 0 | 0 | 0 | 0 | 0.140312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7358cecb6942360f308b7e1ad225e238f4a5d052 | 746 | py | Python | apps/loop_time_plt.py | nikwitt/cdmft | ebca66c760e0f6618a0b475eeeb5ace3cd229a2c | [
"MIT"
] | 7 | 2019-05-02T13:19:33.000Z | 2021-11-17T14:06:55.000Z | apps/loop_time_plt.py | nikwitt/cdmft | ebca66c760e0f6618a0b475eeeb5ace3cd229a2c | [
"MIT"
] | null | null | null | apps/loop_time_plt.py | nikwitt/cdmft | ebca66c760e0f6618a0b475eeeb5ace3cd229a2c | [
"MIT"
] | 1 | 2021-04-14T15:05:50.000Z | 2021-04-14T15:05:50.000Z | import matplotlib, sys, numpy as np
from cdmft.h5interface import Storage
from cdmft.plot.cfg import plt, ax
n = len(sys.argv[1:])
colors = [matplotlib.cm.jet(i/float(max(1,n-1))) for i in range(n)]
for fname, color in zip(sys.argv[1:], colors):
print "loading "+fname+"..."
sto = Storage(fname)
y = []
... | 28.692308 | 84 | 0.619303 | 120 | 746 | 3.791667 | 0.541667 | 0.03956 | 0.035165 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014754 | 0.182306 | 746 | 25 | 85 | 29.84 | 0.731148 | 0 | 0 | 0 | 0 | 0 | 0.136729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73602704d2083c4cbd2860c50164feda1b7ed5ef | 724 | py | Python | office/urls.py | wis-software/office-manager | 0342d2cf9b3e4779f3e3d2a4faba6768e95047b1 | [
"MIT"
] | 7 | 2017-09-28T11:20:43.000Z | 2020-01-18T23:23:52.000Z | office/urls.py | wis-software/office-manager | 0342d2cf9b3e4779f3e3d2a4faba6768e95047b1 | [
"MIT"
] | 1 | 2019-03-12T18:16:12.000Z | 2019-03-12T20:17:40.000Z | office/urls.py | wis-software/office-manager | 0342d2cf9b3e4779f3e3d2a4faba6768e95047b1 | [
"MIT"
] | 7 | 2017-09-27T11:12:25.000Z | 2019-04-04T13:24:01.000Z | from django.contrib import admin
from django.conf import settings
from django.conf.urls import include, url
from rest_framework_jwt.views import (obtain_jwt_token, refresh_jwt_token,
verify_jwt_token)
from office.views import DRFAuthenticatedGraphQLView
urlpatterns = [
url(r... | 30.166667 | 75 | 0.697514 | 91 | 724 | 5.318681 | 0.362637 | 0.099174 | 0.043388 | 0.07438 | 0.082645 | 0.082645 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18232 | 724 | 23 | 76 | 31.478261 | 0.817568 | 0 | 0 | 0.111111 | 0 | 0 | 0.116183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
73616808a45299e8891773e5b2697de5279638a8 | 212 | py | Python | caoxu/20180329/h1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | caoxu/20180329/h1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | caoxu/20180329/h1.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | '''
编写一个函数:
1) 计算所有参数的和的基数倍(默认基数为base=3)
'''
def func(*num,base = 3):
res = 0
for i in num:
res += i
return res * base
if __name__ =='__main__':
print(func(1,2,3,4,base=1))
print(func(1,2,3,4))
| 11.157895 | 31 | 0.580189 | 38 | 212 | 3.026316 | 0.552632 | 0.156522 | 0.173913 | 0.191304 | 0.226087 | 0.226087 | 0 | 0 | 0 | 0 | 0 | 0.078313 | 0.216981 | 212 | 18 | 32 | 11.777778 | 0.614458 | 0.169811 | 0 | 0 | 0 | 0 | 0.04878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73632f770870a6fb8a64569f8cdd70819e33509f | 1,615 | py | Python | config_vars.py | carverdo/scrap | d431095cadc1bc3f60aa0a3f473e726ecace9078 | [
"MIT"
] | null | null | null | config_vars.py | carverdo/scrap | d431095cadc1bc3f60aa0a3f473e726ecace9078 | [
"MIT"
] | null | null | null | config_vars.py | carverdo/scrap | d431095cadc1bc3f60aa0a3f473e726ecace9078 | [
"MIT"
] | null | null | null | """
Part 1 of the config job - configuring the innards of the app.
"""
__author__ = 'donal'
__project__ = 'ribcage'
import os
import re
# ====================
# POPULATE POSTGRES_KEYS AND #1-3 BLANKS AS REQUIRED
# ====================
DBNAME = 'funding_bible'
PK = os.environ.get('POSTGRES_KEYS', 'BLANK BLANK').split... | 24.104478 | 63 | 0.572755 | 231 | 1,615 | 3.78355 | 0.450216 | 0.02746 | 0.06865 | 0.022883 | 0.12357 | 0.06865 | 0.06865 | 0.06865 | 0.06865 | 0.06865 | 0 | 0.072238 | 0.125697 | 1,615 | 66 | 64 | 24.469697 | 0.546742 | 0.259443 | 0 | 0.135135 | 0 | 0.108108 | 0.36528 | 0.188969 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027027 | 0.054054 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7df807bf76dd16f337b060067b9bf952f0ca6a50 | 758 | py | Python | cogs/utils/checks.py | Wyverns/Limitless | 90bcb219afd2c0b5c84213c7ed691e97cf0f4f8f | [
"Apache-2.0"
] | 2 | 2020-12-29T02:55:22.000Z | 2021-01-07T15:10:00.000Z | cogs/utils/checks.py | Wyverns/Limitless | 90bcb219afd2c0b5c84213c7ed691e97cf0f4f8f | [
"Apache-2.0"
] | 1 | 2021-01-05T04:37:49.000Z | 2021-01-05T04:37:49.000Z | cogs/utils/checks.py | Wyverns/Limitless | 90bcb219afd2c0b5c84213c7ed691e97cf0f4f8f | [
"Apache-2.0"
] | 4 | 2020-12-29T05:24:45.000Z | 2021-01-05T19:13:01.000Z | from discord.ext import commands
from cogs.utils.errors import NotAContributorError
def is_cog_contributor():
"""Check if whoever used the command is in the bots contributors."""
async def predicate(ctx):
if str(ctx.author.id) in ctx.bot.contributors:
return True
else:
... | 28.074074 | 126 | 0.674142 | 104 | 758 | 4.855769 | 0.480769 | 0.023762 | 0.047525 | 0.055446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242744 | 758 | 27 | 127 | 28.074074 | 0.879791 | 0.159631 | 0 | 0.25 | 0 | 0.0625 | 0.132376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7df84ee122dd9ba9101b33460c828b5c6c12386d | 966 | py | Python | venv/Lib/site-packages/nipype/algorithms/tests/test_auto_ActivationCount.py | richung99/digitizePlots | 6b408c820660a415a289726e3223e8f558d3e18b | [
"MIT"
] | 585 | 2015-01-12T16:06:47.000Z | 2022-03-26T14:51:08.000Z | nipype/algorithms/tests/test_auto_ActivationCount.py | tamires-consulting/nipype | b7879d75a63b6500b2e7d2c3eba5aa7670339274 | [
"Apache-2.0"
] | 2,329 | 2015-01-01T09:56:41.000Z | 2022-03-30T14:24:49.000Z | nipype/algorithms/tests/test_auto_ActivationCount.py | tamires-consulting/nipype | b7879d75a63b6500b2e7d2c3eba5aa7670339274 | [
"Apache-2.0"
] | 487 | 2015-01-20T01:04:52.000Z | 2022-03-21T21:22:47.000Z | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..stats import ActivationCount
def test_ActivationCount_inputs():
input_map = dict(
in_files=dict(
mandatory=True,
),
threshold=dict(
mandatory=True,
),
)
inputs = ActivationCount.input_spec(... | 25.421053 | 67 | 0.587992 | 103 | 966 | 5.378641 | 0.427184 | 0.043321 | 0.097473 | 0.064982 | 0.285199 | 0.285199 | 0.198556 | 0.198556 | 0.198556 | 0.198556 | 0 | 0 | 0.303313 | 966 | 37 | 68 | 26.108108 | 0.82318 | 0.052795 | 0 | 0.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7df95306c92b78f3214f616a82a7ca00992302f7 | 1,553 | py | Python | test/testers/winforms/splitter_horizontal/__init__.py | ABEMBARKA/monoUI | 5fda266ad2db8f89580a40b525973d86cd8de939 | [
"MIT"
] | 1 | 2019-08-13T15:22:12.000Z | 2019-08-13T15:22:12.000Z | test/testers/winforms/splitter_horizontal/__init__.py | ABEMBARKA/monoUI | 5fda266ad2db8f89580a40b525973d86cd8de939 | [
"MIT"
] | null | null | null | test/testers/winforms/splitter_horizontal/__init__.py | ABEMBARKA/monoUI | 5fda266ad2db8f89580a40b525973d86cd8de939 | [
"MIT"
] | 1 | 2019-08-13T15:22:17.000Z | 2019-08-13T15:22:17.000Z | ##############################################################################
# Written by: Brian G. Merrell <bgmerrell@novell.com>
# Date: 01/26/2009
# Application wrapper for splitter.py
# Used by the splitter-*.py tests
##############################################################... | 31.693878 | 132 | 0.602061 | 175 | 1,553 | 5.251429 | 0.542857 | 0.043526 | 0.045702 | 0.063112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007383 | 0.215068 | 1,553 | 48 | 133 | 32.354167 | 0.746514 | 0.160979 | 0 | 0 | 0 | 0.04 | 0.256365 | 0.036874 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7dffee5cb743c1b1e80a8db864f50dc4286aaaf4 | 4,308 | py | Python | 9/config/ldapUserSync/ldapUserSync.py | lshahar/openvas-docker | dae8535d8b667b5bcdabba0f18ab5793c934e9ec | [
"MIT"
] | 706 | 2015-03-01T01:45:56.000Z | 2022-03-31T12:41:38.000Z | 9/config/ldapUserSync/ldapUserSync.py | lshahar/openvas-docker | dae8535d8b667b5bcdabba0f18ab5793c934e9ec | [
"MIT"
] | 160 | 2015-01-28T17:19:57.000Z | 2022-03-20T16:43:37.000Z | 9/config/ldapUserSync/ldapUserSync.py | lshahar/openvas-docker | dae8535d8b667b5bcdabba0f18ab5793c934e9ec | [
"MIT"
] | 316 | 2015-02-06T12:50:27.000Z | 2022-03-25T09:59:09.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
ldapUserSync.py
This little script will sync ldap admin user with openvas user. A work around to openvas per-user ldap limitation
Created by lhan on 2015-07-17.
"""
import os
import sys
import getopt
import shlex
import subprocess
from sets import Set
from config import conf... | 29.710345 | 183 | 0.568013 | 511 | 4,308 | 4.704501 | 0.32681 | 0.02995 | 0.033278 | 0.009151 | 0.016639 | 0.016639 | 0 | 0 | 0 | 0 | 0 | 0.013554 | 0.297818 | 4,308 | 144 | 184 | 29.916667 | 0.781157 | 0.049907 | 0 | 0.028037 | 0 | 0.018692 | 0.164877 | 0.036299 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046729 | 0.074766 | null | null | 0.037383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4012d334130d88bb0ae18961d87cb03641af1d2 | 902 | py | Python | graduate_algorithms/longest_common_subsequence.py | kumaratinfy/Problem-Solving | be9e3b8a630e4126f150b9e7f03c2f3290ba3255 | [
"MIT"
] | null | null | null | graduate_algorithms/longest_common_subsequence.py | kumaratinfy/Problem-Solving | be9e3b8a630e4126f150b9e7f03c2f3290ba3255 | [
"MIT"
] | null | null | null | graduate_algorithms/longest_common_subsequence.py | kumaratinfy/Problem-Solving | be9e3b8a630e4126f150b9e7f03c2f3290ba3255 | [
"MIT"
] | null | null | null | """
ID: kumar.g1
LANG: PYTHON2
TASK: Longest Common Subsequence
"""
def longestCommonSubsequence(a, b):
len_a = len(a)
len_b = len(b)
if not len_a or not len_b:
return 0
L = [[0 for _ in range(len_b+1)] for _ in range(len_a+1)]
for i in range(1, len_a+1):
for j in range(1, len_b+1):
if a[i-1... | 20.044444 | 83 | 0.501109 | 190 | 902 | 2.289474 | 0.210526 | 0.041379 | 0.034483 | 0.036782 | 0.243678 | 0.22069 | 0.193103 | 0.16092 | 0.16092 | 0.16092 | 0 | 0.087363 | 0.289357 | 902 | 44 | 84 | 20.5 | 0.591264 | 0.0898 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b40730f09bf0650307bf1a34cc45dadb298d61cf | 30,916 | py | Python | lib/galaxy/tools/util/maf_utilities.py | vimalkumarvelayudhan/galaxy | ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/tools/util/maf_utilities.py | vimalkumarvelayudhan/galaxy | ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7 | [
"CC-BY-3.0"
] | null | null | null | lib/galaxy/tools/util/maf_utilities.py | vimalkumarvelayudhan/galaxy | ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7 | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python
"""
Provides wrappers and utilities for working with MAF files and alignments.
"""
# Dan Blankenberg
import logging
import os
import string
import sys
import tempfile
import pkg_resources
pkg_resources.require( "bx-python" )
import bx.align.maf
import bx.intervals
import bx.interval_index_file
fro... | 40.948344 | 179 | 0.615798 | 3,934 | 30,916 | 4.650229 | 0.127351 | 0.014431 | 0.026238 | 0.015579 | 0.346015 | 0.300481 | 0.267629 | 0.228545 | 0.209413 | 0.191757 | 0 | 0.005164 | 0.298454 | 30,916 | 754 | 180 | 41.002653 | 0.838305 | 0.150925 | 0 | 0.28952 | 0 | 0 | 0.024316 | 0 | 0 | 0 | 0 | 0 | 0.005329 | 0 | null | null | 0.008881 | 0.021314 | null | null | 0.001776 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b408adf72e6d4c205b61766ef8b9fb1dee0cffad | 14,089 | py | Python | python/test/test_data.py | Andrewosh/thunder | 500892f80f758313e3788d50d2c281da64561cbf | [
"Apache-2.0"
] | null | null | null | python/test/test_data.py | Andrewosh/thunder | 500892f80f758313e3788d50d2c281da64561cbf | [
"Apache-2.0"
] | null | null | null | python/test/test_data.py | Andrewosh/thunder | 500892f80f758313e3788d50d2c281da64561cbf | [
"Apache-2.0"
] | null | null | null | from nose.tools import assert_equals, assert_is_none, assert_is_not_none, assert_raises, assert_true
from numpy import allclose, array, array_equal, can_cast, float32
from thunder.rdds.data import Data
from test_utils import PySparkTestCase
class TestImagesGetters(PySparkTestCase):
"""Test `get` and related meth... | 39.464986 | 111 | 0.586983 | 1,950 | 14,089 | 4.128718 | 0.11641 | 0.068315 | 0.08943 | 0.11924 | 0.673705 | 0.632095 | 0.590734 | 0.541423 | 0.478201 | 0.424295 | 0 | 0.057111 | 0.246859 | 14,089 | 357 | 112 | 39.464986 | 0.70163 | 0.112783 | 0 | 0.436508 | 0 | 0 | 0.016778 | 0 | 0 | 0 | 0 | 0 | 0.488095 | 1 | 0.06746 | false | 0 | 0.015873 | 0 | 0.099206 | 0.003968 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4108e479305095310b6467404d1be13a915ab90 | 12,568 | py | Python | railroad/railroad/parserrd/views.py | marineam/nagcat | 445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf | [
"Apache-2.0"
] | null | null | null | railroad/railroad/parserrd/views.py | marineam/nagcat | 445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf | [
"Apache-2.0"
] | null | null | null | railroad/railroad/parserrd/views.py | marineam/nagcat | 445d0efe1fb2ec93c31d1f9d8fa0c0563189ffaf | [
"Apache-2.0"
] | null | null | null | # Copyright 2010 ITASoftware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 32.559585 | 79 | 0.561187 | 1,577 | 12,568 | 4.370958 | 0.227013 | 0.053387 | 0.075439 | 0.080081 | 0.207747 | 0.148702 | 0.071667 | 0.040331 | 0.040331 | 0.040331 | 0 | 0.018104 | 0.296785 | 12,568 | 385 | 80 | 32.644156 | 0.761824 | 0.126194 | 0 | 0.091954 | 0 | 0.003831 | 0.084375 | 0.00213 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042146 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4115f714a9a712cf9b6ff43564a61253f302134 | 3,931 | py | Python | io_scene_xray/obj/imp/ops.py | ed8rez/blender-xray | 543ae9c40dc706216552d92b7f7b7c9d8da9dbf3 | [
"BSD-2-Clause"
] | 1 | 2021-02-14T11:52:25.000Z | 2021-02-14T11:52:25.000Z | io_scene_xray/obj/imp/ops.py | ed8rez/blender-xray | 543ae9c40dc706216552d92b7f7b7c9d8da9dbf3 | [
"BSD-2-Clause"
] | null | null | null | io_scene_xray/obj/imp/ops.py | ed8rez/blender-xray | 543ae9c40dc706216552d92b7f7b7c9d8da9dbf3 | [
"BSD-2-Clause"
] | null | null | null | import os
import bpy
import bpy_extras
from ... import ops, plugin, plugin_prefs, registry, utils
from ...version_utils import assign_props, IS_28
from .. import imp
from . import utils as imp_utils, props
op_import_object_props = {
'filter_glob': bpy.props.StringProperty(
default='*.object', options={'... | 36.06422 | 80 | 0.669804 | 468 | 3,931 | 5.339744 | 0.299145 | 0.052021 | 0.036014 | 0.045618 | 0.10044 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002947 | 0.223098 | 3,931 | 108 | 81 | 36.398148 | 0.815324 | 0 | 0 | 0.043478 | 0 | 0 | 0.120834 | 0.03129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
b41aeb900ba08ed5e59f72cb8281e3194a05e652 | 1,339 | py | Python | Python/demos/gltemplate.py | RyodoTanaka/Klampt | 6f754079fbc39cbb01a39773480655acbbd97b50 | [
"BSD-3-Clause"
] | null | null | null | Python/demos/gltemplate.py | RyodoTanaka/Klampt | 6f754079fbc39cbb01a39773480655acbbd97b50 | [
"BSD-3-Clause"
] | null | null | null | Python/demos/gltemplate.py | RyodoTanaka/Klampt | 6f754079fbc39cbb01a39773480655acbbd97b50 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import sys
from klampt import *
from klampt.glrobotprogram import *
class MyGLViewer(GLSimulationProgram):
def __init__(self,files):
#create a world from the given files
world = WorldModel()
for fn in files:
res = world.readFile(fn)
if not res:
... | 30.431818 | 96 | 0.629574 | 174 | 1,339 | 4.735632 | 0.534483 | 0.014563 | 0.043689 | 0.04733 | 0.11165 | 0.11165 | 0 | 0 | 0 | 0 | 0 | 0.004124 | 0.275579 | 1,339 | 43 | 97 | 31.139535 | 0.845361 | 0.159821 | 0 | 0 | 0 | 0 | 0.146691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.034483 | 0.103448 | null | null | 0.137931 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b41b8bf5d0e14849274f30775043891cd59adeae | 293 | py | Python | tests/utils.py | Mikuana/rumydata | 303ff6558f68628cfc428d2cca12588299f4daa2 | [
"MIT"
] | 3 | 2020-09-03T06:15:35.000Z | 2021-04-16T15:32:22.000Z | tests/utils.py | Mikuana/rumydata | 303ff6558f68628cfc428d2cca12588299f4daa2 | [
"MIT"
] | 48 | 2020-06-14T03:31:15.000Z | 2021-05-20T23:45:20.000Z | tests/utils.py | Mikuana/rumydata | 303ff6558f68628cfc428d2cca12588299f4daa2 | [
"MIT"
] | 1 | 2020-11-04T18:30:57.000Z | 2020-11-04T18:30:57.000Z | from unittest.mock import DEFAULT
def mock_no_module(module: str):
""" force exception on specified module import. For use with mocker """
def func(*args):
if args[0] == module:
raise ModuleNotFoundError
else:
return DEFAULT
return func
| 20.928571 | 75 | 0.624573 | 35 | 293 | 5.171429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.300341 | 293 | 13 | 76 | 22.538462 | 0.878049 | 0.215017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b41d28735d1614415c01757d19698e0feb782c4a | 783 | py | Python | python/tests/test6.py | mattfidler/dparser | e9b105505a97b5b73e9781ef9b79e60f43d4944c | [
"BSD-3-Clause"
] | 91 | 2015-02-20T22:47:23.000Z | 2022-02-24T11:35:12.000Z | python/tests/test6.py | mattfidler/dparser | e9b105505a97b5b73e9781ef9b79e60f43d4944c | [
"BSD-3-Clause"
] | 23 | 2016-10-19T14:11:09.000Z | 2022-03-14T17:14:16.000Z | python/tests/test6.py | mattfidler/dparser | e9b105505a97b5b73e9781ef9b79e60f43d4944c | [
"BSD-3-Clause"
] | 17 | 2016-01-02T18:06:36.000Z | 2022-03-15T14:09:45.000Z | # replaces the '%' symbol with '+', leaving the return values of actions
# usable for other things, such as type information,
# and leaving whitespace intact.
from dparser import Parser
# turn a tree of strings into a single string (slowly):
def stringify(s):
if not isinstance(s, str):
return ''.join(map... | 20.605263 | 72 | 0.613027 | 117 | 783 | 4.076923 | 0.57265 | 0.025157 | 0.020964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018803 | 0.252874 | 783 | 37 | 73 | 21.162162 | 0.796581 | 0.457216 | 0 | 0.105263 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.368421 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b424aecfbdf85dd84d19c6deea4fb5f0c22bb601 | 1,035 | py | Python | tests/test_email.py | AdrianVollmer/Crack-O-Matic | 0a129189dceab60e4a1ae98a3efd4009b25cab73 | [
"MIT"
] | 89 | 2021-03-22T14:26:25.000Z | 2022-03-15T13:46:47.000Z | tests/test_email.py | AdrianVollmer/Crack-O-Matic | 0a129189dceab60e4a1ae98a3efd4009b25cab73 | [
"MIT"
] | 4 | 2021-05-07T13:06:51.000Z | 2021-07-15T17:47:03.000Z | tests/test_email.py | AdrianVollmer/Crack-O-Matic | 0a129189dceab60e4a1ae98a3efd4009b25cab73 | [
"MIT"
] | 3 | 2021-08-10T07:16:30.000Z | 2021-09-29T12:22:11.000Z | def test_email(mock_server):
from common import email_config
mock_server.reset()
from crackomatic.email import send_mails
send_mails(
['santa@northpole.com', 'nessie@lochness.net'],
'crackomatic message',
'''Hey there,
this is a test.
Cheers!''',
email_config,
)
... | 27.236842 | 73 | 0.647343 | 116 | 1,035 | 5.543103 | 0.336207 | 0.155521 | 0.167963 | 0.161742 | 0.576983 | 0.522551 | 0.416796 | 0.416796 | 0.416796 | 0.416796 | 0 | 0.002478 | 0.22029 | 1,035 | 37 | 74 | 27.972973 | 0.7943 | 0 | 0 | 0.566667 | 0 | 0 | 0.261833 | 0.072508 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.033333 | false | 0 | 0.066667 | 0 | 0.1 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b42b19899f6e990af95384dce598fba3f85f94f3 | 3,159 | py | Python | test/test_fairnessmetrics.py | masino-lab/fairMLHealth | 943ffed5f57997401823bd2afc257f34f76ea157 | [
"MIT"
] | 19 | 2020-10-29T10:14:59.000Z | 2022-03-20T06:27:35.000Z | test/test_fairnessmetrics.py | masino-lab/fairMLHealth | 943ffed5f57997401823bd2afc257f34f76ea157 | [
"MIT"
] | 52 | 2020-10-14T19:21:27.000Z | 2021-09-15T19:01:52.000Z | test/test_fairnessmetrics.py | masino-lab/fairMLHealth | 943ffed5f57997401823bd2afc257f34f76ea157 | [
"MIT"
] | 9 | 2020-12-02T21:40:27.000Z | 2021-11-01T18:09:10.000Z | """
Validation tests for fairmlhealth
"""
import fairmlhealth.__fairness_metrics as fm
from numpy import isnan
import pandas as pd
import pytest
from .__utils import synth_dataset
@pytest.fixture(scope="class")
def load_data(request):
df = synth_dataset(24)
prtc = pd.Series(df["prtc_attr"])
request.cls.p... | 42.689189 | 102 | 0.666034 | 538 | 3,159 | 3.739777 | 0.180297 | 0.084493 | 0.152087 | 0.090457 | 0.647614 | 0.634692 | 0.601392 | 0.5333 | 0.455268 | 0.366302 | 0 | 0.033255 | 0.190883 | 3,159 | 73 | 103 | 43.273973 | 0.753912 | 0.092118 | 0 | 0 | 0 | 0 | 0.034725 | 0 | 0 | 0 | 0 | 0 | 0.519231 | 1 | 0.173077 | false | 0 | 0.096154 | 0 | 0.288462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b42ba333b42b9d68eb89bacc76c6ea4413c1f06f | 388 | py | Python | etlrox/urls.py | gesielrios/roxtest | 96326f086865dd9df24794e7579d42ccd9828e69 | [
"MIT"
] | null | null | null | etlrox/urls.py | gesielrios/roxtest | 96326f086865dd9df24794e7579d42ccd9828e69 | [
"MIT"
] | null | null | null | etlrox/urls.py | gesielrios/roxtest | 96326f086865dd9df24794e7579d42ccd9828e69 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from rest_framework import routers
from etl.views import PersonViewSet
router = routers.DefaultRouter()
router.register(r'persons', PersonViewSet)
urlpatterns = [
path('admin/', admin.site.urls),
path('', include(router.urls)),
path('... | 25.866667 | 75 | 0.75 | 48 | 388 | 6 | 0.479167 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123711 | 388 | 14 | 76 | 27.714286 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0.126289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b42f07ff4bd508d70e5919e166fafb8523ebde29 | 1,383 | py | Python | store/models/user.py | oulabla/store | b0e8f8685844b38fd9be11d5e677405a1f4690c2 | [
"MIT"
] | null | null | null | store/models/user.py | oulabla/store | b0e8f8685844b38fd9be11d5e677405a1f4690c2 | [
"MIT"
] | null | null | null | store/models/user.py | oulabla/store | b0e8f8685844b38fd9be11d5e677405a1f4690c2 | [
"MIT"
] | null | null | null | import datetime
from sqlalchemy import Column, String, Integer, DateTime, Table
from sqlalchemy.sql.schema import ForeignKey
from sqlalchemy.orm import relationship
from . import BaseModel
from .role import Role
from .phone import Phone
role_assoc_table = Table(
'users_roles',
BaseModel.metadata,
Column('... | 35.461538 | 117 | 0.695589 | 178 | 1,383 | 5.207865 | 0.353933 | 0.064725 | 0.045307 | 0.03452 | 0.256742 | 0.256742 | 0.256742 | 0.159655 | 0.159655 | 0.159655 | 0 | 0 | 0.160521 | 1,383 | 39 | 118 | 35.461538 | 0.79845 | 0 | 0 | 0.064516 | 0 | 0.064516 | 0.214595 | 0.050578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.032258 | 0.225806 | 0.064516 | 0.741935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b42f0ad49f8668a8c1cb994c9a6ccd50ed14521f | 7,512 | py | Python | pysnmp/Unisphere-Data-MIBs.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Unisphere-Data-MIBs.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Unisphere-Data-MIBs.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Unisphere-Data-MIBs (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Unisphere-Data-MIBs
# Produced by pysmi-0.3.4 at Mon Apr 29 21:23:01 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default... | 95.088608 | 1,700 | 0.71033 | 1,058 | 7,512 | 5.041588 | 0.204159 | 0.022872 | 0.033746 | 0.044994 | 0.37889 | 0.34177 | 0.34177 | 0.34177 | 0.34177 | 0.33952 | 0 | 0.156369 | 0.123136 | 7,512 | 78 | 1,701 | 96.307692 | 0.653408 | 0.044196 | 0 | 0 | 0 | 0 | 0.089667 | 0.006136 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.098592 | 0 | 0.098592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4352079a533b68984406b2ed601991f3d642e34 | 1,265 | py | Python | chapter4_serving_patterns/data_cache_pattern/src/app/backend/background_job.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 133 | 2021-04-24T09:57:58.000Z | 2022-03-29T06:23:56.000Z | chapter4_serving_patterns/data_cache_pattern/src/app/backend/background_job.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 6 | 2021-04-24T09:58:40.000Z | 2021-11-19T04:04:40.000Z | chapter4_serving_patterns/data_cache_pattern/src/app/backend/background_job.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 40 | 2021-05-21T23:32:40.000Z | 2022-03-30T00:33:08.000Z | import json
import logging
from typing import Any, Dict, List, Union
from fastapi import BackgroundTasks
from pydantic import BaseModel
from src.app.backend.redis_client import redis_client
logger = logging.getLogger(__name__)
def set_data_redis(key: str, value: Any) -> bool:
data_json = json.dumps(value)
r... | 25.3 | 85 | 0.716996 | 180 | 1,265 | 4.738889 | 0.327778 | 0.063306 | 0.046893 | 0.03517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187352 | 1,265 | 49 | 86 | 25.816327 | 0.829767 | 0 | 0 | 0.058824 | 0 | 0 | 0.075889 | 0.019763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.029412 | 0.176471 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b438a48446673fd0945b2385dfa47a165a3703f7 | 3,028 | py | Python | zendesk.py | Yoshibart/Zendesk | b94196a8d8cf5c909b62491e034d0ea81ebd6ae8 | [
"MIT"
] | null | null | null | zendesk.py | Yoshibart/Zendesk | b94196a8d8cf5c909b62491e034d0ea81ebd6ae8 | [
"MIT"
] | null | null | null | zendesk.py | Yoshibart/Zendesk | b94196a8d8cf5c909b62491e034d0ea81ebd6ae8 | [
"MIT"
] | null | null | null | import requests
import json
from requests.auth import HTTPBasicAuth
username = "oworibarnet@gmail.com"
password = "qadmin-vybwy1-munBuc"
url = "https://zccbarnet.zendesk.com/api/v2/tickets"
class ZenCoding:
'''
Program prints certain elements of the class for the API
'''
def __init__(self, url, usern... | 39.324675 | 98 | 0.472589 | 299 | 3,028 | 4.732441 | 0.371237 | 0.101767 | 0.050883 | 0.062191 | 0.112367 | 0.040989 | 0 | 0 | 0 | 0 | 0 | 0.0116 | 0.316711 | 3,028 | 76 | 99 | 39.842105 | 0.672305 | 0.018494 | 0 | 0.066667 | 0 | 0 | 0.306157 | 0.106901 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.066667 | 0.05 | 0 | 0.15 | 0.383333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b43d5d130a39f2fd5af4c6da5af894b271e176d5 | 52,029 | py | Python | plugin.video.master.reborn/resources/lib/sources/__init__.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:37:15.000Z | 2019-03-05T09:37:15.000Z | plugin.video.master.reborn/resources/lib/sources/__init__.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | plugin.video.master.reborn/resources/lib/sources/__init__.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T22:16:08.000Z | 2021-11-05T22:16:08.000Z | # -*- coding: utf-8 -*-
'''
Master Reborn Add-on
Copyright (C) 2017 Master Reborn
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your... | 36.873848 | 308 | 0.50418 | 5,439 | 52,029 | 4.783784 | 0.102592 | 0.007264 | 0.013605 | 0.007802 | 0.62881 | 0.602637 | 0.583766 | 0.563665 | 0.540874 | 0.530574 | 0 | 0.015043 | 0.373945 | 52,029 | 1,410 | 309 | 36.9 | 0.783747 | 0.039363 | 0 | 0.59798 | 0 | 0.00101 | 0.07677 | 0.018134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032323 | false | 0.060606 | 0.028283 | 0 | 0.092929 | 0.00101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b44019f3e3e6c179ac2f7e3bfb81c2a85cacf48c | 421 | py | Python | escola/migrations/0032_auto_20190525_1643.py | vini84200/medusa2 | 37cf33d05be8b0195b10845061ca893ba5e814dd | [
"MIT"
] | 1 | 2019-03-15T18:04:24.000Z | 2019-03-15T18:04:24.000Z | escola/migrations/0032_auto_20190525_1643.py | vini84200/medusa2 | 37cf33d05be8b0195b10845061ca893ba5e814dd | [
"MIT"
] | 22 | 2019-03-17T21:53:50.000Z | 2021-03-31T19:12:19.000Z | escola/migrations/0032_auto_20190525_1643.py | vini84200/medusa2 | 37cf33d05be8b0195b10845061ca893ba5e814dd | [
"MIT"
] | 1 | 2018-11-25T03:05:23.000Z | 2018-11-25T03:05:23.000Z | # Generated by Django 2.1.8 on 2019-05-25 19:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('escola', '0031_auto_20190525_1141'),
]
operations = [
migrations.AlterField(
model_name='materiadaturma',
name='cont... | 22.157895 | 75 | 0.617577 | 44 | 421 | 5.818182 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100324 | 0.266033 | 421 | 18 | 76 | 23.388889 | 0.728155 | 0.106888 | 0 | 0 | 1 | 0 | 0.179144 | 0.061497 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b447a50b4d200beffac36d6972d862f5f3bed529 | 672 | py | Python | examples/led.py | bgromov/pymetawear | 30ad39791354ac8dae11ab1578637352767884b4 | [
"MIT"
] | 44 | 2016-04-04T20:03:34.000Z | 2021-11-08T11:21:04.000Z | examples/led.py | bgromov/pymetawear | 30ad39791354ac8dae11ab1578637352767884b4 | [
"MIT"
] | 60 | 2016-03-30T11:49:45.000Z | 2022-02-15T04:06:37.000Z | examples/led.py | bgromov/pymetawear | 30ad39791354ac8dae11ab1578637352767884b4 | [
"MIT"
] | 22 | 2016-04-09T21:10:15.000Z | 2019-09-24T19:05:50.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:mod:`led`
==================
Created by hbldh <henrik.blidh@nedomkull.com>
Created on 2016-04-02
"""
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import time
from pymetawear.discover import select_dev... | 20.363636 | 61 | 0.732143 | 96 | 672 | 4.916667 | 0.614583 | 0.063559 | 0.101695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026801 | 0.111607 | 672 | 32 | 62 | 21 | 0.763819 | 0.209821 | 0 | 0 | 0 | 0 | 0.122841 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b4501c08a7cfe0f680fe54166caba3d5f857e497 | 1,353 | py | Python | scripts/GenCarCollision.py | QuinnPainter/Renegade-Rush | 84f5bf1af0a8fda258e6f963dad411f983923f5a | [
"MIT"
] | 1 | 2021-09-17T08:19:10.000Z | 2021-09-17T08:19:10.000Z | scripts/GenCarCollision.py | QuinnPainter/Renegade-Rush | 84f5bf1af0a8fda258e6f963dad411f983923f5a | [
"MIT"
] | 1 | 2020-05-25T11:19:44.000Z | 2020-05-25T11:19:44.000Z | scripts/GenCarCollision.py | QuinnPainter/Renegade-Rush | 84f5bf1af0a8fda258e6f963dad411f983923f5a | [
"MIT"
] | null | null | null | # Generates the table of car collision speed data.
# The table is indexed using the X and Y offsets between the two cars that collided
# and it gives you the X and Y knockback speed the car should now have.
# It assumes the car size is 16 * 24. This means smaller cars are possible, but will have
# lower maximum knockba... | 38.657143 | 89 | 0.651885 | 212 | 1,353 | 4.15566 | 0.566038 | 0.00681 | 0.015891 | 0.018161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038076 | 0.26238 | 1,353 | 35 | 90 | 38.657143 | 0.844689 | 0.536585 | 0 | 0 | 1 | 0 | 0.009772 | 0 | 0 | 0 | 0.019544 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b45240d0e3dc58567098a099711de32c8fccec7d | 1,774 | py | Python | Exercices/chapter_03/p05_sort_stack.py | joelwembo/expert-python-dts-algorithms | d6fc781ea48e96255fcd90fbbe3b9e7c3da60841 | [
"Apache-2.0",
"MIT"
] | null | null | null | Exercices/chapter_03/p05_sort_stack.py | joelwembo/expert-python-dts-algorithms | d6fc781ea48e96255fcd90fbbe3b9e7c3da60841 | [
"Apache-2.0",
"MIT"
] | null | null | null | Exercices/chapter_03/p05_sort_stack.py | joelwembo/expert-python-dts-algorithms | d6fc781ea48e96255fcd90fbbe3b9e7c3da60841 | [
"Apache-2.0",
"MIT"
] | null | null | null | # 3.5 Sort Stacks
import unittest
from chapter_03.stack import Stack
class SortedStack(Stack):
def __init__(self):
super().__init__()
self.temp_stack = Stack()
def push(self, item):
if self.is_empty() or item < self.peek():
super().push(item)
else:
whi... | 24.30137 | 65 | 0.536077 | 225 | 1,774 | 4.097778 | 0.191111 | 0.156182 | 0.151844 | 0.189805 | 0.503254 | 0.440347 | 0.440347 | 0.440347 | 0.329718 | 0.329718 | 0 | 0.028037 | 0.336528 | 1,774 | 72 | 66 | 24.638889 | 0.75531 | 0.008455 | 0 | 0.559322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220339 | 1 | 0.152542 | false | 0 | 0.033898 | 0 | 0.220339 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b452e179f1b0c7a19fd3e137fe97586b5dac08fc | 3,032 | py | Python | src/app.py | kba977/pywinio | 4ed389fbb991871f474beab4c40161affb961c90 | [
"MIT"
] | 11 | 2019-01-28T09:48:24.000Z | 2021-08-23T03:31:58.000Z | src/app.py | liuxinyu12122/pywinio | 4ed389fbb991871f474beab4c40161affb961c90 | [
"MIT"
] | null | null | null | src/app.py | liuxinyu12122/pywinio | 4ed389fbb991871f474beab4c40161affb961c90 | [
"MIT"
] | 9 | 2018-07-25T01:57:29.000Z | 2021-08-23T03:32:10.000Z | import rabird.winio
import time
import atexit
import sys
import string
# KeyBoard Commands
# Command port
KBC_KEY_CMD = 0x64
# Data port
KBC_KEY_DATA = 0x60
__winio = None
shift_character = r'!@#$%^&*()_+{}|:"<>?~'
WordDict = {'a': '1e', 'b': '30', 'c': '2e', 'd': '20', 'e': '12', 'f': '21',
... | 31.583333 | 102 | 0.5 | 382 | 3,032 | 3.680628 | 0.429319 | 0.029872 | 0.04623 | 0.064011 | 0.268137 | 0.213371 | 0.213371 | 0.213371 | 0.213371 | 0.170697 | 0 | 0.076747 | 0.278034 | 3,032 | 96 | 103 | 31.583333 | 0.565555 | 0.08971 | 0 | 0.19697 | 0 | 0.015152 | 0.091528 | 0.007943 | 0 | 0 | 0.013616 | 0 | 0 | 1 | 0.136364 | false | 0.060606 | 0.075758 | 0.015152 | 0.242424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b45eae6174ac64bcba0612e57d058526cae519d2 | 11,572 | py | Python | code/Static_simulation.py | tum-lkn/sicqta | 64ffeb2467b1e865a1d9c666e6e36a2f313b6d69 | [
"Apache-2.0"
] | 1 | 2019-05-29T20:09:21.000Z | 2019-05-29T20:09:21.000Z | code/Static_simulation.py | tum-lkn/sicqta | 64ffeb2467b1e865a1d9c666e6e36a2f313b6d69 | [
"Apache-2.0"
] | null | null | null | code/Static_simulation.py | tum-lkn/sicqta | 64ffeb2467b1e865a1d9c666e6e36a2f313b6d69 | [
"Apache-2.0"
] | null | null | null | import random
import numpy
from matplotlib import pyplot as plt
'''
INPUT VARIABLES
n: the number of active devices in the network
id_length: if given, all the binary id strings will be in certain length.
'''
def initialiseIDs():
'''
Given parameters n(the number of active devices in the network) an... | 38.702341 | 126 | 0.570947 | 1,644 | 11,572 | 3.939173 | 0.18309 | 0.017758 | 0.026251 | 0.006177 | 0.25664 | 0.205065 | 0.170167 | 0.137431 | 0.113959 | 0.070414 | 0 | 0.020511 | 0.334342 | 11,572 | 298 | 127 | 38.832215 | 0.8202 | 0.230643 | 0 | 0.268398 | 0 | 0 | 0.05952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004329 | 0.012987 | null | null | 0.099567 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b460f72dc6246f9d8d90a1ebfad00cbc06155b56 | 6,000 | py | Python | google/ads/google_ads/v0/proto/resources/customer_manager_link_pb2.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v0/proto/resources/customer_manager_link_pb2.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v0/proto/resources/customer_manager_link_pb2.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v0/proto/resources/customer_manager_link.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _me... | 52.631579 | 914 | 0.794167 | 781 | 6,000 | 5.787452 | 0.238156 | 0.065708 | 0.074336 | 0.09292 | 0.489602 | 0.446239 | 0.400221 | 0.367035 | 0.294469 | 0.217257 | 0 | 0.037893 | 0.098333 | 6,000 | 113 | 915 | 53.097345 | 0.797597 | 0.0495 | 0 | 0.26087 | 1 | 0.021739 | 0.417062 | 0.308759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076087 | 0 | 0.076087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b46678a0299169c5d7b90995be2c9f74c78fc568 | 1,175 | py | Python | example-project/process_items.py | alexdevmotion/scrapy-elastic-web-crawling | ad09698bf597ed67a56a0c9e6b0dfad0f7798653 | [
"BSD-3-Clause"
] | null | null | null | example-project/process_items.py | alexdevmotion/scrapy-elastic-web-crawling | ad09698bf597ed67a56a0c9e6b0dfad0f7798653 | [
"BSD-3-Clause"
] | null | null | null | example-project/process_items.py | alexdevmotion/scrapy-elastic-web-crawling | ad09698bf597ed67a56a0c9e6b0dfad0f7798653 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import redis
import csv
import sys
import time
reload(sys)
sys.setdefaultencoding('utf8')
def main(id, no_processes):
start_time = time.time()
r = redis.Redis(host='54.201.225.114')
writer = csv.writer(open("items.csv", 'a'), lineterminator='\n')
... | 29.375 | 113 | 0.613617 | 169 | 1,175 | 4.118343 | 0.408284 | 0.110632 | 0.060345 | 0.048851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026578 | 0.231489 | 1,175 | 39 | 114 | 30.128205 | 0.744186 | 0.035745 | 0 | 0 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.151515 | null | null | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b470cb065a9dce92af03efe338d78685a87297c8 | 21,794 | py | Python | Course-2-Regression/week-4-ridge-regression-assignment-1-blank.py | emetnatbelt/Machine-Learning-Univ-Washington1 | 6e6f9cd69b69157f5c09eed299ab120bf6764de3 | [
"MIT"
] | 20 | 2017-04-06T08:50:58.000Z | 2021-11-01T13:43:22.000Z | Course-2-Regression/week-4-ridge-regression-assignment-1-blank.py | emetnatbelt/Machine-Learning-Univ-Washington | 6e6f9cd69b69157f5c09eed299ab120bf6764de3 | [
"MIT"
] | null | null | null | Course-2-Regression/week-4-ridge-regression-assignment-1-blank.py | emetnatbelt/Machine-Learning-Univ-Washington | 6e6f9cd69b69157f5c09eed299ab120bf6764de3 | [
"MIT"
] | 24 | 2016-06-01T21:28:17.000Z | 2021-10-02T03:17:11.000Z |
# coding: utf-8
# # Regression Week 4: Ridge Regression (interpretation)
# In this notebook, we will run ridge regression multiple times with different L2 penalties to see which one produces the best fit. We will revisit the example of polynomial regression as a means to see the effect of L2 regularization. In parti... | 51.522459 | 541 | 0.723594 | 3,377 | 21,794 | 4.540717 | 0.17708 | 0.026999 | 0.011739 | 0.025434 | 0.378049 | 0.33892 | 0.32066 | 0.3039 | 0.299726 | 0.289748 | 0 | 0.02917 | 0.185189 | 21,794 | 422 | 542 | 51.64455 | 0.834328 | 0.587547 | 0 | 0.435583 | 0 | 0 | 0.084322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018405 | null | null | 0.110429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b48c159b76dcadb138f734f165ec681cff3a3d21 | 435 | py | Python | src/greenbudget/lib/logging/context.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | src/greenbudget/lib/logging/context.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | src/greenbudget/lib/logging/context.py | nickmflorin/django-proper-architecture-testing | da7c4019697e85f921695144375d2f548f1e98ad | [
"MIT"
] | null | null | null | import threading
class Context:
def __init__(self):
self.__dict__['_locals'] = threading.local()
def __getattr__(self, name):
return getattr(self._locals, name, None)
def __setattr__(self, name, value):
setattr(self._locals, name, value)
def __hasattr__(self, name):
... | 22.894737 | 53 | 0.627586 | 48 | 435 | 5.125 | 0.479167 | 0.097561 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278161 | 435 | 18 | 54 | 24.166667 | 0.783439 | 0 | 0 | 0 | 0 | 0 | 0.016092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.076923 | 0.692308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b48ca417e4adf72a63670b92026940d06ded8ea5 | 2,744 | py | Python | LanguageWrappers/python/report.py | geffzhang/My-FyiReporting | 5c42b7aafba4b18cc94c48b3ca994c1aa9dc7a8f | [
"Apache-2.0"
] | 274 | 2015-01-08T13:57:39.000Z | 2022-03-31T07:40:34.000Z | LanguageWrappers/python/report.py | geffzhang/My-FyiReporting | 5c42b7aafba4b18cc94c48b3ca994c1aa9dc7a8f | [
"Apache-2.0"
] | 90 | 2015-05-07T08:53:44.000Z | 2021-11-12T09:12:32.000Z | LanguageWrappers/python/report.py | geffzhang/My-FyiReporting | 5c42b7aafba4b18cc94c48b3ca994c1aa9dc7a8f | [
"Apache-2.0"
] | 174 | 2015-03-05T08:46:27.000Z | 2022-01-24T07:03:07.000Z | from config import *
import tempfile
import os
import shutil
import subprocess
class Report :
__report_path=""
__parameters = {}
def __init__(self, report_path):
self.__report_path = report_path
def set_parameter(self, name, value):
'''
Set a parameters values
name - string - the report parameter nam... | 24.5 | 131 | 0.653426 | 412 | 2,744 | 4.165049 | 0.25 | 0.048951 | 0.024476 | 0.026224 | 0.286713 | 0.262238 | 0.262238 | 0.262238 | 0.182984 | 0.182984 | 0 | 0.001405 | 0.221939 | 2,744 | 111 | 132 | 24.720721 | 0.802342 | 0.090743 | 0 | 0.206897 | 0 | 0 | 0.033644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086207 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b48d19831480d387f262f44c257e1ff0ad598ff6 | 30,939 | py | Python | Model&Data/GCM-CF/cf_evaluation.py | LiangjunFeng/Generative-Any-Shot-Learning | 693c4ab92f2eb04cc453c870782710a982f98e80 | [
"Apache-2.0"
] | null | null | null | Model&Data/GCM-CF/cf_evaluation.py | LiangjunFeng/Generative-Any-Shot-Learning | 693c4ab92f2eb04cc453c870782710a982f98e80 | [
"Apache-2.0"
] | null | null | null | Model&Data/GCM-CF/cf_evaluation.py | LiangjunFeng/Generative-Any-Shot-Learning | 693c4ab92f2eb04cc453c870782710a982f98e80 | [
"Apache-2.0"
] | null | null | null | import torch
from torch.autograd import Variable
import numpy as np
import util
import classifier
from util import cal_macc
from lib import generate_syn_feature
from binary_classifier import BINARY_CLASSIFIER
from knn_classifier import KNNClassifier
import os
from datetime import datetime
import pickle
import numpy as ... | 52.350254 | 203 | 0.546462 | 4,028 | 30,939 | 3.944141 | 0.073734 | 0.017121 | 0.013911 | 0.015107 | 0.588217 | 0.51646 | 0.472525 | 0.406748 | 0.368163 | 0.327878 | 0 | 0.012533 | 0.342383 | 30,939 | 590 | 204 | 52.438983 | 0.768308 | 0.028572 | 0 | 0.339483 | 1 | 0.001845 | 0.036097 | 0.001499 | 0 | 0 | 0 | 0 | 0.00369 | 1 | 0.027675 | false | 0 | 0.027675 | 0 | 0.073801 | 0.02583 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b48e9acece3ee3ee7b45a3887df84ed2e8748a77 | 2,734 | py | Python | emsapi/models/adi_ems_web_api_v2_dto_profile_profile_glossary_py3.py | ge-flight-analytics/emsapi-python | 2e3a53529758f1bd7a2a850119b1cc1b5ac552e3 | [
"MIT"
] | null | null | null | emsapi/models/adi_ems_web_api_v2_dto_profile_profile_glossary_py3.py | ge-flight-analytics/emsapi-python | 2e3a53529758f1bd7a2a850119b1cc1b5ac552e3 | [
"MIT"
] | 2 | 2020-01-16T00:04:35.000Z | 2021-05-26T21:04:06.000Z | emsapi/models/adi_ems_web_api_v2_dto_profile_profile_glossary_py3.py | ge-flight-analytics/emsapi-python | 2e3a53529758f1bd7a2a850119b1cc1b5ac552e3 | [
"MIT"
] | 1 | 2021-02-23T08:25:12.000Z | 2021-02-23T08:25:12.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | 43.396825 | 172 | 0.659473 | 295 | 2,734 | 5.884746 | 0.294915 | 0.112903 | 0.056452 | 0.050691 | 0.173963 | 0.139401 | 0.139401 | 0.054147 | 0 | 0 | 0 | 0.002256 | 0.189466 | 2,734 | 62 | 173 | 44.096774 | 0.781137 | 0.44038 | 0 | 0 | 1 | 0 | 0.284519 | 0.026499 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.038462 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81f2e9bb32c9f0e4046df022d3777aae98a98e70 | 2,591 | py | Python | src/20_idiot.py | TheFlipbook/python_challenge | 21bd42178088bcaafbe02c25a76bc4f2950509b2 | [
"MIT"
] | null | null | null | src/20_idiot.py | TheFlipbook/python_challenge | 21bd42178088bcaafbe02c25a76bc4f2950509b2 | [
"MIT"
] | null | null | null | src/20_idiot.py | TheFlipbook/python_challenge | 21bd42178088bcaafbe02c25a76bc4f2950509b2 | [
"MIT"
] | null | null | null | # http://www.pythonchallenge.com/pc/bin/hex.html
import os
import urllib.request
import urllib.error
out_dir = "_out/idiot"
prompt = "http://www.pythonchallenge.com/pc/hex/unreal.jpg"
prompt_top = "http://www.pythonchallenge.com/pc/hex/"
username = "butter"
password = "fly"
def split_range_data(response_string)... | 26.71134 | 74 | 0.658819 | 349 | 2,591 | 4.790831 | 0.381089 | 0.02512 | 0.043062 | 0.059809 | 0.157297 | 0.141148 | 0.123206 | 0.046651 | 0 | 0 | 0 | 0.008395 | 0.218448 | 2,591 | 96 | 75 | 26.989583 | 0.817284 | 0.199537 | 0 | 0 | 0 | 0 | 0.080543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0.075472 | 0.056604 | 0 | 0.169811 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
81f3a62615397ae589bb262e57c8de83f74b771f | 308 | py | Python | src/plugins/screenshot.py | Tpool1/Asclepius | 760ab31a8933772faa76064a42b11ab6e12d6c9a | [
"MIT"
] | null | null | null | src/plugins/screenshot.py | Tpool1/Asclepius | 760ab31a8933772faa76064a42b11ab6e12d6c9a | [
"MIT"
] | null | null | null | src/plugins/screenshot.py | Tpool1/Asclepius | 760ab31a8933772faa76064a42b11ab6e12d6c9a | [
"MIT"
] | null | null | null | import numpy as np
import cv2
import pyautogui
from packages.play_text import play_text
def screenshot():
ss = pyautogui.screenshot()
ss = cv2.cvtColor(np.array(ss),
cv2.COLOR_RGB2BGR)
cv2.imwrite('screenshot.png', ss)
play_text('Screenshot saved successfully')
| 18.117647 | 46 | 0.675325 | 39 | 308 | 5.230769 | 0.538462 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021186 | 0.233766 | 308 | 16 | 47 | 19.25 | 0.84322 | 0 | 0 | 0 | 0 | 0 | 0.140065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
81f451ee1e21ea256e53a2f60f32ac1df1b3720d | 9,096 | py | Python | scripts/gesdisc_merra_download.py | tsutterley/SMBcorr | 1c911d88483a4a29ce05b253b485b16b799fb66f | [
"MIT"
] | 2 | 2020-12-04T22:12:07.000Z | 2021-01-25T12:38:04.000Z | scripts/gesdisc_merra_download.py | tsutterley/SMBcorr | 1c911d88483a4a29ce05b253b485b16b799fb66f | [
"MIT"
] | null | null | null | scripts/gesdisc_merra_download.py | tsutterley/SMBcorr | 1c911d88483a4a29ce05b253b485b16b799fb66f | [
"MIT"
] | 4 | 2020-06-11T00:09:36.000Z | 2021-01-25T12:38:10.000Z | #!/usr/bin/env python
u"""
gesdisc_merra_download.py
Written by Tyler Sutterley (10/2021)
This program downloads MERRA-2 products using a links list provided by the
Goddard Earth Sciences Data and Information Server Center
https://gmao.gsfc.nasa.gov/reanalysis/MERRA-2/
https://wiki.earthdata.nasa.gov/displ... | 41.724771 | 79 | 0.669415 | 1,212 | 9,096 | 4.955446 | 0.292079 | 0.013986 | 0.021645 | 0.017483 | 0.173826 | 0.140027 | 0.093407 | 0.069098 | 0.05711 | 0.05711 | 0 | 0.017273 | 0.217128 | 9,096 | 217 | 80 | 41.917051 | 0.826148 | 0.451077 | 0 | 0.145455 | 0 | 0 | 0.195477 | 0.04059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0.090909 | 0.1 | 0 | 0.118182 | 0.009091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
81f52646650d1b0919e805f2844975611e805192 | 1,416 | py | Python | mesonbuild/interpreterbase/disabler.py | kira78/meson | 0ae840656c5b87f30872072aa8694667c63c96d2 | [
"Apache-2.0"
] | 2 | 2020-01-17T19:23:16.000Z | 2022-02-03T18:28:03.000Z | mesonbuild/interpreterbase/disabler.py | kira78/meson | 0ae840656c5b87f30872072aa8694667c63c96d2 | [
"Apache-2.0"
] | 1 | 2021-07-27T22:30:20.000Z | 2021-07-27T22:30:20.000Z | mesonbuild/interpreterbase/disabler.py | kira78/meson | 0ae840656c5b87f30872072aa8694667c63c96d2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013-2021 The Meson development team
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agree... | 32.930233 | 88 | 0.684322 | 206 | 1,416 | 4.592233 | 0.475728 | 0.063425 | 0.054968 | 0.047569 | 0.188161 | 0.188161 | 0.188161 | 0.160677 | 0.160677 | 0.082452 | 0 | 0.010979 | 0.228107 | 1,416 | 42 | 89 | 33.714286 | 0.854529 | 0.40113 | 0 | 0.416667 | 0 | 0 | 0.005974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.041667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
81fda286093dd8fa9b1d5133cb76928205bf827a | 791 | py | Python | Scripted/CIP_ParenchymaSubtypeTraining/Scripts/localize_xml.py | aiycko/SlicerCIP | 5d3e9f1c72c96be85d4ca8244315a1cfa7e2da1d | [
"BSD-3-Clause"
] | null | null | null | Scripted/CIP_ParenchymaSubtypeTraining/Scripts/localize_xml.py | aiycko/SlicerCIP | 5d3e9f1c72c96be85d4ca8244315a1cfa7e2da1d | [
"BSD-3-Clause"
] | null | null | null | Scripted/CIP_ParenchymaSubtypeTraining/Scripts/localize_xml.py | aiycko/SlicerCIP | 5d3e9f1c72c96be85d4ca8244315a1cfa7e2da1d | [
"BSD-3-Clause"
] | null | null | null | folder = "/Data/jonieva/tempdata/Sam/xmls_parenchymaTraining_2016_04_05"
def check_files(folder):
import os
for f in (f for f in os.listdir(folder) if f.split(".")[-1] == "xml"):
with open(os.path.join(folder, f), "r") as myfile:
s = myfile.read()
if "<ChestType>90" in s:
... | 43.944444 | 116 | 0.571429 | 107 | 791 | 4.11215 | 0.53271 | 0.045455 | 0.072727 | 0.05 | 0.236364 | 0.236364 | 0.236364 | 0.236364 | 0.236364 | 0.236364 | 0 | 0.050086 | 0.268015 | 791 | 18 | 117 | 43.944444 | 0.709845 | 0.433628 | 0 | 0 | 0 | 0 | 0.179954 | 0.138952 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81ff6186e537763d6651d09557c873c09a63f270 | 11,164 | py | Python | upvote/gae/datastore/models/binary.py | iwikmai/upvote | 77bb200d0e35a28cc5aed98ceee8e234998814b6 | [
"Apache-2.0"
] | 453 | 2017-10-24T15:29:44.000Z | 2021-09-27T23:21:20.000Z | upvote/gae/datastore/models/binary.py | iwikmai/upvote | 77bb200d0e35a28cc5aed98ceee8e234998814b6 | [
"Apache-2.0"
] | 58 | 2018-03-23T21:19:16.000Z | 2021-05-23T20:06:05.000Z | upvote/gae/datastore/models/binary.py | iwikmai/upvote | 77bb200d0e35a28cc5aed98ceee8e234998814b6 | [
"Apache-2.0"
] | 36 | 2018-03-23T21:25:54.000Z | 2021-09-27T23:21:24.000Z | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 33.42515 | 80 | 0.719097 | 1,497 | 11,164 | 5.253173 | 0.245157 | 0.041073 | 0.011572 | 0.016785 | 0.184766 | 0.147889 | 0.112157 | 0.066633 | 0.027976 | 0.027976 | 0 | 0.004888 | 0.193658 | 11,164 | 333 | 81 | 33.525526 | 0.868696 | 0.438642 | 0 | 0.161074 | 0 | 0 | 0.025822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107383 | false | 0 | 0.073826 | 0.020134 | 0.530201 | 0.006711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
81ffa94e01b6788fed91169db0ea2b82d89407ec | 3,880 | py | Python | src/pybuiltins/module/builtins_port.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | null | null | null | src/pybuiltins/module/builtins_port.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | 9 | 2022-02-23T10:32:44.000Z | 2022-03-27T17:55:43.000Z | src/pybuiltins/module/builtins_port.py | Xiddoc/ComPy | 7d26f95209d0615d7eb188fa02470ddae5311fca | [
"MIT"
] | null | null | null | """
Native port for the Python builtin standard library.
"""
from typing import Dict, Any
from src.pybuiltins.PyPortFunctionSignature import PyPortFunctionSignature
# noinspection PyShadowingBuiltins,PyUnusedLocal
def range(end: int) -> Any:
"""
Creates a range of numbers to iterate on.
:param end: The ... | 35.59633 | 120 | 0.632474 | 514 | 3,880 | 4.690661 | 0.266537 | 0.019909 | 0.016176 | 0.008295 | 0.061385 | 0.05309 | 0.023227 | 0.023227 | 0.023227 | 0.023227 | 0 | 0.003326 | 0.225 | 3,880 | 108 | 121 | 35.925926 | 0.79847 | 0.245876 | 0 | 0.156863 | 0 | 0.27451 | 0.553642 | 0.088626 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.039216 | 0 | 0.156863 | 0.137255 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c30195b4f7151fd0a0db6fb5e4e418a7a445ca54 | 365 | py | Python | prereq_map/management/commands/restart_build_graphs.py | uw-it-aca/prereq_map | 91a3842f74ea9f0e9f05bb9d6e9800e692ab76a7 | [
"Apache-2.0"
] | 2 | 2018-11-06T21:05:49.000Z | 2019-04-05T20:04:21.000Z | prereq_map/management/commands/restart_build_graphs.py | uw-it-aca/prereq_map | 91a3842f74ea9f0e9f05bb9d6e9800e692ab76a7 | [
"Apache-2.0"
] | 15 | 2019-02-27T00:09:45.000Z | 2019-04-16T18:24:24.000Z | prereq_map/management/commands/restart_build_graphs.py | uw-it-aca/prereq_map | 91a3842f74ea9f0e9f05bb9d6e9800e692ab76a7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0
from django.core.management.base import BaseCommand
from prereq_map.utils.build_graphs import build_course_graphs, \
build_curric_graphs
class Command(BaseCommand):
def handle(self, *args, **options):
build_curric_... | 28.076923 | 64 | 0.764384 | 48 | 365 | 5.604167 | 0.729167 | 0.081784 | 0.126394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03871 | 0.150685 | 365 | 12 | 65 | 30.416667 | 0.829032 | 0.224658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c30a1af212fec39fd22687f955d904eb5ba438d7 | 3,550 | py | Python | st2common/tests/unit/test_rbac_utils.py | magiceses/st2 | a048ba92a8a1a5d272f277bf8fab0951df903306 | [
"Apache-2.0"
] | null | null | null | st2common/tests/unit/test_rbac_utils.py | magiceses/st2 | a048ba92a8a1a5d272f277bf8fab0951df903306 | [
"Apache-2.0"
] | 2 | 2020-03-04T08:33:36.000Z | 2020-03-04T08:34:14.000Z | st2common/tests/unit/test_rbac_utils.py | magiceses/st2 | a048ba92a8a1a5d272f277bf8fab0951df903306 | [
"Apache-2.0"
] | null | null | null | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | 35.858586 | 89 | 0.717746 | 487 | 3,550 | 5.053388 | 0.287474 | 0.084112 | 0.060951 | 0.030475 | 0.429907 | 0.342544 | 0.272653 | 0.216985 | 0.196262 | 0.196262 | 0 | 0.005996 | 0.201408 | 3,550 | 98 | 90 | 36.22449 | 0.862081 | 0.311831 | 0 | 0.06383 | 0 | 0 | 0.051367 | 0 | 0 | 0 | 0 | 0.010204 | 0.148936 | 1 | 0.106383 | false | 0 | 0.212766 | 0 | 0.340426 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c311af7a75574c319b52dac487ac989467fe6f4b | 415 | py | Python | youtube_audio_telegram/__init__.py | DmitryBarskov/youtube-audio-telegram | 429b98731898f2d77cd47b8fc9ba6e7ae83893f5 | [
"MIT"
] | null | null | null | youtube_audio_telegram/__init__.py | DmitryBarskov/youtube-audio-telegram | 429b98731898f2d77cd47b8fc9ba6e7ae83893f5 | [
"MIT"
] | 2 | 2022-01-27T08:08:32.000Z | 2022-02-02T10:07:35.000Z | youtube_audio_telegram/__init__.py | DmitryBarskov/youtube-audio-telegram | 429b98731898f2d77cd47b8fc9ba6e7ae83893f5 | [
"MIT"
] | 1 | 2022-01-27T00:55:13.000Z | 2022-01-27T00:55:13.000Z | import logging
from environment_variables import PY_ENV
logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
__version__ = '0.1.0'
if PY_ENV.upper() == 'PRODUCTION':
logging.info('Loading production environment')
from production import start_bot
e... | 23.055556 | 65 | 0.725301 | 52 | 415 | 5.615385 | 0.538462 | 0.034247 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008596 | 0.159036 | 415 | 17 | 66 | 24.411765 | 0.82808 | 0 | 0 | 0 | 0 | 0 | 0.308434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c3180bf2196aa739a6be920b8f9900274993b1c8 | 1,986 | py | Python | day6.py | beyonddream/aoc2021 | f571247d5da702d26259626294057d5cec96cacf | [
"MIT"
] | null | null | null | day6.py | beyonddream/aoc2021 | f571247d5da702d26259626294057d5cec96cacf | [
"MIT"
] | null | null | null | day6.py | beyonddream/aoc2021 | f571247d5da702d26259626294057d5cec96cacf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
MAX_ITERATION = 256
def solve():
with open("inputs/day6.txt") as file:
data = [line for line in file]
# WARNING: part_1 will take forever for max_iteration = 256 since it
# uses suboptimal algorithm
#solve_part_1(data)
# part 2 uses linear... | 32.032258 | 90 | 0.570997 | 253 | 1,986 | 4.249012 | 0.324111 | 0.133023 | 0.194419 | 0.055814 | 0.331163 | 0.27907 | 0.27907 | 0.27907 | 0.27907 | 0.27907 | 0 | 0.030166 | 0.332326 | 1,986 | 61 | 91 | 32.557377 | 0.780543 | 0.139476 | 0 | 0.1 | 0 | 0 | 0.06541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.025 | 0 | 0.1 | 0.05 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c31963f49344be3e1c17fd1f96ce6e22534e8660 | 73,704 | py | Python | ctf-challenges/OverWrite/ptmalloc/nuclear/solution/zio.py | sigma-random/ptmalloc2_exploit_demos | 9d7b9c6b08b1704f2480a663332d2e1984ac239a | [
"MIT"
] | 18 | 2015-08-14T16:40:09.000Z | 2017-12-16T03:30:27.000Z | ctf-challenges/OverWrite/ptmalloc/nuclear/solution/zio.py | sigma-random/ptmalloc2_exploit_demos | 9d7b9c6b08b1704f2480a663332d2e1984ac239a | [
"MIT"
] | null | null | null | ctf-challenges/OverWrite/ptmalloc/nuclear/solution/zio.py | sigma-random/ptmalloc2_exploit_demos | 9d7b9c6b08b1704f2480a663332d2e1984ac239a | [
"MIT"
] | 8 | 2016-01-03T16:49:18.000Z | 2020-08-20T15:07:48.000Z | #!/usr/bin/env python2
#===============================================================================
# The Star And Thank Author License (SATA)
#
# Copyright (c) 2014 zTrix(i@ztrix.me)
#
# Project Url: https://github.com/zTrix/zio
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# ... | 39.079533 | 238 | 0.541884 | 9,288 | 73,704 | 4.219854 | 0.13329 | 0.007195 | 0.005052 | 0.003674 | 0.284151 | 0.23621 | 0.189748 | 0.168776 | 0.14839 | 0.139613 | 0 | 0.009586 | 0.363087 | 73,704 | 1,885 | 239 | 39.100265 | 0.825341 | 0.158214 | 0 | 0.431115 | 0 | 0.003096 | 0.088467 | 0 | 0.000774 | 0 | 0 | 0.001061 | 0.004644 | 0 | null | null | 0.013158 | 0.004644 | null | null | 0.033282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c319f8c2c6ba2b116a9cb95ea0c330a9856b371e | 292 | py | Python | setup.py | Wing-Lo/huobi_Python | 3b3879d4ebcd83a407dacfaebec93c80f007e4a8 | [
"Apache-2.0"
] | null | null | null | setup.py | Wing-Lo/huobi_Python | 3b3879d4ebcd83a407dacfaebec93c80f007e4a8 | [
"Apache-2.0"
] | 1 | 2020-12-05T11:41:35.000Z | 2020-12-05T11:41:35.000Z | setup.py | Wing-Lo/huobi_Python | 3b3879d4ebcd83a407dacfaebec93c80f007e4a8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup
setup(
name="huobi-client",
version="0.1",
packages=['huobi', 'huobi.impl', 'huobi.impl.utils', 'huobi.exception', 'huobi.model'],
install_requires=['requests', 'apscheduler', 'websocket', 'websocket-client', 'urllib3']
)
| 26.545455 | 92 | 0.671233 | 34 | 292 | 5.735294 | 0.735294 | 0.092308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.130137 | 292 | 10 | 93 | 29.2 | 0.751969 | 0.071918 | 0 | 0 | 0 | 0 | 0.457249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3217e7fd91f9d23f752a4c5fd8e39f9085e505a | 324 | py | Python | streak.py | jonspeicher/blinkyfun | 9dfc72399f3006c07194827ce364af3de4b8d35b | [
"MIT"
] | null | null | null | streak.py | jonspeicher/blinkyfun | 9dfc72399f3006c07194827ce364af3de4b8d35b | [
"MIT"
] | null | null | null | streak.py | jonspeicher/blinkyfun | 9dfc72399f3006c07194827ce364af3de4b8d35b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from blinkylib import blinkytape, blinkycolor
from blinkylib.patterns import streak
import time
bt = blinkytape.BlinkyTape('/dev/tty.usbmodem1421')
pattern = streak.Streak(bt, blinkycolor.ORANGE, 20)
pattern.setup()
while pattern.animated:
pattern.animate()
time.sleep(pattern.timebase_s... | 23.142857 | 51 | 0.777778 | 41 | 324 | 6.121951 | 0.634146 | 0.103586 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020906 | 0.114198 | 324 | 13 | 52 | 24.923077 | 0.853659 | 0.061728 | 0 | 0 | 0 | 0 | 0.069307 | 0.069307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c32a12c8288072de66f54bd3d519cbb55c4de04a | 1,016 | py | Python | app/schemas/auth.py | sarzz2/bonafide-bot-dashboard | f1238d372091ba77ef7533fbb5df07495ceae22c | [
"MIT"
] | null | null | null | app/schemas/auth.py | sarzz2/bonafide-bot-dashboard | f1238d372091ba77ef7533fbb5df07495ceae22c | [
"MIT"
] | null | null | null | app/schemas/auth.py | sarzz2/bonafide-bot-dashboard | f1238d372091ba77ef7533fbb5df07495ceae22c | [
"MIT"
] | null | null | null | from typing import List, Optional, Any
from pydantic import BaseModel
class Role(BaseModel):
id: int
name: str
color: int
position: int
permissions: int
managed: bool
mentionable: bool
class GuildPreview(BaseModel):
id: str = None
name: str
icon: Optional[str]
owner: bool... | 20.32 | 77 | 0.648622 | 123 | 1,016 | 5.219512 | 0.471545 | 0.068536 | 0.043614 | 0.056075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250984 | 1,016 | 49 | 78 | 20.734694 | 0.843627 | 0 | 0 | 0.15 | 0 | 0 | 0.061024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.05 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c32c9718ec2d3a010bb9e7d9f251e5f15603770f | 296 | py | Python | pridesport_work/sportgoods/migrations/0007_delete_like.py | Trifon87/pridesport_work | 9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c | [
"MIT"
] | null | null | null | pridesport_work/sportgoods/migrations/0007_delete_like.py | Trifon87/pridesport_work | 9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c | [
"MIT"
] | null | null | null | pridesport_work/sportgoods/migrations/0007_delete_like.py | Trifon87/pridesport_work | 9ab47d3c58915c2e791bf8a1fcb3ceee1d8de62c | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-06 16:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('sportgoods', '0006_auto_20201123_1850'),
]
operations = [
migrations.DeleteModel(
name='Like',
),
]
| 17.411765 | 50 | 0.60473 | 32 | 296 | 5.5 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146226 | 0.283784 | 296 | 16 | 51 | 18.5 | 0.683962 | 0.152027 | 0 | 0 | 1 | 0 | 0.148594 | 0.092369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33742c0a2b8fd1f496a99830b697c2c7dbadf54 | 20,620 | py | Python | services/common/Config.py | usnistgov/SpectrumBrowser | de398cb1e4ad4669e81a9504bbd32b1fd167841e | [
"BSD-Source-Code"
] | 10 | 2016-12-12T11:40:49.000Z | 2021-11-30T01:28:26.000Z | services/common/Config.py | usnistgov/SpectrumBrowser | de398cb1e4ad4669e81a9504bbd32b1fd167841e | [
"BSD-Source-Code"
] | null | null | null | services/common/Config.py | usnistgov/SpectrumBrowser | de398cb1e4ad4669e81a9504bbd32b1fd167841e | [
"BSD-Source-Code"
] | 4 | 2016-10-21T19:16:32.000Z | 2021-08-25T14:41:10.000Z | # -*- coding: utf-8 -*-
#
#This software was developed by employees of the National Institute of
#Standards and Technology (NIST), and others.
#This software has been contributed to the public domain.
#Pursuant to title 15 Untied States Code Section 105, works of NIST
#employees are not subject to copyright protection ... | 29.711816 | 112 | 0.666974 | 2,335 | 20,620 | 5.756317 | 0.15803 | 0.023957 | 0.022097 | 0.049624 | 0.405327 | 0.357339 | 0.315453 | 0.303921 | 0.287553 | 0.238375 | 0 | 0.004971 | 0.238991 | 20,620 | 693 | 113 | 29.75469 | 0.85158 | 0.052182 | 0 | 0.395522 | 0 | 0 | 0.06127 | 0.001332 | 0 | 0 | 0 | 0.001443 | 0 | 0 | null | null | 0.011194 | 0.078358 | null | null | 0.009328 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33919cc8fe49fd80d9073c94e16a7e54d773324 | 6,957 | py | Python | python-build/build.py | stormtheh4ck3r/python-for-android | b9ea9161392f60566b81482b1e25cd77004d5c45 | [
"Apache-2.0"
] | 4 | 2016-05-04T07:05:22.000Z | 2020-09-24T00:21:05.000Z | python-build/build.py | stormtheh4ck3r/python-for-android | b9ea9161392f60566b81482b1e25cd77004d5c45 | [
"Apache-2.0"
] | null | null | null | python-build/build.py | stormtheh4ck3r/python-for-android | b9ea9161392f60566b81482b1e25cd77004d5c45 | [
"Apache-2.0"
] | 1 | 2018-12-12T03:06:17.000Z | 2018-12-12T03:06:17.000Z | #!/usr/bin/python
# Copyright (C) 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 34.102941 | 92 | 0.675866 | 1,012 | 6,957 | 4.583004 | 0.221344 | 0.046572 | 0.064683 | 0.058862 | 0.303579 | 0.236309 | 0.154377 | 0.114273 | 0.081285 | 0.01423 | 0 | 0.008402 | 0.144603 | 6,957 | 203 | 93 | 34.270936 | 0.770963 | 0.094725 | 0 | 0.045455 | 0 | 0 | 0.308072 | 0.071008 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006494 | 0.051948 | null | null | 0.123377 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3394c1cd99ad6186c13276f55fb62ba0ed7c3fd | 417 | py | Python | timecat/apps/course/migrations/0003_course_category.py | LinXueyuanStdio/memp | c6f6609cec7c54ec23881838dacb5f4ffba2e68c | [
"Apache-2.0"
] | null | null | null | timecat/apps/course/migrations/0003_course_category.py | LinXueyuanStdio/memp | c6f6609cec7c54ec23881838dacb5f4ffba2e68c | [
"Apache-2.0"
] | null | null | null | timecat/apps/course/migrations/0003_course_category.py | LinXueyuanStdio/memp | c6f6609cec7c54ec23881838dacb5f4ffba2e68c | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-25 18:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0002_course_course_org'),
]
operations = [
migrations.AddField(
model_name='course',
name='category',
... | 21.947368 | 83 | 0.604317 | 46 | 417 | 5.347826 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069079 | 0.270983 | 417 | 18 | 84 | 23.166667 | 0.740132 | 0.107914 | 0 | 0 | 1 | 0 | 0.124324 | 0.059459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33ac5e5996ebc65564e049afd0f52977ab33b89 | 15,574 | py | Python | toil/framework.py | dhutty/toil-py | 591e7d0fbc397747a4626a489249d292983a79cc | [
"MIT"
] | null | null | null | toil/framework.py | dhutty/toil-py | 591e7d0fbc397747a4626a489249d292983a79cc | [
"MIT"
] | null | null | null | toil/framework.py | dhutty/toil-py | 591e7d0fbc397747a4626a489249d292983a79cc | [
"MIT"
] | 1 | 2019-07-29T17:53:51.000Z | 2019-07-29T17:53:51.000Z | # -*- coding: utf-8 -*-
"""
Toil Library
Author: Andrew Love
Provides a library of code for interacting with cloud technology such as OCI, AWS, OPENSTACK, SCALR and CHEF.
"""
import json
import provider.datasource
import crypto.symmetric
import config.util
import logging
import glob
import os.path
impo... | 35.235294 | 128 | 0.579299 | 1,726 | 15,574 | 5.017381 | 0.14832 | 0.020323 | 0.03291 | 0.04157 | 0.393072 | 0.334642 | 0.300231 | 0.263279 | 0.263279 | 0.20739 | 0 | 0.002672 | 0.327148 | 15,574 | 441 | 129 | 35.315193 | 0.823743 | 0.070695 | 0 | 0.206009 | 0 | 0 | 0.075522 | 0.023273 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004292 | 0.051502 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33f1c7f6b14dbfd96d907cd69724beff9fe4836 | 602 | py | Python | flask_arch/__main__.py | Geo-Gabriel/flask_arch | ded34f17461f3d090a1a46a3214d684a8d6f8c79 | [
"MIT"
] | 8 | 2020-04-15T02:33:55.000Z | 2021-05-14T18:57:51.000Z | flask_arch/__main__.py | douugbr/flask_arch | b94eb138648a45f52f202faff5033c0d4bb47b28 | [
"MIT"
] | 1 | 2021-02-01T22:24:38.000Z | 2021-02-03T18:03:00.000Z | flask_arch/__main__.py | douugbr/flask_arch | b94eb138648a45f52f202faff5033c0d4bb47b28 | [
"MIT"
] | 2 | 2020-04-15T02:33:57.000Z | 2021-01-31T15:47:11.000Z | from flask_arch.gen_arch import generate_flask_arch
import argparse
def get_args():
parser = argparse.ArgumentParser(description='Template generator for Flask projects.')
parser.add_argument('command', choices=['init'], help='Generate the template of choice.')
#For future use
#parser.add_argume... | 24.08 | 109 | 0.679402 | 75 | 602 | 5.28 | 0.546667 | 0.068182 | 0.085859 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189369 | 602 | 24 | 110 | 25.083333 | 0.811475 | 0.196013 | 0 | 0 | 1 | 0 | 0.176349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c340fbf611e74046d7c49f0b41907821075d2983 | 256 | py | Python | test/pytch/py/project/custom_stage.py | Liampobob/pytch-vm | bb2cf19c0736d467daf195635a9de9903aaa1237 | [
"MIT"
] | 2 | 2021-11-29T09:47:23.000Z | 2022-02-11T15:48:20.000Z | test/pytch/py/project/custom_stage.py | Liampobob/pytch-vm | bb2cf19c0736d467daf195635a9de9903aaa1237 | [
"MIT"
] | 1 | 2022-02-28T13:50:48.000Z | 2022-02-28T13:50:48.000Z | test/pytch/py/project/custom_stage.py | Liampobob/pytch-vm | bb2cf19c0736d467daf195635a9de9903aaa1237 | [
"MIT"
] | 4 | 2021-02-12T15:27:33.000Z | 2022-03-16T10:26:55.000Z | import pytch
from pytch import (
Project,
Stage,
)
class Scenery(Stage):
def __init__(self):
Stage.__init__(self)
self.colour = 'red'
# --cut-here-for-auto-config--
project = Project()
project.register_stage_class(Scenery)
| 14.222222 | 37 | 0.65625 | 31 | 256 | 5.096774 | 0.580645 | 0.126582 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21875 | 256 | 17 | 38 | 15.058824 | 0.79 | 0.109375 | 0 | 0 | 0 | 0 | 0.013274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3461f85968a7533a4fd021f3421bb12094780e6 | 4,086 | py | Python | src/configuration/components/commons.py | django-hurricane/spacecrafts-demo | b44b1ee5aa451e37afab8bd78adeb429c5b3b619 | [
"MIT"
] | 2 | 2022-03-15T15:05:51.000Z | 2022-03-17T19:50:06.000Z | src/configuration/components/commons.py | django-hurricane/spacecrafts-demo | b44b1ee5aa451e37afab8bd78adeb429c5b3b619 | [
"MIT"
] | null | null | null | src/configuration/components/commons.py | django-hurricane/spacecrafts-demo | b44b1ee5aa451e37afab8bd78adeb429c5b3b619 | [
"MIT"
] | null | null | null | """
Django settings for a Hurricane-based project.
For the full list of settings and their config, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from decouple import config
from django.utils.translation import gettext_lazy as _
from configuration.components import BASE_DIR
DEBUG = config("DJ... | 30.954545 | 99 | 0.68184 | 464 | 4,086 | 5.81681 | 0.366379 | 0.044461 | 0.033346 | 0.046313 | 0.220082 | 0.169692 | 0.059281 | 0.059281 | 0.059281 | 0 | 0 | 0.008993 | 0.183554 | 4,086 | 131 | 100 | 31.19084 | 0.80006 | 0.188693 | 0 | 0.12987 | 0 | 0 | 0.410763 | 0.27972 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.077922 | 0.051948 | 0 | 0.051948 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c34b9b84c3b2f4145d90426b2233b18176f22b46 | 8,327 | py | Python | ccuapi/purge.py | elmirjagudin/python-ccuapi | b2d9dc7a6ac50eb80c8488c026c0297f971e353f | [
"BSD-3-Clause"
] | 7 | 2015-07-18T06:36:11.000Z | 2019-04-10T08:06:49.000Z | ccuapi/purge.py | elmirjagudin/python-ccuapi | b2d9dc7a6ac50eb80c8488c026c0297f971e353f | [
"BSD-3-Clause"
] | 4 | 2015-03-03T16:26:38.000Z | 2019-05-29T10:33:05.000Z | ccuapi/purge.py | elmirjagudin/python-ccuapi | b2d9dc7a6ac50eb80c8488c026c0297f971e353f | [
"BSD-3-Clause"
] | 5 | 2015-06-12T11:34:16.000Z | 2021-02-03T11:29:55.000Z | """
This module holds the class(es) required to interact with the Akamai
CCU API.
"""
import re
import json
import requests
from . import AKAMAI_USERNAME, AKAMAI_PASSWORD, AKAMAI_NOTIFY_EMAIL
from . import AKAMAI_API_HOST, AKAMAI_HTTPS_TIMEOUT
from .exceptions import AkamaiPurgeTypeException
from .exceptions import A... | 37.340807 | 79 | 0.599736 | 1,007 | 8,327 | 4.878848 | 0.308838 | 0.026867 | 0.024425 | 0.009159 | 0.069611 | 0.054956 | 0.028903 | 0 | 0 | 0 | 0 | 0.004267 | 0.324487 | 8,327 | 222 | 80 | 37.509009 | 0.869156 | 0.301429 | 0 | 0.112903 | 0 | 0 | 0.145947 | 0.012177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056452 | false | 0.064516 | 0.08871 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c3539aacd9db721ea512067380e52b2b11c49ab2 | 480 | py | Python | src/backend/app/db/crud/wedding/wedding_info.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 5 | 2020-02-02T02:39:23.000Z | 2021-08-17T15:50:57.000Z | src/backend/app/db/crud/wedding/wedding_info.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 4 | 2021-03-31T19:39:57.000Z | 2022-01-22T09:29:10.000Z | src/backend/app/db/crud/wedding/wedding_info.py | douglasdaly/dougliz-wedding | da673baf3a7387c3818960c0ffa12ab7c830a89b | [
"MIT"
] | 1 | 2020-04-12T17:11:43.000Z | 2020-04-12T17:11:43.000Z | # -*- coding: utf-8 -*-
"""
Wedding information SQL-based object repository.
"""
from app.crud.wedding.wedding_info import WeddingInfoRepository
from app.db.crud.base import SQLSingletonRepositoryMixin
from app.db.models.wedding.wedding_info import WeddingInfo
class WeddingInfoSQLRepository(
SQLSingletonRepositor... | 26.666667 | 63 | 0.772917 | 48 | 480 | 7.583333 | 0.541667 | 0.057692 | 0.098901 | 0.131868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002415 | 0.1375 | 480 | 17 | 64 | 28.235294 | 0.876812 | 0.272917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c356d1a4d320543bdcf9001fb44640c22872a150 | 609 | py | Python | students/k33402/Sholomov_Dan/lab34/lab3/item/models.py | heidamn/ITMO_ICT_WebDevelopment_2020-2021 | 47eb0cdf7c7dbe8d071bc4fd3f1ac94848475e7b | [
"MIT"
] | null | null | null | students/k33402/Sholomov_Dan/lab34/lab3/item/models.py | heidamn/ITMO_ICT_WebDevelopment_2020-2021 | 47eb0cdf7c7dbe8d071bc4fd3f1ac94848475e7b | [
"MIT"
] | null | null | null | students/k33402/Sholomov_Dan/lab34/lab3/item/models.py | heidamn/ITMO_ICT_WebDevelopment_2020-2021 | 47eb0cdf7c7dbe8d071bc4fd3f1ac94848475e7b | [
"MIT"
] | null | null | null | from django.db import models
class Item(models.Model):
BIKEPART = "Запчасть"
BIKE = "Велосипед"
CLOTHES = "Одежда"
CATEGORY = (
(BIKEPART, "Запчасть"),
(BIKE, "Велосипед"),
(CLOTHES, "Одежда"),
)
name = models.CharField("Название", max_length=40)
type =... | 26.478261 | 86 | 0.600985 | 63 | 609 | 5.650794 | 0.634921 | 0.075843 | 0.11236 | 0.162921 | 0.235955 | 0.235955 | 0 | 0 | 0 | 0 | 0 | 0.015766 | 0.270936 | 609 | 22 | 87 | 27.681818 | 0.786036 | 0 | 0 | 0 | 0 | 0 | 0.148211 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0.055556 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3594e632b7f1007764b00cf1f7f6ec979eca309 | 1,050 | py | Python | www/test_mysql.py | xujiaji/awesome-python3-webapp | d5a8a93a3b31876969ca331b86f29ac2e8202815 | [
"Apache-2.0"
] | 2 | 2018-07-11T07:01:11.000Z | 2018-10-16T02:59:02.000Z | www/test_mysql.py | xujiaji/awesome-python3-webapp | d5a8a93a3b31876969ca331b86f29ac2e8202815 | [
"Apache-2.0"
] | null | null | null | www/test_mysql.py | xujiaji/awesome-python3-webapp | d5a8a93a3b31876969ca331b86f29ac2e8202815 | [
"Apache-2.0"
] | null | null | null | 'testing code'
import orm
from models import User, Blog, Comment, Reply
import asyncio
async def test():
await orm.create_pool(loop=loop, host='127.0.0.1', port=3306, user='root', password='password123456', db='awesome')
# u = User(name='Test2', email='test2@example.com', passwd='1234567890', image='about:b... | 31.818182 | 119 | 0.694286 | 122 | 1,050 | 5.901639 | 0.622951 | 0.027778 | 0.044444 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151308 | 0.162857 | 1,050 | 33 | 120 | 31.818182 | 0.667804 | 0.327619 | 0 | 0 | 0 | 0 | 0.347887 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c35ac4abd41cf45136046b78dbef20de58049b93 | 2,167 | py | Python | dbot-server/app/proxy.py | ATNIO/dbot-server | 57d71bd7850100df2b09bec42b5070e78040995a | [
"MIT"
] | 5 | 2018-09-27T08:19:42.000Z | 2018-09-27T09:50:44.000Z | dbot-server/app/proxy.py | ATNIO/dbot-server | 57d71bd7850100df2b09bec42b5070e78040995a | [
"MIT"
] | null | null | null | dbot-server/app/proxy.py | ATNIO/dbot-server | 57d71bd7850100df2b09bec42b5070e78040995a | [
"MIT"
] | 1 | 2018-10-29T09:50:38.000Z | 2018-10-29T09:50:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
'''
import os
import logging
from flask import Blueprint, request, Response, make_response
import requests
import dbot
from utils import remove_slash_prefix
from .decorates import api_metric, middleware, checksum_address
from .errors import InvalidUsage
logger = log... | 36.116667 | 101 | 0.669589 | 279 | 2,167 | 5.071685 | 0.46595 | 0.031095 | 0.024028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004684 | 0.211814 | 2,167 | 59 | 102 | 36.728814 | 0.82377 | 0.160591 | 0 | 0 | 0 | 0 | 0.133038 | 0.017184 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.027027 | false | 0 | 0.216216 | 0 | 0.27027 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c35f85c685eb0a2e132d0ebd13cde6dc43832c0d | 298 | py | Python | boa3/neo3/contracts/callflags.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | boa3/neo3/contracts/callflags.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | boa3/neo3/contracts/callflags.py | DanPopa46/neo3-boa | e4ef340744b5bd25ade26f847eac50789b97f3e9 | [
"Apache-2.0"
] | null | null | null | from enum import IntFlag
class CallFlags(IntFlag):
READ_STATES = 0b00000001
WRITE_STATES = 0b00000010
ALLOW_CALL = 0b00000100
ALLOW_NOTIFY = 0b00001000
STATES = READ_STATES | WRITE_STATES
READ_ONLY = READ_STATES | ALLOW_CALL
ALL = STATES | ALLOW_CALL | ALLOW_NOTIFY
| 21.285714 | 44 | 0.728188 | 36 | 298 | 5.722222 | 0.5 | 0.145631 | 0.145631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 0.224832 | 298 | 13 | 45 | 22.923077 | 0.735931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c366270520ab6a5535663a19e2615b366f8b2ffa | 765 | py | Python | api/api/v1/models.py | leynier/comohay-api | 9dad72a09b3fc7108976e2cb58988167f8c689cb | [
"MIT"
] | 1 | 2020-12-17T08:58:00.000Z | 2020-12-17T08:58:00.000Z | api/api/v1/models.py | leynier/comohay-api | 9dad72a09b3fc7108976e2cb58988167f8c689cb | [
"MIT"
] | 71 | 2020-12-21T08:14:45.000Z | 2022-03-31T17:12:20.000Z | api/api/v1/models.py | leynier/comohay-api | 9dad72a09b3fc7108976e2cb58988167f8c689cb | [
"MIT"
] | null | null | null | from enum import Enum
from typing import Optional
from pydantic import BaseModel
class Currency(str, Enum):
CUP = "CUP"
CUC = "CUC"
class Province(str, Enum):
PinardelRío = "Pinar del Río"
Artemisa = "Artemisa"
LaHabana = "La Habana"
Mayabeque = "Mayabeque"
Matanzas = "Matanzas"
Vil... | 20.131579 | 39 | 0.648366 | 82 | 765 | 6.04878 | 0.634146 | 0.028226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258824 | 765 | 37 | 40 | 20.675676 | 0.87478 | 0 | 0 | 0 | 0 | 0 | 0.207843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c366ce2c75c55c0d89c27e7317fa00942deacc9b | 313 | py | Python | src/riotwatcher/_apis/valorant/urls/MatchApiUrls.py | jimjimliu/Riot-Watcher | 640f4b90c6288faa61a4ca088d10b068ff199b18 | [
"MIT"
] | 2 | 2020-10-06T23:33:01.000Z | 2020-11-22T01:58:43.000Z | src/riotwatcher/_apis/valorant/urls/MatchApiUrls.py | jimjimliu/Riot-Watcher | 640f4b90c6288faa61a4ca088d10b068ff199b18 | [
"MIT"
] | null | null | null | src/riotwatcher/_apis/valorant/urls/MatchApiUrls.py | jimjimliu/Riot-Watcher | 640f4b90c6288faa61a4ca088d10b068ff199b18 | [
"MIT"
] | null | null | null | from .ValEndpoint import ValEndpoint
class MatchEndpoint(ValEndpoint):
def __init__(self, url: str, **kwargs):
super().__init__(f"/match/v1{url}", **kwargs)
class MatchApiUrls:
by_id = MatchEndpoint("/matches/{match_id}")
matchlist_by_puuid = MatchEndpoint("/matchlists/by-puuid/{puuid}")
| 26.083333 | 70 | 0.70607 | 36 | 313 | 5.805556 | 0.611111 | 0.066986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003731 | 0.14377 | 313 | 11 | 71 | 28.454545 | 0.776119 | 0 | 0 | 0 | 0 | 0 | 0.194888 | 0.089457 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c36aa0685011c4c6eec4c35a0bbe8c5f4fa26394 | 2,500 | py | Python | Deprecated/GGP/scripts/runSoar.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | 1 | 2016-04-01T04:02:28.000Z | 2016-04-01T04:02:28.000Z | Deprecated/GGP/scripts/runSoar.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | null | null | null | Deprecated/GGP/scripts/runSoar.py | sleyzerzon/soar | 74a6f32ba1be3a7b3ed4eac0b44b0f4b2e981f71 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import signal
import os, sys
import Python_sml_ClientInterface
psci = Python_sml_ClientInterface
kernel = None
agent = None
def PrintCallback(id, userData, agent, message):
print message
def run_script(script):
global kernel
global agent
for command in open(script, 'r'):
if command.sta... | 22.321429 | 91 | 0.69 | 347 | 2,500 | 4.881844 | 0.325648 | 0.127509 | 0.066116 | 0.023022 | 0.20307 | 0.151712 | 0.151712 | 0.151712 | 0.140496 | 0.140496 | 0 | 0.015282 | 0.1624 | 2,500 | 111 | 92 | 22.522523 | 0.793696 | 0.0228 | 0 | 0.340909 | 0 | 0.011364 | 0.093404 | 0.008603 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034091 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c36d93c60e631f330d32a239c942dfd6d43a6ff1 | 4,561 | py | Python | integration/tests/conftest.py | kathryn-zhou/Cook | c1ec1f96b93b31be1c0c6019defeb8d8b4c7e561 | [
"Apache-2.0"
] | null | null | null | integration/tests/conftest.py | kathryn-zhou/Cook | c1ec1f96b93b31be1c0c6019defeb8d8b4c7e561 | [
"Apache-2.0"
] | null | null | null | integration/tests/conftest.py | kathryn-zhou/Cook | c1ec1f96b93b31be1c0c6019defeb8d8b4c7e561 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import pytest
logging.info('Checking if test-metric recording needs to be enabled')
if 'TEST_METRICS_URL' in os.environ:
import datetime
import getpass
import json
import socket
from timeit import default_timer as timer
from pygit2 import Repository
from tests.co... | 42.231481 | 113 | 0.579697 | 515 | 4,561 | 4.965049 | 0.361165 | 0.051623 | 0.032851 | 0.052014 | 0.125538 | 0.082127 | 0.035198 | 0.035198 | 0 | 0 | 0 | 0.002877 | 0.314185 | 4,561 | 107 | 114 | 42.626168 | 0.814578 | 0.073668 | 0 | 0.113636 | 0 | 0.011364 | 0.259426 | 0.075646 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034091 | false | 0.056818 | 0.113636 | 0 | 0.147727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c36eabc6ace9fee63b62e6d46c9c9e39b26a78b6 | 50,048 | py | Python | src/python/generator.py | djp952/prebuilt-libxml2 | 8f067d2965c964bf4ba35ad1c0a3f5c313a2fa0f | [
"AML"
] | 2 | 2020-07-24T11:11:36.000Z | 2022-03-17T13:33:59.000Z | src/python/generator.py | djp952/prebuilt-libxml2 | 8f067d2965c964bf4ba35ad1c0a3f5c313a2fa0f | [
"AML"
] | null | null | null | src/python/generator.py | djp952/prebuilt-libxml2 | 8f067d2965c964bf4ba35ad1c0a3f5c313a2fa0f | [
"AML"
] | 3 | 2020-02-20T12:24:55.000Z | 2021-03-19T08:41:48.000Z | #!/usr/bin/python -u
#
# generate python wrappers from the XML API description
#
functions = {}
enums = {} # { enumType: { enumConstant: enumValue } }
import os
import sys
import string
if __name__ == "__main__":
# launched as a script
srcPref = os.path.dirname(sys.argv[0])
else:
# import... | 40.689431 | 121 | 0.486213 | 4,992 | 50,048 | 4.770433 | 0.114383 | 0.043336 | 0.010204 | 0.023516 | 0.471781 | 0.333585 | 0.281347 | 0.253842 | 0.239649 | 0.228311 | 0 | 0.015375 | 0.35412 | 50,048 | 1,229 | 122 | 40.722539 | 0.72133 | 0.046056 | 0 | 0.374408 | 1 | 0 | 0.267171 | 0.034702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022749 | false | 0.000948 | 0.004739 | 0.006635 | 0.077725 | 0.014218 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c36f06dedb42a3be59e2120ccbe893fb28ebaec5 | 288 | py | Python | frame/double_pointer/detectCycle.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null | frame/double_pointer/detectCycle.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null | frame/double_pointer/detectCycle.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null |
def detectCycle(head):
fast,slow = head,head
while fast != None and fast.next != None:
fast = fast.next.next
slow = slow.next
if fast == slow :break
slow = head
while slow != fast:
fast = fast.next
slow = slow.next
return slow | 22.153846 | 45 | 0.555556 | 38 | 288 | 4.210526 | 0.315789 | 0.15 | 0.15 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.347222 | 288 | 13 | 46 | 22.153846 | 0.851064 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c37404a8609e2877ab24f48b40c25a3964cbb674 | 208 | py | Python | Respiro.py | jgerschler/Respiro | fa9bd73c88ab9e83df9c8dad46e27ed692a114bc | [
"MIT"
] | null | null | null | Respiro.py | jgerschler/Respiro | fa9bd73c88ab9e83df9c8dad46e27ed692a114bc | [
"MIT"
] | null | null | null | Respiro.py | jgerschler/Respiro | fa9bd73c88ab9e83df9c8dad46e27ed692a114bc | [
"MIT"
] | 1 | 2021-05-29T14:22:31.000Z | 2021-05-29T14:22:31.000Z | from PyQt5 import uic
from PyQt5.QtWidgets import QApplication
Form, Window = uic.loadUiType("Base.ui")
app = QApplication([])
window = Window()
form = Form()
form.setupUi(window)
window.show()
app.exec_()
| 17.333333 | 40 | 0.735577 | 28 | 208 | 5.428571 | 0.535714 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.125 | 208 | 11 | 41 | 18.909091 | 0.824176 | 0 | 0 | 0 | 0 | 0 | 0.033654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.