hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f75fb41ee1694cfc73d85bd395b0651c35512be9
10,547
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/system/lvg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/system/lvg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/system/lvg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2013, Alexander Bulimov <lazywolf0@gmail.com> # Based on lvol module by Jeroen Hoekx <jeroen.hoekx@dsquare.be> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print...
35.996587
130
0.576372
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = r''' --- author: - Alexander Bulimov (@abulimov) module: lvg short_descript...
true
true
f75fb431ebc4fe4dad3ff7b8aaf97b7de9b0953b
393
py
Python
graphql_extensions/utils.py
kikeh/django-graphql-extensions
951b295235ca68270066cc70148e2ae937d4eb56
[ "MIT" ]
2
2019-06-19T12:05:33.000Z
2021-07-06T07:26:02.000Z
graphql_extensions/utils.py
kikeh/django-graphql-extensions
951b295235ca68270066cc70148e2ae937d4eb56
[ "MIT" ]
null
null
null
graphql_extensions/utils.py
kikeh/django-graphql-extensions
951b295235ca68270066cc70148e2ae937d4eb56
[ "MIT" ]
null
null
null
import re dashed_to_camel_regex = re.compile(r'(?!^)_([a-zA-Z])') def dashed_to_camel(dashed_data): data = {} for key, value in dashed_data.items(): if isinstance(value, dict): value = dashed_to_camel(value) dashed_key = dashed_to_camel_regex.sub( lambda match: match....
23.117647
55
0.62341
import re dashed_to_camel_regex = re.compile(r'(?!^)_([a-zA-Z])') def dashed_to_camel(dashed_data): data = {} for key, value in dashed_data.items(): if isinstance(value, dict): value = dashed_to_camel(value) dashed_key = dashed_to_camel_regex.sub( lambda match: match....
true
true
f75fb791e1388ef4f024ff09c9ab79693c75ec20
4,149
py
Python
PKRL/dmd.py
pkmtum/Probabilistic_Koopman_Learning
e91730533e53f897221c3b7a62116a20f45eb59b
[ "MIT" ]
3
2020-09-14T10:50:53.000Z
2020-12-02T21:06:53.000Z
PKRL/dmd.py
pkmtum/Probabilistic_Koopman_Learning
e91730533e53f897221c3b7a62116a20f45eb59b
[ "MIT" ]
null
null
null
PKRL/dmd.py
pkmtum/Probabilistic_Koopman_Learning
e91730533e53f897221c3b7a62116a20f45eb59b
[ "MIT" ]
1
2020-09-14T13:38:42.000Z
2020-09-14T13:38:42.000Z
''' Created on 13 Aug 2020 @author: Tobias Pielok ''' import numpy as np from .svd_dmd import * from .ts_data import ts_data from typing import List, Tuple class dmd(object): def __init__(self): ''' Utility object for Dynamic-Mode-Decomposition ''' self.Phi = None s...
37.044643
129
0.619426
import numpy as np from .svd_dmd import * from .ts_data import ts_data from typing import List, Tuple class dmd(object): def __init__(self): self.Phi = None self.eigval = None self.Phi_r = None self.eigval_r = None self.K = None self.T = None def svd...
true
true
f75fb81296fd00f4695b233591236ca28afd9072
2,160
py
Python
encoder/generator_model.py
Johnson-yue/stylegan2encoder
709ccb52fe9a1b4dfdc367f0390cf419f2c3e972
[ "BSD-Source-Code" ]
null
null
null
encoder/generator_model.py
Johnson-yue/stylegan2encoder
709ccb52fe9a1b4dfdc367f0390cf419f2c3e972
[ "BSD-Source-Code" ]
null
null
null
encoder/generator_model.py
Johnson-yue/stylegan2encoder
709ccb52fe9a1b4dfdc367f0390cf419f2c3e972
[ "BSD-Source-Code" ]
1
2021-02-25T07:10:41.000Z
2021-02-25T07:10:41.000Z
import tensorflow as tf import numpy as np import dnnlib.tflib as tflib from functools import partial def create_stub(name, batch_size): return tf.constant(0, dtype='float32', shape=(batch_size, 0)) def create_variable_for_generator(name, batch_size): return tf.get_variable('learnable_dlatents', ...
40.754717
120
0.656019
import tensorflow as tf import numpy as np import dnnlib.tflib as tflib from functools import partial def create_stub(name, batch_size): return tf.constant(0, dtype='float32', shape=(batch_size, 0)) def create_variable_for_generator(name, batch_size): return tf.get_variable('learnable_dlatents', ...
true
true
f75fb8d7fdbf6d5e2d56d6f745e7b5c8254afdfc
211
py
Python
03.Complete Python Developer - Zero to Mastery - AN/01.Python Basics/list_methods2.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
3
2020-06-01T04:17:18.000Z
2020-12-18T03:05:55.000Z
03.Complete Python Developer - Zero to Mastery - AN/01.Python Basics/list_methods2.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
1
2020-04-25T08:01:59.000Z
2020-04-25T08:01:59.000Z
03.Complete Python Developer - Zero to Mastery - AN/01.Python Basics/list_methods2.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
7
2020-04-26T10:02:36.000Z
2021-06-08T05:12:46.000Z
basket = ["a","b","c","d","e"] #index print(basket.index("b")) #index search strat, end print(basket.index("d",0,4)) #python keywords print("x" in basket) print("b" in basket) #count print(basket.count("d"))
15.071429
30
0.63981
basket = ["a","b","c","d","e"] print(basket.index("b")) print(basket.index("d",0,4)) print("x" in basket) print("b" in basket) print(basket.count("d"))
true
true
f75fb8fa457d82a00d6799139c447198f118b37c
628
py
Python
docker_instence/net_test/test.py
DowsonJones/test_test
9f941b20de42090e6ec9b449953ce1dae405ef73
[ "MIT" ]
1
2020-03-30T07:13:08.000Z
2020-03-30T07:13:08.000Z
docker_instence/net_test/test.py
DowsonJones/test_test
9f941b20de42090e6ec9b449953ce1dae405ef73
[ "MIT" ]
null
null
null
docker_instence/net_test/test.py
DowsonJones/test_test
9f941b20de42090e6ec9b449953ce1dae405ef73
[ "MIT" ]
null
null
null
import time import requests def main(): headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36' } url = "https://www.bilibili.com" # url = "http://host.docker.internal:64150" # 与本机通信 try: ...
25.12
139
0.582803
import time import requests def main(): headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36' } url = "https://www.bilibili.com" try: resp = requests.get(url, headers=headers) except Excep...
true
true
f75fb932533e13353876174ca556550d8a68ed68
4,054
py
Python
app/account/forms.py
simzhangbest/flask-base
95356eafdc081760c142519c649a8d4bcdf10527
[ "MIT" ]
null
null
null
app/account/forms.py
simzhangbest/flask-base
95356eafdc081760c142519c649a8d4bcdf10527
[ "MIT" ]
null
null
null
app/account/forms.py
simzhangbest/flask-base
95356eafdc081760c142519c649a8d4bcdf10527
[ "MIT" ]
null
null
null
from flask import url_for from flask_wtf import Form from wtforms import ValidationError from wtforms.fields import ( BooleanField, PasswordField, StringField, SubmitField, ) from wtforms.fields.html5 import EmailField from wtforms.validators import Email, EqualTo, InputRequired, Length from app.models...
33.783333
86
0.586828
from flask import url_for from flask_wtf import Form from wtforms import ValidationError from wtforms.fields import ( BooleanField, PasswordField, StringField, SubmitField, ) from wtforms.fields.html5 import EmailField from wtforms.validators import Email, EqualTo, InputRequired, Length from app.models...
true
true
f75fb95dcf6bcbb94747e7867e5af203214c1309
706
py
Python
data/test/python/f75fb95dcf6bcbb94747e7867e5af203214c1309maven_compile_on_save.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/test/python/f75fb95dcf6bcbb94747e7867e5af203214c1309maven_compile_on_save.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/test/python/f75fb95dcf6bcbb94747e7867e5af203214c1309maven_compile_on_save.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
import sublime, sublime_plugin, os import subprocess class MavenCompileOnSave(sublime_plugin.EventListener): def on_post_save(self, view): folder = view.window().folders()[0] os.chdir(folder) maven_compile_on_save_settings = view.settings().get('maven_compile_on_save') file_extension = view.file_name().split...
44.125
135
0.769122
import sublime, sublime_plugin, os import subprocess class MavenCompileOnSave(sublime_plugin.EventListener): def on_post_save(self, view): folder = view.window().folders()[0] os.chdir(folder) maven_compile_on_save_settings = view.settings().get('maven_compile_on_save') file_extension = view.file_name().split...
false
true
f75fbaabfe6519d95947b3ff6c0777ae57790dd8
3,647
py
Python
cogs/currency.py
nint8835/hyperion-test-bot
f5f3a70d25c80b00b8b0706be7460d6a0adc7a3e
[ "MIT" ]
null
null
null
cogs/currency.py
nint8835/hyperion-test-bot
f5f3a70d25c80b00b8b0706be7460d6a0adc7a3e
[ "MIT" ]
null
null
null
cogs/currency.py
nint8835/hyperion-test-bot
f5f3a70d25c80b00b8b0706be7460d6a0adc7a3e
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from typing import Dict from discord import Embed from discord.ext import commands from .debug import generate_debug_embed from .hyperion import ( currency_details, hyperion_base_url, hyperion_session, resolve_account_id, ) for name, id_ in [("Reoccuring Payou...
33.768519
123
0.596106
from datetime import datetime, timedelta from typing import Dict from discord import Embed from discord.ext import commands from .debug import generate_debug_embed from .hyperion import ( currency_details, hyperion_base_url, hyperion_session, resolve_account_id, ) for name, id_ in [("Reoccuring Payou...
true
true
f75fbac61e11a25b83fe730a820adbf62aa064f4
304
py
Python
python/tvm/autotvm/measure/__init__.py
titikid/tvm
0cf3765b28d457d2503ec20b551e9a8eadb1491d
[ "Apache-2.0" ]
1
2020-12-30T02:48:44.000Z
2020-12-30T02:48:44.000Z
python/tvm/autotvm/measure/__init__.py
titikid/tvm
0cf3765b28d457d2503ec20b551e9a8eadb1491d
[ "Apache-2.0" ]
null
null
null
python/tvm/autotvm/measure/__init__.py
titikid/tvm
0cf3765b28d457d2503ec20b551e9a8eadb1491d
[ "Apache-2.0" ]
null
null
null
"""Distributed executor infrastructure to scale up the tuning""" from .measure import MeasureInput, MeasureResult, MeasureErrorNo, measure_option from .measure_methods import request_remote, create_measure_batch, use_rpc from .local_executor import LocalExecutor from .executor import Future, Executor
38
80
0.842105
from .measure import MeasureInput, MeasureResult, MeasureErrorNo, measure_option from .measure_methods import request_remote, create_measure_batch, use_rpc from .local_executor import LocalExecutor from .executor import Future, Executor
true
true
f75fbb44de6121df19c6ed9c0aa1b94cc59948a4
1,809
py
Python
Automation/NeonOcean.NOC.Mods.Distribution/Site_NeonOcean_NOC_Mods_Distribution/Scripts/ModIndex.py
NeonOcean/NOC.Mods.Distribution
2cd0aefa19b36f48a2195494e8fb6ea53484f35d
[ "CC-BY-4.0" ]
1
2021-06-27T21:18:24.000Z
2021-06-27T21:18:24.000Z
Automation/NeonOcean.NOC.Mods.Distribution/Site_NeonOcean_NOC_Mods_Distribution/Scripts/ModIndex.py
NeonOcean/NOC.Mods.Distribution
2cd0aefa19b36f48a2195494e8fb6ea53484f35d
[ "CC-BY-4.0" ]
null
null
null
Automation/NeonOcean.NOC.Mods.Distribution/Site_NeonOcean_NOC_Mods_Distribution/Scripts/ModIndex.py
NeonOcean/NOC.Mods.Distribution
2cd0aefa19b36f48a2195494e8fb6ea53484f35d
[ "CC-BY-4.0" ]
null
null
null
import os import typing from importlib import util from Site_NeonOcean_NOC_Mods_Distribution.Tools import Formatting from Site_NeonOcean_NOC_Mods_Distribution import Paths class FormattingDict(dict): def __missing__ (self, key): return "{" + key + "}" def BuildModIndex (modNamespace: str) -> str: automationModul...
35.470588
116
0.760641
import os import typing from importlib import util from Site_NeonOcean_NOC_Mods_Distribution.Tools import Formatting from Site_NeonOcean_NOC_Mods_Distribution import Paths class FormattingDict(dict): def __missing__ (self, key): return "{" + key + "}" def BuildModIndex (modNamespace: str) -> str: automationModul...
true
true
f75fbd1e62fd0409e103192ae8872b14c6602b5d
7,368
py
Python
Project/Project 2/Harris_Corner_Detection.py
Ciaran-Carroll/college
46052aa177280f7900e04e0e828247d7097eb07b
[ "MIT" ]
null
null
null
Project/Project 2/Harris_Corner_Detection.py
Ciaran-Carroll/college
46052aa177280f7900e04e0e828247d7097eb07b
[ "MIT" ]
null
null
null
Project/Project 2/Harris_Corner_Detection.py
Ciaran-Carroll/college
46052aa177280f7900e04e0e828247d7097eb07b
[ "MIT" ]
null
null
null
''' 25th April 2018 Group Members: Kevin Burke (14155893) Paul Lynch (16123778) Ciaran Carroll (13113259) Qicong Zhang (16069978) Project 2: Research and Implement Harris Corner Detection using Python/Numpy Investigating the behaviour of the algorithm. Aims: - Find corners in each image ...
33.953917
103
0.673453
from pylab import * import numpy as np from scipy.ndimage import filters from matplotlib import pylab as plt from PIL import Image def compute_harris_response(image, sigma = 2): imagex = np.zeros(image.shape) filters.gaussian_filter(image, (1,1), (0,1), imagex) imagey = np.zeros(image.shape) ...
true
true
f75fbfa38ec377e1e69068b36c8d13739d81baa4
2,468
py
Python
sdk/python/pulumi_azure_native/apimanagement/v20191201preview/list_delegation_setting_secrets.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20191201preview/list_delegation_setting_secrets.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/apimanagement/v20191201preview/list_delegation_setting_secrets.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
37.393939
178
0.711102
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'ListDelegationSettingSecretsResult', 'AwaitableListDelegationSettingSecretsResult', 'list_delegation_setting_secrets', ] @pulumi.output_type clas...
true
true
f75fbfeff2e31f3f6c7e24bee1c86021194e1206
1,127
py
Python
bluebottle/projects/migrations/0031_add_project_roles.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/projects/migrations/0031_add_project_roles.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/projects/migrations/0031_add_project_roles.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-08-10 20:09 from __future__ import unicode_literals import bluebottle.utils.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ...
37.566667
225
0.700089
from __future__ import unicode_literals import bluebottle.utils.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('p...
true
true
f75fc1af1bce3dbde85a927f299fc1263d91284f
2,212
py
Python
conflowgen/tests/domain_models/factories/test_vehicle_factory__create_feeder.py
bbargstaedt/conflowgen
b5b5c0e2df8a605d23ef467aaa3e88aa463a34ee
[ "MIT" ]
5
2022-02-16T11:44:42.000Z
2022-02-24T20:02:17.000Z
conflowgen/tests/domain_models/factories/test_vehicle_factory__create_feeder.py
bbargstaedt/conflowgen
b5b5c0e2df8a605d23ef467aaa3e88aa463a34ee
[ "MIT" ]
90
2021-12-08T14:05:44.000Z
2022-03-24T08:53:31.000Z
conflowgen/tests/domain_models/factories/test_vehicle_factory__create_feeder.py
bbargstaedt/conflowgen
b5b5c0e2df8a605d23ef467aaa3e88aa463a34ee
[ "MIT" ]
5
2021-12-07T16:05:15.000Z
2022-02-16T08:24:07.000Z
""" Check if containers can be stored in the database, i.e. the ORM model is working. """ import datetime import unittest from conflowgen.domain_models.factories.vehicle_factory import UnrealisticValuesException, VehicleFactory from conflowgen.domain_models.data_types.mode_of_transport import ModeOfTransport from con...
34.5625
105
0.651447
import datetime import unittest from conflowgen.domain_models.factories.vehicle_factory import UnrealisticValuesException, VehicleFactory from conflowgen.domain_models.data_types.mode_of_transport import ModeOfTransport from conflowgen.domain_models.vehicle import Feeder, LargeScheduledVehicle, Schedule from conflowg...
true
true
f75fc3e5b8740c65c2c3b9994500b7018d15ef82
483
py
Python
catkin_ws/build/localize/catkin_generated/pkg.installspace.context.pc.py
preethamam/ROS-TurtleBot-2DAreaScanning
bcd6c976347839d5f2d2bca15c331cf4de8af342
[ "MIT" ]
null
null
null
catkin_ws/build/localize/catkin_generated/pkg.installspace.context.pc.py
preethamam/ROS-TurtleBot-2DAreaScanning
bcd6c976347839d5f2d2bca15c331cf4de8af342
[ "MIT" ]
null
null
null
catkin_ws/build/localize/catkin_generated/pkg.installspace.context.pc.py
preethamam/ROS-TurtleBot-2DAreaScanning
bcd6c976347839d5f2d2bca15c331cf4de8af342
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/turtlebot/catkin_ws/install/include".split(';') if "/home/turtlebot/catkin_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX =...
53.666667
149
0.747412
CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/turtlebot/catkin_ws/install/include".split(';') if "/home/turtlebot/catkin_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-llocalize".split(';') if "-llocalize" != "" else [] PR...
true
true
f75fc4005156127a69379806658cfe5e48b28030
5,144
py
Python
octavia/controller/worker/flows/health_monitor_flows.py
Sirius21c/octavia
e7057a566689967f23ede519235d6075a01a6d61
[ "Apache-2.0" ]
null
null
null
octavia/controller/worker/flows/health_monitor_flows.py
Sirius21c/octavia
e7057a566689967f23ede519235d6075a01a6d61
[ "Apache-2.0" ]
null
null
null
octavia/controller/worker/flows/health_monitor_flows.py
Sirius21c/octavia
e7057a566689967f23ede519235d6075a01a6d61
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # 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...
46.763636
79
0.701983
from taskflow.patterns import linear_flow from octavia.common import constants from octavia.controller.worker.tasks import amphora_driver_tasks from octavia.controller.worker.tasks import database_tasks from octavia.controller.worker.tasks import lifecycle_tasks from octavia.controller.worker.tasks import model_tasks...
true
true
f75fc4960900ede18d2b0963965211e9350a758f
1,754
py
Python
Chapter4/Other.py
Daipuwei/Introduction-to-Machine-Learning-Based-on-Mathematical-Principles-with-Python
625675ce514e461ce74cf30586d241cbcb1e4848
[ "MIT" ]
19
2020-04-04T08:19:10.000Z
2022-03-12T12:03:20.000Z
Chapter4/Other.py
Daipuwei/Introduction-to-Machine-Learning-Based-on-Mathematical-Principles-with-Python
625675ce514e461ce74cf30586d241cbcb1e4848
[ "MIT" ]
null
null
null
Chapter4/Other.py
Daipuwei/Introduction-to-Machine-Learning-Based-on-Mathematical-Principles-with-Python
625675ce514e461ce74cf30586d241cbcb1e4848
[ "MIT" ]
13
2020-06-16T03:49:59.000Z
2022-01-18T07:47:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/11/4 18:48 # @Author : DaiPuWei # E-Mail : 771830171@qq.com # blog : https://blog.csdn.net/qq_30091945 # @Site : 中国民航大学北教25实验室506 # @File : Other.py # @Software: PyCharm import pandas as pd import numpy as np def Merge(data,row,...
27.40625
72
0.628278
import pandas as pd import numpy as np def Merge(data,row,col): data = np.array(data).T return pd.DataFrame(data=data,columns=col,index=row) def Confusion_Matrix_Merge(confusion_matrix,name): return pd.DataFrame(data=confusion_matrix,index=name,columns=name) def confusion_matrix(real_result,p...
true
true
f75fc4f4475027d0b82846040bb1fdd46edd5c4a
5,132
py
Python
kubernetes/client/models/v1_persistent_volume_status.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
1
2021-06-10T23:44:11.000Z
2021-06-10T23:44:11.000Z
kubernetes/client/models/v1_persistent_volume_status.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_persistent_volume_status.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
1
2018-11-06T16:33:43.000Z
2018-11-06T16:33:43.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
28.043716
171
0.582424
from pprint import pformat from six import iteritems import re class V1PersistentVolumeStatus(object): swagger_types = { 'message': 'str', 'phase': 'str', 'reason': 'str' } attribute_map = { 'message': 'message', 'phase': 'phase', 'reason': 'reason' ...
true
true
f75fc593ec2c2c86c256cf3a1f8188e09ae3b6eb
5,327
py
Python
venv/lib/python3.6/site-packages/sqlalchemy/connectors/mxodbc.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/sqlalchemy/connectors/mxodbc.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/sqlalchemy/connectors/mxodbc.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
# connectors/mxodbc.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ Provide a SQLALchemy connector for the eGenix mxODBC commercial Python adap...
34.816993
83
0.651586
import sys import re import warnings from . import Connector class MxODBCConnector(Connector): driver = "mxodbc" supports_sane_multi_rowcount = False supports_unicode_statements = True supports_unicode_binds = True supports_native_decimal = True @classmethod def dbapi(cls): ...
true
true
f75fc5e07967538f83429c093156e60591a541ce
737
py
Python
rome/accounts/models.py
fpruitt/Rome
be6d34a198d3c5a7f4f2384fa647d02935840f4d
[ "MIT" ]
null
null
null
rome/accounts/models.py
fpruitt/Rome
be6d34a198d3c5a7f4f2384fa647d02935840f4d
[ "MIT" ]
null
null
null
rome/accounts/models.py
fpruitt/Rome
be6d34a198d3c5a7f4f2384fa647d02935840f4d
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models class LearnerProfile(models.Model): user = models.OneToOneField(User, unique=True, related_name='learner_profile') active = models.BooleanField(default=True) def __str__(self): return "LearnerProfile: {name}".format(name=sel...
36.85
112
0.75848
from django.contrib.auth.models import User from django.db import models class LearnerProfile(models.Model): user = models.OneToOneField(User, unique=True, related_name='learner_profile') active = models.BooleanField(default=True) def __str__(self): return "LearnerProfile: {name}".format(name=sel...
true
true
f75fc6f58195648efe9a9ad2c56a016f3c074bd8
4,708
py
Python
Chapter11/contextual_bandit_agent.py
retwal/Predictive
57c3cb64901b7a0629b70053ecf01dac5be66d6f
[ "MIT" ]
73
2017-10-27T22:44:32.000Z
2021-12-25T18:37:51.000Z
Chapter11/contextual_bandit_agent.py
retwal/Predictive
57c3cb64901b7a0629b70053ecf01dac5be66d6f
[ "MIT" ]
3
2018-09-20T21:47:21.000Z
2021-03-14T05:32:41.000Z
Chapter11/contextual_bandit_agent.py
retwal/Predictive
57c3cb64901b7a0629b70053ecf01dac5be66d6f
[ "MIT" ]
72
2017-11-06T07:08:01.000Z
2021-11-25T09:00:28.000Z
import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import os from tensorflow.python.framework import ops import warnings warnings.filterwarnings("ignore") os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' ops.reset_default_graph() class contextualBandit(): def __init__(self): ''' ...
45.269231
165
0.679694
import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import os from tensorflow.python.framework import ops import warnings warnings.filterwarnings("ignore") os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' ops.reset_default_graph() class contextualBandit(): def __init__(self): self.s...
true
true
f75fc6f8bf9507bd6c1a1e4b893b9157cb5c30e6
490
py
Python
Ejercicios/Arrays.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
Ejercicios/Arrays.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
Ejercicios/Arrays.py
dannieldev/Fundamentos-de-Python
63bf92c7256b373b631cae3ae9a80a3a5071f61d
[ "MIT" ]
null
null
null
lis = [2,"tres",True,["uno",10,"Hola"],2,"Miau"] rec = lis[2] print(lis) print(rec) print(lis[3][2]) #Acceder a un lista dentro de una lista lis[0] = "zero" lis2 = lis[1:3]#copiar datos de otro array a un nuevo array lis3 = lis[0::2]#Va intercalando dependiendo de lo deseado lis24 = lis[1:3]# print(li...
21.304348
60
0.644898
lis = [2,"tres",True,["uno",10,"Hola"],2,"Miau"] rec = lis[2] print(lis) print(rec) print(lis[3][2]) lis[0] = "zero" lis2 = lis[1:3]lis3 = lis[0::2]lis24 = lis[1:3] print(lis) print(lis2) print(lis3) lis[0:3] = [4,4,5] print(lis) lis5 = lis[-1] print(lis5)
true
true
f75fc71e0b0f32c60b085dd3ef757c6aa74f2215
185
py
Python
templates/disk/disk.ovc/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
null
null
null
templates/disk/disk.ovc/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
148
2016-03-21T08:45:34.000Z
2021-09-08T12:28:55.000Z
templates/disk/disk.ovc/actions.py
Jumpscale/ays_jumpscale8
4ff4a2fb3b95de6f46ea494bd5b5a2a0fb9ecdb1
[ "Apache-2.0" ]
null
null
null
def init(job): service = job.service if service.model.data.type.upper() not in ["D", "B"]: raise j.exceptions.Input("disk.ovc's type must be data (D) or boot (B) only")
37
85
0.627027
def init(job): service = job.service if service.model.data.type.upper() not in ["D", "B"]: raise j.exceptions.Input("disk.ovc's type must be data (D) or boot (B) only")
true
true
f75fc87ea772cff0501d6ad5c10633dc42ed7e2f
7,906
py
Python
scripts/tests/genpinctrl/test_genpinctrl.py
Logitech/zephyrproject-rtos-hal_stm32
d9edca6b1824b81fc517532d7668890a2e4b22ad
[ "Apache-2.0" ]
1
2021-06-30T12:20:26.000Z
2021-06-30T12:20:26.000Z
scripts/tests/genpinctrl/test_genpinctrl.py
Logitech/zephyrproject-rtos-hal_stm32
d9edca6b1824b81fc517532d7668890a2e4b22ad
[ "Apache-2.0" ]
null
null
null
scripts/tests/genpinctrl/test_genpinctrl.py
Logitech/zephyrproject-rtos-hal_stm32
d9edca6b1824b81fc517532d7668890a2e4b22ad
[ "Apache-2.0" ]
1
2021-06-15T09:05:43.000Z
2021-06-15T09:05:43.000Z
from pathlib import Path import pytest from genpinctrl import ( validate_config_entry, format_mode, format_mode_f1, format_remap, get_gpio_ip_afs, get_mcu_signals, main, ) def test_validate_config_entry(): """Check that config entries are validated correctly""" # no name ent...
29.390335
84
0.566279
from pathlib import Path import pytest from genpinctrl import ( validate_config_entry, format_mode, format_mode_f1, format_remap, get_gpio_ip_afs, get_mcu_signals, main, ) def test_validate_config_entry(): entry = {} with pytest.raises(ValueError): validate_config_en...
true
true
f75fc8eaefa1b470d5e4b9a91819ffad41fb1fa1
15,705
py
Python
src/fmda/fuel_moisture_da.py
openwfm/wrfxpy
7f7feba97baa6cd85134185520559028d2b5464e
[ "MIT" ]
23
2016-09-07T08:27:06.000Z
2021-11-18T06:55:24.000Z
src/fmda/fuel_moisture_da.py
vejmelkam/wrfxpy
7f7feba97baa6cd85134185520559028d2b5464e
[ "MIT" ]
67
2016-10-03T07:42:51.000Z
2022-03-27T03:27:14.000Z
src/fmda/fuel_moisture_da.py
vejmelkam/wrfxpy
7f7feba97baa6cd85134185520559028d2b5464e
[ "MIT" ]
15
2016-05-23T15:11:04.000Z
2022-01-13T21:51:22.000Z
# Copyright (C) 2013-2016 Martin Vejmelka, UC Denver # # 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, modify, mer...
44.871429
138
0.634702
from __future__ import absolute_import from __future__ import print_function from wrf.wrf_data import WRFModelData from .trend_surface_model import fit_tsm from utils import ensure_dir, great_circle_distance, find_closest_grid_point from .fuel_moisture_model import FuelMoistureModel from .fm10_observation import FM10O...
true
true
f75fc9af770cff09d82accf5cee106c56c81a11b
1,293
py
Python
alien_invasion.py
Nickhool/alien_invasion
64629f565e6ee08494224a0e6d98ecba684ed69b
[ "MIT" ]
1
2019-04-19T07:18:27.000Z
2019-04-19T07:18:27.000Z
alien_invasion.py
Nickhool/alien_invasion
64629f565e6ee08494224a0e6d98ecba684ed69b
[ "MIT" ]
null
null
null
alien_invasion.py
Nickhool/alien_invasion
64629f565e6ee08494224a0e6d98ecba684ed69b
[ "MIT" ]
null
null
null
__Author__ = "noduez" import sys import pygame from pygame.sprite import Group from settings import Settings from game_stats import GameStats from scoreboard import Scoreboard from button import Button from ship import Ship import game_functions as gf def run_game(): # 初始化游戏并创建一个屏幕对象 pygame.init() ai_se...
30.069767
91
0.712297
__Author__ = "noduez" import sys import pygame from pygame.sprite import Group from settings import Settings from game_stats import GameStats from scoreboard import Scoreboard from button import Button from ship import Ship import game_functions as gf def run_game(): pygame.init() ai_settings = Settings...
true
true
f75fc9d64a6b512c229591e4c3cde0bce2cd057c
8,168
py
Python
backend/src/reporting/views.py
aijdissanayake/request-management
a88a2ce35a7a1a98630ffd14c1a31a5173b662c8
[ "MIT" ]
null
null
null
backend/src/reporting/views.py
aijdissanayake/request-management
a88a2ce35a7a1a98630ffd14c1a31a5173b662c8
[ "MIT" ]
1
2022-02-28T01:46:21.000Z
2022-02-28T01:46:21.000Z
backend/src/reporting/views.py
mohamednizar/request-management
a88a2ce35a7a1a98630ffd14c1a31a5173b662c8
[ "MIT" ]
1
2020-05-04T07:11:42.000Z
2020-05-04T07:11:42.000Z
from rest_framework.views import APIView from rest_framework import status from rest_framework.response import Response from django.http import HttpResponse from xhtml2pdf import pisa import datetime from django.db import connection import pandas as pd import requests import json from django.conf import settings import...
41.252525
118
0.628795
from rest_framework.views import APIView from rest_framework import status from rest_framework.response import Response from django.http import HttpResponse from xhtml2pdf import pisa import datetime from django.db import connection import pandas as pd import requests import json from django.conf import settings import...
true
true
f75fca183b7de432445f8bb4f8e62980e63cf73a
5,040
py
Python
docs/conf.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
3
2019-11-20T08:15:28.000Z
2020-11-01T15:32:57.000Z
docs/conf.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
4
2019-05-13T15:28:46.000Z
2019-12-19T20:47:02.000Z
docs/conf.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
1
2021-07-07T16:55:41.000Z
2021-07-07T16:55:41.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
32.941176
80
0.65
import os os.environ['QISKIT_DOCS'] = 'TRUE' project = 'Qiskit' copyright = '2019, Qiskit Development Team' author = 'Qiskit Development Team' version = '' release = '0.12.0' extensions = [ 'sphinx.ext.napoleon', 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.mathjax', 'sphi...
true
true
f75fcac8a704986bc28bfb74a20a94ea02b8e73b
333
py
Python
setup.py
emre/hivebar
a939e4890e17d53ac7728274de8d9a6aa2debc77
[ "MIT" ]
null
null
null
setup.py
emre/hivebar
a939e4890e17d53ac7728274de8d9a6aa2debc77
[ "MIT" ]
1
2020-04-14T13:24:03.000Z
2020-04-14T13:24:03.000Z
setup.py
emre/hivebar
a939e4890e17d53ac7728274de8d9a6aa2debc77
[ "MIT" ]
null
null
null
from setuptools import setup APP = ['hivebar.py'] DATA_FILES = [] OPTIONS = { 'argv_emulation': True, 'plist': { 'LSUIElement': True, }, 'packages': ['rumps'], 'iconfile':'hivebar.icns', } setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=[...
15.857143
32
0.585586
from setuptools import setup APP = ['hivebar.py'] DATA_FILES = [] OPTIONS = { 'argv_emulation': True, 'plist': { 'LSUIElement': True, }, 'packages': ['rumps'], 'iconfile':'hivebar.icns', } setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=[...
true
true
f75fcc68f69839268ac35d8fd902fcdaa112a170
12,245
py
Python
dynamic_programming/64_minimum_path_sum.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
dynamic_programming/64_minimum_path_sum.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
dynamic_programming/64_minimum_path_sum.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
# top down, classic 2D O(mn) time, O(mn) space # top down, 1-D O(mn) time, O(n) space # top down, O(mn) time, O(1) space # bottom up, classic 2D O(mn) time, O(mn) space # bottom up, 1-D O(mn) time, O(n) space # bottom up, O(mn) time, O(1) space # left-right, classic 2D O(mn) time, O(mn) space # left-right, 1-D O(mn) ti...
35.699708
95
0.393712
class Solution: def minPathSum1(self, grid): nrows = len(grid) ncols = len(grid[0]) ans = [[0 for i in range(ncols)] for j in range(nrows)] for r in range(nrows): for c in range(ncols): if r == 0 and c > 0: ans...
true
true
f75fcd205c18dda9327c1f4e3c36fbd5baf12ebf
11,102
py
Python
plugins/modules/oci_compute_dedicated_vm_host_actions.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_compute_dedicated_vm_host_actions.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_compute_dedicated_vm_host_actions.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
37.255034
154
0.640785
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "1.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ --- module: oci_compute_dedicated_vm_host_actions short_description: Perform actions on a Dedic...
true
true
f75fcd21034b0f22c1f3483b8d20ef3a5f306acd
486
py
Python
data/scripts/templates/object/creature/npc/droid/crafted/shared_imperial_probot_advanced.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/creature/npc/droid/crafted/shared_imperial_probot_advanced.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/creature/npc/droid/crafted/shared_imperial_probot_advanced.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 = Creature() result.template = "object/creature/npc/droid/crafted/shared_imperial_probot_advanced.iff" result.attri...
28.588235
90
0.746914
from swgpy.object import * def create(kernel): result = Creature() result.template = "object/creature/npc/droid/crafted/shared_imperial_probot_advanced.iff" result.attribute_template_id = 3 result.stfName("droid_name","arakyd_probot_crafted_advanced") return result
true
true
f75fcda5a43c3aaf59c567b841abca2b84f2e735
269
gyp
Python
nodejs/node_modules/speaker/binding.gyp
qcuong98/KT-AI-Hackathon
f63f318a88ca856017ebb7bc1186b29c54a9c0ec
[ "MIT" ]
2
2016-07-01T21:54:03.000Z
2016-07-05T21:23:30.000Z
nodejs/node_modules/speaker/binding.gyp
qcuong98/KT-AI-Hackathon
f63f318a88ca856017ebb7bc1186b29c54a9c0ec
[ "MIT" ]
null
null
null
nodejs/node_modules/speaker/binding.gyp
qcuong98/KT-AI-Hackathon
f63f318a88ca856017ebb7bc1186b29c54a9c0ec
[ "MIT" ]
1
2020-08-03T23:59:00.000Z
2020-08-03T23:59:00.000Z
{ 'targets': [ { 'target_name': 'binding', 'sources': [ 'src/binding.cc', ], "include_dirs" : [ '<!(node -e "require(\'nan\')")' ], 'dependencies': [ 'deps/mpg123/mpg123.gyp:output' ], } ] }
15.823529
40
0.401487
{ 'targets': [ { 'target_name': 'binding', 'sources': [ 'src/binding.cc', ], "include_dirs" : [ '<!(node -e "require(\'nan\')")' ], 'dependencies': [ 'deps/mpg123/mpg123.gyp:output' ], } ] }
true
true
f75fcde9bcdaf80e58f5d7bacada0c27cec3509d
456
py
Python
tests_cutest/runTests.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
10
2020-03-03T21:56:01.000Z
2022-03-29T08:36:01.000Z
tests_cutest/runTests.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
6
2020-03-03T22:02:41.000Z
2021-11-18T12:31:00.000Z
tests_cutest/runTests.py
DLR-SC/sqpdfo
ae3213764fdd8d0d0a05bcc3d13be63d811a0a37
[ "BSD-3-Clause" ]
3
2021-02-17T14:43:30.000Z
2022-03-05T08:46:48.000Z
import unittest import sys import warnings warnings.simplefilter('ignore', FutureWarning) sys.path.append("../") # Import import ecdfo_on_cuter_equalities_test #import ecdfo_main_test loader = unittest.TestLoader() # Tests suite = loader.loadTestsFromTestCase(ecdfo_on_cuter_equalities_test.Test_ecdfo_on_cuter_equa...
25.333333
99
0.839912
import unittest import sys import warnings warnings.simplefilter('ignore', FutureWarning) sys.path.append("../") import ecdfo_on_cuter_equalities_test loader = unittest.TestLoader() suite = loader.loadTestsFromTestCase(ecdfo_on_cuter_equalities_test.Test_ecdfo_on_cuter_equalities) unittest.TextTestRunner(verbosity...
true
true
f75fce905cb07f4733ea9e24d9e63d0d0ac3c3e9
735
py
Python
setup.py
jeefies/imdata
d750198d8a63b59419f8f1c4fcbd679cd85badcb
[ "MIT" ]
1
2020-11-07T07:13:51.000Z
2020-11-07T07:13:51.000Z
setup.py
jeefies/imdata
d750198d8a63b59419f8f1c4fcbd679cd85badcb
[ "MIT" ]
null
null
null
setup.py
jeefies/imdata
d750198d8a63b59419f8f1c4fcbd679cd85badcb
[ "MIT" ]
null
null
null
from setuptools import setup # from blog.csdn.net/tcy23456/article/details/91886555 with open('README.md') as f: long_des=f.read() with open('requirements.txt') as f: reqs = f.read().strip().split() setup( name = 'imdata', author = 'Jeef', version = '0.0.3', packages = ['imda...
28.269231
66
0.6
from setuptools import setup with open('README.md') as f: long_des=f.read() with open('requirements.txt') as f: reqs = f.read().strip().split() setup( name = 'imdata', author = 'Jeef', version = '0.0.3', packages = ['imdata'], author_email = 'jeefy163@163.com', ...
true
true
f75fcf42d05ddad6259cb5617d58b031b96ac588
4,698
py
Python
source/rttov_test/profile-datasets-py/standard54lev_o3/004.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/standard54lev_o3/004.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/standard54lev_o3/004.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/standard54lev_o3/004.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/standard54lev_o3/004.py" self["Q"] = numpy.array([ 1.39778500e+00, 2.03490900e+00, 2.66179600e+00, 3.22653400e+00, 3.85400000e+00, 4.3405080...
47.938776
90
0.573648
self["ID"] = "../profile-datasets-py/standard54lev_o3/004.py" self["Q"] = numpy.array([ 1.39778500e+00, 2.03490900e+00, 2.66179600e+00, 3.22653400e+00, 3.85400000e+00, 4.34050800e+00, 4.69177600e+00, 4.88752800e+00, 4.96471600e+00, 4.99997500e+00, 4.99997500e+00, 4.99997500e...
true
true
f75fd0e76d8e7151e1fc5e6b93bf6095ce1fd7d6
2,041
py
Python
cisco/asa-2020.py
phiberoptick/My-Shodan-Scripts
94003231c620cfbe8d96e9ae675e4d01fa4911ea
[ "MIT" ]
845
2018-03-14T14:19:23.000Z
2022-03-26T13:03:18.000Z
cisco/asa-2020.py
phiberoptick/My-Shodan-Scripts
94003231c620cfbe8d96e9ae675e4d01fa4911ea
[ "MIT" ]
1
2018-03-05T23:10:42.000Z
2018-04-10T14:05:11.000Z
cisco/asa-2020.py
phiberoptick/My-Shodan-Scripts
94003231c620cfbe8d96e9ae675e4d01fa4911ea
[ "MIT" ]
277
2017-09-17T22:28:03.000Z
2022-03-31T08:49:58.000Z
#!/usr/bin/env python # # assa-2020.py # Search SHODAN for Cisco ASA CVE-2020-3452 # # Author: random_robbie import shodan import sys import re import requests from time import sleep from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarnin...
25.197531
270
0.66536
import shodan import sys import re import requests from time import sleep from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) API_KEY = "YOURAPIKEY" SEARCH_FOR = 'webvpn port:"443"' FILE = "/+CSCOT+/translation-table?type=mst&te...
true
true
f75fd18b5c2f6d574bb40fa440a6fe288f953ebe
7,817
py
Python
paxes_nova/network/powerkvm/agent/ovs_port_remove.py
windskyer/k_nova
63579dbfcfcda5def5b588a6728bfff85ad4564e
[ "Apache-2.0" ]
null
null
null
paxes_nova/network/powerkvm/agent/ovs_port_remove.py
windskyer/k_nova
63579dbfcfcda5def5b588a6728bfff85ad4564e
[ "Apache-2.0" ]
null
null
null
paxes_nova/network/powerkvm/agent/ovs_port_remove.py
windskyer/k_nova
63579dbfcfcda5def5b588a6728bfff85ad4564e
[ "Apache-2.0" ]
null
null
null
# # ================================================================= # ================================================================= from nova import utils from nova.openstack.common import log as logging from powervc_nova.network.powerkvm.agent import commandlet from powervc_nova.network.powerkvm.agent import mu...
39.479798
77
0.543815
from nova import utils from nova.openstack.common import log as logging from powervc_nova.network.powerkvm.agent import commandlet from powervc_nova.network.powerkvm.agent import multi_op from powervc_nova.network.powerkvm.agent import ifcfg_builder from powervc_nova.network.powerkvm.agent.common import exception from...
true
true
f75fd19729c3981054cefa97680a7f2921717c99
1,973
py
Python
examples/converter/convert_from_json.py
steven0129/TinyNeuralNetwork
2ffa5a806cade1d1ebd2aa54c5697d3ad131d22f
[ "MIT" ]
241
2021-11-02T06:59:37.000Z
2022-03-31T03:20:42.000Z
examples/converter/convert_from_json.py
steven0129/TinyNeuralNetwork
2ffa5a806cade1d1ebd2aa54c5697d3ad131d22f
[ "MIT" ]
48
2021-11-03T11:55:06.000Z
2022-03-29T10:46:07.000Z
examples/converter/convert_from_json.py
steven0129/TinyNeuralNetwork
2ffa5a806cade1d1ebd2aa54c5697d3ad131d22f
[ "MIT" ]
41
2021-11-02T07:50:43.000Z
2022-03-29T03:47:45.000Z
import argparse import os import torch from tinynn.converter import TFLiteConverter from tinynn.util.converter_util import export_converter_files, parse_config CURRENT_PATH = os.path.abspath(os.path.dirname(__file__)) def export_files(): from models.cifar10.mobilenet import DEFAULT_STATE_DICT, Mobilenet mo...
32.883333
118
0.721744
import argparse import os import torch from tinynn.converter import TFLiteConverter from tinynn.util.converter_util import export_converter_files, parse_config CURRENT_PATH = os.path.abspath(os.path.dirname(__file__)) def export_files(): from models.cifar10.mobilenet import DEFAULT_STATE_DICT, Mobilenet mo...
true
true
f75fd1ee111bc88c9fb2b2cfa5c76584df628d23
2,277
py
Python
net_params.py
553269487/ConvLSTM-PyTorch
bdd5311be0b938e9aa0efe6db64b65d4c136c1c6
[ "MIT" ]
1
2020-11-10T09:55:38.000Z
2020-11-10T09:55:38.000Z
net_params.py
DIfficult-name/ConvLSTM-PyTorch
d44942983c05c66381eeb9f54e88c828e9e37cfc
[ "MIT" ]
null
null
null
net_params.py
DIfficult-name/ConvLSTM-PyTorch
d44942983c05c66381eeb9f54e88c828e9e37cfc
[ "MIT" ]
null
null
null
from collections import OrderedDict from ConvRNN import CGRU_cell, CLSTM_cell # build model # in_channels=v[0], out_channels=v[1], kernel_size=v[2], stride=v[3], padding=v[4] convlstm_encoder_params = [ [ OrderedDict({'conv1_leaky_1': [1, 16, 3, 1, 1]}), OrderedDict({'conv2_leaky_1': [64, 64, 3, 2...
33.985075
85
0.600351
from collections import OrderedDict from ConvRNN import CGRU_cell, CLSTM_cell convlstm_encoder_params = [ [ OrderedDict({'conv1_leaky_1': [1, 16, 3, 1, 1]}), OrderedDict({'conv2_leaky_1': [64, 64, 3, 2, 1]}), OrderedDict({'conv3_leaky_1': [96, 96, 3, 2, 1]}), ], [ CLSTM_ce...
true
true
f75fd46451c4b47e72928a8a006c3f2b0a9ccf65
9,486
py
Python
src/events/models.py
yychen/pycon.tw
c41de9877a304e10761aef6649611e1b849355f8
[ "MIT" ]
null
null
null
src/events/models.py
yychen/pycon.tw
c41de9877a304e10761aef6649611e1b849355f8
[ "MIT" ]
null
null
null
src/events/models.py
yychen/pycon.tw
c41de9877a304e10761aef6649611e1b849355f8
[ "MIT" ]
null
null
null
import datetime import functools import json import urllib.parse import pytz from django.conf import settings from django.contrib.staticfiles import finders from django.urls import reverse, reverse_lazy from django.db import models from django.utils.timezone import make_naive from django.utils.translation import get_...
25.918033
96
0.611638
import datetime import functools import json import urllib.parse import pytz from django.conf import settings from django.contrib.staticfiles import finders from django.urls import reverse, reverse_lazy from django.db import models from django.utils.timezone import make_naive from django.utils.translation import get_...
true
true
f75fd4d4aad2d54dc42d9cef40c4afd45a3f778a
16,975
py
Python
faeAuditor/auditGroupResults/migrations/0001_initial.py
opena11y/fae-auditor
ea9099b37b77ddc30092b0cdd962647c92b143a7
[ "Apache-2.0" ]
2
2018-02-28T19:03:28.000Z
2021-09-30T13:40:23.000Z
faeAuditor/auditGroupResults/migrations/0001_initial.py
opena11y/fae-auditor
ea9099b37b77ddc30092b0cdd962647c92b143a7
[ "Apache-2.0" ]
6
2020-02-11T21:53:58.000Z
2022-02-10T07:57:58.000Z
faeAuditor/auditGroupResults/migrations/0001_initial.py
opena11y/fae-auditor
ea9099b37b77ddc30092b0cdd962647c92b143a7
[ "Apache-2.0" ]
1
2019-12-05T06:05:20.000Z
2019-12-05T06:05:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-08-08 20:50 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('ruleCategories', '__first__'), ...
83.62069
489
0.629514
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('ruleCategories', '__first__'), ('rules', '__first__'), ('audits', '__first__'), ('wcag20...
true
true
f75fd4de2f4d9853dca2b398f32bcd5181b6b94b
2,055
py
Python
Recsys_Challenge_Trailmix/Recsys_Challenge_Trailmix_CODEONLY/Model_Word2Vec/Model_2_war.py
xing-zhao/RecSys-Challenge-2018-Trailmix
27a3524c9cd397b62f7c008bd0b79a81fa16a852
[ "Apache-2.0" ]
null
null
null
Recsys_Challenge_Trailmix/Recsys_Challenge_Trailmix_CODEONLY/Model_Word2Vec/Model_2_war.py
xing-zhao/RecSys-Challenge-2018-Trailmix
27a3524c9cd397b62f7c008bd0b79a81fa16a852
[ "Apache-2.0" ]
null
null
null
Recsys_Challenge_Trailmix/Recsys_Challenge_Trailmix_CODEONLY/Model_Word2Vec/Model_2_war.py
xing-zhao/RecSys-Challenge-2018-Trailmix
27a3524c9cd397b62f7c008bd0b79a81fa16a852
[ "Apache-2.0" ]
1
2018-12-30T14:54:59.000Z
2018-12-30T14:54:59.000Z
import pandas from sklearn import model_selection from sklearn.linear_model import LogisticRegression import pickle import codecs import json import gensim import numpy as np import math import random import numpy import operator import scipy import Queue from heapq import nlargest import sys start = int(sys.argv[1]) ...
24.464286
113
0.662774
import pandas from sklearn import model_selection from sklearn.linear_model import LogisticRegression import pickle import codecs import json import gensim import numpy as np import math import random import numpy import operator import scipy import Queue from heapq import nlargest import sys start = int(sys.argv[1]) ...
false
true
f75fd5b4f9b12498ea2c05be4c4e6ac16b1076c0
529
py
Python
pre_data/matplotlib/demo/add_axes.py
NigeloYang/tensorflow-practice
0778f3751512773504eb6c685dfb138aa8e43d40
[ "MIT" ]
null
null
null
pre_data/matplotlib/demo/add_axes.py
NigeloYang/tensorflow-practice
0778f3751512773504eb6c685dfb138aa8e43d40
[ "MIT" ]
null
null
null
pre_data/matplotlib/demo/add_axes.py
NigeloYang/tensorflow-practice
0778f3751512773504eb6c685dfb138aa8e43d40
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams['font.sans-serif'] = ['SimHei'] matplotlib.rcParams['axes.unicode_minus'] = False fig = plt.figure() # 模拟数据 x = [1, 2, 3, 4, 5, 6, 7, 8] y = [1, 2, 3, 1, 6, 3, 5, 9] left, bottom, width, height = 0.1, 0.1, 0.8, 0.8 x1 = fig.add_axes([left, bottom...
22.041667
51
0.63327
import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams['font.sans-serif'] = ['SimHei'] matplotlib.rcParams['axes.unicode_minus'] = False fig = plt.figure() x = [1, 2, 3, 4, 5, 6, 7, 8] y = [1, 2, 3, 1, 6, 3, 5, 9] left, bottom, width, height = 0.1, 0.1, 0.8, 0.8 x1 = fig.add_axes([left, bottom, width...
true
true
f75fd67b38cf71ec40c14346655296c4fd0eed66
378
py
Python
setup.py
LukeMoll/pyuoyweek
4e16f11dcce115ec1d95fa899e844b47ec253930
[ "BSD-3-Clause" ]
null
null
null
setup.py
LukeMoll/pyuoyweek
4e16f11dcce115ec1d95fa899e844b47ec253930
[ "BSD-3-Clause" ]
7
2020-01-28T22:22:02.000Z
2021-12-13T22:27:01.000Z
setup.py
LukeMoll/pyuoyweek
4e16f11dcce115ec1d95fa899e844b47ec253930
[ "BSD-3-Clause" ]
1
2019-03-15T09:37:51.000Z
2019-03-15T09:37:51.000Z
from distutils.core import setup setup( name="uoyweek", version="1.1", description="Calculate and print formatted University of York term dates", author="Luke Moll", url="https://github.com/LukeMoll/pyuoyweek", packages=["uoyweek"], python_requires=">3.6", # for fstrings entry_points={ ...
27
78
0.664021
from distutils.core import setup setup( name="uoyweek", version="1.1", description="Calculate and print formatted University of York term dates", author="Luke Moll", url="https://github.com/LukeMoll/pyuoyweek", packages=["uoyweek"], python_requires=">3.6", entry_points={ "consol...
true
true
f75fd730e80333926b17f740a5d8867f4864de32
1,468
py
Python
GeneratedPython/tasks.py
cyphyhouse/KoordLanguage
0147ce801a617d8933cd720c6e3611706c526989
[ "NCSA" ]
3
2019-09-15T21:16:22.000Z
2020-10-29T20:35:53.000Z
GeneratedPython/tasks.py
cyphyhouse/KoordLanguage
0147ce801a617d8933cd720c6e3611706c526989
[ "NCSA" ]
15
2019-06-05T18:09:56.000Z
2020-08-27T16:38:21.000Z
GeneratedPython/tasks.py
cyphyhouse/KoordLanguage
0147ce801a617d8933cd720c6e3611706c526989
[ "NCSA" ]
3
2019-05-31T15:54:46.000Z
2022-02-16T13:09:04.000Z
from src.harness.agentThread import AgentThread class Task: def __init__(self): self.loc = None self.assignId = None self.taskId = None class DefaultName(AgentThread): def __init__(self, config, motion_config): super(DefaultName, self).__init__(config, motion_config) ...
34.139535
103
0.605586
from src.harness.agentThread import AgentThread class Task: def __init__(self): self.loc = None self.assignId = None self.taskId = None class DefaultName(AgentThread): def __init__(self, config, motion_config): super(DefaultName, self).__init__(config, motion_config) ...
true
true
f75fd8f5b1fcab6e7a434253d359ae613309460c
16,705
py
Python
wagtail/contrib/modeladmin/tests/test_simple_modeladmin.py
sir-sigurd/wagtail
18dd01a4cc7f7c51680400d7f39f80d661c4b1d5
[ "BSD-3-Clause" ]
1
2021-08-14T13:47:33.000Z
2021-08-14T13:47:33.000Z
wagtail/contrib/modeladmin/tests/test_simple_modeladmin.py
denza/wagtail
3939397850f2c73d3f960cea5cc9c2cfae2d005d
[ "BSD-3-Clause" ]
2
2021-03-10T14:04:08.000Z
2021-05-08T21:24:46.000Z
wagtail/contrib/modeladmin/tests/test_simple_modeladmin.py
denza/wagtail
3939397850f2c73d3f960cea5cc9c2cfae2d005d
[ "BSD-3-Clause" ]
null
null
null
import mock from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.test import TestCase from wagtail.images.models import Image from wagtail.images.tests.utils import get_test_image_file from wagtail.tests.modeladmintest.models import Author, Book, Publisher, Token from...
34.443299
151
0.666567
import mock from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.test import TestCase from wagtail.images.models import Image from wagtail.images.tests.utils import get_test_image_file from wagtail.tests.modeladmintest.models import Author, Book, Publisher, Token from...
true
true
f75fd96c12ea2bcebbeeda1e578deb9ad90a5610
7,689
py
Python
app/video_ops.py
kahache/video_packaging_platform
d0bff522de10fab6a2847f5433f88015e1210d7d
[ "MIT" ]
8
2020-08-06T21:10:55.000Z
2021-11-24T03:20:29.000Z
app/video_ops.py
kahache/video_packaging_platform
d0bff522de10fab6a2847f5433f88015e1210d7d
[ "MIT" ]
null
null
null
app/video_ops.py
kahache/video_packaging_platform
d0bff522de10fab6a2847f5433f88015e1210d7d
[ "MIT" ]
3
2021-01-26T03:56:15.000Z
2021-04-14T15:14:04.000Z
__author__ = "The One & Only Javi" __version__ = "1.0.0" __start_date__ = "25th July 2020" __end_date__ = "5th August 2020" __maintainer__ = "me" __email__ = "little_kh@hotmail.com" __requirements__ = "Bento4 tools, subprocess" __status__ = "Production" __description__ = """ This is the Video Operations module. It can ...
39.229592
79
0.540252
__author__ = "The One & Only Javi" __version__ = "1.0.0" __start_date__ = "25th July 2020" __end_date__ = "5th August 2020" __maintainer__ = "me" __email__ = "little_kh@hotmail.com" __requirements__ = "Bento4 tools, subprocess" __status__ = "Production" __description__ = """ This is the Video Operations module. It can ...
true
true
f75fd971b47bb51887d97c8d63ff4ce73b77ecec
9,639
py
Python
mimicLOB/server/process.py
FDR0903/mimicLOB
0ef79a9a7129fa63a25423e29aba249594ec23b5
[ "MIT" ]
null
null
null
mimicLOB/server/process.py
FDR0903/mimicLOB
0ef79a9a7129fa63a25423e29aba249594ec23b5
[ "MIT" ]
null
null
null
mimicLOB/server/process.py
FDR0903/mimicLOB
0ef79a9a7129fa63a25423e29aba249594ec23b5
[ "MIT" ]
null
null
null
import atexit import logging import os import subprocess import time from future.standard_library import install_aliases from .exception import PyngrokNgrokError, PyngrokSecurityError install_aliases() from urllib.request import urlopen, Request try: from http import HTTPStatus as StatusCodes except ImportErro...
34.923913
145
0.667808
import atexit import logging import os import subprocess import time from future.standard_library import install_aliases from .exception import PyngrokNgrokError, PyngrokSecurityError install_aliases() from urllib.request import urlopen, Request try: from http import HTTPStatus as StatusCodes except ImportErro...
true
true
f75fd98232acf2b76dad30ddcea53ca608f10aaa
13,818
py
Python
scripts/west_commands/runners/nrfjprog.py
parkme24/sdk-zephyr
5a7b4eb71047805c00e76b758212d622a0c5df55
[ "Apache-2.0" ]
null
null
null
scripts/west_commands/runners/nrfjprog.py
parkme24/sdk-zephyr
5a7b4eb71047805c00e76b758212d622a0c5df55
[ "Apache-2.0" ]
2
2020-12-18T08:57:27.000Z
2021-01-08T11:09:57.000Z
scripts/west_commands/runners/nrfjprog.py
de-nordic/sdk-zephyr
3366927a54986ad0ddf060d0e08ecc578adf11f0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Linaro Limited. # Copyright (c) 2019 Nordic Semiconductor ASA. # # SPDX-License-Identifier: Apache-2.0 '''Runner for flashing with nrfjprog.''' import os import shlex import subprocess import sys from re import fullmatch, escape from runners.core import ZephyrBinaryRunner, RunnerCaps, BuildConfi...
40.521994
131
0.530974
import os import shlex import subprocess import sys from re import fullmatch, escape from runners.core import ZephyrBinaryRunner, RunnerCaps, BuildConfiguration try: from intelhex import IntelHex except ImportError: IntelHex = None def has_region(regions, hex_file): if IntelHex is None: raise R...
true
true
f75fdaa0c5f4dee21c5a17d3522152baa4a91d46
6,886
py
Python
PyMdlxConverter/parsers/mdlx/layer.py
Rigborn4/PyMdlxConverter
9a294478102f20993479d8fa1b38e4aad94b6a60
[ "MIT" ]
2
2021-01-02T17:39:28.000Z
2021-01-04T21:36:49.000Z
PyMdlxConverter/parsers/mdlx/layer.py
Rigborn4/PyMdlxConverter
9a294478102f20993479d8fa1b38e4aad94b6a60
[ "MIT" ]
1
2021-11-19T15:37:59.000Z
2021-11-28T20:45:47.000Z
PyMdlxConverter/parsers/mdlx/layer.py
Rigborn4/PyMdlxConverter
9a294478102f20993479d8fa1b38e4aad94b6a60
[ "MIT" ]
null
null
null
from PyMdlxConverter.common.binarystream import BinaryStream from PyMdlxConverter.parsers.mdlx.tokenstream import TokenStream from PyMdlxConverter.parsers.mdlx.animatedobject import AnimatedObject from PyMdlxConverter.parsers.errors import TokenStreamError filter_map_mdx = {'None': 0, 'Transparent': 1, ...
42.245399
117
0.603979
from PyMdlxConverter.common.binarystream import BinaryStream from PyMdlxConverter.parsers.mdlx.tokenstream import TokenStream from PyMdlxConverter.parsers.mdlx.animatedobject import AnimatedObject from PyMdlxConverter.parsers.errors import TokenStreamError filter_map_mdx = {'None': 0, 'Transparent': 1, ...
true
true
f75fdb07b87937a390eac5ea8c79db3636359216
1,843
py
Python
core/objs/rh_contrato_funcionario.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
null
null
null
core/objs/rh_contrato_funcionario.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
null
null
null
core/objs/rh_contrato_funcionario.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
2
2017-12-04T14:59:22.000Z
2018-12-06T18:50:29.000Z
# !/usr/bin/env python3 # -*- encoding: utf-8 -*- """ ERP+ """ __author__ = 'António Anacleto' __credits__ = [] __version__ = "1.0" __maintainer__ = "António Anacleto" __status__ = "Development" __model_name__ = 'rh_contrato_funcionario.RHContratoFuncionario' import auth, base_models from orm import * from form import ...
47.25641
236
0.658709
__author__ = 'António Anacleto' __credits__ = [] __version__ = "1.0" __maintainer__ = "António Anacleto" __status__ = "Development" __model_name__ = 'rh_contrato_funcionario.RHContratoFuncionario' import auth, base_models from orm import * from form import * class RHContratoFuncionario(Model, View): def __init__(s...
true
true
f75fdb5456fab36574142b5ccba6cac12f741214
693
py
Python
tests/test_comments.py
valentine-ochieng/Personal-blogging-website-
5f9b4a6e6feefb344d32ecaa64c6f284c7b2c56e
[ "MIT" ]
null
null
null
tests/test_comments.py
valentine-ochieng/Personal-blogging-website-
5f9b4a6e6feefb344d32ecaa64c6f284c7b2c56e
[ "MIT" ]
null
null
null
tests/test_comments.py
valentine-ochieng/Personal-blogging-website-
5f9b4a6e6feefb344d32ecaa64c6f284c7b2c56e
[ "MIT" ]
null
null
null
import unittest from app import db from app.models import Posts, User, Comments class TestComment(unittest.TestCase): """ Class that holds all test cases for the Comment model """ def setUp(self): self.new_comment = Comments(comment='awesome') def test_instance(self): ...
25.666667
57
0.652237
import unittest from app import db from app.models import Posts, User, Comments class TestComment(unittest.TestCase): def setUp(self): self.new_comment = Comments(comment='awesome') def test_instance(self): self.assertEqual(self.new_comment.comment,'nice') ...
true
true
f75fdb7b72b8ab4c84e61d6ec6494f4a55cd5cb5
10,431
py
Python
fbpmp/pid/service/pid_service/tests/test_pid_run_protocol_stage.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/pid/service/pid_service/tests/test_pid_run_protocol_stage.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
fbpmp/pid/service/pid_service/tests/test_pid_run_protocol_stage.py
benliugithub/fbpcs
7af984264428058645847135026d474d7e28144e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from unittest.mock import patch from fbpcp.entity.container_instance import ContainerInstanceStatus, C...
39.362264
120
0.639919
import unittest from unittest.mock import patch from fbpcp.entity.container_instance import ContainerInstanceStatus, ContainerInstance from fbpcp.service.container_aws import AWSContainerService from fbpcp.service.onedocker import OneDockerService from fbpmp.onedocker_binary_config import OneDockerBinaryConfig from f...
true
true
f75fdd5832d9b61ac84c5352c699459d08c6e1d5
1,876
py
Python
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/bgp/cluster.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/bgp/cluster.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/bgp/cluster.py
ralfjon/IxNetwork
c0c834fbc465af69c12fd6b7cee4628baba7fff1
[ "MIT" ]
null
null
null
# Copyright 1997 - 2018 by IXIA Keysight # # 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, modify, merge, p...
38.285714
128
0.747335
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class Cluster(Base): _SDM_NAME = 'cluster' def __init__(self, parent): super(Cluster, self).__init__(parent) @property def Val(self): return self._get_attribute('val') @Val.setter def Val(self, value): ...
true
true
f75fde06ad3bddeb0d308d17b2e0ea22ca19b376
2,699
py
Python
web/wtfhelpers.py
rupello/ClockTHREEjr
b7a4f531d055be3ee4e472b73aa60b1c69564377
[ "MIT" ]
1
2018-10-21T15:01:02.000Z
2018-10-21T15:01:02.000Z
web/wtfhelpers.py
rupello/ClockTHREEjr
b7a4f531d055be3ee4e472b73aa60b1c69564377
[ "MIT" ]
null
null
null
web/wtfhelpers.py
rupello/ClockTHREEjr
b7a4f531d055be3ee4e472b73aa60b1c69564377
[ "MIT" ]
null
null
null
import os import sys import string import codecs import ttfquery.ttffiles import ttfquery.describe import ttfquery.glyphquery from clockface import decodeLetters import Simulate def wtffiles(wtfdir): """list wtffiles in folder""" wtffiles = [] for path,dirs,files in os.walk(wtfdir): for f in fi...
26.722772
78
0.648759
import os import sys import string import codecs import ttfquery.ttffiles import ttfquery.describe import ttfquery.glyphquery from clockface import decodeLetters import Simulate def wtffiles(wtfdir): """list wtffiles in folder""" wtffiles = [] for path,dirs,files in os.walk(wtfdir): for f in fi...
false
true
f75fde40c59e9bb93c1d2564f34a52ca351a0471
558
py
Python
spacy/tests/regression/test_issue1945.py
xraycat123/spaCy
386cec1979e430d1524f5f7beda93db1625ede8f
[ "MIT" ]
2
2019-01-21T14:52:45.000Z
2019-01-21T14:52:49.000Z
spacy/tests/regression/test_issue1945.py
xraycat123/spaCy
386cec1979e430d1524f5f7beda93db1625ede8f
[ "MIT" ]
null
null
null
spacy/tests/regression/test_issue1945.py
xraycat123/spaCy
386cec1979e430d1524f5f7beda93db1625ede8f
[ "MIT" ]
1
2021-03-30T23:58:34.000Z
2021-03-30T23:58:34.000Z
'''Test regression in Matcher introduced in v2.0.6.''' from __future__ import unicode_literals import pytest from ...vocab import Vocab from ...tokens import Doc from ...matcher import Matcher def test_issue1945(): text = "a a a" matcher = Matcher(Vocab()) matcher.add('MWE', None, [{'orth': 'a'}, {'orth'...
27.9
60
0.62724
from __future__ import unicode_literals import pytest from ...vocab import Vocab from ...tokens import Doc from ...matcher import Matcher def test_issue1945(): text = "a a a" matcher = Matcher(Vocab()) matcher.add('MWE', None, [{'orth': 'a'}, {'orth': 'a'}]) doc = Doc(matcher.vocab, words=['a', 'a', ...
true
true
f75fdef35d82679b004f79ad8ee4eeb9190918e8
1,256
py
Python
bcmagic/models.py
detrout/htsworkflow
99d3300e2533d79428ad49aaf10b9429b175da2d
[ "BSD-3-Clause" ]
null
null
null
bcmagic/models.py
detrout/htsworkflow
99d3300e2533d79428ad49aaf10b9429b175da2d
[ "BSD-3-Clause" ]
1
2018-02-26T18:30:05.000Z
2018-02-26T18:30:05.000Z
bcmagic/models.py
detrout/htsworkflow
99d3300e2533d79428ad49aaf10b9429b175da2d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import models #FIXME: Should be made more generic and probably pre-populated supported list # but for now, since we only have a ZM400, this will do. PRINTER_MODELS=[ ('Zebra ZM400', 'Zebra ZM400'), ('Zebra ZM600', 'Zebra ZM600')] LABEL_SHAPES ...
36.941176
135
0.700637
from __future__ import unicode_literals from django.db import models PRINTER_MODELS=[ ('Zebra ZM400', 'Zebra ZM400'), ('Zebra ZM600', 'Zebra ZM600')] LABEL_SHAPES = [ ('Square', 'Square'), ('Circle', 'Circle') ] class KeywordMap(models.Model): keyword = models.CharField(max_length=64) regex...
true
true
f75fe018d6df54e64f1eceb5c7cd1f5fc0289eae
716
py
Python
python/dict_find_keys_with_same_value.py
codevscolor/codevscolor
35ef9042bdc86f45ef87795c35963b75fb64d5d7
[ "Apache-2.0" ]
6
2019-04-26T03:11:54.000Z
2021-05-07T21:48:29.000Z
python/dict_find_keys_with_same_value.py
akojif/codevscolor
56db3dffeac8f8d76ff8fcf5656770f33765941f
[ "Apache-2.0" ]
null
null
null
python/dict_find_keys_with_same_value.py
akojif/codevscolor
56db3dffeac8f8d76ff8fcf5656770f33765941f
[ "Apache-2.0" ]
26
2019-02-23T14:50:46.000Z
2022-02-04T23:44:24.000Z
#1 given_dict = {} result_set = set() #2 total_values = int( input("Enter total no of key-value pairs of the dictionary : ")) #3 for i in range(total_values): #4 key_value_str = input( "Enter key and value for index {} separated by ',' : ".format(i)) #5 key_value = key_value_str.split(',')...
19.351351
77
0.643855
given_dict = {} result_set = set() total_values = int( input("Enter total no of key-value pairs of the dictionary : ")) for i in range(total_values): key_value_str = input( "Enter key and value for index {} separated by ',' : ".format(i)) key_value = key_value_str.split(',') given...
true
true
f75fe0681c607cb4a3e60e1c5feb55771259b170
715
py
Python
tests/test_package2.py
anubhavj880/sample
b18e2ffe8b8ececa9925fbe113422c545d0989db
[ "MIT" ]
1
2018-06-12T17:28:20.000Z
2018-06-12T17:28:20.000Z
tests/test_package2.py
anubhavj880/sample
b18e2ffe8b8ececa9925fbe113422c545d0989db
[ "MIT" ]
1
2018-06-12T17:40:09.000Z
2018-06-12T17:46:18.000Z
tests/test_package2.py
anubhavj880/sample
b18e2ffe8b8ececa9925fbe113422c545d0989db
[ "MIT" ]
2
2018-06-13T18:53:57.000Z
2018-06-16T08:28:48.000Z
import unittest from statistics import mean from package1.subpackage1_1 import num from package2 import expo from package2.subpackage2_1 import stat class TestPackag2(unittest.TestCase): a = 0 b = 0 def setUp(self): global a, b a = num.give_number() b = num.give_number() def...
19.861111
46
0.601399
import unittest from statistics import mean from package1.subpackage1_1 import num from package2 import expo from package2.subpackage2_1 import stat class TestPackag2(unittest.TestCase): a = 0 b = 0 def setUp(self): global a, b a = num.give_number() b = num.give_number() def...
true
true
f75fe1a520b2eb1ce98b964f93ccf6c1da39c16a
4,706
py
Python
cabinet/buttons.py
kiok46/SmartCabinet
a7fb6a50e572dc17b180834d2e7417e6cb200633
[ "MIT" ]
null
null
null
cabinet/buttons.py
kiok46/SmartCabinet
a7fb6a50e572dc17b180834d2e7417e6cb200633
[ "MIT" ]
null
null
null
cabinet/buttons.py
kiok46/SmartCabinet
a7fb6a50e572dc17b180834d2e7417e6cb200633
[ "MIT" ]
null
null
null
import weakref from kivy.uix.label import Label from kivy.uix.image import Image from kivy.uix.button import Button from kivy.uix.behaviors import ButtonBehavior from kivy.graphics import Color, Ellipse, Line, Rectangle, BorderImage __all__ = ('SelectableButton', 'KeyboardButton', 'RectShadowButton', 'ImageBu...
35.119403
86
0.524012
import weakref from kivy.uix.label import Label from kivy.uix.image import Image from kivy.uix.button import Button from kivy.uix.behaviors import ButtonBehavior from kivy.graphics import Color, Ellipse, Line, Rectangle, BorderImage __all__ = ('SelectableButton', 'KeyboardButton', 'RectShadowButton', 'ImageBu...
true
true
f75fe3b775c51d94361db690709603ce6648bb9b
2,259
py
Python
2019/day3/wires.py
sthilaid/AdventOfCode
f4a6006167debeb717843db41e7089d10d323d21
[ "MIT" ]
null
null
null
2019/day3/wires.py
sthilaid/AdventOfCode
f4a6006167debeb717843db41e7089d10d323d21
[ "MIT" ]
null
null
null
2019/day3/wires.py
sthilaid/AdventOfCode
f4a6006167debeb717843db41e7089d10d323d21
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import functools import itertools import io import math import sys def manhattanDistance(p1, p2=(0,0)): return abs(p2[0] - p1[0]) + abs(p2[1] - p1[1]) def walkWire(wire, posFn, stepCountSearchFn=False): currentPos = (0,0) stepCount = 0 for (dir, steps) in wire: delta = (...
29.723684
82
0.576361
import functools import itertools import io import math import sys def manhattanDistance(p1, p2=(0,0)): return abs(p2[0] - p1[0]) + abs(p2[1] - p1[1]) def walkWire(wire, posFn, stepCountSearchFn=False): currentPos = (0,0) stepCount = 0 for (dir, steps) in wire: delta = (0,0) if dir...
true
true
f75fe46a2d32b2d7db114ce8e665890dc7acbdeb
11,917
py
Python
global_registration.py
aleksandrina-streltsova/lidar-global-registration
00cc919f17fe5b6854b575ca0aea3712ce034df6
[ "Apache-2.0" ]
null
null
null
global_registration.py
aleksandrina-streltsova/lidar-global-registration
00cc919f17fe5b6854b575ca0aea3712ce034df6
[ "Apache-2.0" ]
null
null
null
global_registration.py
aleksandrina-streltsova/lidar-global-registration
00cc919f17fe5b6854b575ca0aea3712ce034df6
[ "Apache-2.0" ]
null
null
null
import time import os import sys import pyntcloud import yaml import copy from open3d.cuda.pybind.geometry import PointCloud from open3d.cuda.pybind.pipelines.registration import Feature, RegistrationResult from typing import NamedTuple, List, Tuple, Optional from tqdm import tqdm import numpy as np import pandas as...
46.733333
164
0.694974
import time import os import sys import pyntcloud import yaml import copy from open3d.cuda.pybind.geometry import PointCloud from open3d.cuda.pybind.pipelines.registration import Feature, RegistrationResult from typing import NamedTuple, List, Tuple, Optional from tqdm import tqdm import numpy as np import pandas as...
true
true
f75fe47edc30b2bf30c41851239a497ea9189d62
2,044
py
Python
examples/decoding.py
DominicBurkart/bitarray
60706a369e849d829dc95cc4ecd3591cf01f0556
[ "PSF-2.0" ]
null
null
null
examples/decoding.py
DominicBurkart/bitarray
60706a369e849d829dc95cc4ecd3591cf01f0556
[ "PSF-2.0" ]
null
null
null
examples/decoding.py
DominicBurkart/bitarray
60706a369e849d829dc95cc4ecd3591cf01f0556
[ "PSF-2.0" ]
null
null
null
import time from bitarray import bitarray from huffman import freq_string, huffCode def traverse(it, tree): """ return False, when it has no more elements, or the leave node resulting from traversing the tree """ try: subtree = tree[next(it)] except StopIteration: return False ...
23.227273
67
0.573875
import time from bitarray import bitarray from huffman import freq_string, huffCode def traverse(it, tree): try: subtree = tree[next(it)] except StopIteration: return False if isinstance(subtree, list) and len(subtree) == 2: return traverse(it, subtree) else: return su...
true
true
f75fe7c1eebf686976bb3cc53693093d4be16440
2,876
py
Python
Colormag.py
avdarekar/color-mag-diagram
4d96df646dd909ac631c627a52696ae6c4034f39
[ "MIT" ]
null
null
null
Colormag.py
avdarekar/color-mag-diagram
4d96df646dd909ac631c627a52696ae6c4034f39
[ "MIT" ]
null
null
null
Colormag.py
avdarekar/color-mag-diagram
4d96df646dd909ac631c627a52696ae6c4034f39
[ "MIT" ]
null
null
null
#import xlrd, matplotlib.pyplot, and math libraries import xlrd import matplotlib.pyplot as plt import math from xlrd import open_workbook #open Gaia data .xlsx file from computer bench = open_workbook('/Users/adbreeze13/Desktop/UNCResearch/Test/finaldata.xlsx',on_demand=True) #declare arrays for apparent magnitude,...
39.39726
312
0.698192
import xlrd import matplotlib.pyplot as plt import math from xlrd import open_workbook bench = open_workbook('/Users/adbreeze13/Desktop/UNCResearch/Test/finaldata.xlsx',on_demand=True) appmagcol1 = [] bp_rpcol2 = [] parallaxcol3 = [] poecol4 = [] gfloecol5 = [] bpfloecol6 = [] rpfloecol7 = [] absmag = [] for name i...
true
true
f75fe99b94eefd066ba6ad5e35a8194d5cee29ff
7,605
py
Python
utils/loss.py
IrvingShu/batch-feature-erasing-network
534616c09dade92561a0203797892a63a072b1b4
[ "MIT" ]
152
2019-09-06T10:48:32.000Z
2022-02-19T11:04:19.000Z
utils/loss.py
IrvingShu/batch-feature-erasing-network
534616c09dade92561a0203797892a63a072b1b4
[ "MIT" ]
17
2019-09-29T07:20:48.000Z
2021-05-25T12:20:14.000Z
utils/loss.py
IrvingShu/batch-feature-erasing-network
534616c09dade92561a0203797892a63a072b1b4
[ "MIT" ]
41
2019-09-10T03:08:22.000Z
2022-02-05T05:56:11.000Z
# encoding: utf-8 import random import torch from torch import nn import torch.nn.functional as F def topk_mask(input, dim, K = 10, **kwargs): index = input.topk(max(1, min(K, input.size(dim))), dim = dim, **kwargs)[1] return torch.autograd.Variable(torch.zeros_like(input.data)).scatter(dim, index, 1.0) def p...
41.331522
394
0.62288
import random import torch from torch import nn import torch.nn.functional as F def topk_mask(input, dim, K = 10, **kwargs): index = input.topk(max(1, min(K, input.size(dim))), dim = dim, **kwargs)[1] return torch.autograd.Variable(torch.zeros_like(input.data)).scatter(dim, index, 1.0) def pdist(A, squared = ...
true
true
f75fe9b5c5fb595c02585dab097d03c91cb669ff
1,044
py
Python
string/541. Reverse String II.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
string/541. Reverse String II.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
string/541. Reverse String II.py
JunzhongLin/leetcode_practice
47b2f5cc3c87de004ae21a94024e751b40b8f559
[ "MIT" ]
null
null
null
''' Given a string s and an integer k, reverse the first k characters for every 2k characters counting from the start of the string. If there are fewer than k characters left, reverse all of them. If there are less than 2k but greater than or equal to k characters, then reverse the first k characters and left the othe...
21.75
106
0.591954
class Solution: def reverseStr(self, s: str, k: int) -> str: def reverse_substring(sub): res = list(sub) left, right = 0, len(res)-1 while left <= right: res[left], res[right] = res[right], res[left] left += 1 right -= 1...
true
true
f75fec0b66e02ffb1ac3c6fcfde4bf33120cb24a
709
py
Python
feincms/signals.py
mjl/feincms
fe147ec0fcf779f812e35a31f30ee29ccd7088fd
[ "BSD-3-Clause" ]
null
null
null
feincms/signals.py
mjl/feincms
fe147ec0fcf779f812e35a31f30ee29ccd7088fd
[ "BSD-3-Clause" ]
null
null
null
feincms/signals.py
mjl/feincms
fe147ec0fcf779f812e35a31f30ee29ccd7088fd
[ "BSD-3-Clause" ]
null
null
null
# ------------------------------------------------------------------------ # ------------------------------------------------------------------------ # # Created by Martin J. Laubach on 2011-08-01 # Copyright (c) 2011 Martin J. Laubach. All rights reserved. # # --------------------------------------------------------...
35.45
74
0.362482
from django.dispatch import Signal itemeditor_post_save_related = Signal()
true
true
f75fec23c146dcb4733b7066c388b0fe20dc92ea
3,440
py
Python
julodoc/settings.py
jluini/julo-doc
aa80b0153d5356e43d8399fccc7a5c78ad2d5428
[ "Apache-2.0" ]
null
null
null
julodoc/settings.py
jluini/julo-doc
aa80b0153d5356e43d8399fccc7a5c78ad2d5428
[ "Apache-2.0" ]
2
2020-06-05T18:10:07.000Z
2021-06-10T20:18:44.000Z
julodoc/settings.py
jluini/julo-doc
aa80b0153d5356e43d8399fccc7a5c78ad2d5428
[ "Apache-2.0" ]
null
null
null
""" Django settings for julo_doc project. Generated by 'django-admin startproject' using Django 2.0.4. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os i...
24.927536
91
0.688953
import os import django_heroku BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '_s41xf=!_@qs2r)iq3#mr=iohj$4v6lyy^vxr0e!y!q0bxw^*%' DEBUG = True ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ 'julopedia.apps.JulopediaConfig', 'django.contrib.admin'...
true
true
f75feda6cd9eed28344bd65f577be15f4caa5cf7
10,857
py
Python
tensorflow_addons/optimizers/cyclical_learning_rate.py
failure-to-thrive/addons
63c82e318e68b07eb1162d1ff247fe9f4d3194fc
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/optimizers/cyclical_learning_rate.py
failure-to-thrive/addons
63c82e318e68b07eb1162d1ff247fe9f4d3194fc
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/optimizers/cyclical_learning_rate.py
failure-to-thrive/addons
63c82e318e68b07eb1162d1ff247fe9f4d3194fc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
37.181507
98
0.606521
import tensorflow as tf @tf.keras.utils.register_keras_serializable(package="Addons") class CyclicalLearningRate(tf.keras.optimizers.schedules.LearningRateSchedule): def __init__( self, initial_learning_rate, maximal_learning_rate, step_size, scale_fn, scale_mode=...
true
true
f75fedf16d78c42d07fb30bbc44be8375e9eb814
339
py
Python
test03.py
mkseth4774/ine-guide-to-network-programmability-python-course-files
35c49dfcf8e8f1b69435987a00fb9a236b803d9f
[ "MIT" ]
null
null
null
test03.py
mkseth4774/ine-guide-to-network-programmability-python-course-files
35c49dfcf8e8f1b69435987a00fb9a236b803d9f
[ "MIT" ]
null
null
null
test03.py
mkseth4774/ine-guide-to-network-programmability-python-course-files
35c49dfcf8e8f1b69435987a00fb9a236b803d9f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ## ## def sshnodes(ip, username, password, nodename): print('param1 is:', nodename) print('param2 is:', ip) print('param3 is:', username) print('param4 is:', password) nodedict = {'nodename':'rtr002','ip':'10.0.0.200','username':'admin','password':'cisco'} sshnodes(**nodedict) ...
18.833333
88
0.628319
def sshnodes(ip, username, password, nodename): print('param1 is:', nodename) print('param2 is:', ip) print('param3 is:', username) print('param4 is:', password) nodedict = {'nodename':'rtr002','ip':'10.0.0.200','username':'admin','password':'cisco'} sshnodes(**nodedict)
true
true
f75fee428789418a9689e4f6754ee74b9b5514fa
5,287
py
Python
business_data_spider/pipelines.py
sunhailin-Leo/business_data_spider
0494545971489aff684fb5f1162cbf87d1048c22
[ "MIT" ]
4
2019-03-06T05:38:36.000Z
2021-01-15T09:34:10.000Z
business_data_spider/pipelines.py
sunhailin-Leo/business_data_spider
0494545971489aff684fb5f1162cbf87d1048c22
[ "MIT" ]
1
2019-12-19T07:11:55.000Z
2019-12-26T09:56:58.000Z
business_data_spider/pipelines.py
sunhailin-Leo/business_data_spider
0494545971489aff684fb5f1162cbf87d1048c22
[ "MIT" ]
3
2019-06-18T16:01:57.000Z
2020-10-01T19:08:01.000Z
# -*- coding: utf-8 -*- # 内部库 import time from collections import OrderedDict # 第三方库 from pymongo import MongoClient from scrapy.conf import settings from scrapy.exceptions import DropItem class BusinessDataSpiderPipeline(object): def __init__(self): # 连接到MongoDB数据库 _conn = MongoClient(host=set...
31.284024
104
0.573293
import time from collections import OrderedDict from pymongo import MongoClient from scrapy.conf import settings from scrapy.exceptions import DropItem class BusinessDataSpiderPipeline(object): def __init__(self): _conn = MongoClient(host=settings['MONGODB_HOST'], port=settings['MONGODB_PORT'])...
true
true
f75fef6075d44e221f3c71b312d74f705a768426
345
py
Python
alignfaces/src/alignfaces/__init__.py
SourCherries/auto-face-align
365bd01c22da6f3a44190261786fcc585687ea50
[ "Apache-2.0" ]
13
2021-11-11T04:36:14.000Z
2022-03-08T00:20:54.000Z
alignfaces/src/alignfaces/__init__.py
SourCherries/auto-face-align
365bd01c22da6f3a44190261786fcc585687ea50
[ "Apache-2.0" ]
null
null
null
alignfaces/src/alignfaces/__init__.py
SourCherries/auto-face-align
365bd01c22da6f3a44190261786fcc585687ea50
[ "Apache-2.0" ]
null
null
null
""" ******************************************************* * * AlignFaces - INIT FILE * * Version: Version 1.0 * License: Apache 2.0 * Written by: Carl Michael Gaspar * Created on: March 14, 2019 * Last updated: March 14, 2019 * ******************************************************* """ from .mak...
21.5625
55
0.42029
from .make_aligned_faces import *
true
true
f75ff00aa065c0a91762e7131858a6664dfca89d
7,239
py
Python
loop_hafnian_batch.py
apprenticeadi/gbs
642d6a3abdc2a698c3bb7bca46c86afd858855f9
[ "Apache-2.0" ]
null
null
null
loop_hafnian_batch.py
apprenticeadi/gbs
642d6a3abdc2a698c3bb7bca46c86afd858855f9
[ "Apache-2.0" ]
null
null
null
loop_hafnian_batch.py
apprenticeadi/gbs
642d6a3abdc2a698c3bb7bca46c86afd858855f9
[ "Apache-2.0" ]
2
2021-11-29T12:42:36.000Z
2022-03-13T01:21:58.000Z
import numpy as np import numba from _loop_hafnian_subroutines import ( precompute_binoms, nb_ix, matched_reps, find_kept_edges, f_loop, f_loop_odd, get_submatrices, get_submatrix_batch_odd0, eigvals ) @numba.jit(nopython=True, parallel=True, cache=True) def _calc_loop_hafnian...
32.904545
98
0.607128
import numpy as np import numba from _loop_hafnian_subroutines import ( precompute_binoms, nb_ix, matched_reps, find_kept_edges, f_loop, f_loop_odd, get_submatrices, get_submatrix_batch_odd0, eigvals ) @numba.jit(nopython=True, parallel=True, cache=True) def _calc_loop_hafnian...
true
true
f75ff02066e2fc441b1091431d8241dae2f5c22e
318
py
Python
account/admin.py
AdamSuma/steach_adam
a40161c8504076e1993d099478913fefbe8cd81d
[ "MIT" ]
null
null
null
account/admin.py
AdamSuma/steach_adam
a40161c8504076e1993d099478913fefbe8cd81d
[ "MIT" ]
null
null
null
account/admin.py
AdamSuma/steach_adam
a40161c8504076e1993d099478913fefbe8cd81d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Userprofile) admin.site.register(MainClass) admin.site.register(SubClass) admin.site.register(Lesson) admin.site.register(Grade) admin.site.register(Event) admin.site.register(Request) admin.site.register(Archive)
26.5
32
0.81761
from django.contrib import admin from .models import * admin.site.register(Userprofile) admin.site.register(MainClass) admin.site.register(SubClass) admin.site.register(Lesson) admin.site.register(Grade) admin.site.register(Event) admin.site.register(Request) admin.site.register(Archive)
true
true
f75ff03dfa12740aacb360cda31b7642e64a9b03
1,986
py
Python
zinnia/admin/filters.py
mcfletch/django-blog-zinnia
8777ef61c4de29d2a8f2ba6a767f7a80733c9b1f
[ "BSD-3-Clause" ]
2
2017-02-24T15:36:29.000Z
2017-12-30T15:59:34.000Z
zinnia/admin/filters.py
mcfletch/django-blog-zinnia
8777ef61c4de29d2a8f2ba6a767f7a80733c9b1f
[ "BSD-3-Clause" ]
null
null
null
zinnia/admin/filters.py
mcfletch/django-blog-zinnia
8777ef61c4de29d2a8f2ba6a767f7a80733c9b1f
[ "BSD-3-Clause" ]
null
null
null
"""Filters for Zinnia admin""" from django.db.models import Count from django.utils.encoding import smart_text from django.contrib.admin import SimpleListFilter from django.utils.translation import ungettext_lazy from django.utils.translation import ugettext_lazy as _ from zinnia.models.author import Author from zinni...
31.52381
68
0.648036
from django.db.models import Count from django.utils.encoding import smart_text from django.contrib.admin import SimpleListFilter from django.utils.translation import ungettext_lazy from django.utils.translation import ugettext_lazy as _ from zinnia.models.author import Author from zinnia.models.category import Catego...
true
true
f75ff0bd4ed26f847eb89432f9a35cf5241a6cd1
2,562
py
Python
website/models.py
ander9991/GradSchoolZero
89b8cf228f21ec8d258c7e906e3e1d2cccab2a8e
[ "Apache-2.0" ]
1
2021-11-10T02:39:05.000Z
2021-11-10T02:39:05.000Z
website/models.py
ander9991/GradSchoolZero
89b8cf228f21ec8d258c7e906e3e1d2cccab2a8e
[ "Apache-2.0" ]
null
null
null
website/models.py
ander9991/GradSchoolZero
89b8cf228f21ec8d258c7e906e3e1d2cccab2a8e
[ "Apache-2.0" ]
1
2021-11-25T23:02:10.000Z
2021-11-25T23:02:10.000Z
from . import db from flask_login import UserMixin from sqlalchemy.sql import func class User(db.Model, UserMixin): id = db.Column(db.Integer, primary_key=True) email = db.Column(db.String(400), unique=True) password = db.Column(db.String(400)) first_name = db.Column(db.String(400)) usertype = db....
31.62963
66
0.676034
from . import db from flask_login import UserMixin from sqlalchemy.sql import func class User(db.Model, UserMixin): id = db.Column(db.Integer, primary_key=True) email = db.Column(db.String(400), unique=True) password = db.Column(db.String(400)) first_name = db.Column(db.String(400)) usertype = db....
true
true
f75ff109871d7312a1f3f6dd10ea2d72155c880b
766
py
Python
app/runserver.py
maurapintor/pandavision
58869fcec97a59e77fac4d1ba25677e292c6d377
[ "MIT" ]
9
2021-11-08T10:52:34.000Z
2022-02-10T09:25:53.000Z
app/runserver.py
pralab/pandavision
7a76f333127d5cbdf5a0af5a202cec50a2041c6d
[ "MIT" ]
12
2021-11-02T13:37:39.000Z
2021-12-09T08:31:19.000Z
app/runserver.py
pralab/pandavision
7a76f333127d5cbdf5a0af5a202cec50a2041c6d
[ "MIT" ]
2
2021-11-10T08:58:58.000Z
2021-11-15T18:07:47.000Z
from flask import Flask from optparse import OptionParser import api from app import config def create_app(): app = Flask(__name__, static_folder='static') app.register_blueprint( api.bp, url_prefix='') app.config['SECRET_KEY'] = config.SECRET_KEY return app def new_app(*args, **kw...
21.277778
66
0.63577
from flask import Flask from optparse import OptionParser import api from app import config def create_app(): app = Flask(__name__, static_folder='static') app.register_blueprint( api.bp, url_prefix='') app.config['SECRET_KEY'] = config.SECRET_KEY return app def new_app(*args, **kw...
true
true
f75ff120c1b18680cb810d302758fdcf0bad95e0
13,970
py
Python
chunair/kicad-footprint-generator-master/KicadModTree/KicadFileHandler.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
2
2022-03-18T23:42:51.000Z
2022-03-19T15:31:34.000Z
chunair/kicad-footprint-generator-master/KicadModTree/KicadFileHandler.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
chunair/kicad-footprint-generator-master/KicadModTree/KicadFileHandler.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
# KicadModTree is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # KicadModTree is distributed in the hope that it will be useful, # bu...
36.19171
112
0.591195
from KicadModTree.FileHandler import FileHandler from KicadModTree.util.kicad_util import * from KicadModTree.nodes.base.Pad import Pad from KicadModTree.nodes.base.Arc import Arc from KicadModTree.nodes.base.Circle import Circle from KicadModTree.nodes.base.Line import Line from KicadModTree.nodes.base.Polygon impor...
true
true
f75ff1ed4fa5891e1b0a0d6c9fe7e1fc64bb8e4d
6,783
py
Python
data-processing/jackhmmer_runner.py
kad-ecoli/deepcontact
4c0cbf06a2c27aca91f54a54a59410a5cda4e9cb
[ "MIT" ]
1
2018-03-20T13:57:02.000Z
2018-03-20T13:57:02.000Z
data-processing/jackhmmer_runner.py
kad-ecoli/deepcontact
4c0cbf06a2c27aca91f54a54a59410a5cda4e9cb
[ "MIT" ]
2
2018-08-28T02:41:45.000Z
2018-11-14T15:18:08.000Z
data-processing/jackhmmer_runner.py
kad-ecoli/deepcontact
4c0cbf06a2c27aca91f54a54a59410a5cda4e9cb
[ "MIT" ]
null
null
null
############################################################################### # File Name : jackhmmer_runner.py # Created By : Qing Ye # Creation Date : [2016-04-17 22:30] # Last Modified : [2017-11-15 18:54] # Description : ############...
35.888889
96
0.48135
import util_zcx as util import string import os,sys import subprocess class Jackhmmer_Runner: def __init__(self, config): self.config = config self.output_file = os.path.join(config['path']['output'], config['id'] + '.aln') def run(self, force=False): if util.getsize(self....
false
true
f75ff1f8c40ad3ca53bc194a61e4bc95ae1ce552
10,573
py
Python
tensorflow_probability/python/internal/nest_util.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
1
2020-08-28T21:01:19.000Z
2020-08-28T21:01:19.000Z
tensorflow_probability/python/internal/nest_util.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/nest_util.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.360424
90
0.671049
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import numpy as np import tensorflow.compat.v2 as tf from tensorflow.python.util import nest __all__ = [ 'broadcast_structure', 'expand_as_args', 'call_fn', ] _is_namedtuple...
true
true
f75ff4c09ef1fb72070dac43e7303553e87f4d86
2,602
py
Python
ACME/color/colors.py
mauriziokovacic/ACME
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
3
2019-10-23T23:10:55.000Z
2021-09-01T07:30:14.000Z
ACME/color/colors.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
null
null
null
ACME/color/colors.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
1
2020-07-11T11:35:43.000Z
2020-07-11T11:35:43.000Z
from ..utility.Uint8Tensor import * from .color2float import * def black(): """ Returns the black RGB tensor Returns ------- Tensor the (1,3,) black tensor """ return torch.zeros(1, 3) def white(): """ Returns the white RGB tensor Returns ------- T...
14.064865
54
0.515757
from ..utility.Uint8Tensor import * from .color2float import * def black(): return torch.zeros(1, 3) def white(): return torch.ones(1, 3) def red(): return color2float(Uint8Tensor([237, 28, 36])) def green(): return color2float(Uint8Tensor([34, 177, 76])) def blue(): return c...
true
true
f75ff69ab247243db8f70a5114cd70de2fead763
2,692
py
Python
gamestonk_terminal/cryptocurrency/nft/opensea_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-03-15T13:05:40.000Z
2022-03-15T13:05:40.000Z
gamestonk_terminal/cryptocurrency/nft/opensea_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/cryptocurrency/nft/opensea_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
""" opensea.io Model """ import logging from datetime import datetime import pandas as pd import requests from gamestonk_terminal.decorators import log_start_end logger = logging.getLogger(__name__) API_URL = "https://api.opensea.io/api/v1" @log_start_end(log=logger) def get_collection_stats(slug: str) -> pd.Dat...
33.65
121
0.548291
import logging from datetime import datetime import pandas as pd import requests from gamestonk_terminal.decorators import log_start_end logger = logging.getLogger(__name__) API_URL = "https://api.opensea.io/api/v1" @log_start_end(log=logger) def get_collection_stats(slug: str) -> pd.DataFrame: res = request...
true
true
f75ff763e60ea714d5a5bad25189d0b8df5cb8c5
255
py
Python
ds2/sorting/selectionsort.py
aslisabanci/datastructures
f7952801245bc8d386a03d92a38121f558bdacca
[ "MIT" ]
159
2017-10-02T22:03:14.000Z
2022-03-10T23:02:22.000Z
ds2/sorting/selectionsort.py
aslisabanci/datastructures
f7952801245bc8d386a03d92a38121f558bdacca
[ "MIT" ]
9
2019-02-04T14:55:09.000Z
2021-06-05T13:30:28.000Z
ds2/sorting/selectionsort.py
aslisabanci/datastructures
f7952801245bc8d386a03d92a38121f558bdacca
[ "MIT" ]
49
2017-09-29T17:51:16.000Z
2022-03-10T23:12:17.000Z
def selectionsort(L): n = len(L) for i in range(n-1): max_index=0 for index in range(n - i): if L[index] > L[max_index]: max_index = index L[n-i-1], L[max_index] = L[max_index], L[n-i-1]
28.333333
55
0.478431
def selectionsort(L): n = len(L) for i in range(n-1): max_index=0 for index in range(n - i): if L[index] > L[max_index]: max_index = index L[n-i-1], L[max_index] = L[max_index], L[n-i-1]
true
true
f75ff84d06a617801f007f8500eb8c271703cafe
102,976
py
Python
ivi/ivi.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
161
2015-01-23T17:43:01.000Z
2022-03-29T14:42:42.000Z
ivi/ivi.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
45
2015-01-15T13:35:04.000Z
2021-06-03T01:58:55.000Z
ivi/ivi.py
sacherjj/python-ivi
6dd1ba93d65dc30a652a3a1b34c66921d94315e8
[ "MIT" ]
87
2015-01-31T10:55:23.000Z
2022-03-17T08:18:47.000Z
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012-2017 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
46.871188
211
0.551672
import inspect import numpy as np import re from functools import partial try: import vxi11 except ImportError: pass try: import usbtmc except ImportError: pass try: from .interface import linuxgpib except ImportError: pass try: from .interface import pyserial except ImportError: pa...
true
true
f75ff893d637085866524052b437fdd178bc3c54
2,253
py
Python
docs/tutorials/polls/polls/views.py
lsaffre/north
3c928a0d061550130d7ce0a8e415ba505eee8a01
[ "BSD-2-Clause" ]
null
null
null
docs/tutorials/polls/polls/views.py
lsaffre/north
3c928a0d061550130d7ce0a8e415ba505eee8a01
[ "BSD-2-Clause" ]
null
null
null
docs/tutorials/polls/polls/views.py
lsaffre/north
3c928a0d061550130d7ce0a8e415ba505eee8a01
[ "BSD-2-Clause" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse from django.http import Http404 from django.template import Context, loader from polls.models import Poll #~ def index(request): #~ return HttpResponse("Hello, world. You're at the poll index.") #~ def index(request):...
35.203125
81
0.657346
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse from django.http import Http404 from django.template import Context, loader from polls.models import Poll #~ def index(request): #~ latest_poll_list = Poll.objects.order_by('-pub_date')[:5] #~ context = Contex...
true
true
f75ff9b26da4c83540ae6e1a19d87f2f9e405271
3,287
py
Python
test/test_private_trend_tabular_response_data_trend_tabular.py
Investabit/investabit-python-sdk
ba274bc08e9bbbde213902da7ca343e1569833f6
[ "MIT" ]
null
null
null
test/test_private_trend_tabular_response_data_trend_tabular.py
Investabit/investabit-python-sdk
ba274bc08e9bbbde213902da7ca343e1569833f6
[ "MIT" ]
null
null
null
test/test_private_trend_tabular_response_data_trend_tabular.py
Investabit/investabit-python-sdk
ba274bc08e9bbbde213902da7ca343e1569833f6
[ "MIT" ]
null
null
null
# coding: utf-8 """ CryptoWeather The CryptoWeather API allows for access to all of the cryptocurrency data and market forecast services provided. There are two primary categories of routes, `public` and `private`, where `public` routes are accessible to the general public and do not require API authenticatio...
80.170732
2,234
0.734713
from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.private_trend_tabular_response_data_trend_tabular import PrivateTrendTabularResponseDataTrendTabular from swagger_client.rest import ApiException class TestPrivateTrendTabularResponseDataTrendTabular(unittest...
true
true
f75ffa2ed9c624740909964d7c38b685fa366da8
2,249
py
Python
django_airavata/wagtailapps/base/migrations/0021_auto_20191105_2053.py
musecian/airavata-django-portal
8990216f02168bbc8c8ca4871400bf0da3bb423f
[ "Apache-2.0" ]
19
2017-09-04T00:36:52.000Z
2022-01-24T08:44:22.000Z
django_airavata/wagtailapps/base/migrations/0021_auto_20191105_2053.py
musecian/airavata-django-portal
8990216f02168bbc8c8ca4871400bf0da3bb423f
[ "Apache-2.0" ]
35
2017-10-17T02:36:01.000Z
2022-03-09T04:46:57.000Z
django_airavata/wagtailapps/base/migrations/0021_auto_20191105_2053.py
musecian/airavata-django-portal
8990216f02168bbc8c8ca4871400bf0da3bb423f
[ "Apache-2.0" ]
38
2017-09-15T14:17:42.000Z
2021-12-15T17:11:31.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.21 on 2019-11-05 20:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ('django_airavata_wagtail_base', ...
39.45614
196
0.591374
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ('django_airavata_wagtail_base', '0020_auto_20190417_1949'), ] operations = [ migrations.C...
true
true
f75ffa65fc5060981f41419d21187ead6f467b5a
9,009
py
Python
packages/pyre/components/Requirement.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/components/Requirement.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/components/Requirement.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2022 all rights reserved # # externals from .. import tracking # superclass from ..patterns.AttributeClassifier import AttributeClassifier # class declaration class Requirement(AttributeClassifier): """ Metaclass that enables the harve...
37.381743
95
0.620269
from .. import tracking from ..patterns.AttributeClassifier import AttributeClassifier class Requirement(AttributeClassifier): from ..traits.Trait import Trait from .Configurable import Configurable def __new__(cls, name, bases, attributes, *, internal=Fal...
true
true
f75ffabdd3e5904bdf3f5f71837cc50e42f504a5
15,928
py
Python
solo/methods/mocov2_distillation_AT_dual_bn.py
pantheon5100/DeACL
32cf8182f2ef271fab7453bc5cc1ddea6dfa3c22
[ "MIT" ]
null
null
null
solo/methods/mocov2_distillation_AT_dual_bn.py
pantheon5100/DeACL
32cf8182f2ef271fab7453bc5cc1ddea6dfa3c22
[ "MIT" ]
null
null
null
solo/methods/mocov2_distillation_AT_dual_bn.py
pantheon5100/DeACL
32cf8182f2ef271fab7453bc5cc1ddea6dfa3c22
[ "MIT" ]
null
null
null
# Copyright 2021 solo-learn development team. # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to use, # copy, modify, merge, publ...
38.84878
104
0.582182
import argparse from typing import Any, Dict, List, Sequence, Tuple import torch import torch.nn as nn import torch.nn.functional as F from solo.losses.moco import moco_loss_func from solo.methods.base_for_AT_dual_bn import BaseDistillationATMethodDualBN from solo.utils.momentum import initialize_momentum_params f...
true
true
f75ffafc1c30575296bc225e58feadef8d0180f2
7,767
py
Python
tencentcloud/ic/v20190307/ic_client.py
dyllllll/tencentcloud-sdk-python
677424361ec00927a52fd3c6d5110c4de5737449
[ "Apache-2.0" ]
2
2021-07-10T09:40:16.000Z
2022-02-04T09:01:22.000Z
tencentcloud/ic/v20190307/ic_client.py
dyllllll/tencentcloud-sdk-python
677424361ec00927a52fd3c6d5110c4de5737449
[ "Apache-2.0" ]
null
null
null
tencentcloud/ic/v20190307/ic_client.py
dyllllll/tencentcloud-sdk-python
677424361ec00927a52fd3c6d5110c4de5737449
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
39.030151
94
0.597142
import json from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.common.abstract_client import AbstractClient from tencentcloud.ic.v20190307 import models class IcClient(AbstractClient): _apiVersion = '2019-03-07' _endpoint = 'ic.tencentcloudapi.co...
true
true
f75ffb370b344d644630d695dc27804202e1d3cd
3,352
py
Python
electrum/gui/qt/utxo_list.py
sherlockcoin/electrum
fa9e4cf5ed15ae44331a70954e69bc677c529357
[ "MIT" ]
1
2019-09-17T09:39:48.000Z
2019-09-17T09:39:48.000Z
electrum/gui/qt/utxo_list.py
sherlockcoin/electrum
fa9e4cf5ed15ae44331a70954e69bc677c529357
[ "MIT" ]
null
null
null
electrum/gui/qt/utxo_list.py
sherlockcoin/electrum
fa9e4cf5ed15ae44331a70954e69bc677c529357
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
42.43038
138
0.666766
from .util import * from electrum.i18n import _ class UTXOList(MyTreeWidget): filter_columns = [0, 2] def __init__(self, parent=None): MyTreeWidget.__init__(self, parent, self.create_menu, [ _('Address'), _('Label'), _('Amount'), _('Height'), _('Output point')], 1) self.setSelectionMode(QAbs...
true
true
f75ffcf53f666e3ccdcc2db23b5f1539f43ae300
1,282
py
Python
kml/wms.py
rayvnekieron/regionator
ed32f43c315465402b7e18c9f374e22dd89db64e
[ "Apache-2.0" ]
null
null
null
kml/wms.py
rayvnekieron/regionator
ed32f43c315465402b7e18c9f374e22dd89db64e
[ "Apache-2.0" ]
null
null
null
kml/wms.py
rayvnekieron/regionator
ed32f43c315465402b7e18c9f374e22dd89db64e
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2006 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
20.349206
72
0.702808
import kml.region import kml.genkml def WMSBBOX(region): (n,s,e,w) = region.NSEW() return 'BBOX=%f,%f,%f,%f' % (w,s,e,n) def WMSGroundOverlay(wmsurl, region, draworder): href = wmsurl + WMSBBOX(region) (n,s,e,w) = region.NSEW() return kml.genkml.GroundOverlay(n,s,e,w,href,draworder)
true
true
f75ffd13630c15555b527ab64c83d5a5a5ab897b
9,477
py
Python
bot.py
Atom-Heart-Father/odin-nlp
33f403333a8066f060d7fb93cdf5cc0d7aa6b3f0
[ "MIT" ]
null
null
null
bot.py
Atom-Heart-Father/odin-nlp
33f403333a8066f060d7fb93cdf5cc0d7aa6b3f0
[ "MIT" ]
2
2021-05-01T12:09:35.000Z
2021-05-04T13:26:29.000Z
bot.py
Atom-Heart-Father/odin
33f403333a8066f060d7fb93cdf5cc0d7aa6b3f0
[ "MIT" ]
null
null
null
from logging import error from dotenv import dotenv_values from main import father import json import discord config = dotenv_values(".env") # SECRET_KEY = os.getenv("TOKEN") SECRET_KEY = config["TOKEN"] params = None countries = None # with open("./../../params.json", "r") as read_file: with open("params.json", ...
34.97048
155
0.557982
from logging import error from dotenv import dotenv_values from main import father import json import discord config = dotenv_values(".env") SECRET_KEY = config["TOKEN"] params = None countries = None with open("params.json", "r") as read_file: params = json.load(read_file) async def make_child(): detai...
true
true
f75fff866d96cf218c393b7817342e70e2569b63
8,389
py
Python
grumers/apps/web/migrations/0003_auto__add_field_page_title_en__add_field_page_title_ca__add_field_page.py
socib/grumers
ef0b5f8441cf7b3d5a03da715263003d9f550f2f
[ "MIT" ]
1
2018-04-27T04:26:38.000Z
2018-04-27T04:26:38.000Z
grumers/apps/web/migrations/0003_auto__add_field_page_title_en__add_field_page_title_ca__add_field_page.py
socib/grumers
ef0b5f8441cf7b3d5a03da715263003d9f550f2f
[ "MIT" ]
null
null
null
grumers/apps/web/migrations/0003_auto__add_field_page_title_en__add_field_page_title_ca__add_field_page.py
socib/grumers
ef0b5f8441cf7b3d5a03da715263003d9f550f2f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Page.title_en' db.add_column(u'web_page', 'title_en', ...
54.474026
175
0.580761
from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.add_column(u'web_page', 'title_en', self.gf('django.db.models.fields.Cha...
true
true
f76000ba842d789454730385edd391ed08ff8cd4
9,349
py
Python
deploy.py
KalpeshVedak/apk-release-deploy
ed0c9a05f70ee9d3530eef9eeb2c59b96954b1df
[ "Apache-2.0" ]
null
null
null
deploy.py
KalpeshVedak/apk-release-deploy
ed0c9a05f70ee9d3530eef9eeb2c59b96954b1df
[ "Apache-2.0" ]
null
null
null
deploy.py
KalpeshVedak/apk-release-deploy
ed0c9a05f70ee9d3530eef9eeb2c59b96954b1df
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # Copyright (C) 2019 Oleg Shnaydman # # 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...
32.803509
117
0.668521
import os import argparse import requests import json import re DROPBOX_ERROR_CODE = 1 ZAPIER_ERROR_CODE = 2 TEMPLATE_ERROR_CODE = 3 CHANGES_ERROR_CODE = 4 OUTPUT_FILE_PARSING_ERROR = 5 DROPBOX_UPLOAD_ARGS = { 'path': None, 'mode': 'overwrite', 'autorename': True, 'strict_conflict': True } DROPBOX_U...
true
true
f76001b7de9b52e0a45a106e723abbde46c39cc2
5,082
py
Python
ECore_Copier_MM/transformation-Large/HeattributelefteAnnotationsSolveRefEAttributeEAnnotationEAttributeEAnnotation.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
ECore_Copier_MM/transformation-Large/HeattributelefteAnnotationsSolveRefEAttributeEAnnotationEAttributeEAnnotation.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
ECore_Copier_MM/transformation-Large/HeattributelefteAnnotationsSolveRefEAttributeEAnnotationEAttributeEAnnotation.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis class HeattributelefteAnnotationsSolveRefEAttributeEAnnotationEAttributeEAnnotation(Himesis): def __init__(self): """ Creates the himesis graph representing the AToM3 model HeattributelefteAnnotationsSolveRefEAttributeEAnnotationEAttributeEAnnotation. """ ...
48.865385
298
0.54998
from core.himesis import Himesis class HeattributelefteAnnotationsSolveRefEAttributeEAnnotationEAttributeEAnnotation(Himesis): def __init__(self): self.is_compiled = True super(HeattributelefteAnnotationsSolveRefEAttributeEAnnotationEAttributeEAnnotation, self).__init__(name='Hea...
true
true
f76001faf751292135c870cd71c8999221b7d9df
258
py
Python
tests/artificial/transf_None/trend_Lag1Trend/cycle_0/ar_/test_artificial_128_None_Lag1Trend_0__0.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_None/trend_Lag1Trend/cycle_0/ar_/test_artificial_128_None_Lag1Trend_0__0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_None/trend_Lag1Trend/cycle_0/ar_/test_artificial_128_None_Lag1Trend_0__0.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 0, ar_order = 0);
36.857143
158
0.724806
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 0, ar_order = 0);
true
true
f76002b64e7720ed749cddf96073905346fe3587
2,004
py
Python
learning/katas/python/Core Transforms/CoGroupByKey/CoGroupByKey/task.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
learning/katas/python/Core Transforms/CoGroupByKey/CoGroupByKey/task.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
71
2018-05-23T22:20:02.000Z
2019-04-30T15:37:46.000Z
learning/katas/python/Core Transforms/CoGroupByKey/CoGroupByKey/task.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.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"); y...
34.551724
115
0.698603
import apache_beam as beam from log_elements import LogElements class WordsAlphabet: def __init__(self, alphabet, fruit, country): self.alphabet = alphabet self.fruit = fruit self.country = country def __str__(self): return "WordsAlphabet(alphabet:'%s', fruit='%s', country=...
true
true