hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
5156bb09aeb6320103623a5d85bbafb38102db3b
3,610
py
Python
layer_viewer/layer_viewer_widget.py
LucaMarconato/layer_viewer
df65c1343cacd1f26c4340d58d93ea7e8cd00bfc
[ "MIT" ]
null
null
null
layer_viewer/layer_viewer_widget.py
LucaMarconato/layer_viewer
df65c1343cacd1f26c4340d58d93ea7e8cd00bfc
[ "MIT" ]
null
null
null
layer_viewer/layer_viewer_widget.py
LucaMarconato/layer_viewer
df65c1343cacd1f26c4340d58d93ea7e8cd00bfc
[ "MIT" ]
null
null
null
from pyqtgraph.Qt import QtGui from pyqtgraph.dockarea import * from .layer_ctrl_widget import LayerCtrlWidget from .layer_view_widget import LayerViewWidget from .settings_widget import SettingsWidget class LayerViewerWidget(QtGui.QWidget): def __init__(self, gui_style='splitter', parent=None): QtGui.QW...
34.380952
88
0.661496
15bf36b90ab2ac35d590a1b5be136695b696d047
11,980
py
Python
bubbob/ranking.py
fpiesche/bub-n-bros
29f6b77a125aa4ac071f470607c268fcd210a6fb
[ "MIT" ]
1
2021-01-16T22:00:06.000Z
2021-01-16T22:00:06.000Z
bubbob/ranking.py
fpiesche/bub-n-bros
29f6b77a125aa4ac071f470607c268fcd210a6fb
[ "MIT" ]
2
2022-03-18T09:46:12.000Z
2022-03-25T09:36:42.000Z
bubbob/ranking.py
fpiesche/bub-n-bros
29f6b77a125aa4ac071f470607c268fcd210a6fb
[ "MIT" ]
null
null
null
from __future__ import generators import random import boards, images, gamesrv from boards import CELL, HALFCELL from mnstrmap import DigitsMisc, Flood, GreenAndBlue from bubbles import Bubble from bonuses import Points from player import BubPlayer MARGIN = 22 VMARGIN = 12 class RPicture: def __init__(self): ...
30.483461
78
0.518447
4b67f0dcf05247f61fba304d8223c7aa11b19c0c
822
py
Python
2015/D03/D03Q1.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
2015/D03/D03Q1.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
2015/D03/D03Q1.py
buchasia/advent-of-code
f568c6330c8934325913705b39ef8c25a1023057
[ "MIT" ]
null
null
null
def solveProblem(inputPath): houseCoordinates = [] with open(inputPath) as fileP: valueLine = str(fileP.readline()).strip('\n') currentHouseX = 0 currentHouseY = 0 houseCoordinates.append((0, 0)) for direction in valueLine: if direction == '<': ...
26.516129
67
0.527981
f0a0bbe9cc70897c4a9e66624e4454f10489872e
1,949
py
Python
flee/food_modifications.py
timvink/flee
c7901e2a0de70f18c3267236e127ab1c26c8f5e5
[ "BSD-3-Clause" ]
null
null
null
flee/food_modifications.py
timvink/flee
c7901e2a0de70f18c3267236e127ab1c26c8f5e5
[ "BSD-3-Clause" ]
null
null
null
flee/food_modifications.py
timvink/flee
c7901e2a0de70f18c3267236e127ab1c26c8f5e5
[ "BSD-3-Clause" ]
null
null
null
import csv import numpy as np import pandas as pd def initiate_food(): critict = pd.read_csv( "flee/source_data/ssudan2014/food/%IPC3.csv")["Unnamed: 0"] IPC_all = pd.read_csv( "flee/source_data/ssudan2014/food/%IPC3.csv", index_col=0) current_i = 0 return [critict, IPC_all, current_i...
34.803571
77
0.659312
6d655c49a037ef20a930aad2e78d16e5f05af7a1
570
py
Python
pytition/petition/migrations/0009_auto_20200210_0948.py
framabot/Pytition
bfa8372839cecd3615c98db067782f0ae08b49f0
[ "BSD-3-Clause" ]
64
2019-03-07T15:32:37.000Z
2022-03-13T19:05:44.000Z
pytition/petition/migrations/0009_auto_20200210_0948.py
framabot/Pytition
bfa8372839cecd3615c98db067782f0ae08b49f0
[ "BSD-3-Clause" ]
157
2019-02-28T07:32:03.000Z
2021-09-24T07:07:09.000Z
pytition/petition/migrations/0009_auto_20200210_0948.py
framabot/Pytition
bfa8372839cecd3615c98db067782f0ae08b49f0
[ "BSD-3-Clause" ]
33
2019-04-14T23:40:33.000Z
2022-03-25T11:11:05.000Z
# Generated by Django 2.2.9 on 2020-02-10 08:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('petition', '0008_auto_20190922_1805'), ] operations = [ migrations.AddField( model_name='petition', name='paper_sign...
23.75
53
0.596491
abbbc06119dcb36db35288546314cd0e3e05e81f
74
py
Python
layouts/__init__.py
gulshalla/shalla-text-editor
796716ec8b401942ced128738720998401ee54d1
[ "MIT" ]
null
null
null
layouts/__init__.py
gulshalla/shalla-text-editor
796716ec8b401942ced128738720998401ee54d1
[ "MIT" ]
null
null
null
layouts/__init__.py
gulshalla/shalla-text-editor
796716ec8b401942ced128738720998401ee54d1
[ "MIT" ]
null
null
null
__all__ = ['tool_bar', 'format_bar', 'status_bar', 'document', 'menu_bar']
74
74
0.689189
ccfaba5e7384a4da959d2170e20a3fa58fb70f23
1,746
py
Python
tensorflow_gan/examples/stanford_dogs/networks_test.py
trungngv/gan
96868cf638b8b88defa93a691c083da7dd3a5dc0
[ "Apache-2.0" ]
null
null
null
tensorflow_gan/examples/stanford_dogs/networks_test.py
trungngv/gan
96868cf638b8b88defa93a691c083da7dd3a5dc0
[ "Apache-2.0" ]
null
null
null
tensorflow_gan/examples/stanford_dogs/networks_test.py
trungngv/gan
96868cf638b8b88defa93a691c083da7dd3a5dc0
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The TensorFlow GAN Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
31.745455
74
0.741695
0d843c8b68291836b14e27f90275db25fae51bca
103
py
Python
package/rules/pythonhelpers.py
psvenz/mtbmap
67c53dfa0e988b6a816d86c0e4a8cf6b98b2cd5b
[ "MIT" ]
1
2016-01-23T21:45:20.000Z
2016-01-23T21:45:20.000Z
package/rules/pythonhelpers.py
psvenz/mtbmap
67c53dfa0e988b6a816d86c0e4a8cf6b98b2cd5b
[ "MIT" ]
16
2015-07-17T19:31:26.000Z
2016-01-29T12:03:55.000Z
package/rules/pythonhelpers.py
psvenz/mtbmap
67c53dfa0e988b6a816d86c0e4a8cf6b98b2cd5b
[ "MIT" ]
null
null
null
def routename(e): str_list = [] i = 0 for set in e.tagSets: return set.ToString()
17.166667
30
0.543689
b694d3b6160327ae982564059a3695f33c77c550
13,308
py
Python
iast/views/project_report_export.py
zu1kbackup/DongTai-webapi
ef8df93386e010e0113d0c307f0a8146b55a2fdb
[ "Apache-2.0" ]
null
null
null
iast/views/project_report_export.py
zu1kbackup/DongTai-webapi
ef8df93386e010e0113d0c307f0a8146b55a2fdb
[ "Apache-2.0" ]
null
null
null
iast/views/project_report_export.py
zu1kbackup/DongTai-webapi
ef8df93386e010e0113d0c307f0a8146b55a2fdb
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import time from collections import namedtuple from iast.utils import get_model_field from django.db.models import Q from django.http import FileResponse from docx import Document from docx.enum.style import WD_STYLE_TYPE from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.shared import Pt from don...
40.327273
130
0.56034
9396860af2658ab4c70d5935b74dca53d2f5b3ce
1,022
py
Python
dicomtools/visualization.py
stevenengler/dicomtools
6318e7e71628c2bd764de1e5a65f57da0d7f0e94
[ "MIT" ]
3
2017-04-14T02:22:08.000Z
2020-01-14T04:02:07.000Z
dicomtools/visualization.py
stevenengler/dicomtools
6318e7e71628c2bd764de1e5a65f57da0d7f0e94
[ "MIT" ]
null
null
null
dicomtools/visualization.py
stevenengler/dicomtools
6318e7e71628c2bd764de1e5a65f57da0d7f0e94
[ "MIT" ]
null
null
null
import matplotlib.pylab as plt # def plot_slice(dicom_volume, slice_axis, slice_index, figure=None): r''' Plot a single slice (along axis 0, 1, or 2) of a :class:`dicomtools.volume.DicomVolume` using matplotlib. ''' # dimension_indices = [0, 1, 2] dimension_labels = ['Axis {} (mm)'.format(x) for x in range(3)] a...
30.969697
106
0.735812
c9c4fdc6d07fd6b1b9bba8769b16f7ed387cfd51
566
py
Python
script/starships.py
ludusregio/starships
e4ac7ef7df12b248d3e9f7f4da4f196a77387410
[ "MIT" ]
null
null
null
script/starships.py
ludusregio/starships
e4ac7ef7df12b248d3e9f7f4da4f196a77387410
[ "MIT" ]
null
null
null
script/starships.py
ludusregio/starships
e4ac7ef7df12b248d3e9f7f4da4f196a77387410
[ "MIT" ]
null
null
null
import requests import json def get_page(url): resp = requests.get(url) data = json.loads(resp.content) for ship in data["results"]: if ship["pilots"]: print("The ship {} has been piloted by:".format(ship["name"])) for p in ship["pilots"]: r = requests.get(p)...
25.727273
74
0.560071
fed790352e323dbc692cdc98df03267c887b70da
3,851
py
Python
adjust_cityscapes.py
teeekay/CarND-Semantic-Segmentation
5536b8b41bddf31da15159a130058d2bae9b6cdb
[ "MIT" ]
null
null
null
adjust_cityscapes.py
teeekay/CarND-Semantic-Segmentation
5536b8b41bddf31da15159a130058d2bae9b6cdb
[ "MIT" ]
null
null
null
adjust_cityscapes.py
teeekay/CarND-Semantic-Segmentation
5536b8b41bddf31da15159a130058d2bae9b6cdb
[ "MIT" ]
null
null
null
import re import numpy as np import os.path import shutil from PIL import Image from glob import glob import sshelper def resize(city): # resize and manipulate cityscapes images to prep them for use in our model source_folder = '/home/teeekaay/Car-ND/CarND-Semantic-Segmentation/data/cityscapes' image_paths = ...
39.701031
99
0.640093
550a47e7b6330b18263e7d5dd64cf1c46a61bd6b
330
py
Python
stat/diff.py
grakshith/p2psp-experiments
7dff8095ff8d1e0f3c4dde0d0cb11cf9cc9e8e20
[ "MIT" ]
null
null
null
stat/diff.py
grakshith/p2psp-experiments
7dff8095ff8d1e0f3c4dde0d0cb11cf9cc9e8e20
[ "MIT" ]
null
null
null
stat/diff.py
grakshith/p2psp-experiments
7dff8095ff8d1e0f3c4dde0d0cb11cf9cc9e8e20
[ "MIT" ]
1
2021-11-26T22:20:35.000Z
2021-11-26T22:20:35.000Z
#! /usr/bin/env python import sys f1 = open('1.hex','r') f2 = open('2.hex','r') s=f1.read() s2 = f2.read() print(len(s)) print(len(s2)) #print s2 strlen = int(sys.argv[1]) c=s.find(s2[:+strlen]) print(s2[:+strlen]) print str(c/1024)+" chunks "+str(c%1024)+"bytes" s3=s[c:c+1024] #print s3 #print s2[:1024] print(s3==s...
18.333333
50
0.615152
14aa7dc346865037d21993079fb0901fe9b8b06e
2,238
py
Python
reductionAPI/NfaToDfaAndReduction.py
mohamadkhalaj/statemachine-app
a32b9f91e94c1b3257a20d8ab47bbb6bad9fd372
[ "MIT" ]
2
2021-07-06T07:13:07.000Z
2021-07-06T07:15:04.000Z
reductionAPI/NfaToDfaAndReduction.py
mohamadkhalaj/statemachine-app
a32b9f91e94c1b3257a20d8ab47bbb6bad9fd372
[ "MIT" ]
null
null
null
reductionAPI/NfaToDfaAndReduction.py
mohamadkhalaj/statemachine-app
a32b9f91e94c1b3257a20d8ab47bbb6bad9fd372
[ "MIT" ]
5
2021-07-06T10:17:16.000Z
2021-07-07T11:03:59.000Z
import json class NfaToDfaAndReduction(): def __init__(self, input): self.nfa = input self.start = [] self.final = [] self.Alphabet = [] self.isNFA = False self.json2dict() self.initialize() self.CheckLambda() if not self.isNFA: se...
31.971429
87
0.484361
58fec277d0fdbc4893f25765fbe1580eba3306d6
63
py
Python
src/mock_open/__init__.py
hairygeek/mock-open
f2fc8ca92fa167fb470b24482f49b2aef552fe81
[ "MIT" ]
7
2015-08-18T15:44:24.000Z
2021-03-06T18:52:09.000Z
src/mock_open/__init__.py
hairygeek/mock-open
f2fc8ca92fa167fb470b24482f49b2aef552fe81
[ "MIT" ]
9
2015-08-22T17:14:25.000Z
2020-10-10T18:54:38.000Z
src/mock_open/__init__.py
hairygeek/mock-open
f2fc8ca92fa167fb470b24482f49b2aef552fe81
[ "MIT" ]
5
2015-08-21T07:47:36.000Z
2020-09-20T08:53:35.000Z
"""A better mock for file I/O.""" from .mocks import MockOpen
15.75
33
0.68254
0465d97448d1a249d2db0135ac91deea2f8a3c02
1,117
py
Python
test/pyaz/backup/vault/encryption/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
test/pyaz/backup/vault/encryption/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
9
2021-09-24T16:37:24.000Z
2021-12-24T00:39:19.000Z
test/pyaz/backup/vault/encryption/__init__.py
bigdatamoore/py-az-cli
54383a4ee7cc77556f6183e74e992eec95b28e01
[ "MIT" ]
null
null
null
import json, subprocess from .... pyaz_utils import get_cli_name, get_params def update(resource_group, name, encryption_key_id, infrastructure_encryption=None, mi_user_assigned=None, mi_system_assigned=None): params = get_params(locals()) command = "az backup vault encryption update " + params print(c...
34.90625
132
0.683975
49d73723917f35ac4dc9b84a32a7def24cfa4159
4,852
py
Python
spinoffs/inference_gym/inference_gym/tools/stan/sparse_logistic_regression.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2020-02-21T06:30:00.000Z
2021-08-08T19:29:15.000Z
spinoffs/inference_gym/inference_gym/tools/stan/sparse_logistic_regression.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
null
null
null
spinoffs/inference_gym/inference_gym/tools/stan/sparse_logistic_regression.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1
2020-10-19T11:24:40.000Z
2020-10-19T11:24:40.000Z
# Lint as: python3 # Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
30.904459
78
0.687552
9a4ee479dd75f9cf7037261051160a092eba0a91
249
py
Python
imblearn/over_sampling/__init__.py
christophe-rannou/imbalanced-learn
c3f3b0fd9815e206ea63f3f11728f097608bf580
[ "MIT" ]
null
null
null
imblearn/over_sampling/__init__.py
christophe-rannou/imbalanced-learn
c3f3b0fd9815e206ea63f3f11728f097608bf580
[ "MIT" ]
null
null
null
imblearn/over_sampling/__init__.py
christophe-rannou/imbalanced-learn
c3f3b0fd9815e206ea63f3f11728f097608bf580
[ "MIT" ]
null
null
null
""" The :mod:`imblearn.over_sampling` provides a set of method to perform over-sampling. """ from .random_over_sampler import RandomOverSampler from .smote import SMOTE from .adasyn import ADASYN __all__ = ['RandomOverSampler', 'SMOTE', 'ADASYN']
22.636364
61
0.767068
93c6ece5c3cdd2a47ecd11d595772db1068faa1c
7,554
py
Python
agents/agents_minimax/minimax.py
ConnectFourPythonProjekt/Connect4
52273e1cf7eac9def4ee8a0a9680715a85ace1c1
[ "Apache-2.0" ]
null
null
null
agents/agents_minimax/minimax.py
ConnectFourPythonProjekt/Connect4
52273e1cf7eac9def4ee8a0a9680715a85ace1c1
[ "Apache-2.0" ]
null
null
null
agents/agents_minimax/minimax.py
ConnectFourPythonProjekt/Connect4
52273e1cf7eac9def4ee8a0a9680715a85ace1c1
[ "Apache-2.0" ]
null
null
null
import math from agents import common from agents.common import check_end_state as game_state from agents.common import BoardPiece, SavedState, PlayerAction import numpy as np from agents.common import GameState from typing import Optional, Tuple DEPTH = 4 ROW = 6 COL = 7 def generate_move_minimax(board: np.ndarray,...
42.677966
120
0.640985
dbe11de88d2a1069b6fa3157202e845e45dd7be7
27,669
py
Python
test/test_parser.py
harmtemolder/Netscape-Bookmarks-File-Parser
0feed5d0436aee8580b2c24e15985b86cfaa13fb
[ "MIT" ]
17
2020-07-10T14:34:16.000Z
2022-03-31T16:23:03.000Z
test/test_parser.py
harmtemolder/Netscape-Bookmarks-File-Parser
0feed5d0436aee8580b2c24e15985b86cfaa13fb
[ "MIT" ]
5
2020-10-20T08:37:28.000Z
2021-11-04T14:16:40.000Z
test/test_parser.py
harmtemolder/Netscape-Bookmarks-File-Parser
0feed5d0436aee8580b2c24e15985b86cfaa13fb
[ "MIT" ]
4
2020-12-30T03:04:53.000Z
2022-02-08T23:58:21.000Z
import unittest import warnings import NetscapeBookmarksFileParser as Classes import NetscapeBookmarksFileParser.parser as parser attribute_finder = parser.attribute_extractor doc_type = parser.doc_type_extractor folder = parser.folder_tag_extractor shortcut = parser.shortcut_tag_extractor shortcut_handler = parser....
64.197216
2,168
0.72359
df8ab80f2420c006314312a02ab8f829bf71d20b
2,046
py
Python
dps/dps_config.py
e2crawfo/dps
968a87ed8580f58b46e75463d13a5966f4e772eb
[ "Apache-2.0" ]
2
2019-12-18T15:32:57.000Z
2020-11-10T00:23:17.000Z
dps/dps_config.py
e2crawfo/dps
968a87ed8580f58b46e75463d13a5966f4e772eb
[ "Apache-2.0" ]
1
2020-05-02T16:40:59.000Z
2020-05-02T16:40:59.000Z
dps/dps_config.py
e2crawfo/dps
968a87ed8580f58b46e75463d13a5966f4e772eb
[ "Apache-2.0" ]
3
2019-05-02T15:09:36.000Z
2020-11-15T10:33:19.000Z
import numpy as np config = dict( env_name="default_env", exp_name="", scratch_dir="./dps_scratch", make_dirs=True, seed=-1, curriculum=[{}], initial_step=0, initial_stage=0, # "stage,step" - used outside of any stages, to set initial_stage and initial_step for that stage. #...
21.092784
102
0.659824
bf0513d61ce3267280e5acd360361f41e2241594
4,191
py
Python
lib/kubernetes/client/models/v1alpha1_volume_error.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
lib/kubernetes/client/models/v1alpha1_volume_error.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
lib/kubernetes/client/models/v1alpha1_volume_error.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteri...
27.03871
156
0.54116
6033dc69af6a728b37980c45c5f53f09566f1257
16,356
py
Python
lib/streamlit/elements/dataframe_selector.py
jacklinquan/streamlit
3541db48e8b7f893217a0ee8f94297cf23264e24
[ "Apache-2.0" ]
1
2021-07-21T02:59:55.000Z
2021-07-21T02:59:55.000Z
lib/streamlit/elements/dataframe_selector.py
jacklinquan/streamlit
3541db48e8b7f893217a0ee8f94297cf23264e24
[ "Apache-2.0" ]
null
null
null
lib/streamlit/elements/dataframe_selector.py
jacklinquan/streamlit
3541db48e8b7f893217a0ee8f94297cf23264e24
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2021 Streamlit Inc. # # 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 wr...
38.394366
101
0.595317
e6b4f127b5b72566b10911f5a3dc0b93d084a3b1
388
py
Python
Configs.py
rodriguesrenato/raspi-hand-detector
13c980b94aedae3c55a5fe0120669f3bede14144
[ "MIT" ]
1
2020-11-21T21:45:15.000Z
2020-11-21T21:45:15.000Z
Configs.py
rodriguesrenato/raspi-hand-detector
13c980b94aedae3c55a5fe0120669f3bede14144
[ "MIT" ]
null
null
null
Configs.py
rodriguesrenato/raspi-hand-detector
13c980b94aedae3c55a5fe0120669f3bede14144
[ "MIT" ]
null
null
null
import json class Configs: def __init__(self, file): self.file = file; self.data = None; self.load(); def load(self): with open(self.file, 'r') as f: self.data = json.load(f); def save(self): with open(self.file, 'w') as f: json.dump(self.data, f); def set(self, key, value): self.data[key] = v...
16.869565
33
0.621134
5f5ee8fef7c09dd86b5ac52178fb528835cdb572
11,454
py
Python
energyPATHWAYS/_obsolete/old_IO.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
26
2017-02-06T22:57:29.000Z
2022-03-25T20:02:32.000Z
energyPATHWAYS/_obsolete/old_IO.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
65
2016-01-22T01:33:05.000Z
2016-09-03T14:46:08.000Z
energyPATHWAYS/_obsolete/old_IO.py
jdailey/EnergyPATHWAYS
0fb0ead475b6395f6b07fc43fe6c85826ee47d0f
[ "MIT" ]
11
2017-02-24T23:27:36.000Z
2021-10-18T17:33:37.000Z
# -*- coding: utf-8 -*- """ Created on Sat Aug 15 12:55:25 2015 @author: Ben """ # def write_IO(self): # """write IO_table for all supply subsectors and solves for final demand""" # #creates empty IO table with all subsectors # IO_table = pd.DataFrame(0,index = self.subsectors.keys(), # columns = self.subsectors.keys...
65.079545
208
0.551947
59b3f6e679a8c7485f4e7fd6fcf954adcc7d9907
467
py
Python
LeetCode/Python/palindrome_number.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
51
2020-09-27T15:28:05.000Z
2021-09-29T02:07:25.000Z
LeetCode/Python/palindrome_number.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
152
2020-09-27T12:12:12.000Z
2021-10-03T18:22:15.000Z
LeetCode/Python/palindrome_number.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
453
2020-09-27T12:34:35.000Z
2021-10-16T08:33:33.000Z
class Solution(object): def isPalindrome(self, x): """ :type x: int :rtype: bool """ y = int(x) r = 0 while x > 0: r *= 10 r += x % 10 x //= 10 print(r) if r == y: return True else: ...
17.961538
39
0.417559
48a311d97176efd12f491185b06f610755ddfa4b
11,053
py
Python
cocoa_folder/dealornodeal/neural/model_builder.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
12
2021-03-17T05:15:33.000Z
2022-01-19T06:09:21.000Z
cocoa_folder/dealornodeal/neural/model_builder.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
2
2021-05-25T07:28:46.000Z
2022-02-11T01:54:43.000Z
cocoa_folder/dealornodeal/neural/model_builder.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
4
2021-10-11T03:39:38.000Z
2022-02-01T23:58:50.000Z
""" This file is for models creation, which consults options and creates each encoder and decoder accordingly. """ import torch import torch.nn as nn import onmt import onmt.io import onmt.Models import onmt.modules from onmt.modules import Embeddings, ImageEncoder, CopyGenerator from cocoa.neural.models import MeanEn...
40.047101
83
0.631955
1107a682039861adbe09477cd3e1ce78d27b01d4
10,559
py
Python
homeassistant/components/bayesian/binary_sensor.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
5
2020-09-17T21:47:23.000Z
2021-06-04T04:37:29.000Z
homeassistant/components/bayesian/binary_sensor.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
47
2020-07-23T07:14:33.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/bayesian/binary_sensor.py
CrossEyeORG/homeassistant
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
2
2021-01-11T22:51:43.000Z
2021-08-29T01:25:04.000Z
"""Use Bayesian Inference to trigger a binary sensor.""" from collections import OrderedDict import voluptuous as vol from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensorEntity from homeassistant.const import ( CONF_ABOVE, CONF_BELOW, CONF_DEVICE_CLASS, CONF_ENTITY_ID, ...
32.996875
100
0.651198
c02375f8fbf3a1033677fe28fff24da475ab9378
2,271
py
Python
test/unittest/AppTestCase.py
jagoPG/-restaurant-ml-inspector
4efc7855401cc8cfa9d5e470c14685158a607448
[ "Apache-2.0" ]
1
2018-07-10T12:53:35.000Z
2018-07-10T12:53:35.000Z
test/unittest/AppTestCase.py
jagoPG/-restaurant-ml-inspector
4efc7855401cc8cfa9d5e470c14685158a607448
[ "Apache-2.0" ]
null
null
null
test/unittest/AppTestCase.py
jagoPG/-restaurant-ml-inspector
4efc7855401cc8cfa9d5e470c14685158a607448
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env # -*- coding: utf-8 -*- """ Copyright 2017-2018 Jagoba Pérez-Gómez 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 ...
28.746835
72
0.630119
c7028fe68511ff22289146380aa43a696ddb1f42
7,184
py
Python
astropy/io/fits/scripts/fitscheck.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
4
2021-03-25T15:49:56.000Z
2021-12-15T09:10:04.000Z
astropy/io/fits/scripts/fitscheck.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
astropy/io/fits/scripts/fitscheck.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
3
2021-03-28T16:13:00.000Z
2021-07-16T10:27:25.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ ``fitscheck`` is a command line script based on astropy.io.fits for verifying and updating the CHECKSUM and DATASUM keywords of .fits files. ``fitscheck`` can also detect and often fix other FITS standards violations. ``fitscheck`` facilitates re-wri...
31.508772
81
0.644905
62010e896a9cb6ea799ea14378a4694850277763
524
py
Python
twx/botapi/helpers/decorators.py
hidercorp/twx
df05606757eab9f8ea70fc0a56aa6086fcf57852
[ "MIT" ]
293
2015-06-30T04:14:00.000Z
2021-10-03T23:21:20.000Z
twx/botapi/helpers/decorators.py
hidercorp/twx
df05606757eab9f8ea70fc0a56aa6086fcf57852
[ "MIT" ]
24
2015-06-30T09:06:33.000Z
2021-08-28T01:25:18.000Z
twx/botapi/helpers/decorators.py
hidercorp/twx
df05606757eab9f8ea70fc0a56aa6086fcf57852
[ "MIT" ]
71
2015-07-01T19:03:08.000Z
2020-03-14T23:56:57.000Z
from enum import Enum from functools import wraps class Permissions(Enum): ADMIN = 1 EVERYONE = 2 class Scopes(Enum): GROUP = 1 PRIVATE = 2 CHANNEL = 3 class Command: _registry = dict() def __init__(self, aliases, permission, scope): self.aliases = aliases self.permission...
19.407407
51
0.612595
13855192eb08bace79697083a65ad5423a6a5a77
1,056
py
Python
rqrobot/examples/technical_analysis/golden_cross.py
luhouxiang/rqrobot
0b0094b0e2d061e628c570a06a7620e5fb48d342
[ "Apache-2.0" ]
null
null
null
rqrobot/examples/technical_analysis/golden_cross.py
luhouxiang/rqrobot
0b0094b0e2d061e628c570a06a7620e5fb48d342
[ "Apache-2.0" ]
null
null
null
rqrobot/examples/technical_analysis/golden_cross.py
luhouxiang/rqrobot
0b0094b0e2d061e628c570a06a7620e5fb48d342
[ "Apache-2.0" ]
null
null
null
# Run `rqrobot mod enable sys_funcat` first. from rqrobot.api import * # 在这个方法中编写任何的初始化逻辑。context对象将会在你的算法策略的任何方法之间做传递。 def init(context): context.s1 = "000001.XSHE" # 当前关注股票为 context.s1 # S 为 set_current_stock 的简写。等价于 set_current_stock(context.s1) S(context.s1) # 设置这个策略当中会用到的参数,在策略中可以随时调用,这个策略使用...
28.540541
83
0.72822
541d1966219c462f7e6b338759c7c07af667be9c
830
py
Python
parser/data/item.py
NicholasJohansan/EP5
3961c5d72c2953c90bb299b34e60d1401e52e8f5
[ "Unlicense" ]
null
null
null
parser/data/item.py
NicholasJohansan/EP5
3961c5d72c2953c90bb299b34e60d1401e52e8f5
[ "Unlicense" ]
null
null
null
parser/data/item.py
NicholasJohansan/EP5
3961c5d72c2953c90bb299b34e60d1401e52e8f5
[ "Unlicense" ]
null
null
null
from database.db import db class ItemData: def __init__(self, data): self.item_data = data self.owners_data = self.item_data['owners'] self.server_id = self.item_data['server_id'] self.multipliers = self.item_data['multipliers'] self.name = self.item_data['name'] self.description = self.item_data['descrip...
28.62069
62
0.722892
93388df93e571f50703d35ae27543ce38b73d1be
533
py
Python
lib/version.py
lbtcio/lbtc-lightwallet-client
49ae12e5603eeb0dea2f2dd65b16414be2891d9e
[ "MIT" ]
23
2018-03-12T08:16:25.000Z
2022-02-28T11:24:17.000Z
lib/version.py
lbtcio/lbtc-lightwallet-client
49ae12e5603eeb0dea2f2dd65b16414be2891d9e
[ "MIT" ]
11
2018-03-20T03:06:01.000Z
2021-06-01T21:57:45.000Z
lib/version.py
lbtcio/lbtc-lightwallet-client
49ae12e5603eeb0dea2f2dd65b16414be2891d9e
[ "MIT" ]
13
2018-03-08T10:35:42.000Z
2022-02-28T11:24:21.000Z
ELECTRUM_VERSION = '0.0.9' # version of the client package PROTOCOL_VERSION = '1.1' # protocol version requested # The hash of the mnemonic seed must begin with this SEED_PREFIX = '01' # Standard wallet SEED_PREFIX_2FA = '101' # Two-factor authentication SEED_PREFIX_SW = '100' # Segwit walle...
31.352941
60
0.673546
25f223f014db02a7cf35b62a2a7c8b91c7e37d0f
507
py
Python
packages/core/minos-microservice-common/tests/test_common/test_injections/test_mixins.py
bhardwajRahul/minos-python
bad7a280ad92680abdeab01d1214688279cf6316
[ "MIT" ]
247
2022-01-24T14:55:30.000Z
2022-03-25T12:06:17.000Z
packages/core/minos-microservice-common/tests/test_common/test_injections/test_mixins.py
bhardwajRahul/minos-python
bad7a280ad92680abdeab01d1214688279cf6316
[ "MIT" ]
168
2022-01-24T14:54:31.000Z
2022-03-31T09:31:09.000Z
packages/core/minos-microservice-common/tests/test_common/test_injections/test_mixins.py
bhardwajRahul/minos-python
bad7a280ad92680abdeab01d1214688279cf6316
[ "MIT" ]
21
2022-02-06T17:25:58.000Z
2022-03-27T04:50:29.000Z
import unittest from minos.common import ( InjectableMixin, ) class _InjectableMixin(InjectableMixin): """For testing purposes.""" class TestInjectableMixin(unittest.TestCase): def test_set_get_injectable_name(self): with self.assertRaises(AttributeError): _InjectableMixin.get_injec...
23.045455
71
0.729783
466650d99afceeca0554bdd324c5f0567fe517ed
1,410
py
Python
code/sheet_cleaner/constants.py
jeanie76/Datacrat-Agg
17284b1fee4ac48e83fa724b91fe65c02ddc6b6c
[ "MIT" ]
2
2020-03-30T02:06:20.000Z
2021-01-11T16:40:31.000Z
code/sheet_cleaner/constants.py
jeanie76/Datacrat-Agg
17284b1fee4ac48e83fa724b91fe65c02ddc6b6c
[ "MIT" ]
null
null
null
code/sheet_cleaner/constants.py
jeanie76/Datacrat-Agg
17284b1fee4ac48e83fa724b91fe65c02ddc6b6c
[ "MIT" ]
1
2020-04-07T10:57:35.000Z
2020-04-07T10:57:35.000Z
alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' # for a1 notation conversion date_columns = ['date_onset_symptoms', 'date_admission_hospital', 'date_confirmation', 'travel_history_dates', 'date_death_or_discharge'] # REGEX PATTERNS anchor_wrap = lambda s: f"^{s}$" boolean_or = lambda l : "|".join([f'({x})' f...
45.483871
102
0.691489
55c83a0af6d3d8e7b5c4ad3afb7a32ecb2302d0d
115
py
Python
src/niweb/apps/userprofile/admin.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
2
2018-12-21T09:35:27.000Z
2019-07-31T18:51:58.000Z
src/niweb/apps/userprofile/admin.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
6
2019-07-25T07:10:23.000Z
2021-02-08T09:58:57.000Z
src/niweb/apps/userprofile/admin.py
emjemj/ni
a78e6d97d1e4610aad7698c4f0f459221c680b4f
[ "BSD-2-Clause-FreeBSD" ]
5
2019-02-06T12:00:26.000Z
2021-11-19T14:48:06.000Z
from django.contrib import admin from apps.userprofile.models import UserProfile admin.site.register(UserProfile)
23
47
0.852174
084ed86d7ae7071ba4426d9ee4a95746c999711c
3,212
py
Python
dataset.py
ktho22/vctts
84e8bc6c4b5586aa319c7c21c4325f879f2cd3ba
[ "MIT" ]
17
2020-08-31T09:36:54.000Z
2022-02-15T03:15:09.000Z
dataset.py
Lukelluke/vctts
84e8bc6c4b5586aa319c7c21c4325f879f2cd3ba
[ "MIT" ]
null
null
null
dataset.py
Lukelluke/vctts
84e8bc6c4b5586aa319c7c21c4325f879f2cd3ba
[ "MIT" ]
4
2020-09-19T11:50:24.000Z
2022-02-19T14:57:43.000Z
import torch import torch.utils.data as data from glob import glob from os.path import join, basename, exists import numpy as np import pickle as pkl from random import random np.random.seed(123) class TTSDataset(data.Dataset): def __init__(self, which_set='train', datapath='./samples'): # Load vocabulary ...
35.688889
111
0.566314
f75e0a6270b0e690266753ea4d5cea1d8721369d
11,688
py
Python
stonesoup/smoother/kalman.py
io8ex/Stone-Soup
071abc8f6004296ab35094db04c7ec410103c419
[ "MIT" ]
1
2021-12-02T00:17:21.000Z
2021-12-02T00:17:21.000Z
stonesoup/smoother/kalman.py
io8ex/Stone-Soup
071abc8f6004296ab35094db04c7ec410103c419
[ "MIT" ]
null
null
null
stonesoup/smoother/kalman.py
io8ex/Stone-Soup
071abc8f6004296ab35094db04c7ec410103c419
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import copy from functools import partial import numpy as np from .base import Smoother from ..base import Property from ..types.multihypothesis import MultipleHypothesis from ..types.prediction import Prediction, GaussianStatePrediction from ..types.update import Update, GaussianStateUpdate f...
39.221477
99
0.626968
62e2089414a3f4744c8fad391fec70ed29e74f0a
6,460
py
Python
monitor.py
BlackburnHax/jetmon
3f1b126925c886a3fe2cd187124c5b7b8f86d970
[ "Apache-2.0" ]
null
null
null
monitor.py
BlackburnHax/jetmon
3f1b126925c886a3fe2cd187124c5b7b8f86d970
[ "Apache-2.0" ]
null
null
null
monitor.py
BlackburnHax/jetmon
3f1b126925c886a3fe2cd187124c5b7b8f86d970
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from selenium.webdriver.firefox.options import Options from selenium.common import exceptions as selenium_exceptions import pathlib import os from win10toast import ToastNotifier import time import datetime import humanize def get_time_string(): """ Pulls a human readable time of...
37.55814
141
0.662229
07873d6f3103789aa77b2a665d7cae6d74e80a44
3,021
py
Python
services/topology-engine/queue-engine/topologylistener/db.py
abubyr/open-kilda
c087b7228f46be77cbb7a4b260c99eb48bfc0328
[ "Apache-2.0" ]
null
null
null
services/topology-engine/queue-engine/topologylistener/db.py
abubyr/open-kilda
c087b7228f46be77cbb7a4b260c99eb48bfc0328
[ "Apache-2.0" ]
2
2018-04-23T16:37:54.000Z
2018-04-23T18:35:54.000Z
services/topology-engine/queue-engine/topologylistener/db.py
abubyr/open-kilda
c087b7228f46be77cbb7a4b260c99eb48bfc0328
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Telstra Open Source # # 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 agre...
26.734513
76
0.673949
ef8910c2e9d1f1a183e7636bceee2d864310396d
255
py
Python
ex5-5.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
ex5-5.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
ex5-5.py
yiyidhuang/PythonCrashCrouse2nd
3512f9ab8fcf32c6145604a37e2a62feddf174d1
[ "MIT" ]
null
null
null
# alien_color = 'green' # alien_color = 'yellow' alien_color = 'red' if alien_color == 'green': print("Player got 5 points") elif alien_color == 'yellow': print("Player got 10 points") elif alien_color == 'red': print("Player got 15 points")
23.181818
33
0.662745
ad7eedfef14e1f2617fbca5e388f79e938a35f33
24,933
py
Python
venv/lib/python3.6/site-packages/sqlalchemy/orm/interfaces.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/sqlalchemy/orm/interfaces.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/sqlalchemy/orm/interfaces.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
# orm/interfaces.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ Contains various base classes used throughout the ORM. Defines some key base...
34.248626
87
0.659046
5fac5c28e603db78d184113d98bf902ee232eafe
5,301
py
Python
frappe/utils/setup_docs.py
shitolepriya/fbd_frappe
943a3051244a891179d16596edc15d10ae89bdfb
[ "MIT" ]
null
null
null
frappe/utils/setup_docs.py
shitolepriya/fbd_frappe
943a3051244a891179d16596edc15d10ae89bdfb
[ "MIT" ]
null
null
null
frappe/utils/setup_docs.py
shitolepriya/fbd_frappe
943a3051244a891179d16596edc15d10ae89bdfb
[ "MIT" ]
2
2016-02-09T20:17:59.000Z
2018-03-21T16:48:48.000Z
"""Automatically setup docs for a project Call from command line: bench setup-docs app docs_app path """ import os, json, frappe, markdown2, shutil class setup_docs(object): def __init__(self): """Generate source templates for models reference and module API and templates at `templates/autodoc` """ self...
31.742515
92
0.680438
8035e44114124958ac5ddb52f8d088e9376f269b
5,474
py
Python
docs/source/conf.py
jingxiaorobin/osmnx
be59fd313bcb68af8fc79242c56194f1247e26e2
[ "MIT" ]
1
2019-02-11T16:02:34.000Z
2019-02-11T16:02:34.000Z
docs/source/conf.py
r3vol/osmnx
3113509ff7874e977b665867e2f945ebbbcfaf61
[ "MIT" ]
1
2019-02-18T08:46:01.000Z
2019-02-18T08:46:01.000Z
docs/source/conf.py
r3vol/osmnx
3113509ff7874e977b665867e2f945ebbbcfaf61
[ "MIT" ]
1
2019-12-27T15:01:23.000Z
2019-12-27T15:01:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # OSMnx documentation build configuration file, created by # sphinx-quickstart on Sun Feb 4 13:53:34 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...
28.962963
79
0.677019
4e2366987043e1a60ce22d456a5c4eb9a4f22348
417
py
Python
setup.py
callowayproject/epub-creator
fbb6b454e6c1fb8f9f60f4052f9a13ca9c39d12c
[ "Apache-2.0" ]
5
2015-02-19T15:28:07.000Z
2019-11-14T13:11:19.000Z
setup.py
fosstheory/epub-creator
fbb6b454e6c1fb8f9f60f4052f9a13ca9c39d12c
[ "Apache-2.0" ]
1
2015-06-14T13:19:30.000Z
2015-06-14T13:19:30.000Z
setup.py
fosstheory/epub-creator
fbb6b454e6c1fb8f9f60f4052f9a13ca9c39d12c
[ "Apache-2.0" ]
5
2015-04-14T11:06:15.000Z
2021-04-16T19:37:53.000Z
from distutils.core import setup setup(name='epub-creator', version='0.1', description='Generate ePub documents using Django', long_description='', author='Corey Oordt', author_email='coordt@washingtontimes.com', url='http://opensource.washingtontimes.com/projects/epub-creator/', ...
32.076923
73
0.642686
6396a7af3ad8903a562e197c378c86ab7681c7f7
4,395
py
Python
backend/init.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
4
2021-02-26T09:28:14.000Z
2021-07-08T19:21:57.000Z
backend/init.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
35
2021-01-27T08:38:59.000Z
2021-12-13T19:42:38.000Z
backend/init.py
cesko-digital/zacni-uc
281c56aec5509d5dd8bbbd60f054ffcd9156609e
[ "MIT" ]
5
2021-01-21T21:35:42.000Z
2022-01-06T10:07:58.000Z
import os from django.apps import apps from django.contrib.auth import get_user_model from django.contrib.auth.models import Group, Permission from django.core import management from common.models import GraphModel from qualifications.temp import ( init_map_2021_01, init_other_options, init_qualification, ...
31.618705
112
0.587713
ce038e3402f83a37eedaa29dedced18df0375267
3,210
py
Python
mne/commands/utils.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
null
null
null
mne/commands/utils.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
23
2017-09-12T11:08:26.000Z
2019-10-04T11:11:29.000Z
mne/commands/utils.py
fmamashli/mne-python
52f064415e7c9fa8fe243d22108dcdf3d86505b9
[ "BSD-3-Clause" ]
3
2019-01-28T13:48:00.000Z
2019-07-10T16:02:11.000Z
"""Some utility functions for commands (e.g., for cmdline handling).""" # Authors: Yaroslav Halchenko <debian@onerussian.com> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # # License: BSD (3-clause) import glob import importlib import os import os.path as op from optparse import OptionParser import sys ...
29.449541
77
0.604361
46a337b9f622aaf4db212ae47a254d392ee15e4e
879
py
Python
laaso/clouds.py
srrao-git/amlFilesystem-hydrator
4113cb6b06d822248cdddd54d5a95c05e998116e
[ "MIT" ]
2
2020-12-17T16:40:29.000Z
2020-12-17T17:12:16.000Z
laaso/clouds.py
srrao-git/amlFilesystem-hydrator
4113cb6b06d822248cdddd54d5a95c05e998116e
[ "MIT" ]
null
null
null
laaso/clouds.py
srrao-git/amlFilesystem-hydrator
4113cb6b06d822248cdddd54d5a95c05e998116e
[ "MIT" ]
5
2021-04-09T18:48:29.000Z
2021-11-10T11:44:12.000Z
# # laaso/clouds.py # # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # ''' Wrappers to manage fetching msrestazure.azure_cloud.Cloud objects ''' import inspect import msrestazure.azure_cloud import laaso.base_defaults _CLOUDS = {tup[1].name : tup[1] for tup in inspect.g...
28.354839
140
0.745165
566088b2c5b94b5c5dfc008ef1dd43d39f978c95
4,789
py
Python
pedantic/validator_service.py
percolate/pedantic
b8fd55699ef2f515d46923ce5eadce0efccbc5cd
[ "MIT" ]
null
null
null
pedantic/validator_service.py
percolate/pedantic
b8fd55699ef2f515d46923ce5eadce0efccbc5cd
[ "MIT" ]
null
null
null
pedantic/validator_service.py
percolate/pedantic
b8fd55699ef2f515d46923ce5eadce0efccbc5cd
[ "MIT" ]
null
null
null
"""Pedantic service providing REST API for fixture validation.""" from __future__ import absolute_import, unicode_literals import json from flask import Flask, request, jsonify from jsonschema.exceptions import ValidationError from .check_against_schema import ( validate_request_against_schema, validate_resp...
27.682081
94
0.553351
46d3a75f83fd96bbc1dd02b963e3c86c760b44c2
400
py
Python
17/23.py
deadnotxaa/homework
c56b1298f0f3198ff1be919e369256c67f54915f
[ "MIT" ]
null
null
null
17/23.py
deadnotxaa/homework
c56b1298f0f3198ff1be919e369256c67f54915f
[ "MIT" ]
null
null
null
17/23.py
deadnotxaa/homework
c56b1298f0f3198ff1be919e369256c67f54915f
[ "MIT" ]
null
null
null
if __name__ == "__main__": path = input("Enter a path to file: ") with open(path, "r", encoding="utf-8") as f: a = [int(i) for i in f] count = 0 max_dif = 0 for i in range(len(a) - 1): for j in range(i + 1, len(a)): if (a[i] - a[j]) % 60 == 0: count += 1 ...
25
51
0.4575
df68e94d88ce938f4dff00b30cea70f249752dbf
72
py
Python
torch_tools/training/util/__init__.py
gregunz/TorchTools
19a33f2e4cd38f86b74bd732949516df66f9e24f
[ "MIT" ]
null
null
null
torch_tools/training/util/__init__.py
gregunz/TorchTools
19a33f2e4cd38f86b74bd732949516df66f9e24f
[ "MIT" ]
null
null
null
torch_tools/training/util/__init__.py
gregunz/TorchTools
19a33f2e4cd38f86b74bd732949516df66f9e24f
[ "MIT" ]
null
null
null
from .aggregate_fn import AggFn from .logger import Logger, ImageLogger
24
39
0.833333
d7b0a2ad2f059eac4cc815fd13ee9339ea4edd93
12,455
py
Python
fft2.py
lzbbest/Rhythmic-Component-Analysis-Tool
c76db7d72c51f905a5c6b832f1a77f11a21e39ec
[ "MIT" ]
null
null
null
fft2.py
lzbbest/Rhythmic-Component-Analysis-Tool
c76db7d72c51f905a5c6b832f1a77f11a21e39ec
[ "MIT" ]
null
null
null
fft2.py
lzbbest/Rhythmic-Component-Analysis-Tool
c76db7d72c51f905a5c6b832f1a77f11a21e39ec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os,time from scipy import signal import matplotlib.pyplot as plt from scipy.optimize import leastsq import scipy.stats import numpy as np # numpy == 1.11.3 import seaborn as sns import pandas as pd sns.set_style('white') ############################## def cal(point, start, e...
43.701754
128
0.460056
e957b67ab65223cfdd7555483cc345e2dbbbb1e6
9,977
py
Python
tensor2tensor/data_generators/gym_problems_specs.py
repoloper/tensor2tensor
2fd91d34b8e6d79599c0612e446175174e838b9d
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/gym_problems_specs.py
repoloper/tensor2tensor
2fd91d34b8e6d79599c0612e446175174e838b9d
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/gym_problems_specs.py
repoloper/tensor2tensor
2fd91d34b8e6d79599c0612e446175174e838b9d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
26.819892
85
0.736293
c43b5e73da91d188633d128762d06d62c1e2240c
1,821
py
Python
tensor2tensor/models/bytenet_test.py
SamuelmsWong/tensor2tensor
7172ad8dc5f1d8f8c0e21cbb831ae2657387a2af
[ "Apache-2.0" ]
3
2021-01-19T20:21:15.000Z
2021-01-19T21:36:37.000Z
tensor2tensor/models/bytenet_test.py
SamuelmsWong/tensor2tensor
7172ad8dc5f1d8f8c0e21cbb831ae2657387a2af
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/bytenet_test.py
SamuelmsWong/tensor2tensor
7172ad8dc5f1d8f8c0e21cbb831ae2657387a2af
[ "Apache-2.0" ]
1
2021-05-03T17:34:21.000Z
2021-05-03T17:34:21.000Z
# coding=utf-8 # Copyright 2020 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
33.722222
74
0.679297
d4472fcf89072472dd0bf03af4000978d42b81ce
8,972
py
Python
Practical Reinforcement Learning/Week6_outro/seq2seq/basic_model_tf.py
Ianyliu/Advanced-Machine-Learning-Specialization
3bc7bd949e53186fd7e63b55062ed559e26ad95f
[ "MIT" ]
252
2019-02-06T04:15:18.000Z
2022-03-23T17:38:29.000Z
Practical Reinforcement Learning/Week6_outro/seq2seq/basic_model_tf.py
Ianyliu/Advanced-Machine-Learning-Specialization
3bc7bd949e53186fd7e63b55062ed559e26ad95f
[ "MIT" ]
2
2019-02-18T19:33:36.000Z
2019-02-19T15:03:35.000Z
Practical Reinforcement Learning/Week6_outro/seq2seq/basic_model_tf.py
Ianyliu/Advanced-Machine-Learning-Specialization
3bc7bd949e53186fd7e63b55062ed559e26ad95f
[ "MIT" ]
308
2019-03-16T18:18:02.000Z
2022-01-29T10:04:08.000Z
import tensorflow as tf import keras.layers as L class BasicTranslationModel: def __init__(self, name, inp_voc, out_voc, emb_size, hid_size,): self.name = name self.inp_voc = inp_voc self.out_voc = out_voc with tf.variable_scope(name): self.emb_inp = ...
42.122066
113
0.64144
e0d224a87a2bf3a7fb2f8a116871d4bdd0406384
10,571
py
Python
ask-sdk-webservice-support/tests/unit/test_webservice_handler.py
timothyaaron/alexa-skills-kit-sdk-for-python
6b9a45b0c484676e10257c93dc46c9832ea0479d
[ "Apache-2.0" ]
496
2018-09-19T19:50:11.000Z
2022-03-26T13:32:43.000Z
ask-sdk-webservice-support/tests/unit/test_webservice_handler.py
timothyaaron/alexa-skills-kit-sdk-for-python
6b9a45b0c484676e10257c93dc46c9832ea0479d
[ "Apache-2.0" ]
112
2018-09-18T18:55:43.000Z
2022-03-31T22:58:40.000Z
ask-sdk-webservice-support/tests/unit/test_webservice_handler.py
timothyaaron/alexa-skills-kit-sdk-for-python
6b9a45b0c484676e10257c93dc46c9832ea0479d
[ "Apache-2.0" ]
220
2018-09-18T18:53:15.000Z
2022-02-22T22:56:44.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights # Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or i...
42.284
80
0.693785
a634950377089ab9eb722cb046a76dc4f340d9a3
4,623
py
Python
cvservices/api.py
amabdallah/ControlledVocabulariesTemplate
751e5a87da0bc036311b4e8aa8408eb69bee716b
[ "BSD-3-Clause" ]
null
null
null
cvservices/api.py
amabdallah/ControlledVocabulariesTemplate
751e5a87da0bc036311b4e8aa8408eb69bee716b
[ "BSD-3-Clause" ]
null
null
null
cvservices/api.py
amabdallah/ControlledVocabulariesTemplate
751e5a87da0bc036311b4e8aa8408eb69bee716b
[ "BSD-3-Clause" ]
null
null
null
import os import csv import json import StringIO from collections import OrderedDict from django.http.response import HttpResponse from tastypie.api import Api from tastypie.resources import ModelResource from tastypie.serializers import Serializer from tastypie.utils.mime import build_content_type from rdfserializer.a...
32.556338
116
0.58209
242dfd889b426677ff3dae796a297a7c7c2fbb8b
1,305
py
Python
checkov/terraform/checks/resource/gcp/GoogleCloudDNSSECEnabled.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
checkov/terraform/checks/resource/gcp/GoogleCloudDNSSECEnabled.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
checkov/terraform/checks/resource/gcp/GoogleCloudDNSSECEnabled.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories, CheckResult class GoogleCloudDNSSECEnabled(BaseResourceValueCheck): """ Looks for DNSSEC state at dns_managed_zone: https://www.terraform.io/docs/provider...
34.342105
106
0.711111
efe90b211e97d51974d207a6154477f95cdbd571
4,222
py
Python
test/dlc_tests/eks/pytorch/inference/test_eks_pytorch_inference.py
nskool/deep-learning-containers
779621149077474511ab4a74c1439720840e4a5c
[ "Apache-2.0" ]
null
null
null
test/dlc_tests/eks/pytorch/inference/test_eks_pytorch_inference.py
nskool/deep-learning-containers
779621149077474511ab4a74c1439720840e4a5c
[ "Apache-2.0" ]
15
2022-03-10T23:33:21.000Z
2022-03-31T23:32:19.000Z
test/dlc_tests/eks/pytorch/inference/test_eks_pytorch_inference.py
nskool/deep-learning-containers
779621149077474511ab4a74c1439720840e4a5c
[ "Apache-2.0" ]
null
null
null
import os import random import pytest from time import sleep from invoke import run import test.test_utils.eks as eks_utils import test.test_utils as test_utils @pytest.mark.model("resnet") def test_eks_pytorch_neuron_inference(pytorch_inference_neuron): server_type = test_utils.get_inference_server_type(pytor...
35.779661
120
0.727144
daa7d59f155bd8a31287729478ddeaa515419158
3,602
py
Python
forum/views.py
michal0929/ICoS
d456618d9bd2e3df47e3b002806816a60b0ac32c
[ "MIT" ]
null
null
null
forum/views.py
michal0929/ICoS
d456618d9bd2e3df47e3b002806816a60b0ac32c
[ "MIT" ]
3
2020-01-07T12:21:42.000Z
2021-06-10T22:28:04.000Z
forum/views.py
michal0929/ICoS
d456618d9bd2e3df47e3b002806816a60b0ac32c
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.utils.text import slugify from django.utils import timezone from .forms import * from...
32.745455
78
0.662687
0fe6b68e01af24c3c281ac34cd014be9ccd955e5
4,775
py
Python
src/Products/ZCatalog/tests/test_zodb.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
null
null
null
src/Products/ZCatalog/tests/test_zodb.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
1
2021-02-10T16:05:38.000Z
2021-02-10T16:05:38.000Z
src/Products/ZCatalog/tests/test_zodb.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
1
2021-02-10T15:34:58.000Z
2021-02-10T15:34:58.000Z
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
37.015504
78
0.656545
c8d561b9c611f3a18be86f1765b5182b7035d144
549
py
Python
src/Square.py
lhsueh1/pygame-card-with-japanese-cmatrix
f5ca94e3e524b5e9e5c4ab165a3e4b0877fbb672
[ "MIT" ]
null
null
null
src/Square.py
lhsueh1/pygame-card-with-japanese-cmatrix
f5ca94e3e524b5e9e5c4ab165a3e4b0877fbb672
[ "MIT" ]
null
null
null
src/Square.py
lhsueh1/pygame-card-with-japanese-cmatrix
f5ca94e3e524b5e9e5c4ab165a3e4b0877fbb672
[ "MIT" ]
null
null
null
import pygame class Square(pygame.sprite.Sprite): def __init__(self, x, y, h, w, image): ''' Initalizes Square attributes args: x:(int) a number, x coordinate on screen y:(int) a number, y coordinate on screen image: (image) an image ''' ...
28.894737
94
0.566485
72b04cb2468b43d06cab676393d4c2cedf675905
48,988
py
Python
src/sqlfluff/dialects/dialect_bigquery.py
kiri1701/sqlfluff
93d109d87f327037efe6fa30f2f7eea8d44f7e91
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_bigquery.py
kiri1701/sqlfluff
93d109d87f327037efe6fa30f2f7eea8d44f7e91
[ "MIT" ]
null
null
null
src/sqlfluff/dialects/dialect_bigquery.py
kiri1701/sqlfluff
93d109d87f327037efe6fa30f2f7eea8d44f7e91
[ "MIT" ]
null
null
null
"""The BigQuery dialect. This inherits from the ansi dialect, with changes as specified by https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax and https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical#string_and_bytes_literals """ import itertools from sqlfluff.core.dialects im...
32.378057
122
0.562423
be653c1ac53f065aad0449831ade18bf855ffec9
7,987
py
Python
tests/test_cpu.py
haruishi43/dcn_v2
7ba71caa8266261f70fb072cd6cc2ad8afa1daa4
[ "BSD-3-Clause" ]
1
2021-05-20T15:50:57.000Z
2021-05-20T15:50:57.000Z
tests/test_cpu.py
haruishi43/dcn_v2
7ba71caa8266261f70fb072cd6cc2ad8afa1daa4
[ "BSD-3-Clause" ]
1
2021-01-11T12:53:41.000Z
2021-03-01T02:43:43.000Z
tests/test_cpu.py
haruishi43/dcn_v2
7ba71caa8266261f70fb072cd6cc2ad8afa1daa4
[ "BSD-3-Clause" ]
1
2021-05-20T15:51:05.000Z
2021-05-20T15:51:05.000Z
#!/usr/bin/env python import os import sys import time import torch import torch.nn as nn from torch.autograd import gradcheck # don't import from local directory with the same name if "" in sys.path: sys.path.remove("") if os.getcwd() in sys.path: sys.path.remove(os.getcwd()) from dcn_v2 import dcn_v2_conv...
24.129909
80
0.542131
d3777eb845935ea74dbc4d45ebb3eb33a6aaa3be
1,467
py
Python
setup.py
zhangzhen/svtools
185fd10e6ef666091e8aba1446a03b77bb86f773
[ "MIT" ]
null
null
null
setup.py
zhangzhen/svtools
185fd10e6ef666091e8aba1446a03b77bb86f773
[ "MIT" ]
null
null
null
setup.py
zhangzhen/svtools
185fd10e6ef666091e8aba1446a03b77bb86f773
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = open('README.rst').read() doclink = """ Documentation ------------- The full...
26.672727
83
0.61486
de0d1314155144b8610e0337ffd858f9b5fb8722
2,093
py
Python
userbot/modules/github.py
Necan03/MiamiUserbot
34aa366ce17919a0817937fc96f9b358f69b6f04
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2021-08-19T03:37:41.000Z
2021-09-09T22:40:12.000Z
userbot/modules/github.py
Necan03/MiamiUserbot
34aa366ce17919a0817937fc96f9b358f69b6f04
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-07-07T02:04:58.000Z
2021-07-07T02:04:58.000Z
userbot/modules/github.py
Necan03/MiamiUserbot
34aa366ce17919a0817937fc96f9b358f69b6f04
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2021-09-02T14:26:17.000Z
2021-10-13T10:10:37.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for filter commands """ import aiohttp from userbot import CMD_HELP from userbot.events import reg...
32.703125
102
0.549451
a708c6c996d7686f8bfb5093b5a0924d35a04960
2,708
py
Python
setup.py
jjk13593527343/scrapy-master
012867f75bbeab9ae1dc9e9f77b20a4b18e6e780
[ "BSD-3-Clause" ]
null
null
null
setup.py
jjk13593527343/scrapy-master
012867f75bbeab9ae1dc9e9f77b20a4b18e6e780
[ "BSD-3-Clause" ]
null
null
null
setup.py
jjk13593527343/scrapy-master
012867f75bbeab9ae1dc9e9f77b20a4b18e6e780
[ "BSD-3-Clause" ]
null
null
null
from os.path import dirname, join from pkg_resources import parse_version from setuptools import setup, find_packages, __version__ as setuptools_version with open(join(dirname(__file__), 'scrapy/VERSION'), 'rb') as f: version = f.read().decode('ascii').strip() def has_environment_marker_platform_impl_support():...
33.432099
79
0.631093
a7653aaee4f27518f45f40bf5aa06e652b55785e
638
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/__init__.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/__init__.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/__init__.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
33.578947
76
0.589342
9515470d307664e64b1cd815bb87debdf491b276
2,515
py
Python
maro/simulator/scenarios/citi_bike/station.py
yangboz/maro
0973783e55ca07bf8e177910c9d47854117a4ea8
[ "MIT" ]
598
2020-09-23T00:50:22.000Z
2022-03-31T08:12:54.000Z
maro/simulator/scenarios/citi_bike/station.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
235
2020-09-22T10:20:48.000Z
2022-03-31T02:10:03.000Z
maro/simulator/scenarios/citi_bike/station.py
gx9702/maro
38c796f0a7ed1e0f64c299d96c6e0df032401fa9
[ "MIT" ]
116
2020-09-22T09:19:04.000Z
2022-02-12T05:04:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from maro.backends.frame import NodeAttribute, NodeBase, node @node("stations") class Station(NodeBase): """Station node definition in frame.""" bikes = NodeAttribute("i") # statistics features shortage = NodeAttribute("i") ...
26.197917
87
0.630219
641dcf948a99bc45db55a88168974d6cc5578c5a
674
py
Python
util/style.py
shaverschuren/DBSplan
b7808062be794afacc583d31e47c9928f4451e66
[ "MIT" ]
1
2021-04-22T11:52:25.000Z
2021-04-22T11:52:25.000Z
util/style.py
shaverschuren/PathPlanning_DBS
b7808062be794afacc583d31e47c9928f4451e66
[ "MIT" ]
null
null
null
util/style.py
shaverschuren/PathPlanning_DBS
b7808062be794afacc583d31e47c9928f4451e66
[ "MIT" ]
null
null
null
"""Utility module for style-related functionality""" class print_style: PURPLE = '\033[95m' CYAN = '\033[96m' DARKCYAN = '\033[36m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' BOLD = '\033[1m' UNDERLINE = '\033[4m' END = '\033[0m' ...
21.741935
70
0.575668
4dad14c0023d6fa89328ec6b769927f2f079ba70
6,012
py
Python
usaspending_api/search/v2/views/search_elasticsearch.py
gaybro8777/usaspending-api
fe9d730acd632401bbbefa168e3d86d59560314b
[ "CC0-1.0" ]
null
null
null
usaspending_api/search/v2/views/search_elasticsearch.py
gaybro8777/usaspending-api
fe9d730acd632401bbbefa168e3d86d59560314b
[ "CC0-1.0" ]
null
null
null
usaspending_api/search/v2/views/search_elasticsearch.py
gaybro8777/usaspending-api
fe9d730acd632401bbbefa168e3d86d59560314b
[ "CC0-1.0" ]
null
null
null
import copy import logging from django.conf import settings from rest_framework.response import Response from rest_framework.views import APIView from usaspending_api.common.api_versioning import api_transformations, API_TRANSFORM_FUNCTIONS from usaspending_api.common.cache_decorator import cache_response from usaspe...
39.81457
119
0.650865
bb5d933bba9deb5ed88b99245afc3b6aeb175743
2,954
py
Python
demo_zinnia_threaded_comments/settings.py
dantezhu/zinnia-threaded-comments
fce5e76f5785bcca368fd80f8b24379e1b2420ee
[ "BSD-3-Clause" ]
null
null
null
demo_zinnia_threaded_comments/settings.py
dantezhu/zinnia-threaded-comments
fce5e76f5785bcca368fd80f8b24379e1b2420ee
[ "BSD-3-Clause" ]
null
null
null
demo_zinnia_threaded_comments/settings.py
dantezhu/zinnia-threaded-comments
fce5e76f5785bcca368fd80f8b24379e1b2420ee
[ "BSD-3-Clause" ]
null
null
null
"""Settings for the zinnia-threaded-comments demo""" import os gettext = lambda s: s # noqa DEBUG = True DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(os.path.dirname(__file__), 'demo.db')} } TIME_ZONE = 'Europe/Paris' STATIC_URL = '/...
27.607477
73
0.614083
a1b18cda00be075216679a9638e8148a9a8bb92e
169
py
Python
DQM/DTMonitorClient/python/dtCertificationSummary_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/DTMonitorClient/python/dtCertificationSummary_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/DTMonitorClient/python/dtCertificationSummary_cfi.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester dtCertificationSummary = DQMEDHarvester('DTCertificationSummary')
24.142857
65
0.863905
4eff4c5758e501fdce16ae47873cd576082965d9
2,815
py
Python
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-ifmgr-cfg/nc-update-xr-ifmgr-cfg-11-ydk.py
maccioni/ydk-py-samples
d1758694bef97327c5477e65649326c7595ce499
[ "Apache-2.0" ]
104
2016-03-15T17:04:01.000Z
2021-12-31T06:09:35.000Z
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-ifmgr-cfg/nc-update-xr-ifmgr-cfg-11-ydk.py
https-maxus-github-com/ydk-py-samples
1ad6cc2b798f358ff835df93d12924df308b85fc
[ "Apache-2.0" ]
15
2016-03-15T23:09:47.000Z
2020-08-13T12:13:18.000Z
samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-ifmgr-cfg/nc-update-xr-ifmgr-cfg-11-ydk.py
https-maxus-github-com/ydk-py-samples
1ad6cc2b798f358ff835df93d12924df308b85fc
[ "Apache-2.0" ]
87
2016-04-15T16:59:23.000Z
2021-09-18T18:05:47.000Z
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, Inc. # # 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 applicab...
33.915663
89
0.672824
2ca4d978c81a0038f2ab5b8db891e341c12607f6
975
py
Python
hlwtadmin/management/commands/find_cities_in_multiple_countries.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
1
2020-10-16T16:29:01.000Z
2020-10-16T16:29:01.000Z
hlwtadmin/management/commands/find_cities_in_multiple_countries.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
365
2020-02-03T12:46:53.000Z
2022-02-27T17:20:46.000Z
hlwtadmin/management/commands/find_cities_in_multiple_countries.py
Kunstenpunt/havelovewilltravel
6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83
[ "Apache-2.0" ]
null
null
null
from hlwtadmin.models import Artist, GigFinderUrl, GigFinder, ConcertAnnouncement, Venue, Location, Organisation, Country, Concert, RelationConcertConcert, RelationConcertOrganisation, RelationConcertArtist, Location, LocationsMerge from django.core.management.base import BaseCommand, CommandError from pandas import ...
48.75
232
0.707692
cae7ea3c988655842f5d51b408cfd3a6d04de4a3
3,693
py
Python
local_rl_loop.py
neo4reo/minigo
57354e14b2b6b4aacb6863e47836bb475e1b724d
[ "Apache-2.0" ]
1
2018-02-26T06:53:34.000Z
2018-02-26T06:53:34.000Z
local_rl_loop.py
neo4reo/minigo
57354e14b2b6b4aacb6863e47836bb475e1b724d
[ "Apache-2.0" ]
null
null
null
local_rl_loop.py
neo4reo/minigo
57354e14b2b6b4aacb6863e47836bb475e1b724d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.30303
93
0.679393
288cd79fcc20ca6bf84342ea7a6d026b5192b997
2,958
py
Python
cirtorch/datasets/localFeatures/sampler.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
3
2021-01-15T13:58:22.000Z
2021-01-22T00:03:34.000Z
cirtorch/datasets/localFeatures/sampler.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
null
null
null
cirtorch/datasets/localFeatures/sampler.py
Tarekbouamer/Image-Retrieval-for-Image-Based-Localization
fcad9af4f558bebb3cbec1d08e49603a452f439d
[ "BSD-3-Clause" ]
null
null
null
import math import torch from torch import distributed from torch.utils.data.sampler import Sampler class ARBatchSampler(Sampler): def __init__(self, data_source, batch_size, drop_last=False, epoch=0): super(ARBatchSampler, self).__init__(data_source) self.data_source = data_source self.b...
29.58
120
0.623394
cb30212e2aa05eed158f2798fe0b82d33430bda3
775
py
Python
server/db/models/reservation.py
thinkjones/AFSP-Seed
5a7766960c01394902c4898b764580b0320b6941
[ "MIT", "Unlicense" ]
1
2020-02-23T07:48:46.000Z
2020-02-23T07:48:46.000Z
server/db/models/reservation.py
thinkjones/AFSP-Seed
5a7766960c01394902c4898b764580b0320b6941
[ "MIT", "Unlicense" ]
null
null
null
server/db/models/reservation.py
thinkjones/AFSP-Seed
5a7766960c01394902c4898b764580b0320b6941
[ "MIT", "Unlicense" ]
null
null
null
from sqlalchemy import Column, ForeignKey, Integer, String, DateTime from server.db.database import Base from sqlalchemy.orm import relationship class Reservation(Base): """ A reservation of a book in the library """ __tablename__ = 'reservations' id = Column(Integer, primary_key=True) reserved = Colu...
33.695652
73
0.694194
f407e246220691ab8094a62c9e29380025b861e3
1,141
py
Python
config/kitti_evaluate.py
mcv-m6-video/mcv-m6-2018-team5
bb7ee72a06ce021bab751c8e8773ec128170b524
[ "MIT" ]
null
null
null
config/kitti_evaluate.py
mcv-m6-video/mcv-m6-2018-team5
bb7ee72a06ce021bab751c8e8773ec128170b524
[ "MIT" ]
null
null
null
config/kitti_evaluate.py
mcv-m6-video/mcv-m6-2018-team5
bb7ee72a06ce021bab751c8e8773ec128170b524
[ "MIT" ]
null
null
null
# Dataset dataset_name = 'kitti' # Dataset name dataset_path = 'datasets/kitti/image_0' # Dataset path gt_path = 'datasets/kitti/flow_noc' # Ground truth path results_path = 'datasets/kitti/results' # Input Ima...
42.259259
90
0.521472
77b5b8db5e00ea68c2daa0c206a7b7790b6b91ad
107
py
Python
memefly-ml/memefly/networks/__init__.py
Nburkhal/memefly-ds
359853ba79f2ce8e8145fc04d2a33ab58a7faf00
[ "MIT" ]
6
2019-11-06T21:56:26.000Z
2020-01-17T06:26:47.000Z
memefly-ml/memefly/networks/__init__.py
Nburkhal/memefly-ds
359853ba79f2ce8e8145fc04d2a33ab58a7faf00
[ "MIT" ]
12
2020-03-24T18:29:09.000Z
2021-09-08T01:34:54.000Z
memefly-ml/memefly/networks/__init__.py
BloomTech-Labs/memefly-ds
82c7b556627b992b6fcbc5f4b8ccfafb171d0aac
[ "MIT" ]
3
2019-11-06T21:54:25.000Z
2020-03-06T04:17:31.000Z
from .cnn_rnn_merge import cnn_merge_rnn_network from .cnn_rnn_par_inject import cnn_par_inject_rnn_network
53.5
58
0.915888
d6845587c297fa0c57e1872e62f14aa7e44fc550
790
py
Python
poky-dunfell/meta/lib/oeqa/runtime/cases/xorg.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
14
2021-11-04T07:47:37.000Z
2022-03-21T10:10:30.000Z
poky-dunfell/meta/lib/oeqa/runtime/cases/xorg.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
poky-dunfell/meta/lib/oeqa/runtime/cases/xorg.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # SPDX-License-Identifier: MIT # from oeqa.runtime.case import OERuntimeTestCase from oeqa.core.decorator.depends import OETestDepends from oeqa.core.decorator.data import skipIfNotFeature from oeqa.runtime.decorator.package import OEHasPackage class XorgTest(OERuntimeTestCase): @skipIfNotFeature('x11-base', ...
35.909091
75
0.68481
453993271eb5a1f98b01a22891fce42aa7e84b90
1,456
py
Python
nsqio/http/base.py
spacetab-io/nsqio
c4ca3b9aa0f678d2b52300ea075f30a8e1651c61
[ "MIT" ]
1
2021-04-15T01:59:03.000Z
2021-04-15T01:59:03.000Z
nsqio/http/base.py
spacetab-io/nsqio
c4ca3b9aa0f678d2b52300ea075f30a8e1651c61
[ "MIT" ]
null
null
null
nsqio/http/base.py
spacetab-io/nsqio
c4ca3b9aa0f678d2b52300ea075f30a8e1651c61
[ "MIT" ]
null
null
null
import json import aiohttp import logging from nsqio.utils import _convert_to_str logger = logging.getLogger(__name__) class NsqHTTPConnection: """XXX""" def __init__(self, host="127.0.0.1", port=4150, *, loop): self._loop = loop self._endpoint = (host, port) self._base_url = "http:...
28
82
0.606456
3061f94cedf11255708488eaf3338bf2baf4e21e
13,975
py
Python
arna/GEOS_Chem.py
wacl-york/ARNA
976044276a0eb5f3160b9d52aa519d0fe19d83ef
[ "MIT" ]
null
null
null
arna/GEOS_Chem.py
wacl-york/ARNA
976044276a0eb5f3160b9d52aa519d0fe19d83ef
[ "MIT" ]
2
2021-08-09T09:47:54.000Z
2021-08-09T09:55:42.000Z
arna/GEOS_Chem.py
wacl-york/ARNA
976044276a0eb5f3160b9d52aa519d0fe19d83ef
[ "MIT" ]
null
null
null
""" Functions to interact with GEOS-Chem output after the ARNA campaign """ import os import sys import glob import gc import requests import re import wget import numpy as np import pandas as pd import xarray as xr import xesmf as xe import AC_tools as AC import datetime as datetime import time from time import gmtime...
46.73913
1,697
0.566726
bac46f7dd6fc3531d695bddd7ba4efcb71a52c37
107
py
Python
pyaz/iot/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/iot/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/iot/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Manage Internet of Things (IoT) assets. ''' from .. pyaz_utils import _call_az from . import dps, hub
15.285714
39
0.700935
88a7070883aae1a7658f2333978eada8e363bfa1
4,065
py
Python
tests/test_viewport.py
maldieve/luma.core
a93d5b6bcd70ba7fdc818ef940bb130d4331ce49
[ "MIT" ]
null
null
null
tests/test_viewport.py
maldieve/luma.core
a93d5b6bcd70ba7fdc818ef940bb130d4331ce49
[ "MIT" ]
null
null
null
tests/test_viewport.py
maldieve/luma.core
a93d5b6bcd70ba7fdc818ef940bb130d4331ce49
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017-18 Richard Hull and contributors # See LICENSE.rst for details. """ Tests for the :py:class:`luma.core.virtual.viewport` class and associated helpers. """ import time from PIL import Image from luma.core.device import dummy from luma.core.render imp...
28.034483
74
0.681181
826d476607cda8dfbee811906bc8c910b2045591
559
py
Python
src/tests/relay/python/t_python_relay_smoke.py
adrienbernede/conduit
38379643d570941164b4fad76e269d2862f0e47b
[ "BSD-3-Clause" ]
120
2015-12-09T00:58:22.000Z
2022-03-25T00:14:39.000Z
src/tests/relay/python/t_python_relay_smoke.py
adrienbernede/conduit
38379643d570941164b4fad76e269d2862f0e47b
[ "BSD-3-Clause" ]
808
2016-02-27T22:25:15.000Z
2022-03-30T23:42:12.000Z
src/tests/relay/python/t_python_relay_smoke.py
adrienbernede/conduit
38379643d570941164b4fad76e269d2862f0e47b
[ "BSD-3-Clause" ]
49
2016-02-12T17:19:16.000Z
2022-02-01T14:36:21.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other Conduit # Project developers. See top-level LICENSE AND COPYRIGHT files for dates and # other details. No copyright assignment is required to contribute to Conduit. """ file: t_python_relay_smoke.py description: Simple unit test for the conduit relay...
24.304348
78
0.760286
7c70524686e7044fb305702ecb6bc6a9fdf4a867
42,505
py
Python
nuitka/plugins/standard/PySidePyQtPlugin.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
nuitka/plugins/standard/PySidePyQtPlugin.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
nuitka/plugins/standard/PySidePyQtPlugin.py
sthagen/Nuitka-Nuitka
023dc76eeafd9c53ee2a51931474ddd98a3ba083
[ "Apache-2.0" ]
null
null
null
# Copyright 2022, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
35.509607
122
0.565204
59d81259195e7f7e82eb47d298b29f52f99affe3
7,264
py
Python
openks/models/pytorch/mmd_modules/STVGBert/src/stvglib/trains/multi_pose.py
vivym/OpenKS
ea380782162de2e4c1a413f37ad12b85ccb7048a
[ "Apache-2.0" ]
null
null
null
openks/models/pytorch/mmd_modules/STVGBert/src/stvglib/trains/multi_pose.py
vivym/OpenKS
ea380782162de2e4c1a413f37ad12b85ccb7048a
[ "Apache-2.0" ]
null
null
null
openks/models/pytorch/mmd_modules/STVGBert/src/stvglib/trains/multi_pose.py
vivym/OpenKS
ea380782162de2e4c1a413f37ad12b85ccb7048a
[ "Apache-2.0" ]
2
2021-11-18T06:55:55.000Z
2021-12-29T15:21:07.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import numpy as np from ..models.losses import FocalLoss, RegL1Loss, RegLoss, RegWeightedL1Loss from ..models.decode import multi_pose_decode from ..models.utils import _sigmoid, flip_tensor, flip...
45.118012
82
0.612197
dbddc7a95ed7ec2b1a3bdeeb1564a8f71213fd43
19,229
py
Python
openpype/modules/ftrack/event_handlers_user/action_delete_old_versions.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/modules/ftrack/event_handlers_user/action_delete_old_versions.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/modules/ftrack/event_handlers_user/action_delete_old_versions.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
import os import collections import uuid import clique from pymongo import UpdateOne from openpype.modules.ftrack.lib import BaseAction, statics_icon from avalon.api import AvalonMongoDB from openpype.api import Anatomy import avalon.pipeline class DeleteOldVersions(BaseAction): identifier = "delete.old.versi...
32.813993
79
0.520568
9b65459f76649d2f2ff29869d996e3daec7c52b0
3,200
py
Python
wpchanger.py
jisulee723/wallpaper-changer
e451082b0cf4d1655415293edb26058f9a893851
[ "MIT" ]
null
null
null
wpchanger.py
jisulee723/wallpaper-changer
e451082b0cf4d1655415293edb26058f9a893851
[ "MIT" ]
null
null
null
wpchanger.py
jisulee723/wallpaper-changer
e451082b0cf4d1655415293edb26058f9a893851
[ "MIT" ]
null
null
null
import os import tempfile import requests import wget import win32api import win32con import win32gui from PIL import Image from bs4 import BeautifulSoup # 이미지 url 얻기 def get_url(pick): if pick == 1: # 게시글 주소 스크래핑 resp = requests.get('http://www.bukedu.or.kr/user/nd51910.do') soup = Beauti...
29.357798
119
0.5425
1f4c3d93946aa0fe86ccf1f9f8f44c96d9fcad37
516
py
Python
microsoft_problems/problem_6.py
saadaoui-salah/Daily-Coding-Problem
48378fd74e948513a512302003d1f6bed869115b
[ "MIT" ]
null
null
null
microsoft_problems/problem_6.py
saadaoui-salah/Daily-Coding-Problem
48378fd74e948513a512302003d1f6bed869115b
[ "MIT" ]
null
null
null
microsoft_problems/problem_6.py
saadaoui-salah/Daily-Coding-Problem
48378fd74e948513a512302003d1f6bed869115b
[ "MIT" ]
null
null
null
"""This problem was asked by Microsoft. Given a 2D matrix of characters and a target word, write a function that returns whether the word can be found in the matrix by going left-to-right, or up-to-down. For example, given the following matrix: [['F', 'A', 'C', 'I'], ['O', 'B', 'Q', 'P'], ['A', 'N', 'O', 'B'], ['M',...
43
84
0.656977
08c756089687c7b33c3a9a2b46cab57dda8afc34
926
py
Python
examples/process-ott/create-ncbi-to-ott.py
mtholder/peyotl
bbbe0e828c0cd706a11cd1b25a739d4603cbbe63
[ "BSD-2-Clause" ]
6
2015-01-11T06:24:38.000Z
2017-11-23T17:18:12.000Z
examples/process-ott/create-ncbi-to-ott.py
OpenTreeOfLife/peyotl
bbbe0e828c0cd706a11cd1b25a739d4603cbbe63
[ "BSD-2-Clause" ]
60
2015-01-09T10:30:58.000Z
2020-05-20T17:08:36.000Z
examples/process-ott/create-ncbi-to-ott.py
OpenTreeOfLife/peyotl
bbbe0e828c0cd706a11cd1b25a739d4603cbbe63
[ "BSD-2-Clause" ]
3
2015-09-03T15:29:00.000Z
2015-10-08T20:03:30.000Z
#!/usr/bin/env python import pickle import sys import os if __name__ == '__main__': from peyotl.ott import OTT multimapping = set() picklefn = sys.argv[1] if os.path.exists(picklefn): sys.exit('{} already exists'.format(picklefn)) ott = OTT() ncbi2ott = {} for ott_id, info in ott.ott...
31.931034
99
0.555076
5f5fec44c470218231a97d3dab1d34cbdb10776b
261
py
Python
example_apps/selfish/pages.py
seyhunsaral/otree-course
75f49df2f1cee52724ccb6a7620f93442aa365b2
[ "MIT" ]
2
2020-06-24T11:35:38.000Z
2022-02-15T17:50:17.000Z
example_apps/selfish/pages.py
seyhunsaral/otree-course
75f49df2f1cee52724ccb6a7620f93442aa365b2
[ "MIT" ]
null
null
null
example_apps/selfish/pages.py
seyhunsaral/otree-course
75f49df2f1cee52724ccb6a7620f93442aa365b2
[ "MIT" ]
null
null
null
from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class MyPage(Page): timeout_seconds = 10 def before_next_page(self): self.player.payoff = c(10) page_sequence = [MyPage]
18.642857
51
0.731801
71ebf3c73b81633d14cd5bf7bd9031122fe94a80
80
py
Python
bravado/compat.py
analogue/swagger-py
ded3a811579ea4e0d1adb3582b90d8d941b7fb17
[ "BSD-3-Clause" ]
null
null
null
bravado/compat.py
analogue/swagger-py
ded3a811579ea4e0d1adb3582b90d8d941b7fb17
[ "BSD-3-Clause" ]
2
2016-12-14T07:33:33.000Z
2017-05-11T13:40:48.000Z
bravado/compat.py
Cloudlock/bravado
bacf49ea9d791ec9f564a3a141c77995d2f395b0
[ "BSD-3-Clause" ]
null
null
null
try: import simplejson as json except ImportError: import json # noqa
13.333333
29
0.7
874d248717636f4715ac05eaa05fe292c3b16a4b
149
py
Python
tests/test_plugin.py
3d-hub/3d-hub-connector
5f3ef6db71d6e6358c011b58016a4b942c1e1267
[ "Apache-2.0" ]
null
null
null
tests/test_plugin.py
3d-hub/3d-hub-connector
5f3ef6db71d6e6358c011b58016a4b942c1e1267
[ "Apache-2.0" ]
7
2022-02-19T10:30:34.000Z
2022-03-01T19:14:24.000Z
tests/test_plugin.py
3d-hub/3d-hub-connector
5f3ef6db71d6e6358c011b58016a4b942c1e1267
[ "Apache-2.0" ]
null
null
null
import unittest from fdm_connector import __plugin_load__ class TestPlugin(unittest.TestCase): def test_load(self): __plugin_load__()
16.555556
41
0.765101
8cf2684272c08311fb846509a49cb19d46ca6ad1
2,771
py
Python
api/app.py
Amdirpherian/API
b37911d3afa4e843ce2ffeca3fc37baaa0f3facf
[ "MIT" ]
46
2021-01-11T17:08:21.000Z
2022-03-11T08:09:19.000Z
api/app.py
Amdirpherian/API
b37911d3afa4e843ce2ffeca3fc37baaa0f3facf
[ "MIT" ]
26
2021-01-11T19:29:15.000Z
2022-02-23T13:13:54.000Z
api/app.py
Amdirpherian/API
b37911d3afa4e843ce2ffeca3fc37baaa0f3facf
[ "MIT" ]
29
2020-11-14T04:10:30.000Z
2022-03-25T12:04:27.000Z
from fastapi.exceptions import RequestValidationError from fastapi import FastAPI, HTTPException, Request from fastapi.middleware.cors import CORSMiddleware from fakeredis.aioredis import FakeRedis from aiohttp import ClientSession from aioredis import Redis import logging from utils.response import JSONResponse from ...
28.56701
110
0.663298
21ff26e4a36f026cd858535de578f0e77dbe142c
621
py
Python
501-600/531-540/538-convertBSTToGreaterTree/convertBSTToGreaterTree.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
501-600/531-540/538-convertBSTToGreaterTree/convertBSTToGreaterTree.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
501-600/531-540/538-convertBSTToGreaterTree/convertBSTToGreaterTree.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution(object): def convertBST(self, root): """ :type root: TreeNode :rtype: TreeNod...
24.84
55
0.558776
d64c059bed1bf44ca4e774f01e87865dd0e7b6c0
4,211
py
Python
lambda/capture_dou/write_article.py
gabinete-compartilhado-acredito/capturaAWS
ff4d86bbef0b96b4e0283330f757cbe68410c871
[ "MIT" ]
null
null
null
lambda/capture_dou/write_article.py
gabinete-compartilhado-acredito/capturaAWS
ff4d86bbef0b96b4e0283330f757cbe68410c871
[ "MIT" ]
null
null
null
lambda/capture_dou/write_article.py
gabinete-compartilhado-acredito/capturaAWS
ff4d86bbef0b96b4e0283330f757cbe68410c871
[ "MIT" ]
null
null
null
import json import datetime as dt import os import global_settings as gs from botocore.exceptions import EndpointConnectionError if not gs.local: import boto3 def last_slash(path): """ Takes a file path and returns the path with a tailing slash if that is missing. """ result = path if path[-...
33.15748
106
0.638803
d0832b05aad25e0d6f93a7fe6ec7439080bd2060
914
py
Python
cogs/ban.py
mmattisinschool/doob
b6eea3bdcd353f43941d7d55f69988e7536a5b30
[ "MIT" ]
null
null
null
cogs/ban.py
mmattisinschool/doob
b6eea3bdcd353f43941d7d55f69988e7536a5b30
[ "MIT" ]
null
null
null
cogs/ban.py
mmattisinschool/doob
b6eea3bdcd353f43941d7d55f69988e7536a5b30
[ "MIT" ]
null
null
null
import discord from discord.ext import commands doob_logo = "https://cdn.discordapp.com/avatars/680606346952966177/ada47c5940b5cf8f7e12f61eefecc610.webp?size=1024" class ban(commands.Cog): def __init__(self, client): self.client = client @commands.command(aliases=['b']) # Checks to see if user has ...
39.73913
140
0.706783