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
7a00999c23cfe720d272bf1cdff81528eb345ecd
553
py
Python
src/plugins/kegg/version.py
dongbohu/mygeneset.info
c2a578659f37f55642f20265819aa6ffa3baeb9c
[ "Apache-2.0" ]
5
2020-10-14T14:49:14.000Z
2021-09-09T19:40:20.000Z
src/plugins/kegg/version.py
dongbohu/mygeneset.info
c2a578659f37f55642f20265819aa6ffa3baeb9c
[ "Apache-2.0" ]
28
2020-10-05T20:37:17.000Z
2021-07-12T22:08:36.000Z
src/plugins/kegg/version.py
dongbohu/mygeneset.info
c2a578659f37f55642f20265819aa6ffa3baeb9c
[ "Apache-2.0" ]
6
2020-09-16T17:53:08.000Z
2021-11-11T21:25:19.000Z
#!/usr/bin/env python3 """Utility functions""" def get_release(self): import requests KEGG_INFO_URL = "http://rest.kegg.jp/info/kegg" release = "" resp = requests.get(KEGG_INFO_URL) text_lines = resp.text.strip('\n').split('\n') for line in text_lines: tokens = line.strip().split() ...
21.269231
78
0.598553
02703ffc5382e3c9a2bfad27c1061f7d3c00f2f7
887
py
Python
SourceCode/Module2/keyboard_input1.py
hackettccp/CIS106SampleCode
0717fa0f6dc0c48bc51f16ab44e7425b186a35c3
[ "MIT" ]
1
2019-10-23T03:25:43.000Z
2019-10-23T03:25:43.000Z
SourceCode/Module2/keyboard_input1.py
hackettccp/CIS106
0717fa0f6dc0c48bc51f16ab44e7425b186a35c3
[ "MIT" ]
null
null
null
SourceCode/Module2/keyboard_input1.py
hackettccp/CIS106
0717fa0f6dc0c48bc51f16ab44e7425b186a35c3
[ "MIT" ]
null
null
null
""" Demonstrates prompting a user to enter input using the keyboard. """ #Gets the user's first name. #The input function will print "Enter your first name: " and #wait for the user to type their entry. #When the user presses the "Enter" key on their keyboard, #the value they typed will be returned and assigned to the...
34.115385
63
0.7531
38dad5cb06aba3dc3692e137ec97ea7f065c4ce9
1,306
py
Python
scripts/PIRSensor.py
sradevski/HomeAutomate
ad80a26cc00cf94e585b1fc14cfcb56a051b9837
[ "MIT" ]
null
null
null
scripts/PIRSensor.py
sradevski/HomeAutomate
ad80a26cc00cf94e585b1fc14cfcb56a051b9837
[ "MIT" ]
null
null
null
scripts/PIRSensor.py
sradevski/HomeAutomate
ad80a26cc00cf94e585b1fc14cfcb56a051b9837
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time import come_home import radio_lights import remote_core as core sensor = 23 GPIO.setmode(GPIO.BCM) GPIO.setup(sensor, GPIO.IN, GPIO.PUD_DOWN) #Denotes when to start checking if the kitchen lights should be turned on or not. turn_on_hour = 18 turn_off_hour = 8 last_movement_time = ...
32.65
86
0.680704
bf9cf433c270d9fe45cbd45fa2f3e6a1f8a5c951
5,003
py
Python
Deep-Learning-with-Databricks/Labs/DL 04L - MLflow Lab.py
databricks-academy/deep-learning-with-databricks
b579a75e12cbd3df59894c1bfa917b5a14df9a8c
[ "CC0-1.0" ]
2
2021-11-17T17:40:25.000Z
2022-02-03T22:53:17.000Z
Deep-Learning-with-Databricks/Labs/DL 04L - MLflow Lab.py
databricks-academy/scalable-deep-learning-with-tensorflow-and-apache-spark
b579a75e12cbd3df59894c1bfa917b5a14df9a8c
[ "CC0-1.0" ]
null
null
null
Deep-Learning-with-Databricks/Labs/DL 04L - MLflow Lab.py
databricks-academy/scalable-deep-learning-with-tensorflow-and-apache-spark
b579a75e12cbd3df59894c1bfa917b5a14df9a8c
[ "CC0-1.0" ]
2
2022-01-28T16:02:53.000Z
2022-02-22T13:47:41.000Z
# Databricks notebook source # MAGIC %md-sandbox # MAGIC # MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> # MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> # MAGIC </div> # COMMAND ---------- # M...
35.232394
342
0.646212
2f160889be349d8bec00500e7ecb1cfab3196297
5,412
py
Python
lib/PyAMF-0.7.2/pyamf/tests/gateway/test_wsgi.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
87
2015-01-25T14:54:00.000Z
2021-11-16T13:12:40.000Z
pyamf/tests/gateway/test_wsgi.py
thijstriemstra/pyamf
d13915dfc68d06eb69ffc3e4e2a23257383568cc
[ "MIT" ]
36
2015-01-05T01:24:59.000Z
2021-09-15T20:40:33.000Z
pyamf/tests/gateway/test_wsgi.py
thijstriemstra/pyamf
d13915dfc68d06eb69ffc3e4e2a23257383568cc
[ "MIT" ]
37
2015-01-04T03:31:28.000Z
2022-01-20T04:38:49.000Z
# -*- coding: utf-8 -*- # # Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ WSGI gateway tests. @since: 0.1.0 """ import unittest import pyamf from pyamf import remoting, util from pyamf.remoting.gateway.wsgi import WSGIGateway class WSGIServerTestCase(unittest.TestCase): def setUp(self): ...
28.335079
77
0.608093
5e3dd707916e2d62d78d7331395ec6aa0908473b
889
py
Python
golos/instance.py
golos-blockchain/golos-python
1d88bdad700a5196175605ae6b6a61415bb0c29f
[ "MIT" ]
2
2020-11-04T12:54:07.000Z
2021-04-25T16:27:06.000Z
golos/instance.py
golos-blockchain/golos-python
1d88bdad700a5196175605ae6b6a61415bb0c29f
[ "MIT" ]
null
null
null
golos/instance.py
golos-blockchain/golos-python
1d88bdad700a5196175605ae6b6a61415bb0c29f
[ "MIT" ]
1
2021-04-25T16:27:12.000Z
2021-04-25T16:27:12.000Z
import golos as gls _shared_steemd_instance = None def get_config_node_list(): from golosbase.storage import configStorage nodes = configStorage.get("nodes", None) if nodes: return nodes.split(",") def shared_steemd_instance(): """ This method will initialize _shared_steemd_instance an...
29.633333
117
0.762655
c9e8f5e53239952b4f48b210ad9f00428d36d9e3
297
py
Python
src/22.py
elemel/project-euler
fd8494e0fafd060803727dcf6e163857f7253379
[ "MIT" ]
1
2016-05-08T18:55:35.000Z
2016-05-08T18:55:35.000Z
src/22.py
elemel/project-euler
fd8494e0fafd060803727dcf6e163857f7253379
[ "MIT" ]
null
null
null
src/22.py
elemel/project-euler
fd8494e0fafd060803727dcf6e163857f7253379
[ "MIT" ]
null
null
null
def score(i, name): return (i + 1) * sum(ord(c) - ord('A') + 1 for c in name) def solve(): names = open('names.txt').read().replace('"', '').split(',') names.sort() return sum(score(i, name) for i, name in enumerate(names)) if __name__ == '__main__': print solve()
27
65
0.552189
fe8fe02209c787c1c7b16786c91adb09dec90a4d
2,686
py
Python
tests/manage/z_cluster/cluster_expansion/test_add_capacity.py
ypersky1980/ocs-ci
c2d50d8edbec4f0cc608334716768a97b3e7ce75
[ "MIT" ]
null
null
null
tests/manage/z_cluster/cluster_expansion/test_add_capacity.py
ypersky1980/ocs-ci
c2d50d8edbec4f0cc608334716768a97b3e7ce75
[ "MIT" ]
null
null
null
tests/manage/z_cluster/cluster_expansion/test_add_capacity.py
ypersky1980/ocs-ci
c2d50d8edbec4f0cc608334716768a97b3e7ce75
[ "MIT" ]
null
null
null
import pytest from ocs_ci.framework import config from ocs_ci.framework.pytest_customization.marks import ( polarion_id, pre_upgrade, skipif_aws_i3, skipif_bm, skipif_external_mode, ) from ocs_ci.framework.testlib import ( ignore_leftovers, ManageTest, skipif_ocs_version, tier1, ...
27.979167
82
0.738273
9a08bb3a86aabd1c2e96f217e418e9ead4c05b88
5,176
py
Python
Designers/abstract_designer.py
aspuru-guzik-group/SCILLA
f0291082990e0f99f8f9abf41ec405427cfe3752
[ "Apache-2.0" ]
17
2019-12-09T19:09:07.000Z
2021-08-29T01:11:13.000Z
Designers/abstract_designer.py
aspuru-guzik-group/SCILLA
f0291082990e0f99f8f9abf41ec405427cfe3752
[ "Apache-2.0" ]
1
2021-04-14T15:08:18.000Z
2021-04-14T15:08:18.000Z
Designers/abstract_designer.py
aspuru-guzik-group/SCILLA
f0291082990e0f99f8f9abf41ec405427cfe3752
[ "Apache-2.0" ]
2
2020-06-05T03:01:06.000Z
2020-07-09T07:13:12.000Z
#!/usr/bin/env python #==================================================== import uuid import numpy as np #==================================================== # Factor to account for intrinsic junction capacitance CJFACTOR = 0 #junction capacitance is added automatically in simulation code class AbstractDesign...
32.553459
115
0.676198
9c829d0cc19ed3d22cfa86a2b1fde2d36d70741d
21
py
Python
bootstrap3_datetime/__init__.py
elapouya/django2-bootstrap3-datetimepicker
54500e75d210a8a1f5e5dfed18187553f599bf2a
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/__init__.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/__init__.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
__version__ = '3.0.3'
21
21
0.666667
3fc730a2253b8fdd68f33782d65d6a49157ebac2
12,674
py
Python
.venv/lib/python2.7/site-packages/ansible/plugins/connection/network_cli.py
Achraf-Ben/Ansible-
a271b4c32948a7f8726e3f3174e12fe6ff491619
[ "MIT" ]
null
null
null
.venv/lib/python2.7/site-packages/ansible/plugins/connection/network_cli.py
Achraf-Ben/Ansible-
a271b4c32948a7f8726e3f3174e12fe6ff491619
[ "MIT" ]
null
null
null
.venv/lib/python2.7/site-packages/ansible/plugins/connection/network_cli.py
Achraf-Ben/Ansible-
a271b4c32948a7f8726e3f3174e12fe6ff491619
[ "MIT" ]
null
null
null
# (c) 2016 Red Hat Inc. # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ author: Ansible Networking Team connection: network_cli ...
38.75841
131
0.627347
5314270e6ed1911a63ab245f7d062cbf6a078cb1
28,114
py
Python
Packs/UrlScan/Integrations/UrlScan/UrlScan.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
1
2022-03-15T13:16:24.000Z
2022-03-15T13:16:24.000Z
Packs/UrlScan/Integrations/UrlScan/UrlScan.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/UrlScan/Integrations/UrlScan/UrlScan.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
null
null
null
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 '''IMPORTS''' import collections import json as JSON import time import requests from requests.utils import quote # type: ignore from urlparse import urlparse """ POLLING FUNCTIONS""" try: from Queue import Queue except I...
37.635877
128
0.597318
cfcdcca1f24f848e56def9013d1419808dfdf091
791
py
Python
traffic_index/traffic_index/items.py
Sam1320/place2live
fc0c6b4e490eb412f2c2ea2794f85786e671673e
[ "MIT" ]
null
null
null
traffic_index/traffic_index/items.py
Sam1320/place2live
fc0c6b4e490eb412f2c2ea2794f85786e671673e
[ "MIT" ]
null
null
null
traffic_index/traffic_index/items.py
Sam1320/place2live
fc0c6b4e490eb412f2c2ea2794f85786e671673e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html from scrapy import Field, Item from scrapy.loader.processors import MapCompose from w3lib.html import remove_tags def parse_string(value): end = value.index("%")...
27.275862
83
0.740834
5097a20537671ec7444f2fa4544c603a81c477d9
9,989
py
Python
sdk/python/pulumi_azure_nextgen/media/live_output.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/media/live_output.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/media/live_output.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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
45.199095
455
0.652418
635200a478f7317cb850740918f5d1af7ea4e956
4,452
py
Python
Free_Code_Camp/Charles_Severance/Python_for_Everyone/Exercise_04-06.py
ssolomon2020/Python_Training
339b3e5f713237c52f30a7a667c8fd684a3aeb40
[ "MIT" ]
null
null
null
Free_Code_Camp/Charles_Severance/Python_for_Everyone/Exercise_04-06.py
ssolomon2020/Python_Training
339b3e5f713237c52f30a7a667c8fd684a3aeb40
[ "MIT" ]
null
null
null
Free_Code_Camp/Charles_Severance/Python_for_Everyone/Exercise_04-06.py
ssolomon2020/Python_Training
339b3e5f713237c52f30a7a667c8fd684a3aeb40
[ "MIT" ]
null
null
null
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Student : Shawn Solomon # # Date : 12/25/2021 # # Course : Scientific Computing with Python: Python For Everyone # # In...
57.818182
246
0.617925
6bac8769d0e8373b131bd61cfbf87892db756ac7
967
py
Python
google/ads/google_ads/v6/services/user_list_service_client_config.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v6/services/user_list_service_client_config.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/services/user_list_service_client_config.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
config = { "interfaces": { "google.ads.googleads.v6.services.UserListService": { "retry_codes": { "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] }, "retry_params": { "default": { "initial_retry_delay_millis...
26.135135
57
0.527404
157e70fa4b5bba9e03ea18bbed350546f6d91ad8
1,090
py
Python
samples/properties_user_links_update_test.py
LaudateCorpus1/python-analytics-admin
2ec0a0b648edcfb3b76bf847a4463cbb551e1997
[ "Apache-2.0" ]
10
2020-09-19T18:31:20.000Z
2022-03-07T22:45:53.000Z
samples/properties_user_links_update_test.py
LaudateCorpus1/python-analytics-admin
2ec0a0b648edcfb3b76bf847a4463cbb551e1997
[ "Apache-2.0" ]
63
2020-07-21T12:17:34.000Z
2022-03-07T17:30:51.000Z
samples/properties_user_links_update_test.py
LaudateCorpus1/python-analytics-admin
2ec0a0b648edcfb3b76bf847a4463cbb551e1997
[ "Apache-2.0" ]
6
2020-07-20T18:10:41.000Z
2022-03-24T20:23:44.000Z
# Copyright 2021 Google LLC All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.16129
83
0.76055
d3b7df1806dc09bd0a8ad0293c5690eb039b9dc6
2,776
py
Python
neighborhoodapp/models.py
RYAN2540/neighborhood-watch
157dc223bb49bcf2287b52ba4698b850da74b2f6
[ "MIT" ]
null
null
null
neighborhoodapp/models.py
RYAN2540/neighborhood-watch
157dc223bb49bcf2287b52ba4698b850da74b2f6
[ "MIT" ]
null
null
null
neighborhoodapp/models.py
RYAN2540/neighborhood-watch
157dc223bb49bcf2287b52ba4698b850da74b2f6
[ "MIT" ]
null
null
null
from django.db import models from cloudinary.models import CloudinaryField from django.contrib.auth.models import User from mapbox_location_field.models import LocationField, AddressAutoHiddenField class Admin(models.Model): user = models.OneToOneField(User, on_delete = models.CASCADE) name = models.CharField(...
34.7
98
0.706772
7718e752e2c49ee716675b6aa12b74619e0b7cd5
12,786
py
Python
src/main.py
nalinahuja/facefilter
ed907f6eb5369c1297e347f52b12143cc956d58c
[ "MIT" ]
null
null
null
src/main.py
nalinahuja/facefilter
ed907f6eb5369c1297e347f52b12143cc956d58c
[ "MIT" ]
null
null
null
src/main.py
nalinahuja/facefilter
ed907f6eb5369c1297e347f52b12143cc956d58c
[ "MIT" ]
null
null
null
# Written By Nalin Ahuja (nalinahuja), Rohan Narasimha (novablazerx) import os import sys # Set TensorFlow Logging Level os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" # End Imports----------------------------------------------------------------------------------------------------------------------------------------------...
31.80597
169
0.58087
cb1fd37aca2396e426b27109b228f1fb6830cc6d
295
py
Python
thor/website/admin.py
pepincho/Thor
b3a382d95ebafa905deb5929a32fcef0d3a4a337
[ "MIT" ]
null
null
null
thor/website/admin.py
pepincho/Thor
b3a382d95ebafa905deb5929a32fcef0d3a4a337
[ "MIT" ]
null
null
null
thor/website/admin.py
pepincho/Thor
b3a382d95ebafa905deb5929a32fcef0d3a4a337
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import City, Place, Event, UserProfile from .models import EventUser # Register your models here. admin.site.register(City) admin.site.register(Place) admin.site.register(Event) admin.site.register(UserProfile) admin.site.register(EventUser)
17.352941
51
0.79661
b8a0405bca1f53cd7684af3e28bcf066b03c4f54
764
py
Python
PythonAPI/setup.py
rafwaf/cocostuffapi
43f99e4454a83bb17959a5cdd9c52222dfd7921a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
PythonAPI/setup.py
rafwaf/cocostuffapi
43f99e4454a83bb17959a5cdd9c52222dfd7921a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
PythonAPI/setup.py
rafwaf/cocostuffapi
43f99e4454a83bb17959a5cdd9c52222dfd7921a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
from setuptools import setup, Extension import numpy as np # To compile and install locally run "python setup.py build_ext --inplace" # To install library to Python site-packages run "python setup.py build_ext install" ext_modules = [ Extension( 'pycocotools._mask', sources=['../common/maskApi.c',...
27.285714
84
0.633508
e49d37f8cad8b5b2f081aa4d337a9caa94cb5238
983
py
Python
P0_solutions/Task1.py
serglit72/Python_exercises
7de440a3bdf50c4162bb2df5250487d568942ca8
[ "Apache-2.0" ]
null
null
null
P0_solutions/Task1.py
serglit72/Python_exercises
7de440a3bdf50c4162bb2df5250487d568942ca8
[ "Apache-2.0" ]
null
null
null
P0_solutions/Task1.py
serglit72/Python_exercises
7de440a3bdf50c4162bb2df5250487d568942ca8
[ "Apache-2.0" ]
null
null
null
""" Read file into texts and calls. It's ok if you don't understand how to read files. """ import csv with open('P0_solutions/texts.csv', 'r') as t: reader = csv.reader(t) texts = list(reader) with open('P0_solutions/calls.csv', 'r') as c: reader = csv.reader(c) calls = list(reader) """ TASK 1: How m...
25.205128
96
0.670397
680f8635c906acb963eaf29b20d21113ab1bbd64
12,412
py
Python
aiogps/gps.py
lellisls/aiogps
e82297069f2ac7466c978b1e2a45e2e0d4eee772
[ "BSD-3-Clause" ]
null
null
null
aiogps/gps.py
lellisls/aiogps
e82297069f2ac7466c978b1e2a45e2e0d4eee772
[ "BSD-3-Clause" ]
null
null
null
aiogps/gps.py
lellisls/aiogps
e82297069f2ac7466c978b1e2a45e2e0d4eee772
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Original contents have been modified to be compatible with Python3 for use # in the TwisterPi embedded application. The original author's comments can # be found unaltered below. # # This file is Copyright (c) 2010 by the GPSD project # BSD terms apply: see the file COPY...
31.18593
130
0.626329
f2b2be6dfb4a5207d2448d15e6c7cae6ed712a25
2,599
py
Python
controller/server.py
highhair20/lightswitch
186436e48e3e1462de590abd8bece9a43c5ebf2a
[ "MIT" ]
null
null
null
controller/server.py
highhair20/lightswitch
186436e48e3e1462de590abd8bece9a43c5ebf2a
[ "MIT" ]
null
null
null
controller/server.py
highhair20/lightswitch
186436e48e3e1462de590abd8bece9a43c5ebf2a
[ "MIT" ]
null
null
null
import piplates.RELAYplate as RELAY from flask import Flask, jsonify, make_response app = Flask(__name__) ############################################################################## ###################### Set address of RELAYplate below: ###################### ppADDR=0 ########################...
24.064815
83
0.405925
60dd050d847dd01a1a9a2398dc740d48d0229488
4,383
py
Python
Modules/ModuleProbeRequest.py
muhammadarsalansiddiqui/3vilTwinAttacker
92f79d1d021481e7465ff439a127cb41de55cc69
[ "MIT" ]
9
2016-02-14T19:44:57.000Z
2021-08-29T18:44:00.000Z
Modules/ModuleProbeRequest.py
samyoyo/3vilTwinAttacker
92f79d1d021481e7465ff439a127cb41de55cc69
[ "MIT" ]
null
null
null
Modules/ModuleProbeRequest.py
samyoyo/3vilTwinAttacker
92f79d1d021481e7465ff439a127cb41de55cc69
[ "MIT" ]
2
2018-06-23T22:03:50.000Z
2019-01-28T03:17:01.000Z
#The MIT License (MIT) #Copyright (c) 2015-2016 mh4x0f P0cL4bs Team #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 rights to #use, copy, mo...
45.185567
102
0.67488
d9fdbf2b5491aef8f624c04fa8c445075d92f12e
15,812
py
Python
intersight/apis/server_config_result_api.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/apis/server_config_result_api.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/apis/server_config_result_api.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-262 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from s...
55.872792
818
0.646155
7ff9858ca6ab590890b78eab41b9ef0654b2d255
704
py
Python
migrations/versions/73f17eb26721_add_albserviceinstance.py
cloud-gov/domain-broker
d1161cecd971202cb10449a29fedb83ef3cd83b0
[ "CC0-1.0" ]
5
2020-04-28T01:40:43.000Z
2021-03-27T21:34:14.000Z
migrations/versions/73f17eb26721_add_albserviceinstance.py
cloud-gov/external-domain-broker
7136ac0c10f5950315b77eddca60512129d4078d
[ "CC0-1.0" ]
124
2020-04-23T20:24:15.000Z
2022-02-28T16:59:34.000Z
migrations/versions/73f17eb26721_add_albserviceinstance.py
cloud-gov/domain-broker
d1161cecd971202cb10449a29fedb83ef3cd83b0
[ "CC0-1.0" ]
1
2020-06-10T02:43:21.000Z
2020-06-10T02:43:21.000Z
"""Add ALBServiceInstance Revision ID: 73f17eb26721 Revises: 046fd7fac9f8 Create Date: 2020-06-16 19:13:49.523667 """ from alembic import op import sqlalchemy as sa import sqlalchemy_utils # revision identifiers, used by Alembic. revision = "73f17eb26721" down_revision = "046fd7fac9f8" branch_labels = None depends_...
23.466667
86
0.710227
b83d64b5966380c8be0cf9e605f9cc1f250828b5
533
py
Python
atomize/tests/devices_tests/ask_Agilent_53131a.py
Anatoly1010/Atomize_NIOCH
9359f2ee31e71ee3b2e210ad5ccc2dc3ad3dfbe0
[ "MIT" ]
5
2020-12-31T17:39:51.000Z
2022-03-31T13:02:49.000Z
atomize/tests/devices_tests/ask_Agilent_53131a.py
Anatoly1010/Atomize_NIOCH
9359f2ee31e71ee3b2e210ad5ccc2dc3ad3dfbe0
[ "MIT" ]
null
null
null
atomize/tests/devices_tests/ask_Agilent_53131a.py
Anatoly1010/Atomize_NIOCH
9359f2ee31e71ee3b2e210ad5ccc2dc3ad3dfbe0
[ "MIT" ]
1
2022-03-13T14:57:16.000Z
2022-03-13T14:57:16.000Z
import time import numpy as np import atomize.general_modules.general_functions as general import atomize.device_modules.Agilent_53131a as ag xs = [] ys = [] ag53131a = ag.Agilent_53131a() #ag53131a.freq_counter_digits(8) ag53131a.freq_counter_gate_time('10 s') #ag53131a.freq_counter_stop_mode('Dig') ...
28.052632
60
0.791745
64e15c68ecd3a351c225e9e71e472400b76d376a
8,239
py
Python
system/docker_setup.py
AYCH-Inc/aych.hyperindy.autest
8486267e45c362a28843e64634c6a5f0ea0edb9e
[ "Apache-2.0" ]
null
null
null
system/docker_setup.py
AYCH-Inc/aych.hyperindy.autest
8486267e45c362a28843e64634c6a5f0ea0edb9e
[ "Apache-2.0" ]
null
null
null
system/docker_setup.py
AYCH-Inc/aych.hyperindy.autest
8486267e45c362a28843e64634c6a5f0ea0edb9e
[ "Apache-2.0" ]
null
null
null
import os import subprocess import tarfile from pathlib import Path from subprocess import CalledProcessError import docker from .utils import ( pool_helper, wallet_helper, default_trustee, ensure_pool_is_functional, ensure_all_nodes_online, NodeHost ) import logging logger = logging.getLogger(__name__) # >>>>> s...
34.329167
112
0.593519
e84afdcab9e8cff10daca8bf4e7f52493607816b
12,547
py
Python
Codes/Python32/Lib/distutils/text_file.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
2
2019-03-03T00:04:36.000Z
2020-10-06T16:22:38.000Z
Codes/Python32/Lib/distutils/text_file.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
null
null
null
Codes/Python32/Lib/distutils/text_file.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
"""text_file provides the TextFile class, which gives an interface to text files that (optionally) takes care of stripping comments, ignoring blank lines, and joining lines with backslashes.""" __revision__ = "$Id: text_file.py 85805 2010-10-23 17:02:31Z victor.stinner $" import sys, os, io class TextFile: """...
43.565972
89
0.561967
696eac0a61f26ced6be6f7db70b5f8917b7803c3
9,848
py
Python
build/lib/binance/websocket/futures/websocket_client.py
AlfonsoAgAr/binance-futures-connector-python
f0bd2c7b0576503bf526ce6be329ca2dae90fefe
[ "MIT" ]
1
2022-01-29T14:37:47.000Z
2022-01-29T14:37:47.000Z
build/lib/binance/websocket/futures/websocket_client.py
sanjeevan121/binance-futures-connector-python
d820b73a15e9f64c80891a13694ca0c5d1693b90
[ "MIT" ]
null
null
null
build/lib/binance/websocket/futures/websocket_client.py
sanjeevan121/binance-futures-connector-python
d820b73a15e9f64c80891a13694ca0c5d1693b90
[ "MIT" ]
null
null
null
from binance.websocket.websocket_client import BinanceWebsocketClient class FuturesWebsocketClient(BinanceWebsocketClient): def __init__(self, stream_url="wss://fstream.binance.com"): super().__init__(stream_url) def agg_trade(self, symbol: str, id: int, callback, **kwargs): """Aggregate Trad...
33.496599
186
0.608753
0e199e92e25b3a3cfc021220ee95f3a2c8cf8bb7
6,700
py
Python
misc/config_tools/board_inspector/extractors/60-pci.py
rliu88/acrn-hypervisor
3db4491e1c930982a5368a996c7904c31c8675c6
[ "BSD-3-Clause" ]
null
null
null
misc/config_tools/board_inspector/extractors/60-pci.py
rliu88/acrn-hypervisor
3db4491e1c930982a5368a996c7904c31c8675c6
[ "BSD-3-Clause" ]
null
null
null
misc/config_tools/board_inspector/extractors/60-pci.py
rliu88/acrn-hypervisor
3db4491e1c930982a5368a996c7904c31c8675c6
[ "BSD-3-Clause" ]
1
2020-05-22T04:48:20.000Z
2020-05-22T04:48:20.000Z
# Copyright (C) 2021 Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # import os import re import logging import lxml.etree from pcieparser import parse_config_space from pcieparser.header import IOBar, MemoryBar32, MemoryBar64 from extractors.helpers import add_child, get_node PCI_...
44.370861
148
0.648507
8039b3e75b5053fc1627f38e613b97242d6feb3a
22,872
py
Python
models/sql/basemodel.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
3
2019-09-29T07:05:00.000Z
2019-11-13T06:50:33.000Z
models/sql/basemodel.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
2
2019-09-28T21:10:13.000Z
2019-09-28T21:13:20.000Z
models/sql/basemodel.py
pythononwheels/redmonty
6255bb0c48575e29c0234a143ad05eba72a6b8c6
[ "MIT" ]
null
null
null
import os from sqlalchemy import Column, Integer, String, DateTime, Float from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.sql.expression import func from redmonty.database.sqldblib import engine,session from redmonty.powlib import pluralize import datetime import uuid from sqlalchemy import orm im...
37.311582
141
0.541055
166de4de646af85ac54c1bd37eb4cb7484730c82
3,647
py
Python
benchmarks/bench_tree_n1_9_n2_10.py
Giannos-G/scikit-learn_modified
03df71bbea1bcb3423262b711191552420422cda
[ "BSD-3-Clause" ]
1
2022-03-03T23:54:50.000Z
2022-03-03T23:54:50.000Z
benchmarks/bench_tree_n1_9_n2_10.py
Giannos-G/scikit-learn_modified
03df71bbea1bcb3423262b711191552420422cda
[ "BSD-3-Clause" ]
null
null
null
benchmarks/bench_tree_n1_9_n2_10.py
Giannos-G/scikit-learn_modified
03df71bbea1bcb3423262b711191552420422cda
[ "BSD-3-Clause" ]
null
null
null
""" To run this, you'll need to have installed. * scikit-learn Does two benchmarks First, we fix a training set, increase the number of samples to classify and plot number of classified samples as a function of time. In the second benchmark, we increase the number of dimensions of the training set, classify a sam...
29.176
73
0.607623
a6e4a0414fd55ced0635fe91b292a10c3efad30c
5,280
py
Python
plot-oldies.py
sftcd/tek_transparency
8cf1454b8b510bb1016f10f9f95ec3ac5c382b80
[ "MIT" ]
7
2020-06-27T12:04:56.000Z
2021-04-19T19:38:06.000Z
plot-oldies.py
sftcd/tek_transparency
8cf1454b8b510bb1016f10f9f95ec3ac5c382b80
[ "MIT" ]
15
2020-07-02T20:50:31.000Z
2020-11-06T09:18:52.000Z
plot-oldies.py
sftcd/tek_transparency
8cf1454b8b510bb1016f10f9f95ec3ac5c382b80
[ "MIT" ]
4
2020-07-14T21:56:41.000Z
2021-04-19T19:50:23.000Z
#!/usr/bin/python3 # ie and ukni services sometimes serve stale zips - make a plot # of those as they can affect my ie/ukni estimates # Input is a CSV with: date,country, and a set of id,time_t+ms import os,sys,argparse,csv,dateutil,math,statistics import matplotlib #matplotlib.use('Agg') import matplotlib.patches a...
34.966887
99
0.567045
5c0f7465503d7868592e3f7a0aacddd3bc475abc
12,070
py
Python
parse.py
crass/seedvault_backup_parser
fa92161166e378ae9b6ffdc224609885998054da
[ "Apache-2.0" ]
58
2020-10-05T01:51:09.000Z
2022-03-13T19:52:47.000Z
parse.py
crass/seedvault_backup_parser
fa92161166e378ae9b6ffdc224609885998054da
[ "Apache-2.0" ]
13
2020-10-09T22:29:47.000Z
2022-03-04T00:20:43.000Z
parse.py
crass/seedvault_backup_parser
fa92161166e378ae9b6ffdc224609885998054da
[ "Apache-2.0" ]
8
2020-10-06T20:19:23.000Z
2022-03-13T19:52:50.000Z
#!/usr/bin/env python3 import re import os import sys import getpass import glob import string import struct import hashlib # debian does not ship pycryptodome under the pycrypto namespace. Try both. # See Issue #8 try: from Crypto.Cipher import AES AES.MODE_GCM except: try: from Cryptodome.Cipher ...
30.948718
121
0.612013
722c49474356da6f00adc300c10d378af5775dc1
156,345
py
Python
test_init_final.py
geosonboss/geosonboss1
da8eb3be7b8177ee19bc64c5e5f4267ade251b55
[ "Apache-2.0" ]
null
null
null
test_init_final.py
geosonboss/geosonboss1
da8eb3be7b8177ee19bc64c5e5f4267ade251b55
[ "Apache-2.0" ]
null
null
null
test_init_final.py
geosonboss/geosonboss1
da8eb3be7b8177ee19bc64c5e5f4267ade251b55
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ################ Server Ver. 27 (2021. 2. 17.) ##################### import sys, os, ctypes import asyncio, discord, aiohttp import random, re, datetime, time, logging from discord.ext import tasks, commands from discord.ext.commands import CommandNotFound, MissingRequiredArgument fr...
38.404569
332
0.609332
e4380a5430b20eed791151e3b11f43c8a2d47118
13,689
py
Python
secedgar/core/_index.py
Ahrvo-Trading-Systems/sec-edgar
b22f9aa2de0cafd98ecab884ece1e7d0f2be3381
[ "Apache-2.0" ]
null
null
null
secedgar/core/_index.py
Ahrvo-Trading-Systems/sec-edgar
b22f9aa2de0cafd98ecab884ece1e7d0f2be3381
[ "Apache-2.0" ]
null
null
null
secedgar/core/_index.py
Ahrvo-Trading-Systems/sec-edgar
b22f9aa2de0cafd98ecab884ece1e7d0f2be3381
[ "Apache-2.0" ]
null
null
null
import asyncio import os import re import shutil import tempfile from abc import abstractmethod from collections import namedtuple from queue import Empty, Queue from threading import Thread from secedgar.client import NetworkClient from secedgar.core._base import AbstractFiling from secedgar.exceptions import EDGARQu...
39.449568
100
0.580174
fb8c8f286cace4a82b25a6f2b9b0a24187ceb955
245
py
Python
manage.py
ministryofjustice/po
ff73ace136fc5f24e6b2ccc7b722ae0125d6f2b2
[ "ADSL" ]
null
null
null
manage.py
ministryofjustice/po
ff73ace136fc5f24e6b2ccc7b722ae0125d6f2b2
[ "ADSL" ]
2
2016-01-21T15:31:41.000Z
2016-01-21T15:34:40.000Z
manage.py
ministryofjustice/po
ff73ace136fc5f24e6b2ccc7b722ae0125d6f2b2
[ "ADSL" ]
2
2017-11-07T22:48:59.000Z
2021-04-11T06:58:18.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "po.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.272727
66
0.767347
e897046736dfc55448da7dacd63b31be66fd5661
39,250
py
Python
examples/tpch/dask_queries.py
prutskov/Bodo-examples
7c96e89f3ac9062eb598b99da2729718007b8e4d
[ "Apache-2.0" ]
null
null
null
examples/tpch/dask_queries.py
prutskov/Bodo-examples
7c96e89f3ac9062eb598b99da2729718007b8e4d
[ "Apache-2.0" ]
null
null
null
examples/tpch/dask_queries.py
prutskov/Bodo-examples
7c96e89f3ac9062eb598b99da2729718007b8e4d
[ "Apache-2.0" ]
null
null
null
""" This code is adapted from https://github.com/Bodo-inc/Bodo-examples/blob/master/examples/tpch/bodo_queries.py The differences are in: 1. main(): how the data parser is setup to take parameters for Dask Client 2. run_queries(): checker to make sure Dask cluster is properly spawn and wait() to make sure data is al...
42.896175
210
0.641478
8019a02b4484dd21a017fa41954e1be18fa951df
31,469
py
Python
tests/test_experiment_groups/test_models.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
tests/test_experiment_groups/test_models.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
tests/test_experiment_groups/test_models.py
vfdev-5/polyaxon
3e1511a993dc1a03e0a0827de0357f4adcc0015f
[ "MIT" ]
null
null
null
import random from unittest.mock import patch import pytest from django.core.files import File from django.core.files.uploadedfile import SimpleUploadedFile from django.test.client import MULTIPART_CONTENT from constants.experiment_groups import ExperimentGroupLifeCycle from constants.experiments import ExperimentL...
44.827635
100
0.674251
20fdc7836af2cbbcdd1bb32992238528718a978a
2,869
py
Python
cons/4-1.py
Andy-yeongjin/crawling_project_1_hotel_reviews
db680e02e2349d0bdfe157d7628e2a39d94a990f
[ "MIT" ]
null
null
null
cons/4-1.py
Andy-yeongjin/crawling_project_1_hotel_reviews
db680e02e2349d0bdfe157d7628e2a39d94a990f
[ "MIT" ]
null
null
null
cons/4-1.py
Andy-yeongjin/crawling_project_1_hotel_reviews
db680e02e2349d0bdfe157d7628e2a39d94a990f
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- import requests import pandas as pd import selenium from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import ...
34.987805
581
0.598466
ccd940307be8a5d6d7b96c9eeb8f2c38567c9ac0
10,365
py
Python
userbot/modules/chatinfo.py
Metamor-phosis/UserButt
05ed15916639bd40765169482ca712968876c58e
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/chatinfo.py
Metamor-phosis/UserButt
05ed15916639bd40765169482ca712968876c58e
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/chatinfo.py
Metamor-phosis/UserButt
05ed15916639bd40765169482ca712968876c58e
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-12-20T08:16:08.000Z
2020-12-20T08:16:08.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # # Credits to Hitalo-Sama and FTG Modules from datetime import datetime from emoji import emojize from math import sqrt...
51.059113
206
0.681235
5cf8f1b129d542b4552b162cf401ad5977648430
6,822
py
Python
tflu-kws-cortex-m/Training/test_tflite.py
felix-johnny/ML-examples
fd9552fd88dc14140dfaac5f8a7e6936d40ced70
[ "Apache-2.0" ]
309
2018-01-11T20:31:59.000Z
2022-03-26T11:37:31.000Z
tflu-kws-cortex-m/Training/test_tflite.py
felix-johnny/ML-examples
fd9552fd88dc14140dfaac5f8a7e6936d40ced70
[ "Apache-2.0" ]
60
2018-04-10T00:09:37.000Z
2022-02-10T04:02:11.000Z
tflu-kws-cortex-m/Training/test_tflite.py
felix-johnny/ML-examples
fd9552fd88dc14140dfaac5f8a7e6936d40ced70
[ "Apache-2.0" ]
172
2018-01-11T20:32:01.000Z
2022-03-16T07:24:08.000Z
# Copyright © 2021 Arm Ltd. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
35.717277
115
0.642627
9b4747a4dc7a930cb0597312bf98a18b44eebbf1
6,947
py
Python
zerver/tests/test_urls.py
lokesh576/zulip
64fbcd40e0702aa5d24421a808e4307a4ccbcfcc
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_urls.py
lokesh576/zulip
64fbcd40e0702aa5d24421a808e4307a4ccbcfcc
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_urls.py
lokesh576/zulip
64fbcd40e0702aa5d24421a808e4307a4ccbcfcc
[ "Apache-2.0" ]
null
null
null
import importlib import os from typing import List, Optional import django.urls.resolvers import ujson from django.test import Client, TestCase from zerver.lib.test_classes import ZulipTestCase from zerver.lib.test_runner import slow from zerver.models import Stream from zproject import urls class PublicURLTest(Zul...
47.582192
118
0.581402
1f6c62e25e0b08774c7a4be56de5aa1010c0e866
5,769
py
Python
src/nano/accounts.py
silverstar194/nano-python
f26b8bc895b997067780f925049a70e82c0c2479
[ "MIT" ]
30
2018-01-13T19:41:43.000Z
2018-02-06T10:53:46.000Z
src/nano/accounts.py
silverstar194/nano-python
f26b8bc895b997067780f925049a70e82c0c2479
[ "MIT" ]
8
2018-01-13T15:57:25.000Z
2018-02-02T21:58:14.000Z
src/nano/accounts.py
dourvaris/raiblocks-py
f26b8bc895b997067780f925049a70e82c0c2479
[ "MIT" ]
11
2018-02-22T17:56:01.000Z
2021-07-08T20:49:30.000Z
""" Accounts module ``nano.accounts.KNOWN_ACCOUNT_IDS``: dict of account ids => names eg. >>> KNOWN_ACCOUNT_IDS['xrb_1ipx847tk8o46pwxt5qjdbncjqcbwcc1rrmqnkztrfjy5k7z4imsrata9est'] 'Developer Fund' ``nano.accounts.KNOWN_ACCOUNT_NAMES``: dict of names => account ids >>> KNOWN_ACCOUNT_NAMES['Burn'] 'xrb_11111111111111...
40.0625
120
0.759577
6f52e086769e59a6d3c8ecbc8942159878466af1
122
py
Python
Mp4/DataBox.py
wuli133144/video_parse
0233922b20a2cd19144173ae752b070276bbc498
[ "Unlicense" ]
null
null
null
Mp4/DataBox.py
wuli133144/video_parse
0233922b20a2cd19144173ae752b070276bbc498
[ "Unlicense" ]
null
null
null
Mp4/DataBox.py
wuli133144/video_parse
0233922b20a2cd19144173ae752b070276bbc498
[ "Unlicense" ]
null
null
null
from Mp4.tkhdbox import * class databox(tkhdbox): def __init__(self, sz, type): super().__init__(sz, type)
15.25
34
0.647541
1373c38c4cbbb01c3439cf48f734153093cfbd30
1,469
py
Python
modelscript/test/drivers/plantuml/test_obs_plantuml.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
1
2019-02-22T14:27:06.000Z
2019-02-22T14:27:06.000Z
modelscript/test/drivers/plantuml/test_obs_plantuml.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
4
2015-12-18T10:30:02.000Z
2015-12-18T10:36:28.000Z
modelscript/test/drivers/plantuml/test_obs_plantuml.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
null
null
null
# coding=utf-8 import logging from nose.plugins.attrib import attr from modelscript.interfaces.environment import Environment from modelscript.test.framework import TEST_CASES_DIRECTORY import os import modelscript.scripts.objects.parser from modelscript.scripts.objects.plantuml import ( ObjectPlantUMLPrinter )...
25.77193
66
0.62968
4fc7b5a2654918d7ead988ac1fa97b0b8c38084f
3,409
py
Python
learning/clustering/default_clustering_params.py
Carolynconroy76/differential-privacy
4c867aae8ea6a6831d2ac0ab749cd5ae24e047b4
[ "Apache-2.0" ]
1
2022-03-02T20:02:34.000Z
2022-03-02T20:02:34.000Z
learning/clustering/default_clustering_params.py
fbalicchia/differential-privacy
099080e49c4c047802d785bc818898c0caf84d45
[ "Apache-2.0" ]
null
null
null
learning/clustering/default_clustering_params.py
fbalicchia/differential-privacy
099080e49c4c047802d785bc818898c0caf84d45
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
40.105882
80
0.757994
73ae3e8e59fbe1f2f4b68ab21b63575180f59549
11,412
py
Python
HW09_Aishwarya_Shirbhate_ui_final.py
aishwaryashirbhate/Wordle-project
565895b6d687ce0b3d3d89adc358f07d1206c62f
[ "MIT" ]
null
null
null
HW09_Aishwarya_Shirbhate_ui_final.py
aishwaryashirbhate/Wordle-project
565895b6d687ce0b3d3d89adc358f07d1206c62f
[ "MIT" ]
null
null
null
HW09_Aishwarya_Shirbhate_ui_final.py
aishwaryashirbhate/Wordle-project
565895b6d687ce0b3d3d89adc358f07d1206c62f
[ "MIT" ]
null
null
null
# Homework Assignment 09 # from Aishwarya Shirbhate 20005242 # Pseudocode # # Define input_check function with check, answer, number of wins and history input # In the function # { # Initialise variables maximum attempts and user inputs. # Define symbol list which needs to be excluded from the user input. # While max...
42.423792
117
0.551788
e63628a4015fc1b88620bdcfab7ee4c911e72896
187
py
Python
development/basicGPIO.py
ehhs-robotics-team/ChickenCoopDoor
0b6c0d25f7c58bfb8f6b9e9850a364387354366f
[ "MIT" ]
null
null
null
development/basicGPIO.py
ehhs-robotics-team/ChickenCoopDoor
0b6c0d25f7c58bfb8f6b9e9850a364387354366f
[ "MIT" ]
null
null
null
development/basicGPIO.py
ehhs-robotics-team/ChickenCoopDoor
0b6c0d25f7c58bfb8f6b9e9850a364387354366f
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(32,GPIO.OUT) try: while 1: GPIO.output(32,True) except KeyboardInterrupt: pass finally: GPIO.cleanup()
12.466667
28
0.679144
cbd9bd90a03318b514c82486de5de905e886e363
33,845
py
Python
tests/generic_views/test_dates.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
1
2015-11-08T16:39:07.000Z
2015-11-08T16:39:07.000Z
tests/generic_views/test_dates.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
null
null
null
tests/generic_views/test_dates.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
1
2020-05-25T08:55:19.000Z
2020-05-25T08:55:19.000Z
from __future__ import unicode_literals import datetime from django.core.exceptions import ImproperlyConfigured from django.test import TestCase, override_settings, skipUnlessDBFeature from django.test.utils import requires_tz_support from django.utils import timezone from .models import Book, BookSigning def _mak...
51.125378
140
0.676969
afdaa1e313d31b9b8713773e144b1143dc6b7127
738
py
Python
django_bookmarks/note/migrations/0001_initial.py
peterschretlen/learning-django
ab2a6a7ec8c129c51ca8fc6cfd7d2a6c69510e7f
[ "MIT" ]
null
null
null
django_bookmarks/note/migrations/0001_initial.py
peterschretlen/learning-django
ab2a6a7ec8c129c51ca8fc6cfd7d2a6c69510e7f
[ "MIT" ]
null
null
null
django_bookmarks/note/migrations/0001_initial.py
peterschretlen/learning-django
ab2a6a7ec8c129c51ca8fc6cfd7d2a6c69510e7f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('user_profile', '0001_initial'), ] operations = [ migrations.CreateModel( name='Note', fields=[ ...
27.333333
114
0.555556
b83dd50d42a274f7aa487498eae6ce38c41c7d05
7,065
py
Python
docs/_userdoc/conf.py
manishnish138/rjsmin
4e6b13750559734d9ea890133504132761950c7d
[ "Apache-2.0" ]
null
null
null
docs/_userdoc/conf.py
manishnish138/rjsmin
4e6b13750559734d9ea890133504132761950c7d
[ "Apache-2.0" ]
null
null
null
docs/_userdoc/conf.py
manishnish138/rjsmin
4e6b13750559734d9ea890133504132761950c7d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # flake8: noqa pylint: skip-file # # rJSmin documentation build configuration file # # 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 configuration values have ...
30.452586
80
0.707714
986941bbff0153e412aaa767be7c1a215d3ce77f
4,545
py
Python
segmentation_models_pytorch/decoders/unet/decoder.py
AlbertYoung0112/segmentation_models.pytorch
bc067141850366d59fb6e4f7ecb9b831dfebd13e
[ "MIT" ]
null
null
null
segmentation_models_pytorch/decoders/unet/decoder.py
AlbertYoung0112/segmentation_models.pytorch
bc067141850366d59fb6e4f7ecb9b831dfebd13e
[ "MIT" ]
null
null
null
segmentation_models_pytorch/decoders/unet/decoder.py
AlbertYoung0112/segmentation_models.pytorch
bc067141850366d59fb6e4f7ecb9b831dfebd13e
[ "MIT" ]
null
null
null
import pdb import torch import torch.nn as nn import torch.nn.functional as F from segmentation_models_pytorch.base import modules as md from segmentation_models_pytorch.base import modules as md class DecoderBlock(nn.Module): def __init__( self, in_channels, skip_channels, out_c...
30.918367
96
0.586139
37d1b5d98dd133677f25b00198870c5f2f5b6673
1,231
py
Python
env/lib/python3.8/site-packages/plotly/validators/mesh3d/colorbar/_title.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/validators/mesh3d/colorbar/_title.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/validators/mesh3d/colorbar/_title.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class TitleValidator(_plotly_utils.basevalidators.TitleValidator): def __init__(self, plotly_name="title", parent_name="mesh3d.colorbar", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
38.46875
85
0.562145
433c0b136c2872d88f8aabbaf33a192b3cbbb643
2,689
py
Python
bindings/python/ensmallen/datasets/kgobo/dpo.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/kgobo/dpo.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/kgobo/dpo.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph DPO. The graph is automatically retrieved from the KGOBO repository. References --------------------- Please cite the following if you use the data: ```bib @misc{kgobo, title = "KG-OBO", year = "2021", author = "{Reese,...
27.721649
73
0.628115
130a45fab6f10f370f8ce3603e2573adb99b932d
8,223
py
Python
tfx/examples/mnist/mnist_pipeline_native_keras.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/examples/mnist/mnist_pipeline_native_keras.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/examples/mnist/mnist_pipeline_native_keras.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.308824
80
0.730269
4d3bf374765b0e83d36782574dad90714e41cd7d
54,928
py
Python
consoleme/lib/aws.py
init-8/consoleme
047dd5e28e3545f8ad7872eaf91307e283952dc4
[ "Apache-2.0" ]
null
null
null
consoleme/lib/aws.py
init-8/consoleme
047dd5e28e3545f8ad7872eaf91307e283952dc4
[ "Apache-2.0" ]
null
null
null
consoleme/lib/aws.py
init-8/consoleme
047dd5e28e3545f8ad7872eaf91307e283952dc4
[ "Apache-2.0" ]
null
null
null
import json import sys import time from copy import deepcopy from datetime import datetime from typing import Any, Dict, List, Optional, Set, Tuple import boto3 import pytz import sentry_sdk from asgiref.sync import sync_to_async from botocore.exceptions import ClientError, ParamValidationError from cloudaux import Cl...
37.113514
151
0.631791
5abb8ba65adf34ec20cd731cda0bcad7e0916437
1,765
py
Python
Assignment2/Part1/Conv2D.py
MormonJesus69420/Knowledge-Based-Systems-Project
8b1e330c64dd58743513f3e48efb6569457beb94
[ "WTFPL" ]
null
null
null
Assignment2/Part1/Conv2D.py
MormonJesus69420/Knowledge-Based-Systems-Project
8b1e330c64dd58743513f3e48efb6569457beb94
[ "WTFPL" ]
null
null
null
Assignment2/Part1/Conv2D.py
MormonJesus69420/Knowledge-Based-Systems-Project
8b1e330c64dd58743513f3e48efb6569457beb94
[ "WTFPL" ]
null
null
null
from numpy import pad, ndarray, array, zeros, multiply, sum from enum import IntEnum from typing import Tuple def get_kernel_arr(): edge_kernel = array([[-1, -1, -1], [-1, 8, -1], [-1, -1, -1]]) identity_kernel = array([[0, 0, 0], [0, 1, 0], [0, 0, 0]]) sharpen_kernel = array([[0, -1, 0], [-1, 5, -1], [0,...
31.517857
112
0.589802
59f325285e8d5f69183f7c46a83108d8b13899c7
37,683
py
Python
src/robotide/lib/robot/libraries/Collections.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
11
2017-09-30T05:47:28.000Z
2019-04-15T11:58:40.000Z
src/robotide/lib/robot/libraries/Collections.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robotide/lib/robot/libraries/Collections.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
7
2018-02-13T10:22:39.000Z
2019-07-04T07:39:28.000Z
# Copyright 2008-2015 Nokia Solutions and Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
41.546858
152
0.593265
c66d9aaecc973ca7f1a2a8637528b4bcc6915c27
12
py
Python
login.py
tttcccmmm/temp_python32
67bac389a9f02997480e450c31ee98e258e153f3
[ "MIT" ]
null
null
null
login.py
tttcccmmm/temp_python32
67bac389a9f02997480e450c31ee98e258e153f3
[ "MIT" ]
null
null
null
login.py
tttcccmmm/temp_python32
67bac389a9f02997480e450c31ee98e258e153f3
[ "MIT" ]
null
null
null
num =1000
4
9
0.583333
d14c835b2b0c829d5b65c0b862c356ae03e9ed1c
835
py
Python
djangoseo/systemviews.py
entvia/django-seo
c4daf99dc5dcc5571e91b0e6036c17b4194ace6f
[ "BSD-3-Clause" ]
27
2015-05-08T08:29:43.000Z
2021-08-02T01:58:06.000Z
djangoseo/systemviews.py
entvia/django-seo
c4daf99dc5dcc5571e91b0e6036c17b4194ace6f
[ "BSD-3-Clause" ]
28
2015-05-14T06:25:31.000Z
2021-09-22T18:54:56.000Z
djangoseo/systemviews.py
entvia/django-seo
c4daf99dc5dcc5571e91b0e6036c17b4194ace6f
[ "BSD-3-Clause" ]
32
2015-05-08T09:41:01.000Z
2021-09-23T05:55:02.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import importlib from django.apps import apps def get_seo_views(metadata_class): return get_view_names(metadata_class._meta.seo_views) def get_view_names(seo_views): output = [] for name in seo_views: try: app = apps.get_app_config(name)...
26.935484
78
0.560479
5aa86203248017e369255ef72dfc8b2a71b0894d
33,752
py
Python
test/functional/rpc_fundrawtransaction.py
luascoin/luascoin
74558007cfd46f9d914e9683dfaac1b0274717a9
[ "MIT" ]
null
null
null
test/functional/rpc_fundrawtransaction.py
luascoin/luascoin
74558007cfd46f9d914e9683dfaac1b0274717a9
[ "MIT" ]
null
null
null
test/functional/rpc_fundrawtransaction.py
luascoin/luascoin
74558007cfd46f9d914e9683dfaac1b0274717a9
[ "MIT" ]
1
2020-02-04T22:41:33.000Z
2020-02-04T22:41:33.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Luascoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from decimal import Decimal from test_framework.test_framework im...
44.469038
165
0.635399
37ab0f34bfd8b327cb22421897183976650024d4
13,831
py
Python
nox/sessions.py
obestwalter/nox
734d053a229c94f1fdf8b37127ec189a5be90890
[ "Apache-2.0" ]
null
null
null
nox/sessions.py
obestwalter/nox
734d053a229c94f1fdf8b37127ec189a5be90890
[ "Apache-2.0" ]
null
null
null
nox/sessions.py
obestwalter/nox
734d053a229c94f1fdf8b37127ec189a5be90890
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Alethea Katherine Flowers # # 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.774882
85
0.599957
cfb30f6252bc757fc4c01d258e41b54326fc211f
5,120
py
Python
utils/regression/classes/ApplicationsInfo.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
utils/regression/classes/ApplicationsInfo.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
utils/regression/classes/ApplicationsInfo.py
Wlgen/force-riscv
9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PR...
30.295858
83
0.670117
1895ade1a38cd33686539fe0cd7db39d8245dd48
14,201
py
Python
asyncevo/generationalga.py
Nathaniel-Rodriguez/asyncevo
c6398327e8a9e2d9e582c986709480bb8114872a
[ "MIT" ]
null
null
null
asyncevo/generationalga.py
Nathaniel-Rodriguez/asyncevo
c6398327e8a9e2d9e582c986709480bb8114872a
[ "MIT" ]
null
null
null
asyncevo/generationalga.py
Nathaniel-Rodriguez/asyncevo
c6398327e8a9e2d9e582c986709480bb8114872a
[ "MIT" ]
null
null
null
__all__ = ['GenerationalGa'] import numpy as np from math import inf from copy import deepcopy from pathlib import Path from random import Random from typing import Dict from typing import Callable from typing import List from asyncevo import Scheduler from asyncevo import Lineage from asyncevo import Member from asy...
41.162319
82
0.579889
ed0e3d9a525c2ca517d34c424437e99f34d770ad
476
py
Python
scripts/redact_cli_py/tests/factories/image_factory.py
laujan/OCR-Form-Tools
9986eedb5b76bb971e7c7ab0bfa437bcc13cd34e
[ "MIT" ]
null
null
null
scripts/redact_cli_py/tests/factories/image_factory.py
laujan/OCR-Form-Tools
9986eedb5b76bb971e7c7ab0bfa437bcc13cd34e
[ "MIT" ]
null
null
null
scripts/redact_cli_py/tests/factories/image_factory.py
laujan/OCR-Form-Tools
9986eedb5b76bb971e7c7ab0bfa437bcc13cd34e
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project # root for license information. from PIL import Image class ImageFactory: @staticmethod def build() -> Image: image_path = "testdata/testdata.jpg" return Image.open(im...
25.052632
64
0.69958
b5440f97eaadae2544cc6ff235cdf6f631d7b92e
2,565
py
Python
population.py
allchanzi/tsp_ga
d039e979c8082fa7840aef0ce05ceb3c87313fb7
[ "MIT" ]
1
2019-04-21T17:44:50.000Z
2019-04-21T17:44:50.000Z
population.py
allchanzi/tsp_ga
d039e979c8082fa7840aef0ce05ceb3c87313fb7
[ "MIT" ]
null
null
null
population.py
allchanzi/tsp_ga
d039e979c8082fa7840aef0ce05ceb3c87313fb7
[ "MIT" ]
null
null
null
import random import math import Parser import copy import settings class Gene(object): def __init__(self,key,x,y, distances=None): self.key = key self.x = x self.y = y self.gx = x self.gy = y settings.genes.append(self) self.distances = {...
26.173469
97
0.545809
e4c3193e995c37327abb5cfb31dac9b87674a7d5
151
py
Python
feeder/api/models/__init__.py
fbretmounet/petnet-feeder-service
0aaf16ac0b38cac721830b1c80244be73b03e685
[ "MIT" ]
null
null
null
feeder/api/models/__init__.py
fbretmounet/petnet-feeder-service
0aaf16ac0b38cac721830b1c80244be73b03e685
[ "MIT" ]
null
null
null
feeder/api/models/__init__.py
fbretmounet/petnet-feeder-service
0aaf16ac0b38cac721830b1c80244be73b03e685
[ "MIT" ]
null
null
null
from pydantic import BaseModel class BasePaginatedList(BaseModel): size: int = 0 page: int = 0 totalSize: int = 0 totalPages: int = 1
18.875
35
0.668874
006e9d410134482579f78383a14fe974b498a248
1,713
py
Python
qiskit/__init__.py
abhishekabhishek/qiskit-terra
1de64f95a19ee1ace342328fea5d73e72d8f9e1a
[ "Apache-2.0" ]
1
2018-11-01T01:35:43.000Z
2018-11-01T01:35:43.000Z
qiskit/__init__.py
sulavtimilsina/qiskit-terra
e0f8d9fd61322623fe59a11b4d03cbd3f54d9015
[ "Apache-2.0" ]
null
null
null
qiskit/__init__.py
sulavtimilsina/qiskit-terra
e0f8d9fd61322623fe59a11b4d03cbd3f54d9015
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=wrong-import-order # pylint: disable=redefined-builtin """Main QISKit public functionality.""" import os ...
32.942308
77
0.792761
9afa0e59cdb131949e8b5610449400a2d66ee754
491
py
Python
scale/job/migrations/0002_jobexecution_job_metrics.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
121
2015-11-18T18:15:33.000Z
2022-03-10T01:55:00.000Z
scale/job/migrations/0002_jobexecution_job_metrics.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
1,415
2015-12-23T23:36:04.000Z
2022-01-07T14:10:09.000Z
scale/job/migrations/0002_jobexecution_job_metrics.py
kaydoh/scale
1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee
[ "Apache-2.0" ]
66
2015-12-03T20:38:56.000Z
2020-07-27T15:28:11.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import util.deprecation class Migration(migrations.Migration): dependencies = [ ('job', '0001_initial'), ] operations = [ migrations.AddField( model_name='jobexecution', ...
22.318182
86
0.621181
40d5a66a0e0bbddbb239c4bf1a62cf5462649b40
1,174
py
Python
simobility/core/loggers.py
yabirgb/simobility
aca8245d582a94a16c6bd0eed98344974f6dafb4
[ "MIT" ]
null
null
null
simobility/core/loggers.py
yabirgb/simobility
aca8245d582a94a16c6bd0eed98344974f6dafb4
[ "MIT" ]
null
null
null
simobility/core/loggers.py
yabirgb/simobility
aca8245d582a94a16c6bd0eed98344974f6dafb4
[ "MIT" ]
null
null
null
import logging _log = logging.getLogger("transitions.core") _log.setLevel(logging.CRITICAL) _log = logging.getLogger("urllib3.connectionpool") _log.setLevel(logging.CRITICAL) def config_state_changes(file_name): logger = logging.getLogger("state_changes") ch = logging.FileHandler(file_name, "w") ch.s...
26.681818
96
0.70017
c2166f6a552b8b52b4500b7e953c5f6d16a2c5ec
3,401
py
Python
safetylife/settings.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
safetylife/settings.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
safetylife/settings.py
DSheridanmt/Safety-Life
522578858f8e063e14d0274de008c345ef2c0a75
[ "MIT" ]
null
null
null
""" Django settings for safetylife project. Generated by 'django-admin startproject' using Django 3.2.9. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from path...
26.161538
91
0.704499
5217aee5a4f4f4e5728c770590ece6ecba49caf0
17,419
py
Python
skill/dialog.py
emphasize/skill-weather
440455057244050ac2df9a877a9368f2d4360c7a
[ "Apache-2.0" ]
null
null
null
skill/dialog.py
emphasize/skill-weather
440455057244050ac2df9a877a9368f2d4360c7a
[ "Apache-2.0" ]
null
null
null
skill/dialog.py
emphasize/skill-weather
440455057244050ac2df9a877a9368f2d4360c7a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Mycroft AI 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 writi...
38.367841
88
0.633906
5bfb0e9d5192e964da68a932bb6f5d6279a91d72
4,122
py
Python
heron/tools/tracker/src/python/metricstimeline.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
null
null
null
heron/tools/tracker/src/python/metricstimeline.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
null
null
null
heron/tools/tracker/src/python/metricstimeline.py
pjfanning/incubator-heron
7db7c24733bd7e66ecfe704ea65f864d1fff4adc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- # 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 Apach...
34.35
92
0.737263
4228a97c7c045da45a28618f107010d4fa465281
15,255
py
Python
tortoise/contrib/pydantic/creator.py
reedjosh/tortoise-orm
96ba12c69397ac4b677910659c2e9532de6154b5
[ "Apache-2.0" ]
null
null
null
tortoise/contrib/pydantic/creator.py
reedjosh/tortoise-orm
96ba12c69397ac4b677910659c2e9532de6154b5
[ "Apache-2.0" ]
null
null
null
tortoise/contrib/pydantic/creator.py
reedjosh/tortoise-orm
96ba12c69397ac4b677910659c2e9532de6154b5
[ "Apache-2.0" ]
null
null
null
import inspect from hashlib import sha256 from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, cast import pydantic from tortoise import fields from tortoise.contrib.pydantic.base import PydanticListModel, PydanticModel from tortoise.contrib.pydantic.utils import get_annotations if TYPE_CHECKING...
36.759036
119
0.616454
3264999a8d5a88e25fdb0db3698a8d698106524a
3,663
py
Python
Python/network.py
cyberphor/a-wiki-for-scripting
764247a4d6036f10f81c196e8fc026ac492a5092
[ "MIT" ]
4
2021-12-30T17:16:10.000Z
2022-01-04T14:20:19.000Z
Python/network.py
cyberphor/a-wiki-for-scripting
764247a4d6036f10f81c196e8fc026ac492a5092
[ "MIT" ]
null
null
null
Python/network.py
cyberphor/a-wiki-for-scripting
764247a4d6036f10f81c196e8fc026ac492a5092
[ "MIT" ]
1
2020-10-08T05:23:21.000Z
2020-10-08T05:23:21.000Z
#!/usr/bin/env python3 import argparse import datetime import os import socket import threading class online(): def __init__(self,args): self.buffer = 2048 if args.connect and args.port: host = (args.connect,args.port) scoreboard = 'scoreboard.sqlite' challenges...
35.221154
127
0.54409
327242b84dcc19c5d7021a61687cb4558b18e65b
401
py
Python
Intermedio/23 Turtle Crossing/player.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
Intermedio/23 Turtle Crossing/player.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
Intermedio/23 Turtle Crossing/player.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
from turtle import Turtle STARTING_POSITION = (0, -280) MOVE_DISTANCE = 10 FINISH_LINE_Y = 280 class Player(Turtle): def __init__(self): super().__init__() self.shape("turtle") self.penup() self.new_level() def new_level(self): self.goto(STARTING_POSITION) sel...
19.095238
36
0.633416
a7e0c3ca796998fe1ed0da604179b812c2e4b906
547
py
Python
LPTHW Soln/Ex40_2.py
vivekagal1998/Learn-Python-the-Hard-Way-Solution
3d000eb28957f881d442a668a57a4e30341b40e2
[ "MIT" ]
null
null
null
LPTHW Soln/Ex40_2.py
vivekagal1998/Learn-Python-the-Hard-Way-Solution
3d000eb28957f881d442a668a57a4e30341b40e2
[ "MIT" ]
null
null
null
LPTHW Soln/Ex40_2.py
vivekagal1998/Learn-Python-the-Hard-Way-Solution
3d000eb28957f881d442a668a57a4e30341b40e2
[ "MIT" ]
null
null
null
class MyClass(object): """docstring for.""" def __init__(self, lyrics): #super, self).__init__() self.lyrics = lyrics print(lyrics) def printme(self): var = self.lyrics for k,v in var.items(): print("Key is given by: %s\nValue is given by: %s "%(k,v)) ly...
23.782609
70
0.517367
68235afa1f782d8dcc10ca073ba9db709fd136b8
1,117
py
Python
examples/movielens.py
muriloime/tensor-fm
597c3f972d98767763ab14a5e787bbcf3571d5d2
[ "MIT" ]
7
2020-02-17T11:42:59.000Z
2022-01-29T08:56:44.000Z
examples/movielens.py
gongwenbo/tensor-fm
4497af6f1dc4d3f809b2f6579b582c63db312195
[ "MIT" ]
5
2020-05-21T21:15:43.000Z
2021-01-01T20:19:45.000Z
examples/movielens.py
gongwenbo/tensor-fm
4497af6f1dc4d3f809b2f6579b582c63db312195
[ "MIT" ]
5
2020-03-03T21:25:18.000Z
2021-08-22T11:28:22.000Z
from tensorfm.sklearn import FactorizationMachineRegressor from sklearn.metrics import mean_squared_error from sklearn.feature_extraction import DictVectorizer import numpy as np # Read in data def load_data(filename, path="ml-100k/"): data = [] y = [] users=set() items=set() with open(path+filenam...
31.914286
115
0.692032
7d3658a2d6188e3efef15ce6dd287dfdaa5de482
12,618
py
Python
dask/dataframe/tests/test_indexing.py
cruzdanilo/dask
965c9e401801689a6a68cec5c0529f912a459960
[ "BSD-3-Clause" ]
1
2021-02-16T06:12:20.000Z
2021-02-16T06:12:20.000Z
dask/dataframe/tests/test_indexing.py
cruzdanilo/dask
965c9e401801689a6a68cec5c0529f912a459960
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/tests/test_indexing.py
cruzdanilo/dask
965c9e401801689a6a68cec5c0529f912a459960
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import pandas.util.testing as tm import numpy as np import pytest import dask import dask.dataframe as dd from dask.dataframe.indexing import _coerce_loc_index from dask.dataframe.utils import assert_eq, make_meta dsk = {('x', 0): pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]}, ...
36.363112
81
0.539309
17e1b12464deff2fc7eb338c51248a2ee03af2aa
487
py
Python
kitsune/kbadge/urls.py
triggerobrien/kitsune
e4a0241c93d3cd571333e5763ac7d0c1bda89e5e
[ "BSD-3-Clause" ]
4
2021-05-17T11:38:08.000Z
2021-08-19T06:42:39.000Z
kitsune/kbadge/urls.py
rlr/kitsune
591e996a3a115a7b235cbca19f5dec58fc9b6249
[ "BSD-3-Clause" ]
1
2021-04-30T20:33:35.000Z
2021-04-30T20:33:35.000Z
kitsune/kbadge/urls.py
rlr/kitsune
591e996a3a115a7b235cbca19f5dec58fc9b6249
[ "BSD-3-Clause" ]
3
2020-06-14T06:59:46.000Z
2020-06-15T14:45:56.000Z
from django.conf.urls import patterns, url import badger badger.autodiscover() from kitsune.kbadge import views # noqa urlpatterns = patterns( 'badger.views', url(r'^$', views.badges_list, name='badger.badges_list'), url(r'^awards/?$', 'awards_list', name='badger.awards_list'), url(r'^badge/(?P<slu...
27.055556
72
0.62423
94301a312ac41fc80fb240ae69fe8d31c6170717
1,566
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_policy.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_policy.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/automatic_os_upgrade_policy.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
43.5
91
0.676245
46201649b1d1aeb31ca6f9f60acb7ff390d766dc
1,150
py
Python
macgraph/regression_test.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
116
2018-07-11T13:19:56.000Z
2021-07-26T17:22:44.000Z
macgraph/regression_test.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
1
2019-02-11T02:25:02.000Z
2019-02-11T17:05:19.000Z
macgraph/regression_test.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
21
2018-10-11T23:03:22.000Z
2021-07-14T22:42:08.000Z
try: # import comet_ml in the top of your file from comet_ml import Experiment except: # It's ok if we didn't install it pass import yaml import tensorflow as tf from .args import get_args from .estimator import get_estimator from .input import gen_input_fn from .train import train # Make TF be quiet import o...
20.535714
100
0.697391
af2c2b68c6a8904eed1a6cead6f73d51ca72a15f
501
py
Python
examples/api/profile/update_profile.py
javad94/instauto
8d4d068863176b0a1df13e5be3d5e32388036921
[ "MIT" ]
79
2020-08-24T23:32:57.000Z
2022-02-20T19:03:17.000Z
examples/api/profile/update_profile.py
klaytonpaiva/instauto
7f8c26b22f84d3d966625c7fa656e91cc623bb2e
[ "MIT" ]
146
2020-07-25T16:27:48.000Z
2021-10-02T09:03:50.000Z
examples/api/profile/update_profile.py
klaytonpaiva/instauto
7f8c26b22f84d3d966625c7fa656e91cc623bb2e
[ "MIT" ]
41
2020-09-07T14:19:04.000Z
2022-02-07T23:08:10.000Z
from instauto.api.client import ApiClient import instauto.api.actions.structs.profile as pr from instauto.api.structs import WhichGender client = ApiClient.initiate_from_file('.instauto.save') # With the update object, you can update multiple attributes at the same time, but you # can also just set one property. obj =...
29.470588
86
0.758483
f840cee91cc69988b65bb28be2949b53ff568711
772
py
Python
worker.py
cainanBlack/csc321
9cebf9c3b61befda932732316b7406f1462c0bee
[ "MIT" ]
null
null
null
worker.py
cainanBlack/csc321
9cebf9c3b61befda932732316b7406f1462c0bee
[ "MIT" ]
null
null
null
worker.py
cainanBlack/csc321
9cebf9c3b61befda932732316b7406f1462c0bee
[ "MIT" ]
null
null
null
# Task worker # Connects PULL socket to tcp://localhost:5557 # Collects workloads from ventilator via that socket # Connects PUSH socket to tcp://localhost:5558 # Sends results to sink via that socket # # Author: Lev Givon <lev(at)columbia(dot)edu> import sys import time import zmq context = zmq.Context() # Socket ...
20.864865
52
0.709845
d3e2adcbf9664afc4799852551ec65d0ee905904
9,034
py
Python
git_number.py
bdero/depot_tools
685577439cbf9cb8c660e3da39bdcbb64c197c95
[ "BSD-3-Clause" ]
null
null
null
git_number.py
bdero/depot_tools
685577439cbf9cb8c660e3da39bdcbb64c197c95
[ "BSD-3-Clause" ]
null
null
null
git_number.py
bdero/depot_tools
685577439cbf9cb8c660e3da39bdcbb64c197c95
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 # Copyright 2013 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. """Usage: %prog [options] [<commitref>]* If no <commitref>'s are supplied, it defaults to HEAD. Calculates the generation number for...
31.698246
80
0.680208
6b6e4122f88f3d70a9560e7317003942c9c96dd9
3,780
py
Python
myprojectenv/lib/python3.5/site-packages/ansible/modules/network/nxos/nxos_rollback.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
myprojectenv/lib/python3.5/site-packages/ansible/modules/network/nxos/nxos_rollback.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
myprojectenv/lib/python3.5/site-packages/ansible/modules/network/nxos/nxos_rollback.py
lancerenteria/doFlask
2d4e242469b108c6c8316ee18a540307497bfb53
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
28.636364
74
0.669312
868d06728add87c3f6f82a85a9a85a31cd2777e7
6,215
py
Python
Blob Rage App/random/TetrisRemix.py
povellesto/blobydouche
7d9eda9d262fa3ea99661b1a419a17f85dd21b17
[ "Unlicense" ]
1
2015-07-30T20:52:55.000Z
2015-07-30T20:52:55.000Z
Blob Rage App/random/TetrisRemix.py
povellesto/blobydouche
7d9eda9d262fa3ea99661b1a419a17f85dd21b17
[ "Unlicense" ]
1
2015-11-23T23:56:08.000Z
2015-11-23T23:56:08.000Z
Blob Rage App/random/TetrisRemix.py
povellesto/blobydouche
7d9eda9d262fa3ea99661b1a419a17f85dd21b17
[ "Unlicense" ]
null
null
null
from Tkinter import * def keyPressed(event): canvas = event.widget.canvas # first process keys that work even if the game is over if (event.char == "q"): gameOver(canvas) elif (event.char == "r"): init(canvas) elif (event.char == "d"): canvas.data["inDebugMode"] = not canvas...
37.215569
98
0.574578
ce164f627f1565991d906a3803c3317e821645e1
1,439
py
Python
nova/cmd/scheduler.py
viveknandavanam/nova
556377b6915936467436c9d5bb33bc0e22244e1e
[ "Apache-2.0" ]
1
2015-11-30T19:44:00.000Z
2015-11-30T19:44:00.000Z
nova/cmd/scheduler.py
viveknandavanam/nova
556377b6915936467436c9d5bb33bc0e22244e1e
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/cmd/scheduler.py
viveknandavanam/nova
556377b6915936467436c9d5bb33bc0e22244e1e
[ "Apache-2.0" ]
3
2018-04-04T15:15:01.000Z
2018-04-19T18:14:25.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
30.617021
78
0.734538
001c401f10aae913ca2e2e769c50e83395a60821
4,941
py
Python
tests/test_wns.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
tests/test_wns.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
tests/test_wns.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from django.test import TestCase from push_notifications.wns import ( dict_to_xml_schema, wns_send_bulk_message, wns_send_message ) from ._mock import mock class WNSSendMessageTestCase(TestCase): def setUp(self): pass @mock.patch("push_notifications.wns._wns_prepare_toast", re...
30.689441
91
0.655738
e35c66c7aa753c54b91cebd48a62e71aec9d47fd
456
py
Python
Desafios/desafio038.py
RodrigoMSCruz/CursoEmVideo.com-Python
65203612de677dffa52119e7c06b928a6b5edcb3
[ "MIT" ]
null
null
null
Desafios/desafio038.py
RodrigoMSCruz/CursoEmVideo.com-Python
65203612de677dffa52119e7c06b928a6b5edcb3
[ "MIT" ]
null
null
null
Desafios/desafio038.py
RodrigoMSCruz/CursoEmVideo.com-Python
65203612de677dffa52119e7c06b928a6b5edcb3
[ "MIT" ]
null
null
null
# Programa lê 2 números inteiros inseridos pelo usuário e diz qual é # o maior ou se ambos são iguais. n1 = int(input('Digite o primeiro número: ')) n2 = int(input('Digite o segundo número: ')) if n1 > n2: print('O valor do primeiro número {} é maior que o segundo número {}.'.format(n1, n2)) elif n2 > n1: pri...
35.076923
90
0.675439
f347bcef47bdd9eb8d98acd1a5d78d19eb7caa83
1,459
py
Python
tests/test_drop_columns_step.py
iuga/Yeast
8800c9df92121be5bbb89eaf30d800fdf274f260
[ "MIT" ]
null
null
null
tests/test_drop_columns_step.py
iuga/Yeast
8800c9df92121be5bbb89eaf30d800fdf274f260
[ "MIT" ]
null
null
null
tests/test_drop_columns_step.py
iuga/Yeast
8800c9df92121be5bbb89eaf30d800fdf274f260
[ "MIT" ]
null
null
null
import pytest import pandas as pd from yeast.steps.drop_columns_step import DropColumnsStep from yeast.errors import YeastValidationError from yeast.selectors import AllNumeric, AllMatching from data_samples import startrek_data as data def test_drop_column_step_must_subset_columns(data): """ Step must subs...
27.528302
73
0.724469
7b1a728215edd83da786aa24495cf1e1b6e9044e
105,144
py
Python
python/ccxt/async_support/ndax.py
sandutsar/ccxt
f27c187fa1626a6c261c6fa5caaae89cb657461d
[ "MIT" ]
null
null
null
python/ccxt/async_support/ndax.py
sandutsar/ccxt
f27c187fa1626a6c261c6fa5caaae89cb657461d
[ "MIT" ]
null
null
null
python/ccxt/async_support/ndax.py
sandutsar/ccxt
f27c187fa1626a6c261c6fa5caaae89cb657461d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import json from ccxt.base.errors import ExchangeError from ccxt.base.errors import A...
45.974639
218
0.525375
09aff322cf9047c25bdb05e1bb8842a1806b87f9
21,805
py
Python
server/tests-py/test_graphql_mutations.py
irshadjsr21/graphql-engine
b3d814e56fdfe9639f45e642c0a9bb248e26e080
[ "Apache-2.0", "MIT" ]
2
2020-10-24T07:27:33.000Z
2020-11-26T17:51:00.000Z
server/tests-py/test_graphql_mutations.py
irshadjsr21/graphql-engine
b3d814e56fdfe9639f45e642c0a9bb248e26e080
[ "Apache-2.0", "MIT" ]
null
null
null
server/tests-py/test_graphql_mutations.py
irshadjsr21/graphql-engine
b3d814e56fdfe9639f45e642c0a9bb248e26e080
[ "Apache-2.0", "MIT" ]
null
null
null
import pytest from validate import check_query_f # Marking all tests in this module that server upgrade tests can be run # Few of them cannot be run, which will be marked skip_server_upgrade_test pytestmark = pytest.mark.allow_server_upgrade_test usefixtures = pytest.mark.usefixtures use_mutation_fixtures = usefixtu...
40.986842
112
0.753359
c7561015a4223171522f59be40a94ac1e08ee591
3,342
py
Python
packaging/setup/plugins/ovirt-engine-rename/ovirt-engine/misc.py
UranusBlockStack/ovirt-engine
fe3c90ed3e74e6af9497c826c82e653382946ae1
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-rename/ovirt-engine/misc.py
UranusBlockStack/ovirt-engine
fe3c90ed3e74e6af9497c826c82e653382946ae1
[ "Apache-2.0" ]
null
null
null
packaging/setup/plugins/ovirt-engine-rename/ovirt-engine/misc.py
UranusBlockStack/ovirt-engine
fe3c90ed3e74e6af9497c826c82e653382946ae1
[ "Apache-2.0" ]
null
null
null
# # ovirt-engine-setup -- ovirt engine setup # Copyright (C) 2013-2015 Red Hat, 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 # # Unl...
28.084034
78
0.612507
7feed2c227fd8145304e4a7f3a7d69a3fb724963
7,500
py
Python
bigjobasync/input_transfer_worker.py
radical-cybertools/BigJobAsync
190540c61dd00dc538ece189ba858ce9bbc0d5ae
[ "MIT" ]
null
null
null
bigjobasync/input_transfer_worker.py
radical-cybertools/BigJobAsync
190540c61dd00dc538ece189ba858ce9bbc0d5ae
[ "MIT" ]
null
null
null
bigjobasync/input_transfer_worker.py
radical-cybertools/BigJobAsync
190540c61dd00dc538ece189ba858ce9bbc0d5ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Implements a multiprocessing.Process that processes task input file directives (transferring, moving, locally / remtotely etc.) """ __author__ = "Ole Weidner" __email__ = "ole.weidner@rutgers.edu" __copyright__ = "Copyright 2013-2014, The RADICAL Project at Rutgers" __license__ = "M...
37.5
116
0.485333
7882a63daea3aa6bc10d29bfd1b956d37da0d294
2,058
py
Python
firstlanguage_python/models/api_translate_response.py
FirstLanguage/fl-python
1db77bbf41a78159451abb91e4e0cf3fd519ec54
[ "MIT" ]
null
null
null
firstlanguage_python/models/api_translate_response.py
FirstLanguage/fl-python
1db77bbf41a78159451abb91e4e0cf3fd519ec54
[ "MIT" ]
null
null
null
firstlanguage_python/models/api_translate_response.py
FirstLanguage/fl-python
1db77bbf41a78159451abb91e4e0cf3fd519ec54
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ firstlanguage_python This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). """ import os from firstlanguage_python.utilities.schema_validator_wrapper import SchemaValidatorWrapper from jsonschema import ValidationError from firstlanguage_python.api...
27.44
119
0.637512
8c1c24b69f84981be6d47ed104a2e3e44726dbd5
792
py
Python
demo/__init__.py
simonoso/EasyRL
3d8eb2bf138dd2a0b95f8b3743d15f34cfff0740
[ "Apache-2.0" ]
125
2019-12-05T02:50:56.000Z
2022-02-22T08:03:24.000Z
demo/__init__.py
simonoso/EasyRL
3d8eb2bf138dd2a0b95f8b3743d15f34cfff0740
[ "Apache-2.0" ]
4
2020-03-18T05:56:22.000Z
2020-07-11T11:10:17.000Z
demo/__init__.py
simonoso/EasyRL
3d8eb2bf138dd2a0b95f8b3743d15f34cfff0740
[ "Apache-2.0" ]
26
2019-12-12T06:25:47.000Z
2022-01-19T22:19:41.000Z
# Copyright (c) 2019 Alibaba Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
41.684211
80
0.699495