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
7943a81206a66e9aa6bdf1d7f3ebb7117688a94c
82,500
py
Python
rootfs/usr/lib/python3.2/difflib.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3.2/difflib.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3.2/difflib.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
#! /usr/bin/python3.2 """ Module difflib -- helpers for computing deltas between objects. Function get_close_matches(word, possibilities, n=3, cutoff=0.6): Use SequenceMatcher to return list of the best "good enough" matches. Function context_diff(a, b): For two lists of strings, return a delta in context di...
39.951574
83
0.573721
7943a95a823275ae303fce38cbc724040630f5a7
2,622
py
Python
virtual/lib/python3.6/site-packages/dns/rdataclass.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
2
2021-07-26T15:04:07.000Z
2021-07-26T17:23:08.000Z
virtual/lib/python3.6/site-packages/dns/rdataclass.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
30
2020-07-31T05:23:33.000Z
2022-03-25T11:04:00.000Z
virtual/lib/python3.6/site-packages/dns/rdataclass.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
2
2021-02-26T16:25:00.000Z
2021-03-06T15:45:56.000Z
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # Copyright (C) 2001-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permis...
25.456311
76
0.694508
7943ac674aea293c6ed0ebfff43d53877a99ba13
774
py
Python
Aula 02/[Exercicio 05] Testing information.py
IsaacPSilva/LetsCode
64396ee9fd0ad395598c74c3727a614261e5dd50
[ "MIT" ]
null
null
null
Aula 02/[Exercicio 05] Testing information.py
IsaacPSilva/LetsCode
64396ee9fd0ad395598c74c3727a614261e5dd50
[ "MIT" ]
null
null
null
Aula 02/[Exercicio 05] Testing information.py
IsaacPSilva/LetsCode
64396ee9fd0ad395598c74c3727a614261e5dd50
[ "MIT" ]
null
null
null
'''5. Faça um programa que leia a validade das informações: a. Idade: entre 0 e 150; b. Salário: maior que 0; c. Sexo: M, F ou Outro; O programa deve imprimir uma mensagem de erro para cada informação inválida.''' print('TESTING INFORMATION') print('-'*30) #Input of data age = int(input('Insert the age: ')) if age>=0...
22.114286
59
0.618863
7943ac76a4c7c6ee26fbc1631d05309a6b7fa719
685
py
Python
venv/Lib/site-packages/torch/_VF.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
venv/Lib/site-packages/torch/_VF.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/torch/_VF.py
Westlanderz/AI-Plat1
1187c22819e5135e8e8189c99b86a93a0d66b8d8
[ "MIT" ]
null
null
null
""" This makes the functions in torch._C._VariableFunctions available as torch._VF.<funcname> without mypy being able to find them. A subset of those functions are mapped to ATen functions in torch/jit/_builtins.py See https://github.com/pytorch/pytorch/issues/21478 for the reason for introducing torch._...
22.833333
71
0.705109
7943ad89bc9c903ed683fa5d41eebdd28fd3c0de
5,546
py
Python
molanet/run/base_architecture.py
exaV/molanet
e12e24d8e4788f839a74a2e7310c42180b2419dd
[ "Apache-2.0" ]
null
null
null
molanet/run/base_architecture.py
exaV/molanet
e12e24d8e4788f839a74a2e7310c42180b2419dd
[ "Apache-2.0" ]
3
2017-12-08T18:12:37.000Z
2018-02-25T18:39:41.000Z
molanet/run/base_architecture.py
michaelaerni/ip6-molanet
cb226d3866f86b030fa3951eefdba0da85f0dd92
[ "Apache-2.0" ]
null
null
null
import argparse import logging import os import shutil from datetime import datetime import tensorflow as tf from molanet.base import NetworkTrainer, TrainingOptions from molanet.input import TrainingPipeline, \ EvaluationPipeline, random_rotate_flip_rgb, random_contrast_rgb, random_brightness_rgb from molanet.mo...
42.335878
118
0.674721
7943af335298b418a57d74be68e9f74197fc1b47
6,086
py
Python
tf_agents/bandits/agents/examples/v2/train_eval_stationary_linear.py
Veluga/agents
e436726df11fa5c1c01637b730c7fa6a8fdda1c5
[ "Apache-2.0" ]
2
2021-07-25T11:06:56.000Z
2021-07-25T11:07:02.000Z
tf_agents/bandits/agents/examples/v2/train_eval_stationary_linear.py
shuvoxcd01/agents
c9c690841cd188a2d2d10a4e586a990c075e887d
[ "Apache-2.0" ]
null
null
null
tf_agents/bandits/agents/examples/v2/train_eval_stationary_linear.py
shuvoxcd01/agents
c9c690841cd188a2d2d10a4e586a990c075e887d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TF-Agents 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
38.27673
87
0.733158
7943af4e7b8de138dce98ba3461ae11796d489bb
771
py
Python
src/mission_report/helpers.py
Flyingfox646/flyingfox
fc936ca1c2631a5f9d842d0deae1e197d50e7a96
[ "MIT" ]
null
null
null
src/mission_report/helpers.py
Flyingfox646/flyingfox
fc936ca1c2631a5f9d842d0deae1e197d50e7a96
[ "MIT" ]
null
null
null
src/mission_report/helpers.py
Flyingfox646/flyingfox
fc936ca1c2631a5f9d842d0deae1e197d50e7a96
[ "MIT" ]
null
null
null
import math # http://www.ariel.com.au/a/python-point-int-poly.html def point_in_polygon(point, polygon): x, y = point['x'], point['z'] n = len(polygon) inside = False p1x, _, p1y = polygon[0] for i in range(n + 1): p2x, _, p2y = polygon[i % n] if min(p1y, p2y) < y <= max(p1y, p2y) ...
26.586207
69
0.507134
7943af648e5beebdc3766920a5d9f634375e724f
2,700
py
Python
abusehelper/bots/cleanmx/cleanmxbot.py
heikipikker/abusehelper
c451e36e9927b95ba82253accf170121fce61f4f
[ "MIT" ]
1
2020-04-07T07:01:12.000Z
2020-04-07T07:01:12.000Z
abusehelper/bots/cleanmx/cleanmxbot.py
heikipikker/abusehelper
c451e36e9927b95ba82253accf170121fce61f4f
[ "MIT" ]
null
null
null
abusehelper/bots/cleanmx/cleanmxbot.py
heikipikker/abusehelper
c451e36e9927b95ba82253accf170121fce61f4f
[ "MIT" ]
1
2020-04-07T07:01:13.000Z
2020-04-07T07:01:13.000Z
# -*- coding: utf-8 -*- # In the runtime config: # yield Source("cleanmxbot", csv_url="http://support.clean-mx.de/clean-mx/xmlphishing?response=alive&format=csv&domain=") # yield Source("cleanmxbot", csv_url="http://support.clean-mx.de/clean-mx/xmlviruses?response=alive&format=csv&domain=", csv_name="xmlvirii") """ C...
28.723404
141
0.561852
7943afbd4ce30a106a343db08e25fe296363d9a7
144
py
Python
bot_api/__init__.py
wqzai/QQ-official-guild-bot
19f7ad42cb0e6c3c9541ac6a9ee73116727f7cb2
[ "MIT" ]
null
null
null
bot_api/__init__.py
wqzai/QQ-official-guild-bot
19f7ad42cb0e6c3c9541ac6a9ee73116727f7cb2
[ "MIT" ]
null
null
null
bot_api/__init__.py
wqzai/QQ-official-guild-bot
19f7ad42cb0e6c3c9541ac6a9ee73116727f7cb2
[ "MIT" ]
null
null
null
from .sdk_main import * from . import api from . import models from . import structs from . import utils from .models import BotCallingAPIError
20.571429
38
0.784722
7943afd78364951e40c67dec58adf129e2fd997f
1,493
py
Python
tests/MedianBlurTest.py
spongezhang/maskgen
7284e300d1cb326a5349879de0bace9cfa8788a8
[ "BSD-3-Clause" ]
null
null
null
tests/MedianBlurTest.py
spongezhang/maskgen
7284e300d1cb326a5349879de0bace9cfa8788a8
[ "BSD-3-Clause" ]
null
null
null
tests/MedianBlurTest.py
spongezhang/maskgen
7284e300d1cb326a5349879de0bace9cfa8788a8
[ "BSD-3-Clause" ]
null
null
null
import unittest import os from maskgen import plugins, image_wrap import numpy import tempfile class MedianBlurTestCase(unittest.TestCase): filesToKill = [] def setUp(self): plugins.loadPlugins() def test_something(self): img = numpy.random.randint(0, 255, (500, 500, 3), dtype='uint8') ...
33.177778
81
0.596115
7943b0277758cdcbd0714ce3020cb7a32f47fe34
623
py
Python
nand2vm/seq/bit.py
mlouielu/nand2vm
0c24f49efde8303a157ab658e75f0c081e442ae2
[ "BSD-3-Clause" ]
13
2017-07-04T10:52:12.000Z
2021-07-19T16:13:32.000Z
nand2vm/seq/bit.py
mlouielu/nand2vm
0c24f49efde8303a157ab658e75f0c081e442ae2
[ "BSD-3-Clause" ]
2
2017-07-03T15:53:52.000Z
2017-07-04T03:48:24.000Z
nand2vm/seq/bit.py
mlouielu/nand2vm
0c24f49efde8303a157ab658e75f0c081e442ae2
[ "BSD-3-Clause" ]
1
2021-06-25T17:15:35.000Z
2021-06-25T17:15:35.000Z
# # Copyright (c) 2017 Louie Lu. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # from .clock import ClockPhase from .dff import DFF from .. import gate class Bit(object): def __init__(self): self.d = DFF() self.state = s...
25.958333
79
0.638844
7943b0a7a2b9fb76d3754eba48e5dfb549293033
177
py
Python
routelift_api/roles_and_permissions/urls.py
BitMask-Technologies/route-lift-api
7ac78c6cce523fc5a3852dca7b289fe3a5f3afa8
[ "MIT" ]
null
null
null
routelift_api/roles_and_permissions/urls.py
BitMask-Technologies/route-lift-api
7ac78c6cce523fc5a3852dca7b289fe3a5f3afa8
[ "MIT" ]
7
2021-06-24T16:12:09.000Z
2021-08-05T16:09:22.000Z
routelift_api/roles_and_permissions/urls.py
BitMask-Technologies/route-lift-api
7ac78c6cce523fc5a3852dca7b289fe3a5f3afa8
[ "MIT" ]
null
null
null
from django.urls import path from . import routers urlpatterns = [ path('', routers.staff_role_router), path('/<int:staffRoleId>', routers.single_staff_role_router) ]
19.666667
64
0.728814
7943b1cc78ebeda86c2c12b072674488383c0f15
2,517
py
Python
neo4j/_conf.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
neo4j/_conf.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
neo4j/_conf.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
# Copyright (c) "Neo4j" # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
31.074074
76
0.699245
7943b2997f7dc993f8481d53e35128582a4d28c6
3,739
py
Python
salt/runners/jobs.py
mitsuhiko/salt
3b211f87e307936f43c937edc62207dd1b887e19
[ "Apache-2.0" ]
4
2015-10-06T22:20:27.000Z
2017-09-04T08:03:44.000Z
salt/runners/jobs.py
mitsuhiko/salt
3b211f87e307936f43c937edc62207dd1b887e19
[ "Apache-2.0" ]
null
null
null
salt/runners/jobs.py
mitsuhiko/salt
3b211f87e307936f43c937edc62207dd1b887e19
[ "Apache-2.0" ]
null
null
null
''' A conveniance system to manage jobs, both active and already run ''' # Import Python Modules import os # Import Salt Modules import salt.client import salt.payload import salt.utils from salt._compat import string_types from salt.exceptions import SaltException # Import Third party libs import yaml def active(...
31.158333
83
0.543193
7943b33eb4380ae0f7977a68eaef8facfa66e0c0
7,223
py
Python
rtg/decode_pro.py
XuezheMax/rtg
a4bfc81dc1874c6f43765eb588d1026a2296aa2f
[ "Apache-2.0" ]
15
2019-06-28T21:22:46.000Z
2022-02-03T06:36:43.000Z
rtg/decode_pro.py
XuezheMax/rtg
a4bfc81dc1874c6f43765eb588d1026a2296aa2f
[ "Apache-2.0" ]
23
2019-06-14T19:12:26.000Z
2022-03-15T23:22:14.000Z
rtg/decode_pro.py
XuezheMax/rtg
a4bfc81dc1874c6f43765eb588d1026a2296aa2f
[ "Apache-2.0" ]
8
2019-06-11T19:03:39.000Z
2022-01-09T06:58:23.000Z
# CLI interface to decode task import argparse import sys from argparse import ArgumentDefaultsHelpFormatter as ArgFormatter import torch from pathlib import Path from rtg import TranslationExperiment as Experiment, log, yaml from rtg.module.decoder import Decoder, ReloadEvent from rtg.utils import IO def parse_args...
52.34058
101
0.581476
7943b39fea167258135ce86450f8c8157613d9ff
1,832
py
Python
scripts/05_modules/colorchooser/colorswatch_creatematerials_r19.py
PluginCafe/cinema4d_py_sdk_extended
aea195b47c15e1c94443292e489afe6779b68550
[ "Apache-2.0" ]
85
2019-09-06T22:53:15.000Z
2022-03-27T01:33:09.000Z
scripts/05_modules/colorchooser/colorswatch_creatematerials_r19.py
PluginCafe/cinema4d_py_sdk_extended
aea195b47c15e1c94443292e489afe6779b68550
[ "Apache-2.0" ]
11
2019-09-03T22:59:19.000Z
2022-02-27T03:42:52.000Z
scripts/05_modules/colorchooser/colorswatch_creatematerials_r19.py
PluginCafe/cinema4d_py_sdk_extended
aea195b47c15e1c94443292e489afe6779b68550
[ "Apache-2.0" ]
31
2019-09-09T09:35:35.000Z
2022-03-28T09:08:47.000Z
""" Copyright: MAXON Computer GmbH Author: Maxime Adam Description: - Reads all the colors from the first swatch group in the active document and creates material for each one. Class/method highlighted: - c4d.modules.colorchooser.SwatchData - c4d.modules.colorchooser.SwatchGroup """ import c4d def main...
31.050847
112
0.702511
7943b55ebcd4a7581b260d2ae0be079fff46cbb2
1,006
py
Python
models/bare/conv4.py
sdamadi/image-classification
2f38dc3c64c733f1ce820d09fe9d5f6dbf988f97
[ "MIT" ]
3
2021-12-13T13:05:58.000Z
2022-03-23T09:14:13.000Z
models/bare/conv4.py
sdamadi/image-classification
2f38dc3c64c733f1ce820d09fe9d5f6dbf988f97
[ "MIT" ]
null
null
null
models/bare/conv4.py
sdamadi/image-classification
2f38dc3c64c733f1ce820d09fe9d5f6dbf988f97
[ "MIT" ]
1
2021-12-31T04:00:45.000Z
2021-12-31T04:00:45.000Z
import torch import torch.nn as nn class Conv4(nn.Module): def __init__(self, in_ch, imgsz, num_classes=10): super(Conv4, self).__init__() self.conv1 = nn.Conv2d(in_ch, 64, kernel_size=(3, 3), stride=1, padding=1) self.conv2 = nn.Conv2d(64, 64, kernel_size=(3, 3), stride=1, padding=1) self.conv3 = nn...
35.928571
78
0.626243
7943b59a44a70785844a266fa6cdc7373bff767e
117,318
py
Python
tests/migrations/test_operations.py
bak1an/django
98bcc5d81bca578f3a5b4d47907ba4ac40446887
[ "PSF-2.0", "BSD-3-Clause" ]
1
2018-09-22T20:35:14.000Z
2018-09-22T20:35:14.000Z
tests/migrations/test_operations.py
seanfagan/django
66bbde6819586cc3a75630e12e569dc8ae72f211
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/migrations/test_operations.py
seanfagan/django
66bbde6819586cc3a75630e12e569dc8ae72f211
[ "PSF-2.0", "BSD-3-Clause" ]
1
2017-02-28T17:05:19.000Z
2017-02-28T17:05:19.000Z
import unittest from django.db import connection, migrations, models, transaction from django.db.migrations.migration import Migration from django.db.migrations.operations import CreateModel from django.db.migrations.state import ModelState, ProjectState from django.db.models.fields import NOT_PROVIDED from django.db....
48.081148
118
0.640814
7943b59eb1c4ae9effe4dc644bf84349fad04ce8
4,268
py
Python
keystone/policy/core.py
jamielennox/keystone
b33cbef7841f00aa6bd103f2a76409bda6f86169
[ "Apache-2.0" ]
null
null
null
keystone/policy/core.py
jamielennox/keystone
b33cbef7841f00aa6bd103f2a76409bda6f86169
[ "Apache-2.0" ]
null
null
null
keystone/policy/core.py
jamielennox/keystone
b33cbef7841f00aa6bd103f2a76409bda6f86169
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.705036
77
0.687441
7943b778654752a944d718966f86db64ecbf4134
575
py
Python
bench-scripts/bench_histogram_nominal.py
holmes-anonymous-submission/holmes-library
35d01400c6694681ed61b2b3e1f6c7eb6b660e90
[ "MIT" ]
null
null
null
bench-scripts/bench_histogram_nominal.py
holmes-anonymous-submission/holmes-library
35d01400c6694681ed61b2b3e1f6c7eb6b660e90
[ "MIT" ]
null
null
null
bench-scripts/bench_histogram_nominal.py
holmes-anonymous-submission/holmes-library
35d01400c6694681ed61b2b3e1f6c7eb6b660e90
[ "MIT" ]
null
null
null
#!/usr/bin/env python from common import * configure_network() subprocess.run(["cmake", "."]) subprocess.run(["make"]) print("running the bench_histogram_nominal") num_records = 100000 print("running the case for " + str(num_records) + " entries") time.sleep(5) for i in range(5): num_groups = 10 + 10 * i wr...
30.263158
103
0.711304
7943b86116fd32742e340520d94c0306403b6cdd
2,470
pyw
Python
venv/Lib/site-packages/PyQt4/examples/script/helloscript.pyw
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
1
2022-03-16T02:10:30.000Z
2022-03-16T02:10:30.000Z
venv/Lib/site-packages/PyQt4/examples/script/helloscript.pyw
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyQt4/examples/script/helloscript.pyw
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
2
2019-05-28T11:58:59.000Z
2020-09-23T17:21:19.000Z
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2010 Riverbank Computing Limited. ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ## All rights reserved. ## ## This file is part of the examples of PyQt. ## ## $QT_BEGIN_LICENS...
39.206349
77
0.703239
7943b96017a0e082994b3d97986a96569ac29b43
1,248
py
Python
restexpress/setup.py
oberhamsi/FrameworkBenchmarks
660a66d51a9aad10b43c0660208fb13c098121af
[ "BSD-3-Clause" ]
4
2015-01-22T02:13:03.000Z
2018-06-13T12:02:46.000Z
frameworks/Java/restexpress/setup.py
ratpack/FrameworkBenchmarks
81604309e46e382fe2ffb7970a87d728f20c8be6
[ "BSD-3-Clause" ]
null
null
null
frameworks/Java/restexpress/setup.py
ratpack/FrameworkBenchmarks
81604309e46e382fe2ffb7970a87d728f20c8be6
[ "BSD-3-Clause" ]
null
null
null
import subprocess import sys import setup_util import os def start(args, logfile, errfile): setup_util.replace_text("restexpress/config/dev/environment.properties", "mongodb:\/\/.*\/hello_world", "mongodb://" + args.database_host + "/hello_world") setup_util.replace_text("restexpress/config/dev/environment.proper...
48
157
0.721955
7943ba4a92e516a09a5d8885736604a7fcda8127
4,640
py
Python
formulaic/rules.py
Govexec/django-formulaic
b9516a963673cb21279a2ecdf62a199b9203d538
[ "MIT" ]
1
2021-08-20T04:21:20.000Z
2021-08-20T04:21:20.000Z
formulaic/rules.py
Govexec/django-formulaic
b9516a963673cb21279a2ecdf62a199b9203d538
[ "MIT" ]
4
2020-12-05T00:31:40.000Z
2021-09-22T20:06:53.000Z
formulaic/rules.py
Govexec/django-formulaic
b9516a963673cb21279a2ecdf62a199b9203d538
[ "MIT" ]
1
2020-12-04T19:16:36.000Z
2020-12-04T19:16:36.000Z
from six import iteritems from formulaic import exceptions class RuleAssessor(object): """ Mimics the Rule implementation found in JavaScript to toggle validation on and off for fields depending on if they're supposed to be visible to the user. """ def __init__(self, rules_data, form_fields,...
29.18239
107
0.619828
7943bb5ed91f6a8c196c8a93ab0867332e3ee6c2
5,608
py
Python
tests/test_4_check_word.py
Duckbilled/ebook-reader-dict
0a9131db89d353b686bb25459a62cb6c3c4ffb2c
[ "MIT" ]
null
null
null
tests/test_4_check_word.py
Duckbilled/ebook-reader-dict
0a9131db89d353b686bb25459a62cb6c3c4ffb2c
[ "MIT" ]
null
null
null
tests/test_4_check_word.py
Duckbilled/ebook-reader-dict
0a9131db89d353b686bb25459a62cb6c3c4ffb2c
[ "MIT" ]
null
null
null
from unittest.mock import patch from wikidict import check_word def test_simple(): assert check_word.main("fr", "vendre") == 0 def test_word_of_the_day(): assert check_word.main("fr", "") == 0 def test_etymology_list(): assert check_word.main("fr", "bath") == 0 def test_sublist(): assert check_...
33.380952
387
0.660128
7943bbc2b516fe0274409cfa4ba3e5bd4c33cdac
6,495
py
Python
admin/deadeye/models.py
strykeforce/deadeye
09d791e5fe0677f4d1890c7fc86ab2075725cca7
[ "MIT" ]
1
2020-01-30T05:21:37.000Z
2020-01-30T05:21:37.000Z
admin/deadeye/models.py
strykeforce/deadeye
09d791e5fe0677f4d1890c7fc86ab2075725cca7
[ "MIT" ]
31
2019-10-14T10:11:02.000Z
2022-03-27T20:05:45.000Z
admin/deadeye/models.py
strykeforce/deadeye
09d791e5fe0677f4d1890c7fc86ab2075725cca7
[ "MIT" ]
null
null
null
# pylint: disable=no-member import json import time from urllib.parse import urlparse from flask import current_app from networktables import NetworkTables, NetworkTablesInstance class Unit: units = {} api = None def __init__(self, unit_id, camera_inums): self.cameras = {} self.id = uni...
31.225962
90
0.589376
7943bc3f0544b57846d37b79f75e0994cdd5ca5f
9,175
py
Python
spinupImplementation/utils/plot.py
PeterChauYEG/spinningupImplementations
d521d27df17bf77b087da09adff2a49fc1588a9f
[ "MIT" ]
null
null
null
spinupImplementation/utils/plot.py
PeterChauYEG/spinningupImplementations
d521d27df17bf77b087da09adff2a49fc1588a9f
[ "MIT" ]
null
null
null
spinupImplementation/utils/plot.py
PeterChauYEG/spinningupImplementations
d521d27df17bf77b087da09adff2a49fc1588a9f
[ "MIT" ]
null
null
null
import seaborn as sns import pandas as pd import matplotlib.pyplot as plt import json import os import os.path as osp import numpy as np DIV_LINE_WIDTH = 50 # Global vars for tracking and labeling data at load time. exp_idx = 0 units = dict() def plot_data(data, xaxis='Epoch', value="AverageEpRet", condition="Condit...
40.418502
106
0.629101
7943bcf77f15ae76020dff23302530d5c3775880
407
py
Python
step9/src/data/version1/BeaconTypeV1.py
pip-services-samples/sample-beacons-python
a117054b1029a6284b9eb304f232088bb997456c
[ "MIT" ]
null
null
null
step9/src/data/version1/BeaconTypeV1.py
pip-services-samples/sample-beacons-python
a117054b1029a6284b9eb304f232088bb997456c
[ "MIT" ]
null
null
null
step9/src/data/version1/BeaconTypeV1.py
pip-services-samples/sample-beacons-python
a117054b1029a6284b9eb304f232088bb997456c
[ "MIT" ]
1
2020-08-03T13:12:26.000Z
2020-08-03T13:12:26.000Z
# -*- coding: utf-8 -*- """ step9.data.version1.BeaconTypeV1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Beacon Type class :copyright: Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ class BeaconTypeV1: Unknown = "unknown" ...
22.611111
89
0.604423
7943bd4dd996d3876298eb810f9261fe24193ac8
1,780
py
Python
test_service.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-dcam4
10e19f7cdf87fcd799c48a53eea1c988574f57ce
[ "MIT" ]
null
null
null
test_service.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-dcam4
10e19f7cdf87fcd799c48a53eea1c988574f57ce
[ "MIT" ]
1
2018-10-20T05:13:48.000Z
2018-10-20T05:13:48.000Z
test_service.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-dcam4
10e19f7cdf87fcd799c48a53eea1c988574f57ce
[ "MIT" ]
null
null
null
import unittest from service import Service from mock import patch class TestService(unittest.TestCase): def setUp(self): self.service = Service() @patch('service.Service.bad_random') def test_bad_random(self, mock_bad_random): mock_bad_random.return_value = 20 #ch...
22.820513
69
0.543258
7943bdb77bb69352f6c8b0760c6f14d11eb7c0b9
19,763
py
Python
g2p_seq2seq/g2p_problem.py
b00f/g2p-seq2seq
96c3e36754b9a4571d6416446a24c5eef2171128
[ "Apache-2.0" ]
661
2016-04-27T05:47:54.000Z
2022-03-20T08:42:43.000Z
g2p_seq2seq/g2p_problem.py
b00f/g2p-seq2seq
96c3e36754b9a4571d6416446a24c5eef2171128
[ "Apache-2.0" ]
189
2016-04-28T20:10:18.000Z
2021-08-19T02:04:34.000Z
g2p_seq2seq/g2p_problem.py
b00f/g2p-seq2seq
96c3e36754b9a4571d6416446a24c5eef2171128
[ "Apache-2.0" ]
219
2016-04-30T23:58:45.000Z
2022-03-09T16:05:37.000Z
# Copyright 2016 AC Technologies LLC. 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...
37.932821
80
0.681071
7943bdd0f4b5e55f8c3c1ee2f3e60e57f423024b
57
py
Python
kerascv/examples/voc_12_download.py
tanzhenyu/keras-cv
b7208ee25735c492ccc171874e34076111dcf637
[ "Apache-2.0" ]
null
null
null
kerascv/examples/voc_12_download.py
tanzhenyu/keras-cv
b7208ee25735c492ccc171874e34076111dcf637
[ "Apache-2.0" ]
null
null
null
kerascv/examples/voc_12_download.py
tanzhenyu/keras-cv
b7208ee25735c492ccc171874e34076111dcf637
[ "Apache-2.0" ]
null
null
null
import tensorflow_datasets as tfds tfds.load('voc/2012')
19
34
0.807018
7943c192fe8b15cc93391b3595562a1114a7117d
2,697
py
Python
src/signer/eth/signer.py
Leibniz137/EthereumBridge
4b82a68cdc09e5ea79ec2fbf87aa065a2a3a5ffa
[ "MIT" ]
null
null
null
src/signer/eth/signer.py
Leibniz137/EthereumBridge
4b82a68cdc09e5ea79ec2fbf87aa065a2a3a5ffa
[ "MIT" ]
null
null
null
src/signer/eth/signer.py
Leibniz137/EthereumBridge
4b82a68cdc09e5ea79ec2fbf87aa065a2a3a5ffa
[ "MIT" ]
null
null
null
from threading import Thread, Event from time import sleep from src.contracts.ethereum.event_listener import EthEventListener from src.contracts.ethereum.multisig_wallet import MultisigWallet from src.signer.eth.impl import EthSignerImpl from src.util.config import Config from src.util.crypto_store.crypto_manager impo...
38.528571
118
0.687801
7943c1ba5c70403f8e97dfc777520fd4b6abca25
201
py
Python
Coursera/CICCP1/primalidade.py
marcelomiky/python_code
4b843c78e16c37e981e4adfe47ae974ee0f2ad81
[ "MIT" ]
2
2020-10-19T13:53:59.000Z
2021-08-05T19:48:07.000Z
Coursera/CICCP1/primalidade.py
marcelomiky/PythonCodes
07f0db8019805b3b9567b7b57ddb49b4333a3aa2
[ "MIT" ]
null
null
null
Coursera/CICCP1/primalidade.py
marcelomiky/PythonCodes
07f0db8019805b3b9567b7b57ddb49b4333a3aa2
[ "MIT" ]
null
null
null
x = int(input('Insira um número inteiro positivo:')) divisores = 0 for i in range(1, x): if x % i == 0: divisores += 1 if divisores >= 2: print('não primo') else: print('primo')
15.461538
52
0.572139
7943c306dcd128b0eb78bacb2a294f5f1a071b7f
9,765
py
Python
docs/conf.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
10
2015-09-15T05:16:15.000Z
2020-03-18T02:34:39.000Z
docs/conf.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
334
2015-02-11T23:45:00.000Z
2020-02-28T08:58:51.000Z
docs/conf.py
hthompson6/a10-neutron-lbaas
f1639758cd3abcc6c86c8e6b64dcb0397c359621
[ "Apache-2.0" ]
24
2015-01-13T21:14:45.000Z
2021-06-02T17:22:14.000Z
# -*- coding: utf-8 -*- # # A10 Openstack documentation build configuration file, created by # sphinx-quickstart on Wed Apr 20 19:30:55 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file....
32.989865
80
0.722171
7943c34d5f4d8ec022c72eb4522fb59aef9e7d29
6,284
py
Python
landmark/models/mobilefacenet.py
greedpejo/FER_SPRING
622d093da579d17e167f2771da4fb3365824cdd3
[ "MIT" ]
433
2020-04-02T04:24:50.000Z
2022-03-21T12:57:53.000Z
landmark/models/mobilefacenet.py
greedpejo/FER_SPRING
622d093da579d17e167f2771da4fb3365824cdd3
[ "MIT" ]
35
2020-04-09T02:13:52.000Z
2022-03-07T07:48:10.000Z
landmark/models/mobilefacenet.py
greedpejo/FER_SPRING
622d093da579d17e167f2771da4fb3365824cdd3
[ "MIT" ]
72
2020-04-02T21:57:37.000Z
2022-01-10T02:50:33.000Z
from torch.nn import Linear, Conv2d, BatchNorm1d, BatchNorm2d, PReLU, ReLU, Sigmoid, Dropout2d, Dropout, AvgPool2d, MaxPool2d, AdaptiveAvgPool2d, Sequential, Module, Parameter import torch.nn.functional as F import torch import torch.nn as nn from collections import namedtuple import math import pdb ##################...
39.275
175
0.58275
7943c67c61599df8b5c24b600e482e73be5973fd
274
py
Python
users/permissions.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
1
2022-01-30T10:50:14.000Z
2022-01-30T10:50:14.000Z
users/permissions.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
47
2022-02-02T22:07:28.000Z
2022-03-30T13:53:37.000Z
users/permissions.py
tgamauf/spritstat
849526ec8dec46c57194d50ff3b32c16d0cb684a
[ "MIT" ]
null
null
null
from rest_framework import permissions class IsOwner(permissions.BasePermission): """ Custom permission to only allow owners of an object to view or edit it. """ def has_object_permission(self, request, view, obj): return obj.user == request.user
24.909091
75
0.711679
7943c6ce3e9ed2545d9a0ab661efa5022c630c05
1,066
py
Python
pushcast/pcfilter.py
anotherpyr/pushmac
44e87cf6642c59465fc84c8e564829d33a2006ca
[ "Apache-2.0" ]
null
null
null
pushcast/pcfilter.py
anotherpyr/pushmac
44e87cf6642c59465fc84c8e564829d33a2006ca
[ "Apache-2.0" ]
null
null
null
pushcast/pcfilter.py
anotherpyr/pushmac
44e87cf6642c59465fc84c8e564829d33a2006ca
[ "Apache-2.0" ]
null
null
null
''' Created on Aug 24, 2015 @author: anotherpyr ''' class SimpleDescription(): def filter(self, lines): output = u"" append = False for k in range(0, len(lines)): line = lines[k] # Remove excess URLs from descriptions if line.find(":...
27.333333
53
0.407129
7943c7f8c30524dbca6c55e6c847544a19bd29ba
6,803
py
Python
lit_nlp/lib/wsgi_app.py
bigprince97/lit
cd221e2e6fa02518ccd2fda17d43074939d952a3
[ "Apache-2.0" ]
2
2020-08-27T06:12:30.000Z
2020-08-27T06:13:08.000Z
lit_nlp/lib/wsgi_app.py
screwdriver66/lit
a40ef90b514383fb78b3f8742aea31135445693e
[ "Apache-2.0" ]
null
null
null
lit_nlp/lib/wsgi_app.py
screwdriver66/lit
a40ef90b514383fb78b3f8742aea31135445693e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.089623
80
0.657504
7943c83a843e00548170e79563c3645c1a2669e9
2,140
py
Python
binho/binhoHostAdapter.py
pixelfelon/binho-python-package
92f4898722f0578973cb672d1387fbea6cb7bb3d
[ "BSD-3-Clause" ]
4
2021-03-11T12:40:27.000Z
2022-02-01T10:08:20.000Z
binho/binhoHostAdapter.py
pixelfelon/binho-python-package
92f4898722f0578973cb672d1387fbea6cb7bb3d
[ "BSD-3-Clause" ]
1
2021-11-26T10:20:18.000Z
2021-11-30T14:25:56.000Z
binho/binhoHostAdapter.py
pixelfelon/binho-python-package
92f4898722f0578973cb672d1387fbea6cb7bb3d
[ "BSD-3-Clause" ]
2
2021-02-28T00:39:39.000Z
2021-04-05T12:45:56.000Z
from .device import binhoDevice from .devices import nova # pylint: disable=unused-import # Ensure that we have access to all Binho host adapter devices. Normally, we'd avoid # importing an entire namespace, but in this case, this allows us to ensure # that all board modules are loaded for autoidentification. from .e...
37.54386
115
0.734579
7943c84e63e15045ad36ea2542a48f3fd21ce1d5
4,118
py
Python
demo/demo/settings.py
mwj9446/MWJ_python
48a152803249a62cbedff1a4e7f8367ea861ede5
[ "MIT" ]
null
null
null
demo/demo/settings.py
mwj9446/MWJ_python
48a152803249a62cbedff1a4e7f8367ea861ede5
[ "MIT" ]
null
null
null
demo/demo/settings.py
mwj9446/MWJ_python
48a152803249a62cbedff1a4e7f8367ea861ede5
[ "MIT" ]
null
null
null
""" Django settings for demo project. Generated by 'django-admin startproject' using Django 1.11.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
27.637584
91
0.673871
7943c929266ff7cf0baff3e98fb9bc8a61155826
987
py
Python
hwtHls/platform/opRealizationMeta.py
Nic30/hwtHls
1fac6ed128318e698d51e15e9871249ddf243e1c
[ "MIT" ]
8
2018-09-25T03:28:11.000Z
2021-12-15T07:44:38.000Z
hwtHls/platform/opRealizationMeta.py
Nic30/hwtHls
1fac6ed128318e698d51e15e9871249ddf243e1c
[ "MIT" ]
1
2020-12-21T10:56:44.000Z
2020-12-21T10:56:44.000Z
hwtHls/platform/opRealizationMeta.py
Nic30/hwtHls
1fac6ed128318e698d51e15e9871249ddf243e1c
[ "MIT" ]
2
2018-09-25T03:28:18.000Z
2021-12-15T10:28:35.000Z
class OpRealizationMeta(): """ :ivar in_cycles_offset: number of cycles from component first cycle when the input is accepted :ivar latency_pre: minimal amount of time until next clock cycle :ivar latency_post: time required to stabilize output value after clock cycle :ivar cycles_latency: number ...
39.48
98
0.742655
7943cae5f0b20dd8f424d31b0b38bc6da0464e63
108
py
Python
yt_dlp/version.py
git-anony-mouse/yt-dlp
6da22e7d4f1ffcda3f802da3e56ac6e171095388
[ "Unlicense" ]
1
2021-12-25T10:22:59.000Z
2021-12-25T10:22:59.000Z
yt_dlp/version.py
git-anony-mouse/yt-dlp
6da22e7d4f1ffcda3f802da3e56ac6e171095388
[ "Unlicense" ]
null
null
null
yt_dlp/version.py
git-anony-mouse/yt-dlp
6da22e7d4f1ffcda3f802da3e56ac6e171095388
[ "Unlicense" ]
null
null
null
# Autogenerated by devscripts/update-version.py __version__ = '2021.12.25' RELEASE_GIT_HEAD = '87e049962'
18
47
0.777778
7943cd0717675a774dbe1e28d49b4461b94902a5
332
py
Python
AppPkg/Applications/Python/Python-2.7.2/Lib/test/infinite_reload.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/test/infinite_reload.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/test/infinite_reload.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# For testing http://python.org/sf/742342, which reports that Python # segfaults (infinite recursion in C) in the presence of infinite # reload()ing. This module is imported by test_import.py:test_infinite_reload # to make sure this doesn't happen any more. import imp import infinite_reload imp.reload(infini...
36.888889
79
0.771084
7943cd2e5d949d4f95cac104cd86bdde812e6cb3
1,043
py
Python
src/config/middleware.py
vaporyorg/safe-config-service
b90d0dce0a528738859d42e90766f621ca37e89c
[ "MIT" ]
null
null
null
src/config/middleware.py
vaporyorg/safe-config-service
b90d0dce0a528738859d42e90766f621ca37e89c
[ "MIT" ]
40
2021-06-14T06:56:59.000Z
2022-03-21T10:07:27.000Z
src/config/middleware.py
vaporyorg/safe-config-service
b90d0dce0a528738859d42e90766f621ca37e89c
[ "MIT" ]
null
null
null
import logging import time from django.http import HttpRequest class LoggingMiddleware: def __init__(self, get_response): self.get_response = get_response self.logger = logging.getLogger("LoggingMiddleware") @staticmethod def get_milliseconds_now(): return int(time.time() * 1000)...
27.447368
60
0.571429
7943cd72a638ac648c144e3cfa0a08f8b2a8ed55
1,594
py
Python
tests/test_execution.py
bpannier/TahomaProtocol
be78f68be8776134a2923389aa3e31cce445b676
[ "Apache-2.0" ]
3
2016-08-30T09:02:08.000Z
2018-01-09T09:35:55.000Z
tests/test_execution.py
bpannier/TahomaProtocol
be78f68be8776134a2923389aa3e31cce445b676
[ "Apache-2.0" ]
null
null
null
tests/test_execution.py
bpannier/TahomaProtocol
be78f68be8776134a2923389aa3e31cce445b676
[ "Apache-2.0" ]
null
null
null
import unittest from tahoma.execution import Execution from tahoma.eventState import EventState class TestExecution(unittest.TestCase): def test_parse(self): data = { "startTime": 1448329821365, "owner": "me@some.com", "actionGroup": { "label": "DeviceN...
36.227273
82
0.556462
7943cda13881dc8f37bbbdde6b0f2c3c81b4c748
515
py
Python
env/lib/python3.8/site-packages/plotly/validators/parcoords/line/colorbar/_ticklen.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/parcoords/line/colorbar/_ticklen.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/parcoords/line/colorbar/_ticklen.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="ticklen", parent_name="parcoords.line.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, paren...
32.1875
84
0.629126
7943ce3232027e9c0568463f9b27b52d0c14aca9
2,493
py
Python
jax/abstract_arrays.py
aldragan0/jax
3ddd3905a4c8f59480c43c24bb1f9374238bb2a0
[ "ECL-2.0", "Apache-2.0" ]
1
2021-07-08T16:58:56.000Z
2021-07-08T16:58:56.000Z
jax/abstract_arrays.py
aldragan0/jax
3ddd3905a4c8f59480c43c24bb1f9374238bb2a0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/abstract_arrays.py
aldragan0/jax
3ddd3905a4c8f59480c43c24bb1f9374238bb2a0
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-17T18:17:31.000Z
2020-07-17T18:17:31.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.376623
74
0.764541
7943ce3f07cb07214649b36ee85a6c003703d9cc
123
py
Python
ukb/weak_supervision/numbskull/numbskull/__init__.py
wi905252/ukb-cardiac-mri
3177dde898a65b1d7f385b78e4f134de3852bea5
[ "Apache-2.0" ]
19
2018-05-30T22:13:17.000Z
2022-01-18T14:04:40.000Z
ukb/weak_supervision/numbskull/numbskull/__init__.py
wi905252/ukb-cardiac-mri
3177dde898a65b1d7f385b78e4f134de3852bea5
[ "Apache-2.0" ]
1
2019-08-07T07:29:07.000Z
2019-08-07T08:54:10.000Z
ukb/weak_supervision/numbskull/numbskull/__init__.py
wi905252/ukb-cardiac-mri
3177dde898a65b1d7f385b78e4f134de3852bea5
[ "Apache-2.0" ]
8
2019-07-03T23:19:43.000Z
2021-11-15T17:09:24.000Z
"""TODO.""" from .numbskull import NumbSkull from .numbskull import main __all__ = ('numbskull', 'factorgraph', 'timer')
17.571429
47
0.707317
7943cfe26e97bc043278d8f170a11cae053eb661
5,332
py
Python
models/pointnet_seg_svm.py
OmidPoursaeed/Self_supervised_Learning_Point_Clouds
4f684cc761347f329eb967823f80522a8a3aedc0
[ "MIT" ]
11
2020-12-16T16:27:36.000Z
2021-12-01T04:07:56.000Z
models/pointnet_seg_svm.py
OmidPoursaeed/Self_supervised_Learning_Point_Clouds
4f684cc761347f329eb967823f80522a8a3aedc0
[ "MIT" ]
2
2021-02-09T11:35:01.000Z
2021-08-06T01:39:42.000Z
models/pointnet_seg_svm.py
OmidPoursaeed/Self_supervised_Learning_Point_Clouds
4f684cc761347f329eb967823f80522a8a3aedc0
[ "MIT" ]
1
2021-08-05T14:07:51.000Z
2021-08-05T14:07:51.000Z
import tensorflow as tf import numpy as np import math import sys import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) sys.path.append(os.path.join(BASE_DIR, '../utils')) import tf_util from transform_nets import input_transform_net, feature_transform_net def placeholder_inputs(bat...
43
117
0.589085
7943d003750fc6b2887903922762b0e1e8f657fb
3,508
py
Python
middlewear/parallel_proces.py
astronaut71/KU-TII
f46e493bb1ffe83dbcc9aa21deb5a8fb219e088b
[ "MIT" ]
null
null
null
middlewear/parallel_proces.py
astronaut71/KU-TII
f46e493bb1ffe83dbcc9aa21deb5a8fb219e088b
[ "MIT" ]
null
null
null
middlewear/parallel_proces.py
astronaut71/KU-TII
f46e493bb1ffe83dbcc9aa21deb5a8fb219e088b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sys import ps1 import rospy import numpy as np from os import system import time import threading import Microcontroller_Manager_Serial as Serial import IMU_Functions as IMU import Pressure_Functions as Pressure import Modem_Functions as Modem import threading import time from time import...
28.991736
163
0.663056
7943d1498bbbf0e253d96160d9480e4d052d6cb8
17,166
py
Python
tests/test_attributes_managers.py
srama2512/habitat-sim
1a0a36451bc0a94c98d9f9fa497b4c3cfc095638
[ "MIT" ]
1
2022-01-22T09:04:44.000Z
2022-01-22T09:04:44.000Z
tests/test_attributes_managers.py
Shubodh/habitat-sim
83b97f42199855e63407d898e20e99780dfc79c0
[ "MIT" ]
null
null
null
tests/test_attributes_managers.py
Shubodh/habitat-sim
83b97f42199855e63407d898e20e99780dfc79c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import magnum as mn import examples.settings import habitat_sim def perform_general_tests(attr_mgr, search_string): # get size of template library orig_num_templates = attr_mgr.get_num_templates() # make sure this is same value as size of template handles list assert orig_num_...
40.390588
88
0.743446
7943d16639e24add06156081e9fee532c520fc82
9,523
py
Python
geokit/test/test_03_geom.py
ENSYSTRA/geokit
510ec5c3fe3c034f1dff776c813eb28c6cd07c40
[ "MIT" ]
null
null
null
geokit/test/test_03_geom.py
ENSYSTRA/geokit
510ec5c3fe3c034f1dff776c813eb28c6cd07c40
[ "MIT" ]
null
null
null
geokit/test/test_03_geom.py
ENSYSTRA/geokit
510ec5c3fe3c034f1dff776c813eb28c6cd07c40
[ "MIT" ]
null
null
null
from .helpers import MASK_DATA, np, pointInAachen3035, pointsInAachen4326, EPSG3035, EPSG4326, POLY, GEOM, SUB_GEOMS, SUB_GEOM, result from geokit import geom import matplotlib.pyplot as plt import pytest import pandas as pd # box def test_box(): # fun func b1 = geom.box(0, 0, 5, 10, srs=EPSG3035) assert...
33.297203
134
0.59393
7943d166bc52544970d236e9d18710ad17117dec
807
bzl
Python
bazel/cc_fuzz_target.bzl
bianpengyuan/opencensus-cpp
4ffcd168f165d9fc44b4581337275a071ff7a0da
[ "Apache-2.0" ]
139
2017-08-15T01:03:37.000Z
2022-02-10T11:53:30.000Z
bazel/cc_fuzz_target.bzl
bianpengyuan/opencensus-cpp
4ffcd168f165d9fc44b4581337275a071ff7a0da
[ "Apache-2.0" ]
235
2017-12-12T09:28:12.000Z
2022-03-30T06:36:14.000Z
bazel/cc_fuzz_target.bzl
bianpengyuan/opencensus-cpp
4ffcd168f165d9fc44b4581337275a071ff7a0da
[ "Apache-2.0" ]
68
2017-11-08T02:35:56.000Z
2022-03-28T21:27:21.000Z
# Copyright 2019, OpenCensus 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 to in w...
33.625
74
0.748451
7943d1f2c2c0a40a25e16c3b82d6ba25b405da03
632
py
Python
edd/rest/paginators.py
TeselaGen/jbei-edd
92792fb30bbd504143b2f75bf08d05b141a7ef6f
[ "BSD-3-Clause-LBNL" ]
null
null
null
edd/rest/paginators.py
TeselaGen/jbei-edd
92792fb30bbd504143b2f75bf08d05b141a7ef6f
[ "BSD-3-Clause-LBNL" ]
null
null
null
edd/rest/paginators.py
TeselaGen/jbei-edd
92792fb30bbd504143b2f75bf08d05b141a7ef6f
[ "BSD-3-Clause-LBNL" ]
null
null
null
from rest_framework.pagination import PageNumberPagination from jbei.rest.clients.edd.api import ( DEFAULT_PAGE_SIZE, PAGE_NUMBER_URL_PARAM, PAGE_SIZE_QUERY_PARAM, ) class ClientConfigurablePagination(PageNumberPagination): """ Overrides defaults to enable client-configurable control (up to a limit) of r...
35.111111
99
0.787975
7943d3054d3bd7e3d2dd13662f10719a0c4b996a
99
py
Python
test/arena1/generator.py
da-x/crumb
ff2bd8a38949c50a4bdb590ea98804b386402a53
[ "BSD-3-Clause" ]
1
2015-01-22T18:45:32.000Z
2015-01-22T18:45:32.000Z
test/arena1/generator.py
da-x/crumb
ff2bd8a38949c50a4bdb590ea98804b386402a53
[ "BSD-3-Clause" ]
null
null
null
test/arena1/generator.py
da-x/crumb
ff2bd8a38949c50a4bdb590ea98804b386402a53
[ "BSD-3-Clause" ]
null
null
null
import someimport import sys someimport.knows_how_to_generate(sys.argv[1], "and-another-dep.txt")
19.8
68
0.808081
7943d3bcf77eb7a09f1ac2b821d5e95cc36b4f25
1,332
py
Python
market_maker/lion_fx/update.py
teacup123123/fx-predictor
5c25b6f0cb5435a2294262f4ac2681b38abb1dac
[ "MIT" ]
null
null
null
market_maker/lion_fx/update.py
teacup123123/fx-predictor
5c25b6f0cb5435a2294262f4ac2681b38abb1dac
[ "MIT" ]
null
null
null
market_maker/lion_fx/update.py
teacup123123/fx-predictor
5c25b6f0cb5435a2294262f4ac2681b38abb1dac
[ "MIT" ]
null
null
null
import requests from quick_query.xe import grab import os _dir, _ = os.path.split(__file__) file = r'data_lionfx_swap.csv' # manually downloaded from https://hirose-fx.co.jp/swap/lionfx_swap.csv def update_swap_data(): got = requests.get(r'https://hirose-fx.co.jp/swap/lionfx_swap.csv') string = got.conten...
27.75
103
0.585586
7943d56193072cf119970d9c0e719d7caa7e3e22
2,165
py
Python
test/test_matmul.py
vishalbelsare/pytorch_sparse
efc98089dde782f3600a60265c1013e0f002465d
[ "MIT" ]
623
2018-07-29T10:45:05.000Z
2022-03-29T04:35:08.000Z
test/test_matmul.py
vishalbelsare/pytorch_sparse
efc98089dde782f3600a60265c1013e0f002465d
[ "MIT" ]
201
2018-08-15T14:11:03.000Z
2022-03-31T14:14:01.000Z
test/test_matmul.py
vishalbelsare/pytorch_sparse
efc98089dde782f3600a60265c1013e0f002465d
[ "MIT" ]
101
2018-10-14T04:08:11.000Z
2022-03-23T21:33:37.000Z
from itertools import product import pytest import torch from torch_sparse.matmul import matmul from torch_sparse.tensor import SparseTensor import torch_scatter from .utils import reductions, devices, grad_dtypes @pytest.mark.parametrize('dtype,device,reduce', product(grad_dtypes, devices...
31.376812
73
0.642032
7943d6af152456334b359a441712f2d2fd8afda1
3,241
py
Python
monai/config/deviceconfig.py
ntenenz/MONAI
e7bdea0934ad08ef47de183eaa558942962fbaf4
[ "Apache-2.0" ]
2
2020-06-23T16:03:45.000Z
2020-06-25T05:30:45.000Z
monai/config/deviceconfig.py
ntenenz/MONAI
e7bdea0934ad08ef47de183eaa558942962fbaf4
[ "Apache-2.0" ]
null
null
null
monai/config/deviceconfig.py
ntenenz/MONAI
e7bdea0934ad08ef47de183eaa558942962fbaf4
[ "Apache-2.0" ]
1
2020-09-14T13:16:01.000Z
2020-09-14T13:16:01.000Z
# Copyright 2020 MONAI Consortium # 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, s...
27.008333
107
0.703178
7943d6e96742628e6817aa56c3cfda2560ecde1a
7,037
py
Python
mailchimp_marketing_asyncio/models/rss_options3.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/rss_options3.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/rss_options3.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
1
2022-03-09T14:52:22.000Z
2022-03-09T14:52:22.000Z
# coding: utf-8 """ Mailchimp Marketing API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3.0.74 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import...
29.817797
123
0.589314
7943d713c8b00e74e1599bc3662dc50b21ce2ffe
162
py
Python
bin/twigs/polytwigs-1234-hex-2.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/twigs/polytwigs-1234-hex-2.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/twigs/polytwigs-1234-hex-2.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """ 1506 solutions. """ import puzzler from puzzler.puzzles.polytwigs1234 import Polytwigs1234Hex2 puzzler.run(Polytwigs1234Hex2)
13.5
59
0.765432
7943d75a3a6ed5dad7eab7d082799dd15265651d
2,285
py
Python
api/tests/opentrons/hardware_control/test_execution_manager.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/hardware_control/test_execution_manager.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
api/tests/opentrons/hardware_control/test_execution_manager.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
import asyncio import pytest from opentrons.hardware_control import ( ExecutionManager, ExecutionState, ExecutionCancelledError, ) async def test_state_machine(loop): """ Test that an execution manager's state is RUNNING on init and PAUSE when it when pause is called, unless CANCELLED """ ...
30.878378
75
0.721663
7943d7faa6320938f4176c6398be9f9f098c8c85
3,334
py
Python
python/ray/serve/handle.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
python/ray/serve/handle.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
python/ray/serve/handle.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Dict, Any, Union from ray.serve.context import TaskContext from ray.serve.router import RequestMetadata class RayServeHandle: """A handle to a service endpoint. Invoking this endpoint with .remote is equivalent to pinging an HTTP endpoint. Example: >>> handle = s...
33.676768
79
0.592981
7943da2f12d911349a210448f76eb686389570b6
7,518
py
Python
fawkes/BoundaryConditions.py
bdevl/PGMCPC
cac2fe4304ae42ef2a0d94219b4349d51e86ab2d
[ "MIT" ]
3
2020-10-23T13:40:56.000Z
2022-02-10T03:42:52.000Z
fawkes/BoundaryConditions.py
pkmtum/generative-physics-informed-pde
63ec383da0f2dbf0d8ffbbb44a670e90d07c132e
[ "MIT" ]
null
null
null
fawkes/BoundaryConditions.py
pkmtum/generative-physics-informed-pde
63ec383da0f2dbf0d8ffbbb44a670e90d07c132e
[ "MIT" ]
null
null
null
import numpy as np from dolfin import DirichletBC import dolfin as df class BoundaryEncodingEnsemble(object): def __init__(self, boundary_encodings): self._boundary_encodings = boundary_encodings def __getitem__(self, item): return self._boundary_encodings[item] def __iter__(self): ...
27.947955
117
0.610801
7943da73c6636fd9b1de8a31129fd6920c8aeb71
4,224
py
Python
test/test_relationships.py
chalkchisel/neomodel
5aeef4afaefd8fb52f1541abeb279663b985dfd0
[ "MIT" ]
1
2019-06-27T13:05:08.000Z
2019-06-27T13:05:08.000Z
test/test_relationships.py
techdragon/neomodel
7408a608287402138cf0082a29818f6bc28bc5d4
[ "MIT" ]
null
null
null
test/test_relationships.py
techdragon/neomodel
7408a608287402138cf0082a29818f6bc28bc5d4
[ "MIT" ]
null
null
null
from neomodel import (StructuredNode, RelationshipTo, RelationshipFrom, Relationship, StringProperty, IntegerProperty, One) class Person(StructuredNode): name = StringProperty(unique_index=True) age = IntegerProperty(index=True) is_from = RelationshipTo('Country', 'IS_FROM') knows = Relationsh...
25.142857
75
0.638258
7943dccc97d4f13a7dccbfa4e9488cbda8e12d9b
975
py
Python
setup.py
HFOI/napalm-extreme-netiron
6630cfe8644f302c8a3b2824d33101257e526b55
[ "Apache-2.0" ]
1
2021-01-24T00:35:42.000Z
2021-01-24T00:35:42.000Z
setup.py
HFOI/napalm-extreme-netiron
6630cfe8644f302c8a3b2824d33101257e526b55
[ "Apache-2.0" ]
null
null
null
setup.py
HFOI/napalm-extreme-netiron
6630cfe8644f302c8a3b2824d33101257e526b55
[ "Apache-2.0" ]
1
2019-02-15T09:18:49.000Z
2019-02-15T09:18:49.000Z
"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'Carles Kishimoto <carles.kishimoto@gmail.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( name="n...
30.46875
100
0.687179
7943dd58269a428bd4ba2aafc3f9541503ea8dbb
1,858
py
Python
setup.py
vertiond/vertcoinhash-python
679d7191490311b1c2561c19ae45275047f37709
[ "MIT" ]
2
2022-01-15T22:14:40.000Z
2022-01-16T03:26:43.000Z
setup.py
vertiond/vertcoinhash-python
679d7191490311b1c2561c19ae45275047f37709
[ "MIT" ]
null
null
null
setup.py
vertiond/vertcoinhash-python
679d7191490311b1c2561c19ae45275047f37709
[ "MIT" ]
null
null
null
from setuptools import setup, Extension vertcoinsources = [ 'scrypt.c', 'Lyra2RE.c', 'Sponge.c', 'Lyra2.c', 'sha3/blake.c', 'sha3/groestl.c', 'sha3/keccak.c', 'sha3/cubehash.c', 'sha3/bmw.c', 'sha3/skein.c', 'h2.c', 'tiny_sha3/sha3.c' ] vertcoinincludes = [ '.', ...
33.781818
128
0.559203
7943dd7e89d341ea7ee291b25a307783c66e26f1
1,201
py
Python
pages/index.py
AmyBeisel/Olympics-Data
ea11f429fbfb9a5554e5e9f1dfffaf89007985da
[ "MIT" ]
null
null
null
pages/index.py
AmyBeisel/Olympics-Data
ea11f429fbfb9a5554e5e9f1dfffaf89007985da
[ "MIT" ]
null
null
null
pages/index.py
AmyBeisel/Olympics-Data
ea11f429fbfb9a5554e5e9f1dfffaf89007985da
[ "MIT" ]
null
null
null
# Imports from 3rd party libraries import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import plotly.express as px # Imports from this application from app import app # 2 column layout. 1st column widt...
27.295455
92
0.647794
7943dffdfefb027361412439c748a391eb4fe91b
943
py
Python
language_formatters_pre_commit_hooks/__init__.py
greggiacovelli/language-formatters-pre-commit-hooks
f6b82c7eae7b930d613fd20a2fcded0daa60cf3c
[ "Apache-2.0" ]
null
null
null
language_formatters_pre_commit_hooks/__init__.py
greggiacovelli/language-formatters-pre-commit-hooks
f6b82c7eae7b930d613fd20a2fcded0daa60cf3c
[ "Apache-2.0" ]
null
null
null
language_formatters_pre_commit_hooks/__init__.py
greggiacovelli/language-formatters-pre-commit-hooks
f6b82c7eae7b930d613fd20a2fcded0daa60cf3c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import typing import pkg_resources __version__ = pkg_resources.get_distribution("language_formatters_pre_commit_hooks").version def _get_default_version(tool_name): # pragm...
31.433333
98
0.693531
7943e04260b0d410eef59a5288687601141893e4
6,680
py
Python
src/ui/ui_cfg_lpspinor.py
ben-github/NXP-MCUBootUtility
3ff9fa203d667844f83a08c855fef85723d2612e
[ "Apache-2.0" ]
null
null
null
src/ui/ui_cfg_lpspinor.py
ben-github/NXP-MCUBootUtility
3ff9fa203d667844f83a08c855fef85723d2612e
[ "Apache-2.0" ]
null
null
null
src/ui/ui_cfg_lpspinor.py
ben-github/NXP-MCUBootUtility
3ff9fa203d667844f83a08c855fef85723d2612e
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import wx import sys import os import math import RTyyyy_uidef import uidef import uivar import uilang sys.path.append(os.path.abspath("..")) from win import bootDeviceWin_LpspiNor from utils import sound class secBootUiCfgLpspiNor(bootDeviceWin_LpspiNor.boo...
40.981595
114
0.633683
7943e2c85e6c542d0c71aa336a259b42d68dd735
5,031
py
Python
Python Code/Double_Pendulum_v1.py
yingranbc/Double-Pendulum-Motion-Animation
22895c835e023b51be7d8c3e2f82e484e642469c
[ "MIT" ]
26
2018-07-02T20:47:53.000Z
2022-03-24T08:10:41.000Z
Python Code/Double_Pendulum_v1.py
yingranbc/Double-Pendulum-Motion-Animation
22895c835e023b51be7d8c3e2f82e484e642469c
[ "MIT" ]
null
null
null
Python Code/Double_Pendulum_v1.py
yingranbc/Double-Pendulum-Motion-Animation
22895c835e023b51be7d8c3e2f82e484e642469c
[ "MIT" ]
12
2019-04-06T08:18:29.000Z
2022-03-24T01:47:13.000Z
# -*- coding: utf-8 -*- """ Created on Mon Apr 13 20:40:06 2020 @author: Mohammad Asif Zaman Double pendulum motion animation using FuncAnimation() """ from __future__ import print_function from scipy.integrate import odeint import time import math import numpy as np import pylab as py #import matplotlib.pyplo...
32.044586
166
0.601272
7943e3313fc8d6a8742f2f6043fdc63a65d3cad9
2,812
py
Python
astore.py
anton-muravev/ased
16ddb70ac3e46556cf49569915df0165a6fb7d16
[ "Apache-2.0" ]
null
null
null
astore.py
anton-muravev/ased
16ddb70ac3e46556cf49569915df0165a6fb7d16
[ "Apache-2.0" ]
null
null
null
astore.py
anton-muravev/ased
16ddb70ac3e46556cf49569915df0165a6fb7d16
[ "Apache-2.0" ]
1
2021-12-06T08:42:59.000Z
2021-12-06T08:42:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pickle from collections.abc import MutableMapping class Astore(MutableMapping): """Class to store the data arrays. Extends the standard dictionary, but offers additional file operations. Needs to be initialized before use.""" def __init__...
28.989691
78
0.54303
7943e338e4307eb990a8f6cb96621b0a546a6801
635
py
Python
app/artworks/migrations/0013_auto_20211230_0601.py
Vadee-art/backend
9b068d6ed11c1ffeccc13c4be67f1bb87a12d6ad
[ "MIT" ]
null
null
null
app/artworks/migrations/0013_auto_20211230_0601.py
Vadee-art/backend
9b068d6ed11c1ffeccc13c4be67f1bb87a12d6ad
[ "MIT" ]
null
null
null
app/artworks/migrations/0013_auto_20211230_0601.py
Vadee-art/backend
9b068d6ed11c1ffeccc13c4be67f1bb87a12d6ad
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-12-30 02:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('artworks', '0012_auto_20211230_0559'), ] operations = [ migrations.RemoveField( model_name='the...
26.458333
158
0.626772
7943e36631b7aecf2f0c102c5ec7849a40c62b40
5,524
py
Python
tests/unit/acquisition/test_interface.py
clinton0313/trieste
1e4351144c6cf6853c5cbd4dd7b74714aed569b2
[ "Apache-2.0" ]
null
null
null
tests/unit/acquisition/test_interface.py
clinton0313/trieste
1e4351144c6cf6853c5cbd4dd7b74714aed569b2
[ "Apache-2.0" ]
2
2022-03-11T18:42:45.000Z
2022-03-19T17:00:12.000Z
tests/unit/acquisition/test_interface.py
clinton0313/trieste
1e4351144c6cf6853c5cbd4dd7b74714aed569b2
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Trieste Contributors # # 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...
38.096552
94
0.722303
7943e3bde0c682af9627d7d997c5ef206ef49e0a
1,580
py
Python
tests/unit/altimeter/aws/resource/elbv1/test_load_balancer.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
48
2019-11-06T03:20:53.000Z
2022-02-22T21:10:45.000Z
tests/unit/altimeter/aws/resource/elbv1/test_load_balancer.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
27
2020-01-07T23:48:30.000Z
2022-02-26T00:24:04.000Z
tests/unit/altimeter/aws/resource/elbv1/test_load_balancer.py
elliotsegler/altimeter
c3924524938b4bae86b1acda2a4fc3f79ac523ff
[ "MIT" ]
21
2019-12-20T03:06:35.000Z
2021-12-15T23:26:00.000Z
import boto3 from botocore.exceptions import ClientError from unittest import TestCase from moto import mock_elb from unittest.mock import patch from altimeter.aws.resource.elbv1.load_balancer import ClassicLoadBalancerResourceSpec from altimeter.aws.scan.aws_accessor import AWSAccessor class TestLB(TestCase): @m...
38.536585
101
0.643671
7943e4181e82b07c2a880c24bcbfa643f489a57c
1,917
py
Python
repos/system_upgrade/el7toel8/actors/checkosrelease/tests/test_checkosrelease.py
t184256/leapp-repository
b0d8c46eb9bd967692e8cef271587739dced38e8
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/actors/checkosrelease/tests/test_checkosrelease.py
t184256/leapp-repository
b0d8c46eb9bd967692e8cef271587739dced38e8
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/actors/checkosrelease/tests/test_checkosrelease.py
t184256/leapp-repository
b0d8c46eb9bd967692e8cef271587739dced38e8
[ "Apache-2.0" ]
null
null
null
import os import pytest from leapp import reporting from leapp.exceptions import StopActorExecution, StopActorExecutionError from leapp.libraries.actor import library from leapp.libraries.common.config import version from leapp.libraries.common.testutils import (create_report_mocked, ...
37.588235
87
0.771518
7943e57c189544849f99576e224a9fe2e59a0f3f
7,780
py
Python
modules/music_race/cog.py
kevslinger/bot-be-named
a476598044a06e446e5d0a52da66fff1d7b69a27
[ "MIT" ]
4
2021-10-30T15:42:33.000Z
2021-11-29T20:02:45.000Z
modules/music_race/cog.py
kevslinger/bot-be-named
a476598044a06e446e5d0a52da66fff1d7b69a27
[ "MIT" ]
97
2021-10-30T14:40:34.000Z
2022-03-01T15:19:29.000Z
modules/music_race/cog.py
kevslinger/bot-be-named
a476598044a06e446e5d0a52da66fff1d7b69a27
[ "MIT" ]
1
2022-03-05T11:53:27.000Z
2022-03-05T11:53:27.000Z
import constants import discord import re from discord.ext import commands from utils import discord_utils, logging_utils from modules.music_race import music_race_constants import os import numpy as np import string def get_partition_mapping(): map = {} for answer in music_race_constants.ANSWERS: for...
38.9
225
0.574165
7943e581c7b4cb8342d4adc829fca8ec929a1b99
78,418
py
Python
libs/mpfit.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
1
2017-11-04T15:08:42.000Z
2017-11-04T15:08:42.000Z
libs/mpfit.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
1
2018-11-05T17:28:58.000Z
2018-11-05T18:20:00.000Z
libs/mpfit.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
null
null
null
""" Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1. AUTHORS The original version of this software, called LMFIT, was written in FORTRAN as part of the MINPACK-1 package by XXX. Craig Markwardt converted the FORTRAN code to IDL. The information for the IDL version is: ...
33.483348
96
0.666926
7943e794740abd67cbe3fa09614cde67eb5ed75e
381
py
Python
bugtests/test254c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test254c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test254c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
from java import awt, applet import java print "Hi! One stacktrace expected:" try: raise java.lang.Exception() except java.lang.Exception,e: e.printStackTrace() class test254c(applet.Applet): def paint(self, g): g.setColor(awt.Color.black) g.fill3DRect(5,5,590,100,0) g.setFont(awt.Font('Arial', 0, 80)) g.s...
21.166667
36
0.721785
7943e83d836c398e977030c34aff38281093b0a8
3,940
py
Python
wagtail_transfer/serializers.py
KalobTaulien/wagtail-transfer
c4ec94ac8a18df354462e2528070feaccd65c493
[ "BSD-3-Clause" ]
3
2020-11-06T12:35:47.000Z
2021-03-26T08:13:54.000Z
wagtail_transfer/serializers.py
KalobTaulien/wagtail-transfer
c4ec94ac8a18df354462e2528070feaccd65c493
[ "BSD-3-Clause" ]
null
null
null
wagtail_transfer/serializers.py
KalobTaulien/wagtail-transfer
c4ec94ac8a18df354462e2528070feaccd65c493
[ "BSD-3-Clause" ]
null
null
null
from functools import lru_cache from django.db import models from modelcluster.fields import ParentalKey from treebeard.mp_tree import MP_Node from wagtail.core.models import Page from .field_adapters import get_field_adapter from .models import get_base_model class ModelSerializer: ignored_fields = [] def...
32.295082
98
0.633756
7943e8fafc672c179d403f3d8e4ea2ba7d0840b2
16,208
py
Python
tradingsystems/marketdata.py
GBERESEARCH/tradingsystems
5158d41d32b48d35db34a6e132c7fa2f259987c1
[ "MIT" ]
1
2021-09-10T04:28:37.000Z
2021-09-10T04:28:37.000Z
tradingsystems/marketdata.py
GBERESEARCH/tradingsystems
5158d41d32b48d35db34a6e132c7fa2f259987c1
[ "MIT" ]
null
null
null
tradingsystems/marketdata.py
GBERESEARCH/tradingsystems
5158d41d32b48d35db34a6e132c7fa2f259987c1
[ "MIT" ]
1
2021-09-10T04:28:38.000Z
2021-09-10T04:28:38.000Z
""" Market Data functions """ import os import norgatedata import numpy as np import pandas as pd import requests from yahoofinancials import YahooFinancials class Markets(): """ Methods for collecting data from Norgate Data, Yahoo Finance and AlphaVantage and extracting the long names of the Norgate Data ...
30.466165
78
0.547878
7943e9f41fe97ec417c49d925aa77dd02ea99b64
5,912
py
Python
raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/runner.py
gsiddhant/raisimLib
ad844774595189d5d432a5631c05884af4adebdb
[ "Apache-2.0" ]
null
null
null
raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/runner.py
gsiddhant/raisimLib
ad844774595189d5d432a5631c05884af4adebdb
[ "Apache-2.0" ]
null
null
null
raisimGymTorch/raisimGymTorch/env/envs/rsg_anymal/runner.py
gsiddhant/raisimLib
ad844774595189d5d432a5631c05884af4adebdb
[ "Apache-2.0" ]
null
null
null
from ruamel.yaml import YAML, dump, RoundTripDumper from raisimGymTorch.env.bin import rsg_anymal from raisimGymTorch.env.RaisimGymVecEnv import RaisimGymVecEnv as VecEnv from raisimGymTorch.helper.raisim_gym_helper import ConfigurationSaver, load_param, tensorboard_launcher import os import math import time import rai...
40.493151
127
0.640054
7943e9f94a73a729cdde3b56a4080f3c7fcf5516
2,514
py
Python
drklauns/timetable/export.py
Ameriks/drklauns
bc8febd72ed6d3f685cf9ad48b487d5c9bb4170e
[ "MIT" ]
null
null
null
drklauns/timetable/export.py
Ameriks/drklauns
bc8febd72ed6d3f685cf9ad48b487d5c9bb4170e
[ "MIT" ]
null
null
null
drklauns/timetable/export.py
Ameriks/drklauns
bc8febd72ed6d3f685cf9ad48b487d5c9bb4170e
[ "MIT" ]
null
null
null
import datetime import pytz import xlwt from io import BytesIO from django.conf import settings from slugify import slugify from drklauns.timetable.models import Summary, Work riga_tz = pytz.timezone(settings.TIME_ZONE) def monthly_excel(year: int, month: int): output = BytesIO() items = Summary.objects.f...
41.9
219
0.647971
7943ea11eb37f0a21419c25dc79a6e006b173dd0
10,839
py
Python
train-net.py
CrispyHarder/deep-weight-prior
b87e61d6ad590c61b90e188ec86bfb956073be65
[ "MIT" ]
null
null
null
train-net.py
CrispyHarder/deep-weight-prior
b87e61d6ad590c61b90e188ec86bfb956073be65
[ "MIT" ]
null
null
null
train-net.py
CrispyHarder/deep-weight-prior
b87e61d6ad590c61b90e188ec86bfb956073be65
[ "MIT" ]
null
null
null
import torch from torch import nn import utils import numpy as np import os import time from models.lenet import FConvMNIST from models.cifarnet import CIFARNet, CIFARNetNew from models.cifar import ResNet import utils from logger import Logger from utils import tonp from torch.optim.lr_scheduler import MultiStepLR imp...
37.247423
115
0.646739
7943ea70400a1f8b54cc5d8e364a96d18ba41819
563
py
Python
nfvparser/toscaparser/tests/__init__.py
onap/modeling-toscaparsers
803b8d4ee8cc38e941cbc1ec26af2336f02fd20c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nfvparser/toscaparser/tests/__init__.py
onap/modeling-toscaparsers
803b8d4ee8cc38e941cbc1ec26af2336f02fd20c
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nfvparser/toscaparser/tests/__init__.py
onap/modeling-toscaparsers
803b8d4ee8cc38e941cbc1ec26af2336f02fd20c
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-06-16T14:47:06.000Z
2020-06-16T14:47:06.000Z
# 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 # distributed under t...
40.214286
75
0.758437
7943eb4a186791bbcb9bd7613e3addb5dd92a350
3,238
py
Python
programs/django/mysite/mysite/settings.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
2
2017-02-19T15:11:06.000Z
2017-02-22T18:34:10.000Z
programs/django/mysite/mysite/settings.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
null
null
null
programs/django/mysite/mysite/settings.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
4
2017-02-26T08:10:30.000Z
2017-05-02T10:02:03.000Z
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.3. 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/ """ import os # ...
25.698413
91
0.680976
7943ebb9b5efbb867df3965e81233b7d1f5d5018
2,861
py
Python
torchdyn/layers/utility.py
willw625731/torchdyn
7a13ff3e7d2314ab98c41ebdd8654ac2ca48fca0
[ "Apache-2.0" ]
null
null
null
torchdyn/layers/utility.py
willw625731/torchdyn
7a13ff3e7d2314ab98c41ebdd8654ac2ca48fca0
[ "Apache-2.0" ]
null
null
null
torchdyn/layers/utility.py
willw625731/torchdyn
7a13ff3e7d2314ab98c41ebdd8654ac2ca48fca0
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn class Augmenter(nn.Module): """Augmentation class. Can handle several types of augmentation strategies for Neural DEs. :param augment_dims: number of augmented dimensions to initialize :type augment_dims: int :param augment_idx: index of dimension to augment :typ...
40.871429
162
0.613422
7943ec211d50f4e4b206759f1d4a51ddfbe7281b
654
py
Python
lib/third_party/concurrent/futures/_base.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/third_party/concurrent/futures/_base.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/third_party/concurrent/futures/_base.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# Copyright 2018 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 ag...
40.875
74
0.770642
7943ec6e7d49784b642fd3dfcdbd0da705a8dbb1
587
py
Python
qulab/drivers/PSG_SignalGenerator.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
qulab/drivers/PSG_SignalGenerator.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
qulab/drivers/PSG_SignalGenerator.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from qulab import BaseDriver, QInteger, QOption, QReal, QString, QVector class Driver(BaseDriver): support_models = ['E8257D', 'SMF100A', 'SMB100A','SGS100A'] quants = [ QReal('Frequency', unit='Hz', set_cmd=':FREQ %(value).13e%(unit)s'...
26.681818
79
0.524702
7943ed68bec567fb50840e9d65b3936c244c365f
2,302
py
Python
Graphly_v1.py
souviksn7/Graphly
3055be4d11e74b8ef2156afdd93ca4cc4859643f
[ "MIT" ]
null
null
null
Graphly_v1.py
souviksn7/Graphly
3055be4d11e74b8ef2156afdd93ca4cc4859643f
[ "MIT" ]
null
null
null
Graphly_v1.py
souviksn7/Graphly
3055be4d11e74b8ef2156afdd93ca4cc4859643f
[ "MIT" ]
null
null
null
from tkinter import* import numpy as np import matplotlib.pyplot as plt from matplotlib.figure import Figure from matplotlib.backends.backend_tkagg import (FigureCanvasTkAgg, NavigationToolbar2Tk) root=Tk() root.title('Graphly') root.geometry("700x850") def eq_maker(ls1,ls2): fin='y= ' for i in range(len(ls...
25.577778
79
0.552129
7943edaa51fa29e82e80c2eda18b696ea5b92fed
55,456
py
Python
qa/rpc-tests/test_framework/mininode.py
anhtienlk/bluecoin-new
669ec70192718187913f364cd8d1234edd7b8964
[ "MIT" ]
3
2017-12-09T16:04:29.000Z
2018-05-20T21:46:30.000Z
qa/rpc-tests/test_framework/mininode.py
JUDOKICK/bluecoin-new
669ec70192718187913f364cd8d1234edd7b8964
[ "MIT" ]
2
2018-01-01T06:07:41.000Z
2019-12-20T17:39:29.000Z
qa/rpc-tests/test_framework/mininode.py
JUDOKICK/bluecoin-new
669ec70192718187913f364cd8d1234edd7b8964
[ "MIT" ]
3
2017-12-09T17:06:50.000Z
2019-05-09T09:42:02.000Z
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # mininode.p...
30.571114
262
0.593137
7943effab02ce25e8966e086149e31761a4b9d12
1,827
py
Python
telethon/tl/custom/forward.py
pgjones/Telethon
1be54035e81ee2e7f869fc2a8c20a16760924895
[ "MIT" ]
1
2019-06-21T19:19:50.000Z
2019-06-21T19:19:50.000Z
telethon/tl/custom/forward.py
pgjones/Telethon
1be54035e81ee2e7f869fc2a8c20a16760924895
[ "MIT" ]
1
2020-06-30T20:56:35.000Z
2020-06-30T20:56:35.000Z
telethon/tl/custom/forward.py
SlavikMIPT/Telethon
fece5660f46b1f5b8f464c162914cc51bff6550f
[ "MIT" ]
null
null
null
from .chatgetter import ChatGetter from .sendergetter import SenderGetter from ... import utils from ...tl import types class Forward(ChatGetter, SenderGetter): """ Custom class that encapsulates a :tl:`MessageFwdHeader` providing an abstraction to easily access information like the original sender. ...
38.0625
95
0.692392
7943f075104ea1e2be24449516b1c7491458e92e
16,782
py
Python
Explorer/widgets.py
steveknipmeyer/ModelRelief
a3d067e0ed39a3a8ca78896c21eaa3e7293b15a2
[ "MIT" ]
null
null
null
Explorer/widgets.py
steveknipmeyer/ModelRelief
a3d067e0ed39a3a8ca78896c21eaa3e7293b15a2
[ "MIT" ]
null
null
null
Explorer/widgets.py
steveknipmeyer/ModelRelief
a3d067e0ed39a3a8ca78896c21eaa3e7293b15a2
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ .. module:: widgets :synopsis: QT UI controls for Explorer. .. moduleauthor:: Steve Knipmeyer <steve@modelrelief.org> """ import os # First, and before importing any Enthought packages, set the ETS_TOOLKIT environment variable to qt4 to tell Traits that we will use Qt. # https://github.co...
34.602062
186
0.605649
7943f0de87113eeae537abcbce8087366c778f19
4,582
py
Python
test/test_report_structured.py
laundmo/tidypy
3d08b4f95ed7c8827789222c9670a131cdf965b7
[ "MIT" ]
null
null
null
test/test_report_structured.py
laundmo/tidypy
3d08b4f95ed7c8827789222c9670a131cdf965b7
[ "MIT" ]
null
null
null
test/test_report_structured.py
laundmo/tidypy
3d08b4f95ed7c8827789222c9670a131cdf965b7
[ "MIT" ]
null
null
null
import sys from tidypy import execute_reports, get_default_config, Collector, TidyPyIssue ISSUES = [ TidyPyIssue( 'code1', 'Message 1', u'someproject/foo.py', 5, 23, ), TidyPyIssue( 'code2', 'Message 2', u'someproject/foo.py', 2, ...
19.75
78
0.576604
7943f11928fc738272093e7e5d8c03261f088667
2,421
py
Python
src/spaceone/identity/model/domain_model.py
spaceone-dev/identity
63a3a8db1d8d7d1e2c17d53fb3dc7aad35aef917
[ "Apache-2.0" ]
13
2020-05-20T13:14:33.000Z
2021-12-23T12:02:40.000Z
src/spaceone/identity/model/domain_model.py
whdalsrnt/identity
6aeaf7ea405d9e2f7c4f24c7518445b955cebec6
[ "Apache-2.0" ]
7
2020-06-02T08:11:18.000Z
2022-03-15T02:26:07.000Z
src/spaceone/identity/model/domain_model.py
whdalsrnt/identity
6aeaf7ea405d9e2f7c4f24c7518445b955cebec6
[ "Apache-2.0" ]
9
2020-06-01T10:08:05.000Z
2021-03-19T06:34:57.000Z
from mongoengine import * from datetime import datetime from spaceone.core.error import * from spaceone.core.model.mongo_model import MongoModel class PluginInfo(EmbeddedDocument): plugin_id = StringField(max_length=40) version = StringField(max_length=255) options = DictField(default={}) metadata = D...
29.52439
89
0.611318
7943f23f7aefc7fd50cdb8b5739084d25b2fc8e9
1,141
py
Python
get_power.py
FraserTooth/echonet_interface
e009a6371543a65ac8c5ed895e7258fb072612f8
[ "MIT" ]
1
2021-09-22T10:25:32.000Z
2021-09-22T10:25:32.000Z
get_power.py
FraserTooth/echonet_interface
e009a6371543a65ac8c5ed895e7258fb072612f8
[ "MIT" ]
null
null
null
get_power.py
FraserTooth/echonet_interface
e009a6371543a65ac8c5ed895e7258fb072612f8
[ "MIT" ]
null
null
null
import meter.echonet as echonet from meter.common import byte2str, hex2int import meter.b_route as b_route from meter.serial_connection import connect_to_serial_port import time import logging.handlers import meter.influx as db # ロガー取得 logger = logging.getLogger("main") fmt = "%(asctime)s %(levelname)s %(name)s :%(me...
25.931818
59
0.683611
7943f31f3067d044097556d01e85bfb664d12e5f
6,511
py
Python
sources/simulators/ray_based_simulator/ray_simulate.py
M4rukku/impact_of_non_iid_data_in_federated_learning
c818db03699c82e42217d56f8ddd4cc2081c8bb1
[ "MIT" ]
null
null
null
sources/simulators/ray_based_simulator/ray_simulate.py
M4rukku/impact_of_non_iid_data_in_federated_learning
c818db03699c82e42217d56f8ddd4cc2081c8bb1
[ "MIT" ]
null
null
null
sources/simulators/ray_based_simulator/ray_simulate.py
M4rukku/impact_of_non_iid_data_in_federated_learning
c818db03699c82e42217d56f8ddd4cc2081c8bb1
[ "MIT" ]
null
null
null
# Modified from Adap # Copyright 2020 Adap GmbH. 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 b...
36.172222
85
0.658424
7943f3c6c44c7bf86810740444594d5429abe8f5
170
py
Python
app/api/index.py
benranderson/fmeca
aedbde0ec20417cace3df01e09f193dd525ba0e2
[ "MIT" ]
null
null
null
app/api/index.py
benranderson/fmeca
aedbde0ec20417cace3df01e09f193dd525ba0e2
[ "MIT" ]
11
2017-11-09T22:23:50.000Z
2017-11-30T16:40:22.000Z
app/api/index.py
benranderson/fmeca
aedbde0ec20417cace3df01e09f193dd525ba0e2
[ "MIT" ]
3
2017-11-10T09:52:07.000Z
2022-01-28T11:00:17.000Z
from flask import jsonify from . import api @api.route('/', methods=['GET']) def index(): return jsonify("Welcome to the fmeca API. Check out '/api/facilities/'.")
21.25
77
0.676471
7943f43c477717e8563af684c11c3de16306bca5
11,918
py
Python
odps/df/backends/analyzer.py
walker83/aliyun-odps-python-sdk
f69c2520d346554131f4129360cb7ae1211699ce
[ "Apache-2.0" ]
null
null
null
odps/df/backends/analyzer.py
walker83/aliyun-odps-python-sdk
f69c2520d346554131f4129360cb7ae1211699ce
[ "Apache-2.0" ]
null
null
null
odps/df/backends/analyzer.py
walker83/aliyun-odps-python-sdk
f69c2520d346554131f4129360cb7ae1211699ce
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding Ltd. # # 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-...
37.012422
107
0.529116
7943f595c674438a1cfec4698c62343f1a8c742b
656
py
Python
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
1
2020-02-18T00:38:16.000Z
2020-02-18T00:38:16.000Z
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
null
null
null
infrastructure/crypto_ml/utils/_utils.py
ATCUWgithub/CryptoML
6010c5daf7d985217fa76197b29331457a60a306
[ "MIT" ]
1
2020-02-18T00:39:12.000Z
2020-02-18T00:39:12.000Z
import json as _json import datetime as _datetime def parse_timestamp(dataset, time_format="%Y-%m-%dT%H:%M:%S.000Z"): for d in dataset: d["timestamp"] = _datetime.datetime.strptime(d["timestamp"], time_format) return dataset def load_json(filename, time_format="%Y-%m-%dT%H:%M:%S.000Z"): dictionary ...
29.818182
81
0.660061
7943f67fbcf1be196d4617675369352657e99f99
5,806
py
Python
houston/plugin/gcp.py
datasparq-intelligent-products/houston-python
c9248c1f121366ad258e8434caa6d2462d765059
[ "MIT" ]
7
2020-03-16T13:17:50.000Z
2020-12-10T14:46:37.000Z
houston/plugin/gcp.py
datasparq-intelligent-products/houston-python
c9248c1f121366ad258e8434caa6d2462d765059
[ "MIT" ]
null
null
null
houston/plugin/gcp.py
datasparq-intelligent-products/houston-python
c9248c1f121366ad258e8434caa6d2462d765059
[ "MIT" ]
null
null
null
"""Houston Utilities for Google Cloud Platform PubSub utils: Allows user to create Google Cloud Pub/Sub message according to the plan stage options, e.g.: h.project = "my-project-1234" # set the Google Cloud project name in the client res = h.end_stage("load-data", mission_id) for next_stage in res['ne...
38.450331
121
0.59628
7943f76bf464889fd4c6f26155e3653298ba9583
5,235
py
Python
src/bin/shipyard_airflow/shipyard_airflow/control/action/actions_steps_id_logs_api.py
openvdro/airship-shipyard
bae15294c534cf321f5c7ca37592dfa74c4ad7c2
[ "Apache-2.0" ]
12
2018-05-18T18:59:23.000Z
2019-05-10T12:31:44.000Z
src/bin/shipyard_airflow/shipyard_airflow/control/action/actions_steps_id_logs_api.py
openvdro/airship-shipyard
bae15294c534cf321f5c7ca37592dfa74c4ad7c2
[ "Apache-2.0" ]
4
2021-07-28T14:36:57.000Z
2022-03-22T16:39:23.000Z
src/bin/shipyard_airflow/shipyard_airflow/control/action/actions_steps_id_logs_api.py
openvdro/airship-shipyard
bae15294c534cf321f5c7ca37592dfa74c4ad7c2
[ "Apache-2.0" ]
9
2018-05-18T16:42:41.000Z
2019-04-18T20:12:14.000Z
# Copyright 2018 AT&T Intellectual Property. All other 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...
35.856164
76
0.580516