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
5e54ef8675e52df34cced0f2e86826df8b5f7a19
11,537
py
Python
DouYin_wechat_jump_auto_iOS.py
JIANSHULI/Douyin_Auto_iOS
b06cd2524e2f0fa304f4cec268f8192dbe3c0c0a
[ "Apache-2.0" ]
1
2018-12-12T04:07:19.000Z
2018-12-12T04:07:19.000Z
DouYin_wechat_jump_auto_iOS.py
JIANSHULI/Douyin_Auto_iOS
b06cd2524e2f0fa304f4cec268f8192dbe3c0c0a
[ "Apache-2.0" ]
null
null
null
DouYin_wechat_jump_auto_iOS.py
JIANSHULI/Douyin_Auto_iOS
b06cd2524e2f0fa304f4cec268f8192dbe3c0c0a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ # === === # # # Y # X Y # X """ import os import shutil import time import math import random import json from PIL import Image, ImageDraw import wda # import wechat_jump_game.common as common ...
32.407303
125
0.515299
5e553930e52041c6112f0876fab58cc7d814a1bf
1,165
py
Python
_modules/neutronv2/subnetpools.py
NDPF/salt-formula-neutron
758f3350fa541a41174105c92c0b9cceb6951d81
[ "Apache-2.0" ]
3
2017-06-30T18:09:44.000Z
2017-11-04T18:24:39.000Z
_modules/neutronv2/subnetpools.py
NDPF/salt-formula-neutron
758f3350fa541a41174105c92c0b9cceb6951d81
[ "Apache-2.0" ]
10
2017-02-25T21:39:01.000Z
2018-09-19T07:53:46.000Z
_modules/neutronv2/subnetpools.py
NDPF/salt-formula-neutron
758f3350fa541a41174105c92c0b9cceb6951d81
[ "Apache-2.0" ]
21
2017-02-01T18:12:51.000Z
2019-04-29T09:29:01.000Z
from neutronv2.common import send from neutronv2.arg_converter import get_by_name_or_uuid_multiple try: from urllib.parse import urlencode except ImportError: from urllib import urlencode
24.787234
64
0.663519
5e55b21d1ab9ce6033e3a2f3c3ccb88676bb11c5
1,727
py
Python
coursera/stanford-algo/min-cuts/mincut.py
akras14/cs-101
5a836482ae0cca21fea2d8b1ca4be43a6c5e9562
[ "MIT" ]
null
null
null
coursera/stanford-algo/min-cuts/mincut.py
akras14/cs-101
5a836482ae0cca21fea2d8b1ca4be43a6c5e9562
[ "MIT" ]
null
null
null
coursera/stanford-algo/min-cuts/mincut.py
akras14/cs-101
5a836482ae0cca21fea2d8b1ca4be43a6c5e9562
[ "MIT" ]
null
null
null
startData = [ [1,2,3], [2,1,3,4], [3,1,2,4], [4,3,2] ] import random import time from copy import deepcopy
26.166667
83
0.56051
5e55ca32c34d1c633e52da2ffb12b3099a0896f8
863
py
Python
class_inheritance/class/test_class.py
M1NH42/py
792616d08013b46011db8ed6b56e40b7d9859ae2
[ "MIT" ]
null
null
null
class_inheritance/class/test_class.py
M1NH42/py
792616d08013b46011db8ed6b56e40b7d9859ae2
[ "MIT" ]
null
null
null
class_inheritance/class/test_class.py
M1NH42/py
792616d08013b46011db8ed6b56e40b7d9859ae2
[ "MIT" ]
null
null
null
# Create a class called Animal that accepts two numbers as inputs and assigns # them respectively to two instance variables: arms and legs. Create an instance # method called limbs that, when called, returns the total number of limbs the animal has. # To the variable name spider, assign an instance of Animal that ha...
33.192308
98
0.723059
5e564de62423749988de8758a4e46d97633e7c42
4,084
py
Python
deepfakes-clasificador.py
sramirezaraya/deepfakes-detection
ed18b807958649027d224df077778a48d3e1655c
[ "Apache-2.0" ]
1
2021-08-02T00:41:20.000Z
2021-08-02T00:41:20.000Z
deepfakes-clasificador.py
sramirezaraya/deepfakes-detection
ed18b807958649027d224df077778a48d3e1655c
[ "Apache-2.0" ]
null
null
null
deepfakes-clasificador.py
sramirezaraya/deepfakes-detection
ed18b807958649027d224df077778a48d3e1655c
[ "Apache-2.0" ]
null
null
null
import tkinter from tkinter import * from PIL import Image, ImageTk from tkinter.filedialog import askopenfilename import cv2 from keras.models import load_model import numpy as np import keras import tensorflow import os from mtcnn import MTCNN ventana = tkinter.Tk() ventana.geometry("768x687") ventana....
32.15748
140
0.540157
5e581386b587edbff364859416ea64e6cd9f12b6
399
py
Python
crawlers/base.py
Saphyel/steamhelp
50ea7071fe43dc59f53b05d9e255ffe44c789f6c
[ "MIT" ]
null
null
null
crawlers/base.py
Saphyel/steamhelp
50ea7071fe43dc59f53b05d9e255ffe44c789f6c
[ "MIT" ]
1
2021-06-02T02:56:36.000Z
2021-06-02T02:56:36.000Z
crawlers/base.py
Saphyel/masterofgames
486fc330778b7f5d8150b5ba47fc6662bcb2ff06
[ "MIT" ]
null
null
null
__strict__ = True import httpx from core.config import Config
28.5
104
0.701754
5e58a177d8cfb0fa81f755e061bcf1af44838c07
13,224
py
Python
health_app/HealthMonitor/CreateTable/CreateTableUserdata.py
FridayGao97/Web_Dev_Flask
8580d645385055517fa007d6249d10f56a693782
[ "MIT" ]
null
null
null
health_app/HealthMonitor/CreateTable/CreateTableUserdata.py
FridayGao97/Web_Dev_Flask
8580d645385055517fa007d6249d10f56a693782
[ "MIT" ]
null
null
null
health_app/HealthMonitor/CreateTable/CreateTableUserdata.py
FridayGao97/Web_Dev_Flask
8580d645385055517fa007d6249d10f56a693782
[ "MIT" ]
null
null
null
# Run this script to create 'userdata' table in DynamoDB import boto3 if __name__ == '__main__': userdata_table = create_userdata_table() print("Table status:", userdata_table.table_status)
30.969555
70
0.299531
5e5937e25ed457e20ca066d35654ff4992167667
943
py
Python
tools/launch.py
niqbal996/HRNet-Semantic-Segmentation
ad9a80af61eb92e8ba6ef7bcefefe92b2f46bfc3
[ "MIT" ]
null
null
null
tools/launch.py
niqbal996/HRNet-Semantic-Segmentation
ad9a80af61eb92e8ba6ef7bcefefe92b2f46bfc3
[ "MIT" ]
null
null
null
tools/launch.py
niqbal996/HRNet-Semantic-Segmentation
ad9a80af61eb92e8ba6ef7bcefefe92b2f46bfc3
[ "MIT" ]
null
null
null
import os import sys import tempfile import torch import torch.distributed as dist import torch.nn as nn import torch.optim as optim import torch.multiprocessing as mp from torch.nn.parallel import DistributedDataParallel as DDP # On Windows platform, the torch.distributed package only # supports Gloo backend, FileSt...
26.942857
69
0.750795
5e5ab61913224cc7ea06a3d96f8c73df05bb03c2
1,925
py
Python
pythonaulas/Aula 15/Desafio 069.py
jrwarg/Estudos-Phyton
2207ec1ee9880501e12fbfecf7dfaaf38bb2ebca
[ "MIT" ]
null
null
null
pythonaulas/Aula 15/Desafio 069.py
jrwarg/Estudos-Phyton
2207ec1ee9880501e12fbfecf7dfaaf38bb2ebca
[ "MIT" ]
null
null
null
pythonaulas/Aula 15/Desafio 069.py
jrwarg/Estudos-Phyton
2207ec1ee9880501e12fbfecf7dfaaf38bb2ebca
[ "MIT" ]
null
null
null
""" DESAFIO 069: Anlise de Dados do Grupo Crie um programa que leia a idade e o sexo de vrias pessoas. A cada pessoa cadastrada, o programa dever perguntar se o usurio quer ou no continuar. No final, mostre: A) Quantas pessoas tm mais de 18 anos. B) Quantos homens foram cadastrados. C) Quantas mulheres tm menos de 20...
27.5
87
0.603636
5e5babce487a774c4669c2b615801033f39b7cba
1,941
py
Python
ticker/scores_ticker.py
dspec12/LED-Sports-Score-Ticker
41cd2fcb5eebf6a43151f5f06067b44c60462508
[ "MIT" ]
1
2020-09-17T14:37:47.000Z
2020-09-17T14:37:47.000Z
ticker/scores_ticker.py
dspec12/LED-Sports-Score-Ticker
41cd2fcb5eebf6a43151f5f06067b44c60462508
[ "MIT" ]
1
2020-12-22T01:59:55.000Z
2020-12-22T01:59:55.000Z
ticker/scores_ticker.py
dspec12/led-sports-score-ticker
41cd2fcb5eebf6a43151f5f06067b44c60462508
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os import time import requests from rgbmatrix import RGBMatrix, RGBMatrixOptions, graphics # Configuration for the matrix options = RGBMatrixOptions() options.scan_mode = 0 options.pwm_lsb_nanoseconds = 130 options.pwm_bits = 11 options.show_refresh_rate = 0 options.gpio_slowd...
25.88
88
0.667697
5e5bd1f2581c4fc1b5ee0568b2671c3f8232e0f1
2,332
py
Python
post.py
DMistry13/IPT-Sparkler
e1d4411866f736190362c63170bdfbebf0c0f730
[ "CC0-1.0" ]
null
null
null
post.py
DMistry13/IPT-Sparkler
e1d4411866f736190362c63170bdfbebf0c0f730
[ "CC0-1.0" ]
null
null
null
post.py
DMistry13/IPT-Sparkler
e1d4411866f736190362c63170bdfbebf0c0f730
[ "CC0-1.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import pandas as pd
37.015873
88
0.566038
5e5c585bbd132c00feba3669f5098a05809df38e
357
py
Python
django_amis_render/migrations/0003_remove_amisrenderlist_temp_json_url_name.py
Jiangshan00001/django_amis_render
f84d288d141853f0c0c0124889db47ef18f6ef5d
[ "MIT" ]
null
null
null
django_amis_render/migrations/0003_remove_amisrenderlist_temp_json_url_name.py
Jiangshan00001/django_amis_render
f84d288d141853f0c0c0124889db47ef18f6ef5d
[ "MIT" ]
null
null
null
django_amis_render/migrations/0003_remove_amisrenderlist_temp_json_url_name.py
Jiangshan00001/django_amis_render
f84d288d141853f0c0c0124889db47ef18f6ef5d
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-11-15 07:55 from django.db import migrations
19.833333
58
0.627451
5e5cac362fd7becca5b4e9afc47ee9bbe359228c
3,623
py
Python
Asura/options.py
ChunhuiWang-China/Asura
751b3e7b7e69b612092dc39f60a1289ccd2fdacf
[ "Apache-2.0" ]
null
null
null
Asura/options.py
ChunhuiWang-China/Asura
751b3e7b7e69b612092dc39f60a1289ccd2fdacf
[ "Apache-2.0" ]
null
null
null
Asura/options.py
ChunhuiWang-China/Asura
751b3e7b7e69b612092dc39f60a1289ccd2fdacf
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (C) 2020 ATHENA AUTHORS; Chunhui Wang # # 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 app...
55.738462
113
0.648358
5e5cca2628bc99a274fb6f1ffb0c638e6840ca20
696
py
Python
app/db.py
SynapseFI/misc.slackbot
98ea74d04a51ead64390436e1f6e0c21185b61b0
[ "MIT" ]
4
2016-11-30T04:11:18.000Z
2017-10-03T00:19:00.000Z
app/db.py
SynapseFI/misc.slackbot
98ea74d04a51ead64390436e1f6e0c21185b61b0
[ "MIT" ]
null
null
null
app/db.py
SynapseFI/misc.slackbot
98ea74d04a51ead64390436e1f6e0c21185b61b0
[ "MIT" ]
2
2017-10-02T23:39:34.000Z
2020-12-13T12:19:46.000Z
"""Database initialization settings and logic.""" from flask_sqlalchemy import SQLAlchemy def connect_db(**kwargs): """Link the app database to a postgres db with the supplied info.""" db_uri = 'postgresql://{0}:{1}@{2}:{3}/{4}'.format(kwargs.get('username'), ...
43.5
78
0.46408
5e5dd83fe571090a018d343c8b991cd1cf2ea8dd
9,178
py
Python
ASCIIkull.py
Tom-Li1/Others
0aab564e1ad6df21f3132f6872521565a769a7ba
[ "MIT" ]
null
null
null
ASCIIkull.py
Tom-Li1/Others
0aab564e1ad6df21f3132f6872521565a769a7ba
[ "MIT" ]
null
null
null
ASCIIkull.py
Tom-Li1/Others
0aab564e1ad6df21f3132f6872521565a769a7ba
[ "MIT" ]
null
null
null
import os import time from winsound import Beep r""" string = r''' _,.-------.,_ ,;~' '~;, ,; ;, ...
44.338164
104
0.105796
5e5f0a4fe7e7e73e2f32d387064e5e6f466c4d4a
678
py
Python
hard-gists/540f615dd9d54de47dc52b0ca60522c1/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/540f615dd9d54de47dc52b0ca60522c1/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/540f615dd9d54de47dc52b0ca60522c1/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import idc import idaapi import idautils if __name__ == '__main__': rename_sub_functions(idc.ScreenEA(), "test_")
26.076923
52
0.60177
5e612b9caed715a208be676dea31ebb9476b48db
1,785
py
Python
python-lib/dku_utils.py
dataiku/dss-plugin-api-connect
805e14dd9cd41e889219cacd5de124b2c9488cfc
[ "Apache-2.0" ]
2
2021-05-21T19:16:42.000Z
2021-12-10T08:02:30.000Z
python-lib/dku_utils.py
dataiku/dss-plugin-api-connect
805e14dd9cd41e889219cacd5de124b2c9488cfc
[ "Apache-2.0" ]
10
2021-05-25T00:03:28.000Z
2022-03-29T15:01:41.000Z
python-lib/dku_utils.py
dataiku/dss-plugin-api-connect
805e14dd9cd41e889219cacd5de124b2c9488cfc
[ "Apache-2.0" ]
2
2021-05-28T10:41:35.000Z
2022-02-04T08:14:47.000Z
import json import copy
30.254237
175
0.620728
5e612c811f3062b1a02b66228faab15470efaa06
3,673
py
Python
agents/rule_based/run_rulebased_agent.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
17
2020-09-09T02:32:14.000Z
2021-10-01T09:46:40.000Z
agents/rule_based/run_rulebased_agent.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
2
2020-12-02T09:10:03.000Z
2020-12-02T20:31:05.000Z
agents/rule_based/run_rulebased_agent.py
didi/MEEP
eb668fe598e40d244f204363d360babbe1fe0dc2
[ "Apache-2.0" ]
3
2020-10-10T09:14:43.000Z
2022-01-18T02:36:31.000Z
'''Tool to see how well this agent performs on training data''' import os import sys import json from glob import glob from keys import keys sys.path.extend([ # for loading main backend stuff os.path.join(sys.path[0], '../../gui/backend'), os.path.join(sys.path[0], '../..') # for loading agents, apis ]) ...
33.390909
87
0.589164
5e63f1afa6090892fce85d420df2bc00fa63443f
198
py
Python
src/jk_logging/impl/__init__.py
jkpubsrc/python-module-jk-logging
2f1bce33defc0bb1fbb6040cbb02a27c6c4847ba
[ "Apache-1.1" ]
null
null
null
src/jk_logging/impl/__init__.py
jkpubsrc/python-module-jk-logging
2f1bce33defc0bb1fbb6040cbb02a27c6c4847ba
[ "Apache-1.1" ]
null
null
null
src/jk_logging/impl/__init__.py
jkpubsrc/python-module-jk-logging
2f1bce33defc0bb1fbb6040cbb02a27c6c4847ba
[ "Apache-1.1" ]
null
null
null
__version__ = "0.2021.12.14" from .IDCounter import IDCounter from .createLogMsgTypeStrMap import createLogMsgTypeStrMap from .JSONDict import JSONDict from .ReadOnlyDict import ReadOnlyDict
16.5
58
0.818182
5e647805b46cfd536f541c31a15bb537e5294f3d
334
py
Python
wave/transformold/eq/filter/vec.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
wave/transformold/eq/filter/vec.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
wave/transformold/eq/filter/vec.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
""" Base Vector class (wrapper around np). """ from __future__ import annotations from typing import Sequence, TypeVar import numpy as np from ..base import Frequency T = TypeVar("T") usize = int
17.578947
47
0.718563
5e64a87dd93b7d21172bf0a288a05134654a4e71
28,290
py
Python
gui.py
gk2803/project01_ga
856f19dea73e78b2dd21efcfa7b88dba541542a5
[ "MIT" ]
null
null
null
gui.py
gk2803/project01_ga
856f19dea73e78b2dd21efcfa7b88dba541542a5
[ "MIT" ]
null
null
null
gui.py
gk2803/project01_ga
856f19dea73e78b2dd21efcfa7b88dba541542a5
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import END from tkinter import ttk import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import ( FigureCanvasTkAgg, ) from gnt import * from matplotlib.ticker import MaxNLocator import threading main()
35.540201
146
0.471227
5e64ae25a77784fd4b7b20e3342337ee39e59146
1,027
py
Python
WordEmbedding.py
pratikasarkar/nlp
275c80ab10f6dc4b4553bbcc5e5c8a4d00ff9fea
[ "Unlicense" ]
null
null
null
WordEmbedding.py
pratikasarkar/nlp
275c80ab10f6dc4b4553bbcc5e5c8a4d00ff9fea
[ "Unlicense" ]
null
null
null
WordEmbedding.py
pratikasarkar/nlp
275c80ab10f6dc4b4553bbcc5e5c8a4d00ff9fea
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Feb 10 14:59:45 2021 @author: ASUS """ # Word Embedding Techniques using Embedding Layer in Keras from tensorflow.keras.preprocessing.text import one_hot sent=[ 'the glass of milk', 'the glass of juice', 'the cup of tea', 'I am a good boy', 'I am a good...
22.822222
76
0.720545
5e66acc250bc25deceb509ba5cc57131ce35b37b
6,262
py
Python
scripts/adage_pancancer.py
Commentator-2/tybalt
cc172d4118ef22d130d7cbfe0159af5e810450f0
[ "BSD-3-Clause" ]
141
2017-08-16T22:52:48.000Z
2022-02-01T21:26:51.000Z
scripts/adage_pancancer.py
Commentator-2/tybalt
cc172d4118ef22d130d7cbfe0159af5e810450f0
[ "BSD-3-Clause" ]
73
2017-08-10T13:18:49.000Z
2022-01-10T03:07:32.000Z
scripts/adage_pancancer.py
Commentator-2/tybalt
cc172d4118ef22d130d7cbfe0159af5e810450f0
[ "BSD-3-Clause" ]
60
2017-11-18T13:18:52.000Z
2022-03-12T20:52:58.000Z
""" Gregory Way 2017 Variational Autoencoder - Pan Cancer scripts/adage_pancancer.py Comparing a VAE learned features to ADAGE features. Use this script within the context of a parameter sweep to compare performance across a grid of hyper parameters. Usage: Run in command line with required command arguments: ...
37.497006
79
0.6565
5e66c35eab5b6d8658cea2e23d962d4c0b9705ad
6,770
py
Python
python/cm/checker.py
arenadata/adcm
a499caa30adc2a53e7b3f46c96a865f9e4079e4e
[ "Apache-2.0" ]
16
2019-11-28T18:05:21.000Z
2021-12-08T18:09:18.000Z
python/cm/checker.py
arenadata/adcm
a499caa30adc2a53e7b3f46c96a865f9e4079e4e
[ "Apache-2.0" ]
1,127
2019-11-29T08:57:25.000Z
2022-03-31T20:21:32.000Z
python/cm/checker.py
arenadata/adcm
a499caa30adc2a53e7b3f46c96a865f9e4079e4e
[ "Apache-2.0" ]
10
2019-11-28T18:05:06.000Z
2022-01-13T06:16:40.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.631579
96
0.645347
5e67367986a944e9128e9626aafdf7669e04ea3c
13,469
py
Python
StrongNuke_Official.py
SpinachIsDelicious/StrongNuke-Discord-Server-Nuker
cdc8ff0fee6db6c3b13d99edf24dd914cb052786
[ "MIT" ]
null
null
null
StrongNuke_Official.py
SpinachIsDelicious/StrongNuke-Discord-Server-Nuker
cdc8ff0fee6db6c3b13d99edf24dd914cb052786
[ "MIT" ]
null
null
null
StrongNuke_Official.py
SpinachIsDelicious/StrongNuke-Discord-Server-Nuker
cdc8ff0fee6db6c3b13d99edf24dd914cb052786
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import random import subprocess import asyncio from discord import Permissions import os import threading # run code concurrently from pyperclip import copy # we want to use multiprocessing instead of threading since processes are more efficient import multipro...
33.588529
345
0.604796
5e6811e0ae01e77d5e994ad23edafcd126d59033
1,362
py
Python
valhalla/filters/web.py
movermeyer/valhalla
b08d7a4a94fd8d85a6f5ea86200ec60ef4525e3d
[ "MIT" ]
null
null
null
valhalla/filters/web.py
movermeyer/valhalla
b08d7a4a94fd8d85a6f5ea86200ec60ef4525e3d
[ "MIT" ]
null
null
null
valhalla/filters/web.py
movermeyer/valhalla
b08d7a4a94fd8d85a6f5ea86200ec60ef4525e3d
[ "MIT" ]
2
2016-09-01T09:20:01.000Z
2018-03-05T17:22:37.000Z
# -*- coding: utf-8 -*- import re from . import strings from .. import ValidationError _regexes = { 'email_address': re.compile(r'^[a-z0-9\._\+%-]+@[a-z0-9\.-]+(\.[A-Z]{2,4})+$', re.IGNORECASE), 'ipv4': re.compile(r'^([0-9]{1,3}\.){3}[0-9]{1,3}$'), 'url': re.compile(r'') } # debating breaking ALL inter-module de...
32.428571
95
0.68649
5e68681a8b4c1d22d57880c0f3f4450cada8817d
7,323
py
Python
vorpy/symplectic_integration/separable_hamiltonian.py
vdods/vorpy
68b6525ae43d99f451cf85ce254ffb0311521320
[ "MIT" ]
3
2017-07-08T14:41:46.000Z
2020-02-11T17:33:57.000Z
vorpy/symplectic_integration/separable_hamiltonian.py
vdods/vorpy
68b6525ae43d99f451cf85ce254ffb0311521320
[ "MIT" ]
null
null
null
vorpy/symplectic_integration/separable_hamiltonian.py
vdods/vorpy
68b6525ae43d99f451cf85ce254ffb0311521320
[ "MIT" ]
null
null
null
""" Implements a family of separable Hamiltonian symplectic integrators, where the family is parameterized by the coefficients which define the weights for each update step. A separable Hamiltonian has the form H(q,p) = K(p) + V(q) where K and V are prototypically the kinetic and potential energy functions, resp...
44.381818
150
0.69548
5e6a2c56814aadb26e4f2206e43f1a706b3f3d90
310
py
Python
ReceiveSms.py
ozekisms/python-send-sms-http-rest-ozeki
c7cc586ce42c3f75b31c9575f7eefd7f40da997a
[ "MIT" ]
null
null
null
ReceiveSms.py
ozekisms/python-send-sms-http-rest-ozeki
c7cc586ce42c3f75b31c9575f7eefd7f40da997a
[ "MIT" ]
null
null
null
ReceiveSms.py
ozekisms/python-send-sms-http-rest-ozeki
c7cc586ce42c3f75b31c9575f7eefd7f40da997a
[ "MIT" ]
null
null
null
from ozekilibsrest import Configuration, MessageApi configuration = Configuration( username="http_user", password="qwe123", api_url="http://127.0.0.1:9509/api" ) api = MessageApi(configuration) results = api.download_incoming() print(results) for result in results.messages: print(result)
18.235294
51
0.73871
5e6afe6c75dc3da2ab00b95273ea01c0fb3c79bc
882
py
Python
python/add_user.py
d2iq-shadowbq/FreeIPA-Configuration
be8ffba8ae9f316e8f4126a6d64a04f92df91d47
[ "MIT" ]
1
2020-05-13T16:19:53.000Z
2020-05-13T16:19:53.000Z
python/add_user.py
d2iq-shadowbq/FreeIPA-Configuration
be8ffba8ae9f316e8f4126a6d64a04f92df91d47
[ "MIT" ]
null
null
null
python/add_user.py
d2iq-shadowbq/FreeIPA-Configuration
be8ffba8ae9f316e8f4126a6d64a04f92df91d47
[ "MIT" ]
null
null
null
from python_freeipa import ClientMeta CommonTestPassword = 'Secret123' client = ClientMeta('ipa.demo1.freeipa.org') client.login('admin', CommonTestPassword) Userlist = ['alice', 'bob', 'dave', 'frank'] # Reset, Add Users, and Set Manager for user in UserList: client.user_del(user, o_continue=True) client.u...
27.5625
150
0.735828
5e6bf6742a02077e6b21992401210c8cc43b72cf
11,270
py
Python
IRIS_data_download/IRIS_download_support/obspy/signal/konnoohmachismoothing.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/signal/konnoohmachismoothing.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/signal/konnoohmachismoothing.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------ # Filename: konnoohmachismoothing.py # Purpose: Small module to smooth spectra with the so called Konno & Ohmachi # method. # Author: Lion Krischer # Email: krischer@geophysik.uni-muenchen.de # License: GPLv2 #...
43.682171
79
0.670541
5e6c3f82af976559e939a2459be138b4fcfdc18c
2,515
py
Python
igmtools/plot/special.py
cwfinn/igmtools
6e14973fd1e69d5e7bd7c40f93ffe11e2cd41990
[ "BSD-3-Clause" ]
null
null
null
igmtools/plot/special.py
cwfinn/igmtools
6e14973fd1e69d5e7bd7c40f93ffe11e2cd41990
[ "BSD-3-Clause" ]
null
null
null
igmtools/plot/special.py
cwfinn/igmtools
6e14973fd1e69d5e7bd7c40f93ffe11e2cd41990
[ "BSD-3-Clause" ]
1
2019-11-19T04:45:38.000Z
2019-11-19T04:45:38.000Z
""" Specialist plots. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from .general import Plot from matplotlib.transforms import Affine2D from matplotlib.projections import PolarAxes from mpl_toolkits.axisartist.grid_finder import MaxNLocator from m...
32.24359
79
0.668787
5e6dc0ca5c7ca67c2ac3d9248b5244fdd0c19cc9
431
py
Python
ChaosMonkey/notification.py
RedXIV2/TUD-ChaosMonkey
d73d5ed13d0fc353d8204f7abecd0344c4c1439d
[ "MIT" ]
1
2019-03-21T13:46:25.000Z
2019-03-21T13:46:25.000Z
ChaosMonkey/notification.py
RedXIV2/TUD-ChaosMonkey
d73d5ed13d0fc353d8204f7abecd0344c4c1439d
[ "MIT" ]
null
null
null
ChaosMonkey/notification.py
RedXIV2/TUD-ChaosMonkey
d73d5ed13d0fc353d8204f7abecd0344c4c1439d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Author: Dave Hill # This code will trigger a SNS notification import boto3 # CONSTANTS TARGET_ARN = "arn:aws:sns:eu-west-1:924169754118:chaosMonkey-notifications"
21.55
75
0.714617
5e6dcc438f10484d3e58b8ee2d027defeb296a0a
343
py
Python
yepes/contrib/datamigrations/__init__.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
yepes/contrib/datamigrations/__init__.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
yepes/contrib/datamigrations/__init__.py
samuelmaudo/yepes
1ef9a42d4eaa70d9b3e6e7fa519396c1e1174fcb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals from yepes.contrib.datamigrations.fields import * from yepes.contrib.datamigrations.data_migrations import ( DataMigration, BaseModelMigration, ModelMigration, QuerySetExportation, ) default_app_config = 'yepes.contrib.datamigrations.apps...
24.5
77
0.790087
5e6e03ad5146f8d52146de51d9181e23329b8bae
2,564
py
Python
resilience/constraints/HFLeverageConstraint.py
vishalbelsare/resilience
596a9b8224fc6168bd6ee5718ea6c57425b7f273
[ "Apache-2.0" ]
7
2020-04-04T20:55:21.000Z
2021-11-15T10:42:44.000Z
resilience/constraints/HFLeverageConstraint.py
vishalbelsare/resilience
596a9b8224fc6168bd6ee5718ea6c57425b7f273
[ "Apache-2.0" ]
1
2020-06-19T04:26:35.000Z
2020-09-25T04:50:00.000Z
resilience/constraints/HFLeverageConstraint.py
vishalbelsare/resilience
596a9b8224fc6168bd6ee5718ea6c57425b7f273
[ "Apache-2.0" ]
4
2020-04-16T19:10:33.000Z
2020-09-24T17:54:21.000Z
import numpy as np from ..contracts import TradableAsset, AssetCollateral, Repo, Other
38.268657
113
0.656396
5e6e6f169fa35ff46472321863b6b4d79335d9a8
23,977
py
Python
python/vineyard/core/codegen/parsing.py
septicmk/v6d
3c64e0a324adfe71feb4bfda51d0e55724bfde8d
[ "Apache-2.0" ]
null
null
null
python/vineyard/core/codegen/parsing.py
septicmk/v6d
3c64e0a324adfe71feb4bfda51d0e55724bfde8d
[ "Apache-2.0" ]
null
null
null
python/vineyard/core/codegen/parsing.py
septicmk/v6d
3c64e0a324adfe71feb4bfda51d0e55724bfde8d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020-2021 Alibaba Group Holding Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
30.938065
88
0.589356
5e6f59b3583ebc06871f63cd872b675f08d814d4
2,482
py
Python
agscaps/layers/attention.py
clementpoiret/3D-AGSCaps
475eb1915bc1425cebbd0bec36e9096c9c2cb53c
[ "MIT" ]
1
2021-08-30T14:46:42.000Z
2021-08-30T14:46:42.000Z
agscaps/layers/attention.py
clementpoiret/3D-AGSCaps
475eb1915bc1425cebbd0bec36e9096c9c2cb53c
[ "MIT" ]
null
null
null
agscaps/layers/attention.py
clementpoiret/3D-AGSCaps
475eb1915bc1425cebbd0bec36e9096c9c2cb53c
[ "MIT" ]
null
null
null
from einops import rearrange from torch import nn from .switchnorm import SwitchNorm3d
26.978261
67
0.487107
5e73d1d5556ab04d773f69a0f3d3e8c3476ff40d
2,199
py
Python
alphamind/data/engines/utilities.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
1
2020-05-18T20:57:25.000Z
2020-05-18T20:57:25.000Z
alphamind/data/engines/utilities.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
null
null
null
alphamind/data/engines/utilities.py
atefar2/alpha-mind
66d839affb5d81d31d5cac7e5e224278e3f99a8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 2017-12-25 @author: cheng.li """ from typing import Dict from typing import Iterable from alphamind.data.dbmodel.models import Categories from alphamind.data.dbmodel.models import Market from alphamind.data.dbmodel.models import RiskCovDay from alphamind.data.dbmodel.models imp...
30.971831
84
0.701228
5e765dd615cf6bdf3b7653fede443774c268c114
5,307
py
Python
part7/python/genptdot.py
fazillatheef/lsbasi
07e1a14516156a21ebe2d82e0bae4bba5ad73dd6
[ "MIT" ]
1,682
2015-06-15T11:42:03.000Z
2022-03-29T12:40:35.000Z
part7/python/genptdot.py
fazillatheef/lsbasi
07e1a14516156a21ebe2d82e0bae4bba5ad73dd6
[ "MIT" ]
10
2017-06-22T11:35:21.000Z
2022-02-26T17:37:42.000Z
part7/python/genptdot.py
fazillatheef/lsbasi
07e1a14516156a21ebe2d82e0bae4bba5ad73dd6
[ "MIT" ]
493
2015-07-05T09:05:09.000Z
2022-03-28T03:33:33.000Z
############################################################################### # # # Parse Tree visualizer # # # ...
28.079365
79
0.502355
5e79c30cf8cd63253e284a2f0c81cf1024810ba3
1,229
py
Python
Programming_in_Python/open-multiple-links-with-python/main.py
CodeWithEmad/Mini_Python_Projects
4fd20328d7bd520fa007f21fa2602c8f40fd6cb1
[ "MIT" ]
2
2021-10-01T05:04:30.000Z
2021-10-01T05:06:21.000Z
Programming_in_Python/open-multiple-links-with-python/main.py
CodeWithEmad/Mini_Python_Projects
4fd20328d7bd520fa007f21fa2602c8f40fd6cb1
[ "MIT" ]
1
2021-10-09T18:22:23.000Z
2021-10-09T23:00:31.000Z
Programming_in_Python/open-multiple-links-with-python/main.py
CodeWithEmad/Mini_Python_Projects
4fd20328d7bd520fa007f21fa2602c8f40fd6cb1
[ "MIT" ]
null
null
null
import selenium import time from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDri...
29.97561
83
0.728234
5e7a0058fbea491f699fa61765f3d5eee1324b52
2,228
py
Python
scripts/span_analysis.py
bruhad-dave/Contextualize-SNVs
0375ac69c0812e3bde079911e42c3b57cb7fe63d
[ "MIT" ]
null
null
null
scripts/span_analysis.py
bruhad-dave/Contextualize-SNVs
0375ac69c0812e3bde079911e42c3b57cb7fe63d
[ "MIT" ]
null
null
null
scripts/span_analysis.py
bruhad-dave/Contextualize-SNVs
0375ac69c0812e3bde079911e42c3b57cb7fe63d
[ "MIT" ]
null
null
null
## importing import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt import argparse import os ## parsing arguments parser = argparse.ArgumentParser() parser.add_argument("-i", "--infile", help="Input file containing SNV data") parser.add_argument("-s", "--sample", help="The name o...
30.108108
133
0.694794
5e7bf95ea5c820bd05ddb3b99a7d3a87403fd019
3,877
py
Python
environment.py
dldhk97/UtilityBot
e49e70c27c824506cac4b146f43b421606d02ec5
[ "MIT" ]
null
null
null
environment.py
dldhk97/UtilityBot
e49e70c27c824506cac4b146f43b421606d02ec5
[ "MIT" ]
null
null
null
environment.py
dldhk97/UtilityBot
e49e70c27c824506cac4b146f43b421606d02ec5
[ "MIT" ]
null
null
null
import os import sys from dotenv import load_dotenv # TODO : , win32 . # TODO : 3.5 ~ 3.8? # get env arg from .env file
33.136752
111
0.686613
5e7c1a48e417c87501307d68a76faac7180ba194
5,973
py
Python
tests/test_linalg.py
jakelishman/floq
d0c83b239d0c9631182cea5d69c901793d7c67c6
[ "MIT" ]
2
2021-02-01T10:43:05.000Z
2021-08-10T14:51:45.000Z
tests/test_linalg.py
jakelishman/floq
d0c83b239d0c9631182cea5d69c901793d7c67c6
[ "MIT" ]
9
2018-09-10T10:46:04.000Z
2018-10-10T16:48:26.000Z
tests/test_linalg.py
jakelishman/floq
d0c83b239d0c9631182cea5d69c901793d7c67c6
[ "MIT" ]
null
null
null
from unittest import TestCase from tests.assertions import CustomAssertions import numpy as np import floq u1 = np.array([[-0.1756 + 0.499j, -0.673 + 0.3477j, 0.0341 + 0.381j], [0.4613 + 0.3206j, 0.176 - 0.5432j, 0.0996 + 0.5903j], [0.5754 - 0.2709j, -0.2611 + 0.1789j, -0.7014 + 0.0582j...
47.404762
860
0.637536
5e7c7bbf20a84fbc8017daf22376e9600de397fa
9,455
py
Python
scripts/retrieve_image_cutouts.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
1
2018-10-31T03:49:39.000Z
2018-10-31T03:49:39.000Z
scripts/retrieve_image_cutouts.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
5
2017-11-18T01:45:50.000Z
2020-05-30T12:26:50.000Z
scripts/retrieve_image_cutouts.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
1
2019-10-14T08:44:40.000Z
2019-10-14T08:44:40.000Z
#!python import os.path import numpy as NP import yaml, argparse, warnings from astroquery.skyview import SkyView from astropy.coordinates import SkyCoord from astropy import units as U from astropy.io import ascii, fits from astropy.table import Table import astroutils astroutils_path = astroutils.__path__[0]+'/' i...
51.666667
230
0.579059
5e7c984aa9af7370242c6d3b221d93fefb668b20
317
py
Python
wsi/model/__init__.py
mingrui/NCRF
d3dcb50739a9eb8621d42ea98b7d0496afe430ca
[ "Apache-2.0" ]
734
2018-06-18T17:15:53.000Z
2022-03-28T08:51:14.000Z
wsi/model/__init__.py
mingrui/NCRF
d3dcb50739a9eb8621d42ea98b7d0496afe430ca
[ "Apache-2.0" ]
59
2018-06-22T04:21:27.000Z
2022-03-11T23:21:10.000Z
wsi/model/__init__.py
mingrui/NCRF
d3dcb50739a9eb8621d42ea98b7d0496afe430ca
[ "Apache-2.0" ]
197
2018-06-18T17:15:10.000Z
2022-03-04T03:36:48.000Z
import numpy as np np.random.seed(0) from wsi.model.resnet import (resnet18, resnet34, resnet50, resnet101, resnet152) MODELS = {'resnet18': resnet18, 'resnet34': resnet34, 'resnet50': resnet50, 'resnet101': resnet101, 'resnet152': resnet152}
22.642857
70
0.580442
5e7f80c48ea0ad3af7aa369fcecffd5a6eb1a3ba
2,147
py
Python
reid/utils/meters.py
ZoRoronoa/Camera-Aware-Proxy
352f900bbae330f18c2bfe2b3f2516fb4e31adea
[ "Apache-2.0" ]
37
2021-02-05T11:49:17.000Z
2022-03-13T15:42:40.000Z
reid/utils/meters.py
ZoRoronoa/Camera-Aware-Proxy
352f900bbae330f18c2bfe2b3f2516fb4e31adea
[ "Apache-2.0" ]
7
2021-03-30T01:33:40.000Z
2022-03-24T07:54:33.000Z
reid/utils/meters.py
ZoRoronoa/Camera-Aware-Proxy
352f900bbae330f18c2bfe2b3f2516fb4e31adea
[ "Apache-2.0" ]
9
2021-03-06T02:43:55.000Z
2022-03-26T07:32:19.000Z
from __future__ import absolute_import import torch
23.593407
96
0.509548
5e7fe42e15d58a7e1ef059e38eb976549da0eb6f
12,940
py
Python
graph.py
ARM-software/DeepFreeze
57ca195ecac37bbacf1a17d62bd22d355ee8bcb6
[ "MIT" ]
35
2019-02-11T21:00:09.000Z
2022-03-26T05:33:45.000Z
graph.py
patrickthomashansen/DeepFreeze
57ca195ecac37bbacf1a17d62bd22d355ee8bcb6
[ "MIT" ]
2
2019-10-10T10:06:35.000Z
2021-09-16T18:07:22.000Z
graph.py
patrickthomashansen/DeepFreeze
57ca195ecac37bbacf1a17d62bd22d355ee8bcb6
[ "MIT" ]
18
2019-02-12T16:11:09.000Z
2022-02-12T18:04:52.000Z
#!/usr/bin/env python """ Author: Patrick Hansen Project: FixyNN Defines Graph and Layer classes used for intermediate representation """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf import json DEPTHWISE_SEPA...
31.715686
87
0.708346
5e80269c55cc32cafd338f05fdf62d0ccbc5eba4
2,059
py
Python
numecon/course_macro1/asad.py
minjiedeng/NumEcon
ff021e765344db93eed7ff0002dbdf3e50e528e9
[ "MIT" ]
1
2021-10-03T12:23:34.000Z
2021-10-03T12:23:34.000Z
numecon/course_macro1/asad.py
minjiedeng/NumEcon
ff021e765344db93eed7ff0002dbdf3e50e528e9
[ "MIT" ]
null
null
null
numecon/course_macro1/asad.py
minjiedeng/NumEcon
ff021e765344db93eed7ff0002dbdf3e50e528e9
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import ipywidgets as widgets
30.731343
121
0.599806
5e809f6f5b29b93323467c6edb423874635485e0
10,769
py
Python
main.py
kik0908/TelegramBotAPI-Yandex
d3d44bb483a44f2d0c830ad7835ab3eb50dd8ceb
[ "MIT" ]
5
2018-04-07T23:50:50.000Z
2019-08-22T06:29:43.000Z
main.py
kik0908/TelegramBotAPI-Yandex
d3d44bb483a44f2d0c830ad7835ab3eb50dd8ceb
[ "MIT" ]
1
2018-04-11T18:40:45.000Z
2018-04-11T18:40:45.000Z
main.py
kik0908/TelegramBotAPI-Yandex
d3d44bb483a44f2d0c830ad7835ab3eb50dd8ceb
[ "MIT" ]
1
2019-11-23T20:34:07.000Z
2019-11-23T20:34:07.000Z
from random import choice, shuffle from itertools import cycle import pymorphy2 from telegram.ext import Updater, MessageHandler, Filters, CallbackQueryHandler, CommandHandler, ConversationHandler from telegram import ReplyKeyboardMarkup, InlineKeyboardButton, InlineKeyboardMarkup from geocoder import search, get_ll_...
39.885185
139
0.594391
5e80ecd4f53411059fd066cc8750756f043c0b89
511
py
Python
marketing/migrations/0016_auto_20201112_1614.py
sauravpanda/Django-CRM
c6b8cde02c9cf3d3f30f4e05b825f77d00734e87
[ "MIT" ]
null
null
null
marketing/migrations/0016_auto_20201112_1614.py
sauravpanda/Django-CRM
c6b8cde02c9cf3d3f30f4e05b825f77d00734e87
[ "MIT" ]
null
null
null
marketing/migrations/0016_auto_20201112_1614.py
sauravpanda/Django-CRM
c6b8cde02c9cf3d3f30f4e05b825f77d00734e87
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-11-12 10:44 from django.db import migrations
21.291667
49
0.563601
5e8562b359ddfac56302ad4265ef21d77fb3b401
4,804
py
Python
make_thumbnails.py
ceesem/text_image_thumbnails
79d6739861547b26d6c845d3d9f2c27c5709a5e6
[ "MIT" ]
null
null
null
make_thumbnails.py
ceesem/text_image_thumbnails
79d6739861547b26d6c845d3d9f2c27c5709a5e6
[ "MIT" ]
null
null
null
make_thumbnails.py
ceesem/text_image_thumbnails
79d6739861547b26d6c845d3d9f2c27c5709a5e6
[ "MIT" ]
null
null
null
from src.thumbnail_maker import thumbnail_image, simple_filename, make_author_string import pandas as pd import click import datetime import os import tqdm import re import time from multiwrapper import multiprocessing_utils as mu TITLE_COLUMN = "title" ABSTRACT_COLUMN = "abstract" AUTHOR_COLUMN_CONTAINS = "author" TW...
33.361111
96
0.640716
5e863cabfcc78adbadb9b8afecff13f3686d8348
681
py
Python
regcore/tests/index_tests.py
cfpb/regulations-core
bb73956ab10d175fa19051573e3a279956c36bf9
[ "CC0-1.0" ]
8
2015-04-22T17:48:22.000Z
2019-08-17T06:14:23.000Z
regcore/tests/index_tests.py
DalavanCloud/regulations-core
bb73956ab10d175fa19051573e3a279956c36bf9
[ "CC0-1.0" ]
27
2015-06-02T15:40:23.000Z
2018-07-31T14:50:57.000Z
regcore/tests/index_tests.py
DalavanCloud/regulations-core
bb73956ab10d175fa19051573e3a279956c36bf9
[ "CC0-1.0" ]
39
2015-01-26T16:24:40.000Z
2021-02-20T10:51:13.000Z
from regcore.index import * from mock import patch from pyelasticsearch.exceptions import IndexAlreadyExistsError from unittest import TestCase
32.428571
76
0.748899
5e886667e495d30bf864d224193f954c5d8267bd
1,145
py
Python
returns/pointfree/cond.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
returns/pointfree/cond.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
returns/pointfree/cond.py
thecoblack/returns
ad76d4c5282ce53213cad57dc550e5b4565e2b48
[ "BSD-2-Clause" ]
null
null
null
from typing import Callable, Type, TypeVar from returns.interfaces.specific.result import ResultLikeN from returns.methods.cond import internal_cond from returns.primitives.hkt import Kind2, Kinded, kinded _ValueType = TypeVar('_ValueType') _ErrorType = TypeVar('_ErrorType') _ResultKind = TypeVar('_ResultKind', boun...
30.131579
80
0.69345
5e88d2b6f941cc8b5054e654c852f3aeea9d95eb
2,111
py
Python
concat/tests/test_example_programs.py
jmanuel1/concat
b8a982f0b07c4af4a8d30c8fab927a07a4068232
[ "MIT" ]
5
2020-11-27T23:34:29.000Z
2022-03-08T16:37:19.000Z
concat/tests/test_example_programs.py
jmanuel1/concat
b8a982f0b07c4af4a8d30c8fab927a07a4068232
[ "MIT" ]
1
2020-06-03T22:43:36.000Z
2020-06-03T22:45:42.000Z
concat/tests/test_example_programs.py
jmanuel1/concat
b8a982f0b07c4af4a8d30c8fab927a07a4068232
[ "MIT" ]
null
null
null
""" Example tests: make sure all examples work. NOTE: This must be run from project root! """ from scripttest import TestFileEnvironment # type: ignore import unittest import os import sys import os.path env = TestFileEnvironment('./test-output', cwd='.') example_dir = './concat/examples' examples = [ os.path.j...
31.507463
77
0.509237
5e891244c5b394cace8ef44c165692023ed4d407
2,820
py
Python
customer/migrations/0001_initial.py
neonexchange/psp_template
c81fc831c1f31db00b29c4f016d073e66866f09b
[ "MIT" ]
5
2018-03-02T09:36:41.000Z
2018-05-09T15:12:53.000Z
customer/migrations/0001_initial.py
neonexchange/psp_template
c81fc831c1f31db00b29c4f016d073e66866f09b
[ "MIT" ]
null
null
null
customer/migrations/0001_initial.py
neonexchange/psp_template
c81fc831c1f31db00b29c4f016d073e66866f09b
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-01-18 22:49 from django.db import migrations, models import localflavor.us.models
53.207547
181
0.563475
5e893fcabfae32e0fe9170e0a077a7d484a9f030
3,988
py
Python
ow_lander/scripts/unstow_action_server.py
nasa/ow_simulator
662fea6bf83d82e1b0aac69d05c16dee77cd71a5
[ "NASA-1.3" ]
97
2020-08-10T08:43:14.000Z
2022-03-21T21:14:15.000Z
ow_lander/scripts/unstow_action_server.py
AliMuhammadOfficial/ow_simulator
e0c96d74c1f3dea1451c90782172a10cfe183d94
[ "NASA-1.3" ]
153
2020-08-11T22:37:25.000Z
2022-03-31T23:29:41.000Z
ow_lander/scripts/unstow_action_server.py
AliMuhammadOfficial/ow_simulator
e0c96d74c1f3dea1451c90782172a10cfe183d94
[ "NASA-1.3" ]
26
2020-08-06T17:07:03.000Z
2022-03-16T01:04:01.000Z
#!/usr/bin/env python2 # The Notices and Disclaimers for Ocean Worlds Autonomy Testbed for Exploration # Research and Simulation can be found in README.md in the root directory of # this repository. import rospy import actionlib import ow_lander.msg import sys import copy import moveit_commander import moveit_msgs.ms...
34.982456
108
0.634654
5e8ab09f3e4164e0a24faab6e63ec27d06a9fb94
23
py
Python
proxySTAR_V3/certbot/venv.1509389747.bak/lib/python2.7/site-packages/pylint/test/functional/future_import.py
mami-project/lurk
98c293251e9b1e9c9a4b02789486c5ddaf46ba3c
[ "Apache-2.0" ]
2
2017-07-05T09:57:33.000Z
2017-11-14T23:05:53.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/functional/future_import.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2019-01-17T14:26:22.000Z
2019-01-17T22:56:26.000Z
Libraries/Python/pylint/v1.4.4/pylint/test/functional/future_import.py
davidbrownell/Common_Environment
4015872aeac8d5da30a6aa7940e1035a6aa6a75d
[ "BSL-1.0" ]
1
2017-08-31T14:33:03.000Z
2017-08-31T14:33:03.000Z
"""a docstring"""
5.75
18
0.434783
5e8c3823a0da2b955e12c77ee3d80d179d9de1fd
9,558
py
Python
ccdb/experiments/migrations/0001_initial.py
thermokarst/ccdb-api
01d76d75ffaaa9949991cdc3ac43b9ae388ad2a6
[ "MIT" ]
null
null
null
ccdb/experiments/migrations/0001_initial.py
thermokarst/ccdb-api
01d76d75ffaaa9949991cdc3ac43b9ae388ad2a6
[ "MIT" ]
24
2017-01-09T12:51:13.000Z
2018-04-30T17:40:27.000Z
ccdb/experiments/migrations/0001_initial.py
thermokarst/ccdb-api
01d76d75ffaaa9949991cdc3ac43b9ae388ad2a6
[ "MIT" ]
null
null
null
from django.db import migrations, models
44.663551
120
0.567797
5e8d831dc9c908bff516eb0907d8dffbcd80011f
2,023
py
Python
supergsl/sgsl.py
rmcl/supergsl
d0851ab1e2201a30ff0e8862c56fc302a686117d
[ "MIT" ]
1
2021-09-09T00:15:37.000Z
2021-09-09T00:15:37.000Z
supergsl/sgsl.py
rmcl/supergsl
d0851ab1e2201a30ff0e8862c56fc302a686117d
[ "MIT" ]
43
2020-11-08T23:40:23.000Z
2022-03-26T23:44:33.000Z
supergsl/sgsl.py
rmcl/supergsl
d0851ab1e2201a30ff0e8862c56fc302a686117d
[ "MIT" ]
null
null
null
"""Entrypoint for the `sgsl` command used to invoke the superGSL compiler.""" import argparse from supergsl.core.config import load_settings from supergsl.core.pipeline import CompilerPipeline from supergsl.core.exception import SuperGSLError from supergsl.repl import SuperGSLShell from supergsl.grpc.server import Supe...
28.097222
98
0.648047
5e8e52b76f7627d2e5926d3d4072f9f0f9c25bb5
4,592
py
Python
usher/tcp_client.py
lukecampbell/usher
f939c6ba3ccfdd265306cbf4752a890021473c0e
[ "Apache-2.0" ]
1
2019-07-24T21:20:48.000Z
2019-07-24T21:20:48.000Z
usher/tcp_client.py
lukecampbell/usher
f939c6ba3ccfdd265306cbf4752a890021473c0e
[ "Apache-2.0" ]
null
null
null
usher/tcp_client.py
lukecampbell/usher
f939c6ba3ccfdd265306cbf4752a890021473c0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from usher.tcp_server import MessageParser from struct import pack, unpack import socket import gevent.event import gevent import time
28.7
105
0.586237
5e8ee0c246e72a0e714983f025577bd8e93cdeab
860
py
Python
app.py
mukesh1996-ds/Logistic-Regression-
cd564203923a2d0d042c13345924617114c6bc74
[ "MIT" ]
1
2022-01-12T08:22:12.000Z
2022-01-12T08:22:12.000Z
app.py
mukesh1996-ds/Logistic-Regression-
cd564203923a2d0d042c13345924617114c6bc74
[ "MIT" ]
null
null
null
app.py
mukesh1996-ds/Logistic-Regression-
cd564203923a2d0d042c13345924617114c6bc74
[ "MIT" ]
null
null
null
# importing necessary libraries and functions import numpy as np from flask import Flask, request, jsonify, render_template import pickle app = Flask(__name__) #Initialize the flask App model = pickle.load(open('Logistic.pickle', 'rb')) # loading the trained model if __name__ == "__main__": app.run(debug=True)
28.666667
131
0.712791
5e8f89e3acee541134ba922492d88302691c6512
130,823
py
Python
utils.py
kant/valve-armature-toolkit
c7e82de5db6b98af44cd8cddc64b7ca99c96e589
[ "MIT" ]
null
null
null
utils.py
kant/valve-armature-toolkit
c7e82de5db6b98af44cd8cddc64b7ca99c96e589
[ "MIT" ]
null
null
null
utils.py
kant/valve-armature-toolkit
c7e82de5db6b98af44cd8cddc64b7ca99c96e589
[ "MIT" ]
null
null
null
import bpy from math import radians from bpy.app.handlers import persistent from . import armature_rename from .armature_creation import armature class Armature: #Armature base def __init__(self, armature): vatinfo = bpy.context.scene.vatinfo #Basic armature information self.armature = ar...
53.180081
413
0.469749
5e9092a8c19098c651d6e9f4be58261f6e77a5e3
438
py
Python
api/migrations/0002_auto_20210624_2254.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
api/migrations/0002_auto_20210624_2254.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
api/migrations/0002_auto_20210624_2254.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2021-06-24 22:54 from django.db import migrations, models
23.052632
119
0.607306
5e91d2502c6c2d35ca1d08e26a83d6d1e5097bf7
279
py
Python
pyexlatex/presentation/beamer/frame/title.py
whoopnip/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
4
2020-06-08T07:17:12.000Z
2021-11-04T21:39:52.000Z
pyexlatex/presentation/beamer/frame/title.py
nickderobertis/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
24
2020-02-17T17:20:44.000Z
2021-12-20T00:10:19.000Z
pyexlatex/presentation/beamer/frame/title.py
nickderobertis/py-ex-latex
66f5fadc35a0bfdce5f1ccb3c80dce8885b061b6
[ "MIT" ]
null
null
null
from typing import Optional from pyexlatex.models.item import SimpleItem
27.9
68
0.709677
5e934e4e9c27193d4b838f787701c5a3d73f411c
541
py
Python
setup.py
BotBotMe/botbot-plugins
075ae29bb8c534a1b33baebf36a5fcc0d4398b58
[ "BSD-3-Clause" ]
21
2015-01-17T15:39:43.000Z
2021-08-04T01:56:31.000Z
setup.py
Pavel-Sayekat/botbot-plugins
075ae29bb8c534a1b33baebf36a5fcc0d4398b58
[ "BSD-3-Clause" ]
7
2015-01-12T02:34:54.000Z
2018-01-21T22:07:47.000Z
setup.py
Pavel-Sayekat/botbot-plugins
075ae29bb8c534a1b33baebf36a5fcc0d4398b58
[ "BSD-3-Clause" ]
18
2015-01-12T02:37:47.000Z
2018-09-22T15:30:29.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='botbot_plugins', version='1.0', description="Plugins and service integrations for BotBot.me", author="Lincoln Loop", author_email='info@lincolnloop.com', url='https://github.com/lincolnloop/botbot_plugins', packa...
25.761905
65
0.622921
5e9585d7f1ca9ea63085498a5a7d9a868dd8c84d
9,550
py
Python
test/test_rex.py
dotwork/rex
89c67feacbd4d7c07f68214cc9e02988ad05e2e2
[ "MIT" ]
null
null
null
test/test_rex.py
dotwork/rex
89c67feacbd4d7c07f68214cc9e02988ad05e2e2
[ "MIT" ]
null
null
null
test/test_rex.py
dotwork/rex
89c67feacbd4d7c07f68214cc9e02988ad05e2e2
[ "MIT" ]
null
null
null
import os import re import unittest from models import Rex base_dir = os.path.dirname(__file__) data_dir = os.path.join(base_dir, "data") ######################################################################################################################## #######################################################...
51.069519
120
0.43644
5e960a8f772219fae68b8457d40dccf32514388f
751
py
Python
scrapping/management/commands/brands.py
xeroz/gshop
d1bd0920d8ffaae9e7f52fcf8d60dd2d009cde2a
[ "MIT" ]
null
null
null
scrapping/management/commands/brands.py
xeroz/gshop
d1bd0920d8ffaae9e7f52fcf8d60dd2d009cde2a
[ "MIT" ]
4
2020-02-11T21:31:46.000Z
2020-06-05T00:43:08.000Z
scrapping/management/commands/brands.py
xeroz/gshop
d1bd0920d8ffaae9e7f52fcf8d60dd2d009cde2a
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from bs4 import BeautifulSoup import requests from apps.products.models import ShopDepartment, Brand
31.291667
74
0.660453
5e96d10c6dfb2e778fd6a5f0ef1d12d94ce2fa31
354
py
Python
src/util/test_client.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
src/util/test_client.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
src/util/test_client.py
fibasile/ticket-gateway
811a216281a17150adca3edf691f9cf5a1478d2f
[ "MIT" ]
null
null
null
import pytest from flask_jwt_extended import create_access_token
29.5
69
0.728814
5e9b7c8ac0576658c37611fd876c771aab62e2e1
2,106
py
Python
mpchctrackinfo/hook.py
mFoxRU/mpc-hc-trackinfo
5539627a623a8beb08ae8167fa328e9ca14340ea
[ "MIT" ]
1
2016-09-11T04:30:06.000Z
2016-09-11T04:30:06.000Z
mpchctrackinfo/hook.py
mFoxRU/mpc-hc-trackinfo
5539627a623a8beb08ae8167fa328e9ca14340ea
[ "MIT" ]
null
null
null
mpchctrackinfo/hook.py
mFoxRU/mpc-hc-trackinfo
5539627a623a8beb08ae8167fa328e9ca14340ea
[ "MIT" ]
null
null
null
__author__ = 'mFoxRU' from time import sleep from win32gui import (FindWindow, EnumChildWindows, GetClassName, GetWindowText, IsWindow) if __name__ == '__main__': hk = Hook() while 1: print ' - '.join(hk.get_info()) sleep(1)
31.432836
80
0.565527
5e9d8b705bdef31610fa8525054d7d342df97492
3,781
py
Python
scripts/tflite_model_tools/tflite/OperatorCode.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
15
2021-09-05T03:43:54.000Z
2022-03-29T14:17:29.000Z
scripts/tflite_model_tools/tflite/OperatorCode.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
21
2021-09-01T06:58:31.000Z
2022-03-31T06:33:15.000Z
scripts/tflite_model_tools/tflite/OperatorCode.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
6
2021-09-22T06:44:19.000Z
2022-02-07T06:28:35.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() # OperatorCode def DeprecatedBuiltinCode(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) i...
36.009524
153
0.695583
5e9e205e4a5313490443b84c0deb7fd72d130bbe
2,307
py
Python
src/server.py
alextbok/deployable-scraper-api
9d1f5819c74293f6d95bbf7b64897931ffc90c8e
[ "Apache-2.0" ]
1
2015-01-30T03:27:22.000Z
2015-01-30T03:27:22.000Z
src/server.py
alextbok/deployable-scraper-api
9d1f5819c74293f6d95bbf7b64897931ffc90c8e
[ "Apache-2.0" ]
null
null
null
src/server.py
alextbok/deployable-scraper-api
9d1f5819c74293f6d95bbf7b64897931ffc90c8e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer from SocketServer import ThreadingMixIn import threading import urlparse from endpoint import Endpoint from config import Parser CONFIG_PATH = '../config/config.yaml' if __name__ == '__main__': print 'Starting server, use <Ctrl-C> to te...
25.076087
66
0.691808
5e9f3f08204ee8f26c7ee597a5331c470cf5a81b
35,006
py
Python
pypy/module/_ssl/interp_ssl.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
1
2020-01-21T11:10:51.000Z
2020-01-21T11:10:51.000Z
pypy/module/_ssl/interp_ssl.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
pypy/module/_ssl/interp_ssl.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
from __future__ import with_statement from pypy.rpython.lltypesystem import rffi, lltype from pypy.interpreter.error import OperationError from pypy.interpreter.baseobjspace import Wrappable from pypy.interpreter.typedef import TypeDef from pypy.interpreter.gateway import interp2app, unwrap_spec from pypy.rlib.rarithm...
38.132898
91
0.631777
5e9fef6fd478e24f55f2eb4096a2021b8f01299a
9,108
py
Python
voltha/adapters/interface.py
Balaji-P/voltha_docker_compose-rsk_tech_CKAD
3cf9b2e2bbbaeed4744ff9f33a3e91e60c8020b7
[ "Apache-2.0" ]
null
null
null
voltha/adapters/interface.py
Balaji-P/voltha_docker_compose-rsk_tech_CKAD
3cf9b2e2bbbaeed4744ff9f33a3e91e60c8020b7
[ "Apache-2.0" ]
null
null
null
voltha/adapters/interface.py
Balaji-P/voltha_docker_compose-rsk_tech_CKAD
3cf9b2e2bbbaeed4744ff9f33a3e91e60c8020b7
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 the original author or authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
36.286853
79
0.642402
5ea007a2b53efa3763616ae1425044471321276f
983
py
Python
python/aliApi/containerRegistry/main.py
GordonChen13/learn-examples
d04ba39edc7fcc5a5f546ba72764df6ce2f9ee2b
[ "MIT" ]
2
2018-05-14T02:16:36.000Z
2019-07-15T03:16:02.000Z
python/aliApi/containerRegistry/main.py
GordonChen13/learn-examples
d04ba39edc7fcc5a5f546ba72764df6ce2f9ee2b
[ "MIT" ]
1
2018-04-08T09:32:53.000Z
2018-04-10T08:14:31.000Z
python/aliApi/containerRegistry/main.py
GordonChen13/learn-examples
d04ba39edc7fcc5a5f546ba72764df6ce2f9ee2b
[ "MIT" ]
2
2017-11-27T05:34:34.000Z
2018-09-25T05:06:53.000Z
#!/usr/bin/env python # coding=utf-8 from aliyunsdkcore.acs_exception.exceptions import ClientException from aliyunsdkcore.acs_exception.exceptions import ServerException from aliyunsdkcore.client import AcsClient # from aliyunsdkcr.request.v20160607 import GetImageLayerRequest from aliyunsdkcr.request.v20160607 import...
35.107143
84
0.811801
5ea16b9669c920b19a570aba76fefeba84415d6c
1,564
py
Python
run.py
jasonmar/wp2s3.py
7ff00eb12409923978a4e07230b7259ecfe25ddc
[ "Apache-2.0" ]
1
2018-11-09T19:50:13.000Z
2018-11-09T19:50:13.000Z
run.py
jasonmar/wp2s3.py
7ff00eb12409923978a4e07230b7259ecfe25ddc
[ "Apache-2.0" ]
null
null
null
run.py
jasonmar/wp2s3.py
7ff00eb12409923978a4e07230b7259ecfe25ddc
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2015 Jason Mar # # 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 writi...
36.372093
116
0.704604
5ea1798f91ee38f995fef76c2802897a9c6e8ae0
2,212
py
Python
related_entropy.py
9b/malpdfobj
91e1b4537dda61a6c20f8186b13fe87a0a37ecb5
[ "MIT" ]
29
2015-02-16T08:22:14.000Z
2022-02-01T09:33:35.000Z
related_entropy.py
9b/malpdfobj
91e1b4537dda61a6c20f8186b13fe87a0a37ecb5
[ "MIT" ]
null
null
null
related_entropy.py
9b/malpdfobj
91e1b4537dda61a6c20f8186b13fe87a0a37ecb5
[ "MIT" ]
8
2016-02-09T16:21:55.000Z
2020-11-18T09:08:32.000Z
import math import json import os import optparse
27.308642
92
0.417722
5ea31af3452ac5977baccd33685b8b5716d9de5e
11,654
py
Python
tests/test_state.py
simonsobs/nextline
94741b85002008cd84b7094a622ff03d18ecef5c
[ "MIT" ]
null
null
null
tests/test_state.py
simonsobs/nextline
94741b85002008cd84b7094a622ff03d18ecef5c
[ "MIT" ]
10
2021-05-05T14:51:04.000Z
2022-03-03T19:42:37.000Z
tests/test_state.py
simonsobs/nextline
94741b85002008cd84b7094a622ff03d18ecef5c
[ "MIT" ]
null
null
null
import time from abc import ABC, abstractmethod import pytest from unittest.mock import Mock from nextline.registry import PdbCIRegistry from nextline.utils import Registry from nextline.state import ( Initialized, Running, Exited, Finished, Closed, StateObsoleteError, StateMethodError ) ...
27.813842
101
0.659259
5ea45dff1c1b5a7b9a7139fec69340289fa5afd9
89
py
Python
problem_1_min.py
kaubu/project-euler
8d4a1f1a6abf24a0c5491731cbdb074d89145061
[ "MIT" ]
null
null
null
problem_1_min.py
kaubu/project-euler
8d4a1f1a6abf24a0c5491731cbdb074d89145061
[ "MIT" ]
null
null
null
problem_1_min.py
kaubu/project-euler
8d4a1f1a6abf24a0c5491731cbdb074d89145061
[ "MIT" ]
null
null
null
n_sum = 0 for n in range(1000): n_sum += n if not n % 3 or not n % 5 else 0 print(n_sum)
22.25
65
0.629213
5ea4ab72c6095ad5621af4df3773f6f0b18d8cda
783
py
Python
160-intersection-of-two-linked-lists/160-intersection-of-two-linked-lists.py
tlylt/LeetCodeAnki
9f69504c3762f7895d95c2a592f18ad395199ff4
[ "MIT" ]
1
2022-02-14T08:03:32.000Z
2022-02-14T08:03:32.000Z
160-intersection-of-two-linked-lists/160-intersection-of-two-linked-lists.py
tlylt/LeetCodeAnki
9f69504c3762f7895d95c2a592f18ad395199ff4
[ "MIT" ]
null
null
null
160-intersection-of-two-linked-lists/160-intersection-of-two-linked-lists.py
tlylt/LeetCodeAnki
9f69504c3762f7895d95c2a592f18ad395199ff4
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None
27
80
0.494253
5ea50b0a6baa34ab53b43f4b399dabbba9754ddb
12,968
py
Python
User/user.py
17kisern/-GVSU-CIS457-Project2
a2438e2c165a4e5b1381c332f2879122e081ff2d
[ "MIT" ]
null
null
null
User/user.py
17kisern/-GVSU-CIS457-Project2
a2438e2c165a4e5b1381c332f2879122e081ff2d
[ "MIT" ]
null
null
null
User/user.py
17kisern/-GVSU-CIS457-Project2
a2438e2c165a4e5b1381c332f2879122e081ff2d
[ "MIT" ]
null
null
null
import os from os import path import socket # Import socket module import asyncio import sys """ Notes ============== socket.gethostname() gets the current machines hostname, for example "DESKTOP-1337PBJ" string.encode('UTF-8') encodes the given string into a 'bytes' liter...
33.859008
140
0.589297
5ea5b896308612a702c41a31972ca1127a9b11ad
923
py
Python
docs/jnpr_healthbot_swagger/swagger_client/api/__init__.py
minefuto/healthbot-py-client
bb81452c974456af44299aebf32a73abeda8a943
[ "Apache-2.0" ]
null
null
null
docs/jnpr_healthbot_swagger/swagger_client/api/__init__.py
minefuto/healthbot-py-client
bb81452c974456af44299aebf32a73abeda8a943
[ "Apache-2.0" ]
null
null
null
docs/jnpr_healthbot_swagger/swagger_client/api/__init__.py
minefuto/healthbot-py-client
bb81452c974456af44299aebf32a73abeda8a943
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis into api package from swagger_client.api.administration_api import AdministrationApi from swagger_client.api.authentication_api import AuthenticationApi from swagger_client.api.configuration_api import ConfigurationApi from swagger_client.api.data_so...
46.15
83
0.889491
5ea974a5486e0838fd0233122ecdd398fad7f25f
928
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/site_configuration/migrations/0004_add_site_values_field.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
# Generated by Django 1.11.28 on 2020-02-19 16:50 import collections import jsonfield.fields from django.db import migrations
33.142857
209
0.661638
5eaa3697b5bd970332387efa36b0b10e0887039a
2,767
py
Python
app-tasks/rf/src/rf/ingest/models/layer.py
radiantearth/raster-foundry
834dc0a1cd4247ffa065ea16fa92760df908760e
[ "Apache-2.0" ]
null
null
null
app-tasks/rf/src/rf/ingest/models/layer.py
radiantearth/raster-foundry
834dc0a1cd4247ffa065ea16fa92760df908760e
[ "Apache-2.0" ]
1
2017-08-23T17:10:19.000Z
2017-08-23T21:57:17.000Z
app-tasks/rf/src/rf/ingest/models/layer.py
radiantearth/raster-foundry
834dc0a1cd4247ffa065ea16fa92760df908760e
[ "Apache-2.0" ]
3
2020-02-05T13:26:31.000Z
2021-07-24T15:02:02.000Z
""" Python class to represent a layer within an ingest """
42.569231
104
0.597398
5eaa41b5ba5c1b8a725e3ec84cce0eac16b60635
7,603
py
Python
diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py
zhj-buffer/ROS2-driver-for-Realsense
936cf27be4e7dc3d699ff99499e72ea8638cc622
[ "Apache-2.0" ]
2
2021-07-14T12:33:55.000Z
2021-11-21T07:14:13.000Z
melodic/src/diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py
disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA
3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0
[ "BSD-3-Clause" ]
1
2021-07-08T10:26:06.000Z
2021-07-08T10:31:11.000Z
melodic/src/diagnostics/diagnostic_common_diagnostics/src/diagnostic_common_diagnostics/ntp_monitor.py
disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA
3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redist...
38.790816
93
0.639484
5eaa5b05829f7dff5f8b3654295d561566cbd3dd
861
py
Python
Jaccorot/0014/0014.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
Jaccorot/0014/0014.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
Jaccorot/0014/0014.py
dwh65416396/python
1a7e3edd1cd3422cc0eaa55471a0b42e004a9a1a
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
#!/usr/bin/python # coding=utf-8 """ 0014 student.txt, , student.xls """ import os import json import xlwt if __name__ == "__main__": read_content = read_txt(os.path.join(os.path.split(__file__)[0], 'student.txt')) save_into_excel(read_content, 'student.xls')
20.023256
84
0.610918
5eaa87d463aba065e90433c5bc1e27fa235627ad
1,135
py
Python
dataprocess.py
gushu333/DA4NMT
dba52a3d3784cd795b6f9aaf655b63475a848798
[ "Apache-2.0" ]
1
2018-08-25T13:35:02.000Z
2018-08-25T13:35:02.000Z
dataprocess.py
gushu333/DA4NMT
dba52a3d3784cd795b6f9aaf655b63475a848798
[ "Apache-2.0" ]
null
null
null
dataprocess.py
gushu333/DA4NMT
dba52a3d3784cd795b6f9aaf655b63475a848798
[ "Apache-2.0" ]
null
null
null
import argparse as ap parser = ap.ArgumentParser(description='delete the blank line and keep sequence length less than 50') parser.add_argument('--input1', type=str) parser.add_argument('--input2', type=str) #parser.add_argument('--output', type=str, default=str + ".less50") parser.add_argument('--encoding',...
35.46875
108
0.663436
5eac70af14d5975d4ffe25c63c27d1c08dbcf096
8,247
py
Python
test/utils/gtclang-tester/gtclang_tester/utility.py
mroethlin/gtclang
248b3637e3a438adc3bed3a684cee94798afff0b
[ "MIT" ]
6
2017-10-10T18:56:54.000Z
2020-05-28T15:29:19.000Z
test/utils/gtclang-tester/gtclang_tester/utility.py
twicki/gtclang
e87a7aa8612aad0df8c24117b9bbff6f8153a7fd
[ "MIT" ]
125
2017-10-18T14:33:57.000Z
2019-10-18T10:45:17.000Z
test/utils/gtclang-tester/gtclang_tester/utility.py
twicki/gtclang
e87a7aa8612aad0df8c24117b9bbff6f8153a7fd
[ "MIT" ]
9
2017-09-20T12:57:49.000Z
2019-08-26T09:32:20.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- ##===-----------------------------------------------------------------------------*- Python -*-===## ## _ _ ## | | | | ## __ _| |_ ___| | __ _ _ __ __ _ ## ...
33.388664
100
0.532921
5eacd7132e9640d00adac17dd7d9eef7046e867a
4,248
py
Python
User/migrations/0001_initial.py
orik3ll0/generate_Csv
49902b1ddbe341e8c65fc453bfb0b5d807de1563
[ "MIT" ]
null
null
null
User/migrations/0001_initial.py
orik3ll0/generate_Csv
49902b1ddbe341e8c65fc453bfb0b5d807de1563
[ "MIT" ]
null
null
null
User/migrations/0001_initial.py
orik3ll0/generate_Csv
49902b1ddbe341e8c65fc453bfb0b5d807de1563
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-15 15:17 from django.db import migrations, models import django.db.models.deletion
48.272727
127
0.57839
5ead1fa1ac98ccb096f19b374bfc58038b3838ec
20,969
py
Python
src/genie/libs/parser/iosxe/show_ppp.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_ppp.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_ppp.py
nielsvanhooy/genieparser
9a1955749697a6777ca614f0af4d5f3a2c254ccd
[ "Apache-2.0" ]
null
null
null
"""show_PPP.py IOSXE parsers for the following show commands: * 'show ppp statistics' """ # Python import re # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, Optional # import parser utils from genie.libs.parser.utils.common import Common
38.264599
84
0.409414
5ead8537ec1d2acc961e3c05d30fb2a7ac76c394
479
py
Python
tests/conftest.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
7
2020-05-08T16:54:37.000Z
2022-03-20T08:47:02.000Z
tests/conftest.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
5
2020-02-05T15:50:42.000Z
2021-05-23T20:23:18.000Z
tests/conftest.py
espdev/scikit-mpe
c35a298e996eec8638c302c18b988bf56deb6770
[ "MIT" ]
1
2021-07-02T12:23:52.000Z
2021-07-02T12:23:52.000Z
# -*- coding: utf-8 -*- import warnings import pytest from skimage.data import retina from skimage.color import rgb2gray from skimage.transform import rescale from skimage.filters import sato
25.210526
71
0.732777
5eae6de4f3755423f0ab73b4087cbfc0386ab861
1,046
py
Python
figS3/plot.py
andim/paper-bayesimmune
d8e394d0beb1f15c5f488a79a46e77143d2e017e
[ "MIT" ]
null
null
null
figS3/plot.py
andim/paper-bayesimmune
d8e394d0beb1f15c5f488a79a46e77143d2e017e
[ "MIT" ]
null
null
null
figS3/plot.py
andim/paper-bayesimmune
d8e394d0beb1f15c5f488a79a46e77143d2e017e
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import scipy.special import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec plt.style.use(['../optdynim.mplstyle']) import palettable import sys sys.path.append('../lib') import optdynlib import plotting import misc df = misc.loadnpz('data/data.npz') df['tauc']...
27.526316
117
0.673996
5eaf2f860b2a78625d7dbcd11d01486b20f6661e
1,864
py
Python
application/modules/registration.py
BaggerFast/Simple_votings
843769fa6fd2c04feb542e6b301b7b4810260d4e
[ "MIT" ]
null
null
null
application/modules/registration.py
BaggerFast/Simple_votings
843769fa6fd2c04feb542e6b301b7b4810260d4e
[ "MIT" ]
null
null
null
application/modules/registration.py
BaggerFast/Simple_votings
843769fa6fd2c04feb542e6b301b7b4810260d4e
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth import login from django.contrib.auth.models import User from django.shortcuts import render, redirect from django.urls import reverse from django.views import View from application.forms import RegistrationForm from application.views import get_navbar, Page ...
42.363636
105
0.612124
5eb21f50c3a708d9eb64cb1111bacf94011dc947
554
py
Python
src/meshcat/tests/test_start_server.py
Arpafaucon/meshcat-python
c3a9ceaa2b82ba1146b174d901a63269a9b5432f
[ "MIT" ]
150
2018-02-25T23:38:05.000Z
2022-03-11T11:56:20.000Z
src/meshcat/tests/test_start_server.py
Arpafaucon/meshcat-python
c3a9ceaa2b82ba1146b174d901a63269a9b5432f
[ "MIT" ]
104
2018-02-23T22:16:24.000Z
2022-03-23T13:22:26.000Z
src/meshcat/tests/test_start_server.py
Arpafaucon/meshcat-python
c3a9ceaa2b82ba1146b174d901a63269a9b5432f
[ "MIT" ]
45
2018-03-15T20:13:28.000Z
2022-02-15T09:12:44.000Z
import unittest from meshcat.servers.zmqserver import start_zmq_server_as_subprocess
30.777778
101
0.720217
5eb5b78acddacd990b0f73d93c0c7e56b2e47350
2,558
py
Python
cirq-core/cirq/interop/quirk/cells/all_cells.py
Saibaba-Alapati/Cirq
782efcd04c3bbf73a0d630306a3d1cfd9966521d
[ "Apache-2.0" ]
3,326
2018-07-18T23:17:21.000Z
2022-03-29T22:28:24.000Z
cirq-core/cirq/interop/quirk/cells/all_cells.py
resduo/Cirq
680f897345eb1c71c9242515edda8f04b8594319
[ "Apache-2.0" ]
3,443
2018-07-18T21:07:28.000Z
2022-03-31T20:23:21.000Z
cirq-core/cirq/interop/quirk/cells/all_cells.py
resduo/Cirq
680f897345eb1c71c9242515edda8f04b8594319
[ "Apache-2.0" ]
865
2018-07-18T23:30:24.000Z
2022-03-30T11:43:23.000Z
# Copyright 2019 The Cirq Developers # # 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 ...
52.204082
99
0.839328
5eb5b8ff8b16c931358c38d5d6013b24e219911a
985
py
Python
falmer/featured/mutations.py
sussexstudent/services-api
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
2
2017-04-27T19:35:59.000Z
2017-06-13T16:19:33.000Z
falmer/featured/mutations.py
sussexstudent/falmer
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
975
2017-04-13T11:31:07.000Z
2022-02-10T07:46:18.000Z
falmer/featured/mutations.py
sussexstudent/services-api
ae735bd9d6177002c3d986e5c19a78102233308f
[ "MIT" ]
3
2018-05-09T06:42:25.000Z
2020-12-10T18:29:30.000Z
import graphene from . import types from . import models from graphene.types.generic import GenericScalar
25.921053
67
0.651777
5eb5d321fb0acf65b8501d4d01b3e4fdc85f9f98
140
py
Python
src/pycus/__main__.py
moshez/pycus
d1615b1cf73b376d80c148a53be938eb11b81541
[ "MIT" ]
null
null
null
src/pycus/__main__.py
moshez/pycus
d1615b1cf73b376d80c148a53be938eb11b81541
[ "MIT" ]
12
2020-08-02T04:37:36.000Z
2022-01-30T02:08:05.000Z
src/pycus/__main__.py
moshez/pycus
d1615b1cf73b376d80c148a53be938eb11b81541
[ "MIT" ]
null
null
null
from . import commands if __name__ != "__main__": raise ImportError("This module should not be imported") commands.main_command.run()
20
59
0.742857
5eb5ea4f079264cee855d8779563ead4bcecdf9b
702
py
Python
sandbox/play_options.py
MiroK/mbed
d4c47151131c9e3502bec344218c7fd112044dce
[ "MIT" ]
2
2017-07-07T11:13:11.000Z
2019-01-03T17:58:28.000Z
sandbox/play_options.py
MiroK/Mbed
d4c47151131c9e3502bec344218c7fd112044dce
[ "MIT" ]
null
null
null
sandbox/play_options.py
MiroK/Mbed
d4c47151131c9e3502bec344218c7fd112044dce
[ "MIT" ]
null
null
null
from mbed.generation import make_line_mesh from mbed.meshing import embed_mesh1d import numpy as np import sys coords = np.array([[0, 0], [1, 0], [1, 1], [0, 1.]]) mesh1d = make_line_mesh(coords, close_path=True) embed_mesh1d(mesh1d, bounding_shape=0.1, how='as_lines', gmsh_arg...
24.206897
52
0.57265
5eb7fbf95fc89c585b7a5a754022701d49577a00
7,235
py
Python
zarp/config/models.py
zavolanlab/zarp-cli
61711139e55dba16151d0d624f2a4b93c44b0e0a
[ "Apache-2.0" ]
4
2021-02-26T10:25:18.000Z
2021-07-06T09:42:00.000Z
zarp/config/models.py
zavolanlab/zarp-cli
61711139e55dba16151d0d624f2a4b93c44b0e0a
[ "Apache-2.0" ]
23
2021-03-01T22:44:10.000Z
2022-03-29T18:50:29.000Z
zarp/config/models.py
zavolanlab/zarp-cli
61711139e55dba16151d0d624f2a4b93c44b0e0a
[ "Apache-2.0" ]
null
null
null
"""Models and enumerators.""" from enum import Enum from typing import (Optional, List, Tuple) from pydantic import BaseModel # pylint: disable=no-name-in-module # pylint: disable=too-few-public-methods # Sample-specific enumerators and models # Run-specific enumerators and models # User-specific enume...
31.320346
79
0.673531
5ebc0ca49c97237dbab2d1b22dcc83509de9b98d
1,394
py
Python
src/client.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
src/client.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
src/client.py
sbarbett/ssp-sdk-python
03677bcd32f268f84b1e490a7d6c687ee33762e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 NeuStar, Inc.All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34
75
0.761119
5ebfafba8e3e89bfdb938a860d40d86b69ddf3cf
4,267
py
Python
stable_nalu/functional/regualizer.py
bmistry4/nalm-benchmark
273c95cc75241f56e48bcd0b18b043969ef82004
[ "MIT" ]
null
null
null
stable_nalu/functional/regualizer.py
bmistry4/nalm-benchmark
273c95cc75241f56e48bcd0b18b043969ef82004
[ "MIT" ]
null
null
null
stable_nalu/functional/regualizer.py
bmistry4/nalm-benchmark
273c95cc75241f56e48bcd0b18b043969ef82004
[ "MIT" ]
null
null
null
import math import torch
31.843284
120
0.586595
5ebffca8cd6561908205fab492db5573c047430d
10,298
py
Python
sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/vpc/get_router_interfaces.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
40.703557
250
0.655176