hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
b7f8ec16e2bfb80be5a624728d6c0040fc0bbacb
16,352
py
Python
cpp-linux/Release/envcpp.py
thu-media/Comyco
38cc0266b1c0a9f20e48a173d0157452cb411b85
[ "BSD-2-Clause" ]
40
2019-08-09T07:33:41.000Z
2021-11-26T06:58:44.000Z
cpp-linux/Release/envcpp.py
ragnarkor/Comyco
38cc0266b1c0a9f20e48a173d0157452cb411b85
[ "BSD-2-Clause" ]
9
2019-10-09T03:10:46.000Z
2021-12-26T15:31:15.000Z
cpp-linux/Release/envcpp.py
ragnarkor/Comyco
38cc0266b1c0a9f20e48a173d0157452cb411b85
[ "BSD-2-Clause" ]
12
2019-11-06T08:31:19.000Z
2021-11-12T09:56:37.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.0 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
31.446154
145
0.707131
13,136
0.803327
0
0
0
0
0
0
999
0.061093
b7f8f59fb0fb637edfdf3e834168a1ea050cd659
3,912
py
Python
eda_rf.py
lel23/Student-Performance-Prediction
93f850d299f6e6ad88a90e606f494fcd931e56b6
[ "MIT" ]
1
2021-11-27T01:55:44.000Z
2021-11-27T01:55:44.000Z
eda_rf.py
lel23/Student-Performance-Prediction
93f850d299f6e6ad88a90e606f494fcd931e56b6
[ "MIT" ]
null
null
null
eda_rf.py
lel23/Student-Performance-Prediction
93f850d299f6e6ad88a90e606f494fcd931e56b6
[ "MIT" ]
1
2021-12-13T15:46:43.000Z
2021-12-13T15:46:43.000Z
""" Final Project EDA """ import pandas as pd import matplotlib.pyplot as plt from mlxtend.plotting import scatterplotmatrix import numpy as np import seaborn as sns from imblearn.over_sampling import SMOTE from sklearn.utils import resample from mlxtend.plotting import heatmap from sklearn.ensemble import RandomFore...
35.563636
238
0.707311
0
0
0
0
0
0
0
0
1,288
0.329243
b7f97933fc0d2a4db780092adb873088bd108cdc
3,771
py
Python
feastruct/fea/utils.py
geosharma/feastruct
67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1
[ "MIT" ]
37
2018-11-08T12:51:53.000Z
2022-02-01T19:40:48.000Z
feastruct/fea/utils.py
geosharma/feastruct
67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1
[ "MIT" ]
2
2018-11-01T12:39:24.000Z
2022-01-23T01:26:47.000Z
feastruct/fea/utils.py
geosharma/feastruct
67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1
[ "MIT" ]
12
2019-04-09T04:14:02.000Z
2022-01-08T14:04:32.000Z
import numpy as np def gauss_points(el_type, n): """Returns the Gaussian weights and locations for *n* point Gaussian integration of a finite element. Refer to xxx for a list of the element types. :param string el_type: String describing the element type :param int n: Number of Gauss points :retu...
35.914286
99
0.515248
0
0
0
0
0
0
0
0
1,705
0.452135
b7f9ec5f1030d590ec1e3d249bcbd427149dded0
1,447
py
Python
webscrap.py
ircykk/webscrap
b43d2a1075dbe6c6644391c3b79785375b207559
[ "MIT" ]
null
null
null
webscrap.py
ircykk/webscrap
b43d2a1075dbe6c6644391c3b79785375b207559
[ "MIT" ]
2
2021-03-31T19:16:56.000Z
2021-12-13T20:19:00.000Z
webscrap.py
ircykk/webscrap
b43d2a1075dbe6c6644391c3b79785375b207559
[ "MIT" ]
null
null
null
import requests import time import argparse import sys import os from bs4 import BeautifulSoup from urllib.parse import urlparse def is_url(url): try: result = urlparse(url) return all([result.scheme, result.netloc]) except ValueError: return False def fetch_urls(page): r = requests.get(page) soup =...
22.968254
83
0.691776
0
0
0
0
0
0
0
0
262
0.181064
b7fa464b97651a98f542160b4536fc5d2f36512c
3,035
py
Python
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
2
2022-01-19T02:39:43.000Z
2022-02-07T01:58:17.000Z
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
null
null
null
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
null
null
null
from shift_oelint_parser.cls_item import Variable from shift_oelint_adv.cls_rule import Rule from shift_oelint_parser.helper_files import get_scr_components from shift_oelint_parser.parser import INLINE_BLOCK class VarSRCUriOptions(Rule): def __init__(self): super(VarSRCUriOptions, self).__init__(id="oeli...
41.013514
93
0.45832
2,823
0.930148
0
0
0
0
0
0
360
0.118616
b7fab4376dcf24e3dbd079130cdac6cf32133a5b
1,084
py
Python
verba/apps/auth/backends.py
nhsuk/verba
c0354ae2012a046e7f7cc7482e293737de9d28bc
[ "MIT" ]
null
null
null
verba/apps/auth/backends.py
nhsuk/verba
c0354ae2012a046e7f7cc7482e293737de9d28bc
[ "MIT" ]
2
2016-08-11T09:30:41.000Z
2016-08-11T15:04:08.000Z
verba/apps/auth/backends.py
nhsuk/verba
c0354ae2012a046e7f7cc7482e293737de9d28bc
[ "MIT" ]
1
2021-04-11T07:41:27.000Z
2021-04-11T07:41:27.000Z
from github import User as GitHubUser from github.auth import get_token from github.exceptions import AuthValidationError from . import get_user_model class VerbaBackend(object): """ Django authentication backend which authenticates against the GitHub API. """ def authenticate(self, code=None): ...
28.526316
77
0.612546
929
0.857011
0
0
0
0
0
0
254
0.234317
b7fb6f9d3e04e66224e9cdb811584decc5862d2f
798
py
Python
examples/apds9960_color_simpletest.py
tannewt/Adafruit_CircuitPython_APDS9960
becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab
[ "MIT" ]
null
null
null
examples/apds9960_color_simpletest.py
tannewt/Adafruit_CircuitPython_APDS9960
becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab
[ "MIT" ]
null
null
null
examples/apds9960_color_simpletest.py
tannewt/Adafruit_CircuitPython_APDS9960
becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab
[ "MIT" ]
null
null
null
import time import board import busio import digitalio from adafruit_apds9960.apds9960 import APDS9960 from adafruit_apds9960 import colorutility i2c = busio.I2C(board.SCL, board.SDA) int_pin = digitalio.DigitalInOut(board.A2) apds = APDS9960(i2c) apds.enable_color = True while True: #create some variables to st...
24.9375
84
0.699248
0
0
0
0
0
0
0
0
189
0.236842
b7fbdc11c64c416322347545771908c98a2d730b
158
py
Python
abc/abc205/abc205b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc205/abc205b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc205/abc205b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N, *A = map(int, open(0).read().split()) A.sort() for i in range(N): if i == A[i] - 1: continue print('No') break else: print('Yes')
14.363636
40
0.487342
0
0
0
0
0
0
0
0
9
0.056962
b7fc5371e78fe759e9cfc9ac2a197cc1a24c7ba9
1,114
py
Python
CPAC/cwas/tests/features/steps/base_cwas.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
1
2021-08-02T23:23:39.000Z
2021-08-02T23:23:39.000Z
CPAC/cwas/tests/features/steps/base_cwas.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
null
null
null
CPAC/cwas/tests/features/steps/base_cwas.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
2
2021-08-02T23:23:40.000Z
2022-02-26T12:39:30.000Z
from behave import * from hamcrest import assert_that, is_not, greater_than import numpy as np import nibabel as nib import rpy2.robjects as robjects from rpy2.robjects.numpy2ri import numpy2ri from rpy2.robjects.packages import importr robjects.conversion.py2ri = numpy2ri from os import path as op import sys curfile...
25.906977
87
0.684022
0
0
0
0
0
0
0
0
210
0.18851
b7fcfd8dcf5ce827a8535f6ece099e74d61fb49d
15,109
py
Python
Analysis/CardioVascularLab/ExVivo/exvivo.py
sassystacks/TissueMechanicsLab
0f881a57ebf7cbadfeb2041daabd4e4b79b25b91
[ "MIT" ]
null
null
null
Analysis/CardioVascularLab/ExVivo/exvivo.py
sassystacks/TissueMechanicsLab
0f881a57ebf7cbadfeb2041daabd4e4b79b25b91
[ "MIT" ]
null
null
null
Analysis/CardioVascularLab/ExVivo/exvivo.py
sassystacks/TissueMechanicsLab
0f881a57ebf7cbadfeb2041daabd4e4b79b25b91
[ "MIT" ]
null
null
null
import sys sys.path.append('..') from Analyzer.TransitionProperties import ProcessTransitionProperties from tkinter import * from tkinter import messagebox, ttk, filedialog # from tkFileDialog import * import uniaxanalysis.getproperties as getprops from uniaxanalysis.plotdata import DataPlotter from uniaxanalysis.sav...
38.347716
170
0.581243
13,601
0.900192
0
0
0
0
0
0
4,964
0.328546
b7fdfc063cfae7dcf94caa90899dd03c0a4da68d
8,028
py
Python
cats/cats.py
BrandtH22/CAT-admin-tool
f58f76e5b3af5484089652616c17c669c4adebb7
[ "Apache-2.0" ]
1
2022-03-22T21:59:15.000Z
2022-03-22T21:59:15.000Z
cats/cats.py
BrandtH22/CAT-admin-tool
f58f76e5b3af5484089652616c17c669c4adebb7
[ "Apache-2.0" ]
null
null
null
cats/cats.py
BrandtH22/CAT-admin-tool
f58f76e5b3af5484089652616c17c669c4adebb7
[ "Apache-2.0" ]
null
null
null
import click import aiohttp import asyncio import re import json from typing import Optional, Tuple, Iterable, Union, List from blspy import G2Element, AugSchemeMPL from chia.cmds.wallet_funcs import get_wallet from chia.rpc.wallet_rpc_client import WalletRpcClient from chia.util.default_root import DEFAULT_ROOT_PATH...
29.733333
114
0.646736
0
0
0
0
4,385
0.546213
1,114
0.138764
1,749
0.217862
b7ff6526e37679ba17f2e315aceade4303222790
1,997
py
Python
tagging/tag_net.py
zhuzhutingru123/Semantics-AssistedVideoCaptioning
28c7b3fa57964f734f0fb38ecb89c9e8e21e5aaf
[ "MIT" ]
55
2019-09-23T12:21:47.000Z
2022-03-29T19:50:57.000Z
tagging/tag_net.py
zhuzhutingru123/Semantics-AssistedVideoCaptioning
28c7b3fa57964f734f0fb38ecb89c9e8e21e5aaf
[ "MIT" ]
13
2019-10-02T05:10:03.000Z
2021-11-03T11:33:32.000Z
tagging/tag_net.py
WingsBrokenAngel/Semantics-AssistedVideoCaptioning
409ca8b5be336d8957f3345825c8815a3070af19
[ "MIT" ]
15
2019-09-20T07:10:47.000Z
2022-03-11T09:05:18.000Z
# -*- coding: utf-8 -*- # Author: Haoran Chen # Date: 2019-4-28 import tensorflow as tf from tensorflow import placeholder, glorot_normal_initializer, zeros_initializer from tensorflow.nn import dropout import numpy as np n_z = 3584 n_y = 300 MSVD_PATH = None MSRVTT_PATH = None MSVD_GT_PATH = None MSRVTT_GT_PATH = No...
33.847458
101
0.613921
1,585
0.793691
0
0
0
0
0
0
91
0.045568
b7ffe90a656352b24d635be78e2f3b9924c3cd33
1,625
py
Python
example/keraslogistic/cloudmesh_ai/logistic_regression.py
cloudmesh-community/fa19-516-174
1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72
[ "Apache-2.0" ]
null
null
null
example/keraslogistic/cloudmesh_ai/logistic_regression.py
cloudmesh-community/fa19-516-174
1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72
[ "Apache-2.0" ]
null
null
null
example/keraslogistic/cloudmesh_ai/logistic_regression.py
cloudmesh-community/fa19-516-174
1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72
[ "Apache-2.0" ]
null
null
null
import pandas as pd from cloudmesh import mongo from flask import request from flask_pymongo import PyMongo from sklearn.feature_selection import SelectKBest, chi2 from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score from .file import upload def fit(body): # Put input file...
36.931818
87
0.647385
0
0
0
0
0
0
0
0
593
0.364923
4d0003163267427736e0367162b90a4c31a4952a
18,450
py
Python
Scripts/plot_ObservationsPrediction_RawHiatus_OHClevels-lag-EDA_v2.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
2
2022-01-20T20:20:04.000Z
2022-02-21T12:33:37.000Z
Dark_Scripts/plot_ObservationsPrediction_RawHiatus_OHClevels-lag-EDA_v2.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
null
null
null
Dark_Scripts/plot_ObservationsPrediction_RawHiatus_OHClevels-lag-EDA_v2.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
3
2022-01-19T16:25:37.000Z
2022-03-22T13:25:00.000Z
""" Explore raw composites based on indices from predicted testing data and showing all the difference OHC levels for OBSERVATIONS Author : Zachary M. Labe Date : 21 September 2021 Version : 2 (mostly for testing) """ ### Import packages import sys import matplotlib.pyplot as plt import numpy as np impor...
44.244604
284
0.547805
0
0
0
0
0
0
0
0
6,811
0.36916
4d0095e3df86b0354c6a7f3fe8432d1caf5ff121
3,807
py
Python
osnexus_flocker_driver/osnexusdriver.py
OSNEXUS/flocker-driver
22a6ecf57c6841359df82657659f8e945b206f1b
[ "Apache-2.0" ]
2
2016-04-29T22:38:05.000Z
2016-04-29T22:39:06.000Z
osnexus_flocker_driver/osnexusdriver.py
OSNEXUS/flocker-driver
22a6ecf57c6841359df82657659f8e945b206f1b
[ "Apache-2.0" ]
null
null
null
osnexus_flocker_driver/osnexusdriver.py
OSNEXUS/flocker-driver
22a6ecf57c6841359df82657659f8e945b206f1b
[ "Apache-2.0" ]
2
2016-05-08T07:39:12.000Z
2019-07-05T18:35:12.000Z
# Copyright 2016 OSNEXUS Corporation """ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
36.961165
133
0.727607
2,614
0.68663
0
0
2,682
0.704492
0
0
1,345
0.353297
4d009e96e973b11eba741f0ee1dbc7d7ed84b7ed
2,629
py
Python
rescan-script.py
fivepiece/electrum-personal-server
dae6eb3954f3916e13aa88969a5b6ac65a488a13
[ "MIT" ]
null
null
null
rescan-script.py
fivepiece/electrum-personal-server
dae6eb3954f3916e13aa88969a5b6ac65a488a13
[ "MIT" ]
null
null
null
rescan-script.py
fivepiece/electrum-personal-server
dae6eb3954f3916e13aa88969a5b6ac65a488a13
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from configparser import ConfigParser, NoSectionError, NoOptionError from electrumpersonalserver.jsonrpc import JsonRpc, JsonRpcError from datetime import datetime import server def search_for_block_height_of_date(datestr, rpc): target_time = datetime.strptime(datestr, "%d/%m/%Y") bestbloc...
36.013699
79
0.63218
0
0
0
0
0
0
0
0
637
0.242297
4d01262d0ab1840560717880a8567c3e85b8f930
1,082
py
Python
tests/application/register/test_views.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
1
2021-10-06T13:48:36.000Z
2021-10-06T13:48:36.000Z
tests/application/register/test_views.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
116
2018-11-02T17:20:47.000Z
2022-02-09T11:06:22.000Z
tests/application/register/test_views.py
racedisparityaudit/rd_cms
a12f0e3f5461cc41eed0077ed02e11efafc5dd76
[ "MIT" ]
2
2018-11-09T16:47:35.000Z
2020-04-09T13:06:48.000Z
from bs4 import BeautifulSoup from flask import url_for from application.utils import generate_token from application.auth.models import TypeOfUser from tests.models import UserFactory def test_confirm_account_rejects_easy_password(app, test_app_client): rdu_user = UserFactory(user_type=TypeOfUser.RDU_USER, ac...
38.642857
115
0.756932
0
0
0
0
0
0
0
0
368
0.340111
4d014fe4ec193e53774cf70e289d81ecdf7c7e43
1,205
py
Python
setup.py
OriHoch/ckan-cloud-operator
125c3eb10f843ac62fc85659e756bd1d9620eae7
[ "MIT" ]
null
null
null
setup.py
OriHoch/ckan-cloud-operator
125c3eb10f843ac62fc85659e756bd1d9620eae7
[ "MIT" ]
null
null
null
setup.py
OriHoch/ckan-cloud-operator
125c3eb10f843ac62fc85659e756bd1d9620eae7
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os import path from time import time here = path.abspath(path.dirname(__file__)) if path.exists("VERSION.txt"): # this file can be written by CI tools (e.g. Travis) with open("VERSION.txt") as version_file: version = version_file.read().strip().strip("v...
25.638298
66
0.575104
0
0
0
0
0
0
0
0
541
0.448963
4d01db8b99d5d581962d295f65f32a07a2a32b59
652
py
Python
extension/magic/activate.py
ianpreston/oh-my-py
17e37974c203cb28aa2de340c6ac66143c16bd4e
[ "Unlicense", "MIT" ]
3
2016-04-10T20:08:57.000Z
2021-12-05T19:03:37.000Z
extension/magic/activate.py
ianpreston/oh-my-py
17e37974c203cb28aa2de340c6ac66143c16bd4e
[ "Unlicense", "MIT" ]
null
null
null
extension/magic/activate.py
ianpreston/oh-my-py
17e37974c203cb28aa2de340c6ac66143c16bd4e
[ "Unlicense", "MIT" ]
null
null
null
import os import os.path def activate(ipython, venv): """ Shortcut to run execfile() on `venv`/bin/activate_this.py """ venv = os.path.abspath(venv) venv_activate = os.path.join(venv, 'bin', 'activate_this.py') if not os.path.exists(venv_activate): print('Not a virtualenv: {}'.format(...
25.076923
70
0.662577
0
0
0
0
0
0
0
0
245
0.375767
4d034751cf7a5ae250a1f9a85e64ff78986aa837
4,201
py
Python
storage/__init__.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
storage/__init__.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
storage/__init__.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
import base64 import os import threading from pathlib import Path #from sqlitedict import SqliteDict from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session from daqbrokerServer.web.utils import hash_password from daqbrokerServer.storage.server_schema import ServerBase, User, Conn...
40.009524
143
0.653416
1,802
0.428945
0
0
0
0
0
0
2,490
0.592716
4d03f7e180eeb633a961138f2a85fdbfb2a84df1
1,786
py
Python
tempest/api/queuing/test_queues.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
tempest/api/queuing/test_queues.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
tempest/api/queuing/test_queues.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Rackspace, 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 wr...
29.278689
69
0.702688
1,037
0.580627
0
0
906
0.507279
0
0
682
0.381859
4d04229e05bd8f6f6995b6ba536b1ed9096df15a
478
py
Python
checkin/tests.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
10
2017-11-25T01:47:20.000Z
2020-03-24T18:28:24.000Z
checkin/tests.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
319
2017-11-16T09:56:03.000Z
2022-03-28T00:24:37.000Z
checkin/tests.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
6
2017-11-12T14:04:08.000Z
2021-03-10T09:41:18.000Z
from django.test import TestCase from django_hosts import reverse from util.test_utils import Get, assert_requesting_paths_succeeds class UrlTests(TestCase): def test_all_get_request_paths_succeed(self): path_predicates = [ Get(reverse('skills_present_list'), public=True), Get(re...
29.875
65
0.709205
342
0.715481
0
0
0
0
0
0
39
0.08159
4d04bfd380e253ed326e19219946bfffe57dc0dc
10,757
py
Python
tests/gdata_tests/live_client_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
tests/gdata_tests/live_client_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
tests/gdata_tests/live_client_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env 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 ...
35.50165
78
0.685972
8,716
0.810263
0
0
0
0
0
0
3,213
0.298689
4d054d1c9024db142794eb18e583cbea3e61dd43
125
py
Python
apps/work_order/admin.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
null
null
null
apps/work_order/admin.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
null
null
null
apps/work_order/admin.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
1
2020-10-28T09:12:47.000Z
2020-10-28T09:12:47.000Z
from django.contrib import admin # Register your models here. from .models import WorkOrder admin.site.register(WorkOrder)
17.857143
32
0.808
0
0
0
0
0
0
0
0
28
0.224
4d06738fefc51f3cbb68390fbd2da42ba7057869
262
py
Python
src/season/framework/status.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
6
2021-12-09T05:06:49.000Z
2022-01-18T02:38:03.000Z
src/season/framework/status.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
2
2022-02-18T02:00:36.000Z
2022-03-22T05:18:30.000Z
src/season/framework/status.py
season-framework/season-flask-wiz
95d75758a6036d387c1b803bd6a68f238ec430e0
[ "MIT" ]
2
2022-01-07T00:26:00.000Z
2022-03-07T06:24:27.000Z
class status(Exception): def __init__(self, code=200, response=None): super().__init__("season.core.CLASS.RESPONSE.STATUS") self.code = code self.response = response def get_response(self): return self.response, self.code
32.75
61
0.660305
262
1
0
0
0
0
0
0
35
0.133588
4d0941aea75adaa006d884337e5c4d550547f131
6,030
py
Python
updates.py
knowledgetechnologyuhh/hipss
518bf3e6a4d02e234cbe29506b9afda0a6ccb187
[ "MIT" ]
null
null
null
updates.py
knowledgetechnologyuhh/hipss
518bf3e6a4d02e234cbe29506b9afda0a6ccb187
[ "MIT" ]
null
null
null
updates.py
knowledgetechnologyuhh/hipss
518bf3e6a4d02e234cbe29506b9afda0a6ccb187
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn.functional as F from torch.nn.utils.clip_grad import clip_grad_norm_ from mpi_utils.mpi_utils import sync_grads def update_entropy(alpha, log_alpha, target_entropy, log_pi, alpha_optim, cfg): if cfg.automatic_entropy_tuning: alpha_loss = -(log_alpha * (log_p...
42.167832
119
0.703814
0
0
0
0
0
0
0
0
208
0.034494
4d098b2bde7f0fef38c7be3632c1ac962fd07aad
125,107
py
Python
spaghetti/network.py
gegen07/spaghetti
f10f9d016deeb8d4cdd63377304fc8e3b8492a0f
[ "BSD-3-Clause" ]
182
2018-07-23T20:17:32.000Z
2022-03-28T07:08:43.000Z
spaghetti/network.py
gegen07/spaghetti
f10f9d016deeb8d4cdd63377304fc8e3b8492a0f
[ "BSD-3-Clause" ]
563
2017-04-14T23:39:21.000Z
2022-02-12T20:34:21.000Z
spaghetti/network.py
gegen07/spaghetti
f10f9d016deeb8d4cdd63377304fc8e3b8492a0f
[ "BSD-3-Clause" ]
51
2017-04-14T23:40:31.000Z
2022-03-31T01:41:56.000Z
from collections import defaultdict, OrderedDict from itertools import islice import copy, os, pickle, warnings import esda import numpy from .analysis import GlobalAutoK from . import util from libpysal import cg, examples, weights from libpysal.common import requires try: from libpysal import open except Impor...
35.714245
146
0.588632
104,406
0.83452
0
0
5,325
0.042563
0
0
77,119
0.616414
4d09a5a4cc57e4e453dca3ac3e67a8ff83298706
340
py
Python
tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
1
2022-01-11T02:51:17.000Z
2022-01-11T02:51:17.000Z
tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
null
null
null
tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
2
2019-05-11T08:13:38.000Z
2019-05-14T13:33:54.000Z
from mlflow.tracking.default_experiment.abstract_context import DefaultExperimentProvider class PluginDefaultExperimentProvider(DefaultExperimentProvider): """DefaultExperimentProvider provided through plugin system""" def in_context(self): return False def get_experiment_id(self): retur...
28.333333
89
0.791176
247
0.726471
0
0
0
0
0
0
79
0.232353
4d09ec45c4e1965510df15bcf08b297cda5ab9d9
1,097
py
Python
ac_loss_plot.py
atul799/CarND-Semantic-Segmentation
dbec928d3ba9cc68f3de9bbb7707df85131c1d5c
[ "MIT" ]
null
null
null
ac_loss_plot.py
atul799/CarND-Semantic-Segmentation
dbec928d3ba9cc68f3de9bbb7707df85131c1d5c
[ "MIT" ]
null
null
null
ac_loss_plot.py
atul799/CarND-Semantic-Segmentation
dbec928d3ba9cc68f3de9bbb7707df85131c1d5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ plot acc loss @author: atpandey """ #%% import matplotlib.pyplot as plt #%% ff='./to_laptop/trg_file.txt' with open(ff,'r') as trgf: listidx=[] listloss=[] listacc=[] ctr=0 for line in trgf: if(ctr>0): ll=line.split(',') listidx.append...
18.913793
82
0.606199
0
0
0
0
0
0
0
0
396
0.360985
4d0a6ad7788dddfb228aeaaea80d6d51b9e09fa7
8,611
py
Python
VA_multiples/src/main.py
brown9804/Modelos_Probabilisticos-
8ddc6afbe4da5975af9eb5dc946ff19daa1171bc
[ "Apache-2.0" ]
null
null
null
VA_multiples/src/main.py
brown9804/Modelos_Probabilisticos-
8ddc6afbe4da5975af9eb5dc946ff19daa1171bc
[ "Apache-2.0" ]
null
null
null
VA_multiples/src/main.py
brown9804/Modelos_Probabilisticos-
8ddc6afbe4da5975af9eb5dc946ff19daa1171bc
[ "Apache-2.0" ]
null
null
null
##--------------------------------Main file------------------------------------ ## ## Copyright (C) 2020 by Belinda Brown Ramírez ([email protected]) ## June, 2020 ## [email protected] ##----------------------------------------------------------------------------- # Variables aleatorias mú...
46.048128
164
0.652537
0
0
0
0
0
0
0
0
4,828
0.560093
4d0a9eaef2e9a5554500cb97127b08aa78c0807c
7,527
py
Python
official/mnist/mnist.py
TuKJet/models
984fbc754943c849c55a57923f4223099a1ff88c
[ "Apache-2.0" ]
3,326
2018-01-26T22:42:25.000Z
2022-02-16T13:16:39.000Z
official/mnist/mnist.py
lianlengyunyu/models
984fbc754943c849c55a57923f4223099a1ff88c
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
official/mnist/mnist.py
lianlengyunyu/models
984fbc754943c849c55a57923f4223099a1ff88c
[ "Apache-2.0" ]
1,474
2018-02-01T04:33:18.000Z
2022-03-08T07:02:20.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
36.1875
82
0.689385
1,740
0.231168
0
0
0
0
0
0
2,778
0.369071
4d0b5e5a16eda393441922d1c3ec56983303e265
523
py
Python
pep_92.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
pep_92.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
pep_92.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def calculate(): ans = sum(1 for i in range(1, 10000000) if get_terminal(i) == 89) return str(ans) TERMINALS = (1, 89) def get_terminal(n): while n not in TERMINALS: n = square_digit_sum(n) return n def square_digit_sum(n): result = 0 ...
18.678571
62
0.565966
0
0
0
0
0
0
0
0
32
0.061185
4d0e5f2a06efaa32ab6853b48bd163c479f22bbd
467
py
Python
Visualization/ConstrainedOpt.py
zhijieW94/SAGNet
017b58853cb51d50851a5a3728b3205d235ff889
[ "MIT" ]
25
2019-09-15T09:10:17.000Z
2021-04-08T07:44:16.000Z
Visualization/ConstrainedOpt.py
zhijieW-94/SAGNet
017b58853cb51d50851a5a3728b3205d235ff889
[ "MIT" ]
9
2019-11-16T07:06:08.000Z
2021-03-07T09:14:32.000Z
Visualization/ConstrainedOpt.py
zhijieW94/SAGNet
017b58853cb51d50851a5a3728b3205d235ff889
[ "MIT" ]
7
2019-09-25T18:07:54.000Z
2021-12-21T08:41:47.000Z
from PyQt5.QtCore import * class ConstrainedOpt(QThread): signal_update_voxels = pyqtSignal(str) def __init__(self, model,index): QThread.__init__(self) self.model = model['model'] # self.model = model self.name = model['name'] self.index = index def run(self): # ...
24.578947
55
0.631692
439
0.940043
0
0
0
0
0
0
68
0.14561
4d0e95505acc0778edf0c0cfa6593332a693d19f
7,813
py
Python
Common/EDACommon.py
MlGroupsWJ/Customer-Satisfication
bae0d3691613f078c88f926fee8d1d0684cb6f88
[ "Apache-2.0" ]
null
null
null
Common/EDACommon.py
MlGroupsWJ/Customer-Satisfication
bae0d3691613f078c88f926fee8d1d0684cb6f88
[ "Apache-2.0" ]
null
null
null
Common/EDACommon.py
MlGroupsWJ/Customer-Satisfication
bae0d3691613f078c88f926fee8d1d0684cb6f88
[ "Apache-2.0" ]
null
null
null
# -*- coding:UTF-8 -*- import pandas as pd from minepy import MINE import seaborn as sns import matplotlib.pyplot as plt from sklearn.ensemble import ExtraTreesClassifier import xgboost as xgb import operator from sklearn.utils import shuffle from Common.ModelCommon import ModelCV from sklearn import svm import numpy a...
32.419087
114
0.64879
1,501
0.184285
0
0
0
0
0
0
1,341
0.164641
4d149a21b75c6283b2a1da8727432ed396c798a7
1,537
py
Python
redbull/doc_html.py
theSage21/redbull
2f3cf0c8a8a910c18151ca493984d0a364581710
[ "MIT" ]
10
2018-09-11T09:11:13.000Z
2019-09-10T09:47:35.000Z
redbull/doc_html.py
theSage21/redbull
2f3cf0c8a8a910c18151ca493984d0a364581710
[ "MIT" ]
null
null
null
redbull/doc_html.py
theSage21/redbull
2f3cf0c8a8a910c18151ca493984d0a364581710
[ "MIT" ]
null
null
null
def gen_doc_html(version, api_list): doc_html = f''' <!DOCTYPE html> <html> <head><meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> body{{margin:40px auto; max-width:650px; line-height:1.6; font...
33.413043
78
0.471698
0
0
0
0
0
0
0
0
1,447
0.941444
4d1789b7a180d686bba726991622611824a7655a
11,166
py
Python
spekev2_verification_testsuite/test_drm_system_specific_system_id_elements.py
amphied/speke-reference-server
7b589a333fb3c619c6f7e53483d43de9a588f7b7
[ "Apache-2.0" ]
null
null
null
spekev2_verification_testsuite/test_drm_system_specific_system_id_elements.py
amphied/speke-reference-server
7b589a333fb3c619c6f7e53483d43de9a588f7b7
[ "Apache-2.0" ]
null
null
null
spekev2_verification_testsuite/test_drm_system_specific_system_id_elements.py
amphied/speke-reference-server
7b589a333fb3c619c6f7e53483d43de9a588f7b7
[ "Apache-2.0" ]
null
null
null
import xml.etree.ElementTree as ET import pytest from .helpers import utils @pytest.fixture(scope="session") def playready_pssh_cpd_response(spekev2_url): test_request_data = utils.read_xml_file_contents("test_case_1_p_v_1_a_1", utils.PRESETS_PLAYREADY) response = utils.speke_v2_request(spekev2_url, test_requ...
57.854922
117
0.732581
0
0
0
0
833
0.074601
0
0
4,442
0.397815
4d1842ad937506e0139c4548364f4972688cf066
606
py
Python
lgtv_rs232/commands/power.py
davo22/lgtv_rs232
40562cddf7acdf6fa95124029595e3838dd9e7b0
[ "MIT" ]
null
null
null
lgtv_rs232/commands/power.py
davo22/lgtv_rs232
40562cddf7acdf6fa95124029595e3838dd9e7b0
[ "MIT" ]
null
null
null
lgtv_rs232/commands/power.py
davo22/lgtv_rs232
40562cddf7acdf6fa95124029595e3838dd9e7b0
[ "MIT" ]
null
null
null
from enum import Enum class Power(Enum): OFF = 0 ON = 1 def map_to_state(data: int): return Power(data) class PowerCommands(object): _command = "ka" def __init__(self, send_command): self._send_command = send_command async def get_state(self): return map_to_state(await se...
20.2
81
0.671617
524
0.864686
0
0
0
0
222
0.366337
4
0.006601
4d188e480cc959a97285226a6ee540747e54cbfc
3,661
py
Python
aioruuvitag/scanner_windows.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
7
2019-11-08T07:30:05.000Z
2022-02-20T21:58:44.000Z
aioruuvitag/scanner_windows.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
null
null
null
aioruuvitag/scanner_windows.py
hulttis/ruuvigw
914eb657e3f2792cecf6848dfa7607ad45f17ab4
[ "MIT" ]
1
2021-06-19T16:52:55.000Z
2021-06-19T16:52:55.000Z
# -*- coding: utf-8 -*- """ Perform Bluetooth LE Scan. Based on https://github.com/hbldh/bleak/blob/master/bleak/backends/dotnet/discovery.py by Created by hbldh <[email protected]> """ import logging logger = logging.getLogger('bleak_scanner') import asyncio import queue from bleak.backends.device import ...
34.537736
99
0.571429
0
0
0
0
0
0
2,898
0.791587
1,141
0.311663
4d1921977ff8cb85df1411e9a16a739fa19af1b7
2,354
py
Python
GUI/app.py
YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles
dbdfb1157c6448720bcf18135789c91c0940bdb4
[ "MIT" ]
1
2020-09-09T13:59:34.000Z
2020-09-09T13:59:34.000Z
GUI/app.py
YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles
dbdfb1157c6448720bcf18135789c91c0940bdb4
[ "MIT" ]
1
2020-09-10T05:28:02.000Z
2020-09-10T05:28:02.000Z
GUI/app.py
YJWang94108/Real-Time-Textural-Analysis-System-with-Autonomous-Underwater-Vehicles
dbdfb1157c6448720bcf18135789c91c0940bdb4
[ "MIT" ]
1
2020-09-09T13:59:37.000Z
2020-09-09T13:59:37.000Z
import tkinter as tk from PIL import Image, ImageTk import numpy as np import os import time class MyAPP(): def __init__(self): self.window = tk.Tk() self.window.title('Classification Results') self.window.geometry('1000x800') self.window.attributes('-topmost',1) #self.windo...
35.134328
98
0.621071
2,246
0.954121
0
0
0
0
0
0
279
0.118522
4d193b99e7c955296baf206f87610d82e0c31d15
1,568
py
Python
lib/surface/api_gateway/__init__.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/api_gateway/__init__.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/api_gateway/__init__.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
34.844444
78
0.769133
451
0.287628
0
0
562
0.358418
0
0
845
0.538903
4d19e5d928407169ece619db02a32249f6803443
1,350
py
Python
028_dict.py
MikePolyakov/python_book
497681e8a167918a19ae737960c9c86ebffa9e91
[ "MIT" ]
null
null
null
028_dict.py
MikePolyakov/python_book
497681e8a167918a19ae737960c9c86ebffa9e91
[ "MIT" ]
null
null
null
028_dict.py
MikePolyakov/python_book
497681e8a167918a19ae737960c9c86ebffa9e91
[ "MIT" ]
null
null
null
countries = {'Russia' : 'Europe', 'Germany' : 'Europe', 'Australia' : 'Australia'} sqrs = {} sqrs[1] = 1 sqrs[2] = 4 sqrs[10] = 100 print(sqrs) myDict = dict([['key1', 'value1'], ('key2', 'value2')]) print(myDict) phones = {'police' : 102, 'ambulance' : 103, 'firefighters' : 101} print(phones['police']) phones = {'...
28.723404
82
0.625185
0
0
0
0
0
0
0
0
252
0.186667
4d1a042ce335839faa6fa2c218bbf1f71877225d
1,203
py
Python
solutions/10. Regular Expression Matching.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
solutions/10. Regular Expression Matching.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
solutions/10. Regular Expression Matching.py
JacopoPan/leetcode-top100-liked-questions
03dc05f087d05805d54b7585ce740338f3128833
[ "MIT" ]
null
null
null
""" Runtime: 47 ms, faster than 89.57% of Python3 online submissions for Regular Expression Matching. Memory Usage: 15.2 MB, less than 6.45% of Python3 online submissions for Regular Expression Matching. """ from typing import List from typing import Optional class Solution: cache = {} def isMatch(self, s: s...
29.341463
101
0.502078
793
0.659185
0
0
0
0
0
0
256
0.212801
4d1aec75f55686cedd085e55848b278b516e591c
166
py
Python
Mundo2/Desafio019.py
Marcoakira/Desafios_Python_do_Curso_Guanabara
c49b774148a2232f8f3c21b83e3dc97610480757
[ "MIT" ]
null
null
null
Mundo2/Desafio019.py
Marcoakira/Desafios_Python_do_Curso_Guanabara
c49b774148a2232f8f3c21b83e3dc97610480757
[ "MIT" ]
null
null
null
Mundo2/Desafio019.py
Marcoakira/Desafios_Python_do_Curso_Guanabara
c49b774148a2232f8f3c21b83e3dc97610480757
[ "MIT" ]
null
null
null
#Desafio019 ( aplicação randomica para determinar que aluno vai no quadro. import random al01 = str('joao'),('maria'),('pédro'),('paula') print(random.choice(al01))
27.666667
74
0.722892
0
0
0
0
0
0
0
0
104
0.615385
4d1b446c03d9bd0f9bcfdda12df328d24d3b6854
3,807
py
Python
jdll-tutorial/ansible/library/book.py
Spredzy/jdll-ansible
767ab383c9efb676c3d9923159172f42d221fd2f
[ "Apache-2.0" ]
null
null
null
jdll-tutorial/ansible/library/book.py
Spredzy/jdll-ansible
767ab383c9efb676c3d9923159172f42d221fd2f
[ "Apache-2.0" ]
null
null
null
jdll-tutorial/ansible/library/book.py
Spredzy/jdll-ansible
767ab383c9efb676c3d9923159172f42d221fd2f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from ansible.module_utils.basic import * from jdll import API ANSIBLE_METADATA = {'status': ['preview'], 'supported_by': 'community', 'version': '1.0'} DOCUMENTATION = ''' --- module: book author: "Yanis Guenane (@Spredzy)" version_added: "2.3" short_descript...
25.38
127
0.561334
0
0
0
0
0
0
0
0
2,182
0.573155
4d1d08adbb5e362ba1318dc99aee5c3a36e6c489
2,679
py
Python
main.py
CyberPunk-Josh/Lab-app
aa3a5cf77a176bde3156d0f69a1f4018a503ca6f
[ "MIT" ]
null
null
null
main.py
CyberPunk-Josh/Lab-app
aa3a5cf77a176bde3156d0f69a1f4018a503ca6f
[ "MIT" ]
null
null
null
main.py
CyberPunk-Josh/Lab-app
aa3a5cf77a176bde3156d0f69a1f4018a503ca6f
[ "MIT" ]
null
null
null
from menu_design import * from PySide6.QtWidgets import QApplication, QMainWindow from PySide6.QtCore import Qt, QEasingCurve # Local files from reologicalOne.reological import RModel from reologicalTwo.reologicalDB import RModelDB from density.density import Density import sys # class for menu class MiApp(QMainWi...
30.793103
95
0.655842
2,247
0.838746
0
0
0
0
0
0
250
0.093318
4d1e11fe07c9e17482225346b3bf314a5354caa6
360
py
Python
create_table_from_word/table_columns.py
yongli82/CodeGenerator
4ca9255c3c4c5392e45815fd20f605ccbbfd2325
[ "MIT" ]
null
null
null
create_table_from_word/table_columns.py
yongli82/CodeGenerator
4ca9255c3c4c5392e45815fd20f605ccbbfd2325
[ "MIT" ]
null
null
null
create_table_from_word/table_columns.py
yongli82/CodeGenerator
4ca9255c3c4c5392e45815fd20f605ccbbfd2325
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import sys reload(sys) sys.setdefaultencoding('utf-8') import ExcelUtil from jinja2 import Template import re def get_table_list(): column_headers = ExcelUtil.generate_columns('A', 'F') data_grid = ExcelUtil.read_excel_with_head(u"财务账务表.xlsx", u"表", col...
18.947368
83
0.730556
0
0
0
0
0
0
0
0
85
0.228495
4d1e4f9713b73667b272d5c41483d8a89a98e904
1,024
py
Python
web/detector/dog_detector.py
PaulNWms/dog-project
4d70bcd39aa3ea0a8744efc42c53f031fbf63b64
[ "MIT" ]
null
null
null
web/detector/dog_detector.py
PaulNWms/dog-project
4d70bcd39aa3ea0a8744efc42c53f031fbf63b64
[ "MIT" ]
13
2020-01-28T22:15:35.000Z
2022-03-11T23:57:35.000Z
web_app/detector/dog_detector.py
Brijesh-Chandra/Dog-Breed-Identifier
b3c918ad148b072d49b358629cba146079bf3dc3
[ "MIT" ]
null
null
null
from keras.preprocessing import image import keras.applications.resnet50 as resnet50 import numpy as np app = None def initialize_dog_detector(the_app): global app app = the_app app.config['RESNET_50_MODEL'] = resnet50.ResNet50(weights='imagenet') def path_to_tensor(img_path): # loads RGB image as ...
29.257143
85
0.723633
0
0
0
0
0
0
0
0
291
0.28418
4d1e62b7359e72d9ef996cfa45b2930243bf6b7d
1,124
py
Python
camp_real_engine/plugins/regexp.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
camp_real_engine/plugins/regexp.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
camp_real_engine/plugins/regexp.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
import re from camp_real_engine.abstract.abc_subst_realizer import ABC_subst_realizer from camp_real_engine.model.realization import RegExpFileSubstNode from camp_real_engine.dao.daos import FileContentCommiter from camp_real_engine.abstract.abc_real_data_model import ABCSubstitutionNode class RegExp(ABC_subst_real...
34.060606
97
0.825623
831
0.739324
0
0
0
0
0
0
8
0.007117
4d20e11d53db6d88edbeea07f1facb38a4748d8a
2,131
py
Python
mouse_burrows/scripts/show_info.py
david-zwicker/cv-mouse-burrows
906476f49ff9711cd672feca5f70efedaab82b01
[ "BSD-3-Clause" ]
1
2016-03-06T05:16:38.000Z
2016-03-06T05:16:38.000Z
mouse_burrows/scripts/show_info.py
david-zwicker/cv-mouse-burrows
906476f49ff9711cd672feca5f70efedaab82b01
[ "BSD-3-Clause" ]
null
null
null
mouse_burrows/scripts/show_info.py
david-zwicker/cv-mouse-burrows
906476f49ff9711cd672feca5f70efedaab82b01
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 ''' Created on Sep 21, 2016 @author: David Zwicker <[email protected]> ''' from __future__ import division import argparse import sys import os # add the root of the video-analysis project to the path script_path = os.path.split(os.path.realpath(__file__))[0] package_path = os.path.ab...
27.675325
78
0.6687
0
0
0
0
0
0
0
0
927
0.435007
4d220c47f8915f484fcada1de144cddca671bb25
25,729
py
Python
google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/networkmanagement/v1beta1/networkmanagement-v1beta1-py/google/cloud/networkmanagement_v1beta1/services/reachability_service/async_client.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
41.700162
171
0.653309
23,553
0.915426
0
0
1,594
0.061953
17,304
0.672548
14,310
0.556182
4d237d356a17f205a24800037a5d0a053ed6c426
563
py
Python
todo/urls.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
todo/urls.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
todo/urls.py
fidele000/Ftodo-RestAPI-Django
8c695503e04a3957920910acb9f1bb823ece4287
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework import viewsets from rest_framework import routers from . import views from django.urls import include from rest_framework.routers import DefaultRouter router=DefaultRouter() router.register('hello-viewset',views.HelloViewSet,basename='hello-viewset') router.register('p...
33.117647
76
0.801066
0
0
0
0
0
0
0
0
73
0.129663
4d23e4d034125a3f8c2a16ba07229fdc1c90a016
257
py
Python
toontown/estate/DistributedPlantBaseAI.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/estate/DistributedPlantBaseAI.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/estate/DistributedPlantBaseAI.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectAI import DistributedObjectAI class DistributedPlantBaseAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedPlantBaseAI')
42.833333
82
0.879377
133
0.51751
0
0
0
0
0
0
24
0.093385
4d240f3eb85f0adcecd00489cbe4d3ad31ec57c5
27
py
Python
test.py
justin-th/linux-pasword-protect
feba8712d5bc25c417cb7297aac9c0d23566378e
[ "MIT" ]
null
null
null
test.py
justin-th/linux-pasword-protect
feba8712d5bc25c417cb7297aac9c0d23566378e
[ "MIT" ]
null
null
null
test.py
justin-th/linux-pasword-protect
feba8712d5bc25c417cb7297aac9c0d23566378e
[ "MIT" ]
null
null
null
import os print(os.curdir)
9
16
0.777778
0
0
0
0
0
0
0
0
0
0
4d242ba823cf6de6e20e2768b1f065a06d916125
302
py
Python
setup.py
samuel-spak/thermostate
906d1e0b79289cd51cde510c797f007674b8bdcd
[ "BSD-3-Clause" ]
6
2020-03-31T14:25:23.000Z
2022-03-10T14:56:29.000Z
setup.py
samuel-spak/thermostate
906d1e0b79289cd51cde510c797f007674b8bdcd
[ "BSD-3-Clause" ]
35
2017-01-26T15:31:19.000Z
2022-03-14T16:32:00.000Z
setup.py
samuel-spak/thermostate
906d1e0b79289cd51cde510c797f007674b8bdcd
[ "BSD-3-Clause" ]
15
2017-02-08T20:07:38.000Z
2022-03-14T09:15:35.000Z
from setuptools import setup from pathlib import Path from typing import Dict HERE = Path(__file__).parent version: Dict[str, str] = {} version_file = HERE / "src" / "thermostate" / "_version.py" exec(version_file.read_text(), version) setup(version=version["__version__"], package_dir={"": "src"})
25.166667
62
0.731788
0
0
0
0
0
0
0
0
51
0.168874
4d242e01b427dcb6b1bf2d2cc3562c29ca378947
78,627
py
Python
fps2c__ - Copy.py
GeorgeLoo/FPS
775bf173437d2feb09bc91b7f842226a8c752980
[ "MIT" ]
1
2022-02-21T12:07:42.000Z
2022-02-21T12:07:42.000Z
fps2c__ - Copy.py
GeorgeLoo/FPS
775bf173437d2feb09bc91b7f842226a8c752980
[ "MIT" ]
null
null
null
fps2c__ - Copy.py
GeorgeLoo/FPS
775bf173437d2feb09bc91b7f842226a8c752980
[ "MIT" ]
null
null
null
''' _ _._ _..._ .-', _.._(`)) '-. ` ' /-._.-' ',/ ) \ '. / _ _ | \ | a a / | \ .-. ; '-('' ).-' ,' ; '-; | .' \ \ / | 7 .__ _...
31.114761
118
0.525176
68,236
0.867844
0
0
0
0
0
0
16,861
0.214443
4d246a042f4d01726d7da3a16c2ca45068a1a3cb
2,462
py
Python
exercises/networking_v2/roles/ansible-network.network-engine/lib/network_engine/plugins/template/__init__.py
rcalvaga/linklight
bb6364272c167c017cb2ee0790015143df29fa19
[ "MIT" ]
1
2020-03-29T17:35:59.000Z
2020-03-29T17:35:59.000Z
exercises/networking_v2/roles/ansible-network.network-engine/lib/network_engine/plugins/template/__init__.py
rcalvaga/linklight
bb6364272c167c017cb2ee0790015143df29fa19
[ "MIT" ]
null
null
null
exercises/networking_v2/roles/ansible-network.network-engine/lib/network_engine/plugins/template/__init__.py
rcalvaga/linklight
bb6364272c167c017cb2ee0790015143df29fa19
[ "MIT" ]
1
2020-03-30T11:00:47.000Z
2020-03-30T11:00:47.000Z
# (c) 2018, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. # from __future__ import (absolute_import, division, p...
34.676056
92
0.620634
1,969
0.799756
0
0
0
0
0
0
262
0.106418
4d24ec942e343c870cf4c7c64a35ce9e7ec32816
748
py
Python
test/try_closures.py
RemuLang/sijuiacion-lang
e3b5be79fb7afadc0790311e612ddd430b3f0b9d
[ "MIT" ]
21
2019-10-13T14:11:32.000Z
2021-12-14T02:42:12.000Z
test/try_closures.py
RemuLang/sijuiacion-lang
e3b5be79fb7afadc0790311e612ddd430b3f0b9d
[ "MIT" ]
1
2020-01-07T13:14:46.000Z
2020-01-09T16:58:07.000Z
test/try_closures.py
RemuLang/sijuiacion-lang
e3b5be79fb7afadc0790311e612ddd430b3f0b9d
[ "MIT" ]
1
2020-08-13T16:17:09.000Z
2020-08-13T16:17:09.000Z
from Redy.Opt import feature, constexpr import timeit class Closure(tuple): def __call__(self, a): c, f = self return f(c, a) def f1(x): def g(y): return x + y return g def fc(c, y): return c + y @feature(constexpr) def f2(x): return constexpr[Closure]((x, constexpr[...
15.914894
52
0.639037
91
0.121658
0
0
80
0.106952
0
0
178
0.237968
4d2521ea6310ee9cc5f131827f5a83488f594d5f
66
py
Python
python/testData/refactoring/move/docstringTypes/before/src/b.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/refactoring/move/docstringTypes/before/src/b.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/refactoring/move/docstringTypes/before/src/b.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def f(x): '''Does nothing. :type x: a.C ''' pass
9.428571
20
0.409091
0
0
0
0
0
0
0
0
42
0.636364
4d2554382ea5d2316a7d1a204e1adf6165ec8877
195
py
Python
datapack/validate.py
emorgan00/EasyDatapacks
535bf30a23e4e8fa22ff827bc6c223f91a0228ed
[ "MIT" ]
35
2019-06-23T22:35:56.000Z
2022-02-23T18:09:25.000Z
datapack/validate.py
emorgan00/EasyDatapacks
535bf30a23e4e8fa22ff827bc6c223f91a0228ed
[ "MIT" ]
5
2019-07-08T04:54:21.000Z
2022-03-24T12:44:19.000Z
datapack/validate.py
emorgan00/EasyDatapacks
535bf30a23e4e8fa22ff827bc6c223f91a0228ed
[ "MIT" ]
5
2019-06-24T04:09:15.000Z
2022-02-22T03:50:41.000Z
# this should accept a command as a string, and raturn a string detailing the issue # if <command> is not a valid vanilla minecraft command. None otherwise. def check(command): return None
27.857143
83
0.753846
0
0
0
0
0
0
0
0
155
0.794872
4d26e4038ffff6b5c711d810347580c7c6e22de3
44
py
Python
Python/Tutorial - 2/strings.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
Python/Tutorial - 2/strings.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
Python/Tutorial - 2/strings.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
print("One") print("Two") print("Three")
6.285714
14
0.590909
0
0
0
0
0
0
0
0
17
0.386364
4d272df6572584be280304452391a2a0947eefaa
4,220
py
Python
frontend/Two_Dim_System.py
Pugavkomm/NS-analyst
698af0e94f57b431fd77c17c49d4a23f11d21d3f
[ "MIT" ]
null
null
null
frontend/Two_Dim_System.py
Pugavkomm/NS-analyst
698af0e94f57b431fd77c17c49d4a23f11d21d3f
[ "MIT" ]
null
null
null
frontend/Two_Dim_System.py
Pugavkomm/NS-analyst
698af0e94f57b431fd77c17c49d4a23f11d21d3f
[ "MIT" ]
null
null
null
"""AI is creating summary for """ from frontend import main_window from PyQt5 import QtWidgets from frontend import input_system from PyQt5.QtWidgets import QInputDialog, qApp from qt_material import apply_stylesheet style_sheets = ['dark_amber.xml', 'dark_blue.xml', 'dark_cyan.xml', ...
45.869565
119
0.667536
3,336
0.790521
0
0
0
0
0
0
1,153
0.273223
4d283228992f8ac0459bba73af7effe988be2fc1
1,525
py
Python
get_board_array.py
SuperStormer/minesweeper-bot
b503752ef4f4c1650ea48609dcebf0757d5ad209
[ "MIT" ]
null
null
null
get_board_array.py
SuperStormer/minesweeper-bot
b503752ef4f4c1650ea48609dcebf0757d5ad209
[ "MIT" ]
2
2022-01-13T00:50:34.000Z
2022-03-11T23:26:44.000Z
get_board_array.py
SuperStormer/minesweeper-bot
b503752ef4f4c1650ea48609dcebf0757d5ad209
[ "MIT" ]
null
null
null
import mss import numpy as np from PIL import Image from config import BOARD_HEIGHT, BOARD_WIDTH CELL_SIZE = 22 BOARD_X = 14 BOARD_Y = 111 COLOR_CODES = { (0, 0, 255): 1, (0, 123, 0): 2, (255, 0, 0): 3, (0, 0, 123): 4, (123, 0, 0): 5, (0, 123, 123): 6, (0, 0, 0): 7, (123, 123, 123): 8, (189, 189, 189): 0 #uno...
32.446809
123
0.662951
0
0
0
0
0
0
0
0
239
0.156721
4d293734f2f02cf252d19002878c81331dcad9c7
963
py
Python
Challenges/13/tests/test_stack_and_queue_brackets.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
Challenges/13/tests/test_stack_and_queue_brackets.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
Challenges/13/tests/test_stack_and_queue_brackets.py
makkahwi/data-structures-and-algorithms
06551786258bb7dabb9b0ab07c0f80ff78abca41
[ "MIT" ]
null
null
null
import pytest from stack_and_queue_brackets.stack_and_queue_brackets import validate_brackets def test_a_valid(): actual = validate_brackets("[text]") expected = True assert actual == expected def test_another_valid(): actual = validate_brackets("(1)[2](3)") expected = True assert actual == ...
20.0625
79
0.688474
0
0
0
0
0
0
0
0
45
0.046729
4d2a55ccfddd9dd9215b0c629a81b67391bf257c
360
py
Python
tts/symbols.py
entn-at/tn2-wg
00f59da91a1e23020b20210ea62d838e20c049f2
[ "BSD-3-Clause" ]
38
2019-07-03T21:40:57.000Z
2021-11-30T15:59:20.000Z
tts/symbols.py
entn-at/tn2-wg
00f59da91a1e23020b20210ea62d838e20c049f2
[ "BSD-3-Clause" ]
4
2019-08-20T12:19:10.000Z
2021-07-29T11:20:59.000Z
tts/symbols.py
entn-at/tn2-wg
00f59da91a1e23020b20210ea62d838e20c049f2
[ "BSD-3-Clause" ]
11
2019-07-04T09:17:27.000Z
2021-11-14T21:05:04.000Z
""" from https://github.com/keithito/tacotron """ _pad = '_' #_punctuation = '!\'(),.:;? ' _punctuation = '!",.:;? ' _special = '-' #_letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' _letters = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя" symbols = [_pad] + list(_special...
32.727273
79
0.711111
0
0
0
0
0
0
0
0
294
0.690141
4d2be9274f40cf5428dff78da1531be1cba5e3f0
28
py
Python
tests/fixtures/pkg1/pkg2/pkg3/pkg4/pkg5/__init__.py
shashankrnr32/pytkdocs
bf04764f1608970643932329c9f6c8c63a0c5632
[ "0BSD" ]
21
2021-02-20T05:20:52.000Z
2022-03-04T20:57:16.000Z
tests/fixtures/pkg1/pkg2/pkg3/pkg4/pkg5/__init__.py
shashankrnr32/pytkdocs
bf04764f1608970643932329c9f6c8c63a0c5632
[ "0BSD" ]
84
2020-03-22T15:29:56.000Z
2021-02-09T21:47:11.000Z
tests/fixtures/pkg1/pkg2/pkg3/pkg4/pkg5/__init__.py
shashankrnr32/pytkdocs
bf04764f1608970643932329c9f6c8c63a0c5632
[ "0BSD" ]
21
2020-04-09T13:56:23.000Z
2021-01-19T19:18:42.000Z
"""Hello from the abyss."""
14
27
0.607143
0
0
0
0
0
0
0
0
27
0.964286
4d2c6196de9f0ffebba719e30abbaf48e28d2d23
5,719
py
Python
test/test_tdodbc.py
Teradata/PyTd
5e960ed4c380c4f8ae84d582ad779a87adce5ae1
[ "MIT" ]
133
2015-07-27T22:12:58.000Z
2021-08-31T05:26:38.000Z
test/test_tdodbc.py
Teradata/PyTd
5e960ed4c380c4f8ae84d582ad779a87adce5ae1
[ "MIT" ]
121
2015-07-30T18:03:03.000Z
2021-08-09T13:46:37.000Z
test/test_tdodbc.py
Teradata/PyTd
5e960ed4c380c4f8ae84d582ad779a87adce5ae1
[ "MIT" ]
57
2015-07-27T10:41:08.000Z
2021-04-26T08:58:57.000Z
# The MIT License (MIT) # # Copyright (c) 2015 by Teradata # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modif...
43.656489
79
0.616541
4,164
0.728099
0
0
108
0.018884
0
0
1,615
0.282392
4d2d2acea9bb79c046b8abea693dc31ff18efd72
143
py
Python
submissions/abc035/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc035/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc035/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys input = sys.stdin.readline w, h = map(int, input().split()) if w / h == 4 / 3: ans = '4:3' else: ans = '16:9' print(ans)
11.916667
32
0.538462
0
0
0
0
0
0
0
0
11
0.076923
4d2da9056c6d973976290183ad18c7e824e87fbe
1,029
py
Python
setup.py
JosiahBradley/mod2win
f3636faea8cce041be2d9933574aa1ccd4b818ac
[ "Apache-2.0" ]
null
null
null
setup.py
JosiahBradley/mod2win
f3636faea8cce041be2d9933574aa1ccd4b818ac
[ "Apache-2.0" ]
null
null
null
setup.py
JosiahBradley/mod2win
f3636faea8cce041be2d9933574aa1ccd4b818ac
[ "Apache-2.0" ]
null
null
null
import setuptools long_description = "" with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( author='Josiah Bradley', author_email='[email protected]', name="mod2win", url="https://github.com/JosiahBradley/mod2win", version="0.0.1", entry_points={ ...
31.181818
63
0.640428
0
0
0
0
0
0
0
0
506
0.49174
4d2f1c615c504ceda8bcf1bd0cf231a9e5310a56
4,914
py
Python
release/stubs.min/Autodesk/Revit/UI/Plumbing.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs.min/Autodesk/Revit/UI/Plumbing.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs.min/Autodesk/Revit/UI/Plumbing.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
# encoding: utf-8 # module Autodesk.Revit.UI.Plumbing calls itself Plumbing # from RevitAPIUI,Version=17.0.0.0,Culture=neutral,PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes class IPipeFittingAndAccessoryPressureDropUIServer(IExternalServer): """ Interface for exte...
28.905882
215
0.71571
4,667
0.949735
0
0
0
0
0
0
3,656
0.743997
4d2f795e5817013dda3708c8ac386c1a237e9181
240
py
Python
src/base/apps.py
jhernandez18p/mobyapp
4add7bd3b3f1e933bbb6941674bf84f4c4462685
[ "MIT" ]
null
null
null
src/base/apps.py
jhernandez18p/mobyapp
4add7bd3b3f1e933bbb6941674bf84f4c4462685
[ "MIT" ]
7
2020-06-05T17:31:06.000Z
2022-03-11T23:16:34.000Z
src/base/apps.py
jhernandez18p/mobyapp
4add7bd3b3f1e933bbb6941674bf84f4c4462685
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.db.models.signals import post_migrate from django.utils.translation import gettext_lazy as _ class SitesConfig(AppConfig): name = 'src.base' verbose_name = _("Modulo de Frontend")
26.666667
54
0.766667
94
0.391667
0
0
0
0
0
0
30
0.125
4d31fdb12184ec34b1dcc98d224f9491db93ddd4
708
py
Python
migrations/versions/010_Add_uploader_link_to_upload.py
LCBRU/lbrc_upload
be42fef97b67c1f25329db52ae3a88eb293a1203
[ "MIT" ]
null
null
null
migrations/versions/010_Add_uploader_link_to_upload.py
LCBRU/lbrc_upload
be42fef97b67c1f25329db52ae3a88eb293a1203
[ "MIT" ]
null
null
null
migrations/versions/010_Add_uploader_link_to_upload.py
LCBRU/lbrc_upload
be42fef97b67c1f25329db52ae3a88eb293a1203
[ "MIT" ]
null
null
null
from sqlalchemy import MetaData, Table, Index, Column, Integer meta = MetaData() def upgrade(migrate_engine): meta = MetaData(bind=migrate_engine) upload = Table("upload", meta, autoload=True) uploader_id = Column("uploader_id", Integer) uploader_id.create(upload) idx_upload_uploader_id = Index...
28.32
82
0.75565
0
0
0
0
0
0
0
0
77
0.108757
4d32026c6758449b672d084b5b5fc4c71016f623
3,380
py
Python
redbot/resource/active_check/base.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
null
null
null
redbot/resource/active_check/base.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
null
null
null
redbot/resource/active_check/base.py
Malvoz/redbot
0edef8d4efefddde49d36cd97e471fc187837169
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Subrequests to do things like range requests, content negotiation checks, and validation. This is the base class for all subrequests. """ from abc import ABCMeta, abstractmethod from configparser import SectionProxy from typing import List, Tuple, Type, Union, TYPE_CHECKING from redbot.res...
32.190476
97
0.657988
2,804
0.829586
0
0
376
0.111243
0
0
1,096
0.32426
4d3223ccf8b9ace60c35ba3ab835c0690408e671
92
py
Python
demo/demo14.py
LXG-Shadow/SongRecogn
e02363db5dc40b6128c46f19249044c94e5ba425
[ "Apache-2.0" ]
22
2019-02-25T20:58:58.000Z
2021-07-15T01:45:00.000Z
demo/demo14.py
aynakeya/SongRecogn
e02363db5dc40b6128c46f19249044c94e5ba425
[ "Apache-2.0" ]
4
2021-04-07T13:27:44.000Z
2021-06-15T17:32:04.000Z
demo/demo14.py
aynakeya/SongRecogn
e02363db5dc40b6128c46f19249044c94e5ba425
[ "Apache-2.0" ]
4
2020-05-16T14:08:24.000Z
2021-06-07T08:59:07.000Z
import getopt a = "asdf asdf" option,args = getopt.getopt(a,"","") print(option,type(args))
18.4
36
0.684783
0
0
0
0
0
0
0
0
15
0.163043
4d360ecaf65d937ea0be727ba4568099673793e8
41
py
Python
eyap/utils/ghtools/__init__.py
emin63/eyap
783bdede298e63bbafee81b50cd1e899c43f5847
[ "BSD-3-Clause" ]
null
null
null
eyap/utils/ghtools/__init__.py
emin63/eyap
783bdede298e63bbafee81b50cd1e899c43f5847
[ "BSD-3-Clause" ]
2
2017-07-17T03:50:32.000Z
2017-08-05T02:39:36.000Z
eyap/utils/ghtools/__init__.py
emin63/eyap
783bdede298e63bbafee81b50cd1e899c43f5847
[ "BSD-3-Clause" ]
null
null
null
"""Additional GitHub specific tools. """
13.666667
36
0.707317
0
0
0
0
0
0
0
0
40
0.97561
4d36ab2ecf64dbe104d9ad83b84b202b59495ecf
13,674
py
Python
page_api.py
tomkludy/md_to_conf
3b03f1c68eea1f8a6d788afab0add63f6d4dcf46
[ "MIT" ]
null
null
null
page_api.py
tomkludy/md_to_conf
3b03f1c68eea1f8a6d788afab0add63f6d4dcf46
[ "MIT" ]
null
null
null
page_api.py
tomkludy/md_to_conf
3b03f1c68eea1f8a6d788afab0add63f6d4dcf46
[ "MIT" ]
null
null
null
""" # -------------------------------------------------------------------------------------------------- # Page APIs # -------------------------------------------------------------------------------------------------- """ import os import tempfile import re import json import collections import mimetypes import urllib...
36.270557
114
0.546365
13,036
0.953342
0
0
0
0
0
0
4,296
0.314173
4d37f40cf39b5e290df6e5f9680f28b3b0ec78f5
5,918
py
Python
testing/tests/data_handling/test_predict.py
JSKenyon/QuartiCal
2113855b080cfecc4a1c77cc9dad346ef3619716
[ "MIT" ]
null
null
null
testing/tests/data_handling/test_predict.py
JSKenyon/QuartiCal
2113855b080cfecc4a1c77cc9dad346ef3619716
[ "MIT" ]
null
null
null
testing/tests/data_handling/test_predict.py
JSKenyon/QuartiCal
2113855b080cfecc4a1c77cc9dad346ef3619716
[ "MIT" ]
1
2022-03-18T14:30:04.000Z
2022-03-18T14:30:04.000Z
from copy import deepcopy import pytest from quartical.data_handling.predict import (parse_sky_models, daskify_sky_model_dict, get_support_tables) import dask.array as da import numpy as np from numpy.testing import assert_array_a...
32.163043
79
0.622339
0
0
0
0
4,349
0.734877
0
0
1,765
0.298243
4d391ca815462113e85dde20f4caa4e28b604358
300
py
Python
HACKERRANK_Numpy/concatenated.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
HACKERRANK_Numpy/concatenated.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
HACKERRANK_Numpy/concatenated.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
import numpy N,M,P = map(int,input().split()) p_cols1 =numpy.array([input().split() for _ in range(N)],int) p_cols1.shape = (N,P) p_cols2 =numpy.array([input().split() for _ in range(M)],int) p_cols2.shape = (M,P) concatenated = numpy.concatenate((p_cols1, p_cols2), axis = 0) print(concatenated)
25
62
0.686667
0
0
0
0
0
0
0
0
0
0
4d3a0734d340535665b3ebc270eb897a3c7611c7
4,171
py
Python
Discord Status Changer.py
vragonx/DiscordStatusChanger
376a78e5653f99d266a0a45ac3ecc8d71159bd49
[ "Apache-2.0" ]
null
null
null
Discord Status Changer.py
vragonx/DiscordStatusChanger
376a78e5653f99d266a0a45ac3ecc8d71159bd49
[ "Apache-2.0" ]
null
null
null
Discord Status Changer.py
vragonx/DiscordStatusChanger
376a78e5653f99d266a0a45ac3ecc8d71159bd49
[ "Apache-2.0" ]
1
2021-06-06T07:24:14.000Z
2021-06-06T07:24:14.000Z
from colorama import Fore, init, Style import requests import random import ctypes import time import os ctypes.windll.kernel32.SetConsoleTitleW('Discord Status Changer') init(convert=True, autoreset=True) SuccessCounter = 0 ErrorCounter = 0 os.system('cls') print(Fore.RED + '\n[' + Fore.WHITE + Style.BR...
45.336957
176
0.562455
0
0
0
0
0
0
0
0
1,087
0.260609
4d3c620a15280505542a7dd73460b5056d95dccf
1,269
py
Python
hw1/feature_summary.py
doochi/gct634-ai613-2021
af12a1ea9c622fca17928f8431cc0983470f97db
[ "MIT" ]
9
2021-09-04T04:11:47.000Z
2022-01-06T13:00:32.000Z
hw1/feature_summary.py
doochi/gct634-ai613-2021
af12a1ea9c622fca17928f8431cc0983470f97db
[ "MIT" ]
null
null
null
hw1/feature_summary.py
doochi/gct634-ai613-2021
af12a1ea9c622fca17928f8431cc0983470f97db
[ "MIT" ]
19
2021-09-12T10:13:09.000Z
2022-01-28T01:37:42.000Z
# GCT634 (2018) HW1 # # Mar-18-2018: initial version # # Juhan Nam # import sys import os import numpy as np import matplotlib.pyplot as plt data_path = './dataset/' mfcc_path = './mfcc/' MFCC_DIM = 20 def mean_mfcc(dataset='train'): f = open(data_path + dataset + '_list.txt','r') if dataset == 'tra...
18.940299
82
0.597321
0
0
0
0
0
0
0
0
250
0.197006
4d3c97fcf24ccce0fd906a45948aebe7fed32f87
6,685
py
Python
package/kedro_viz/services/layers.py
pascalwhoop/kedro-viz
5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
246
2019-07-08T15:27:34.000Z
2022-01-09T18:47:11.000Z
package/kedro_viz/services/layers.py
pascalwhoop/kedro-viz
5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
222
2019-07-08T14:07:13.000Z
2022-01-06T19:19:27.000Z
package/kedro_viz/services/layers.py
pascalwhoop/kedro-viz
5fd8dd8033da5f3d37c80a7adb51b60fd8daa64d
[ "BSD-3-Clause-Clear", "Apache-2.0" ]
53
2019-07-14T14:06:47.000Z
2021-12-06T22:21:46.000Z
# Copyright 2021 QuantumBlack Visual Analytics Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THE SOFTWARE IS PROVIDED "AS IS",...
48.093525
100
0.698579
0
0
0
0
0
0
0
0
4,986
0.745849
4d3cec7b76ef0e1f26a6a2ea0b4008e98f8e6357
6,941
py
Python
fixed_width_gen.py
pradnyaalc/fixed_width_file_generation
989eb34f57a6061f89c4889ec1c3db3a45b86723
[ "Apache-2.0" ]
null
null
null
fixed_width_gen.py
pradnyaalc/fixed_width_file_generation
989eb34f57a6061f89c4889ec1c3db3a45b86723
[ "Apache-2.0" ]
null
null
null
fixed_width_gen.py
pradnyaalc/fixed_width_file_generation
989eb34f57a6061f89c4889ec1c3db3a45b86723
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # importing libraries import json from copy import deepcopy from decimal import Decimal import time class FixedWidth: def get_config(self, config_file): """ reads the json specification file and returns a dictionary :param config_file: json :retur...
33.370192
121
0.53998
5,968
0.859818
0
0
0
0
0
0
2,518
0.362772
4d3cfc02ebd8ee1182122794d381b0a0a452d148
855
py
Python
52digest.py
Ferdandez/homework
07df8e0c63e93773e7fc354bfb4e6ae301d49124
[ "MIT" ]
null
null
null
52digest.py
Ferdandez/homework
07df8e0c63e93773e7fc354bfb4e6ae301d49124
[ "MIT" ]
null
null
null
52digest.py
Ferdandez/homework
07df8e0c63e93773e7fc354bfb4e6ae301d49124
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # 52digest.py import re import sys # Write a program that performs an EcoRI digest on the SARS-COV2 genome # The program should have 2 arguments # 1. The genome file # 2. The restriction pattern # The output should be the sizes of the restriction fragments originseen = False seq = '' dige...
19
71
0.679532
0
0
0
0
0
0
0
0
402
0.470175
4d3d62f955634f9c834d309435153be67f95acc0
2,394
py
Python
yt_dlp/extractor/willow.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
80
2021-05-25T11:33:49.000Z
2022-03-29T20:36:53.000Z
yt_dlp/extractor/willow.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
53
2017-04-12T19:53:18.000Z
2022-02-22T10:33:13.000Z
yt_dlp/extractor/willow.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
22
2021-05-07T05:01:27.000Z
2022-03-26T19:10:54.000Z
# coding: utf-8 from ..utils import ExtractorError from .common import InfoExtractor class WillowIE(InfoExtractor): _VALID_URL = r'https?://(www\.)?willow\.tv/videos/(?P<id>[0-9a-z-_]+)' _GEO_COUNTRIES = ['US'] _TESTS = [{ 'url': 'http://willow.tv/videos/d5winning-moment-eng-vs-ind-streaming-onli...
40.576271
125
0.581036
2,306
0.963241
0
0
0
0
0
0
1,059
0.442356
4d3d9898f84561406d75802e9d8427f790dcd648
32
py
Python
vesicashapi/vesicash.py
vesicash/vesicash-python-sdk
0a665e302b88c4eeb316a635c5485c9c3c1fffeb
[ "Apache-2.0" ]
null
null
null
vesicashapi/vesicash.py
vesicash/vesicash-python-sdk
0a665e302b88c4eeb316a635c5485c9c3c1fffeb
[ "Apache-2.0" ]
null
null
null
vesicashapi/vesicash.py
vesicash/vesicash-python-sdk
0a665e302b88c4eeb316a635c5485c9c3c1fffeb
[ "Apache-2.0" ]
1
2021-04-20T14:54:40.000Z
2021-04-20T14:54:40.000Z
""" Entry point defined here """
32
32
0.65625
0
0
0
0
0
0
0
0
32
1
4d3e1930813427009e7819522279ea71f06fd637
4,044
py
Python
src/dissregarded/NetArivalsDeparturesHoures.py
sebastian-konicz/WRM
e60aafada7bb85df955a7e1357f33fe5846f4e6c
[ "MIT" ]
1
2019-11-02T18:24:19.000Z
2019-11-02T18:24:19.000Z
src/dissregarded/NetArivalsDeparturesHoures.py
sebastian-konicz/WRM
e60aafada7bb85df955a7e1357f33fe5846f4e6c
[ "MIT" ]
7
2020-03-24T17:48:28.000Z
2022-03-12T00:05:13.000Z
src/dissregarded/NetArivalsDeparturesHoures.py
sebastian-konicz/WRM
e60aafada7bb85df955a7e1357f33fe5846f4e6c
[ "MIT" ]
null
null
null
import folium from folium.plugins import MarkerCluster import pandas as pd import datetime from pathlib import Path # pd.options.display.max_columns = 50 def main(dir): # Loading Data Set print("Loading dataset") RentalData = pd.read_csv(dir + r'\data\processed\RentalData2015.csv') # Changind the Sta...
42.568421
121
0.638477
0
0
0
0
0
0
0
0
1,455
0.359792
4d3ee1ccb8692f8cfb3b7d31686fa015b7d46982
5,470
py
Python
bin/lineage_parser.py
brianlee99/UVP
5b7ff26c09d84760d4220268f34fb4814848eb4a
[ "MIT" ]
null
null
null
bin/lineage_parser.py
brianlee99/UVP
5b7ff26c09d84760d4220268f34fb4814848eb4a
[ "MIT" ]
null
null
null
bin/lineage_parser.py
brianlee99/UVP
5b7ff26c09d84760d4220268f34fb4814848eb4a
[ "MIT" ]
null
null
null
#! /usr/bin/python import sys """ This script accepts the final annotation file and the lineage marker SNPs file """ """ and infers the lineage and possible sublineage classification of the isolate """ """ it requires a sample ID name (string) and an output file name(string) """ """ Author: Matthew Ezewudo CPTR ReS...
36.466667
131
0.518464
0
0
0
0
0
0
0
0
1,364
0.24936
4d3ef71c75b3b75d2218b109a8f46905d02e164e
10,038
py
Python
rdr_service/offline/metrics_export.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/offline/metrics_export.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/offline/metrics_export.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
from rdr_service import clock, config from rdr_service.code_constants import EHR_CONSENT_QUESTION_CODE, PPI_SYSTEM, RACE_QUESTION_CODE, UNMAPPED from rdr_service.dao.code_dao import CodeDao from rdr_service.dao.database_utils import get_sql_and_params_for_array, replace_isodate from rdr_service.dao.hpo_dao import HPODa...
41.139344
117
0.724846
4,298
0.428173
0
0
3,362
0.334927
0
0
4,500
0.448296
4d3f64220d8ff34f2c9e4737de791b02b5323b50
701
py
Python
fundata/dota2/player/player_detail.py
mengyuanhumy/fundata
e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32
[ "MIT" ]
null
null
null
fundata/dota2/player/player_detail.py
mengyuanhumy/fundata
e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32
[ "MIT" ]
null
null
null
fundata/dota2/player/player_detail.py
mengyuanhumy/fundata
e4090edf967e2ad7f7efadd64a7fc2ae8dc1ed32
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ...client import get_api_client def get_player_detail_stats(player_id): """玩家常规统计数据 参数player_id,玩家ID, int 返回dict格式 """ if get_player_data_status(player_id)==2: client=get_api_client() uri="/fundata-dota2-free/v2/player/"+str(player_id)+"/detail_stats" return client.api(uri,{})...
22.612903
69
0.71184
0
0
0
0
0
0
0
0
386
0.483104
4d40d6894572ebb56bff51cbd51d17f087ba2234
2,454
py
Python
ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/YARN/package/scripts/resourcemanager.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
16
2018-05-24T10:28:24.000Z
2021-08-05T03:13:26.000Z
ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/YARN/package/scripts/resourcemanager.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
3
2021-05-09T12:37:16.000Z
2022-03-02T10:13:24.000Z
ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/YARN/package/scripts/resourcemanager.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
17
2018-07-06T08:57:00.000Z
2021-11-04T11:00:36.000Z
""" Licensed to the Apache Software Foundation (ASF) 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 this ...
24.058824
94
0.711899
1,516
0.617767
0
0
0
0
0
0
990
0.403423
4d4284d5a0b58c47616dd4e99223550ab8085447
166
py
Python
src/core/command.py
cfmcdonald-78/Hexcrawler
79ca4ab9327abf08de1743612c23eb89aa53a2b9
[ "MIT" ]
null
null
null
src/core/command.py
cfmcdonald-78/Hexcrawler
79ca4ab9327abf08de1743612c23eb89aa53a2b9
[ "MIT" ]
null
null
null
src/core/command.py
cfmcdonald-78/Hexcrawler
79ca4ab9327abf08de1743612c23eb89aa53a2b9
[ "MIT" ]
1
2021-12-01T01:38:12.000Z
2021-12-01T01:38:12.000Z
''' Created on Jul 19, 2012 @author: Chris ''' class Command(object): def validate(self, game): pass def execute(self, game): pass
12.769231
29
0.554217
117
0.704819
0
0
0
0
0
0
47
0.283133
4d42f4da01153d9efccca4d19cc6efc9b683c41b
8,039
py
Python
gui/trimGui.py
lhalb/gfmanager
449f071b3239faa672b7f06122dfc9bc23e68d79
[ "MIT" ]
1
2022-01-18T12:53:17.000Z
2022-01-18T12:53:17.000Z
gui/trimGui.py
lhalb/gfmanager
449f071b3239faa672b7f06122dfc9bc23e68d79
[ "MIT" ]
null
null
null
gui/trimGui.py
lhalb/gfmanager
449f071b3239faa672b7f06122dfc9bc23e68d79
[ "MIT" ]
null
null
null
from PyQt5 import QtGui, QtWidgets import seaborn as sns from gui import trimming as tri from gui import boxes as BOX import matplotlib.image as mpimg from math import floor, ceil class TrimDialog(QtWidgets.QDialog, tri.Ui_Dialog): def __init__(self, data=None): super(TrimDialog, self).__init__() ...
32.812245
105
0.619729
7,853
0.976863
0
0
0
0
0
0
489
0.060828
4d47790f7b2c6a08485b7da418683620a521d5cf
1,178
py
Python
__init__.py
hankangkangjim/djlog
cfdac281be811adc3fc1b91672c0230cc575722f
[ "MIT" ]
null
null
null
__init__.py
hankangkangjim/djlog
cfdac281be811adc3fc1b91672c0230cc575722f
[ "MIT" ]
null
null
null
__init__.py
hankangkangjim/djlog
cfdac281be811adc3fc1b91672c0230cc575722f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings def _defaultdict(_dict, key): if key not in _dict: _dict[key] = {} return _dict[key] def update_logging(log_config): if not isinstance(log_config, dict): raise TypeError('set...
29.45
78
0.618846
0
0
0
0
0
0
0
0
379
0.321732
4d48c769d2260ad0c3c0d32734d1d092109092b3
6,697
py
Python
manilaclient/tests/unit/common/test_httpclient.py
mail2nsrajesh/python-manilaclient
37bf2d9b4be277ece01e9ff782234d264ed4fd56
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
manilaclient/tests/unit/common/test_httpclient.py
mail2nsrajesh/python-manilaclient
37bf2d9b4be277ece01e9ff782234d264ed4fd56
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
manilaclient/tests/unit/common/test_httpclient.py
mail2nsrajesh/python-manilaclient
37bf2d9b4be277ece01e9ff782234d264ed4fd56
[ "CNRI-Python", "Apache-1.1" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
32.043062
78
0.626101
4,265
0.636852
0
0
2,170
0.324026
0
0
1,377
0.205614
4d4909137a8281abf00add12e7109af6453220fd
1,421
py
Python
intro_to_algos_2020_mit/ps3/tests.py
venu-gopal-myneni/assignments
871148ccaa6291539623fc7d3f9704cb497fbcb6
[ "MIT" ]
1
2022-02-26T13:52:31.000Z
2022-02-26T13:52:31.000Z
assignments/ps3-template/tests.py
tallamjr/mit-6006
c2aa6bb48edef5800c0779ba2eebd697d44249b5
[ "MIT" ]
null
null
null
assignments/ps3-template/tests.py
tallamjr/mit-6006
c2aa6bb48edef5800c0779ba2eebd697d44249b5
[ "MIT" ]
null
null
null
import unittest from count_anagram_substrings import count_anagram_substrings tests = ( ( ( 'esleastealaslatet', ('tesla',), ), (3,), ), ( ( 'lrldrrrllddrrlllrddd', ('ldl', 'rld'), ), (1, 3), ), ( ...
25.375
115
0.553835
320
0.225194
0
0
0
0
0
0
372
0.261787
4d49fb464c7f3d5acfcbeab36ee17a5c9322cb65
9,387
py
Python
sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py
eugval/sim2real_dynamics_simulation
2ed175803faa38792f6becc2dc91f44ae71ed9c2
[ "MIT" ]
16
2020-07-28T14:35:44.000Z
2021-11-28T01:50:51.000Z
sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py
eugval/sim2real_dynamics_simulation
2ed175803faa38792f6becc2dc91f44ae71ed9c2
[ "MIT" ]
1
2020-11-26T07:58:30.000Z
2020-12-01T04:40:28.000Z
sim2real-policies/sim2real_policies/sys_id/universal_policy_online_system_identification/osi_class.py
eugval/sim2real_dynamics_simulation
2ed175803faa38792f6becc2dc91f44ae71ed9c2
[ "MIT" ]
2
2020-10-18T01:38:49.000Z
2021-12-31T10:56:41.000Z
""" System Identification (SI) https://arxiv.org/abs/1702.02453 Examples of two types: 1. Off-line SI: in sim2real_policies.sys_id.common.utils 2. On-line SI """ from sim2real_policies.sys_id.common.operations import * from sim2real_policies.sys_id.common.utils import * from sim2real_policies.utils.rl_utils import lo...
45.567961
155
0.629914
8,684
0.925109
0
0
0
0
0
0
2,399
0.255566
4d4c6f6195152d60976c1000937ec76667e66f99
2,099
py
Python
rasp_camera.py
BrianDau/doorbell_dash
940877c5019b39639e7de0081a616d20c8b5a0fc
[ "MIT" ]
11
2017-04-12T13:27:39.000Z
2021-05-16T16:27:15.000Z
rasp_camera.py
BrianDau/doorbell_dash
940877c5019b39639e7de0081a616d20c8b5a0fc
[ "MIT" ]
null
null
null
rasp_camera.py
BrianDau/doorbell_dash
940877c5019b39639e7de0081a616d20c8b5a0fc
[ "MIT" ]
1
2019-01-10T18:33:42.000Z
2019-01-10T18:33:42.000Z
import picamera from time import sleep IMG_WIDTH = 800 IMG_HEIGHT = 600 IMAGE_DIR = "/home/pi/Desktop/" IMG = "snap.jpg" def vid(): camera = picamera.PiCamera() camera.vflip = True camera.hflip = True camera.brightness = 60 #camera.resolution = (IMG_WIDTH, IMG_HEIGHT) camera.start_prev...
26.910256
66
0.549786
0
0
0
0
0
0
0
0
1,665
0.793235
4d4d0ea614818e4dfdde9e585c36b4fdaeb09ea4
4,720
py
Python
catalogue_flask/model.py
ScottWales/catalogue-flask
4a9e659875fee6e831e6c31018c9f9d7285dc845
[ "Apache-2.0" ]
null
null
null
catalogue_flask/model.py
ScottWales/catalogue-flask
4a9e659875fee6e831e6c31018c9f9d7285dc845
[ "Apache-2.0" ]
null
null
null
catalogue_flask/model.py
ScottWales/catalogue-flask
4a9e659875fee6e831e6c31018c9f9d7285dc845
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 ARC Centre of Excellence for Climate Systems Science # author: Scott Wales <[email protected]> # # 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...
31.052632
98
0.661441
3,613
0.765466
0
0
0
0
0
0
1,887
0.399788
4d4daf56e54bd88f232ffc4ff205ca0bd68de320
1,823
py
Python
userbot/core/vcbot/controls.py
Rewtio/Mikoo-Userbot
418f0017241fa65bdf7f99c84381317cb4dbeb55
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2022-03-03T01:31:48.000Z
2022-03-26T00:15:41.000Z
userbot/core/vcbot/controls.py
Rewtio/Mikoo-Userbot
418f0017241fa65bdf7f99c84381317cb4dbeb55
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-16T02:54:27.000Z
2022-03-17T09:17:12.000Z
userbot/core/vcbot/controls.py
Rewtio/Mikoo-Userbot
418f0017241fa65bdf7f99c84381317cb4dbeb55
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-16T02:41:38.000Z
2022-03-16T02:41:38.000Z
# Mikoo - UserBot # Copyright (c) 2022 Mikoo-Userbot # Credits: @divarvian || https://github.com/divarvian # # This file is a part of < https://github.com/divarvian/Mikoo-Userbot/ > # t.me/MikooUserbot & t.me/MikooUserbot from pytgcalls.types.input_stream import AudioPiped, AudioVideoPiped from pytgcalls.types.input_...
27.208955
80
0.623149
0
0
0
0
0
0
1,266
0.69446
230
0.126166
4d4ffc6370941aaa5377e63ac70bab0e9216c2d5
5,614
py
Python
src/jaeger/jaeger.py
Novartis/JAEGER
9f9441d97bb956d88b73e2d24edb65322420c251
[ "Apache-2.0" ]
9
2021-12-27T15:49:43.000Z
2022-03-29T10:17:55.000Z
src/jaeger/jaeger.py
Novartis/JAEGER
9f9441d97bb956d88b73e2d24edb65322420c251
[ "Apache-2.0" ]
null
null
null
src/jaeger/jaeger.py
Novartis/JAEGER
9f9441d97bb956d88b73e2d24edb65322420c251
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 Novartis Institutes for BioMedical Research 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...
31.539326
110
0.685073
0
0
0
0
3,208
0.571429
0
0
1,388
0.247239
4d50bed8c76e8e60cc01b8081cea63dca711f207
805
py
Python
test/test_vlan_group.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
test/test_vlan_group.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
test/test_vlan_group.py
nrfta/python-netbox-client
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
[ "MIT" ]
null
null
null
# coding: utf-8 """ NetBox API API to access NetBox # noqa: E501 OpenAPI spec version: 2.8 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import netbox_client from netbox_client.models.vlan_group import VLANGroup ...
19.634146
79
0.680745
376
0.467081
0
0
0
0
0
0
393
0.488199