hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
61cd7039e1fab5de110132fa77cb31e685ab011b
2,361
py
Python
tests/word_tokenizer/test_kytea_tokenizer.py
chigichan24/konoha
b4d842640edc31cf877b335583180b6c28432717
[ "MIT" ]
null
null
null
tests/word_tokenizer/test_kytea_tokenizer.py
chigichan24/konoha
b4d842640edc31cf877b335583180b6c28432717
[ "MIT" ]
null
null
null
tests/word_tokenizer/test_kytea_tokenizer.py
chigichan24/konoha
b4d842640edc31cf877b335583180b6c28432717
[ "MIT" ]
null
null
null
import pytest from konoha.konoha_token import Token from konoha.word_tokenizer import WordTokenizer def test_word_tokenize_with_kytea(): try: import Mykytea del Mykytea except ImportError: pytest.skip("Mykytea is not installed.") tokenizer = WordTokenizer(tokenizer="KyTea") e...
27.137931
77
0.624735
c18d38a61ded7c8057afab718f0c79105795c501
1,062
py
Python
example/mat2edge.py
xptree/NetSMF
550da916b04b393de499e2ca5b13733d6a5e496d
[ "MIT" ]
129
2019-02-25T15:24:38.000Z
2022-01-20T07:50:34.000Z
src/classification/NetSMF/example/mat2edge.py
fahrbach/faster-graph-embeddings
c139c53a57e8888561c7965f3879d5896f92eba0
[ "MIT" ]
6
2019-06-19T20:14:41.000Z
2020-05-28T08:58:27.000Z
example/mat2edge.py
xptree/NetSMF
550da916b04b393de499e2ca5b13733d6a5e496d
[ "MIT" ]
26
2019-05-14T01:19:38.000Z
2021-03-23T05:39:21.000Z
#!/usr/bin/env python # encoding: utf-8 # File Name: mat2edge.py # Author: Jiezhong Qiu # Create Time: 2019/03/18 12:01 # TODO: import scipy.io import math import sys def load_adjacency_matrix(file, variable_name="network"): data = scipy.io.loadmat(file) return data[variable_name] def mat2edge(file, output):...
31.235294
97
0.627119
71c531c67f4f36ed6dd7929e6564880054747617
6,774
py
Python
example/direct_policy_search_for_gym/gym_task.py
IcarusWizard/ZOOpt
cea6d886517541c0cfa0504d22674a1955b240d3
[ "MIT" ]
403
2017-04-19T03:01:12.000Z
2022-02-27T04:31:27.000Z
example/direct_policy_search_for_gym/gym_task.py
IcarusWizard/ZOOpt
cea6d886517541c0cfa0504d22674a1955b240d3
[ "MIT" ]
15
2017-05-07T10:09:32.000Z
2020-11-18T11:33:00.000Z
example/direct_policy_search_for_gym/gym_task.py
IcarusWizard/ZOOpt
cea6d886517541c0cfa0504d22674a1955b240d3
[ "MIT" ]
97
2017-04-19T03:52:21.000Z
2022-03-03T13:05:02.000Z
""" The class GymTask sets a gym runtime environment. Author: Yu-Ren Liu """ import gym from gym.spaces.discrete import Discrete from nn_model import NNModel class GymTask: """ This class sets a gym runtime environment. """ def __init__(self, name): """ Init function. :...
33.701493
139
0.58695
e3d6802173b57b4c742a020d8cdbfa90ad2fad12
5,473
py
Python
S9/EVA4/Gradcam.py
VijayPrakashReddy-k/EVA
fd78ff8bda4227aebd0f5db14865d3c5a47b19b0
[ "MIT" ]
null
null
null
S9/EVA4/Gradcam.py
VijayPrakashReddy-k/EVA
fd78ff8bda4227aebd0f5db14865d3c5a47b19b0
[ "MIT" ]
null
null
null
S9/EVA4/Gradcam.py
VijayPrakashReddy-k/EVA
fd78ff8bda4227aebd0f5db14865d3c5a47b19b0
[ "MIT" ]
null
null
null
# https://github.com/kazuto1011/grad-cam-pytorch/blob/fd10ff7fc85ae064938531235a5dd3889ca46fed/grad_cam.py#L17 from torch.nn import functional as F import cv2 import torch import matplotlib.pyplot as plt import numpy as np class GradCAM: """ Class for extracting activations and registering gradients from...
32.96988
115
0.604422
9010bf839d5cc9acb82106b3060429a4e6830e60
673
py
Python
tests/functional/services/api/accounts/users/test_delete.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
null
null
null
tests/functional/services/api/accounts/users/test_delete.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
null
null
null
tests/functional/services/api/accounts/users/test_delete.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
null
null
null
import pytest from tests.functional.services.api.accounts.users import create_ft_account_user from tests.functional.services.api.conftest import FT_ACCOUNT from tests.functional.services.api.conftest import USER_API_CONFS from tests.functional.services.utils.http_utils import http_del, APIResponse @pytest.mark.param...
39.588235
99
0.803863
57d9275f00ada8c9dcce9fb7578f4ab3a13c8dc1
196
py
Python
npt/isis/calibration.py
chbrandt/gpt-neanias
aa7c2e88972f9af280b7f02ee11170df6c967b55
[ "MIT" ]
2
2020-09-28T08:22:54.000Z
2020-09-28T13:17:25.000Z
npt/isis/calibration.py
chbrandt/gpt-neanias
aa7c2e88972f9af280b7f02ee11170df6c967b55
[ "MIT" ]
null
null
null
npt/isis/calibration.py
chbrandt/gpt-neanias
aa7c2e88972f9af280b7f02ee11170df6c967b55
[ "MIT" ]
null
null
null
from npt import log from . import sh def radiometry(filename_in, filename_out): ctxcal = sh.wrap('ctxcal') res = ctxcal(FROM=filename_in, TO=filename_out) sh.log(res) return res
19.6
51
0.69898
86d32dc902a04a81f263ef961ff779a0a9cfac03
348
py
Python
slender/tests/set/test_iter.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
1
2020-01-10T21:51:46.000Z
2020-01-10T21:51:46.000Z
slender/tests/set/test_iter.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
null
null
null
slender/tests/set/test_iter.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from expects import expect, equal, raise_error from slender import Set class TestIter(TestCase): def test_iter(self): it = iter(Set({1, 2, 3, 4})) expect(next(it)).to(equal(1)) expect(next(it)).to(equal(2)) expect(next(it)).to(equal(3)) expe...
21.75
47
0.617816
c63d8fdc578b62f6c537a6796a987b00a181f01b
14,096
py
Python
beets/autotag/mb.py
krig/beets
03fa8d809b6d4bae9a0db8cebcbbb54c38089c08
[ "MIT" ]
1
2020-04-11T03:16:48.000Z
2020-04-11T03:16:48.000Z
beets/autotag/mb.py
krig/beets
03fa8d809b6d4bae9a0db8cebcbbb54c38089c08
[ "MIT" ]
null
null
null
beets/autotag/mb.py
krig/beets
03fa8d809b6d4bae9a0db8cebcbbb54c38089c08
[ "MIT" ]
null
null
null
# This file is part of beets. # Copyright 2013, Adrian Sampson. # # 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, ...
35.417085
76
0.626277
aedad503b53ea8fa11504c05ff5dfa3467344f06
486
py
Python
systems/zookeeper/src/clients/java/pyclient.py
sevenEng/Resolving-Consensus
a508701e19bd4ec0df735f5b094487983272dbb6
[ "MIT" ]
null
null
null
systems/zookeeper/src/clients/java/pyclient.py
sevenEng/Resolving-Consensus
a508701e19bd4ec0df735f5b094487983272dbb6
[ "MIT" ]
null
null
null
systems/zookeeper/src/clients/java/pyclient.py
sevenEng/Resolving-Consensus
a508701e19bd4ec0df735f5b094487983272dbb6
[ "MIT" ]
null
null
null
# pyclient.py # starts ping.py and Client.jar from sys import argv from threading import Thread from subprocess import call javacmd = [ "java", "-jar", "systems/zookeeper/clients/java/Client.jar", argv[-3], argv[-2], argv[-1], ] pycmd = ["python", "systems/zookeeper/clients/java/bridge.py", ar...
21.130435
72
0.697531
1e23c550ff2f32c0dde370ed72a08274f15929e9
17,935
py
Python
Src/Clova/vendor/future/backports/email/_parseaddr.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
2
2020-08-17T07:52:48.000Z
2020-12-18T16:39:32.000Z
Src/Clova/vendor/future/backports/email/_parseaddr.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
5
2020-12-15T23:40:14.000Z
2022-02-23T15:43:18.000Z
Src/Clova/vendor/future/backports/email/_parseaddr.py
NishiYusuke/Line-boot-award
d77f26b9109f3cba45be5906bcb6c9314974cd92
[ "MIT" ]
4
2019-05-16T09:57:33.000Z
2021-07-14T12:31:21.000Z
# Copyright (C) 2002-2007 Python Software Foundation # Contact: email-sig@python.org """Email address parsing code. Lifted directly from rfc822.py. This should eventually be rewritten. """ from __future__ import unicode_literals from __future__ import print_function from __future__ import division from _...
32.787934
80
0.520156
be55ad1cec6aeaa9e85621c36d26666de5ba08b8
9,458
py
Python
attack/GAFNC.py
AI-2022/GAFNC
d6814efc6a737b71abf8d0fd7e1d1543c0c0b8b3
[ "MIT" ]
null
null
null
attack/GAFNC.py
AI-2022/GAFNC
d6814efc6a737b71abf8d0fd7e1d1543c0c0b8b3
[ "MIT" ]
null
null
null
attack/GAFNC.py
AI-2022/GAFNC
d6814efc6a737b71abf8d0fd7e1d1543c0c0b8b3
[ "MIT" ]
null
null
null
import torch from torch import Tensor from torch_geometric.utils.loop import add_self_loops from torch.nn.functional import cross_entropy from attack.base_attack import AttackBase EPS = 1e-15 def cross_entropy_with_logit(y_pred: torch.Tensor, y_true: torch.Tensor, **kwargs): return cross_entropy(y_pred, y_true.lon...
43.585253
193
0.58543
a044429fad61a72fceedd03c190a2e3b41927c65
3,256
py
Python
test/tuner_test.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
2
2019-12-30T20:42:17.000Z
2021-01-24T16:51:56.000Z
test/tuner_test.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
null
null
null
test/tuner_test.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
1
2020-01-11T13:19:26.000Z
2020-01-11T13:19:26.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import sys import os.path as osp import subprocess import sys import time import traceback from utils import get_yml_content, dump_yml_content, setup_experiment, get_nni_log_path, is_experiment_done from utils import GREEN, RED, CLEAR, EXPERIMEN...
36.58427
107
0.67199
c7043cb0a965f61a43f410efe002016bc1c66a4e
377
py
Python
recipes/templatetags/add_class.py
AlexxSandbox/foodgram-project
6317678e95c630fee497f549e7806eb8ce18b861
[ "BSD-3-Clause" ]
null
null
null
recipes/templatetags/add_class.py
AlexxSandbox/foodgram-project
6317678e95c630fee497f549e7806eb8ce18b861
[ "BSD-3-Clause" ]
8
2021-04-08T20:56:22.000Z
2022-03-12T00:53:35.000Z
recipes/templatetags/add_class.py
AlexxSandbox/foodgram-project
6317678e95c630fee497f549e7806eb8ce18b861
[ "BSD-3-Clause" ]
null
null
null
from django import template register = template.Library() @register.filter def addclass(field, css): return field.as_widget(attrs={"class": css}) @register.filter def class_tag(tag): classes = { "breakfast": "badge badge_style_orange", "lunch": "badge badge_style_green", "dinner": "...
19.842105
48
0.671088
24b188ed41504a5a3e2a6240f5554523ddd8c575
567
py
Python
boba/models.py
gracerosemary/boba-project
627504a3caf9f2833d3a5b12c9172543a64a7f70
[ "MIT" ]
null
null
null
boba/models.py
gracerosemary/boba-project
627504a3caf9f2833d3a5b12c9172543a64a7f70
[ "MIT" ]
null
null
null
boba/models.py
gracerosemary/boba-project
627504a3caf9f2833d3a5b12c9172543a64a7f70
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model from django.urls import reverse # Create your models here. class Boba(models.Model): drink = models.CharField(max_length=64) business = models.CharField(max_length=40, default="", help_text="Enter store/cafe name") description = m...
33.352941
93
0.733686
93761e8846f105e589195a9aecf50ea498a9b661
572
py
Python
AprendeAyudando/request_permissions/migrations/0002_request_permissions_role.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
1
2021-09-09T09:54:04.000Z
2021-09-09T09:54:04.000Z
AprendeAyudando/request_permissions/migrations/0002_request_permissions_role.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
null
null
null
AprendeAyudando/request_permissions/migrations/0002_request_permissions_role.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.3 on 2020-12-01 19:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('request_permissions', '0001_initial'), ] operations = [ migrations.AddField( model_name='request_permissions', name=...
30.105263
226
0.645105
7fbb0058abf6935f2dce52ea9c944af6c62ff778
1,167
py
Python
run.py
KabusIblis/map-toolkit
409ad6c2caeb0593d91dccb1a7a4c90317ed7660
[ "MIT" ]
null
null
null
run.py
KabusIblis/map-toolkit
409ad6c2caeb0593d91dccb1a7a4c90317ed7660
[ "MIT" ]
null
null
null
run.py
KabusIblis/map-toolkit
409ad6c2caeb0593d91dccb1a7a4c90317ed7660
[ "MIT" ]
null
null
null
import config print("Map Toolkit \n") # awful but will do for now def error(): print("unknown input\n") while True: try: user_input = int(input("Press 1 to compile (exits script) \n" "Press 2 to change config\n" "Press 3 to reset config t...
30.710526
114
0.54413
23a6284131836514854848760cb058e3daeaff4e
473
py
Python
running_modes/configurations/logging/__init__.py
fujirock/Reinvent
9c57636f9d32b4ce5b75670f43906a70d5daf886
[ "MIT" ]
4
2021-05-11T05:34:01.000Z
2022-03-30T10:04:21.000Z
running_modes/configurations/logging/__init__.py
prasannavd/Reinvent
ca02ebee8d8ed83223c55f4a1dd1b3fbc2359616
[ "MIT" ]
null
null
null
running_modes/configurations/logging/__init__.py
prasannavd/Reinvent
ca02ebee8d8ed83223c55f4a1dd1b3fbc2359616
[ "MIT" ]
2
2021-06-01T11:56:10.000Z
2021-10-05T04:33:56.000Z
from running_modes.configurations.logging.base_log_config import * from running_modes.configurations.logging.create_model_log_configuration import * from running_modes.configurations.logging.reinforcement_log_configuration import * from running_modes.configurations.logging.sampling_log_configuration import * from runni...
78.833333
86
0.900634
6a6aa56ef080372811d19372e72bb098dc638ee8
7,845
py
Python
src/pandas_profiling/model/pandas/describe_categorical_pandas.py
rwforest/pandas-profiling
28526aa3274dd38545fd4c09b1fe06eff32a8fc0
[ "MIT" ]
null
null
null
src/pandas_profiling/model/pandas/describe_categorical_pandas.py
rwforest/pandas-profiling
28526aa3274dd38545fd4c09b1fe06eff32a8fc0
[ "MIT" ]
5
2021-10-31T15:58:09.000Z
2022-03-16T01:22:23.000Z
src/pandas_profiling/model/pandas/describe_categorical_pandas.py
rwforest/pandas-profiling
28526aa3274dd38545fd4c09b1fe06eff32a8fc0
[ "MIT" ]
null
null
null
import contextlib import string from collections import Counter from typing import Tuple import numpy as np import pandas as pd from pandas_profiling.config import Settings from pandas_profiling.model.pandas.utils_pandas import weighted_median from pandas_profiling.model.summary_algorithms import ( chi_square, ...
35.022321
88
0.688464
9009cfd99bab946c9845a7160a7170dea93d0e9d
32,199
py
Python
tests/bloom_test.py
dekoza/pyprobables
9460471d7e391060874d342945b2352d0a35603f
[ "MIT" ]
null
null
null
tests/bloom_test.py
dekoza/pyprobables
9460471d7e391060874d342945b2352d0a35603f
[ "MIT" ]
null
null
null
tests/bloom_test.py
dekoza/pyprobables
9460471d7e391060874d342945b2352d0a35603f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Unittest class ''' from __future__ import (unicode_literals, absolute_import, print_function) import unittest import os import hashlib from probables import (BloomFilter, BloomFilterOnDisk) from probables.exceptions import (InitializationError, NotSupportedError) from probables.hashes import...
38.561677
79
0.608777
1bfb0cf77577cc86b34761b98615ab9484fcb19e
11,970
py
Python
python/ccxt/bitstamp1.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
1
2018-08-20T09:38:13.000Z
2018-08-20T09:38:13.000Z
python/ccxt/bitstamp1.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
null
null
null
python/ccxt/bitstamp1.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
1
2019-01-02T01:32:45.000Z
2019-01-02T01:32:45.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import BadSymbol from ccxt.base.er...
44.169742
163
0.51604
7c279c56971e5fb747271b233eef03c9998e628a
5,647
py
Python
budgetportal/tests/test_irm_preprocessor.py
Lunga001/datamanager
ebe9ad9db2ee7011855f1249c46d9d1bf6f4c4d1
[ "MIT" ]
3
2019-08-31T03:08:22.000Z
2020-04-03T13:09:20.000Z
budgetportal/tests/test_irm_preprocessor.py
Lunga001/datamanager
ebe9ad9db2ee7011855f1249c46d9d1bf6f4c4d1
[ "MIT" ]
97
2019-04-16T07:54:38.000Z
2022-02-10T07:25:48.000Z
budgetportal/tests/test_irm_preprocessor.py
OpenUpSA/budget-portal
879c5875b1d438b9287c38d6730c86be69051ac5
[ "MIT" ]
14
2019-04-23T09:48:17.000Z
2021-04-13T17:48:40.000Z
import unittest from budgetportal.infra_projects.irm_preprocessor import ( BASE_HEADERS, REPEATED_IMPLEMENTOR_HEADER, InputException, get_row_implementors, preprocess, ) from tablib import Dataset class PreprocessHeaderTestCase(unittest.TestCase): def test_incorrect_first_header(self): ...
40.92029
88
0.655569
3cf354c6f7057fcd9a10e6a3bf5404f7a71948a0
841
py
Python
src/backend/aspen/api/views/usher.py
chanzuckerberg/czgenepi
87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd
[ "MIT" ]
null
null
null
src/backend/aspen/api/views/usher.py
chanzuckerberg/czgenepi
87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd
[ "MIT" ]
30
2022-02-01T23:19:14.000Z
2022-03-29T19:34:20.000Z
src/backend/aspen/api/views/usher.py
chanzuckerberg/czgenepi
87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd
[ "MIT" ]
null
null
null
from typing import List import sqlalchemy as sa from fastapi import APIRouter, Depends from pydantic import parse_obj_as from sqlalchemy.ext.asyncio import AsyncSession from starlette.requests import Request from aspen.api.deps import get_db from aspen.api.schemas.usher import UsherTreeVersion, UsherTreeVersionsRespo...
32.346154
83
0.788347
35fa8c4ad743734c066bbccb4934fd467b6d46a0
7,330
py
Python
upvote/gae/modules/upvote_app/cron/roles.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
upvote/gae/modules/upvote_app/cron/roles.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
upvote/gae/modules/upvote_app/cron/roles.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.623853
80
0.703138
b67d74a613a84f003c6ee029e735187412a5ae40
476
py
Python
PCRC-MCDR/utils/pycraft/networking/packets/serverbound/handshake/__init__.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
2
2020-04-17T13:32:53.000Z
2020-04-28T10:16:28.000Z
PCRC-MCDR/utils/pycraft/networking/packets/serverbound/handshake/__init__.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
null
null
null
PCRC-MCDR/utils/pycraft/networking/packets/serverbound/handshake/__init__.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
1
2020-04-28T10:25:56.000Z
2020-04-28T10:25:56.000Z
from ....packets import Packet from ....types import ( VarInt, String, UnsignedShort ) # Formerly known as state_handshake_serverbound. def get_packets(context): packets = { HandShakePacket } return packets class HandShakePacket(Packet): id = 0x00 packet_name = "handshake" defin...
19.833333
48
0.640756
8a74052522b6628645e2dd91b37a457e35a59e74
3,707
py
Python
examples/lead_sulphate/gsasii_refine.py
lanl/stitch
c62267c9e50d206d1edadc0e653af1b8b9a7ffc5
[ "BSD-3-Clause" ]
2
2020-01-10T18:32:48.000Z
2020-03-19T07:08:02.000Z
examples/lead_sulphate/gsasii_refine.py
lanl/stitch
c62267c9e50d206d1edadc0e653af1b8b9a7ffc5
[ "BSD-3-Clause" ]
1
2021-02-18T21:05:52.000Z
2021-02-18T21:05:52.000Z
examples/lead_sulphate/gsasii_refine.py
lanl/stitch
c62267c9e50d206d1edadc0e653af1b8b9a7ffc5
[ "BSD-3-Clause" ]
3
2020-01-10T18:33:04.000Z
2020-06-04T00:19:33.000Z
#! /usr/bin/env python """ Example GSAS-II refinement. Based on tutorial at: https://subversion.xray.aps.anl.gov/pyGSAS/Tutorials/PythonScript/Scripting.htm """ import os import sys import GSASIIscriptable as gsasii def print_stats(gpx): """ Prints profile r-factors for all histograms. """ print(u"*** pro...
24.071429
79
0.57351
26296d91178e9339181f2ceffc9309d89a4ed300
40
py
Python
tests/__init__.py
ashalper-usgs/gridmetetl
b3082aabc6bbddd669d5b13e15ecf08a4505e2f8
[ "MIT" ]
null
null
null
tests/__init__.py
ashalper-usgs/gridmetetl
b3082aabc6bbddd669d5b13e15ecf08a4505e2f8
[ "MIT" ]
null
null
null
tests/__init__.py
ashalper-usgs/gridmetetl
b3082aabc6bbddd669d5b13e15ecf08a4505e2f8
[ "MIT" ]
5
2020-04-10T11:57:41.000Z
2020-11-06T21:50:08.000Z
"""Unit test package for gridmetetl."""
20
39
0.7
9ea56cda20dfda3a71e2a783b9653f43b1ae2838
58,216
py
Python
api/overdrive.py
vbessonov/circulation
3f522130242298181ce3f5e8392da70a1328fb74
[ "Apache-2.0" ]
null
null
null
api/overdrive.py
vbessonov/circulation
3f522130242298181ce3f5e8392da70a1328fb74
[ "Apache-2.0" ]
null
null
null
api/overdrive.py
vbessonov/circulation
3f522130242298181ce3f5e8392da70a1328fb74
[ "Apache-2.0" ]
null
null
null
from nose.tools import set_trace import datetime import dateutil import json import pytz import re import requests import flask import urlparse from flask_babel import lazy_gettext as _ from sqlalchemy.orm import contains_eager from circulation import ( DeliveryMechanismInfo, LoanInfo, HoldInfo, Fulfi...
40.20442
930
0.623385
c53ef218a6c772133dcd28679ee031f4952327c1
1,224
py
Python
fetchman/downloader/http/selenium_response.py
yutiansut/fetchman
127ff79d7cfd11b0bb7f6d785ab49a274c61469b
[ "Apache-2.0" ]
77
2017-11-01T07:09:31.000Z
2021-12-07T23:50:27.000Z
fetchman/downloader/http/selenium_response.py
HyokaChen/violet
b89ddb4f909c2a40e76d89b665949e55086a7a80
[ "Apache-2.0" ]
7
2018-02-06T09:44:48.000Z
2021-03-31T23:42:54.000Z
fetchman/downloader/http/selenium_response.py
EmptyChan/violet
b89ddb4f909c2a40e76d89b665949e55086a7a80
[ "Apache-2.0" ]
25
2017-11-07T03:17:34.000Z
2021-07-12T02:41:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re from posixpath import normpath from bs4 import BeautifulSoup as bs if sys.version_info < (3, 0): reload(sys) sys.setdefaultencoding('utf-8') from urlparse import urljoin, urlparse, urlunparse else: from urllib.parse import urljoin, urlp...
28.465116
121
0.631536
8d3816bdecb4a43a8f4eb31bb1258ff945206bd1
1,836
py
Python
src/utils/data_generator.py
franziska-schirrmacher/SR2
59e63ec3f0dc115a90c00c41a38e4ad607a87e2c
[ "MIT" ]
1
2021-10-04T04:10:07.000Z
2021-10-04T04:10:07.000Z
src/utils/data_generator.py
franziska-schirrmacher/SR2
59e63ec3f0dc115a90c00c41a38e4ad607a87e2c
[ "MIT" ]
null
null
null
src/utils/data_generator.py
franziska-schirrmacher/SR2
59e63ec3f0dc115a90c00c41a38e4ad607a87e2c
[ "MIT" ]
null
null
null
## Based on https://stanford.edu/~shervine/blog/keras-how-to-generate-data-on-the-fly ## https://github.com/shervinea/enzynet """ SR²: Super-Resolution With Structure-Aware Reconstruction sr2/src/utils @author: Franziska Schirrmacher """ import numpy as np import keras # data generator to load the data...
31.655172
93
0.644336
bf1ead37c50843f3a860beb06a895529c9d9c432
444
py
Python
src/apps/mesas/admin.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/mesas/admin.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/mesas/admin.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# coding: utf-8 # app: mesa de atencion # module: admin # date: miércoles, 13 de junio de 2018 - 16:20 # description: Área administrativa de la app Mesas de Atención # pylint: disable=W0613,R0201,R0903 from django.contrib import admin from apps.mesas.models import Registro class MesaAdmin(admin....
22.2
62
0.693694
b0b2b6f68f11808a3f79d31a83a0e0f0ae5fb525
208,196
py
Python
litespi/modules/generated_modules.py
zyp/litespi
cd36da3087706d159351fd0657a41f57bf36187d
[ "BSD-2-Clause" ]
null
null
null
litespi/modules/generated_modules.py
zyp/litespi
cd36da3087706d159351fd0657a41f57bf36187d
[ "BSD-2-Clause" ]
null
null
null
litespi/modules/generated_modules.py
zyp/litespi
cd36da3087706d159351fd0657a41f57bf36187d
[ "BSD-2-Clause" ]
null
null
null
# Generated using 'spi_nor_cfg_gen.py' from litespi.spi_nor_flash_module import SpiNorFlashModule from litespi.opcodes import SpiNorFlashOpCodes from litespi.ids import SpiNorFlashManufacturerIDs class X160S33B(SpiNorFlashModule): manufacturer_id = SpiNorFlashManufacturerIDs.INTEL device_id = 0x8911 name...
23.720633
59
0.655137
a695c5346caa6f11b1f60b518ddc486d4023d18b
889
py
Python
app/management/commands/black.py
typenil/django-boilerplate
b3e16e9ddbf60f711915b3bd0b8e33adf8eb6ffa
[ "MIT" ]
null
null
null
app/management/commands/black.py
typenil/django-boilerplate
b3e16e9ddbf60f711915b3bd0b8e33adf8eb6ffa
[ "MIT" ]
null
null
null
app/management/commands/black.py
typenil/django-boilerplate
b3e16e9ddbf60f711915b3bd0b8e33adf8eb6ffa
[ "MIT" ]
null
null
null
from typing import List import sys from subprocess import call from django.core.management.base import BaseCommand from app.management.common import RegexFileCommand class Command(RegexFileCommand, BaseCommand): help = "Formats the codebase using black" DEFAULT_BLACK_COMMAND = ["black", "--config", "pyprojec...
28.677419
79
0.655793
c86aaad42ff4f76b92d176a149830355166eaa32
4,650
py
Python
venv/Lib/site-packages/networkx/algorithms/flow/tests/test_maxflow_large_graph.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
10,024
2015-01-01T13:06:43.000Z
2022-03-31T12:45:25.000Z
venv/Lib/site-packages/networkx/algorithms/flow/tests/test_maxflow_large_graph.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
3,191
2015-01-01T18:13:11.000Z
2022-03-31T22:06:00.000Z
venv/Lib/site-packages/networkx/algorithms/flow/tests/test_maxflow_large_graph.py
amelliaaas/tugastkc4
f442382c72379e911f3780543b95345a3b1c9407
[ "Apache-2.0" ]
3,272
2015-01-01T05:04:53.000Z
2022-03-31T17:46:35.000Z
"""Maximum flow algorithms test suite on large graphs. """ import os import pytest import networkx as nx from networkx.algorithms.flow import build_flow_dict, build_residual_network from networkx.algorithms.flow import boykov_kolmogorov from networkx.algorithms.flow import dinitz from networkx.algorithms.flow import ...
31.849315
85
0.588602
f5d5b7da8b9ac255ef34e6c9329a408eb694874d
26,779
py
Python
service/tests/unit/test_routing.py
JiscPER/jper
00e638b0993bb6625ad70046fe8ffa0b4544ed15
[ "Apache-2.0" ]
2
2015-05-21T10:38:46.000Z
2015-06-10T15:49:50.000Z
service/tests/unit/test_routing.py
JiscPER/jper
00e638b0993bb6625ad70046fe8ffa0b4544ed15
[ "Apache-2.0" ]
83
2015-05-05T11:10:13.000Z
2016-02-22T11:04:34.000Z
service/tests/unit/test_routing.py
JiscPER/jper
00e638b0993bb6625ad70046fe8ffa0b4544ed15
[ "Apache-2.0" ]
3
2015-11-11T16:37:33.000Z
2016-07-26T10:33:52.000Z
""" Unit tests for the routing system """ from octopus.modules.es.testindex import ESTestCase # from unittest import TestCase from service.web import app from octopus.lib import paths from octopus.modules.store import store from flask import url_for from service import routing, models, api, packages from service.test...
38.697977
141
0.567161
5124603f8db2bac619af2f3cdab096febb0d310e
4,811
py
Python
svenHistosummaryVis.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
1
2020-12-31T01:57:33.000Z
2020-12-31T01:57:33.000Z
svenHistosummaryVis.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
null
null
null
svenHistosummaryVis.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
null
null
null
#we get a hist file as a an input and try to visualize it. import os import matplotlib.pyplot as plt from matplotlib import pyplot as plt all_histos=sorted(os.listdir('./histoSummary/')) all_histos.remove('.DS_Store') path='./histoSummary/' summary_dict={} '''fill the summary dict with information. THe key is the n...
28.3
153
0.614217
d33e891429b0bc5c60a67cea6b0c58d8213ddcba
32,774
py
Python
rand_mfld_proj/proj_mfld/rand_proj_mfld_plot.py
ganguli-lab/projecting-manifolds
05a0ca8c87e2f38e51f2f392a13ee670588c5fc7
[ "MIT" ]
5
2018-01-13T23:05:01.000Z
2020-04-30T10:44:10.000Z
rand_mfld_proj/proj_mfld/rand_proj_mfld_plot.py
ganguli-lab/projecting-manifolds
05a0ca8c87e2f38e51f2f392a13ee670588c5fc7
[ "MIT" ]
null
null
null
rand_mfld_proj/proj_mfld/rand_proj_mfld_plot.py
ganguli-lab/projecting-manifolds
05a0ca8c87e2f38e51f2f392a13ee670588c5fc7
[ "MIT" ]
2
2019-04-09T06:53:32.000Z
2019-10-10T19:46:44.000Z
# -*- coding: utf-8 -*- """ Created on Sun Aug 14 17:29:16 2016 @author: Subhy Plot maximum distortion of Gaussian random manifolds under random projections Functions ========= make_fig_ax Make figure and axes objects, separate plots make_fig_ax_2 Make figure and axes objects, paired plots plot_num_fig P...
30.262235
79
0.514219
966767fdee5e2a0965b5935892333de416a0da4a
5,700
py
Python
tests/test_owsrequest_wps.py
bird-house/twitcher
c9bf4246b13c20135bc6a26d2afc6cb1fba911e5
[ "Apache-2.0" ]
13
2016-06-03T12:40:00.000Z
2022-02-25T00:40:01.000Z
tests/test_owsrequest_wps.py
bird-house/twitcher
c9bf4246b13c20135bc6a26d2afc6cb1fba911e5
[ "Apache-2.0" ]
92
2015-10-29T12:07:04.000Z
2022-03-15T21:20:51.000Z
tests/test_owsrequest_wps.py
bird-house/pywps-proxy
b6a95f2d06cc6f79265f4964d1228650ee7f8bbd
[ "Apache-2.0" ]
3
2017-06-27T19:57:53.000Z
2020-04-11T11:46:51.000Z
import pytest import unittest from pyramid import testing from pyramid.testing import DummyRequest from twitcher.owsrequest import OWSRequest from twitcher.owsexceptions import OWSInvalidParameterValue, OWSMissingParameterValue class OWSRequestWpsTestCase(unittest.TestCase): def setUp(self): self.config...
41.605839
112
0.640351
2062b05aedbb2ba4a8f28c2580eba2c916676e4a
75
py
Python
tuflow/__init__.py
klarrieu/hy2opt
fc333c746d7fabe0d6c12b0e4185ae5674860fc4
[ "MIT" ]
1
2019-09-26T23:35:45.000Z
2019-09-26T23:35:45.000Z
tuflow/__init__.py
klarrieu/hy2opt
fc333c746d7fabe0d6c12b0e4185ae5674860fc4
[ "MIT" ]
null
null
null
tuflow/__init__.py
klarrieu/hy2opt
fc333c746d7fabe0d6c12b0e4185ae5674860fc4
[ "MIT" ]
1
2020-10-13T21:49:38.000Z
2020-10-13T21:49:38.000Z
import sys, os sys.path.append(os.path.dirname(__file__)) import tf_gui
18.75
43
0.76
7ed66852d2b7ab03cb44f322785406eb4165a7b7
190
py
Python
problem0590.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0590.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0590.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #590 Sets with a given Least Common Multiple - Project Euler # https://projecteuler.net/problem=590 # # Code by Kevin Marciniak # ###########################
21.111111
62
0.515789
5f40c37e286d9ba70fc745fc46b6efef7bbb5c49
30
py
Python
src/vimpdb/tests/scripts/noserver.py
dtrckd/vimpdb
1171938751127d23f66f6b750dd79166c64bdf20
[ "MIT" ]
110
2015-01-11T06:50:42.000Z
2021-07-07T20:08:39.000Z
src/vimpdb/tests/scripts/noserver.py
dtrckd/vimpdb
1171938751127d23f66f6b750dd79166c64bdf20
[ "MIT" ]
8
2015-06-03T10:23:41.000Z
2021-05-06T15:25:47.000Z
src/vimpdb/tests/scripts/noserver.py
dtrckd/vimpdb
1171938751127d23f66f6b750dd79166c64bdf20
[ "MIT" ]
24
2015-03-03T16:35:12.000Z
2022-01-19T16:24:06.000Z
print "-clientserver +python"
15
29
0.766667
78d0ce2eca7ffd31685686d63c80b7382acb30bf
3,296
py
Python
exoatlas/populations/TransitingExoplanets.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
4
2020-06-24T16:38:27.000Z
2022-01-23T01:57:19.000Z
exoatlas/populations/TransitingExoplanets.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
4
2018-09-20T23:12:30.000Z
2019-05-15T15:31:58.000Z
exoatlas/populations/TransitingExoplanets.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
null
null
null
from ..imports import * from .Exoplanets import * from .curation.TransitingExoplanets import curate __all__ = ['TransitingExoplanets'] class TransitingExoplanets(Exoplanets): def __init__(self, **kw): Exoplanets.__init__(self, **kw) # set the label self.label = 'Transiting Exoplanets' ...
31.390476
79
0.6071
a77851387f0f8fa9c233b8b0612d8c20bdf0fd9b
9,275
py
Python
datacube/storage/_rio.py
sebasmos/datacube-core
e97b9c3f6171b329ae09e56be9897e8d892f8e76
[ "Apache-2.0" ]
null
null
null
datacube/storage/_rio.py
sebasmos/datacube-core
e97b9c3f6171b329ae09e56be9897e8d892f8e76
[ "Apache-2.0" ]
null
null
null
datacube/storage/_rio.py
sebasmos/datacube-core
e97b9c3f6171b329ae09e56be9897e8d892f8e76
[ "Apache-2.0" ]
null
null
null
# This file is part of the Open Data Cube, see https://opendatacube.org for more information # # Copyright (c) 2015-2020 ODC Contributors # SPDX-License-Identifier: Apache-2.0 """ Driver implementation for Rasterio based reader. """ import logging import warnings import contextlib from contextlib import contextmanager ...
30.610561
112
0.624259
6995332e3dcd652d4d8ba699c83795dde67b7671
69
py
Python
src/modules/inventory/models.py
areg4/backend-django-test-01
ae34f8062b9fd8fb2e6cb9650a7b7b3e836cbc3a
[ "MIT" ]
null
null
null
src/modules/inventory/models.py
areg4/backend-django-test-01
ae34f8062b9fd8fb2e6cb9650a7b7b3e836cbc3a
[ "MIT" ]
null
null
null
src/modules/inventory/models.py
areg4/backend-django-test-01
ae34f8062b9fd8fb2e6cb9650a7b7b3e836cbc3a
[ "MIT" ]
6
2020-12-02T04:28:11.000Z
2021-11-30T17:09:11.000Z
from django.db import models class Product(models.Model): pass
11.5
28
0.73913
488d10148bdef7c27bf0974c969ca89987fdd5d2
984
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/load_balancer_sku_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/load_balancer_sku_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/load_balancer_sku_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
31.741935
76
0.577236
e0b52d1252e7a5f831817ef35abe87cf899b7aa4
4,011
py
Python
tacker-1.0.0/tacker/vnfm/infra_drivers/openstack/vdu.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
tacker-1.0.0/tacker/vnfm/infra_drivers/openstack/vdu.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
tacker-1.0.0/tacker/vnfm/infra_drivers/openstack/vdu.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2018 NTT DATA # All Rights Reserved. # # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
43.597826
78
0.622538
ce2cbd943c3b9db416d8a2425d2262939c374be1
2,288
py
Python
keras-mnist.py
orichardson/DCGAN-tensorflow-experiments
14f8edc41780e70edebc0641d0877d412eecdcc0
[ "MIT" ]
null
null
null
keras-mnist.py
orichardson/DCGAN-tensorflow-experiments
14f8edc41780e70edebc0641d0877d412eecdcc0
[ "MIT" ]
null
null
null
keras-mnist.py
orichardson/DCGAN-tensorflow-experiments
14f8edc41780e70edebc0641d0877d412eecdcc0
[ "MIT" ]
null
null
null
'''Trains a simple convnet on the MNIST dataset. Gets to 99.25% test accuracy after 12 epochs (there is still a lot of margin for parameter tuning). 16 seconds per epoch on a GRID K520 GPU. ''' from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from...
32.225352
70
0.718094
b2040b20cafc4439b360674809ef95d3b5adee2c
436
py
Python
01_getting_started/task2/task2.py
crazzle/fp_python
cd3702e8784834651a72dc4e294055b08da606e4
[ "MIT" ]
1
2018-03-03T21:14:32.000Z
2018-03-03T21:14:32.000Z
01_getting_started/task2/task2.py
crazzle/fp_python
cd3702e8784834651a72dc4e294055b08da606e4
[ "MIT" ]
null
null
null
01_getting_started/task2/task2.py
crazzle/fp_python
cd3702e8784834651a72dc4e294055b08da606e4
[ "MIT" ]
1
2018-03-03T22:49:01.000Z
2018-03-03T22:49:01.000Z
import unittest """ Task 2: Convert the string of numbers to a list of integers Example: "78+67+65" = [78, 67, 65] """ class Testsuite(unittest.TestCase): numbers = "78+101+118+101+114+32+67+111+100+101+32+65+108+111+110+101" result = [78, 101, 118, 101, 114, 32, 67, 111, 100, 101, 32, 65, 108, 111, 110, 10...
15.034483
88
0.630734
a1c185eb1ca769aac61035ab30d44ce07cc047fb
3,660
py
Python
ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_entity.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
2
2021-10-30T06:52:48.000Z
2021-11-16T12:34:16.000Z
ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_entity.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_entity.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
29.756098
96
0.569126
658945f320f2fa4b9c8cb1df286a5978b1b4781e
5,950
py
Python
blockchain/models.py
neonexchange/psp_template
c81fc831c1f31db00b29c4f016d073e66866f09b
[ "MIT" ]
5
2018-03-02T09:36:41.000Z
2018-05-09T15:12:53.000Z
blockchain/models.py
neonexchange/psp_template
c81fc831c1f31db00b29c4f016d073e66866f09b
[ "MIT" ]
null
null
null
blockchain/models.py
neonexchange/psp_template
c81fc831c1f31db00b29c4f016d073e66866f09b
[ "MIT" ]
null
null
null
from django.db import models from customer.models import Purchase, PSPUser, ASSET_CHOICES, PURCHASE_STATUS from neo.Core.Blockchain import Blockchain import binascii import json from django.conf import settings from logzero import logger from neo.Implementations.Wallets.peewee.UserWallet import UserWallet # Create your...
30.989583
120
0.631933
306f4431807d90a9b93f99cba5cd91b443ed3034
7,245
py
Python
pymeasure/instruments/tektronix/afg3152c.py
dphaas/pymeasure
580c33bf5f1e409bb575c46bbd1df682bf27cfe1
[ "MIT" ]
null
null
null
pymeasure/instruments/tektronix/afg3152c.py
dphaas/pymeasure
580c33bf5f1e409bb575c46bbd1df682bf27cfe1
[ "MIT" ]
null
null
null
pymeasure/instruments/tektronix/afg3152c.py
dphaas/pymeasure
580c33bf5f1e409bb575c46bbd1df682bf27cfe1
[ "MIT" ]
null
null
null
# # This file is part of the PyMeasure package. # # Copyright (c) 2013-2022 PyMeasure Developers # # 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 limit...
33.85514
79
0.606349
43556b7756c42e3aa58fc5eb69d1dd6610e5aa51
902
py
Python
test/test_list_users_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/test_list_users_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
null
null
null
test/test_list_users_response.py
Logicworks/opsgenie-python-sdk
244c4c40ddcc25e70df5ba4425ab8d7c8da59c18
[ "Apache-2.0" ]
1
2020-11-07T11:27:13.000Z
2020-11-07T11:27:13.000Z
# coding: utf-8 """ OpsGenie REST API OpsGenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import opsgenie_swagger from opsgenie_swagger.models.list...
22
95
0.713969
37b6f749ba26dec211f4de0e8e7a352c52fe2d15
152
py
Python
thecampy/exceptions.py
leeesangwon/thecampy
f5f6f34b14db5ffdda8db383040604dc3e015ad1
[ "MIT" ]
18
2020-07-25T15:28:20.000Z
2022-02-08T15:24:31.000Z
thecampy/exceptions.py
lewisleedev/thecampy
f5f6f34b14db5ffdda8db383040604dc3e015ad1
[ "MIT" ]
16
2020-07-25T13:32:42.000Z
2022-03-10T05:41:24.000Z
thecampy/exceptions.py
leeesangwon/thecampy
f5f6f34b14db5ffdda8db383040604dc3e015ad1
[ "MIT" ]
6
2021-03-03T00:11:24.000Z
2021-08-19T11:22:09.000Z
class ThecampyException(Exception): pass class ThecampyValueError(ThecampyException): pass class ThecampyReqError(ThecampyException): pass
19
44
0.796053
597157a787b9edda4c995a1dfd7c9c580b0531b8
3,019
py
Python
addons14/hr_timesheet_activity_begin_end/tests/test_timesheet_begin_end.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/hr_timesheet_activity_begin_end/tests/test_timesheet_begin_end.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/hr_timesheet_activity_begin_end/tests/test_timesheet_begin_end.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
# Copyright 2015 Camptocamp SA - Guewen Baconnier # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import exceptions, fields from odoo.tests import common class TestBeginEnd(common.TransactionCase): def setUp(self): super(TestBeginEnd, self).setUp() self.timesheet_line_m...
39.723684
85
0.630672
3dde182b77a796d09bb66dbce857dfac659075f7
2,596
py
Python
models/model_settings.py
antocad/interfacegan
a938a79f20537b129f82388632fddde90d54714b
[ "MIT" ]
null
null
null
models/model_settings.py
antocad/interfacegan
a938a79f20537b129f82388632fddde90d54714b
[ "MIT" ]
null
null
null
models/model_settings.py
antocad/interfacegan
a938a79f20537b129f82388632fddde90d54714b
[ "MIT" ]
null
null
null
# python3.7 """Contains basic configurations for models used in this project. Please download the public released models from the following two repositories OR train your own models, and then put them into `pretrain` folder. ProgressiveGAN: https://github.com/tkarras/progressive_growing_of_gans StyleGAN: https://gith...
29.83908
78
0.610555
02c0860953ed9618ae2e777ecfb3f980d1b39096
696
py
Python
quantify_scheduler/schemas/examples/utils.py
quantify-os/quantify-scheduler
9dee17ca9345560b998b52f956c23b79a9ab287f
[ "BSD-4-Clause" ]
1
2022-03-23T16:55:07.000Z
2022-03-23T16:55:07.000Z
quantify_scheduler/schemas/examples/utils.py
quantify-os/quantify-scheduler
9dee17ca9345560b998b52f956c23b79a9ab287f
[ "BSD-4-Clause" ]
null
null
null
quantify_scheduler/schemas/examples/utils.py
quantify-os/quantify-scheduler
9dee17ca9345560b998b52f956c23b79a9ab287f
[ "BSD-4-Clause" ]
null
null
null
# Repository: https://gitlab.com/quantify-os/quantify-scheduler # Licensed according to the LICENCE file on the master branch """ Module containing example schedule utility functions. """ import json from pathlib import Path from typing import Any, Dict from quantify_scheduler.schemas import examples def load_json_...
23.2
63
0.691092
35b8eb084371aea09cd37b33e300de00f0c02b78
1,271
py
Python
doc/python/submanifold.py
abrombo/galgebra
5ae058c9ba2c17b1baf46c58f77124e82eaf428a
[ "BSD-3-Clause" ]
2
2019-10-12T15:29:08.000Z
2022-03-16T22:21:30.000Z
doc/python/submanifold.py
abrombo/galgebra
5ae058c9ba2c17b1baf46c58f77124e82eaf428a
[ "BSD-3-Clause" ]
1
2019-11-21T18:59:22.000Z
2019-11-26T08:37:26.000Z
doc/python/submanifold.py
abrombo/galgebra
5ae058c9ba2c17b1baf46c58f77124e82eaf428a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division from __future__ import print_function from sympy import symbols, sin, pi, latex from galgebra.ga import Ga from galgebra.printer import Format, xpdf Format() coords = (r, th, phi) = symbols('r,theta,phi', real=True) sp3d = Ga('e_r e_th e_ph', g=[1, r**2, r**2 * sin(th)*...
33.447368
68
0.645948
68ecc137965b897c746b2282ab1fc0ea03cb696a
3,891
py
Python
tests/test_pages/utils.py
davis68/relate
eb40c8c17d4a724a60de3caa3334521a833bad5c
[ "Unlicense" ]
null
null
null
tests/test_pages/utils.py
davis68/relate
eb40c8c17d4a724a60de3caa3334521a833bad5c
[ "Unlicense" ]
1
2018-12-12T20:02:50.000Z
2018-12-15T09:58:31.000Z
tests/test_pages/utils.py
davis68/relate
eb40c8c17d4a724a60de3caa3334521a833bad5c
[ "Unlicense" ]
null
null
null
__copyright__ = "Copyright (C) 2018 Dong Zhuang" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
33.25641
81
0.719352
c6ba3c31a3f17ebc06ba20d9081f5f8ad79c37c5
993
py
Python
pysc2/bin/map_list.py
radiantprism/StarCraft-2
1f159ae84feaed17c5e0bd70e272c06992ae0c48
[ "Apache-2.0" ]
8,095
2017-08-09T17:28:48.000Z
2022-03-31T00:19:45.000Z
pysc2/bin/map_list.py
radiantprism/StarCraft-2
1f159ae84feaed17c5e0bd70e272c06992ae0c48
[ "Apache-2.0" ]
328
2017-08-09T20:10:20.000Z
2022-03-29T05:04:37.000Z
pysc2/bin/map_list.py
radiantprism/StarCraft-2
1f159ae84feaed17c5e0bd70e272c06992ae0c48
[ "Apache-2.0" ]
1,391
2017-08-09T18:46:20.000Z
2022-03-18T07:46:23.000Z
#!/usr/bin/python # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
28.371429
74
0.741188
58a7fedbe82028a08a47667c3785f29e7f7c89c4
28,803
py
Python
edb/edgeql/tracer.py
sfermigier/edgedb
13aff7004aa682777287157dea52642c374967e8
[ "Apache-2.0" ]
7,302
2018-05-10T18:36:31.000Z
2022-03-31T17:49:36.000Z
edb/edgeql/tracer.py
sfermigier/edgedb
13aff7004aa682777287157dea52642c374967e8
[ "Apache-2.0" ]
1,602
2018-05-10T17:45:38.000Z
2022-03-31T23:46:19.000Z
edb/edgeql/tracer.py
sfermigier/edgedb
13aff7004aa682777287157dea52642c374967e8
[ "Apache-2.0" ]
236
2018-05-13T14:15:29.000Z
2022-03-29T19:39:19.000Z
# # This source file is part of the EdgeDB open source project. # # Copyright 2015-present MagicStack Inc. and the EdgeDB 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...
29.45092
79
0.577544
333aab4e17029bab7fda872889f1a7117add2c69
326
py
Python
plugins/mcafee_epo/komand_mcafee_epo/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/mcafee_epo/komand_mcafee_epo/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/mcafee_epo/komand_mcafee_epo/actions/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .add_permission_set_to_user.action import AddPermissionSetToUser from .clear_tags.action import ClearTags from .get_policies.action import GetPolicies from .run_wake_up.action import RunWakeUp from .search_agents.action import SearchAgents from .tag_system.action import TagS...
40.75
69
0.855828
70da65e2d4636e5589ac724e79d7d7c9f8020081
34,169
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/routeSampler.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/routeSampler.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/routeSampler.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2012-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
44.145995
118
0.595891
5e5efb150eb5bdea3bb256dcd767ca4c621002e2
51,618
py
Python
thrift/compiler/py/generate/t_cpp_generator.py
yuhonghong66/fbthrift
d03340f6e6801198b763dab921418d0bd56e1f32
[ "Apache-2.0" ]
null
null
null
thrift/compiler/py/generate/t_cpp_generator.py
yuhonghong66/fbthrift
d03340f6e6801198b763dab921418d0bd56e1f32
[ "Apache-2.0" ]
null
null
null
thrift/compiler/py/generate/t_cpp_generator.py
yuhonghong66/fbthrift
d03340f6e6801198b763dab921418d0bd56e1f32
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python2 -tt # # 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...
43.050876
85
0.511256
398d612d51fcba9b365c91b20503b895dacda8b7
812
py
Python
setup.py
Kokitis/infotools
430ebf749967f49310b8bbabb47af9aa826a6bcb
[ "MIT" ]
null
null
null
setup.py
Kokitis/infotools
430ebf749967f49310b8bbabb47af9aa826a6bcb
[ "MIT" ]
null
null
null
setup.py
Kokitis/infotools
430ebf749967f49310b8bbabb47af9aa826a6bcb
[ "MIT" ]
2
2017-04-26T14:53:19.000Z
2020-03-23T10:37:55.000Z
from setuptools import setup """ python setup.py sdist bdist_wheel twine upload -repository pypi dist/* """ import infotools if infotools.DEBUG: message = f"The module is still in debug mode!" raise ValueError(message) setup( name = 'infotools', version = '0.7.1', packages = ['infotools', 'infotools.timetools', ...
29
88
0.70197
7d69628d977cc5ba673ccd33cad213e2c28f5f50
5,076
py
Python
python/start_project.py
lachlanorr/gaen
325b4604ac8a8a366aa93cca9d8393ccdbc682fa
[ "Zlib" ]
2
2015-05-07T21:03:25.000Z
2017-10-11T11:17:28.000Z
python/start_project.py
lachlanorr/gaen
325b4604ac8a8a366aa93cca9d8393ccdbc682fa
[ "Zlib" ]
4
2016-06-25T21:41:50.000Z
2016-12-26T19:35:19.000Z
python/start_project.py
lachlanorr/gaen
325b4604ac8a8a366aa93cca9d8393ccdbc682fa
[ "Zlib" ]
1
2016-08-27T18:05:49.000Z
2016-08-27T18:05:49.000Z
#!/usr/bin/env python #------------------------------------------------------------------------------- # start_project.py - Start a new project based on gaen engine # # Gaen Concurrency Engine - http://gaen.org # Copyright (c) 2014-2021 Lachlan Orr # # This software is provided 'as-is', without any express or implied ...
32.748387
129
0.638692
4a6ff4811a7349232065a07eab74ccf466d199b9
8,163
py
Python
InitialDataConcurent.py
ruthvelisia/Ruth-s-Progress
670598c6b9285d09985587fb08d17f37fdd7b860
[ "MIT" ]
null
null
null
InitialDataConcurent.py
ruthvelisia/Ruth-s-Progress
670598c6b9285d09985587fb08d17f37fdd7b860
[ "MIT" ]
null
null
null
InitialDataConcurent.py
ruthvelisia/Ruth-s-Progress
670598c6b9285d09985587fb08d17f37fdd7b860
[ "MIT" ]
null
null
null
import pandas as pd import os import numpy as np from multiprocessing import Process class InitialDataConcurent: def LoadAllFile(self): self.threadsCount = 8 p = Process(target=self.LoadStatusMaintenance) p.start() print("Cobas") self.LoadFlightSchedule...
55.910959
182
0.69521
f751dd848e989d79b177f4d0af80bb5294fa2165
31,580
py
Python
neutron/tests/functional/agent/l3/framework.py
stackhpc/neutron
df94641b43964834ba14c69eb4fb17cc45349117
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/agent/l3/framework.py
stackhpc/neutron
df94641b43964834ba14c69eb4fb17cc45349117
[ "Apache-2.0" ]
null
null
null
neutron/tests/functional/agent/l3/framework.py
stackhpc/neutron
df94641b43964834ba14c69eb4fb17cc45349117
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
43.379121
79
0.632806
9d1c60972c260f9f155e5e0464c6a2e7600f0f93
1,219
py
Python
alipay/aop/api/response/AlipayOpenAppAraterWaitratealgorankQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayOpenAppAraterWaitratealgorankQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayOpenAppAraterWaitratealgorankQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.WaitRateAlgoItem import WaitRateAlgoItem class AlipayOpenAppAraterWaitratealgorankQueryResponse(AlipayResponse): def __init__(self): super(AlipayOpenAppA...
36.939394
121
0.717801
774f84cb224660b1ee66846a4cc755fe7867bfed
7,480
py
Python
wl_framework/network/connection.py
Consolatis/wl_framework
da7a72b3c306a3d6a49d27fe7e0d1ac288bb21bb
[ "Unlicense" ]
1
2022-02-28T04:19:23.000Z
2022-02-28T04:19:23.000Z
wl_framework/network/connection.py
Consolatis/wl_framework
da7a72b3c306a3d6a49d27fe7e0d1ac288bb21bb
[ "Unlicense" ]
null
null
null
wl_framework/network/connection.py
Consolatis/wl_framework
da7a72b3c306a3d6a49d27fe7e0d1ac288bb21bb
[ "Unlicense" ]
null
null
null
import os import errno import array import socket import struct from ..protocols.base import Interface from ..protocols.wayland import Display from ..loop_integrations.dummy import DummyIntegration class WaylandDisconnected(Exception): pass # TODO: cleanup and use sections class WaylandConnection: def __init__(sel...
29.800797
108
0.722193
7ef746ffcfe8f9cd69bb1447e876036421e626bc
407
py
Python
CustomerSupport/CustomerSupport/asgi.py
n37hk/customer-support-application
23f1c665c27e199de40d4d9d9450fe84a9138ed0
[ "Apache-2.0" ]
null
null
null
CustomerSupport/CustomerSupport/asgi.py
n37hk/customer-support-application
23f1c665c27e199de40d4d9d9450fe84a9138ed0
[ "Apache-2.0" ]
null
null
null
CustomerSupport/CustomerSupport/asgi.py
n37hk/customer-support-application
23f1c665c27e199de40d4d9d9450fe84a9138ed0
[ "Apache-2.0" ]
null
null
null
""" ASGI config for CustomerSupport project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJAN...
23.941176
78
0.793612
da3838e537b4ca7ef2d38bb866179f465a5fa2b1
4,131
py
Python
lib/model_param.py
phaustin/ent_analysis_loh
8ad384aa5805adb4a931f845e218a98d46b6f190
[ "MIT" ]
null
null
null
lib/model_param.py
phaustin/ent_analysis_loh
8ad384aa5805adb4a931f845e218a98d46b6f190
[ "MIT" ]
null
null
null
lib/model_param.py
phaustin/ent_analysis_loh
8ad384aa5805adb4a931f845e218a98d46b6f190
[ "MIT" ]
null
null
null
import numpy, ConfigParser, glob, os config = ConfigParser.RawConfigParser() config.read('config.cfg') model_config = {} for option in ('ug', 'vg', 'dt', 'dz', 'dy', 'dx'): model_config[option] = config.getfloat('modelconfig', option) for option in ('nz', 'ny', 'nx'): model_config[option] = config.getint('modelconf...
31.295455
95
0.605907
0b5b3fafa994d33be8bd81eb9acd73a8316bc189
8,335
py
Python
gae/train.py
liketheflower/gae
5d7af24e2203bec21a037e155a674f5bd00a2852
[ "MIT" ]
null
null
null
gae/train.py
liketheflower/gae
5d7af24e2203bec21a037e155a674f5bd00a2852
[ "MIT" ]
null
null
null
gae/train.py
liketheflower/gae
5d7af24e2203bec21a037e155a674f5bd00a2852
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function import time import os import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt # Train on CPU (hide GPU) due to memory constraints os.environ['CUDA_VISIBLE_DEVICES'] = "" #import tensorflow as tf import tensorflow.compat.v1 as tf tf...
35.772532
119
0.676665
69d417eafb4aacb214554102c68793f1a8ac1ac3
7,456
py
Python
src/exchange.py
AvatarHurden/keypirinha-currency
780063368c396dc10aeb47682977f05bb5626a16
[ "MIT" ]
26
2017-04-03T12:30:53.000Z
2022-01-05T05:34:35.000Z
src/exchange.py
AvatarHurden/keypirinha-currency
780063368c396dc10aeb47682977f05bb5626a16
[ "MIT" ]
13
2017-04-18T17:02:19.000Z
2021-11-22T09:38:41.000Z
src/exchange.py
AvatarHurden/keypirinha-currency
780063368c396dc10aeb47682977f05bb5626a16
[ "MIT" ]
2
2017-11-27T11:55:12.000Z
2017-12-25T19:39:49.000Z
from datetime import datetime from enum import Enum from .webservice import OpenExchangeRates, PrivateDomain import json import os import re class CurrencyError(RuntimeError): def __init__(self, currency): self.currency = currency def __str__(self): return 'Unrecognized currency "{}". You ca...
32.558952
141
0.574973
0ffd99fb85b2f5404d1c8d89f04a717276ee50aa
4,129
py
Python
moi/measures/migrations/0007_auto_20160322_1733.py
Ecotrust/F2S-MOI
aeb38942d6539c50f252ea3ff6fbff07aabc5088
[ "Apache-2.0" ]
null
null
null
moi/measures/migrations/0007_auto_20160322_1733.py
Ecotrust/F2S-MOI
aeb38942d6539c50f252ea3ff6fbff07aabc5088
[ "Apache-2.0" ]
33
2015-05-06T00:47:20.000Z
2016-11-08T21:13:44.000Z
moi/measures/migrations/0007_auto_20160322_1733.py
Ecotrust/F2S-MOI
aeb38942d6539c50f252ea3ff6fbff07aabc5088
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-22 17:33 from __future__ import unicode_literals from django.db import migrations import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtailimages.blocks class Migration(migrations.Migration): dependencies = [ ...
172.041667
3,621
0.760959
ccb979b591eee5e44575d2a8483150d5158bfd39
1,376
py
Python
nemo/collections/asr/models/__init__.py
gkucsko/NeMo
c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9
[ "Apache-2.0" ]
null
null
null
nemo/collections/asr/models/__init__.py
gkucsko/NeMo
c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9
[ "Apache-2.0" ]
1
2022-03-06T14:09:02.000Z
2022-03-06T14:09:02.000Z
nemo/collections/asr/models/__init__.py
gkucsko/NeMo
c1ae0a7744d9a0ac206f61b2883ce00c9b8339b9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
55.04
96
0.833576
02b7f0df4685ee17d8d31b327ce116b79f008104
7,500
py
Python
scripts/compile.py
1-Byte/ocd-division-ids
3a9ef6c04d2eb096dfa098c7bec5be556c210ae1
[ "CC0-1.0" ]
1
2019-07-31T17:04:39.000Z
2019-07-31T17:04:39.000Z
scripts/compile.py
1-Byte/ocd-division-ids
3a9ef6c04d2eb096dfa098c7bec5be556c210ae1
[ "CC0-1.0" ]
5
2020-02-25T22:59:33.000Z
2022-02-26T05:08:33.000Z
scripts/compile.py
1-Byte/ocd-division-ids
3a9ef6c04d2eb096dfa098c7bec5be556c210ae1
[ "CC0-1.0" ]
1
2019-07-26T15:41:03.000Z
2019-07-26T15:41:03.000Z
#!/usr/bin/env python3 import re import os import sys import csv import glob import fnmatch import argparse import datetime import warnings import collections # Explicitly disallow python 2.x if sys.version_info < (3, 0): sys.stdout.write("Python 2.x not supported.\n") sys.exit(1) def validate_id(id_): ...
32.188841
109
0.558667
d169a3d6fceb6bad181687a6baf4f7f7cf5e7a22
835
py
Python
tests/test_utils.py
smaeda-ks/twitter-python-ads-sdk
cb2e54cd9349c43bb8902d3f95284c1ad1514b6d
[ "MIT" ]
162
2015-12-09T07:34:26.000Z
2022-03-31T05:21:48.000Z
tests/test_utils.py
smaeda-ks/twitter-python-ads-sdk
cb2e54cd9349c43bb8902d3f95284c1ad1514b6d
[ "MIT" ]
184
2015-12-09T09:48:08.000Z
2022-01-27T22:55:11.000Z
tests/test_utils.py
smaeda-ks/twitter-python-ads-sdk
cb2e54cd9349c43bb8902d3f95284c1ad1514b6d
[ "MIT" ]
118
2015-12-10T02:07:56.000Z
2022-03-23T02:35:08.000Z
import datetime from twitter_ads.enum import GRANULARITY from twitter_ads.utils import to_time, Deprecated t = datetime.datetime(2006, 3, 21, 0, 0, 0) def test_to_time_based_on_granularity(): for g in [None, GRANULARITY.HOUR, GRANULARITY.TOTAL]: assert to_time(t, g) == '2006-03-21T00:00:00Z' assert...
26.935484
63
0.668263
5877c31ee63fef77c68de0f44305ff7d3f993f6a
166
py
Python
vizdoomgymmaze/envs/vizdoommazefour4.py
WangChen100/vizdoomgymmaze
51f750405a762e3f19193c09ef34380786c11efe
[ "MIT" ]
6
2019-08-22T09:19:24.000Z
2020-11-21T03:29:39.000Z
vizdoomgymmaze/envs/vizdoommazefour4.py
BillOmg/vizdoomgymmaze
51f750405a762e3f19193c09ef34380786c11efe
[ "MIT" ]
2
2019-08-10T06:50:02.000Z
2021-11-30T13:57:41.000Z
vizdoomgymmaze/envs/vizdoommazefour4.py
BillOmg/vizdoomgymmaze
51f750405a762e3f19193c09ef34380786c11efe
[ "MIT" ]
6
2019-08-23T13:17:05.000Z
2021-06-18T20:24:53.000Z
from vizdoomgymmaze.envs.vizdoomenv import VizdoomEnv class VizdoomMazeFour4(VizdoomEnv): def __init__(self): super(VizdoomMazeFour4, self).__init__(77)
27.666667
53
0.777108
1776cae3a11bc4eb102f77581ef65f5ea089b2ff
3,600
py
Python
pipenv/vendor/cerberus/tests/test_schema.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
3
2020-06-04T05:22:33.000Z
2020-09-23T19:44:02.000Z
pipenv/vendor/cerberus/tests/test_schema.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
9
2019-12-05T00:49:12.000Z
2021-09-08T01:31:25.000Z
pipenv/vendor/cerberus/tests/test_schema.py
erikkemperman/pipenv
8707fe52571422ff5aa2905a2063fdf5ce14840b
[ "MIT" ]
1
2020-08-27T16:22:27.000Z
2020-08-27T16:22:27.000Z
# -*- coding: utf-8 -*- import pytest from cerberus import Validator, errors, SchemaError from cerberus.schema import UnvalidatedSchema from cerberus.tests import assert_schema_error def test_empty_schema(): validator = Validator() with pytest.raises(SchemaError, message=errors.SCHEMA_ERROR_MISSING): ...
32.142857
76
0.631667
e1ea10247f1735263b4b934b42758c7db22bb036
10,396
py
Python
sympy/matrices/expressions/blockmatrix.py
tesseralis/sympy
0c2f7e06b1a43d25ba93bac65e93f8d5f323be7a
[ "BSD-3-Clause" ]
1
2020-11-17T07:35:20.000Z
2020-11-17T07:35:20.000Z
sympy/matrices/expressions/blockmatrix.py
tesseralis/sympy
0c2f7e06b1a43d25ba93bac65e93f8d5f323be7a
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/expressions/blockmatrix.py
tesseralis/sympy
0c2f7e06b1a43d25ba93bac65e93f8d5f323be7a
[ "BSD-3-Clause" ]
null
null
null
from matexpr import MatrixExpr, ZeroMatrix, Identity from matmul import MatMul from matadd import MatAdd from transpose import Transpose from inverse import Inverse from sympy.matrices import Matrix, eye from sympy import Tuple, Basic, sympify, FiniteSet class BlockMatrix(MatrixExpr): """A BlockMatrix is a Matrix ...
33.214058
106
0.575317
f4fb28f05b4de7c22dcbb53662346237e262d1dc
24,363
py
Python
trackeval/datasets/mot_challenge_2d_box.py
thanhtvt/TrackEval
b0942193e64d1896f0a2536ef9b733a8dd29acf0
[ "MIT" ]
null
null
null
trackeval/datasets/mot_challenge_2d_box.py
thanhtvt/TrackEval
b0942193e64d1896f0a2536ef9b733a8dd29acf0
[ "MIT" ]
1
2021-11-24T19:06:16.000Z
2021-11-24T19:06:16.000Z
trackeval/datasets/mot_challenge_2d_box.py
thanhtvt/TrackEval
b0942193e64d1896f0a2536ef9b733a8dd29acf0
[ "MIT" ]
null
null
null
import os import csv import configparser import numpy as np from scipy.optimize import linear_sum_assignment from ._base_dataset import _BaseDataset from .. import utils from .. import _timing from ..utils import TrackEvalException class MotChallenge2DBox(_BaseDataset): """Dataset class for MOT Challenge 2D bound...
54.748315
120
0.587694
a938d4bc5dd6e0c18fcb4877c371fa8b934ba1d3
9,751
py
Python
elephas/optimizers.py
nlslzf/Dist_Mask_RCNN_On_Spark_with_Elephas
4325a51744fc89a962ea7a8fd0d89cacb9a9fbef
[ "MIT" ]
1
2019-04-16T09:31:04.000Z
2019-04-16T09:31:04.000Z
elephas/optimizers.py
jovigb/elephas
26432c0dd75fe2fda11e739700344b6e7728ec34
[ "MIT" ]
1
2019-04-03T01:56:57.000Z
2019-04-03T01:56:57.000Z
elephas/optimizers.py
nlslzf/Dist_Mask_RCNN_On_Spark_with_Elephas
4325a51744fc89a962ea7a8fd0d89cacb9a9fbef
[ "MIT" ]
null
null
null
""" This is essentially a copy of keras' optimizers.py. We have to modify the base class 'Optimizer' here, as the gradients will be provided by the Spark workers, not by one of the backends (Theano or Tensorflow). """ from __future__ import absolute_import from keras import backend as K from keras.optimizers import TFO...
32.721477
82
0.589068
8a2a1f8a844b444d7e53d968a9cec14ee47ac5f1
1,676
py
Python
S4/S4 Library/simulation/cas/cas_stories_answer.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/cas/cas_stories_answer.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/cas/cas_stories_answer.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
import services import sims4 from aspirations.aspiration_tuning import AspirationTrack from cas.cas_stories_trait_chooser import CasStoriesTraitChooser from sims4.localization import TunableLocalizedStringFactory from sims4.tuning.instances import HashedTunedInstanceMetaclass from sims4.tuning.tunable import HasTunable...
128.923077
1,014
0.804893
c19ae31736cb87e7abb2aa23212a7155fb34cea6
2,241
py
Python
files/plugins/check_ro_filesystem.py
lampkicking/charm-nrpe
29d1cd8701d696f8b2472ea43f7a8639e0b7049d
[ "MIT" ]
null
null
null
files/plugins/check_ro_filesystem.py
lampkicking/charm-nrpe
29d1cd8701d696f8b2472ea43f7a8639e0b7049d
[ "MIT" ]
null
null
null
files/plugins/check_ro_filesystem.py
lampkicking/charm-nrpe
29d1cd8701d696f8b2472ea43f7a8639e0b7049d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: us-ascii -*- # Copyright (C) 2020 Canonical # All rights reserved # import argparse from nagios_plugin3 import ( CriticalError, UnknownError, try_check, ) EXCLUDE = {"/snap/", "/sys/fs/cgroup"} def check_ro_filesystem(excludes=""): """Loops /proc/mounts looking...
29.486842
100
0.631415
0134c0959364bb1110bc693ab303b875b8b82b17
82
py
Python
lib/rapidsms/skeleton/app/models.py
rapidsms/rapidsms-legacy
43c2ecd41fd1541a2538326edee3d9e816d84529
[ "BSD-3-Clause" ]
null
null
null
lib/rapidsms/skeleton/app/models.py
rapidsms/rapidsms-legacy
43c2ecd41fd1541a2538326edee3d9e816d84529
[ "BSD-3-Clause" ]
null
null
null
lib/rapidsms/skeleton/app/models.py
rapidsms/rapidsms-legacy
43c2ecd41fd1541a2538326edee3d9e816d84529
[ "BSD-3-Clause" ]
1
2019-11-02T19:35:54.000Z
2019-11-02T19:35:54.000Z
from django.db import models # Create your Django models here, if you need them.
20.5
51
0.768293
2044f9b911a9e71f0954ac07ac5695ef7310ca66
2,949
py
Python
espaloma/data/collection.py
jstaker7/espaloma
d80d280acd608dc04c93966afe15cc3cb74f65a8
[ "MIT" ]
null
null
null
espaloma/data/collection.py
jstaker7/espaloma
d80d280acd608dc04c93966afe15cc3cb74f65a8
[ "MIT" ]
null
null
null
espaloma/data/collection.py
jstaker7/espaloma
d80d280acd608dc04c93966afe15cc3cb74f65a8
[ "MIT" ]
null
null
null
# ============================================================================= # IMPORTS # ============================================================================= import espaloma as esp # ============================================================================= # MODULE CLASSES # ==========================...
25.643478
79
0.521533
71d7e0c9afa5d9c399ab564a563b5f57852af5b7
420
py
Python
exercisefunctions/alphabetcounter.py
kasmuni/pythonpractice
e5f4ec3bbb318a252eb041de7fc9279e7f2e99ea
[ "MIT" ]
null
null
null
exercisefunctions/alphabetcounter.py
kasmuni/pythonpractice
e5f4ec3bbb318a252eb041de7fc9279e7f2e99ea
[ "MIT" ]
null
null
null
exercisefunctions/alphabetcounter.py
kasmuni/pythonpractice
e5f4ec3bbb318a252eb041de7fc9279e7f2e99ea
[ "MIT" ]
null
null
null
# Writing a function that brings back count of all alphabets of a given word import collections as col def alphabetcounter_dict(word): wordcount = {} for alphabet in word: if alphabet in wordcount: wordcount[alphabet] += 1 else: wordcount[alphabet] = 1 return wordco...
23.333333
76
0.67619
daddf4397ab7e866d9c13ec09f3d7634f7d31ea9
12,626
py
Python
breports/broker_parser/parsers.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
2
2020-09-08T12:51:56.000Z
2021-08-18T15:27:52.000Z
breports/broker_parser/parsers.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
1
2021-12-13T20:43:35.000Z
2021-12-13T20:43:35.000Z
breports/broker_parser/parsers.py
ghostforpy/bonds-docker
fda77225b85264cb4ba06b15ff63bc807858425a
[ "MIT" ]
null
null
null
from . import tinkoff_xls_scripts from datetime import datetime from decimal import InvalidOperation, Decimal class WrongParser(Exception): pass class FileNotSupported(Exception): pass class TinkoffParserXLS: """ class for parsing broker reports XLS-format""" SECTIONS = tinkoff_xls_scripts.SECTION...
38.849231
95
0.57247
aed5cdd1349200ef379551dd44f87b97b135b4ef
363
py
Python
codes/3/5.py
BigShuang/python-introductory-exercises
9b8d391ce5fcbd12a654aba1c62a746ddb52a42d
[ "MIT" ]
null
null
null
codes/3/5.py
BigShuang/python-introductory-exercises
9b8d391ce5fcbd12a654aba1c62a746ddb52a42d
[ "MIT" ]
null
null
null
codes/3/5.py
BigShuang/python-introductory-exercises
9b8d391ce5fcbd12a654aba1c62a746ddb52a42d
[ "MIT" ]
null
null
null
def print_histogram(lst): max_h = lst[0] for item in lst: if item > max_h: max_h = item for ri in range(max_h, 0, -1): for item in lst: if item >= ri: print("#", end="") else: print(" ", end="") print() lst = [1,...
19.105263
34
0.426997
4382dbb6aea22de798a9d72fcce59cab6949dbd9
1,590
py
Python
CAIL2020/sfzyy/rulereason/gbttrain.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
71
2020-07-16T01:49:27.000Z
2022-03-27T16:55:00.000Z
CAIL2020/sfzyzc/sfzyy/rulereason/gbttrain.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
11
2020-09-18T14:26:25.000Z
2022-02-09T23:49:33.000Z
CAIL2020/sfzyzc/sfzyy/rulereason/gbttrain.py
ShenDezhou/CAIL
c4cfa98ab4ecedbce34a7a5a186830486047540c
[ "Apache-2.0" ]
16
2020-07-15T07:24:30.000Z
2022-03-19T05:41:11.000Z
import json import os import numpy import thulac import psutil from sklearn.feature_extraction.text import TfidfVectorizer as TFIDF import joblib from sklearn.ensemble import GradientBoostingClassifier import re #training score : 0.673 def cut_text(alltext): count = 0 cut = thulac.thulac(seg_only=True) t...
23.382353
98
0.611321
dec66016cf22149573f45d531e0e5667390fb3af
25,382
py
Python
venv/lib/python3.7/site-packages/google/cloud/language_v1beta2/gapic/language_service_client.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
2
2020-06-01T18:54:41.000Z
2021-01-08T04:06:41.000Z
venv/lib/python3.7/site-packages/google/cloud/language_v1beta2/gapic/language_service_client.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
13
2020-06-05T20:43:05.000Z
2022-03-02T07:06:10.000Z
venv/lib/python3.7/site-packages/google/cloud/language_v1beta2/gapic/language_service_client.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
1
2020-06-01T18:54:44.000Z
2020-06-01T18:54:44.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 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...
43.611684
150
0.625719
68a98519fc6abd6fe18697992e56c83f2cf46b95
12,896
py
Python
src/tero/dparselog.py
MorganShorter/drop
a6aef148fd6a99b6380535882fd8bd20a844468f
[ "BSD-2-Clause" ]
null
null
null
src/tero/dparselog.py
MorganShorter/drop
a6aef148fd6a99b6380535882fd8bd20a844468f
[ "BSD-2-Clause" ]
null
null
null
src/tero/dparselog.py
MorganShorter/drop
a6aef148fd6a99b6380535882fd8bd20a844468f
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2020, DjaoDjin inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
35.526171
121
0.582584
f3a38b155c1b80980d49e50ab9af74e796299c3d
681
py
Python
python/day_9a.py
anishLearnsToCode/hackerrank-10-days-of-statistics
a15473149b0092a504a2c2ce440a8e850eeb5a1b
[ "MIT" ]
3
2021-01-22T18:30:04.000Z
2021-11-28T15:42:57.000Z
python/day_9a.py
anishLearnsToCode/hackerrank-10-days-of-statistics
a15473149b0092a504a2c2ce440a8e850eeb5a1b
[ "MIT" ]
null
null
null
python/day_9a.py
anishLearnsToCode/hackerrank-10-days-of-statistics
a15473149b0092a504a2c2ce440a8e850eeb5a1b
[ "MIT" ]
1
2021-09-21T01:41:15.000Z
2021-09-21T01:41:15.000Z
import numpy as np m, n = [int(i) for i in input().strip().split(' ')] X = [] Y = [] for i in range(n): data = input().strip().split(' ') X.append(data[:m]) Y.append(data[m:]) q = int(input().strip()) X_new = [] for x in range(q): X_new.append(input().strip().split(' ')) X = np.array(X, float) Y = ...
18.405405
68
0.590308
ed87a4193a9a6758d2b089ba49ce63c1e13c0353
1,152
py
Python
lsftp/ftpconnection.py
axevalley/lsftp
73937ba9e9c29dc0ed905fae9b3bacac747bd649
[ "MIT" ]
null
null
null
lsftp/ftpconnection.py
axevalley/lsftp
73937ba9e9c29dc0ed905fae9b3bacac747bd649
[ "MIT" ]
null
null
null
lsftp/ftpconnection.py
axevalley/lsftp
73937ba9e9c29dc0ed905fae9b3bacac747bd649
[ "MIT" ]
null
null
null
import ftplib import os class FTP_Connection: def __init__(self, host='', username='anonymous', password='', folder='', port=21): self.host = host self.username = username self.port = port self.ftp = ftplib.FTP() ...
26.181818
68
0.545139
afb6fbd716d8cb5da68d2f29367a4ac0c7354911
4,136
py
Python
tests/test_model_definition/test_dates_with_timezone.py
MojixCoder/ormar
801e22e58f70c522f4779a8c285fce61054bdfca
[ "MIT" ]
null
null
null
tests/test_model_definition/test_dates_with_timezone.py
MojixCoder/ormar
801e22e58f70c522f4779a8c285fce61054bdfca
[ "MIT" ]
1
2020-08-09T10:28:07.000Z
2020-08-09T10:28:07.000Z
tests/test_model_definition/test_dates_with_timezone.py
MojixCoder/ormar
801e22e58f70c522f4779a8c285fce61054bdfca
[ "MIT" ]
1
2020-08-09T10:26:56.000Z
2020-08-09T10:26:56.000Z
from datetime import timezone, timedelta, datetime, date, time import databases import pytest import sqlalchemy import ormar from tests.settings import DATABASE_URL database = databases.Database(DATABASE_URL, force_rollback=True) metadata = sqlalchemy.MetaData() class DateFieldsModel(ormar.Model): class Meta:...
28.722222
86
0.683027
967b3fd83a4511cb501139b5d9065b47f53d35b0
2,607
py
Python
ryoken/tokenizer.py
drakantas/Ryoken
fb88049c62556d929525509f5e9c192ae2fc6f3b
[ "MIT" ]
null
null
null
ryoken/tokenizer.py
drakantas/Ryoken
fb88049c62556d929525509f5e9c192ae2fc6f3b
[ "MIT" ]
null
null
null
ryoken/tokenizer.py
drakantas/Ryoken
fb88049c62556d929525509f5e9c192ae2fc6f3b
[ "MIT" ]
null
null
null
from typing import Tuple, Any, Union from nacl.utils import random from nacl.secret import SecretBox from nacl.exceptions import CryptoError from .b64 import B64 from .exceptions import CompromisedToken, UnexpectedDataValue class Tokenizer: def __init__(self, nonce_size: int = SecretBox.NONCE_SIZE, secret_size:...
35.22973
115
0.661297
06b3270916055204b59a30283708b64fe600f3ba
141,624
py
Python
salt/state.py
belvedere-trading/salt
0ab0aa4d79237e9309dda6f685b34e55fda06258
[ "Apache-2.0" ]
null
null
null
salt/state.py
belvedere-trading/salt
0ab0aa4d79237e9309dda6f685b34e55fda06258
[ "Apache-2.0" ]
null
null
null
salt/state.py
belvedere-trading/salt
0ab0aa4d79237e9309dda6f685b34e55fda06258
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The module used to execute states in salt. A state is unlike a module execution in that instead of just executing a command it ensure that a certain state is present on the system. The data sent to the state calls is as follows: { 'state': '<state module name>', 'fun': '<state fun...
42.364343
134
0.432596
22108727e5a4483d44fbf6045eb7a499ecd57b5d
4,734
py
Python
tern/report/errors.py
brphelps/tern
2b022941af325ed58219b5d90da7bf4241203aeb
[ "BSD-2-Clause" ]
1
2020-03-02T06:34:10.000Z
2020-03-02T06:34:10.000Z
tern/report/errors.py
brphelps/tern
2b022941af325ed58219b5d90da7bf4241203aeb
[ "BSD-2-Clause" ]
1
2021-06-02T01:02:47.000Z
2021-06-02T01:02:47.000Z
tern/report/errors.py
brphelps/tern
2b022941af325ed58219b5d90da7bf4241203aeb
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2017-2019 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause """ Error messages """ unrecognized_base = '''Unable to determine the base OS of the image ''' \ '''{image_name}:{image_tag}\n''' no_packages = '''Unable to recover packages for layer {lay...
55.694118
79
0.686946
157958577c0f6c8f503c337e8d4484ef76631ef1
3,179
py
Python
simanalysis/utils.py
SGenheden/SimAnalysisTools
46ae5cbcfc8e5e27abd8bf552795d05eff5665b3
[ "MIT" ]
null
null
null
simanalysis/utils.py
SGenheden/SimAnalysisTools
46ae5cbcfc8e5e27abd8bf552795d05eff5665b3
[ "MIT" ]
null
null
null
simanalysis/utils.py
SGenheden/SimAnalysisTools
46ae5cbcfc8e5e27abd8bf552795d05eff5665b3
[ "MIT" ]
1
2018-04-26T07:42:03.000Z
2018-04-26T07:42:03.000Z
""" Various utility classes and structures """ from __future__ import division, print_function, absolute_import resanallib = { "me" : { 'VAL' : [('CB','CG1'),('CB','CG2')], 'THR' : [('CB','CG2')], 'ILE' : [('CB','CG2'),('CG1','CD1')], 'LEU' : [('CG','CD1'),('CG','CD2')], 'M...
32.773196
122
0.471846
6229c0ec72685b95f153ecd6d9b446dbae1c85f6
7,965
py
Python
core/app_py/ui/widgets/startNode.py
richardHaw/nagare
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
[ "MIT" ]
null
null
null
core/app_py/ui/widgets/startNode.py
richardHaw/nagare
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
[ "MIT" ]
null
null
null
core/app_py/ui/widgets/startNode.py
richardHaw/nagare
4909c4ba8833e7cf5152e39a7bc58a558aaa2c7c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2021 richardHaw 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, m...
26.114754
92
0.590082
fce4085e2abf1d06dc234737e2523f0a3b2be88a
1,157
py
Python
starthinker/task/dcm_api/schema/language.py
viohman/starthinker
20bd2d7fd1e541eb8a2c9b7159941f667e22e38e
[ "Apache-2.0" ]
null
null
null
starthinker/task/dcm_api/schema/language.py
viohman/starthinker
20bd2d7fd1e541eb8a2c9b7159941f667e22e38e
[ "Apache-2.0" ]
6
2021-03-19T12:00:18.000Z
2022-02-10T09:43:42.000Z
starthinker/task/dcm_api/schema/language.py
viohman/starthinker
20bd2d7fd1e541eb8a2c9b7159941f667e22e38e
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2019 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/...
25.711111
75
0.538462