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
63864bd0c8cd0935d04afd12f3430b88b366b42e
8,792
py
Python
sources/rnt/mediane/process.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
null
null
null
sources/rnt/mediane/process.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
11
2018-04-04T08:24:30.000Z
2021-03-19T21:45:04.000Z
sources/rnt/mediane/process.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
1
2018-10-25T09:13:41.000Z
2018-10-25T09:13:41.000Z
from django.utils import timezone from django.utils.translation import ugettext from mediane.algorithms.enumeration import get_name_from from mediane.algorithms.lri.BioConsert import BioConsert from mediane.algorithms.lri.ExactAlgorithm import ExactAlgorithm from mediane.algorithms.misc.borda_count import BordaCount f...
35.595142
116
0.66242
0
0
0
0
0
0
0
0
805
0.091561
6386ae51574c0702fa4ae47e2c3e29449d380984
71
py
Python
utils_demo/percentage_format.py
IBM/nesa-demo
4e87217f44ff66414f78df6962ee8633d89f0cf5
[ "MIT" ]
2
2021-12-16T13:16:56.000Z
2022-01-19T14:23:18.000Z
utils_demo/percentage_format.py
SocioProphet/nesa-demo
4e87217f44ff66414f78df6962ee8633d89f0cf5
[ "MIT" ]
null
null
null
utils_demo/percentage_format.py
SocioProphet/nesa-demo
4e87217f44ff66414f78df6962ee8633d89f0cf5
[ "MIT" ]
1
2022-03-07T19:57:59.000Z
2022-03-07T19:57:59.000Z
def percentage_format(x: float) -> str: return f"{(x * 100):.1f}%"
23.666667
39
0.591549
0
0
0
0
0
0
0
0
19
0.267606
6389dbaa2631db7b30ed8767e0e5b57b31566133
399
py
Python
restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py
ShubhamJain0/ShubhamJain0.github.io
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
null
null
null
restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py
ShubhamJain0/ShubhamJain0.github.io
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
4
2021-04-08T21:52:50.000Z
2022-02-10T09:29:03.000Z
restaurantapp/mainapp/migrations/0003_auto_20200508_1206.py
ShubhamJain0/Restaurant-App
bf73d2a8f55c3362908c8102d1788a34627dba44
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2020-05-08 12:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainapp', '0002_auto_20200508_1115'), ] operations = [ migrations.AlterField( model_name='yourorder', name='phone', ...
21
61
0.60401
306
0.766917
0
0
0
0
0
0
99
0.24812
6389dc63d6c399ed10f73f80566508686888935c
82
py
Python
pybomberman/__init__.py
pybomberman/pybomberman
8c7582ec52bf0dd1d77a3e98f5867ffa97233653
[ "MIT" ]
2
2021-03-29T08:44:54.000Z
2021-05-03T23:34:06.000Z
pybomberman/__init__.py
pybomberman/pybomberman
8c7582ec52bf0dd1d77a3e98f5867ffa97233653
[ "MIT" ]
null
null
null
pybomberman/__init__.py
pybomberman/pybomberman
8c7582ec52bf0dd1d77a3e98f5867ffa97233653
[ "MIT" ]
null
null
null
from .map import Map print("Soon... https://github.com/pybomberman/pybomberman")
20.5
59
0.743902
0
0
0
0
0
0
0
0
52
0.634146
638b620923dedf797dae35ba43746969775844b6
3,935
py
Python
cd2h_repo_project/modules/doi/schemas.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
6
2019-09-02T00:01:50.000Z
2021-11-04T08:23:40.000Z
cd2h_repo_project/modules/doi/schemas.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
72
2019-09-04T18:52:35.000Z
2020-07-21T19:58:15.000Z
cd2h_repo_project/modules/doi/schemas.py
galterlibrary/InvenioRDM-at-NU
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
[ "MIT" ]
null
null
null
"""JSON Schemas.""" import csv from collections import defaultdict from datetime import date from os.path import dirname, join, realpath from flask import current_app from marshmallow import Schema, fields from cd2h_repo_project.modules.records.resource_type import ResourceType class DataCiteResourceTypeMap(object)...
30.503876
78
0.653621
3,639
0.924778
0
0
0
0
0
0
1,591
0.40432
638ca1bd53358131bd94d7e2bbba9486f9304c18
1,068
py
Python
python/dazl/model/__init__.py
DACH-NY/dazl-client
56c8b1be047415b2bcb35b6558de4a780a402458
[ "Apache-2.0" ]
null
null
null
python/dazl/model/__init__.py
DACH-NY/dazl-client
56c8b1be047415b2bcb35b6558de4a780a402458
[ "Apache-2.0" ]
null
null
null
python/dazl/model/__init__.py
DACH-NY/dazl-client
56c8b1be047415b2bcb35b6558de4a780a402458
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 """ :mod:`dazl.model` package ========================= This module is deprecated. These types have generally moved to :mod:`dazl.client` (for the API introduced in dazl v5) or ...
30.514286
102
0.712547
0
0
0
0
0
0
0
0
803
0.751873
638cb4fc9dbdd295d6a3f3e2773674502d0d5ab5
1,559
py
Python
paxes_cinder/scheduler/filters/storage_protocol_filter.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
paxes_cinder/scheduler/filters/storage_protocol_filter.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
paxes_cinder/scheduler/filters/storage_protocol_filter.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
from cinder.openstack.common import log as logging from cinder.openstack.common.scheduler import filters from cinder.openstack.common.scheduler.filters import extra_specs_ops LOG = logging.getLogger(__name__) class StorageProtocolFilter(filters.BaseHostFilter): """StorageProtocol filters based on volume host's ...
38.02439
84
0.62925
1,346
0.863374
0
0
0
0
0
0
364
0.233483
6390b3aacb002c83ef8bc4d3f72ff626a4abe7f1
1,771
py
Python
Bioinformatics IV/Week IV/PeptideSequencingProblem.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
3
2021-04-03T23:46:42.000Z
2021-08-08T01:19:32.000Z
Bioinformatics IV/Week IV/PeptideSequencingProblem.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
null
null
null
Bioinformatics IV/Week IV/PeptideSequencingProblem.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
null
null
null
import sys from copy import deepcopy mass_file=open('integer_mass_table.txt') mass_table = {} for line in mass_file: aa, mass = line.rstrip().split(' ') mass_table[int(mass)] = aa # mass_table[4] = 'X' # mass_table[5] = 'Z' def PeptideSequencing(spectral_vector): spectral_vector = [0] + spectral_vector ...
28.564516
76
0.539243
0
0
0
0
0
0
0
0
120
0.067758
6390c12244c07615289c789c791dd14d31ca59c7
2,465
py
Python
test/likelihoods/test_multitask_gaussian_likelihood.py
llguo95/gpytorch
1fa69935104565c377ce95d2c581c9eedfb55817
[ "MIT" ]
2,673
2018-02-19T22:28:58.000Z
2022-03-31T13:22:28.000Z
test/likelihoods/test_multitask_gaussian_likelihood.py
llguo95/gpytorch
1fa69935104565c377ce95d2c581c9eedfb55817
[ "MIT" ]
1,415
2018-02-19T20:38:20.000Z
2022-03-30T12:53:13.000Z
test/likelihoods/test_multitask_gaussian_likelihood.py
llguo95/gpytorch
1fa69935104565c377ce95d2c581c9eedfb55817
[ "MIT" ]
467
2018-03-07T02:06:05.000Z
2022-03-27T07:05:44.000Z
#!/usr/bin/env python3 import unittest import torch from gpytorch.distributions import MultitaskMultivariateNormal from gpytorch.lazy import KroneckerProductLazyTensor, RootLazyTensor from gpytorch.likelihoods import MultitaskGaussianLikelihood from gpytorch.test.base_likelihood_test_case import BaseLikelihoodTestCa...
35.214286
92
0.708722
2,136
0.866531
0
0
0
0
0
0
92
0.037323
639138968935973bda9f7100f85f9fc9166454f1
399
py
Python
zip/unzip_print.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
1
2021-01-01T14:46:28.000Z
2021-01-01T14:46:28.000Z
zip/unzip_print.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
null
null
null
zip/unzip_print.py
juarezhenriquelisboa/Python
5c5498b33e7cba4e3bfa322a6a76bed74b68e6bf
[ "MIT" ]
null
null
null
import zipfile import sys for arg in sys.argv[1:]: senha = str(arg) z = zipfile.ZipFile("protegido.zip") files = z.namelist() z.setpassword(senha) z.extractall() z.close() for extracted_file in files: print "Nome do arquivo: "+extracted_file+"\n\nConteudo: " with open(extracted_file) as f: ...
16.625
61
0.639098
0
0
0
0
0
0
0
0
58
0.145363
6392f325bfe2c22484f1ffe055193199e29b8c30
948
py
Python
awards/forms.py
JKimani77/awards
8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e
[ "MIT" ]
null
null
null
awards/forms.py
JKimani77/awards
8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e
[ "MIT" ]
null
null
null
awards/forms.py
JKimani77/awards
8cdfaadbd4aca5ef2031966496ebcb5c3c3ea49e
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm,AuthenticationForm from django.contrib.auth.models import User from .models import Profile,Project,Review class RegForm(UserCreationForm): email = forms.EmailField() class Meta: model = User fields = ('usernam...
26.333333
75
0.681435
743
0.783755
0
0
0
0
0
0
152
0.160338
63941acd5ea7c627eccf6daf6a03aa134aea7caf
1,269
py
Python
setup.py
aaren/pharminv
b3d3d11c81bafa40a72583aa98f51b05acec9835
[ "BSD-3-Clause" ]
12
2015-05-12T21:02:44.000Z
2021-04-24T23:05:16.000Z
setup.py
aaren/pharminv
b3d3d11c81bafa40a72583aa98f51b05acec9835
[ "BSD-3-Clause" ]
5
2015-04-05T17:05:09.000Z
2022-02-11T16:46:57.000Z
setup.py
aaren/pharminv
b3d3d11c81bafa40a72583aa98f51b05acec9835
[ "BSD-3-Clause" ]
3
2018-04-27T20:10:10.000Z
2022-02-16T13:12:02.000Z
import subprocess from setuptools import setup, Extension try: pandoc = subprocess.Popen(['pandoc', 'README.md', '--to', 'rst'], stdout=subprocess.PIPE) readme = pandoc.communicate()[0].decode() except OSError: with open('README.md') as f: readme = f.read() cmdclass...
23.943396
69
0.618597
0
0
0
0
0
0
0
0
262
0.206462
63945460f91035ee579fbea1f037bd4fecb49b1e
8,830
py
Python
RiskQuantLib/Tool/databaseTool.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
1
2021-12-29T12:18:45.000Z
2021-12-29T12:18:45.000Z
RiskQuantLib/Tool/databaseTool.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
null
null
null
RiskQuantLib/Tool/databaseTool.py
SyuyaMurakami/RiskQuantLib-Doc
2503befc24c2e422e51f8b9f468c8d8439e11c65
[ "MIT" ]
1
2021-12-08T02:14:34.000Z
2021-12-08T02:14:34.000Z
#!/usr/bin/python #coding = utf-8 import numpy as np import pandas as pd import mysql.connector class mysqlTool(): """ This is the API to connect with mysql database. """ def __init__(self,databaseNameString:str,hostAddress:str,userName:str,passWord:str): self.targetDB = mysql.connector.connect( host = hostA...
40.504587
160
0.723669
8,728
0.988448
0
0
0
0
0
0
1,284
0.145413
63947c1901639950a3d0a9a8e03f0f05a930b237
270
py
Python
subset_train.py
sngweicong/DeepCTR-Torch
67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af
[ "Apache-2.0" ]
null
null
null
subset_train.py
sngweicong/DeepCTR-Torch
67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af
[ "Apache-2.0" ]
null
null
null
subset_train.py
sngweicong/DeepCTR-Torch
67d4e9d0c8a13aa4d614b2d04397a7f6e7a0e9af
[ "Apache-2.0" ]
null
null
null
data_size_plus_header = 1000001 train_dir = 'train' subset_train_dir = 'sub_train.txt' fullfile = open(train_dir, 'r') subfile = open(subset_train_dir,'w') for i in range(data_size_plus_header): subfile.write(fullfile.readline()) fullfile.close() subfile.close()
20.769231
38
0.759259
0
0
0
0
0
0
0
0
28
0.103704
6396512d9916e7db0610bee423d4d3ccdc2c336e
12,095
py
Python
packages/validate_and_forward/lambda_handler.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
4
2021-06-25T08:28:54.000Z
2021-12-16T11:03:42.000Z
packages/validate_and_forward/lambda_handler.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
184
2021-06-24T15:27:08.000Z
2022-03-17T12:44:28.000Z
packages/validate_and_forward/lambda_handler.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
3
2021-11-05T10:21:44.000Z
2022-03-04T14:29:24.000Z
import json import os import traceback from datetime import datetime from uuid import uuid4 import boto3 from aws.ssm import get_ssm_params from database import Jobs from gp_file_parser.parser import parse_gp_extract_file_s3 from jobs.statuses import InputFolderType, InvalidErrorType, JobStatus, ParseStatus from lr_lo...
33.136986
113
0.556676
11,437
0.945597
0
0
0
0
0
0
2,665
0.220339
6396bfd17554b072db271a588e4203eb7b87b54a
1,258
py
Python
src/ucar/unidata/apps/noaapsd/default.py
mhiley/IDV
bf45573c008f4b1d155d42fbb078bd99578d69d3
[ "CNRI-Jython" ]
null
null
null
src/ucar/unidata/apps/noaapsd/default.py
mhiley/IDV
bf45573c008f4b1d155d42fbb078bd99578d69d3
[ "CNRI-Jython" ]
null
null
null
src/ucar/unidata/apps/noaapsd/default.py
mhiley/IDV
bf45573c008f4b1d155d42fbb078bd99578d69d3
[ "CNRI-Jython" ]
null
null
null
""" NOAA/ESRL/PSD Jython functions """ def calcMonAnom(monthly, ltm, normalize=0): """ Calculate the monthly anomaly from a long term mean. The number of timesteps in ltm must be 12 """ from visad import VisADException monAnom = monthly.clone() months = len(ltm) if (not months == 12): raise VisAD...
29.952381
74
0.670111
0
0
0
0
0
0
0
0
304
0.241653
639892302eb62bb4521dec46165a447fd1bb4884
370
py
Python
bitmovin_api_sdk/account/organizations/groups/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/account/organizations/groups/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/account/organizations/groups/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
from bitmovin_api_sdk.account.organizations.groups.groups_api import GroupsApi from bitmovin_api_sdk.account.organizations.groups.tenants.tenants_api import TenantsApi from bitmovin_api_sdk.account.organizations.groups.invitations.invitations_api import InvitationsApi from bitmovin_api_sdk.account.organizations.groups....
74
100
0.905405
0
0
0
0
0
0
0
0
0
0
6398ccc3c667be7698d1809b95c494572f689685
1,268
py
Python
08.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
08.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
08.py
brianfl/project-euler
9f83a3c2da04fd0801a4a575081add665edccd5f
[ "MIT" ]
null
null
null
long_number = "73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664523874930358...
105.666667
1,016
0.932177
0
0
0
0
0
0
0
0
1,015
0.800473
639a14e502ea586296e65639c8a98f05735475db
272
py
Python
app/views.py
we-race-here/wrh-brac
6dcd6bb23c86f98896127c89b24e6dc30af9648a
[ "MIT" ]
null
null
null
app/views.py
we-race-here/wrh-brac
6dcd6bb23c86f98896127c89b24e6dc30af9648a
[ "MIT" ]
9
2022-01-13T13:11:03.000Z
2022-01-17T19:12:17.000Z
app/views.py
we-race-here/wrh-brac
6dcd6bb23c86f98896127c89b24e6dc30af9648a
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.views.generic import TemplateView from . import models, serializers class HomeView(TemplateView): template_name = 'Data.html' class FrontView(TemplateView): template_name = 'index.html'
20.923077
45
0.775735
124
0.455882
0
0
0
0
0
0
48
0.176471
639b330d716e55cdf8a6ae33248c52fa4f302a3c
755
py
Python
perceptron/gen-data.py
KellyHwong/MIT-ML
0305208956f89cb039292c7cce175852f0783336
[ "MIT" ]
15
2020-02-03T20:28:36.000Z
2021-10-05T14:11:56.000Z
perceptron/gen-data.py
KellyHwong/MIT-ML
0305208956f89cb039292c7cce175852f0783336
[ "MIT" ]
null
null
null
perceptron/gen-data.py
KellyHwong/MIT-ML
0305208956f89cb039292c7cce175852f0783336
[ "MIT" ]
10
2019-08-13T12:54:54.000Z
2021-02-10T20:24:43.000Z
import numpy as np import random N = 10 def null(a, rtol=1e-5): u, s, v = np.linalg.svd(a) rank = (s > rtol*s[0]).sum() return rank, v[rank:].T.copy() def gen_data(N, noisy=False): lower = -1 upper = 1 dim = 2 X = np.random.rand(dim, N)*(upper-lower)+lower while True: Xsa...
18.414634
78
0.531126
0
0
0
0
0
0
0
0
10
0.013245
639db7a427799c489966370121dcda273bf83fd4
4,431
py
Python
forgot_password/tests/test_settings.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
1
2017-02-09T10:17:50.000Z
2017-02-09T10:17:50.000Z
forgot_password/tests/test_settings.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
54
2016-09-07T11:01:32.000Z
2020-02-12T06:15:43.000Z
forgot_password/tests/test_settings.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
14
2016-09-20T05:36:49.000Z
2019-04-02T15:42:37.000Z
# Copyright 2018 Oursky Ltd. # # 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, ...
39.918919
77
0.679982
2,379
0.536899
0
0
2,268
0.511848
0
0
2,084
0.470323
639f69e88bb9e0f52e4c78779eac5ba9a648e432
9,213
py
Python
cosa/analyzers/bmc_temporal.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
52
2018-02-26T19:01:03.000Z
2022-02-24T08:30:00.000Z
cosa/analyzers/bmc_temporal.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
28
2018-06-07T22:18:23.000Z
2020-10-27T01:21:01.000Z
cosa/analyzers/bmc_temporal.py
zsisco/CoSA
b7a5107fcbae9b3ed3726fbcf9240b39252ef551
[ "BSD-3-Clause" ]
12
2018-08-16T20:02:46.000Z
2021-01-20T18:17:45.000Z
# Copyright 2018 Cristian Mattarei # # Licensed under the modified BSD (3-clause BSD) License. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the ...
35.709302
130
0.551069
8,036
0.872246
0
0
0
0
0
0
1,211
0.131445
63a0482e773f0b1712ad551a2e29a76da9779874
6,767
py
Python
sdk/python/pulumi_azure/blueprint/get_published_version.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/blueprint/get_published_version.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/blueprint/get_published_version.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# 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...
36.578378
192
0.661741
4,368
0.645485
493
0.072854
3,780
0.558593
0
0
2,299
0.339737
63a05e17f1457914002ddf440d5d635997035ff1
2,952
py
Python
basetrainer/scheduler/MultiStepLR.py
PanJinquan/pytorch-base-trainer
37799c948f72b2f9d3771ff469e06cdbff4a1d07
[ "MIT" ]
11
2022-01-18T10:07:52.000Z
2022-03-16T02:40:31.000Z
basetrainer/scheduler/MultiStepLR.py
PanJinquan/pytorch-base-trainer
37799c948f72b2f9d3771ff469e06cdbff4a1d07
[ "MIT" ]
null
null
null
basetrainer/scheduler/MultiStepLR.py
PanJinquan/pytorch-base-trainer
37799c948f72b2f9d3771ff469e06cdbff4a1d07
[ "MIT" ]
1
2022-01-26T06:31:29.000Z
2022-01-26T06:31:29.000Z
# -*-coding: utf-8 -*- """ @Author : panjq @E-mail : pan_jinquan@163.com @Date : 2021-07-28 15:32:44 """ import torch import torch.optim as optim import torch.nn as nn import numpy as np from .WarmUpLR import WarmUpLR from ..callbacks.callbacks import Callback class MultiStepLR(Callback): def __ini...
33.545455
97
0.572493
2,739
0.907555
0
0
0
0
0
0
952
0.315441
63a0b6c965482e6900cbc411399d6b33e24bcb3d
1,232
py
Python
common/inspect.py
skying0527/pull-Demo
5744e31e22ca27d43e04bfbce37e7af251a0fe76
[ "Apache-2.0" ]
null
null
null
common/inspect.py
skying0527/pull-Demo
5744e31e22ca27d43e04bfbce37e7af251a0fe76
[ "Apache-2.0" ]
null
null
null
common/inspect.py
skying0527/pull-Demo
5744e31e22ca27d43e04bfbce37e7af251a0fe76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import os import yaml from tools.times import timestamp from config.conf import ELEMENT_PATH, LOCATE_MODE def inspect_element(): """审查所有的元素是否正确""" start_time = timestamp() for i in os.listdir(ELEMENT_PATH): _path = os.path.join(ELEMENT_PATH, i) ...
35.2
78
0.491071
0
0
0
0
0
0
0
0
385
0.277778
63a0d5586584f64ab1bee33fc68bb0c0fc21fe84
7,201
py
Python
client/starwhale/swds/store.py
goldenxinxing/starwhale
2fbb72b0ce5e135b432120c779440e53942be3b5
[ "Apache-2.0" ]
1
2022-03-24T02:03:48.000Z
2022-03-24T02:03:48.000Z
client/starwhale/swds/store.py
goldenxinxing/starwhale
2fbb72b0ce5e135b432120c779440e53942be3b5
[ "Apache-2.0" ]
null
null
null
client/starwhale/swds/store.py
goldenxinxing/starwhale
2fbb72b0ce5e135b432120c779440e53942be3b5
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import sys import yaml import typing as t import click import requests from rich.panel import Panel from rich.pretty import Pretty from fs import open_fs from starwhale.base.store import LocalStorage from starwhale.consts import ( DEFAULT_DATASET_YAML_NAME, DEFAULT_MANIFEST_NAME, ...
33.337963
87
0.539786
6,582
0.91404
1,600
0.222191
0
0
0
0
1,205
0.167338
63a2bc2fc9589a6a626eb31088dda639a15a9368
2,578
py
Python
stx-metrics/footprint/tests/send_data_test.py
gaponcec/tools-contrib
3e0d14040eec54de969dee22919c4d54c4d7c630
[ "Apache-2.0" ]
1
2019-03-25T19:21:57.000Z
2019-03-25T19:21:57.000Z
stx-metrics/footprint/tests/send_data_test.py
gaponcec/tools-contrib
3e0d14040eec54de969dee22919c4d54c4d7c630
[ "Apache-2.0" ]
3
2019-04-03T01:45:24.000Z
2019-07-25T15:22:31.000Z
stx-metrics/footprint/tests/send_data_test.py
gaponcec/tools-contrib
3e0d14040eec54de969dee22919c4d54c4d7c630
[ "Apache-2.0" ]
7
2019-03-25T18:53:44.000Z
2020-02-18T09:17:03.000Z
#!/usr/bin/env python __author__ = "Mario Carrillo" import random import time import argparse from influxdb import InfluxDBClient INFLUX_SERVER = "" INFLUX_PORT = "" INFLUX_PASS = "" INFLUX_USER = "" def send_data(json_file): client = InfluxDBClient(INFLUX_SERVER, INFLUX_PORT, ...
24.320755
70
0.572149
0
0
0
0
0
0
0
0
504
0.1955
63a41385fdcc3fd156087362665083c0f3d04e78
1,767
py
Python
roll_the_dice/cli.py
pluralsight/tech-blog-roll-the-dice
68ec0aa01f6becaca1ab72e8aff1141e8f253eaa
[ "Apache-2.0" ]
11
2020-02-20T22:33:39.000Z
2022-03-23T11:57:50.000Z
roll_the_dice/cli.py
pluralsight/tech-blog-roll-the-dice
68ec0aa01f6becaca1ab72e8aff1141e8f253eaa
[ "Apache-2.0" ]
null
null
null
roll_the_dice/cli.py
pluralsight/tech-blog-roll-the-dice
68ec0aa01f6becaca1ab72e8aff1141e8f253eaa
[ "Apache-2.0" ]
6
2020-04-01T01:41:37.000Z
2021-11-17T11:14:53.000Z
import typer from .dice import roll, roll_from_string app = typer.Typer() @app.command("hello") def hello_world(): """our first CLI with typer! """ typer.echo("Opening blog post...") typer.launch( "https://pluralsight.com/tech-blog/python-cli-utilities-with-poetry-and-typer" ) @app.com...
25.985294
87
0.634975
0
0
0
0
1,658
0.938314
0
0
786
0.444822
63a60dfdf997ba92340c90aeb0a57c1998260210
2,311
py
Python
scripts/dfh.py
ldamewood/figures
5a6ee60d308f1726afe491469db3ec6cde9e6d5c
[ "MIT" ]
5
2015-03-06T07:49:43.000Z
2022-03-22T19:52:42.000Z
scripts/dfh.py
ldamewood/figures
5a6ee60d308f1726afe491469db3ec6cde9e6d5c
[ "MIT" ]
null
null
null
scripts/dfh.py
ldamewood/figures
5a6ee60d308f1726afe491469db3ec6cde9e6d5c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy import itertools from pymatgen.core.lattice import Lattice from pymatgen.core.operations import SymmOp from pymatgen.core.structure import Structure from crystal import fillcell, tikz_atoms def dfh(single = True, defect = False): if defect: single = False a = 5.43 ...
33.492754
100
0.603635
0
0
0
0
0
0
0
0
142
0.061445
63a6da93520ef33e9f9ab1ed832d591668deed60
3,458
py
Python
instasave/__main__.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
1
2020-07-05T19:42:44.000Z
2020-07-05T19:42:44.000Z
instasave/__main__.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
null
null
null
instasave/__main__.py
hnrkcode/InstaSave
81dd1638a20d8191566ad30772f652a6781d6c81
[ "MIT" ]
2
2019-09-10T20:21:35.000Z
2019-09-19T09:43:03.000Z
import argparse import os.path from .instagram.post import Downloader from .instagram.url import URLScraper from .utils.webaddr import get_url, validate_url from .web.client import HTTPHeaders from .web.geckoloader import GeckoLoader def get_arguments(): """Get arguments passed to the program by the user.""" ...
27.664
79
0.628687
0
0
0
0
0
0
0
0
1,246
0.360324
63aa46352916f59092337f4bb1b5c13be2e2644b
649
py
Python
modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd-airflow/src/dbnd_airflow/web/airflow_app.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import logging def create_app(config=None, testing=False): from airflow.www_rbac import app as airflow_app app, appbuilder = airflow_app.create_app(config=config, testing=testing) # only now we can load view.. # this import might causes circular dependency if placed above from dbnd_airflow.airfl...
28.217391
76
0.753467
0
0
0
0
0
0
0
0
130
0.200308
63ac6d028038f4c5c0f57741dd002fb5b4dacbf1
3,793
py
Python
runway/lookups/handlers/random_string.py
onicagroup/runway
d50cac0e4878ff0691943029aa4f5b85d426a3b0
[ "Apache-2.0" ]
134
2018-02-26T21:35:23.000Z
2022-03-03T00:30:27.000Z
runway/lookups/handlers/random_string.py
onicagroup/runway
d50cac0e4878ff0691943029aa4f5b85d426a3b0
[ "Apache-2.0" ]
937
2018-03-08T22:04:35.000Z
2022-03-30T12:21:47.000Z
runway/lookups/handlers/random_string.py
onicagroup/runway
d50cac0e4878ff0691943029aa4f5b85d426a3b0
[ "Apache-2.0" ]
70
2018-02-26T23:48:11.000Z
2022-03-02T18:44:30.000Z
"""Generate a random string.""" # pyright: reportIncompatibleMethodOverride=none from __future__ import annotations import logging import secrets import string from typing import TYPE_CHECKING, Any, Callable, List, Sequence, Union from typing_extensions import Final, Literal from ...utils import BaseModel from .base...
30.58871
80
0.631426
3,332
0.87846
0
0
2,925
0.771157
0
0
1,001
0.263907
63adc83e9b99bdc20e56c3462b56c6b2c4cdbcd3
4,523
py
Python
FinBot/intent/Loki_Exchange.py
Lanlanluuu/LokiHub
aae3efb566d2383e78eaa8dc1e8b3f1bb097f2a6
[ "MIT" ]
17
2020-11-25T07:40:18.000Z
2022-03-07T03:29:18.000Z
FinBot/intent/Loki_Exchange.py
Lanlanluuu/LokiHub
aae3efb566d2383e78eaa8dc1e8b3f1bb097f2a6
[ "MIT" ]
8
2020-12-18T13:23:59.000Z
2021-10-03T21:41:50.000Z
FinBot/intent/Loki_Exchange.py
Lanlanluuu/LokiHub
aae3efb566d2383e78eaa8dc1e8b3f1bb097f2a6
[ "MIT" ]
43
2020-12-02T09:03:57.000Z
2021-12-23T03:30:25.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ Loki module for Exchange Input: inputSTR str, utterance str, args str[], resultDICT dict Output: resultDICT dict """ DEBUG_Exchange = True userDefinedDICT = {"歐元":"EUR", ...
28.446541
78
0.516914
0
0
0
0
0
0
0
0
1,777
0.356041
63ae1f61f819018618faf981a6a8c7128684233e
1,396
py
Python
venv/Lib/site-packages/win32comext/directsound/test/ds_record.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
150
2021-11-02T05:31:51.000Z
2022-03-24T06:22:22.000Z
venv/Lib/site-packages/win32comext/directsound/test/ds_record.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
4
2021-12-01T11:55:58.000Z
2022-02-24T16:14:37.000Z
venv/Lib/site-packages/win32comext/directsound/test/ds_record.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
33
2021-11-03T00:29:41.000Z
2022-03-15T13:15:56.000Z
import pywintypes import struct import win32event, win32api import os import win32com.directsound.directsound as ds def wav_header_pack(wfx, datasize): return struct.pack( "<4sl4s4slhhllhh4sl", "RIFF", 36 + datasize, "WAVE", "fmt ", 16, wfx.wFormatTag, ...
23.661017
75
0.722779
0
0
0
0
0
0
0
0
88
0.063037
63af8fc8ef5f415eb14f6ce6760e2d9eadfd7966
5,322
py
Python
_unittests/ut_df/test_pandas_groupbynan.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
20
2017-09-23T03:23:13.000Z
2022-02-21T09:10:48.000Z
_unittests/ut_df/test_pandas_groupbynan.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
19
2017-09-24T17:10:39.000Z
2021-12-29T11:02:58.000Z
_unittests/ut_df/test_pandas_groupbynan.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
7
2018-11-09T08:15:20.000Z
2021-09-17T07:39:44.000Z
# coding: utf-8 """ @brief test log(time=1s) """ import unittest import pandas import numpy from scipy.sparse.linalg import lsqr as sparse_lsqr from pyquickhelper.pycode import ExtTestCase, ignore_warnings from pandas_streaming.df import pandas_groupby_nan, numpy_types class TestPandasHelper(ExtTestCase): d...
37.216783
85
0.485908
4,996
0.938568
0
0
395
0.074206
0
0
632
0.11873
63afd781a3f83b4472e5cc0102407a1faccfc8c4
6,769
py
Python
ros/src/tl_detector/tl_detector.py
irt24/Udacity-CarND-FinalProject
0516a39a544f5a90c3b12b44f7ae200d53d8c375
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
irt24/Udacity-CarND-FinalProject
0516a39a544f5a90c3b12b44f7ae200d53d8c375
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
irt24/Udacity-CarND-FinalProject
0516a39a544f5a90c3b12b44f7ae200d53d8c375
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
36.989071
108
0.646033
6,193
0.914906
0
0
0
0
0
0
2,678
0.395627
63aff24134f0357f39793f17fa4ba1b4b87cbb8d
1,601
py
Python
initGame.py
Sabsterrexx/PingPongGame
61e22838e3f48fcb7ffb4d83cf7c5d793766110b
[ "MIT" ]
null
null
null
initGame.py
Sabsterrexx/PingPongGame
61e22838e3f48fcb7ffb4d83cf7c5d793766110b
[ "MIT" ]
null
null
null
initGame.py
Sabsterrexx/PingPongGame
61e22838e3f48fcb7ffb4d83cf7c5d793766110b
[ "MIT" ]
null
null
null
#Import required Modules: import pygame import constants from paddle import Paddle from ball import Ball from score import Score from text import Text from screenState import ScreenState #This function basically executes everything in the "screenState" module's class def init(): #Initialize all the c...
26.245902
123
0.658339
0
0
0
0
0
0
0
0
536
0.334791
63b1672cda5a034b03a601fa6667760f80b9ca78
1,965
py
Python
minmax.py
patello/subtracting_squares
53ecfbfe96e2ddb9cb82307bae9c779a4d7d7b4d
[ "MIT" ]
null
null
null
minmax.py
patello/subtracting_squares
53ecfbfe96e2ddb9cb82307bae9c779a4d7d7b4d
[ "MIT" ]
null
null
null
minmax.py
patello/subtracting_squares
53ecfbfe96e2ddb9cb82307bae9c779a4d7d7b4d
[ "MIT" ]
null
null
null
class Game: def __init__(self,span=[0,100],sub_fun="Square"): self.span=span self.func_dict = { "Square":lambda x: pow(x,2), "Odd":lambda x: 1 + (x-1)*2, "Even":lambda x: x*2, "Identity":lambda x: x, "Logarithm":lambda x: pow(10,x-1) ...
50.384615
124
0.603562
1,864
0.948601
0
0
0
0
0
0
897
0.456489
63b20249148e887bf399bbe4138aaff1329b132a
983
py
Python
fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
fwl-automation-decisions/domain/src/domain/model/firewall/Firewall.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
from .FirewallName import FirewallName from .FirewallUUID import FirewallUUID from .FirewallAccessLayer import FirewallAccessLayer class Firewall(object): def __init__(self, uuid: FirewallUUID, name: FirewallName, access_layer: FirewallAccessLayer): self.uuid = uuid self.name = name self....
23.97561
98
0.670397
849
0.863683
0
0
452
0.459817
0
0
0
0
63b23605e301a71e7c5288370291d963f9333dd6
3,479
py
Python
other_scripts/check_status.py
seyros/python_training
15a5a3fa471d8ff63ccdd03c13bd09997a8b5794
[ "Apache-2.0" ]
null
null
null
other_scripts/check_status.py
seyros/python_training
15a5a3fa471d8ff63ccdd03c13bd09997a8b5794
[ "Apache-2.0" ]
null
null
null
other_scripts/check_status.py
seyros/python_training
15a5a3fa471d8ff63ccdd03c13bd09997a8b5794
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'ivanov' import pymysql # соединяемся с базой данных connection = pymysql.connect(host="localhost", user="root", passwd="1112223334", db="testdb", charset='utf8', cursorclass=pymysql.cursors.DictCursor) try: with connection.cursor() as cursor: #create new record # ...
89.205128
1,360
0.678068
0
0
0
0
0
0
0
0
2,920
0.828604
63b3ca6cdf03796cdc1925b2b477724000dd42e8
3,461
py
Python
inria/helloworld/datamodules.py
hernanlira/inria-anomaly_detection
f1dd980f7245c388f2ab583083ee72fb64d60a17
[ "MIT" ]
null
null
null
inria/helloworld/datamodules.py
hernanlira/inria-anomaly_detection
f1dd980f7245c388f2ab583083ee72fb64d60a17
[ "MIT" ]
null
null
null
inria/helloworld/datamodules.py
hernanlira/inria-anomaly_detection
f1dd980f7245c388f2ab583083ee72fb64d60a17
[ "MIT" ]
null
null
null
from torchvision.datasets import MNIST from torchvision import transforms import pytorch_lightning as pl from torch.utils.data import DataLoader, random_split from multiprocessing import cpu_count from typing import Any, Optional, Union from pl_bolts.datamodules import CIFAR10DataModule from pl_bolts.transforms.datas...
36.431579
122
0.647501
3,001
0.86709
0
0
0
0
0
0
322
0.093037
63b5c11e95ca01d34e674cc2e9e39d8f57bab66d
9,678
py
Python
ml3d/tf/modules/pointnet.py
eiiijiiiy/Open3D-ML
2a04231df0be39e2b8030e480d342cee5574fb9a
[ "MIT" ]
null
null
null
ml3d/tf/modules/pointnet.py
eiiijiiiy/Open3D-ML
2a04231df0be39e2b8030e480d342cee5574fb9a
[ "MIT" ]
null
null
null
ml3d/tf/modules/pointnet.py
eiiijiiiy/Open3D-ML
2a04231df0be39e2b8030e480d342cee5574fb9a
[ "MIT" ]
null
null
null
import tensorflow as tf from typing import List from ..utils.tf_utils import gen_CNN from ...utils import MODEL from ..utils.pointnet import pointnet2_utils class Pointnet2MSG(tf.keras.layers.Layer): def __init__( self, in_channels=6, use_xyz=True, SA_config={ ...
36.520755
103
0.515189
9,323
0.963319
0
0
0
0
0
0
2,099
0.216884
63b69e49a561a7a7f6b1bf9ff48c5966ebd4c9f7
1,374
py
Python
utils/config.py
PierreHao/YouGraph
ae8cf5d5bb544f64ee206bcba07ece66d49e00e3
[ "MIT" ]
18
2021-06-16T07:34:58.000Z
2022-03-22T11:52:20.000Z
utils/config.py
SuperXiang/YouGraph
fe3dcc77ba901893f2ffa6ae8dd773320ac5f862
[ "MIT" ]
1
2021-06-16T17:04:33.000Z
2021-06-22T18:53:08.000Z
utils/config.py
SuperXiang/YouGraph
fe3dcc77ba901893f2ffa6ae8dd773320ac5f862
[ "MIT" ]
4
2021-07-08T02:09:27.000Z
2022-03-31T01:08:05.000Z
import argparse import json from easydict import EasyDict def get_args(): argparser = argparse.ArgumentParser(description=__doc__) argparser.add_argument( '-c', '--config', metavar='C', default=None, help='The Configuration file') argparser.add_argument( '-i', '--id...
24.981818
66
0.636099
0
0
0
0
0
0
0
0
305
0.22198
63b74e1885d1242860e5b1d4ed405f1ff5699ee2
1,887
py
Python
data_prep/train_val_test_splitter.py
GIT-chandra/DeReflectionNet
e214f8574c5d018a8568145cbbe7a78b41026c3b
[ "MIT" ]
null
null
null
data_prep/train_val_test_splitter.py
GIT-chandra/DeReflectionNet
e214f8574c5d018a8568145cbbe7a78b41026c3b
[ "MIT" ]
1
2019-03-04T06:25:16.000Z
2019-03-13T09:29:11.000Z
data_prep/train_val_test_splitter.py
GIT-chandra/DeReflectionNet
e214f8574c5d018a8568145cbbe7a78b41026c3b
[ "MIT" ]
null
null
null
import shutil import numpy as np ALL_SYNTHS_LIST = 'synth_imgs.txt' TRAIN_IMAGES_LIST = 'train_imgs.txt' VAL_IMAGES_LIST = 'val_imgs.txt' TEST_IMAGES_LIST = 'test_imgs.txt' TRAIN_STOP = 342000 VAL_STOP = TRAIN_STOP + 38000 ''' 390000 examples : 342000 train and 38000 val (90/10 splits on 380000), 10000 test ''' wi...
34.944444
82
0.606783
0
0
0
0
0
0
0
0
519
0.27504
63b7a45ec105c6ba1c889efaafdedd671e56a63a
803
py
Python
example/fastapi/models.py
cnjlq84/oidc-op
c7ab007327cc1a5e69abba7699c0be5f29534049
[ "Apache-2.0" ]
31
2020-09-15T21:18:05.000Z
2022-02-17T02:50:04.000Z
example/fastapi/models.py
cnjlq84/oidc-op
c7ab007327cc1a5e69abba7699c0be5f29534049
[ "Apache-2.0" ]
106
2021-03-26T17:12:54.000Z
2022-03-11T07:19:46.000Z
example/fastapi/models.py
cnjlq84/oidc-op
c7ab007327cc1a5e69abba7699c0be5f29534049
[ "Apache-2.0" ]
13
2020-02-12T16:31:01.000Z
2022-03-03T09:54:44.000Z
from typing import List from typing import Optional from pydantic import BaseModel class WebFingerRequest(BaseModel): rel: Optional[str] = 'http://openid.net/specs/connect/1.0/issuer' resource: str class AuthorizationRequest(BaseModel): acr_values: Optional[List[str]] claims: Optional[dict] cla...
25.09375
69
0.711083
713
0.88792
0
0
0
0
0
0
44
0.054795
63b7c7a23f4c13a732afba3bcbd544198bdcf67b
3,957
py
Python
fnet/functions.py
HelmholtzAI-Consultants-Munich/pytorch_fnet
879784bd0f8e76ab8f0ed8de4235180a316e12d8
[ "Unlicense" ]
null
null
null
fnet/functions.py
HelmholtzAI-Consultants-Munich/pytorch_fnet
879784bd0f8e76ab8f0ed8de4235180a316e12d8
[ "Unlicense" ]
null
null
null
fnet/functions.py
HelmholtzAI-Consultants-Munich/pytorch_fnet
879784bd0f8e76ab8f0ed8de4235180a316e12d8
[ "Unlicense" ]
null
null
null
import importlib import json import os import pdb import sys import fnet import pandas as pd import tifffile import numpy as np from fnet.transforms import normalize def pearson_loss(x, y): #x = output #y = target vx = x - torch.mean(x) vy = y - torch.mean(y) cost = torch.sum(vx * vy) / (torch.sq...
30.674419
97
0.635583
0
0
0
0
0
0
0
0
937
0.236796
63b7ef516ba9eb132540a0353455cfa47e2e1ffb
3,151
py
Python
scrape_mars.py
neilgbp/MissiontoMarsWebScrapingHW
4afaf6a30cb03111ed53645afaedd3081cb7bbb7
[ "ADSL" ]
null
null
null
scrape_mars.py
neilgbp/MissiontoMarsWebScrapingHW
4afaf6a30cb03111ed53645afaedd3081cb7bbb7
[ "ADSL" ]
null
null
null
scrape_mars.py
neilgbp/MissiontoMarsWebScrapingHW
4afaf6a30cb03111ed53645afaedd3081cb7bbb7
[ "ADSL" ]
null
null
null
import os import pandas as pd import pymongo import requests import time from splinter import Browser from bs4 import BeautifulSoup from selenium import webdriver print(os.path.abspath("chromedriver.exe")) def init_browser(): executable_path = {"executable_path": os.path.abspath("chromedriver.exe")} return B...
32.484536
109
0.663916
0
0
0
0
0
0
0
0
835
0.264995
63b9f24ae6a49d0ba7a1154d3162616044c52214
3,989
py
Python
indy_node/test/rich_schema/test_rich_schemas_disabled_by_default.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
627
2017-07-06T12:38:08.000Z
2022-03-30T13:18:43.000Z
indy_node/test/rich_schema/test_rich_schemas_disabled_by_default.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
580
2017-06-29T17:59:57.000Z
2022-03-29T21:37:52.000Z
indy_node/test/rich_schema/test_rich_schemas_disabled_by_default.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
704
2017-06-29T17:45:34.000Z
2022-03-30T07:08:58.000Z
import json import pytest from indy_common.constants import JSON_LD_CONTEXT, RS_CONTEXT_TYPE_VALUE, RS_ID, GET_RICH_SCHEMA_OBJECT_BY_ID, \ GET_RICH_SCHEMA_OBJECT_BY_METADATA, RS_NAME, RS_VERSION, RS_TYPE from indy_node.test.api.helper import sdk_build_rich_schema_request, sdk_write_rich_schema_object_and_check fr...
55.402778
115
0.670093
0
0
0
0
3,143
0.787917
0
0
264
0.066182
63bc76920a70004a6435e13b986e5d039044a30a
613
py
Python
__about__.py
a232319779/python_mmdt
66458e08bbf6cc5961a3e4134f0969aaa4f21b71
[ "MIT" ]
5
2021-02-01T07:23:15.000Z
2022-02-21T11:05:50.000Z
__about__.py
a232319779/python_mmdt
66458e08bbf6cc5961a3e4134f0969aaa4f21b71
[ "MIT" ]
null
null
null
__about__.py
a232319779/python_mmdt
66458e08bbf6cc5961a3e4134f0969aaa4f21b71
[ "MIT" ]
1
2021-02-01T07:23:17.000Z
2021-02-01T07:23:17.000Z
# -*- coding: utf-8 -*- # @Time : 2021/01/05 22:53:23 # @Author : ddvv # @Site : https://ddvvmmzz.github.io # @File : about.py # @Software: Visual Studio Code __all__ = [ "__author__", "__copyright__", "__email__", "__license__", "__summary__", "__title__", "__uri__", "__ver...
21.137931
53
0.646003
0
0
0
0
0
0
0
0
415
0.676998
63bce965f7a1533a26e799f32a00a0a7b1005f81
135
py
Python
img_transforms.py
martinpflaum/image-augmentation-with-point-clouds
453947520bd74a0b7ae959c1b59e9776b9dfe7a2
[ "MIT" ]
null
null
null
img_transforms.py
martinpflaum/image-augmentation-with-point-clouds
453947520bd74a0b7ae959c1b59e9776b9dfe7a2
[ "MIT" ]
null
null
null
img_transforms.py
martinpflaum/image-augmentation-with-point-clouds
453947520bd74a0b7ae959c1b59e9776b9dfe7a2
[ "MIT" ]
null
null
null
import random from torchvision.transforms import functional as F from torchvision.transforms import transforms from PIL import Image
33.75
51
0.851852
0
0
0
0
0
0
0
0
0
0
63bd9e9b810c61a3a53d293b5e2aa48bf52f2c4e
13,332
py
Python
sourse/ui/modules/current_settings.py
LeaveMyYard/BitmexGridTrader
e7b8c4b1bfdc3dff6b02c3492ced9fb086e1519a
[ "MIT" ]
28
2020-08-20T13:17:51.000Z
2022-03-10T19:41:41.000Z
sourse/ui/modules/current_settings.py
LeaveMyYard/BitmexGridTrader
e7b8c4b1bfdc3dff6b02c3492ced9fb086e1519a
[ "MIT" ]
5
2020-09-01T03:14:40.000Z
2022-01-01T11:39:00.000Z
sourse/ui/modules/current_settings.py
LeaveMyYard/BitmexGridTrader
e7b8c4b1bfdc3dff6b02c3492ced9fb086e1519a
[ "MIT" ]
16
2020-11-02T10:35:11.000Z
2021-12-08T14:05:24.000Z
from __future__ import annotations from sourse.ui.modules.base_qdockwidget_module import BaseUIModule from PyQt5 import QtWidgets, QtCore, QtGui from sourse.marketmaker import MarketMaker import typing import json class InputFormat: def __init__( self, widget_type: typing.Type[QtWidgets.QWidget],...
35.93531
100
0.586559
13,122
0.983363
0
0
4,016
0.300959
0
0
1,305
0.097797
63be5f6fc2edffc16d8c259349723231c31bc671
613
py
Python
lyrics.py
JamesK2754/COVIDBot
b4ffaa21873baa1f0c5dfd5b4d5ebb30bfd8d1a4
[ "MIT" ]
null
null
null
lyrics.py
JamesK2754/COVIDBot
b4ffaa21873baa1f0c5dfd5b4d5ebb30bfd8d1a4
[ "MIT" ]
null
null
null
lyrics.py
JamesK2754/COVIDBot
b4ffaa21873baa1f0c5dfd5b4d5ebb30bfd8d1a4
[ "MIT" ]
null
null
null
import lyricsgenius geniustoken = "Akf1AHXpbqaKHSQ06hesk8q1urZkHWJ334bzLr1SwZ1BBPSMGUm3NcbcbDR8ye7Z" genius = lyricsgenius.Genius(geniustoken) songname = input("") def lysearch(songname): import lyricsgenius geniustoken = "Akf1AHXpbqaKHSQ06hesk8q1urZkHWJ334bzLr1SwZ1BBPSMGUm3NcbcbDR8ye7Z" genius = lyr...
36.058824
85
0.722675
0
0
0
0
0
0
0
0
156
0.254486
63bef9d21b68c3b40a658cb21bf53511e46c9e39
987
py
Python
network.py
wildarch/aiai
765fb67b42359f8fa0b530d5baf13714de069e90
[ "MIT" ]
1
2020-12-23T12:47:41.000Z
2020-12-23T12:47:41.000Z
network.py
wildarch/aiai
765fb67b42359f8fa0b530d5baf13714de069e90
[ "MIT" ]
null
null
null
network.py
wildarch/aiai
765fb67b42359f8fa0b530d5baf13714de069e90
[ "MIT" ]
null
null
null
import numpy as np import numpy.random as rand from functools import reduce class Network: def __init__(self, layer_sizes): # layer_sizes: list of numbers representing number of neurons per layer # Create a numpy array of biases for each layer except the (first) input layer self.biases =...
28.2
109
0.663627
704
0.713273
0
0
0
0
0
0
371
0.375887
63c00642ff2e4d391cdfd97b2502db83f3e78004
276
py
Python
al_helper/__init__.py
Taehun/al_helper
8e304a69359e3807564bb15954df2994e0bb8897
[ "Apache-2.0" ]
null
null
null
al_helper/__init__.py
Taehun/al_helper
8e304a69359e3807564bb15954df2994e0bb8897
[ "Apache-2.0" ]
null
null
null
al_helper/__init__.py
Taehun/al_helper
8e304a69359e3807564bb15954df2994e0bb8897
[ "Apache-2.0" ]
null
null
null
"""Let's score the unlabeled data for the active learning""" from al_helper.apis import build from al_helper.helpers import ALHelper, ALHelperFactory, ALHelperObjectDetection __version__ = "0.1.0" __all__ = ["build", "ALHelper", "ALHelperFactory", "ALHelperObjectDetection"]
39.428571
80
0.786232
0
0
0
0
0
0
0
0
126
0.456522
63c1e56c492a20f0ed2af22f56c19c8afeb33a3d
568
py
Python
flocka/extensions.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
1
2018-10-09T14:09:12.000Z
2018-10-09T14:09:12.000Z
flocka/extensions.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
11
2017-03-22T15:26:05.000Z
2017-06-01T20:17:52.000Z
flocka/extensions.py
sleekslush/flocka
3d1c0ae9bf82b7b8afb03494ee6dd8488157fe68
[ "BSD-2-Clause" ]
null
null
null
from flask_cache import Cache from flask_debugtoolbar import DebugToolbarExtension from flask_login import LoginManager from flask_assets import Environment from flask_migrate import Migrate from flocka.models import User # Setup flask cache cache = Cache() # Init flask assets assets_env = Environment() # Debug Too...
19.586207
52
0.806338
0
0
0
0
83
0.146127
0
0
87
0.153169
63c1f522219bcc2dba5b4f17eb780f21296ad3d6
90
py
Python
django_rest_auth_embedded/tests/__init__.py
Volkova-Natalia/django_rest_auth_embedded
43fe1d23f59332a7794365348989599cde44af6e
[ "MIT" ]
null
null
null
django_rest_auth_embedded/tests/__init__.py
Volkova-Natalia/django_rest_auth_embedded
43fe1d23f59332a7794365348989599cde44af6e
[ "MIT" ]
1
2021-02-26T16:56:31.000Z
2021-03-24T09:47:43.000Z
django_rest_auth_email_confirm_reset/tests/__init__.py
Volkova-Natalia/django_rest_auth_email_confirm_reset
781e63fd97606e48d69acf84fc6bb011e47b10ca
[ "MIT" ]
null
null
null
from .models import * from .urls import * from .views import * from .integration import *
18
26
0.733333
0
0
0
0
0
0
0
0
0
0
63c2e90768ca94858d6102fd8adcdc5f1544bdda
137
py
Python
pycwr/__init__.py
1271756664/study
8013dd6c597618949c5fcbf86e38502525a8136d
[ "MIT" ]
144
2019-11-27T14:36:41.000Z
2022-02-23T08:21:17.000Z
pycwr/__init__.py
1271756664/study
8013dd6c597618949c5fcbf86e38502525a8136d
[ "MIT" ]
32
2019-11-29T10:11:53.000Z
2022-03-14T07:46:44.000Z
pycwr/__init__.py
1271756664/study
8013dd6c597618949c5fcbf86e38502525a8136d
[ "MIT" ]
57
2019-11-27T12:51:44.000Z
2022-01-29T14:50:05.000Z
from . import configure, core, draw, io, interp, retrieve, qc __all__ = ["configure", "core", "draw", "io", "interp", "qc", "retrieve"]
34.25
73
0.635036
0
0
0
0
0
0
0
0
49
0.357664
63c55b4d12d1d8ec15b4829bd9a5a98bed33f3a3
979
py
Python
app/main.py
aturX/python-swagger-docker
c05167c73205e80bd72479f215a2703565059e1c
[ "MIT" ]
null
null
null
app/main.py
aturX/python-swagger-docker
c05167c73205e80bd72479f215a2703565059e1c
[ "MIT" ]
null
null
null
app/main.py
aturX/python-swagger-docker
c05167c73205e80bd72479f215a2703565059e1c
[ "MIT" ]
1
2020-01-08T13:51:24.000Z
2020-01-08T13:51:24.000Z
import sys sys.path.append('../') # 新加入的 sys.path.append('.') # 新加入的 from flasgger import Swagger from flask import Flask from v1.sum_ab_controller import demo_sum app = Flask(__name__) # API 文档的配置 template = { "swagger": "2.0", "info": { "title": "XXX 在线API", "description": "在线API 调用测试", "contact":...
22.767442
58
0.631256
0
0
0
0
0
0
0
0
605
0.56701
63c5f609080ffa98734dc87a441cdb7f22753616
2,169
py
Python
tests/test_primary_beams.py
Song655/sdp-algorithm-reference
fc7c0da9461d5a1606ebb30ed913a44cdcd9b112
[ "Apache-2.0" ]
1
2019-10-18T13:11:01.000Z
2019-10-18T13:11:01.000Z
tests/test_primary_beams.py
Song655/sdp-algorithm-reference
fc7c0da9461d5a1606ebb30ed913a44cdcd9b112
[ "Apache-2.0" ]
1
2019-01-28T23:07:32.000Z
2019-01-28T23:07:32.000Z
tests/test_primary_beams.py
Song655/sdp-algorithm-reference
fc7c0da9461d5a1606ebb30ed913a44cdcd9b112
[ "Apache-2.0" ]
5
2018-03-27T03:30:34.000Z
2019-10-18T13:05:37.000Z
"""Unit tests for testing support """ import logging import os import unittest import numpy from astropy import units as u from astropy.coordinates import SkyCoord from arl.data.polarisation import PolarisationFrame from arl.image.operations import export_image_to_fits from arl.imaging.base import create_image_fro...
40.924528
103
0.674504
1,636
0.754265
0
0
0
0
0
0
137
0.063163
63c70a3e82f535c37cce5aff704d8df99b4e6ede
3,676
py
Python
trees/tree_to_pairwisedistance.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
30
2015-01-25T16:22:51.000Z
2022-01-20T15:56:47.000Z
trees/tree_to_pairwisedistance.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
2
2020-04-13T15:00:37.000Z
2020-09-23T12:35:59.000Z
trees/tree_to_pairwisedistance.py
johned0/EdwardsLab
ae0d8b51a579cd009b414d11224b4110ba13af66
[ "MIT" ]
24
2015-04-17T00:52:05.000Z
2021-11-26T17:50:01.000Z
""" Start with a tree file, use ete3 to create a pairwise distance for all nodes. Basically this is the distance matrix but as tuples. if we have a tree like ----A _____________|y | | | ----B ________|z | ...
34.35514
120
0.590588
0
0
0
0
0
0
0
0
2,294
0.624048
63c7b536e598facda277d873456c65962337d344
508
py
Python
src/hitachi2020_b.py
06keito/study-atcoder
c859e542079b550d19fa5e5e632e982a0dbb9578
[ "MIT" ]
1
2021-08-19T07:21:47.000Z
2021-08-19T07:21:47.000Z
src/hitachi2020_b.py
06keito/main-repository
c859e542079b550d19fa5e5e632e982a0dbb9578
[ "MIT" ]
null
null
null
src/hitachi2020_b.py
06keito/main-repository
c859e542079b550d19fa5e5e632e982a0dbb9578
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- def main(): A,B,M = map(int,input().split()) A_prise = list(map(int,input().split())) B_prise = list(map(int,input().split())) Most_low_prise = min(A_prise)+min(B_prise) for i in range(M): x,y,c = map(int,input().split()) Post_coupon_ori...
31.75
74
0.627953
0
0
0
0
0
0
0
0
54
0.106299
63c88a948245c1382a743f6e1329878390cf91ac
51,310
py
Python
gazoo_device/tests/unit_tests/utility_tests/adb_utils_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/utility_tests/adb_utils_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/utility_tests/adb_utils_test.py
dedsec-9/gazoo-device
5ed2867c258da80e53b6aae07ec7a65efe473a28
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
47.159926
80
0.717657
49,119
0.957299
0
0
48,707
0.949269
0
0
10,528
0.205184
63cacc17d61840c87378bcbce1b36a18495e24a2
1,269
py
Python
webapp/apps/dynamic/urls.py
codekansas/PolicyBrain
83c459db883536bae70cc78ca92ebdcff554ac2d
[ "MIT" ]
null
null
null
webapp/apps/dynamic/urls.py
codekansas/PolicyBrain
83c459db883536bae70cc78ca92ebdcff554ac2d
[ "MIT" ]
null
null
null
webapp/apps/dynamic/urls.py
codekansas/PolicyBrain
83c459db883536bae70cc78ca92ebdcff554ac2d
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from .views import (show_job_submitted, dynamic_input, dynamic_finished, ogusa_results, dynamic_landing, dynamic_behavioral, behavior_results, edit_dynamic_behavioral, elastic_results, dynamic_elasticities, ...
57.681818
99
0.684791
0
0
0
0
0
0
0
0
491
0.386919
63cb3e72171de82701ab61371e19e92285bb291d
8,866
py
Python
gbdtmo/gbdtmo.py
samanemami/GBDTMO
33ee163d5db4dd71dae620c8e1f8295ed33c0a24
[ "MIT" ]
2
2021-09-15T16:18:15.000Z
2022-01-12T10:35:18.000Z
gbdtmo/gbdtmo.py
samanemami/GBDTMO
33ee163d5db4dd71dae620c8e1f8295ed33c0a24
[ "MIT" ]
null
null
null
gbdtmo/gbdtmo.py
samanemami/GBDTMO
33ee163d5db4dd71dae620c8e1f8295ed33c0a24
[ "MIT" ]
null
null
null
import numpy as np import numpy.ctypeslib as npct import ctypes from .histogram import get_bins_maps from .lib_utils import * class BoostUtils: def __init__(self, lib): self.lib = lib self._boostnode = None def _set_gh(self, g, h): self.lib.SetGH(self._boostnode, g, h) def _set_b...
46.663158
108
0.518498
8,732
0.984886
0
0
0
0
0
0
539
0.060794
63cb9cfcd1d1bed86874e36912a9244d3c5563c5
443
py
Python
hold-tests/test_role_ans_dev.py
pahoughton/ansible-pahoughton
dba7c014e43fa232bea05b84f96d5b9115800089
[ "CC-BY-3.0" ]
null
null
null
hold-tests/test_role_ans_dev.py
pahoughton/ansible-pahoughton
dba7c014e43fa232bea05b84f96d5b9115800089
[ "CC-BY-3.0" ]
null
null
null
hold-tests/test_role_ans_dev.py
pahoughton/ansible-pahoughton
dba7c014e43fa232bea05b84f96d5b9115800089
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python3 # 2018-10-13 (cc) <paul4hough@gmail.com> ''' pips: - testinfra - molecule - tox ''' class test_role_ans_dev (object): ''' test_role_ans_dev useless class ''' assert packages.installed( yaml.array( pkgs[common], pkgs[os][common], ...
17.72
61
0.573363
326
0.735892
0
0
0
0
0
0
186
0.419865
63cba68bb6cb48b86439201796c5193de0beeb23
8,310
py
Python
padertorch/contrib/cb/summary.py
jensheit/padertorch
5827ec6ee768c32ae97348050846c7988b6bd5fa
[ "MIT" ]
null
null
null
padertorch/contrib/cb/summary.py
jensheit/padertorch
5827ec6ee768c32ae97348050846c7988b6bd5fa
[ "MIT" ]
null
null
null
padertorch/contrib/cb/summary.py
jensheit/padertorch
5827ec6ee768c32ae97348050846c7988b6bd5fa
[ "MIT" ]
null
null
null
import collections import torch import einops import cached_property import padertorch as pt # loss: torch.Tenso r =None, # losses: dict =None, # scalars: dict =None, # histograms: dict =None, # audios: dict =None, # images: dict =None, class ReviewSummary(collections.abc.Mapping): """ >>> review_summary...
31.240602
121
0.536221
8,065
0.970517
0
0
87
0.010469
0
0
1,780
0.2142
63cc52215ee9f6507c0099207c8677db1e3b4142
907
py
Python
venv/FlightPlan2.py
zowegoop/DroneMapping
79d8645f0050cc0114e733d16e44e354e1a959c5
[ "MIT" ]
null
null
null
venv/FlightPlan2.py
zowegoop/DroneMapping
79d8645f0050cc0114e733d16e44e354e1a959c5
[ "MIT" ]
null
null
null
venv/FlightPlan2.py
zowegoop/DroneMapping
79d8645f0050cc0114e733d16e44e354e1a959c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Rescue mission in the mountains 2 # if running locally, you need to install the djitello module # run this on your linux or mac machine # pip3 install djitello ######## PARAMETERS ########### fspeed = 117/10 # Foward Speed in cm/s (15cm/s) aspeed = 360/10 # Angular Speed Degrees/s interval ...
19.717391
61
0.701213
0
0
0
0
0
0
0
0
502
0.553473
63cd13cafbe9b72881384584902ce2c4c485f091
43,992
py
Python
ubertool/terrplant/tests/test_terrplant_unittest.py
qed-uber/ubertool
472a143e110f634afdfe03d503e5f442b1e57b86
[ "Unlicense" ]
2
2016-01-06T20:20:51.000Z
2016-03-05T13:26:19.000Z
ubertool/terrplant/tests/test_terrplant_unittest.py
qed-uber/ubertool
472a143e110f634afdfe03d503e5f442b1e57b86
[ "Unlicense" ]
21
2017-08-02T18:00:16.000Z
2019-08-20T15:57:09.000Z
ubertool/terrplant/tests/test_terrplant_unittest.py
quanted/ubertool
472a143e110f634afdfe03d503e5f442b1e57b86
[ "Unlicense" ]
null
null
null
import datetime import inspect import numpy.testing as npt import os.path import pandas as pd import pandas.util.testing as pdt import sys from tabulate import tabulate import unittest # #find parent directory and import model # parentddir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)) # sy...
49.098214
122
0.618044
43,424
0.987089
0
0
0
0
0
0
17,376
0.394981
63cd283958618a19e423133bb4fbcee1918c23d9
3,851
py
Python
mnist.py
a25765564/MLtest
03fdb97cd215fc2a1d6d584d76f74eb94ffb2266
[ "MIT" ]
null
null
null
mnist.py
a25765564/MLtest
03fdb97cd215fc2a1d6d584d76f74eb94ffb2266
[ "MIT" ]
null
null
null
mnist.py
a25765564/MLtest
03fdb97cd215fc2a1d6d584d76f74eb94ffb2266
[ "MIT" ]
null
null
null
import numpy as np import sklearn.preprocessing as prep import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data def xavier_init(fan_in,fan_out,constant = 1): low = -constant * np.sqrt(6.0 /(fan_in + fan_out)) high = constant * np.sqrt(6.0 /(fan_in + fan_out)) return tf.random_unif...
44.77907
118
0.731758
2,195
0.569982
0
0
0
0
0
0
98
0.025448
63cd37f1d19aa602021ac5d7d2664ac5f4cbcbd3
1,296
py
Python
images/migrations/0001_initial.py
Hoofeycheng/Bookmarks
f2721633cd39393f0c92993579071679bb975ab0
[ "MIT" ]
null
null
null
images/migrations/0001_initial.py
Hoofeycheng/Bookmarks
f2721633cd39393f0c92993579071679bb975ab0
[ "MIT" ]
null
null
null
images/migrations/0001_initial.py
Hoofeycheng/Bookmarks
f2721633cd39393f0c92993579071679bb975ab0
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-01-21 03:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
37.028571
149
0.604938
1,137
0.877315
0
0
0
0
0
0
183
0.141204
63cd6a4844d309d64fcae3b172caa3687fb25c61
951
py
Python
src/python/detectors/os_command_injection/os_command_injection.py
martinschaef/amazon-codeguru-reviewer-python-detectors
7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4
[ "Apache-2.0" ]
18
2022-01-27T22:50:22.000Z
2022-02-15T17:41:24.000Z
src/python/detectors/os_command_injection/os_command_injection.py
martinschaef/amazon-codeguru-reviewer-python-detectors
7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4
[ "Apache-2.0" ]
1
2022-01-31T21:36:18.000Z
2022-02-22T17:09:54.000Z
src/python/detectors/os_command_injection/os_command_injection.py
martinschaef/amazon-codeguru-reviewer-python-detectors
7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4
[ "Apache-2.0" ]
7
2022-02-10T21:50:50.000Z
2022-03-28T14:21:10.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # {fact rule=os-command-injection@v1.0 defects=1} def exec_command_noncompliant(): from paramiko import client from flask import request address = request.args.get("address") cmd = "ping -c 1 %s...
32.793103
69
0.701367
0
0
0
0
0
0
0
0
427
0.449001
63cdddd1832970e9972b2c05b624ca631cca30ea
922
py
Python
src/Dao/Parts.py
asarfara/PartCost
99b7485ad811d41ca86a61b922faf51facdabcd3
[ "MIT" ]
null
null
null
src/Dao/Parts.py
asarfara/PartCost
99b7485ad811d41ca86a61b922faf51facdabcd3
[ "MIT" ]
null
null
null
src/Dao/Parts.py
asarfara/PartCost
99b7485ad811d41ca86a61b922faf51facdabcd3
[ "MIT" ]
null
null
null
import logging import json from typing import List from src.Entity.Part import Part from datetime import date from sqlite3 import Connection class Parts: def __init__(self, file_name: str, logger: logging, connection: Connection): self.file_name = file_name self.logger = logger self.conne...
28.8125
173
0.654013
777
0.842733
0
0
0
0
0
0
240
0.260304
63d0e3d64e13f20d2c0c373757cdad7580a1300b
4,300
py
Python
src/utils/plots.py
Light4Code/tensorflow-research
392c2d7bc376f491fec68d479b130f883d6d028d
[ "MIT" ]
5
2020-02-29T16:28:55.000Z
2021-11-24T07:47:36.000Z
src/utils/plots.py
Light4Code/tensorflow-research
392c2d7bc376f491fec68d479b130f883d6d028d
[ "MIT" ]
3
2020-11-13T18:41:57.000Z
2022-02-10T01:37:51.000Z
src/utils/plots.py
Light4Code/tensorflow-research
392c2d7bc376f491fec68d479b130f883d6d028d
[ "MIT" ]
4
2020-03-24T10:50:17.000Z
2020-06-02T13:07:28.000Z
import matplotlib.pyplot as plt import numpy as np import numpy.ma as ma import utils.image_util as iu from utils.custom_types import Vector def plot_history(loss, acc, val_loss, val_acc): plt.figure(figsize=(20, 10)) plt.subplot(2, 1, 1) plt.title("Loss") plt.grid() plt.plot(loss) plt.plot(v...
31.851852
108
0.608837
0
0
0
0
0
0
0
0
293
0.06814
63d33b671fe35061f0300b274a32b66e28d0a7ac
80
py
Python
pypi_starter/__init__.py
wuhaifengdhu/pypi-starter
3ccb80dd9490f9d65b986350d82f9a20743af17f
[ "Apache-2.0" ]
null
null
null
pypi_starter/__init__.py
wuhaifengdhu/pypi-starter
3ccb80dd9490f9d65b986350d82f9a20743af17f
[ "Apache-2.0" ]
null
null
null
pypi_starter/__init__.py
wuhaifengdhu/pypi-starter
3ccb80dd9490f9d65b986350d82f9a20743af17f
[ "Apache-2.0" ]
null
null
null
""" Your application """ from submodule.main import * from main import *
11.428571
29
0.65
0
0
0
0
0
0
0
0
26
0.325
63d512d7adf908df92c2f691160d882344e7b9d4
4,190
py
Python
pocx/funcs/fofa.py
antx-code/pocx
c11d3a2bed598f21a32c29ac2b27e098e9dede96
[ "MIT" ]
9
2022-03-11T01:55:23.000Z
2022-03-26T03:10:53.000Z
pocx/funcs/fofa.py
antx-code/pocx
c11d3a2bed598f21a32c29ac2b27e098e9dede96
[ "MIT" ]
null
null
null
pocx/funcs/fofa.py
antx-code/pocx
c11d3a2bed598f21a32c29ac2b27e098e9dede96
[ "MIT" ]
1
2022-03-26T03:10:56.000Z
2022-03-26T03:10:56.000Z
import httpx import json import base64 from loguru import logger import urllib3 import ssl try: ssl_context = httpx.create_ssl_context() except: ssl_context = ssl.create_default_context() ssl_context.options ^= ssl.OP_NO_TLSv1 # Enable TLS 1.0 back urllib3.disable_warnings(urllib3.exceptions.InsecureRequestW...
30.362319
139
0.582816
3,807
0.908592
0
0
3,753
0.895704
0
0
1,721
0.41074
63d54e098e0531437161c2fb674cb796cbee3e48
4,783
py
Python
check_ec2_events.py
chartbeat/check_ec2_events
3c72752dcb2908ec8c7c4eaf7e5788c6f88ec5aa
[ "Apache-2.0" ]
2
2015-11-05T11:38:09.000Z
2019-04-21T12:22:30.000Z
check_ec2_events.py
chartbeat/check_ec2_events
3c72752dcb2908ec8c7c4eaf7e5788c6f88ec5aa
[ "Apache-2.0" ]
null
null
null
check_ec2_events.py
chartbeat/check_ec2_events
3c72752dcb2908ec8c7c4eaf7e5788c6f88ec5aa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Author: Justin Lintz # Copyright 2013 Chartbeat # http://www.chartbeat.com # # Nagios check to alert on any retiring instances or # instances that need rebooting # import getopt import sys import re from datetime import datetime from datetime import timedelta from boto.ec2 import connect_to_...
30.081761
165
0.605896
2,588
0.541083
0
0
0
0
0
0
1,443
0.301693
63d5eb9388610a04ecb9974176a0d336a0098ead
7,917
py
Python
chc/api/CFunctionCandidateContract.py
Databean/CodeHawk-C
98720753beb51e0bf5105f8f6838618292fbf55c
[ "MIT" ]
10
2020-08-17T15:35:55.000Z
2022-03-23T14:39:57.000Z
chc/api/CFunctionCandidateContract.py
kestreltechnology/CodeHawk-C
db0fa92fa630cd919f29021d464533f0e7170fed
[ "MIT" ]
31
2020-07-17T05:45:43.000Z
2021-05-29T04:49:49.000Z
chc/api/CFunctionCandidateContract.py
kestreltechnology/CodeHawk-C
db0fa92fa630cd919f29021d464533f0e7170fed
[ "MIT" ]
3
2020-06-13T05:32:34.000Z
2021-09-16T02:31:39.000Z
# ------------------------------------------------------------------------------ # CodeHawk C Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2017-2020 Kestrel Technology LLC # # Permission is hereby granted, free ...
42.336898
88
0.619679
6,459
0.815839
0
0
0
0
0
0
2,256
0.284956
63d6bfe4aff3255cd21a08c6e08c2856786259e9
1,496
py
Python
amplify/ext/phpfpm/util/version.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
308
2015-11-17T13:15:33.000Z
2022-03-24T12:03:40.000Z
amplify/ext/phpfpm/util/version.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
211
2015-11-16T15:27:41.000Z
2022-03-28T16:20:15.000Z
amplify/ext/phpfpm/util/version.py
dp92987/nginx-amplify-agent
1b2eed6eab52a82f35974928d75044451b4bedaf
[ "BSD-2-Clause" ]
80
2015-11-16T18:20:30.000Z
2022-03-02T12:47:56.000Z
# -*- coding: utf-8 -*- from amplify.agent.common.context import context from amplify.agent.common.util import subp __author__ = "Grant Hulegaard" __copyright__ = "Copyright (C) Nginx, Inc. All rights reserved." __license__ = "" __maintainer__ = "Grant Hulegaard" __email__ = "grant.hulegaard@nginx.com" VERSION_CMD ...
31.829787
76
0.590241
0
0
0
0
0
0
0
0
633
0.423128
891d4ed726e77fd986edee372d297804eaad447d
385
py
Python
protera_stability/engine/__init__.py
stepp1/protera-stability
62f70af00b9475a0b0aeba39fa6ae57f0bb25b34
[ "MIT" ]
1
2021-11-05T02:14:31.000Z
2021-11-05T02:14:31.000Z
protera_stability/engine/__init__.py
stepp1/protera-stability
62f70af00b9475a0b0aeba39fa6ae57f0bb25b34
[ "MIT" ]
null
null
null
protera_stability/engine/__init__.py
stepp1/protera-stability
62f70af00b9475a0b0aeba39fa6ae57f0bb25b34
[ "MIT" ]
null
null
null
from protera_stability.engine.default import get_cfg, setup_train, DefaultTrainer from protera_stability.engine.lightning_train import ( default_cbs, DataModule, LitProteins, TrainingPl, ) __all__ = [ "DataModule", "DefaultTrainer", "LitProteins", "TrainingPl", "default_cbs", "g...
19.25
81
0.698701
0
0
0
0
0
0
0
0
88
0.228571
891d65158f17bd525585b5367fe4ef83f22f5f0b
416
py
Python
1122.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
1122.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
1122.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
"""1122. Relative Sort Array""" class Solution(object): def relativeSortArray(self, arr1, arr2): """ :type arr1: List[int] :type arr2: List[int] :rtype: List[int] """ #### pos = {num:i for i, num in enumerate(arr2)} return sorted(arr1, key=lambda x: p...
26
62
0.526442
382
0.918269
0
0
0
0
0
0
140
0.336538
891f7d296bd8553fa96b43de039756b437874319
1,037
py
Python
src/merge_sort.py
Gsllchb/4interview-python
efec766f276039cb3766f5068c7914f31ac74aca
[ "MIT" ]
null
null
null
src/merge_sort.py
Gsllchb/4interview-python
efec766f276039cb3766f5068c7914f31ac74aca
[ "MIT" ]
null
null
null
src/merge_sort.py
Gsllchb/4interview-python
efec766f276039cb3766f5068c7914f31ac74aca
[ "MIT" ]
null
null
null
import itertools _THRESHOLD = 64 def merge_sort(arr, lo, hi): if hi - lo <= _THRESHOLD: _insert_sort(arr, lo, hi) return mi = (lo + hi) // 2 merge_sort(arr, lo, mi) merge_sort(arr, mi, hi) _merge(arr, lo, mi, hi) def _insert_sort(arr, lo, hi): for i in range(lo, hi): ...
21.163265
55
0.493732
0
0
0
0
0
0
0
0
10
0.009643
891fe67e35e33d36e5cc37b7ff0cf9fe1518755c
59,661
py
Python
code/client/munkilib/adobeutils.py
jlrgraham/munki
9e0deb754083c671f8005f05e7ec44fbe001b790
[ "Apache-2.0" ]
null
null
null
code/client/munkilib/adobeutils.py
jlrgraham/munki
9e0deb754083c671f8005f05e7ec44fbe001b790
[ "Apache-2.0" ]
null
null
null
code/client/munkilib/adobeutils.py
jlrgraham/munki
9e0deb754083c671f8005f05e7ec44fbe001b790
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # encoding: utf-8 """ adobeutils.py Utilities to enable munki to install/uninstall Adobe CS3/CS4/CS5 products using the CS3/CS4/CS5 Deployment Toolkits. """ # Copyright 2009-2014 Greg Neagle. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in co...
40.752049
80
0.593755
3,553
0.059553
0
0
0
0
0
0
18,404
0.308476
8921c8342da583a53fe7e6baf0b2a3160c459d31
52
py
Python
examples/fore.py
LyQuid12/colorgb
78addcf85f0e750ca45a7955e5008f7a8a946281
[ "MIT" ]
1
2022-01-26T10:26:24.000Z
2022-01-26T10:26:24.000Z
examples/fore.py
LyQuid12/colorgb
78addcf85f0e750ca45a7955e5008f7a8a946281
[ "MIT" ]
null
null
null
examples/fore.py
LyQuid12/colorgb
78addcf85f0e750ca45a7955e5008f7a8a946281
[ "MIT" ]
null
null
null
import colorgb print(colorgb.fore("Hi!", "green"))
13
35
0.692308
0
0
0
0
0
0
0
0
12
0.230769
892211146079eeb490107a06692355e20fadb9be
1,513
py
Python
prac/20200310/pygame_intro.py
yaroslavKonst/PythonPracticum
2215b169252b6d429f1f38e5f2295d1435256785
[ "Apache-2.0" ]
2
2020-04-10T22:09:19.000Z
2020-04-10T22:09:24.000Z
prac/20200310/pygame_intro.py
yaroslavKonst/PythonPracticum
2215b169252b6d429f1f38e5f2295d1435256785
[ "Apache-2.0" ]
null
null
null
prac/20200310/pygame_intro.py
yaroslavKonst/PythonPracticum
2215b169252b6d429f1f38e5f2295d1435256785
[ "Apache-2.0" ]
null
null
null
import sys, pygame pygame.init() world_size = width, height = 10000, 9000 speed = [2, 2] DX, DY = 0.1, 0.1 position = [width / 2, height / 2] screen_size = int(DX * width), int(DY * height) black = 0, 0, 0 screen = pygame.display.set_mode(screen_size) ball = pygame.image.load("intro_ball.gif") ballrect = ball.get_r...
29.666667
127
0.574356
0
0
0
0
0
0
0
0
16
0.010575
8922c6587dd08bd4b2be1a2477201fbaf0a8a712
18,808
py
Python
gh.py
old-beans/isaac-gh-discord-bot
4c0d704475e4e9b546e8359390f79ea4959fc2a9
[ "MIT" ]
2
2020-09-22T02:01:52.000Z
2021-03-28T05:56:59.000Z
gh.py
old-beans/gh-isaacbot
4c0d704475e4e9b546e8359390f79ea4959fc2a9
[ "MIT" ]
null
null
null
gh.py
old-beans/gh-isaacbot
4c0d704475e4e9b546e8359390f79ea4959fc2a9
[ "MIT" ]
null
null
null
#! python from airtable import Airtable import discord, fstrings, re, random, os from datetime import datetime # datetime object containing current date and time AIRTABLE_API_KEY = os.getenv('AIRTABLE_API_KEY') # stored in .env AIRTABLE_BASE_KEY = os.getenv('AIRTABLE_BASE_KEY') # stored in .env CAMPAIGN_NAME = os.g...
41.245614
129
0.621969
17,729
0.942631
0
0
0
0
0
0
5,484
0.291578
892320f63f5d2a0ca42e3afab52c7bbe19958d5f
13,620
py
Python
bilbyweb/utility/job.py
ASVO-TAO/SS18B-PLasky
a3c13b05f894fb8cebd5be381c170b8a78adb81a
[ "MIT" ]
null
null
null
bilbyweb/utility/job.py
ASVO-TAO/SS18B-PLasky
a3c13b05f894fb8cebd5be381c170b8a78adb81a
[ "MIT" ]
null
null
null
bilbyweb/utility/job.py
ASVO-TAO/SS18B-PLasky
a3c13b05f894fb8cebd5be381c170b8a78adb81a
[ "MIT" ]
null
null
null
""" Distributed under the MIT License. See LICENSE.txt for more info. """ import json import uuid from ..utility.display_names import ( OPEN_DATA, SIMULATED_DATA, BINARY_BLACK_HOLE, DYNESTY, NESTLE, EMCEE, FIXED, UNIFORM, SKIP, SUBMITTED, QUEUED, IN_PROGRESS, DRAFT,...
33.880597
114
0.602423
9,953
0.730764
0
0
0
0
0
0
3,683
0.270411
89287107bf8b41baf6a2e18560e187efeb94ad6b
574
py
Python
activities/migrations/0003_alter_currentactivitie_importance_level.py
CiganOliviu/MyWorkflow
85951c2e8ebdb3e970fcc0b3e24bd319360b852a
[ "Apache-2.0" ]
null
null
null
activities/migrations/0003_alter_currentactivitie_importance_level.py
CiganOliviu/MyWorkflow
85951c2e8ebdb3e970fcc0b3e24bd319360b852a
[ "Apache-2.0" ]
null
null
null
activities/migrations/0003_alter_currentactivitie_importance_level.py
CiganOliviu/MyWorkflow
85951c2e8ebdb3e970fcc0b3e24bd319360b852a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-04 19:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('activities', '0002_rename_currentactivity_currentactivitie'), ] operations = [ migrations.AlterField( model_name='currentactivit...
30.210526
194
0.642857
481
0.837979
0
0
0
0
0
0
241
0.419861
8928910327e7aadda89a6e0cb4b8070d90c7134b
1,209
py
Python
src/collector/wechat/wechat_utils.py
AI-xiaofour/2c
4aa40eb18868ea5eccf7b09b7e64939fb505a58c
[ "Apache-2.0" ]
null
null
null
src/collector/wechat/wechat_utils.py
AI-xiaofour/2c
4aa40eb18868ea5eccf7b09b7e64939fb505a58c
[ "Apache-2.0" ]
null
null
null
src/collector/wechat/wechat_utils.py
AI-xiaofour/2c
4aa40eb18868ea5eccf7b09b7e64939fb505a58c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Created by howie.hu at 2021/4/9. Description:微信相关通用函数 Changelog: all notable changes to this file will be documented """ from ruia import Request from src.config import Config from src.databases import MongodbManager async def get_wf_url(): """ 获取 wechat-feeds 资源链接 ...
27.477273
88
0.682382
0
0
0
0
0
0
372
0.295473
613
0.486894
892b0a91946a1df7a1b4680a474c70df84c8c932
857
py
Python
tests/v2/test_team_response_attributes.py
anbnyc/datadog-api-client-python
162bd0c6f2523a809aec08a3197e85dc74b78c21
[ "Apache-2.0" ]
null
null
null
tests/v2/test_team_response_attributes.py
anbnyc/datadog-api-client-python
162bd0c6f2523a809aec08a3197e85dc74b78c21
[ "Apache-2.0" ]
null
null
null
tests/v2/test_team_response_attributes.py
anbnyc/datadog-api-client-python
162bd0c6f2523a809aec08a3197e85dc74b78c21
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. import sys import unittest import datadog_api_client.v2 from datadog...
25.969697
108
0.733956
409
0.477246
0
0
0
0
0
0
450
0.525088
892b69c07a92d99e6dd2a8d72d712a862b76cd1f
442
py
Python
tests/unit/test_utility_item.py
luiscape/hdxscraper-worldpop
a94ea98d62645a0f2f508f227a642e7168e7281a
[ "MIT" ]
null
null
null
tests/unit/test_utility_item.py
luiscape/hdxscraper-worldpop
a94ea98d62645a0f2f508f227a642e7168e7281a
[ "MIT" ]
2
2016-03-08T15:36:27.000Z
2016-03-08T15:36:52.000Z
tests/unit/test_utility_item.py
luiscape/hdxscraper-worldpop
a94ea98d62645a0f2f508f227a642e7168e7281a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Unit tests for the item() utility function. ''' import unittest from collector.utilities.item import item class TestUtilityItem(unittest.TestCase): ''' Tests for the item() utility function. ''' def test_item_returns_correct_type(self): ''' Tests that the...
21.047619
66
0.678733
286
0.647059
0
0
0
0
0
0
228
0.515837
892b8c8a1447b39b4b49a43ec0b4a891164798d6
1,696
py
Python
open/core/scripts/writeup_profile_prompt_generate_view.py
awesome-archive/open
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
[ "MIT" ]
105
2019-06-01T08:34:47.000Z
2022-03-15T11:48:36.000Z
open/core/scripts/writeup_profile_prompt_generate_view.py
awesome-archive/open
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
[ "MIT" ]
111
2019-06-04T15:34:14.000Z
2022-03-12T21:03:20.000Z
open/core/scripts/writeup_profile_prompt_generate_view.py
awesome-archive/open
12fb6267c7d1a7e1f1c08f6112073bb0739e7ed9
[ "MIT" ]
26
2019-09-04T06:06:12.000Z
2022-01-03T03:40:11.000Z
# flake8: noqa import json import time import requests from django.conf import settings from websocket import create_connection from open.core.scripts.swarm_ml_services import get_random_prompt from open.core.writeup.constants import TEXT_GENERATION_URL """ this script's design was to compare performance behind djan...
28.266667
103
0.723467
0
0
0
0
0
0
0
0
732
0.431604
892bb5ac486bc86c9bf63c89f4326c4ac07e5e22
1,031
py
Python
utils/whatsthespotprice.py
New-Zealand-Zero/PowerMaker
df1866a838cb4b0bd1629417bf5f5111f60f1cff
[ "Apache-2.0" ]
null
null
null
utils/whatsthespotprice.py
New-Zealand-Zero/PowerMaker
df1866a838cb4b0bd1629417bf5f5111f60f1cff
[ "Apache-2.0" ]
null
null
null
utils/whatsthespotprice.py
New-Zealand-Zero/PowerMaker
df1866a838cb4b0bd1629417bf5f5111f60f1cff
[ "Apache-2.0" ]
2
2021-12-14T01:01:20.000Z
2021-12-21T07:48:50.000Z
import http.client, urllib.request, urllib.parse, urllib.error, base64, time, json, ast, datetime, math, keys import logging logging.basicConfig(filename='io.log', level=logging.INFO, format='%(asctime)s %(message)s') headers = { # Request headers 'Ocp-Apim-Subscription-Key': keys.OCP_APIM_SUBSCRIPTION_KEY, ...
29.457143
109
0.653734
0
0
0
0
0
0
0
0
290
0.28128
892d73c842c7dab435a1f0f69bb5c20db75d44dd
518
py
Python
gen/argo/events/client/__about__.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
gen/argo/events/client/__about__.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
gen/argo/events/client/__about__.py
argoproj-labs/argo-events-client-python
3d6e3dffca4a12a490c2963f4ac90c8894948bb5
[ "Apache-2.0" ]
null
null
null
"""About this package.""" __all__ = [ "__title__", "__summary__", "__uri__", "__version__", "__author__", "__email__", "__license__", "__copyright__", ] __title__ = "argo-events" __summary__ = "Community Maintained Python client for Argo Events" __uri__ = "https://github.com/argoproj-l...
20.72
70
0.685328
0
0
0
0
0
0
0
0
318
0.6139
892ea50cc3da67caa05d44561bab96944c809088
2,465
py
Python
mfctracker/management/commands/syncusers.py
kevans91/mfctracker
c86f1538229df126081331edef3bfd19c9ef1345
[ "BSD-2-Clause" ]
3
2016-10-19T05:01:31.000Z
2019-06-06T18:20:11.000Z
mfctracker/management/commands/syncusers.py
kevans91/mfctracker
c86f1538229df126081331edef3bfd19c9ef1345
[ "BSD-2-Clause" ]
3
2017-11-28T17:31:58.000Z
2021-04-12T02:37:27.000Z
mfctracker/management/commands/syncusers.py
kevans91/mfctracker
c86f1538229df126081331edef3bfd19c9ef1345
[ "BSD-2-Clause" ]
1
2020-06-26T14:05:53.000Z
2020-06-26T14:05:53.000Z
# Copyright (c) 2016-2019 Oleksandr Tymoshenko <gonzo@bluezbox.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # ...
52.446809
108
0.723732
841
0.341176
0
0
0
0
0
0
1,443
0.585396
892ff412cb0abfd15e5fd8375b604f4b8bd19d90
399
py
Python
Exercises/015.py
GuilhermeRds1921/Python3-Guanabara
24cd85b076e1074a5602e54c420bcc8e70cc1854
[ "MIT" ]
null
null
null
Exercises/015.py
GuilhermeRds1921/Python3-Guanabara
24cd85b076e1074a5602e54c420bcc8e70cc1854
[ "MIT" ]
null
null
null
Exercises/015.py
GuilhermeRds1921/Python3-Guanabara
24cd85b076e1074a5602e54c420bcc8e70cc1854
[ "MIT" ]
null
null
null
# Escreva um programa que pergunte a quantidade de Km # percorridos por um carro alugado e a quantidade de dias pelos # quais ele foi alugado. Calcule o preço a pagar, sabendo que o carro # custa R$60 por dia e R$0.15 por Km rodado. km = float(input("Quantos km percorreu?: ")) dia = int(input("Quantos dias ele foi alu...
49.875
69
0.704261
0
0
0
0
0
0
0
0
321
0.800499
893019fb8b63370b0487a73ea074042709b31d91
3,241
py
Python
utils/make_package.py
j123123/llilc
9d6a522deb6b0769e449f27a087a9d3a7ab2a255
[ "MIT" ]
1,712
2015-04-13T22:16:59.000Z
2022-03-17T18:44:42.000Z
utils/make_package.py
j123123/llilc
9d6a522deb6b0769e449f27a087a9d3a7ab2a255
[ "MIT" ]
770
2015-04-13T22:10:20.000Z
2022-03-15T01:30:06.000Z
utils/make_package.py
j123123/llilc
9d6a522deb6b0769e449f27a087a9d3a7ab2a255
[ "MIT" ]
206
2015-04-13T22:17:19.000Z
2022-02-19T12:30:19.000Z
#!/usr/bin/env python import sys import argparse import os import subprocess import platform import io import string try: # For Python >= 3.0 from urllib.request import urlopen except ImportError: # For Python < 3.0 from urllib2 import urlopen import shutil import stat def run(args): nugetFolder = ...
30.575472
81
0.650108
0
0
0
0
0
0
0
0
1,029
0.317299
8932628f1e0bc2d8c1fc917f3837c4fdac64e6f9
192
py
Python
wireapp/wireapp/doctype/mpesa_payment/mpesa_payment.py
saleemdev/wireapp
7d39d07391ddad23539cfdf38369082f708d7294
[ "MIT" ]
null
null
null
wireapp/wireapp/doctype/mpesa_payment/mpesa_payment.py
saleemdev/wireapp
7d39d07391ddad23539cfdf38369082f708d7294
[ "MIT" ]
null
null
null
wireapp/wireapp/doctype/mpesa_payment/mpesa_payment.py
saleemdev/wireapp
7d39d07391ddad23539cfdf38369082f708d7294
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Salim and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class MPESAPayment(Document): pass
21.333333
49
0.791667
35
0.182292
0
0
0
0
0
0
108
0.5625
8932d8f09ea333a4cd978f80748034ddb383b8b6
3,292
py
Python
Adventure Game.py
CodeMaster7000/Adventure-Game
7ec5e39315f342d7a4cf442caa1b0c0947bb51b6
[ "MIT" ]
null
null
null
Adventure Game.py
CodeMaster7000/Adventure-Game
7ec5e39315f342d7a4cf442caa1b0c0947bb51b6
[ "MIT" ]
null
null
null
Adventure Game.py
CodeMaster7000/Adventure-Game
7ec5e39315f342d7a4cf442caa1b0c0947bb51b6
[ "MIT" ]
null
null
null
import time import random def main(): print("You are trying to find your way to the centre of a maze where there is a pot of gold!") time.sleep(2) print("What you don't know is that this is a dangerous maze with traps and hazards.") time.sleep(2) start = input ("Do you want to enter the maze? (...
43.315789
156
0.526428
0
0
0
0
0
0
0
0
1,704
0.517618
89333b9df818e24672d6ad9bcfb169b6126774e6
2,081
py
Python
jcpdstools/view/mainwidget.py
SHDShim/JCPDSTools
4a4c1bd22a3f71c3285b5877d5d22b2702b7550c
[ "Apache-2.0" ]
3
2020-08-06T09:26:00.000Z
2021-08-10T14:13:58.000Z
jcpdstools/view/mainwidget.py
SHDShim/JCPDSTools
4a4c1bd22a3f71c3285b5877d5d22b2702b7550c
[ "Apache-2.0" ]
null
null
null
jcpdstools/view/mainwidget.py
SHDShim/JCPDSTools
4a4c1bd22a3f71c3285b5877d5d22b2702b7550c
[ "Apache-2.0" ]
null
null
null
import os from PyQt5 import QtWidgets from .qtd import Ui_MainWindow from version import __version__ from utils import SpinBoxFixStyle class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): """ Main window """ def __init__(self, parent=None): # initialization of the superclass super(...
42.469388
81
0.739068
1,943
0.933686
0
0
0
0
0
0
176
0.084575
8933583a90eda099c254b38c7fb555a1d3d870bb
4,622
py
Python
tests/unit_tests/test_tethys_services/test_admin.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
79
2015-10-05T13:13:28.000Z
2022-02-01T12:30:33.000Z
tests/unit_tests/test_tethys_services/test_admin.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
542
2015-08-12T22:11:32.000Z
2022-03-29T22:18:08.000Z
tests/unit_tests/test_tethys_services/test_admin.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
71
2016-01-16T01:03:41.000Z
2022-03-31T17:55:54.000Z
import unittest from unittest import mock from django.utils.translation import ugettext_lazy as _ from tethys_services.models import DatasetService, SpatialDatasetService, WebProcessingService, PersistentStoreService from tethys_services.admin import DatasetServiceForm, SpatialDatasetServiceForm, WebProcessingServiceF...
43.603774
118
0.720251
4,152
0.898312
0
0
0
0
0
0
548
0.118563