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
60ead80e847ae9dc084472d4e5417a3a4311cbff
9,413
py
Python
analisis_de_variables.py
scmarquez/Hause-Price-Kaggle-Competition
5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21
[ "MIT" ]
null
null
null
analisis_de_variables.py
scmarquez/Hause-Price-Kaggle-Competition
5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21
[ "MIT" ]
null
null
null
analisis_de_variables.py
scmarquez/Hause-Price-Kaggle-Competition
5fe32fed87a7bf2c6e5f41761ea1c4dd00761f21
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Dec 29 16:40:53 2017 @author: Sergio """ #Analisis de variables import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn import ensemble, tree, linear_model from sklearn.model_selection import train_test_split, cr...
41.46696
147
0.739403
0
0
0
0
0
0
0
0
5,509
0.581425
60eb25016e8dffa48a7ee4e49cffca99635d22f2
566
py
Python
query-gen.py
mdatsev/prostgres
3418258a8b832546ef4d5009867bf1cf79248b7b
[ "Unlicense" ]
null
null
null
query-gen.py
mdatsev/prostgres
3418258a8b832546ef4d5009867bf1cf79248b7b
[ "Unlicense" ]
null
null
null
query-gen.py
mdatsev/prostgres
3418258a8b832546ef4d5009867bf1cf79248b7b
[ "Unlicense" ]
null
null
null
import random import sys ntables = 100 ncols = 100 nrows = 10000 def printstderr(s): sys.stderr.write(s + '\n') sys.stderr.flush() def get_value(): return random.randint(-99999999, 99999999) for t in range(ntables): printstderr(f'{t}/{ntables}') print(f"create table x ({','.join(['x int'] * ncols)});") ...
21.769231
76
0.609541
0
0
0
0
0
0
0
0
176
0.310954
60ebcdffbce13db306c3a548fbb31af96bfe8e29
1,549
py
Python
molecule/default/tests/test_default.py
joshbenner/sensu-ansible-role
ecc92ba3462d7edf50ad96ddda61080ba58c29f8
[ "BSD-3-Clause" ]
null
null
null
molecule/default/tests/test_default.py
joshbenner/sensu-ansible-role
ecc92ba3462d7edf50ad96ddda61080ba58c29f8
[ "BSD-3-Clause" ]
1
2018-10-31T03:14:05.000Z
2018-10-31T03:14:05.000Z
molecule/default/tests/test_default.py
joshbenner/sensu-ansible-role
ecc92ba3462d7edf50ad96ddda61080ba58c29f8
[ "BSD-3-Clause" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_packages(host): package = host.package('sensu') assert package.is_installed assert '1.7.0' in package.version def test_di...
24.587302
70
0.713363
0
0
0
0
0
0
0
0
358
0.231117
60ec05a1e04f7befa5818096872bdb308d2b1dde
4,552
py
Python
wgskex/worker/netlink.py
moepman/wgskex
7a931088b5910f8034ad5a1362777e08c47c42fe
[ "0BSD" ]
2
2021-01-05T23:42:35.000Z
2021-10-03T14:12:30.000Z
wgskex/worker/netlink.py
moepman/wgskex
7a931088b5910f8034ad5a1362777e08c47c42fe
[ "0BSD" ]
null
null
null
wgskex/worker/netlink.py
moepman/wgskex
7a931088b5910f8034ad5a1362777e08c47c42fe
[ "0BSD" ]
null
null
null
import hashlib import logging import re from dataclasses import dataclass from datetime import datetime, timedelta from textwrap import wrap from typing import Dict, List from pyroute2 import IPRoute, NDB, WireGuard from wgskex.common.utils import mac2eui64 logger = logging.getLogger(__name__) # TODO make loglevel c...
30.756757
115
0.639719
1,078
0.236819
0
0
1,089
0.239236
0
0
1,118
0.245606
60ec772a2bff1ce4c7f82d3ad31a4b3889b15287
708
py
Python
api/main.py
Ju99ernaut/super-fastapi
83c232bcaff1006d413a9945ced3ba398b673505
[ "MIT" ]
null
null
null
api/main.py
Ju99ernaut/super-fastapi
83c232bcaff1006d413a9945ced3ba398b673505
[ "MIT" ]
null
null
null
api/main.py
Ju99ernaut/super-fastapi
83c232bcaff1006d413a9945ced3ba398b673505
[ "MIT" ]
null
null
null
import uvicorn from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from routes import items import config from constants import * config.parse_args() app = FastAPI( title="API", description="API boilerplate", version="1.0.0", openapi_tags=API_TAGS_METADATA, ) app.add_midd...
18.153846
82
0.686441
0
0
0
0
106
0.149718
92
0.129944
105
0.148305
60ed370b9d6be678d96e0ec349072e5fb104c1f2
1,582
py
Python
gellifinsta/models.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
gellifinsta/models.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
gellifinsta/models.py
vallka/djellifique
fb84fba6be413f9d38276d89ae84aeaff761218f
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.html import mark_safe # Create your models here. class Gellifinsta(models.Model): class Meta: ordering = ['-taken_at_datetime'] shortcode = models.CharField(_("Shortcode"), max_length=20) taken_...
35.954545
91
0.689633
1,425
0.900759
0
0
0
0
0
0
234
0.147914
60ed6b24088a86522dceda37eeecc0306f7958dc
1,335
py
Python
scanBase/migrations/0003_ipsection.py
wsqy/sacn_server
e91a41a71b27926fbcfbe3f22bbb6bbc61b39461
[ "Apache-2.0" ]
null
null
null
scanBase/migrations/0003_ipsection.py
wsqy/sacn_server
e91a41a71b27926fbcfbe3f22bbb6bbc61b39461
[ "Apache-2.0" ]
null
null
null
scanBase/migrations/0003_ipsection.py
wsqy/sacn_server
e91a41a71b27926fbcfbe3f22bbb6bbc61b39461
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-01-16 13:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('scanBase', '0002_auto_20180116_1321'), ] operations ...
40.454545
140
0.612734
1,188
0.862745
0
0
0
0
0
0
326
0.236747
60edce602ee84c179651834e36a3725524081131
3,522
py
Python
sts/train.py
LostCow/KLUE
73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77
[ "MIT" ]
18
2021-12-22T09:41:24.000Z
2022-03-19T12:54:30.000Z
sts/train.py
LostCow/KLUE
73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77
[ "MIT" ]
null
null
null
sts/train.py
LostCow/KLUE
73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77
[ "MIT" ]
4
2021-12-26T11:31:46.000Z
2022-03-28T07:55:45.000Z
import argparse import numpy as np import os import torch from transformers import AutoTokenizer, AutoConfig, Trainer, TrainingArguments from model import RobertaForStsRegression from dataset import KlueStsWithSentenceMaskDataset from utils import read_json, seed_everything from metric import compute_metrics def ma...
37.073684
87
0.727144
0
0
0
0
0
0
0
0
468
0.132879
60edf40403e6f66a0e02912003729be0d59531bb
1,760
py
Python
test/test_base_client.py
walkr/nanoservice
e2098986b1baa5f283167ae487d14f3c6c21961a
[ "MIT" ]
28
2015-03-26T10:25:31.000Z
2022-01-31T21:59:11.000Z
test/test_base_client.py
walkr/nanoservice
e2098986b1baa5f283167ae487d14f3c6c21961a
[ "MIT" ]
3
2015-09-14T04:10:04.000Z
2020-01-29T03:52:05.000Z
test/test_base_client.py
walkr/nanoservice
e2098986b1baa5f283167ae487d14f3c6c21961a
[ "MIT" ]
9
2015-09-10T08:11:37.000Z
2020-11-08T10:41:51.000Z
import unittest from nanoservice import Responder from nanoservice import Requester class BaseTestCase(unittest.TestCase): def setUp(self): addr = 'inproc://test' self.client = Requester(addr) self.service = Responder(addr) self.service.register('divide', lambda x, y: x / y) ...
29.830508
62
0.630682
1,621
0.921023
0
0
0
0
0
0
190
0.107955
60f1a087b3bdc065cf389f51df6915d8dc0b8312
563
py
Python
airtech_api/flight/models.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
1
2019-04-04T12:27:55.000Z
2019-04-04T12:27:55.000Z
airtech_api/flight/models.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
34
2019-03-26T11:18:17.000Z
2022-02-10T08:12:36.000Z
airtech_api/flight/models.py
chidioguejiofor/airtech-api
45d77da0cc4230dd3cb7ab4cbb5168a9239850f5
[ "MIT" ]
null
null
null
from airtech_api.utils.auditable_model import AuditableBaseModel from django.db import models # Create your models here. class Flight(AuditableBaseModel): class Meta: db_table = 'Flight' capacity = models.IntegerField(null=False) location = models.TextField(null=False) destination = models.Te...
28.15
73
0.706927
439
0.779751
0
0
0
0
0
0
78
0.138544
60f2562d19bb7ab823ff8910d39c430258f1cd35
723
py
Python
Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py
kaka-lin/autonomous-driving-notes
6c1b29752d6deb679637766b6cea5c6fe5b72319
[ "MIT" ]
null
null
null
Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py
kaka-lin/autonomous-driving-notes
6c1b29752d6deb679637766b6cea5c6fe5b72319
[ "MIT" ]
null
null
null
Sensor Fusion and Tracking/Kalman Filters/Gaussian/gaussian.py
kaka-lin/autonomous-driving-notes
6c1b29752d6deb679637766b6cea5c6fe5b72319
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def gaussian(x, mean, std): std2 = np.power(std, 2) return (1 / np.sqrt(2* np.pi * std2)) * np.exp(-.5 * (x - mean)**2 / std2) if __name__ == "__main__": gauss_1 = gaussian(10, 8, 2) # 0.12098536225957168 gauss_2 = gaussian(10, 10, 2) # 0.1994711402...
23.322581
78
0.580913
0
0
0
0
0
0
0
0
157
0.213605
60f26fe4816d83e373acca7a0999becfe86e2ce4
9,029
py
Python
part19/test_interpreter.py
fazillatheef/lsbasi
07e1a14516156a21ebe2d82e0bae4bba5ad73dd6
[ "MIT" ]
1,682
2015-06-15T11:42:03.000Z
2022-03-29T12:40:35.000Z
part19/test_interpreter.py
fazillatheef/lsbasi
07e1a14516156a21ebe2d82e0bae4bba5ad73dd6
[ "MIT" ]
10
2017-06-22T11:35:21.000Z
2022-02-26T17:37:42.000Z
part19/test_interpreter.py
fazillatheef/lsbasi
07e1a14516156a21ebe2d82e0bae4bba5ad73dd6
[ "MIT" ]
493
2015-07-05T09:05:09.000Z
2022-03-28T03:33:33.000Z
import unittest class LexerTestCase(unittest.TestCase): def makeLexer(self, text): from spi import Lexer lexer = Lexer(text) return lexer def test_tokens(self): from spi import TokenType records = ( ('234', TokenType.INTEGER_CONST, 234), ('3.14'...
27.95356
84
0.507144
8,949
0.99114
0
0
0
0
0
0
2,517
0.278768
60f465712817804b710d37a55f88faebafc8ed3c
1,675
py
Python
bot_components/configurator.py
Ferlern/Arctic-Tundra
407b8c38c31f6c930df662e87ced527b9fd26c61
[ "MIT" ]
3
2021-11-05T20:22:05.000Z
2022-02-14T12:12:31.000Z
bot_components/configurator.py
Ferlern/Arctic-Tundra
407b8c38c31f6c930df662e87ced527b9fd26c61
[ "MIT" ]
null
null
null
bot_components/configurator.py
Ferlern/Arctic-Tundra
407b8c38c31f6c930df662e87ced527b9fd26c61
[ "MIT" ]
null
null
null
import json from typing import TypedDict from .bot_emoji import AdditionalEmoji class Warn(TypedDict): text: str mute_time: int ban: bool class PersonalVoice(TypedDict): categoty: int price: int slot_price: int bitrate_price: int class System(TypedDict): token: str initial_exte...
21.202532
69
0.666269
1,518
0.906269
0
0
0
0
0
0
66
0.039403
60f6336cf78fe6b4d87ec03f5cf82a49ade1394b
3,493
py
Python
recnn/utils/plot.py
ihash5/reinforcement-learning
c72e9db33c6ed6abd34e9f48012189369b7cd5d0
[ "Apache-2.0" ]
1
2021-04-10T08:21:21.000Z
2021-04-10T08:21:21.000Z
recnn/utils/plot.py
ihash5/reinforcement-learning
c72e9db33c6ed6abd34e9f48012189369b7cd5d0
[ "Apache-2.0" ]
null
null
null
recnn/utils/plot.py
ihash5/reinforcement-learning
c72e9db33c6ed6abd34e9f48012189369b7cd5d0
[ "Apache-2.0" ]
null
null
null
from scipy.spatial import distance from scipy import ndimage import matplotlib.pyplot as plt import torch from scipy import stats import numpy as np def pairwise_distances_fig(embs): embs = embs.detach().cpu().numpy() similarity_matrix_cos = distance.cdist(embs, embs, 'cosine') similarity_matrix_euc = dis...
30.373913
96
0.590896
2,118
0.606356
0
0
927
0.265388
0
0
321
0.091898
60f7e54acc60354d75596811ff04f18911fc24eb
6,362
py
Python
tests/integration/insights/v1/call/test_metric.py
pazzy-stack/twilio
d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0
[ "MIT" ]
null
null
null
tests/integration/insights/v1/call/test_metric.py
pazzy-stack/twilio
d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0
[ "MIT" ]
null
null
null
tests/integration/insights/v1/call/test_metric.py
pazzy-stack/twilio
d3b9b9f1b17b9de89b2528e8d2ffd33edf9676e0
[ "MIT" ]
null
null
null
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class MetricTestCase(Integratio...
40.265823
185
0.365923
6,072
0.954417
0
0
0
0
0
0
5,298
0.832757
60f8300c3b1d0bfc0e3ab0efad7d54c27160ef0c
1,053
py
Python
2017-2018/lecture-notes/python/02-algorithms_listing_8_contains_word.py
essepuntato/comp-think
3dac317bda0eb7650adc4a92c1ccb8a4ce87a3a6
[ "BSD-2-Clause" ]
19
2017-07-03T11:55:33.000Z
2021-10-17T10:21:24.000Z
2017-2018/lecture-notes/python/02-algorithms_listing_8_contains_word.py
essepuntato/comp-think
3dac317bda0eb7650adc4a92c1ccb8a4ce87a3a6
[ "BSD-2-Clause" ]
1
2017-12-21T10:52:56.000Z
2018-06-06T13:59:13.000Z
2017-2018/lecture-notes/python/02-algorithms_listing_8_contains_word.py
essepuntato/comp-think
3dac317bda0eb7650adc4a92c1ccb8a4ce87a3a6
[ "BSD-2-Clause" ]
4
2017-11-13T09:29:06.000Z
2019-05-09T03:29:49.000Z
def contains_word(first_word, second_word, bibliographic_entry): contains_first_word = first_word in bibliographic_entry contains_second_word = second_word in bibliographic_entry if contains_first_word and contains_second_word: return 2 elif contains_first_word or contains_second_word: ...
47.863636
110
0.674264
0
0
0
0
0
0
0
0
364
0.345679
60f86292339dc07295795b770971581f3a845840
2,855
py
Python
backend/user/scripter.py
ivaivalous/ivodb
e9b0969225fdb725d35a2ecfab21f87d1d9b2a00
[ "MIT" ]
null
null
null
backend/user/scripter.py
ivaivalous/ivodb
e9b0969225fdb725d35a2ecfab21f87d1d9b2a00
[ "MIT" ]
null
null
null
backend/user/scripter.py
ivaivalous/ivodb
e9b0969225fdb725d35a2ecfab21f87d1d9b2a00
[ "MIT" ]
null
null
null
#!/usr/bin/env python import responses from selenium import webdriver # This file contains/references the default JS # used to provide functions dealing with input/output SCRIPT_RUNNER = "runner.html" ENCODING = 'utf-8' PAGE_LOAD_TIMEOUT = 5 PAGE_LOAD_TIMEOUT_MS = PAGE_LOAD_TIMEOUT * 1000 capabilities = webdriver.D...
31.032609
79
0.652539
1,879
0.658144
0
0
1,011
0.354116
0
0
827
0.289667
60f89950c5e281ca1dca03166764cafad747aec6
1,490
py
Python
bwtougu/api/names.py
luhouxiang/byrobot
e110e7865965a344d2b61cb925c959cee1387758
[ "Apache-2.0" ]
null
null
null
bwtougu/api/names.py
luhouxiang/byrobot
e110e7865965a344d2b61cb925c959cee1387758
[ "Apache-2.0" ]
null
null
null
bwtougu/api/names.py
luhouxiang/byrobot
e110e7865965a344d2b61cb925c959cee1387758
[ "Apache-2.0" ]
1
2018-09-28T08:59:38.000Z
2018-09-28T08:59:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- VALID_HISTORY_FIELDS = [ 'datetime', 'open', 'close', 'high', 'low', 'total_turnover', 'volume', 'acc_net_value', 'discount_rate', 'unit_net_value', 'limit_up', 'limit_down', 'open_interest', 'basis_spread', 'settlement', 'prev_settlement' ] VALID_GET_PRICE_FI...
25.689655
94
0.619463
0
0
0
0
0
0
0
0
971
0.651678
60f8eaaad292345c3bccc32bf4de41d8a5ec6e07
9,830
py
Python
src/PeerRead/data_cleaning/process_PeerRead_abstracts.py
dveni/causal-text-embeddings
82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a
[ "MIT" ]
114
2019-05-31T03:54:05.000Z
2022-03-28T06:37:27.000Z
src/PeerRead/data_cleaning/process_PeerRead_abstracts.py
dveni/causal-text-embeddings
82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a
[ "MIT" ]
7
2019-08-12T01:35:22.000Z
2020-09-23T17:32:46.000Z
src/PeerRead/data_cleaning/process_PeerRead_abstracts.py
dveni/causal-text-embeddings
82104f3fb6fd540cf98cb4ca0fd5b5d1fb5f757a
[ "MIT" ]
20
2019-06-03T05:33:10.000Z
2022-02-04T19:34:41.000Z
""" Simple pre-processing for PeerRead papers. Takes in JSON formatted data from ScienceParse and outputs a tfrecord Reference example: https://github.com/tensorlayer/tensorlayer/blob/9528da50dfcaf9f0f81fba9453e488a1e6c8ee8f/examples/data_process/tutorial_tfrecord3.py """ import argparse import glob import os import...
33.896552
132
0.662665
0
0
0
0
0
0
0
0
2,975
0.302522
60f9b711d1be6899f182566e81c346882c7e82b3
19
py
Python
app/packageB/__init__.py
An7ar35/python-app-skeleton-structure
9060411bd32840c6510ad8fe18dcdc097c07b511
[ "MIT" ]
null
null
null
app/packageB/__init__.py
An7ar35/python-app-skeleton-structure
9060411bd32840c6510ad8fe18dcdc097c07b511
[ "MIT" ]
null
null
null
app/packageB/__init__.py
An7ar35/python-app-skeleton-structure
9060411bd32840c6510ad8fe18dcdc097c07b511
[ "MIT" ]
null
null
null
__all__=['module1']
19
19
0.736842
0
0
0
0
0
0
0
0
9
0.473684
60fad164495b1d30558324f3422b6ab9ad4d496c
5,268
py
Python
lib/shop.py
ZakDoesGaming/OregonTrail
90cab35536ac5c6ba9e772ac5c29c914017c9c23
[ "MIT" ]
6
2018-05-07T04:04:58.000Z
2021-05-15T17:44:16.000Z
lib/shop.py
ZakDoesGaming/OregonTrail
90cab35536ac5c6ba9e772ac5c29c914017c9c23
[ "MIT" ]
null
null
null
lib/shop.py
ZakDoesGaming/OregonTrail
90cab35536ac5c6ba9e772ac5c29c914017c9c23
[ "MIT" ]
2
2017-05-27T17:06:23.000Z
2020-08-26T17:57:10.000Z
from pygame import Surface, font from copy import copy from random import randint, choice import string from lib.transactionButton import TransactionButton SHOP_PREFIX = ["archer", "baker", "fisher", "miller", "rancher", "robber"] SHOP_SUFFIX = ["cave", "creek", "desert", "farm", "field", "forest", "hill", "lake", "m...
41.480315
137
0.650721
4,882
0.926727
0
0
0
0
0
0
276
0.052392
60fb27a39e6c08f8aae7d5554b69bcd58cf5b1d9
2,047
py
Python
core/dataflow/test/test_runners.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
core/dataflow/test/test_runners.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
core/dataflow/test/test_runners.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
import logging import numpy as np import core.dataflow as dtf import helpers.unit_test as hut _LOG = logging.getLogger(__name__) class TestRollingFitPredictDagRunner(hut.TestCase): def test1(self) -> None: """ Test the DagRunner using `ArmaReturnsBuilder` """ dag_builder = dtf....
31.984375
76
0.616512
1,909
0.932584
0
0
0
0
0
0
433
0.211529
60fb78d100400013bb9e1879a2d59065d01b4f6b
4,478
py
Python
Main Project/Main_Program.py
hmnk-1967/OCR-Python-Project-CS-BUIC
28c72d9913a25655f6183a7b960e527a0432c8e1
[ "MIT" ]
null
null
null
Main Project/Main_Program.py
hmnk-1967/OCR-Python-Project-CS-BUIC
28c72d9913a25655f6183a7b960e527a0432c8e1
[ "MIT" ]
null
null
null
Main Project/Main_Program.py
hmnk-1967/OCR-Python-Project-CS-BUIC
28c72d9913a25655f6183a7b960e527a0432c8e1
[ "MIT" ]
null
null
null
import tkinter.messagebox from tkinter import * import tkinter as tk from tkinter import filedialog import numpy import pytesseract #Python wrapper for Google-owned OCR engine known by the name of Tesseract. import cv2 from PIL import Image, ImageTk import os root = tk.Tk() root.title("Object Character Recognizer") ro...
44.336634
209
0.692497
0
0
0
0
0
0
0
0
1,399
0.312416
60fbe7657269c996fc3948f64ef4c1f61caa8318
881
bzl
Python
third_party/nasm/workspace.bzl
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
54
2017-06-17T14:07:48.000Z
2022-03-29T02:11:20.000Z
third_party/nasm/workspace.bzl
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
19
2021-12-28T12:44:55.000Z
2022-01-13T08:11:28.000Z
third_party/nasm/workspace.bzl
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
11
2018-04-19T22:36:01.000Z
2021-08-02T08:44:43.000Z
"""loads the nasm library, used by TF.""" load("//third_party:repo.bzl", "tf_http_archive") def repo(): tf_http_archive( name = "nasm", urls = [ "https://storage.googleapis.com/mirror.tensorflow.org/www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2", "http://p...
48.944444
237
0.694665
0
0
0
0
0
0
0
0
646
0.733258
60fc4c563a78f035d637363b6ec3e80079aa3d28
10,095
py
Python
python/tests/test-1-vector.py
wence-/libCEED
c785ad36304ed34c5edefb75cf1a0fe5445db17b
[ "BSD-2-Clause" ]
null
null
null
python/tests/test-1-vector.py
wence-/libCEED
c785ad36304ed34c5edefb75cf1a0fe5445db17b
[ "BSD-2-Clause" ]
null
null
null
python/tests/test-1-vector.py
wence-/libCEED
c785ad36304ed34c5edefb75cf1a0fe5445db17b
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at # the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights # reserved. See files LICENSE and NOTICE for details. # # This file is part of CEED, a collection of benchmarks, miniapps, software # libraries and APIs for efficient h...
28.597734
81
0.470134
0
0
0
0
0
0
0
0
4,162
0.412283
60fe83ebf52b160eaac4df2f49fea7ababebb7f8
1,659
py
Python
esmvalcore/cmor/_fixes/cmip6/cesm2.py
aperezpredictia/ESMValCore
d5bf3f459ff3a43e780d75d57b63b88b6cc8c4f2
[ "Apache-2.0" ]
1
2019-11-28T13:09:42.000Z
2019-11-28T13:09:42.000Z
esmvalcore/cmor/_fixes/cmip6/cesm2.py
aperezpredictia/ESMValCore
d5bf3f459ff3a43e780d75d57b63b88b6cc8c4f2
[ "Apache-2.0" ]
null
null
null
esmvalcore/cmor/_fixes/cmip6/cesm2.py
aperezpredictia/ESMValCore
d5bf3f459ff3a43e780d75d57b63b88b6cc8c4f2
[ "Apache-2.0" ]
1
2019-11-29T00:50:30.000Z
2019-11-29T00:50:30.000Z
"""Fixes for CESM2 model.""" from ..fix import Fix from ..shared import (add_scalar_depth_coord, add_scalar_height_coord, add_scalar_typeland_coord, add_scalar_typesea_coord) class Fgco2(Fix): """Fixes for fgco2.""" def fix_metadata(self, cubes): """Add depth (0m) coordinate. ...
20.481481
74
0.540084
1,450
0.87402
0
0
0
0
0
0
794
0.478602
60fea0a23e4a5ea1e75b9b0eb479df0b1f05f8bb
707
py
Python
examples/GenerateSubset.py
vitay/YouTubeFacesDB
e7225e8d775ad64889fbee57a4452a25573a0360
[ "MIT" ]
11
2018-02-25T16:20:16.000Z
2021-07-27T02:46:09.000Z
examples/GenerateSubset.py
vitay/YouTubeFacesDB
e7225e8d775ad64889fbee57a4452a25573a0360
[ "MIT" ]
1
2018-12-14T19:56:16.000Z
2018-12-16T22:09:30.000Z
examples/GenerateSubset.py
vitay/YouTubeFacesDB
e7225e8d775ad64889fbee57a4452a25573a0360
[ "MIT" ]
3
2017-05-05T03:23:17.000Z
2019-11-11T01:39:25.000Z
from YouTubeFacesDB import generate_ytf_database ############################################################################### # Create the dataset ############################################################################### generate_ytf_database( directory= '../data',#'/scratch/vitay/Datasets/YouTubeFaces'...
47.133333
95
0.550212
0
0
0
0
0
0
0
0
481
0.680339
60ff05c6f96bea8d8b81dd6255359543dc3d93ad
1,562
py
Python
src/waldur_mastermind/billing/tests/test_price_current.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
2
2017-01-20T15:26:25.000Z
2017-08-03T04:38:08.000Z
src/waldur_mastermind/billing/tests/test_price_current.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
src/waldur_mastermind/billing/tests/test_price_current.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
from freezegun import freeze_time from rest_framework import test from waldur_mastermind.billing.tests.utils import get_financial_report_url from waldur_mastermind.invoices import models as invoice_models from waldur_mastermind.invoices.tests import factories as invoice_factories from waldur_mastermind.invoices.tests ...
37.190476
80
0.68822
1,176
0.752881
0
0
1,203
0.770166
0
0
109
0.069782
60ff33dc263000945ad4491d74e8e10a35657808
16,741
py
Python
tests/test_cli/test_utils/test_utils.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
tests/test_cli/test_utils/test_utils.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
tests/test_cli/test_utils/test_utils.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI 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 ...
39.206089
88
0.696792
13,569
0.810525
0
0
12,452
0.743803
0
0
6,169
0.368497
60ff5c6f7092666241901b36f6825248e6f4d160
360
py
Python
api/flat/urls.py
SanjarbekSaminjonov/musofirlar.backend
23b09e90cc4e3d153063ad1768b5ae1c18ff866d
[ "Apache-2.0" ]
1
2021-12-23T12:43:17.000Z
2021-12-23T12:43:17.000Z
api/flat/urls.py
SanjarbekSaminjonov/musofirlar.backend
23b09e90cc4e3d153063ad1768b5ae1c18ff866d
[ "Apache-2.0" ]
null
null
null
api/flat/urls.py
SanjarbekSaminjonov/musofirlar.backend
23b09e90cc4e3d153063ad1768b5ae1c18ff866d
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.FlatListAPIView.as_view()), path('create/', views.FlatCreateAPIView.as_view()), path('<int:pk>/', views.FlatDetailAPIView.as_view()), path('<int:pk>/update/', views.FlatUpdateAPIView.as_view()), path('<int:pk>/delete/'...
30
64
0.683333
0
0
0
0
0
0
0
0
58
0.161111
8801787fa421093191e86dccf0ba799d1e648912
506
py
Python
hyssop_aiohttp/component/__init__.py
hsky77/hyssop
4ab1e82f9e2592de56589c7426a037564bef49a6
[ "MIT" ]
null
null
null
hyssop_aiohttp/component/__init__.py
hsky77/hyssop
4ab1e82f9e2592de56589c7426a037564bef49a6
[ "MIT" ]
null
null
null
hyssop_aiohttp/component/__init__.py
hsky77/hyssop
4ab1e82f9e2592de56589c7426a037564bef49a6
[ "MIT" ]
null
null
null
# Copyright (C) 2020-Present the hyssop authors and contributors. # # This module is part of hyssop and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php ''' File created: January 1st 2021 Modified By: hsky77 Last Updated: January 7th 2021 15:30:08 pm ''' from hyssop.project.com...
25.3
69
0.774704
110
0.217391
0
0
0
0
0
0
333
0.658103
88019b110382885f8543e3444fa6b00a5c38b567
3,691
py
Python
run_clone.py
tGhattas/IMP-seamless-cloning
2c81e0bd9bc99955afe06ec4eea187a5a42761e3
[ "MIT" ]
null
null
null
run_clone.py
tGhattas/IMP-seamless-cloning
2c81e0bd9bc99955afe06ec4eea187a5a42761e3
[ "MIT" ]
null
null
null
run_clone.py
tGhattas/IMP-seamless-cloning
2c81e0bd9bc99955afe06ec4eea187a5a42761e3
[ "MIT" ]
null
null
null
import cv2 import getopt import sys from gui import MaskPainter, MaskMover from clone import seamless_cloning, shepards_seamless_cloning from utils import read_image, plt from os import path def usage(): print( "Usage: python run_clone.py [options] \n\n\ Options: \n\ \t-h\t Flag to specify...
33.554545
147
0.629098
0
0
0
0
0
0
0
0
1,731
0.468979
8801ff2af63497d7ca9dadd57139f98ae23b3370
5,081
py
Python
punkweb_boards/rest/serializers.py
Punkweb/punkweb-boards
8934d15fbff2a3ce9191fdb19d58d029eb55ef16
[ "BSD-3-Clause" ]
20
2018-02-22T11:36:04.000Z
2022-03-22T11:48:22.000Z
punkweb_boards/rest/serializers.py
imgVOID/punkweb-boards
8934d15fbff2a3ce9191fdb19d58d029eb55ef16
[ "BSD-3-Clause" ]
28
2018-02-22T07:11:46.000Z
2022-02-23T08:05:29.000Z
punkweb_boards/rest/serializers.py
imgVOID/punkweb-boards
8934d15fbff2a3ce9191fdb19d58d029eb55ef16
[ "BSD-3-Clause" ]
5
2018-02-25T11:05:19.000Z
2021-05-27T02:25:31.000Z
from rest_framework import serializers from punkweb_boards.conf.settings import SHOUTBOX_DISABLED_TAGS from punkweb_boards.models import ( BoardProfile, Category, Subcategory, Thread, Post, Conversation, Message, Report, Shout, ) class BoardProfileSerializer(serializers.ModelSerial...
30.793939
81
0.657745
4,791
0.942925
0
0
0
0
0
0
834
0.164141
88031b336437f0a5497f94eace7653d85a0ddb61
1,326
py
Python
runtime/components/Statistic/moving_minimum_time.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
41
2020-11-18T10:12:29.000Z
2022-03-28T21:46:41.000Z
runtime/components/Statistic/moving_minimum_time.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
4
2020-12-08T15:28:15.000Z
2022-02-01T11:40:17.000Z
runtime/components/Statistic/moving_minimum_time.py
ulise/hetida-designer
a6be8eb45abf950d5498e3ca756ea1d2e46b5c00
[ "MIT" ]
14
2020-11-18T11:39:17.000Z
2022-03-21T15:05:11.000Z
from hetdesrun.component.registration import register from hetdesrun.datatypes import DataType import pandas as pd import numpy as np # ***** DO NOT EDIT LINES BELOW ***** # These lines may be overwritten if input/output changes. @register( inputs={"data": DataType.Any, "t": DataType.String}, outputs={"movmin...
28.212766
68
0.555053
0
0
0
0
1,093
0.824284
0
0
789
0.595023
88044ce700e39ec36bb7ba44d3c9905b593ae3a4
4,460
py
Python
painter.py
MikhailNakhatovich/rooms_painting
51b92797c867d4bb1c8d42a58785c0f4dacd4075
[ "MIT" ]
null
null
null
painter.py
MikhailNakhatovich/rooms_painting
51b92797c867d4bb1c8d42a58785c0f4dacd4075
[ "MIT" ]
null
null
null
painter.py
MikhailNakhatovich/rooms_painting
51b92797c867d4bb1c8d42a58785c0f4dacd4075
[ "MIT" ]
null
null
null
import cv2 import ezdxf import numpy as np def draw_hatch(img, entity, color, mask): for poly_path in entity.paths.paths: # print(poly_path.path_type_flags) polygon = np.array([vertex[:-1] for vertex in poly_path.vertices]).astype(int) if poly_path.path_type_flags & 1 == 1: cv2...
35.11811
99
0.578924
0
0
0
0
0
0
0
0
211
0.047309
8804685e3bac745bbfacb5b5cab8b6e032a05238
3,064
py
Python
misago/misago/users/serializers/auth.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/users/serializers/auth.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/users/serializers/auth.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework import serializers from ...acl.useracl import serialize_user_acl from .user import UserSerializer User = get_user_model() __all__ = ["AuthenticatedUserSerializer", "AnonymousUserSerializer"] class AuthFlags: def ...
31.587629
87
0.616841
2,553
0.833225
0
0
0
0
0
0
818
0.266971
8804c3b09c4502328bb0532182f3bbfcec72facf
2,171
py
Python
shop/models.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
null
null
null
shop/models.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
null
null
null
shop/models.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
null
null
null
from ctypes.wintypes import CHAR from distutils.command.upload import upload from random import choice from telnetlib import STATUS from unicodedata import category from django.db import models from ckeditor.fields import RichTextField from taggit.managers import TaggableManager # Create your models here. from mptt.mo...
38.767857
109
0.740212
1,805
0.831414
0
0
0
0
0
0
127
0.058498
8805528dd519906fc019a797eb45969b31e9b633
7,470
py
Python
supriya/patterns/NoteEvent.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/patterns/NoteEvent.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/patterns/NoteEvent.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import uuid import supriya.commands import supriya.realtime from supriya.patterns.Event import Event class NoteEvent(Event): ### CLASS VARIABLES ### __slots__ = () ### INITIALIZER ### def __init__( self, add_action=None, delta=None, duration=None, is_stop=T...
35.571429
86
0.545382
7,365
0.985944
0
0
0
0
0
0
333
0.044578
88055aadf736a00daf291c08df0121953d6b59c8
443
py
Python
emoji_utils.py
ApacheAA/LastSeen
1fe675b3ee3072d56e9fe094d1d80e1f7d876215
[ "MIT" ]
null
null
null
emoji_utils.py
ApacheAA/LastSeen
1fe675b3ee3072d56e9fe094d1d80e1f7d876215
[ "MIT" ]
null
null
null
emoji_utils.py
ApacheAA/LastSeen
1fe675b3ee3072d56e9fe094d1d80e1f7d876215
[ "MIT" ]
1
2021-04-04T02:46:10.000Z
2021-04-04T02:46:10.000Z
# unicode digit emojis # digits from '0' to '9' zero_digit_code = zd = 48 # excluded digits excl_digits = [2, 4, 5, 7] # unicode digit keycap udkc = '\U0000fe0f\U000020e3' hours_0_9 = [chr(i) + udkc for i in range(zd, zd + 10) if i - zd not in excl_digits] # number '10' emoji hours_0_9.append('\U0001f51f') # ...
26.058824
54
0.654628
0
0
0
0
0
0
0
0
196
0.442438
88059d921ab4392734ab0df3051f19d38efd4fa5
1,131
py
Python
TFBertForMaskedLM/main.py
Sniper970119/ExampleForTransformers
3348525957c38b2a45898d4f4652879933503b25
[ "Apache-2.0" ]
3
2021-01-24T04:55:46.000Z
2021-05-12T15:11:35.000Z
TFBertForMaskedLM/main.py
Sniper970119/ExampleForTransformers
3348525957c38b2a45898d4f4652879933503b25
[ "Apache-2.0" ]
null
null
null
TFBertForMaskedLM/main.py
Sniper970119/ExampleForTransformers
3348525957c38b2a45898d4f4652879933503b25
[ "Apache-2.0" ]
1
2021-01-24T04:55:53.000Z
2021-01-24T04:55:53.000Z
# -*- coding:utf-8 -*- """ ┏┛ ┻━━━━━┛ ┻┓ ┃       ┃ ┃   ━   ┃ ┃ ┳┛  ┗┳ ┃ ┃       ┃ ┃   ┻   ┃ ┃       ┃ ┗━┓   ┏━━━┛ ┃   ┃ 神兽保佑 ┃   ┃ 代码无BUG! ┃   ┗━━━━━━━━━┓ ┃CREATE BY SNIPER┣┓ ┃     ┏┛ ┗━┓ ┓ ┏━━━┳ ┓ ┏━┛ ...
21.75
78
0.546419
0
0
0
0
0
0
0
0
768
0.540464
8805a00d3b1fcbc6ac9137bed25cfb76407c9dfe
663
py
Python
mirari/TCS/migrations/0042_auto_20190726_0145.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
mirari/TCS/migrations/0042_auto_20190726_0145.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
18
2019-12-27T19:58:20.000Z
2022-02-27T08:17:49.000Z
mirari/TCS/migrations/0042_auto_20190726_0145.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2019-07-26 06:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('TCS', '0041_auto_20190726_0030'), ] operations = [ migrations.AlterModelOptions( name='modelo', options={'default_permission...
36.833333
365
0.653092
578
0.871795
0
0
0
0
0
0
375
0.565611
88063bdddf555a3761172dbc965029eec4f02090
6,071
py
Python
kornia/geometry/calibration/undistort.py
belltailjp/kornia
cfa3b6823d55e276893847f1c3f06ddf108c606a
[ "ECL-2.0", "Apache-2.0" ]
1
2022-01-06T00:36:04.000Z
2022-01-06T00:36:04.000Z
kornia/geometry/calibration/undistort.py
belltailjp/kornia
cfa3b6823d55e276893847f1c3f06ddf108c606a
[ "ECL-2.0", "Apache-2.0" ]
12
2021-09-26T14:07:49.000Z
2022-03-20T14:08:08.000Z
kornia/geometry/calibration/undistort.py
belltailjp/kornia
cfa3b6823d55e276893847f1c3f06ddf108c606a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import torch from kornia.geometry.linalg import transform_points from kornia.geometry.transform import remap from kornia.utils import create_meshgrid from .distort import distort_points, tilt_projection # Based on https://github.com/opencv/opencv/blob/master/modules/calib3d/src/undistort.dispatch.cpp#L384 def undis...
39.679739
109
0.567452
0
0
0
0
0
0
0
0
3,308
0.544886
8806b7d99f0084120c35f1e69100c53537ba82bc
422
py
Python
Tests/Aula_7a.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
4
2021-04-23T18:07:58.000Z
2021-05-12T11:38:14.000Z
Tests/Aula_7a.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
Tests/Aula_7a.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
n1 = int(input('Digite um valor: ')) n2 = int(input('Digite outro valor: ')) print('A soma é: {}!' .format(n1+n2)) print('A subtração entre {} e {} é {}!' .format(n1, n2, n1-n2)) print('A multiplicação desses valores é {}!' .format(n1 * n2)) print('A divisão entre {} e {} é {:.3}' .format(n1, n2, n1/n2)) print('A divis...
46.888889
63
0.601896
0
0
0
0
0
0
0
0
232
0.533333
880784410cfda04eacd518622e54861cdb7a1605
6,288
py
Python
manubot/cite/tests/test_citekey_api.py
shuvro-zz/manubot
9023b7fbfa0b235c14a4d702516bc0cd6d3101ed
[ "BSD-3-Clause" ]
1
2019-11-11T05:17:28.000Z
2019-11-11T05:17:28.000Z
manubot/cite/tests/test_citekey_api.py
shuvro-zz/manubot
9023b7fbfa0b235c14a4d702516bc0cd6d3101ed
[ "BSD-3-Clause" ]
null
null
null
manubot/cite/tests/test_citekey_api.py
shuvro-zz/manubot
9023b7fbfa0b235c14a4d702516bc0cd6d3101ed
[ "BSD-3-Clause" ]
null
null
null
"""Tests API-level functions in manubot.cite. Both functions are found in citekey.py""" import pytest from manubot.cite import citekey_to_csl_item, standardize_citekey @pytest.mark.parametrize( "citekey,expected", [ ("doi:10.5061/DRYAD.q447c/1", "doi:10.5061/dryad.q447c/1"), ("doi:10.5061/dr...
38.109091
98
0.667144
0
0
0
0
1,707
0.271469
0
0
3,326
0.528944
8808d379a8ce975e29508dea21a42397452fc552
2,489
py
Python
vispy/io/datasets.py
hmaarrfk/vispy
7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2
[ "BSD-3-Clause" ]
2,617
2015-01-02T07:52:18.000Z
2022-03-29T19:31:15.000Z
vispy/io/datasets.py
hmaarrfk/vispy
7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2
[ "BSD-3-Clause" ]
1,674
2015-01-01T00:36:08.000Z
2022-03-31T19:35:56.000Z
vispy/io/datasets.py
hmaarrfk/vispy
7f3f6f60c8462bb8a3a8fa03344a2e6990b86eb2
[ "BSD-3-Clause" ]
719
2015-01-10T14:25:00.000Z
2022-03-02T13:24:56.000Z
# -*- coding: utf-8 -*- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. import numpy as np from os import path as op from ..util import load_data_file # This is the package data dir, not the dir for config, etc. DATA_DIR = op.join...
26.2
73
0.60225
0
0
0
0
0
0
0
0
1,612
0.64765
8809a9e20076798a2ad0ec40dc57152d0a032e41
13,731
py
Python
universal_portfolio/knapsack.py
jehung/universal_portfolio
de731a6166ff057c8d6f3f73f80f9aca151805fa
[ "CC-BY-3.0" ]
14
2017-03-01T07:54:17.000Z
2021-10-10T11:07:56.000Z
universal_portfolio/knapsack.py
jehung/universal_portfolio
de731a6166ff057c8d6f3f73f80f9aca151805fa
[ "CC-BY-3.0" ]
null
null
null
universal_portfolio/knapsack.py
jehung/universal_portfolio
de731a6166ff057c8d6f3f73f80f9aca151805fa
[ "CC-BY-3.0" ]
3
2017-06-27T10:18:03.000Z
2020-07-03T01:29:56.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import numpy as np np.random.seed(1335) # for reproducibility np.set_printoptions(precision=5, suppress=True, linewidth=150) import os import pandas as pd import backtest as twp from matplotlib import pyplot as plt from sklearn import metrics, preprocessin...
36.134211
145
0.610516
0
0
0
0
0
0
0
0
4,354
0.317093
880a98e6cfdd279e5621d17d6384a4912cab6353
7,165
py
Python
experiments/experiment_01.py
bask0/q10hybrid
9b18af9dd382c65dd667139f97e7da0241091a2c
[ "Apache-2.0" ]
2
2021-05-05T13:37:58.000Z
2021-05-05T15:11:07.000Z
experiments/experiment_01.py
bask0/q10hybrid
9b18af9dd382c65dd667139f97e7da0241091a2c
[ "Apache-2.0" ]
null
null
null
experiments/experiment_01.py
bask0/q10hybrid
9b18af9dd382c65dd667139f97e7da0241091a2c
[ "Apache-2.0" ]
1
2021-11-23T18:13:08.000Z
2021-11-23T18:13:08.000Z
import pytorch_lightning as pl import optuna import xarray as xr from pytorch_lightning.callbacks.early_stopping import EarlyStopping from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint import os import shutil from argparse import ArgumentParser from datetime import datetime from project.fluxda...
32.130045
112
0.579204
4,563
0.636846
0
0
475
0.066294
0
0
1,560
0.217725
880bad578d9944f1ec06e580824fc923f1978b8e
2,886
py
Python
main.py
warifp/InstagramPostAndDelete
d22577325eccf42e629cef076ab43f7788587bc4
[ "MIT" ]
4
2019-06-03T04:00:51.000Z
2021-11-09T21:34:38.000Z
main.py
nittaya1990/InstagramPostAndDelete
d22577325eccf42e629cef076ab43f7788587bc4
[ "MIT" ]
null
null
null
main.py
nittaya1990/InstagramPostAndDelete
d22577325eccf42e629cef076ab43f7788587bc4
[ "MIT" ]
4
2019-10-30T19:44:08.000Z
2021-09-07T16:30:09.000Z
#! @@Author : WAHYU ARIF PURNOMO #! @@Create : 18 Januari 2019 #! @@Modify : 19 Januari 2019 #! Gambar dari reddit. #! Gunakan VPN karena DNS situs reddit sudah di blokir dari negara Indonesia. import os import json import requests import progressbar from PIL import Image from lxml import html from time import sleep f...
28.574257
125
0.615731
0
0
0
0
0
0
0
0
563
0.19508
880bba102de2d9226a037a90ff3d98814009f0c2
2,549
py
Python
pyspectator/collection.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
39
2017-02-27T15:21:21.000Z
2021-12-31T03:23:43.000Z
pyspectator/collection.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
18
2017-07-09T00:16:28.000Z
2021-12-03T21:01:38.000Z
pyspectator/collection.py
maximilionus/pyspectator-x
1265f1f39e7ca0534f9e6ffcd7087f2ebced3397
[ "BSD-3-Clause" ]
25
2017-03-05T07:59:34.000Z
2021-12-15T15:22:58.000Z
from collections import MutableMapping, Container from datetime import datetime, timedelta from pyvalid import accepts class LimitedTimeTable(MutableMapping, Container): def __init__(self, time_span): self.__storage = dict() self.__time_span = None self.time_span = time_span @propert...
27.117021
60
0.617497
2,394
0.939192
668
0.262064
993
0.389565
0
0
87
0.034131
880be95fb023fa99a8e4f0737f4b060a1751c3cd
576
py
Python
keyboardrow.py
AndySamoil/Elite_Code
7dc3b7b1b8688c932474f8a10fd2637fd2918bdd
[ "MIT" ]
null
null
null
keyboardrow.py
AndySamoil/Elite_Code
7dc3b7b1b8688c932474f8a10fd2637fd2918bdd
[ "MIT" ]
null
null
null
keyboardrow.py
AndySamoil/Elite_Code
7dc3b7b1b8688c932474f8a10fd2637fd2918bdd
[ "MIT" ]
null
null
null
def findWords(self, words: List[str]) -> List[str]: ''' sets and iterate through sets ''' every = [set("qwertyuiop"), set("asdfghjkl"), set("zxcvbnm")] ans = [] for word in words: l = len(word) for sett in every: ...
27.428571
69
0.362847
0
0
0
0
0
0
0
0
78
0.135417
880bf5d9dd1fda0ba4fc9eafcb000337f1273e4d
1,673
py
Python
DFS_Backtracking/31. Next Permutation.py
xli1110/LC
3c18b8809c5a21a62903060eef659654e0595036
[ "MIT" ]
2
2021-04-02T11:57:46.000Z
2021-04-02T11:57:47.000Z
DFS_Backtracking/31. Next Permutation.py
xli1110/LC
3c18b8809c5a21a62903060eef659654e0595036
[ "MIT" ]
null
null
null
DFS_Backtracking/31. Next Permutation.py
xli1110/LC
3c18b8809c5a21a62903060eef659654e0595036
[ "MIT" ]
null
null
null
class Solution: def __init__(self): self.res = [] self.path = [] def arr_to_num(self, arr): s = "" for x in arr: s += str(x) return int(s) def find_position(self, nums): for i in range(len(self.res)): if self.res[i] == nums: ...
26.140625
89
0.499701
1,528
0.913329
0
0
0
0
0
0
380
0.227137
880c149eaa01b78f766f6b8032706b3698b74fbc
1,392
py
Python
plugin/DataExport/extend.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
plugin/DataExport/extend.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
plugin/DataExport/extend.py
konradotto/TS
bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
#!/usr/bin/python # Copyright (C) 2015 Ion Torrent Systems, Inc. All Rights Reserved import subprocess import re pluginName = 'DataExport' pluginDir = "" networkFS = ["nfs", "cifs"] localFS = ["ext4", "ext3", "xfs", "ntfs", "exfat", "vboxsf"] supportedFS = ",".join(localFS + networkFS) def test(bucket): return...
27.84
131
0.569684
0
0
0
0
0
0
0
0
246
0.176724
880c1d871834c4fa9a80907f77053c53af975688
5,205
py
Python
boids/biods_object.py
PaulAustin/sb7-pgz
fca3e50132b9d1894fb348b2082e83ce7b937b19
[ "MIT" ]
1
2022-02-21T15:54:01.000Z
2022-02-21T15:54:01.000Z
boids/biods_object.py
PaulAustin/sb7-pgz
fca3e50132b9d1894fb348b2082e83ce7b937b19
[ "MIT" ]
null
null
null
boids/biods_object.py
PaulAustin/sb7-pgz
fca3e50132b9d1894fb348b2082e83ce7b937b19
[ "MIT" ]
2
2020-11-21T16:34:22.000Z
2021-01-27T10:30:34.000Z
# Ported from JavaSript version to Python and Pygame Zero # Designed to work well with mu-editor environment. # # The original Javascript version wasdonw by Ben Eater # at https://github.com/beneater/boids (MIT License) # No endorsement implied. # # Complex numbers are are used as vectors to integrate x and y positions...
31.932515
88
0.602882
3,144
0.604035
0
0
0
0
0
0
1,331
0.255716
880d1df9e7fa8cda82be2e587cdbae5ea94afb44
4,960
py
Python
upoutdf/types/recurring/yearly.py
UpOut/UpOutDF
5d2f87884565d98b77e25c6a26af7dbea266be76
[ "MIT" ]
null
null
null
upoutdf/types/recurring/yearly.py
UpOut/UpOutDF
5d2f87884565d98b77e25c6a26af7dbea266be76
[ "MIT" ]
null
null
null
upoutdf/types/recurring/yearly.py
UpOut/UpOutDF
5d2f87884565d98b77e25c6a26af7dbea266be76
[ "MIT" ]
null
null
null
# coding: utf-8 import pytz from dateutil.relativedelta import relativedelta from .base import BaseRecurring from upoutdf.occurences import OccurenceBlock, OccurenceGroup from upoutdf.constants import YEARLY_TYPE class YearlyType(BaseRecurring): year_day = None required_attributes = [ 'every', ...
30.060606
87
0.594153
4,740
0.955645
0
0
0
0
0
0
547
0.110282
880d94d22915e741e24ad40b49de37d7ad8757e9
625
py
Python
project/urls.py
dbinetti/captable
29769b2b99a3185fda241b3087ccbe621f8c97a2
[ "BSD-2-Clause" ]
18
2016-05-12T18:49:09.000Z
2021-10-05T13:29:09.000Z
project/urls.py
dbinetti/captable
29769b2b99a3185fda241b3087ccbe621f8c97a2
[ "BSD-2-Clause" ]
null
null
null
project/urls.py
dbinetti/captable
29769b2b99a3185fda241b3087ccbe621f8c97a2
[ "BSD-2-Clause" ]
5
2015-08-28T02:50:30.000Z
2019-11-14T04:03:05.000Z
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.views.generic import TemplateView urlpatterns = patterns( '', url(r'^$', TemplateView.as_view(template_name='home.html'), ...
31.25
85
0.7248
0
0
0
0
0
0
0
0
133
0.2128
880ea7ec7f81ab78d2446766017eac398be3d80f
9,388
py
Python
common/evaluators/bert_emotion_evaluator.py
marjanhs/procon20
c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b
[ "MIT" ]
5
2020-07-12T08:27:47.000Z
2021-10-16T11:40:48.000Z
common/evaluators/bert_emotion_evaluator.py
marjanhs/procon20
c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b
[ "MIT" ]
null
null
null
common/evaluators/bert_emotion_evaluator.py
marjanhs/procon20
c49ad38a77e58fd84ff0409cc9f5081c6de0bf0b
[ "MIT" ]
1
2021-04-12T09:54:37.000Z
2021-04-12T09:54:37.000Z
import warnings import numpy as np import torch import torch.nn.functional as F from sklearn import metrics from torch.utils.data import DataLoader, SequentialSampler, TensorDataset from tqdm import tqdm from datasets.bert_processors.abstract_processor import convert_examples_to_features_with_emotion, \ ...
51.582418
166
0.678526
8,802
0.93758
0
0
0
0
0
0
362
0.03856
881189eb3c68f5eb6d4b3bde9fa97065430d1651
781
py
Python
model/mlp1.py
andrearosasco/DistilledReplay
2a4efa88d22b9afc7016f07549114688f346dbe8
[ "MIT" ]
7
2021-06-27T16:09:13.000Z
2022-03-17T20:02:55.000Z
model/mlp1.py
andrew-r96/DistilledReplay
2a4efa88d22b9afc7016f07549114688f346dbe8
[ "MIT" ]
null
null
null
model/mlp1.py
andrew-r96/DistilledReplay
2a4efa88d22b9afc7016f07549114688f346dbe8
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, config): super(Model, self).__init__() self.drop = nn.Dropout(config['dropout']) self.fc1 = nn.Linear(784, 2000) self.fc2 = nn.Linear(2000, 2000) self.fc3 = nn.Linea...
28.925926
50
0.516005
721
0.923175
0
0
0
0
0
0
82
0.104994
8811e504a270f2f7246e1ece4241279f011e0643
745
py
Python
netbox/ipam/managers.py
aslafy-z/netbox
a5512dd4c46c005df8752fc330c1382ac22b31ea
[ "Apache-2.0" ]
1
2022-01-25T09:02:56.000Z
2022-01-25T09:02:56.000Z
netbox/ipam/managers.py
aslafy-z/netbox
a5512dd4c46c005df8752fc330c1382ac22b31ea
[ "Apache-2.0" ]
4
2021-06-08T22:29:06.000Z
2022-03-12T00:48:51.000Z
netbox/ipam/managers.py
aslafy-z/netbox
a5512dd4c46c005df8752fc330c1382ac22b31ea
[ "Apache-2.0" ]
null
null
null
from django.db import models from ipam.lookups import Host, Inet class IPAddressManager(models.Manager): def get_queryset(self): """ By default, PostgreSQL will order INETs with shorter (larger) prefix lengths ahead of those with longer (smaller) masks. This makes no sense when ordering ...
41.388889
118
0.689933
676
0.907383
0
0
0
0
0
0
522
0.700671
881335d234ca66e078e1413e1e2269e82e80ed06
5,709
py
Python
train.py
VArdulov/learning-kis
2637f08d5e8027a22feff17064be45ea51f738e5
[ "MIT" ]
null
null
null
train.py
VArdulov/learning-kis
2637f08d5e8027a22feff17064be45ea51f738e5
[ "MIT" ]
null
null
null
train.py
VArdulov/learning-kis
2637f08d5e8027a22feff17064be45ea51f738e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ Learning Koopman Invariant Subspace (c) Naoya Takeishi, 2017. takeishi@ailab.t.u-tokyo.ac.jp """ import numpy as np np.random.seed(1234567890) from argparse import ArgumentParser from os import path import time from lkis import TimeSeriesBatchMaker, KoopmanInvariantSubspa...
38.574324
145
0.669294
0
0
0
0
0
0
0
0
1,781
0.311964
8813da3968ae4a879a3ffd1fca43f066e89df5ea
671
py
Python
Algorithms/Easy/1200. Minimum Absolute Difference/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/1200. Minimum Absolute Difference/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/1200. Minimum Absolute Difference/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def minimumAbsDifference(self, arr: List[int]) -> List[List[int]]: arr.sort() res = [] min_diff = arr[1] - arr[0] res.append([arr[0], arr[1]]) for i in range(1, len(arr)-1): diff = arr[i+1]-arr[i] if diff < min...
26.84
70
0.490313
508
0.757079
0
0
0
0
0
0
10
0.014903
8814231575bbe6e4934834a1434e867f02c0e57d
2,125
py
Python
resources/physequations.py
VijayStroup/Physics_Problem_Solver_Basic
fc6944475ed8bcfe91bbd207734c3f9aee31e0fe
[ "MIT" ]
null
null
null
resources/physequations.py
VijayStroup/Physics_Problem_Solver_Basic
fc6944475ed8bcfe91bbd207734c3f9aee31e0fe
[ "MIT" ]
null
null
null
resources/physequations.py
VijayStroup/Physics_Problem_Solver_Basic
fc6944475ed8bcfe91bbd207734c3f9aee31e0fe
[ "MIT" ]
null
null
null
import math def close(expected, actual, maxerror): '''checks to see if the actual number is within expected +- maxerror.''' low = expected - maxerror high = expected + maxerror if actual >= low and actual <= high: return True else: return False def grav_potential_energy(mass, height, gravity=9.81): '''calcu...
32.19697
88
0.631059
0
0
0
0
0
0
0
0
913
0.429647
71467296157c3ad9afffaf380b92ae10d722c419
10,659
py
Python
mvpa2/tests/test_erdataset.py
andycon/PyMVPA
67f7ee68012e3a1128168c583d6c83303b7a2c27
[ "MIT" ]
null
null
null
mvpa2/tests/test_erdataset.py
andycon/PyMVPA
67f7ee68012e3a1128168c583d6c83303b7a2c27
[ "MIT" ]
null
null
null
mvpa2/tests/test_erdataset.py
andycon/PyMVPA
67f7ee68012e3a1128168c583d6c83303b7a2c27
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
48.45
96
0.626888
0
0
0
0
0
0
0
0
2,519
0.236326
7148d1a57a15a29836e2ab0aae7b7bc5dc398f57
1,174
py
Python
userbot/plugins/delfp.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
null
null
null
userbot/plugins/delfp.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
1
2022-01-09T11:35:06.000Z
2022-01-09T11:35:06.000Z
userbot/plugins/delfp.py
aksr-aashish/FIREXUSERBOT
dff0b7bf028cb27779626ce523402346cc990402
[ "MIT" ]
null
null
null
from telethon.tl.functions.photos import DeletePhotosRequest, GetUserPhotosRequest from telethon.tl.types import InputPhoto from userbot.cmdhelp import CmdHelp from userbot.utils import admin_cmd, edit_or_reply, sudo_cmd CmdHelp("delfp").add_command("delpfp", None, "delete ur currnt profile picture").add() @borg.on...
34.529412
86
0.67632
0
0
0
0
861
0.73339
757
0.644804
222
0.189097
7149245bb6b3dda015cca0a397d867fb3542c00d
1,308
py
Python
amlb/benchmarks/file.py
pplonski/automlbenchmark
f49ddfa2583643173296ed8ab45a8c14c62a6987
[ "MIT" ]
282
2018-09-19T09:45:46.000Z
2022-03-30T04:05:51.000Z
amlb/benchmarks/file.py
pplonski/automlbenchmark
f49ddfa2583643173296ed8ab45a8c14c62a6987
[ "MIT" ]
267
2018-11-02T11:43:11.000Z
2022-03-31T08:58:16.000Z
amlb/benchmarks/file.py
pplonski/automlbenchmark
f49ddfa2583643173296ed8ab45a8c14c62a6987
[ "MIT" ]
104
2018-10-17T19:32:36.000Z
2022-03-19T22:47:59.000Z
import logging import os from typing import List, Tuple, Optional from amlb.utils import config_load, Namespace log = logging.getLogger(__name__) def _find_local_benchmark_definition(name: str, benchmark_definition_dirs: List[str]) -> str: # 'name' should be either a full path to the benchmark, # or a filen...
39.636364
119
0.727829
0
0
0
0
0
0
0
0
427
0.326453
714957e1bb0b1384b108ed8e7921b1c771c5effe
4,815
py
Python
pybuspro/devices/control.py
eyesoft/pybuspro
9a178117be2db40ef1399cc60afdc18e251682bc
[ "MIT" ]
2
2019-03-15T03:47:10.000Z
2019-10-30T15:34:09.000Z
pybuspro/devices/control.py
eyesoft/pybuspro
9a178117be2db40ef1399cc60afdc18e251682bc
[ "MIT" ]
null
null
null
pybuspro/devices/control.py
eyesoft/pybuspro
9a178117be2db40ef1399cc60afdc18e251682bc
[ "MIT" ]
4
2019-01-12T17:50:24.000Z
2020-01-12T16:56:24.000Z
from ..core.telegram import Telegram from ..helpers.enums import OperateCode class _Control: def __init__(self, buspro): self._buspro = buspro self.subnet_id = None self.device_id = None @staticmethod def build_telegram_from_control(control): if control is None: ...
28.660714
106
0.655867
4,702
0.976532
0
0
2,420
0.502596
226
0.046937
163
0.033853
7149b8c5cf18fd7bdd1bfdc804b0918d755edaae
5,961
py
Python
appengine/chrome_infra_console_loadtest/main.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
appengine/chrome_infra_console_loadtest/main.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
appengine/chrome_infra_console_loadtest/main.py
eunchong/infra
ce3728559112bfb3e8b32137eada517aec6d22f9
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 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 logging import endpoints import random import webapp2 from apiclient import discovery from google.appengine.ext import ndb from oauth2client.client i...
33.301676
78
0.690824
4,719
0.791646
0
0
2,071
0.347425
0
0
620
0.104009
7149cd13d14ac2cce8176e2e198709907cc8c456
9,523
py
Python
src/mitre/securingai/restapi/task_plugin/controller.py
usnistgov/dioptra
08a08e96c27787915bafc75a483431333e2c70ca
[ "CC-BY-4.0" ]
14
2021-06-17T15:16:12.000Z
2021-11-08T10:25:37.000Z
src/mitre/securingai/restapi/task_plugin/controller.py
usnistgov/dioptra
08a08e96c27787915bafc75a483431333e2c70ca
[ "CC-BY-4.0" ]
7
2021-09-20T20:20:26.000Z
2022-03-30T13:17:43.000Z
src/mitre/securingai/restapi/task_plugin/controller.py
usnistgov/dioptra
08a08e96c27787915bafc75a483431333e2c70ca
[ "CC-BY-4.0" ]
4
2021-06-29T16:52:42.000Z
2022-01-21T16:56:45.000Z
# This Software (Dioptra) is being made available as a public service by the # National Institute of Standards and Technology (NIST), an Agency of the United # States Department of Commerce. This software was developed in part by employees of # NIST and in part by NIST contractors. Copyright in portions of this softwar...
37.789683
88
0.676888
7,100
0.745563
0
0
7,576
0.795548
0
0
2,987
0.313662
714a5d7f1ebf03213e86c878b9d094ccb13ebf53
16,181
py
Python
dulwich/tests/test_lru_cache.py
mjmaenpaa/dulwich
d13a0375f4cc3099ff1c6edacda97f317c28f67a
[ "Apache-2.0" ]
null
null
null
dulwich/tests/test_lru_cache.py
mjmaenpaa/dulwich
d13a0375f4cc3099ff1c6edacda97f317c28f67a
[ "Apache-2.0" ]
null
null
null
dulwich/tests/test_lru_cache.py
mjmaenpaa/dulwich
d13a0375f4cc3099ff1c6edacda97f317c28f67a
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2006, 2008 Canonical Ltd # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or # modify it under the terms of either of these t...
35.798673
79
0.603115
15,148
0.93616
0
0
0
0
0
0
3,772
0.233113
714b8d767c11fadd1e5da33bbf5b7d19a7d70405
382
py
Python
py/2016/5B.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
py/2016/5B.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
py/2016/5B.py
pedrotari7/advent_of_code
98d5bc8d903435624a019a5702f5421d7b4ef8c8
[ "MIT" ]
null
null
null
import md5 (i,count) = (0,0) password = ['']*8 while 1: key = 'reyedfim' + str(i) md = md5.new(key).hexdigest() if md[:5] == '00000': index = int(md[5],16) if index < len(password) and password[index]=='': password[index] = md[6] count += 1 if count ...
17.363636
58
0.465969
0
0
0
0
0
0
0
0
23
0.060209
714cfc19c240490817e3657df9cb9287844afbb6
16,391
py
Python
release/scripts/mgear/shifter_epic_components/EPIC_foot_01/__init__.py
lsica-scopely/mgear4
28ed5d66370a9516da05d93d447bfc15f4c0c9f4
[ "MIT" ]
null
null
null
release/scripts/mgear/shifter_epic_components/EPIC_foot_01/__init__.py
lsica-scopely/mgear4
28ed5d66370a9516da05d93d447bfc15f4c0c9f4
[ "MIT" ]
null
null
null
release/scripts/mgear/shifter_epic_components/EPIC_foot_01/__init__.py
lsica-scopely/mgear4
28ed5d66370a9516da05d93d447bfc15f4c0c9f4
[ "MIT" ]
null
null
null
import pymel.core as pm import ast from pymel.core import datatypes from mgear.shifter import component from mgear.core import node, applyop, vector from mgear.core import attribute, transform, primitive class Component(component.Main): """Shifter component Class""" # ======================================...
33.865702
79
0.505887
16,182
0.987249
0
0
0
0
0
0
2,893
0.176499
714e6f1bdf4058bf187b53f8c773baa127319b6d
546
py
Python
streams/blog/migrations/0012_auto_20200928_1212.py
Engerrs/ckan.org
a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158
[ "BSD-3-Clause" ]
1
2022-03-18T03:20:00.000Z
2022-03-18T03:20:00.000Z
streams/blog/migrations/0012_auto_20200928_1212.py
Engerrs/ckan.org
a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158
[ "BSD-3-Clause" ]
26
2021-07-07T08:42:42.000Z
2022-03-29T14:34:59.000Z
streams/blog/migrations/0012_auto_20200928_1212.py
Engerrs/ckan.org
a5a9b63b0ca16cb5aa4f709f7a264b8f6c265158
[ "BSD-3-Clause" ]
3
2021-07-07T22:11:03.000Z
2021-09-15T18:19:10.000Z
# Generated by Django 3.1.1 on 2020-09-28 12:12 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0011_blogpostpage_featured'), ] operations = [ migrations.RemoveField( model_name='blogpostpage', ...
22.75
82
0.600733
437
0.800366
0
0
0
0
0
0
124
0.227106
714e74c6035390e31e82cb8cc61f9783ca761b5f
58,939
py
Python
opac/webapp/main/views.py
rafaelpezzuto/opac
9b54202350e262a27cb9cb756a892185b288df24
[ "BSD-2-Clause" ]
null
null
null
opac/webapp/main/views.py
rafaelpezzuto/opac
9b54202350e262a27cb9cb756a892185b288df24
[ "BSD-2-Clause" ]
null
null
null
opac/webapp/main/views.py
rafaelpezzuto/opac
9b54202350e262a27cb9cb756a892185b288df24
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 import logging import requests import mimetypes from io import BytesIO from urllib.parse import urlparse from datetime import datetime, timedelta from collections import OrderedDict from flask_babelex import gettext as _ from flask import ( render_template, abort, current_app, request, ...
34.957888
128
0.625358
407
0.006883
0
0
50,774
0.858641
0
0
13,945
0.235824
714ebaf58f896dbaa65742bb16b60c72d8438768
252
py
Python
create_read_write_1/Writing/to_csv.py
CodeXfull/Pandas
08b0adc28eedba47f6eb8303ba6a36a37ababb92
[ "MIT" ]
null
null
null
create_read_write_1/Writing/to_csv.py
CodeXfull/Pandas
08b0adc28eedba47f6eb8303ba6a36a37ababb92
[ "MIT" ]
null
null
null
create_read_write_1/Writing/to_csv.py
CodeXfull/Pandas
08b0adc28eedba47f6eb8303ba6a36a37ababb92
[ "MIT" ]
null
null
null
""" Converter um DataFrame para CSV """ import pandas as pd dataset = pd.DataFrame({'Frutas': ["Abacaxi", "Mamão"], "Nomes": ["Éverton", "Márcia"]}, index=["Linha 1", "Linha 2"]) dataset.to_csv("dataset.csv")
25.2
55
0.543651
0
0
0
0
0
0
0
0
121
0.47451
714ec7d33bab5008ec611874fc87d94cc9deca3c
9,769
py
Python
venv/Lib/site-packages/pygsheets/client.py
13rilliant/Python-CMS
56c4f3f1cbdd81020aa690ab92d0e26d042458c1
[ "MIT" ]
1
2019-04-22T14:22:38.000Z
2019-04-22T14:22:38.000Z
venv/Lib/site-packages/pygsheets/client.py
13rilliant/Python-Updates-Text-Files-from-Sheets
56c4f3f1cbdd81020aa690ab92d0e26d042458c1
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pygsheets/client.py
13rilliant/Python-Updates-Text-Files-from-Sheets
56c4f3f1cbdd81020aa690ab92d0e26d042458c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-. import re import warnings import os import logging from pygsheets.drive import DriveAPIWrapper from pygsheets.sheet import SheetAPIWrapper from pygsheets.spreadsheet import Spreadsheet from pygsheets.exceptions import SpreadsheetNotFound, NoValidUrlKeyFound from pygsheets.custom_types import ...
46.519048
142
0.614085
8,988
0.920053
0
0
372
0.03808
0
0
6,154
0.629952
714ecc8f34f21f3f5078c51278dfea154ffd4835
1,511
py
Python
model/group_contact.py
NatalyAristova/Training_python
e95a2b9e25238285d705a880fd94d73f173c3a31
[ "Apache-2.0" ]
null
null
null
model/group_contact.py
NatalyAristova/Training_python
e95a2b9e25238285d705a880fd94d73f173c3a31
[ "Apache-2.0" ]
null
null
null
model/group_contact.py
NatalyAristova/Training_python
e95a2b9e25238285d705a880fd94d73f173c3a31
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Group_contact: def __init__(self,firstname=None, middlename=None, lastname=None, nickname=None, title=None, company=None, address=None, home=None, mobile=None, work=None, fax=None, email=None, email2=None, email3=None, byear=None, address2=None, pho...
36.853659
148
0.650563
1,485
0.982793
0
0
0
0
0
0
19
0.012574
714f78bb4bb01676183ee7d2b3639573c3d0ac56
712
py
Python
test/manual/documents/test_iter_documents.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
103
2015-01-12T00:40:51.000Z
2022-03-29T07:02:06.000Z
test/manual/documents/test_iter_documents.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
26
2015-01-10T04:08:41.000Z
2021-02-05T16:31:37.000Z
test/manual/documents/test_iter_documents.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
43
2015-03-04T18:11:06.000Z
2022-03-13T02:33:34.000Z
from itertools import islice from test import get_user_session, cassette from test.resources.documents import delete_all_documents, create_document def test_should_iterate_through_documents(): session = get_user_session() delete_all_documents() with cassette('fixtures/resources/documents/iter_documents/...
32.363636
96
0.706461
0
0
0
0
0
0
0
0
130
0.182584
714fe59976a41e4840adb621109e180ee047b25c
5,567
py
Python
demo.py
cbsudux/minimal-hand
893c252e7e818a9a96b279023ea8a78a88fb0a4d
[ "MIT" ]
null
null
null
demo.py
cbsudux/minimal-hand
893c252e7e818a9a96b279023ea8a78a88fb0a4d
[ "MIT" ]
null
null
null
demo.py
cbsudux/minimal-hand
893c252e7e818a9a96b279023ea8a78a88fb0a4d
[ "MIT" ]
null
null
null
import argparse import cv2 import keyboard import numpy as np import open3d as o3d import os import pygame from transforms3d.axangles import axangle2mat import config from hand_mesh import HandMesh from kinematics import mpii_to_mano from utils import OneEuroFilter, imresize from wrappers import ModelPipeline from ut...
33.136905
100
0.629064
0
0
0
0
0
0
0
0
2,188
0.39303
715027948c136a1c6e6c296495419c7112dea3be
1,929
py
Python
test_project/settings.py
incuna/incuna-groups
148c181faf66fe73792cb2c5bbf5500ba61aa22d
[ "BSD-2-Clause" ]
1
2017-09-29T23:58:02.000Z
2017-09-29T23:58:02.000Z
test_project/settings.py
incuna/incuna-groups
148c181faf66fe73792cb2c5bbf5500ba61aa22d
[ "BSD-2-Clause" ]
51
2015-03-30T08:58:15.000Z
2022-01-13T00:40:17.000Z
test_project/settings.py
incuna/incuna-groups
148c181faf66fe73792cb2c5bbf5500ba61aa22d
[ "BSD-2-Clause" ]
null
null
null
import os import dj_database_url BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEBUG = True ALLOWED_HOSTS = [] ROOT_URLCONF = 'groups.tests.urls' STATIC_URL = '/static/' SECRET_KEY = 'krc34ji^-fd-=+r6e%p!0u0k9h$9!q*_#l=6)74h#o(jrxsx4p' PASSWORD_HASHERS = ('django.contrib.auth.hashers.MD5Pa...
28.367647
76
0.659927
0
0
0
0
0
0
0
0
1,148
0.595127
7150fca7ddfd290e2618756c7d1c3d98b7e62c0b
11,824
py
Python
tests/test_akismet.py
cclauss/akismet
7b65bc163d6947a3013d01bf9accf1bc6c0781ca
[ "BSD-3-Clause" ]
9
2015-07-21T01:43:05.000Z
2021-04-01T12:53:32.000Z
tests/test_akismet.py
cclauss/akismet
7b65bc163d6947a3013d01bf9accf1bc6c0781ca
[ "BSD-3-Clause" ]
3
2015-09-28T09:01:17.000Z
2021-11-18T08:19:36.000Z
tests/test_akismet.py
cclauss/akismet
7b65bc163d6947a3013d01bf9accf1bc6c0781ca
[ "BSD-3-Clause" ]
7
2015-09-27T03:14:44.000Z
2021-12-05T22:48:44.000Z
import datetime import os import sys import unittest from unittest import mock import akismet class AkismetTests(unittest.TestCase): api_key = os.getenv("TEST_AKISMET_API_KEY") blog_url = os.getenv("TEST_AKISMET_BLOG_URL") api_key_env_var = "PYTHON_AKISMET_API_KEY" blog_url_env_var = "PYTHON_AKISMET...
31.87062
88
0.58931
11,717
0.990951
0
0
0
0
0
0
4,008
0.338972
7151993c0f8145d0e1fdf8168c7b895118af0892
2,581
py
Python
experimenting/dataset/datamodule.py
gaurvigoyal/lifting_events_to_3d_hpe
66d27eb7534f81a95d9f68e17cc534ef2a2c9b1c
[ "Apache-2.0" ]
19
2021-04-16T11:43:34.000Z
2022-01-07T10:21:42.000Z
experimenting/dataset/datamodule.py
gaurvigoyal/lifting_events_to_3d_hpe
66d27eb7534f81a95d9f68e17cc534ef2a2c9b1c
[ "Apache-2.0" ]
4
2021-04-16T14:07:38.000Z
2022-02-12T16:35:22.000Z
experimenting/dataset/datamodule.py
gianscarpe/event-camera
8bb60a281adb9e2c961b5e12c24c9bbbba1876d5
[ "Apache-2.0" ]
5
2021-04-23T16:30:37.000Z
2022-02-12T01:42:14.000Z
import pytorch_lightning as pl from torch.utils.data import DataLoader, Dataset from .core import BaseCore from .factory import BaseDataFactory class DataModule(pl.LightningDataModule): def __init__( self, dataset_factory: BaseDataFactory, core: BaseCore, aug_train_config, ...
28.362637
84
0.631538
2,139
0.828749
0
0
0
0
0
0
0
0
7152cc15e7baaacfb5a36373bdeff28f520d9e9f
2,906
py
Python
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_3_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_3_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_3_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import numpy as np #Load file dt=pd.read_csv("sevn_output/output_0.csv") #Give a look to the columns print(dt.columns) #Consider only the final states dt=dt.drop_duplicates(["ID","name"], keep='last') #Load evolved file dte=pd.read_csv("sevn_output/evolved_0.dat",se...
34.595238
144
0.719202
0
0
0
0
0
0
0
0
1,005
0.345836
7152e1ff12041d507f6d8d481cc402ae12c07a3f
91
py
Python
apps/tg_bot/apps.py
VladimirLazor/Lohika
a36407feeb2e3ade4f8c689030f343d88ff47a92
[ "Apache-2.0" ]
null
null
null
apps/tg_bot/apps.py
VladimirLazor/Lohika
a36407feeb2e3ade4f8c689030f343d88ff47a92
[ "Apache-2.0" ]
9
2021-03-19T15:59:10.000Z
2022-03-12T00:57:56.000Z
apps/tg_bot/apps.py
VladimirLazor/Lohika
a36407feeb2e3ade4f8c689030f343d88ff47a92
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class TgBotConfig(AppConfig): name = 'apps.tg_bot'
15.166667
33
0.747253
54
0.593407
0
0
0
0
0
0
13
0.142857
71530e1943a52265477429affe05d43b9f82d449
2,152
py
Python
office365/sharepoint/portal/group_site_manager.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/sharepoint/portal/group_site_manager.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/sharepoint/portal/group_site_manager.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
from office365.runtime.client_object import ClientObject from office365.runtime.client_result import ClientResult from office365.runtime.http.http_method import HttpMethod from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.resource_path import ResourcePath from of...
37.754386
109
0.701208
1,679
0.780204
0
0
0
0
0
0
497
0.230948
715433d014e2773f3519d53929b4573136138236
186
py
Python
tests/errors/e_tuple_args_T692.py
smok-serwis/cython
e551a3a348888bd89d4aad809916709a634af1fb
[ "Apache-2.0" ]
2
2020-01-29T08:20:22.000Z
2020-01-29T08:20:25.000Z
tests/errors/e_tuple_args_T692.py
smok-serwis/cython
e551a3a348888bd89d4aad809916709a634af1fb
[ "Apache-2.0" ]
1
2019-09-21T19:58:10.000Z
2019-09-21T19:58:10.000Z
tests/errors/e_tuple_args_T692.py
smok-serwis/cython
e551a3a348888bd89d4aad809916709a634af1fb
[ "Apache-2.0" ]
2
2017-06-18T04:09:18.000Z
2018-11-30T20:03:58.000Z
# ticket: 692 # mode: error def func((a, b)): return a + b _ERRORS = u""" 4:9: Missing argument name 5:11: undeclared name not builtin: a 5:15: undeclared name not builtin: b """
14.307692
36
0.645161
0
0
0
0
0
0
0
0
135
0.725806
71548039cb810f86d8a1fe4c36b02cd515b16949
558
py
Python
ble.py
Ladvien/esp32_upython_env
8b0feab940efd3feff16220473e1b5b27d679a56
[ "MIT" ]
null
null
null
ble.py
Ladvien/esp32_upython_env
8b0feab940efd3feff16220473e1b5b27d679a56
[ "MIT" ]
null
null
null
ble.py
Ladvien/esp32_upython_env
8b0feab940efd3feff16220473e1b5b27d679a56
[ "MIT" ]
null
null
null
import bluetooth import time bt = bluetooth.BLE() # singleton bt.active(True) # activate BT stack UART_UUID = bluetooth.UUID('6E400001-B5A3-F393-E0A9-E50E24DCCA9E') UART_TX = (bluetooth.UUID('6E400003-B5A3-F393-E0A9-E50E24DCCA9E'), bluetooth.FLAG_READ | bluetooth.FLAG_NOTIFY,) UAR...
50.727273
112
0.716846
0
0
0
0
0
0
0
0
144
0.258065
715562602b941a7d39f1c3b9c3f9ed3ae5bab180
952
py
Python
examples/custom-generator/customer.py
luxbe/sledo
26aa2b59b11ea115afc25bb407602578cb342170
[ "MIT" ]
4
2021-12-13T17:52:52.000Z
2021-12-28T09:40:52.000Z
examples/custom-generator/customer.py
luxbe/sledo
26aa2b59b11ea115afc25bb407602578cb342170
[ "MIT" ]
null
null
null
examples/custom-generator/customer.py
luxbe/sledo
26aa2b59b11ea115afc25bb407602578cb342170
[ "MIT" ]
null
null
null
from random import randint from sledo.generate.field_generators.base import FieldGenerator values = ("Austria", "Belgium", "Bulgaria", "Croatia", "Cyprus", "Czech Republic", "Denmark", "Estonia", "Finland", "France", "G...
21.636364
63
0.456933
117
0.122899
0
0
0
0
0
0
319
0.335084
71567463ea68f026c0c3520620d04799ac10631b
731
py
Python
status-uncertain/baseline_model.py
crawftv/CRAwTO
8c6fdb93ed963cbddfe967b041e8beb578d1e94d
[ "BSD-3-Clause" ]
1
2020-04-03T12:43:27.000Z
2020-04-03T12:43:27.000Z
status-uncertain/baseline_model.py
crawftv/CRAwTO
8c6fdb93ed963cbddfe967b041e8beb578d1e94d
[ "BSD-3-Clause" ]
21
2020-02-14T04:29:03.000Z
2020-07-14T02:19:37.000Z
status-uncertain/baseline_model.py
crawftv/CRAwTO
8c6fdb93ed963cbddfe967b041e8beb578d1e94d
[ "BSD-3-Clause" ]
1
2019-10-25T01:06:58.000Z
2019-10-25T01:06:58.000Z
#!/usr/bin/env python3 from sklearn.metrics import r2_score import numpy as np class BaselineModel(object): def get_params(self): return None def predict(self, X): return np.ones_like(X.index.values) * self._y_pred def score(self, X, y): y_true = y y_pred = np.ones_like(y...
20.305556
58
0.621067
643
0.879617
0
0
0
0
0
0
22
0.030096
7157c50528da6262c46158a9ce6e62a7c31b48be
3,229
py
Python
aligner/grow_diag_final.py
ecalder6/MT-HW2
1356aeb374a6e4d0b0ae819684bf314039948c56
[ "MIT" ]
null
null
null
aligner/grow_diag_final.py
ecalder6/MT-HW2
1356aeb374a6e4d0b0ae819684bf314039948c56
[ "MIT" ]
null
null
null
aligner/grow_diag_final.py
ecalder6/MT-HW2
1356aeb374a6e4d0b0ae819684bf314039948c56
[ "MIT" ]
null
null
null
import optparse import sys def make_set(data, s, e_vocab, f_vocab, aligned, reverse): for pair in data.split(): cur = pair.split('-') if reverse: e_vocab.add(int(cur[1])) f_vocab.add(int(cur[0])) aligned.add(int(cur[0])) s.add((int(cur[1]), int(cur[0]...
44.232877
142
0.577888
0
0
0
0
0
0
0
0
344
0.106535
715823dd8a36dcb9c1e16c0545d16a02d319badc
2,567
py
Python
tests/test_tbears_db.py
Transcranial-Solutions/t-bears
4712b8bb425814c444ee75f3220a31df934982aa
[ "Apache-2.0" ]
35
2018-08-24T03:39:35.000Z
2021-08-21T23:35:57.000Z
tests/test_tbears_db.py
Transcranial-Solutions/t-bears
4712b8bb425814c444ee75f3220a31df934982aa
[ "Apache-2.0" ]
40
2018-08-24T05:35:54.000Z
2021-12-15T08:23:38.000Z
tests/test_tbears_db.py
Transcranial-Solutions/t-bears
4712b8bb425814c444ee75f3220a31df934982aa
[ "Apache-2.0" ]
22
2018-08-28T15:11:46.000Z
2021-12-01T23:34:45.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2018 ICON Foundation # # 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 ...
33.776316
85
0.679782
1,748
0.680951
0
0
0
0
0
0
805
0.313596
715a02ff047054f60c24cd7d80d0ef426229bc1b
1,658
py
Python
src/exabgp/bgp/message/update/attribute/bgpls/link/mplsmask.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
1,560
2015-01-01T08:53:05.000Z
2022-03-29T20:22:43.000Z
src/exabgp/bgp/message/update/attribute/bgpls/link/mplsmask.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
818
2015-01-01T17:38:40.000Z
2022-03-30T07:29:24.000Z
src/exabgp/bgp/message/update/attribute/bgpls/link/mplsmask.py
pierky/exabgp
34be537ae5906c0830b31da1152ae63108ccf911
[ "BSD-3-Clause" ]
439
2015-01-06T21:20:41.000Z
2022-03-19T23:24:25.000Z
# encoding: utf-8 """ mplsmask.py Created by Evelio Vila on 2016-12-01. Copyright (c) 2014-2017 Exa Networks. All rights reserved. """ from exabgp.bgp.message.notification import Notify from exabgp.bgp.message.update.attribute.bgpls.linkstate import LinkState from exabgp.bgp.message.update.attribute.bgpls.linkstate im...
41.45
77
0.390229
178
0.107358
0
0
200
0.120627
0
0
1,312
0.791315
715d6a83862066d08f507e36bb0ef91281fb5c5f
4,977
py
Python
tests/test_cecum.py
hsorby/scaffoldmaker
5e3b4531665dbc465b53acc1662f8d9bbb9dc1e1
[ "Apache-2.0" ]
null
null
null
tests/test_cecum.py
hsorby/scaffoldmaker
5e3b4531665dbc465b53acc1662f8d9bbb9dc1e1
[ "Apache-2.0" ]
38
2018-04-04T10:40:26.000Z
2022-03-14T22:02:26.000Z
tests/test_cecum.py
hsorby/scaffoldmaker
5e3b4531665dbc465b53acc1662f8d9bbb9dc1e1
[ "Apache-2.0" ]
28
2018-03-11T19:31:35.000Z
2022-02-03T23:14:21.000Z
import unittest from opencmiss.utils.zinc.finiteelement import evaluateFieldNodesetRange from opencmiss.utils.zinc.general import ChangeManager from opencmiss.zinc.context import Context from opencmiss.zinc.element import Element from opencmiss.zinc.field import Field from opencmiss.zinc.result import RESULT_OK from s...
53.516129
115
0.723327
4,415
0.887081
0
0
0
0
0
0
755
0.151698
715db019834eea3cecfac08bf5fe333bb00487eb
3,658
py
Python
samples/destroy_vm.py
jm66/pyvmomi-community-samples
5ca4a50b767500e07b9bce9fba70240bfa963a4e
[ "Apache-2.0" ]
4
2016-01-04T06:19:56.000Z
2018-09-09T01:03:07.000Z
samples/destroy_vm.py
zhangjiahaol/pyvmomi-community-samples
905ec34edfbd151531832e98b6a0748fa6ff5e0e
[ "Apache-2.0" ]
12
2019-04-17T02:47:25.000Z
2021-04-02T09:15:37.000Z
samples/destroy_vm.py
zhangjiahaol/pyvmomi-community-samples
905ec34edfbd151531832e98b6a0748fa6ff5e0e
[ "Apache-2.0" ]
15
2018-04-26T05:18:12.000Z
2021-11-06T04:44:58.000Z
#!/usr/bin/env python # Copyright 2015 Michael Rice <michael@michaelrice.org> # # 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 # # ...
31.264957
76
0.594587
0
0
0
0
0
0
0
0
1,344
0.367414
715e64156e2717f5d7270f3da98702a6b8223554
253
py
Python
helpers/Screen.py
1000monkeys/MastermindRedux
6b07a341ecbf2ea325949a49c84218cc3632cd33
[ "Unlicense" ]
null
null
null
helpers/Screen.py
1000monkeys/MastermindRedux
6b07a341ecbf2ea325949a49c84218cc3632cd33
[ "Unlicense" ]
null
null
null
helpers/Screen.py
1000monkeys/MastermindRedux
6b07a341ecbf2ea325949a49c84218cc3632cd33
[ "Unlicense" ]
null
null
null
import sys class Screen: def __init__(self) -> None: pass def handle_events(self, events): for event in events: if event.type == self.pygame.QUIT: sys.exit() def draw(self, screen): pass
19.461538
46
0.545455
241
0.952569
0
0
0
0
0
0
0
0
71602e883fba7821b66ac710b8b6c9c76a964d73
5,193
py
Python
VirtualStage/BackgroundMatting/fixed_threshold.py
chris-han/ailab
b77d90f9089fa8003095843aa5de718fe73965a7
[ "MIT" ]
null
null
null
VirtualStage/BackgroundMatting/fixed_threshold.py
chris-han/ailab
b77d90f9089fa8003095843aa5de718fe73965a7
[ "MIT" ]
null
null
null
VirtualStage/BackgroundMatting/fixed_threshold.py
chris-han/ailab
b77d90f9089fa8003095843aa5de718fe73965a7
[ "MIT" ]
null
null
null
import os def fixed_split(videos, thresholds, mask_suffix, overlap=0, background_path="/"): # crop target background video frames backgrounds = [os.path.join(background_path, f[:-4]) for f in os.listdir(background_path) if f.endswith(".mp4")] print(f"Splitting {len(backgrounds)} target background videos...
33.720779
116
0.48238
0
0
0
0
0
0
0
0
2,184
0.420566
7160d131d6077709c38251321b7619b34bcdeab7
7,041
py
Python
hn2016_falwa/utilities.py
veredsil/hn2016_falwa
53035ac838860dd8a8d85619f16cc9785dee8655
[ "MIT" ]
null
null
null
hn2016_falwa/utilities.py
veredsil/hn2016_falwa
53035ac838860dd8a8d85619f16cc9785dee8655
[ "MIT" ]
null
null
null
hn2016_falwa/utilities.py
veredsil/hn2016_falwa
53035ac838860dd8a8d85619f16cc9785dee8655
[ "MIT" ]
null
null
null
import numpy as np from math import pi,exp def static_stability(height,area,theta,s_et=None,n_et=None): """ The function "static_stability" computes the vertical gradient (z-derivative) of hemispheric-averaged potential temperature, i.e. d\tilde{theta}/dz in the def- inition of QGPV in eq.(3) of Huang ...
40.234286
111
0.656441
0
0
0
0
0
0
0
0
4,408
0.626047
7160dc5984a5a68781b1f9dc71bfe52a6ee535f4
12,570
py
Python
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/_params.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/_params.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/_params.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
61.019417
120
0.631344
0
0
0
0
0
0
0
0
5,937
0.472315
7160eb99604d70299eb40716235e949ffc576a16
3,280
py
Python
metrics-calculator/tests/integration/test_s3.py
nhsconnect/prm-practice-migration-dashboard
40c8760f409834d05bde4fb015aa5f8765acaa82
[ "0BSD" ]
null
null
null
metrics-calculator/tests/integration/test_s3.py
nhsconnect/prm-practice-migration-dashboard
40c8760f409834d05bde4fb015aa5f8765acaa82
[ "0BSD" ]
null
null
null
metrics-calculator/tests/integration/test_s3.py
nhsconnect/prm-practice-migration-dashboard
40c8760f409834d05bde4fb015aa5f8765acaa82
[ "0BSD" ]
null
null
null
import boto3 import gzip from moto import mock_s3 import pytest import os from chalicelib.s3 import read_object_s3, write_object_s3, objects_exist from tests.builders.file import build_gzip_csv @pytest.fixture(scope='function') def aws_credentials(): """Mocked AWS Credentials for moto.""" os.environ['AWS_ACC...
28.521739
97
0.710366
0
0
104
0.031707
3,061
0.933232
0
0
1,031
0.314329
716145a9d2a82e68a98031ac79781824db56e9c8
13,528
py
Python
image_analogy/losses/patch_matcher.py
kaldap/image-analogies
0867aedfae7dfc0d27c42805a3d07f7b9eb7eaa2
[ "MIT" ]
3,722
2016-02-28T18:03:51.000Z
2022-03-29T18:03:30.000Z
image_analogy/losses/patch_matcher.py
germanmad/image-analogies
066626149ccb96b0a0488ca7ea4fc992aa62b727
[ "MIT" ]
58
2016-02-28T03:23:43.000Z
2022-03-11T23:14:08.000Z
image_analogy/losses/patch_matcher.py
germanmad/image-analogies
066626149ccb96b0a0488ca7ea4fc992aa62b727
[ "MIT" ]
351
2016-03-05T03:22:48.000Z
2022-03-01T09:06:33.000Z
import numpy as np import scipy.interpolate import scipy.ndimage from sklearn.feature_extraction.image import extract_patches_2d, reconstruct_from_patches_2d def _calc_patch_grid_dims(shape, patch_size, patch_stride): x_w, x_h, x_c = shape num_rows = 1 + (x_h - patch_size) // patch_stride num_cols = 1 + (...
43.922078
171
0.671348
5,921
0.437685
0
0
0
0
0
0
2,470
0.182584
716192be9eb9b6903ed659ac040571121cd26498
344
py
Python
muni_portal/core/migrations/0030_remove_servicerequest_mobile_reference.py
desafinadude/muni-portal-backend
9ffc447194b8f29619585cd919f67d62062457a3
[ "MIT" ]
1
2021-01-18T13:01:04.000Z
2021-01-18T13:01:04.000Z
muni_portal/core/migrations/0030_remove_servicerequest_mobile_reference.py
desafinadude/muni-portal-backend
9ffc447194b8f29619585cd919f67d62062457a3
[ "MIT" ]
42
2020-08-29T08:55:53.000Z
2021-04-14T16:41:29.000Z
muni_portal/core/migrations/0030_remove_servicerequest_mobile_reference.py
desafinadude/muni-portal-backend
9ffc447194b8f29619585cd919f67d62062457a3
[ "MIT" ]
2
2020-10-28T16:34:41.000Z
2022-02-07T10:29:31.000Z
# Generated by Django 2.2.10 on 2021-02-24 09:42 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0029_auto_20210224_0936'), ] operations = [ migrations.RemoveField( model_name='servicerequest', name='mobile_refer...
19.111111
48
0.610465
258
0.75
0
0
0
0
0
0
113
0.328488
7161bb83a934c99f17f3988c15fe48d8592c6f29
1,247
py
Python
rllib/agents/ppo/tests/test_appo.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
2
2020-02-17T17:36:23.000Z
2020-08-24T19:59:18.000Z
rllib/agents/ppo/tests/test_appo.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
8
2020-11-13T19:02:47.000Z
2022-03-12T00:44:51.000Z
rllib/agents/ppo/tests/test_appo.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
1
2021-07-26T07:17:06.000Z
2021-07-26T07:17:06.000Z
import unittest import ray import ray.rllib.agents.ppo as ppo from ray.rllib.utils.test_utils import check_compute_single_action, \ framework_iterator class TestAPPO(unittest.TestCase): @classmethod def setUpClass(cls): ray.init() @classmethod def tearDownClass(cls): ray.shutdown...
29
76
0.630313
982
0.78749
0
0
119
0.095429
0
0
140
0.112269