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
516b97ef62d8f99e25a3c534c2e8128cdfc816ef
2,568
py
Python
src/player_object.py
kauppim/python-mazegame
e2cbe77a325432be92ff689e6437343d82590950
[ "MIT" ]
null
null
null
src/player_object.py
kauppim/python-mazegame
e2cbe77a325432be92ff689e6437343d82590950
[ "MIT" ]
null
null
null
src/player_object.py
kauppim/python-mazegame
e2cbe77a325432be92ff689e6437343d82590950
[ "MIT" ]
null
null
null
''' Player Object ''' from pyramid_object import PyramidObject ''' Let's define some directions ''' NORTH = ( 0, -1, 0) SOUTH = ( 0, 1, 0) EAST = ( 1, 0, 0) WEST = ( -1, 0, 0) UP = ( 0, 0, 1) DOWN = ( 0, 0, -1)
22.526316
89
0.678738
516bedb4f182df3964926031a491838ebc066734
4,064
py
Python
egs/MetricGAN/discriminator.py
JorisCos/asteroid_gan_exps
e3b9d3dc76265b3f4574ecb451df105f26acab3e
[ "MIT" ]
3
2020-11-23T10:07:47.000Z
2021-06-15T14:21:32.000Z
egs/MetricGAN/discriminator.py
JorisCos/asteroid_gan_exps
e3b9d3dc76265b3f4574ecb451df105f26acab3e
[ "MIT" ]
null
null
null
egs/MetricGAN/discriminator.py
JorisCos/asteroid_gan_exps
e3b9d3dc76265b3f4574ecb451df105f26acab3e
[ "MIT" ]
1
2020-12-03T13:40:46.000Z
2020-12-03T13:40:46.000Z
import torch import torch.nn as nn from asteroid.engine.optimizers import make_optimizer from torch.nn.modules.loss import _Loss from asteroid.filterbanks import make_enc_dec from asteroid.filterbanks.transforms import take_mag from pystoi import stoi from pb_bss_eval.evaluation.module_pesq import pesq def get_metr...
33.866667
79
0.597195
516ca94b451f7f49b6e76fff2dfce921e901c7cb
9,085
py
Python
apps/result/views.py
19521242bao/SE104
e037f02e0cebf4a9d6638cbba71d3cd9fd0501eb
[ "MIT" ]
null
null
null
apps/result/views.py
19521242bao/SE104
e037f02e0cebf4a9d6638cbba71d3cd9fd0501eb
[ "MIT" ]
null
null
null
apps/result/views.py
19521242bao/SE104
e037f02e0cebf4a9d6638cbba71d3cd9fd0501eb
[ "MIT" ]
null
null
null
from collections import Counter from django.contrib.auth.decorators import login_required from django.contrib import messages from django.shortcuts import render, HttpResponseRedirect, redirect from django.views.generic import ListView from apps.corecode.models import AcademicSession, AcademicTerm,StudentClass from a...
33.899254
140
0.638635
516d50479cd839e1f2fb6ba1f23bf879b0b72ee4
178
py
Python
lcopt/bin/lcopt_bw2_setup.py
pjamesjoyce/lcopt_geo
a167ecfa258e62e91af7dac6cbf70be5d63fff93
[ "BSD-3-Clause" ]
17
2017-08-04T11:38:13.000Z
2022-03-29T16:22:39.000Z
lcopt/bin/lcopt_bw2_setup.py
pjamesjoyce/lcopt_geo
a167ecfa258e62e91af7dac6cbf70be5d63fff93
[ "BSD-3-Clause" ]
65
2017-04-27T16:01:04.000Z
2022-01-19T07:36:15.000Z
lcopt/bin/lcopt_bw2_setup.py
pjamesjoyce/lcopt_geo
a167ecfa258e62e91af7dac6cbf70be5d63fff93
[ "BSD-3-Clause" ]
6
2017-06-19T09:37:21.000Z
2022-02-22T18:44:01.000Z
from sys import argv from lcopt.utils import lcopt_bw2_setup if __name__ == "__main__": main()
14.833333
39
0.713483
516d85a5a28f621b638975ffe3f7c2a1bbb06e93
11,468
py
Python
venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_us_race_ethnicity_out.py
akshitgoyal/csc398nlp
6adf80cb7fa3737f88faf73a6e818da495b95ab4
[ "MIT" ]
1
2020-09-28T10:09:25.000Z
2020-09-28T10:09:25.000Z
venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_us_race_ethnicity_out.py
akshitgoyal/NLP-Research-Project
6adf80cb7fa3737f88faf73a6e818da495b95ab4
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_us_race_ethnicity_out.py
akshitgoyal/NLP-Research-Project
6adf80cb7fa3737f88faf73a6e818da495b95ab4
[ "MIT" ]
1
2020-07-01T18:46:20.000Z
2020-07-01T18:46:20.000Z
# coding: utf-8 """ NamSor API v2 NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't fi...
33.532164
385
0.643966
516eea6fc771ec9d647a7a08cc20018eb05108b6
150
py
Python
app/views/__init__.py
mrakzero/FlaskCMS
03ad35610befca1f45d5705f07cfb4794f9b2d3b
[ "MulanPSL-1.0" ]
1
2022-03-31T03:57:45.000Z
2022-03-31T03:57:45.000Z
app/views/__init__.py
mrakzero/FlaskCMS
03ad35610befca1f45d5705f07cfb4794f9b2d3b
[ "MulanPSL-1.0" ]
null
null
null
app/views/__init__.py
mrakzero/FlaskCMS
03ad35610befca1f45d5705f07cfb4794f9b2d3b
[ "MulanPSL-1.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # File: __init__.py.py # Version: v1.0.0 # Description: # Author: Zhang Zhijun # Date: 2021/8/9 21:38
18.75
23
0.626667
5172d1236911e64f33039eed4065e8300a6a9c14
11,307
py
Python
gluon/gluoncv2/models/res2net.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
2,649
2018-08-03T14:18:00.000Z
2022-03-31T08:08:17.000Z
gluon/gluoncv2/models/res2net.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
95
2018-08-13T01:46:03.000Z
2022-03-13T08:38:14.000Z
gluon/gluoncv2/models/res2net.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
549
2018-08-06T08:09:22.000Z
2022-03-31T08:08:21.000Z
""" Res2Net for ImageNet-1K, implemented in Gluon. Original paper: 'Res2Net: A New Multi-scale Backbone Architecture,' https://arxiv.org/abs/1904.01169. """ __all__ = ['Res2Net', 'res2net50_w14_s8', 'res2net50_w26_s8'] import os from mxnet import cpu from mxnet.gluon import nn, HybridBlock from mxnet.gluon.co...
32.398281
120
0.573804
5174351e99ecce6cc76d978668a7a39b17c6cccd
7,043
py
Python
road-and-rail-stats/calculate_rail_emissions_and_energy.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
road-and-rail-stats/calculate_rail_emissions_and_energy.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
road-and-rail-stats/calculate_rail_emissions_and_energy.py
Rebeccacachia/projects
4f8bebce1c0b4ba2d032aba658b38c3de9effb32
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.4 # kernelspec: # display_name: Python 3 # name: python3 # --- # + from pathlib import Path import geopandas as gpd import pandas as pd fro...
26.378277
102
0.726821
517868c65643737a037449d59aee28416ad434c1
2,264
py
Python
tests/test_aserver.py
thomas-hermann/pya
7dccda7e40c39c09f53ef97eed4b10790faff0ad
[ "MIT" ]
23
2019-10-18T07:48:44.000Z
2022-01-24T06:51:17.000Z
tests/test_aserver.py
dreinsch/pya
7dccda7e40c39c09f53ef97eed4b10790faff0ad
[ "MIT" ]
35
2019-09-16T18:56:23.000Z
2021-04-03T09:53:09.000Z
tests/test_aserver.py
dreinsch/pya
7dccda7e40c39c09f53ef97eed4b10790faff0ad
[ "MIT" ]
3
2020-07-07T19:27:19.000Z
2021-06-20T15:17:53.000Z
from unittest import TestCase, skipUnless, mock from pya import * import numpy as np import time
31.444444
106
0.614841
5178707bdedf7ac6340fc829d9cad1f10afa38ef
522
py
Python
core/view/verbose.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
core/view/verbose.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
core/view/verbose.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
from typing import Protocol, runtime_checkable from enum import Enum import abc
21.75
46
0.683908
5178abcf714d0d6c538bbd201e3e7112723ae1b5
13
py
Python
dev.py
drequena/repo-luz
d8bdde66708a5311ebb499b6b8a64aa9d28c46d3
[ "Apache-2.0" ]
null
null
null
dev.py
drequena/repo-luz
d8bdde66708a5311ebb499b6b8a64aa9d28c46d3
[ "Apache-2.0" ]
null
null
null
dev.py
drequena/repo-luz
d8bdde66708a5311ebb499b6b8a64aa9d28c46d3
[ "Apache-2.0" ]
null
null
null
print("Dev")
6.5
12
0.615385
517a09e112c6a08040ced1422617aebc07fbc4e6
2,841
py
Python
PythonUtils/live_info/live_rail.py
tiy1807/PythonUtils
caf48753fd5f8f984dc5e40b1f55f53706621dd0
[ "Apache-2.0" ]
null
null
null
PythonUtils/live_info/live_rail.py
tiy1807/PythonUtils
caf48753fd5f8f984dc5e40b1f55f53706621dd0
[ "Apache-2.0" ]
null
null
null
PythonUtils/live_info/live_rail.py
tiy1807/PythonUtils
caf48753fd5f8f984dc5e40b1f55f53706621dd0
[ "Apache-2.0" ]
null
null
null
import sys from zeep import Client from PythonUtils.text_input import TextInput from PythonUtils.live_info.display_item import DisplayItem from PythonUtils.user_input import UserInput import json from pathlib import Path # WSDL location of the LDBWS rail information. The most up to date version is # detailed here: htt...
46.57377
111
0.598029
517aec1d618a1c25a1fc2289da85b182e589d9da
3,220
py
Python
metrics.py
google-research/fitvid
6bacb069e378a7441985f5e70569dc5c963b5838
[ "Apache-2.0" ]
51
2021-06-22T19:00:19.000Z
2022-03-10T23:16:22.000Z
metrics.py
google-research/fitvid
6bacb069e378a7441985f5e70569dc5c963b5838
[ "Apache-2.0" ]
2
2021-06-25T03:16:39.000Z
2022-03-04T06:26:03.000Z
metrics.py
google-research/fitvid
6bacb069e378a7441985f5e70569dc5c963b5838
[ "Apache-2.0" ]
7
2021-06-25T08:18:17.000Z
2022-02-08T05:04:03.000Z
# Copyright 2020 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, ...
29.009009
74
0.745963
517baa387f54087f3187b9b8d6878d4f9cbdd567
2,816
py
Python
src/analysis/duration/d_prime.py
EstevaoVieira/spikelearn
060206558cc37c31493f1c9f01412d90375403cb
[ "MIT" ]
null
null
null
src/analysis/duration/d_prime.py
EstevaoVieira/spikelearn
060206558cc37c31493f1c9f01412d90375403cb
[ "MIT" ]
null
null
null
src/analysis/duration/d_prime.py
EstevaoVieira/spikelearn
060206558cc37c31493f1c9f01412d90375403cb
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import scipy.stats as st import sys sys.path.append('.') import os from spikelearn.data import io, to_feature_array, select, SHORTCUTS # Directory savedir = 'data/results/duration/d_prime2' if not os.path.exists(savedir): os.makedirs(savedir) # Parameters T_short_MAX, T_lo...
36.571429
105
0.621804
517d85ea470a29dfc6956fb01a2a0f088f31fb7e
3,217
py
Python
features/steps/day5.py
erikedin/aoc2016
7f248f252b0a846e39c60d66485f796576b2179e
[ "MIT" ]
null
null
null
features/steps/day5.py
erikedin/aoc2016
7f248f252b0a846e39c60d66485f796576b2179e
[ "MIT" ]
null
null
null
features/steps/day5.py
erikedin/aoc2016
7f248f252b0a846e39c60d66485f796576b2179e
[ "MIT" ]
null
null
null
from behave import * import aoc2016.securitydoor as securitydoor import aoc2016.day5 as day5
38.759036
121
0.761579
517daa5290ced1affd3a8d3d48d8b9924bd823b5
6,746
py
Python
scripts/threshold_algorithm_randomized.py
NSSAC/active_queries_threshold_gds_published_code
ee1e1035c62d4b66fcf467e0b1c9ae7031fb595d
[ "Apache-2.0" ]
null
null
null
scripts/threshold_algorithm_randomized.py
NSSAC/active_queries_threshold_gds_published_code
ee1e1035c62d4b66fcf467e0b1c9ae7031fb595d
[ "Apache-2.0" ]
null
null
null
scripts/threshold_algorithm_randomized.py
NSSAC/active_queries_threshold_gds_published_code
ee1e1035c62d4b66fcf467e0b1c9ae7031fb595d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # tags: code python thresholdAlgorithm threshold class # import argparse import networkx as nx from random import randint from random import random from random import seed import os import sys import argparse import pdb import logging import time DESC="""This code implements the algorithm for di...
30.251121
102
0.64542
517e27047d5d641e18eeb7fefe552eda3043f7c9
11,125
py
Python
adapters-stk/example/MixedPoissonExample/analyze_performance.py
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
1
2022-03-22T03:49:50.000Z
2022-03-22T03:49:50.000Z
adapters-stk/example/MixedPoissonExample/analyze_performance.py
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
null
null
null
adapters-stk/example/MixedPoissonExample/analyze_performance.py
hillyuan/Panzer
13ece3ea4c145c4d7b6339e3ad6332a501932ea8
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python """ Script for analyzing Panzer kernel performance on next-generation architectures. Runs hierarchic parallelism and generates plots from data. """ __version__ = "1.0" __author__ = "Roger Pawlowski" __date__ = "Dec 2018" # Import python modules for command-line options, the operating syst...
51.985981
234
0.626427
51805cd494063c08b036672d1f73408bdab210b2
77,579
py
Python
Othello.py
ojasonbernal/PythonOthelloGame
9f26b49a9cb84bc6e468081ba2cd37824d879f2a
[ "MIT" ]
null
null
null
Othello.py
ojasonbernal/PythonOthelloGame
9f26b49a9cb84bc6e468081ba2cd37824d879f2a
[ "MIT" ]
null
null
null
Othello.py
ojasonbernal/PythonOthelloGame
9f26b49a9cb84bc6e468081ba2cd37824d879f2a
[ "MIT" ]
null
null
null
# Importing modules import pygame import numpy as np import random # Initializing the Pygame module pygame.init() def console_screen(): """This function is meant for the user to enter specifications for the game as the player plays. """ print('Note: Enter nicknames to name the players in the game'...
49.256508
298
0.568285
5180e926d40115d7f00b67650697ecfccce5ae74
1,556
py
Python
50_mymagic.py
euribates/Jupyter
a199655436cc4ccd41ec22398a1c5212c541f24b
[ "MIT" ]
null
null
null
50_mymagic.py
euribates/Jupyter
a199655436cc4ccd41ec22398a1c5212c541f24b
[ "MIT" ]
null
null
null
50_mymagic.py
euribates/Jupyter
a199655436cc4ccd41ec22398a1c5212c541f24b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from IPython.core.magic import ( register_line_magic, register_cell_magic, register_line_cell_magic, ) from IPython.display import HTML, Image from pygments import highlight from pygments.lexers import PythonLexer, get_lexer_by_name from pygments.formatte...
21.611111
63
0.647815
5184a574c6b2ae85ee48d3894f091535a9f94b9b
3,141
py
Python
exp-visual7w/exp_test_visual7w_baseline.py
ronghanghu/cmn
85644ad56f8f62d04a5e8636ad3efe9ef7b34705
[ "MIT" ]
72
2017-04-12T17:07:36.000Z
2021-06-18T08:20:47.000Z
exp-visual7w/exp_test_visual7w_baseline.py
ronghanghu/cmn
85644ad56f8f62d04a5e8636ad3efe9ef7b34705
[ "MIT" ]
8
2017-07-06T04:24:04.000Z
2020-09-17T10:29:44.000Z
exp-visual7w/exp_test_visual7w_baseline.py
ronghanghu/cmn
85644ad56f8f62d04a5e8636ad3efe9ef7b34705
[ "MIT" ]
21
2017-04-19T07:38:09.000Z
2021-02-28T13:39:22.000Z
from __future__ import absolute_import, division, print_function import sys import os; os.environ['CUDA_VISIBLE_DEVICES'] = '0' # using GPU 0 import tensorflow as tf import numpy as np import skimage.io import skimage.transform from models import visual7w_baseline_model, spatial_feat, fastrcnn_vgg_net from util.vis...
34.516484
91
0.583572
518848548674dcb6ff13b277de742ee812aa02fb
1,388
py
Python
Classic Challenges (Feb 2020)/CurrencyConverter.py
DGrifferty/Python
d725301664db2cbcfd5c4f5974745b4d81c8e28a
[ "Apache-2.0" ]
null
null
null
Classic Challenges (Feb 2020)/CurrencyConverter.py
DGrifferty/Python
d725301664db2cbcfd5c4f5974745b4d81c8e28a
[ "Apache-2.0" ]
null
null
null
Classic Challenges (Feb 2020)/CurrencyConverter.py
DGrifferty/Python
d725301664db2cbcfd5c4f5974745b4d81c8e28a
[ "Apache-2.0" ]
null
null
null
currency = { 'GDP' : 1.3, 'EUR' : 1.08, 'USD' : 1.0, 'AUD' : 0.66, 'JPY' : 0.0090 } while True: intialcur = str(input('Please Enter the currency you want to convert from\n: ')).upper() while True: if intialcur in currency: break else: intialcur = str(...
31.545455
113
0.595101
5188613afcda197bb94c393d2b9b90fa6d86d71c
1,671
py
Python
src/predict_client.py
tramper2/sdsandboxCAR
4040de5bcd60ff49013069b6faf12219192771d4
[ "BSD-3-Clause" ]
1
2020-03-23T22:24:05.000Z
2020-03-23T22:24:05.000Z
src/predict_client.py
tramper2/sdsandboxCAR
4040de5bcd60ff49013069b6faf12219192771d4
[ "BSD-3-Clause" ]
null
null
null
src/predict_client.py
tramper2/sdsandboxCAR
4040de5bcd60ff49013069b6faf12219192771d4
[ "BSD-3-Clause" ]
null
null
null
''' An example of a client that connects to a predict_server It feeds the server with image data a recieves ''' from __future__ import print_function import socket import argparse import sys import numpy as np import h5py import json import time import config # ***** main loop ***** if __name__ == "__main__": pri...
34.102041
170
0.621185
51888c682293bc28ec27e686af93fd54caeb0311
701
py
Python
tests/ServoTest.py
murrayireland/Rover-Code
e46126a38d8ac8bb70867e3378a3c4f89591b385
[ "MIT" ]
null
null
null
tests/ServoTest.py
murrayireland/Rover-Code
e46126a38d8ac8bb70867e3378a3c4f89591b385
[ "MIT" ]
null
null
null
tests/ServoTest.py
murrayireland/Rover-Code
e46126a38d8ac8bb70867e3378a3c4f89591b385
[ "MIT" ]
null
null
null
# Test of writing servo position via Raspberry Pi GPIO pins # Murray Ireland # 22/12/2016 __author__ = 'Murray Ireland' # Packages import RPi.GPIO as GPIO import time # Set pin numbering scheme GPIO.setmode(GPIO.BOARD) # Set output pin to physical pin 11 GPIO.setup(11, GPIO.OUT) # Set PWM sequence at 50Hz (0.02s p...
15.931818
59
0.714693
5189e8dce549c4dc6466c38f794665ba052c5c6a
1,206
py
Python
rook/dashboard/tables/messages.py
roocs/roocs-wps-demo
24ed2c3b58bbe75e45f2185489fe9ea25efaabf9
[ "Apache-2.0" ]
null
null
null
rook/dashboard/tables/messages.py
roocs/roocs-wps-demo
24ed2c3b58bbe75e45f2185489fe9ea25efaabf9
[ "Apache-2.0" ]
7
2020-02-14T08:03:40.000Z
2020-04-02T07:48:08.000Z
rook/dashboard/tables/messages.py
roocs/roocs-wps-demo
24ed2c3b58bbe75e45f2185489fe9ea25efaabf9
[ "Apache-2.0" ]
1
2020-02-25T14:17:32.000Z
2020-02-25T14:17:32.000Z
import pandas as pd from bokeh.models import ColumnDataSource from bokeh.models import TableColumn, DataTable, DateFormatter from .base import TableView
34.457143
80
0.59204
518b046e2ab1fc7c0553b8c1b697fb51787ff7f0
3,180
py
Python
app/controllers/settings.py
williamflynt/MailgunMailer
c25212ddd57b0603dd10f651acc0e381c10b8cdd
[ "MIT" ]
null
null
null
app/controllers/settings.py
williamflynt/MailgunMailer
c25212ddd57b0603dd10f651acc0e381c10b8cdd
[ "MIT" ]
null
null
null
app/controllers/settings.py
williamflynt/MailgunMailer
c25212ddd57b0603dd10f651acc0e381c10b8cdd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import render_template, session, request from app import app from app.log import get_logger from app.models.Login import login_required from app.models.SQL_DB import User logger = get_logger(__name__)
31.176471
71
0.713522
518f3024a30d130d5b61ad1a31e1cc80b846e52d
901
py
Python
Scraping/Scraping_Instagram/insta_crawler/Image.py
ghassen1302/Interview_Code_Demonstration
fd9e2b313d3203e79e4f40bd52f82365508126d2
[ "Apache-2.0" ]
null
null
null
Scraping/Scraping_Instagram/insta_crawler/Image.py
ghassen1302/Interview_Code_Demonstration
fd9e2b313d3203e79e4f40bd52f82365508126d2
[ "Apache-2.0" ]
null
null
null
Scraping/Scraping_Instagram/insta_crawler/Image.py
ghassen1302/Interview_Code_Demonstration
fd9e2b313d3203e79e4f40bd52f82365508126d2
[ "Apache-2.0" ]
null
null
null
import os import json import time from selenium import webdriver # from .crawler.media import login from .crawler.media import getimages # from .crawler.media import getcomments # from .crawler.crawler.spiders.profil import launch # from webdriver_manager.chrome import ChromeDriverManager username = 'jawherbouhouch7...
30.033333
87
0.657048
518fa4948ed870564f418090d471d02e9abf6d19
2,321
py
Python
LeetCode/weekly/241/1.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
1
2021-05-11T09:52:38.000Z
2021-05-11T09:52:38.000Z
LeetCode/weekly/241/1.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
null
null
null
LeetCode/weekly/241/1.py
Muzque/Leetcode
d06365792c9ef48e0a290da00ba5e71f212554d5
[ "MIT" ]
1
2021-05-05T04:13:17.000Z
2021-05-05T04:13:17.000Z
""" 1863. Sum of All Subset XOR Totals """ """ The XOR total of an array is defined as the bitwise XOR of all its elements, or 0 if the array is empty. For example, the XOR total of the array [2,5,6] is 2 XOR 5 XOR 6 = 1. Given an array nums, return the sum of all XOR totals for every subset of nums. Note: Subsets ...
23.21
80
0.609651
519095ea96f6fd1cbcdd23a437216c2beaf835ad
6,977
py
Python
src/net_sniff.py
Ra7mo0on/3agL3
44da6189773826a52a5314f0cc48c00289e48947
[ "MIT" ]
1
2021-10-09T23:41:20.000Z
2021-10-09T23:41:20.000Z
src/net_sniff.py
An0nYm0u5101/3agL3
44da6189773826a52a5314f0cc48c00289e48947
[ "MIT" ]
null
null
null
src/net_sniff.py
An0nYm0u5101/3agL3
44da6189773826a52a5314f0cc48c00289e48947
[ "MIT" ]
1
2021-10-09T23:41:28.000Z
2021-10-09T23:41:28.000Z
""" Real-time network traffic capturing using scapy.all.sniff """ from datetime import datetime from colored import fg, attr from scapy.all import * def ARPFormatString(self, pkt): """ Returns formatted ARP packet string to print to console """ try: date = datetime.fromtimestamp(pkt.time).strftime('%H:%M:%S %...
29.070833
107
0.596388
51913ed0b2705bf01305e4742b78b7889be9aeb0
8,685
py
Python
betdaq/resources/bettingresources.py
ScoreX/betdaq
408ccb6f2e3ebf9acc4dc585d6b9092d6ae615f0
[ "MIT" ]
13
2017-07-17T22:57:09.000Z
2022-03-25T05:19:04.000Z
betdaq/resources/bettingresources.py
liampauling/betdaq
4b09c4b979665e1841de42ee3c4fe154ba3e3966
[ "MIT" ]
10
2017-07-25T12:01:30.000Z
2021-08-03T15:17:03.000Z
betdaq/resources/bettingresources.py
liampauling/betdaq
4b09c4b979665e1841de42ee3c4fe154ba3e3966
[ "MIT" ]
11
2017-09-04T18:30:48.000Z
2021-07-26T09:04:50.000Z
from betdaq.utils import make_tz_naive, floatify from betdaq.enums import OrderActionType, OrderStatus, OrderKillType, Polarity, MarketStatus
59.081633
126
0.651353
51924a6869dfd9437cc45177c80fbceb98f4485d
243
py
Python
sedastrela_is/urls.py
ondrejsika/sedastrela-is
be9c449c81fd1d7711a09acceb2321fd4828e8b1
[ "MIT" ]
null
null
null
sedastrela_is/urls.py
ondrejsika/sedastrela-is
be9c449c81fd1d7711a09acceb2321fd4828e8b1
[ "MIT" ]
null
null
null
sedastrela_is/urls.py
ondrejsika/sedastrela-is
be9c449c81fd1d7711a09acceb2321fd4828e8b1
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.views.generic.base import RedirectView urlpatterns = [ url(r'^event/', include('sedastrela_is.event.urls', namespace='event')), url(r'^$', RedirectView.as_view(url='/admin/')), ]
27
76
0.707819
5192e07d4c09b237f509a7e6eda2eebeb5098bd4
2,950
py
Python
test/test_synthetic_xdisp.py
sean-mackenzie/gdpyt-analysis
b03931ee431862573aaf449a6b5db2aea00bf998
[ "MIT" ]
null
null
null
test/test_synthetic_xdisp.py
sean-mackenzie/gdpyt-analysis
b03931ee431862573aaf449a6b5db2aea00bf998
[ "MIT" ]
null
null
null
test/test_synthetic_xdisp.py
sean-mackenzie/gdpyt-analysis
b03931ee431862573aaf449a6b5db2aea00bf998
[ "MIT" ]
null
null
null
# test synthetic particles with x-displacement from os.path import join import matplotlib.pyplot as plt # imports import numpy as np import pandas as pd import filter import analyze from correction import correct from utils import io, plotting, modify, details # setup file paths base_dir = '/Users/mackenzie/Desktop...
37.341772
115
0.675593
5193249282cd300d38e16d581f1b6ec59e9d1f3a
3,605
py
Python
app.py
vblazhnov/stats
dfe103521543af40b6e6c941d28cdd831b765a92
[ "Apache-2.0" ]
null
null
null
app.py
vblazhnov/stats
dfe103521543af40b6e6c941d28cdd831b765a92
[ "Apache-2.0" ]
null
null
null
app.py
vblazhnov/stats
dfe103521543af40b6e6c941d28cdd831b765a92
[ "Apache-2.0" ]
null
null
null
#!flask/bin/python # Copyright 2015 vblazhnov # # 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 t...
26.123188
99
0.678225
519505d599adfe321c7545f4eb0da54e22f063b6
4,104
py
Python
diagan-pkg/diagan/trainer/scheduler.py
lee-jinhee/self-diagnosing-gan
da87dd1ef10f2d630d6904ced63ae8805b5db356
[ "Apache-2.0" ]
16
2021-02-25T06:48:51.000Z
2022-03-04T13:08:12.000Z
diagan-pkg/diagan/trainer/scheduler.py
lee-jinhee/self-diagnosing-gan
da87dd1ef10f2d630d6904ced63ae8805b5db356
[ "Apache-2.0" ]
null
null
null
diagan-pkg/diagan/trainer/scheduler.py
lee-jinhee/self-diagnosing-gan
da87dd1ef10f2d630d6904ced63ae8805b5db356
[ "Apache-2.0" ]
4
2021-03-02T02:03:17.000Z
2022-03-24T03:31:12.000Z
""" Implementation of a specific learning rate scheduler for GANs. """
38.35514
107
0.612817
51952efcf7c6d5d53b78efef09aae93be736969f
1,773
py
Python
paraview_scripts/export_slice_to_csv.py
ric-95/azimuthal-average
a955ff4c6904c8f15d062d08cd83b59655f64db0
[ "MIT" ]
null
null
null
paraview_scripts/export_slice_to_csv.py
ric-95/azimuthal-average
a955ff4c6904c8f15d062d08cd83b59655f64db0
[ "MIT" ]
null
null
null
paraview_scripts/export_slice_to_csv.py
ric-95/azimuthal-average
a955ff4c6904c8f15d062d08cd83b59655f64db0
[ "MIT" ]
null
null
null
# trace generated using paraview version 5.9.0-RC2 #### import the simple module from the paraview from paraview.simple import * #### disable automatic camera reset on 'Show'
30.568966
107
0.640722
519703519b1822b675914d8d9bbde49d58e9c9f1
2,098
py
Python
NewDeclarationInQueue/preprocess/document_location.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
null
null
null
NewDeclarationInQueue/preprocess/document_location.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
7
2022-01-29T22:19:55.000Z
2022-03-28T18:18:19.000Z
NewDeclarationInQueue/preprocess/document_location.py
it-pebune/ani-research-data-extraction
e8b0ffecb0835020ce7942223cf566dc45ccee35
[ "MIT" ]
null
null
null
from NewDeclarationInQueue.preprocess.models import DocumentType
39.584906
133
0.639657
51973f20a84c81723dfbd436a281522f3c2242f9
968
py
Python
python/pyside/pyside6/drag_and_drop_firefox_tabs.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
23
2015-06-08T13:01:00.000Z
2021-12-30T08:20:04.000Z
python/pyside/pyside6/drag_and_drop_firefox_tabs.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
1
2020-10-22T02:36:10.000Z
2020-10-22T02:36:10.000Z
python/pyside/pyside6/drag_and_drop_firefox_tabs.py
jeremiedecock/snippets
4bd4e7f459eee610d5cf19f845299ca942ff4b64
[ "MIT" ]
7
2017-10-31T09:48:14.000Z
2022-01-04T15:59:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # https://doc.qt.io/qtforpython/overviews/dnd.html import sys from PySide6 import QtCore, QtWidgets if __name__ == "__main__": app = QtWidgets.QApplication([]) widget = Windows() widget.resize(800, 600) widget.show() sys.exit(app.exec())
22.511628
93
0.647727
5198c026cb3a9f64c17f8f6d7e821a1da7113439
1,850
py
Python
examples/simple_rnn_comparison/without_treeano.py
diogo149/treeano
9b3fd6bb5eb2f6738c9e5c357e70bef95dcae7b7
[ "Apache-2.0" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
examples/simple_rnn_comparison/without_treeano.py
diogo149/treeano
9b3fd6bb5eb2f6738c9e5c357e70bef95dcae7b7
[ "Apache-2.0" ]
5
2015-07-24T00:51:19.000Z
2016-02-03T07:32:49.000Z
examples/simple_rnn_comparison/without_treeano.py
diogo149/treeano
9b3fd6bb5eb2f6738c9e5c357e70bef95dcae7b7
[ "Apache-2.0" ]
13
2015-07-24T00:46:28.000Z
2022-01-18T16:55:47.000Z
import numpy as np import theano import theano.tensor as T fX = theano.config.floatX LAG = 20 LENGTH = 50 N_TRAIN = 5000 HIDDEN_STATE_SIZE = 10 W_x = theano.shared( (0.1 * np.random.randn(1, HIDDEN_STATE_SIZE)).astype(fX)) W_h = theano.shared( (0.1 * np.random.randn(HIDDEN_STATE_SIZE, ...
25.694444
67
0.636216
519925f0a8992b792154a679a2044d635b8e50f4
3,846
py
Python
marltoolbox/utils/restore.py
longtermrisk/marltoolbox
cae1ba94ccb44700b66a32e0734a0f11c9c6c7fe
[ "MIT" ]
17
2021-01-17T21:21:08.000Z
2022-01-27T00:57:30.000Z
marltoolbox/utils/restore.py
longtermrisk/marltoolbox
cae1ba94ccb44700b66a32e0734a0f11c9c6c7fe
[ "MIT" ]
5
2021-02-21T21:43:00.000Z
2021-05-04T12:27:23.000Z
marltoolbox/utils/restore.py
longtermrisk/marltoolbox
cae1ba94ccb44700b66a32e0734a0f11c9c6c7fe
[ "MIT" ]
3
2021-02-21T11:38:22.000Z
2022-03-04T12:06:19.000Z
import logging import os import pickle logger = logging.getLogger(__name__) LOAD_FROM_CONFIG_KEY = "checkpoint_to_load_from" def after_init_load_policy_checkpoint( policy, observation_space=None, action_space=None, trainer_config=None ): """ This function is to be given to a policy template(a policy fac...
37.705882
79
0.658346
5199971ef7967614dfb2e5ce751de5f42b8d27c2
204
py
Python
assistant/forms.py
RiadSaidur/django-hospitals
11a3022d4cbf6a67bfce65a32de47204d6362f51
[ "MIT" ]
1
2020-03-22T13:20:32.000Z
2020-03-22T13:20:32.000Z
assistant/forms.py
RiadSaidur/django-hospitals
11a3022d4cbf6a67bfce65a32de47204d6362f51
[ "MIT" ]
8
2021-03-30T12:54:35.000Z
2021-09-26T07:28:01.000Z
assistant/forms.py
RiadSaidur/django-hospitals
11a3022d4cbf6a67bfce65a32de47204d6362f51
[ "MIT" ]
null
null
null
from django import forms # model from patient.models import Request
17
42
0.696078
5199ad26f4f800d5426f907be143b17566aedd10
1,095
py
Python
rls/common/decorator.py
StepNeverStop/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
371
2019-04-26T00:37:33.000Z
2022-03-31T07:33:12.000Z
rls/common/decorator.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
47
2019-07-21T11:51:57.000Z
2021-08-31T08:45:22.000Z
rls/common/decorator.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
102
2019-06-29T13:11:15.000Z
2022-03-28T13:51:04.000Z
#!/usr/bin/env python3 # encoding: utf-8 import functools import torch as th from rls.utils.converter import to_numpy, to_tensor
27.375
80
0.609132
519aeef8de83a1552094d87a957e639c0e4b2df7
211
py
Python
ABC_B/ABC083_B.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_B/ABC083_B.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_B/ABC083_B.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
n, a, b = map(int, input().split()) ans = 0 for i in range(1, n+1): str_i = str(i) sum = 0 for j in range(len(str_i)): sum += int(str_i[j]) if a <= sum <= b: ans +=i print(ans)
16.230769
35
0.473934
519b8199895ad6cadac578a791bce89d688f96bc
2,846
py
Python
memcheck/UIdesign/main.py
XDZhelheim/cs302-process-memory-tracker
344e1bb0bd44968506d9b9ca2d2cd5bdc0e49abf
[ "MIT" ]
null
null
null
memcheck/UIdesign/main.py
XDZhelheim/cs302-process-memory-tracker
344e1bb0bd44968506d9b9ca2d2cd5bdc0e49abf
[ "MIT" ]
null
null
null
memcheck/UIdesign/main.py
XDZhelheim/cs302-process-memory-tracker
344e1bb0bd44968506d9b9ca2d2cd5bdc0e49abf
[ "MIT" ]
1
2021-05-30T14:18:15.000Z
2021-05-30T14:18:15.000Z
#!/usr/bin/python3 import os import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QFileDialog, QDialog import test1 import dialog1 path = '' prgm_in = ' < testin.txt' log = '' memory = '' file_handler = '' if __name__ == '__main__': app = QApplication(sys.argv) MainWindow = QMainWindow() ...
31.977528
124
0.575545
519b88e24377b188505c8b9f06d6868c4e16da47
7,890
py
Python
addons/sale_project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/sale_project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/sale_project/models/project.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from ast import literal_eval from odoo import api, fields, models, _ from odoo.exceptions import ValidationError # --------------------------------------------------- # Actions # -------------------------...
46.411765
280
0.632319
519c516f06dca90dbbc19973f09851e85d0ffa72
38,708
py
Python
AnnotationTool/backend/server.py
xjtu-intsoft/chase-page
84657a6b80e926b91ff99a78e660ba8f603321f4
[ "MIT" ]
34
2021-05-07T06:59:33.000Z
2022-03-15T02:36:19.000Z
AnnotationTool/backend/server.py
xjtu-intsoft/chase-page
84657a6b80e926b91ff99a78e660ba8f603321f4
[ "MIT" ]
null
null
null
AnnotationTool/backend/server.py
xjtu-intsoft/chase-page
84657a6b80e926b91ff99a78e660ba8f603321f4
[ "MIT" ]
2
2021-08-17T12:23:03.000Z
2021-10-12T04:10:41.000Z
# coding=utf8 import os import json import copy import pathlib import tempfile from typing import Dict, List, Union from pprint import pprint from datetime import datetime from overrides import overrides from flask import Flask, Response, request, render_template, redirect, url_for, send_file from flask_login import L...
39.578732
161
0.626382
519e7cc48cab3c9573d007ce00af528a04335789
1,322
py
Python
commit_data.py
iwangjian/ByteCup2018
c59c6a495f81c493eaaf7fda710c8acd7ef148b9
[ "MIT" ]
80
2018-09-08T01:11:36.000Z
2022-01-18T13:41:30.000Z
commit_data.py
BoostMom/ByteCup2018
c59c6a495f81c493eaaf7fda710c8acd7ef148b9
[ "MIT" ]
3
2018-12-02T15:08:05.000Z
2020-02-10T04:11:28.000Z
commit_data.py
BoostMom/ByteCup2018
c59c6a495f81c493eaaf7fda710c8acd7ef148b9
[ "MIT" ]
21
2018-10-27T07:40:25.000Z
2022-03-28T12:30:01.000Z
import os import argparse if __name__ == '__main__': parser = argparse.ArgumentParser(description='Convert decoded files to commit files') parser.add_argument('--decode_dir', action='store', required=True, help='directory of decoded summaries') parser.add_argument('--result_dir', ...
33.897436
89
0.553707
519f6c5e56676023ce32265ab2cf38f5a9757b9d
2,791
py
Python
ping_dashboard/services/location_service.py
eli-cobler/PingDashboard
59b287c40388589107535a482c7dced351136261
[ "MIT" ]
null
null
null
ping_dashboard/services/location_service.py
eli-cobler/PingDashboard
59b287c40388589107535a482c7dced351136261
[ "MIT" ]
null
null
null
ping_dashboard/services/location_service.py
eli-cobler/PingDashboard
59b287c40388589107535a482c7dced351136261
[ "MIT" ]
null
null
null
from typing import List import os from sqlalchemy.orm.exc import NoResultFound import sqlalchemy.sql from ping_dashboard.data import db_session from ping_dashboard.data.location import Location
26.084112
112
0.66392
519fc4e9d76b4c3eb2efcfc760f60c26d8a0ee6f
502
py
Python
src/main/python/server/encoder.py
eecevit-tgm/flask-vue-heroku
4b76639f4f26bb0cbbf5e50b55008696d756aa7c
[ "MIT" ]
null
null
null
src/main/python/server/encoder.py
eecevit-tgm/flask-vue-heroku
4b76639f4f26bb0cbbf5e50b55008696d756aa7c
[ "MIT" ]
null
null
null
src/main/python/server/encoder.py
eecevit-tgm/flask-vue-heroku
4b76639f4f26bb0cbbf5e50b55008696d756aa7c
[ "MIT" ]
null
null
null
""" .. module:: encoder :synopsis: Restful User-Service image encoder .. moduleauthor:: Ecevit Emre Okan <github.com/eecevit-tgm> """ import base64 def encode(file): """ A base64 encoder for Images :param file: Path of the Image which should be encoded. !IMPORTANT! file ending e.g.: eecevit.jpg :r...
26.421053
101
0.681275
51a0708d728936dbadf0a79cb28cdf1462052a8c
1,973
py
Python
helpers/python/sqid/classes.py
tp1-SpZIaPvBD/sqid
747f98ac06a2938bcacadb9785fad7cfa747d446
[ "Apache-2.0" ]
54
2016-06-22T22:03:35.000Z
2022-02-14T00:23:38.000Z
helpers/python/sqid/classes.py
tp1-SpZIaPvBD/sqid
747f98ac06a2938bcacadb9785fad7cfa747d446
[ "Apache-2.0" ]
80
2016-06-16T00:46:56.000Z
2022-02-28T03:07:38.000Z
helpers/python/sqid/classes.py
tp1-SpZIaPvBD/sqid
747f98ac06a2938bcacadb9785fad7cfa747d446
[ "Apache-2.0" ]
15
2016-06-27T05:58:49.000Z
2020-11-17T15:11:05.000Z
import logging from collections import defaultdict from . import sparql, queries, statistics logger = logging.getLogger(__name__) def update_class_records(): """Updates statistics for classes.""" logger.info('Fetching class ids and labels for ' 'classes with direct instances') timestamp ...
30.353846
75
0.64369
51a0bd2bff320ee855b3e9dd424da651c680ad50
282
py
Python
src/helpers/config.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
src/helpers/config.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
src/helpers/config.py
daavofficial/Aural
b4ef4170dcc27d87b2a08a9ae59383ea8099e024
[ "MIT" ]
null
null
null
VERSION = "0.0.2" VERSION_GUI = "0.0.2" VERSION_CUI = "0.0.0" VERSION_AUDIOCABLE = "0.0.2" VERSION_ROUTE = "0.0.2" VERSION_SETINGS = "0.0.1" CALLBACK_AUDIOCABLE_SELECTED = None CALLBACK_ROUTE_SELECTED = None SETTINGS = None CONFIGURATION = None PATH_ROOT = "" PATH_SETTINGS = ""
17.625
35
0.719858
51a14ef6b711cbefdea34ab88c389ab0fa3c7a0c
567
py
Python
2020/2/2b.py
sishtiaq/aoc
1c200ebed048bbd8ad6a684aaef8921d826f3d1b
[ "Apache-2.0" ]
null
null
null
2020/2/2b.py
sishtiaq/aoc
1c200ebed048bbd8ad6a684aaef8921d826f3d1b
[ "Apache-2.0" ]
null
null
null
2020/2/2b.py
sishtiaq/aoc
1c200ebed048bbd8ad6a684aaef8921d826f3d1b
[ "Apache-2.0" ]
null
null
null
import functools from input import input if __name__ == "__main__": for i in input: lo,hi,l,s = split(i) res = check(lo,hi,l,s) print('line is {}-{}, {}, s={}. check={}'.format(lo,hi,l,s,res))
23.625
79
0.553792
51a19a899c7faf77ba76deca83adc94e42e1b6c8
13,507
py
Python
antinuke/antinuke.py
AAA3A-AAA3A/AAA3A-cogs
076ff390610e2470a086bdae41647ee21f01c323
[ "MIT" ]
1
2022-03-17T02:06:37.000Z
2022-03-17T02:06:37.000Z
antinuke/antinuke.py
AAA3A-AAA3A/AAA3A-cogs
076ff390610e2470a086bdae41647ee21f01c323
[ "MIT" ]
2
2022-03-07T03:29:33.000Z
2022-03-17T06:51:43.000Z
antinuke/antinuke.py
AAA3A-AAA3A/AAA3A-cogs
076ff390610e2470a086bdae41647ee21f01c323
[ "MIT" ]
2
2021-11-24T19:31:55.000Z
2022-01-02T06:34:22.000Z
from .AAA3A_utils.cogsutils import CogsUtils # isort:skip from redbot.core import commands # isort:skip from redbot.core.i18n import Translator, cog_i18n # isort:skip from redbot.core.bot import Red # isort:skip import discord # isort:skip import typing # isort:skip from typing import List, Optional, Tuple,...
51.162879
222
0.610942
51a4c6b779e8fc472fe8191f1b268ab1bf294fc9
30,282
py
Python
cornflow-dags/DAG/roadef/solvers/PeriodicMIP.py
ggsdc/corn
4c17c46a70f95b8882bcb6a55ef7daa1f69e0456
[ "MIT" ]
2
2020-07-09T20:58:47.000Z
2020-07-20T20:40:46.000Z
cornflow-dags/DAG/roadef/solvers/PeriodicMIP.py
baobabsoluciones/cornflow
bd7cae22107e5fe148704d5f41d4f58f9c410b40
[ "Apache-2.0" ]
2
2022-03-31T08:42:10.000Z
2022-03-31T12:05:23.000Z
cornflow-dags/DAG/roadef/solvers/PeriodicMIP.py
ggsdc/corn
4c17c46a70f95b8882bcb6a55ef7daa1f69e0456
[ "MIT" ]
null
null
null
from .RoutesGenerator import RoutesGenerator from .MIPModel import MIPModel from collections import defaultdict, OrderedDict from pytups import SuperDict, TupList from datetime import datetime import pulp as pl import pickle import json import itertools
39.073548
119
0.555016
51a6cf65d39a2bf9aac0a6337d87e8b618aefc57
410
py
Python
gochan/browser.py
morin4ga/gochan
46285caa394c6b37e1e418ebd5c8be2b296b564f
[ "MIT" ]
1
2020-04-22T09:25:53.000Z
2020-04-22T09:25:53.000Z
gochan/browser.py
anon774/gochan
46285caa394c6b37e1e418ebd5c8be2b296b564f
[ "MIT" ]
4
2021-04-23T03:20:39.000Z
2022-03-12T00:29:19.000Z
gochan/browser.py
anon774/gochan
46285caa394c6b37e1e418ebd5c8be2b296b564f
[ "MIT" ]
null
null
null
import webbrowser from subprocess import Popen from typing import List from gochan.config import BROWSER_PATH
19.52381
38
0.663415
51a81d635f08ca64d55e3aa471feaea3aaef5b1b
653
py
Python
api/alembic/versions/2710366d3d68_add_domain_s_ip.py
dodobox-s-team/dodobox-ext
aac696766468b1a14bea0bae8abae3d174c75b67
[ "MIT" ]
null
null
null
api/alembic/versions/2710366d3d68_add_domain_s_ip.py
dodobox-s-team/dodobox-ext
aac696766468b1a14bea0bae8abae3d174c75b67
[ "MIT" ]
null
null
null
api/alembic/versions/2710366d3d68_add_domain_s_ip.py
dodobox-s-team/dodobox-ext
aac696766468b1a14bea0bae8abae3d174c75b67
[ "MIT" ]
null
null
null
"""Add domain's ip Revision ID: 2710366d3d68 Revises: 43b883c483b4 Create Date: 2021-12-22 03:19:46.487228 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = '2710366d3d68' down_revision = '43b883c483b4' branch_labels = None depends_on = None
21.766667
76
0.686064
51a8a5ea4b3bcb9b33a3e62002c249025c90e13f
13,905
py
Python
tests/test_images.py
Muhammad-R/flaskr
16f33963653fa758c9402b91f2f4723ba3d7a6db
[ "MIT" ]
2
2021-03-04T08:23:20.000Z
2021-12-19T16:41:54.000Z
tests/test_images.py
Muhammad-R/flaskr
16f33963653fa758c9402b91f2f4723ba3d7a6db
[ "MIT" ]
null
null
null
tests/test_images.py
Muhammad-R/flaskr
16f33963653fa758c9402b91f2f4723ba3d7a6db
[ "MIT" ]
2
2021-09-14T20:57:35.000Z
2021-12-19T15:26:58.000Z
import os import shutil import pytest from flask import url_for from werkzeug.datastructures import FileStorage from flaskr import images from flaskr.db import get_db def test_get_example_image_from_url(app, client, example_image_to_upload_dir): example_image = ExampleImage() with app.app_context(): ...
37.379032
79
0.665085
51ac481c0a0f07389f7d89f171866a1b98d33ec1
1,071
py
Python
lints/reserved_words.py
yrom1/sqlint
69137ee434c4a0ef6b5bec10436ff9115c6254c3
[ "MIT" ]
null
null
null
lints/reserved_words.py
yrom1/sqlint
69137ee434c4a0ef6b5bec10436ff9115c6254c3
[ "MIT" ]
null
null
null
lints/reserved_words.py
yrom1/sqlint
69137ee434c4a0ef6b5bec10436ff9115c6254c3
[ "MIT" ]
null
null
null
"""SQL reserved words style checker. The rule: Use uppercase for SQL reserved keywords. """ import re from typing import List, Tuple from lints.common import remove_multiline_comments, remove_dashdash_comments, remove_punctuation, remove_spacing, find_lowercase_sql_keywords if __name__ == '__main__': pass
33.46875
141
0.690943
51acd6a8ef3173804b57f91d34eb632d4e8c1afe
574
py
Python
vstutils/api/meta.py
FloThinksPi-Forks/vstutils
eeb4d7a4d280cb8b844d9c9ab212e88f7bbe5d38
[ "Apache-2.0" ]
36
2018-05-29T22:55:45.000Z
2021-11-18T22:59:29.000Z
vstutils/api/meta.py
FloThinksPi-Forks/vstutils
eeb4d7a4d280cb8b844d9c9ab212e88f7bbe5d38
[ "Apache-2.0" ]
19
2020-03-05T01:31:52.000Z
2022-01-21T08:22:19.000Z
vstutils/api/meta.py
FloThinksPi-Forks/vstutils
eeb4d7a4d280cb8b844d9c9ab212e88f7bbe5d38
[ "Apache-2.0" ]
10
2018-07-30T10:14:30.000Z
2022-01-08T12:07:20.000Z
from rest_framework.metadata import SimpleMetadata from . import fields, serializers
31.888889
56
0.733449
51acf53c82a245381ccab69badfd56a29e6a49b7
4,475
py
Python
install_packages/ip_vtktudoss.py
nagyistoce/devide.johannes
2c15bdd41d9ad290d1e13ba9ea9c57f0ec205ca3
[ "BSD-3-Clause" ]
1
2017-05-11T10:39:24.000Z
2017-05-11T10:39:24.000Z
install_packages/ip_vtktudoss.py
nagyistoce/devide.johannes
2c15bdd41d9ad290d1e13ba9ea9c57f0ec205ca3
[ "BSD-3-Clause" ]
null
null
null
install_packages/ip_vtktudoss.py
nagyistoce/devide.johannes
2c15bdd41d9ad290d1e13ba9ea9c57f0ec205ca3
[ "BSD-3-Clause" ]
1
2017-05-11T10:39:27.000Z
2017-05-11T10:39:27.000Z
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # added -fpermissive to CMAKE_CXX_FLAGS to workaround g++ 4.3 compile # problem on the included CPT code. We were getting "changes meaning # of" errors as documented in # http://stupefydeveloper.blogspot.com/2008/11/c-name-...
34.423077
81
0.57162
51aece021d6cde46c42975a3caea5603bb0d1f9b
580
py
Python
envs.py
webdizz/expansion-ai
80db4937365cfbecfbbd3c83f02ba0d740f422af
[ "Apache-2.0" ]
null
null
null
envs.py
webdizz/expansion-ai
80db4937365cfbecfbbd3c83f02ba0d740f422af
[ "Apache-2.0" ]
null
null
null
envs.py
webdizz/expansion-ai
80db4937365cfbecfbbd3c83f02ba0d740f422af
[ "Apache-2.0" ]
null
null
null
import gym from gym import wrappers from gym.envs.registration import register from config import Params # register ExpansionAi gym env register( id='ExpansionAi-v0', entry_point='expansionai_env:ExpansionAiEnv', )
23.2
72
0.672414
51af29ce02389eddecf4afaf7f0f89e927630deb
13,590
py
Python
train.py
Rayaction/ECO-paddle
28c9adf0f6626dd8d262848fd6a2d7147e76048e
[ "MIT" ]
null
null
null
train.py
Rayaction/ECO-paddle
28c9adf0f6626dd8d262848fd6a2d7147e76048e
[ "MIT" ]
null
null
null
train.py
Rayaction/ECO-paddle
28c9adf0f6626dd8d262848fd6a2d7147e76048e
[ "MIT" ]
null
null
null
import argparse import ast import logging import os import numpy as np import paddle.fluid as fluid from config import parse_config, merge_configs, print_configs from model import ECO from reader import KineticsReader logging.root.handlers = [] FORMAT = '[%(levelname)s: %(filename)s: %(lineno)4d]: %(mes...
44.411765
130
0.554084
51b46c0a7235d08384e87af73a0f41cd3c65733d
2,411
py
Python
opexebo/tests/test_general/test_upsample.py
simon-ball/opexebo
8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31
[ "MIT" ]
4
2019-06-12T07:50:42.000Z
2021-11-19T12:55:47.000Z
opexebo/tests/test_general/test_upsample.py
simon-ball/opexebo
8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31
[ "MIT" ]
12
2019-06-12T07:26:40.000Z
2021-08-11T15:10:47.000Z
opexebo/tests/test_general/test_upsample.py
simon-ball/opexebo
8e44a4890efa60a6ed8c2e9e0df7cc9ab2d80d31
[ "MIT" ]
4
2019-11-21T10:44:37.000Z
2022-01-07T14:21:07.000Z
""" Tests for upsampling""" import numpy as np import pytest from opexebo.general import upsample as func print("=== tests_upsampling ===") ############################################################################### ################ MAIN TESTS #####################################################...
30.1375
87
0.622148
51b8c45d57e0eee325c252fe858686fbb59f637a
326
py
Python
detectors/__init__.py
bc-jcarlson/secret-bridge
3aef518143fd29b8b0f12a13a7ecf175f63a397b
[ "BSD-3-Clause" ]
152
2019-09-25T15:08:16.000Z
2022-03-31T03:34:36.000Z
detectors/__init__.py
bc-jcarlson/secret-bridge
3aef518143fd29b8b0f12a13a7ecf175f63a397b
[ "BSD-3-Clause" ]
23
2019-09-30T11:04:10.000Z
2022-02-23T18:44:46.000Z
detectors/__init__.py
jhabikal21/secret-bridge
4be6d1914928fadbd8f3ef2c2dc9a66535fe674b
[ "BSD-3-Clause" ]
43
2019-09-25T16:57:04.000Z
2021-11-25T05:21:16.000Z
from detectors.detectsecrets import DetectSecrets from detectors.gitsecrets import GitSecrets from detectors.trufflehog import TruffleHog # TODO: Turn this into a registry to match the notifiers pattern? AvailableDetectors = { 'detect-secrets': DetectSecrets, 'git-secrets': GitSecrets, 'trufflehog': Truffle...
32.6
65
0.791411
51bdae7e88e89262a1102b60bd978311023fc8c6
7,316
py
Python
Scripts/simulation/apartments/situations/neighbor_group_hangout.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/apartments/situations/neighbor_group_hangout.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/apartments/situations/neighbor_group_hangout.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\apartments\situations\neighbor_group_hangout.py # Compiled at: 2018-11-17 02:17:10 # Size of source ...
57.15625
538
0.714461
51c1b82f63140092a7000d6377fd832d127dd57e
6,591
py
Python
drf_routers/routers.py
tranvietanh1991/drf-routers
9f7e7d33bf75df9eda75b71f2858a74da8a12008
[ "MIT" ]
1
2016-09-09T07:02:59.000Z
2016-09-09T07:02:59.000Z
drf_routers/routers.py
tranvietanh1991/drf-routers
9f7e7d33bf75df9eda75b71f2858a74da8a12008
[ "MIT" ]
null
null
null
drf_routers/routers.py
tranvietanh1991/drf-routers
9f7e7d33bf75df9eda75b71f2858a74da8a12008
[ "MIT" ]
null
null
null
""" Routers for nested resources. Example: # urls.py from rest_framework_nested import routers router = routers.SimpleRouter() router.register(r'domains', DomainViewSet) domains_router = routers.NestedSimpleRouter(router, r'domains', lookup='domain') domains_router.register(r'nameservers', ...
31.6875
131
0.711728
51c31988991a38c302a9cc4a1ddd1c1bcb5f8219
13,290
py
Python
WhittlerTests/WhittlerProgramTests.py
NeilJustice/whittler
6cd196e85ab2c7b55f1ba16a704dd9b0f635f8f4
[ "MIT" ]
null
null
null
WhittlerTests/WhittlerProgramTests.py
NeilJustice/whittler
6cd196e85ab2c7b55f1ba16a704dd9b0f635f8f4
[ "MIT" ]
null
null
null
WhittlerTests/WhittlerProgramTests.py
NeilJustice/whittler
6cd196e85ab2c7b55f1ba16a704dd9b0f635f8f4
[ "MIT" ]
null
null
null
import inspect import os import sys import unittest from unittest.mock import call, patch from Whittler import File, Process, WhittlerProgram from WhittlerTests import Random, UnitTester testNames = [ 'test_get_module_ReturnsWhittlerProgramModule', 'test_make_whittler_filepath_for_command_ReturnsHomeSlashDot...
57.782609
154
0.765162
51c3b63ccabffe3067970142547f8319ee6446f5
688
py
Python
cdd/pkg_utils.py
SamuelMarks/doctrans
7e5305cfcc20e6dd75b710c564dde6f1ecb0c1a2
[ "Apache-2.0", "MIT" ]
2
2020-07-28T07:06:58.000Z
2021-01-15T01:11:35.000Z
cdd/pkg_utils.py
SamuelMarks/doctrans
7e5305cfcc20e6dd75b710c564dde6f1ecb0c1a2
[ "Apache-2.0", "MIT" ]
null
null
null
cdd/pkg_utils.py
SamuelMarks/doctrans
7e5305cfcc20e6dd75b710c564dde6f1ecb0c1a2
[ "Apache-2.0", "MIT" ]
3
2020-09-09T21:23:09.000Z
2021-02-13T07:53:07.000Z
""" pkg_utils """ from distutils.sysconfig import get_python_lib def relative_filename(filename, remove_hints=tuple()): """ Remove all the paths which are not relevant :param filename: Filename :type filename: ```str``` :param remove_hints: Hints as to what can be removed :type remove_hints...
23.724138
77
0.661337
51c4801c1f9f8af4b3019cc7abe4aa467e67d141
4,641
py
Python
awards/models.py
shamanu4/test_project
8ec52b5ab88c7bae4e469dc04fe64630e2f081fa
[ "MIT" ]
1
2019-07-26T09:56:38.000Z
2019-07-26T09:56:38.000Z
awards/models.py
shamanu4/test_project
8ec52b5ab88c7bae4e469dc04fe64630e2f081fa
[ "MIT" ]
6
2020-06-05T19:00:20.000Z
2022-03-11T23:29:35.000Z
awards/models.py
vintkor/cryptotrade
cd27b5d58e4149cf9ad5e035983fcec566369833
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext as _ from ckeditor_uploader.fields import RichTextUploadingField
47.357143
134
0.731954
51c4fab3c345a5d53f9b52603acb894d247f5a77
4,066
py
Python
Scripts/CEBatchLayerFBXExport.py
Holisticnature/CityEngineToolKit-GeodesignToolkit
4d4f8b3ee91f6d636b6185aeed48b14a5355fd16
[ "Apache-2.0" ]
8
2016-02-15T18:14:53.000Z
2018-02-01T06:14:38.000Z
Scripts/CEBatchLayerFBXExport.py
Holisticnature/CityEngineToolKit-GeodesignToolkit
4d4f8b3ee91f6d636b6185aeed48b14a5355fd16
[ "Apache-2.0" ]
1
2016-04-16T18:48:21.000Z
2016-04-16T18:48:21.000Z
Scripts/CEBatchLayerFBXExport.py
Holisticnature/CityEngineToolKit-GeodesignToolkit
4d4f8b3ee91f6d636b6185aeed48b14a5355fd16
[ "Apache-2.0" ]
5
2016-07-06T23:21:10.000Z
2017-11-08T09:24:51.000Z
# -------------------------------- # Name: CEBatchFBXExport.py # Purpose: Batch export of CE layers to game engine importable FBXs. # Current Owner: David Wasserman # Last Modified: 7/12/2017 # Copyright: (c) Co-Adaptive # CityEngine Vs: 2017 # Python Version: 2.7 # License # Copyright 2015 David J. Wasserman # # L...
38.358491
106
0.649779
51c65d6666525a107484a9ed9d2fd506c0682a03
3,393
py
Python
vel/rl/commands/record_movie_command.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
vel/rl/commands/record_movie_command.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
2
2019-02-23T18:54:22.000Z
2019-11-09T01:30:32.000Z
vel/rl/commands/record_movie_command.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
import cv2 import numpy as np import os.path import pathlib import sys import torch import tqdm import typing from vel.api import ModelConfig, TrainingInfo from vel.api.base import Storage, ModelFactory from vel.rl.api.base import EnvFactory from vel.openai.baselines.common.atari_wrappers import FrameStack
34.622449
120
0.666961
51c816d336e3c0a3ca2ec653b14ab90eeb171ba8
51
py
Python
python_work/Chapter2_Exercises/exe7_name_cases.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
1
2020-08-25T18:42:30.000Z
2020-08-25T18:42:30.000Z
python_work/Chapter2_Exercises/exe7_name_cases.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
null
null
null
python_work/Chapter2_Exercises/exe7_name_cases.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
null
null
null
nome = "\tCarolina" nome = nome.strip() print(nome)
17
19
0.686275
51c8cb4cf56ebf399bd11cc75e3bff9f791d0cc7
869
py
Python
src/ggrc_workflows/migrations/versions/20140814213948_c8263593153_add_object_approval_flag_to_.py
sbilly/ggrc-core
59a6825c6a8e15e42ebdb9e08d079cefd1800120
[ "ECL-2.0", "Apache-2.0" ]
1
2016-11-06T05:21:24.000Z
2016-11-06T05:21:24.000Z
src/ggrc_workflows/migrations/versions/20140814213948_c8263593153_add_object_approval_flag_to_.py
sbilly/ggrc-core
59a6825c6a8e15e42ebdb9e08d079cefd1800120
[ "ECL-2.0", "Apache-2.0" ]
2
2021-02-02T23:09:40.000Z
2021-02-08T21:00:48.000Z
src/ggrc_workflows/migrations/versions/20140814213948_c8263593153_add_object_approval_flag_to_.py
sbilly/ggrc-core
59a6825c6a8e15e42ebdb9e08d079cefd1800120
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2016 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Add object_approval flag to taskgrouptask Revision ID: c8263593153 Revises: 468290d5494f Create Date: 2014-08-01 21:39:48.857784 """ # revision identifiers, used by Alembic. revision = 'c8263593153' d...
26.333333
78
0.716916
51c90fa9b6fb045076c35bd2bb3eb531bbac7083
1,056
py
Python
src/azure-cli/azure/cli/command_modules/apim/operations/api_policy/params.py
kevinhillinger/azure-cli
f4616503d75056c9c99217623a0263a59d64fc4f
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/apim/operations/api_policy/params.py
kevinhillinger/azure-cli
f4616503d75056c9c99217623a0263a59d64fc4f
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/apim/operations/api_policy/params.py
kevinhillinger/azure-cli
f4616503d75056c9c99217623a0263a59d64fc4f
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
81.230769
172
0.58428
51c91f54ecdbc7ccabdf8bf7c015af7d8fbc5711
9,729
py
Python
game.py
SajjadBrohi/snake-game-python
29347018bfb756bb171c7557f87d1c1b95b6df60
[ "MIT" ]
1
2019-11-26T14:17:50.000Z
2019-11-26T14:17:50.000Z
game.py
SajjadBrohi/snake-game-python
29347018bfb756bb171c7557f87d1c1b95b6df60
[ "MIT" ]
null
null
null
game.py
SajjadBrohi/snake-game-python
29347018bfb756bb171c7557f87d1c1b95b6df60
[ "MIT" ]
null
null
null
import tkinter as tk import random if __name__ == '__main__': root = tk.Tk() game = SnakeGame(root) root.resizable(False, False) root.mainloop()
31.282958
113
0.566348
51c93e00dc7d99780448fa645dc97166f5dbb5aa
9,906
py
Python
src/netvlad.py
YuanPJ/acoustic-probing-model
754a8d7e43fbf0ec2b30a526aa3b02f33488fc25
[ "MIT" ]
null
null
null
src/netvlad.py
YuanPJ/acoustic-probing-model
754a8d7e43fbf0ec2b30a526aa3b02f33488fc25
[ "MIT" ]
null
null
null
src/netvlad.py
YuanPJ/acoustic-probing-model
754a8d7e43fbf0ec2b30a526aa3b02f33488fc25
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import with_statement, print_function, absolute_import import torch from torch import nn import torch.nn.functional as F import numpy as np def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_pl...
39
107
0.596709
51c9ef92baa48076ee825944c62e0184d4538d3d
10,451
py
Python
fhir/resources/tests/test_specimendefinition.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/tests/test_specimendefinition.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/tests/test_specimendefinition.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/SpecimenDefinition Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ from pydantic.validators import bytes_validator # noqa: F401 from .. import fhirtypes # noqa: F401 from .. import specimendef...
45.43913
88
0.685102
51ca2ae92cc60c8335070c16555419285e3d18b8
3,003
py
Python
luno_python/base_client.py
jayuuza/luno-python
612f84e487e41df8d05e4786525e41cb544e8182
[ "MIT" ]
null
null
null
luno_python/base_client.py
jayuuza/luno-python
612f84e487e41df8d05e4786525e41cb544e8182
[ "MIT" ]
null
null
null
luno_python/base_client.py
jayuuza/luno-python
612f84e487e41df8d05e4786525e41cb544e8182
[ "MIT" ]
null
null
null
import json import platform import requests import six try: from json.decoder import JSONDecodeError except ImportError: JSONDecodeError = ValueError from . import VERSION from .error import APIError DEFAULT_BASE_URL = 'https://api.mybitx.com' DEFAULT_TIMEOUT = 10 PYTHON_VERSION = platform.python_version() S...
28.065421
77
0.578422
51cada5a64ac3f06ad6a24a653944845410a13d9
821
py
Python
Interview/MergeKLists/main.py
matthewwen/interview-practice
87a342fc4ed6b8154d5a0442bde404e75aaca650
[ "MIT" ]
1
2020-09-02T18:57:32.000Z
2020-09-02T18:57:32.000Z
Interview/MergeKLists/main.py
matthewwen/interview-practice
87a342fc4ed6b8154d5a0442bde404e75aaca650
[ "MIT" ]
null
null
null
Interview/MergeKLists/main.py
matthewwen/interview-practice
87a342fc4ed6b8154d5a0442bde404e75aaca650
[ "MIT" ]
null
null
null
# Definition for singly-linked list. import heapq from typing import List
22.189189
65
0.534714
51cb30d9c8cd727936ca3b80750e5da76f43f9f9
2,678
py
Python
cogs/utils/classes/LohiEmbed.py
Sendouc/lohi-python
7cc41f3fcaafe1776f9416112579fc068aad8d81
[ "MIT" ]
null
null
null
cogs/utils/classes/LohiEmbed.py
Sendouc/lohi-python
7cc41f3fcaafe1776f9416112579fc068aad8d81
[ "MIT" ]
1
2021-02-08T20:48:06.000Z
2021-02-08T20:48:06.000Z
cogs/utils/classes/LohiEmbed.py
Sendouc/lohi-python
7cc41f3fcaafe1776f9416112579fc068aad8d81
[ "MIT" ]
null
null
null
# https://discordapp.com/developers/docs/resources/channel#embed-limits import discord from ..lists import ( weapons_english_internal, abilities_short_to_emoji, top_500_emoji, weapons_to_emoji, ) # Cheers to Lean
32.26506
105
0.54705
51cb8b25a68504ed83b49eae0373b0aa4644b17f
10,265
py
Python
data/reanalysis_data/download-scripts/download_uwind_sigma995.py
Skye777/transformer
177834bcb55e59f8ea0fbe666734c148effbec8d
[ "Apache-2.0" ]
null
null
null
data/reanalysis_data/download-scripts/download_uwind_sigma995.py
Skye777/transformer
177834bcb55e59f8ea0fbe666734c148effbec8d
[ "Apache-2.0" ]
null
null
null
data/reanalysis_data/download-scripts/download_uwind_sigma995.py
Skye777/transformer
177834bcb55e59f8ea0fbe666734c148effbec8d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ################################################################# # Python Script to retrieve 164 online Data files of 'ds131.2', # total 4.49G. This script uses 'requests' to download data. # # Highlight this script by Select All, Copy and Paste it into a file; # make the file executable and run ...
43.495763
88
0.758305
51cbb58d8357f9795453f4cf8aa2840be325e66d
3,255
py
Python
tests/images/test_image_utils.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
3
2019-03-26T03:35:46.000Z
2021-08-16T16:59:12.000Z
tests/images/test_image_utils.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
254
2019-03-29T05:42:54.000Z
2022-02-18T05:03:09.000Z
tests/images/test_image_utils.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
9
2019-03-25T09:55:35.000Z
2021-05-18T02:45:17.000Z
import os import tempfile import numpy as np import pytest from astropy.nddata import Cutout2D from panoptes.utils import images as img_utils from panoptes.utils import error
35.769231
83
0.626421
51cc3a9efdb48e1bb81e1bba0cfbb43adf06bba3
2,010
py
Python
tool/script/read_bus.py
outech-robotic/code
b57acba3faae606f4d0c3cf210bc0716d7fef4e7
[ "MIT" ]
7
2020-04-15T16:42:56.000Z
2021-12-25T10:12:13.000Z
tool/script/read_bus.py
outech-robotic/code
b57acba3faae606f4d0c3cf210bc0716d7fef4e7
[ "MIT" ]
37
2020-04-15T15:49:31.000Z
2022-02-27T03:53:48.000Z
tool/script/read_bus.py
outech-robotic/code
b57acba3faae606f4d0c3cf210bc0716d7fef4e7
[ "MIT" ]
null
null
null
import argparse import asyncio import json import sys import time from google.protobuf import json_format from google.protobuf.message import DecodeError from highlevel.adapter.socket.isotp import ISOTPSocketAdapter, ISOTPAddress from proto.gen.python.outech_pb2 import BusMessage t_last = time.time() if __name__ ...
31.40625
92
0.633831
51cc4cf728d75c828633a0e56f07238bcecfa0ab
672
py
Python
mbzextract/plugins/skeleton/module_name.py
davidschlachter/mbzextract
c6124e6ac08c31818af545323202dc2768497813
[ "MIT" ]
2
2017-06-01T21:04:53.000Z
2020-09-14T15:52:30.000Z
mbzextract/plugins/skeleton/module_name.py
davidschlachter/mbzextract
c6124e6ac08c31818af545323202dc2768497813
[ "MIT" ]
5
2015-11-10T19:23:31.000Z
2015-11-25T23:55:48.000Z
mbzextract/plugins/skeleton/module_name.py
ocdude/moodle2-data-extractor
fc01cbfc740f4ee41f778640c18a3db9bb11bde9
[ "MIT" ]
2
2019-05-18T11:11:18.000Z
2020-09-14T15:54:31.000Z
"""Basic template for creating new plugins. A basic plugin should have at the very minimum a class called 'moodle_module', with an '__init__(self, **kwargs)' method that populates a table in the temporary backup database with the structure of the module it is attempting to extract, a parse method that parses the backu...
28
82
0.736607
51cd97824f79d6b6bd04bf20e0d1dc4907ce5ed1
8,764
py
Python
roles/importer/files/importer/checkpointR8x/get_config.py
NilsPur/firewall-orchestrator
1e2dd61abc99b8dc72903abe9ac9c3172420b39f
[ "Apache-2.0" ]
null
null
null
roles/importer/files/importer/checkpointR8x/get_config.py
NilsPur/firewall-orchestrator
1e2dd61abc99b8dc72903abe9ac9c3172420b39f
[ "Apache-2.0" ]
null
null
null
roles/importer/files/importer/checkpointR8x/get_config.py
NilsPur/firewall-orchestrator
1e2dd61abc99b8dc72903abe9ac9c3172420b39f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import json, argparse import requests, requests.packages import time, logging import sys sys.path.append(r"/usr/local/fworch/importer") import common, getter requests.packages.urllib3.disable_warnings() # suppress ssl warnings only parser = argparse.ArgumentParser(description='Read configuration ...
57.657895
171
0.689411
51ce5342c9b108c49f19014eaf4239e85f1ef56f
322
py
Python
twitter_credentials.py
abrahes12-day/Web-Scraping-Tweepy
86b0f9fdd842e8c7797bf35e744a5f26d2df360b
[ "MIT" ]
null
null
null
twitter_credentials.py
abrahes12-day/Web-Scraping-Tweepy
86b0f9fdd842e8c7797bf35e744a5f26d2df360b
[ "MIT" ]
null
null
null
twitter_credentials.py
abrahes12-day/Web-Scraping-Tweepy
86b0f9fdd842e8c7797bf35e744a5f26d2df360b
[ "MIT" ]
null
null
null
# Variables that contain the user credentials to access Twitter API. ACCESS_TOKEN = "570634225-AnsM63tVCpI4yeFwpj6QfSJTwm3pUx6onf30fI2Z" ACCESS_TOKEN_SECRET = "ykA5CW0lWpl3VDiIRqJ5rhJjsQc6fyt0pps22tLAywXUJ" CONSUMER_KEY = "iRwp1I7vH0cBoWNIO5w0uxURN" CONSUMER_SECRET = "5rA8XDisNbzwTueiCiZG7JXEZe5T4HRiwLbFjWMTWlyNoU35r4...
46
70
0.878882
51cf487128333456107f607135c0c84d71630e4f
10,012
py
Python
lib/losses.py
CompVis/behavior-driven-video-synthesis
ec090009dd56926ecbccfc73b77f979a50e34af1
[ "Apache-2.0" ]
14
2021-03-04T08:31:08.000Z
2022-03-30T02:44:18.000Z
lib/losses.py
CompVis/behavior-driven-video-synthesis
ec090009dd56926ecbccfc73b77f979a50e34af1
[ "Apache-2.0" ]
null
null
null
lib/losses.py
CompVis/behavior-driven-video-synthesis
ec090009dd56926ecbccfc73b77f979a50e34af1
[ "Apache-2.0" ]
3
2021-03-08T15:35:52.000Z
2022-03-06T22:21:04.000Z
import torch from torch import nn from torch.nn import functional as F from lib.utils import bounding_box_batch, get_member from models.pose_discriminator import MIDisc, MIDiscConv1 from lib.utils import toggle_grad from torch.optim import Adam from collections import namedtuple VGGOutput = namedtuple( "VGGOutput...
30.156627
108
0.584698
51d0b67edc10125f1d1a43872b5f40879c483ac4
152
py
Python
syft/frameworks/torch/tensors/__init__.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
1
2021-07-01T18:22:11.000Z
2021-07-01T18:22:11.000Z
syft/frameworks/torch/tensors/__init__.py
mukira/PySyft
94595008e8326d3111406ae143099b311fc3f2e6
[ "Apache-2.0" ]
1
2019-06-05T14:19:07.000Z
2019-06-05T14:19:07.000Z
syft/frameworks/torch/tensors/__init__.py
mukira/PySyft
94595008e8326d3111406ae143099b311fc3f2e6
[ "Apache-2.0" ]
1
2021-02-12T12:11:44.000Z
2021-02-12T12:11:44.000Z
# Do not change the import sequence it can cause deadlock from . import interpreters from . import decorators __all__ = ["decorators", "interpreters"]
25.333333
57
0.769737
51d1f5509211084832acb8e2c8c5f7a69ac3df76
579
py
Python
npc_engine/services/text_generation/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
12
2021-11-10T21:03:19.000Z
2022-03-21T21:55:34.000Z
npc_engine/services/text_generation/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
1
2021-12-05T14:51:44.000Z
2021-12-05T14:51:44.000Z
npc_engine/services/text_generation/__init__.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Text generation API services. This module implements specific models and wraps them under the common interface for loading and inference. Example: ``` from npc_engine.services.text_generation import TextGenerationAPI model = TextGenerationAPI.load("path/to/model...
34.058824
74
0.715026
51d2854307f8ceec0db67f9e86abcc56e1aa5109
5,261
py
Python
polyadicqml/circuitML.py
JoaquinKeller/polyadicQML
9534ca59285baf9b4060ed546827f2977a8d8657
[ "Apache-2.0" ]
19
2020-07-24T01:28:44.000Z
2022-03-29T07:52:19.000Z
polyadicqml/circuitML.py
JoaquinKeller/polyadicQML
9534ca59285baf9b4060ed546827f2977a8d8657
[ "Apache-2.0" ]
null
null
null
polyadicqml/circuitML.py
JoaquinKeller/polyadicQML
9534ca59285baf9b4060ed546827f2977a8d8657
[ "Apache-2.0" ]
8
2020-07-26T17:27:06.000Z
2021-11-03T16:17:54.000Z
"""Implementation of circuit for ML """ from numpy import pi, random, zeros_like, zeros, log2
30.766082
78
0.569093
51d3ccfff433de9945110283800db28bc3d3b39d
3,475
py
Python
mb_24x256_512.py
MarksBench/mb_24x256_512
0a41f8ad4e707733a292fd06b76212aa4f371b0b
[ "MIT" ]
null
null
null
mb_24x256_512.py
MarksBench/mb_24x256_512
0a41f8ad4e707733a292fd06b76212aa4f371b0b
[ "MIT" ]
null
null
null
mb_24x256_512.py
MarksBench/mb_24x256_512
0a41f8ad4e707733a292fd06b76212aa4f371b0b
[ "MIT" ]
null
null
null
''' mb_24x256_512.py Very Simple MicroPython module/driver for Microchip 24x256 and 24x512 I2C EEPROM Author: mark@marksbench.com Version: 0.1, 2021-06-04 **NOTE(1): There is no guarantee that this software will work in the way you expect (or at all). **Use at your own risk. **NOTE(2): This driver is i...
37.365591
102
0.686043
51d45cf09054c416e96c4863ddfd2d5f622336cb
114
py
Python
titan/components/customizes/test.py
DeSireFire/titans
9194950694084a7cbc6434dfec0ecb2e755f0cdf
[ "Apache-2.0" ]
17
2020-03-14T01:08:07.000Z
2020-12-26T08:20:14.000Z
titan/components/customizes/test.py
DeSireFire/titans
9194950694084a7cbc6434dfec0ecb2e755f0cdf
[ "Apache-2.0" ]
4
2020-12-05T08:50:55.000Z
2022-02-27T06:48:21.000Z
titan/components/customizes/test.py
DeSireFire/titans
9194950694084a7cbc6434dfec0ecb2e755f0cdf
[ "Apache-2.0" ]
1
2020-05-24T06:57:03.000Z
2020-05-24T06:57:03.000Z
from titan.components import Base
12.666667
33
0.640351
51d6936665b7826005993a52b90d85027da66187
2,210
py
Python
src/permedcoe/utils/artifact.py
PerMedCoE/permedcoe
528415135d16963212cd81b0ea64fa655364e64a
[ "Apache-2.0" ]
null
null
null
src/permedcoe/utils/artifact.py
PerMedCoE/permedcoe
528415135d16963212cd81b0ea64fa655364e64a
[ "Apache-2.0" ]
null
null
null
src/permedcoe/utils/artifact.py
PerMedCoE/permedcoe
528415135d16963212cd81b0ea64fa655364e64a
[ "Apache-2.0" ]
null
null
null
import os from permedcoe.core.constants import SEPARATOR DO_NOT_PARSE = (".pyc", ".def", ".sif") PARSING_KEY = "NEW_NAME" PARSING_PATH = "/PATH/TO/" def adapt_name(name, path): """ Replace recursively into the given path they keyword with name. Like a set recursively. Args: name (str): Name to p...
29.466667
71
0.566516
51d9f1f0c69b57e888a273ecd8e29515ad3ed39e
591
py
Python
api/utils/custom_jwt.py
CaspianSoft-TR/Sober
769e3fc1e363755398c034772159b1a5056f87e1
[ "MIT" ]
null
null
null
api/utils/custom_jwt.py
CaspianSoft-TR/Sober
769e3fc1e363755398c034772159b1a5056f87e1
[ "MIT" ]
23
2019-01-19T08:54:48.000Z
2022-03-11T23:39:37.000Z
api/utils/custom_jwt.py
CaspianSoft-TR/Sober
769e3fc1e363755398c034772159b1a5056f87e1
[ "MIT" ]
null
null
null
import datetime from rest_framework_jwt.settings import api_settings from api.serializers import UserSerializer def jwt_response_payload_handler(token, user=None, request=None): """ Custom response payload handler. This function controlls the custom payload after login or token refresh. This data is returne...
32.833333
119
0.724196
51da7a61150d073fe0cb3803487a37203fc40695
7,000
py
Python
embench-iot/pylib/embench_core.py
Hecmay/llvm-pass-skeleton
e51ab78b3d786deaf8126ed1ce9fd908a4942fe7
[ "MIT" ]
2
2021-03-03T01:24:53.000Z
2021-05-16T07:19:52.000Z
embench-iot/pylib/embench_core.py
Hecmay/llvm-pass-skeleton
e51ab78b3d786deaf8126ed1ce9fd908a4942fe7
[ "MIT" ]
null
null
null
embench-iot/pylib/embench_core.py
Hecmay/llvm-pass-skeleton
e51ab78b3d786deaf8126ed1ce9fd908a4942fe7
[ "MIT" ]
1
2020-11-29T19:00:57.000Z
2020-11-29T19:00:57.000Z
#!/usr/bin/env python3 # Common python procedures for use across Embench. # Copyright (C) 2017, 2019 Embecosm Limited # # Contributor: Graham Markall <graham.markall@embecosm.com> # Contributor: Jeremy Bennett <jeremy.bennett@embecosm.com> # # This file is part of Embench. # SPDX-License-Identifier: GPL-3.0-or-later...
27.888446
79
0.619571
51db92397c666f126228f928e7b23372c0bf20a6
8,579
py
Python
pedsnetdcc/dict_logging.py
PEDSnet/pedsnetdcc
76a32a09416956c9a0831ec05c14d490309d7b41
[ "BSD-2-Clause" ]
null
null
null
pedsnetdcc/dict_logging.py
PEDSnet/pedsnetdcc
76a32a09416956c9a0831ec05c14d490309d7b41
[ "BSD-2-Clause" ]
112
2016-06-14T21:03:38.000Z
2021-02-16T16:08:12.000Z
pedsnetdcc/dict_logging.py
PEDSnet/pedsnetdcc
76a32a09416956c9a0831ec05c14d490309d7b41
[ "BSD-2-Clause" ]
null
null
null
import collections import datetime import json import logging import time # Python 2 compatibility try: from logging.handlers import QueueHandler except ImportError: from logutils.queue import QueueHandler # Python 2/3 hack for stringify, below try: unicode except NameError: unicode = str nocolor =...
32.744275
86
0.625131
51dc06eb5af5c497767e63a462ca1b459355f11b
2,901
py
Python
calculations.py
jordanrmerrick/Hackathon2020
1ff31c80d2bf07dc49bb1a8db28452bea1bb3c02
[ "MIT" ]
null
null
null
calculations.py
jordanrmerrick/Hackathon2020
1ff31c80d2bf07dc49bb1a8db28452bea1bb3c02
[ "MIT" ]
null
null
null
calculations.py
jordanrmerrick/Hackathon2020
1ff31c80d2bf07dc49bb1a8db28452bea1bb3c02
[ "MIT" ]
null
null
null
from math import radians, cos, sqrt from dbi import select_from_zip, select_from_id, create_connection from api import * import usaddress
30.861702
122
0.516029
51dc710f797c5dd8ee717e037b8c2c3dc22aed7d
422
py
Python
app/migrations/0004_auto_20210528_2005.py
ThebiggunSeeoil/VIS-MASTER
a54a5f321cfe8b258bacc25458490c5b154edf19
[ "MIT" ]
null
null
null
app/migrations/0004_auto_20210528_2005.py
ThebiggunSeeoil/VIS-MASTER
a54a5f321cfe8b258bacc25458490c5b154edf19
[ "MIT" ]
null
null
null
app/migrations/0004_auto_20210528_2005.py
ThebiggunSeeoil/VIS-MASTER
a54a5f321cfe8b258bacc25458490c5b154edf19
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2021-05-28 20:05 from django.db import migrations, models
22.210526
69
0.580569
51dd2fa9fd634ac3939bd2f9350fc3e886e65b16
6,830
py
Python
GWTPhotoAlbum/scripts/genDeploymentPackage.py
jecki/gwtphotoalbum
fa7f8720011f007ce956e4d8a18977c56f9f954b
[ "Apache-2.0" ]
2
2015-05-21T09:14:28.000Z
2015-07-09T19:36:56.000Z
GWTPhotoAlbum/scripts/genDeploymentPackage.py
jecki/gwtphotoalbum
fa7f8720011f007ce956e4d8a18977c56f9f954b
[ "Apache-2.0" ]
null
null
null
GWTPhotoAlbum/scripts/genDeploymentPackage.py
jecki/gwtphotoalbum
fa7f8720011f007ce956e4d8a18977c56f9f954b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2008 Eckhart Arnold (eckhart_arnold@hotmail.com). # # 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...
38.806818
97
0.578038
51dd50662073f16aa833b99f25345855b11a9708
21,623
py
Python
fuzzy_toolbox/sugeno/sugeno_.py
jdvelasq/pyfuzzy
4b8c5948f5d05202ec914a60e2bd420133a57e90
[ "MIT" ]
null
null
null
fuzzy_toolbox/sugeno/sugeno_.py
jdvelasq/pyfuzzy
4b8c5948f5d05202ec914a60e2bd420133a57e90
[ "MIT" ]
null
null
null
fuzzy_toolbox/sugeno/sugeno_.py
jdvelasq/pyfuzzy
4b8c5948f5d05202ec914a60e2bd420133a57e90
[ "MIT" ]
null
null
null
""" Sugeno fuzzy model ============================================================================== """ import matplotlib.pyplot as plt import numpy as np import progressbar from sklearn.linear_model import LinearRegression # rng = np.random.default_rng(12345) # x1 = np.linspace(start=0, stop=10, num=100) # x2 =...
33.680685
105
0.434815
51dd8afe5967102df99425c0fa965295c60ca0cb
460
py
Python
pyrhessys/read_shellscript.py
DavidChoi76/pyRHESSys
7dd75041bdafa8dd99851960bec4e27c834f9cc8
[ "MIT" ]
null
null
null
pyrhessys/read_shellscript.py
DavidChoi76/pyRHESSys
7dd75041bdafa8dd99851960bec4e27c834f9cc8
[ "MIT" ]
6
2020-05-28T17:46:11.000Z
2020-12-02T06:43:49.000Z
pyrhessys/read_shellscript.py
DavidChoi76/pyRHESSys
7dd75041bdafa8dd99851960bec4e27c834f9cc8
[ "MIT" ]
1
2022-01-15T12:45:12.000Z
2022-01-15T12:45:12.000Z
import os import shutil import pkg_resources delineation_d8 = pkg_resources.resource_filename( __name__, 'sh_code/grass_delineation_d8.sh') delineation_dinf = pkg_resources.resource_filename( __name__, 'sh_code/grass_delineation_dinf.sh') spatial_hierarchy = pkg_resources.resource_filename( __n...
35.384615
55
0.793478
51dd949119d6e5b74a3145a2565d1d04832aa931
11,670
py
Python
mindinsight/datavisual/data_transform/graph/optimized_graph.py
mindspore-ai/mindinsight
8c57fdd62eb7f8653662be2208633386ac82e8d7
[ "Apache-2.0" ]
216
2020-03-28T02:11:56.000Z
2022-03-31T06:20:09.000Z
mindinsight/datavisual/data_transform/graph/optimized_graph.py
mindspore-ai/mindinsight
8c57fdd62eb7f8653662be2208633386ac82e8d7
[ "Apache-2.0" ]
13
2020-03-31T03:00:12.000Z
2021-01-03T13:01:06.000Z
mindinsight/datavisual/data_transform/graph/optimized_graph.py
mindspore-ai/mindinsight
8c57fdd62eb7f8653662be2208633386ac82e8d7
[ "Apache-2.0" ]
21
2020-03-28T02:41:06.000Z
2021-11-24T12:20:25.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
45.944882
110
0.61491