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
4a08b408c6d3eb38c9a674b04af95f97b9064553
11,764
py
Python
tests/model_meta/tests.py
devops2014/djangosite
db77915c9fd35a203edd8206f702ee4082f04d4a
[ "BSD-3-Clause" ]
null
null
null
tests/model_meta/tests.py
devops2014/djangosite
db77915c9fd35a203edd8206f702ee4082f04d4a
[ "BSD-3-Clause" ]
null
null
null
tests/model_meta/tests.py
devops2014/djangosite
db77915c9fd35a203edd8206f702ee4082f04d4a
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) from django.core.exceptions import FieldDoesNotExist from django.db.models.fields import CharField, Field, related from django.db.models.options import EMPTY_RELATION_TREE, IMMUTABLE_WARNING from djan...
45.072797
121
0.67137
4a08b46f5a82794f44c09a2d8182013e2904af61
16,969
py
Python
oc_chess_club/controller/database_handler.py
PabloLec/oc_chess_club
69a6ce3111afadce73710d314579af6e6f0cbce6
[ "MIT" ]
null
null
null
oc_chess_club/controller/database_handler.py
PabloLec/oc_chess_club
69a6ce3111afadce73710d314579af6e6f0cbce6
[ "MIT" ]
null
null
null
oc_chess_club/controller/database_handler.py
PabloLec/oc_chess_club
69a6ce3111afadce73710d314579af6e6f0cbce6
[ "MIT" ]
1
2021-07-15T06:49:39.000Z
2021-07-15T06:49:39.000Z
from tinydb import Query, table from oc_chess_club.controller.config_loader import _CONFIG from oc_chess_club.models.database import Database from oc_chess_club.models.player import Player from oc_chess_club.models.tournament import Tournament from oc_chess_club.models.round import Round from oc_chess_club.models.matc...
33.469428
119
0.594437
4a08b53a6014d1629d2bc9c02dbadbd22c57771b
416
py
Python
salt/utils/dictupdate.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
salt/utils/dictupdate.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/utils/dictupdate.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
# -*- coding: utf-8 -*- ''' Alex Martelli's soulution for recursive dict update from http://stackoverflow.com/a/3233356 ''' # Import python libs import collections def update(dest, upd): for key, val in upd.iteritems(): if isinstance(val, collections.Mapping): ret = update(dest.get(key, {}), ...
21.894737
56
0.600962
4a08b563e716294524d0f82b2eb86fac99162f88
9,829
py
Python
tests/functional/test_users.py
jasmine95dn/flask_best_worst_scaling
86f35d83ccdee91b1c36ed13b8f92147f5e4014c
[ "MIT" ]
null
null
null
tests/functional/test_users.py
jasmine95dn/flask_best_worst_scaling
86f35d83ccdee91b1c36ed13b8f92147f5e4014c
[ "MIT" ]
null
null
null
tests/functional/test_users.py
jasmine95dn/flask_best_worst_scaling
86f35d83ccdee91b1c36ed13b8f92147f5e4014c
[ "MIT" ]
null
null
null
################################################################# # Functional Tests to validate user registration and user login # ################################################################# def test_user_signup(test_client): """ GIVEN a Flask application WHEN the '/user/signup' page is requested (GET) THE...
36.812734
121
0.706176
4a08b6627f5016c142ec0e19a7bbd43cf3f9698f
8,230
py
Python
src/charm.py
dstathis/loki-operator
de7e732c2ed1c7c72ac6aac89608ab2c9fd6abff
[ "Apache-2.0" ]
null
null
null
src/charm.py
dstathis/loki-operator
de7e732c2ed1c7c72ac6aac89608ab2c9fd6abff
[ "Apache-2.0" ]
null
null
null
src/charm.py
dstathis/loki-operator
de7e732c2ed1c7c72ac6aac89608ab2c9fd6abff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2021 Canonical Ltd. # See LICENSE file for licensing details. # # Learn more at: https://juju.is/docs/sdk """Charm the service. Refer to the following post for a quick-start guide that will help you develop a new k8s charm using the Operator Framework: https://discourse.charmhu...
33.319838
99
0.599149
4a08b6d05bd4c8eba5132e173272e92d72108093
1,277
py
Python
fmcapi/api_objects/object_services/vlantags.py
dadelowo367/fmcapi
cd6ac6d118383a06063ead563ca98c7994238715
[ "BSD-3-Clause" ]
57
2017-06-13T17:06:20.000Z
2021-07-27T08:53:25.000Z
fmcapi/api_objects/object_services/vlantags.py
dadelowo367/fmcapi
cd6ac6d118383a06063ead563ca98c7994238715
[ "BSD-3-Clause" ]
66
2017-11-09T16:02:45.000Z
2021-08-04T20:52:41.000Z
fmcapi/api_objects/object_services/vlantags.py
dadelowo367/fmcapi
cd6ac6d118383a06063ead563ca98c7994238715
[ "BSD-3-Clause" ]
56
2017-06-08T07:53:12.000Z
2021-07-30T13:26:47.000Z
"""VLAN Tags Class.""" from fmcapi.api_objects.apiclasstemplate import APIClassTemplate from fmcapi.api_objects.helper_functions import validate_vlans import logging class VlanTags(APIClassTemplate): """The VlanTags Object in the FMC.""" VALID_JSON_DATA = ["id", "name", "type", "data", "description"] VA...
31.925
87
0.639781
4a08b7d29915275ea4b10a17c0ade34fdcab09b8
9,132
py
Python
src/statistics.py
lampidis/Database-for-Papers
bc58093a882371764b2b98da4a92eac28a1ff2a9
[ "MIT" ]
2
2021-03-13T17:07:07.000Z
2021-03-13T17:07:10.000Z
src/statistics.py
stavrako/ece-data-bases
c89f0a1c5f84623aedcfa0893d84a72b7d2ae909
[ "MIT" ]
null
null
null
src/statistics.py
stavrako/ece-data-bases
c89f0a1c5f84623aedcfa0893d84a72b7d2ae909
[ "MIT" ]
null
null
null
import pymysql from tkinter import * from tkinter.ttk import * import textwrap def main_statistics(): root = Tk() root.title('Statistics') root.geometry("730x450") wrapper = textwrap.TextWrapper(width=50) con = pymysql.connect(host = '150.140.186.221', p...
56.720497
265
0.511936
4a08b81d886436587fcf2dd913f4d4a257b69aea
20,700
py
Python
scvi/model/base/_rnamixin.py
marianogabitto/scvi-tools-1
3bbdb41956f73f24156604c9b17ba034c9e0c19b
[ "BSD-3-Clause" ]
null
null
null
scvi/model/base/_rnamixin.py
marianogabitto/scvi-tools-1
3bbdb41956f73f24156604c9b17ba034c9e0c19b
[ "BSD-3-Clause" ]
null
null
null
scvi/model/base/_rnamixin.py
marianogabitto/scvi-tools-1
3bbdb41956f73f24156604c9b17ba034c9e0c19b
[ "BSD-3-Clause" ]
null
null
null
import inspect import logging import warnings from functools import partial from typing import Dict, Iterable, Optional, Sequence, Union import numpy as np import pandas as pd import torch from anndata import AnnData from scvi import _CONSTANTS from scvi._compat import Literal from scvi._docs import doc_differential_...
36.379613
132
0.584589
4a08b8a78a4ead2facf99bed1b7b198f70841e67
2,894
py
Python
code/python/archive/c0124_segment_records.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
code/python/archive/c0124_segment_records.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
code/python/archive/c0124_segment_records.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
from c0101_retrieve_ref import retrieve_ref from c0102_timestamp import timestamp_source from c0103_trim_record_to_max import trim_record_to_max from c0104_plot_timestamp import plot_timestamp from c0105_find_records import find_records from c0106_record_to_summary import record_to_summary from c0107_decide_inclu...
34.452381
111
0.633034
4a08b8ceda7581c8f024b00710749e4842cd59ab
5,696
py
Python
augmentation/utilities/wandb.py
SaraR-1/model-patching
97b30bad4bb4575a5f3a4cc23fbd333b10a057a8
[ "Apache-2.0" ]
null
null
null
augmentation/utilities/wandb.py
SaraR-1/model-patching
97b30bad4bb4575a5f3a4cc23fbd333b10a057a8
[ "Apache-2.0" ]
null
null
null
augmentation/utilities/wandb.py
SaraR-1/model-patching
97b30bad4bb4575a5f3a4cc23fbd333b10a057a8
[ "Apache-2.0" ]
null
null
null
import wandb import json import time import numpy as np from collections import namedtuple from augmentation.methods.cyclegan.models import mnist_unet_generator, unet_generator from augmentation.models.models import create_keras_classification_model WandbRun = namedtuple('WandbRun', 'path id name history files cfg url...
45.935484
117
0.643785
4a08b94efca5a27dd8e7d13ca2e807e58c052de5
252
py
Python
apps/venv/lib/python2.7/site-packages/MySQLdb/constants/REFRESH.py
gmacchi93/serverInfoParaguay
251275431af72b33ecf302812783e1f6f70e0be8
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/MySQL-python-1.2.5/MySQLdb/constants/REFRESH.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/MySQL-python-1.2.5/MySQLdb/constants/REFRESH.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
"""MySQL REFRESH Constants These constants seem to mostly deal with things internal to the MySQL server. Forget you saw this. """ GRANT = 1 LOG = 2 TABLES = 4 HOSTS = 8 STATUS = 16 THREADS = 32 SLAVE = 64 MASTER = 128 READ_LOCK = 16384 FAST = 32768
14
63
0.714286
4a08b97be4f9a423d371b68e6eb9d25533fffe92
2,124
py
Python
biuropodrozy/outer_api/weather_api.py
adrianboratyn/TripRecommendations
d3e5a10d80c405d5ac22f028be54c8198bc10410
[ "MIT" ]
null
null
null
biuropodrozy/outer_api/weather_api.py
adrianboratyn/TripRecommendations
d3e5a10d80c405d5ac22f028be54c8198bc10410
[ "MIT" ]
null
null
null
biuropodrozy/outer_api/weather_api.py
adrianboratyn/TripRecommendations
d3e5a10d80c405d5ac22f028be54c8198bc10410
[ "MIT" ]
2
2021-06-26T13:03:22.000Z
2021-06-27T10:47:59.000Z
import requests import datetime from tenacity import retry, stop_after_attempt @retry(stop=stop_after_attempt(3)) def fetch(url): """ Pobranie adresu URl Args: url (string): adres url Returns: object: requests """ return requests.get(url) def get_weather(c...
29.09589
95
0.614407
4a08b9faa8508a42498b33f6ce4c0bc07a644043
4,644
py
Python
tools/kconfig/genconfig.py
zhouyangyale/c_cpp_project_framework
e7c5d67ea326f986ffb03a9647c0b632b27dcae3
[ "Apache-2.0" ]
1,448
2018-10-26T13:55:40.000Z
2022-03-31T06:15:16.000Z
tools/kconfig/genconfig.py
zhouyangyale/c_cpp_project_framework
e7c5d67ea326f986ffb03a9647c0b632b27dcae3
[ "Apache-2.0" ]
418
2018-10-26T14:18:26.000Z
2022-03-31T21:40:25.000Z
tools/kconfig/genconfig.py
zhouyangyale/c_cpp_project_framework
e7c5d67ea326f986ffb03a9647c0b632b27dcae3
[ "Apache-2.0" ]
419
2018-11-02T09:53:19.000Z
2022-03-31T15:43:03.000Z
# # @file from https://github.com/Neutree/c_cpp_project_framework # @author neucrack # import argparse import os, sys kconfig_lib_path = sys.path[0]+"/Kconfiglib" sys.path.append(kconfig_lib_path) import kconfiglib from menuconfig import menuconfig def _cmake_contents(kconfig, header): chunks = [header] ad...
32.25
118
0.599268
4a08ba1e24dba7a76099cc786e47977bfa5785f1
3,691
py
Python
beamofparticle/Beam.py
a-sandra/Isyn
4d0f3b7af25cb24b60b51a7f1104a748b0bf5ec4
[ "MIT" ]
null
null
null
beamofparticle/Beam.py
a-sandra/Isyn
4d0f3b7af25cb24b60b51a7f1104a748b0bf5ec4
[ "MIT" ]
null
null
null
beamofparticle/Beam.py
a-sandra/Isyn
4d0f3b7af25cb24b60b51a7f1104a748b0bf5ec4
[ "MIT" ]
null
null
null
import numpy as np import math import random from Particle import Particle import matplotlib.pyplot as plt from physicalconstant.PhysicalConstant import * class Beam(object): """ Class Beam defined by: - Its relativistic gamma - Its rest energy - Kind of distribution - Number of particles """ ...
33.554545
113
0.616364
4a08ba23beded7de4f1edfcd1c3e7d8b659add71
5,995
py
Python
sprockets/logging/__init__.py
dave-shawley/sprockets.logging
37ff1180f91696547a25fed2228c829c1a8fcb17
[ "BSD-3-Clause" ]
1
2016-10-12T05:09:11.000Z
2016-10-12T05:09:11.000Z
sprockets/logging/__init__.py
dave-shawley/sprockets.logging
37ff1180f91696547a25fed2228c829c1a8fcb17
[ "BSD-3-Clause" ]
3
2015-06-17T21:56:34.000Z
2019-12-22T17:05:34.000Z
sprockets/logging/__init__.py
dave-shawley/sprockets.logging
37ff1180f91696547a25fed2228c829c1a8fcb17
[ "BSD-3-Clause" ]
2
2019-11-24T21:17:39.000Z
2020-02-28T18:32:14.000Z
""" Make good log output easier. - :class:`ContextFilter` adds fixed properties to a log record - :class:`JSONRequestFormatter` formats log records as JSON output - :method:`tornado_log_function` is for use as the :class`tornado.web.Application.log_function` in conjunction with :class:`JSONRequestFormatter` to...
33.679775
77
0.603837
4a08bb622ed5621e48a4ee3da3f2504c3d4944f9
1,645
py
Python
nnvm/python/nnvm/attribute.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
1
2021-03-07T15:30:16.000Z
2021-03-07T15:30:16.000Z
nnvm/python/nnvm/attribute.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
null
null
null
nnvm/python/nnvm/attribute.py
mostafaelhoushi/tvm
ae21eddf5f13ffa82d514e8311c87f38bcac559a
[ "Apache-2.0" ]
1
2020-02-09T10:42:31.000Z
2020-02-09T10:42:31.000Z
# coding: utf-8 """Attribute scoping support for symbolic API.""" from __future__ import absolute_import from ._base import string_types class AttrScope(object): """Attribute manager for scoping. User can also inherit this object to change naming behavior. Parameters ---------- kwargs Th...
26.967213
69
0.6
4a08bb6edef185cb608345fa6357538b4dce9bcc
4,172
py
Python
Momentum/Williams_%R.py
alihaskar/Algorithmic-Trading-with-Python
68d269bd4ca5be184dd2e1ffb33cf49d683aa2f7
[ "MIT" ]
2
2022-01-31T22:28:24.000Z
2022-02-07T17:30:50.000Z
Momentum/Williams_%R.py
alihaskar/Algorithmic-Trading-with-Python
68d269bd4ca5be184dd2e1ffb33cf49d683aa2f7
[ "MIT" ]
null
null
null
Momentum/Williams_%R.py
alihaskar/Algorithmic-Trading-with-Python
68d269bd4ca5be184dd2e1ffb33cf49d683aa2f7
[ "MIT" ]
2
2022-01-31T22:28:26.000Z
2022-03-16T17:40:10.000Z
import pandas as pd import numpy as np import requests import matplotlib.pyplot as plt from math import floor from termcolor import colored as cl plt.rcParams['figure.figsize'] = (20,10) plt.style.use('fivethirtyeight') def get_historical_data(symbol, start_date): api_key = 'YOUR API KEY' api_url = f'https://...
33.645161
118
0.611218
4a08bb8bf6ac6d05bdf563dfd45237a6a75fc23b
2,291
py
Python
test.py
alexjercan/normals-estimation
6f18f9248b7c01842f0d4ba57cde5227a893f506
[ "MIT" ]
null
null
null
test.py
alexjercan/normals-estimation
6f18f9248b7c01842f0d4ba57cde5227a893f506
[ "MIT" ]
null
null
null
test.py
alexjercan/normals-estimation
6f18f9248b7c01842f0d4ba57cde5227a893f506
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Developed by Alex Jercan <jercan_alex27@yahoo.com> # # References: # import torch import argparse import albumentations as A import my_albumentations as M from tqdm import tqdm from metrics import MetricFunction, print_single_error from config import parse_test_config, DEVICE, read_yaml_co...
29.371795
115
0.664339
4a08bbf5cc853d10cbd78d4e92e49b9ab847864c
4,800
py
Python
fastai/text/interpret.py
hgulersen/fastai_hg
a176a562037ecfc1e6d650fc0f9db03712d1922a
[ "Apache-2.0" ]
1
2020-11-04T00:52:54.000Z
2020-11-04T00:52:54.000Z
fastai/text/interpret.py
Rajesh16702/fastai-1
67308f15394bd8189eb9b3fbb3db770c6c78039e
[ "Apache-2.0" ]
2
2021-05-20T23:11:34.000Z
2022-02-26T10:23:57.000Z
fastai/text/interpret.py
Rajesh16702/fastai-1
67308f15394bd8189eb9b3fbb3db770c6c78039e
[ "Apache-2.0" ]
1
2022-01-09T00:28:15.000Z
2022-01-09T00:28:15.000Z
from ..torch_core import * from ..basic_data import * from ..basic_train import * from ..train import ClassificationInterpretation import matplotlib.cm as cm __all__ = ['TextClassificationInterpretation'] def value2rgba(x:float, cmap:Callable=cm.RdYlGn, alpha_mult:float=1.0)->Tuple: "Convert a value `x` from 0 to...
48
140
0.654583
4a08bca72ea94a00abde9357e1e311761e41399f
11,765
py
Python
bokeh/core/enums.py
heistermann/bokeh
f044bdb79730a1e7581eda609a7ee81993597bd8
[ "BSD-3-Clause" ]
1
2018-11-14T19:08:18.000Z
2018-11-14T19:08:18.000Z
bokeh/core/enums.py
heistermann/bokeh
f044bdb79730a1e7581eda609a7ee81993597bd8
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
bokeh/core/enums.py
heistermann/bokeh
f044bdb79730a1e7581eda609a7ee81993597bd8
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENSE.txt, distributed with this software. #---------------------------------------------------...
32.321429
97
0.60697
4a08bdf72c8897df00f8d86ef2a92b2329c1e89d
1,997
py
Python
examples/cocodetection/coco2ffrecord.py
HFAiLab/ffrecord
e916dc715ffa38a304a673ade7c5aa1efff5936d
[ "MIT" ]
47
2021-09-07T08:34:03.000Z
2022-03-26T06:06:38.000Z
examples/cocodetection/coco2ffrecord.py
HFAiLab/ffrecord
e916dc715ffa38a304a673ade7c5aa1efff5936d
[ "MIT" ]
2
2021-12-10T13:40:24.000Z
2022-03-31T12:02:30.000Z
examples/cocodetection/coco2ffrecord.py
HFAiLab/ffrecord
e916dc715ffa38a304a673ade7c5aa1efff5936d
[ "MIT" ]
4
2021-09-10T05:21:21.000Z
2022-03-17T13:29:24.000Z
import sys import os import pickle from typing import Union from tqdm import tqdm, trange from PIL import Image import torch import torchvision.datasets as datasets from ffrecord import FileWriter class DumpDataset(datasets.coco.CocoDetection): def __getitem__(self, index): coco = self.coco img_...
24.654321
78
0.657486
4a08be58b2e8362a04510c278ac09252d3f40ff4
1,412
py
Python
aws/sdk/test-services.py
matago/smithy-rs
75056c6a780529692e1b44e18402352205f9e1f6
[ "Apache-2.0" ]
125
2021-05-07T20:23:39.000Z
2022-03-29T07:18:48.000Z
aws/sdk/test-services.py
matago/smithy-rs
75056c6a780529692e1b44e18402352205f9e1f6
[ "Apache-2.0" ]
631
2021-05-07T20:20:12.000Z
2022-03-31T23:54:05.000Z
aws/sdk/test-services.py
matago/smithy-rs
75056c6a780529692e1b44e18402352205f9e1f6
[ "Apache-2.0" ]
69
2021-05-08T00:04:46.000Z
2022-03-23T05:04:44.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0. """ Generate a list of services which have non-trivial unit tests This script generates output like `-p aws-sdk-s3 -p aws-sdk-dynamodb`. It is intended to be used in conjunction with `cargo test` to compile a...
30.042553
116
0.672805
4a08bf08d8f150a2dbec213fb2c9c459dac01a15
1,513
py
Python
vendor-local/lib/python/unidecode/__init__.py
glogiotatidis/remo
1c4f55c63c8d03cbee776b60af042b8068d9f297
[ "BSD-3-Clause" ]
null
null
null
vendor-local/lib/python/unidecode/__init__.py
glogiotatidis/remo
1c4f55c63c8d03cbee776b60af042b8068d9f297
[ "BSD-3-Clause" ]
null
null
null
vendor-local/lib/python/unidecode/__init__.py
glogiotatidis/remo
1c4f55c63c8d03cbee776b60af042b8068d9f297
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Transliterate Unicode text into plain 7-bit ASCII. Example usage: >>> from unidecode import unidecode: >>> unidecode(u"\u5317\u4EB0") "Bei Jing " The transliteration uses a straightforward map, and doesn't have alternatives for the same character based on language, position, or anything els...
27.509091
79
0.601454
4a08bf6eec05fc8b850b9ac1580aa4027524b035
825
py
Python
chatbot/py_commands/reboot.py
WLAN-Pi/wlanpi-chat-bot
c0dff0779eb873bd074fd0a579798252e4018ee2
[ "MIT" ]
1
2021-12-05T06:25:17.000Z
2021-12-05T06:25:17.000Z
chatbot/py_commands/reboot.py
WLAN-Pi/wlanpi-chat-bot
c0dff0779eb873bd074fd0a579798252e4018ee2
[ "MIT" ]
6
2021-12-07T01:18:57.000Z
2022-02-18T05:05:24.000Z
chatbot/py_commands/reboot.py
WLAN-Pi/wlanpi-chat-bot
c0dff0779eb873bd074fd0a579798252e4018ee2
[ "MIT" ]
1
2021-07-17T20:09:47.000Z
2021-07-17T20:09:47.000Z
import os import chatbot.utils.emojis from .command import Command class Reboot(Command): def __init__(self, telegram_object, conf_obj): super().__init__(telegram_object, conf_obj) self.command_name = "reboot" def run(self, args_list): os.system("(sync; sleep 2; systemctl reboot) ...
23.571429
88
0.62303
4a08c0081827430908a13b5f3bf2a461c4b50ecc
2,977
py
Python
server/database/migration/test/navigation-building-id/compare.py
Paschalis/anyplace
e752f1e865d2a044eee7bb817dceff034c243976
[ "MIT" ]
684
2015-08-28T11:03:41.000Z
2022-03-15T03:56:10.000Z
server/database/migration/test/navigation-building-id/compare.py
Paschalis/anyplace
e752f1e865d2a044eee7bb817dceff034c243976
[ "MIT" ]
355
2015-11-03T09:30:16.000Z
2022-03-23T11:02:05.000Z
server/database/migration/test/navigation-building-id/compare.py
Paschalis/anyplace
e752f1e865d2a044eee7bb817dceff034c243976
[ "MIT" ]
345
2015-09-19T03:01:29.000Z
2022-03-23T11:54:43.000Z
import json import sys def defineKey(key): if key == "buildings": return 'buid' if key == "floorplans": return 'fuid' def compareJsonArray(cObj, mObj, uKey, keys): if len(cObj) != len(mObj): print(uKey, "= couch:", len(cObj), "mongo:", len(mObj)) return False for i in...
36.753086
117
0.574068
4a08c0700c723742a62211f3ddfbae4a78560be2
56,875
py
Python
CodonSubstitution/build/biopython/Bio/GenBank/__init__.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
CodonSubstitution/build/biopython/Bio/GenBank/__init__.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
CodonSubstitution/build/biopython/Bio/GenBank/__init__.py
JackCurragh/DARNED
13963d129bd8f69fb1106ad1f47394b3211a939c
[ "MIT" ]
null
null
null
# Copyright 2000 by Jeffrey Chang, Brad Chapman. All rights reserved. # Copyright 2006-2011 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Code to work with ...
38.043478
138
0.617284
4a08c18d0d3a6b787265bdcf1eeeefbeb2288c07
1,015
py
Python
portals/wwits/groups/general/code/schemas.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/general/code/schemas.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/general/code/schemas.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
from marshmallow import fields, post_load from portals.wwits.apis.rest import BaseSchemaExcludeFields as Schema from .models import CodesParmModel, CodeModel, GetCodesModel class ParmSchema(Schema): CodeTable = fields.Str() UserID = fields.Str() Version = fields.Str() Env = fields.Str() Source = f...
26.025641
69
0.682759
4a08c2278fa7bdea508969e26c5d5a859670ea6e
1,105
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health.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/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "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 ...
36.833333
113
0.655204
4a08c28b1f7a8d3bf9513ffdc5ea376906011d69
2,753
py
Python
Layout/plotGenerator.py
iamwendellbalagot/sieve-machine
8ed8dc73b97575263e2e013334602e8db4930e17
[ "MIT" ]
null
null
null
Layout/plotGenerator.py
iamwendellbalagot/sieve-machine
8ed8dc73b97575263e2e013334602e8db4930e17
[ "MIT" ]
null
null
null
Layout/plotGenerator.py
iamwendellbalagot/sieve-machine
8ed8dc73b97575263e2e013334602e8db4930e17
[ "MIT" ]
null
null
null
import plotly.express as px import plotly.graph_objects as go import pandas as pd import numpy as np import sys sys.path.insert(1, '/path/to/applicaiton/getdata') import getdata.getdata as getdata def get_scatter(df=None): # if df is None: # # x = [0, 50, 100, 200, 300, 400, 500, 600] # # y = [0, 1.5, 2, 4, 7.5...
28.381443
56
0.469306
4a08c32162acd4727f6a920d6f07ae443f9a189e
4,544
py
Python
rpc/models.py
Infixz/mime_custodian
3eb871180eb3964b829c6c6babd2a6d021fea054
[ "MIT" ]
null
null
null
rpc/models.py
Infixz/mime_custodian
3eb871180eb3964b829c6c6babd2a6d021fea054
[ "MIT" ]
null
null
null
rpc/models.py
Infixz/mime_custodian
3eb871180eb3964b829c6c6babd2a6d021fea054
[ "MIT" ]
null
null
null
# coding=utf-8 import os import uuid import magic import urllib from datetime import datetime import cropresize2 import short_url from PIL import Image from flask import abort, request from werkzeug.utils import cached_property from mimes import IMAGE_MIMES, AUDIO_MIMES, VIDEO_MIMES from utils import get_file_md5, ge...
29.128205
79
0.645687
4a08c3eed19c351057afdc7b143d2495f0bc4d02
3,987
py
Python
models.py
phamdt/mobile-scavenger-hunt
9b553406884df97e596c21f00f806810a9e27a16
[ "Apache-2.0" ]
1
2018-11-04T19:56:29.000Z
2018-11-04T19:56:29.000Z
models.py
phamdt/mobile-scavenger-hunt
9b553406884df97e596c21f00f806810a9e27a16
[ "Apache-2.0" ]
null
null
null
models.py
phamdt/mobile-scavenger-hunt
9b553406884df97e596c21f00f806810a9e27a16
[ "Apache-2.0" ]
1
2016-08-17T22:56:59.000Z
2016-08-17T22:56:59.000Z
import os from hunt import db import sys from flask.ext.login import UserMixin class Admin(db.Model): __tablename__ = 'admins' admin_id = db.Column(db.Integer, primary_key=True) email = db.Column(db.String(320), unique=True) pw_hash = db.Column(db.String(64)) hunts = db.relationship('Hunt', backr...
32.414634
90
0.654628
4a08c450f60def57a7781ea1e6689b4065f221b2
300
py
Python
Crawling/2_python urllib/save_csv_join.py
twer4774/TIL
79fcaa8464c3f1833ce6bcf998213a9a4bbfa559
[ "MIT" ]
1
2018-09-11T10:34:15.000Z
2018-09-11T10:34:15.000Z
Crawling/2_python urllib/save_csv_join.py
twer4774/TIL
79fcaa8464c3f1833ce6bcf998213a9a4bbfa559
[ "MIT" ]
null
null
null
Crawling/2_python urllib/save_csv_join.py
twer4774/TIL
79fcaa8464c3f1833ce6bcf998213a9a4bbfa559
[ "MIT" ]
null
null
null
#-*-encoding:UTF-8-*- print('rank,city,population') #join()메서드의 매개변수로 저달한 list는 str이어야 함 print(','.join(['1', '상하이', '24150000'])) print(','.join(['2', '카라치', '23500000'])) print(','.join(['3', '베이징', '21515500'])) print(','.join(['4', '텐진', '124596990'])) print(','.join(['5', '이스탄불', '11102223']))
33.333333
42
0.563333
4a08c45ccd653e69b0428f64a80cf017f3b8059f
13,424
py
Python
profiles/serializers.py
openprocurement/market.prozorro.ua
ae19ca5558e16fc6d193f29d21940075cadd8ebc
[ "Apache-2.0" ]
3
2019-12-04T15:55:45.000Z
2020-01-22T14:15:56.000Z
profiles/serializers.py
openprocurement/market.prozorro.ua
ae19ca5558e16fc6d193f29d21940075cadd8ebc
[ "Apache-2.0" ]
1
2020-02-14T10:22:57.000Z
2020-02-14T10:22:57.000Z
profiles/serializers.py
openprocurement/market.prozorro.ua
ae19ca5558e16fc6d193f29d21940075cadd8ebc
[ "Apache-2.0" ]
2
2019-11-29T14:16:22.000Z
2020-02-14T10:27:39.000Z
from operator import itemgetter from rest_framework import serializers from rest_framework.exceptions import ValidationError from criteria.models import Criteria from profiles.models import ( CURRENCY_CHOICES, Profile, ProfileCriteria, Requirement, RequirementGroup ) from profiles.mixins import ValidateRequiredFi...
37.392758
106
0.614198
4a08c4909982cb2c5453640de01199d4474d2269
4,771
py
Python
Modules/HealerFriend.py
hugoj-goncalves/TibiaAuto12
63b97cd4aeedd87cda11efa2a78c9e59e2a088d7
[ "MIT" ]
2
2021-09-16T15:01:46.000Z
2021-09-22T20:50:32.000Z
Modules/HealerFriend.py
hugoj-goncalves/TibiaAuto12
63b97cd4aeedd87cda11efa2a78c9e59e2a088d7
[ "MIT" ]
null
null
null
Modules/HealerFriend.py
hugoj-goncalves/TibiaAuto12
63b97cd4aeedd87cda11efa2a78c9e59e2a088d7
[ "MIT" ]
null
null
null
from Conf.Hotkeys import Hotkey from Core.GUI import * from Core.GUISetter import GUISetter from Core.ThreadManager import AllThreads, ThreadManager from Core.HookWindow import LocateCenterImage, SaveImage from Engine.ScanStages import ScanStages GUIChanges = [] EnabledHealerFriend = False class HealerFriend: ...
41.486957
147
0.588975
4a08c520de544c53117bd8eaa23e5b4ac46dad47
360
py
Python
pingo/examples/blink_firmata_auto.py
rbanffy/pingo
b448d5eecae17b82aafd708c2594dae6d4194d84
[ "MIT" ]
116
2015-05-06T17:49:22.000Z
2021-11-16T12:59:35.000Z
pingo/examples/blink_firmata_auto.py
pingo-io/pingo-py
5d7081f99ff13973404dc6361560f30ce8f7009c
[ "MIT" ]
49
2015-05-08T23:18:05.000Z
2017-07-12T17:11:48.000Z
pingo/examples/blink_firmata_auto.py
rbanffy/pingo
b448d5eecae17b82aafd708c2594dae6d4194d84
[ "MIT" ]
47
2015-05-04T07:42:04.000Z
2021-08-04T20:49:54.000Z
"""Blink an LED on a remote Arduino This script assumes: - this computer is connected to an Arduino - the Arduino is running the Examples->Firmata->StandardFirmata sketch """ import time import pingo ard = pingo.arduino.get_arduino() print('Connected to: %s' % ard) led = ard.pins[13] led.mode = pingo.OUT while Tr...
17.142857
70
0.713889
4a08c55ee0cbc7b7843a5cdfab5475c2ed365b5a
723
py
Python
backend/feedback/migrations/0001_initial.py
crowdbotics-apps/nccaa-rfp-33947
fe376b10f61be3c50c18dfb5ed3e169f6d0a6721
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/feedback/migrations/0001_initial.py
crowdbotics-apps/nccaa-rfp-33947
fe376b10f61be3c50c18dfb5ed3e169f6d0a6721
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/feedback/migrations/0001_initial.py
crowdbotics-apps/nccaa-rfp-33947
fe376b10f61be3c50c18dfb5ed3e169f6d0a6721
[ "FTL", "AML", "RSA-MD" ]
null
null
null
# Generated by Django 2.2.24 on 2021-12-21 10:18 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='FeedBack', fields=[ ('key', mo...
27.807692
126
0.582296
4a08c5c77a389792b8ab9f3139a9fba784f41d0d
887
py
Python
scripts/extract_content_types.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
null
null
null
scripts/extract_content_types.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
1
2015-09-23T16:30:34.000Z
2015-09-23T16:30:34.000Z
scripts/extract_content_types.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
1
2020-03-25T09:41:03.000Z
2020-03-25T09:41:03.000Z
import os import glob import json from dateutil.parser import * from datetime import datetime content_types = {} for f in glob.glob('/Users/sparky/Documents/solr_responses/solr_20150922_docs/*.json'): with open(f, 'r') as g: data = json.loads(g.read()) headers = data.get('response_headers', []) if...
30.586207
87
0.633596
4a08c72afc6ba24273d8bf26266d49526ce4f482
309
py
Python
app/core/migrations/0005_auto_20200607_1806.py
PrathameshChari04/User-Management-API
42bd91cdd6fc95ac3e68e455dc950320fc98b8da
[ "MIT" ]
null
null
null
app/core/migrations/0005_auto_20200607_1806.py
PrathameshChari04/User-Management-API
42bd91cdd6fc95ac3e68e455dc950320fc98b8da
[ "MIT" ]
null
null
null
app/core/migrations/0005_auto_20200607_1806.py
PrathameshChari04/User-Management-API
42bd91cdd6fc95ac3e68e455dc950320fc98b8da
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-06-07 12:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0004_job'), ] operations = [ migrations.RenameModel( old_name='Job', new_name='Services', ), ]
17.166667
45
0.569579
4a08c870f6c691d67ae16e828058443d92368d41
1,389
py
Python
nova/network/constants.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,874
2015-01-04T05:18:34.000Z
2022-03-31T03:30:28.000Z
nova/network/constants.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
40
2015-04-13T02:32:42.000Z
2022-02-16T02:28:06.000Z
nova/network/constants.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,996
2015-01-04T15:11:51.000Z
2022-03-31T11:03:13.000Z
# Copyright 2013 UnitedStack 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...
38.583333
78
0.767459
4a08c980ada6092fe3af64ea7b91d4aeb77da7b7
270
py
Python
packages/mcni/tests/mcni/components/create-storage-for-NeutronFromStorage-testcase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mcni/tests/mcni/components/create-storage-for-NeutronFromStorage-testcase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mcni/tests/mcni/components/create-storage-for-NeutronFromStorage-testcase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python import numpy arr = numpy.arange(1000.) arr.shape = -1, 10 from mcni.neutron_storage import neutrons_from_npyarr, storage neutrons = neutrons_from_npyarr(arr) s = storage('neutron-storage-for-NeutronFromStorage_TestCase', 'w') s.write(neutrons)
20.769231
67
0.774074
4a08c98b7147ea44dde06fcab372927c9ead9624
1,989
py
Python
simulate.py
pekrau/queue_simulation
8a918316761b486842f96a063fea0aba898666b6
[ "MIT" ]
null
null
null
simulate.py
pekrau/queue_simulation
8a918316761b486842f96a063fea0aba898666b6
[ "MIT" ]
null
null
null
simulate.py
pekrau/queue_simulation
8a918316761b486842f96a063fea0aba898666b6
[ "MIT" ]
null
null
null
"""Discrete event simulation of queue of tasks for N number of machines. Simulate and output statistics. """ from __future__ import unicode_literals, print_function, absolute_import import csv import base import statistics N_MACHINES = 1 N_TASKS = 1000 DURATION = 5.0 STEP = 0.025 N = 20 fraction_delayed_writer = ...
39
83
0.653092
4a08c98e9891e4bf47779cfa1201311bb86a9cc9
1,451
py
Python
bratreader/sentence.py
Gusyatnikova/argument-mining-rus
dc81159fce12093289a65a5e8e59890002ff74e5
[ "BSD-3-Clause" ]
null
null
null
bratreader/sentence.py
Gusyatnikova/argument-mining-rus
dc81159fce12093289a65a5e8e59890002ff74e5
[ "BSD-3-Clause" ]
null
null
null
bratreader/sentence.py
Gusyatnikova/argument-mining-rus
dc81159fce12093289a65a5e8e59890002ff74e5
[ "BSD-3-Clause" ]
null
null
null
from bratreader.word import Word class Sentence(object): def __init__(self, key, line, start): """ Sentence object. :param key: The key to which this sentence belongs. :param line: The line on which this sentences occurs. :param start: The start index of this line in char...
30.87234
73
0.51275
4a08cb5bb3890e42d2b3425893072bd595547f72
1,189
py
Python
tests/test_cmd_script.py
demlution/ledis-py
20312ca3c43e3b345db799aff0e2d7180f5704b4
[ "MIT" ]
12
2015-03-20T06:26:04.000Z
2021-03-27T16:26:34.000Z
tests/test_cmd_script.py
demlution/ledis-py
20312ca3c43e3b345db799aff0e2d7180f5704b4
[ "MIT" ]
2
2015-03-23T20:32:12.000Z
2019-03-06T05:41:40.000Z
tests/test_cmd_script.py
demlution/ledis-py
20312ca3c43e3b345db799aff0e2d7180f5704b4
[ "MIT" ]
5
2015-03-21T05:56:18.000Z
2019-05-19T11:53:47.000Z
# coding: utf-8 # Test Cases for bit commands import unittest import sys sys.path.append('..') import ledis from ledis._compat import b from util import expire_at, expire_at_seconds l = ledis.Ledis(port=6380) simple_script = "return {KEYS[1], KEYS[2], ARGV[1], ARGV[2]}" class TestCmdScript(unittest.TestCase): ...
21.618182
112
0.616484
4a08cb7724bb54cd161c694c10f8514fcbaacefb
4,283
py
Python
tests/flytekit/unit/remote/test_wrapper_classes.py
bimtauer/flytekit
3cfbb71779c44cf33866b45b22f71ffc2d607d92
[ "Apache-2.0" ]
null
null
null
tests/flytekit/unit/remote/test_wrapper_classes.py
bimtauer/flytekit
3cfbb71779c44cf33866b45b22f71ffc2d607d92
[ "Apache-2.0" ]
null
null
null
tests/flytekit/unit/remote/test_wrapper_classes.py
bimtauer/flytekit
3cfbb71779c44cf33866b45b22f71ffc2d607d92
[ "Apache-2.0" ]
null
null
null
import typing from collections import OrderedDict import pytest import flytekit.configuration from flytekit.configuration import Image, ImageConfig from flytekit.core.condition import conditional from flytekit.core.launch_plan import LaunchPlan from flytekit.core.task import task from flytekit.core.workflow import wo...
31.262774
104
0.69017
4a08cc13e3f149db0da1a206a4608da33fb4f151
6,100
py
Python
DeepLearningExamples/TensorFlow/Classification/ConvNets/triton/run_online_performance_test_on_triton.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
DeepLearningExamples/TensorFlow/Classification/ConvNets/triton/run_online_performance_test_on_triton.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
DeepLearningExamples/TensorFlow/Classification/ConvNets/triton/run_online_performance_test_on_triton.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # 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 # # U...
33.888889
120
0.689508
4a08cdf95b1dbd8fa27f3ced9569646ad97943f7
8,156
py
Python
network-design-qap/network-design-qap-branch-and-bound-lite/paramsQAP.py
Grieverwzn/network-design-qap
6d1a55c8d3e5dd9a97bffa7b3e8de7391a3a0843
[ "MIT" ]
1
2021-04-16T07:03:32.000Z
2021-04-16T07:03:32.000Z
network-design-qap/network-design-qap-branch-and-bound-lite/paramsQAP.py
Grieverwzn/network-design-qap
6d1a55c8d3e5dd9a97bffa7b3e8de7391a3a0843
[ "MIT" ]
null
null
null
network-design-qap/network-design-qap-branch-and-bound-lite/paramsQAP.py
Grieverwzn/network-design-qap
6d1a55c8d3e5dd9a97bffa7b3e8de7391a3a0843
[ "MIT" ]
1
2021-04-16T07:03:33.000Z
2021-04-16T07:03:33.000Z
import pandas as pd import os import time import numpy as np class Node: def __init__(self): self.name = '' self.node_id = 0 self.m_outgoing_link_list = [] self.m_incoming_link_list = [] class Link: def __init__(self): self.link_id = 0 self.link_type = 0 ...
37.585253
105
0.617705
4a08cf9cd67dd335f55fc9ccecbe0d72fa6e27a7
73
py
Python
processors/instagram_grabber.py
brianhouse/okavango
4006940ddead3f31eea701efb9b9dcdc7b19402e
[ "MIT" ]
2
2015-01-25T06:20:03.000Z
2015-02-15T23:54:41.000Z
processors/instagram_grabber.py
brianhouse/okavango_15
4006940ddead3f31eea701efb9b9dcdc7b19402e
[ "MIT" ]
null
null
null
processors/instagram_grabber.py
brianhouse/okavango_15
4006940ddead3f31eea701efb9b9dcdc7b19402e
[ "MIT" ]
3
2017-11-14T21:18:23.000Z
2021-06-20T21:08:31.000Z
#!/usr/bin/env python3 from ingest import instagram instagram.main()
9.125
28
0.739726
4a08cfba85cbc0ed9d1da7a3d868c83f90632a41
4,029
py
Python
codemate/structure.py
DavidMeu/codemate
fcdc7591c8a1cd5922ddab1a3ec7a0dae37576c3
[ "MIT" ]
null
null
null
codemate/structure.py
DavidMeu/codemate
fcdc7591c8a1cd5922ddab1a3ec7a0dae37576c3
[ "MIT" ]
null
null
null
codemate/structure.py
DavidMeu/codemate
fcdc7591c8a1cd5922ddab1a3ec7a0dae37576c3
[ "MIT" ]
null
null
null
from abc import abstractmethod from collections import Counter from functools import partial from typing import Collection, List, Optional from codemate.block import Block class Structure(Block): """ Creates an abstract Python structure syntax. Args: name(str): The name of the structure. """...
30.522727
83
0.607843
4a08cfd4e4689b958b3c273b449fca2caa87e7ce
6,922
py
Python
nodeconductor/openstack/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
nodeconductor/openstack/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
nodeconductor/openstack/models.py
p-p-m/nodeconductor
bc702302ef65c89793452f0fd6ca9a6bec79782f
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.core.validators import MaxValueValidator, MinValueValidator from django.utils.encoding import python_2_unicode_compatible from model_utils import FieldTracker from nodeconductor.core import models as core_models from nodeconductor.structure import models as structure_models fro...
36.819149
118
0.733603
4a08d005d029c0c30db516a367647a8d94fc7f8b
8,641
py
Python
src/simmate/calculators/vasp/workflows/_to_do/scratch_ELF.py
sionab/simmate
6dedea7310829aae425bf3393e7923e454a0129f
[ "BSD-3-Clause" ]
9
2021-12-21T02:58:21.000Z
2022-01-25T14:00:06.000Z
src/simmate/calculators/vasp/workflows/_to_do/scratch_ELF.py
sionab/simmate
6dedea7310829aae425bf3393e7923e454a0129f
[ "BSD-3-Clause" ]
51
2022-01-01T15:59:58.000Z
2022-03-26T21:25:42.000Z
src/simmate/calculators/vasp/workflows/_to_do/scratch_ELF.py
sionab/simmate
6dedea7310829aae425bf3393e7923e454a0129f
[ "BSD-3-Clause" ]
7
2022-01-01T03:44:32.000Z
2022-03-29T19:59:27.000Z
# -*- coding: utf-8 -*- from pymatgen.io.vasp.sets import DictSet #!!! The warning that is raised here is because there is no YAML! It can be ignored class MyCustomSet(DictSet): CONFIG = { "INCAR": { # Base Settings "NSW": 0, # Max ionic steps (0 is static energy calc) ...
30.213287
102
0.505844
4a08d02dffa67d4ea0c27fc91257e279ec5344e3
3,100
py
Python
find_planes.py
janvimadhani/satellite_planes
cb80d3c3a840e681ff26c78f40218ddbbec985b0
[ "MIT" ]
null
null
null
find_planes.py
janvimadhani/satellite_planes
cb80d3c3a840e681ff26c78f40218ddbbec985b0
[ "MIT" ]
null
null
null
find_planes.py
janvimadhani/satellite_planes
cb80d3c3a840e681ff26c78f40218ddbbec985b0
[ "MIT" ]
null
null
null
import numpy as np import time as time import plane_finding_tools as pf import sys snapshot = sys.argv[1] systems_file='/data78/welker/madhani/systems/systems_' + str(snapshot) + '.pickle' #systems_file = '/Users/JanviMadhani/satellite_planes/systems/MWsystems.pickle' systems = pf.read_systems(systems_file) corot...
37.804878
177
0.743871
4a08d0c2fcbe9f8fd2bbf5bf359c09d9dbaf069c
9,506
py
Python
CybORG/CybORG/Agents/ComplexAgents/utilities/data_structures/Prioritised_Replay_Buffer.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
null
null
null
CybORG/CybORG/Agents/ComplexAgents/utilities/data_structures/Prioritised_Replay_Buffer.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
null
null
null
CybORG/CybORG/Agents/ComplexAgents/utilities/data_structures/Prioritised_Replay_Buffer.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
null
null
null
import numpy as np import torch from CybORG.Agents.ComplexAgents.utilities.data_structures.Deque import Deque from CybORG.Agents.ComplexAgents.utilities.data_structures.Max_Heap import Max_Heap class Prioritised_Replay_Buffer(Max_Heap, Deque): """Data structure that maintains a deque, a heap and an array. The dequ...
61.329032
173
0.739638
4a08d21344ca2d36e5ec2b76836c48da35b65f0a
1,891
py
Python
pytorch_toolkit/instance_segmentation/setup.py
xzry6/openvino_training_extensions
b8b17bbcc352633b0f0d3a99d6179a9ec616e426
[ "Apache-2.0" ]
1
2019-08-01T05:57:28.000Z
2019-08-01T05:57:28.000Z
pytorch_toolkit/instance_segmentation/setup.py
xzry6/openvino_training_extensions
b8b17bbcc352633b0f0d3a99d6179a9ec616e426
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/instance_segmentation/setup.py
xzry6/openvino_training_extensions
b8b17bbcc352633b0f0d3a99d6179a9ec616e426
[ "Apache-2.0" ]
1
2019-08-21T08:36:08.000Z
2019-08-21T08:36:08.000Z
""" Copyright (c) 2019 Intel Corporation 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 wri...
34.381818
92
0.687467
4a08d28a56defb5fae4fbd06220358dbd0f265b8
179
py
Python
seligimus/standards/ansi/escape_codes/erase.py
AustinScola/seligimus
206654fd8cf5e9b9a9da25439ccde2efe5a6cc7a
[ "MIT" ]
1
2021-01-30T15:57:40.000Z
2021-01-30T15:57:40.000Z
seligimus/standards/ansi/escape_codes/erase.py
AustinScola/seligimus
206654fd8cf5e9b9a9da25439ccde2efe5a6cc7a
[ "MIT" ]
100
2021-01-30T16:01:46.000Z
2021-07-24T14:00:04.000Z
seligimus/standards/ansi/escape_codes/erase.py
AustinScola/seligimus
206654fd8cf5e9b9a9da25439ccde2efe5a6cc7a
[ "MIT" ]
null
null
null
"""ANSI escape codes for erasing text.""" from seligimus.standards.ansi.escape_codes.control import CONTROL_SEQUENCE_INTRODUCER CLEAR_SCREEN = CONTROL_SEQUENCE_INTRODUCER + '2J'
35.8
85
0.826816
4a08d37a19b04f027f32e69fcc5f7213cc072fa6
516
py
Python
Section #1 - Basics/read.py
ArjenArumalingam/opencv-course
a1d6ea58379e1c19afcef207b04ba5090e09423c
[ "MIT" ]
null
null
null
Section #1 - Basics/read.py
ArjenArumalingam/opencv-course
a1d6ea58379e1c19afcef207b04ba5090e09423c
[ "MIT" ]
null
null
null
Section #1 - Basics/read.py
ArjenArumalingam/opencv-course
a1d6ea58379e1c19afcef207b04ba5090e09423c
[ "MIT" ]
null
null
null
#pylint:disable=no-member import cv2 as cv img = cv.imread('Photos/cats.jpg') #(name of the window, display) cv.imshow('Cats', img) # delay for key to be pressed cv.waitKey(0) # Reading Videos #(0,1,2,3 = Webcam) capture = cv.VideoCapture('../Resources/Videos/dog.mp4') while True: # Reads frame by frame is...
19.846154
56
0.660853
4a08d3ef569cdf0d941c0adf79d56fbefc96b11e
3,359
py
Python
hyperbolic/poincare/Point.py
zemora/Hyperbolic
0e8720e30fe89b49d6a06a987bbf46ccffa86ba6
[ "MIT" ]
null
null
null
hyperbolic/poincare/Point.py
zemora/Hyperbolic
0e8720e30fe89b49d6a06a987bbf46ccffa86ba6
[ "MIT" ]
null
null
null
hyperbolic/poincare/Point.py
zemora/Hyperbolic
0e8720e30fe89b49d6a06a987bbf46ccffa86ba6
[ "MIT" ]
null
null
null
import math from .. import util from ..euclid.shapes import Circle as ECircle from .. import poincare as module from . import shapes class Point: def __init__(self, x, y, hr=None, theta=None): self.x = x self.y = y # Hyperbolic polar coordinates if theta is None: thet...
33.257426
82
0.575171
4a08d4189b2ef2a5624a01d1382ed8bdd9d86eff
45
py
Python
src/model/__init__.py
SignorinoY/immortal-python
b2d3c9a3b5c262d16785026cfaf6f022e6bbefd7
[ "MIT" ]
1
2021-06-05T03:45:15.000Z
2021-06-05T03:45:15.000Z
src/model/__init__.py
SignorinoY/immortal-python
b2d3c9a3b5c262d16785026cfaf6f022e6bbefd7
[ "MIT" ]
null
null
null
src/model/__init__.py
SignorinoY/immortal-python
b2d3c9a3b5c262d16785026cfaf6f022e6bbefd7
[ "MIT" ]
null
null
null
from .classfier import FashionMNISTClassfier
22.5
44
0.888889
4a08d454a1aadfcdc8f9c5945394f64ea5875444
2,542
py
Python
nova/tests/integrated/v3/test_flavor_extraspecs.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
1
2015-11-25T10:18:22.000Z
2015-11-25T10:18:22.000Z
nova/tests/integrated/v3/test_flavor_extraspecs.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/tests/integrated/v3/test_flavor_extraspecs.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
40.349206
78
0.644768
4a08d49669987959e79396a69b3a2a091d159348
5,438
py
Python
baselines/test_baselines_cli.py
iarai/NeurIPS2021-traffic4cast
a7b31f6727cd639370d3237cda74c27e54eb5a32
[ "Apache-2.0" ]
19
2021-06-20T21:35:49.000Z
2022-03-01T14:49:19.000Z
baselines/test_baselines_cli.py
iarai/NeurIPS2021-traffic4cast
a7b31f6727cd639370d3237cda74c27e54eb5a32
[ "Apache-2.0" ]
3
2021-06-15T19:57:39.000Z
2021-09-09T15:52:56.000Z
baselines/test_baselines_cli.py
iarai/NeurIPS2021-traffic4cast
a7b31f6727cd639370d3237cda74c27e54eb5a32
[ "Apache-2.0" ]
9
2021-06-20T21:37:19.000Z
2021-12-15T15:30:05.000Z
# Copyright 2021 Institute of Advanced Research in Artificial Intelligence (IARAI) GmbH. # IARAI licenses this file to You 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/li...
47.701754
119
0.657411
4a08d49ad4e18bc1f3a92712b3b8189c2ae45b05
1,285
py
Python
src/1_1_solution.py
Rchase8/AdventOfCode2020
d2d98825177b3ff3b0eece694505b9b36ffd5b04
[ "MIT" ]
null
null
null
src/1_1_solution.py
Rchase8/AdventOfCode2020
d2d98825177b3ff3b0eece694505b9b36ffd5b04
[ "MIT" ]
null
null
null
src/1_1_solution.py
Rchase8/AdventOfCode2020
d2d98825177b3ff3b0eece694505b9b36ffd5b04
[ "MIT" ]
null
null
null
def get_number_list(): file = open("Data/1_1inputs.txt", "r") lines = file.readlines() new_numberlist = [] for line in lines: new_numberlist.append(int(line)) return new_numberlist # block ends def filter_number_list(the_numberlist, criteria_def): filtered_number_list = [] for first_pos in range(0,...
22.946429
57
0.716732
4a08d4e4d4b777eef14b11d27ba8b63d08ad0a0d
2,781
py
Python
scooch/configurize_helper.py
PandoraMedia/scooch
1890f139ce411395de1022fa3764946007a35e58
[ "Apache-2.0" ]
6
2021-11-09T17:46:35.000Z
2022-03-12T02:10:45.000Z
scooch/configurize_helper.py
PandoraMedia/scooch
1890f139ce411395de1022fa3764946007a35e58
[ "Apache-2.0" ]
null
null
null
scooch/configurize_helper.py
PandoraMedia/scooch
1890f139ce411395de1022fa3764946007a35e58
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 Pandora Media, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
34.333333
153
0.688601
4a08d5665b6ae55c49a7526aadb3ba7523fdc24a
1,047
py
Python
manage.py
kathe-ruiz/company_match
9e3e18a09d9b4c58f8d650bc0e920e7141947433
[ "MIT" ]
null
null
null
manage.py
kathe-ruiz/company_match
9e3e18a09d9b4c58f8d650bc0e920e7141947433
[ "MIT" ]
null
null
null
manage.py
kathe-ruiz/company_match
9e3e18a09d9b4c58f8d650bc0e920e7141947433
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from pathlib import Path if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some...
32.71875
77
0.660936
4a08d57f0c8889074d2da065b14affbe21c2bb67
6,619
py
Python
bcselector/tests/no_cost_based_filter_methods_test.py
Kaketo/bc-selector
c7acd1033bee741530735fb601f9e464c3ccc26f
[ "MIT" ]
5
2020-03-30T17:36:11.000Z
2021-06-16T09:14:20.000Z
bcselector/tests/no_cost_based_filter_methods_test.py
Kaketo/bc-selector
c7acd1033bee741530735fb601f9e464c3ccc26f
[ "MIT" ]
6
2020-04-28T16:32:04.000Z
2020-12-18T13:35:28.000Z
bcselector/tests/no_cost_based_filter_methods_test.py
Kaketo/bc-selector
c7acd1033bee741530735fb601f9e464c3ccc26f
[ "MIT" ]
2
2020-04-28T15:59:51.000Z
2020-05-14T08:11:33.000Z
import unittest import numpy as np from bcselector.filter_methods.no_cost_based_filter_methods import no_cost_find_best_feature from bcselector.information_theory.j_criterion_approximations import mim, mifs, mrmr, jmi, cife class TestNoCostMethod(unittest.TestCase): def test_simple_input_mim(self): integ...
50.143939
95
0.539205
4a08d692a00ed9e773d0ec67685b01341114a7e6
150
py
Python
application/dataprocessing/cors.py
oooooooooooooooosip/analytics_backend
4006b736c2824af6308b414e32a53a77f805d4cb
[ "MIT" ]
3
2019-10-10T05:49:44.000Z
2020-05-14T16:53:30.000Z
application/dataprocessing/cors.py
oooooooooooooooosip/analytics_backend
4006b736c2824af6308b414e32a53a77f805d4cb
[ "MIT" ]
35
2020-06-06T01:48:56.000Z
2022-03-09T08:59:48.000Z
application/dataprocessing/cors.py
oooooooooooooooosip/analytics_backend
4006b736c2824af6308b414e32a53a77f805d4cb
[ "MIT" ]
31
2020-04-26T13:12:53.000Z
2022-03-28T13:13:35.000Z
class CorsMiddleware(object): def process_response(self, req, resp): response["Access-Control-Allow-Origin"] = "*" return response
37.5
53
0.673333
4a08d6afcb61e2c155976442e455ca2a4d29e1f0
850
py
Python
src/virtates/web/app.py
mtnmts/Virtattes
8a54d7b09567e82e46f44a924044bb2520f28b75
[ "MIT" ]
null
null
null
src/virtates/web/app.py
mtnmts/Virtattes
8a54d7b09567e82e46f44a924044bb2520f28b75
[ "MIT" ]
null
null
null
src/virtates/web/app.py
mtnmts/Virtattes
8a54d7b09567e82e46f44a924044bb2520f28b75
[ "MIT" ]
null
null
null
# he smell of paint, a flask of wine # And turn those faces all to me # The blunderbuss and halberd-shaft # And Dutch respectability from flask import Flask, Blueprint, render_template, abort from jinja2 import TemplateNotFound APP_NAME = "Virtates" def build_app(blueprints): app = Flask(APP_NAME) blueprin...
22.972973
77
0.687059
4a08d7b06fbd59dfb9d21a58234e90c6e8fe1424
8,592
py
Python
tests/test_searchHandler.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
1
2019-07-19T20:03:00.000Z
2019-07-19T20:03:00.000Z
tests/test_searchHandler.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
null
null
null
tests/test_searchHandler.py
CameronJRAllan/eTree-Browser
72601450eb8538f79511715c5793a8594bdcfc80
[ "MIT" ]
null
null
null
from unittest import TestCase import pytest import application import sys from PyQt5 import QtWidgets, QtCore, QtGui from unittest import TestCase import search class TestSearchHandlerQt(): @pytest.fixture(scope="function", autouse=True) def setup(self, qtbot): # Create dialog to show this instance self.di...
40.149533
104
0.716131
4a08d87b4148fc4c67b4247759e108162de4b4bd
473
py
Python
env/Lib/site-packages/plotly/validators/choropleth/_visible.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/choropleth/_visible.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/choropleth/_visible.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__(self, plotly_name="visible", parent_name="choropleth", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
36.384615
82
0.663848
4a08db0db055e76efbb58382f5ea27463598a629
10,992
py
Python
test/test_profile.py
esoma/pgo
7960dac20431dd6358bceb17a70250637d0d7f53
[ "MIT" ]
1
2022-01-29T20:57:45.000Z
2022-01-29T20:57:45.000Z
test/test_profile.py
esoma/pgo
7960dac20431dd6358bceb17a70250637d0d7f53
[ "MIT" ]
4
2021-03-18T01:13:15.000Z
2021-08-30T12:16:48.000Z
test/test_profile.py
esoma/pgo
7960dac20431dd6358bceb17a70250637d0d7f53
[ "MIT" ]
null
null
null
# pgo from pgo.setuptools import compiler from pgo.setuptools.profile import ProfileError # pytest import pytest # python import os import sys import textwrap # setuptools import distutils.errors from setuptools import Distribution @pytest.fixture def profile_command(): return [sys.executable, '-c...
32.617211
80
0.603985
4a08db18ef1b95b3970403f2d3d48e31488acf8f
7,076
py
Python
Python-Client/agents/navigation/controller.py
SAMMiCA/Scenario2-AutonomousDriving
e9e3faeaab0f2652fb1cf4d00544a18b557ee4b6
[ "MIT" ]
null
null
null
Python-Client/agents/navigation/controller.py
SAMMiCA/Scenario2-AutonomousDriving
e9e3faeaab0f2652fb1cf4d00544a18b557ee4b6
[ "MIT" ]
null
null
null
Python-Client/agents/navigation/controller.py
SAMMiCA/Scenario2-AutonomousDriving
e9e3faeaab0f2652fb1cf4d00544a18b557ee4b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018 Intel Labs. # authors: German Ros (german.ros@intel.com) # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ This module contains PID controllers to perform lateral and longitudinal control. """ from col...
35.557789
117
0.601187
4a08dba43a61f4ee93d125acaa86d389a8921d37
53,645
py
Python
bayesfast/core/recipe.py
HerculesJack/bayesfast
4354bab286bb4e3019eabba4c04a75d51fe04967
[ "Apache-2.0" ]
33
2019-11-06T15:42:50.000Z
2022-01-14T05:56:03.000Z
bayesfast/core/recipe.py
HerculesJack/bayesfast
4354bab286bb4e3019eabba4c04a75d51fe04967
[ "Apache-2.0" ]
30
2020-04-07T05:23:15.000Z
2022-03-25T21:34:56.000Z
bayesfast/core/recipe.py
HerculesJack/bayesfast
4354bab286bb4e3019eabba4c04a75d51fe04967
[ "Apache-2.0" ]
7
2019-12-03T06:43:20.000Z
2021-12-09T14:26:06.000Z
from .module import Surrogate from .density import Density, DensityLite from .sample import sample from ..modules.poly import PolyConfig, PolyModel from ..samplers import SampleTrace, NTrace, _HTrace, TraceTuple from ..samplers import _get_step_size, _get_metric from ..utils import all_isinstance, Laplace from ..utils....
39.214181
86
0.564246
4a08dbbdb51c2100efc68dedd66aee3300d85782
9,877
py
Python
sdk/python/pulumi_azure_native/network/v20201101/get_p2s_vpn_gateway_p2s_vpn_connection_health.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/get_p2s_vpn_gateway_p2s_vpn_connection_health.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/get_p2s_vpn_gateway_p2s_vpn_connection_health.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
41.851695
332
0.687861
4a08de59790cdc37a1a4e3c4355531030dba8ea8
49,060
py
Python
test/quantization/core/test_workflow_module.py
sanchitintel/pytorch
416f59308023b5d98f6ea4ecdd0bcd3829edb7a7
[ "Intel" ]
24
2020-11-02T21:25:12.000Z
2022-03-17T07:20:33.000Z
test/quantization/core/test_workflow_module.py
sanchitintel/pytorch
416f59308023b5d98f6ea4ecdd0bcd3829edb7a7
[ "Intel" ]
1
2019-08-01T00:17:43.000Z
2019-09-12T01:31:53.000Z
test/quantization/core/test_workflow_module.py
sanchitintel/pytorch
416f59308023b5d98f6ea4ecdd0bcd3829edb7a7
[ "Intel" ]
12
2020-11-06T05:00:37.000Z
2022-01-30T19:17:36.000Z
# Torch import torch from torch.ao.quantization import ( MinMaxObserver, PerChannelMinMaxObserver, MovingAverageMinMaxObserver, MovingAveragePerChannelMinMaxObserver, HistogramObserver, RecordingObserver, PlaceholderObserver, NoopObserver, FakeQuantize, FixedQParamsFakeQuantize, ...
41.967494
132
0.588708
4a08de61a1d07c50b27b9bc25a65b60cf5fc3265
6,820
py
Python
libtb/sieve/__init__.py
MelonSmasher/turkey-bite
b21bf82076e7c00c3ae74fc9d36761f0960cbbaf
[ "MIT" ]
4
2020-08-20T02:22:07.000Z
2020-08-20T14:27:52.000Z
libtb/sieve/__init__.py
MelonSmasher/turkey-bite
b21bf82076e7c00c3ae74fc9d36761f0960cbbaf
[ "MIT" ]
null
null
null
libtb/sieve/__init__.py
MelonSmasher/turkey-bite
b21bf82076e7c00c3ae74fc9d36761f0960cbbaf
[ "MIT" ]
1
2020-08-20T08:41:50.000Z
2020-08-20T08:41:50.000Z
class Filters(object): # Packet types we care about packets = ['dns', 'browser.history'] valids = ['OK'] def __init__(self, config): """Sieve class responsible for filtering out messages that should be ignored. This lessens the load on the queue workers and makes ES lighter. ""...
47.034483
117
0.463196
4a08de6c639ba5e9da5eb9965c142ae241e78625
352
py
Python
ctflearn/read-in-color/read-in-color.py
onealmond/hacking-lab
631e615944add02db3c2afef47bf1de7171eb065
[ "MIT" ]
9
2021-04-20T15:28:36.000Z
2022-03-08T19:53:48.000Z
ctflearn/read-in-color/read-in-color.py
onealmond/hacking-lab
631e615944add02db3c2afef47bf1de7171eb065
[ "MIT" ]
null
null
null
ctflearn/read-in-color/read-in-color.py
onealmond/hacking-lab
631e615944add02db3c2afef47bf1de7171eb065
[ "MIT" ]
6
2021-06-24T03:25:21.000Z
2022-02-20T21:44:52.000Z
#!/usr/bin/env python from PIL import Image img = Image.open('color_img.png', 'r') img = img.convert('RGB') pixels = img.load() w, h = img.size for y in range(h): s = [] for x in range(w): if pixels[x,y] == pixels[x-1,y]:continue r, g, b = pixels[x, y] print(''.join(map(chr, [r,g,b]))...
19.555556
49
0.539773
4a08ded96c022ae7d2df86ddd4f773ba025437a0
1,466
py
Python
Python/set-matrix-zeroes.py
ZhiliangGong/LeetCode
a1fc7311ddc50eb43f43fc51d3290f2c91fd4fa1
[ "MIT" ]
5
2018-09-06T03:12:33.000Z
2022-03-03T18:57:11.000Z
Python/set-matrix-zeroes.py
pnandini/LeetCode
e746c3298be96dec8e160da9378940568ef631b1
[ "MIT" ]
1
2018-07-10T03:28:43.000Z
2018-07-10T03:28:43.000Z
Python/set-matrix-zeroes.py
pnandini/LeetCode
e746c3298be96dec8e160da9378940568ef631b1
[ "MIT" ]
5
2018-09-06T03:12:35.000Z
2021-07-03T09:00:56.000Z
# Time: O(m * n) # Space: O(1) # # Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. # # Follow up: # Did you use extra space? # A straight forward solution using O(mn) space is probably a bad idea. # A simple improvement uses O(m + n) space, but still not the best solution....
33.318182
98
0.532742
4a08deef33ee5e484346fc9cf23c6b47e95e842c
3,314
py
Python
app/app/settings.py
egiev/django-rest-api
95ae1f5839f0abe2649044a0cb383c9fb8976635
[ "MIT" ]
null
null
null
app/app/settings.py
egiev/django-rest-api
95ae1f5839f0abe2649044a0cb383c9fb8976635
[ "MIT" ]
null
null
null
app/app/settings.py
egiev/django-rest-api
95ae1f5839f0abe2649044a0cb383c9fb8976635
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.492308
91
0.685878
4a08dfb755ae10455c5d0638f3f47f181cc92842
778
py
Python
_includes/snippets/python/monkey-patching/attributes_from_outside.py
MarauderXtreme/justus
229703abda2bd90d34232c97c64999c216d98239
[ "CC-BY-4.0" ]
1
2020-02-02T16:09:43.000Z
2020-02-02T16:09:43.000Z
_includes/snippets/python/monkey-patching/attributes_from_outside.py
MrNick7373/justusadam.github.io
0660026a7846389647cb3ce52d9f776aab10e3cd
[ "CC-BY-4.0" ]
1
2020-02-02T13:22:42.000Z
2020-02-02T13:22:42.000Z
_includes/snippets/python/monkey-patching/attributes_from_outside.py
MarauderXtreme/justus
229703abda2bd90d34232c97c64999c216d98239
[ "CC-BY-4.0" ]
null
null
null
#! /usr/bin/env python3 class TestClass: def __init__(self): pass def method_1(self): # defining an instance attribute from inside another method self.instance_foo = 4 my_instance = TestClass() print( hasattr(my_instance, 'instance_foo') ) # =>> False # the instance_foo attr...
18.093023
72
0.703085
4a08e1b50063a45a2d3c4a9f5cf3798eec24eec3
175
py
Python
health_check/urls.py
uktrade/dnb-service
c8f22af82af70f33b8d6bf92e3ca6992fce1f220
[ "MIT" ]
4
2019-12-03T14:59:50.000Z
2020-04-28T12:42:24.000Z
health_check/urls.py
uktrade/dnb-service
c8f22af82af70f33b8d6bf92e3ca6992fce1f220
[ "MIT" ]
17
2019-04-11T13:12:57.000Z
2022-01-13T10:08:07.000Z
health_check/urls.py
uktrade/dnb-service
c8f22af82af70f33b8d6bf92e3ca6992fce1f220
[ "MIT" ]
3
2021-05-11T16:13:57.000Z
2022-03-08T15:57:19.000Z
from django.urls import path from .views import HealthCheckP1View app_name = 'health_check' urlpatterns = [ path('check/', HealthCheckP1View.as_view(), name='p1'), ]
14.583333
59
0.72
4a08e24c21243703d74ddeee0c8b2f2b6a2c728f
3,895
py
Python
securicad/enterprise/organizations.py
foreseeti/securicad-enterprise-sdk
aef4db2530caa0de78a56a3e519efa62bcee39d8
[ "Apache-2.0" ]
3
2020-09-28T09:13:39.000Z
2020-12-10T09:44:03.000Z
securicad/enterprise/organizations.py
foreseeti/securicad-enterprise-sdk
aef4db2530caa0de78a56a3e519efa62bcee39d8
[ "Apache-2.0" ]
2
2021-02-19T13:55:10.000Z
2021-12-28T07:51:53.000Z
securicad/enterprise/organizations.py
foreseeti/securicad-enterprise-sdk
aef4db2530caa0de78a56a3e519efa62bcee39d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Foreseeti AB <https://foreseeti.com> # # 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 applicabl...
38.564356
86
0.668293
4a08e29f7d675518e2a7f21cc67e4c90837b165a
3,838
py
Python
benchmark/startQiskit940.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit940.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit940.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=37 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,floor, sqrt, pi import numpy as np import networkx as ...
29.984375
82
0.604221
4a08e2b7f17ddc64728d2e87f2cf5c5e4ab97eff
157
py
Python
apilinux/settings.py
JonathanArrance/API_linux
1613380eda95b9554206add6d22c90263f95bb48
[ "MIT" ]
null
null
null
apilinux/settings.py
JonathanArrance/API_linux
1613380eda95b9554206add6d22c90263f95bb48
[ "MIT" ]
4
2019-02-11T00:22:34.000Z
2019-02-11T00:27:23.000Z
apilinux/settings.py
JonathanArrance/API_linux
1613380eda95b9554206add6d22c90263f95bb48
[ "MIT" ]
1
2020-05-05T23:26:52.000Z
2020-05-05T23:26:52.000Z
#!/usr/bin/python import os LOCAL_HOST = os.getenv('LOCAL_HOST','localhost') SECRET_KEY = 'the quick brown fox jumps over the lazy dog' API_VERSION = '1.0'
26.166667
59
0.732484
4a08e3305b6fe020e003415182a33ebd6854e4e5
427
py
Python
kubernetes_typed/client/models/v2beta2_container_resource_metric_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
null
null
null
kubernetes_typed/client/models/v2beta2_container_resource_metric_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
null
null
null
kubernetes_typed/client/models/v2beta2_container_resource_metric_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
null
null
null
# Code generated by `typeddictgen`. DO NOT EDIT. """V2beta2ContainerResourceMetricSourceDict generated type.""" from typing import TypedDict from kubernetes_typed.client import V2beta2MetricTargetDict V2beta2ContainerResourceMetricSourceDict = TypedDict( "V2beta2ContainerResourceMetricSourceDict", { "...
26.6875
62
0.740047
4a08e3effae2058c00b3b4cdf262ce7fd2479ea3
670
py
Python
students/K33401/Polyakov_Sergey/lr1/part2/server2.py
spolyakovs/ITMO_ICT_WebDevelopment_2020-2021
b83b609676554afd6cd5d0cf989cda7e0d571000
[ "MIT" ]
null
null
null
students/K33401/Polyakov_Sergey/lr1/part2/server2.py
spolyakovs/ITMO_ICT_WebDevelopment_2020-2021
b83b609676554afd6cd5d0cf989cda7e0d571000
[ "MIT" ]
null
null
null
students/K33401/Polyakov_Sergey/lr1/part2/server2.py
spolyakovs/ITMO_ICT_WebDevelopment_2020-2021
b83b609676554afd6cd5d0cf989cda7e0d571000
[ "MIT" ]
null
null
null
import socket server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) server_socket.bind(('localhost', 5678)) server_socket.listen(5) def calculate_area_of_trapezoid(base1, base2, height): return (base1 + base2) / 2 * height while Tru...
37.222222
103
0.750746
4a08e5878c4c3dce5205cacd576e953414e67080
1,365
py
Python
setup.py
hrithikwel8/Speech_Emotion_Recognition
d0ea8a371c60627d318dd69c96eb3189e260fb8c
[ "MIT" ]
null
null
null
setup.py
hrithikwel8/Speech_Emotion_Recognition
d0ea8a371c60627d318dd69c96eb3189e260fb8c
[ "MIT" ]
null
null
null
setup.py
hrithikwel8/Speech_Emotion_Recognition
d0ea8a371c60627d318dd69c96eb3189e260fb8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['Click>=7.0', ] test_requirements = [ ] setup( author="...
27.3
76
0.627839
4a08e5cdadc19af21d0b3a85703b62e95378b3cc
787
py
Python
other-programs/systemspaperorbits.py
atomsite/ath-dust-plot
b63dc548dc859f33e0b096703a9b98c1f1cdc832
[ "MIT" ]
null
null
null
other-programs/systemspaperorbits.py
atomsite/ath-dust-plot
b63dc548dc859f33e0b096703a9b98c1f1cdc832
[ "MIT" ]
null
null
null
other-programs/systemspaperorbits.py
atomsite/ath-dust-plot
b63dc548dc859f33e0b096703a9b98c1f1cdc832
[ "MIT" ]
null
null
null
import sys sys.path.append("../") import athenaplotlib as apl import numpy as np import matplotlib.pyplot as plt class Star: def __init__(self,mass,period,ecc): self.mass = mass self.period = period*86400 self.ecc = ecc self.phaseoff = 0.0 return wr104 = [Star(10,245,0.06),Star(20,245,0.06)...
18.738095
59
0.631512
4a08e5e4ea0c6f79c3cdff115b85766d622ecbbb
1,675
py
Python
testinfra/modules/__init__.py
farzadghanei/testinfra
02a9338b1e8eef7da8737099ee1445341e454fe1
[ "Apache-2.0" ]
1
2019-10-27T15:22:21.000Z
2019-10-27T15:22:21.000Z
testinfra/modules/__init__.py
farzadghanei/testinfra
02a9338b1e8eef7da8737099ee1445341e454fe1
[ "Apache-2.0" ]
null
null
null
testinfra/modules/__init__.py
farzadghanei/testinfra
02a9338b1e8eef7da8737099ee1445341e454fe1
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # 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, software # dist...
32.843137
74
0.68597
4a08e614223b07bce01096b8c1eb516bc2d0916b
2,011
py
Python
shapeworld/captions/existential.py
shgoren/ShapeWorld
a6633bddbf195d0dc4cbdbe07564a98149337bcf
[ "MIT" ]
1
2021-04-08T16:14:25.000Z
2021-04-08T16:14:25.000Z
shapeworld/captions/existential.py
shgoren/ShapeWorld
a6633bddbf195d0dc4cbdbe07564a98149337bcf
[ "MIT" ]
null
null
null
shapeworld/captions/existential.py
shgoren/ShapeWorld
a6633bddbf195d0dc4cbdbe07564a98149337bcf
[ "MIT" ]
1
2021-02-23T17:10:46.000Z
2021-02-23T17:10:46.000Z
from __future__ import division from shapeworld import util from shapeworld.captions import Caption, EntityType, Relation class Existential(Caption): __slots__ = ('restrictor', 'body') def __init__(self, restrictor, body): assert isinstance(restrictor, EntityType) assert isinstance(body, Rel...
35.910714
108
0.658876
4a08e6365eee7e76e44065f6fc4c875a85b33305
4,088
py
Python
tests/assert_utils.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
2
2022-03-31T08:31:00.000Z
2022-03-31T08:31:43.000Z
tests/assert_utils.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
21
2022-03-02T15:25:49.000Z
2022-03-07T11:15:45.000Z
tests/assert_utils.py
DD2480-Group-10/manim
e147a9fc6c117332221e42437481f3efba76499a
[ "MIT" ]
null
null
null
from __future__ import annotations import os from pathlib import Path from pprint import pformat def assert_file_exists(filepath: str | os.PathLike) -> None: """Assert that filepath points to an existing file. Print all the elements (files and dir) of the parent dir of the given filepath. This is mostly to ...
31.689922
143
0.643346
4a08e68142c1fe8854b08afaf9cf43d0bdad327b
93
py
Python
sqltest/datasource/csv/__init__.py
stayrascal/sqltest
bc9f36755ec04f410e0931696a8624b15429b2b3
[ "MIT" ]
null
null
null
sqltest/datasource/csv/__init__.py
stayrascal/sqltest
bc9f36755ec04f410e0931696a8624b15429b2b3
[ "MIT" ]
1
2021-10-19T14:40:02.000Z
2021-10-19T14:40:02.000Z
sqltest/datasource/csv/__init__.py
stayrascal/sqltest
bc9f36755ec04f410e0931696a8624b15429b2b3
[ "MIT" ]
null
null
null
from sqltest.datasource.csv.csv_reader import CsvDatasetReader __all__ = [CsvDatasetReader]
23.25
62
0.849462
4a08e71fdd63e55f685e2e9c0470c8e065629956
11,956
py
Python
colour/models/rgb/tests/test_derivation.py
Ron024/colour
6adbfcb61c559cc164957dac01c08ad93b9e84e3
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/tests/test_derivation.py
Ron024/colour
6adbfcb61c559cc164957dac01c08ad93b9e84e3
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb/tests/test_derivation.py
Ron024/colour
6adbfcb61c559cc164957dac01c08ad93b9e84e3
[ "BSD-3-Clause" ]
1
2019-12-11T19:48:27.000Z
2019-12-11T19:48:27.000Z
# -*- coding: utf-8 -*- """ Defines unit tests for :mod:`colour.models.rgb.derivation` module. """ from __future__ import division, unicode_literals import numpy as np import re import unittest from itertools import permutations from six import text_type from colour.models import ( normalised_primary_matrix, chr...
32.313514
78
0.549682
4a08e733b770c1e9f532d04d9efbff7644798cee
28,919
py
Python
pandas/core/internals/construction.py
juliansmidek/pandas
8945a4267588ec2608bec7be6745f6beff0373da
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/construction.py
juliansmidek/pandas
8945a4267588ec2608bec7be6745f6beff0373da
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/internals/construction.py
juliansmidek/pandas
8945a4267588ec2608bec7be6745f6beff0373da
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
""" Functions for preparing various inputs passed to the DataFrame or Series constructors before passing them to a BlockManager. """ from __future__ import annotations from collections import abc from typing import ( TYPE_CHECKING, Any, Dict, Hashable, List, Optional, Sequence, Tuple, ...
30.995713
88
0.604689
4a08e97a13a9f40bf992da5901d296e43cceafa9
2,135
py
Python
anvil/plugins/maya/publish/extract_model.py
icyvapor/config
0b367f02da9cf5c7dcfb5253d99da2f1dfc5e018
[ "MIT" ]
null
null
null
anvil/plugins/maya/publish/extract_model.py
icyvapor/config
0b367f02da9cf5c7dcfb5253d99da2f1dfc5e018
[ "MIT" ]
null
null
null
anvil/plugins/maya/publish/extract_model.py
icyvapor/config
0b367f02da9cf5c7dcfb5253d99da2f1dfc5e018
[ "MIT" ]
null
null
null
import pyblish.api class ExtractAvaModel(pyblish.api.InstancePlugin): """Produce a stripped down Maya file from instance This plug-in takes into account only nodes relevant to models and discards anything else, especially deformers along with their intermediate nodes. """ label = "Model" ...
32.348485
75
0.581265
4a08ea1c257a8c235d5360272d698f2bd8b3e216
3,135
py
Python
reedScrape/spiders/settings.py
blakiseskream/doylehowl
b0f337ac8da8a33a573ca2d594f376fe9fc84211
[ "MIT" ]
1
2017-06-30T04:42:17.000Z
2017-06-30T04:42:17.000Z
spiders/spiders/settings.py
Surrinders/test
2f21f42b958ca96b1795b8ea00be9db4a0bfdfee
[ "MIT" ]
null
null
null
spiders/spiders/settings.py
Surrinders/test
2f21f42b958ca96b1795b8ea00be9db4a0bfdfee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for spiders project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest...
34.450549
109
0.777033
4a08ec523794024ac342cb4798396bf3b25ab1ba
1,412
py
Python
tests/test_backtest_utils.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
null
null
null
tests/test_backtest_utils.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
null
null
null
tests/test_backtest_utils.py
mberk/flumine
6216bcc233326cf07852fca9c7d39a18cee265ad
[ "MIT" ]
null
null
null
import unittest from unittest import mock from flumine.backtest import utils class NewDateTimeTest(unittest.TestCase): @mock.patch("flumine.backtest.utils.config") def test_new_date_time(self, mock_config): mock_config.current_time = 123 x = utils.NewDateTime self.assertEqual(x.utcnow...
32.090909
79
0.70255
4a08ed0af9ccf7b474af59f885811c1c3743d643
1,066
py
Python
swissdutch/dutch.py
s-farry/swissdutch
df98cec67c3b1673e797d1f1de0a5822fad19803
[ "MIT" ]
10
2015-09-30T20:38:13.000Z
2021-12-22T17:20:51.000Z
swissdutch/dutch.py
s-farry/swissdutch
df98cec67c3b1673e797d1f1de0a5822fad19803
[ "MIT" ]
2
2020-04-26T19:11:38.000Z
2021-02-20T15:01:20.000Z
swissdutch/dutch.py
s-farry/swissdutch
df98cec67c3b1673e797d1f1de0a5822fad19803
[ "MIT" ]
2
2019-03-27T00:21:49.000Z
2021-03-13T14:37:06.000Z
import operator import itertools from swissdutch.swiss import SwissPairingEngine from swissdutch.pairing import ScoreBracket, PairingContext class DutchPairingEngine(SwissPairingEngine): def __init__(self, top_seed_colour_selection_fn=None, bye_value=1): super().__init__(top_seed_colour_selection_fn, bye_v...
36.758621
74
0.660413
4a08ee0f615bdf3e1d7a6b09c1e770c26dd191a2
5,364
py
Python
kubric/core/cameras.py
ScottyLectronica/kubric
31930b4a8517d1fc5987bb1502e47f130209505a
[ "Apache-2.0" ]
null
null
null
kubric/core/cameras.py
ScottyLectronica/kubric
31930b4a8517d1fc5987bb1502e47f130209505a
[ "Apache-2.0" ]
null
null
null
kubric/core/cameras.py
ScottyLectronica/kubric
31930b4a8517d1fc5987bb1502e47f130209505a
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Kubric Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
34.831169
97
0.634601
4a08ee5f9bab8f9b8a3902208e5ded830c34eb24
3,554
py
Python
tor_async_couchdb/tests/tamper_unit_tests.py
simonsdave/tor-async-couchdb
286b0acaca636f5e937b159d56db573973cd17a1
[ "MIT" ]
1
2019-01-27T21:07:14.000Z
2019-01-27T21:07:14.000Z
tor_async_couchdb/tests/tamper_unit_tests.py
simonsdave/tor-async-couchdb
286b0acaca636f5e937b159d56db573973cd17a1
[ "MIT" ]
5
2015-04-22T17:52:07.000Z
2017-05-16T01:56:45.000Z
tor_async_couchdb/tests/tamper_unit_tests.py
simonsdave/tor-async-couchdb
286b0acaca636f5e937b159d56db573973cd17a1
[ "MIT" ]
2
2015-05-04T20:19:46.000Z
2016-05-30T09:59:59.000Z
"""This module contains the tamper module's unit tests.""" import shutil import tempfile import unittest from keyczar import keyczar from keyczar import keyczart from .. import tamper class TempDirectory(object): def __init__(self): object.__init__(self) self._dir_name = None def __enter_...
26.924242
61
0.544176
4a08effce8a0d815a8290ffbf97ea38737487d47
1,191
py
Python
[1] BEGINNER/2896 - Aproveite a Oferta.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
1
2022-03-15T03:03:26.000Z
2022-03-15T03:03:26.000Z
[1] BEGINNER/2896 - Aproveite a Oferta.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
null
null
null
[1] BEGINNER/2896 - Aproveite a Oferta.py
tiago040/URI-SOLUTIONS
519d3950252a6002e8926416b2f8217ba08fe721
[ "MIT" ]
null
null
null
''' Um supermercado está fazendo uma promoção de venda de refrigerantes. Se um dia você comprar refrigerantes e levar os cascos vazios no dia seguinte, ela troca cada conjunto de K garrafas vazias por uma garrafa cheia. Um cliente quer aproveitar ao máximo essa oferta e por isso comprou várias garrafas no primeiro dia...
56.714286
430
0.75063
4a08f00bd29971dcfc5975bb62419cdfbe1a31f7
550
py
Python
blog/urls.py
metzondernaam/blog_test
941e6e1382b9a770e2177bf827b7d0006d4c2a07
[ "Unlicense" ]
null
null
null
blog/urls.py
metzondernaam/blog_test
941e6e1382b9a770e2177bf827b7d0006d4c2a07
[ "Unlicense" ]
null
null
null
blog/urls.py
metzondernaam/blog_test
941e6e1382b9a770e2177bf827b7d0006d4c2a07
[ "Unlicense" ]
null
null
null
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'blog.views.home', name='home'), # url(r'^blog/', include('blog.foo.urls')), # Uncommen...
30.555556
71
0.672727
4a08f0ded4852b1cdb544d4191cee9233eb9819b
3,139
py
Python
djangoecommerce/settings.py
rgnaldo/djangoecommerce
ae13378077444af9cf2044acfe867599670e9a59
[ "CC0-1.0" ]
null
null
null
djangoecommerce/settings.py
rgnaldo/djangoecommerce
ae13378077444af9cf2044acfe867599670e9a59
[ "CC0-1.0" ]
null
null
null
djangoecommerce/settings.py
rgnaldo/djangoecommerce
ae13378077444af9cf2044acfe867599670e9a59
[ "CC0-1.0" ]
null
null
null
""" Django settings for djangoecommerce project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ impo...
25.520325
91
0.697674