hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
4361fce279ba39aaf412d8930d6f84378c2aa668
460
py
Python
python/modules_packages_libraries/models/animal_kigdom/animals.py
aloa04/practice
0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f
[ "Apache-2.0" ]
null
null
null
python/modules_packages_libraries/models/animal_kigdom/animals.py
aloa04/practice
0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f
[ "Apache-2.0" ]
null
null
null
python/modules_packages_libraries/models/animal_kigdom/animals.py
aloa04/practice
0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f
[ "Apache-2.0" ]
null
null
null
class Animal(): edad:int patas:int ruido:str nombre: str kgComida: float = 0 def __init__(self, edad, patas, ruido, nombre): self.edad =edad self.patas = patas self.ruido = ruido self.nombre = nombre def comer(self, alimento): self.kgComida += alimento...
24.210526
57
0.595652
460
1
0
0
0
0
0
0
27
0.058696
43626cff0461fc1edbacac7b7a76a2f308ada971
5,016
py
Python
tensortools/optimize/mncp_hals.py
klmcguir/tensortools
38262f5bad9d3171286e34e5f15d196752dda939
[ "MIT" ]
null
null
null
tensortools/optimize/mncp_hals.py
klmcguir/tensortools
38262f5bad9d3171286e34e5f15d196752dda939
[ "MIT" ]
null
null
null
tensortools/optimize/mncp_hals.py
klmcguir/tensortools
38262f5bad9d3171286e34e5f15d196752dda939
[ "MIT" ]
null
null
null
""" Nonnegative CP decomposition by Hierarchical alternating least squares (HALS). With support for missing data. """ import numpy as np import scipy as sci from scipy import linalg from tensortools.operations import unfold, khatri_rao from tensortools.tensors import KTensor from tensortools.optimize import FitResult...
40.780488
94
0.60626
0
0
0
0
0
0
0
0
3,725
0.742624
4363164b554bb6ade5f87250305647778400993f
18,079
py
Python
raredecay/tools/data_tools.py
jonas-eschle/raredecay
6285f91e0819d01c80125f50b24e60ee5353ae2e
[ "Apache-2.0" ]
7
2016-11-19T17:28:07.000Z
2020-12-29T19:49:37.000Z
raredecay/tools/data_tools.py
mayou36/raredecay
5b319ada66ebe54f81e216efad81fc9f06237a30
[ "Apache-2.0" ]
23
2017-03-13T19:13:58.000Z
2021-05-30T21:48:50.000Z
raredecay/tools/data_tools.py
jonas-eschle/raredecay
6285f91e0819d01c80125f50b24e60ee5353ae2e
[ "Apache-2.0" ]
5
2016-12-17T19:24:13.000Z
2021-05-31T14:32:34.000Z
""" @author: Jonas Eschle "Mayou36" DEPRECEATED! USE OTHER MODULES LIKE rd.data, rd.ml, rd.reweight, rd.score and rd.stat DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED! Contains several tools to convert, load, save and plot data """ import warnings import os import copy import pandas as pd import...
34.969052
117
0.636872
0
0
0
0
0
0
0
0
9,136
0.505338
4363297eb771b020c864cdfbc69be70aff1727b6
2,052
py
Python
toontown/coghq/boardbothq/BoardOfficeManagerAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/coghq/boardbothq/BoardOfficeManagerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/boardbothq/BoardOfficeManagerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify import DirectNotifyGlobal import DistributedBoardOfficeAI from toontown.toonbase import ToontownGlobals from toontown.coghq.boardbothq import BoardOfficeLayout from direct.showbase import DirectObject import random class BoardOfficeManagerAI(DirectObject.DirectObject): notify = DirectNotif...
41.04
141
0.639376
1,810
0.882066
0
0
0
0
0
0
160
0.077973
436393af32e8421a7a3401c8eb82314850e79873
2,144
py
Python
ansiblemetrics/utils.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
1
2020-04-24T16:09:14.000Z
2020-04-24T16:09:14.000Z
ansiblemetrics/utils.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
ansiblemetrics/utils.py
radon-h2020/AnsibleMetrics
8a8e27d9b54fc1578d00526c8663184a2e686cb2
[ "Apache-2.0" ]
null
null
null
from typing import Union def key_value_list(d: Union[dict, list], key=None) -> list: """ This function iterates over all the key-value pairs of a dictionary and returns a list of tuple (key, value) where the key contain only primitive value (i.e., no list or dict), e.g., string, number etc. d -- a diction...
25.831325
206
0.564366
0
0
0
0
0
0
0
0
521
0.243004
4364633db5685f14b086dbb59f77e9958e56ad15
2,913
py
Python
yampy/apis/groups.py
Kunal-Shah-Bose/yam-python
1d24b4b5c4bfb512804183efe741a2f7a75889e5
[ "Apache-2.0" ]
null
null
null
yampy/apis/groups.py
Kunal-Shah-Bose/yam-python
1d24b4b5c4bfb512804183efe741a2f7a75889e5
[ "Apache-2.0" ]
null
null
null
yampy/apis/groups.py
Kunal-Shah-Bose/yam-python
1d24b4b5c4bfb512804183efe741a2f7a75889e5
[ "Apache-2.0" ]
1
2019-01-10T18:50:35.000Z
2019-01-10T18:50:35.000Z
from yampy.apis.utils import ArgumentConverter, none_filter, stringify_booleans from yampy.models import extract_id class GroupsAPI(object): """ Provides an interface for accessing the groups related endpoints of the Yammer API. You should not instantiate this class directly; use the :meth:`yampy.Yam...
28.281553
79
0.599725
2,794
0.959149
0
0
0
0
0
0
1,288
0.442156
4364ccde24cc2af35ff42479b35b005f175a3209
24,502
py
Python
phy/gui/actions.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
118
2019-06-03T06:19:43.000Z
2022-03-25T00:05:26.000Z
phy/gui/actions.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
761
2015-01-08T11:17:41.000Z
2019-05-27T16:12:08.000Z
phy/gui/actions.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
70
2019-05-30T11:05:26.000Z
2022-03-30T11:51:23.000Z
# -*- coding: utf-8 -*- """Actions and snippets.""" # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import inspect from functools import partial, wraps import logging import re import sys import...
35.305476
99
0.587952
16,785
0.685046
0
0
3,502
0.142927
0
0
10,097
0.412089
436637ae94348f41cc38697c102e03126553cd4f
807
py
Python
PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
PP4E-Examples-1.4/Examples/PP4E/Tools/cleanpyc.py
AngelLiang/PP4E
3a7f63b366e1e4700b4d2524884696999a87ba9d
[ "MIT" ]
null
null
null
""" delete all .pyc bytecode files in a directory tree: use the command line arg as root if given, else current working dir """ import os, sys findonly = False rootdir = os.getcwd() if len(sys.argv) == 1 else sys.argv[1] found = removed = 0 for (thisDirLevel, subsHere, filesHere) in os.walk(rootdir): for filename...
31.038462
65
0.553903
0
0
0
0
0
0
0
0
172
0.213135
436697d1038207224e723ad6677937d00c16b249
207
py
Python
apps.py
louxfaure/sudoc_recouv
da3f094a0a9554c0b3911a365d1feea6d2758fec
[ "MIT" ]
1
2022-02-28T13:00:48.000Z
2022-02-28T13:00:48.000Z
apps.py
louxfaure/sudoc_recouv
da3f094a0a9554c0b3911a365d1feea6d2758fec
[ "MIT" ]
null
null
null
apps.py
louxfaure/sudoc_recouv
da3f094a0a9554c0b3911a365d1feea6d2758fec
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SudocRecouvConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'sudoc_recouv' verbose_name = 'Analyses de recouvrement SUDOC'
25.875
56
0.768116
170
0.821256
0
0
0
0
0
0
77
0.371981
4366c0b4bfc3d82921cf8860654a9fdf8156bfc0
893
py
Python
src/states.py
amancevice/terraform-aws-slack-interactive-components
819a9b6a408b36cd1a0100859801bc47c437fdc8
[ "MIT" ]
24
2018-10-17T04:42:56.000Z
2022-03-03T10:27:56.000Z
src/states.py
amancevice/terraform-aws-slack-interactive-components
819a9b6a408b36cd1a0100859801bc47c437fdc8
[ "MIT" ]
5
2019-03-01T17:14:48.000Z
2022-01-21T23:11:39.000Z
src/states.py
amancevice/terraform-aws-slack-interactive-components
819a9b6a408b36cd1a0100859801bc47c437fdc8
[ "MIT" ]
11
2019-03-01T15:16:24.000Z
2022-03-03T10:27:59.000Z
import boto3 from logger import logger class States: def __init__(self, boto3_session=None): self.boto3_session = boto3_session or boto3.Session() self.client = self.boto3_session.client('stepfunctions') def fail(self, task_token, error, cause): params = dict(taskToken=task_token, er...
35.72
69
0.693169
850
0.951848
0
0
0
0
0
0
83
0.092945
43670f7c99a2ebd5fc17181669e6be4597ca4939
25,401
py
Python
apps/controllerx/cx_core/type/light_controller.py
clach04/controllerx
b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe
[ "MIT" ]
null
null
null
apps/controllerx/cx_core/type/light_controller.py
clach04/controllerx
b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe
[ "MIT" ]
null
null
null
apps/controllerx/cx_core/type/light_controller.py
clach04/controllerx
b5cd92d3371c352c50f7d5ba7dae4538d7c15dfe
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional, Type, Union from cx_const import Light, PredefinedActionsMapping from cx_core.color_helper import get_color_wheel from cx_core.controller import action from cx_core.feature_support.light import LightSupport from cx_core.integration import EventData from cx_core.integration.decon...
37.686944
117
0.565332
24,228
0.953671
0
0
4,339
0.170793
13,258
0.521866
3,682
0.144932
4367a493fbe503c8a8ff6c69a39f88b75c5407aa
125
py
Python
kts/core/types.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/core/types.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/core/types.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
from typing import Union import pandas as pd from kts.core.frame import KTSFrame AnyFrame = Union[pd.DataFrame, KTSFrame]
15.625
40
0.792
0
0
0
0
0
0
0
0
0
0
4368cab14b8dd0a73f5639ed6a1c9ef3a5f4c07f
354
py
Python
krispy/mod_user/models.py
jlaura/krispy
b1b2bf8a3e315608152c7dad15d384d0669f5e27
[ "0BSD" ]
2
2016-03-31T05:35:28.000Z
2017-04-12T00:11:59.000Z
krispy/mod_user/models.py
jlaura/krispy
b1b2bf8a3e315608152c7dad15d384d0669f5e27
[ "0BSD" ]
null
null
null
krispy/mod_user/models.py
jlaura/krispy
b1b2bf8a3e315608152c7dad15d384d0669f5e27
[ "0BSD" ]
null
null
null
from app import db from flask.ext.login import UserMixin class User(UserMixin, db.Model): __tablename__ = 'oauth2users' id = db.Column(db.Integer, primary_key=True) social_id = db.Column(db.String(64), nullable=False, unique=True) nickname = db.Column(db.String(64), nullable=False) email = db.Colum...
29.5
69
0.717514
293
0.827684
0
0
0
0
0
0
13
0.036723
4369ad9700348a9af2bc92b402bcac16112c9914
16,746
py
Python
blog_app/blog/views.py
flxj/Django_blog
01eb12553335115fee5faecafe8cacf2f0615135
[ "MIT" ]
1
2019-03-27T02:24:22.000Z
2019-03-27T02:24:22.000Z
blog_app/blog/views.py
flxj/Django_blog
01eb12553335115fee5faecafe8cacf2f0615135
[ "MIT" ]
null
null
null
blog_app/blog/views.py
flxj/Django_blog
01eb12553335115fee5faecafe8cacf2f0615135
[ "MIT" ]
null
null
null
import markdown from comments.forms import CommentForm,BookCommentForm,MovieCommentForm from django.shortcuts import render, get_object_or_404 from.models import Post,Category,Tag, Book,Movie #from django.http import HttpResponse from django.views.generic import ListView, DetailView from django.utils.text import slugif...
33.967546
96
0.582706
17,189
0.861863
0
0
0
0
0
0
8,477
0.42504
436a1ebb3d99a1475a443393df66a840b227b6bf
4,916
py
Python
src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
1
2019-10-01T10:29:15.000Z
2019-10-01T10:29:15.000Z
src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
3
2019-07-12T22:10:38.000Z
2019-07-12T22:10:49.000Z
src/command_modules/azure-cli-security/azure/cli/command_modules/security/_params.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
1
2019-06-21T05:08:09.000Z
2019-06-21T05:08:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
47.728155
198
0.621237
0
0
0
0
0
0
0
0
1,781
0.362286
436a24c432c8bd3a3066c5adcc757a189d209bf5
332
py
Python
utils/path_utils.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
1
2020-08-03T07:54:59.000Z
2020-08-03T07:54:59.000Z
utils/path_utils.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
null
null
null
utils/path_utils.py
kuyu12/pygame_fight_game
3bbc286b9f33c6d6d9db9bea21f9b7af15247df5
[ "MIT" ]
null
null
null
import sys IMAGES_PATH = sys.path[1] + "/Images" BACKGROUND_IMAGES_PATH = IMAGES_PATH + '/background' USER_INFO_BACKGROUND_PATH = BACKGROUND_IMAGES_PATH+"/blue_background.jpg" SPRINT_IMAGE_PATH = IMAGES_PATH + '/sprite' PROFILE_IMAGES_PATH = IMAGES_PATH + '/profile' CONFIGURATION_FILES_PATH = sys.path[1] + "/configur...
36.888889
73
0.795181
0
0
0
0
0
0
0
0
85
0.256024
436a53c20b8a7b3181b33290aeb94d9c5458f945
1,558
py
Python
tests/models/test_transformers.py
Alicegaz/torchok
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
[ "Apache-2.0" ]
8
2021-10-12T05:39:20.000Z
2022-03-31T10:55:01.000Z
tests/models/test_transformers.py
Alicegaz/torchok
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
[ "Apache-2.0" ]
1
2022-03-30T19:23:42.000Z
2022-03-30T19:23:42.000Z
tests/models/test_transformers.py
Alicegaz/torchok
7b8f95df466a25b1ad8ee93bed1a3c7516440cf4
[ "Apache-2.0" ]
5
2021-11-17T07:38:28.000Z
2022-01-31T10:46:36.000Z
import unittest import torch from parameterized import parameterized from src.constructor import create_backbone from src.models.backbones.utils import list_models from .test_segmentation import example_backbones def inp(bsize, in_ch, w, h): return torch.ones(bsize, in_ch, w, h) class TestBackboneCorrectness(...
38.95
99
0.717587
1,267
0.813222
0
0
1,086
0.697047
0
0
63
0.040436
436c11b07a0ae268fa5c1da96fe20213b0b714a7
3,501
py
Python
aiogram/types/inline_query.py
SvineruS/aiogram
7892edf45302fa195544430ac5db11dcbcbf7ae6
[ "MIT" ]
1
2021-01-10T18:04:25.000Z
2021-01-10T18:04:25.000Z
aiogram/types/inline_query.py
SvineruS/aiogram
7892edf45302fa195544430ac5db11dcbcbf7ae6
[ "MIT" ]
5
2021-02-13T14:30:27.000Z
2021-02-13T17:27:58.000Z
aiogram/types/inline_query.py
SvineruS/aiogram
7892edf45302fa195544430ac5db11dcbcbf7ae6
[ "MIT" ]
1
2022-02-10T14:57:27.000Z
2022-02-10T14:57:27.000Z
import typing from . import base from . import fields from .inline_query_result import InlineQueryResult from .location import Location from .user import User class InlineQuery(base.TelegramObject): """ This object represents an incoming inline query. When the user sends an empty query, your bot could r...
52.253731
118
0.625821
3,342
0.953495
0
0
0
0
2,848
0.812553
2,085
0.594864
436d01399c03b77d98f4cf23e9025181a7999308
3,767
py
Python
app/app.py
shaswat01/Disaster_Response_ETL
c441514fb5231d193cd4b29afad00fe0f3513562
[ "MIT" ]
null
null
null
app/app.py
shaswat01/Disaster_Response_ETL
c441514fb5231d193cd4b29afad00fe0f3513562
[ "MIT" ]
null
null
null
app/app.py
shaswat01/Disaster_Response_ETL
c441514fb5231d193cd4b29afad00fe0f3513562
[ "MIT" ]
null
null
null
import nltk import json import plotly import pandas as pd import plotly.graph_objects as go from nltk.stem import WordNetLemmatizer from nltk.tokenize import word_tokenize nltk.download(['punkt','wordnet']) from flask import Flask from flask import render_template, request, jsonify from plotly.graph_objs import Bar, H...
25.281879
131
0.528537
0
0
0
0
2,663
0.706929
0
0
1,035
0.274754
436d1a37515679503cc50623874a3539d00946be
4,659
py
Python
tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
1
2019-09-22T01:05:07.000Z
2019-09-22T01:05:07.000Z
tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
58
2020-11-06T12:13:45.000Z
2022-03-28T13:20:11.000Z
tools/mo/openvino/tools/mo/front/mxnet/mx_reshape_reverse.py
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
2
2019-09-20T01:33:37.000Z
2019-09-20T08:42:11.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.mxnet.mx_reshape_to_reshape import MXReshapeToReshape from openvino.tools.mo.ops.Reverse import Reverse from openvino.tools.mo.ops.mxreshape import MXReshape from openvino.tools.mo.front.c...
59.730769
127
0.69457
3,885
0.83387
0
0
0
0
0
0
639
0.137154
436dafbd787a4e7854f10318324bcf64277e6432
6,480
py
Python
Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py
MattMarti/Lambda-Trajectory-Sim
4155f103120bd49221776cc3b825b104f36817f2
[ "MIT" ]
null
null
null
Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py
MattMarti/Lambda-Trajectory-Sim
4155f103120bd49221776cc3b825b104f36817f2
[ "MIT" ]
null
null
null
Python/Simulation/Numerical_Methods/test_cubic_spline_solve.py
MattMarti/Lambda-Trajectory-Sim
4155f103120bd49221776cc3b825b104f36817f2
[ "MIT" ]
null
null
null
import unittest; import numpy as np; import scipy as sp; from cubic_spline_solve import cubic_spline_solve; from cubic_spline_fun import cubic_spline_fun; class Test_cubic_spline_solve(unittest.TestCase): ''' Test_cubicsplineSolve Test case for the cubic spline solver function. This function just solv...
37.241379
78
0.564352
6,322
0.975617
0
0
0
0
0
0
1,426
0.220062
437021d671825e959375a0374106a655349dffb0
7,803
py
Python
PassWord.py
IQUBE-X/passGenerator
a56a5928c1e8ee503d2757ecf0ab4108a52ec677
[ "MIT" ]
1
2020-07-11T07:59:54.000Z
2020-07-11T07:59:54.000Z
PassWord.py
dhruvaS-hub/passGenerator
a56a5928c1e8ee503d2757ecf0ab4108a52ec677
[ "MIT" ]
null
null
null
PassWord.py
dhruvaS-hub/passGenerator
a56a5928c1e8ee503d2757ecf0ab4108a52ec677
[ "MIT" ]
1
2021-06-02T10:11:19.000Z
2021-06-02T10:11:19.000Z
# PassWord - The Safe Password Generator App! # importing the tkinter module for GUI from tkinter import * # importing the message box widget from tkinter from tkinter import messagebox # importing sqlite3 for database import sqlite3 # importing random for password generation import random # creatin...
32.648536
134
0.656927
0
0
0
0
0
0
0
0
3,386
0.433936
4370bea6e2a16934ad57aff4637712bbcfdb6bc4
331
py
Python
1805_number_of_different_integers_in_a_string.py
hotternative/leetcode
d0ec225abc2ada1398666641c7872f3eb889e7ed
[ "MIT" ]
null
null
null
1805_number_of_different_integers_in_a_string.py
hotternative/leetcode
d0ec225abc2ada1398666641c7872f3eb889e7ed
[ "MIT" ]
null
null
null
1805_number_of_different_integers_in_a_string.py
hotternative/leetcode
d0ec225abc2ada1398666641c7872f3eb889e7ed
[ "MIT" ]
null
null
null
from string import ascii_lowercase ts = 'a123bc34d8ef34' cur = [] res = set() for c in ts: if c in ascii_lowercase: if cur: s = ''.join(cur) res.add(int(s)) cur = [] else: cur.append(c) else: if cur: s = ''.join(cur) res.add(int(s)) pri...
13.24
34
0.480363
0
0
0
0
0
0
0
0
20
0.060423
4371e6643a58d749ad832f8647f0481df0293c7c
1,087
py
Python
app.py
ahmedriaz9908/memeapiiz
eef98f837f2ec83edc3dd004f19dcefda9b582a5
[ "MIT" ]
null
null
null
app.py
ahmedriaz9908/memeapiiz
eef98f837f2ec83edc3dd004f19dcefda9b582a5
[ "MIT" ]
null
null
null
app.py
ahmedriaz9908/memeapiiz
eef98f837f2ec83edc3dd004f19dcefda9b582a5
[ "MIT" ]
null
null
null
from flask import Flask, render_template, jsonify from reddit_handler import * app = Flask(__name__) meme_subreddits = ['izlam'] @app.route('/') def index(): return render_template('index.html') @app.route('/meme') def one_post(): sub = random.choice(meme_subreddits) re = get_posts(sub...
20.12963
84
0.601656
0
0
0
0
920
0.846366
0
0
132
0.121435
4372710c66361fa93707980328afe4826b15ed27
6,609
py
Python
10_compare_between_main_product_pages.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
10_compare_between_main_product_pages.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
10_compare_between_main_product_pages.py
e-davydenkova/SeleniumWebDriver_Training
e03cfbe4ea74ddc8f0c575d8fcaa3a6c7ccb7d0a
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver import re @pytest.fixture def driver(request): wd = webdriver.Chrome() wd.get("http://localhost/litecart/en/") request.addfinalizer(wd.quit) return wd # check that product names are identical on the main page and on product page def test_product_names(driv...
52.03937
125
0.733394
0
0
0
0
156
0.023604
0
0
3,264
0.493872
4372f137c065f7fda02b994b61b1b4bd3b7965e5
1,775
py
Python
pyrite/llvm.py
iahuang/pyrite
0db83aad6aa8f245edf13d393f65d408eb956c4d
[ "MIT" ]
null
null
null
pyrite/llvm.py
iahuang/pyrite
0db83aad6aa8f245edf13d393f65d408eb956c4d
[ "MIT" ]
1
2022-03-28T00:35:11.000Z
2022-03-29T21:17:06.000Z
pyrite/llvm.py
iahuang/pyrite
0db83aad6aa8f245edf13d393f65d408eb956c4d
[ "MIT" ]
null
null
null
import shutil from pyrite import fs from pyrite.command_line import run_command from pyrite.errors import UserError from pyrite.globals import Globals from os.path import join class LLVMInterface: _clang_path: str def __init__(self): self._clang_path = self._get_clang_path() def _get_clang_path(s...
29.583333
127
0.60507
1,597
0.899718
0
0
0
0
0
0
516
0.290704
43741937702bf1405a4a4845184d5f67e95b3dd1
526
py
Python
bag_recursive.py
eduardogerentklein/Algoritmos-Geneticos
499836ac4867240ee3777dcdd554081a480cb8c9
[ "MIT" ]
null
null
null
bag_recursive.py
eduardogerentklein/Algoritmos-Geneticos
499836ac4867240ee3777dcdd554081a480cb8c9
[ "MIT" ]
null
null
null
bag_recursive.py
eduardogerentklein/Algoritmos-Geneticos
499836ac4867240ee3777dcdd554081a480cb8c9
[ "MIT" ]
null
null
null
maxWeight = 30 value = [15, 7, 10, 5, 8, 17] weight = [15, 3, 2, 5, 9, 20] def bag(pos, selected): # calcula o total totalValue = 0 pesoTotal = 0 for i in selected: totalValue += value[i] pesoTotal += weight[i] if pesoTotal > maxWeight: return (0,0) if pos >= len(weight): return (totalValue, pesoT...
18.137931
41
0.629278
0
0
0
0
0
0
0
0
17
0.032319
437727aaebd2b60da03893cf1960a1dac044f4b8
14,215
py
Python
train.py
MEfeTiryaki/trpo
e1c7bc25165730afa60d9733555398e078a13e67
[ "MIT" ]
2
2020-03-26T23:36:41.000Z
2020-03-27T03:04:27.000Z
train.py
MEfeTiryaki/trpo
e1c7bc25165730afa60d9733555398e078a13e67
[ "MIT" ]
null
null
null
train.py
MEfeTiryaki/trpo
e1c7bc25165730afa60d9733555398e078a13e67
[ "MIT" ]
1
2020-03-27T03:04:28.000Z
2020-03-27T03:04:28.000Z
import argparse from itertools import count import signal import sys import os import time import numpy as np import gym import torch import torch.autograd as autograd from torch.autograd import Variable import scipy.optimize import matplotlib.pyplot as plt from value import Value from policy import Policy from ut...
38.838798
143
0.636722
0
0
0
0
0
0
0
0
3,984
0.280267
43785386d2679f8fabe7de8f8acd7359d1da2540
5,112
py
Python
task3/task3_xgb_cv.py
meck93/intro_ml
903710b13e9eed8b45fdbd9957c2fb49b2981f62
[ "MIT" ]
null
null
null
task3/task3_xgb_cv.py
meck93/intro_ml
903710b13e9eed8b45fdbd9957c2fb49b2981f62
[ "MIT" ]
null
null
null
task3/task3_xgb_cv.py
meck93/intro_ml
903710b13e9eed8b45fdbd9957c2fb49b2981f62
[ "MIT" ]
null
null
null
from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.feature_selection import f_classif, SelectKBest import numpy as np import pandas as pd import os mingw_path = 'C:\\Program Files\\mingw-w64\\x86_64-7.2.0-posix...
32.35443
150
0.714593
0
0
0
0
0
0
0
0
2,613
0.51115
4378f461808522c0661a502153858f383b5e6b02
1,369
py
Python
discovery-provider/src/queries/get_plays_metrics.py
atticwip/audius-protocol
9758e849fae01508fa1d27675741228b11533e6e
[ "Apache-2.0" ]
429
2019-08-14T01:34:07.000Z
2022-03-30T06:31:38.000Z
discovery-provider/src/queries/get_plays_metrics.py
SNOmad1/audius-protocol
3d5fc2bf688265eb529060f1f3234ef2b95ed231
[ "Apache-2.0" ]
998
2019-08-14T01:52:37.000Z
2022-03-31T23:17:22.000Z
discovery-provider/src/queries/get_plays_metrics.py
SNOmad1/audius-protocol
3d5fc2bf688265eb529060f1f3234ef2b95ed231
[ "Apache-2.0" ]
73
2019-10-04T04:24:16.000Z
2022-03-24T16:27:30.000Z
import logging import time from sqlalchemy import func, desc from src.models import Play from src.utils import db_session logger = logging.getLogger(__name__) def get_plays_metrics(args): """ Returns metrics for play counts Args: args: dict The parsed args from the request args.start_tim...
27.938776
82
0.646457
0
0
0
0
0
0
0
0
482
0.352082
437984a8785d9b1726c62d66ab94644c9b6578d8
5,275
py
Python
CAutomation/settings.py
Rich9rd/CAutomation
d1c1b963e806a216d4c825243c1c405336414413
[ "MIT" ]
null
null
null
CAutomation/settings.py
Rich9rd/CAutomation
d1c1b963e806a216d4c825243c1c405336414413
[ "MIT" ]
null
null
null
CAutomation/settings.py
Rich9rd/CAutomation
d1c1b963e806a216d4c825243c1c405336414413
[ "MIT" ]
null
null
null
""" Django settings for CAutomation project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pat...
27.473958
178
0.714123
0
0
0
0
0
0
0
0
3,628
0.687773
437c42fd9708572ca32db3dd04de75e0b264c088
1,361
py
Python
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2021-01-08T04:26:54.000Z
2022-02-04T22:22:27.000Z
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
null
null
null
calculators/credit_card_calculator.py
wanderindev/financial-calculator-backend
ad7e736c858298c240eb9af52fbadcb02c693968
[ "MIT" ]
2
2019-06-06T19:36:17.000Z
2020-05-20T12:37:08.000Z
from .calculator import Calculator # noinspection PyTypeChecker class CreditCardCalculator(Calculator): def __init__(self, **kwargs): super(CreditCardCalculator, self).__init__(**kwargs) self.cc_debt = self.get_float(kwargs.get("cc_debt", 0)) self.add_c = self.get_float(kwargs.ge...
30.244444
70
0.543718
1,289
0.947098
0
0
0
0
0
0
71
0.052168
437c6a6a6d5abf3db9e497007b852df839401638
2,075
py
Python
setup.py
phaustin/MyST-Parser
181e921cea2794f10ca612df6bf2a2057b66c372
[ "MIT" ]
null
null
null
setup.py
phaustin/MyST-Parser
181e921cea2794f10ca612df6bf2a2057b66c372
[ "MIT" ]
null
null
null
setup.py
phaustin/MyST-Parser
181e921cea2794f10ca612df6bf2a2057b66c372
[ "MIT" ]
null
null
null
"""myst-parser package setup.""" from importlib import import_module from setuptools import find_packages, setup setup( name="myst-parser", version=import_module("myst_parser").__version__, description=( "An extended commonmark compliant parser, " "with bridges to docutils & sphinx." ), lo...
37.727273
88
0.61012
0
0
0
0
0
0
0
0
1,263
0.608675
437d5b7a20ce44c03f3d4a4f70ef524faf474a1a
554
py
Python
python/tests/extractor/refmt.py
kho/cdec
d88186af251ecae60974b20395ce75807bfdda35
[ "BSD-3-Clause-LBNL", "Apache-2.0" ]
114
2015-01-11T05:41:03.000Z
2021-08-31T03:47:12.000Z
python/tests/extractor/refmt.py
kho/cdec
d88186af251ecae60974b20395ce75807bfdda35
[ "BSD-3-Clause-LBNL", "Apache-2.0" ]
29
2015-01-09T01:00:09.000Z
2019-09-25T06:04:02.000Z
python/tests/extractor/refmt.py
kho/cdec
d88186af251ecae60974b20395ce75807bfdda35
[ "BSD-3-Clause-LBNL", "Apache-2.0" ]
50
2015-02-13T13:48:39.000Z
2019-08-07T09:45:11.000Z
#!/usr/bin/env python import collections, sys lines = [] f = collections.defaultdict(int) fe = collections.defaultdict(lambda: collections.defaultdict(int)) for line in sys.stdin: tok = [x.strip() for x in line.split('|||')] count = int(tok[4]) f[tok[1]] += count fe[tok[1]][tok[2]] += count lines...
26.380952
66
0.590253
0
0
0
0
0
0
0
0
73
0.131769
437e1e0973bde8b1e251b37ffc137a684d4dc2b8
436
py
Python
blog/models.py
tomitokko/django-blog-with-astradb
236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f
[ "Apache-2.0" ]
3
2021-12-13T21:40:32.000Z
2022-03-28T08:08:36.000Z
blog/models.py
tomitokko/django-blog-with-astradb
236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f
[ "Apache-2.0" ]
null
null
null
blog/models.py
tomitokko/django-blog-with-astradb
236aaf625ceb854345b6d6bbdd6d17b81e0e3c4f
[ "Apache-2.0" ]
1
2022-02-11T20:49:08.000Z
2022-02-11T20:49:08.000Z
from django.db import models import uuid from datetime import datetime from cassandra.cqlengine import columns from django_cassandra_engine.models import DjangoCassandraModel # Create your models here. class PostModel(DjangoCassandraModel): id = columns.UUID(primary_key=True, default=uuid.uuid4) title = column...
36.333333
63
0.802752
233
0.534404
0
0
0
0
0
0
26
0.059633
43826b793ab889bf34bea8a88631da20426a6acb
3,880
py
Python
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
fedex/services/availability_commitment_service.py
miczone/python-fedex
1a17b45753b16b2551b0b8ba2c6aa65be8e73931
[ "BSD-3-Clause" ]
null
null
null
""" Service Availability and Commitment Module This package contains the shipping methods defined by Fedex's ValidationAvailabilityAndCommitmentService WSDL file. Each is encapsulated in a class for easy access. For more details on each, refer to the respective class's documentation. """ import datetime from ..base...
38.039216
111
0.643557
3,524
0.908247
0
0
0
0
0
0
1,975
0.509021
43844440dd179ab3f122498113b16b020a8f05b8
15,375
py
Python
xverse/transformer/_woe.py
gb-andreygsouza/XuniVerse
74f4b9112c32a8f1411ae0c5a6de906f8d2e895a
[ "MIT" ]
null
null
null
xverse/transformer/_woe.py
gb-andreygsouza/XuniVerse
74f4b9112c32a8f1411ae0c5a6de906f8d2e895a
[ "MIT" ]
null
null
null
xverse/transformer/_woe.py
gb-andreygsouza/XuniVerse
74f4b9112c32a8f1411ae0c5a6de906f8d2e895a
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.base import BaseEstimator, TransformerMixin import scipy.stats.stats as stats import pandas.core.algorithms as algos #from sklearn.utils.validation import check_is_fitted from sklearn.utils import check_array from ..transformer import MonotonicBinning pd.options.mode...
47.748447
117
0.625821
15,025
0.977236
0
0
0
0
0
0
7,535
0.490081
4385a715a45f63ba193550d4819fe3bbd3dc2013
7,908
py
Python
cupy/linalg/product.py
okapies/cupy
4e8394e5e0c4e420295cbc36819e8e0f7de90e9d
[ "MIT" ]
1
2021-10-04T21:57:09.000Z
2021-10-04T21:57:09.000Z
cupy/linalg/product.py
hephaex/cupy
5cf50a93bbdebe825337ed7996c464e84b1495ba
[ "MIT" ]
1
2019-08-05T09:36:13.000Z
2019-08-06T12:03:01.000Z
cupy/linalg/product.py
hephaex/cupy
5cf50a93bbdebe825337ed7996c464e84b1495ba
[ "MIT" ]
1
2022-03-24T13:19:55.000Z
2022-03-24T13:19:55.000Z
import numpy import six import cupy from cupy import core from cupy import internal from cupy.linalg.solve import inv from cupy.util import collections_abc matmul = core.matmul def dot(a, b, out=None): """Returns a dot product of two arrays. For arrays with more than one axis, it computes the dot product...
27.175258
79
0.592059
0
0
0
0
0
0
0
0
3,756
0.474962
4386319503aab2a6844b6ef0973d20403a850ff6
998
py
Python
fibo.py
aligoren/pyalgo
8aa58143d3301f70ed7189ca86ce0c7886f92e8c
[ "MIT" ]
22
2015-05-04T14:16:18.000Z
2021-05-12T07:21:14.000Z
fibo.py
aligoren/pyalgo
8aa58143d3301f70ed7189ca86ce0c7886f92e8c
[ "MIT" ]
null
null
null
fibo.py
aligoren/pyalgo
8aa58143d3301f70ed7189ca86ce0c7886f92e8c
[ "MIT" ]
12
2015-12-26T05:00:24.000Z
2022-02-28T05:03:13.000Z
def fibo(n): return n <= 1 or fibo(n-1) + fibo(n-2) def fibo_main(): for n in range(1,47): res = fibo(n) print("%s\t%s" % (n, res)) fibo_main() # profiling result for 47 numbers # profile: python -m profile fibo.py """ -1273940835 function calls (275 primitive calls) in 18966.707 seconds Ordered...
33.266667
80
0.607214
0
0
0
0
0
0
0
0
849
0.850701
4387549ca0c49a838b5d253586eefe17b1221bbf
9,050
py
Python
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
trt_util/common.py
yihui8776/TensorRT-DETR
1f32e9a2f98e26ec5b2376f9a2695193887430fb
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
42.890995
189
0.650276
292
0.032095
0
0
0
0
0
0
3,210
0.352825
4388c3265a288b272ad7c01a54a34148e2ab938e
2,506
py
Python
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
1
2020-03-18T11:40:56.000Z
2020-03-18T11:40:56.000Z
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
null
null
null
src/init.py
inpanel/inpanel-desktop
bff4a6accdf8a2976c722adc65f3fa2fe6650448
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8-*- import tkinter.messagebox from tkinter import Button, Label, Tk from utils.functions import set_window_center from utils.sqlite_helper import DBHelper from inpanel import App class InitWindow(Tk): """初始化窗口""" def __init__(self): Tk.__init__(self) ...
29.482353
83
0.57901
2,404
0.887085
0
0
0
0
0
0
552
0.20369
4389760f68989bd2ea1837354a093cc8ebd81958
7,406
py
Python
Toolkits/CMake/hunter/packages/sugar/python/sugar/sugar_warnings_wiki_table_generator.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
102
2015-01-28T20:51:35.000Z
2021-04-09T11:36:01.000Z
Toolkits/CMake/hunter/packages/sugar/python/sugar/sugar_warnings_wiki_table_generator.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
56
2015-01-01T19:22:34.000Z
2020-01-28T13:48:14.000Z
python/sugar/sugar_warnings_wiki_table_generator.py
idscan/sugar
0a64153710d039dc081698be83562cdf464c84dc
[ "BSD-2-Clause" ]
28
2015-03-05T19:47:08.000Z
2021-01-17T21:07:31.000Z
#!/usr/bin/env python3 # Copyright (c) 2014, Ruslan Baratov # All rights reserved. """ * Wiki table for `leathers` C++ project Expected format: ### Main table Name | Clang | GCC | MSVC | -----------------------------|----------|----------|------| static-ctor-not-thread-safe | *no* ...
27.634328
75
0.626924
0
0
0
0
0
0
0
0
1,334
0.180124
4389b795742ce4092fa55a8e1be92e8c6adf1239
2,945
py
Python
neutron/plugins/ofagent/agent/ports.py
armando-migliaccio/neutron-1
e31861c15bc73e65a7c22212df2a56f9e45aa0e4
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ofagent/agent/ports.py
armando-migliaccio/neutron-1
e31861c15bc73e65a7c22212df2a56f9e45aa0e4
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ofagent/agent/ports.py
armando-migliaccio/neutron-1
e31861c15bc73e65a7c22212df2a56f9e45aa0e4
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2014 VA Linux Systems Japan K.K. # Copyright (C) 2014 YAMAMOTO Takashi <yamamoto at valinux co jp> # 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...
33.089888
78
0.69202
667
0.226486
0
0
159
0.05399
0
0
1,803
0.612224
4389f5cc4e8592cb8c9777c1297c9ec965389eb9
1,947
py
Python
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
pdf/wechat/step.py
damaainan/html2md
0d241381e716d64bbcacad013c108857e815bb15
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- from zwechathihu.mypdf import GenPdf from db.mysqlite import simpleToolSql data=[{"url": "http://mp.weixin.qq.com/s?__biz=MzAxODQxMDM0Mw==&mid=2247484852&idx=1&sn=85b50b8b0470bb4897e517955f4e5002&chksm=9bd7fbbcaca072aa75e2a241064a403fde1e579d57ab846cd8537a54253ceb2c8b93cc3bf38e&scene=21#wechat_...
29.059701
257
0.634309
0
0
0
0
0
0
0
0
1,309
0.648984
438cea957a4d584b046abd2a8ee5c64fd504407c
1,168
py
Python
pipeline/validators/handlers.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
31
2021-07-28T13:06:11.000Z
2022-03-10T12:16:44.000Z
pipeline/validators/handlers.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
483
2021-07-29T03:17:44.000Z
2022-03-31T13:03:04.000Z
pipeline/validators/handlers.py
ZhuoZhuoCrayon/bk-nodeman
76cb71fcc971c2a0c2be161fcbd6b019d4a7a8ab
[ "MIT" ]
29
2021-07-28T13:06:21.000Z
2022-03-25T06:18:18.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
46.72
115
0.808219
0
0
0
0
243
0.20489
0
0
748
0.630691
438e9f1f07ffd73b9b9fd9f25c52f215537b1381
1,358
py
Python
NumPy/Array Basics/Random Shuffle/tests/test_task.py
jetbrains-academy/Python-Libraries-NumPy
7ce0f2d08f87502d5d97bbc6921f0566184d4ebb
[ "MIT" ]
null
null
null
NumPy/Array Basics/Random Shuffle/tests/test_task.py
jetbrains-academy/Python-Libraries-NumPy
7ce0f2d08f87502d5d97bbc6921f0566184d4ebb
[ "MIT" ]
4
2022-01-14T10:40:47.000Z
2022-02-14T13:01:13.000Z
NumPy/Array Basics/Random Shuffle/tests/test_task.py
jetbrains-academy/Python-Libraries-NumPy
7ce0f2d08f87502d5d97bbc6921f0566184d4ebb
[ "MIT" ]
null
null
null
import unittest import numpy as np from task import arr, permuted_2d, fully_random class TestCase(unittest.TestCase): def test_shape(self): self.assertEqual((5, 20), arr.shape, msg="Wrong shape of the array 'arr'.") self.assertEqual((5, 20), permuted_2d.shape, msg="Wrong shape of the array 'permu...
46.827586
115
0.635493
1,271
0.935935
0
0
0
0
0
0
560
0.412371
438f17abc40a90f956704fbac8d28a04a5de63c3
2,409
py
Python
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
resources/lib/channelui.py
lausitzer/plugin.video.mediathekview
7f2086240625b9b4f8d50af114f8f47654346ed1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The channel model UI module Copyright 2017-2018, Leo Moll and Dominik Schlösser SPDX-License-Identifier: MIT """ # pylint: disable=import-error import os import xbmcgui import xbmcplugin import resources.lib.mvutils as mvutils from resources.lib.channel import Channel class ChannelUI(C...
26.766667
74
0.584475
2,105
0.873444
0
0
0
0
0
0
824
0.341909
438f4c0d3f4d94dad9a093f3100bc1608c38e26a
6,838
py
Python
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
3
2019-01-06T08:00:11.000Z
2019-03-13T13:24:23.000Z
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
1
2018-11-27T17:16:57.000Z
2018-12-15T07:51:26.000Z
getconf.py
smk762/Dragonhound
7cbaed2779afec47fcbf2481d0dae61daa4c11da
[ "MIT" ]
2
2018-12-15T14:03:41.000Z
2019-01-26T14:22:07.000Z
#!/usr/bin/env python3 #Credit to @Alright for the RPCs import re import os import requests import json import platform # define function that fetchs rpc creds from .conf def def_credentials(chain): operating_system = platform.system() if operating_system == 'Darwin': ac_dir = os.environ['HOME'] + '/...
32.254717
90
0.620942
0
0
0
0
0
0
0
0
1,695
0.247879
43918d07649e9b1f2f91c59a28e777ac9f008513
46,128
py
Python
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
37
2015-04-21T15:33:53.000Z
2022-02-07T00:02:29.000Z
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
86
2015-02-01T22:26:02.000Z
2021-07-09T08:49:36.000Z
cwr/parser/decoder/dictionary.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
27
2015-01-26T16:01:09.000Z
2021-11-08T23:53:55.000Z
# -*- coding: utf-8 -*- from cwr.acknowledgement import AcknowledgementRecord, MessageRecord from cwr.agreement import AgreementRecord, AgreementTerritoryRecord, \ InterestedPartyForAgreementRecord from cwr.group import Group, GroupHeader, GroupTrailer from cwr.info import AdditionalRelatedInfoRecord from cwr.pars...
45.223529
96
0.560701
44,076
0.955494
0
0
0
0
0
0
7,157
0.155152
43924097832cb6270f8da8544d56269f7551b02e
6,651
py
Python
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
95
2018-10-31T12:12:01.000Z
2022-03-20T21:30:48.000Z
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
34
2018-10-22T11:01:15.000Z
2021-11-21T14:10:26.000Z
prebuilt/twrp_fonts.py
imranpopz/android_bootable_recovery-1
ec4512ad1e20f640b3dcd6faf8c04cae711e4f30
[ "Apache-2.0" ]
81
2018-10-23T08:37:20.000Z
2022-03-20T00:27:08.000Z
#!/usr/bin/env python # -*- coding: utf8 -*- import codecs,os,gzip,ctypes,ctypes.util,sys from struct import * from PIL import Image, ImageDraw, ImageFont # ====== Python script to convert TrueTypeFonts to TWRP's .dat format ====== # This script was originally made by https://github.com/suky for his chinese version of...
33.422111
106
0.537062
174
0.026161
0
0
0
0
0
0
2,560
0.384905
4392cd17a2182a5ad123dad587354133d5fbcf62
3,471
py
Python
open/users/serializers.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
105
2019-06-01T08:34:47.000Z
2022-03-15T11:48:36.000Z
open/users/serializers.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
111
2019-06-04T15:34:14.000Z
2022-03-12T21:03:20.000Z
open/users/serializers.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
26
2019-09-04T06:06:12.000Z
2022-01-03T03:40:11.000Z
import pytz from rest_auth.serializers import TokenSerializer from rest_framework.authtoken.models import Token from rest_framework.exceptions import ValidationError from rest_framework.fields import ( CharField, CurrentUserDefault, HiddenField, UUIDField, ChoiceField, ) from rest_framework.serializ...
30.182609
95
0.661481
2,867
0.825987
0
0
0
0
0
0
788
0.227024
4393bd0d5f4f1245ce5fd0c8893a7351e5ec7276
3,589
py
Python
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
null
null
null
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
null
null
null
tests/en/test_asr.py
rhasspy/rhasspy-test
0c180bfdd370f18ad2f8b9ee483ea5520161ab74
[ "MIT" ]
1
2020-07-25T13:59:25.000Z
2020-07-25T13:59:25.000Z
"""Automated speech recognition tests.""" import os import sys import unittest from pathlib import Path import requests from rhasspyhermes.asr import AsrTextCaptured from rhasspyhermes.nlu import NluIntent class AsrEnglishTests(unittest.TestCase): """Test automated speech recognition (English)""" def setUp...
35.534653
87
0.655893
3,378
0.941209
0
0
0
0
0
0
971
0.270549
4393be2aca5a25d561f41614d1c61c91497bb77e
775
py
Python
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
213
2020-05-21T12:37:37.000Z
2022-03-28T16:36:07.000Z
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
36
2020-08-14T08:23:34.000Z
2022-02-07T11:26:17.000Z
speech/melgan/model/multiscale.py
OthmaneJ/deep-tts
93059d568c5b458d3f0d80eb294d397ecace8731
[ "MIT" ]
38
2020-05-21T20:03:30.000Z
2022-01-19T16:31:15.000Z
import torch import torch.nn as nn import torch.nn.functional as F from .discriminator import Discriminator from .identity import Identity class MultiScaleDiscriminator(nn.Module): def __init__(self): super(MultiScaleDiscriminator, self).__init__() self.discriminators = nn.ModuleList( ...
25.833333
83
0.602581
632
0.815484
0
0
0
0
0
0
47
0.060645
4393d8ec0408fae06ace653dd14db15c556ea5c5
2,516
py
Python
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
10
2020-12-24T01:40:54.000Z
2021-06-03T01:22:34.000Z
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
4
2020-12-26T15:09:05.000Z
2021-10-01T13:36:16.000Z
main.py
AntonioLourencos/jogo-da-velha
3b3e46e2d2f8c064f0df6a383bc5a0fe6bb01f63
[ "MIT" ]
3
2021-05-14T20:20:02.000Z
2021-08-09T19:10:12.000Z
from game import about_button, start_button, play_sound, center_pos import pygame WHITE = (255,255,255) BLACK = (0,0,0) GREEN = (0, 255, 0) pygame.init() pygame.font.init() pygame.mixer.init() FONT = pygame.font.Font("assets/font.ttf", 70) FONT_MIN = pygame.font.Font("assets/font.ttf", 30) window = pygame.display.s...
31.45
95
0.591017
0
0
0
0
0
0
0
0
193
0.076709
43952014f41c3fec2a8b86f2f567eb906cd4cf2f
1,463
py
Python
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
schedule/views.py
1donggri/teamProject
9b4f37c2a93b065529ce9dd245f9717a783dd456
[ "CC-BY-3.0" ]
null
null
null
from django.shortcuts import render, redirect from .models import Post from .forms import ScheduleForm from django.core.paginator import Paginator # Create your views here. def view_schedule(request): all_posts = Post.objects.all().order_by('pub_date') page = int(request.GET.get('p', 1)) pagenator = Pagina...
34.833333
75
0.6473
0
0
0
0
0
0
0
0
483
0.311814
43956cd7582f0725f3e08ed11af962dc403ba2f7
402
py
Python
archetype/settings/local_stg.py
kingsdigitallab/archetype-django
6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc
[ "MIT" ]
1
2018-11-18T22:42:09.000Z
2018-11-18T22:42:09.000Z
archetype/settings/local_stg.py
kingsdigitallab/archetype-django
6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc
[ "MIT" ]
null
null
null
archetype/settings/local_stg.py
kingsdigitallab/archetype-django
6315c8f38e873e2d3b2d99fcfd47d01ce0ae35bc
[ "MIT" ]
null
null
null
from .base import * # noqa CACHE_REDIS_DATABASE = '1' CACHES['default']['LOCATION'] = '127.0.0.1:6379:' + CACHE_REDIS_DATABASE INTERNAL_IPS = INTERNAL_IPS + ('', ) ALLOWED_HOSTS = [''] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'app_archetype_stg', ...
22.333333
72
0.58209
0
0
0
0
0
0
0
0
172
0.427861
4397c55661379269054e0b0a47adf3a823197ee1
173
py
Python
website/sites/admin.py
vnaskos/Website
1c2adb0985f3932ddeca12025a2d216d2470cb63
[ "MIT" ]
null
null
null
website/sites/admin.py
vnaskos/Website
1c2adb0985f3932ddeca12025a2d216d2470cb63
[ "MIT" ]
null
null
null
website/sites/admin.py
vnaskos/Website
1c2adb0985f3932ddeca12025a2d216d2470cb63
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here.] from website.sites.models import Post @admin.register(Post) class TestAdmin2(admin.ModelAdmin): pass
15.727273
38
0.768786
44
0.254335
0
0
66
0.381503
0
0
29
0.16763
43985e0c9aab5f6373fb70168960c90190116e6d
4,005
py
Python
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
mcts.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
1
2021-12-20T12:03:49.000Z
2021-12-20T12:03:49.000Z
# Monte Carlo tree search for TicTacToe import numpy as np from tictactoe import Tictactoe import copy from random import choice from tree import Node import time class MCTS: ''' Class defining a simple monte carlo tree search algorithm. Attributes: - game: instance of TicTacToe game - cu...
35.131579
104
0.640949
3,839
0.958552
0
0
0
0
0
0
1,245
0.310861
4399aded5ee5a7bbfaba489cfa6e1bbdb4b8689f
3,911
py
Python
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
5
2021-06-24T03:19:47.000Z
2021-12-18T22:33:04.000Z
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
1
2022-02-04T14:52:40.000Z
2022-03-07T10:04:54.000Z
grimer/metadata.py
pirovc/grimer
169f8d3009004d6d2f4ca4d3e7dfec819078cb34
[ "MIT" ]
null
null
null
import pandas as pd from pandas.api.types import is_numeric_dtype from grimer.utils import print_log class Metadata: valid_types = ["categorical", "numeric"] default_type = "categorical" def __init__(self, metadata_file, samples: list=[]): # Read metadata and let pandas guess dtypes, index as str...
38.722772
136
0.628995
3,807
0.973408
0
0
0
0
0
0
931
0.238047
439a75ca9b8d0ab554205540e1b91cb943b0c4ba
5,162
py
Python
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
allennlp/training/metric_tracker.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
from typing import Optional, Dict, Any, List, Union from allennlp.common.checks import ConfigurationError class MetricTracker: """ This class tracks a metric during training for the dual purposes of early stopping and for knowing whether the current value is the best so far. It mimics the PyTorch `st...
38.522388
93
0.629407
5,052
0.97869
0
0
0
0
0
0
2,100
0.406819
439aafbb1c6af8fc6a5c2fcb3a71f36930de52f2
605
py
Python
authors/apps/profiles/renderers.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
4
2019-01-07T09:15:17.000Z
2020-11-09T09:58:54.000Z
authors/apps/profiles/renderers.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
34
2019-01-07T15:30:14.000Z
2019-03-06T08:23:34.000Z
authors/apps/profiles/renderers.py
MuhweziDeo/Ah-backend-xmen
60c830977fa39a7eea9ab978a9ba0c3beb0c4d88
[ "BSD-3-Clause" ]
10
2018-12-18T14:43:52.000Z
2020-02-07T08:27:50.000Z
from authors.apps.utils.renderers import AppJSONRenderer import json from rest_framework.renderers import JSONRenderer class UserProfileJSONRenderer(AppJSONRenderer): name = 'profile' class UserProfileListRenderer(JSONRenderer): """ Returns profiles of existing users """ charset = 'utf-8' ...
23.269231
67
0.679339
478
0.790083
0
0
0
0
0
0
159
0.26281
439abf267a321356c428ab3774898fb305a07e4a
956
py
Python
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
json_analyzer.py
bantenz/NetworkConfigParser
e1aa8385540823340e8278c7d7af0201399efd8f
[ "Apache-2.0" ]
null
null
null
import json from deepdiff import DeepDiff import pprint def get_json(file_name): with open(file_name) as json_file: json_data = json.load(json_file) return json_data def compare_json(Hostname, Command, Data1, Data2): if (Data1 == Data2): print ("%s - %s output is same" % (Hostname, Com...
30.83871
94
0.669456
0
0
0
0
0
0
0
0
260
0.271967
439b48ead1b5b023fe47fbce88acf0d32181f26a
9,437
py
Python
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
null
null
null
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
88
2015-07-21T22:13:23.000Z
2016-11-15T21:28:56.000Z
fiwareglancesync/sync.py
telefonicaid/fiware-glancesync
5ad0c80e12b9384473f31bf336015c75cf02a2a2
[ "Apache-2.0" ]
2
2015-08-12T11:19:55.000Z
2018-05-25T19:04:43.000Z
#!/usr/bin/env python # -- encoding: utf-8 -- # # Copyright 2015-2016 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE 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...
35.212687
79
0.586097
6,549
0.693823
0
0
0
0
0
0
3,356
0.355546
439b5da067d8952a4649cfcbc1a2148086951365
2,224
py
Python
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
models/object_detection/pytorch/ssd-resnet34/training/cpu/mlperf_logger.py
Pandinosaurus/models-intelai
60f5712d79a363bdb7624e3116a66a4f1a7fe208
[ "Apache-2.0" ]
null
null
null
### This file is originally from: [mlcommons repo](https://github.com/mlcommons/training/tree/9947bdf21ee3f2488fa4b362eec2ce7deb2ec4dd/single_stage_detector/ssd/mlperf_logger.py) # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may ...
35.870968
178
0.721223
0
0
0
0
0
0
0
0
1,137
0.511241
439c484fa1d9a64793cf4da644af68eabbc13295
13,932
py
Python
omtk/models/model_avar_surface_lips.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
omtk/models/model_avar_surface_lips.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
omtk/models/model_avar_surface_lips.py
CDufour909/omtk_unreal
64ae76a7b0a3f73a4b32d3b330f3174d02c54234
[ "MIT" ]
null
null
null
import math import pymel.core as pymel from omtk.core.classNode import Node from omtk.libs import libAttr from omtk.libs import libRigging from . import model_avar_surface class SplitterNode(Node): """ A splitter is a node network that take the parameterV that is normally sent through the follicles and sp...
42.090634
162
0.680879
13,754
0.987224
0
0
0
0
0
0
3,834
0.275194
439cc020be352b363d0141cede18e92d0b0f339f
5,910
py
Python
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
project/server/main/feed.py
dataesr/harvest-theses
1725b3ec3a944526fe62941d554bc3de6209cd28
[ "MIT" ]
null
null
null
import datetime import os import pymongo import requests from urllib import parse from urllib.parse import quote_plus import json from retry import retry from bs4 import BeautifulSoup import math from project.server.main.logger import get_logger from project.server.main.utils_swift import upload_object from project.s...
36.708075
184
0.694755
0
0
0
0
1,682
0.284602
0
0
1,737
0.293909
439e1a09f9246f51a2f4aa291d6172d1d6ae55e7
808
py
Python
DQM/L1TMonitor/python/L1TGCT_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/L1TMonitor/python/L1TGCT_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/L1TMonitor/python/L1TGCT_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer l1tGct = DQMEDAnalyzer('L1TGCT', gctCentralJetsSource = cms.InputTag("gctDigis","cenJets"), gctForwardJetsSource = cms.InputTag("gctDigis","forJets"), gctTauJetsSource = cms.InputTag("gctDigis","tauJets"), ...
38.47619
62
0.72896
0
0
0
0
0
0
0
0
140
0.173267
439e62c4d6bd84f9f57f7073032cb6f2eab27d1b
15,524
py
Python
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
11
2020-05-18T17:33:25.000Z
2022-01-28T18:42:31.000Z
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
null
null
null
utilities.py
gandhiy/lipMIP
11843e6bf2223acca44f57d29791521aac15caf3
[ "MIT" ]
1
2020-12-10T19:57:20.000Z
2020-12-10T19:57:20.000Z
""" General all-purpose utilities """ import sys import torch import torch.nn.functional as F import numpy as np import gurobipy as gb import matplotlib.pyplot as plt import io import contextlib import tempfile import time import re import pickle import inspect import glob import os COMPLETED_JOB_DIR = os.path.join(...
28.021661
81
0.659237
3,733
0.240466
367
0.023641
230
0.014816
0
0
6,315
0.406789
439e723ba661ca0696137f422b31b51f63930e6a
387
py
Python
OLD/karma_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
1
2021-12-12T02:50:20.000Z
2021-12-12T02:50:20.000Z
OLD/karma_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
17
2020-02-07T23:40:36.000Z
2020-12-22T16:38:44.000Z
OLD/karma_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
null
null
null
ADDED_KARMA_TO_MEMBER = "Gave {} karma to {}, their karma is now at {}." REMOVED_KARMA_FROM_MEMBER = "Removed {} karma from {}, their karma is now at {}." LIST_KARMA_OWN = "You currently have {} karma." LIST_KARMA_OBJECT = "\"{}\" currently has {} karma." LIST_KARMA_MEMBER = "{} currently has {} karma." KARMA_TOP_STA...
38.7
81
0.669251
0
0
0
0
0
0
0
0
232
0.599483
43a00c0b5646519c438692fcd0610b44be3beb14
1,340
py
Python
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
read_delphin_data.py
anssilaukkarinen/mry-cluster2
65d80a7371a4991dfe248ff6944f050e1573f8fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 6 14:51:24 2021 @author: laukkara This script is run first to fetch results data from university's network drive """ import os import pickle input_folder_for_Delphin_data = r'S:\91202_Rakfys_Mallinnus\RAMI\simulations' output_folder = os.path.join(r'C:\Local\laukkar...
20
81
0.630597
0
0
0
0
0
0
0
0
431
0.321642
43a01f33e82c9b00675c1f842c3ac9effea08533
7,335
py
Python
api/config.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
1
2020-03-23T21:43:15.000Z
2020-03-23T21:43:15.000Z
api/config.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
null
null
null
api/config.py
sumesh-aot/namex
53e11aed5ea550b71b7b983f1b57b65db5a06766
[ "Apache-2.0" ]
null
null
null
"""Config for initializing the namex-api.""" import os from dotenv import find_dotenv, load_dotenv # this will load all the envars from a .env file located in the project root (api) load_dotenv(find_dotenv()) CONFIGURATION = { 'development': 'config.DevConfig', 'testing': 'config.TestConfig', 'production...
43.402367
210
0.718609
6,953
0.947921
0
0
0
0
0
0
4,191
0.57137
43a04a876b69a7d204627f4d6e2351f7e07cdf98
518
py
Python
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
examples/pylab_examples/fancybox_demo2.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
6
2015-06-05T03:34:06.000Z
2022-01-25T09:07:10.000Z
import matplotlib.patches as mpatch import matplotlib.pyplot as plt styles = mpatch.BoxStyle.get_styles() figheight = (len(styles)+.5) fig1 = plt.figure(1, (4/1.5, figheight/1.5)) fontsize = 0.3 * 72 for i, (stylename, styleclass) in enumerate(styles.items()): fig1.text(0.5, (float(len(styles)) - 0.5 - i)/fighei...
27.263158
71
0.629344
0
0
0
0
0
0
0
0
14
0.027027
43a255b174f2f6995694a3ff518d32d995c17049
981
py
Python
setup.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
37
2017-06-21T19:09:11.000Z
2022-03-13T09:26:07.000Z
setup.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
51
2017-06-21T17:40:42.000Z
2021-10-31T09:16:21.000Z
setup.py
sdu-cfei/modest-py
dc14091fb8c20a8b3fa5ab33bbf597c0b566ba0a
[ "BSD-2-Clause" ]
12
2017-10-02T12:32:50.000Z
2022-03-13T09:26:15.000Z
from setuptools import setup setup( name='modestpy', version='0.1', description='FMI-compliant model identification package', url='https://github.com/sdu-cfei/modest-py', keywords='fmi fmu optimization model identification estimation', author='Krzysztof Arendt, Center for Energy Informatics SDU...
26.513514
68
0.59633
0
0
0
0
0
0
0
0
539
0.549439
43a26f9573c5f714eb41be0b40f5f0e94681fe54
1,013
py
Python
gfworkflow/core.py
andersonbrands/gfworkflow
81c646fd53b8227691bcd3e236f538fee0d9d93c
[ "MIT" ]
null
null
null
gfworkflow/core.py
andersonbrands/gfworkflow
81c646fd53b8227691bcd3e236f538fee0d9d93c
[ "MIT" ]
null
null
null
gfworkflow/core.py
andersonbrands/gfworkflow
81c646fd53b8227691bcd3e236f538fee0d9d93c
[ "MIT" ]
null
null
null
import re import subprocess as sp from typing import Union, List from gfworkflow.exceptions import RunCommandException def run(command: Union[str, List[str]]): completed_process = sp.run(command, stdout=sp.PIPE, stderr=sp.PIPE, universal_newlines=True) if completed_process.returncode: raise RunComman...
25.974359
96
0.722606
0
0
0
0
0
0
0
0
291
0.287266
43a2afd4837130116a518598c3c7bbcceafe7999
306
py
Python
tests/integration/lambdas/lambda_python3.py
jorges119/localstack
a8a78cda6c13b2e42bc46301b23c7143580132fb
[ "Apache-2.0" ]
31,928
2017-07-04T03:06:28.000Z
2022-03-31T22:33:27.000Z
tests/integration/lambdas/lambda_python3.py
jorges119/localstack
a8a78cda6c13b2e42bc46301b23c7143580132fb
[ "Apache-2.0" ]
5,216
2017-07-04T11:45:41.000Z
2022-03-31T22:02:14.000Z
tests/integration/lambdas/lambda_python3.py
jorges119/localstack
a8a78cda6c13b2e42bc46301b23c7143580132fb
[ "Apache-2.0" ]
3,056
2017-06-05T13:29:11.000Z
2022-03-31T20:54:43.000Z
# simple test function that uses python 3 features (e.g., f-strings) # see https://github.com/localstack/localstack/issues/264 def handler(event, context): # the following line is Python 3.6+ specific msg = f"Successfully processed {event}" # noqa This code is Python 3.6+ only return event
34
81
0.718954
0
0
0
0
0
0
0
0
238
0.777778
43a39cbdc284d3d48cf14614c751040caf06e2f0
3,018
py
Python
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
null
null
null
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
2
2020-05-04T09:40:32.000Z
2021-08-03T17:34:00.000Z
import_off.py
etiennody/purchoice
43a2dc81ca953ac6168f8112e97a4bae91ace690
[ "MIT" ]
null
null
null
#! usr/bin/python3 # code: utf-8 """Download data from Open Food Facts API.""" import json import requests from src.purchoice.constants import CATEGORY_SELECTED from src.purchoice.purchoice_database import PurchoiceDatabase class ImportOff: """ImportOff class downloads data from Open Food Facts API.""" de...
32.804348
79
0.594102
2,515
0.832781
0
0
0
0
0
0
1,381
0.457285
43a4f6e31b5eece16d50c0585d3ecac08d080d46
5,919
py
Python
orio/module/loop/cfg.py
zhjp0/Orio
7dfb80527053c5697d1bce1bd8ed996b1ea192c8
[ "MIT" ]
null
null
null
orio/module/loop/cfg.py
zhjp0/Orio
7dfb80527053c5697d1bce1bd8ed996b1ea192c8
[ "MIT" ]
null
null
null
orio/module/loop/cfg.py
zhjp0/Orio
7dfb80527053c5697d1bce1bd8ed996b1ea192c8
[ "MIT" ]
null
null
null
''' Created on April 26, 2015 @author: norris ''' import ast, sys, os, traceback from orio.main.util.globals import * from orio.tool.graphlib import graph from orio.module.loop import astvisitors class CFGVertex(graph.Vertex): '''A CFG vertex is a basic block.''' def __init__(self, name, node=None): t...
32.521978
107
0.478459
5,713
0.965197
0
0
0
0
0
0
663
0.112012
43a51f00be6eeff0b67bd7aa629b9ff21c09189f
503
py
Python
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
cogs rework/server specified/on_message_delete.py
lubnc4261/House-Keeper
6de20014afaf00cf9050e54c91cd8b3a02702a27
[ "MIT" ]
null
null
null
import discord from discord import Embed @commands.Cog.listener() async def on_message_delete(self, message): channel = "xxxxxxxxxxxxxxxxxxxxx" deleted = Embed( description=f"Message deleted in {message.channel.mention}", color=0x4040EC ).set_author(name=message.author, url=Embed.Empty,...
33.533333
91
0.735586
0
0
0
0
458
0.910537
432
0.858847
79
0.157058
43a5f6e07158fad4d7bfe9f3af12b2b23116e364
22,646
py
Python
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
320
2017-07-22T12:14:19.000Z
2022-03-24T14:00:32.000Z
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
272
2017-07-22T12:30:48.000Z
2022-03-30T07:14:50.000Z
test/modules/md/md_env.py
icing/mod_md
4522ed547f0426f27aae86f00fbc9b5b17de545f
[ "Apache-2.0" ]
36
2017-07-22T12:45:03.000Z
2021-05-18T12:20:11.000Z
import copy import inspect import json import logging import pytest import re import os import shutil import subprocess import time from datetime import datetime, timedelta from configparser import ConfigParser, ExtendedInterpolation from typing import Dict, List, Optional from pyhttpd.certs import CertificateSpec f...
37.806344
125
0.597457
22,159
0.978495
0
0
852
0.037623
0
0
3,030
0.133798
43a66e0d4848430d37cecb21387fa89ddac71ea8
1,949
py
Python
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
models/create_message_response.py
ajrice6713/bw-messaging-emulator
d1be4976e2486ec91b419597afc8411c78ebfda7
[ "MIT" ]
null
null
null
import datetime import json import random import string from typing import Dict from sms_counter import SMSCounter class CreateMessageResponse: def __init__(self, request): self.id = self.generate_id() self.owner = request['from'] self.applicationId = request['applicationId'] sel...
30.936508
91
0.578758
1,830
0.938943
0
0
0
0
0
0
235
0.120575
43a6cf6a117a9bd891a315706e175a03b6175d39
51,390
py
Python
python/ccxt/async_support/uex.py
victor95pc/ccxt
5c3e606296a1b15852a35f1330b645f451fa08d6
[ "MIT" ]
1
2019-03-17T22:44:30.000Z
2019-03-17T22:44:30.000Z
python/ccxt/async_support/uex.py
Lara-Bell/ccxt
e09230b4b60d5c33e3f6ebc044002bab6f733553
[ "MIT" ]
null
null
null
python/ccxt/async_support/uex.py
Lara-Bell/ccxt
e09230b4b60d5c33e3f6ebc044002bab6f733553
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
44.882096
465
0.432088
50,704
0.983971
0
0
0
0
24,656
0.478479
23,381
0.453736
43a74cac582bdf300bc81daa9bedf7b376e2c024
906
py
Python
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
Alpha & Beta/wootMath/decimalToBinaryFraction.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
def decimal_to_binary_fraction(x=0.5): """ Input: x, a float between 0 and 1 Returns binary representation of x """ p = 0 while ((2 ** p) * x) % 1 != 0: # print('Remainder = ' + str((2**p)*x - int((2**p)*x))) p += 1 num = int(x * (2 ** p)) result = '' if num == 0: ...
27.454545
97
0.566225
0
0
0
0
0
0
0
0
501
0.55298
43a79fa3a61473b076f77344a5a402f9d3ac1f06
3,091
py
Python
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
composer/utils/run_directory.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. import datetime import logging import os import pathlib import time from composer.utils import dist log = logging.getLogger(__name__) _RUN_DIRECTORY_KEY = "COMPOSER_RUN_DIRECTORY" _start_time_str = datetime.datetime.now().isoformat() def get_node_run_directory() ->...
35.125
102
0.697185
0
0
0
0
0
0
0
0
1,304
0.42187
43a848be2ab70fca075a6b29e18609d29a8a5a7d
1,109
py
Python
newsapp/migrations/0003_news.py
adi112100/newsapp
7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb
[ "MIT" ]
null
null
null
newsapp/migrations/0003_news.py
adi112100/newsapp
7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb
[ "MIT" ]
null
null
null
newsapp/migrations/0003_news.py
adi112100/newsapp
7cdf6070299b4a8dcc950e7fcdfb82cf1a1d98cb
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-11 08:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('newsapp', '0002_auto_20200711_1124'), ] operations = [ migrations.CreateModel( name='News', fields=[ ...
34.65625
114
0.538323
1,016
0.916141
0
0
0
0
0
0
268
0.241659
43a8bd9cb32de8f8138b7b033dc19e078566fbea
426
py
Python
src/enum/__init__.py
NazarioJL/faker_enum
c2703cae232b229b4d4ab2b73757102453d541ab
[ "MIT" ]
5
2019-08-02T17:59:10.000Z
2021-05-14T08:30:55.000Z
src/enum/__init__.py
NazarioJL/faker_enum
c2703cae232b229b4d4ab2b73757102453d541ab
[ "MIT" ]
4
2018-10-26T06:52:05.000Z
2022-01-31T20:31:17.000Z
src/enum/__init__.py
NazarioJL/faker_enum
c2703cae232b229b4d4ab2b73757102453d541ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from enum import Enum from typing import TypeVar, Type, List, Iterable, cast from faker.providers import BaseProvider TEnum = TypeVar("TEnum", bound=Enum) class EnumProvider(BaseProvider): """ A Provider for enums. """ def enum(self, enum_cls: Type[TEnum]) -> TEnum: ...
22.421053
68
0.676056
242
0.568075
0
0
0
0
0
0
67
0.157277
43a8f0198728c9384389bf87f96be11372c94f28
262
py
Python
tests/performance/bottle/simple_server.py
Varriount/sanic
55c36e0240dfeb03deccdeb5a53ca7fcfa728bff
[ "MIT" ]
4,959
2018-09-13T08:42:51.000Z
2021-01-05T07:01:44.000Z
tests/performance/bottle/simple_server.py
Varriount/sanic
55c36e0240dfeb03deccdeb5a53ca7fcfa728bff
[ "MIT" ]
864
2018-09-13T20:48:04.000Z
2021-01-05T07:33:30.000Z
tests/performance/bottle/simple_server.py
Varriount/sanic
55c36e0240dfeb03deccdeb5a53ca7fcfa728bff
[ "MIT" ]
612
2018-09-13T21:10:04.000Z
2020-12-30T12:16:36.000Z
# Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app import bottle import ujson from bottle import route, run @route("/") def index(): return ujson.dumps({"test": True}) app = bottle.default_app()
18.714286
108
0.725191
0
0
0
0
63
0.240458
0
0
117
0.446565
43a90c6754ed5d7199ff6f282438c86387b7e8d9
1,485
py
Python
usuarios/views.py
alvarocneto/alura_django
da2d3619b30c9d1c8767fa910eb7253bc20eeb90
[ "MIT" ]
1
2017-04-25T10:46:24.000Z
2017-04-25T10:46:24.000Z
usuarios/views.py
alvarocneto/alura_django
da2d3619b30c9d1c8767fa910eb7253bc20eeb90
[ "MIT" ]
null
null
null
usuarios/views.py
alvarocneto/alura_django
da2d3619b30c9d1c8767fa910eb7253bc20eeb90
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from django.shortcuts import render from django.contrib.auth.models import User from django.views.generic.base import View from perfis.models import Perfil from usuarios.forms import RegistrarUsuarioForm class RegistrarUsuarioView(View): template_name = 'registrar.html' ...
31.595745
72
0.546801
1,239
0.834343
0
0
0
0
0
0
283
0.190572
43a9435c49bd01eb9bc3513864f993e95030f51a
19
py
Python
antolib/AntoCommon.py
srsuper/BOT2020
2cadfad470de62819b7aaa0f9ecf1e4b4052ea68
[ "Apache-2.0" ]
1
2020-05-19T16:07:05.000Z
2020-05-19T16:07:05.000Z
antolib/AntoCommon.py
srsuper/BOT2020
2cadfad470de62819b7aaa0f9ecf1e4b4052ea68
[ "Apache-2.0" ]
null
null
null
antolib/AntoCommon.py
srsuper/BOT2020
2cadfad470de62819b7aaa0f9ecf1e4b4052ea68
[ "Apache-2.0" ]
null
null
null
ANTO_VER = '0.1.2'
9.5
18
0.578947
0
0
0
0
0
0
0
0
7
0.368421
43aa177b05dce3f050fe11c02d43b9d799f954d6
3,509
py
Python
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
5
2018-12-19T02:37:18.000Z
2022-01-26T02:52:50.000Z
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
null
null
null
cpc_fusion/pkgs/keys/main.py
CPChain/fusion
63b6913010e8e5b296a1900c59592c8fd1802c2e
[ "MIT" ]
null
null
null
from typing import (Any, Union, Type) # noqa: F401 from ..keys.datatypes import ( LazyBackend, PublicKey, PrivateKey, Signature, ) from eth_keys.exceptions import ( ValidationError, ) from eth_keys.validation import ( validate_message_hash, ) # These must be aliased due to a scoping issue in...
35.444444
90
0.61613
2,865
0.816472
0
0
0
0
0
0
1,191
0.339413
43aab220da0c6298d29ad8922e374d3b90af61e0
16,406
py
Python
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
1
2021-10-05T11:56:53.000Z
2021-10-05T11:56:53.000Z
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
24
2021-01-27T08:20:27.000Z
2021-07-06T09:42:28.000Z
qiskit/pulse/transforms/canonicalization.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
4
2021-10-05T12:07:27.000Z
2022-01-28T18:37:28.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
40.210784
99
0.643911
0
0
0
0
0
0
0
0
7,059
0.430269
43ab35693a6001a55d9d6314ecedca585fa99ed4
489
py
Python
tests/test_scraper.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
null
null
null
tests/test_scraper.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
2
2016-01-10T20:23:41.000Z
2016-01-14T16:57:06.000Z
tests/test_scraper.py
ananelson/oacensus
87916c92ab1233bcf82a481113017dfb8d7701b9
[ "Apache-2.0" ]
null
null
null
from oacensus.scraper import Scraper from oacensus.commands import defaults class TestScraper(Scraper): """ Scraper for testing scraper methods. """ aliases = ['testscraper'] def scrape(self): pass def process(self): pass def test_hashcode(): scraper = Scraper.create_inst...
21.26087
62
0.678937
187
0.382413
0
0
0
0
0
0
91
0.186094
43ab43b6738516044ebfd16ee957b6dda20ddd01
161
py
Python
python/test-deco-1-1.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
python/test-deco-1-1.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
python/test-deco-1-1.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
def deco1(func): print("before myfunc() called.") func() print("after myfunc() called.") def myfunc(): print("myfunc() called.") deco1(myfunc)
16.1
36
0.608696
0
0
0
0
0
0
0
0
67
0.416149
43abfef786fc99686d3027b89832f4ac4ffeea43
7,885
py
Python
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
lib/jnpr/junos/transport/tty_netconf.py
mmoucka/py-junos-eznc
9ef5ad39e32ae670fe8ed0092d725661a45b3053
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import re import time from lxml import etree import select import socket import logging import sys from lxml.builder import E from lxml.etree import XMLSyntaxError from datetime import datetime, timedelta from ncclient.operations.rpc import RPCReply, RPCError from ncclient.xml_ import to_ele import six from ncclient.t...
35.200893
83
0.49182
7,028
0.891313
0
0
0
0
0
0
2,530
0.320862
43ad02233acb1702dc2da7147208eb71f07d888f
409
py
Python
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
2
2022-01-06T02:21:16.000Z
2022-03-08T07:55:43.000Z
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
2
2021-12-10T15:56:52.000Z
2022-02-19T23:45:24.000Z
test/_test_client.py
eydam-prototyping/mp_modbus
8007c41dd16e6f71bd27b587628f57f38f27a7e0
[ "MIT" ]
3
2021-07-30T11:16:55.000Z
2022-01-05T18:19:55.000Z
from pymodbus.client.sync import ModbusTcpClient as ModbusClient import logging FORMAT = ('%(asctime)-15s %(threadName)-15s ' '%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s') logging.basicConfig(format=FORMAT) log = logging.getLogger() log.setLevel(logging.DEBUG) client = ModbusClient('192.168.178.61...
37.181818
67
0.743276
0
0
0
0
0
0
0
0
107
0.261614
43ad3e59d1619acb8d9309d2b2e5ad3161003839
2,664
py
Python
tests/selenium/test_about/test_about_page.py
technolotrix/tests
ae5b9741e80a1fd735c66de93cc014f672c5afb2
[ "Apache-2.0" ]
null
null
null
tests/selenium/test_about/test_about_page.py
technolotrix/tests
ae5b9741e80a1fd735c66de93cc014f672c5afb2
[ "Apache-2.0" ]
null
null
null
tests/selenium/test_about/test_about_page.py
technolotrix/tests
ae5b9741e80a1fd735c66de93cc014f672c5afb2
[ "Apache-2.0" ]
null
null
null
import unittest from selenium import webdriver import page class AboutPage(unittest.TestCase): def setUp(self): self.driver = webdriver.Firefox() self.driver.get("http://nicolesmith.nyc") #self.driver.get("http://127.0.0.1:4747/about") self.about_page = page.AboutPage(self.driver) ...
36
98
0.703453
2,556
0.959459
0
0
501
0.188063
0
0
771
0.289414
43ae1b68e450c7cd53ba9d214198e618977b86cc
1,297
py
Python
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
12,004
2018-06-17T23:56:29.000Z
2022-03-31T18:00:09.000Z
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
6,263
2018-06-17T23:27:24.000Z
2022-03-31T19:20:35.000Z
sdk/python/lib/test/langhost/future_input/__main__.py
pcen/pulumi
1bb85ca98c90f2161fe915df083d47c56c135e4d
[ "Apache-2.0" ]
706
2018-06-17T23:56:50.000Z
2022-03-31T11:20:23.000Z
# Copyright 2016-2018, Pulumi Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
36.027778
87
0.739399
254
0.195837
0
0
0
0
91
0.070162
774
0.596762
43af0965a86312e6e30a4f1113799d3cd2575b0a
5,079
py
Python
src/dewloosh/geom/cells/h8.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
2
2021-12-11T17:25:51.000Z
2022-01-06T15:36:27.000Z
src/dewloosh/geom/cells/h8.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
src/dewloosh/geom/cells/h8.py
dewloosh/dewloosh-geom
5c97fbab4b68f4748bf4309184b9e0e877f94cd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from dewloosh.geom.polyhedron import HexaHedron from dewloosh.math.numint import GaussPoints as Gauss from dewloosh.geom.utils import cells_coords from numba import njit, prange import numpy as np from numpy import ndarray __cache = True @njit(nogil=True, cache=__cache) def monoms_H8(pcoord: n...
34.317568
74
0.479425
1,230
0.242174
0
0
4,030
0.793463
0
0
159
0.031305
43af38bca718e0df9a99877c70ee02be87e0d3d0
842
py
Python
shopping_cart_test/shoppingcart2.py
Simbadeveloper/studious-octo-waddle.io
7ace6bb93e3b87c97d59df858e3079ec7a2db30e
[ "MIT" ]
null
null
null
shopping_cart_test/shoppingcart2.py
Simbadeveloper/studious-octo-waddle.io
7ace6bb93e3b87c97d59df858e3079ec7a2db30e
[ "MIT" ]
null
null
null
shopping_cart_test/shoppingcart2.py
Simbadeveloper/studious-octo-waddle.io
7ace6bb93e3b87c97d59df858e3079ec7a2db30e
[ "MIT" ]
null
null
null
class ShoppingCart(object): def __init__(self): self.total = 0 self.items = dict() def add_item(self, item_name, quantity, price): if item_name != None and quantity >= 1: self.items.update({item_name: quantity}) if quantity and price >= 1: self.total += (quantity * price) def re...
26.3125
59
0.644893
838
0.995249
0
0
0
0
0
0
22
0.026128
43af456bb12d9242e1f8878ab32c7792bb2310ac
2,108
py
Python
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
tests/models/pr_test_data.py
heaven00/github-contribution-leaderboard
3de53a60a7c81b91291e29d063c7fd14696d426d
[ "Apache-2.0" ]
null
null
null
import copy import json from ghcl.models.pull_request import PullRequest class PRData: def __init__(self, data: dict = None): if data is None: with open('./tests/models/empty_pr_data.json') as file: self._data = json.load(file) else: self._data = data ...
31.939394
76
0.597723
2,031
0.963472
0
0
0
0
0
0
349
0.16556
43af80522808363696ca10665012f09669723d2f
609
py
Python
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
2
2020-10-26T18:40:32.000Z
2021-04-10T16:33:25.000Z
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30
2015-11-04T11:42:27.000Z
2021-12-01T07:56:34.000Z
Validation/EventGenerator/python/BasicGenParticleValidation_cfi.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
8
2016-03-25T07:17:43.000Z
2021-07-08T17:11:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer basicGenParticleValidation = DQMEDAnalyzer('BasicGenParticleValidation', hepmcCollection = cms.InputTag("generatorSmeared"), genparticleCollection = cms.InputTag("genParticles",""), genjetsCollection = cms.Inp...
40.6
94
0.784893
0
0
0
0
0
0
0
0
76
0.124795