hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d3c5892177c7bc3b53d831c89a63be358c759e69
2,800
py
Python
tests/bbo/unit/test_fitness_aggregation.py
ValentinGaut/shaman
754e9eef3c097f3e58b0f06e7c08716bc1b11edd
[ "Apache-2.0" ]
null
null
null
tests/bbo/unit/test_fitness_aggregation.py
ValentinGaut/shaman
754e9eef3c097f3e58b0f06e7c08716bc1b11edd
[ "Apache-2.0" ]
null
null
null
tests/bbo/unit/test_fitness_aggregation.py
ValentinGaut/shaman
754e9eef3c097f3e58b0f06e7c08716bc1b11edd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 BULL SAS All rights reserved """This module provides the different tests for the fitness aggregation policy. """ import unittest import numpy as np from bbo.noise_reduction.fitness_transformation import ( FitnessTransformation, SimpleFitnessTransformation, ) class TestFitnessAggregation(unit...
35.897436
81
0.622857
ccc0459a68b4a9adc01ad76ae21b9e5a55258ad3
4,529
py
Python
src/general_utils.py
molnarszilard/latent_3d_points
42263c3424b817a73eb60e9b236974e6474f5637
[ "MIT" ]
445
2017-12-09T08:31:09.000Z
2022-03-16T00:37:06.000Z
src/general_utils.py
molnarszilard/latent_3d_points
42263c3424b817a73eb60e9b236974e6474f5637
[ "MIT" ]
28
2017-12-12T08:11:45.000Z
2022-03-21T18:55:20.000Z
src/general_utils.py
molnarszilard/latent_3d_points
42263c3424b817a73eb60e9b236974e6474f5637
[ "MIT" ]
107
2018-01-14T13:47:39.000Z
2022-03-12T13:32:55.000Z
''' Created on November 26, 2017 @author: optas ''' import numpy as np from numpy.linalg import norm import matplotlib.pylab as plt from mpl_toolkits.mplot3d import Axes3D def rand_rotation_matrix(deflection=1.0, seed=None): '''Creates a random rotation matrix. deflection: the magnitude of the rotation. F...
31.020548
181
0.60786
608d98b38905e88ce4e76e4af81082616d65ec05
421
py
Python
bounding_box.py
sakanaou/lego-boost-face-tracking-robot
9068e2a649cc5bc88317da774cd18f4a09dac5d5
[ "MIT" ]
null
null
null
bounding_box.py
sakanaou/lego-boost-face-tracking-robot
9068e2a649cc5bc88317da774cd18f4a09dac5d5
[ "MIT" ]
1
2021-08-17T05:58:56.000Z
2021-08-17T05:58:56.000Z
bounding_box.py
sakanaou/lego-boost-face-tracking-robot
9068e2a649cc5bc88317da774cd18f4a09dac5d5
[ "MIT" ]
null
null
null
class BoundingBox: def __init__(self, xmin, ymin, xmax, ymax): self.xmin = xmin self.ymin = ymin self.xmax = xmax self.ymax = ymax def surface(self): return (self.xmax - self.xmin) * (self.ymax - self.ymin) def center(self): return ( self.xmin + ...
26.3125
64
0.527316
902aceafd1da8f13c35fde3ff4c61130a0a548c4
7,327
py
Python
celery/utils/dispatch/signal.py
aleszoulek/celery
a179038fec68808d50c0a1f42aa26d315a3817ad
[ "BSD-3-Clause" ]
2
2021-04-30T02:01:12.000Z
2022-02-18T05:30:28.000Z
celery/utils/dispatch/signal.py
frac/celery
b6b32ca9a951e81722c52412c3f8a1cff67109dd
[ "BSD-3-Clause" ]
null
null
null
celery/utils/dispatch/signal.py
frac/celery
b6b32ca9a951e81722c52412c3f8a1cff67109dd
[ "BSD-3-Clause" ]
null
null
null
"""Signal class.""" import weakref try: set except NameError: from sets import Set as set # Python 2.3 fallback from celery.utils.dispatch import saferef WEAKREF_TYPES = (weakref.ReferenceType, saferef.BoundMethodWeakref) def _make_id(target): if hasattr(target, 'im_func'): retu...
34.561321
79
0.610618
2e3eed129baa23b0b1a060e3fdeb135041186ee4
6,235
py
Python
benchmarks/conftest.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
12
2021-09-12T15:51:45.000Z
2022-03-05T22:25:47.000Z
benchmarks/conftest.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
36
2021-09-13T08:01:27.000Z
2022-03-21T11:53:30.000Z
benchmarks/conftest.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Budapest Quantum Computing Group # # 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...
32.989418
82
0.677626
9b12c618c9a806528e52b0a51ae3a300bc22b7c1
919
py
Python
stubs.min/Autodesk/Revit/DB/__init___parts/FaceNode.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/Autodesk/Revit/DB/__init___parts/FaceNode.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/__init___parts/FaceNode.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class FaceNode(RenderNode,IDisposable): """ An output node that represents a Face. """ def Dispose(self): """ Dispose(self: RenderNode,A_0: bool) """ pass def GetFace(self): """ GetFace(self: FaceNode) -> Face Returns the Face object corresponding to the node. Returns: The face. """ ...
35.346154
215
0.680087
344b547a8952ac36c8a36bd87fdd192227e9ed72
14,728
py
Python
src/connotations/modeling/data_utils.py
emilyallaway/connotation-embedding
7f24f4a2ad0945189dd8961f8a85b0a2d4a19f6d
[ "MIT" ]
null
null
null
src/connotations/modeling/data_utils.py
emilyallaway/connotation-embedding
7f24f4a2ad0945189dd8961f8a85b0a2d4a19f6d
[ "MIT" ]
null
null
null
src/connotations/modeling/data_utils.py
emilyallaway/connotation-embedding
7f24f4a2ad0945189dd8961f8a85b0a2d4a19f6d
[ "MIT" ]
null
null
null
import torch, random, json, copy import numpy as np def load_vectors(vecfile, dim=300, unk_rand=True, seed=0): ''' Loads saved vectors; :param vecfile: the name of the file to load the vectors from. :return: a numpy array of all the vectors. ''' vecs = np.load(vecfile) np.random.seed(seed)...
36.275862
143
0.570342
1699bd07db4ec2ac91c6955649943d35b71270f8
166
py
Python
lib/__init__.py
WemyJu/TOC_proj
465a8c88f8abb3e00a36765524a6d2789114c2d1
[ "MIT" ]
1
2021-09-03T15:53:01.000Z
2021-09-03T15:53:01.000Z
lib/__init__.py
WemyJu/TOC_proj
465a8c88f8abb3e00a36765524a6d2789114c2d1
[ "MIT" ]
null
null
null
lib/__init__.py
WemyJu/TOC_proj
465a8c88f8abb3e00a36765524a6d2789114c2d1
[ "MIT" ]
null
null
null
from .DataGarageAPI import DataGarageAPI from .addressClassifier import AddressClassifier from .Regression import Regression from .userInterface import userInterface
33.2
48
0.879518
3a3029ac8f158c8c2921d749147ab098c1180b67
181
py
Python
run.py
carverdo/scrap
d431095cadc1bc3f60aa0a3f473e726ecace9078
[ "MIT" ]
null
null
null
run.py
carverdo/scrap
d431095cadc1bc3f60aa0a3f473e726ecace9078
[ "MIT" ]
null
null
null
run.py
carverdo/scrap
d431095cadc1bc3f60aa0a3f473e726ecace9078
[ "MIT" ]
null
null
null
__author__ = 'donal' __project__ = 'ribcage' from app import create_app # app = create_app('development') app = create_app('production') if __name__ == '__main__': app.run()
16.454545
33
0.701657
b936c1f08c6cf81a50d82feba73b16e11d4e3c27
893
py
Python
example/RunModel/OpenSees_Example/run_opensees_UQpy.py
marrov/UQpy
b04a267b3080e3d4d38e876547ba0d3b979734f3
[ "MIT" ]
132
2018-03-13T13:56:33.000Z
2022-03-21T13:59:17.000Z
example/RunModel/OpenSees_Example/run_opensees_UQpy.py
marrov/UQpy
b04a267b3080e3d4d38e876547ba0d3b979734f3
[ "MIT" ]
140
2018-05-21T13:40:01.000Z
2022-03-29T14:18:01.000Z
example/RunModel/OpenSees_Example/run_opensees_UQpy.py
marrov/UQpy
b04a267b3080e3d4d38e876547ba0d3b979734f3
[ "MIT" ]
61
2018-05-02T13:40:05.000Z
2022-03-06T11:31:21.000Z
import numpy as np from UQpy.Distributions import Uniform from UQpy.RunModel import RunModel from UQpy.SampleMethods import MCS dist1 = Uniform(loc=15000, scale=10000) dist2 = Uniform(loc=450000, scale=80000) dist3 = Uniform(loc=2.0e8, scale=0.5e8) names_ = ['fc1', 'fy1', 'Es1', 'fc2', 'fy2', 'Es2', 'fc3', 'fy3', '...
37.208333
120
0.680851
248ba9ad3e245e19467d340f3979df3cd74bdf06
2,373
py
Python
easyui/mixins/view_mixins.py
xu2243051/easyui-menu
4da0b50cf2d3ddb0f1ec7a4da65fd3c4339f8dfb
[ "Apache-2.0" ]
1
2015-09-29T07:32:51.000Z
2015-09-29T07:32:51.000Z
easyui/mixins/view_mixins.py
xu2243051/easyui-menu
4da0b50cf2d3ddb0f1ec7a4da65fd3c4339f8dfb
[ "Apache-2.0" ]
null
null
null
easyui/mixins/view_mixins.py
xu2243051/easyui-menu
4da0b50cf2d3ddb0f1ec7a4da65fd3c4339f8dfb
[ "Apache-2.0" ]
2
2015-02-08T13:08:04.000Z
2019-08-26T06:43:08.000Z
#!/usr/bin/python #coding:utf-8 import sys reload(sys) sys.setdefaultencoding('utf8') from django.core.urlresolvers import reverse_lazy from django.views.generic import ListView, CreateView, UpdateView, DeleteView from .easyui_mixins import MenuPositionMixin, EasyUIListMixin, EasyUIGetVarMixin from .easyui_mixins imp...
27.593023
107
0.69153
fe14c082de4abd423d5ba002694f1f9d6e41e1de
203
py
Python
ecfacturacion/facturacion/doctype/facturas/facturas.py
edwinorlando83/ecfacturacion
c63b9489b2766e6962e93d02b0538821971051d3
[ "MIT" ]
null
null
null
ecfacturacion/facturacion/doctype/facturas/facturas.py
edwinorlando83/ecfacturacion
c63b9489b2766e6962e93d02b0538821971051d3
[ "MIT" ]
null
null
null
ecfacturacion/facturacion/doctype/facturas/facturas.py
edwinorlando83/ecfacturacion
c63b9489b2766e6962e93d02b0538821971051d3
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Ing. Orlando Cholota and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class Facturas(Document): pass
22.555556
59
0.788177
659541ad18ffae20252f27cac06b717f76086642
757
py
Python
Data_Types.py
abanda97/astr-119-session-3
c478b3014e047ace6622c1575b3025170466075a
[ "MIT" ]
null
null
null
Data_Types.py
abanda97/astr-119-session-3
c478b3014e047ace6622c1575b3025170466075a
[ "MIT" ]
1
2018-10-10T02:33:36.000Z
2018-10-18T18:55:06.000Z
Data_Types.py
abanda97/astr-119-session-3
c478b3014e047ace6622c1575b3025170466075a
[ "MIT" ]
1
2018-10-18T01:38:44.000Z
2018-10-18T01:38:44.000Z
import numpy as np #import numpy library #integers i = 10 #integer print(type(i)) #print out the data type of i a_i = np.zeros(i,dtype=int) #declare an array of ints print(type(a_i)) #will return ndarray print(type(a_i[0])) #will return int64 #int64 means we're using 64 bit integers #for our class,...
29.115385
81
0.700132
cc548ee95034f4096fc195c8e188edca8345bd14
8,367
py
Python
handlers/in_processing/enter_to_blue_amount_menu.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/in_processing/enter_to_blue_amount_menu.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/in_processing/enter_to_blue_amount_menu.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from utils.notify_chat import notify_in_group_chat from utils.notify_universal import notify_someone from aiogram.types import CallbackQuery, Message from aiogram.dispatcher import FSMContext from data import sticker from loader import dp from loader import bot from loader import sheet from states import Processing f...
32.057471
96
0.650173
82aa00e0d2a368bb6d856e4b90d8e3a73eda3d1c
40,498
py
Python
lib/spack/external/_pytest/pytester.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
lib/spack/external/_pytest/pytester.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
lib/spack/external/_pytest/pytester.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
""" (disabled by default) support for testing pytest and pytest plugins. """ from __future__ import absolute_import, division, print_function import codecs import gc import os import platform import re import subprocess import sys import time import traceback from fnmatch import fnmatch from weakref import WeakKeyDic...
34.672945
107
0.59277
a8098869ab072d6de96f069b396af1bd5e5b4b14
4,309
py
Python
examples/plotting/quickplot.py
LiamBindle/gcpy
64ac8f236ecc11da88d874c558463dd5f8cc6503
[ "NCSA", "Apache-2.0", "MIT" ]
1
2020-02-20T23:41:26.000Z
2020-02-20T23:41:26.000Z
examples/plotting/quickplot.py
LiamBindle/gcpy
64ac8f236ecc11da88d874c558463dd5f8cc6503
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
examples/plotting/quickplot.py
LiamBindle/gcpy
64ac8f236ecc11da88d874c558463dd5f8cc6503
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python ''' quickplot.py: Can be used to generate a quick-look plot of a variable in a netCDF file. The plotting is bare-bones, without a gridded-map or choice of color scale. This is useful, for example, when you need to make a "sanity-check" plot to make sure that a given model output was generated p...
34.198413
80
0.62706
94707d5e4595252b61f99965e08d1e928f6ab77a
8,683
py
Python
ScalarTheory/eval_trained_INNs.py
StefanWahl/Applying-Energy-Based-Models-on-the-Ising-model-and-a-scalar-lattice-field-theory-in-two-dimensions
0525031479d9b98b05c06dd0a12c72330a32b056
[ "MIT" ]
null
null
null
ScalarTheory/eval_trained_INNs.py
StefanWahl/Applying-Energy-Based-Models-on-the-Ising-model-and-a-scalar-lattice-field-theory-in-two-dimensions
0525031479d9b98b05c06dd0a12c72330a32b056
[ "MIT" ]
null
null
null
ScalarTheory/eval_trained_INNs.py
StefanWahl/Applying-Energy-Based-Models-on-the-Ising-model-and-a-scalar-lattice-field-theory-in-two-dimensions
0525031479d9b98b05c06dd0a12c72330a32b056
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from Training_INN import Trainer_INN import os import json from models import fc_subnet import matplotlib.font_manager as font_manager import argparse my_parser = argparse.ArgumentParser() my_parser.add_argument("--Reference_path", type=str, ...
57.125
232
0.547967
48522cff002bb99d4e8784247e4a93a5766bd4bf
1,406
py
Python
tests/viewsets.py
codewiseio/django-agape
a63fc2cc63776c2b2cb16c7f6aee64f5783c3bba
[ "MIT" ]
null
null
null
tests/viewsets.py
codewiseio/django-agape
a63fc2cc63776c2b2cb16c7f6aee64f5783c3bba
[ "MIT" ]
null
null
null
tests/viewsets.py
codewiseio/django-agape
a63fc2cc63776c2b2cb16c7f6aee64f5783c3bba
[ "MIT" ]
null
null
null
# # THIS FILE NOT CURRENTLY IN USE # - Possibly will remove CRUD operations to a proxy - this will allow using the # proxy to update, delete, remove, - not called from a view and still have the # signals emitted. This would be useful if another applications callbacks are # used to add remove objects and we still ...
26.037037
81
0.684211
4c6134fcf22edf4c4d8aeb747af508cccd441f03
3,746
py
Python
Reducer/linear_regression.py
guy1ziv2/earthengine-py-notebooks
931f57c61c147fe6cff745c2a099a444716e69e4
[ "MIT" ]
1
2020-12-23T16:26:05.000Z
2020-12-23T16:26:05.000Z
Reducer/linear_regression.py
guy1ziv2/earthengine-py-notebooks
931f57c61c147fe6cff745c2a099a444716e69e4
[ "MIT" ]
null
null
null
Reducer/linear_regression.py
guy1ziv2/earthengine-py-notebooks
931f57c61c147fe6cff745c2a099a444716e69e4
[ "MIT" ]
1
2020-12-23T16:29:51.000Z
2020-12-23T16:29:51.000Z
''' <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Reducer/linear_regression.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_blank"...
37.089109
422
0.725574
ddd103aea979abc5e8055ee4858d40eeefed862f
1,879
py
Python
cypherpunkpay/usecases/call_merchant_base_uc.py
prusnak/CypherpunkPay
e0f6609e2d3ec0882b9e233b00df162a88559ed9
[ "MIT", "Unlicense" ]
44
2021-06-25T16:40:52.000Z
2022-03-24T08:17:49.000Z
cypherpunkpay/usecases/call_merchant_base_uc.py
prusnak/CypherpunkPay
e0f6609e2d3ec0882b9e233b00df162a88559ed9
[ "MIT", "Unlicense" ]
25
2021-07-20T04:36:08.000Z
2022-03-10T14:00:53.000Z
cypherpunkpay/usecases/call_merchant_base_uc.py
prusnak/CypherpunkPay
e0f6609e2d3ec0882b9e233b00df162a88559ed9
[ "MIT", "Unlicense" ]
5
2021-06-29T23:17:06.000Z
2022-01-25T22:55:43.000Z
import logging as log from abc import ABC import requests from requests import Response from cypherpunkpay import utc_now from cypherpunkpay.app import App from cypherpunkpay.models.charge import Charge from cypherpunkpay.net.tor_client.base_tor_circuits import BaseTorCircuits from cypherpunkpay.usecases import UseCa...
40.847826
156
0.697712
695a506b77705791f980f77d869b417b3af8b368
2,640
py
Python
phonenumbers/data/region_AM.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
2
2019-02-22T05:27:22.000Z
2020-12-30T19:33:18.000Z
phonenumbers/data/region_AM.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
phonenumbers/data/region_AM.py
ayushgoel/FixGoogleContacts
e49e58db6718bef8f95b6f767241605441c7fe41
[ "MIT" ]
null
null
null
"""Auto-generated file, do not edit by hand. AM metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AM = PhoneMetadata(id='AM', country_code=374, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[1-9]\\d{7}', possible_number_pattern='\...
101.538462
202
0.731818
26bdc2d2666c57b1a61f35a59c65406e7d9abf11
7,757
py
Python
feature_transforms.py
jvbalen/catchy
6e053c71b0abb24cca71ee3335f39ce7816e95de
[ "MIT" ]
21
2016-08-12T19:10:24.000Z
2022-01-08T00:13:42.000Z
feature_transforms.py
jvbalen/catchy
6e053c71b0abb24cca71ee3335f39ce7816e95de
[ "MIT" ]
1
2020-02-15T19:29:38.000Z
2020-02-15T19:29:38.000Z
feature_transforms.py
jvbalen/catchy
6e053c71b0abb24cca71ee3335f39ce7816e95de
[ "MIT" ]
3
2016-10-10T09:50:04.000Z
2020-09-15T16:20:12.000Z
from __future__ import division, print_function import numpy as np import pandas as pd import scipy.stats as stats import sklearn.neighbors as nn import utils data_dir = '' def compute(segment_dict, features): """ Args: segment_dict (dict): dictionary of song segments, containing a list of ...
40.401042
134
0.583215
cfb8ed854fdec4190edef856463bb3f56912819b
2,261
py
Python
exam_preparation/system_16_08_2020/project/hardware/hardware.py
PetkoAndreev/Python-OOP
2cc3094940cdf078f0ee60be938e883f843766e4
[ "MIT" ]
1
2021-05-27T07:59:17.000Z
2021-05-27T07:59:17.000Z
exam_preparation/system_16_08_2020/project/hardware/hardware.py
PetkoAndreev/Python-OOP
2cc3094940cdf078f0ee60be938e883f843766e4
[ "MIT" ]
null
null
null
exam_preparation/system_16_08_2020/project/hardware/hardware.py
PetkoAndreev/Python-OOP
2cc3094940cdf078f0ee60be938e883f843766e4
[ "MIT" ]
null
null
null
from project.software.software import Software class Hardware: def __init__(self, name: str, type: str, capacity: int, memory: int): self.name = name self.type = type self.capacity = capacity self.memory = memory self.software_components = [] def __repr__(self): ...
42.660377
133
0.678019
8f33849ed8608dc5685e577f86ff0f7555a0b10b
32,156
py
Python
twisted/conch/test/test_checkers.py
jMyles/twisted
a5108c0db829847bbfd4bf427868eb0b13da0465
[ "Unlicense", "MIT" ]
1
2015-08-18T06:57:28.000Z
2015-08-18T06:57:28.000Z
twisted/conch/test/test_checkers.py
jMyles/twisted
a5108c0db829847bbfd4bf427868eb0b13da0465
[ "Unlicense", "MIT" ]
1
2022-03-04T17:40:22.000Z
2022-03-04T17:40:22.000Z
twisted/conch/test/test_checkers.py
jMyles/twisted
a5108c0db829847bbfd4bf427868eb0b13da0465
[ "Unlicense", "MIT" ]
1
2020-11-01T20:40:01.000Z
2020-11-01T20:40:01.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.conch.checkers}. """ try: import crypt except ImportError: cryptSkip = 'cannot run without crypt module' else: cryptSkip = None import os, base64 from collections import namedtuple from io import StringIO fro...
36.008959
80
0.63618
6f590378f4d4f41afd70215e31212a2164776162
298
py
Python
ghost/weather.py
Satyabrat35/Zulip-Bot
3d4470fa92d56dcb19671ec476b3be4b13c919af
[ "MIT" ]
1
2021-03-31T00:07:47.000Z
2021-03-31T00:07:47.000Z
ghost/weather.py
Satyabrat35/Zulip-Bot
3d4470fa92d56dcb19671ec476b3be4b13c919af
[ "MIT" ]
null
null
null
ghost/weather.py
Satyabrat35/Zulip-Bot
3d4470fa92d56dcb19671ec476b3be4b13c919af
[ "MIT" ]
1
2020-08-10T02:28:42.000Z
2020-08-10T02:28:42.000Z
import requests import sys api_key = 'ceed4fa3425d26289dae17859d66cd37' def get_weather(location): url = "https://api.openweathermap.org/data/2.5/weather?q={}&appid={}".format(location, api_key) response = requests.get(url) return response.json() #x = "Mumbai" #print(get_weather(x))
24.833333
99
0.724832
5debb8b2fc0cf27cb0698c3f073521df5a11edcf
111,948
py
Python
awx/main/tasks.py
mhurron/awx
97a7eeb3c86ec4bc4b6303533207150cb1dbac9d
[ "Apache-2.0" ]
1
2019-04-30T17:55:41.000Z
2019-04-30T17:55:41.000Z
awx/main/tasks.py
mhurron/awx
97a7eeb3c86ec4bc4b6303533207150cb1dbac9d
[ "Apache-2.0" ]
null
null
null
awx/main/tasks.py
mhurron/awx
97a7eeb3c86ec4bc4b6303533207150cb1dbac9d
[ "Apache-2.0" ]
2
2019-01-15T16:18:02.000Z
2019-03-19T20:59:10.000Z
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Python from collections import OrderedDict, namedtuple import ConfigParser import cStringIO import errno import functools import importlib import json import logging import os import re import shutil import six import stat import tempfile import time import t...
45.730392
153
0.609176
94659adde8498b05797dd9a8542bb9ee4c1ae5ba
2,097
py
Python
sessao03/12_65-Exercicio/aula65.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
sessao03/12_65-Exercicio/aula65.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
sessao03/12_65-Exercicio/aula65.py
Ruteski/CursoPythonOM
afe5ad5e50f903dab370be2b76966a81f07e51dd
[ "MIT" ]
null
null
null
""" -> É uma lista de listas de números inteiros -> As listas internas tem o tamanho de 10 elementos -> As listas internas contém números entre 1 a 10 e eles podem ser duplicados Exercício -> Crie uma função que encontra o primeiro duplicado considerando o segundo número como a duplicação. Retorne a duplicação cons...
32.765625
77
0.536004
79fcbebf32fc6dc33094de8cd8f3101474b6e645
748
py
Python
ContractorApp/migrations/0031_auto_20220117_2021.py
Paul-W-0/FindContractors
d4986a15073856b9cf236f9dac0fdc60bfe96aba
[ "BSD-2-Clause" ]
null
null
null
ContractorApp/migrations/0031_auto_20220117_2021.py
Paul-W-0/FindContractors
d4986a15073856b9cf236f9dac0fdc60bfe96aba
[ "BSD-2-Clause" ]
null
null
null
ContractorApp/migrations/0031_auto_20220117_2021.py
Paul-W-0/FindContractors
d4986a15073856b9cf236f9dac0fdc60bfe96aba
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.2.9 on 2022-01-17 20:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ContractorApp', '0030_job_contractors_applied'), ] operations = [ migrations.RenameField( model_name='job', old_name...
25.793103
63
0.584225
a63038d6c0d2f58671e5359da09baf00ec802ef3
22,237
py
Python
pyqmc/jastrowspin.py
willwheelera/pyqmc
0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb
[ "MIT" ]
null
null
null
pyqmc/jastrowspin.py
willwheelera/pyqmc
0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb
[ "MIT" ]
null
null
null
pyqmc/jastrowspin.py
willwheelera/pyqmc
0c8d1f308bbccb1560aa680a5a75e7a4fe7a69fb
[ "MIT" ]
null
null
null
import numpy as np import pyqmc.gpu as gpu class JastrowSpin: r""" 1 body and 2 body jastrow factor The Jastrow form is :math:`e^{U(R)}`, where .. math:: U(R) = \sum_{I, i, k} c^{a}_{Ik\sigma(i)} a_{k}(r_{Ii}) + \sum_{i,j,k} c^{b}_{k\sigma(i)\sigma(j)} b^{l}(r_{ij}) "...
49.970787
299
0.565499
7b8f49f6a10b8a29d518ad0eb5e50408110a01e2
1,232
py
Python
tests/zoomus/components/user/test_delete.py
appfluence/zoomus
a14e1f08700b9dad89f00b0d5c2a73a24d421c78
[ "Apache-2.0" ]
2
2020-03-14T14:47:18.000Z
2020-04-06T23:20:54.000Z
tests/zoomus/components/user/test_delete.py
appfluence/zoomus
a14e1f08700b9dad89f00b0d5c2a73a24d421c78
[ "Apache-2.0" ]
null
null
null
tests/zoomus/components/user/test_delete.py
appfluence/zoomus
a14e1f08700b9dad89f00b0d5c2a73a24d421c78
[ "Apache-2.0" ]
1
2022-03-04T11:54:56.000Z
2022-03-04T11:54:56.000Z
__author__ = "Patrick R. Schmid" __email__ = "prschmid@act.md" import unittest from mock import patch from zoomus import components def suite(): """Define all the tests of the module.""" suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(DeleteTestCase)) return suite class DeleteTestC...
23.692308
72
0.570617
5e437fa8ff8b0165c2c6b05be034439706a8a095
325
py
Python
electionleaflets/apps/tags/admin.py
electionleaflets/electionleaflets
4110e96a3035c32d0b6ff3c9f832c5e003728170
[ "MIT" ]
null
null
null
electionleaflets/apps/tags/admin.py
electionleaflets/electionleaflets
4110e96a3035c32d0b6ff3c9f832c5e003728170
[ "MIT" ]
23
2015-02-19T14:02:23.000Z
2015-04-30T11:14:01.000Z
electionleaflets/apps/tags/admin.py
electionleaflets/electionleaflets
4110e96a3035c32d0b6ff3c9f832c5e003728170
[ "MIT" ]
2
2015-02-02T19:39:54.000Z
2017-02-08T09:19:53.000Z
from django.contrib import admin from tags.models import Tag class TagOptions(admin.ModelAdmin): list_display = [ 'tag', 'tag_clean', 'slug', 'dead'] list_filter = ('dead',) search_fields = ['tag'] ordering = ['tag'] admin.site.register( Tag, TagOption...
27.083333
68
0.569231
70b7c72768a7b5a20521eeb5d1140cef2571abcf
2,083
py
Python
Day8.py
RylandeFM/AoC2021
1fa681b9caca51cb9350c82b4028f8e141a56241
[ "MIT" ]
null
null
null
Day8.py
RylandeFM/AoC2021
1fa681b9caca51cb9350c82b4028f8e141a56241
[ "MIT" ]
null
null
null
Day8.py
RylandeFM/AoC2021
1fa681b9caca51cb9350c82b4028f8e141a56241
[ "MIT" ]
null
null
null
inputString = open("Input/Day 8.txt", "r").read().splitlines() def partOne(): print(sum([len([x for x in line.split(" | ")[1].split(" ") if len(x) in [2,3,4,7]]) for line in inputString])) def partTwo(): totalSum = 0 for line in inputString: key, numbers = ["top","topLeft","topRight","middle","bo...
50.804878
127
0.570811
85fae1e2e7833becdac3a411405047969b9b822f
450
py
Python
mayan/apps/display/models.py
CMU-313/fall-2021-hw2-i-m-not-sure
eeae5ff8ced613603bb6e12ef81767b024d1cffb
[ "Apache-2.0" ]
null
null
null
mayan/apps/display/models.py
CMU-313/fall-2021-hw2-i-m-not-sure
eeae5ff8ced613603bb6e12ef81767b024d1cffb
[ "Apache-2.0" ]
20
2021-09-15T21:47:42.000Z
2021-10-01T20:00:35.000Z
mayan/apps/display/models.py
CMU-313/fall-2021-hw2-i-m-not-sure
eeae5ff8ced613603bb6e12ef81767b024d1cffb
[ "Apache-2.0" ]
null
null
null
from django.db import models class Candidate(models.Model): candidate_name=models.CharField(max_length=60) high_school=models.CharField(max_length=60) gpa_score=models.FloatField() exam_score=models.FloatField() class CandidateReview(models.Model): reviewer_name=models.CharField(max_length=60...
34.615385
50
0.78
785a43f471ecab416f2bad8d0cc9e398b29ff7bb
5,039
py
Python
callbacks.py
proste/genetals
1af191915bdb6171b063ab00b2fc1d03bcf059c1
[ "MIT" ]
null
null
null
callbacks.py
proste/genetals
1af191915bdb6171b063ab00b2fc1d03bcf059c1
[ "MIT" ]
null
null
null
callbacks.py
proste/genetals
1af191915bdb6171b063ab00b2fc1d03bcf059c1
[ "MIT" ]
null
null
null
import numpy as np from .core import GeneticAlgorithm, CallbackBase import matplotlib.pyplot as plt class GAStatus(CallbackBase): def __init__(self, fig: plt.Figure): super(GAStatus, self).__init__() self._fig = fig def __call__(self, ga: GeneticAlgorithm) -> None: self._fig.canvas....
36.251799
114
0.620361
103aa6b24370d88034a646d4032b61247a9441d1
10,527
py
Python
backend/core/models.py
sudipbhujel/election
fae1cd97e93e18d96d26e46ed57649160b0e4335
[ "MIT" ]
3
2021-04-07T08:33:39.000Z
2021-07-29T03:28:24.000Z
backend/core/models.py
sudipbhujel/election
fae1cd97e93e18d96d26e46ed57649160b0e4335
[ "MIT" ]
null
null
null
backend/core/models.py
sudipbhujel/election
fae1cd97e93e18d96d26e46ed57649160b0e4335
[ "MIT" ]
4
2021-04-11T14:07:52.000Z
2021-07-29T03:28:26.000Z
import os import uuid from ckeditor.fields import RichTextField from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager, PermissionsMixin) from django.contrib.humanize.templatetags.humanize import naturaltime from django.core.validators import MinValueValidator...
35.09
78
0.592951
807e5de917edcd730f35e92efb8b3e1c7eb1d7e0
1,428
py
Python
BinaryNumbers/BinNums.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
null
null
null
BinaryNumbers/BinNums.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
5
2020-05-04T03:11:14.000Z
2021-06-10T20:20:38.000Z
BinaryNumbers/BinNums.py
rishidevc/stkovrflw
c33dffbce887f32f609a10dd717d594390ceac8b
[ "MIT" ]
1
2019-07-31T18:28:34.000Z
2019-07-31T18:28:34.000Z
""" INPUTS AND EXPECTED OUTPUTS:- 9 => "1001" 60 => "0011_1100" 100 => "0110_0100" 63000 => "1111_0110_0001_1000" """ def get_binary(n): s = bin(n)[2:]; # Getting binary string strs = []; while s: l = len(s); # Finding lenght of binary string if l > 4: strs.insert(0, s[l-4:]); s = s[:l...
21
95
0.502801
d936b7b6f8a447e7fb63424b2376f2db146ba16d
13,990
py
Python
ch16-deployment/.venv/lib/python3.10/site-packages/psycopg/server_cursor.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
5
2021-12-14T03:33:39.000Z
2022-01-11T14:13:21.000Z
ch16-deployment/.venv/lib/python3.10/site-packages/psycopg/server_cursor.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
null
null
null
ch16-deployment/.venv/lib/python3.10/site-packages/psycopg/server_cursor.py
wsvincent/djangoforbeginners_32
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
[ "MIT" ]
null
null
null
""" psycopg server-side cursor objects. """ # Copyright (C) 2020-2021 The Psycopg Team import warnings from typing import Any, AsyncIterator, Generic, List, Iterator, Optional from typing import Sequence, TypeVar, TYPE_CHECKING from . import pq from . import sql from . import errors as e from .abc import ConnectionT...
32.01373
81
0.58549
de75028091ffe3a164ed4ab76146769dc1e11596
31,745
py
Python
dask/dataframe/utils.py
joshreback/dask
d96fed990279fcd272cc5ada005d07c85b104ce5
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/utils.py
joshreback/dask
d96fed990279fcd272cc5ada005d07c85b104ce5
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/utils.py
joshreback/dask
d96fed990279fcd272cc5ada005d07c85b104ce5
[ "BSD-3-Clause" ]
null
null
null
import math import numbers import re import textwrap from collections.abc import Iterator, Mapping import sys import traceback from contextlib import contextmanager import numpy as np import pandas as pd from pandas.api.types import ( is_categorical_dtype, is_scalar, is_sparse, is_period_dtype, is...
32.4591
94
0.595243
d7a8dc7f7300b3df5fd7792006c411347f63be96
6,553
py
Python
homeassistant/components/hue/bridge.py
ellsclytn/home-assistant
addca54118fb7f73812d6b51a8d6dfb5d0b9d524
[ "Apache-2.0" ]
7
2018-06-29T01:13:54.000Z
2020-04-01T16:08:27.000Z
homeassistant/components/hue/bridge.py
ellsclytn/home-assistant
addca54118fb7f73812d6b51a8d6dfb5d0b9d524
[ "Apache-2.0" ]
null
null
null
homeassistant/components/hue/bridge.py
ellsclytn/home-assistant
addca54118fb7f73812d6b51a8d6dfb5d0b9d524
[ "Apache-2.0" ]
3
2018-10-09T08:37:48.000Z
2019-11-16T08:32:27.000Z
"""Code to handle a Hue bridge.""" import asyncio import async_timeout import voluptuous as vol from homeassistant import config_entries from homeassistant.helpers import aiohttp_client, config_validation as cv from .const import DOMAIN, LOGGER from .errors import AuthenticationRequired, CannotConnect SERVICE_HUE_S...
34.856383
79
0.618495
19aa79c2808de33907ff81b05cb06d185eb7d735
8,925
py
Python
src/oci/data_integration/models/unique_key.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_integration/models/unique_key.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_integration/models/unique_key.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.775862
245
0.630364
82bcb34677dd2eab4940a5bd514f23ead7402dda
5,149
py
Python
lib/lale/sklearn/linear_regression.py
gracexwho/model-card-generator
ca39806f625bc4b78e073751537f3514d178b8c7
[ "MIT" ]
1
2021-02-27T04:32:23.000Z
2021-02-27T04:32:23.000Z
lib/lale/sklearn/linear_regression.py
gracexwho/model-card-generator
ca39806f625bc4b78e073751537f3514d178b8c7
[ "MIT" ]
null
null
null
lib/lale/sklearn/linear_regression.py
gracexwho/model-card-generator
ca39806f625bc4b78e073751537f3514d178b8c7
[ "MIT" ]
1
2021-05-19T17:32:28.000Z
2021-05-19T17:32:28.000Z
# Copyright 2019 IBM Corporation # # 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, ...
36.51773
153
0.541076
34585df280c1d5dcb6311e47950fe8cf8aed16bc
5,745
py
Python
e2e_tests/tests/nightly/test_convergence.py
nghiatle/determined
9d3525cb67a128c05169420e09558f30e1125918
[ "Apache-2.0" ]
null
null
null
e2e_tests/tests/nightly/test_convergence.py
nghiatle/determined
9d3525cb67a128c05169420e09558f30e1125918
[ "Apache-2.0" ]
null
null
null
e2e_tests/tests/nightly/test_convergence.py
nghiatle/determined
9d3525cb67a128c05169420e09558f30e1125918
[ "Apache-2.0" ]
null
null
null
import pytest from tests import config as conf from tests import experiment as exp @pytest.mark.nightly # type: ignore def test_cifar10_pytorch_accuracy() -> None: config = conf.load_config(conf.official_examples_path("trial/cifar10_cnn_pytorch/const.yaml")) experiment_id = exp.run_basic_test_with_temp_conf...
35.462963
98
0.687032
b5431e5720df4621670b3a65b8a004927550dc96
1,231
py
Python
labelImg/libs/toolBar.py
Soumya020131/Shehacks
44a7c4c35bc9d81b1f22cdc629a5873e1db0b175
[ "Apache-2.0" ]
2
2021-05-13T13:38:45.000Z
2022-01-14T07:11:57.000Z
labelImg/libs/toolBar.py
Soumya020131/Shehacks
44a7c4c35bc9d81b1f22cdc629a5873e1db0b175
[ "Apache-2.0" ]
null
null
null
labelImg/libs/toolBar.py
Soumya020131/Shehacks
44a7c4c35bc9d81b1f22cdc629a5873e1db0b175
[ "Apache-2.0" ]
2
2019-03-14T09:03:45.000Z
2019-04-03T08:46:29.000Z
try: from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * except ImportError: from PyQt4.QtGui import * from PyQt4.QtCore import * class ToolBar(QToolBar): def __init__(self, title): super(ToolBar, self).__init__(title) layout = self....
30.775
80
0.621446
8b050a53d427e5ff50a6d2c30dd58d9ab89a3dd2
1,984
py
Python
lm.py
wanicca/lm_morse_solver
ac3bad88afe86b8d915ee93dd1d181c233e3750d
[ "CECILL-B" ]
7
2018-06-12T01:30:51.000Z
2019-10-10T16:29:27.000Z
lm.py
wanicca/lm_morse_solver
ac3bad88afe86b8d915ee93dd1d181c233e3750d
[ "CECILL-B" ]
null
null
null
lm.py
wanicca/lm_morse_solver
ac3bad88afe86b8d915ee93dd1d181c233e3750d
[ "CECILL-B" ]
null
null
null
import torch.nn as nn from torch.autograd import Variable from torch import Tensor class LM_LSTM(nn.Module): """Simple LSMT-based language model""" def __init__(self, embedding_dim, num_steps, batch_size, vocab_size, num_layers, dp_keep_prob): super(LM_LSTM, self).__init__() self.embedding_dim = embedding_d...
40.489796
97
0.696573
88575a5d7c2ca0bd4b17a19f65348f2bfdaeaef3
7,234
py
Python
tests/unit/address/model_tests.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
null
null
null
tests/unit/address/model_tests.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
1
2017-07-28T19:35:07.000Z
2017-07-28T19:35:07.000Z
tests/unit/address/model_tests.py
jupitercl/meatme-oscar-dev
40583cbb3c6762640a403956e41bffac0bb2ad48
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from django.test import TestCase from django.core import exceptions from oscar.apps.order.models import ShippingAddress from oscar.core.compat import get_user_model from oscar.apps.address import models from oscar.test import factories User = get_user_model() class TestUserAdd...
32.294643
80
0.605198
8b9c1f6751166f9014ff1ca6762fd3d18e79fe4c
2,055
py
Python
ff/copy_data.py
gary918/ManyModelsMLOps
e4442f6724f022b3184d68f1f18ee7a2c160bcbf
[ "MIT" ]
null
null
null
ff/copy_data.py
gary918/ManyModelsMLOps
e4442f6724f022b3184d68f1f18ee7a2c160bcbf
[ "MIT" ]
null
null
null
ff/copy_data.py
gary918/ManyModelsMLOps
e4442f6724f022b3184d68f1f18ee7a2c160bcbf
[ "MIT" ]
null
null
null
import os import time import argparse from azure.storage.blob import BlobServiceClient print("Running copy_data.py") parser = argparse.ArgumentParser("prepare") parser.add_argument("--source_blob_url", type=str, help="source_blob_url") parser.add_argument("--train_storage_connection_string", type=...
34.25
74
0.70073
ddd0bbfe6b919e472857f619cfc0bfb9e95b1649
9,145
py
Python
lib/tests/streamlit/util_test.py
aritropaul/streamlit
b72adbcf00c91775db14e739e2ea33d6df9079c3
[ "Apache-2.0" ]
1
2020-04-17T05:17:40.000Z
2020-04-17T05:17:40.000Z
lib/tests/streamlit/util_test.py
aritropaul/streamlit
b72adbcf00c91775db14e739e2ea33d6df9079c3
[ "Apache-2.0" ]
null
null
null
lib/tests/streamlit/util_test.py
aritropaul/streamlit
b72adbcf00c91775db14e739e2ea33d6df9079c3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit 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 applicabl...
36.726908
84
0.645708
f3b4ea87501f637c5139224c2a4732b7fbd13def
4,068
py
Python
plantcv/plantcv/spatial_clustering.py
ygarrot/plantcv
e934a891e0d1bf8987ca6a9f982a4ac1f420bfe7
[ "MIT" ]
1
2022-03-12T05:46:03.000Z
2022-03-12T05:46:03.000Z
plantcv/plantcv/spatial_clustering.py
YuanYu-Double/plantcv
0e11c7f63d96a52487e01e3b67744aa8697eedb2
[ "MIT" ]
null
null
null
plantcv/plantcv/spatial_clustering.py
YuanYu-Double/plantcv
0e11c7f63d96a52487e01e3b67744aa8697eedb2
[ "MIT" ]
null
null
null
# Segment objects into spatial based clusters within an image import os import numpy as np from sklearn.cluster import DBSCAN from sklearn.cluster import OPTICS from sklearn.preprocessing import StandardScaler from plantcv.plantcv import params from plantcv.plantcv._debug import _debug from plantcv.plantcv import colo...
41.510204
98
0.660521
0ef43a5bc7bf22d3902c1de4c8dc95634f6ee92f
78,968
py
Python
tests/ut/python/dataset/test_minddataset.py
shaolei-wang/mindspore
2d50a43be9d17269f6adb41e51b8f7a540ebc9f1
[ "Apache-2.0" ]
1
2020-06-20T06:22:41.000Z
2020-06-20T06:22:41.000Z
tests/ut/python/dataset/test_minddataset.py
shaolei-wang/mindspore
2d50a43be9d17269f6adb41e51b8f7a540ebc9f1
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_minddataset.py
shaolei-wang/mindspore
2d50a43be9d17269f6adb41e51b8f7a540ebc9f1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.996011
120
0.541548
e1f3d9aa2425f2de2afae323ad2d7839b8066133
698
py
Python
examples/yolo/dodo.py
surround-deakin-team/surround
d0fb6c6935faf779c9c477792da9d3bf0ea6396f
[ "BSD-3-Clause" ]
null
null
null
examples/yolo/dodo.py
surround-deakin-team/surround
d0fb6c6935faf779c9c477792da9d3bf0ea6396f
[ "BSD-3-Clause" ]
null
null
null
examples/yolo/dodo.py
surround-deakin-team/surround
d0fb6c6935faf779c9c477792da9d3bf0ea6396f
[ "BSD-3-Clause" ]
null
null
null
import os from surround import Config CONFIG = Config(os.path.dirname(__file__)) DOIT_CONFIG = {'verbosity':2} IMAGE = "%s/%s:%s" % (CONFIG["company"], CONFIG["image"], CONFIG["version"]) def task_build(): """Build the Docker image for the current project""" return { 'actions': ['docker build --tag=%s...
26.846154
88
0.597421
416132efb35f626df84e9f96df310be1ed6e5a5c
99
py
Python
huskarl/__init__.py
hsahovic/huskarl
c401d27942c8a63d50b3c6a8bbcda18749b994c8
[ "MIT" ]
454
2019-02-18T23:03:15.000Z
2022-02-22T08:52:50.000Z
huskarl/__init__.py
hsahovic/huskarl
c401d27942c8a63d50b3c6a8bbcda18749b994c8
[ "MIT" ]
21
2019-06-01T08:41:54.000Z
2022-02-10T00:08:55.000Z
huskarl/__init__.py
taylormcnally/huskarl
e056722de7a9b814939f490212b7c31e92aa36e2
[ "MIT" ]
56
2019-02-20T02:07:41.000Z
2022-03-01T15:55:28.000Z
from huskarl.core import HkException from huskarl.simulation import Simulation import huskarl.agent
33
41
0.878788
d2166e023770cdcb2b9ee4e911d80b352e51fec4
1,742
py
Python
sdk/setup.py
NickCorbett/aws-orbit-workbench
b598fc012d051d5390c6c0aff12a3cce254d36b5
[ "Apache-2.0" ]
null
null
null
sdk/setup.py
NickCorbett/aws-orbit-workbench
b598fc012d051d5390c6c0aff12a3cce254d36b5
[ "Apache-2.0" ]
null
null
null
sdk/setup.py
NickCorbett/aws-orbit-workbench
b598fc012d051d5390c6c0aff12a3cce254d36b5
[ "Apache-2.0" ]
null
null
null
import setuptools with open("VERSION", "r") as version_file: version = version_file.read().strip() with open("README.md") as fp: long_description = fp.read() setuptools.setup( name="aws-orbit-sdk", version=version, author="AWS Professional Services", author_email="aws-proserve-opensource@ama...
33.5
79
0.610792
8886b97b6dfb955ed9683bf8b98cc64f57b0739f
5,226
bzl
Python
tensorboard/defs/vulcanize.bzl
yuhonghong66/tensorboard
d38548f20bc307d360bdb625826802d1f7b8aa77
[ "Apache-2.0" ]
16
2018-10-13T14:38:34.000Z
2021-11-25T13:54:29.000Z
tensorboard/defs/vulcanize.bzl
yuhonghong66/tensorboard
d38548f20bc307d360bdb625826802d1f7b8aa77
[ "Apache-2.0" ]
3
2018-10-13T13:55:31.000Z
2019-05-02T16:24:16.000Z
tensorboard/defs/vulcanize.bzl
yuhonghong66/tensorboard
d38548f20bc307d360bdb625826802d1f7b8aa77
[ "Apache-2.0" ]
2
2020-11-25T11:33:33.000Z
2021-02-17T15:18:50.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.2
103
0.645427
c65d734961ae2bdedf54c5fb3a449acc373cc04f
1,135
py
Python
chesslib.py
jesper-olsen/PChess
9407045b7d12f6832b52d7b1c092479429108c09
[ "MIT" ]
null
null
null
chesslib.py
jesper-olsen/PChess
9407045b7d12f6832b52d7b1c092479429108c09
[ "MIT" ]
null
null
null
chesslib.py
jesper-olsen/PChess
9407045b7d12f6832b52d7b1c092479429108c09
[ "MIT" ]
null
null
null
openings=""" #Spansk_v1. e2e4 e7e5 g1f3 b8c6 f1b5 a7a6 b5a4 g8f6 e1g1 f8e7 f1e1 b7b5 a4b3 d7d6 c2c3 e8g8 - #Spansk_v2. e2e4 e7e5 g1f3 b8c6 f1b5 a7a6 b5a4 g8f6 e1g1 f6e4 - #Spansk_v3. e2e4 e7e5 g1f3 b8c6 f1b5 a7a6 b5c6 d7c6 - #Philidors_Forsvar_v1. e2e4 e7e5 g1f3 d7d6 d2d4 e5d4 - #Philidors_Forsvar_v2. e2e4 e7e5 g1f3 d7...
12.752809
66
0.644053
aa236f9794aee33d0bf40b5e14471bc9dcad701c
565
py
Python
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storage/v2018_03_28/blob/_constants.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storage/v2018_03_28/blob/_constants.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/storage-preview/azext_storage_preview/vendored_sdks/azure_storage/v2018_03_28/blob/_constants.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- __author_...
37.666667
76
0.562832
8062b6d1d2145e7de00ad9708a67677842122f62
538
py
Python
autoscalingsim/scaling/policiesbuilder/adjustmentplacement/desired_adjustment_calculator/optimizing/optimizer_impl/score_maximizer.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
6
2021-03-10T16:23:10.000Z
2022-01-14T04:57:46.000Z
autoscalingsim/scaling/policiesbuilder/adjustmentplacement/desired_adjustment_calculator/optimizing/optimizer_impl/score_maximizer.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
null
null
null
autoscalingsim/scaling/policiesbuilder/adjustmentplacement/desired_adjustment_calculator/optimizing/optimizer_impl/score_maximizer.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
1
2022-01-14T04:57:55.000Z
2022-01-14T04:57:55.000Z
from autoscalingsim.scaling.policiesbuilder.adjustmentplacement.desired_adjustment_calculator.optimizing.optimizer import Optimizer @Optimizer.register('OptimizerScoreMaximizer') class OptimizerScoreMaximizer(Optimizer): def select_best(self, scored_placements : list): if len(scored_placements) > 0: ...
38.428571
131
0.750929
de367860d57daf253fb9f21aa946274f93895d43
877
py
Python
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_columnstovectorstreamop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_columnstovectorstreamop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/tests/examples/from_docs/test_columnstovectorstreamop.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
import unittest from pyalink.alink import * import numpy as np import pandas as pd class TestColumnsToVectorStreamOp(unittest.TestCase): def test_columnstovectorstreamop(self): df = pd.DataFrame([ ['1', '{"f0":"1.0","f1":"2.0"}', '$3$0:1.0 1:2.0', 'f0:1.0,f1:2.0', '1.0,2.0', 1.0, 2.0], ...
36.541667
141
0.530217
e57fff2dfbf916b07e2eaa94368c9a5688d9e54f
764
py
Python
tovp/contacts/migrations/0010_auto_20150511_1713.py
nrsimha/tovp
311bc957c95c294811d737f5df30b0a218d35610
[ "MIT" ]
null
null
null
tovp/contacts/migrations/0010_auto_20150511_1713.py
nrsimha/tovp
311bc957c95c294811d737f5df30b0a218d35610
[ "MIT" ]
null
null
null
tovp/contacts/migrations/0010_auto_20150511_1713.py
nrsimha/tovp
311bc957c95c294811d737f5df30b0a218d35610
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.core.validators class Migration(migrations.Migration): dependencies = [ ('contacts', '0009_person_location'), ] operations = [ migrations.AlterField( model_...
34.727273
340
0.671466
fcd29c8246bc732990079c38bb8629d854925eb8
155
py
Python
pandas/null_value/drop_null_column.py
ybdesire/machinelearning
0224746332e1085336e0b02e0ca3b11d74bd9a91
[ "MIT" ]
30
2017-02-28T13:52:58.000Z
2022-03-24T10:28:43.000Z
pandas/null_value/drop_null_column.py
ybdesire/machinelearning
0224746332e1085336e0b02e0ca3b11d74bd9a91
[ "MIT" ]
null
null
null
pandas/null_value/drop_null_column.py
ybdesire/machinelearning
0224746332e1085336e0b02e0ca3b11d74bd9a91
[ "MIT" ]
17
2017-03-03T12:38:04.000Z
2022-03-11T01:53:20.000Z
import pandas as pd df = pd.read_csv("test.csv") print(df) # drop the column if it contains one missing_value df2 = df.dropna(axis=1) print(df2)
17.222222
51
0.690323
f528679369dfe254fb66f0c835647ed32447de2d
984
py
Python
tests/data/basestore/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
null
null
null
tests/data/basestore/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
2
2019-07-25T15:39:04.000Z
2019-10-21T15:31:46.000Z
tests/data/basestore/__init__.py
SD2E/python-datacatalog
51ab366639505fb6e8a14cd6b446de37080cd20d
[ "CNRI-Python" ]
1
2019-10-15T14:33:44.000Z
2019-10-15T14:33:44.000Z
CREATES = [('YV8R5Z', {'id': 'YV8R5Zxj9Pe7Ud74zNHL8k3YHDGgDSVpMMK9utj5BMqFpuX8kAe7M5kW93trT6cB'}, '1001a831-ce4e-56c7-954b-43d740ea56f4'), ('ZwfQge7', {'id': 'ZwfQge7KcmwuEqV8v58p2nmESZKHdv6aB7SYL4F4ABUQWt9QfaaRfxjGc43pR4n4'}, '1001a032-691f-5158-bf4e-3e95eddcdd67') ] REPLACES = [('YV8R5Z', {'id': 'YV8R5Zxj9Pe7Ud74zNH...
89.454545
356
0.777439
e2dd8736c813ea0de9414c7d277a4f7f764780ac
14,903
py
Python
ailment/expression.py
Pamplemousse/ailment
41283cfc056f74047cb19f6bf964d14ee1a63437
[ "BSD-2-Clause" ]
null
null
null
ailment/expression.py
Pamplemousse/ailment
41283cfc056f74047cb19f6bf964d14ee1a63437
[ "BSD-2-Clause" ]
null
null
null
ailment/expression.py
Pamplemousse/ailment
41283cfc056f74047cb19f6bf964d14ee1a63437
[ "BSD-2-Clause" ]
null
null
null
from .tagged_object import TaggedObject class Expression(TaggedObject): """ The base class of all AIL expressions. """ __slots__ = ('idx', ) def __init__(self, idx, **kwargs): super(Expression, self).__init__(**kwargs) self.idx = idx def __repr__(self): raise NotImp...
28.278937
119
0.57834
14af62ab5ebccb67d44dfb18530af3a7eb29c625
23,829
py
Python
pysystests/app/systest_manager.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
14
2015-02-06T02:47:57.000Z
2020-03-14T15:06:05.000Z
pysystests/app/systest_manager.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
3
2019-02-27T19:29:11.000Z
2021-06-02T02:14:27.000Z
pysystests/app/systest_manager.py
sumedhpb/testrunner
9ff887231c75571624abc31a3fb5248110e01203
[ "Apache-2.0" ]
108
2015-03-26T08:58:49.000Z
2022-03-21T05:21:39.000Z
from app.celery import celery import json import time import copy import datetime from celery.task.control import inspect import testcfg as cfg from cache import ObjCacher, CacheHelper from rabbit_helper import PersistedMQ, RabbitHelper, rawTaskPublisher from app.workload_manager import Workload, sysTestRunner, getClu...
32.201351
219
0.577616
9ce75de17758f08899872d9161938eba26449fbc
867
py
Python
objectpath/core/__init__.py
truebit/ObjectPath
4f13d3fba79d46cfdac5974a6eed71712a4a7ac5
[ "MIT" ]
null
null
null
objectpath/core/__init__.py
truebit/ObjectPath
4f13d3fba79d46cfdac5974a6eed71712a4a7ac5
[ "MIT" ]
null
null
null
objectpath/core/__init__.py
truebit/ObjectPath
4f13d3fba79d46cfdac5974a6eed71712a4a7ac5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of ObjectPath released under MIT license. # Copyright (C) 2010-2014 Adrian Kalbarczyk from types import GeneratorType as generator from itertools import chain from sys import version_info SELECTOR_OPS = [ "is", ">", "<", "is not", ">=", "<=", "in", ...
18.446809
89
0.656286
8afe6dcac2c28f92dfd0f6dfd8060e199cf74085
91
py
Python
sissy_university/__init__.py
ruffiana/SissyUniversity
06df8f07844742429831ab004ff5fc0489c1a7f9
[ "BSD-2-Clause" ]
6
2020-11-06T03:45:25.000Z
2021-10-13T07:34:21.000Z
sissy_university/__init__.py
ruffiana/SissyUniversity
06df8f07844742429831ab004ff5fc0489c1a7f9
[ "BSD-2-Clause" ]
null
null
null
sissy_university/__init__.py
ruffiana/SissyUniversity
06df8f07844742429831ab004ff5fc0489c1a7f9
[ "BSD-2-Clause" ]
null
null
null
try: from . import cogs, discord_bot except ImportError: import cogs, discord_bot
18.2
35
0.725275
26bc960028a5f3ecb54e4fa7c87b9cc2a07047a6
152
py
Python
scrapers/SEL-selby/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
4
2018-10-17T13:30:08.000Z
2021-06-22T13:29:43.000Z
scrapers/SEL-selby/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
46
2018-10-15T13:47:48.000Z
2022-03-23T10:26:18.000Z
scrapers/SEL-selby/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
1
2018-10-15T13:36:03.000Z
2018-10-15T13:36:03.000Z
from lgsf.councillors.scrapers import ModGovCouncillorScraper class Scraper(ModGovCouncillorScraper): base_url = "https://democracy.selby.gov.uk"
25.333333
61
0.809211
2fc20b490765a2d798c16e7c7de6cf150e16ef35
694
py
Python
events/ready.py
plun1331/utilitybot
b4ef710144afaa9d9ba6c18bb42c02abb0d23bce
[ "MIT" ]
null
null
null
events/ready.py
plun1331/utilitybot
b4ef710144afaa9d9ba6c18bb42c02abb0d23bce
[ "MIT" ]
null
null
null
events/ready.py
plun1331/utilitybot
b4ef710144afaa9d9ba6c18bb42c02abb0d23bce
[ "MIT" ]
null
null
null
import discord from discord.ext import commands class Ready(commands.Cog): def __init__(self, bot): # missing the bot param self.bot = bot @commands.Cog.listener() async def on_ready(self): # on_ready doesn't take guild or channel args try: self.bot.load_extension("events.rea...
27.76
76
0.634006
ee8e2b3f79ea41583e80f05790f648d3e2296591
10,292
py
Python
pychemia/evaluator/vasp_evaluator.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
1
2021-03-26T12:34:45.000Z
2021-03-26T12:34:45.000Z
pychemia/evaluator/vasp_evaluator.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
null
null
null
pychemia/evaluator/vasp_evaluator.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
null
null
null
import os import shutil import json import logging from pychemia.code.vasp import VaspJob, VaspOutput, InputVariables from pychemia.crystal import KPoints from pychemia.code.vasp import read_poscar from pychemia.utils.mathematics import round_small __author__ = 'Guillermo Avendano-Franco' class RelaxPopulation: ...
40.679842
120
0.553245
eea7215c5359b4df89470d9479699ab1fc079ed4
918
py
Python
octokit_routes/__init__.py
Inveracity/octokitpy-routes
ffecfe151b1b084cbfc8799b876e1c521b27de41
[ "MIT" ]
null
null
null
octokit_routes/__init__.py
Inveracity/octokitpy-routes
ffecfe151b1b084cbfc8799b876e1c521b27de41
[ "MIT" ]
null
null
null
octokit_routes/__init__.py
Inveracity/octokitpy-routes
ffecfe151b1b084cbfc8799b876e1c521b27de41
[ "MIT" ]
null
null
null
import json import os __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) def _load_json(path): with open(path, "r") as f: return json.load(f) def _load_webhook_names(): webhooks = _load_json(os.path.join(__location__, "webhooks", "index.json")) webhook_names =...
27
117
0.671024
0b1d627c13c43b93b9ec8f32c8b55eb2db55bebe
351
py
Python
cmaj/lexical/strings.py
marianwieczorek/cmaj
ddeab560bce4b8a8caf813cd1597cba91b1d8342
[ "MIT" ]
null
null
null
cmaj/lexical/strings.py
marianwieczorek/cmaj
ddeab560bce4b8a8caf813cd1597cba91b1d8342
[ "MIT" ]
null
null
null
cmaj/lexical/strings.py
marianwieczorek/cmaj
ddeab560bce4b8a8caf813cd1597cba91b1d8342
[ "MIT" ]
null
null
null
from typing import List def expand(begin: str, end: str, exclude: str = None) -> List[str]: assert len(begin) == 1 assert len(end) == 1 assert exclude is None or len(exclude) == 1 if begin > end: return expand(end, begin, exclude=exclude) return [chr(ch) for ch in range(ord(begin), ord(en...
29.25
84
0.626781
f8930e12d1daffe2469dee2a9594f850a1abd100
94,687
py
Python
tests/python/gpu/test_operator_gpu.py
GnaneshKunal/incubator-mxnet
219711bf0abe04c6059d53d7e47ceedee6828c1e
[ "Apache-2.0" ]
null
null
null
tests/python/gpu/test_operator_gpu.py
GnaneshKunal/incubator-mxnet
219711bf0abe04c6059d53d7e47ceedee6828c1e
[ "Apache-2.0" ]
null
null
null
tests/python/gpu/test_operator_gpu.py
GnaneshKunal/incubator-mxnet
219711bf0abe04c6059d53d7e47ceedee6828c1e
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
49.444909
151
0.58498
976bc9cc6bcb397db0a6db7aab1ceb612ced593a
2,013
py
Python
src/app/store/cache/redis.py
meyer-net/robot
e35cf6d5a4293eaf7330a733f3e6f35f4789623c
[ "MIT" ]
12
2018-07-31T02:47:42.000Z
2019-04-29T05:40:46.000Z
src/app/store/cache/redis.py
meyer-net/pyflink-framework.osteam.base
e35cf6d5a4293eaf7330a733f3e6f35f4789623c
[ "MIT" ]
null
null
null
src/app/store/cache/redis.py
meyer-net/pyflink-framework.osteam.base
e35cf6d5a4293eaf7330a733f3e6f35f4789623c
[ "MIT" ]
1
2020-04-22T08:53:46.000Z
2020-04-22T08:53:46.000Z
# -- coding: UTF-8 # https://pypi.python.org/pypi/redis # https://www.cnblogs.com/wang-yc/p/5693288.html import json from drivers import RedisDriver from store.cache import StoreCacheBase # netstat -an | grep 6379 |wc -l class Redis(StoreCacheBase): def __init__(self, host, port): '''初始化构造函数''' ...
27.575342
68
0.58768
a21a48918d1eaab6c54cfb3d618df49437edd3bd
2,991
py
Python
test/functional/mempool_resurrect.py
admecoin/ethcpp
d101f288b887926dc2272391fecf7c980eb8a18e
[ "MIT" ]
1
2020-03-07T19:49:44.000Z
2020-03-07T19:49:44.000Z
test/functional/mempool_resurrect.py
admecoin/ethcpp
d101f288b887926dc2272391fecf7c980eb8a18e
[ "MIT" ]
null
null
null
test/functional/mempool_resurrect.py
admecoin/ethcpp
d101f288b887926dc2272391fecf7c980eb8a18e
[ "MIT" ]
1
2020-01-27T10:27:12.000Z
2020-01-27T10:27:12.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test resurrection of mined transactions when the blockchain is re-organized.""" from test_framework.bl...
41.541667
143
0.679706
dcab3d41caf8535c00911472089b1589f9836522
4,358
py
Python
jobs/transforms/auth_validation_test.py
aasiffaizal/oppia
1a8634a435bec10f407e9f3c95f62bd467c5b5f7
[ "Apache-2.0" ]
1
2021-08-30T06:53:15.000Z
2021-08-30T06:53:15.000Z
jobs/transforms/auth_validation_test.py
arpit1912/oppia
00303a0830e775f8491ec57ac625ed44eafd73a4
[ "Apache-2.0" ]
11
2021-03-03T07:21:27.000Z
2022-03-12T01:03:44.000Z
jobs/transforms/auth_validation_test.py
arpit1912/oppia
00303a0830e775f8491ec57ac625ed44eafd73a4
[ "Apache-2.0" ]
1
2020-12-09T21:33:49.000Z
2020-12-09T21:33:49.000Z
# coding: utf-8 # # Copyright 2021 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
35.721311
80
0.701239
0ac74dfe783c3bc318befbd8ad5da753cceac9eb
2,589
py
Python
syft/frameworks/torch/nn/pool.py
duggalsu/PySyft
d811ef1e91e5e2c84fbbf1edf61e6983380b4d16
[ "Apache-2.0" ]
null
null
null
syft/frameworks/torch/nn/pool.py
duggalsu/PySyft
d811ef1e91e5e2c84fbbf1edf61e6983380b4d16
[ "Apache-2.0" ]
null
null
null
syft/frameworks/torch/nn/pool.py
duggalsu/PySyft
d811ef1e91e5e2c84fbbf1edf61e6983380b4d16
[ "Apache-2.0" ]
null
null
null
import torch as th from torch.nn import Module class AvgPool2d(Module): """ This class is the beginning of an exact python port of the torch.nn.AvgPool2d module. Because PySyft cannot hook into layers which are implemented in C++, our special functionalities (such as encrypted computation) do not work...
33.192308
94
0.630745
33d9105377ab5681cb7fadff6c6d20d7c581e23d
12,269
py
Python
rdflib_jsonld/serializer.py
piyush69/rdflib-jsonld
ad259476310dfbf73f0c1114995ab7cdea348602
[ "BSD-3-Clause" ]
null
null
null
rdflib_jsonld/serializer.py
piyush69/rdflib-jsonld
ad259476310dfbf73f0c1114995ab7cdea348602
[ "BSD-3-Clause" ]
null
null
null
rdflib_jsonld/serializer.py
piyush69/rdflib-jsonld
ad259476310dfbf73f0c1114995ab7cdea348602
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This serialiser will output an RDF Graph as a JSON-LD formatted document. See: http://json-ld.org/ Example usage:: >>> from rdflib.plugin import register, Serializer >>> register('json-ld', Serializer, 'rdflib_jsonld.serializer', 'JsonLDSerializer') >>> from rdflib import...
34.080556
97
0.543891
5328a164a73eb58b0ca13e25b09a025b26924cf3
741
py
Python
alipay/aop/api/response/MybankCreditProdarrangementContracttextQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/MybankCreditProdarrangementContracttextQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/MybankCreditProdarrangementContracttextQueryResponse.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.response.AlipayResponse import AlipayResponse class MybankCreditProdarrangementContracttextQueryResponse(AlipayResponse): def __init__(self): super(MybankCreditProdarrangementContracttextQueryResponse, self).__in...
28.5
125
0.721997
facd89b8cf1a117a0b864bae6c0fe0b419508f23
4,690
py
Python
load.py
mboudet/braskoload
8f39f2d68638a683e0d8e5065b33a218afe370cb
[ "MIT" ]
null
null
null
load.py
mboudet/braskoload
8f39f2d68638a683e0d8e5065b33a218afe370cb
[ "MIT" ]
null
null
null
load.py
mboudet/braskoload
8f39f2d68638a683e0d8e5065b33a218afe370cb
[ "MIT" ]
null
null
null
import os import glob import askoclics import gopublic import configparser from braskolib.datafile import Datafile def main(): config = configparser.ConfigParser() config.read("braskoload.conf") gopublish_data = { "client": gopublic.GopublishInstance(url=config['gopublish']['url'], proxy_user...
38.130081
228
0.607036
993960afe29385feaace382edab2d3385d6ccbcf
20
py
Python
PyTangoArchiving/widget/snaps/__init__.py
aflp91/PyTangoArchiving
69e687e36251743278d2f53dc5ad1bbe08bdabe1
[ "CC-BY-3.0" ]
1
2019-09-20T08:11:04.000Z
2019-09-20T08:11:04.000Z
PyTangoArchiving/widget/snaps/__init__.py
aflp91/PyTangoArchiving
69e687e36251743278d2f53dc5ad1bbe08bdabe1
[ "CC-BY-3.0" ]
null
null
null
PyTangoArchiving/widget/snaps/__init__.py
aflp91/PyTangoArchiving
69e687e36251743278d2f53dc5ad1bbe08bdabe1
[ "CC-BY-3.0" ]
null
null
null
from snaps import *
10
19
0.75
fe78f311b6a413aae51d352e8dddb5f080f68bb1
14,195
py
Python
hw/ip/lc_ctrl/util/gen-lc-state-enc.py
CrevinnTeoranta/opentitan
1e4989944a3d9657aca16a5a968dc2b7f32d0be4
[ "Apache-2.0" ]
1
2021-01-12T10:32:17.000Z
2021-01-12T10:32:17.000Z
hw/ip/lc_ctrl/util/gen-lc-state-enc.py
LIKEJMJJ/opentitan
201be0e0bda391cb0a92fbf62ecfbcf6706949db
[ "Apache-2.0" ]
null
null
null
hw/ip/lc_ctrl/util/gen-lc-state-enc.py
LIKEJMJJ/opentitan
201be0e0bda391cb0a92fbf62ecfbcf6706949db
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r"""Given an ECC encoding matrix, this script generates random life cycle state encodings that can be incrementally written to a memory protected with...
35.399002
82
0.591899
b7b30827b107df47c9738aa1f2380773dc413f66
4,451
py
Python
test/functional/rpc_users.py
tokyocoin-project/tokyocoin
48cbabf73f0687cc04b6658cf69aba65aa1b997d
[ "MIT" ]
null
null
null
test/functional/rpc_users.py
tokyocoin-project/tokyocoin
48cbabf73f0687cc04b6658cf69aba65aa1b997d
[ "MIT" ]
null
null
null
test/functional/rpc_users.py
tokyocoin-project/tokyocoin
48cbabf73f0687cc04b6658cf69aba65aa1b997d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Tokyocoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiple RPC users.""" from test_framework.test_framework import TokyocoinTestFramework from te...
39.741071
133
0.682319
6bea121611ae82e7c72cdb613ecc6ac5cb2b564d
783
py
Python
Python/design-compressed-string-iterator.py
paperfactory/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
1
2021-09-07T16:36:07.000Z
2021-09-07T16:36:07.000Z
Python/design-compressed-string-iterator.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
null
null
null
Python/design-compressed-string-iterator.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
1
2021-03-22T18:58:23.000Z
2021-03-22T18:58:23.000Z
# Time: O(1) # Space: O(1) import re class StringIterator(object): def __init__(self, compressedString): """ :type compressedString: str """ self.__result = re.findall(r"([a-zA-Z])(\d+)", compressedString) self.__index, self.__num, self.__ch = 0, 0, ' ' def next(self...
23.029412
72
0.507024
55f1cb79e845f26139b5ec893de17a69a1cceda7
6,505
py
Python
chj/index/CallgraphDictionary.py
aemcgraw/CodeHawk-Java
8e43877d0357579f6509d3fc52c69c2d4568d288
[ "MIT" ]
null
null
null
chj/index/CallgraphDictionary.py
aemcgraw/CodeHawk-Java
8e43877d0357579f6509d3fc52c69c2d4568d288
[ "MIT" ]
null
null
null
chj/index/CallgraphDictionary.py
aemcgraw/CodeHawk-Java
8e43877d0357579f6509d3fc52c69c2d4568d288
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Java Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # # Permission is hereby granted, fr...
33.358974
106
0.643812
33a7e4c55a22ce8a70f70c3770bb73df38604cf2
7,761
py
Python
ocs_ci/utility/rosa.py
shivamdurgbuns/ocs-ci
0fa3a19cab39dcc76843338e4af357c197c08843
[ "MIT" ]
null
null
null
ocs_ci/utility/rosa.py
shivamdurgbuns/ocs-ci
0fa3a19cab39dcc76843338e4af357c197c08843
[ "MIT" ]
null
null
null
ocs_ci/utility/rosa.py
shivamdurgbuns/ocs-ci
0fa3a19cab39dcc76843338e4af357c197c08843
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- """ Module for interactions with Openshift Dedciated Cluster. """ import json import logging import os import re from ocs_ci.framework import config from ocs_ci.ocs.exceptions import ( ManagedServiceAddonDeploymentError, UnsupportedPlatformVersionError, ) from ocs_ci.utility import ope...
29.397727
88
0.654168
45dc58b5665d5c73caef3bb176a760b9098f2fdf
2,605
py
Python
roomlistwatcher/infrastructure/producing/senders.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
roomlistwatcher/infrastructure/producing/senders.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
roomlistwatcher/infrastructure/producing/senders.py
dnguyen0304/room-list-watcher
7ac4d5172de22dd8906662da521995c8e06c2617
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import collections import uuid from . import topics from .compat import HttpStatus from roomlistwatcher.common import messaging from roomlistwatcher.common.messaging import producing class ConcurrentLinkedQueue(producing.senders.Sender): def __init__(self, queue): """ S...
26.85567
75
0.59309
cd00e1b4a1c02e90f859c47b0fb379d3b07ba35d
23,160
py
Python
test/test_sparql_helper.py
gabrielmacedoanac/kgextension
0551ca278bc3de5c39baf663467be3220ad20edd
[ "MIT" ]
67
2021-01-17T20:12:44.000Z
2022-03-07T06:57:01.000Z
test/test_sparql_helper.py
gabrielmacedoanac/kgextension
0551ca278bc3de5c39baf663467be3220ad20edd
[ "MIT" ]
null
null
null
test/test_sparql_helper.py
gabrielmacedoanac/kgextension
0551ca278bc3de5c39baf663467be3220ad20edd
[ "MIT" ]
3
2021-04-17T09:19:31.000Z
2021-10-03T21:29:56.000Z
from kgextension import __agent__ from SPARQLWrapper import __version__ from kgextension.sparql_helper import regex_string_generator, RemoteEndpoint, LocalEndpoint, endpoint_wrapper from kgextension.endpoints import DBpedia, WikiData, EUOpenData import pytest import pandas as pd import io import sys import pyparsing im...
48.964059
523
0.660147
c0de45e6400e2296d6d7c29738d1b6ca74582458
3,383
py
Python
tests/unittests/test_window_async.py
scslmd/ahk
0bf9fb7f57ac5710c20d4909af12b42eb5f9276a
[ "MIT" ]
502
2018-11-27T09:41:48.000Z
2022-03-31T14:29:26.000Z
tests/unittests/test_window_async.py
scslmd/ahk
0bf9fb7f57ac5710c20d4909af12b42eb5f9276a
[ "MIT" ]
127
2018-12-12T08:48:47.000Z
2022-03-22T16:19:16.000Z
tests/unittests/test_window_async.py
scslmd/ahk
0bf9fb7f57ac5710c20d4909af12b42eb5f9276a
[ "MIT" ]
59
2019-02-10T11:06:00.000Z
2022-01-30T17:13:52.000Z
import subprocess import time from unittest import IsolatedAsyncioTestCase import asyncio import os import sys project_root = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../..')) sys.path.insert(0, project_root) from ahk import AHK, AsyncAHK from ahk.window import AsyncWindow class Test...
30.754545
97
0.665681
8b32f02b8e68953e5720129b150d8c36ffe81b13
655
py
Python
com.ppc.Bot/devices/gateway/gateway_peoplepower_iotgateway.py
slrobertson1/botlab
fef6005c57010a30ed8d1d599d15644dd7c870d8
[ "Apache-2.0" ]
null
null
null
com.ppc.Bot/devices/gateway/gateway_peoplepower_iotgateway.py
slrobertson1/botlab
fef6005c57010a30ed8d1d599d15644dd7c870d8
[ "Apache-2.0" ]
null
null
null
com.ppc.Bot/devices/gateway/gateway_peoplepower_iotgateway.py
slrobertson1/botlab
fef6005c57010a30ed8d1d599d15644dd7c870d8
[ "Apache-2.0" ]
null
null
null
''' Created on June 28, 2016 This file is subject to the terms and conditions defined in the file 'LICENSE.txt', which is part of this source code package. @author: David Moss ''' from devices.gateway.gateway import GatewayDevice class PeoplePowerIotGatewayDevice(GatewayDevice): """Low Cost Gateway""" ...
25.192308
96
0.662595
0d6f411764d60441b9caadaa20da95d2923e98d8
13,389
py
Python
tensor2tensor/utils/adafactor.py
SamuelmsWong/tensor2tensor
7172ad8dc5f1d8f8c0e21cbb831ae2657387a2af
[ "Apache-2.0" ]
3
2021-01-19T20:21:15.000Z
2021-01-19T21:36:37.000Z
tensor2tensor/utils/adafactor.py
SamuelmsWong/tensor2tensor
7172ad8dc5f1d8f8c0e21cbb831ae2657387a2af
[ "Apache-2.0" ]
null
null
null
tensor2tensor/utils/adafactor.py
SamuelmsWong/tensor2tensor
7172ad8dc5f1d8f8c0e21cbb831ae2657387a2af
[ "Apache-2.0" ]
1
2021-05-03T17:34:21.000Z
2021-05-03T17:34:21.000Z
# coding=utf-8 # Copyright 2020 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
37.399441
80
0.709314
0453999ba1e739e5c3f98775c0ffd31270ce2f81
623
py
Python
python/infyTQ Final Round/stringValidorNot.py
goelpriyanshu99/DSA
7e21036048d8680b706afd427107045d710dcad7
[ "MIT" ]
null
null
null
python/infyTQ Final Round/stringValidorNot.py
goelpriyanshu99/DSA
7e21036048d8680b706afd427107045d710dcad7
[ "MIT" ]
null
null
null
python/infyTQ Final Round/stringValidorNot.py
goelpriyanshu99/DSA
7e21036048d8680b706afd427107045d710dcad7
[ "MIT" ]
null
null
null
s = input() vowel = ['a','e','i','o','u','A','E','I','O','U'] t = True if s[0] in vowel: for i in range(0,len(s)-1,2): if not(s[i] in vowel and s[i+1] not in vowel): t = False break else: if len(s)%2 == 1 and s[i+2] not in vowel: t = False else: for i in r...
22.25
54
0.479936
169249a96b646aa36d37eef1780571338a209d01
395
py
Python
polyevent/polyevent/wsgi.py
agepoly/polyevent
b554f2af5aed567ef3c1737b590223ea736ed9e9
[ "MIT" ]
null
null
null
polyevent/polyevent/wsgi.py
agepoly/polyevent
b554f2af5aed567ef3c1737b590223ea736ed9e9
[ "MIT" ]
1
2020-10-22T13:49:18.000Z
2020-10-23T07:25:03.000Z
polyevent/polyevent/wsgi.py
agepoly/polyevent
b554f2af5aed567ef3c1737b590223ea736ed9e9
[ "MIT" ]
null
null
null
""" WSGI config for polyevent project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
23.235294
78
0.787342
420afc221d0a566a7bb50fe4b4d71ffe36b06c9f
608
py
Python
ratsimulator.py
balbinot/rattracker
1d9184e7a967a6f4bd67128061a0bf6e1a0f133b
[ "MIT" ]
null
null
null
ratsimulator.py
balbinot/rattracker
1d9184e7a967a6f4bd67128061a0bf6e1a0f133b
[ "MIT" ]
null
null
null
ratsimulator.py
balbinot/rattracker
1d9184e7a967a6f4bd67128061a0bf6e1a0f133b
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- import numpy as np import time import os ## Serial port simulation ## from Rat import Rat ports = {'P1': 'COM11', 'P2': 'COM22'} # Register rats; ids should match whatever ID comes out of the RFID reader rat1 = Rat('Steve', '001') rat2 = Rat('Julia', '002') rat3...
21.714286
74
0.616776
cbf82cd2188d7f5db86dac0d6bf50f2818a72c07
209
py
Python
Data Analysis/csv label_zimu_tihuan_shuzi.py
byew/python-do-differernt-csv
094b154834ee48210c2ee4a6a529d8fe76055fb7
[ "MIT" ]
null
null
null
Data Analysis/csv label_zimu_tihuan_shuzi.py
byew/python-do-differernt-csv
094b154834ee48210c2ee4a6a529d8fe76055fb7
[ "MIT" ]
null
null
null
Data Analysis/csv label_zimu_tihuan_shuzi.py
byew/python-do-differernt-csv
094b154834ee48210c2ee4a6a529d8fe76055fb7
[ "MIT" ]
null
null
null
import pandas as pd exa = pd.read_csv('en_dup.csv') exa.loc[exa['label'] =='F', 'label']= 0 exa.loc[exa['label'] =='T', 'label']= 1 exa.loc[exa['label'] =='U', 'label']= 2 exa.to_csv('train.csv', index=0)
19
39
0.593301
19fdcfe5ba407e450bda4cc58920b0fadcd7e08f
4,864
py
Python
src/worker/task.py
mehsoy/jaws
b79723c1fc549741494ebf5d948e94a44e971f2a
[ "MIT" ]
1
2019-06-17T17:01:17.000Z
2019-06-17T17:01:17.000Z
src/worker/task.py
mehsoy/jaws
b79723c1fc549741494ebf5d948e94a44e971f2a
[ "MIT" ]
7
2021-02-08T20:46:15.000Z
2021-09-08T02:12:59.000Z
src/worker/task.py
mehsoy/jaws
b79723c1fc549741494ebf5d948e94a44e971f2a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from threading import Lock from exceptions.synchronization_exception import SynchronizationException from worker.task_status import TaskStatus # TODO this class is both data structure and an object, also violating SRP. Myb make # TaskConstructor class? class Task: """A ...
31.380645
98
0.64741
a48b31703947879f48125fe01be25e60b0081112
1,709
py
Python
app/requests.py
kingsam91/Habari-zote
ab6e41bc37cfa86d319c1fd26e868c32e3712a26
[ "Unlicense" ]
null
null
null
app/requests.py
kingsam91/Habari-zote
ab6e41bc37cfa86d319c1fd26e868c32e3712a26
[ "Unlicense" ]
null
null
null
app/requests.py
kingsam91/Habari-zote
ab6e41bc37cfa86d319c1fd26e868c32e3712a26
[ "Unlicense" ]
null
null
null
from app import create_app from newsapi import NewsApiClient from config import config_options newsapi = NewsApiClient(api_key='96573ce4e2984891a9f56fd982912bc8') def get_news(): ''' Function that gets the json responce to our url request ''' topheadlines = newsapi.get_top_headlines( sources='...
21.910256
67
0.63663
16e4b9b7742f0404f333377fcb27d80a8b94d384
23,956
py
Python
test/functional/test_runner.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
test/functional/test_runner.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
test/functional/test_runner.py
bitcoinexodus/bitcoinexodus-source
742661b3dc9abce61c05fa1561b7fd9496629866
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
38.763754
195
0.634037
651c45d9c411581fa91d1f9cfeddeb7494e616f5
4,840
py
Python
code/models.py
DataNetworkAnalysis/WhiteBox-Part2
d66c9f646f150caa30aaba89be266f1c2a37d803
[ "MIT" ]
1
2019-12-11T16:44:19.000Z
2019-12-11T16:44:19.000Z
code/models.py
DataNetworkAnalysis/WhiteBox-Part2
d66c9f646f150caa30aaba89be266f1c2a37d803
[ "MIT" ]
null
null
null
code/models.py
DataNetworkAnalysis/WhiteBox-Part2
d66c9f646f150caa30aaba89be266f1c2a37d803
[ "MIT" ]
null
null
null
from sklearn.linear_model import LogisticRegression, LinearRegression from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from xgboost import XGBClassifier, XGBRegressor import tensorflow as tf import pickle import os import...
41.016949
133
0.573347
77c7fc1c626dcd736b99d816ab831e11965976aa
11,505
py
Python
stdplugins/notification.py
jsjjsI88/PornHub
2e91c070f7c56379eb5634269ec6587a66ee29d7
[ "Apache-2.0" ]
null
null
null
stdplugins/notification.py
jsjjsI88/PornHub
2e91c070f7c56379eb5634269ec6587a66ee29d7
[ "Apache-2.0" ]
null
null
null
stdplugins/notification.py
jsjjsI88/PornHub
2e91c070f7c56379eb5634269ec6587a66ee29d7
[ "Apache-2.0" ]
null
null
null
"""Notification Manager for @UniBorg .nccreatadch .nolog .dellog .approvepm .blockpm .listapprovedpms""" import asyncio import io import sql_helpers.no_log_pms_sql as no_log_pms_sql import sql_helpers.pmpermit_sql as pmpermit_sql from telethon import events, errors, functions, types from uniborg.util import admin_cmd ...
36.875
441
0.595133
fd2b4a771549825e5af498e4d31b0e8f31522f8f
900
py
Python
csgomenumaker/misc/loggable.py
citrusCS/csgo-menu-maker
60e055b4b6f61c7081fc231da47be51eb6e1d47f
[ "MIT" ]
152
2019-03-11T23:05:34.000Z
2022-03-11T08:09:21.000Z
csgomenumaker/misc/loggable.py
citrusCS/csgo-menu-maker
60e055b4b6f61c7081fc231da47be51eb6e1d47f
[ "MIT" ]
6
2019-03-12T11:22:09.000Z
2020-06-23T05:53:45.000Z
csgomenumaker/misc/loggable.py
citrusCS/csgo-menu-maker
60e055b4b6f61c7081fc231da47be51eb6e1d47f
[ "MIT" ]
15
2019-03-12T06:52:29.000Z
2021-08-30T18:26:34.000Z
import sys class Loggable: """ Convenience class to make an object automatically log errors. It only has to implement get_error_name() (and only if the developer wants), which returns a string. """ def err_name(self): """ Wrapper around get_error_name() which only calls it whe...
25.714286
77
0.552222
99373a863e40f623762c7ccbdae74644d7e43721
8,461
py
Python
tests/importer/test_importer.py
lafrenierejm/hy
abd5ef6a8a3c42c0f097e5ae424296b177d1221f
[ "MIT" ]
null
null
null
tests/importer/test_importer.py
lafrenierejm/hy
abd5ef6a8a3c42c0f097e5ae424296b177d1221f
[ "MIT" ]
null
null
null
tests/importer/test_importer.py
lafrenierejm/hy
abd5ef6a8a3c42c0f097e5ae424296b177d1221f
[ "MIT" ]
null
null
null
import ast import importlib import runpy import sys from fractions import Fraction from importlib import reload from pathlib import Path import pytest import hy from hy.compiler import hy_compile, hy_eval from hy.errors import HyLanguageError, hy_exc_handler from hy.importer import HyLoader from hy.lex import hy_pars...
30.435252
88
0.659851
3d4b8a2b8fc78f77deca4df9a3659185c2e50730
1,883
py
Python
examples/dfp/v201708/forecast_service/get_delivery_forecast_for_line_items.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
1
2018-06-25T18:44:30.000Z
2018-06-25T18:44:30.000Z
examples/dfp/v201708/forecast_service/get_delivery_forecast_for_line_items.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201708/forecast_service/get_delivery_forecast_for_line_items.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
35.528302
79
0.743494