hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6c5fbd296aa4ad6b3b1afada13fef3a70827129b
4,294
py
Python
flexmeasures/auth/error_handling.py
SeitaBV/flexmeasures
f715012c9c35d38d3382bd88d36ef86ce9728d10
[ "Apache-2.0" ]
37
2021-02-16T11:18:20.000Z
2021-11-04T22:04:56.000Z
flexmeasures/auth/error_handling.py
SeitaBV/flexmeasures
f715012c9c35d38d3382bd88d36ef86ce9728d10
[ "Apache-2.0" ]
165
2021-02-16T15:27:20.000Z
2021-12-06T14:19:20.000Z
flexmeasures/auth/error_handling.py
SeitaBV/flexmeasures
f715012c9c35d38d3382bd88d36ef86ce9728d10
[ "Apache-2.0" ]
5
2021-02-23T12:05:42.000Z
2021-11-04T13:58:40.000Z
""" Auth error handling. Beware: There is a historical confusion of naming between authentication and authorization. Names of Responses have to be kept as they were called in original W3 protocols. See explanation below. """ from typing import Optional, Callable, List from flask import request, json...
42.94
140
0.756171
baa5cbe5eb3c15c06611445f2f2d86df458291c5
1,532
py
Python
setup.py
KellyHwong/ip138
828962168a1f68517bd1e3258621f7a4dbfa2c7b
[ "MIT" ]
5
2019-06-11T17:24:57.000Z
2019-12-24T07:57:07.000Z
setup.py
KellyHwong/ip138
828962168a1f68517bd1e3258621f7a4dbfa2c7b
[ "MIT" ]
1
2019-12-24T07:57:29.000Z
2019-12-24T07:57:29.000Z
setup.py
KellyHwong/ip138
828962168a1f68517bd1e3258621f7a4dbfa2c7b
[ "MIT" ]
2
2019-12-08T13:43:11.000Z
2021-02-17T08:52:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import sys import codecs from setuptools import setup, find_packages from ip138 import __version__, __author__, __email__ with open('requirements.txt') as f: requirements = [l for l in f.read().splitlines() if l] ...
30.039216
70
0.637728
390935f887afc453938871ae73305661a2015558
6,094
py
Python
app/auth/views.py
guomaoqiu/Celery_Flask_Demo
7051361ca34c7e0d62678d8bd0e3c89403195d0f
[ "MIT" ]
4
2018-04-10T10:06:03.000Z
2021-02-06T04:48:50.000Z
app/auth/views.py
guomaoqiu/Celery_Flask_Demo
7051361ca34c7e0d62678d8bd0e3c89403195d0f
[ "MIT" ]
null
null
null
app/auth/views.py
guomaoqiu/Celery_Flask_Demo
7051361ca34c7e0d62678d8bd0e3c89403195d0f
[ "MIT" ]
2
2018-06-05T08:34:19.000Z
2018-08-13T10:41:29.000Z
#-*- coding:utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask_login import login_user, logout_user, login_required, \ current_user from . import auth from .. import db from ..models import User from ..email import send_email from .forms import LoginForm, RegistrationForm, Ch...
35.430233
78
0.655399
cb2c2b0c71b369f764307725f47947b5b43bb645
4,110
py
Python
logreader/reader.py
thundersen/ohol-data
6a8f9a3572e3149e222f38d226b1572ac25c07b3
[ "MIT" ]
null
null
null
logreader/reader.py
thundersen/ohol-data
6a8f9a3572e3149e222f38d226b1572ac25c07b3
[ "MIT" ]
null
null
null
logreader/reader.py
thundersen/ohol-data
6a8f9a3572e3149e222f38d226b1572ac25c07b3
[ "MIT" ]
null
null
null
import os from datetime import datetime from logreader.coordinates import Coordinates from logreader.history import History from logreader.logfile_names import build_local_filenames_for_server_and_day from timeutils.timeutils import date_range def read_history(servers, from_date, to_date): history = History() ...
30.902256
108
0.703893
6cf239ec1c95376cabd3d13a838a8476bc07cf8b
711
py
Python
Modular_gSCAN/setup.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
null
null
null
Modular_gSCAN/setup.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
null
null
null
Modular_gSCAN/setup.py
ModularCogSci2022/msa
303f00a6d0040cc92dabc589f32d34baef45772b
[ "MIT" ]
null
null
null
from setuptools import find_packages from setuptools import setup setup(name='Modular_gSCAN', version='0.1', packages=find_packages(), install_requires=[ 'imageio~=2.9.0', 'setuptools~=49.2.1', 'pronounceable~=0.1.3', 'PyQt5~=5.15.4', 'openc...
26.333333
41
0.440225
db5cdc7a8fe0c3e3e7e310480fde39dd8b9ff5da
3,112
py
Python
edb/schema/database.py
fantix/edgedb
9fcd0a0eaed771a55f958a85fc71efde76fa7ac7
[ "Apache-2.0" ]
null
null
null
edb/schema/database.py
fantix/edgedb
9fcd0a0eaed771a55f958a85fc71efde76fa7ac7
[ "Apache-2.0" ]
null
null
null
edb/schema/database.py
fantix/edgedb
9fcd0a0eaed771a55f958a85fc71efde76fa7ac7
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
28.550459
74
0.696015
48bb88864f4727aa376e42856f957d1438947e41
1,271
py
Python
updateinfo/migrations/0001_initial.py
samshultz/tech-news-site
1196e397f596cacc616916d17ef510ff0dadfd91
[ "MIT" ]
null
null
null
updateinfo/migrations/0001_initial.py
samshultz/tech-news-site
1196e397f596cacc616916d17ef510ff0dadfd91
[ "MIT" ]
null
null
null
updateinfo/migrations/0001_initial.py
samshultz/tech-news-site
1196e397f596cacc616916d17ef510ff0dadfd91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-10-19 10:42 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
30.261905
129
0.550747
76c05c5250e67e644ff06f4a1bbebc44060c7cb8
2,022
py
Python
questionanswering/filters/population_filter.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
questionanswering/filters/population_filter.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
questionanswering/filters/population_filter.py
JDownloader/GEL-3014_Design3
dea01245592c97f73e6a78426270d91ade5e25c7
[ "MIT" ]
null
null
null
from collections import OrderedDict from questionanswering import bidictionnary import nltk def process(question, query_builder): mapped_question = next(question) if ('population' in mapped_question) and ('growth' not in mapped_question)and ('death' not in mapped_question) and ('birth' not in mapped_question):...
38.150943
152
0.677547
d928fb5c662f770ea38abe618004f1d0daa93f92
1,077
py
Python
api/datalake/config.py
bchathoth-wt/wren-data-api
7c0efceab9f749cb9929ce6916ca92006cec19ee
[ "MIT" ]
null
null
null
api/datalake/config.py
bchathoth-wt/wren-data-api
7c0efceab9f749cb9929ce6916ca92006cec19ee
[ "MIT" ]
null
null
null
api/datalake/config.py
bchathoth-wt/wren-data-api
7c0efceab9f749cb9929ce6916ca92006cec19ee
[ "MIT" ]
null
null
null
# Environments import os DEV = 'Dev' # Default Development environment DEV01 = 'Dev01' DEV02 = 'Dev02' TEST = 'Test' # Default Test environment TEST01 = 'Test01' TEST02 = 'Test02' PROD = 'Prod' # The following constants are used to map to parameter/secret paths ENV = 'ENV' BUCKET = 'GZ_BUCKET' DEV_GZ_BUCKET = 'd...
21.979592
67
0.700093
1c87abd25affaf890cb5e41b5944c6d639ecc02f
1,922
py
Python
IMLearn/utils/utils.py
dvirassulin/IML.HUJI
52ac69455ba185c15ac491edd1d148edf3383506
[ "MIT" ]
null
null
null
IMLearn/utils/utils.py
dvirassulin/IML.HUJI
52ac69455ba185c15ac491edd1d148edf3383506
[ "MIT" ]
null
null
null
IMLearn/utils/utils.py
dvirassulin/IML.HUJI
52ac69455ba185c15ac491edd1d148edf3383506
[ "MIT" ]
null
null
null
from typing import Tuple import numpy as np import pandas as pd def split_train_test(X: pd.DataFrame, y: pd.Series, train_proportion: float = .75) \ -> Tuple[pd.DataFrame, pd.Series, pd.DataFrame, pd.Series]: """ Randomly split given sample to a training- and testing sample Parameters -------...
31
119
0.659209
2fbe018c3cebcfff406ab2a9db6623d24ff0a5c4
22,519
py
Python
ports/microByte/modules/stage.py
jfm92/lv_micropython
187fec93c58596e86656f4343a50c1cda7e409a1
[ "MIT" ]
2
2021-08-06T01:06:07.000Z
2022-03-04T06:16:40.000Z
ports/microByte/modules/stage.py
jfm92/lv_micropython
187fec93c58596e86656f4343a50c1cda7e409a1
[ "MIT" ]
null
null
null
ports/microByte/modules/stage.py
jfm92/lv_micropython
187fec93c58596e86656f4343a50c1cda7e409a1
[ "MIT" ]
1
2021-11-14T13:09:13.000Z
2021-11-14T13:09:13.000Z
import utime import array import struct import _stage FONT = (b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' b'P\x01\xd4\x05\xf5\x17\xed\x1e\xd5\x15\xd0\x01P\x01\x00\x00' b'P\x01\xd0\x01\xd5\x15\xed\x1e\xf5\x17\xd4\x05P\x01\x00\x00' b'P\x01\xd0\x05\x95\x17\xfd\x1f\x95\x17\...
40.284436
79
0.548071
7b90a93437bd764cfc4f28102d01bf34c64c07e7
797
py
Python
1347-Minimum_Number of Steps to Make Two_Strings_Anagram.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
6
2018-06-13T06:48:42.000Z
2020-11-25T10:48:13.000Z
1347-Minimum_Number of Steps to Make Two_Strings_Anagram.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
null
null
null
1347-Minimum_Number of Steps to Make Two_Strings_Anagram.py
QuenLo/leecode
ce861103949510dc54fd5cb336bd992c40748de2
[ "MIT" ]
null
null
null
class Solution: def minSteps(self, s: str, t: str) -> int: coll_s = collections.Counter(s) coll_t = collections.Counter(t) return sum( (coll_s-coll_t).values() ) class Solution2: def minSteps(self, s: str, t: str) -> int: for ch in s: ...
22.138889
46
0.465496
23f405780e4f825a9ee81c939f5298965da8b455
12,202
py
Python
examples/wmiexec.py
mubix/impacket
1ef6af5ac2493a93bcaee42f2af79df39b98cf6c
[ "Apache-1.1" ]
3
2015-04-15T18:06:48.000Z
2021-01-31T05:16:37.000Z
examples/wmiexec.py
mubix/impacket
1ef6af5ac2493a93bcaee42f2af79df39b98cf6c
[ "Apache-1.1" ]
null
null
null
examples/wmiexec.py
mubix/impacket
1ef6af5ac2493a93bcaee42f2af79df39b98cf6c
[ "Apache-1.1" ]
1
2019-02-22T08:34:33.000Z
2019-02-22T08:34:33.000Z
#!/usr/bin/python # Copyright (c) 2003-2015 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # A similar approach to smbexec but executing commands through WMI. # Main advantage ...
38.250784
251
0.603016
c50f1842a780eaf5b69b5e49acb6f3205df26ea7
1,592
py
Python
db/benchmark_db_perf.py
kayburns/craftassist
07909493d320afc2c9ff428d0891bc3acd4dc68f
[ "MIT" ]
null
null
null
db/benchmark_db_perf.py
kayburns/craftassist
07909493d320afc2c9ff428d0891bc3acd4dc68f
[ "MIT" ]
null
null
null
db/benchmark_db_perf.py
kayburns/craftassist
07909493d320afc2c9ff428d0891bc3acd4dc68f
[ "MIT" ]
null
null
null
"""Performance tests for janky 'database'""" import json import glob import time import faiss import numpy as np parse = [ "remove the roof on the house", "build a floor", "build a huge wall around the house", "build a huge roof on top of the house" ] db_size = 10000 n_dim = 768 for i in range(db_size...
24.121212
66
0.653266
03928aafa34e58959afe748f7311a22150730740
469
py
Python
data/scripts/templates/object/draft_schematic/space/capacitor/shared_energy_saver_battery_mk2.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/space/capacitor/shared_energy_saver_battery_mk2.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/space/capacitor/shared_energy_saver_battery_mk2.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/space/capacitor/shared_energy_saver_battery_mk2.iff" resul...
27.588235
95
0.73774
1d48bea3c84c92c2bbc2dc323953a06fe147a669
5,667
py
Python
patron/api/openstack/compute/contrib/server_external_events.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/api/openstack/compute/contrib/server_external_events.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/api/openstack/compute/contrib/server_external_events.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
39.629371
78
0.586024
2c352a0e059fa7067a4d4590541cc3efd1b051a8
2,663
py
Python
tob-api/api_v2/views/misc.py
andrewwhitehead/TheOrgBook
5a3dcd27cdcda0a3e19a68597a49997c68143ddc
[ "Apache-2.0" ]
null
null
null
tob-api/api_v2/views/misc.py
andrewwhitehead/TheOrgBook
5a3dcd27cdcda0a3e19a68597a49997c68143ddc
[ "Apache-2.0" ]
37
2019-03-12T20:10:57.000Z
2020-11-26T18:39:51.000Z
tob-api/api_v2/views/misc.py
andrewwhitehead/TheOrgBook
5a3dcd27cdcda0a3e19a68597a49997c68143ddc
[ "Apache-2.0" ]
5
2019-02-26T17:38:37.000Z
2020-11-26T14:48:03.000Z
import logging from django.db import connection from django.conf import settings from django.http import JsonResponse from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework.decorators import ( api_view, authentication_classes, parser_classes, permission_classe...
28.329787
96
0.688321
99ebb09c4f8006743fc4ed22eb8dca49d1a7055e
20,490
py
Python
src/genie/libs/parser/iosxe/show_vrf.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/show_vrf.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/show_vrf.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
"""show_vrf.py IOSXE parsers for the following show commands: * 'show vrf' * 'show vrf <vrf>' * 'show vrf detail' * 'show vrf detail <vrf>' """ # Python import re import xmltodict # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, Any, Optional...
38.370787
107
0.468863
c9a44a2dc6b7b76e527923942a5e822cc89fafc3
13,274
py
Python
estimator.py
nfyfamr/ActionEstimation
8f18dba49d9558b28a277ea82c70fb4e3425bbbb
[ "MIT" ]
null
null
null
estimator.py
nfyfamr/ActionEstimation
8f18dba49d9558b28a277ea82c70fb4e3425bbbb
[ "MIT" ]
null
null
null
estimator.py
nfyfamr/ActionEstimation
8f18dba49d9558b28a277ea82c70fb4e3425bbbb
[ "MIT" ]
null
null
null
import torch import torchvision.transforms as transforms import torch.utils.data as data import os import pickle import pdb import numpy as np from PIL import Image import random import collections from model_advanced import ActionNet from torch.autograd import Variable import scipy import scipy.ndimage import scipy....
33.862245
142
0.587238
001b04192eff5ad45f9010cd0cdd64e9ac9874e2
254
py
Python
fortrump.py
Thomasasia/Fortrump
df328c361953986ebd00e582293eeebfc6b0a0c5
[ "MIT" ]
1
2019-06-11T08:57:45.000Z
2019-06-11T08:57:45.000Z
fortrump.py
Thomasasia/Fortrump
df328c361953986ebd00e582293eeebfc6b0a0c5
[ "MIT" ]
null
null
null
fortrump.py
Thomasasia/Fortrump
df328c361953986ebd00e582293eeebfc6b0a0c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import csv, random with open('tweets.csv', 'r') as csvfile: tweets = csv.reader(csvfile) rows = [] for row in tweets: rows.append(row) rand_index = random.randint(0,len(rows)) print(rows[rand_index][0])
23.090909
44
0.633858
b7b332f59d152017abdb9dfaffbabc97071aed4a
2,604
py
Python
L2J_DataPack/data/scripts/quests/286_FabulousFeathers/__init__.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
L2J_DataPack/data/scripts/quests/286_FabulousFeathers/__init__.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
L2J_DataPack/data/scripts/quests/286_FabulousFeathers/__init__.py
Vladislav-Zolotaryov/L2J_Levelless_Custom
fb9fd3d22209679258cddc60cec104d740f13b8c
[ "MIT" ]
null
null
null
# Contributed by t0rm3nt0r (tormentor2000@mail.ru) to the Official L2J Datapack Project. # Visit http://www.l2jdp.com/forum/ for more details. import sys from com.l2jserver.gameserver.model.quest import State from com.l2jserver.gameserver.model.quest import QuestState from com.l2jserver.gameserver.model.quest.jython i...
30.27907
154
0.644393
6715a7199afe83f671f2034e0bab80c1b4888d52
399
py
Python
backend/game1_29707/wsgi.py
crowdbotics-apps/game1-29707
83bc4f93fd878bc83f03b583d45770de44ae2c75
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/game1_29707/wsgi.py
crowdbotics-apps/game1-29707
83bc4f93fd878bc83f03b583d45770de44ae2c75
[ "FTL", "AML", "RSA-MD" ]
24
2021-08-11T00:46:24.000Z
2022-03-06T16:26:35.000Z
backend/game1_29707/wsgi.py
crowdbotics-apps/game1-29707
83bc4f93fd878bc83f03b583d45770de44ae2c75
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for game1_29707 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
23.470588
78
0.789474
c9106a7cafe8e5d767f580e3e372eab8cc618d8e
1,338
py
Python
aliyun-python-sdk-qualitycheck/aliyunsdkqualitycheck/request/v20190115/GetResultToReviewRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-qualitycheck/aliyunsdkqualitycheck/request/v20190115/GetResultToReviewRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-qualitycheck/aliyunsdkqualitycheck/request/v20190115/GetResultToReviewRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "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...
36.162162
79
0.7713
aab939a470c2c86a30a024a273d596b63a6d037d
868
py
Python
Number Theory/Matrix_Exponentiation.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
Number Theory/Matrix_Exponentiation.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
Number Theory/Matrix_Exponentiation.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
from sys import stdin input = stdin.readline def multipy(A,B,n): result = [[0 for i in range(n)] for j in range(n)] for i in range(n): for j in range(n): for k in range(n): result[i][j] += A[i][k]*B[k][j] for i in range(n): for j in range(n): A...
21.7
54
0.407834
b48202e98e11f0beb4d691c24ffde0d263b0cc00
14,413
py
Python
scripts/test/shared.py
erandis-vol/binaryen
a076437c8971aca7e2d3756cac57475433e0af12
[ "Apache-2.0" ]
null
null
null
scripts/test/shared.py
erandis-vol/binaryen
a076437c8971aca7e2d3756cac57475433e0af12
[ "Apache-2.0" ]
null
null
null
scripts/test/shared.py
erandis-vol/binaryen
a076437c8971aca7e2d3756cac57475433e0af12
[ "Apache-2.0" ]
null
null
null
import argparse import difflib import glob import os import shutil import subprocess import sys import urllib2 usage_str = ("usage: 'python check.py [options]'\n\n" "Runs the Binaryen test suite.") parser = argparse.ArgumentParser(description=usage_str) parser.add_argument( '--torture', dest='torture...
32.831435
79
0.685978
14d3e52770750237c9cef4570fb436de5d89df68
2,055
py
Python
pychron/entry/tasks/simple_identifier/panes.py
WiscAr/pychron
8d335d53ba7a5fc70760d9a7cb60540ad169ae84
[ "Apache-2.0" ]
1
2019-02-27T21:57:44.000Z
2019-02-27T21:57:44.000Z
pychron/entry/tasks/simple_identifier/panes.py
WiscAr/pychron
8d335d53ba7a5fc70760d9a7cb60540ad169ae84
[ "Apache-2.0" ]
80
2018-07-17T20:10:20.000Z
2021-08-17T15:38:24.000Z
pychron/entry/tasks/simple_identifier/panes.py
AGESLDEO/pychron
1a81e05d9fba43b797f335ceff6837c016633bcf
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2017 ross # # 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/LICE...
39.519231
92
0.63747
137d108e329186b121c3ce6411c46ad7f4ecbb60
162
py
Python
Fitbit/keys_dummy.py
chriotte/Personal_Health_Analysis
50252aae65eac31b192306a841814e6e04194890
[ "MIT" ]
5
2019-02-08T14:41:07.000Z
2020-12-11T10:06:07.000Z
Fitbit/keys_dummy.py
chriotte/Personal_Health_Analysis
50252aae65eac31b192306a841814e6e04194890
[ "MIT" ]
null
null
null
Fitbit/keys_dummy.py
chriotte/Personal_Health_Analysis
50252aae65eac31b192306a841814e6e04194890
[ "MIT" ]
1
2021-05-16T10:33:31.000Z
2021-05-16T10:33:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 12 10:31:38 2017 @author: christopher """ CLIENT_ID = 'xxx' CLIENT_SECRET = 'xxxxxxxxxx'
13.5
35
0.648148
a7c030cdd384ef7ead96ff8c4135e80ecf2b9302
91
py
Python
11 - For Loops/example06.py
gyratory/NPTfP3
7e070e2e7a01cd2b750914719f71476fe1efcf4d
[ "Unlicense" ]
null
null
null
11 - For Loops/example06.py
gyratory/NPTfP3
7e070e2e7a01cd2b750914719f71476fe1efcf4d
[ "Unlicense" ]
null
null
null
11 - For Loops/example06.py
gyratory/NPTfP3
7e070e2e7a01cd2b750914719f71476fe1efcf4d
[ "Unlicense" ]
null
null
null
a = 1 b = 1 for c in range(1, 10): print(a, end=" ") n = a + b a = b b = n
11.375
22
0.373626
3f9d75b07e83cb5fbe5235ae5788312b87d9b3b9
311
py
Python
data/multilingual/Latn.BEM/Sun-ExtA_16/pdf_to_json_test_Latn.BEM_Sun-ExtA_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.BEM/Sun-ExtA_16/pdf_to_json_test_Latn.BEM_Sun-ExtA_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.BEM/Sun-ExtA_16/pdf_to_json_test_Latn.BEM_Sun-ExtA_16.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.BEM/Sun-ExtA_16/udhr_Latn.BEM_Sun-ExtA_16.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
31.1
81
0.810289
46560fd6868721a3f9541f583e4890bc495b9a46
1,794
py
Python
GPT-Deployment/gpt-mind-12345-actual/main.py
etherlabsio/hinton
eedd99f6a5fbbc38283bbf945dff4f4006a3d1f5
[ "MIT" ]
null
null
null
GPT-Deployment/gpt-mind-12345-actual/main.py
etherlabsio/hinton
eedd99f6a5fbbc38283bbf945dff4f4006a3d1f5
[ "MIT" ]
null
null
null
GPT-Deployment/gpt-mind-12345-actual/main.py
etherlabsio/hinton
eedd99f6a5fbbc38283bbf945dff4f4006a3d1f5
[ "MIT" ]
1
2020-04-19T11:08:02.000Z
2020-04-19T11:08:02.000Z
try: import unzip_requirements except ImportError: pass import os import io import json import glob import time import boto3 import logging import torch from gpt import OpenAIGPTPreTrainedModel,OpenAIGPTConfig,OpenAIGPTModel,SequenceSummary from mind_utils import getSentenceFeatures, CustomOpenAIGPTDoubleHead...
27.6
89
0.749721
c83614e64b9b29c1cb749c4eb7530ab8f17acbc1
259
py
Python
e_portfolio/e_portfolio/doctype/interactive_media/interactive_media.py
samuraya/eportfolio
70d71f72a7896e944c0b45fd4f0ab63cb3208d73
[ "MIT" ]
null
null
null
e_portfolio/e_portfolio/doctype/interactive_media/interactive_media.py
samuraya/eportfolio
70d71f72a7896e944c0b45fd4f0ab63cb3208d73
[ "MIT" ]
null
null
null
e_portfolio/e_portfolio/doctype/interactive_media/interactive_media.py
samuraya/eportfolio
70d71f72a7896e944c0b45fd4f0ab63cb3208d73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, ajan and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class InteractiveMedia(Document): pass
23.545455
49
0.776062
491eefb6bcf07afb36f65c664385c4f6857b5a6b
450
py
Python
spkcspider/apps/spider_filets/migrations/0002_textfilet_non_public_edit.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
5
2019-06-24T14:15:54.000Z
2021-05-14T23:16:31.000Z
spkcspider/apps/spider_filets/migrations/0002_textfilet_non_public_edit.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
2
2018-06-19T09:56:18.000Z
2018-11-20T12:02:44.000Z
spkcspider/apps/spider_filets/migrations/0002_textfilet_non_public_edit.py
devkral/spkbspider
97e448b4da412acebd66c4469c7fcdd07bf90ed2
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-10 14:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('spider_filets', '0001_initial'), ] operations = [ migrations.AddField( model_name='textfilet', name='non_public_edit',...
23.684211
111
0.628889
ee8d9b1952150819de58e95755a917f13aec7f81
80,045
py
Python
release/stubs.min/System/Windows/Controls/__init___parts/ItemsControl.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Controls/__init___parts/ItemsControl.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Controls/__init___parts/ItemsControl.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class ItemsControl( Control, IResource, IAnimatable, IInputElement, IFrameworkInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IGeneratorHost, IContainItemStorage, ): """ Represents a control that can be used to present a collecti...
25.904531
221
0.691186
f8d63bd6f53f69dbb66efa22aaae5a74f296db21
13,306
py
Python
pyfmpcloud/company_valuation.py
JohnnyDoer/pyfmpcloud
27ee116e1d4777e716a04e5bd2af998c95689cf0
[ "MIT" ]
45
2020-05-09T15:04:02.000Z
2022-01-12T04:25:12.000Z
pyfmpcloud/company_valuation.py
JohnnyDoer/pyfmpcloud
27ee116e1d4777e716a04e5bd2af998c95689cf0
[ "MIT" ]
13
2020-05-10T15:58:50.000Z
2021-07-12T02:08:54.000Z
pyfmpcloud/company_valuation.py
JohnnyDoer/pyfmpcloud
27ee116e1d4777e716a04e5bd2af998c95689cf0
[ "MIT" ]
11
2020-05-17T19:36:28.000Z
2022-01-19T17:34:15.000Z
from urllib.request import urlopen import pandas as pd from pyfmpcloud import settings def rss_feed(): """RSS Feed API from https://fmpcloud.io/documentation#rssFeed Returns: Returns any filings of the day over the last week """ urlroot = settings.get_urlroot() apikey = settings.ge...
38.235632
153
0.615136
dcc8e2b616c1cb0aad67311d770726f83772abec
13,682
py
Python
tests/apollo/util/bft_network_partitioning.py
big-data-lab-umbc/concord-bft
7061695406885604471a8a7bd5944e8d16d7280f
[ "Apache-2.0" ]
null
null
null
tests/apollo/util/bft_network_partitioning.py
big-data-lab-umbc/concord-bft
7061695406885604471a8a7bd5944e8d16d7280f
[ "Apache-2.0" ]
null
null
null
tests/apollo/util/bft_network_partitioning.py
big-data-lab-umbc/concord-bft
7061695406885604471a8a7bd5944e8d16d7280f
[ "Apache-2.0" ]
null
null
null
# Concord # # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # # This product is licensed to you under the Apache 2.0 license (the "License"). # You may not use this product except in compliance with the Apache 2.0 License. # # This product may include a number of subcomponents with separate copyright # notices a...
47.506944
120
0.661892
aafb6e1a81a813dd98292771c90a407da526cbbd
13,839
py
Python
radiomics/firstorder.py
bgeorge0/pyradiomics
f87abcf39c5eeddce55cb5fd93ea5111c5bea82c
[ "BSD-3-Clause" ]
1
2018-12-15T07:50:06.000Z
2018-12-15T07:50:06.000Z
radiomics/firstorder.py
maojingyi/pyradiomics
f0e18c19163923a3c1d5aa5eb197553f52df582d
[ "BSD-3-Clause" ]
null
null
null
radiomics/firstorder.py
maojingyi/pyradiomics
f0e18c19163923a3c1d5aa5eb197553f52df582d
[ "BSD-3-Clause" ]
null
null
null
import numpy from radiomics import base, deprecated, imageoperations class RadiomicsFirstOrder(base.RadiomicsFeaturesBase): r""" First-order statistics describe the distribution of voxel intensities within the image region defined by the mask through commonly used and basic metrics. Let: - :math:`\textbf...
34.25495
120
0.6783
91224208e20b69f291a4ea04aa0500d5a5e17f05
13,184
py
Python
client/python/modeldb/basic/ModelDbSyncerBase.py
miyamotok0105/modeldb
6b2b7fb598d90be733e4b68efae3165c24efe2d1
[ "MIT" ]
1
2018-08-23T01:15:43.000Z
2018-08-23T01:15:43.000Z
client/python/modeldb/basic/ModelDbSyncerBase.py
miyamotok0105/modeldb
6b2b7fb598d90be733e4b68efae3165c24efe2d1
[ "MIT" ]
1
2018-08-20T17:37:22.000Z
2018-08-20T17:37:22.000Z
client/python/modeldb/basic/ModelDbSyncerBase.py
miyamotok0105/modeldb
6b2b7fb598d90be733e4b68efae3165c24efe2d1
[ "MIT" ]
null
null
null
import sys import os import yaml from future.utils import with_metaclass from thrift import Thrift from thrift.transport import TSocket from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol from modeldb.utils.Singleton import Singleton from ..events import ( Event, ExperimentEvent, Ex...
37.454545
79
0.652154
5776260dfe324b85fc14a10b447e3fbcdd2b1dd3
6,515
py
Python
auto_trader_universal.py
k-lombard/Basic-Auto-Stock-Trader
d54b6d252ab428b5577552529e0f691d10d7dc67
[ "MIT" ]
null
null
null
auto_trader_universal.py
k-lombard/Basic-Auto-Stock-Trader
d54b6d252ab428b5577552529e0f691d10d7dc67
[ "MIT" ]
null
null
null
auto_trader_universal.py
k-lombard/Basic-Auto-Stock-Trader
d54b6d252ab428b5577552529e0f691d10d7dc67
[ "MIT" ]
null
null
null
""" This bot does not implement an API to actually trade (buy/sell) shares in any stock. One could utilize Alpaca API to do this. This program assumes you have a budget of $1000 daily to invest in 5 different stocks, with $200 being allocated to each of the 5 stocks. The bot will only purchase a stock (out of the to...
30.731132
173
0.642671
3e1c70468b0a9802f9a3fffb7b423204eaba2934
9,671
py
Python
reference_system/reference_system_py/std_latency.py
ros-realtime/reference-system
485bf41e1bcb043b45fb175102fcac5c6f9fdf8f
[ "Apache-2.0" ]
33
2021-09-20T21:03:41.000Z
2022-03-28T01:42:15.000Z
reference_system/reference_system_py/std_latency.py
ros-realtime/reference-system
485bf41e1bcb043b45fb175102fcac5c6f9fdf8f
[ "Apache-2.0" ]
41
2021-09-15T12:28:30.000Z
2021-12-24T16:59:50.000Z
reference_system/reference_system_py/std_latency.py
ros-realtime/reference-system
485bf41e1bcb043b45fb175102fcac5c6f9fdf8f
[ "Apache-2.0" ]
9
2021-09-23T12:31:44.000Z
2022-03-27T23:49:54.000Z
# Copyright 2021 Apex.AI, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
39.798354
97
0.569434
619bdddc482b6ce988ebf1bf796ec29b4184cd5d
11,341
py
Python
official/resnet/imagenet_test.py
jieming2002/models-quiz8
421dc407a10444cab4bd88c25599077acca96bdb
[ "Apache-2.0" ]
7
2018-04-29T03:54:00.000Z
2021-08-17T13:27:28.000Z
official/resnet/imagenet_test.py
jieming2002/models-quiz8
421dc407a10444cab4bd88c25599077acca96bdb
[ "Apache-2.0" ]
null
null
null
official/resnet/imagenet_test.py
jieming2002/models-quiz8
421dc407a10444cab4bd88c25599077acca96bdb
[ "Apache-2.0" ]
3
2018-10-23T01:46:50.000Z
2019-03-19T02:51:51.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.378472
80
0.72692
eef4a4df2c48e79aaa2d7f847630e41fa5d5768d
2,472
py
Python
combine_shapefiles_allTracks.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
7
2021-03-04T15:43:21.000Z
2021-07-08T08:42:23.000Z
combine_shapefiles_allTracks.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
null
null
null
combine_shapefiles_allTracks.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
2
2021-03-11T12:04:42.000Z
2021-04-20T16:33:31.000Z
#!/usr/bin/env python u""" combine_shapfiles.py Yara Mohajerani (08/2020) Combine all individual shapefiles for all tracks into 1 file """ import os import sys import getopt import pandas as pd import geopandas as gpd from rasterio.crs import CRS #-- main function def main(): #-- Read the system arguments listed aft...
29.428571
113
0.671521
052f72a9abdb6e1c33d339d6cdd05e60ee604a91
21,379
py
Python
grl/rllib_tools/modified_policies/sac_torch_policy_squashed.py
indylab/xdo
1ddd92aa56ba10fa468396de8f8824c83ba9d0ba
[ "MIT" ]
12
2021-03-12T07:18:52.000Z
2022-03-15T22:30:44.000Z
grl/rllib_tools/modified_policies/sac_torch_policy_squashed.py
indylab/xdo
1ddd92aa56ba10fa468396de8f8824c83ba9d0ba
[ "MIT" ]
1
2021-11-22T16:39:46.000Z
2022-02-02T22:13:03.000Z
grl/rllib_tools/modified_policies/sac_torch_policy_squashed.py
indylab/xdo
1ddd92aa56ba10fa468396de8f8824c83ba9d0ba
[ "MIT" ]
4
2021-06-21T03:54:45.000Z
2022-01-13T10:28:26.000Z
""" PyTorch policy class used for SAC. Modified to always squash action outputs. """ import gym from gym.spaces import Discrete import logging from typing import Dict, List, Optional, Tuple, Type, Union import ray import ray.experimental.tf_utils from ray.rllib.agents.a3c.a3c_torch_policy import apply_grad_clipping f...
40.877629
91
0.66439
51e44e80bfc24544806c4c4c9cc66f0019365a6e
12,231
py
Python
electrum/gui/kivy/uix/dialogs/tx_dialog.py
mwnx/electrum
d7e119ec719a8508d6804b8e3e516a4695d4e7bc
[ "MIT" ]
null
null
null
electrum/gui/kivy/uix/dialogs/tx_dialog.py
mwnx/electrum
d7e119ec719a8508d6804b8e3e516a4695d4e7bc
[ "MIT" ]
null
null
null
electrum/gui/kivy/uix/dialogs/tx_dialog.py
mwnx/electrum
d7e119ec719a8508d6804b8e3e516a4695d4e7bc
[ "MIT" ]
null
null
null
import copy from datetime import datetime from typing import NamedTuple, Callable, TYPE_CHECKING from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from kivy.clock import Clock from kivy.uix.label import Label from kivy.uix.dropdown import...
36.840361
128
0.573461
e3ca304b89cf67f7159c08f2fecc9d050393032e
240
py
Python
DHT11/main.py
maysrp/pico_micropython
f9c27168fd48c769000aa6e4c8b96cbd0331dda0
[ "Apache-2.0" ]
31
2021-02-11T05:17:29.000Z
2022-03-29T10:51:00.000Z
DHT11/main.py
tanjunkai2001/pico_micropython
f9c27168fd48c769000aa6e4c8b96cbd0331dda0
[ "Apache-2.0" ]
null
null
null
DHT11/main.py
tanjunkai2001/pico_micropython
f9c27168fd48c769000aa6e4c8b96cbd0331dda0
[ "Apache-2.0" ]
11
2021-05-13T07:43:12.000Z
2022-03-01T23:44:11.000Z
from machine import Pin from DHT22 import DHT22 import utime # DHT22 libray is available at # https://github.com/danjperron/PicoDHT22 dht_sensor=DHT22(Pin(0,Pin.IN,Pin.PULL_UP),dht11=True) T,H = dht_sensor.read() # 正面 # VCC-DATA-none——GND
21.818182
54
0.7625
7dcb245fcf4a97e3fb00105ccd5691578a713b71
208
py
Python
Hello/home/urls.py
VasudevJaiswal/Django
adae1957001e84c3cd72c62d2e89576575b3bb4d
[ "MIT" ]
2
2021-08-01T17:16:13.000Z
2021-08-18T08:25:24.000Z
Hello/home/urls.py
VasudevJaiswal/Django
adae1957001e84c3cd72c62d2e89576575b3bb4d
[ "MIT" ]
null
null
null
Hello/home/urls.py
VasudevJaiswal/Django
adae1957001e84c3cd72c62d2e89576575b3bb4d
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from home import views from about import views urlpatterns = [ path("", views.index,name='home'), path("", views.about,name ='about') ]
18.909091
39
0.706731
8c2e3522c98bb963b07f88f162558e9ee35acc8f
326
py
Python
oocran/django/schedulers/admin.py
oocran/oocran
852caf4fa15bf955d492abd8fea49464ef59a24a
[ "Apache-2.0", "BSD-3-Clause" ]
3
2018-12-12T10:32:16.000Z
2022-02-07T19:46:10.000Z
oocran/django/schedulers/admin.py
oocran/oocran
852caf4fa15bf955d492abd8fea49464ef59a24a
[ "Apache-2.0", "BSD-3-Clause" ]
1
2017-06-16T08:16:57.000Z
2017-06-16T09:45:28.000Z
oocran/django/schedulers/admin.py
oocran/oocran
852caf4fa15bf955d492abd8fea49464ef59a24a
[ "Apache-2.0", "BSD-3-Clause" ]
6
2017-05-29T03:34:23.000Z
2022-02-07T19:46:11.000Z
from django.contrib import admin from .models import Scheduler class SchedulerModelAdmin(admin.ModelAdmin): list_display = ["update", "timestamp"] list_display_links = ["update"] list_filter = ["update", "timestamp"] class Meta: model = Scheduler admin.site.register(Scheduler, SchedulerModel...
25.076923
51
0.726994
fd8f924a012561f87eb0cdddbe741ff8d7b0151d
8,525
py
Python
examples/tests/test_example_aircraft.py
GodotMisogi/openconcept
8206cb2d4303cb83e89d4075649bf69118384486
[ "MIT" ]
22
2018-09-11T16:40:23.000Z
2022-03-22T09:45:53.000Z
examples/tests/test_example_aircraft.py
GodotMisogi/openconcept
8206cb2d4303cb83e89d4075649bf69118384486
[ "MIT" ]
25
2018-12-16T20:32:17.000Z
2022-03-16T14:53:07.000Z
examples/tests/test_example_aircraft.py
GodotMisogi/openconcept
8206cb2d4303cb83e89d4075649bf69118384486
[ "MIT" ]
24
2018-07-27T06:31:01.000Z
2022-03-13T15:27:07.000Z
from __future__ import division import unittest import numpy as np from openmdao.utils.assert_utils import assert_near_equal, assert_check_partials from openmdao.api import IndepVarComp, Group, Problem from examples.B738 import run_738_analysis from examples.TBM850 import run_tbm_analysis from examples.HybridTwin_ther...
58.793103
132
0.723988
63cc33d6dc3e851f55005ba0bb2dbd82b2e93325
2,156
py
Python
python/insBtree.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
python/insBtree.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
python/insBtree.py
Ayushd70/RetartedCodes
301ced178a0ec352b2d127e19028845de950551d
[ "MIT" ]
null
null
null
# Inserting a key on a B-tree in Python # Create a node class BTreeNode: def __init__(self, leaf=False): self.leaf = leaf self.keys = [] self.child = [] # Tree class BTree: def __init__(self, t): self.root = BTreeNode(True) self.t = t # Insert no...
25.364706
57
0.425788
1f67c046d9ca79a0a7370c67cd2f3f62c4aa8ceb
5,064
py
Python
neoman/model/applet.py
Yubico/yubikey-neo-manager
94859366f054636acc13f47fa02f2fbd0134da41
[ "BSD-2-Clause" ]
49
2015-01-07T14:21:06.000Z
2021-11-16T21:24:11.000Z
neoman/model/applet.py
DalavanCloud/yubikey-neo-manager-dpkg
e671c43020ec0c614bc140bfaf9b185d22a8a5d7
[ "BSD-2-Clause" ]
32
2015-01-20T21:17:59.000Z
2018-07-10T22:23:15.000Z
neoman/model/applet.py
DalavanCloud/yubikey-neo-manager-dpkg
e671c43020ec0c614bc140bfaf9b185d22a8a5d7
[ "BSD-2-Clause" ]
10
2015-03-15T21:06:31.000Z
2021-11-16T21:24:04.000Z
# Copyright (c) 2013 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
34.684932
77
0.637046
7bd5ae598008d3affdbda15edf7eb2a9c32ebad6
2,395
py
Python
lib/third_party/dns/hash.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
2
2019-01-13T09:16:31.000Z
2019-02-15T03:30:28.000Z
lib/third_party/dns/hash.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/third_party/dns/hash.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
2
2020-11-04T03:08:21.000Z
2020-11-05T08:14:41.000Z
# Copyright (C) 2010 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND NOMIN...
35.220588
72
0.637578
821a60bc214e53c61c3ea7a77ac17fd965145e38
4,207
py
Python
test/test_design_tag_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
test/test_design_tag_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
test/test_design_tag_api.py
tweak-com-public/tweak-api-client-python
019f86da11fdb12683d516f8f37db5d717380bcc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ tweak-api Tweak API to integrate with all the Tweak services. You can find out more about Tweak at <a href='https://www.tweak.com'>https://www.tweak.com</a>, #tweak. OpenAPI spec version: 1.0.8-beta.0 Generated by: https://github.com/swagger-api/swagger-codegen.git ...
25.041667
165
0.643214
795410c29bcc3ba58f34780f4ac57eb58e19dab7
1,550
py
Python
tests/symmetries_t.py
JunaidAkhter/vmc_jax
4f0dcc9f32cb6885cad3c5d797d9f9e01247f737
[ "MIT" ]
null
null
null
tests/symmetries_t.py
JunaidAkhter/vmc_jax
4f0dcc9f32cb6885cad3c5d797d9f9e01247f737
[ "MIT" ]
null
null
null
tests/symmetries_t.py
JunaidAkhter/vmc_jax
4f0dcc9f32cb6885cad3c5d797d9f9e01247f737
[ "MIT" ]
null
null
null
import sys # Find jVMC package sys.path.append(sys.path[0] + "/..") import unittest import jax from jax.config import config config.update("jax_enable_x64", True) import jax.random as random import jax.numpy as jnp import numpy as np import jVMC import jVMC.util.symmetries as symmetries import jVMC.global_defs as ...
31
164
0.65871
211145c20ebdbfa8f4031cef83e88b4cbbd6214f
727
py
Python
lib/textracttools/setup.py
aws-samples/amazon-textract-large-scale-selectable-pdf
e62b1c5ed79c02008783bc1361d70f0b5b69e0b7
[ "MIT-0" ]
4
2022-01-12T15:30:54.000Z
2022-02-28T22:12:17.000Z
lib/textracttools/setup.py
aws-samples/amazon-textract-large-scale-selectable-pdf
e62b1c5ed79c02008783bc1361d70f0b5b69e0b7
[ "MIT-0" ]
null
null
null
lib/textracttools/setup.py
aws-samples/amazon-textract-large-scale-selectable-pdf
e62b1c5ed79c02008783bc1361d70f0b5b69e0b7
[ "MIT-0" ]
2
2021-10-24T01:43:12.000Z
2022-01-21T20:14:33.000Z
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="textracttools", version="1.0.1", author="Marcel Vonlanthen", author_email="vonlanth@amazon.com", description="A collection of tools to work with Amazon Textract", lon...
31.608696
69
0.668501
19d7703a3077a3f84e79b9de917a58a40e380eaa
7,386
py
Python
web2py/gluon/custom_import.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
9
2017-01-13T02:38:41.000Z
2021-04-08T00:44:39.000Z
web2py/gluon/custom_import.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
null
null
null
web2py/gluon/custom_import.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
4
2017-01-05T16:25:25.000Z
2019-12-12T20:07:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import __builtin__ import os import re import sys import threading import traceback from gluon import current NATIVE_IMPORTER = __builtin__.__import__ INVALID_MODULES = set(('', 'gluon', 'applications', 'custom_import')) # backward compatibility API def custom_import_i...
37.30303
87
0.579475
0d54f8be1bc2721feeb94ac10dfda95a7fb6fb1a
1,504
py
Python
psiturk/setup_example.py
kahana-sysadmin/psiTurk
bc4b4355e76240ca09762202744a565465bc3da9
[ "MIT" ]
null
null
null
psiturk/setup_example.py
kahana-sysadmin/psiTurk
bc4b4355e76240ca09762202744a565465bc3da9
[ "MIT" ]
null
null
null
psiturk/setup_example.py
kahana-sysadmin/psiTurk
bc4b4355e76240ca09762202744a565465bc3da9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module sets up a demo experiment to use with psiTurk. """ from __future__ import generator_stop import os from distutils import dir_util, file_util EXAMPLE_DIR = os.path.join(os.path.dirname(__file__), "example") DEFAULT_CONFIG_FILE = os.path.join(os.path.dirname(__file__), ...
35.809524
87
0.668883
9367e504f52a53ba4594140c87e88947836e6558
1,473
py
Python
setup.py
vitalyisaev2/plecoptera
6887c9e8d85a62e3941ba95e769cf4301182d072
[ "MIT" ]
3
2022-02-03T13:29:02.000Z
2022-02-04T16:56:58.000Z
setup.py
vitalyisaev2/rbfopt-go
6887c9e8d85a62e3941ba95e769cf4301182d072
[ "MIT" ]
null
null
null
setup.py
vitalyisaev2/rbfopt-go
6887c9e8d85a62e3941ba95e769cf4301182d072
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import pathlib HERE = pathlib.Path(__file__).parent setup(name='rbfopt-go', # version_config={ # "dev_template": "{tag}", # }, setuptools_git_versioning={ "enabled": True, "template": "{tag}", "dirty_template": "{tag...
28.882353
110
0.532926
46311fc20fc47ed0d7b2a331db485d39ecf1f43b
33,434
py
Python
Src/StdLib/Lib/mhlib.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
build/cmd/win32/Python27/Lib/mhlib.py
IamBaoMouMou/AliOS-Things
195a9160b871b3d78de6f8cf6c2ab09a71977527
[ "Apache-2.0" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
build/cmd/win32/Python27/Lib/mhlib.py
IamBaoMouMou/AliOS-Things
195a9160b871b3d78de6f8cf6c2ab09a71977527
[ "Apache-2.0" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
"""MH interface -- purely object-oriented (well, almost) Executive summary: import mhlib mh = mhlib.MH() # use default mailbox directory and profile mh = mhlib.MH(mailbox) # override mailbox location (default from profile) mh = mhlib.MH(mailbox, profile) # override mailbox and profile mh.error(format, ...)...
33.234592
79
0.532452
4473f8038e41c6cc220e8a2daccb06350659c666
5,658
py
Python
ctapipe/utils/table_interpolator.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
ctapipe/utils/table_interpolator.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
ctapipe/utils/table_interpolator.py
orelgueta/ctapipe
ee28440e83cc283ccd57428d5fdad764a1e786f0
[ "BSD-3-Clause" ]
null
null
null
""" Table interpolation class, to allow interpolation of 2D images in any number of other dimensions. Reads in an interim FITS table as defined below: Tables organised as a standard FITS image file with each table as an image HDU. --------------- First (primary) HDU must contain the following header entries: CRPIXx...
32.705202
94
0.575115
57f133fc6f597a2fb184bfa2d20ab165481e6b8e
9,280
py
Python
miapy/miapy/evaluation/evaluator.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
1
2022-02-11T18:49:34.000Z
2022-02-11T18:49:34.000Z
miapy/miapy/evaluation/evaluator.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
null
null
null
miapy/miapy/evaluation/evaluator.py
SCAN-NRAD/BrainRegressorCNN
7917c6a6c4e3728db17ec762c63f8253392e6c04
[ "BSD-3-Clause" ]
null
null
null
"""The evaluator module simplifies the evaluation of segmentation results. The module provides the possibility of calculate several evaluation metrics in parallel and output them in any format. """ import csv import os from abc import ABCMeta, abstractmethod from typing import Union import numpy as np import SimpleIT...
33.142857
123
0.614547
46413e0416fafdf8015dfd2bf75d7cc4865825bf
6,681
py
Python
moldesign/units/unitsystem.py
Autodesk/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
147
2016-07-15T18:53:55.000Z
2022-01-30T04:36:39.000Z
moldesign/units/unitsystem.py
cherishyli/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
151
2016-07-15T21:35:11.000Z
2019-10-10T08:57:29.000Z
moldesign/units/unitsystem.py
cherishyli/molecular-design-toolkit
5f45a47fea21d3603899a6366cb163024f0e2ec4
[ "Apache-2.0" ]
33
2016-08-02T00:04:51.000Z
2021-09-02T10:05:04.000Z
from __future__ import print_function, absolute_import, division from future.builtins import * from future import standard_library standard_library.install_aliases() # Copyright 2017 Autodesk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with ...
35.163158
95
0.571771
e9e9e1971b50c1cebf5f16aff4ebbac06d5dd2f6
1,091
py
Python
wagtail/project_template/project_name/settings/production.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
wagtail/project_template/project_name/settings/production.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
wagtail/project_template/project_name/settings/production.py
willcodefortea/wagtail
2723b85ed8f356bde89d9541105b8cea4812d6a1
[ "BSD-3-Clause" ]
null
null
null
from .base import * # Disable debug mode DEBUG = False TEMPLATE_DEBUG = False # Compress static files offline # http://django-compressor.readthedocs.org/en/latest/settings/#django.conf.settings.COMPRESS_OFFLINE COMPRESS_OFFLINE = True # Send notification emails as a background task using Celery, # to prevent th...
22.265306
100
0.688359
42464d1ae603a76551736dc855303cb54a6a5142
6,606
py
Python
triton/examples/cntk/cntk_mnist_ex4.py
csr/scicomp-docs
7402654e6036e10922936fa1021ff4daa88cad5c
[ "CC-BY-4.0", "CC0-1.0" ]
13
2020-09-05T21:49:53.000Z
2022-03-31T08:52:57.000Z
triton/examples/cntk/cntk_mnist_ex4.py
csr/scicomp-docs
7402654e6036e10922936fa1021ff4daa88cad5c
[ "CC-BY-4.0", "CC0-1.0" ]
112
2020-06-01T15:42:16.000Z
2022-03-30T10:39:26.000Z
triton/examples/cntk/cntk_mnist_ex4.py
csr/scicomp-docs
7402654e6036e10922936fa1021ff4daa88cad5c
[ "CC-BY-4.0", "CC0-1.0" ]
23
2020-06-03T12:41:39.000Z
2022-03-10T12:33:23.000Z
# Microsoft Cognitive Toolkit (CNTK) # # Copyright (c) Microsoft Corporation. All rights reserved. # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includin...
41.2875
462
0.736906
7df4e7c9b491aea67059393f708e1acbff87aa48
7,132
py
Python
distributed/bokeh/status_monitor.py
martindurant/distributed
624ba2a815402afa08e1d0ff278a578181bbb480
[ "BSD-3-Clause" ]
null
null
null
distributed/bokeh/status_monitor.py
martindurant/distributed
624ba2a815402afa08e1d0ff278a578181bbb480
[ "BSD-3-Clause" ]
null
null
null
distributed/bokeh/status_monitor.py
martindurant/distributed
624ba2a815402afa08e1d0ff278a578181bbb480
[ "BSD-3-Clause" ]
1
2021-10-11T13:46:48.000Z
2021-10-11T13:46:48.000Z
from __future__ import print_function, division, absolute_import import json from tornado import gen from tornado.httpclient import AsyncHTTPClient from tornado.ioloop import IOLoop, PeriodicCallback from ..core import rpc from ..utils import is_kernel, log_errors, key_split from ..executor import default_executor f...
37.93617
89
0.610208
276de52237d7dec844ce1e380689314a9cd6e6b6
8,384
py
Python
nn_dataflow/core/data_layout.py
Jrebort/nn_dataflow
4138d38b30a1ed95250bb61f69e5979beea37ca7
[ "BSD-3-Clause" ]
null
null
null
nn_dataflow/core/data_layout.py
Jrebort/nn_dataflow
4138d38b30a1ed95250bb61f69e5979beea37ca7
[ "BSD-3-Clause" ]
null
null
null
nn_dataflow/core/data_layout.py
Jrebort/nn_dataflow
4138d38b30a1ed95250bb61f69e5979beea37ca7
[ "BSD-3-Clause" ]
null
null
null
""" $lic$ Copyright (C) 2016-2020 by Tsinghua University and The Board of Trustees of Stanford University This program is free software: you can redistribute it and/or modify it under the terms of the Modified BSD-3 License as published by the Open Source Initiative. This program is distributed in the hope that it wi...
36.77193
80
0.562977
8c9387b1be36f123a1aa6c8f763577680d3ec6ec
66
py
Python
test/test_spiral_matrix_ii.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
test/test_spiral_matrix_ii.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
test/test_spiral_matrix_ii.py
spencercjh/sync-leetcode-today-problem-python3-example
4957e5eadb697334741df0fc297bec2edaa9e2ab
[ "Apache-2.0" ]
null
null
null
solution = SpiralMatrixIi() assert X == solution.generateMatrix( )
33
38
0.772727
a1fdea95637afbefc72e527cc71c57e5b51ace69
1,955
py
Python
samples/snippets/dataset_service/import_data_text_classification_single_label_sample.py
dizcology/python-aiplatform
1a135775966c8a2303ded529eba514dcf9db7205
[ "Apache-2.0" ]
180
2020-09-23T17:21:15.000Z
2022-03-30T17:25:47.000Z
samples/snippets/import_data_text_classification_single_label_sample.py
pompipo/python-aiplatform
3612b05c62dfb46822cd2c1798fd47349dba33bc
[ "Apache-2.0" ]
601
2020-09-23T16:23:44.000Z
2022-03-31T19:08:23.000Z
samples/snippets/import_data_text_classification_single_label_sample.py
pompipo/python-aiplatform
3612b05c62dfb46822cd2c1798fd47349dba33bc
[ "Apache-2.0" ]
109
2020-09-23T16:22:04.000Z
2022-03-28T21:18:29.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.5
142
0.754987
3a296178aeb9c03bc2142db197ae9c2a2f602f39
2,527
py
Python
homeassistant/components/automation/config.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
1
2021-11-13T23:06:27.000Z
2021-11-13T23:06:27.000Z
homeassistant/components/automation/config.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
52
2020-07-14T14:12:26.000Z
2022-03-31T06:24:02.000Z
homeassistant/components/automation/config.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
1
2021-04-30T01:57:13.000Z
2021-04-30T01:57:13.000Z
"""Config validation helper for the automation integration.""" import asyncio import voluptuous as vol from homeassistant.components.device_automation.exceptions import ( InvalidDeviceAutomationConfig, ) from homeassistant.config import async_log_exception, config_without_domain from homeassistant.exceptions impo...
31.5875
88
0.71112
39ef9140dee2cb303d9db1e31c6386c0736d9056
125
py
Python
pythonScript/script1.py
pBalthazar/IcarusMissionOptimiser
9ade4bc4561add34170f9e0cc0c1d195a56ee3f4
[ "MIT" ]
null
null
null
pythonScript/script1.py
pBalthazar/IcarusMissionOptimiser
9ade4bc4561add34170f9e0cc0c1d195a56ee3f4
[ "MIT" ]
null
null
null
pythonScript/script1.py
pBalthazar/IcarusMissionOptimiser
9ade4bc4561add34170f9e0cc0c1d195a56ee3f4
[ "MIT" ]
null
null
null
import sys import json data = {} data['result1'] = 'data1' data['result2'] = 'data2' print(json.dumps(data)) sys.exit(0)
10.416667
25
0.648
ca01e05cc73510acda2ee6dfc5a60c9f2c64e345
2,447
py
Python
data/p4VQE/R4/benchmark/startQiskit410.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit410.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit410.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=12 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.188889
118
0.63302
c2480de7222736bb9128d2f0450f4ab6ca5352b4
2,561
py
Python
plib/cleanlifelog.py
slowrunner/create3ros
a1828775e755ea818a6513b82d696e0ac6f093d5
[ "MIT" ]
null
null
null
plib/cleanlifelog.py
slowrunner/create3ros
a1828775e755ea818a6513b82d696e0ac6f093d5
[ "MIT" ]
null
null
null
plib/cleanlifelog.py
slowrunner/create3ros
a1828775e755ea818a6513b82d696e0ac6f093d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # cleanlifelog.py # # save life.log to life.log.timestamp # read ~/create3ros/life.log file into list # starting at next to last line # loop until "boot logged line" # if line is an execution log line: delete it # else point to previous line # write out modified file import datetime from...
29.436782
107
0.696212
35833d827f17e3f2ccf57f551e4d7505d8761671
704
py
Python
.venv/lib/python2.7/site-packages/celery/concurrency/solo.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
.venv/lib/python2.7/site-packages/celery/concurrency/solo.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
3
2020-02-11T23:03:45.000Z
2021-06-10T18:05:11.000Z
oo/lib/python3.5/site-packages/celery/concurrency/solo.py
chunky2808/SPOJ-history-Django-App
490c58b1593cd3626f0ddc27fdd09c6e8d1c56e1
[ "MIT" ]
1
2019-10-26T04:20:52.000Z
2019-10-26T04:20:52.000Z
# -*- coding: utf-8 -*- """Single-threaded execution pool.""" from __future__ import absolute_import, unicode_literals import os from .base import BasePool, apply_target __all__ = ['TaskPool'] class TaskPool(BasePool): """Solo task pool (blocking, inline, fast).""" body_can_be_buffer = True def __init_...
25.142857
56
0.59517
59f702631d23a60d384ee6f663b006d8f6286a92
523
py
Python
Python/Mundo03/Exercicios/ex090.py
eStev4m/CursoPython
8b52a618e67c80d66518ef91c1d4596a2bfddc22
[ "MIT" ]
null
null
null
Python/Mundo03/Exercicios/ex090.py
eStev4m/CursoPython
8b52a618e67c80d66518ef91c1d4596a2bfddc22
[ "MIT" ]
null
null
null
Python/Mundo03/Exercicios/ex090.py
eStev4m/CursoPython
8b52a618e67c80d66518ef91c1d4596a2bfddc22
[ "MIT" ]
null
null
null
'''Faça um programa que leia nome e média de um aluno, guardando também a situação em um dicionário. No final, mostre o conteúdo da estrutura na tela.''' classe = {} classe['Nome'] = str(input('Nome: ')) classe['Média'] = float(input(f'Média de {classe["Nome"]}: ')) if classe['Média'] >= 7: classe['Situação'] = '...
32.6875
153
0.629063
0562ff39873f307e157d718c71b04f524b7ae5ef
2,631
py
Python
python/main.py
genebit/pong-game
b2222a94592de5e869b9feafce61f5a25728622e
[ "MIT" ]
null
null
null
python/main.py
genebit/pong-game
b2222a94592de5e869b9feafce61f5a25728622e
[ "MIT" ]
null
null
null
python/main.py
genebit/pong-game
b2222a94592de5e869b9feafce61f5a25728622e
[ "MIT" ]
null
null
null
import pygame import sys import random import time import soundmanager import texts import players import movements import _ball FPS = 60 WINDOW_WIDTH, WINDOW_HEIGHT = (600, 400) WHITE = (255, 255, 255) BLACK = (20, 20, 20) PLAYERSPEED = 8 p1_velo = [0, PLAYERSPEED] p2_velo = [0, PLAYERSPEED] B...
27.694737
106
0.610034
1ed97b0b983d568d1cb0f8f10c941de7bbc49026
2,370
py
Python
evidence_inference/models/heuristic_utils.py
EricJoraskie/evidence-inference
a661e8c14f973398380c8865cf2f27a535aaaf6d
[ "MIT" ]
42
2019-04-05T03:07:19.000Z
2022-03-04T08:30:43.000Z
evidence_inference/models/heuristic_utils.py
EricJoraskie/evidence-inference
a661e8c14f973398380c8865cf2f27a535aaaf6d
[ "MIT" ]
7
2019-07-19T08:34:17.000Z
2021-10-29T18:49:15.000Z
evidence_inference/models/heuristic_utils.py
EricJoraskie/evidence-inference
a661e8c14f973398380c8865cf2f27a535aaaf6d
[ "MIT" ]
12
2019-04-12T16:20:30.000Z
2021-11-02T21:24:16.000Z
# -*- coding: utf-8 -*- import re from string import punctuation from functools import reduce import spacy nlp = spacy.load('en_core_web_sm') """ Removes the punctuation from the given string s. @param str s is the string to be stripped of punctuation. """ def strip_punctuation(s): return ''.join(c for c in s i...
25.76087
89
0.620675
30c9ce900e29c607e9abb412f29f16903d85116e
2,965
py
Python
app/models.py
CristianSifuentes/FlaskWebApp
09198403d3e633cb3ca94a70df22416f8e06c162
[ "MIT" ]
1
2020-06-27T00:35:07.000Z
2020-06-27T00:35:07.000Z
app/models.py
CristianSifuentes/FlaskWebApp
09198403d3e633cb3ca94a70df22416f8e06c162
[ "MIT" ]
null
null
null
app/models.py
CristianSifuentes/FlaskWebApp
09198403d3e633cb3ca94a70df22416f8e06c162
[ "MIT" ]
null
null
null
import datetime from flask_login import UserMixin from werkzeug.security import generate_password_hash from werkzeug.security import check_password_hash from . import db class Task(db.Model): __tablename__ = 'tasks' id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(50)) de...
27.201835
74
0.627993
33f91eb785c8bec8dac8b6a36343f8e362f7a0fd
555
py
Python
resources/PyInstaller-3.0/tests/functional/scripts/pyi_lib_zmq.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/functional/scripts/pyi_lib_zmq.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
resources/PyInstaller-3.0/tests/functional/scripts/pyi_lib_zmq.py
dvt32/mypymodoro
7d2db639ea828e4db9caa84cd6f747f542ab22d8
[ "MIT" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2015, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
34.6875
78
0.562162
8aa06ab956468e7ac28ec29eb6adc64da54838f4
310
py
Python
app/api/v1/__init__.py
TianJin85/starter
b1829f023ddda787af77ab54320a64fa05a250ae
[ "MIT" ]
1
2021-06-27T09:48:28.000Z
2021-06-27T09:48:28.000Z
app/api/v1/__init__.py
TianJin85/starter
b1829f023ddda787af77ab54320a64fa05a250ae
[ "MIT" ]
null
null
null
app/api/v1/__init__.py
TianJin85/starter
b1829f023ddda787af77ab54320a64fa05a250ae
[ "MIT" ]
null
null
null
""" :copyright: © 2019 by the Lin team. :license: MIT, see LICENSE for more details. """ from flask import Blueprint from app.api.v1 import book, wechat def create_v1(): bp_v1 = Blueprint('v1', __name__) # book.book_api.register(bp_v1) wechat.wechat_api.register(bp_v1) return bp_v1
20.666667
48
0.683871
7a850fc0b5825515914fbd4e159a00824fa63e5d
1,255
py
Python
src/officehours_ui/context_processors.py
SI504/office-hours-app
90b8062cd6714ceaa48236eb4a3bbdf0b088712e
[ "Apache-2.0" ]
null
null
null
src/officehours_ui/context_processors.py
SI504/office-hours-app
90b8062cd6714ceaa48236eb4a3bbdf0b088712e
[ "Apache-2.0" ]
null
null
null
src/officehours_ui/context_processors.py
SI504/office-hours-app
90b8062cd6714ceaa48236eb4a3bbdf0b088712e
[ "Apache-2.0" ]
6
2021-04-02T17:39:58.000Z
2021-11-24T21:30:18.000Z
from typing import List, TypedDict, Union from django.conf import settings from officehours_api import backends from officehours_api.backends.backend_dict import BackendDict def feedback(request): return {'FEEDBACK_EMAIL': getattr(settings, 'FEEDBACK_EMAIL', None)} def login_url(request): return {'LOGIN_U...
27.888889
77
0.663745
f5f11742801f9bb8063e02dfb04e23636e4b8afc
3,577
py
Python
hbaselines/algorithms/utils.py
brandontrabucco/h-baselines
d61d4bd0286ea757deba04741f8da710c5a05c9e
[ "MIT" ]
null
null
null
hbaselines/algorithms/utils.py
brandontrabucco/h-baselines
d61d4bd0286ea757deba04741f8da710c5a05c9e
[ "MIT" ]
null
null
null
hbaselines/algorithms/utils.py
brandontrabucco/h-baselines
d61d4bd0286ea757deba04741f8da710c5a05c9e
[ "MIT" ]
null
null
null
"""Utility method for the algorithm classes.""" from hbaselines.fcnet.td3 import FeedForwardPolicy as TD3FeedForwardPolicy from hbaselines.fcnet.sac import FeedForwardPolicy as SACFeedForwardPolicy from hbaselines.fcnet.ppo import FeedForwardPolicy as PPOFeedForwardPolicy from hbaselines.goal_conditioned.td3 import Goa...
31.377193
78
0.7305
bb47c86eff2ae2a85660f0a6ff9affb5220402f0
7,190
py
Python
examples/ndc_grid.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
125
2016-11-24T09:04:28.000Z
2022-01-22T14:06:56.000Z
examples/ndc_grid.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
52
2017-11-08T23:23:02.000Z
2022-03-20T03:17:39.000Z
examples/ndc_grid.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
25
2017-08-27T10:50:43.000Z
2022-01-29T14:56:05.000Z
# # File: # ndc_grid.py # # Synopsis: # Illustrates how to draw primitives and text using NDC coordinates. # # Categories: # polygons # polylines # polymarkers # text # # Author: # Mary Haley # # Date of initial publication: # April 2008 # # Description: # This example shows how to dr...
28.645418
75
0.678164
ef95af9a36d7c32b96a18a81d3eecde1e3bc56d3
1,674
py
Python
src/configurator.py
theneosloth/mokujin
64a8e7a50d108a3ae7be2a055f0d0fb320525758
[ "MIT" ]
null
null
null
src/configurator.py
theneosloth/mokujin
64a8e7a50d108a3ae7be2a055f0d0fb320525758
[ "MIT" ]
null
null
null
src/configurator.py
theneosloth/mokujin
64a8e7a50d108a3ae7be2a055f0d0fb320525758
[ "MIT" ]
null
null
null
import os import json DEFAULT_DELETE_ATER = 20 class Configurator: def __init__(self, config_path=None): self.config_path = config_path self.config_data = { "DISCORD_TOKEN": "", "GITHUB_TOKEN": "", "FEEDBACK_CHANNEL_ID": 0 } def create_file_if_not_...
29.892857
67
0.599164
102160dd5362406864ed86b6250ad682a8bab1fe
9,505
py
Python
kitsune/search/v2/base.py
timo955/kitsune
9447d87493d4d83c50819fc0ab74706a663afc96
[ "BSD-3-Clause" ]
null
null
null
kitsune/search/v2/base.py
timo955/kitsune
9447d87493d4d83c50819fc0ab74706a663afc96
[ "BSD-3-Clause" ]
null
null
null
kitsune/search/v2/base.py
timo955/kitsune
9447d87493d4d83c50819fc0ab74706a663afc96
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod from datetime import datetime from django.conf import settings from django.utils import timezone from elasticsearch_dsl import Document as DSLDocument from elasticsearch_dsl import InnerDoc, MetaField from elasticsearch_dsl import Search as DSLSearch from elasticsearch_dsl import fi...
37.42126
107
0.605471
321b9b1e7b139bac222f1a2ed72d32f88bdcb059
16,966
py
Python
sparsePlane/sparseplane/modeling/roi_heads/embedding_loss.py
jinlinyi/SparsePlanes
fb063dc48f4e2e1a03dd47702275e1b8a4f5c223
[ "MIT" ]
69
2021-03-26T17:56:47.000Z
2022-03-24T21:51:21.000Z
sparsePlane/sparseplane/modeling/roi_heads/embedding_loss.py
jinlinyi/SparsePlanes
fb063dc48f4e2e1a03dd47702275e1b8a4f5c223
[ "MIT" ]
7
2021-08-13T08:50:33.000Z
2022-03-13T15:27:01.000Z
sparsePlane/sparseplane/modeling/roi_heads/embedding_loss.py
jinlinyi/SparsePlanes
fb063dc48f4e2e1a03dd47702275e1b8a4f5c223
[ "MIT" ]
7
2021-03-29T07:56:52.000Z
2021-09-19T16:27:22.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pad_sequence def hardest_negative(loss_values): hard_negative = np.argmax(loss_values) return hard_negative if loss_values[hard_negative] > 0 else None def random_hard_negative(loss_values): ...
41.279805
120
0.624307
f8986cc3d0ea46c64749b6232390adadef62e509
1,701
py
Python
app/core/migrations/0001_initial.py
devsachitha/recipe-app-api
e2371869706a9a075f78e9ef0ea2d8931235d7de
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
devsachitha/recipe-app-api
e2371869706a9a075f78e9ef0ea2d8931235d7de
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
devsachitha/recipe-app-api
e2371869706a9a075f78e9ef0ea2d8931235d7de
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-14 11:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', f...
50.029412
266
0.637272
7905c70f99c164f6b3dd1cb3a5b80c7d6698f988
1,339
py
Python
src/doghouse/models.py
JuniorGunner/ConcilBackendTest
5ff07de350783e6168f01acd9a2fba0f9e81f66c
[ "MIT" ]
null
null
null
src/doghouse/models.py
JuniorGunner/ConcilBackendTest
5ff07de350783e6168f01acd9a2fba0f9e81f66c
[ "MIT" ]
null
null
null
src/doghouse/models.py
JuniorGunner/ConcilBackendTest
5ff07de350783e6168f01acd9a2fba0f9e81f66c
[ "MIT" ]
null
null
null
from django.db import models import os def get_image_path(instance, filename): return os.path.join('pics', str(instance.id), filename) # Create your models here. class Pets(models.Model): pet_foto = models.ImageField(upload_to=get_image_path, blank=True, null=True) DOG = 'C' CAT = 'G' ...
30.431818
101
0.605676
e9b1d7f1604f7b7963be20df9ac9e4072cbd2416
7,593
py
Python
SRC/engine/IO/GUI/profilefunctionwidget.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
SRC/engine/IO/GUI/profilefunctionwidget.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
SRC/engine/IO/GUI/profilefunctionwidget.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
41.71978
80
0.66535
e0835983f2b3edf4c8a1222ac7a218bd0ecc5235
1,015
py
Python
tests/_utilities/fixtures/flask.py
alysivji/github-adapter
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
55
2019-05-05T01:20:58.000Z
2022-01-10T18:03:05.000Z
tests/_utilities/fixtures/flask.py
alysivji/github-adapter
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
222
2019-05-03T16:31:26.000Z
2021-08-28T23:49:03.000Z
tests/_utilities/fixtures/flask.py
busy-beaver-dev/busy-beaver
5e3543f41f189fbe4a50d64e3d6734dc765579b4
[ "MIT" ]
19
2019-04-27T19:49:32.000Z
2020-06-30T19:52:09.000Z
from flask_login.test_client import FlaskLoginClient import pytest from busy_beaver.app import create_app @pytest.fixture(scope="module") def app(): """Session-wide test `Flask` application. Establish an application context before running the tests. """ app = create_app(testing=True) app.test_cl...
22.555556
76
0.699507
3c4a1a96aa3d81b666c54c4324d731f313d91df6
4,232
py
Python
evaluation/plot_breakdown.py
DivyanshuSaxena/Medes
2e28dec03c37ebf10bc5bfcf56c812f262f5e507
[ "Apache-2.0" ]
null
null
null
evaluation/plot_breakdown.py
DivyanshuSaxena/Medes
2e28dec03c37ebf10bc5bfcf56c812f262f5e507
[ "Apache-2.0" ]
null
null
null
evaluation/plot_breakdown.py
DivyanshuSaxena/Medes
2e28dec03c37ebf10bc5bfcf56c812f262f5e507
[ "Apache-2.0" ]
null
null
null
import argparse import ast import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.patches as mpatches from matplotlib.ticker import FormatStrFormatter plt.rcParams['text.usetex'] = True #Let TeX do the typsetting plt.rcParams['text.latex.preamble'] = [r'\usepackag...
30.014184
134
0.644849
00e852403097ce461790419e4aff700e8d3cfabe
1,900
py
Python
blockchain/toycoin/network/show.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
2
2021-07-14T07:45:26.000Z
2021-08-11T19:28:42.000Z
blockchain/toycoin/network/show.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
null
null
null
blockchain/toycoin/network/show.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
null
null
null
"""Helpers for converting objects sent over network to strings. """ from toycoin import block, transaction # type: ignore from toycoin.network import serialize # type: ignore from typing import List # type: ignore ################################################################################ def show_txn_pair(tx...
30.645161
80
0.582632
5621fe4078919cd684b3392c3c712552f526b3cb
2,111
py
Python
qulab/math/opt.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
qulab/math/opt.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
qulab/math/opt.py
ParanoiaSYT/Qulab-backup
09ec5457145b3789d4c1ac02c43dd3e6dfafc96f
[ "MIT" ]
null
null
null
import asyncio import functools import nest_asyncio import numpy as np from scipy.optimize import minimize nest_asyncio.apply() def get_initial_simplex(start, senstive=None): if senstive is None: senstive = np.ones(len(start)) initial_simplex = [list(start)] for i, v in enumerate...
23.988636
75
0.556608
81fa9479d1e90891c7d535a1e32c041504a4c5a8
5,293
py
Python
python/ray/util/collective/tests/distributed_gpu_tests/test_distributed_allgather.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
22
2018-05-08T05:52:34.000Z
2020-04-01T10:09:55.000Z
python/ray/util/collective/tests/distributed_gpu_tests/test_distributed_allgather.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
python/ray/util/collective/tests/distributed_gpu_tests/test_distributed_allgather.py
mgelbart/ray
4cec2286572e368a4bd64aae467751a384eff62d
[ "Apache-2.0" ]
10
2018-04-27T10:50:59.000Z
2020-02-24T02:41:43.000Z
"""Test the allgather API on a distributed Ray cluster.""" import pytest import ray import cupy as cp import torch from ray.util.collective.tests.util import ( create_collective_workers, init_tensors_for_gather_scatter, ) @pytest.mark.parametrize("tensor_backend", ["cupy", "torch"]) @pytest.mark.parametrize...
38.079137
88
0.618364
d35ab95edecf6e8bc3ee169c3a40eb142d04cbcd
2,747
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_01_01/aio/_monitor_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_01_01/aio/_monitor_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_01_01/aio/_monitor_management_client.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# 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.621212
112
0.699672
4786b939ec460eee95d52051b45ac3a53fd7848f
6,700
py
Python
finishedgames/catalogsources/management/commands/fetch_games.py
Kartones/finished-games
9b1f86aee3ea26be50b666887e3bdecad2c8f757
[ "Unlicense" ]
7
2019-01-23T20:09:00.000Z
2021-12-19T17:50:48.000Z
finishedgames/catalogsources/management/commands/fetch_games.py
Kartones/finished-games
9b1f86aee3ea26be50b666887e3bdecad2c8f757
[ "Unlicense" ]
2
2019-08-11T11:16:00.000Z
2019-09-04T00:07:04.000Z
finishedgames/catalogsources/management/commands/fetch_games.py
Kartones/finished-games
9b1f86aee3ea26be50b666887e3bdecad2c8f757
[ "Unlicense" ]
2
2019-01-23T20:09:05.000Z
2020-09-06T10:43:25.000Z
from typing import Dict, List, Tuple, cast from catalogsources.helpers import clean_string_field from catalogsources.management.helpers import TimeProfiler, source_class_from_id, wait_if_needed from catalogsources.models import FetchedGame, FetchedPlatform from django.core.management.base import BaseCommand, CommandPa...
44.370861
117
0.57806
1b97f60f0136de49c0f31b052ce3d4c689f32d31
251
py
Python
vendor/packages/pylint/test/regrtest_data/decimal_inference.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/pylint/test/regrtest_data/decimal_inference.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/pylint/test/regrtest_data/decimal_inference.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
"""hum E1011 on .prec member is justifiable since Context instance are built using setattr/locals :( 2007/02/17 update: .prec attribute is now detected by astng :o) """ import decimal decimal.getcontext().prec = 200 print decimal.getcontext().prec
22.818182
76
0.756972
f70cb4b1b49d0fb0f3970e183f9e1c31c8780f60
13,476
py
Python
nomenklatura/resolver.py
opensanctions/nomenklatura
d845ff821a57beffb49b269b4d8c08f57bc588d7
[ "MIT" ]
4
2022-02-25T13:32:20.000Z
2022-03-15T23:35:42.000Z
nomenklatura/resolver.py
opensanctions/nomenklatura
d845ff821a57beffb49b269b4d8c08f57bc588d7
[ "MIT" ]
null
null
null
nomenklatura/resolver.py
opensanctions/nomenklatura
d845ff821a57beffb49b269b4d8c08f57bc588d7
[ "MIT" ]
1
2022-03-02T16:56:48.000Z
2022-03-02T16:56:48.000Z
import json import getpass import shortuuid # type: ignore from datetime import datetime from functools import lru_cache from collections import defaultdict from typing import Any, Dict, Generator, Generic, List, Optional, Set, Tuple, Union from followthemoney.types import registry from nomenklatura.entity import CE ...
34.642674
86
0.58875
d2037084e3cebaba8f3eced7b0c24bf337957571
1,926
py
Python
build/scripts/gen_mx_table.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
null
null
null
build/scripts/gen_mx_table.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
null
null
null
build/scripts/gen_mx_table.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
1
2018-08-06T14:13:12.000Z
2018-08-06T14:13:12.000Z
import sys tmpl = """ #include "yabs_mx_calc_table.h" #include <kernel/matrixnet/mn_sse.h> #include <library/archive/yarchive.h> #include <util/memory/blob.h> #include <util/generic/hash.h> #include <util/generic/ptr.h> #include <util/generic/singleton.h> using namespace NMatrixnet; extern "C" { extern const ...
25.342105
160
0.576324
7169a5754444a0920544054083feb44e027ba840
4,392
py
Python
lib/modules/powershell/situational_awareness/network/powerview/get_domain_policy.py
Gui-Luz/Empire
6f5eeff5f46dd085e1317cb09b39853a2fce5d13
[ "BSD-3-Clause" ]
5,720
2017-02-02T13:59:40.000Z
2022-03-31T09:50:10.000Z
lib/modules/powershell/situational_awareness/network/powerview/get_domain_policy.py
VookiBoo/Empire
5aae31e7de591282773d2c8498af04ee4e8778f5
[ "BSD-3-Clause" ]
866
2017-02-02T10:56:31.000Z
2020-01-17T07:47:05.000Z
lib/modules/powershell/situational_awareness/network/powerview/get_domain_policy.py
VookiBoo/Empire
5aae31e7de591282773d2c8498af04ee4e8778f5
[ "BSD-3-Clause" ]
2,181
2017-02-04T10:28:41.000Z
2022-03-31T04:36:56.000Z
from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Get-DomainPolicyData', 'Author': ['@harmj0y','@DisK0nn3cT','@OrOneEqualsOne'], 'Description': ('Returns the default domain or DC policy for a given domain or ...
38.526316
215
0.500911
9db3969be2831e39e609f818340159e4a3e03ab7
949
py
Python
AuTomtitServer/urls.py
Cytosine1999/AuTomtit
74880e6cc4f14ad1d8535f0a5283c8e9316aa082
[ "MIT" ]
1
2018-02-09T05:58:25.000Z
2018-02-09T05:58:25.000Z
AuTomtitServer/urls.py
Cytosine1999/AuTomtit
74880e6cc4f14ad1d8535f0a5283c8e9316aa082
[ "MIT" ]
null
null
null
AuTomtitServer/urls.py
Cytosine1999/AuTomtit
74880e6cc4f14ad1d8535f0a5283c8e9316aa082
[ "MIT" ]
null
null
null
"""AuTomtitServer URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
36.5
77
0.713383
c6862377ffaf327a67f2edc58cb16b877826d7de
2,832
py
Python
src/run_parliament.py
ScaleSec/parliament_role_runner
76ee0cd066d934364e12b7f4b199f80bbaff692b
[ "Apache-2.0" ]
1
2020-07-27T13:52:55.000Z
2020-07-27T13:52:55.000Z
src/run_parliament.py
ScaleSec/parliament_role_runner
76ee0cd066d934364e12b7f4b199f80bbaff692b
[ "Apache-2.0" ]
null
null
null
src/run_parliament.py
ScaleSec/parliament_role_runner
76ee0cd066d934364e12b7f4b199f80bbaff692b
[ "Apache-2.0" ]
null
null
null
"""Run Parliament on a role Usage: analyze_role --rolename <rolename> --profile <profile> Options: -h --help Show this screen. --version Show version. --rolename rolename Name of role to check. --profile profile ...
31.466667
151
0.651483
23d8db3deede52a53904c5b076bcff968d05a707
940
py
Python
teamwork/urls.py
ThePokerFaCcCe/teamwork
e6d3cfa7821ddba7a122b740e7f5dabb2b1eb316
[ "MIT" ]
null
null
null
teamwork/urls.py
ThePokerFaCcCe/teamwork
e6d3cfa7821ddba7a122b740e7f5dabb2b1eb316
[ "MIT" ]
null
null
null
teamwork/urls.py
ThePokerFaCcCe/teamwork
e6d3cfa7821ddba7a122b740e7f5dabb2b1eb316
[ "MIT" ]
null
null
null
"""teamwork URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
36.153846
77
0.687234