hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7968b62273df647611ae86d030bb9e85f95b7257
18,461
py
Python
python/sdssdb/utils/ingest.py
albireox/sdssdb
02d165d3a4347e8241aacdbdca0cec86058c8d29
[ "BSD-3-Clause" ]
6
2019-04-10T21:28:44.000Z
2021-03-01T18:39:55.000Z
python/sdssdb/utils/ingest.py
albireox/sdssdb
02d165d3a4347e8241aacdbdca0cec86058c8d29
[ "BSD-3-Clause" ]
44
2018-10-31T17:48:20.000Z
2022-01-27T20:52:26.000Z
python/sdssdb/utils/ingest.py
albireox/sdssdb
02d165d3a4347e8241aacdbdca0cec86058c8d29
[ "BSD-3-Clause" ]
2
2021-07-13T17:09:43.000Z
2021-07-13T19:33:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # @Author: José Sánchez-Gallego (gallegoj@uw.edu) # @Date: 2019-09-21 # @Filename: ingest.py # @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause) import functools import io import multiprocessing import os import re import warnings import numpy imp...
32.21815
96
0.618493
7968b88ba9265bbfd7b7d2326c96a7efed283c08
1,340
py
Python
src/transformers/activations.py
haqishen/transformers
d38bbb225f7b847e8be4e969cb9b40e7e4d798a6
[ "Apache-2.0" ]
95
2020-08-20T23:24:50.000Z
2022-03-03T16:56:51.000Z
src/transformers/activations.py
haqishen/transformers
d38bbb225f7b847e8be4e969cb9b40e7e4d798a6
[ "Apache-2.0" ]
6
2020-10-07T16:35:29.000Z
2022-03-10T03:30:15.000Z
src/transformers/activations.py
haqishen/transformers
d38bbb225f7b847e8be4e969cb9b40e7e4d798a6
[ "Apache-2.0" ]
12
2020-08-20T23:25:06.000Z
2022-01-14T12:06:30.000Z
import math import torch import torch.nn.functional as F def swish(x): return x * torch.sigmoid(x) def _gelu_python(x): """ Original Implementation of the gelu activation function in Google Bert repo when initially created. For information: OpenAI GPT's gelu is slightly different (and gives slightl...
27.916667
115
0.647015
7968b8b91582d8372fba683db570c01557f3c19a
2,408
py
Python
ts_unittest/Calculator_HTMLTestRunner.py
carter-gao/AutoTestFramework
3dcf4fac3da02db8ddd27c0cc18a2fa02064871e
[ "Apache-2.0" ]
1
2022-01-23T06:52:01.000Z
2022-01-23T06:52:01.000Z
ts_unittest/Calculator_HTMLTestRunner.py
carter-gao/AutoTestFramework
3dcf4fac3da02db8ddd27c0cc18a2fa02064871e
[ "Apache-2.0" ]
null
null
null
ts_unittest/Calculator_HTMLTestRunner.py
carter-gao/AutoTestFramework
3dcf4fac3da02db8ddd27c0cc18a2fa02064871e
[ "Apache-2.0" ]
3
2020-03-31T03:44:03.000Z
2021-01-10T13:42:32.000Z
# coding:utf-8 """ unittest用例示例! """ import os import time import unittest from packages.HTMLTestRunner import HTMLTestRunner from common.constant import report_path # 计算机 class Count: def __init__(self, a, b): self.a = int(a) self.b = int(b) def add(self): return self.a + self.b ...
19.264
107
0.548173
7968b9660e1a67a037d04a1d4941288378e74ed7
4,473
py
Python
src/EnvCNN/Data/anno_reader.py
toppic-suite/envcnn
142d150e65b7fe7018904fa4536d2f1a7ece989d
[ "Apache-2.0" ]
1
2020-05-26T22:54:55.000Z
2020-05-26T22:54:55.000Z
src/EnvCNN/Data/anno_reader.py
toppic-suite/envcnn
142d150e65b7fe7018904fa4536d2f1a7ece989d
[ "Apache-2.0" ]
null
null
null
src/EnvCNN/Data/anno_reader.py
toppic-suite/envcnn
142d150e65b7fe7018904fa4536d2f1a7ece989d
[ "Apache-2.0" ]
null
null
null
##Copyright (c) 2014 - 2020, The Trustees of Indiana University. ## ##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 a...
31.0625
85
0.67002
7968bbf4f463a61829be1fc961407eaa12d99b9d
308
py
Python
examples/yields.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
206
2021-06-24T16:16:13.000Z
2022-03-31T07:44:17.000Z
examples/yields.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
13
2021-06-24T17:51:36.000Z
2022-02-23T10:07:17.000Z
examples/yields.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
14
2021-06-26T02:19:45.000Z
2022-03-30T03:02:49.000Z
def main(): my_gen = gen() for x in my_gen: print("Received next number!") print(x) def gen(): print("Yielding next number...") yield 1 print("Yielding next number...") yield 2 print("Yielding next number...") yield 3 if __name__ == '__main__': main()
16.210526
38
0.558442
7968beb6ef5dbcb3b20651b233bc9fce4d96a4fa
279
py
Python
tests/runtests.py
Gagaro/django-unused-media
98c97a3940b94501cadf7dcdc8966ccee6031d1e
[ "MIT" ]
112
2016-03-14T11:45:56.000Z
2022-02-25T01:52:15.000Z
tests/runtests.py
Gagaro/django-unused-media
98c97a3940b94501cadf7dcdc8966ccee6031d1e
[ "MIT" ]
35
2016-09-03T20:28:18.000Z
2021-11-23T22:00:50.000Z
tests/runtests.py
Gagaro/django-unused-media
98c97a3940b94501cadf7dcdc8966ccee6031d1e
[ "MIT" ]
36
2016-04-14T16:34:44.000Z
2021-11-23T20:21:00.000Z
# -*- coding: utf-8 -*- import os from django_nose import NoseTestSuiteRunner os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") if __name__ == '__main__': if NoseTestSuiteRunner(verbosity=1).run_tests(['tests']) > 0: exit(1) else: exit(0)
17.4375
65
0.663082
7968befdda085c5f11296503fe866e5a176fef86
3,083
py
Python
thespian/transient.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
thespian/transient.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
thespian/transient.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
"""Decorators for defining Transient actors: actors which go away (on their own) after performing work. There are two decorators defined here: Transient and TransientIdle. * The Transient decorator marks an Actor that exits a specified amount of time after it receives its first message. * The TransientIdle d...
40.565789
79
0.692183
7968bf630d08aafab7e9832941b67cd301bcc39e
461
py
Python
Scraping_Data/tripadvisor/tripadvisor/items.py
broilo/How-to
cd3075bc50b84fb2e0d44bfbe2ac2b661a629fed
[ "MIT" ]
null
null
null
Scraping_Data/tripadvisor/tripadvisor/items.py
broilo/How-to
cd3075bc50b84fb2e0d44bfbe2ac2b661a629fed
[ "MIT" ]
null
null
null
Scraping_Data/tripadvisor/tripadvisor/items.py
broilo/How-to
cd3075bc50b84fb2e0d44bfbe2ac2b661a629fed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class TripadvisorItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() author_comments = scrapy.Field() ...
25.611111
53
0.698482
7968bf6a1bb51bced08f2ac0a39c339d8859d9c4
20,940
py
Python
tests/base/test_context.py
DerThorsten/conda
8ba65ad3831ab0d3a3b8a768e1605f68ff4ac640
[ "BSD-3-Clause" ]
null
null
null
tests/base/test_context.py
DerThorsten/conda
8ba65ad3831ab0d3a3b8a768e1605f68ff4ac640
[ "BSD-3-Clause" ]
null
null
null
tests/base/test_context.py
DerThorsten/conda
8ba65ad3831ab0d3a3b8a768e1605f68ff4ac640
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals from itertools import chain import os from os.path import join, abspath from tempfile import gettempdir from unittest import TestCase, m...
43.08642
132
0.641452
7968c2523e74e8d81dae218fbd93ae11c3bd1e0a
11,424
py
Python
misago/categories/tests/test_permissions_admin_views.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/categories/tests/test_permissions_admin_views.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/categories/tests/test_permissions_admin_views.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
from django.urls import reverse from misago.acl.models import Role from misago.acl.testutils import fake_post_data from misago.admin.testutils import AdminTestCase from misago.categories.models import Category, CategoryRole def fake_data(data_dict): return fake_post_data(CategoryRole(), data_dict) class Catego...
35.042945
97
0.576681
7968c27445ba8ac8b5b0b98a597e5fac11f9e517
20,313
py
Python
tools/data/parse_file_list.py
ZJU-lishuang/mmaction2
dc46505319968eff0123eb5abb811969042377c5
[ "Apache-2.0" ]
2
2021-12-07T09:09:10.000Z
2022-01-26T01:52:07.000Z
tools/data/parse_file_list.py
ZJU-lishuang/mmaction2
dc46505319968eff0123eb5abb811969042377c5
[ "Apache-2.0" ]
null
null
null
tools/data/parse_file_list.py
ZJU-lishuang/mmaction2
dc46505319968eff0123eb5abb811969042377c5
[ "Apache-2.0" ]
null
null
null
import csv import fnmatch import glob import json import os import os.path as osp import mmcv def parse_directory(path, rgb_prefix='img_', flow_x_prefix='flow_x_', flow_y_prefix='flow_y_', level=1): """Parse directories holding extrac...
35.699473
111
0.592921
7968c3ae20d66b30d024f0baa30366788b6bc508
9,541
py
Python
roles/modeling/fast/model.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
roles/modeling/fast/model.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
7
2020-11-13T17:50:07.000Z
2022-02-10T02:17:14.000Z
roles/modeling/fast/model.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
# https://www.tensorflow.org/tutorials/load_data/images # https://www.tensorflow.org/tutorials/keras/overfit_and_underfit # https://www.tensorflow.org/tutorials/keras/save_and_load import tensorflow as tf import logging import os import os.path from tensorflow.keras import layers from google.cloud import storage import...
32.016779
135
0.677812
7968c3cfb20e1d7ebfeda26a217dc49ce840dd2f
13,741
py
Python
backends/p4test/run-p4-sample.py
Matthewyin/p4c
390893bb703611dbeeacca0f335a9853c937291a
[ "Apache-2.0" ]
2
2021-07-03T06:44:23.000Z
2021-07-03T06:44:31.000Z
backends/p4test/run-p4-sample.py
jaguar-project/p4c
15e0865d2ac15df2ac89a23eade31695bfa49723
[ "Apache-2.0" ]
null
null
null
backends/p4test/run-p4-sample.py
jaguar-project/p4c
15e0865d2ac15df2ac89a23eade31695bfa49723
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2013-present Barefoot Networks, 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 b...
36.065617
138
0.603886
7968c4c725fc6c24f67d3db10519ddaf27cc3aa6
6,450
py
Python
models/inception_model.py
sebalp1987/anomaly_detection_answers
fee2eb08302c1e340acd910d1777016625c25def
[ "BSD-2-Clause" ]
null
null
null
models/inception_model.py
sebalp1987/anomaly_detection_answers
fee2eb08302c1e340acd910d1777016625c25def
[ "BSD-2-Clause" ]
null
null
null
models/inception_model.py
sebalp1987/anomaly_detection_answers
fee2eb08302c1e340acd910d1777016625c25def
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import pandas as pd from keras.utils import to_categorical from keras import layers, Input, regularizers from keras.models import Model from sklearn import metrics from keras.optimizers import SGD, Adam from keras.callbacks import EarlyStopping import STRING from resources.sampling import un...
39.329268
121
0.633178
7968c4d99a30a717e41227f258e5f48add93c248
7,289
py
Python
rtv/inbox_page.py
rsayers/retty
fdd4323bda291cf6ea51873c6c32fd1fd6c42998
[ "MIT" ]
5,221
2015-03-02T03:41:49.000Z
2022-03-27T05:34:01.000Z
rtv/inbox_page.py
Aareon/rtv
8d349ab2122f1bdb99a2ea4cd92260f7da80a268
[ "MIT" ]
580
2015-03-02T14:42:08.000Z
2020-03-11T15:33:49.000Z
rtv/inbox_page.py
Aareon/rtv
8d349ab2122f1bdb99a2ea4cd92260f7da80a268
[ "MIT" ]
426
2015-03-02T05:56:09.000Z
2022-03-21T17:12:46.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import docs from .content import InboxContent from .page import Page, PageController, logged_in from .objects import Navigator, Command class InboxController(PageController): character_map = {} class InboxPage(Page): BANNER = docs.BANNE...
35.556098
81
0.600905
7968c54d2e7d678e0819a23800a05aefdb9d659b
2,085
py
Python
apps/events/dashboard/tests.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/events/dashboard/tests.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
apps/events/dashboard/tests.py
mariusaarsnes/onlineweb4
3495321dabfd7a7236e6d841b004e9f855b6f30e
[ "MIT" ]
null
null
null
import datetime from django.contrib.auth.models import Group, Permission from django.test import TestCase from django.urls import reverse from django.utils import timezone from django_dynamic_fixture import G from rest_framework import status from apps.authentication.models import OnlineUser as User from apps.events....
30.661765
73
0.732854
7968c556c1bc42726072132ac6ef4033b736f040
9,866
py
Python
tests/nnapi/specs/skip/V1_2/rnn_float16.mod.py
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
255
2020-05-22T07:45:29.000Z
2022-03-29T23:58:22.000Z
tests/nnapi/specs/skip/V1_2/rnn_float16.mod.py
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
5,102
2020-05-22T07:48:33.000Z
2022-03-31T23:43:39.000Z
test/cts/tool/CTSConverter/src/nn/specs/V1_2/rnn_float16.mod.py
ibelem/webml-polyfill
aaf1ba4f5357eaf6e89bf9990f5bdfb543cd2bc2
[ "Apache-2.0" ]
120
2020-05-22T07:51:08.000Z
2022-02-16T19:08:05.000Z
# # Copyright (C) 2018 The Android Open Source Project # # 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 la...
48.841584
101
0.513177
7968c8b3cae85a6f296f0154be659664c450ab56
1,152
py
Python
cache.py
mitou/meikan
b19c4dfd0aa3ce35ab1a7dbdedabe2257b82878b
[ "MIT" ]
3
2016-06-12T07:17:10.000Z
2020-10-25T00:23:10.000Z
cache.py
mitou/meikan
b19c4dfd0aa3ce35ab1a7dbdedabe2257b82878b
[ "MIT" ]
26
2016-04-12T09:29:09.000Z
2016-12-06T10:14:48.000Z
cache.py
mitou/meikan
b19c4dfd0aa3ce35ab1a7dbdedabe2257b82878b
[ "MIT" ]
null
null
null
""" library to get all data and cache them If this is called as a script, it refresh local cache """ import pykintone from pykintone import model from mymodel import Person import secret import unicodecsv def load(filename): rd = unicodecsv.reader(file(filename), encoding='utf-8') return [Person().from_tuple(...
23.04
74
0.622396
7968c9c5e5c5dc051e479089ba8b39e7e79bc4de
4,698
py
Python
prepare.py
czc567/UniGNN
bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96
[ "MIT" ]
null
null
null
prepare.py
czc567/UniGNN
bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96
[ "MIT" ]
null
null
null
prepare.py
czc567/UniGNN
bbb061f393b847ff6c7c20cab9e1ecb8f1c3eb96
[ "MIT" ]
null
null
null
from model import * import torch, numpy as np, scipy.sparse as sp import torch.optim as optim, torch.nn.functional as F def accuracy(Z, Y): return 100 * Z.argmax(1).eq(Y).float().mean().item() import torch_sparse def fetch_data(args): from data import data dataset, _, _ = data.load(args) args...
29.180124
117
0.571094
7968c9f77224295e76a394a5adf524b5b14aa462
3,301
py
Python
chapter06/memcached_demo/memcached_demo/settings.py
Tomtao626/django
fe945063593b4bfe82d74842f728b854b501a294
[ "Apache-2.0" ]
null
null
null
chapter06/memcached_demo/memcached_demo/settings.py
Tomtao626/django
fe945063593b4bfe82d74842f728b854b501a294
[ "Apache-2.0" ]
null
null
null
chapter06/memcached_demo/memcached_demo/settings.py
Tomtao626/django
fe945063593b4bfe82d74842f728b854b501a294
[ "Apache-2.0" ]
null
null
null
""" Django settings for memcached_demo project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from ...
26.620968
91
0.690397
7968cb2897c532040d9f32f888ffdb6e6422ba4f
2,706
py
Python
modules/filter.py
TheHercules/Telegram-UserBot
62f7abf68eaf729779f9e0c4af4c000445d6136b
[ "Unlicense" ]
2
2018-10-23T09:15:18.000Z
2019-02-14T11:47:08.000Z
modules/filter.py
pkp1337x/Telegram-UserBot
f139a1b09f01da795a663fc8ff9d147ecc51e8de
[ "Unlicense" ]
null
null
null
modules/filter.py
pkp1337x/Telegram-UserBot
f139a1b09f01da795a663fc8ff9d147ecc51e8de
[ "Unlicense" ]
null
null
null
import sqlite3 @bot.on(events.NewMessage(incoming=True)) @bot.on(events.MessageEdited(incoming=True)) async def filter_incoming_handler(e): db=sqlite3.connect("filters.db") cursor=db.cursor() cursor.execute('''SELECT * FROM FILTER''') all_rows = cursor.fetchall() for row in all_rows: if int(...
41
101
0.642646
7968cb5f837a276b11c2822683090482db58e84d
1,806
py
Python
migrations/versions/4c8854184956_add_a_table_thread.py
AndreyAD1/forum
bae8bee6c45ca53b717c661a4dc624fec05aca35
[ "MIT" ]
null
null
null
migrations/versions/4c8854184956_add_a_table_thread.py
AndreyAD1/forum
bae8bee6c45ca53b717c661a4dc624fec05aca35
[ "MIT" ]
null
null
null
migrations/versions/4c8854184956_add_a_table_thread.py
AndreyAD1/forum
bae8bee6c45ca53b717c661a4dc624fec05aca35
[ "MIT" ]
null
null
null
"""Add a table Thread Revision ID: 4c8854184956 Revises: 31dffef5e3e2 Create Date: 2021-02-15 02:30:19.827276 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4c8854184956' down_revision = '31dffef5e3e2' branch_labels = None depends_on = None def upgrade(): ...
36.857143
105
0.692691
7968cb7e560114136d5a937e113fccff9c2e08ac
6,691
py
Python
tests/resource_tests.py
derks/drest
7e35375ffd884c3c124dc800f94c2f271d788e0f
[ "BSD-3-Clause" ]
9
2015-03-10T00:41:54.000Z
2020-05-07T06:03:22.000Z
tests/resource_tests.py
derks/drest
7e35375ffd884c3c124dc800f94c2f271d788e0f
[ "BSD-3-Clause" ]
null
null
null
tests/resource_tests.py
derks/drest
7e35375ffd884c3c124dc800f94c2f271d788e0f
[ "BSD-3-Clause" ]
null
null
null
"""Tests for drest.resource.""" import os import re import unittest import copy from random import random from nose.tools import eq_, ok_, raises import drest from drest.testing import MOCKAPI class ResourceTestCase(unittest.TestCase): def test_rest_get_all(self): api = drest.api.API(MOCKAPI) api...
34.668394
93
0.594381
7968cbd4bba8a1567affee4ead1fbb633d891163
638
py
Python
Leetcode/Python/_5.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
1
2021-11-28T15:03:32.000Z
2021-11-28T15:03:32.000Z
Leetcode/Python/_5.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
Leetcode/Python/_5.py
Xrenya/algorithms
aded82cacde2f4f2114241907861251e0e2e5638
[ "MIT" ]
null
null
null
class Solution: def longestPalindrome(self, s): longest_palindrom = '' dp = [[0]*len(s) for _ in range(len(s))] for i in range(len(s)): dp[i][i] = 1 longest_palindrom = s[i] for i in range(len(s)-1, -1, -1): for j in ra...
37.529412
70
0.388715
7968cc136e4aaaa48dadd462b6625c6406fb3e71
2,326
py
Python
dreamer/utils/plot.py
KohMat/carracing-dreamer
1e46bf0e6bcbb45adc2fef1b9b65f54e2706f77d
[ "MIT" ]
2
2021-01-20T12:49:46.000Z
2021-12-22T09:14:43.000Z
dreamer/utils/plot.py
KohMat/carracing-dreamer
1e46bf0e6bcbb45adc2fef1b9b65f54e2706f77d
[ "MIT" ]
1
2021-03-31T01:25:02.000Z
2021-04-28T09:07:41.000Z
dreamer/utils/plot.py
KohMat/carracing-dreamer
1e46bf0e6bcbb45adc2fef1b9b65f54e2706f77d
[ "MIT" ]
null
null
null
from typing import Union import numpy as np from visdom import Visdom class Plot: def __init__(self, x_label="Epoch", y_label="Loss", visdom=None): self.impl = LinePlot(x_label=x_label, y_label=y_label, visdom=visdom) def add( self, epoch: Union[int, float, np.float32], value...
28.024096
78
0.529235
7968cd6ed23bb1bcf3e0168f2024826ce27d2370
176
py
Python
About/views.py
indoriyasboyz/E-commerce
a71e7d043899769e48992216bebebc4b43d647ca
[ "MIT" ]
null
null
null
About/views.py
indoriyasboyz/E-commerce
a71e7d043899769e48992216bebebc4b43d647ca
[ "MIT" ]
null
null
null
About/views.py
indoriyasboyz/E-commerce
a71e7d043899769e48992216bebebc4b43d647ca
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic import TemplateView # Create your views here. class Aboutview(TemplateView): template_name = 'about.html'
17.6
45
0.784091
7968ce214abd51d04334a4f8543fb157c445c4d4
1,659
py
Python
examples/spatial_join.py
tomplex/meridian
96888fe5f34150ed4bba92e5af8904a09499cc04
[ "MIT" ]
9
2018-11-19T19:52:24.000Z
2020-11-23T22:38:30.000Z
examples/spatial_join.py
tomplex/meridian
96888fe5f34150ed4bba92e5af8904a09499cc04
[ "MIT" ]
6
2018-11-21T03:43:25.000Z
2019-02-28T06:07:59.000Z
examples/spatial_join.py
tomplex/meridian
96888fe5f34150ed4bba92e5af8904a09499cc04
[ "MIT" ]
null
null
null
import itertools import meridian from examples.data import states_data, power_plants_data # Define our data model for the power plant dataset class PowerPlant(meridian.Record): fid: int plant_code: int plant_name: str sector_name: str primsource: str install_mw: int total_mw: int per...
30.163636
102
0.720313
7968cfba6c5c310f4077e5406f9a9ba7471cac0c
1,257
py
Python
context_manager_test.py
njw0308/python_clean_code
a2005a220eb684c3df3e843ac3703dcfec7b3b00
[ "MIT" ]
null
null
null
context_manager_test.py
njw0308/python_clean_code
a2005a220eb684c3df3e843ac3703dcfec7b3b00
[ "MIT" ]
null
null
null
context_manager_test.py
njw0308/python_clean_code
a2005a220eb684c3df3e843ac3703dcfec7b3b00
[ "MIT" ]
null
null
null
#1. class context_manager(): def __enter__(self): print("START") return "<RETURN DATA>" def __exit__(self, type_, value, traceback): if traceback: # error 가 들어온 경우 다른 결과를 출력하게끔. print("ERROR OCCURED") else: print(type_) #none print(value)...
19.640625
60
0.613365
7968d170e0261149be5a784a58c97ccae1a9da88
318
py
Python
Level1_032021/course_notes/ders04.py
eproje/uPy_Course
e0deaf138051e8b45c6ed71f743e8da11434b092
[ "MIT" ]
null
null
null
Level1_032021/course_notes/ders04.py
eproje/uPy_Course
e0deaf138051e8b45c6ed71f743e8da11434b092
[ "MIT" ]
null
null
null
Level1_032021/course_notes/ders04.py
eproje/uPy_Course
e0deaf138051e8b45c6ed71f743e8da11434b092
[ "MIT" ]
2
2021-05-01T13:37:20.000Z
2021-06-05T02:19:16.000Z
#ders 4 """ while(koşul) koşul oluğu sürece *python operators """ sifre = "cezeri" girilensifre="" while (sifre != girilensifre): girilensifre=input("şifrenizi girin :") if (sifre != girilensifre): print (" Girdiğiniz şifre yanlış !") print ("gridiğiniz şifre doğru devam edebilirsiniz")
17.666667
52
0.660377
7968d1940ddb41b750e957c2392c342f0a82ae12
6,939
py
Python
bindings/python/ensmallen_graph/datasets/string/pseudomonasresinovoransdsm21078.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/pseudomonasresinovoransdsm21078.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/pseudomonasresinovoransdsm21078.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Pseudomonas resinovorans DSM21078. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Dat...
36.329843
223
0.713647
7968d2e4a7ec2d17ec88600c92b4d194b041757d
31
py
Python
src/feature/__init__.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
src/feature/__init__.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
src/feature/__init__.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
from . import eme_data_loader
15.5
30
0.806452
7968d30b3d69ad3e2e092764643510de9e95e7b7
1,064
py
Python
build/setup.py
craffel/jax
fc170b2b912f08ca4cacb51b19cd3ecab5156f1b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
build/setup.py
craffel/jax
fc170b2b912f08ca4cacb51b19cd3ecab5156f1b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
build/setup.py
craffel/jax
fc170b2b912f08ca4cacb51b19cd3ecab5156f1b
[ "ECL-2.0", "Apache-2.0" ]
1
2020-09-22T07:53:43.000Z
2020-09-22T07:53:43.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.242424
74
0.708647
7968d392fdbabc172892f1f605a7491baf48cbce
184
py
Python
src/entity/Context.py
twopairs/simple-token-classifier
06531869d14f94b20f76aaa504864e5879695136
[ "MIT" ]
null
null
null
src/entity/Context.py
twopairs/simple-token-classifier
06531869d14f94b20f76aaa504864e5879695136
[ "MIT" ]
null
null
null
src/entity/Context.py
twopairs/simple-token-classifier
06531869d14f94b20f76aaa504864e5879695136
[ "MIT" ]
null
null
null
class Ctx: conf = "" const = "" def __init__(self, const, config): self.const = const self.conf = config def getConf(self): return self.conf
15.333333
38
0.538043
7968d7dbd1a7f157b919a7577674cf03476c962b
15,240
py
Python
src/test.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
1
2021-09-16T06:24:39.000Z
2021-09-16T06:24:39.000Z
src/test.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
null
null
null
src/test.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
null
null
null
from src.model_blocks import * import torch.nn as nn import timm from src.activations import Swish_Module from src.config import YAMLConfig import typing import gc from src.utils import * """ Test two pytorch models are the same """ """ This is a testing for RANZCR. Note that the model weights will never match unles...
37.62963
154
0.597638
7968d8127dc7d8dffc044f488c49aeef86dc36de
500
py
Python
Bus Numbers/busnumbers.py
nithinmanne/kattis
70cb32fb8c1010168b8a4101bd73bd74db2a087d
[ "BSD-3-Clause" ]
null
null
null
Bus Numbers/busnumbers.py
nithinmanne/kattis
70cb32fb8c1010168b8a4101bd73bd74db2a087d
[ "BSD-3-Clause" ]
null
null
null
Bus Numbers/busnumbers.py
nithinmanne/kattis
70cb32fb8c1010168b8a4101bd73bd74db2a087d
[ "BSD-3-Clause" ]
null
null
null
input() buses = sorted(map(int, input().split())) fb = lb = buses[0] for cb in buses[1:]: if cb == lb + 1: lb = cb if cb == buses[-1]: if lb - fb == 1: print(f'{fb} {cb}', end=' ') else: print(f'{fb}-{cb}', end=' ') else: if fb == lb: print(f'{fb}', end=...
33.333333
58
0.4
7968d841d3d749569250a7287422d115b020012c
3,524
py
Python
bindings/python/ensmallen/datasets/string/petrotogamobilis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/petrotogamobilis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/petrotogamobilis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Petrotoga mobilis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein asso...
32.62963
223
0.675369
7968da32fd8d0ccc663c1e86caa1125db177423b
550
py
Python
src/direct_messages/migrations/0003_channel_campaign.py
earth-emoji/infotechia
44ed7aecf052001573b47320e6a1239968d2a067
[ "BSD-2-Clause" ]
null
null
null
src/direct_messages/migrations/0003_channel_campaign.py
earth-emoji/infotechia
44ed7aecf052001573b47320e6a1239968d2a067
[ "BSD-2-Clause" ]
11
2019-10-27T23:41:10.000Z
2022-02-10T10:30:00.000Z
src/direct_messages/migrations/0003_channel_campaign.py
earth-emoji/infotechia
44ed7aecf052001573b47320e6a1239968d2a067
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.12 on 2020-07-10 05:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('campaigns', '0001_initial'), ('direct_messages', '0002_auto_20200705_0724'), ] operations = [ migr...
26.190476
132
0.647273
7968da449754847201b91e99f7ede83af266aa6a
2,127
py
Python
vega/algorithms/nas/cars/utils.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/algorithms/nas/cars/utils.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
vega/algorithms/nas/cars/utils.py
zjzh/vega
aa6e7b8c69024262fc483ee06113b4d1bd5156d8
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
32.723077
105
0.648801
7968da560b2d9e21139da2796813e243e54d3c30
6,152
py
Python
tests/executors/test_dask_executor.py
robobario/airflow
702005fe35dc5b996a5c5b8d349ed36036472f00
[ "Apache-2.0" ]
1
2021-09-16T17:20:00.000Z
2021-09-16T17:20:00.000Z
tests/executors/test_dask_executor.py
robobario/airflow
702005fe35dc5b996a5c5b8d349ed36036472f00
[ "Apache-2.0" ]
20
2017-04-18T19:47:46.000Z
2020-01-13T04:19:24.000Z
tests/executors/test_dask_executor.py
robobario/airflow
702005fe35dc5b996a5c5b8d349ed36036472f00
[ "Apache-2.0" ]
2
2018-09-15T07:13:01.000Z
2021-03-26T07:27:38.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
36.402367
91
0.651821
7968dad62bc0d5ee1585189c96714da074d353c6
3,950
py
Python
rtc_tools/testing/utils.py
gaoxiaoyang/webrtc
21021f022be36f5d04f8a3a309e345f65c8603a9
[ "BSD-3-Clause" ]
305
2020-03-31T14:12:50.000Z
2022-03-19T16:45:49.000Z
rtc_tools/testing/utils.py
gaoxiaoyang/webrtc
21021f022be36f5d04f8a3a309e345f65c8603a9
[ "BSD-3-Clause" ]
51
2019-10-19T04:58:30.000Z
2022-01-03T07:16:46.000Z
rtc_tools/testing/utils.py
gaoxiaoyang/webrtc
21021f022be36f5d04f8a3a309e345f65c8603a9
[ "BSD-3-Clause" ]
122
2020-04-17T11:38:56.000Z
2022-03-25T15:48:42.000Z
#!/usr/bin/env python # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All c...
30.620155
77
0.701772
7968dd0f71b771f36ea99d8d032031016925d9ba
1,526
py
Python
conftest.py
RoryKurek/thermo
985279467faa028234ab422a19b69385e5100149
[ "MIT" ]
380
2016-07-04T09:45:20.000Z
2022-03-20T18:09:45.000Z
conftest.py
RoryKurek/thermo
985279467faa028234ab422a19b69385e5100149
[ "MIT" ]
104
2016-07-10T20:47:12.000Z
2022-03-22T20:43:39.000Z
conftest.py
RoryKurek/thermo
985279467faa028234ab422a19b69385e5100149
[ "MIT" ]
96
2016-07-05T20:54:05.000Z
2022-02-23T03:06:02.000Z
import sys import platform is_pypy = 'PyPy' in sys.version ver_tup = platform.python_version_tuple()[0:2] ver_tup = tuple(int(i) for i in ver_tup) def pytest_ignore_collect(path): path = str(path) # Serious technical debt if path.endswith('chemical.py') or path.endswith('mixture.py') or path.endswith('str...
36.333333
129
0.617955
7968dd57ea97972fd42445a3ba7d49e45321682a
10,187
py
Python
caffe2/python/checkpoint_test.py
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
1
2018-05-02T07:19:00.000Z
2018-05-02T07:19:00.000Z
caffe2/python/checkpoint_test.py
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
null
null
null
caffe2/python/checkpoint_test.py
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
23
2018-04-13T10:47:31.000Z
2021-05-06T08:38:06.000Z
# Copyright (c) 2016-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
40.424603
80
0.580936
7968de9deaa7d39f8e5975d6a11539082c8e5883
1,128
py
Python
mobilefacenet-mxnet2caffe-ZQ/predictor_mxnet.py
GarrickLin/ZQCNN
4d913f52601556ae3290b2e076fdee65c124a767
[ "MIT" ]
2,054
2018-11-08T13:32:32.000Z
2022-03-29T16:37:04.000Z
predictor_mxnet.py
lyp-deeplearning/MXNet2Caffe
a3f07d4584da8b09306a0905058abaade2299c04
[ "MIT" ]
147
2018-11-09T02:07:44.000Z
2022-03-08T06:09:11.000Z
predictor_mxnet.py
lyp-deeplearning/MXNet2Caffe
a3f07d4584da8b09306a0905058abaade2299c04
[ "MIT" ]
470
2018-11-09T08:21:18.000Z
2022-03-28T02:21:15.000Z
import numpy as np import mxnet as mx from collections import namedtuple Batch = namedtuple('Batch',['data']) class PredictorMxNet: def __init__(self, mprefix, epoch, size, ctx=mx.cpu()): self.size = size sym, arg_params, aux_params = mx.model.load_checkpoint(prefix=mprefix, ...
43.384615
107
0.609043
7968dedbef45fbe453c3b12f5f32258befb46d80
562
py
Python
koko_networks/models/lessons.py
shadow-1995/CourseModule
171124bf6b36a6f166bac12daf24127544cd2c41
[ "MIT" ]
null
null
null
koko_networks/models/lessons.py
shadow-1995/CourseModule
171124bf6b36a6f166bac12daf24127544cd2c41
[ "MIT" ]
null
null
null
koko_networks/models/lessons.py
shadow-1995/CourseModule
171124bf6b36a6f166bac12daf24127544cd2c41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import api, fields, models, tools, _ from odoo.exceptions import UserError, ValidationError class Lessons(models.Model): _name = 'koko_networks.lessons' _description = "Lessons" name = fields.Char("Name", required=True) room = fields.Many2one("koko_networks.rooms", "...
35.125
109
0.727758
7968df1392ea46dcc6ee2cf1855538800351e6c2
10,127
py
Python
Lv3_Z2_stat.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
3
2020-01-13T20:13:14.000Z
2021-06-03T21:58:08.000Z
Lv3_Z2_stat.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
null
null
null
Lv3_Z2_stat.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
2
2020-01-15T15:08:40.000Z
2021-07-09T11:49:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Thurs Oct 24th 9:54am 2019 Calculates the Z^2 statistic given a list of ObsIDs, where the event files must already have 'PULSE_PHASE' in them! The input will be a par file. Will also have a way to iterate through a grid of orbital parameters. """ from __fut...
42.911017
176
0.642737
7968df70972a2cc7ca1c3515c53051d53c49842a
2,397
py
Python
actions/host_get.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
null
null
null
actions/host_get.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
null
null
null
actions/host_get.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
39.95
91
0.626199
7968e295955e4643e990716f3ec1f2cafbe0742c
611
py
Python
tests/test_ec2.py
alanjjenkins/awacs
0065e1833eae6a6070edb4ab4f180fd10b26c19a
[ "BSD-2-Clause" ]
358
2015-01-01T05:11:05.000Z
2022-03-20T14:11:39.000Z
tests/test_ec2.py
alanjjenkins/awacs
0065e1833eae6a6070edb4ab4f180fd10b26c19a
[ "BSD-2-Clause" ]
171
2015-01-17T00:32:48.000Z
2022-03-28T02:02:57.000Z
tests/test_ec2.py
michael-k/awacs
ed3dc822d268f10b0cd83feb90fd279277e54ed4
[ "BSD-2-Clause" ]
100
2015-01-04T16:34:34.000Z
2022-02-21T06:17:17.000Z
import unittest from awacs.ec2 import ARN class TestARN(unittest.TestCase): def test_aws(self): arn = ARN("image/ami", "us-east-1", "account") self.assertEqual(arn.JSONrepr(), "arn:aws:ec2:us-east-1:account:image/ami") def test_cn(self): arn = ARN("image/ami", "cn-north-1", "account"...
30.55
87
0.617021
7968e3851d7c727f0343d757cfe0a21f4f1d2290
4,498
py
Python
zeeguu_api/api/accounts.py
TWEApol/Zeeguu-API
832f1cb2d0950bd879af72d9e606783698d78b57
[ "MIT" ]
null
null
null
zeeguu_api/api/accounts.py
TWEApol/Zeeguu-API
832f1cb2d0950bd879af72d9e606783698d78b57
[ "MIT" ]
null
null
null
zeeguu_api/api/accounts.py
TWEApol/Zeeguu-API
832f1cb2d0950bd879af72d9e606783698d78b57
[ "MIT" ]
null
null
null
import flask import sqlalchemy import zeeguu from flask import request from zeeguu.model import User, Cohort, Teacher from zeeguu.model.unique_code import UniqueCode from zeeguu_api.api.sessions import get_session, get_anon_session from zeeguu_api.api.utils.abort_handling import make_error from zeeguu_api.emailer.user_...
30.808219
118
0.696087
7968e47be153d2be771eb41fb4ad842fb30e67a7
4,138
py
Python
examples/display_text_background_color_padding.py
benduckwdesign/Adafruit_CircuitPython_Display_Text
71588cd53fada423d71e90c11c4b9ac5cc885188
[ "Unlicense", "MIT-0", "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
examples/display_text_background_color_padding.py
benduckwdesign/Adafruit_CircuitPython_Display_Text
71588cd53fada423d71e90c11c4b9ac5cc885188
[ "Unlicense", "MIT-0", "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
examples/display_text_background_color_padding.py
benduckwdesign/Adafruit_CircuitPython_Display_Text
71588cd53fada423d71e90c11c4b9ac5cc885188
[ "Unlicense", "MIT-0", "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ This example shows the use color and background_color """ import time import board import displayio from adafruit_bitmap_font import bitmap_font from adafruit_display_text import label # Setup the SPI display if "DISP...
29.347518
102
0.680039
7968e487d01353fe9a4b57d561d926b2186e8288
38,381
py
Python
test/integration_test.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
test/integration_test.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
test/integration_test.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
from abc import ( ABCMeta, ) from concurrent.futures.thread import ( ThreadPoolExecutor, ) from contextlib import ( contextmanager, ) import csv import gzip from io import ( BytesIO, TextIOWrapper, ) from itertools import ( chain, ) import json import logging import os import random import re im...
40.316176
114
0.5522
7968e49e4f748d09143705a854ea029db11216b4
1,471
py
Python
logger/transforms/extract_field_transform.py
anshika-agarwal/openrvdas
69c0c53902a988b790faad8baa21a5f299d033df
[ "BSD-2-Clause" ]
1
2020-06-29T17:25:44.000Z
2020-06-29T17:25:44.000Z
logger/transforms/extract_field_transform.py
anshika-agarwal/openrvdas
69c0c53902a988b790faad8baa21a5f299d033df
[ "BSD-2-Clause" ]
null
null
null
logger/transforms/extract_field_transform.py
anshika-agarwal/openrvdas
69c0c53902a988b790faad8baa21a5f299d033df
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import logging import sys from os.path import dirname, realpath; sys.path.append(dirname(dirname(dirname(realpath(__file__))))) from logger.utils.das_record import DASRecord from logger.transforms.transform import Transform #####################################################################...
30.645833
101
0.634942
7968e6b47a40da28035bc595554f3967863b7665
2,805
py
Python
training_codes/biophys2lifmodel_lr/syn_weight_amp_LGN_only_PV_x2.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
training_codes/biophys2lifmodel_lr/syn_weight_amp_LGN_only_PV_x2.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
training_codes/biophys2lifmodel_lr/syn_weight_amp_LGN_only_PV_x2.py
zqwei/LIF_Vis_model
16f651ac827ba5f0feb40a0e619e600f1251d009
[ "MIT" ]
null
null
null
import json from os.path import exists from os import makedirs # import numpy as np import pandas as pd from sys import argv Nnodes = 5 ppn = 32 Ncores = Nnodes * ppn tstop = 500 f_name = 'lr2_g8_8_test%dms_inh_lif_syn_z' % (tstop) def syn_weight_amp(output_folder, syn_file=''): with open('syn_data_lif_z101.json...
43.828125
107
0.604635
7968e7b2f2a3dd00ee9925a5ebab48fdd194d62c
1,569
py
Python
utils.py
PhotonQuantum/jaccount-captcha-resolver
0ffc2a077e4b4df55f8e1a41ed3baefb145f5f82
[ "Apache-2.0" ]
19
2020-01-25T17:00:48.000Z
2022-03-16T14:42:37.000Z
utils.py
PhotonQuantum/jaccount-captcha-resolver
0ffc2a077e4b4df55f8e1a41ed3baefb145f5f82
[ "Apache-2.0" ]
2
2020-02-25T17:32:48.000Z
2020-02-26T10:25:13.000Z
utils.py
PhotonQuantum/jaccount-captcha-resolver
0ffc2a077e4b4df55f8e1a41ed3baefb145f5f82
[ "Apache-2.0" ]
5
2020-02-19T05:32:30.000Z
2021-11-20T06:23:32.000Z
from math import inf from PIL import Image def range_in_set(set_in): if len(set_in) == 0: return set() else: last_elem = -inf start = None for elem in set_in: if elem != last_elem + 1: if start: yield range(start, last_elem + 1) ...
25.306452
88
0.596558
7968e7fd8a06854e49838514622612473935c2ab
3,280
py
Python
1.DeepLearning/deeplink/optimizers.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
null
null
null
1.DeepLearning/deeplink/optimizers.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
11
2020-01-28T22:33:49.000Z
2022-03-11T23:41:08.000Z
1.DeepLearning/deeplink/optimizers.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
2
2019-06-01T04:14:52.000Z
2020-05-31T08:13:23.000Z
# coding: utf-8 import numpy as np class SGD: def __init__(self, lr=0.01): self.lr = lr def update(self, params, grads): for key in params.keys(): params[key] -= self.lr * grads[key] class Momentum: def __init__(self, lr=0.01, momentum=0.9): self.lr = lr ...
30.943396
103
0.486585
7968e85514fe6dc6033cd8feb5adae8caab8663f
6,272
py
Python
dyu_tm_workshop/lib/python3.8/site-packages/jupyter_server/nbconvert/handlers.py
TLYu0419/DYU_TextMining
57ea373f08ae9ecd0785926cb03dff168ca1631b
[ "MIT" ]
1
2022-01-18T13:32:30.000Z
2022-01-18T13:32:30.000Z
dyu_tm_workshop/lib/python3.8/site-packages/jupyter_server/nbconvert/handlers.py
TLYu0419/DYU_TextMining
57ea373f08ae9ecd0785926cb03dff168ca1631b
[ "MIT" ]
null
null
null
dyu_tm_workshop/lib/python3.8/site-packages/jupyter_server/nbconvert/handlers.py
TLYu0419/DYU_TextMining
57ea373f08ae9ecd0785926cb03dff168ca1631b
[ "MIT" ]
null
null
null
"""Tornado handlers for nbconvert.""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import io import os import zipfile from ipython_genutils import text from ipython_genutils.py3compat import cast_bytes from nbformat import from_dict from tornado import web from t...
33.72043
91
0.631537
7968e922ffc4835320ac349e46371b3e55a55a05
402
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/mysql/plugins/module_utils/implementations/mariadb/replication.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/mysql/plugins/module_utils/implementations/mariadb/replication.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/mysql/plugins/module_utils/implementations/mariadb/replication.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.community.mysql.plugins.module_utils.mysql import get_server_version from distutils.version import LooseVersion def uses_replica_terminology(cursor): """Checks if REPLICA must be used instead of SLAVE...
36.545455
93
0.813433
7968e94925d16a9afc6bfe2ab402f9f98fd12846
2,818
py
Python
CMB.py
LittleJake/CMB-news
d1dac186f534ee87f003c662a26c2f60eee06646
[ "Apache-2.0" ]
3
2020-10-22T08:24:03.000Z
2020-10-22T08:46:35.000Z
CMB.py
LittleJake/CMB-news
d1dac186f534ee87f003c662a26c2f60eee06646
[ "Apache-2.0" ]
null
null
null
CMB.py
LittleJake/CMB-news
d1dac186f534ee87f003c662a26c2f60eee06646
[ "Apache-2.0" ]
null
null
null
import datetime import redis import requests REDIS_HOST = "{{REDIS_HOST}}" REDIS_PORT = "{{REDIS_PORT}}" REDIS_PASSWORD = "{{REDIS_PASSWORD}}" SERVERCHAN_TOKEN = "{{SERVERCHAN_TOKEN}}" WXPUSHER_TOKEN = "{{WXPUSHER_TOKEN}}" pool = redis.ConnectionPool(host=REDIS_HOST, port=REDIS_PORT, ...
26.336449
90
0.594038
7968e9754959f0ee137df3f65c6f2a6465f53d9c
27,502
py
Python
osu_map_gen/train/train.py
Syps/osu_beatmap_generator
684b5356bbf79ba847b3ab20e2b6b3a73d7721ad
[ "MIT" ]
15
2018-11-28T12:00:53.000Z
2022-02-04T05:56:45.000Z
osu_map_gen/train/train.py
Syps/osu_beatmap_generator
684b5356bbf79ba847b3ab20e2b6b3a73d7721ad
[ "MIT" ]
3
2020-07-16T11:40:33.000Z
2021-06-15T15:13:25.000Z
osu_map_gen/train/train.py
Syps/osu_beatmap_generator
684b5356bbf79ba847b3ab20e2b6b3a73d7721ad
[ "MIT" ]
4
2020-11-12T09:12:39.000Z
2021-12-26T16:35:11.000Z
import _pickle as cPickle import collections import operator import os import pdb import random from functools import reduce from typing import List import h5py import joblib import matplotlib.pyplot as plt import numpy as np from skimage.util import view_as_windows from sklearn.preprocessing import StandardScaler, On...
30.625835
81
0.625045
7968eafbf7d09856919c97479d7aa24f4039b012
13,687
py
Python
housing.py
qianggenxiadeshuihu/Housing
da2ba274adee259a60706c5d67f7531d5173722d
[ "MIT" ]
null
null
null
housing.py
qianggenxiadeshuihu/Housing
da2ba274adee259a60706c5d67f7531d5173722d
[ "MIT" ]
null
null
null
housing.py
qianggenxiadeshuihu/Housing
da2ba274adee259a60706c5d67f7531d5173722d
[ "MIT" ]
null
null
null
import csv import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sklearn import preprocessing from sklearn.metrics import accuracy_score, roc_curve, auc from sklearn.tree import export_graphviz from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection impor...
44.151613
118
0.611018
7968eb0d5180d113750b58a5eaaffe4ee49b8c9f
680
py
Python
snuba/datasets/cdc/__init__.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
snuba/datasets/cdc/__init__.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
snuba/datasets/cdc/__init__.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
from snuba.datasets.dataset import Dataset from snuba.datasets.dataset_schemas import DatasetSchemas class CdcDataset(Dataset): def __init__(self, dataset_schemas: DatasetSchemas, *, default_control_topic: str, postgres_table: str, **kwargs): super().__init_...
29.565217
60
0.669118
7968eb3c2fd30d164df2d3f8985d39051e4ac193
4,812
py
Python
sdk/communication/azure-mgmt-communication/azure/mgmt/communication/aio/operations/_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/communication/azure-mgmt-communication/azure/mgmt/communication/aio/operations/_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/communication/azure-mgmt-communication/azure/mgmt/communication/aio/operations/_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.000Z
# 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 ...
44.555556
133
0.662926
7968eb9b5cf7ede4b0d64ed1768613c565543a70
687
py
Python
molecule/default/tests/test_default.py
digineo/ansible-role-netbox
801fc6aeb584c46cf1d5469497b164ea6ecb5307
[ "MIT" ]
148
2017-11-24T21:56:12.000Z
2022-03-16T20:33:36.000Z
molecule/default/tests/test_default.py
digineo/ansible-role-netbox
801fc6aeb584c46cf1d5469497b164ea6ecb5307
[ "MIT" ]
115
2017-05-04T22:28:16.000Z
2022-03-30T05:18:54.000Z
molecule/default/tests/test_default.py
digineo/ansible-role-netbox
801fc6aeb584c46cf1d5469497b164ea6ecb5307
[ "MIT" ]
83
2017-05-04T22:44:09.000Z
2022-03-25T17:07:46.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_services(host): services = [ "netbox.socket", "netbox.service", "netbox-rqworker.service" ] for ser...
21.46875
63
0.649199
7968ec1ce02f85498ac68bfd2d46b5d64864d5a2
334
py
Python
kYPython/flask-api/ginger/app/api/v1/book.py
kyaing/KDYSample
6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5
[ "MIT" ]
10
2017-02-23T07:42:20.000Z
2017-02-23T07:42:25.000Z
kYPython/flask-api/ginger/app/api/v1/book.py
kaideyi/KDYSample
6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5
[ "MIT" ]
null
null
null
kYPython/flask-api/ginger/app/api/v1/book.py
kaideyi/KDYSample
6a09ef3f7dab18a71187cd81f7da2dd13cf7a4a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : book.py @Time : 2019/03/03 21:43:08 @Author : Kyaing @Version : 1.0 @Desc : None ''' # here put the import lib from flask import Blueprint # blueprint book = Blueprint('book', __name__) @book.route('/v1/book/get') def get_book(): re...
17.578947
34
0.60479
7968ec93d0a59b075cca502e46725c360c0cf095
270
py
Python
videodl/modules/sources/__init__.py
CharlesPikachu/Video-Downloader
33edde9064637c7a1b96566a390c65de5df762ae
[ "MIT" ]
310
2018-07-12T02:04:22.000Z
2021-07-17T05:54:11.000Z
videodl/modules/sources/__init__.py
liujianjie/videodl
2b0c31468bbf2de0488048fe25762bd15b824b8b
[ "MIT" ]
15
2018-08-02T02:04:00.000Z
2021-01-30T15:33:07.000Z
videodl/modules/sources/__init__.py
liujianjie/videodl
2b0c31468bbf2de0488048fe25762bd15b824b8b
[ "MIT" ]
114
2018-07-10T10:13:53.000Z
2021-05-07T01:44:35.000Z
'''import all''' from .cntv import CNTV from .mgtv import MGTV from .migu import Migu from .acfun import AcFun from .zhihu import Zhihu from .xigua import Xigua from .iqiyi import Iqiyi from .douyin import Douyin from .haokan import Haokan from .bilibili import Bilibili
24.545455
30
0.788889
7968ecfd6175d689f505cfb9991ea51f4dff7e4c
4,376
py
Python
sdks/python/http_client/v1/polyaxon_sdk/models/v1_url_ref.py
polyaxon/polyaxon
a835f2872a63f6cf5c27d2dd1125ad7c18eb849a
[ "Apache-2.0" ]
3,200
2017-05-09T11:35:31.000Z
2022-03-28T05:43:22.000Z
sdks/python/http_client/v1/polyaxon_sdk/models/v1_url_ref.py
polyaxon/polyaxon
a835f2872a63f6cf5c27d2dd1125ad7c18eb849a
[ "Apache-2.0" ]
1,324
2017-06-29T07:21:27.000Z
2022-03-27T12:41:10.000Z
sdks/python/http_client/v1/polyaxon_sdk/models/v1_url_ref.py
polyaxon/polyaxon
a835f2872a63f6cf5c27d2dd1125ad7c18eb849a
[ "Apache-2.0" ]
341
2017-01-10T23:06:53.000Z
2022-03-10T08:15:18.000Z
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
26.682927
94
0.578154
7968ef8a0156feeb844a4fa3a279d56e0b041752
9,663
py
Python
contrib/bitrpc/bitrpc.py
fxrwallett/emrals2.0
f5325570c78663d5a233f96bfc0b59248f12b1fb
[ "MIT" ]
2
2021-04-11T14:22:30.000Z
2022-02-06T12:43:17.000Z
contrib/bitrpc/bitrpc.py
fxrwallett/emrals2.0
f5325570c78663d5a233f96bfc0b59248f12b1fb
[ "MIT" ]
1
2021-04-10T23:45:22.000Z
2021-04-11T09:58:37.000Z
contrib/bitrpc/bitrpc.py
fxrwallett/emrals2.0
f5325570c78663d5a233f96bfc0b59248f12b1fb
[ "MIT" ]
null
null
null
from jsonrpc import ServiceProxy import sys import string import getpass # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:8352") e...
28.588757
101
0.573424
7968f0113aba4acce486edff37e8f2e59052907d
6,219
py
Python
tests/upload_tests.py
jkjkjkjkjk/pywikibot-core
f3748c95ea694083ae00534973d0d1dd018a5b43
[ "MIT" ]
null
null
null
tests/upload_tests.py
jkjkjkjkjk/pywikibot-core
f3748c95ea694083ae00534973d0d1dd018a5b43
[ "MIT" ]
null
null
null
tests/upload_tests.py
jkjkjkjkjk/pywikibot-core
f3748c95ea694083ae00534973d0d1dd018a5b43
[ "MIT" ]
1
2019-01-19T17:57:23.000Z
2019-01-19T17:57:23.000Z
# -*- coding: utf-8 -*- """ Site upload test. These tests write to the wiki. """ # # (C) Pywikibot team, 2014 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals __version__ = '$Id: 7968f0113aba4acce486edff37e8f2e59052907d $' import pywikibot from tests im...
38.627329
79
0.626467
7968f153335bfb3527606674173f318c7599fde9
12,841
py
Python
scavenger/api/tests/test_api.py
vetaylor/scavenger
92a595c7ea8b7659502c60c57d19ddd5655397fa
[ "MIT" ]
1
2017-04-25T10:15:25.000Z
2017-04-25T10:15:25.000Z
scavenger/api/tests/test_api.py
vetaylor/scavenger
92a595c7ea8b7659502c60c57d19ddd5655397fa
[ "MIT" ]
null
null
null
scavenger/api/tests/test_api.py
vetaylor/scavenger
92a595c7ea8b7659502c60c57d19ddd5655397fa
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase, APIRequestFactory, \ force_authenticate from scavenger.api.models import Building, Room, Group, Person from scavenger.api.views imp...
41.289389
78
0.614905
7968f21e5845b120dfb215d587640ec005b4cdb9
251,288
py
Python
pytests/tuqquery/tuq_sanity.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
14
2015-02-06T02:47:57.000Z
2020-03-14T15:06:05.000Z
pytests/tuqquery/tuq_sanity.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
3
2019-02-27T19:29:11.000Z
2021-06-02T02:14:27.000Z
pytests/tuqquery/tuq_sanity.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
108
2015-03-26T08:58:49.000Z
2022-03-21T05:21:39.000Z
import datetime import json import math import random import re import time import threading from datetime import date from deepdiff import DeepDiff from membase.api.exception import CBQError from membase.api.rest_client import RestConnection from remote.remote_util import RemoteMachineShellConnection from collection....
55.668587
195
0.539592
7968f341c186d9df73aa0934c48178064278d5c6
624
py
Python
ICPC_Mirrors/Nitc_9.0/nwerc2019all/gnollhypothesis/submissions/accepted/ragnar.py
Shahraaz/CP_P_S5
b068ad02d34338337e549d92a14e3b3d9e8df712
[ "MIT" ]
null
null
null
ICPC_Mirrors/Nitc_9.0/nwerc2019all/gnollhypothesis/submissions/accepted/ragnar.py
Shahraaz/CP_P_S5
b068ad02d34338337e549d92a14e3b3d9e8df712
[ "MIT" ]
null
null
null
ICPC_Mirrors/Nitc_9.0/nwerc2019all/gnollhypothesis/submissions/accepted/ragnar.py
Shahraaz/CP_P_S5
b068ad02d34338337e549d92a14e3b3d9e8df712
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 n, k = [int(x) for x in input().split()] p = [float(x) for x in input().split()] # The number of ways for a streak of 0<=i<=n-k non-chosen monsters is # binom(n-i-1, k-1) streak = [1] * (n-k+1) for i in range(n-k-1, -1, -1): streak[i] = streak[i+1] * (n-i-1) // (n-i-k) nck = sum(streak) # ...
28.363636
80
0.616987
7968f3e360abc663fa3745e2a54fee67791ed1ea
6,454
py
Python
tools/mo/unit_tests/mo/ops/priorbox_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/mo/unit_tests/mo/ops/priorbox_test.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/mo/unit_tests/mo/ops/priorbox_test.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 import unittest import numpy as np from openvino.tools.mo.ops.priorbox import PriorBoxOp from openvino.tools.mo.graph.graph import Node from unit_tests.utils.graph import build_graph nodes_attributes = {'node_1': {'type': 'Identity', ...
44.819444
82
0.362101
7968f4261d7582846d6e05f65f49814c6370f515
780
py
Python
setup.py
apthagowda97/storeweights
af38c20099fffe104cf907c72bedfce37018bd8a
[ "MIT" ]
null
null
null
setup.py
apthagowda97/storeweights
af38c20099fffe104cf907c72bedfce37018bd8a
[ "MIT" ]
1
2020-09-26T18:53:51.000Z
2020-09-29T12:40:22.000Z
setup.py
apthagowda97/storeweights
af38c20099fffe104cf907c72bedfce37018bd8a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from io import open setup( name="storeweights", version="1.0.2", description="Storing PyTorch checkpoints in efficient way", long_description=open("README.md", "r", encoding="utf-8").read(), long_description_content_type="text/markdown", url="https://...
32.5
69
0.665385
7968f4496386ea227db1d6edb398fcb027be6f9c
4,389
py
Python
benchmark/startQiskit_Class2970.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2970.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_Class2970.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=46 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
34.833333
140
0.647756
7968f467d3d9d67ca50bba24dfd7908974f58042
28,890
py
Python
dace/symbolic.py
andreaskuster/dace
f2c16430543bb56c54a833beeb626b8c30967428
[ "BSD-3-Clause" ]
null
null
null
dace/symbolic.py
andreaskuster/dace
f2c16430543bb56c54a833beeb626b8c30967428
[ "BSD-3-Clause" ]
null
null
null
dace/symbolic.py
andreaskuster/dace
f2c16430543bb56c54a833beeb626b8c30967428
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import ast from functools import lru_cache import sympy import pickle import re from typing import Dict, Optional, Set, Union import warnings import numpy import sympy.abc import sympy.printing.str from dace import dtypes DEFAULT_SYMBOL_TYPE...
34.598802
108
0.582728
7968f5785c693538f1a9af26b38c2edf648709e9
6,054
py
Python
sac_src/sac.py
ZhiningLiu1998/mesa
5447ce92a21a6a9f0f21cb559f3196a195affbcc
[ "MIT" ]
80
2020-10-25T17:03:44.000Z
2022-03-30T00:46:32.000Z
sac_src/sac.py
breakend2010/mesa
fd024e4754570374b1f0935e00ca1eab6b23f584
[ "MIT" ]
6
2021-08-18T10:55:26.000Z
2022-03-31T09:22:02.000Z
sac_src/sac.py
breakend2010/mesa
fd024e4754570374b1f0935e00ca1eab6b23f584
[ "MIT" ]
19
2020-10-29T15:32:05.000Z
2021-12-19T12:54:41.000Z
import os import torch import torch.nn.functional as F from torch.optim import Adam, lr_scheduler from sac_src.utils import soft_update, hard_update from sac_src.model import GaussianPolicy, QNetwork, DeterministicPolicy class SAC(object): def __init__(self, num_inputs, action_space, args): self.gamma = ...
45.518797
133
0.669805
7968f57e90a4854d03b0303359b44fb5a357e501
135
py
Python
1296A Array with Odd Sum.py
YasirAhmad-EccentriX/CodeForces
d004b4d1b52a360ac6c06870e0a237345771e32c
[ "MIT" ]
1
2021-01-29T16:30:09.000Z
2021-01-29T16:30:09.000Z
1296A Array with Odd Sum.py
YasirAhmad-EccentriX/CodeForces
d004b4d1b52a360ac6c06870e0a237345771e32c
[ "MIT" ]
null
null
null
1296A Array with Odd Sum.py
YasirAhmad-EccentriX/CodeForces
d004b4d1b52a360ac6c06870e0a237345771e32c
[ "MIT" ]
null
null
null
for i in range(int(input())): n=int(input()) n=[int(i) for i in input().split()] print('YES' if sum(n)%2==1 else 'NO')
27
42
0.525926
7968f58bd22a85d61fc72ccc15d4b8ff71342014
7,742
py
Python
.config/qtile/key.py
hukacode/dotfiles
798a3a10340ae0066ef754a5edd566c17c941317
[ "MIT" ]
5
2021-06-12T21:45:26.000Z
2021-11-10T12:12:39.000Z
.config/qtile/key.py
hukacode/dotfiles
798a3a10340ae0066ef754a5edd566c17c941317
[ "MIT" ]
null
null
null
.config/qtile/key.py
hukacode/dotfiles
798a3a10340ae0066ef754a5edd566c17c941317
[ "MIT" ]
null
null
null
import subprocess from libqtile.config import Key, KeyChord from libqtile.command import lazy from constant import powermenu_cmd, launcher_cmd, terminal_app, screenshot_area_cmd, \ screenshot_full_cmd, screenshot_windows_cmd, translate_cmd, mute_cmd, lower_cmd, \ raise_cmd, next_cmd, previous_cmd, brightnessDow...
32.393305
97
0.535262
7968f704f83e1fa311b2afe44abaf7f8dd10756d
2,197
py
Python
_docs.py
xinetzone/python-office
67f812058185315a7e162aeba8fdc29df11cb59d
[ "Apache-2.0" ]
null
null
null
_docs.py
xinetzone/python-office
67f812058185315a7e162aeba8fdc29df11cb59d
[ "Apache-2.0" ]
null
null
null
_docs.py
xinetzone/python-office
67f812058185315a7e162aeba8fdc29df11cb59d
[ "Apache-2.0" ]
null
null
null
import sys, os from pathlib import Path from shutil import rmtree from invoke import Collection, task @task(name='clean') def _clean(c): output = Path(c.sphinx.target) if output.exists(): print(f'delete {output}') rmtree(output) @task( default=True, help={ "opts": "Extra sphi...
25.252874
72
0.577151
7968f772fa8aa4e43c27d893283d93a9c2629c64
150
py
Python
app/pipelines/apps.py
Masado/django-app-api-3
88def27f1cd8974c62dead282cd04d1384054888
[ "MIT" ]
null
null
null
app/pipelines/apps.py
Masado/django-app-api-3
88def27f1cd8974c62dead282cd04d1384054888
[ "MIT" ]
null
null
null
app/pipelines/apps.py
Masado/django-app-api-3
88def27f1cd8974c62dead282cd04d1384054888
[ "MIT" ]
null
null
null
from django.apps import AppConfig class PipelinesConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'pipelines'
21.428571
56
0.766667
7968f7d273f3aad1ef216b8de46e75c4664972b7
9,070
py
Python
building_map_tools/building_map/wall.py
marcoag/traffic_editor
486b6e0c03fdc5e8db460e0fa983038fc186397c
[ "Apache-2.0" ]
null
null
null
building_map_tools/building_map/wall.py
marcoag/traffic_editor
486b6e0c03fdc5e8db460e0fa983038fc186397c
[ "Apache-2.0" ]
null
null
null
building_map_tools/building_map/wall.py
marcoag/traffic_editor
486b6e0c03fdc5e8db460e0fa983038fc186397c
[ "Apache-2.0" ]
null
null
null
import math import os import shutil import numpy as np from xml.etree.ElementTree import SubElement from ament_index_python.packages import get_package_share_directory from .edge import Edge from .param_value import ParamValue class Wall: def __init__(self, yaml_node, wall_params): self.wall_height = ...
36.720648
79
0.499559
7968f8a4248e93875ffa50d2b8d58334b5847790
10,890
py
Python
meta_learning_without_memorization/pose_code/maml_bbb_2.py
MODU-FTNC/google-research
7c4f9b6e375eaacf50d8280b26f7e42a06b568aa
[ "Apache-2.0" ]
1
2020-08-14T08:11:30.000Z
2020-08-14T08:11:30.000Z
meta_learning_without_memorization/pose_code/maml_bbb_2.py
robot-ai-machinelearning/google-research
88481d10a87947ffb9305dc7665682e008b27391
[ "Apache-2.0" ]
5
2021-08-25T16:15:36.000Z
2022-02-10T04:34:04.000Z
meta_learning_without_memorization/pose_code/maml_bbb_2.py
robot-ai-machinelearning/google-research
88481d10a87947ffb9305dc7665682e008b27391
[ "Apache-2.0" ]
1
2020-03-05T09:24:01.000Z
2020-03-05T09:24:01.000Z
# coding=utf-8 # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
37.8125
111
0.632048
7968f9cd516f1a5080b736ac2852ab8a59b00d55
6,361
py
Python
modules/system/PrefabUser.py
Jumpscale/rsal9
e7ff7638ca53dafe872ce3030a379e8b65cb4831
[ "Apache-2.0" ]
1
2017-06-07T08:11:57.000Z
2017-06-07T08:11:57.000Z
modules/system/PrefabUser.py
Jumpscale/rsal9
e7ff7638ca53dafe872ce3030a379e8b65cb4831
[ "Apache-2.0" ]
106
2017-05-10T18:16:31.000Z
2019-09-18T15:09:07.000Z
modules/system/PrefabUser.py
Jumpscale/rsal9
e7ff7638ca53dafe872ce3030a379e8b65cb4831
[ "Apache-2.0" ]
5
2018-01-26T16:11:52.000Z
2018-08-22T15:12:52.000Z
from js9 import j try: import fcrypt as crypt except ImportError: import crypt def shell_safe(path): SHELL_ESCAPE = " '\";`|" """Makes sure that the given path/string is escaped and safe for shell""" path = "".join([("\\" + _) if _ in SHELL_ESCAPE else _ for _ in path]) return path base = ...
43.868966
122
0.560761
7968fb374a3d9cd74cb20d11fe8cc7c5bafc2361
3,378
py
Python
generate_plots_all.py
ChristophHoenes/EWoMan
f2d0457926e3ccef2e704b05d1df38345d826a5d
[ "Apache-2.0" ]
null
null
null
generate_plots_all.py
ChristophHoenes/EWoMan
f2d0457926e3ccef2e704b05d1df38345d826a5d
[ "Apache-2.0" ]
null
null
null
generate_plots_all.py
ChristophHoenes/EWoMan
f2d0457926e3ccef2e704b05d1df38345d826a5d
[ "Apache-2.0" ]
null
null
null
import pickle import numpy as np from matplotlib import pyplot as plt def plot_stat_mean(stat_key='mean', methods=['method_1', 'method3'], enemy=2, seeds=None, prefix=None, fancy=False, savepath=''): runs = [] max_list = [] if seeds is None: seeds = [111, 222, 333, 444, 555, 666, 777, 888, 999, 1...
39.27907
143
0.584665
7968fb471bb60ea6bd73abcfaa56ced34564f613
2,742
py
Python
Examples/rest_example/rest_example.py
TMAers/gateway-workflows
38f22f1b31d0a4d18db0ad7466ce72f518c17076
[ "Apache-2.0" ]
null
null
null
Examples/rest_example/rest_example.py
TMAers/gateway-workflows
38f22f1b31d0a4d18db0ad7466ce72f518c17076
[ "Apache-2.0" ]
null
null
null
Examples/rest_example/rest_example.py
TMAers/gateway-workflows
38f22f1b31d0a4d18db0ad7466ce72f518c17076
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 BlueCat Networks (USA) Inc. and its affiliates # # 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 applicabl...
24.265487
91
0.702407
7968fbfa56e6ceedbc644ba649a8278d40642d02
16,328
py
Python
electrum/coinchooser.py
kicksoccer-project/electrum-kicksoccer
46e81f1ff3a2a2a164cfca80fa81cd63efebd0b0
[ "MIT" ]
null
null
null
electrum/coinchooser.py
kicksoccer-project/electrum-kicksoccer
46e81f1ff3a2a2a164cfca80fa81cd63efebd0b0
[ "MIT" ]
null
null
null
electrum/coinchooser.py
kicksoccer-project/electrum-kicksoccer
46e81f1ff3a2a2a164cfca80fa81cd63efebd0b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum-KickSoccer - lightweight KickSoccer client # Copyright (C) 2015 kyuupichan@gmail # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # in...
41.025126
102
0.637004
7968fc86a596db86477913f28fca486a0aefab28
4,838
py
Python
azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_interface.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/network/v2016_09_01/models/network_interface.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/mgmt/network/v2016_09_01/models/network_interface.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# 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 ...
46.970874
303
0.676313
7968fdf5e92133c18ccdb0bc4a76d64adecf6bb6
1,576
py
Python
python_practices/assign_number_minesweeper.py
hoanhan101/Algorithms-Playground
c9641d3f3b7c4c778c14179cbb2039dbc40ae71a
[ "MIT" ]
2
2019-08-15T06:19:31.000Z
2020-02-19T09:46:46.000Z
python_practices/assign_number_minesweeper.py
hoanhan101/Algorithms-Playground
c9641d3f3b7c4c778c14179cbb2039dbc40ae71a
[ "MIT" ]
null
null
null
python_practices/assign_number_minesweeper.py
hoanhan101/Algorithms-Playground
c9641d3f3b7c4c778c14179cbb2039dbc40ae71a
[ "MIT" ]
null
null
null
""" Assign Numbers in Minesweeper Implement a function that assigns correct numbers in a field of Minesweeper, which is represented as a 2 dimensional array. Example: The size of the field is 3x4, and there are bombs at the positions [0, 0] (row index = 0, column index = 0) and [0, 1] (row index = 0...
33.531915
161
0.576142
7968fe74cc6fcb51641a0bc28e2c169979cd8cd3
1,023
py
Python
tests/test_text_loader.py
Joozlum/SketchyMaths
0e7d72099da9919ba9297d6d27cdf9c4747b675c
[ "MIT" ]
1
2021-03-27T23:55:17.000Z
2021-03-27T23:55:17.000Z
tests/test_text_loader.py
Joozlum/SketchyMaths
0e7d72099da9919ba9297d6d27cdf9c4747b675c
[ "MIT" ]
null
null
null
tests/test_text_loader.py
Joozlum/SketchyMaths
0e7d72099da9919ba9297d6d27cdf9c4747b675c
[ "MIT" ]
null
null
null
import unittest import os from sketchymaths.sketchymathsapp.textloader import load_text class LoadTextTestCase(unittest.TestCase): def setUp(self): path = os.getcwd().split('\\') if path[-1] == 'tests': del path[-1] path.append('sketchymaths') path.append('internalsketch...
37.888889
81
0.648094
7968fee17894f6f4a0d8d3fe13b6b96edacfe70a
7,927
py
Python
tests/test_source.py
bdice/conda-build
f12b838b827b2581925ca65f9a856e82dc467e0d
[ "BSD-3-Clause" ]
1
2019-02-21T16:12:54.000Z
2019-02-21T16:12:54.000Z
tests/test_source.py
bdice/conda-build
f12b838b827b2581925ca65f9a856e82dc467e0d
[ "BSD-3-Clause" ]
6
2016-07-05T19:08:39.000Z
2017-10-23T10:59:14.000Z
tests/test_source.py
mingwandroid/conda-build
3543ae8220167a600b0a6816f529e15edf7e19b0
[ "BSD-3-Clause" ]
2
2020-01-07T08:34:25.000Z
2020-01-07T09:10:29.000Z
import os import subprocess import tarfile import pytest from conda_build import source from conda_build.conda_interface import TemporaryDirectory from conda_build.source import download_to_cache from conda_build.utils import reset_deduplicator from .utils import thisdir def test_alternative_url_no_fn(testing_metad...
48.932099
105
0.700643
7968ff80facc80e8382aaa20fe2af9b6aee8adc4
23,345
py
Python
pymc3/tests/test_model.py
tblazina/pymc3
9d90c891de5a2f491c51f8311b387f051e27538a
[ "Apache-2.0" ]
null
null
null
pymc3/tests/test_model.py
tblazina/pymc3
9d90c891de5a2f491c51f8311b387f051e27538a
[ "Apache-2.0" ]
null
null
null
pymc3/tests/test_model.py
tblazina/pymc3
9d90c891de5a2f491c51f8311b387f051e27538a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The PyMC Developers # # 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 ag...
35.478723
100
0.626472
7968fff939138c0efeef06657cf678a876dde47e
429
py
Python
setup.py
wdv4758h/rustformat.info
01597a253f29b627ae00ff2830cb9c704b30c981
[ "MIT" ]
null
null
null
setup.py
wdv4758h/rustformat.info
01597a253f29b627ae00ff2830cb9c704b30c981
[ "MIT" ]
2
2016-08-08T13:39:12.000Z
2016-08-08T13:42:31.000Z
setup.py
wdv4758h/rustformat.info
01597a253f29b627ae00ff2830cb9c704b30c981
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='pyformat_site', install_requires=[ "click==4.0", "jinja2==2.8", "python-rex==0.4", "libsass==0.11.1", "Markdown==2.6.6", "pytest==2.9.2", "Pygments==2.1.3", "astunparse==1.4.0", "pytz==2016.6.1", ...
19.5
35
0.459207
7969001d1e0f29a021556d8c6a7df0bf4b2866b8
39,512
py
Python
hydrus/client/gui/ClientGUIPopupMessages.py
grravity/hydrus
78261ecf9e192877013671ed7ee4517da581f900
[ "WTFPL" ]
null
null
null
hydrus/client/gui/ClientGUIPopupMessages.py
grravity/hydrus
78261ecf9e192877013671ed7ee4517da581f900
[ "WTFPL" ]
null
null
null
hydrus/client/gui/ClientGUIPopupMessages.py
grravity/hydrus
78261ecf9e192877013671ed7ee4517da581f900
[ "WTFPL" ]
null
null
null
import os import sys import traceback from qtpy import QtCore as QC from qtpy import QtWidgets as QW from hydrus.core import HydrusData from hydrus.core import HydrusGlobals as HG from hydrus.client import ClientConstants as CC from hydrus.client import ClientData from hydrus.client import ClientThreading from hydru...
29.865457
241
0.517033
796900978561b8b13c57199f2d26a9ece20849ff
2,209
py
Python
python/apply_image_effects.py
blackary/docs
5e49a42219f0d09676c7f784cdd51cc8155cf8a2
[ "Apache-2.0" ]
12
2021-10-15T20:25:24.000Z
2022-03-05T10:56:55.000Z
python/apply_image_effects.py
blackary/docs
5e49a42219f0d09676c7f784cdd51cc8155cf8a2
[ "Apache-2.0" ]
81
2021-10-13T23:01:00.000Z
2022-03-29T08:33:58.000Z
python/apply_image_effects.py
blackary/docs
5e49a42219f0d09676c7f784cdd51cc8155cf8a2
[ "Apache-2.0" ]
33
2021-10-29T19:32:53.000Z
2022-03-31T19:43:47.000Z
from subprocess import run import os import pathlib import sys def apply_blur_and_rotation(inputpath, maskpath, blur, rotation, desired_size, outputpath): temp_size = f'{desired_size * 1.2}x{desired_size * 1.2}' final_size = f'{desired_size}x{desired_size}' if rotation == 0: rotation_commands = [...
28.320513
98
0.538253
796900c72e903252620ca20dbf704378e03999c4
14,484
py
Python
kinetick/strategies/macd_super_strategy.py
ShabbirHasan1/kinetick
9846210535e4f86bbac3611ff7883fd89103fb53
[ "Apache-2.0" ]
14
2021-09-02T05:02:05.000Z
2022-03-20T10:00:55.000Z
kinetick/strategies/macd_super_strategy.py
ShabbirHasan1/kinetick
9846210535e4f86bbac3611ff7883fd89103fb53
[ "Apache-2.0" ]
2
2021-10-17T15:20:22.000Z
2022-01-09T05:39:42.000Z
kinetick/strategies/macd_super_strategy.py
ShabbirHasan1/kinetick
9846210535e4f86bbac3611ff7883fd89103fb53
[ "Apache-2.0" ]
12
2021-09-02T17:12:05.000Z
2022-02-14T10:56:54.000Z
# Copyright 2021 vin8tech # # 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, softwar...
39.46594
116
0.530447
796900caa8608050f70223498bedbb4dc3cd09a2
12,579
py
Python
src/sage/modular/abvar/abvar_ambient_jacobian.py
defeo/sage
d8822036a9843bd4d75845024072515ede56bcb9
[ "BSL-1.0" ]
2
2018-06-30T01:37:35.000Z
2018-06-30T01:37:39.000Z
src/sage/modular/abvar/abvar_ambient_jacobian.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
src/sage/modular/abvar/abvar_ambient_jacobian.py
boothby/sage
1b1e6f608d1ef8ee664bb19e991efbbc68cbd51f
[ "BSL-1.0" ]
null
null
null
""" Ambient Jacobian Abelian Variety TESTS:: sage: loads(dumps(J0(37))) == J0(37) True sage: loads(dumps(J1(13))) == J1(13) True """ from __future__ import absolute_import import weakref from sage.structure.sequence import Sequence from .abvar import (ModularAbelianVariety_modsym_abstrac...
31.685139
151
0.569441
796901dfba68bed87625147a5d54c593b8900792
216
bzl
Python
third_party/libcxx/revision.bzl
bergsieker/bazel-toolchains
82bbccf71f17fd6e9216c9469f9caa4c82cd35c1
[ "Apache-2.0" ]
null
null
null
third_party/libcxx/revision.bzl
bergsieker/bazel-toolchains
82bbccf71f17fd6e9216c9469f9caa4c82cd35c1
[ "Apache-2.0" ]
null
null
null
third_party/libcxx/revision.bzl
bergsieker/bazel-toolchains
82bbccf71f17fd6e9216c9469f9caa4c82cd35c1
[ "Apache-2.0" ]
null
null
null
LIBCXX_REVISION = "r346485" DEBIAN8_LIBCXX_SHA256 = "ec93d2c85fc5a3bcd9d6d86461e7fb9c51d9296dde3e3e29b53ba50e7f758a66" UBUNTU16_04_LIBCXX_SHA256 = "9f494d7aa9ebb7416e585fd0172b3c0af2b56e72346fb120611f3c7497cddd58"
36
94
0.907407
796901f63075acd951e1bb2d8b007e26947e74b7
2,997
py
Python
urls.py
isaac-philip/loolu
4cb2cb5be75fbf3109234f57741c0f70b6fc40d5
[ "MIT" ]
null
null
null
urls.py
isaac-philip/loolu
4cb2cb5be75fbf3109234f57741c0f70b6fc40d5
[ "MIT" ]
null
null
null
urls.py
isaac-philip/loolu
4cb2cb5be75fbf3109234f57741c0f70b6fc40d5
[ "MIT" ]
null
null
null
""" LooLu is Copyright (c) 2009 Shannon Johnson, http://loo.lu/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
34.448276
74
0.675342
796902af71ddb5a10440fe24a64d48c092dd88f7
544
py
Python
Chapter19/3_1.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
19
2018-06-28T15:48:47.000Z
2022-01-08T12:40:52.000Z
Chapter19/3_1.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
null
null
null
Chapter19/3_1.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
13
2018-06-30T10:33:52.000Z
2021-12-29T11:31:31.000Z
import time import RPi.GPIO as GPIO import Adafruit_ADS1x15 water_valve_pin = 23 moisture_percentage = 20 GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(water_valve_pin, GPIO.OUT) adc = Adafruit_ADS1x15.ADS1115() channel = 0 GAIN = 1 while True: adc.start_adc(channel, gain=GAIN) moisture_value = adc.get_la...
25.904762
41
0.794118
796902e66334de0e1878f389906cf8d9a4633e84
1,274
py
Python
nappy/fitpot/sync_datasets.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
27
2015-10-05T06:21:28.000Z
2021-10-04T17:08:23.000Z
nappy/fitpot/sync_datasets.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2020-11-08T12:39:38.000Z
2021-01-10T22:31:36.000Z
nappy/fitpot/sync_datasets.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2015-01-29T23:10:34.000Z
2022-01-08T05:20:13.000Z
#!/usr/bin/env python """ Syncronize given two datasets. Usage: sync_datasets [options] DSET1 DSET2 Options: -h, --help Show this message and exit. --dry Dry run. """ from __future__ import print_function import os from docopt import docopt import glob __author__ = "RYO KOBAYASHI" __version__ = "170608...
24.5
84
0.583987
79690301951f74a61aafd67191533dbfda7126b7
2,069
py
Python
heron/tools/cli/src/python/cdefs.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
3,348
2016-05-25T16:04:31.000Z
2018-03-28T17:46:14.000Z
heron/tools/cli/src/python/cdefs.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
1,542
2016-05-25T16:46:44.000Z
2018-03-29T17:30:23.000Z
heron/tools/cli/src/python/cdefs.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
702
2016-05-25T16:07:43.000Z
2018-03-27T06:31:07.000Z
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # 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 Apach...
33.918033
80
0.686322