hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
797b3ecf90dc635f02a638bc0c1cdae96d20d509
888
py
Python
detect.py
RuidongDavidLin/YOLOV4-tiny-Pytorch
f2bb941ff894e12551bf285eb09fd42db2fb3dee
[ "MIT" ]
null
null
null
detect.py
RuidongDavidLin/YOLOV4-tiny-Pytorch
f2bb941ff894e12551bf285eb09fd42db2fb3dee
[ "MIT" ]
null
null
null
detect.py
RuidongDavidLin/YOLOV4-tiny-Pytorch
f2bb941ff894e12551bf285eb09fd42db2fb3dee
[ "MIT" ]
null
null
null
import time import cv2 import numpy as np from PIL import Image from yolov4tiny.yolo import YOLO class yolov4: def __init__(self): self.yolo=YOLO() def getLabels(self,frame): frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) frame = Image.fromarray(np.uint8(frame)) data = self.yolo.detect_image(frame, isRetImg...
23.368421
54
0.707207
797b40b5662527220cbff0503a5eebad7fd52ff4
6,199
py
Python
monai/handlers/classification_saver.py
eddyleelin/MONAI
8e56191d344692fdfa1b9a52285b2514131061e6
[ "Apache-2.0" ]
null
null
null
monai/handlers/classification_saver.py
eddyleelin/MONAI
8e56191d344692fdfa1b9a52285b2514131061e6
[ "Apache-2.0" ]
null
null
null
monai/handlers/classification_saver.py
eddyleelin/MONAI
8e56191d344692fdfa1b9a52285b2514131061e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
41.604027
114
0.658009
797b40d2be9e61fd106e2dd958f57140798c7ba0
3,168
py
Python
collab/get_requests.py
thealphadollar/VerloopTask
a7a3744c32f1beed27b199b3e2b85b3e61d04d32
[ "MIT" ]
1
2021-03-05T09:11:29.000Z
2021-03-05T09:11:29.000Z
collab/get_requests.py
thealphadollar/VerloopTask
a7a3744c32f1beed27b199b3e2b85b3e61d04d32
[ "MIT" ]
null
null
null
collab/get_requests.py
thealphadollar/VerloopTask
a7a3744c32f1beed27b199b3e2b85b3e61d04d32
[ "MIT" ]
null
null
null
""" contains all methods for endpoints that use GET method """ import logging import json from flask import Blueprint, request, Response from .helpers import sane_query_args from .exceptions import IDNotFound from .db_hanlder import DBHandler LOG = logging.getLogger(__name__) stories = Blueprint('get_story', __nam...
27.789474
123
0.588699
797b412b5c8ad6089dbdbe7117c1c0db1d74fc9e
6,613
py
Python
SLAB_Diffusion/solver_3D.py
maayane/SLAB-Diffusion
0b6908b59c1c4ab8796133dcb59ee81b4043f8a2
[ "Apache-2.0" ]
null
null
null
SLAB_Diffusion/solver_3D.py
maayane/SLAB-Diffusion
0b6908b59c1c4ab8796133dcb59ee81b4043f8a2
[ "Apache-2.0" ]
null
null
null
SLAB_Diffusion/solver_3D.py
maayane/SLAB-Diffusion
0b6908b59c1c4ab8796133dcb59ee81b4043f8a2
[ "Apache-2.0" ]
null
null
null
"""******************************************************* contains solvers of the diffusion equation in 3D, with BB boundary conditions *******************************************************""" #print __doc__ import numpy as np import pylab def solver_3D_norm(Nx,Ny,Nz,Lx,Ly,Initial_xyz,F,v,a,total_time,reflecting=...
50.098485
147
0.561621
797b41a42fb0e69a4972387a862916c84a35dcd9
618
py
Python
core/management/commands/wait_for_db.py
cforcross/django-vue-admin
269ba3047b6762c565d9a4c306efc86c3ffd4867
[ "MIT" ]
null
null
null
core/management/commands/wait_for_db.py
cforcross/django-vue-admin
269ba3047b6762c565d9a4c306efc86c3ffd4867
[ "MIT" ]
null
null
null
core/management/commands/wait_for_db.py
cforcross/django-vue-admin
269ba3047b6762c565d9a4c306efc86c3ffd4867
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from django.db import connections from django.db.utils import OperationalError import time,os class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write("waiting for the the database") conn = None while not conn: ...
36.352941
75
0.635922
797b420bd7d3d3de74e15986ef3bd895e70cc191
1,519
py
Python
mlflow/tracking/context/databricks_notebook_context.py
sudohainguyen/mlflow
5cd6dd575941e48313e0fd686d48805e170d57c1
[ "Apache-2.0" ]
1
2022-03-15T00:19:10.000Z
2022-03-15T00:19:10.000Z
mlflow/tracking/context/databricks_notebook_context.py
dengzhihai/mlflow
1ce3b5eadf6543878a62b070fd06735d471d75d5
[ "Apache-2.0" ]
null
null
null
mlflow/tracking/context/databricks_notebook_context.py
dengzhihai/mlflow
1ce3b5eadf6543878a62b070fd06735d471d75d5
[ "Apache-2.0" ]
null
null
null
from mlflow.tracking.context.abstract_context import RunContextProvider from mlflow.utils import databricks_utils from mlflow.entities import SourceType from mlflow.utils.mlflow_tags import ( MLFLOW_SOURCE_TYPE, MLFLOW_SOURCE_NAME, MLFLOW_DATABRICKS_WEBAPP_URL, MLFLOW_DATABRICKS_NOTEBOOK_PATH, MLFLO...
38.948718
88
0.737986
797b4223b306e6524aa31fc3807ceb57f48021cc
418
py
Python
problems/meeting-rooms.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
problems/meeting-rooms.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
problems/meeting-rooms.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
""" Time: O(NLogN) Space: O(1) Sort the interval (mainly by start time), see if the end overlaps with the start of next. """ class Solution(object): def canAttendMeetings(self, intervals): intervals.sort() for i in xrange(len(intervals)-1): end = intervals[i][1] nex...
26.125
89
0.588517
797b42a1a83c64e5f230d480160ce9198ee70fdf
1,554
py
Python
setup.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
1
2019-04-11T14:51:04.000Z
2019-04-11T14:51:04.000Z
setup.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
null
null
null
setup.py
aliang8/ai2thor
3ef92cf5437e2d60127c77bd59d5b7394eebb36c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages exec(open('ai2thor/_version.py').read()) VERSION = __version__ setup(name='ai2thor', version=VERSION, description='AI2 Thor framework', long_description="AI2 Thor is a lightweight AI framework that interacts with the Unity3d Game Engine.", classifi...
35.318182
109
0.592021
797b42dda4870536ce9e6dd6b5ae66fae9555c55
10,488
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_database_automatic_tuning_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_database_automatic_tuning_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_database_automatic_tuning_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.619048
209
0.690122
797b42e4870e03352a3107bcf69cc415dca37241
5,484
py
Python
sympy/matrices/densearith.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/densearith.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/matrices/densearith.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
""" Fundamental arithmetic of dense matrices. The dense matrix is stored as a list of lists. """ from sympy.utilities.exceptions import SymPyDeprecationWarning SymPyDeprecationWarning( feature="densearith", issue=12695, deprecated_since_version="1.1" ).warn() def add(matlist1, matlist2, K): """ Adds ma...
21.590551
76
0.531182
797b4352d23d5bb4e1e269a3b028e5b19b007d03
10,151
py
Python
LLE_MODEL/Evaluation/eval.py
abdullahahsann/VideoEnhancementForSurviellance
ed1a7625e2ac7cb51a409be1973ad7733e715222
[ "MIT" ]
5
2021-07-25T04:44:54.000Z
2022-03-26T02:02:04.000Z
LLE_MODEL/Evaluation/eval.py
abdullahahsann/VideoEnhancementForSurviellance
ed1a7625e2ac7cb51a409be1973ad7733e715222
[ "MIT" ]
null
null
null
LLE_MODEL/Evaluation/eval.py
abdullahahsann/VideoEnhancementForSurviellance
ed1a7625e2ac7cb51a409be1973ad7733e715222
[ "MIT" ]
2
2021-11-16T07:03:57.000Z
2022-03-23T02:09:22.000Z
import numpy as np from PIL import Image import matplotlib.pyplot as plt import tensorflow as tf import keras import keras.backend as K from tensorflow.keras.layers import Conv2D, AveragePooling2D, Activation, Concatenate from tensorflow.keras import Sequential, Input, Model from model import lle_model from image_proc...
41.264228
171
0.557285
797b435e0480e796129225b4d6f53c6a9e7b72b2
6,971
py
Python
ml_xgboost/titanic.py
jarvisqi/machine_learning
cba3f2fed87a3de2c6b707903d37f936e5f0cd5b
[ "MIT" ]
2
2018-09-25T07:54:31.000Z
2021-01-12T08:57:23.000Z
ml_xgboost/titanic.py
jarvisqi/nlp_learn
53c5b4087dbfc30e47451fd3f5261ba44f523f39
[ "MIT" ]
null
null
null
ml_xgboost/titanic.py
jarvisqi/nlp_learn
53c5b4087dbfc30e47451fd3f5261ba44f523f39
[ "MIT" ]
1
2019-06-25T07:28:27.000Z
2019-06-25T07:28:27.000Z
# -*- coding:utf-8 -*- import math import matplotlib.pyplot as plt import numpy as np import pandas as pd import xgboost as xgb from sklearn import cross_validation, metrics from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from sklearn.linear_model import LogisticRegression from sklearn.model...
30.177489
109
0.644814
797b43ad5a88defded98a65d5e343a6861d1f2fe
2,308
py
Python
playground/slam/backend.py
Kolkir/slam-playground
59555201930aee9765dfae8149cb463770a029ff
[ "BSD-3-Clause" ]
6
2021-10-10T16:42:39.000Z
2022-02-20T09:52:54.000Z
playground/slam/backend.py
Kolkir/slam-playground
59555201930aee9765dfae8149cb463770a029ff
[ "BSD-3-Clause" ]
null
null
null
playground/slam/backend.py
Kolkir/slam-playground
59555201930aee9765dfae8149cb463770a029ff
[ "BSD-3-Clause" ]
3
2021-11-05T08:56:28.000Z
2022-03-21T18:27:40.000Z
import time from playground.slam.frame import Frame from playground.slam.posegraph import PoseGraph class BackEnd: def __init__(self, edge_sigma, angle_sigma): self.__pose_graph = PoseGraph(edge_sigma_x=edge_sigma, edge_sigma_y=edge_sigma, edge_sigma_angle=angle_sigm...
41.963636
108
0.634315
797b43b8167dd62b39dd146daac721d27952ad7c
11,987
py
Python
app.py
shoki5090/scdao-ios-ocr
20030a413d6e36602f9a2f2aa46e168059e1045c
[ "MIT" ]
null
null
null
app.py
shoki5090/scdao-ios-ocr
20030a413d6e36602f9a2f2aa46e168059e1045c
[ "MIT" ]
5
2021-05-10T21:20:12.000Z
2022-03-12T00:07:54.000Z
app.py
shoki5090/scdao-ios-ocr
20030a413d6e36602f9a2f2aa46e168059e1045c
[ "MIT" ]
1
2020-02-10T05:10:45.000Z
2020-02-10T05:10:45.000Z
import os import json from bson import ObjectId from pymongo import MongoClient from extract_text.extract_text import * from extract_text.extract_fields import * from flask import Flask, request, redirect, url_for, flash, render_template from werkzeug.utils import secure_filename from PIL import Image UPLOAD_FOLDER = ...
43.748175
196
0.614582
797b43decb36781076b0de6447dfc11ab808d8bb
10,419
py
Python
src/saltext/vmware/modules/vmc_public_ip.py
jain-prerna/salt-ext-modules-vmware-1
0d697b1065dc78fb7c2d80b4cdd637a32a6274ef
[ "Apache-2.0" ]
10
2021-11-02T20:24:44.000Z
2022-03-11T05:54:27.000Z
src/saltext/vmware/modules/vmc_public_ip.py
waynew/salt-ext-modules-vmware
9f693382772061676c846c850df6ff508b7f3a91
[ "Apache-2.0" ]
83
2021-10-01T15:13:02.000Z
2022-03-31T16:22:40.000Z
src/saltext/vmware/modules/vmc_public_ip.py
waynew/salt-ext-modules-vmware
9f693382772061676c846c850df6ff508b7f3a91
[ "Apache-2.0" ]
15
2021-09-30T23:17:27.000Z
2022-03-23T06:54:22.000Z
""" Salt execution module for public IP Provides methods to Create, Update, Read and Delete public IP. """ import json import logging import os import requests from requests.exceptions import HTTPError from requests.exceptions import RequestException from requests.exceptions import SSLError from saltext.vmware.utils i...
26.922481
113
0.674441
797b44290c90dde050b58afb2b81c050ce9eb1fa
2,509
py
Python
src/datamodules/imagenet_datamodule.py
blurry-mood/Distilled-Models
ac0e4573cbb9e80038d7eb25fd5e4486e4ce03ea
[ "MIT" ]
2
2021-09-26T08:13:31.000Z
2021-12-22T09:47:22.000Z
src/datamodules/imagenet_datamodule.py
blurry-mood/Distilled-Models
ac0e4573cbb9e80038d7eb25fd5e4486e4ce03ea
[ "MIT" ]
null
null
null
src/datamodules/imagenet_datamodule.py
blurry-mood/Distilled-Models
ac0e4573cbb9e80038d7eb25fd5e4486e4ce03ea
[ "MIT" ]
null
null
null
import pytorch_lightning as pl import torch from torch.utils.data import Dataset, DataLoader, random_split from sklearn.preprocessing import LabelEncoder from PIL import Image import numpy as np import pandas as pd def encode_labels(labels): le = LabelEncoder() encoded = le.fit_transform(labels) ...
35.338028
137
0.637704
797b444659e9f387afbc2b1015f8b379e62952db
5,799
bzl
Python
apple/internal/resource_rules/apple_core_ml_library.bzl
acecilia/rules_apple
3a295d2a2702800d77e2c583f3a77262e764823e
[ "Apache-2.0" ]
1
2022-02-16T12:42:23.000Z
2022-02-16T12:42:23.000Z
apple/internal/resource_rules/apple_core_ml_library.bzl
acecilia/rules_apple
3a295d2a2702800d77e2c583f3a77262e764823e
[ "Apache-2.0" ]
null
null
null
apple/internal/resource_rules/apple_core_ml_library.bzl
acecilia/rules_apple
3a295d2a2702800d77e2c583f3a77262e764823e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Bazel 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 applicable la...
40.270833
100
0.712537
797b467e339bd9eabb4f0b945e9d94a6be06f6f3
22,604
py
Python
dace/transformation/interstate/state_fusion.py
tobiasholenstein/dace
38fb56d12b59aa8dfe8bb1ff0068e29c5c75efc9
[ "BSD-3-Clause" ]
null
null
null
dace/transformation/interstate/state_fusion.py
tobiasholenstein/dace
38fb56d12b59aa8dfe8bb1ff0068e29c5c75efc9
[ "BSD-3-Clause" ]
null
null
null
dace/transformation/interstate/state_fusion.py
tobiasholenstein/dace
38fb56d12b59aa8dfe8bb1ff0068e29c5c75efc9
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2020 ETH Zurich and the DaCe authors. All rights reserved. """ State fusion transformation """ from typing import List, Set import networkx as nx from dace import dtypes, registry, sdfg, subsets from dace.sdfg import nodes from dace.sdfg import utils as sdutil from dace.sdfg.state import SDFGState fr...
44.93837
80
0.536011
797b47268aeda9e59ed939475bdb45f10de426d7
640
py
Python
Analysis/analyze_weights.py
mortarsynth/ML_task1
a929dbf84c4c07194ad6cc4f3536b6ddd83a2644
[ "MIT" ]
null
null
null
Analysis/analyze_weights.py
mortarsynth/ML_task1
a929dbf84c4c07194ad6cc4f3536b6ddd83a2644
[ "MIT" ]
null
null
null
Analysis/analyze_weights.py
mortarsynth/ML_task1
a929dbf84c4c07194ad6cc4f3536b6ddd83a2644
[ "MIT" ]
null
null
null
import numpy as np if __name__ == '__main__': weight_data = np.load('../TrainData/train_weights.npy') weights = weight_data[0, :, -1] weights = weights.T weights_mean = np.mean(weights, axis=1) weights_mean = np.array(weights_mean)[np.newaxis] weights_mean = weights_mean.T weigh...
29.090909
67
0.66875
797b479e8207116c9fcaf0f8fbe2f9d759bd99ae
3,736
py
Python
meier/views/admin/writer/writer_api.py
AhnSeongHyun/Meier
0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7
[ "MIT" ]
3
2022-02-18T03:46:54.000Z
2022-02-18T04:39:04.000Z
meier/views/admin/writer/writer_api.py
AhnSeongHyun/Meier
0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7
[ "MIT" ]
167
2018-05-02T20:42:13.000Z
2021-03-26T07:09:52.000Z
meier/views/admin/writer/writer_api.py
AhnSeongHyun/meier
0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7
[ "MIT" ]
1
2019-10-03T17:20:42.000Z
2019-10-03T17:20:42.000Z
from datetime import datetime from attrdict import AttrDict from flask import Blueprint, request from sqlalchemy import func from meier.commons.logger import logger from meier.commons.response_data import HttpStatusCode, ResponseData from meier.extensions import db from meier.models.post import Post from meier.models...
30.876033
79
0.63651
797b480e08a208e5a520c1e4439fe84ce6bc84af
4,129
py
Python
datasets.py
Chianugoogidi/deit
a286bfc817e9e285291ab8b2e9dff277d6447bda
[ "Apache-2.0" ]
null
null
null
datasets.py
Chianugoogidi/deit
a286bfc817e9e285291ab8b2e9dff277d6447bda
[ "Apache-2.0" ]
null
null
null
datasets.py
Chianugoogidi/deit
a286bfc817e9e285291ab8b2e9dff277d6447bda
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015-present, Facebook, Inc. # All rights reserved. import os import json from torchvision import datasets, transforms from torchvision.datasets.folder import ImageFolder, default_loader from timm.data.constants import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD from timm.data import create_transform ...
37.536364
105
0.641075
797b48c3fdb4d7d00362108bcb683c0e1081994d
40
py
Python
src/__init__.py
GordonLesti/SlidingWindowFilter-experiment
c8a7ba233db1b664e89da4d798ac3760424f73f2
[ "MIT" ]
null
null
null
src/__init__.py
GordonLesti/SlidingWindowFilter-experiment
c8a7ba233db1b664e89da4d798ac3760424f73f2
[ "MIT" ]
null
null
null
src/__init__.py
GordonLesti/SlidingWindowFilter-experiment
c8a7ba233db1b664e89da4d798ac3760424f73f2
[ "MIT" ]
null
null
null
"""The source code of the experiment"""
20
39
0.7
797b4913c0eed9a916c2bd254597ff33e8dd48d3
13,155
py
Python
Server/integrations/fido2/Fido2ExternalAuthenticator.py
trochaeli/oxAuth
c8fe50fc8108131cba5f75b422053970baeccb8e
[ "MIT" ]
380
2015-01-08T23:28:43.000Z
2022-03-07T20:19:51.000Z
Server/integrations/fido2/Fido2ExternalAuthenticator.py
trochaeli/oxAuth
c8fe50fc8108131cba5f75b422053970baeccb8e
[ "MIT" ]
1,292
2015-01-08T23:24:14.000Z
2022-03-31T21:43:58.000Z
Server/integrations/fido2/Fido2ExternalAuthenticator.py
HomeMeCEO/oxAuth
e391298e55e34f0f732c7ecd199bffe42289992b
[ "MIT" ]
172
2015-01-10T09:48:21.000Z
2022-02-24T03:01:59.000Z
# oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. # Copyright (c) 2018, Gluu # # Author: Yuriy Movchan # from javax.ws.rs.core import Response from org.jboss.resteasy.client import ClientResponseFailure from org.jboss.resteasy.client.exception import ResteasyClie...
45.362069
199
0.644926
797b4a5ac4dd8ebe3eaf0dd34cb74e4d6fd2345a
1,836
py
Python
django_mongoengine/views/edit.py
Betalos/django-mongoengine
99a7a2cfc142bfb74f7bed23161e97cffc2c0205
[ "BSD-3-Clause" ]
null
null
null
django_mongoengine/views/edit.py
Betalos/django-mongoengine
99a7a2cfc142bfb74f7bed23161e97cffc2c0205
[ "BSD-3-Clause" ]
null
null
null
django_mongoengine/views/edit.py
Betalos/django-mongoengine
99a7a2cfc142bfb74f7bed23161e97cffc2c0205
[ "BSD-3-Clause" ]
null
null
null
from django.core.exceptions import ImproperlyConfigured from django_mongoengine.utils.wrappers import WrapDocument, copy_class from django_mongoengine.utils.monkey import get_patched_django_module from django_mongoengine.forms.documents import documentform_factory from .detail import SingleObjectMixin, SingleObjectTe...
31.655172
121
0.744553
797b4adf66a749c6de7f092bcfaeb4b308d2d662
4,581
py
Python
custom_components/xiaomi_miot_raw/deps/special_devices.py
blakadder/xiaomi_miot_raw
a0a2fef582da53413788b9f9b2d8b091dcf52baa
[ "Apache-2.0" ]
null
null
null
custom_components/xiaomi_miot_raw/deps/special_devices.py
blakadder/xiaomi_miot_raw
a0a2fef582da53413788b9f9b2d8b091dcf52baa
[ "Apache-2.0" ]
null
null
null
custom_components/xiaomi_miot_raw/deps/special_devices.py
blakadder/xiaomi_miot_raw
a0a2fef582da53413788b9f9b2d8b091dcf52baa
[ "Apache-2.0" ]
null
null
null
SPECIAL_DEVICES={ "chuangmi.plug.212a01":{ "device_type": ['switch','sensor'], "mapping": {"switch": {"switch_status": {"siid": 2, "piid": 1}, "temperature": {"siid": 2, "piid": 6}, "working_time": {"siid": 2, "piid": 7}}, "power_consumption": {"power_consumption": {"siid": 5, "piid": 1}, "electric_...
101.8
667
0.588081
797b4b74a9a8a55a28a1a711e76f4bf68a02a71a
40,505
py
Python
qiskit_acqua/parser/_inputparser.py
liupibm/qiskit-ising-for-clique-PR
493cfbd984ca129cfbd24d004cd7d75102925e7e
[ "Apache-2.0" ]
2
2019-02-27T12:20:29.000Z
2020-06-25T21:27:53.000Z
qiskit_acqua/parser/_inputparser.py
liupibm/qiskit-ising-for-clique-PR
493cfbd984ca129cfbd24d004cd7d75102925e7e
[ "Apache-2.0" ]
null
null
null
qiskit_acqua/parser/_inputparser.py
liupibm/qiskit-ising-for-clique-PR
493cfbd984ca129cfbd24d004cd7d75102925e7e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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 agre...
43.553763
139
0.614714
797b4bbaea8a58d22c5415dab22966aedd0304aa
2,777
py
Python
language/common/inputs/dataset_utils_test.py
Ram81/language
cb954c8bf3c9265855b23e768f70abb528ab60a7
[ "Apache-2.0" ]
1
2020-05-27T15:48:09.000Z
2020-05-27T15:48:09.000Z
language/common/inputs/dataset_utils_test.py
Ram81/language
cb954c8bf3c9265855b23e768f70abb528ab60a7
[ "Apache-2.0" ]
null
null
null
language/common/inputs/dataset_utils_test.py
Ram81/language
cb954c8bf3c9265855b23e768f70abb528ab60a7
[ "Apache-2.0" ]
3
2019-07-08T09:45:51.000Z
2019-10-18T07:19:15.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
36.064935
74
0.630897
797b4c14536feb332da599c96e92f13ed395efe1
15,529
py
Python
sktime/transformations/series/boxcox.py
Vasudeva-bit/sktime
0d031862ac85d20e75434a1b4ab4117bdd544ffe
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/series/boxcox.py
Vasudeva-bit/sktime
0d031862ac85d20e75434a1b4ab4117bdd544ffe
[ "BSD-3-Clause" ]
null
null
null
sktime/transformations/series/boxcox.py
Vasudeva-bit/sktime
0d031862ac85d20e75434a1b4ab4117bdd544ffe
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file). """Implmenents Box-Cox and Log Transformations.""" __author__ = ["mloning, aiwalter, fkiraly"] __all__ = ["BoxCoxTransformer", "LogTransformer"] import numpy as np from scipy import optimize, spe...
32.555556
87
0.625475
797b4c21eb67c53d88d8d906d56397bb31378fe4
3,397
py
Python
isi_sdk_8_1_1/isi_sdk_8_1_1/models/event_alert_conditions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_1_1/isi_sdk_8_1_1/models/event_alert_conditions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_1_1/isi_sdk_8_1_1/models/event_alert_conditions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 6 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_1_1.models.event_a...
29.53913
125
0.608184
797b4c3a765e5b727b5d02a8f6660eafa5cb6c14
80,646
py
Python
sympy/utilities/codegen.py
clyring/sympy
54d7726c182065fc25df69b5d1030e568931d82f
[ "BSD-3-Clause" ]
3
2015-01-17T23:15:04.000Z
2015-05-26T14:11:44.000Z
sympy/utilities/codegen.py
clyring/sympy
54d7726c182065fc25df69b5d1030e568931d82f
[ "BSD-3-Clause" ]
1
2017-08-26T01:07:46.000Z
2017-08-26T16:05:49.000Z
sympy/utilities/codegen.py
leosartaj/sympy
28d913d3cead6c5646307ffa6540b21d65059dfd
[ "BSD-3-Clause" ]
1
2018-10-21T06:32:46.000Z
2018-10-21T06:32:46.000Z
""" module for generating C, C++, Fortran77, Fortran90, Julia, Rust and Octave/Matlab routines that evaluate sympy expressions. This module is work in progress. Only the milestones with a '+' character in the list below have been completed. --- How is sympy.utilities.codegen different from sympy.printing.ccode? --- W...
36.458409
150
0.598728
797b4d10ed12eadbf43662efd7cb1244598909ce
13,870
py
Python
vtam/CommandSortReads.py
ulysse06/vtam
3c743e62e93c80bb891ebda59d1ea3115766b687
[ "MIT" ]
1
2020-11-26T11:25:02.000Z
2020-11-26T11:25:02.000Z
vtam/CommandSortReads.py
ulysse06/vtam
3c743e62e93c80bb891ebda59d1ea3115766b687
[ "MIT" ]
25
2020-11-13T13:45:45.000Z
2022-03-09T08:38:56.000Z
vtam/CommandSortReads.py
ulysse06/vtam
3c743e62e93c80bb891ebda59d1ea3115766b687
[ "MIT" ]
4
2021-03-25T18:18:52.000Z
2022-01-08T10:37:39.000Z
import multiprocessing import os import sys import pandas import pathlib import shlex import shutil import subprocess # Compatible with both pre- and post Biopython 1.78: try: from Bio.Alphabet import generic_dna except ImportError: generic_dna = None from Bio.Seq import Seq from vtam.utils.Logger import Log...
47.016949
145
0.545782
797b4d48c33f3e499b6cfdbbd3b77180a8339c14
8,633
py
Python
python_code/q_learning.py
flemingmartin/crawler-bot
0f59250c1b72f24c0318224f27e8248f4305f22b
[ "RSA-MD" ]
6
2021-12-13T03:50:29.000Z
2022-01-15T23:49:25.000Z
python_code/q_learning.py
flemingmartin/crawler-bot
0f59250c1b72f24c0318224f27e8248f4305f22b
[ "RSA-MD" ]
null
null
null
python_code/q_learning.py
flemingmartin/crawler-bot
0f59250c1b72f24c0318224f27e8248f4305f22b
[ "RSA-MD" ]
null
null
null
import numpy as np import time import random from threading import Semaphore from python_code.robot import Robot class QLearning(): ''' Clase QLearning encargada de realizar el entrenamiento del modelo, su inferencia y su inicialización ''' def __init__(self,app): ''' Constructor de la clase QLearning ...
36.121339
181
0.721765
797b4d99c66729f837fe0ca08480654db39fa1b5
21,740
py
Python
controller/api/tests/test_scheduler.py
smothiki/deis
73246fc62b2cb3e76f3908b9a4014b19110af4e7
[ "Apache-2.0" ]
1
2019-11-18T19:56:21.000Z
2019-11-18T19:56:21.000Z
controller/api/tests/test_scheduler.py
smothiki/deis
73246fc62b2cb3e76f3908b9a4014b19110af4e7
[ "Apache-2.0" ]
null
null
null
controller/api/tests/test_scheduler.py
smothiki/deis
73246fc62b2cb3e76f3908b9a4014b19110af4e7
[ "Apache-2.0" ]
null
null
null
""" Unit tests for the Deis api app. Run the tests with "./manage.py test api" """ from __future__ import unicode_literals import json from django.conf import settings from django.contrib.auth.models import User from django.test import TransactionTestCase from rest_framework.authtoken.models import Token from sche...
54.89899
98
0.609936
797b4ed77e2ace3963098a1dfaa9b5ac590d6413
1,087
py
Python
seven23/models/terms/models.py
sebastienbarbier/723e_server
3501d143d371355a88bf3129828a9d5fd61d6be4
[ "MIT" ]
null
null
null
seven23/models/terms/models.py
sebastienbarbier/723e_server
3501d143d371355a88bf3129828a9d5fd61d6be4
[ "MIT" ]
null
null
null
seven23/models/terms/models.py
sebastienbarbier/723e_server
3501d143d371355a88bf3129828a9d5fd61d6be4
[ "MIT" ]
null
null
null
""" Terms and Conditions models """ import uuid from django.db import models # Default user model may get swapped out of the system and hence. from django.contrib.auth.models import User from django.utils.translation import gettext_lazy as _ class TermsAndConditions(models.Model): """ Discount token on...
37.482759
115
0.640294
797b4f06e14b4dfee6d34030ba08b30c269d433b
5,403
py
Python
src/transformers/modeling_camembert.py
moscow25/transformers
a25c9fc8e14f3e8914116e6142af2a9589dc8e63
[ "Apache-2.0" ]
1
2020-04-22T23:14:36.000Z
2020-04-22T23:14:36.000Z
src/transformers/modeling_camembert.py
moscow25/transformers
a25c9fc8e14f3e8914116e6142af2a9589dc8e63
[ "Apache-2.0" ]
null
null
null
src/transformers/modeling_camembert.py
moscow25/transformers
a25c9fc8e14f3e8914116e6142af2a9589dc8e63
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 Inria, Facebook AI Research and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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...
36.261745
115
0.762169
797b4f3ccfe65576c0e4efb5eca03a09a48a1302
1,582
py
Python
day05/movie1.py
zhaohandd/Web_Crawler
b4ccbcce95fd1c037d1c8a6ae9b269eeb9928440
[ "Apache-2.0" ]
3
2018-10-18T14:50:24.000Z
2021-12-30T08:45:33.000Z
day05/movie1.py
zhaohandd/Web_Crawler
b4ccbcce95fd1c037d1c8a6ae9b269eeb9928440
[ "Apache-2.0" ]
null
null
null
day05/movie1.py
zhaohandd/Web_Crawler
b4ccbcce95fd1c037d1c8a6ae9b269eeb9928440
[ "Apache-2.0" ]
3
2019-04-27T15:11:49.000Z
2021-09-06T04:47:05.000Z
import requests from fake_useragent import UserAgent from lxml import etree from random import randint from time import sleep def get_html(url): headers = { 'User-agent': UserAgent().random } sleep(randint(3, 10)) response = requests.get(url, headers=headers) response.encoding...
26.813559
89
0.627054
797b50b563b71fa0da8a93929b6b21f017acfa2a
738
py
Python
simulations/000_Statesim_initial/per_chain_size.py
Somoshree/serverlessonedge
3d8e0dc7867146c9c177f814a3507d027adbb0a0
[ "MIT" ]
17
2020-07-27T08:28:29.000Z
2022-03-19T09:17:21.000Z
simulations/000_Statesim_initial/per_chain_size.py
Somoshree/serverlessonedge
3d8e0dc7867146c9c177f814a3507d027adbb0a0
[ "MIT" ]
null
null
null
simulations/000_Statesim_initial/per_chain_size.py
Somoshree/serverlessonedge
3d8e0dc7867146c9c177f814a3507d027adbb0a0
[ "MIT" ]
4
2021-02-23T09:29:32.000Z
2022-01-18T07:24:19.000Z
#!/usr/bin/env python3 import sys import statsmodels.stats.api as sms data = dict() for line in sys.stdin: line.rstrip() tokens = line.split(" ") k = int(tokens[3]) if k not in data: data[k] = [[], [], []] for i in range(3): data[k][i].append(float(tokens[i])) multipliers = [1e3, ...
26.357143
75
0.531165
797b50f5d63449d38735aa21ecc6af9a269c19aa
2,044
py
Python
var/spack/repos/builtin/packages/dislin/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-08-20T06:55:11.000Z
2018-08-20T06:55:11.000Z
var/spack/repos/builtin/packages/dislin/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-04-29T22:36:27.000Z
2019-04-30T12:51:38.000Z
var/spack/repos/builtin/packages/dislin/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-12T19:27:17.000Z
2020-03-12T19:27:17.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Dislin(Package): """DISLIN is a high level and easy to use graphics library for displaying...
35.241379
99
0.641389
797b5256f945c28fd586b612a1fa3d6f2a7d0beb
3,991
py
Python
alipay/aop/api/request/AlipayEbppInvoiceTitleBatchqueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayEbppInvoiceTitleBatchqueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayEbppInvoiceTitleBatchqueryRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayEbppInvoiceTitleBatchqueryModel import AlipayEbppInvoiceTitleBatchqueryModel class AlipayEbppInvoiceTitleBatchqueryRequest(obj...
27.524138
148
0.646455
797b53367f6c3efbe10b8b56d29397d43c25ebbe
24,807
py
Python
intersight/models/iam_certificate_request.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/iam_certificate_request.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/iam_certificate_request.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight OpenAPI specification. The Cisco Intersight OpenAPI specification. OpenAPI spec version: 1.0.9-1461 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamCertificateReq...
34.743697
738
0.653041
797b547973ae44f71bb607ffc36cd92c665afdb5
16,846
py
Python
src/routes/routes_eda.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
8
2021-12-23T06:05:00.000Z
2021-12-26T05:39:00.000Z
src/routes/routes_eda.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
null
null
null
src/routes/routes_eda.py
Supreeth-Shetty/Projectathon---Simplified-AI
3fc26a58a9370d119811ac4e864af977c21f6c40
[ "MIT" ]
2
2021-12-23T06:10:11.000Z
2021-12-23T07:24:28.000Z
from flask import Blueprint, request, render_template, session, redirect, url_for from flask.wrappers import Response from loguru import logger from src.utils.common.data_helper import load_data from src.utils.common.plotly_helper import PlotlyHelper from src.utils.common.project_report_helper import ProjectReports imp...
51.674847
121
0.519411
797b554f7945010fb3d9c86b98b81d1c5208b88c
756
py
Python
core/urls.py
KraftSoft/together
8f6ecb0545aa6cd9cbb79a4f8686928f77cea4af
[ "BSD-3-Clause" ]
null
null
null
core/urls.py
KraftSoft/together
8f6ecb0545aa6cd9cbb79a4f8686928f77cea4af
[ "BSD-3-Clause" ]
null
null
null
core/urls.py
KraftSoft/together
8f6ecb0545aa6cd9cbb79a4f8686928f77cea4af
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, url from core.views import UserList, UserDetail, MeetingsList, MeetingDetail, UserCreate, AuthView urlpatterns = [ url(r'^api-token-auth/', AuthView.as_view(), name='auth'), url(r'^user-create/$', UserCreate.as_view(), name='user-create'), url(r'^users-list/$', User...
39.789474
94
0.671958
797b57fe2dfd251a7b74b36e8dc4baee6682af54
1,442
py
Python
scripts/bag_transform.py
mfkiwl/sdd_vio
dcd8cbb3f140d4eb9569ede4e94c36cc818aa557
[ "Apache-2.0" ]
67
2020-08-20T01:24:02.000Z
2022-02-26T11:43:45.000Z
scripts/bag_transform.py
mfkiwl/sdd_vio
dcd8cbb3f140d4eb9569ede4e94c36cc818aa557
[ "Apache-2.0" ]
null
null
null
scripts/bag_transform.py
mfkiwl/sdd_vio
dcd8cbb3f140d4eb9569ede4e94c36cc818aa557
[ "Apache-2.0" ]
17
2020-09-15T18:16:36.000Z
2022-02-22T09:04:35.000Z
#!/usr/bin/env python import rosbag import sys import os import tf import geometry_msgs import nav_msgs with rosbag.Bag('pose_stamped.bag', 'w') as outbag: cwd = os.getcwd() for topic, msg, t in rosbag.Bag(sys.argv[1]).read_messages(): if "vicon" in topic: msg_out = geometry_msgs.msg.PoseSt...
37.947368
65
0.618585
797b580b8e5a8be3a891e190fd5b194058d3c132
5,595
py
Python
tools/visualization/write_cow_plots_comparison.py
CancerModeling/Flows1D0D3D
ca87bd11acd1f558ee64c379d051e41175a13b6a
[ "BSL-1.0" ]
1
2022-01-12T11:42:31.000Z
2022-01-12T11:42:31.000Z
tools/visualization/write_cow_plots_comparison.py
CancerModeling/Flows1D0D3D
ca87bd11acd1f558ee64c379d051e41175a13b6a
[ "BSL-1.0" ]
null
null
null
tools/visualization/write_cow_plots_comparison.py
CancerModeling/Flows1D0D3D
ca87bd11acd1f558ee64c379d051e41175a13b6a
[ "BSL-1.0" ]
null
null
null
import os import numpy as np import json from matplotlib import pyplot as plt import argparse parser = argparse.ArgumentParser(description='Plots the vessel data.') parser.add_argument('--filepaths', type=str, nargs='+', required=True) parser.add_argument('--vessels', type=int, nargs='+', help='A list of ids of the v...
36.568627
195
0.594281
797b58b3c19200d83f8aef00750b4e41ad8c9a15
1,385
py
Python
crawlerUtils/utils/crawlerLog.py
Tyrone-Zhao/crawlerUtils
529a683de53b46111871573a2786245f7ac922a8
[ "MIT" ]
18
2019-03-03T07:15:00.000Z
2022-02-26T22:09:46.000Z
crawlerUtils/utils/crawlerLog.py
Tyrone-Zhao/crawlerUtils
529a683de53b46111871573a2786245f7ac922a8
[ "MIT" ]
null
null
null
crawlerUtils/utils/crawlerLog.py
Tyrone-Zhao/crawlerUtils
529a683de53b46111871573a2786245f7ac922a8
[ "MIT" ]
3
2019-03-20T15:59:07.000Z
2021-04-14T04:40:50.000Z
import logging import logging.handlers import datetime __all__ = ["Log"] class Log(): def __init__(self, **kwargs): super().__init__() @classmethod def logSet(self, allname="all.log", errorname="error.log", encoding="utf-8"): # 日志器 logger = logging.getLogger('mylogger') ...
29.468085
81
0.628159
797b58d852a441ec086adfd4a085351044ee8c22
26,395
py
Python
supybot/plugins/Verbs/plugin.py
ekolis/ChancellorGerathIrc
f536c1901e743708101cb27249d0e395b8c0a493
[ "BSD-3-Clause" ]
null
null
null
supybot/plugins/Verbs/plugin.py
ekolis/ChancellorGerathIrc
f536c1901e743708101cb27249d0e395b8c0a493
[ "BSD-3-Clause" ]
null
null
null
supybot/plugins/Verbs/plugin.py
ekolis/ChancellorGerathIrc
f536c1901e743708101cb27249d0e395b8c0a493
[ "BSD-3-Clause" ]
null
null
null
### # Copyright (c) 2014, Ed Kolis # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of condit...
55.803383
376
0.683387
797b58e42784022442cdb7a1d9fb5fe623e9a9e2
661
py
Python
keystone/identity/__init__.py
savi-dev/keystone
84f41c2e43f366f8aa9a4d2201604535966d74d7
[ "Apache-2.0" ]
null
null
null
keystone/identity/__init__.py
savi-dev/keystone
84f41c2e43f366f8aa9a4d2201604535966d74d7
[ "Apache-2.0" ]
null
null
null
keystone/identity/__init__.py
savi-dev/keystone
84f41c2e43f366f8aa9a4d2201604535966d74d7
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
36.722222
75
0.763994
797b58f819a65e2d247d1fb71995338aa95fdb7a
7,963
py
Python
transform/main.py
fireinhole/vault-confluent-data-encryption
40885a89a5ea4334b1e37916f86fdeaf63c38fab
[ "MIT" ]
1
2022-03-31T02:55:48.000Z
2022-03-31T02:55:48.000Z
transform/main.py
fireinhole/vault-confluent-data-encryption
40885a89a5ea4334b1e37916f86fdeaf63c38fab
[ "MIT" ]
null
null
null
transform/main.py
fireinhole/vault-confluent-data-encryption
40885a89a5ea4334b1e37916f86fdeaf63c38fab
[ "MIT" ]
1
2022-01-28T17:33:12.000Z
2022-01-28T17:33:12.000Z
import base64 from confluent_kafka import Consumer from confluent_kafka import Producer import hvac import sys from benedict import benedict import socket import os import logging import json vault_url = os.environ["VAULT_ADDR"] vault_token = os.environ["VAULT_TOKEN"] kafka_group = os.environ["KAFKA_GROUP"] egress_top...
36.360731
112
0.531081
797b59006337e01c6436811d29dee5fe3827a6a8
2,125
py
Python
scrape_dt.py
mayscopeland/open_projections
a0c3e292038ae7fa694b74acdf5b909b83538207
[ "MIT" ]
null
null
null
scrape_dt.py
mayscopeland/open_projections
a0c3e292038ae7fa694b74acdf5b909b83538207
[ "MIT" ]
null
null
null
scrape_dt.py
mayscopeland/open_projections
a0c3e292038ae7fa694b74acdf5b909b83538207
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def main(): get_all_leagues(True) get_all_leagues(False) def get_all_leagues(is_batting): print(get_factors("ACL", is_batting)) print(get_factors("FCL", is_batting)) print(get_factors("LAW", is_batting)) print(get_factors("LAS", is_batting)...
25.914634
99
0.604706
797b59d42a0954fee9536cff0f83ba4a5b7c7e22
2,996
py
Python
SCRIPTS/DATA_PRESENT/SI_Residence_Time_Figure.py
huckgroup/formose-2021
f1c5e809e0cbbbc744a4fe636069cdfc83ad6091
[ "BSD-3-Clause" ]
null
null
null
SCRIPTS/DATA_PRESENT/SI_Residence_Time_Figure.py
huckgroup/formose-2021
f1c5e809e0cbbbc744a4fe636069cdfc83ad6091
[ "BSD-3-Clause" ]
null
null
null
SCRIPTS/DATA_PRESENT/SI_Residence_Time_Figure.py
huckgroup/formose-2021
f1c5e809e0cbbbc744a4fe636069cdfc83ad6091
[ "BSD-3-Clause" ]
null
null
null
''' A selection of data sets showing how the concentration of formaldehyde affects the reaction composition. Figure 2C. ''' import sys import numpy as np import pandas as pd from pathlib import Path import matplotlib.cm as cm import matplotlib.pyplot as plt # add the SCRIPTS directory to the system path # so that its ...
34.045455
83
0.730975
797b5b440d166e5d687131690969dbc380862d89
31,999
py
Python
tests/components/soundtouch/test_media_player.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/soundtouch/test_media_player.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
tests/components/soundtouch/test_media_player.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Test the Soundtouch component.""" from unittest.mock import call, patch from libsoundtouch.device import ( Config, Preset, SoundTouchDevice as STD, Status, Volume, ZoneSlave, ZoneStatus, ) import pytest from homeassistant.components.media_player.const import ( ATTR_INPUT_SOURCE, ...
30.10254
88
0.68599
797b5c9c3fc7db14406662418a0d003cafe340d4
21,348
py
Python
src/azure-cli/azure/cli/command_modules/acs/_validators.py
hivyas/azure-cli
bc977a36f3079a6d79633b9c5c29c90462710528
[ "MIT" ]
1
2021-08-23T19:53:54.000Z
2021-08-23T19:53:54.000Z
src/azure-cli/azure/cli/command_modules/acs/_validators.py
hivyas/azure-cli
bc977a36f3079a6d79633b9c5c29c90462710528
[ "MIT" ]
1
2020-11-06T02:53:03.000Z
2020-11-06T02:53:03.000Z
src/azure-cli/azure/cli/command_modules/acs/_validators.py
hivyas/azure-cli
bc977a36f3079a6d79633b9c5c29c90462710528
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
43.745902
184
0.64629
797b5dedba1b54b2648fb203d53ba0bd753d26d1
1,320
py
Python
data/config.py
chisyliu/SSD-annotation
11646146aad412bf978b5d749e05e523df413544
[ "MIT" ]
1
2019-09-06T08:09:01.000Z
2019-09-06T08:09:01.000Z
data/config.py
chisyliu/SSD-annotation
11646146aad412bf978b5d749e05e523df413544
[ "MIT" ]
null
null
null
data/config.py
chisyliu/SSD-annotation
11646146aad412bf978b5d749e05e523df413544
[ "MIT" ]
null
null
null
# config.py import os.path # gets home dir cross platform HOME = os.path.expanduser("/home/home2/guojianhua/ssd.pytorch-master") # for making bounding boxes pretty COLORS = ((255, 0, 0, 128), (0, 255, 0, 128), (0, 0, 255, 128), (0, 255, 255, 128), (255, 0, 255, 128), (255, 255, 0, 128)) #缩小物体时的均值当做幕布,写成超参数...
29.333333
85
0.552273
797b5ff84f3470cc236f20f8fb459eb5f22867dd
135
py
Python
common/config.py
rajeevbbqq/token-balances-service
6f8a8367e367fb46b5d5132159dc6ab3594b9f88
[ "MIT" ]
null
null
null
common/config.py
rajeevbbqq/token-balances-service
6f8a8367e367fb46b5d5132159dc6ab3594b9f88
[ "MIT" ]
null
null
null
common/config.py
rajeevbbqq/token-balances-service
6f8a8367e367fb46b5d5132159dc6ab3594b9f88
[ "MIT" ]
null
null
null
DATABASE = { "DB_DRIVER": "", "DB_HOST": "", "DB_USER": "", "DB_PASSWORD": "", "DB_NAME": "", "DB_PORT": "", }
15
22
0.414815
797b609d5f4bab3fd2d6ced65dbc2614c848e3b9
5,460
py
Python
tests/amplifier_test.py
sairamreddy94/oopt-gnpy
e9b287ceaccc7f701af976012701c1b30118aff6
[ "BSD-3-Clause" ]
1
2020-05-24T03:28:56.000Z
2020-05-24T03:28:56.000Z
tests/amplifier_test.py
sairamreddy94/oopt-gnpy
e9b287ceaccc7f701af976012701c1b30118aff6
[ "BSD-3-Clause" ]
null
null
null
tests/amplifier_test.py
sairamreddy94/oopt-gnpy
e9b287ceaccc7f701af976012701c1b30118aff6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Author: Jean-Luc Auge # @Date: 2018-02-02 14:06:55 from gnpy.core.elements import Edfa import numpy as np from json import load import pytest from gnpy.core import network_from_json from gnpy.core.elements import Transceiver, Fiber, Edfa from gnpy.core.utils import l...
39
93
0.692674
797b60b6ef69d8546c30e557c64ba69d935b7804
2,076
py
Python
cas_consumer/backends.py
mozilla/django-cas-consumer
039ee47dfed9db07648cb1bfbceb5308d50d5f7f
[ "BSD-3-Clause" ]
3
2015-03-15T18:42:42.000Z
2020-12-29T04:19:11.000Z
cas_consumer/backends.py
mozilla/django-cas-consumer
039ee47dfed9db07648cb1bfbceb5308d50d5f7f
[ "BSD-3-Clause" ]
null
null
null
cas_consumer/backends.py
mozilla/django-cas-consumer
039ee47dfed9db07648cb1bfbceb5308d50d5f7f
[ "BSD-3-Clause" ]
3
2015-03-15T18:42:42.000Z
2020-12-29T04:19:13.000Z
from urllib import urlencode, urlopen from urlparse import urljoin from django.conf import settings from django.contrib.auth.models import User, UNUSABLE_PASSWORD __all__ = ['CASBackend'] service = settings.CAS_SERVICE cas_base = settings.CAS_BASE cas_login = cas_base + settings.CAS_LOGIN_URL cas_validate = cas_bas...
31.938462
91
0.663776
797b61ca32dfabc17499862d7530c4b5f2d54e2f
3,695
py
Python
models/cnn_net.py
KleinYuan/tf-cnn
492703035d9d37fbffcb5adf9f89bae5dc8c7a96
[ "MIT" ]
3
2018-08-01T09:08:44.000Z
2019-03-06T02:18:43.000Z
models/cnn_net.py
KleinYuan/tf-cnn
492703035d9d37fbffcb5adf9f89bae5dc8c7a96
[ "MIT" ]
null
null
null
models/cnn_net.py
KleinYuan/tf-cnn
492703035d9d37fbffcb5adf9f89bae5dc8c7a96
[ "MIT" ]
1
2019-01-22T04:11:11.000Z
2019-01-22T04:11:11.000Z
import tensorflow as tf from core.base_net import BaseNet from utils import blocks class Net(BaseNet): def __init__(self, config, logger): super(Net, self).__init__(config, logger) self.dropout = config.DROPOUT self.num_features = config.NUM_FEATURES self.num_conv = config.NUM_CO...
45.617284
133
0.653586
797b61ee99ca2f655ae8aee1aa996bf3219d33db
3,827
py
Python
setup.py
davidkohcw/incubator-superset
01689c38ea9acfcede1b10576f5c52af52dc340b
[ "Apache-2.0" ]
null
null
null
setup.py
davidkohcw/incubator-superset
01689c38ea9acfcede1b10576f5c52af52dc340b
[ "Apache-2.0" ]
null
null
null
setup.py
davidkohcw/incubator-superset
01689c38ea9acfcede1b10576f5c52af52dc340b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
29.438462
79
0.614058
797b61f3802a7d54e6b60181e417871c1437cccf
3,573
py
Python
modules/deeplab.py
NahidEbrahimian/Self-Correction-Human-Parsing-on-Binary-Images
eb924b0ceff71a515212972e64fad0de27b8afe9
[ "MIT" ]
9
2022-02-24T05:44:22.000Z
2022-03-07T15:23:33.000Z
modules/deeplab.py
NahidEbrahimian/Self-Correction-Human-Parsing-on-Binary-Images
eb924b0ceff71a515212972e64fad0de27b8afe9
[ "MIT" ]
null
null
null
modules/deeplab.py
NahidEbrahimian/Self-Correction-Human-Parsing-on-Binary-Images
eb924b0ceff71a515212972e64fad0de27b8afe9
[ "MIT" ]
1
2022-03-08T18:42:59.000Z
2022-03-08T18:42:59.000Z
import torch import torch.nn as nn import torch.nn.functional as functional from models._util import try_index from .bn import ABN class DeeplabV3(nn.Module): def __init__(self, in_channels, out_channels, hidden_channels=256, dilati...
42.035294
113
0.56871
797b6209c3ad40e4064871b95bfac52d4180ff83
22,496
py
Python
ctf01d-store/ctf01d-store.py
freehackquest/fhq-jury-ad
c839eefe98e5a6ccec6b182417f13929ebfe733a
[ "MIT" ]
12
2018-09-28T10:57:10.000Z
2020-03-30T15:53:05.000Z
ctf01d-store/ctf01d-store.py
freehackquest/fhq-jury-ad
c839eefe98e5a6ccec6b182417f13929ebfe733a
[ "MIT" ]
32
2018-09-28T14:10:51.000Z
2020-08-31T08:54:21.000Z
ctf01d-store/ctf01d-store.py
freehackquest/fhq-jury-ad
c839eefe98e5a6ccec6b182417f13929ebfe733a
[ "MIT" ]
3
2018-09-28T14:21:41.000Z
2019-11-02T14:14:34.000Z
#!/usr/bin/python2 import sys import math import socket import random import time import errno import os import requests import re import json import stat import StringIO import zipfile import shutil import re version = '0.0.1' fhq_jury_ad_use_version = 'latest' class bcolors: HEADER = '\033[95m' OKBLUE = '\0...
32.650218
184
0.576991
797b62a35fe099b4e75af6541912108b59fe21ca
35,188
py
Python
elasticdl/python/worker/worker.py
mirwu/elasticdl
a82c1189c57b87ba797221a10d492794a21bf459
[ "MIT" ]
1
2020-01-10T02:32:51.000Z
2020-01-10T02:32:51.000Z
elasticdl/python/worker/worker.py
mirwu/elasticdl
a82c1189c57b87ba797221a10d492794a21bf459
[ "MIT" ]
null
null
null
elasticdl/python/worker/worker.py
mirwu/elasticdl
a82c1189c57b87ba797221a10d492794a21bf459
[ "MIT" ]
null
null
null
import os import time import traceback import numpy as np import tensorflow as tf from google.protobuf import empty_pb2 from elasticdl.proto import elasticdl_pb2, elasticdl_pb2_grpc from elasticdl.python.collective_ops.communicator import CollectiveCommunicator from elasticdl.python.common.constants import ( Coll...
38.041081
79
0.59634
797b632ab1589626f56b3d55f6f722f65fc8f93a
44,405
py
Python
tests/components/manual/test_alarm_control_panel.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
tests/components/manual/test_alarm_control_panel.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
tests/components/manual/test_alarm_control_panel.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
2
2018-08-15T03:59:35.000Z
2018-10-18T12:20:05.000Z
"""The tests for the manual Alarm Control Panel component.""" from datetime import timedelta from unittest.mock import patch, MagicMock from homeassistant.components.demo import alarm_control_panel as demo from homeassistant.setup import async_setup_component from homeassistant.const import ( STATE_ALARM_DISARMED, ...
31.052448
75
0.647022
797b640666add138cd44d55e88c0128052aee258
1,910
py
Python
config/settings/local.py
warplydesigned/django-dating
cbafe5bfb0c8e058b5fb7d2fe9d8a3026539bc64
[ "BSD-3-Clause" ]
7
2018-04-27T10:28:54.000Z
2020-05-01T16:23:16.000Z
config/settings/local.py
warplydesigned/django-dating
cbafe5bfb0c8e058b5fb7d2fe9d8a3026539bc64
[ "BSD-3-Clause" ]
1
2020-05-15T19:49:24.000Z
2020-05-15T19:52:50.000Z
config/settings/local.py
warplydesigned/django-dating
cbafe5bfb0c8e058b5fb7d2fe9d8a3026539bc64
[ "BSD-3-Clause" ]
4
2016-08-13T16:49:05.000Z
2019-12-18T17:46:21.000Z
# -*- coding: utf-8 -*- ''' Local settings - Run in Debug mode - Use console backend for emails - Add Django Debug Toolbar - Add django-extensions as app ''' from .common import * # noqa # DEBUG # ------------------------------------------------------------------------------ DEBUG = env.bool('DJANGO_DEBUG', default=...
30.31746
80
0.493194
797b648644dd7c7b476b04f33cd39caefaef05f1
2,278
py
Python
tests/integration_tests/build/test_dependencies.py
swaitw/firecracker
0fa080b137fd29e5bcd95073473b0a57c3868d86
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/build/test_dependencies.py
swaitw/firecracker
0fa080b137fd29e5bcd95073473b0a57c3868d86
[ "Apache-2.0" ]
null
null
null
tests/integration_tests/build/test_dependencies.py
swaitw/firecracker
0fa080b137fd29e5bcd95073473b0a57c3868d86
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Enforces controls over dependencies.""" import os import ast import pytest from framework import utils def test_licenses(): """Ensure license compatibility for Firecracker. For a list of curren...
32.542857
74
0.636962
797b6577f05573a5aec47371ab99c656e431c13a
2,021
py
Python
ecs/votes/migrations/0008_optional_internal_vote_review.py
programmierfabrik/ecs
2389a19453e21b2ea4e40b272552bcbd42b926a9
[ "Apache-2.0" ]
9
2017-02-13T18:17:13.000Z
2020-11-21T20:15:54.000Z
ecs/votes/migrations/0008_optional_internal_vote_review.py
programmierfabrik/ecs
2389a19453e21b2ea4e40b272552bcbd42b926a9
[ "Apache-2.0" ]
2
2021-05-20T14:26:47.000Z
2021-05-20T14:26:48.000Z
ecs/votes/migrations/0008_optional_internal_vote_review.py
programmierfabrik/ecs
2389a19453e21b2ea4e40b272552bcbd42b926a9
[ "Apache-2.0" ]
4
2017-04-02T18:48:59.000Z
2021-11-23T15:40:35.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('votes', '0007_remove_reviews_for_b2_submissions'), ('workflow', '0001_initial'), ] operations = [ migrations.RunSQL(...
34.254237
79
0.467095
797b67ee4124b1c4a90c768891377186b2398d4e
3,634
py
Python
.history/Missions_to_Mars/scrape_mars_20200809102137.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
null
null
null
.history/Missions_to_Mars/scrape_mars_20200809102137.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
null
null
null
.history/Missions_to_Mars/scrape_mars_20200809102137.py
ermiasgelaye/web-scraping-challenge
f99c3436dfb0169595c46dae7733d90e21385cc6
[ "ADSL" ]
2
2020-11-02T08:12:16.000Z
2021-05-17T21:45:42.000Z
from splinter import Browser from bs4 import BeautifulSoup as bs import pandas as pd import time import re # This is for debugging def savetofile(contents): file = open('_temporary.txt',"w",encoding="utf-8") file.write(contents) file.close() def scrape(): executable_path = {"executable_path": "chrom...
27.953846
101
0.632911
797b67f0fb566a73bf72e251e6971988a9a77163
21,096
py
Python
code/utils/ext_transforms.py
kaushal-py/seg-degan
a74c506d5b1b67901a7e0663fba02ddb44f762a6
[ "MIT" ]
4
2020-11-03T19:47:26.000Z
2021-07-14T07:01:21.000Z
code/utils/ext_transforms.py
kaushal-py/seg-degan
a74c506d5b1b67901a7e0663fba02ddb44f762a6
[ "MIT" ]
null
null
null
code/utils/ext_transforms.py
kaushal-py/seg-degan
a74c506d5b1b67901a7e0663fba02ddb44f762a6
[ "MIT" ]
null
null
null
import torchvision import torch import torchvision.transforms.functional as F import random import numbers import numpy as np from PIL import Image # # Extended Transforms for Semantic Segmentation # class ExtRandomHorizontalFlip(object): """Horizontally flip the given PIL Image randomly with a given probabilit...
36.688696
150
0.595516
797b68c3efab6398c1b336230900936ca9a11db5
1,683
py
Python
bin/admin.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
23
2021-08-11T08:53:15.000Z
2022-02-14T04:44:13.000Z
bin/admin.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
2
2021-09-11T08:59:12.000Z
2022-03-29T00:40:42.000Z
bin/admin.py
travisliu/data-spec-validator
7ee0944ca9899d565ad04ed82ca26bb402970958
[ "MIT" ]
1
2022-01-04T07:45:22.000Z
2022-01-04T07:45:22.000Z
#!/usr/bin/env python import argparse import os import os.path import subprocess from os.path import abspath, dirname, join CUR_DIR = dirname(abspath(__file__)) ROOT_DIR = abspath(join(CUR_DIR, '..')) def parse_args(): parser = argparse.ArgumentParser(description='data-spec-validator admin') subparsers = pa...
26.714286
113
0.661319
797b68dc76360a8097960476f6fce9ee1c03aed3
1,134
py
Python
gslab_scons/builders/build_r.py
AakaashRao/gslab_python
864f708ec80f4381235506489b8c117e54e16450
[ "MIT" ]
null
null
null
gslab_scons/builders/build_r.py
AakaashRao/gslab_python
864f708ec80f4381235506489b8c117e54e16450
[ "MIT" ]
4
2021-02-16T15:49:12.000Z
2021-05-01T20:39:47.000Z
gslab_scons/builders/build_r.py
AakaashRao/gslab_python
864f708ec80f4381235506489b8c117e54e16450
[ "MIT" ]
null
null
null
import os from .gslab_builder import GSLabBuilder def build_r(target, source, env): ''' Build SCons targets using an R script This function executes an R script to build objects specified by target using the objects specified by source. Parameters ---------- target: string or list ...
29.076923
117
0.631393
797b69dcdd2333f1cf07890d4066074662fc0d3c
5,595
py
Python
tests/test_functions.py
carmocca/pyDeprecate
c9fbd23f15e55afe71eb1bdcfe04bc78d227fe37
[ "BSD-3-Clause" ]
null
null
null
tests/test_functions.py
carmocca/pyDeprecate
c9fbd23f15e55afe71eb1bdcfe04bc78d227fe37
[ "BSD-3-Clause" ]
null
null
null
tests/test_functions.py
carmocca/pyDeprecate
c9fbd23f15e55afe71eb1bdcfe04bc78d227fe37
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (C) 2020-2021 Jiri Borovec <...> """ import pytest from deprecate.utils import no_warning_call from tests.collection_deprecate import ( depr_accuracy_extra, depr_accuracy_map, depr_accuracy_skip, depr_pow_args, depr_pow_mix, depr_pow_self, depr_pow_self_double, depr_pow_se...
33.303571
114
0.678284
797b69ef0a80d36bb651772d477066cdfaa50555
3,217
py
Python
Python/WebDev/Django/MundusInvicte/MundusInvicte/settings.py
michaelg29/Programming
2544a742393c6d94e93879f70246ce17d0997011
[ "MIT" ]
2
2021-04-05T20:44:54.000Z
2022-01-13T05:25:11.000Z
Python/WebDev/Django/MundusInvicte/MundusInvicte/settings.py
michaelg29/Programming
2544a742393c6d94e93879f70246ce17d0997011
[ "MIT" ]
12
2020-02-17T05:19:01.000Z
2022-03-17T14:56:38.000Z
Python/WebDev/Django/MundusInvicte/MundusInvicte/settings.py
michaelg29/Programming
2544a742393c6d94e93879f70246ce17d0997011
[ "MIT" ]
1
2022-01-25T16:48:21.000Z
2022-01-25T16:48:21.000Z
""" Django settings for MundusInvicte project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import...
26.154472
91
0.696301
797b6a3f7280a273b03bda19131e30132f72c529
5,650
py
Python
jina/executors/metas.py
musa-atlihan/jina
9d9cbe1dad2703e2da10761a11c66abcc76dd8b8
[ "Apache-2.0" ]
2
2021-04-22T16:59:02.000Z
2021-04-22T17:14:32.000Z
jina/executors/metas.py
musa-atlihan/jina
9d9cbe1dad2703e2da10761a11c66abcc76dd8b8
[ "Apache-2.0" ]
null
null
null
jina/executors/metas.py
musa-atlihan/jina
9d9cbe1dad2703e2da10761a11c66abcc76dd8b8
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" """The default meta config that all executors follow, they can be overrided by the YAML config .. warning:: When you define your own Executor class, make sure your attributes/methods name do not conflict wit...
32.102273
140
0.633097
797b6a80c238f1057c7bc81aded4ffd16a1a7def
9,309
py
Python
fairseq/progress_bar.py
ToWeRT1An/group_fairseq
ca323ad5d3e7eca457f2cb8976cb732fedc9757e
[ "BSD-3-Clause" ]
5
2019-05-26T13:44:46.000Z
2020-12-23T09:04:00.000Z
fairseq/progress_bar.py
ToWeRT1An/group_fairseq
ca323ad5d3e7eca457f2cb8976cb732fedc9757e
[ "BSD-3-Clause" ]
1
2019-11-27T04:20:28.000Z
2019-12-23T20:11:20.000Z
fairseq/progress_bar.py
ToWeRT1An/group_fairseq
ca323ad5d3e7eca457f2cb8976cb732fedc9757e
[ "BSD-3-Clause" ]
3
2019-11-11T14:53:39.000Z
2021-09-28T22:59:35.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. """ Wrapper around various loggers...
34.350554
104
0.617252
797b6b6a8b1c60091580376d5bb527da5462417e
4,402
py
Python
main.py
z33pX/Analysing-and-Downloading-Reddit-Threads
f514af477df4026e11c61b0c0dd1a35110494608
[ "MIT" ]
null
null
null
main.py
z33pX/Analysing-and-Downloading-Reddit-Threads
f514af477df4026e11c61b0c0dd1a35110494608
[ "MIT" ]
null
null
null
main.py
z33pX/Analysing-and-Downloading-Reddit-Threads
f514af477df4026e11c61b0c0dd1a35110494608
[ "MIT" ]
null
null
null
from urllib.parse import quote_plus import pprint import praw from praw.models import MoreComments from nltk import ne_chunk, pos_tag, word_tokenize from nltk.tree import Tree import json def get_continuous_chunks(text): chunked = ne_chunk(pos_tag(word_tokenize(text))) prev = None continuous_chunk = [] ...
34.390625
80
0.562244
797b6bde17dbf00ad34e9a3ce144beed16ddd46c
2,481
py
Python
pyalgotrade/utils/dt.py
Richard-L-Johnson/pyalgotrader
ad2bcc6b25c06c66eee4a8d522ce844504d8ec62
[ "Apache-2.0" ]
3,719
2015-01-06T09:00:02.000Z
2022-03-31T20:55:01.000Z
pyalgotrade/utils/dt.py
Richard-L-Johnson/pyalgotrader
ad2bcc6b25c06c66eee4a8d522ce844504d8ec62
[ "Apache-2.0" ]
122
2015-01-01T17:06:22.000Z
2022-03-22T13:33:38.000Z
pyalgotrade/utils/dt.py
Richard-L-Johnson/pyalgotrader
ad2bcc6b25c06c66eee4a8d522ce844504d8ec62
[ "Apache-2.0" ]
1,428
2015-01-01T17:07:38.000Z
2022-03-31T10:02:37.000Z
# PyAlgoTrade # # Copyright 2011-2018 Gabriel Martin Becedillas Ruiz # # 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 ap...
28.848837
119
0.708988
797b6c3e1b8b4b4b1dbe54f7fbe39aa65278884d
597
py
Python
neighbourhood/emails.py
cheruden/neighborhood_check
240f89700a99ee6b3d913d165a936ef01bceaeec
[ "MIT" ]
null
null
null
neighbourhood/emails.py
cheruden/neighborhood_check
240f89700a99ee6b3d913d165a936ef01bceaeec
[ "MIT" ]
null
null
null
neighbourhood/emails.py
cheruden/neighborhood_check
240f89700a99ee6b3d913d165a936ef01bceaeec
[ "MIT" ]
null
null
null
from django.core.mail import EmailMultiAlternatives from django.template.loader import render_to_string def send_email(name,receiver): # Creating message subject and sender subject = 'Welcome to Our Neighbourhood' sender = 'cheruden25@gmail.com' #passing in the context vairables text_content = r...
33.166667
77
0.755444
797b6c619e2d152a4c08988d5d385b4741abcb3a
443
py
Python
seminar07-gen_models_2/supervised_deformation_finder/utils.py
sevakon/Practical_DL
10f01d8bdeaafbff0f1cfbfa3160dfc81f355f0f
[ "MIT" ]
51
2021-09-15T12:07:12.000Z
2022-03-29T02:19:58.000Z
seminar07-gen_models_2/supervised_deformation_finder/utils.py
sevakon/Practical_DL
10f01d8bdeaafbff0f1cfbfa3160dfc81f355f0f
[ "MIT" ]
7
2021-09-26T16:33:21.000Z
2021-12-13T09:05:19.000Z
seminar07-gen_models_2/supervised_deformation_finder/utils.py
sevakon/Practical_DL
10f01d8bdeaafbff0f1cfbfa3160dfc81f355f0f
[ "MIT" ]
24
2021-09-12T21:41:26.000Z
2022-02-18T15:48:04.000Z
import torch import torch.nn.functional as F mean_imagenet = torch.FloatTensor([0.485, 0.456, 0.406])[:, None, None] std_imagenet = torch.FloatTensor([0.229, 0.224, 0.225])[:, None, None] def prepare_generator_output_for_celeba_regressor(imgs): imgs = torch.clamp(imgs, -1, 1) imgs = F.interpolate(imgs, 224) ...
31.642857
80
0.690745
797b6f3eeed608fc631d60c077591d802b5f41c9
9,930
py
Python
Lib/site-packages/django/middleware/csrf.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
123
2015-01-15T06:56:45.000Z
2022-03-19T22:18:55.000Z
Lib/site-packages/django/middleware/csrf.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
21
2015-03-25T18:00:33.000Z
2019-08-12T17:11:10.000Z
Lib/site-packages/django/middleware/csrf.py
ashutoshsuman99/Web-Blog-D19
a01a0ccc40e8823110c01ebe4f43d9351df57295
[ "bzip2-1.0.6" ]
72
2015-01-14T16:29:47.000Z
2021-10-09T16:31:47.000Z
""" Cross Site Request Forgery Middleware. This module provides a middleware that implements protection against request forgeries from other sites. """ from __future__ import unicode_literals import logging import re from django.conf import settings from django.core.urlresolvers import get_callable from django.utils...
41.20332
95
0.617925
797b6fb50acf09f4fdf6c3ab7621695900ff0129
21,078
py
Python
controller.py
izzatnadzmi/ConcentricTubeRobot
a10f3648bdc70509f123ea7818a664165ee069a4
[ "MIT" ]
null
null
null
controller.py
izzatnadzmi/ConcentricTubeRobot
a10f3648bdc70509f123ea7818a664165ee069a4
[ "MIT" ]
null
null
null
controller.py
izzatnadzmi/ConcentricTubeRobot
a10f3648bdc70509f123ea7818a664165ee069a4
[ "MIT" ]
1
2019-10-10T08:35:05.000Z
2019-10-10T08:35:05.000Z
''' Author: Izzat Kamarudzaman Python Version: 3.7.2 Main code for CTR system. Calls CTR model and trajectory generator. Also contains classes for Jacobian Linearisation and Controller. ''' import numpy as np import sys import time sys.path.append("../") sys.path.append("./test") sys.path.append("./Co...
41.492126
143
0.555413
797b70d6aec75c0610b7f97382a71e5f289f1e1b
1,831
py
Python
examples/basic_query/example_client.py
dbczumar/clipper
80c97d27a38d60caaebb2a1ae6a995dd7ff1c82d
[ "Apache-2.0" ]
32
2019-09-11T16:49:58.000Z
2022-01-26T15:40:40.000Z
examples/basic_query/example_client.py
dbczumar/clipper
80c97d27a38d60caaebb2a1ae6a995dd7ff1c82d
[ "Apache-2.0" ]
7
2018-06-20T22:06:09.000Z
2019-01-07T04:01:22.000Z
examples/basic_query/example_client.py
dbczumar/clipper
80c97d27a38d60caaebb2a1ae6a995dd7ff1c82d
[ "Apache-2.0" ]
9
2019-09-03T14:05:26.000Z
2021-12-22T07:17:27.000Z
from __future__ import print_function from clipper_admin import ClipperConnection, DockerContainerManager from clipper_admin.deployers import python as python_deployer import json import requests from datetime import datetime import time import numpy as np import signal import sys def predict(addr, x, batch=False): ...
29.063492
78
0.643364
797b73bc0a8d3eb99ced23be5c645904fc4430e9
640
py
Python
backend/tags/migrations/0002_auto_20200512_2130.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
10
2020-05-05T16:20:04.000Z
2021-07-22T15:15:13.000Z
backend/tags/migrations/0002_auto_20200512_2130.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
null
null
null
backend/tags/migrations/0002_auto_20200512_2130.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
1
2020-05-06T22:31:48.000Z
2020-05-06T22:31:48.000Z
# Generated by Django 3.0.3 on 2020-05-12 21:30 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('tags', '0001_initial'), ] operations = [ migrations.AddField( model_name='tag', name='d...
24.615385
93
0.601563
797b768135626262d8654a1076735607eaec7177
9,935
py
Python
test/unit/http.py
geyslan/unit
6703b68ed00e7cc8132c0aaf3049ed30889de8a8
[ "Apache-2.0" ]
1
2020-11-24T04:45:07.000Z
2020-11-24T04:45:07.000Z
test/unit/http.py
geyslan/unit
6703b68ed00e7cc8132c0aaf3049ed30889de8a8
[ "Apache-2.0" ]
1
2021-02-07T06:35:24.000Z
2021-02-07T06:35:24.000Z
test/unit/http.py
geyslan/unit
6703b68ed00e7cc8132c0aaf3049ed30889de8a8
[ "Apache-2.0" ]
null
null
null
import binascii import io import json import os import re import select import socket import pytest from unit.option import option class TestHTTP: def http(self, start_str, **kwargs): sock_type = kwargs.get('sock_type', 'ipv4') port = kwargs.get('port', 7080) url = kwargs.get('url', '/') ...
27.520776
79
0.49693
797b76b7370d4dbca41815db5559b7f655f2dbc4
4,183
py
Python
cockatoo/sim.py
mortonjt/cockatoo
f99634b39daf885be8dd12f098174eca340864fe
[ "BSD-3-Clause" ]
3
2022-02-16T21:16:44.000Z
2022-02-28T15:28:06.000Z
cockatoo/sim.py
mortonjt/cockatoo
f99634b39daf885be8dd12f098174eca340864fe
[ "BSD-3-Clause" ]
1
2022-02-28T15:26:59.000Z
2022-02-28T15:26:59.000Z
cockatoo/sim.py
mortonjt/cockatoo
f99634b39daf885be8dd12f098174eca340864fe
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from skbio.stats.composition import closure from gneiss.cluster import random_linkage from gneiss.balances import _balance_basis from scipy.stats import ortho_group def multinomial_bioms(k, D, N, M, min_sv=0.11, max_sv=5.0, sigma_sq=0.1): """ Simulates biom tables from multinomial. Paramet...
27.519737
73
0.580684
797b77599d7ce53c6591841ccb4975f5eabb1c7e
1,517
py
Python
markup.py
ak212/python-basketball-rss
cf919082e30a43855f13c6dbadf8575552003f1d
[ "MIT" ]
1
2015-12-22T18:37:33.000Z
2015-12-22T18:37:33.000Z
markup.py
ak212/python-basketball-rss
cf919082e30a43855f13c6dbadf8575552003f1d
[ "MIT" ]
null
null
null
markup.py
ak212/python-basketball-rss
cf919082e30a43855f13c6dbadf8575552003f1d
[ "MIT" ]
null
null
null
import os __author__ = "Aaron Koeppel" __version__ = 1.0 def xml_markup(games, team_ab, team_name, team_record): '''Markup the RSS feed using the data obtained. :param games: list of games that the team played this season :type games: list of GameData :param team_ab: the team's abbreviated name :type...
32.978261
79
0.625577
797b77aef3fe31cca43f4531cd63caa92fa117dc
5,098
py
Python
examples/text_to_sql/RAT-SQL/text2sql/models/sql_decoder/train_tree_traversal.py
JeremyZhao1998/PaddleNLP
5a34684a7f0c8a186043fed386be4b62cb85fb15
[ "Apache-2.0" ]
7,091
2021-02-05T13:56:25.000Z
2022-03-31T11:42:50.000Z
examples/text_to_sql/RAT-SQL/text2sql/models/sql_decoder/train_tree_traversal.py
xihuanafeng/PaddleNLP
14c3209118b2cadcce9a8f66b760c9cddb3a02ad
[ "Apache-2.0" ]
844
2021-02-10T01:09:29.000Z
2022-03-31T12:12:58.000Z
examples/text_to_sql/RAT-SQL/text2sql/models/sql_decoder/train_tree_traversal.py
xihuanafeng/PaddleNLP
14c3209118b2cadcce9a8f66b760c9cddb3a02ad
[ "Apache-2.0" ]
1,035
2021-02-05T14:26:48.000Z
2022-03-31T11:42:57.000Z
# Copyright (c) 2021 PaddlePaddle 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 app...
36.156028
80
0.609651
797b79fe23c77a371ed07e84a5f4bbe3b0a2b38b
1,353
py
Python
network.py
keram88/ember
e76431b25bc133e07ff1ba02bf368e760d121a7b
[ "Unlicense" ]
null
null
null
network.py
keram88/ember
e76431b25bc133e07ff1ba02bf368e760d121a7b
[ "Unlicense" ]
null
null
null
network.py
keram88/ember
e76431b25bc133e07ff1ba02bf368e760d121a7b
[ "Unlicense" ]
null
null
null
import socket def parse_url(url): if url.startswith("http://"): url = url[len('http://'):] hostport, pathfragment = url.split("/", 1) if "/" in url else (url, "") host, port = hostport.rsplit(":", 1) if ":" in hostport else (hostport, "80") path, fragment = ("/" + pathfragment).rsplit("#", 1) i...
39.794118
111
0.582409
797b7b55a9092b85fd3693179748a91066546514
13,755
py
Python
test/functional/wallet_bumpfee.py
mulecore/mulecoin
e52131742938ae433463f32680837981a5cedc0f
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
mulecore/mulecoin
e52131742938ae433463f32680837981a5cedc0f
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
mulecore/mulecoin
e52131742938ae433463f32680837981a5cedc0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Copyright (c) 2017-2019 The Raven Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test the bumpfee RPC. Verifies that the bumpfee RPC c...
45.39604
168
0.729407
797b7bda8fb13d2d92ed73ba612c086ada1bd712
1,200
py
Python
tests/tracing_tool/dynamic/test_fortran_cmake/test_fortran_cmake.py
ganeshutah/FPChecker
53a471429762ace13f69733cb2f8b7227fc15b9f
[ "Apache-2.0" ]
19
2019-09-28T16:15:45.000Z
2022-02-15T15:11:28.000Z
tests/tracing_tool/dynamic/test_fortran_cmake/test_fortran_cmake.py
tanmaytirpankar/FPChecker
d3fe4bd9489c5705df58a67dbbc388ac1ebf56bf
[ "Apache-2.0" ]
16
2020-02-01T18:43:00.000Z
2021-12-22T14:47:39.000Z
tests/tracing_tool/dynamic/test_fortran_cmake/test_fortran_cmake.py
tanmaytirpankar/FPChecker
d3fe4bd9489c5705df58a67dbbc388ac1ebf56bf
[ "Apache-2.0" ]
5
2020-07-27T18:15:36.000Z
2021-11-01T18:43:34.000Z
#!/usr/bin/env python import subprocess import os import sys sys.path.append("..") from .. import conftest TRACING_TOLL_PATH = conftest.FPCHECKER_PATH def setup_module(module): THIS_DIR = os.path.dirname(os.path.abspath(__file__)) os.chdir(THIS_DIR) def teardown_module(module): cmd = ["rm -rf build"] ...
21.818182
86
0.618333
797b7c05450ee6c4d299adff111ba88dcb535ede
1,405
py
Python
tests/aws/data/byline_test.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
3
2019-03-12T01:59:58.000Z
2020-09-12T07:27:42.000Z
tests/aws/data/byline_test.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
1
2018-04-20T07:58:38.000Z
2021-03-27T08:52:45.000Z
tests/aws/data/byline_test.py
south-coast-science/scs_core
81ad4010abb37ca935f3a31ac805639ef53b1bcf
[ "MIT" ]
4
2017-09-29T13:08:43.000Z
2019-10-09T09:13:58.000Z
#!/usr/bin/env python3 """ Created on 22 Oct 2020 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ import json from collections import OrderedDict from scs_core.data.json import JSONify from scs_core.aws.data.byline import Byline # --------------------------------------------------------------------...
23.416667
120
0.613523
797b7c36cf60a50614c097f7ab6ee151148a34e1
86
py
Python
schangelog/__init__.py
SPLURT-Station/Mal0-cogs
e730640022a2cbef275fc1b3a6e9eebd70904de8
[ "MIT" ]
null
null
null
schangelog/__init__.py
SPLURT-Station/Mal0-cogs
e730640022a2cbef275fc1b3a6e9eebd70904de8
[ "MIT" ]
null
null
null
schangelog/__init__.py
SPLURT-Station/Mal0-cogs
e730640022a2cbef275fc1b3a6e9eebd70904de8
[ "MIT" ]
null
null
null
from ._schangelog import SChangelog def setup(bot): bot.add_cog(SChangelog(bot))
17.2
35
0.755814
797b7c65749eb90b20eae1987055581a7960a86b
72
py
Python
service/__init__.py
choobinejad/sanic-baseline
76a5f7d06762962ad54cd3c911ba0add61784249
[ "Apache-2.0" ]
3
2020-05-27T07:21:57.000Z
2022-03-11T18:13:39.000Z
service/__init__.py
choobinejad/sanic-baseline
76a5f7d06762962ad54cd3c911ba0add61784249
[ "Apache-2.0" ]
null
null
null
service/__init__.py
choobinejad/sanic-baseline
76a5f7d06762962ad54cd3c911ba0add61784249
[ "Apache-2.0" ]
null
null
null
from service.config import Config app_conf = Config() app_conf.setup()
14.4
33
0.777778
797b7cc8e099e58f2bae69fde0bb17be5625e536
18,795
py
Python
lib-python/2.7/test/test_syntax.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
lib-python/2.7/test/test_syntax.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
lib-python/2.7/test/test_syntax.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
30
2018-08-20T03:16:34.000Z
2022-01-12T17:39:22.000Z
"""This module tests SyntaxErrors. Here's an example of the sort of thing that is tested. >>> def f(x): ... global x Traceback (most recent call last): File "<doctest test.test_syntax[0]>", line 1 SyntaxError: name 'x' is local and global The tests are all raise SyntaxErrors. They were created by checking eac...
32.630208
76
0.589997
797b7f62984cb2992bf762333dbe93a8ad5521b0
216
py
Python
paypro/paypro/doctype/additional_salary/test_additional_salary.py
barathprathosh/PayPRO
4963bf9983a13a3953dad033eb1193000e9af251
[ "MIT" ]
null
null
null
paypro/paypro/doctype/additional_salary/test_additional_salary.py
barathprathosh/PayPRO
4963bf9983a13a3953dad033eb1193000e9af251
[ "MIT" ]
null
null
null
paypro/paypro/doctype/additional_salary/test_additional_salary.py
barathprathosh/PayPRO
4963bf9983a13a3953dad033eb1193000e9af251
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Teampro and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestAdditionalSalary(unittest.TestCase): pass
19.636364
46
0.768519
797b8005ff56417ab940fe509ab26f1e069a3489
22,402
py
Python
tsmrest.py
tomd77/TsmRest
326166339ab5cd072f03fb93a67caabbd62a7c3e
[ "MIT" ]
null
null
null
tsmrest.py
tomd77/TsmRest
326166339ab5cd072f03fb93a67caabbd62a7c3e
[ "MIT" ]
null
null
null
tsmrest.py
tomd77/TsmRest
326166339ab5cd072f03fb93a67caabbd62a7c3e
[ "MIT" ]
null
null
null
import json import ssl import base64 from urllib.request import urlopen, Request import urllib.error import socket import csv import os.path import datetime from pprint import pprint # 3rd Party Modules from openpyxl import Workbook, load_workbook # Project specific functions from extra_functions import create_xls_st...
44.714571
120
0.535711
797b8144b3b6c0aad1c82ad7686536e0931ecde6
2,157
py
Python
plonk/utils/math.py
joshcalcino/plonk
1372d8b866483e5d19bea340e9b21c766fdafe8c
[ "MIT" ]
30
2019-06-24T23:26:55.000Z
2021-12-21T00:28:33.000Z
plonk/utils/math.py
joshcalcino/plonk
1372d8b866483e5d19bea340e9b21c766fdafe8c
[ "MIT" ]
32
2019-08-26T06:33:44.000Z
2022-03-20T21:04:44.000Z
plonk/utils/math.py
joshcalcino/plonk
1372d8b866483e5d19bea340e9b21c766fdafe8c
[ "MIT" ]
13
2019-07-23T04:08:12.000Z
2021-03-23T15:21:46.000Z
"""Utils for math.""" import numpy as np from numpy import ndarray from .._units import Quantity def cross(x, y, **kwargs): """Cross product. Parameters ---------- x, y The two arrays (N, 3) to take the cross product of. Can be ndarray or pint Quantity. **kwargs Keyword ...
21.787879
85
0.561892
797b81a898fd7171ed04295b75e4bf7bb09e1810
19,403
py
Python
shap/plots/_force.py
ibobak/shap
4d8d55b5e3fca7eac0f0c983ed6fc66d4b45625b
[ "MIT" ]
16,097
2016-12-01T20:01:26.000Z
2022-03-31T20:27:40.000Z
shap/plots/_force.py
ibobak/shap
4d8d55b5e3fca7eac0f0c983ed6fc66d4b45625b
[ "MIT" ]
2,217
2017-09-18T20:06:45.000Z
2022-03-31T21:00:25.000Z
shap/plots/_force.py
ibobak/shap
4d8d55b5e3fca7eac0f0c983ed6fc66d4b45625b
[ "MIT" ]
2,634
2017-06-29T21:30:46.000Z
2022-03-30T07:30:36.000Z
""" Visualize the SHAP values with additive force style layouts. """ from __future__ import division, unicode_literals import os import io import string import json import random try: from IPython.core.display import display, HTML from IPython import get_ipython have_ipython = True except ImportError: ...
39.597959
153
0.620316
797b82968ae32f731a6e99ff26125af53ba33ccb
341
py
Python
arxiv/feedback/routes.py
arXiv/arxiv-feedback
68b1e30fb61792ddc68ce936d77a548b26275ae2
[ "MIT" ]
2
2020-06-29T15:06:52.000Z
2021-11-05T12:28:03.000Z
arxiv/feedback/routes.py
arXiv/arxiv-feedback
68b1e30fb61792ddc68ce936d77a548b26275ae2
[ "MIT" ]
6
2019-07-18T15:27:05.000Z
2021-06-02T00:14:39.000Z
arxiv/feedback/routes.py
arXiv/arxiv-feedback
68b1e30fb61792ddc68ce936d77a548b26275ae2
[ "MIT" ]
2
2020-12-06T16:28:37.000Z
2021-11-05T12:27:53.000Z
"""Provides routes for the feedback add-on.""" from flask import Blueprint, Response, make_response, render_template ui = Blueprint('feedback', __name__, url_prefix='/feedback') @ui.route('/contribute') def contribute() -> Response: """Render the 'Help Improve This' landing page.""" raise NotImplementedErr...
24.357143
69
0.721408
797b83909314a860627d0c40b246ea3a846c46c8
10,867
py
Python
pirates/piratesbase/UserFunnel.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
null
null
null
pirates/piratesbase/UserFunnel.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
null
null
null
pirates/piratesbase/UserFunnel.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
null
null
null
import requests import json import hmac import base64 import hashlib import sys import time from datetime import datetime import calendar import uuid import gzip import platform from StringIO import StringIO from panda3d.core import PandaSystem from direct.directnotify.DirectNotifyGlobal import directNotify from direct...
33.959375
110
0.614705
797b83c4395d6b6acbe9c60dbd945372be2f9477
718
py
Python
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
2
2018-09-22T18:28:33.000Z
2021-08-28T17:44:30.000Z
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
null
null
null
FaceRecogEngine/recognition/urls.py
thecodacus/FaceAuth
dca6d6438426df48cd7e9c9693fa450d817f7d61
[ "Apache-2.0" ]
1
2019-06-05T15:34:59.000Z
2019-06-05T15:34:59.000Z
from django.contrib import admin from django.urls import path, include from . import views from django.conf import settings app_name='recognition' urlpatterns = [ path('', views.Home.as_view(), name='home'), path('settings/', views.Home.as_view(), name='settings'), path('login/', views.UserLoginView.as_view()...
34.190476
86
0.71727
797b83ee1d3a9204a9103121a5b33f9cd1a27f96
9,395
py
Python
rabbitmq/tls-gen/tls_gen/gen.py
TonyDMorris/rabbitmq-golang-messaging-example
485eab294ad34f24648637ce42321267397c19ac
[ "MIT" ]
null
null
null
rabbitmq/tls-gen/tls_gen/gen.py
TonyDMorris/rabbitmq-golang-messaging-example
485eab294ad34f24648637ce42321267397c19ac
[ "MIT" ]
null
null
null
rabbitmq/tls-gen/tls_gen/gen.py
TonyDMorris/rabbitmq-golang-messaging-example
485eab294ad34f24648637ce42321267397c19ac
[ "MIT" ]
null
null
null
import os import shutil import stat import tempfile from os import path from subprocess import run from .paths import * # # General # generated_cnf_file = None def get_openssl_cnf_path(opts): global generated_cnf_file try: if path.exists(generated_cnf_file): return generated_cnf_file ...
35.996169
108
0.593294