hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
99b6b35f13816552b4cd84cb44e3e226905a00e3
3,162
py
Python
app/src/aipcloud/sound/emotion/emotion.py
alaxa27/AIPCloud_Platform
31255753c1474557ca3fbb8e36ada15798305760
[ "MIT" ]
null
null
null
app/src/aipcloud/sound/emotion/emotion.py
alaxa27/AIPCloud_Platform
31255753c1474557ca3fbb8e36ada15798305760
[ "MIT" ]
null
null
null
app/src/aipcloud/sound/emotion/emotion.py
alaxa27/AIPCloud_Platform
31255753c1474557ca3fbb8e36ada15798305760
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from keras.models import model_from_json, Model import time import numpy as np import soundfile as sf import librosa import configparser
36.344828
123
0.604364
99b81f5a988fa113bf020c574ce9d52b6d962911
678
py
Python
employee/urls.py
shourya1997/django-crud
0a0e97d96ac3f067edcaa89ef9b8fd692cddffcf
[ "Apache-2.0" ]
null
null
null
employee/urls.py
shourya1997/django-crud
0a0e97d96ac3f067edcaa89ef9b8fd692cddffcf
[ "Apache-2.0" ]
8
2020-06-05T20:27:35.000Z
2021-09-22T18:22:42.000Z
employee/urls.py
shourya1997/django-crud
0a0e97d96ac3f067edcaa89ef9b8fd692cddffcf
[ "Apache-2.0" ]
null
null
null
from django.urls import path from rest_framework.authtoken.views import obtain_auth_token from employee.views import EmployeeCreateView, EmployeeListView, EmployeeUpdateView, login_view, register_view, logout_view app_name = 'employee' urlpatterns = [ path('e/create', EmployeeCreateView.as_view(), name='test'), ...
42.375
123
0.725664
99b83d49267866b6f0574773df24dd6315c40f0f
1,213
py
Python
src/selena/boards/forms.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
23
2015-01-10T18:17:58.000Z
2021-12-21T03:01:38.000Z
src/selena/boards/forms.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
20
2015-01-10T14:05:42.000Z
2016-08-09T07:48:50.000Z
src/selena/boards/forms.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
3
2015-01-10T18:27:30.000Z
2020-04-07T16:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django import forms from services.models import Service
23.784314
66
0.61418
99b840a2a2e359344dc940d3f6572705741d4bad
6,649
py
Python
Dev/Cpp/CreateHeader.py
NumAniCloud/Effekseer
f4547a57eea4c85b55cb8218bf6cac6af6d6dd37
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-11-21T01:34:30.000Z
2020-11-21T01:34:30.000Z
Dev/Cpp/CreateHeader.py
NumAniCloud/Effekseer
f4547a57eea4c85b55cb8218bf6cac6af6d6dd37
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Dev/Cpp/CreateHeader.py
NumAniCloud/Effekseer
f4547a57eea4c85b55cb8218bf6cac6af6d6dd37
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import re import codecs effekseerHeader = CreateHeader() effekseerHeader.readLines('Effekseer/Effekseer/Effekseer.Base.Pre.h') effekseerHeader.readLines('Effekseer/Effekseer/Utils/Effekseer.CustomAllocator.h') effekseerHeader.readLines('Effekseer/Effekseer/Effekseer.Vector2D.h') effekseerHeader.readLines('Effekseer/E...
52.769841
160
0.848097
99b8d573463b35d5d61ce05aadc553e07aadc157
1,182
py
Python
hierarchical_auth/admin.py
digitalemagine/django-hierarchical-auth
f7523038db62e49e5a460b602ec6b7713aafb511
[ "BSD-3-Clause" ]
1
2016-03-28T23:37:14.000Z
2016-03-28T23:37:14.000Z
hierarchical_auth/admin.py
digitalemagine/django-hierarchical-auth
f7523038db62e49e5a460b602ec6b7713aafb511
[ "BSD-3-Clause" ]
1
2020-01-21T07:59:21.000Z
2021-03-31T18:03:05.000Z
hierarchical_auth/admin.py
digitalemagine/django-hierarchical-auth
f7523038db62e49e5a460b602ec6b7713aafb511
[ "BSD-3-Clause" ]
1
2015-08-27T15:08:41.000Z
2015-08-27T15:08:41.000Z
from django.contrib import admin from django.conf import settings from django.db.models import get_model from models import Group, User # this takes care of custom users Etc. from django.contrib.auth.admin import GroupAdmin try: module_name, class_name = settings.AUTH_USER_ADMIN_CLASS.rsplit('.', 1) mod = __...
30.307692
75
0.790186
99b8e49380df60c3065a4db1ecf679733ac5e9a8
570
py
Python
pyramid_learning_journal/routes.py
ChristopherSClosser/pyramid-learning-journal
3cd3126d24baef23c20ee75adcaf4cdc892ed71d
[ "MIT" ]
null
null
null
pyramid_learning_journal/routes.py
ChristopherSClosser/pyramid-learning-journal
3cd3126d24baef23c20ee75adcaf4cdc892ed71d
[ "MIT" ]
10
2018-03-10T18:45:50.000Z
2018-03-15T22:39:43.000Z
pyramid_learning_journal/routes.py
ChristopherSClosser/pyramid-learning-journal
3cd3126d24baef23c20ee75adcaf4cdc892ed71d
[ "MIT" ]
null
null
null
"""Define routes.""" def includeme(config): """App routes.""" config.add_static_view( 'static', 'pyramid_learning_journal:static', cache_max_age=3600 ) config.add_route('home', '/') config.add_route('detail', '/journal/{id:\d+}') config.add_route('new', '/journal/new-en...
30
64
0.612281
99bb2949a0056b3440c6bc1efe0bb804fb4c07e2
37
py
Python
webhdfspy/__init__.py
fsouto/webhdfspy
562528580adfa0f06ea07e34ef7089f1e59532d9
[ "MIT" ]
null
null
null
webhdfspy/__init__.py
fsouto/webhdfspy
562528580adfa0f06ea07e34ef7089f1e59532d9
[ "MIT" ]
null
null
null
webhdfspy/__init__.py
fsouto/webhdfspy
562528580adfa0f06ea07e34ef7089f1e59532d9
[ "MIT" ]
null
null
null
from .webhdfspy import WebHDFSClient
18.5
36
0.864865
99bb94bdf7cb1735398ab3a3a859a7f3ba4af38f
1,548
py
Python
app.py
dcshoecousa/MimiWork
fdbb41163ac1216a8854c36ac8328fe8cc61a2d3
[ "MIT" ]
null
null
null
app.py
dcshoecousa/MimiWork
fdbb41163ac1216a8854c36ac8328fe8cc61a2d3
[ "MIT" ]
null
null
null
app.py
dcshoecousa/MimiWork
fdbb41163ac1216a8854c36ac8328fe8cc61a2d3
[ "MIT" ]
null
null
null
import uvicorn from fastapi import FastAPI, Request, status from fastapi.encoders import jsonable_encoder from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.gzip import GZipMiddleware from fastapi.exceptions import RequestValidationError from fastapi.responses import PlainTextResponse from starl...
30.352941
86
0.786822
99bc3505ff55486cbfded79b4475d68071dee9b9
181
py
Python
tests/test_conversions.py
lehvitus/eln
b78362af20cacffe076bf3dbfd27dcc090e43e39
[ "BSD-3-Clause" ]
2
2020-02-05T04:00:32.000Z
2020-03-18T02:12:33.000Z
tests/test_conversions.py
oleoneto/eln
b78362af20cacffe076bf3dbfd27dcc090e43e39
[ "BSD-3-Clause" ]
1
2020-03-18T02:36:04.000Z
2020-03-18T02:36:04.000Z
tests/test_conversions.py
oleoneto/eln
b78362af20cacffe076bf3dbfd27dcc090e43e39
[ "BSD-3-Clause" ]
null
null
null
from click.testing import CliRunner # from eln.commands.conversions.main import convert # def test_conversions(): # runner = CliRunner() # result = runner.invoke(convert)
22.625
51
0.734807
99bda4677c23abd6f0a5f0cf3d4f901d7b99af52
32,388
py
Python
calc.py
nigo81/myquant
6247b3ef7c99af8aa9e91f95605dbf832659d532
[ "MIT" ]
1
2021-09-12T09:32:10.000Z
2021-09-12T09:32:10.000Z
calc.py
nigo81/myquant
6247b3ef7c99af8aa9e91f95605dbf832659d532
[ "MIT" ]
null
null
null
calc.py
nigo81/myquant
6247b3ef7c99af8aa9e91f95605dbf832659d532
[ "MIT" ]
2
2021-08-28T01:17:27.000Z
2021-11-11T02:05:03.000Z
#!/usr/bin python3 # -*- coding:UTF-8 -*- # Author: nigo import os import json import pandas as pd import akshare as ak import baostock as bs import datetime import numpy as np from multiprocessing import Pool import multiprocessing.pool as mpp import istarmap from tqdm import tqdm import plotly.figure_factory as ff f...
34.164557
158
0.584383
99be377e343d38ceeb6b81ed73306130d42809ac
644
py
Python
2016/day6/day6.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
2016/day6/day6.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
2016/day6/day6.py
e-jameson/aoc
f26196d5564a9ac8027532c276af00aaf3718c6e
[ "MIT" ]
null
null
null
from helpers import as_list lines = as_list('2016/day6/input.txt') # lines = as_list('2016/day6/example-input.txt') length = len(lines[0]) positions = { } for line in lines: for i, c in enumerate(line): v = positions.setdefault(i, dict()).setdefault(c, 0) positions[i][c] = v + 1 most_common = ...
21.466667
61
0.636646
99be4754e2c0ff7cecb500a1dc5e5acd0e8dcf60
546
py
Python
src/camera/camera.py
jucoba/IpCamMonitorSystem
466e22d3cd095dbf99a1238713f1c23cabe514ed
[ "MIT" ]
1
2017-05-13T18:22:03.000Z
2017-05-13T18:22:03.000Z
src/camera/camera.py
jucoba/IpCamMonitorSystem
466e22d3cd095dbf99a1238713f1c23cabe514ed
[ "MIT" ]
null
null
null
src/camera/camera.py
jucoba/IpCamMonitorSystem
466e22d3cd095dbf99a1238713f1c23cabe514ed
[ "MIT" ]
null
null
null
from utils.paramUtils import * from utils.configUtils import *
21.84
60
0.708791
99be592e44e548dda1a394caf9d7d157963b7171
1,876
py
Python
cliqz/quiz.py
InTEGr8or/cli-quiz
e2996794a56ea11876477ccf3cc174dc2aa9a135
[ "MIT" ]
null
null
null
cliqz/quiz.py
InTEGr8or/cli-quiz
e2996794a56ea11876477ccf3cc174dc2aa9a135
[ "MIT" ]
2
2020-10-07T18:11:04.000Z
2020-10-08T04:14:10.000Z
cliqz/quiz.py
InTEGr8or/cliqz
e2996794a56ea11876477ccf3cc174dc2aa9a135
[ "MIT" ]
null
null
null
import datetime import random import click import json from cliqz.question import Question from cliqz.bcolors import bcolors
38.285714
110
0.619403
99bf1a42c7b4098b900a012105dedc1f4e8a5099
438
py
Python
django-varnish-master/setup.py
vdmann/cse-360-image-hosting-website
ad71c082353af4c10dcafd7381415d932cbfabc9
[ "MIT" ]
null
null
null
django-varnish-master/setup.py
vdmann/cse-360-image-hosting-website
ad71c082353af4c10dcafd7381415d932cbfabc9
[ "MIT" ]
null
null
null
django-varnish-master/setup.py
vdmann/cse-360-image-hosting-website
ad71c082353af4c10dcafd7381415d932cbfabc9
[ "MIT" ]
2
2015-02-25T23:05:21.000Z
2021-11-07T13:15:08.000Z
from distutils.core import setup setup( name = "django-varnish", version = '0.1', url = 'http://opensource.washingtontimes.com/projects/django-varnish/', author = 'Justin Quick', author_email= 'justquick@gmail.com', long_description=open('README.rst').read(), description = 'Integration betw...
31.285714
119
0.703196
99bf5bdd5b6f6aba99abbcb360129d54e88937ab
9,233
py
Python
samples/snippets/sample_templates.py
georgiyekkert/python-compute
d128efbb3bf10af9b41e55b20aaa8080b3221e77
[ "Apache-2.0" ]
null
null
null
samples/snippets/sample_templates.py
georgiyekkert/python-compute
d128efbb3bf10af9b41e55b20aaa8080b3221e77
[ "Apache-2.0" ]
null
null
null
samples/snippets/sample_templates.py
georgiyekkert/python-compute
d128efbb3bf10af9b41e55b20aaa8080b3221e77
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
40.143478
117
0.755118
99c052a38c1714a6ea640c28b7cf4fa4c31b896a
5,333
py
Python
projects/jakub/pipeline/learning_curve.py
chengsoonong/mclass-sky
98219221c233fa490e78246eda1ead05c6cf7c17
[ "BSD-3-Clause" ]
9
2016-06-01T12:09:47.000Z
2021-01-16T05:28:01.000Z
projects/jakub/pipeline/learning_curve.py
alasdairtran/mclearn
98219221c233fa490e78246eda1ead05c6cf7c17
[ "BSD-3-Clause" ]
165
2015-01-28T10:37:34.000Z
2017-10-23T06:55:13.000Z
projects/jakub/pipeline/learning_curve.py
alasdairtran/mclearn
98219221c233fa490e78246eda1ead05c6cf7c17
[ "BSD-3-Clause" ]
9
2015-01-24T16:27:54.000Z
2020-09-01T08:54:31.000Z
import json import sys import os import numpy as np import sklearn.model_selection import model import recommenders # Import splitter sys.path.insert(1, '..') import splitter TRAINING_SAMPLES_NUM = 1000000 TESTING_SAMPLES_NUM = 50000 MAX_AGP = 100000 START = 1000 STEP = 100 COMPONENTS = 1000 def json_append(f...
31.370588
132
0.603413
99c312d69980a350872cff36198969cadd4a00c9
12,028
py
Python
detect_servers_tpu.py
GSByeon/edge-tpu-servers
a6c54b9dd9daca3d576f028ff36e1f7dc9df2867
[ "MIT" ]
1
2019-09-02T15:17:48.000Z
2019-09-02T15:17:48.000Z
detect_servers_tpu.py
Flavio58it/edge-tpu-servers
a6c54b9dd9daca3d576f028ff36e1f7dc9df2867
[ "MIT" ]
null
null
null
detect_servers_tpu.py
Flavio58it/edge-tpu-servers
a6c54b9dd9daca3d576f028ff36e1f7dc9df2867
[ "MIT" ]
1
2020-11-19T06:37:14.000Z
2020-11-19T06:37:14.000Z
""" Detect objects and faces using tensorflow-tpu served by zerorpc. This needs to be called from a zerorpc client with an array of alarm frame image paths. This is part of the smart-zoneminder project. See https://github.com/goruck/smart-zoneminder Copyright (c) 2018, 2019 Lindo St. Angel """ import numpy as np im...
44.220588
109
0.608497
99c3b936df3f1f369811639c045e03aa308c0d9b
193
py
Python
python-scripts/brightness.py
niwhsa9/dwmblocks
76c617a477f2b5496f146f3f9c4e3b089a9fcebd
[ "0BSD" ]
null
null
null
python-scripts/brightness.py
niwhsa9/dwmblocks
76c617a477f2b5496f146f3f9c4e3b089a9fcebd
[ "0BSD" ]
null
null
null
python-scripts/brightness.py
niwhsa9/dwmblocks
76c617a477f2b5496f146f3f9c4e3b089a9fcebd
[ "0BSD" ]
null
null
null
import os import time max_brightness = 26666 stream = os.popen("cat /sys/class/backlight/intel_backlight/brightness") output = int(stream.read()) print(f"{int(output/max_brightness * 100)}%")
24.125
72
0.756477
99c56f50835a677720b53b77e5038bf11849511f
86
py
Python
noodles/draw_workflow/__init__.py
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
22
2016-07-26T20:42:08.000Z
2022-02-08T16:04:25.000Z
noodles/draw_workflow/__init__.py
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
71
2015-12-24T18:44:32.000Z
2022-02-11T11:31:08.000Z
noodles/draw_workflow/__init__.py
BvB93/noodles
7547471baa18a11b8020c017388a7e208d194ef4
[ "Apache-2.0" ]
8
2016-12-22T10:14:28.000Z
2020-06-05T21:01:51.000Z
from .draw_workflow import draw_workflow, graph __all__ = ['draw_workflow', 'graph']
21.5
47
0.767442
99c932b7b330e53a0d1d9e71a543716bac2b814e
3,534
py
Python
libdyson/dyson_pure_humidify_cool.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
28
2021-02-11T22:44:01.000Z
2022-03-28T22:29:35.000Z
libdyson/dyson_pure_humidify_cool.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
20
2021-03-07T15:18:58.000Z
2022-03-07T13:47:30.000Z
libdyson/dyson_pure_humidify_cool.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
25
2021-02-13T14:55:43.000Z
2022-03-29T22:27:55.000Z
"""Dyson Pure Humidify+Cool device.""" from typing import Optional from .const import HumidifyOscillationMode, WaterHardness from .dyson_pure_cool import DysonPureCoolBase WATER_HARDNESS_ENUM_TO_STR = { WaterHardness.SOFT: "2025", WaterHardness.MEDIUM: "1350", WaterHardness.HARD: "0675", } WATER_HARDNESS...
34.647059
86
0.679117
99cab42815f0b0dab7a21f2a4e9e565b8c952970
560
py
Python
rainbow/__init__.py
Elysiumskrieger/rainbow-console
9b62357b7456227520f37bd43a6cec42689e379f
[ "Apache-2.0" ]
null
null
null
rainbow/__init__.py
Elysiumskrieger/rainbow-console
9b62357b7456227520f37bd43a6cec42689e379f
[ "Apache-2.0" ]
null
null
null
rainbow/__init__.py
Elysiumskrieger/rainbow-console
9b62357b7456227520f37bd43a6cec42689e379f
[ "Apache-2.0" ]
null
null
null
""" This module is designed to color the information displayed in the console. import rainbow rainbow.print("#F07427example #F4CA16print") rainbow.print("example print", color="#CC397B") print(rainbow.paint("Hello, world!", color="#318CE7")) Colored line example: "#318CE7Hello #FECF3DWorld#309831!#r default...
32.941176
81
0.758929
99cc197fd76ad00185d1ec46114b8e77134747ab
6,474
py
Python
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spalloc/config.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spalloc/config.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spalloc/config.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
"""The spalloc command-line tool and Python library determine their default configuration options from a spalloc configuration file if present. .. note:: Use of spalloc's configuration files is entirely optional as all configuration options may be presented as arguments to commands/methods at runtime. By...
34.43617
79
0.642261
99ccb095bbabc31fc6d300f9f9d91e4f79d03766
1,817
py
Python
num_fh/resolution/framework/predictors/model_base_predictor.py
yanaiela/num_fh
1e9bb93d1e06a3622fe0a8dd44d8da8c7ed21344
[ "MIT" ]
32
2019-05-29T14:38:36.000Z
2021-09-05T10:41:18.000Z
num_fh/resolution/framework/predictors/model_base_predictor.py
yanaiela/num_fh
1e9bb93d1e06a3622fe0a8dd44d8da8c7ed21344
[ "MIT" ]
2
2019-08-26T12:18:28.000Z
2019-09-15T08:37:35.000Z
num_fh/resolution/framework/predictors/model_base_predictor.py
yanaiela/num_fh
1e9bb93d1e06a3622fe0a8dd44d8da8c7ed21344
[ "MIT" ]
4
2019-08-07T15:34:34.000Z
2021-10-06T14:09:40.000Z
from overrides import overrides from allennlp.data import Instance from allennlp.common.util import JsonDict from allennlp.predictors.predictor import Predictor
39.5
114
0.628509
99cd8f30d41bc83804f1b3803133cbb788bd85a2
2,010
py
Python
UnityEnv.py
jsztompka/MultiAgent-PPO
cf80077ffef923546c44e66f99b7688302573c15
[ "MIT" ]
21
2019-04-18T07:15:02.000Z
2022-03-24T17:50:07.000Z
UnityEnv.py
jsztompka/MultiAgent-PPO
cf80077ffef923546c44e66f99b7688302573c15
[ "MIT" ]
null
null
null
UnityEnv.py
jsztompka/MultiAgent-PPO
cf80077ffef923546c44e66f99b7688302573c15
[ "MIT" ]
1
2020-11-01T23:48:54.000Z
2020-11-01T23:48:54.000Z
import numpy as np from unityagents import UnityEnvironment """UnityEnv is a wrapper around UnityEnvironment The main purpose for this Env is to establish a common interface which most environments expose """
29.558824
99
0.664179
99ce6379cb4bae1b3e963b898cb8722bd0f04bb5
3,567
py
Python
netcad_demo_meraki1/design.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
netcad_demo_meraki1/design.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
netcad_demo_meraki1/design.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
# ----------------------------------------------------------------------------- # System Imports # ----------------------------------------------------------------------------- from operator import itemgetter # ----------------------------------------------------------------------------- # Public Imports # ----------...
33.650943
79
0.506027
99ce675c36da17895b895ab7a50e1e9d7e0bc1c0
10,961
py
Python
maskrcnn_benchmark/modeling/roi_heads/ke_head/inference.py
happog/Box_Discretization_Network
630c377bd90b14cd235dbea3787b60e9bd7ce837
[ "BSD-2-Clause" ]
285
2019-07-28T12:57:39.000Z
2022-03-15T12:24:52.000Z
maskrcnn_benchmark/modeling/roi_heads/ke_head/inference.py
happog/Box_Discretization_Network
630c377bd90b14cd235dbea3787b60e9bd7ce837
[ "BSD-2-Clause" ]
41
2019-08-08T08:41:33.000Z
2022-01-17T06:14:32.000Z
maskrcnn_benchmark/modeling/roi_heads/ke_head/inference.py
happog/Box_Discretization_Network
630c377bd90b14cd235dbea3787b60e9bd7ce837
[ "BSD-2-Clause" ]
98
2019-07-29T02:18:55.000Z
2021-12-12T13:08:44.000Z
import torch from torch import nn import pdb, os from shapely.geometry import * from maskrcnn_benchmark.structures.boxlist_ops import cat_boxlist import time import matplotlib.pyplot as plt import numpy as np from scipy.signal import argrelextrema import random import string all_types = [[1,2,3,4],[1,2,4,3],[1,3,2,4...
35.358065
133
0.54703
99ce8c728bbfa2b38943888c9d3d373a3f772255
545
py
Python
Chapter01/clt_app/clt_demo.py
free2fork/streaml
c07b5bebcefee2871181c681377a168cc7d6c54e
[ "Apache-2.0" ]
12
2021-08-17T09:28:30.000Z
2022-03-03T16:39:48.000Z
Chapter01/clt_app/clt_demo.py
free2fork/streaml
c07b5bebcefee2871181c681377a168cc7d6c54e
[ "Apache-2.0" ]
null
null
null
Chapter01/clt_app/clt_demo.py
free2fork/streaml
c07b5bebcefee2871181c681377a168cc7d6c54e
[ "Apache-2.0" ]
6
2021-08-20T20:48:26.000Z
2022-02-03T11:49:33.000Z
import streamlit as st import numpy as np import matplotlib.pyplot as plt perc_heads = st.number_input(label='Chance of Coins Landing on Heads', min_value=0.0, max_value=1.0, value=.5) graph_title = st.text_input(label='Graph Title') binom_dist = np.random.binomial(1, perc_heads, 1000) list_of_means =...
28.684211
114
0.710092
99cf2e6c972e6c1e9a70c4c30a8071a16ed1cd47
393
py
Python
edw_fluent/signals/handlers/__init__.py
infolabs/django_edw_fluent
ddb013c0b4dde9c7b00282c9b0c43b06e21b7c19
[ "MIT" ]
1
2020-10-23T08:55:21.000Z
2020-10-23T08:55:21.000Z
edw_fluent/signals/handlers/__init__.py
EagerBeager/django-edw-fluent
ab10ffe17000f2d07f29e4a25892ebc0e2e47101
[ "MIT" ]
3
2020-03-24T14:34:37.000Z
2021-06-10T21:12:53.000Z
edw_fluent/signals/handlers/__init__.py
EagerBeager/django-edw-fluent
ab10ffe17000f2d07f29e4a25892ebc0e2e47101
[ "MIT" ]
2
2020-10-23T08:55:19.000Z
2022-03-02T07:05:45.000Z
# -*- coding: utf-8 -*- from django.db.utils import ProgrammingError try: from edw_fluent.signals.handlers import ( page_layout, template, entity, data_mart, term, simple_page, hot_tag ) except (AttributeError, ProgrammingError) as e: # initial migrat...
21.833333
47
0.608142
99cfded404e2fff90ba78176653a31e7278d3928
1,175
py
Python
submission/util.py
pwqbot/eoj3
46be6a6f192798e74eab7b327bb8df7ca73575d9
[ "MIT" ]
107
2017-03-15T11:53:45.000Z
2019-09-06T11:23:44.000Z
submission/util.py
OS-EDU/eoj3
f117dcd4e3cea7d150c3e3794e7255e00d486c88
[ "MIT" ]
27
2019-09-24T12:44:48.000Z
2022-03-11T23:18:21.000Z
submission/util.py
OS-EDU/eoj3
f117dcd4e3cea7d150c3e3794e7255e00d486c88
[ "MIT" ]
25
2019-10-11T10:39:12.000Z
2022-03-18T05:15:57.000Z
STATUS_CHOICE = ( (-4, 'Submitted'), (-3, 'In queue'), (-2, 'Running'), (-1, 'Wrong answer'), (0, 'Accepted'), (1, 'Time limit exceeded'), (2, 'Idleness limit exceeded'), (3, 'Memory limit exceeded'), (4, 'Runtime error'), (5, 'Denial of judgement'), (6, 'Compilation error'), (7, 'Partial scor...
22.596154
91
0.675745
99cff9123fa075c28ca5117f4fbf6bfc01548539
435
py
Python
Transforms/Domain/dmarc.py
redhuntlabs/Maltego-Scripts
411b1c80f907caa54059ce8f6cd60c4e234c68b1
[ "BSD-3-Clause" ]
21
2019-05-12T12:11:18.000Z
2022-01-27T14:58:51.000Z
Transforms/Domain/dmarc.py
redhuntlabs/Maltego
411b1c80f907caa54059ce8f6cd60c4e234c68b1
[ "BSD-3-Clause" ]
null
null
null
Transforms/Domain/dmarc.py
redhuntlabs/Maltego
411b1c80f907caa54059ce8f6cd60c4e234c68b1
[ "BSD-3-Clause" ]
4
2019-04-16T12:04:33.000Z
2019-12-25T21:50:18.000Z
import sys import emailprotectionslib.dmarc as dmarc from MaltegoTransform import * mt = MaltegoTransform() mt.parseArguments(sys.argv) domain = mt.getValue() mt = MaltegoTransform() try: dmarc_record = dmarc.DmarcRecord.from_domain(domain) #print spf_record mt.addEntity("maltego.Phrase","DMARC Record: "...
22.894737
69
0.765517
99d1bc40cd45f1b18fc86b0fb1fe8abea19c68d7
5,631
py
Python
idfy_rest_client/models/update_signer_request_wrapper.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
idfy_rest_client/models/update_signer_request_wrapper.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
idfy_rest_client/models/update_signer_request_wrapper.py
dealflowteam/Idfy
fa3918a6c54ea0eedb9146578645b7eb1755b642
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ idfy_rest_client.models.update_signer_request_wrapper This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ) """ from idfy_rest_client.api_helper import APIHelper import idfy_rest_client.models.redirect_settings import idfy_rest_client.mode...
42.338346
187
0.639318
99d2f7973e10165dc388a3dc6849550c2db3e600
1,095
py
Python
lintcode/String/956. Data Segmentation.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
23
2019-08-02T12:02:47.000Z
2022-03-09T15:24:16.000Z
lintcode/String/956. Data Segmentation.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
null
null
null
lintcode/String/956. Data Segmentation.py
yanshengjia/algorithm
0608d286be9c93d51768d47f21e569c6b0be9cda
[ "MIT" ]
21
2019-12-22T04:47:32.000Z
2021-09-12T14:29:35.000Z
""" Given a string str, we need to extract the symbols and words of the string in order. Example 1: input: str = "(hi (i am)bye)" outut:["(","hi","(","i","am",")","bye",")"]. Explanation:Separate symbols and words. Solution: Go through the str, push the alphabetical into stack and append it to res list if we meet a...
26.071429
107
0.507763
99d4661007ec7da5c8f2e9e867f297c616d1e26c
709
py
Python
src/orm.py
brianherman/Saati
b57a8c0c8030f9c21c971c2febc9dc9486386af5
[ "Apache-2.0" ]
null
null
null
src/orm.py
brianherman/Saati
b57a8c0c8030f9c21c971c2febc9dc9486386af5
[ "Apache-2.0" ]
3
2021-09-08T03:14:51.000Z
2022-03-12T00:57:23.000Z
src/orm.py
brianherman/Saati
b57a8c0c8030f9c21c971c2febc9dc9486386af5
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Column, Integer, String from sqlalchemy.dialects.postgresql import ARRAY, UUID from sqlalchemy.ext.declarative import declarative_base from pydantic import BaseModel, constr Base = declarative_base()
29.541667
90
0.733427
99d74d8ddc49b0288c3e0f81ec748cec32131e87
688
py
Python
operacionArchivos.py
FernandoTorresL/search_dispmag_files
ccf1c8ebc02e3702e574a6889b368a593223f529
[ "MIT" ]
null
null
null
operacionArchivos.py
FernandoTorresL/search_dispmag_files
ccf1c8ebc02e3702e574a6889b368a593223f529
[ "MIT" ]
null
null
null
operacionArchivos.py
FernandoTorresL/search_dispmag_files
ccf1c8ebc02e3702e574a6889b368a593223f529
[ "MIT" ]
null
null
null
import os
23.724138
67
0.722384
99d8da842aece2b8beb0104805bcd12184f86733
16,892
py
Python
scripts/fetching/fetch_from_paavo.py
xiaoxiaobt/Reaktor-Data-Science-project
c779eaa9e586ebe62929361bd4d1bc1c537e4e11
[ "MIT" ]
2
2019-12-08T23:10:11.000Z
2020-02-29T21:35:01.000Z
scripts/fetching/fetch_from_paavo.py
xiaoxiaobt/Reaktor-Data-Science-project
c779eaa9e586ebe62929361bd4d1bc1c537e4e11
[ "MIT" ]
null
null
null
scripts/fetching/fetch_from_paavo.py
xiaoxiaobt/Reaktor-Data-Science-project
c779eaa9e586ebe62929361bd4d1bc1c537e4e11
[ "MIT" ]
null
null
null
import os import requests import time import json import io import numpy as np import pandas as pd import paavo_queries as paavo_queries from sklearn.linear_model import LinearRegression import statsmodels.api as sm ## NOTE: Table 9_koko access is forbidden from the API for some reasons. # url to the API...
45.165775
195
0.614137
99d9c542047682094a61671e9e369e7daab88729
3,300
py
Python
tools/bin/stretch_realsense_jog.py
soumith/stretch_body
998cec78fae67090060d4474c3029f9db45cde85
[ "RSA-MD" ]
null
null
null
tools/bin/stretch_realsense_jog.py
soumith/stretch_body
998cec78fae67090060d4474c3029f9db45cde85
[ "RSA-MD" ]
null
null
null
tools/bin/stretch_realsense_jog.py
soumith/stretch_body
998cec78fae67090060d4474c3029f9db45cde85
[ "RSA-MD" ]
null
null
null
#!/usr/bin/env python import pyrealsense2 as rs import numpy as np import cv2 import os import pathlib import argparse import stretch_body.hello_utils as hu hu.print_stretch_re_use() parser = argparse.ArgumentParser(description='Tool to test the Realsense D435i Camera.') parser.add_argument("--no_gui", action="store_...
37.078652
139
0.665455
99da9fa3bab70716c7ae67a3298aac98092d47f1
7,716
py
Python
galois/_fields/_gfp.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
galois/_fields/_gfp.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
galois/_fields/_gfp.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
""" A module that contains a metaclass mixin that provides GF(p) arithmetic using explicit calculation. """ import numba import numpy as np from ._main import FieldClass, DirMeta from ._dtypes import DTYPES RECIPROCAL = lambda a, *args: 1 / a
31.238866
155
0.519311
99dc8a0bd852d3418f457335ddc67cfce5fb2a5d
6,110
py
Python
psec/secrets/generate.py
davedittrich/python_secrets
63ca7001748464e1632f66cd95edf604c2b517e4
[ "Apache-2.0" ]
10
2019-01-29T19:07:18.000Z
2020-12-27T23:30:44.000Z
psec/secrets/generate.py
davedittrich/python_secrets
63ca7001748464e1632f66cd95edf604c2b517e4
[ "Apache-2.0" ]
1
2020-08-09T08:47:41.000Z
2020-08-12T04:32:02.000Z
psec/secrets/generate.py
davedittrich/python_secrets
63ca7001748464e1632f66cd95edf604c2b517e4
[ "Apache-2.0" ]
3
2019-01-24T20:03:23.000Z
2021-06-29T21:23:27.000Z
# -*- coding: utf-8 -*- import argparse import logging import textwrap from cliff.command import Command from psec.secrets_environment import ( generate_secret, natural_number, DELIMITER, MAX_WORDS_LENGTH, MIN_WORDS_LENGTH, MAX_ACROSTIC_LENGTH, MIN_ACROSTIC_LENGTH, ) from xkcdpass.xkcd_pas...
37.484663
116
0.549591
99dde6702fc3db0d2bbc6d85dacf2dceede1f95d
5,427
py
Python
src/minml/components/generator/features.py
timhannifan/minml
21ab6a93e30fc4ef2e67e054cce036cb64b3b684
[ "MIT" ]
null
null
null
src/minml/components/generator/features.py
timhannifan/minml
21ab6a93e30fc4ef2e67e054cce036cb64b3b684
[ "MIT" ]
null
null
null
src/minml/components/generator/features.py
timhannifan/minml
21ab6a93e30fc4ef2e67e054cce036cb64b3b684
[ "MIT" ]
null
null
null
from sklearn.compose import ColumnTransformer from sklearn.pipeline import Pipeline from sklearn.impute import SimpleImputer from sklearn.preprocessing import OrdinalEncoder, StandardScaler, OneHotEncoder from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split, GridSearc...
38.21831
91
0.578404
99de3cebf779065511c4dc367d298a621db5f1d9
275
py
Python
scripts/servers.py
bakketun/electrumsv
1ed5b3d5b3f7e25d742d8634258322eee616d31a
[ "MIT" ]
null
null
null
scripts/servers.py
bakketun/electrumsv
1ed5b3d5b3f7e25d742d8634258322eee616d31a
[ "MIT" ]
null
null
null
scripts/servers.py
bakketun/electrumsv
1ed5b3d5b3f7e25d742d8634258322eee616d31a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json import util from electrumsv.util import disable_verbose_logging from electrumsv.network import filter_version disable_verbose_logging() servers = filter_version(util.get_peers()) print(json.dumps(servers, sort_keys = True, indent = 4))
21.153846
56
0.807273
99e0ba741ff3cec935bfa9c99b998941aec674c5
606
py
Python
pat10.py
neha-codes/Pattern-Practice-with-Python
5a6f10d0eb0ac09507fc67e9aa95fcb0e3e0787c
[ "MIT" ]
null
null
null
pat10.py
neha-codes/Pattern-Practice-with-Python
5a6f10d0eb0ac09507fc67e9aa95fcb0e3e0787c
[ "MIT" ]
null
null
null
pat10.py
neha-codes/Pattern-Practice-with-Python
5a6f10d0eb0ac09507fc67e9aa95fcb0e3e0787c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 20 13:51:55 2019 @author: nehap """ """ Input: 5 Output : * * * * * * * * * * * * * * * """ if __name__=="__main__": n = int(input("Input: ")) #Initial Spaces k=n-1 print("Output :") #Outer loop - controlling number of rows for ...
16.833333
43
0.435644
99e258dccc474967b6966e05e0bb71a090274e1a
2,022
py
Python
repoxplorer/tests/test_yamlbackend.py
Priya-100/repoxplorer
45fba33cf27702a56cea54cb9f7afa472ef5498c
[ "Apache-2.0" ]
107
2016-05-05T19:41:12.000Z
2022-01-29T22:49:03.000Z
repoxplorer/tests/test_yamlbackend.py
Priya-100/repoxplorer
45fba33cf27702a56cea54cb9f7afa472ef5498c
[ "Apache-2.0" ]
68
2016-05-08T13:30:07.000Z
2021-12-22T21:33:39.000Z
repoxplorer/tests/test_yamlbackend.py
Priya-100/repoxplorer
45fba33cf27702a56cea54cb9f7afa472ef5498c
[ "Apache-2.0" ]
27
2018-08-31T09:27:41.000Z
2022-02-17T03:35:53.000Z
# Copyright 2017, Red Hat # # 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...
27.324324
75
0.638971
99e2e12ad7bf7d0c3e1eb464c75c7a6bac6faca6
1,362
py
Python
samplecode/sample_exscript_set.py
taijiji/NetworkAutomationTutorial
d83af889ec83b6492579e8bed56ac69a41dd8dba
[ "MIT" ]
3
2018-01-09T01:34:23.000Z
2018-12-02T19:54:51.000Z
samplecode/sample_exscript_set.py
taijiji/NetworkAutomationTutorial
d83af889ec83b6492579e8bed56ac69a41dd8dba
[ "MIT" ]
null
null
null
samplecode/sample_exscript_set.py
taijiji/NetworkAutomationTutorial
d83af889ec83b6492579e8bed56ac69a41dd8dba
[ "MIT" ]
null
null
null
# For SSH import Exscript # For Color Font from colorama import init as colorama_init from colorama import Fore colorama_init(autoreset=True) username = "user1" password = "password1" ip4 = "192.168.33.3" # SSH session = Exscript.protocols.SSH2() session.connect(ip4) # account = Exscript.Account(name=username, pas...
23.894737
60
0.715859
99e30c3a60a977abbee2b5867f2d9d5f69cf4123
324
py
Python
tests/test_pickling.py
avirshup/mdtcollections
ae3ca1187a5738fd95e49d772be30b53b1eb09a3
[ "Apache-2.0" ]
null
null
null
tests/test_pickling.py
avirshup/mdtcollections
ae3ca1187a5738fd95e49d772be30b53b1eb09a3
[ "Apache-2.0" ]
null
null
null
tests/test_pickling.py
avirshup/mdtcollections
ae3ca1187a5738fd95e49d772be30b53b1eb09a3
[ "Apache-2.0" ]
null
null
null
import pytest import pickle from .fixtures import *
23.142857
49
0.675926
99e323659a8cb936fc692ec1f7e77408c637ebb0
3,636
py
Python
setup.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
setup.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
setup.py
trnielsen/nexus-constructor
65efb6eedca30250b75f142dd29a46bc909958df
[ "BSD-2-Clause" ]
null
null
null
""" Build script for producing standalone executables for the python application using cx_freeze. The output bundles together the python code, libraries and interpreter, along with the app's resources folder. See https://cx-freeze.readthedocs.io/en/latest/distutils.html for documentation """ import sys import shutil f...
31.344828
110
0.611936
99e39fb9e2ee58c7a80711e9248f8542540eb0a0
312
py
Python
veyon/PySwitchTracer/tasks/task1/task_test1.py
IzayoiRin/VirtualVeyonST
d0c4035dba81d02135ad54f4c5a5d463e95f7925
[ "MIT" ]
null
null
null
veyon/PySwitchTracer/tasks/task1/task_test1.py
IzayoiRin/VirtualVeyonST
d0c4035dba81d02135ad54f4c5a5d463e95f7925
[ "MIT" ]
null
null
null
veyon/PySwitchTracer/tasks/task1/task_test1.py
IzayoiRin/VirtualVeyonST
d0c4035dba81d02135ad54f4c5a5d463e95f7925
[ "MIT" ]
null
null
null
import time from tasks.capp import app from others.affine_applications import MoveApps
19.5
47
0.685897
99e5160826888dd4d6b1ccad2c75cd0fc4183404
535
py
Python
Simulation/BusinessProcesses/__init__.py
AlexWorldD/NetEmbs
ea3dc5769e2feb728dac8f21ec677a9807def3df
[ "Apache-2.0" ]
1
2021-09-02T16:47:27.000Z
2021-09-02T16:47:27.000Z
Simulation/BusinessProcesses/__init__.py
AlexWorldD/NetEmbs
ea3dc5769e2feb728dac8f21ec677a9807def3df
[ "Apache-2.0" ]
null
null
null
Simulation/BusinessProcesses/__init__.py
AlexWorldD/NetEmbs
ea3dc5769e2feb728dac8f21ec677a9807def3df
[ "Apache-2.0" ]
1
2019-12-25T08:38:55.000Z
2019-12-25T08:38:55.000Z
# encoding: utf-8 __author__ = 'Aleksei Maliutin' """ __init__.py.py Created by lex at 2019-03-24. """ from BusinessProcesses.Collections import * from BusinessProcesses.Depreciation import * from BusinessProcesses.Disbursements import * from BusinessProcesses.FixedAssets import * from BusinessProcesses.GoodsDelivery i...
31.470588
52
0.828037
99e5a4af88f6d1b77d00c07dfde7cef554ce50b1
220
py
Python
20_exec/12_.py
ScriptErrorVGM/Project2021
593f7fb5cfc5cf82cf1589ccd4b95ed7a13819cb
[ "BSD-3-Clause" ]
null
null
null
20_exec/12_.py
ScriptErrorVGM/Project2021
593f7fb5cfc5cf82cf1589ccd4b95ed7a13819cb
[ "BSD-3-Clause" ]
null
null
null
20_exec/12_.py
ScriptErrorVGM/Project2021
593f7fb5cfc5cf82cf1589ccd4b95ed7a13819cb
[ "BSD-3-Clause" ]
null
null
null
if __name__ == "__main__": main()
22
56
0.486364
99e60bbfcc605867a9682aab23555342422a8ed8
1,657
py
Python
src/gbstrategy/core/_Interface.py
GrayBoxAI/GrayBoxStrategy
7f5fc9dd70cf3cfa626a133de9a0b797fe1a0d7b
[ "Apache-2.0" ]
1
2017-12-04T16:20:59.000Z
2017-12-04T16:20:59.000Z
src/gbstrategy/core/_Interface.py
GrayBoxAI/GrayBoxStrategy
7f5fc9dd70cf3cfa626a133de9a0b797fe1a0d7b
[ "Apache-2.0" ]
null
null
null
src/gbstrategy/core/_Interface.py
GrayBoxAI/GrayBoxStrategy
7f5fc9dd70cf3cfa626a133de9a0b797fe1a0d7b
[ "Apache-2.0" ]
1
2017-12-03T21:38:03.000Z
2017-12-03T21:38:03.000Z
# 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, software # distribu...
31.264151
87
0.658419
99e82ceee46963fed497a364bf93cfa803bfca4f
5,430
py
Python
bordercamp/irc.py
mk-fg/bordercamp-irc-bot
c4eda5739e46bc98d6bb1f912285d210e0fa9578
[ "WTFPL" ]
1
2016-04-02T02:52:21.000Z
2016-04-02T02:52:21.000Z
bordercamp/irc.py
mk-fg/bordercamp-irc-bot
c4eda5739e46bc98d6bb1f912285d210e0fa9578
[ "WTFPL" ]
2
2019-10-14T16:56:52.000Z
2019-10-14T16:57:03.000Z
bordercamp/irc.py
mk-fg/bordercamp-irc-bot
c4eda5739e46bc98d6bb1f912285d210e0fa9578
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import itertools as it, operator as op, functools as ft from datetime import datetime import os, sys from twisted.internet import reactor, protocol, defer from twisted.words.service import IRCUser, IRCFactory, InMemoryWordsRealm, Group from twisted.cred im...
31.941176
86
0.717311
99e8b2d89b7758b9057c1a18c6d154fb6590ef35
13,221
py
Python
protos/kokoro_api_pb2.py
portintegration/releasetool
7567bd29b3c13b14f6336cbdb11965c2d2b65a2e
[ "Apache-2.0" ]
23
2018-10-09T15:14:21.000Z
2022-01-24T12:18:57.000Z
protos/kokoro_api_pb2.py
portintegration/releasetool
7567bd29b3c13b14f6336cbdb11965c2d2b65a2e
[ "Apache-2.0" ]
160
2018-09-21T22:16:02.000Z
2022-03-30T21:51:35.000Z
protos/kokoro_api_pb2.py
portintegration/releasetool
7567bd29b3c13b14f6336cbdb11965c2d2b65a2e
[ "Apache-2.0" ]
19
2018-10-08T20:39:39.000Z
2021-07-28T15:17:14.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: kokoro_api.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _re...
41.971429
1,127
0.754708
99ec3a892e6d861858a8898f705378cd048e4725
322
py
Python
UDEMY-Learn Python Programming Masterclass/Section 3-Stepping into the World of Python/sequence_operators.py
Sanjay9921/Python
05ac161dd46f9b4731a5c14ff5ef52adb705e8e6
[ "MIT" ]
null
null
null
UDEMY-Learn Python Programming Masterclass/Section 3-Stepping into the World of Python/sequence_operators.py
Sanjay9921/Python
05ac161dd46f9b4731a5c14ff5ef52adb705e8e6
[ "MIT" ]
null
null
null
UDEMY-Learn Python Programming Masterclass/Section 3-Stepping into the World of Python/sequence_operators.py
Sanjay9921/Python
05ac161dd46f9b4731a5c14ff5ef52adb705e8e6
[ "MIT" ]
null
null
null
str1 = "Liu Kang " str2 = "Johnny Cage " str3 = "Scorpion " str4 = "Sub-Zero " str5 = "Sonya " str6 = "Test yo might! " print(str1 + str2 + str3 + str4 + str5 + str6) print(str3 * 5) print(str3 * (5 + 4)) print(str3 * 5 + "4") today = "Tuesday" # bool - in operator print("day" in today) print("scorpion" in today) ...
14.636364
46
0.602484
99ed63650099b14a883f9ecbd4f6ae0c07c8f1c1
455
py
Python
produtos/migrations/0007_auto_20171110_1138.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
produtos/migrations/0007_auto_20171110_1138.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
produtos/migrations/0007_auto_20171110_1138.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-11-10 10:38 from __future__ import unicode_literals from django.db import migrations
22.75
86
0.626374
99ef47ff1aa8ca73bbcd6a2b57b5a1a59859723b
562
py
Python
users/models.py
barackmaund1/Awwards-
8b749e6ad6a8124ad07434e9fad537d1abe5f274
[ "MIT" ]
null
null
null
users/models.py
barackmaund1/Awwards-
8b749e6ad6a8124ad07434e9fad537d1abe5f274
[ "MIT" ]
8
2021-03-19T11:24:02.000Z
2022-03-12T00:34:31.000Z
users/models.py
barackmaund1/Awwards-
8b749e6ad6a8124ad07434e9fad537d1abe5f274
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from PIL import Image # Create your models here.
31.222222
79
0.713523
99f3b0b67951876e04128c58901271203717d169
1,121
py
Python
cgee/Producao/py-nlp/GenerateID.py
gustavodsf/java_project
ce0e735d6ce4804d30ae52986285e4c5f5e2d9b7
[ "Apache-2.0" ]
null
null
null
cgee/Producao/py-nlp/GenerateID.py
gustavodsf/java_project
ce0e735d6ce4804d30ae52986285e4c5f5e2d9b7
[ "Apache-2.0" ]
null
null
null
cgee/Producao/py-nlp/GenerateID.py
gustavodsf/java_project
ce0e735d6ce4804d30ae52986285e4c5f5e2d9b7
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- ''' Empresa: Funcao Coppetec Desenvolvedor: Gustavo Daniel Soares Figueiredo Data: 14/12/2014 Descricao: Classe criada para gerar os id dos objetos a serem adicionados no banco de dados, evitando assim mais requisies ao banco de dados. '''
25.477273
143
0.742194
99f3c397e2ceb24adfe2a47d369c5bea4a24c225
2,213
py
Python
postGIS_tools/routines/back_up_entire_machine.py
AltaPlanning/postGIS-tools
c39957d8eda0b67a34c46f629bb5dea1b65085d7
[ "MIT" ]
4
2020-06-25T17:18:28.000Z
2020-08-28T15:43:29.000Z
postGIS_tools/routines/back_up_entire_machine.py
AltaPlanning/postGIS-tools
c39957d8eda0b67a34c46f629bb5dea1b65085d7
[ "MIT" ]
null
null
null
postGIS_tools/routines/back_up_entire_machine.py
AltaPlanning/postGIS-tools
c39957d8eda0b67a34c46f629bb5dea1b65085d7
[ "MIT" ]
2
2019-10-09T04:29:34.000Z
2019-11-18T02:37:04.000Z
""" TODO: docstrings all across file Examples -------- >>> from postGIS_tools.configurations import get_postGIS_config, USER_DESKTOP >>> config, _ = get_postGIS_config() >>> config["localhost"]["debug"] = True >>> back_up_all_databases(USER_DESKTOP, **config["localhost"]) >>> remove_all_database...
28.012658
101
0.601446
99f3f71812280b5943de738ea02e43f630b35e63
35
py
Python
src/container_build/__init__.py
solomem/sagemaker_lambda_pipeline
c94f6ef78a53dbdf9a4782e27b6440e058e1964f
[ "Apache-2.0" ]
58
2020-04-02T22:41:04.000Z
2022-03-16T14:43:44.000Z
src/container_build/__init__.py
IronOnet/sagemaker-deep-demand-forecast
3c7081186146fa167b46cbe21715929f37079ada
[ "Apache-2.0" ]
8
2020-10-12T08:05:32.000Z
2021-08-17T00:31:23.000Z
src/container_build/__init__.py
IronOnet/sagemaker-deep-demand-forecast
3c7081186146fa167b46cbe21715929f37079ada
[ "Apache-2.0" ]
29
2020-04-03T01:43:03.000Z
2022-03-16T14:43:47.000Z
from .container_build import build
17.5
34
0.857143
99f4e78fbfec4998ba7bba847a56b205c1839a37
199
py
Python
virtual/Lib/site-packages/pylint/test/functional/too_many_arguments.py
JamesKimari/pitch-one
aac9007716bf2e3b6446588a06508fac068f3d20
[ "MIT" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
virtual/lib/python3.6/site-packages/pylint/test/functional/too_many_arguments.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
virtual/lib/python3.6/site-packages/pylint/test/functional/too_many_arguments.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
# pylint: disable=missing-docstring
39.8
97
0.708543
99f5bb3236bb1bb931a212396da11d1efeeb84f6
1,123
py
Python
tests/_bundles/custom_extension/base_model.py
briancappello/flask-sqlalchemy-bundle
8150896787907ef0001839b5a6ef303edccb9b6c
[ "MIT" ]
null
null
null
tests/_bundles/custom_extension/base_model.py
briancappello/flask-sqlalchemy-bundle
8150896787907ef0001839b5a6ef303edccb9b6c
[ "MIT" ]
null
null
null
tests/_bundles/custom_extension/base_model.py
briancappello/flask-sqlalchemy-bundle
8150896787907ef0001839b5a6ef303edccb9b6c
[ "MIT" ]
null
null
null
from flask_sqlalchemy import Model as BaseModel from flask_sqlalchemy_bundle.meta import McsArgs, MetaOption, ModelMetaFactory
29.552632
78
0.673197
99fa45e23a1e042f9b88eb975050b4279bbdba64
1,058
py
Python
listenPortCOM2csv.py
FloGom/battery-voltmeter-to-csv
d819df5966a764450917831f0898d1683d740cfd
[ "MIT" ]
null
null
null
listenPortCOM2csv.py
FloGom/battery-voltmeter-to-csv
d819df5966a764450917831f0898d1683d740cfd
[ "MIT" ]
null
null
null
listenPortCOM2csv.py
FloGom/battery-voltmeter-to-csv
d819df5966a764450917831f0898d1683d740cfd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 16 11:40:09 2017 @author: florentin """ import serial from os import getcwd ## paramtres du port srie #port = input("Quel numro de port COM voulez-vous couter?\n") #vitesse = int(input("Quelle vitesse en baud?\n")) #caracFin = input("Quel(s) caractre(s) de fin de commun...
25.804878
71
0.640832
99fa473f028db4963001c16010e34535fd4e4605
8,157
py
Python
tests/test_paginated_list.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
tests/test_paginated_list.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
tests/test_paginated_list.py
eriktews/canvasapi
132146395ecf55227cae69dc4d5f6d94545172b9
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import unittest import requests_mock from canvasapi import Canvas from canvasapi.enrollment_term import EnrollmentTerm from canvasapi.paginated_list import PaginatedList from canvasapi.user import User from tests import settings from t...
39.597087
88
0.668751
99fbae4e0911dba2149c06b099c890268bbeb811
4,442
py
Python
src/6-VECTOR/Standalone_01/rdf2vec/walkers/community.py
feiphoon/inm713-coursework
eaba20ac6e7ebea6004ffbe062aaed0e881b69d5
[ "MIT" ]
null
null
null
src/6-VECTOR/Standalone_01/rdf2vec/walkers/community.py
feiphoon/inm713-coursework
eaba20ac6e7ebea6004ffbe062aaed0e881b69d5
[ "MIT" ]
null
null
null
src/6-VECTOR/Standalone_01/rdf2vec/walkers/community.py
feiphoon/inm713-coursework
eaba20ac6e7ebea6004ffbe062aaed0e881b69d5
[ "MIT" ]
2
2022-01-28T16:47:11.000Z
2022-02-08T20:21:34.000Z
import sys sys.path.append('../') from walkers.walker import Walker from collections import defaultdict from graph import Vertex from hashlib import md5 import networkx as nx import numpy as np import community import itertools import math community.community_louvain.check_random_state = check_random_state np.random.pe...
37.327731
95
0.583521
99fc1579c9d2588ea8533602a0706bf0ab03c8fd
3,881
py
Python
src/cms/publications/templatetags/unicms_publications.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/publications/templatetags/unicms_publications.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/publications/templatetags/unicms_publications.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
import logging from django import template from django.db.models import Q from django.utils import timezone from django.utils.safestring import SafeString from cms.contexts.utils import handle_faulty_templates from cms.publications.models import Category, Publication, PublicationContext logger = logging.getLogger(_...
36.613208
79
0.580005
99fc4388aea9c6b5d62983c4473eb1930ee9ee01
4,814
py
Python
changeset/load.py
kolorowestudio/critic
db3b4909e15835be2009395b1541dea896d249c9
[ "Apache-2.0", "MIT" ]
null
null
null
changeset/load.py
kolorowestudio/critic
db3b4909e15835be2009395b1541dea896d249c9
[ "Apache-2.0", "MIT" ]
null
null
null
changeset/load.py
kolorowestudio/critic
db3b4909e15835be2009395b1541dea896d249c9
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2012 Jens Lindstrm, Opera Software ASA # # 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 ...
49.628866
137
0.58683
99ff7840ef3d048850570e98c659a5694aeb8fda
1,033
py
Python
challenges/re/espresso/example-solution/solve.py
RTN-Team/CTF-2021-01
6a198e2a63e362f07c0d1253519e4db506a55be9
[ "CC0-1.0" ]
8
2021-01-26T20:00:07.000Z
2022-02-08T02:29:13.000Z
challenges/re/espresso/example-solution/solve.py
RTN-Team/CTF-2021-01
6a198e2a63e362f07c0d1253519e4db506a55be9
[ "CC0-1.0" ]
null
null
null
challenges/re/espresso/example-solution/solve.py
RTN-Team/CTF-2021-01
6a198e2a63e362f07c0d1253519e4db506a55be9
[ "CC0-1.0" ]
null
null
null
encoded_flag = b"UwHEpXTXskOHiHFHT9s:W:nHhQsH_tJXhQ8Pa8wm" alphabet = bytes.fromhex("000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c432e2f614741385777597533633a3b3c3d3e3f40324d2d7b4b74314e7a6445624248726778556b765271346636795b5c5d5e7360304c394a6f58506e6d70537d6968656a564f5f4...
44.913043
540
0.800581
8200cf491a16b60f3e40c5f160051d1422366337
1,008
py
Python
src/dice_stats/_magic/mapping.py
sponsfreixes/dice_stats
47e4909ffca896121a15aedef06c7fae8533bd06
[ "MIT" ]
2
2020-03-11T04:20:52.000Z
2020-03-11T16:53:48.000Z
src/dice_stats/_magic/mapping.py
sponsfreixes/dice_stats
47e4909ffca896121a15aedef06c7fae8533bd06
[ "MIT" ]
5
2020-03-11T04:29:56.000Z
2020-03-15T00:50:18.000Z
src/dice_stats/_magic/mapping.py
sponsfreixes/dice_stats
47e4909ffca896121a15aedef06c7fae8533bd06
[ "MIT" ]
2
2020-03-11T05:23:22.000Z
2022-02-18T00:06:40.000Z
""" Mapping interface. Code to make Dice implement an immutable mapping interface. This interface helps to keep code that uses dice Pythonic as they can use standard methods, and it the immutability helps make all the code simpler to use as we don't need to think about mutability. """ from __future__ import annotatio...
30.545455
69
0.717262
82015ab67e95a086a9cf93f7f627d4ecac3c6f93
11,354
py
Python
wheel_sieve/ecm/ecm_montgomery.py
aulawrence/wheel_sieve
4aac268c22a7da01d93ca1b77d0d83c5e2eaa278
[ "MIT" ]
null
null
null
wheel_sieve/ecm/ecm_montgomery.py
aulawrence/wheel_sieve
4aac268c22a7da01d93ca1b77d0d83c5e2eaa278
[ "MIT" ]
null
null
null
wheel_sieve/ecm/ecm_montgomery.py
aulawrence/wheel_sieve
4aac268c22a7da01d93ca1b77d0d83c5e2eaa278
[ "MIT" ]
null
null
null
"""Elliptic Curve Method using Montgomery Curves. """ import random import time from math import gcd import numpy as np from wheel_sieve.common import ( PRIME_GEN, InverseNotFound, CurveInitFail, inv, init_wheel, ) def get_curve_suyama(sigma, n): """Given parameter sigma, generate an Elliptic ...
31.364641
102
0.508543
820233aa6800aeb598fb12d5e9f721ebf89f2868
81
py
Python
pdns-admin-base-ngoduykhanh/run.py
xoxefdp/docker-pdns
23b89152aedfe12501a49911c31cbcc33651b87c
[ "MIT" ]
153
2016-11-03T09:56:16.000Z
2022-03-18T16:10:33.000Z
pdns-admin-base-ngoduykhanh/run.py
xoxefdp/docker-pdns
23b89152aedfe12501a49911c31cbcc33651b87c
[ "MIT" ]
53
2017-06-22T21:17:28.000Z
2022-03-28T09:29:08.000Z
pdns-admin-base-ngoduykhanh/run.py
xoxefdp/docker-pdns
23b89152aedfe12501a49911c31cbcc33651b87c
[ "MIT" ]
76
2017-01-31T22:17:30.000Z
2022-03-18T06:52:04.000Z
#!/usr/bin/env python3 from powerdnsadmin import create_app app = create_app()
13.5
36
0.765432
820462888f3a6584dfa2b77f5c27691df0b07161
8,959
py
Python
afkak/test/test_failover_integration.py
zsuzhengdu/afkak
44c8cee744ce449dc8da48e44f912298eb52549a
[ "Apache-2.0" ]
null
null
null
afkak/test/test_failover_integration.py
zsuzhengdu/afkak
44c8cee744ce449dc8da48e44f912298eb52549a
[ "Apache-2.0" ]
null
null
null
afkak/test/test_failover_integration.py
zsuzhengdu/afkak
44c8cee744ce449dc8da48e44f912298eb52549a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2015 Cyan, Inc. import os import logging import time from nose.twistedtools import threaded_reactor, deferred from twisted.internet.defer import inlineCallbacks, returnValue, setDebugging from twisted.internet.base import DelayedCall from mock import patch from afkak import (...
39.995536
79
0.583659
8205569b669621a17317cbd1fb82102b99248f91
1,374
py
Python
lib/formats.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
null
null
null
lib/formats.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
null
null
null
lib/formats.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
null
null
null
### ### Copyright (C) 2019-2022 Intel Corporation ### ### SPDX-License-Identifier: BSD-3-Clause ### subsampling = { "Y800" : ("YUV400", 8), "I420" : ("YUV420", 8), "NV12" : ("YUV420", 8), "YV12" : ("YUV420", 8), "P010" : ("YUV420", 10), "P012" : ("YUV420", 12), "I010" : ("YUV420", 10), "422H" : ("Y...
24.981818
76
0.605531
82057f6d4aa9a37f5569d8b86010cd7634ed207a
1,534
py
Python
data/data_structures.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
null
null
null
data/data_structures.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
2
2020-11-23T16:32:11.000Z
2020-11-23T16:32:11.000Z
data/data_structures.py
BrancoLab/LocomotionControl
6dc16c29c13b31f6ad70af954a237e379ee10846
[ "MIT" ]
null
null
null
import pandas as pd from dataclasses import dataclass import numpy as np from collections import namedtuple
28.943396
72
0.589961
820769d8cbca46aadeaef8a6c1a4093e4780c646
2,626
py
Python
tests/phase1_test.py
jfklorenz/Python-RMedian
8c490e003459e94b73fa2a4f51019d880dbb80b2
[ "MIT" ]
1
2020-10-27T19:58:31.000Z
2020-10-27T19:58:31.000Z
tests/phase1_test.py
jfklorenz/RMedian-Algorithm
8c490e003459e94b73fa2a4f51019d880dbb80b2
[ "MIT" ]
null
null
null
tests/phase1_test.py
jfklorenz/RMedian-Algorithm
8c490e003459e94b73fa2a4f51019d880dbb80b2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # ================================================== """ File: RMedian - Unittest - Phase 1 Author: Julian Lorenz """ # ================================================== # Import import math import random import pytest # ================================================== # Phase 1 # ==========...
26.795918
79
0.392232
82083cc06c152aa4950aea228bb058164c1fda0b
3,223
py
Python
apzm/wallet/tests/test_models.py
franramirez688/apzm
b614e4c7cf1e342a30125fe063b3f7d1f7985dec
[ "MIT" ]
null
null
null
apzm/wallet/tests/test_models.py
franramirez688/apzm
b614e4c7cf1e342a30125fe063b3f7d1f7985dec
[ "MIT" ]
null
null
null
apzm/wallet/tests/test_models.py
franramirez688/apzm
b614e4c7cf1e342a30125fe063b3f7d1f7985dec
[ "MIT" ]
null
null
null
import uuid from django.db import IntegrityError from django.test import TestCase from wallet.exceptions import WalletError from wallet.models import Client, ClientWalletAccount, \ TradeWalletAccount from wallet.tests.factory import create_wallet_clients
30.990385
88
0.657152
820947d1ec17edc2f1234efa284f01752f738d0e
1,575
py
Python
src/ds/08_trees.py
burhanuddinbhopalwala/py-ds-algo
30f8e6a2ee849fbd78237861561d33bf104c45f6
[ "MIT" ]
null
null
null
src/ds/08_trees.py
burhanuddinbhopalwala/py-ds-algo
30f8e6a2ee849fbd78237861561d33bf104c45f6
[ "MIT" ]
null
null
null
src/ds/08_trees.py
burhanuddinbhopalwala/py-ds-algo
30f8e6a2ee849fbd78237861561d33bf104c45f6
[ "MIT" ]
null
null
null
# Definition for a binary tree node.
27.155172
85
0.532063
8209b1b06bb8042f17100f05cc1894941f8323a4
733
py
Python
services/report_service.py
init-esh/FastAPI-weather-API
afc1306d30419b0103c30180813e732b5d83d280
[ "RSA-MD" ]
null
null
null
services/report_service.py
init-esh/FastAPI-weather-API
afc1306d30419b0103c30180813e732b5d83d280
[ "RSA-MD" ]
null
null
null
services/report_service.py
init-esh/FastAPI-weather-API
afc1306d30419b0103c30180813e732b5d83d280
[ "RSA-MD" ]
null
null
null
import uuid from typing import Optional,Callable, List, Union, Any import datetime from models.location import Location from models.reports import Report __reports: List[Report] = [] # fake db
27.148148
69
0.676671
820a049e34d6bb357d4ec3b7e753fdeee28ea02d
3,016
py
Python
server/filemanager.py
toptaldev92/MrHyde
29c5087a20b5de5e3db613d613db106979319508
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
server/filemanager.py
toptaldev92/MrHyde
29c5087a20b5de5e3db613d613db106979319508
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
server/filemanager.py
toptaldev92/MrHyde
29c5087a20b5de5e3db613d613db106979319508
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
from os import makedirs, listdir from os.path import isfile, isdir, join import logging import base64 from binascii import Error as Base64Error from sqlite3 import Error as SQLError from bottle import template import dbhandler logger = logging.getLogger(__name__)
31.416667
84
0.56134
820a5d0e8a205c34a4076eb5417b873e684ac370
5,889
py
Python
utils/base.py
vietnamican/mmdetection
458f593608ec0a416c38f18c743004992c27096d
[ "Apache-2.0" ]
null
null
null
utils/base.py
vietnamican/mmdetection
458f593608ec0a416c38f18c743004992c27096d
[ "Apache-2.0" ]
null
null
null
utils/base.py
vietnamican/mmdetection
458f593608ec0a416c38f18c743004992c27096d
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Iterable, List, Optional, Union from functools import partial import torch import torch.nn as nn from torch.nn import functional as F import pytorch_lightning as pl
32.716667
117
0.535745
820ba0b07ca01ad70757c4cdc2918a9860bf4fd0
2,512
py
Python
SolarCalculator/PdfCreator/jsonipy.py
Ouzx/SolarCalculator
8c73a820c4e8d9743264b44a0ab155b132ea545c
[ "MIT" ]
null
null
null
SolarCalculator/PdfCreator/jsonipy.py
Ouzx/SolarCalculator
8c73a820c4e8d9743264b44a0ab155b132ea545c
[ "MIT" ]
null
null
null
SolarCalculator/PdfCreator/jsonipy.py
Ouzx/SolarCalculator
8c73a820c4e8d9743264b44a0ab155b132ea545c
[ "MIT" ]
null
null
null
import json ex_data = { "info": { "system_name": "Test Ges Ankara", "location": "1232154.4464, 564654615.4652456" }, "element_1": { "yearly_revenue": "$18.488,88", "pay_off_time": "4 Yl", "investment_cost": "$69.904,40", "pay_off_percent": "%29,09" }, ...
27.304348
61
0.500398
820cd6881da500183d8e03a45a3245bddb2db4af
4,363
py
Python
pychemia/__init__.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
1
2021-03-26T12:34:45.000Z
2021-03-26T12:34:45.000Z
pychemia/__init__.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
null
null
null
pychemia/__init__.py
quanshengwu/PyChemia
98e9f7a1118b694dbda3ee75411ff8f8d7b9688b
[ "MIT" ]
null
null
null
""" PyChemia is a python library for automatize atomistic-level calculations. The library provide an API to manipulate structures, store structures and properties in a Mongo database, search for new structures of a given composition, interact with several atomistic simulation codes and visualize atomistic-related data ...
25.51462
114
0.674307
820cf75d4b3f5980c0f2063a6d5d3723959d1b88
958
py
Python
maasaic/apps/users/managers.py
fceruti/maasaic
4536c102301fa9575d9bcb29ec0d2332ad6780ba
[ "MIT" ]
null
null
null
maasaic/apps/users/managers.py
fceruti/maasaic
4536c102301fa9575d9bcb29ec0d2332ad6780ba
[ "MIT" ]
null
null
null
maasaic/apps/users/managers.py
fceruti/maasaic
4536c102301fa9575d9bcb29ec0d2332ad6780ba
[ "MIT" ]
null
null
null
from django.contrib.auth.models import BaseUserManager
34.214286
76
0.661795
820dedc89f7e673cf608fdd1e1d5d0935c0a737d
987
py
Python
molecule/alertmanager-latest/tests/test_alertmanager-latest.py
atosatto/ansible-alertmanager
0bc60ccf5a1313040c35b28b7483e76c61ffd017
[ "MIT" ]
2
2019-05-19T07:43:13.000Z
2021-02-11T09:57:58.000Z
molecule/alertmanager-latest/tests/test_alertmanager-latest.py
atosatto/ansible-alertmanager
0bc60ccf5a1313040c35b28b7483e76c61ffd017
[ "MIT" ]
null
null
null
molecule/alertmanager-latest/tests/test_alertmanager-latest.py
atosatto/ansible-alertmanager
0bc60ccf5a1313040c35b28b7483e76c61ffd017
[ "MIT" ]
1
2021-02-11T09:58:02.000Z
2021-02-11T09:58:02.000Z
import os import re from github import Github import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') gh = Github(os.getenv('GITHUB_API_TOKEN', None)) am_last_release = re.sub('^v(.*)$', '\\1', gh.get_repo('prom...
29.909091
112
0.725431
820e36afd4e579ed1388e2d3c8af2ebf193d4b1e
1,890
py
Python
tkinter/scrolled-frame-canvas/scrolledframe.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
tkinter/scrolled-frame-canvas/scrolledframe.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
tkinter/scrolled-frame-canvas/scrolledframe.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
import tkinter as tk
38.571429
98
0.659788
820f6582610d4d6536ed231e35188f8098b4410b
1,423
py
Python
goaway/objecthandle.py
anpere/goaway
894ea728eee4c4d025028c39949745d9857cfb92
[ "MIT" ]
null
null
null
goaway/objecthandle.py
anpere/goaway
894ea728eee4c4d025028c39949745d9857cfb92
[ "MIT" ]
null
null
null
goaway/objecthandle.py
anpere/goaway
894ea728eee4c4d025028c39949745d9857cfb92
[ "MIT" ]
null
null
null
import logging import goaway.globalvars as globalvars logger = logging.getLogger(__name__) DATA_STORE_HANDLE_KIND_ATTR = "__store" NAME_ATTR = "__name"
30.276596
85
0.661279
820fb42283523fd2f0f554d6eeab29e05fc66efa
4,418
py
Python
wax/modules/mask_std_test.py
eserie/wax-ml
9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e
[ "MIT", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
42
2021-06-14T16:27:54.000Z
2022-03-23T09:51:42.000Z
wax/modules/mask_std_test.py
eserie/wax-ml
9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e
[ "MIT", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2021-10-01T12:45:29.000Z
2021-10-03T18:06:39.000Z
wax/modules/mask_std_test.py
eserie/wax-ml
9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e
[ "MIT", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
5
2021-06-11T12:32:41.000Z
2022-02-17T16:13:15.000Z
# Copyright 2021 The WAX-ML 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
29.258278
77
0.646673
82130f589ee6118372fa128c5b9111a33a1e68a4
2,986
py
Python
dcc.py
CRVV/dcc
f4e5c13861f4895bf3a1193c10b4d97f9a345417
[ "MIT" ]
null
null
null
dcc.py
CRVV/dcc
f4e5c13861f4895bf3a1193c10b4d97f9a345417
[ "MIT" ]
null
null
null
dcc.py
CRVV/dcc
f4e5c13861f4895bf3a1193c10b4d97f9a345417
[ "MIT" ]
null
null
null
import os import mimetypes import chardet UTF8 = ('utf-8', 'ascii') WANTED_CHARSET = UTF8 FILE_PATH = '.' THRESHOLD = 0.6 # Chardet cannot recognize ISO-8859-1 charset. RECOGNIZE_8859_2_AS_8859_1 = True LOG_FILE_CONVERTED = '/dcclog/converted' LOG_FILE_UNCONVERTED = '/dcclog/unconverted' LOG_FILE_CAN_NOT_DETECT = '/...
33.550562
104
0.625921
821482077e4debe9a8e5c3c74a2bf366ec224351
1,233
py
Python
setup.py
JotaSe/text2emotion-library
314c8cf5bdc9e3e4ac2e8267f7c689232b2e1a34
[ "MIT" ]
30
2020-09-11T04:33:55.000Z
2022-03-24T06:58:09.000Z
setup.py
JotaSe/text2emotion-library
314c8cf5bdc9e3e4ac2e8267f7c689232b2e1a34
[ "MIT" ]
4
2021-06-29T17:07:09.000Z
2022-01-28T19:48:50.000Z
setup.py
JotaSe/text2emotion-library
314c8cf5bdc9e3e4ac2e8267f7c689232b2e1a34
[ "MIT" ]
19
2020-10-09T20:07:54.000Z
2021-12-11T11:19:52.000Z
from setuptools import setup, find_packages setup( name="Text2Emotion", version="0.0.1", description="Detecting emotions behind the text, Text2Emotion package will help you to understand the emotions in textual meassages.", long_description=readme(), long_description_content_type="text/m...
34.25
139
0.618005
8214b6ccb611de879648dab3be3ad51a2aee288d
1,188
py
Python
Repaso Examenes/enero2015/enero2015backtracking.py
Mi7ai/Algoritmia
2f1c7b3990e4971f4f977fd0ea4d308004ab3db5
[ "Apache-2.0" ]
null
null
null
Repaso Examenes/enero2015/enero2015backtracking.py
Mi7ai/Algoritmia
2f1c7b3990e4971f4f977fd0ea4d308004ab3db5
[ "Apache-2.0" ]
null
null
null
Repaso Examenes/enero2015/enero2015backtracking.py
Mi7ai/Algoritmia
2f1c7b3990e4971f4f977fd0ea4d308004ab3db5
[ "Apache-2.0" ]
null
null
null
from Utils.bt_scheme import BacktrackingVCSolver, PartialSolutionWithVisitedControl if __name__ == '__main__': C = [1, 2, 3, 4, 5, 6, 7, 8, 9] A = 20 B = 20 CA = [] CB = [] for sol in solver(C, A, B): for i in range(len(sol)): if sol[i] == 1: CA.append(C[i]) elif sol[i] == 2: CB.append(C[i]) ...
22.846154
83
0.591751
8214f8c875a43bafaa80e96fff2bbaf5c8d10890
10,028
py
Python
build/render/html/components.py
eimfach/robingruenke.com
753bff1e5d8beba3ad853e9dd2b0b8750515f6f9
[ "MIT" ]
null
null
null
build/render/html/components.py
eimfach/robingruenke.com
753bff1e5d8beba3ad853e9dd2b0b8750515f6f9
[ "MIT" ]
null
null
null
build/render/html/components.py
eimfach/robingruenke.com
753bff1e5d8beba3ad853e9dd2b0b8750515f6f9
[ "MIT" ]
null
null
null
from calendar import month_abbr from os import getcwd from re import findall, search, split import numpy
41.609959
130
0.512964
82158af77ddcb6b3f44630f4f3d88bbb57c99820
793
py
Python
bin/Lib/test/test_asyncio/__init__.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
36
2015-02-04T10:43:31.000Z
2022-03-30T13:01:12.000Z
bin/Lib/test/test_asyncio/__init__.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
9
2015-03-17T05:56:16.000Z
2021-11-17T09:31:50.000Z
bin/Lib/test/test_asyncio/__init__.py
yousafsyed/casperjs
ed077ae9e42cf8fb9e023e9b6840d3cea11bac40
[ "MIT" ]
22
2015-05-13T17:37:35.000Z
2022-01-25T06:24:42.000Z
import os import sys import unittest from test.support import run_unittest, import_module # Skip tests if we don't have threading. import_module('threading') # Skip tests if we don't have concurrent.futures. import_module('concurrent.futures')
26.433333
63
0.631778
8216e760ef0dbd3c59bf47999ab281efb1835af7
187
py
Python
blog/apps.py
suryakc/django-rest-api
949a17c7ab64ecc67075a1586248d87944f507d3
[ "MIT" ]
null
null
null
blog/apps.py
suryakc/django-rest-api
949a17c7ab64ecc67075a1586248d87944f507d3
[ "MIT" ]
null
null
null
blog/apps.py
suryakc/django-rest-api
949a17c7ab64ecc67075a1586248d87944f507d3
[ "MIT" ]
null
null
null
""" Blog App """ from django.apps import AppConfig
23.375
57
0.652406
8217b4796812f86fa895263899add1b8a9eec667
1,737
py
Python
accounts/views.py
omid-taj/Deepfake-Detection-Website
8ba5cb5dda05df884a25120e7b2faffe900ca251
[ "MIT" ]
1
2021-08-01T00:17:56.000Z
2021-08-01T00:17:56.000Z
accounts/views.py
omid-taj/Deepfake-Detection-Website
8ba5cb5dda05df884a25120e7b2faffe900ca251
[ "MIT" ]
8
2021-03-30T13:17:39.000Z
2022-03-12T00:28:19.000Z
accounts/views.py
omid-taj/Deepfake-Detection-Website
8ba5cb5dda05df884a25120e7b2faffe900ca251
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.shortcuts import render, redirect from django.contrib.auth import login as auth_login from django.contrib.auth import logout as auth_logout # Create your views here. from django.views.generic import View ...
33.403846
94
0.639609
821aa9503c76a9162eba6c1c2983c86d8fa302d9
3,164
py
Python
text_studio/pipeline.py
tevnpowers/thesis
af55bb47db34d90fcef1de073d16a6a0dff43161
[ "MIT" ]
2
2020-03-13T22:57:23.000Z
2020-03-13T22:57:46.000Z
text_studio/pipeline.py
tevnpowers/thesis
af55bb47db34d90fcef1de073d16a6a0dff43161
[ "MIT" ]
null
null
null
text_studio/pipeline.py
tevnpowers/thesis
af55bb47db34d90fcef1de073d16a6a0dff43161
[ "MIT" ]
null
null
null
"""Sequence of text processing components. A text processing pipeline is a sequence of text processing components, namely text_studio.Annotator and text_studio.Action objects that are executed in order to produce newly annotated data and/or insights. """ from collections import OrderedDict from text_studio.action imp...
34.021505
84
0.650442
821abe2e74f568b13855194c783a3bfd2e7000ff
990
py
Python
pe-solution/src/main/python/pep_206.py
filippovitale/pe
b036acb164bc0efce18299341b04a7acf226c7db
[ "MIT" ]
null
null
null
pe-solution/src/main/python/pep_206.py
filippovitale/pe
b036acb164bc0efce18299341b04a7acf226c7db
[ "MIT" ]
6
2021-08-16T05:50:40.000Z
2021-08-16T05:50:41.000Z
pe-solution/src/main/python/pep_206.py
filippovitale/pe
b036acb164bc0efce18299341b04a7acf226c7db
[ "MIT" ]
null
null
null
""" Concealed Square Problem 206 Find the unique positive integer whose square has the form 1_2_3_4_5_6_7_8_9_0, where each _ is a single digit. """ from math import sqrt from common import is_square if __name__ == "__main__": print(ASD) # input = "1_2_3_4_5_6_7_8_9_0" # solution = solve(input) # pr...
25.384615
79
0.513131
821c259e2674d555fdb3307ca8690b91fe94a085
5,727
py
Python
EduKTM/GKT/GKTNet.py
fannazya/EduKTM
1ff0b32d6744d487bbbb05be03c56f92bd30b3ef
[ "Apache-2.0" ]
null
null
null
EduKTM/GKT/GKTNet.py
fannazya/EduKTM
1ff0b32d6744d487bbbb05be03c56f92bd30b3ef
[ "Apache-2.0" ]
null
null
null
EduKTM/GKT/GKTNet.py
fannazya/EduKTM
1ff0b32d6744d487bbbb05be03c56f92bd30b3ef
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # 2022/3/1 @ fannazya __all__ = ["GKTNet"] import json import networkx as nx import torch from torch import nn import torch.nn.functional as F from EduKTM.utils import GRUCell, begin_states, get_states, expand_tensor, \ format_sequence, mask_sequence_variable_length
42.110294
114
0.629125
821f9c4ee53b4e67fe7293e0648f1d824408b3f9
4,298
py
Python
trace/trace.py
slash-segmentation/DP2
6f768e4b8a75a3ab2bf1359ae94704332426a4d6
[ "Unlicense" ]
null
null
null
trace/trace.py
slash-segmentation/DP2
6f768e4b8a75a3ab2bf1359ae94704332426a4d6
[ "Unlicense" ]
null
null
null
trace/trace.py
slash-segmentation/DP2
6f768e4b8a75a3ab2bf1359ae94704332426a4d6
[ "Unlicense" ]
null
null
null
from data_viewer import * from volume3d_util import * from contour_processing import * import cv from best_path import * inputStack = "o:\\images\\neuropil\\seg" outputFolder = "o:\\trace_output" box = Box() box.cornerA = [0, 0, 200] box.cornerB = [700, 500, 210] v = loadImageStack(inputStack, box) writeStack(outpu...
27.729032
100
0.557236
82205661ab5b5d2d9b2fb95a6e3348689d4be076
1,849
py
Python
amfe/num_exp_toolbox.py
c-meyer/github-spielwiese
0dad8df6277a09b2f250010b476854dc91d4d8ad
[ "BSD-3-Clause" ]
null
null
null
amfe/num_exp_toolbox.py
c-meyer/github-spielwiese
0dad8df6277a09b2f250010b476854dc91d4d8ad
[ "BSD-3-Clause" ]
null
null
null
amfe/num_exp_toolbox.py
c-meyer/github-spielwiese
0dad8df6277a09b2f250010b476854dc91d4d8ad
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017, Lehrstuhl fuer Angewandte Mechanik, Technische # Universitaet Muenchen. # # Distributed under BSD-3-Clause License. See LICENSE-File for more information # """ Numerical Experiments Toolbox. Example ------- """ __all__ = ['apply_async'] try: import dill except Exception: print('Module ...
23.705128
79
0.624662
8220d511e4dba245edce4c9cd274b85c8aeef25f
8,828
py
Python
chiya/cogs/commands/reminder.py
Kadantte/chiya
93846d33110263bfd7024be253bd2c5ebff1ffc6
[ "Unlicense" ]
3
2022-02-12T15:12:54.000Z
2022-03-17T13:55:10.000Z
chiya/cogs/commands/reminder.py
Kadantte/chiya
93846d33110263bfd7024be253bd2c5ebff1ffc6
[ "Unlicense" ]
3
2022-03-04T17:02:35.000Z
2022-03-04T17:05:35.000Z
chiya/cogs/commands/reminder.py
Kadantte/chiya
93846d33110263bfd7024be253bd2c5ebff1ffc6
[ "Unlicense" ]
4
2022-03-04T12:12:11.000Z
2022-03-04T12:24:29.000Z
import asyncio import logging import discord from discord.commands import Option, SlashCommandGroup, context, slash_command from discord.ext import commands from chiya import config, database from chiya.utils import embeds from chiya.utils.helpers import get_duration from chiya.utils.pagination import LinePaginator ...
33.313208
116
0.564794
8220f851719a8bedcbb024f57ea18ba01ec029f4
7,519
py
Python
ijal_interlinear/line.py
davidjamesbeck/IJAL-interlinear
cb5dbb1d6aea98cce76668aa868a9189f31baf3f
[ "BSD-2-Clause" ]
null
null
null
ijal_interlinear/line.py
davidjamesbeck/IJAL-interlinear
cb5dbb1d6aea98cce76668aa868a9189f31baf3f
[ "BSD-2-Clause" ]
null
null
null
ijal_interlinear/line.py
davidjamesbeck/IJAL-interlinear
cb5dbb1d6aea98cce76668aa868a9189f31baf3f
[ "BSD-2-Clause" ]
null
null
null
import pandas as pd from xml.etree import ElementTree as etree from pprint import pprint from yattag import * import pdb #------------------------------------------------------------------------------------------------------------------------ # -*- coding: utf-8 -*- #----------------------------------------------------...
37.40796
144
0.555925
82216f6806870559cb8d629f433d7ac86ce64c4c
1,368
py
Python
amazonmusic/genre.py
matt2005/amazon-music
bf546ca32368774194bff6cb5c3dea4278876b63
[ "Apache-2.0" ]
5
2020-12-29T23:51:27.000Z
2022-03-13T04:50:12.000Z
amazonmusic/genre.py
matt2005/amazon-music
bf546ca32368774194bff6cb5c3dea4278876b63
[ "Apache-2.0" ]
null
null
null
amazonmusic/genre.py
matt2005/amazon-music
bf546ca32368774194bff6cb5c3dea4278876b63
[ "Apache-2.0" ]
3
2019-05-29T21:00:00.000Z
2020-03-13T23:09:35.000Z
""" Genre class """
31.090909
94
0.578947
82218be1186fae9dba583c3db3d51aa6acba58d1
38
py
Python
src/dl_plus/__main__.py
un-def/dl-plus
1f5198043bd0885e666c2880a8486e8075e4a0c2
[ "MIT" ]
30
2020-10-24T16:35:48.000Z
2021-11-11T11:04:12.000Z
src/dl_plus/__main__.py
un-def/dl-plus
1f5198043bd0885e666c2880a8486e8075e4a0c2
[ "MIT" ]
null
null
null
src/dl_plus/__main__.py
un-def/dl-plus
1f5198043bd0885e666c2880a8486e8075e4a0c2
[ "MIT" ]
3
2020-11-30T07:11:44.000Z
2021-01-26T08:05:13.000Z
from dl_plus.cli import main main()
7.6
28
0.736842