hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
e5ae9ba55496f9a8c174dd1ac0caa3926485c92a
2,277
py
Python
RFEM/TypesForMembers/memberResultIntermediatePoints.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
16
2021-10-13T21:00:11.000Z
2022-03-21T11:12:09.000Z
RFEM/TypesForMembers/memberResultIntermediatePoints.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
49
2021-10-19T13:18:51.000Z
2022-03-30T08:20:17.000Z
RFEM/TypesForMembers/memberResultIntermediatePoints.py
Dlubal-Software/RFEM_Python_Client
9e29c598dadf380d49677c463931f0be659ccc40
[ "MIT" ]
7
2021-10-13T06:06:24.000Z
2022-03-29T17:48:39.000Z
from RFEM.initModel import ConvertToDlString, Model, clearAtributes
36.725806
119
0.615283
e5aecff027dc26da16498680b52ebce4340235d7
12,433
py
Python
migrations/versions/bdeeeacbec4d_initial_schema.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
1
2020-11-30T17:41:36.000Z
2020-11-30T17:41:36.000Z
migrations/versions/bdeeeacbec4d_initial_schema.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
34
2020-04-18T19:31:27.000Z
2021-03-19T13:56:56.000Z
migrations/versions/bdeeeacbec4d_initial_schema.py
Innopoints/backend
723565ba3f63914a7dab03346696d89e28060d64
[ "MIT" ]
null
null
null
"""Initial schema Revision ID: bdeeeacbec4d Revises: Create Date: 2020-04-11 11:20:18.814141 """ import json from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'bdeeeacbec4d' down_revision = None branch_labels = None depends_...
50.54065
332
0.696292
e5b00d7e128695512faf3dee89d09b98e4ae7a89
636
py
Python
build/lib/DateTimeTools/DayNotoDate.py
pshustov/DateTimeTools
e542fd3f0e3c5290faad09b7cf8a2751132d4dd3
[ "MIT" ]
null
null
null
build/lib/DateTimeTools/DayNotoDate.py
pshustov/DateTimeTools
e542fd3f0e3c5290faad09b7cf8a2751132d4dd3
[ "MIT" ]
null
null
null
build/lib/DateTimeTools/DayNotoDate.py
pshustov/DateTimeTools
e542fd3f0e3c5290faad09b7cf8a2751132d4dd3
[ "MIT" ]
null
null
null
import numpy as np from ._CFunctions import _CDayNotoDate from ._CTConv import _CTConv def DayNotoDate(Year,Doy): ''' Converts year and day numbers to a date of the format yyyymmdd. Inputs ====== Year : int32 Array or scalar of years Doy : int32 Array or scalar of day numbers Returns ======= Date : i...
19.272727
64
0.698113
e5b241b8fb352b546133a594008c04d79660503c
4,996
py
Python
BigDataArchitecture/application_pod/application.py
Brebeck-Jan/AlphaBigDataTech
df7b63056e7067e366e72193ec8260dbc59b53bb
[ "MIT" ]
null
null
null
BigDataArchitecture/application_pod/application.py
Brebeck-Jan/AlphaBigDataTech
df7b63056e7067e366e72193ec8260dbc59b53bb
[ "MIT" ]
null
null
null
BigDataArchitecture/application_pod/application.py
Brebeck-Jan/AlphaBigDataTech
df7b63056e7067e366e72193ec8260dbc59b53bb
[ "MIT" ]
null
null
null
########################################################################################## ########################################################################################## # BigData - Application # #################################################################...
37.007407
90
0.45036
e5b26b56fc6da7a7d52f30abc550181b0a2029e2
112
py
Python
src/nwb_datajoint/data_import/__init__.py
jihyunbak/spyglass
780fe2c101db60d42a1b73ad8fd729db42620ba6
[ "MIT" ]
14
2020-02-04T20:05:02.000Z
2022-03-13T18:13:20.000Z
src/nwb_datajoint/data_import/__init__.py
jihyunbak/spyglass
780fe2c101db60d42a1b73ad8fd729db42620ba6
[ "MIT" ]
118
2020-06-15T16:40:48.000Z
2022-03-21T17:25:47.000Z
src/nwb_datajoint/data_import/__init__.py
jihyunbak/spyglass
780fe2c101db60d42a1b73ad8fd729db42620ba6
[ "MIT" ]
16
2020-02-04T19:04:07.000Z
2022-03-18T21:15:32.000Z
from .insert_sessions import insert_sessions from .storage_dirs import base_dir, check_env, kachery_storage_dir
37.333333
66
0.875
e5b81ac7187e3d891702be4006393c6f2fc6c15a
327
py
Python
apps/experiments/models.py
mikicz/bulk-update-tests
85bca2ea05513c42d8f12e3439c27853bbed8c44
[ "MIT" ]
1
2020-02-23T18:16:48.000Z
2020-02-23T18:16:48.000Z
apps/experiments/models.py
mikicz/bulk-update-tests
85bca2ea05513c42d8f12e3439c27853bbed8c44
[ "MIT" ]
null
null
null
apps/experiments/models.py
mikicz/bulk-update-tests
85bca2ea05513c42d8f12e3439c27853bbed8c44
[ "MIT" ]
1
2020-01-23T14:21:44.000Z
2020-01-23T14:21:44.000Z
from django.db import models
21.8
50
0.700306
e5b95944808ec9a85548a9ce892ca8f3e8424bc3
751
py
Python
spammer.py
Potatosil/Pyhton-Discord-Spam-Bot
7d3f12ae4e9c9933754be484ec2755c22ca079d1
[ "CC0-1.0" ]
2
2021-11-27T15:54:27.000Z
2022-01-14T11:21:51.000Z
spammer.py
Potatosil/Python-Discord-Spam-Bot
7d3f12ae4e9c9933754be484ec2755c22ca079d1
[ "CC0-1.0" ]
null
null
null
spammer.py
Potatosil/Python-Discord-Spam-Bot
7d3f12ae4e9c9933754be484ec2755c22ca079d1
[ "CC0-1.0" ]
null
null
null
import pyautogui, time from time import sleep spamnum = int(input(f"Input Number: ")) spamtext = input(f"What is the Message u want to send?: ") time = 0 while time != 10: time += 1 sleep(1) print("spammer waitinig.." + str(time)) spam(spamtext, spamnum) sleep(2) pyautogui.write("done") pyaut...
25.033333
228
0.6498
e5bc642c6a81db7a4fc50c2b2445c823d9de303f
12,795
py
Python
alterations.py
AlexysAlves/Simulacao_de_trafego
8193b8a47d284c1b84f2903d286d222f3984bbf1
[ "MIT" ]
null
null
null
alterations.py
AlexysAlves/Simulacao_de_trafego
8193b8a47d284c1b84f2903d286d222f3984bbf1
[ "MIT" ]
null
null
null
alterations.py
AlexysAlves/Simulacao_de_trafego
8193b8a47d284c1b84f2903d286d222f3984bbf1
[ "MIT" ]
null
null
null
import random import time import threading import pygame import sys # Default values of signal timers defaultGreen = {0: 10, 1: 10, 2: 10, 3: 10} defaultRed = 150 defaultYellow = 5 signals = [] noOfSignals = 4 currentGreen = 0 # Indicates which signal is green currently nextGreen = (currentGreen + 1) % noOfSignals ...
41.407767
220
0.590074
e5bc9bb9de777c853bd717ee97128cd3e2825f2c
6,327
py
Python
pylbm/mpi_topology.py
Mopolino8/pylbm
b457ccdf1e7a1009807bd1136a276886f81a9e7d
[ "BSD-3-Clause" ]
106
2016-09-13T07:19:17.000Z
2022-03-19T13:41:55.000Z
pylbm/mpi_topology.py
Mopolino8/pylbm
b457ccdf1e7a1009807bd1136a276886f81a9e7d
[ "BSD-3-Clause" ]
53
2017-09-18T04:51:19.000Z
2022-01-19T21:36:23.000Z
pylbm/mpi_topology.py
gouarin/pylbm
fd4419933e05b85be364232fddedfcb4f7275e1f
[ "BSD-3-Clause" ]
33
2016-06-17T13:21:17.000Z
2021-11-11T16:57:46.000Z
# Authors: # Loic Gouarin <loic.gouarin@polytechnique.edu> # Benjamin Graille <benjamin.graille@math.u-psud.fr> # # License: BSD 3 clause """ Module which implements a Cartesian MPI topology """ import numpy as np import mpi4py.MPI as mpi from .options import options def get_directions(dim): """ Ret...
26.472803
89
0.5633
e5bd1c8d864738a7eee90d8736eddcad096e5f3d
10,060
py
Python
exact.py
jesgadiaz/ckc
717e7289fff530ea5be4d6db94dc2936e355ed8c
[ "Apache-2.0" ]
1
2020-02-20T10:01:03.000Z
2020-02-20T10:01:03.000Z
exact.py
jesgadiaz/ckc
717e7289fff530ea5be4d6db94dc2936e355ed8c
[ "Apache-2.0" ]
null
null
null
exact.py
jesgadiaz/ckc
717e7289fff530ea5be4d6db94dc2936e355ed8c
[ "Apache-2.0" ]
1
2019-12-05T05:30:50.000Z
2019-12-05T05:30:50.000Z
from gurobipy import * import math import numpy as np import heapq if __name__ == "__main__": global total_runtime, k, runtime, num_centers, L, n if len(sys.argv) != 6: print ("Wrong number of arguments") print ("exact input_file_path n k L instance_format...
37.677903
193
0.41004
e5bd703be1b27cb762cec30b232a4d069f3d4c16
204
py
Python
PySrc/4day/Mod00.py
Timmy-Oh/Adorable-Lab
c21454d011e6888fd28c41d1624721ea1826be40
[ "Apache-2.0" ]
null
null
null
PySrc/4day/Mod00.py
Timmy-Oh/Adorable-Lab
c21454d011e6888fd28c41d1624721ea1826be40
[ "Apache-2.0" ]
null
null
null
PySrc/4day/Mod00.py
Timmy-Oh/Adorable-Lab
c21454d011e6888fd28c41d1624721ea1826be40
[ "Apache-2.0" ]
null
null
null
# Mod00.py print('name: {}'.format(__name__)) import Calc00 import Calc00 as c from Calc00 import * x= 20; y= 10; Calc00.Sum(x, y) c.Sub(x,y) Mul(x,y) import sys for path in sys.path: print(path)
12
34
0.661765
e5bd9846792ca0380e9358b95728eb11553310f8
1,887
py
Python
bot.py
liamkirsh/FBChatBot
59eafee2c78f2d6a93c38a74fecf1a4d311a00e9
[ "MIT" ]
3
2017-07-23T20:10:19.000Z
2020-09-23T21:21:47.000Z
bot.py
liamkirsh/FBChatBot
59eafee2c78f2d6a93c38a74fecf1a4d311a00e9
[ "MIT" ]
1
2018-03-06T05:34:07.000Z
2018-03-07T19:51:18.000Z
bot.py
liamkirsh/FBChatBot
59eafee2c78f2d6a93c38a74fecf1a4d311a00e9
[ "MIT" ]
null
null
null
from collections import namedtuple from fbchat import Client from fbchat.models import ThreadType
38.510204
88
0.598304
e5bdc2fd22c992b2cd181d55011e5aa6b716ab9f
80
py
Python
devices/windows_wsl.py
premandfriends/boardfarm-1
3c952c94507fff25ba9955cad993610ea4a95e2e
[ "BSD-3-Clause-Clear" ]
null
null
null
devices/windows_wsl.py
premandfriends/boardfarm-1
3c952c94507fff25ba9955cad993610ea4a95e2e
[ "BSD-3-Clause-Clear" ]
1
2019-02-03T17:06:21.000Z
2019-02-03T17:06:21.000Z
devices/windows_wsl.py
mgualco-contractor/boardfarm
6a033e5dc84c7368fdd8ec2738b08b35ca7b07e7
[ "BSD-3-Clause-Clear" ]
1
2020-03-05T01:58:34.000Z
2020-03-05T01:58:34.000Z
import debian
13.333333
35
0.725
e5bfc9b67168b7368cc1fe061546a71eda82eb03
242
py
Python
zeroshot_topics/utils.py
charyeezy/zeroshot_topics
c77b12fcd82b87703eb6e92d6eac6d741c4de59f
[ "Apache-2.0", "MIT" ]
49
2021-11-21T08:33:05.000Z
2022-03-11T22:47:00.000Z
zeroshot_topics/utils.py
charyeezy/zeroshot_topics
c77b12fcd82b87703eb6e92d6eac6d741c4de59f
[ "Apache-2.0", "MIT" ]
4
2021-11-22T13:54:44.000Z
2022-01-07T19:43:08.000Z
zeroshot_topics/utils.py
charyeezy/zeroshot_topics
c77b12fcd82b87703eb6e92d6eac6d741c4de59f
[ "Apache-2.0", "MIT" ]
4
2021-11-22T18:39:45.000Z
2022-02-24T05:11:56.000Z
from functools import lru_cache from transformers import pipeline
26.888889
71
0.805785
e5c0e09f7a45cb2ecf9eba32890f4af165a441f0
273
py
Python
Draft/Decode a cipher.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
Draft/Decode a cipher.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
Draft/Decode a cipher.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
table={i:j for i,j in enumerate("abcdefghijklmnopqrstuvwxyz"+"abcdefghijklmnopqrstuvwxyz".upper())}
39
99
0.655678
e5c1039cda0312feb3e593ae896f87fa3acd4dcc
53
py
Python
src/HABApp/rule/scheduler/__init__.py
DerOetzi/HABApp
a123fbfa9928ebb3cda9a84f6984dcba593c8236
[ "Apache-2.0" ]
44
2018-12-13T08:46:44.000Z
2022-03-07T03:23:21.000Z
src/HABApp/rule/scheduler/__init__.py
DerOetzi/HABApp
a123fbfa9928ebb3cda9a84f6984dcba593c8236
[ "Apache-2.0" ]
156
2019-03-02T20:53:31.000Z
2022-03-23T13:13:58.000Z
src/HABApp/rule/scheduler/__init__.py
DerOetzi/HABApp
a123fbfa9928ebb3cda9a84f6984dcba593c8236
[ "Apache-2.0" ]
18
2019-03-08T07:13:21.000Z
2022-03-22T19:52:31.000Z
from .habappschedulerview import HABAppSchedulerView
26.5
52
0.90566
e5c143fee608434a37b93838fcca4dd45eb0545b
627
py
Python
cases/migrations/0002_auto_20200506_2202.py
testyourcodenow/core
05865b02ff7e60ffd3b30652161b3523046b9696
[ "MIT" ]
1
2020-05-10T06:40:58.000Z
2020-05-10T06:40:58.000Z
cases/migrations/0002_auto_20200506_2202.py
testyourcodenow/core
05865b02ff7e60ffd3b30652161b3523046b9696
[ "MIT" ]
25
2020-05-03T08:10:38.000Z
2021-09-22T18:59:29.000Z
cases/migrations/0002_auto_20200506_2202.py
testyourcodenow/core
05865b02ff7e60ffd3b30652161b3523046b9696
[ "MIT" ]
10
2020-05-03T08:25:56.000Z
2020-06-03T06:49:34.000Z
# Generated by Django 3.0.3 on 2020-05-06 22:02 from django.db import migrations, models
25.08
119
0.586922
e5c399ccf40bc25cefef6274b5920b5a4ae32549
7,048
py
Python
dssm/train.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
dssm/train.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
dssm/train.py
nlpming/tensorflow-DSMM
dc982cc49bf03f474da2895e4dd4fb37061c0271
[ "MIT" ]
null
null
null
#!/usr/bin/env python #encoding=utf-8 ''' @Time : 2020/10/25 22:28:30 @Author : zhiyang.zzy @Contact : zhiyangchou@gmail.com @Desc : 1. siamese network cosine 2. triplet loss ''' # here put the import lib from model.bert_classifier import BertClassifier import os import time from numpy.lib.arraypad im...
40.045455
119
0.678065
e5c7a4ae568522e409aa3f1c6efdf5afa6011ded
6,517
py
Python
train_blstm_e2e.py
ishine/E2E-langauge-diarization
0bcb3ec82bd6de6fac848c66fd5ad8fe7b284f0e
[ "MIT" ]
4
2021-12-13T10:24:23.000Z
2021-12-22T09:40:58.000Z
train_blstm_e2e.py
ishine/E2E-langauge-diarization
0bcb3ec82bd6de6fac848c66fd5ad8fe7b284f0e
[ "MIT" ]
null
null
null
train_blstm_e2e.py
ishine/E2E-langauge-diarization
0bcb3ec82bd6de6fac848c66fd5ad8fe7b284f0e
[ "MIT" ]
2
2021-04-07T02:34:17.000Z
2021-04-23T03:33:54.000Z
import os import random import argparse import torch import torch.nn as nn import numpy as np from torch.utils.data import DataLoader from tqdm import tqdm from model import * from Loss import * from data_load import * from model_evaluation import * #python train_blstm_e2e.py --savedir "/home/hexin/Desktop/models" --t...
43.446667
153
0.588154
e5c851fb9a85bd589c9d3056d5470e792ff6484e
2,551
py
Python
war3structs/objects.py
sides/war3structs
171c91240346e610e22cf10bab0c6d526996f855
[ "MIT" ]
10
2019-12-07T12:10:13.000Z
2022-02-24T12:45:32.000Z
war3structs/objects.py
warlockbrawl/war3structs
171c91240346e610e22cf10bab0c6d526996f855
[ "MIT" ]
null
null
null
war3structs/objects.py
warlockbrawl/war3structs
171c91240346e610e22cf10bab0c6d526996f855
[ "MIT" ]
3
2020-02-28T12:43:26.000Z
2020-06-08T23:31:29.000Z
from construct import * from .common import * """ Formats: w3u, w3t, w3b, w3h, w3d, w3a, w3q Version: 1 The objects file contains data that the object editor would typically manipulate. If dealing with abilities, doodads or upgrades, the ObjectsWithVariationsFile is used instead of the ObjectsFile. Option...
30.369048
86
0.73579
e5c8fc169ab19e9767386e1463980ba6e2c72681
3,078
py
Python
lexicon.py
adamlek/swedish-lexical-blends
5189bcc1680fda5ac32637dd63b895c091b56997
[ "MIT" ]
null
null
null
lexicon.py
adamlek/swedish-lexical-blends
5189bcc1680fda5ac32637dd63b895c091b56997
[ "MIT" ]
null
null
null
lexicon.py
adamlek/swedish-lexical-blends
5189bcc1680fda5ac32637dd63b895c091b56997
[ "MIT" ]
null
null
null
import pickle from collections import defaultdict from helper_functions import format_lemma, get_blends_csv from os import listdir import networkx as nx # def construct_network(saldo): # G = nx.DiGraph() # for k, (_, m, f, li) in saldo.items(): # if m not in G.nodes: # G.add_node(m) # ...
29.596154
109
0.556855
e5cc7b20cfa963b9093b9d8a0f7b606c9c72c66a
1,737
py
Python
app.py
macloo/flask-form-exercise
e487c84cfe6fb995aa1615c2c6e3c6f1cef5a537
[ "MIT" ]
null
null
null
app.py
macloo/flask-form-exercise
e487c84cfe6fb995aa1615c2c6e3c6f1cef5a537
[ "MIT" ]
null
null
null
app.py
macloo/flask-form-exercise
e487c84cfe6fb995aa1615c2c6e3c6f1cef5a537
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect, url_for from flask_bootstrap import Bootstrap from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import Required import csv app = Flask(__name__) app.config['DEBUG'] = True # Flask-WTF requires an enryption key - the...
31.017857
77
0.65688
e5cd738342d6d3e6c1d28d3273ebe5ae8755466f
8,015
py
Python
core_scripts/data_io/io_tools.py
tyanz/project-NN-Pytorch-scripts
7e90df0f90b04088613d6efb667e147a366273fb
[ "BSD-3-Clause" ]
null
null
null
core_scripts/data_io/io_tools.py
tyanz/project-NN-Pytorch-scripts
7e90df0f90b04088613d6efb667e147a366273fb
[ "BSD-3-Clause" ]
null
null
null
core_scripts/data_io/io_tools.py
tyanz/project-NN-Pytorch-scripts
7e90df0f90b04088613d6efb667e147a366273fb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ io_tools Functions to load data """ from __future__ import absolute_import import os import sys import json import numpy as np __author__ = "Xin Wang" __email__ = "wangxin@nii.ac.jp" __copyright__ = "Copyright 2020, Xin Wang" def f_read_raw_mat(filename, col, data_format='f4', end='l'): ...
29.251825
86
0.572302
e5cf36edc22c7f7e4d4a27e2cc587f5fe4069278
3,000
py
Python
envs/flatland/utils/env_generators.py
BkyuChoi/HpicFlatland
bdbba7ce451eb72dc760993b96cec4772a08983c
[ "MIT" ]
4
2021-01-15T10:49:33.000Z
2021-12-31T08:11:35.000Z
envs/flatland/utils/env_generators.py
BkyuChoi/HpicFlatland
bdbba7ce451eb72dc760993b96cec4772a08983c
[ "MIT" ]
null
null
null
envs/flatland/utils/env_generators.py
BkyuChoi/HpicFlatland
bdbba7ce451eb72dc760993b96cec4772a08983c
[ "MIT" ]
null
null
null
import logging import random from typing import NamedTuple from flatland.envs.malfunction_generators import malfunction_from_params # from flatland.envs.rail_env import RailEnv from envs.flatland.utils.gym_env_wrappers import FlatlandRenderWrapper as RailEnv from flatland.envs.rail_generators import sparse_rail_genera...
50.847458
149
0.687
e5cfab6e94dd6a1313e2d99802b5e11a6af2b20d
616
py
Python
api/permissions.py
andela-jmuli/wishlist
39650f7545606aedfe0b32f39bcc883d9b38985c
[ "MIT" ]
2
2017-10-07T09:26:46.000Z
2019-01-20T01:34:13.000Z
api/permissions.py
mrmuli/wishlist
39650f7545606aedfe0b32f39bcc883d9b38985c
[ "MIT" ]
null
null
null
api/permissions.py
mrmuli/wishlist
39650f7545606aedfe0b32f39bcc883d9b38985c
[ "MIT" ]
null
null
null
from rest_framework import permissions from models import Bucketlist
29.333333
73
0.652597
e5d01d592715818cd44140b5a297b191c7be3b94
1,438
py
Python
mvp/presets.py
danbradham/mvp
7471af9964ff789897792b23d59c597055d566f5
[ "MIT" ]
19
2016-02-26T18:43:31.000Z
2021-04-10T18:29:29.000Z
mvp/presets.py
danbradham/mvp
7471af9964ff789897792b23d59c597055d566f5
[ "MIT" ]
null
null
null
mvp/presets.py
danbradham/mvp
7471af9964ff789897792b23d59c597055d566f5
[ "MIT" ]
8
2015-12-14T15:10:09.000Z
2021-06-12T04:20:36.000Z
# -*- coding: utf-8 -*- import json import glob import os from . import config def get_preset(name): '''Get a preset by name''' for n, s in get_presets(): if name == n: return s def find_preset(name): '''Find the path to a given preset...''' for path in config.PRESETS_PATH: ...
21.787879
70
0.596662
e5d100195ec1f56bb39011ceafce3d09ae2b3187
9,539
py
Python
tests/test_flask_cuttlepool.py
smitchell556/flask-cuttlepool
32112c41947197d255646e408ede8f6b86ffb21c
[ "BSD-3-Clause" ]
1
2019-06-13T21:18:10.000Z
2019-06-13T21:18:10.000Z
tests/test_flask_cuttlepool.py
smitchell556/flask-cuttlepool
32112c41947197d255646e408ede8f6b86ffb21c
[ "BSD-3-Clause" ]
11
2018-01-16T19:12:12.000Z
2020-05-11T12:05:56.000Z
tests/test_flask_cuttlepool.py
smitchell556/flask-cuttlepool
32112c41947197d255646e408ede8f6b86ffb21c
[ "BSD-3-Clause" ]
1
2018-01-17T05:36:43.000Z
2018-01-17T05:36:43.000Z
# -*- coding: utf-8 -*- """Tests for Flask-CuttlePool.""" import pytest from flask import Flask # Find the stack on which we want to store the database connection. # Starting with Flask 0.9, the _app_ctx_stack is the correct one, # before that we need to use the _request_ctx_stack. try: from flask import _app_ctx_...
27.891813
84
0.679945
e5d3badd80eff4da8c9ac59f2ae9e00ec9a2daf0
6,516
py
Python
backend/tests/test_scoringHelpers.py
brownben/munro
2beeae23f29fd064b102a44a1c2d3d852eed65e0
[ "MIT" ]
5
2020-02-02T14:58:15.000Z
2022-01-07T08:24:37.000Z
backend/tests/test_scoringHelpers.py
brownben/munro
2beeae23f29fd064b102a44a1c2d3d852eed65e0
[ "MIT" ]
773
2020-01-04T22:54:01.000Z
2022-03-31T16:07:56.000Z
backend/tests/test_scoringHelpers.py
brownben/munro
2beeae23f29fd064b102a44a1c2d3d852eed65e0
[ "MIT" ]
1
2021-12-25T14:32:25.000Z
2021-12-25T14:32:25.000Z
from typing import List, Dict from ..utils.scoringHelpers import *
44.630137
86
0.57612
e5d3f1aaa2a4db3d649462b9a4b2872c64304957
911
py
Python
wsdeval/formats/wordnet.py
frankier/finn-wsd-eval
11671a7d87e16a9b45f5bea8a5db3d2f25f31d40
[ "Apache-2.0" ]
null
null
null
wsdeval/formats/wordnet.py
frankier/finn-wsd-eval
11671a7d87e16a9b45f5bea8a5db3d2f25f31d40
[ "Apache-2.0" ]
2
2018-09-22T08:38:23.000Z
2019-03-22T13:11:34.000Z
wsdeval/formats/wordnet.py
frankier/finn-wsd-eval
11671a7d87e16a9b45f5bea8a5db3d2f25f31d40
[ "Apache-2.0" ]
null
null
null
import sys from stiff.data.constants import UNI_POS_WN_MAP from finntk.wordnet.reader import get_en_fi_maps from finntk.wordnet.utils import pre_id_to_post, ss2pre
30.366667
62
0.626784
e5d49c1e85942ea8815872335e92c377df02dcdd
553
py
Python
fosspay/database.py
shleeable/fosspay
05aae16454463c0cd0211b4d706475837f2f007d
[ "MIT" ]
4
2020-06-01T07:09:38.000Z
2021-04-25T21:27:10.000Z
fosspay/database.py
shleeable/fosspay
05aae16454463c0cd0211b4d706475837f2f007d
[ "MIT" ]
3
2020-04-19T07:18:41.000Z
2020-10-15T21:11:12.000Z
fosspay/database.py
shleeable/fosspay
05aae16454463c0cd0211b4d706475837f2f007d
[ "MIT" ]
1
2021-02-28T08:26:28.000Z
2021-02-28T08:26:28.000Z
# import sqlite3 from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.ext.declarative import declarative_base from .config import _cfg, _cfgi # engine = create_engine(_cfg('connection-string'), module=sqlite3.dbapi2) engine = create_engine(_cfg('connection-strin...
29.105263
81
0.797468
e5d700f93cac04fc331b71c3c1e4693e6a3e9976
1,600
py
Python
emojis/db/generator.py
mercuree/emojis
43437a2929ccb1f1783ae13c8dcb9570ce401abd
[ "MIT" ]
null
null
null
emojis/db/generator.py
mercuree/emojis
43437a2929ccb1f1783ae13c8dcb9570ce401abd
[ "MIT" ]
null
null
null
emojis/db/generator.py
mercuree/emojis
43437a2929ccb1f1783ae13c8dcb9570ce401abd
[ "MIT" ]
null
null
null
import argparse import os from datetime import datetime import requests JSON_DB_FILE = 'https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json' if __name__ == '__main__': parser = argparse.ArgumentParser(description='Generates the Emoji database.') parser.add_argument('--dir', default='.', he...
32.653061
96
0.575
e5d7325ca98374479c7e719100f4da872f071b99
5,653
py
Python
pdfs/Commands/WWW.py
tmearnest/sbd
92e59ed6286ff7b6a036688db086e47951f07cdd
[ "MIT" ]
null
null
null
pdfs/Commands/WWW.py
tmearnest/sbd
92e59ed6286ff7b6a036688db086e47951f07cdd
[ "MIT" ]
null
null
null
pdfs/Commands/WWW.py
tmearnest/sbd
92e59ed6286ff7b6a036688db086e47951f07cdd
[ "MIT" ]
null
null
null
from .Command import Command
36.707792
109
0.5268
e5d751700fbfc083b181f629d2da2225fc4505cb
9,593
py
Python
nessmado_discord_manager.py
subaru3535/discordpy-startup
94c700f6af590c56f05708a3556198c20f9ee9e4
[ "MIT" ]
null
null
null
nessmado_discord_manager.py
subaru3535/discordpy-startup
94c700f6af590c56f05708a3556198c20f9ee9e4
[ "MIT" ]
null
null
null
nessmado_discord_manager.py
subaru3535/discordpy-startup
94c700f6af590c56f05708a3556198c20f9ee9e4
[ "MIT" ]
null
null
null
# nessmado_function.py # 5.01 # 2019/03/xx # 2019/10/14 # () # # # # """ 2019/03/xx ver 3.0? 2019/07/31 Ver 5.0 2019/10/14 Ver 5.1 NESS_SKILL """ # discordAPI from discord import message from discord import client from discord import channel # from NMconfig import NMConfig
40.306723
125
0.533618
e5d89d2a5e74dad3c40f155b2e13235f2835045c
528
py
Python
awx/main/management/commands/deprovision_node.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
1
2018-09-28T16:02:30.000Z
2018-09-28T16:02:30.000Z
awx/main/management/commands/deprovision_node.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
4
2020-04-29T23:03:16.000Z
2022-03-01T23:56:09.000Z
awx/main/management/commands/deprovision_node.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
2
2018-09-03T19:10:02.000Z
2019-06-12T07:07:16.000Z
# Copyright (c) 2017 Ansible by Red Hat # All Rights Reserved # Borrow from another AWX command from awx.main.management.commands.deprovision_instance import Command as OtherCommand # Python import warnings
29.333333
86
0.69697
e5da928182393c5f5c747b08972d2fb8f2ff9446
8,775
py
Python
rss_temple/api/views/feed.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
rss_temple/api/views/feed.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
8
2019-12-04T21:58:35.000Z
2021-12-15T02:29:49.000Z
rss_temple/api/views/feed.py
murrple-1/rss_temple
289197923b1e7d1213f1673d164337df17d7269b
[ "MIT" ]
null
null
null
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseNotAllowed from django.db import transaction import requests import ujson from url_normalize import url_normalize from api import models, query_utils, feed_handler, rss_requests, archived_feed_entry_util from api.excepti...
30.681818
154
0.692877
e5daabddd78accd0c119c7d00f383e8e6adda241
2,954
py
Python
hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/settings.py
hallohubo/DjangoDocterAPI
2d86d17c718affa968c0b2d4f9590aa08d43716e
[ "Apache-2.0" ]
89
2015-04-10T14:34:05.000Z
2021-11-08T09:17:09.000Z
hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/settings.py
hallohubo/DjangoDocterAPI
2d86d17c718affa968c0b2d4f9590aa08d43716e
[ "Apache-2.0" ]
13
2015-03-17T15:44:41.000Z
2020-11-19T03:07:13.000Z
hbruraldoctor/hbvirtual/lib/python3.7/site-packages/Naked/settings.py
hallohubo/DjangoDocterAPI
2d86d17c718affa968c0b2d4f9590aa08d43716e
[ "Apache-2.0" ]
19
2015-05-13T09:18:12.000Z
2021-04-28T10:35:39.000Z
#!/usr/bin/env python # encoding: utf-8 #------------------------------------------------------------------------------ # Application Name #------------------------------------------------------------------------------ app_name = "naked" #------------------------------------------------------------------------------ ...
33.954023
396
0.474611
e5de3b649cde237814d8eb0d0baa2f698e762515
7,959
py
Python
fempagno/modules/motoremesh.py
giovap95/metis-fem
f8a67698d1531a862e541f79229c0e4486edde6c
[ "MIT" ]
null
null
null
fempagno/modules/motoremesh.py
giovap95/metis-fem
f8a67698d1531a862e541f79229c0e4486edde6c
[ "MIT" ]
2
2020-05-08T21:51:44.000Z
2020-05-13T13:41:41.000Z
fempagno/modules/motoremesh.py
giovap95/metis-fem
f8a67698d1531a862e541f79229c0e4486edde6c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 27 18:54:01 2020 @author: giova """ import numpy as np import sys import meshio # Creates a mesh class #--------------------------------------------------------------------------- # Functions below do not belong to mesh Class #--------------------------------...
33.1625
107
0.489257
e5e0321b867fbd3540821c3d571734424765569b
326
py
Python
setup.py
mephizzle/python-funkyfunc
5b7b9edc817830348227e8c7f9178d26ecc9991f
[ "Apache-2.0" ]
null
null
null
setup.py
mephizzle/python-funkyfunc
5b7b9edc817830348227e8c7f9178d26ecc9991f
[ "Apache-2.0" ]
null
null
null
setup.py
mephizzle/python-funkyfunc
5b7b9edc817830348227e8c7f9178d26ecc9991f
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( author='Marco Westerhof', author_email='mephistolomaniac@gmail.com', url='https://github.com/mephizzle/python-funkyfunc', name='FunkyFunk', version='0.0.2-dev', packages=['funkyfunc'], license='Apache 2.0', long_description=open('README.txt').read...
25.076923
56
0.677914
e5e10452d84b6a103a29913ec774bc796c7a58d7
35
py
Python
spartan/examples/sklearn/linear_model/__init__.py
GabrielWen/spartan
ce3bf7f2bb551d7f996a1884acef819b620cc854
[ "Apache-2.0" ]
156
2015-01-10T21:54:25.000Z
2021-10-17T14:13:57.000Z
spartan/examples/sklearn/linear_model/__init__.py
GabrielWen/spartan
ce3bf7f2bb551d7f996a1884acef819b620cc854
[ "Apache-2.0" ]
8
2015-01-05T16:34:18.000Z
2015-12-11T08:12:28.000Z
spartan/examples/sklearn/linear_model/__init__.py
GabrielWen/spartan
ce3bf7f2bb551d7f996a1884acef819b620cc854
[ "Apache-2.0" ]
24
2015-01-10T21:55:48.000Z
2021-04-14T08:09:34.000Z
from .base import LinearRegression
17.5
34
0.857143
e5e256e472aa9a2645b2b2a6d05bcb536688a4a9
1,116
py
Python
pygame/key-event- get-changed-states/main-using-get_pressed.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
pygame/key-event- get-changed-states/main-using-get_pressed.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
pygame/key-event- get-changed-states/main-using-get_pressed.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python3 # # https://stackoverflow.com/a/48034477/1832058 # import pygame pygame.init() screen = pygame.display.set_mode((300, 200)) pressed = pygame.key.get_pressed() clock = pygame.time.Clock() is_running = True while is_running: for event in pygame.event.get(): if event.type == py...
21.461538
87
0.612007
e5e25a60a68dadc256cd1d15a2436325f5c9ecdb
828
py
Python
epsagon/modules/sqlalchemy.py
Dryja/epsagon-python
505b09268820593903afdce26e1bab7f64adc23b
[ "MIT" ]
55
2018-09-30T11:46:01.000Z
2022-03-15T13:37:26.000Z
epsagon/modules/sqlalchemy.py
Dryja/epsagon-python
505b09268820593903afdce26e1bab7f64adc23b
[ "MIT" ]
323
2018-10-04T15:42:08.000Z
2022-02-20T11:26:40.000Z
epsagon/modules/sqlalchemy.py
Dryja/epsagon-python
505b09268820593903afdce26e1bab7f64adc23b
[ "MIT" ]
20
2018-10-11T14:47:16.000Z
2022-01-20T11:07:29.000Z
""" sqlalchemy patcher module """ from __future__ import absolute_import from epsagon.modules.general_wrapper import wrapper from ..events.sqlalchemy import SqlAlchemyEventFactory from ..utils import patch_once def _wrapper(wrapped, instance, args, kwargs): """ General wrapper for sqlalchemy instrumentation....
21.230769
75
0.665459
e5e4afd5dbe24702344b3fb95577c4c8061e708c
415
py
Python
app/component/sink/resolver.py
melphi/kafkaform
391c4c70b6aff9fd5ad703dcf4b6e863e92d53b6
[ "MIT" ]
null
null
null
app/component/sink/resolver.py
melphi/kafkaform
391c4c70b6aff9fd5ad703dcf4b6e863e92d53b6
[ "MIT" ]
null
null
null
app/component/sink/resolver.py
melphi/kafkaform
391c4c70b6aff9fd5ad703dcf4b6e863e92d53b6
[ "MIT" ]
null
null
null
from typing import Optional from app import model, client from app.component.connect import resolver
31.923077
91
0.775904
e5e4d509b89cb0862f92845dd6ce191e2a31dfb4
187
py
Python
scrapy_cookies/signals.py
scrapedia/scrapy-cookies
9741c767005254f5c427d3938ccad9ad74f93c2a
[ "BSD-3-Clause" ]
13
2019-05-29T03:31:58.000Z
2021-09-30T14:53:45.000Z
scrapy_cookies/signals.py
scrapedia/scrapy-cookies
9741c767005254f5c427d3938ccad9ad74f93c2a
[ "BSD-3-Clause" ]
18
2019-06-02T12:43:05.000Z
2022-03-08T01:07:21.000Z
scrapy_cookies/signals.py
scrapedia/scrapy-cookies
9741c767005254f5c427d3938ccad9ad74f93c2a
[ "BSD-3-Clause" ]
11
2019-08-14T12:06:38.000Z
2021-08-13T00:24:35.000Z
""" Scrapy-Cookies signals These signals are documented in docs/topics/signals.rst. Please don't add new signals here without documenting them there. """ cookies_invalidated = object()
20.777778
77
0.780749
e5e53846e2bb66fb7964f5329a489cc90405aafd
881
py
Python
Python/BasicTutorials/loops.py
ronkitay/Rons-Tutorials
c0459c57cc24b546847ec24afa94d2c1e5373bd4
[ "MIT" ]
null
null
null
Python/BasicTutorials/loops.py
ronkitay/Rons-Tutorials
c0459c57cc24b546847ec24afa94d2c1e5373bd4
[ "MIT" ]
null
null
null
Python/BasicTutorials/loops.py
ronkitay/Rons-Tutorials
c0459c57cc24b546847ec24afa94d2c1e5373bd4
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from rons_tutorial_formatting import * print_block_separator() x = 1 while x < 10: print x, x += 1 end_block(True) start_block() words = ['hello', 'world', 'have', 'a', 'nice', 'day'] for word in words: if word.isalpha() and word[0] == 'h': print word,...
16.622642
83
0.594779
e5e672aa538e6785d26c19832f02db4cd318b24e
471
py
Python
CSE-6239-assignment-1/code/sobel.py
shahidul56/computer-vision-resource
fd9f2a328e015bc0bf083578496e980681204614
[ "MIT" ]
null
null
null
CSE-6239-assignment-1/code/sobel.py
shahidul56/computer-vision-resource
fd9f2a328e015bc0bf083578496e980681204614
[ "MIT" ]
null
null
null
CSE-6239-assignment-1/code/sobel.py
shahidul56/computer-vision-resource
fd9f2a328e015bc0bf083578496e980681204614
[ "MIT" ]
null
null
null
# Some imports from matplotlib import pyplot as plt import cv2 # for display from skimage import data # for loading example data from skimage.color import rgb2gray # for converting to grayscale # Load image, convert to grayscale and show it image = rgb2gray(data.astronaut())
29.4375
66
0.704883
e5e752f6a18aedce35c0b66c9dcf5c5d4d5eb6e8
677
py
Python
stack_reverse_string.py
kromagg/Python
1ade4c3ac8f0ef24735c22437d3716cc7388f6a1
[ "MIT" ]
null
null
null
stack_reverse_string.py
kromagg/Python
1ade4c3ac8f0ef24735c22437d3716cc7388f6a1
[ "MIT" ]
null
null
null
stack_reverse_string.py
kromagg/Python
1ade4c3ac8f0ef24735c22437d3716cc7388f6a1
[ "MIT" ]
null
null
null
if __name__ == "__main__": string = ".koob doog a htiw nohtyP nraeL" reversed_string = "" s = Stack() for char in string: s.push(char) while not s.is_empty(): reversed_string += s.pop() print(reversed_string)
18.297297
45
0.568685
e5e7f6b3dfe5867d1dd051b77e4c526e95d5eaf6
5,100
py
Python
hg2git.py
LukasPersonal/hg-fast-export
77a770c2b856a49f0d58a035cd9e300c8c0203ac
[ "MIT" ]
null
null
null
hg2git.py
LukasPersonal/hg-fast-export
77a770c2b856a49f0d58a035cd9e300c8c0203ac
[ "MIT" ]
1
2021-09-30T17:11:13.000Z
2021-09-30T17:11:13.000Z
hg2git.py
LukasPersonal/hg-fast-export
77a770c2b856a49f0d58a035cd9e300c8c0203ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # pylint: disable=E1101.E0602 # Copyright (c) 2007, 2008 Rocco Rutte <pdmef@gmx.net> and others. # License: MIT <http://www.opensource.org/licenses/mit-license.php> import os import re import subprocess import sys from mercurial import error as hgerror from mercurial import hg, templatefilters,...
30.909091
88
0.612941
e5e873bb87ab31b611a9db0a4399b14d3a1da37d
331
py
Python
l1-l100/7.py
ZucchiniY/Leetcode-cn
c26d080b7f8115a2edfc135742c1cad0105eccfc
[ "MIT" ]
null
null
null
l1-l100/7.py
ZucchiniY/Leetcode-cn
c26d080b7f8115a2edfc135742c1cad0105eccfc
[ "MIT" ]
null
null
null
l1-l100/7.py
ZucchiniY/Leetcode-cn
c26d080b7f8115a2edfc135742c1cad0105eccfc
[ "MIT" ]
null
null
null
""" Python int 32 """
18.388889
55
0.432024
e5e8dd52ec7800abc2fea2d0e906bb4110812873
382
py
Python
users/urls.py
Gabriel-limadev/learning_log
c8f0d0e95d19da652c7a56d80df0990d5c3a18d0
[ "MIT" ]
null
null
null
users/urls.py
Gabriel-limadev/learning_log
c8f0d0e95d19da652c7a56d80df0990d5c3a18d0
[ "MIT" ]
null
null
null
users/urls.py
Gabriel-limadev/learning_log
c8f0d0e95d19da652c7a56d80df0990d5c3a18d0
[ "MIT" ]
null
null
null
"""Define padres de URL para users""" from django.urls import path, include from django.contrib.auth.views import LoginView from . import views urlpatterns = [ # Pgina de Login path('login', LoginView.as_view(template_name='users/login.html'), name='login'), path('logout', views.logout_view, name='logout...
27.285714
85
0.712042
e5ebdbe01f05c949fa7304e210592a5bcd39cded
5,923
py
Python
resumecollection/users/v1/views.py
m-ali-ubit/resume-collection
1e598928fed38f4a3b5972ff473e26e07e4c464a
[ "MIT" ]
null
null
null
resumecollection/users/v1/views.py
m-ali-ubit/resume-collection
1e598928fed38f4a3b5972ff473e26e07e4c464a
[ "MIT" ]
null
null
null
resumecollection/users/v1/views.py
m-ali-ubit/resume-collection
1e598928fed38f4a3b5972ff473e26e07e4c464a
[ "MIT" ]
null
null
null
import logging from django.contrib.auth import get_user_model, authenticate from django.contrib.auth.mixins import LoginRequiredMixin from django.http import Http404 from django.views.generic import RedirectView from rest_framework import status, permissions from rest_framework.exceptions import ValidationError from r...
39.225166
96
0.667905
e5ede57f6e5a4c4f286e2ced6355288e52909591
1,947
py
Python
binding/python/test_cobra_perf.py
Picovoice/cobra
2684f7e873930b66fa5cd114ee06434a63760160
[ "Apache-2.0" ]
26
2021-09-17T20:11:52.000Z
2022-03-13T01:33:22.000Z
binding/python/test_cobra_perf.py
Picovoice/cobra
2684f7e873930b66fa5cd114ee06434a63760160
[ "Apache-2.0" ]
4
2021-09-29T20:39:25.000Z
2022-01-19T18:24:56.000Z
binding/python/test_cobra_perf.py
Picovoice/cobra
2684f7e873930b66fa5cd114ee06434a63760160
[ "Apache-2.0" ]
3
2021-11-08T05:19:24.000Z
2022-03-07T03:08:24.000Z
# # Copyright 2022 Picovoice Inc. # # You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" # file accompanying this source. # # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on # an "AS IS" B...
33
117
0.663585
e5edfa705d3471d7a0761238dd4b5b4398bf2f00
4,034
py
Python
neurons/boltzmann/main.py
unconst/SimpleWord2Vec
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
9
2019-12-18T10:20:15.000Z
2021-03-18T00:07:28.000Z
neurons/boltzmann/main.py
unconst/SimpleWord2Vec
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
5
2020-02-12T02:21:15.000Z
2022-02-10T00:25:28.000Z
neurons/boltzmann/main.py
unconst/BitTensor
d1af6993c1d6bca273a0c8d147132ee9867f5543
[ "MIT" ]
null
null
null
import bittensor from config import Config from metagraph import Metagraph from dendrite import Dendrite from nucleus import Nucleus from neuron import Neuron from Crypto.Hash import SHA256 from datetime import timedelta import grpc from loguru import logger import pickle import numpy as np import random import time ...
28.609929
83
0.589737
e5ee0a1b58d18c70bdda71d41120500488aa7c66
897
py
Python
miplearn/tests/__init__.py
GregorCH/MIPLearn
28e2ba7c0133602fb361f8690bc7424869f68b43
[ "BSD-3-Clause" ]
null
null
null
miplearn/tests/__init__.py
GregorCH/MIPLearn
28e2ba7c0133602fb361f8690bc7424869f68b43
[ "BSD-3-Clause" ]
null
null
null
miplearn/tests/__init__.py
GregorCH/MIPLearn
28e2ba7c0133602fb361f8690bc7424869f68b43
[ "BSD-3-Clause" ]
null
null
null
# MIPLearn: Extensible Framework for Learning-Enhanced Mixed-Integer Optimization # Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved. # Released under the modified BSD license. See COPYING.md for more details. from miplearn import LearningSolver from miplearn.problems.knapsack import KnapsackInstance
34.5
82
0.634337
e5ee4943aac68235054c17ff1e0039fbf33c5e05
3,394
py
Python
RPi/PBUtils.py
lefake/RPi-Arduino-PB-Communication
8f827a4b8eaa331cd47d9a3f5bfa0414ec8c264f
[ "MIT" ]
null
null
null
RPi/PBUtils.py
lefake/RPi-Arduino-PB-Communication
8f827a4b8eaa331cd47d9a3f5bfa0414ec8c264f
[ "MIT" ]
null
null
null
RPi/PBUtils.py
lefake/RPi-Arduino-PB-Communication
8f827a4b8eaa331cd47d9a3f5bfa0414ec8c264f
[ "MIT" ]
null
null
null
from binascii import unhexlify import threading import time # Serialization utils # Serial communication utils
27.819672
113
0.57749
e5f095d1388f9625e63f8d8fbeb39317cd585f8c
68
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.11-list-del-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.11-list-del-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.11-list-del-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
li = [1, 2, 3, 3, 4, 5, 6] del(li[1]) print(li) del(li) print(li)
8.5
26
0.5
e5f0bb1e5a4c34450975dee81ee353ebb2c952b3
9,769
py
Python
Old_Files/QuickPool_Old.py
PV-Lab/stability
d18da803a399a7c338b225b0d6adbdfe1b427707
[ "MIT" ]
null
null
null
Old_Files/QuickPool_Old.py
PV-Lab/stability
d18da803a399a7c338b225b0d6adbdfe1b427707
[ "MIT" ]
null
null
null
Old_Files/QuickPool_Old.py
PV-Lab/stability
d18da803a399a7c338b225b0d6adbdfe1b427707
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 4 18:07:03 2019 @author: NickT """ from pymatgen import MPRester import pandas as pd import matplotlib.pyplot as plt import csv import multiprocessing as mp import pickle import tqdm import time mat_api_key = '<ENTER API KEY>' mpr = MPRester(mat...
37.003788
131
0.604873
e5f19e16e2b08093649aea79bf01a6ebe7b3786c
1,638
py
Python
lhq_nn_lib/layers/loss.py
lhq1208/DL_lib
53c99157efcc36f2288a82eedad09cdecda579e5
[ "Apache-2.0" ]
null
null
null
lhq_nn_lib/layers/loss.py
lhq1208/DL_lib
53c99157efcc36f2288a82eedad09cdecda579e5
[ "Apache-2.0" ]
null
null
null
lhq_nn_lib/layers/loss.py
lhq1208/DL_lib
53c99157efcc36f2288a82eedad09cdecda579e5
[ "Apache-2.0" ]
null
null
null
import numpy as np from layers.activation_layer import * from layers.gradient_check import * def mean_square_error_loss(y_hat, y): """ MSE loss, loss=mean(y_hat-y)^2 :param y_hat: output of the network :param y: input labels :return: MSE loss """ loss = np.mean((y_hat - y) ** 2) num_ou...
27.762712
87
0.632479
e5f2b2946d7fb399e25a69e9d6f0ee5cf294595b
2,518
py
Python
clearmash/prep_entities_for_search.py
Beit-Hatfutsot/mojp-dbs-pipelines
7bac0da9c1777351f40f422c664a7168b52e218a
[ "MIT" ]
1
2017-06-21T11:36:01.000Z
2017-06-21T11:36:01.000Z
clearmash/prep_entities_for_search.py
Beit-Hatfutsot/mojp-dbs-pipelines
7bac0da9c1777351f40f422c664a7168b52e218a
[ "MIT" ]
66
2017-05-09T11:48:50.000Z
2018-01-02T11:57:26.000Z
clearmash/prep_entities_for_search.py
Beit-Hatfutsot/mojp-dbs-pipelines
7bac0da9c1777351f40f422c664a7168b52e218a
[ "MIT" ]
2
2017-04-25T09:07:15.000Z
2017-06-15T10:35:36.000Z
from datapackage_pipelines.wrapper import ingest, spew from datapackage_pipelines.utilities.resources import PROP_STREAMING from bs4 import BeautifulSoup parameters, datapackage, resources = ingest() datapackage["resources"] = [{PROP_STREAMING: True, "name": parameters["resource-name"]...
61.414634
120
0.470612
e5f2df89ffd4743d543ef9c3d879f0b8408bef7f
2,011
py
Python
flight-data/adb_7_eda.py
plzm/azure-databricks
29884a184698a034a7e5c25ac5b80d36757b2fff
[ "MIT" ]
null
null
null
flight-data/adb_7_eda.py
plzm/azure-databricks
29884a184698a034a7e5c25ac5b80d36757b2fff
[ "MIT" ]
null
null
null
flight-data/adb_7_eda.py
plzm/azure-databricks
29884a184698a034a7e5c25ac5b80d36757b2fff
[ "MIT" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC References # MAGIC # MAGIC https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrameStatFunctions<br> # MAGIC https://docs.azuredatabricks.net/user-guide/visualizations/index.html<br> # COMMAND ---------- # MAGIC %md # MAGIC #### Get a dat...
19.336538
117
0.655893
e5f31ec7b6d809900feb1de6c282c008dc5ae47f
50
py
Python
tools/onnx2daq/python/onnx2daq/__init__.py
Anon-Artist/DNNLibrary
6e38a880a90c28ff238a80f44c7d35ffd3eedae8
[ "Apache-2.0" ]
199
2019-02-14T05:44:27.000Z
2022-03-29T09:48:35.000Z
tools/onnx2daq/python/onnx2daq/__init__.py
Anon-Artist/DNNLibrary
6e38a880a90c28ff238a80f44c7d35ffd3eedae8
[ "Apache-2.0" ]
26
2019-02-18T07:18:17.000Z
2021-05-29T11:42:08.000Z
tools/onnx2daq/python/onnx2daq/__init__.py
Anon-Artist/DNNLibrary
6e38a880a90c28ff238a80f44c7d35ffd3eedae8
[ "Apache-2.0" ]
33
2019-02-16T09:23:46.000Z
2022-02-19T07:24:22.000Z
from .convert import convert, simplify_and_convert
50
50
0.88
e5f5488490016c728274b70ed9f953908256998b
1,788
py
Python
reanalysis/mt_to_vcf.py
populationgenomics/automated-interpretation-pipeline
64afbf396dcc2f4f2330cdfd0414238560910e93
[ "MIT" ]
null
null
null
reanalysis/mt_to_vcf.py
populationgenomics/automated-interpretation-pipeline
64afbf396dcc2f4f2330cdfd0414238560910e93
[ "MIT" ]
4
2022-03-28T06:28:01.000Z
2022-03-31T00:16:02.000Z
reanalysis/mt_to_vcf.py
populationgenomics/automated-interpretation-pipeline
64afbf396dcc2f4f2330cdfd0414238560910e93
[ "MIT" ]
null
null
null
""" Takes an input MT, and extracts a VCF-format representation. This is currently required as the end-to-end CPG pipeline doesn't currently store intermediate files. To simulate workflows running on VCF files, we have to regenerate a VCF representation from a MT. Optional argument allows the specification of an 'add...
28.380952
83
0.69519
e5f5c14f40a001a742cdc89ea72f7c6f1ffa6230
3,787
py
Python
asrtoolkit/wer.py
kaleko/greenkey-asrtoolkit
a729e25ae9c1c65b3c9f25438eb67dba8d03a730
[ "Apache-2.0" ]
null
null
null
asrtoolkit/wer.py
kaleko/greenkey-asrtoolkit
a729e25ae9c1c65b3c9f25438eb67dba8d03a730
[ "Apache-2.0" ]
1
2020-02-07T19:20:07.000Z
2020-02-07T19:27:19.000Z
asrtoolkit/wer.py
kaleko/greenkey-asrtoolkit
a729e25ae9c1c65b3c9f25438eb67dba8d03a730
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Python function for computing word error rates metric for Automatic Speech Recognition files """ import argparse import re import editdistance from asrtoolkit.clean_formatting import clean_up from asrtoolkit.data_structures.time_aligned_text import time_aligned_text from asrtoolkit.file_uti...
25.587838
111
0.639028
e5f747a9d4b2a20c7688e823ef456d609f3c3b3d
497
py
Python
scripts/MongoDash/callbacks/empty_graph.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
73
2021-07-08T23:35:08.000Z
2022-03-31T15:17:58.000Z
scripts/MongoDash/callbacks/empty_graph.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
5
2021-09-27T14:27:32.000Z
2022-03-21T23:50:02.000Z
scripts/MongoDash/callbacks/empty_graph.py
RodrigoNaves/ginan-bitbucket-update-tests
4bd5cc0a9dd0e94b1c2d8b35385e128404009b0c
[ "Apache-2.0" ]
39
2021-07-12T05:42:51.000Z
2022-03-31T15:15:34.000Z
import pdb
18.407407
35
0.325956
e5f7fd3c0fafa269562c91d637943b7de22fa323
808
py
Python
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
2
2020-10-29T04:28:45.000Z
2021-03-20T09:49:26.000Z
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
4
2021-03-07T04:57:16.000Z
2022-03-13T21:13:59.000Z
src/DeepNovelARG/fasta2kmers.py
gaarangoa/deeparg2.0
e7777dbc71fa3c527b8b198c79ab8b42fb597d8f
[ "BSD-2-Clause" ]
3
2020-12-01T09:21:20.000Z
2021-02-24T15:05:02.000Z
import sys from Bio import SeqIO import re import numpy as np def fasta2kmers(fasta_file, kmer, out_file): ''' Convert a fasta file into a word/sentence file ''' # traverse the fasta file fo = open(out_file + '.sentences', 'w') fo2 = open(out_file + '.headers', 'w') for record in Seq...
23.085714
73
0.647277
e5f93c424e080bb00d32a11707e9198b4d6328be
1,466
py
Python
mm_SA_001/solver.py
DmitriKudryashov/setcover
d95d37c268c99d5ed1772e86e9810b6c996a179a
[ "MIT" ]
86
2015-03-10T16:39:52.000Z
2022-03-24T08:13:40.000Z
mm_SA_001/solver.py
DmitriKudryashov/setcover
d95d37c268c99d5ed1772e86e9810b6c996a179a
[ "MIT" ]
7
2015-03-04T09:30:51.000Z
2020-12-31T18:56:51.000Z
mm_SA_001/solver.py
DmitriKudryashov/setcover
d95d37c268c99d5ed1772e86e9810b6c996a179a
[ "MIT" ]
102
2015-01-02T15:12:14.000Z
2022-03-18T09:59:11.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # HOW TO USE THIS SOLVER: # ------------------------------------------------------------------------------- # # Compile the C++ code setCoversa.cpp into an executable setCoversa # Linux: g+...
28.745098
131
0.597544
e5fc1a53ac1718e28efd430f3370ee09b0452d38
5,441
py
Python
last_screen_tinkinter.py
cfrenkel/Songo
160c91ce8f191b94519437656a219d86dcd77f63
[ "MIT" ]
3
2019-02-07T12:25:21.000Z
2019-02-07T12:26:35.000Z
last_screen_tinkinter.py
cfrenkel/Songo
160c91ce8f191b94519437656a219d86dcd77f63
[ "MIT" ]
null
null
null
last_screen_tinkinter.py
cfrenkel/Songo
160c91ce8f191b94519437656a219d86dcd77f63
[ "MIT" ]
null
null
null
# import ctypes # # from PIL import ImageTk, Image # import cv2 # import tkinter as tk # import music_control # import speed_detection # import threading # # class MainWindow(tk.Frame): # def __init__(self, master=None): # super().__init__(master) # self.newMaster = master # self.master = ma...
27.760204
123
0.574343
e5fde087ff89b55704670fe7d181d26045924a03
9,762
py
Python
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
1
2022-01-12T15:36:30.000Z
2022-01-12T15:36:30.000Z
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
null
null
null
src/reader/transformer_wrapper.py
isspek/Cross-Lingual-Cyberbullying
710c136b9233f0be87af72e43e25722e73158c52
[ "MIT" ]
null
null
null
from transformers import AutoTokenizer from pathlib import Path import torch from src.reader.pan_hatespeech import AUTHOR_SEP, AUTHOR_ID import numpy as np from sklearn.model_selection import StratifiedKFold from src.utils import RANDOM_SEED from pathlib import Path import xml.etree.ElementTree as ET from transformers ...
41.896996
119
0.521205
e5fe149f57cd02f1ac0914d38105b287b42a97c0
6,585
py
Python
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
data/download.py
molokhovdmitry/placeholder
cc0a983af91fcbea3dcd7b9a16db471b000b5ff5
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 molokhovdmitry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
30.771028
79
0.639028
f900890adc7949963a4aa7f524446cd1c7206958
385
py
Python
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
Selenium_WebDriver/Find_Element_by_Css_Selector.py
w2k31984/Selenium_WebDriver_Python
73e509813c6a5e508677920fa76c8cc56371134b
[ "MIT", "MIT-0" ]
null
null
null
import time from selenium import webdriver if __name__ == '__main__': main() #time.sleep(3)
27.5
121
0.711688
f90152bc71aae7d837d6a1c5e96b7dfa9cb2abc6
1,158
py
Python
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
null
null
null
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
1
2019-04-12T06:25:36.000Z
2019-04-12T06:26:06.000Z
time_test.py
zhfeing/graduation-project
e9020a4d7916874ad9d4bf0c9f7f1f82dcfea663
[ "MIT" ]
null
null
null
import time from model_zoo import load_model, resnet, googLeNet import ensembel_model import utils import cv2 import numpy as np import torch from torch import nn import os os.environ["CUDA_VISIBLE_DEVICES"] = "{}".format(1) # test resnet version = 'resnet-tiny-n7' new_model = resnet.my_resnet mean = np.array([[[[1...
24.125
77
0.665803
f9019bd17eb89cddd56f5b092e2ea9378fef8dc4
516
py
Python
setup.py
gelo-zhukov/django-simple-seo
872894917b39f2e938ac9a25471326d7a8c01873
[ "BSD-3-Clause" ]
1
2020-02-18T13:54:02.000Z
2020-02-18T13:54:02.000Z
setup.py
gelo-zhukov/django-simple-seo
872894917b39f2e938ac9a25471326d7a8c01873
[ "BSD-3-Clause" ]
null
null
null
setup.py
gelo-zhukov/django-simple-seo
872894917b39f2e938ac9a25471326d7a8c01873
[ "BSD-3-Clause" ]
2
2015-06-23T09:10:28.000Z
2020-07-25T10:04:31.000Z
import os from setuptools import setup setup( name='simpleseo', version='0.0.1', author='Glamping Hub', author_email='it@glampinghub.com', packages=['simpleseo'], url='https://github.com/Glamping-Hub/django-simple-seo', license='LICENSE', description='Simple SEO app for django framewor...
24.571429
87
0.656977
f901a74dc09b82cece000f2c7ec33eaff647de92
26
py
Python
cryptolytic/__init__.py
Lambda-School-Labs/cryptolytic-ds
b58b6eb2b82a404f9d2d468e706d49d9c5999f21
[ "MIT" ]
13
2019-10-10T21:01:23.000Z
2020-06-05T11:18:31.000Z
cryptolytic/__init__.py
ross-fisher/cryptolytic-ds
1539ae7311a622035d631058ebe47e7c697e3c11
[ "MIT" ]
3
2019-12-18T16:46:48.000Z
2020-01-09T21:47:48.000Z
cryptolytic/__init__.py
ross-fisher/cryptolytic-ds
1539ae7311a622035d631058ebe47e7c697e3c11
[ "MIT" ]
10
2019-10-15T15:30:25.000Z
2020-05-11T22:07:52.000Z
import os session = None
6.5
14
0.730769
f902e32cb0c6f87b960daa97f2b7828a5ba52e29
38,435
py
Python
ross/tests/test_rubbing.py
rodrigomoliveira1/ross
51f9379a8a834e1253b94e70dd9f5324acd8c78e
[ "MIT" ]
1
2021-07-20T04:24:19.000Z
2021-07-20T04:24:19.000Z
ross/tests/test_rubbing.py
rodrigomoliveira1/ross
51f9379a8a834e1253b94e70dd9f5324acd8c78e
[ "MIT" ]
null
null
null
ross/tests/test_rubbing.py
rodrigomoliveira1/ross
51f9379a8a834e1253b94e70dd9f5324acd8c78e
[ "MIT" ]
null
null
null
import os from pathlib import Path from tempfile import tempdir import numpy as np import pytest from numpy.testing import assert_allclose, assert_almost_equal import ross as rs from ross.defects.misalignment import MisalignmentFlex from ross.units import Q_ steel2 = rs.Material(name="Steel", rho=7850, E=2.17e11, Po...
57.19494
92
0.452738
f90424eb70e977fa6f417a29fc944a6fba32e65d
45
py
Python
sickbeard/lib/pynma/__init__.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/lib/pynma/__init__.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/lib/pynma/__init__.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
#!/usr/bin/python from pynma import PyNMA
9
24
0.711111
f9067c53c005e376f4cfe9ae079b5ab8e9d70c34
285
py
Python
setup.py
rectangletangle/iterlib
5863f5d2ca3fc89cc71e1f170b2fd52e7d376a5d
[ "BSD-2-Clause" ]
1
2015-03-06T09:33:25.000Z
2015-03-06T09:33:25.000Z
setup.py
rectangletangle/iterlib
5863f5d2ca3fc89cc71e1f170b2fd52e7d376a5d
[ "BSD-2-Clause" ]
null
null
null
setup.py
rectangletangle/iterlib
5863f5d2ca3fc89cc71e1f170b2fd52e7d376a5d
[ "BSD-2-Clause" ]
null
null
null
import iterlib from distutils.core import setup setup(name=iterlib.__name__, version=iterlib.__version__, description=iterlib.__doc__, author=iterlib.__author__, author_email=iterlib.__email__, url=iterlib.__url__, packages=[iterlib.__name__])
19
37
0.722807
f9093408439e26def7b0c8a935ff0f1ec59c9b79
364
py
Python
mix_backup/workspace/KirkB-Automation/check_point_finder/Network02.py
0dadj1an/mix
a4f289b115686b221cc71aaf232bc76d4453dff8
[ "Apache-2.0" ]
null
null
null
mix_backup/workspace/KirkB-Automation/check_point_finder/Network02.py
0dadj1an/mix
a4f289b115686b221cc71aaf232bc76d4453dff8
[ "Apache-2.0" ]
null
null
null
mix_backup/workspace/KirkB-Automation/check_point_finder/Network02.py
0dadj1an/mix
a4f289b115686b221cc71aaf232bc76d4453dff8
[ "Apache-2.0" ]
null
null
null
import cpauto session = cpauto.CoreClient('admin', 'cisco123', '192.168.0.250') output = session.login() policies = cpauto.PolicyPackage(session) output = policies.show_all() outputdictfromserver = output.json() outputdictfromserver['packages'] counter=0 print outputdictfromserver output = session.logout() pr...
19.157895
65
0.725275
f9098f375c9a6e85e1d5127cd965e29b7cdfa5a4
1,315
py
Python
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
6,304
2015-01-05T23:45:12.000Z
2022-03-31T09:48:13.000Z
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
67
2016-04-18T13:30:02.000Z
2022-03-31T23:06:55.000Z
infra/bots/assets/skimage/create_and_upload.py
travisleithead/skia
2092340a0edc25e9082ce9717643d12d901c3971
[ "BSD-3-Clause" ]
1,231
2015-01-05T03:17:39.000Z
2022-03-31T22:54:58.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Create the asset and upload it.""" import os import subprocess import sys import tempfile FILE_DIR = os.path.dirname(os.path.abspath(__file__)) ASSET = os...
29.222222
80
0.670722
f90ab2849b2e284d4af9d06d042c800ea64ec2f7
1,487
py
Python
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
1
2019-06-13T14:21:48.000Z
2019-06-13T14:21:48.000Z
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
null
null
null
chapter/chapter5/multi-channels/basic.py
nealguo/gluon-study
5a1bf7de8f6cc1a376ad85758bc24cf9488f17a1
[ "Apache-2.0" ]
null
null
null
from mxnet import nd # # # # 11 if __name__ == '__main__': X = nd.array([[[0, 1, 2], [3, 4, 5], [6, 7, 8]], [[1, 2, 3], [4, 5, 6], [7, 8, 9]]]) K = nd.array([[[0, 1], [2, 3]], [[1, 2], [3, 4]]]) print(corr2d_multi_in(X, K)) # KK+1K+23 # K+1K1K+2 K = nd.stack(K, K ...
26.087719
59
0.566241
f91114b11e69845ded8fd16b0a8d6a5869cb61e2
2,777
py
Python
app/routers/sentences.py
ephraimberkovitch/cadet
40ff288bfa96a3a0615fdf0b4d79246bc0fb0011
[ "MIT" ]
2
2021-06-23T14:03:09.000Z
2021-11-21T01:06:03.000Z
app/routers/sentences.py
ephraimberkovitch/cadet
40ff288bfa96a3a0615fdf0b4d79246bc0fb0011
[ "MIT" ]
13
2021-06-23T16:07:57.000Z
2021-07-09T20:51:09.000Z
app/routers/sentences.py
ephraimberkovitch/cadet
40ff288bfa96a3a0615fdf0b4d79246bc0fb0011
[ "MIT" ]
2
2021-06-23T16:09:32.000Z
2022-03-18T12:44:25.000Z
import importlib.util # https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path import json from pathlib import Path from fastapi import APIRouter, Depends from fastapi.responses import HTMLResponse from fastapi import Request, Form from fastapi.templating import Jinja2Templates template...
39.112676
128
0.649622
f916bc28e5684a59f27cde56fa82ff78daa7b8b0
2,797
py
Python
tests/test_options.py
mje-nz/pythontexfigures
60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84
[ "BSD-3-Clause" ]
4
2020-08-29T21:51:51.000Z
2021-07-03T08:52:13.000Z
tests/test_options.py
mje-nz/pythontexfigures
60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84
[ "BSD-3-Clause" ]
null
null
null
tests/test_options.py
mje-nz/pythontexfigures
60fdaaf0ec0b5d7176b2f36f7b7dd41ff3af0d84
[ "BSD-3-Clause" ]
null
null
null
"""Tests for pythontexfigures LaTeX package options.""" from pathlib import Path import pytest from util import build # noqa: I900 DOCUMENT_TEMPLATE = r""" \documentclass{article} %(pre)s \usepackage{pgf} \usepackage{pythontex} \usepackage[%(options)s]{pythontexfigures} %(post)s \begin{document} %(body)s \end{docu...
26.638095
85
0.643904
f91a9b5d30b6f6b627352832df3808c0d8ef429a
3,030
py
Python
manager/cached_templates/templates/dash.html.py
jordancarlson08/MyStuff
4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773
[ "Apache-2.0" ]
null
null
null
manager/cached_templates/templates/dash.html.py
jordancarlson08/MyStuff
4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773
[ "Apache-2.0" ]
null
null
null
manager/cached_templates/templates/dash.html.py
jordancarlson08/MyStuff
4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773
[ "Apache-2.0" ]
null
null
null
# -*- coding:ascii -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 9 _modified_time = 1397084402.354378 _enable_loop = True _template_filename = 'C:\\Users\\Jordan Carlson\\Desktop\\MyStuff\\manager\\templates/dash.html' _tem...
38.35443
630
0.663366
f91c199f67de38b80403807227afe0c66d3dfdc3
636
py
Python
cache/key.py
inktrap/async-cache
ebf289bdcd468e41638880c9b4fdabca858ae20b
[ "MIT" ]
31
2020-04-27T13:15:00.000Z
2022-03-11T07:44:30.000Z
cache/key.py
inktrap/async-cache
ebf289bdcd468e41638880c9b4fdabca858ae20b
[ "MIT" ]
11
2020-04-27T12:28:37.000Z
2022-03-09T09:42:52.000Z
cache/key.py
inktrap/async-cache
ebf289bdcd468e41638880c9b4fdabca858ae20b
[ "MIT" ]
15
2020-05-03T14:52:48.000Z
2022-02-25T15:50:49.000Z
from typing import Any
26.5
58
0.537736
f91e45056e688bc8a35dc7a92e07d9a8e0b4f848
322
py
Python
torchsupport/flex/context/context_module.py
coding-ecoli/torchsupport
a8de0e8db4f4b9cfd4ac93c0fa6923fe9151b309
[ "MIT" ]
18
2019-05-02T16:32:15.000Z
2021-04-16T09:33:54.000Z
torchsupport/flex/context/context_module.py
coding-ecoli/torchsupport
a8de0e8db4f4b9cfd4ac93c0fa6923fe9151b309
[ "MIT" ]
5
2019-10-14T13:46:49.000Z
2021-06-08T11:48:34.000Z
torchsupport/flex/context/context_module.py
coding-ecoli/torchsupport
a8de0e8db4f4b9cfd4ac93c0fa6923fe9151b309
[ "MIT" ]
12
2019-05-12T21:34:24.000Z
2021-07-15T14:14:16.000Z
import torch.nn as nn
18.941176
43
0.649068
f91fd42bb12baf319840de39b6b389ba506e6ee2
341
py
Python
auctions/tests/auctions/domain/entities/test_auction.py
hyunsung-kim/py-clean-architecture
50f8d1fabdbbf70fa45a8b31fe235cd0f0e0dd34
[ "MIT" ]
null
null
null
auctions/tests/auctions/domain/entities/test_auction.py
hyunsung-kim/py-clean-architecture
50f8d1fabdbbf70fa45a8b31fe235cd0f0e0dd34
[ "MIT" ]
null
null
null
auctions/tests/auctions/domain/entities/test_auction.py
hyunsung-kim/py-clean-architecture
50f8d1fabdbbf70fa45a8b31fe235cd0f0e0dd34
[ "MIT" ]
null
null
null
import logging from auctions.domain.entities.auction import Auction from auctions.domain.value_objects.money import Money from auctions.domain.value_objects.currency import USD logger = logging.getLogger()
26.230769
54
0.750733
f9201532aaedc6e2918aab248d632b916f61d1ad
34
py
Python
tests/__init__.py
soundappraisal/wavinfo
c966097e7d611366bc4b9b623ed72a1b0b38fe34
[ "MIT" ]
15
2019-05-16T14:07:17.000Z
2022-03-31T17:43:03.000Z
tests/__init__.py
soundappraisal/wavinfo
c966097e7d611366bc4b9b623ed72a1b0b38fe34
[ "MIT" ]
9
2019-02-13T16:04:21.000Z
2022-01-31T02:54:07.000Z
tests/__init__.py
soundappraisal/wavinfo
c966097e7d611366bc4b9b623ed72a1b0b38fe34
[ "MIT" ]
9
2019-05-03T20:39:06.000Z
2022-03-22T20:43:22.000Z
from . import test_wave_parsing
8.5
31
0.794118
f920cd367ef49151e3bcd850b0a3a30a2385fffe
296
py
Python
examples/full-example/app/app.py
alwye/fastapi_login
a7a94f6e191e5f81f87cb35ac3ff1947aef33136
[ "MIT" ]
318
2019-10-24T20:18:41.000Z
2022-03-23T16:55:51.000Z
examples/full-example/app/app.py
alwye/fastapi_login
a7a94f6e191e5f81f87cb35ac3ff1947aef33136
[ "MIT" ]
47
2020-01-24T01:07:33.000Z
2022-03-16T12:59:06.000Z
examples/full-example/app/app.py
alwye/fastapi_login
a7a94f6e191e5f81f87cb35ac3ff1947aef33136
[ "MIT" ]
39
2020-04-01T07:23:13.000Z
2022-02-25T12:43:40.000Z
from fastapi import FastAPI from app.routes.auth import router as auth_router from app.routes.user import router as user_router from app.routes.posts import router as posts_router app = FastAPI() app.include_router(auth_router) app.include_router(user_router) app.include_router(posts_router)
24.666667
51
0.834459
f9212d62b2c6b0b4be3c55d60532491667f432fd
17,444
py
Python
infomercial/memory.py
CoAxLab/infomercial
fa5d1c1e5c1351735dda2961a2a94f71cd17e270
[ "MIT" ]
4
2019-11-14T03:13:25.000Z
2021-01-04T17:30:23.000Z
infomercial/memory.py
CoAxLab/infomercial
fa5d1c1e5c1351735dda2961a2a94f71cd17e270
[ "MIT" ]
null
null
null
infomercial/memory.py
CoAxLab/infomercial
fa5d1c1e5c1351735dda2961a2a94f71cd17e270
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from collections import OrderedDict from collections import deque from sklearn.neighbors import KernelDensity from scipy.stats import entropy as scientropy import random # # class ConditionalCount(Count): # # """A cond...
29.073333
112
0.54116
f924a3360f6478f383a6de27cd9e66749ac25041
36,224
py
Python
tests/io/test_hdf_writer.py
hbdeng/pycroscopy
f9a6d273f6a8e6fdda1287cec82cd6da32d9e2a5
[ "MIT" ]
1
2020-02-13T20:54:47.000Z
2020-02-13T20:54:47.000Z
tests/io/test_hdf_writer.py
Liambcollins/pycroscopy
fd02ac735a1194d2a5687183fafe00368ed8a3ca
[ "MIT" ]
null
null
null
tests/io/test_hdf_writer.py
Liambcollins/pycroscopy
fd02ac735a1194d2a5687183fafe00368ed8a3ca
[ "MIT" ]
1
2020-03-20T13:19:09.000Z
2020-03-20T13:19:09.000Z
# -*- coding: utf-8 -*- """ Created on Tue Nov 3 15:07:16 2017 @author: Suhas Somnath """ from __future__ import division, print_function, unicode_literals, absolute_import import unittest import os import h5py import numpy as np import sys sys.path.append("../../../pycroscopy/") from pycroscopy.io.virtual_data imp...
39.98234
124
0.593087
f92515e6b724a9961231bbc88b0302170c10e53f
1,332
py
Python
paprika/actions/files/Pipe.py
thunder-/paprika
af262407ec9c195dbb5a7c205510e6ad2fb65f36
[ "MIT" ]
null
null
null
paprika/actions/files/Pipe.py
thunder-/paprika
af262407ec9c195dbb5a7c205510e6ad2fb65f36
[ "MIT" ]
null
null
null
paprika/actions/files/Pipe.py
thunder-/paprika
af262407ec9c195dbb5a7c205510e6ad2fb65f36
[ "MIT" ]
null
null
null
from paprika.repositories.FileRepository import FileRepository from paprika.repositories.ProcessPropertyRepository import ProcessPropertyRepository from paprika.repositories.ProcessRepository import ProcessRepository from paprika.system.logger.Logger import Logger from paprika.actions.Actionable import Actionable
34.153846
84
0.712462
f927320e5b5b42a05587f21c0bf8e8733e0a3c7a
4,987
py
Python
messaging_components/clients/external/java/command/java_options.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
null
null
null
messaging_components/clients/external/java/command/java_options.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
null
null
null
messaging_components/clients/external/java/command/java_options.py
fgiorgetti/qpid-dispatch-tests
164c609d28db87692eed53d5361aa1ee5c97375c
[ "Apache-2.0" ]
null
null
null
from optconstruct import OptionAbstract from optconstruct.types import Toggle, Prefixed, KWOption, ListOption from messaging_components.clients.external.command.options.client_options import ControlOptionsCommon, \ ControlOptionsSenderReceiver, ControlOptionsReceiver, ConnectionOptionsCommon """ Specialized optio...
52.494737
118
0.677161
f9275e748370b9802c302be3f62b6834e789955f
4,113
py
Python
aptl3/procrustes/generalized.py
matteoterruzzi/aptl3
680ab58ffa79d0eee293729d36f677a588350519
[ "MIT" ]
null
null
null
aptl3/procrustes/generalized.py
matteoterruzzi/aptl3
680ab58ffa79d0eee293729d36f677a588350519
[ "MIT" ]
null
null
null
aptl3/procrustes/generalized.py
matteoterruzzi/aptl3
680ab58ffa79d0eee293729d36f677a588350519
[ "MIT" ]
null
null
null
from typing import Dict, Optional import logging import numpy as np from .orthogonal import OrthogonalProcrustesModel
47.275862
116
0.628738
f9284a1ac61f4a6059d5ca4e4682380e4ddcc7d0
138
py
Python
dorado/__init__.py
kbarnhart/dorado
8404dc75bcab13ab1461babd3ac2d5517f85addb
[ "MIT" ]
null
null
null
dorado/__init__.py
kbarnhart/dorado
8404dc75bcab13ab1461babd3ac2d5517f85addb
[ "MIT" ]
null
null
null
dorado/__init__.py
kbarnhart/dorado
8404dc75bcab13ab1461babd3ac2d5517f85addb
[ "MIT" ]
1
2020-10-28T16:31:49.000Z
2020-10-28T16:31:49.000Z
__version__ = "2.1.0" from . import lagrangian_walker from . import parallel_routing from . import particle_track from . import routines
19.714286
31
0.789855
f92915a4474c636fb23ee209bc0a8b0878710ea4
7,538
py
Python
analysis/general/analyze_table.py
cmu-db/cmdbac
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
31
2016-04-07T04:54:29.000Z
2021-11-30T02:30:57.000Z
analysis/general/analyze_table.py
cmu-db/db-webcrawler
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
22
2015-12-19T14:49:18.000Z
2021-09-07T23:48:24.000Z
analysis/general/analyze_table.py
cmu-db/dbac
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
7
2016-05-13T01:02:01.000Z
2019-10-06T16:52:54.000Z
#!/usr/bin/env python import os, sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "core")) import re import csv from utils import dump_all_...
45.963415
132
0.608782
f92c4cb10c3058dd32a39d35e1301e33c83939d1
5,107
py
Python
examples/ex_4shapes.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
null
null
null
examples/ex_4shapes.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
null
null
null
examples/ex_4shapes.py
cristobalfuenzalida/grafica
cf7bb90c4c5c34ee56d328188111c917a0d10389
[ "MIT" ]
null
null
null
# coding=utf-8 """Drawing 4 shapes with different transformations""" import glfw from OpenGL.GL import * import OpenGL.GL.shaders import numpy as np import sys import os.path sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import grafica.basic_shapes as bs import grafica.easy_shaders as es...
29.865497
117
0.667319
f92c752c2d9a2ddf52f10a14162916f713687399
6,240
py
Python
bika/lims/adapters/widgetvisibility.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/adapters/widgetvisibility.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/adapters/widgetvisibility.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from bika.lims.interfaces import IAnalysisRequestsFolder, IBatch, IClient from bika.lims.interfaces import IATWidgetVisibility from bika.lims.utils import getHiddenAttributesForClass from Products.CMFCore.utils import getToolByName from Products.CMFCore.WorkflowCore import WorkflowException from ...
33.548387
84
0.63766
00555a4b5e6cf01b88abb2844e7dfc38a61a5022
1,128
py
Python
dia/libs/Color.py
sosie-js/dia-test
eebf777c65487002ac9cb6cd4dd9e97466ba0f93
[ "CC0-1.0" ]
null
null
null
dia/libs/Color.py
sosie-js/dia-test
eebf777c65487002ac9cb6cd4dd9e97466ba0f93
[ "CC0-1.0" ]
null
null
null
dia/libs/Color.py
sosie-js/dia-test
eebf777c65487002ac9cb6cd4dd9e97466ba0f93
[ "CC0-1.0" ]
null
null
null
""" pydia: Color.py - 2021.09 ================================================ Template code generated from UML diagrams of PyDia with 'dia2code -t python ../dia2code/PyDiaObjects.dia' Note: Experimental, will be obsolete if we found a way to use libdia /pydia libraries Author: SoSie@sos-production...
28.2
140
0.586879
005563def602f5a05fa7ab40a2f6437d84a5f513
3,777
py
Python
panoptes_aggregation/extractors/sw_extractor.py
alnah005/aggregation-for-caesar
b2422f4c007857531ac3ff2636b567adb667dd0c
[ "Apache-2.0" ]
9
2018-04-11T13:44:32.000Z
2022-03-09T16:39:26.000Z
panoptes_aggregation/extractors/sw_extractor.py
alnah005/aggregation-for-caesar
b2422f4c007857531ac3ff2636b567adb667dd0c
[ "Apache-2.0" ]
217
2017-07-27T09:20:15.000Z
2022-03-21T11:15:33.000Z
panoptes_aggregation/extractors/sw_extractor.py
hughdickinson/aggregation-for-caesar
d6bca0a1126e0397315d5773401c71075c33ee2f
[ "Apache-2.0" ]
10
2018-11-12T21:36:48.000Z
2022-02-07T11:50:03.000Z
''' Shakespeares World Text Extractor --------------------------------- This module provides a fuction to extract the `text` data from annotations made on Shakespeares World and AnnoTate. ''' import bs4 from collections import OrderedDict import copy import numpy as np import html import warnings from .extractor_wrappe...
34.651376
91
0.577707
00561d4e308ea135f91dd037033827ac63fb7d6c
860
py
Python
src/iemws/models/iemre.py
akrherz/iem-json-services
13fa3d7434c1ff3d0379f3b921d30ea79423dae8
[ "Apache-2.0" ]
null
null
null
src/iemws/models/iemre.py
akrherz/iem-json-services
13fa3d7434c1ff3d0379f3b921d30ea79423dae8
[ "Apache-2.0" ]
null
null
null
src/iemws/models/iemre.py
akrherz/iem-json-services
13fa3d7434c1ff3d0379f3b921d30ea79423dae8
[ "Apache-2.0" ]
null
null
null
"""Models for iemre API.""" # pylint: disable=no-name-in-module,too-few-public-methods from typing import List from pydantic import BaseModel, Field
34.4
76
0.65814
0056d447a08163829490cb5c9d6443f2c725e44f
15,111
py
Python
src/wakeexchange/GeneralWindFarmGroups.py
WISDEM/wake-exchange
1e9bb1266799517afeca0358c3237f9250bacfa4
[ "Apache-2.0" ]
2
2018-03-27T17:47:04.000Z
2018-12-27T09:02:27.000Z
src/wakeexchange/GeneralWindFarmGroups.py
WISDEM/wake-exchange
1e9bb1266799517afeca0358c3237f9250bacfa4
[ "Apache-2.0" ]
null
null
null
src/wakeexchange/GeneralWindFarmGroups.py
WISDEM/wake-exchange
1e9bb1266799517afeca0358c3237f9250bacfa4
[ "Apache-2.0" ]
4
2018-03-15T20:53:04.000Z
2019-03-21T07:41:18.000Z
import numpy as np from openmdao.api import Group, IndepVarComp, ParallelGroup, ScipyGMRES, NLGaussSeidel from openmdao.core.mpi_wrap import MPI if MPI: from openmdao.api import PetscKSP from wakeexchange.floris import floris_wrapper, add_floris_params_IndepVarComps from wakeexchange.gauss import add_gauss_param...
61.178138
132
0.591225
0056d7846cb988b379249f9ed5834e68bd878b2b
468
py
Python
pug-bot/commands/team.py
stevenktruong/pug-bot
315c21363eebb51d67d5b5c9fa9326cd8bcb2b54
[ "MIT" ]
17
2018-06-27T03:49:03.000Z
2021-04-13T07:32:43.000Z
pug-bot/commands/team.py
stevenktruong/pug-bot
315c21363eebb51d67d5b5c9fa9326cd8bcb2b54
[ "MIT" ]
3
2020-03-26T06:49:10.000Z
2020-04-23T07:20:41.000Z
pug-bot/commands/team.py
stevenktruong/pug-bot
315c21363eebb51d67d5b5c9fa9326cd8bcb2b54
[ "MIT" ]
14
2018-06-27T03:49:06.000Z
2021-10-07T23:28:44.000Z
from .checks import * from ..config import * from ..pug import Pug from ..team import Team from ..utils import *
33.428571
80
0.767094