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
8ef4e851a20a47c080f5877af66b197a0352f09d
2,976
py
Python
risc_control/src/coop_traj1.py
riscmaster/risc_maap
48b0ab79c1938bc3ed36442894dd4bf3091a2942
[ "BSD-2-Clause" ]
1
2017-04-30T19:33:37.000Z
2017-04-30T19:33:37.000Z
risc_control/src/coop_traj1.py
riscmaster/risc_maap
48b0ab79c1938bc3ed36442894dd4bf3091a2942
[ "BSD-2-Clause" ]
1
2019-09-12T02:29:39.000Z
2019-09-12T02:29:39.000Z
risc_control/src/coop_traj1.py
riscmaster/risc_maap
48b0ab79c1938bc3ed36442894dd4bf3091a2942
[ "BSD-2-Clause" ]
2
2016-03-07T00:47:59.000Z
2018-10-06T17:43:10.000Z
#!/usr/bin/env python '''====================================================== Created by: Jose Lopez Last updated: January 2015 File name: coop_tarj1.py Organization: RISC Lab, Utah State University Notes: the AR Drone will fly back and forth in the x axis direction swi...
25.878261
85
0.46203
d6fe685c35fbd2079ff748e00e571d8b9223f3ba
19
py
Python
guandu.py
shazihao/nextdoo
abd866696c14408e88d87ce06dbc5c7b7c6399ac
[ "Apache-2.0" ]
null
null
null
guandu.py
shazihao/nextdoo
abd866696c14408e88d87ce06dbc5c7b7c6399ac
[ "Apache-2.0" ]
null
null
null
guandu.py
shazihao/nextdoo
abd866696c14408e88d87ce06dbc5c7b7c6399ac
[ "Apache-2.0" ]
null
null
null
print('thats good')
19
19
0.736842
d901a261812636fef5b1a73cc0e7a23fc96403bb
4,309
py
Python
models/modules.py
chldkato/Tacotron-pytorch
ee20c4a38cfc1f345567669a5f695e7e50f9da56
[ "MIT" ]
4
2021-11-22T04:38:18.000Z
2022-02-24T02:00:49.000Z
models/modules.py
chldkato/Tacotron-pytorch
ee20c4a38cfc1f345567669a5f695e7e50f9da56
[ "MIT" ]
null
null
null
models/modules.py
chldkato/Tacotron-pytorch
ee20c4a38cfc1f345567669a5f695e7e50f9da56
[ "MIT" ]
1
2022-02-14T04:52:47.000Z
2022-02-14T04:52:47.000Z
import torch, librosa import numpy as np from torch.nn import Module, Linear, ReLU, Dropout, Conv1d, ModuleList, BatchNorm1d, GRU, MaxPool1d, Sigmoid, Softmax, Tanh from util.hparams import * from copy import deepcopy def griffin_lim(spectrogram): spec = deepcopy(spectrogram) for i in ...
35.908333
123
0.599907
d9020898c1f7c0c64f68856e8924389487cbb16e
771
py
Python
python/toolkit.py
rjlasko/pst
1b2b4286524e12e13a3eacd0297272a3a2bfc4aa
[ "MIT" ]
null
null
null
python/toolkit.py
rjlasko/pst
1b2b4286524e12e13a3eacd0297272a3a2bfc4aa
[ "MIT" ]
null
null
null
python/toolkit.py
rjlasko/pst
1b2b4286524e12e13a3eacd0297272a3a2bfc4aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python
25.7
102
0.709468
d906370ccd34943d6d1deac1511c603e61a66724
3,860
py
Python
src/xleapp/log/__init__.py
flamusdiu/xleapp
27379a0a617cb31f12fad63dabcefd8793116c67
[ "MIT" ]
10
2021-09-25T20:52:39.000Z
2022-02-24T15:29:09.000Z
src/xleapp/log/__init__.py
flamusdiu/xleapp
27379a0a617cb31f12fad63dabcefd8793116c67
[ "MIT" ]
1
2021-11-24T15:06:51.000Z
2021-11-24T15:10:16.000Z
src/xleapp/log/__init__.py
flamusdiu/xleapp
27379a0a617cb31f12fad63dabcefd8793116c67
[ "MIT" ]
null
null
null
import importlib.util import logging import logging.config import os import typing as t from pathlib import Path import yaml import xleapp.globals as g from ..helpers.utils import generate_program_header StrPath = t.Union[str, os.PathLike[str]] def init() -> None: mod = importlib.util.find_spec(__name...
30.393701
90
0.621503
d907bd26982f2f0c607670322653cbde97921fee
370
py
Python
pystratis/api/voting/requestmodels/schedulevotewhitelisthashrequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
8
2021-06-30T20:44:22.000Z
2021-12-07T14:42:22.000Z
pystratis/api/voting/requestmodels/schedulevotewhitelisthashrequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
2
2021-07-01T11:50:18.000Z
2022-01-25T18:39:49.000Z
pystratis/api/voting/requestmodels/schedulevotewhitelisthashrequest.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
4
2021-07-01T04:36:42.000Z
2021-09-17T10:54:19.000Z
from pydantic import Field from pystratis.api import Model from pystratis.core.types import uint256 # noinspection PyUnresolvedReferences
26.428571
70
0.754054
d907fc46056be736059c55e8e9dc61e081d480d5
2,628
py
Python
test/conftest.py
janjoswig/CNN
06ab0e07da46141cca941e99ac1a11ddc7ce233d
[ "MIT" ]
4
2020-06-16T13:33:57.000Z
2021-01-05T18:19:57.000Z
test/conftest.py
janjoswig/CNN
06ab0e07da46141cca941e99ac1a11ddc7ce233d
[ "MIT" ]
12
2019-10-22T09:15:09.000Z
2020-07-02T09:42:44.000Z
test/conftest.py
janjoswig/CommonNNClustering
06ab0e07da46141cca941e99ac1a11ddc7ce233d
[ "MIT" ]
null
null
null
import pytest import numpy as np try: from sklearn import datasets from sklearn.preprocessing import StandardScaler SKLEARN_FOUND = True except ModuleNotFoundError: SKLEARN_FOUND = False from cnnclustering import cluster from cnnclustering._primitive_types import P_AINDEX from cnnclustering._types imp...
25.764706
84
0.659437
d90803a94634f55cc4c8fcadf8b89f8bf2964a51
1,332
py
Python
geo_service.py
felixwoestmann/gold_digger
598ffe068470b2cb4a0ac48750566a5df7210820
[ "MIT" ]
2
2021-02-15T13:32:38.000Z
2021-02-26T14:39:53.000Z
geo_service.py
felixwoestmann/gold_digger
598ffe068470b2cb4a0ac48750566a5df7210820
[ "MIT" ]
1
2021-02-27T08:53:18.000Z
2021-02-27T08:53:18.000Z
geo_service.py
felixwoestmann/gold_digger
598ffe068470b2cb4a0ac48750566a5df7210820
[ "MIT" ]
1
2021-02-26T21:12:23.000Z
2021-02-26T21:12:23.000Z
address_coordinate_cache = {}
35.052632
119
0.697447
d9083feac77806fdd51484f302b33654bdf6a883
4,140
py
Python
simsi_transfer/simsi_output.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
null
null
null
simsi_transfer/simsi_output.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
null
null
null
simsi_transfer/simsi_output.py
kusterlab/SIMSI-Transfer
2973895a222cbb30c0be88f2ee2ba0d1bf3ee8e5
[ "Apache-2.0" ]
1
2022-03-23T11:06:40.000Z
2022-03-23T11:06:40.000Z
import os import logging from pathlib import Path import pandas as pd from simsi_transfer.merging_functions import merge_with_msmsscanstxt, merge_with_summarytxt, merge_with_msmstxt logger = logging.getLogger(__name__) def count_clustering_parameters(summary, rawtrans=False): """ Counts MICs, tIDs, dI...
37.636364
117
0.69058
d908879900e1651b9e8f26c5ad19972a0ba40604
1,471
py
Python
manimpy/right_angle.py
Jin-Yuhan/manimpy
d667a324a2957d6402194fbe44e01fd8bdb5ca30
[ "MIT" ]
1
2020-05-11T13:34:30.000Z
2020-05-11T13:34:30.000Z
manimpy/right_angle.py
Jin-Yuhan/manimpy
d667a324a2957d6402194fbe44e01fd8bdb5ca30
[ "MIT" ]
null
null
null
manimpy/right_angle.py
Jin-Yuhan/manimpy
d667a324a2957d6402194fbe44e01fd8bdb5ca30
[ "MIT" ]
null
null
null
# from @cigar666 # cgnb!!!! from manimlib.imports import *
32.688889
110
0.579198
d9089775d35deb81b413937db4c14cb666c7998d
1,044
py
Python
server/inquest/users/views.py
lucasOlivio/inquest
da7c3030f175f31861cf3db385c611c0c05b9406
[ "MIT" ]
null
null
null
server/inquest/users/views.py
lucasOlivio/inquest
da7c3030f175f31861cf3db385c611c0c05b9406
[ "MIT" ]
null
null
null
server/inquest/users/views.py
lucasOlivio/inquest
da7c3030f175f31861cf3db385c611c0c05b9406
[ "MIT" ]
null
null
null
from django.conf import settings from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from rest_framework import mixins, viewsets from rest_framework.permissions import AllowAny from inquest.users.models import User from inquest.users.permissions import IsUserOrRead...
32.625
79
0.782567
d908de2112de0a42cfc4e7f7a3c2f7d380168e5b
2,213
py
Python
python/day10_challenge1.py
BKreisel/Advent-of-Code-2018
129a141dbb681bc065faf07db1e4d3eea3a27653
[ "MIT" ]
null
null
null
python/day10_challenge1.py
BKreisel/Advent-of-Code-2018
129a141dbb681bc065faf07db1e4d3eea3a27653
[ "MIT" ]
null
null
null
python/day10_challenge1.py
BKreisel/Advent-of-Code-2018
129a141dbb681bc065faf07db1e4d3eea3a27653
[ "MIT" ]
null
null
null
from collections import namedtuple from re import compile from sys import exit as sysexit from typing import List from util import read_input DAY = 10 UPPER_LIMIT = 25000 Point = namedtuple("Point", ["x", "y"]) Star = namedtuple("Star", ["position", "velocity"]) line_re = compile(r"position=<(?P<x>[-\s\d]+),(?P<y>[-\...
29.118421
109
0.589245
d9091569a1b6d3adf860b6c15b4e75756d3d210b
2,026
py
Python
scripts/import_from_wj.py
dujiajun/jcourse_api
033f73708aff7f485fbbd04eb66a81260b4f76b6
[ "MIT" ]
7
2021-06-04T12:20:16.000Z
2022-03-04T02:18:51.000Z
scripts/import_from_wj.py
dujiajun/jcourse_api
033f73708aff7f485fbbd04eb66a81260b4f76b6
[ "MIT" ]
null
null
null
scripts/import_from_wj.py
dujiajun/jcourse_api
033f73708aff7f485fbbd04eb66a81260b4f76b6
[ "MIT" ]
null
null
null
import csv from django.contrib.auth.models import User from jcourse_api.models import Course, Review, FormerCode, Semester f = open('./data/2021_wenjuan.csv', mode='r', encoding='utf-8-sig') csv_reader = csv.DictReader(f) q = [] users = User.objects.filter(username__istartswith='') for row in csv_reader: try: ...
36.836364
117
0.576999
d90ba9911ad6ab56814a796a79d97402a9504f8f
18
py
Python
monte_carlo_tree_search/constants.py
TomaszOdrzygozdz/gym-splendor
aeb00605e105628188143a4bbd6280e9eb41c4f9
[ "MIT" ]
1
2020-03-09T18:56:01.000Z
2020-03-09T18:56:01.000Z
monte_carlo_tree_search/constants.py
TomaszOdrzygozdz/gym-splendor
aeb00605e105628188143a4bbd6280e9eb41c4f9
[ "MIT" ]
null
null
null
monte_carlo_tree_search/constants.py
TomaszOdrzygozdz/gym-splendor
aeb00605e105628188143a4bbd6280e9eb41c4f9
[ "MIT" ]
1
2019-10-25T13:09:40.000Z
2019-10-25T13:09:40.000Z
INFINITY = 10 ** 4
18
18
0.611111
d90e9dd3e37f4a789260e02d318737a1ad0dbb0c
396
py
Python
AtCoder/ABC069/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
1
2018-11-25T04:15:45.000Z
2018-11-25T04:15:45.000Z
AtCoder/ABC069/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
null
null
null
AtCoder/ABC069/C.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
2
2018-08-08T13:01:14.000Z
2018-11-25T12:38:36.000Z
iN = int(input()) a_list = list(map(int, input().split())) multi4 = len([a for a in a_list if a % 4 == 0]) odd_num = len([a for a in a_list if a % 2 != 0]) even_num = len(a_list) - odd_num not4 = even_num - multi4 if not4 >0 : if odd_num <= multi4: print("Yes") else: print("No") else: if...
18
48
0.537879
d911d284c2c65abab19624640b4b1617c8de9f73
225
py
Python
problem0171.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0171.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0171.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #171 Finding numbers for which the sum of the squares of the digits is a square - Project Euler # https://projecteuler.net/problem=171 # # Code by Kevin Marciniak # ###########################
25
97
0.555556
d9125bbb9cb3d1362d1020fcac647b008a6da7c2
1,064
py
Python
src/03.Structure.py
MuteG/PythonLearning
08e5894758527e98899758189a0e2de514366be0
[ "MIT" ]
null
null
null
src/03.Structure.py
MuteG/PythonLearning
08e5894758527e98899758189a0e2de514366be0
[ "MIT" ]
null
null
null
src/03.Structure.py
MuteG/PythonLearning
08e5894758527e98899758189a0e2de514366be0
[ "MIT" ]
null
null
null
## multiLineStr = 'hell' + \ 'o, w' + \ 'orld' print(multiLineStr) # hello, world ## ### furry = True small = True if furry: if small: print(" It' s a cat.") else: print(" It' s a bear!") else: if small: print(" It' s a skink!") else: print(" It' s a human. O...
17.733333
52
0.539474
d9126a034cf7206cc3c8eb5c9f77a907e154097d
7,070
py
Python
Server/app.py
praveenjoshi01/Slicenet2020_TeleStroke_POC
b0198c9d2aa6dc62caba898806c9b0d93c38ec55
[ "MIT" ]
null
null
null
Server/app.py
praveenjoshi01/Slicenet2020_TeleStroke_POC
b0198c9d2aa6dc62caba898806c9b0d93c38ec55
[ "MIT" ]
1
2021-05-11T12:13:49.000Z
2021-05-11T12:13:49.000Z
Server/app.py
praveenjoshi01/Slicenet2020_TeleStroke_POC
b0198c9d2aa6dc62caba898806c9b0d93c38ec55
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request from keras.preprocessing.image import img_to_array, load_img from keras.models import load_model import cv2 import os import numpy as np from flask_cors import CORS, cross_origin import tensorflow.keras from PIL import Image, ImageOps import base64 import json import dl...
32.731481
81
0.672277
d913b95c3ba94ba3e42c6be9063bb4fc4710f196
2,346
py
Python
secretupdater/secretupdater/config.py
matthope/k8s-secret-updater
cf2687079a25b4afdb19385457cf578dcea34431
[ "Apache-2.0" ]
5
2019-01-22T03:42:30.000Z
2021-04-10T02:32:58.000Z
secretupdater/secretupdater/config.py
matthope/k8s-secret-updater
cf2687079a25b4afdb19385457cf578dcea34431
[ "Apache-2.0" ]
2
2019-01-31T03:34:03.000Z
2021-12-13T11:29:48.000Z
secretupdater/secretupdater/config.py
matthope/k8s-secret-updater
cf2687079a25b4afdb19385457cf578dcea34431
[ "Apache-2.0" ]
2
2019-04-10T00:14:15.000Z
2021-08-19T01:34:07.000Z
# Copyright 2019 Nine Entertainment Co. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
31.28
104
0.693947
d913f8ded4c337d3ee50d477509740734d3625be
4,509
py
Python
shooter_game.py
Chinginsan/test
0734ee69a4642b61ca419725bb87228482e529ea
[ "CC0-1.0" ]
null
null
null
shooter_game.py
Chinginsan/test
0734ee69a4642b61ca419725bb87228482e529ea
[ "CC0-1.0" ]
null
null
null
shooter_game.py
Chinginsan/test
0734ee69a4642b61ca419725bb87228482e529ea
[ "CC0-1.0" ]
null
null
null
from pygame import * from random import randint from time import time as timer bullets = sprite.Group() monsters = sprite.Group() asteroids = sprite.Group() font.init() font1 = font.SysFont('Arial', 80) win = font1.render('YOU WIN!', True, (255, 255, 255)) lose = font1.render('YOU LOSE!', True, (180, 0, 0)) font2 ...
27.162651
103
0.559991
d91441f52247263182d2d7d0c5c3f9c07327a94d
970
py
Python
python-opencv/blog13-scharr/demo-summary.py
meteor1993/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
83
2019-10-15T06:54:06.000Z
2022-03-28T14:08:21.000Z
python-opencv/blog13-scharr/demo-summary.py
wenxuefeng3930/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
1
2020-04-16T08:13:19.000Z
2020-07-14T01:52:46.000Z
python-opencv/blog13-scharr/demo-summary.py
wenxuefeng3930/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
74
2019-11-02T08:10:36.000Z
2022-02-19T12:23:36.000Z
import cv2 as cv import numpy as np import matplotlib.pyplot as plt # img = cv.imread("maliao.jpg") rgb_img = cv.cvtColor(img, cv.COLOR_BGR2RGB) gray_img = cv.cvtColor(img, cv.COLOR_BGR2GRAY) # gaussianBlur = cv.GaussianBlur(gray_img, (3,3), 0) # ret, binary = cv.threshold(gaussianBlur, 127, 255, cv.THRESH_BINARY) ...
25.526316
68
0.701031
d914574a42c517f5d3aea0ddfc7d81cb3c43e9ec
253
py
Python
flask_demo/config.py
banzhuanl/full_stack
2b139a1602693a97f0eb8f8c6b9ab2fa74432156
[ "Apache-2.0" ]
null
null
null
flask_demo/config.py
banzhuanl/full_stack
2b139a1602693a97f0eb8f8c6b9ab2fa74432156
[ "Apache-2.0" ]
null
null
null
flask_demo/config.py
banzhuanl/full_stack
2b139a1602693a97f0eb8f8c6b9ab2fa74432156
[ "Apache-2.0" ]
null
null
null
import multiprocessing import tlib.conf as conf bind='0.0.0.0:%s' % conf.get("port") # workers=multiprocessing.cpu_count() * 2 + 1 # workers=multiprocessing.cpu_count() workers=10 backlog=2048 worker_class="gevent" debug=False daemon=False timeout=30
18.071429
45
0.762846
d91517f663cad101cba44c03bed12083eb97f6fa
98
py
Python
forge/elements/augmentors/__init__.py
AndresMWeber/Forge
90b2958a2a40d37b52232091bea9c3ddbd88566b
[ "MIT" ]
1
2021-08-17T02:36:06.000Z
2021-08-17T02:36:06.000Z
forge/elements/augmentors/__init__.py
AndresMWeber/Forge
90b2958a2a40d37b52232091bea9c3ddbd88566b
[ "MIT" ]
1
2017-06-12T04:32:54.000Z
2017-06-12T04:32:54.000Z
forge/elements/augmentors/__init__.py
AndresMWeber/Forge
90b2958a2a40d37b52232091bea9c3ddbd88566b
[ "MIT" ]
1
2017-06-12T05:47:21.000Z
2017-06-12T05:47:21.000Z
import stretch import ik import twist_interpolators __all__ = ['stretch', 'twist_interpolators']
16.333333
44
0.806122
d915b1dec47018e3c99882c610dfbff4358cc8c1
1,207
py
Python
leetcode/18 . 4sum(Sorting+BinarySearch).py
lixiaoruiusa/Rui7272
fbdb87104353138d3af7f3fe2cb3c0f00ff9e449
[ "MIT" ]
null
null
null
leetcode/18 . 4sum(Sorting+BinarySearch).py
lixiaoruiusa/Rui7272
fbdb87104353138d3af7f3fe2cb3c0f00ff9e449
[ "MIT" ]
null
null
null
leetcode/18 . 4sum(Sorting+BinarySearch).py
lixiaoruiusa/Rui7272
fbdb87104353138d3af7f3fe2cb3c0f00ff9e449
[ "MIT" ]
null
null
null
# Time complexity: O(n^3 log n + klogk) # Space complexity: O(k)
40.233333
79
0.386081
d9195ec624a625dc9f48ad46dd07237c5aa0c88b
36
py
Python
pysrc/qulacs/observable/__init__.py
kodack64/qulacs-osaka
4ccc3ff084f10942e22d8663a01ed67efd24d9f7
[ "MIT" ]
4
2022-01-26T06:56:00.000Z
2022-03-18T02:07:24.000Z
pysrc/qulacs/observable/__init__.py
kodack64/qulacs-osaka
4ccc3ff084f10942e22d8663a01ed67efd24d9f7
[ "MIT" ]
104
2021-11-12T04:15:02.000Z
2022-03-30T05:12:20.000Z
pysrc/qulacs/observable/__init__.py
kodack64/qulacs-osaka
4ccc3ff084f10942e22d8663a01ed67efd24d9f7
[ "MIT" ]
3
2021-12-19T11:52:38.000Z
2022-03-09T04:20:17.000Z
from qulacs_core.observable import *
36
36
0.861111
d91c58edfa632d450e7b4251fff4c575497a2fac
112
py
Python
tests/run_win32.py
gitter-badger/pywebview
2770330bc265b65dedd7874d579c2c9fde22159e
[ "BSD-3-Clause" ]
1
2021-11-22T05:24:27.000Z
2021-11-22T05:24:27.000Z
tests/run_win32.py
gitter-badger/pywebview
2770330bc265b65dedd7874d579c2c9fde22159e
[ "BSD-3-Clause" ]
null
null
null
tests/run_win32.py
gitter-badger/pywebview
2770330bc265b65dedd7874d579c2c9fde22159e
[ "BSD-3-Clause" ]
3
2021-02-09T22:27:34.000Z
2021-12-28T14:49:23.000Z
import os import pytest if __name__ == '__main__': os.environ['PYWEBVIEW_GUI'] = 'win32' pytest.main()
16
41
0.669643
d91e35173511d5d8fbee9e59f28c3b555be9327e
6,610
py
Python
osbot_browser/view_helpers/Node_Format.py
pbx-gs/OSBot_browser
029d0d872a13b537ee0a99db3ed8b5ce9a50ce65
[ "Apache-2.0" ]
null
null
null
osbot_browser/view_helpers/Node_Format.py
pbx-gs/OSBot_browser
029d0d872a13b537ee0a99db3ed8b5ce9a50ce65
[ "Apache-2.0" ]
4
2021-02-17T00:33:39.000Z
2021-02-26T01:51:08.000Z
osbot_browser/view_helpers/Node_Format.py
pbx-gs/OSBot_browser
029d0d872a13b537ee0a99db3ed8b5ce9a50ce65
[ "Apache-2.0" ]
3
2021-02-17T01:04:49.000Z
2021-04-30T06:27:11.000Z
from osbot_utils.utils import Misc
40.802469
120
0.472163
d9218f78cebdd85b76c7f48a2f25369d9d4e7b11
1,161
py
Python
test/test_diaphite_creator.py
graceday/DiaphiteCreator
1a07db1890f1b8ab2ab0b78266ded3c3d023fbe8
[ "MIT" ]
null
null
null
test/test_diaphite_creator.py
graceday/DiaphiteCreator
1a07db1890f1b8ab2ab0b78266ded3c3d023fbe8
[ "MIT" ]
null
null
null
test/test_diaphite_creator.py
graceday/DiaphiteCreator
1a07db1890f1b8ab2ab0b78266ded3c3d023fbe8
[ "MIT" ]
1
2021-01-08T12:07:01.000Z
2021-01-08T12:07:01.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jan 6 13:17:19 2021 @author: matthew-bailey """ from layer_utils import verify_layer_sequence import pytest
24.702128
62
0.589147
d9221f490274b6d01c3d8715693bbdf9e1bb0e14
215
py
Python
backend/forum/rating/apps.py
karolyi/forum-django
a498be3123deb836e0108258c493b88c645b2163
[ "MIT" ]
7
2016-09-20T11:49:49.000Z
2017-06-24T23:51:56.000Z
backend/forum/rating/apps.py
karolyi/forum-django
a498be3123deb836e0108258c493b88c645b2163
[ "MIT" ]
17
2019-12-22T10:41:48.000Z
2021-11-17T10:58:50.000Z
backend/forum/rating/apps.py
karolyi/forum-django
a498be3123deb836e0108258c493b88c645b2163
[ "MIT" ]
1
2016-09-20T11:50:57.000Z
2016-09-20T11:50:57.000Z
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _
23.888889
55
0.744186
d92249e728b743bce9764f30eab79800d5ad0fae
1,941
py
Python
main.py
yunzhe99/Hadoop_Scheduling
938afd0fa21f5c6a845e4f0d0a44a3b0355cd63b
[ "MIT" ]
null
null
null
main.py
yunzhe99/Hadoop_Scheduling
938afd0fa21f5c6a845e4f0d0a44a3b0355cd63b
[ "MIT" ]
null
null
null
main.py
yunzhe99/Hadoop_Scheduling
938afd0fa21f5c6a845e4f0d0a44a3b0355cd63b
[ "MIT" ]
null
null
null
from env import ResourceScheduler from sample_fun import sol_init, sample from tools import maxtf_job import numpy as np from SA import SAoptimizer import joblib rs = ResourceScheduler(taskType=1, caseID=2) b=rs.max_k block_size=rs.dataSize s_list=rs.Sc if rs.taskType==2: s_t=rs.St alpha=rs.alpha block_location=...
28.544118
109
0.66306
d9252963c72fb24c578df3942faf14a4e346ebe3
5,743
py
Python
sirepo/template/zgoubi_importer.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
1
2019-06-06T08:08:11.000Z
2019-06-06T08:08:11.000Z
sirepo/template/zgoubi_importer.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
sirepo/template/zgoubi_importer.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u"""zgoubi datafile parser :copyright: Copyright (c) 2018 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkresource from pykern.pkdebug import pkdc, pkdlog, pk...
38.286667
214
0.571827
d9265dcf81c41805c5f7a99bca81b0fb9dd04eb8
737
py
Python
hier/models.py
jtdub/prod2lab
054c922f731ad377b83714194ef806325f79336a
[ "MIT" ]
11
2019-11-20T02:05:30.000Z
2021-08-22T13:15:14.000Z
hier/models.py
jtdub/prod2lab
054c922f731ad377b83714194ef806325f79336a
[ "MIT" ]
12
2019-11-20T02:07:54.000Z
2019-12-11T14:57:59.000Z
hier/models.py
jtdub/prod2lab
054c922f731ad377b83714194ef806325f79336a
[ "MIT" ]
2
2019-11-20T02:05:33.000Z
2019-11-28T01:29:20.000Z
from django.db import models LINEAGE_CHOICES = ( ('startswith', 'startswith'), ('endswith', 'endswith'), ('contains', 'contains'), ('equals', 'equals') )
32.043478
96
0.651289
d9267905d6b584bc0fb605cff41a6b4175a41893
5,606
py
Python
src/moca_modules/moca_bot/MocaBot.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
src/moca_modules/moca_bot/MocaBot.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
src/moca_modules/moca_bot/MocaBot.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
# -- Imports -------------------------------------------------------------------------- from typing import ( Union, Iterable, Tuple, List ) from random import randrange from pathlib import Path from .morph import analyze from .responder import ( RandomResponder, PatternResponder, TemplateResponder, MarkovRespo...
37.373333
117
0.509811
d9275745388d0b0a3a8bfd25bb03902760e66473
7,803
py
Python
tests/regressiontests/admin_validation/models.py
Smarsh/django
ffb738e0f56027e16564a79b709cbf44596c2335
[ "BSD-3-Clause" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
tests/regressiontests/admin_validation/models.py
aprefontaine/TMScheduler
298a332532b9df1d3f6a80b1334630bc106d3b78
[ "BSD-3-Clause" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
tests/regressiontests/admin_validation/models.py
aprefontaine/TMScheduler
298a332532b9df1d3f6a80b1334630bc106d3b78
[ "BSD-3-Clause" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
""" Tests of ModelAdmin validation logic. """ from django.db import models __test__ = {'API_TESTS':""" >>> from django import forms >>> from django.contrib import admin >>> from django.contrib.admin.validation import validate, validate_inline # Regression test for #8027: custom ModelForms with fields/fieldse...
29.445283
173
0.694605
d9275eff44ff89f6a57123da99b8d5c5eef45359
3,284
py
Python
examples/firesat/manager/main_manager.py
code-lab-org/nost-tools
8b325eb8e7798b71e121de0d2bf6ffc09f7b0bc0
[ "BSD-3-Clause" ]
1
2022-01-28T15:20:58.000Z
2022-01-28T15:20:58.000Z
examples/firesat/manager/main_manager.py
code-lab-org/nost-tools
8b325eb8e7798b71e121de0d2bf6ffc09f7b0bc0
[ "BSD-3-Clause" ]
null
null
null
examples/firesat/manager/main_manager.py
code-lab-org/nost-tools
8b325eb8e7798b71e121de0d2bf6ffc09f7b0bc0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ *This application demonstrates a manager synchronizing a test case between disaggregated applications* This manager application leverages the manager template in the NOS-T tools library. The manager template is designed to publish information to specific topics, and any applicat...
51.3125
381
0.671133
d9279dba7d2867af85212e8a633193a6ce1664e9
13,142
py
Python
aardvark/rtc.py
dalyIsaac/PIM_Mini_Tests
6929d2ab2e580333fb8a5487a752d9961da91978
[ "Unlicense" ]
null
null
null
aardvark/rtc.py
dalyIsaac/PIM_Mini_Tests
6929d2ab2e580333fb8a5487a752d9961da91978
[ "Unlicense" ]
null
null
null
aardvark/rtc.py
dalyIsaac/PIM_Mini_Tests
6929d2ab2e580333fb8a5487a752d9961da91978
[ "Unlicense" ]
null
null
null
""" This tests the Real Time Clock (RTC) component of a PIM Mini, using the I2C protocol. These test cases require that a PC is attached to the SDA and SCL lines between the MPU and I2C components in order to use the Aardvark drivers. If the PC is running Linux, it is assumed that it is running a 64-bit version. """ i...
31.068558
99
0.57145
d927bfa448196799560fc20cfcf7802630e193cc
3,235
py
Python
src/streetool/database.py
actionprojecteu/action-tool
b59be1f3beafd57ed8862b81adfa5130153cd158
[ "MIT" ]
null
null
null
src/streetool/database.py
actionprojecteu/action-tool
b59be1f3beafd57ed8862b81adfa5130153cd158
[ "MIT" ]
null
null
null
src/streetool/database.py
actionprojecteu/action-tool
b59be1f3beafd57ed8862b81adfa5130153cd158
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # Copyright (c) 2021 # # See the LICENSE file for details # see the AUTHORS file for authors # ---------------------------------------------------------------------- #-------------------- # System wide imports # ----------...
27.649573
73
0.668934
d9346430111a8af41106559fe25ac25492450502
4,280
py
Python
00.launchPreprocess.py
lgazpio/PhrasIS-baselines
6d0f3b768569f8c23014bb3f9811b870747ab6e7
[ "MIT" ]
1
2021-11-28T11:14:08.000Z
2021-11-28T11:14:08.000Z
00.launchPreprocess.py
lgazpio/PhrasIS-baselines
6d0f3b768569f8c23014bb3f9811b870747ab6e7
[ "MIT" ]
14
2021-10-20T08:16:28.000Z
2021-11-27T09:35:38.000Z
00.launchPreprocess.py
lgazpio/PhrasIS-baselines
6d0f3b768569f8c23014bb3f9811b870747ab6e7
[ "MIT" ]
null
null
null
import pandas as pd import nltk import seaborn as sns import matplotlib.pyplot as plt import numpy as np import os nltk.download('stopwords') nltk.download('punkt') nltk.download('wordnet_ic') nltk.download('genesis') nltk.download('averaged_perceptron_tagger') nltk.download('wordnet') from src.Preprocess import Uti...
28.157895
99
0.762383
d936e969230f9ad7d688f8b84d649a9077cc1436
2,184
py
Python
main/utils.py
Godspower-Eze/savebetter
3b9dc17d9b6395caaeed91fa79976e9c0061f260
[ "MIT" ]
null
null
null
main/utils.py
Godspower-Eze/savebetter
3b9dc17d9b6395caaeed91fa79976e9c0061f260
[ "MIT" ]
null
null
null
main/utils.py
Godspower-Eze/savebetter
3b9dc17d9b6395caaeed91fa79976e9c0061f260
[ "MIT" ]
null
null
null
import hmac import hashlib from typing import Optional import json from hdwallet import BIP44HDWallet from hdwallet.cryptocurrencies import EthereumMainnet from hdwallet.derivations import BIP44Derivation from hdwallet.utils import generate_mnemonic from decouple import config
32.597015
124
0.779304
d939e2da8bc9779856cf5b9b6ca1c116a4880d8f
214
py
Python
tests/context.py
gazzar/scientific-project-structure
59020f2d391f3b816f80cb7d11cb2397a141d271
[ "BSD-3-Clause" ]
1
2016-11-14T02:30:24.000Z
2016-11-14T02:30:24.000Z
tests/context.py
gazzar/tmm_model
b50a8cb2d58e70333015c0ecf5759d887f785047
[ "BSD-3-Clause" ]
3
2016-06-10T02:04:40.000Z
2016-06-10T02:05:47.000Z
tests/context.py
gazzar/scientific-project-structure
59020f2d391f3b816f80cb7d11cb2397a141d271
[ "BSD-3-Clause" ]
null
null
null
import os import sys PATH_HERE = os.path.abspath(os.path.dirname(__file__)) sys.path = [ os.path.join(PATH_HERE, '..'), os.path.join(PATH_HERE, '..', '..'), # include path to version.py ] + sys.path
26.75
72
0.626168
d939e93b7ad1bb2b8301e5e1485a6e64b91cf39c
2,528
py
Python
src/opencmiss/utils/iron/bindings/python/opencmiss/iron/_utils.in.py
tsalemink/opencmiss.utils
c727d9b922330e3ca38967fa7dbe6480f698f9a2
[ "Apache-2.0" ]
null
null
null
src/opencmiss/utils/iron/bindings/python/opencmiss/iron/_utils.in.py
tsalemink/opencmiss.utils
c727d9b922330e3ca38967fa7dbe6480f698f9a2
[ "Apache-2.0" ]
null
null
null
src/opencmiss/utils/iron/bindings/python/opencmiss/iron/_utils.in.py
tsalemink/opencmiss.utils
c727d9b922330e3ca38967fa7dbe6480f698f9a2
[ "Apache-2.0" ]
null
null
null
"""Utility routines and classes used by OpenCMISS """ def wrap_cmiss_routine(routine, args=None): """Wrap a call to the OpenCMISS SWIG module Call the routine and check the return value, and raise an exception if it is non-zero. Return any other remaining return values. """ if args is None...
32
82
0.598101
d93bfba4772e6da4fcb48210e144b771e7a65dca
269
py
Python
app/vendor/serializers.py
ToddPeterson/food-truck-api
20de03771abcfb6a689f02519c11b630bad87fbf
[ "MIT" ]
null
null
null
app/vendor/serializers.py
ToddPeterson/food-truck-api
20de03771abcfb6a689f02519c11b630bad87fbf
[ "MIT" ]
null
null
null
app/vendor/serializers.py
ToddPeterson/food-truck-api
20de03771abcfb6a689f02519c11b630bad87fbf
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Vendor
20.692308
52
0.669145
d93c452f540d6485a4e8b95f0fec1e2f27b16d74
753
py
Python
glyphrepository/comment/forms.py
BDAthlon/2017-Triple_Helix-1
3aa17be9a69af5d97e151a0be7ce7a1d8ad4f473
[ "BSD-3-Clause" ]
1
2018-04-15T14:33:58.000Z
2018-04-15T14:33:58.000Z
glyphrepository/comment/forms.py
BDAthlon/2017-Triple_Helix-1
3aa17be9a69af5d97e151a0be7ce7a1d8ad4f473
[ "BSD-3-Clause" ]
5
2017-08-16T16:40:32.000Z
2017-08-22T16:30:21.000Z
glyphrepository/comment/forms.py
BDAthlon/2017-Triple_Helix-1
3aa17be9a69af5d97e151a0be7ce7a1d8ad4f473
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Comment forms.""" from flask_wtf import Form from wtforms import StringField, SelectField, TextAreaField from wtforms.validators import DataRequired
26.892857
68
0.63745
d93c68b7594e29fecfa2bfa50b8038a9a3d2d4b1
320
py
Python
pypy/translator/cli/test/test_backendopt.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/translator/cli/test/test_backendopt.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/translator/cli/test/test_backendopt.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
import py from pypy.translator.cli.test.runtest import compile_function from pypy.translator.oosupport.test_template.backendopt import BaseTestOptimizedSwitch
40
86
0.83125
d93f089d4756a20eb4d6209bed2de2de89f12410
103
py
Python
atws/monkeypatch/__init__.py
cyclops26/python-atws
764f93a35982c49066f03354c79670d7defe0bb7
[ "MIT" ]
34
2016-04-17T13:11:53.000Z
2021-12-30T21:39:34.000Z
atws/monkeypatch/__init__.py
cyclops26/python-atws
764f93a35982c49066f03354c79670d7defe0bb7
[ "MIT" ]
68
2015-10-23T08:11:49.000Z
2021-11-29T15:58:59.000Z
atws/monkeypatch/__init__.py
cyclops26/python-atws
764f93a35982c49066f03354c79670d7defe0bb7
[ "MIT" ]
21
2016-08-02T20:33:25.000Z
2022-01-04T21:56:20.000Z
from __future__ import absolute_import from .duckpunch import DuckPunch monkey_patch = DuckPunch()
25.75
38
0.815534
d94298327bf34955edd46abce7dd5352b7d93650
8,417
py
Python
static/entities/Player.py
FreedomChal/warring-wizards
8d2ee43b037eb26685df831f3f611b0bc69686a6
[ "MIT" ]
null
null
null
static/entities/Player.py
FreedomChal/warring-wizards
8d2ee43b037eb26685df831f3f611b0bc69686a6
[ "MIT" ]
null
null
null
static/entities/Player.py
FreedomChal/warring-wizards
8d2ee43b037eb26685df831f3f611b0bc69686a6
[ "MIT" ]
null
null
null
import os import sys from datetime import datetime ROOT_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) + "/../../" # Include application directories in the path to allow imports sys.path.insert(1, ROOT_DIRECTORY + "/static/database/connections/") sys.path.insert(1, ROOT_DIRECTORY + "/static/entity_interactio...
24.755882
97
0.627896
d943de748e02373922699a49ba644644f0bcc282
10,176
py
Python
src/pip/_internal/req/req_set.py
smartsammler/pip
54b983c2bd56dfbd61bbcc2dcc9177d4e55e25af
[ "MIT" ]
null
null
null
src/pip/_internal/req/req_set.py
smartsammler/pip
54b983c2bd56dfbd61bbcc2dcc9177d4e55e25af
[ "MIT" ]
null
null
null
src/pip/_internal/req/req_set.py
smartsammler/pip
54b983c2bd56dfbd61bbcc2dcc9177d4e55e25af
[ "MIT" ]
null
null
null
from __future__ import absolute_import import logging from collections import OrderedDict, defaultdict from pip._internal.exceptions import InstallationError from pip._internal.utils.logging import indent_log from pip._internal.wheel import Wheel logger = logging.getLogger(__name__)
41.365854
79
0.568789
d9448f6992e40343164df8308934df8ae976ed0c
1,221
py
Python
prml/nn/math/product.py
brunomaga/PRML
47d9830b39e91690cedb27003934df85cfb8c5c7
[ "MIT" ]
11,017
2017-07-03T03:06:25.000Z
2022-03-30T18:47:20.000Z
prml/nn/math/product.py
brunomaga/PRML
47d9830b39e91690cedb27003934df85cfb8c5c7
[ "MIT" ]
21
2017-08-13T01:35:41.000Z
2022-03-21T06:25:09.000Z
prml/nn/math/product.py
brunomaga/PRML
47d9830b39e91690cedb27003934df85cfb8c5c7
[ "MIT" ]
3,417
2017-07-05T12:55:52.000Z
2022-03-30T18:47:27.000Z
import numpy as np from prml.nn.function import Function def prod(x, axis=None, keepdims=False): """ product of all element in the array Parameters ---------- x : tensor_like input array axis : int, tuple of ints axis or axes along which a product is performed keepdims : b...
25.978723
63
0.588043
d946e22336f8899a700120b3a1bfde63a8d95c39
10,212
py
Python
datahub/company/test/test_models.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/company/test/test_models.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/company/test/test_models.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
import factory import pytest from django.conf import settings from django.db.utils import IntegrityError from datahub.company.models import OneListTier from datahub.company.test.factories import ( AdviserFactory, CompanyExportCountryFactory, CompanyExportCountryHistoryFactory, CompanyFactory, Conta...
36.602151
97
0.627301
d946ff722b5918ac722789e72e96cf22287cecf4
18
py
Python
tornado/version.py
hhru/tornado
0faa69c3c98049f4542546a686d03bd94bdf070a
[ "Apache-2.0" ]
1
2016-07-01T07:48:01.000Z
2016-07-01T07:48:01.000Z
tornado/version.py
hhru/tornado
0faa69c3c98049f4542546a686d03bd94bdf070a
[ "Apache-2.0" ]
2
2016-07-01T08:00:14.000Z
2017-11-23T07:36:05.000Z
tornado/version.py
hhru/tornado
0faa69c3c98049f4542546a686d03bd94bdf070a
[ "Apache-2.0" ]
null
null
null
version = '5.1.1'
9
17
0.555556
d9477b99dc5c9b4dec59baa7496f0474f97bb9a5
4,334
py
Python
src/python/pants/backend/project_info/cloc.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/cloc.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/project_info/cloc.py
gshuflin/pants
cf483ead6d4d4a4cc4fc4ae18e3b5b633509d933
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from typing import cast from pants.core.util_rules.external_tool import ( DownloadedExternalTool, ExternalTool, ExternalToolRequest, ) from pants.engine.console import Console...
30.737589
109
0.684126
d947fc611594ec71687b8d96f0a9a4133ec9714f
3,462
py
Python
libstrategy/libstrategy/workflow/event_pair_trading.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
1
2021-07-12T11:20:58.000Z
2021-07-12T11:20:58.000Z
libstrategy/libstrategy/workflow/event_pair_trading.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
null
null
null
libstrategy/libstrategy/workflow/event_pair_trading.py
FrederichRiver/neutrino3
c16c6ea824999c012252d0e281473a6ab13fd38e
[ "BSD-3-Clause" ]
null
null
null
from dev_global.path import SQL_FILE from libmysql_utils.mysql8 import mysqlHeader from libstrategy.strategy.pair_trading import PairTradeStrategy, kalman_param_evalue from libstrategy.data_engine.data_engine import StockData from libbasemodel.stock_model import StockBase from libmysql_utils.header import REMOTE_HEADER...
38.043956
126
0.611496
d94893cad69bb2af90a8bc9408e28c22afffd86f
4,967
py
Python
scrape_mars_two.py
mfbadgley/WebScrapingHW
94ba69b8008fbf0254d4ccc62702ac27140aaf93
[ "MIT" ]
null
null
null
scrape_mars_two.py
mfbadgley/WebScrapingHW
94ba69b8008fbf0254d4ccc62702ac27140aaf93
[ "MIT" ]
null
null
null
scrape_mars_two.py
mfbadgley/WebScrapingHW
94ba69b8008fbf0254d4ccc62702ac27140aaf93
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from splinter import Browser import requests import pymongo import time import pandas as pd
39.110236
157
0.681297
d948c452c85779664e4a5dbf95cd9a8458d4f86d
478
py
Python
mezzanine_live_tile/__init__.py
mush42/mezzanine-live-tile
28dd6cb1af43f25c50e724f141b5dd00f4f166e7
[ "MIT" ]
1
2019-08-12T23:38:40.000Z
2019-08-12T23:38:40.000Z
mezzanine_live_tile/__init__.py
mush42/mezzanine-live-tile
28dd6cb1af43f25c50e724f141b5dd00f4f166e7
[ "MIT" ]
null
null
null
mezzanine_live_tile/__init__.py
mush42/mezzanine-live-tile
28dd6cb1af43f25c50e724f141b5dd00f4f166e7
[ "MIT" ]
1
2019-08-12T23:38:43.000Z
2019-08-12T23:38:43.000Z
""" Check that we have a valid class to work upon in our live tile notifications """ from django.core.exceptions import ImproperlyConfigured from mezzanine.utils.importing import import_dotted_path from mezzanine.conf import settings model_class_path, fields = settings.WINDOWS_TILE_MODEL try: import_dotted_path(mode...
34.142857
123
0.83682
d94acc32935a9b2c237d45c31b14c2f760483cc4
27,573
py
Python
smol/parser/parser.py
HKGx/smolmath
f9abf0a6dfb69f110ff24ab6a9995117a371ee02
[ "MIT" ]
6
2021-11-08T22:17:51.000Z
2021-11-25T18:29:35.000Z
smol/parser/parser.py
HKGx/smol
f9abf0a6dfb69f110ff24ab6a9995117a371ee02
[ "MIT" ]
15
2021-11-08T22:17:04.000Z
2021-12-03T02:31:46.000Z
smol/parser/parser.py
HKGx/smolmath
f9abf0a6dfb69f110ff24ab6a9995117a371ee02
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from textwrap import dedent from typing import Literal from smol.parser.expressions import * from smol.parser.statements import * from smol.lexer import Token, Lexer, TokenType from smol.utils import StageContext def edges(self, start: Token) -> tuple[Token, Token]: ...
45.425041
161
0.606354
d94be05384a0fe7fdc4637e011c1c316b1671208
10,375
py
Python
retrieverdash/dashboard_script/status_dashboard_tools.py
kkothari2001/retrieverdash
15f1648e745d9c3afa3d158252fb3928446bc81c
[ "MIT" ]
5
2018-02-06T05:24:56.000Z
2020-02-22T22:19:03.000Z
retrieverdash/dashboard_script/status_dashboard_tools.py
kkothari2001/retrieverdash
15f1648e745d9c3afa3d158252fb3928446bc81c
[ "MIT" ]
45
2018-02-06T16:57:21.000Z
2021-11-05T08:38:20.000Z
retrieverdash/dashboard_script/status_dashboard_tools.py
henrykironde/retrieverdash
7898a2ec866e242deb453331eb81fe0dc7ffaf44
[ "MIT" ]
10
2018-02-06T04:49:39.000Z
2021-05-12T09:27:36.000Z
import json import os from difflib import HtmlDiff from shutil import rmtree, move, copytree from tempfile import mkdtemp from retriever import reload_scripts from retriever.engines import engine_list, postgres from retriever.lib.defaults import HOME_DIR from retriever.lib.engine_tools import getmd5 sqlite_engine = [...
37.053571
144
0.607807
d94d7947c9a4ddd620d777e32e2a6a1f27111830
863
py
Python
tests/resnet50_test.py
zzzDavid/pytorch2caffe
977a884cfdec72de888fdf7a85c96c2ab9597f73
[ "MIT" ]
4
2020-09-24T11:53:54.000Z
2021-11-24T07:53:27.000Z
tests/resnet50_test.py
zzzDavid/pytorch2caffe
977a884cfdec72de888fdf7a85c96c2ab9597f73
[ "MIT" ]
null
null
null
tests/resnet50_test.py
zzzDavid/pytorch2caffe
977a884cfdec72de888fdf7a85c96c2ab9597f73
[ "MIT" ]
null
null
null
from resnet import resnet50, resnet18 from pytorch2caffe.converter import pytorch2caffe_converter import numpy as np from torch.autograd import Variable import torch import torch.nn as nn if __name__ == "__main__": model = resnet50(pretrained=False) # model = test_model() new_height = 224 new_width = 2...
34.52
81
0.754345
d94da259a083c7c224a32cebf4f35591bd9a5d84
812
py
Python
yuntu/soundscape/utils.py
CONABIO/yuntu
5ffb3bff88397d1e929d8bd76998cccff2c45db9
[ "MIT" ]
null
null
null
yuntu/soundscape/utils.py
CONABIO/yuntu
5ffb3bff88397d1e929d8bd76998cccff2c45db9
[ "MIT" ]
3
2021-09-08T01:43:34.000Z
2022-03-12T00:17:23.000Z
yuntu/soundscape/utils.py
CONABIO-audio/yuntu
5ffb3bff88397d1e929d8bd76998cccff2c45db9
[ "MIT" ]
3
2021-08-22T05:54:02.000Z
2021-10-29T21:43:03.000Z
from yuntu.core.common.utils import loadMethod,loadMethodFromFile import itertools
25.375
84
0.597291
d94e47f662699d2cc3d5d385b3261452d0f31c95
329
py
Python
db.py
joeyw526/Personal
52849526810f9b11947aeabafe56ecabbc68f04f
[ "MIT" ]
null
null
null
db.py
joeyw526/Personal
52849526810f9b11947aeabafe56ecabbc68f04f
[ "MIT" ]
null
null
null
db.py
joeyw526/Personal
52849526810f9b11947aeabafe56ecabbc68f04f
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relation, sessionmaker from sqlalchemy import create_engine Base = declarative_base() #replace with config setting for database import config database_engine = create_engine(config.database_config) Session = sessionmaker(bind=database_...
27.416667
55
0.851064
d94e76bda89a4e5d58eba118acd5b7f1feaf3dc7
16,968
py
Python
blog/modules/admin/views.py
feel-easy/flask_blog
dd4f9b1bec85e32fa4080f638e2b7034ad16ef4c
[ "Apache-2.0" ]
1
2019-03-19T11:00:44.000Z
2019-03-19T11:00:44.000Z
blog/modules/admin/views.py
feel-easy/flask_blog
dd4f9b1bec85e32fa4080f638e2b7034ad16ef4c
[ "Apache-2.0" ]
6
2021-03-18T22:44:46.000Z
2022-03-11T23:42:59.000Z
blog/modules/admin/views.py
feel-easy/flask_blog
dd4f9b1bec85e32fa4080f638e2b7034ad16ef4c
[ "Apache-2.0" ]
null
null
null
import time from datetime import datetime, timedelta from flask import g, render_template, request, session, redirect, url_for, jsonify, current_app, abort from blog import constants, db from blog.models import User, Category, Blogs from blog.utils.commons import login_required # from blog.utils.image_storage import ...
30.572973
117
0.635431
d94ef46683345a5e9d4b18515c76bf795cbfd352
2,983
py
Python
app.py
duplxey/flask-stripe-subscriptions
8de12bd8ebf54245dcbe189c8f827b20beab4dae
[ "MIT" ]
7
2020-10-31T17:56:29.000Z
2021-09-28T21:57:02.000Z
app.py
duplxey/flask-stripe-subscriptions
8de12bd8ebf54245dcbe189c8f827b20beab4dae
[ "MIT" ]
2
2020-11-16T00:02:11.000Z
2020-12-10T20:01:39.000Z
app.py
duplxey/flask-stripe-subscriptions
8de12bd8ebf54245dcbe189c8f827b20beab4dae
[ "MIT" ]
1
2020-10-25T19:43:25.000Z
2020-10-25T19:43:25.000Z
import os import stripe from flask import Flask, jsonify, render_template, request app = Flask(__name__) stripe_keys = { "secret_key": os.environ["STRIPE_SECRET_KEY"], "publishable_key": os.environ["STRIPE_PUBLISHABLE_KEY"], "price_id": os.environ["STRIPE_PRICE_ID"], "endpoint_secret": os.environ["ST...
27.366972
90
0.645994
d94f355bf74d7d3baca7cf65aac397ef896ecee5
1,911
py
Python
functions/time.py
leonardobiffi/aws-schedule-instances
fe610c4dfe85c656c80158d9aa5481df49293426
[ "Apache-2.0" ]
1
2020-09-27T00:37:52.000Z
2020-09-27T00:37:52.000Z
functions/time.py
leonardobiffi/aws-schedule-instances
fe610c4dfe85c656c80158d9aa5481df49293426
[ "Apache-2.0" ]
null
null
null
functions/time.py
leonardobiffi/aws-schedule-instances
fe610c4dfe85c656c80158d9aa5481df49293426
[ "Apache-2.0" ]
2
2020-09-25T11:42:10.000Z
2021-07-05T19:53:55.000Z
import time, pytz from datetime import datetime, timedelta from logger.main import * def get_day_hh(event, resource): """ Get current day + hour (using gmt by default if time parameter not set) """ time_zone = os.getenv('TIME', 'gmt') if time_zone == 'local': hh = int(time.strftime("%H", ...
39
113
0.58922
d95089ac45382ea62bda7afd15273355861f506a
386
py
Python
propius/basic.py
dafevara/propius
6518b07cd6f054cdc263a1f0d661172e6e0c2736
[ "Apache-2.0" ]
2
2021-06-18T18:22:25.000Z
2021-06-18T21:20:41.000Z
propius/basic.py
dafevara/propius
6518b07cd6f054cdc263a1f0d661172e6e0c2736
[ "Apache-2.0" ]
null
null
null
propius/basic.py
dafevara/propius
6518b07cd6f054cdc263a1f0d661172e6e0c2736
[ "Apache-2.0" ]
null
null
null
import utils import model import pandas as pd dictionary = pd.read_csv( '/.../dictionary.csv' ) item_occurrences = utils.stream_csv( '/.../item_co_occurrences.csv' ) sim_model = model.SimilarityModel( dictionary, item_occurrences, 1_234_567 # num of occurrences must be previously known ) sim_mo...
17.545455
60
0.73057
d950aa076644a7239928f3f04ea00a67aa2acbf0
1,043
py
Python
python/model/webrequest_tor.py
fulanull/public_pentest
eab51332ffe579f5cf31d306d9bd2a13fe01ed0d
[ "MIT" ]
null
null
null
python/model/webrequest_tor.py
fulanull/public_pentest
eab51332ffe579f5cf31d306d9bd2a13fe01ed0d
[ "MIT" ]
null
null
null
python/model/webrequest_tor.py
fulanull/public_pentest
eab51332ffe579f5cf31d306d9bd2a13fe01ed0d
[ "MIT" ]
null
null
null
import requests import urllib3 adddress = "http://businesscorp.com.br" #https://urllib3.readthedocs.io/en/latest/user-guide.html #webrequest() urllibExample()
24.255814
57
0.627996
d951c0cbb81063ca9c91afc7ee273fca6235590f
15,453
py
Python
src/api/comment.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
216
2015-01-05T12:48:10.000Z
2022-03-08T00:12:23.000Z
src/api/comment.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
55
2015-02-28T12:10:26.000Z
2020-11-18T17:45:16.000Z
src/api/comment.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
34
2015-05-02T15:15:10.000Z
2020-06-15T19:20:37.000Z
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2017 the Critic contributors, Opera Software ASA # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LI...
36.020979
80
0.649583
d952728ac3c2edc59b407ad151d23d9a1d583602
6,329
py
Python
Lab2/lab2.py
neseleznev/urfu-CompExp
33101e34c6df893b0b19517d694dc55dc7e98f6f
[ "MIT" ]
null
null
null
Lab2/lab2.py
neseleznev/urfu-CompExp
33101e34c6df893b0b19517d694dc55dc7e98f6f
[ "MIT" ]
null
null
null
Lab2/lab2.py
neseleznev/urfu-CompExp
33101e34c6df893b0b19517d694dc55dc7e98f6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- # Nikita Seleznev, 2015 import math def dichotomy(functions, m_and_Ms, a, b, eps): """Dichotomy: """ f = functions[0] x = [] while True: mid = (a + b) / 2.0 x.append(mid) if abs(a - b) < eps: return x, mid, len(x) ...
27.16309
87
0.457892
d9528d6299f7d88791b98adf4c744b74d43e407f
798
py
Python
setup.py
ZA-3278-PH0/flitton-fib-py
9bb7cd76a8bac4ef0da5392383aa0f55b72d30b1
[ "MIT" ]
null
null
null
setup.py
ZA-3278-PH0/flitton-fib-py
9bb7cd76a8bac4ef0da5392383aa0f55b72d30b1
[ "MIT" ]
null
null
null
setup.py
ZA-3278-PH0/flitton-fib-py
9bb7cd76a8bac4ef0da5392383aa0f55b72d30b1
[ "MIT" ]
null
null
null
from importlib.metadata import entry_points from setuptools import find_packages, setup with open("README.md", "r") as fh: long_description = fh.read() setup( name="flitton_fib_py", version=("0.0.1"), author=("KKK"), author_email=("KKK@ggmail.com"), description="Calculates a Fibonacci number",...
27.517241
64
0.62406
d9533496a7718507a668b5190fc89452cbb73d39
229
py
Python
launchpad/explorer.py
mikbukow/launchpad
ab599a36c0d4dc5deac9fcafc3b1eae13559d18b
[ "MIT" ]
2
2018-09-21T20:13:54.000Z
2018-09-24T23:13:15.000Z
launchpad/explorer.py
codingandcommunity/curriculumAPI
92ca773155e2b39acd6f32b6a33d94f083c96b72
[ "MIT" ]
null
null
null
launchpad/explorer.py
codingandcommunity/curriculumAPI
92ca773155e2b39acd6f32b6a33d94f083c96b72
[ "MIT" ]
2
2018-10-23T21:05:18.000Z
2018-10-23T21:06:30.000Z
from flask import Blueprint explorer = Blueprint('explorer', __name__, template_folder='templates')
19.083333
71
0.71179
d9538c4d67167c7957034d44e1afcf47efa30834
895
py
Python
setup.py
nrecoder/CardioPy
c5e5a0e5d09611925bb1046ce9d91757baa16a50
[ "BSD-3-Clause" ]
3
2020-04-14T18:35:36.000Z
2021-08-09T05:46:00.000Z
setup.py
nrecoder/CardioPy
c5e5a0e5d09611925bb1046ce9d91757baa16a50
[ "BSD-3-Clause" ]
8
2020-04-17T20:42:53.000Z
2020-06-26T18:22:08.000Z
setup.py
nrecoder/CardioPy
c5e5a0e5d09611925bb1046ce9d91757baa16a50
[ "BSD-3-Clause" ]
3
2020-04-14T18:35:56.000Z
2020-10-08T15:47:07.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name = 'cardiopy', version = "1.0.0", author = "Jackie Gottshall", author_email = "jackie.gottshall@gmail.com", description = "Analysis package for single-lead clinical EKG data", long_description = long_descrip...
25.571429
68
0.681564
d9539fb40b1fbcd00d59d600edb3753c72e45338
2,798
py
Python
lime/scripts/graph_boltzmann_generator/test/test_f.py
choderalab/gin
9082431d8b664699a898c1e2fa490a18737d6e2d
[ "MIT" ]
24
2019-07-20T22:37:09.000Z
2021-07-07T07:13:56.000Z
lime/scripts/graph_boltzmann_generator/test/test_f.py
choderalab/gin
9082431d8b664699a898c1e2fa490a18737d6e2d
[ "MIT" ]
3
2021-05-10T05:29:59.000Z
2022-02-10T00:15:05.000Z
lime/scripts/graph_boltzmann_generator/test/test_f.py
kuano-ai/gimlet
9082431d8b664699a898c1e2fa490a18737d6e2d
[ "MIT" ]
8
2019-08-09T17:30:20.000Z
2021-12-01T13:27:46.000Z
import flow import tensorflow as tf import gin import numpy as np import numpy.testing as npt
37.306667
89
0.401716
d953c2e4063ac11b890c1e9193a951bcbcffcd89
217
py
Python
api/factories/region.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
11
2018-06-11T06:05:12.000Z
2022-03-25T09:31:44.000Z
api/factories/region.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
498
2017-11-07T21:20:13.000Z
2022-03-31T14:37:18.000Z
api/factories/region.py
IFRCGo/ifrcgo-api
c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a
[ "MIT" ]
6
2018-04-11T13:29:50.000Z
2020-07-16T16:52:11.000Z
import factory from factory import fuzzy from .. import models
18.083333
55
0.746544
d95778c06dcc32a096bb83d9966d90fde9bdc449
116
py
Python
tests/example/conflict/__init__.py
scbedd/sphinx-docfx-yaml
1330a6621ccda57c016545e36968f07aef07e4db
[ "Apache-2.0" ]
8
2018-07-28T14:18:04.000Z
2021-10-15T08:21:25.000Z
tests/example/conflict/__init__.py
scbedd/sphinx-docfx-yaml
1330a6621ccda57c016545e36968f07aef07e4db
[ "Apache-2.0" ]
12
2018-07-24T09:03:13.000Z
2021-05-04T18:18:05.000Z
tests/example/conflict/__init__.py
scbedd/sphinx-docfx-yaml
1330a6621ccda57c016545e36968f07aef07e4db
[ "Apache-2.0" ]
11
2017-10-30T09:31:32.000Z
2021-03-11T23:20:12.000Z
# coding: utf-8 """ Package used to test YAML file conflicting. """ from .foo import Foo __all__ = ['Foo']
14.5
48
0.62069
d957e5641c0674253d02d8986b883334eb069876
3,807
py
Python
day13/main.py
Floozutter/aoc-2019-speedrun
e5704b03afccc6edb8f43f19fdf3a338c43a3507
[ "Unlicense" ]
null
null
null
day13/main.py
Floozutter/aoc-2019-speedrun
e5704b03afccc6edb8f43f19fdf3a338c43a3507
[ "Unlicense" ]
null
null
null
day13/main.py
Floozutter/aoc-2019-speedrun
e5704b03afccc6edb8f43f19fdf3a338c43a3507
[ "Unlicense" ]
null
null
null
INPUTPATH = "input.txt" #INPUTPATH = "input-test.txt" with open(INPUTPATH) as ifile: raw = ifile.read() program = tuple(map(int, raw.strip().split(","))) from enum import Enum from itertools import chain, repeat, islice from collections import defaultdict from typing import Dict, Callable, List, Iterable, Optional, C...
26.075342
71
0.618597
d95923901f575ed8c69caacfc964b37df86b4a68
201
py
Python
ephim/cli.py
kirov/ephim
6467bed88e7e8135af42b2fbb5368ccdb3eba969
[ "MIT" ]
null
null
null
ephim/cli.py
kirov/ephim
6467bed88e7e8135af42b2fbb5368ccdb3eba969
[ "MIT" ]
null
null
null
ephim/cli.py
kirov/ephim
6467bed88e7e8135af42b2fbb5368ccdb3eba969
[ "MIT" ]
null
null
null
import os from .library import Library if __name__ == '__main__': main()
15.461538
48
0.681592
d95b1747164effd126c842c9873588e37601ded6
4,401
py
Python
tools/misc/FixTestCasePlacement.py
v-weiguo/test262
a66c978c5f1faafebf90d1bb13774b7f0643e2c9
[ "BSD-3-Clause" ]
null
null
null
tools/misc/FixTestCasePlacement.py
v-weiguo/test262
a66c978c5f1faafebf90d1bb13774b7f0643e2c9
[ "BSD-3-Clause" ]
1
2020-07-28T04:46:04.000Z
2020-07-28T04:46:04.000Z
exhibitor/node_modules/6to5/vendor/test262/tools/misc/FixTestCasePlacement.py
scharissis/liberator
a5a65ec3254b638078470b72aadef928c09e8fdc
[ "MIT" ]
null
null
null
# Copyright (c) 2012 Ecma International. All rights reserved. # Ecma International makes this code available under the terms and conditions set # forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the # "Use Terms"). Any redistribution of this code must retain the above # copyright and this notice...
39.648649
118
0.547148
d95d28ed8153e7a22c49ae9c8faab051f1c3f07a
2,308
py
Python
lib/_types.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
lib/_types.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
lib/_types.py
GaLaXy102/Vacationing
e476f1047deeca8f68897a497716319afab3e7f0
[ "MIT" ]
null
null
null
from enum import Enum, IntEnum from dataclasses import dataclass from typing import List, Dict, Tuple, Set
22.407767
101
0.579289
d95db02ffc75d44f0f7bb3571fc2a0294b03197e
3,484
py
Python
code/UI/ClientExamples/Python/ExampleQuery_QueryGraph_1.py
rtx-travis-tester/RTX
4936eb0d368e3b40d9cdc988cc546a1eb73d0104
[ "MIT" ]
null
null
null
code/UI/ClientExamples/Python/ExampleQuery_QueryGraph_1.py
rtx-travis-tester/RTX
4936eb0d368e3b40d9cdc988cc546a1eb73d0104
[ "MIT" ]
null
null
null
code/UI/ClientExamples/Python/ExampleQuery_QueryGraph_1.py
rtx-travis-tester/RTX
4936eb0d368e3b40d9cdc988cc546a1eb73d0104
[ "MIT" ]
null
null
null
""" This example sends a simple query to the ARAX API. A one-line curl equivalent is: curl -X POST "https://arax.ncats.io/devED/api/arax/v1.0/query?bypass_cache=false" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"asynchronous\":\"stream\",\"message\":{\"query_graph\":{\"edges\":{\"e00\":{...
43.012346
474
0.638634
d95dee6990e01cafe8ea18da947161b5c2afae67
2,576
py
Python
jreast.py
setomits/jreaststatus
f9f48ed24af886a82c58066d87eb183b1941d552
[ "MIT" ]
null
null
null
jreast.py
setomits/jreaststatus
f9f48ed24af886a82c58066d87eb183b1941d552
[ "MIT" ]
null
null
null
jreast.py
setomits/jreaststatus
f9f48ed24af886a82c58066d87eb183b1941d552
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from lxml import html if __name__ == '__main__': import pprint jr = JREast() pprint.pprint(jr.status('')) pprint.pprint(jr.status(''))
27.404255
72
0.403339
d95e97b4ced928aaccfed63f85bbb85da1796d04
217
py
Python
maintenance_calendar/parser/json/json_node_collection_parser.py
Fiware/ops.Maintenance-calendar
636244f70e03ba45c943b68b847cad16ce3b66c8
[ "Apache-2.0" ]
null
null
null
maintenance_calendar/parser/json/json_node_collection_parser.py
Fiware/ops.Maintenance-calendar
636244f70e03ba45c943b68b847cad16ce3b66c8
[ "Apache-2.0" ]
null
null
null
maintenance_calendar/parser/json/json_node_collection_parser.py
Fiware/ops.Maintenance-calendar
636244f70e03ba45c943b68b847cad16ce3b66c8
[ "Apache-2.0" ]
null
null
null
from flask import json from maintenance_calendar.parser.json.json_parser import JSONParser
31
67
0.806452
d95f30f596b67f748d883389b49d496b68057337
795
py
Python
BI-IOS/semester-project/webapp/beecon/polls/models.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
20
2016-05-15T10:39:53.000Z
2022-03-29T00:06:06.000Z
BI-IOS/semester-project/webapp/beecon/polls/models.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
3
2017-05-27T16:44:01.000Z
2019-01-02T21:02:59.000Z
BI-IOS/semester-project/webapp/beecon/polls/models.py
josefdolezal/fit-cvut
6b6abea4232b946246d33290718d6c5007926b63
[ "MIT" ]
11
2018-08-22T21:16:32.000Z
2021-04-10T22:42:34.000Z
import datetime from django.db import models from django.utils import timezone
28.392857
73
0.762264
d9618cffcbe6a16a37c4558bb3fc6f6916594eba
7,713
py
Python
wikipedia_workload/de/uni-stuttgart/iaas/experiments_results/summaryFilePlotAnalysis.py
sgomezsaez/SCARF-Evaluation
a118039ddd62798ca93b78cb968d6ee8b15ec6f2
[ "Apache-2.0" ]
null
null
null
wikipedia_workload/de/uni-stuttgart/iaas/experiments_results/summaryFilePlotAnalysis.py
sgomezsaez/SCARF-Evaluation
a118039ddd62798ca93b78cb968d6ee8b15ec6f2
[ "Apache-2.0" ]
null
null
null
wikipedia_workload/de/uni-stuttgart/iaas/experiments_results/summaryFilePlotAnalysis.py
sgomezsaez/SCARF-Evaluation
a118039ddd62798ca93b78cb968d6ee8b15ec6f2
[ "Apache-2.0" ]
null
null
null
import pandas as pd import utils as ut import constants as cs import matplotlib.pyplot as plt import numpy as np import datetime import calendar import time import math # Create list of files to analyze file_list = createFileList(cs.EXP_RESULTS_DATA_PATH, cs.EXP_RESULTS_DATA_SCENARIOS, cs.SUMMARY_HOURLY_RESULTS_O...
38.758794
175
0.696227
d962c2acb32dee12eda10a25944b61b813dcd7d7
411
py
Python
market/migrations/0005_fiat_details_account_name.py
vuyelwadr/crypto_marketplace
cec2e61d5f7b409801b9f5751b75c12df0def750
[ "MIT" ]
null
null
null
market/migrations/0005_fiat_details_account_name.py
vuyelwadr/crypto_marketplace
cec2e61d5f7b409801b9f5751b75c12df0def750
[ "MIT" ]
null
null
null
market/migrations/0005_fiat_details_account_name.py
vuyelwadr/crypto_marketplace
cec2e61d5f7b409801b9f5751b75c12df0def750
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-30 10:59 from django.db import migrations, models
21.631579
66
0.610706
d96307a72ab6e08464ff6a49b699e6e26811cf9c
1,198
py
Python
docs/examples/ex01.py
bhaveshshrimali/scikit-fem
422e50a0def8ef4d76c597a0eefd14dec55da3e3
[ "BSD-3-Clause" ]
1
2019-12-07T15:28:13.000Z
2019-12-07T15:28:13.000Z
docs/examples/ex01.py
bhaveshshrimali/scikit-fem
422e50a0def8ef4d76c597a0eefd14dec55da3e3
[ "BSD-3-Clause" ]
1
2019-04-17T06:20:49.000Z
2019-04-29T23:49:54.000Z
docs/examples/ex01.py
gdmcbain/scikit-fem
73890816c2142385abf4a9ffcd8d233e2d25e865
[ "BSD-3-Clause" ]
null
null
null
from skfem import * from skfem.helpers import dot, grad # # enable additional mesh validity checks, sacrificing performance # import logging # logging.basicConfig(format='%(levelname)s %(asctime)s %(name)s %(message)s') # logging.getLogger('skfem').setLevel(logging.DEBUG) # create the mesh m = MeshTri().refined(4) # ...
25.489362
78
0.705342
d965de8ac0f83fe2951978c50cee1e3f5ee3ffb3
391
py
Python
covid_19_review/format_data.py
jutzca/Corona-Virus-Meta-Analysis-2020
e8a44f354b0aa81bf42c12dfc95e4cd50fa21b29
[ "BSD-3-Clause" ]
1
2021-06-22T20:19:52.000Z
2021-06-22T20:19:52.000Z
covid_19_review/format_data.py
jutzca/Corona-Virus-Meta-Analysis-2020
e8a44f354b0aa81bf42c12dfc95e4cd50fa21b29
[ "BSD-3-Clause" ]
null
null
null
covid_19_review/format_data.py
jutzca/Corona-Virus-Meta-Analysis-2020
e8a44f354b0aa81bf42c12dfc95e4cd50fa21b29
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd df = pd.read_csv('../data/Corona_review_labor.csv') for col1 in df.columns: if col1.endswith('_Mean'): col2 = col1.replace('_Mean', '') + '_SD' means = df[col1] stds = df[col2] df[col1] = [f'{mean} (+- {std})' for mean, std in zip(means, st...
23
75
0.611253
d965e94766b0c827ffb3e210cf77299cf5db72e5
239
py
Python
sims/__init__.py
jsrehak/sims
b4aa956dcc1996334ba914763e97ebd346b5aefd
[ "BSD-3-Clause" ]
null
null
null
sims/__init__.py
jsrehak/sims
b4aa956dcc1996334ba914763e97ebd346b5aefd
[ "BSD-3-Clause" ]
null
null
null
sims/__init__.py
jsrehak/sims
b4aa956dcc1996334ba914763e97ebd346b5aefd
[ "BSD-3-Clause" ]
null
null
null
from sims.sims import * __version__ = '1.0.0' __name__ = 'sims' __author__ = 'Zan Peeters' __url__ = 'https://github.com/zanpeeters/sims' __license__ = 'BSD 3-Clause Clear' __copyright__ = '(c) 2018 Zan Peeters' __description__ = __doc__
23.9
46
0.732218
d9660c3b3d5b293f95caf4b24320b0b011680b42
1,142
py
Python
test.py
otron/xrootdpyfs-auth-test
0bb9e8baaf185880e4b1d6e0c757dc5b447f8ceb
[ "BSD-3-Clause" ]
null
null
null
test.py
otron/xrootdpyfs-auth-test
0bb9e8baaf185880e4b1d6e0c757dc5b447f8ceb
[ "BSD-3-Clause" ]
null
null
null
test.py
otron/xrootdpyfs-auth-test
0bb9e8baaf185880e4b1d6e0c757dc5b447f8ceb
[ "BSD-3-Clause" ]
null
null
null
import xrootdpyfs import pdb from subprocess import call, PIPE import os from fs.opener import opener def connect_test(): """Do some test connecting awww yeahhhh""" kdestroy() # `klist` is empty (returns 0 when not empty) with open(os.devnull, 'wb') as discard: call(['klist'], stdout=discard...
21.961538
53
0.640981
d967cf4312950c36930cbab16b44aff429db9d2f
2,907
py
Python
lib/deepq.py
vt77/tictactoe
d04da8b10e7536a4e8e64f160bbc94d134c93fad
[ "MIT" ]
null
null
null
lib/deepq.py
vt77/tictactoe
d04da8b10e7536a4e8e64f160bbc94d134c93fad
[ "MIT" ]
null
null
null
lib/deepq.py
vt77/tictactoe
d04da8b10e7536a4e8e64f160bbc94d134c93fad
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' Simple q-learning algorithm implementation MIT License Copyright (c) 2019 Daniel Marchasin (daniel@vt77.com) See LICENSE file ''' import random import logging import pickle dataset = {} history = [] model_filename = 'data/.deepq.pickle' logger = logging.getLogger(__name__) try: datas...
25.278261
88
0.603027
d9698cb3a0ac7d01d79e605cabcecf9b02767f8b
1,192
py
Python
BookExample/Chapter 08/python-shell-code_08.py
godong9/Spark-Study
a3faf6160164b4040f1a0db69d737757d56de4cd
[ "MIT" ]
55
2016-11-08T11:18:35.000Z
2022-02-19T20:45:56.000Z
BookExample/Chapter 08/python-shell-code_08.py
godong9/Spark-Study
a3faf6160164b4040f1a0db69d737757d56de4cd
[ "MIT" ]
null
null
null
BookExample/Chapter 08/python-shell-code_08.py
godong9/Spark-Study
a3faf6160164b4040f1a0db69d737757d56de4cd
[ "MIT" ]
66
2016-10-07T20:43:08.000Z
2022-03-08T07:48:58.000Z
''' This code is intended to be run in the IPython shell. You can enter each line in the shell and see the result immediately. The expected output in the Python console is presented as commented lines following the relevant code. ''' %pylab inline # Populating the interactive namespace from numpy and ...
29.8
91
0.661913
d96d131d2253e3c49d7c95f8f6273353430cd55f
9,566
gyp
Python
third_party/protobuf2/protobuf.gyp
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
11
2015-03-20T04:08:08.000Z
2021-11-15T15:51:36.000Z
third_party/protobuf2/protobuf.gyp
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
null
null
null
third_party/protobuf2/protobuf.gyp
rwatson/chromium-capsicum
b03da8e897f897c6ad2cda03ceda217b760fd528
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'conditions': [ ['OS!="win"', { 'variables': { 'config_h_dir': '.', # crafted for gcc/linux. }, }, { # else, ...
42.705357
75
0.645515
d970c3b12988c0279c5b02039d4e5cba0aa8a847
858
py
Python
get_model_info.py
Rahul-Chandera/TensorFlow-To-CoreML
5dd44f26160280fe114c289512cdc1557ddcfa4d
[ "MIT" ]
null
null
null
get_model_info.py
Rahul-Chandera/TensorFlow-To-CoreML
5dd44f26160280fe114c289512cdc1557ddcfa4d
[ "MIT" ]
null
null
null
get_model_info.py
Rahul-Chandera/TensorFlow-To-CoreML
5dd44f26160280fe114c289512cdc1557ddcfa4d
[ "MIT" ]
null
null
null
import tensorflow as tf import tfcoreml from coremltools.proto import FeatureTypes_pb2 as _FeatureTypes_pb2 import coremltools """FIND GRAPH INFO""" tf_model_path = "./graph.pb" with open(tf_model_path, "rb") as f: serialized = f.read() tf.reset_default_graph() original_gdef = tf.GraphDef() original_gdef.ParseFrom...
33
73
0.61655
d97154d8516e9fbd0041d7ff10fa9ef2abd45bcc
1,551
py
Python
CallApi/serializers.py
michaelgabriel01/Phone_API
13c8a28c5def652dc54ac3b6f7e943201894b6b0
[ "MIT" ]
null
null
null
CallApi/serializers.py
michaelgabriel01/Phone_API
13c8a28c5def652dc54ac3b6f7e943201894b6b0
[ "MIT" ]
null
null
null
CallApi/serializers.py
michaelgabriel01/Phone_API
13c8a28c5def652dc54ac3b6f7e943201894b6b0
[ "MIT" ]
null
null
null
from django.db import models # from django import forms from django.contrib.auth.models import User, Group from rest_framework import serializers from .models import Call, Album
27.210526
94
0.676338
d973628ab6ee40c22b58223cd9fd55fa2a4f5ffd
974
py
Python
GmailWrapper_JE/venv/Lib/site-packages/requests_oauthlib/compliance_fixes/instagram.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
GmailWrapper_JE/venv/Lib/site-packages/requests_oauthlib/compliance_fixes/instagram.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
GmailWrapper_JE/venv/Lib/site-packages/requests_oauthlib/compliance_fixes/instagram.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
try: from urlparse import urlparse, parse_qs except ImportError: from urllib.parse import urlparse, parse_qs from oauthlib.common import add_params_to_uri
36.074074
85
0.673511
d973a425a59c3ab83b8943e2045a9899336edafd
4,047
py
Python
quflow/utils.py
kmodin/quflow
c12bf42929c349e059d85a8d0ff5830b838e8c91
[ "MIT" ]
null
null
null
quflow/utils.py
kmodin/quflow
c12bf42929c349e059d85a8d0ff5830b838e8c91
[ "MIT" ]
null
null
null
quflow/utils.py
kmodin/quflow
c12bf42929c349e059d85a8d0ff5830b838e8c91
[ "MIT" ]
null
null
null
import numpy as np import pyssht from numba import njit from .laplacian.sparse import solve_heat def cart2sph(x, y, z): """ Projection of Cartesian coordinates to spherical coordinates (theta, phi). Parameters ---------- x: ndarray y: ndarray z: ndarray Returns ------- (the...
20.034653
84
0.54806
d974cc50ce4834780269413e35c671561013b84d
841
py
Python
apps/team/views.py
alexyushkin/invoicely
12bbefe51bf79e387c7b739819070c3539708878
[ "MIT" ]
11
2021-02-23T10:32:17.000Z
2022-03-01T16:23:12.000Z
apps/team/views.py
alexyushkin/invoicely
12bbefe51bf79e387c7b739819070c3539708878
[ "MIT" ]
null
null
null
apps/team/views.py
alexyushkin/invoicely
12bbefe51bf79e387c7b739819070c3539708878
[ "MIT" ]
5
2021-03-08T23:29:27.000Z
2021-12-10T11:39:58.000Z
from rest_framework import viewsets from .serializers import TeamSerializer from .models import Team from django.core.exceptions import PermissionDenied
29
85
0.692033
d97f030b51023f698fbb451e0de3f15ec707e45c
332
py
Python
automator/__main__.py
C-CINA/zorro
ac13e6bf9900d11f37dc5910b560c84e285976b1
[ "BSD-2-Clause" ]
8
2016-09-04T01:02:23.000Z
2020-09-10T18:46:41.000Z
automator/__main__.py
C-CINA/zorro
ac13e6bf9900d11f37dc5910b560c84e285976b1
[ "BSD-2-Clause" ]
14
2016-08-30T06:11:52.000Z
2016-09-29T10:17:40.000Z
automator/__main__.py
C-CINA/zorro
ac13e6bf9900d11f37dc5910b560c84e285976b1
[ "BSD-2-Clause" ]
3
2016-09-04T01:02:29.000Z
2020-05-25T12:32:45.000Z
# Instantiate a class if __name__ == '__main__': # Windows multiprocessing safety main()
19.529412
59
0.593373
d97f56aff888b4d9b4df3703f492ca7a3b9637c9
4,286
py
Python
src/networks/resnet.py
yeong95/deep-svdd-campus_town
17ea6c436c7e42c94a9c9756eadff14cd559b803
[ "MIT" ]
null
null
null
src/networks/resnet.py
yeong95/deep-svdd-campus_town
17ea6c436c7e42c94a9c9756eadff14cd559b803
[ "MIT" ]
null
null
null
src/networks/resnet.py
yeong95/deep-svdd-campus_town
17ea6c436c7e42c94a9c9756eadff14cd559b803
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.utils.data import DataLoader torch.set_printoptions(linewidth=120) torch.set_grad_enabled(True) import torchvision from torchvision.transforms import transf...
32.469697
88
0.571395
d97f75b5d098e0b963b82200edc8f417f9c4a5e0
1,117
py
Python
tests/test_issue.py
shibing624/code-autocomplete
f7709149fcfceaa48f6de7faf78ffff46d9d9880
[ "Apache-2.0" ]
3
2022-02-09T13:07:41.000Z
2022-02-22T07:05:05.000Z
tests/test_issue.py
shibing624/code-autocomplete
f7709149fcfceaa48f6de7faf78ffff46d9d9880
[ "Apache-2.0" ]
null
null
null
tests/test_issue.py
shibing624/code-autocomplete
f7709149fcfceaa48f6de7faf78ffff46d9d9880
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import sys import unittest import torch sys.path.append('..') from autocomplete.gpt2_coder import GPT2Coder if __name__ == '__main__': unittest.main()
25.386364
67
0.510295
d981521652a415e3782f47b3a5314943e442bb96
122
py
Python
Backend/bike-manager-be/bike/TipoBike.py
jpdarricarrere/Trabalho_Eng_Software
4a4929878890df312aea4c56dc6c2ce4c5532aa6
[ "MIT" ]
null
null
null
Backend/bike-manager-be/bike/TipoBike.py
jpdarricarrere/Trabalho_Eng_Software
4a4929878890df312aea4c56dc6c2ce4c5532aa6
[ "MIT" ]
null
null
null
Backend/bike-manager-be/bike/TipoBike.py
jpdarricarrere/Trabalho_Eng_Software
4a4929878890df312aea4c56dc6c2ce4c5532aa6
[ "MIT" ]
2
2022-03-20T18:16:45.000Z
2022-03-20T18:22:16.000Z
from enum import Enum
17.428571
29
0.663934
d9815eb7d8852d49d55b95a80090f0b3572672b5
1,942
py
Python
test_natsort/stress_natsort.py
agustinhenze/natsort.debian
1635506f1468a64a369ab76760fed7a11a304120
[ "MIT" ]
null
null
null
test_natsort/stress_natsort.py
agustinhenze/natsort.debian
1635506f1468a64a369ab76760fed7a11a304120
[ "MIT" ]
null
null
null
test_natsort/stress_natsort.py
agustinhenze/natsort.debian
1635506f1468a64a369ab76760fed7a11a304120
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """\ This file contains functions to stress-test natsort, looking for cases that raise an unknown exception. """ from random import randint, sample, choice from string import printable from copy import copy from pytest import fail from natsort import natsorted from natsort.compat.py23 import py2...
35.309091
76
0.614315
d98398329f8f48b015878503c75be7e53518e52e
1,390
py
Python
Python/sha256_file_readfile_chunk.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
Python/sha256_file_readfile_chunk.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
Python/sha256_file_readfile_chunk.py
Suraj-Rajesh/code
3d554c4d1d5cf4bd9d084b8034641c1f6c2a47c9
[ "MIT" ]
null
null
null
# # Pythonic way of iterating over a large file, by reading it chunk by chunk # from hashlib import sha256 from functools import partial # # KEY POINT # # To call 'iter' over a function, the function needs to take no args. # But, in our case, we need to iter over the function, f.read(block_size), # which takes one ...
21.060606
75
0.631655