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
6e53df4421c0f110a8a5316f715c86d10dbca14f
3,219
py
Python
models/evaluate/image.py
wengithz/t-wji
482c5a435a72dbf88fdfab385f74d4f42f4afec1
[ "MIT" ]
246
2019-07-03T12:03:33.000Z
2022-03-19T08:43:38.000Z
models/evaluate/image.py
wengithz/t-wji
482c5a435a72dbf88fdfab385f74d4f42f4afec1
[ "MIT" ]
3
2019-08-19T02:23:24.000Z
2020-04-20T07:45:03.000Z
models/evaluate/image.py
wengithz/t-wji
482c5a435a72dbf88fdfab385f74d4f42f4afec1
[ "MIT" ]
70
2019-07-03T13:29:11.000Z
2022-03-01T06:49:08.000Z
''' File: image.py Project: evaluate File Created: Wednesday, 28th November 2018 4:14:46 pm Author: xiaofeng (sxf1052566766@163.com) ----- Last Modified: Saturday, 22nd December 2018 4:00:03 pm Modified By: xiaofeng (sxf1052566766@163.com>) ----- 2018.06 - 2018 Latex Math, Latex Math ''' from os import listdir from o...
27.279661
79
0.600186
28f89fb49764196e9ed155bc2dcf5107fabae670
8,135
py
Python
alttprbot_discord/cogs/role.py
skyscooby/sahasrahbot
16fce824bd024f6357a8f260e2447ba477dcdac2
[ "MIT" ]
null
null
null
alttprbot_discord/cogs/role.py
skyscooby/sahasrahbot
16fce824bd024f6357a8f260e2447ba477dcdac2
[ "MIT" ]
null
null
null
alttprbot_discord/cogs/role.py
skyscooby/sahasrahbot
16fce824bd024f6357a8f260e2447ba477dcdac2
[ "MIT" ]
null
null
null
import re import csv import io import discord from discord.ext import commands from emoji import UNICODE_EMOJI from alttprbot.database import role # TODO switch to ORM from alttprbot.exceptions import SahasrahBotException from ..util import embed_formatter class Role(commands.Cog): def __init...
42.369792
263
0.642532
c57bbc744bba668df32a697ca949a6db0b58d6a7
2,111
py
Python
ginkgo/async/eventlet.py
rlugojr/ginkgo
440b75186506bf9a8badba038068dd97293ea4b8
[ "MIT" ]
28
2015-01-04T15:47:05.000Z
2019-07-19T11:23:06.000Z
ginkgo/async/eventlet.py
inconshreveable/ginkgo
b4857f6ed493f4903a6de168de64e859c8606309
[ "MIT" ]
null
null
null
ginkgo/async/eventlet.py
inconshreveable/ginkgo
b4857f6ed493f4903a6de168de64e859c8606309
[ "MIT" ]
14
2015-05-29T23:49:28.000Z
2021-06-20T03:29:51.000Z
from __future__ import absolute_import import eventlet import eventlet.greenpool import eventlet.greenthread import eventlet.event import eventlet.queue import eventlet.timeout import eventlet.semaphore from ..core import BasicService, Service from ..util import defaultproperty class AsyncManager(BasicService): ...
31.044118
83
0.64235
c1901d0b0888d422a74117da135e1e6b87984b37
856
py
Python
digital_forensic/follower.py
udhayprakash/python_for_security
5db5d3efdd8349e94f89b176d0f8651c4a9a1136
[ "Apache-2.0" ]
null
null
null
digital_forensic/follower.py
udhayprakash/python_for_security
5db5d3efdd8349e94f89b176d0f8651c4a9a1136
[ "Apache-2.0" ]
null
null
null
digital_forensic/follower.py
udhayprakash/python_for_security
5db5d3efdd8349e94f89b176d0f8651c4a9a1136
[ "Apache-2.0" ]
null
null
null
import tweepy import time twitter_app_consumer_key = '**************************' twitter_consumer_secret = '**************************' twitter_access_token = '**************************' twitter_access_secret = '**************************' MyAuth = tweepy.auth.OAuthHandler(twitter_app_consumer_key, twitter_consumer_...
34.24
84
0.672897
78d00ed6376fa62df37925ef23044e0abcaf8ece
139
py
Python
urlsnap/about/views.py
x4dx48/urlsnap
9fd0e5cf98bc3e22acd745b3fae4583e43b7a553
[ "BSD-2-Clause" ]
1
2018-07-05T15:34:33.000Z
2018-07-05T15:34:33.000Z
urlsnap/about/views.py
x4dx48/urlsnap
9fd0e5cf98bc3e22acd745b3fae4583e43b7a553
[ "BSD-2-Clause" ]
null
null
null
urlsnap/about/views.py
x4dx48/urlsnap
9fd0e5cf98bc3e22acd745b3fae4583e43b7a553
[ "BSD-2-Clause" ]
null
null
null
from django.shortcuts import render # Create your views here. def about(request): return render(request, "about.html", {'logo': True})
27.8
56
0.726619
1284dd0272996511e01c1ec23402131ac0618edd
856
py
Python
alpyro_msgs/smach_msgs/smachcontainerstructure.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
1
2020-12-13T13:07:10.000Z
2020-12-13T13:07:10.000Z
alpyro_msgs/smach_msgs/smachcontainerstructure.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
alpyro_msgs/smach_msgs/smachcontainerstructure.py
rho2/alpyro_msgs
b5a680976c40c83df70d61bb2db1de32a1cde8d3
[ "MIT" ]
null
null
null
from typing import List from typing_extensions import Annotated from alpyro_msgs import RosMessage, string from alpyro_msgs.std_msgs.header import Header class SmachContainerStructure(RosMessage): __msg_typ__ = "smach_msgs/SmachContainerStructure" __msg_def__ = "c3RkX21zZ3MvSGVhZGVyIGhlYWRlcgogIHVpbnQzMiBzZXEKICB...
45.052632
282
0.849299
7e94631bd095373535ee9d70792a80a563cf5784
1,463
py
Python
Python/[6 kyu] pokemon damage calculator.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[6 kyu] pokemon damage calculator.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
Python/[6 kyu] pokemon damage calculator.py
KonstantinosAng/CodeWars
9ec9da9ed95b47b9656a5ecf77f486230fd15e3a
[ "MIT" ]
null
null
null
# see https://www.codewars.com/kata/536e9a7973130a06eb000e9f/solutions/python from TestFunction import Test def calculate_damage(your_type, opponent_type, attack, defense): if your_type == 'fire': if opponent_type == 'grass': eff = 2 elif opponent_type == 'water': eff = 0.5 elif opponent_type == 'fire':...
39.540541
77
0.668489
2e0c4fc6ccf4bd62e90dc2038b7aca36cbc14ff0
949
py
Python
fixture/application.py
rooksever/python_training_skiba
be861d72d6f07fa1565ed12b97f6d4f04e6be1dc
[ "Apache-2.0" ]
null
null
null
fixture/application.py
rooksever/python_training_skiba
be861d72d6f07fa1565ed12b97f6d4f04e6be1dc
[ "Apache-2.0" ]
null
null
null
fixture/application.py
rooksever/python_training_skiba
be861d72d6f07fa1565ed12b97f6d4f04e6be1dc
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from fixture.session import SessionHelper from fixture.group import GroupHelper from fixture.contact import ContactHelper class Application: def __init__(self, browser, base_url): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "ch...
25.648649
65
0.601686
e14da82d479067be2c57213477c50e0b2684c348
490
py
Python
src/Books/Order.py
Mimik1/stock_market_simulator_project
4636557731f0373d86bc99bc392ac5f19a016041
[ "CNRI-Python" ]
2
2021-08-21T06:46:40.000Z
2022-02-28T16:23:54.000Z
src/Books/Order.py
Mimik1/stock_market_simulator_project
4636557731f0373d86bc99bc392ac5f19a016041
[ "CNRI-Python" ]
null
null
null
src/Books/Order.py
Mimik1/stock_market_simulator_project
4636557731f0373d86bc99bc392ac5f19a016041
[ "CNRI-Python" ]
1
2020-06-20T10:19:18.000Z
2020-06-20T10:19:18.000Z
class Order: def __init__(self, order_id, trader_id, quantity, price, timestamp): self.orderID = order_id self.traderID = trader_id self.quantity = quantity self.price = price self.timestamp = timestamp def getOrderID(self): return self.orderID def getQuanti...
24.5
72
0.642857
6a39bfebdfc16562752967ed728ae44ae3369097
641
py
Python
setup.py
phuctu1901/aries-cloudagent-webhook-relay
95c88e78b099d415029653ad8ce878c3be578977
[ "Apache-2.0" ]
4
2020-07-16T08:55:39.000Z
2021-03-25T08:04:44.000Z
setup.py
phuctu1901/aries-cloudagent-webhook-relay
95c88e78b099d415029653ad8ce878c3be578977
[ "Apache-2.0" ]
3
2020-11-20T16:39:54.000Z
2022-01-24T18:11:32.000Z
setup.py
phuctu1901/aries-cloudagent-webhook-relay
95c88e78b099d415029653ad8ce878c3be578977
[ "Apache-2.0" ]
6
2020-08-31T02:39:10.000Z
2021-07-23T13:53:44.000Z
from setuptools import setup, find_packages setup( name='aries_cloudagent_webhook_relay', version='1.0', description='Collects and cache\'s aca-py webhook calls until requested by controller', author='Karim Stekelenburg', maintainer='Karim Stekelenbrug', author_email='karim.stekelenburg@me.com', maintain...
29.136364
89
0.730109
31a99d869f4e375ef39aeee9816ae013b8b987c1
2,667
py
Python
jax/draw_ising_optim_ed.py
phyjoon/circuit_comparison
a5ee8d0acd3ecc0893cb088ea4b4692e5e83965d
[ "MIT" ]
null
null
null
jax/draw_ising_optim_ed.py
phyjoon/circuit_comparison
a5ee8d0acd3ecc0893cb088ea4b4692e5e83965d
[ "MIT" ]
null
null
null
jax/draw_ising_optim_ed.py
phyjoon/circuit_comparison
a5ee8d0acd3ecc0893cb088ea4b4692e5e83965d
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import wandb matplotlib.rcParams['mathtext.fontset'] = 'stix' color_list = ['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#7f7f7f', '#bcbd22', '#17becf'] def main(): n_qubits = 8 n_layers_list = [32, 64, 80, 96] project ...
30.306818
123
0.551181
b5b552a7e14ea5ea9b6901a2158a7662fb1fbe3e
549
py
Python
fantasy_news/apps/index/migrations/0002_auto_20191101_1603.py
DooBeDooBa/RecNewsSys
3da812dd881e67c600b6b7fbe96f507ce835de5b
[ "MIT" ]
2
2019-11-08T12:44:59.000Z
2019-11-08T12:59:45.000Z
fantasy_news/apps/index/migrations/0002_auto_20191101_1603.py
DooBeDooBa/RecNewsSys
3da812dd881e67c600b6b7fbe96f507ce835de5b
[ "MIT" ]
1
2019-11-08T13:08:24.000Z
2019-11-08T13:08:24.000Z
fantasy_news/apps/index/migrations/0002_auto_20191101_1603.py
DooBeDooBa/RecNewsSys
3da812dd881e67c600b6b7fbe96f507ce835de5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-11-01 08:03 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('index', '0001_initial'), ] operations = [ ...
24.954545
128
0.642987
c0886ca381bb6b8b11dbfe20fec08b490412497f
1,793
py
Python
Egitim.py
BatuhanYerinde/Gercek_Zamanl-_Goruntu_-sleme_-le_Otomatik_Kimlik_Kontrolu
237bcf6ea909ddd7c07cf1f87f6cde087f947354
[ "Apache-2.0" ]
null
null
null
Egitim.py
BatuhanYerinde/Gercek_Zamanl-_Goruntu_-sleme_-le_Otomatik_Kimlik_Kontrolu
237bcf6ea909ddd7c07cf1f87f6cde087f947354
[ "Apache-2.0" ]
null
null
null
Egitim.py
BatuhanYerinde/Gercek_Zamanl-_Goruntu_-sleme_-le_Otomatik_Kimlik_Kontrolu
237bcf6ea909ddd7c07cf1f87f6cde087f947354
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from PIL import Image import os # veri setlerinin bulunduğu yolun ismi değişkene atılıyor. path = 'dataset' recognizer = cv2.face.LBPHFaceRecognizer_create() #egitim icin nesne olusturuluyor. detector = cv2.CascadeClassifier("haarcascade_frontalface_default.xml"); # yuzun on kısmını algı...
42.690476
157
0.743447
4a3f5b1a15970b3333edb855373c5e469eb52b2d
1,916
py
Python
algorithm/k_means_image.py
AxelThevenot/K-Means
4602792c269c909fb7b50a54700b7a7386a860db
[ "MIT" ]
1
2019-03-31T20:28:31.000Z
2019-03-31T20:28:31.000Z
algorithm/k_means_image.py
AxelThevenot/K-Means
4602792c269c909fb7b50a54700b7a7386a860db
[ "MIT" ]
null
null
null
algorithm/k_means_image.py
AxelThevenot/K-Means
4602792c269c909fb7b50a54700b7a7386a860db
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import k_means as km IMAGE = mpimg.imread('image.jpg') # pick up the image as a matrix of pixel pixels = np.concatenate(IMAGE[:][:]) # all the pixels of the image in an array EPSILON = 1000 # to test convergence K_TO_TES...
39.916667
94
0.661795
73ab7e1fd26d80801122255946130680a87b49f7
945
py
Python
crusoe_observe/cve-connector/cve_connector/vendor_cve/implementation/vendors_storage_structures/apple.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
3
2021-11-09T09:55:17.000Z
2022-02-19T02:58:27.000Z
crusoe_observe/cve-connector/cve_connector/vendor_cve/implementation/vendors_storage_structures/apple.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
crusoe_observe/cve-connector/cve_connector/vendor_cve/implementation/vendors_storage_structures/apple.py
CSIRT-MU/CRUSOE
73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b
[ "MIT" ]
null
null
null
"""Module contains class for storing information about CVEs from vendor Apple.""" from cve_connector.vendor_cve.implementation.vendors_storage_structures.general_vendor import Vendor from cve_connector.vendor_cve.implementation.utilities.check_correctness import is_correct_cve_id class Apple(Vendor): """ Cl...
31.5
100
0.683598
091a8333c1fe8f0eee01877f3db44af48ac5984c
3,969
py
Python
lab-notebook/kchu/2019-01-22-KTC-initial_ICA_exploration.py
velexi-corporation/spectra-ml
10fab9e72437e79b6f7ff5ae4b9592bc7c48f10d
[ "Apache-2.0" ]
null
null
null
lab-notebook/kchu/2019-01-22-KTC-initial_ICA_exploration.py
velexi-corporation/spectra-ml
10fab9e72437e79b6f7ff5ae4b9592bc7c48f10d
[ "Apache-2.0" ]
null
null
null
lab-notebook/kchu/2019-01-22-KTC-initial_ICA_exploration.py
velexi-corporation/spectra-ml
10fab9e72437e79b6f7ff5ae4b9592bc7c48f10d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # ## 2019-01-22: Initial ICA Exploration # # ### Authors # * Kevin Chu (kevin@velexi.com) # # ### Notes # # * In theory, ICA should "learn" spectra features that are common across multiple materials. Projection of a new spectra onto these "component spectra" could be used to co...
24.20122
243
0.71101
3fc53f53f301578651c2ea955018b0517b9268c0
18,541
py
Python
src/plotman/interactive.py
lopesmcc/plotman
e4798f2bd69c246f6736df0d1e90dcda4032bb7a
[ "Apache-2.0" ]
null
null
null
src/plotman/interactive.py
lopesmcc/plotman
e4798f2bd69c246f6736df0d1e90dcda4032bb7a
[ "Apache-2.0" ]
null
null
null
src/plotman/interactive.py
lopesmcc/plotman
e4798f2bd69c246f6736df0d1e90dcda4032bb7a
[ "Apache-2.0" ]
null
null
null
import curses import datetime import locale import math import os import subprocess import shlex import typing import sys from subprocess import DEVNULL, STDOUT, check_call, CalledProcessError from plotman import archive, configuration, manager, reporting from plotman.job import Job from plotman.archive_job import Egr...
39.198732
173
0.633892
1c3fa1697442963e61d94c3212fdaec06e8e6352
2,485
py
Python
doctor/views.py
naitik2314/E-Health-Care
246774d4abdc01d829effd58b6bebae947c9c9c5
[ "MIT" ]
null
null
null
doctor/views.py
naitik2314/E-Health-Care
246774d4abdc01d829effd58b6bebae947c9c9c5
[ "MIT" ]
null
null
null
doctor/views.py
naitik2314/E-Health-Care
246774d4abdc01d829effd58b6bebae947c9c9c5
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from doctor.models import DoctorInfo from django.contrib import messages from doctor.forms import UserForm from django.db.models import Q from django.contrib.auth.decorators import user_passes_test, login_required...
35
180
0.696982
ab4a808659927131c59a39b256108d9e418783a4
449
py
Python
run_crnn.py
hushukai/Chinese-ancient-book-recognition-HSK
de5b6474dc4346524d95b405223c721aae5b500b
[ "Apache-2.0" ]
2
2020-04-12T08:33:50.000Z
2020-07-03T09:15:56.000Z
run_crnn.py
yufish/Chinese-ancient-book-recognition-HSK
c7302fdd6e86b57223cfa1906e8bb365702c8240
[ "Apache-2.0" ]
null
null
null
run_crnn.py
yufish/Chinese-ancient-book-recognition-HSK
c7302fdd6e86b57223cfa1906e8bb365702c8240
[ "Apache-2.0" ]
4
2020-07-03T09:15:58.000Z
2020-07-17T09:24:08.000Z
# -*- encoding: utf-8 -*- # Author: hushukai from recog_with_crnn.train import train from recog_with_crnn.predict import predict from config import ONE_TEXT_LINE_IMGS_H, ONE_TEXT_LINE_IMGS_V if __name__ == '__main__': # train(num_epochs=200, start_epoch=0, model_type="vertical", model_struc="densenet_gru") p...
32.071429
108
0.761693
a688e8bd95d73bf2264a8d96e19b1d3ada75edbd
291
py
Python
wordnet/__init__.py
InSanityHQ/inscriptio
931fe575e6671b43a693a05a24d39fe492df9511
[ "Unlicense" ]
null
null
null
wordnet/__init__.py
InSanityHQ/inscriptio
931fe575e6671b43a693a05a24d39fe492df9511
[ "Unlicense" ]
null
null
null
wordnet/__init__.py
InSanityHQ/inscriptio
931fe575e6671b43a693a05a24d39fe492df9511
[ "Unlicense" ]
1
2021-05-10T04:45:08.000Z
2021-05-10T04:45:08.000Z
import nltk from nltk.corpus import wordnet as wn import nltk import ssl try: _create_unverified_https_context = ssl._create_unverified_context except AttributeError: pass else: ssl._create_default_https_context = _create_unverified_https_context nltk.download('wordnet')
15.315789
72
0.80756
d5d4853dc0de109ba11a1da5b94752d625665798
543
py
Python
LeetCode/Python/0797. All Paths From Source to Target.py
rayvantsahni/Competitive-Programming-Codes
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
1
2021-07-05T14:01:36.000Z
2021-07-05T14:01:36.000Z
LeetCode/Python/0797. All Paths From Source to Target.py
rayvantsahni/Competitive-Programming-and-Interview-Prep
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
null
null
null
LeetCode/Python/0797. All Paths From Source to Target.py
rayvantsahni/Competitive-Programming-and-Interview-Prep
39ba91b69ad8ce7dce554f7817c2f0d5545ef471
[ "MIT" ]
null
null
null
class Solution: def allPathsSourceTarget(self, graph: List[List[int]]) -> List[List[int]]: all_paths = [] self._allPathsSourceTarget(graph, 0, [0], all_paths) return all_paths def _allPathsSourceTarget(self, graph, source, current, all_paths): if source == len(graph) - 1: ...
36.2
88
0.618785
4428b8219b3370c6cefee8f2fdbf5ea385139db5
647
py
Python
fireworks/examples/custom_firetasks/hello_world/hello_world_run.py
water-e/fireworks
5db359430adc138a313326de3049e6f89dec4cbc
[ "BSD-3-Clause-LBNL" ]
2
2017-06-27T07:12:27.000Z
2017-09-22T12:06:18.000Z
fireworks/examples/custom_firetasks/hello_world/hello_world_run.py
water-e/fireworks
5db359430adc138a313326de3049e6f89dec4cbc
[ "BSD-3-Clause-LBNL" ]
null
null
null
fireworks/examples/custom_firetasks/hello_world/hello_world_run.py
water-e/fireworks
5db359430adc138a313326de3049e6f89dec4cbc
[ "BSD-3-Clause-LBNL" ]
1
2018-10-28T01:41:15.000Z
2018-10-28T01:41:15.000Z
from fireworks import LaunchPad, Firework, Workflow from fireworks.core.rocket_launcher import launch_rocket from fireworks.examples.custom_firetasks.hello_world.hello_world_task import HelloTask if __name__ == "__main__": # initialize the database lp = LaunchPad() # you might need to modify the connection se...
40.4375
108
0.758887
c0c38d7a393970248dc6968c46bcc85587e12743
390
py
Python
aliyun/api/rest/Slb20140515DeleteLoadBalancerListenerRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
aliyun/api/rest/Slb20140515DeleteLoadBalancerListenerRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
aliyun/api/rest/Slb20140515DeleteLoadBalancerListenerRequest.py
snowyxx/aliyun-python-demo
ed40887ddff440b85b77f9b2a1fcda11cca55c8b
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2015.01.23 ''' from aliyun.api.base import RestApi class Slb20140515DeleteLoadBalancerListenerRequest(RestApi): def __init__(self,domain='slb.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.ListenerPort = None self.LoadBalancerId = None def getapiname(self)...
30
66
0.758974
529bdc9d94dca41697e8277cd64e84d19ae138c2
9,844
py
Python
test/unit/test_environment.py
uditbhatia/sagemaker-containers
3c499c8a4e00c7ff7486a4632c9330b5ea2313d3
[ "Apache-2.0" ]
null
null
null
test/unit/test_environment.py
uditbhatia/sagemaker-containers
3c499c8a4e00c7ff7486a4632c9330b5ea2313d3
[ "Apache-2.0" ]
null
null
null
test/unit/test_environment.py
uditbhatia/sagemaker-containers
3c499c8a4e00c7ff7486a4632c9330b5ea2313d3
[ "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' file acc...
37.572519
120
0.724197
699d7a81d491fcc8d5322c4b059de18560307681
625
py
Python
playeragent.py
Thiele/dragster-bot
49f0203d6e914c1ede5c192406faf8a5ef5cb2ca
[ "MIT" ]
null
null
null
playeragent.py
Thiele/dragster-bot
49f0203d6e914c1ede5c192406faf8a5ef5cb2ca
[ "MIT" ]
null
null
null
playeragent.py
Thiele/dragster-bot
49f0203d6e914c1ede5c192406faf8a5ef5cb2ca
[ "MIT" ]
null
null
null
class PlayerAgent: def __init__(self,actions): self.actions = actions def act(self, observation): print("Please act with one of the following ints:") for i in range(len(self.actions)): print(str(i)+": "+str(self.actions[i])) r = input("Enter action...") if r ...
27.173913
73
0.5584
8f603ee3b9042f688bae7510b8aaf9fa167a9e3d
653
py
Python
setup.py
agloks/Megahack_03_2020
7b04f606a59da84c91f811b53a694b6fead24205
[ "MIT" ]
null
null
null
setup.py
agloks/Megahack_03_2020
7b04f606a59da84c91f811b53a694b6fead24205
[ "MIT" ]
null
null
null
setup.py
agloks/Megahack_03_2020
7b04f606a59da84c91f811b53a694b6fead24205
[ "MIT" ]
1
2020-07-05T23:50:58.000Z
2020-07-05T23:50:58.000Z
""" Hello World app for running Python apps on Bluemix """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with ...
26.12
68
0.727412
27135163d6711a9eafd74c1a141ca1c1e0c595cf
658
py
Python
setup.py
jwergieluk/openfigi
db13524fb94ca9a4973b20cb9219ea3e2607b7f0
[ "MIT" ]
26
2017-01-25T03:34:56.000Z
2021-12-01T11:52:18.000Z
setup.py
jwergieluk/openfigi
db13524fb94ca9a4973b20cb9219ea3e2607b7f0
[ "MIT" ]
2
2018-05-01T22:44:15.000Z
2021-05-28T23:24:11.000Z
setup.py
jwergieluk/openfigi
db13524fb94ca9a4973b20cb9219ea3e2607b7f0
[ "MIT" ]
6
2017-01-07T18:01:06.000Z
2019-11-15T03:39:30.000Z
from setuptools import setup, find_packages with open('LICENSE') as f: license = f.read() setup( name='openfigi', version='0.0.9', description='A simple wrapper for openfigi.com', author='Julian Wergieluk', author_email='julian@wergieluk.com', url='https://github.com/jwergieluk/openfigi', ...
28.608696
76
0.647416
9a2e79e4c0875fc5bfe25af4bf92052dbef4efa9
3,502
py
Python
zinv/scripts/zinv_analyse.py
shane-breeze/zinv-analysis
496abf9cb0e77831d580be417bcad7845c347704
[ "MIT" ]
1
2019-02-06T12:15:42.000Z
2019-02-06T12:15:42.000Z
zinv/scripts/zinv_analyse.py
shane-breeze/zinv-analysis
496abf9cb0e77831d580be417bcad7845c347704
[ "MIT" ]
12
2019-03-27T15:52:34.000Z
2020-02-06T12:09:37.000Z
zinv/scripts/zinv_analyse.py
shane-breeze/zinv-analysis
496abf9cb0e77831d580be417bcad7845c347704
[ "MIT" ]
1
2019-03-14T17:23:33.000Z
2019-03-14T17:23:33.000Z
#!/usr/bin/env python from zinv.modules import analyse import warnings warnings.filterwarnings('ignore') import logging logging.getLogger(__name__).setLevel(logging.INFO) logging.getLogger("alphatwirl").setLevel(logging.INFO) logging.getLogger("alphatwirl.progressbar.ProgressReport").setLevel(logging.ERROR) logging....
50.753623
82
0.613935
d7872f275f4baf0bb04bc1786443cdb33028a1a3
3,763
py
Python
lib/galaxy/webapps/galaxy/controllers/openid.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
1
2021-10-08T02:14:24.000Z
2021-10-08T02:14:24.000Z
lib/galaxy/webapps/galaxy/controllers/openid.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/webapps/galaxy/controllers/openid.py
maikenp/galaxy
eb3f3c816f1f94bc328d092f30c8966d41a56a0d
[ "CC-BY-3.0" ]
null
null
null
""" Contains the OpenID interface in the Universe class """ import logging from galaxy import web from galaxy.openid.openid_manager import OpenIDManager from galaxy.openid.providers import OpenIDProviders from galaxy.structured_app import StructuredApp from galaxy.util import unicodify from galaxy.web import url_for ...
50.173333
144
0.69705
715da47b91be799efaad2830a92b8543759b36ac
1,202
py
Python
utils.py
GrzegorzMika/Towards-adaptivity-via-a-new-discrepancy-principle-for-Poisson-inverse-problems
13f62a5fa2a446c48796e12536e61125302d638d
[ "MIT" ]
null
null
null
utils.py
GrzegorzMika/Towards-adaptivity-via-a-new-discrepancy-principle-for-Poisson-inverse-problems
13f62a5fa2a446c48796e12536e61125302d638d
[ "MIT" ]
null
null
null
utils.py
GrzegorzMika/Towards-adaptivity-via-a-new-discrepancy-principle-for-Poisson-inverse-problems
13f62a5fa2a446c48796e12536e61125302d638d
[ "MIT" ]
1
2022-01-23T19:15:01.000Z
2022-01-23T19:15:01.000Z
import os from datetime import date from io import StringIO import pandas as pd from google.cloud import storage from tqdm import tqdm def find(name, path): for root, dirs, files in os.walk(path): if name in files: return os.path.join(root, name) def download(): storage_client = storage...
28.619048
96
0.650582
7abe5db38d8e298415ef5aa791edb49a7bd8a806
644
py
Python
sensors/configure.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
70
2015-11-16T18:04:01.000Z
2022-03-05T09:04:02.000Z
sensors/configure.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
1
2016-08-03T05:13:19.000Z
2016-08-03T06:19:39.000Z
sensors/configure.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
34
2015-12-15T17:29:23.000Z
2021-11-18T14:15:12.000Z
#!/usr/bin/env python3 from build import ninja_common build = ninja_common.Build('sensors') build.build_shared('auvserial', ['serial/serial.cpp']) # build.build_cmd('auv-podd', # ['power/podd/main.cpp'], # auv_deps=['auvserial', 'shm']) # build.build_cmd('auv-hydrod-ui'...
30.666667
73
0.618012
bf92d622e295aa061544959efd11d908255eb77e
6,788
py
Python
src/frozen_lake.py
moamenibrahim/reinforcement-learning
2ea87eb5be4e6e9ae007affb7df17f1f3aacac95
[ "Unlicense" ]
null
null
null
src/frozen_lake.py
moamenibrahim/reinforcement-learning
2ea87eb5be4e6e9ae007affb7df17f1f3aacac95
[ "Unlicense" ]
null
null
null
src/frozen_lake.py
moamenibrahim/reinforcement-learning
2ea87eb5be4e6e9ae007affb7df17f1f3aacac95
[ "Unlicense" ]
null
null
null
import gym import numpy as np env = gym.make('FrozenLake-v0') def policy_evaluation(policy, environment, discount_factor=1.0, theta=1e-9, max_iterations=1e9): # Number of evaluation iterations evaluation_iterations = 1 # Initialize a value function for each state as zero V = np.zeros(environment.nS...
41.390244
116
0.649234
1ba64780503ddc40c98a976e57a18363d8ae8ccc
2,287
py
Python
ivi/rigol/rigolDP832.py
lude-ma/python-ivi
f62907a2922d5fc98e0a524ef6ddbaa62791ff14
[ "MIT" ]
1
2017-09-09T06:04:14.000Z
2017-09-09T06:04:14.000Z
ivi/rigol/rigolDP832.py
lude-ma/python-ivi
f62907a2922d5fc98e0a524ef6ddbaa62791ff14
[ "MIT" ]
null
null
null
ivi/rigol/rigolDP832.py
lude-ma/python-ivi
f62907a2922d5fc98e0a524ef6ddbaa62791ff14
[ "MIT" ]
null
null
null
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2013-2014 Alex Forencich 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 limitation the...
31.763889
77
0.572366
805ee21bdb95f1b70519c7ebc1ecaf6f34afa885
10,788
py
Python
petek.py
Yoav6/Petek
d37e59f929b7123235f1fca6dd65d805c56f3838
[ "MIT" ]
null
null
null
petek.py
Yoav6/Petek
d37e59f929b7123235f1fca6dd65d805c56f3838
[ "MIT" ]
null
null
null
petek.py
Yoav6/Petek
d37e59f929b7123235f1fca6dd65d805c56f3838
[ "MIT" ]
null
null
null
import sys from SQLper import * #from PyQt5 import uic from PyQt5 import QtWidgets as qtw from PyQt5 import QtCore as qtc from PyQt5 import QtGui as qtg from stylesheet import styleSheet from main_window import Ui_MainWindow from homepage_layout import Ui_homepage_layout from tab_window import Ui_TabWindow fr...
39.661765
119
0.641917
aa9853ce6132882b4783a995f79a95db9d4ba8f9
928
py
Python
79-desafio.py
SweydAbdul/EstudosPythonCeV
5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b
[ "MIT" ]
null
null
null
79-desafio.py
SweydAbdul/EstudosPythonCeV
5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b
[ "MIT" ]
null
null
null
79-desafio.py
SweydAbdul/EstudosPythonCeV
5eb61d4e1d47b99d57de776c835aa9f3c2bcee3b
[ "MIT" ]
null
null
null
''' n = [] nc = n[:] c = 0 while True: n.append(int(input('Digite um valor: '))) if n[c] in nc: print('Valor duplicado nao vou adicionar') n.remove(n[c]) else: nc.append(n[c]) print('Valor adicionado com sucesso...') c+=1 while True: q = str(input('Quer co...
22.634146
56
0.510776
58d017b23f789dfda1a70cd834c6e7e40d9f84d8
4,177
py
Python
main.py
AaronX121/Soft-Decision-Tree
9b02e635a1265b62df2d831f7f15e1742b0d5002
[ "BSD-3-Clause" ]
46
2019-03-24T14:46:04.000Z
2020-12-10T03:48:00.000Z
main.py
AaronX121/Soft-Decision-Tree
9b02e635a1265b62df2d831f7f15e1742b0d5002
[ "BSD-3-Clause" ]
4
2019-06-18T09:48:42.000Z
2020-05-05T14:29:07.000Z
main.py
AaronX121/Soft-Decision-Tree
9b02e635a1265b62df2d831f7f15e1742b0d5002
[ "BSD-3-Clause" ]
10
2020-02-19T12:27:31.000Z
2020-12-14T11:04:54.000Z
"""Training and evaluating a soft decision tree on the MNIST dataset.""" import torch import torch.nn as nn import torch.nn.functional as F from torchvision import datasets, transforms from SDT import SDT def onehot_coding(target, device, output_dim): """Convert the class labels into one-hot encoded vectors."""...
31.171642
79
0.555901
e4c4a02279c6f0d38fbd93c5746deaf45fa91165
10,687
py
Python
src/scripts/segmentation/analysis/render_general.py
hendraet/IIC
a5bab915eda133b0ecfd42eaacd60c7b26807cb6
[ "MIT" ]
null
null
null
src/scripts/segmentation/analysis/render_general.py
hendraet/IIC
a5bab915eda133b0ecfd42eaacd60c7b26807cb6
[ "MIT" ]
null
null
null
src/scripts/segmentation/analysis/render_general.py
hendraet/IIC
a5bab915eda133b0ecfd42eaacd60c7b26807cb6
[ "MIT" ]
null
null
null
import argparse import os import pickle import sys from datetime import datetime import numpy as np import torch import src.archs as archs from src.utils.cluster.cluster_eval import \ _get_assignment_data_matches from src.utils.cluster.transforms import sobel_process from src.utils.segmentation.data import make_Coc...
37.236934
87
0.582858
f33789cab3cb4886b5bb8b21580767b427b47501
11,673
py
Python
Survey.py
ebellm/VolumetricSurveySpeed
cc255292592e47aa15d6dab328770950d17d362f
[ "BSD-3-Clause" ]
1
2018-06-10T06:55:32.000Z
2018-06-10T06:55:32.000Z
Survey.py
ebellm/VolumetricSurveySpeed
cc255292592e47aa15d6dab328770950d17d362f
[ "BSD-3-Clause" ]
null
null
null
Survey.py
ebellm/VolumetricSurveySpeed
cc255292592e47aa15d6dab328770950d17d362f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division import numpy as N from Telescope import P48, Blanco from Camera import PTF_cam, ZTF_cam import cosmolopy as cp import matplotlib.pyplot as plt from scipy.integrate import quad from scipy.optimize import golden SR_TO_SQ_DEG = 3282.8 SIDEREAL_DAY_SEC = 23.9344699 * 3600. SEC2HR = 1. / 36...
36.823344
138
0.630858
67aa2fe5c9674002096c5061ace64c6a2defa06d
22,705
py
Python
sdk/python/pulumi_azure_native/cache/v20170201/redis.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/cache/v20170201/redis.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/cache/v20170201/redis.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
46.336735
911
0.655803
1d29f3263832c4a4882ed628bca28c1872d1f65a
21,127
py
Python
sdks/python/apache_beam/coders/coders.py
ravwojdyla/beam
fbcde4cdc7d68de8734bf540c079b2747631a854
[ "Apache-2.0" ]
1
2020-07-14T16:30:12.000Z
2020-07-14T16:30:12.000Z
sdks/python/apache_beam/coders/coders.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/coders/coders.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "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 us...
29.2213
80
0.707578
dc3a79cf095fb7cfc32a008341d3258781d41c4c
938
py
Python
melodic.py
boazbb/sight-music-generator
84baa03c5483f3a02234b19a6207953d018047b9
[ "MIT" ]
null
null
null
melodic.py
boazbb/sight-music-generator
84baa03c5483f3a02234b19a6207953d018047b9
[ "MIT" ]
null
null
null
melodic.py
boazbb/sight-music-generator
84baa03c5483f3a02234b19a6207953d018047b9
[ "MIT" ]
null
null
null
""" Writes the notes for melodic instruments (i.e. instruments that play a single note at a time). """ import random from note_data import * REST_CHANCE = 5 # This means one in five notes will be rest class Melodic: def __init__(self, file): self.file = file # Writes piano bars into the file de...
26.055556
65
0.66951
70909bb87e0d6f5abb7c53d6c49b9b9f2135411f
870
py
Python
pyQPanda/pyqpanda/TorchLayer/basic_eng.py
QianJianhua1/QPanda-2
a13c7b733031b1d0007dceaf1dae6ad447bb969c
[ "Apache-2.0" ]
631
2019-01-21T01:33:38.000Z
2022-03-31T07:33:04.000Z
pyQPanda/pyqpanda/TorchLayer/basic_eng.py
QianJianhua1/QPanda-2
a13c7b733031b1d0007dceaf1dae6ad447bb969c
[ "Apache-2.0" ]
24
2019-02-01T10:12:45.000Z
2021-12-02T01:49:57.000Z
pyQPanda/pyqpanda/TorchLayer/basic_eng.py
QianJianhua1/QPanda-2
a13c7b733031b1d0007dceaf1dae6ad447bb969c
[ "Apache-2.0" ]
80
2019-01-21T03:04:20.000Z
2022-03-29T15:38:45.000Z
from pyqpanda import * import numpy as np def Generator_Weight_Circuit(Circuit,weights, qubits, rotation=None): rotation = rotation or RX shape = np.shape(weights) if len(shape) != 2: raise ValueError(f"Weights tensor must be 2-dimensional; got shape {shape}") if shape[1] ...
33.461538
100
0.517241
3941200697be054e2559c5151ae113a8d3b197b2
19,862
py
Python
fn_machine_learning/fn_machine_learning/bin/res_ml.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_machine_learning/fn_machine_learning/bin/res_ml.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_machine_learning/fn_machine_learning/bin/res_ml.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # # (c) Copyright IBM Corp. 2010, 2019. All Rights Reserved. # """ RES-ML ------ A command line tool to build machine learning model. It supports: 1. config. Generate a sample ml.config 2...
36.244526
117
0.59274
a67656edd46734ac55e77bed5a82d2c6b88928a0
1,025
py
Python
pundit/base.py
sachinvettithanam/rule_engine
4d6299d07594e959367c4126a18a325f5d5cc5c8
[ "MIT" ]
2
2017-11-07T06:35:53.000Z
2019-03-18T12:32:55.000Z
pundit/base.py
sachinvettithanam/rule_engine
4d6299d07594e959367c4126a18a325f5d5cc5c8
[ "MIT" ]
4
2016-04-20T13:58:37.000Z
2016-04-23T15:14:50.000Z
pundit/base.py
sachinvettithanam/rule_engine
4d6299d07594e959367c4126a18a325f5d5cc5c8
[ "MIT" ]
2
2017-11-07T06:35:55.000Z
2019-12-05T11:44:54.000Z
import json ''' PunditBase Parent Class Arguments : name ''' class PunditBase(): def __init__(self): self.mine = 'asd' def input_preprocess(self, id, function): def lower(self, id): self.processed_input = [] for x in self.input_set: if x['id'] == id: self.processed_input.append({'id': x['...
16.803279
98
0.610732
951c4b64ebd8cf9fd25b5a064a34230e1e60170d
1,734
py
Python
official/cv/psenet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/psenet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/psenet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.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...
34.68
115
0.732987
59a274412863f5f77740dd366416f46e4d35ddc4
4,607
py
Python
myblog/myblog/settings.py
IAMJACKLiNOTBRUCELi/MyBlog
6927b21873d1c866d79fe03b3afdbc6bd3812374
[ "MIT" ]
1
2019-02-17T07:53:13.000Z
2019-02-17T07:53:13.000Z
myblog/myblog/settings.py
IAMJACKLiNOTBRUCELi/MyBlog
6927b21873d1c866d79fe03b3afdbc6bd3812374
[ "MIT" ]
null
null
null
myblog/myblog/settings.py
IAMJACKLiNOTBRUCELi/MyBlog
6927b21873d1c866d79fe03b3afdbc6bd3812374
[ "MIT" ]
null
null
null
""" Django settings for myblog project. Generated by 'django-admin startproject' using Django 2.1.2. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os imp...
25.313187
91
0.651617
f9d99507b671690f709fd2ac1da62d24a64e8f3e
2,937
py
Python
proj/fpga/zcu106/Vitis-AI-DPU_TRD-for-ZCU106/zcu106_dpu/Vitis-AI/alveo/examples/caffe/pix2pix/maps_AtoB/maps_AtoB_fpga.py
timebe00/Mercenary
7762bad28e4f49b2ad84fb8abbd8056bd01f61d4
[ "MIT" ]
3
2020-10-29T15:00:30.000Z
2021-10-21T08:09:34.000Z
proj/fpga/zcu106/Vitis-AI-DPU_TRD-for-ZCU106/zcu106_dpu/Vitis-AI/alveo/examples/caffe/pix2pix/maps_AtoB/maps_AtoB_fpga.py
timebe00/Mercenary
7762bad28e4f49b2ad84fb8abbd8056bd01f61d4
[ "MIT" ]
20
2020-10-31T03:19:03.000Z
2020-11-02T18:59:49.000Z
proj/fpga/zcu106/Vitis-AI-DPU_TRD-for-ZCU106/zcu106_dpu/Vitis-AI/alveo/examples/caffe/pix2pix/maps_AtoB/maps_AtoB_fpga.py
timebe00/Mercenary
7762bad28e4f49b2ad84fb8abbd8056bd01f61d4
[ "MIT" ]
9
2020-10-14T02:04:10.000Z
2020-12-01T08:23:02.000Z
# Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
27.194444
133
0.635683
855e427aaefe553362b140e3f24261768cb0fc85
22,338
py
Python
TheFuzzer/lib/python2.7/site-packages/twisted/python/compat.py
akellermann97/college-dump
5c82d93767038709ad71b8f212fdb6243eeb0aec
[ "MIT" ]
null
null
null
TheFuzzer/lib/python2.7/site-packages/twisted/python/compat.py
akellermann97/college-dump
5c82d93767038709ad71b8f212fdb6243eeb0aec
[ "MIT" ]
null
null
null
TheFuzzer/lib/python2.7/site-packages/twisted/python/compat.py
akellermann97/college-dump
5c82d93767038709ad71b8f212fdb6243eeb0aec
[ "MIT" ]
null
null
null
# -*- test-case-name: twisted.test.test_compat -*- # # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Compatibility module to provide backwards compatibility for useful Python features. This is mainly for use of internal Twisted code. We encourage you to use the latest version of Python di...
25.441913
79
0.628257
259c42caa9ae45055e76dddf22797f799986008a
9,491
py
Python
tf_agents/bandits/environments/classification_environment_test.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
1
2021-09-22T12:04:03.000Z
2021-09-22T12:04:03.000Z
tf_agents/bandits/environments/classification_environment_test.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
null
null
null
tf_agents/bandits/environments/classification_environment_test.py
FlorisHoogenboom/agents
2cd5a61e1838b52012271f1fb8617c29a55279a9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
42.370536
80
0.692867
f4dae3bff631b24d97823b8edb20c35064d230f4
790
py
Python
rest/urls.py
betosales/django-rest-api-consume
7a9e3cbae4e59b87883b4986ca8256331c909796
[ "MIT" ]
null
null
null
rest/urls.py
betosales/django-rest-api-consume
7a9e3cbae4e59b87883b4986ca8256331c909796
[ "MIT" ]
null
null
null
rest/urls.py
betosales/django-rest-api-consume
7a9e3cbae4e59b87883b4986ca8256331c909796
[ "MIT" ]
null
null
null
"""rest URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
34.347826
77
0.7
90c834230d1f4be57be4a5278225696b768c1c8d
8,014
py
Python
lambdas/dynamoDBToElasticSearch/lambda_function.py
zavier-sanders/serverless-media-library
1f88f2845a2a50220ecdc797d319cefc42d814be
[ "MIT" ]
1
2019-02-05T01:58:35.000Z
2019-02-05T01:58:35.000Z
lambdas/dynamoDBToElasticSearch/lambda_function.py
zavier-sanders/serverless-media-library
1f88f2845a2a50220ecdc797d319cefc42d814be
[ "MIT" ]
null
null
null
lambdas/dynamoDBToElasticSearch/lambda_function.py
zavier-sanders/serverless-media-library
1f88f2845a2a50220ecdc797d319cefc42d814be
[ "MIT" ]
null
null
null
import base64 import datetime import json import logging import os import time import traceback import urllib import urlparse from botocore.auth import SigV4Auth from botocore.awsrequest import AWSRequest from botocore.credentials import get_credentials from botocore.endpoint import BotocoreHTTPSession from botocore.s...
40.474747
148
0.673696
a2fcfb623573ab41ce92ae5c1872899437f2dad3
1,828
py
Python
data/python/countRelativeWeights.py
turger/serious-spin
8a10750c8a0fce3953ff89a4a89d0ca499b1c31d
[ "MIT" ]
1
2019-10-20T18:37:07.000Z
2019-10-20T18:37:07.000Z
data/python/countRelativeWeights.py
turger/serious-spin
8a10750c8a0fce3953ff89a4a89d0ca499b1c31d
[ "MIT" ]
null
null
null
data/python/countRelativeWeights.py
turger/serious-spin
8a10750c8a0fce3953ff89a4a89d0ca499b1c31d
[ "MIT" ]
null
null
null
import json, sys from math import pow # FILE HANDLING # def writeJsonToFile(json_data, file_path): try: with open(file_path, 'w') as outfile: json.dump(json_data, outfile) return True except Exception as e: print(e) print('Failed to dump json to file ' + file_path) return False def getJsonFromFile(fil...
26.492754
82
0.71116
1f89abeb08586de3715273f4a14705c875082653
3,951
py
Python
aitextgen/utils.py
cdpierse/aitextgen
64ca5234ba5a1e0136fc0a10ddbcc94226a51501
[ "MIT" ]
4
2020-07-10T09:42:35.000Z
2020-09-27T17:19:49.000Z
aitextgen/utils.py
cdpierse/aitextgen
64ca5234ba5a1e0136fc0a10ddbcc94226a51501
[ "MIT" ]
1
2020-10-01T20:44:13.000Z
2020-10-05T17:50:04.000Z
aitextgen/utils.py
cdpierse/aitextgen
64ca5234ba5a1e0136fc0a10ddbcc94226a51501
[ "MIT" ]
null
null
null
import os import requests from tqdm.auto import tqdm import torch import numpy as np import random from transformers import GPT2Config def download_gpt2(model_dir: str = "tf_model", model_name: str = "124M") -> None: """ Downloads the GPT-2 model (weights only) into the specified directory from Google Clo...
27.248276
82
0.638319
dcdebabbd1d5cb4fecc29188e3a59aae63816794
4,382
py
Python
usr/share/pyshared/ajenti/middleware.py
lupyuen/RaspberryPiImage
664e8a74b4628d710feab5582ef59b344b9ffddd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
usr/share/pyshared/ajenti/middleware.py
lupyuen/RaspberryPiImage
664e8a74b4628d710feab5582ef59b344b9ffddd
[ "Apache-2.0" ]
null
null
null
usr/share/pyshared/ajenti/middleware.py
lupyuen/RaspberryPiImage
664e8a74b4628d710feab5582ef59b344b9ffddd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
import hashlib import time import random import gevent import ajenti from ajenti.api import * from ajenti.cookies import Cookie, Cookies from ajenti.plugins import manager from ajenti.http import HttpHandler from ajenti.users import UserManager class Session (object): """ Holds the HTTP session data """ ...
30.013699
111
0.60178
8d6c0732cbaa49ad1456361fb4e95e78eca40089
695
py
Python
app.py
ap-t/yfinance-rest-api
df0f2d59a05637c9404740dc953bd546e5ee79bf
[ "MIT" ]
null
null
null
app.py
ap-t/yfinance-rest-api
df0f2d59a05637c9404740dc953bd546e5ee79bf
[ "MIT" ]
null
null
null
app.py
ap-t/yfinance-rest-api
df0f2d59a05637c9404740dc953bd546e5ee79bf
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS from yfinancerestapi.home.routes import home from yfinancerestapi.system.routes import system_api from yfinancerestapi.finance.stocks.routes import stocks_api from yfinancerestapi.finance.news.routes import news_api def create_app(): app = Flask(__name__) COR...
31.590909
75
0.769784
cfce448de4932fcdd0211b3f96ebcde12de01549
920
py
Python
python/examples/_paramiko.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
null
null
null
python/examples/_paramiko.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
1
2021-03-10T04:00:01.000Z
2021-03-10T04:00:01.000Z
python/examples/_paramiko.py
mr-uuid/snippets
49bb59641d8160d7635b8d5e574cb50f9e5362e2
[ "MIT" ]
null
null
null
import getpass import paramiko class SSHConnection(object): def __init__(self, host, username, password): self.host = host self.username = username self.password = password self.ssh = paramiko.SSHClient() self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) d...
27.878788
72
0.619565
f08303f8b77e23cac257c905989876bf21a421ae
1,359
py
Python
ooobuild/dyn/drawing/x_layer_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/drawing/x_layer_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/drawing/x_layer_manager.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.72973
83
0.768212
fb2f11a3c6a7520d0d15251b9ada1b349595c07b
56
py
Python
robonet/video_prediction/testing/__init__.py
russellmendonca/RoboNet
de30fa069dacb2888e62bd239e7a3471ea3aaa9d
[ "MIT" ]
140
2019-10-25T03:05:04.000Z
2022-03-07T17:41:56.000Z
robonet/video_prediction/testing/__init__.py
russellmendonca/RoboNet
de30fa069dacb2888e62bd239e7a3471ea3aaa9d
[ "MIT" ]
9
2019-12-22T20:52:47.000Z
2022-02-22T07:56:43.000Z
robonet/video_prediction/testing/__init__.py
russellmendonca/RoboNet
de30fa069dacb2888e62bd239e7a3471ea3aaa9d
[ "MIT" ]
26
2019-10-21T04:49:55.000Z
2021-09-17T15:50:17.000Z
from .model_evaluation_interface import VPredEvaluation
28
55
0.910714
17603dd3de02f5cc4f2660c679c7a84203b650d5
2,473
py
Python
bankruptcy/cases/migrations/0005_auto_20191201_0439.py
euirim/bankruptcy-db
72f5eea8a78c7959845a4a21519ee2e4defd4be2
[ "MIT" ]
1
2021-01-04T20:26:56.000Z
2021-01-04T20:26:56.000Z
bankruptcy/cases/migrations/0005_auto_20191201_0439.py
euirim/bankruptcy-db
72f5eea8a78c7959845a4a21519ee2e4defd4be2
[ "MIT" ]
3
2021-03-09T23:52:42.000Z
2022-02-10T20:17:24.000Z
bankruptcy/cases/migrations/0005_auto_20191201_0439.py
euirim/bankruptcy-db
72f5eea8a78c7959845a4a21519ee2e4defd4be2
[ "MIT" ]
1
2021-01-06T04:52:21.000Z
2021-01-06T04:52:21.000Z
# Generated by Django 2.2.6 on 2019-12-01 04:39 from django.db import migrations, models import django.db.models.deletion import taggit.managers class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('taggit', '0003_taggeditem_add_unique_index...
47.557692
205
0.632835
50f1443017b10a12d11ccde54f59c149c360b713
832
py
Python
Python/BasicDS/LinkedListSet.py
i-love-linux/BasicDataStructure
7853e14053d3425c836b6164cc1c78c9ee68213b
[ "MIT" ]
null
null
null
Python/BasicDS/LinkedListSet.py
i-love-linux/BasicDataStructure
7853e14053d3425c836b6164cc1c78c9ee68213b
[ "MIT" ]
null
null
null
Python/BasicDS/LinkedListSet.py
i-love-linux/BasicDataStructure
7853e14053d3425c836b6164cc1c78c9ee68213b
[ "MIT" ]
null
null
null
# coding=utf-8 # @Time : 2020/2/13 # @Author : Wang Xiaoxiao # @University : Dalian University of Technology # @FileName : LinkedListSet.py # @Software : PyCharm # @github : https://github.com/i-love-linux/BasicDataStructure from BasicDS.LinkedList import LinkedList class LinkedListSet: """ ...
22.486486
66
0.600962
8c8f3cd2c9ff03898d82d36848578acd87312e1a
255
py
Python
covid/util/make_test_constants.py
grayfallstown/covid-blockchain
194d5351c70d3ee5d928f767e21c7894cfbb59a7
[ "Apache-2.0" ]
14
2021-07-28T09:56:07.000Z
2022-02-09T04:28:14.000Z
covid/util/make_test_constants.py
grayfallstown/covid-blockchain
194d5351c70d3ee5d928f767e21c7894cfbb59a7
[ "Apache-2.0" ]
23
2021-07-28T10:16:56.000Z
2022-03-26T10:43:53.000Z
covid/util/make_test_constants.py
grayfallstown/covid-blockchain
194d5351c70d3ee5d928f767e21c7894cfbb59a7
[ "Apache-2.0" ]
9
2021-07-28T02:41:24.000Z
2022-03-15T08:32:49.000Z
from typing import Dict from covid.consensus.default_constants import DEFAULT_CONSTANTS, ConsensusConstants def make_test_constants(test_constants_overrides: Dict) -> ConsensusConstants: return DEFAULT_CONSTANTS.replace(**test_constants_overrides)
31.875
83
0.854902
89e093e6de97311051e91f1a3017f948907dd4fb
71,223
py
Python
tests/unit/gapic/dataproc_v1beta2/test_job_controller.py
stephaniewang526/python-dataproc
66c7af157ca5f740ebfec95abb7267e361d855f6
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/dataproc_v1beta2/test_job_controller.py
stephaniewang526/python-dataproc
66c7af157ca5f740ebfec95abb7267e361d855f6
[ "Apache-2.0" ]
null
null
null
tests/unit/gapic/dataproc_v1beta2/test_job_controller.py
stephaniewang526/python-dataproc
66c7af157ca5f740ebfec95abb7267e361d855f6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.94139
120
0.689749
2d28c06c4cbb102f1cae1f21af9467cadf101ba7
996
py
Python
lino_book/projects/min3/settings/__init__.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
1
2018-01-12T14:09:58.000Z
2018-01-12T14:09:58.000Z
lino_book/projects/min3/settings/__init__.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
4
2018-02-06T19:53:10.000Z
2019-08-01T21:47:44.000Z
lino_book/projects/min3/settings/__init__.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright 2012-2017 Luc Saffre # License: BSD (see file COPYING for details) from lino.projects.std.settings import * class Site(Site): title = "Lino Mini 3" demo_fixtures = 'std demo demo2' user_types_module = 'lino_xl.lib.xl.user_types' workflows_module = 'lino_xl.lib.cal....
31.125
59
0.685743
110493cbbfe4c11f1fe73b331987a8afcf1074fe
5,545
py
Python
winstall.py
guilhermemaas/glassfish-winstall
3373a2e4a91613c3fda6553b9ef2049d22d8e976
[ "MIT" ]
1
2020-04-23T19:20:18.000Z
2020-04-23T19:20:18.000Z
winstall.py
guilhermemaas/glassfish-winstall
3373a2e4a91613c3fda6553b9ef2049d22d8e976
[ "MIT" ]
null
null
null
winstall.py
guilhermemaas/glassfish-winstall
3373a2e4a91613c3fda6553b9ef2049d22d8e976
[ "MIT" ]
null
null
null
import os import urllib.request import zipfile import subprocess from random import randint import socket import shutil from print_g4wi import print_g4wi from time import sleep def tcp_port_check(ip: str, port: int) -> bool: """Checks if a TCP port is in use/open.""" sock = socket.socket(socket.AF_INET, socke...
33.403614
120
0.62615
441c8cc7994ce973fff77dd3e968670a91de9360
105
py
Python
lib/routes.py
eniehack/CalAni
2b0e9fd98cd4b9605c5318adb1a9696283213d3e
[ "MIT" ]
null
null
null
lib/routes.py
eniehack/CalAni
2b0e9fd98cd4b9605c5318adb1a9696283213d3e
[ "MIT" ]
null
null
null
lib/routes.py
eniehack/CalAni
2b0e9fd98cd4b9605c5318adb1a9696283213d3e
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return "Hello, World!"
11.666667
26
0.647619
7b302e56bedfab507cc5e59c8ceb549e3b73e48e
4,928
py
Python
custom/icds/tests/tasks/test_setup_ccz_file_for_hosting.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
custom/icds/tests/tasks/test_setup_ccz_file_for_hosting.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
custom/icds/tests/tasks/test_setup_ccz_file_for_hosting.py
satyaakam/commcare-hq
233f255ff20ab3a16013e9fdfdb9c1dcf632e415
[ "BSD-3-Clause" ]
null
null
null
import mock from django.template.defaultfilters import linebreaksbr from django.test import SimpleTestCase from custom.icds.tasks.hosted_ccz import setup_ccz_file_for_hosting from custom.icds.models import ( HostedCCZ, HostedCCZLink, ) @mock.patch('custom.icds.tasks.hosted_ccz.open') @mock.patch('custom.icds...
47.384615
114
0.692776
5fd2b8c78c28e0a892f95db402546b3343914d00
1,601
py
Python
sdk/python/pulumi_azure_nextgen/containerregistry/v20170601preview/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/containerregistry/v20170601preview/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/containerregistry/v20170601preview/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from ._enums import * from .get_registry import * from .get_replication import * from .get_webhook import *...
35.577778
116
0.70331
89e99e552116eeb901256ab66f9a16e4dbd2b3df
22,240
py
Python
ah.py
robertpfeiffer/ah-game
67be00df067fb166cc26507040ab490db7e71c77
[ "BSD-3-Clause" ]
null
null
null
ah.py
robertpfeiffer/ah-game
67be00df067fb166cc26507040ab490db7e71c77
[ "BSD-3-Clause" ]
null
null
null
ah.py
robertpfeiffer/ah-game
67be00df067fb166cc26507040ab490db7e71c77
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2020 Jani Tiainen # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # # ...
36.821192
162
0.591817
4157d767bfd8aec02bb83c3f46d58ec2578fabed
17,030
py
Python
python/openag_micro.py
ferguman/OpenAg-MVP-II
600ce329f373ef3dc867163cdd09a424b49cd007
[ "MIT" ]
2
2019-03-18T05:47:55.000Z
2019-05-30T13:08:13.000Z
python/openag_micro.py
ferguman/OpenAg-MVP-II
600ce329f373ef3dc867163cdd09a424b49cd007
[ "MIT" ]
14
2018-06-27T14:02:23.000Z
2020-02-16T19:47:43.000Z
python/openag_micro.py
ferguman/OpenAg-MVP-II
600ce329f373ef3dc867163cdd09a424b49cd007
[ "MIT" ]
null
null
null
# import re import serial from sys import exc_info from threading import Lock from time import sleep, time from python.logger import get_sub_logger from python.LogFileEntryTable import LogFileEntryTable logger = get_sub_logger(__name__) # TODO - make the log file interval a configuration file parameter. log_entry_t...
37.346491
165
0.607634
bfae87825b011c6112f3cd048dcfd1135bb49296
885
py
Python
op_builder/transformer_inference.py
ganik/DeepSpeed
788e1c40e83beacfc4901e7daa1e097d2efb82bb
[ "MIT" ]
1
2022-03-15T07:00:38.000Z
2022-03-15T07:00:38.000Z
op_builder/transformer_inference.py
ganik/DeepSpeed
788e1c40e83beacfc4901e7daa1e097d2efb82bb
[ "MIT" ]
null
null
null
op_builder/transformer_inference.py
ganik/DeepSpeed
788e1c40e83beacfc4901e7daa1e097d2efb82bb
[ "MIT" ]
null
null
null
from .builder import CUDAOpBuilder class InferenceBuilder(CUDAOpBuilder): BUILD_VAR = "DS_BUILD_TRANSFORMER_INFERENCE" NAME = "transformer_inference" def __init__(self, name=None): name = self.NAME if name is None else name super().__init__(name=name) def absolute_name(self): ...
32.777778
70
0.670056
1a2c2a574803b96f3ed3798b51d60e23883938e6
247
py
Python
cursoemvideo/modulos/ex107/ex107.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
cursoemvideo/modulos/ex107/ex107.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
cursoemvideo/modulos/ex107/ex107.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
import moeda preço = float(input('Digite o preço: ')) print(f'''A metade de {preço} é {moeda.metade(preço)}, O dobro de {preço} é {moeda.dobro(preço)}, Aumentado 15%, temos {moeda.aumentar(preço)} Reduzindo 23%, temos {moeda.diminuir(preço)}''')
35.285714
54
0.696356
b90bce6b6451b67e0af9b46d713dd3d3a3b462e5
3,675
py
Python
examples/request_init_listener.py
clohfink/python-driver
30a0e27cd1b8999267c146f0a93adf962a50790b
[ "Apache-2.0" ]
1,163
2015-01-01T03:02:05.000Z
2022-03-22T13:04:00.000Z
examples/request_init_listener.py
clohfink/python-driver
30a0e27cd1b8999267c146f0a93adf962a50790b
[ "Apache-2.0" ]
556
2015-01-05T16:39:29.000Z
2022-03-26T20:51:36.000Z
examples/request_init_listener.py
clohfink/python-driver
30a0e27cd1b8999267c146f0a93adf962a50790b
[ "Apache-2.0" ]
449
2015-01-05T10:28:59.000Z
2022-03-14T23:15:32.000Z
#!/usr/bin/env python # Copyright DataStax, 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...
34.027778
120
0.711293
71dbe5894d912ac12f9454e16d19d991f9f76e6c
16,329
py
Python
dace/transformation/dataflow/strip_mining.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
dace/transformation/dataflow/strip_mining.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
dace/transformation/dataflow/strip_mining.py
targetsm/dace
297b12804a334df8cc6fad5250d5fb0cce20dc6e
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2020 ETH Zurich and the DaCe authors. All rights reserved. """ This module contains classes and functions that implement the strip-mining transformation.""" import dace from copy import deepcopy as dcpy from dace import dtypes, registry, subsets, symbolic from dace.sdfg import SDFG, SDFGState from...
41.027638
80
0.558271
2e849ed6cf235668c888ffdd31c05b414db710cf
4,962
py
Python
data_loader/batch_loader.py
SigureMo/shoeprint-recognition
fe9288938827497c8b555f4fea98e96487943d44
[ "MIT" ]
1
2020-04-06T05:37:03.000Z
2020-04-06T05:37:03.000Z
data_loader/batch_loader.py
cattidea/shoeprint-recognition
fe9288938827497c8b555f4fea98e96487943d44
[ "MIT" ]
2
2019-12-16T23:43:38.000Z
2020-02-01T07:01:39.000Z
data_loader/batch_loader.py
cattidea/shoeprint-recognition
fe9288938827497c8b555f4fea98e96487943d44
[ "MIT" ]
1
2019-11-29T16:41:28.000Z
2019-11-29T16:41:28.000Z
import numpy as np from config_parser.config import MARGIN class BatchLoader(): """ Triplet 选取器,FaceNet 实现 """ def __init__(self, model, indices, class_per_batch, shoe_per_class, img_per_shoe, img_arrays, sess): self.model = model self.indices = indices self.class_...
41.697479
180
0.606207
0697d3306aeb7dc5c8a2b89fe58669c8eefc47b3
481
py
Python
static_model/models/DemoModel.py
12860/dlflow
6fb974fd800649af82b20c5f4e40aea123559d10
[ "Apache-2.0" ]
156
2020-04-22T10:59:26.000Z
2022-02-28T09:09:01.000Z
static_model/models/DemoModel.py
12860/dlflow
6fb974fd800649af82b20c5f4e40aea123559d10
[ "Apache-2.0" ]
5
2020-07-10T05:39:48.000Z
2022-03-15T14:38:23.000Z
static_model/models/DemoModel.py
12860/dlflow
6fb974fd800649af82b20c5f4e40aea123559d10
[ "Apache-2.0" ]
31
2020-04-22T12:51:32.000Z
2022-03-15T07:02:05.000Z
from dlflow.mgr import model, config from dlflow.models import ModelBase @model.reg("model register name") class DemoModel(ModelBase): cfg = config.setting( config.opt("DemoParam", "DemoDefaultValue") ) def __init__(self, fmap): super(DemoModel, self).__init__(fmap) def build(self):...
18.5
51
0.607069
403e8b9ea30bd8b7115f761ab9cf7dae194aebf0
1,332
py
Python
recommendation/urls.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
1
2021-10-19T21:22:38.000Z
2021-10-19T21:22:38.000Z
recommendation/urls.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
null
null
null
recommendation/urls.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
null
null
null
"""cv URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based view...
40.363636
78
0.693694
e18b69cdc5b3a11e45b3092f395fd2cfffcd06b3
2,956
py
Python
h/schemas/base.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
h/schemas/base.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/schemas/base.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Shared functionality for schemas.""" from __future__ import unicode_literals import copy import colander import deform import jsonschema from pyramid.csrf import check_csrf_token, get_csrf_token from pyramid import httpexceptions @colander.deferred def deferred_csrf_token(node, kw): ...
26.159292
82
0.643099
85e27ad4631d2971e58e8422494e986a7b4d903d
58,601
py
Python
Lib/test/test_xmlrpc.py
techkang/cpython
d0fb3cec282fa31223f7002c2e7841a3cc9cc14a
[ "0BSD" ]
4
2020-03-04T06:35:24.000Z
2021-09-20T12:22:45.000Z
Lib/test/test_xmlrpc.py
techkang/cpython
d0fb3cec282fa31223f7002c2e7841a3cc9cc14a
[ "0BSD" ]
148
2020-02-26T01:08:34.000Z
2022-03-01T15:00:59.000Z
Lib/test/test_xmlrpc.py
jab/cpython
a856364cc920d8b16750fd1fadc902efb509754c
[ "0BSD" ]
1
2019-09-02T00:51:59.000Z
2019-09-02T00:51:59.000Z
import base64 import datetime import decimal import sys import time import unittest from unittest import mock import xmlrpc.client as xmlrpclib import xmlrpc.server import http.client import http, http.server import socket import threading import re import io import contextlib from test import support from test.support...
38.706077
87
0.618061
f5681f28bdac502eec8d802e14bd9cd3c3b2a996
1,679
py
Python
flask_app/users/forms.py
julien-bonnefoy/website
a00d70697cc3a367dcdb32ca62ed29493029cf91
[ "Apache-2.0" ]
null
null
null
flask_app/users/forms.py
julien-bonnefoy/website
a00d70697cc3a367dcdb32ca62ed29493029cf91
[ "Apache-2.0" ]
null
null
null
flask_app/users/forms.py
julien-bonnefoy/website
a00d70697cc3a367dcdb32ca62ed29493029cf91
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ user forms: EditProfileForm, EmptyForm, SearchForm, MessageForm """ from flask import request from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField from flask_babel import _, lazy_gettext as _l from wtforms.validators import ValidationError, DataRequ...
32.288462
76
0.674806
329c363f98d3f85f976dbc461f37571fb10caf4e
393
py
Python
t/web/web_view_home_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
1
2019-10-15T08:37:56.000Z
2019-10-15T08:37:56.000Z
t/web/web_view_home_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
t/web/web_view_home_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jeremías Casteglione <jrmsdev@gmail.com> # See LICENSE file. from _sadm.web.view import home def test_index(testing_webapp): wapp = testing_webapp('view') with wapp.mock() as ctx: d = home.index() ctx.wapp.route.assert_any_call('/') ctx.view.assert_any_call('index.html') ctx.tpl.data.assert_...
28.071429
56
0.707379
1e5d3ee304490e9de10e23cda4fb4eb2a76983e7
897
py
Python
DeepLearning/DeepLearning/09_Deep_SongJW/garbageCan/minimini_network.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
1
2019-06-27T04:05:59.000Z
2019-06-27T04:05:59.000Z
DeepLearning/DeepLearning/09_Deep_SongJW/garbageCan/minimini_network.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
DeepLearning/DeepLearning/09_Deep_SongJW/garbageCan/minimini_network.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import mnist_example_2layers_p73 as me73 network=me73.MyTwoLayerNet(10, 5, 2) input_x=np.array([ [1,2,3,4,5,6,7,8,9,10], [3,2,5,3,1,6,4,2,5,2], [5,2,1,3,5,3,2,3,5,10], [5,2,6,7,3,2,4,1,1,2], [7,5,4,5,2,2,1,5,3,1] ]) label_x=np.array([ [0,1], ...
19.085106
52
0.595318
2ff9e7cfdd4a7f85b604d07711e9b54312dd41c0
2,406
py
Python
z2/part2/batch/jm/parser_errors_2/168772915.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
1
2020-04-16T12:13:47.000Z
2020-04-16T12:13:47.000Z
z2/part2/batch/jm/parser_errors_2/168772915.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:50:15.000Z
2020-05-19T14:58:30.000Z
z2/part2/batch/jm/parser_errors_2/168772915.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:45:13.000Z
2020-06-09T19:18:31.000Z
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 168772915 """ """ random actions, total chaos """ board = gamma_new(3, 5, 3, 1) assert board is...
31.246753
44
0.650873
e0bf2872cbdc6bb7ec5a2d61edd2a6c4a6912063
1,561
py
Python
notebooks/utils.py
mikelkl/APTOS2019
fc99c889b09e3cd9d8b2c03bcc6557df017a94ce
[ "MIT" ]
51
2019-09-08T06:58:52.000Z
2021-06-26T16:24:37.000Z
notebooks/utils.py
mikelkl/APTOS2019
fc99c889b09e3cd9d8b2c03bcc6557df017a94ce
[ "MIT" ]
null
null
null
notebooks/utils.py
mikelkl/APTOS2019
fc99c889b09e3cd9d8b2c03bcc6557df017a94ce
[ "MIT" ]
21
2019-09-17T13:29:34.000Z
2021-06-26T16:25:03.000Z
import itertools import matplotlib.pyplot as plt import numpy as np from datetime import datetime, timedelta, timezone def get_BJ_time(): # 拿到UTC时间,并强制设置时区为UTC+0:00 utc_dt = datetime.utcnow().replace(tzinfo=timezone.utc) # astimezone()将转换时区为北京时间 bj_dt = utc_dt.astimezone(timezone(timedelta(hours=8))) ...
33.934783
101
0.660474
9d60a6c6461a38838ee26c03f043c252fe8903f0
465
py
Python
config.py
VitorHaselein/Trabalho2
cd18abaf6e9a70c3e704b6682e7372d9b6fc0448
[ "bzip2-1.0.6" ]
2
2019-06-05T21:00:50.000Z
2019-06-08T20:24:37.000Z
config.py
VitorHaselein/Trabalho2
cd18abaf6e9a70c3e704b6682e7372d9b6fc0448
[ "bzip2-1.0.6" ]
5
2020-07-17T04:44:19.000Z
2022-02-17T23:56:10.000Z
config.py
VitorHaselein/Trabalho2
cd18abaf6e9a70c3e704b6682e7372d9b6fc0448
[ "bzip2-1.0.6" ]
null
null
null
DEBUG = True SQLALCHEMY_DATABASE_URI = 'sqlite:///storage.db' SQLALCHEMY_TRACK_MODIFICATIONS = True import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SQLALCHEMY_DATABASE_URI = 'sqlite:///storage.db' SQLALCHEMY_TRACK_MODIFICATIONS = True # ... # SQLALCHEMY_DATABASE_UR...
33.214286
67
0.72043
0f5ae82dd3fa15aa91d2dcd2daff1a2936868bc4
2,027
py
Python
source/contest/bounce_kpoppenhaeger.py
python4astronomers/python4astronomers
397d0241169483e00c336d7b09299e1633b7a330
[ "CC-BY-3.0" ]
46
2015-01-20T21:09:01.000Z
2022-01-31T04:21:35.000Z
source/contest/bounce_kpoppenhaeger.py
python4astronomers/python4astronomers
397d0241169483e00c336d7b09299e1633b7a330
[ "CC-BY-3.0" ]
9
2015-02-08T14:39:40.000Z
2017-09-14T10:51:54.000Z
source/contest/bounce_kpoppenhaeger.py
python4astronomers/python4astronomers
397d0241169483e00c336d7b09299e1633b7a330
[ "CC-BY-3.0" ]
18
2015-05-15T21:35:13.000Z
2021-12-06T00:48:41.000Z
figure(1) clf() size = 15 axis([-size, size, -size, size]) # Define properties n = 10 pos1 = (np.linspace(10,10,20)).reshape(n, 2) # the bubbles pos2 = (np.linspace(-10,-10,20)).reshape(n, 2) # the thorns vel1 = (0.2 * normal(size=n*2)).reshape(n, 2) vel2 = (0.5 * normal(size=n*2)).reshape(n, 2) sizes1 ...
37.537037
131
0.616675
76de009476f540aa66eb65c347aa38dd3aa0efb3
990
py
Python
alert_grabbing.py
shlokie1999/KRYPTO-CODING-TASK
7acb5d88a5ace507c000feedd7fd1bb5fe3f5dc2
[ "Apache-2.0" ]
null
null
null
alert_grabbing.py
shlokie1999/KRYPTO-CODING-TASK
7acb5d88a5ace507c000feedd7fd1bb5fe3f5dc2
[ "Apache-2.0" ]
null
null
null
alert_grabbing.py
shlokie1999/KRYPTO-CODING-TASK
7acb5d88a5ace507c000feedd7fd1bb5fe3f5dc2
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, jsonify from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) app.config['SQLALCHEMY_DATABASE_URI'] = 'postgres:///Alerts.db' app.config['SQLALCHEMY_TRACK_MODIFICATIONS...
34.137931
65
0.693939
8dd79c537b817feb49545d28d901becd248cc3ac
530
py
Python
webapp/app/migrations/0016_auto_20150828_0735.py
jacyn/burst
a3a655fbffa7f19197eb05ecb07b5fe05f6171b0
[ "MIT" ]
null
null
null
webapp/app/migrations/0016_auto_20150828_0735.py
jacyn/burst
a3a655fbffa7f19197eb05ecb07b5fe05f6171b0
[ "MIT" ]
null
null
null
webapp/app/migrations/0016_auto_20150828_0735.py
jacyn/burst
a3a655fbffa7f19197eb05ecb07b5fe05f6171b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('app', '0015_auto_20150828_0654'), ] operations = [ migrations.AlterField( model_name='object', name=...
25.238095
143
0.6
2c3a3f342b79b164bb476033b2290280ce7d1ea4
1,842
py
Python
train/build-AMP-table.py
celiosantosjr/macrel
b29985c282dfc4243d441f88dfc9be590a8b4fec
[ "MIT" ]
null
null
null
train/build-AMP-table.py
celiosantosjr/macrel
b29985c282dfc4243d441f88dfc9be590a8b4fec
[ "MIT" ]
null
null
null
train/build-AMP-table.py
celiosantosjr/macrel
b29985c282dfc4243d441f88dfc9be590a8b4fec
[ "MIT" ]
null
null
null
from macrel.fasta import fasta_iter from macrel.AMP_features import fasta_features from os import makedirs makedirs('preproc/', exist_ok=True) normalized_fname = 'preproc/AMP_NAMP.train.faa' # The AmPEP data has duplicates! The same exact same sequences appear on both # the positive and negative classes: seen = set()...
41.863636
89
0.698697
dae2167473d19c021bdf76a4655faa6080f6bd5e
295
py
Python
creational/factory_method/data/truck.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
creational/factory_method/data/truck.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
creational/factory_method/data/truck.py
Kozak24/Patterns
351d5c11f7c64ce5d58db37b6715fc8f7d31945a
[ "MIT" ]
null
null
null
from creational.factory_method.data import Transport class Truck(Transport): def load(self) -> None: print(f"Parcel '{self.parcel}' is loaded into {Truck.__name__} {self}") def ship(self) -> None: print(f"Parcel '{self.parcel}' is shipped by {Truck.__name__} {self}")
29.5
79
0.667797
4256feb9b7729fb929693e49842224fea49f5299
1,916
py
Python
airbus_plugins/airbus_plugin_node_manager/src/airbus_plugin_node_manager/plugin.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-10-15T23:32:24.000Z
2019-12-26T12:31:53.000Z
airbus_plugins/airbus_plugin_node_manager/src/airbus_plugin_node_manager/plugin.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
6
2017-09-05T13:52:00.000Z
2017-12-01T14:18:27.000Z
airbus_plugins/airbus_plugin_node_manager/src/airbus_plugin_node_manager/plugin.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-09-04T08:14:36.000Z
2017-09-18T07:22:21.000Z
#!/usr/bin/env python # # Copyright 2015 Airbus # Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA) # # 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 # # ...
25.891892
88
0.713466
ee5e85dd72c1141740123c606ba9e885cb1a923d
77,547
py
Python
phonopy/cui/settings.py
fidanyan/phonopy
560ee340c4ae337dfac8018119ed129ae3b0c8b1
[ "BSD-3-Clause" ]
null
null
null
phonopy/cui/settings.py
fidanyan/phonopy
560ee340c4ae337dfac8018119ed129ae3b0c8b1
[ "BSD-3-Clause" ]
null
null
null
phonopy/cui/settings.py
fidanyan/phonopy
560ee340c4ae337dfac8018119ed129ae3b0c8b1
[ "BSD-3-Clause" ]
1
2021-09-17T08:21:30.000Z
2021-09-17T08:21:30.000Z
# Copyright (C) 2011 Atsushi Togo # All rights reserved. # # This file is part of phonopy. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notic...
36.682592
85
0.588056
c31eba42bd4053cb78786f57a0aa915e07c1a06a
1,594
py
Python
clai/emulator/emulator_docker_log_connector.py
emishulovin/clai
9121241ef036e8482e6883ae7a337ff16397c54e
[ "MIT" ]
391
2019-12-08T03:34:39.000Z
2022-03-04T12:14:01.000Z
clai/emulator/emulator_docker_log_connector.py
Pycomet/clai
4d8e661f1335ce35fd077ad812b56da361565d57
[ "MIT" ]
74
2020-01-28T16:53:00.000Z
2022-03-12T00:48:26.000Z
clai/emulator/emulator_docker_log_connector.py
Pycomet/clai
4d8e661f1335ce35fd077ad812b56da361565d57
[ "MIT" ]
73
2020-02-06T14:46:13.000Z
2022-03-04T12:46:29.000Z
import docker from pytest_docker_tools.wrappers import Container from clai.emulator.docker_message import DockerMessage, DockerReply from clai.tools.docker_utils import wait_server_is_started, read # pylint: disable=too-few-public-methods,protected-access class EmulatorDockerLogConnector: def __init__(self, pool...
36.227273
106
0.663739
5a3180376fd31ac3f8f767077d0e2d388c7a4464
7,786
py
Python
deepreg/train.py
YipengHu/DeepReg
6c610a29c813448be25d384555f5b9bbb6a3bd2a
[ "Apache-2.0" ]
null
null
null
deepreg/train.py
YipengHu/DeepReg
6c610a29c813448be25d384555f5b9bbb6a3bd2a
[ "Apache-2.0" ]
null
null
null
deepreg/train.py
YipengHu/DeepReg
6c610a29c813448be25d384555f5b9bbb6a3bd2a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ Module to train a network using init files and a CLI. """ import argparse import os from typing import Dict, List, Tuple, Union import tensorflow as tf import deepreg.config.parser as config_parser import deepreg.model.optimizer as opt from deepreg.callback import build_checkpoint_callback from d...
30.29572
88
0.647958
7461d656b5c7044a627be87d084619ce6f33d3e2
9,457
py
Python
spfeas/spfeas/helpers/other/progressbar/progressbar.py
siu-panh/mapeo-uso-del-suelo
f7081a4e6784281eddceaa1a6087e0d972c92820
[ "Apache-2.0" ]
26
2017-12-07T06:38:46.000Z
2021-10-01T18:24:47.000Z
spfeas/spfeas/helpers/other/progressbar/progressbar.py
siu-panh/mapeo-uso-del-suelo
f7081a4e6784281eddceaa1a6087e0d972c92820
[ "Apache-2.0" ]
21
2018-03-01T15:08:49.000Z
2019-03-11T15:53:13.000Z
spfeas/spfeas/helpers/other/progressbar/progressbar.py
siu-panh/mapeo-uso-del-suelo
f7081a4e6784281eddceaa1a6087e0d972c92820
[ "Apache-2.0" ]
10
2018-03-20T22:27:43.000Z
2020-09-07T00:27:41.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # progressbar - Text progress bar library for Python. # Copyright (c) 2005 Nilton Volpato # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; ei...
30.704545
79
0.616369
e65c345f781ff124e930a7ff1d05fe2974919925
1,624
py
Python
userbot/client/client_list.py
sensiherme/SensiAnubis
046c40efbe41f5a0aa2d468df39b028f89eb1da5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/client/client_list.py
sensiherme/SensiAnubis
046c40efbe41f5a0aa2d468df39b028f89eb1da5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/client/client_list.py
sensiherme/SensiAnubis
046c40efbe41f5a0aa2d468df39b028f89eb1da5
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Sensi - UserBot # Copyright (c) 2022 Sensi-Userbot # Credits: @indraudah || https://github.com/annubishermes/ # # This file is a part of < https://github.com/annubishermes/hermesubot> # from base64 import b64decode import telethon.utils from telethon.tl.functions.users import GetFullUserRequest async def clients...
24.984615
71
0.625
b48d406b7889ab2f342ed33d69612aeb76c58614
1,344
py
Python
google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_extraction.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_extraction.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_extraction.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 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...
31.255814
120
0.744048
6108ffdaa895632b9cbf29c0574904bb66d5272d
615
py
Python
sdk/identity/azure-identity/azure/identity/_internal/__init__.py
yanfa317/azure-sdk-for-python
5aeebe33ad61fe9da5e7b0314e24a8332c061e3d
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/azure/identity/_internal/__init__.py
yanfa317/azure-sdk-for-python
5aeebe33ad61fe9da5e7b0314e24a8332c061e3d
[ "MIT" ]
null
null
null
sdk/identity/azure-identity/azure/identity/_internal/__init__.py
yanfa317/azure-sdk-for-python
5aeebe33ad61fe9da5e7b0314e24a8332c061e3d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from .auth_code_redirect_handler import AuthCodeRedirectServer from .exception_wrapper import wrap_exceptions from .msal_credentials import ConfidentialClientCredential,...
34.166667
82
0.715447
0183b3deef7466c8c394b8848a1328cdb4d467ce
414
py
Python
auctions/migrations/0011_auto_20201030_1225.py
huutrungrimp/commerce
8a22ea44bfca69f96d721a3ebefd7729487db3cf
[ "MIT" ]
null
null
null
auctions/migrations/0011_auto_20201030_1225.py
huutrungrimp/commerce
8a22ea44bfca69f96d721a3ebefd7729487db3cf
[ "MIT" ]
null
null
null
auctions/migrations/0011_auto_20201030_1225.py
huutrungrimp/commerce
8a22ea44bfca69f96d721a3ebefd7729487db3cf
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-30 16:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auctions', '0010_auto_20201030_1223'), ] operations = [ migrations.AlterField( model_name='bidlisting', name='bidpri...
21.789474
71
0.618357
ed8d7b4385c0efbaa405bd2a81481e1d8078a07a
2,041
py
Python
setup.py
UAL-RE/figshare
a364a662ffecdfd29cce595003b6f2d2fb1ce767
[ "BSD-3-Clause" ]
null
null
null
setup.py
UAL-RE/figshare
a364a662ffecdfd29cce595003b6f2d2fb1ce767
[ "BSD-3-Clause" ]
2
2020-03-27T00:04:46.000Z
2020-07-15T16:43:47.000Z
setup.py
UAL-RE/figshare
a364a662ffecdfd29cce595003b6f2d2fb1ce767
[ "BSD-3-Clause" ]
null
null
null
import setuptools setuptools.setup( name='figshare', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html version='0.3.5', description='Figshare cl...
32.396825
79
0.651641
13e6c18fd85a33758645cefa9b276c034ecb6c9c
1,000
py
Python
tests/sentry/api/serializers/test_incident_activity.py
0x11-dev/sentry
b3e9486b91ba272a65261ae6e29970a006e7d9a5
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/serializers/test_incident_activity.py
0x11-dev/sentry
b3e9486b91ba272a65261ae6e29970a006e7d9a5
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/serializers/test_incident_activity.py
0x11-dev/sentry
b3e9486b91ba272a65261ae6e29970a006e7d9a5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import six from sentry.api.serializers import serialize from sentry.incidents.models import IncidentActivityType from sentry.incidents.logic import create_incident_activity from sentry.testutils import TestCase class IncidentSerializerTest(TestCase): ...
32.258065
90
0.695