hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79718a0ada9ddca9eb2a33cc8b849ce2e887466f
1,506
py
Python
whyqd/action/delete_rows.py
whythawk/whyqd
8ee41768d6788318458d41831200594b61777ccc
[ "BSD-3-Clause" ]
17
2020-02-21T14:41:24.000Z
2022-01-31T20:25:53.000Z
whyqd/action/delete_rows.py
whythawk/whyqd
8ee41768d6788318458d41831200594b61777ccc
[ "BSD-3-Clause" ]
null
null
null
whyqd/action/delete_rows.py
whythawk/whyqd
8ee41768d6788318458d41831200594b61777ccc
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from typing import Optional, List import pandas as pd from whyqd.base import BaseMorphAction class Action(BaseMorphAction): """Delete rows and provided in a list. They don't have to be contiguous. Script:: "DELETE_ROWS < [int, int, int, etc.]" Where `int` are...
30.12
114
0.62417
79718a6feb2053870b297f1f41af6643000cbfe2
1,043
py
Python
setup.py
ismailuddin/tfserving_manager
cbddbe050567ad6d89c61cfd0d25f7dcc48419ed
[ "MIT" ]
null
null
null
setup.py
ismailuddin/tfserving_manager
cbddbe050567ad6d89c61cfd0d25f7dcc48419ed
[ "MIT" ]
null
null
null
setup.py
ismailuddin/tfserving_manager
cbddbe050567ad6d89c61cfd0d25f7dcc48419ed
[ "MIT" ]
null
null
null
import io import os import re from setuptools import find_packages from setuptools import setup this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f: long_description = f.read() with open("requirements.txt", "r") as file: requ...
30.676471
76
0.686481
79718c3adaa156fd5c614e639eb0233084b76936
6,486
py
Python
tests/integration-tests/cfn_stacks_factory.py
siddharthsalot/aws-parallelcluster
227f0518697901922a9dffe9eca7a4d6bebafcc8
[ "Apache-2.0" ]
null
null
null
tests/integration-tests/cfn_stacks_factory.py
siddharthsalot/aws-parallelcluster
227f0518697901922a9dffe9eca7a4d6bebafcc8
[ "Apache-2.0" ]
null
null
null
tests/integration-tests/cfn_stacks_factory.py
siddharthsalot/aws-parallelcluster
227f0518697901922a9dffe9eca7a4d6bebafcc8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance # with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
38.838323
119
0.626735
79718c79f9bdd557ef75a99ffa438f27ccfcc6c6
1,190
py
Python
pandas/core/datetools.py
betoesquivel/PyData29-DataAnalyticsWithAWSLambda
318d1f595e4079544159a0f4802277dc5b25cb47
[ "MIT" ]
4
2016-12-06T20:22:28.000Z
2018-05-04T09:51:45.000Z
pandas/core/datetools.py
betoesquivel/PyData29-DataAnalyticsWithAWSLambda
318d1f595e4079544159a0f4802277dc5b25cb47
[ "MIT" ]
11
2020-06-05T17:24:17.000Z
2022-03-11T23:15:26.000Z
pandas/core/datetools.py
betoesquivel/PyData29-DataAnalyticsWithAWSLambda
318d1f595e4079544159a0f4802277dc5b25cb47
[ "MIT" ]
3
2017-02-25T15:26:47.000Z
2017-12-20T06:27:07.000Z
"""A collection of random tools for dealing with dates in Python""" # flake8: noqa from pandas.tseries.tools import * from pandas.tseries.offsets import * from pandas.tseries.frequencies import * day = DateOffset() bday = BDay() businessDay = bday try: cday = CDay() customBusinessDay = CustomBusinessDay() ...
25.869565
67
0.767227
79718dad63e33bbd88036766f0dad12593a177f4
219
py
Python
src/watts.py
guillempla/FaseTransition
52295b83ed2294f8218f89445a8b7d4e2677d519
[ "MIT" ]
null
null
null
src/watts.py
guillempla/FaseTransition
52295b83ed2294f8218f89445a8b7d4e2677d519
[ "MIT" ]
null
null
null
src/watts.py
guillempla/FaseTransition
52295b83ed2294f8218f89445a8b7d4e2677d519
[ "MIT" ]
1
2019-11-05T22:37:27.000Z
2019-11-05T22:37:27.000Z
import networkx as nx import random import time N = 10 K = 3 P = 0.5 seed = random.randint(1,101) G = nx.watts_strogatz_graph(N, K, P, seed) print (N) for i in G.edges: print (i[0],end =' ') print (i[1]) print(seed)
14.6
42
0.652968
79718e3836c8596ff0681924bda5a1c4f21dbaaa
643
py
Python
adv/louise.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
adv/louise.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
adv/louise.py
mattkw/dl
45bfc28ad9ff827045a3734730deb893a2436c09
[ "Apache-2.0" ]
null
null
null
import adv_test import adv def module(): return Louise class Louise(adv.Adv): a1 = ('od',0.13) def init(this): this.dmg_make("o_s1_poison",2.91) this.dmg_make("o_s1_poison",2.91) this.dmg_make("o_s1_poison",2.91) this.dmg_make("o_s2hitpoison",(4.035-2.69)*3) this.d...
21.433333
53
0.562986
79718e97434a17273457db039623307e72052d76
981
py
Python
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/sql_trigger_get_results_paged.py
limingu/azure-cli-extensions
1bc29f089f4da42ab8905e440f2f46d6b5b0aa97
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/sql_trigger_get_results_paged.py
limingu/azure-cli-extensions
1bc29f089f4da42ab8905e440f2f46d6b5b0aa97
[ "MIT" ]
1
2020-06-12T01:39:40.000Z
2020-06-12T01:39:40.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/models/sql_trigger_get_results_paged.py
anpaz-msft/azure-cli-extensions
847fd487fe61e83f2a4163a9393edc9555267bc2
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.035714
138
0.594292
79718f06858bf9ec52b67b40b7d6aef6998913fe
931
py
Python
setup.py
anchitarnav/flask-login-gcp-datastore
894263f70ea847b279b8432945eba43d7c733f23
[ "Apache-2.0" ]
null
null
null
setup.py
anchitarnav/flask-login-gcp-datastore
894263f70ea847b279b8432945eba43d7c733f23
[ "Apache-2.0" ]
null
null
null
setup.py
anchitarnav/flask-login-gcp-datastore
894263f70ea847b279b8432945eba43d7c733f23
[ "Apache-2.0" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="flask-login-gcp-datastore", # Replace with your own username version="0.0.2", author="Anchit Arnav", author_email="arnavanchit@gmail.com", description="Implement flask-lo...
34.481481
70
0.692803
79718fd054f50126f8dbabbc3165343ae7c716c3
4,286
py
Python
tests/shows/test_add_bps.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
tests/shows/test_add_bps.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
93
2017-09-01T22:24:10.000Z
2021-12-22T14:07:06.000Z
tests/shows/test_add_bps.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
"""BPS = Bands, People, Songs. Each is mapped via ForeignKey to a given Show. When a new Show is added or updated, these functions get called.""" import json import unittest from app import db from apps.people.models import People from apps.shows.add_bps import add_bands, add_people, add_setlist from apps.sh...
35.131148
94
0.594727
79719012c47f99918da44c08bd2212738827d5f2
22,189
py
Python
tensorflow/python/keras/engine/training_dataset_test.py
huonw/tensorflow
85f47254af7cc230a4a031998dffe770b7edbb9d
[ "Apache-2.0" ]
1
2020-10-01T16:52:51.000Z
2020-10-01T16:52:51.000Z
tensorflow/python/keras/engine/training_dataset_test.py
huonw/tensorflow
85f47254af7cc230a4a031998dffe770b7edbb9d
[ "Apache-2.0" ]
1
2022-02-10T01:08:48.000Z
2022-02-10T01:08:48.000Z
tensorflow/python/keras/engine/training_dataset_test.py
huonw/tensorflow
85f47254af7cc230a4a031998dffe770b7edbb9d
[ "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...
38.455806
80
0.689396
79719247ca0e74088429ea542111ddf8fb9b563f
2,558
py
Python
TransformPlugin.py
movingpictures83/Transform
229e5ebc9015ee34f62bf68a2cc15b2b1756784f
[ "MIT" ]
null
null
null
TransformPlugin.py
movingpictures83/Transform
229e5ebc9015ee34f62bf68a2cc15b2b1756784f
[ "MIT" ]
null
null
null
TransformPlugin.py
movingpictures83/Transform
229e5ebc9015ee34f62bf68a2cc15b2b1756784f
[ "MIT" ]
null
null
null
import sys import numpy import math class TransformPlugin: def input(self, filename): self.myfile = filename def run(self): filestuff = open(self.myfile, 'r') self.firstline = filestuff.readline() lines = [] for line in filestuff: lines.append(line) self.m = len(line...
31.975
175
0.530102
797192cfbe564c4f1c6670c444a81f52cd51ce2a
6,323
py
Python
capreolus/collection/__init__.py
seanmacavaney/capreolus
8695a471f9d8e911ad12778a82327e3973f92af0
[ "Apache-2.0" ]
null
null
null
capreolus/collection/__init__.py
seanmacavaney/capreolus
8695a471f9d8e911ad12778a82327e3973f92af0
[ "Apache-2.0" ]
null
null
null
capreolus/collection/__init__.py
seanmacavaney/capreolus
8695a471f9d8e911ad12778a82327e3973f92af0
[ "Apache-2.0" ]
null
null
null
import json import os import shutil import ir_datasets from capreolus import ModuleBase, constants class Collection(ModuleBase): """Base class for Collection modules. The purpose of a Collection is to describe a document collection's location and its format. Determining the document collection's location o...
36.549133
214
0.662028
79719320d48c561495021b49023b7e3b918806e1
9,251
py
Python
jiant/tasks/retrieval.py
go-inoue/jiant
5ba72f7610cff8553ee5d4cf5b8868bb47a87fc4
[ "MIT" ]
1,108
2019-04-22T09:19:19.000Z
2022-03-31T13:23:51.000Z
jiant/tasks/retrieval.py
go-inoue/jiant
5ba72f7610cff8553ee5d4cf5b8868bb47a87fc4
[ "MIT" ]
737
2019-04-22T14:30:36.000Z
2022-03-31T22:22:17.000Z
jiant/tasks/retrieval.py
go-inoue/jiant
5ba72f7610cff8553ee5d4cf5b8868bb47a87fc4
[ "MIT" ]
273
2019-04-23T01:42:11.000Z
2022-03-25T15:59:38.000Z
import os from typing import Optional from jiant.tasks.lib.abductive_nli import AbductiveNliTask from jiant.tasks.lib.acceptability_judgement.definiteness import AcceptabilityDefinitenessTask from jiant.tasks.lib.acceptability_judgement.coord import AcceptabilityCoordTask from jiant.tasks.lib.acceptability_judgement.e...
39.703863
98
0.774619
79719362a72d7328ecfbe726e134cf903ca57ee9
1,403
py
Python
nomaj/misc/expires.py
monomonedula/nomaj
d81e8919966bd2fc649594be647d8d98f0ff6a8f
[ "MIT" ]
null
null
null
nomaj/misc/expires.py
monomonedula/nomaj
d81e8919966bd2fc649594be647d8d98f0ff6a8f
[ "MIT" ]
null
null
null
nomaj/misc/expires.py
monomonedula/nomaj
d81e8919966bd2fc649594be647d8d98f0ff6a8f
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from datetime import datetime, timedelta from typing import cast import babel from babel.dates import format_datetime class Expires(ABC): """ Expiration date in GMT """ @abstractmethod async def print(self) -> str: """ String representation of ...
22.629032
83
0.619387
797193a862b595daa8d3cf29fcb59524cdeff300
407
py
Python
covid19analysis/asgi.py
avcrowdhackathon/Inertia
dbf1e985454b0dba0dc863bcef2b7b55f23cbf5d
[ "BSD-3-Clause" ]
null
null
null
covid19analysis/asgi.py
avcrowdhackathon/Inertia
dbf1e985454b0dba0dc863bcef2b7b55f23cbf5d
[ "BSD-3-Clause" ]
4
2021-03-19T01:33:41.000Z
2021-06-04T22:48:29.000Z
covid19analysis/asgi.py
avcrowdhackathon/Inertia
dbf1e985454b0dba0dc863bcef2b7b55f23cbf5d
[ "BSD-3-Clause" ]
null
null
null
""" ASGI config for covid19analysis project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJAN...
23.941176
78
0.793612
797193e752871e8258d60bbd951102a00aaf4c76
751
py
Python
setup.py
adavoudi/download_youtube
b0f4a43f6f2323c68f59072b72d4d18d2ae53673
[ "MIT" ]
null
null
null
setup.py
adavoudi/download_youtube
b0f4a43f6f2323c68f59072b72d4d18d2ae53673
[ "MIT" ]
null
null
null
setup.py
adavoudi/download_youtube
b0f4a43f6f2323c68f59072b72d4d18d2ae53673
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup setup( name='download_youtube', version='1.0.0', description='Download a list of videos from youtube', long_description=""" Download a list of videos from youtube. (Powered by PyTube [https://github.com/nficano/pytube]) """, author='Alire...
26.821429
99
0.651132
7971945d84765670f574fbbf98a909a56a5625ff
633
py
Python
gaussian_mf.py
taokz/FuzzyFL
337a4a52e006db2dfb10b53d2c141a812c9adb21
[ "MIT" ]
1
2022-01-25T18:46:42.000Z
2022-01-25T18:46:42.000Z
gaussian_mf.py
taokz/FuzzyFL
337a4a52e006db2dfb10b53d2c141a812c9adb21
[ "MIT" ]
null
null
null
gaussian_mf.py
taokz/FuzzyFL
337a4a52e006db2dfb10b53d2c141a812c9adb21
[ "MIT" ]
1
2021-11-28T23:22:15.000Z
2021-11-28T23:22:15.000Z
""" Implementation of gaussian membership function Author: Kai Zhang (www.kaizhang.us) https://github.com/taokz """ import numpy as np def gaussmf(elements, mean, sigma): """ input: elements: (array) elements of the set mean: (real) mean of the set sigma (real) standart deviation of the set, or (array...
22.607143
81
0.682464
797194d816dd4b01e42ba596a234529e261ecb40
355
py
Python
libs/arg_parse.py
Mengjianhua-c/grpctester
5b99ea843a9ed14e5877e592e3b0e3a79114e156
[ "MIT" ]
1
2021-12-02T15:37:58.000Z
2021-12-02T15:37:58.000Z
libs/arg_parse.py
Mengjianhua-c/grpctester
5b99ea843a9ed14e5877e592e3b0e3a79114e156
[ "MIT" ]
null
null
null
libs/arg_parse.py
Mengjianhua-c/grpctester
5b99ea843a9ed14e5877e592e3b0e3a79114e156
[ "MIT" ]
null
null
null
import argparse # 解析命令行参数 def arg_proto_filename(): parser = argparse.ArgumentParser(description="proto file name") parser.add_argument('--file', '-f', type=str, help='proto file name') parse = parser.parse_args() module_name = parse.file if module_name: return module_name else: ...
25.357143
73
0.68169
797194d9661b17c505c71e0271210f166098dd7e
42
py
Python
darbiadev_onsite/__init__.py
darbiadev/darbiadev-onsite
17a47a6cdfddebf506281cf91c5e296dbd2022af
[ "MIT" ]
null
null
null
darbiadev_onsite/__init__.py
darbiadev/darbiadev-onsite
17a47a6cdfddebf506281cf91c5e296dbd2022af
[ "MIT" ]
null
null
null
darbiadev_onsite/__init__.py
darbiadev/darbiadev-onsite
17a47a6cdfddebf506281cf91c5e296dbd2022af
[ "MIT" ]
null
null
null
#!/usr/bin/env python from .lib import *
10.5
21
0.666667
797195270b4b40b624212a8d9ef0dbb19d49cbb1
297
py
Python
tests/test_console.py
jonh-at-demant/new-hypermodern
591cfea76c3f2792562e35db0442ad9ec1b67190
[ "MIT" ]
null
null
null
tests/test_console.py
jonh-at-demant/new-hypermodern
591cfea76c3f2792562e35db0442ad9ec1b67190
[ "MIT" ]
null
null
null
tests/test_console.py
jonh-at-demant/new-hypermodern
591cfea76c3f2792562e35db0442ad9ec1b67190
[ "MIT" ]
null
null
null
import click.testing import pytest from new_hypermodern import console @pytest.fixture def runner(): return click.testing.CliRunner() def test_main_succeeds(runner): """Test whether console main exits with 0""" result = runner.invoke(console.main) assert result.exit_code == 0
19.8
48
0.744108
797195334a89ffa130a43cdeec69cce2097959d0
63,914
py
Python
modules/core/aaa/permissions.py
nursix/gims
6401aa82726bf79986c266a4f7a98a5de83e6c13
[ "MIT" ]
null
null
null
modules/core/aaa/permissions.py
nursix/gims
6401aa82726bf79986c266a4f7a98a5de83e6c13
[ "MIT" ]
null
null
null
modules/core/aaa/permissions.py
nursix/gims
6401aa82726bf79986c266a4f7a98a5de83e6c13
[ "MIT" ]
null
null
null
""" Permission Handling Copyright: (c) 2010-2021 Sahana Software Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitati...
34.906608
95
0.46295
79719550b538279436ae8666d843e46a81ea9243
348
py
Python
gym_toy_text_ext/envs/random_frozen_lake.py
rodmsmendes/gym-toy-text-ext
c2d07e89b2c1f2e499732d927e330f386517caf4
[ "MIT" ]
1
2019-06-18T09:18:24.000Z
2019-06-18T09:18:24.000Z
gym_toy_text_ext/envs/random_frozen_lake.py
rodmsmendes/toy-text-ext
c2d07e89b2c1f2e499732d927e330f386517caf4
[ "MIT" ]
2
2019-06-19T04:17:18.000Z
2019-06-19T13:43:39.000Z
gym_toy_text_ext/envs/random_frozen_lake.py
rodmsmendes/gym-toy-text-ext
c2d07e89b2c1f2e499732d927e330f386517caf4
[ "MIT" ]
null
null
null
from gym.envs.toy_text.frozen_lake import generate_random_map from gym.envs.toy_text.frozen_lake import FrozenLakeEnv class RandomFrozenLakeEnv(FrozenLakeEnv): def __init__(self, size=8, p=0.8, is_slippery=True): desc = generate_random_map(size, p) super(RandomFrozenLakeEnv, self).__init__(desc=des...
43.5
85
0.784483
7971965dcd0e6e142d39b8a728aa17da7b70c079
774
py
Python
gpytorch/utils/transforms.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
2
2019-04-19T00:35:49.000Z
2019-04-19T02:51:49.000Z
gpytorch/utils/transforms.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
null
null
null
gpytorch/utils/transforms.py
beyucel/gpytorch
a5394937495756945b831d83035349579d8fac31
[ "MIT" ]
1
2019-04-19T00:42:35.000Z
2019-04-19T00:42:35.000Z
#!/usr/bin/env python3 import torch def inv_softplus(x): return torch.log(torch.exp(x) - 1) def inv_sigmoid(x): return torch.log(x / (1 - x)) def _get_inv_param_transform(param_transform, inv_param_transform=None): reg_inv_tf = TRANSFORM_REGISTRY.get(param_transform, None) if reg_inv_tf is None: ...
25.8
94
0.72739
7971969dada14e580e45cb525f419bdeb7d73158
41
py
Python
OpenCast/app/service/__init__.py
Tastyep/Pi-OpenCast
1ed07130c26e6dd70184446af3c9143094d0c9a0
[ "MIT" ]
31
2019-10-05T14:23:10.000Z
2022-02-27T19:38:55.000Z
OpenCast/app/service/__init__.py
Tastyep/RaspberryCast
8ae8cf986b373b04c43d248ee72c77b1a29daa43
[ "MIT" ]
199
2020-08-30T16:33:03.000Z
2022-03-28T04:10:06.000Z
OpenCast/app/service/__init__.py
Tastyep/RaspberryCast
8ae8cf986b373b04c43d248ee72c77b1a29daa43
[ "MIT" ]
1
2019-10-05T16:00:49.000Z
2019-10-05T16:00:49.000Z
""" Implementations command handlers """
20.5
40
0.731707
797196d194ba438f3f12c3fd6fed59c27707343f
1,010
py
Python
Exploits/Protostar/stack/stack7.py
SkyBulk/OSCE
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
80
2018-07-12T04:58:02.000Z
2022-03-18T11:31:49.000Z
Exploits/Protostar/stack/stack7.py
SunWare-shellcoder/OSCE-1
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
null
null
null
Exploits/Protostar/stack/stack7.py
SunWare-shellcoder/OSCE-1
1749add01cfbc80b11055ea2fdbfdfdee1409a3c
[ "BSD-3-Clause" ]
43
2018-07-12T19:48:15.000Z
2021-11-01T13:16:25.000Z
#!/usr/bin/env python # $Id: stack7.py,v 1.0 2018/06/17 20:07:50 dhn Exp $ from pwn import * level = 7 host = "10.168.142.133" user = "user" chal = "stack%i" % level password = "user" binary = "/opt/protostar/bin/%s" % chal shell = ssh(host=host, user=user, password=password) call_eax = p32(0x0804847f) shellcode...
24.634146
52
0.531683
797196dfd6c8a1f3927c88341198ebbdd47b0e62
4,998
py
Python
gradient_check/gradient_check.py
vbacher/PYRO-NN
e476024a44802b983c6f2ebd6f4444d9fe54120f
[ "Apache-2.0" ]
95
2019-03-12T10:07:59.000Z
2022-03-25T05:16:38.000Z
gradient_check/gradient_check.py
vbacher/PYRO-NN
e476024a44802b983c6f2ebd6f4444d9fe54120f
[ "Apache-2.0" ]
24
2019-05-03T01:57:55.000Z
2022-01-10T12:43:48.000Z
gradient_check/gradient_check.py
vbacher/PYRO-NN
e476024a44802b983c6f2ebd6f4444d9fe54120f
[ "Apache-2.0" ]
35
2019-05-02T03:27:00.000Z
2022-02-10T23:55:51.000Z
import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from pyronn.ct_reconstruction.layers.projection_2d import parallel_projection2d from pyronn.ct_reconstruction.layers.projection_2d import fan_projection2d from pyronn.ct_reconstruction.layers.projection_3d import cone_projection3d from pyronn.c...
36.75
184
0.757703
797196ee1e59001bc43f051e60fb874a2878bcbe
10,167
py
Python
python/JiraCard.py
ooqitech/JiraScrumCardsPrinter
ceb24c7a2f2c7b4490e031a3335a373bd219740a
[ "Apache-2.0" ]
7
2017-11-21T07:12:08.000Z
2020-06-19T03:12:52.000Z
python/JiraCard.py
ooqitech/JiraScrumCardsPrinter
ceb24c7a2f2c7b4490e031a3335a373bd219740a
[ "Apache-2.0" ]
1
2019-05-29T03:23:04.000Z
2019-05-29T08:10:55.000Z
python/JiraCard.py
NicholasQu/JiraScrumCardsPrinter
ceb24c7a2f2c7b4490e031a3335a373bd219740a
[ "Apache-2.0" ]
2
2017-12-14T02:52:28.000Z
2021-01-28T08:41:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os, sys from pyh import * page = PyH('JIRA看板') #默认只打印3列 PRT_COL = 2 NEW_LINE = '' BOARD_PREFIX = '' #看板前缀 try: BOARD_PREFIX = sys.argv[1] except Exception as e: BOARD_PREFIX = 'ETS-' PRJ_NAME = '' #过滤工程名字 try: PRJ_NAME = sys.argv[2] except Exception...
35.302083
139
0.568211
79719894f420b657d64fba0326b7ab3e737f20e5
111
py
Python
src/foo.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
src/foo.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
3
2019-12-26T05:13:55.000Z
2020-03-07T06:59:56.000Z
src/foo.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
variable = "sudeep" def callf(func): # print(dir(func)) # print(func.__globals__) return func()
12.333333
29
0.612613
7971997e6cc7ba9ecb264de3e6051e26ee4d723d
32,287
py
Python
src/joinseg.py
firstmover/NetDissect
4566865cabee5f9d1b969a6bf419094f00e5f3b2
[ "MIT" ]
null
null
null
src/joinseg.py
firstmover/NetDissect
4566865cabee5f9d1b969a6bf419094f00e5f3b2
[ "MIT" ]
null
null
null
src/joinseg.py
firstmover/NetDissect
4566865cabee5f9d1b969a6bf419094f00e5f3b2
[ "MIT" ]
null
null
null
''' This package provides a function and a base class: unify and AbstractSegmentation. unify(data_sets, directory, size=None, segmentation_size=None, crop=False, min_frequency=None, min_coverage=None, synonyms=None, test_limit=None, single_process=False, verbose=False): unify creates a stadnard fo...
39.278589
80
0.616223
79719a07fa35721752018d5aa4cb1ebe47a01617
52
py
Python
website/__init__.py
trianglefraternitymtu/slack-bridge
63f4cdc6cd13fbb96ca6734da98a5a2a4bc44709
[ "MIT" ]
2
2018-09-22T03:10:40.000Z
2019-04-24T14:57:30.000Z
website/__init__.py
trianglefraternitymtu/slack-bridge
63f4cdc6cd13fbb96ca6734da98a5a2a4bc44709
[ "MIT" ]
13
2017-05-08T12:27:46.000Z
2019-04-24T14:59:04.000Z
website/__init__.py
trianglefraternitymtu/slack-bridge
63f4cdc6cd13fbb96ca6734da98a5a2a4bc44709
[ "MIT" ]
null
null
null
# default_app_config = 'website.apps.WebsiteConfig'
26
51
0.807692
79719a7ce6ab31f27bfe622f70bced11fb88a806
7,710
py
Python
geometry/projector.py
bchao1/stereo-magnification
031376675430a459f4bde768eb5c652f1d22a0a4
[ "Apache-2.0" ]
null
null
null
geometry/projector.py
bchao1/stereo-magnification
031376675430a459f4bde768eb5c652f1d22a0a4
[ "Apache-2.0" ]
null
null
null
geometry/projector.py
bchao1/stereo-magnification
031376675430a459f4bde768eb5c652f1d22a0a4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
36.540284
79
0.696757
79719aa4997b1abd47668fe971caae53c26dcc9a
3,611
py
Python
examples/MAP_logistic_regression.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
208
2019-06-15T13:48:40.000Z
2021-10-16T05:03:46.000Z
examples/MAP_logistic_regression.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
18
2019-06-17T11:22:13.000Z
2019-09-26T10:45:59.000Z
examples/MAP_logistic_regression.py
ai-di/Brancher
01d51137b0e6fc81512994c21cc3a19287353767
[ "MIT" ]
32
2019-06-15T19:08:53.000Z
2020-02-16T13:39:41.000Z
import matplotlib.pyplot as plt import numpy as np from sklearn import datasets from brancher.variables import RootVariable, ProbabilisticModel from brancher.standard_variables import NormalVariable, CategoricalVariable, EmpiricalVariable, RandomIndices import brancher.functions as BF from brancher import inference f...
41.034091
164
0.712822
79719b753261478ff9b7a91123fb41b3df8c48c9
12,552
py
Python
tests/helpers/test_restore_state.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
tests/helpers/test_restore_state.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/helpers/test_restore_state.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""The tests for the Restore component.""" from datetime import datetime, timedelta from unittest.mock import patch from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP from homeassistant.core import CoreState, State from homeassistant.exceptions import HomeAssistantError from homeassist...
33.118734
111
0.679653
79719bcdbcceb96be20169fed81ae9f0bce84fda
1,624
py
Python
chapter/chapter9/image augmentation/advanced.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
1
2019-06-13T14:21:48.000Z
2019-06-13T14:21:48.000Z
chapter/chapter9/image augmentation/advanced.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
null
null
null
chapter/chapter9/image augmentation/advanced.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
null
null
null
from mxnet import gluon, init, nd from utils import util import mxnet as mx import sys def load_cifar10(is_train, augs, batch_size): return gluon.data.DataLoader( gluon.data.vision.CIFAR10(train=is_train).transform_first(augs), batch_size=batch_size, shuffle=is_train, num_workers=num_workers) de...
32.48
85
0.682882
79719bed1a7f1b14bb946fbd3051937f3d7a4cb5
1,058
py
Python
apps/networking/network-traffic/onprem/pipelines/custom_visualization.py
Karthik-Git-Sudo786/cisco-kubeflow-starter-pack
49013953c0cf0de508bb05f1837809d84e6ea2d2
[ "Apache-2.0" ]
60
2020-03-20T08:05:32.000Z
2021-12-17T14:07:53.000Z
apps/networking/network-traffic/onprem/pipelines/custom_visualization.py
Karthik-Git-Sudo786/cisco-kubeflow-starter-pack
49013953c0cf0de508bb05f1837809d84e6ea2d2
[ "Apache-2.0" ]
84
2020-03-18T07:06:20.000Z
2021-03-02T13:29:20.000Z
apps/networking/network-traffic/onprem/pipelines/custom_visualization.py
Karthik-Git-Sudo786/cisco-kubeflow-starter-pack
49013953c0cf0de508bb05f1837809d84e6ea2d2
[ "Apache-2.0" ]
90
2020-03-17T11:54:05.000Z
2021-06-03T09:18:58.000Z
from sklearn.metrics import precision_recall_curve import matplotlib.pyplot as plt rd = pd.read_excel('network_source.xlsx',index=None,sheet_name='Sheet1') precision, recall, _ = precision_recall_curve(np.array(rd['actual']),np.array(rd['pred'])) plt.step(recall, precision, color='g', alpha=0.2, where='post') plt.fill...
36.482759
90
0.70794
79719c1f79cc30fa5363975378fc57a9335f49cf
46,296
py
Python
wikitextprocessor/parserfns.py
spyysalo/wikitextprocessor
ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f
[ "MIT" ]
null
null
null
wikitextprocessor/parserfns.py
spyysalo/wikitextprocessor
ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f
[ "MIT" ]
null
null
null
wikitextprocessor/parserfns.py
spyysalo/wikitextprocessor
ea27de99a6cb87b1ae3d1b150a7abf16efa6ef3f
[ "MIT" ]
null
null
null
# Definitions for various parser functions supported in WikiText # # Copyright (c) 2020, 2021 Tatu Ylonen. See file LICENSE and https://ylonen.org import re import html import math import datetime import urllib.parse import dateparser from .wikihtml import ALLOWED_HTML_TAGS from .common import preprocess_text # Name...
31.906272
80
0.585666
79719cb6e4917c5ca64b8b5921cb307a20089efb
14,922
py
Python
AP3/basic_local_classifier.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
6
2016-08-15T17:57:45.000Z
2019-03-19T05:08:29.000Z
AP3/basic_local_classifier.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
10
2016-04-11T10:20:34.000Z
2016-08-09T21:47:48.000Z
AP3/basic_local_classifier.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
7
2016-06-21T04:08:58.000Z
2018-09-01T14:02:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """A basic classifier which uses only local features.""" import os.path from PIL import Image import scipy.misc import scipy.ndimage import logging import sys import time import numpy as np import json logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', ...
33.683973
78
0.556695
79719dfbff7018b0259d70c89d1e39f214fa56db
1,701
py
Python
src/mmw/apps/bigcz/clients/cuahsi/details.py
WikiWatershed/model-my-watershed
aaaace876aaf53a8ca3e536e9103b42501f3142a
[ "Apache-2.0" ]
45
2015-05-25T22:55:21.000Z
2022-02-27T14:51:52.000Z
src/mmw/apps/bigcz/clients/cuahsi/details.py
WikiWatershed/model-my-watershed
aaaace876aaf53a8ca3e536e9103b42501f3142a
[ "Apache-2.0" ]
3,213
2015-05-22T00:32:00.000Z
2022-03-31T15:05:08.000Z
src/mmw/apps/bigcz/clients/cuahsi/details.py
WikiWatershed/model-my-watershed
aaaace876aaf53a8ca3e536e9103b42501f3142a
[ "Apache-2.0" ]
37
2015-05-22T12:30:46.000Z
2021-09-10T02:13:44.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import division from datetime import date, timedelta from socket import timeout from rest_framework.exceptions import ValidationError from django.conf import settings from apps.bigcz.utils import Va...
26.169231
77
0.637272
7971a04f0e552d677a3dcd10e30bc63c3198186c
140
py
Python
instagram/tests.py
Patrick322/instagram
2dd51bd8ee13650c41fe142b69d1e2c558a916bf
[ "MIT" ]
null
null
null
instagram/tests.py
Patrick322/instagram
2dd51bd8ee13650c41fe142b69d1e2c558a916bf
[ "MIT" ]
4
2020-06-06T00:44:39.000Z
2021-09-08T01:45:57.000Z
instagram/tests.py
Patrick322/instagram
2dd51bd8ee13650c41fe142b69d1e2c558a916bf
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import post,Location,Comment,Like class postTestcase(TestCase): def setUP(self) self
23.333333
46
0.771429
7971a0a3db9d5dbbc73e0f3bd762846dc78de80c
4,762
py
Python
docs/conf.py
raalesir/sim
9bd994b1dedd05ca88ab9f25cbca3bc28cadc04b
[ "MIT" ]
null
null
null
docs/conf.py
raalesir/sim
9bd994b1dedd05ca88ab9f25cbca3bc28cadc04b
[ "MIT" ]
null
null
null
docs/conf.py
raalesir/sim
9bd994b1dedd05ca88ab9f25cbca3bc28cadc04b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # sim documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All con...
29.036585
77
0.681226
7971a0baca92cbaf38854e7277a2df57c29ed4e9
2,382
py
Python
src/kitcar_rosbag/scripts/edit.py
KITcar-Team/kitcar-rosbag
5fcbdcab16765862802e4c4cb69ed71deceea4f3
[ "MIT" ]
null
null
null
src/kitcar_rosbag/scripts/edit.py
KITcar-Team/kitcar-rosbag
5fcbdcab16765862802e4c4cb69ed71deceea4f3
[ "MIT" ]
null
null
null
src/kitcar_rosbag/scripts/edit.py
KITcar-Team/kitcar-rosbag
5fcbdcab16765862802e4c4cb69ed71deceea4f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tool to mask out parts of rosbags.""" import os from sys import argv import cv2 from cv_bridge import CvBridge from rosbag.bag import Bag # This script can open rosbag files, edit there camera topic by drawing rectangles # and save the new edited rosbag. The data gets read image by image. To ...
34.521739
91
0.599916
7971a0ede1f2f0d8f2c34c6ae7f64fd5562415e7
1,819
py
Python
ckanext/cnra_schema/cnra_schema_utils.py
OpenGov-OpenData/ckanext-cnra_schema
f3b1cdf9b8ea3f7f0de36f31b1c23e828119c40b
[ "MIT" ]
null
null
null
ckanext/cnra_schema/cnra_schema_utils.py
OpenGov-OpenData/ckanext-cnra_schema
f3b1cdf9b8ea3f7f0de36f31b1c23e828119c40b
[ "MIT" ]
5
2019-10-22T23:43:56.000Z
2020-12-22T22:19:08.000Z
ckanext/cnra_schema/cnra_schema_utils.py
OpenGov-OpenData/ckanext-cnra_schema
f3b1cdf9b8ea3f7f0de36f31b1c23e828119c40b
[ "MIT" ]
2
2019-05-08T01:10:30.000Z
2019-09-04T23:41:25.000Z
import json import logging from dateutil.parser import parse from six import text_type log = logging.getLogger(__name__) def delete_existing_extra_from_package_dict(key, package_dict): existing_extra = {} extras_list = package_dict.get('extras', []) for extra in extras_list: if extra['key'] == k...
27.984615
89
0.628367
7971a1ecf932f6205135e24f641434805783b3bd
596
py
Python
dapi/urls.py
kevinzeladacl/dapi
40069ce965076c3247cd8060bf2ff3bb61ee6bbc
[ "MIT" ]
3
2018-04-11T00:39:54.000Z
2019-09-03T00:17:49.000Z
dapi/urls.py
kevinzeladacl/dapi
40069ce965076c3247cd8060bf2ff3bb61ee6bbc
[ "MIT" ]
8
2019-11-14T06:45:16.000Z
2022-03-12T00:33:08.000Z
dapi/urls.py
kevinzeladacl/dapi
40069ce965076c3247cd8060bf2ff3bb61ee6bbc
[ "MIT" ]
1
2018-04-11T00:25:07.000Z
2018-04-11T00:25:07.000Z
from django.contrib import admin from django.urls import path,include from django.conf.urls.static import static from dapi.settings import local from django.conf.urls.static import static from dapi.settings import base from django.conf.urls.static import static urlpatterns = [ #custom dapi path('api/v1/', inclu...
31.368421
56
0.746644
7971a381f0d4fff5b69f4a2c03f76c78666c4af8
7,382
py
Python
custom/icds_reports/reports/clean_water.py
dankohn/commcare-hq
42c40ad5881485d5192aab3dea5696942ee40810
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/reports/clean_water.py
dankohn/commcare-hq
42c40ad5881485d5192aab3dea5696942ee40810
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/reports/clean_water.py
dankohn/commcare-hq
42c40ad5881485d5192aab3dea5696942ee40810
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict, defaultdict from datetime import datetime from dateutil.relativedelta import relativedelta from dateutil.rrule import MONTHLY, rrule from django.db.models.aggregates import Sum from django.utils.translation import ugettext as _ from custom.icds_reports.cache import icds_quickcache...
32.808889
110
0.573151
7971a54498ec5793ea41340e39045dedf19a8fdf
14,036
py
Python
public/tools/bindings/pylib/mojom/generate/generated/mojom_types_mojom.py
niftich/mojo
cb29e37b254b43f432d70d1bf7661e1f9ef31577
[ "BSD-3-Clause" ]
1
2021-03-29T04:24:25.000Z
2021-03-29T04:24:25.000Z
public/tools/bindings/pylib/mojom/generate/generated/mojom_types_mojom.py
niftich/mojo
cb29e37b254b43f432d70d1bf7661e1f9ef31577
[ "BSD-3-Clause" ]
null
null
null
public/tools/bindings/pylib/mojom/generate/generated/mojom_types_mojom.py
niftich/mojo
cb29e37b254b43f432d70d1bf7661e1f9ef31577
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mojo_bindings.descriptor as _descriptor import mojo_bindings.reflection as _reflection class SimpleType(object): __metaclass__ = _reflection.MojoEn...
41.898507
185
0.726845
7971a61642ae64ef846513239394f004604f5f93
4,412
py
Python
BackendDataProcessing/data-storage.py
YaokaiYang-assaultmaster/Stock-Trading-Analysis-System
279baeb9849cf2edf0935fe38723d9b35cc5d065
[ "Apache-2.0" ]
null
null
null
BackendDataProcessing/data-storage.py
YaokaiYang-assaultmaster/Stock-Trading-Analysis-System
279baeb9849cf2edf0935fe38723d9b35cc5d065
[ "Apache-2.0" ]
null
null
null
BackendDataProcessing/data-storage.py
YaokaiYang-assaultmaster/Stock-Trading-Analysis-System
279baeb9849cf2edf0935fe38723d9b35cc5d065
[ "Apache-2.0" ]
null
null
null
"""Summary - point to any kafka cluster and topic - point to any cassandra cluster + table - read data from given kafka topic - store processed data into cassandra table Attributes: cassandra_cluster (str): the list of contact points to try connecting for cluster discovery kafka_cluster (str): bootstrap_servers...
30.853147
114
0.69107
7971a6304bc7671fed4f583e13844e6a723577d3
4,735
py
Python
pytorch3d/renderer/mesh/rasterizer.py
michele-arrival/pytorch3d
f358b9b14dbc1414c588f308b35f55705d777873
[ "BSD-3-Clause" ]
2
2020-03-20T17:34:19.000Z
2020-04-23T18:53:46.000Z
pytorch3d/renderer/mesh/rasterizer.py
michele-arrival/pytorch3d
f358b9b14dbc1414c588f308b35f55705d777873
[ "BSD-3-Clause" ]
null
null
null
pytorch3d/renderer/mesh/rasterizer.py
michele-arrival/pytorch3d
f358b9b14dbc1414c588f308b35f55705d777873
[ "BSD-3-Clause" ]
1
2020-12-12T20:42:33.000Z
2020-12-12T20:42:33.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. from typing import NamedTuple, Optional import torch import torch.nn as nn from ..cameras import get_world_to_view_transform from .rasterize_meshes import rasterize_meshes # Class to store the outputs of mesh rasterizatio...
35.871212
80
0.654699
7971a7af475fb00dbfc8d2ddc2031be0a787030c
306
py
Python
src/mars_profiling/report/presentation/flavours/html/frequency_table_small.py
wjsi/mars-profiling
1accb00c90da67b46ad98ea1592fecc524625454
[ "MIT" ]
1
2021-01-21T09:11:58.000Z
2021-01-21T09:11:58.000Z
src/mars_profiling/report/presentation/flavours/html/frequency_table_small.py
wjsi/mars-profiling
1accb00c90da67b46ad98ea1592fecc524625454
[ "MIT" ]
null
null
null
src/mars_profiling/report/presentation/flavours/html/frequency_table_small.py
wjsi/mars-profiling
1accb00c90da67b46ad98ea1592fecc524625454
[ "MIT" ]
1
2020-12-30T08:32:29.000Z
2020-12-30T08:32:29.000Z
from mars_profiling.report.presentation.core import FrequencyTableSmall from mars_profiling.report.presentation.flavours.html import templates class HTMLFrequencyTableSmall(FrequencyTableSmall): def render(self): return templates.template("frequency_table_small.html").render(**self.content)
38.25
86
0.826797
7971a8deb07cbe8bd94bfb09ad7cece724474b45
2,049
py
Python
tests/ut/python/nn/test_image_gradients.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
55
2020-12-17T10:26:06.000Z
2022-03-28T07:18:26.000Z
tests/ut/python/nn/test_image_gradients.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
1
2020-12-29T06:46:38.000Z
2020-12-29T06:46:38.000Z
tests/ut/python/nn/test_image_gradients.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
14
2021-01-29T02:39:47.000Z
2022-03-23T05:00:26.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.52381
89
0.619815
7971aae10a5548fb14b7c459a2d218316beabef4
7,270
py
Python
tasks/rnn_xlit_runner.py
harisankarh/IndianNLP-Transliteration
0e0dd8139c75477346c985201b51315b3a4e4f48
[ "Apache-2.0" ]
31
2020-09-24T04:32:47.000Z
2022-02-24T06:12:39.000Z
tasks/rnn_xlit_runner.py
harisankarh/IndianNLP-Transliteration
0e0dd8139c75477346c985201b51315b3a4e4f48
[ "Apache-2.0" ]
4
2021-05-26T11:38:36.000Z
2022-01-27T12:28:21.000Z
tasks/rnn_xlit_runner.py
harisankarh/IndianNLP-Transliteration
0e0dd8139c75477346c985201b51315b3a4e4f48
[ "Apache-2.0" ]
8
2020-09-04T12:33:30.000Z
2022-01-12T05:43:54.000Z
''' RNN Seq2Seq (Encoder-Decoder) training setup ''' import torch from torch.utils.data import DataLoader import numpy as np import os import sys import json from tqdm import tqdm import utilities.running_utils as rutl from utilities.lang_data_utils import XlitData, GlyphStrawboss, merge_xlit_jsons from utilities.logg...
35.291262
113
0.583081
7971ab1c085476e0cf6d42a635e84d39d5477d21
12,008
py
Python
progs/timezonefinder-master/timezonefinder-master/timezonefinder/helpers.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
progs/timezonefinder-master/timezonefinder-master/timezonefinder/helpers.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
progs/timezonefinder-master/timezonefinder-master/timezonefinder/helpers.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from math import asin, atan2, ceil, cos, degrees, floor, radians, sin, sqrt from numpy import int64 from timezonefinder.global_settings import COORD2INT_FACTOR, INT2COORD_FACTOR, MAX_HAVERSINE_DISTANCE def inside_polygon(x, y, coordinates): """ Implementing the ray casting point in po...
40.982935
120
0.641322
7971ab2329c69e4d7624f3e1e2a28b1026ea8168
1,672
py
Python
cauldron/test/cli/commands/test_show.py
DanMayhew/cauldron
ac41481830fc1a363c145f4b58ce785aac054d10
[ "MIT" ]
null
null
null
cauldron/test/cli/commands/test_show.py
DanMayhew/cauldron
ac41481830fc1a363c145f4b58ce785aac054d10
[ "MIT" ]
null
null
null
cauldron/test/cli/commands/test_show.py
DanMayhew/cauldron
ac41481830fc1a363c145f4b58ce785aac054d10
[ "MIT" ]
null
null
null
from unittest.mock import patch import cauldron from cauldron import environ from cauldron.test import support from cauldron.test.support import scaffolds class TestShow(scaffolds.ResultsTest): """ """ def test_show_fail(self): """ should fail to show when no project is opened """ with patc...
30.962963
75
0.632177
7971abef57f19d66294b7b5d14132e4566fad487
8,728
py
Python
dpf/process/__init__.py
chaselgrove/dpf
fac71dd744fecb07b88f73a5dea10fd87fe006be
[ "BSD-2-Clause" ]
null
null
null
dpf/process/__init__.py
chaselgrove/dpf
fac71dd744fecb07b88f73a5dea10fd87fe006be
[ "BSD-2-Clause" ]
null
null
null
dpf/process/__init__.py
chaselgrove/dpf
fac71dd744fecb07b88f73a5dea10fd87fe006be
[ "BSD-2-Clause" ]
null
null
null
# See file COPYING distributed with dpf for copyright and license. import os import traceback import tempfile import shutil import wsgiref import sqlite3 import json import dpf db_ddl = """CREATE TABLE job (id TEXT NOT NULL PRIMARY KEY, process TEXT NOT NULL, ...
34.498024
79
0.517415
7971acfabfb0168a20ec9ad4916fa0eca7fa6c17
1,008
py
Python
tests/NormBase/t04a_evaluate_nu.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/NormBase/t04a_evaluate_nu.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/NormBase/t04a_evaluate_nu.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
from utils.load_config import load_config from utils.evaluate_model import evaluate_model def evaluate_nu(config): if isinstance(config['nu'], list): nus = config['nu'] else: nus = [config['nu']] for nu in nus: config['nu'] = nu print("[LOOP] nu=", nu) accuracy, i...
30.545455
117
0.691468
7971ae37d1ca15961c4fbad84000697173b5b8f3
23
py
Python
examples/__init__.py
JacobLondon/pyngine
3a87347dfd23f86708f27259126cddc43db3fa4b
[ "MIT" ]
null
null
null
examples/__init__.py
JacobLondon/pyngine
3a87347dfd23f86708f27259126cddc43db3fa4b
[ "MIT" ]
null
null
null
examples/__init__.py
JacobLondon/pyngine
3a87347dfd23f86708f27259126cddc43db3fa4b
[ "MIT" ]
null
null
null
from .graphics import *
23
23
0.782609
7971ae8cb78476b304a1defb3d926d0664ac52db
11,855
py
Python
resdk/tests/unit/test_collections.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_collections.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_collections.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
""" Unit tests for resdk/resources/collection.py file. """ # pylint: disable=missing-docstring, protected-access import unittest import six from mock import MagicMock, patch from resdk.resources.collection import BaseCollection, Collection from resdk.resources.descriptor import DescriptorSchema from resdk.resources....
39.516667
97
0.667566
7971b097fa192387ac54192f210947de8bd7be1f
598
py
Python
word_graph.py
Jental/find_answer
0f178e4b033b5c5e006c1f3779db1d9a3baddacf
[ "MIT" ]
null
null
null
word_graph.py
Jental/find_answer
0f178e4b033b5c5e006c1f3779db1d9a3baddacf
[ "MIT" ]
null
null
null
word_graph.py
Jental/find_answer
0f178e4b033b5c5e006c1f3779db1d9a3baddacf
[ "MIT" ]
null
null
null
#!/usr/bin/python import pymorphy2 import csv morph = pymorphy2.MorphAnalyzer() normalForms = {} with open("unigrams.cyr.lc") as f: reader = csv.reader(f, delimiter='\t') for row in reader: parsed = morph.parse(row[0]) count = int(row[2]) for p in parsed: if p.score > 0.5: if p.normal_...
23.92
73
0.635452
7971b0a0f394d11066ea19446d6dd1167b17d6d4
520
py
Python
amicable sum number range.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
null
null
null
amicable sum number range.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
5
2020-05-22T14:10:02.000Z
2022-03-25T19:13:05.000Z
amicable sum number range.py
mcvenkat/Python-Programs
2ff66bbd5b07c8e093b11360e1dcac06740a5024
[ "CC0-1.0", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jan 16 12:05:15 2020 @author: 766810 """ def amicable_sum(num): divisor_sum = [0] * num for i in range(1, len(divisor_sum)): for j in range(i * 2, len(divisor_sum), i): divisor_sum[j] += i # Find all amicable pairs result = 0 for i in range(1...
23.636364
62
0.613462
7971b0ccb9d7571997cdcdeb7e0c37c98a7cc809
36,899
py
Python
lib/core/test.py
jialinwu17/seg_every_thing
46f1c371136372f81efe986a34f6154ffec48063
[ "Apache-2.0" ]
2
2018-11-27T08:46:57.000Z
2019-08-01T10:22:30.000Z
lib/core/test.py
jialinwu17/seg_every_thing
46f1c371136372f81efe986a34f6154ffec48063
[ "Apache-2.0" ]
null
null
null
lib/core/test.py
jialinwu17/seg_every_thing
46f1c371136372f81efe986a34f6154ffec48063
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-present, Facebook, 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...
37.12173
122
0.659611
7971b0f5a69171e7911758df0e2745a959771600
997
py
Python
easy/python/c0030_121_best-time-to-buy-and-sell-stock/00_leetcode_0030.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
easy/python/c0030_121_best-time-to-buy-and-sell-stock/00_leetcode_0030.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
easy/python/c0030_121_best-time-to-buy-and-sell-stock/00_leetcode_0030.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #121. Best Time to Buy and Sell Stock #Say you have an array for which the ith element is the price of a given stock on day i. #If you were only permitted...
38.346154
160
0.685055
7971b1ba52f2ba7f3db6cf127617862e1e7999dc
7,658
py
Python
contrib/devtools/update-translations.py
wolfxpack/wolf
47b57381dc93bfb150be76cc6d288daffd1c37e6
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
wolfxpack/wolf
47b57381dc93bfb150be76cc6d288daffd1c37e6
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
wolfxpack/wolf
47b57381dc93bfb150be76cc6d288daffd1c37e6
[ "MIT" ]
1
2019-03-13T21:45:25.000Z
2019-03-13T21:45:25.000Z
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the following...
37.539216
124
0.629277
7971b1f319818ab098fc97cc3c472aca37d9eef6
2,569
py
Python
mmflow/utils/collect_env.py
open-mmlab/mmflow
203ea55ad8a4f99fcb394371aa0ba4423d3debcc
[ "Apache-2.0" ]
481
2021-11-16T07:04:23.000Z
2022-03-31T22:21:21.000Z
mmflow/utils/collect_env.py
open-mmlab/mmflow
203ea55ad8a4f99fcb394371aa0ba4423d3debcc
[ "Apache-2.0" ]
72
2021-11-16T12:25:55.000Z
2022-03-28T13:10:45.000Z
mmflow/utils/collect_env.py
open-mmlab/mmflow
203ea55ad8a4f99fcb394371aa0ba4423d3debcc
[ "Apache-2.0" ]
48
2021-11-16T06:48:46.000Z
2022-03-30T12:46:40.000Z
# Copyright (c) OpenMMLab. All rights reserved. import os.path as osp import subprocess import sys from collections import defaultdict import cv2 import mmcv import torch import torchvision from mmcv.utils import get_build_config, get_git_hash import mmflow def collect_env() -> dict: """Collect the information ...
31.716049
77
0.632542
7971b2ada0cd57e38ebf78246366a8782faf17b9
13,001
py
Python
home.py
natederbinsky/brow-soar
6617dbcebcf201bfe4fc6d0049296ac59e1dab1d
[ "MIT" ]
null
null
null
home.py
natederbinsky/brow-soar
6617dbcebcf201bfe4fc6d0049296ac59e1dab1d
[ "MIT" ]
null
null
null
home.py
natederbinsky/brow-soar
6617dbcebcf201bfe4fc6d0049296ac59e1dab1d
[ "MIT" ]
null
null
null
from flask import Flask, request, url_for app = Flask(__name__) import html import json ############################### ############################### import sys from os import environ as env sys.path.append(env['SOAR_HOME']) import Python_sml_ClientInterface as sml kernel = sml.Kernel_CreateKernelInCurrentThread...
35.717033
432
0.623721
7971b32c47b3def3cec40c3806cddbea2193461f
20,835
py
Python
model_zoo/bert/run_pretrain.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/bert/run_pretrain.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/bert/run_pretrain.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# 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...
40.299807
125
0.569186
7971b38ca71bfabdf91eb9d42784e646d43ec57e
4,046
py
Python
pystasmvt/mvtcreator.py
rr28yosizumi/pystasmvt
9d82d016d5535cea5cd972680a7ae07c008a6cd9
[ "MIT" ]
null
null
null
pystasmvt/mvtcreator.py
rr28yosizumi/pystasmvt
9d82d016d5535cea5cd972680a7ae07c008a6cd9
[ "MIT" ]
null
null
null
pystasmvt/mvtcreator.py
rr28yosizumi/pystasmvt
9d82d016d5535cea5cd972680a7ae07c008a6cd9
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import json import os import logging from pystasmvt import mvtsql LOGGER = logging.getLogger(__name__) #設定テンプレート CONFIG={ 'connection':{ 'user':'',#require 'password':'',#require 'host':'',#require 'port':...
29.97037
250
0.54177
7971b5eacbe10686a1e3752883ed53992b0c4bc9
408
py
Python
pymetacode/templates/code/function.j2.py
tillbiskup/pymetacode
a340660e5e88fb51e6a4f55677f1f6f7e45b3108
[ "BSD-2-Clause" ]
null
null
null
pymetacode/templates/code/function.j2.py
tillbiskup/pymetacode
a340660e5e88fb51e6a4f55677f1f6f7e45b3108
[ "BSD-2-Clause" ]
null
null
null
pymetacode/templates/code/function.j2.py
tillbiskup/pymetacode
a340660e5e88fb51e6a4f55677f1f6f7e45b3108
[ "BSD-2-Clause" ]
null
null
null
def {{ function.name }}(): """ One sentence (on one line) describing the function. More description comes here... Parameters ---------- param : :class:`None` Short description Returns ------- param : :class:`None` Short description {% if package.version != ...
15.111111
55
0.514706
7971b62fe7bad60eebf678dd7ad616e478f3e38e
16,911
py
Python
IPython/kernel/zmq/kernelapp.py
techtonik/ipython
aff23ecf89ba87ee49168d3cecc213bdbc3b06f9
[ "BSD-3-Clause-Clear" ]
1
2019-04-19T23:00:22.000Z
2019-04-19T23:00:22.000Z
IPython/kernel/zmq/kernelapp.py
kod3r/ipython
48b63c19a53f9e26dc4f64150641c730cb6a2305
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/kernel/zmq/kernelapp.py
kod3r/ipython
48b63c19a53f9e26dc4f64150641c730cb6a2305
[ "BSD-3-Clause-Clear" ]
1
2020-05-03T10:25:12.000Z
2020-05-03T10:25:12.000Z
"""An Application for launching a kernel Authors ------- * MinRK """ #----------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING.txt, distributed as pa...
39.055427
101
0.613624
7971b67607194526640409bf2c4cccbf477cb815
405
py
Python
tests/test_pyaos8_objects.py
michaelrosejr/pyaos8
2fc7c241692bad7bd1a5e25c87cd65d5830a9dd5
[ "Apache-2.0" ]
2
2019-07-31T07:35:47.000Z
2020-01-10T15:45:48.000Z
tests/test_pyaos8_objects.py
michaelrosejr/pyaos8
2fc7c241692bad7bd1a5e25c87cd65d5830a9dd5
[ "Apache-2.0" ]
null
null
null
tests/test_pyaos8_objects.py
michaelrosejr/pyaos8
2fc7c241692bad7bd1a5e25c87cd65d5830a9dd5
[ "Apache-2.0" ]
2
2018-11-17T04:33:35.000Z
2020-09-09T16:08:34.000Z
# -*- coding: utf-8 -*- import unittest """ This module is used for testing the functions within the pyaos8.objects module. """ class TestUM(unittest.TestCase): def setUp(self): pass def test_numbers_3_4(self): self.assertEqual( (3 * 4), 12) def test_strings_a_3(self): self.asse...
17.608696
79
0.614815
7971b78c6d34f032aa37fb96882a83691f3acc61
2,665
py
Python
islam_fitz/core/views.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
null
null
null
islam_fitz/core/views.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
2
2022-03-01T12:17:05.000Z
2022-03-30T12:19:55.000Z
islam_fitz/core/views.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
null
null
null
from django.db.models.query import EmptyQuerySet from islam_fitz.core.models import BeforeAndAfter, AboutUs, FAQ, Home, Footer from islam_fitz.core.serializers import BeforeAndAfterSerializer, AboutUsSerializer, FAQSerializer, HomeSerializer, FooterSerializer, PaginatorBeforeAndAfterSerializer from rest_framework impor...
32.5
167
0.676923
7971b9a3ebc00778dda9b15fc7911378a2b47891
454
py
Python
dbt/adapters/materialize/connections.py
JLDLaughlin/dbt-materialize
0a28f1148e86d1ca0bccc514c657b651b1cb1866
[ "Apache-2.0" ]
null
null
null
dbt/adapters/materialize/connections.py
JLDLaughlin/dbt-materialize
0a28f1148e86d1ca0bccc514c657b651b1cb1866
[ "Apache-2.0" ]
null
null
null
dbt/adapters/materialize/connections.py
JLDLaughlin/dbt-materialize
0a28f1148e86d1ca0bccc514c657b651b1cb1866
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from dbt.adapters.postgres import PostgresConnectionManager from dbt.adapters.postgres import PostgresCredentials from dbt.adapters.sql import SQLConnectionManager from dataclasses import dataclass @dataclass class MaterializeCredentials(PostgresCredentials): @property d...
25.222222
62
0.823789
7971b9e2bcd4fe615f726017494095a5115190df
5,329
py
Python
sdk/python/pulumi_aws/sqs/queue_policy.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/sqs/queue_policy.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/sqs/queue_policy.py
sibuthomasmathew/pulumi-aws
6351f2182eb6f693d4e09e4136c385adfa0ab674
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 _utilitie...
36.751724
134
0.594483
7971ba42ed6c96f2bfde25c7cbf920c567270927
3,803
py
Python
catapult.py
AlexGustafsson/mindstorms-catapult
d07733c085db37f538cb12cdf7186f7ac839ba31
[ "Unlicense" ]
1
2021-04-04T08:21:28.000Z
2021-04-04T08:21:28.000Z
catapult.py
AlexGustafsson/mindstorms-catapult
d07733c085db37f538cb12cdf7186f7ac839ba31
[ "Unlicense" ]
2
2019-12-23T12:11:24.000Z
2019-12-23T20:07:26.000Z
catapult.py
AlexGustafsson/mindstorms-catapult
d07733c085db37f538cb12cdf7186f7ac839ba31
[ "Unlicense" ]
null
null
null
from pybricks import ev3brick as brick from pybricks.ev3devices import (Motor) from pybricks.parameters import (Stop, Direction) # This code assumes that the linear actuator is correctly setup manually by ensuring # that the splint part of the actuator is inside of the driving gear and aligned with the # black plastic...
40.031579
109
0.696818
7971ba7af9657e94c10fc20e21839ed960eb8a0e
438
py
Python
students/K33401/Grigoreva Ekaterina/Lab1/task_3/server.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
4
2020-09-03T15:41:42.000Z
2021-12-24T15:28:20.000Z
students/K33401/Grigoreva Ekaterina/Lab1/task_3/server.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
48
2020-09-13T20:22:42.000Z
2021-04-30T11:13:30.000Z
students/K33401/Grigoreva Ekaterina/Lab1/task_3/server.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('localhost', 8080)) sock.listen(1) clientsoc, addr = sock.accept() print('connected:', addr) while True: with open('index.html', 'r') as file: html = file.read() clientsoc.sendall(bytes(f'HTTP/1.0 200 OK\nContent-Typ...
23.052632
96
0.657534
7971bb4116df60ccf8e26ccd68dc7854cb663b6c
44,130
py
Python
tests/models/t5/test_modeling_flax_t5.py
manuelciosici/transformers
c33f6046c3dab8f41bedf893404e6469dea3bce8
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
tests/models/t5/test_modeling_flax_t5.py
ymwangg/transformers
4a419d4995111c22d6842ee1bcd2d3f500150845
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
tests/models/t5/test_modeling_flax_t5.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 Google T5 Authors and 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 requ...
72.225859
7,207
0.728235
7971bb55e738c7b59f951b233319d241725d0e8d
542
py
Python
src/binwalk/modules/__init__.py
chubbymaggie/binwalk
bad6ce6f7331b161e4a36bcca57777df13bf1dab
[ "MIT" ]
5,504
2017-11-30T21:25:07.000Z
2022-03-31T17:00:58.000Z
src/binwalk/modules/__init__.py
chubbymaggie/binwalk
bad6ce6f7331b161e4a36bcca57777df13bf1dab
[ "MIT" ]
247
2017-12-07T06:09:56.000Z
2022-03-23T05:34:47.000Z
src/binwalk/modules/__init__.py
chubbymaggie/binwalk
bad6ce6f7331b161e4a36bcca57777df13bf1dab
[ "MIT" ]
953
2017-12-01T17:05:17.000Z
2022-03-26T13:15:33.000Z
# Don't load the disasm module if the capstone module can't be found try: from binwalk.modules.disasm import Disasm except ImportError: pass # Don't load the compression module if the lzma module can't be found try: from binwalk.modules.compression import RawCompression except ImportError: pass from b...
30.111111
69
0.808118
7971bb95fdbe770ce23fe80fce49401095be4a2b
495
py
Python
desktop/core/ext-py/Twisted/doc/core/examples/echoserv_udp.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/Twisted/doc/core/examples/echoserv_udp.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
desktop/core/ext-py/Twisted/doc/core/examples/echoserv_udp.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
#!/usr/bin/python # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. # from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor # Here's a UDP version of the simplest possible protocol class EchoUDP(DatagramProtocol): def datagramReceived(self, da...
23.571429
56
0.739394
7971bc0c3d4838e28a78617edce25f5efb14e2d4
155
py
Python
gym/admin.py
TobWul/Koble
a308fded6915cb4237e8ba303196d754acf26563
[ "MIT" ]
null
null
null
gym/admin.py
TobWul/Koble
a308fded6915cb4237e8ba303196d754acf26563
[ "MIT" ]
7
2020-06-05T20:36:44.000Z
2022-02-10T09:31:10.000Z
gym/admin.py
TobWul/Koble
a308fded6915cb4237e8ba303196d754acf26563
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from gym.models import Gym, GymImage admin.site.register(Gym) admin.site.register(GymImage)
22.142857
36
0.806452
7971bc27ebc38e9c2634b2335d43861d386961e6
4,083
py
Python
spotiplex.py
Viperinius/spotiplex
5d8b708798e0fa01a18d41a8529c21b0e9e9f0fa
[ "MIT" ]
null
null
null
spotiplex.py
Viperinius/spotiplex
5d8b708798e0fa01a18d41a8529c21b0e9e9f0fa
[ "MIT" ]
null
null
null
spotiplex.py
Viperinius/spotiplex
5d8b708798e0fa01a18d41a8529c21b0e9e9f0fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import spotipy from spotipy.oauth2 import SpotifyClientCredentials from plexapi.myplex import MyPlexAccount from plexapi.server import PlexServer from plexapi.playlist import Playlist import plexapi class SpotiPlex: def __init__(self, spotifyInfo, plexInfo): self.credMa...
36.132743
171
0.59711
7971bdae3e0d1f7978344ce8949da4125bfc582a
902
py
Python
setup.py
AnthoOzier/ktest
de9273575986a2b578bdb894703f397e5d7749c7
[ "MIT" ]
null
null
null
setup.py
AnthoOzier/ktest
de9273575986a2b578bdb894703f397e5d7749c7
[ "MIT" ]
null
null
null
setup.py
AnthoOzier/ktest
de9273575986a2b578bdb894703f397e5d7749c7
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="ktest-AnthoOzier", # Replace with your own username version="0.0.1", author="Anthony Ozier-Lafontaine", author_email="anthony.ozier-lafontaine@ec-nantes.fr", description=...
31.103448
83
0.669623
7971be03e827dc83e60d7cf6be58e69ddd65991a
419
py
Python
huntserver/migrations/0007_person_allergies.py
adenylyl/pi_day_puzzle_hunt
aa01cef427bc5f524e89558da72a2f79b0c78514
[ "MIT" ]
18
2017-03-07T19:53:03.000Z
2022-02-24T04:58:47.000Z
huntserver/migrations/0007_person_allergies.py
adenylyl/pi_day_puzzle_hunt
aa01cef427bc5f524e89558da72a2f79b0c78514
[ "MIT" ]
161
2016-11-14T00:04:42.000Z
2021-06-10T17:25:17.000Z
huntserver/migrations/0007_person_allergies.py
adenylyl/pi_day_puzzle_hunt
aa01cef427bc5f524e89558da72a2f79b0c78514
[ "MIT" ]
22
2016-09-27T18:00:10.000Z
2022-03-13T17:51:44.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('huntserver', '0006_auto_20160102_1418'), ] operations = [ migrations.AddField( model_name='person', ...
20.95
63
0.613365
7971be42fbff58cee7d9335cc25ad287df4c9065
409
py
Python
web/routes/endpoints.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
web/routes/endpoints.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
web/routes/endpoints.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
from fastapi import APIRouter from daqbrokerServer.services.web.api.auth import app as auth app = APIRouter() app.include_router( auth, prefix="/auth", tags=["auth"], responses={404: {"description": "Not found"}} ) @app.get("/test") async def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") ...
18.590909
61
0.679707
7971bea45a96c8a8295f5bbbc7f426cd2b7880f4
2,430
py
Python
carla_ros_bridge/src/carla_ros_bridge/radar.py
vedthakur5/ros-bridge
e9e10f9e75277e932e2198d3bc57559d237078c8
[ "MIT" ]
null
null
null
carla_ros_bridge/src/carla_ros_bridge/radar.py
vedthakur5/ros-bridge
e9e10f9e75277e932e2198d3bc57559d237078c8
[ "MIT" ]
null
null
null
carla_ros_bridge/src/carla_ros_bridge/radar.py
vedthakur5/ros-bridge
e9e10f9e75277e932e2198d3bc57559d237078c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2019-2020 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # """ Classes to handle Carla Radar """ import rospy from carla_msgs.msg import CarlaRadarMeasurement, CarlaRadarDetection from c...
35.735294
94
0.621811
7971bf02343f005f6cea428ce43dc181a6493e88
2,628
py
Python
lib/smisk/mvc/decorators.py
rsms/smisk
f12a5606dfff49a15fa91448ff36652d60add4c0
[ "MIT" ]
4
2015-11-05T11:51:12.000Z
2020-12-30T18:55:58.000Z
lib/smisk/mvc/decorators.py
rsms/smisk
f12a5606dfff49a15fa91448ff36652d60add4c0
[ "MIT" ]
5
2021-11-16T17:21:51.000Z
2021-11-16T17:22:09.000Z
lib/smisk/mvc/decorators.py
rsms/smisk
f12a5606dfff49a15fa91448ff36652d60add4c0
[ "MIT" ]
null
null
null
# encoding: utf-8 '''Controller tree function decorators. ''' import types __all__ = ['expose', 'hide', 'leaf_filter'] def expose(slug=None, template=None, formats=None, delegates=False, methods=None): '''Explicitly expose a function, optionally configure how it is exposed. ''' def entangle(func): # Note: We do ...
25.269231
97
0.69102
7971c00b82e068e39196017ec40e76170aa49260
3,015
py
Python
entertainment_center.py
kl1010/movies
6217672179aa9b758b228c7a429ebae6fcf2acea
[ "MIT" ]
null
null
null
entertainment_center.py
kl1010/movies
6217672179aa9b758b228c7a429ebae6fcf2acea
[ "MIT" ]
null
null
null
entertainment_center.py
kl1010/movies
6217672179aa9b758b228c7a429ebae6fcf2acea
[ "MIT" ]
null
null
null
import fresh_tomatoes import media IMAGE_ROOT = "https://image.tmdb.org/t/p/w640/" tbb = media.Movie("The Boss Baby", "A story about how a new baby's arrival impacts a family," "told from the point of view of a delightfully" " unreliable narrator," ...
53.839286
80
0.556219
7971c194461c8c3db347166ccdd417edc3975d49
162
py
Python
tests/tools.py
SamuelHornsey/aficionado
27654028ede3d719b091dd61f5c8d252f631a316
[ "MIT" ]
1
2019-11-27T21:58:10.000Z
2019-11-27T21:58:10.000Z
tests/tools.py
SamuelHornsey/aficionado
27654028ede3d719b091dd61f5c8d252f631a316
[ "MIT" ]
null
null
null
tests/tools.py
SamuelHornsey/aficionado
27654028ede3d719b091dd61f5c8d252f631a316
[ "MIT" ]
null
null
null
''' Testing Tools ''' from aws_lambda_context import LambdaContext def call_app(app): lambda_context = LambdaContext() return app.handler({}, lambda_context)
27
44
0.765432
7971c20b56cf37efdb1cfac0890fd91460184da0
7,543
py
Python
dashboard_api/db/utils.py
NASA-IMPACT/eis-pilot-dashboard-api
18f28d1fcc8bd982b4161754f5852fb247fc77d0
[ "MIT" ]
1
2021-05-19T17:25:25.000Z
2021-05-19T17:25:25.000Z
dashboard_api/db/utils.py
NASA-IMPACT/eis-pilot-dashboard-api
18f28d1fcc8bd982b4161754f5852fb247fc77d0
[ "MIT" ]
9
2021-05-03T18:22:22.000Z
2021-09-30T19:43:52.000Z
dashboard_api/db/utils.py
NASA-IMPACT/eis-pilot-dashboard-api
18f28d1fcc8bd982b4161754f5852fb247fc77d0
[ "MIT" ]
1
2021-06-22T17:08:46.000Z
2021-06-22T17:08:46.000Z
"""Db tools.""" import csv import json from datetime import datetime from typing import Dict, List import boto3 from botocore import config from dashboard_api.core.config import DT_FORMAT, BUCKET from dashboard_api.models.static import IndicatorObservation s3 = boto3.client("s3") _lambda = boto3.client( "lambd...
35.919048
185
0.58372
7971c22fbfdb9d5d49d75157da701711dd027022
1,916
py
Python
setup.py
tekktrik/Adafruit_CircuitPython_MIDI
0c30d668f0bb2d15921bf72019c7e8155c82e4be
[ "MIT" ]
null
null
null
setup.py
tekktrik/Adafruit_CircuitPython_MIDI
0c30d668f0bb2d15921bf72019c7e8155c82e4be
[ "MIT" ]
1
2022-03-08T04:16:04.000Z
2022-03-08T04:16:04.000Z
setup.py
tekktrik/Adafruit_CircuitPython_MIDI
0c30d668f0bb2d15921bf72019c7e8155c82e4be
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # # SPDX-License-Identifier: MIT """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages # To use a consistent encoding from ...
33.614035
96
0.699374
7971c29bbfba0d9b8414161f2b2fe952b7d7928c
7,526
py
Python
tools/train.py
zylamarek/frederic
69fee52e173803443aa4fe8b76a4b88882b1aac6
[ "MIT" ]
7
2019-11-05T19:21:36.000Z
2021-12-07T12:11:03.000Z
tools/train.py
zylamarek/frederic
69fee52e173803443aa4fe8b76a4b88882b1aac6
[ "MIT" ]
6
2020-12-03T12:36:46.000Z
2022-03-12T00:03:26.000Z
tools/train.py
zylamarek/frederic
69fee52e173803443aa4fe8b76a4b88882b1aac6
[ "MIT" ]
1
2021-12-02T19:38:41.000Z
2021-12-02T19:38:41.000Z
import os import argparse import datetime import keras from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping from keras.applications import mobilenet_v2 from keras.layers import Dense, Flatten from keras.models import Model, load_model from PIL import Image import context from fred...
54.934307
120
0.59527
7971c3fad1367d5fef13fbc1b84da7d7c234a491
5,815
py
Python
kwtools/tools1/utils_encrypt.py
kerwin6182828/kwtools
d4631c340cb4d4f1ceca6081825b4021f6d41da3
[ "MIT" ]
null
null
null
kwtools/tools1/utils_encrypt.py
kerwin6182828/kwtools
d4631c340cb4d4f1ceca6081825b4021f6d41da3
[ "MIT" ]
null
null
null
kwtools/tools1/utils_encrypt.py
kerwin6182828/kwtools
d4631c340cb4d4f1ceca6081825b4021f6d41da3
[ "MIT" ]
1
2021-11-08T03:09:20.000Z
2021-11-08T03:09:20.000Z
# AES加密使用 import base64 #注:python3 安装 Crypto 是 pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pycryptodome<br><br> from Crypto.Cipher import AES import hashlib class UtilsEncrypt(): def __init__(self): pass def k_md5(self, s: str): """ function: 获取md5哈希编码后的值; ...
26.797235
106
0.54411
7971c475ae492753234d1fbd896ee30fb7c9be6c
6,077
py
Python
app/handlers/vtk_handler.py
indigoYoshimaru/3d-brain-tumor-segment-app
e623f55a1d2e061bed53a65cdb0195d4b4022de7
[ "MIT" ]
null
null
null
app/handlers/vtk_handler.py
indigoYoshimaru/3d-brain-tumor-segment-app
e623f55a1d2e061bed53a65cdb0195d4b4022de7
[ "MIT" ]
null
null
null
app/handlers/vtk_handler.py
indigoYoshimaru/3d-brain-tumor-segment-app
e623f55a1d2e061bed53a65cdb0195d4b4022de7
[ "MIT" ]
null
null
null
import vtk from objects import * ''' VTK Pipeline: reader -> extractor -> decimate -> smoother -> normalizer -> mapper ''' def read_volume(file_name): """ :param file_name: The filename of type 'nii.gz' :return: vtkNIFT...
35.331395
119
0.716472
7971c4c9a59dcb6f06a4e18bf49cdc8a546fe9a3
32,337
py
Python
sdk/python/pulumi_aws/glue/connection.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/glue/connection.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/glue/connection.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
50.684953
339
0.67078
7971c674a2613f4e8729c1223f3a294d7e061009
53,062
py
Python
mne/preprocessing/tests/test_ica.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/tests/test_ica.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/tests/test_ica.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
# Author: Denis Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD (3-clause) from itertools import product import os import os.path as op from unittest import SkipTest import pytest import numpy as np from numpy.testing import (assert_array_almost_equal, a...
38.987509
79
0.642475
7971c70ff44d9dfea73c3eaa45d6703e093634a4
3,154
py
Python
pylark/api_service_application_usage_overview.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
7
2021-08-18T00:42:05.000Z
2022-03-14T09:49:15.000Z
pylark/api_service_application_usage_overview.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
null
null
null
pylark/api_service_application_usage_overview.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
1
2022-03-14T09:49:20.000Z
2022-03-14T09:49:20.000Z
# Code generated by lark_sdk_gen. DO NOT EDIT. from pylark.lark_request import RawRequestReq, _new_method_option from pylark import lark_type, lark_type_sheet, lark_type_approval import attr import typing import io @attr.s class GetApplicationUsageOverviewReq(object): department_id_type: lark_type.DepartmentIDTy...
52.566667
378
0.719404
7971c87da3e0a9e9d215da4370c79b5c3b058048
2,759
py
Python
shocks/shocks2_shocks.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
shocks/shocks2_shocks.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
shocks/shocks2_shocks.py
orest-d/design-patterns-finance
5878912dfa5b34925b00c38da978e7b9e4735a14
[ "CC0-1.0" ]
null
null
null
scenario = { "CPH:NDA-DK": 67.63, "CPH:DANSKE": 106.1, "CPH:NDA-DK-volatility": 1, "EONIA": -0.0049, "DKKLIBOR-1W": -0.00002, } # shock def danske_100(scenario): scenario = {**scenario} scenario["CPH:DANSKE"] = 100.0 return scenario # Naive way def absolute_shock1(scenario, risk_fac...
30.655556
146
0.715477
7971c9bb23ff88ba00d0dfd8a352141a43587d88
2,249
py
Python
zippy/edu.uci.python.test/src/tests/nbody_acc_test.py
lucapele/pele-c
ff6d06794a171f8e1b08fc6246446d9777116f56
[ "BSD-3-Clause" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
zippy/edu.uci.python.test/src/tests/nbody_acc_test.py
lucapele/pele-c
ff6d06794a171f8e1b08fc6246446d9777116f56
[ "BSD-3-Clause" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
zippy/edu.uci.python.test/src/tests/nbody_acc_test.py
lucapele/pele-c
ff6d06794a171f8e1b08fc6246446d9777116f56
[ "BSD-3-Clause" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
# Oct 19, 2015 # numba-benchmarks # https://github.com/numba/numba-benchmark # # originally by Antoine Pitrou # modified by myq # remove classes and add pure nbody python """ Benchmark an implementation of the N-body simulation. As in the CUDA version, we only compute accelerations and don't care to update speeds and...
38.775862
99
0.669186
7971ca88f0784e6cf72eccd170775b509d5335a8
2,039
py
Python
model_templates/alex.py
akiraak/deepstation
5dd09f4da1f017c9e7e965f345c0a46e61e04db7
[ "MIT" ]
7
2016-04-01T04:38:31.000Z
2018-06-02T23:57:02.000Z
model_templates/alex.py
akiraak/deepstation
5dd09f4da1f017c9e7e965f345c0a46e61e04db7
[ "MIT" ]
null
null
null
model_templates/alex.py
akiraak/deepstation
5dd09f4da1f017c9e7e965f345c0a46e61e04db7
[ "MIT" ]
7
2016-05-01T06:40:34.000Z
2018-06-02T23:57:31.000Z
import chainer import chainer.functions as F import chainer.links as L ############################## ## DO NOT CHANGE CLASS NAME ## ############################## class Network(chainer.Chain): """Single-GPU AlexNet without partition toward the channel axis.""" insize = 227 def __init__(self): ...
35.77193
72
0.564492
7971cb7219509b202bf106247afa868906f1a9ac
11,487
py
Python
bot/__main__.py
jusidama18/Telegram-CloneBot
8bca7934a0dbf9403e64565f9e9178e2688d4bfc
[ "MIT" ]
null
null
null
bot/__main__.py
jusidama18/Telegram-CloneBot
8bca7934a0dbf9403e64565f9e9178e2688d4bfc
[ "MIT" ]
null
null
null
bot/__main__.py
jusidama18/Telegram-CloneBot
8bca7934a0dbf9403e64565f9e9178e2688d4bfc
[ "MIT" ]
8
2021-08-12T16:44:08.000Z
2022-01-26T21:13:08.000Z
import os import subprocess import time import importlib import subprocess from sys import executable from telegram import ParseMode, BotCommand from telegram.ext import CommandHandler, MessageHandler, Filters, run_async from telegram.error import TimedOut, BadRequest from bot.gDrive import GoogleDriveHelper from bo...
41.923358
175
0.644642
7971cb93420db298687e67bf8f754eb202aa0f97
3,574
py
Python
rpi/gpio/manage_relay.py
amusarra/smartcard-contactless-raspberry-pi
2e1609e9552d9c63bd371688ada22f1c8fb0b0be
[ "MIT" ]
3
2022-03-14T20:59:27.000Z
2022-03-26T16:35:49.000Z
rpi/gpio/manage_relay.py
amusarra/smartcard-contactless-raspberry-pi
2e1609e9552d9c63bd371688ada22f1c8fb0b0be
[ "MIT" ]
null
null
null
rpi/gpio/manage_relay.py
amusarra/smartcard-contactless-raspberry-pi
2e1609e9552d9c63bd371688ada22f1c8fb0b0be
[ "MIT" ]
1
2022-03-14T20:59:29.000Z
2022-03-14T20:59:29.000Z
""" Base class for interacting with Relay via GPIO MIT License Smart Card Contactless Raspberry Pi sample project Copyright (c) 2022 Antonio Musarra (Antonio Musarra's Blog - https://www.dontesta.it) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated document...
30.288136
105
0.688304
7971cbb7e3e7dc55325dcc37bc0995f5de0e2546
3,843
py
Python
tests/unit/api/table/test_search_table_field_api.py
ajbosco/amundsensearchlibrary
890656819f411226976d062b515106d50040c2d0
[ "Apache-2.0" ]
null
null
null
tests/unit/api/table/test_search_table_field_api.py
ajbosco/amundsensearchlibrary
890656819f411226976d062b515106d50040c2d0
[ "Apache-2.0" ]
null
null
null
tests/unit/api/table/test_search_table_field_api.py
ajbosco/amundsensearchlibrary
890656819f411226976d062b515106d50040c2d0
[ "Apache-2.0" ]
null
null
null
from http import HTTPStatus from unittest import TestCase from mock import patch, Mock from search_service import create_app from search_service.models.search_result import SearchResult from tests.unit.api.table.fixtures import mock_json_response, mock_proxy_results, default_json_response class TestSearchTableField...
39.214286
105
0.689565
7971cca60518fc0ac17205ae41abc059a958a901
190
py
Python
Assignment5(b).py
Priyalvora/pythonAss
e1adc2ce9c3bfc18790e5130130996fad9c4d021
[ "Apache-2.0" ]
null
null
null
Assignment5(b).py
Priyalvora/pythonAss
e1adc2ce9c3bfc18790e5130130996fad9c4d021
[ "Apache-2.0" ]
null
null
null
Assignment5(b).py
Priyalvora/pythonAss
e1adc2ce9c3bfc18790e5130130996fad9c4d021
[ "Apache-2.0" ]
null
null
null
def Prime(x): for n in range(2,x): if x % n == 0: return False else: return True x_one = filter(Prime, range(1, 2500)) print(list(x_one))
21.111111
38
0.484211