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
f4c949afbac76453ec7a1b9de627d44ee8983497
455
py
Python
netests/workers/extreme_vsp_nc.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
14
2020-06-08T07:34:59.000Z
2022-03-14T08:52:03.000Z
netests/workers/extreme_vsp_nc.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
null
null
null
netests/workers/extreme_vsp_nc.py
Netests/netests
1a48bda461761c4ec854d6fa0c38629049009a4a
[ "MIT" ]
3
2020-06-19T03:57:05.000Z
2020-06-22T22:46:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from netests.workers.device_nc import DeviceNC from netests.exceptions.netests_exceptions import NetestsFunctionNotPossible class ExtremeVSPNC(DeviceNC): def __init__( self, task, commands, vrf_loop, converter, key_st...
20.681818
76
0.621978
36a5c339a2ab22debec595af17a520a803f2a783
10,180
py
Python
venv/lib/python3.8/site-packages/pip/_internal/operations/freeze.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
91
2019-01-28T13:32:14.000Z
2021-12-08T03:23:56.000Z
venv/lib/python3.8/site-packages/pip/_internal/operations/freeze.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
64
2021-06-03T13:24:12.000Z
2022-03-31T19:11:41.000Z
venv/lib/python3.8/site-packages/pip/_internal/operations/freeze.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
130
2019-10-02T14:40:20.000Z
2022-01-26T17:38:26.000Z
# The following comment should be removed at some point in the future. # mypy: strict-optional=False # mypy: disallow-untyped-defs=False from __future__ import absolute_import import collections import logging import os import re from pip._vendor import six from pip._vendor.packaging.utils import canonicalize_name f...
38.270677
79
0.533006
86f4586f90300cb74d7ca83d519f05989ba51670
4,029
py
Python
hfive2mat.py
motmot/strokelitude
c87c0bf11f29d942c6c3f4387ad5eeb7a0bd7f58
[ "BSD-3-Clause" ]
1
2015-02-17T13:52:01.000Z
2015-02-17T13:52:01.000Z
hfive2mat.py
motmot/strokelitude
c87c0bf11f29d942c6c3f4387ad5eeb7a0bd7f58
[ "BSD-3-Clause" ]
null
null
null
hfive2mat.py
motmot/strokelitude
c87c0bf11f29d942c6c3f4387ad5eeb7a0bd7f58
[ "BSD-3-Clause" ]
null
null
null
import pkg_resources import pylab import numpy as np import sys import tables import motmot.fview_ext_trig.easy_decode as easy_decode from optparse import OptionParser import matplotlib.ticker as mticker import scipy.io parser = OptionParser() parser.add_option("-p", "--plotmat", action="store_const", const=True, ...
31.97619
123
0.688757
b3a1f4bdba9ca85f6398f117347425dccef8961c
11,484
py
Python
rmgpy/thermo/convertTest.py
mbprend/RMG-Py
29e111d683f2daa0b376417be60e76b32ce8a993
[ "MIT" ]
null
null
null
rmgpy/thermo/convertTest.py
mbprend/RMG-Py
29e111d683f2daa0b376417be60e76b32ce8a993
[ "MIT" ]
null
null
null
rmgpy/thermo/convertTest.py
mbprend/RMG-Py
29e111d683f2daa0b376417be60e76b32ce8a993
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
44.339768
123
0.565134
a01335eddc6cd00b60aa14f24eb8900192768532
1,902
py
Python
NonLinearRegression.py
OlawuyiSola/ml-implementation
882615762690e78c77a19c097203ba7d8491fd99
[ "BSD-4-Clause-UC" ]
null
null
null
NonLinearRegression.py
OlawuyiSola/ml-implementation
882615762690e78c77a19c097203ba7d8491fd99
[ "BSD-4-Clause-UC" ]
null
null
null
NonLinearRegression.py
OlawuyiSola/ml-implementation
882615762690e78c77a19c097203ba7d8491fd99
[ "BSD-4-Clause-UC" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt df = pd.read_csv("china_gdp.csv") df.head(10) plt.figure(figsize=(8,5)) x_data, y_data = (df["Year"].values, df["Value"].values) plt.plot(x_data, y_data, 'ro') plt.ylabel('GDP') plt.xlabel('Year') plt.show() X = np.arange(-5.0, 5.0,...
24.384615
78
0.660358
67259f44d9ae0e4fdf38c0362d2cceae2dd1c0ec
22,614
py
Python
discord/channel.py
variablehair/Eggplantato
0df0c66f0ff84f90068eaffa75c5ab8b85205bc8
[ "MIT" ]
null
null
null
discord/channel.py
variablehair/Eggplantato
0df0c66f0ff84f90068eaffa75c5ab8b85205bc8
[ "MIT" ]
null
null
null
discord/channel.py
variablehair/Eggplantato
0df0c66f0ff84f90068eaffa75c5ab8b85205bc8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2017 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
32.076596
93
0.544176
63a18126f5ce8e518d8fdbb6c2a363babdd7367d
939
py
Python
opennmt/tests/evaluator_test.py
samueltin/OpenNMT-tf
6dbb4c8fd6987e1350500eef20c92a720b8c0ed7
[ "MIT" ]
2
2018-09-28T14:44:59.000Z
2018-11-29T02:31:28.000Z
opennmt/tests/evaluator_test.py
Nourhene95/Film_Translation
52538d992abcce044911ee945ffaabd1d12ffe9d
[ "MIT" ]
null
null
null
opennmt/tests/evaluator_test.py
Nourhene95/Film_Translation
52538d992abcce044911ee945ffaabd1d12ffe9d
[ "MIT" ]
1
2020-08-24T02:02:07.000Z
2020-08-24T02:02:07.000Z
import tensorflow as tf from opennmt.utils import evaluator class EvaluatorTest(tf.test.TestCase): def testBLEUEvaluator(self): bleu_evaluator = evaluator.BLEUEvaluator() score = bleu_evaluator.score("data/toy-ende/tgt-val.txt", "data/toy-ende/tgt-val.txt") self.assertEqual(100.0, score) def testBL...
31.3
91
0.72098
548fb88340b409b57071b18f29759b80d393b927
1,862
py
Python
tests/test_tutorial/test_extra_models/test_tutorial004.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
53,007
2018-12-08T10:05:29.000Z
2022-03-31T23:30:02.000Z
tests/test_tutorial/test_extra_models/test_tutorial004.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
4,155
2019-01-05T05:07:49.000Z
2022-03-31T21:25:38.000Z
tests/test_tutorial/test_extra_models/test_tutorial004.py
Aryabhata-Rootspring/fastapi
f6237ad05a8468ac19c591181adad38d75372c46
[ "MIT" ]
4,092
2018-12-09T16:21:00.000Z
2022-03-31T07:59:45.000Z
from fastapi.testclient import TestClient from docs_src.extra_models.tutorial004 import app client = TestClient(app) openapi_schema = { "openapi": "3.0.2", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/": { "get": { "responses": { ...
30.52459
83
0.411386
ee1d255d32495ef6141ebc1cf1fb179e9db93eb6
867
py
Python
util/pyfunctions/str_functions.py
stephbuon/democracy-lab
2e3a413e86b6d8102ea56463864dde4181a6aa82
[ "MIT" ]
null
null
null
util/pyfunctions/str_functions.py
stephbuon/democracy-lab
2e3a413e86b6d8102ea56463864dde4181a6aa82
[ "MIT" ]
85
2021-06-01T20:48:10.000Z
2022-02-19T16:58:00.000Z
util/pyfunctions/str_functions.py
stephbuon/democracy-lab
2e3a413e86b6d8102ea56463864dde4181a6aa82
[ "MIT" ]
1
2021-08-23T13:56:43.000Z
2021-08-23T13:56:43.000Z
import pandas as pd import re import spacy nlp = spacy.load('en_core_web_sm', disable=['parser', 'ner', 'tagger']) # change hard coded ness! def str_split_df_sentences(df): # returns a df with one sentence per row. split_rule = r"(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?)\s" df['speech'] = df['speech'].ap...
32.111111
128
0.612457
0aac87b65edb48d9b61c62fa697b1130d552e3c7
5,111
py
Python
playground/infrastructure/grpc_client.py
kellen/beam
b7095c844fddc13b734876030ece9a3f9e9312c7
[ "Apache-2.0" ]
null
null
null
playground/infrastructure/grpc_client.py
kellen/beam
b7095c844fddc13b734876030ece9a3f9e9312c7
[ "Apache-2.0" ]
null
null
null
playground/infrastructure/grpc_client.py
kellen/beam
b7095c844fddc13b734876030ece9a3f9e9312c7
[ "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 use ...
30.789157
77
0.709059
802ba51e2e89516404856b4a04cd0ac15a43dbdc
843
py
Python
Solutions/Module12ReadCSVfileChallenge.py
amihaita/GeekTraine
b9e8d5158168974d7bc07e3e13f0224d8c3e9eb2
[ "Apache-2.0" ]
957
2015-01-01T10:22:05.000Z
2022-03-30T04:40:57.000Z
Solutions/Module12ReadCSVfileChallenge.py
amihaita/GeekTraine
b9e8d5158168974d7bc07e3e13f0224d8c3e9eb2
[ "Apache-2.0" ]
12
2015-10-29T12:22:33.000Z
2021-10-06T15:08:25.000Z
Solutions/Module12ReadCSVfileChallenge.py
amihaita/GeekTraine
b9e8d5158168974d7bc07e3e13f0224d8c3e9eb2
[ "Apache-2.0" ]
753
2015-01-01T10:22:14.000Z
2022-03-20T16:24:18.000Z
#import the csv library which contains functions to help you work with CSV files import csv #Declare variables to hold the file name and access mode fileName = "GuestList.txt" accessMode = "r" #open the file with open(fileName, accessMode) as myCSVFile: #Read the file contents #specify that we are using a ...
31.222222
80
0.680902
36579dc0fd37698696d6c667372b08325b009ab8
86
py
Python
setup.py
iredun/django-smsru
21766e88fcd035115a07ec84b4f1e1cee8fa1271
[ "BSD-3-Clause" ]
2
2021-01-20T08:50:04.000Z
2021-07-11T10:11:36.000Z
setup.py
iredun/django-smsru
21766e88fcd035115a07ec84b4f1e1cee8fa1271
[ "BSD-3-Clause" ]
null
null
null
setup.py
iredun/django-smsru
21766e88fcd035115a07ec84b4f1e1cee8fa1271
[ "BSD-3-Clause" ]
2
2021-07-11T11:07:15.000Z
2021-08-21T20:46:41.000Z
from setuptools import setup __version__ = "1.0.4" setup( version=__version__ )
10.75
28
0.72093
8509e47a77847b175813f74442d4fca10f19003c
3,241
py
Python
tests/plugins/test_ods.py
loganbyers/frictionless-py
9bec83d313e9a67ba4cb8970f382f47d33a96ac0
[ "MIT" ]
null
null
null
tests/plugins/test_ods.py
loganbyers/frictionless-py
9bec83d313e9a67ba4cb8970f382f47d33a96ac0
[ "MIT" ]
null
null
null
tests/plugins/test_ods.py
loganbyers/frictionless-py
9bec83d313e9a67ba4cb8970f382f47d33a96ac0
[ "MIT" ]
null
null
null
import pytest from datetime import datetime from frictionless import Table, Query, FrictionlessException, helpers from frictionless.plugins.ods import OdsDialect BASE_URL = "https://raw.githubusercontent.com/okfn/tabulator-py/master/%s" # Parser def test_ods_parser(): with Table("data/table.ods") as table: ...
35.615385
90
0.64764
85a04f49be19adcc70b7a08964a25d6581322b6b
2,710
py
Python
goodsorigin/serializers.py
AntInso/GreaterWMS
9eabb1b9b0f5376dcccd89ed86dd76995955a8ec
[ "Apache-2.0" ]
1
2021-02-17T14:04:29.000Z
2021-02-17T14:04:29.000Z
goodsorigin/serializers.py
AntInso/GreaterWMS
9eabb1b9b0f5376dcccd89ed86dd76995955a8ec
[ "Apache-2.0" ]
null
null
null
goodsorigin/serializers.py
AntInso/GreaterWMS
9eabb1b9b0f5376dcccd89ed86dd76995955a8ec
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from .models import ListModel from userprofile.models import Users import re from rest_framework.exceptions import APIException def data_validate(data): script_obj = re.findall(r'script', str(data), re.IGNORECASE) select_obj = re.findall(r'select', str(data), re.IGNORECAS...
43.015873
101
0.712915
fcf8978364fe2a218e9d0c6adb28ed47b8e31b92
2,850
py
Python
scrapers/scrape_fl.py
loleg/covid_19
3fe3b1d3970591a32972157e8644be09ca2219c2
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_fl.py
loleg/covid_19
3fe3b1d3970591a32972157e8644be09ca2219c2
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_fl.py
loleg/covid_19
3fe3b1d3970591a32972157e8644be09ca2219c2
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 import scrape_common as sc import sys import re # get latest from list with all press releases d = sc.download('https://www.regierung.li/coronavirus', silent=True) is_first = True pdf_url = sc.find(r'<a.*?href="([^"]+\.pdf)[^"]*"[^>]*?>[^<]+?Situationsbericht[^<]+?<\/a>', d) if pdf_url: #...
39.583333
216
0.635789
8f0e85ce9e93f9867cb86624c48744a622f77848
630
py
Python
dev/modules/physics/continuum_mechanics/beam-17.py
sympy/sympy_doc
ec4f28eed09d5acb9e55874e82cc86c74e762c0d
[ "BSD-3-Clause" ]
20
2015-01-28T01:08:13.000Z
2021-12-19T04:03:28.000Z
dev/modules/physics/continuum_mechanics/beam-17.py
sympy/sympy_doc
ec4f28eed09d5acb9e55874e82cc86c74e762c0d
[ "BSD-3-Clause" ]
31
2015-01-27T07:16:19.000Z
2021-11-15T10:58:15.000Z
dev/modules/physics/continuum_mechanics/beam-17.py
sympy/sympy_doc
ec4f28eed09d5acb9e55874e82cc86c74e762c0d
[ "BSD-3-Clause" ]
38
2015-01-08T18:48:27.000Z
2021-12-02T13:19:43.000Z
from sympy.physics.continuum_mechanics.beam import Beam3D from sympy import symbols l, E, G, I, A, x = symbols('l, E, G, I, A, x') b = Beam3D(20, 40, 21, 100, 25, x) b.apply_load(15, start=0, order=0, dir="z") b.apply_load(12*x, start=0, order=0, dir="y") b.bc_deflection = [(0, [0, 0, 0]), (20, [0, 0, 0])] R1, R2, R3, ...
39.375
57
0.628571
361cd5150ed740f943b550cc80f0ff2d2749f866
8,654
py
Python
lib/services/server/ncloud_server/model/get_member_server_image_list_request.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/server/ncloud_server/model/get_member_server_image_list_request.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/server/ncloud_server/model/get_member_server_image_list_request.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
# coding: utf-8 """ server OpenAPI spec version: 2018-06-22T02:34:44Z Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GetMemberServerImageListRequest(object): """NOTE: This class is auto generated by the swagger code...
30.797153
183
0.631384
d5940bef7bdaa67f2a8ad0ab9d280c214bc5925a
347
py
Python
api_server_django/product_management/urls.py
tuktarov9898/Django_React
8a17bbfecaa48076358cb968ea4698ddc46cbd01
[ "MIT" ]
null
null
null
api_server_django/product_management/urls.py
tuktarov9898/Django_React
8a17bbfecaa48076358cb968ea4698ddc46cbd01
[ "MIT" ]
null
null
null
api_server_django/product_management/urls.py
tuktarov9898/Django_React
8a17bbfecaa48076358cb968ea4698ddc46cbd01
[ "MIT" ]
1
2021-11-07T16:09:43.000Z
2021-11-07T16:09:43.000Z
from django.urls import path from . import api_views as product_api urlpatterns = [ path('getAllProducts', product_api.getAllProducts, name="getAllProducts"), path('updateProductDetail', product_api.updateProductDetail, name="updateProductDetail"), path('updateProductInfo', product_api.updateProductInfo, n...
43.375
93
0.789625
e1edef0d10694333a79c77b4f59337778ed129fa
463
py
Python
otp/speedchat/SpeedChatTypes.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
otp/speedchat/SpeedChatTypes.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
otp/speedchat/SpeedChatTypes.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
from SCObject import SCObject from SCMenu import SCMenu from SCElement import SCElement from SCMenuHolder import SCMenuHolder from SCTerminal import SCTerminal from SCCustomMenu import SCCustomMenu from SCEmoteMenu import SCEmoteMenu from SCStaticTextTerminal import SCStaticTextTerminal from SCGMTextTerminal import SCG...
38.583333
53
0.898488
691ed2aa328f9ac0d98640af09b0eff11d3e14a9
228
py
Python
Inheritance/03. Players and Monsters/project/muse_elf.py
milenpenev/SoftUni-OOP
90f730cb37713f7ca93b1c0ecd0d12aa351247d2
[ "MIT" ]
null
null
null
Inheritance/03. Players and Monsters/project/muse_elf.py
milenpenev/SoftUni-OOP
90f730cb37713f7ca93b1c0ecd0d12aa351247d2
[ "MIT" ]
null
null
null
Inheritance/03. Players and Monsters/project/muse_elf.py
milenpenev/SoftUni-OOP
90f730cb37713f7ca93b1c0ecd0d12aa351247d2
[ "MIT" ]
null
null
null
from project.elf import Elf class MuseElf(Elf): def __init__(self, username, level): super().__init__(username, level) def __str__(self): return f"{self.username} of type MuseElf has level {self.level}"
28.5
72
0.679825
152e22d03921e2c72406b7c20b437c1b1387b471
2,057
py
Python
tools/scons/scons-local-1.2.0/SCons/Tool/sunf90.py
rohankumardubey/node
d49d53fd499f7cf68fdfcc7d0c9d401e4e4407fb
[ "MIT" ]
48
2015-01-09T20:39:35.000Z
2021-12-21T21:17:52.000Z
tools/scons/scons-local-1.2.0/SCons/Tool/sunf90.py
dalizard/node
776754c33f347ef4827cf2b9d3cea7c1d46be7b5
[ "MIT" ]
2
2016-02-05T10:27:37.000Z
2019-01-22T16:22:51.000Z
tools/scons/scons-local-1.2.0/SCons/Tool/sunf90.py
dalizard/node
776754c33f347ef4827cf2b9d3cea7c1d46be7b5
[ "MIT" ]
8
2015-01-12T17:14:36.000Z
2018-09-15T14:10:27.000Z
"""SCons.Tool.sunf90 Tool-specific initialization for sunf90, the Sun Studio F90 compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The...
34.864407
83
0.737968
0a0bb766f5bbfd545972699231d014255398755e
27,263
py
Python
frappe/database.py
jsukrut/latest_lumajuan_frappe
4d38ef0f548c6398a38a9d77ac678c9e829f32cf
[ "MIT" ]
null
null
null
frappe/database.py
jsukrut/latest_lumajuan_frappe
4d38ef0f548c6398a38a9d77ac678c9e829f32cf
[ "MIT" ]
null
null
null
frappe/database.py
jsukrut/latest_lumajuan_frappe
4d38ef0f548c6398a38a9d77ac678c9e829f32cf
[ "MIT" ]
3
2018-03-22T00:26:45.000Z
2018-09-12T04:00:42.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt # Database Module # -------------------- from __future__ import unicode_literals import MySQLdb from MySQLdb.times import DateTimeDeltaType from markdown2 import UnicodeWithAttrs import warnings import datetime import ...
31.664344
108
0.675421
365f577fb309afa479b0dcf9683b1d309fce7949
149
py
Python
shortener/apps.py
manakmishra/whereto
212c34d745a093bbda5a3778bcf7c0cb6d1a7188
[ "MIT" ]
null
null
null
shortener/apps.py
manakmishra/whereto
212c34d745a093bbda5a3778bcf7c0cb6d1a7188
[ "MIT" ]
null
null
null
shortener/apps.py
manakmishra/whereto
212c34d745a093bbda5a3778bcf7c0cb6d1a7188
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ShortnerConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'shortener'
21.285714
56
0.765101
b24a18df80cab8119bc78f0cb622462569918d4b
461
py
Python
data/scripts/templates/object/weapon/ranged/creature/shared_creature_spit_heavy_flame.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/weapon/ranged/creature/shared_creature_spit_heavy_flame.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/weapon/ranged/creature/shared_creature_spit_heavy_flame.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Weapon() result.template = "object/weapon/ranged/creature/shared_creature_spit_heavy_flame.iff" result.attribute_...
27.117647
87
0.735358
c4ef1b14772a258ea6d9754b71941968b4f9623b
2,658
py
Python
homeassistant/components/zoneminder/camera.py
ccatterina/core
36789cfc310f270bf343676eb94d123e5d0dfa83
[ "Apache-2.0" ]
6
2016-11-25T06:36:27.000Z
2021-11-16T11:20:23.000Z
homeassistant/components/zoneminder/camera.py
ccatterina/core
36789cfc310f270bf343676eb94d123e5d0dfa83
[ "Apache-2.0" ]
45
2020-10-15T06:47:06.000Z
2022-03-31T06:26:16.000Z
homeassistant/components/zoneminder/camera.py
ccatterina/core
36789cfc310f270bf343676eb94d123e5d0dfa83
[ "Apache-2.0" ]
2
2021-03-17T11:01:07.000Z
2021-08-19T15:21:32.000Z
"""Support for ZoneMinder camera streaming.""" import logging from typing import Callable, List, Optional from zoneminder.monitor import Monitor from homeassistant.components.mjpeg.camera import ( CONF_MJPEG_URL, CONF_STILL_IMAGE_URL, MjpegCamera, filter_urllib3_logging, ) from homeassistant.config_en...
30.906977
86
0.697141
b3a8036373cc4c11351fed318c07cb939c8c3167
5,289
py
Python
userbot/plugins/updater.py
IamArjun078/ARJUN_BOT
dd761c0186c676a9941ad2df58c432a368cf7d13
[ "MIT" ]
1
2021-03-19T18:07:33.000Z
2021-03-19T18:07:33.000Z
userbot/plugins/updater.py
IamArjun078/ARJUN_BOT
dd761c0186c676a9941ad2df58c432a368cf7d13
[ "MIT" ]
null
null
null
userbot/plugins/updater.py
IamArjun078/ARJUN_BOT
dd761c0186c676a9941ad2df58c432a368cf7d13
[ "MIT" ]
6
2020-07-08T11:12:13.000Z
2021-04-01T19:31:13.000Z
"""Update UserBot code Syntax: .update""" import git from contextlib import suppress import os import sys import asyncio from userbot.utils import admin_cmd # -- Constants -- # IS_SELECTED_DIFFERENT_BRANCH = ( "looks like a custom branch {branch_name} " "is being used:\n" "in this case, Updater is unable ...
35.496644
259
0.647003
6cee56169da86c7fde2718556f7d80c34ef0482b
1,917
py
Python
swcpm/__init__.py
Davis-Software/SWC_packagemanager
2c0b79ef6cc3551e24160ab2842f620be467cbda
[ "MIT" ]
1
2020-10-21T08:20:45.000Z
2020-10-21T08:20:45.000Z
swcpm/__init__.py
Davis-Software/SWC_packagemanager
2c0b79ef6cc3551e24160ab2842f620be467cbda
[ "MIT" ]
null
null
null
swcpm/__init__.py
Davis-Software/SWC_packagemanager
2c0b79ef6cc3551e24160ab2842f620be467cbda
[ "MIT" ]
1
2020-10-21T08:15:47.000Z
2020-10-21T08:15:47.000Z
import os import json import click import tempfile import platform from pathlib import Path class LocationDatabase: database_dir = os.path.join(str(Path.home()), "SWC", "database") database_path = os.path.join(database_dir, "locations.json") def __init__(self): if not os.path.exists(...
27.782609
108
0.650496
a55471c7ccae6561f948566cc86a9ab344a63ae7
2,731
py
Python
src/data/test_labels.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
src/data/test_labels.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
src/data/test_labels.py
0shimax/SE-Wavenet
f3cf8239175fec02565c81995e5b9f9e1bbd5eb1
[ "MIT" ]
null
null
null
seq_labels = \ [ [1,2,3,4,5], [2,3,4,5,1], [3,4,5,1,2], [4,5,1,2,3], [5,1,2,3,4], [1,2,3,4,5], [2,3,4,5,1], [3,4,5,1,2], [4,5,1,2,3], [5,1,2,3,4], [1,2,3,4,5], [2,3,4,5,1], [3,4,5,1,2], [4,5,1,2,3], ...
16.353293
34
0.258513
9e67182d8262c570efba7092c2623063b2fdb0de
63,083
py
Python
tests/test_streamgapdf.py
gusbeane/galpy
d6db971285f163456c81775fc2fdc7d75189762c
[ "BSD-3-Clause" ]
null
null
null
tests/test_streamgapdf.py
gusbeane/galpy
d6db971285f163456c81775fc2fdc7d75189762c
[ "BSD-3-Clause" ]
null
null
null
tests/test_streamgapdf.py
gusbeane/galpy
d6db971285f163456c81775fc2fdc7d75189762c
[ "BSD-3-Clause" ]
null
null
null
import numpy from scipy import integrate import pytest sdf_sanders15= None #so we can set this up and then use in other tests sdf_sanders15_unp= None #so we can set this up and then use in other tests sdfl_sanders15= None #so we can set this up and then use in other tests sdfl_sanders15_unp= None #so we can set this up...
55.335965
351
0.642883
bd8dd8e23f25a97e62e875e90b3468c05d06d74e
473
py
Python
pictures/migrations/0004_auto_20181004_1758.py
BRIGHTON-ASUMANI/gallery
007623cb7ef5d09c9342861f4616b2e5bd786f2a
[ "MIT" ]
null
null
null
pictures/migrations/0004_auto_20181004_1758.py
BRIGHTON-ASUMANI/gallery
007623cb7ef5d09c9342861f4616b2e5bd786f2a
[ "MIT" ]
6
2021-03-18T21:01:55.000Z
2022-03-11T23:28:51.000Z
pictures/migrations/0004_auto_20181004_1758.py
BRIGHTON-ASUMANI/gallery
007623cb7ef5d09c9342861f4616b2e5bd786f2a
[ "MIT" ]
1
2019-07-21T23:35:40.000Z
2019-07-21T23:35:40.000Z
# Generated by Django 2.1.2 on 2018-10-04 14:58 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pictures', '0003_auto_20180930_2130'), ] operations = [ migrations.AlterField( model_name='image',...
23.65
96
0.649049
da8f1e0325f509a4c7f0ce993f7bd2d6f3a57b36
14,912
py
Python
salt/modules/upstart.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
null
null
null
salt/modules/upstart.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
null
null
null
salt/modules/upstart.py
vamshi98/salt-formulas
30edeadafd5d173efe4e1f767a8d562547ad128a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for the management of upstart systems. The Upstart system only supports service starting, stopping and restarting. .. important:: If you feel that Salt should be using this module to manage services on a minion, and it is using a different module (or gives an error similar to...
27.261426
183
0.631773
9b569861ac8df49bf1e55f84b16a25aecef09533
243
py
Python
sars_dashboard/calls/apps.py
thomasbtf/sars-dashboard
4b98e9549af580c1a1822ccdeb7b81dd1802752a
[ "MIT" ]
null
null
null
sars_dashboard/calls/apps.py
thomasbtf/sars-dashboard
4b98e9549af580c1a1822ccdeb7b81dd1802752a
[ "MIT" ]
46
2021-12-11T20:39:41.000Z
2022-03-28T02:27:31.000Z
sars_dashboard/calls/apps.py
thomasbtf/sars-dashboard
4b98e9549af580c1a1822ccdeb7b81dd1802752a
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ReportsConfig(AppConfig): name = "sars_dashboard.calls" verbose_name = _("Call") default_auto_field = "django.db.models.BigAutoField"
27
56
0.769547
3de88483c202d1d05f4343f9e94f83dfd8408c2d
488
py
Python
random_demos/subprocess_popen.py
t4d-classes/advanced-python_04122021
07b27aea8ac3c7170eb66d5243c5cd841f41322c
[ "MIT" ]
null
null
null
random_demos/subprocess_popen.py
t4d-classes/advanced-python_04122021
07b27aea8ac3c7170eb66d5243c5cd841f41322c
[ "MIT" ]
null
null
null
random_demos/subprocess_popen.py
t4d-classes/advanced-python_04122021
07b27aea8ac3c7170eb66d5243c5cd841f41322c
[ "MIT" ]
null
null
null
import subprocess import re import json p = subprocess.Popen( # "where chkdsk.exe", "curl https://api.ratesapi.io/api/2021-04-01", stdout=subprocess.PIPE, stderr=subprocess.STDOUT) retval = p.wait() print(retval) if p and p.stdout: r = re.compile(r'\{"(.*)"\}') response_text = p.stdout.read()...
21.217391
61
0.604508
a86544360fea2a5b64d54f2f313db769bc7c8be2
14,586
py
Python
web/utilities.py
CptnDuras/steem-open-mic
a776dbf471b90113090036355b6b854972ef3b20
[ "MIT" ]
2
2018-04-30T06:31:13.000Z
2018-05-03T01:30:18.000Z
web/utilities.py
CptnDuras/steem-open-mic
a776dbf471b90113090036355b6b854972ef3b20
[ "MIT" ]
null
null
null
web/utilities.py
CptnDuras/steem-open-mic
a776dbf471b90113090036355b6b854972ef3b20
[ "MIT" ]
null
null
null
import json import math import traceback from datetime import timedelta import bleach import markdown import pandas as pd import re from sqlalchemy import create_engine, not_ from sqlalchemy.orm import sessionmaker from config import SQLALCHEMY_DATABASE_URI from models import * # compile regex for checking for youtu...
36.465
207
0.623543
c329aaef9f8a26b380d9f4c06f90d0d1afaa14f9
5,431
py
Python
snowland/gis_tool/qgis_tool/qgis_util.py
AAFun/scikit-snowland
79b67dfe62e4514cf6fccfe529b2618b0515f49c
[ "BSD-2-Clause" ]
1
2019-08-21T14:12:59.000Z
2019-08-21T14:12:59.000Z
snowland/gis_tool/qgis_tool/qgis_util.py
AAFun/scikit-snowland
79b67dfe62e4514cf6fccfe529b2618b0515f49c
[ "BSD-2-Clause" ]
null
null
null
snowland/gis_tool/qgis_tool/qgis_util.py
AAFun/scikit-snowland
79b67dfe62e4514cf6fccfe529b2618b0515f49c
[ "BSD-2-Clause" ]
2
2020-09-09T18:46:07.000Z
2022-01-06T07:32:11.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- # @Author: 深圳星河软通科技有限公司 A.Star # @contact: astar@snowland.ltd # @site: www.astar.ltd # @file: qgis_utils.py # @time: 2022/01/06 20:52 # @Software: PyCharm from functools import reduce from typing import List import numpy as np from qgis.core import QgsGeometry, QgsPoint...
26.622549
115
0.577058
7c0059ef53a96416b0aeb089119181d0a687df45
3,303
py
Python
src/android/toga_android/widgets/textinput.py
leggewie/toga
01df83622e9980a66dfdead8534dd4325d601266
[ "BSD-3-Clause" ]
null
null
null
src/android/toga_android/widgets/textinput.py
leggewie/toga
01df83622e9980a66dfdead8534dd4325d601266
[ "BSD-3-Clause" ]
null
null
null
src/android/toga_android/widgets/textinput.py
leggewie/toga
01df83622e9980a66dfdead8534dd4325d601266
[ "BSD-3-Clause" ]
null
null
null
from travertino.size import at_least from ..libs.android.text import InputType, TextWatcher from ..libs.android.util import TypedValue from ..libs.android.view import Gravity, View__MeasureSpec from ..libs.android.widget import EditText from .base import Widget, align class TogaTextWatcher(TextWatcher): def __in...
36.296703
91
0.691795
fbb7f22fed0e3edb57fbac388feac1d3edcffc4f
2,728
py
Python
pipeline_web/label/signals/handlers.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
1
2021-05-19T04:31:34.000Z
2021-05-19T04:31:34.000Z
pipeline_web/label/signals/handlers.py
ZhuoZhuoCrayon/bk-sops
d1475d53c19729915727ce7adc24e3226f15e332
[ "Apache-2.0" ]
null
null
null
pipeline_web/label/signals/handlers.py
ZhuoZhuoCrayon/bk-sops
d1475d53c19729915727ce7adc24e3226f15e332
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
44
116
0.752199
5ea9772ee8cb85b369ff10d20ff137b49f0c26de
1,243
py
Python
jesse/indicators/bollinger_bands.py
h0ke/jesse
02dbf2b5df3a970eed18b276d5e3bcf8fb3f9220
[ "MIT" ]
4
2021-02-23T18:23:58.000Z
2021-10-10T07:32:41.000Z
jesse/indicators/bollinger_bands.py
h0ke/jesse
02dbf2b5df3a970eed18b276d5e3bcf8fb3f9220
[ "MIT" ]
1
2021-06-05T19:59:56.000Z
2021-06-05T19:59:56.000Z
jesse/indicators/bollinger_bands.py
h0ke/jesse
02dbf2b5df3a970eed18b276d5e3bcf8fb3f9220
[ "MIT" ]
2
2021-04-30T06:49:26.000Z
2022-01-24T09:24:35.000Z
from collections import namedtuple import numpy as np import talib from jesse.helpers import get_candle_source BollingerBands = namedtuple('BollingerBands', ['upperband', 'middleband', 'lowerband']) def bollinger_bands(candles: np.ndarray, period=20, devup=2, devdn=2, matype=0, source_type="close", ...
33.594595
111
0.668544
4f98519352f2b48f2c86ca3a4f50beb0cb16d630
1,966
py
Python
intervention/pdf.py
tomcur/intervention
f8c647819fe6abe0f3972e669d2f7d155f275d55
[ "MIT" ]
4
2021-01-12T04:42:03.000Z
2022-01-07T07:42:30.000Z
intervention/pdf.py
Beskhue/intervention
f8c647819fe6abe0f3972e669d2f7d155f275d55
[ "MIT" ]
null
null
null
intervention/pdf.py
Beskhue/intervention
f8c647819fe6abe0f3972e669d2f7d155f275d55
[ "MIT" ]
1
2022-01-06T06:01:42.000Z
2022-01-06T06:01:42.000Z
from pathlib import Path import matplotlib from matplotlib.backends.backend_pdf import PdfPages import matplotlib.pyplot as plt import numpy as np DPI = 300 matplotlib.use("Agg") matplotlib.rcParams["figure.dpi"] = DPI def print_multipage(path: Path, tick: int, rgb_image: np.ndarray, heatmaps: np.ndarray): """ ...
32.766667
88
0.551882
3238e18a70566653be6fdd86963d167852234744
1,652
py
Python
aliyun-python-sdk-ons/aliyunsdkons/request/v20170918/OnsBuyOrdersProduceRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-ons/aliyunsdkons/request/v20170918/OnsBuyOrdersProduceRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ons/aliyunsdkons/request/v20170918/OnsBuyOrdersProduceRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.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 u...
34.416667
72
0.764528
e95e72be5c06e62646032a0343c28eba1b466157
629
py
Python
vehicle/migrations/0004_auto_20170606_0657.py
Moizes92/CTMS
faceaf71a6fd6fb379dbcc13a60a538e449e13db
[ "Apache-2.0" ]
null
null
null
vehicle/migrations/0004_auto_20170606_0657.py
Moizes92/CTMS
faceaf71a6fd6fb379dbcc13a60a538e449e13db
[ "Apache-2.0" ]
null
null
null
vehicle/migrations/0004_auto_20170606_0657.py
Moizes92/CTMS
faceaf71a6fd6fb379dbcc13a60a538e449e13db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-06 03:57 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vehicle', '0003_auto_20170606_0655'), ] operations = [ migrations.AlterField(...
24.192308
58
0.607313
0fcd5bc2ed8d5e7824709628658a08d6f34c917d
878
py
Python
src/main/python/ESclient.py
nelango/ViralityAnalysis
1ddbaccb4ea04fc908a01b4964ab080f1d2b2f60
[ "MIT" ]
null
null
null
src/main/python/ESclient.py
nelango/ViralityAnalysis
1ddbaccb4ea04fc908a01b4964ab080f1d2b2f60
[ "MIT" ]
null
null
null
src/main/python/ESclient.py
nelango/ViralityAnalysis
1ddbaccb4ea04fc908a01b4964ab080f1d2b2f60
[ "MIT" ]
null
null
null
import requests import json from elasticsearch import Elasticsearch # ES instance # es = Elasticsearch() es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) # hit localhost sw database # res = requests.get('http://localhost:9200') # print(res.content) # r = requests.get('http://localhost:9200') # i = 1 # whil...
27.4375
79
0.651481
b56d39e2fd39a4bdcadde3a48242abb4fc92a552
955
py
Python
django_geonames_cities/urls.py
davidegalletti/django_geonames_cities
4bdd5ac5680aa816f85e5e35941f97498064788a
[ "BSD-3-Clause" ]
null
null
null
django_geonames_cities/urls.py
davidegalletti/django_geonames_cities
4bdd5ac5680aa816f85e5e35941f97498064788a
[ "BSD-3-Clause" ]
null
null
null
django_geonames_cities/urls.py
davidegalletti/django_geonames_cities
4bdd5ac5680aa816f85e5e35941f97498064788a
[ "BSD-3-Clause" ]
null
null
null
"""django_geonames_cities URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='hom...
38.2
90
0.718325
44a2d7197e9461332c75024bc716e4a97de8e729
819
py
Python
run.py
Mego/ibmf
3682f6551a9a211c8c637a35b9b1f0b697e6fc14
[ "MIT" ]
null
null
null
run.py
Mego/ibmf
3682f6551a9a211c8c637a35b9b1f0b697e6fc14
[ "MIT" ]
null
null
null
run.py
Mego/ibmf
3682f6551a9a211c8c637a35b9b1f0b697e6fc14
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from ibmf import IBMF import argparse parser = argparse.ArgumentParser(description='IBMF') parser.add_argument("-u", "--unpossible", action='store_true', help='only one-line lambdas allowed as filters') args = parser.parse_args() if args.unpossible: try: with open('prog_unpossible....
25.59375
111
0.649573
294a7e82b5d091e3155d98e2608b69955e15fdf9
89
py
Python
src/ccip/admin.py
MadRex2000/pycon.tw
3db353dd6ac5cd5c3d98d233bf56ecef94826724
[ "MIT" ]
null
null
null
src/ccip/admin.py
MadRex2000/pycon.tw
3db353dd6ac5cd5c3d98d233bf56ecef94826724
[ "MIT" ]
null
null
null
src/ccip/admin.py
MadRex2000/pycon.tw
3db353dd6ac5cd5c3d98d233bf56ecef94826724
[ "MIT" ]
null
null
null
from django.contrib import admin from django.utils.translation import gettext_lazy as _
22.25
54
0.842697
4500a0d8a5ac5e73054b3bbcd2a1f80b2a3d0434
3,286
py
Python
django_netjsongraph/tests/base/test_link.py
WorkInProgress-Development/django-netjsongraph
6fba7c707e4909834ef19a5ed1fffbfd8330e366
[ "MIT" ]
null
null
null
django_netjsongraph/tests/base/test_link.py
WorkInProgress-Development/django-netjsongraph
6fba7c707e4909834ef19a5ed1fffbfd8330e366
[ "MIT" ]
null
null
null
django_netjsongraph/tests/base/test_link.py
WorkInProgress-Development/django-netjsongraph
6fba7c707e4909834ef19a5ed1fffbfd8330e366
[ "MIT" ]
null
null
null
import six from django.core.exceptions import ValidationError from ...utils import link_status_changed class TestLinkMixin(object): def _get_nodes(self): return self.node_model.objects.all() def test_str(self): t = self.topology_model.objects.first() node1, node2 = self._get_nodes() ...
37.340909
84
0.611077
9c8221f3deda2876f97fb5dbe3eed8679950bfe3
2,399
py
Python
tests/channels_testdoubles.py
holytshirt/Brightside
ef78a46a5d1ee0aaf45594b1b353f6a82e6acf0d
[ "MIT" ]
null
null
null
tests/channels_testdoubles.py
holytshirt/Brightside
ef78a46a5d1ee0aaf45594b1b353f6a82e6acf0d
[ "MIT" ]
null
null
null
tests/channels_testdoubles.py
holytshirt/Brightside
ef78a46a5d1ee0aaf45594b1b353f6a82e6acf0d
[ "MIT" ]
null
null
null
""" File : handlers_testdoubles.py Author : ian Created : 11-21-2016 Last Modified By : ian Last Modified On : 11-21-2016 *********************************************************************** The MIT License (MIT) Copyright © 2015 Ian Cooper <ian_hammond_cooper@yahoo.co.uk> Permission...
35.279412
105
0.688203
3ca616f2dc9ae5d488e4624acefdaa8ff6db1993
21,869
py
Python
mindspore/ops/op_info_register.py
ythlml/mindspore
028ae212624164044cfaa84f347fc502cb7fcb0f
[ "Apache-2.0" ]
7
2020-05-24T03:19:26.000Z
2020-05-24T03:20:00.000Z
mindspore/ops/op_info_register.py
ythlml/mindspore
028ae212624164044cfaa84f347fc502cb7fcb0f
[ "Apache-2.0" ]
null
null
null
mindspore/ops/op_info_register.py
ythlml/mindspore
028ae212624164044cfaa84f347fc502cb7fcb0f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.046474
109
0.59454
2d85b05eb6cf3f65bb515bd9b0c7e38041acb26b
13,761
py
Python
test/autests/gold_tests/autest-site/directive_engine.py
SolidWallOfCode/proxy-verifier
cd027aa9e5e38baa085fc6d225866e616d5d0e97
[ "Apache-2.0" ]
null
null
null
test/autests/gold_tests/autest-site/directive_engine.py
SolidWallOfCode/proxy-verifier
cd027aa9e5e38baa085fc6d225866e616d5d0e97
[ "Apache-2.0" ]
null
null
null
test/autests/gold_tests/autest-site/directive_engine.py
SolidWallOfCode/proxy-verifier
cd027aa9e5e38baa085fc6d225866e616d5d0e97
[ "Apache-2.0" ]
null
null
null
''' Implement X-Proxy-Directive behavior. ''' # @file # # Copyright 2021, Verizon Media # SPDX-License-Identifier: Apache-2.0 # import re class Directive: """ The base class for the logic of a single directive. """ @staticmethod def get_command_name(): """ Return the command nam...
33.977778
118
0.606715
1755acacd42c26614e040fa62999401caa176e0f
54,256
py
Python
google/cloud/notebooks_v1beta1/services/notebook_service/async_client.py
LaudateCorpus1/python-notebooks
72925babe34fb97639336e443b2ee588d6727680
[ "Apache-2.0" ]
null
null
null
google/cloud/notebooks_v1beta1/services/notebook_service/async_client.py
LaudateCorpus1/python-notebooks
72925babe34fb97639336e443b2ee588d6727680
[ "Apache-2.0" ]
null
null
null
google/cloud/notebooks_v1beta1/services/notebook_service/async_client.py
LaudateCorpus1/python-notebooks
72925babe34fb97639336e443b2ee588d6727680
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
39.80631
185
0.63687
abe0c39abb8e88f662c743f294c84b12199fbbba
92
py
Python
apps/wfusers/apps.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
null
null
null
apps/wfusers/apps.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
11
2020-06-06T01:51:51.000Z
2022-02-10T14:31:21.000Z
apps/wfusers/apps.py
tufbel/wFocus
ee0f02053b8a5bc9c40dd862306fc5df1a063b9d
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'apps.wfusers'
15.333333
33
0.75
eec2aaf8d5cf8bb7c7b557dff1620ab0f13187b6
5,584
py
Python
aiida/sphinxext/tests/workchain_source/conf.py
joepvd/aiida_core
6e9711046753332933f982971db1d7ac7e7ade58
[ "BSD-2-Clause" ]
1
2019-03-15T10:37:53.000Z
2019-03-15T10:37:53.000Z
aiida/sphinxext/tests/workchain_source/conf.py
odarbelaeze/aiida_core
934b4ccdc73a993f2a6656caf516500470e3da08
[ "BSD-2-Clause" ]
null
null
null
aiida/sphinxext/tests/workchain_source/conf.py
odarbelaeze/aiida_core
934b4ccdc73a993f2a6656caf516500470e3da08
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
34.257669
79
0.650609
9d3b9e7756cbc3b57ab3de50a443b8c868700aaf
775
py
Python
slackbot/helpers.py
TRManderson/slackbot
845ad01d2378e8cfba8f33cb8663da758bf0cfa9
[ "BSD-3-Clause" ]
3
2017-09-05T11:45:06.000Z
2017-09-07T04:00:37.000Z
slackbot/helpers.py
TRManderson/slackbot
845ad01d2378e8cfba8f33cb8663da758bf0cfa9
[ "BSD-3-Clause" ]
null
null
null
slackbot/helpers.py
TRManderson/slackbot
845ad01d2378e8cfba8f33cb8663da758bf0cfa9
[ "BSD-3-Clause" ]
null
null
null
from functools import partial, update_wrapper import asyncio async def maybe_await(maybe_awaitable): if asyncio.iscoroutine(maybe_awaitable) or hasattr(maybe_awaitable, '__await__'): return await maybe_awaitable else: return maybe_awaitable class MessageHandler(object): def __init__(self, client, fn): """ ...
24.21875
82
0.734194
a06853477cdc9b1c276deefaa026cda7599f434c
526
py
Python
cooperativegames/version.py
josh1924/CooperativeGames
7803164281ffc1dbaae70028f448f0250d60fab3
[ "MIT" ]
2
2018-01-26T05:14:05.000Z
2021-01-27T03:56:45.000Z
cooperativegames/version.py
josh1924/CooperativeGames
7803164281ffc1dbaae70028f448f0250d60fab3
[ "MIT" ]
null
null
null
cooperativegames/version.py
josh1924/CooperativeGames
7803164281ffc1dbaae70028f448f0250d60fab3
[ "MIT" ]
1
2020-07-31T09:35:08.000Z
2020-07-31T09:35:08.000Z
""" Version information for TimeSeriesTools, created during installation by setup.py. Do not add this file to the repository. """ import datetime version = '0.0.0.dev_20161129021829' date = 'Tue Nov 29 02:18:29 2016' # Development version dev = True # Format: (name, major, minor, micro, revision) version_info = (...
20.230769
71
0.703422
d7603c6043a06da22731e6544d6c4f0eeac062b0
114
py
Python
wodoo/wait/__init__.py
mt-software-de/wodoo
251d33b4bde69c6f7a0f4b4b83933f59c276b861
[ "MIT" ]
1
2022-01-17T13:09:52.000Z
2022-01-17T13:09:52.000Z
wodoo/wait/__init__.py
mt-software-de/wodoo
251d33b4bde69c6f7a0f4b4b83933f59c276b861
[ "MIT" ]
1
2022-03-29T07:55:35.000Z
2022-03-29T07:55:35.000Z
wodoo/wait/__init__.py
mt-software-de/wodoo
251d33b4bde69c6f7a0f4b4b83933f59c276b861
[ "MIT" ]
2
2022-01-27T15:27:54.000Z
2022-02-25T10:08:07.000Z
#!/usr/bin/env python from . import log from . import tcp # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
16.285714
53
0.736842
2cd02b76ac330ffe3dfc74eb523af06410ac322a
6,639
py
Python
Connect_4/Connect_4.py
Thanatos12321/PyQt_Simple
ad59897cf33be6c930ed1c3f733595b12304487d
[ "MIT" ]
null
null
null
Connect_4/Connect_4.py
Thanatos12321/PyQt_Simple
ad59897cf33be6c930ed1c3f733595b12304487d
[ "MIT" ]
null
null
null
Connect_4/Connect_4.py
Thanatos12321/PyQt_Simple
ad59897cf33be6c930ed1c3f733595b12304487d
[ "MIT" ]
null
null
null
import sys, random from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMainWindow, QDesktopWidget, QFrame, QMessageBox, QAction, QLineEdit, QGridLayout, QLabel from PyQt5.QtCore import Qt, QBasicTimer, pyqtSignal from PyQt5.QtGui import QIcon, QColor, QPainter import datetime class Connect4(QMainWindow): ...
30.040724
183
0.558819
8e18ee4e1eefc586da58f089178bea685d71b718
1,910
py
Python
examples/daal4py/bacon_outlier_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
336
2021-04-07T04:25:28.000Z
2022-03-29T09:18:44.000Z
examples/daal4py/bacon_outlier_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
213
2021-03-25T20:51:24.000Z
2022-03-31T09:04:13.000Z
examples/daal4py/bacon_outlier_batch.py
owerbat/scikit-learn-intelex
986637668853a00f0047b7a8854ddb9fb3620549
[ "Apache-2.0" ]
43
2021-05-23T14:29:23.000Z
2022-03-04T08:12:53.000Z
#=============================================================================== # Copyright 2014-2021 Intel 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.apa...
32.372881
81
0.649215
0f8c85cf3f29b218ee829fdb81e56963c7e41afb
10,074
py
Python
Docs_Geometry_Surface_Reconstruction.py
zhy29563/Tutorial_Open3D
58d11e5673783855bae267373919355d5085fc24
[ "MIT" ]
2
2021-11-09T01:59:36.000Z
2021-12-20T07:04:02.000Z
Docs_Geometry_Surface_Reconstruction.py
zhy29563/Tutorial_Open3D
58d11e5673783855bae267373919355d5085fc24
[ "MIT" ]
null
null
null
Docs_Geometry_Surface_Reconstruction.py
zhy29563/Tutorial_Open3D
58d11e5673783855bae267373919355d5085fc24
[ "MIT" ]
1
2021-11-09T01:59:38.000Z
2021-11-09T01:59:38.000Z
import open3d as o3d import python.open3d_tutorial as o3dtut import numpy as np import matplotlib.pyplot as plt # http://www.open3d.org/docs/release/tutorial/geometry/surface_reconstruction.html ''' In many scenarios, we want to generate a dense 3D geometry, i.e., a triangle mesh. However, from a multi-view stereo me...
59.609467
120
0.662597
f2447b9658711269e55fa0aa75ea6a04ecb3ae12
2,591
py
Python
homework/Testing with Test Doubles/authentication_component_impl_fail-create_user-always_returns_False.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
11
2018-02-08T05:23:28.000Z
2021-05-24T13:23:56.000Z
homework/Testing with Test Doubles/authentication_component_impl_fail-create_user-always_returns_False.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
null
null
null
homework/Testing with Test Doubles/authentication_component_impl_fail-create_user-always_returns_False.py
rvprasad/software-testing-course
3803851dcf9f7bbd0f0b89fca6c9c5e3a48f22e0
[ "CC-BY-4.0" ]
2
2020-09-15T08:51:22.000Z
2021-01-26T12:07:18.000Z
from data_store_interface import DataStore class AuthenticationComponent(object): def __init__(self, data_store): # create the component that uses the given data store to store user info assert isinstance(data_store, DataStore) self.data_store = data_store # assert isinstance(ret_va...
41.126984
92
0.667696
35b0d91e25c794b59f6da3cddf480d6da36226cf
3,354
py
Python
Shark_Training/pyimagesearch/utils/tfannotation.py
crpurcell/MQ_DPI_Release
97444513e8b8d48ec91ff8a43b9dfaed0da029f9
[ "MIT" ]
null
null
null
Shark_Training/pyimagesearch/utils/tfannotation.py
crpurcell/MQ_DPI_Release
97444513e8b8d48ec91ff8a43b9dfaed0da029f9
[ "MIT" ]
null
null
null
Shark_Training/pyimagesearch/utils/tfannotation.py
crpurcell/MQ_DPI_Release
97444513e8b8d48ec91ff8a43b9dfaed0da029f9
[ "MIT" ]
null
null
null
#=============================================================================# # # # MODIFIED: 13-May-2020 by C. Purcell # # # ...
41.407407
79
0.515504
eec123da20e1ad1bf53f4ea98093759c530e834f
14,488
py
Python
filters/oldDvc.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
4
2016-06-03T18:41:43.000Z
2020-04-17T20:28:58.000Z
filters/oldDvc.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
null
null
null
filters/oldDvc.py
voxie-viewer/voxie
d2b5e6760519782e9ef2e51f5322a3baa0cb1198
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # Copyright (c) 2014-2022 The Voxie Authors # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
46.435897
162
0.621618
03065b29203b0a2a3ebc5cec758417f3aa8589d0
1,318
py
Python
core/migrations/0003_employee.py
aghee/payroll
377c571d92bfa96f984c7caebad567b2c2484457
[ "MIT" ]
null
null
null
core/migrations/0003_employee.py
aghee/payroll
377c571d92bfa96f984c7caebad567b2c2484457
[ "MIT" ]
null
null
null
core/migrations/0003_employee.py
aghee/payroll
377c571d92bfa96f984c7caebad567b2c2484457
[ "MIT" ]
null
null
null
# Generated by Django 2.0rc1 on 2017-11-27 15:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20171127_1753'), ] operations = [ migrations.CreateModel( name='Employee', fields=[ ...
43.933333
142
0.584219
a517a7e07687ad3186215ef166acb544022b94a6
868
py
Python
app/core/admin.py
bl4ck4ndbr0wn/recipe-api
0ff03ea2c62a6ec47396c3aaccb25279b4375edf
[ "MIT" ]
null
null
null
app/core/admin.py
bl4ck4ndbr0wn/recipe-api
0ff03ea2c62a6ec47396c3aaccb25279b4375edf
[ "MIT" ]
null
null
null
app/core/admin.py
bl4ck4ndbr0wn/recipe-api
0ff03ea2c62a6ec47396c3aaccb25279b4375edf
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email','name'] fieldsets = ( (None, {'fields': ('email', 'p...
28
65
0.595622
8424fee8d5063360581ee38c404b62c9c49626e9
4,323
py
Python
misc/for_PramodG/20190722/supervise.py
samveen/teasers
a474239555aa984dac4f1f4be1163e33ae205aff
[ "BSD-2-Clause" ]
null
null
null
misc/for_PramodG/20190722/supervise.py
samveen/teasers
a474239555aa984dac4f1f4be1163e33ae205aff
[ "BSD-2-Clause" ]
null
null
null
misc/for_PramodG/20190722/supervise.py
samveen/teasers
a474239555aa984dac4f1f4be1163e33ae205aff
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # Sample optparse implementation import os import sys import time import json import shlex import subprocess from optparse import OptionParser # Homebrew stupid_logger def do_log(visible,message,newline=True): if visible: if newline: print message else: ...
29.609589
88
0.583391
95a21ec5bfe6c1d126d33a5f0fc8cc805f177f52
22,512
py
Python
ik.py
maxime-tournier/prout.py
212c7eed633e529b76de982d421de783b9effed2
[ "MIT" ]
1
2019-03-07T21:10:00.000Z
2019-03-07T21:10:00.000Z
ik.py
maxime-tournier/snap.py
212c7eed633e529b76de982d421de783b9effed2
[ "MIT" ]
null
null
null
ik.py
maxime-tournier/snap.py
212c7eed633e529b76de982d421de783b9effed2
[ "MIT" ]
null
null
null
import numpy as np from collections import namedtuple from snap.math import * from snap import viewer, gl, tool # TODO: Body/Joints/Constraints should fill the graph directly # TODO joint nullspace (subclass) class Body(object): def __hash__(self): return id(self) def __str__(self): re...
28.787724
91
0.47006
cbfe77fc498f74a1bfcae4752833993167bec736
47,716
py
Python
microsetta_private_api/admin/tests/test_admin_api.py
wasade/microsetta-private-api
8626a8f53d6c70c8b74635b9f7e35df4a810b3a2
[ "BSD-3-Clause" ]
4
2020-02-28T22:40:42.000Z
2021-03-01T03:31:04.000Z
microsetta_private_api/admin/tests/test_admin_api.py
wasade/microsetta-private-api
8626a8f53d6c70c8b74635b9f7e35df4a810b3a2
[ "BSD-3-Clause" ]
248
2019-12-30T17:05:25.000Z
2022-03-09T02:46:46.000Z
microsetta_private_api/admin/tests/test_admin_api.py
wasade/microsetta-private-api
8626a8f53d6c70c8b74635b9f7e35df4a810b3a2
[ "BSD-3-Clause" ]
9
2019-10-29T04:50:27.000Z
2021-11-30T19:02:03.000Z
import pytest from unittest import TestCase from unittest.mock import patch from flask import Response import json import microsetta_private_api.server from microsetta_private_api.model.account import Account, Address from microsetta_private_api.model.project import Project from microsetta_private_api.repo.transaction ...
42.910072
79
0.506685
602203a2dd5a3774858f6926b62f83fef6022544
559
py
Python
oops_fhir/r4/value_set/common_languages.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/common_languages.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/common_languages.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet __all__ = ["CommonLanguages"] _resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json")) class CommonLanguages(ValueSet): """ Common Languages This value set includes co...
18.633333
69
0.706619
f40df871a66ebd0ea63a4ceb941365ef7c7ecb79
1,424
py
Python
O4/lmfitpoly.py
WunderNatur/ITensor
ffd3efc198722ff09028dae91914bb8f03b54745
[ "Apache-2.0" ]
null
null
null
O4/lmfitpoly.py
WunderNatur/ITensor
ffd3efc198722ff09028dae91914bb8f03b54745
[ "Apache-2.0" ]
null
null
null
O4/lmfitpoly.py
WunderNatur/ITensor
ffd3efc198722ff09028dae91914bb8f03b54745
[ "Apache-2.0" ]
null
null
null
import matplotlib import pandas as pd import matplotlib.pyplot as plt import numpy as np import math import lmfit from itertools import cycle import glob from IPython.display import display import seaborn as sns sns.set() size = 400 a2 = -0.1 a3 = 0.0 U = 0.1 df = pd.read_csv('data/spin_size' + str(size) + '_a2' + str...
27.921569
149
0.677669
383618d932d09a1dd259d466cb9a2dcd3904751a
1,118
py
Python
htsohm/config.py
paulboone/htsohm
24d54a1e9642ac16c2d8017ead0e4b482044dfc2
[ "MIT" ]
2
2020-08-27T16:46:41.000Z
2022-02-23T14:32:58.000Z
htsohm/config.py
paulboone/htsohm
24d54a1e9642ac16c2d8017ead0e4b482044dfc2
[ "MIT" ]
null
null
null
htsohm/config.py
paulboone/htsohm
24d54a1e9642ac16c2d8017ead0e4b482044dfc2
[ "MIT" ]
1
2020-09-05T15:26:17.000Z
2020-09-05T15:26:17.000Z
import time import os import yaml def default_configuration(): return { 'override_restart_errors': False, 'keep_configs': False, 'output_dir': os.getcwd(), 'void_fraction_subtype': 'raspa', 'load_restart_path': False, 'num_processes': 1, 'initial_points_rando...
27.268293
90
0.616279
8b839af10f4b074aadd6a8052a2fc5ab79548679
634
py
Python
test_project/rename_forward/urls.py
dr-rompecabezas/django-autocomplete-light
4adff74ac4b20a644f57d2a40a283ed79264543d
[ "MIT" ]
null
null
null
test_project/rename_forward/urls.py
dr-rompecabezas/django-autocomplete-light
4adff74ac4b20a644f57d2a40a283ed79264543d
[ "MIT" ]
null
null
null
test_project/rename_forward/urls.py
dr-rompecabezas/django-autocomplete-light
4adff74ac4b20a644f57d2a40a283ed79264543d
[ "MIT" ]
null
null
null
from dal import autocomplete from django.urls import re_path as url from .models import TModel class LinkedDataView(autocomplete.Select2QuerySetView): def get_queryset(self): qs = super(LinkedDataView, self).get_queryset() possessor = self.forwarded.get('possessor', None) secret = self....
20.451613
57
0.634069
9b05b6a213157646b67852c9004e6053b73ed29e
30,565
py
Python
python/ch10_listing_source.py
ghrhome/redis_in_react
597e3cb06879b88eca9cc4d753c825ca00aa75b1
[ "MIT" ]
null
null
null
python/ch10_listing_source.py
ghrhome/redis_in_react
597e3cb06879b88eca9cc4d753c825ca00aa75b1
[ "MIT" ]
null
null
null
python/ch10_listing_source.py
ghrhome/redis_in_react
597e3cb06879b88eca9cc4d753c825ca00aa75b1
[ "MIT" ]
null
null
null
import binascii from collections import defaultdict from datetime import date from decimal import Decimal import functools import json from Queue import Empty, Queue import threading import time import unittest import uuid import redis_x CONFIGS = {} CHECKED = {} def get_config(conn, type, component, wait=1): k...
40.97185
194
0.568821
46b63ed8349b4fa5344f1d14062cbfe9bfb6c4ad
667
py
Python
manage.py
akifumi-maeda/django-pdf-uploader
0f0e41805d0f9789fbadc19deb32c766721f8bdb
[ "MIT" ]
null
null
null
manage.py
akifumi-maeda/django-pdf-uploader
0f0e41805d0f9789fbadc19deb32c766721f8bdb
[ "MIT" ]
null
null
null
manage.py
akifumi-maeda/django-pdf-uploader
0f0e41805d0f9789fbadc19deb32c766721f8bdb
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pdfuploader.settings') try: from django.core.management import execute_from_command_line except ...
29
75
0.68066
a2da5d6dacbbbb5b9f9ee5ea1727264d8ec9d50b
9,427
py
Python
bnn/src/training/characters.py
wsysunny/BNN
d54bf1362ba80cc0242f0881b4c9b5b98b3a06ab
[ "BSD-3-Clause" ]
null
null
null
bnn/src/training/characters.py
wsysunny/BNN
d54bf1362ba80cc0242f0881b4c9b5b98b3a06ab
[ "BSD-3-Clause" ]
null
null
null
bnn/src/training/characters.py
wsysunny/BNN
d54bf1362ba80cc0242f0881b4c9b5b98b3a06ab
[ "BSD-3-Clause" ]
null
null
null
''' Modified version of the mnist.py training script Designed to be used with the NIST SD 19 Handprinted Forms and Characters dataset: https://www.nist.gov/srd/nist-special-database-19 Best results have been achieved by cropping all images by bounding box of the character, and scaling to 28x28 to emulate the MNIST dat...
33.910072
167
0.618967
8e26e85444046622f5910b0628c68a2ecdd37d52
5,322
py
Python
train/train.py
kithogue/thesis
9b81770b8b3b43baf56994406144262010499019
[ "MIT" ]
null
null
null
train/train.py
kithogue/thesis
9b81770b8b3b43baf56994406144262010499019
[ "MIT" ]
null
null
null
train/train.py
kithogue/thesis
9b81770b8b3b43baf56994406144262010499019
[ "MIT" ]
null
null
null
import os import sys import math import numpy as np import pandas as pd import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader import spacy from transformers import T5Tokenizer, T5ForConditionalGeneration, T5Config # todo: refactor for .py device = torch.d...
28.010526
86
0.630778
4cb292d5248af98bc5314534d216a871f4142fb5
1,496
py
Python
test/test_public_v_auth_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
test/test_public_v_auth_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
test/test_public_v_auth_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ tweak-api Tweak API to integrate with all the Tweak services. You can find out more about Tweak at <a href='https://www.tweak.com'>https://www.tweak.com</a>, #tweak. OpenAPI spec version: 1.0.8-beta.0 Generated by: https://github.com/swagger-api/swagger-codegen.git ...
26.714286
165
0.707888
5234bc38f4a70ea3f5fb206c8452f92235a170ca
63
py
Python
run.py
rodolfoarces/aper-backend
8ef2f897ae24b409faf45cc4d5729e0d7c4d585e
[ "MIT" ]
null
null
null
run.py
rodolfoarces/aper-backend
8ef2f897ae24b409faf45cc4d5729e0d7c4d585e
[ "MIT" ]
1
2021-04-30T21:00:02.000Z
2021-04-30T21:00:02.000Z
run.py
rodolfoarces/aper-backend
8ef2f897ae24b409faf45cc4d5729e0d7c4d585e
[ "MIT" ]
1
2019-06-15T19:10:47.000Z
2019-06-15T19:10:47.000Z
from aper import app if __name__ == '__main__': app.run()
12.6
26
0.650794
a9672ba6f5fd11a75e4ff8c163031112bf229851
11,267
py
Python
run_atari_dqn.py
BY571/BY571
9ddff988ef2516e4752c0296cc88b06bb0221400
[ "MIT" ]
65
2020-04-26T13:15:34.000Z
2022-03-27T05:29:14.000Z
run_atari_dqn.py
BY571/BY571
9ddff988ef2516e4752c0296cc88b06bb0221400
[ "MIT" ]
6
2020-08-14T06:14:38.000Z
2021-03-31T17:29:38.000Z
run_atari_dqn.py
BY571/BY571
9ddff988ef2516e4752c0296cc88b06bb0221400
[ "MIT" ]
15
2020-07-23T17:32:59.000Z
2022-01-31T05:47:31.000Z
from Agents.dqn_agent import DQN_Agent, DQN_C51Agent from Agents import MultiPro from Wrapper import wrapper_new import numpy as np import random from collections import namedtuple, deque import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.tensorboard import SummaryWriter import gym imp...
46.945833
245
0.573001
dd0b81a84240997a21db6901e9abbc18fb1fab1e
1,445
py
Python
ooobuild/dyn/sdbc/x_prepared_batch_execution.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/sdbc/x_prepared_batch_execution.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/sdbc/x_prepared_batch_execution.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
39.054054
104
0.782007
cb541b469034f1878778210bcaeb2f3a6236e03b
678
py
Python
PyMudInterpreter/Lib/site-packages/sqlalchemy/testing/__init__.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
PyMudInterpreter/Lib/site-packages/sqlalchemy/testing/__init__.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
PyMudInterpreter/Lib/site-packages/sqlalchemy/testing/__init__.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
from .warnings import testing_warn, assert_warnings, resetwarnings from . import config from .exclusions import db_spec, _is_excluded, fails_if, skip_if, future,\ fails_on, fails_on_everything_except, skip, only_on, exclude, against,\ _server_version, only_if from .assertions import emits_warning, emits_wa...
29.478261
78
0.775811
fc04899a5b63bf3116a304e460c9ca23df5f27ab
322
py
Python
tests/test.py
0xack13/PyDispatcher
99e77b488615d1c09a562c0880c06b79b7e50345
[ "BSD-3-Clause" ]
null
null
null
tests/test.py
0xack13/PyDispatcher
99e77b488615d1c09a562c0880c06b79b7e50345
[ "BSD-3-Clause" ]
null
null
null
tests/test.py
0xack13/PyDispatcher
99e77b488615d1c09a562c0880c06b79b7e50345
[ "BSD-3-Clause" ]
null
null
null
import unittest from tests import test_dispatcher,test_robustapply, test_saferef def getSuite(): set = [] for module in [ test_dispatcher, test_robustapply, test_saferef, ]: set.append( module.getSuite() ) return unittest.TestSuite( set ) if __name__ == "__main__": unittest.main(defaultTest="getSuite"...
17.888889
64
0.73913
aa69fd3961f43ed00c99978327e0797d152e20f6
3,940
py
Python
data.py
ivclab/Label_Reuse_Semisupervised
56de4ef0fe1f2d5e59838fba5118b8458622cc84
[ "BSD-3-Clause" ]
2
2020-03-11T06:06:38.000Z
2020-10-17T08:00:38.000Z
data.py
ivclab/Label_Reuse_Semisupervised
56de4ef0fe1f2d5e59838fba5118b8458622cc84
[ "BSD-3-Clause" ]
null
null
null
data.py
ivclab/Label_Reuse_Semisupervised
56de4ef0fe1f2d5e59838fba5118b8458622cc84
[ "BSD-3-Clause" ]
1
2020-09-03T13:15:45.000Z
2020-09-03T13:15:45.000Z
import numpy as np import torch from torch.utils.data import Dataset import torchvision from torchvision import transforms from torchvision.datasets import CIFAR10 from PIL import Image TRANSFORM_CIFAR10_VAL = transforms.Compose([ transforms.ToTensor(), transforms.Normalize(mean=(0.4914, 0.4822, 0.446...
31.774194
159
0.639594
de9217caba1b9827f4692222861bb00e709be638
4,321
py
Python
ShortestPathGraphProject/venv/Lib/site-packages/networkx/algorithms/centrality/percolation.py
NathanAllerton/ShortestPathGraph
dc9f5d7acb4bd86ad0d4c72c8a8ca9a66af18c33
[ "MIT" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
ShortestPathGraphProject/venv/Lib/site-packages/networkx/algorithms/centrality/percolation.py
NathanAllerton/ShortestPathGraph
dc9f5d7acb4bd86ad0d4c72c8a8ca9a66af18c33
[ "MIT" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
ShortestPathGraphProject/venv/Lib/site-packages/networkx/algorithms/centrality/percolation.py
NathanAllerton/ShortestPathGraph
dc9f5d7acb4bd86ad0d4c72c8a8ca9a66af18c33
[ "MIT" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# coding=utf8 # Copyright (C) 2018 by # Pranay Kanwar <pranay.kanwar@gmail.com> # All rights reserved. # BSD license. # """Percolation centrality measures.""" from __future__ import division __author__ = """\n""".join(['Pranay Kanwar <pranay.kanwar@gmail.com>']) import networkx as nx from networkx.algori...
32.734848
79
0.660032
b8966137268d798b357c8514b13ab29a0072f9bb
377
py
Python
wazimap_ng/points/migrations/0007_auto_20200316_1305.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
11
2019-12-31T20:27:22.000Z
2022-03-10T03:55:38.000Z
wazimap_ng/points/migrations/0007_auto_20200316_1305.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
164
2020-02-06T15:02:22.000Z
2022-03-30T22:42:00.000Z
wazimap_ng/points/migrations/0007_auto_20200316_1305.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
16
2020-01-03T20:30:24.000Z
2022-01-11T11:05:15.000Z
# Generated by Django 2.2.10 on 2020-03-16 13:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('points', '0006_auto_20200310_2150'), ] operations = [ migrations.AlterModelOptions( name='profilecategory', options={'verbo...
20.944444
66
0.625995
ae954c8df6c08d449164bbeb8d9deae7471d70f4
1,490
py
Python
tests/providers/test_rackspace.py
lamby/lexicon
e9829e7bc859a53b5745e456842685dc764a705b
[ "MIT" ]
null
null
null
tests/providers/test_rackspace.py
lamby/lexicon
e9829e7bc859a53b5745e456842685dc764a705b
[ "MIT" ]
null
null
null
tests/providers/test_rackspace.py
lamby/lexicon
e9829e7bc859a53b5745e456842685dc764a705b
[ "MIT" ]
null
null
null
""""Test for rackspace implementation of the lexicon interface""" from unittest import TestCase import pytest from lexicon.providers.rackspace import Provider from integration_tests import IntegrationTests # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* imple...
35.47619
79
0.695973
90b04cc74a81cc3cc6298629a2ee4c650812cfd4
2,874
py
Python
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_dumpall/Opengauss_Function_Tools_gs_dumpall_Case0063.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_dumpall/Opengauss_Function_Tools_gs_dumpall_Case0063.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_dumpall/Opengauss_Function_Tools_gs_dumpall_Case0063.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
31.933333
84
0.63048
d0e56db7d2e5036fd333c610c7847c24efc94d90
5,874
py
Python
modules/gci.py
mr-martian/phenny
f7160416fdcff605fffd3ad9b572de13bd47d82f
[ "EFL-2.0" ]
null
null
null
modules/gci.py
mr-martian/phenny
f7160416fdcff605fffd3ad9b572de13bd47d82f
[ "EFL-2.0" ]
null
null
null
modules/gci.py
mr-martian/phenny
f7160416fdcff605fffd3ad9b572de13bd47d82f
[ "EFL-2.0" ]
null
null
null
import hashlib import sqlite3 import time from tools import DatabaseCursor, db_path def setup(self): # volatile data: nick -> last_time # entries exist for as long as nick is active self.gci_data = {} # persistent data: nick -> mentor_nick, code, all_time self.gci_db = db_path(self, 'gci_data') ...
27.448598
145
0.632618
ba01e6973fd0d9cf8487153f9c76fd0d0515a210
27,889
py
Python
csdmpy/dependent_variable/__init__.py
DeepanshS/csdmpy
ae8d20dd09f217bb462af67a3145bb6fcb025def
[ "BSD-3-Clause" ]
7
2020-01-04T20:46:08.000Z
2021-05-26T21:09:25.000Z
csdmpy/dependent_variable/__init__.py
deepanshs/csdmpy
bd4e138b10694491113b10177a89305697f1752c
[ "BSD-3-Clause" ]
16
2021-06-09T06:28:27.000Z
2022-03-01T18:12:33.000Z
csdmpy/dependent_variable/__init__.py
deepanshs/csdmpy
bd4e138b10694491113b10177a89305697f1752c
[ "BSD-3-Clause" ]
1
2020-01-03T17:04:16.000Z
2020-01-03T17:04:16.000Z
# -*- coding: utf-8 -*- """Dependent variable object: attributes and methods.""" from __future__ import division from __future__ import print_function import json import warnings from copy import deepcopy import numpy as np from .external import ExternalDataset # lgtm [py/import-own-module] from .internal import In...
33.886999
88
0.56983
6ba255d40389362fb62de97aab3117db38115842
8,623
py
Python
test/functional/test_framework/blocktools.py
tachacoin/tachacoin
a40df0f17ac1c201d3e339944c8c74e668c61a1b
[ "MIT" ]
null
null
null
test/functional/test_framework/blocktools.py
tachacoin/tachacoin
a40df0f17ac1c201d3e339944c8c74e668c61a1b
[ "MIT" ]
null
null
null
test/functional/test_framework/blocktools.py
tachacoin/tachacoin
a40df0f17ac1c201d3e339944c8c74e668c61a1b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Utilities for manipulating blocks and transactions.""" from .address import ( key_to_p2sh_p2wpkh, ...
36.538136
121
0.705323
6c9a6d7fcd7fdaa41e38cbe35b00fbfa67456780
2,663
py
Python
test/functional/rpc_addresses_deprecation.py
SpaceXpanse/xaya
d106801eb4a86f6d7153ea21e7b49807ecf85091
[ "MIT" ]
null
null
null
test/functional/rpc_addresses_deprecation.py
SpaceXpanse/xaya
d106801eb4a86f6d7153ea21e7b49807ecf85091
[ "MIT" ]
null
null
null
test/functional/rpc_addresses_deprecation.py
SpaceXpanse/xaya
d106801eb4a86f6d7153ea21e7b49807ecf85091
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 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 deprecation of reqSigs and addresses RPC fields.""" from test_framework.messages import ( tx_from_...
45.913793
264
0.733383
16ec61f11d2486c0f101f79d86866ef7c30facc5
14,164
py
Python
mmdet/datasets/pipelines/loading.py
zengzhaoyang/RDDN
c6a5d10c8c31c6e768574d255060587fa2316d3e
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/pipelines/loading.py
zengzhaoyang/RDDN
c6a5d10c8c31c6e768574d255060587fa2316d3e
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/pipelines/loading.py
zengzhaoyang/RDDN
c6a5d10c8c31c6e768574d255060587fa2316d3e
[ "Apache-2.0" ]
null
null
null
import os.path as osp import mmcv import numpy as np import pycocotools.mask as maskUtils import zipfile import cv2 from ..registry import PIPELINES @PIPELINES.register_module class LoadImageFromFile(object): def __init__(self, to_float32=False, color_type='color'): self.to_float32 = to_float32 ...
35.233831
80
0.601384
a268b2c06982da6560a622ca4429a99eb42fc1b2
4,393
py
Python
oil/plugins/aws/ec2/instance_high_threat_port/__init__.py
kbougy/oil
d0eb2836f1bc551a50a6dbdc9128bee43d305e39
[ "MIT" ]
3
2017-11-05T00:02:03.000Z
2017-11-12T00:20:47.000Z
oil/plugins/aws/ec2/instance_high_threat_port/__init__.py
kbougy/oil
d0eb2836f1bc551a50a6dbdc9128bee43d305e39
[ "MIT" ]
43
2017-10-29T21:06:00.000Z
2018-02-04T22:40:36.000Z
oil/plugins/aws/ec2/instance_high_threat_port/__init__.py
kbougy/oil
d0eb2836f1bc551a50a6dbdc9128bee43d305e39
[ "MIT" ]
1
2020-01-07T06:51:57.000Z
2020-01-07T06:51:57.000Z
from oil.plugins import Plugin class InstanceHighThreatPortPlugin(Plugin): name = 'instance_high_threat_port' provider = 'aws' service = 'ec2' requirements = { 'instances': ['aws', 'ec2', 'describe_instances'], 'groups': ['aws', 'ec2', 'high_threat_security_groups'], } defau...
38.2
79
0.471204
6cd0000333a42cff04b0ec78662c462cb62d1400
533
py
Python
recommender/tests/core/test_transporter.py
abhishekpathak/recommendation-system
b91961f2baa2ab70626aaadad2f90f609c92a449
[ "MIT" ]
null
null
null
recommender/tests/core/test_transporter.py
abhishekpathak/recommendation-system
b91961f2baa2ab70626aaadad2f90f609c92a449
[ "MIT" ]
null
null
null
recommender/tests/core/test_transporter.py
abhishekpathak/recommendation-system
b91961f2baa2ab70626aaadad2f90f609c92a449
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from mock import MagicMock from core.transporter import Transporter class TestTransporter(object): @pytest.fixture def transporter(self): warehouse = MagicMock() transporter = Transporter(warehouse=warehouse) def test_send_new_ratings_to_warehouse(...
20.5
54
0.677298
56ab6c3c724ba414bac2f8b111af36fa87a0c5cf
3,404
py
Python
pythran/tests/scikit-image/_greyreconstruct.py
sthagen/serge-sans-paille-pythran
fe41dcd069404a75ff56b537b7ac87a0e3c04dc2
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/scikit-image/_greyreconstruct.py
sthagen/serge-sans-paille-pythran
fe41dcd069404a75ff56b537b7ac87a0e3c04dc2
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/scikit-image/_greyreconstruct.py
sthagen/serge-sans-paille-pythran
fe41dcd069404a75ff56b537b7ac87a0e3c04dc2
[ "BSD-3-Clause" ]
null
null
null
""" `reconstruction_loop` originally part of CellProfiler, code licensed under both GPL and BSD licenses. Website: http://www.cellprofiler.org Copyright (c) 2003-2009 Massachusetts Institute of Technology Copyright (c) 2009-2011 Broad Institute All rights reserved. Original author: Lee Kamentsky """ # pythran export...
42.55
79
0.579906
0f6a118854f7ff44d7962b2f6189897564fd736d
4,325
py
Python
backend/lk/logic/twitter.py
Purus/LaunchKitDocker
b8aaf9f1d8943a76ae7e0a81e15e6bebd4b9b08e
[ "Apache-2.0" ]
2,341
2016-07-27T17:23:23.000Z
2022-03-28T03:55:15.000Z
backend/lk/logic/twitter.py
Purus/LaunchKitDocker
b8aaf9f1d8943a76ae7e0a81e15e6bebd4b9b08e
[ "Apache-2.0" ]
52
2016-07-27T23:12:21.000Z
2022-03-11T23:17:41.000Z
backend/lk/logic/twitter.py
Purus/LaunchKitDocker
b8aaf9f1d8943a76ae7e0a81e15e6bebd4b9b08e
[ "Apache-2.0" ]
324
2016-07-27T18:34:53.000Z
2022-03-25T08:56:24.000Z
# # Copyright 2016 Cluster Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
29.827586
122
0.739191
e59949daaca159c9398b9e5ad007e6b994a2a7f3
4,436
py
Python
Project - Compare Performance of Pre-trained Classifiers/get_pet_labels.py
Ali-Parandeh/Udacity_AI_Programming_Nanodegree
638fa8571cdaf1f11db0744e3a84278bbd290a89
[ "MIT" ]
null
null
null
Project - Compare Performance of Pre-trained Classifiers/get_pet_labels.py
Ali-Parandeh/Udacity_AI_Programming_Nanodegree
638fa8571cdaf1f11db0744e3a84278bbd290a89
[ "MIT" ]
null
null
null
Project - Compare Performance of Pre-trained Classifiers/get_pet_labels.py
Ali-Parandeh/Udacity_AI_Programming_Nanodegree
638fa8571cdaf1f11db0744e3a84278bbd290a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/get_pet_labels.py # # PROGRAMMER: Alireza Parandeh # DATE CREATED: 12.05.2019 # REVISED DATE: # PURPOSE: Create the functi...
50.988506
178
0.699955
4ddaa84d66a3198b3dfa9cb2ea722cc9721868c3
337
py
Python
Configuration/Geometry/python/GeometryExtended2015ZeroMaterial_cff.py
scodella/cmssw
974479b50b19bd795cb5f91eac872857fd6290f6
[ "Apache-2.0" ]
1
2021-04-13T13:26:16.000Z
2021-04-13T13:26:16.000Z
Configuration/Geometry/python/GeometryExtended2015ZeroMaterial_cff.py
scodella/cmssw
974479b50b19bd795cb5f91eac872857fd6290f6
[ "Apache-2.0" ]
null
null
null
Configuration/Geometry/python/GeometryExtended2015ZeroMaterial_cff.py
scodella/cmssw
974479b50b19bd795cb5f91eac872857fd6290f6
[ "Apache-2.0" ]
1
2020-04-01T15:30:45.000Z
2020-04-01T15:30:45.000Z
import FWCore.ParameterSet.Config as cms # # Geometry master configuration # # Ideal geometry, needed for simulation from Geometry.CMSCommonData.cmsExtendedGeometry2015ZeroMaterialXML_cfi import * from Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi import * from Geometry.HcalCommonData.hcalDDDSimConstan...
30.636364
79
0.863501
824311fe6ec1cb01a2ea640ec81e9318c2cd525f
7,249
py
Python
code/genric/molecule_representation/_aggregration.py
wendazhou/reversible-inductive-construction
14815d1b5ef5a35a569c0793888bc5548acd64be
[ "MIT" ]
31
2019-07-22T23:34:43.000Z
2021-09-10T14:28:53.000Z
code/genric/molecule_representation/_aggregration.py
wendazhou/reversible-inductive-construction
14815d1b5ef5a35a569c0793888bc5548acd64be
[ "MIT" ]
null
null
null
code/genric/molecule_representation/_aggregration.py
wendazhou/reversible-inductive-construction
14815d1b5ef5a35a569c0793888bc5548acd64be
[ "MIT" ]
3
2019-12-03T14:12:45.000Z
2020-07-17T14:50:18.000Z
""" Module to batch molecule representations """ import numpy as np from functools import partial from collections import OrderedDict, Iterable from ._types import * def _combine_incidence_sparse(all_incidence, offsets_i, offsets_j): indices = [] values = [] total_shape = np.zeros(2, dtype=np.int32) ...
34.684211
114
0.698855
331b39d10ac0ba249c406bda219a34f72e3c949d
1,692
py
Python
orgapy/migrations/0007_author_quote_work.py
ychalier/orgapy
c0c1497cd591c7647c420b3ad889cd4f65daae59
[ "MIT" ]
1
2021-05-12T15:59:27.000Z
2021-05-12T15:59:27.000Z
orgapy/migrations/0007_author_quote_work.py
ychalier/orgapy
c0c1497cd591c7647c420b3ad889cd4f65daae59
[ "MIT" ]
1
2020-03-31T12:18:07.000Z
2020-03-31T12:18:07.000Z
orgapy/migrations/0007_author_quote_work.py
ychalier/orgapy
c0c1497cd591c7647c420b3ad889cd4f65daae59
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-27 18:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('orgapy', '0006_dailyobjective_objective_weeklyobjective'), ] operations = [ migrations.CreateModel( ...
40.285714
186
0.591608
3e408c1e3aaeca7d56efc997c59b469e63b9f57d
864
py
Python
python/calc.py
Kai-von-Glanzreich/DataStructers
227f2b8ba8b320a1edcd024dc31c7a97c5eb4c43
[ "MIT" ]
null
null
null
python/calc.py
Kai-von-Glanzreich/DataStructers
227f2b8ba8b320a1edcd024dc31c7a97c5eb4c43
[ "MIT" ]
null
null
null
python/calc.py
Kai-von-Glanzreich/DataStructers
227f2b8ba8b320a1edcd024dc31c7a97c5eb4c43
[ "MIT" ]
null
null
null
def cal(l,m,n): if n == '+': print("\n",a,"+",b,"=",a+b) elif n == '-': print("\n",a,"-",b,"=",a-b) elif n == '*': print("\n",a,"*",b,"=",a*b) elif n == '/': print("\n",a,"/",b,"=",float(a/b)) else: ...
24.685714
51
0.459491
ae19e367c007242482193bf0d726f5920c86276a
5,315
py
Python
libs/label_lines_core.py
joaochenriques/MCTE_2022
b999d60b6c4153be5a314da262a18e467cb41d7e
[ "MIT" ]
1
2022-03-06T18:30:41.000Z
2022-03-06T18:30:41.000Z
libs/label_lines_core.py
joaochenriques/MCTE_2022
b999d60b6c4153be5a314da262a18e467cb41d7e
[ "MIT" ]
null
null
null
libs/label_lines_core.py
joaochenriques/MCTE_2022
b999d60b6c4153be5a314da262a18e467cb41d7e
[ "MIT" ]
null
null
null
from math import atan2, degrees import warnings import numpy as np import matplotlib.pyplot as plt from matplotlib.dates import date2num, DateConverter, num2date from matplotlib.container import ErrorbarContainer from datetime import datetime # Label line with line2D label data def labelLine(line, x, label=None, ali...
33.639241
100
0.612982