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
6c1bc99ed022294f204e51cb23b911f2274cbb0b
525
py
Python
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_replicant
cadd8dcb3fb1382adf39479cdd9bc7463f269fa0
[ "BSD-3-Clause" ]
12
2020-03-27T13:15:54.000Z
2022-03-25T14:22:26.000Z
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_f1
08b7be7162719b92b4796f18b0caad263f90ea2f
[ "BSD-3-Clause" ]
255
2019-05-10T01:08:51.000Z
2020-01-29T18:45:32.000Z
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_replicant
cadd8dcb3fb1382adf39479cdd9bc7463f269fa0
[ "BSD-3-Clause" ]
8
2020-02-21T18:28:34.000Z
2021-07-24T00:22:29.000Z
from vcache_utils import VCacheStats from bfs_common import BFSParameters import sys import pandas as pd data = pd.DataFrame() for filename in sys.argv[1:]: data = data.append(BFSVCacheStats(filename).diffed_data) data.to_csv("vcache.summary.csv")
29.166667
60
0.76381
6c1bdfa67d70b8200b8f300c42147c7b6f88c84a
14,511
py
Python
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
1
2019-12-09T17:41:09.000Z
2019-12-09T17:41:09.000Z
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
2
2019-09-26T13:49:56.000Z
2020-08-06T15:10:17.000Z
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
null
null
null
import json import logging import re from pathlib import Path from typing import Optional, Union import pandas as pd from . import DOCSURL, DS_URL_PREFIX, readers # configure logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) ch = logging.StreamHandler() ch.setLevel(logging.INFO) logger.addHa...
32.175166
145
0.591551
6c1c01b8e3b61397e1a5842a61751e502b73a43e
487
py
Python
final.py
Georgejj123/Final
a5beeb873321446e53a1c0859c0b10bf240a0dcd
[ "MIT" ]
null
null
null
final.py
Georgejj123/Final
a5beeb873321446e53a1c0859c0b10bf240a0dcd
[ "MIT" ]
null
null
null
final.py
Georgejj123/Final
a5beeb873321446e53a1c0859c0b10bf240a0dcd
[ "MIT" ]
null
null
null
# This program rolls two dices and prints what you got # We set two variables (min and max) , lowest and highest number of the dice. import random min = 1 max = 6 roll_again = "yes" # We then use a while loop, so that the user can roll the dice again. while roll_again == "yes" or roll_again == "y": print "Roll...
27.055556
78
0.689938
6c1cbdba3744243c1b45fcbc2d0b6115c7a3d106
1,584
py
Python
Script's/04 - Generadores/Generadores Basicos.py
CamiloBallen24/Python-PildorasInformaticas
a734ac064e34b01a2f64080d5391625a5de77f54
[ "Apache-2.0" ]
null
null
null
Script's/04 - Generadores/Generadores Basicos.py
CamiloBallen24/Python-PildorasInformaticas
a734ac064e34b01a2f64080d5391625a5de77f54
[ "Apache-2.0" ]
null
null
null
Script's/04 - Generadores/Generadores Basicos.py
CamiloBallen24/Python-PildorasInformaticas
a734ac064e34b01a2f64080d5391625a5de77f54
[ "Apache-2.0" ]
1
2019-06-04T19:51:05.000Z
2019-06-04T19:51:05.000Z
#TEMA:GENERADORES ###################################################################### #Funcion que me regresa un numero determinado de numeros pares ###################################################################### ###################################################################### print("Ejemplo #1") ...
21.12
71
0.395202
6c1cda3f913ecea499264b75e17f95a35ff6a498
443
py
Python
lantz/qt/widgets/__init__.py
mtsolmn/lantz-qt
72cb16bd3aafe33caa1a822ac2ba98b3425d4420
[ "BSD-3-Clause" ]
1
2020-05-13T08:29:16.000Z
2020-05-13T08:29:16.000Z
lantz/qt/widgets/__init__.py
mtsolmn/lantz-qt
72cb16bd3aafe33caa1a822ac2ba98b3425d4420
[ "BSD-3-Clause" ]
null
null
null
lantz/qt/widgets/__init__.py
mtsolmn/lantz-qt
72cb16bd3aafe33caa1a822ac2ba98b3425d4420
[ "BSD-3-Clause" ]
3
2019-09-24T16:49:10.000Z
2020-09-23T17:53:20.000Z
# -*- coding: utf-8 -*- """ lantz.qt.widgets ~~~~~~~~~~~~~~~~ PyQt widgets wrapped to work with lantz. :copyright: 2018 by Lantz Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from . import feat, nonnumeric, numeric from .common import WidgetMixin, Childr...
27.6875
68
0.711061
6c1dc30f32a47cfe9ea5fa235e76eff1529c75dd
4,368
py
Python
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
34
2017-10-24T15:04:02.000Z
2021-09-05T17:46:43.000Z
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
8
2017-12-18T21:53:08.000Z
2021-06-01T21:24:31.000Z
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
11
2017-12-18T22:02:29.000Z
2020-11-10T17:58:22.000Z
# -*- coding: utf-8 -*- import struct import iota from iotapy.storage import converter as conv TRANSACTION_METADATA_TRITS_LENGTH = 1604 HASH_BYTES_LENGTH = 49 HASH_TRITS_LENGTH = 243
35.225806
123
0.66163
6c1f737d01ed462f9d3028ca12a6e4e32ea970ac
22,271
py
Python
OC/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
2
2021-04-12T02:41:00.000Z
2021-05-15T02:18:15.000Z
OC/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
OC/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import tensorflow as tf import tensorflow.contrib.slim as slim seed = 0
55.6775
140
0.504917
6c1f784f7fc92dd4f1d6302efb41edae068a6f5e
5,980
py
Python
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
from tkinter import* import website import tkinter.font as font from PIL import ImageTk,Image import os import sqlite3 import webbrowser if __name__=='__main__': main()
30.824742
133
0.533779
6c1ff08cd085c626e8f3f1328f189116ff83820d
4,650
py
Python
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
1
2021-09-28T00:09:18.000Z
2021-09-28T00:09:18.000Z
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
null
null
null
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
null
null
null
import requests from typing import List from fastapi import FastAPI, Path from pydantic import BaseModel, HttpUrl from fastapi.middleware.cors import CORSMiddleware cors_origins = [ 'https://www.govdirectory.org', 'https://www.wikidata.org', ] user_agent_external = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; r...
29.807692
170
0.543871
6c2088e0cf4acb484abbd57109fedff77aded588
569
py
Python
lie2me/fields/password.py
hugollm/lie2me
c3b47e88264a32c10c893368987c4d8a3df054d9
[ "MIT" ]
null
null
null
lie2me/fields/password.py
hugollm/lie2me
c3b47e88264a32c10c893368987c4d8a3df054d9
[ "MIT" ]
null
null
null
lie2me/fields/password.py
hugollm/lie2me
c3b47e88264a32c10c893368987c4d8a3df054d9
[ "MIT" ]
null
null
null
from ..field import Field
23.708333
58
0.567663
6c21574006d86d8b50934be4fe7a2c2e0d87d074
5,933
py
Python
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
9
2017-10-21T13:29:46.000Z
2022-01-10T23:49:54.000Z
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
3
2018-01-09T11:28:55.000Z
2019-01-20T08:45:18.000Z
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
1
2020-12-29T05:10:31.000Z
2020-12-29T05:10:31.000Z
""" This script adds a specific column to the `bug_type_entropy_projectname_old` tables. The added column contains the nesting depth (>=0) of each line. """ import os, sys, psycopg2, ntpath, traceback, subprocess from pprint import pprint #-------------------------------------------------------------------------------...
40.917241
148
0.539019
6c21d95c779b91777f1c1e4c2f9a294fa6bd8d6e
10,862
py
Python
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import cv2 import scipy.spatial from sklearn.linear_model import RANSACRegressor import os import sys import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parent...
39.498182
147
0.612042
6c221044ede7be29a963c10b013a344a5da5c962
2,221
py
Python
menu.py
RandelSouza/Space_Invaders
d266662a84b2324fd398fbb31b3f0a2004b40c99
[ "MIT" ]
null
null
null
menu.py
RandelSouza/Space_Invaders
d266662a84b2324fd398fbb31b3f0a2004b40c99
[ "MIT" ]
null
null
null
menu.py
RandelSouza/Space_Invaders
d266662a84b2324fd398fbb31b3f0a2004b40c99
[ "MIT" ]
null
null
null
from setup import * import pygame, sys, os from pygame.locals import *
34.169231
112
0.547951
6c22c119dc085d095980f04411cdc49210dadf86
459
py
Python
investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
1
2019-12-23T21:23:45.000Z
2019-12-23T21:23:45.000Z
investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
null
null
null
investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
1
2019-12-23T21:23:50.000Z
2019-12-23T21:23:50.000Z
import json from investing_algorithm_framework.app.stateless.action_handlers \ .action_handler_strategy import ActionHandlerStrategy
30.6
66
0.690632
6c239288cab4c6c0e0a6b09c9cc9d94248d11f8f
20,757
py
Python
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
1
2020-11-08T07:38:58.000Z
2020-11-08T07:38:58.000Z
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
null
null
null
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------ALL REQUIRD FILES------------------------------------------------------------- from tkinter import * import tkinter.ttk as ttk import tkinter.messagebox as msg import tkinter.filedialog as tf from ttkthemes import ThemedStyle from PIL import Image, Image...
36.803191
158
0.620321
6c24371f8f3543e387962e5276370824b85090e5
108
py
Python
model/__init__.py
SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring
a103d4d4811c7b359f07e34aeb69fa7637adae35
[ "MIT" ]
null
null
null
model/__init__.py
SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring
a103d4d4811c7b359f07e34aeb69fa7637adae35
[ "MIT" ]
1
2017-08-29T13:08:18.000Z
2017-08-29T13:08:18.000Z
model/__init__.py
SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring
a103d4d4811c7b359f07e34aeb69fa7637adae35
[ "MIT" ]
null
null
null
#!/usr/local/miniconda2/bin/python # _*_ coding: utf-8 _*_ """ @author: MarkLiu @time : 17-6-19 8:44 """
15.428571
34
0.62963
6c26670f1bac191aee07007494c6fa726372a36b
11,451
py
Python
Game/game_functions.py
Gabriel-limadev/Alien-Invasion
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
3
2021-09-11T16:35:20.000Z
2021-09-25T02:42:04.000Z
Game/game_functions.py
Gabriel-limadev/Invasao-Alienigena
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
null
null
null
Game/game_functions.py
Gabriel-limadev/Invasao-Alienigena
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
1
2022-02-28T01:06:15.000Z
2022-02-28T01:06:15.000Z
import sys #Fornece funes e variveis para manipular partes do ambiente de tempo de execuo do Python from time import sleep import pygame from settings import Settings from game_stats import GameStats from bullet import Bullet from alien import Alien def check_keydown_events(event, ai_settings, screen, stats, sb, shi...
36.352381
117
0.687189
6c27c7aa14b6a3a742020fc655ba28804b70f883
98
py
Python
rover-stub/accelsensor.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
3
2018-02-13T21:39:55.000Z
2018-04-26T18:17:39.000Z
rover-stub/accelsensor.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
null
null
null
rover-stub/accelsensor.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
null
null
null
# # Copyright 2016-2017 Games Creators Club # # MIT License # from sonarsensor_service import *
10.888889
41
0.744898
6c2a16cd533af1320b7486ce971ab489987fbb0b
806
py
Python
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
import numpy as np from CelestialMechanics.kepler.constants import K def mu_sun(m2_over_m1: float) -> float: """ mu = k * sqrt(1 + m2/m1) :param m2_over_m1: :type m2_over_m1: :return: mu :rtype: float """ mu = K * np.sqrt(1. + m2_over_m1) return mu * mu def mu_na(n: float, a: ...
16.791667
49
0.545906
6c2ea613a50a1e1e9624048d804bb8ed4e0017dd
3,276
py
Python
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
1
2019-05-07T13:03:10.000Z
2019-05-07T13:03:10.000Z
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
null
null
null
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import hl_utils from hl_constants import * import string import re from datetime import datetime if __name__ == "__main__": print(logins(),ip(),vpn(),guthaben(),battery(),date(),sep='',end='')
31.2
100
0.501832
6c2eba18adaa6d56cede8b191f75d6ce31f0cf4f
1,368
py
Python
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
import datetime from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from vigil_ctf_app.EmailBackEnd import EmailBackEnd #Authentication views ONLY...
29.106383
120
0.710526
6c2f5071a275540f672417776634a7f3cf12f94d
19,223
py
Python
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
3
2021-04-21T16:06:51.000Z
2022-03-31T12:09:01.000Z
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
1
2021-02-04T07:48:16.000Z
2021-02-24T23:01:41.000Z
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
null
null
null
import os import pickle from functools import partial from itertools import permutations, combinations import networkx as nx import numpy as np from bitstring import BitArray from collections import Counter try: from graph_measures.features_infra.feature_calculators import NodeFeatureCalculator, Featur...
41.78913
121
0.572179
6c313c1861eaf709490f1bb0d7760b28295d8922
2,885
py
Python
src/PostProcessing.py
PedroCardouzo/XML_Analyzer
aa4d9069f65aed927d7ecdc59ad36f823abc4c0c
[ "MIT" ]
null
null
null
src/PostProcessing.py
PedroCardouzo/XML_Analyzer
aa4d9069f65aed927d7ecdc59ad36f823abc4c0c
[ "MIT" ]
null
null
null
src/PostProcessing.py
PedroCardouzo/XML_Analyzer
aa4d9069f65aed927d7ecdc59ad36f823abc4c0c
[ "MIT" ]
null
null
null
from src import XMLAnalyzerException import lxml.etree as ET from src.Structures import * from src import XMLFilter from src import XMLUtil import constants import re from src.xml_decoder import html_entitize # split at every space, except if it is inside "$param('<here>') statement # todo: move to tests file # st...
32.784091
121
0.609359
6c31ccf0bc17c144c7bcad4490fb8229ffccbad2
4,954
py
Python
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
"""RF Pulse Simulation Functions. """ from sigpy import backend __all__ = ['abrm', 'abrm_nd', 'abrm_hp'] def abrm(rf, x, balanced=False): r"""1D RF pulse simulation, with simultaneous RF + gradient rotations. Args: rf (array): rf waveform input. x (array): spatial locations. bala...
30.207317
79
0.489705
6c31d41587961f18210049838ec530657f3a5618
821
py
Python
lint.py
fmacpro/apache-virtualhost-configuration-examples
4c341ccb96c2e17cb9063bf1cae342ad4ee72e26
[ "MIT" ]
null
null
null
lint.py
fmacpro/apache-virtualhost-configuration-examples
4c341ccb96c2e17cb9063bf1cae342ad4ee72e26
[ "MIT" ]
null
null
null
lint.py
fmacpro/apache-virtualhost-configuration-examples
4c341ccb96c2e17cb9063bf1cae342ad4ee72e26
[ "MIT" ]
null
null
null
#!/usr/bin/env python # apachelint - simple tool to cleanup apache conf files # USAGE: apachelint [conffile] # -*-Python-*- import sys import re filename = sys.argv[1] indentlevel = 0 indentstep = 4 prevlineblank = False with open(filename) as f: for line in f: # strip leading & trailing space / line en...
22.805556
55
0.528624
6c3476c6da1a1f1dd98c6128ba3f0c07c7db39ea
931
py
Python
spefit/common/basic.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
spefit/common/basic.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
spefit/common/basic.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
"""Vectorized math formulae""" from numba import vectorize, int64, float64 from math import lgamma, exp, isnan, log __all__ = ["binom", "xlogy"]
29.09375
81
0.657358
6c35a72377a5c784fe27610ba9ce572e4beeb277
1,171
py
Python
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
# @Copyright [2021] [Yash Bajaj] import fileinput as fi # This module replaces the word <|SPACE|> with a new line (code line 18) # This is a input function whatever you will write that will come in input.txt # This is a function to copy data from input.txt and paste it in copyied.txt # This function replaces <|SPACE|>...
37.774194
123
0.681469
6c36540f75ff0aa4e3d1fa481631b799e5a9132c
1,041
py
Python
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site
f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063
[ "MIT" ]
null
null
null
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site
f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063
[ "MIT" ]
null
null
null
portfolio_pj/portfolio_app/views.py
duynb92/portfolio_site
f6898e8d1c3a67aa8dc6eafc7e4804e81dc46063
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from models import * # Create your views here.
33.580645
80
0.727185
6c3666e9b94187f8c2b912f96ab0492447c6ab94
16,981
py
Python
torchfurnace/engine.py
tianyu-su/torchfurnace
2f4a9a0655a8d3c3e231c86611085f834e03c2f8
[ "MIT" ]
8
2020-03-20T13:49:30.000Z
2021-12-04T07:41:27.000Z
torchfurnace/engine.py
tianyu-su/torchfurnace
2f4a9a0655a8d3c3e231c86611085f834e03c2f8
[ "MIT" ]
null
null
null
torchfurnace/engine.py
tianyu-su/torchfurnace
2f4a9a0655a8d3c3e231c86611085f834e03c2f8
[ "MIT" ]
1
2020-04-01T11:01:09.000Z
2020-04-01T11:01:09.000Z
# -*- coding: utf-8 -*- # Date: 2020/3/17 12:16 """ an engine for deep learning task """ __author__ = 'tianyu' import abc import random import time import warnings import numpy as np import torch.backends.cudnn import torch.nn.functional as F import torch.utils.data from torch.optim.lr_scheduler import StepLR from ....
39.955294
149
0.572876
6c36c7337778993804185f55e34f582ccb3e038c
3,736
py
Python
tests/test_ninjadog.py
knowsuchagency/ninjadog
54f0c98da1006d97b6e39d39d0e4e056288f52d0
[ "MIT" ]
26
2017-06-23T02:18:54.000Z
2022-02-19T08:45:11.000Z
tests/test_ninjadog.py
knowsuchagency/ninjadog
54f0c98da1006d97b6e39d39d0e4e056288f52d0
[ "MIT" ]
21
2017-06-22T07:30:20.000Z
2022-03-26T02:23:24.000Z
tests/test_ninjadog.py
knowsuchagency/ninjadog
54f0c98da1006d97b6e39d39d0e4e056288f52d0
[ "MIT" ]
2
2018-06-20T01:16:27.000Z
2020-07-14T19:55:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `ninjadog` package.""" # TODO: test raises ValueError when pug cli can't be found and not passed explicitly to renderer
27.470588
112
0.635974
6c37074352737689850fbeed83a2fff6562b2609
1,610
py
Python
core/views.py
Hassan-gholipoor/Todo_App_API
19f9c141868fa0b01a11ed2a20f665d97b877340
[ "MIT" ]
null
null
null
core/views.py
Hassan-gholipoor/Todo_App_API
19f9c141868fa0b01a11ed2a20f665d97b877340
[ "MIT" ]
null
null
null
core/views.py
Hassan-gholipoor/Todo_App_API
19f9c141868fa0b01a11ed2a20f665d97b877340
[ "MIT" ]
null
null
null
from rest_framework import viewsets, permissions from rest_framework_simplejwt.authentication import JWTAuthentication from rest_framework.response import Response from rest_framework import status from core.serializers import TodoSerializer, TodoDetailSerializer from core.models import Todo
36.590909
81
0.709317
6c3ba5d9b3babe444d2c4d3c2e6c46f0cd91ef11
27
py
Python
ep_ws/devel/lib/python3/dist-packages/realsense2_camera/srv/__init__.py
fsrlab/FSR_ROS_SIM
f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62
[ "MIT" ]
null
null
null
ep_ws/devel/lib/python3/dist-packages/realsense2_camera/srv/__init__.py
fsrlab/FSR_ROS_SIM
f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62
[ "MIT" ]
null
null
null
ep_ws/devel/lib/python3/dist-packages/realsense2_camera/srv/__init__.py
fsrlab/FSR_ROS_SIM
f22dfbd19ca1f2f1c7456fc51fb382509f9d7c62
[ "MIT" ]
null
null
null
from ._DeviceInfo import *
13.5
26
0.777778
6c3c2ae1bdf2d29f699c3d8948c8a02e1af7dcc8
788
py
Python
users/forms.py
yeezy-na-izi/YlDjango
6fd0763183d76e4f7ca4a9686170d0665d7c04e9
[ "MIT" ]
6
2022-03-06T10:43:06.000Z
2022-03-24T13:00:12.000Z
users/forms.py
yeezy-na-izi/YlDjango
6fd0763183d76e4f7ca4a9686170d0665d7c04e9
[ "MIT" ]
6
2022-03-09T13:22:41.000Z
2022-03-25T09:21:37.000Z
users/forms.py
yeezy-na-izi/YlDjango
6fd0763183d76e4f7ca4a9686170d0665d7c04e9
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import UserCreationForm from users.models import User, Profile from django import forms
24.625
63
0.623096
6c3c5ab25d2cf06474ae606ac7def120213405ed
2,513
py
Python
kbqa/create_question_data.py
terrifyzhao/neo4j_graph
71f8ad1530805d0cca7ae2131f81a96a6b519d02
[ "Apache-2.0" ]
3
2020-06-01T01:45:44.000Z
2021-05-10T06:05:18.000Z
kbqa/create_question_data.py
terrifyzhao/neo4j_graph
71f8ad1530805d0cca7ae2131f81a96a6b519d02
[ "Apache-2.0" ]
null
null
null
kbqa/create_question_data.py
terrifyzhao/neo4j_graph
71f8ad1530805d0cca7ae2131f81a96a6b519d02
[ "Apache-2.0" ]
2
2021-04-05T03:09:09.000Z
2021-09-19T11:29:38.000Z
from py2neo import Graph import numpy as np import pandas as pd graph = Graph("http://192.168.50.179:7474", auth=("neo4j", "qwer")) q1 = create_entity_question() q2 = create_attribute_question() q3 = create_relation_question() df = pd.DataFrame() df['question'] = q1 + q2 + q3 df['label'] = [0] * ...
29.22093
96
0.54994
6c3ca74700c452639c1abd59ef05386a970cf094
1,095
py
Python
src/detect_utils.py
iglaweb/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
7
2021-07-02T03:57:20.000Z
2022-03-20T13:23:32.000Z
src/detect_utils.py
filipul1s/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
null
null
null
src/detect_utils.py
filipul1s/HippoYD
da2c40be8017c43a7b7b6c029e2df30cf7d54932
[ "Apache-2.0" ]
3
2021-07-02T16:07:28.000Z
2022-03-20T13:23:33.000Z
import cv2 from scipy.spatial import distance as dist
36.5
117
0.675799
6c3cce245cb8dd51640bae04fe6b64d1a7249903
3,626
py
Python
rna_format.py
thedinak/Genetics-to-Therapuetics
f38cc76ceb8b9217b3f4b19f985a255c1c1dd98d
[ "MIT" ]
null
null
null
rna_format.py
thedinak/Genetics-to-Therapuetics
f38cc76ceb8b9217b3f4b19f985a255c1c1dd98d
[ "MIT" ]
null
null
null
rna_format.py
thedinak/Genetics-to-Therapuetics
f38cc76ceb8b9217b3f4b19f985a255c1c1dd98d
[ "MIT" ]
null
null
null
import pandas as pd import os import tarfile import glob import json def unzip_rna_seq_data(file_name, desired_folder_name): ''' Downloaded RNA files are tarfiles, this unzips them''' if 'tar' in file_name: open_tar = tarfile.open(file_name) open_tar.extractall(f'{desired_folder_name}') ...
39.413043
79
0.619967
6c3cdcc2642ae1e7ae2f269889189d138f16d4af
7,268
py
Python
fasturl/fasturl.py
evite/django-fasturls
52e397c5f4b4b2b7d6c5cd2bf9cc8cac1b4efa9b
[ "MIT" ]
null
null
null
fasturl/fasturl.py
evite/django-fasturls
52e397c5f4b4b2b7d6c5cd2bf9cc8cac1b4efa9b
[ "MIT" ]
null
null
null
fasturl/fasturl.py
evite/django-fasturls
52e397c5f4b4b2b7d6c5cd2bf9cc8cac1b4efa9b
[ "MIT" ]
null
null
null
import re from collections import OrderedDict from django.conf.urls import url as django_url, include from django.core.urlresolvers import RegexURLResolver, RegexURLPattern from django.utils.encoding import force_text import logging # Using FastUrl has a couple of caveats: # 1. FastUrl tries to keep the resolution ord...
35.627451
128
0.589158
6c3d59a46c15d1afca1d52fd4d95d34b6fd700b1
6,679
py
Python
experiments/2_training.py
helenacuesta/multif0-estimation-polyvocals
4960f5415f8a170f2ff8d5b776bfd4cb5576d3ba
[ "MIT" ]
36
2020-09-13T12:30:41.000Z
2022-02-15T08:52:58.000Z
experiments/2_training.py
helenacuesta/multif0-estimation-polyvocals
4960f5415f8a170f2ff8d5b776bfd4cb5576d3ba
[ "MIT" ]
6
2020-09-04T11:14:14.000Z
2022-02-09T23:49:59.000Z
experiments/2_training.py
helenacuesta/multif0-estimation-polyvocals
4960f5415f8a170f2ff8d5b776bfd4cb5576d3ba
[ "MIT" ]
null
null
null
import os import json import keras import numpy as np import csv from experiments import config import utils import utils_train import models import argparse def experiment(save_key, model, data_splits_file, batch_size, active_str, muxrate): """ This should be common code for all experiments """ ...
28.421277
104
0.658332
6c3eef3ce318f9f2ea78b8b3df0a26bfa302ee81
106
py
Python
src/pythonFEA/defaults.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
src/pythonFEA/defaults.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
src/pythonFEA/defaults.py
honzatomek/pythonFEA
c851c20800a06cc2084ef53dfd2ab67e7dfbc3b7
[ "MIT" ]
null
null
null
# DEFUALT SETUP FOR NUMBERS DEFAULT_FLOAT = float # DEFAULT SETUP FOR STRINGS DEFAULT_LABEL_LENGTH = 120
17.666667
27
0.801887
6c3f1a1b4560f11557e8a7fa31b050b56c6becc0
6,666
py
Python
backend/validators/models.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
backend/validators/models.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
backend/validators/models.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
from logging import exception, info from requests import post as request_post from requests.exceptions import RequestException from typing import Union from uuid import UUID from django.conf import settings from django.db.models import ( CASCADE, CharField, ForeignKey, OneToOneField, ) from web3.types ...
29.495575
79
0.611461
6c40a91da29b8a959cf350b71661cacacc596d6d
494
py
Python
practise/remove_zero.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
practise/remove_zero.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
practise/remove_zero.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
if __name__ == "__main__": a = Solution() nums = [0] a.moveZeroes(nums)
27.444444
74
0.465587
6c42601ba0916dd0c025e30a21fda4322eb4b154
2,838
py
Python
scripts/train_agent.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
null
null
null
scripts/train_agent.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
null
null
null
scripts/train_agent.py
weepingwillowben/reward-surfaces
f27211faf3784df3305972b7cad65002fd57d7bf
[ "MIT" ]
2
2021-10-03T14:51:38.000Z
2021-11-10T02:54:26.000Z
import argparse from reward_surfaces.agents.make_agent import make_agent import torch import json import os from glob import glob if __name__ == "__main__": main()
41.130435
174
0.65821
6c43b369587320014577c2dea259fb1b216358eb
103
py
Python
tests/test_ladder.py
devonwa/ladder2x
a8604fb61eaa193d9a6e0239474a6c0af1bc2b49
[ "Unlicense" ]
null
null
null
tests/test_ladder.py
devonwa/ladder2x
a8604fb61eaa193d9a6e0239474a6c0af1bc2b49
[ "Unlicense" ]
null
null
null
tests/test_ladder.py
devonwa/ladder2x
a8604fb61eaa193d9a6e0239474a6c0af1bc2b49
[ "Unlicense" ]
null
null
null
"""Tests on the base ladder structure.""" import pytest if __name__ == "__main__": pytest.main()
14.714286
41
0.669903
6c441485e7e7ad06c0126fe73345924ccb66fe07
390
py
Python
courses/urls.py
office-for-students/wagtail-CMS
98789c279edf48f2bbedb5415437da3317f0e12b
[ "MIT" ]
4
2019-06-04T07:18:44.000Z
2020-06-15T22:27:36.000Z
courses/urls.py
office-for-students/wagtail-CMS
98789c279edf48f2bbedb5415437da3317f0e12b
[ "MIT" ]
38
2019-05-09T13:14:56.000Z
2022-03-12T00:54:57.000Z
courses/urls.py
office-for-students/wagtail-CMS
98789c279edf48f2bbedb5415437da3317f0e12b
[ "MIT" ]
3
2019-09-26T14:32:36.000Z
2021-05-06T15:48:01.000Z
from django.conf.urls import url from django.urls import path from courses.views import courses_detail from courses.views.translate import get_translations urlpatterns = [ url(r'(?P<institution_id>[\w\-]+?)/(?P<course_id>[\w\-\~\$()]+?)/(?P<kis_mode>[\w\-]+?)/', courses_detail, name='courses_detail'), ...
32.5
110
0.697436
6c44a6f087fd346f5832a3d385363862360f4ae8
447
py
Python
opencypher/tests/ast/test_ordering.py
globality-corp/opencypher
b60bf526fb6d5ea6c731aab867f714f3e10f629b
[ "Apache-2.0" ]
6
2019-01-31T18:55:46.000Z
2020-12-02T14:53:45.000Z
opencypher/tests/ast/test_ordering.py
globality-corp/opencypher
b60bf526fb6d5ea6c731aab867f714f3e10f629b
[ "Apache-2.0" ]
1
2020-12-04T00:18:20.000Z
2020-12-04T00:18:20.000Z
opencypher/tests/ast/test_ordering.py
globality-corp/opencypher
b60bf526fb6d5ea6c731aab867f714f3e10f629b
[ "Apache-2.0" ]
1
2019-03-17T03:46:26.000Z
2019-03-17T03:46:26.000Z
from hamcrest import assert_that, equal_to, is_ from opencypher.ast import Expression, NonEmptySequence, Order, SortItem, SortOrder
23.526316
83
0.590604
6c46983292689e2b0a8072d0c4aba99c6bfefd5f
444
py
Python
TD3/test.py
chenoly/DRL-MindSpore
7e3434f2ca326a76d150903fd2ed8e8a32de5cea
[ "MIT" ]
null
null
null
TD3/test.py
chenoly/DRL-MindSpore
7e3434f2ca326a76d150903fd2ed8e8a32de5cea
[ "MIT" ]
null
null
null
TD3/test.py
chenoly/DRL-MindSpore
7e3434f2ca326a76d150903fd2ed8e8a32de5cea
[ "MIT" ]
null
null
null
from Model import Critic from mindspore import Tensor from mindspore import load_param_into_net import copy C1 = Critic(state_dim=2, action_dim=1) C2 = Critic(state_dim=2, action_dim=1) # C1.load_parameter_slice(C2.parameters_dict()) # load_param_into_net(C1, C2.parameters_dict()) c1_ = C1.parameters_dict() c2_ = C2.pa...
29.6
47
0.747748
6c46b6f196085ed15758fd855c1d14b7c05e52f5
351
py
Python
reflectivipy/wrappers/expr_flatwrapper.py
StevenCostiou/reflectivipy
750ed93cfb463304958e590d895c76169caa4b98
[ "MIT" ]
10
2019-01-18T17:45:18.000Z
2019-10-05T08:58:17.000Z
reflectivipy/wrappers/expr_flatwrapper.py
StevenCostiou/reflectivipy
750ed93cfb463304958e590d895c76169caa4b98
[ "MIT" ]
null
null
null
reflectivipy/wrappers/expr_flatwrapper.py
StevenCostiou/reflectivipy
750ed93cfb463304958e590d895c76169caa4b98
[ "MIT" ]
null
null
null
from .flatwrapper import FlatWrapper
29.25
74
0.68661
6c489fd8b4623ac06e1c59f92467d3fce08e9f03
1,742
py
Python
cricdb_data.py
ravi2013167/coursera-site
e78f10c9fa941a834f83853479ea3ee67eeacc64
[ "MIT" ]
null
null
null
cricdb_data.py
ravi2013167/coursera-site
e78f10c9fa941a834f83853479ea3ee67eeacc64
[ "MIT" ]
null
null
null
cricdb_data.py
ravi2013167/coursera-site
e78f10c9fa941a834f83853479ea3ee67eeacc64
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from cricdb_setup import Team, Player, Base, Batsman, Bowler, Fielder, PlayerStrength, PlayerWeakness, PlayerMoment, Video engine = create_engine('sqlite:///cricdb.db') # Bind the engine to the metadata of the Base class so that the #...
40.511628
308
0.74225
6c4921ee958b3c93f23ee76186c1ec8331428083
1,006
py
Python
catalog/bindings/gmd/dq_evaluation_method_type_code_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/dq_evaluation_method_type_code_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/dq_evaluation_method_type_code_property_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional, Union from bindings.gmd.dq_evaluation_method_type_code import DqEvaluationMethodTypeCode from bindings.gmd.nil_reason_enumeration_value import NilReasonEnumerationValue __NAMESPACE__ = "http://www.isotc211.org/2005/gmd"
32.451613
82
0.667992
6c4c00831838cc942a656d3b8ca70c1fdf886a13
3,964
py
Python
spark/ReqTwisted.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
spark/ReqTwisted.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
spark/ReqTwisted.py
wensheng/spark
ab47107d000f0670f4cfe131637f72471a04cfb2
[ "MIT" ]
null
null
null
#import time from spark.ReqBase import ReqBase
29.362963
89
0.688951
6c4cbca2cb07bcccddf7a558df7b93567d90c79c
11,093
py
Python
alpha_transform/AlphaTransformUtility.py
michaelriedl/alpha-transform
add5818b168551cb0c2138c65101c9cdac2bf3d9
[ "MIT" ]
13
2016-12-21T03:25:57.000Z
2022-03-15T03:25:04.000Z
alpha_transform/AlphaTransformUtility.py
michaelriedl/alpha-transform
add5818b168551cb0c2138c65101c9cdac2bf3d9
[ "MIT" ]
4
2020-07-11T09:49:51.000Z
2021-12-03T07:07:34.000Z
alpha_transform/AlphaTransformUtility.py
michaelriedl/alpha-transform
add5818b168551cb0c2138c65101c9cdac2bf3d9
[ "MIT" ]
7
2018-09-23T10:58:24.000Z
2021-09-05T01:13:57.000Z
r""" This module contains several utility functions which can be used e.g. for thresholding the alpha-shearlet coefficients or for using the alpha-shearlet transform for denoising. Finally, it also contains the functions :func:`my_ravel` and :func:`my_unravel` which can be used to convert the alpha-shearlet coefficien...
34.557632
79
0.63166
6c50ce676f3a6dc75c4d1900f6d996ce7fd69ed7
2,692
py
Python
tests/provider/dwd/radar/test_api_latest.py
waltherg/wetterdienst
3c5c63b5b8d3e19511ad789bb499bdaa9b1976d9
[ "MIT" ]
1
2021-09-01T12:53:09.000Z
2021-09-01T12:53:09.000Z
tests/provider/dwd/radar/test_api_latest.py
waltherg/wetterdienst
3c5c63b5b8d3e19511ad789bb499bdaa9b1976d9
[ "MIT" ]
null
null
null
tests/provider/dwd/radar/test_api_latest.py
waltherg/wetterdienst
3c5c63b5b8d3e19511ad789bb499bdaa9b1976d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. import re from datetime import datetime import pytest from tests.provider.dwd.radar import station_reference_pattern_unsorted from wetterdienst.provider.dwd.radar import Dwd...
30.247191
108
0.69688
6c5274b4da8bf2db8410e4efcd81dcd874ad4000
710
py
Python
tests/conftest.py
transferwise/cloudflare-exporter
d5efd4e9068bf9896a16ec6913d3345e3754d7c8
[ "Apache-2.0" ]
1
2021-08-06T15:09:26.000Z
2021-08-06T15:09:26.000Z
tests/conftest.py
transferwise/cloudflare-exporter
d5efd4e9068bf9896a16ec6913d3345e3754d7c8
[ "Apache-2.0" ]
16
2021-09-20T04:10:29.000Z
2022-03-14T04:26:01.000Z
tests/conftest.py
transferwise/cloudflare-exporter
d5efd4e9068bf9896a16ec6913d3345e3754d7c8
[ "Apache-2.0" ]
2
2021-08-21T18:48:15.000Z
2021-11-19T16:52:25.000Z
# -*- coding: utf-8 -*- import pytest import json from pathlib import Path
26.296296
87
0.712676
6c5353e05ae0337f97754129d22ee251e890227f
4,529
py
Python
scripts/delay_analysis.py
welvin21/pysimt
6250b33dc518b3195da4fc9cc8d32ba7ada958c0
[ "MIT" ]
34
2020-09-21T10:49:57.000Z
2022-01-08T04:50:42.000Z
scripts/delay_analysis.py
welvin21/pysimt
6250b33dc518b3195da4fc9cc8d32ba7ada958c0
[ "MIT" ]
2
2021-01-08T03:52:51.000Z
2021-09-10T07:45:05.000Z
scripts/delay_analysis.py
welvin21/pysimt
6250b33dc518b3195da4fc9cc8d32ba7ada958c0
[ "MIT" ]
5
2021-04-23T09:30:51.000Z
2022-01-09T08:40:45.000Z
#!/usr/bin/env python import os import sys import glob import argparse from pathlib import Path from collections import defaultdict from hashlib import sha1 import numpy as np import sacrebleu import tabulate from pysimt.metrics.simnmt import AVPScorer, AVLScorer, CWMScorer, CWXScorer """This script should be run ...
34.310606
97
0.59108
6c56a8517956b8fdd74335b60fe24a921ed77b5c
3,713
py
Python
canvas_course_site_wizard/views.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
canvas_course_site_wizard/views.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
5
2018-05-10T19:49:43.000Z
2021-01-29T19:39:34.000Z
canvas_course_site_wizard/views.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
import logging from django.views.generic.base import TemplateView from django.views.generic.detail import DetailView from django.shortcuts import redirect from .controller import ( create_canvas_course, start_course_template_copy, finalize_new_canvas_course, get_canvas_course_url ) from .mixins import C...
51.569444
121
0.736062
6c58884fde7690dcd1123dcef567073872ba2ad9
7,389
py
Python
brie/utils/count.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
38
2017-01-06T00:18:46.000Z
2022-01-25T19:44:10.000Z
brie/utils/count.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
28
2017-01-11T09:12:57.000Z
2022-02-14T14:53:48.000Z
brie/utils/count.py
huangyh09/brie
59563baafcdb95d1d75a81203e5cc29983f66c2f
[ "Apache-2.0" ]
12
2018-02-13T20:23:00.000Z
2022-01-05T18:39:19.000Z
import sys import numpy as np from .sam_utils import load_samfile, fetch_reads def _check_SE_event(gene): """Check SE event""" if (len(gene.trans) != 2 or gene.trans[0].exons.shape[0] != 3 or gene.trans[1].exons.shape[0] != 2 or np.mean(gene.trans[0].exons[[0, 2], :] == ...
35.354067
79
0.603194
6c5b5d2beb7892b3713dc1291924921532e74885
1,795
py
Python
encommon/tests/test_times.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
encommon/tests/test_times.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
encommon/tests/test_times.py
enasisnetwork/encommon-py
c2bb1412171c84fe2917a23b535a6db1b5f523c1
[ "MIT" ]
null
null
null
#==============================================================================# # Enasis Network Common Libraries # # Python Functions Time Processing # #============================================================================...
54.393939
80
0.325905
6c5bb6b2d92f0865bef01adbf1214af8685dd82e
2,661
py
Python
source/dashboard.py
R0htg0r/Automatic-comments-for-Instagram-
0a4e02d45f02be1462fb44fc6ebf5c8eb11fbd04
[ "Apache-2.0" ]
3
2021-04-03T19:39:03.000Z
2021-04-06T13:03:43.000Z
source/dashboard.py
R0htg0r/Automatic-comments-for-Instagram-
0a4e02d45f02be1462fb44fc6ebf5c8eb11fbd04
[ "Apache-2.0" ]
null
null
null
source/dashboard.py
R0htg0r/Automatic-comments-for-Instagram-
0a4e02d45f02be1462fb44fc6ebf5c8eb11fbd04
[ "Apache-2.0" ]
null
null
null
from colorama import Fore, Back, Style, init import pyautogui import time import os os.system("mode 120, 30") Poxtrop()
42.238095
114
0.311161
6c5c369d85c41ace1c62ddc67471055b462a3df1
1,527
py
Python
ledshimdemo/display_options.py
RatJuggler/led-shim-effects
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
1
2021-04-17T16:18:14.000Z
2021-04-17T16:18:14.000Z
ledshimdemo/display_options.py
RatJuggler/led-shim-effects
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
12
2019-07-26T18:01:56.000Z
2019-08-31T15:35:17.000Z
ledshimdemo/display_options.py
RatJuggler/led-shim-demo
3c63f5f2ce3f35f52e784489deb9212757c18cd2
[ "MIT" ]
null
null
null
import click from typing import Callable, List from .effect_parade import AbstractEffectParade DISPLAY_OPTIONS = [ click.option('-p', '--parade', type=click.Choice(AbstractEffectParade.get_parade_options()), help="How the effects are displayed.", default=AbstractEffectParade.get_default_option()...
41.27027
114
0.64833
6c5e382a6852be827146dfca1422cff18cd4ad2e
587
py
Python
download_data_folder.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
2
2021-01-05T02:55:57.000Z
2021-04-16T15:49:08.000Z
download_data_folder.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
null
null
null
download_data_folder.py
MelvinYin/Defined_Proteins
75da20be82a47d85d27176db29580ab87d52b670
[ "BSD-3-Clause" ]
1
2021-01-05T08:12:38.000Z
2021-01-05T08:12:38.000Z
import boto3 import os import tarfile if __name__ == "__main__": s3 = boto3.client('s3', aws_access_key_id="AKIAY6UR252SQUQ3OSWZ", aws_secret_access_key="08LQj" "+ryk9SMojG18vERXKKzhNSYk5pLhAjrIAVX") output_path = "./data.tar.gz" with open(o...
34.529412
82
0.626917
6c600ba2b9e8dfbbc98654347a117e7d18a03ded
8,247
py
Python
splotch/utils_visium.py
adaly/cSplotch
c79a5cbd155f2cd5bcc1d8b04b1824923feb1442
[ "BSD-3-Clause" ]
1
2021-12-20T16:13:16.000Z
2021-12-20T16:13:16.000Z
splotch/utils_visium.py
adaly/cSplotch
c79a5cbd155f2cd5bcc1d8b04b1824923feb1442
[ "BSD-3-Clause" ]
null
null
null
splotch/utils_visium.py
adaly/cSplotch
c79a5cbd155f2cd5bcc1d8b04b1824923feb1442
[ "BSD-3-Clause" ]
null
null
null
import os, sys import logging import numpy as np import pandas as pd from matplotlib import pyplot as plt from scipy.ndimage import label from .utils import watershed_tissue_sections, get_spot_adjacency_matrix # Read in a series of Loupe annotation files and return the set of all unique categories. # NOTE: "Undefine...
36.0131
122
0.751789
6c609ad8257f94c3be0be69725b48962c792c7f1
1,729
py
Python
floa/routes.py
rsutton/loa
31ca8cc3f7be011b21f22ed2ce509d135a4b866b
[ "MIT" ]
null
null
null
floa/routes.py
rsutton/loa
31ca8cc3f7be011b21f22ed2ce509d135a4b866b
[ "MIT" ]
null
null
null
floa/routes.py
rsutton/loa
31ca8cc3f7be011b21f22ed2ce509d135a4b866b
[ "MIT" ]
null
null
null
from flask import ( Blueprint, render_template, request, session, current_app as app ) from flask_login import current_user from floa.extensions import loa from floa.models.library import Library bp = Blueprint( name='home', import_name=__name__, url_prefix="/" )
24.7
79
0.657606
6c619fe8bbdf105e5a1586be4e70bb3d3697916a
3,496
py
Python
api/async/__init__.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
1
2017-10-28T00:21:43.000Z
2017-10-28T00:21:43.000Z
api/async/__init__.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
null
null
null
api/async/__init__.py
lampwins/orangengine-ui
8c864cd297176aa0ff9ead9682f2085f9fd3f1c0
[ "MIT" ]
4
2017-01-26T23:31:32.000Z
2019-04-17T14:02:00.000Z
import logging import orangengine from api.models import Device as DeviceModel from celery.utils.log import get_task_logger from api import debug celery_logger = get_task_logger(__name__) if debug: celery_logger.setLevel(logging.DEBUG) celery_logger.debug('Enabled Debug mode')
33.615385
92
0.663043
6c62a1650704041514fc09b42720dad2d27e5799
753
py
Python
app1/migrations/0060_auto_20201222_2131.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
6
2021-09-16T16:46:56.000Z
2022-02-06T13:00:08.000Z
app1/migrations/0060_auto_20201222_2131.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
null
null
null
app1/migrations/0060_auto_20201222_2131.py
vashuteotia123/zbcvit
da29b3281ccc87481a264b63c5b6c3a549945f33
[ "MIT" ]
1
2021-09-14T09:26:58.000Z
2021-09-14T09:26:58.000Z
# Generated by Django 2.2.7 on 2020-12-22 16:01 import datetime from django.db import migrations, models
25.965517
100
0.589641
6c63b62274efc319d7d5ff5ab63d36ad70596229
240
py
Python
stacks/tests/test_decode_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
null
null
null
stacks/tests/test_decode_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
null
null
null
stacks/tests/test_decode_string.py
ahcode0919/python-ds-algorithms
0d617b78c50b6c18da40d9fa101438749bfc82e1
[ "MIT" ]
3
2020-10-07T20:24:45.000Z
2020-12-16T04:53:19.000Z
from stacks.decode_string import decode_string
30
61
0.7
6c65225c18ab757299cb8993ab36ee8beae952c4
239
py
Python
receiver_udp.py
pabitra0177/ITR-internship
3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75
[ "MIT" ]
null
null
null
receiver_udp.py
pabitra0177/ITR-internship
3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75
[ "MIT" ]
null
null
null
receiver_udp.py
pabitra0177/ITR-internship
3d1909b9e4a1b980ad4f6cb4b8c1fb17811c2d75
[ "MIT" ]
null
null
null
# import socket ip = "127.0.0.1" port = 5001 s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) s.bind((ip,port)) i=0 while True: data, addr = s.recvfrom(1024) print "Received from ",addr print "Received ",data s.close()
14.058824
51
0.656904
6c6938ad771712cddf43056b1ad20a6d5a62ca66
4,240
py
Python
yolov3/utils/checkpoint.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
13
2019-03-22T15:22:22.000Z
2021-09-30T21:15:37.000Z
yolov3/utils/checkpoint.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
null
null
null
yolov3/utils/checkpoint.py
hysts/pytorch_yolov3
6d4c7a1e42d366894effac8ca52f7116f891b5ab
[ "MIT" ]
null
null
null
import copy import logging import pathlib import torch import torch.nn as nn from yolov3.config import get_default_config from yolov3.utils.config_node import ConfigNode
36.551724
79
0.624764
6c6a82e95bf8ebf0eb518403b616adac59f096b0
505
py
Python
autograd/tests/test_z_playground.py
pmaederyork/Dragrongrad
32794d561f8d0273592ed55d315013eab2c24b8b
[ "MIT" ]
3
2018-12-17T16:24:11.000Z
2020-06-03T22:40:50.000Z
autograd/tests/test_z_playground.py
cs207-project-group4/project-repo
d5ee88d2a7d16477d816d830ba90d241a05e3b48
[ "MIT" ]
2
2018-10-18T17:59:26.000Z
2018-12-08T16:06:34.000Z
autograd/tests/test_z_playground.py
cs207-project-group4/project-repo
d5ee88d2a7d16477d816d830ba90d241a05e3b48
[ "MIT" ]
1
2019-08-19T06:06:13.000Z
2019-08-19T06:06:13.000Z
# -*- coding: utf-8 -*- from autograd.blocks.trigo import sin, cos from autograd.variable import Variable import numpy as np import autograd as ad from autograd import config t=sub(2) t.parent()
15.78125
42
0.552475
6c6a90b147afe488a76460582fd0b95042612fc0
135
py
Python
PySpace/using_sys.py
dralee/LearningRepository
4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4
[ "Apache-2.0" ]
null
null
null
PySpace/using_sys.py
dralee/LearningRepository
4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4
[ "Apache-2.0" ]
null
null
null
PySpace/using_sys.py
dralee/LearningRepository
4324d3c5ac1a12dde17ae70c1eb7f3d36a047ba4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # using_sys.py import sys print('') for i in sys.argv: print(i) print('\n\nPython',sys.path,'\n')
15
37
0.674074
6c6f498aea5f5f14a181bf4e682dea6414249ebe
1,749
py
Python
gaussian_filter.py
baiching/Paper-Implementations
56136a88a64885270adbefd6999815a1ad6f56a2
[ "MIT" ]
null
null
null
gaussian_filter.py
baiching/Paper-Implementations
56136a88a64885270adbefd6999815a1ad6f56a2
[ "MIT" ]
null
null
null
gaussian_filter.py
baiching/Paper-Implementations
56136a88a64885270adbefd6999815a1ad6f56a2
[ "MIT" ]
null
null
null
import math import numbers import torch from torch import nn from torch.nn import functional as F def gaussian_filter(in_channel, out_channel, kernel_size=15, sigma=3): """ This method returns 2d gaussian filter input : in_channel : Number of input channels out_channel : Expected number of output ...
34.98
83
0.675815
6c6ff29fbade9a404f47dd54164a91e8e0704f4b
664
py
Python
opfu/stock.py
XavierDingRotman/OptionsFutures
bab0de0d66efe39f05e9ddf59460ec76547d9ada
[ "Apache-2.0" ]
1
2020-07-05T20:54:15.000Z
2020-07-05T20:54:15.000Z
opfu/stock.py
XavierDingRotman/OptionsFutures
bab0de0d66efe39f05e9ddf59460ec76547d9ada
[ "Apache-2.0" ]
null
null
null
opfu/stock.py
XavierDingRotman/OptionsFutures
bab0de0d66efe39f05e9ddf59460ec76547d9ada
[ "Apache-2.0" ]
null
null
null
from opfu.security import Security
23.714286
55
0.554217
6c7066dd2f2223bc38f4edca28dbdaad3e0c39bc
172
py
Python
ABC103/ABC103a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
ABC103/ABC103a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
ABC103/ABC103a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
# ABC103a import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) a = list(map(int, input().split())) a.sort(reverse=True) print(abs(a[1]-a[0])+abs(a[1]-a[2]))
19.111111
36
0.674419
6c707e42c5437ebc563efca0ace739aedca17496
283
py
Python
awsthreatprep/config.py
cclauss/ThreatPrep
b1881be239e7b86d86acc70a207989d459bd9d79
[ "MIT" ]
50
2016-08-05T03:33:00.000Z
2022-02-16T13:52:15.000Z
awsthreatprep/config.py
cclauss/ThreatPrep
b1881be239e7b86d86acc70a207989d459bd9d79
[ "MIT" ]
null
null
null
awsthreatprep/config.py
cclauss/ThreatPrep
b1881be239e7b86d86acc70a207989d459bd9d79
[ "MIT" ]
14
2017-06-26T02:54:43.000Z
2021-11-17T07:38:52.000Z
import os config = { #iam 'ACCOUNT_INACTIVE_DAYS': 30, #Accounts are inactive if not used for 30 days 'PASSWORD_ROTATION_DAYS': 90, #Paswords should be rotated every 90 days 'ACCESS_KEY_ROTATION_DAYS': 90 #Access Keys should be rotated every 90 days }
31.444444
85
0.696113
6c72586f407f6e08ecae9c71f47245060e33b3dd
28,356
py
Python
widgets/RichTextCtrl.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
3
2018-03-19T07:57:10.000Z
2021-07-05T08:55:14.000Z
widgets/RichTextCtrl.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
6
2020-03-24T15:40:18.000Z
2021-12-13T19:46:09.000Z
widgets/RichTextCtrl.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
4
2018-03-29T21:59:55.000Z
2019-12-16T14:56:38.000Z
#!/usr/bin/env python from six import BytesIO import wx import wx.richtext as rt import images #---------------------------------------------------------------------- #---------------------------------------------------------------------- #----------------------------------------------------------------------...
38.684857
302
0.608513
6c74c309dcd00dafc4c1aae00a0c378fd733102d
1,105
py
Python
src/user/models.py
fga-gpp-mds/2017.2-Grupo12
a90f94d0d497f625ab82ef44a907561f3bfa835f
[ "MIT" ]
6
2017-10-02T12:07:40.000Z
2017-12-14T11:40:07.000Z
src/user/models.py
fga-gpp-mds/2017.2-Grupo12
a90f94d0d497f625ab82ef44a907561f3bfa835f
[ "MIT" ]
92
2017-09-30T19:14:21.000Z
2017-12-14T04:41:16.000Z
src/user/models.py
fga-gpp-mds/2017.2-Grupo12
a90f94d0d497f625ab82ef44a907561f3bfa835f
[ "MIT" ]
3
2017-09-06T00:49:38.000Z
2018-07-13T00:32:37.000Z
from django.db import models from django.contrib.auth.models import User
29.078947
78
0.673303
6c768de90390e5fd0ea2640bab37a8869d234309
1,784
py
Python
lcd/nodemcu_gpio_lcd_test.py
petrkr/python_lcd
92e5d0211e5cef4dcc9078905f4bd53dc2cc78b4
[ "MIT" ]
237
2015-07-19T21:33:01.000Z
2022-03-30T00:19:46.000Z
lcd/nodemcu_gpio_lcd_test.py
petrkr/python_lcd
92e5d0211e5cef4dcc9078905f4bd53dc2cc78b4
[ "MIT" ]
25
2015-07-19T20:44:31.000Z
2022-01-26T10:42:07.000Z
lcd/nodemcu_gpio_lcd_test.py
petrkr/python_lcd
92e5d0211e5cef4dcc9078905f4bd53dc2cc78b4
[ "MIT" ]
107
2015-09-05T12:54:55.000Z
2022-03-28T15:36:13.000Z
"""Implements a HD44780 character LCD connected via NodeMCU GPIO pins.""" from machine import Pin from utime import sleep, ticks_ms from nodemcu_gpio_lcd import GpioLcd # Wiring used for this example: # # 1 - Vss (aka Ground) - Connect to one of the ground pins on you NodeMCU board. # 2 - VDD - Connect to 3V # 3 -...
34.307692
81
0.627242
6c77d3d22c710ab0e8e3582be4b79df9edb68531
11,579
py
Python
apps/life_sci/examples/reaction_prediction/rexgen_direct/utils.py
LunaBlack/dgl
bd1e48a51e348b0e8e25622325adeb5ddea1c0ea
[ "Apache-2.0" ]
2
2021-12-09T12:36:13.000Z
2022-03-01T21:22:36.000Z
apps/life_sci/examples/reaction_prediction/rexgen_direct/utils.py
sherry-1001/dgl
60d2e7d3c928d43bbb18e7ab17c066451c49f649
[ "Apache-2.0" ]
null
null
null
apps/life_sci/examples/reaction_prediction/rexgen_direct/utils.py
sherry-1001/dgl
60d2e7d3c928d43bbb18e7ab17c066451c49f649
[ "Apache-2.0" ]
2
2020-12-07T09:34:01.000Z
2020-12-13T06:18:58.000Z
import dgl import errno import numpy as np import os import random import torch from collections import defaultdict from rdkit import Chem def mkdir_p(path): """Create a folder for the given path. Parameters ---------- path: str Folder to create """ try: os.makedirs(path) ...
37.112179
97
0.648847
6c7908e8770d3b372e9f758cbbc3bb105b2fcb1e
8,602
py
Python
scripts/CMU/preprocess.py
Vidhan/allennlp
3f360d6da2b06ecb8afe03e7802791b9c5cd74d1
[ "Apache-2.0" ]
null
null
null
scripts/CMU/preprocess.py
Vidhan/allennlp
3f360d6da2b06ecb8afe03e7802791b9c5cd74d1
[ "Apache-2.0" ]
null
null
null
scripts/CMU/preprocess.py
Vidhan/allennlp
3f360d6da2b06ecb8afe03e7802791b9c5cd74d1
[ "Apache-2.0" ]
1
2018-04-30T08:46:34.000Z
2018-04-30T08:46:34.000Z
import json import os import re import uuid from knowledge_graph_attr import KnowledgeGraph, Dijkstra total = 0.0 ignored = 0.0 if __name__ == "__main__": p = Preprocessor() path = "/Users/prasoon/Desktop/train" files = os.listdir(path) student_train_json = {'data': []} bug_train_json = {'data...
34.546185
100
0.514299
6c79a93effba00b7b6196ac9c718d0c037c656b9
5,168
py
Python
src/figures/violin_plot_sp_performance.py
espottesmith/hydrobench
e117774c94cff11debd764d231757174ec211e99
[ "MIT" ]
1
2022-03-16T19:19:15.000Z
2022-03-16T19:19:15.000Z
src/figures/violin_plot_sp_performance.py
espottesmith/hydrobench
e117774c94cff11debd764d231757174ec211e99
[ "MIT" ]
null
null
null
src/figures/violin_plot_sp_performance.py
espottesmith/hydrobench
e117774c94cff11debd764d231757174ec211e99
[ "MIT" ]
null
null
null
import csv import os import difflib import statistics import numpy as np import matplotlib.pyplot as plt SMALL_SIZE = 12 MEDIUM_SIZE = 14 LARGE_SIZE = 18 plt.rc('font', size=SMALL_SIZE) # controls default text sizes # plt.rc('title', titlesize=MEDIUM_SIZE) # fontsize of the axes title plt.rc('axes', lab...
32.917197
186
0.572175
6c7aa53b02ade1969b440eeb2dca4bdd3802359c
205
py
Python
submissions/abc083/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc083/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc083/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
# sys.stdin.readline() import sys input = sys.stdin.readline a, b, c, d = map(int, input().split()) if a+b > c+d: ans = 'Left' elif a+b == c+d: ans = 'Balanced' else: ans = 'Right' print(ans)
15.769231
38
0.57561
6c7b64c2f62afaf0967618c5e7f57887d35fa040
3,972
py
Python
dafny_comparison/print_table.py
gleissen/goolong
2bc38024204f9747ed9818502c5df3d36b96dd7d
[ "Apache-2.0" ]
1
2019-05-21T18:16:58.000Z
2019-05-21T18:16:58.000Z
dafny_comparison/print_table.py
gleissen/goolong
2bc38024204f9747ed9818502c5df3d36b96dd7d
[ "Apache-2.0" ]
2
2020-08-06T15:19:12.000Z
2020-08-06T15:23:19.000Z
dafny_comparison/print_table.py
gokhankici/goolong
ac5689c374ddaa0156693f234be392059f318b3a
[ "Apache-2.0" ]
2
2020-10-27T09:06:58.000Z
2021-12-07T16:30:38.000Z
#!/usr/bin/env python import copy import os.path as op NAME_FMT = "%-20s" def update_stats(filename, stat): if not op.isfile(filename): return with open(filename, 'r') as f: for line in f: l = line.rstrip() for c in FileStats.ANNOTS: if l.endswith("%s ...
30.790698
84
0.527442
6c7c6ab3c977d309a6e23ab36c08b279c63de1a3
3,822
py
Python
src/po_utils/common_actions/element_interactions.py
matthew-bahloul/browser-utils
22372d1a6718d8a7fd4eebf116c728aaa06e68ee
[ "MIT" ]
null
null
null
src/po_utils/common_actions/element_interactions.py
matthew-bahloul/browser-utils
22372d1a6718d8a7fd4eebf116c728aaa06e68ee
[ "MIT" ]
null
null
null
src/po_utils/common_actions/element_interactions.py
matthew-bahloul/browser-utils
22372d1a6718d8a7fd4eebf116c728aaa06e68ee
[ "MIT" ]
null
null
null
""" by_locator : tuple --> (<selenium By object>, <selector string>) x_offset : int --> integer value of x offset in pixels y_offset : int --> integer value of y offset in pixels x_destination : int --> integer value of x location on page y_desitination : int ...
53.083333
205
0.75641
6c7e366d11f836cc2b4028018db9d96639fae992
174
py
Python
Topics/Custom generators/Even numbers/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
1
2021-07-26T03:06:14.000Z
2021-07-26T03:06:14.000Z
Topics/Custom generators/Even numbers/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
null
null
null
Topics/Custom generators/Even numbers/main.py
valenciarichards/hypernews-portal
0b6c4d8aefe4f8fc7dc90d6542716e98f52515b3
[ "MIT" ]
null
null
null
n = int(input()) for number in range(n): print(next(even(number))) # Don't forget to print out the first n numbers one by one here
13.384615
63
0.62069
6c7f914b76e891552a3b496827a2a433ae7084c1
2,096
py
Python
cronman/cron_jobs/run_cron_tasks.py
ryancheley/django-cronman
5be5d9d5eecba0f110808c9e7a97ef89ef620ade
[ "BSD-3-Clause" ]
17
2018-09-25T16:28:36.000Z
2022-01-31T14:43:24.000Z
cronman/cron_jobs/run_cron_tasks.py
ryancheley/django-cronman
5be5d9d5eecba0f110808c9e7a97ef89ef620ade
[ "BSD-3-Clause" ]
14
2018-11-04T14:45:14.000Z
2022-02-01T04:02:47.000Z
cronman/cron_jobs/run_cron_tasks.py
ryancheley/django-cronman
5be5d9d5eecba0f110808c9e7a97ef89ef620ade
[ "BSD-3-Clause" ]
3
2018-09-25T16:28:44.000Z
2022-02-01T04:08:23.000Z
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 from __future__ import unicode_literals from django.db import connections from django.utils import timezone from django.utils.functional import cached_property from cronman.config import app_settings from cronman.job import BaseCronJob from cronman.models import Cro...
31.757576
74
0.648378
6c8301238acf3bc4525ac9e26175e629b0f3e112
2,893
py
Python
day23.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
day23.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
day23.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
import re parse_re = re.compile( r'pos\=\<(?P<x>-?\d+),(?P<y>-?\d+),(?P<z>-?\d+)\>, r\=(?P<r>\d+)' ) if __name__ == '__main__': test1() test2() main()
27.037383
69
0.412375
6c83ee69fde6360b183bb19fa3bcf09e78de7fd6
381
py
Python
setup.py
connormullett/lib_elo_calculator
1a699f233dd440b4295e8958b02422ce64b27c70
[ "MIT" ]
null
null
null
setup.py
connormullett/lib_elo_calculator
1a699f233dd440b4295e8958b02422ce64b27c70
[ "MIT" ]
null
null
null
setup.py
connormullett/lib_elo_calculator
1a699f233dd440b4295e8958b02422ce64b27c70
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages, setup setup( name="lib_elo_calculator", packages=find_packages(include=['lib_elo_calculator']), version='0.1.0', description='contains functions and formulas for calculating elo', author='Connor Mullett', license='MIT', setup_requires=['pytest-r...
23.8125
68
0.737533
6c85751be92171445c98d3494d9be709e143efc5
1,526
py
Python
examples/intro-example/dags/tutorial.py
rfim/QoalaMoviesKaggle
3cf5486f012487c5585bbe86d3a2bc1c58979bac
[ "MIT" ]
null
null
null
examples/intro-example/dags/tutorial.py
rfim/QoalaMoviesKaggle
3cf5486f012487c5585bbe86d3a2bc1c58979bac
[ "MIT" ]
null
null
null
examples/intro-example/dags/tutorial.py
rfim/QoalaMoviesKaggle
3cf5486f012487c5585bbe86d3a2bc1c58979bac
[ "MIT" ]
null
null
null
tot_name = os.path.join(os.path.dirname(__file__),'src/data', file_name) # open the json datafile and read it in with open(tot_name, 'r') as inputfile: doc = json.load(inputfile) # transform the data to the correct types and convert temp to celsius id_movie = int(doc['id']) movie_name = str(doc['origi...
40.157895
92
0.671035
6c8601c43b4ff494fe3c99410a606a7250f4d9f9
20,189
py
Python
hclf/multiclass.py
tfmortie/hclf
68bdb61c12c4b8fefbb94f1ac8aa30baed8077c5
[ "MIT" ]
null
null
null
hclf/multiclass.py
tfmortie/hclf
68bdb61c12c4b8fefbb94f1ac8aa30baed8077c5
[ "MIT" ]
null
null
null
hclf/multiclass.py
tfmortie/hclf
68bdb61c12c4b8fefbb94f1ac8aa30baed8077c5
[ "MIT" ]
null
null
null
""" Code for hierarchical multi-class classifiers. Author: Thomas Mortier Date: Feb. 2021 TODO: * Add option for set-valued prediction * Feature: allow tree structures with non-unique node labels (currently, warning is thrown) """ import time import warnings import numpy as np from .utils import HLabelEncod...
42.864119
182
0.553668
6c86a24e42a439643a1c92f29bdfc4a1de454d48
964
py
Python
tests/conftest.py
jwizzle/nerdchess
045726326abc3ff94af30bda0c66beff1ca52978
[ "WTFPL" ]
null
null
null
tests/conftest.py
jwizzle/nerdchess
045726326abc3ff94af30bda0c66beff1ca52978
[ "WTFPL" ]
null
null
null
tests/conftest.py
jwizzle/nerdchess
045726326abc3ff94af30bda0c66beff1ca52978
[ "WTFPL" ]
null
null
null
"""Fixtures for pytest.""" import pytest from nerdchess.board import Board from nerdchess import pieces
25.368421
67
0.631743
6c86a8871548627b9a0755d57d564bc3d174dbdd
2,649
py
Python
imports/language_check.py
ahmed-amr1/schtabtag
d5f1e550fccaf58cbcf9fac39528b921659cec7c
[ "MIT" ]
null
null
null
imports/language_check.py
ahmed-amr1/schtabtag
d5f1e550fccaf58cbcf9fac39528b921659cec7c
[ "MIT" ]
null
null
null
imports/language_check.py
ahmed-amr1/schtabtag
d5f1e550fccaf58cbcf9fac39528b921659cec7c
[ "MIT" ]
null
null
null
""" if src == "auto": src = "Auto detect language" if src == "en": src = "English - English" if src == "de": src = "German - Deutsch" if src == "ar": src = "Arabic - " if src == "es": src = "Spanish - espaol, castellano" if src == "ru": src = "Russian - " if src == "pl": src =...
23.442478
42
0.495659
6c86adac816e4b256e05f833e885292823f8146c
1,003
py
Python
puppo/decorator_functions/display_decorators.py
JHowell45/Pupper
5c863eba8651a5b1130c04321cc6cefacb71c7b2
[ "MIT" ]
null
null
null
puppo/decorator_functions/display_decorators.py
JHowell45/Pupper
5c863eba8651a5b1130c04321cc6cefacb71c7b2
[ "MIT" ]
1
2021-06-01T21:54:15.000Z
2021-06-01T21:54:15.000Z
puppo/decorator_functions/display_decorators.py
JHowell45/Pupper
5c863eba8651a5b1130c04321cc6cefacb71c7b2
[ "MIT" ]
null
null
null
"""Decorator unctions for displaying commands.""" from functools import wraps from shutil import get_terminal_size import click def command_handler(command_title, colour='green'): """Use this decorator for surrounding the functions with banners.""" def decorator(function): """Nested decorator functio...
34.586207
72
0.617149
6c87ac082f2ea2bf7c87cad18eaf0cdd7451709c
869
py
Python
opennem/api/schema.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
22
2020-06-30T05:27:21.000Z
2022-02-21T12:13:51.000Z
opennem/api/schema.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
71
2020-08-07T13:06:30.000Z
2022-03-15T06:44:49.000Z
opennem/api/schema.py
paulculmsee/opennem
9ebe4ab6d3b97bdeebc352e075bbd5c22a8ddea1
[ "MIT" ]
13
2020-06-30T03:28:32.000Z
2021-12-30T08:17:16.000Z
from typing import List, Optional from pydantic import BaseModel, Field
21.725
86
0.696203
6c88a8da20ae18c022b5a983db40aed8a4ffb346
304
py
Python
test-examples/issue_678_reproduce.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/issue_678_reproduce.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/issue_678_reproduce.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
""" Test adding 4D followed by 5D image layers to the viewer Intially only 2 sliders should be present, then a third slider should be created. """ import numpy as np from skimage import data import napari with napari.gui_qt(): viewer = napari.view_image(np.random.random((2, 10, 50, 100, 100)))
19
72
0.733553
6c8a1fd6e1a402d55f7841fa1d528a488bdf0b86
49,401
py
Python
tests/subsystem_tests.py
Goodpaster/QSoME
8b24d58dfab5ac0d90fd84b8519b25864eee6f74
[ "Apache-2.0" ]
7
2018-09-28T21:40:08.000Z
2021-06-10T10:44:39.000Z
tests/subsystem_tests.py
Goodpaster/QSoME
8b24d58dfab5ac0d90fd84b8519b25864eee6f74
[ "Apache-2.0" ]
1
2021-07-06T12:28:32.000Z
2021-07-29T20:34:13.000Z
tests/subsystem_tests.py
Goodpaster/QSoME
8b24d58dfab5ac0d90fd84b8519b25864eee6f74
[ "Apache-2.0" ]
1
2021-04-08T12:28:44.000Z
2021-04-08T12:28:44.000Z
# A module to tests the methods of the Subsystem import unittest import os import shutil import re from copy import copy from qsome import cluster_subsystem, cluster_supersystem from pyscf import gto, lib, scf, dft, cc, mp, mcscf, tools from pyscf.cc import ccsd_t, uccsd_t import numpy as np import tempfile
43.182692
172
0.638125
6c8c154f105569426c30727bc7ab8defbef28f73
1,051
py
Python
scripts/undeploy_service.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
6
2016-10-10T09:26:07.000Z
2018-09-20T08:59:42.000Z
scripts/undeploy_service.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
11
2016-10-10T12:11:07.000Z
2018-05-09T22:11:02.000Z
scripts/undeploy_service.py
Suremaker/consul-deployment-agent
466c36d3fcb9f8bfa144299dde7cb94f4341907b
[ "Apache-2.0" ]
16
2016-09-28T16:00:58.000Z
2019-02-25T16:52:12.000Z
#!/usr/bin/env python import argparse import consulate options = Options() parser = argparse.ArgumentParser() parser.add_argument('-n', '--name', required=True, help='service name') parser.add_argument('-s', '--slice', help='slice name (optional)') parser.add_argument('-r', '--role', required=True, help='server role...
30.911765
124
0.713606
6c8d08da4457f70f71f8796a1ee31a832ff90488
190
py
Python
day08/test04.py
jaywoong/python
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
[ "Apache-2.0" ]
null
null
null
day08/test04.py
jaywoong/python
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
[ "Apache-2.0" ]
null
null
null
day08/test04.py
jaywoong/python
99daedd5a9418b72b2d5c3b800080e730eb9b3ea
[ "Apache-2.0" ]
null
null
null
from value import Account acc1 = Account(10000, 3.2) print(acc1) acc1.__balance = 100000000 print(acc1) print(acc1.getBalance()) print(acc1.getInterest()) acc1.setInterest(2.8) print(acc1)
17.272727
26
0.763158
6c8e315e18d51be8398247d53085f6019815be6e
2,717
py
Python
tests/functional/conftest.py
charmed-kubernetes/ceph-csi-operator
06a6a9fed6055e3f0e0bfde835d7f607febcf6ea
[ "Apache-2.0" ]
null
null
null
tests/functional/conftest.py
charmed-kubernetes/ceph-csi-operator
06a6a9fed6055e3f0e0bfde835d7f607febcf6ea
[ "Apache-2.0" ]
null
null
null
tests/functional/conftest.py
charmed-kubernetes/ceph-csi-operator
06a6a9fed6055e3f0e0bfde835d7f607febcf6ea
[ "Apache-2.0" ]
1
2022-03-24T19:17:47.000Z
2022-03-24T19:17:47.000Z
# Copyright 2021 Martin Kalcok # See LICENSE file for licensing details. """Pytest fixtures for functional tests.""" # pylint: disable=W0621 import logging import tempfile from pathlib import Path import pytest from kubernetes import client, config from pytest_operator.plugin import OpsTest logger = logging.getLogg...
36.226667
98
0.670593
6657771a019db8ff3764b551b4d27a9c8de3eee0
3,922
py
Python
caronte/allauth/utils.py
simodalla/django-caronte
e47175849605924c26441c3a3d6d94f4340b9df7
[ "BSD-3-Clause" ]
null
null
null
caronte/allauth/utils.py
simodalla/django-caronte
e47175849605924c26441c3a3d6d94f4340b9df7
[ "BSD-3-Clause" ]
null
null
null
caronte/allauth/utils.py
simodalla/django-caronte
e47175849605924c26441c3a3d6d94f4340b9df7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from django.contrib.auth import get_user_model from django.contrib.admin.templatetags.admin_urls import admin_urlname from django.core.mail import mail_admins from django.core.urlresolvers import reverse from django.shortcuts import redir...
35.017857
79
0.624936
665885ddd8b1d1e99097726c1613e0a5986ad3d5
15,918
py
Python
Task/data.py
sndnyang/GMMC
e9cd85c9d55a7de411daad490c8db84dfe9c0455
[ "Apache-2.0" ]
4
2021-05-09T16:00:12.000Z
2021-12-16T12:31:25.000Z
Task/data.py
sndnyang/GMMC
e9cd85c9d55a7de411daad490c8db84dfe9c0455
[ "Apache-2.0" ]
null
null
null
Task/data.py
sndnyang/GMMC
e9cd85c9d55a7de411daad490c8db84dfe9c0455
[ "Apache-2.0" ]
null
null
null
from tensorflow.python.platform import flags from tensorflow.contrib.data.python.ops import batching import tensorflow as tf import json from torch.utils.data import Dataset import pickle import os.path as osp import os import numpy as np import time from scipy.misc import imread, imresize from torchvision.datasets imp...
33.441176
102
0.537379
6658e5fae0f2feb228f15d275ba5e7cdca6b1e61
3,751
py
Python
controller/Specialty.py
ryltar/GSB-Planning-API
919ad95e4e7bdcac43028fa4026bb800ec6bdb2a
[ "Apache-2.0" ]
null
null
null
controller/Specialty.py
ryltar/GSB-Planning-API
919ad95e4e7bdcac43028fa4026bb800ec6bdb2a
[ "Apache-2.0" ]
null
null
null
controller/Specialty.py
ryltar/GSB-Planning-API
919ad95e4e7bdcac43028fa4026bb800ec6bdb2a
[ "Apache-2.0" ]
null
null
null
from flask import jsonify, g, request from flask_restful import Resource from Authentication import * from Service import * def get_service(): """ Gets an instance of 'Service' from the 'g' environment. """ if not hasattr(g, 'service'): g.service = Service() return g.service def specialty_quer...
31.788136
89
0.640363