hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b65874703d066eb9015f31b38395e507f3fa6812
6,069
py
Python
poker/poker_player.py
smokeytheblair/stuff
79a2367542e44510085750334bf95d2b2064769c
[ "MIT" ]
null
null
null
poker/poker_player.py
smokeytheblair/stuff
79a2367542e44510085750334bf95d2b2064769c
[ "MIT" ]
null
null
null
poker/poker_player.py
smokeytheblair/stuff
79a2367542e44510085750334bf95d2b2064769c
[ "MIT" ]
1
2018-10-03T19:49:29.000Z
2018-10-03T19:49:29.000Z
import asyncio from enum import Enum import copy from deck_of_cards import VALUES, VALUE_IDS from collections import defaultdict class Action(Enum): FOLD = 0 BET = 1 RAISE = 2 CALL = 3 class PokerHand(Enum): NOTHING = 0 PAIR = 1 TWO_PAIR = 2 THREE_OF_A_KIND = 3 STRAIGHT = 4 FLU...
24.670732
105
0.55594
68aa6d5baf92060be33e0fa39d5e392f8f0573ff
4,333
py
Python
occupant/occupancy/queueing/simulate_queue.py
YangyangFu/MPCPy
c9980cbfe7b5ea21b003c2c0bab800099dccf3f1
[ "BSD-3-Clause-LBNL" ]
96
2017-03-31T09:59:44.000Z
2022-03-23T18:39:37.000Z
occupant/occupancy/queueing/simulate_queue.py
kuzha/MPCPy
9f78aa68236f87d39a50de54978c5064f9cc13c6
[ "BSD-3-Clause-LBNL" ]
150
2017-03-03T17:28:34.000Z
2021-02-24T20:03:24.000Z
occupant/occupancy/queueing/simulate_queue.py
kuzha/MPCPy
9f78aa68236f87d39a50de54978c5064f9cc13c6
[ "BSD-3-Clause-LBNL" ]
32
2017-04-24T18:22:40.000Z
2022-03-29T17:51:20.000Z
from __future__ import division import numpy as np from unique_last import unique_last import matplotlib.pyplot as plt import warnings def simulate_queue(maxtime,lam,mu,nstart,empty_time): # Function for simulate queue system size given the queue parameters # Inputs: maxtime - the time range for simualtion ...
31.398551
92
0.62751
db3cc7daab62544b41d60de49ba582984b0deee3
12,518
py
Python
sentinelone/komand_sentinelone/triggers/get_threats/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
sentinelone/komand_sentinelone/triggers/get_threats/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
sentinelone/komand_sentinelone/triggers/get_threats/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: AGENT_IS_ACTIVE = "agent_is_active" CLASSIFICATIONS = "classifications" ENGINES = "engines" FREQUENCY = "frequency" RESOLVED = "resolved" class Output: THREAT = "threat" class GetThreatsInput(k...
26.024948
84
0.435373
9d1ac75ce31cb7086aaa7434805d15a83b0068c1
4,382
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/apis/junos/utils.py
jhiggins-NZ/genielibs
0ab2892ef93288313afbdd0eaf68b13018269960
[ "Apache-2.0" ]
null
null
null
pkgs/sdk-pkg/src/genie/libs/sdk/apis/junos/utils.py
jhiggins-NZ/genielibs
0ab2892ef93288313afbdd0eaf68b13018269960
[ "Apache-2.0" ]
null
null
null
pkgs/sdk-pkg/src/genie/libs/sdk/apis/junos/utils.py
jhiggins-NZ/genielibs
0ab2892ef93288313afbdd0eaf68b13018269960
[ "Apache-2.0" ]
null
null
null
"""Utility type functions that do not fit into another category""" # Python import re import logging # Genie from genie.metaparser.util.exceptions import SchemaEmptyParserError from genie.libs.sdk.libs.utils.normalize import GroupKeys from genie.utils import Dq from genie.utils.timeout import Timeout # Pyats from pya...
29.608108
88
0.478092
75ac4caba42f55991affd593d5cc17b23e8fe331
508
py
Python
test_main.py
nicojahn/EPFD
446f35103d29e3dd69d8151c54de95bc8aed7ec6
[ "MIT" ]
5
2020-09-18T13:21:18.000Z
2021-05-13T04:43:21.000Z
test_main.py
nicojahn/EPFD
446f35103d29e3dd69d8151c54de95bc8aed7ec6
[ "MIT" ]
null
null
null
test_main.py
nicojahn/EPFD
446f35103d29e3dd69d8151c54de95bc8aed7ec6
[ "MIT" ]
2
2021-05-03T18:45:47.000Z
2021-11-16T02:30:43.000Z
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import unittest import numpy as np from main import load_iris class TestMain(unittest.TestCase): def test_load_iris(self): X_trn, y_trn, X_tst, y_tst = load_iris() self.as...
25.4
51
0.712598
c637d1bd113c4ca0e6701f5226831297b5cf1858
10,238
py
Python
src/baxter_external_devices/joystick.py
maymohan/baxter_examples
37dbb35ccb02356de76ea64fda61b5389b0a8f8c
[ "BSD-3-Clause" ]
null
null
null
src/baxter_external_devices/joystick.py
maymohan/baxter_examples
37dbb35ccb02356de76ea64fda61b5389b0a8f8c
[ "BSD-3-Clause" ]
null
null
null
src/baxter_external_devices/joystick.py
maymohan/baxter_examples
37dbb35ccb02356de76ea64fda61b5389b0a8f8c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2015, Rethink Robotics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
34.823129
77
0.609396
a8e670f3c03f5c95ab0620d83cdffb3172e4fc88
256
py
Python
stockdaq/data/downloader_dict.py
terrencetec/stockdaq
8561b1d1b94b6091dfe4d9ebf2fc84daa2d571d6
[ "MIT" ]
null
null
null
stockdaq/data/downloader_dict.py
terrencetec/stockdaq
8561b1d1b94b6091dfe4d9ebf2fc84daa2d571d6
[ "MIT" ]
7
2021-01-08T01:02:58.000Z
2021-01-12T17:38:03.000Z
stockdaq/data/downloader_dict.py
terrencetec/stockdaq
8561b1d1b94b6091dfe4d9ebf2fc84daa2d571d6
[ "MIT" ]
null
null
null
import stockdaq.data.alpha_vantage_downloader as av_downloader import stockdaq.data.yfinance_downloader downloader_dict = { "Alpha Vantage": av_downloader.AlphaVantageDownloader, "yfinance": stockdaq.data.yfinance_downloader.yfinanceDownloader, }
32
69
0.832031
407f002a100243ac632805306ed20a938b11ab74
24,908
py
Python
sleep_scorer/scoreblock.py
focolab/sleep-classifier
6a7eb376267c66d697782d49785ade6948a17a85
[ "MIT" ]
1
2021-06-29T18:18:09.000Z
2021-06-29T18:18:09.000Z
sleep_scorer/scoreblock.py
focolab/sleep-classifier
6a7eb376267c66d697782d49785ade6948a17a85
[ "MIT" ]
null
null
null
sleep_scorer/scoreblock.py
focolab/sleep-classifier
6a7eb376267c66d697782d49785ade6948a17a85
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pdb import os import json import numpy as np import pandas as pd def ppd(d): for k, v in d.items(): print('%15s:' % k, v) def consensus(X, val='XXX'): """element-wise consensus among lists in X""" c = [y[0] if len(np.unique(y)) == 1 else val for y in zip(*X)] ...
33.614035
106
0.574153
2560ff75c42fdcd74cd90de1cd017c9e601838a7
269
py
Python
glue/core/data_factories/dendrogram.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
1
2019-12-17T07:58:35.000Z
2019-12-17T07:58:35.000Z
glue/core/data_factories/dendrogram.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
null
null
null
glue/core/data_factories/dendrogram.py
sergiopasra/glue
c25a217a122a11818382672c99cb21f57a30636f
[ "BSD-3-Clause" ]
1
2019-08-04T14:10:12.000Z
2019-08-04T14:10:12.000Z
from __future__ import absolute_import, division, print_function from glue.core.data_factories.helpers import has_extension # noqa __all__ = [] try: from glue.core.data_factories.dendro_loader import load_dendro, is_dendro # noqa except ImportError: pass
22.416667
85
0.791822
cfae7e72a630a43b4b6b0cd5f1594e5514cf1542
3,178
py
Python
test/unit/test_deform.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
1
2020-11-05T12:17:27.000Z
2020-11-05T12:17:27.000Z
test/unit/test_deform.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
null
null
null
test/unit/test_deform.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ Tests for deepreg/model/loss/deform.py in pytest style """ from test.unit.util import is_equal_tf import pytest import tensorflow as tf import deepreg.model.loss.deform as deform def test_gradient_dx(): """test the calculation of gradient of a 3D images along x-axis""" tensor = tf.ones([...
29.981132
72
0.657332
81d32b3d8702ffacf8d690c22019ece6f870b74c
237
py
Python
bot/data/video.py
Xayzo/Telegram-Tiktok-downloader
3fbc492d07a4544cb99198b6c371cb640d1500b0
[ "MIT" ]
4
2021-09-29T05:35:25.000Z
2022-01-27T11:40:58.000Z
bot/data/video.py
Xayzo/Telegram-Tiktok-downloader
3fbc492d07a4544cb99198b6c371cb640d1500b0
[ "MIT" ]
null
null
null
bot/data/video.py
Xayzo/Telegram-Tiktok-downloader
3fbc492d07a4544cb99198b6c371cb640d1500b0
[ "MIT" ]
4
2021-11-27T05:19:50.000Z
2022-02-20T08:18:42.000Z
from attr import attrs, attrib from typing import Optional @attrs(slots=True, auto_attribs=True, order=False, eq=False) class VideoData: url: Optional[str] = attrib(default=None) content: Optional[bytes] = attrib(default=None)
26.333333
60
0.751055
b3aaed1b4c252f0284d56eed8a714aa7d8964b5f
1,164
py
Python
capsnet-arch/learning-curves.py
eaaskt/nlu
77382be572ce59f15d8ea9c5cd653615c39891d1
[ "MIT" ]
3
2019-03-11T09:15:36.000Z
2020-04-06T15:06:33.000Z
capsnet-arch/learning-curves.py
eaaskt/nlu
77382be572ce59f15d8ea9c5cd653615c39891d1
[ "MIT" ]
24
2020-03-31T11:22:54.000Z
2022-03-12T00:23:49.000Z
capsnet-arch/learning-curves.py
eaaskt/nlu
77382be572ce59f15d8ea9c5cd653615c39891d1
[ "MIT" ]
5
2020-03-29T10:04:31.000Z
2020-05-28T06:50:18.000Z
import train import data_loader import flags import model_s2i def main(): word2vec_path = '../../romanian_word_vecs/cleaned-vectors-diacritice-cc-100.vec' training_data_path = '../data-capsnets/diacritics/scenario1/train.txt' test_data_path = '../data-capsnets/diacritics/scenario1/test.txt' # Define...
33.257143
115
0.64433
e8d33abdc279d5ac4ac3a7b954c6b0d8d71abe3f
59
py
Python
pandoc_cqu_thesis/__main__.py
Hagb/pandoc_cqu_thesis
46ea35221f314656bc8e48d08c595a92104bba3a
[ "MIT" ]
2
2022-02-11T01:11:33.000Z
2022-02-11T04:32:43.000Z
pandoc_cqu_thesis/__main__.py
Hagb/pandoc_cqu_thesis
46ea35221f314656bc8e48d08c595a92104bba3a
[ "MIT" ]
null
null
null
pandoc_cqu_thesis/__main__.py
Hagb/pandoc_cqu_thesis
46ea35221f314656bc8e48d08c595a92104bba3a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import docx_filters docx_filters.main()
14.75
19
0.79661
73337602f5321904e2d0daad04641b8b4496da27
496
py
Python
plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='outlinewidth', parent_name='scatterpolar.marker.colorbar', **kwargs ): super(OutlinewidthValidator, self).__init__( ...
24.8
74
0.606855
fbdae249f72280728c0c566f3ece5af7b13ffccf
557
py
Python
setup.py
dm03514/protobuf-pii
c97067c197e52ef0fdb75ee519061842bf60d0e1
[ "Apache-2.0" ]
null
null
null
setup.py
dm03514/protobuf-pii
c97067c197e52ef0fdb75ee519061842bf60d0e1
[ "Apache-2.0" ]
null
null
null
setup.py
dm03514/protobuf-pii
c97067c197e52ef0fdb75ee519061842bf60d0e1
[ "Apache-2.0" ]
null
null
null
import os import pathlib import setuptools from pkg_resources import parse_requirements from setuptools import setup dir_path = os.path.dirname(os.path.realpath(__file__)) file_path = os.path.join(dir_path, 'requirements.txt') with pathlib.Path(file_path).open() as requirements_txt: reqs = [ str(requir...
20.62963
56
0.72711
85c53d476652836cfe91ae434f0b36c18112caee
2,536
py
Python
base_site/nubank/migrations/0002_auto_20191127_2230.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
4
2020-01-21T00:21:44.000Z
2021-06-15T19:38:36.000Z
base_site/nubank/migrations/0002_auto_20191127_2230.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
173
2019-11-18T08:19:44.000Z
2021-09-08T01:37:19.000Z
base_site/nubank/migrations/0002_auto_20191127_2230.py
ricardochaves/financeiro-bot
2c48be4355e3c8630c36aa846c16042f22b88271
[ "MIT" ]
3
2020-01-28T19:19:35.000Z
2021-05-01T02:33:36.000Z
# Generated by Django 2.2.7 on 2019-11-28 00:30 import django.contrib.postgres.fields.jsonb from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("nubank", "0001_initial")] operations = [ migrations.CreateModel( name="NubankCards", ...
48.769231
120
0.596215
22a28cfb23fb686878da0193fa0769981c8e6437
4,808
py
Python
test/test_util.py
pombredanne/wheelodex
defaa4809d0186a2cb3e77213ad2b0585ac13127
[ "MIT" ]
17
2018-10-18T17:49:28.000Z
2022-03-10T14:57:13.000Z
test/test_util.py
pombredanne/wheelodex
defaa4809d0186a2cb3e77213ad2b0585ac13127
[ "MIT" ]
3
2018-10-17T15:19:04.000Z
2021-12-21T19:45:58.000Z
test/test_util.py
pombredanne/wheelodex
defaa4809d0186a2cb3e77213ad2b0585ac13127
[ "MIT" ]
1
2018-10-30T02:59:48.000Z
2018-10-30T02:59:48.000Z
from datetime import datetime, timezone import pytest from wheelodex.util import VersionNoDot, glob2like, latest_version, \ parse_timestamp, wheel_sort_key @pytest.mark.parametrize('versions,latest', [ ([], None), (['1.0', '1.1', '2.0', '1.3'], '2.0'), (['1.0', '2....
30.238994
177
0.614393
d58fca3033e465c21b8bbba326ab8675c89188c4
3,934
py
Python
toto/plugins/plots/_do_perc_of_occurence.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
1
2022-03-24T23:41:16.000Z
2022-03-24T23:41:16.000Z
toto/plugins/plots/_do_perc_of_occurence.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
12
2021-02-24T22:30:52.000Z
2021-11-16T01:51:38.000Z
toto/plugins/plots/_do_perc_of_occurence.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
1
2021-09-21T11:37:09.000Z
2021-09-21T11:37:09.000Z
import numpy as np from matplotlib import pyplot as plt from matplotlib.figure import Figure import matplotlib.colors as colors import matplotlib.cm as cmx from ...core.toolbox import get_number_of_loops,degToCompass from matplotlib import gridspec from grid_strategy import strategies def get_perc(s,SPD): perc=np...
30.261538
123
0.59634
ce12b00d33942d8905827f30f97949bf79c75068
317
py
Python
tests/green-led.py
azzuwan/ERN
f6ad5cd2d44c89c806c6f21ddee34b1692a484c3
[ "MIT" ]
null
null
null
tests/green-led.py
azzuwan/ERN
f6ad5cd2d44c89c806c6f21ddee34b1692a484c3
[ "MIT" ]
null
null
null
tests/green-led.py
azzuwan/ERN
f6ad5cd2d44c89c806c6f21ddee34b1692a484c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO, time, requests green = 29 GPIO.setmode(GPIO.BOARD) GPIO.setup(green, GPIO.OUT) GPIO.output(green, False) time.sleep(0.1) GPIO.output(green, True) time.sleep(3) GPIO.output(green, False) time.sleep(3) GPIO.output(green, True) time.sleep(3) GPIO.output(green, False)
16.684211
39
0.735016
26d71ef3015fea200c5e7e529d05400133c90a27
503
py
Python
src/tenyksfun/main.py
nijotz/tenyks-contrib
eea737a2b3d68d8410d21e7e7bb88ef0af7255d8
[ "MIT" ]
null
null
null
src/tenyksfun/main.py
nijotz/tenyks-contrib
eea737a2b3d68d8410d21e7e7bb88ef0af7255d8
[ "MIT" ]
null
null
null
src/tenyksfun/main.py
nijotz/tenyks-contrib
eea737a2b3d68d8410d21e7e7bb88ef0af7255d8
[ "MIT" ]
null
null
null
from datetime import date import random from tenyks.client import Client, run_client class TenyksFun(Client): direct_only = False def __init__(self, *args, **kwargs): self.hello_counts = {} super(TenyksFun, self).__init__(*args, **kwargs) def handle(self, data, match, filter_name): ...
19.346154
64
0.642147
a05fa605f3d16b9befdd745a5a1d887762116e14
2,527
py
Python
test/python/transpiler/test_fixed_point_pass.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
11
2019-06-27T09:53:29.000Z
2021-03-02T04:40:30.000Z
test/python/transpiler/test_fixed_point_pass.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
24
2021-01-27T08:20:27.000Z
2021-07-06T09:42:28.000Z
test/python/transpiler/test_fixed_point_pass.py
ajavadia/qiskit-sdk-py
a59e8e6be1793197e19998c1f7dcfc45e6f2f3af
[ "Apache-2.0" ]
4
2021-10-05T12:07:27.000Z
2022-01-28T18:37:28.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
36.1
87
0.671152
de7c8ff413c08bb9834d763a691b31c4673f5b4c
411
py
Python
experiments/fdtd-2d/tmp_files/6632.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/6632.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/6632.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/6632.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
22.833333
116
0.720195
3bfc0443402336fb70d6d087b2e2e2caf433fe12
11,826
py
Python
tests/providers/test_phone_number.py
omri374/faker
71e89a77c500a50c2a6238c5266d2fe26f4dfe5e
[ "MIT" ]
null
null
null
tests/providers/test_phone_number.py
omri374/faker
71e89a77c500a50c2a6238c5266d2fe26f4dfe5e
[ "MIT" ]
null
null
null
tests/providers/test_phone_number.py
omri374/faker
71e89a77c500a50c2a6238c5266d2fe26f4dfe5e
[ "MIT" ]
null
null
null
import re from typing import Pattern from faker.providers.phone_number import Provider as PhoneNumberProvider from faker.providers.phone_number.en_PH import Provider as EnPhPhoneNumberProvider class TestPhoneNumber: """Test phone number provider methods""" def test_country_calling_code(self, faker, num_sam...
40.22449
116
0.624472
24292d0f639225f021bade8d1366dc9361fbdfcb
726
py
Python
UnityPy/classes/EditorExtension.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
null
null
null
UnityPy/classes/EditorExtension.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
null
null
null
UnityPy/classes/EditorExtension.py
dblack2056/UnityPy
303291e46ddfbf266131237e59e6b1b5c46a9ca4
[ "MIT" ]
1
2021-01-20T05:28:43.000Z
2021-01-20T05:28:43.000Z
from .Object import Object from .PPtr import PPtr, save_ptr from ..enums import BuildTarget from ..streams import EndianBinaryWriter, EndianBinaryReader class EditorExtension(Object): def __init__(self, reader: EndianBinaryReader): super().__init__(reader=reader) if self.platform == BuildTarget.No...
38.210526
77
0.713499
7526839695998d446518e81c21dc7f214b0c4e62
749
py
Python
RosettaCode/Prime_words/main.py
mohenjo/AlgorithmTraining
a8d64b6ce1c58086e3655ebc9997340aee93b74a
[ "MIT" ]
3
2019-05-01T00:22:01.000Z
2021-11-18T06:52:53.000Z
RosettaCode/Prime_words/main.py
mohenjo/RosettaCode
02d4a0306f20d2edb79667ce0f66160ee865ebae
[ "MIT" ]
null
null
null
RosettaCode/Prime_words/main.py
mohenjo/RosettaCode
02d4a0306f20d2edb79667ce0f66160ee865ebae
[ "MIT" ]
1
2021-11-13T20:41:02.000Z
2021-11-13T20:41:02.000Z
"""Prime words http://www.rosettacode.org/wiki/Prime_words """ def isPrime(number: int): return all(number % num != 0 for num in range(2, number)) def get_prime_letters(): letters: str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" letters += letters.lower() return [letter for letter in letters if isPrime(ord(lette...
24.16129
78
0.64753
f1e8dfb9f154f2fb0b44711b1d7b7e2a4fba8477
17,574
py
Python
api/getters.py
kmfrick/orario-sync_unibo
2c74ad5fb5f2eadcb35d37b5e00d09b1fa13469d
[ "BSD-3-Clause" ]
null
null
null
api/getters.py
kmfrick/orario-sync_unibo
2c74ad5fb5f2eadcb35d37b5e00d09b1fa13469d
[ "BSD-3-Clause" ]
null
null
null
api/getters.py
kmfrick/orario-sync_unibo
2c74ad5fb5f2eadcb35d37b5e00d09b1fa13469d
[ "BSD-3-Clause" ]
null
null
null
import datetime from datetime import timedelta import dateutil.parser import requests from bs4 import BeautifulSoup from bs4.dammit import EncodingDetector from icalendar import Calendar, Event, Timezone from api import constant def get_encoding(resp): """Gets the encoding used in a webpage""" http_encoding...
44.604061
120
0.68516
c2b68890af2e496f00880cfdc43da45e7797ce58
29,835
py
Python
tests/api/v1/test_challenges.py
atti1a/CTFd
6c5c63d667a17aec159c8e26ea53dccfbc4d0fa3
[ "Apache-2.0" ]
7
2019-10-10T10:06:38.000Z
2021-02-13T05:07:34.000Z
tests/api/v1/test_challenges.py
atti1a/CTFd
6c5c63d667a17aec159c8e26ea53dccfbc4d0fa3
[ "Apache-2.0" ]
5
2021-03-09T20:12:55.000Z
2022-02-10T19:27:46.000Z
tests/api/v1/test_challenges.py
atti1a/CTFd
6c5c63d667a17aec159c8e26ea53dccfbc4d0fa3
[ "Apache-2.0" ]
13
2020-05-08T18:52:54.000Z
2022-01-02T11:19:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from CTFd.models import Users, Challenges, Tags, Hints, Flags, Solves from CTFd.utils import set_config from tests.helpers import ( create_ctfd, destroy_ctfd, register_user, login_as_user, gen_challenge, gen_flag, gen_tag, gen_hint, gen_...
36.652334
115
0.599497
e6a5bebbfea2faf769458a394b8eb1bed4f72fd3
2,144
py
Python
twitchapi/apichecks.py
Amperture/twitch-sbc-integration
71ee86688a7735e6bb3d18c9896c1b8c7a3662d7
[ "MIT" ]
10
2017-04-20T15:15:51.000Z
2021-11-17T20:08:01.000Z
twitchapi/apichecks.py
Amperture/twitch-sbc-integration
71ee86688a7735e6bb3d18c9896c1b8c7a3662d7
[ "MIT" ]
null
null
null
twitchapi/apichecks.py
Amperture/twitch-sbc-integration
71ee86688a7735e6bb3d18c9896c1b8c7a3662d7
[ "MIT" ]
2
2020-02-08T04:15:43.000Z
2021-11-04T09:18:43.000Z
import ConfigParser import Adafruit_BBIO.GPIO as GPIO import requests import time #TEMPORARY CODE FOR TESTING GREEN_LED = "P8_7" RED_LED = "P8_8" GPIO.setup("P8_7", GPIO.OUT) GPIO.setup("P8_8", GPIO.OUT) #END TEMP CODE Config = ConfigParser.ConfigParser() Config.read('../config.ini') clientid = Config.get('API', 'c...
26.469136
59
0.567631
3c27ac221cd28beafe6541cd5a78003bf0f9d106
4,485
py
Python
tempest/api/messaging/test_messages.py
afaheem88/tempest_neutron
20276dbee68087e576f4977633380fc6cd3fc1cd
[ "Apache-2.0" ]
null
null
null
tempest/api/messaging/test_messages.py
afaheem88/tempest_neutron
20276dbee68087e576f4977633380fc6cd3fc1cd
[ "Apache-2.0" ]
null
null
null
tempest/api/messaging/test_messages.py
afaheem88/tempest_neutron
20276dbee68087e576f4977633380fc6cd3fc1cd
[ "Apache-2.0" ]
1
2018-10-09T06:32:04.000Z
2018-10-09T06:32:04.000Z
# Copyright (c) 2014 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
36.463415
76
0.670234
08c0d7588aba97a0c00c1d428c21d72c2ebff3a8
951
py
Python
final_project/machinetranslation/translator.py
akshaygaidhane/xzceb-flask_eng_fr
a6dad1d999106254537dbc97061c6ca5db7f2812
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
akshaygaidhane/xzceb-flask_eng_fr
a6dad1d999106254537dbc97061c6ca5db7f2812
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
akshaygaidhane/xzceb-flask_eng_fr
a6dad1d999106254537dbc97061c6ca5db7f2812
[ "Apache-2.0" ]
null
null
null
import os from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv from ibm_watson import LanguageTranslatorV3 authenticator = IAMAuthenticator('DvqhFn36Zjo4WHj46w4vPsATPgfE_7UC1s8A9nYni4mV') language_translator = LanguageTranslatorV3( version='2021-11-21', authenticator=au...
45.285714
97
0.819138
ba10d08aae66b55933c8afa7e0b763f9cb838950
390
py
Python
build/lib/DMRecall/evaluation/setup.py
busesese/DMRecall
498c7a491c4e6374fcb47ac0f4527de5f540bbee
[ "MIT" ]
9
2019-09-16T08:29:12.000Z
2021-11-29T05:20:47.000Z
build/lib/DMRecall/evaluation/setup.py
busesese/DMRecall
498c7a491c4e6374fcb47ac0f4527de5f540bbee
[ "MIT" ]
1
2021-11-29T05:20:07.000Z
2021-11-29T05:20:07.000Z
build/lib/DMRecall/evaluation/setup.py
busesese/DMRecall
498c7a491c4e6374fcb47ac0f4527de5f540bbee
[ "MIT" ]
4
2020-01-11T03:03:25.000Z
2021-06-29T02:53:42.000Z
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('evaluation', parent_package, top_path) # submodules with build utilities config.add_subpackage('measure') return config if __name__ == '__main__': from numpy.distut...
32.5
66
0.741026
6f7028b7c4536165bdcb3f5f03b23999503099e0
2,637
py
Python
pynitrokey/nk3/utils.py
Nitrokey/nitro-python
7264152564dcc427341b0e145ef94342136056ba
[ "Apache-2.0", "MIT" ]
4
2019-11-05T16:49:43.000Z
2020-06-15T08:08:00.000Z
pynitrokey/nk3/utils.py
Nitrokey/nitro-python
7264152564dcc427341b0e145ef94342136056ba
[ "Apache-2.0", "MIT" ]
16
2019-09-13T14:52:08.000Z
2020-06-22T12:52:41.000Z
pynitrokey/nk3/utils.py
Nitrokey/nitro-python
7264152564dcc427341b0e145ef94342136056ba
[ "Apache-2.0", "MIT" ]
2
2020-01-04T12:06:35.000Z
2020-04-17T16:15:13.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Nitrokey Developers # # Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or # http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or # http://opensource.org/licenses/MIT>, at your option. This file may not be # copied, modified, or distribute...
34.697368
95
0.638604
a78b680b8f4d7f202bf584ecf580733913162fb4
2,723
py
Python
euca2ools/commands/autoscaling/describenotificationconfigurations.py
salewski/euca2ools
6b3f62f2cb1c54f14d3bfa5fd92dab3c0ecafecb
[ "BSD-2-Clause" ]
30
2015-02-10T05:47:38.000Z
2022-01-20T08:48:43.000Z
euca2ools/commands/autoscaling/describenotificationconfigurations.py
salewski/euca2ools
6b3f62f2cb1c54f14d3bfa5fd92dab3c0ecafecb
[ "BSD-2-Clause" ]
16
2015-01-08T23:24:34.000Z
2018-07-18T07:15:40.000Z
euca2ools/commands/autoscaling/describenotificationconfigurations.py
salewski/euca2ools
6b3f62f2cb1c54f14d3bfa5fd92dab3c0ecafecb
[ "BSD-2-Clause" ]
19
2015-05-07T05:34:42.000Z
2020-12-13T10:50:14.000Z
# Copyright (c) 2013-2016 Hewlett Packard Enterprise Development LP # # Redistribution and use of this software in source and binary forms, # with or without modification, are permitted provided that the following # conditions are met: # # Redistributions of source code must retain the above copyright notice, # thi...
45.383333
77
0.71502
fafd0bf1c41488cf97d7660053e8fb6bb2eafe27
2,293
py
Python
tests/nets/wgan_gp/test_wgan_gp_64.py
alexmlamb/mimicry
be030fb24a79c9bd50843d188d930c01e2260f45
[ "MIT" ]
1
2020-04-07T05:28:36.000Z
2020-04-07T05:28:36.000Z
tests/nets/wgan_gp/test_wgan_gp_64.py
Gyanachand1/mimicry
4e0fd46c2c5e97c319273a03374bbfa730071711
[ "MIT" ]
null
null
null
tests/nets/wgan_gp/test_wgan_gp_64.py
Gyanachand1/mimicry
4e0fd46c2c5e97c319273a03374bbfa730071711
[ "MIT" ]
null
null
null
""" Test functions for WGAN-GP for image size 64. """ import torch import torch.optim as optim from torch_mimicry.nets.wgan_gp.wgan_gp_64 import WGANGPGenerator64, WGANGPDiscriminator64 from torch_mimicry.training import metric_log from torch_mimicry.utils import common class TestWGANGP64: def setup(self): ...
30.986486
90
0.558657
b2e6b156dee68f6bb525220bdb05fb5407d6b3bd
4,115
py
Python
scripts/generate.py
MrCapone/bully_vita
9ab7c69ed24d0a3fba4b8ae3664baf33962a53aa
[ "MIT" ]
168
2021-06-05T13:02:51.000Z
2022-03-31T22:27:48.000Z
scripts/generate.py
MrCapone/bully_vita
9ab7c69ed24d0a3fba4b8ae3664baf33962a53aa
[ "MIT" ]
3
2021-06-05T18:40:24.000Z
2021-07-24T23:55:37.000Z
scripts/generate.py
MrCapone/bully_vita
9ab7c69ed24d0a3fba4b8ae3664baf33962a53aa
[ "MIT" ]
15
2021-06-06T00:44:18.000Z
2022-03-19T03:21:03.000Z
#!/usr/bin/env python2 from sys import argv, exit import re import struct import os HLSL_COMPILER = 'HLSLCompiler.exe' PSP2CGC = 'psp2cgc.exe' SHADER_MARKER = '//######################_==_YOYO_SHADER_MARKER_==_######################@~\n' VARYING_SEARCH = '^varying .* (vec[0-4]) (.*);$' CG_SUB_DICT = { '0.69999999...
28.184932
94
0.553827
6d19946eab03cf9c44a4e64a1c046332ec28badf
2,524
py
Python
src/measure.py
tavvar/raspiapc
54390db4396b9ce2d2c0693f6c2053665d2b5077
[ "MIT" ]
null
null
null
src/measure.py
tavvar/raspiapc
54390db4396b9ce2d2c0693f6c2053665d2b5077
[ "MIT" ]
null
null
null
src/measure.py
tavvar/raspiapc
54390db4396b9ce2d2c0693f6c2053665d2b5077
[ "MIT" ]
null
null
null
import time import json import os class Measure: 'Makes a File with Timestamp as name and fills it with Json' filename = "" def __init__(self, filename = "queue.json"): self.filename = filename def initFile(self): try: fo = open(self.filename, "r") fo.c...
28.359551
127
0.500792
12593b71a27e91787c309737883f63ba73b91336
4,490
py
Python
tests/tests/test_inventory.py
merlin-northern/integration
8496f14d27b7f78906c8c79c0edfccb7b111c339
[ "Apache-2.0" ]
null
null
null
tests/tests/test_inventory.py
merlin-northern/integration
8496f14d27b7f78906c8c79c0edfccb7b111c339
[ "Apache-2.0" ]
null
null
null
tests/tests/test_inventory.py
merlin-northern/integration
8496f14d27b7f78906c8c79c0edfccb7b111c339
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2017 Northern.tech AS # # 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 a...
42.761905
136
0.509354
fc843445bddaa6dfea72170e90cb29e707953ec1
1,597
py
Python
tests/pytests/integration/states/test_cron.py
avkvl/salt
d906b2ec9baa1f0c5e61a69c954b62f9b9f11381
[ "Apache-2.0" ]
1
2021-02-26T07:37:19.000Z
2021-02-26T07:37:19.000Z
tests/pytests/integration/states/test_cron.py
avkvl/salt
d906b2ec9baa1f0c5e61a69c954b62f9b9f11381
[ "Apache-2.0" ]
null
null
null
tests/pytests/integration/states/test_cron.py
avkvl/salt
d906b2ec9baa1f0c5e61a69c954b62f9b9f11381
[ "Apache-2.0" ]
null
null
null
""" Tests for the cron state """ import logging import subprocess import pytest import salt.utils.platform from tests.support.helpers import slowTest log = logging.getLogger(__name__) @pytest.fixture def cron_account(): with pytest.helpers.create_account() as system_account: try: yield syst...
30.711538
132
0.650595
71ef2a929d449572e535ab6e34882e45242c6a07
2,194
py
Python
sorting-numbers/models/transformer_masking/utils.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
1
2020-03-11T22:52:19.000Z
2020-03-11T22:52:19.000Z
sorting-numbers/models/transformer_masking/utils.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
3
2021-05-21T16:15:18.000Z
2022-02-10T01:11:23.000Z
sorting-numbers/models/transformer_masking/utils.py
AndreMaz/dnn-attention
86e834b90bd419646fd00c6ff4df910ab7874910
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf def point_wise_feed_forward_network(d_model, dff): return tf.keras.Sequential([ tf.keras.layers.Dense(dff, activation='relu'), # (batch_size, seq_len, dff) tf.keras.layers.Dense(d_model) # (batch_size, seq_len, d_model) ]) def get_angles(pos, i, d_model): ...
34.28125
100
0.66454
2504a7d150cff423f134fea0777fbc8ce7c7aaf6
4,680
py
Python
src/python/bot/fuzzers/utils.py
sanketsaurav/clusterfuzz
9f7efba7781614d50cdc6ab136b9bcf19607731c
[ "Apache-2.0" ]
1
2019-04-09T06:40:55.000Z
2019-04-09T06:40:55.000Z
src/python/bot/fuzzers/utils.py
Delaney6/clusterfuzz
9eeb08a85869b32733dd54c69b098688ff3b1bf5
[ "Apache-2.0" ]
null
null
null
src/python/bot/fuzzers/utils.py
Delaney6/clusterfuzz
9eeb08a85869b32733dd54c69b098688ff3b1bf5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.836735
80
0.743162
580bf38a0ba67cccffe73e0361c287ecb401425b
9,522
py
Python
test/test_linear_interpolation.py
crispitagorico/torchcde
fcd85a3795edd6872c443425c690f1696584cba6
[ "Apache-2.0" ]
1
2021-04-24T05:26:49.000Z
2021-04-24T05:26:49.000Z
test/test_linear_interpolation.py
crispitagorico/torchcde
fcd85a3795edd6872c443425c690f1696584cba6
[ "Apache-2.0" ]
null
null
null
test/test_linear_interpolation.py
crispitagorico/torchcde
fcd85a3795edd6872c443425c690f1696584cba6
[ "Apache-2.0" ]
null
null
null
import torch import torchcde import pytest def test_random(): def _points(): yield 2 yield 3 yield 100 for _ in range(10): yield torch.randint(low=2, high=100, size=(1,)).item() for reparameterise in ('none', 'bump'): for drop in (False, True): ...
50.380952
119
0.530561
e8865db321795a7e7b8152ca193f2baf81ddba6f
3,127
py
Python
core/images.py
Varkalas/Tower-of-Hero
8b58534f9b2d214b0375bf5e367a0149045850df
[ "MIT" ]
1
2017-11-18T14:00:08.000Z
2017-11-18T14:00:08.000Z
core/images.py
Varkalas/Tower-of-Hero
8b58534f9b2d214b0375bf5e367a0149045850df
[ "MIT" ]
null
null
null
core/images.py
Varkalas/Tower-of-Hero
8b58534f9b2d214b0375bf5e367a0149045850df
[ "MIT" ]
null
null
null
from definitions import ROOT_DIR from tkinter import messagebox from cv2 import imread IMAGE_PATH = ROOT_DIR + "\\images\\" def read_image(image_name): full_name = IMAGE_PATH + image_name the_image = imread(full_name) if the_image is None: messagebox.showerror("Incorrect File Name", "{} could no...
41.693333
94
0.801087
1fa6f37b7133b7dc605aecc99f7fd5d94e486d52
236
py
Python
flask_restplus_demo/api/v1/__init__.py
deluxebrain/flask_restplus_demo
3bec957344fbbb300fcf009687422ddded4d9ecf
[ "MIT" ]
null
null
null
flask_restplus_demo/api/v1/__init__.py
deluxebrain/flask_restplus_demo
3bec957344fbbb300fcf009687422ddded4d9ecf
[ "MIT" ]
null
null
null
flask_restplus_demo/api/v1/__init__.py
deluxebrain/flask_restplus_demo
3bec957344fbbb300fcf009687422ddded4d9ecf
[ "MIT" ]
null
null
null
import logging from flask import Blueprint from flask_restplus_demo.api.v1.api import api log = logging.getLogger(__name__) blueprint = Blueprint('api_v1', __name__, url_prefix="/api/v1") api.init_app(blueprint) from . import users
19.666667
63
0.788136
d5dc033e57f6ec28857d586834c44ffae3c6d7b0
222
py
Python
setup.py
jaschn/dtu_mlops_mnist
54b5344bde1131463d6783bbfe61bdc70db1c1be
[ "MIT" ]
null
null
null
setup.py
jaschn/dtu_mlops_mnist
54b5344bde1131463d6783bbfe61bdc70db1c1be
[ "MIT" ]
null
null
null
setup.py
jaschn/dtu_mlops_mnist
54b5344bde1131463d6783bbfe61bdc70db1c1be
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Exercise project for the DTU MLOPS course', author='jaschn', license='MIT', )
20.181818
60
0.671171
287ae8d1fffdf614242883c0ea09b99bbfee6b55
4,956
py
Python
linaro/staticlink/script/regrex.py
dalvikfrank/docs
35ace4c90cef8b0ac82e18d2b9ac078131f61b93
[ "Apache-2.0" ]
null
null
null
linaro/staticlink/script/regrex.py
dalvikfrank/docs
35ace4c90cef8b0ac82e18d2b9ac078131f61b93
[ "Apache-2.0" ]
null
null
null
linaro/staticlink/script/regrex.py
dalvikfrank/docs
35ace4c90cef8b0ac82e18d2b9ac078131f61b93
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import urllib2 import re import os import sys import commands import subprocess import shlex import string import getopt DELTTE_TEST_CASE = True # True: allCount all count except test cases Flase: allCount including test cases def search_opt(android_dir, set_file, out_dir): if len(android_dir)...
32.392157
167
0.512107
d9f0bc1e538b30636ef46195a3340c13181f17f8
793
py
Python
theano/overfeat.py
s0nghuiming/convnet-benchmarks
5b91b6966714e8358292ae440d807c6d9d2cf7fe
[ "MIT" ]
2,829
2015-01-02T19:34:27.000Z
2022-02-22T03:42:06.000Z
theano/overfeat.py
Reddmist/convnet-benchmarks
b458aab61c0ac2257c0990119b5de15c1e886f02
[ "MIT" ]
90
2015-02-18T21:56:21.000Z
2021-02-06T22:20:30.000Z
theano/overfeat.py
Reddmist/convnet-benchmarks
b458aab61c0ac2257c0990119b5de15c1e886f02
[ "MIT" ]
644
2015-01-02T19:31:23.000Z
2022-01-07T23:53:45.000Z
import theano.tensor as T from lasagne.layers import InputLayer, DenseLayer, Conv2DLayer,\ MaxPool2DLayer image_sz = 231 def build_model(batch_size=128): x = T.tensor4('input') layer = InputLayer((batch_size, 3, image_sz, image_sz), input_var=x) layer = Conv2DLayer(layer, 96, 11, stride=4, pad='vali...
28.321429
72
0.679697
00b1fa74d98ff8ab7d4bbc1bb0c0948401e27feb
2,099
py
Python
2020/23/solution.py
Den4200/advent-of-code
87117fde308e9907da9adc77d55a10a75a97ee99
[ "MIT" ]
5
2021-12-20T02:30:15.000Z
2021-12-24T15:52:50.000Z
2020/23/solution.py
Den4200/advent-of-code-2020
87117fde308e9907da9adc77d55a10a75a97ee99
[ "MIT" ]
null
null
null
2020/23/solution.py
Den4200/advent-of-code-2020
87117fde308e9907da9adc77d55a10a75a97ee99
[ "MIT" ]
null
null
null
from collections import deque from itertools import islice class Node: def __init__(self, value): self.value = value self.next = None def parse_data(): with open('2020/23/input.txt') as f: data = f.read() return [int(num) for num in data.strip()] def part_one(data): cups ...
22.569892
74
0.553121
e34e4ab3227982b911ed69a7c236bc914f198ae8
11,290
py
Python
learntools/nlp/ex2.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
null
null
null
learntools/nlp/ex2.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
null
null
null
learntools/nlp/ex2.py
roannav/learntools
355a5df6a66562de62254b723da1a9389b9acc49
[ "Apache-2.0" ]
null
null
null
import random import numpy as np import pandas as pd import spacy from spacy.util import minibatch import textwrap from learntools.core import * def load_data(csv_file, split=0.8): data = pd.read_csv(csv_file) # Shuffle data train_data = data.sample(frac=1, random_state=7) texts = train_dat...
42.284644
142
0.635252
d0759d2b514c5838ab506a2649bf9f56a9f0253b
93
py
Python
Ejercicio5.py
mariagarciau/Ejercicios-Analisis
54be0f131b59b9cdafbac5f42711fc282d0de21d
[ "Apache-2.0" ]
null
null
null
Ejercicio5.py
mariagarciau/Ejercicios-Analisis
54be0f131b59b9cdafbac5f42711fc282d0de21d
[ "Apache-2.0" ]
null
null
null
Ejercicio5.py
mariagarciau/Ejercicios-Analisis
54be0f131b59b9cdafbac5f42711fc282d0de21d
[ "Apache-2.0" ]
null
null
null
"""¿Puede usted mejorar el algoritmo del problema anterior para que sea lineal? Explique. """
46.5
89
0.763441
0bb98fd34f7629b4ac8af331ad2b5bf469490d7c
5,381
py
Python
chia/wallet/cc_wallet/cc_utils_test.py
stablyio/chia-blockchain
b332dd71b8cfbcd7c3dc552defdea5dda69cf34a
[ "Apache-2.0" ]
null
null
null
chia/wallet/cc_wallet/cc_utils_test.py
stablyio/chia-blockchain
b332dd71b8cfbcd7c3dc552defdea5dda69cf34a
[ "Apache-2.0" ]
null
null
null
chia/wallet/cc_wallet/cc_utils_test.py
stablyio/chia-blockchain
b332dd71b8cfbcd7c3dc552defdea5dda69cf34a
[ "Apache-2.0" ]
null
null
null
from chia.rpc.cat_utils import convert_to_coin_spend from chia.wallet.cc_wallet.cc_utils import get_parent_cat_coin_spend_lineage_proof class Test_get_parent_cat_coin_spend_lineage_proof: def test_valid_case(self): parent_coin_spend = convert_to_coin_spend( raw_coin_spend={ "...
199.296296
3,650
0.941089
b0c2d33e1d2867fc6681ecc67d0f762b13ca7a6c
136,839
py
Python
test/api/test_workflows.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
null
null
null
test/api/test_workflows.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
null
null
null
test/api/test_workflows.py
innovate-invent/galaxy
10aa953a40e171246bdd1804c74e8019da8e8200
[ "CC-BY-3.0" ]
null
null
null
from __future__ import print_function import json import time from json import dumps from uuid import uuid4 from requests import delete, get, put from base import api # noqa: I100,I202 from base import rules_test_data # noqa: I100 from base.populators import ( # noqa: I100 DatasetCollectionPopulator, Data...
41.341088
239
0.67331
8cb9df30a85d28627f6b87a83ba0a89908a7485d
669
py
Python
src/sponsors/migrations/0006_auto_20170715_1110.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/sponsors/migrations/0006_auto_20170715_1110.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/sponsors/migrations/0006_auto_20170715_1110.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-07-15 09:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sponsors', '0005_sponsor_url'), ] operations = [ migrations.AlterField( ...
25.730769
93
0.596413
175c7aa57aae068adbebbb4c2d997a134b765a4c
1,960
py
Python
tests/algorithms/test_merge.py
Hekstra-Lab/reciprocalspaceship
48b72ad70608fdbdfef31f6b38aac5873abc0dba
[ "MIT" ]
22
2020-07-10T18:13:10.000Z
2022-03-04T16:51:00.000Z
tests/algorithms/test_merge.py
Hekstra-Lab/reciprocalspaceship
48b72ad70608fdbdfef31f6b38aac5873abc0dba
[ "MIT" ]
109
2020-07-03T10:07:18.000Z
2022-03-28T20:49:48.000Z
tests/algorithms/test_merge.py
Hekstra-Lab/reciprocalspaceship
48b72ad70608fdbdfef31f6b38aac5873abc0dba
[ "MIT" ]
10
2020-07-03T10:51:21.000Z
2021-08-23T19:05:24.000Z
import numpy as np import pytest import reciprocalspaceship as rs def test_merge_valueerror(hewl_merged): """ Confirm rs.algorithms.merge() raises ValueError when invoked with merged DataSet """ with pytest.raises(ValueError): merged = rs.algorithms.merge(hewl_merged) @pytest.mark.param...
30.625
85
0.628061
125a66a9ecb27cf8cdb0c9018cfd76e12f81dbab
2,570
py
Python
localflavor/lv/forms.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
1
2018-11-28T22:08:17.000Z
2018-11-28T22:08:17.000Z
localflavor/lv/forms.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
null
null
null
localflavor/lv/forms.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import re from datetime import date from django.core.validators import EMPTY_VALUES from django.forms import ValidationError from django.forms.fields import Field, Select from django.utils.translation import ugettext_lazy as _ from .lv_choices import MUNICIPALITY_CHOICES zipc...
29.883721
87
0.6393
d456548c92e194f5afa28146c0413b2c43fd65ba
1,253
py
Python
src/spaceone/core/skeleton/conf/global_conf.py
jihyungSong/python-core
898ead301363d3e599ecd645b73071e639f886b0
[ "Apache-2.0" ]
14
2020-06-01T08:17:43.000Z
2022-01-13T22:37:50.000Z
src/spaceone/core/skeleton/conf/global_conf.py
jihyungSong/python-core
898ead301363d3e599ecd645b73071e639f886b0
[ "Apache-2.0" ]
7
2020-08-11T23:05:59.000Z
2022-01-12T05:08:49.000Z
src/spaceone/core/skeleton/conf/global_conf.py
jihyungSong/python-core
898ead301363d3e599ecd645b73071e639f886b0
[ "Apache-2.0" ]
11
2020-06-01T08:17:49.000Z
2021-11-25T08:26:37.000Z
# Database Settings DATABASES = { 'default': { # MongoDB Example # 'host': '<host>', # 'port': 27017, # 'db': '<db>', # 'username': '<user>', # 'password': '<password>' }, # 'local': { # 'backend': 'spaceone.core.cache.local_cache.LocalCache', # ...
22.375
98
0.524342
6aa35b6265cf55bdcc08534087fa8d96b3896661
17,523
py
Python
umap/utils.py
cjweir/umap
60d6b7be30e5d9c40746dcf6052bec09478942b6
[ "BSD-3-Clause" ]
16
2021-01-11T19:39:15.000Z
2022-01-26T14:39:00.000Z
umap/utils.py
cjweir/umap
60d6b7be30e5d9c40746dcf6052bec09478942b6
[ "BSD-3-Clause" ]
3
2021-05-11T10:30:43.000Z
2021-05-21T07:24:47.000Z
umap/utils.py
cjweir/umap
60d6b7be30e5d9c40746dcf6052bec09478942b6
[ "BSD-3-Clause" ]
2
2021-05-13T12:24:34.000Z
2021-06-08T14:03:07.000Z
# Author: Leland McInnes <leland.mcinnes@gmail.com> # # License: BSD 3 clause import time import numpy as np import numba import scipy.sparse @numba.njit(parallel=True) def fast_knn_indices(X, n_neighbors): """A fast computation of knn indices. Parameters ---------- X: array of shape (n_samples, n_...
29.107973
88
0.605319
0c1522f39e7fe5832087109f28316a811f154835
1,181
py
Python
tests/_animation/test_animation_scale_y_from_point_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_animation/test_animation_scale_y_from_point_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_animation/test_animation_scale_y_from_point_interface.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry import apysc as ap from apysc._display.scale_y_from_point_interface import \ ScaleYFromPointInterface from tests.testing_helper import assert_attrs class TestAnimationScaleYFromPointInterface: @retry(stop_max_attempt_number=15, wait_fixed=ra...
33.742857
73
0.607113
20d488c6cbff6f256c323c821c06a049aacd0eda
2,327
py
Python
python/fdfault/__init__.py
egdaub/fdfault
ec066f032ba109843164429aa7d9e7352485d735
[ "MIT" ]
12
2017-10-05T22:04:40.000Z
2020-08-31T08:32:17.000Z
python/fdfault/__init__.py
jhsa26/fdfault
ec066f032ba109843164429aa7d9e7352485d735
[ "MIT" ]
3
2020-05-06T16:48:32.000Z
2020-09-18T11:41:41.000Z
python/fdfault/__init__.py
jhsa26/fdfault
ec066f032ba109843164429aa7d9e7352485d735
[ "MIT" ]
12
2017-03-24T19:15:27.000Z
2020-08-31T08:32:18.000Z
""" ``fdfault`` is a python module for setting up dynamic rupture problems for use with the C++ code. ================ Overview ================ The Python module closely resembles the structure of the text input files and hence the structure of the C++ code, and has an interface for specifying all simulation paramet...
49.510638
109
0.766652
17cdc3e85abd4ec585025a6042beba51526a947b
2,335
py
Python
discordware/_vendors/hype/style.py
znqi/discordware
e456bf7b0314ef8f29fabb9fa69f8c979f34d655
[ "MIT" ]
13
2021-07-31T12:07:06.000Z
2022-03-24T15:00:50.000Z
discordware/_vendors/hype/style.py
znqi/discordware
e456bf7b0314ef8f29fabb9fa69f8c979f34d655
[ "MIT" ]
2
2021-08-02T14:04:58.000Z
2021-09-06T09:35:20.000Z
discordware/_vendors/hype/style.py
znqi/discordware
e456bf7b0314ef8f29fabb9fa69f8c979f34d655
[ "MIT" ]
3
2021-08-07T13:23:54.000Z
2022-01-24T13:23:08.000Z
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. """ This module generates ANSI character codes to printing colors to terminals. See: http://en.wikipedia.org/wiki/ANSI_escape_code """ CSI = "\033[" OSC = "\033]" BEL = "\a" def code_to_chars(code): return CSI + str(code) + "m" def set_...
20.663717
78
0.605996
416ed0c9c7517db2e295f60fe34a1f4c4c84b82d
928,247
py
Python
USB/python/usb_2600_rbf.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
100
2016-11-08T15:41:43.000Z
2022-02-20T19:37:32.000Z
USB/python/usb_2600_rbf.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
37
2017-01-05T17:48:14.000Z
2022-01-06T17:43:27.000Z
USB/python/usb_2600_rbf.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
65
2016-12-20T07:03:44.000Z
2022-03-14T21:48:35.000Z
FPGA_data = ( 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x6a, 0xde, 0xff, 0x7f, 0x00, 0x2c, 0xe7, 0x0f, 0x00, 0x6a, 0xde, 0xff, 0x7f, 0x00, 0x2c, 0xe7, 0x0f, 0x00, 0x6a, 0xde, 0xff, 0x7f, 0x00, 0x2c, 0xe7, 0x0f, 0x00,...
56.989624
56
0.561403
92e6d87a6689d2aeaec1a1b4f2438825d883720c
4,163
py
Python
Assignment-2/dbscan.py
omkargavhane/CS564-ML
3bc4a3557e5c18501d7e7a48f26429fe35c55893
[ "MIT" ]
null
null
null
Assignment-2/dbscan.py
omkargavhane/CS564-ML
3bc4a3557e5c18501d7e7a48f26429fe35c55893
[ "MIT" ]
null
null
null
Assignment-2/dbscan.py
omkargavhane/CS564-ML
3bc4a3557e5c18501d7e7a48f26429fe35c55893
[ "MIT" ]
null
null
null
import arff,copy from sklearn import preprocessing import numpy as np #{0:'core',1:'outlier',2:'boundary'} def minkowski_metric(v1,v2,p=1): '''Fucntion to calculate distance between two vectors depending on the given value of p''' if len(v1)==len(v2): sum=0 for i in range(len(v1)): ...
38.906542
150
0.589479
87605068795ba54b50eacdf3cbe7ba06be9048de
34,638
py
Python
scikits/statsmodels/tsa/ar_model.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
scikits/statsmodels/tsa/ar_model.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
scikits/statsmodels/tsa/ar_model.py
matthew-brett/statsmodels
915c9dc2d762c5592ac17a7cf5f1cc957fcbde1c
[ "BSD-3-Clause" ]
null
null
null
""" This is the VAR class refactored from pymaclab. """ from __future__ import division import numpy as np from numpy import (dot, identity, atleast_2d, atleast_1d, zeros) from numpy.linalg import inv from scipy import optimize from scipy.stats import t, norm, ss as sumofsq from scikits.statsmodels.regression.linear_mo...
37.773173
296
0.550609
e7062e6b82f071110bbbea01d30dd8d45f41e7cf
6,797
py
Python
scripts/gen_d.py
stbachmann/soloud
d73f18b7b2855c9a8ed6d643d36ec6407f5e3ed4
[ "Libpng", "Zlib" ]
1,319
2015-01-07T20:13:41.000Z
2022-03-30T14:07:11.000Z
scripts/gen_d.py
stbachmann/soloud
d73f18b7b2855c9a8ed6d643d36ec6407f5e3ed4
[ "Libpng", "Zlib" ]
250
2015-02-16T21:06:34.000Z
2022-02-23T21:23:10.000Z
extern/SoLoud/scripts/gen_d.py
YamiOG/Chassis2D
71c02d8c3a522694b7f4c6fa54d2a6ac5c9c14e0
[ "MIT" ]
213
2015-02-28T18:18:29.000Z
2022-03-18T09:12:06.000Z
#!/usr/bin/env python3 """ SoLoud D wrapper generator """ import soloud_codegen fo = open("../glue/soloud.d", "w") C_TO_D_TYPES = { "string":"string", "int":"int", "void":"void", "const char *":"const(char)*", "char *":"char*", "unsigned int":"uint", "float":"float", "double":"double...
32.21327
102
0.470502
e635bbefb12b56734131362c979d859345c62259
2,320
py
Python
model/taskinput.py
yxue3357/TinyM_ER
c7809a39bfdfe9baa00a5ad5be99f0270c73b4ea
[ "Apache-2.0", "MIT" ]
131
2019-03-04T16:34:29.000Z
2022-03-07T11:04:38.000Z
model/taskinput.py
yxue3357/TinyM_ER
c7809a39bfdfe9baa00a5ad5be99f0270c73b4ea
[ "Apache-2.0", "MIT" ]
4
2020-02-12T11:46:09.000Z
2021-06-25T13:25:48.000Z
model/taskinput.py
yxue3357/TinyM_ER
c7809a39bfdfe9baa00a5ad5be99f0270c73b4ea
[ "Apache-2.0", "MIT" ]
34
2019-05-17T03:34:37.000Z
2022-03-08T18:37:45.000Z
### Code for this basline is copied directly from multimodal.py in https://github.com/facebookresearch/GradientEpisodicMemory # Copyright 2019-present, IBM Research # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import t...
29.367089
125
0.556034
69c48a8b500906208871f8df76f1769e134d218a
1,293
py
Python
pinball/master/snapshot.py
DotModus/pinball
deeb4ec20bbd000ad44f7b44e6a7c0fa900dbbea
[ "Apache-2.0" ]
1,143
2015-03-06T22:10:53.000Z
2022-02-23T21:16:47.000Z
pinball/master/snapshot.py
DotModus/pinball
deeb4ec20bbd000ad44f7b44e6a7c0fa900dbbea
[ "Apache-2.0" ]
70
2015-03-06T00:44:39.000Z
2019-05-01T13:15:10.000Z
pinball/master/snapshot.py
Betterment/pinball
11120b54fcc25b2857631a5de65a1195ffcffb5c
[ "Apache-2.0" ]
169
2015-03-09T21:27:12.000Z
2022-03-19T08:09:13.000Z
# Copyright 2015, Pinterest, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
31.536585
79
0.699149
8377bd2844e0496c66672b881d840bfe6a35d3ee
2,973
py
Python
hw_7_DNA.py
Katy-Scha/AdvancedPython2021
260512928fe958c0bb1164ad3357dfbf38f163ef
[ "MIT" ]
null
null
null
hw_7_DNA.py
Katy-Scha/AdvancedPython2021
260512928fe958c0bb1164ad3357dfbf38f163ef
[ "MIT" ]
2
2021-09-10T07:57:55.000Z
2021-10-05T22:48:12.000Z
hw_7_DNA.py
Katy-Scha/AdvancedPython2021
260512928fe958c0bb1164ad3357dfbf38f163ef
[ "MIT" ]
null
null
null
import random class Chain: def __init__(self, seq): self.seq = seq #self._dict = None def correct(self, seq): #отправляю seq отдельно, ибо хочу проверять корректность до создания полноценного объекта if seq is None: return True for c in seq: if no...
33.033333
118
0.543895
a42ba0b17759a2d3c485dbfd21c8faf330ff73fe
259
py
Python
website/apps/ip_blocking/view_guards.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
61
2015-11-10T17:13:46.000Z
2021-08-06T17:58:30.000Z
website/apps/ip_blocking/view_guards.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
13
2015-11-11T07:49:41.000Z
2021-06-09T03:45:31.000Z
website/apps/ip_blocking/view_guards.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
18
2015-11-11T04:50:04.000Z
2021-08-20T00:57:11.000Z
from django.core.exceptions import PermissionDenied from apps.ip_blocking.models import is_ip_blocked from canvas.view_guards import view_guard @view_guard def require_unblocked_ip(request): if is_ip_blocked(request): raise PermissionDenied()
21.583333
51
0.810811
7e2b66bc49eb83605a06d4e27f8b6173f3b50a44
765
py
Python
importfrompdf.py
nmontesoro/Tarjetas_v4
5d10555d9050cb0dfa32ceda5549fe9029c889dd
[ "MIT" ]
null
null
null
importfrompdf.py
nmontesoro/Tarjetas_v4
5d10555d9050cb0dfa32ceda5549fe9029c889dd
[ "MIT" ]
null
null
null
importfrompdf.py
nmontesoro/Tarjetas_v4
5d10555d9050cb0dfa32ceda5549fe9029c889dd
[ "MIT" ]
null
null
null
from pdfparser import PdfParser import glob import sqlite3 as sql db = sql.connect('data.db') for file in glob.glob('pdf/*.pdf'): print('Procesando %s' % (file)) p = PdfParser(file) liqs = p.get_liquidaciones() sql_insert_str = ('INSERT INTO operaciones (sucursal, fpago, liqno, lote, ' + 'aran...
31.875
79
0.529412
88dcc58a68873f369dd8e03da32430dc652377b8
3,105
py
Python
helloname/settings.py
riverstation/cnkiproject
e0f6c85230c7d66dc910356cb6bffb6ff5b4cc71
[ "Apache-2.0" ]
null
null
null
helloname/settings.py
riverstation/cnkiproject
e0f6c85230c7d66dc910356cb6bffb6ff5b4cc71
[ "Apache-2.0" ]
null
null
null
helloname/settings.py
riverstation/cnkiproject
e0f6c85230c7d66dc910356cb6bffb6ff5b4cc71
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for helloname project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/top...
34.120879
102
0.774879
3a273998f3a9ffe66d3b7af56388ceed6e6f91b8
34,902
py
Python
scripts/build_tools.py
shangliyun/lu_xing_xiang_one_os
02b3900bbc2303291ad6b16d59f50df786af4e27
[ "Apache-2.0" ]
1
2022-03-26T09:59:37.000Z
2022-03-26T09:59:37.000Z
scripts/build_tools.py
shangliyun/lu_xing_xiang_one_os
02b3900bbc2303291ad6b16d59f50df786af4e27
[ "Apache-2.0" ]
1
2021-06-24T04:27:40.000Z
2021-06-24T04:27:40.000Z
scripts/build_tools.py
shangliyun/lu_xing_xiang_one_os
02b3900bbc2303291ad6b16d59f50df786af4e27
[ "Apache-2.0" ]
2
2021-06-24T04:08:28.000Z
2022-03-07T06:37:24.000Z
# # File : build_tools.py # This file is part of CMCC IOT OS # COPYRIGHT (C) 2012-2020, CMCC IOT # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
33.689189
147
0.568363
4edc52021b52954b7bcfc77031a13e48cefa7b90
2,165
py
Python
nicos_mlz/maria/devices/powersupply.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/maria/devices/powersupply.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
1
2021-08-18T10:55:42.000Z
2021-08-18T10:55:42.000Z
nicos_mlz/maria/devices/powersupply.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
36.694915
79
0.614781
9352300f463553790acaae304570abb226552c3c
36,272
py
Python
main.py
MeckeDev/PhasmoBot
3defd252140ca68c8d9f099f55c76169bc64812d
[ "MIT" ]
null
null
null
main.py
MeckeDev/PhasmoBot
3defd252140ca68c8d9f099f55c76169bc64812d
[ "MIT" ]
null
null
null
main.py
MeckeDev/PhasmoBot
3defd252140ca68c8d9f099f55c76169bc64812d
[ "MIT" ]
null
null
null
from twitchio.ext import commands from NewChannel import * import time import os import threading from datetime import datetime import requests as r from dotenv import load_dotenv load_dotenv() # The Bot is getting created with the Tokens and IDs bot = commands.Bot( irc_token=os.getenv('TMI_TOKEN'), api_to...
37.432405
272
0.542705
abb5e9c45322e57620ead1f04feb33447317ea2c
3,080
py
Python
__init__.py
katlabs/respeaker-array-v2-skill
ab72eddf032597288f6119c5e926dc23e020cf12
[ "Apache-2.0" ]
1
2021-12-21T16:11:51.000Z
2021-12-21T16:11:51.000Z
__init__.py
katlabs/respeaker-array-v2-skill
ab72eddf032597288f6119c5e926dc23e020cf12
[ "Apache-2.0" ]
null
null
null
__init__.py
katlabs/respeaker-array-v2-skill
ab72eddf032597288f6119c5e926dc23e020cf12
[ "Apache-2.0" ]
null
null
null
# 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 the...
30.49505
74
0.771753
ddc643cf13cd7dab4e146464c4fe79bc5a61b47f
175
py
Python
dgp/genera/__init__.py
dataspot/dgp
553a255a4884b935cf2efecdc761050232f0f066
[ "MIT" ]
1
2019-07-17T11:34:27.000Z
2019-07-17T11:34:27.000Z
dgp/genera/__init__.py
datahq/dgp
f39592ce20ba67b73b08188f14585b6eb3d43f96
[ "MIT" ]
2
2019-04-30T12:32:32.000Z
2019-04-30T12:35:26.000Z
dgp/genera/__init__.py
dataspot/dgp
553a255a4884b935cf2efecdc761050232f0f066
[ "MIT" ]
null
null
null
from .load import LoaderDGP, PostLoaderDGP from .transform import TransformDGP from .enrich import EnricherDGP from .publish import PublisherDGP from .simple import SimpleDGP
29.166667
42
0.845714
2f5c489c7f67ce9b468e79e13bb9a65e3b528043
3,080
py
Python
mowl/examples/CatEmbeddings/get_splits.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
mowl/examples/CatEmbeddings/get_splits.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
mowl/examples/CatEmbeddings/get_splits.py
bio-ontology-research-group/OntoML
4cdc17dc7ee26464db96c67838c3e77dba5318f9
[ "BSD-3-Clause" ]
null
null
null
import random import pickle as pkl import click as ck import logging logging.basicConfig(level = logging.INFO) def get_splits(train_edges_file, closure_edges_file): ontology_edges = [] with open(train_edges_file, "r") as f: for line in f: line = line.rstrip("\n").split("\t") ont...
30.8
112
0.603247
b62cc8b86f6e45e89b1aa26fa31bf051a678492d
1,030
py
Python
dataset/roadsign_voc/download_roadsign_voc.py
linglanfeng/PaddleDetection
487e6e60b2cfe0b411bba64622ca7f8fe467f3d2
[ "Apache-2.0" ]
1
2021-03-04T06:10:14.000Z
2021-03-04T06:10:14.000Z
dataset/roadsign_voc/download_roadsign_voc.py
rqjtsq/PaddleDetection
b457850659c43fbd4a26c4fc4b70a3709b9952d4
[ "Apache-2.0" ]
null
null
null
dataset/roadsign_voc/download_roadsign_voc.py
rqjtsq/PaddleDetection
b457850659c43fbd4a26c4fc4b70a3709b9952d4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.517241
74
0.766019
e5ceb6098e918402f0814bb7763e23db811fc8a5
4,181
py
Python
examples/polyfitRidgeLasso.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/polyfitRidgeLasso.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/polyfitRidgeLasso.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
""" Ridge and lasso regression: Visualize effect of changing lambda on degree 14 polynomial. This is a simplified version of linregPolyVsRegDemo.m These are the steps: - Generate the data - Create a preprocessor pipeline that applies a degree 14 polynomial and rescales values to be within [-1, 1] (no hyp...
32.664063
95
0.696723
cb2ded00bf791b004ae66e2786f5ccc69b8e0141
12,252
py
Python
src/python/views/demo_tigergraph_circle/__init__.py
akash-kaul/graph-app-kit
39d22c4770b9bb77ea8c6a378d80eba579fa6aeb
[ "BSD-3-Clause" ]
null
null
null
src/python/views/demo_tigergraph_circle/__init__.py
akash-kaul/graph-app-kit
39d22c4770b9bb77ea8c6a378d80eba579fa6aeb
[ "BSD-3-Clause" ]
null
null
null
src/python/views/demo_tigergraph_circle/__init__.py
akash-kaul/graph-app-kit
39d22c4770b9bb77ea8c6a378d80eba579fa6aeb
[ "BSD-3-Clause" ]
null
null
null
import asyncio import graphistry import pandas as pd import streamlit as st from components import GraphistrySt, URLParam from css import all_css from util import getChild import time from TigerGraph_helper import tg_helper import plotly.express as px import pyTigerGraphBeta as tg import datetime #####################...
31.496144
124
0.565051
6a4b0836fdc5c825bba132f8fc6d6f86798662ed
156
py
Python
utils/embed.py
lolbot-project/lolbot
9d03ce1cbd506329d3538ec16a62895f8693016a
[ "MIT" ]
3
2018-03-05T17:13:11.000Z
2018-06-05T14:29:59.000Z
utils/embed.py
tilda/lolbot
9d03ce1cbd506329d3538ec16a62895f8693016a
[ "MIT" ]
6
2017-08-27T02:51:54.000Z
2018-01-22T03:09:06.000Z
utils/embed.py
tilda/lolbot
9d03ce1cbd506329d3538ec16a62895f8693016a
[ "MIT" ]
5
2017-10-07T16:41:21.000Z
2018-02-05T22:01:48.000Z
from discord import Embed def get_embed(): """ Helper for discord.Embed. :returns: discord.Embed """ return Embed(colour=0x690E8)
15.6
32
0.628205
585b04ed77e929440c98f61e23f2d2c33b97449b
1,313
py
Python
luhn.py
dakl/luhn
59ab1b3d90bbff9ade23fdb3dd8d28ed49855992
[ "MIT" ]
null
null
null
luhn.py
dakl/luhn
59ab1b3d90bbff9ade23fdb3dd8d28ed49855992
[ "MIT" ]
null
null
null
luhn.py
dakl/luhn
59ab1b3d90bbff9ade23fdb3dd8d28ed49855992
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Luhn's algo doesn't change digit certain transpositions # 90 <-> 09 # 22 <-> 55 # 33 <-> 66 # 44 <-> 77 # based on http://en.wikipedia.org/wiki/Luhn_algorithm#Strengths_and_weaknesses REJECTED_STRS = ["09", "90", "22", "55", "33", "66", "44", "77"] def padToQuad(num): while len(str(num)) < 4:...
29.177778
79
0.680122
f815ab90a178224cae8c879fd6fb8f27d2860ad0
176
py
Python
twitoff/__init__.py
dmhliu/twitoff
4c880eedf0a0925fe9200b1cf2a09d555a372adc
[ "MIT" ]
null
null
null
twitoff/__init__.py
dmhliu/twitoff
4c880eedf0a0925fe9200b1cf2a09d555a372adc
[ "MIT" ]
4
2021-06-08T22:12:41.000Z
2022-03-12T00:48:37.000Z
twitoff/__init__.py
dmhliu/twitoff
4c880eedf0a0925fe9200b1cf2a09d555a372adc
[ "MIT" ]
null
null
null
#!/ usr/bin/env python # this file indicates we are in a twitoff package folder. from .app import create_app APP = create_app() # create an instance of the app, a global
22
62
0.721591
9ed3dfede9477973cee625968a66f65942dea12a
299
py
Python
Arays/Udemy1/1_two_sum_approach_1.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Arays/Udemy1/1_two_sum_approach_1.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
Arays/Udemy1/1_two_sum_approach_1.py
sounak95/100_days_of_code
50fbf088ce6ab2137aa216a30e3b3f828b278a22
[ "Apache-2.0" ]
null
null
null
def findTwoSum(l1, targetToFind): for i in range(len(l1)): num_to_find= targetToFind-l1[i] for j in range(i+1,len(l1)): if l1[j]==num_to_find: return (i,j) return None l1 = [1, 3, 7, 9, 2] targetToFind = 11 print(findTwoSum(l1, targetToFind))
19.933333
39
0.571906
c6ea37847a6dd4965fd0849c5932beb34887a965
113
py
Python
django_zora_messages/apps.py
devmmaia/django-zora-messages
160f7fe049bfc80990ac439da7691ece6b020f62
[ "MIT" ]
null
null
null
django_zora_messages/apps.py
devmmaia/django-zora-messages
160f7fe049bfc80990ac439da7691ece6b020f62
[ "MIT" ]
null
null
null
django_zora_messages/apps.py
devmmaia/django-zora-messages
160f7fe049bfc80990ac439da7691ece6b020f62
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DjangoZoraMessagesConfig(AppConfig): name = 'django_zora_messages'
18.833333
42
0.80531
e5c90f65cce76b1a8ee8729e18a04fac4b282d2b
547
py
Python
tests/test.py
neotje/hops-recepten
eabf897c2a9fc018479e61a1fcecc37efa57c4c1
[ "MIT" ]
null
null
null
tests/test.py
neotje/hops-recepten
eabf897c2a9fc018479e61a1fcecc37efa57c4c1
[ "MIT" ]
1
2021-05-03T09:08:51.000Z
2021-05-03T09:08:51.000Z
tests/test.py
neotje/hops-recepten
eabf897c2a9fc018479e61a1fcecc37efa57c4c1
[ "MIT" ]
null
null
null
from os import name from bson.objectid import ObjectId from hopsrecipes.helpers.exceptions import UserError from hopsrecipes import user from hopsrecipes import recipe from hopsrecipes.helpers import database, documents import sys import logging logging.basicConfig( stream=sys.stdout, level=logging.INFO, ...
24.863636
75
0.780622
f3f5ced7514f31284df844d9e8b3a7aa9b8f1aff
496
py
Python
flask_app/controllers/applications.py
MapleLeo/PawFosterFamily
0f0c14f12858a27ded4ec2565e8a82290518b798
[ "MIT" ]
null
null
null
flask_app/controllers/applications.py
MapleLeo/PawFosterFamily
0f0c14f12858a27ded4ec2565e8a82290518b798
[ "MIT" ]
null
null
null
flask_app/controllers/applications.py
MapleLeo/PawFosterFamily
0f0c14f12858a27ded4ec2565e8a82290518b798
[ "MIT" ]
null
null
null
from flask import render_template,redirect,session,request,flash from flask_app import app from flask_app.models.application import Application @app.route('/application/<int:id>/approve', methods=['POST']) def approve_application(id): Application.set_status(id, "APPROVED") return redirect('/shelter/dashboard')...
35.428571
64
0.762097
776e2cc76d81adcd75424c1030de9e49cc2c0856
30,283
py
Python
fhirclient/models/practitioner_tests.py
NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units
fb5ad260fb8d264d85aea9e6c895d1700eea4d11
[ "Apache-2.0" ]
2
2019-05-16T16:41:22.000Z
2021-04-22T22:06:49.000Z
fhirclient/models/practitioner_tests.py
NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units
fb5ad260fb8d264d85aea9e6c895d1700eea4d11
[ "Apache-2.0" ]
null
null
null
fhirclient/models/practitioner_tests.py
NematiLab/Streaming-Sepsis-Prediction-System-for-Intensive-Care-Units
fb5ad260fb8d264d85aea9e6c895d1700eea4d11
[ "Apache-2.0" ]
3
2019-03-26T01:39:18.000Z
2020-02-02T19:06:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 on 2016-06-23. # 2016, SMART Health IT. import os import io import unittest import json from . import practitioner from .fhirdate import FHIRDate class PractitionerTests(unittest.TestCase): def instantiate_from(self, filename): ...
59.262231
120
0.673414
0076d4e6b997050a3e4051eacdd78eed81688db1
2,313
py
Python
shortcuts/dump.py
maximejf42/python-shortcuts
addde7732e88d250aaea75c228241ed182fca850
[ "MIT" ]
1
2021-12-07T09:07:10.000Z
2021-12-07T09:07:10.000Z
shortcuts/dump.py
Harwood/python-shortcuts
397509b10c0ea8024d2eda23da709eb437cf8550
[ "MIT" ]
null
null
null
shortcuts/dump.py
Harwood/python-shortcuts
397509b10c0ea8024d2eda23da709eb437cf8550
[ "MIT" ]
null
null
null
import plistlib from typing import TYPE_CHECKING, Any, BinaryIO, Dict, Type import toml if TYPE_CHECKING: from shortcuts import Shortcut # noqa from shortcuts.actions.base import BaseAction # noqa class BaseDumper: ''' Base class to dump shortcuts ''' def __init__(self, shortcut: 'Sh...
30.434211
97
0.621271
9f5b643c52fe7d9966fdad4447d28d4fd4e5d72c
6,764
py
Python
cinder/db/sqlalchemy/migrate_repo/versions/002_quota_class.py
tomasdubec/openstack-cinder
4d0985ea85f4fbdf48b1ed8e35407d2b4a6cf0e4
[ "Apache-2.0" ]
null
null
null
cinder/db/sqlalchemy/migrate_repo/versions/002_quota_class.py
tomasdubec/openstack-cinder
4d0985ea85f4fbdf48b1ed8e35407d2b4a6cf0e4
[ "Apache-2.0" ]
null
null
null
cinder/db/sqlalchemy/migrate_repo/versions/002_quota_class.py
tomasdubec/openstack-cinder
4d0985ea85f4fbdf48b1ed8e35407d2b4a6cf0e4
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack 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 # ...
43.922078
79
0.474128
6aee8c8e8bc722871c6a58a53f4df9999801b69f
759
py
Python
tf_implementation/segmentation/utils/display.py
arekmula/skull_stripping
d03cef81392f8cd243dc1c6d32ffa897af922eb2
[ "MIT" ]
3
2021-02-23T15:26:40.000Z
2021-08-11T19:36:21.000Z
tf_implementation/segmentation/utils/display.py
arekmula/skull_stripping
d03cef81392f8cd243dc1c6d32ffa897af922eb2
[ "MIT" ]
null
null
null
tf_implementation/segmentation/utils/display.py
arekmula/skull_stripping
d03cef81392f8cd243dc1c6d32ffa897af922eb2
[ "MIT" ]
null
null
null
import nibabel as nib import numpy as np from matplotlib import pyplot as plt from pathlib import Path from typing import List def show_slices(slices: List[np.ndarray]): """ Shows slices from axis x, y, z :param slices: list of image slices from axis x, y, z :return: """ fig, axes = plt.subp...
24.483871
65
0.661397
37cf228bbbdcea2d071330fea67245854ffe9149
480
py
Python
dashboard/migrations/0050_auto_20180227_1351.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
null
null
null
dashboard/migrations/0050_auto_20180227_1351.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
6
2020-06-05T22:27:20.000Z
2022-03-24T10:25:50.000Z
dashboard/migrations/0050_auto_20180227_1351.py
eric-scott-owens/loopla
1fd5e6e7e9907198ff904111010b362a129d5e39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2018-02-27 13:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dashboard', '0049_auto_20180206_0225'), ] operations = [ migrations.AlterFi...
22.857143
63
0.633333
763884547930faceee975a7bd53e0e9e2cda61b4
12,769
py
Python
sdk/python/pulumi_azure_native/network/v20190901/vpn_site.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190901/vpn_site.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190901/vpn_site.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 from ... import _utilities, _tables from...
51.281124
2,840
0.67006
79bf9cf676ec9db2dc1eeee326dc01ac74b8539d
547
py
Python
jessiql/features/cursor/query.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
jessiql/features/cursor/query.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
jessiql/features/cursor/query.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
from jessiql import Query from .cursors import PageLinks from .skiplimit import CursorLimitOperation class QueryPage(Query): """ A Query that will generate cursors to navigate to the next/previous pages """ SkipLimitOperation = CursorLimitOperation def page_links(self) -> PageLinks: """ Get link...
32.176471
101
0.722121
4ed1fcee3461e2f31ed5a0bea53cf3602a06cb5d
2,405
py
Python
tools/check_lang_placeholders.py
SpaghettiEnjoyer/OverlayPlugin
68c7e939d07330c731b0155a332f864f7d19605e
[ "MIT" ]
223
2019-07-06T04:19:35.000Z
2022-03-29T04:18:01.000Z
tools/check_lang_placeholders.py
SpaghettiEnjoyer/OverlayPlugin
68c7e939d07330c731b0155a332f864f7d19605e
[ "MIT" ]
228
2019-07-16T14:56:21.000Z
2022-03-22T19:45:34.000Z
tools/check_lang_placeholders.py
SpaghettiEnjoyer/OverlayPlugin
68c7e939d07330c731b0155a332f864f7d19605e
[ "MIT" ]
71
2019-07-31T22:14:15.000Z
2022-03-20T08:50:18.000Z
import sys import os.path import re import json BASE_DIR = os.path.join(os.path.dirname(__file__), '..') PROJECTS = ('HtmlRenderer', 'OverlayPlugin', 'OverlayPlugin.Common', 'OverlayPlugin.Core', 'OverlayPlugin.Updater') TRANS_LOG_RE = re.compile(r'Log\(LogLevel\.[A-Za-z]+, Resources\.(?P<key>[A-Za-z0-9]+)(?P<params>...
39.42623
117
0.556757
f9c7376929eddc46b24208bd068a1a102a84a588
411
py
Python
donkeycar_console/wsgi.py
MehriBacem/donkeycar_console
a9360a81a610d904739ea31d465d958cd603d183
[ "MIT" ]
null
null
null
donkeycar_console/wsgi.py
MehriBacem/donkeycar_console
a9360a81a610d904739ea31d465d958cd603d183
[ "MIT" ]
null
null
null
donkeycar_console/wsgi.py
MehriBacem/donkeycar_console
a9360a81a610d904739ea31d465d958cd603d183
[ "MIT" ]
null
null
null
""" WSGI config for donkeycar_console project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
24.176471
78
0.79562
f253b81628e8ded121cbb5284f746c86efc79f18
3,887
py
Python
milking_cowmask/architectures/shake.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
milking_cowmask/architectures/shake.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
milking_cowmask/architectures/shake.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
30.606299
79
0.69771
79d7fde3efea55863e4f21c4c348f72b3a691bba
466
py
Python
plotly/validators/violin/box/_fillcolor.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/violin/box/_fillcolor.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/violin/box/_fillcolor.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='fillcolor', parent_name='violin.box', **kwargs ): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=...
29.125
73
0.637339
f14e5295c848f74b9cb4d98114040fb169953d05
7,660
py
Python
library/azure_rm_cdnprofile_facts.py
wray/azure_modules
af2d84ffc4a0061f5ab4ed7e621faa0bbdbb2da5
[ "MIT" ]
null
null
null
library/azure_rm_cdnprofile_facts.py
wray/azure_modules
af2d84ffc4a0061f5ab4ed7e621faa0bbdbb2da5
[ "MIT" ]
null
null
null
library/azure_rm_cdnprofile_facts.py
wray/azure_modules
af2d84ffc4a0061f5ab4ed7e621faa0bbdbb2da5
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2018 Hai Cao, <t-haicao@microsoft.com>, Yunge Zhu <yungez@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metada...
28.90566
135
0.589295
ed560a4fccf0d8a26b6cf41e1e69866aa0233ac6
363
py
Python
backup_codes/generated_xor_data.py
shridharmishra4/Artificial-neural-netowrks-in-C
40f89aa3da9b2cc036df372e5bf5b6e7031d0d87
[ "Apache-2.0" ]
null
null
null
backup_codes/generated_xor_data.py
shridharmishra4/Artificial-neural-netowrks-in-C
40f89aa3da9b2cc036df372e5bf5b6e7031d0d87
[ "Apache-2.0" ]
null
null
null
backup_codes/generated_xor_data.py
shridharmishra4/Artificial-neural-netowrks-in-C
40f89aa3da9b2cc036df372e5bf5b6e7031d0d87
[ "Apache-2.0" ]
null
null
null
with open("validate.txt","w") as f: for i in range(25): f.writelines("{0} {1} {2}\n".format(0,0,0^0)) for i in range(25): f.writelines("{0} {1} {2}\n".format(0, 1, 0 ^ 1)) for i in range(25): f.writelines("{0} {1} {2}\n".format(1, 0, 1 ^ 0)) for i in range(25): f.write...
27.923077
57
0.482094
57dd4e204790ccad2f20167c571cc81c29c83fea
501
py
Python
robot_control/launch/spawn_vehicle.launch.py
blakermchale/robot-control
b2d0109950d5abb4b12055ce7a3645ca9cc07b20
[ "MIT" ]
null
null
null
robot_control/launch/spawn_vehicle.launch.py
blakermchale/robot-control
b2d0109950d5abb4b12055ce7a3645ca9cc07b20
[ "MIT" ]
4
2021-06-29T05:14:13.000Z
2021-08-11T05:00:44.000Z
robot_control/launch/spawn_vehicle.launch.py
blakermchale/robot-control
b2d0109950d5abb4b12055ce7a3645ca9cc07b20
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from launch import LaunchDescription from launch.actions import OpaqueFunction from robot_control.launch.spawn_vehicle import launch_setup, LAUNCH_ARGS from ros2_utils.launch import get_launch_arguments def generate_launch_description(): """Launch this launch file.""" launch_description...
35.785714
72
0.812375
1489788204696c57666f6e979aad058c93a850f4
5,352
py
Python
lrs/objects/AgentProfileManager.py
varunasingh/ADL_LRS
65130b0f4d1b022bd2b4fb42261457bdc47b3ad2
[ "Apache-2.0" ]
null
null
null
lrs/objects/AgentProfileManager.py
varunasingh/ADL_LRS
65130b0f4d1b022bd2b4fb42261457bdc47b3ad2
[ "Apache-2.0" ]
null
null
null
lrs/objects/AgentProfileManager.py
varunasingh/ADL_LRS
65130b0f4d1b022bd2b4fb42261457bdc47b3ad2
[ "Apache-2.0" ]
null
null
null
import ast import json import datetime import copy from django.core.files.base import ContentFile from django.db import transaction from django.utils.timezone import utc from lrs.models import AgentProfile from lrs.models import Agent as ag from lrs.exceptions import IDNotFoundError, ParamError from lrs.util import eta...
40.545455
123
0.605568