hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
68272da9ef5f1c688a86d4dfd33eef8b07b524c3
2,447
py
Python
laceworksdk/api/run_reports.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
10
2021-03-20T18:12:16.000Z
2022-02-14T21:33:23.000Z
laceworksdk/api/run_reports.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
10
2021-02-22T23:31:32.000Z
2022-03-25T14:11:27.000Z
laceworksdk/api/run_reports.py
kiddinn/python-sdk
23a33313f97337fddea155bcb19c8d5270fc8013
[ "MIT" ]
7
2021-06-18T18:17:12.000Z
2022-03-25T13:52:14.000Z
""" Lacework Run Reports API wrapper. """ import logging logger = logging.getLogger(__name__) class RunReportsAPI(object): """ Lacework RunReports API. """ def __init__(self, session): """ Initializes the RunReportsAPI object. :param session: An instance of the HttpSession ...
25.489583
118
0.624029
2,348
0.959542
0
0
0
0
0
0
1,555
0.635472
682755414252899eae0fb1b519e05847d5ff143c
56
py
Python
djangoautoconf/keys_default/admin_account_template.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
djangoautoconf/keys_default/admin_account_template.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
djangoautoconf/keys_default/admin_account_template.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
admin_username = "richard" admin_password = "richard666"
28
29
0.803571
0
0
0
0
0
0
0
0
21
0.375
68276c114e2c9758ed125fc1c18ac3b0599cfe2a
888
py
Python
open_box/conf/__init__.py
PeterPZhang/open-box
987f91edf0f502d678459f7cc50070cae34accd9
[ "MIT" ]
2
2021-02-20T04:28:48.000Z
2021-02-23T09:51:02.000Z
open_box/conf/__init__.py
PeterPZhang/open-box
987f91edf0f502d678459f7cc50070cae34accd9
[ "MIT" ]
null
null
null
open_box/conf/__init__.py
PeterPZhang/open-box
987f91edf0f502d678459f7cc50070cae34accd9
[ "MIT" ]
1
2021-02-22T06:52:48.000Z
2021-02-22T06:52:48.000Z
import json class ConfigObject(dict): def __init__(self, **kwargs): super().__init__(**kwargs) self.load_attributes(kwargs) def load_attributes(self, d): for k, v in d.items(): if isinstance(v, dict): self[k] = self.__class__(**v) elif isinstan...
24
61
0.480856
872
0.981982
0
0
0
0
0
0
0
0
682899166e4668f5ec87c91ad26dfdd76110e5e1
2,523
py
Python
discordbot.py
reowoon/discordpy-startup
9922c48569277b18d74af9bc889aea6b1c54e424
[ "MIT" ]
null
null
null
discordbot.py
reowoon/discordpy-startup
9922c48569277b18d74af9bc889aea6b1c54e424
[ "MIT" ]
null
null
null
discordbot.py
reowoon/discordpy-startup
9922c48569277b18d74af9bc889aea6b1c54e424
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os from discord.ext import tasks from datetime import datetime bot = commands.Bot(command_prefix='&') token = os.environ['DISCORD_BOT_TOKEN'] guild = bot.get_guild(417245684656373766) #ステータス @bot.event async def on_ready(): activity = discord.Activity(name='...
29.682353
137
0.671027
0
0
0
0
2,470
0.857639
2,219
0.770486
742
0.257639
682938278246a7af352a4330807844b209118da3
7,225
py
Python
mplStyle/types/lib.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/types/lib.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/types/lib.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
33.142202
79
0.593356
0
0
0
0
0
0
0
0
4,873
0.674464
68294eda3a4048aa6022b5b8002d5929dc0d41b6
12,285
py
Python
plot.py
osamayasserr/vaccum-cleaner
d6b8ea2eedadaca001ae14b66ff55c42ff3facb8
[ "MIT" ]
2
2021-01-11T22:54:38.000Z
2021-01-28T16:15:13.000Z
plot.py
osamayasserr/vaccum-cleaner
d6b8ea2eedadaca001ae14b66ff55c42ff3facb8
[ "MIT" ]
null
null
null
plot.py
osamayasserr/vaccum-cleaner
d6b8ea2eedadaca001ae14b66ff55c42ff3facb8
[ "MIT" ]
1
2021-01-13T09:59:14.000Z
2021-01-13T09:59:14.000Z
import math import pylab from app import StandardRobot, LeastDistanceRobot, RandomWalkRobot, runSimulation def timeNumberPlot(title, x_label, y_label, dim_length): """ Plots the relation between the number of robots and the average time taken by different robots to clean a portion of the room. """ ...
39
88
0.654945
0
0
0
0
0
0
0
0
3,541
0.288238
6829fc0412ea7a5055c0ef733f3314f215ac41ec
795
py
Python
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
3
2018-10-30T17:56:44.000Z
2020-05-27T16:18:05.000Z
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
344
2018-11-01T16:47:56.000Z
2022-02-23T20:36:21.000Z
kf_lib_data_ingest/templates/my_ingest_package/ingest_package_config.py
kids-first/kf-lib-data-ingest
92889efef082c64744a00a9c110d778da7383959
[ "Apache-2.0" ]
1
2020-08-19T21:25:25.000Z
2020-08-19T21:25:25.000Z
""" Ingest Package Config """ # The list of entities that will be loaded into the target service. These # should be class_name values of your target API config's target entity # classes. target_service_entities = [ "family", "participant", "diagnosis", "phenotype", "outcome", "biospecimen", ...
27.413793
75
0.732075
0
0
0
0
0
0
0
0
622
0.78239
682a6e3c9903c978ec62e69b0a956020a4566963
1,877
py
Python
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
src/dbmanage/database_from_csv.py
resolutedreamer/NESLDashboard
b87c65db8bbb2e4999073f08bfd374a3eb769b3d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Written by Anthony Nguyen 2015/06/20 """ import sqlite3 import sys #import smap_analytics as smap_analytics open_this_file = None if len(sys.argv) == 2: open_this_file = sys.argv[1] else: open_this_file = "config/smap_2015.csv" with sqlite3.connect('dashboard.db') as conn: c = c...
31.283333
112
0.580181
0
0
0
0
0
0
0
0
852
0.453916
682b4349f15570d914af6d4986f32343c6454f8e
3,746
py
Python
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
RevCompLibrary.py
sayloren/fennel
b85a08b36900c23931ef2cd988798ae9e671cf8b
[ "Apache-2.0" ]
null
null
null
""" Script to perform RC sorting Wren Saylor July 5 2017 Copyright 2017 Harvard University, Wu Lab 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 ...
41.622222
141
0.780566
0
0
0
0
0
0
0
0
1,657
0.442338
682b439a68c9aa5528add307c36e60310cd9655f
580
py
Python
exos/temperatures.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
7
2016-09-29T07:20:25.000Z
2021-03-15T15:00:06.000Z
exos/temperatures.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
1
2018-10-08T10:52:48.000Z
2018-10-08T10:52:48.000Z
exos/temperatures.py
afafe78/python-im
c831eb92c163084bb3c9098e40d28e7ba8600319
[ "MIT" ]
11
2017-01-12T18:50:49.000Z
2021-02-28T22:44:29.000Z
import sys import math # Auto-generated code below aims at helping you parse # the standard input according to the problem statement. n = int(input()) # the number of temperatures to analyse temps = input() # the n temperatures expressed as integers ranging from -273 to 5526 temps = temps.split() if n == 0: pr...
26.363636
85
0.641379
0
0
0
0
0
0
0
0
216
0.372414
682c0922524d4921d715e9972404209c73d7dea6
694
py
Python
omep-python-test.py
yas-sim/openvino-model-experiment-package
cb96331908b55c5ab15c7bc8c042fb53cd4a2b35
[ "Apache-2.0" ]
3
2020-07-04T02:16:42.000Z
2020-07-05T21:21:22.000Z
omep-python-test.py
yas-sim/openvino-model-experiment-package
cb96331908b55c5ab15c7bc8c042fb53cd4a2b35
[ "Apache-2.0" ]
null
null
null
omep-python-test.py
yas-sim/openvino-model-experiment-package
cb96331908b55c5ab15c7bc8c042fb53cd4a2b35
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt from openvino.inference_engine import IECore import openvino_model_experiment_package as omep # Load an IR model model = 'intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001' ie, net, exenet, inblobs, outblobs, inshapes, outshapes = omep.loa...
27.76
85
0.795389
0
0
0
0
0
0
0
0
165
0.237752
682c4faf90aa04f1fdb70d9f1262a3c8fcfba960
657
py
Python
molecule/tiff/tests/request_tile_in_container.py
girder/ansible-role-large-image
bb2fe69373bf38a2e0afd0a8ae011dabd9f1caf9
[ "Apache-2.0" ]
1
2018-09-17T17:38:41.000Z
2018-09-17T17:38:41.000Z
molecule/tiff/tests/request_tile_in_container.py
girder/ansible-role-large-image
bb2fe69373bf38a2e0afd0a8ae011dabd9f1caf9
[ "Apache-2.0" ]
1
2020-03-05T03:18:07.000Z
2020-03-05T03:18:07.000Z
molecule/tiff/tests/request_tile_in_container.py
girder/ansible-role-large-image
bb2fe69373bf38a2e0afd0a8ae011dabd9f1caf9
[ "Apache-2.0" ]
null
null
null
import large_image import urllib import pytest @pytest.mark.parametrize("item, output", [ ('590346ff8d777f16d01e054c', '/tmp/Huron.Image2_JPEG2K.tif') ]) def test_tiff_tile_source(item, output): """Check whether large_image can return a tile with tiff sources.""" test_url = 'https://data.kitware.com/api/v...
36.5
78
0.733638
0
0
0
0
607
0.923896
0
0
276
0.420091
682c8eecc709a3adc399c98e9632ec8b019beeda
3,359
py
Python
XSTAF/core/tool_manage.py
xcgspring/XSTAF
68a5bec4312173f931b9024e851cefaf778e3bfd
[ "Apache-2.0" ]
2
2016-03-21T01:02:57.000Z
2018-03-16T02:25:04.000Z
XSTAF/core/tool_manage.py
xcgspring/XSTAF
68a5bec4312173f931b9024e851cefaf778e3bfd
[ "Apache-2.0" ]
null
null
null
XSTAF/core/tool_manage.py
xcgspring/XSTAF
68a5bec4312173f931b9024e851cefaf778e3bfd
[ "Apache-2.0" ]
null
null
null
import os import sys import pickle import traceback from XSTAF.core.logger import LOGGER class ToolManager(object): def __init__(self): self.settings = {"ToolsLocation" : r"tools", "ToolsConfigureFile" : "config.pickle"} self.tool_name_list = [] ...
39.05814
108
0.608514
3,267
0.972611
638
0.189937
652
0.194105
0
0
598
0.178029
682d4d61b5d8bc567488186baf7596163fa2d5a9
1,200
py
Python
foodies/forms.py
sharonandisi/foodgram
489794bf23734a80961fd9a790ac17c694335d27
[ "PostgreSQL" ]
null
null
null
foodies/forms.py
sharonandisi/foodgram
489794bf23734a80961fd9a790ac17c694335d27
[ "PostgreSQL" ]
null
null
null
foodies/forms.py
sharonandisi/foodgram
489794bf23734a80961fd9a790ac17c694335d27
[ "PostgreSQL" ]
null
null
null
from django import forms from .models import Image, Profile, Comments class NewsLetterForm(forms.Form): your_name = forms.CharField(label='First Name', max_length=30) email = forms.EmailField(label='Email') class NewImageForm(forms.ModelForm): class Meta: model = Image exclude = ['prof...
28.571429
91
0.626667
1,110
0.925
0
0
0
0
0
0
182
0.151667
682eb91e753309f5167c5c3ce7b313c8b3f7ea9a
120
py
Python
Oefeningen/standalone/list_comprehension_4.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
Oefeningen/standalone/list_comprehension_4.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
Oefeningen/standalone/list_comprehension_4.py
Seviran/Python_3
e30ead250129d25bbc0a7ee2f6298775b2f4529a
[ "MIT" ]
null
null
null
string_input = "amazing" vowels = "aeiou" answer = [char for char in string_input if char not in vowels] print(answer)
20
62
0.741667
0
0
0
0
0
0
0
0
16
0.133333
682f048ab5bbb8cf7aa88b049ef30b187c3d0139
3,404
py
Python
pyingest/tests/test_serializers.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
pyingest/tests/test_serializers.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
pyingest/tests/test_serializers.py
golnazads/adsabs-pyingest
37b37dd9e0d8a6e5cc34c59d30acd14e3381b48e
[ "MIT" ]
null
null
null
""" Test serializer """ import unittest import glob import json try: from cStringIO import StringIO except ImportError: from io import StringIO from pyingest.parsers.iop import IOPJATSParser from pyingest.serializers.classic import Tagged from pyingest.serializers.refwriter import * class TestClassic(unittes...
36.212766
118
0.596063
3,105
0.912162
0
0
0
0
0
0
980
0.287897
682fac4fc964dc03647c016ce6c38daafb6bb051
1,473
py
Python
Chapter10-debugging/maxsubarray_v4.py
showa-yojyo/Software-Architecture-with-Python
46ba48911065292c9d391f66d7213c01699fca80
[ "MIT" ]
null
null
null
Chapter10-debugging/maxsubarray_v4.py
showa-yojyo/Software-Architecture-with-Python
46ba48911065292c9d391f66d7213c01699fca80
[ "MIT" ]
null
null
null
Chapter10-debugging/maxsubarray_v4.py
showa-yojyo/Software-Architecture-with-Python
46ba48911065292c9d391f66d7213c01699fca80
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Code Listing #4 """ Maximum subarray problem - final version """ from contextlib import contextmanager import random import time # 復習 @contextmanager def timer(): """ Measure real-time execution of a block of code """ try: start = time.time() yield finally: ...
22.318182
71
0.618466
0
0
221
0.149628
237
0.16046
0
0
477
0.322952
68301f03cab4108ed375425743ca10036cf4ec40
4,012
py
Python
scripts/frontpage_sqlite_migration.py
r-anime/modbot
52e8f251273435e0146bd8d6633ff22549e138aa
[ "MIT" ]
3
2020-07-06T08:26:12.000Z
2021-04-20T05:31:38.000Z
scripts/frontpage_sqlite_migration.py
r-anime/modbot
52e8f251273435e0146bd8d6633ff22549e138aa
[ "MIT" ]
8
2021-06-01T03:49:28.000Z
2022-03-18T02:27:43.000Z
scripts/frontpage_sqlite_migration.py
r-anime/modbot
52e8f251273435e0146bd8d6633ff22549e138aa
[ "MIT" ]
1
2021-04-20T05:30:46.000Z
2021-04-20T05:30:46.000Z
""" One-time migration script from sqlalchemy models and sqlite database to custom ORM & PostgreSQL. Not designed to work as part of the regular alembic system, merely placed here for archive purposes. Should never need to run this again. 2021-05-03 """ from datetime import datetime, timedelta import sqlite3 from d...
31.100775
113
0.667248
0
0
0
0
0
0
0
0
1,415
0.352692
68306374b036197a8b5db541b5852c5594665fb4
291
py
Python
coursera/a_8_4_romeo.py
polde-live/learnpython
ff8ec96db1951d99797205d0bd491e542152a36f
[ "Unlicense" ]
null
null
null
coursera/a_8_4_romeo.py
polde-live/learnpython
ff8ec96db1951d99797205d0bd491e542152a36f
[ "Unlicense" ]
null
null
null
coursera/a_8_4_romeo.py
polde-live/learnpython
ff8ec96db1951d99797205d0bd491e542152a36f
[ "Unlicense" ]
null
null
null
# fname = raw_input("Enter file name: ") fname = "romeo.txt" fh = open(fname) lst = list() def add_to_list(words): for word in words: if word not in lst: lst.append(word) for line in fh: words = line.split() add_to_list(words) lst.sort() print lst
17.117647
40
0.597938
0
0
0
0
0
0
0
0
51
0.175258
68311b9713af61f80d3b503c3c629b2c60cf2d3b
1,376
py
Python
Code/datasets/yahoo.py
jiahuanluo/label-inference-attacks
ac944418a207943f92f3b45b5c741aa41984a786
[ "MIT" ]
3
2022-01-14T10:15:41.000Z
2022-03-14T12:53:11.000Z
Code/datasets/yahoo.py
jiahuanluo/label-inference-attacks
ac944418a207943f92f3b45b5c741aa41984a786
[ "MIT" ]
1
2022-03-04T06:28:35.000Z
2022-03-04T06:28:35.000Z
Code/datasets/yahoo.py
jiahuanluo/label-inference-attacks
ac944418a207943f92f3b45b5c741aa41984a786
[ "MIT" ]
4
2021-11-20T09:11:19.000Z
2022-03-03T08:16:14.000Z
from datasets.dataset_setup import DatasetSetup from models import read_data_text class YahooSetup(DatasetSetup): def __init__(self): super().__init__() self.num_classes = 10 self.size_bottom_out = 10 def set_datasets_for_ssl(self, file_path, n_labeled, party_num): train_label...
40.470588
112
0.694767
1,101
0.800145
0
0
0
0
0
0
69
0.050145
6831695451c0f9a55c30a633eac4c6bb030724d8
744
py
Python
scripts/cloud_function.py
sansbacon/mfl_playoff_leagues
33fd070be6e9e4d900acea2fbc9cf47068c655e0
[ "MIT" ]
null
null
null
scripts/cloud_function.py
sansbacon/mfl_playoff_leagues
33fd070be6e9e4d900acea2fbc9cf47068c655e0
[ "MIT" ]
2
2022-01-24T14:06:11.000Z
2022-01-24T14:48:02.000Z
scripts/cloud_function.py
sansbacon/mfl_playoff_leagues
33fd070be6e9e4d900acea2fbc9cf47068c655e0
[ "MIT" ]
null
null
null
from mfl_playoff_leagues import MFL def run(request): """Responds to any HTTP request. Args: request (flask.Request): HTTP request object. Returns: The response text or any set of values that can be turned into a Response object using `make_response <http://flask.poco...
26.571429
89
0.653226
0
0
0
0
0
0
0
0
392
0.526882
6831702b54dbaea7d1289e2c3040f25037a1de8b
262
py
Python
third_party/pdfium/build/gyp_pdfium.py
satorumpen/node-pdfium-native
90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c
[ "BSD-2-Clause" ]
303
2015-03-13T08:31:24.000Z
2022-03-21T10:06:45.000Z
third_party/pdfium/build/gyp_pdfium.py
satorumpen/node-pdfium-native
90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c
[ "BSD-2-Clause" ]
15
2015-04-03T02:33:53.000Z
2020-01-28T10:42:29.000Z
third_party/pdfium/build/gyp_pdfium.py
satorumpen/node-pdfium-native
90e5bf8bc69c80620f9f4231ebf8e39ef1178b8c
[ "BSD-2-Clause" ]
100
2015-03-13T08:28:56.000Z
2022-02-18T03:19:39.000Z
# Copyright 2014 PDFium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os path = os.path.abspath(os.path.split(__file__)[0]) execfile(os.path.join(path, 'gyp_pdfium'))
29.111111
72
0.751908
0
0
0
0
0
0
0
0
165
0.629771
6831bfd553ffd66dddccc11e3bad3d1009993596
1,508
py
Python
docs/source/examples/complex.py
dev10110/pyObjective
6d831accaf5c67a8252b2dc744001dd9e5db5f4d
[ "MIT" ]
null
null
null
docs/source/examples/complex.py
dev10110/pyObjective
6d831accaf5c67a8252b2dc744001dd9e5db5f4d
[ "MIT" ]
null
null
null
docs/source/examples/complex.py
dev10110/pyObjective
6d831accaf5c67a8252b2dc744001dd9e5db5f4d
[ "MIT" ]
null
null
null
from pyObjective import Variable, Model import numpy as np """This example script is written to demonstrate the use of classes, and how more complicated models can be built, and still passed to the solver. As a rudimentary example, it has two cubes and a sphere, and we are trying to find the dimensions such that the...
24.322581
115
0.653183
550
0.364721
0
0
0
0
0
0
743
0.492706
6833573a8789e8696ad0b078fc32733ac35d4da7
3,005
py
Python
tests/test_inlinequeryresultgame.py
ehsanbarkhordar/botcup
4e45c3df2dceb8afe3833c0e89813fa9493295ed
[ "MIT" ]
1
2019-10-22T03:46:17.000Z
2019-10-22T03:46:17.000Z
python-telegram-bot/tests/test_inlinequeryresultgame.py
shyguy-ry/paddingCheckBot
d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1
[ "Apache-2.0" ]
null
null
null
python-telegram-bot/tests/test_inlinequeryresultgame.py
shyguy-ry/paddingCheckBot
d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2018 # Leandro Toledo de Souza <[email protected]> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
39.539474
85
0.702163
1,752
0.583028
0
0
287
0.095507
0
0
888
0.295507
6833d75d22c19c184314891bfedfda10a657b443
835
py
Python
project/ui/sheet.py
surister/code-jam-3
9d13c4e3f99dd34b3ced699964fd1298c2c8df81
[ "MIT" ]
2
2018-10-30T13:03:43.000Z
2019-03-08T10:59:01.000Z
project/ui/sheet.py
skilldeliver/code-jam-3
9d13c4e3f99dd34b3ced699964fd1298c2c8df81
[ "MIT" ]
null
null
null
project/ui/sheet.py
skilldeliver/code-jam-3
9d13c4e3f99dd34b3ced699964fd1298c2c8df81
[ "MIT" ]
2
2019-07-21T15:32:41.000Z
2020-10-01T17:49:57.000Z
import pygame as pg class Sheet: """ Represents tool for extracting sprites from spritesheet. """ def __init__(self, sheet_path): """ Constructor for the sheet tool. Loading the spritesheet. """ self.spritesheet = pg.image.load(sheet_path).convert_alpha() d...
30.925926
87
0.602395
812
0.972455
0
0
0
0
0
0
343
0.410778
6837584b088def649cb22875398b8143f9388db8
5,398
py
Python
sandbox/bendpy/discont/dg_sine.py
MiroK/lega
ceb684ad639521e4a6e679188761984e2caa5611
[ "MIT" ]
3
2015-07-14T01:19:17.000Z
2020-12-10T14:00:45.000Z
sandbox/bendpy/discont/dg_sine.py
MiroK/lega
ceb684ad639521e4a6e679188761984e2caa5611
[ "MIT" ]
null
null
null
sandbox/bendpy/discont/dg_sine.py
MiroK/lega
ceb684ad639521e4a6e679188761984e2caa5611
[ "MIT" ]
null
null
null
# Analytical solutions for problems that can be solved with the two sine basis. ### # Problem one is # # -u`` = f in [0, pi] with u(0) = u(pi) = 0 for f which is # g on [0, pi/2) and h on [pi/2, pi] # ### # Problem two is # # u```` = f in [0, pi] with u(0) = u(pi) = 0, u`(0) = u`(pi) = 0 for f which is # g on [0, ...
31.022989
79
0.483142
0
0
0
0
0
0
0
0
1,361
0.25213
6837ab42c2f65e2a2df59f39ed16d067247c7e29
7,642
py
Python
pyunity/values/quaternion.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
pyunity/values/quaternion.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
pyunity/values/quaternion.py
rayzchen/PyUnity
8ed436eca7a84f05190c1fa275c58da5c6059926
[ "MIT" ]
null
null
null
# Copyright (c) 2020-2022 The PyUnity Team # This file is licensed under the MIT License. # See https://docs.pyunity.x10.bz/en/latest/license.html """Class to represent a rotation in 3D space.""" __all__ = ["Quaternion", "QuaternionDiff"] from . import Mathf from .vector import Vector3, conv from .other import Locke...
29.392308
106
0.522245
7,309
0.956425
103
0.013478
3,327
0.435357
0
0
1,701
0.222586
6837cc30692c462a7a0c489ba23cd6a7b34c84cf
402
py
Python
db/db_connector.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
1
2021-05-29T11:08:09.000Z
2021-05-29T11:08:09.000Z
db/db_connector.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
1
2021-08-03T12:36:46.000Z
2021-08-03T12:36:46.000Z
db/db_connector.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
null
null
null
from config import secret from utils import getLogger DEBUG = getLogger() class MysqlConnection: def __init__(self, database, server_name): self.host = secret[server_name]['mysql']['host'] self.port = secret[server_name]['mysql']['port'] self.username = secret[server_name]['mysql']['username'] self...
33.5
60
0.711443
327
0.813433
0
0
0
0
0
0
60
0.149254
683999d61c2d040fef9e9f17e0c36c60ebd1671e
5,147
py
Python
tests/docker/testhost/ui_test.py
huskywhale/safeplaces-frontend
bb46580837692a8ec6e02af3fa9d415242439b25
[ "MIT" ]
null
null
null
tests/docker/testhost/ui_test.py
huskywhale/safeplaces-frontend
bb46580837692a8ec6e02af3fa9d415242439b25
[ "MIT" ]
null
null
null
tests/docker/testhost/ui_test.py
huskywhale/safeplaces-frontend
bb46580837692a8ec6e02af3fa9d415242439b25
[ "MIT" ]
null
null
null
#from selenium.webdriver.remote import webdriver from selenium import webdriver #from selenium.webdriver.chrome import options from page_objects import EntryPage, LoginPage, RedactionPage, ContactTracePage, AddNewRecordPage, AddDataToRecordPage, StageForPublishingPage, PublishDataPage, SettingsPage, Tools import unitte...
45.149123
194
0.682922
4,812
0.934914
0
0
0
0
0
0
1,544
0.299981
683a3d763a7c968c779e9e79c5590b8d66a1acc0
2,532
py
Python
kenning/outputcollectors/name_printer.py
antmicro/edge-ai-tester
6b145145ed1cec206ae0229c846fb33d272f3ffa
[ "Apache-2.0" ]
20
2021-06-24T13:37:21.000Z
2022-03-25T10:50:26.000Z
kenning/outputcollectors/name_printer.py
antmicro/edge-ai-tester
6b145145ed1cec206ae0229c846fb33d272f3ffa
[ "Apache-2.0" ]
null
null
null
kenning/outputcollectors/name_printer.py
antmicro/edge-ai-tester
6b145145ed1cec206ae0229c846fb33d272f3ffa
[ "Apache-2.0" ]
1
2021-11-09T17:23:04.000Z
2021-11-09T17:23:04.000Z
""" A small, very basic OutputCollector-derived class used to test handling of multiple OutputCollectors in inference_runner scenario """ from kenning.core.outputcollector import OutputCollector from kenning.datasets.open_images_dataset import DectObject from typing import Any, Union import numpy as np from pathlib imp...
32.883117
110
0.540679
2,200
0.868878
0
0
695
0.274487
0
0
464
0.183254
683a460d29953d3626084a99677147d11506c15d
291
py
Python
plugins/bilibili_activity/contents/unknown.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
2
2022-02-14T06:37:05.000Z
2022-03-30T12:18:15.000Z
plugins/bilibili_activity/contents/unknown.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
plugins/bilibili_activity/contents/unknown.py
su226/IdhagnBot
a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609
[ "MIT" ]
null
null
null
from typing import Any from .. import util FORMAT = '''\ 🤔 {username} 发布了……一些东西 https://t.bilibili.com/{id} 目前机器人还不能理解这个qwq''' def handle(content: Any) -> str: return FORMAT.format( username=content["desc"]["user_profile"]["info"]["uname"], id=content["desc"]["dynamic_id_str"])
22.384615
62
0.670103
0
0
0
0
0
0
0
0
174
0.517857
683d706676e142f86e414d75b32aa04fdb20a6fb
4,159
py
Python
georiviere/observations/tests/test_views.py
georiviere/Georiviere-admin
4ac532f84a7a8fef3e01384fad63e8e288d397c0
[ "BSD-2-Clause" ]
7
2021-11-05T14:52:25.000Z
2022-03-24T21:18:02.000Z
georiviere/observations/tests/test_views.py
georiviere/Georiviere-admin
4ac532f84a7a8fef3e01384fad63e8e288d397c0
[ "BSD-2-Clause" ]
57
2021-11-02T10:27:34.000Z
2022-03-31T14:08:32.000Z
georiviere/observations/tests/test_views.py
georiviere/Georiviere-admin
4ac532f84a7a8fef3e01384fad63e8e288d397c0
[ "BSD-2-Clause" ]
1
2021-12-05T14:55:42.000Z
2021-12-05T14:55:42.000Z
from collections import OrderedDict from geotrek.authent.tests.factories import StructureFactory from georiviere.tests import CommonRiverTest from georiviere.observations.models import Station, ParameterTracking from .factories import ( StationFactory, StationProfileFactory, ParameterFactory ) class StationView...
40.77451
107
0.622265
3,857
0.926941
0
0
0
0
0
0
1,490
0.358087
683ea3da0b0b99dd76dd80bf6093b1dfbb0b984c
8,145
py
Python
lowendspirit/cloudflareAPI.py
boxcontrol/lowendspirit
d6ca41d14c1a974794c483d3baf885f1f3a40baf
[ "MIT" ]
3
2017-04-25T20:00:35.000Z
2021-12-03T01:28:38.000Z
lowendspirit/cloudflareAPI.py
boxcontrol/lowendspirit
d6ca41d14c1a974794c483d3baf885f1f3a40baf
[ "MIT" ]
null
null
null
lowendspirit/cloudflareAPI.py
boxcontrol/lowendspirit
d6ca41d14c1a974794c483d3baf885f1f3a40baf
[ "MIT" ]
2
2020-05-14T23:07:47.000Z
2022-01-08T16:49:05.000Z
import requests from requests.auth import HTTPBasicAuth import json import pprint class Cloudflare_Enduser_API: def __init__(self, cf_token, cf_email): self.cf_token = cf_token self.cf_email = cf_email self.headers = { 'Content-Type': 'application/json', 'X-Auth-Key...
35.881057
108
0.59558
8,056
0.989073
0
0
0
0
0
0
3,276
0.40221
683f08f0ca695b37d41ba51ec1f2b90d9c25e9ea
1,085
py
Python
tests/unit_tests/test_features.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
tests/unit_tests/test_features.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
tests/unit_tests/test_features.py
constantinpape/mc_luigi
c8dac84ace7d422f7ec25d722204b25d625c84e1
[ "MIT" ]
null
null
null
import unittest import os from subprocess import call import z5py import vigra from test_class import McLuigiTestCase class TestDataTasks(McLuigiTestCase): @classmethod def setUpClass(cls): super(TestDataTasks, cls).setUpClass() @classmethod def tearDownClass(cls): super(TestDataTa...
27.125
77
0.684793
913
0.841475
0
0
174
0.160369
0
0
134
0.123502
683fdfc38c6be9c97c19d59c1851c1bf1394efb9
1,912
py
Python
src/images/migrations/0004_auto_20200713_1943.py
thesus/bokstaever
e0a5e2614dd222ccd56a8945aba4fd28de85dd31
[ "MIT" ]
null
null
null
src/images/migrations/0004_auto_20200713_1943.py
thesus/bokstaever
e0a5e2614dd222ccd56a8945aba4fd28de85dd31
[ "MIT" ]
7
2019-11-18T16:11:01.000Z
2019-11-18T16:11:04.000Z
src/images/migrations/0004_auto_20200713_1943.py
thesus/bokstaever
e0a5e2614dd222ccd56a8945aba4fd28de85dd31
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-13 19:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("images", "0003_image_creation_date"), ] operations = [ migrations.AddField( model_name="image",...
30.83871
88
0.550732
1,786
0.9341
0
0
0
0
0
0
347
0.181485
684030ef33682d87ebeb550a206ba38d9db656d9
4,733
py
Python
grblas/backends/python/matrix.py
jim22k/grblas-dev
5574894c6317c61fa747ac17b4112f2c6b3c4a6c
[ "Apache-2.0" ]
null
null
null
grblas/backends/python/matrix.py
jim22k/grblas-dev
5574894c6317c61fa747ac17b4112f2c6b3c4a6c
[ "Apache-2.0" ]
null
null
null
grblas/backends/python/matrix.py
jim22k/grblas-dev
5574894c6317c61fa747ac17b4112f2c6b3c4a6c
[ "Apache-2.0" ]
null
null
null
import numba import numpy as np from scipy.sparse import csr_matrix from .base import BasePointer, GraphBlasContainer from .context import handle_panic, return_error from .exceptions import GrB_Info class MatrixPtr(BasePointer): def set_matrix(self, matrix): self.instance = matrix class Matrix(GraphBlas...
30.733766
97
0.603
576
0.121699
0
0
4,163
0.879569
0
0
471
0.099514
684188842440f0302697bdfa81cff956f82483fa
266
py
Python
server/medication_icons/admin.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
null
null
null
server/medication_icons/admin.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
27
2018-09-30T07:59:21.000Z
2020-11-05T19:25:41.000Z
server/medication_icons/admin.py
nickdotreid/opioid-mat-decision-aid
bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1
[ "MIT" ]
null
null
null
from django.contrib import admin from imagekit.admin import AdminThumbnail from .models import Icon @admin.register(Icon) class IconAdmin(admin.ModelAdmin): list_display = ('name', 'icon_thumbnail') icon_thumbnail = AdminThumbnail(image_field='thumbnail')
26.6
60
0.785714
141
0.530075
0
0
163
0.612782
0
0
33
0.12406
6842dd797c24725a8fb09ac24488ca4ad6bea4a3
245
py
Python
dlutils/models/sklearn/classification.py
chelseajohn/dlapplication
d2eaba9077320f5a33e122b99691577fe899e1d6
[ "Apache-2.0" ]
2
2020-05-07T05:08:54.000Z
2020-05-13T10:14:53.000Z
dlutils/models/sklearn/classification.py
chelseajohn/dlapplication
d2eaba9077320f5a33e122b99691577fe899e1d6
[ "Apache-2.0" ]
null
null
null
dlutils/models/sklearn/classification.py
chelseajohn/dlapplication
d2eaba9077320f5a33e122b99691577fe899e1d6
[ "Apache-2.0" ]
3
2020-05-06T18:49:37.000Z
2020-07-13T05:11:56.000Z
def getSKLearnLogisticRegression(self, regParam, dim=1): from DLplatform.learning.batch.sklearnClassifiers import LogisticRegression learner = LogisticRegression(regParam = regParam, dim = dim) return learner
49
83
0.718367
0
0
0
0
0
0
0
0
0
0
6842eadf7eb0da603518d7dfbb7c45e88afc4efa
2,933
py
Python
tests/test_storage.py
tefra/pytubefm
a7c5d6252584dc0abee946e707f496cecaebf1bb
[ "MIT" ]
null
null
null
tests/test_storage.py
tefra/pytubefm
a7c5d6252584dc0abee946e707f496cecaebf1bb
[ "MIT" ]
2
2019-01-06T00:16:23.000Z
2019-01-12T19:17:07.000Z
tests/test_storage.py
tefra/pytubefm
a7c5d6252584dc0abee946e707f496cecaebf1bb
[ "MIT" ]
null
null
null
import json import os import shutil import tempfile from datetime import timedelta from unittest import mock from unittest import TestCase from pytuber.storage import Registry class RegistryTests(TestCase): def tearDown(self): Registry.clear() Registry._obj = {} def test_singleton(self): ...
27.157407
69
0.545176
2,753
0.938629
0
0
906
0.308899
0
0
188
0.064098
6842faa221c3f8cd72b5a952bcb528ae995ea413
2,636
py
Python
Solutions/187.py
ruppysuppy/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
70
2021-03-18T05:22:40.000Z
2022-03-30T05:36:50.000Z
Solutions/187.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
null
null
null
Solutions/187.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
30
2021-03-18T05:22:43.000Z
2022-03-17T10:25:18.000Z
""" Problem: You are given given a list of rectangles represented by min and max x- and y-coordinates. Compute whether or not a pair of rectangles overlap each other. If one rectangle completely covers another, it is considered overlapping. For example, given the following rectangles: { "top_left": (1, 4), "...
27.747368
85
0.621396
0
0
0
0
0
0
0
0
1,075
0.407815
6845278d22fbe126696231718367291253a5efff
1,819
py
Python
benchmark/bench_asynckafka.py
askuratovsky/asynckafka
16be6d89b0e5c18899047c1c5abd899edec1204b
[ "MIT" ]
31
2018-02-28T09:43:01.000Z
2022-01-06T14:51:03.000Z
benchmark/bench_asynckafka.py
askuratovsky/asynckafka
16be6d89b0e5c18899047c1c5abd899edec1204b
[ "MIT" ]
7
2018-11-07T20:21:57.000Z
2022-01-06T14:50:58.000Z
benchmark/bench_asynckafka.py
askuratovsky/asynckafka
16be6d89b0e5c18899047c1c5abd899edec1204b
[ "MIT" ]
6
2019-05-17T06:25:07.000Z
2022-01-15T13:05:29.000Z
import asyncio from asynckafka import Producer, Consumer import config import utils loop = asyncio.get_event_loop() async def fill_topic_with_messages(): producer = Producer( brokers=config.KAFKA_URL, rdk_producer_config=config.RDK_PRODUCER_CONFIG, rdk_topic_config=config.RDK_TOPIC_CONF...
27.984615
78
0.68829
0
0
0
0
0
0
1,621
0.891149
329
0.180869
6849219d3c1b5f5dd246b210ec443de592738989
744
py
Python
lcd/interrupts/interrupt3.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
6
2016-08-31T16:46:54.000Z
2017-09-15T19:34:30.000Z
lcd/interrupts/interrupt3.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
4
2016-09-02T09:18:41.000Z
2016-09-02T09:24:08.000Z
lcd/interrupts/interrupt3.py
BornToDebug/homeStruction
354e03c05cb363d8397d0e2d7afeb78a029266f9
[ "Apache-2.0" ]
null
null
null
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(24, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) def my_callback(channel): print "falling edge detected on 18" def my_callback2(channel): print "falling edge detect...
27.555556
78
0.77957
0
0
0
0
0
0
0
0
185
0.248656
6849e5b2237ba2dd6b7a8100fe52a7772987a103
2,465
py
Python
tests/module/module_topology_distmat_test.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
4
2019-06-24T12:56:28.000Z
2021-03-27T17:32:17.000Z
tests/module/module_topology_distmat_test.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
1
2020-09-25T12:15:27.000Z
2020-10-11T10:28:30.000Z
tests/module/module_topology_distmat_test.py
MD-Studio/MDInteract
55bb51d27ec8d4095118837a997eea7467c2ac53
[ "Apache-2.0" ]
5
2019-09-12T02:35:04.000Z
2021-07-30T18:05:28.000Z
# -*- coding: utf-8 -*- """ file: module_topology_distmat_test.py Unit tests for distance matrix computations """ import os from pandas import DataFrame from interact.md_system import System from tests.module.unittest_baseclass import UnittestPythonCompatibility class DistanceMatrixTests(UnittestPythonCompatibil...
30.8125
84
0.664909
2,195
0.890467
0
0
0
0
0
0
747
0.303043
684a7ad5dfe8d2dab224d7cde08220c071cef36c
1,010
py
Python
src/kgmk/ruijianime/scrape/comic_ids/all.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/ruijianime/scrape/comic_ids/all.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/ruijianime/scrape/comic_ids/all.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import typing import bs4 import requests class ScrapeAllComicIds(): def __call__( self, ) -> typing.List[int]: self.__find() return self.__ids def __find( self, ) -> typing.NoReturn: self.__ids = [] for q in self.__query: self.__find_per_page(q) def __find_per_page( ...
16.833333
31
0.515842
965
0.955446
0
0
0
0
0
0
169
0.167327
684aa04b39502e680a61c0b2aa16db3b3d2dae83
6,241
py
Python
pymdownx/pathconverter.py
willstott101/pymdown-extensions
11796a749d781b12db43c3967af66e901c1dc6d8
[ "MIT" ]
null
null
null
pymdownx/pathconverter.py
willstott101/pymdown-extensions
11796a749d781b12db43c3967af66e901c1dc6d8
[ "MIT" ]
2
2019-12-10T23:12:38.000Z
2020-02-20T23:27:26.000Z
pymdownx/pathconverter.py
Richienb/pymdown-extensions
2385c38bf6988c86c553557e248c4d8c3140dfc1
[ "MIT" ]
null
null
null
""" Path Converter. pymdownx.pathconverter An extension for Python Markdown. An extension to covert tag paths to relative or absolute: Given an absolute base and a target relative path, this extension searches for file references that are relative and converts them to a path relative to the base path. -or- Given a...
34.865922
120
0.619452
1,593
0.255248
0
0
0
0
0
0
3,013
0.482775
684b4c2dccb681c7ad6626bfed2957b27acae3cb
879
py
Python
backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py
mehrdad-shokri/backdoorme
f9755ca6cec600335e681752e7a1c5c617bb5a39
[ "MIT" ]
796
2015-10-09T20:30:04.000Z
2022-03-24T19:07:32.000Z
backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py
mehrdad-shokri/backdoorme
f9755ca6cec600335e681752e7a1c5c617bb5a39
[ "MIT" ]
169
2015-11-26T16:14:02.000Z
2020-08-04T21:51:58.000Z
backdoors/shell/__pupy/pupy/packages/src/VideoCapture/src/fixhtml.py
mehrdad-shokri/backdoorme
f9755ca6cec600335e681752e7a1c5c617bb5a39
[ "MIT" ]
168
2015-11-27T23:21:04.000Z
2022-01-23T06:14:33.000Z
import os, string oldWin = '''span { font-family: Verdana; background: #e0e0d0; font-size: 10pt; } </style> </head> <body bgcolor="#e0e0d0"> ''' oldLinux = '''span { font-family: Verdana; background: #e0e0d0; font-size: 13pt; } </style> </head> <body bgcolor="#e0e0d0"> ''' new = '''span { font-family: Verdana...
18.3125
53
0.571104
0
0
0
0
0
0
0
0
345
0.392491
684d4d1dfa257a989173c87dfaa7f66ed6d73ef4
1,191
py
Python
pyaww/static_header.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
5
2021-06-25T14:34:52.000Z
2021-07-04T14:15:13.000Z
pyaww/static_header.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
1
2021-12-12T00:47:25.000Z
2022-01-24T17:19:43.000Z
pyaww/static_header.py
ammarsys/pyanywhere-wrapper
d8cde2d29900c25fc7ab3cd8103923f727b5dade
[ "MIT" ]
1
2021-12-14T15:44:52.000Z
2021-12-14T15:44:52.000Z
from typing import TYPE_CHECKING if TYPE_CHECKING: from .webapp import WebApp class StaticHeader: """Contains all relevant methods to a static header.""" id: int url: str name: str value: dict def __init__(self, resp: dict, webapp: 'WebApp') -> None: """ Initialize the cl...
26.466667
109
0.581864
1,105
0.927792
0
0
0
0
0
0
596
0.50042
684d711535d79d99779edb8a3462b424e50c2b1d
1,654
py
Python
Clase6/pila.py
JoseCordobaEAN/EstructurasDeDatosUE4P
86a5c426d83d9d9ae86656c3c78324a1c07f608d
[ "MIT" ]
2
2019-08-17T21:15:47.000Z
2019-09-21T12:15:19.000Z
Clase6/pila.py
JoseCordobaEAN/EstructurasDeDatosUE4P
86a5c426d83d9d9ae86656c3c78324a1c07f608d
[ "MIT" ]
null
null
null
Clase6/pila.py
JoseCordobaEAN/EstructurasDeDatosUE4P
86a5c426d83d9d9ae86656c3c78324a1c07f608d
[ "MIT" ]
null
null
null
class Nodo: elemento = None Siguiente = None def __init__(self, elemento, siguiente): self.elemento = elemento self.Siguiente = siguiente class Pila: tamano = 0 top = None def apilar(self, elemento): """ Agrega un elemento al tope de la pila :param e...
24.686567
60
0.576179
1,652
0.998187
0
0
0
0
0
0
396
0.239275
684e278a6a7cc07b68dfd75e5943c572c4fc026f
3,354
py
Python
mmdet/core/utils/my_hook.py
ydiller/NoMoreNMS
1c1557357e5312c287f0971c840060deb1bcd039
[ "Apache-2.0" ]
null
null
null
mmdet/core/utils/my_hook.py
ydiller/NoMoreNMS
1c1557357e5312c287f0971c840060deb1bcd039
[ "Apache-2.0" ]
null
null
null
mmdet/core/utils/my_hook.py
ydiller/NoMoreNMS
1c1557357e5312c287f0971c840060deb1bcd039
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import copy import logging from collections import defaultdict from itertools import chain from torch.nn.utils import clip_grad from mmcv.utils import TORCH_VERSION, _BatchNorm, digit_version # from ..dist_utils import allreduce_grads # from ..fp16_utils import LossScal...
36.857143
78
0.613298
2,717
0.810078
0
0
2,742
0.817531
0
0
1,088
0.324389
684f7a6494a0ed2b61957330a13887c3aaff66e6
436
py
Python
tests/fixtures/reporters/feed.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
2
2016-01-21T04:16:57.000Z
2016-04-27T04:46:13.000Z
tests/fixtures/reporters/feed.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
null
null
null
tests/fixtures/reporters/feed.py
kuc2477/news
215f87e6ce1a7fc99175596e6fd5b4b50a3179c6
[ "MIT" ]
null
null
null
import pytest from news.reporters import ReporterMeta from news.reporters.feed import AtomReporter, RSSReporter @pytest.fixture def rss_reporter(sa_schedule, sa_backend): meta = ReporterMeta(schedule=sa_schedule) return RSSReporter(meta=meta, backend=sa_backend) @pytest.fixture def atom_reporter(sa_schedule...
27.25
57
0.805046
0
0
0
0
318
0.729358
0
0
0
0
6850a777d683c3f59834728ab8d549add89917c0
4,945
py
Python
deployer/main.py
sportsy/deployer
e5dff46707773992aad7bcf47539b1d59ac3ee2c
[ "MIT" ]
null
null
null
deployer/main.py
sportsy/deployer
e5dff46707773992aad7bcf47539b1d59ac3ee2c
[ "MIT" ]
null
null
null
deployer/main.py
sportsy/deployer
e5dff46707773992aad7bcf47539b1d59ac3ee2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import os import ConfigParser import json import time import threading from distutils.core import setup import pika import boto import pusherclient from boto.sqs.message import RawMessage # set defaults channel = None global pusher config = ConfigParser.ConfigParser() class MQServer...
29.969697
173
0.61092
3,405
0.688574
0
0
0
0
0
0
1,658
0.335288
68510211118d2b8c5a255e3f39fd3647748d0494
245
py
Python
nipype/workflows/dmri/mrtrix/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/workflows/dmri/mrtrix/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/workflows/dmri/mrtrix/__init__.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from .diffusion import create_mrtrix_dti_pipeline from .connectivity_mapping import create_connectivity_pipeline from .group_connectivity import (create_group_connectivity_pipeline)
40.833333
68
0.857143
0
0
0
0
0
0
0
0
23
0.093878
6851217599a86b71913e6f6728bab12730f9d8ae
1,528
py
Python
main.py
dunderstab/SembleLang
395d30419d52107b2fa248555b839bd852992594
[ "MIT" ]
null
null
null
main.py
dunderstab/SembleLang
395d30419d52107b2fa248555b839bd852992594
[ "MIT" ]
null
null
null
main.py
dunderstab/SembleLang
395d30419d52107b2fa248555b839bd852992594
[ "MIT" ]
null
null
null
import src.lex import src.parse import src.eval import src.tools import src.optimize import src.pre import re import sys def main(file, n=None, first=False): import os debug = False version = "Beta 2.5" l = src.tools.readSembleFile(file) #if first: # l += src.pre.importf("base.smb", l)[0] l, fname ...
25.04918
94
0.59555
0
0
0
0
0
0
0
0
779
0.509817
6851afbd7c56c12caaf48e494760ed9de7cf64a5
5,005
py
Python
lib/browser.py
qwghlm/WhensMyBus
bef206c15a5efdeeca234a9f31d98b2ec33342af
[ "MIT" ]
4
2015-01-02T20:31:43.000Z
2017-03-02T11:27:39.000Z
lib/browser.py
qwghlm/WhensMyBus
bef206c15a5efdeeca234a9f31d98b2ec33342af
[ "MIT" ]
1
2016-10-17T21:23:48.000Z
2016-10-17T21:23:48.000Z
lib/browser.py
qwghlm/WhensMyBus
bef206c15a5efdeeca234a9f31d98b2ec33342af
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Data browser for When's My Transport, with caching and JSON/XML parsing """ import json import logging import os import urllib2 import time from xml.dom.minidom import parseString from xml.etree.ElementTree import fromstring from lib.exceptions import WhensMyTransportException # # API URLs ...
39.409449
120
0.600999
3,851
0.769431
0
0
0
0
0
0
1,946
0.388811
6851b38c6e5c265b8398f65f866f61d65d0c141e
1,099
py
Python
oommfpy/tools/plot_tools.py
davidcortesortuno/oommfpy
daa56f96fd0d301d42a4bc260f7142f0a8e62f8d
[ "BSD-2-Clause" ]
9
2019-05-25T07:42:14.000Z
2022-02-22T21:08:47.000Z
oommfpy/tools/plot_tools.py
davidcortesortuno/oommfpy
daa56f96fd0d301d42a4bc260f7142f0a8e62f8d
[ "BSD-2-Clause" ]
9
2019-05-25T07:41:57.000Z
2021-11-27T14:12:28.000Z
oommfpy/tools/plot_tools.py
davidcortesortuno/oommfpy
daa56f96fd0d301d42a4bc260f7142f0a8e62f8d
[ "BSD-2-Clause" ]
7
2019-07-21T05:42:39.000Z
2022-03-28T13:57:03.000Z
import colorsys import numpy as np # ----------------------------------------------------------------------------- # Utilities to generate a HSL colourmap from the magnetisation field data def convert_to_RGB(hls_color): return np.array(colorsys.hls_to_rgb(hls_color[0] / (2 * np.pi), ...
28.921053
79
0.44404
0
0
0
0
0
0
0
0
336
0.305732
68532915a517819212ed6da9e432ef69c63e0d22
299
py
Python
83. Remove Duplicates from Sorted List.py
fossabot/leetcode-2
335f1aa3ee785320515c3d3f03c2cb2df3bc13ba
[ "MIT" ]
2
2018-02-26T09:12:19.000Z
2019-06-07T13:38:10.000Z
83. Remove Duplicates from Sorted List.py
fossabot/leetcode-2
335f1aa3ee785320515c3d3f03c2cb2df3bc13ba
[ "MIT" ]
1
2018-12-24T07:03:34.000Z
2018-12-24T07:03:34.000Z
83. Remove Duplicates from Sorted List.py
fossabot/leetcode-2
335f1aa3ee785320515c3d3f03c2cb2df3bc13ba
[ "MIT" ]
2
2018-12-24T07:01:03.000Z
2019-06-07T13:38:07.000Z
class Solution(object): def deleteDuplicates(self, head): initial = head while head: if head.next and head.val == head.next.val: head.next = head.next.next else: head = head.next head = initial return head
24.916667
55
0.51505
297
0.993311
0
0
0
0
0
0
0
0
6853ac15da1a977cf572b5b81090168754bb6148
9,165
py
Python
RecSysFramework/Evaluation/Comparator.py
damicoedoardo/NNMF
69fff4848b3243a2d3347bec3e1c9a01ae40e51a
[ "MIT" ]
2
2020-12-11T12:46:00.000Z
2021-08-17T13:29:41.000Z
RecSysFramework/Evaluation/Comparator.py
damicoedoardo/NNMF
69fff4848b3243a2d3347bec3e1c9a01ae40e51a
[ "MIT" ]
null
null
null
RecSysFramework/Evaluation/Comparator.py
damicoedoardo/NNMF
69fff4848b3243a2d3347bec3e1c9a01ae40e51a
[ "MIT" ]
null
null
null
''' Created on Wed Sep 18 2019 @author XXX ''' import numpy as np import scipy.sparse as sps import time import sys import copy from tqdm import tqdm from enum import Enum from RecSysFramework.Utils import seconds_to_biggest_unit from RecSysFramework.Utils.compute_popularity import compute_popularity_user from RecSys...
41.098655
167
0.600327
8,681
0.94719
0
0
0
0
0
0
2,258
0.246372
6853c8f28ea7f7496002136021b31195092bc07c
3,233
py
Python
app/grid_model.py
vinhta314/game-of-life-visualiser
957ba490c12836e38e6b40024046c10466780739
[ "MIT" ]
null
null
null
app/grid_model.py
vinhta314/game-of-life-visualiser
957ba490c12836e38e6b40024046c10466780739
[ "MIT" ]
null
null
null
app/grid_model.py
vinhta314/game-of-life-visualiser
957ba490c12836e38e6b40024046c10466780739
[ "MIT" ]
null
null
null
import numpy as np class CellularAutomationModel: grid_width = 40 grid_height = 40 def __init__(self): self.grid = self._randomised_grid() def evolve(self): """ Evolve the current grid state using Conway's Game of Life algorithm. :returns dict: A dictiona...
32.989796
110
0.590473
3,211
0.993195
0
0
887
0.274358
0
0
1,217
0.376431
68584b0872eb1fd43baeac7af1a1487c2977e004
21,365
py
Python
session.py
cheng6076/virnng
d790c02833865c43cb8afb2552a75c9445365f24
[ "Apache-2.0" ]
13
2017-05-18T22:44:22.000Z
2020-09-16T14:19:49.000Z
session.py
cheng6076/virnng
d790c02833865c43cb8afb2552a75c9445365f24
[ "Apache-2.0" ]
1
2018-07-02T12:08:15.000Z
2018-07-02T12:08:15.000Z
session.py
cheng6076/virnng
d790c02833865c43cb8afb2552a75c9445365f24
[ "Apache-2.0" ]
3
2017-11-08T11:51:17.000Z
2019-11-03T23:18:50.000Z
from encoder import Encoder from decoder import Decoder from parser import Parser from baseline import * from language_model import LanguageModel from util import Reader import dynet as dy from misc import compute_eval_score, compute_perplexity import os initializers = {'glorot': dy.GlorotInitializer(), ...
42.475149
148
0.514299
20,657
0.966862
0
0
0
0
0
0
1,654
0.077416
68587aa670f83d82520736428332f2bf416f400e
254
py
Python
funcion_mutacion.py
J0SU3IC3/Proyecto_Algoritmo_Genetico
bcf98d335def651726b17154624c96ee3b8cfdeb
[ "BSD-2-Clause" ]
null
null
null
funcion_mutacion.py
J0SU3IC3/Proyecto_Algoritmo_Genetico
bcf98d335def651726b17154624c96ee3b8cfdeb
[ "BSD-2-Clause" ]
null
null
null
funcion_mutacion.py
J0SU3IC3/Proyecto_Algoritmo_Genetico
bcf98d335def651726b17154624c96ee3b8cfdeb
[ "BSD-2-Clause" ]
null
null
null
import random def mutacion(indiv): alea_1=random.randint(0,len(indiv)-1) alea_2 = random.randint(0, len(indiv)-1) interc_1=indiv[alea_1] interc_2=indiv[alea_2] indiv[alea_1] = interc_2 indiv[alea_2] = interc_1 return indiv
19.538462
44
0.681102
0
0
0
0
0
0
0
0
0
0
685b7db6474e2581fd6fc7a88d44f479e33ae88c
4,724
py
Python
examples/import_hostgroups.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
5
2016-02-29T01:16:36.000Z
2019-12-08T19:04:54.000Z
examples/import_hostgroups.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
5
2015-08-18T19:07:44.000Z
2020-06-04T15:56:38.000Z
examples/import_hostgroups.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
3
2016-02-29T01:16:37.000Z
2020-06-04T00:43:38.000Z
#!/usr/bin/env python # Copyright (c) 2019 Riverbed Technology, Inc. # # This software is licensed under the terms and conditions of the MIT License # accompanying the software ("License"). This software is distributed "AS IS" # as set forth in the License. import csv import sys import string import optparse from co...
34.231884
78
0.605419
3,450
0.730313
0
0
0
0
0
0
1,721
0.36431
685bdb02c954b53c73259dab606713b94ba02c39
330
py
Python
exec.py
developerHaneum/listBug
d3828813b36a533aef93ac691eeafb08a62a03c0
[ "MIT" ]
2
2021-07-07T06:38:05.000Z
2021-07-07T07:07:35.000Z
exec.py
developerHaneum/listBug
d3828813b36a533aef93ac691eeafb08a62a03c0
[ "MIT" ]
null
null
null
exec.py
developerHaneum/listBug
d3828813b36a533aef93ac691eeafb08a62a03c0
[ "MIT" ]
1
2021-07-07T06:38:06.000Z
2021-07-07T06:38:06.000Z
from clint.textui import * def Write(): i = 0 while True: i += 1 text = input(colored.cyan("%d: "%i)) if text == "q": sys.exit(0) def Print(): print(colored.cyan("-- Bug list --")) print(colored.cyan("-- ") + colored.red("<q:quit>") + colored.cyan(" --")) Write(...
22
78
0.490909
0
0
0
0
0
0
0
0
45
0.136364
685bf7a01002d00376abfb0f9c41e4c0b30ff038
229
py
Python
datasets/hscic/scrape.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
null
null
null
datasets/hscic/scrape.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
11
2015-03-02T16:30:20.000Z
2016-11-29T12:16:15.000Z
datasets/hscic/scrape.py
nhsengland/publish-o-matic
dc8f16cb83a2360989afa44d887e63b5cde6af29
[ "MIT" ]
2
2020-12-25T20:38:31.000Z
2021-04-11T07:35:01.000Z
from datasets.hscic.hscic_datasets import scrape as datasets_scrape from datasets.hscic.hscic_indicators import scrape as indicators_scrape def main(workspace): datasets_scrape(workspace) indicators_scrape(workspace)
22.9
71
0.829694
0
0
0
0
0
0
0
0
0
0
685caf0e5603d61d8ec4f3adc7a5d8734b0c911d
5,754
py
Python
src/tests/behave/api/features/client.py
shaneutt/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
4
2017-07-21T20:56:46.000Z
2018-04-30T13:37:37.000Z
src/tests/behave/api/features/client.py
jr0d/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
11
2017-08-24T04:55:58.000Z
2021-12-13T19:36:21.000Z
src/tests/behave/api/features/client.py
shaneutt/mercury
d8d3c9a86ab3235d4e36583fcee6f656e5209b7e
[ "Apache-2.0" ]
6
2017-08-18T15:59:15.000Z
2018-08-21T19:54:34.000Z
import copy import json import requests import datetime from src.tests.behave.common.config import get_conflagration class APIClient(object): def __init__(self, base_url, request_kwargs=None, client_kwargs=None): self.cfg = get_conflagration() token = self.get_identity_token() timeout = ...
36.649682
79
0.550574
5,634
0.979145
0
0
0
0
0
0
673
0.116962
685d6be8bc9e1c64b0fa673c0b867858db37f70e
10,556
py
Python
Instrument_Examples/DMM6500/Upload_and_Execute_a_Test_Sequence_to_the_Series_2260B_Power_Supply/Upload_and_Execute_Test_Sequence_File_to_2260B_Power_Supply_Rev_B.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
31
2019-04-11T14:25:39.000Z
2022-03-18T15:09:33.000Z
Instrument_Examples/DMM6500/Upload_and_Execute_a_Test_Sequence_to_the_Series_2260B_Power_Supply/Upload_and_Execute_Test_Sequence_File_to_2260B_Power_Supply_Rev_B.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
27
2019-04-10T20:21:52.000Z
2021-12-09T01:59:32.000Z
Instrument_Examples/DMM6500/Upload_and_Execute_a_Test_Sequence_to_the_Series_2260B_Power_Supply/Upload_and_Execute_Test_Sequence_File_to_2260B_Power_Supply_Rev_B.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
30
2019-06-08T09:38:20.000Z
2022-03-18T15:10:37.000Z
"""*********************************************************** *** Copyright Tektronix, Inc. *** *** See www.tek.com/sample-license for licensing terms. *** ***********************************************************""" import socket import struct import math import time import sys echo_cmd =...
38.108303
120
0.597764
0
0
0
0
0
0
0
0
7,914
0.749716
685e4d13ea104ac619e52a74bbf71675b69b19ec
1,143
py
Python
autopilot.py
SpeedrunnerG55/EDAutopilot
e8553f66e51731a3e8ed04f168e36524cdd0678d
[ "MIT" ]
5
2020-05-08T12:58:39.000Z
2020-06-21T23:39:00.000Z
autopilot.py
SpeedrunnerG55/EDAutopilot
e8553f66e51731a3e8ed04f168e36524cdd0678d
[ "MIT" ]
null
null
null
autopilot.py
SpeedrunnerG55/EDAutopilot
e8553f66e51731a3e8ed04f168e36524cdd0678d
[ "MIT" ]
null
null
null
import cv2 from dev_autopilot import autopilot from emulation import get_bindings, clear_input import threading import kthread from pynput import keyboard from programInfo import showInfo STATE = 0 def start_action(): stop_action() kthread.KThread(target = autopilot, name = "EDAutopilot").start() ...
25.4
77
0.63867
0
0
0
0
0
0
0
0
126
0.110236
685ec69b006b0a9078bc34ecf58f2a15ca333c06
3,284
py
Python
colour/examples/temperature/examples_cct.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
1
2022-02-12T06:28:15.000Z
2022-02-12T06:28:15.000Z
colour/examples/temperature/examples_cct.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
null
null
null
colour/examples/temperature/examples_cct.py
soma2000-lang/colour
bb7ee23ac65e09613af78bd18dd98dffb1a2904a
[ "BSD-3-Clause" ]
null
null
null
""" Showcases correlated colour temperature computations. """ import colour from colour.utilities import message_box message_box("Correlated Colour Temperature Computations") cmfs = colour.MSDS_CMFS["CIE 1931 2 Degree Standard Observer"] illuminant = colour.SDS_ILLUMINANTS["D65"] xy = colour.XYZ_to_xy(colour.sd_to_X...
32.196078
78
0.739647
0
0
0
0
0
0
0
0
1,606
0.489038
685ee66a7e20613fe4b2dd17fc3161351e75e8b6
9,940
py
Python
qsync.py
Bibliome/misc-utils
e44ac3232f2763836d844576d812a552e54e8a38
[ "MIT" ]
1
2017-02-24T09:57:24.000Z
2017-02-24T09:57:24.000Z
qsync.py
Bibliome/misc-utils
e44ac3232f2763836d844576d812a552e54e8a38
[ "MIT" ]
4
2018-10-10T09:59:48.000Z
2019-01-17T15:32:48.000Z
qsync.py
Bibliome/misc-utils
e44ac3232f2763836d844576d812a552e54e8a38
[ "MIT" ]
null
null
null
#!/usr/bin/env python import drmaa import shlex from optparse import OptionParser from sys import stderr, stdin, exit from datetime import datetime import traceback def Stop(pool, jt, info): '''Job failure function that stops synchronization.''' pool.shall_stop = True pool.all_done = False pool.failed...
40.242915
224
0.593763
8,761
0.881388
799
0.080382
455
0.045775
0
0
3,090
0.310865
685f5db033e1479b41714578109a39dd1abc851f
678
py
Python
setup.py
Bpowers4/jupyterlab-heroku
817a841a54f6196942e152704d1e654301def5d9
[ "BSD-3-Clause" ]
null
null
null
setup.py
Bpowers4/jupyterlab-heroku
817a841a54f6196942e152704d1e654301def5d9
[ "BSD-3-Clause" ]
null
null
null
setup.py
Bpowers4/jupyterlab-heroku
817a841a54f6196942e152704d1e654301def5d9
[ "BSD-3-Clause" ]
null
null
null
import os import setuptools with open("README.md", "r") as fh: long_description = fh.read() here = os.path.dirname(os.path.abspath(__file__)) version_ns = {} with open(os.path.join(here, "jupyterlab_heroku", "_version.py")) as f: exec(f.read(), {}, version_ns) setuptools.setup( name="jupyterlab_heroku", ...
29.478261
73
0.715339
0
0
0
0
0
0
0
0
198
0.292035
685f6ab1c2d0c0bbd4bb81f5a339300b7344f2f1
258
py
Python
placement/serializers.py
uditpd3000/SCP-Backend
604c9040faf5652d31bf923d647684ff8f272dc7
[ "Apache-2.0" ]
5
2021-06-21T18:36:56.000Z
2021-08-04T04:07:56.000Z
placement/serializers.py
uditpd3000/SCP-Backend
604c9040faf5652d31bf923d647684ff8f272dc7
[ "Apache-2.0" ]
23
2021-05-31T13:41:13.000Z
2021-07-23T08:12:17.000Z
placement/serializers.py
uditpd3000/SCP-Backend
604c9040faf5652d31bf923d647684ff8f272dc7
[ "Apache-2.0" ]
30
2021-05-31T10:53:14.000Z
2022-03-01T12:56:36.000Z
from rest_framework import serializers from .models import Placement class PlacementSerializer(serializers.ModelSerializer): class Meta: model = Placement fields = ("key", "placement_name", "company", "role", "description", "deadline")
28.666667
88
0.72093
186
0.72093
0
0
0
0
0
0
59
0.228682
686056fb7ad084c4bde838715d568d384a2cd5ae
509
py
Python
tutorials/W0D1_PythonWorkshop1/solutions/W0D1_Tutorial1_Solution_695309c2.py
liuxiaomiao123/NeuroMathAcademy
16a7969604a300bf9fbb86f8a5b26050ebd14c65
[ "CC-BY-4.0" ]
26
2020-07-01T20:38:44.000Z
2021-06-20T06:37:27.000Z
tutorials/W0D1_PythonWorkshop1/solutions/W0D1_Tutorial1_Solution_695309c2.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
3
2020-06-23T03:46:36.000Z
2020-07-07T05:26:01.000Z
tutorials/W0D1_PythonWorkshop1/solutions/W0D1_Tutorial1_Solution_695309c2.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
16
2020-07-06T06:48:02.000Z
2021-07-30T08:18:52.000Z
# set random number generator np.random.seed(2020) # initialize step_end and v step_end = int(t_max / dt) v = el t = 0 with plt.xkcd(): # initialize the figure plt.figure() plt.title('$V_m$ with random I(t)') plt.xlabel('time (s)') plt.ylabel(r'$V_m$ (V)') # loop for step_end steps for step in range(s...
20.36
79
0.565815
0
0
0
0
0
0
0
0
154
0.302554
6861bdce3968ccd85c24124237aad059f44788f8
1,509
py
Python
varclr/utils/similarity_search.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
28
2021-12-03T22:39:10.000Z
2022-03-13T02:38:04.000Z
varclr/utils/similarity_search.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
1
2021-12-16T11:33:35.000Z
2021-12-27T00:52:59.000Z
varclr/utils/similarity_search.py
qibinc/VarCLR
1c59ae4a8e27b71de2f57db13d3278a8aecfc9e9
[ "MIT" ]
3
2021-12-05T18:30:19.000Z
2021-12-16T11:01:28.000Z
import sys from collections import defaultdict import torch from varclr.utils.infer import MockArgs from varclr.data.preprocessor import CodePreprocessor if __name__ == "__main__": ret = torch.load(sys.argv[2]) vars, embs = ret["vars"], ret["embs"] embs /= embs.norm(dim=1, keepdim=True) embs = embs.c...
32.804348
81
0.524851
0
0
0
0
0
0
0
0
150
0.099404
68620b151d37333bd311ec05c4015d1947dbf90c
11,285
py
Python
plugin/CustomerSupportArchive/chipDiagnostics/tools/flowcorr.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
125
2015-01-22T05:43:23.000Z
2022-03-22T17:15:59.000Z
plugin/CustomerSupportArchive/Lane_Diagnostics/tools/flowcorr.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
59
2015-02-10T09:13:06.000Z
2021-11-11T02:32:38.000Z
plugin/CustomerSupportArchive/autoCal/tools/flowcorr.py
iontorrent/TS
7591590843c967435ee093a3ffe9a2c6dea45ed8
[ "Apache-2.0" ]
98
2015-01-17T01:25:10.000Z
2022-03-18T17:29:42.000Z
import os import numpy as np from . import imtools, datprops from .datfile import DatFile from .chiptype import ChipType moduleDir = os.path.abspath( os.path.dirname( __file__ ) ) class FlowCorr: def __init__( self, chiptype, xblock=None, yblock=None, rootdir='.', method='' ): ''' Initialize a fl...
49.933628
203
0.589012
11,102
0.983784
0
0
0
0
0
0
3,968
0.351617
6862d3264687638cc92a1818114ac16c66aeabc5
688
py
Python
classifier/cal.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
classifier/cal.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
classifier/cal.py
EnviewFulda/SeagrassExplorer
0f6a0e15d1ffb8220e951c52ec1634e7a0763f4e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np def ini(): '''initialization Args: Returns: ''' pass def accuracy(Yte_predict, Yte): '''verification of the correct label with the predicted one Args: Yte_predict (list): predicted labels (by computer) Yte (list): true labels ...
16.780488
69
0.616279
0
0
0
0
0
0
0
0
495
0.719477
6864b398d75f0afbf2d3bc574f814cc0b57e494e
2,354
py
Python
recohut/models/dnn.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
recohut/models/dnn.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
1
2022-01-12T05:40:57.000Z
2022-01-12T05:40:57.000Z
recohut/models/dnn.py
RecoHut-Projects/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/models/models.dnn.ipynb (unless otherwise specified). __all__ = ['Multi_Layer_Perceptron', 'CollabFNet'] # Cell import torch import torch.nn as nn import torch.nn.functional as F # Cell class Multi_Layer_Perceptron(nn.Module): def __init__(self, args, num_users, nu...
37.967742
104
0.65463
2,108
0.895497
0
0
0
0
0
0
252
0.107052
6865502dfb12453a7c664da7a679fbf4159aa717
477
py
Python
src/features/test_outlier_correction.py
KennedyMurphy/elomerchant
b6561de4e13a0bcfcda72bb99cec722a58e8f09e
[ "FTL" ]
null
null
null
src/features/test_outlier_correction.py
KennedyMurphy/elomerchant
b6561de4e13a0bcfcda72bb99cec722a58e8f09e
[ "FTL" ]
12
2019-12-26T17:02:54.000Z
2022-03-21T22:16:55.000Z
src/features/test_outlier_correction.py
KennedyMurphy/elomerchant
b6561de4e13a0bcfcda72bb99cec722a58e8f09e
[ "FTL" ]
null
null
null
import unittest import pandas as pd import numpy as np import src.features.outlier_correction as oc class TestFlagNormalOutliers(unittest.TestCase): def setUp(self): self.series = pd.Series(np.random.normal(0, 0.1, 1000)) self.series.loc[500] = -5 self.series.loc[42] = 5 def test...
26.5
63
0.677149
376
0.78826
0
0
0
0
0
0
0
0
68691956fa1e08fddebbb9eacec7b248df8c8d1e
3,613
py
Python
Practica2/ejercicio1.1.py
martapastor/GIW-Practicas
550e98b376fdea51c8594da6d1b616286c74bed5
[ "MIT" ]
null
null
null
Practica2/ejercicio1.1.py
martapastor/GIW-Practicas
550e98b376fdea51c8594da6d1b616286c74bed5
[ "MIT" ]
null
null
null
Practica2/ejercicio1.1.py
martapastor/GIW-Practicas
550e98b376fdea51c8594da6d1b616286c74bed5
[ "MIT" ]
null
null
null
import csv import operator if __name__ == "__main__": # We use try-except statements to properly handle errors, as in case the # input file does not exist in the directory. try: # We open the .csv file loading the filds separated by a ; delimiter: csv_archivo_locales = open("Locales.csv", e...
46.320513
99
0.65375
0
0
0
0
0
0
0
0
2,012
0.556878
6869245bc8389ed7735b3d7033bfcf7e4bd56869
3,076
py
Python
sensor_test.py
YoungYoung619/driving-desicion-in-carla
7641c4b970d780b7c9ea242c72f186d8dbe5d296
[ "MIT" ]
1
2022-03-31T08:30:55.000Z
2022-03-31T08:30:55.000Z
sensor_test.py
YoungYoung619/driving-desicion-in-carla
7641c4b970d780b7c9ea242c72f186d8dbe5d296
[ "MIT" ]
1
2019-08-02T12:24:02.000Z
2019-08-02T12:24:02.000Z
sensor_test.py
YoungYoung619/driving-desicion-in-carla
7641c4b970d780b7c9ea242c72f186d8dbe5d296
[ "MIT" ]
3
2020-05-17T11:21:55.000Z
2021-11-15T06:32:01.000Z
""" Copyright (c) College of Mechatronics and Control Engineering, Shenzhen University. All rights reserved. Description : Author:Team Li """ import glob, os, sys, time from threading import Thread import cv2 from carla_utils.world_ops import * from carla_utils.sensor_ops import * try: sys.path.append(glob.glo...
32.723404
102
0.619636
0
0
0
0
0
0
0
0
830
0.269656
68696cfa2203f9ed2457ed75b22b08dfe6fa5fca
2,792
py
Python
config.py
aEnigmatic/nwwatch
d9d81501d0d5eb717fcf4d2bb3de2b16180b23d2
[ "MIT" ]
null
null
null
config.py
aEnigmatic/nwwatch
d9d81501d0d5eb717fcf4d2bb3de2b16180b23d2
[ "MIT" ]
null
null
null
config.py
aEnigmatic/nwwatch
d9d81501d0d5eb717fcf4d2bb3de2b16180b23d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os if not os.path.isfile("/proc/sys/fs/binfmt_misc/WSLInterop"): # windows LOGFILE = os.environ['LOCALAPPDATA'] + "\\AGS\\New World\\Game.log" else: # wsl LOGFILE = os.popen('cmd.exe /c "echo %LocalAppData%"').read().strip() + "\\AGS\\New World\\Game.log" LOGFILE = os.popen("wslpath ...
42.30303
152
0.678009
0
0
0
0
0
0
0
0
2,153
0.771132
686a214c567ebd3ab53753f4ce246c0fac04cd72
109
py
Python
Python/Arrays/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
2
2019-08-07T19:58:20.000Z
2019-08-27T00:06:09.000Z
Python/Arrays/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
1
2020-06-11T19:09:48.000Z
2020-06-11T19:09:48.000Z
Python/Arrays/Solution.py
chessmastersan/HackerRank
850319e6f79e7473afbb847d28edde7b2cdfc37d
[ "MIT" ]
7
2019-08-27T00:06:11.000Z
2021-12-11T10:01:45.000Z
#author SANKALP SAXENA def arrays(arr): arr.reverse() l = numpy.array(arr, float) return l
10.9
31
0.614679
0
0
0
0
0
0
0
0
24
0.220183
686c412499560689228388863939962fab82d49c
2,508
py
Python
test/connect/test_KafkaConnection.py
pip-services3-python/pip-services3-kafka-python
8c6df619af56c033de68b518004c93e45a335517
[ "MIT" ]
null
null
null
test/connect/test_KafkaConnection.py
pip-services3-python/pip-services3-kafka-python
8c6df619af56c033de68b518004c93e45a335517
[ "MIT" ]
null
null
null
test/connect/test_KafkaConnection.py
pip-services3-python/pip-services3-kafka-python
8c6df619af56c033de68b518004c93e45a335517
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import time import pytest from pip_services3_commons.config import ConfigParams from pip_services3_kafka.connect.KafkaConnection import KafkaConnection broker_host = os.environ.get('KAFKA_SERVICE_HOST') or 'localhost' broker_port = os.environ.get('KAFKA_SERVICE_PORT') or 9092 broke...
32.153846
97
0.681818
1,921
0.765949
0
0
2,019
0.805024
0
0
337
0.13437
686d545f481b3b15e8e0f634c3a1126c10626456
5,964
py
Python
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/operations/actions.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
1
2018-01-30T05:55:29.000Z
2018-01-30T05:55:29.000Z
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/operations/actions.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/operations/actions.py
mickeymitic/azure-cli
92af6b3cea52f99eee84df93f5d3e2003a273d04
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
46.232558
117
0.618545
4,480
0.751174
0
0
0
0
0
0
1,516
0.254192
686f8c834ca06e0613cf090830a8208f91cd4c47
2,465
py
Python
tests/test_gremlin_pl.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
24
2020-11-20T19:10:23.000Z
2022-03-13T13:26:56.000Z
tests/test_gremlin_pl.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
10
2020-10-21T21:42:14.000Z
2020-11-18T07:57:30.000Z
tests/test_gremlin_pl.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
7
2020-12-27T00:44:18.000Z
2021-11-07T05:16:49.000Z
import itertools import numpy as np import torch import unittest from mogwai.data_loading import one_hot from mogwai.models import GremlinPseudolikelihood class TestGremlinPL(unittest.TestCase): def setUp(self): torch.manual_seed(0) N = 100 L = 20 A = 8 msa = torch.randin...
28.333333
76
0.610142
2,254
0.914402
0
0
601
0.243813
0
0
285
0.115619
68717b37b4acbe351d989e9f887e2dec9723c9d1
10,233
py
Python
autograd_cupy/cupy_jvps.py
ericmjl/autograd-cupy
493a90cabae42f9e0fdbea77cef758aff659604f
[ "MIT" ]
3
2018-08-03T00:11:17.000Z
2018-12-27T17:47:54.000Z
autograd_cupy/cupy_jvps.py
ericmjl/autograd-cupy
493a90cabae42f9e0fdbea77cef758aff659604f
[ "MIT" ]
null
null
null
autograd_cupy/cupy_jvps.py
ericmjl/autograd-cupy
493a90cabae42f9e0fdbea77cef758aff659604f
[ "MIT" ]
null
null
null
from . import cupy_wrapper as acp from .cupy_vjps import ( untake, balanced_eq, match_complex, replace_zero, dot_adjoint_0, dot_adjoint_1, tensordot_adjoint_0, tensordot_adjoint_1, nograd_functions, ) from autograd.extend import ( defjvp, defjvp_argnum, def_linear, vs...
28.267956
90
0.626991
0
0
0
0
0
0
0
0
1,051
0.102707
68725e7d29c539b971a9d4373987ad3774e42e53
1,950
py
Python
testAppium/conf/getStartActivityConfig.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
testAppium/conf/getStartActivityConfig.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
testAppium/conf/getStartActivityConfig.py
moulage/appium-android
082e4018673fecd260552d758f8a8ba154838b9a
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python # -*- coding = utf-8 -*- # @Author:wanghui # @Time: # @File:getStartActivityConfig.py import configparser import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) class GetStartActivityConfig(object): def __init__(self): self.config = configparser.ConfigParser() s...
25
66
0.578462
1,674
0.794118
0
0
0
0
0
0
596
0.282732
6872e6802247502095c67e090c8829c461de73f4
6,773
py
Python
Sudoku/norvig_solver.py
ancientHacker/sudoku-generator
a1b395cef2cc699951e17e56fc699df83309d5e1
[ "MIT" ]
4
2020-03-29T20:10:52.000Z
2021-01-04T07:46:21.000Z
Sudoku/norvig_solver.py
ancientHacker/sudoku-generator
a1b395cef2cc699951e17e56fc699df83309d5e1
[ "MIT" ]
null
null
null
Sudoku/norvig_solver.py
ancientHacker/sudoku-generator
a1b395cef2cc699951e17e56fc699df83309d5e1
[ "MIT" ]
6
2019-07-05T14:54:42.000Z
2022-01-28T10:34:05.000Z
# MIT License # # Copyright (c) 2019 Daniel Brotsky # # Portions copyright (c) 2017 by Peter Norvig and Naoki Shibuya # (See https://towardsdatascience.com/peter-norvigs-sudoku-solver-25779bb349ce) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documen...
47.363636
104
0.630297
5,465
0.80688
0
0
0
0
0
0
2,950
0.435553
6873156e99d844af13d6d77379f2ea3cbcc2572b
1,442
py
Python
deserialize/decorators/default.py
KrzysztofSajko/deserialize
f9192cfc9913003c7362d0ae246e3475e78690d8
[ "MIT" ]
18
2019-06-27T12:08:36.000Z
2022-03-11T03:36:50.000Z
deserialize/decorators/default.py
KrzysztofSajko/deserialize
f9192cfc9913003c7362d0ae246e3475e78690d8
[ "MIT" ]
19
2019-01-05T16:52:28.000Z
2021-11-12T12:17:42.000Z
deserialize/decorators/default.py
KrzysztofSajko/deserialize
f9192cfc9913003c7362d0ae246e3475e78690d8
[ "MIT" ]
5
2019-06-26T13:41:44.000Z
2021-11-02T17:03:38.000Z
"""Decorators used for adding functionality to the library.""" from deserialize.exceptions import NoDefaultSpecifiedException def default(key_name, default_value): """A decorator function for mapping default values to key names.""" def store_defaults_map(class_reference): """Store the defaults map."...
30.680851
78
0.751734
0
0
0
0
0
0
0
0
552
0.382802
68777c8ef19f2208020f8f076d6002af81ebebd7
3,608
py
Python
doc/source/notebooks/regression.py
codelover-without-talent/GPflow
1af7b1ca7da6687974150a1440d821a106b2159d
[ "Apache-2.0" ]
1
2018-08-22T06:34:59.000Z
2018-08-22T06:34:59.000Z
doc/source/notebooks/regression.py
codelover-without-talent/GPflow
1af7b1ca7da6687974150a1440d821a106b2159d
[ "Apache-2.0" ]
null
null
null
doc/source/notebooks/regression.py
codelover-without-talent/GPflow
1af7b1ca7da6687974150a1440d821a106b2159d
[ "Apache-2.0" ]
2
2019-03-09T11:46:11.000Z
2021-12-20T10:22:34.000Z
from matplotlib import pyplot as plt import gpflow import tensorflow as tf import os import numpy as np import cProfile def outputGraph(model, dirName, fileName): model.compile() if not(os.path.isdir(dirName)): os.mkdir(dirName) fullFileName = os.path.join(dirName, fileName) if os.path.isfile(f...
29.818182
96
0.641075
0
0
0
0
0
0
0
0
678
0.187916
6878add955a141a4910a16b4698b123a6f9a5ed7
29,160
py
Python
agnosia_tools/pointcloud.py
adurdin/agnosia-blender
addef1a0cb555c22186f7059b2da257fd74cc83d
[ "MIT" ]
null
null
null
agnosia_tools/pointcloud.py
adurdin/agnosia-blender
addef1a0cb555c22186f7059b2da257fd74cc83d
[ "MIT" ]
null
null
null
agnosia_tools/pointcloud.py
adurdin/agnosia-blender
addef1a0cb555c22186f7059b2da257fd74cc83d
[ "MIT" ]
null
null
null
import bpy import bmesh import base64 import math import mathutils import random import struct import zlib from array import array from itertools import islice from bpy.props import IntProperty, PointerProperty, StringProperty from bpy.types import Object, Operator, Panel, PropertyGroup from mathutils import Vector fr...
32.986425
117
0.5881
10,090
0.346022
4,834
0.165775
3,960
0.135802
0
0
7,264
0.249108
6878bc63f5a5d101c27062d6aecd9e1581e3ee6e
335
py
Python
database/__init__.py
eddycheong/skeleton-flask-sqlalchemy
117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0
[ "MIT" ]
null
null
null
database/__init__.py
eddycheong/skeleton-flask-sqlalchemy
117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0
[ "MIT" ]
null
null
null
database/__init__.py
eddycheong/skeleton-flask-sqlalchemy
117e4cac0bf4d912f9546e2aeac77bccc2b7e3c0
[ "MIT" ]
null
null
null
import configparser from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker config = configparser.ConfigParser() config.read('alembic.ini') connection_url = config['alembic']['sqlalchemy.url'] Engine = create_engine(connection_url, connect_args={'check_same_thread': False}) Session = sessionmaker...
27.916667
81
0.81194
0
0
0
0
0
0
0
0
57
0.170149
6879269c1812f94d1e6cc9bd8f13c7d884e2c991
4,682
py
Python
wlauto/workloads/octaned8/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
5
2016-04-27T13:51:12.000Z
2016-06-23T12:38:14.000Z
wlauto/workloads/octaned8/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
110
2016-05-05T19:13:26.000Z
2017-01-20T16:18:02.000Z
wlauto/workloads/octaned8/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
1
2016-04-27T15:18:55.000Z
2016-04-27T15:18:55.000Z
# Copyright 2014-2016 ARM Limited # # 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 w...
40.362069
121
0.650577
3,008
0.64246
0
0
0
0
0
0
1,882
0.401965
6879a284797d76bfbb26fa832ed9b1a3cdbb362e
11,872
py
Python
mrplot/modules/design/variable_design.py
enzofabricio/mrplot
45e865241ea6ed7a4e524cbcbac54b75f2976696
[ "MIT" ]
null
null
null
mrplot/modules/design/variable_design.py
enzofabricio/mrplot
45e865241ea6ed7a4e524cbcbac54b75f2976696
[ "MIT" ]
null
null
null
mrplot/modules/design/variable_design.py
enzofabricio/mrplot
45e865241ea6ed7a4e524cbcbac54b75f2976696
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'variable_design.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow...
54.962963
105
0.685057
11,372
0.957884
0
0
0
0
0
0
2,082
0.175371
687a1f3c513c197ca73d029ec4ca40557a75d7df
2,597
py
Python
4-2/TextMining/Class_/week7/LanguageModelWithN_gram.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
4-2/TextMining/Class_/week7/LanguageModelWithN_gram.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
4-2/TextMining/Class_/week7/LanguageModelWithN_gram.py
define16/Class
8b0771a348b2bcb19ba338ebff94326828a293ea
[ "Apache-2.0" ]
null
null
null
''' n-gram은 이와 같은 확률적 언어 모델의 대표적인 것으로서, n개 단어의 연쇄를 확률적으로 표현해 두면 실제로 발성된 문장의 기록을 계산할 수 있다. ''' # Step 1 : Bag of Words from nltk.corpus import reuters from collections import Counter, defaultdict counts = Counter(reuters.words()) total_count = len(reuters.words()) # 공통적으로 가장 많이 나타나는 20개의 단어 print(counts.most_commo...
23.609091
72
0.628032
0
0
0
0
0
0
0
0
1,064
0.355496
687be2e6d6e71a7b227db867acdd0430e68a8454
1,977
py
Python
testing/composite.py
aheadley/pynemap
f2aa373e7c43755ce73c0a60110b609018cd2dcb
[ "MIT" ]
6
2015-10-15T08:28:19.000Z
2021-11-17T23:02:02.000Z
testing/composite.py
aheadley/pynemap
f2aa373e7c43755ce73c0a60110b609018cd2dcb
[ "MIT" ]
null
null
null
testing/composite.py
aheadley/pynemap
f2aa373e7c43755ce73c0a60110b609018cd2dcb
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy class Color(object): lower_bound = 0 upper_bound = 255 def __init__(self, r, g, b, a): self.r = r self.g = g self.b = b self.a = a def __str__(self): return '(%s, %s, %s, %s)' % (self.r, self.g, self.b, self.a) def composite_pixels(src, dest): new_color = Color(0,0,0,0)...
35.303571
92
0.494689
224
0.113303
0
0
0
0
0
0
45
0.022762
687d1421e017adb345f125a4ddfc5d44f177f7ca
10,139
py
Python
util.py
tudat-team/webservices-dispatch-action
6ed60ab2046e8541c8e09e5a94bedc9673dcc4f9
[ "MIT" ]
null
null
null
util.py
tudat-team/webservices-dispatch-action
6ed60ab2046e8541c8e09e5a94bedc9673dcc4f9
[ "MIT" ]
null
null
null
util.py
tudat-team/webservices-dispatch-action
6ed60ab2046e8541c8e09e5a94bedc9673dcc4f9
[ "MIT" ]
null
null
null
import os import requests import urllib3.util.retry import logging import subprocess import re import pprint from datetime import datetime, timedelta import pygit2 from github import Github from github.GithubException import UnknownObjectException # Create logger with logging level set to all LOGGER = logging.getLogg...
34.604096
148
0.624223
0
0
0
0
0
0
0
0
4,745
0.467995
687da6b0eb4b67490262b063fd83e99351f1851c
1,538
py
Python
ptxt/journal/models.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
2
2021-11-29T13:51:27.000Z
2021-12-12T14:59:42.000Z
ptxt/journal/models.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
null
null
null
ptxt/journal/models.py
mvasilkov/scrapheap
53e30b88879ab8e4d80867b0ec7fa631ce46e55e
[ "MIT" ]
null
null
null
from django.core.validators import MinLengthValidator from django.contrib.auth.models import User from django.contrib.auth.validators import UnicodeUsernameValidator from django.db import models from django.db.models.signals import pre_save from django.dispatch import receiver from django.utils.encoding import iri_to_u...
34.954545
94
0.755527
864
0.561769
0
0
224
0.145644
0
0
172
0.111834
687e76240c6372225f7e38483f2cc12aea5247cb
611
py
Python
autocomplete/survey.py
converj/reasonSurvey
dd40784da4b07cfeb9fd873bab820d627cb026c1
[ "Apache-2.0" ]
null
null
null
autocomplete/survey.py
converj/reasonSurvey
dd40784da4b07cfeb9fd873bab820d627cb026c1
[ "Apache-2.0" ]
null
null
null
autocomplete/survey.py
converj/reasonSurvey
dd40784da4b07cfeb9fd873bab820d627cb026c1
[ "Apache-2.0" ]
null
null
null
# Import external modules. from google.appengine.ext import ndb import logging # Import local modules. from configAutocomplete import const as conf from constants import Constants class Survey(ndb.Model): surveyId = ndb.StringProperty() # Primary key title = ndb.StringProperty() introduction = ndb.Str...
27.772727
77
0.747954
425
0.695581
0
0
0
0
0
0
92
0.150573
688059ffe96ee1e3cfd3aaf09375c53be6410286
50
py
Python
app/__init__.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
app/__init__.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
app/__init__.py
SLB974/GrandPyBot-dev
7a0268d4ffa58c37eed37253c6afb00874dbabe4
[ "MIT" ]
null
null
null
from flask import Flask from app.views import app
16.666667
25
0.82
0
0
0
0
0
0
0
0
0
0
6880d63fbc74e65ed6cf0cc2590cb8b33e1d322f
394
py
Python
wavenetlike/examples/analyzer_example.py
redwrasse/wavenetlike
ce15d58eafe03437ee485532ea3b43580e1895a9
[ "MIT" ]
null
null
null
wavenetlike/examples/analyzer_example.py
redwrasse/wavenetlike
ce15d58eafe03437ee485532ea3b43580e1895a9
[ "MIT" ]
17
2020-12-10T19:50:39.000Z
2021-07-29T03:19:42.000Z
wavenetlike/examples/analyzer_example.py
redwrasse/wavenetlike
ce15d58eafe03437ee485532ea3b43580e1895a9
[ "MIT" ]
null
null
null
from wavenetlike.analyzers import DatasetAnalyzer from wavenetlike.datasetid import TorchAudioDataSetId def analyzer_example(): dataset = TorchAudioDataSetId("SPEECHCOMMANDS") data_analyzer = DatasetAnalyzer(dataset) data_analyzer.analyze_dataset() analysis_res = data_analyzer.get_analysis_result() ...
26.266667
54
0.78934
0
0
0
0
0
0
0
0
26
0.06599
688122f978cd09ce576380b1318b3268f2968ae6
271
py
Python
python/cuspatial/cuspatial/utils/traj_utils.py
kkraus14/cuspatial
efe4c6de76c7e4f4888fb27425f3cfb42493a5ac
[ "Apache-2.0" ]
2
2020-01-30T15:10:05.000Z
2020-07-13T04:16:42.000Z
python/cuspatial/cuspatial/utils/traj_utils.py
kkraus14/cuspatial
efe4c6de76c7e4f4888fb27425f3cfb42493a5ac
[ "Apache-2.0" ]
null
null
null
python/cuspatial/cuspatial/utils/traj_utils.py
kkraus14/cuspatial
efe4c6de76c7e4f4888fb27425f3cfb42493a5ac
[ "Apache-2.0" ]
1
2021-02-22T08:31:00.000Z
2021-02-22T08:31:00.000Z
def get_ts_struct(ts): y=ts&0x3f ts=ts>>6 m=ts&0xf ts=ts>>4 d=ts&0x1f ts=ts>>5 hh=ts&0x1f ts=ts>>5 mm=ts&0x3f ts=ts>>6 ss=ts&0x3f ts=ts>>6 wd=ts&0x8 ts=ts>>3 yd=ts&0x1ff ts=ts>>9 ms=ts&0x3ff ts=ts>>10 pid=ts&0x3ff return y,m,d,hh,mm,ss,wd,yd,ms,pid
11.291667
35
0.616236
0
0
0
0
0
0
0
0
0
0