hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
3c8ab9d9ac9c454ca63de154e396ec3f2b4b9958
569
py
Python
code/4_pipeline.py
ning-yang/scikit-learn-google-tutorial
9bc841b4d49fd8045bcb156f25f0bc1eea309e5f
[ "MIT" ]
null
null
null
code/4_pipeline.py
ning-yang/scikit-learn-google-tutorial
9bc841b4d49fd8045bcb156f25f0bc1eea309e5f
[ "MIT" ]
null
null
null
code/4_pipeline.py
ning-yang/scikit-learn-google-tutorial
9bc841b4d49fd8045bcb156f25f0bc1eea309e5f
[ "MIT" ]
null
null
null
from sklearn import datasets iris = datasets.load_iris() # X input, Y output, f(X) = Y X = iris.data y = iris.target from sklearn.cross_validation import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=.5) from sklearn import tree # or from sklearn.neighbors import KNeighborsC...
24.73913
71
0.797891
9b592c3f0f4dd3835f26b2068afd3bf72bde17cd
802
py
Python
carl/envs/box2d/__init__.py
automl/genRL
b7382fec9006d7da768ad7252194c6c5f1b2bbd7
[ "Apache-2.0" ]
27
2021-09-13T21:50:10.000Z
2022-03-30T15:35:38.000Z
carl/envs/box2d/__init__.py
automl/genRL
b7382fec9006d7da768ad7252194c6c5f1b2bbd7
[ "Apache-2.0" ]
35
2021-09-15T07:20:29.000Z
2022-03-02T15:14:31.000Z
carl/envs/box2d/__init__.py
automl/genRL
b7382fec9006d7da768ad7252194c6c5f1b2bbd7
[ "Apache-2.0" ]
2
2022-01-13T11:13:12.000Z
2022-03-14T06:11:13.000Z
from carl.envs.box2d.carl_lunarlander import CARLLunarLanderEnv from carl.envs.box2d.carl_vehicle_racing import CARLVehicleRacingEnv from carl.envs.box2d.carl_bipedal_walker import CARLBipedalWalkerEnv # Contextenvs.s and bounds by name from carl.envs.box2d.carl_lunarlander import DEFAULT_CONTEXT as CARLLunarLanderEnv...
61.692308
96
0.894015
b505e7c16158d3956871ddc81f0001439c0ab8bf
2,328
py
Python
superior-colliculus/taouali-et-at-2014/parameters.py
mtopalid/Neurosciences
8531d59f8370f0cf7f1b4b1f72e4bf11b96e1354
[ "BSD-3-Clause" ]
27
2015-01-24T01:14:29.000Z
2021-06-10T06:50:46.000Z
superior-colliculus/taouali-et-at-2014/parameters.py
mtopalid/Neurosciences
8531d59f8370f0cf7f1b4b1f72e4bf11b96e1354
[ "BSD-3-Clause" ]
1
2015-02-24T15:44:27.000Z
2015-02-24T15:44:27.000Z
superior-colliculus/taouali-et-at-2014/parameters.py
mtopalid/Neurosciences
8531d59f8370f0cf7f1b4b1f72e4bf11b96e1354
[ "BSD-3-Clause" ]
8
2015-10-05T23:02:30.000Z
2019-12-31T23:46:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright INRIA # Contributors: Wahiba Taouali (Wahiba.Taouali@inria.fr) # Nicolas P. Rougier (Nicolas.Rougier@inria.fr) # # This software is governed by the CeCILL license under...
40.842105
79
0.685997
fc8f770668abce97430364fbd672c8d93d41ec6d
217
py
Python
Licence 2/I33/Exam 2/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/Exam 2/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/Exam 2/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
log_table = [] alpha_table = [] def multiplie(x, y, P): if (x == 0) or (y == 0): return 0 m_ = len(bin(P)) - 3 i = log_table[x] j = log_table[y] return alpha_table[(i+j) % ((1 << m_)-1)]
18.083333
45
0.483871
4fb96a2214536513cf13011f0d5848e5730bb295
1,432
py
Python
dags/homelessness/racer_nightly_to_storage.py
rasunci-ladot/aqueduct
c53640486d238ce11cfe85dcbb0d6b0d72061904
[ "Apache-2.0" ]
null
null
null
dags/homelessness/racer_nightly_to_storage.py
rasunci-ladot/aqueduct
c53640486d238ce11cfe85dcbb0d6b0d72061904
[ "Apache-2.0" ]
null
null
null
dags/homelessness/racer_nightly_to_storage.py
rasunci-ladot/aqueduct
c53640486d238ce11cfe85dcbb0d6b0d72061904
[ "Apache-2.0" ]
null
null
null
""" DAG for Waze Data to move to SQL Data Warehouse from Amazon S3 """ from datetime import datetime, timedelta import pandas as pd from airflow import DAG from airflow.operators import PythonOperator default_args = { "owner": "airflow", "depends_on_past": False, "start_date": datetime(2018, 1, 12), # Fi...
27.538462
78
0.665503
5192292f712ed137decba50ed661665a426fe958
12,859
py
Python
sdk/python/pulumi_azure_native/network/v20201101/virtual_hub_bgp_connection.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/virtual_hub_bgp_connection.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20201101/virtual_hub_bgp_connection.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "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, overload from ... import _utilities __...
42.299342
1,211
0.644685
3742b293585d033174fe2e8830ec33341c528711
89,286
py
Python
.install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/command_base.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
.install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/command_base.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
null
null
null
.install/.backup/platform/gcutil/lib/google_compute_engine/gcutil_lib/command_base.py
bopopescu/google-cloud-sdk
b34e6a18f1e89673508166acce816111c3421e4b
[ "Apache-2.0" ]
1
2020-07-24T20:04:47.000Z
2020-07-24T20:04:47.000Z
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.863725
80
0.652376
80b42429ee0f6d3d766ac76a5c94a7167d0e120e
40
py
Python
api.py
FOSS-X/udapi-core-v2
0e0cceb7130389d01bc4e674ad9a1f38fb556837
[ "MIT" ]
null
null
null
api.py
FOSS-X/udapi-core-v2
0e0cceb7130389d01bc4e674ad9a1f38fb556837
[ "MIT" ]
null
null
null
api.py
FOSS-X/udapi-core-v2
0e0cceb7130389d01bc4e674ad9a1f38fb556837
[ "MIT" ]
null
null
null
from udapi import app app.run(port=2020)
20
21
0.8
af729d4be8bf49e475aad848722ca01f0cd32f21
13,469
py
Python
Agilent_NetworkAnalyzer/Agilent_NetworkAnalyzer.py
ShabaniLab/LabberDrivers
78cfeb67285a1bf5d44938d6cb674d781f6f3e42
[ "MIT" ]
null
null
null
Agilent_NetworkAnalyzer/Agilent_NetworkAnalyzer.py
ShabaniLab/LabberDrivers
78cfeb67285a1bf5d44938d6cb674d781f6f3e42
[ "MIT" ]
2
2021-08-22T16:42:42.000Z
2021-12-08T14:51:23.000Z
Agilent_NetworkAnalyzer/Agilent_NetworkAnalyzer.py
ShabaniLab/LabberDrivers
78cfeb67285a1bf5d44938d6cb674d781f6f3e42
[ "MIT" ]
1
2020-02-06T20:50:19.000Z
2020-02-06T20:50:19.000Z
#!/usr/bin/env python from VISA_Driver import VISA_Driver import numpy as np import os.path __version__ = "0.0.1" class Error(Exception): pass class Driver(VISA_Driver): """ This class implements the Agilent 5230 PNA driver""" def performOpen(self, options={}): """Perform the operation of openi...
46.767361
125
0.495434
2cfa5cddc947c6dc8439155e19e7b52b3cd59d70
5,008
py
Python
wildlifelicensing/apps/applications/migrations/0002_auto_20160610_1647.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
null
null
null
wildlifelicensing/apps/applications/migrations/0002_auto_20160610_1647.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
11
2019-03-19T02:03:11.000Z
2019-05-31T07:20:59.000Z
wildlifelicensing/apps/applications/migrations/0002_auto_20160610_1647.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
2
2020-08-10T10:17:10.000Z
2021-10-31T23:20:53.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-06-10 08:47 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('wl_appl...
41.733333
158
0.630192
97534fd8ec8ea3cec9a8e9b123fa06ddf482a8ec
1,866
py
Python
misc/mp_thread_exp.py
kr-g/thonny
8aec29b6920482ba131bb03aab36ae2765e17d0d
[ "MIT" ]
null
null
null
misc/mp_thread_exp.py
kr-g/thonny
8aec29b6920482ba131bb03aab36ae2765e17d0d
[ "MIT" ]
null
null
null
misc/mp_thread_exp.py
kr-g/thonny
8aec29b6920482ba131bb03aab36ae2765e17d0d
[ "MIT" ]
null
null
null
import time import serial PORT = "/dev/ttyACM0" CTRL_C = b"\x03" NORMAL_MODE_CMD = b"\x02" PASTE_MODE_CMD = b"\x05" EOT = b"\x04" BLOCK_SIZE = 64 def forward_until(marker, must_include=None): total = b"" while not total.endswith(marker): b = s.read(1) total += b print(b.decode("UTF-...
20.064516
74
0.617363
a9658b7bef6d6adb57715a9460bb932e56de710b
817
py
Python
settings.py
JamesOConnor/kaggle_airbus_ship
e80601e256815ded16ef226e831a957040b2ec6b
[ "MIT" ]
null
null
null
settings.py
JamesOConnor/kaggle_airbus_ship
e80601e256815ded16ef226e831a957040b2ec6b
[ "MIT" ]
null
null
null
settings.py
JamesOConnor/kaggle_airbus_ship
e80601e256815ded16ef226e831a957040b2ec6b
[ "MIT" ]
null
null
null
import os from pathlib import Path ################################################################################### # PROJECT SETTINGS ################################################################################### PROJ_ROOT = str(Path(__file__).parents[0].resolve().absolute()) ################################...
32.68
83
0.417381
7f803ca6f29094f45709c2eac4bd4f279b11e320
17,998
py
Python
pcdet/models/roi_heads/center_rcnn_tasks.py
ocNflag/point2seq
710686f576b3df5469a06c66860758b25f852dbd
[ "Apache-2.0" ]
21
2022-03-24T09:37:38.000Z
2022-03-31T13:21:54.000Z
pcdet/models/roi_heads/center_rcnn_tasks.py
ocNflag/point2seq
710686f576b3df5469a06c66860758b25f852dbd
[ "Apache-2.0" ]
null
null
null
pcdet/models/roi_heads/center_rcnn_tasks.py
ocNflag/point2seq
710686f576b3df5469a06c66860758b25f852dbd
[ "Apache-2.0" ]
1
2022-03-24T09:37:48.000Z
2022-03-24T09:37:48.000Z
import torch import torch.nn as nn import torch.nn.functional as F import copy from ...ops.pointnet2.pointnet2_stack import pointnet2_modules as pointnet2_stack_modules from ...utils import common_utils, loss_utils from .roi_head_template import RoIHeadTemplate from .target_assigner.center_target_layer_mtasks import C...
46.869792
137
0.622903
da512d9f625fd9e9c45a68b5183e0b7f42c69ece
8,980
py
Python
nipype/interfaces/minc/tests/test_auto_Resample.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/minc/tests/test_auto_Resample.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/minc/tests/test_auto_Resample.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..minc import Resample def test_Resample_inputs(): input_map = dict( args=dict(argstr='%s', ), clobber=dict( argstr='-clobber', usedefault=True, ), coronal_sli...
34.538462
76
0.512361
0df7d022b4caa5b9b3c1df5da085750139699c85
13,754
py
Python
canopy/openapi/models/canopy_document.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
canopy/openapi/models/canopy_document.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
1
2022-01-31T10:18:08.000Z
2022-01-31T10:18:08.000Z
canopy/openapi/models/canopy_document.py
CanopySimulations/canopy-python
9ec37e674e65d6fbef0402ac0c612c163d55631e
[ "MIT" ]
null
null
null
# coding: utf-8 """ Canopy.Api No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from ca...
28.01222
322
0.600262
8af7db74549b8cdcc845a13ac3e538dd0e830c56
18,296
py
Python
gym_combat/gym_combat/envs/Greedy/Greedy_player.py
refaev/combat_gym
f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf
[ "MIT" ]
null
null
null
gym_combat/gym_combat/envs/Greedy/Greedy_player.py
refaev/combat_gym
f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf
[ "MIT" ]
null
null
null
gym_combat/gym_combat/envs/Greedy/Greedy_player.py
refaev/combat_gym
f02fcf98e95a1dda29cdddd4ae271de3e18ea3bf
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import networkx as nx from gym_combat.envs.Arena.Position import Position from gym_combat.envs.Arena.CState import State from gym_combat.envs.Arena.AbsDecisionMaker import AbsDecisionMaker from gym_combat.envs.Common.constants import * import numpy as np import os PRINT_FLAG = False c...
42.648019
162
0.602919
b0ee284839d61d3b09876e4f10877569956afd9e
15,714
py
Python
usigtreatment/utreatment.py
Krounet/usigtreatment
9ce01aa62ac4969d960512426580a8ec0e865d51
[ "WTFPL" ]
null
null
null
usigtreatment/utreatment.py
Krounet/usigtreatment
9ce01aa62ac4969d960512426580a8ec0e865d51
[ "WTFPL" ]
null
null
null
usigtreatment/utreatment.py
Krounet/usigtreatment
9ce01aa62ac4969d960512426580a8ec0e865d51
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jan 23 14:06:35 2017 @author: Krounet e-mail:krounet@gmail.com """ from numpy import polyfit,poly1d,angle,unwrap,abs,conjugate,ones,pi,array,arange,take,sum,exp,mean,cumsum,concatenate,interp,hanning,hamming,blackman,real,complex128,complex64 from numpy.fft import fft...
37.061321
176
0.666348
67022a6965752dd2363cae6d5f5ca6c849c4b40c
1,886
py
Python
build-support/compile_flags.py
YCjia/kudu
36187ef62e9fb892ea286af8e9547790a3fd34ba
[ "Apache-2.0" ]
11
2021-08-24T20:27:06.000Z
2022-02-28T06:05:26.000Z
build-support/compile_flags.py
YCjia/kudu
36187ef62e9fb892ea286af8e9547790a3fd34ba
[ "Apache-2.0" ]
29
2019-07-01T13:40:51.000Z
2021-06-30T19:15:03.000Z
build-support/compile_flags.py
YCjia/kudu
36187ef62e9fb892ea286af8e9547790a3fd34ba
[ "Apache-2.0" ]
16
2019-06-04T20:11:41.000Z
2021-04-27T20:59:33.000Z
#!/usr/bin/env python # # 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 # "...
30.918033
75
0.637858
79c2287b15477e027553ee783c2cc4e301adef3a
105
py
Python
mayan/apps/document_parsing/__init__.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
2,743
2017-12-18T07:12:30.000Z
2022-03-27T17:21:25.000Z
mayan/apps/document_parsing/__init__.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
15
2020-06-06T00:00:48.000Z
2022-03-12T00:03:54.000Z
mayan/apps/document_parsing/__init__.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
257
2017-12-18T03:12:58.000Z
2022-03-25T08:59:10.000Z
from __future__ import unicode_literals default_app_config = 'document_parsing.apps.DocumentParsingApp'
26.25
63
0.87619
840ab06ad2977e746df2b367e4f234ad3e3f17ca
636
py
Python
backend/manage.py
crowdbotics-apps/noisy-pond-30172
a906c1828d6aec89310ce9e90da525f16c48fe4a
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/noisy-pond-30172
a906c1828d6aec89310ce9e90da525f16c48fe4a
[ "FTL", "AML", "RSA-MD" ]
33
2021-08-29T04:49:16.000Z
2022-02-20T15:30:49.000Z
backend/manage.py
crowdbotics-apps/noisy-pond-30172
a906c1828d6aec89310ce9e90da525f16c48fe4a
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'noisy_pond_30172.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: rai...
28.909091
80
0.687107
72d77ed5c27d114e7df1880da823e3bbec4bb8a1
1,320
py
Python
2.4.py
tanny2015/Code_189
3cbd57ed7e3d7da69800696be6481620362dce76
[ "MIT" ]
null
null
null
2.4.py
tanny2015/Code_189
3cbd57ed7e3d7da69800696be6481620362dce76
[ "MIT" ]
null
null
null
2.4.py
tanny2015/Code_189
3cbd57ed7e3d7da69800696be6481620362dce76
[ "MIT" ]
null
null
null
from LinkList import LinkedList def partition(llist, par): i = llist.head if i is None: return i_slow = i small_head, small_tail, big_head, big_tail = None, None, None, None while i is not None: if i.data < par: if small_head is None: small_hea...
28.695652
72
0.522727
7c4001c3f7b496de6dff417fec3cf987e14f05d7
112,577
py
Python
src/commercetools/schemas/_order_edit.py
mikedingjan/commercetools-python-sdk
95caec9e72017114c4536e63e19f5283754a3871
[ "MIT" ]
null
null
null
src/commercetools/schemas/_order_edit.py
mikedingjan/commercetools-python-sdk
95caec9e72017114c4536e63e19f5283754a3871
[ "MIT" ]
null
null
null
src/commercetools/schemas/_order_edit.py
mikedingjan/commercetools-python-sdk
95caec9e72017114c4536e63e19f5283754a3871
[ "MIT" ]
null
null
null
# DO NOT EDIT! This file is automatically generated import marshmallow import marshmallow_enum from commercetools import helpers, types from commercetools.schemas._base import ( PagedQueryResponseSchema, UpdateActionSchema, UpdateSchema, ) from commercetools.schemas._common import ( LocalizedStringFie...
47.702119
162
0.74684
0021f10488eac8e11ca185a7b38885335ddbf947
929
py
Python
GitSvnServer/commands/diff.py
cespedes/git-svnserver
97741e064f9473423e7a80260d2e09a4596384b9
[ "BSD-3-Clause" ]
1
2016-01-24T11:59:25.000Z
2016-01-24T11:59:25.000Z
GitSvnServer/commands/diff.py
slonopotamus/git_svn_server
80889d9557c99873ceaa58e5260b8edfa30bcffb
[ "BSD-3-Clause" ]
null
null
null
GitSvnServer/commands/diff.py
slonopotamus/git_svn_server
80889d9557c99873ceaa58e5260b8edfa30bcffb
[ "BSD-3-Clause" ]
null
null
null
from GitSvnServer import parse from GitSvnServer import generate as gen from GitSvnServer.delta_cmd import * class Diff(DeltaCmd): _cmd = 'diff' def setup(self): self.newurl = parse.string(self.args[4]) def complete(self): repos = self.link.repos text_deltas = True dept...
22.119048
56
0.573735
51808edd8d7f20edae88d1037450aa417ce8ce36
822
py
Python
Module6_HW/hw6_2_7.py
vladspirin/python_core
8d91dce246a438c15c8c17d30971fa5572247eb4
[ "Unlicense" ]
null
null
null
Module6_HW/hw6_2_7.py
vladspirin/python_core
8d91dce246a438c15c8c17d30971fa5572247eb4
[ "Unlicense" ]
null
null
null
Module6_HW/hw6_2_7.py
vladspirin/python_core
8d91dce246a438c15c8c17d30971fa5572247eb4
[ "Unlicense" ]
null
null
null
from random import randint col = int(input('Please enter the number of columns: ')) row = int(input('Please enter the number of rows: ')) numbers = [[0] * col for row in range(row)] numbers_new = [[0] * col for row in range(row)] for i in range(row): for j in range(col): numbers[i][j] = randint(1, 100) ...
23.485714
56
0.63382
e1d7e05e462102ce7520c3da2937f568fc7c25f8
5,761
py
Python
pyts/decomposition/decomposition.py
TobCar/pyts
8f872675d2025bf7a0bf5c843ea6144a6d460d70
[ "BSD-3-Clause" ]
null
null
null
pyts/decomposition/decomposition.py
TobCar/pyts
8f872675d2025bf7a0bf5c843ea6144a6d460d70
[ "BSD-3-Clause" ]
null
null
null
pyts/decomposition/decomposition.py
TobCar/pyts
8f872675d2025bf7a0bf5c843ea6144a6d460d70
[ "BSD-3-Clause" ]
null
null
null
"""The :mod:`pyts.decomposition` module includes decomposition algorithms. Implemented algorithms are: - Singular Spectrum Analysis """ from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import range from f...
37.167742
79
0.591043
5c0a940e7fb565a3ddcd41c4223a1c338dbb3742
9,621
py
Python
test/functional/feature_notifications.py
TheCoffeeCoins/TheCoffeeCoins
9b793253992ea762e4101edc12c3b0becc64261c
[ "MIT" ]
null
null
null
test/functional/feature_notifications.py
TheCoffeeCoins/TheCoffeeCoins
9b793253992ea762e4101edc12c3b0becc64261c
[ "MIT" ]
null
null
null
test/functional/feature_notifications.py
TheCoffeeCoins/TheCoffeeCoins
9b793253992ea762e4101edc12c3b0becc64261c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The thecoffeecoins Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the -alertnotify, -blocknotify and -walletnotify options.""" import os from test_framework...
50.904762
152
0.643072
e7a19aa7f83eccfead38b637781bf8f4f0414239
4,233
py
Python
tests/benchmark/milvus_benchmark/runners/locust_user.py
CyberFlameGO/milvus
c6ebae89598c4198fa44ea02f8a60219b21fbffd
[ "Apache-2.0" ]
10,504
2019-09-16T12:20:11.000Z
2022-03-31T15:07:56.000Z
tests/benchmark/milvus_benchmark/runners/locust_user.py
CyberFlameGO/milvus
c6ebae89598c4198fa44ea02f8a60219b21fbffd
[ "Apache-2.0" ]
13,389
2019-09-16T06:49:53.000Z
2022-03-31T18:01:24.000Z
tests/benchmark/milvus_benchmark/runners/locust_user.py
CyberFlameGO/milvus
c6ebae89598c4198fa44ea02f8a60219b21fbffd
[ "Apache-2.0" ]
1,792
2019-09-18T04:27:42.000Z
2022-03-31T14:37:20.000Z
import logging import random import pdb import gevent # import gevent.monkey # gevent.monkey.patch_all() from locust import User, between, events, stats from locust.env import Environment import locust.stats import math from locust import LoadTestShape from locust.stats import stats_printer, print_stats from locust.log...
38.481818
120
0.696433
9c4debb70464715f2f51cdf2de8e33a5e6a1c84d
808
py
Python
codewars/6kyu/dinamuh/MovesInSquaredStringsIII/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
null
null
null
codewars/6kyu/dinamuh/MovesInSquaredStringsIII/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/6kyu/dinamuh/MovesInSquaredStringsIII/main.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
def rot_90_clock(strng): ar = strng.split('\n') return '\n'.join(''.join(j[i] for j in ar)[::-1] for i in range(len(ar[0]))) def diag_1_sym(strng): arr = strng.split('\n') return '\n'.join(''.join(j[i] for j in arr) for i in range(len(arr[0]))) def selfie_and_diag1(strng): ar = strng.split('\n')...
23.764706
96
0.584158
9c1b8ac33fc85b25611f4ebbae35e3c45485bc6c
18,592
py
Python
visage/apply_makeup.py
johnlatona/visage-server-python
d98dbcc0a9822d374bae056cf347282f5cf3a742
[ "MIT" ]
null
null
null
visage/apply_makeup.py
johnlatona/visage-server-python
d98dbcc0a9822d374bae056cf347282f5cf3a742
[ "MIT" ]
null
null
null
visage/apply_makeup.py
johnlatona/visage-server-python
d98dbcc0a9822d374bae056cf347282f5cf3a742
[ "MIT" ]
1
2019-06-20T17:45:26.000Z
2019-06-20T17:45:26.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Mar 20 12:28:21 2017 @author: Hriddhi Dey This module contains the ApplyMakeup class. """ import itertools import scipy.interpolate import cv2 import numpy as np from skimage import color # from detect_features import DetectLandmarks import os.path i...
37.483871
126
0.56605
458ff38383b2ba7daf4935c58a7e1b0f20b7ed90
679
py
Python
jython/src/test/resources/cucumber/runtime/jython/step_definitions/cuke_steps.py
berniew/cucumber-jvm
1d5bd84cc66f04f2d62d4c2ca40f2b3c3d59237d
[ "MIT" ]
1
2018-04-20T13:50:22.000Z
2018-04-20T13:50:22.000Z
jython/src/test/resources/cucumber/runtime/jython/step_definitions/cuke_steps.py
gajendrabisht/cucumber-jvm
9114f7c9c494bde41160afa6d06191292e33d9b9
[ "MIT" ]
null
null
null
jython/src/test/resources/cucumber/runtime/jython/step_definitions/cuke_steps.py
gajendrabisht/cucumber-jvm
9114f7c9c494bde41160afa6d06191292e33d9b9
[ "MIT" ]
null
null
null
@Given('I have (\d+) "(.+)" in my belly') def something_in_the_belly(self, n, what): self.n = int(n) self.what = what @Then('^I am "([^"]*)"$') def i_am(self, mood): if ("happy" != mood): raise(Exception("Not happy, only %d %s" % (self.n, self.what))) @Before() def default_cukes_in_the_belly(self): self.n...
24.25
69
0.621502
071885abfcc17b948954a0f19751db706bf63ebd
135
py
Python
backend/message/apps.py
ranwise/djangochannel
9c719d292b5c1d0fd008a16a64509a309bdd642e
[ "BSD-3-Clause" ]
45
2019-10-04T10:12:54.000Z
2022-03-29T18:12:34.000Z
backend/message/apps.py
ranwise/djangochannel
9c719d292b5c1d0fd008a16a64509a309bdd642e
[ "BSD-3-Clause" ]
6
2019-10-09T07:37:14.000Z
2022-01-27T16:41:16.000Z
backend/message/apps.py
ranwise/djangochannel
9c719d292b5c1d0fd008a16a64509a309bdd642e
[ "BSD-3-Clause" ]
35
2019-10-04T10:18:48.000Z
2022-01-14T22:40:38.000Z
from django.apps import AppConfig class MessageConfig(AppConfig): name = 'backend.message' verbose_name = "Личные сообщения"
19.285714
37
0.748148
97ca2dad7b2dbccf5d12228fa3a883d7d90850e3
6,518
py
Python
docs/source/conf.py
TheProjecter/python-stdnet
059be991bea40c0281dac12459539d0aa4397823
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
TheProjecter/python-stdnet
059be991bea40c0281dac12459539d0aa4397823
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
TheProjecter/python-stdnet
059be991bea40c0281dac12459539d0aa4397823
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Python StdNet documentation build configuration file, created by # sphinx-quickstart on Thu Jun 17 11:24:36 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated...
33.772021
81
0.703743
6734f33529211c6825987a8793a0ff670bd90220
2,178
py
Python
tests/factories.py
nyu-devops22-orders/orders
9d9f80b7e0052e75d6eb3a0e645fd868aacd2e67
[ "Apache-2.0" ]
null
null
null
tests/factories.py
nyu-devops22-orders/orders
9d9f80b7e0052e75d6eb3a0e645fd868aacd2e67
[ "Apache-2.0" ]
36
2022-02-24T23:21:46.000Z
2022-03-24T21:18:53.000Z
tests/factories.py
nyu-devops22-orders/orders
9d9f80b7e0052e75d6eb3a0e645fd868aacd2e67
[ "Apache-2.0" ]
null
null
null
# Copyright 2016, 2019 John J. Rofrano. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
36.915254
95
0.566575
54b20055ca0edff5810bc6a00ef3e94f9921e36b
5,375
py
Python
tests/test_paired_paths.py
Codym48/jupytext
5f725f1fee2b5f911d9981d0b92f02f5c65added
[ "MIT" ]
null
null
null
tests/test_paired_paths.py
Codym48/jupytext
5f725f1fee2b5f911d9981d0b92f02f5c65added
[ "MIT" ]
null
null
null
tests/test_paired_paths.py
Codym48/jupytext
5f725f1fee2b5f911d9981d0b92f02f5c65added
[ "MIT" ]
null
null
null
import pytest from jupytext.compare import compare from jupytext.contentsmanager import TextFileContentsManager from jupytext.paired_paths import InconsistentPath, paired_paths, base_path, full_path from jupytext.formats import ( long_form_one_format, long_form_multiple_formats, short_form_multiple_formats,...
33.805031
88
0.699907
4e14704c021eb2c3cc0303d9e93ddae55d626311
219
py
Python
blog/models.py
KunalKatiyar/portfolio-project
a11a635b095f3a9294d2e133698b5d05308b76ea
[ "MIT" ]
null
null
null
blog/models.py
KunalKatiyar/portfolio-project
a11a635b095f3a9294d2e133698b5d05308b76ea
[ "MIT" ]
null
null
null
blog/models.py
KunalKatiyar/portfolio-project
a11a635b095f3a9294d2e133698b5d05308b76ea
[ "MIT" ]
null
null
null
from django.db import models class Blog(models.Model): title = models.CharField(max_length=150) pub_date = models.DateTimeField() body = models.TextField() image = models.ImageField(upload_to='images/')
31.285714
50
0.726027
1113a26db48fd72e07cb98b717708bba8bc76f77
6,958
py
Python
frappe/desk/notifications.py
cstkyrilos/frappe
27d9306bc5924c11c2749503454cc6d11a8cc654
[ "MIT" ]
null
null
null
frappe/desk/notifications.py
cstkyrilos/frappe
27d9306bc5924c11c2749503454cc6d11a8cc654
[ "MIT" ]
null
null
null
frappe/desk/notifications.py
cstkyrilos/frappe
27d9306bc5924c11c2749503454cc6d11a8cc654
[ "MIT" ]
1
2018-03-21T16:13:12.000Z
2018-03-21T16:13:12.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import time_diff_in_seconds, now, now_datetime, DATETIME_FORMAT from dateutil.relativedelta import relativedelta @frappe.whitelist() def get_noti...
30.517544
89
0.740011
eb64c54212f9eeb08900edb520a8ee0e32d10967
16,909
py
Python
flex/validation/common.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
160
2015-01-15T05:36:44.000Z
2021-08-04T00:43:54.000Z
flex/validation/common.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
151
2015-01-20T16:45:36.000Z
2022-02-23T21:07:58.000Z
flex/validation/common.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
90
2015-01-20T11:19:36.000Z
2021-08-03T08:58:18.000Z
from __future__ import unicode_literals import re import decimal import operator import functools import collections import itertools import json import os import six from flex._compat import Mapping, Sequence from flex.exceptions import ( ValidationError, ErrorDict, ErrorList, MultiplePathsFound, ) ...
30.799636
98
0.665149
3a52c78a34e97f32fcd7f9124f50108871ed5819
3,489
py
Python
pnrapi.py
jatinmankar8/JarvisBot
f76741d3454197f338b09c1a45d3b56d9d42862c
[ "MIT" ]
null
null
null
pnrapi.py
jatinmankar8/JarvisBot
f76741d3454197f338b09c1a45d3b56d9d42862c
[ "MIT" ]
null
null
null
pnrapi.py
jatinmankar8/JarvisBot
f76741d3454197f338b09c1a45d3b56d9d42862c
[ "MIT" ]
1
2020-09-30T19:57:50.000Z
2020-09-30T19:57:50.000Z
from bs4 import BeautifulSoup import requests import re class PNRAPI: url_pnr = "http://www.indianrail.gov.in/cgi_bin/inet_pnrstat_cgi.cgi" headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0"} def __init__(self,pnr=""): self.response_json = {} if len(pnr)!=...
35.969072
105
0.706506
c9005046440bfdf11212ac4cacb9cfe4cff6cfc2
8,500
py
Python
zvt/recorders/emquantapi/quotes/em_stock_kdata_recorder.py
wlwd13303/zvt
23105a5bfdc3a5080c6c22d11e9e53d216688dea
[ "MIT" ]
2
2020-09-03T10:03:51.000Z
2021-01-28T07:01:55.000Z
zvt/recorders/emquantapi/quotes/em_stock_kdata_recorder.py
wlwd13303/zvt
23105a5bfdc3a5080c6c22d11e9e53d216688dea
[ "MIT" ]
null
null
null
zvt/recorders/emquantapi/quotes/em_stock_kdata_recorder.py
wlwd13303/zvt
23105a5bfdc3a5080c6c22d11e9e53d216688dea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import pandas as pd from zvt import init_log from zvt.api import get_kdata, AdjustType from zvt.api.quote import generate_kdata_id,get_kdata_schema from zvt.contract import IntervalLevel from zvt.contract.api import df_to_db from zvt.contract.recorder import FixedCycleDataRecorde...
42.5
118
0.584941
619cd9068af5f4e947757c6420e3747357dd3b7d
14,790
py
Python
pymatgen/command_line/vampire_caller.py
kamronald/pymatgen
20a6e87f26d34171a98481066ed876447fdd6ac3
[ "MIT" ]
1
2019-08-31T05:54:53.000Z
2019-08-31T05:54:53.000Z
pymatgen/command_line/vampire_caller.py
muse-mi/pymatgen
9e4d6776094e38b50089974d6d21e598b9299a25
[ "MIT" ]
null
null
null
pymatgen/command_line/vampire_caller.py
muse-mi/pymatgen
9e4d6776094e38b50089974d6d21e598b9299a25
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import subprocess import logging import numpy as np import pandas as pd import os from monty.dev import requires from monty.os.path import which from pymatgen.analysis.magnetism.heisenberg import HeisenbergMa...
34.556075
117
0.568087
854dae44183fdfe84c8ea129f769298b8ce04db3
424
py
Python
PythonSolution/CarPooling.py
dftty/LeetCode
c352ab2db20788c2ed6f8d1bdab42919fbe94474
[ "MIT" ]
null
null
null
PythonSolution/CarPooling.py
dftty/LeetCode
c352ab2db20788c2ed6f8d1bdab42919fbe94474
[ "MIT" ]
null
null
null
PythonSolution/CarPooling.py
dftty/LeetCode
c352ab2db20788c2ed6f8d1bdab42919fbe94474
[ "MIT" ]
null
null
null
class Solution: def carPooling(self, trips, capacity: int) -> bool: events = [] for i in range(len(trips)): events.append([trips[1], trips[0]]) events.append([trips[2], -trips[0]]) people = 0 events.sort() for i in range(len(events)): peo...
26.5
55
0.497642
d9d4b0715c79a78a17250bdb7a732f854791bc2c
3,156
py
Python
storm_control/sc_hardware/utility/corr_lock_c2dg.py
poomchan/storm-control
fcf9444cfa72fbb18a392de0b222af94ea728aeb
[ "MIT" ]
47
2015-02-11T16:05:54.000Z
2022-03-26T14:13:12.000Z
storm_control/sc_hardware/utility/corr_lock_c2dg.py
poomchan/storm-control
fcf9444cfa72fbb18a392de0b222af94ea728aeb
[ "MIT" ]
110
2015-01-30T03:53:41.000Z
2021-11-03T15:58:44.000Z
storm_control/sc_hardware/utility/corr_lock_c2dg.py
poomchan/storm-control
fcf9444cfa72fbb18a392de0b222af94ea728aeb
[ "MIT" ]
61
2015-01-09T18:31:27.000Z
2021-12-21T13:07:51.000Z
#!/usr/bin/env python """ Fit spots for the focus lock using a correlation based approach. Hazen 04/18 """ import numpy import storm_analysis.sa_library.fitting as fitting import storm_analysis.sa_library.ia_utilities_c as iaUtilsC import storm_analysis.sa_library.matched_filter_c as matchedFilterC import storm_analy...
30.346154
82
0.567807
76291a9e23c7dbff232898d60cff0d9c56b4d2e1
2,897
py
Python
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/list_repo_domains_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/list_repo_domains_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-swr/huaweicloudsdkswr/v2/model/list_repo_domains_response.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListRepoDomainsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (d...
26.099099
74
0.549534
15bf73f459d0617e7ca88c961e634027aad28c2c
13,149
py
Python
homeassistant/util/yaml.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/util/yaml.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/util/yaml.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
1
2019-06-19T07:43:11.000Z
2019-06-19T07:43:11.000Z
"""YAML utility functions.""" import logging import os import sys import fnmatch from collections import OrderedDict from typing import Union, List, Dict, Iterator, overload, TypeVar import yaml try: import keyring except ImportError: keyring = None try: import credstash except ImportError: credstash ...
35.346774
79
0.643699
3eca6130ae5e411f621b26aa4647f2283b0a803a
68
py
Python
heimerdinger/__init__.py
jayfry1077/runeterra_audio_discord_bot
0327273e702003f094e39ed995a41d21840926c8
[ "MIT" ]
1
2020-04-19T06:00:15.000Z
2020-04-19T06:00:15.000Z
heimerdinger/__init__.py
jayfry1077/runeterra_audio_discord_bot
0327273e702003f094e39ed995a41d21840926c8
[ "MIT" ]
null
null
null
heimerdinger/__init__.py
jayfry1077/runeterra_audio_discord_bot
0327273e702003f094e39ed995a41d21840926c8
[ "MIT" ]
null
null
null
from heimerdinger.invent import deck_code_to_audio, regions_to_audio
68
68
0.911765
392ffd25a02397cc25870e12c732d0225b408b19
7,250
py
Python
srim/core/material.py
agoose77/pysrim
9b8e1b7e91fe65bf17e9366e1fd9b9406ad125d2
[ "MIT" ]
17
2018-07-06T00:23:58.000Z
2022-03-09T20:48:14.000Z
srim/core/material.py
agoose77/pysrim
9b8e1b7e91fe65bf17e9366e1fd9b9406ad125d2
[ "MIT" ]
5
2016-05-11T10:05:30.000Z
2022-03-01T02:09:37.000Z
srim/core/material.py
agoose77/pysrim
9b8e1b7e91fe65bf17e9366e1fd9b9406ad125d2
[ "MIT" ]
15
2017-04-20T00:44:42.000Z
2022-02-22T14:10:48.000Z
import re from .utils import ( check_input, is_positive, is_greater_than_zero, is_zero_or_one ) from .element import Element class Material(object): """ Material Representation """ def __init__(self, elements, density, phase=0): """Create Material from elements, density, and phase ...
35.024155
123
0.571034
cc576e18297da7dac4c9516009d026c9d83a4e23
21,247
py
Python
plugins/module_utils/oci_waas_custom_helpers.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/module_utils/oci_waas_custom_helpers.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
plugins/module_utils/oci_waas_custom_helpers.py
hanielburton/oci-ansible-collection
dfdffde637f746d346ba35569be8c3a3407022f2
[ "Apache-2.0" ]
null
null
null
# 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 details. from __fu...
39.78839
120
0.633172
a52d54734b0dce6723bb9983285a8c27309c27c6
7,690
py
Python
ros/src/styx/bridge.py
TeamDoernbach/SDCNanodegreeCapstone
10bdc59dc1b8f56136bf3f6f4ab64c97082420bb
[ "MIT" ]
4
2019-01-04T07:32:33.000Z
2019-08-08T17:25:11.000Z
ros/src/styx/bridge.py
TeamDoernbach/SDCNanodegreeCapstone
10bdc59dc1b8f56136bf3f6f4ab64c97082420bb
[ "MIT" ]
19
2019-01-04T13:42:56.000Z
2019-01-21T20:10:41.000Z
ros/src/styx/bridge.py
TeamDoernbach/SDCNanodegreeCapstone
10bdc59dc1b8f56136bf3f6f4ab64c97082420bb
[ "MIT" ]
4
2019-01-08T21:54:54.000Z
2019-12-14T04:47:55.000Z
import rospy import tf from geometry_msgs.msg import PoseStamped, Quaternion, TwistStamped from dbw_mkz_msgs.msg import SteeringReport, ThrottleCmd, BrakeCmd, SteeringCmd from std_msgs.msg import Float32 as Float from std_msgs.msg import Bool from sensor_msgs.msg import PointCloud2 from sensor_msgs.msg import Image i...
34.954545
129
0.627828
c2949c0ec3daa3e596af79fc377ba2c2f66bd8db
2,016
py
Python
review_analysis/2-av-rat-week.py
yingzhuo1994/Data-Analysis-Visualization
23ce629cabd24ce854cf0dcd6b2c9e12c4a362f4
[ "MIT" ]
null
null
null
review_analysis/2-av-rat-week.py
yingzhuo1994/Data-Analysis-Visualization
23ce629cabd24ce854cf0dcd6b2c9e12c4a362f4
[ "MIT" ]
null
null
null
review_analysis/2-av-rat-week.py
yingzhuo1994/Data-Analysis-Visualization
23ce629cabd24ce854cf0dcd6b2c9e12c4a362f4
[ "MIT" ]
null
null
null
import justpy as jp import pandas from datetime import datetime from pytz import utc data = pandas.read_csv("reviews.csv", parse_dates=['Timestamp']) data['Week'] = data['Timestamp'].dt.strftime('%Y %U') week_average = data.groupby(['Week']).mean() chart_def = """ { chart: { type: 'spline', invert...
23.717647
95
0.509921
353cf20f8f6f80eba8a4a895cdd2739818a85f53
1,143
py
Python
python-examples/linear_reg.py
kood-codes/py-to-js
1fc81dc6c27ee6a18b9342c8c9546962b83fb8a8
[ "MIT" ]
1
2022-01-18T03:40:05.000Z
2022-01-18T03:40:05.000Z
python-examples/linear_reg.py
kood-codes/py-to-js
1fc81dc6c27ee6a18b9342c8c9546962b83fb8a8
[ "MIT" ]
null
null
null
python-examples/linear_reg.py
kood-codes/py-to-js
1fc81dc6c27ee6a18b9342c8c9546962b83fb8a8
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def estimate_coef(x, y): # number of observations/points n = np.size(x) # mean of x and y vector m_x, m_y = np.mean(x), np.mean(y) # calculating cross-deviation and deviation about x SS_xy = np.sum(y*x) - n*m_y*m_x SS_xx = np.sum(x*x) - n*m_x*m_x ...
21.566038
73
0.625547
fd56e64109a659998648a03dff89a8aaa5580efa
705
py
Python
xlsxwriter/test/vml/test_write_stroke.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/vml/test_write_stroke.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/vml/test_write_stroke.py
totdiao/XlsxWriter
3d65858d8933bddb8262d500bcc2005f28fde645
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ...vml import Vml class TestWriteVstroke(unittest.TestCase): """ Test the Vml ...
21.363636
79
0.548936
95b01484e8c7c37253f8d667ed789d3e7179f3c3
6,591
py
Python
testoutLF/lanefollowing/ros2_ws/src/lane_following/drive.py
dr563105/basicad_framework
0d820390116dcd58ac7061074b5e33cb0c2f26de
[ "MIT" ]
null
null
null
testoutLF/lanefollowing/ros2_ws/src/lane_following/drive.py
dr563105/basicad_framework
0d820390116dcd58ac7061074b5e33cb0c2f26de
[ "MIT" ]
null
null
null
testoutLF/lanefollowing/ros2_ws/src/lane_following/drive.py
dr563105/basicad_framework
0d820390116dcd58ac7061074b5e33cb0c2f26de
[ "MIT" ]
null
null
null
import rclpy from rclpy.node import Node from rclpy.timer import WallTimer from geometry_msgs.msg import TwistStamped from sensor_msgs.msg import CompressedImage import message_filters import threading import numpy as np import cv2 import os import tensorflow as tf from keras import backend as K from keras.models impor...
36.821229
145
0.632377
6c8b9802621a7e4831e6631ddb2f01b82160ddfb
3,356
py
Python
ptest/util.py
KarlGong/ptest
a17e82ff64465daeadcc8b73a44650a4044901d4
[ "Apache-2.0" ]
65
2015-05-22T12:35:35.000Z
2022-01-12T10:14:32.000Z
ptest/util.py
KarlGong/ptest
a17e82ff64465daeadcc8b73a44650a4044901d4
[ "Apache-2.0" ]
3
2019-07-24T23:21:08.000Z
2020-10-28T12:14:50.000Z
ptest/util.py
KarlGong/ptest
a17e82ff64465daeadcc8b73a44650a4044901d4
[ "Apache-2.0" ]
10
2017-06-26T06:05:03.000Z
2021-12-08T07:50:10.000Z
import asyncio import ctypes import errno import os import sys import time import traceback import types from threading import Thread from typing import Any def make_dirs(dir_path: str): try: os.makedirs(dir_path) except OSError as e: if e.errno != errno.EEXIST: # be happy if someone already...
30.234234
130
0.604291
6d2e62593f688873c1d6411202059d4a8a6eeaea
19,383
py
Python
mule_local/python/mule_local/postprocessing/PlaneDataPhysicalDiff.py
raaphy/sweet
69fcf1920becd4fd762ded2f726614aae00b3f69
[ "MIT" ]
null
null
null
mule_local/python/mule_local/postprocessing/PlaneDataPhysicalDiff.py
raaphy/sweet
69fcf1920becd4fd762ded2f726614aae00b3f69
[ "MIT" ]
null
null
null
mule_local/python/mule_local/postprocessing/PlaneDataPhysicalDiff.py
raaphy/sweet
69fcf1920becd4fd762ded2f726614aae00b3f69
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import sys import math import numpy as np from scipy.interpolate import RectBivariateSpline from scipy import signal from mule_local.postprocessing.PlaneDataPhysical import * from mule.InfoError import * class PlaneDataPhysicalDiff(InfoError): def __init__( self, filen...
30.766667
135
0.577465
036904fb9020ce3fe0dff6c7c13ab1d11e30e172
2,251
py
Python
example with ASCII grid/solver_example.py
KrasiF/sudoku-solver
fd9bd9808cb011364375d97b7c24e0216b2954e6
[ "MIT" ]
null
null
null
example with ASCII grid/solver_example.py
KrasiF/sudoku-solver
fd9bd9808cb011364375d97b7c24e0216b2954e6
[ "MIT" ]
null
null
null
example with ASCII grid/solver_example.py
KrasiF/sudoku-solver
fd9bd9808cb011364375d97b7c24e0216b2954e6
[ "MIT" ]
null
null
null
from sudoku_solver import SudokuSolver from ascii_tables import ASCIITable sudoku1 = [["",8,"",2,"",4,"","",5], ["","","",7,"","","","",""], ["",4,6,"","","",1,"",""], ["","",5,"",8,"","","",6], [8,2,"","","","","",7,""], [1,"",3,"","","","",8,9], ["",9,4,"",...
30.418919
96
0.395824
745c3d313e57b43a189b42dad404178d5c05c331
3,105
py
Python
MedManagementWeb/MedWeb/MedWeb/clinical_database/medication_data.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/MedWeb/MedWeb/clinical_database/medication_data.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
null
null
null
MedManagementWeb/MedWeb/MedWeb/clinical_database/medication_data.py
Samuel789/MediPi
6e738d1acc426e4196cae7fb174174c3e1480936
[ "Apache-2.0" ]
1
2020-10-22T03:54:55.000Z
2020-10-22T03:54:55.000Z
""" Mock medication database making use of dm+d/SNOMED medication IDs Cautionary text is placeholder and not accurate. """ medication_data = [{"id": 327096008, "full_name": "Tacrolimus 1mg capsules", "short_name": "Tacrolimus", "cautionary_text": "Avoid exces...
50.080645
102
0.456039
5e750f0d69d35fbbe988bf177a165bb56f5aaa47
17,331
py
Python
net/monodepth_model.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
net/monodepth_model.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
net/monodepth_model.py
ClovisChen/LearningCNN
cd9102a3d71f602024558d818039f5b759c92fa5
[ "Apache-2.0" ]
null
null
null
# Copyright UCL Business plc 2017. Patent Pending. All rights reserved. # # The MonoDepth Software is licensed under the terms of the UCLB ACP-A licence # which allows for non-commercial use only, the full terms of which are made # available in the LICENSE file. # # For any other use of the software not covered by the...
44.438462
186
0.581559
41f06b0de2524c732e7864e370b3a57e08b2aa14
647
py
Python
redhawk/test/test_common_node_position.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
2
2016-10-04T11:46:32.000Z
2017-07-09T15:23:55.000Z
redhawk/test/test_common_node_position.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
4
2016-03-07T13:16:48.000Z
2018-03-21T00:25:04.000Z
redhawk/test/test_common_node_position.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
3
2016-04-06T08:04:34.000Z
2020-03-17T20:59:47.000Z
#!/usr/bin/env python """ Test the node_position module in redhawk/common""" from __future__ import absolute_import import redhawk.common.node_position as node_position class TestNodePosition: def __init__(self): return def setUp(self): self.a = node_position.NodePosition("a", 10, 20) return def T...
23.962963
67
0.689335
daf1ac4420c0a70b595a8da8db7640fff9de7322
534
py
Python
Django Rest Class Based API view/Person/models.py
abhisheksahu92/Django-Rest-Framework
45ddafb93ed1f2e232d2f537f144bf79cb30bf3d
[ "MIT" ]
null
null
null
Django Rest Class Based API view/Person/models.py
abhisheksahu92/Django-Rest-Framework
45ddafb93ed1f2e232d2f537f144bf79cb30bf3d
[ "MIT" ]
null
null
null
Django Rest Class Based API view/Person/models.py
abhisheksahu92/Django-Rest-Framework
45ddafb93ed1f2e232d2f537f144bf79cb30bf3d
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Person(models.Model): first_name = models.CharField(verbose_name='First Name', max_length=50) last_name = models.CharField(verbose_name='Last Name', max_length=50) email = models.EmailField(verbose_name='Email',max_length=50,unique=True) pho...
41.076923
77
0.743446
0414a188053c7be2752cb2b90e6a142d83f317ee
7,572
py
Python
GPy_ABCD/KernelExpansion/kernelExpressionOperations.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
null
null
null
GPy_ABCD/KernelExpansion/kernelExpressionOperations.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
null
null
null
GPy_ABCD/KernelExpansion/kernelExpressionOperations.py
juanluislm/GPy-ABCD
63aa3a8a83148e0aaf8691ac3f69bced6fbaf600
[ "BSD-3-Clause" ]
1
2021-01-21T12:52:37.000Z
2021-01-21T12:52:37.000Z
from collections import Counter from GPy_ABCD.KernelExpressions.all import SumKE, ProductKE, ChangeKE from GPy_ABCD.Util.kernelUtil import sortOutTypePair # NICE BUT UNNECESSARY REFACTORING: make add and multiply two cases of the same function # NOTE: # copy and deepcopy from copy would look very elegant when par...
51.162162
203
0.623085
a7a97898d0f8c50dd632ce8569077ddaecea3864
2,199
py
Python
anime_downloader/sites/darkanime.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
1,077
2020-10-17T15:43:17.000Z
2022-03-31T15:24:29.000Z
anime_downloader/sites/darkanime.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
509
2018-06-01T13:07:56.000Z
2020-10-17T13:34:39.000Z
anime_downloader/sites/darkanime.py
Alsira/anime-downloader
d82b4cfd5c7c6c358d0d8ffd36ce2d5c4a285595
[ "Unlicense" ]
255
2018-05-27T03:52:11.000Z
2020-10-12T17:27:38.000Z
import logging import json import re from anime_downloader.sites.anime import Anime, AnimeEpisode, SearchResult from anime_downloader.sites import helpers logger = logging.getLogger(__name__) class DarkAnime(Anime, sitename='darkanime'): sitename = 'darkanime' @classmethod def search(cls,...
33.318182
135
0.534334
9e07acfc8a2d95edbeadd08778793a266dcce427
1,174
py
Python
retired/retired/geckocorefile.py
gecko-robotics/pygecko
a809593a894d8e591e992455a01aa73d8f7b7981
[ "MIT" ]
3
2019-06-13T07:52:12.000Z
2020-07-05T13:28:43.000Z
retired/retired/geckocorefile.py
walchko/pygecko
a809593a894d8e591e992455a01aa73d8f7b7981
[ "MIT" ]
23
2017-07-07T01:29:33.000Z
2018-11-23T18:41:08.000Z
retired/retired/geckocorefile.py
MomsFriendlyRobotCompany/pygecko
a809593a894d8e591e992455a01aa73d8f7b7981
[ "MIT" ]
null
null
null
# ############################################## # # The MIT License (MIT) # # Copyright (c) 2014 Kevin Walchko # # see LICENSE for full details # ############################################## # # # from tempfile import NamedTemporaryFile # from glob import glob # import os # import platform # try: # import simple...
27.302326
92
0.511925
f51e07137371de9a6e9a06cfca55870a0d7fc087
1,436
py
Python
fixture/session.py
Byelenka/studying_python
7c0a9ee60fcde16ad78a6baa6fbf58b05f1007e9
[ "Apache-2.0" ]
null
null
null
fixture/session.py
Byelenka/studying_python
7c0a9ee60fcde16ad78a6baa6fbf58b05f1007e9
[ "Apache-2.0" ]
null
null
null
fixture/session.py
Byelenka/studying_python
7c0a9ee60fcde16ad78a6baa6fbf58b05f1007e9
[ "Apache-2.0" ]
null
null
null
import time class SessionHelper: def __init__(self, app): self.app = app def login(self, username, password): wd = self.app.wd self.app.open_home_page() wd.find_element_by_name("user").click() wd.find_element_by_name("user").clear() wd.find_element_by_name("us...
28.72
73
0.603064
cf0081d785618bade59c1002cec84720a4749285
755
py
Python
ingestor/ingest.py
stevekutz/BCGOV_test
0b71b80abc36b19197f212cb73200707092e7393
[ "Apache-2.0" ]
null
null
null
ingestor/ingest.py
stevekutz/BCGOV_test
0b71b80abc36b19197f212cb73200707092e7393
[ "Apache-2.0" ]
null
null
null
ingestor/ingest.py
stevekutz/BCGOV_test
0b71b80abc36b19197f212cb73200707092e7393
[ "Apache-2.0" ]
null
null
null
from config import Config import logging from rabbitmq import RabbitMQ from flask import request, jsonify, Response, json from flask_api import FlaskAPI application = FlaskAPI(__name__) logging.warning('*** ingestor initialized ***') rabbitmq = RabbitMQ( Config() ) # Create a queue for the messages Flask receives (i...
22.878788
78
0.711258
4e0fc622dcd57dc10e93d132d669d009da85412f
2,986
py
Python
app.py
cs01/python-online-disassembler
bf01605b591d09f4546003ced1a6c72d0e453b39
[ "MIT" ]
5
2018-08-11T06:49:59.000Z
2020-02-28T13:29:52.000Z
app.py
cs01/python-online-disassembler
bf01605b591d09f4546003ced1a6c72d0e453b39
[ "MIT" ]
null
null
null
app.py
cs01/python-online-disassembler
bf01605b591d09f4546003ced1a6c72d0e453b39
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import json import base64 import lzma import black import dis from flask import ( Flask, render_template, request, send_from_directory, render_template_string, redirect, url_for, ) app = Flask(__name__) def compress_state(data): compressed = lzma.comp...
24.677686
75
0.600469
e2dbc8df9918818b19164c157ca2142f110a8375
5,326
py
Python
mmdetection/configs/faster_rcnn_ohem_r50_fpn_1x.py
taikis/kaggle-kuzushiji-recognition
63c063f03f1ff5d53d411ae1709b4e328e170ace
[ "MIT" ]
1,467
2020-03-24T01:38:24.000Z
2022-03-31T03:02:05.000Z
configs/faster_rcnn_ohem_r50_fpn_1x.py
cds-mipt/cds-mmdetection
da6b1c82715c189bf33e944c6edda80590b5a867
[ "Apache-2.0" ]
208
2020-03-26T16:24:23.000Z
2022-03-30T13:12:07.000Z
configs/faster_rcnn_ohem_r50_fpn_1x.py
cds-mipt/cds-mmdetection
da6b1c82715c189bf33e944c6edda80590b5a867
[ "Apache-2.0" ]
300
2020-03-24T03:55:02.000Z
2022-03-29T19:08:07.000Z
# model settings model = dict( type='FasterRCNN', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), neck=dict( type='FPN', in_channels=[25...
30.434286
78
0.591438
8f2e09b30cc168c9f00258ee7449ffaae07e67c7
6,428
py
Python
lighthive/client.py
emre/lighthive
4cc637c710c32d321bf5434d0ba41e0643db0d85
[ "MIT" ]
10
2020-03-21T22:55:21.000Z
2022-01-23T07:49:08.000Z
lighthive/client.py
emre/lighthive
4cc637c710c32d321bf5434d0ba41e0643db0d85
[ "MIT" ]
2
2020-03-25T09:45:56.000Z
2020-05-01T01:04:20.000Z
lighthive/client.py
emre/lighthive
4cc637c710c32d321bf5434d0ba41e0643db0d85
[ "MIT" ]
5
2020-03-22T23:53:23.000Z
2022-01-03T10:01:27.000Z
import logging import uuid from itertools import cycle import asyncio import backoff import requests from .exceptions import RPCNodeException from .broadcast.transaction_builder import TransactionBuilder from .helpers.account import Account from .helpers.rc import ResourceCredit from .node_picker import sort_nodes_by...
32.795918
102
0.606409
368c4c6b63947a63b70651d29368e879d44f5e89
1,965
py
Python
publish.py
jamesbowman/gd1
b5e4f0a05348034005bfc7e80d7c073d70ddb5a9
[ "BSD-3-Clause" ]
3
2019-11-23T05:50:53.000Z
2020-11-07T00:15:29.000Z
publish.py
jamesbowman/gd1
b5e4f0a05348034005bfc7e80d7c073d70ddb5a9
[ "BSD-3-Clause" ]
9
2015-06-21T01:10:38.000Z
2015-06-22T01:25:44.000Z
publish.py
jamesbowman/gd1
b5e4f0a05348034005bfc7e80d7c073d70ddb5a9
[ "BSD-3-Clause" ]
5
2016-08-26T21:26:11.000Z
2022-02-01T07:35:26.000Z
#!/usr/bin/python # # This program assembles the distribution file Gameduino.zip # from the source .ino files, and the asset files in # converted-assets. # inventory = { '1.Basics' : "sprites256 palettes rotate collision scroll", '2.Audio' : "toccata player sample instruments2", '3.Advan...
31.190476
91
0.542494
3e0958d7b504dbf2e7e0d6dd5a69789a72e1e960
2,556
py
Python
jsondb.py
raythuns/Python-Toolkit
e3bd3b067326d163ac46f53c6c72d86e74be7c09
[ "Unlicense" ]
1
2018-02-25T10:33:50.000Z
2018-02-25T10:33:50.000Z
jsondb.py
raythuns/Python
e3bd3b067326d163ac46f53c6c72d86e74be7c09
[ "Unlicense" ]
null
null
null
jsondb.py
raythuns/Python
e3bd3b067326d163ac46f53c6c72d86e74be7c09
[ "Unlicense" ]
null
null
null
import json import os CONFIG = { 'PATH': os.path.dirname(os.path.abspath(__file__)), } class _JSONDBHandler: handler = { 'path': None, 'opened': False, 'cache': None, 'change': False, } @staticmethod def open(database): root = find = None if _JSON...
36.514286
72
0.526213
e341cd3baeb4371d3454fbc21f4cf17bc9cbbb06
4,765
py
Python
pgoapi/protos/pogoprotos/networking/requests/messages/download_remote_config_version_message_pb2.py
linherest/pgoapi
e3bdce71b06c099663e9796c8df166883059edd9
[ "MIT" ]
14
2017-03-28T16:32:24.000Z
2021-03-13T23:03:57.000Z
pgoapi/protos/pogoprotos/networking/requests/messages/download_remote_config_version_message_pb2.py
linherest/pgoapi
e3bdce71b06c099663e9796c8df166883059edd9
[ "MIT" ]
8
2017-03-01T07:56:09.000Z
2017-08-15T07:37:12.000Z
pgoapi/protos/pogoprotos/networking/requests/messages/download_remote_config_version_message_pb2.py
linherest/pgoapi
e3bdce71b06c099663e9796c8df166883059edd9
[ "MIT" ]
15
2017-02-24T01:30:23.000Z
2021-06-27T08:46:43.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/networking/requests/messages/download_remote_config_version_message.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf impo...
47.178218
506
0.792235
2a36662817b7262c77384757c74b61958a24cad8
28,920
py
Python
object_branch/stitching/siamese_demo_utils.py
JasonQSY/Associative3D
c50818b593ec48c38ed7ee3e109c23531089da32
[ "MIT" ]
25
2020-08-26T02:41:12.000Z
2021-09-30T21:50:36.000Z
object_branch/stitching/siamese_demo_utils.py
JasonQSY/Associative3D
c50818b593ec48c38ed7ee3e109c23531089da32
[ "MIT" ]
null
null
null
object_branch/stitching/siamese_demo_utils.py
JasonQSY/Associative3D
c50818b593ec48c38ed7ee3e109c23531089da32
[ "MIT" ]
1
2020-11-17T15:25:26.000Z
2020-11-17T15:25:26.000Z
""" Testing class for the demo. """ from absl import flags import os import os.path as osp import numpy as np import torch import torchvision from torch.autograd import Variable import scipy.misc import pdb import copy import scipy.io as sio from ..nnutils import test_utils from ..nnutils import net_blocks from ..nnut...
44.698609
168
0.622476
8c17bdb4cb7666d3e93451fe64785ffb793eed6f
3,516
py
Python
test_nanoio.py
baverman/nanoio
032f558c66bc8cce89a1dec9a08e68852b9df4d5
[ "MIT" ]
null
null
null
test_nanoio.py
baverman/nanoio
032f558c66bc8cce89a1dec9a08e68852b9df4d5
[ "MIT" ]
null
null
null
test_nanoio.py
baverman/nanoio
032f558c66bc8cce89a1dec9a08e68852b9df4d5
[ "MIT" ]
null
null
null
import socket from functools import wraps import pytest import threading from nanoio import (Loop, run, recv, sendall, current_loop, send, spawn, recv_until, accept, sleep) class Error(Exception): pass def timeout(duration=1): def decorator(fn): @wraps(fn) def inner(*arg...
20.804734
72
0.546075
87f42c6b3e42ca0a8d040709424f234c10952d82
5,376
py
Python
twitterb.py
andres-root/penelopeclient
17db8a13cb4ebc457097b2efe0abc082012d9972
[ "MIT" ]
null
null
null
twitterb.py
andres-root/penelopeclient
17db8a13cb4ebc457097b2efe0abc082012d9972
[ "MIT" ]
null
null
null
twitterb.py
andres-root/penelopeclient
17db8a13cb4ebc457097b2efe0abc082012d9972
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-º #!/usr/bin/python # This is a Python port of Adafruit's "Gutenbird" sketch for Arduino. # Polls one or more Twitter accounts for changes, displaying updates # on attached thermal printer. # Written by Adafruit Industries. MIT license. # # Required hardware includes an Internet-connected syste...
32.981595
80
0.648624
81a9c7e148d6be2756cf2a16308ee44c7b928aec
2,056
py
Python
adwords_python3_examples_10.1.0/v201802/misc/upload_image.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
adwords_python3_examples_10.1.0/v201802/misc/upload_image.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
adwords_python3_examples_10.1.0/v201802/misc/upload_image.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
30.686567
77
0.702335
3b85f5903a8a8c151aa780103bb385df5b774798
3,456
py
Python
lightly/models/simclr.py
laurenmoos/lightly
2e9ae8bbf433b09c89d666eee0358935d7f9eb9d
[ "MIT" ]
null
null
null
lightly/models/simclr.py
laurenmoos/lightly
2e9ae8bbf433b09c89d666eee0358935d7f9eb9d
[ "MIT" ]
null
null
null
lightly/models/simclr.py
laurenmoos/lightly
2e9ae8bbf433b09c89d666eee0358935d7f9eb9d
[ "MIT" ]
null
null
null
""" ResNet architecture with projection head for implementation of SimCLR. """ # Copyright (c) 2020. Lightly AG and its affiliates. # All Rights Reserved import torch import torch.nn as nn from lightly.models.resnet import ResNetGenerator from lightly.models.batchnorm import get_norm_layer from lightly.models._loade...
30.584071
81
0.619792
09f5187c1880761f5f81167da94e8a259c5a3966
1,195
py
Python
pytpp/attributes/code_signing_gpg_environment.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
4
2022-02-04T23:58:55.000Z
2022-02-15T18:53:08.000Z
pytpp/attributes/code_signing_gpg_environment.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
pytpp/attributes/code_signing_gpg_environment.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
from pytpp.attributes._helper import IterableMeta, Attribute from pytpp.attributes.code_signing_environment_base import CodeSigningEnvironmentBaseAttributes class CodeSigningGPGEnvironmentAttributes(CodeSigningEnvironmentBaseAttributes, metaclass=IterableMeta): __config_class__ = "Code Signing GPG Environment" auth...
62.894737
104
0.803347
b55c6ddeef8eb45453f8ac0edb97d50b4189b654
104
py
Python
email_campaigns/apps.py
diffractive/newstream
cf1a1f230e18d01c63b50ab9d360aa44ac5a486f
[ "MIT" ]
1
2020-05-03T12:33:42.000Z
2020-05-03T12:33:42.000Z
email_campaigns/apps.py
diffractive/newstream
cf1a1f230e18d01c63b50ab9d360aa44ac5a486f
[ "MIT" ]
14
2020-07-06T20:05:57.000Z
2022-03-12T00:39:11.000Z
email_campaigns/apps.py
diffractive/newstream
cf1a1f230e18d01c63b50ab9d360aa44ac5a486f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EmailCampaignsConfig(AppConfig): name = 'email_campaigns'
17.333333
38
0.788462
aa0944b74285fd860283d3de93a55c9fa66649ed
70,815
py
Python
src/saml2/sigver.py
IdentityPython/pysaml2
9f30f2ffd56b8e188e6f396ad090b3248c2a70a4
[ "Apache-2.0" ]
249
2018-03-01T09:47:04.000Z
2022-03-26T04:51:26.000Z
src/saml2/sigver.py
IdentityPython/pysaml2
9f30f2ffd56b8e188e6f396ad090b3248c2a70a4
[ "Apache-2.0" ]
416
2018-02-21T15:18:35.000Z
2022-03-04T16:59:36.000Z
src/saml2/sigver.py
IdentityPython/pysaml2
9f30f2ffd56b8e188e6f396ad090b3248c2a70a4
[ "Apache-2.0" ]
203
2018-02-21T13:53:12.000Z
2022-03-08T22:22:17.000Z
""" Functions connected to signing and verifying. Based on the use of xmlsec1 binaries and not the python xmlsec module. """ import base64 import hashlib import itertools import logging import os import re import six import sys from uuid import uuid4 as gen_random_key from time import mktime from tempfile import Named...
35.213824
146
0.62378
8de54ee3b0fd9bf75839dbc75894e3549e9d23a6
1,462
py
Python
game_cli.py
salma71/close-match-nope
58c79c25cbf153aefcf80417980edc7b67c91eaf
[ "MIT" ]
null
null
null
game_cli.py
salma71/close-match-nope
58c79c25cbf153aefcf80417980edc7b67c91eaf
[ "MIT" ]
null
null
null
game_cli.py
salma71/close-match-nope
58c79c25cbf153aefcf80417980edc7b67c91eaf
[ "MIT" ]
null
null
null
import random def get_guess(): ''' Asks for the number guess and transforms the string to a list. ''' return list(input("What is your guess?")) def generate_code(): ''' generates a 3 digit list for the code ''' digits = [str(num) for num in range(10)] random.shuffle(digits) ret...
24.366667
76
0.640219
27923a8915f108847309f0d7804a8e4378c0e723
7,856
py
Python
test/system/benchmark/scenario/fio_udd_200g.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
null
null
null
test/system/benchmark/scenario/fio_udd_200g.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
null
null
null
test/system/benchmark/scenario/fio_udd_200g.py
so931/poseidonos
2aa82f26bfbd0d0aee21cd0574779a655634f08c
[ "BSD-3-Clause" ]
null
null
null
import fio import graph import initiator import json import lib import target import traceback from datetime import datetime def play(json_targets, json_inits, json_scenario): lib.printer.green(f"\n -- '{__name__}' has began --") raw_date = datetime.now() now_date = raw_date.strftime("%y%m%d_%H%M%S") ...
38.891089
184
0.514129
50d0e43788e2ae286bc456d702a7017796309da2
16,936
py
Python
run_training_vid.py
zhuxinqimac/stylegan2
5c3bda161ead21ea290de4190d3704e59cf6de64
[ "BSD-Source-Code" ]
5
2020-01-23T10:04:27.000Z
2021-07-04T09:51:28.000Z
run_training_vid.py
zhuxinqimac/stylegan2
5c3bda161ead21ea290de4190d3704e59cf6de64
[ "BSD-Source-Code" ]
null
null
null
run_training_vid.py
zhuxinqimac/stylegan2
5c3bda161ead21ea290de4190d3704e59cf6de64
[ "BSD-Source-Code" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- # >.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>. # Licensed under the Apache License, Version 2.0 (the "License") # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # --- File Name: run_training_vid.py # --- Creation Date: 23-03-2020 # --- Last Modified: ...
47.044444
132
0.636573
a1a372ab23532b106b8a7dd2c8a0399f59097dfe
629
py
Python
manage.py
salemgu1/Coffe_Shop
301f4588af726d1b902ec2f9f5d60b1e12fae8ca
[ "MIT" ]
null
null
null
manage.py
salemgu1/Coffe_Shop
301f4588af726d1b902ec2f9f5d60b1e12fae8ca
[ "MIT" ]
null
null
null
manage.py
salemgu1/Coffe_Shop
301f4588af726d1b902ec2f9f5d60b1e12fae8ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Quick_Buy.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impo...
28.590909
73
0.683625
4354dd1fce8638b53ebcea14541604151de13e67
7,846
py
Python
salt/modules/rebootmgr.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/modules/rebootmgr.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/modules/rebootmgr.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" :maintainer: Alberto Planas <aplanas@suse.com> :maturity: new :depends: None :platform: Linux .. versionadded:: 3004 """ import logging import re import salt.exceptions log = logging.getLogger(__name__) def __virtual__(): """rebootmgrctl command is required.""" if __utils__["path.wh...
21.794444
88
0.616747
451135beffb142df40db99bcf981c2a6045c7234
325
py
Python
plugins/redacted/apps.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
9
2019-03-26T14:50:00.000Z
2020-11-10T16:44:08.000Z
plugins/redacted/apps.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
22
2019-03-02T23:16:13.000Z
2022-02-27T10:36:36.000Z
plugins/redacted/apps.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
5
2019-04-24T00:51:30.000Z
2020-11-06T18:31:49.000Z
from django.apps import AppConfig class RedactedConfig(AppConfig): name = 'plugins.redacted' def ready(self): super().ready() from trackers.registry import TrackerRegistry from plugins.redacted.tracker import RedactedTrackerPlugin TrackerRegistry.register(RedactedTrackerPlugi...
25
66
0.726154
a10cf454b8f0ad4ac23a303fb10c48e6118266ef
415
py
Python
plugins/cleanup_aws_loadbalancers/test/test_args.py
MrMarvin/cloudkeeper
cdca21c1a3b945da6e53a5dbb37a437e1d46f557
[ "Apache-2.0" ]
316
2021-07-08T12:54:19.000Z
2022-01-12T18:50:17.000Z
plugins/cleanup_aws_loadbalancers/test/test_args.py
MrMarvin/cloudkeeper
cdca21c1a3b945da6e53a5dbb37a437e1d46f557
[ "Apache-2.0" ]
80
2021-07-30T23:55:50.000Z
2022-01-12T15:39:31.000Z
plugins/cleanup_aws_loadbalancers/test/test_args.py
MrMarvin/cloudkeeper
cdca21c1a3b945da6e53a5dbb37a437e1d46f557
[ "Apache-2.0" ]
14
2021-08-23T08:29:29.000Z
2022-01-08T04:42:28.000Z
from resotolib.args import get_arg_parser, ArgumentParser from resoto_plugin_cleanup_aws_loadbalancers import CleanupAWSLoadbalancersPlugin def test_args(): arg_parser = get_arg_parser() CleanupAWSLoadbalancersPlugin.add_args(arg_parser) arg_parser.parse_args() assert ArgumentParser.args.cleanup_aws_l...
37.727273
81
0.833735
33cf26ac6676283f3d9cc0fe0fef6a3859667529
539
py
Python
p5/app/galerias/migrations/0003_auto_20211209_0920.py
Paszser/DAI
86e9385b3cb8994ac772dc3150cb27d14c626184
[ "Apache-2.0" ]
null
null
null
p5/app/galerias/migrations/0003_auto_20211209_0920.py
Paszser/DAI
86e9385b3cb8994ac772dc3150cb27d14c626184
[ "Apache-2.0" ]
null
null
null
p5/app/galerias/migrations/0003_auto_20211209_0920.py
Paszser/DAI
86e9385b3cb8994ac772dc3150cb27d14c626184
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-12-09 08:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('galerias', '0002_auto_20211209_0914'), ] operations = [ migrations.RemoveField( model_name='galeria', name='id', ...
23.434783
101
0.589981
9a2b19eec49ac22a0a45ae93f3d2fc3ba070133d
32,299
py
Python
isi_mip/climatemodels/views.py
thiasB/isimip
c1d22d12c35c5796cf228ccbe260f8ce25d80119
[ "MIT" ]
4
2017-07-05T08:06:18.000Z
2021-03-01T17:23:18.000Z
isi_mip/climatemodels/views.py
thiasB/isimip
c1d22d12c35c5796cf228ccbe260f8ce25d80119
[ "MIT" ]
4
2020-01-31T09:02:57.000Z
2021-04-20T14:04:35.000Z
isi_mip/climatemodels/views.py
thiasB/isimip
c1d22d12c35c5796cf228ccbe260f8ce25d80119
[ "MIT" ]
4
2017-10-12T01:48:55.000Z
2020-04-29T13:50:03.000Z
from collections import OrderedDict from datetime import datetime import math import requests from django.conf import settings from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from django.core import urlresolvers from django.cor...
50.625392
238
0.66677
ff19e1c01165e9bea72930d00fe11e0fcbcf3fd0
2,833
py
Python
lib/hijack_jre_methods.py
scott-zhou/pyjvm
56b22a0fee77d1586bb3fda301896231aded0170
[ "MIT" ]
12
2017-01-17T13:47:30.000Z
2022-02-10T07:01:55.000Z
lib/hijack_jre_methods.py
scott-zhou/pyjvm
56b22a0fee77d1586bb3fda301896231aded0170
[ "MIT" ]
null
null
null
lib/hijack_jre_methods.py
scott-zhou/pyjvm
56b22a0fee77d1586bb3fda301896231aded0170
[ "MIT" ]
2
2018-02-24T07:56:02.000Z
2018-07-11T03:49:35.000Z
'''We can't use the JVM native implementation, it's integrated with it's JVM progress. So we provide hijacked implementation in this file. ''' from collections import defaultdict from lib import ( frame, run_time_data ) _NATIVE_IMPS = defaultdict(dict) _JDK_M_IMPLS = defaultdict(dict) def has_native_method...
29.821053
74
0.713025
97ac837f8ac6511a6875d8e85a8de4c9da1901ed
1,015
py
Python
9608_w17_p21/validatePassword.py
angellaa/cie-computer-science
bcae2884fabce40a24918bd96fff7e43e4c5b67b
[ "MIT" ]
null
null
null
9608_w17_p21/validatePassword.py
angellaa/cie-computer-science
bcae2884fabce40a24918bd96fff7e43e4c5b67b
[ "MIT" ]
null
null
null
9608_w17_p21/validatePassword.py
angellaa/cie-computer-science
bcae2884fabce40a24918bd96fff7e43e4c5b67b
[ "MIT" ]
null
null
null
# # Variables: # - lowerCount : integer # - upperCount : integer # - numericCount : integer # def ValidatePassword(password): lowerCount = 0 upperCount = 0 numericCount = 0 for c in password: if c.islower(): lowerCount = lowerCount + 1 elif c.isupper(): upper...
33.833333
99
0.675862
5bea26c1f95a76de0a77f155dbb075c1d9e71505
257
py
Python
PyCloudNS/regions.py
cloudnsru/PyCloudNS
8e8c31c29d20c2e361430eea95a43257bb1d3b52
[ "MIT" ]
null
null
null
PyCloudNS/regions.py
cloudnsru/PyCloudNS
8e8c31c29d20c2e361430eea95a43257bb1d3b52
[ "MIT" ]
null
null
null
PyCloudNS/regions.py
cloudnsru/PyCloudNS
8e8c31c29d20c2e361430eea95a43257bb1d3b52
[ "MIT" ]
null
null
null
# coding: utf-8 from .req import Req class Regions(Req): def __init__(self, url, email, secret): super().__init__(url=url, email=email, secret=secret) def get(self): """Get list domains""" return self.do_get("/regions/")
19.769231
61
0.614786
7966063308f751daa0c739d7b66f2a27f2f0b3af
11,023
py
Python
boardfarm/lib/bft_logging.py
mattsm/boardfarm
100521fde1fb67536682cafecc2f91a6e2e8a6f8
[ "BSD-3-Clause-Clear" ]
40
2018-03-23T14:17:13.000Z
2022-02-05T05:59:41.000Z
boardfarm/lib/bft_logging.py
mattsm/boardfarm
100521fde1fb67536682cafecc2f91a6e2e8a6f8
[ "BSD-3-Clause-Clear" ]
1
2020-04-17T01:20:12.000Z
2020-04-20T20:42:00.000Z
boardfarm/lib/bft_logging.py
mattsm/boardfarm
100521fde1fb67536682cafecc2f91a6e2e8a6f8
[ "BSD-3-Clause-Clear" ]
9
2018-04-11T08:31:14.000Z
2020-08-06T14:55:35.000Z
# Copyright (c) 2015 # # All rights reserved. # # This file is distributed under the Clear BSD license. # The full text can be found in LICENSE in the root directory. import os import re import time import types from functools import wraps from termcolor import colored def now_short(_format="%Y%m%d-%H%M%S"): ""...
36.5
133
0.540053
6c29cf09eca6e5c0f912c0df171026399c76c2c0
364
py
Python
parser/team12/src/DDL/Create/Type.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team12/src/DDL/Create/Type.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team12/src/DDL/Create/Type.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
import json import sys, os.path import os class Type(): def __init__(self): self.nombre = None self.cadenas = [] def execute(self, parent): self.nombre = parent.hijos[0].valor for hijo in parent.hijos[1].hijos: if not (hijo.valor in self.cadenas): s...
21.411765
48
0.571429
a3142f6f14e320e7a8a8e0f09cec39c9b5ae2928
1,784
py
Python
setup.py
AnnoyingRain5/TiniLang
888369d53faaf3c75a0daea0110afd038c3c9a93
[ "MIT" ]
null
null
null
setup.py
AnnoyingRain5/TiniLang
888369d53faaf3c75a0daea0110afd038c3c9a93
[ "MIT" ]
null
null
null
setup.py
AnnoyingRain5/TiniLang
888369d53faaf3c75a0daea0110afd038c3c9a93
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """TiniLang setup script.""" import pathlib from setuptools import setup __VERSION__ = "1.0" HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() if __name__ == "__main__": setup( name="TiniLang", version=__VERSION__, ...
38.782609
104
0.593049
621cad1909647fcf1e3c2744525c90e1630d3e56
1,248
py
Python
MultiThreadedHTTPServer.py
saig214/Python-SimpleMultiThreadedHTTPServer
f110569d517859ece4f7265a05fca66534a55b82
[ "MIT" ]
null
null
null
MultiThreadedHTTPServer.py
saig214/Python-SimpleMultiThreadedHTTPServer
f110569d517859ece4f7265a05fca66534a55b82
[ "MIT" ]
null
null
null
MultiThreadedHTTPServer.py
saig214/Python-SimpleMultiThreadedHTTPServer
f110569d517859ece4f7265a05fca66534a55b82
[ "MIT" ]
null
null
null
import sys from http.server import HTTPServer from threading import Thread, current_thread from http.server import BaseHTTPRequestHandler class MultiThreadedHTTPServer(HTTPServer): def process_request(self, request, client_address): Thread(target=self.__request, args=(self.RequestHandlerClass, request, cl...
32.842105
109
0.697115
3bc142d3ae5a87da53731890150d3766d86cae75
8,184
py
Python
retrieval/data/datasets/translation_europarl.py
phaedonmit/VL-BERT
1625c61b546788cede123b637d6c69dab43cad9c
[ "MIT" ]
1
2020-09-10T09:28:39.000Z
2020-09-10T09:28:39.000Z
retrieval/data/datasets/translation_europarl.py
phaedonmit/VL-BERT
1625c61b546788cede123b637d6c69dab43cad9c
[ "MIT" ]
null
null
null
retrieval/data/datasets/translation_europarl.py
phaedonmit/VL-BERT
1625c61b546788cede123b637d6c69dab43cad9c
[ "MIT" ]
null
null
null
import random import os import time import json import jsonlines from PIL import Image import base64 import numpy as np import logging import torch from torch.utils.data import Dataset from external.pytorch_pretrained_bert import BertTokenizer from common.utils.zipreader import ZipReader from common.utils.create_logg...
39.346154
99
0.622678
4033e365b723b4cd0061b17deb67f6536f24a4c4
1,202
py
Python
apps/about/setup.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
null
null
null
apps/about/setup.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
null
null
null
apps/about/setup.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
null
null
null
# Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file ex...
41.448276
74
0.712978
1cc9cf16c2c6e6fadceaa8a0b8db2741c0ff6dc8
651
py
Python
setup.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
setup.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
setup.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
from pkg_resources import parse_requirements from setuptools import find_packages from setuptools import setup with open("README.md", "r") as f: readme = f.read() install_reqs = ['numpy', 'scipy', 'matplotlib'] setup( name="jburt", version="0.1.0", author="Josh Burt", author_email="joshuaburtphd@...
25.038462
50
0.69278
fb529d1c157f078d816f9a1319aa823fe500104b
3,043
py
Python
apps/places/views/places.py
bergran/places
0b11e329a263878ef51c6ffd4ca252e905b1e85f
[ "MIT" ]
null
null
null
apps/places/views/places.py
bergran/places
0b11e329a263878ef51c6ffd4ca252e905b1e85f
[ "MIT" ]
null
null
null
apps/places/views/places.py
bergran/places
0b11e329a263878ef51c6ffd4ca252e905b1e85f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import List from fastapi import Depends, HTTPException, Query from fastapi.routing import APIRouter from sqlalchemy.orm import Session from starlette import status from starlette.responses import Response, UJSONResponse from apps.places.models import Place from apps.places.serializ...
33.43956
111
0.74696
874d4982e2dc0788e5abf63babe5fecaf3640f80
1,347
py
Python
tests/unit/omnibot/services/slack/bot_test.py
lyft/omnibot
8e9000e872595010e4c3e294e2df39a33f05d491
[ "Apache-2.0" ]
72
2019-11-21T00:02:18.000Z
2022-01-20T02:23:09.000Z
tests/unit/omnibot/services/slack/bot_test.py
lyft/omnibot
8e9000e872595010e4c3e294e2df39a33f05d491
[ "Apache-2.0" ]
30
2019-11-22T04:24:57.000Z
2021-09-24T22:50:12.000Z
tests/unit/omnibot/services/slack/bot_test.py
lyft/omnibot
8e9000e872595010e4c3e294e2df39a33f05d491
[ "Apache-2.0" ]
6
2019-12-26T00:37:41.000Z
2021-04-09T04:21:17.000Z
import pytest from omnibot.services.slack.team import Team from omnibot.services.slack.bot import Bot, BotInitializationError def test_team(): _team = Team.get_team_by_name('testteam') _bot = Bot.get_bot_by_name(_team, 'echobot') assert _bot.name == 'echobot' assert _bot.bot_id == 'A12345678' ass...
33.675
66
0.703786
ae4b191bcc16a1363986d2bce811eae4dbae2f9f
30,997
py
Python
development/project-creator/create_project.py
jaydroid1024/androidx
214bffa9d05bb511e1ff2c3fd4f81bf1a95e6805
[ "Apache-2.0" ]
1
2021-11-10T05:22:48.000Z
2021-11-10T05:22:48.000Z
development/project-creator/create_project.py
jaydroid1024/androidx
214bffa9d05bb511e1ff2c3fd4f81bf1a95e6805
[ "Apache-2.0" ]
null
null
null
development/project-creator/create_project.py
jaydroid1024/androidx
214bffa9d05bb511e1ff2c3fd4f81bf1a95e6805
[ "Apache-2.0" ]
1
2022-02-26T21:28:34.000Z
2022-02-26T21:28:34.000Z
#!/usr/bin/python3 # # Copyright (C) 2020 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
40.255844
111
0.681808