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
314ff3ce95a071becc9963a4bf86bce7daa74c66
2,465
py
Python
integration-test/830-windmill-zoom.py
roman-ianivskyy/vector-datasource
3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92
[ "MIT" ]
null
null
null
integration-test/830-windmill-zoom.py
roman-ianivskyy/vector-datasource
3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92
[ "MIT" ]
null
null
null
integration-test/830-windmill-zoom.py
roman-ianivskyy/vector-datasource
3d59c0d9856d6bc2a78c4a9273b4e850c2e41d92
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import dsl from shapely.wkt import loads as wkt_loads from . import FixtureTest class WindmillZoom(FixtureTest): def test_windmill_with_attraction(self): # update windmill zoom to 15 and if attraction zoom to 14 # windmill with tourism = attraction self.generate_...
79.516129
1,057
0.714807
2,355
0.955375
0
0
0
0
0
0
1,689
0.685193
3150323baad4c964b663614ac688ae658dd6c3a5
1,129
py
Python
tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.mo.front.common.partial_infer.utils import mo_array from openvino.tools.mo.ops.proposal import ProposalOp from openvino.tools.mo.front.caffe.collect_attributes import merge_attrs from openvino.tools.mo.front.extractor...
34.212121
72
0.681134
781
0.691763
0
0
689
0.610275
0
0
214
0.189548
315044a27a790f45a0932ccbc6e97fab229aec69
667
py
Python
mk42/apps/users/migrations/0003_auto_20170614_0038.py
vint21h/mk42
1574d1143ea829212203f2be0b11b44de1e7c722
[ "WTFPL" ]
5
2017-06-18T17:04:49.000Z
2017-11-02T11:44:36.000Z
mk42/apps/users/migrations/0003_auto_20170614_0038.py
vint21h/mk42
1574d1143ea829212203f2be0b11b44de1e7c722
[ "WTFPL" ]
13
2017-07-05T06:35:42.000Z
2017-09-06T02:04:04.000Z
mk42/apps/users/migrations/0003_auto_20170614_0038.py
vint21h/mk42
1574d1143ea829212203f2be0b11b44de1e7c722
[ "WTFPL" ]
10
2017-06-29T05:31:52.000Z
2017-10-27T09:31:32.000Z
# -*- coding: utf-8 -*- # mk42 # mk42/apps/users/migrations/0003_auto_20170614_0038.py # Generated by Django 1.11.2 on 2017-06-14 00:38 from __future__ import unicode_literals from django.db import ( migrations, models, ) class Migration(migrations.Migration): dependencies = [ ("users", "0002...
23
189
0.635682
430
0.644678
0
0
0
0
0
0
273
0.409295
315100585ad8fffd2754fc98108600f71764e4fa
3,271
py
Python
utils/datasets.py
LukasStruppek/Plug-and-Play-Attacks
f433f97531a5fb3e6f82965ecdde504e0eb1c4ab
[ "MIT" ]
null
null
null
utils/datasets.py
LukasStruppek/Plug-and-Play-Attacks
f433f97531a5fb3e6f82965ecdde504e0eb1c4ab
[ "MIT" ]
null
null
null
utils/datasets.py
LukasStruppek/Plug-and-Play-Attacks
f433f97531a5fb3e6f82965ecdde504e0eb1c4ab
[ "MIT" ]
1
2022-02-09T07:06:09.000Z
2022-02-09T07:06:09.000Z
import pickle import pandas as pd import torch import torch.nn as nn import torchvision.transforms as T from torch.utils import data from torch.utils.data import random_split from torch.utils.data.dataloader import DataLoader from torch.utils.data.dataset import Dataset from datasets.celeba import CelebA1000 from dat...
33.040404
78
0.697035
0
0
0
0
0
0
0
0
448
0.136961
31517240d14ea2064075bc5b5b6dfd061de1cb2d
8,594
py
Python
applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
2
2020-04-30T19:13:08.000Z
2021-04-14T19:40:47.000Z
applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
1
2020-04-30T19:19:09.000Z
2020-05-02T14:22:36.000Z
applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py
AndreaVoltan/MyKratos7.0
e977752722e8ef1b606f25618c4bf8fd04c434cc
[ "BSD-4-Clause" ]
1
2020-06-12T08:51:24.000Z
2020-06-12T08:51:24.000Z
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 from KratosMultiphysics import * from KratosMultiphysics.IncompressibleFluidApplication import * from KratosMultiphysics.FluidDynamicsApplication import * from KratosMultiphysics.Exter...
40.729858
155
0.728764
0
0
0
0
0
0
0
0
2,309
0.268676
3152a37b3680f114e554c550f939501a4b8c1547
4,475
py
Python
src/ga4gh/vrs/extras/vcf_annotation.py
reece/vmc-python
579e73063a6927f2a2734fa47b7efc7416ca2a25
[ "Apache-2.0" ]
1
2017-01-10T18:47:54.000Z
2017-01-10T18:47:54.000Z
src/ga4gh/vrs/extras/vcf_annotation.py
reece/vmc-python
579e73063a6927f2a2734fa47b7efc7416ca2a25
[ "Apache-2.0" ]
null
null
null
src/ga4gh/vrs/extras/vcf_annotation.py
reece/vmc-python
579e73063a6927f2a2734fa47b7efc7416ca2a25
[ "Apache-2.0" ]
null
null
null
""" Annotate VCF files with VRS Input Format: VCF Output Format: VCF The user should pass arguments for the VCF input, VCF output, & the vrs object file name. ex. python3 src/ga4gh/vrs/extras/vcf_annotation.py input.vcf.gz --out ./output.vcf.gz --vrs-file ./vrs_objects.pkl """ import argparse import sys import pick...
36.382114
104
0.666592
2,848
0.636425
0
0
0
0
0
0
2,171
0.48514
3153b18dc5b355a77d44d559ba2a0ad4652444b2
11,438
py
Python
ci/infra/testrunner/utils/utils.py
butsoleg/skuba
1a363d4f3ca8fc33bfb0284043da26fe879c31a3
[ "Apache-2.0" ]
null
null
null
ci/infra/testrunner/utils/utils.py
butsoleg/skuba
1a363d4f3ca8fc33bfb0284043da26fe879c31a3
[ "Apache-2.0" ]
null
null
null
ci/infra/testrunner/utils/utils.py
butsoleg/skuba
1a363d4f3ca8fc33bfb0284043da26fe879c31a3
[ "Apache-2.0" ]
null
null
null
import glob import hashlib import logging import os import shutil import subprocess from functools import wraps from tempfile import gettempdir from threading import Thread import requests from timeout_decorator import timeout from utils.constants import Constant from utils.format import Format logger = logging.getL...
37.016181
128
0.573439
10,622
0.928659
0
0
3,568
0.311943
0
0
4,035
0.352771
3154dea931b787a54d8711fa79545f3f1aea8641
1,076
py
Python
nonebot/command/argfilter/controllers.py
EVAyo/nonebot
2780ea4e8a1b6bb961f95a86e7e6b3983badf75f
[ "MIT" ]
676
2018-12-28T09:53:51.000Z
2020-04-10T16:28:57.000Z
nonebot/command/argfilter/controllers.py
EVAyo/nonebot
2780ea4e8a1b6bb961f95a86e7e6b3983badf75f
[ "MIT" ]
133
2018-12-27T16:01:35.000Z
2020-04-11T04:49:01.000Z
nonebot/command/argfilter/controllers.py
EVAyo/nonebot
2780ea4e8a1b6bb961f95a86e7e6b3983badf75f
[ "MIT" ]
164
2019-01-02T07:40:33.000Z
2020-04-11T06:54:30.000Z
""" 提供几种常用的控制器。 这些验证器通常需要提供一些参数进行一次调用,返回的结果才是真正的验证器,其中的技巧在于通过闭包使要控制的对象能够被内部函数访问。 版本: 1.3.0+ """ import re from nonebot import CommandSession from nonebot.helpers import render_expression def handle_cancellation(session: CommandSession): """ 在用户发送 `算了`、`不用了`、`取消吧`、`停` 之类的话的时候,结束当前传入的命令会话(调用 `session.finish(...
20.692308
115
0.621747
0
0
0
0
0
0
0
0
770
0.535466
31580ef618e975209c707f821f01726f7b8d5bf6
21,726
py
Python
hnn_core/dipole.py
chenghuzi/hnn-core
b974fed4317b9b03ec732850829d9c17841c6ee2
[ "BSD-3-Clause" ]
null
null
null
hnn_core/dipole.py
chenghuzi/hnn-core
b974fed4317b9b03ec732850829d9c17841c6ee2
[ "BSD-3-Clause" ]
null
null
null
hnn_core/dipole.py
chenghuzi/hnn-core
b974fed4317b9b03ec732850829d9c17841c6ee2
[ "BSD-3-Clause" ]
null
null
null
"""Class to handle the dipoles.""" # Authors: Mainak Jas <mjas@mgh.harvard.edu> # Sam Neymotin <samnemo@gmail.com> import warnings import numpy as np from copy import deepcopy from .viz import plot_dipole, plot_psd, plot_tfr_morlet def simulate_dipole(net, tstop, dt=0.025, n_trials=None, record_vsoma=Fals...
36.270451
79
0.589708
13,552
0.623769
0
0
0
0
0
0
13,748
0.63279
315848ad3b388abc47c5004cde951c763a8f0cc9
9,728
py
Python
openstates/openstates-master/openstates/ga/bills.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ga/bills.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ga/bills.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
from billy.scrape.bills import BillScraper, Bill from billy.scrape.votes import Vote from collections import defaultdict from .util import get_client, get_url, backoff # Methods (7): # GetLegislationDetail(xs:int LegislationId, ) # # GetLegislationDetailByDescription(ns2:DocumentType Docu...
36.298507
82
0.42722
8,695
0.893812
0
0
0
0
0
0
2,950
0.303248
31586b0e8440ac0fb7f47895645a135f6339d512
15,014
py
Python
data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
import argparse import numpy as np import glob import re from log import print_to_file from scipy.fftpack import fftn, ifftn from skimage.feature import peak_local_max, canny from skimage.transform import hough_circle import pickle as pickle from paths import TRAIN_DATA_PATH, LOGS_PATH, PKL_TRAIN_DATA_PATH, PK...
39.719577
128
0.566405
0
0
0
0
0
0
0
0
2,413
0.160717
31594d1cfb6364ea7147487913cd57829792bf34
2,530
py
Python
scrapers/scrapsfbos.py
ndd365/showup
fae0cdc52d306e6bbb538e8f66afe1d7a51006b8
[ "MIT" ]
48
2016-12-12T13:59:30.000Z
2021-01-22T01:34:39.000Z
scrapers/scrapsfbos.py
ndd365/showup
fae0cdc52d306e6bbb538e8f66afe1d7a51006b8
[ "MIT" ]
null
null
null
scrapers/scrapsfbos.py
ndd365/showup
fae0cdc52d306e6bbb538e8f66afe1d7a51006b8
[ "MIT" ]
4
2017-02-02T16:59:47.000Z
2017-08-23T11:05:47.000Z
import feedparser from bs4 import BeautifulSoup from dateutil.parser import parse from datetime import timedelta import pytz from apiclient.discovery import build from httplib2 import Http from oauth2client import file, client, tools from oauth2client.service_account import ServiceAccountCredentials scopes = 'https:...
24.326923
98
0.650988
218
0.086166
0
0
0
0
0
0
377
0.149012
315a3b06d331b60c879edde3bb3f8225ff91970d
2,280
py
Python
app/api/v2/models/product.py
danuluma/dannstore
e5b59f08542c1cacdac60e380b5c2945195ba64a
[ "MIT" ]
null
null
null
app/api/v2/models/product.py
danuluma/dannstore
e5b59f08542c1cacdac60e380b5c2945195ba64a
[ "MIT" ]
21
2018-10-16T09:29:03.000Z
2022-03-11T23:31:35.000Z
app/api/v2/models/product.py
danuluma/dannstore
e5b59f08542c1cacdac60e380b5c2945195ba64a
[ "MIT" ]
null
null
null
import os import sys LOCALPATH = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, LOCALPATH + '/../../../../') from app.api.v2.db import Db def format_book(book): """Formats the results to a dictionary""" book = { "id": book[0], "title": book[1], "description": book[2],...
29.230769
251
0.542105
1,694
0.742982
0
0
0
0
0
0
987
0.432895
315b4dedab79caa0f06b6a0165468d87637edc35
13,809
py
Python
pbq/pbq.py
amirdor/pbq
7e83a461c10d1d7284ccfb0ad278285be57d859d
[ "MIT" ]
null
null
null
pbq/pbq.py
amirdor/pbq
7e83a461c10d1d7284ccfb0ad278285be57d859d
[ "MIT" ]
null
null
null
pbq/pbq.py
amirdor/pbq
7e83a461c10d1d7284ccfb0ad278285be57d859d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Main module.""" import os from google.cloud import bigquery from pbq.query import Query from google.cloud import bigquery_storage_v1beta1 from google.cloud.exceptions import NotFound from google.api_core.exceptions import BadRequest import pandas as pd import datetime class PBQ(object): ...
33.194712
119
0.608444
13,509
0.978275
0
0
7,483
0.541893
0
0
6,930
0.501847
315b6ac655327cef9390472518effc0e9ec5a90d
14,829
py
Python
appvalidator/specprocessor.py
mstriemer/app-validator
ceaa373965192e3e08e7b38476cca09d44b345e7
[ "BSD-3-Clause" ]
20
2015-01-16T21:35:27.000Z
2021-11-11T00:22:43.000Z
appvalidator/specprocessor.py
mstriemer/app-validator
ceaa373965192e3e08e7b38476cca09d44b345e7
[ "BSD-3-Clause" ]
14
2015-01-15T21:26:33.000Z
2016-01-18T16:47:15.000Z
appvalidator/specprocessor.py
mstriemer/app-validator
ceaa373965192e3e08e7b38476cca09d44b345e7
[ "BSD-3-Clause" ]
14
2015-02-14T22:42:40.000Z
2021-11-11T00:22:33.000Z
import re import types from functools import partial LITERAL_TYPE = types.StringTypes + (int, float, long, bool, ) class Spec(object): """ This object, when overridden with an object that implements a file format specification, will perform validation on a given parsed version of the format input. ...
43.872781
80
0.534763
14,709
0.991908
0
0
0
0
0
0
5,607
0.37811
315b8d418921022e63456c61eb0e983243286ff8
245
py
Python
head_first_v2/ch4/modules/setup.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
head_first_v2/ch4/modules/setup.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
head_first_v2/ch4/modules/setup.py
alex-d-bondarev/learn-python
b119cb1e09a57e93abc73383c014cc8ceba18acf
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='lsearch', version='1.0', description='The Head First Python Search Tools', author='HF Python 2e', author_email='hfpy2e@gmail.com', url='headfirstlabs.com', py_modules=['lsearch'], )
24.5
109
0.685714
0
0
0
0
0
0
0
0
110
0.44898
315b93d96e58679d201ae083e0a5ae302d382049
1,519
py
Python
desktop_local_tests/windows/test_windows_public_ip_disrupt_reorder_adapters.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
219
2017-12-12T09:42:46.000Z
2022-03-13T08:25:13.000Z
desktop_local_tests/windows/test_windows_public_ip_disrupt_reorder_adapters.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
11
2017-12-14T08:14:51.000Z
2021-08-09T18:37:45.000Z
desktop_local_tests/windows/test_windows_public_ip_disrupt_reorder_adapters.py
UAEKondaya1/expressvpn_leak_testing
9e4cee899ac04f7820ac351fa55efdc0c01370ba
[ "MIT" ]
45
2017-12-14T07:26:36.000Z
2022-03-11T09:36:56.000Z
from desktop_local_tests.public_ip_during_disruption import PublicIPDuringDisruptionTestCase from desktop_local_tests.windows.windows_reorder_adapters_disrupter import WindowsReorderAdaptersDisrupter class TestWindowsPublicIPDisruptReorderAdapters(PublicIPDuringDisruptionTestCase): '''Summary: Tests whether ...
36.166667
106
0.768269
1,317
0.867018
0
0
0
0
0
0
1,104
0.726794
315c5ece992cd3a2685eecad7131fd0199252e5a
16,739
py
Python
rotkehlchen/api/server.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
137
2018-03-05T11:53:29.000Z
2019-11-03T16:38:42.000Z
rotkehlchen/api/server.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
385
2018-03-08T12:43:41.000Z
2019-11-10T09:15:36.000Z
rotkehlchen/api/server.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
59
2018-03-08T10:08:27.000Z
2019-10-26T11:30:44.000Z
import json import logging from http import HTTPStatus from typing import Any, Dict, List, Optional, Tuple, Type, Union import werkzeug from flask import Blueprint, Flask, Response, abort, jsonify from flask.views import MethodView from flask_cors import CORS from gevent.pywsgi import WSGIServer from geventwebsocket i...
38.837587
98
0.714798
3,098
0.185077
0
0
1,330
0.079455
0
0
4,449
0.265786
315c82c7ef0cdf26d1ed8dc3787880aa67476f2f
1,329
py
Python
stability/stairs_contacts.py
haudren/stability-polygon
b5e42bbd6eda2426a2c0d70716fbf956ce63f290
[ "MIT" ]
null
null
null
stability/stairs_contacts.py
haudren/stability-polygon
b5e42bbd6eda2426a2c0d70716fbf956ce63f290
[ "MIT" ]
null
null
null
stability/stairs_contacts.py
haudren/stability-polygon
b5e42bbd6eda2426a2c0d70716fbf956ce63f290
[ "MIT" ]
null
null
null
import numpy as np pos = [] normals = [] p = [[-0.4722227, -0.24517583, -0.6370031]] n = [[2.02215104e-04, -3.23903880e-05, 9.99999979e-01]] pos.append(p) normals.append(n) p = [[-0.2549828, -0.24587737, -0.63704705]] n = [[2.02215104e-04, -3.23903880e-05, 9.99999979e-01]] pos.append(p) normals.append(n) p = [[-0.2...
23.315789
57
0.653123
0
0
0
0
0
0
0
0
386
0.290444
315dcc7fa72c3932ae805d3e9b9008f00630dab8
15,428
py
Python
generator/framework/analyser/analyser.py
sinsay/ds_generator
9365e22e8730418caf29b8ed6ada1f30f936a297
[ "Apache-2.0" ]
null
null
null
generator/framework/analyser/analyser.py
sinsay/ds_generator
9365e22e8730418caf29b8ed6ada1f30f936a297
[ "Apache-2.0" ]
null
null
null
generator/framework/analyser/analyser.py
sinsay/ds_generator
9365e22e8730418caf29b8ed6ada1f30f936a297
[ "Apache-2.0" ]
null
null
null
import inspect import re import types from collections import namedtuple from typing import List, Union, Dict from flask_restplus import fields from ...common import MetaData, Entry, Arg, ArgSource, RpcType,\ type_def, rpc_doc_args_key, rpc_doc_resp_key, rpc_impl_rename from ...common.web.namespace import get_nam...
29.899225
118
0.598004
1,463
0.08809
0
0
1,353
0.081467
0
0
4,070
0.245063
315e0a58614b3057e6b0218dbfb71a1a5db2f377
5,306
py
Python
bot/helper/mirror_utils/download_utils/telegram_downloader.py
vincreator/Eunha
85a702a5b5f30ccea1798122c261d4ff07fe0c0c
[ "Apache-2.0" ]
null
null
null
bot/helper/mirror_utils/download_utils/telegram_downloader.py
vincreator/Eunha
85a702a5b5f30ccea1798122c261d4ff07fe0c0c
[ "Apache-2.0" ]
null
null
null
bot/helper/mirror_utils/download_utils/telegram_downloader.py
vincreator/Eunha
85a702a5b5f30ccea1798122c261d4ff07fe0c0c
[ "Apache-2.0" ]
null
null
null
import logging import random from time import time from threading import RLock, Lock, Thread from bot import LOGGER, download_dict, download_dict_lock, app, STOP_DUPLICATE, STORAGE_THRESHOLD from bot.helper.ext_utils.bot_utils import get_readable_file_size from ..status_utils.telegram_download_status import TelegramD...
40.503817
104
0.604222
4,631
0.872786
0
0
146
0.027516
0
0
533
0.100452
315f8e1d96aaa1b3755c0089f370b7d2dae3e33b
646
py
Python
setup.py
goofmint/qualityforward-py
299c11cb4769fb8c42bfd2d553a5c1c1f042d2de
[ "MIT" ]
null
null
null
setup.py
goofmint/qualityforward-py
299c11cb4769fb8c42bfd2d553a5c1c1f042d2de
[ "MIT" ]
null
null
null
setup.py
goofmint/qualityforward-py
299c11cb4769fb8c42bfd2d553a5c1c1f042d2de
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name="qualityforward", version="1.1", author="Atsushi Nakatsugawa", author_email="atsushi@moongift.jp", description="Python library for QualityForward API", long_description="This is python library for QualityForward API. QualityForward is cloud based test m...
34
125
0.695046
0
0
0
0
0
0
0
0
367
0.568111
31615431c1549d43bb6f82b1e2019a1850b2c3a4
1,945
py
Python
backend/trips/models.py
repeating/PoputchikiInno
54b60cfd3c40a25357667c4044fd477f3b6b9152
[ "CC-BY-4.0" ]
20
2021-09-23T16:33:34.000Z
2022-01-08T08:56:10.000Z
backend/trips/models.py
repeating/PoputchikiInno
54b60cfd3c40a25357667c4044fd477f3b6b9152
[ "CC-BY-4.0" ]
null
null
null
backend/trips/models.py
repeating/PoputchikiInno
54b60cfd3c40a25357667c4044fd477f3b6b9152
[ "CC-BY-4.0" ]
2
2021-09-23T16:31:39.000Z
2021-12-17T01:02:01.000Z
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, AbstractUser from django.utils import timezone from django.utils.translation import gettext as _ from django import forms from django.contrib.auth.hashers import make_password from django.contrib.auth import get_user...
32.966102
87
0.684833
1,480
0.760925
0
0
538
0.276607
0
0
173
0.088946
31617ded12576d7c4174e3e0dd3d96d3659501e5
6,957
py
Python
jcs/jcs_main.py
orenmel/lexsub
4197fccf489670fdc4e5510971f4288b9d0b1625
[ "Apache-2.0" ]
26
2016-07-28T03:05:07.000Z
2021-05-14T05:02:38.000Z
jcs/jcs_main.py
afcarl/lexsub
4197fccf489670fdc4e5510971f4288b9d0b1625
[ "Apache-2.0" ]
11
2018-09-14T12:20:25.000Z
2021-05-03T18:54:42.000Z
jcs/jcs_main.py
afcarl/lexsub
4197fccf489670fdc4e5510971f4288b9d0b1625
[ "Apache-2.0" ]
18
2016-11-15T14:15:23.000Z
2022-03-15T23:41:57.000Z
''' Run lexical substitution experiments ''' import sys import time import argparse import re import numpy from jcs.jcs_io import extract_word_weight from jcs.data.context_instance import ContextInstance from jcs.jcs_io import vec_to_str from jcs.jcs_io import vec_to_str_generated from jcs.cs_embedd...
44.883871
193
0.655455
0
0
0
0
0
0
0
0
1,817
0.261176
3162214c539ed97be79534accd9664fa733e424a
151
py
Python
src/django_richenum/__init__.py
adepue/django-richenum
20cacb6ee1c8f2ad9877dd647c21a3b3f37a4333
[ "MIT" ]
null
null
null
src/django_richenum/__init__.py
adepue/django-richenum
20cacb6ee1c8f2ad9877dd647c21a3b3f37a4333
[ "MIT" ]
null
null
null
src/django_richenum/__init__.py
adepue/django-richenum
20cacb6ee1c8f2ad9877dd647c21a3b3f37a4333
[ "MIT" ]
null
null
null
__version__ = 'unknown' try: __version__ = __import__('pkg_resources').get_distribution('django_richenum').version except Exception as e: pass
25.166667
89
0.761589
0
0
0
0
0
0
0
0
41
0.271523
31642639391c00a85e1a2f3c4f186e8a38649689
5,572
py
Python
scripts/v.py
NatashaChopper/stage
b33654b6bfaa7d291e80327d83cd6849271cc656
[ "BSD-2-Clause" ]
null
null
null
scripts/v.py
NatashaChopper/stage
b33654b6bfaa7d291e80327d83cd6849271cc656
[ "BSD-2-Clause" ]
null
null
null
scripts/v.py
NatashaChopper/stage
b33654b6bfaa7d291e80327d83cd6849271cc656
[ "BSD-2-Clause" ]
null
null
null
import numpy with open ("dic.txt", "w", encoding="utf-8") as dic: for x in range(5, 790, 1): if 92 < x <= 113: dic.write('"'+str(x)+'"'+":"+ '"'+'1'+'",') elif 113 < x <= 133: dic.write('"'+str(x)+'"'+":"+ '"'+'2'+'",') elif 133 < x <= 153: dic.w...
43.193798
59
0.288227
0
0
0
0
0
0
0
0
1,250
0.224336
316518dbc6fa99ee74801a883d9600ed91d0c3e7
1,101
py
Python
scrim/globals.py
danbradham/scrim
982a5db1db6e4ef40267f15642af2c7ea0e803ae
[ "MIT" ]
4
2018-06-21T20:14:11.000Z
2021-04-28T20:34:43.000Z
scrim/globals.py
danbradham/scrim
982a5db1db6e4ef40267f15642af2c7ea0e803ae
[ "MIT" ]
null
null
null
scrim/globals.py
danbradham/scrim
982a5db1db6e4ef40267f15642af2c7ea0e803ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' ============= scrim.globals ============= Defines variables passed into the python script via Environment Variables by scrim scripts. If SCRIM_SHELL is None, then the python script was not executed by a scrim script. SHELLS (list): list of available shells SCRIM_SHELL (str): Parent ...
32.382353
78
0.710263
0
0
0
0
0
0
0
0
782
0.710263
31658cd3302ac85eb923cde2f7d6f6b205979a8e
675
py
Python
examples/Api/channels.py
asheshambasta/csound-expression
290567231c1d658e07ba882b1d1c726c96af67ce
[ "BSD-3-Clause" ]
null
null
null
examples/Api/channels.py
asheshambasta/csound-expression
290567231c1d658e07ba882b1d1c726c96af67ce
[ "BSD-3-Clause" ]
null
null
null
examples/Api/channels.py
asheshambasta/csound-expression
290567231c1d658e07ba882b1d1c726c96af67ce
[ "BSD-3-Clause" ]
null
null
null
import csnd6 class Control: def __init__(self, volume, frequency): engine = csnd6.Csound() engine.SetOption("-odac") engine.Compile("osc.csd") thread = csnd6.CsoundPerformanceThread(engine) thread.Play() self.engine = engine self.thread = th...
25
55
0.58963
645
0.955556
0
0
0
0
0
0
35
0.051852
31679637922287de633bd72c77660e49f2f5bfb1
2,693
py
Python
virtual/lib/python3.6/site-packages/isbnlib/_goob.py
david12-wq/PITCHE_APP
258e88a91a3f77fc316ece49edee6aa11eaaf2e0
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/isbnlib/_goob.py
david12-wq/PITCHE_APP
258e88a91a3f77fc316ece49edee6aa11eaaf2e0
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/isbnlib/_goob.py
david12-wq/PITCHE_APP
258e88a91a3f77fc316ece49edee6aa11eaaf2e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Query the Google Books (JSON API v1) service for metadata.""" import logging from .dev import stdmeta from .dev._bouth23 import u from .dev._exceptions import ISBNNotConsistentError, RecordMappingError from .dev.webquery import query as wquery UA = 'isbnlib (gzip)' SERVICE_URL = ( 'htt...
37.402778
79
0.625325
0
0
0
0
0
0
0
0
1,156
0.429261
3169b8c988e95bc8f6880f27dbdb8bd8e3429cbb
1,949
py
Python
gdxpds/test/conftest.py
cdgaete/gdx-pandas
2b9b00a177268227bce189939cdab081e09cb0dc
[ "BSD-3-Clause" ]
42
2016-02-24T04:23:24.000Z
2022-02-02T09:42:18.000Z
gdxpds/test/conftest.py
cdgaete/gdx-pandas
2b9b00a177268227bce189939cdab081e09cb0dc
[ "BSD-3-Clause" ]
68
2015-08-06T14:25:22.000Z
2022-01-03T13:38:51.000Z
gdxpds/test/conftest.py
cdgaete/gdx-pandas
2b9b00a177268227bce189939cdab081e09cb0dc
[ "BSD-3-Clause" ]
21
2017-04-25T06:21:42.000Z
2021-08-24T14:01:27.000Z
# [LICENSE] # Copyright (c) 2020, Alliance for Sustainable Energy. # 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 no...
39.77551
69
0.75372
0
0
0
0
127
0.065162
0
0
1,681
0.862494
3169daa74af1845e0439f54da803485adef48067
11,534
py
Python
jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py
Taekyoon/executors
567f12c4193bb7be814f84540ea31585cd35b344
[ "Apache-2.0" ]
29
2021-07-26T07:16:38.000Z
2022-03-27T15:10:34.000Z
jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py
Taekyoon/executors
567f12c4193bb7be814f84540ea31585cd35b344
[ "Apache-2.0" ]
176
2021-07-23T08:30:21.000Z
2022-03-14T12:29:06.000Z
jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py
Taekyoon/executors
567f12c4193bb7be814f84540ea31585cd35b344
[ "Apache-2.0" ]
16
2021-07-26T20:55:40.000Z
2022-03-18T15:32:17.000Z
import os import time from pathlib import Path import numpy as np import pytest from jina import Document, DocumentArray, Executor, Flow from jina.logging.profile import TimeContext from jina_commons.indexers.dump import import_metas, import_vectors from ..postgres_indexer import PostgreSQLStorage from ..postgreshand...
32.398876
86
0.660135
0
0
1,555
0.134819
8,400
0.728282
0
0
1,290
0.111843
3169e4d8e7a2dd174944cc17f672b8a7919b6ebd
1,928
py
Python
targhe/models.py
luca772005/studio
8d19d28f13f400aa4dde84c36e44cf5891d18ddd
[ "MIT" ]
null
null
null
targhe/models.py
luca772005/studio
8d19d28f13f400aa4dde84c36e44cf5891d18ddd
[ "MIT" ]
null
null
null
targhe/models.py
luca772005/studio
8d19d28f13f400aa4dde84c36e44cf5891d18ddd
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Tipo(models.Model): descrizione = models.CharField(blank=False, null=False, max_length=128) def __unicode__(self): return "{}".format(self.descrizione) class Meta: verbose_name_plural = 'Tipi' class Marca(models.Model): ...
26.410959
77
0.688278
1,852
0.960581
0
0
0
0
0
0
106
0.054979
316ab7186375a4578bd0e98836f8f14461a4cb68
42
py
Python
WhatSender/__init__.py
Shauryasamant/whatsender
057a3f971667ea8992d6645645854604c3c4d071
[ "Unlicense" ]
1
2022-01-04T10:48:06.000Z
2022-01-04T10:48:06.000Z
WhatSender/__init__.py
Shauryasamant/whatsender
057a3f971667ea8992d6645645854604c3c4d071
[ "Unlicense" ]
null
null
null
WhatSender/__init__.py
Shauryasamant/whatsender
057a3f971667ea8992d6645645854604c3c4d071
[ "Unlicense" ]
2
2022-01-05T04:14:28.000Z
2022-02-12T07:49:15.000Z
from WhatSender.sender import SendMessage
21
41
0.880952
0
0
0
0
0
0
0
0
0
0
316b197711d08876516f43059dd4d069e90c4efc
9,605
py
Python
scenarios/sync_sheets_and_groups.py
Ragnaruk/api_integration
a91b955ff09830a29829f9b820355045e724f83e
[ "MIT" ]
null
null
null
scenarios/sync_sheets_and_groups.py
Ragnaruk/api_integration
a91b955ff09830a29829f9b820355045e724f83e
[ "MIT" ]
null
null
null
scenarios/sync_sheets_and_groups.py
Ragnaruk/api_integration
a91b955ff09830a29829f9b820355045e724f83e
[ "MIT" ]
null
null
null
import pickle from time import sleep import googleapiclient.errors from transliterate import translit from logs.logging import get_logger from api_google.google_api_sheets import get_sheets_service, get_multiple_ranges from api_google.google_api_directory import get_directory_service, get_users_for_domain, \ get_...
38.42
100
0.504112
0
0
0
0
0
0
0
0
5,001
0.520666
316b518ce4f1c79a069f5d1878febd49adb00f4b
15,524
py
Python
src/GridCal/Gui/TowerBuilder/gui.py
SanPen/GridCal
fd3c24afff91325b8b682b03cab2b8b8edcdda57
[ "BSD-3-Clause" ]
284
2016-01-31T03:20:44.000Z
2022-03-17T21:16:52.000Z
src/GridCal/Gui/TowerBuilder/gui.py
SanPen/GridCal
fd3c24afff91325b8b682b03cab2b8b8edcdda57
[ "BSD-3-Clause" ]
94
2016-01-14T13:37:40.000Z
2022-03-28T03:13:56.000Z
src/GridCal/Gui/TowerBuilder/gui.py
SanPen/GridCal
fd3c24afff91325b8b682b03cab2b8b8edcdda57
[ "BSD-3-Clause" ]
84
2016-03-29T10:43:04.000Z
2022-02-22T16:26:55.000Z
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'gui.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ######################...
42.883978
134
0.706648
14,979
0.964893
0
0
0
0
0
0
2,060
0.132698
316d44c48b3f5f89c962c9581225af2c135bfd22
15,800
py
Python
PythonAPI/util/check_lidar_bb.py
inverted-ai/carla
4233fe931073fdd47ee72cc841c4de15aba68386
[ "MIT" ]
null
null
null
PythonAPI/util/check_lidar_bb.py
inverted-ai/carla
4233fe931073fdd47ee72cc841c4de15aba68386
[ "MIT" ]
null
null
null
PythonAPI/util/check_lidar_bb.py
inverted-ai/carla
4233fe931073fdd47ee72cc841c4de15aba68386
[ "MIT" ]
1
2020-03-09T20:34:51.000Z
2020-03-09T20:34:51.000Z
#!/usr/bin/env python # Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ Lidar/BB check for CARLA This script obtains the LiDAR's point cloud cor...
42.473118
131
0.641582
4,138
0.261899
0
0
0
0
0
0
4,431
0.280443
316eeacabbf87d7b1bf94354ea4d069d44ec787b
1,797
py
Python
claim.py
bukovyn/claim
506bee564368e991c316e728e211d81cf7cba870
[ "MIT" ]
null
null
null
claim.py
bukovyn/claim
506bee564368e991c316e728e211d81cf7cba870
[ "MIT" ]
null
null
null
claim.py
bukovyn/claim
506bee564368e991c316e728e211d81cf7cba870
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Text files created on DOS/Windows machines have different line endings than files created on Unix/Linux. DOS uses carriage return and new line ("\r\n") as a line ending, while Unix uses just new line ("\n"). The purpose of this script is to have a quick, on the go, shell friendly...
26.820896
88
0.608236
0
0
0
0
0
0
0
0
957
0.532554
316f081d38d5db97224f8daf18cc8e5e6ca27466
138
py
Python
reference/Python/media/moviepy/audio/extract_audio.py
steadylearner/code
ba6df6c38a6e25b7ea996f4df905921e27760e04
[ "MIT" ]
4
2019-07-17T14:43:32.000Z
2022-03-27T21:38:01.000Z
reference/Python/media/moviepy/audio/extract_audio.py
steadylearner/code
ba6df6c38a6e25b7ea996f4df905921e27760e04
[ "MIT" ]
39
2020-09-04T03:31:16.000Z
2022-03-08T22:54:03.000Z
reference/Python/media/moviepy/audio/extract_audio.py
steadylearner/code
ba6df6c38a6e25b7ea996f4df905921e27760e04
[ "MIT" ]
1
2021-03-03T13:04:28.000Z
2021-03-03T13:04:28.000Z
import sys from moviepy.editor import * clip = VideoFileClip(sys.argv[1]) audioclip = clip.audio audioclip.write_audiofile(sys.argv[2])
17.25
38
0.775362
0
0
0
0
0
0
0
0
0
0
316f355464f64ade9dfc879dc379fa3194ccd5a6
363
py
Python
objettoqt/mixins.py
brunonicko/objettoqt
1a91ef58d4540b7f377e405492d35ccd222d71d5
[ "MIT" ]
null
null
null
objettoqt/mixins.py
brunonicko/objettoqt
1a91ef58d4540b7f377e405492d35ccd222d71d5
[ "MIT" ]
null
null
null
objettoqt/mixins.py
brunonicko/objettoqt
1a91ef58d4540b7f377e405492d35ccd222d71d5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Mix-in classes for `Qt` types.""" from ._mixins import ( OQAbstractItemModelMixin, OQAbstractItemViewMixin, OQObjectMixin, OQWidgetMixin, ) from ._views import OQListViewMixin __all__ = [ "OQObjectMixin", "OQWidgetMixin", "OQAbstractItemModelMixin", "OQAbstra...
19.105263
36
0.683196
0
0
0
0
0
0
0
0
157
0.432507
316f3a2d1cd58368907db8ec0798ba08d6c7d1c7
527
py
Python
util/mccLog.py
ccchooko/webControlClient
f12cf76d364c5270166c99a508d08999c7ed920c
[ "Apache-2.0" ]
null
null
null
util/mccLog.py
ccchooko/webControlClient
f12cf76d364c5270166c99a508d08999c7ed920c
[ "Apache-2.0" ]
null
null
null
util/mccLog.py
ccchooko/webControlClient
f12cf76d364c5270166c99a508d08999c7ed920c
[ "Apache-2.0" ]
null
null
null
#-*-coding:utf8-*- import logging from datetime import datetime class mccLog(object): def __init__(self): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s', datefmt='%Y-%m-%d %H:%M:%S', filename= datetime.now().strftime("...
29.277778
75
0.580645
461
0.874763
0
0
0
0
0
0
99
0.187856
31705467ec2a06cfd21ab38f7b5f8cfa554d22cc
1,066
py
Python
Learning-Python/Jumble-Solver/jumble_solver.py
oliverkeen/Sandbox
40e2a9239a81ebaeff6e7b34ed8329c6796d71f5
[ "MIT" ]
null
null
null
Learning-Python/Jumble-Solver/jumble_solver.py
oliverkeen/Sandbox
40e2a9239a81ebaeff6e7b34ed8329c6796d71f5
[ "MIT" ]
null
null
null
Learning-Python/Jumble-Solver/jumble_solver.py
oliverkeen/Sandbox
40e2a9239a81ebaeff6e7b34ed8329c6796d71f5
[ "MIT" ]
null
null
null
# Oliver Keen # Software Engineering 001 # jumble_solver.py # 2/17/2021 # Assignment: # Consider the game "Jumble" # https://www.sandiegouniontribune.com/sd-jumble-daily-htmlstory.html # Create a Python program to find the individual words in Jumble puzzles such # that INJURE prints after entering the following: solve...
28.810811
78
0.673546
0
0
0
0
0
0
0
0
545
0.511257
317065682fd309f044a68646decdf80a32e30ac3
19,137
py
Python
msm/skill_entry.py
luca-vercelli/mycroft-skills-manager
e8ac06132ca5d5fe8a56efdd28ee3968958d3323
[ "Apache-2.0" ]
null
null
null
msm/skill_entry.py
luca-vercelli/mycroft-skills-manager
e8ac06132ca5d5fe8a56efdd28ee3968958d3323
[ "Apache-2.0" ]
null
null
null
msm/skill_entry.py
luca-vercelli/mycroft-skills-manager
e8ac06132ca5d5fe8a56efdd28ee3968958d3323
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 Mycroft AI, Inc. # # This file is part of Mycroft Skills Manager # (see https://github.com/MycroftAI/mycroft-skills-manager). # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional inf...
34.234347
87
0.576684
15,766
0.823849
136
0.007107
8,680
0.453572
0
0
4,297
0.224539
3170ca6ee7a6eb3f4bee950684186e4a99de1a8e
1,356
py
Python
sleekxmpp/plugins/xep_0027/stanza.py
elrond79/SleekXMPP
62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f
[ "BSD-3-Clause" ]
3
2019-02-01T06:50:08.000Z
2020-03-24T00:45:31.000Z
sleekxmpp/plugins/xep_0027/stanza.py
elrond79/SleekXMPP
62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f
[ "BSD-3-Clause" ]
1
2017-11-07T13:03:48.000Z
2017-11-07T13:03:48.000Z
sleekxmpp/plugins/xep_0027/stanza.py
elrond79/SleekXMPP
62ebbe2d7c37f55fa63cbe24b2a610c1e3eb7b9f
[ "BSD-3-Clause" ]
null
null
null
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.xmlstream import ElementBase class Signed(ElementBase): name = 'x' namespace = 'jabber:x:signed' p...
25.111111
72
0.597345
1,113
0.820796
0
0
0
0
0
0
335
0.24705
31717266252a0d2d31a5a6a58dab2e9b98e48596
821
py
Python
tcptofpc.py
catenacyber/fuzzpcap
100db6cefd77238f623b5127a3efed01c7333cad
[ "MIT" ]
6
2021-04-09T03:13:39.000Z
2022-01-26T14:49:31.000Z
tcptofpc.py
catenacyber/fuzzpcap
100db6cefd77238f623b5127a3efed01c7333cad
[ "MIT" ]
null
null
null
tcptofpc.py
catenacyber/fuzzpcap
100db6cefd77238f623b5127a3efed01c7333cad
[ "MIT" ]
null
null
null
#tshark -r input.pcap -qz "follow,tcp,raw,0" import struct import sys import binascii import subprocess result = subprocess.Popen( ["tshark", "-r", sys.argv[1], "-qz", "follow,tcp,raw,0"], stdout=subprocess.PIPE) sys.stdout.buffer.write(b"FPC\x80") for i in range(4): result.stdout.rea...
27.366667
84
0.615104
0
0
0
0
0
0
0
0
116
0.141291
3171f6a5227dcae1608234024716446ac61ead63
4,588
py
Python
AIJ Filter Collection/AIJ_Night_Filters.py
kjkoeller/BSU-Code
0b4016d0e3f823c9f8fe224a09a80c1421eedfdb
[ "MIT" ]
1
2022-03-12T01:04:15.000Z
2022-03-12T01:04:15.000Z
AIJ Filter Collection/AIJ_Night_Filters.py
kjkoeller/BSU-Code
0b4016d0e3f823c9f8fe224a09a80c1421eedfdb
[ "MIT" ]
null
null
null
AIJ Filter Collection/AIJ_Night_Filters.py
kjkoeller/BSU-Code
0b4016d0e3f823c9f8fe224a09a80c1421eedfdb
[ "MIT" ]
null
null
null
""" Created: November 11, 2020 Author: Kyle Koeller Python Version 3.9 This program is meant to make the process of collecting the different filters from AIJ excel spreadsheets faster. The user enters however many nights they have and the program goes through and checks those text files for the different columns for,H...
37.300813
114
0.623147
0
0
0
0
0
0
0
0
2,661
0.579991
3172a2c22ec1638c70e59d5c5b2388f4aa10d1ba
788
py
Python
backend/songwriter/migrations/0006_auto_20170902_0723.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
backend/songwriter/migrations/0006_auto_20170902_0723.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
12
2017-09-25T20:13:29.000Z
2020-02-12T00:12:41.000Z
backend/songwriter/migrations/0006_auto_20170902_0723.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-09-02 05:23 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('songwriter', '0005_auto_20170824_1726'), ] operations = [ migrations.AlterModelOpti...
24.625
60
0.548223
638
0.809645
0
0
0
0
0
0
217
0.275381
3174581bfbf5c193b24ab07d26b208bd2900562c
1,073
py
Python
util/textbox_utils.py
yannl35133/sslib
4c58487989aa06490a90cbcd0aa4c760937a9278
[ "MIT" ]
null
null
null
util/textbox_utils.py
yannl35133/sslib
4c58487989aa06490a90cbcd0aa4c760937a9278
[ "MIT" ]
null
null
null
util/textbox_utils.py
yannl35133/sslib
4c58487989aa06490a90cbcd0aa4c760937a9278
[ "MIT" ]
null
null
null
CHARACTERS_PER_LINE = 39 def break_lines(text): chars_in_line = 1 final_text = '' skip = False for char in text: if chars_in_line >= CHARACTERS_PER_LINE: if char == ' ': # we happen to be on a space, se we can just break here final_text += '\n' ...
33.53125
111
0.538677
0
0
0
0
0
0
0
0
305
0.28425
31749eb3567f7fa78e149effb86fecf4648c3519
1,501
py
Python
tools/isolate/data/isolate/with_flag.py
Scopetta197/chromium
b7bf8e39baadfd9089de2ebdc0c5d982de4a9820
[ "BSD-3-Clause" ]
212
2015-01-31T11:55:58.000Z
2022-02-22T06:35:11.000Z
tools/isolate/data/isolate/with_flag.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
5
2015-03-27T14:29:23.000Z
2019-09-25T13:23:12.000Z
tools/isolate/data/isolate/with_flag.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
221
2015-01-07T06:21:24.000Z
2022-02-11T02:51:12.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys def main(): print 'with_flag: Verify the test data files were mapped properly' assert len(sys.argv) == 2...
28.320755
77
0.632911
0
0
0
0
0
0
0
0
682
0.454364
31759cd8846fcd05727a01352dd32131306245ac
8,957
py
Python
tensorflow/load_mnist.py
stone-zeng/ising
f71ebdba0b91d1912620fe2af8fd211aa6075846
[ "MIT" ]
1
2019-12-06T13:57:43.000Z
2019-12-06T13:57:43.000Z
tensorflow/load_mnist.py
stone-zeng/ising
f71ebdba0b91d1912620fe2af8fd211aa6075846
[ "MIT" ]
1
2019-08-01T15:56:28.000Z
2019-08-01T15:56:28.000Z
tensorflow/load_mnist.py
stone-zeng/ising
f71ebdba0b91d1912620fe2af8fd211aa6075846
[ "MIT" ]
2
2020-07-21T15:25:13.000Z
2021-07-18T18:39:59.000Z
"""Loading MNIST dataset. """ import struct import numpy as np class MNIST: """ Loading MNIST dataset. In the directory of MNIST dataset, there should be the following files: - Training set: - train-images-idx3-ubyte - train-labels-idx1-ubyte - Test set: ...
35.543651
97
0.577984
6,808
0.760076
0
0
0
0
0
0
3,336
0.372446
3175aae311124c706359c0501c4ffc334907f123
24,640
py
Python
sarnet_td3/common/gpu_multithread.py
JingdiC/SARNet
05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea
[ "MIT" ]
16
2020-11-04T10:12:09.000Z
2022-03-26T13:25:16.000Z
sarnet_td3/common/gpu_multithread.py
JingdiC/SARNet
05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea
[ "MIT" ]
5
2020-11-18T13:07:11.000Z
2022-03-06T08:40:01.000Z
sarnet_td3/common/gpu_multithread.py
JingdiC/SARNet
05d668c2d1c0d3f8009ecb98ab33cd5a496cd4ea
[ "MIT" ]
5
2020-11-26T09:17:23.000Z
2022-03-06T08:40:53.000Z
import threading, queue, time, os, pickle # from queue import Queue import numpy as np import tensorflow as tf import sarnet_td3.common.tf_util as U from tensorflow.python.keras.backend import set_session lock = threading.Lock() class MultiTrainTD3(threading.Thread): def __init__(self, input_queue, output_queue, ...
48.888889
159
0.544562
23,501
0.953774
0
0
0
0
0
0
2,986
0.121185
3175e1912bfa26c6bcd08777e69b55a9f3b60c38
823
py
Python
Scripts/Miscellaneous/Fake_news_web/app.py
valterm/Python_and_the_Web
a51b97870576dde8e8b7e78144e3b7ef8edebeac
[ "MIT" ]
1
2020-10-19T16:08:47.000Z
2020-10-19T16:08:47.000Z
Scripts/Miscellaneous/Fake_news_web/app.py
valterm/Python_and_the_Web
a51b97870576dde8e8b7e78144e3b7ef8edebeac
[ "MIT" ]
null
null
null
Scripts/Miscellaneous/Fake_news_web/app.py
valterm/Python_and_the_Web
a51b97870576dde8e8b7e78144e3b7ef8edebeac
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template from sklearn.externals import joblib from feature import * pipeline = joblib.load('pipeline.sav') app = Flask(__name__) @app.route('/') def home(): return render_template('index.html') @app.route('/api',methods=['POST']) def get_delay(): result=request.fo...
24.939394
126
0.668287
0
0
0
0
581
0.705954
0
0
233
0.283111
3176815070b07c8d8d7495f2cec6b2d4034159cf
534
py
Python
1019.next-greater-node-in-linked-list.py
elfgzp/leetCode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
3
2019-04-12T06:22:56.000Z
2019-05-04T04:25:01.000Z
1019.next-greater-node-in-linked-list.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
1019.next-greater-node-in-linked-list.py
elfgzp/Leetcode
964c6574d310a9a6c486bf638487fd2f72b83b3f
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def nextLargerNodes(self, head: ListNode) -> List[int]: nums = [] while head: nums.append(head.val) head = head.next ...
23.217391
59
0.5
396
0.741573
0
0
0
0
0
0
129
0.241573
3176a8260273b12af11896b419d23af210fafed0
268
py
Python
WXApi/WXApi/__init__.py
KEDYY/pyweipi
1bf2ecfb0d680b9ce35fe26b34d1025a8d942aab
[ "MIT" ]
1
2018-05-22T15:10:14.000Z
2018-05-22T15:10:14.000Z
WXApi/WXApi/__init__.py
KEDYY/pyweipi
1bf2ecfb0d680b9ce35fe26b34d1025a8d942aab
[ "MIT" ]
null
null
null
WXApi/WXApi/__init__.py
KEDYY/pyweipi
1bf2ecfb0d680b9ce35fe26b34d1025a8d942aab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Create: 2014/5/20 Update: 2017/11/22 """ from .WXError import * from .WXMenu import * from .WXUtils import * from .event import * from .request import MPCenter __date__ = '2017/3/12' __version__ = '1.0.1' __license__ = 'The MIT License'
15.764706
31
0.671642
0
0
0
0
0
0
0
0
102
0.380597
31772010bf6f4955a22aabae06749a3423e3904b
1,315
py
Python
evaluator_package/Parsing_tools.py
MONICA-Project/GOST-tools
08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4
[ "BSD-2-Clause" ]
null
null
null
evaluator_package/Parsing_tools.py
MONICA-Project/GOST-tools
08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4
[ "BSD-2-Clause" ]
null
null
null
evaluator_package/Parsing_tools.py
MONICA-Project/GOST-tools
08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4
[ "BSD-2-Clause" ]
null
null
null
def is_field(token): """Checks if the token is a valid ogc type field """ return token in ["name", "description", "encodingType", "location", "properties", "metadata", "definition", "phenomenonTime", "resultTime", "observedArea", "result", "id", "@iot.id", "resultQ...
38.676471
109
0.543726
0
0
0
0
0
0
0
0
461
0.35057
31776c8bf86532d4f839128681a9e6532c17cb04
1,830
py
Python
salt/runners/mine.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/runners/mine.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/runners/mine.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' A runner to access data from the salt mine ''' from __future__ import absolute_import, print_function, unicode_literals # Import Python Libs import logging # Import salt libs import salt.utils.minions log = logging.getLevelName(__name__) def get(tgt, fun, tgt_type='glob'): ''' G...
26.142857
74
0.60765
0
0
0
0
0
0
0
0
1,204
0.657923
3177cd1e5b203f5ec64cb02bb1434a9783422e6d
312
py
Python
app.py
rhedgeco/test_plaid_webapp
e821e354796da9f35689eb386df9366407e2907b
[ "MIT" ]
null
null
null
app.py
rhedgeco/test_plaid_webapp
e821e354796da9f35689eb386df9366407e2907b
[ "MIT" ]
null
null
null
app.py
rhedgeco/test_plaid_webapp
e821e354796da9f35689eb386df9366407e2907b
[ "MIT" ]
null
null
null
from plaid import Client from backend.link_token import LinkToken from general_falcon_webserver import WebApp client = Client(client_id='5e2e3527dd6924001167e8e8', secret='0b89f518880456b6f60020f481b3d7', environment='sandbox') app = WebApp() app.add_route('link', LinkToken(client)) app.launch_webserver()
24
117
0.817308
0
0
0
0
0
0
0
0
73
0.233974
31789285a83d618d1865746d4dfadf7a34d38be3
403
py
Python
examples/circuitplayground_light_plotter.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
examples/circuitplayground_light_plotter.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
examples/circuitplayground_light_plotter.py
sommersoft/Adafruit_CircuitPython_CircuitPlayground
418ca982b34759b2804c2e816cdb505b2b818135
[ "MIT" ]
null
null
null
"""If you're using Mu, this example will plot the light levels from the light sensor (located next to the eye) on your Circuit Playground. Try shining a flashlight on your Circuit Playground, or covering the light sensor to see the plot increase and decrease.""" import time from adafruit_circuitplayground import cp wh...
36.636364
98
0.751861
0
0
0
0
0
0
0
0
270
0.669975
31793cdf4264c68e2f922f5ab5df2e6e45071db9
539
py
Python
kickeststats/exceptions.py
antimaLinux/kickscarper
c2607847f1c7ad8bc30014ab4e62f0976ace5f0f
[ "MIT" ]
null
null
null
kickeststats/exceptions.py
antimaLinux/kickscarper
c2607847f1c7ad8bc30014ab4e62f0976ace5f0f
[ "MIT" ]
1
2020-10-14T06:44:12.000Z
2020-10-14T06:44:12.000Z
kickeststats/exceptions.py
antimaLinux/kickscraper
c2607847f1c7ad8bc30014ab4e62f0976ace5f0f
[ "MIT" ]
null
null
null
"""Exception utilities.""" class ParsingException(Exception): pass class EnvVariableNotSet(Exception): def __init__(self, varname: str) -> None: super(EnvVariableNotSet, self).__init__(f"Env variable [{varname}] not set.") class InvalidLineUp(Exception): pass class UnsupportedLineUp(Exceptio...
20.730769
85
0.684601
497
0.922078
0
0
0
0
0
0
107
0.198516
3179df3995795589d0d2f77e4b98c9ca2097dc0f
6,431
py
Python
helpers/HurstEstimationNumerics.py
Baozhen-Li/SurfaceTopography
37c70a4020c74dc56a4509969e760259ba93ec61
[ "MIT" ]
null
null
null
helpers/HurstEstimationNumerics.py
Baozhen-Li/SurfaceTopography
37c70a4020c74dc56a4509969e760259ba93ec61
[ "MIT" ]
null
null
null
helpers/HurstEstimationNumerics.py
Baozhen-Li/SurfaceTopography
37c70a4020c74dc56a4509969e760259ba93ec61
[ "MIT" ]
null
null
null
# # Copyright 2018, 2020 Lars Pastewka # 2019-2020 Antoine Sanner # 2015-2016 Till Junge # # ### MIT license # # 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 rest...
30.770335
127
0.605038
0
0
0
0
0
0
0
0
1,730
0.269009
317a0b761a00f16ebd6df1752f32454650a3de35
2,668
py
Python
test/serverless_mock_test.py
zhangyuan/serverless-mock-python
f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4
[ "MIT" ]
5
2017-03-03T10:36:51.000Z
2019-01-14T05:12:29.000Z
test/serverless_mock_test.py
zhangyuan/serverless-mock-python
f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4
[ "MIT" ]
1
2017-03-30T07:18:57.000Z
2017-03-30T07:18:57.000Z
test/serverless_mock_test.py
zhangyuan/serverless-mock-python
f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4
[ "MIT" ]
null
null
null
import threading import requests import json import os from nose.tools import * from server import Httpd app_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "app") class TestServerlessMock(object): def test_ok(self): ok_(True) def setUp(self): self.httpd = Httpd(app_path, 0)...
31.388235
129
0.635682
2,483
0.93066
0
0
0
0
0
0
488
0.182909
317a91916b77974fe06fa6db1fb05dbc3398d9cf
1,262
py
Python
setup.py
holoyan/python-data-validation
e928c4131072c53cb8ace1fbaa83216f06ab6bfe
[ "MIT" ]
3
2021-03-16T05:47:46.000Z
2021-03-23T17:43:55.000Z
setup.py
holoyan/python-data-validation
e928c4131072c53cb8ace1fbaa83216f06ab6bfe
[ "MIT" ]
null
null
null
setup.py
holoyan/python-data-validation
e928c4131072c53cb8ace1fbaa83216f06ab6bfe
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages # read the contents of your README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='pyva', packages=find_packages(), ...
35.055556
73
0.652139
0
0
0
0
0
0
0
0
660
0.522979
317b9439891e4fcd8a172759ee5646bbfda6a0f1
721
py
Python
bus_system/apps/trip/migrations/0007_auto_20210624_1812.py
pygabo/bus_system
ffb76d3414e058286799f3df1cb551b26286e7c3
[ "MIT" ]
null
null
null
bus_system/apps/trip/migrations/0007_auto_20210624_1812.py
pygabo/bus_system
ffb76d3414e058286799f3df1cb551b26286e7c3
[ "MIT" ]
null
null
null
bus_system/apps/trip/migrations/0007_auto_20210624_1812.py
pygabo/bus_system
ffb76d3414e058286799f3df1cb551b26286e7c3
[ "MIT" ]
null
null
null
# Generated by Django 3.1.12 on 2021-06-24 18:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('trip', '0006_remove_travelmodel_driver'), ] operations = [ migrations.AddField( model_name='tr...
28.84
172
0.646325
594
0.823856
0
0
0
0
0
0
180
0.249653
317c49fa981bf39fb8fbc6c8497db1b320c837f1
29,766
py
Python
geoscilabs/dcip/DCWidgetPlate2_5D.py
lheagy/geosci-labs
a946feb0f2576821a232355d539bc71a5f5b0d0c
[ "MIT" ]
1
2019-01-04T10:06:44.000Z
2019-01-04T10:06:44.000Z
geoscilabs/dcip/DCWidgetPlate2_5D.py
victortocantins/geosci-labs
0963c5766477e59af6625954036f580481cfaf82
[ "MIT" ]
1
2018-12-30T20:09:25.000Z
2018-12-30T20:09:25.000Z
geoscilabs/dcip/DCWidgetPlate2_5D.py
victortocantins/geosci-labs
0963c5766477e59af6625954036f580481cfaf82
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import numpy as np from scipy.constants import epsilon_0 from scipy.ndimage.measurements import center_of_mass from ipywidgets import IntSlider, FloatSlider, FloatText, ToggleButtons import matplotli...
33
112
0.543876
0
0
0
0
0
0
0
0
6,576
0.220923
317ed9d058dadae1ec740f0850b99974ce2e984d
293
py
Python
retratodefases/phase_diagrams/__init__.py
Loracio/retrato-de-fases
a2d870a69b911af3b78288708cb569c957506940
[ "MIT" ]
3
2021-03-22T00:07:28.000Z
2021-03-22T12:11:18.000Z
retratodefases/phase_diagrams/__init__.py
Loracio/retrato-de-fases
a2d870a69b911af3b78288708cb569c957506940
[ "MIT" ]
null
null
null
retratodefases/phase_diagrams/__init__.py
Loracio/retrato-de-fases
a2d870a69b911af3b78288708cb569c957506940
[ "MIT" ]
2
2021-03-20T19:00:53.000Z
2021-03-22T12:19:52.000Z
try: __PHASE_DIAGRAMS_IMPORTED__ except NameError: __PHASE_DIAGRAMS_IMPORTED__= False if not __PHASE_DIAGRAMS_IMPORTED__: from .phase_portrait import PhasePortrait from .funcion1D import Funcion1D from .nullclines import Nullcline2D __PHASE_DIAGRAMS_IMPORTED__ = True
26.636364
45
0.805461
0
0
0
0
0
0
0
0
0
0
3180304baa69ab409e5d9574d22f4fd3b34b2b27
17,714
py
Python
P13pt/spectrumfitter/spectrumfitter.py
green-mercury/P13pt
38c4f079ec071b5b2651415d7bcb03be7a8a1dab
[ "MIT" ]
3
2019-08-27T16:32:29.000Z
2019-09-28T06:56:14.000Z
P13pt/spectrumfitter/spectrumfitter.py
DamienFruleux/P13pt
a2cd74e97b8b2e5fb518886237575ae769229e49
[ "MIT" ]
4
2018-10-29T22:06:54.000Z
2019-02-28T12:39:03.000Z
P13pt/spectrumfitter/spectrumfitter.py
DamienFruleux/P13pt
a2cd74e97b8b2e5fb518886237575ae769229e49
[ "MIT" ]
1
2019-02-13T13:29:18.000Z
2019-02-13T13:29:18.000Z
#!/usr/bin/python import sys import os import shutil from glob import glob from PyQt5.QtCore import (Qt, qInstallMessageHandler, QtInfoMsg, QtCriticalMsg, QtDebugMsg, QtWarningMsg, QtFatalMsg, QSettings, pyqtSlot, QStandardPaths, QUrl) from PyQt5.QtGui import QIcon, QDesktopServices from PyQt...
44.732323
122
0.628429
16,069
0.907136
0
0
5,819
0.328497
0
0
2,652
0.149712
31816e6d8bed3855148fe582fbc591405a02824d
78,388
py
Python
subversion/tests/cmdline/lock_tests.py
centic9/subversion-ppa
f65f38f4d8821f6225ba14b50a81973ad893fc02
[ "Apache-2.0" ]
null
null
null
subversion/tests/cmdline/lock_tests.py
centic9/subversion-ppa
f65f38f4d8821f6225ba14b50a81973ad893fc02
[ "Apache-2.0" ]
null
null
null
subversion/tests/cmdline/lock_tests.py
centic9/subversion-ppa
f65f38f4d8821f6225ba14b50a81973ad893fc02
[ "Apache-2.0" ]
1
2020-11-04T07:19:37.000Z
2020-11-04T07:19:37.000Z
#!/usr/bin/env python # encoding=utf-8 # # lock_tests.py: testing versioned properties # # Subversion is a tool for revision control. # See http://subversion.apache.org for more information. # # ==================================================================== # Licensed to the Apache Software Foundation (ASF...
36.240407
139
0.594708
0
0
0
0
26,420
0.337024
0
0
28,717
0.366326
318175319ce5b1d0f129d6cf4fa9618b04da1e8b
5,622
py
Python
tests/testresourcemap.py
rayvnekieron/regionator
ed32f43c315465402b7e18c9f374e22dd89db64e
[ "Apache-2.0" ]
null
null
null
tests/testresourcemap.py
rayvnekieron/regionator
ed32f43c315465402b7e18c9f374e22dd89db64e
[ "Apache-2.0" ]
null
null
null
tests/testresourcemap.py
rayvnekieron/regionator
ed32f43c315465402b7e18c9f374e22dd89db64e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright (C) 2006 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
37.986486
79
0.714692
4,247
0.755425
0
0
0
0
0
0
1,969
0.350231
31820a59b9c5678cbd47dd2c6b18f2a2f8d3b779
2,986
py
Python
pycket/base.py
krono/pycket
5eff3401ce5cf34b16863b669ac9e274edabbe00
[ "MIT" ]
null
null
null
pycket/base.py
krono/pycket
5eff3401ce5cf34b16863b669ac9e274edabbe00
[ "MIT" ]
null
null
null
pycket/base.py
krono/pycket
5eff3401ce5cf34b16863b669ac9e274edabbe00
[ "MIT" ]
null
null
null
from pycket.error import SchemeException from rpython.tool.pairtype import extendabletype from rpython.rlib import jit, objectmodel class W_ProtoObject(object): """ abstract base class of both actual values (W_Objects) and multiple return values (Values)""" _attrs_ = [] _settled_ = True ...
27.394495
85
0.639987
2,832
0.948426
0
0
269
0.090087
0
0
485
0.162425
3183eb2e126d90a029e2af49600fc31324d642a8
5,811
py
Python
src/teacher/flake_approx/teacher_env.py
jainraj/CISR_NeurIPS20
027957e4a26a36f6501c4f0e5e73cb9d78a53e66
[ "MIT" ]
16
2020-11-04T14:44:16.000Z
2022-02-16T08:08:23.000Z
src/teacher/flake_approx/teacher_env.py
jainraj/CISR_NeurIPS20
027957e4a26a36f6501c4f0e5e73cb9d78a53e66
[ "MIT" ]
2
2021-03-23T12:07:53.000Z
2021-12-22T14:30:59.000Z
src/teacher/flake_approx/teacher_env.py
jainraj/CISR_NeurIPS20
027957e4a26a36f6501c4f0e5e73cb9d78a53e66
[ "MIT" ]
7
2020-11-17T03:20:00.000Z
2022-03-31T15:53:58.000Z
import numpy as np from stable_baselines import PPO2 from stable_baselines.common.policies import CnnPolicy from stable_baselines.a2c.utils import conv, linear, conv_to_fc from src.envs import CMDP, FrozenLakeEnvCustomMap from src.envs.frozen_lake.frozen_maps import MAPS from src.students import LagrangianStudent, i...
35.432927
103
0.617794
0
0
0
0
0
0
0
0
684
0.117708
31849d43e1ab19f400d94d35a3abbba09fecd8ff
1,861
py
Python
scanapi/__init__.py
rajarshig/scanapi
9e29bf7fa7d8d1996be3c9deeb2675e12aff9418
[ "MIT" ]
1
2020-06-02T18:08:08.000Z
2020-06-02T18:08:08.000Z
scanapi/__init__.py
rajarshig/scanapi
9e29bf7fa7d8d1996be3c9deeb2675e12aff9418
[ "MIT" ]
null
null
null
scanapi/__init__.py
rajarshig/scanapi
9e29bf7fa7d8d1996be3c9deeb2675e12aff9418
[ "MIT" ]
null
null
null
name = "scanapi" import click import logging from scanapi.tree.api_tree import APITree from scanapi.reporter import Reporter from scanapi.requests_maker import RequestsMaker from scanapi.settings import SETTINGS from scanapi.yaml_loader import load_yaml @click.command() @click.option( "-s", "--spec-path", ...
28.630769
86
0.674369
0
0
0
0
1,602
0.860828
0
0
520
0.27942
3184b4c5a678ebc4e6558070c2d466802ef6e550
1,065
py
Python
breadth first search/level order successor.py
JoanWu5/Grokking-the-coding-interview
0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7
[ "MIT" ]
null
null
null
breadth first search/level order successor.py
JoanWu5/Grokking-the-coding-interview
0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7
[ "MIT" ]
null
null
null
breadth first search/level order successor.py
JoanWu5/Grokking-the-coding-interview
0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7
[ "MIT" ]
2
2021-11-17T18:52:53.000Z
2021-12-04T09:26:37.000Z
# Given a binary tree and a node, find the level order successor of the given node in the tree. # The level order successor is the node that appears right after the given node in the level order traversal. from collections import deque class TreeNode: def __init__(self, value) -> None: self.value = value...
26.625
109
0.661972
132
0.123944
0
0
0
0
0
0
205
0.192488
31860bb3aacd1e3679ae7c59b51984c300ac1f34
3,078
py
Python
npbench/benchmarks/cavity_flow/cavity_flow_legate.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
27
2021-05-10T11:49:13.000Z
2022-03-22T18:07:19.000Z
npbench/benchmarks/cavity_flow/cavity_flow_legate.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
3
2021-12-01T13:03:17.000Z
2022-03-17T10:53:00.000Z
npbench/benchmarks/cavity_flow/cavity_flow_legate.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
7
2021-06-24T03:40:25.000Z
2022-01-26T09:04:33.000Z
# Barba, Lorena A., and Forsyth, Gilbert F. (2018). # CFD Python: the 12 steps to Navier-Stokes equations. # Journal of Open Source Education, 1(9), 21, # https://doi.org/10.21105/jose.00021 # TODO: License # (c) 2017 Lorena A. Barba, Gilbert F. Forsyth. # All content is under Creative Commons Attribution CC-BY 4.0, # ...
37.084337
90
0.341131
0
0
0
0
0
0
0
0
516
0.167641
3188b47960735f6a2d30024aca9b8fc438dc3613
20,651
py
Python
Lib/gds/burp/config.py
mwielgoszewski/jython-burp-api
002383f7acc5fb237e3804fe5bd2aa2950a0240d
[ "0BSD" ]
134
2015-01-21T14:22:42.000Z
2021-09-02T10:52:43.000Z
Lib/gds/burp/config.py
d453d2/burp-jython-console
3cec3200ede2da0f1cdbf935efc340f073c07ea2
[ "0BSD" ]
7
2015-01-19T16:54:45.000Z
2018-10-10T15:10:13.000Z
Lib/gds/burp/config.py
d453d2/burp-jython-console
3cec3200ede2da0f1cdbf935efc340f073c07ea2
[ "0BSD" ]
29
2015-02-13T14:08:23.000Z
2021-12-17T03:17:40.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2009 Edgewall Software # Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://...
35.666667
79
0.619486
17,230
0.834342
1,455
0.070457
702
0.033994
0
0
8,109
0.392669
318a952b81c7d9540e9926622426293ecbdc84ee
1,572
py
Python
src/Application/PythonScriptModule/pymodules_old/apitest/rotate.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/apitest/rotate.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/apitest/rotate.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2021-09-04T12:37:34.000Z
2021-09-04T12:37:34.000Z
import circuits from PythonQt.QtGui import QQuaternion as Quat from PythonQt.QtGui import QVector3D as Vec import naali COMPNAME = "rotation" class RotationHandler(circuits.BaseComponent): def __init__(self, entity=None, comp=None, changetype=None): circuits.BaseComponent.__init__(self) self.entit...
34.933333
115
0.600509
1,427
0.907761
0
0
814
0.517812
0
0
540
0.343511
318bb2ce68ce930a154f36901f32368d1debcea3
728
py
Python
pyqubo/package_info.py
caja-matematica/pyqubo
5e5c9d1a36c756ba8c05eac23bbefe2ac369bce5
[ "Apache-2.0" ]
1
2018-10-11T08:51:02.000Z
2018-10-11T08:51:02.000Z
pyqubo/package_info.py
kotarotanahashi/pyqubo
d2983b5f2b9e4ebee495c345326a1b2fd98f1c4f
[ "Apache-2.0" ]
null
null
null
pyqubo/package_info.py
kotarotanahashi/pyqubo
d2983b5f2b9e4ebee495c345326a1b2fd98f1c4f
[ "Apache-2.0" ]
null
null
null
# (major, minor, patch, prerelease) VERSION = (0, 0, 6, "") __shortversion__ = '.'.join(map(str, VERSION[:3])) __version__ = '.'.join(map(str, VERSION[:3])) + "".join(VERSION[3:]) __package_name__ = 'pyqubo' __contact_names__ = 'Recruit Communications Co., Ltd.' __contact_emails__ = 'rco_pyqubo@ml.cocorou.jp' __homep...
45.5
100
0.75
0
0
0
0
0
0
0
0
420
0.576923
318c27aa8cc3118e9c4a2079f233ea65d902fc9c
19,702
py
Python
bin/DBImportOperation/etl_operations.py
karlam123/DBImport
ebaf3f909841276d289bfb2f6eec0ecafa8395cf
[ "Apache-2.0" ]
null
null
null
bin/DBImportOperation/etl_operations.py
karlam123/DBImport
ebaf3f909841276d289bfb2f6eec0ecafa8395cf
[ "Apache-2.0" ]
null
null
null
bin/DBImportOperation/etl_operations.py
karlam123/DBImport
ebaf3f909841276d289bfb2f6eec0ecafa8395cf
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
40.372951
535
0.661963
18,469
0.937418
0
0
0
0
0
0
7,561
0.383768
318f1a187d9d522a7bfc65eda71b220b6ecec2a9
2,394
py
Python
grvx/nodes/ieeg/read.py
UMCU-RIBS/grvx
0343ffa3a211f28bbffb18d1fb4b2cadc4fda8a8
[ "MIT" ]
1
2021-11-25T08:12:48.000Z
2021-11-25T08:12:48.000Z
grvx/nodes/ieeg/read.py
UMCU-RIBS/grvx
0343ffa3a211f28bbffb18d1fb4b2cadc4fda8a8
[ "MIT" ]
null
null
null
grvx/nodes/ieeg/read.py
UMCU-RIBS/grvx
0343ffa3a211f28bbffb18d1fb4b2cadc4fda8a8
[ "MIT" ]
null
null
null
from logging import getLogger from numpy import mean, std from pickle import dump from wonambi import Dataset from wonambi.trans import math, concatenate from bidso import Task, Electrodes lg = getLogger(__name__) def read_ieeg_block(filename, electrode_file, conditions, minimalduration, output_dir): d = Dataset...
32.351351
130
0.651211
0
0
0
0
0
0
0
0
165
0.068922
318fbfd55bdcd7ac71d0dc2747eb31643026f551
3,021
py
Python
bin/analysis/ipa/constraints/split.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
6
2015-09-19T18:22:33.000Z
2020-11-29T15:21:17.000Z
bin/analysis/ipa/constraints/split.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2015-08-04T08:03:46.000Z
2015-08-04T08:03:46.000Z
bin/analysis/ipa/constraints/split.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2019-12-09T08:27:09.000Z
2019-12-09T08:27:09.000Z
# Copyright 2011 Nicholas Bray # # 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...
23.97619
86
0.716319
2,259
0.747766
0
0
0
0
0
0
725
0.239987
3190a8381415a99ad9460b76cf488e2f1d88f6df
2,202
py
Python
tests/it/test_docker_image_tag.py
gfi-centre-ouest/docker-devbox-ddb
1597d85ef6e9e8322cce195a454de54186ce9ec7
[ "MIT" ]
4
2020-06-11T20:54:47.000Z
2020-09-22T13:07:17.000Z
tests/it/test_docker_image_tag.py
gfi-centre-ouest/docker-devbox-ddb
1597d85ef6e9e8322cce195a454de54186ce9ec7
[ "MIT" ]
113
2019-11-07T00:40:36.000Z
2021-01-18T12:50:16.000Z
tests/it/test_docker_image_tag.py
inetum-orleans/docker-devbox-ddb
20c713cf7bfcaf289226a17a9648c17d16003b4d
[ "MIT" ]
null
null
null
import os import zipfile import yaml from dotty_dict import Dotty from pytest_mock import MockerFixture from ddb.__main__ import main from ddb.config import Config from ddb.feature.version import is_git_repository class TestDockerImageTag: def test_image_tag_from_git_tag_jsonnet(self, project_loader, mocker: Mo...
33.363636
103
0.672116
1,983
0.900545
0
0
0
0
0
0
532
0.241599
3190b0b0bcaf0d8c57b427dc97d503276394c78a
5,806
py
Python
bin/zeisel.py
bendemeo/ample
4ca2688ff2b0e5c8f7dcbc0a1f4ddc8927fac670
[ "MIT" ]
null
null
null
bin/zeisel.py
bendemeo/ample
4ca2688ff2b0e5c8f7dcbc0a1f4ddc8927fac670
[ "MIT" ]
null
null
null
bin/zeisel.py
bendemeo/ample
4ca2688ff2b0e5c8f7dcbc0a1f4ddc8927fac670
[ "MIT" ]
null
null
null
import numpy as np import os from scanorama import * from scipy.sparse import vstack from process import load_names from experiments import * from utils import * NAMESPACE = 'zeisel' METHOD = 'svd' DIMRED = 100 data_names = [ 'data/mouse_brain/zeisel/amygdala', 'data/mouse_brain/zeisel/cerebellum', 'data...
35.187879
80
0.627799
0
0
0
0
0
0
0
0
2,349
0.404581
3190dd313fa981931d847fb35c25f15a5cf9dce0
997
py
Python
cogitare/monitor/workers/system_usage.py
cogitare-ai/cogitare
fa99b8ef30e2f74e16fb542f2992582d1bd3ac2c
[ "MIT" ]
90
2017-11-25T13:54:48.000Z
2021-09-04T04:19:52.000Z
cogitare/monitor/workers/system_usage.py
cogitare-ai/cogitare
fa99b8ef30e2f74e16fb542f2992582d1bd3ac2c
[ "MIT" ]
43
2017-09-12T20:40:56.000Z
2019-08-03T15:37:37.000Z
cogitare/monitor/workers/system_usage.py
cogitare-ai/cogitare
fa99b8ef30e2f74e16fb542f2992582d1bd3ac2c
[ "MIT" ]
9
2018-02-01T22:37:15.000Z
2018-11-05T13:30:58.000Z
from threading import Thread import psutil import time class SystemUsage(Thread): def __init__(self, callback, *args, **kwargs): super(SystemUsage, self).__init__(daemon=True) self.interval = 1 self.enabled = False self.callback = callback self.p = psutil.Process() ...
30.212121
120
0.584754
939
0.941825
0
0
0
0
0
0
105
0.105316
3191404cbd9e515326e447e2206e0f73b067c5bc
5,866
py
Python
test/worker/net.py
ameserole/Naumachia
dc13c33c5fcf053c74dfce8351a696d28857fd9d
[ "MIT" ]
null
null
null
test/worker/net.py
ameserole/Naumachia
dc13c33c5fcf053c74dfce8351a696d28857fd9d
[ "MIT" ]
null
null
null
test/worker/net.py
ameserole/Naumachia
dc13c33c5fcf053c74dfce8351a696d28857fd9d
[ "MIT" ]
null
null
null
import fcntl import os import socket import struct import warnings import subprocess import logging import base64 logger = logging.getLogger(__name__) # Dummy socket used for fcntl functions _socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) class AddrMeta(type): @property def maxvalue(cls): ...
27.283721
123
0.574668
4,839
0.824923
0
0
561
0.095636
0
0
572
0.097511
319239aac557dc3d968ccc908a828a9cd5002f12
2,161
py
Python
kunrei.py
kosugi/alfred.romanizer
d2a3b4a9883f15101893e385f14e6dca115c1d7d
[ "BSD-2-Clause" ]
null
null
null
kunrei.py
kosugi/alfred.romanizer
d2a3b4a9883f15101893e385f14e6dca115c1d7d
[ "BSD-2-Clause" ]
null
null
null
kunrei.py
kosugi/alfred.romanizer
d2a3b4a9883f15101893e385f14e6dca115c1d7d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- basic_table = dict(map(lambda s: s.split(u'\t'), u''' あ a い i う u え e お o か ka き ki く ku け ke こ ko さ sa し si す su せ se そ so た ta ち ti つ tu て te と to な na に ni ぬ nu ね ne の no は ha ひ hi ふ hu へ he ほ ho ま ma み mi む mu め me も mo や ya ゆ yu よ yo ら ra り ri る ru れ re ろ ro わ wa を wo ぁ a ぃ i ぅ u ぇ e ぉ o が...
8.248092
64
0.553447
0
0
0
0
0
0
0
0
2,036
0.732374
31947238fdb172e32519876dd493050e5588dc51
3,062
py
Python
tests/test_utils.py
loganthomas/turkey-bowl
8a02966c3fe06a4dbbcee3f31ed21c2374b77e11
[ "MIT" ]
null
null
null
tests/test_utils.py
loganthomas/turkey-bowl
8a02966c3fe06a4dbbcee3f31ed21c2374b77e11
[ "MIT" ]
74
2020-09-26T00:58:17.000Z
2022-03-20T13:55:09.000Z
tests/test_utils.py
loganthomas/Thanksgiving_Football
8a02966c3fe06a4dbbcee3f31ed21c2374b77e11
[ "MIT" ]
1
2020-09-26T01:09:38.000Z
2020-09-26T01:09:38.000Z
""" Unit tests for utils.py """ # Standard libraries import json from pathlib import Path # Third-party libraries import pytest # Local libraries from turkey_bowl import utils @pytest.mark.freeze_time @pytest.mark.parametrize( "frozen_date, expected", [ ("2010-09-09", 2010), ("2011-09-08", 2...
23.736434
82
0.653494
0
0
0
0
542
0.177008
0
0
857
0.279882
3194a2997150c6f647d46dc4f5cbb7a6cd7d252d
559
py
Python
regtests/webclgl/call_external_method.py
bpmbank/PythonJS
591a80afd8233fb715493591db2b68f1748558d9
[ "BSD-3-Clause" ]
319
2015-01-02T11:34:16.000Z
2022-03-25T00:43:33.000Z
regtests/webclgl/call_external_method.py
bpmbank/PythonJS
591a80afd8233fb715493591db2b68f1748558d9
[ "BSD-3-Clause" ]
10
2015-02-03T02:33:09.000Z
2021-11-09T21:41:00.000Z
regtests/webclgl/call_external_method.py
bpmbank/PythonJS
591a80afd8233fb715493591db2b68f1748558d9
[ "BSD-3-Clause" ]
61
2015-01-02T12:01:56.000Z
2021-12-08T07:16:16.000Z
"""external method""" class myclass: def __init__(self, i): self.index = i def get_index(self): return self.index def run(self, n): self.intarray = new(Int16Array(n)) self.intarray[ self.index ] = 99 @returns( array=n ) @gpu.main def gpufunc(): int* A = self.intarray ## GLSL compile error: `...
18.032258
61
0.631485
452
0.808587
0
0
238
0.42576
0
0
129
0.230769
3196c5c7ef4586ecc4432d29b82edc3f69f92c25
1,695
py
Python
pages/views.py
Total-Conversion/eco4coin
5a155afe892ebd714547063adfd000a1437eb3a0
[ "MIT" ]
null
null
null
pages/views.py
Total-Conversion/eco4coin
5a155afe892ebd714547063adfd000a1437eb3a0
[ "MIT" ]
null
null
null
pages/views.py
Total-Conversion/eco4coin
5a155afe892ebd714547063adfd000a1437eb3a0
[ "MIT" ]
null
null
null
from django.contrib.admin.views.decorators import staff_member_required from django.views.generic import TemplateView, ListView import csv from django.http import HttpResponse from backend.models import CustomUser from django.contrib.auth.mixins import LoginRequiredMixin class HomePageView(TemplateView): templat...
30.818182
113
0.661357
539
0.317994
0
0
874
0.515634
0
0
302
0.178171
3197d22a066fe34f613aab3ff51fd1a605e176ab
2,895
py
Python
18.part2.py
elp2/advent_of_code_2018
0d359422dd04b0849481796005e97d05c30e9eb4
[ "Apache-2.0" ]
1
2021-12-02T15:19:36.000Z
2021-12-02T15:19:36.000Z
18.part2.py
elp2/advent_of_code_2018
0d359422dd04b0849481796005e97d05c30e9eb4
[ "Apache-2.0" ]
null
null
null
18.part2.py
elp2/advent_of_code_2018
0d359422dd04b0849481796005e97d05c30e9eb4
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict def return_default(): return 0 REAL=open("18.txt").readlines() SAMPLE=open("18.sample").readlines() OPEN="." TREE="|" LUMBERYARD="#" import copy def safe_grid_get(grid, x, y, missing=None): if x < 0 or y < 0: return missing if y >= len(grid): return m...
21.444444
57
0.601382
0
0
0
0
0
0
0
0
722
0.249396
3198fc009ad14ca016fe53373d72241bd818e6a1
231
py
Python
PythonExercicios/ex031.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex031.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex031.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
dis = float(input('Digite a distância da sua viagem em Km: ')) if dis <= 200: print('O valor da sua passagem será {:.2f} reais'.format(dis * 0.5)) else: print('O valor da sua passagem será {:.2f} reais'.format(dis * 0.45))
38.5
73
0.645022
0
0
0
0
0
0
0
0
131
0.559829
31991e3c0b73748d0ef73d80f10a961d8b27dbaf
4,516
py
Python
admin/collection_providers/forms.py
rdm-dev12/RDM-osf.io
14d9a924b8c6bc7d79fd34b87830ffa29acafed1
[ "Apache-2.0" ]
null
null
null
admin/collection_providers/forms.py
rdm-dev12/RDM-osf.io
14d9a924b8c6bc7d79fd34b87830ffa29acafed1
[ "Apache-2.0" ]
20
2020-03-24T16:48:03.000Z
2022-03-08T22:38:38.000Z
admin/collection_providers/forms.py
rdm-dev12/RDM-osf.io
14d9a924b8c6bc7d79fd34b87830ffa29acafed1
[ "Apache-2.0" ]
null
null
null
import bleach import json from django import forms from osf.models import CollectionProvider, CollectionSubmission from admin.base.utils import get_nodelicense_choices, get_defaultlicense_choices class CollectionProviderForm(forms.ModelForm): collected_type_choices = forms.CharField(widget=forms.HiddenInput(), ...
45.16
113
0.629318
4,315
0.955492
0
0
0
0
0
0
933
0.206599
319925dc3819c9097723899fe8aef60117e396cb
817
py
Python
src/validate_model.py
mareklinka/esk-form-scanner-model
30af9e1c5d652b3310222bc55f92e964bc524f2e
[ "MIT" ]
null
null
null
src/validate_model.py
mareklinka/esk-form-scanner-model
30af9e1c5d652b3310222bc55f92e964bc524f2e
[ "MIT" ]
null
null
null
src/validate_model.py
mareklinka/esk-form-scanner-model
30af9e1c5d652b3310222bc55f92e964bc524f2e
[ "MIT" ]
null
null
null
import data_providers as gen import model_storage as storage import numpy as np import data_visualizer import time def evaluate(model_name): """ Evaluates the model stored in the specified file. Parameters ---------- model_name : string The name of the file to read the model from """...
24.757576
93
0.69645
0
0
0
0
0
0
0
0
263
0.321909
31998f7e8bdabc90d6fe3933e2b885a9ef1b8e16
4,154
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v3_0_preview_1/models/_form_recognizer_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v3_0_preview_1/models/_form_recognizer_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v3_0_preview_1/models/_form_recognizer_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
30.77037
94
0.667068
3,598
0.866153
0
0
0
0
0
0
1,988
0.478575
3199bda124122e7024becc95e2646f8bec2ec029
930
py
Python
activity_log/migrations/0004_auto_20170309_0929.py
farezsaputra/BandwidthControllingSystem
54032f21e6cb94156f57222e88a98a89be310ea9
[ "MIT" ]
null
null
null
activity_log/migrations/0004_auto_20170309_0929.py
farezsaputra/BandwidthControllingSystem
54032f21e6cb94156f57222e88a98a89be310ea9
[ "MIT" ]
11
2021-02-10T02:18:32.000Z
2022-03-02T09:56:43.000Z
activity_log/migrations/0004_auto_20170309_0929.py
farezsaputra/BandwidthControllingSystem
54032f21e6cb94156f57222e88a98a89be310ea9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('activity_log', '0003_activitylog_extra_data'), ] operations = [ migrations.AlterField( ...
31
114
0.631183
793
0.852688
0
0
0
0
0
0
164
0.176344
319a6bb562632b817123a3b1b59712d0c048c830
1,559
py
Python
bin/read_oogeso_data.py
oogeso/oogeso
72c05fd02d62b29fc62f60daf4989370fd80cbe1
[ "MIT" ]
2
2021-05-19T13:16:20.000Z
2021-11-05T11:47:11.000Z
bin/read_oogeso_data.py
oogeso/oogeso
72c05fd02d62b29fc62f60daf4989370fd80cbe1
[ "MIT" ]
71
2021-06-01T11:03:56.000Z
2022-03-01T09:38:37.000Z
bin/read_oogeso_data.py
oogeso/oogeso
72c05fd02d62b29fc62f60daf4989370fd80cbe1
[ "MIT" ]
null
null
null
import json import oogeso.io.file_io # Read in data, validate date et.c. with methods from io test_data_file = "examples/test case2.yaml" json_data = oogeso.io.file_io.read_data_from_yaml(test_data_file) json_formatted_str = json.dumps(json_data, indent=2) print("Type json formatted str=", type(json_formatted_str)) ...
37.119048
82
0.77229
0
0
0
0
0
0
0
0
933
0.598461
319aeea582f12d05f825c637fc9e26f9381d34d7
94
py
Python
TWITOFF/__init__.py
DSPT3/Twitoff
ba4a0359942a9981c9d985fa0a30cd0b44dd1d98
[ "MIT" ]
null
null
null
TWITOFF/__init__.py
DSPT3/Twitoff
ba4a0359942a9981c9d985fa0a30cd0b44dd1d98
[ "MIT" ]
4
2021-06-08T21:03:37.000Z
2022-03-12T00:21:25.000Z
TWITOFF/__init__.py
DSPT3/Twitoff
ba4a0359942a9981c9d985fa0a30cd0b44dd1d98
[ "MIT" ]
2
2020-02-28T11:59:32.000Z
2021-07-12T02:28:34.000Z
""" Entry Point for Our Twitoff Flask App """ from .app import create_app APP = create_app()
18.8
45
0.712766
0
0
0
0
0
0
0
0
45
0.478723
319c9744bc015a0408de27695b17d2663e338344
2,295
py
Python
fgivenx/test/test_mass.py
ejhigson/fgivenx
91089d8c0ce54bae0f72b41eb1da5d6e8d75738d
[ "MIT" ]
11
2017-10-13T11:04:53.000Z
2021-03-26T15:54:12.000Z
fgivenx/test/test_mass.py
ejhigson/fgivenx
91089d8c0ce54bae0f72b41eb1da5d6e8d75738d
[ "MIT" ]
16
2018-08-01T09:25:08.000Z
2022-03-04T12:29:52.000Z
fgivenx/test/test_mass.py
ejhigson/fgivenx
91089d8c0ce54bae0f72b41eb1da5d6e8d75738d
[ "MIT" ]
12
2018-02-04T20:34:01.000Z
2021-12-10T10:58:20.000Z
import numpy import pytest import os from shutil import rmtree from numpy.testing import assert_allclose import scipy.stats import scipy.integrate import scipy.special from fgivenx.mass import PMF, compute_pmf def gaussian_pmf(y, mu=0, sigma=1): return scipy.special.erfc(numpy.abs(y-mu)/numpy.sqrt(2)/sigma) def...
27
78
0.620915
0
0
0
0
0
0
0
0
144
0.062745
319dcd031d072f86f2934fd6b6ad4796d0a0d399
5,141
py
Python
homeassistant/components/vera/config_flow.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
2
2020-01-03T17:06:33.000Z
2020-01-13T18:57:32.000Z
homeassistant/components/vera/config_flow.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
1,016
2019-06-18T21:27:47.000Z
2020-03-06T11:09:58.000Z
homeassistant/components/vera/config_flow.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
null
null
null
"""Config flow for Vera.""" from __future__ import annotations from collections.abc import Mapping import logging import re from typing import Any import pyvera as pv from requests.exceptions import RequestException import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries i...
32.13125
88
0.62731
3,244
0.631006
0
0
192
0.037347
2,712
0.527524
793
0.15425
319dd84050e699e6ce05aef24f59d85fafabbb42
3,368
py
Python
bin/setup_spectrum.py
MFSJMenger/pysurf
99c6a94d4cb5046f16a0961b907061d989ffb6dc
[ "Apache-2.0" ]
7
2020-10-28T13:46:08.000Z
2021-05-27T06:41:56.000Z
bin/setup_spectrum.py
MFSJMenger/pysurf
99c6a94d4cb5046f16a0961b907061d989ffb6dc
[ "Apache-2.0" ]
2
2020-10-27T19:15:12.000Z
2020-10-27T19:15:25.000Z
bin/setup_spectrum.py
MFSJMenger/pysurf
99c6a94d4cb5046f16a0961b907061d989ffb6dc
[ "Apache-2.0" ]
2
2021-04-15T05:54:30.000Z
2022-02-08T00:10:10.000Z
import os from shutil import copy2 as copy # from pysurf.logger import get_logger from pysurf.sampling import Sampling from pysurf.setup import SetupBase from pysurf.utils import exists_and_isfile from pysurf.spp import SurfacePointProvider from colt import Colt from sp_calc import SinglePointCalculation class Setu...
34.367347
138
0.645487
2,994
0.888955
0
0
73
0.021675
0
0
1,438
0.42696
319ec31c5bec95f71fc86ec8dcab8ee33a9ec4c6
412
py
Python
CeV - Gustavo Guanabara/exerc033.py
us19861229c/Meu-aprendizado-Python
575c0714ac5377ff3122f4cb57952969e07ba89b
[ "Unlicense" ]
1
2021-12-11T19:53:41.000Z
2021-12-11T19:53:41.000Z
CeV - Gustavo Guanabara/exerc033.py
us19861229c/Meu-aprendizado-Python
575c0714ac5377ff3122f4cb57952969e07ba89b
[ "Unlicense" ]
null
null
null
CeV - Gustavo Guanabara/exerc033.py
us19861229c/Meu-aprendizado-Python
575c0714ac5377ff3122f4cb57952969e07ba89b
[ "Unlicense" ]
null
null
null
#033: ler tres numeros e dizer qual o maior e qual o menor: print("Digite 3 numeros:") maiorn = 0 n = int(input("Numero 1: ")) if n > maiorn: maiorn = n menorn = n n = int(input("Numero 2: ")) if n > maiorn: maiorn = n if n < menorn: menorn = n n = int(input("Numero 3: ")) if n > maiorn: maiorn = n...
20.6
60
0.601942
0
0
0
0
0
0
0
0
167
0.40534
31a27b0c36981ab92aff36160266dec12ad84cdb
5,238
py
Python
test/test_dot.py
croqaz/dot
b57f3c68dfa1ac5a7afb9f83af6035c34e342c83
[ "MIT" ]
null
null
null
test/test_dot.py
croqaz/dot
b57f3c68dfa1ac5a7afb9f83af6035c34e342c83
[ "MIT" ]
null
null
null
test/test_dot.py
croqaz/dot
b57f3c68dfa1ac5a7afb9f83af6035c34e342c83
[ "MIT" ]
null
null
null
import pytest from prop import strict_get from prop import get as dot_get class A: def __init__(self, val): self.val = val def test_dot_get_list(): assert dot_get(['asd'], '0') == dot_get(['asd'], ['0']) == 'asd' data = {'nested': [0, False, 'foo']} assert dot_get(data, 'nested.0') == 0 ...
27.714286
68
0.550592
61
0.011646
0
0
0
0
0
0
1,342
0.256205
31a2f51b82dfe59d7e0a0af9b9f3cdff2f955130
9,179
py
Python
site_scons/site_tools/mplabx_nbproject/__init__.py
kbhomes/ps2plus
63467133367082ec06c88e5c0fd623373709717e
[ "MIT" ]
null
null
null
site_scons/site_tools/mplabx_nbproject/__init__.py
kbhomes/ps2plus
63467133367082ec06c88e5c0fd623373709717e
[ "MIT" ]
null
null
null
site_scons/site_tools/mplabx_nbproject/__init__.py
kbhomes/ps2plus
63467133367082ec06c88e5c0fd623373709717e
[ "MIT" ]
null
null
null
from pprint import pprint import SCons.Builder from SCons.Script import * import json import os import copy import collections import xml.etree.ElementTree as ET from mplabx import MPLABXProperties MAKEFILE_TEXT = ''' MKDIR=mkdir CP=cp CCADMIN=CCadmin RANLIB=ranlib build: .build-post .build-pre: .build-post: .build-i...
35.996078
130
0.706613
0
0
0
0
0
0
0
0
2,703
0.294477