hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
d114e715dc81f76e0ec6fd8855a403351969e439
863
py
Python
python/rosie/testing/run_rosie_test.py
amininger/rosie
1cd80ba6f7548bc2e8077c38c2c497e31d38c9b8
[ "BSD-3-Clause" ]
null
null
null
python/rosie/testing/run_rosie_test.py
amininger/rosie
1cd80ba6f7548bc2e8077c38c2c497e31d38c9b8
[ "BSD-3-Clause" ]
null
null
null
python/rosie/testing/run_rosie_test.py
amininger/rosie
1cd80ba6f7548bc2e8077c38c2c497e31d38c9b8
[ "BSD-3-Clause" ]
null
null
null
import sys import os from rosie.testing.TesterClient import TesterClient if len(sys.argv) <= 2 or '-h' in sys.argv or '--help' in sys.argv: print("python -m rosie.testing.run_rosie_test [config-file] [output-file] [FLAGS*]") print(" -h | --help for help information") print(" -v | --verbose for addi...
29.758621
88
0.668598
dff06007bf1771ad3c3051335735f112b4efca02
2,436
py
Python
spirit/user/utils/email.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
null
null
null
spirit/user/utils/email.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
null
null
null
spirit/user/utils/email.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import logging from django.contrib.sites.shortcuts import get_current_site from django.utils.translation import ugettext as _ from django.template.loader import render_to_string from django.core.mail import send_mail from django.conf import settings fro...
32.918919
91
0.68555
ac2ba87fff0a86bd3e3c84867bf9070d869d611b
6,346
py
Python
Tello_CV2_Tracking.py
MuAuan/Tello
c2872826391d119a3988c86469521cc8cff59f9a
[ "MIT" ]
3
2019-10-06T13:27:26.000Z
2020-03-17T07:04:07.000Z
Tello_CV2_Tracking.py
MuAuan/Tello
c2872826391d119a3988c86469521cc8cff59f9a
[ "MIT" ]
null
null
null
Tello_CV2_Tracking.py
MuAuan/Tello
c2872826391d119a3988c86469521cc8cff59f9a
[ "MIT" ]
4
2019-04-24T07:46:09.000Z
2020-10-12T16:39:40.000Z
# -*- coding: utf-8 -*- import numpy as np import cv2 import time from timeit import default_timer as timer import sys import traceback import tellopy import av import numpy from time import sleep import math as m def handler(event, sender, data, **args): drone = sender if event is drone.EVENT_FLIGHT_DATA: ...
30.219048
117
0.536716
5762b9a006d6e44cf0c27196c00dc0a102c899b8
516
py
Python
run/kernelguess.py
kjappelbaum/MMD-critic
ac8e48adc8b8eefdfb517baa92cb2e045a861747
[ "MIT" ]
null
null
null
run/kernelguess.py
kjappelbaum/MMD-critic
ac8e48adc8b8eefdfb517baa92cb2e045a861747
[ "MIT" ]
null
null
null
run/kernelguess.py
kjappelbaum/MMD-critic
ac8e48adc8b8eefdfb517baa92cb2e045a861747
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import numpy as np import click from mmdcritic import heuristic_guess_gamma from sklearn.preprocessing import StandardScaler @click.command('cli') @click.argument('xpath', type=click.Path(exists=True)) @click.argument('iterations', default=1000, type=int)...
24.571429
54
0.738372
d9aca17f654c1a360cd44f0714a5c5e70c8ead9e
9,547
py
Python
demo/demo_loftr.py
lee-vius/LoFTR
dd9add373a20696fb6f020f4fda38bca7a91cdd9
[ "Apache-2.0" ]
null
null
null
demo/demo_loftr.py
lee-vius/LoFTR
dd9add373a20696fb6f020f4fda38bca7a91cdd9
[ "Apache-2.0" ]
null
null
null
demo/demo_loftr.py
lee-vius/LoFTR
dd9add373a20696fb6f020f4fda38bca7a91cdd9
[ "Apache-2.0" ]
null
null
null
front_matter = """ ------------------------------------------------------------------------ Online demo for [LoFTR](https://zju3dv.github.io/loftr/). This demo is heavily inspired by [SuperGlue](https://github.com/magicleap/SuperGluePretrainedNetwork/). We thank the authors for their execellent work. -----------------...
39.614108
116
0.585105
46af442963cdb11536fb6333e81ef06e2b3eb4b0
31,298
py
Python
flytekit/configuration/__init__.py
aeioulisa/flytekit
14b3a4ced183a66d0a87c06c19f71e5a1400a6a3
[ "Apache-2.0" ]
null
null
null
flytekit/configuration/__init__.py
aeioulisa/flytekit
14b3a4ced183a66d0a87c06c19f71e5a1400a6a3
[ "Apache-2.0" ]
null
null
null
flytekit/configuration/__init__.py
aeioulisa/flytekit
14b3a4ced183a66d0a87c06c19f71e5a1400a6a3
[ "Apache-2.0" ]
null
null
null
""" ===================== Configuration ===================== .. currentmodule:: flytekit.configuration Flytekit Configuration Ecosystem -------------------------------- Where can configuration come from? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Command line arguments. This is the ideal location for settings to go. (Se...
40.17715
209
0.678574
9d882ad6ef34912869cb431b29d4060855aef61b
486
py
Python
any_3_conditions.py
madhurilalitha/Test-repo
a70922a66156c1780e012b5d74017b16c962ecda
[ "MIT" ]
null
null
null
any_3_conditions.py
madhurilalitha/Test-repo
a70922a66156c1780e012b5d74017b16c962ecda
[ "MIT" ]
null
null
null
any_3_conditions.py
madhurilalitha/Test-repo
a70922a66156c1780e012b5d74017b16c962ecda
[ "MIT" ]
null
null
null
#23) Write a function to return boolean if given number satisfies ANY of the below 3 conditions. If ALL conditions fail return False # a) x is divisible by 7 # b) x > 70 and x <=100 # c) If x is positive def check_any_3_conditions(num): cond1 = num%7 cond2 = num>70 and num<=100 ...
28.588235
133
0.660494
b2f0bbf8cb0164c7ed694fa1e67dfa2009857c19
10,201
py
Python
invoke/cli.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
invoke/cli.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
invoke/cli.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
from functools import partial import inspect import os import sys import textwrap from .vendor import six from .context import Context from .loader import FilesystemLoader, DEFAULT_COLLECTION_NAME from .parser import Parser, Context as ParserContext, Argument from .executor import Executor from .exceptions import Fai...
32.281646
104
0.588472
23566e364701096ae224a015cc124fec58feb909
1,592
py
Python
staff/migrations/0003_auto_20211009_1556.py
koya-namba/work-schedule-app
41891bbac5016a7b17c88b5cc85cc1110cdf3f6d
[ "MIT" ]
null
null
null
staff/migrations/0003_auto_20211009_1556.py
koya-namba/work-schedule-app
41891bbac5016a7b17c88b5cc85cc1110cdf3f6d
[ "MIT" ]
1
2021-10-03T06:20:06.000Z
2021-10-03T06:20:55.000Z
staff/migrations/0003_auto_20211009_1556.py
koya-namba/work-schedule-app
41891bbac5016a7b17c88b5cc85cc1110cdf3f6d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-10-09 06:56 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('staff', '0002_revise_staff'), ] operations = [ migrations.AlterField( model_name='user', ...
31.84
132
0.580402
dbe58dd1ec030f1b89434af98913e9c9c7e96e76
5,904
py
Python
allennlp/tests/models/simple_tagger_test.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2020-09-19T07:09:27.000Z
2020-09-19T07:09:27.000Z
allennlp/tests/models/simple_tagger_test.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
null
null
null
allennlp/tests/models/simple_tagger_test.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2021-02-04T08:42:23.000Z
2021-02-04T08:42:23.000Z
from flaky import flaky import numpy import pytest import torch from allennlp.common.testing import ModelTestCase from allennlp.common.checks import ConfigurationError from allennlp.common.params import Params from allennlp.data.dataset_readers import DatasetReader from allennlp.data.iterators import DataIterator, Bas...
42.171429
97
0.690379
7ab63b097394970dde7740893aed50948fbfe4e0
680
py
Python
nn/graph.py
gusdnd852/Citrus-Pest-Disease-Recognition
a0584fa42b42eadbeaf77d1dfbca1990ac5e55a2
[ "Apache-2.0" ]
4
2020-03-30T11:48:08.000Z
2020-05-10T04:57:27.000Z
nn/graph.py
gusdnd852/citrus-pest-disease-recognition
a0584fa42b42eadbeaf77d1dfbca1990ac5e55a2
[ "Apache-2.0" ]
1
2020-04-18T06:20:50.000Z
2020-04-18T06:20:50.000Z
nn/graph.py
gusdnd852/citrus-pest-disease-recognition
a0584fa42b42eadbeaf77d1dfbca1990ac5e55a2
[ "Apache-2.0" ]
2
2020-12-15T11:53:09.000Z
2021-12-22T01:36:39.000Z
""" @author : Hyunwoong @when : 2019-12-08 @homepage : https://github.com/gusdnd852 """ import matplotlib.pyplot as plt import re def read(name): f = open(name, 'r') file = f.read() file = re.sub('\\[', '', file) file = re.sub('\\]', '', file) f.close() return [float(i) * 100....
21.25
55
0.589706
b60fb8e35bd43d91a0090ed6a3b64059965a4efd
1,323
py
Python
setup.py
meschac38700/django-select2-forms
b67faf46d3b11b81ae6df04a2dddca3eb5ee8645
[ "BSD-2-Clause" ]
null
null
null
setup.py
meschac38700/django-select2-forms
b67faf46d3b11b81ae6df04a2dddca3eb5ee8645
[ "BSD-2-Clause" ]
null
null
null
setup.py
meschac38700/django-select2-forms
b67faf46d3b11b81ae6df04a2dddca3eb5ee8645
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import codecs import os from setuptools import setup, find_packages readme_rst = os.path.join(os.path.dirname(__file__), 'README.rst') setup( name='django-select2-forms', version='2.1.0', description='Django form fields using the Select2 jQuery plugin', long_description=codecs.op...
32.268293
70
0.630385
b38e9cc1bad9de2bca4031215f5fdd85342a3408
4,645
py
Python
pornhub/extractors/channel.py
blueberry-maker/pornhub-dl
e5e5b1e09f514ecb094af35edb3d6336a6cda294
[ "MIT" ]
null
null
null
pornhub/extractors/channel.py
blueberry-maker/pornhub-dl
e5e5b1e09f514ecb094af35edb3d6336a6cda294
[ "MIT" ]
null
null
null
pornhub/extractors/channel.py
blueberry-maker/pornhub-dl
e5e5b1e09f514ecb094af35edb3d6336a6cda294
[ "MIT" ]
null
null
null
"""Helper for extracting meta information from pornhub.""" import re import os import sys import time import requests from bs4 import BeautifulSoup from pornhub.models import User, Clip from pornhub.logging import logger from pornhub.helper import get_clip_path, link_duplicate, check_logged_out from pornhub.download i...
30.559211
85
0.631216
b5bfa3994a1b520c8be639439b9ff5b8f4351922
897
py
Python
store.py
RafaAlkhamry2020/edit-and-delet-posts
e2d700431f163f8caa399e80c755e994c28e18cb
[ "MIT" ]
null
null
null
store.py
RafaAlkhamry2020/edit-and-delet-posts
e2d700431f163f8caa399e80c755e994c28e18cb
[ "MIT" ]
null
null
null
store.py
RafaAlkhamry2020/edit-and-delet-posts
e2d700431f163f8caa399e80c755e994c28e18cb
[ "MIT" ]
null
null
null
class Post: def __init__(self, id, photo_url, name, body): self.id = id self.photo_url = photo_url self.name = name self.body = body posts = [] class PostStore: def get_all(self): # get all posts return posts def add(self, post): # ...
21.878049
51
0.507246
6a8e779e3af216a295e19687c55ee987b06f0707
1,054
py
Python
02_DiggingDeeper/working_with_modules.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
02_DiggingDeeper/working_with_modules.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
02_DiggingDeeper/working_with_modules.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
""" Modules are files or groups of files that contain Python code. You can import modules into your own code so that you can use the functions. Below are common modules that come with Python """ # # The os module is for working with the operating system # import os # # environ is a dictionary of environment values...
16.215385
76
0.71537
488264d62148acb4ca8176db6e9501cdadcb8291
741
py
Python
tests/rng_test.py
PeterBorah/ethereum-powerball
48f5d887620c64f3a857468eec26db3de3a8a690
[ "MIT" ]
34
2015-01-22T02:13:22.000Z
2021-06-09T03:45:49.000Z
tests/rng_test.py
PeterBorah/ethereum-powerball
48f5d887620c64f3a857468eec26db3de3a8a690
[ "MIT" ]
null
null
null
tests/rng_test.py
PeterBorah/ethereum-powerball
48f5d887620c64f3a857468eec26db3de3a8a690
[ "MIT" ]
18
2015-02-09T16:45:33.000Z
2020-12-17T08:43:03.000Z
from eth_tools import Contract, address from nose.tools import assert_equal, assert_true from pyethereum import tester as t from random import randint RANDOM_NUMBERS = 0 class TestRNG: def setup(self): self.state = t.state() self.contract = Contract("contracts/rng.se", self.state) self.sta...
30.875
64
0.677463
53a57b3c7bac2bbb2579271ea25b89cde20336f7
1,955
py
Python
gen2-yolo/device-decoding/main.py
crisdeodates/AI-depthai-experiments
74b8b84a03cb637d20a7fcd091cce11add78bd2c
[ "MIT" ]
null
null
null
gen2-yolo/device-decoding/main.py
crisdeodates/AI-depthai-experiments
74b8b84a03cb637d20a7fcd091cce11add78bd2c
[ "MIT" ]
null
null
null
gen2-yolo/device-decoding/main.py
crisdeodates/AI-depthai-experiments
74b8b84a03cb637d20a7fcd091cce11add78bd2c
[ "MIT" ]
null
null
null
from depthai_sdk import Previews, FPSHandler from depthai_sdk.managers import PipelineManager, PreviewManager, BlobManager, NNetManager import depthai as dai import cv2 import argparse from pathlib import Path # parse arguments parser = argparse.ArgumentParser() parser.add_argument("-m", "--model", help="Provide model...
30.076923
116
0.694629
00c69cbada156c8ed2efd1cc6af4ce388ab0cdb9
2,668
py
Python
downloaded_kernels/university_rankings/parsed_kernels/kernel_28.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
null
null
null
downloaded_kernels/university_rankings/parsed_kernels/kernel_28.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
null
null
null
downloaded_kernels/university_rankings/parsed_kernels/kernel_28.py
josepablocam/common-code-extraction
a6978fae73eee8ece6f1db09f2f38cf92f03b3ad
[ "MIT" ]
2
2021-07-12T00:48:08.000Z
2021-08-11T12:53:05.000Z
######### INSTRUCTIONS ######### # # Fork this script and change the university name to see what rank it gets: # my_university_name = ["University of California, Berkeley", "University of California-Berkeley"] # # Look at the log for a full list of universities you can choose from. # # If your university is listed unde...
38.666667
127
0.734633
a6f4281c56a741f2905f581eabc84dfe4d8c3258
3,409
py
Python
module4-software-testing-documentation-and-licensing/archives.py
newnativeabq/DS-Unit-3-Sprint-1-Software-Engineering
39e3f7f7c83559f9543fd6f17ceba4db82f50895
[ "MIT" ]
null
null
null
module4-software-testing-documentation-and-licensing/archives.py
newnativeabq/DS-Unit-3-Sprint-1-Software-Engineering
39e3f7f7c83559f9543fd6f17ceba4db82f50895
[ "MIT" ]
null
null
null
module4-software-testing-documentation-and-licensing/archives.py
newnativeabq/DS-Unit-3-Sprint-1-Software-Engineering
39e3f7f7c83559f9543fd6f17ceba4db82f50895
[ "MIT" ]
null
null
null
import os.path import archive_builders import archive_scanners class Archive(): def __init__(self, path=None, input_type=None): self.get_path(path) self.get_input_type_from_path(self.path) def get_path(self, path): if path == None: self.path = os.getcwd() else: self.path = os.path.abspath(path) def...
28.173554
113
0.73306
880dda42f2fca7af69168bbfcb60fb579f1e6c19
169
py
Python
path.py
LauryneL/Pipographe-v2
33e1bfafc5936029b76cf17aa39fd51a101010b5
[ "CC0-1.0" ]
1
2021-09-28T09:43:48.000Z
2021-09-28T09:43:48.000Z
path.py
LauryneL/Pipographe-v2
33e1bfafc5936029b76cf17aa39fd51a101010b5
[ "CC0-1.0" ]
null
null
null
path.py
LauryneL/Pipographe-v2
33e1bfafc5936029b76cf17aa39fd51a101010b5
[ "CC0-1.0" ]
null
null
null
import os chemin_actuel = os.path.dirname(os.path.abspath(__file__)) print(chemin_actuel) templates = os.path.join(chemin_actuel, "app", "templates") print(templates)
21.125
59
0.775148
77777102b7b4427db31cb11bdc477d58ad002d47
795
py
Python
src/DoingMathInPython/ch_06/charting_rules.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/DoingMathInPython/ch_06/charting_rules.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
src/DoingMathInPython/ch_06/charting_rules.py
bmoretz/Python-Playground
a367ec7659b85c24363c21b5c0ac25db08ffa1f6
[ "MIT" ]
null
null
null
''' Example of selecting a transformation from two equally probable transformations ''' import matplotlib.pyplot as plt import random def transformation_1( p ): x = p[ 0 ] y = p[ 1 ] return x + 1, y - 1 def transformation_2( p ): x = p[ 0 ] y = p[ 1 ] return x + 1, y + 1 def transform( p ): transformations...
15.9
79
0.589937
a57a7c21d1c047acc49ee7dc865f9b1378f09b96
448
py
Python
chapter3/http_server/http_server.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
74
2020-05-19T01:08:03.000Z
2022-03-31T14:00:41.000Z
chapter3/http_server/http_server.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
1
2021-06-04T06:08:21.000Z
2021-06-04T06:08:21.000Z
chapter3/http_server/http_server.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
47
2020-05-05T12:06:31.000Z
2022-03-10T04:45:01.000Z
import socket mySocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mySocket.bind(('localhost', 8080)) mySocket.listen(5) while True: print('Waiting for connections') (recvSocket, address) = mySocket.accept() print('HTTP request received:') print(recvSocket.recv(1024)) recvSock...
29.866667
115
0.669643
ef35e13e723019d6b5bd20fd176be60e6d056b19
17,702
py
Python
tests/testlib.py
polski-g/mitogen
5b505f524a7ae170fe68613841ab92b299613d3f
[ "BSD-3-Clause" ]
1,526
2017-09-15T18:49:40.000Z
2021-01-17T16:04:12.000Z
tests/testlib.py
polski-g/mitogen
5b505f524a7ae170fe68613841ab92b299613d3f
[ "BSD-3-Clause" ]
682
2017-09-11T17:43:12.000Z
2021-01-17T05:26:26.000Z
tests/testlib.py
moreati/mitogen
86b1fb0f49821709fca97ea257b67a8904e3407f
[ "BSD-3-Clause" ]
111
2017-09-15T23:21:37.000Z
2021-01-01T14:45:35.000Z
import errno import logging import os import random import re import signal import socket import subprocess import sys import threading import time import traceback import psutil import unittest2 import mitogen.core import mitogen.fork import mitogen.master import mitogen.utils try: import faulthandler except I...
30.00339
107
0.585697
ebb3eec6f0b79c73e49f9d853c266d33aa4051eb
1,391
py
Python
sft.py
CoinCheung/SFT-ReID
2df67554732393df5a231b7281e12fc3435f1e8c
[ "MIT" ]
22
2019-01-04T11:43:08.000Z
2021-04-11T16:32:06.000Z
sft.py
CoinCheung/SFT-ReID
2df67554732393df5a231b7281e12fc3435f1e8c
[ "MIT" ]
1
2020-02-03T05:39:06.000Z
2020-02-03T05:39:06.000Z
sft.py
CoinCheung/SFT-ReID
2df67554732393df5a231b7281e12fc3435f1e8c
[ "MIT" ]
7
2018-12-28T05:16:34.000Z
2020-09-06T22:20:49.000Z
#!/usr/bin/python # -*- encoding: utf-8 -*- import torch import torch.nn as nn import torch.nn.functional as F import numpy as np class SFT_torch(nn.Module): def __init__(self, sigma=0.1, *args, **kwargs): super(SFT_torch, self).__init__(*args, **kwargs) self.sigma = sigma def forward(self...
26.245283
85
0.610352
ad647a77d75d1ff1ab41e0be8759ea0ffe3d15bf
2,682
py
Python
tests/ci/send_email.py
JaikumarSRajan/sunbird-devops
da862fa9f887ad04a4409ec91cd23d5b681506fe
[ "MIT" ]
1
2019-04-18T09:43:03.000Z
2019-04-18T09:43:03.000Z
tests/ci/send_email.py
JaikumarSRajan/sunbird-devops
da862fa9f887ad04a4409ec91cd23d5b681506fe
[ "MIT" ]
1
2020-07-13T13:56:37.000Z
2020-07-13T13:56:37.000Z
tests/ci/send_email.py
JaikumarSRajan/sunbird-devops
da862fa9f887ad04a4409ec91cd23d5b681506fe
[ "MIT" ]
4
2018-01-08T11:39:55.000Z
2020-04-27T11:17:19.000Z
#!/usr/bin/env python import smtplib, os.path from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders from os import path arr = {} with open("/tmp/tests/ci/build_info") as f: for line in f: name, value = line.partition(...
38.869565
150
0.689784
730686b359290b250c8c6100f06f00e259bd03b4
2,659
py
Python
sktime/transformers/series_as_features/interpolate.py
big-o/sktime
a25ea3bc3cd3b17c8c6e4cd6347678c810bc96ce
[ "BSD-3-Clause" ]
2
2020-10-05T12:17:41.000Z
2020-10-19T08:57:50.000Z
sktime/transformers/series_as_features/interpolate.py
pradeep5267/sktime
c2d173a978c46bab1d364dbd64252def9030d84e
[ "BSD-3-Clause" ]
null
null
null
sktime/transformers/series_as_features/interpolate.py
pradeep5267/sktime
c2d173a978c46bab1d364dbd64252def9030d84e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy import interpolate from sktime.transformers.series_as_features.base \ import BaseSeriesAsFeaturesTransformer from sktime.utils.validation.series_as_features import check_X class TSInterpolator(BaseSeriesAsFeaturesTransformer): """Transformer that rescales series for ano...
33.2375
80
0.584054
ec34cab28f2988649c5bf1b8478763f96bd400d9
13,656
py
Python
doc/integrations/pytorch/parlai/tasks/cmu_dog/agents.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2020-09-27T05:00:06.000Z
2020-09-27T05:00:06.000Z
doc/integrations/pytorch/parlai/tasks/cmu_dog/agents.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-08-04T11:17:39.000Z
2021-08-04T11:17:39.000Z
doc/integrations/pytorch/parlai/tasks/cmu_dog/agents.py
novium258/cortx-1
ce5b939b33b8d24d89b31807ac3bcaa8f24096bc
[ "Apache-2.0" ]
1
2021-05-03T13:27:14.000Z
2021-05-03T13:27:14.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import json import os from enum import Enum from typing import List, Optional, Tuple from parlai....
36.808625
145
0.580844
672aac3d61aa742b3485d51f572293e4df880535
464
py
Python
bluebottle/initiatives/migrations/0006_auto_20190416_1553.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/initiatives/migrations/0006_auto_20190416_1553.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/initiatives/migrations/0006_auto_20190416_1553.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-04-16 13:53 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('initiatives', '0005_initiative_hasorganization'), ] operations = [ migrations.Rena...
22.095238
59
0.635776
81ccf6bc83d81ac7653859f5d67bd80b692e469a
1,578
py
Python
presidio-anonymizer/setup.py
abnerzhangxinbinappen/presidio
34b2e706195af87975ee1550e86c51990d2b82d2
[ "MIT" ]
null
null
null
presidio-anonymizer/setup.py
abnerzhangxinbinappen/presidio
34b2e706195af87975ee1550e86c51990d2b82d2
[ "MIT" ]
null
null
null
presidio-anonymizer/setup.py
abnerzhangxinbinappen/presidio
34b2e706195af87975ee1550e86c51990d2b82d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # noqa: D100 import os.path from os import path from setuptools import setup, find_packages test_requirements = ["pytest>=3", "flake8==3.7.9", "flask==1.1.2"] __version__ = "" this_directory = path.abspath(path.dirname(__file__)) parent_directory = os.path.abspath(os.path.join(this_directory, o...
32.204082
85
0.696451
a815328856b7fd2075a51685ad49ba204a26e28d
1,063
py
Python
aws/logs_monitoring/setup.py
lukeforehand/datadog-serverless-functions
72e0ffc76e100e4cf0f01b32e2f4300d1aeb5ba4
[ "Apache-2.0" ]
null
null
null
aws/logs_monitoring/setup.py
lukeforehand/datadog-serverless-functions
72e0ffc76e100e4cf0f01b32e2f4300d1aeb5ba4
[ "Apache-2.0" ]
null
null
null
aws/logs_monitoring/setup.py
lukeforehand/datadog-serverless-functions
72e0ffc76e100e4cf0f01b32e2f4300d1aeb5ba4
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed # under the Apache License Version 2.0. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2020 Datadog, Inc. from setuptools import setup setup( name="aws-dd-forwarder", version="0.0.0.d...
39.37037
98
0.637817
da8abc07627b1e5069d3b860228f5112a2a11a8a
253
py
Python
Python/basic/django/minimal/web/urls.py
caa06d9c/Python-examples
9d90b9a9adfc343f9fdfab814cfc2b05219d6920
[ "MIT" ]
5
2019-10-28T09:56:26.000Z
2021-09-03T04:51:18.000Z
Python/basic/django/minimal/web/urls.py
caa06d9c/Python-examples
9d90b9a9adfc343f9fdfab814cfc2b05219d6920
[ "MIT" ]
null
null
null
Python/basic/django/minimal/web/urls.py
caa06d9c/Python-examples
9d90b9a9adfc343f9fdfab814cfc2b05219d6920
[ "MIT" ]
4
2019-10-28T09:56:30.000Z
2021-09-03T04:51:23.000Z
from django.contrib import admin from django.urls import include, path, re_path urlpatterns = [ path('', include('root.urls')), path('db/', include('db.urls')), re_path('echo.*', include('echo.urls')), path('admin/', admin.site.urls) ]
25.3
46
0.644269
24993064725cbd8eef9f23cbb9d237ca7a8874e4
2,439
py
Python
src/modules/lan/portscan.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
46
2020-04-18T16:42:59.000Z
2022-01-31T22:08:52.000Z
src/modules/lan/portscan.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
null
null
null
src/modules/lan/portscan.py
The-Cracker-Technology/nullscan
47fb41f17c59201a0d65a14705b4ff95fcc50a03
[ "MIT" ]
11
2020-04-23T12:46:18.000Z
2022-02-04T12:53:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################## # ____ _ __ # # ___ __ __/ / /__ ___ ______ ______(_) /___ __ # # / _ \/ // / / (_-</ -_) __/ // / __/ / __/ // / ...
31.269231
80
0.347273
ded4cfe9a9ccd0a02fae66d9d265f836a1a84950
29,379
py
Python
dbcArchives/2021/000_0-sds-3-x-projects/student-project-16_group-IntrusionDetection/00_Introduction.py
r-e-x-a-g-o-n/scalable-data-science
a97451a768cf12eec9a20fbe5552bbcaf215d662
[ "Unlicense" ]
138
2017-07-25T06:48:28.000Z
2022-03-31T12:23:36.000Z
dbcArchives/2021/000_0-sds-3-x-projects/student-project-16_group-IntrusionDetection/00_Introduction.py
r-e-x-a-g-o-n/scalable-data-science
a97451a768cf12eec9a20fbe5552bbcaf215d662
[ "Unlicense" ]
11
2017-08-17T13:45:54.000Z
2021-06-04T09:06:53.000Z
dbcArchives/2021/000_0-sds-3-x-projects/student-project-16_group-IntrusionDetection/00_Introduction.py
r-e-x-a-g-o-n/scalable-data-science
a97451a768cf12eec9a20fbe5552bbcaf215d662
[ "Unlicense" ]
74
2017-08-18T17:04:46.000Z
2022-03-21T14:30:51.000Z
# Databricks notebook source # MAGIC %md # MAGIC ScaDaMaLe Course [site](https://lamastex.github.io/scalable-data-science/sds/3/x/) and [book](https://lamastex.github.io/ScaDaMaLe/index.html) # COMMAND ---------- # MAGIC %md # MAGIC # MAGIC # Intrusion Detection # MAGIC # MAGIC **Group Project Team**: # MAGIC # MA...
51.814815
1,384
0.597365
ba04f7bdcff2b95a0657d6847f1978418f6a36a1
8,216
py
Python
evaluation/plot_results.py
kidpaul94/masknet
f70324cfecd9c91dce532284efec02636c04af65
[ "MIT" ]
26
2020-10-21T00:40:54.000Z
2021-12-20T07:03:09.000Z
evaluation/plot_results.py
kidpaul94/masknet
f70324cfecd9c91dce532284efec02636c04af65
[ "MIT" ]
2
2020-12-17T12:52:16.000Z
2022-02-16T21:44:22.000Z
evaluation/plot_results.py
kidpaul94/masknet
f70324cfecd9c91dce532284efec02636c04af65
[ "MIT" ]
2
2021-05-26T05:01:21.000Z
2021-05-28T20:20:40.000Z
import h5py import numpy as np import matplotlib.pyplot as plt import os import argparse # Class to read results from a h5py file. class ReadResults: def __init__(self, file_path, various_data=True): self.file = h5py.File(os.path.join(file_path, 'results.h5'), 'r') self.various_data = various_data # True...
34.961702
133
0.696203
e3395643c2a948e04285c98125b32a7c9ad29ef3
357
py
Python
example/market/sub_mbp_increase.py
xujunhuii/huobi_Python
958df8b22ce774329c7e15a1ecf2f52eea5f6af8
[ "Apache-2.0" ]
null
null
null
example/market/sub_mbp_increase.py
xujunhuii/huobi_Python
958df8b22ce774329c7e15a1ecf2f52eea5f6af8
[ "Apache-2.0" ]
null
null
null
example/market/sub_mbp_increase.py
xujunhuii/huobi_Python
958df8b22ce774329c7e15a1ecf2f52eea5f6af8
[ "Apache-2.0" ]
null
null
null
from huobi.client.market import MarketClient from huobi.constant import * def callback(mbp_event: "MbpIncreaseEvent"): mbp_event.print_object() def error(e: "HuobiApiException"): print(e.error_code + e.error_message) market_client = MarketClient(init_log=True) market_client.sub_mbp_increase("btcusdt,eosus...
23.8
81
0.784314
66ba4b1d59178204489300ea07ee54f97e892ac1
66
py
Python
notebook/dir_import_test/dir/main_absolute.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/dir_import_test/dir/main_absolute.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/dir_import_test/dir/main_absolute.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import mod1 from dir_for_mod import mod2 mod1.func() mod2.func()
11
28
0.772727
f73c3fd9cba6a19db395bd14e2eef3617158a82a
3,818
py
Python
tensorflow/contrib/data/python/ops/threadpool.py
Esail/tensorflow
2538e68a69e585696175bd972cae119e06bde294
[ "Apache-2.0" ]
1
2019-01-03T13:49:53.000Z
2019-01-03T13:49:53.000Z
tensorflow/contrib/data/python/ops/threadpool.py
Esail/tensorflow
2538e68a69e585696175bd972cae119e06bde294
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/data/python/ops/threadpool.py
Esail/tensorflow
2538e68a69e585696175bd972cae119e06bde294
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow 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 applica...
36.361905
85
0.739916
b143326780f584da50bec940908af2006e1945f5
3,219
py
Python
python/paddle/tests/dist_hapi_mnist_static.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/tests/dist_hapi_mnist_static.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/tests/dist_hapi_mnist_static.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2020 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...
30.657143
75
0.654862
4949d498291e803823c4f66ff96f52d53cd8ec05
2,079
py
Python
fy22_ferry_study/address_scraper/HTML_Grab_V2.py
dvrpc/project-data-science-code
2a12abe6c7bf5166770fdf4e52a71b8a6ed9de83
[ "MIT" ]
null
null
null
fy22_ferry_study/address_scraper/HTML_Grab_V2.py
dvrpc/project-data-science-code
2a12abe6c7bf5166770fdf4e52a71b8a6ed9de83
[ "MIT" ]
null
null
null
fy22_ferry_study/address_scraper/HTML_Grab_V2.py
dvrpc/project-data-science-code
2a12abe6c7bf5166770fdf4e52a71b8a6ed9de83
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import csv from dotenv import find_dotenv, load_dotenv import os from pathlib import Path load_dotenv(find_dotenv()) GDRIVE_FOLDER = Path(os.getenv("GDRIVE_FOLDER")) def get_list_of_urls_to_scrape(county: str = "Camden") -> list: """ function tests if URL with ...
30.573529
124
0.662819
40550e07d1fbc48fda80fbfc8888037951128810
2,207
py
Python
apiai/requests/query/text.py
ahujamoh/apiai-python-client
77b7004f0ada5d1fa56b04ea3cbe566f49e773c6
[ "Apache-2.0" ]
240
2017-10-10T17:18:51.000Z
2022-01-21T11:27:39.000Z
apiai/requests/query/text.py
ahujamoh/apiai-python-client
77b7004f0ada5d1fa56b04ea3cbe566f49e773c6
[ "Apache-2.0" ]
24
2017-04-06T11:03:13.000Z
2017-10-06T17:09:05.000Z
apiai/requests/query/text.py
ahujamoh/apiai-python-client
77b7004f0ada5d1fa56b04ea3cbe566f49e773c6
[ "Apache-2.0" ]
106
2017-10-11T07:06:23.000Z
2022-01-21T11:27:32.000Z
# -*- coding:utf8 -*- # !/usr/bin/env python # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
29.039474
75
0.600816
97d32d0ac9f2c5657274047a18b70784ae84c361
5,125
py
Python
compiler/base/lef.py
lekez2005/OpenRAM
608e4b81f1763727e7efe087d591c76956869fe6
[ "BSD-3-Clause" ]
null
null
null
compiler/base/lef.py
lekez2005/OpenRAM
608e4b81f1763727e7efe087d591c76956869fe6
[ "BSD-3-Clause" ]
null
null
null
compiler/base/lef.py
lekez2005/OpenRAM
608e4b81f1763727e7efe087d591c76956869fe6
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE for licensing information. # # Copyright (c) 2016-2019 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # import debug from tech import layer_names clas...
40.354331
121
0.539902
f965611b44d284dab7907efbd64c24708c0a7638
1,912
py
Python
DeepHyperion-MNIST/train_model.py
IharBakhanovich/DeepHyperion
f7f696ba95124125dfe967ea4890d944a9958d77
[ "MIT" ]
5
2021-04-28T09:35:44.000Z
2021-09-10T18:18:08.000Z
DeepHyperion-MNIST/train_model.py
IharBakhanovich/DeepHyperion
f7f696ba95124125dfe967ea4890d944a9958d77
[ "MIT" ]
null
null
null
DeepHyperion-MNIST/train_model.py
IharBakhanovich/DeepHyperion
f7f696ba95124125dfe967ea4890d944a9958d77
[ "MIT" ]
2
2021-04-26T12:46:44.000Z
2021-09-16T08:27:53.000Z
import argparse import sys import numpy as np from os import makedirs from os.path import exists import tensorflow as tf CLIP_MIN = -0.5 CLIP_MAX = 0.5 K = tf.keras.backend mnist = tf.keras.datasets.mnist np_utils = tf.keras.utils Sequential = tf.keras.models.Sequential Dense = tf.keras.layers.Dense Dropout = tf.kera...
23.317073
83
0.622908
71bbbaa744c6d5faff27cbcd405d1534a5f9656d
1,243
py
Python
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/EnableHostAvailabilityRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/EnableHostAvailabilityRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/EnableHostAvailabilityRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.558824
81
0.745776
3944700b0e6b98d14c3cb97346c3cd37ca572ebf
1,067
py
Python
restfuzz/tests/utils.py
redhat-cip/restfuzz
3ba7b8d5b6b25be40fa69f2570b0e0af29b48e5e
[ "Apache-2.0" ]
23
2015-12-03T00:40:40.000Z
2019-03-19T05:44:20.000Z
restfuzz/tests/utils.py
redhat-cip/restfuzz
3ba7b8d5b6b25be40fa69f2570b0e0af29b48e5e
[ "Apache-2.0" ]
null
null
null
restfuzz/tests/utils.py
redhat-cip/restfuzz
3ba7b8d5b6b25be40fa69f2570b0e0af29b48e5e
[ "Apache-2.0" ]
5
2017-08-18T10:17:43.000Z
2021-03-04T11:31:36.000Z
# Copyright 2017 Red Hat # # 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, sof...
31.382353
75
0.691659
4bc5b5f537a978c07f7f57fb94950bafdce97155
636
py
Python
src/libs/Web3Client/tests/testEstimateGasForTransfer.py
Antuaaan/crabada.py
7ffc97445b3034020784a6265679a841470e7893
[ "MIT" ]
1
2022-03-30T07:16:58.000Z
2022-03-30T07:16:58.000Z
src/libs/Web3Client/tests/testEstimateGasForTransfer.py
Antuaaan/crabada.py
7ffc97445b3034020784a6265679a841470e7893
[ "MIT" ]
null
null
null
src/libs/Web3Client/tests/testEstimateGasForTransfer.py
Antuaaan/crabada.py
7ffc97445b3034020784a6265679a841470e7893
[ "MIT" ]
null
null
null
from sys import argv from web3 import Web3 from src.common.config import nodeUri, users from src.helpers.general import secondOrNone, thirdOrNone from src.libs.Web3Client.AvalancheCWeb3Client import AvalancheCWeb3Client from pprint import pprint # VARS client = AvalancheCWeb3Client( nodeUri=nodeUri, privateKe...
21.2
73
0.762579
9935412066321de75f8a501a0302156fbe9b54a3
372
py
Python
homepage/management/commands/createsu.py
Qlwentt/qually
550efa326532d6fbb154f9d244905e957f30f3ea
[ "MIT" ]
1
2017-06-20T23:18:15.000Z
2017-06-20T23:18:15.000Z
homepage/management/commands/createsu.py
Qlwentt/qually
550efa326532d6fbb154f9d244905e957f30f3ea
[ "MIT" ]
8
2017-02-05T05:51:48.000Z
2017-08-27T15:44:05.000Z
homepage/management/commands/createsu.py
Qlwentt/qually
550efa326532d6fbb154f9d244905e957f30f3ea
[ "MIT" ]
null
null
null
import os from django.core.management.base import BaseCommand from django.contrib.auth.models import User class Command(BaseCommand): def handle(self, *args, **options): if not User.objects.filter(username="qlwentt").exists(): User.objects.create_superuser(os.environ["ADMIN_USER_NAME"], os.en...
33.818182
129
0.736559
b08499a7a0d67dc560ecbbdb8178cd0fa6e9d81a
272
py
Python
examples/scalability/manager/manager_config_files/config.py
code-lab-org/nost-tools
8b325eb8e7798b71e121de0d2bf6ffc09f7b0bc0
[ "BSD-3-Clause" ]
1
2022-01-28T15:20:58.000Z
2022-01-28T15:20:58.000Z
examples/scalability/manager/manager_config_files/config.py
code-lab-org/nost-tools
8b325eb8e7798b71e121de0d2bf6ffc09f7b0bc0
[ "BSD-3-Clause" ]
null
null
null
examples/scalability/manager/manager_config_files/config.py
code-lab-org/nost-tools
8b325eb8e7798b71e121de0d2bf6ffc09f7b0bc0
[ "BSD-3-Clause" ]
null
null
null
import os PREFIX = os.getenv("PREFIX", "greenfield") NAME = os.getenv("NAME", "Manager") LOG = f"\x1b[1m[\x1b[32m{NAME}\x1b[37m]\x1b[0m" HEADER = { "name": NAME, "description": f'Synchronizes a test case on the testbed on the "{PREFIX}/#" topic.', } SCALE = 1.0
22.666667
89
0.636029
c0bb5c6d74baa05cb1188653c060df6e2412a324
47,469
py
Python
vnpy/trader/app/ctaStrategy/ctaBacktesting.py
vicjoe/vnpy
4f0a07bddf81ec87c1e00cefcc92678e2b99b6b4
[ "MIT" ]
2
2016-07-19T08:12:11.000Z
2017-10-12T06:02:06.000Z
vnpy/trader/app/ctaStrategy/ctaBacktesting.py
conglin/vnpy
4f0a07bddf81ec87c1e00cefcc92678e2b99b6b4
[ "MIT" ]
null
null
null
vnpy/trader/app/ctaStrategy/ctaBacktesting.py
conglin/vnpy
4f0a07bddf81ec87c1e00cefcc92678e2b99b6b4
[ "MIT" ]
1
2018-11-30T02:13:44.000Z
2018-11-30T02:13:44.000Z
# encoding: UTF-8 ''' 本文件中包含的是CTA模块的回测引擎,回测引擎的API和CTA引擎一致, 可以使用和实盘相同的代码进行回测。 ''' from __future__ import division from datetime import datetime, timedelta from collections import OrderedDict from itertools import product import multiprocessing import copy import pymongo import pandas as pd import numpy as np import m...
36.826222
101
0.468137
46af2d66f92da969fcd81f11616188acdddfea9e
887
py
Python
bigday/urls.py
aborsu/django-wedding-website
11c42ac3bd489d9a9550ffc1fd514253cbc7ba83
[ "Apache-2.0" ]
null
null
null
bigday/urls.py
aborsu/django-wedding-website
11c42ac3bd489d9a9550ffc1fd514253cbc7ba83
[ "Apache-2.0" ]
1
2019-07-04T07:06:01.000Z
2019-07-04T07:19:36.000Z
bigday/urls.py
aborsu/django-wedding-website
11c42ac3bd489d9a9550ffc1fd514253cbc7ba83
[ "Apache-2.0" ]
2
2018-02-17T20:18:04.000Z
2019-09-03T02:15:32.000Z
from django.conf.urls import url, include from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ url(r'^admin/', admin.site.urls), # url(r'^(?P<filename>(robots.txt)|(human...
36.958333
77
0.695603
02f2572a69077bad663de26fb59cc8a9f9943dc6
22,969
py
Python
third_party/virtualbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/Expression.py
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
521
2019-03-29T15:44:08.000Z
2022-03-22T09:46:19.000Z
third_party/virtualbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/Expression.py
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
30
2019-06-04T17:00:49.000Z
2021-09-08T20:44:19.000Z
third_party/virtualbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/Expression.py
Fimbure/icebox-1
0b81992a53e1b410955ca89bdb6f8169d6f2da86
[ "MIT" ]
99
2019-03-29T16:04:13.000Z
2022-03-28T16:59:34.000Z
## @file # This file is used to parse and evaluate expression in directive or PCD value. # # Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribu...
36.400951
176
0.524054
2a02e5b1c60f33a6e2479e8db76a94706cd34d48
6,806
py
Python
checkSigma_Improved.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
1
2020-10-19T05:20:53.000Z
2020-10-19T05:20:53.000Z
checkSigma_Improved.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
null
null
null
checkSigma_Improved.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
null
null
null
############################################################################################## ############## AK Improved (using only sets that gave bounds in the prev. run) ############### ############################################################################################## import re from itertools import co...
42.805031
150
0.489568
d35e6d6b7ced4ba81184288c4d6d047554d7134d
1,956
py
Python
Using_Database_in_Python/Transaction_timing/10_Roll_back_transaction_python.py
ajeyln/python_scripts_udemy
387a027170207a12daf16c25a9592adb27e45870
[ "MIT" ]
null
null
null
Using_Database_in_Python/Transaction_timing/10_Roll_back_transaction_python.py
ajeyln/python_scripts_udemy
387a027170207a12daf16c25a9592adb27e45870
[ "MIT" ]
null
null
null
Using_Database_in_Python/Transaction_timing/10_Roll_back_transaction_python.py
ajeyln/python_scripts_udemy
387a027170207a12daf16c25a9592adb27e45870
[ "MIT" ]
null
null
null
import sqlite3 db = sqlite3.connect("accounts.sqlite") db.execute("CREATE TABLE IF NOT EXISTS accounts (name TEXT PRIMARY KEY NOT NULL, balance INTEGER NOT NULL)") db.execute("CREATE TABLE IF NOT EXISTS transactions (time TIMESTAMP NOT NULL, account TEXT NOT NULL," " amount INTEGER NOT NULL, PRIMARY KEY (ti...
34.315789
108
0.602249
85cd89c90f3bc84014bdbe46e5cb208e5c8c1df3
9,750
py
Python
isolation/isolation.py
AekachaiTang/AINDP3
b50a3d522f4e7a2b74b294a141804873ea8d8182
[ "MIT" ]
null
null
null
isolation/isolation.py
AekachaiTang/AINDP3
b50a3d522f4e7a2b74b294a141804873ea8d8182
[ "MIT" ]
null
null
null
isolation/isolation.py
AekachaiTang/AINDP3
b50a3d522f4e7a2b74b294a141804873ea8d8182
[ "MIT" ]
null
null
null
############################################################################### # DO NOT MODIFY THIS FILE # ############################################################################### from enum import IntEnum from typing import NamedTuple # board array dimensio...
41.845494
102
0.553846
ec4a704f3f66d83666eb793d8f4e6970ec0afc96
8,506
py
Python
torchtable/field/core.py
keitakurita/torchtable
e3ae98b5c5b2e809a43787a111bb30ca7f0240b9
[ "MIT" ]
2
2019-05-14T13:23:58.000Z
2020-01-16T03:50:24.000Z
torchtable/field/core.py
keitakurita/torchtable
e3ae98b5c5b2e809a43787a111bb30ca7f0240b9
[ "MIT" ]
null
null
null
torchtable/field/core.py
keitakurita/torchtable
e3ae98b5c5b2e809a43787a111bb30ca7f0240b9
[ "MIT" ]
1
2019-04-28T20:13:43.000Z
2019-04-28T20:13:43.000Z
import logging import numpy as np import pandas as pd import torch.utils.data from pathlib import Path import warnings from ..custom_types import * from ..utils import * from ..operator import Operator, LambdaOperator, FillMissing, Categorize, Normalize, ToTensor, UnknownCategoryError logger = logging.getLogger(__n...
46.736264
158
0.662591
c9fac5cc04a45a4a803938abca02458a6afff46e
6,482
py
Python
pytorch_lightning/utilities/debugging.py
aribornstein/pytorch-lightning
ca68cac57ad8eefc9b477ee126eb42a483f27a39
[ "Apache-2.0" ]
1
2020-08-31T01:32:46.000Z
2020-08-31T01:32:46.000Z
pytorch_lightning/utilities/debugging.py
aribornstein/pytorch-lightning
ca68cac57ad8eefc9b477ee126eb42a483f27a39
[ "Apache-2.0" ]
8
2020-10-27T22:39:24.000Z
2021-01-24T16:41:34.000Z
pytorch_lightning/utilities/debugging.py
tarepan/pytorch-lightning
0b7f5a88a0f4691ec228c4708295a10d403fd592
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
32.572864
111
0.614625
44ba81fb7274f16fbaec0b5abe46e1860a91a9b8
2,553
py
Python
demo_simple.py
padmalcom/Real-Time-Voice-Cloning-German
3be5fd0d0ee4f411697a36b999f9c9fbf949c033
[ "MIT" ]
20
2020-10-25T02:12:43.000Z
2022-02-20T20:46:07.000Z
demo_simple.py
padmalcom/Real-Time-Voice-Cloning-German
3be5fd0d0ee4f411697a36b999f9c9fbf949c033
[ "MIT" ]
18
2020-12-22T17:09:11.000Z
2022-01-25T07:26:25.000Z
demo_simple.py
padmalcom/Real-Time-Voice-Cloning-German
3be5fd0d0ee4f411697a36b999f9c9fbf949c033
[ "MIT" ]
4
2021-08-25T12:23:36.000Z
2021-12-19T11:36:39.000Z
from encoder.params_model import model_embedding_size as speaker_embedding_size from utils.argutils import print_args from utils.modelutils import check_model_paths from synthesizer.inference import Synthesizer from encoder import inference as encoder from vocoder import inference as vocoder from pathlib import Path im...
31.9125
93
0.77125
57590e9a95450c2634efcdc612b37008c4e6d225
4,398
py
Python
test/core_tests/test_generic_units.py
joshuawall/amuse
c2034074ee76c08057c4faa96c32044ab40952e9
[ "Apache-2.0" ]
1
2019-12-28T22:47:51.000Z
2019-12-28T22:47:51.000Z
test/core_tests/test_generic_units.py
joshuawall/amuse
c2034074ee76c08057c4faa96c32044ab40952e9
[ "Apache-2.0" ]
null
null
null
test/core_tests/test_generic_units.py
joshuawall/amuse
c2034074ee76c08057c4faa96c32044ab40952e9
[ "Apache-2.0" ]
2
2021-11-19T04:41:37.000Z
2021-11-20T02:11:17.000Z
from amuse.test import amusetest from amuse.units import constants from amuse.units.generic_unit_converter import * class TestGenericUnits(amusetest.TestCase): def test1(self): L = 1 | length T = 1 | time V = 1 | speed self.assertTrue(L/T == V) def test2(self): #natural...
45.8125
119
0.65166
8efdc7c799088c5edd36aa21c53177c776efd13a
11,668
py
Python
core/main.py
oowais/Muses
5eac963b9d0abc403a68daaf371b5f60c275496e
[ "MIT" ]
3
2021-02-19T08:32:01.000Z
2022-01-09T18:08:25.000Z
core/main.py
oowais/Audio-Comparison
5eac963b9d0abc403a68daaf371b5f60c275496e
[ "MIT" ]
null
null
null
core/main.py
oowais/Audio-Comparison
5eac963b9d0abc403a68daaf371b5f60c275496e
[ "MIT" ]
3
2019-04-09T10:34:00.000Z
2022-02-21T06:33:41.000Z
import os import time import sys from itertools import chain from core.db import Db from core.util import sha256sum, scale, progress, sum_n from core.thread import StartThread from core.extractor import get_all_features, get_distance class Main: def __init__(self, db_name): """ Constructor for M...
37.63871
114
0.544309
48e78b8cbb816e11f5207a43b5b398caafff608a
18,044
py
Python
Fuzzy_clustering/version3/DatasetManager/create_dataset_for_load.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
Fuzzy_clustering/version3/DatasetManager/create_dataset_for_load.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
Fuzzy_clustering/version3/DatasetManager/create_dataset_for_load.py
joesider9/forecasting_library
db07ff8f0f2693983058d49004f2fc6f8849d197
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import joblib, os, logging from joblib import Parallel, delayed from workalendar.europe import Greece from scipy.interpolate import interp2d def rescale(arr, nrows, ncol): W, H = arr.shape new_W, new_H = (nrows, ncol) xrange = lambda x: np.linspace(0, 1, x) f = i...
44.774194
226
0.511029
1d7c10937f71c321e271f72ff8de16d7fe8f0172
914
py
Python
bin/extract_symptom.py
Syhen/knowledge-graph
35b35624f78ec58b3ca9f1e6eaf4a5e5ff80edc2
[ "MIT" ]
2
2019-07-01T02:18:33.000Z
2020-01-14T11:20:44.000Z
bin/extract_symptom.py
Syhen/knowledge-graph
35b35624f78ec58b3ca9f1e6eaf4a5e5ff80edc2
[ "MIT" ]
null
null
null
bin/extract_symptom.py
Syhen/knowledge-graph
35b35624f78ec58b3ca9f1e6eaf4a5e5ff80edc2
[ "MIT" ]
2
2020-03-19T10:22:34.000Z
2022-03-06T01:41:56.000Z
# -*- coding: utf-8 -*- """ Author: @heyao Created On: 2019/7/9 上午9:16 """ import json import os from tqdm import tqdm from knowledge_graph.info_extract.extractor.symptom import extract_symptoms data = [] path = "/home/heyao/Desktop/dataset/电子病历" for folder_name in tqdm(os.listdir(path)): for filename in os.li...
29.483871
117
0.643326
515c7187b934be650fac54a6287eb4f508d7fa8e
846
py
Python
v1/self_configurations/migrations/0002_auto_20201204_1557.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
94
2020-07-12T23:08:47.000Z
2022-03-05T14:00:01.000Z
v1/self_configurations/migrations/0002_auto_20201204_1557.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
84
2020-07-13T23:30:50.000Z
2022-03-15T15:47:46.000Z
v1/self_configurations/migrations/0002_auto_20201204_1557.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
63
2020-07-13T02:46:51.000Z
2021-11-26T09:29:29.000Z
# Generated by Django 3.1.3 on 2020-12-04 15:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('self_configurations', '0001_initial'), ] operations = [ migrations.AlterField( model_name='selfconfiguration', name=...
31.333333
157
0.640662
4e51a9ae94b3bead25d7e4d93569a4534b9c1925
13,689
py
Python
code/CGAN_Patterns/plotter.py
skababji/ElecLoadsSim_V1
d383c5c31e9533a10de87a9d74c4c5780a01fbe5
[ "MIT" ]
2
2020-07-25T15:09:45.000Z
2020-07-28T15:34:47.000Z
code/CGAN_Patterns/plotter.py
skababji/ElecLoads_V1
d383c5c31e9533a10de87a9d74c4c5780a01fbe5
[ "MIT" ]
null
null
null
code/CGAN_Patterns/plotter.py
skababji/ElecLoads_V1
d383c5c31e9533a10de87a9d74c4c5780a01fbe5
[ "MIT" ]
2
2020-07-24T23:31:25.000Z
2020-07-27T09:27:27.000Z
import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages import pandas as pd import sys from sklearn.metrics import confusion_matrix from sklearn.utils.multiclass import unique_labels import numpy as np from CGAN_Patterns.datasets import Datasets from CGAN_Patterns.hyperparam import Hyperp...
43.595541
140
0.588648
517c33dd3255fee46de04a199549aec3b5d26503
2,051
py
Python
students/K33402/Kondrashov_Egor/LR2/commerce/auctions/migrations/0012_auto_20201007_1732.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
7
2021-09-02T08:20:58.000Z
2022-01-12T11:48:07.000Z
students/K33402/Kondrashov_Egor/LR2/commerce/auctions/migrations/0012_auto_20201007_1732.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
76
2021-09-17T23:01:50.000Z
2022-03-18T16:42:03.000Z
students/K33402/Kondrashov_Egor/LR2/commerce/auctions/migrations/0012_auto_20201007_1732.py
emina13/ITMO_ICT_WebDevelopment_2021-2022
498a6138e352e7e0ca40d1eb301bc29416158f51
[ "MIT" ]
60
2021-09-04T16:47:39.000Z
2022-03-21T04:41:27.000Z
# Generated by Django 3.0.6 on 2020-10-07 14:32 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auctions', '0011_auto_20201006_1536'), ] operations = [ migrations.CreateM...
38.698113
159
0.626524
d4d3599e858ce6a52804c8c55c58c6b727d1da88
1,275
py
Python
scripts/artifacts/smyfilesStored.py
qubytelogic/abrignoni-ALEAPP
53724d5b7cacf2fb57c4aa4d10a929b4260ffb71
[ "MIT" ]
2
2020-11-18T21:43:06.000Z
2022-03-22T14:34:50.000Z
scripts/artifacts/smyfilesStored.py
qubytelogic/abrignoni-ALEAPP
53724d5b7cacf2fb57c4aa4d10a929b4260ffb71
[ "MIT" ]
null
null
null
scripts/artifacts/smyfilesStored.py
qubytelogic/abrignoni-ALEAPP
53724d5b7cacf2fb57c4aa4d10a929b4260ffb71
[ "MIT" ]
null
null
null
import sqlite3 import textwrap from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, is_platform_windows def get_smyfilesStored(files_found, report_folder, seeker): file_found = str(files_found[0]) db = sqlite3.connect(file_found) cursor = db.cursor() curso...
31.875
161
0.669804
885a0729d3bba243775f44deb5f6ff5dc3eb2826
14,672
py
Python
mcfly/find_architecture.py
gkbharathy/ML_Center_Netherlands
2aeff4559ac3c479f1d795181b55115fe2c44d2a
[ "Apache-2.0" ]
null
null
null
mcfly/find_architecture.py
gkbharathy/ML_Center_Netherlands
2aeff4559ac3c479f1d795181b55115fe2c44d2a
[ "Apache-2.0" ]
null
null
null
mcfly/find_architecture.py
gkbharathy/ML_Center_Netherlands
2aeff4559ac3c479f1d795181b55115fe2c44d2a
[ "Apache-2.0" ]
null
null
null
# # mcfly # # Copyright 2020 Netherlands eScience Center # # 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 l...
39.54717
111
0.616957
525ba515918408f8358777855dba86d73c28651f
6,321
py
Python
deep_learning/train.py
amosarbiv/Tracking
330e326ab9975a4eba3d17b415c9dd716ce18a96
[ "MIT" ]
null
null
null
deep_learning/train.py
amosarbiv/Tracking
330e326ab9975a4eba3d17b415c9dd716ce18a96
[ "MIT" ]
null
null
null
deep_learning/train.py
amosarbiv/Tracking
330e326ab9975a4eba3d17b415c9dd716ce18a96
[ "MIT" ]
null
null
null
# import matplotlib.pyplot as plt import numpy as np from PIL import Image import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from collections import defaultdict from pathlib import Path from tensorboardX import SummaryWriter from torch.autograd import Variable from torch.uti...
30.1
101
0.62237
f3429c5e144f2941187a7761177e9853a98974bc
8,454
py
Python
adi_study_watch/nrf5_sdk_15.2.0/validation/utils/cli_map.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
5
2021-06-13T17:11:19.000Z
2021-12-01T18:20:38.000Z
adi_study_watch/nrf5_sdk_15.2.0/validation/utils/cli_map.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
null
null
null
adi_study_watch/nrf5_sdk_15.2.0/validation/utils/cli_map.py
ArrowElectronics/Vital-Signs-Monitoring
ba43fe9a116d94170561433910fd7bffba5726e7
[ "Unlicense" ]
1
2022-01-08T15:01:44.000Z
2022-01-08T15:01:44.000Z
from adi_study_watch_cli import cli class CLIMap(cli.CLI): def __init__(self, signaller, testing=True): super().__init__(signaller, testing) # self.watch_shell = watch_shell_obj self.plot_dict = {'adxl': False, 'ecg': False, 'ppg': False, 'eda': False, 'temp': False, 'ped': False, ...
41.038835
117
0.553348
590053998bccc172d7cd7db037a09ba400b2716f
1,632
py
Python
examples/src/main/python/ml/elementwise_product_example.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
2,327
2020-03-01T09:47:34.000Z
2021-11-25T12:38:42.000Z
examples/src/main/python/ml/elementwise_product_example.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
607
2016-12-12T21:56:43.000Z
2019-11-14T22:21:06.000Z
examples/src/main/python/ml/elementwise_product_example.py
yqtaowhu/Spark
a381bce7285ec30f58f28f523dfcfe0c13221bbf
[ "Apache-2.0" ]
686
2020-03-03T17:24:51.000Z
2021-11-25T23:39:12.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
37.953488
86
0.71201
dcf3f505d23e0c4d6c67bc5929213bf835546dfe
780
py
Python
alembic/versions/3e13e44bb5cb_add_layer_transparency_to_ows_layer.py
qwc-services/sogis-agdi
f278612c42f648da07448905f2b8021b279e66bc
[ "MIT" ]
null
null
null
alembic/versions/3e13e44bb5cb_add_layer_transparency_to_ows_layer.py
qwc-services/sogis-agdi
f278612c42f648da07448905f2b8021b279e66bc
[ "MIT" ]
null
null
null
alembic/versions/3e13e44bb5cb_add_layer_transparency_to_ows_layer.py
qwc-services/sogis-agdi
f278612c42f648da07448905f2b8021b279e66bc
[ "MIT" ]
null
null
null
"""add layer_transparency to ows_layer Revision ID: 3e13e44bb5cb Revises: 617bf4751ff9 Create Date: 2018-06-13 10:56:45.033977 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3e13e44bb5cb' down_revision = '617bf4751ff9' branch_labels = None depends_on = None ...
20.526316
70
0.687179
1a6174fd021b33227f8b9b386d540cc7c54d0376
4,553
py
Python
keras2corgy/keras2corgy.py
Corgy/Corgy
bf56cf9f51aea6f2b7867bee9c9f20658a4475c2
[ "WTFPL" ]
25
2018-05-05T21:50:53.000Z
2021-10-05T08:27:42.000Z
keras2corgy/keras2corgy.py
Corgy/Corgy
bf56cf9f51aea6f2b7867bee9c9f20658a4475c2
[ "WTFPL" ]
null
null
null
keras2corgy/keras2corgy.py
Corgy/Corgy
bf56cf9f51aea6f2b7867bee9c9f20658a4475c2
[ "WTFPL" ]
2
2018-05-08T22:55:07.000Z
2020-10-29T07:17:49.000Z
# Most of this code is credited to [hollance](https://github.com/hollance). # I did some minor changes to suit my need. import os import numpy as np import keras from keras.models import Sequential, load_model from keras.layers import Conv2D, MaxPooling2D from keras.layers.advanced_activations import LeakyReLU # gene...
37.628099
102
0.710521
e8d385bc3c02085463f31240bb96dc3992215e55
14,788
py
Python
djstripe/migrations/0001_initial.py
photocrowd/dj-stripe
2b1b7e0c94e441babc0f24be798451cbd999598e
[ "BSD-3-Clause" ]
null
null
null
djstripe/migrations/0001_initial.py
photocrowd/dj-stripe
2b1b7e0c94e441babc0f24be798451cbd999598e
[ "BSD-3-Clause" ]
null
null
null
djstripe/migrations/0001_initial.py
photocrowd/dj-stripe
2b1b7e0c94e441babc0f24be798451cbd999598e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import jsonfield.fields import django.utils.timezone from django.conf import settings import model_utils.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency...
58.220472
158
0.594468
ec5dcf60fd2f64a8571638584cc3b0e2c7c2ba1c
2,031
py
Python
reprintmapperscriptandbatch.py
mhbeals/ReprintMapper
cd6f809c5d56ba66813ee69b712fee2c2ccf7c68
[ "MIT" ]
null
null
null
reprintmapperscriptandbatch.py
mhbeals/ReprintMapper
cd6f809c5d56ba66813ee69b712fee2c2ccf7c68
[ "MIT" ]
null
null
null
reprintmapperscriptandbatch.py
mhbeals/ReprintMapper
cd6f809c5d56ba66813ee69b712fee2c2ccf7c68
[ "MIT" ]
null
null
null
# This script creates individual script files for # running formatted match reports through the # reprintmapper and a batch file for running all # the scripts in sequence start_year = 1800 end_year = 1900 counter = 1 countery = 0 year = 0 # While we are before the final year while year < end_year: # Set t...
22.318681
73
0.560315
476a781967880ca151611bdc346e8e169962b4ca
3,733
py
Python
utils/ExtractLinkData.py
AaltoUAW/GisToSWMM5
b3435006e084a14f6f0f325c0962a4c2a5213559
[ "MIT" ]
22
2017-11-20T19:14:09.000Z
2022-01-14T10:00:31.000Z
utils/ExtractLinkData.py
AaltoUAW/GisToSWMM5
b3435006e084a14f6f0f325c0962a4c2a5213559
[ "MIT" ]
3
2020-04-23T15:48:25.000Z
2021-12-15T13:48:35.000Z
utils/ExtractLinkData.py
AaltoUAW/GisToSWMM5
b3435006e084a14f6f0f325c0962a4c2a5213559
[ "MIT" ]
19
2018-07-24T18:46:52.000Z
2022-03-27T14:56:17.000Z
#!/usr/bin/env python """Collate timeseries data from (many) SWMM5 report file(s) to a .csv file. Copyright (C) 2018 Tero Niemi, Aalto University School of Engineering TODO: Read number of columns for each link and create time series accordingly. """ import sys import pandas as pd # Check input parameters inFiles =...
41.021978
78
0.507367
844c34fb6d1a23023ee78b2563c8b4e8e6fb7a34
9,902
py
Python
google-cloud-sdk/.install/.backup/lib/third_party/containerregistry/client/v2/docker_session_.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/third_party/containerregistry/client/v2/docker_session_.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/third_party/containerregistry/client/v2/docker_session_.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
"""This package manages pushes to and deletes from a v2 docker registry.""" import httplib import logging import urllib import urlparse import concurrent.futures from containerregistry.client import docker_creds # pylint: disable=unused-import from containerregistry.client import docker_name from containerregistry...
32.572368
85
0.660271
5d37720868fa212d50d144d121729a867e877e4a
912
py
Python
scripts/local.datalake.RemoveIamAllowedPrincipals.py
avrios/data-lake-as-code
6944b01322368c39c2a298f9e5b05cf73067e351
[ "MIT-0" ]
106
2020-06-11T15:56:12.000Z
2022-03-26T22:40:30.000Z
scripts/local.datalake.RemoveIamAllowedPrincipals.py
avrios/data-lake-as-code
6944b01322368c39c2a298f9e5b05cf73067e351
[ "MIT-0" ]
11
2020-05-21T17:45:36.000Z
2020-12-15T04:54:50.000Z
scripts/local.datalake.RemoveIamAllowedPrincipals.py
avrios/data-lake-as-code
6944b01322368c39c2a298f9e5b05cf73067e351
[ "MIT-0" ]
26
2020-05-23T13:04:13.000Z
2021-12-16T12:08:36.000Z
import logging import boto3 from botocore.exceptions import ClientError lf = boto3.client('lakeformation') permissions = [] permissionResp = lf.list_permissions() permissions.extend(permissionResp['PrincipalResourcePermissions']) while 'NextToken' in permissionResp: print(permissionResp) permissionResp = ...
31.448276
86
0.714912
78353eef576569b3b0dd40e72255ecc3fcc06849
1,007
py
Python
exporter/applications/helpers/date_fields.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
3
2019-05-31T06:36:17.000Z
2020-02-12T16:02:24.000Z
exporter/applications/helpers/date_fields.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
33
2019-03-28T10:20:14.000Z
2020-07-16T15:12:43.000Z
exporter/applications/helpers/date_fields.py
django-doctor/lite-frontend
330ff9575fd22d7c4c42698ac2d653244e6180d6
[ "MIT" ]
1
2019-05-01T15:52:02.000Z
2019-05-01T15:52:02.000Z
import re def format_date(data, date_field): year = data.get(date_field + "year", "") month = data.get(date_field + "month", "") if len(month) == 1: month = "0" + month day = data.get(date_field + "day", "") if len(day) == 1: day = "0" + day return f"{year}-{month}-{day}" def...
28.771429
86
0.63853
668894775f54ee66699c2196300bc2e2a9aaf0a3
45,163
py
Python
tools/codegen/gen.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
206
2020-11-28T22:56:38.000Z
2022-03-27T02:33:04.000Z
tools/codegen/gen.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
19
2020-12-09T23:13:14.000Z
2022-01-24T23:24:08.000Z
tools/codegen/gen.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
28
2020-11-29T15:25:12.000Z
2022-01-20T02:16:27.000Z
import os import contextlib import textwrap import itertools from typing import List, Dict, Optional, Iterator, Tuple, Set, Callable, Any, TypeVar, Union, Sequence import yaml from enum import Enum from collections import OrderedDict import argparse import pathlib import functools from tools.codegen.code_template impo...
43.176864
131
0.651507
9820959facf1c4af80d479f9472889c618ab4899
174
py
Python
src/core/factory/mysql/__init__.py
lucassaporetti/car-rental
6e37032df3a399b78ed3d7998a2cb31a2a84d033
[ "MIT" ]
1
2021-02-11T18:45:12.000Z
2021-02-11T18:45:12.000Z
src/core/factory/mysql/__init__.py
lucassaporetti/car-rental
6e37032df3a399b78ed3d7998a2cb31a2a84d033
[ "MIT" ]
null
null
null
src/core/factory/mysql/__init__.py
lucassaporetti/car-rental
6e37032df3a399b78ed3d7998a2cb31a2a84d033
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ # # Package: src.core.factory.mysql __all__ = [ "car_factory", "customer_factory", "employee_factory", "mysql_factory", "rental_factory" ]
14.5
33
0.672414
a1965795b07a976ef798de52dc8320b9b5891bbe
2,721
py
Python
deep-regex-model/split_data_into_size_subfolders.py
Gkud/deep-regex
c6edd8627303c152ef90fc9b3e12b4a1adaa60c5
[ "MIT" ]
438
2016-08-11T17:27:19.000Z
2022-01-19T15:01:52.000Z
deep-regex-model/split_data_into_size_subfolders.py
Gkud/deep-regex
c6edd8627303c152ef90fc9b3e12b4a1adaa60c5
[ "MIT" ]
3
2016-08-15T23:27:56.000Z
2020-03-20T21:18:07.000Z
deep-regex-model/split_data_into_size_subfolders.py
Gkud/deep-regex
c6edd8627303c152ef90fc9b3e12b4a1adaa60c5
[ "MIT" ]
74
2016-08-11T20:40:08.000Z
2022-03-21T09:03:16.000Z
import sys import argparse import subprocess import os import errno import math def main(arguments): parser = argparse.ArgumentParser( description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--data_dir', help='Data directory', required=True, ty...
30.920455
73
0.648291
e23055cea28c7b67f89d475cf0e296d6e39f087e
413
py
Python
migrations/versions/c1449d1d1681_.py
sartography/cr-connect-workflow
e0d1f63c082e9f4e6e3593c45d615afe04f42729
[ "MIT" ]
2
2019-12-02T12:39:21.000Z
2022-01-10T23:31:36.000Z
migrations/versions/c1449d1d1681_.py
sartography/cr-connect-workflow
e0d1f63c082e9f4e6e3593c45d615afe04f42729
[ "MIT" ]
341
2019-12-11T15:23:59.000Z
2022-03-22T19:36:37.000Z
migrations/versions/c1449d1d1681_.py
sartography/cr-connect-workflow
e0d1f63c082e9f4e6e3593c45d615afe04f42729
[ "MIT" ]
4
2021-03-23T19:17:14.000Z
2022-03-10T03:12:10.000Z
"""empty message Revision ID: c1449d1d1681 Revises: abeffe547305, 8b976945a54e, 62910318009f Create Date: 2021-05-04 13:20:55.447143 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c1449d1d1681' down_revision = ('abeffe547305', '8b976945a54e', '62910318009f') ...
16.52
64
0.745763
b8aeb1f10e29665f9dbac3091d8865be1222b1d0
176
py
Python
competitive/AtCoder/ABC101/B.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
null
null
null
competitive/AtCoder/ABC101/B.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
22
2020-03-24T16:24:47.000Z
2022-02-26T15:51:18.000Z
competitive/AtCoder/ABC101/B.py
pn11/benkyokai
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
[ "MIT" ]
null
null
null
import math import numpy as np Nstr = input() N = int(Nstr) S_N = 0 for n in Nstr: S_N += int(n) if N % S_N == 0: print("Yes") else: print("No")
11
19
0.505682
9306263202e36fe8e439188dc4e07713c69979c8
9,033
py
Python
shared/data.py
AtomAnu/ERAC-VAML
66e5283bcaeade6ce9b14a805002e24182b174e5
[ "MIT" ]
null
null
null
shared/data.py
AtomAnu/ERAC-VAML
66e5283bcaeade6ce9b14a805002e24182b174e5
[ "MIT" ]
null
null
null
shared/data.py
AtomAnu/ERAC-VAML
66e5283bcaeade6ce9b14a805002e24182b174e5
[ "MIT" ]
null
null
null
from collections import Counter, OrderedDict import os import numpy as np from torch.autograd import Variable import torch def interleave_keys(a, b): """Interleave bits from two sort keys to form a joint sort key. Examples that are similar in both of the provided keys will have similar values for the key...
33.209559
89
0.579874
561e87e772343b7a39dd2032eb075b2063310dcd
97,504
py
Python
tests/models/layoutxlm/test_tokenization_layoutxlm.py
manuelciosici/transformers
c33f6046c3dab8f41bedf893404e6469dea3bce8
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
tests/models/layoutxlm/test_tokenization_layoutxlm.py
ymwangg/transformers
4a419d4995111c22d6842ee1bcd2d3f500150845
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
tests/models/layoutxlm/test_tokenization_layoutxlm.py
ymwangg/transformers
4a419d4995111c22d6842ee1bcd2d3f500150845
[ "Apache-2.0" ]
2,106
2018-11-05T15:29:15.000Z
2019-07-16T08:51:57.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. # # 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...
51.317895
1,253
0.606088
33e78cff44189b5b09c542315a647c1c26707062
543
py
Python
parrots/config.py
shibing624/parrot
89bb3ed6218d010a8be9dc52595b42fed957cf34
[ "Apache-2.0" ]
121
2018-08-27T03:55:43.000Z
2022-03-25T11:46:11.000Z
parrots/config.py
shibing624/parrot
89bb3ed6218d010a8be9dc52595b42fed957cf34
[ "Apache-2.0" ]
10
2018-11-07T05:57:54.000Z
2022-02-10T03:17:57.000Z
parrots/config.py
shibing624/parrot
89bb3ed6218d010a8be9dc52595b42fed957cf34
[ "Apache-2.0" ]
41
2018-09-14T05:19:25.000Z
2022-03-14T12:18:51.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import os pwd_path = os.path.abspath(os.path.dirname(__file__)) pinyin2hanzi_dir = os.path.join(pwd_path, 'data/pinyin2hanzi') pinyin_hanzi_dict_path = os.path.join(pwd_path, 'data/pinyin2hanzi/pinyin_hanzi_dict.txt') speech_recognition_m...
36.2
100
0.779006
d14b3fe9c0c6a3ce4bda3e0e03ec6954bc4be492
17,448
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_ipsec_aggregate.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_ipsec_aggregate.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_ipsec_aggregate.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # 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 3 of th...
33.171103
144
0.537483
be8e280dc7baa0ad54c5311ede579fcf4802e573
5,392
py
Python
myexamples/phobos_pylab/kepcart.py
aquillen/phobos_deimos
3fbe2dae07ff56b734e1fc3a0104af8ad0042019
[ "MIT" ]
1
2019-05-16T19:41:56.000Z
2019-05-16T19:41:56.000Z
myexamples/phobos_pylab/kepcart.py
aquillen/phobos
9586be562c62b6ccc6a41d03a1284cffc17d0d44
[ "MIT" ]
2
2017-03-27T19:57:37.000Z
2018-06-19T20:02:28.000Z
myexamples/phobos_pylab/kepcart.py
aquillen/phobos
9586be562c62b6ccc6a41d03a1284cffc17d0d44
[ "MIT" ]
1
2020-03-02T21:18:54.000Z
2020-03-02T21:18:54.000Z
import numpy as np # solve Kepler's equation, e<1 case PREC_ecc_ano=1e-16 # precision def ecc_ano(e,l): du=1.0; u0 = l + e*np.sin(l) + 0.5*e*e*np.sin(2.0*l); # first guess #also see M+D equation 2.55 # supposed to be good to second order in e, from Brouwer+Clemence counter=0; wh...
28.834225
83
0.551929
7df21ac0a47b46a95cdf2cea2e403601e357df64
2,931
py
Python
Other/EcologyExample.py
lesyk/Evolife
8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a
[ "MIT" ]
null
null
null
Other/EcologyExample.py
lesyk/Evolife
8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a
[ "MIT" ]
null
null
null
Other/EcologyExample.py
lesyk/Evolife
8e3dd1aab84061f7ce082f3a4b1bac0b2e31bc4a
[ "MIT" ]
null
null
null
############################################################################## # EVOLIFE www.dessalles.fr/Evolife Jean-Louis Dessalles # # Telecom ParisTech 2014 www.dessalles.fr # ############################################################################## ...
29.606061
111
0.58103
845465fabf2b5d780bfb478e31259c28e1da3eab
807
py
Python
manage.py
mbranko/kartonpmv
cfc73e50c7382f118d4840a46eb600139ab13cbb
[ "MIT" ]
null
null
null
manage.py
mbranko/kartonpmv
cfc73e50c7382f118d4840a46eb600139ab13cbb
[ "MIT" ]
null
null
null
manage.py
mbranko/kartonpmv
cfc73e50c7382f118d4840a46eb600139ab13cbb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kartonpmv.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that th...
35.086957
77
0.643123
382a16bd77c8bad741a6c0208569263939d30d5b
1,311
py
Python
app/tests/__init__.py
josepmartorell/Troubleshoot-webScraping-Miniblog
d744bfdabf6969a9277f865a744853a715934c3c
[ "Apache-2.0" ]
null
null
null
app/tests/__init__.py
josepmartorell/Troubleshoot-webScraping-Miniblog
d744bfdabf6969a9277f865a744853a715934c3c
[ "Apache-2.0" ]
null
null
null
app/tests/__init__.py
josepmartorell/Troubleshoot-webScraping-Miniblog
d744bfdabf6969a9277f865a744853a715934c3c
[ "Apache-2.0" ]
null
null
null
import unittest from app import create_app, db from app.auth.models import User class BaseTestClass(unittest.TestCase): def setUp(self): """Define test variables and initialize app.""" self.app = create_app(settings_module="config.testing") self.client = self.app.test_client() #...
30.488372
78
0.610221
7ad6c2be65b1aa3ace8d74b739d7b6e6b275604a
5,791
py
Python
libbeat/scripts/generate_index_pattern.py
exekias/beats
d4a6f71c48ba7f7720f0b8ce8325eb7772eb98b6
[ "Apache-2.0" ]
10
2017-10-21T12:06:54.000Z
2021-11-30T06:19:29.000Z
libbeat/scripts/generate_index_pattern.py
exekias/beats
d4a6f71c48ba7f7720f0b8ce8325eb7772eb98b6
[ "Apache-2.0" ]
null
null
null
libbeat/scripts/generate_index_pattern.py
exekias/beats
d4a6f71c48ba7f7720f0b8ce8325eb7772eb98b6
[ "Apache-2.0" ]
6
2017-12-22T06:43:42.000Z
2019-10-10T02:22:31.000Z
#!/usr/bin/env python """ This script generates the index-pattern for Kibana from the fields.yml file. """ import yaml import argparse import string import re import json import os import errno import sys unique_fields = [] def fields_to_json(fields, section, path, output): # Need in case there are no fields ...
28.24878
108
0.574858
ef21bb564bd152a9d54d6ae15a36bb04837a54d0
397
py
Python
content_management/migrations/0005_content_reviewed_on.py
SolarSPELL-Main/solarspell-dlms
ae2efed0dd0e9d45d4e6a1c2b05742dbd204d0b7
[ "MIT" ]
null
null
null
content_management/migrations/0005_content_reviewed_on.py
SolarSPELL-Main/solarspell-dlms
ae2efed0dd0e9d45d4e6a1c2b05742dbd204d0b7
[ "MIT" ]
16
2021-05-03T18:03:48.000Z
2022-03-12T00:57:38.000Z
content_management/migrations/0005_content_reviewed_on.py
mattjurenka/solarspell-dlms
0a15c06d928970d87cbba39a92f74a2e1c7011b1
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-07-17 15:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('content_management', '0004_auto_20200717_1336'), ] operations = [ migrations.AddField( model_name='content', name='r...
20.894737
58
0.609572
ad373ace3e2ac0cf30657ce09e8308da6c4911c4
2,378
py
Python
tests/test_headers.py
Lagicrus/sanic
343090704641c2380d98bdb1e068574e466cc186
[ "MIT" ]
2
2021-02-20T12:22:10.000Z
2021-02-20T12:26:15.000Z
tests/test_headers.py
Lagicrus/sanic
343090704641c2380d98bdb1e068574e466cc186
[ "MIT" ]
11
2021-07-10T17:14:47.000Z
2022-02-24T07:32:36.000Z
tests/test_headers.py
Lagicrus/sanic
343090704641c2380d98bdb1e068574e466cc186
[ "MIT" ]
null
null
null
import pytest from sanic import headers @pytest.mark.parametrize( "input, expected", [ ("text/plain", ("text/plain", {})), ("text/vnd.just.made.this.up ; ", ("text/vnd.just.made.this.up", {})), ( "text/plain;charset=us-ascii", ("text/plain", {"charset": "us-asc...
37.15625
85
0.464256
005db6b572d5dba9c6b7bc52dc6969898b1a92d3
716
py
Python
Statistics/Variance.py
curiousbasil/statscalc1-sql
fde9c4ba565de79710d9f396233a58f50b94f52e
[ "MIT" ]
1
2020-06-28T18:59:48.000Z
2020-06-28T18:59:48.000Z
Statistics/Variance.py
ssempax1/statscalc1
6ad529d57af657aa40b223bb332ffb1b915bfba2
[ "MIT" ]
1
2019-11-17T02:41:15.000Z
2019-11-17T02:41:15.000Z
Statistics/Variance.py
ssempax1/statscalc1
6ad529d57af657aa40b223bb332ffb1b915bfba2
[ "MIT" ]
2
2019-11-17T01:35:37.000Z
2020-06-28T18:59:50.000Z
from Calculator.Squared import squared from Calculator.Division import division from Statistics.Mean import mean from Calculator.Subtraction import subtraction def variance(val1, val2, val3, val4, val5, val6, val7, val8, val9, val10): try: variance_values = [val1, val2, val3, val4, val5, val6, val7, val8,...
39.777778
87
0.687151
442c8b843be5b9fe9490f142d7992347dc1b8367
662
py
Python
src/sympc/session/session_utils.py
Boluwatifeh/SyMPC
19b86b8d47f2d69a9c9c5f431bf1ca89951346f0
[ "MIT" ]
null
null
null
src/sympc/session/session_utils.py
Boluwatifeh/SyMPC
19b86b8d47f2d69a9c9c5f431bf1ca89951346f0
[ "MIT" ]
null
null
null
src/sympc/session/session_utils.py
Boluwatifeh/SyMPC
19b86b8d47f2d69a9c9c5f431bf1ca89951346f0
[ "MIT" ]
null
null
null
"""Function for accessing the current session.""" # stdlib from typing import Optional import sympc.session from .session import Session def get_session(uuid_str: str) -> Optional[Session]: """Gets the current session for a party as defined in the global space. Args: uuid_str (str): used to retriev...
22.066667
75
0.688822
1ea930d6844f07a36c3529ef573882fb710d195f
2,361
py
Python
alembic/env.py
python-discord/code-jam-management
b6b91357f0afa69f875336917a72ea771eb13556
[ "MIT" ]
6
2021-06-07T17:29:23.000Z
2022-02-25T23:36:16.000Z
alembic/env.py
python-discord/code-jam-management
b6b91357f0afa69f875336917a72ea771eb13556
[ "MIT" ]
4
2021-09-04T13:53:40.000Z
2021-12-30T23:13:59.000Z
alembic/env.py
python-discord/code-jam-management
b6b91357f0afa69f875336917a72ea771eb13556
[ "MIT" ]
2
2021-06-07T17:18:15.000Z
2021-06-14T19:32:33.000Z
import asyncio from logging.config import fileConfig from alembic import context from sqlalchemy import engine_from_config, pool from sqlalchemy.ext.asyncio import AsyncEngine from sqlalchemy.ext.asyncio.engine import AsyncConnection # This is a required step by Alembic to properly generate migrations from api import...
27.453488
68
0.715798
d1b1cce29b518a90072f3546b058e03fa2b203df
877
py
Python
src/learning_to_simulate/plot_loss_curves.py
sassafras13/gnn-dna-sim
458ad35aa64771955f3ef78f1351ca37bcb529ac
[ "MIT" ]
null
null
null
src/learning_to_simulate/plot_loss_curves.py
sassafras13/gnn-dna-sim
458ad35aa64771955f3ef78f1351ca37bcb529ac
[ "MIT" ]
null
null
null
src/learning_to_simulate/plot_loss_curves.py
sassafras13/gnn-dna-sim
458ad35aa64771955f3ef78f1351ca37bcb529ac
[ "MIT" ]
null
null
null
# plot loss curves for training and validation # import data using pandas import numpy as np import pandas as pd import matplotlib.pyplot as plt font = {'family' : 'normal', 'weight' : 'bold', 'size' : 18} plt.rc('font', **font) dirname = "/home/emma/gnn_dna/rollouts/llama-c3/" trainfilename = "tr...
24.361111
75
0.694413
2e285c6251eef51a65338336943b1b11b5c35fee
1,485
py
Python
upwork/routers/organization/companies.py
upwork/python-upwork
63aa5ebfd91cbf6f019437358f3e89d0e3bc29aa
[ "Apache-2.0" ]
150
2015-05-28T19:09:33.000Z
2022-03-22T16:56:33.000Z
upwork/routers/organization/companies.py
Top-coder-1/python-upwork
0671e1e90cc2d770be4f96ae4bfb21bc111dd122
[ "Apache-2.0" ]
38
2015-05-28T18:45:55.000Z
2021-06-14T09:34:27.000Z
upwork/routers/organization/companies.py
upwork/python-upwork-oauth2
5a10558a5c4479e7aea462fec0193db40ecde9e2
[ "Apache-2.0" ]
61
2015-09-01T06:39:25.000Z
2021-11-09T12:29:57.000Z
# Licensed under the Upwork's API Terms of Use; # you may not use this file except in compliance with the Terms. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or i...
29.7
86
0.677441
fe7ebe4f4fb51c3a7209fde8e1a0d3f7badf07be
7,727
py
Python
venv/Lib/site-packages/pandas/tests/extension/decimal/array.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
28,899
2016-10-13T03:32:12.000Z
2022-03-31T21:39:05.000Z
venv/Lib/site-packages/pandas/tests/extension/decimal/array.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
31,004
2016-10-12T23:22:27.000Z
2022-03-31T23:17:38.000Z
venv/Lib/site-packages/pandas/tests/extension/decimal/array.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
15,149
2016-10-13T03:21:31.000Z
2022-03-31T18:46:47.000Z
from __future__ import annotations import decimal import numbers import random import sys import numpy as np from pandas._typing import type_t from pandas.core.dtypes.base import ExtensionDtype from pandas.core.dtypes.common import ( is_dtype_equal, is_float, pandas_dtype, ) import pandas as pd from pa...
29.492366
85
0.61861
cd32f1dc0d26031efe5c4e916882e1f0ee078cf3
15,842
py
Python
src/luna1/util_terra.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
140
2021-12-11T23:37:46.000Z
2022-03-29T23:04:36.000Z
src/luna1/util_terra.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
80
2021-12-17T15:13:47.000Z
2022-03-31T13:33:53.000Z
src/luna1/util_terra.py
hodgerpodger/staketaxcsv
d341fc8e54225aafd5401e89daaf9b71cdb1e1a4
[ "MIT" ]
52
2021-12-12T00:37:17.000Z
2022-03-29T23:25:09.000Z
""" Parsing and utility functions for fcd tx info """ import base64 import json import logging from settings_csv import TERRA_LCD_NODE from luna1.api_lcd import LcdAPI from luna1.config_luna1 import localconfig import common.ibc.api_lcd from luna1.constants import CUR_UST def _contracts(elem): out = [] coun...
32.935551
113
0.615516
c9c6ddd4f518de416d37e72a606e92935fe9d062
2,393
py
Python
eegnb/experiments/visual_p300/p300_stripes.py
jnaulty/eeg-notebooks-1
525d27ba9f001e07ffec7e93984b6c65da181625
[ "BSD-3-Clause" ]
13
2018-11-08T13:51:29.000Z
2021-12-09T23:37:28.000Z
eegnb/experiments/visual_p300/p300_stripes.py
jnaulty/eeg-notebooks-1
525d27ba9f001e07ffec7e93984b6c65da181625
[ "BSD-3-Clause" ]
22
2019-01-21T19:30:22.000Z
2019-03-17T03:35:08.000Z
eegnb/experiments/visual_p300/p300_stripes.py
jnaulty/eeg-notebooks-1
525d27ba9f001e07ffec7e93984b6c65da181625
[ "BSD-3-Clause" ]
6
2019-01-24T16:14:18.000Z
2021-04-06T19:16:06.000Z
import numpy as np from pandas import DataFrame from psychopy import visual, core, event from time import time, strftime, gmtime from optparse import OptionParser from pylsl import StreamInfo, StreamOutlet def present(duration,subject,run): # create info = StreamInfo('Markers', 'Markers', 1, 0, 'int32', 'myu...
27.825581
75
0.574175