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
2ea7b1e2f8c9260e23fc9fd591de1116fc926068
332
py
Python
gsheetsdb/types.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
176
2018-09-11T12:29:00.000Z
2022-03-26T19:33:31.000Z
gsheetsdb/types.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
16
2018-09-14T18:11:09.000Z
2022-03-08T20:17:56.000Z
gsheetsdb/types.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
14
2019-01-10T16:40:25.000Z
2021-07-27T01:22:58.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from enum import Enum class Type(Enum): STRING = 'string' NUMBER = 'number' BOOLEAN = 'boolean' DATE = 'date' DATETIME = 'datetime' TIMEOFDAY = ...
20.75
39
0.73494
157
0.472892
0
0
0
0
0
0
52
0.156627
2ea7de1147d9144369902e2ec0e8782d863ee315
1,525
py
Python
copy_activities.py
atulbhingarde/PythonTwo
3a43dd0c46959b7aeb6d07c9b26db712e4c14eed
[ "CNRI-Python" ]
null
null
null
copy_activities.py
atulbhingarde/PythonTwo
3a43dd0c46959b7aeb6d07c9b26db712e4c14eed
[ "CNRI-Python" ]
null
null
null
copy_activities.py
atulbhingarde/PythonTwo
3a43dd0c46959b7aeb6d07c9b26db712e4c14eed
[ "CNRI-Python" ]
null
null
null
import os from pathlib import Path from shutil import copyfile def stu_activities(rootDir): # set the rootDir where the search will start # that is in home dorectory #rootDir = "Downloads" # build rootDir from rootDir with the base as home "~" rootDir = os.path.join(Path.home(),rootDir) ...
35.465116
121
0.557377
0
0
0
0
0
0
0
0
506
0.331803
2ea7fcfc6b9425bbcc8ff271e419c167ea927769
1,122
py
Python
not_so_weird/oneoff/helper.py
psorus/anogen
86afc22718aded00bbc05e4582fa0a9b6aa3ab25
[ "MIT" ]
null
null
null
not_so_weird/oneoff/helper.py
psorus/anogen
86afc22718aded00bbc05e4582fa0a9b6aa3ab25
[ "MIT" ]
null
null
null
not_so_weird/oneoff/helper.py
psorus/anogen
86afc22718aded00bbc05e4582fa0a9b6aa3ab25
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np def plot(ac): ac=np.array(ac) ac=ac.reshape((28,28)) ac=[[int(ac2+0.48) for ac2 in ac1] for ac1 in ac] plt.imshow(ac) f=np.load("model.npz",allow_pickle=True) f2=np.load("model2.npz",allow_pickle=True) f3=np.load("model3.npz",allow_pickle=True) f4=np.load...
19.016949
51
0.663993
0
0
0
0
0
0
0
0
196
0.174688
2ea85744077900251cd10c8772714c2d58a74dc9
2,021
py
Python
workers/event_checker.py
D00Movenok/ctf-participation-bot
bc922f083c4b16e7f78ce6ba8b2836b82261fd45
[ "MIT" ]
8
2022-03-05T09:55:31.000Z
2022-03-10T20:17:54.000Z
workers/event_checker.py
D00Movenok/ctf-participation-bot
bc922f083c4b16e7f78ce6ba8b2836b82261fd45
[ "MIT" ]
null
null
null
workers/event_checker.py
D00Movenok/ctf-participation-bot
bc922f083c4b16e7f78ce6ba8b2836b82261fd45
[ "MIT" ]
null
null
null
import logging import threading import time from datetime import datetime, timedelta from sqlalchemy import column, func, select from sqlalchemy.orm import SessionTransaction from actions.discord import Discord from actions.telegram import Telegram from common.database import session from common.models import Event, ...
33.131148
79
0.638793
1,667
0.824431
0
0
0
0
0
0
86
0.042532
2ea94d8d31634c3fa968dde28070a8a994acc38b
9,148
py
Python
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
2
2020-02-06T00:00:10.000Z
2022-02-25T23:47:30.000Z
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
2
2020-04-08T11:57:46.000Z
2020-05-13T13:32:03.000Z
zigpy_deconz_parser/commands/responses.py
zha-ng/zigpy-deconz-parser
9182b3578f20a145ccd46b0cfa002613c4cd38db
[ "Apache-2.0" ]
null
null
null
import attr import binascii import zigpy.types as t import zigpy_deconz.types as dt import zigpy_deconz_parser.types as pt @attr.s class Version(pt.Command): SCHEMA = (t.uint32_t, ) version = attr.ib(factory=SCHEMA[0]) def pretty_print(self, *args): self.print("Version: 0x{:08x}".format(self.ver...
35.049808
83
0.636314
8,892
0.972016
0
0
8,988
0.98251
0
0
1,363
0.148994
2ea9907ebbbf213bac1387472ad831707cedf09e
2,240
py
Python
run.py
evgsolntsev/labirinth_screensaver
b41df36d18a9d7d7fcad6c8de89e04c89b0ed704
[ "MIT" ]
1
2018-09-09T16:50:37.000Z
2018-09-09T16:50:37.000Z
run.py
evgsolntsev/labirinth_screensaver
b41df36d18a9d7d7fcad6c8de89e04c89b0ed704
[ "MIT" ]
null
null
null
run.py
evgsolntsev/labirinth_screensaver
b41df36d18a9d7d7fcad6c8de89e04c89b0ed704
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import math import os import random import sys import time from operator import itemgetter import pygame from screeninfo import get_monitors from Xlib import display from level import Level DEBUG = "XSCREENSAVER_WINDOW" not in os.environ BLACK = (0, 0, 0) WHITE = (255, 255, 255) pygame.init()...
23.829787
77
0.636607
0
0
0
0
0
0
0
0
170
0.075893
2ea9eb3263cf5ab011a34c951f427040e1522b17
29,789
py
Python
q_dic.py
1ahmedg/quote-script
852d7bb88d5edc282080a9f86387df67eab270ed
[ "MIT" ]
null
null
null
q_dic.py
1ahmedg/quote-script
852d7bb88d5edc282080a9f86387df67eab270ed
[ "MIT" ]
null
null
null
q_dic.py
1ahmedg/quote-script
852d7bb88d5edc282080a9f86387df67eab270ed
[ "MIT" ]
null
null
null
# Quotes from: https://www.notion.so/Quotes-by-Naval-Ravikant-3edaf88cfc914b06a98b58b62b6dc222 dic = [\ "Read what you love until you love to read.",\ "True Wisdom Comes From Understanding, Not Memorization.",\ "Meditation is the art of doing nothing. You cannot do meditation. By definition, if you’re doing some...
61.168378
376
0.757629
0
0
0
0
0
0
0
0
29,171
0.966055
2eaaaf757b2e454dd1e67efcc93720debfd58001
9,520
py
Python
back_end/database/update_db_helpers.py
PrincetonResInDe/course-selection
7ec447e13ff74bf130c61feb2de65d94fb192efa
[ "MIT" ]
3
2022-01-11T17:39:44.000Z
2022-02-13T16:31:25.000Z
back_end/database/update_db_helpers.py
PrincetonResInDe/course-selection
7ec447e13ff74bf130c61feb2de65d94fb192efa
[ "MIT" ]
5
2022-01-12T19:03:05.000Z
2022-01-31T20:28:00.000Z
back_end/database/update_db_helpers.py
PrincetonResInDe/course-selection
7ec447e13ff74bf130c61feb2de65d94fb192efa
[ "MIT" ]
null
null
null
import json from database_utils import DatabaseUtils from mobileapp import MobileApp from registrar import RegistrarAPI import logging logging.basicConfig( format="%(asctime)s - %(levelname)s - %(name)s: %(message)s", datefmt="%m/%d/%Y %H:%M:%S", level=logging.INFO, ) logger = logging.getLogger(__name__) ...
39.338843
148
0.626996
0
0
0
0
0
0
0
0
4,505
0.473214
2eb1e585fcbec5ec479747784f42d3567bceb246
1,294
py
Python
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
submission_config.py
ege-k/nlp4nethack
8b8b45a2f0be09c5233b33a47f421906e9e4b561
[ "MIT" ]
null
null
null
from agents.custom_agent import CustomAgent from agents.torchbeast_agent import TorchBeastAgent from envs.wrappers import addtimelimitwrapper_fn ################################################ # Import your own agent code # # Set Submision_Agent to your agent # # Set NUM_PARALLEL_ENVI...
33.179487
74
0.663833
798
0.616692
0
0
0
0
0
0
902
0.697063
2eb5fd9ffdbf193e8abf2874479c7b6361639df5
1,452
py
Python
xmem/templates/registry.py
mHaisham/xmem
87f3ce1b18b629bbc36824cfac5e8f883f9a371a
[ "Apache-2.0" ]
null
null
null
xmem/templates/registry.py
mHaisham/xmem
87f3ce1b18b629bbc36824cfac5e8f883f9a371a
[ "Apache-2.0" ]
null
null
null
xmem/templates/registry.py
mHaisham/xmem
87f3ce1b18b629bbc36824cfac5e8f883f9a371a
[ "Apache-2.0" ]
null
null
null
from typing import Union try: import winreg except ImportError: pass from ..template import BaseTemplate from ..exceptions import NotFoundError class RegistryTemplate(BaseTemplate): root = winreg.HKEY_CURRENT_USER def __init__(self, name='xmem'): """ :param name: name of your applic...
29.632653
94
0.626033
1,295
0.891873
0
0
0
0
0
0
287
0.197658
2eb65dad6e5394cc110d92fd92ceb3c0ad67e792
610
py
Python
RSA/src/primeCheck3.py
BenGH28/Projects
f9e25e39e6afb58203b283c2d0d32d11f1c71124
[ "MIT" ]
null
null
null
RSA/src/primeCheck3.py
BenGH28/Projects
f9e25e39e6afb58203b283c2d0d32d11f1c71124
[ "MIT" ]
null
null
null
RSA/src/primeCheck3.py
BenGH28/Projects
f9e25e39e6afb58203b283c2d0d32d11f1c71124
[ "MIT" ]
null
null
null
from math import sqrt, ceil def isPrime(x): """Primality test. Param x: int. Returns True if x is prime, False otherwise. """ if x <= 0: return False elif x == 2 or x == 3: return True else: for i in range(2, ceil(sqrt(x)) + 1): if x % i == 0: ...
21.785714
71
0.52459
0
0
0
0
0
0
0
0
203
0.332787
2eb7960ce3140ec7ac3164e707d922756ad1469b
1,279
py
Python
text_classifier/utils/analyze_data.py
felixdittrich92/Document_Scanner
64d482393aa76aa845a30cdf5c86c7705c780450
[ "MIT" ]
null
null
null
text_classifier/utils/analyze_data.py
felixdittrich92/Document_Scanner
64d482393aa76aa845a30cdf5c86c7705c780450
[ "MIT" ]
null
null
null
text_classifier/utils/analyze_data.py
felixdittrich92/Document_Scanner
64d482393aa76aa845a30cdf5c86c7705c780450
[ "MIT" ]
1
2021-03-19T14:55:51.000Z
2021-03-19T14:55:51.000Z
"""Script to analyze the Dataframes """ import pandas as pd import matplotlib.pyplot as plt german_df = pd.read_parquet('/home/felix/Desktop/Document_Scanner/text_classifier/data/german.parquet') english_df = pd.read_parquet('/home/felix/Desktop/Document_Scanner/text_classifier/data/english.parquet') german_df.to_csv(...
42.633333
112
0.784206
0
0
0
0
0
0
0
0
742
0.580141
2ebb42c9684dbe1d66150928c34e62dbd038a141
4,742
py
Python
timeflux_serial/nodes/driver.py
mesca/timeflux_serial
60d751c7250d06cc82f77906f7ec741bf2ca0a8b
[ "MIT" ]
null
null
null
timeflux_serial/nodes/driver.py
mesca/timeflux_serial
60d751c7250d06cc82f77906f7ec741bf2ca0a8b
[ "MIT" ]
null
null
null
timeflux_serial/nodes/driver.py
mesca/timeflux_serial
60d751c7250d06cc82f77906f7ec741bf2ca0a8b
[ "MIT" ]
null
null
null
import serial import time import numpy as np import pandas as pd from timeflux.core.exceptions import WorkerInterrupt from timeflux.helpers import clock from timeflux.core.node import Node class SerialDevice(Node): """A generic serial device driver. Attributes: o (Port): Stream from the serial devic...
30.792208
103
0.590679
4,550
0.959511
0
0
0
0
0
0
1,891
0.398777
2ebc95c774511889dc90b69ea08be7978a3d36fc
2,147
py
Python
example/infer.py
johnson7788/OpenNRE
dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0
[ "MIT" ]
5
2021-05-20T02:29:34.000Z
2021-12-21T13:37:39.000Z
example/infer.py
johnson7788/OpenNRE
dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0
[ "MIT" ]
null
null
null
example/infer.py
johnson7788/OpenNRE
dedf56d30b1ba8fa4d7fac2791fb89d6b8af4ba0
[ "MIT" ]
4
2021-06-09T07:40:52.000Z
2022-03-11T01:16:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2021/3/15 10:40 上午 # @File : infer.py # @Author: johnson # @Contact : github: johnson7788 # @Desc : 推理模型 import opennre def infer_wiki80_cnn_softmax(): model = opennre.get_model('wiki80_cnn_softmax') result = model.infer({ ...
38.339286
143
0.567303
0
0
0
0
0
0
0
0
1,058
0.483326
2ec16ba2dc35438c6e75d67e92a70276533f6439
6,938
py
Python
acme_diags/container/e3sm_diags_container.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
acme_diags/container/e3sm_diags_container.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
acme_diags/container/e3sm_diags_container.py
zshaheen/e3sm_diags
0317d5634b14221052c0984ad0c1a27ca8484e2e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ A standalone script that prepares a set of input to e3sm_diags to be ran as a container, and then runs e3sm_diags as a container. """ import os import sys import importlib import argparse import subprocess # Change these commands if needed. SHIFTER_COMMAND = 'shifter --volume=$REFERENCE_DATA_...
34.009804
106
0.682906
0
0
0
0
0
0
0
0
3,160
0.455463
2ec16cb8adc026001f696ccb5a401d62990e6977
15,601
py
Python
johnhablecode.py
anthonyjclark/MeshroomCLI
1f1ab5bb758aa7fd804c34e039c1d728723696f2
[ "CC0-1.0" ]
null
null
null
johnhablecode.py
anthonyjclark/MeshroomCLI
1f1ab5bb758aa7fd804c34e039c1d728723696f2
[ "CC0-1.0" ]
null
null
null
johnhablecode.py
anthonyjclark/MeshroomCLI
1f1ab5bb758aa7fd804c34e039c1d728723696f2
[ "CC0-1.0" ]
1
2021-03-03T02:34:28.000Z
2021-03-03T02:34:28.000Z
import sys, os import shutil def SilentMkdir(theDir): try: os.mkdir(theDir) except: pass return 0 def Run_00_CameraInit(baseDir, binDir, srcImageDir): # SilentMkdir(baseDir + "/00_CameraInit") binName = binDir + "\\aliceVision_cameraInit" # .exe" dstDir = baseDir + "/" # ...
35.864368
599
0.647715
0
0
0
0
0
0
0
0
8,312
0.532786
2ec17047f3913b1560fc059588ca428be5228730
17,448
py
Python
tests/test_cli.py
lucasace/browser-history
cdd6ce892e1bcc84a2eaf932273ac0454af061a0
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
lucasace/browser-history
cdd6ce892e1bcc84a2eaf932273ac0454af061a0
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
lucasace/browser-history
cdd6ce892e1bcc84a2eaf932273ac0454af061a0
[ "Apache-2.0" ]
null
null
null
import csv import itertools import json import tempfile import re import pytest from browser_history.utils import get_browsers from browser_history.cli import cli, AVAILABLE_BROWSERS from .utils import ( # noqa: F401 become_linux, become_mac, become_windows, change_homedir, ) # pylint: disable=redef...
34.965932
88
0.618524
0
0
0
0
11,213
0.642652
0
0
6,066
0.347662
2ec1bd4f84d036770ed1c8c4c525dc52df5d3226
3,363
py
Python
lab4FinalFLCD/venv/Lib/site-packages/domain/validate.py
raduceaca1234/Formal-Languages-and-Compiler-Design
6ced207ad0aa12b9fe5b5090b10bb6dcdd4d2297
[ "MIT" ]
null
null
null
lab4FinalFLCD/venv/Lib/site-packages/domain/validate.py
raduceaca1234/Formal-Languages-and-Compiler-Design
6ced207ad0aa12b9fe5b5090b10bb6dcdd4d2297
[ "MIT" ]
null
null
null
lab4FinalFLCD/venv/Lib/site-packages/domain/validate.py
raduceaca1234/Formal-Languages-and-Compiler-Design
6ced207ad0aa12b9fe5b5090b10bb6dcdd4d2297
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def case_insensitive_string(string, available, default=None): if string is None: return default _available = [each.lower() for each in available] try: index = _available.index(f"{string}".lower()) except ValueError: raise ValueError(f"unrecognised in...
26.273438
85
0.632174
0
0
0
0
0
0
0
0
769
0.228665
2ec35e8658fe8c350dc2c624d8f6bcac6016d398
12,527
py
Python
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
1
2019-09-08T05:39:36.000Z
2019-09-08T05:39:36.000Z
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
1
2017-12-03T09:17:31.000Z
2019-01-13T08:48:40.000Z
plugin.video.220ro/default.py
keddyboys/keddy-repo
5c3420828e19f97222714e0e8518a95d58b3f637
[ "MIT" ]
null
null
null
import HTMLParser import os import re import sys import time import urllib import urllib2 import xbmc import xbmcaddon import xbmcgui import xbmcplugin __addon__ = xbmcaddon.Addon() __cwd__ = xbmc.translatePath(__addon__.getAddonInfo('path')).decode("utf-8") __resource__ = xbmc.translatePath(os.path.join(__c...
38.192073
246
0.58346
0
0
0
0
0
0
0
0
3,171
0.253133
2ec52c2ec087b16583f425248434d46a96af0fd5
912
py
Python
tickets/forms.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
tickets/forms.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
tickets/forms.py
connorgannaway/dockmate
040d44cac896aabc1488f3ed9d59b417e20719d8
[ "MIT" ]
null
null
null
from django import forms from . import widgets from .models import Ticket, TicketItem #Creating html forms. # Each class interacts with a model. Fields for a form are chosen in 'fields' class TicketForm(forms.ModelForm): #setting timeDue to have specific formatting timeDue = forms.DateTimeField( input_...
28.5
77
0.664474
719
0.788377
0
0
0
0
0
0
229
0.251096
2ec5499aa58ee90bddbc543db1bbb0895014d0e6
1,089
py
Python
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
4
2021-11-29T13:28:19.000Z
2021-12-21T22:57:09.000Z
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
11
2021-09-24T18:02:26.000Z
2022-01-27T18:51:47.000Z
conftest.py
Budapest-Quantum-Computing-Group/piquassoboost
fd384be8f59cfd20d62654cf86c89f69d3cf8b8c
[ "Apache-2.0" ]
1
2021-11-13T10:06:52.000Z
2021-11-13T10:06:52.000Z
# # Copyright 2021 Budapest Quantum Computing Group # # 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 ...
33
87
0.724518
0
0
0
0
423
0.38843
0
0
825
0.757576
2ec7a0b5bdeca4cd119b116e98c327c2a10981dd
799
py
Python
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Skyprince-gh/recipe-app-api
a4f0ead6ab546b1fea69c32caa3c269898c4086f
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_emamil_successful(self): """Test creating a new user with an email is successful""" email = 'test@test.com' password = 'testpass123' user = get_user_model().objects....
47
129
0.768461
718
0.898623
0
0
0
0
0
0
406
0.508135
2ec96efd7987b372b655db0ecf660d386e3c6beb
6,736
py
Python
nova/virt/libvirt/storage/dmcrypt.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/storage/dmcrypt.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/storage/dmcrypt.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory' nl|'\n' comment|'# All Rights Reserved' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with t...
15.556582
320
0.621734
0
0
0
0
0
0
0
0
4,040
0.599762
2ec9b42a47d378d39bc5d7f55d620025c929fc40
1,308
py
Python
quiz/routing.py
zeroish/grey-matters
a8e235b7412f754be70d057ac46d5ca38171cb54
[ "MIT" ]
1
2018-05-18T12:02:05.000Z
2018-05-18T12:02:05.000Z
quiz/routing.py
zeroish/grey-matters
a8e235b7412f754be70d057ac46d5ca38171cb54
[ "MIT" ]
44
2017-11-10T11:27:45.000Z
2022-03-08T21:09:03.000Z
quiz/routing.py
zeroish/grey-matters
a8e235b7412f754be70d057ac46d5ca38171cb54
[ "MIT" ]
2
2019-03-07T21:52:58.000Z
2020-06-25T10:08:24.000Z
from channels.staticfiles import StaticFilesConsumer from .consumers import ws_connect, ws_receive, ws_disconnect, new_contestant, start_quiz, submit_answer from channels import include, route # Although we could, there is no path matching on these routes; instead we rely # on the matching from the top-level routing. ...
42.193548
103
0.745413
0
0
0
0
0
0
0
0
777
0.594037
2ecc0dd0c98eb13c08cf7df88acd4f1371b2c87f
2,039
py
Python
webapp/flow_summary_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-08-04T03:09:02.000Z
2020-06-08T15:48:36.000Z
webapp/flow_summary_graphs.py
bfitzy2142/NET4901-SP
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
3
2019-09-06T08:30:21.000Z
2020-06-30T03:24:56.000Z
webapp/flow_summary_graphs.py
bfitzy2142/NET4901-SP-SDLENS
908c13332a5356bd6a59879b8d78af76432b807c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ MySql Parser for graphical presentation """ import mysql.connector import datetime from mysql.connector import Error from datetime import datetime, timedelta import json def pull_flow_graphs(node, time, sql_creds, db): """ Pulls the RX and TX information from the database to di...
29.550725
68
0.611574
0
0
0
0
0
0
0
0
741
0.363413
2ecd9594ca823d5651d395e05b565a78030a392e
35,203
py
Python
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
cardinal_pythonlib/sphinxtools.py
bopopescu/pythonlib
9c2187d6092ba133342ca3374eb7c86f9d296c30
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # cardinal_pythonlib/sphinxtools.py """ =============================================================================== Original code copyright (C) 2009-2020 Rudolf Cardinal (rudolf@pobox.com). This file is part of cardinal_pythonlib. Licensed under the Apache License, Version 2.0 ...
37.81203
106
0.599068
31,020
0.881175
0
0
4,189
0.118996
0
0
18,392
0.522455
2ecd9c823bd13321a5aed037237d0b2d3b1ca359
481
py
Python
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
1
2018-11-05T13:08:48.000Z
2018-11-05T13:08:48.000Z
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
monsterapi/migrations/0005_monster_name.py
merenor/momeback
33195c43abd2757a361dfc5cb7e3cf56f6b57402
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-08 21:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('monsterapi', '0004_name'), ] operations = [ migrations.AddField( model_name='monster', ...
24.05
126
0.634096
355
0.738046
0
0
0
0
0
0
102
0.212058
2ecf02de134bbfb63253edf9f0df0a07e83ef05f
239
py
Python
src/check_ids.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
1
2021-10-06T00:21:10.000Z
2021-10-06T00:21:10.000Z
src/check_ids.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
14
2021-01-15T21:51:38.000Z
2021-11-10T10:08:22.000Z
src/check_ids.py
lubianat/complex_bot
e0ddabcc0487c52b14fb94950c5a812f0bdb2283
[ "MIT" ]
1
2021-01-18T10:32:56.000Z
2021-01-18T10:32:56.000Z
import pandas as pd from wikidataintegrator import wdi_login import utils from login import WDPASS, WDUSER import argparse import sys parser = argparse.ArgumentParser() df = utils.get_complex_portal_species_ids() print(df.to_markdown())
21.727273
43
0.824268
0
0
0
0
0
0
0
0
0
0
2ed00b75cde30c9fb64baa2e01095d04529cd5dc
2,398
py
Python
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0028_user_reports.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.27 on 2020-01-23 19:07 from __future__ import unicode_literals import logging from django.db import migrations from sentry import eventstore from sentry.utils.query import RangeQuerySetWrapper from sentry.utils.snuba import ( SnubaError, QueryOutsideRetentio...
36.892308
94
0.708924
1,107
0.461635
0
0
0
0
0
0
1,110
0.462886
2ed1150755a47f709a199aa35375f61abbfe571c
190
py
Python
config.py
sixleaves/fisher
8f35e840f936e4a4d8450acaae793af3be00a842
[ "MIT" ]
null
null
null
config.py
sixleaves/fisher
8f35e840f936e4a4d8450acaae793af3be00a842
[ "MIT" ]
null
null
null
config.py
sixleaves/fisher
8f35e840f936e4a4d8450acaae793af3be00a842
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time : 2019/5/5 12:39 AM @Author : sweetcs @Site : @File : config.py @Software: PyCharm """ DEBUG=True HOST="0.0.0.0" PORT=9292
14.615385
28
0.578947
0
0
0
0
0
0
0
0
160
0.842105
2ed1c87b80dd4e8779929d2ec1d831bf4040a93d
45
py
Python
garbage/buidlInformation.py
mjasnikovs/horus
c342aafc074e163a5a2eaa3564cba3131c6050a0
[ "MIT" ]
null
null
null
garbage/buidlInformation.py
mjasnikovs/horus
c342aafc074e163a5a2eaa3564cba3131c6050a0
[ "MIT" ]
null
null
null
garbage/buidlInformation.py
mjasnikovs/horus
c342aafc074e163a5a2eaa3564cba3131c6050a0
[ "MIT" ]
null
null
null
import cv2 print(cv2.getBuildInformation())
11.25
32
0.8
0
0
0
0
0
0
0
0
0
0
2ed3994d0c5b4857eeceb1cfe4c63346bcc38f0c
26,733
py
Python
contrib/gitian-build.py
castarco/unit-e
a396aaea29406744e04057aab3a771c7283086e9
[ "MIT" ]
36
2019-04-17T18:58:51.000Z
2022-01-18T12:16:27.000Z
contrib/gitian-build.py
Danpetersen448/unit-e
4ca86fc55a41e0daeb4409de2719a5523b6007c6
[ "MIT" ]
109
2019-04-17T17:19:45.000Z
2019-06-19T15:16:37.000Z
contrib/gitian-build.py
Danpetersen448/unit-e
4ca86fc55a41e0daeb4409de2719a5523b6007c6
[ "MIT" ]
16
2019-04-17T17:35:42.000Z
2020-01-09T17:51:05.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2019 The Bitcoin Core developers # Copyright (c) 2019 The Unit-e developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/licenses/MIT. import argparse import os import subprocess import sys import platform impo...
50.061798
231
0.652714
1,932
0.07227
152
0.005686
168
0.006284
0
0
9,579
0.358321
2ed51113f6af6104ceef30f404b847887714f4ec
1,239
py
Python
src/commands/guild_list.py
HugeBrain16/ZenRPG
9ed83a2696a359dff573583582b724ca7bb920ae
[ "MIT" ]
null
null
null
src/commands/guild_list.py
HugeBrain16/ZenRPG
9ed83a2696a359dff573583582b724ca7bb920ae
[ "MIT" ]
null
null
null
src/commands/guild_list.py
HugeBrain16/ZenRPG
9ed83a2696a359dff573583582b724ca7bb920ae
[ "MIT" ]
null
null
null
import discord from lib import utils async def _guild_list(page=1): try: page = int(page) - 1 except Exception: await _guild_list.message.channel.send( ":warning: use number to navigate between pages" ) return guilds = utils.get_guilds() pages = [[]] ...
29.5
123
0.577885
0
0
0
0
0
0
1,198
0.966909
297
0.239709
2ed64ffbfe98feb2efc11a0c58fa360ff20cbac1
4,184
py
Python
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
redshift-dataapi/iac/app.py
InfrastructureHQ/AWS-CDK-Accelerators
a8a3f61040f4419a6c3485c8f4b8df6204a55940
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, SteelHead Industry Cloud, Inc. <info@steelheadhq.com>. # All Rights Reserved. * # # # Import Core Modules # For consistency with other languages, `cdk` is the preferred import name for the CDK's core module. from aws_cdk import core as cdk from aws_cdk.core import App, Stack...
24.757396
101
0.658461
0
0
0
0
0
0
0
0
3,051
0.729207
2ed6729bedf9bfe75446a749ed9fe190a3fd7ac0
2,443
py
Python
chronosoft8puppeteer/gpio.py
mika1337/chronosoft8-puppeteer
b277664005636e159057998e873271653481ec72
[ "MIT" ]
null
null
null
chronosoft8puppeteer/gpio.py
mika1337/chronosoft8-puppeteer
b277664005636e159057998e873271653481ec72
[ "MIT" ]
null
null
null
chronosoft8puppeteer/gpio.py
mika1337/chronosoft8-puppeteer
b277664005636e159057998e873271653481ec72
[ "MIT" ]
null
null
null
# ============================================================================= # System imports import logging import RPi.GPIO as RPiGPIO # ============================================================================= # Logger setup logger = logging.getLogger(__name__) # =============================================...
35.926471
106
0.494883
2,079
0.851003
0
0
0
0
0
0
464
0.18993
2ed8168234f69683f90dc66c5e63649460c38d3c
235
py
Python
eventos/admin.py
JohnVictor2017/StartTm
91a6f60ffd36f25f01d75798c5ef83e7dc44d97d
[ "MIT" ]
null
null
null
eventos/admin.py
JohnVictor2017/StartTm
91a6f60ffd36f25f01d75798c5ef83e7dc44d97d
[ "MIT" ]
null
null
null
eventos/admin.py
JohnVictor2017/StartTm
91a6f60ffd36f25f01d75798c5ef83e7dc44d97d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Evento, EventoCategoria, InscricaoSolicitacao # Register your models here. admin.site.register(Evento) admin.site.register(EventoCategoria) admin.site.register(InscricaoSolicitacao)
33.571429
65
0.846809
0
0
0
0
0
0
0
0
28
0.119149
2eda2e9ebcd9d63e306693c5ef3298caf6dec8ba
4,949
py
Python
indra/benchmarks/assembly_eval/batch4/rasmodel.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
2
2020-01-14T08:59:10.000Z
2020-12-18T16:21:38.000Z
indra/benchmarks/assembly_eval/batch4/rasmodel.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
indra/benchmarks/assembly_eval/batch4/rasmodel.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str from indra.statements import * from indra.preassembler.grounding_mapper import GroundingMapper, \ default_grounding_map def get_statements(): statements = [] ...
37.210526
78
0.661144
0
0
0
0
0
0
0
0
609
0.123055
2edb2059e18b0c410523e3639bf85166c7f4e887
263
py
Python
gdal/swig/python/scripts/gcps2wld.py
Sokigo-GLS/gdal
595f74bf60dff89fc5df53f9f4c3e40fc835e909
[ "MIT" ]
null
null
null
gdal/swig/python/scripts/gcps2wld.py
Sokigo-GLS/gdal
595f74bf60dff89fc5df53f9f4c3e40fc835e909
[ "MIT" ]
null
null
null
gdal/swig/python/scripts/gcps2wld.py
Sokigo-GLS/gdal
595f74bf60dff89fc5df53f9f4c3e40fc835e909
[ "MIT" ]
null
null
null
import sys # import osgeo.utils.gcps2wld as a convenience to use as a script from osgeo.utils.gcps2wld import * # noqa from osgeo.utils.gcps2wld import main from osgeo.gdal import deprecation_warn deprecation_warn('gcps2wld', 'utils') sys.exit(main(sys.argv))
26.3
65
0.787072
0
0
0
0
0
0
0
0
88
0.334601
2edb46e51b23c5cc0a15172f8710ba6f0f6689e9
139
py
Python
sort-characters-by-frequency/sort-characters-by-frequency.py
anomius/Leetcode-dump
641e44c5cc614b2dc9cd01c34b9dcf12e9d16043
[ "MIT" ]
null
null
null
sort-characters-by-frequency/sort-characters-by-frequency.py
anomius/Leetcode-dump
641e44c5cc614b2dc9cd01c34b9dcf12e9d16043
[ "MIT" ]
null
null
null
sort-characters-by-frequency/sort-characters-by-frequency.py
anomius/Leetcode-dump
641e44c5cc614b2dc9cd01c34b9dcf12e9d16043
[ "MIT" ]
null
null
null
class Solution: def frequencySort(self, s: str) -> str: return reduce(lambda a, b: a + b[1]*b[0], Counter(s).most_common(), '')
46.333333
79
0.604317
139
1
0
0
0
0
0
0
2
0.014388
2edc0159fa249c0dec93294da274e3a53143a4d1
2,138
py
Python
api_tests/principal_claim_test.py
bhatti/saas_rbac
8debc56a9610f8fef1a323155eb938bfef4fa034
[ "MIT" ]
5
2019-12-20T19:52:50.000Z
2021-08-03T11:03:18.000Z
api_tests/principal_claim_test.py
bhatti/saas_rbac
8debc56a9610f8fef1a323155eb938bfef4fa034
[ "MIT" ]
null
null
null
api_tests/principal_claim_test.py
bhatti/saas_rbac
8debc56a9610f8fef1a323155eb938bfef4fa034
[ "MIT" ]
2
2020-03-30T17:00:36.000Z
2021-06-17T05:59:01.000Z
import unittest import base_test import json class PrincipalClaimTest(base_test.BaseTest): def setUp(self): super(PrincipalClaimTest, self).setUp() self._org = self.post('/api/orgs', {"name":"claim_org", "url":"https://myorg.com"}) self._principal = self.post('/api/orgs/%s/principals' % sel...
62.882353
210
0.630028
2,043
0.955566
0
0
0
0
0
0
796
0.372311
2edf86c413814d5ad4dd994b2501c494657290bc
510
py
Python
examples/standalone/simple_case_build.py
awillats/brian2
e1107ed0cc4a7d6c69c1e2634b675ba09edfd9fc
[ "BSD-2-Clause" ]
1
2021-06-10T15:28:51.000Z
2021-06-10T15:28:51.000Z
examples/standalone/simple_case_build.py
awillats/brian2
e1107ed0cc4a7d6c69c1e2634b675ba09edfd9fc
[ "BSD-2-Clause" ]
null
null
null
examples/standalone/simple_case_build.py
awillats/brian2
e1107ed0cc4a7d6c69c1e2634b675ba09edfd9fc
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ''' The most simple case how to use standalone mode with several `run` calls. ''' from brian2 import * set_device('cpp_standalone', build_on_run=False) tau = 10*ms I = 1 # input current eqs = ''' dv/dt = (I-v)/tau : 1 ''' G = NeuronGroup(10, eqs, method='exact') G.v = 'rand()' mon = StateMonitor...
20.4
73
0.656863
0
0
0
0
0
0
0
0
232
0.454902
2ee031ceef9afeeee26f7964687ce928e931a2a2
801
py
Python
01-python-fundamentals.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
01-python-fundamentals.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
01-python-fundamentals.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
# What should be printing the next snippet of code? intNum = 10 negativeNum = -5 testString = "Hello " testList = [1, 2, 3] print(intNum * 5) print(intNum - negativeNum) print(testString + 'World') print(testString * 2) print(testString[-1]) print(testString[1:]) print(testList + testList) # The sum of each three fir...
21.078947
102
0.60799
0
0
0
0
0
0
0
0
232
0.289638
2ee1f5707dc3b138efdc660027411aa4640b57d7
801
py
Python
cdchanger/urls.py
mnosinov/cdchanger
7dc4db3849e135c813d4a46287bdb7cb8b1547d6
[ "MIT" ]
null
null
null
cdchanger/urls.py
mnosinov/cdchanger
7dc4db3849e135c813d4a46287bdb7cb8b1547d6
[ "MIT" ]
null
null
null
cdchanger/urls.py
mnosinov/cdchanger
7dc4db3849e135c813d4a46287bdb7cb8b1547d6
[ "MIT" ]
null
null
null
from django.urls import path from django.views.generic import TemplateView from .views import CdchangerListView, CdchangerWizard urlpatterns = [ path('', TemplateView.as_view(template_name='cdchanger/index.html'), name='index'), path('cdchangers', CdchangerListView.as_view(), name='cdchangers'), path('cdc...
50.0625
110
0.739076
0
0
0
0
0
0
0
0
412
0.514357
2ee23bd27e64239ca72b8aa33e58b21e0f9b9dca
9,255
py
Python
src/genomic_benchmarks/loc2seq/with_biopython.py
Shirapti-nath/genomic_benchmarks
293cb55c645aac1cca8fb349a36fa530cf59276a
[ "Apache-2.0" ]
null
null
null
src/genomic_benchmarks/loc2seq/with_biopython.py
Shirapti-nath/genomic_benchmarks
293cb55c645aac1cca8fb349a36fa530cf59276a
[ "Apache-2.0" ]
null
null
null
src/genomic_benchmarks/loc2seq/with_biopython.py
Shirapti-nath/genomic_benchmarks
293cb55c645aac1cca8fb349a36fa530cf59276a
[ "Apache-2.0" ]
null
null
null
import pandas as pd import yaml import gzip import re import urllib import shutil # for removing and creating folders from pathlib import Path from tqdm.autonotebook import tqdm import warnings from Bio import SeqIO from Bio.Seq import Seq from .cloud_caching import CLOUD_CACHE, download_from_cloud_cache CACHE_PATH...
41.877828
156
0.663857
227
0.024527
0
0
0
0
0
0
2,904
0.313776
2ee562e1b0d873d6a89174fee384867b26eb8eb9
851
py
Python
main.py
Forcide/ApacheParser
0f82e8d7d696f1c2e17be4975e6836e435a9ab1a
[ "MIT" ]
null
null
null
main.py
Forcide/ApacheParser
0f82e8d7d696f1c2e17be4975e6836e435a9ab1a
[ "MIT" ]
null
null
null
main.py
Forcide/ApacheParser
0f82e8d7d696f1c2e17be4975e6836e435a9ab1a
[ "MIT" ]
null
null
null
from modules import menu, hosts, logMail, status, webpagina, zoekInLog def main(): """" Dit is de start file/functie van het programma, hierin worden alle modules geladen en zo nodig uitgevoerd. Het menu wordt gestart en de keuze wordt verwezen naar een van de modules. Geimporteerde modules: - menu...
19.340909
110
0.589894
0
0
0
0
0
0
0
0
317
0.372503
2ee6a54ae75caf325e2b975f0980d27b34405153
15,329
py
Python
Chapter09/cifar_10_revisted_transfer_learning.py
PacktPublishing/Deep-Learning-By-Example
2755f92fad19c54ee15ad858ca20e8e64f58cc00
[ "MIT" ]
27
2018-02-28T04:56:07.000Z
2021-11-08T13:12:44.000Z
Chapter09/cifar_10_revisted_transfer_learning.py
PacktPublishing/Deep-Learning-By-Example
2755f92fad19c54ee15ad858ca20e8e64f58cc00
[ "MIT" ]
1
2018-04-10T21:26:45.000Z
2018-04-10T21:26:45.000Z
Chapter09/cifar_10_revisted_transfer_learning.py
PacktPublishing/Deep-Learning-By-Example
2755f92fad19c54ee15ad858ca20e8e64f58cc00
[ "MIT" ]
16
2018-03-07T01:14:14.000Z
2022-01-12T02:11:27.000Z
import matplotlib.pyplot as plt import tensorflow as tf import numpy as np import time from datetime import timedelta import os # Importing a helper module for the functions of the Inception model. import inception import cifar10 from cifar10 import num_classes from inception import transfer_values_cache #Importing...
34.447191
131
0.694109
0
0
0
0
0
0
0
0
5,839
0.380912
2ee7379d9c15a586379addc309fdbb786e13adc1
2,276
py
Python
posts/api/views.py
kasper190/SPAforum
4d26c9d7b62ce84540100ca7f6b1b2aaa4fb57bd
[ "MIT" ]
null
null
null
posts/api/views.py
kasper190/SPAforum
4d26c9d7b62ce84540100ca7f6b1b2aaa4fb57bd
[ "MIT" ]
null
null
null
posts/api/views.py
kasper190/SPAforum
4d26c9d7b62ce84540100ca7f6b1b2aaa4fb57bd
[ "MIT" ]
null
null
null
from rest_framework.exceptions import NotFound, PermissionDenied from rest_framework.generics import ( CreateAPIView, DestroyAPIView, RetrieveUpdateAPIView, ) from .permissions import ( IsAdminOrModeratorOrReadOnly, IsOwnerOrAdminOrModeratorOrReadOnly, IsOwnerOrReadOnly, ) from .serializers impo...
30.346667
99
0.737258
1,755
0.77109
0
0
0
0
0
0
58
0.025483
2ee7856345c9fb44d682f93c6f98e331db8127ea
270
py
Python
app/questionnaire_state/state_section.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
app/questionnaire_state/state_section.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
8
2020-03-24T15:24:18.000Z
2022-03-02T04:32:56.000Z
app/questionnaire_state/state_section.py
qateam123/eq
704757952323647d659c49a71975c56406ff4047
[ "MIT" ]
null
null
null
from app.questionnaire_state.state_item import StateItem class StateSection(StateItem): def __init__(self, item_id, schema_item): super().__init__(item_id=item_id, schema_item=schema_item) self.questions = [] self.children = self.questions
30
66
0.72963
210
0.777778
0
0
0
0
0
0
0
0
2ee8096164e1adc4d2f9118ff7c8dcfcb8620047
8,046
py
Python
examples/visualize.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
null
null
null
examples/visualize.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
null
null
null
examples/visualize.py
Jallet/keras-jl-ac-mean
2bbc1596192fb8c3aefc4a8126482a5283574a59
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import sys sys.path.insert(0, "/home/liangjiang/code/keras-jl-mean/") from keras.datasets import cifar10 from keras.preprocessing.image import ImageDataGenerator from keras.models import model_from_json from keras.models import Sequential from keras.layers imp...
38.682692
97
0.616828
0
0
0
0
0
0
0
0
2,226
0.276659
2ee93559b4c44d3a539288935e7f1d8e903dfc6a
14,221
py
Python
electrical_simulation/miasole_module_two.py
architecture-building-systems/bipv-tool
3ae73a541754e5215dfd39ef837d72f4b80ef967
[ "MIT" ]
4
2019-02-18T14:10:49.000Z
2021-04-23T09:03:13.000Z
electrical_simulation/miasole_module_two.py
architecture-building-systems/bipv-tool
3ae73a541754e5215dfd39ef837d72f4b80ef967
[ "MIT" ]
1
2018-08-16T13:27:15.000Z
2018-08-16T13:27:16.000Z
electrical_simulation/miasole_module_two.py
architecture-building-systems/bipv-tool
3ae73a541754e5215dfd39ef837d72f4b80ef967
[ "MIT" ]
null
null
null
import numpy as np import pvlib.pvsystem as pvsyst import interconnection as connect import matplotlib.pyplot as plt def calculate_reverse_scaling_factor(voltages, breakdown_voltage, miller_exponent): """ :param voltages: numpy array of voltages :param breakdown_voltage: the minimum voltage before the ave...
52.283088
134
0.664932
0
0
0
0
0
0
0
0
5,252
0.369313
2ee996c7e56c15fda4c16fc6ca5f0fcf36384ef4
284
py
Python
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
default_settings.py
RobMilinski/Xero-Starter-Branched-Test
c82382e674b34c2336ee164f5a079d6becd1ed46
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from os.path import dirname, join SECRET_KEY = os.urandom(16) # configure file based session SESSION_TYPE = "filesystem" SESSION_FILE_DIR = join(dirname(__file__), "cache") # configure flask app for local development ENV = "development"
23.666667
52
0.714789
0
0
0
0
0
0
0
0
131
0.461268
2eea53e1e9eb945c94d4c33420b934da2fc613c6
5,610
py
Python
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
8
2019-02-09T05:00:50.000Z
2020-11-02T11:30:03.000Z
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
null
null
null
v0.2/crawl_tool.py
sivanWu0222/GetLinksFromSoBooks
9f429b5f8b359e4faf25381a7b59f5effd21b5ca
[ "Apache-2.0" ]
null
null
null
import requests from bs4 import BeautifulSoup import re from selenium import webdriver import model URL = "https://sobooks.cc" VERIFY_KEY = '2019777' def convert_to_beautifulsoup(data): """ 用于将传过来的data数据包装成BeautifulSoup对象 :param data: 对应网页的html内容数据 :return: 对应data的BeautifulSoup对象 """ bs = Bea...
26.842105
106
0.636364
0
0
0
0
0
0
0
0
3,287
0.474726
2eea8d34fe53d8a8743f98b68b96db418c9710d2
2,545
py
Python
test_basic.py
mpeters/movie_rating
307188ee2908e42bcdc4e98114a7fe9ae264ebeb
[ "MIT" ]
null
null
null
test_basic.py
mpeters/movie_rating
307188ee2908e42bcdc4e98114a7fe9ae264ebeb
[ "MIT" ]
null
null
null
test_basic.py
mpeters/movie_rating
307188ee2908e42bcdc4e98114a7fe9ae264ebeb
[ "MIT" ]
null
null
null
import unittest import subprocess import re from os import environ class MoveRatingTestBasic(unittest.TestCase): def setUp(self): if environ.get('OMDB_API_KEY') is None or len(environ.get('OMDB_API_KEY')) < 1: raise Exception("The OMDB_API_KEY environment variable is not set. Unable to run test...
48.942308
162
0.674263
2,428
0.954028
0
0
0
0
0
0
988
0.388212
2eebbacb5df6c83ca0a014890b1d4f2d50ccc8e9
228
py
Python
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-02-05T13:19:58.000Z
2021-02-05T13:19:58.000Z
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/numpy/version.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
null
null
null
# THIS FILE IS GENERATED FROM NUMPY SETUP.PY short_version = '1.9.0' version = '1.9.0' full_version = '1.9.0' git_revision = '07601a64cdfeb1c0247bde1294ad6380413cab66' release = True if not release: version = full_version
20.727273
57
0.745614
0
0
0
0
0
0
0
0
107
0.469298
2eebfa288fa7ac7e2d9bbee1fae33a9fe39c1ae3
620
py
Python
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
txter/migrations/0001_initial.py
KanataIZUMIKAWA/TXTer
6cbf67a229db30452e412883cd55584a204199a7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-01-05 03:33 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Posts', fields=[ ('id', models.AutoField(au...
25.833333
114
0.564516
527
0.85
0
0
0
0
0
0
90
0.145161
2eec6b15a40ea433bc4066f828b5719399dfaf23
1,450
py
Python
bin/util.py
data-lessons/dh-openrefine
925546279c3dbbb35a76d5a7652a999c634ed7a5
[ "CC-BY-4.0" ]
7
2016-08-05T15:38:38.000Z
2021-08-15T09:28:40.000Z
bin/util.py
ucsdlib/library-bash
de433b43aef2983ef1e51a8d61438ab2d5d08e3d
[ "CC-BY-4.0" ]
4
2016-07-28T08:00:12.000Z
2016-09-16T10:17:36.000Z
bin/util.py
ucsdlib/library-bash
de433b43aef2983ef1e51a8d61438ab2d5d08e3d
[ "CC-BY-4.0" ]
4
2016-07-28T06:51:03.000Z
2017-09-24T17:17:58.000Z
import sys class Reporter(object): '''Collect and report errors.''' def __init__(self, args): '''Constructor.''' super(Reporter, self).__init__() self.messages = [] def check_field(self, filename, name, values, key, expected): '''Check that a dictionary has an expected v...
27.884615
90
0.561379
1,437
0.991034
0
0
0
0
0
0
300
0.206897
2eee14c3677a7997e3c8aceecca0e08c51854b86
10,722
py
Python
src/graph_io.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
5
2020-03-13T02:54:03.000Z
2022-03-18T02:33:12.000Z
src/graph_io.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
2
2021-11-10T19:47:00.000Z
2022-02-10T01:24:59.000Z
src/graph_io.py
Abdumaleek/infinity-mirror
b493c5602d9e4bcf374b748e9b80e7c85be54a88
[ "MIT" ]
1
2021-05-24T21:54:44.000Z
2021-05-24T21:54:44.000Z
""" Graph i/o helpers """ import math from pathlib import Path import networkx as nx import numpy as np from src.utils import ColorPrint as CP, check_file_exists, print_float # TODO: add LFR benchmark graphs class GraphReader: """ Class for graph reader .g /.txt: graph edgelist .gml, .gexf for Geph...
36.845361
150
0.571908
9,946
0.927625
0
0
0
0
0
0
3,528
0.329043
2eee76235b6e429c851cf2af43ca0728c03365df
1,241
py
Python
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
arquivo.py
raphaelss/programagestalt
dabe073bda7d34a16368cdc881e9d1a7150263cc
[ "MIT" ]
null
null
null
import csv import re class Arquivo: def __init__(self, path): rp = re.compile("^ *(\d+) +(\d+)\n?$") self.alturas = [] self.duracoes = [] linecount = 1 with open(path) as f: for line in f: match = rp.match(line) if match: ...
26.404255
80
0.507655
1,105
0.890411
0
0
0
0
0
0
53
0.042707
2ef007f96300135913374e66f242b4d7ad638d34
937
py
Python
env/Lib/site-packages/OpenGL/GL/ARB/shader_clock.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GL/ARB/shader_clock.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GL/ARB/shader_clock.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ARB.shader_clock This module customises the behaviour of the OpenGL.raw.GL.ARB.shader_clock to provide a more Python-friendly API Overview (from the spec) This extension exposes a 64-bit monotonically incrementing shader counter which may be used to derive local timing information within a ...
32.310345
71
0.803629
0
0
0
0
0
0
0
0
565
0.602988
2ef1c30c2a21d30607beca0e47199956e827e7ca
234
py
Python
tuiuiu/tuiuiuadmin/tests/api/utils.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
3
2019-08-08T09:09:35.000Z
2020-12-15T18:04:17.000Z
tuiuiu/tuiuiuadmin/tests/api/utils.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
null
null
null
tuiuiu/tuiuiuadmin/tests/api/utils.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
1
2017-09-09T20:10:40.000Z
2017-09-09T20:10:40.000Z
from __future__ import absolute_import, unicode_literals from django.test import TestCase from tuiuiu.tests.utils import TuiuiuTestUtils class AdminAPITestCase(TestCase, TuiuiuTestUtils): def setUp(self): self.login()
21.272727
56
0.790598
92
0.393162
0
0
0
0
0
0
0
0
2ef1fb64ccfc3ef2323962139efae480655479b6
1,933
py
Python
youtube_channel_dl.py
allicebiyon/youtube-channel-dl
53d06f64fd9a256dd920bc1db093ccd84949c580
[ "MIT" ]
null
null
null
youtube_channel_dl.py
allicebiyon/youtube-channel-dl
53d06f64fd9a256dd920bc1db093ccd84949c580
[ "MIT" ]
null
null
null
youtube_channel_dl.py
allicebiyon/youtube-channel-dl
53d06f64fd9a256dd920bc1db093ccd84949c580
[ "MIT" ]
null
null
null
import argparse import requests import youtube_dl from bs4 import BeautifulSoup from jsonfinder import jsonfinder from nested_lookup import nested_lookup parser = argparse.ArgumentParser(description='Download YouTube videos from a channel using youtube-dl.') parser.add_argument('channelURL', metavar='url', type=str, h...
28.426471
118
0.68598
0
0
0
0
0
0
0
0
773
0.399897
2ef21a49b80856b019df0f92474580a5a810fe47
1,415
py
Python
Camera_V2.py
Damian-Gsource/ENGI301
e52b23e76fce576235c80eaca908e665076e4ab6
[ "MIT" ]
null
null
null
Camera_V2.py
Damian-Gsource/ENGI301
e52b23e76fce576235c80eaca908e665076e4ab6
[ "MIT" ]
null
null
null
Camera_V2.py
Damian-Gsource/ENGI301
e52b23e76fce576235c80eaca908e665076e4ab6
[ "MIT" ]
null
null
null
import cv2 import numpy as np # Create a VideoCapture object cap = cv2.VideoCapture(0) # Check if camera opened successfully if (cap.isOpened() == False): print("Unable to read camera feed") # Default resolutions of the frame are obtained.The default resolutions are system dependent. # We convert the resolutions ...
25.267857
98
0.691873
0
0
0
0
0
0
0
0
691
0.488339
2ef2497a0bb99f58197f6f6252d8254c97895330
2,502
py
Python
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
train/tf/nlp/trainer/tf.py
charliemorning/mlws
8e9bad59ca9f5e774cc1ae7fe454ff3b8a8e1784
[ "MIT" ]
null
null
null
from models.torch.trainer import SupervisedNNModelTrainConfig, Trainer class KerasTrainer(Trainer): def __init__( self, train_config: SupervisedNNModelTrainConfig ): super(KerasTrainer, self).__init__(train_config) def fit(self, train_data, eval_data=None, callbacks=None,...
37.909091
113
0.643086
2,425
0.969225
0
0
0
0
0
0
28
0.011191
2ef4a98fba2216863d25c4500c449a51c8172226
1,168
py
Python
Sliding Window/String Anagrams.py
yalyakoob/Algorithmic-Coding-Challenges
ec1fe427e2eb7f00f56850c5911acc3622a03c55
[ "MIT" ]
null
null
null
Sliding Window/String Anagrams.py
yalyakoob/Algorithmic-Coding-Challenges
ec1fe427e2eb7f00f56850c5911acc3622a03c55
[ "MIT" ]
null
null
null
Sliding Window/String Anagrams.py
yalyakoob/Algorithmic-Coding-Challenges
ec1fe427e2eb7f00f56850c5911acc3622a03c55
[ "MIT" ]
null
null
null
"""Given a string and a pattern, find all anagrams of the pattern in the given string. Write a function to return a list of starting indices of the anagrams of the pattern in the given string.""" """Example: String="ppqp", Pattern="pq", Output = [1, 2] """ def find_string_anagrams(str1, pattern): result...
35.393939
88
0.601884
0
0
0
0
0
0
0
0
264
0.226027
2ef62c36e89113dd64975e4991597617554ffa18
826
py
Python
ninja/openapi/urls.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
ninja/openapi/urls.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
ninja/openapi/urls.py
lsaavedr/django-ninja
caa182007368bb0fed85b184fb0583370e9589b4
[ "MIT" ]
null
null
null
from functools import partial from django.urls import path from .views import openapi_json, swagger, home def get_openapi_urls(api: "NinjaAPI"): result = [path("", partial(home, api=api), name=f"api-root")] if api.openapi_url: result.append( path( api.openapi_url.lstrip("/...
25.8125
67
0.512107
0
0
0
0
0
0
0
0
116
0.140436
2ef92842a29485830b7dc96257442537b474a8cf
1,243
py
Python
app/backend/queries/mysql.py
sesam-community/autoconnect
1f0a4630ca77cc3cf5786de0bb4686b05bd0f0bb
[ "Apache-2.0" ]
null
null
null
app/backend/queries/mysql.py
sesam-community/autoconnect
1f0a4630ca77cc3cf5786de0bb4686b05bd0f0bb
[ "Apache-2.0" ]
null
null
null
app/backend/queries/mysql.py
sesam-community/autoconnect
1f0a4630ca77cc3cf5786de0bb4686b05bd0f0bb
[ "Apache-2.0" ]
1
2021-02-18T15:15:01.000Z
2021-02-18T15:15:01.000Z
def table_pkey(table): query = f"""SELECT KU.table_name as TABLENAME,column_name as PRIMARYKEYCOLUMN FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS TC INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS KU ON TC.CONSTRAINT_TYPE = 'PRIMARY KEY' AND TC.CONSTRAINT_NAME = KU.CONSTRAINT_NAME AND KU.table_n...
47.807692
143
0.745776
0
0
0
0
0
0
0
0
887
0.713596
2efa90e5edb8969c91a038deb579183818e94e09
113
py
Python
apps.py
MrOerni/django_event_signup
4fa13d64c5cb20599bc1398a8b474ffc6cbdc012
[ "MIT" ]
null
null
null
apps.py
MrOerni/django_event_signup
4fa13d64c5cb20599bc1398a8b474ffc6cbdc012
[ "MIT" ]
null
null
null
apps.py
MrOerni/django_event_signup
4fa13d64c5cb20599bc1398a8b474ffc6cbdc012
[ "MIT" ]
null
null
null
from django.apps import AppConfig class django_event_signupConfig(AppConfig): name = 'django_event_signup'
18.833333
43
0.80531
76
0.672566
0
0
0
0
0
0
21
0.185841
2efb047b94d6832acae0ceb75434aca43e199244
515
py
Python
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
null
null
null
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
5
2020-02-12T03:13:11.000Z
2022-01-13T01:41:14.000Z
good_spot/places/migrations/0028_fieldtype_is_shown_in_about_place.py
jasmine92122/NightClubBackend
7f59129b78baaba0e0c25de2b493033b858f1b00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-29 18:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('places', '0027_auto_20171229_1606'), ] operations = [ migrations.AddField( ...
24.52381
97
0.646602
357
0.693204
0
0
0
0
0
0
169
0.328155
2efcacbc0077a1fe4130947c761f4105ee9cbf6b
1,798
py
Python
mqtt.py
hansehe/graphql-gateway
f2c4b21f1f509ea3c516d8401d69eb0db618045d
[ "MIT" ]
3
2021-03-05T02:27:44.000Z
2021-11-07T02:11:28.000Z
mqtt.py
hansehe/graphql-gateway
f2c4b21f1f509ea3c516d8401d69eb0db618045d
[ "MIT" ]
1
2021-01-22T12:54:18.000Z
2021-01-22T14:02:29.000Z
mqtt.py
hansehe/graphql-gateway
f2c4b21f1f509ea3c516d8401d69eb0db618045d
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqtt import uuid import time # Test code to trig the gateway to update with mqtt. # Requirements: # - pip install paho-mqtt stopMqttClient = False # The callback for when the client receives a CONNACK response from the server. def on_connect(client, userdata, flags, rc): print('Conn...
29.966667
79
0.735261
0
0
0
0
0
0
0
0
831
0.46218
2efe4b44afb23c91ba071cfabe00b534c6793018
11,863
py
Python
shrun/runner.py
Nextdoor/shrun
bfc30d535e1e8de1b6ea77b74ca12743c86c7344
[ "BSD-2-Clause" ]
1
2016-10-22T23:57:17.000Z
2016-10-22T23:57:17.000Z
shrun/runner.py
Nextdoor/shrun
bfc30d535e1e8de1b6ea77b74ca12743c86c7344
[ "BSD-2-Clause" ]
2
2016-10-05T22:46:36.000Z
2016-10-23T14:15:37.000Z
shrun/runner.py
Nextdoor/shrun
bfc30d535e1e8de1b6ea77b74ca12743c86c7344
[ "BSD-2-Clause" ]
1
2017-07-08T17:57:19.000Z
2017-07-08T17:57:19.000Z
from builtins import str import collections import contextlib import functools import itertools import io import os import re import six import subprocess import threading import tempfile import time import traceback import termcolor from . import command from . import parser COLORS = ['yellow', 'blue', 'red', 'gre...
34.08908
134
0.571441
9,111
0.768018
500
0.042148
1,655
0.139509
0
0
1,898
0.159993
2efec4d7645754973922248e12f2e9e6fd0b48f4
746
py
Python
demo/examples/radio/application.py
haizzus/FPGA-radio
7b7811091bafb2865bccb8aef9f4a53f7b43089e
[ "MIT" ]
53
2016-10-15T17:13:19.000Z
2022-03-27T02:24:50.000Z
demo/examples/radio/application.py
dawsonjon/FPGA-radio
7b7811091bafb2865bccb8aef9f4a53f7b43089e
[ "MIT" ]
null
null
null
demo/examples/radio/application.py
dawsonjon/FPGA-radio
7b7811091bafb2865bccb8aef9f4a53f7b43089e
[ "MIT" ]
10
2017-03-17T11:16:01.000Z
2022-03-30T05:00:05.000Z
from demo.components.server import server from chips.api.api import * def application(chip): eth = Component("application.c") eth( chip, inputs = { "eth_in" : chip.inputs["input_eth_rx"], "am_in" : chip.inputs["input_radio_am"], "fm_in" : chip.inputs["input...
32.434783
73
0.576408
0
0
0
0
0
0
0
0
267
0.357909
2eff7f3dafd4df68788f8af91c9f219b3565485e
227
py
Python
Xiecheng/__init__.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
2
2021-12-14T10:46:14.000Z
2021-12-14T10:47:00.000Z
Xiecheng/__init__.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
9
2021-12-06T06:16:15.000Z
2021-12-20T06:39:50.000Z
Xiecheng/__init__.py
scottyyf/MultiWorker
4abd361c3053140be6453d6e6e30f5c31a189e79
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: __init__.py.py Author: Scott Yang(Scott) Email: yangyingfa@skybility.com Copyright: Copyright (c) 2021, Skybility Software Co.,Ltd. All rights reserved. Description: """
20.636364
79
0.709251
0
0
0
0
0
0
0
0
223
0.982379
2effa2910ab4cf2ceba74e75f327552e40cb5a00
10,926
py
Python
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
105
2019-08-05T21:27:33.000Z
2022-02-16T03:35:10.000Z
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
16
2019-08-06T21:12:11.000Z
2021-03-22T14:09:21.000Z
learning/pytorch/models/rnn_models.py
thomasehuang/Ithemal-Extension
821a875962a261de003c6da6e2d3e9b49918d68a
[ "MIT" ]
25
2019-08-11T22:41:57.000Z
2021-11-10T08:02:50.000Z
#this file contains models that I have tried out for different tasks, which are reusable #plus it has the training framework for those models given data - each model has its own data requirements import numpy as np import common_libs.utilities as ut import random import torch.nn as nn import torch.autograd as autograd...
34.358491
106
0.645158
10,538
0.964488
0
0
0
0
0
0
2,836
0.259564
2c00b39003b7029e872ee5035a075a953fa079f3
9,669
py
Python
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
4
2020-06-18T12:30:13.000Z
2020-10-12T21:25:54.000Z
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
239
2016-02-18T14:44:08.000Z
2022-03-11T14:38:56.000Z
ddsc/config.py
Duke-GCB/DukeDSClient
7f119a5ee2e674e8deaff1f080caed1953c5cc61
[ "MIT" ]
10
2016-02-22T15:01:28.000Z
2022-02-21T22:46:26.000Z
""" Global configuration for the utility based on config files and environment variables.""" import os import re import math import yaml import multiprocessing from ddsc.core.util import verify_file_private from ddsc.exceptions import DDSUserException try: from urllib.parse import urlparse except ImportError: ...
39.145749
114
0.664288
7,476
0.773193
0
0
4,424
0.457545
0
0
4,614
0.477195
2c01d7b503296aad5ad328001d1b93bd84cc4e39
12,781
py
Python
keras_wraper_ensemble.py
asultan123/ADP
12a0875d84a6d1b660a4657e0276e7a0511487fd
[ "Apache-2.0" ]
null
null
null
keras_wraper_ensemble.py
asultan123/ADP
12a0875d84a6d1b660a4657e0276e7a0511487fd
[ "Apache-2.0" ]
null
null
null
keras_wraper_ensemble.py
asultan123/ADP
12a0875d84a6d1b660a4657e0276e7a0511487fd
[ "Apache-2.0" ]
null
null
null
""" Model construction utilities based on keras """ import warnings from distutils.version import LooseVersion import tensorflow.keras from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Activation, Flatten # from cleverhans.model import Model, NoSuchLayerError import tensorflow a...
35.30663
86
0.617323
12,423
0.97199
0
0
0
0
0
0
6,525
0.510523
2c0300ca0658c1688971286bba3169afb2699074
1,911
py
Python
controllers/task_handler.py
MuhammadWaleedUsman/PythonTornadoDockerTraefikMySql
29d7a72c30a96f4eaf9174fdf29fd06fb48e7974
[ "Apache-2.0" ]
null
null
null
controllers/task_handler.py
MuhammadWaleedUsman/PythonTornadoDockerTraefikMySql
29d7a72c30a96f4eaf9174fdf29fd06fb48e7974
[ "Apache-2.0" ]
null
null
null
controllers/task_handler.py
MuhammadWaleedUsman/PythonTornadoDockerTraefikMySql
29d7a72c30a96f4eaf9174fdf29fd06fb48e7974
[ "Apache-2.0" ]
null
null
null
from .db_handler import cursor from tornado import concurrent import tornado.web executor = concurrent.futures.ThreadPoolExecutor(8) def start_task(arg): print("The Task has started") # Async task return True def stop_task(arg): print("The Task has stopped") # Async task return True class Handler...
29.4
80
0.55259
1,600
0.837258
0
0
0
0
0
0
264
0.138148
2c0432e1308cc8fe3207fb79660271c04e458a71
666
py
Python
Python/WordBreak.py
Jspsun/LEETCodePractice
9dba8c0441201a188b93e4d39a0a9b7602857a5f
[ "MIT" ]
3
2017-10-14T19:49:28.000Z
2019-01-12T21:51:11.000Z
Python/WordBreak.py
Jspsun/LEETCodePractice
9dba8c0441201a188b93e4d39a0a9b7602857a5f
[ "MIT" ]
null
null
null
Python/WordBreak.py
Jspsun/LEETCodePractice
9dba8c0441201a188b93e4d39a0a9b7602857a5f
[ "MIT" ]
5
2017-02-06T19:10:23.000Z
2020-12-19T01:58:10.000Z
class Solution(object): def wordBreak(self, s, wordDict): """ :type s: str :type wordDict: List[str] :rtype: bool """ dp = [False for i in xrange(len(s)+1)] dp[0] = True for i in range(1, len(s)+1): for w in wordDict: if le...
31.714286
66
0.478979
476
0.714715
0
0
0
0
0
0
158
0.237237
2c0648d5d20facaf4eda0597999791fd836d5caa
9,523
py
Python
apps/mixins/db_admin/datatables_client.py
Eudorajab1/websaw
7c3a369789d23ac699868fa1eff6c63e3e5c1e36
[ "MIT" ]
1
2022-03-29T00:12:12.000Z
2022-03-29T00:12:12.000Z
apps/mixins/db_admin/datatables_client.py
Eudorajab1/websaw
7c3a369789d23ac699868fa1eff6c63e3e5c1e36
[ "MIT" ]
null
null
null
apps/mixins/db_admin/datatables_client.py
Eudorajab1/websaw
7c3a369789d23ac699868fa1eff6c63e3e5c1e36
[ "MIT" ]
null
null
null
from websaw.core import Fixture from yatl.helpers import INPUT, H1, A, DIV, SPAN, XML from .datatables_utils import DtGui mygui=DtGui() from pprint import pprint import json # ################################################################ # Grid object (replaced SQLFORM.grid) using Datatables # #####################...
34.132616
165
0.491967
9,157
0.961567
0
0
0
0
0
0
4,177
0.438622
2c09a4a2e41ca60c7d6287eab58dfe9fe3c0167c
680
py
Python
gatewayconfig/bluetooth/descriptors/utf8_format_descriptor.py
AndriiIevdoshenko/hm-config
f513d72dd8c67c040310d78071d8ac2de418d0d6
[ "MIT" ]
7
2021-07-09T16:54:39.000Z
2022-02-18T09:07:54.000Z
gatewayconfig/bluetooth/descriptors/utf8_format_descriptor.py
AndriiIevdoshenko/hm-config
f513d72dd8c67c040310d78071d8ac2de418d0d6
[ "MIT" ]
137
2021-02-05T21:53:35.000Z
2022-03-31T23:31:54.000Z
gatewayconfig/bluetooth/descriptors/utf8_format_descriptor.py
AndriiIevdoshenko/hm-config
f513d72dd8c67c040310d78071d8ac2de418d0d6
[ "MIT" ]
16
2021-02-15T11:25:37.000Z
2022-01-17T07:53:38.000Z
import dbus from lib.cputemp.service import Descriptor import gatewayconfig.constants as constants class UTF8FormatDescriptor(Descriptor): def __init__(self, characteristic): Descriptor.__init__( self, constants.PRESENTATION_FORMAT_DESCRIPTOR_UUID, ["read"], ...
27.2
68
0.638235
578
0.85
0
0
0
0
0
0
6
0.008824
2c0a5da432ba3d41420010568b4150514d1d9b8a
4,340
py
Python
gurobiSolver.py
kursatbakis/cmpe492project
bb882ac3febada05824e407e7d573a08b4232ee8
[ "MIT" ]
null
null
null
gurobiSolver.py
kursatbakis/cmpe492project
bb882ac3febada05824e407e7d573a08b4232ee8
[ "MIT" ]
null
null
null
gurobiSolver.py
kursatbakis/cmpe492project
bb882ac3febada05824e407e7d573a08b4232ee8
[ "MIT" ]
null
null
null
import gurobipy as gp from gurobipy import GRB from scheduler.utils import * import csv W = {} days = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"] departments = ["CMPE"] def create_W_matrix(): global W allAvailableSlots = get_all_available_slots() for availableSlot in allAvailabl...
42.135922
285
0.609677
0
0
0
0
0
0
0
0
467
0.107604
2c0c6d4c1880f94e8964a089e665e4a8c770f8e9
616
py
Python
app/app/models/task.py
gooocho/fastapi_todo
b88177e651f1c6984a636262a4d686935b67ed6f
[ "MIT" ]
null
null
null
app/app/models/task.py
gooocho/fastapi_todo
b88177e651f1c6984a636262a4d686935b67ed6f
[ "MIT" ]
null
null
null
app/app/models/task.py
gooocho/fastapi_todo
b88177e651f1c6984a636262a4d686935b67ed6f
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String from sqlalchemy.orm import relationship from app.db.settings import Base from app.models.assignment import ModelAssignment class ModelTask(Base): __tablename__ = "tasks" id = Column(Integer, primary_key=True, index=True) title = Column(String, index=True) ...
26.782609
54
0.709416
442
0.717532
0
0
0
0
0
0
39
0.063312
2c0cc4e362937d93adf7ebfce043afa65bc46a05
1,777
py
Python
ico_gateway/views.py
dacom-dark-sun/dacom-api
7efd77bf75cd28771b4a466ff36310d12b634f30
[ "MIT" ]
null
null
null
ico_gateway/views.py
dacom-dark-sun/dacom-api
7efd77bf75cd28771b4a466ff36310d12b634f30
[ "MIT" ]
null
null
null
ico_gateway/views.py
dacom-dark-sun/dacom-api
7efd77bf75cd28771b4a466ff36310d12b634f30
[ "MIT" ]
null
null
null
from rest_framework import viewsets, status from rest_framework.response import Response from account.models import Account from wallet.coin_base import coin_base from wallet.models import Wallet from ico_gateway.models import IcoWallet, IcoProject from ico_gateway.serializers import ( IcoProjectSerializer, Ic...
33.528302
76
0.694992
1,494
0.798503
0
0
0
0
0
0
291
0.155532
2c1009ce318ebb350e16fb6f622adf0a9ca64b2c
2,733
py
Python
motion/reference_model/los_reference_model/scripts/los_reference_model_node.py
vortexntnu/Manta-AUV
7966b871c56b0ea9f95bb61a48609a81f4a276d8
[ "MIT" ]
25
2020-09-20T16:25:05.000Z
2022-03-05T09:06:36.000Z
motion/reference_model/los_reference_model/scripts/los_reference_model_node.py
vortexntnu/Manta-AUV
7966b871c56b0ea9f95bb61a48609a81f4a276d8
[ "MIT" ]
187
2020-09-20T16:02:01.000Z
2022-03-26T00:14:32.000Z
motion/reference_model/los_reference_model/scripts/los_reference_model_node.py
vortexntnu/Manta-AUV
7966b871c56b0ea9f95bb61a48609a81f4a276d8
[ "MIT" ]
15
2020-09-24T20:23:51.000Z
2022-03-05T09:14:00.000Z
#!/usr/bin/env python import rospy import numpy as np import math from discrete_tustin import ReferenceModel from vortex_msgs.msg import GuidanceData class LOSReferenceModelNode(): """ This is the ROS wrapper class for the reference model class. Nodes created: los_reference_model Subscribes to: /guidan...
24.621622
120
0.712404
2,443
0.893889
0
0
0
0
0
0
1,091
0.399195
2c1069139cd713638cf5bbb933fb4bfc312c6f46
2,225
py
Python
e_fun_calls.py
panamantis/gretnet_api
7b30e3ca07992c52478de90cca94e18c1a1fa9f3
[ "MIT" ]
null
null
null
e_fun_calls.py
panamantis/gretnet_api
7b30e3ca07992c52478de90cca94e18c1a1fa9f3
[ "MIT" ]
null
null
null
e_fun_calls.py
panamantis/gretnet_api
7b30e3ca07992c52478de90cca94e18c1a1fa9f3
[ "MIT" ]
null
null
null
import sys,os import time import datetime import random import re import json import requests from flask import Flask, jsonify from flasgger import Swagger # pip install flasgger from flasgger import swag_from from flask import request from api_helper import GretNet_API_Helper LOCAL_PATH = os.path.abspath(os....
11.410256
60
0.412135
0
0
0
0
0
0
0
0
746
0.335281
2c1092a7d5dfc15f1ac47f20c842e794dad8aa14
13,051
py
Python
src/ion.py
lksrmp/paw_structure
560a0a601a90114fd80f98096aa1f0e012121c69
[ "Apache-2.0" ]
null
null
null
src/ion.py
lksrmp/paw_structure
560a0a601a90114fd80f98096aa1f0e012121c69
[ "Apache-2.0" ]
2
2022-03-22T15:27:17.000Z
2022-03-30T14:16:26.000Z
src/ion.py
lksrmp/paw_structure
560a0a601a90114fd80f98096aa1f0e012121c69
[ "Apache-2.0" ]
null
null
null
""" paw_structure.ion ----------------- Ion complex detection using geometric :ref:`algorithm<Control_ION_algorithm>`. Main routine is :func:`.ion_find_parallel`. Dependencies: :py:mod:`functools` :py:mod:`miniutils` :py:mod:`numpy` :py:mod:`pandas` :mod:`.neighbor` :mod:`.utility` :class:...
46.610714
120
0.539192
0
0
0
0
0
0
0
0
9,751
0.747146
2c1242ea99a96b6aa8170526e30cefef163adf0c
720
py
Python
facilities/migrations/0002_auto_20160406_1835.py
uonafya/mfl_api
379310b9b56cde084620f1f2dbfe4c6d7c1de47b
[ "MIT" ]
null
null
null
facilities/migrations/0002_auto_20160406_1835.py
uonafya/mfl_api
379310b9b56cde084620f1f2dbfe4c6d7c1de47b
[ "MIT" ]
null
null
null
facilities/migrations/0002_auto_20160406_1835.py
uonafya/mfl_api
379310b9b56cde084620f1f2dbfe4c6d7c1de47b
[ "MIT" ]
4
2018-07-26T05:53:06.000Z
2021-07-17T14:30:09.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('facilities', '0001_auto_20160328_1426'), ] operations = [ migrations.AddField( model_name='facilityunit', ...
28.8
164
0.633333
611
0.848611
0
0
0
0
0
0
196
0.272222
2c146b5c3b1a1974b34c4daff216ed3881890272
4,547
py
Python
pysparkle/frontend/qt.py
macdems/pysparkle
7d6018e5f2010d6a79fe71bc972bd29c61a113bc
[ "MIT" ]
1
2015-12-19T19:25:15.000Z
2015-12-19T19:25:15.000Z
pysparkle/frontend/qt.py
macdems/pysparkle
7d6018e5f2010d6a79fe71bc972bd29c61a113bc
[ "MIT" ]
null
null
null
pysparkle/frontend/qt.py
macdems/pysparkle
7d6018e5f2010d6a79fe71bc972bd29c61a113bc
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2016 Maciej Dems <maciej.dems@p.lodz.pl> # See LICENSE file for copyright information. import sys if 'PySide6' in sys.modules: from PySide6.QtWidgets import QMessageBox, QLabel, QTextEdit _exec_attr = 'exec' elif 'PyQt6' in sys.modules: from PyQt6.QtWidgets import QMessageBox, QLabel, ...
45.47
107
0.710798
0
0
0
0
0
0
0
0
947
0.208269
2c14a991d87c2cf60960166a41fc56bf0090a775
11,475
py
Python
python/3D-rrt/pvtrace/Visualise.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
1
2020-12-27T21:37:35.000Z
2020-12-27T21:37:35.000Z
python/3D-rrt/pvtrace/Visualise.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
null
null
null
python/3D-rrt/pvtrace/Visualise.py
rapattack88/mcclanahoochie
6df72553ba954b52e949a6847a213b22f9e90157
[ "Apache-2.0" ]
null
null
null
# pvtrace is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # pvtrace is distributed in the hope that it will be useful, # but WITHOUT...
38.506711
218
0.573943
9,494
0.827364
0
0
0
0
0
0
2,711
0.236253
2c15d80e491037ea14b873717a75a66167a22e80
621
py
Python
dropme/error.py
tivaliy/dropme
3d760e1da8182cdf62ab2a6f357dea923fca3cd7
[ "Apache-2.0" ]
null
null
null
dropme/error.py
tivaliy/dropme
3d760e1da8182cdf62ab2a6f357dea923fca3cd7
[ "Apache-2.0" ]
null
null
null
dropme/error.py
tivaliy/dropme
3d760e1da8182cdf62ab2a6f357dea923fca3cd7
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Vitalii Kulanov # class ClientException(Exception): """Base Exception for Dropme client All child classes must be instantiated before raising. """ pass class ConfigNotFoundException(ClientException): """ Should be raised if configuration for dropme client is not specif...
19.40625
74
0.702093
569
0.916264
0
0
0
0
0
0
396
0.637681
2c181e2dad47cea140e8dd9cb71766cc7851ab04
83
py
Python
sage/apps.py
one-two-four-cee-four-one-plus/sage-project
2192ef60d8d3330586147a8ca93f899ef346ed42
[ "WTFPL" ]
null
null
null
sage/apps.py
one-two-four-cee-four-one-plus/sage-project
2192ef60d8d3330586147a8ca93f899ef346ed42
[ "WTFPL" ]
null
null
null
sage/apps.py
one-two-four-cee-four-one-plus/sage-project
2192ef60d8d3330586147a8ca93f899ef346ed42
[ "WTFPL" ]
null
null
null
from django.apps import AppConfig class SageConfig(AppConfig): name = 'sage'
13.833333
33
0.73494
46
0.554217
0
0
0
0
0
0
6
0.072289
2c18b6e9e45bd540c1325793507b1f1e6ae3f589
11,058
py
Python
plotting.py
derEitel/explainableMS
f1ba37d5579b3e4b1a4ec8bf38f7385bb71e00a3
[ "BSD-3-Clause" ]
7
2019-04-21T03:02:31.000Z
2021-06-10T21:15:03.000Z
plotting.py
derEitel/explainableMS
f1ba37d5579b3e4b1a4ec8bf38f7385bb71e00a3
[ "BSD-3-Clause" ]
3
2021-03-07T07:01:32.000Z
2022-02-08T17:15:46.000Z
plotting.py
derEitel/explainableMS
f1ba37d5579b3e4b1a4ec8bf38f7385bb71e00a3
[ "BSD-3-Clause" ]
4
2019-04-22T07:15:26.000Z
2021-06-16T05:14:18.000Z
import numpy as np import matplotlib.pyplot as plt import pandas as pd from matplotlib.colors import LinearSegmentedColormap ms_color = [0.12156863, 0.46666667, 0.70588235, 1] hc_color = [1., 0.49803922, 0.05490196, 1] SMALL_SIZE = 12 MEDIUM_SIZE = 14 BIGGER_SIZE = 16 plt.rc('font', size=SMALL_SIZE) # contr...
32.813056
101
0.60038
0
0
0
0
0
0
0
0
4,075
0.368511
2c1972ea227e28510c531045816167ae977f461e
1,670
py
Python
setup.py
lucuma/Shake
b54082c9d217059ef02317aa043c3690d2e601d7
[ "MIT" ]
4
2015-02-15T17:35:12.000Z
2016-07-21T06:35:12.000Z
setup.py
lucuma/Shake
b54082c9d217059ef02317aa043c3690d2e601d7
[ "MIT" ]
null
null
null
setup.py
lucuma/Shake
b54082c9d217059ef02317aa043c3690d2e601d7
[ "MIT" ]
null
null
null
# coding=utf-8 import io import os import re from setuptools import setup, find_packages def get_path(*args): return os.path.join(os.path.dirname(__file__), *args) def read_from(filepath): with io.open(filepath, 'rt', encoding='utf8') as f: return f.read() def get_requirements(filename='requiremen...
30.925926
102
0.64491
0
0
0
0
0
0
0
0
687
0.411377
2c19b4968a0e3a6289484e46f79c0a118894e2f2
3,110
py
Python
meetup2xibo/updater/phrase_mapper.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
3
2019-11-29T04:32:49.000Z
2020-06-03T01:34:45.000Z
meetup2xibo/updater/phrase_mapper.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
194
2020-06-01T01:42:41.000Z
2021-08-02T10:25:58.000Z
meetup2xibo/updater/phrase_mapper.py
jshprentz/meetup2xibo
236bef01305878943f27d246dac1b21cc78a521b
[ "MIT" ]
1
2019-07-31T14:59:05.000Z
2019-07-31T14:59:05.000Z
"""Map phrases to preferred phrases.""" import logging from collections import namedtuple PhraseMapping = namedtuple("PhraseMapping", "preferred_phrase phrase_length") SortableMatch = namedtuple( "SortableMatch", "start descending_phrase_length end preferred_phrase") class PhraseMapper: """Rew...
33.44086
78
0.662058
1,401
0.450482
302
0.097106
0
0
0
0
911
0.292926
2c19cbf8d9bb1b9d43bac56824e10f5d3f24bc92
3,092
py
Python
hw1/deco.py
Tymeade/otus-python
b5ba2ab4f9c91abc97e6417a5600e4de1bcdb95c
[ "MIT" ]
null
null
null
hw1/deco.py
Tymeade/otus-python
b5ba2ab4f9c91abc97e6417a5600e4de1bcdb95c
[ "MIT" ]
null
null
null
hw1/deco.py
Tymeade/otus-python
b5ba2ab4f9c91abc97e6417a5600e4de1bcdb95c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from functools import update_wrapper, wraps def disable(func): """ Disable a decorator by re-assigning the decorator's name to this function. For example, to turn off memoization: >>> memo = disable """ return func def decorator(decorator_func...
20.342105
110
0.554334
0
0
0
0
1,270
0.410737
0
0
1,094
0.353816
2c1a614bb487efce19fb64d000b2277fd8703c04
13,670
py
Python
chunair/kicad-footprint-generator-master/scripts/Connector/Connector_Molex/conn_molex_mini-fit-sr_tht_top_dual.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
2
2022-03-18T23:42:51.000Z
2022-03-19T15:31:34.000Z
chunair/kicad-footprint-generator-master/scripts/Connector/Connector_Molex/conn_molex_mini-fit-sr_tht_top_dual.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
chunair/kicad-footprint-generator-master/scripts/Connector/Connector_Molex/conn_molex_mini-fit-sr_tht_top_dual.py
speedypotato/chuni-lite
c8dda8428723f8c4f99075e7cbaa22a44cbc187d
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 ''' kicad-footprint-generator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. kicad-footprint-generator is distribut...
38.615819
199
0.640234
0
0
0
0
0
0
0
0
4,006
0.29305
2c1a887bbd2d5ae6437d92ebd5ad09e7ede709e9
1,048
py
Python
AprendeAyudando/forum/migrations/0001_initial.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
1
2021-09-09T09:54:04.000Z
2021-09-09T09:54:04.000Z
AprendeAyudando/forum/migrations/0001_initial.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
null
null
null
AprendeAyudando/forum/migrations/0001_initial.py
memoriasIT/AprendeAyudando
0a32f59d3606075abb99a74ce1983a6171aa34cd
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-28 23:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
33.806452
179
0.622137
889
0.848282
0
0
0
0
0
0
174
0.166031
2c1b704a0373251585df63bff52ef28aefddc95f
1,158
py
Python
utils/utils.py
dtiarks/pg_agents
321651a9d03c3836541c54bac4861bb576086e42
[ "MIT" ]
4
2018-05-23T05:46:10.000Z
2020-05-13T23:20:15.000Z
utils/utils.py
dtiarks/pg_agents
321651a9d03c3836541c54bac4861bb576086e42
[ "MIT" ]
1
2018-03-12T01:13:44.000Z
2018-03-12T01:13:44.000Z
utils/utils.py
dtiarks/pg_agents
321651a9d03c3836541c54bac4861bb576086e42
[ "MIT" ]
null
null
null
import numpy as np def flatten_array_list(a_list): return np.concatenate([l.ravel() for l in a_list]) def unflatten_array_list(array, shapes): c = 0 l = [] for s in shapes: tmp = np.array(array[c:c + np.prod(s)]) reshaped = np.reshape(tmp, s) c += np.prod(s) l.append...
17.283582
54
0.547496
0
0
0
0
0
0
0
0
337
0.291019
2c1c0560ca30de9f1d31898b330aaa3130eb4feb
804
py
Python
clay/markdown_ext/jinja.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
clay/markdown_ext/jinja.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
clay/markdown_ext/jinja.py
TuxCoder/Clay
04f15b4d742b14d09df9049dd91cfa4386cba66e
[ "MIT" ]
null
null
null
# coding=utf-8 import os import jinja2 import jinja2.ext from .render import md_to_jinja MARKDOWN_EXTENSION = '.md' class MarkdownExtension(jinja2.ext.Extension): def preprocess(self, source, name, filename=None): if name is None or os.path.splitext(name)[1] != MARKDOWN_EXTENSION: return ...
27.724138
84
0.689055
681
0.847015
0
0
0
0
0
0
44
0.054726
2c1c31e1395ffc1971b2b93851e2582898ff12e7
1,553
py
Python
FWCore/Modules/test/emptysource_firstLuminosityBlockForEachRun_cfg.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
1
2019-03-09T19:47:49.000Z
2019-03-09T19:47:49.000Z
FWCore/Modules/test/emptysource_firstLuminosityBlockForEachRun_cfg.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
null
null
null
FWCore/Modules/test/emptysource_firstLuminosityBlockForEachRun_cfg.py
trackerpro/cmssw
3e05774a180a5f4cdc70b713bd711c23f9364765
[ "Apache-2.0" ]
1
2019-03-19T13:44:54.000Z
2019-03-19T13:44:54.000Z
# Configuration file for EmptySource import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(8*5) ) runToLumi = ((2,1),(10,3),(20,7) ) def findRunForLumi( lumi) : l...
29.301887
122
0.728912
0
0
0
0
0
0
0
0
136
0.087572
2c1ca54b5401d6fe3df69b6981ac878708992788
3,666
py
Python
fewshot/models/refine_model.py
ashok-arjun/few-shot-ssl-public
f7577d80b7491e0f27234a2e9c0113782365c2e1
[ "MIT" ]
497
2018-03-02T00:50:53.000Z
2022-03-22T06:30:59.000Z
fewshot/models/refine_model.py
eleniTriantafillou/few-shot-ssl-public
3cf522031aa40b4ffb61e4693d0b48fdd5669276
[ "MIT" ]
20
2018-03-19T06:15:30.000Z
2021-11-20T07:21:38.000Z
fewshot/models/refine_model.py
eleniTriantafillou/few-shot-ssl-public
3cf522031aa40b4ffb61e4693d0b48fdd5669276
[ "MIT" ]
108
2018-03-02T06:56:13.000Z
2021-12-23T03:40:43.000Z
# Copyright (c) 2018 Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, # Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, Richars S. Zemel. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in th...
37.030303
80
0.707038
1,293
0.3527
0
0
118
0.032188
0
0
2,157
0.58838