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
a71d82604058e50763d2182e41135dff9c1f9cef
202
py
Python
print function/print Numbers/7Print_greet.py
palakbaphna/pyprac
992770d5aed73c632a69b4bb22f471f35d083ee5
[ "Apache-2.0" ]
null
null
null
print function/print Numbers/7Print_greet.py
palakbaphna/pyprac
992770d5aed73c632a69b4bb22f471f35d083ee5
[ "Apache-2.0" ]
null
null
null
print function/print Numbers/7Print_greet.py
palakbaphna/pyprac
992770d5aed73c632a69b4bb22f471f35d083ee5
[ "Apache-2.0" ]
null
null
null
#Write a program that greets the user by printing the word "Hello", a comma, # the name of the user and an exclamation mark after it name = str(input("What is your name?")) print("Hello, %s!" %name)
25.25
76
0.70297
95f36db5d41cb42274c19adec94c32eaecf83502
6,689
py
Python
src/python/pants/backend/python/lint/black/rules.py
adam-singer/pants
0fc6fb71e983487b3795ce6f34292967841e994d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/lint/black/rules.py
adam-singer/pants
0fc6fb71e983487b3795ce6f34292967841e994d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/lint/black/rules.py
adam-singer/pants
0fc6fb71e983487b3795ce6f34292967841e994d
[ "Apache-2.0" ]
1
2021-08-01T05:43:34.000Z
2021-08-01T05:43:34.000Z
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import re from dataclasses import dataclass from pathlib import PurePath from typing import Tuple from pants.backend.python.lint.black.subsystem import Black from pants.backend.python.lin...
36.551913
100
0.719839
5828b63f391dedb073b7537080e01780e97ab287
8,625
py
Python
pyrobolearn/envs/control/cartpole.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/envs/control/cartpole.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/envs/control/cartpole.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provide the inverted pole on a cart (Cartpole) environment. This is based on the control problem proposed in OpenAI Gym: "A pole is attached by an un-actuated joint to a cart, which moves along a frictionless track. The system is controlled by applying a force of +1 or ...
43.341709
120
0.641159
edd861c146aa83221cb13988a31f0ac1ac9c2438
5,144
py
Python
google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py
jwygoda/google-ads-python
863892b533240cb45269d9c2cceec47e2c5a8b68
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v1/proto/enums/price_extension_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message...
39.875969
884
0.77119
98f4c5a5d7e6f34e06cad5324f9401ca3d0646f8
279
py
Python
embark/users/urls.py
YulianaPoliakova/embark
5dc11114b2348ce1b580a9f18dd081018ac9d07f
[ "MIT" ]
149
2021-07-27T08:22:33.000Z
2022-03-26T23:25:20.000Z
embark/users/urls.py
IoTSecurity101/embark
cb0336459bf8d2a59c54b001fc0f4bf126a9b986
[ "MIT" ]
22
2021-07-28T07:32:11.000Z
2022-03-30T12:02:49.000Z
embark/users/urls.py
IoTSecurity101/embark
cb0336459bf8d2a59c54b001fc0f4bf126a9b986
[ "MIT" ]
23
2021-07-30T07:34:53.000Z
2022-03-24T12:37:51.000Z
# from django.urls import path, include from django.urls import path from . import views urlpatterns = [ path('signin', views.signin, name='embark-signin'), path('signup', views.signup, name='embark-signup'), path('signout', views.signout, name='embark-signout') ]
25.363636
57
0.698925
2d08c6910481bcba0bc97181575ff3234dd1a236
3,811
py
Python
results/Random16/Random16Last-DIA16/testserver.py
sangttruong/GinRummy
45f6a10eeb53b979b152d6bf9e904f38df9473f0
[ "MIT" ]
3
2020-09-07T02:02:20.000Z
2021-06-30T16:27:08.000Z
results/Random16/Random16Last-DIA16/testserver.py
sangttruong/GinRummy
45f6a10eeb53b979b152d6bf9e904f38df9473f0
[ "MIT" ]
10
2021-06-22T17:10:12.000Z
2021-07-18T02:02:03.000Z
results/Random16/Random16Last-DIA16/testserver.py
sangttruong/GinRummy
45f6a10eeb53b979b152d6bf9e904f38df9473f0
[ "MIT" ]
3
2021-04-04T18:02:27.000Z
2022-03-07T03:18:14.000Z
import numpy as np import sys import os stderr = sys.stderr sys.stderr = open(os.devnull, 'w') sys.stderr = stderr # disable any warnings by TensorFlow. os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import datetime import random import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train...
30.733871
146
0.625558
3577db12885dab7e7c69c55e40635876cb1df499
4,178
py
Python
multilogger.py
guolivar/multi-serial-logger
cdc91daa65eeb1148a291ca7371c995390cf0992
[ "MIT" ]
null
null
null
multilogger.py
guolivar/multi-serial-logger
cdc91daa65eeb1148a291ca7371c995390cf0992
[ "MIT" ]
null
null
null
multilogger.py
guolivar/multi-serial-logger
cdc91daa65eeb1148a291ca7371c995390cf0992
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Load the libraries import serial # Serial communications import time # Timing utilities import os,sys # OS utils to keep working directory # Change working directory to the script's path os.chdir(os.path.dirname(sys.argv[0])) # Set the time constants rec_time=time.gmtime() timestamp ...
33.693548
94
0.628291
2a8c4604331efff38c7a000f0a3b3e3e75a42771
5,443
py
Python
tests/providers/microsoft/azure/hooks/test_azure_data_lake.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
2
2021-07-30T17:25:56.000Z
2021-08-03T13:51:09.000Z
tests/providers/microsoft/azure/hooks/test_azure_data_lake.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
20
2021-01-23T12:33:08.000Z
2021-12-07T22:30:37.000Z
tests/providers/microsoft/azure/hooks/test_azure_data_lake.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
1
2020-11-04T03:12:47.000Z
2020-11-04T03:12:47.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
40.022059
106
0.696123
265122ffd7474530f49422c264a7440796388af8
2,636
py
Python
appengine/src/greenday_core/migrations/0016_auto_20150521_1325.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
6
2018-07-31T16:48:07.000Z
2020-02-01T03:17:51.000Z
appengine/src/greenday_core/migrations/0016_auto_20150521_1325.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
41
2018-08-07T16:43:07.000Z
2020-06-05T18:54:50.000Z
appengine/src/greenday_core/migrations/0016_auto_20150521_1325.py
meedan/montage
4da0116931edc9af91f226876330645837dc9bcc
[ "Apache-2.0" ]
1
2018-08-07T16:40:18.000Z
2018-08-07T16:40:18.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('greenday_core', '0015_auto_20150422_1624'), ] operations = [ migrations.AlterField( model_name='event', ...
52.72
1,380
0.645675
8186927b1589218c705bdeb37f5bb1df710b4840
6,371
py
Python
plot.py
jazzsewera/aisde-lab2
072c8cddeefa4115a946a6915bd1d1a60f4b52ca
[ "MIT" ]
null
null
null
plot.py
jazzsewera/aisde-lab2
072c8cddeefa4115a946a6915bd1d1a60f4b52ca
[ "MIT" ]
null
null
null
plot.py
jazzsewera/aisde-lab2
072c8cddeefa4115a946a6915bd1d1a60f4b52ca
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import linregress import sys import getopt import json import re try: from matplotlib import pyplot as plt except Exception: import matplotlib matplotlib.use('pdf') from matplotlib import pyplot as plt def save_plot(alg_name, file_suffix, y_label, legend_list, title...
34.252688
77
0.533511
4652acc7aabe49121906ffaf28dd20a60123253d
47,549
py
Python
subversion/tests/cmdline/changelist_tests.py
ruchirarya/svn
81502a213251c2af21361a942bd9a8cd7d3adb9f
[ "Apache-2.0" ]
7
2018-01-18T06:13:21.000Z
2020-07-09T03:46:16.000Z
depe/subversion/subversion/tests/cmdline/changelist_tests.py
louis-tru/TouchCode2
91c182aeaa37fba16e381ea749d32906dab1aeea
[ "BSD-3-Clause-Clear" ]
4
2015-01-12T22:23:41.000Z
2015-01-12T22:33:52.000Z
src/subversion/subversion/tests/cmdline/changelist_tests.py
schwern/alien-svn
7423b08f9bc4fdf0ac0d7ea53495269b21b3e8f9
[ "Apache-2.0" ]
1
2020-11-04T07:25:22.000Z
2020-11-04T07:25:22.000Z
#!/usr/bin/env python # # changelist_tests.py: testing changelist uses. # # Subversion is a tool for revision control. # See http://subversion.apache.org for more information. # # ==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # ...
39.102796
103
0.552272
1968c874a142a149b26c744ef8143c12ce2dcee4
6,216
py
Python
bokeh/io/saving.py
snjypl/bokeh
c2467ee201b4516301f2893bdf7ec2c21b877a9a
[ "BSD-3-Clause" ]
1
2021-06-03T13:13:21.000Z
2021-06-03T13:13:21.000Z
bokeh/io/saving.py
snjypl/bokeh
c2467ee201b4516301f2893bdf7ec2c21b877a9a
[ "BSD-3-Clause" ]
null
null
null
bokeh/io/saving.py
snjypl/bokeh
c2467ee201b4516301f2893bdf7ec2c21b877a9a
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
36.139535
127
0.552124
3d367cbc4a8d1de3175240ab89f141eaf7acc744
2,903
py
Python
detect.py
saurabhpatel7/Age-Gender_Detection
c95e76b500d7ba7ceaa9830c5e0fe37799d614f1
[ "MIT" ]
null
null
null
detect.py
saurabhpatel7/Age-Gender_Detection
c95e76b500d7ba7ceaa9830c5e0fe37799d614f1
[ "MIT" ]
null
null
null
detect.py
saurabhpatel7/Age-Gender_Detection
c95e76b500d7ba7ceaa9830c5e0fe37799d614f1
[ "MIT" ]
null
null
null
import cv2 import math import argparse def highlightFace(net, frame, conf_threshold=0.7): frameOpencvDnn = frame.copy() frameHeight = frameOpencvDnn.shape[0] frameWidth = frameOpencvDnn.shape[1] blob = cv2.dnn.blobFromImage(frameOpencvDnn, 1.0, (300, 300), [104, 117, 123], True, False) ...
37.701299
116
0.604203
cf9dc4030afccc4c3f9fa6f49d330a8d8d781fe5
9,036
py
Python
lib/services/vserver/ncloud_vserver/model/get_access_control_group_list_request.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
12
2018-11-20T04:30:49.000Z
2021-11-09T12:34:26.000Z
lib/services/vserver/ncloud_vserver/model/get_access_control_group_list_request.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
1
2019-01-24T15:56:15.000Z
2019-05-31T07:56:55.000Z
lib/services/vserver/ncloud_vserver/model/get_access_control_group_list_request.py
NaverCloudPlatform/ncloud-sdk-python
5976dfabd205c615fcf57ac2f0ab67313ee6953c
[ "MIT" ]
6
2018-06-29T03:45:50.000Z
2022-03-18T01:51:45.000Z
# coding: utf-8 """ vserver Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GetAccessControlGroupListRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the clas...
32.271429
204
0.64907
6e6062bfb8d0710c5152d45b7b793375fbde4f05
291
py
Python
molssi_math/string_util.py
arefnel/sermacs-workshop
f53ced2796d450c58f4fbb545259cd3e8552244e
[ "BSD-3-Clause" ]
null
null
null
molssi_math/string_util.py
arefnel/sermacs-workshop
f53ced2796d450c58f4fbb545259cd3e8552244e
[ "BSD-3-Clause" ]
null
null
null
molssi_math/string_util.py
arefnel/sermacs-workshop
f53ced2796d450c58f4fbb545259cd3e8552244e
[ "BSD-3-Clause" ]
null
null
null
""" Misc. string processing functions """ def title_case(sentence): """ :param sentence: sentence tp be converted :return: ret: string :example: >>> titlecase("This iS tHe") This Is The """ return ' '.join([i.capitalize() for i in sentence.split()])
20.785714
63
0.594502
83da56c44018c7e5882deae9eb874f2a960b23b7
1,177
py
Python
sdk/python/pulumi_aws_native/ivs/_enums.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/ivs/_enums.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/ivs/_enums.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.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! *** from enum import Enum __all__ = [ 'ChannelLatencyMode', 'ChannelType', 'RecordingConfigurationState', 'RecordingConfigurationThumbnail...
25.586957
172
0.697536
7022b3dae4ba45d026c89e12469b39297be93341
7,920
py
Python
kincone/kincone.py
rozeroze/kincone-send-attendance
be7d3305722d98d5769e7e281308ce81ac7566d6
[ "MIT" ]
null
null
null
kincone/kincone.py
rozeroze/kincone-send-attendance
be7d3305722d98d5769e7e281308ce81ac7566d6
[ "MIT" ]
null
null
null
kincone/kincone.py
rozeroze/kincone-send-attendance
be7d3305722d98d5769e7e281308ce81ac7566d6
[ "MIT" ]
null
null
null
import sys import csv import time from selenium import webdriver from selenium.webdriver.firefox.options import Options LOGIN_URL = "https://kincone.com/auth/login" LOGOUT_URL = "https://kincone.com/auth/logout" CONFIGFILE = "/kincone/.kincone.user" ATTENDANCEFILE = "/kincone/attendance.csv" SCREENSHOT = "/kincone/sna...
38.076923
154
0.687247
734510a5332c945e529a61282c8a272e26d20db1
3,747
py
Python
visualize.py
leilimaster/DmifNet
cad50bb7a3762745f72b2498c2eef5ad5b21e4c6
[ "MIT" ]
25
2020-07-24T08:24:09.000Z
2022-02-22T07:08:54.000Z
dmifnet/utils/visualize.py
leilimaster/DmifNet
cad50bb7a3762745f72b2498c2eef5ad5b21e4c6
[ "MIT" ]
2
2021-01-28T09:54:02.000Z
2021-02-02T09:08:11.000Z
dmifnet/visualize.py
leilimaster/DmifNet
cad50bb7a3762745f72b2498c2eef5ad5b21e4c6
[ "MIT" ]
1
2021-06-19T08:47:48.000Z
2021-06-19T08:47:48.000Z
import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D from torchvision.utils import save_image import dmifnet.common as common def visualize_data(data, data_type, out_file): r''' Visualizes the data with regard to its type. Args: data (tensor): batch of data ...
31.754237
76
0.622365
1c2e829f76a0ecd0a9354921fb8cf2b2cf7783c3
447
py
Python
tools/python/boutiques/tests/test_pprint.py
jerdra/boutiques
f6ee252fd1332ec686dc76dc12e52a0d69c685c3
[ "MIT" ]
null
null
null
tools/python/boutiques/tests/test_pprint.py
jerdra/boutiques
f6ee252fd1332ec686dc76dc12e52a0d69c685c3
[ "MIT" ]
null
null
null
tools/python/boutiques/tests/test_pprint.py
jerdra/boutiques
f6ee252fd1332ec686dc76dc12e52a0d69c685c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import os.path as op from unittest import TestCase from boutiques import __file__ as bfile from six import string_types import boutiques as bosh class TestPPrint(TestCase): def test_doesntcrash(self): fil = op.join(op.split(bfile)[0], 'schema/example...
24.833333
63
0.711409
e6cc5e97ef57b1d175d4270bfd16a5e8c96e6c89
671
py
Python
melange/messaging/event_message.py
mangeld/melange
1650268b312f3fea7b26afa2fc8ea4f8dd3948e3
[ "MIT" ]
null
null
null
melange/messaging/event_message.py
mangeld/melange
1650268b312f3fea7b26afa2fc8ea4f8dd3948e3
[ "MIT" ]
null
null
null
melange/messaging/event_message.py
mangeld/melange
1650268b312f3fea7b26afa2fc8ea4f8dd3948e3
[ "MIT" ]
null
null
null
from datetime import datetime from marshmallow import Schema, fields class EventSchema(Schema): event_type_name = fields.Str() occurred_on = fields.DateTime() class EventMessage: # A constant that subscriber can use in their "listens_to" events to # tell they are interested in all the events that ...
23.964286
75
0.716841
08fd49debdad2f1475799e1ba87d36097c8c2d0a
3,299
py
Python
src/dxtbx/format/FormatCBFMiniEigerDLS16MSN160.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
3
2019-08-16T05:46:29.000Z
2020-09-18T08:38:37.000Z
src/dxtbx/format/FormatCBFMiniEigerDLS16MSN160.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
448
2019-04-06T01:20:56.000Z
2022-03-31T15:58:48.000Z
src/dxtbx/format/FormatCBFMiniEigerDLS16MSN160.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
10
2019-04-08T13:30:32.000Z
2021-09-30T14:48:50.000Z
import sys import libtbx from scitbx.array_family import flex from dxtbx.format.FormatCBFMiniEiger import FormatCBFMiniEiger from dxtbx.masking import GoniometerMaskerFactory class FormatCBFMiniEigerDLS16MSN160(FormatCBFMiniEiger): @staticmethod def understand(image_file): """Check to see if this fo...
30.546296
86
0.615035
6d3e1ca2142ee69c7ac166b245e16685c4a13346
31,069
py
Python
programs/maya/scripts/naming.py
nicklovin/pipeline
4d8e042783321e5b0ed7b8a713a7db4d2cef9adb
[ "BSD-2-Clause" ]
null
null
null
programs/maya/scripts/naming.py
nicklovin/pipeline
4d8e042783321e5b0ed7b8a713a7db4d2cef9adb
[ "BSD-2-Clause" ]
null
null
null
programs/maya/scripts/naming.py
nicklovin/pipeline
4d8e042783321e5b0ed7b8a713a7db4d2cef9adb
[ "BSD-2-Clause" ]
null
null
null
import maya.cmds as cmds import pymel.core as pm from string import ascii_uppercase from functools import partial from PySide2 import QtWidgets, QtCore, QtGui import Splitter from maya_tools.contexts.undoContext import UndoContext LETTERS_INDEX = {index: letter for index, letter in enumerate(ascii_upp...
38.787765
84
0.640124
e04a678183539878c3118fb66d4952edf20640d7
1,286
py
Python
spot/crawler/crawler_args.py
AbsaOSS/spot
314b16b7722e189de5dc50bcd1ba3434c5df1de8
[ "Apache-2.0" ]
1
2022-01-30T06:17:11.000Z
2022-01-30T06:17:11.000Z
spot/crawler/crawler_args.py
AbsaOSS/spot
314b16b7722e189de5dc50bcd1ba3434c5df1de8
[ "Apache-2.0" ]
2
2022-01-14T19:41:02.000Z
2022-02-02T16:04:49.000Z
spot/crawler/crawler_args.py
AbsaOSS/spot
314b16b7722e189de5dc50bcd1ba3434c5df1de8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 ABSA Group Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
37.823529
108
0.655521
1927d9a534ead0434e59c076d52ceeff615466c1
943
py
Python
apps/blogUserApp/models.py
sepmoon/django_blog_demo
e77bb452e9161f6749ad970e5af35ec9ff7dc7a4
[ "MIT" ]
null
null
null
apps/blogUserApp/models.py
sepmoon/django_blog_demo
e77bb452e9161f6749ad970e5af35ec9ff7dc7a4
[ "MIT" ]
null
null
null
apps/blogUserApp/models.py
sepmoon/django_blog_demo
e77bb452e9161f6749ad970e5af35ec9ff7dc7a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from django.db import models # Create your models here. class BlogAuthorModel(models.Model): """ 博客用户信息设置 """ name = models.CharField(max_length=20, verbose_name=u"博主昵称") author_logo = models.ImageField(verbose_name=u"博主头像", upload_to="images...
33.678571
107
0.722163
50aef9861b82f3d61aa1f87bcc7658661d353df1
41,124
py
Python
sqlserver/datadog_checks/sqlserver/sqlserver.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
1
2021-03-24T13:00:14.000Z
2021-03-24T13:00:14.000Z
sqlserver/datadog_checks/sqlserver/sqlserver.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
sqlserver/datadog_checks/sqlserver/sqlserver.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) ''' Check the performance counters from SQL Server For information on how to report the metrics available in the sys.dm_os_performance_counters table see http://blogs.msdn.com/b/psssql/archive/2013/09/23/i...
42.971787
136
0.612246
962ab1d213ce1ba006b0e224497bb9c4b3c11da7
450
py
Python
test.py
lexibank/huntergatherer
50c03c198535cfcc145a605edf3307f90639e23c
[ "CC-BY-4.0" ]
null
null
null
test.py
lexibank/huntergatherer
50c03c198535cfcc145a605edf3307f90639e23c
[ "CC-BY-4.0" ]
8
2019-04-08T20:39:40.000Z
2021-07-23T09:34:18.000Z
test.py
lexibank/huntergatherer
50c03c198535cfcc145a605edf3307f90639e23c
[ "CC-BY-4.0" ]
null
null
null
def test_valid(cldf_dataset, cldf_logger): assert cldf_dataset.validate(log=cldf_logger) def test_forms(cldf_dataset): assert len(list(cldf_dataset["FormTable"])) == 79893 assert any(f["Form"] == "panyi'a-t" for f in cldf_dataset["FormTable"]) def test_parameters(cldf_dataset): assert len(list(cldf_...
28.125
75
0.733333
265669498cc7781f8741865813c0252cc00bf905
4,661
py
Python
gower/gower_dist.py
singharx/gower
a5826342ed00bc981d7cef8604f7edfcad92f3ab
[ "MIT" ]
42
2020-04-07T16:38:37.000Z
2022-03-11T16:52:16.000Z
gower/gower_dist.py
singharx/gower
a5826342ed00bc981d7cef8604f7edfcad92f3ab
[ "MIT" ]
4
2020-08-30T19:20:13.000Z
2022-03-21T09:47:00.000Z
gower/gower_dist.py
singharx/gower
a5826342ed00bc981d7cef8604f7edfcad92f3ab
[ "MIT" ]
10
2020-05-02T14:11:34.000Z
2022-03-20T22:22:17.000Z
from scipy.sparse import issparse import numpy as np import pandas as pd def gower_matrix(data_x, data_y=None, weight=None, cat_features=None): # function checks X = data_x if data_y is None: Y = data_x else: Y = data_y if not isinstance(X, np.ndarray): if not np.array_equal(X.col...
33.292857
109
0.585497
1a867a87ab241adc3d387fd4b43ec71fc3e8b87a
7,325
py
Python
templateflow/api.py
rciric/templateflow-python-client
96b9f1f949dd3cf8843ab91d041390c6944d1da7
[ "Apache-2.0" ]
null
null
null
templateflow/api.py
rciric/templateflow-python-client
96b9f1f949dd3cf8843ab91d041390c6944d1da7
[ "Apache-2.0" ]
null
null
null
templateflow/api.py
rciric/templateflow-python-client
96b9f1f949dd3cf8843ab91d041390c6944d1da7
[ "Apache-2.0" ]
null
null
null
"""TemplateFlow's Python Client.""" from json import loads from pathlib import Path import re import sys from .conf import TF_LAYOUT, TF_S3_ROOT, TF_USE_DATALAD, requires_layout @requires_layout def get(template, raise_empty=False, **kwargs): """ Fetch one file from one particular template. Parameters ...
28.065134
95
0.61884
8c5860b3a053d48c8b9628cb23c6108ed34ed02d
40,411
py
Python
venv/lib/python3.8/site-packages/azure/mgmt/resource/policy/v2020_09_01/models/_models_py3.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azure/mgmt/resource/policy/v2020_09_01/models/_models_py3.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azure/mgmt/resource/policy/v2020_09_01/models/_models_py3.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# 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 ...
40.370629
265
0.66566
d5a8077a73f7d41a3e06ba9c08322221d3ce0b42
826
py
Python
Packs/ReplaceMatchGroup/Scripts/ReplaceMatchGroup/ReplaceMatchGroup.py
ddi-danielsantander/content
67e2edc404f50c332d928dbdbce00a447bb5532f
[ "MIT" ]
1
2020-04-19T11:05:42.000Z
2020-04-19T11:05:42.000Z
Packs/ReplaceMatchGroup/Scripts/ReplaceMatchGroup/ReplaceMatchGroup.py
ddi-danielsantander/content
67e2edc404f50c332d928dbdbce00a447bb5532f
[ "MIT" ]
1
2020-07-29T21:48:58.000Z
2020-07-29T21:48:58.000Z
Packs/ReplaceMatchGroup/Scripts/ReplaceMatchGroup/ReplaceMatchGroup.py
ddi-danielsantander/content
67e2edc404f50c332d928dbdbce00a447bb5532f
[ "MIT" ]
2
2020-07-15T06:41:52.000Z
2020-07-19T18:45:23.000Z
import demistomock as demisto from CommonServerPython import DemistoException import re def main(args): value = args['value'] replace_with = args['replace_with'] output = list() start = 0 try: regex = re.compile(args['regex']) except (re.error, TypeError): raise DemistoExcepti...
26.645161
67
0.641646
37739647da0aa5b389939212657056aa40eec476
26,237
py
Python
goap/goap.py
PowderKegTech/mushikago
f09da10275c6df0e1a6121118ea4036bd1f6ae9a
[ "Apache-2.0" ]
29
2021-04-26T15:38:54.000Z
2021-12-15T04:03:00.000Z
goap/goap.py
PowderKegTech/mushikago
f09da10275c6df0e1a6121118ea4036bd1f6ae9a
[ "Apache-2.0" ]
1
2022-02-17T09:48:46.000Z
2022-02-17T09:48:46.000Z
goap/goap.py
PowderKegTech/mushikago
f09da10275c6df0e1a6121118ea4036bd1f6ae9a
[ "Apache-2.0" ]
7
2021-07-19T11:10:29.000Z
2021-12-13T00:36:44.000Z
from arsenal import arpscan from arsenal import mynmap from arsenal import msploit from arsenal import masscan from arsenal import ics_detect from database import write_json from database import attack_tree from database import mushilogger import json import random import subprocess import copy import pprint from ipadd...
36.139118
293
0.614285
d8dd6bfadb056408f98c24475be1fe9ce25d2c20
260
py
Python
show_df_as_html_table.py
NathanKr/pandas-playground
a5355c59cb61ca3a7dcce590ed42d56a6b943783
[ "MIT" ]
null
null
null
show_df_as_html_table.py
NathanKr/pandas-playground
a5355c59cb61ca3a7dcce590ed42d56a6b943783
[ "MIT" ]
null
null
null
show_df_as_html_table.py
NathanKr/pandas-playground
a5355c59cb61ca3a7dcce590ed42d56a6b943783
[ "MIT" ]
null
null
null
import pandas as pd import os url = 'https://en.wikipedia.org/wiki/List_of_S%26P_500_companies' snp500_df = pd.read_html(url)[0] file_path = os.path.join('temp','snp500_df_to_html.html') print(f'write snp500_df to {file_path}') snp500_df.to_html(file_path)
23.636364
65
0.769231
02d408487f0686824a537a752d9cda4a49647270
1,358
py
Python
Ryven_NodeManager/Node.py
lidong1266/Ryven-Switch
68d1f71e81d6564196f44ca49d5903f06db6a4d9
[ "MIT" ]
18
2021-01-18T09:52:41.000Z
2022-03-22T10:48:44.000Z
Ryven_NodeManager/Node.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
null
null
null
Ryven_NodeManager/Node.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
3
2021-01-18T09:49:42.000Z
2022-03-22T10:48:47.000Z
from PySide2.QtCore import QObject, Signal class Node(QObject): # QObject inheritance for the Signal """All values are initial! They get set when nodes are imported but do not get synchronized yet when the NodeContentWidget is being changed. When exporting, all info comes from the NodeContentWidget.""" ...
34.820513
108
0.642121
183196fb7a7256d985e673ffcbe4c86973729ed4
1,264
py
Python
snippets/applyF_filterG-function.midterm-exam-Problem8.py
coshkun/6.00.1x-MITx-Course-Training-Lab-Notes
63e755dc81fd50a7b1372074a4a73e50021a233b
[ "MIT" ]
null
null
null
snippets/applyF_filterG-function.midterm-exam-Problem8.py
coshkun/6.00.1x-MITx-Course-Training-Lab-Notes
63e755dc81fd50a7b1372074a4a73e50021a233b
[ "MIT" ]
null
null
null
snippets/applyF_filterG-function.midterm-exam-Problem8.py
coshkun/6.00.1x-MITx-Course-Training-Lab-Notes
63e755dc81fd50a7b1372074a4a73e50021a233b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 14 13:51:35 2017 @author: coskun Midterm Exam > Problem 8 20.0 points possible (graded) Implement the fuction meet below, f,g,and L will be supplied by system """ #Sample Definitions def f(i): return i + 2 def g(i): return i > 5 L = [0, -...
21.793103
75
0.599684
a1f3c3d4ddd343ecb1ca912124b175e1a14ae9cd
16,852
py
Python
environment.py
terraregina/BalancingControl
36330cc0a20ad1f2fbd3a8f87ef8fed98df3fb22
[ "MIT" ]
null
null
null
environment.py
terraregina/BalancingControl
36330cc0a20ad1f2fbd3a8f87ef8fed98df3fb22
[ "MIT" ]
null
null
null
environment.py
terraregina/BalancingControl
36330cc0a20ad1f2fbd3a8f87ef8fed98df3fb22
[ "MIT" ]
null
null
null
"""This module contains various experimental environments used for testing human behavior.""" import numpy as np class GridWorld(object): def __init__(self, Omega, Theta, Rho, trials = 1, T = 10, initial_state = 2): #set probability distribution used for generating observations ...
32.978474
109
0.600641
99784635adee2c9e95c8d80a7b42ced0195df238
418
py
Python
pinkfish/tests/test_config.py
simongarisch/pinkfish
1265b6642e2990dd84fb65353cf44965d85c7083
[ "MIT" ]
1
2020-03-31T04:02:19.000Z
2020-03-31T04:02:19.000Z
pinkfish/tests/test_config.py
simongarisch/pinkfish
1265b6642e2990dd84fb65353cf44965d85c7083
[ "MIT" ]
null
null
null
pinkfish/tests/test_config.py
simongarisch/pinkfish
1265b6642e2990dd84fb65353cf44965d85c7083
[ "MIT" ]
null
null
null
import os import pinkfish as pf def get_test_config_path(*args): ''' Returns the path to a .pinkfish config file in the tests directory. ''' dire_path = os.path.dirname(os.path.abspath(__file__)) file_path = os.path.join(dire_path, ".pinkfish") return file_path def read_config_for_tests()...
24.588235
65
0.681818
d198809dec1ca16ffebb8a83f0335cb49d10d82b
548
py
Python
DQN/CNN_DQN/main.py
imhgchoi/pytorch_implementations
e6add9991b23604a8ef1b4a34391f3014db6bbbd
[ "MIT" ]
3
2021-01-16T13:33:15.000Z
2021-12-04T12:06:05.000Z
DQN/CNN_DQN/main.py
imhgchoi/pytorch_implementations
e6add9991b23604a8ef1b4a34391f3014db6bbbd
[ "MIT" ]
null
null
null
DQN/CNN_DQN/main.py
imhgchoi/pytorch_implementations
e6add9991b23604a8ef1b4a34391f3014db6bbbd
[ "MIT" ]
1
2021-04-25T13:37:03.000Z
2021-04-25T13:37:03.000Z
from CNN_DQN.environment import Environment from CNN_DQN.agent import Agent from CNN_DQN.learner import Learner if __name__ == '__main__' : LEARNING_RATE = 0.005 MAX_MEMORY = 10000 BATCH_SIZE = 300 EPISODE = 50000 TARGET_UPDATE = 20 EPS_START = 0.9 EPS_END = 0.05 EPS_DECAY =...
27.4
95
0.675182
0fe092e92342aa85749b6caefcedad63a554967b
11,729
py
Python
trieste/bayesian_optimizer.py
icouckuy/trieste
92e6e51bb218e2215f93cf3994b4ce9d8a4743dc
[ "Apache-2.0" ]
null
null
null
trieste/bayesian_optimizer.py
icouckuy/trieste
92e6e51bb218e2215f93cf3994b4ce9d8a4743dc
[ "Apache-2.0" ]
null
null
null
trieste/bayesian_optimizer.py
icouckuy/trieste
92e6e51bb218e2215f93cf3994b4ce9d8a4743dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Trieste Contributors # # 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...
42.96337
100
0.652571
61f8ab12d5ea6d3f99988ab7a541d702cc3e7582
528
py
Python
collection/processor/sort_collection/sort_collection.py
ebursztein/sitefab-plugins
75e81cb0196a462772f7469c479bc3c6e0be1255
[ "Apache-2.0" ]
null
null
null
collection/processor/sort_collection/sort_collection.py
ebursztein/sitefab-plugins
75e81cb0196a462772f7469c479bc3c6e0be1255
[ "Apache-2.0" ]
1
2020-01-18T21:09:05.000Z
2020-01-18T21:09:05.000Z
collection/processor/sort_collection/sort_collection.py
ebursztein/sitefab-plugins
75e81cb0196a462772f7469c479bc3c6e0be1255
[ "Apache-2.0" ]
null
null
null
from sitefab.plugins import CollectionProcessor from sitefab.SiteFab import SiteFab class SortCollection(CollectionProcessor): """ Sort Collection """ def process(self, collection, site, config): if config.sort_by == "udpate_date": k = lambda x: x.meta.update_date_ts else...
25.142857
53
0.649621
8308a9c0e765996a679253c0505db2ba5988d2f7
2,984
py
Python
metricbeat/tests/system/metricbeat.py
wklken/beats
60e8999da198f1c8c4242c8afc77e39a82b6e47f
[ "Apache-2.0" ]
16
2018-08-22T03:29:31.000Z
2021-09-05T14:01:10.000Z
vendor/github.com/elastic/beats/metricbeat/tests/system/metricbeat.py
railroadmanuk/rubrikbeat
af012076d68f64e12092d885257aa5a706453695
[ "MIT" ]
3
2020-05-29T13:53:51.000Z
2021-06-01T22:19:56.000Z
metricbeat/tests/system/metricbeat.py
sure0000/beats
1690690b3fcbe4a46aedc1121f9aa128497ed22d
[ "ECL-2.0", "Apache-2.0" ]
6
2018-10-31T06:55:01.000Z
2021-02-06T18:50:04.000Z
import re import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '../../../libbeat/tests/system')) from beat.beat import TestCase COMMON_FIELDS = ["@timestamp", "beat", "metricset.name", "metricset.host", "metricset.module", "metricset.rtt", "host.name"] INTEGRATION_TESTS = os...
31.083333
106
0.585791
c83b69fd158065e639c1686070d711adaa3e431c
802
py
Python
collection/cp/algorithms-master/python/sort/insertion_sort.py
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
1
2019-03-24T13:12:01.000Z
2019-03-24T13:12:01.000Z
collection/cp/algorithms-master/python/sort/insertion_sort.py
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
null
null
null
collection/cp/algorithms-master/python/sort/insertion_sort.py
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
null
null
null
""" Recursive insertion sort implementation in Python 3 https://en.wikipedia.org/wiki/Insertion_sort """ def insertion_sort(lis): """ Implementation of recursive insertion sort. :param lis: list to be sorted """ for i in range(len(lis)): j = i while j > 0 and lis[j-1] > lis[j]: ...
20.05
51
0.53616
d1885b57ddd77b2321796e9b002f318845988c63
161
py
Python
tests/web_platform/css_flexbox_1/test_flexbox_item_top_float.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/css_flexbox_1/test_flexbox_item_top_float.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
null
null
null
tests/web_platform/css_flexbox_1/test_flexbox_item_top_float.py
fletchgraham/colosseum
77be4896ee52b8f5956a3d77b5f2ccd2c8608e8f
[ "BSD-3-Clause" ]
1
2020-01-16T01:56:41.000Z
2020-01-16T01:56:41.000Z
from tests.utils import W3CTestCase class TestFlexbox_ItemTopFloat(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'flexbox_item-top-float'))
26.833333
77
0.807453
46524ce9cbb8b6ee99d921274a755bd48f7c5fba
63,922
py
Python
src/transformers/models/rembert/modeling_rembert.py
holazzer/transformers
53191d75ecca21c028077b3227f9ac47379e4690
[ "Apache-2.0" ]
28
2021-09-15T01:25:00.000Z
2022-03-01T20:21:28.000Z
src/transformers/models/rembert/modeling_rembert.py
Hecim1984/transformers
8e908c8c74f556a82534f4cf1e7a1b4f7b55d24c
[ "Apache-2.0" ]
1
2021-08-09T01:51:17.000Z
2021-08-09T01:51:17.000Z
src/transformers/models/rembert/modeling_rembert.py
Hecim1984/transformers
8e908c8c74f556a82534f4cf1e7a1b4f7b55d24c
[ "Apache-2.0" ]
1
2021-12-21T12:23:30.000Z
2021-12-21T12:23:30.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Team The HuggingFace Inc. team. 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/LIC...
42.220608
213
0.662104
42041a8c8316b637a72c75b8f8f50f9fcd597576
5,853
py
Python
src/calculations/obj_team.py
frc1678/server-2021-public
d61e35f8385bf1debc9daaaed40208f6c783ed77
[ "MIT" ]
null
null
null
src/calculations/obj_team.py
frc1678/server-2021-public
d61e35f8385bf1debc9daaaed40208f6c783ed77
[ "MIT" ]
null
null
null
src/calculations/obj_team.py
frc1678/server-2021-public
d61e35f8385bf1debc9daaaed40208f6c783ed77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Calculate objective team data from Team in Match (TIM) data.""" import utils from typing import List, Dict from calculations import base_calculations from statistics import pstdev class OBJTeamCalc(base_calculations.BaseCalculations): """Runs OBJ Team calculations""" # Get the last...
45.726563
97
0.633863
1224357c6a2e281e33f45688bd5d22a01ed2b245
1,305
py
Python
piperoni/operators/extract/extract_file/tests/test_excel.py
CitrineInformatics/piperoni
a5764e9da3a51da0a8962a00fd574a97b173d9a4
[ "Apache-2.0" ]
2
2021-04-21T19:51:06.000Z
2021-04-23T17:57:09.000Z
piperoni/operators/extract/extract_file/tests/test_excel.py
CitrineInformatics/piperoni
a5764e9da3a51da0a8962a00fd574a97b173d9a4
[ "Apache-2.0" ]
null
null
null
piperoni/operators/extract/extract_file/tests/test_excel.py
CitrineInformatics/piperoni
a5764e9da3a51da0a8962a00fd574a97b173d9a4
[ "Apache-2.0" ]
null
null
null
import os import pytest from pandas import DataFrame import piperoni as etl from piperoni.operators.extract.extract_file.excel import ExcelExtractor """ This module implements tests for the ExcelExtractor. """ ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) EXCEL_TEST_FILE = os.path.join( ROOT_DIR, "...
24.622642
72
0.663602
974066aaa4e2e0629b718429eb7fbbff1a51cf15
1,914
py
Python
Homework6/3_nn_optim_edited3.py
XC-Li/Deep_Learning_GWU
2dfe0d39ce8f9d981cee545f489f9dde1ffdfa7c
[ "MIT" ]
null
null
null
Homework6/3_nn_optim_edited3.py
XC-Li/Deep_Learning_GWU
2dfe0d39ce8f9d981cee545f489f9dde1ffdfa7c
[ "MIT" ]
null
null
null
Homework6/3_nn_optim_edited3.py
XC-Li/Deep_Learning_GWU
2dfe0d39ce8f9d981cee545f489f9dde1ffdfa7c
[ "MIT" ]
null
null
null
#---------------------------------------------------------------------------- import torch from torch.autograd import Variable import numpy as np from matplotlib import pyplot as plt #---------------------------------------------------------------------------- Batch_size = 64 # Batch size R = 1 # Input s...
29.446154
77
0.489551
16e52732c497177166005ef0405496254773ee0f
28,920
py
Python
chrome/tools/webforms_aggregator.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/tools/webforms_aggregator.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
chrome/tools/webforms_aggregator.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # Copyright (c) 2011 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. """Downloads web pages with fillable forms after parsing through a set of links. Used for collecting web pages with forms. Used as...
37.607282
80
0.670263
d8cc4e8e3c8c96c413b7bd0c45ca524ca2e554fd
1,751
py
Python
env/Lib/site-packages/autobahn/websocket/__init__.py
AnilCharles96/django_chat_app
4b90fa90a703fe002e7e305e85c7621db7275d6f
[ "MIT" ]
11
2016-09-14T21:58:37.000Z
2019-01-28T21:56:14.000Z
env/Lib/site-packages/autobahn/websocket/__init__.py
AnilCharles96/django_chat_app
4b90fa90a703fe002e7e305e85c7621db7275d6f
[ "MIT" ]
14
2015-04-25T17:54:13.000Z
2017-01-13T15:30:39.000Z
env/Lib/site-packages/autobahn/websocket/__init__.py
AnilCharles96/django_chat_app
4b90fa90a703fe002e7e305e85c7621db7275d6f
[ "MIT" ]
3
2019-09-18T01:34:23.000Z
2021-08-21T23:31:37.000Z
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # 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 ...
39.795455
79
0.700742
3eb29f52710f32527b2f9d124727bcfc9fe600e6
1,037
py
Python
toontown/coghq/CashbotHQBossBattle.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/coghq/CashbotHQBossBattle.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/coghq/CashbotHQBossBattle.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from toontown.suit import DistributedCashbotBoss from direct.directnotify import DirectNotifyGlobal from toontown.coghq import CogHQBossBattle class CashbotHQBossBattle(CogHQBossBattle.CogHQBossBattle): notify = DirectNotifyGlobal.direc...
35.758621
101
0.762777
7ee26906a38538ac31819b35b93ca4c08f3f5d59
23,602
py
Python
results-processor/wptreport_test.py
lucacasonato/wpt.fyi
abcd336266b6b9a23e0f57be04ca07506270af39
[ "BSD-3-Clause" ]
122
2018-05-15T18:54:46.000Z
2022-03-31T19:45:35.000Z
results-processor/wptreport_test.py
lucacasonato/wpt.fyi
abcd336266b6b9a23e0f57be04ca07506270af39
[ "BSD-3-Clause" ]
1,947
2018-04-10T16:58:57.000Z
2022-03-28T18:09:55.000Z
results-processor/wptreport_test.py
lucacasonato/wpt.fyi
abcd336266b6b9a23e0f57be04ca07506270af39
[ "BSD-3-Clause" ]
63
2018-04-13T13:51:09.000Z
2022-03-15T10:09:23.000Z
# Copyright 2018 The WPT Dashboard Project. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import gzip import io import json import os import shutil import tempfile import unittest from wptreport import ( ConflictingDataError, Insuffi...
33.862267
79
0.489323
1d569132663cf934d615fddae541ac7e28825d17
1,803
py
Python
door_interface/helpers/sensor.py
itsjesseyo/enjigo_door
fd29fd9bd28c1d7915e4f9ad5e29635f5cbc4601
[ "Unlicense" ]
1
2015-03-08T23:21:58.000Z
2015-03-08T23:21:58.000Z
door_interface/helpers/sensor.py
luxnovalabs/enjigo_door
fd29fd9bd28c1d7915e4f9ad5e29635f5cbc4601
[ "Unlicense" ]
null
null
null
door_interface/helpers/sensor.py
luxnovalabs/enjigo_door
fd29fd9bd28c1d7915e4f9ad5e29635f5cbc4601
[ "Unlicense" ]
1
2018-09-29T23:38:28.000Z
2018-09-29T23:38:28.000Z
import sys, serial, time, signal, threading from MFRC522 import MFRC522 from event import Event class Sensor(threading.Thread): # main program for reading and processing tags def __init__(self, name): threading.Thread.__init__(self) self.name = name self.continue_reading = False self.tag_reader = MFRC522() ...
27.318182
84
0.69218
f703224172490713b6ea5921d8e35e234816b5d6
8,418
py
Python
mvn/utils/op.py
K4S4B4/learnable-triangulation-pytorch
94f5121919785bf7c89dd973521a21c01104dbd5
[ "MIT" ]
null
null
null
mvn/utils/op.py
K4S4B4/learnable-triangulation-pytorch
94f5121919785bf7c89dd973521a21c01104dbd5
[ "MIT" ]
null
null
null
mvn/utils/op.py
K4S4B4/learnable-triangulation-pytorch
94f5121919785bf7c89dd973521a21c01104dbd5
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mvn.utils.img import to_numpy, to_torch from mvn.utils import multiview def integrate_tensor_2d(heatmaps, softmax=True): """Applies softmax to heatmaps and integrates them to get their's "center of masses" Args: ...
42.730964
162
0.68698
af3172a258cfae833fce2b37178759d67dc14d66
899
py
Python
Assignments/cooling.py
jonestcharles/physics-simulation
cfdb27f1f560b01f901e7b1796d2a695ffce6493
[ "MIT" ]
null
null
null
Assignments/cooling.py
jonestcharles/physics-simulation
cfdb27f1f560b01f901e7b1796d2a695ffce6493
[ "MIT" ]
null
null
null
Assignments/cooling.py
jonestcharles/physics-simulation
cfdb27f1f560b01f901e7b1796d2a695ffce6493
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Feb 09 12:12:57 2016 @author: jone0208 """ import matplotlib.pyplot as plt import Body import Solver import Simulation def main(): coffee = Body.ThermalBody(500) solver = Solver.Euler(0.5) def stop_condition(coffee): return coffee.temperature > sim.Ta*1.1...
25.685714
70
0.65406
7a784d459d56b919655db95363986b4e446c6ce0
3,242
py
Python
trompace/mutations/application.py
trompamusic/ce-queries-template
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
[ "Apache-2.0" ]
1
2020-06-18T15:43:18.000Z
2020-06-18T15:43:18.000Z
trompace/mutations/application.py
trompamusic/ce-queries-template
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
[ "Apache-2.0" ]
60
2019-12-17T11:08:28.000Z
2021-03-02T16:19:41.000Z
trompace/mutations/application.py
trompamusic/trompace-client
cc5ae69d0e76623bfd72e9453f569f6624bf7c3b
[ "Apache-2.0" ]
null
null
null
# Generate GraphQL queries for mutations pertaining to software applications. from trompace.exceptions import UnsupportedLanguageException, NotAMimeTypeException from trompace import StringConstant, filter_none_args from .templates import mutation_create, mutation_link from ..constants import SUPPORTED_LANGUAGES CREAT...
40.525
150
0.677977
c67a668aad9331ac2867adbe0b0c335204f997cb
4,717
py
Python
public/model_loader.py
DaibinRaju/Omnis-Agro
3b25f736eef151fe62dabc66eaa19a05c4f82140
[ "MIT" ]
null
null
null
public/model_loader.py
DaibinRaju/Omnis-Agro
3b25f736eef151fe62dabc66eaa19a05c4f82140
[ "MIT" ]
1
2022-02-27T05:11:32.000Z
2022-02-27T05:11:32.000Z
public/model_loader.py
DaibinRaju/Omnis-Agro
3b25f736eef151fe62dabc66eaa19a05c4f82140
[ "MIT" ]
null
null
null
import torch from torch import nn from torchvision import models import numpy as np import matplotlib.pyplot as plt from PIL import Image import sys def load_checkpoint(filepath): ''' input: filepath of the saved model return: a model loaded from the path checks if the model saved is a densenet 12...
29.85443
127
0.637693
6053cc416f53a962bbcba85e2a8a0d52722a0e9a
4,859
py
Python
generate_tfrecord.py
AlfredPro/object_detection_demo
949d5dc42f0ae3669ad35c1c1fcb634e4d234c4a
[ "MIT" ]
null
null
null
generate_tfrecord.py
AlfredPro/object_detection_demo
949d5dc42f0ae3669ad35c1c1fcb634e4d234c4a
[ "MIT" ]
null
null
null
generate_tfrecord.py
AlfredPro/object_detection_demo
949d5dc42f0ae3669ad35c1c1fcb634e4d234c4a
[ "MIT" ]
null
null
null
""" Usage: # Create train data: python generate_tfrecord.py --label=<LABEL> --csv_input=<PATH_TO_ANNOTATIONS_FOLDER>/train_labels.csv --output_path=<PATH_TO_ANNOTATIONS_FOLDER>/train.record <PATH_TO_ANNOTATIONS_FOLDER>/label_map.pbtxt # Create test data: python generate_tfrecord.py --label=<LABEL> --csv_input=<PATH_...
35.727941
214
0.672566
1d80587b643f972695a8e758a576cc05416874df
5,469
py
Python
data/p3BR/R1/benchmark/startQiskit_QC402.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startQiskit_QC402.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startQiskit_QC402.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=72 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
29.090426
140
0.629366
0494ef7d345738254004903ce4758167057e8ba9
7,432
py
Python
src/models/train_model.py
carolmoraescruz/case_seazone
76b44a64272685681442929c04ea9e4fd21a147e
[ "MIT" ]
null
null
null
src/models/train_model.py
carolmoraescruz/case_seazone
76b44a64272685681442929c04ea9e4fd21a147e
[ "MIT" ]
null
null
null
src/models/train_model.py
carolmoraescruz/case_seazone
76b44a64272685681442929c04ea9e4fd21a147e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd from sklearn.ensemble import RandomForestRegressor from sklearn.model_selection import train_test_split from sklearn.neural_network import MLPRegressor from xgboost import XGBRegressor from sklearn.metrics import mean_absolute_error as mae from src import ( PATH...
29.728
89
0.702503
dd98c24bfe5f6a450bf4dcecf83039b06d464fbe
3,346
py
Python
spotty/providers/abstract_instance_manager.py
vexcel-data/spotty
f6d56129a088908a5b8dcf303867af85e3bdf325
[ "MIT" ]
null
null
null
spotty/providers/abstract_instance_manager.py
vexcel-data/spotty
f6d56129a088908a5b8dcf303867af85e3bdf325
[ "MIT" ]
null
null
null
spotty/providers/abstract_instance_manager.py
vexcel-data/spotty
f6d56129a088908a5b8dcf303867af85e3bdf325
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Optional from spotty.commands.writers.abstract_output_writrer import AbstractOutputWriter from spotty.config.abstract_instance_config import AbstractInstanceConfig from spotty.config.project_config import ProjectConfig class AbstractInstanceManager(ABC): de...
32.173077
112
0.69217
9142980c2ecb3dd382e797858495d2f7ace30de5
414
py
Python
recursion/harmonic_sum.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
recursion/harmonic_sum.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
recursion/harmonic_sum.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
''' Write a Python program to calculate the harmonic sum of n-1. Go to the editor Note: The harmonic sum is the sum of reciprocals of the positive integers. Example : 1+ 1/2 +1/3 ..... ''' class Solution: def harmonic_sum(self, num): if num == 1: return 1 else: return 1/n...
23
77
0.620773
9f0811a052b044c5c97a37913b78c7dbaf3505ad
492
gyp
Python
library/boost-typeof/1.62.0.gyp
KjellSchubert/bru
dd70b721d07fbd27c57c845cc3a29cd8f2dfc587
[ "MIT" ]
3
2015-01-06T15:22:16.000Z
2015-11-27T18:13:04.000Z
library/boost-typeof/1.62.0.gyp
KjellSchubert/bru
dd70b721d07fbd27c57c845cc3a29cd8f2dfc587
[ "MIT" ]
7
2015-02-10T15:13:38.000Z
2021-05-30T07:51:13.000Z
library/boost-typeof/1.62.0.gyp
KjellSchubert/bru
dd70b721d07fbd27c57c845cc3a29cd8f2dfc587
[ "MIT" ]
3
2015-01-29T17:19:53.000Z
2016-01-06T12:50:06.000Z
{ "targets": [ { "target_name": "boost-typeof", "type": "none", "dependencies": [ "../boost-mpl-type_traits-typeof-utility/boost-mpl-type_traits-typeof-utility.gyp:boost-mpl-type_traits-typeof-utility" ], "export_dependent_settings"...
32.8
135
0.552846
5d1941a2e3500908ca7577304511fb8b684716ec
171
py
Python
pythonteste/Aula17.3.py
RodrigoPasini/PYTHON
e114390091fedb03bf25a56a671da6186d6bfcae
[ "MIT" ]
null
null
null
pythonteste/Aula17.3.py
RodrigoPasini/PYTHON
e114390091fedb03bf25a56a671da6186d6bfcae
[ "MIT" ]
null
null
null
pythonteste/Aula17.3.py
RodrigoPasini/PYTHON
e114390091fedb03bf25a56a671da6186d6bfcae
[ "MIT" ]
null
null
null
valores=list() for c in range(0,5): valores.append(int(input("Digite um valor: "))) for c, v in enumerate(valores): print(f"N posição {c} encontrei o valor {v}.")
28.5
51
0.654971
690d0d2dd9565ed78d3b94a90c188fc110d0314c
4,430
py
Python
backend/app/extensions/auth_praeto.py
breachr/breachr_homepage
a781da4056ca5527069ca2b7069aeaddb2196ca0
[ "MIT" ]
null
null
null
backend/app/extensions/auth_praeto.py
breachr/breachr_homepage
a781da4056ca5527069ca2b7069aeaddb2196ca0
[ "MIT" ]
null
null
null
backend/app/extensions/auth_praeto.py
breachr/breachr_homepage
a781da4056ca5527069ca2b7069aeaddb2196ca0
[ "MIT" ]
null
null
null
import flask import flask_praetorian import flask_cors from app import db from app import app guard = flask_praetorian.Praetorian() cors = flask_cors.CORS() # A generic ProtectedUser model that might be used by an app powered by flask-praetorian class ProtectedUser(db.Model): id = db.Column(db.Intege...
31.197183
89
0.64447
c53c8f75539389ef4a672703f585e08d52c98a18
9,794
py
Python
snake_and_priest.py
emadflash/snake_and_priest
97eac807dde2b260e5785877bfaf4d9d70a070fc
[ "Unlicense" ]
null
null
null
snake_and_priest.py
emadflash/snake_and_priest
97eac807dde2b260e5785877bfaf4d9d70a070fc
[ "Unlicense" ]
null
null
null
snake_and_priest.py
emadflash/snake_and_priest
97eac807dde2b260e5785877bfaf4d9d70a070fc
[ "Unlicense" ]
null
null
null
import enum from dataclasses import dataclass import time import pygame class Direction(enum.Enum): Right = 1 Left = 2 Up = 3 Down = 4 @dataclass class Position: x: int y: int def MoveUp(self, limit): self.x -= 1 if self.x < 0: self.x = limit - 1 def Move...
29.411411
125
0.52573
92e90b500501014a2b7171f4e2e5a037812447a1
910
py
Python
AIonAWS/aws_image_recognition.py
ankit98040/AWS
8f3459592193c3daa5310a91b3462a74ed968835
[ "Apache-2.0" ]
1
2021-03-17T07:28:50.000Z
2021-03-17T07:28:50.000Z
AIonAWS/aws_image_recognition.py
ankit98040/AWS
8f3459592193c3daa5310a91b3462a74ed968835
[ "Apache-2.0" ]
null
null
null
AIonAWS/aws_image_recognition.py
ankit98040/AWS
8f3459592193c3daa5310a91b3462a74ed968835
[ "Apache-2.0" ]
null
null
null
#webcam photo click import cv2 import boto3 cap = cv2.VideoCapture(0) #activates the camera #0 for internal webcam, 1 for any external web cam myphoto = "ankit.jpg" ret , photo = cap.read() #clicks the photo #print(ret) cv2.imwrite(myphoto, photo) cap.release() #releases the camera #uploading image to s3 region = "ap-...
25.277778
73
0.648352
2595ea9d34fc54285d10ab72ffea0a94b745970e
21,784
py
Python
tests/test_didl_lite.py
chishm/python-didl-lite
ace0e134f7759c766d455f33c3cef552067fa799
[ "Apache-2.0" ]
null
null
null
tests/test_didl_lite.py
chishm/python-didl-lite
ace0e134f7759c766d455f33c3cef552067fa799
[ "Apache-2.0" ]
null
null
null
tests/test_didl_lite.py
chishm/python-didl-lite
ace0e134f7759c766d455f33c3cef552067fa799
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Unit tests for didl_lite.""" from defusedxml import ElementTree as ET # type: ignore from didl_lite import didl_lite NAMESPACES = { "didl_lite": "urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/", "dc": "http://purl.org/dc/elements/1.1/", "upnp": "urn:schemas-upnp-org:metadata-1-0...
38.017452
88
0.603011
81dad8788b27ec864efe21e8441e1148d844e2f0
3,657
py
Python
clipboard_memo/main.py
arafsheikh/clipboard-memo
7e851b2e70063af878f0b8cef075f6923b2809cb
[ "MIT" ]
null
null
null
clipboard_memo/main.py
arafsheikh/clipboard-memo
7e851b2e70063af878f0b8cef075f6923b2809cb
[ "MIT" ]
null
null
null
clipboard_memo/main.py
arafsheikh/clipboard-memo
7e851b2e70063af878f0b8cef075f6923b2809cb
[ "MIT" ]
null
null
null
""" A command line clipboard manager """ from pyperclip import copy, paste import cPickle as pickle import argparse, sys, os class ClipboardMemo(object): def __init__(self): #Create directory to save dump file if not os.path.exists(os.path.expanduser('~/.clipboard_memo/')): os.makedir...
32.078947
92
0.581898
75c952b2fef872c35cda4ca91efedcbc680463b3
4,022
py
Python
src/Products/PageTemplates/engine.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
1
2018-11-30T12:39:27.000Z
2018-11-30T12:39:27.000Z
src/Products/PageTemplates/engine.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
null
null
null
src/Products/PageTemplates/engine.py
dek4nice/Zope
ec4765fc0007c4e78aafcbeef510077444f8551a
[ "ZPL-2.1" ]
1
2018-11-30T12:39:34.000Z
2018-11-30T12:39:34.000Z
import re import logging from zope.interface import implementer from zope.interface import provider from zope.pagetemplate.interfaces import IPageTemplateEngine from zope.pagetemplate.interfaces import IPageTemplateProgram from z3c.pt.pagetemplate import PageTemplate as ChameleonPageTemplate from AccessControl.clas...
31.669291
71
0.657882
1e5fa2570f3995fe7e7fa51c631e060f0e80fbb8
8,666
py
Python
awesome_gans/stargan/dataset.py
StevenJokess/Awesome-GANs
b78410e072ec3c0c39a4dac853dea7c219817c65
[ "MIT" ]
739
2017-05-28T18:07:38.000Z
2022-03-28T23:57:42.000Z
awesome_gans/stargan/dataset.py
StevenJokess/Awesome-GANs
b78410e072ec3c0c39a4dac853dea7c219817c65
[ "MIT" ]
25
2018-01-18T07:09:07.000Z
2021-08-25T14:11:09.000Z
awesome_gans/stargan/dataset.py
StevenJokess/Awesome-GANs
b78410e072ec3c0c39a4dac853dea7c219817c65
[ "MIT" ]
185
2017-07-15T05:18:10.000Z
2022-02-17T10:17:02.000Z
import os from glob import glob import h5py import numpy as np from scipy.misc import imread, imresize from tqdm import tqdm ''' This dataset is for Celeb-A - Celeb-A Celeb-A DataSets can be downloaded at http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html Celeb-A link : https://drive.google.com/drive/folders/...
34.252964
117
0.591045
181e6ca922877292b1f05a1d493ccb1f3f2ef2b9
613
py
Python
server/utils/choice.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
null
null
null
server/utils/choice.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
7
2021-03-19T04:47:00.000Z
2021-09-22T19:10:46.000Z
server/utils/choice.py
yseiren87/jellicleSpace
10d693bbc04e6b89a7ce15d2dc9797cec2a553b7
[ "Apache-2.0" ]
null
null
null
from .log import LogUtil class Choice: def __init__(self, key, verbose): self.key = key self.verbose = verbose class ChoiceUtil: @classmethod def get_choice(cls): choice = [] for _k in cls.__dict__.keys(): if not _k.startswith("__") and not _k.endswith("__")...
22.703704
104
0.530179
ed1487901aa936467f1600c91ea569d0b6e87a91
5,420
py
Python
reference/lvenc/encoder.py
tuxzz/lightvideo
3654d7a452ec42a7e2d40129ef571375e5f93ddb
[ "MIT" ]
2
2019-05-05T22:37:19.000Z
2021-05-17T03:32:44.000Z
reference/lvenc/encoder.py
tuxzz/lightvideo
3654d7a452ec42a7e2d40129ef571375e5f93ddb
[ "MIT" ]
null
null
null
reference/lvenc/encoder.py
tuxzz/lightvideo
3654d7a452ec42a7e2d40129ef571375e5f93ddb
[ "MIT" ]
null
null
null
import numpy as np import ctypes, io, struct from .struct import * from . import enccore, clz4, report import signal, threading, multiprocessing, time import cv2 _LZ4_COMPRESSION_LEVEL = 11 class DelayedKeyboardInterrupt(object): def __enter__(self): self.signal_received = False self.o...
39.275362
133
0.602952
4cf4e4d546d2ba01bffbb13bb51a63680f2358ee
22,975
py
Python
saleor/saleor/checkout/utils.py
nguyentrung194/e-com
e1fbf6259ba832040b9cf0ec6a7adf1b43a8539a
[ "BSD-3-Clause" ]
null
null
null
saleor/saleor/checkout/utils.py
nguyentrung194/e-com
e1fbf6259ba832040b9cf0ec6a7adf1b43a8539a
[ "BSD-3-Clause" ]
null
null
null
saleor/saleor/checkout/utils.py
nguyentrung194/e-com
e1fbf6259ba832040b9cf0ec6a7adf1b43a8539a
[ "BSD-3-Clause" ]
null
null
null
"""Checkout-related utility functions.""" from decimal import Decimal from typing import TYPE_CHECKING, Iterable, List, Optional, Tuple import graphene from django.core.exceptions import ValidationError from django.utils import timezone from prices import Money from ..account.models import User from ..core.exceptions...
34.087537
88
0.682786
68e30bfd12d1e1270cd1d5f929a0918ecf6a6c27
2,583
py
Python
pyweatherflowudp/event.py
briis/pyweatherflowudp
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
[ "MIT" ]
3
2021-12-22T21:53:07.000Z
2022-01-11T17:28:35.000Z
pyweatherflowudp/event.py
briis/pyweatherflowudp
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
[ "MIT" ]
2
2021-12-01T06:27:58.000Z
2021-12-02T08:45:32.000Z
pyweatherflowudp/event.py
briis/pyweatherflowudp
5a28d674aff4aac8c5cdf6c27f71eee4b98c25e3
[ "MIT" ]
1
2021-12-26T18:24:13.000Z
2021-12-26T18:24:13.000Z
"""Events for WeatherFlow devices.""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime from pint import Quantity from .const import UNIT_DEGREES, UNIT_KILOMETERS, UNIT_METERS_PER_SECOND from .helpers import nvl, utc_timestamp_from_epoch # pylint: disable=line-too-lo...
25.07767
107
0.634921
df1d8a8e11de546144920b0a9e59e0134b69e2f6
8,130
py
Python
test/test_funding_manager_api.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
test/test_funding_manager_api.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
test/test_funding_manager_api.py
velopaymentsapi/velo-python
59b39555e9714139b4bf697151cc7d15f6dd510e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Velo Payments APIs ## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor....
53.137255
4,651
0.719926
d9e30b017aaca825ea17e49375143148a2f37711
8,660
py
Python
src/oidcendpoint/common/authorization.py
anange/oidcendpoint
cda647179fbd2fe8d69eb1fddf4b3f6b3ace305c
[ "Apache-2.0" ]
null
null
null
src/oidcendpoint/common/authorization.py
anange/oidcendpoint
cda647179fbd2fe8d69eb1fddf4b3f6b3ace305c
[ "Apache-2.0" ]
null
null
null
src/oidcendpoint/common/authorization.py
anange/oidcendpoint
cda647179fbd2fe8d69eb1fddf4b3f6b3ace305c
[ "Apache-2.0" ]
null
null
null
import logging from urllib.parse import parse_qs from urllib.parse import splitquery from urllib.parse import unquote from urllib.parse import urlencode from urllib.parse import urlparse from oidcmsg.exception import ParameterError from oidcmsg.exception import URIError from oidcmsg.oauth2 import AuthorizationErrorRes...
31.376812
88
0.604734
d0b9be2d3d0024952973555ed95987f009f91952
1,794
py
Python
acs5countypoverty.py
dannmorr/greater-chicago-food-despository
8eb39ce4a4c72fa1c0f47fd81d474cb0727b67c1
[ "MIT" ]
null
null
null
acs5countypoverty.py
dannmorr/greater-chicago-food-despository
8eb39ce4a4c72fa1c0f47fd81d474cb0727b67c1
[ "MIT" ]
null
null
null
acs5countypoverty.py
dannmorr/greater-chicago-food-despository
8eb39ce4a4c72fa1c0f47fd81d474cb0727b67c1
[ "MIT" ]
null
null
null
from census_response import getCensusResponse import json def main(): #Estimate!!Total!!Population for whom poverty status is determined pop_table = 'S1701_C01_001E' #Estimate!!Below poverty level!!Population for whom poverty status is determined poverty_table = 'S1701_C02_001E' subject_table = 'h...
34.5
148
0.687848
43c311b98e4c80a56505a12bda7ef80b0f716ed2
4,033
py
Python
iter.py
miki998/image_registration-maxwell_demons
9305ef2c5284231c67c920c8f57e5c5a52fe73f1
[ "MIT" ]
null
null
null
iter.py
miki998/image_registration-maxwell_demons
9305ef2c5284231c67c920c8f57e5c5a52fe73f1
[ "MIT" ]
null
null
null
iter.py
miki998/image_registration-maxwell_demons
9305ef2c5284231c67c920c8f57e5c5a52fe73f1
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.image as mpimg import matplotlib.pyplot as plt import scipy from scipy.interpolate import griddata from scipy.ndimage import convolve import cv2 import matplotlib.image as mpimg import matplotlib.pyplot as plt import numpy as np import matplotlib as mpl from scipy.ndimage import...
36.333333
138
0.617902
4cad85b0f6a9c67e853a3b7b9ada6288b6d54de1
667
py
Python
dune-burgers/pymor-wrapper/python_solve_visualize.py
pymor/dune-burgers-demo
a9c86c685964b6fe38ce238381afec05b22e057f
[ "BSD-2-Clause" ]
null
null
null
dune-burgers/pymor-wrapper/python_solve_visualize.py
pymor/dune-burgers-demo
a9c86c685964b6fe38ce238381afec05b22e057f
[ "BSD-2-Clause" ]
null
null
null
dune-burgers/pymor-wrapper/python_solve_visualize.py
pymor/dune-burgers-demo
a9c86c685964b6fe38ce238381afec05b22e057f
[ "BSD-2-Clause" ]
null
null
null
import sys from pymor.discretizations.mpi import mpi_wrap_discretization from pymor.tools import mpi from pymor.vectorarrays.mpi import MPIVectorArrayAutoComm from dune_burgers import discretize_dune_burgers filename = sys.argv[1] exponent = float(sys.argv[2]) times = map(int, sys.argv[3:]) if mpi.parallel: d =...
29
100
0.76012
4e3335bd85fa078bd2ff88fd2666f3ca1b5b18ba
14,756
py
Python
DD_client.py
hannu-hell/Dashun_Dama-Card-Game
293f0742c4c7f808600e7c92964b9d8299d97240
[ "MIT" ]
null
null
null
DD_client.py
hannu-hell/Dashun_Dama-Card-Game
293f0742c4c7f808600e7c92964b9d8299d97240
[ "MIT" ]
null
null
null
DD_client.py
hannu-hell/Dashun_Dama-Card-Game
293f0742c4c7f808600e7c92964b9d8299d97240
[ "MIT" ]
null
null
null
from game import * import os import socket import pickle import threading # Sets the position of the window to the coordinates os.environ['SDL_VIDEO_WINDOW_POS'] = '1000,50' # Game game = Game() player1 = None opponentPlayedCards = [] playerPlayedCards = [] gameOver = False player2_start_game = False gamesPlayed = 0...
36.982456
123
0.556113
740edacb746309a61143fdf6dc1773dc3f1f4d5e
1,169
py
Python
src/pyrin/admin/decorators.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/admin/decorators.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
src/pyrin/admin/decorators.py
wilsonGmn/pyrin
25dbe3ce17e80a43eee7cfc7140b4c268a6948e0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ admin decorators module. """ import pyrin.admin.services as admin_services def admin(*args, **kwargs): """ decorator to register an admin page. :param object args: admin class constructor arguments. :param object kwargs: admin class constructor keyword arguments. :ke...
25.977778
85
0.625321
6664a3b8e3f17a29cd59bcf4330e139913323c01
7,029
py
Python
examples/icme2017/evaluation/yael_v438/doc/conf-old.py
htyao89/ICME2017
bc302f7972a0791c6042a9c43bc3fe4c4fb13282
[ "BSD-2-Clause" ]
4
2019-01-07T17:39:53.000Z
2020-02-26T03:20:18.000Z
MotionAnalysis/SVM_model/function/yael_v438/doc/conf-old.py
BumbleBee0819/Estimating_mechanical_properties_of_cloth
547bba3544bd686a7bac39c9985d89fcdf171642
[ "MIT" ]
1
2020-09-24T07:42:13.000Z
2020-09-24T07:42:13.000Z
examples/icme2017/evaluation/yael_v438/doc/conf-old.py
htyao89/ICME2017
bc302f7972a0791c6042a9c43bc3fe4c4fb13282
[ "BSD-2-Clause" ]
2
2019-08-12T20:49:39.000Z
2020-02-22T16:39:27.000Z
# -*- coding: utf-8 -*- # # Yael documentation build configuration file, created by # sphinx-quickstart on Fri Aug 5 14:37:23 2011. # # 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 co...
32.243119
80
0.718025
d3c73254200c57aacf94167e803ddb81032531df
5,807
py
Python
code_original/10_sort_supplementary_item.py
WuYff/CTRAS
22941f20f5ddc00849c7ea08cd8395defcaf3344
[ "MIT" ]
1
2020-07-10T06:24:58.000Z
2020-07-10T06:24:58.000Z
code_original/10_sort_supplementary_item.py
WuYff/CTRAS
22941f20f5ddc00849c7ea08cd8395defcaf3344
[ "MIT" ]
1
2020-12-23T08:03:11.000Z
2020-12-23T08:03:11.000Z
code_original/10_sort_supplementary_item.py
WuYff/CTRAS
22941f20f5ddc00849c7ea08cd8395defcaf3344
[ "MIT" ]
2
2020-09-10T07:26:04.000Z
2020-10-19T07:11:13.000Z
#-*- coding:utf-8 -*- import os import numpy as np from scipy.spatial import distance from variables import POS_TAGS, APPS from variables import DUPLICATES_CLUSTER_PATH, DUPLICATES_CLUSTER_IMG_PATH from util_db import select_cluster_combine_tag from util_db import select_cluster_id_txt, select_cluster_id_img from uti...
34.981928
118
0.711038
f7c510b35642455d7411165a157bdfbdad5b9092
3,643
py
Python
src/z3c/rml/special.py
a-palchikov/z3c.rml
7da1adb8fe1d0126fe217d2002f4796bb2f76a2e
[ "ZPL-2.1" ]
null
null
null
src/z3c/rml/special.py
a-palchikov/z3c.rml
7da1adb8fe1d0126fe217d2002f4796bb2f76a2e
[ "ZPL-2.1" ]
null
null
null
src/z3c/rml/special.py
a-palchikov/z3c.rml
7da1adb8fe1d0126fe217d2002f4796bb2f76a2e
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2007 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
30.613445
78
0.589075
306ba68a7e2da86203d02505b99a852eafc507d0
6,687
py
Python
api/mutant.py
jotamaggids/flask_meli_exercise
e9a12a93f7c9cb621ff3c367f8c5dba513132ecb
[ "MIT" ]
null
null
null
api/mutant.py
jotamaggids/flask_meli_exercise
e9a12a93f7c9cb621ff3c367f8c5dba513132ecb
[ "MIT" ]
null
null
null
api/mutant.py
jotamaggids/flask_meli_exercise
e9a12a93f7c9cb621ff3c367f8c5dba513132ecb
[ "MIT" ]
null
null
null
import mysql.connector import numpy as np import sys class Mutant: def __init__(self, dna_chain): self.dna_chain = dna_chain @staticmethod def get_dna(dna_chain): config = { 'user': 'root', 'password': 'root', 'host': 'mysql', 'port': '3306'...
32.619512
141
0.54748
5b42821bc6f6736a5fead95c15d632157f75d817
2,442
py
Python
optuna/exceptions.py
thigm85/optuna
4680f36a470ffb9ead89abf65dcc7e7533fd789f
[ "MIT" ]
1
2019-05-28T07:29:49.000Z
2019-05-28T07:29:49.000Z
optuna/exceptions.py
nabenabe0928/optuna
aa505125de8515518fe19ba227edf7a1d3f8ebda
[ "MIT" ]
null
null
null
optuna/exceptions.py
nabenabe0928/optuna
aa505125de8515518fe19ba227edf7a1d3f8ebda
[ "MIT" ]
2
2020-03-03T00:40:28.000Z
2021-01-28T11:54:32.000Z
class OptunaError(Exception): """Base class for Optuna specific errors.""" pass class TrialPruned(OptunaError): """Exception for pruned trials. This error tells a trainer that the current :class:`~optuna.trial.Trial` was pruned. It is supposed to be raised after :func:`optuna.trial.Trial.should_...
26.835165
97
0.63923
4257ec826e4e2b82d80e6baadc4d1e33cc112748
365
py
Python
src/biome/text/training_results.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
src/biome/text/training_results.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
src/biome/text/training_results.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from typing import Any from typing import Dict @dataclass() class TrainingResults: """ Training results data class Attributes ---------- model_path: `str` The trained model path metrics: `Dict[str, Any]` Related training metrics """ ...
15.869565
33
0.638356
1b6534b7a0fee5040cfda8f240a831fe5c2c87e4
7,434
py
Python
tests/cli/test_cmd_turtle_canon.py
CasperWA/turtle-canon
6dce3121ff8c1c92b2428b49d82d69e4d8b0058e
[ "MIT" ]
null
null
null
tests/cli/test_cmd_turtle_canon.py
CasperWA/turtle-canon
6dce3121ff8c1c92b2428b49d82d69e4d8b0058e
[ "MIT" ]
42
2021-12-02T17:39:44.000Z
2022-03-30T06:39:59.000Z
tests/cli/test_cmd_turtle_canon.py
CasperWA/turtle-canon
6dce3121ff8c1c92b2428b49d82d69e4d8b0058e
[ "MIT" ]
null
null
null
"""Test `turtle_canon.cli.cmd_turtle_canon` aka. the `turtle-canon` CLI.""" from pathlib import Path from typing import TYPE_CHECKING if TYPE_CHECKING: from subprocess import CalledProcessError, CompletedProcess from typing import List, Union from .conftest import CLIOutput, CLIRunner CLIRunnerOutput...
35.569378
87
0.703255
224248e1859c0a0b3e2507a16cbf950cc50e35cf
608
py
Python
taiga/users/migrations/0017_auto_20160208_1751.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
1
2017-05-29T19:01:06.000Z
2017-05-29T19:01:06.000Z
docker-images/taigav2/taiga-back/taiga/users/migrations/0017_auto_20160208_1751.py
mattcongy/itshop
6be025a9eaa7fe7f495b5777d1f0e5a3184121c9
[ "MIT" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
taiga/users/migrations/0017_auto_20160208_1751.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0016_auto_20160204_1050'), ] operations = [ migrations.AlterModelOptions( name='role', opti...
26.434783
108
0.592105
1ef362e1d63e3c9c5fed6b83dc03815cab1fdee6
4,114
py
Python
test/data_validation_test.py
TomGoBravo/covid-data-model
089e4e81db32befd6e86e4e105454629fd834ad2
[ "MIT" ]
null
null
null
test/data_validation_test.py
TomGoBravo/covid-data-model
089e4e81db32befd6e86e4e105454629fd834ad2
[ "MIT" ]
null
null
null
test/data_validation_test.py
TomGoBravo/covid-data-model
089e4e81db32befd6e86e4e105454629fd834ad2
[ "MIT" ]
null
null
null
import logging import pytest import pandas as pd from libs.datasets import JHUDataset from libs.datasets import CDSDataset from libs.datasets import dataset_utils from libs.datasets import custom_aggregations from libs.datasets.dataset_utils import AggregationLevel from libs import CovidDatasets _logger = logging.getL...
31.166667
101
0.660914
83f947937c3309597f6ba452452437c2eb3dad8e
13,657
py
Python
rgb_stacking/task.py
perferom123/rgb_stacking
e496cfc2d17a282bddf042bf6c2a53b322d3e618
[ "Apache-2.0" ]
1
2021-10-13T11:51:01.000Z
2021-10-13T11:51:01.000Z
rgb_stacking/task.py
perferom123/rgb_stacking
e496cfc2d17a282bddf042bf6c2a53b322d3e618
[ "Apache-2.0" ]
null
null
null
rgb_stacking/task.py
perferom123/rgb_stacking
e496cfc2d17a282bddf042bf6c2a53b322d3e618
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 DeepMind Technologies Limited. 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 a...
38.908832
81
0.755144
961d37a7997dab4da3dd3d59d297c6b8352a78c7
8,770
py
Python
docs/sphinx/conf.py
dvstark/tree
6928997f0370929de7ef7efb070f614fdd6fa8f5
[ "BSD-3-Clause" ]
2
2019-01-21T06:33:44.000Z
2019-06-19T09:29:46.000Z
docs/sphinx/conf.py
dvstark/tree
6928997f0370929de7ef7efb070f614fdd6fa8f5
[ "BSD-3-Clause" ]
28
2018-07-12T14:02:38.000Z
2021-12-15T18:27:38.000Z
docs/sphinx/conf.py
dvstark/tree
6928997f0370929de7ef7efb070f614fdd6fa8f5
[ "BSD-3-Clause" ]
7
2017-11-29T14:19:03.000Z
2021-07-13T20:29:21.000Z
# -*- coding: utf-8 -*- # # BMO documentation build configuration file, created by # sphinx-quickstart on Fri May 5 01:30:21 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
32.60223
94
0.675143
9acbea5e32723f67d514e711311e4dd2030751b2
1,769
py
Python
pypy/rlib/parsing/test/test_parseerrors.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/rlib/parsing/test/test_parseerrors.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/rlib/parsing/test/test_parseerrors.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
import py from pypy.rlib.parsing.parsing import PackratParser, Rule, Nonterminal from pypy.rlib.parsing.parsing import Symbol, ParseError from pypy.rlib.parsing.ebnfparse import parse_ebnf, make_parse_function from pypy.rlib.parsing.deterministic import LexerError from pypy.rlib.parsing.tree import RPythonVisitor clas...
30.5
71
0.588468
7bc22d292f7a47d0283dfe9403571bc8abea8f70
5,621
py
Python
application/feature_generation.py
AshwinHegde/Insight_Project_Framework
174951e2e15f84b15879032b4f47c3a7d6779af0
[ "MIT" ]
null
null
null
application/feature_generation.py
AshwinHegde/Insight_Project_Framework
174951e2e15f84b15879032b4f47c3a7d6779af0
[ "MIT" ]
null
null
null
application/feature_generation.py
AshwinHegde/Insight_Project_Framework
174951e2e15f84b15879032b4f47c3a7d6779af0
[ "MIT" ]
1
2020-01-21T19:55:24.000Z
2020-01-21T19:55:24.000Z
import rdkit as rd from rdkit import Chem #from rdkit.Chem import AllChem #import numpy as np from collections import Counter from gensim.models import word2vec from mol2vec_utils import * # File to generate numerical features from smiles data and replace # interaction labels by numerical ones # def smiles_to_ECFP(...
35.13125
94
0.68422
ba5f299afe1970b105ca9c78b8187cfb65cd88ce
11,407
py
Python
demo_cli.py
a-k-coder/Real-Time-Voice-Cloning
00f3c065d5c695352235614b22dba436f51c9936
[ "MIT" ]
null
null
null
demo_cli.py
a-k-coder/Real-Time-Voice-Cloning
00f3c065d5c695352235614b22dba436f51c9936
[ "MIT" ]
null
null
null
demo_cli.py
a-k-coder/Real-Time-Voice-Cloning
00f3c065d5c695352235614b22dba436f51c9936
[ "MIT" ]
null
null
null
from encoder.params_model import model_embedding_size as speaker_embedding_size from utils.argutils import print_args from utils.modelutils import check_model_paths from synthesizer.inference import Synthesizer from encoder import inference as encoder from vocoder import inference as vocoder from pathlib import Path im...
47.928571
157
0.638731
a175b1b8974c5224d8d788d0f726fabb2ee5cddc
3,090
py
Python
examples/association/basic_association.py
paylogic/sqlalchemy
876a487bf06a038efde7d46ce09e253b9247aae5
[ "MIT" ]
2
2015-11-07T11:55:45.000Z
2017-09-04T07:56:34.000Z
examples/association/basic_association.py
mitsuhiko/sqlalchemy
5a6895471fb6bf9afe9bdf017f1fa2c6246ae303
[ "MIT" ]
null
null
null
examples/association/basic_association.py
mitsuhiko/sqlalchemy
5a6895471fb6bf9afe9bdf017f1fa2c6246ae303
[ "MIT" ]
null
null
null
"""A basic example of using the association object pattern. The association object pattern is a form of many-to-many which associates additional data with each association between parent/child. The example illustrates an "order", referencing a collection of "items", with a particular price paid associated with each "...
32.526316
78
0.677023
9de5c852b2a84ccea83f0127e99b3af286600088
10,671
py
Python
PhononModes/match_modes.py
Huaguiyuan/PhononModes
71319b8b15f25530e4ef6a2c0789ad94c80f801d
[ "MIT" ]
9
2015-02-10T15:18:52.000Z
2020-11-19T11:08:31.000Z
PhononModes/match_modes.py
jeffwdoak/PhononModes
71319b8b15f25530e4ef6a2c0789ad94c80f801d
[ "MIT" ]
null
null
null
PhononModes/match_modes.py
jeffwdoak/PhononModes
71319b8b15f25530e4ef6a2c0789ad94c80f801d
[ "MIT" ]
2
2018-07-17T12:16:17.000Z
2019-03-19T09:34:39.000Z
#!/usr/bin/env python """ Set of functions to compare phonon normal modes and frequencies between two related structures to determine mode overlaps and anharmonic coupling constants. These functions were used in Doak, Wolverton, Ozolins, Phys. Rev. B, 92, 174306 (2015) to calcuate Eq. 13--15. When running this script...
33.242991
96
0.639022
b39aa825baf0fc99f1464458369dd3da00135f45
1,721
py
Python
dxfeed/publish_order_table.py
hythloda/redpanda-dxfeed-financial-data
4d33ba58db7bce79144721ca49ee17ab66181b37
[ "Apache-2.0" ]
3
2021-12-14T13:06:41.000Z
2022-02-17T19:34:41.000Z
dxfeed/publish_order_table.py
BenPope/redpanda-dxfeed-financial-data
4d33ba58db7bce79144721ca49ee17ab66181b37
[ "Apache-2.0" ]
null
null
null
dxfeed/publish_order_table.py
BenPope/redpanda-dxfeed-financial-data
4d33ba58db7bce79144721ca49ee17ab66181b37
[ "Apache-2.0" ]
2
2021-12-22T18:00:15.000Z
2022-01-18T14:36:38.000Z
from confluent_kafka import Producer from datetime import datetime import dxfeed as dx import json import time import re # Sleep to ensure server has time to run time.sleep(3) producer = Producer({ 'bootstrap.servers': 'redpanda:29092', }) endpoint = dx.Endpoint('demo.dxfeed.com:7300') symbols = ['SPY', 'AAPL'...
26.075758
115
0.611854
1e818395304c6189ea62a8ff326152cf7c68f3cf
3,019
py
Python
tests/core/stack/test_stack.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
tests/core/stack/test_stack.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
tests/core/stack/test_stack.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
2
2018-12-09T15:58:11.000Z
2020-09-29T07:10:21.000Z
import pytest from eth_utils import ( ValidationError, ) from eth.vm.stack import ( Stack, ) from eth.exceptions import ( FullStack, InsufficientStack, ) from eth.constants import ( UINT256, BYTES, SECPK1_N, ) @pytest.fixture def stack(): return Stack() @pytest.mark.parametrize( ...
23.403101
94
0.632329
ad4857be3cd7c63e0f8166b9b7e168f046a93770
41,916
py
Python
pyNastran/bdf/cards/methods.py
SteveDoyle2/pyNastran
399a63447517829f665e58487cdcae326447ce36
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
pyNastran/bdf/cards/methods.py
sean-engelstad/pyNastran
90f957887a4f68f8e58b07c15e1ac69c66b9c6f4
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
pyNastran/bdf/cards/methods.py
sean-engelstad/pyNastran
90f957887a4f68f8e58b07c15e1ac69c66b9c6f4
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
# pylint: disable=C0103,R0902,R0904,R0914 """ All method cards are defined in this file. This includes: * EIGB * EIGC * EIGR * EIGP * EIGRL All cards are Method objects. """ from __future__ import annotations from typing import TYPE_CHECKING from pyNastran.bdf.field_writer_8 import set_blank_if_default from py...
35.795047
110
0.516676
f6da5428789043e08eb9f1ce35cedf0b3fe38998
362
py
Python
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
screenplay/screenplay/condition.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
from .question import Question from .matcher import Matcher class Condition: def __init__(self, question: Question, expected: Matcher): self.question = question self.expected = expected def check_as(self, actor): assert self.expected.matches(self.question.answered_by(actor)), self.exp...
24.133333
98
0.729282