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
f7af32c0de7c050bf221c8fa53e7b8146120211e
11,892
py
Python
custom_components/discord_game/sensor.py
Myztillx/discord_game
d2413a41ca3918bf2836b3b577fccca86b85ff05
[ "MIT" ]
null
null
null
custom_components/discord_game/sensor.py
Myztillx/discord_game
d2413a41ca3918bf2836b3b577fccca86b85ff05
[ "MIT" ]
null
null
null
custom_components/discord_game/sensor.py
Myztillx/discord_game
d2413a41ca3918bf2836b3b577fccca86b85ff05
[ "MIT" ]
null
null
null
import asyncio import json import logging import re import homeassistant.helpers.config_validation as cv import voluptuous as vol from discord import ActivityType, Spotify, Game, Streaming, CustomActivity, Activity, Member, User from homeassistant.components.notify import PLATFORM_SCHEMA from homeassistant.const impor...
38.862745
147
0.632862
3,400
0.285906
0
0
3,141
0.264127
7,581
0.637487
958
0.080558
f7af40aed66aeeaae2505edaa30898f512812b45
329
py
Python
Mundo 1/ex_014.py
Shock3/Python_Exercicios
4420569e881b883728168aabe76b0e9f3a42597f
[ "MIT" ]
null
null
null
Mundo 1/ex_014.py
Shock3/Python_Exercicios
4420569e881b883728168aabe76b0e9f3a42597f
[ "MIT" ]
null
null
null
Mundo 1/ex_014.py
Shock3/Python_Exercicios
4420569e881b883728168aabe76b0e9f3a42597f
[ "MIT" ]
null
null
null
""" Escreva um programa que converta uma temperatura, digitando em graus Celsius e converta para graus Fahrenheit. """ celsius = int(input('Digite a temperatura: ')) fahrenheit = (celsius / 5) * 9 + 32 Kelvin = celsius + 273 print(f'A temperatura {celsius}°C em Fahrenheit é {fahrenheit}°F') print(f'E em Kevin fica {Kel...
32.9
66
0.723404
0
0
0
0
0
0
0
0
233
0.701807
f7af8bb0d4f3220811a9ca15ffd7c866a271a05f
24
py
Python
opensecrets/__init__.py
ndanielsen/py-opensecrets
b362d993fdcff6fc6a0d33ec2db75fb1da418a84
[ "MIT" ]
1
2018-02-15T03:59:13.000Z
2018-02-15T03:59:13.000Z
opensecrets/__init__.py
ndanielsen/py-opensecrets
b362d993fdcff6fc6a0d33ec2db75fb1da418a84
[ "MIT" ]
11
2018-02-14T16:23:17.000Z
2018-04-05T16:14:49.000Z
opensecrets/__init__.py
ndanielsen/py-opensecrets
b362d993fdcff6fc6a0d33ec2db75fb1da418a84
[ "MIT" ]
null
null
null
from .crpapi import CRP
12
23
0.791667
0
0
0
0
0
0
0
0
0
0
f7afb1df4dc8682c54d3708fff34533b6c3286db
2,933
py
Python
fumblr/services/imgur.py
jonoco/fumblr
cfbbea365299b9edba05c04de77cb003d03b6186
[ "MIT" ]
2
2017-04-13T02:58:24.000Z
2021-05-04T00:36:57.000Z
fumblr/services/imgur.py
jonoco/fumblr
cfbbea365299b9edba05c04de77cb003d03b6186
[ "MIT" ]
2
2020-09-09T22:10:40.000Z
2021-02-08T20:22:28.000Z
fumblr/services/imgur.py
jonoco/fumblr
cfbbea365299b9edba05c04de77cb003d03b6186
[ "MIT" ]
4
2019-07-30T12:17:55.000Z
2020-08-28T14:51:22.000Z
from fumblr.keys import IMGUR_SECRET, IMGUR_ID from imgurpython import ImgurClient, helpers import os import base64 API_URL = 'https://api.imgur.com/3/' def get_client(): """ Get an API client for Imgur Returns: Imgur client if it is available """ try: return ImgurClient(IMGUR_ID...
20.51049
83
0.57177
0
0
0
0
0
0
0
0
1,673
0.570406
f7b31ccb2c831e63f0930af029ae9e690135237c
3,584
py
Python
source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py
awslabs/quantum-ready-solution-for-drug-discovery
a015589995dc17a56bcd0da9332f63d966d08ace
[ "Apache-2.0" ]
10
2022-01-26T01:08:50.000Z
2022-03-31T03:03:44.000Z
source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py
awslabs/quantum-ready-solution-for-drug-discovery
a015589995dc17a56bcd0da9332f63d966d08ace
[ "Apache-2.0" ]
47
2022-01-26T01:27:35.000Z
2022-03-29T04:34:51.000Z
source/src/molecular-unfolding/lambda/AthenaTableLambda/app.py
awslabs/quantum-ready-solution-for-drug-discovery
a015589995dc17a56bcd0da9332f63d966d08ace
[ "Apache-2.0" ]
5
2022-02-08T02:30:11.000Z
2022-03-25T01:59:15.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import boto3 import botocore import os import logging import time import json import datetime log = logging.getLogger() log.setLevel('INFO') bucket = os.environ['BUCKET'] region = os.environ['AWS_REGION'] solu...
34.461538
265
0.677176
0
0
0
0
0
0
0
0
1,758
0.490513
f7b33150fa99668b4eb5ad17455848d84b07ab75
14,664
py
Python
osf/management/commands/populate_custom_taxonomies.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
osf/management/commands/populate_custom_taxonomies.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
osf/management/commands/populate_custom_taxonomies.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
import json import logging from django.core.management.base import BaseCommand from django.db import transaction from osf.models import AbstractProvider, PreprintProvider, Preprint, Subject from osf.models.provider import rules_to_subjects from scripts import utils as script_utils from osf.models.validators import va...
52.185053
228
0.694558
3,182
0.216994
0
0
0
0
0
0
3,819
0.260434
f7b36ab04da3147e45f62315611a09ce95152628
2,999
py
Python
examples/animated_rsh.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
1
2021-01-11T18:34:39.000Z
2021-01-11T18:34:39.000Z
examples/animated_rsh.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
null
null
null
examples/animated_rsh.py
sophiaas/e3nn
92351b9225df7aeaf70fdc124c7b0e566d4c0eda
[ "MIT" ]
null
null
null
# pylint: disable=not-callable, no-member, invalid-name, missing-docstring, line-too-long import math import os import subprocess import argparse import shutil import tqdm import plotly.graph_objs as go import torch from e3nn import o3, rsh def rsh_surface(l, m, scale, tr, rot): n = 50 a = torch.linspace(0,...
26.776786
118
0.518506
0
0
0
0
0
0
0
0
338
0.112704
f7b44e0603289410fe1b212dcf1e2a0ad54c9500
62
py
Python
errores.py
fbzavaleta/DS_Software_Stack
37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf
[ "MIT" ]
null
null
null
errores.py
fbzavaleta/DS_Software_Stack
37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf
[ "MIT" ]
null
null
null
errores.py
fbzavaleta/DS_Software_Stack
37cb42c129a6ff4e04704b90cd5b13db3ad9dfcf
[ "MIT" ]
null
null
null
# E_LEN = "No es posible operar vectores de diferente módulo"
20.666667
59
0.758065
0
0
0
0
0
0
0
0
53
0.84127
f7b491ed05c90e96397d418234149764a3bc7143
8,449
py
Python
dataset.py
gzaraunitn/TA3N
d83ae5d9c8f4452ff69dd9002bb4016a695a4be8
[ "MIT" ]
null
null
null
dataset.py
gzaraunitn/TA3N
d83ae5d9c8f4452ff69dd9002bb4016a695a4be8
[ "MIT" ]
null
null
null
dataset.py
gzaraunitn/TA3N
d83ae5d9c8f4452ff69dd9002bb4016a695a4be8
[ "MIT" ]
null
null
null
import torch.utils.data as data import os import os.path import numpy as np from numpy.random import randint import torch from colorama import init from colorama import Fore, Back, Style import random from os import listdir from os.path import join, splitext import numpy as np import torch import torch.nn.functiona...
34.345528
142
0.610486
7,916
0.936916
0
0
191
0.022606
0
0
734
0.086874
f7b50b715b179630c9fcdafb1ce4cd54b3be0ee5
423
py
Python
edm_web1/middleware/errors.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
edm_web1/middleware/errors.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
edm_web1/middleware/errors.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.http import HttpResponseForbidden from django.template import loader from django.utils.translation import ugettext_lazy as _ # 普通用户 def _requred_forbid(msg): t = loader.get_template('limit_ip.html') content = t.render({'message': msg }) return HttpResponseForbidden(cont...
26.4375
55
0.754137
0
0
0
0
0
0
0
0
125
0.273523
f7b55905ea97e096b70cfda1b4ce991e067b06eb
151
py
Python
data/windows/dr16/mask.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
5
2019-04-11T13:35:24.000Z
2019-11-14T06:12:51.000Z
data/windows/dr16/mask.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
null
null
null
data/windows/dr16/mask.py
dnidever/apogee
83ad7496a0b4193df9e2c01b06dc36cb879ea6c1
[ "BSD-3-Clause" ]
5
2018-09-20T22:07:43.000Z
2021-01-15T07:13:38.000Z
from apogee.aspcap import aspcap from apogee.aspcap import mask els=aspcap.elems() for el in els[0]: mask.mkmask(el,globalmask='mask_v02_aspcap.txt')
25.166667
66
0.788079
0
0
0
0
0
0
0
0
21
0.139073
f7b6cec7ff18c898066933b6660bdaa93907b21d
7,368
py
Python
dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py
anonymous-submission000/mobo
090f774d742c7155c5e5ba01c10e7db7b93b6a0a
[ "MIT" ]
1
2022-02-17T08:50:47.000Z
2022-02-17T08:50:47.000Z
dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py
anonymous-submission000/mobo
090f774d742c7155c5e5ba01c10e7db7b93b6a0a
[ "MIT" ]
null
null
null
dragonfly/opt/unittest_cp_random_multiobjective_optimiser.py
anonymous-submission000/mobo
090f774d742c7155c5e5ba01c10e7db7b93b6a0a
[ "MIT" ]
null
null
null
""" Unit tests for Random CP optimiser on Cartesian product domains. -- [email protected] """ # pylint: disable=invalid-name # pylint: disable=abstract-class-little-used import os from . import random_multiobjective_optimiser from ..exd.cp_domain_utils import get_raw_point_from_processed_point, \ load_co...
48.794702
120
0.621607
6,532
0.886536
0
0
1,356
0.184039
0
0
1,448
0.196526
f7b7563d85b1f23ad406817127e2c0f401a6930a
2,817
py
Python
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/apps/app_manager/app_schemas/casedb_schema.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
from corehq import toggles from corehq.apps.app_manager.app_schemas.case_properties import ( ParentCasePropertyBuilder, get_usercase_properties, ) from corehq.apps.app_manager.const import USERCASE_TYPE from corehq.apps.app_manager.util import is_usercase_in_use from corehq.apps.data_dictionary.util import get_...
39.125
104
0.635428
0
0
0
0
0
0
0
0
730
0.259141
f7b75acf0297c3ab2601bc579ad2b3528994326d
28
py
Python
python/testData/keywordCompletion/noMatchInCondition.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/keywordCompletion/noMatchInCondition.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/keywordCompletion/noMatchInCondition.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
matches = True if mat<caret>
14
14
0.75
0
0
0
0
0
0
0
0
0
0
f7b8c19ee74b54f26fc920af5e0e656df23e85a5
3,597
py
Python
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
bookshelf/bookshelf/model_aerospike.py
fakeskimo/as2bt
0872192e703a2992dea7bee2bf2544727d6094ee
[ "Apache-2.0" ]
null
null
null
import math import aerospike from aerospike import predicates as p from aerospike import exception as ex from flask import current_app aerospike_host = current_app.config['AEROSPIKE_HOST'] aerospike_port = current_app.config['AEROSPIKE_PORT'] namespace = current_app.config['AEROSPIKE_NAMESPACE'] set_name = current_...
22.341615
96
0.626633
0
0
0
0
0
0
0
0
947
0.263275
f7b8e6d755230cb8c58e980bba16ad5edecee7d7
1,437
py
Python
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
examples/EC2.py
nimRobotics/fnirslib
0273c0da5f4a41d7cf4dac0fc9686c38f2c7b0cd
[ "MIT" ]
null
null
null
""" author: @nimrobotics description: calculates the effective connectivity between regions and plots them """ import numpy as np import scipy.io import glob import sys sys.path.append('../utils') from plots import plotData dir = "./process3/" #directory of the data outdir = 'process3/' #directory to save the plots r...
31.933333
133
0.659708
0
0
0
0
0
0
0
0
680
0.473208
f7b9749cf050209379cfad2f528020cbb5090d82
263
py
Python
feed/models.py
Lisgevan/DJANGO-101-PROJECT-COPY
01655b30682efd435d91e85223af0fd6186e6a59
[ "MIT" ]
null
null
null
feed/models.py
Lisgevan/DJANGO-101-PROJECT-COPY
01655b30682efd435d91e85223af0fd6186e6a59
[ "MIT" ]
null
null
null
feed/models.py
Lisgevan/DJANGO-101-PROJECT-COPY
01655b30682efd435d91e85223af0fd6186e6a59
[ "MIT" ]
null
null
null
from django.db import models from sorl.thumbnail import ImageField # Create your models here. class Post(models.Model): text = models.CharField(max_length=140, blank=False, null=False) image = ImageField() def __str__(self): return self.text
26.3
68
0.726236
168
0.638783
0
0
0
0
0
0
26
0.098859
f7bb92af288264a3c094d6c7636074324c8ab56d
12,847
py
Python
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
1
2022-03-23T05:10:45.000Z
2022-03-23T05:10:45.000Z
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
null
null
null
gcp/docker/infrastructure/rapids_lib.py
ethem-kinginthenorth/cloud-ml-examples
e434d2bdbf2adf058dc436f992a56585537dc8ab
[ "Apache-2.0" ]
null
null
null
# os import sys, os, time, logging # CPU DS stack import pandas as pd import numpy as np import sklearn # GPU DS stack [ rapids ] import gcsfs # scaling library import dask # data ingestion [ CPU ] from pyarrow import orc as pyarrow_orc # ML models from sklearn import ensemble import xgboost # data set splits fro...
38.57958
138
0.599829
11,281
0.878104
0
0
0
0
0
0
3,211
0.249942
f7bc4cc67a214b3d1cc41c823e3eb37e1f5d2531
5,011
py
Python
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
86
2016-11-28T12:34:28.000Z
2022-03-17T13:49:49.000Z
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
57
2017-03-07T10:11:52.000Z
2022-01-16T19:35:33.000Z
docs/making_widgets_from_scratch/line_clock.py
Rahuum/glooey
932edca1c8fdd710f1941038e47ac8d25a31a1a8
[ "MIT" ]
9
2017-03-15T18:55:50.000Z
2022-02-17T14:52:49.000Z
#!/usr/bin/env python3 import pyglet import glooey import autoprop import datetime from pyglet.gl import * from vecrec import Vector, Rect @autoprop class LineClock(glooey.Widget): custom_radius = 50 custom_color = 'green' custom_hour_hand_width = 3 custom_minute_hand_width = 2 custom_second_hand_...
28.151685
79
0.580124
4,759
0.949142
0
0
4,340
0.865576
0
0
900
0.179497
f7bd078884fa7f447ad7081c6426bb1a2e21941b
625
py
Python
forms_builder/forms/migrations/0004_auto_20180727_1256.py
maqmigh/django-forms-builder
1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98
[ "BSD-2-Clause" ]
null
null
null
forms_builder/forms/migrations/0004_auto_20180727_1256.py
maqmigh/django-forms-builder
1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98
[ "BSD-2-Clause" ]
null
null
null
forms_builder/forms/migrations/0004_auto_20180727_1256.py
maqmigh/django-forms-builder
1a0068d1d07498f4a2e160c46ec85b9a5f2ddd98
[ "BSD-2-Clause" ]
null
null
null
# coding=utf-8 # Generated by Django 2.0.7 on 2018-07-27 10:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('forms', '0003_auto_20180522_0820'), ] operations = [ migrations.AlterField( model_name='field', name=...
25
90
0.5968
517
0.8272
0
0
0
0
0
0
140
0.224
f7bd2e55648aaa2a1a246e97711c0fc010416b3b
5,711
py
Python
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
2
2022-01-06T07:41:50.000Z
2022-01-22T14:18:51.000Z
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
null
null
null
scripts/sighan/generate.py
piglaker/SpecialEdition
172688ef111e1b5c62bdb1ba0a523a2654201b90
[ "Apache-2.0" ]
null
null
null
import os import re import sys import json #upper import sys.path.append("../../") from utils import levenshtein from utils.io import load_json, write_to def strQ2B(ustring): """全角转半角""" rstring = "" for uchar in ustring: inside_code=ord(uchar) if inside_code == 12288: ...
33.994048
179
0.629487
0
0
0
0
0
0
0
0
1,693
0.293567
f7bde64d861ea84f6a0483cdddf17127e95c800d
67
py
Python
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
# from .backend import * # noqa: F401,F403 from .sbackend import *
33.5
43
0.701493
0
0
0
0
0
0
0
0
43
0.641791
f7bf187ba4675f05a89f42e9783052fe7bcd13c5
647
py
Python
docs/_docs/bash/az3166_patch_binary.py
skolbin-ssi/azure-iot-developer-kit
24035c8870e9c342d055bcd586529441078af0a0
[ "MIT" ]
43
2017-10-03T23:03:23.000Z
2019-04-27T18:57:16.000Z
docs/_docs/bash/az3166_patch_binary.py
skolbin-ssi/azure-iot-developer-kit
24035c8870e9c342d055bcd586529441078af0a0
[ "MIT" ]
114
2017-09-20T02:51:28.000Z
2019-05-06T06:13:14.000Z
docs/_docs/bash/az3166_patch_binary.py
skolbin-ssi/azure-iot-developer-kit
24035c8870e9c342d055bcd586529441078af0a0
[ "MIT" ]
48
2017-09-19T08:18:52.000Z
2019-04-19T11:44:32.000Z
# ---------------------------------------------------------------------------- # Copyright (C) Microsoft. All rights reserved. # Licensed under the MIT license. # ---------------------------------------------------------------------------- import os import binascii import struct import shutil import inspect import s...
29.409091
78
0.482226
0
0
0
0
0
0
0
0
276
0.426584
f7bfccc428289385cc22ed6c618de770f292647a
590
py
Python
setup.py
FireXStuff/firex-bundle-ci
05ef1d9017b3553e8f4249da9a96e313f0ad7047
[ "BSD-3-Clause" ]
1
2021-01-08T19:50:33.000Z
2021-01-08T19:50:33.000Z
setup.py
FireXStuff/firex-bundle-ci
05ef1d9017b3553e8f4249da9a96e313f0ad7047
[ "BSD-3-Clause" ]
null
null
null
setup.py
FireXStuff/firex-bundle-ci
05ef1d9017b3553e8f4249da9a96e313f0ad7047
[ "BSD-3-Clause" ]
null
null
null
import versioneer from setuptools import setup setup(name='firex-bundle-ci', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='FireX CI services', url='https://github.com/FireXStuff/firex-bundle-ci.git', author='Core FireX Team', author_email='firex-...
26.818182
62
0.60678
0
0
0
0
0
0
0
0
222
0.376271
f7c03e8c3283127463ae5c11c8faf6e12bf38615
1,951
py
Python
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
meta_middleware/meta_middleware/middleware.py
kevin-wyx/ProxyFS
76d9478c9e87c18950f2e4659b397a397fb1ac69
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 SwiftStack, 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 w...
34.22807
112
0.633521
1,164
0.596617
0
0
0
0
0
0
786
0.40287
f7c20796c689531f3a41f3738826f84aead341b4
1,397
py
Python
distpy/util/__init__.py
CU-NESS/distpy
279ba7e46726a85246566401fca19b8739d18d08
[ "Apache-2.0" ]
null
null
null
distpy/util/__init__.py
CU-NESS/distpy
279ba7e46726a85246566401fca19b8739d18d08
[ "Apache-2.0" ]
null
null
null
distpy/util/__init__.py
CU-NESS/distpy
279ba7e46726a85246566401fca19b8739d18d08
[ "Apache-2.0" ]
null
null
null
""" Introduces utilities used throughout the package, including: - interfaces for making objects `distpy.util.Savable.Savable` and `distpy.util.Loadable.Loadable` in binary hdf5 files using h5py - helper methods for using h5py to save and load variables and arrays (`h5py_extensions`) - type category definitions (`...
43.65625
79
0.800286
0
0
0
0
0
0
0
0
763
0.54617
f7c31602d3ba09f1a3970f8ce071305eb086135d
74
py
Python
Crypto-hardRSA/flag.py
JSW2020/hsctf-2019-freshmen
5282d6d51153aadd62f42673aa3d487f8d7ef45b
[ "MIT" ]
16
2019-12-09T15:53:08.000Z
2021-12-07T00:34:30.000Z
Crypto-hardRSA/flag.py
JSW2020/hsctf-2019-freshmen
5282d6d51153aadd62f42673aa3d487f8d7ef45b
[ "MIT" ]
null
null
null
Crypto-hardRSA/flag.py
JSW2020/hsctf-2019-freshmen
5282d6d51153aadd62f42673aa3d487f8d7ef45b
[ "MIT" ]
7
2019-12-09T11:53:52.000Z
2021-11-14T04:09:04.000Z
flag = "flag{b3453333-9da9-49ae-b4ed-0017c392d58e}" e1 = 65537 e2 = 368273
24.666667
51
0.743243
0
0
0
0
0
0
0
0
44
0.594595
f7c3c4d630855f49542b120f69474ebe854a401b
310
py
Python
toast/decorators/__init__.py
joshuaskelly/Toast
741bc17992fd654c9834b080189eb800202ce999
[ "MIT" ]
null
null
null
toast/decorators/__init__.py
joshuaskelly/Toast
741bc17992fd654c9834b080189eb800202ce999
[ "MIT" ]
null
null
null
toast/decorators/__init__.py
joshuaskelly/Toast
741bc17992fd654c9834b080189eb800202ce999
[ "MIT" ]
null
null
null
class call_if(object): def __init__(self, cond): self.condition = cond def __call__(self, func): def inner(*args, **kwargs): if getattr(args[0], self.condition): return func(*args, **kwargs) else: return None return inner
28.181818
48
0.525806
310
1
0
0
0
0
0
0
0
0
f7c417316d84349935d37272663f36b5a52c49ff
1,165
py
Python
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
13
2017-04-24T07:49:30.000Z
2020-09-22T13:13:13.000Z
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
null
null
null
drogher/package/fedex.py
thisisnotmyuserid/drogher
f8ea5e34dad6a2e9f22608b4ae4a6f7032133e45
[ "BSD-3-Clause" ]
4
2018-09-08T05:31:57.000Z
2022-02-10T17:42:31.000Z
import itertools from .base import Package class FedEx(Package): shipper = 'FedEx' class FedExExpress(FedEx): barcode_pattern = r'^\d{34}$' @property def tracking_number(self): return self.barcode[20:22].lstrip('0') + self.barcode[22:] @property def valid_checksum(self): c...
25.326087
80
0.574249
1,112
0.954506
0
0
922
0.791416
0
0
34
0.029185
f7c4b93a5f9fe2cd51baa68e74a1491e4f04cbf5
1,535
py
Python
nipy/labs/spatial_models/tests/test_bsa_io.py
arokem/nipy
d6b2e862c65558bb5747c36140fd6261a7e1ecfe
[ "BSD-3-Clause" ]
null
null
null
nipy/labs/spatial_models/tests/test_bsa_io.py
arokem/nipy
d6b2e862c65558bb5747c36140fd6261a7e1ecfe
[ "BSD-3-Clause" ]
null
null
null
nipy/labs/spatial_models/tests/test_bsa_io.py
arokem/nipy
d6b2e862c65558bb5747c36140fd6261a7e1ecfe
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement from nose.tools import assert_true from os.path import exists import numpy as np from nibabel import Nifti1Image from numpy.testing import assert_equal from ...utils.simul_multisubject_fmri_dataset import surrogate_3d_dataset from ..bsa_io import make_bsa_image from nibabel.tmpdirs...
34.111111
79
0.699674
0
0
0
0
0
0
0
0
258
0.168078
f7c5189c4c9985714dd619cfadbc0baf92efab39
5,099
py
Python
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
3
2020-08-10T08:57:36.000Z
2021-04-04T01:12:50.000Z
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
17
2018-08-03T14:25:52.000Z
2022-02-06T18:19:39.000Z
MFSDA/MFSDA_run.py
bpaniagua/MFSDA_Python
d7e439fe670d5e2731c9ec722919a74f67b01e30
[ "Apache-2.0" ]
13
2017-11-14T17:22:32.000Z
2020-12-10T16:55:58.000Z
#!/usr/bin/env python-real # -*- coding: utf-8 -*- """ Run script: multivariate functional shape data analysis (MFSDA). Author: Chao Huang ([email protected]) Last update: 2017-08-14 """ import sys,os sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)),os.path.join('Resources','Libraries')...
29.818713
130
0.642871
0
0
0
0
0
0
0
0
1,325
0.259855
f7c72117e015e7f0761f5162d10f3d3cf0ddb74f
1,671
py
Python
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
modules/mongodb_atlas/mongodb_atlas.py
riddopic/opta
25fa6435fdc7e2ea9c7963ed74100fffb0743063
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
import os from typing import TYPE_CHECKING from modules.base import ModuleProcessor from opta.core.terraform import get_terraform_outputs from opta.exceptions import UserErrors if TYPE_CHECKING: from opta.layer import Layer from opta.module import Module class MongodbAtlasProcessor(ModuleProcessor): def...
37.133333
98
0.663076
1,403
0.839617
0
0
0
0
0
0
376
0.225015
f7c92906bdd05fb9011ed12eacbe0ac0a33b671e
502
py
Python
python/tests/testdata/region_HU.py
kevin-brown/python-phonenumbers
e4ae191e6fae47581eb40d3d23c7e2b7d422c326
[ "Apache-2.0" ]
1
2019-08-06T03:19:28.000Z
2019-08-06T03:19:28.000Z
python/tests/testdata/region_HU.py
kevin-brown/python-phonenumbers
e4ae191e6fae47581eb40d3d23c7e2b7d422c326
[ "Apache-2.0" ]
null
null
null
python/tests/testdata/region_HU.py
kevin-brown/python-phonenumbers
e4ae191e6fae47581eb40d3d23c7e2b7d422c326
[ "Apache-2.0" ]
2
2018-02-09T13:52:15.000Z
2019-09-10T08:36:25.000Z
"""Auto-generated file, do not edit by hand. HU metadata""" from phonenumbers.phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_HU = PhoneMetadata(id='HU', country_code=36, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='30\\d{7}', possible_length=(9,...
55.777778
113
0.776892
0
0
0
0
0
0
0
0
106
0.211155
f7c994df8beeb9e54af1a6918047db78eb8494b2
1,389
py
Python
lambdas/budget-handler/lambda_handler.py
weAllWeGot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
2
2018-08-18T16:41:43.000Z
2020-12-20T21:29:49.000Z
lambdas/budget-handler/lambda_handler.py
weallwegot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
12
2018-07-25T16:56:48.000Z
2019-10-22T01:16:23.000Z
lambdas/budget-handler/lambda_handler.py
weAllWeGot/personal_financial_engine
37c89e49aa68d6db48c10d6663135f4992a72171
[ "Apache-2.0" ]
4
2018-12-07T23:50:12.000Z
2021-04-16T20:49:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import boto3 import csv import json import logging from budget_retrieval import get_budget from budget_placement import place_budget def respond(err, res=None): return { 'statusCode': '400' if err else '200', 'body': err.message if err else json.dumps...
28.346939
84
0.645068
0
0
0
0
0
0
0
0
609
0.438445
f7ca0211e8a92052407acbaa028f0ad46e74b5f9
1,451
py
Python
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
3
2019-04-18T02:47:06.000Z
2021-11-09T03:49:12.000Z
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
29
2016-12-15T01:02:05.000Z
2022-03-07T12:06:40.000Z
src/documenteer/stackdocs/doxygentag.py
lsst-sqre/sphinxkit
a9475d0722b0f6f89fd1c4c54eafad0564667b0b
[ "MIT" ]
2
2016-09-12T17:44:06.000Z
2016-12-15T00:37:05.000Z
"""Utilities for working with Doxygen tag files. """ __all__ = ["get_tag_entity_names"] import xml.etree.ElementTree as ET from pathlib import Path from typing import List, Optional, Sequence, Union try: from sphinxcontrib.doxylink import doxylink except ImportError: print( "sphinxcontrib.doxylink is...
24.183333
74
0.598208
0
0
0
0
0
0
0
0
770
0.530669
f7cadf89eeb52e1e8b7bf3ad6d819d4964e7f62f
1,263
py
Python
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
1
2019-11-30T17:04:09.000Z
2019-11-30T17:04:09.000Z
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
null
null
null
src/gamesbyexample/shellgame.py
skinzor/PythonStdioGames
75f27af19d7f1d555b0fd85fbcf215f07660b93f
[ "MIT" ]
null
null
null
# Shell Game, by Al Sweigart [email protected] # A random gambling game. import random, time, sys print('''SHELL GAME By Al Sweigart [email protected] Try to find the diamond! Press Enter to continue...''') input() CUPS = ['diamond', 'pocket lint', 'nothing'] while True: print() print('Shufflin...
26.3125
93
0.599367
0
0
0
0
0
0
0
0
538
0.42597
f7cbba72cbee5b92ee9bed0dc914113ae1d6f2e4
1,242
py
Python
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
main.py
mathew4STAR/GPT-3_based_AI
7c5ffcd26ebbd64ee1f6fa02ec4a8529c795b809
[ "MIT" ]
null
null
null
import pyttsx3 import speech_recognition as sr import openai as op import os op.api_key = os.getenv("OPENAI_API_KEY") engine = pyttsx3.init() engine.setProperty('rate', 150) engine.setProperty('volume', 1.0) voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) def tell(text): engine.s...
24.84
154
0.638486
0
0
0
0
0
0
0
0
270
0.217391
f7cdafc3fcc754a52e3ada458ff7a926e8981f1d
71,088
py
Python
sdk/python/pulumi_azure_native/compute/v20200930/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20200930/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20200930/_inputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities fro...
42.138708
389
0.668763
68,890
0.969081
0
0
69,536
0.978168
0
0
32,797
0.461358
f7cdc28f8dbf0a5fa40122f9a836204bf7e9435a
500
py
Python
bgp_adjacencies/BGP_check_job.py
KamyarZiabari/solutions_examples
3dfa80d276ab13d1e489142a3fcbe2bd8ab0eba2
[ "Apache-2.0" ]
59
2019-03-08T15:08:14.000Z
2021-12-23T15:59:03.000Z
bgp_adjacencies/BGP_check_job.py
CiscoTestAutomation/genie_solutions
69c96f57dce466bcd767bd1ea6326aaf6a63fbcf
[ "Apache-2.0" ]
8
2019-04-05T04:29:17.000Z
2021-04-12T15:37:51.000Z
bgp_adjacencies/BGP_check_job.py
CiscoTestAutomation/genie_solutions
69c96f57dce466bcd767bd1ea6326aaf6a63fbcf
[ "Apache-2.0" ]
37
2019-03-15T21:35:38.000Z
2022-03-22T01:49:59.000Z
# To run the job: # pyats run job BGP_check_job.py --testbed-file <testbed_file.yaml> # Description: This job file checks that all BGP neighbors are in Established state import os # All run() must be inside a main function def main(runtime): # Find the location of the script in relation to the job file bgp_tes...
38.461538
83
0.708
0
0
0
0
0
0
0
0
324
0.648
f7cddf9b0d9e1e72530d863ce9c077212cea7e97
858
py
Python
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
57
2021-09-02T13:20:43.000Z
2022-03-17T18:35:55.000Z
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
2
2021-09-07T13:06:40.000Z
2022-03-04T11:54:22.000Z
tvae/utils/logging.py
ReallyAnonNeurips2021/TopographicVAE
97ba47c039f7eab05ce9e17c3faea0a6ec86f1eb
[ "MIT" ]
8
2021-09-07T14:48:25.000Z
2022-03-12T05:44:32.000Z
import os def get_dirs(): cwd = os.path.dirname(os.path.realpath(__file__)) local_savedir = cwd local_datadir = cwd local_wandbdir = cwd return local_savedir, local_datadir, local_wandbdir def configure_logging(config, name, model): if config['wandb_on']: import wandb wandb...
24.514286
71
0.56993
0
0
0
0
0
0
0
0
122
0.142191
f7cde5f2b92aa7e388bad877341add7fc6bed0cb
521
py
Python
create_lesson_plan/admin.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
1
2020-07-23T21:35:40.000Z
2020-07-23T21:35:40.000Z
create_lesson_plan/admin.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
9
2021-02-08T20:32:35.000Z
2022-03-02T14:58:07.000Z
create_lesson_plan/admin.py
rishabhranawat/CrowdPlatform
1de2ad7e70fbf6cbf2e29bc9368341134b4f7e0d
[ "MIT" ]
null
null
null
from django.contrib import admin from create_lesson_plan.models import * admin.site.register(lesson) admin.site.register(lesson_plan) admin.site.register(Engage_Urls) admin.site.register(Explain_Urls) admin.site.register(Evaluate_Urls) admin.site.register(MCQ) admin.site.register(FITB) admin.site.register(Engage_Image...
28.944444
39
0.84261
0
0
0
0
0
0
0
0
0
0
f7ce40df7d33d5f39e5868a59d46a085bed7cd64
3,408
py
Python
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
10
2021-11-20T19:01:08.000Z
2022-01-16T09:06:12.000Z
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
2
2021-12-11T12:28:03.000Z
2021-12-13T21:09:53.000Z
src/models/modules/visual_bert_classifier.py
inzva/emotion-recognition-drawings
56435f42d76c10c10fa58149ccbcc8d05efccdc0
[ "MIT" ]
null
null
null
import torch from torch import nn from transformers import BertTokenizer, VisualBertModel, VisualBertConfig import numpy as np class VisualBertClassifier(nn.Module): def __init__(self, visual_bert_model, num_classes: int = 8, initial_visual_embedding_dim: int = 9...
46.054054
169
0.667254
1,978
0.580059
0
0
0
0
0
0
893
0.261877
f7cfecaa2797756809c5e754e4b6bf4f05823087
1,006
py
Python
narrative2vec/logging_instance/pose.py
code-iai/narrative2vec
948071d09838ea41ee9749325af6804427a060d2
[ "MIT" ]
null
null
null
narrative2vec/logging_instance/pose.py
code-iai/narrative2vec
948071d09838ea41ee9749325af6804427a060d2
[ "MIT" ]
null
null
null
narrative2vec/logging_instance/pose.py
code-iai/narrative2vec
948071d09838ea41ee9749325af6804427a060d2
[ "MIT" ]
null
null
null
from narrative2vec.logging_instance.logging_instance import LoggingInstance, _get_first_rdf_query_result from narrative2vec.logging_instance.reasoning_task import ReasoningTask from narrative2vec.ontology.neemNarrativeDefinitions import QUATERNION from narrative2vec.ontology.ontologyHandler import get_knowrob_uri cla...
43.73913
104
0.781312
689
0.684891
0
0
0
0
0
0
36
0.035785
f7d0423ade6b86198698a9b5f2ef5a03964e0231
288
py
Python
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
4
2016-08-28T16:00:20.000Z
2018-01-31T18:22:43.000Z
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
25
2016-08-15T20:57:59.000Z
2022-02-10T18:14:48.000Z
kobra/settings/development.py
karservice/kobra
2019fd3be499c06d2527e80576fd6ff03d8fe151
[ "MIT" ]
1
2017-02-06T17:13:16.000Z
2017-02-06T17:13:16.000Z
# -*- coding: utf-8 -*- from . import * SECRET_KEY = env.str('KOBRA_SECRET_KEY', 'Unsafe_development_key._Never_use_in_production.') DEBUG = env.bool('KOBRA_DEBUG_MODE', True) DATABASES = { 'default': env.db_url('KOBRA_DATABASE_URL', 'sqlite:///db.sqlite3') }
24
72
0.652778
0
0
0
0
0
0
0
0
160
0.555556
f7d06f7dd5791848e16c5019b980180600add19a
4,153
py
Python
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
1
2018-02-17T14:29:41.000Z
2018-02-17T14:29:41.000Z
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
null
null
null
foobot_grapher.py
jpwright/foobot-slack
ffc1cf8490d08433d76bb62cbf7440c765089784
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pyfoobot import Foobot import requests import matplotlib matplotlib.use('Agg') import matplotlib.dates import matplotlib.pyplot import datetime from imgurpython import ImgurClient import ConfigParser def getSensorReadings(notify): config = ConfigParser.ConfigParser() config.read("config....
27.503311
179
0.675415
0
0
0
0
0
0
0
0
1,039
0.250181
f7d2351d64f6c5df1c1015aaa80a18aa25236a08
239
py
Python
safexl/__init__.py
ThePoetCoder/safexl
d2fb91ad45d33b6f51946e99c78e7fcf7564e82e
[ "MIT" ]
6
2020-08-28T16:00:28.000Z
2022-01-17T14:48:04.000Z
safexl/__init__.py
ThePoetCoder/safexl
d2fb91ad45d33b6f51946e99c78e7fcf7564e82e
[ "MIT" ]
null
null
null
safexl/__init__.py
ThePoetCoder/safexl
d2fb91ad45d33b6f51946e99c78e7fcf7564e82e
[ "MIT" ]
null
null
null
# Copyright (c) 2020 safexl from safexl.toolkit import * import safexl.xl_constants as xl_constants import safexl.colors as colors __author__ = "Eric Smith" __email__ = "[email protected]" __license__ = "MIT" __version__ = "0.0.7"
19.916667
42
0.76569
0
0
0
0
0
0
0
0
75
0.313808
f7d2cd873463ee3cda95ca64c29e31dbdad2cad2
2,989
py
Python
musicdb/restapi/migrations/0001_initial.py
alexebaker/django-music_database
cffa2574d894509b0eec7c71bd821cc0fd2f2cf7
[ "MIT" ]
null
null
null
musicdb/restapi/migrations/0001_initial.py
alexebaker/django-music_database
cffa2574d894509b0eec7c71bd821cc0fd2f2cf7
[ "MIT" ]
7
2020-06-05T18:23:50.000Z
2022-03-11T23:24:27.000Z
musicdb/restapi/migrations/0001_initial.py
alexebaker/django-music_database
cffa2574d894509b0eec7c71bd821cc0fd2f2cf7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-05-01 05:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Album', fields=[ ...
38.320513
136
0.556708
2,863
0.957845
0
0
0
0
0
0
395
0.132151
f7d39269257b5bc266bf53edfc897cb41af5201f
402
py
Python
ballot_source/sources/migrations/0004_auto_20200824_1444.py
Ballot-Drop/ballot-source
5dd9692ca5e9237a6073833a81771a17ad2c1dc9
[ "MIT" ]
3
2020-09-05T06:02:08.000Z
2020-09-28T23:44:05.000Z
ballot_source/sources/migrations/0004_auto_20200824_1444.py
Ballot-Drop/ballot-source
5dd9692ca5e9237a6073833a81771a17ad2c1dc9
[ "MIT" ]
18
2020-08-28T18:09:54.000Z
2020-09-19T17:36:08.000Z
ballot_source/sources/migrations/0004_auto_20200824_1444.py
Ballot-Drop/ballot-source
5dd9692ca5e9237a6073833a81771a17ad2c1dc9
[ "MIT" ]
null
null
null
# Generated by Django 3.0.9 on 2020-08-24 20:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sources', '0003_sourcedetail_last_pull'), ] operations = [ migrations.AlterField( model_name='sourcedetail', name='d...
21.157895
58
0.606965
309
0.768657
0
0
0
0
0
0
105
0.261194
f7d411b7a1e10f51b58ab6692c180f5bbcd91a28
2,007
py
Python
src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
src/tests/Yi/tests/inner_product_between_lobatto_and_gauss.py
Idate96/Mimetic-Fem
75ad3b982ef7ed7c6198f526d19dc460dec28f4d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ (SHORT NAME EXPLANATION) >>>DOCTEST COMMANDS (THE TEST ANSWER) @author: Yi Zhang. Created on Mon Jul 10 20:12:27 2017 Department of Aerodynamics Faculty of Aerospace Engineering TU Delft #SUMMARY---------------- #INPUTS----------------- #ESSEN...
22.3
78
0.619332
0
0
0
0
0
0
0
0
944
0.468486
f7d511ad2e6640e470287dff8220becb4fa1880a
1,871
py
Python
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/quality_control/bin/createSpotDetectionQCHTML.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
import json from bs4 import BeautifulSoup import pandas as pd import sys # Argparsing argument_index = 1 template = sys.argv[argument_index] argument_index +=1 recall_json = sys.argv[argument_index] argument_index +=1 recall_plot = sys.argv[argument_index] argument_index +=1 precision_jsons_list = [sys.argv[i] for ...
27.115942
82
0.772314
0
0
0
0
0
0
0
0
277
0.148049
f7d56596394f7bfd79f8b0a1466fae7aaa135fac
2,104
py
Python
test/torch/mpc/test_fss.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
3
2020-11-24T05:15:57.000Z
2020-12-07T09:52:45.000Z
test/torch/mpc/test_fss.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
1
2020-09-29T00:24:31.000Z
2020-09-29T00:24:31.000Z
test/torch/mpc/test_fss.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
1
2021-09-04T16:27:41.000Z
2021-09-04T16:27:41.000Z
import pytest import torch as th from syft.frameworks.torch.mpc.fss import DPF, DIF, n @pytest.mark.parametrize("op", ["eq", "le"]) def test_fss_class(op): class_ = {"eq": DPF, "le": DIF}[op] th_op = {"eq": th.eq, "le": th.le}[op] gather_op = {"eq": "__add__", "le": "__xor__"}[op] # single value ...
32.875
70
0.551331
0
0
0
0
2,013
0.956749
0
0
101
0.048004
f7d62d0a50f28ea90ec1747700a205b806ed75b7
2,684
py
Python
allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
1
2020-01-28T07:52:28.000Z
2020-01-28T07:52:28.000Z
allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
null
null
null
allennlp/tests/data/tokenizers/pretrained_transformer_tokenizer_test.py
donna-legal/allennlp
fd1e3cfaed07ec3ba03b922d12eee47f8be16837
[ "Apache-2.0" ]
null
null
null
from allennlp.common.testing import AllenNlpTestCase from allennlp.data.tokenizers import PretrainedTransformerTokenizer class TestPretrainedTransformerTokenizer(AllenNlpTestCase): def test_splits_roberta(self): tokenizer = PretrainedTransformerTokenizer("roberta-base") sentence = "A, <mask> Alle...
28.252632
99
0.462742
2,563
0.953852
0
0
0
0
0
0
594
0.221064
f7d6ae2f3cb3eec3b7e8a4d67b500afb529fc556
2,928
py
Python
openmdao/api.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
openmdao/api.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
openmdao/api.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
"""Key OpenMDAO classes can be imported from here.""" # Core from openmdao.core.problem import Problem from openmdao.core.group import Group from openmdao.core.parallel_group import ParallelGroup from openmdao.core.explicitcomponent import ExplicitComponent from openmdao.core.implicitcomponent import ImplicitComponent...
41.828571
85
0.873634
0
0
0
0
0
0
0
0
193
0.065915
f7d8750cdaa9ce35d0790079eee8be949cbd02ee
1,443
py
Python
code-buddy.py
xl3ehindTim/Code-buddy
e04b7b4327a0b3ff2790d22aef93dca6fce021f4
[ "MIT" ]
8
2019-11-29T09:20:11.000Z
2020-11-02T10:55:35.000Z
code-buddy.py
xl3ehindTim/Code-buddy
e04b7b4327a0b3ff2790d22aef93dca6fce021f4
[ "MIT" ]
2
2019-12-02T13:48:01.000Z
2019-12-02T17:00:56.000Z
code-buddy.py
xl3ehindTim/Code-buddy
e04b7b4327a0b3ff2790d22aef93dca6fce021f4
[ "MIT" ]
3
2019-11-29T10:03:44.000Z
2020-10-01T10:23:55.000Z
import os from getArgs import getArgs from modules import python, javascript, html, php, bootstrap, cca # from folder import file # code-buddy.py create (file type) (directory name) # Checks for "create" if getArgs(1) == "create": # Checks for which file type projectType = getArgs(2) # Checks for file name ...
33.55814
101
0.644491
0
0
0
0
0
0
0
0
576
0.399168
f7d8d7b6d6bbc7f8a6c1802ec8a9bedc82cb072a
5,799
py
Python
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
1
2020-11-23T12:13:04.000Z
2020-11-23T12:13:04.000Z
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
null
null
null
compyle/tests/test_ext_module.py
manish364824/compyle
cc97dd0a0e7b12f904b3f1c0f20aa06a41779c61
[ "BSD-3-Clause" ]
null
null
null
from contextlib import contextmanager from distutils.sysconfig import get_config_var from io import open as io_open import os from os.path import join, exists import shutil import sys import tempfile from textwrap import dedent from multiprocessing import Pool from unittest import TestCase, main try: from unittest...
29.436548
76
0.607174
4,431
0.764097
218
0.037593
238
0.041042
0
0
1,166
0.201069
f7db3778ef11768f9b2aff72c3bc714173c0ef05
5,286
py
Python
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
2
2020-02-15T18:31:39.000Z
2020-03-18T13:30:58.000Z
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
null
null
null
tma/collector/xhn.py
hebpmo/TMA
b07747d3112e822ff92dd2ba4589d2288adab154
[ "MIT" ]
1
2021-02-13T19:14:39.000Z
2021-02-13T19:14:39.000Z
# -*- coding: UTF-8 -*- """ collector.xhn - 新华网数据采集 官网:http://www.xinhuanet.com/ 接口分析: 1. 获取文章列表 http://qc.wa.news.cn/nodeart/list?nid=115093&pgnum=1&cnt=10000 新华全媒体头条 http://www.xinhuanet.com/politics/qmtt/index.htm ==================================================================== """ import requests import re...
28.26738
81
0.531782
2,889
0.518299
0
0
256
0.045928
0
0
1,917
0.343918
f7dbb6eabf0492827bece2fbca9d7d345965609a
995
py
Python
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
2
2021-09-02T21:29:48.000Z
2021-09-20T07:05:08.000Z
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
null
null
null
tests/test_onetv.py
unlocKing/plugins
e5cee730c22a049cfd0e3873389c82e8ab5f7c41
[ "BSD-2-Clause" ]
null
null
null
import unittest from plugins.onetv import OneTV class TestPluginPerviyKanal(unittest.TestCase): def test_can_handle_url(self): regex_test_list = [ "https://media.1tv.ru/embed/ctcmedia/ctc-che.html?start=auto", "https://media.1tv.ru/embed/ctcmedia/ctc-dom.html?start=auto", ...
36.851852
75
0.577889
943
0.947739
0
0
0
0
0
0
535
0.537688
f7dd193790b7ae7797daf8c7c2f3ca9a0623ed89
405
py
Python
tests/test_plugins/pytester_example_dir/test_file_1.py
MORSECorp/snappiershot
acb6a8d01d4496abe0f2fe83c7e7af9cf77aac8e
[ "Apache-2.0" ]
27
2020-10-15T18:36:25.000Z
2022-03-02T19:11:44.000Z
tests/test_plugins/pytester_example_dir/test_file_1.py
MORSECorp/snappiershot
acb6a8d01d4496abe0f2fe83c7e7af9cf77aac8e
[ "Apache-2.0" ]
33
2020-10-15T15:03:37.000Z
2022-03-24T21:00:34.000Z
tests/test_plugins/pytester_example_dir/test_file_1.py
MORSECorp/snappiershot
acb6a8d01d4496abe0f2fe83c7e7af9cf77aac8e
[ "Apache-2.0" ]
5
2020-10-15T16:30:00.000Z
2022-03-30T15:07:28.000Z
""" This is a test file used for testing the pytest plugin. """ def test_function_passed(snapshot): """ The snapshot for this function is expected to exist. """ snapshot.assert_match(3 + 4j) def test_function_new(snapshot): """ The snapshot for this function is expected to exist, but only one assertion ...
31.153846
100
0.708642
0
0
0
0
0
0
0
0
219
0.540741
f7de06300594a810a1f4175db45d6b833ced1a94
7,940
py
Python
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
src/compas/geometry/pointclouds/pointcloud.py
Sam-Bouten/compas
011c7779ded9b69bb602568b470bb0443e336f62
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division from random import uniform from compas.geometry import transform_points from compas.geometry import centroid_points from compas.geometry import bounding_box from compas.geometry import Primitive from compas.geo...
27.957746
114
0.500756
7,571
0.953526
0
0
4,378
0.551385
0
0
4,186
0.527204
f7de36b7d46515af7a1b6676baaac3b4ccaf3705
4,366
py
Python
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
oa/regex.py
Worteks/OrangeAssassin
21baf0b84fbedd887f6d88e13c624f14fb0b5e06
[ "Apache-2.0" ]
null
null
null
"""Handle regex conversions.""" from builtins import object import re import operator from functools import reduce import oa.errors # Map of perl flags and the corresponding re ones. FLAGS = { "i": re.IGNORECASE, "s": re.DOTALL, "m": re.MULTILINE, "x": re.VERBOSE, } DELIMS = { "/": "/", "{"...
28.535948
81
0.574668
1,723
0.39464
0
0
0
0
0
0
1,500
0.343564
f7dec0cd3c585519d06741f3516a5564ea368e83
1,749
py
Python
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
1
2022-01-19T14:20:05.000Z
2022-01-19T14:20:05.000Z
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
null
null
null
test_data/barometer_kalman.py
theo-brown/ahrs
cd9c9e0bbf9db7fd67a297e1aafa8518bf17050d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import Slider from kalman_filter import KalmanFilter raw_data = np.loadtxt("barometer_data.txt") # Truncate raw data (it's super long) raw_data = raw_data[:raw_data.size//4] raw_data_step = np.loadtxt("barometer_data_step.txt") t1 = np.arange(0...
31.232143
95
0.704974
0
0
0
0
0
0
0
0
94
0.053745
f7df479cf0eb03f9edb6d36fe5773b716ab0594f
1,694
py
Python
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
null
null
null
number-of-orders-in-the-backlog/number_of_orders_in_the_backlog.py
joaojunior/hackerrank
a5ee0449e791535930b8659dfb7dddcf9e1237de
[ "MIT" ]
1
2019-06-19T00:51:02.000Z
2019-06-19T00:51:02.000Z
import heapq from typing import List class Solution: def get_number_of_backlog_orders(self, orders: List[List[int]]) -> int: sell_backlog = [] buy_backlog = [] for price, amount, order_type in orders: if order_type == 0: while amount > 0: if ...
40.333333
78
0.432113
1,654
0.976387
0
0
0
0
0
0
0
0
f7df8183ed1dfeac2b83cb6b6b173f961a29bd8f
2,585
py
Python
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
1
2020-02-28T10:07:47.000Z
2020-02-28T10:07:47.000Z
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
null
null
null
scripts/plotresults.py
rafzi/DeepThings
d12e8e8ad9f9ebaa3b0d55f547c0b3c7f1baf636
[ "MIT" ]
2
2020-03-10T15:17:55.000Z
2020-03-17T15:37:37.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt # 1: YOLOv2, 2: AlexNet, 3: VGG-16, 4: GoogLeNet model = 4 LINEPLOT = True dfs = pd.read_excel("t.xlsx", sheet_name=None, header=None) if model == 1: ms = "YOLOv2" elif model == 2: ms = "AlexNet" elif model == 3: ms = "VGG-16" elif model == ...
26.927083
82
0.573308
0
0
0
0
0
0
0
0
695
0.268859
f7e1dfd58619e2e27eaf63ac95f9bbd2215fc5c4
565
py
Python
setup.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
3
2015-01-29T05:24:32.000Z
2021-05-10T01:47:36.000Z
setup.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
null
null
null
setup.py
oubiwann/myriad-worlds
bfbbab713e35c5700e37158a892c3a66a8c9f37a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from myriad import meta from myriad.util import dist setup( name=meta.display_name, version=meta.version, description=meta.description, long_description=meta.long_description, author=meta.author, author_email=meta.author_email, url=meta.url, ...
21.730769
51
0.709735
0
0
0
0
0
0
0
0
53
0.093805
f7e2347893dbbd12b3c90e6ec6f949cb83aa2a4f
1,110
py
Python
val_resnet.py
AlexKhakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
1
2020-05-05T07:20:25.000Z
2020-05-05T07:20:25.000Z
val_resnet.py
khakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
null
null
null
val_resnet.py
khakhlyuk/fixedconv
bf3848c3fd60af2e617f2118064ee6f551b45d95
[ "Apache-1.1" ]
null
null
null
from subprocess import run # python -u val_resnet.py cuda = 0 # which gpu to use dataset = 'cifar10' logs_path = 'logs_resnet' + '_' + dataset manualSeed = 99 workers = 0 for model in ['resnet20', 'preact_resnet20']: commands = [ 'python', '-u', 'validate_resnet.py', '--dataset=' + dataset, ...
27.75
53
0.473874
0
0
0
0
0
0
0
0
337
0.303604
f7e3584c6b4d27959b077f55eb4556611369a6be
466
py
Python
temboo/core/Library/KhanAcademy/Badges/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/KhanAcademy/Badges/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/KhanAcademy/Badges/__init__.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
from temboo.Library.KhanAcademy.Badges.AllCategories import AllCategories, AllCategoriesInputSet, AllCategoriesResultSet, AllCategoriesChoreographyExecution from temboo.Library.KhanAcademy.Badges.BadgesByCategory import BadgesByCategory, BadgesByCategoryInputSet, BadgesByCategoryResultSet, BadgesByCategoryChoreographyE...
116.5
171
0.909871
0
0
0
0
0
0
0
0
0
0
f7e5ec76a74f735b8085dae26118d20f0eea400d
453
py
Python
akagi/data_sources/spreadsheet_data_source.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
26
2017-05-18T11:52:04.000Z
2018-08-25T22:03:07.000Z
akagi/data_sources/spreadsheet_data_source.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
325
2017-05-08T07:22:28.000Z
2022-03-31T15:43:18.000Z
akagi/data_sources/spreadsheet_data_source.py
pauchan/akagi
7cf1f5a52b8f1ebfdc74a527bf6b26254f99343b
[ "MIT" ]
7
2017-05-02T02:06:15.000Z
2020-04-09T05:32:11.000Z
from akagi.data_source import DataSource from akagi.data_file import DataFile class SpreadsheetDataSource(DataSource): '''SpreadsheetSource replesents a data on Google Spreadsheets ''' def __init__(self, sheet_id, sheet_range='A:Z', no_cache=False): self._sheet_id = sheet_id self._sheet_r...
28.3125
72
0.732892
372
0.821192
0
0
108
0.238411
0
0
74
0.163355
f7e673c1a03cc4b207464e8a0e2d7bce749cb8ba
7,401
py
Python
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
stanCode_projects/my_drawing/my_drawing.py
kenhuang1204/stanCode_projects
f697a34a1c54a864c1140cb0f2f76e2d70b45698
[ "MIT" ]
null
null
null
""" File: my_drawing.py Name: 黃科諺 ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GLine, GLabel, GPolygon, GArc from campy.graphics.gwindow import GWindow def main(): """ Meet Snorlax (卡比獸) of stanCode! He dreams of Python when he sleeps. Be like Snorlax. """ window...
28.910156
88
0.638427
0
0
0
0
0
0
0
0
681
0.091866
f7e7736eb2b76396a07e8f09a10926efaa231ede
748
py
Python
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
2
2021-05-16T09:46:14.000Z
2021-11-17T11:23:15.000Z
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
1
2016-11-11T13:45:42.000Z
2016-11-11T13:45:42.000Z
kivy/core/clipboard/clipboard_xsel.py
CharaD7/kivy
85065fe6633f5ac831c193dc84e3f636b789cc3a
[ "MIT" ]
2
2017-03-09T14:27:03.000Z
2019-05-03T08:36:02.000Z
''' Clipboard xsel: an implementation of the Clipboard using xsel command line tool. ''' __all__ = ('ClipboardXsel', ) from kivy.utils import platform from kivy.core.clipboard._clipboard_ext import ClipboardExternalBase if platform != 'linux': raise SystemError('unsupported platform for xsel clipboard') try: ...
24.933333
80
0.67246
307
0.410428
0
0
259
0.346257
0
0
185
0.247326
f7ea40e807af6204059adeba1056db95e63b5bcf
492
py
Python
plugins/hashsum_download/girder_hashsum_download/settings.py
JKitok/girder
317962d155fc9811d25e5f33bd3e849c4ac96645
[ "Apache-2.0" ]
395
2015-01-12T19:20:13.000Z
2022-03-30T05:40:40.000Z
plugins/hashsum_download/girder_hashsum_download/settings.py
JKitok/girder
317962d155fc9811d25e5f33bd3e849c4ac96645
[ "Apache-2.0" ]
2,388
2015-01-01T20:09:19.000Z
2022-03-29T16:49:14.000Z
plugins/hashsum_download/girder_hashsum_download/settings.py
JKitok/girder
317962d155fc9811d25e5f33bd3e849c4ac96645
[ "Apache-2.0" ]
177
2015-01-04T14:47:00.000Z
2022-03-25T09:01:51.000Z
from girder.exceptions import ValidationException from girder.utility import setting_utilities class PluginSettings: AUTO_COMPUTE = 'hashsum_download.auto_compute' @setting_utilities.default(PluginSettings.AUTO_COMPUTE) def _defaultAutoCompute(): return False @setting_utilities.validator(PluginSettings.AU...
27.333333
85
0.802846
72
0.146341
0
0
316
0.642276
0
0
88
0.178862
f7ea6e1ab40e2fa5eea55fc79f11b658b6c35f7e
44,837
py
Python
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
1
2020-12-01T23:25:58.000Z
2020-12-01T23:25:58.000Z
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
2
2020-10-07T01:03:06.000Z
2020-10-12T19:08:55.000Z
forager_server/forager_server_api/views.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
null
null
null
from collections import defaultdict, namedtuple from dataclasses import dataclass import distutils.util import functools import itertools import json import math import operator import os import random import uuid import shutil import logging import time from typing import List, Dict, NamedTuple, Optional from django...
31.072072
89
0.657872
108
0.002409
0
0
30,703
0.684769
0
0
7,257
0.161853
f7eab2118d85cfe10c666d128c82a3c415e87f34
2,632
py
Python
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
626
2015-01-01T18:11:03.000Z
2017-12-19T00:06:49.000Z
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
358
2015-01-21T17:06:45.000Z
2017-12-20T16:03:01.000Z
ccmlib/cluster_factory.py
justinchuch/ccm
808b6ca13526785b0fddfe1ead2383c060c4b8b6
[ "Apache-2.0" ]
172
2015-01-02T21:40:45.000Z
2017-12-19T20:17:49.000Z
from __future__ import absolute_import import os import yaml from ccmlib import common, extension, repository from ccmlib.cluster import Cluster from ccmlib.dse_cluster import DseCluster from ccmlib.node import Node from distutils.version import LooseVersion #pylint: disable=import-error, no-name-in-module class...
39.878788
150
0.628799
2,316
0.879939
0
0
2,287
0.868921
0
0
428
0.162614
f7eb16ad3bcd19920bd13a45530065dd321f93c0
9,872
py
Python
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
1,523
2020-01-28T12:37:48.000Z
2022-03-31T09:27:58.000Z
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
124
2020-01-28T15:12:07.000Z
2022-03-31T18:59:16.000Z
causalnex/structure/pytorch/dist_type/_base.py
Rishab26/causalnex
127d9324a3d68c1795299c7522f22cdea880f344
[ "Apache-2.0" ]
169
2020-01-28T15:13:53.000Z
2022-03-30T21:04:02.000Z
# Copyright 2019-2020 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"...
31.742765
105
0.630976
8,103
0.820806
0
0
4,021
0.407314
0
0
6,801
0.688918
f7ec17b78bb1ba2ad0135e9a1b1bf5b7c8916ff3
4,225
py
Python
src/cmdsh/utils.py
kotfu/cmdsh
c9083793de9117e4c5c4dfcccdeee1b83a0be7ab
[ "MIT" ]
null
null
null
src/cmdsh/utils.py
kotfu/cmdsh
c9083793de9117e4c5c4dfcccdeee1b83a0be7ab
[ "MIT" ]
null
null
null
src/cmdsh/utils.py
kotfu/cmdsh
c9083793de9117e4c5c4dfcccdeee1b83a0be7ab
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- # # Copyright (c) 2019 Jared Crapo # # 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, mod...
32.5
89
0.680947
0
0
0
0
0
0
0
0
2,790
0.660355
f7ecb294c442659591e90f954f3dc3437349ef17
4,992
py
Python
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
2
2021-11-10T20:08:14.000Z
2022-02-10T02:44:26.000Z
tensorflow/python/tpu/tpu_outside_compilation_test.py
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
25
2020-08-31T12:21:19.000Z
2022-03-20T05:16:32.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
29.192982
80
0.698317
2,957
0.592348
0
0
1,120
0.224359
0
0
906
0.18149
f7eccedc6580e295788f95c53fa5d25556b9e059
1,338
py
Python
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Text Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restful import Resource, Api from test import get_models, getTextFromImage from testDocument import getText from time import time app = Flask(__name__) api = Api(app) net, refine_net = get_models() class TextRecognizerService(Resource): def post(self): try: ...
26.76
73
0.523916
951
0.710762
0
0
0
0
0
0
139
0.103886
f7ee1b4e15755381cc1c76d8d915f30011f727a3
17,132
py
Python
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
varats/varats/plots/blame_interaction_graph_plots.py
Kaufi-Jonas/VaRA-Tool-Suite
31563896ad7dd1c1a147202b0c5c9fffe772b803
[ "BSD-2-Clause" ]
null
null
null
"""Module for BlameInteractionGraph plots.""" import typing as tp from datetime import datetime from pathlib import Path import click import matplotlib.pyplot as plt import networkx as nx import pandas as pd import plotly.offline as offply from matplotlib import style from varats.data.reports.blame_interaction_graph...
33.330739
80
0.627714
13,489
0.787357
0
0
0
0
0
0
2,651
0.15474
f7ef21c429f9bf83356bf40d0aaa0462acb403b0
2,632
py
Python
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
Day 7/Day 7.py
Dullstar/Advent-Of-Code-2020
7d3a64906ced2ac98bcfe67a9f3294c8756dc493
[ "MIT" ]
null
null
null
import re class Rule: def __init__(self, line): line = line.strip().split(" contain ") line[1] = line[1].strip(".").split(", ") self.contents = {} for item in line[1]: # Grab that number out in front regex = re.compile(r"[0-9]+") # If we didn't f...
33.74359
106
0.56383
1,808
0.68693
0
0
0
0
0
0
680
0.258359
f7efbdb4f4f2e1681183c05075e6b958502a3563
83,010
py
Python
sdk/python/pulumi_aws_native/apigateway/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/apigateway/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/apigateway/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities from...
42.85493
389
0.655427
81,224
0.978485
0
0
81,784
0.985231
0
0
39,551
0.476461
f7f110d1e3f278e009edf38f3492952620bab08d
619
py
Python
bin/training_data/redmagic_ds_training_data.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
null
null
null
bin/training_data/redmagic_ds_training_data.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
16
2016-11-04T22:24:32.000Z
2018-05-01T22:53:39.000Z
bin/training_data/redmagic_ds_training_data.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
3
2016-10-04T08:07:52.000Z
2019-05-03T23:50:01.000Z
#!/.conda/envs/hodemulator/bin/python from pearce.emulator import make_training_data from pearce.emulator import DEFAULT_PARAMS as ordered_params ordered_params['f_c'] = (0.05, .5) ordered_params['logMmin'] = (11.5, 13.0)#(13.0, 14.5) ordered_params['sigma_logM'] = (0.05, 1.0) ordered_params['logM1'] = (12.0, 15.0) ord...
38.6875
96
0.726979
0
0
0
0
0
0
0
0
239
0.386107
f7f1a1740efc36292fbb917d24b84a88544cbd25
40,478
py
Python
src/legohdl/workspace.py
c-rus/legoHDL
d7d77c05514c8d6dc1070c4efe589f392307daac
[ "MIT" ]
6
2021-12-16T05:40:37.000Z
2022-02-07T15:04:39.000Z
src/legohdl/workspace.py
c-rus/legoHDL
d7d77c05514c8d6dc1070c4efe589f392307daac
[ "MIT" ]
61
2021-09-28T03:05:13.000Z
2022-01-16T00:03:14.000Z
src/legohdl/workspace.py
c-rus/legoHDL
d7d77c05514c8d6dc1070c4efe589f392307daac
[ "MIT" ]
1
2021-12-16T07:03:18.000Z
2021-12-16T07:03:18.000Z
# ------------------------------------------------------------------------------ # Project: legohdl # Script: workspace.py # Author: Chase Ruskin # Description: # The Workspace class. A Workspace object has a path and a list of available # vendors. This is what the user keeps their work's scope within for a given #...
38.079022
186
0.531424
39,809
0.983473
0
0
6,101
0.150724
0
0
16,914
0.417857
f7f1c343e2c46298649ddf9fe556e96b2bec9514
3,871
py
Python
ev_de.py
avinashmnit30/Electric-Vehicle-Optimal-Charging
7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4
[ "BSD-3-Clause" ]
7
2018-03-09T11:19:39.000Z
2022-01-19T13:45:20.000Z
ev_de.py
avinashmnit30/Electric-Vehicle-Optimal-Charging
7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4
[ "BSD-3-Clause" ]
null
null
null
ev_de.py
avinashmnit30/Electric-Vehicle-Optimal-Charging
7f09bdbb9904285ddbbfeaa28cf402f7ef6f4cb4
[ "BSD-3-Clause" ]
1
2022-03-03T12:08:52.000Z
2022-03-03T12:08:52.000Z
# -*- coding: utf-8 -*- """ Created on Wed Dec 16 18:01:24 2015 @author: Avinash """ import numpy as np from numpy import * import numpy from math import * import ev_charge_schedule_modification1 as ev #import ev_charge_schedule.static as func1 #import ev_charge_schedule.dynamic as func2 import tim...
29.105263
112
0.482046
0
0
0
0
0
0
0
0
1,034
0.267114
f7f1da41a1909260bbd83fee7efec53538a5f960
775
py
Python
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/memaxes/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Memaxes(Package): """MemAxes is a visualizer for sampled memory trace data.""" homepa...
31
93
0.672258
554
0.714839
0
0
0
0
0
0
464
0.59871
f7f61f99b14ff05744c7eb403d860339bcd27eae
3,970
py
Python
auth/decorators.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
auth/decorators.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
auth/decorators.py
dongboyan77/quay
8018e5bd80f17e6d855b58b7d5f2792d92675905
[ "Apache-2.0" ]
null
null
null
import logging from functools import wraps from flask import request, session from prometheus_client import Counter from auth.basic import validate_basic_auth from auth.oauth import validate_bearer_auth from auth.cookie import validate_session_cookie from auth.signedgrant import validate_signed_grant from util.http ...
35.446429
101
0.668766
0
0
0
0
1,978
0.498237
0
0
1,295
0.326196
f7f6435a685ce7599500c328cd1e055481aa5830
5,353
py
Python
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
61
2021-06-14T16:41:54.000Z
2022-03-23T14:09:46.000Z
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
null
null
null
ddpm_proteins/utils.py
lucidrains/ddpm-proteins
88bfacbd3cbdc4e38585fab420106f56e890c5f7
[ "MIT" ]
5
2021-06-15T11:51:47.000Z
2022-03-18T08:01:48.000Z
import os from PIL import Image import seaborn as sn import matplotlib.pyplot as plt import torch import torch.nn.functional as F from sidechainnet.utils.sequence import ProteinVocabulary from einops import rearrange # general functions def exists(val): return val is not None def default(val, d): return va...
29.092391
134
0.655707
0
0
146
0.027274
1,105
0.206426
0
0
572
0.106856
f7f93aac7b9d793ef23c38a97b1f3ca8216eaa8d
24,348
py
Python
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
samples/python/efficientdet/create_onnx.py
L-Net-1992/TensorRT
34b664d404001bd724cb56b52a6e0e05e1fd97f2
[ "Apache-2.0" ]
null
null
null
# # SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # 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...
53.986696
122
0.619065
21,081
0.865821
0
0
0
0
0
0
10,028
0.411861
f7f9d815fd74248ee87d991bd107aab15b47f8cc
618
py
Python
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
easy/867-transpose-matrix.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' 转置矩阵 给你一个二维整数数组 matrix, 返回 matrix 的 转置矩阵 。 矩阵的 转置 是指将矩阵的主对角线翻转,交换矩阵的行索引与列索引。 ''' from typing import List ''' 思路:简单问题,原矩阵大小为m*n,创建一个n*m大小的新矩阵,按照行列转化的方式将旧矩阵数据复制过去 ''' class Solution: def transpose(self, matrix: List[List[int]]) -> List[List[int]]: m = len(matrix) n = len(matrix[0]) ne...
20.6
68
0.548544
329
0.403186
0
0
0
0
0
0
343
0.420343
f7fa229686aa6986aa8b8f8a1dc2ccded74af095
5,940
py
Python
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
1
2020-07-21T10:52:26.000Z
2020-07-21T10:52:26.000Z
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
null
null
null
adam_visual_perception/head_gaze_estimator.py
isi-vista/adam-visual-perception
8ad6ed883b184b5407a1bf793617b226c78b3a13
[ "MIT" ]
2
2020-07-21T15:30:42.000Z
2021-01-20T21:54:09.000Z
from adam_visual_perception import LandmarkDetector from adam_visual_perception.utility import * import numpy as np import math import cv2 import os import sys class HeadGazeEstimator: """ A class for estimating gaze ray from facial landmarks """ def __init__(self, write_video=False): # 3D model poin...
35.783133
87
0.458754
5,777
0.972559
0
0
0
0
0
0
897
0.15101
f7fa5e91400000b4953ab8022408df2a80e3be82
3,388
py
Python
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
1
2021-11-22T04:22:08.000Z
2021-11-22T04:22:08.000Z
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
null
null
null
pypoca/cogs/general.py
leandcesar/PyPoca
416f690faad0b511ca9d04b012af35256ee95089
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import disnake from disnake.ext import commands from pypoca.config import COLOR, URLS from pypoca.database import Server from pypoca.ext import ALL, DEFAULT, Choice, Option class General(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot @commands.slash_comm...
47.055556
113
0.626328
3,117
0.920012
0
0
3,011
0.888725
2,845
0.839728
1,788
0.527745
f7fab2882ba44013b1ca7273273e6b041c1e46c3
1,301
py
Python
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
2
2019-12-31T16:49:36.000Z
2021-02-17T09:47:41.000Z
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
null
null
null
costor_server/storage/api/views/authcheck.py
rphi/costor
081de65778d404cf7a22c5524bf89a146fa8326b
[ "CNRI-Python" ]
null
null
null
from rest_framework.decorators import api_view, permission_classes from rest_framework.parsers import MultiPartParser from rest_framework.response import Response from rest_framework import permissions from rest_framework.exceptions import APIException from rest_framework.decorators import parser_classes from django.sh...
30.97619
117
0.704074
0
0
0
0
911
0.700231
0
0
308
0.236741
f7facb852a3db388a7c69659114114ea83276164
12,295
py
Python
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/sample_fold.py
rupei/probability
4aa1ee652853a19c4e80d39216c3fa535ed3e589
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability Authors. # # 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 o...
43.140351
85
0.727938
0
0
0
0
0
0
0
0
8,255
0.671411
f7facc8714f2358ff5e4f5bf725d3516243bec69
10,025
py
Python
algos/custom_ppo2.py
Ottawa-Autonomous-Vehicle-Group/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
1
2020-08-02T20:47:44.000Z
2020-08-02T20:47:44.000Z
algos/custom_ppo2.py
vijpandaturtle/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
null
null
null
algos/custom_ppo2.py
vijpandaturtle/learning-to-drive-in-5-minutes
fb82bc77593605711289e03f95dcfb6d3ea9e6c3
[ "MIT" ]
null
null
null
import time from collections import deque import gym import numpy as np from stable_baselines import logger, PPO2 from stable_baselines.a2c.utils import total_episode_reward_logger from stable_baselines.common import explained_variance, TensorboardWriter from stable_baselines.common.runners import AbstractEnvRunner fr...
52.213542
121
0.572569
9,617
0.959302
0
0
0
0
0
0
1,949
0.194414
f7fafc3eca2a0d5f684ce78dbf8d565f8e0da8a0
787
py
Python
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
19
2019-11-25T09:02:15.000Z
2021-07-24T12:05:28.000Z
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
1
2019-11-25T09:06:08.000Z
2019-11-25T09:06:08.000Z
craw/modules/trail/trails/feeds/urlvir.py
xuluhang/DomainBlockList
e9e69138ffdba6a73741fe204306f1f0b66eff19
[ "MIT" ]
10
2019-11-26T02:42:02.000Z
2021-08-28T07:16:08.000Z
#!/usr/bin/env python2 """ Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/) See the file 'LICENSE' for copying permission """ from craw.modules.trail.plugins.util import wget_content __url__ = "http://www.urlvir.com/export-hosts/" __check__ = "Updated on" __info__ = "malware" __ref...
23.848485
83
0.66709
0
0
0
0
0
0
0
0
247
0.31385
f7fb1109bf89db5bf87c82699fc7b9493c2500d3
1,035
py
Python
tests/continuous_integration.py
kfaRabi/online-judge-tools
79de8d37e1aa78a7c4c82c6a666f1f1602caf545
[ "MIT" ]
null
null
null
tests/continuous_integration.py
kfaRabi/online-judge-tools
79de8d37e1aa78a7c4c82c6a666f1f1602caf545
[ "MIT" ]
null
null
null
tests/continuous_integration.py
kfaRabi/online-judge-tools
79de8d37e1aa78a7c4c82c6a666f1f1602caf545
[ "MIT" ]
null
null
null
import os import subprocess import sys import unittest # TODO: these command should be written at once, at only .travis.yml or at only here paths = ['oj', 'onlinejudge', 'setup.py', 'tests'] class ContinuousIntegrationTest(unittest.TestCase): """A dummy test to run the commands same to CI on local environments"...
39.807692
127
0.68599
839
0.810628
0
0
694
0.670531
0
0
426
0.411594
f7fbd980831ccec066261d37e528035e5f2d7c7a
12,278
py
Python
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
open-hackathon-client/src/client/config_sample.py
overbest/open-hackathon
62e085fbe603bcb00ca56d2b96cfc43bf44c710b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # ----------------------------------------------------------------------------------- # Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softw...
42.93007
174
0.476136
0
0
0
0
0
0
0
0
6,557
0.534045
f7fbf451f7ab0b316753c8ad61a542b73cbff82d
14,904
py
Python
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
1
2022-03-28T22:18:09.000Z
2022-03-28T22:18:09.000Z
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
null
null
null
processing_provider/Rast_fillRasterwithPatches.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ fillRasterwithPatches.py *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Gene...
41.51532
135
0.541063
12,564
0.842091
0
0
0
0
0
0
3,151
0.211193
f7fc84f573aa97d3b828afe66e29e4f49f7bb79c
1,393
py
Python
quantlab/COCO/utils/inference.py
lukasc-ch/QuantLab
7ddcc51ec1131a58269768cd898ce04e8b49beb6
[ "Apache-2.0" ]
6
2019-05-24T17:39:07.000Z
2021-11-06T22:19:55.000Z
quantlab/COCO/utils/inference.py
lukasc-ch/QuantLab
7ddcc51ec1131a58269768cd898ce04e8b49beb6
[ "Apache-2.0" ]
null
null
null
quantlab/COCO/utils/inference.py
lukasc-ch/QuantLab
7ddcc51ec1131a58269768cd898ce04e8b49beb6
[ "Apache-2.0" ]
4
2019-05-24T17:39:15.000Z
2021-04-02T07:13:11.000Z
import matplotlib.patches as patches import matplotlib.pyplot as plt import numpy as np def view_instance(img, gt_label, pr_label=None): img = img.cpu() # gt_label = gt_label.cpu() # pr_label = pr_label.cpu() # c, h, w = img.shape # with open('/home/spmatteo/MSDocuments/QuantLab/COCO/coco.names', ...
42.212121
128
0.580761
0
0
0
0
0
0
0
0
1,109
0.796123
f7fcc0247bffa7d5ad90651380c319258f099e35
633
py
Python
dockwidhistory.py
kimoamer/Clinic-Manager
53184a4e8f369bf083109d065b2042fc7cf5bfbd
[ "MIT" ]
3
2021-05-12T01:05:12.000Z
2022-02-11T15:43:00.000Z
dockwidhistory.py
kimoamer/Clinic-Manager
53184a4e8f369bf083109d065b2042fc7cf5bfbd
[ "MIT" ]
null
null
null
dockwidhistory.py
kimoamer/Clinic-Manager
53184a4e8f369bf083109d065b2042fc7cf5bfbd
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QDialog from PyQt5.QtGui import QFont from PyQt5.QtCore import Qt from dockwina import Ui_Form as docka class Dialog(QDialog, docka): def __init__(self): super(Dialog, self).__init__() QDialog.__init__(self) self.setupUi(self) self.setWindowFlag...
33.315789
51
0.665087
493
0.778831
0
0
0
0
0
0
9
0.014218
f7fcf7559948b6752dd0ee377be44bd42c092522
351
py
Python
forest_lite/server/lib/palette.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
6
2020-08-05T16:12:57.000Z
2022-01-06T01:34:19.000Z
forest_lite/server/lib/palette.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
49
2020-08-14T13:58:32.000Z
2021-06-29T11:42:32.000Z
forest_lite/server/lib/palette.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
2
2020-12-03T09:24:13.000Z
2021-04-11T06:10:36.000Z
import bokeh.palettes def all_palettes(): """List of palette definitions""" for name in bokeh.palettes.all_palettes: for number in bokeh.palettes.all_palettes[name]: yield { "name": name, "number": number, "palette": bokeh.palettes.all_palett...
27
68
0.566952
0
0
326
0.928775
0
0
0
0
56
0.159544
f7fdd8880ea99f126ba61a61e3b34ab49ba52b93
1,549
py
Python
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
runtests.py
ombu/django-sortedm2m
2691cf00174577bc667d5d8c1d42071604ee2095
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import os, sys, warnings parent = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, parent) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") import django from django.core.management import exe...
28.163636
88
0.654616
0
0
0
0
0
0
0
0
443
0.285991