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
9fa9b9a2508774b622073aec9a477c8353758d80
1,188
py
Python
tests/test_data_models.py
haihabi/GenerativeCRB
d53c01bec7214bb087fbe17dba241e12eb60858e
[ "MIT" ]
null
null
null
tests/test_data_models.py
haihabi/GenerativeCRB
d53c01bec7214bb087fbe17dba241e12eb60858e
[ "MIT" ]
null
null
null
tests/test_data_models.py
haihabi/GenerativeCRB
d53c01bec7214bb087fbe17dba241e12eb60858e
[ "MIT" ]
null
null
null
import unittest import torch import data_model as dm import normflowpy as nf from experiments import constants
32.108108
100
0.70202
9fa9e56b663a8787279c9b910d19d9a32f11bba2
15,310
py
Python
neutronclient/tests/unit/test_auth.py
asadoughi/python-neutronclient
2026ffdc6c82135b64b3ccd569a4a442e170ca53
[ "Apache-2.0" ]
1
2016-07-16T09:36:02.000Z
2016-07-16T09:36:02.000Z
neutronclient/tests/unit/test_auth.py
ntt-sic/python-neutronclient
a8c5c650ea7d51461c6311fb477b733b2f7c36a0
[ "Apache-2.0" ]
null
null
null
neutronclient/tests/unit/test_auth.py
ntt-sic/python-neutronclient
a8c5c650ea7d51461c6311fb477b733b2f7c36a0
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 NEC Corporation # 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 b...
37.52451
79
0.602482
9fa9e701108d419a34d4509a9212f620fff5c5c8
8,532
py
Python
src/airobot/ee_tool/robotiq2f140_pybullet.py
weiqiao/airobot
5f9c6f239a16f31f8923131e144b360f71a89a93
[ "MIT" ]
null
null
null
src/airobot/ee_tool/robotiq2f140_pybullet.py
weiqiao/airobot
5f9c6f239a16f31f8923131e144b360f71a89a93
[ "MIT" ]
null
null
null
src/airobot/ee_tool/robotiq2f140_pybullet.py
weiqiao/airobot
5f9c6f239a16f31f8923131e144b360f71a89a93
[ "MIT" ]
null
null
null
import threading import time import airobot.utils.common as arutil from airobot.ee_tool.ee import EndEffectorTool from airobot.utils.arm_util import wait_to_reach_jnt_goal
36.306383
79
0.557782
9fabd95aa01b07fe66b5dd8128304fe6e2bfee3f
4,907
py
Python
schrodinger2D.py
frostburn/quantum-pde
69603d11ad7aadfbd0b2ab57bfb65b8963582df3
[ "MIT" ]
null
null
null
schrodinger2D.py
frostburn/quantum-pde
69603d11ad7aadfbd0b2ab57bfb65b8963582df3
[ "MIT" ]
null
null
null
schrodinger2D.py
frostburn/quantum-pde
69603d11ad7aadfbd0b2ab57bfb65b8963582df3
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division import argparse import os import sys from matplotlib.animation import FuncAnimation from pylab import * from flow import schrodinger_flow_2D from util import normalize_2D, advance_pde from lattice import make_lattice_2D, make_border_wall_2D, make_periodic_2D, RESOLUTI...
37.746154
127
0.573263
9fac1f748968d9d8f776e72e18bfa9ae886fb300
3,170
py
Python
tests/numpy_unit_testing/test_function_binary_operator_true_divide.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
20
2019-12-02T11:49:12.000Z
2021-12-24T19:34:32.000Z
tests/numpy_unit_testing/test_function_binary_operator_true_divide.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
null
null
null
tests/numpy_unit_testing/test_function_binary_operator_true_divide.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
5
2019-12-02T12:16:22.000Z
2021-10-22T02:27:47.000Z
import unittest from setup.settings import * from numpy.testing import * from pandas.util.testing import * import numpy as np import dolphindb_numpy as dnp import pandas as pd import orca if __name__ == '__main__': unittest.main()
39.625
101
0.643218
9fade505bc662862b1aaa9416970953c55df7076
3,217
py
Python
apps/loader/utils.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
8
2019-01-30T13:51:59.000Z
2022-01-08T03:26:53.000Z
apps/loader/utils.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
286
2019-01-18T21:35:51.000Z
2022-03-24T18:53:59.000Z
apps/loader/utils.py
PremierLangage/premierlangage
7134a2aadffee2bf264abee6c4b23ea33f1b390b
[ "CECILL-B" ]
4
2019-02-11T13:38:30.000Z
2021-03-02T20:59:00.000Z
import os from django.conf import settings def get_location(directory, path, current="", parser=None): """Returns a tuple (directory, path) params: - directory: [Directory] Directory containing the currently parsed file - path: [str] Path to the file needed ...
37.406977
100
0.594032
9fb1e69711f393a902cc733c79510a11dd6b8db4
7,309
py
Python
backend/venv/Lib/site-packages/github/tools/template.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
backend/venv/Lib/site-packages/github/tools/template.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
backend/venv/Lib/site-packages/github/tools/template.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
""" :Description: PasteScript Template to generate a GitHub hosted python package. Let you set the package name, a one line description, the Licence (support GPL, LGPL, AGPL and BSD - GPLv3 by default) and the author name, email and organisation variables:: paster create -t gh_package <project name> .. note:: ...
36.004926
82
0.63716
9fb248fe5801f1909b00e7b87eb821f0157d90d8
26,158
py
Python
app.py
cwh32/DiffCapAnalyzer
882f838c6e5451620cea386f060fd7a384d50e41
[ "MIT" ]
null
null
null
app.py
cwh32/DiffCapAnalyzer
882f838c6e5451620cea386f060fd7a384d50e41
[ "MIT" ]
null
null
null
app.py
cwh32/DiffCapAnalyzer
882f838c6e5451620cea386f060fd7a384d50e41
[ "MIT" ]
null
null
null
import ast import base64 import dash import dash_core_components as dcc from dash.dependencies import Input, Output, State import dash_html_components as html import dash_table as dt import io import json from lmfit.model import load_modelresult from lmfit.model import save_modelresult import numpy as np import os impo...
40.935837
200
0.502523
9fb43f7e2af262b4eec008e1b1fa5323d82b1b1a
252
py
Python
Python_Advanced_Softuni/Tuples_And_Sets_Excercise/venv/sets_of_elements.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
1
2020-12-14T23:25:19.000Z
2020-12-14T23:25:19.000Z
Python_Advanced_Softuni/Tuples_And_Sets_Excercise/venv/sets_of_elements.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
null
null
null
Python_Advanced_Softuni/Tuples_And_Sets_Excercise/venv/sets_of_elements.py
borisboychev/SoftUni
22062312f08e29a1d85377a6d41ef74966d37e99
[ "MIT" ]
null
null
null
(n,m) = [int(x) for x in input().split()] loop_range = n + m set_m = set() set_n = set() for _ in range(n): set_n.add(int(input())) for _ in range(m): set_m.add(int(input())) uniques = set_n.intersection(set_m) [print(x) for x in (uniques)]
18
41
0.611111
9fb58ec6926f4ee6f24f0c39bf1b0ebd934bf3b3
1,284
py
Python
netconf-cisco.py
Raul-Flores/Network-programmability-examples
e540b050b89da167b84f415565b75313605e01b2
[ "Apache-2.0" ]
2
2020-01-09T18:32:37.000Z
2020-01-09T18:32:42.000Z
netconf-cisco.py
Raul-Flores/Network-programmability-examples
e540b050b89da167b84f415565b75313605e01b2
[ "Apache-2.0" ]
null
null
null
netconf-cisco.py
Raul-Flores/Network-programmability-examples
e540b050b89da167b84f415565b75313605e01b2
[ "Apache-2.0" ]
null
null
null
from ncclient import manager from xml.dom import minidom import xmltodict huaweiautomation = {'address':'ios-xe-mgmt-latest.cisco.com', 'netconf_port': 10000, 'username': 'developer', 'password': 'C1sco12345'} huawei_manager = manager.connect(host = huaweiautomation["address"], port = huaweiautomation["netconf_port"...
29.860465
150
0.746106
9fb70e248cc42f7e6de7af2a2f074492332a1224
10,337
py
Python
pizza.py
purplefrizzel/PizzaTill
2beedcb7ed7e72af813a01b1d5396c149acefce3
[ "MIT" ]
null
null
null
pizza.py
purplefrizzel/PizzaTill
2beedcb7ed7e72af813a01b1d5396c149acefce3
[ "MIT" ]
null
null
null
pizza.py
purplefrizzel/PizzaTill
2beedcb7ed7e72af813a01b1d5396c149acefce3
[ "MIT" ]
null
null
null
#!/usr/bin/python # Pizza Till # Lewis Shaw import os import sys import time import re isProgramRuning = True welcomeMessageDisplay = False lastShownMenu = 0 order = { "pizzas": [] } customer = { "customerName": None, "customerPhoneNumber": None, "customerAddress": { "postcode": None, "houseNumber": None } } def...
24.553444
130
0.587018
9fb86bc2021d88c9c656e9537d5af6bffae02181
4,294
py
Python
code/lib.py
Pendra89/geom2020
afcb176a2840eca4aa985a67c43773d6cc548069
[ "MIT" ]
1
2021-11-17T11:47:35.000Z
2021-11-17T11:47:35.000Z
code/lib.py
Pendra89/geom2020
afcb176a2840eca4aa985a67c43773d6cc548069
[ "MIT" ]
null
null
null
code/lib.py
Pendra89/geom2020
afcb176a2840eca4aa985a67c43773d6cc548069
[ "MIT" ]
1
2021-02-23T22:46:25.000Z
2021-02-23T22:46:25.000Z
import numpy as np from numpy import array from numpy.linalg import det from numpy.linalg import matrix_rank from numpy.linalg import solve """ *** remember the following useful tools*** from numpy import transpose from numpy import dot from numpy import argmax from numpy import abs from numpy.linalg import eig fr...
27.703226
108
0.619935
9fb8870f39230a47bbcccb28e26862e42ee85468
2,520
py
Python
text/symbols.py
roedoejet/FastSpeech2
a2560cdaf6d6e08e40e59bdc790bf7758987a990
[ "MIT" ]
7
2021-11-29T06:53:12.000Z
2022-02-15T18:56:06.000Z
text/symbols.py
roedoejet/FastSpeech2
a2560cdaf6d6e08e40e59bdc790bf7758987a990
[ "MIT" ]
null
null
null
text/symbols.py
roedoejet/FastSpeech2
a2560cdaf6d6e08e40e59bdc790bf7758987a990
[ "MIT" ]
2
2021-06-10T16:43:06.000Z
2022-02-05T10:28:24.000Z
""" from https://github.com/keithito/tacotron """ """ Defines the set of symbols used in text input to the model. The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. For the th...
32.727273
192
0.667857
9fb93c91fe5323fc4654268fd1ccfdbdc90fbcc1
8,130
py
Python
11.Introduction to Databases in Python/Chapter 4 - Creating and Manipulating your own Databases.py
prakashcc/datacamp-python-data-science-track
8d35b2d78e5f923c7320e33bfc7b038556efe30a
[ "MIT" ]
1
2020-04-03T21:39:36.000Z
2020-04-03T21:39:36.000Z
11.Introduction to Databases in Python/Chapter 4 - Creating and Manipulating your own Databases.py
NileshRathore/datacamp-python-data-science-track
8d35b2d78e5f923c7320e33bfc7b038556efe30a
[ "MIT" ]
null
null
null
11.Introduction to Databases in Python/Chapter 4 - Creating and Manipulating your own Databases.py
NileshRathore/datacamp-python-data-science-track
8d35b2d78e5f923c7320e33bfc7b038556efe30a
[ "MIT" ]
1
2020-02-07T07:34:07.000Z
2020-02-07T07:34:07.000Z
#Chapter 4 - Creating and Manipulating your own Databases #*******************************************************************************************# #Creating Tables with SQLAlchemy # Import Table, Column, String, Integer, Float, Boolean from sqlalchemy fr...
33.875
145
0.558303
9fb9dea256439a1de1f2a404478d0b9b9c24fdb8
2,735
py
Python
archived-stock-trading-bot-v1/yf_extender.py
Allcallofduty10/stock-trading-bot
54e608b3c0b95b87e7753b065307fc23a045e230
[ "MIT" ]
101
2020-05-20T02:17:45.000Z
2022-03-31T12:22:09.000Z
archived-stock-trading-bot-v1/yf_extender.py
Allcallofduty10/stock-trading-bot
54e608b3c0b95b87e7753b065307fc23a045e230
[ "MIT" ]
10
2020-09-02T14:55:12.000Z
2022-02-21T08:50:48.000Z
archived-stock-trading-bot-v1/yf_extender.py
Allcallofduty10/stock-trading-bot
54e608b3c0b95b87e7753b065307fc23a045e230
[ "MIT" ]
33
2021-02-13T15:38:51.000Z
2022-03-21T10:39:15.000Z
import sys from datetime import datetime import yfinance as yf # Valid periods: 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max # Valid periods: 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max # Valid periods: 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max # Valid periods: 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max
38.521127
200
0.672761
9fbb4a14759bdd30ee6ecafbe29a12fea7b4e1d5
4,214
py
Python
bill_backend/remedi_backend_processor.py
sarahjliu/remedi
222daeb1719726bfcb704c7fd1e772444815e488
[ "MIT" ]
null
null
null
bill_backend/remedi_backend_processor.py
sarahjliu/remedi
222daeb1719726bfcb704c7fd1e772444815e488
[ "MIT" ]
null
null
null
bill_backend/remedi_backend_processor.py
sarahjliu/remedi
222daeb1719726bfcb704c7fd1e772444815e488
[ "MIT" ]
2
2018-02-25T18:11:54.000Z
2018-02-25T22:24:47.000Z
# _____ _ _ # | __ \ | (_) # | |__) |___ _ __ ___ ___ __| |_ # | _ // _ \ '_ ` _ \ / _ \/ _` | | # | | \ \ __/ | | | | | __/ (_| | | # |_| \_\___|_| |_| |_|\___|\__,_|_| # Azure Vision API Key 1: 8ce845a5fcb44327aeed5dbd0debc2c0 # Azure Vision API K...
46.307692
143
0.600617
9fbc462d704378fb13b5f3d14d7cb984d4a7c69e
660
py
Python
Level1/Lessons64061/minari.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons64061/minari.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level1/Lessons64061/minari.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
1
2021-04-05T07:35:59.000Z
2021-04-05T07:35:59.000Z
```python ```
31.428571
75
0.509091
9fbd0e54893daa5f9059045624cb8777d5342c64
578
py
Python
Physics250-ME29/peakOutputVoltageGenerator.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME29/peakOutputVoltageGenerator.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
Physics250-ME29/peakOutputVoltageGenerator.py
illusion173/Physics250
69f2ffdb8af013e8b0739779861c1455b579ddaf
[ "MIT" ]
null
null
null
import numpy as np import math extraNumber = 4 * math.pi * pow(10,-7) introducedEMF()
26.272727
65
0.602076
9fbe9037f44203dcea331b5e2e317610d2f79dbe
1,917
py
Python
functions/helpers/pagination.py
haynieresearch/unusual_options_activity
f87619244bf72e603032bf5f66963b5a692bace2
[ "Apache-2.0" ]
null
null
null
functions/helpers/pagination.py
haynieresearch/unusual_options_activity
f87619244bf72e603032bf5f66963b5a692bace2
[ "Apache-2.0" ]
null
null
null
functions/helpers/pagination.py
haynieresearch/unusual_options_activity
f87619244bf72e603032bf5f66963b5a692bace2
[ "Apache-2.0" ]
null
null
null
#********************************************************** #* CATEGORY SOFTWARE #* GROUP MARKET DATA #* AUTHOR LANCE HAYNIE <LANCE@HAYNIEMAIL.COM> #* DATE 2020-10-20 #* PURPOSE UNUSUAL OPTIONS ACTIVITY #* FILE PAGINATION.PY #********************************************************** #* MODIFICATIONS #* 2020-10-20 - ...
39.122449
101
0.684924
9fc4c964acc5d110da462d160816bb6e225c453a
4,297
py
Python
glhooks/mailer/messages.py
miso-belica/gitlab-webhooks
12e161244655a37cb795ba826149a9685ae74f70
[ "Apache-2.0" ]
13
2015-01-08T22:37:55.000Z
2019-06-27T08:19:15.000Z
glhooks/mailer/messages.py
miso-belica/gitlab-webhooks
12e161244655a37cb795ba826149a9685ae74f70
[ "Apache-2.0" ]
1
2017-01-27T20:29:39.000Z
2017-01-27T20:29:39.000Z
glhooks/mailer/messages.py
miso-belica/gitlab-webhooks
12e161244655a37cb795ba826149a9685ae74f70
[ "Apache-2.0" ]
9
2015-01-25T05:46:12.000Z
2021-01-12T08:22:20.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division, print_function, unicode_literals from time import strftime, gmtime from email.header import make_header from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from .utils import strip_tags, for...
31.364964
80
0.666279
9fc5a772eac2a63c47ac1bf4d12da1436b080955
2,709
py
Python
network/LeNet.py
cersar/BasicNetwork
119ebb745e67a9b74b72cc4635fea360db0ed43f
[ "MIT" ]
4
2019-01-02T07:54:51.000Z
2019-01-04T06:11:15.000Z
network/LeNet.py
cersar/BasicNetwork
119ebb745e67a9b74b72cc4635fea360db0ed43f
[ "MIT" ]
null
null
null
network/LeNet.py
cersar/BasicNetwork
119ebb745e67a9b74b72cc4635fea360db0ed43f
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from model.train import fit from keras.datasets import mnist if __name__ == '__main__': (x_train, y_train), (x_test, y_test) = mnist.load_data('../dataset/mnist.npz') x_train = x_train[:, :, :, np.newaxis] / 255. x_test = x_test[:, :, :, np.newaxis] / 255. n...
46.706897
126
0.638612
9fc6625edca5f3680489dcc397b225e54927655e
29
py
Python
_filament/__init__.py
comstud/filament
be6dbd6bf76dbcb0655c7fae239333d64ee8bb5f
[ "MIT" ]
2
2017-03-08T20:29:52.000Z
2019-05-15T20:15:42.000Z
_filament/__init__.py
comstud/filament
be6dbd6bf76dbcb0655c7fae239333d64ee8bb5f
[ "MIT" ]
null
null
null
_filament/__init__.py
comstud/filament
be6dbd6bf76dbcb0655c7fae239333d64ee8bb5f
[ "MIT" ]
null
null
null
from _filament.core import *
14.5
28
0.793103
9fcb149ac5dfe464c79d244e6065b0b4f62a43f1
20,865
py
Python
modules/simulation/simulation.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
modules/simulation/simulation.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
modules/simulation/simulation.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" Module to execute the simulation for a given instance. """ """ import packages """ import logging from importlib import import_module import numpy.random as rdm import copy import numpy as np """ import project configurations """ import configurations.settings_simulation as config """ import project librar...
29.100418
134
0.600096
9fcb7c9ad45cf8f1c22dd43dd8aff7340d0d4f39
1,957
py
Python
looking_for_group/discord/views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/discord/views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/discord/views.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
import requests from allauth.socialaccount.providers.discord.views import DiscordOAuth2Adapter from allauth.socialaccount.providers.oauth2.views import OAuth2CallbackView, OAuth2LoginView from .permissions import Permissions from .provider import DiscordProviderWithGuilds # Create your views here. oauth2_login = O...
36.240741
92
0.695452
9fccc2d887be2764a1520f735d223ce37ff4b9e3
10,174
py
Python
src/page/rebasetrackingreview.py
darobin/critic
9d09f3ae45d0b37fb899c5323409c06e8622a2a1
[ "Apache-2.0", "MIT" ]
1
2020-12-04T18:43:10.000Z
2020-12-04T18:43:10.000Z
src/page/rebasetrackingreview.py
darobin/critic
9d09f3ae45d0b37fb899c5323409c06e8622a2a1
[ "Apache-2.0", "MIT" ]
null
null
null
src/page/rebasetrackingreview.py
darobin/critic
9d09f3ae45d0b37fb899c5323409c06e8622a2a1
[ "Apache-2.0", "MIT" ]
null
null
null
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2012 Jens Lindstrm, Opera Software ASA # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
48.218009
166
0.553666
9fccdafbf659c38a1a762c6f3bc28239cbcc246f
3,175
py
Python
parser.py
bitounu/startupy
490a48a5e83900d91c5a2a67bb7fd286112f49f4
[ "Unlicense" ]
null
null
null
parser.py
bitounu/startupy
490a48a5e83900d91c5a2a67bb7fd286112f49f4
[ "Unlicense" ]
null
null
null
parser.py
bitounu/startupy
490a48a5e83900d91c5a2a67bb7fd286112f49f4
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # zalenoci Pythona: BeatifulSoup # instalacja z pakietu # Debian /Ubuntu: apt-get install python-bs4 # albo # easy_install beautifulsoup4 # lub # pip install beautifulsoup4 # skrypt robi spis firm ze stron mambiznes.pl # i wypluwa CSV: # Kolumny: # fid # nazwa - Nazwa fir...
28.097345
122
0.610079
4c7de526802297e77a682fdac5f19a9acc13c428
275
py
Python
contratospr/contracts/manager.py
jycordero/contratospr-api
6778b02b42305aa7ce65c956a0d89029ddd857a4
[ "Apache-2.0" ]
15
2019-02-26T12:40:18.000Z
2020-01-24T00:58:00.000Z
contratospr/contracts/manager.py
jycordero/contratospr-api
6778b02b42305aa7ce65c956a0d89029ddd857a4
[ "Apache-2.0" ]
52
2019-02-13T03:54:34.000Z
2020-01-20T16:39:56.000Z
contratospr/contracts/manager.py
jycordero/contratospr-api
6778b02b42305aa7ce65c956a0d89029ddd857a4
[ "Apache-2.0" ]
6
2019-02-18T13:59:55.000Z
2019-11-30T23:36:43.000Z
from django.db import models from .queryset import ContractQuerySet ContractManager = BaseContractManager.from_queryset(ContractQuerySet)
22.916667
69
0.792727
4c80ff310733bd5d3259086a59e004736e492ea2
1,520
py
Python
tests/integration/test_integration_article.py
pwitab/visma
ffa6698738fcc1be9de727e7fe77cce30310f830
[ "BSD-3-Clause" ]
5
2018-08-10T19:12:48.000Z
2021-07-08T12:43:24.000Z
tests/integration/test_integration_article.py
pwitab/visma
ffa6698738fcc1be9de727e7fe77cce30310f830
[ "BSD-3-Clause" ]
16
2018-06-17T18:51:05.000Z
2021-01-10T10:44:36.000Z
tests/integration/test_integration_article.py
pwitab/visma
ffa6698738fcc1be9de727e7fe77cce30310f830
[ "BSD-3-Clause" ]
3
2019-03-05T15:01:13.000Z
2021-06-15T14:35:37.000Z
import pytest from visma.api import VismaClientException from visma.models import Article, ArticleAccountCoding, Unit
25.762712
98
0.651316
4c825229094a03967edb19104397280b43928ad1
6,549
py
Python
zdata.py
streemline/zmap-tools
064e66636e0d1bc7f47f57a0ab53904e6173497a
[ "BSD-3-Clause" ]
2
2016-12-30T13:54:54.000Z
2022-01-25T00:38:06.000Z
zdata.py
tejado/zmap-tools
064e66636e0d1bc7f47f57a0ab53904e6173497a
[ "BSD-3-Clause" ]
1
2022-01-19T16:16:09.000Z
2022-01-19T16:16:09.000Z
zdata.py
streemline/zmap-tools
064e66636e0d1bc7f47f57a0ab53904e6173497a
[ "BSD-3-Clause" ]
1
2022-01-19T16:15:51.000Z
2022-01-19T16:15:51.000Z
#!/usr/bin/env python3 import sys import ujson as json import json as json_orig import traceback import re import argparse import os.path import operator import requests from threading import Thread from queue import Queue from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib...
31.185714
174
0.616735
4c831cc2e73069abed966a40785b1807f8d8eb10
818
py
Python
tests/test_debianpkg.py
trathborne/nvchecker
d8c26fa66640d46a0bc099cd9f070b7b8c408479
[ "MIT" ]
320
2015-01-11T06:58:09.000Z
2022-03-31T10:26:27.000Z
tests/test_debianpkg.py
trathborne/nvchecker
d8c26fa66640d46a0bc099cd9f070b7b8c408479
[ "MIT" ]
142
2015-06-28T03:09:56.000Z
2022-02-28T06:09:26.000Z
tests/test_debianpkg.py
trathborne/nvchecker
d8c26fa66640d46a0bc099cd9f070b7b8c408479
[ "MIT" ]
68
2015-04-15T05:09:45.000Z
2022-02-23T05:52:47.000Z
# MIT licensed # Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al. # Copyright (c) 2017 Felix Yan <felixonmars@archlinux.org>, et al. from flaky import flaky import pytest pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net]
29.214286
66
0.677262
4c852eb9b907c34839876a0167f2d8033a969748
6,093
py
Python
src/commands/trajectories.py
SpookyWoogin/robot2018
a8ddf6a64b883904b15031e0ae13b2056faed4f5
[ "MIT" ]
1
2018-10-24T21:43:00.000Z
2018-10-24T21:43:00.000Z
src/commands/trajectories.py
SpookyWoogin/robot2018
a8ddf6a64b883904b15031e0ae13b2056faed4f5
[ "MIT" ]
1
2018-03-10T01:25:47.000Z
2018-03-10T03:33:36.000Z
src/commands/trajectories.py
SpookyWoogin/robot2018
a8ddf6a64b883904b15031e0ae13b2056faed4f5
[ "MIT" ]
6
2018-01-13T17:54:31.000Z
2018-02-13T23:46:50.000Z
import csv import math from wpilib import Timer from wpilib.command import Command from commands.statespace import StateSpaceDriveController from data_logger import DataLogger from pidcontroller import PIDController from drivecontroller import DriveController
35.631579
111
0.643689
4c85c3a37cdee1127ce905401fbfe9eb13640820
2,608
py
Python
yateto/codegen/test_framework.py
PhuNH/yateto
bfc7f1faa9b47a1a6a1655cf633c80174b10d0b8
[ "BSD-3-Clause" ]
null
null
null
yateto/codegen/test_framework.py
PhuNH/yateto
bfc7f1faa9b47a1a6a1655cf633c80174b10d0b8
[ "BSD-3-Clause" ]
null
null
null
yateto/codegen/test_framework.py
PhuNH/yateto
bfc7f1faa9b47a1a6a1655cf633c80174b10d0b8
[ "BSD-3-Clause" ]
null
null
null
from abc import ABC, abstractmethod
34.773333
121
0.62615
4c86d36d1ca7f5676ec707c02279a0b7c737bbd9
337
py
Python
shop_thienhi/utils/format_time.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
null
null
null
shop_thienhi/utils/format_time.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
2
2022-03-30T06:34:29.000Z
2022-03-31T06:34:49.000Z
shop_thienhi/utils/format_time.py
Lesson-ThienHi/thienhi_shop
1c595d70299e1fcce12c3610e27b66c89bbadda6
[ "MIT" ]
null
null
null
from datetime import datetime
30.636364
103
0.676558
4c8719fed243367528ac749c01c04b3271e74999
923
py
Python
Algorithms/PCA/solutions.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
null
null
null
Algorithms/PCA/solutions.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
null
null
null
Algorithms/PCA/solutions.py
lcbendall/numerical_computing
565cde92525ea44c55abe933c6419c1543f9800b
[ "CC-BY-3.0" ]
1
2020-12-08T01:19:23.000Z
2020-12-08T01:19:23.000Z
import numpy as np import matplotlib.pyplot as plt from scipy import linalg as la
27.147059
71
0.630553
4c87539de9adc1fe44ae28fbd4feebd9d222ca61
25,502
py
Python
core/agent.py
liruiw/HCG
a928ce7fb0df022cb2ceaeff32925f13de369519
[ "MIT" ]
3
2021-09-29T07:08:21.000Z
2022-01-13T06:04:32.000Z
core/agent.py
liruiw/HCG
a928ce7fb0df022cb2ceaeff32925f13de369519
[ "MIT" ]
1
2021-07-11T04:27:55.000Z
2021-07-11T05:37:01.000Z
core/agent.py
liruiw/HCG
a928ce7fb0df022cb2ceaeff32925f13de369519
[ "MIT" ]
1
2021-07-18T09:35:28.000Z
2021-07-18T09:35:28.000Z
# -------------------------------------------------------- # Licensed under The MIT License [see LICENSE for details] # -------------------------------------------------------- import os import torch import torch.nn.functional as F import numpy as np from core import networks from core.utils import * from core.loss i...
44.661996
161
0.610736
4c8896a63d170ec55dc8e93c9856c824836a264a
1,800
py
Python
environment.py
CorodescuMihnea/NnProject
2767b71145f5f3bb2e84aa37edbb6d58134d679a
[ "MIT" ]
null
null
null
environment.py
CorodescuMihnea/NnProject
2767b71145f5f3bb2e84aa37edbb6d58134d679a
[ "MIT" ]
null
null
null
environment.py
CorodescuMihnea/NnProject
2767b71145f5f3bb2e84aa37edbb6d58134d679a
[ "MIT" ]
null
null
null
import gym import datetime import os import numpy as np from agent import DeepQAgent if __name__ == "__main__": main()
30.508475
98
0.586111
4c8a0d1bb9255782fe923e33bd79defeacecfa0f
1,298
py
Python
tests/serialization/test_deserialization/flows/flow_template.py
dazzag24/prefect
9d36c989c95cbbed091b071932553286edf25bb6
[ "Apache-2.0" ]
null
null
null
tests/serialization/test_deserialization/flows/flow_template.py
dazzag24/prefect
9d36c989c95cbbed091b071932553286edf25bb6
[ "Apache-2.0" ]
null
null
null
tests/serialization/test_deserialization/flows/flow_template.py
dazzag24/prefect
9d36c989c95cbbed091b071932553286edf25bb6
[ "Apache-2.0" ]
null
null
null
import datetime from prefect import task, Flow, Parameter from prefect.engine.cache_validators import partial_parameters_only from prefect.environments.execution import RemoteEnvironment from prefect.environments.storage import Docker from prefect.engine.result_handlers import JSONResultHandler, S3ResultHandler from p...
25.45098
86
0.75963
4c8a63609fc662bd88f868ef8238e6f25e44baa6
9,616
py
Python
blog/models.py
wjhgg/DBlog
59274ac4353068a3795731c3f786748ba9095701
[ "MulanPSL-1.0" ]
null
null
null
blog/models.py
wjhgg/DBlog
59274ac4353068a3795731c3f786748ba9095701
[ "MulanPSL-1.0" ]
null
null
null
blog/models.py
wjhgg/DBlog
59274ac4353068a3795731c3f786748ba9095701
[ "MulanPSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from django.contrib.auth.models import AbstractUser from django.db import models from django.conf import settings # Create your models here. # # class User(AbstractUser): # u_name = models.CharField(max_length=20, verbose_name='', default='') # birthday = models.DateField(v...
32.819113
155
0.683444
4c8baa93c3b0d90c9a3d8b2aa1089d4f3e775bf1
6,385
py
Python
update_supply_chain_information/supply_chains/test/test_extract_csv.py
uktrade/update-supply-chain-information
5cdcc795257b8351cf11b57487b194012ee8886d
[ "MIT" ]
null
null
null
update_supply_chain_information/supply_chains/test/test_extract_csv.py
uktrade/update-supply-chain-information
5cdcc795257b8351cf11b57487b194012ee8886d
[ "MIT" ]
204
2021-05-26T16:15:04.000Z
2022-02-14T05:10:44.000Z
update_supply_chain_information/supply_chains/test/test_extract_csv.py
uktrade/defend-data-capture
5cdcc795257b8351cf11b57487b194012ee8886d
[ "MIT" ]
1
2021-06-26T10:28:30.000Z
2021-06-26T10:28:30.000Z
from io import StringIO from typing import List import os import csv import re import pytest from django.core.management import call_command from django.core.management.base import CommandError from django.core.files.temp import NamedTemporaryFile import accounts.models from supply_chains.management.commands.ingest_c...
29.288991
80
0.618011
4c8ce01c011cb806e29d1c5d44758d2a1fc1e41f
2,909
py
Python
8_1_error.py
stnguyenn/learnpy
4fc201bf461b0f7aa1a111a6a31b27dd492ad969
[ "MIT" ]
null
null
null
8_1_error.py
stnguyenn/learnpy
4fc201bf461b0f7aa1a111a6a31b27dd492ad969
[ "MIT" ]
null
null
null
8_1_error.py
stnguyenn/learnpy
4fc201bf461b0f7aa1a111a6a31b27dd492ad969
[ "MIT" ]
null
null
null
while True: try: x = int(input("Please enter a number: ")) break except ValueError: print("Oops! That was no valid number. Try again...") for cls in [B, C, D]: try: raise cls() except D: print("D") except C: print("C") except B: print("...
19.924658
76
0.60605
4c8d3953fb08de0e0e4a8b653c8af1e5bab0d0e4
250
py
Python
TORS/visualizer/__init__.py
AlgTUDelft/cTORS
1d34c26d912b37a09289d6fe52cb0d9aded6d77d
[ "Apache-2.0" ]
5
2021-04-25T10:40:55.000Z
2022-02-24T14:07:28.000Z
TORS/visualizer/__init__.py
UtrechtUniversity/cTORS
1d34c26d912b37a09289d6fe52cb0d9aded6d77d
[ "Apache-2.0" ]
null
null
null
TORS/visualizer/__init__.py
UtrechtUniversity/cTORS
1d34c26d912b37a09289d6fe52cb0d9aded6d77d
[ "Apache-2.0" ]
1
2022-03-04T05:08:05.000Z
2022-03-04T05:08:05.000Z
# This program has been developed by students from the bachelor Computer Science # at Utrecht University within the Software and Game project course in 2019 # (c) Copyright Utrecht University (Department of Information and Computing Sciences) # NOQA
50
85
0.812
4c8d702182139486c5571a1903ade0f4deb79eeb
9,511
py
Python
donkeycar/parts/lidar.py
bo-rc/donkeycar
7770cc28948ad88b49cbf896d35694a6fa59c545
[ "MIT" ]
null
null
null
donkeycar/parts/lidar.py
bo-rc/donkeycar
7770cc28948ad88b49cbf896d35694a6fa59c545
[ "MIT" ]
1
2019-12-29T23:11:43.000Z
2019-12-29T23:11:43.000Z
donkeycar/parts/lidar.py
bo-rc/donkeycar
7770cc28948ad88b49cbf896d35694a6fa59c545
[ "MIT" ]
null
null
null
""" Lidar """ import time import math import pickle import serial import logging import numpy as np from donkeycar.utils import norm_deg, dist, deg2rad, arr_to_img from PIL import Image, ImageDraw
32.35034
121
0.586899
4c8dcae1615bebff8006d7fba1a12425b310ad35
477
py
Python
engines/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
4
2021-05-31T16:53:35.000Z
2021-11-30T03:03:34.000Z
engines/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
3
2022-02-02T20:41:56.000Z
2022-02-24T11:47:44.000Z
engines/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
null
null
null
from bootstrap.lib.options import Options from bootstrap.lib.logger import Logger from .extract_engine import ExtractEngine from .predict_engine import PredictEngine
34.071429
63
0.660377
4c90072340fcbafd34ed47f1674ba9b82fd3e4b6
121
py
Python
src/daipecore/decorator/tests/notebook_function_fixture.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
1
2021-09-17T09:07:09.000Z
2021-09-17T09:07:09.000Z
src/daipecore/decorator/tests/notebook_function_fixture.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
2
2021-12-20T07:46:33.000Z
2022-02-24T07:02:05.000Z
src/daipecore/decorator/tests/notebook_function_fixture.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
null
null
null
from daipecore.decorator.notebook_function import notebook_function
17.285714
67
0.826446
4c904c7ac1c81ad0f92f7369dfe650d29ed9f316
2,982
py
Python
SNLI/encap_snli_bert.py
jind11/SememePSO-Attack
b29a5663258fd277eff892040106ca63a35bc0e1
[ "MIT" ]
74
2020-05-05T02:36:56.000Z
2022-03-22T20:30:15.000Z
SNLI/encap_snli_bert.py
jind11/SememePSO-Attack
b29a5663258fd277eff892040106ca63a35bc0e1
[ "MIT" ]
6
2020-06-22T23:32:32.000Z
2021-11-30T11:47:36.000Z
SNLI/encap_snli_bert.py
jind11/SememePSO-Attack
b29a5663258fd277eff892040106ca63a35bc0e1
[ "MIT" ]
14
2020-05-13T05:30:54.000Z
2021-06-18T02:00:58.000Z
from SNLI_BERT import ModelTrainer from SNLI_BERT import adjustBatchInputLen from pytorch_transformers import BertTokenizer, BertModel, AdamW, WarmupLinearSchedule from torch import nn import torch import config
38.230769
109
0.571093
4c9085d1d96d921992baf8be9f0b9a1cf28931a4
2,443
py
Python
learn/ML/tensor_flow/cifar_animals.py
nvkhedkar/python-code
a66f383368388953f9d01a46b45fcac69c06543d
[ "Apache-2.0" ]
null
null
null
learn/ML/tensor_flow/cifar_animals.py
nvkhedkar/python-code
a66f383368388953f9d01a46b45fcac69c06543d
[ "Apache-2.0" ]
null
null
null
learn/ML/tensor_flow/cifar_animals.py
nvkhedkar/python-code
a66f383368388953f9d01a46b45fcac69c06543d
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.keras import datasets, layers, models import matplotlib.pyplot as plt import sys num_classes = 10 print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU'))) print("Num CPUs Available: ", len(tf.config.list_physical_devices('CPU'))) print(tf.config.list_physical_d...
35.926471
97
0.690135
4c90ae39bff1dade9d33ca5eca6ea5fdcec366f1
698
py
Python
day-02/part-2/jules.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
16
2017-12-02T11:56:25.000Z
2018-02-10T15:09:23.000Z
day-02/part-2/jules.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
19
2017-12-01T07:54:22.000Z
2017-12-19T17:41:02.000Z
day-02/part-2/jules.py
lypnol/adventofcode-2017
03ced3df3eb80e5c7965c4120e3932919067cb15
[ "MIT" ]
4
2017-12-04T23:58:12.000Z
2018-02-01T08:53:16.000Z
from submission import Submission
34.9
75
0.512894
4c90c659e07e9935f665a0f2295fac0cd75bf175
1,248
py
Python
nrw/aachen.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
12
2022-02-23T11:06:06.000Z
2022-03-04T17:21:44.000Z
nrw/aachen.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
null
null
null
nrw/aachen.py
risklayer/corona-landkreis-crawler
2e82448ff614240365de9493eafa0e6a620ac615
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 ## Tommy from botbase import * _aachen_c = re.compile(r"eit Ende Februar 2020 (?:wurden beim Robert.Koch.Institut \(RKI\) )?insgesamt ([0-9.]+)") _aachen_d = re.compile(r"Die Zahl der gemeldeten Todesflle liegt bei ([0-9.]+)") _aachen_a = re.compile(r"Aktuell sind ([0-9.]+) Menschen nachgewiesen") ...
49.92
117
0.691506
4c92640d168362510593976eed0dde878a84ff03
12,967
py
Python
src/evaluate_massive.py
jamescporter/MACH-Pytorch
32caddcc29541a1eb96dc3781d973b89bacfc2bb
[ "MIT" ]
1
2020-06-06T19:54:47.000Z
2020-06-06T19:54:47.000Z
src/evaluate_massive.py
jamescporter/MACH-Pytorch
32caddcc29541a1eb96dc3781d973b89bacfc2bb
[ "MIT" ]
null
null
null
src/evaluate_massive.py
jamescporter/MACH-Pytorch
32caddcc29541a1eb96dc3781d973b89bacfc2bb
[ "MIT" ]
4
2020-06-06T19:55:03.000Z
2020-08-23T19:56:53.000Z
from mach_utils import * import logging from argparse import ArgumentParser from fc_network import FCNetwork import tqdm from dataset import XCDataset,XCDataset_massive import json from typing import Dict, List from trim_labels import get_discard_set from xclib.evaluation import xc_metrics from xclib.data import data_u...
42.937086
278
0.586797
4c927ebdbaca58badff81390823615cc6fb3db53
5,824
py
Python
src/predict.py
cdc08x/automated-flight-diversion-detection
4c6f2f208e4f54492905f6f550c0c37b4635d360
[ "MIT" ]
null
null
null
src/predict.py
cdc08x/automated-flight-diversion-detection
4c6f2f208e4f54492905f6f550c0c37b4635d360
[ "MIT" ]
null
null
null
src/predict.py
cdc08x/automated-flight-diversion-detection
4c6f2f208e4f54492905f6f550c0c37b4635d360
[ "MIT" ]
null
null
null
import logging predictLogger = logging.getLogger(__name__)
56
580
0.663462
4c92ce244030df317c3a30e338dd9e45f85fd368
192
py
Python
data_collection/gazette/spiders/sc_chapeco.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
454
2018-04-07T03:32:57.000Z
2020-08-17T19:56:22.000Z
data_collection/gazette/spiders/sc_chapeco.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
254
2020-08-18T14:09:43.000Z
2022-03-28T11:30:51.000Z
data_collection/gazette/spiders/sc_chapeco.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
183
2018-04-11T15:09:37.000Z
2020-08-15T18:55:11.000Z
from gazette.spiders.base.fecam import FecamGazetteSpider
24
57
0.765625
4c932b77520032b5bb728a4df1354693ea393c21
3,101
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
bogdan-kovalchuk/CarND-Capstone
1ac1228dac0733f80a13cb378523bb8369289dfd
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
bogdan-kovalchuk/CarND-Capstone
1ac1228dac0733f80a13cb378523bb8369289dfd
[ "MIT" ]
6
2020-11-13T18:39:31.000Z
2022-03-12T00:17:41.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
ChitraChaudhari/SDND-Capstone-Project
4cfb7e94d9b1e337612733330989ec1fbf8c1854
[ "MIT" ]
3
2020-02-17T15:32:55.000Z
2020-02-21T22:36:02.000Z
from styx_msgs.msg import TrafficLight import cv2 import numpy as np import tensorflow as tf from keras.models import load_model import os
39.75641
119
0.594002
4c93974dec5f6d2a04ca20b46bed365d7a5932aa
25,394
py
Python
engine/src/hopeit/server/api.py
leosmerling/hopeit.engine
d95a130b03db4c5c6265d13256e77bf3fa2f6a42
[ "Apache-2.0" ]
null
null
null
engine/src/hopeit/server/api.py
leosmerling/hopeit.engine
d95a130b03db4c5c6265d13256e77bf3fa2f6a42
[ "Apache-2.0" ]
null
null
null
engine/src/hopeit/server/api.py
leosmerling/hopeit.engine
d95a130b03db4c5c6265d13256e77bf3fa2f6a42
[ "Apache-2.0" ]
null
null
null
""" Open API spec creation and server helpers """ import json import re from copy import deepcopy from functools import partial from pathlib import Path from typing import Dict, List, Tuple, Type, Optional, Callable, Awaitable, Union from datetime import date, datetime from aiohttp import web from aiohttp_swagger3 imp...
36.590778
117
0.642356
4c939c9d91ef2f1339d601df09aa932fed49d35e
384
py
Python
testing/nxtpython_x_motion.py
ArVID220u/lego3dcopier
1144352cbee45bae4dea5869c36a513949dc668f
[ "MIT" ]
null
null
null
testing/nxtpython_x_motion.py
ArVID220u/lego3dcopier
1144352cbee45bae4dea5869c36a513949dc668f
[ "MIT" ]
null
null
null
testing/nxtpython_x_motion.py
ArVID220u/lego3dcopier
1144352cbee45bae4dea5869c36a513949dc668f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from xmovement import XMovement import nxt brick = nxt.locator.find_one_brick(debug=True) realport = nxt.motor.PORT_A print("START") #motor.debug_info() xmovement = XMovement(realport, brick) try: while True: position = int(input()) xmovement.set_position(position) ...
13.714286
46
0.703125
4c9417844003b03d92633f2f16b78fb62fd56a2d
1,996
py
Python
appreview/migrations/0001_initial.py
IsaiahKe/awward-mimic
8a5ff40d9acfbdc5323c7e9b6b8e7438f9a85d21
[ "MIT" ]
null
null
null
appreview/migrations/0001_initial.py
IsaiahKe/awward-mimic
8a5ff40d9acfbdc5323c7e9b6b8e7438f9a85d21
[ "MIT" ]
null
null
null
appreview/migrations/0001_initial.py
IsaiahKe/awward-mimic
8a5ff40d9acfbdc5323c7e9b6b8e7438f9a85d21
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-22 09:28 import cloudinary.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields
44.355556
136
0.627255
4c9526462b2989d51a6edf4e3c00fe7a125db0ec
2,477
py
Python
test_accuracy.py
ejmejm/GoHeuristics
9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe
[ "Apache-2.0" ]
1
2017-07-18T22:24:30.000Z
2017-07-18T22:24:30.000Z
test_accuracy.py
ejmejm/GoHeuristics
9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe
[ "Apache-2.0" ]
null
null
null
test_accuracy.py
ejmejm/GoHeuristics
9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe
[ "Apache-2.0" ]
null
null
null
import glob import os import sys from sgfmill.sgfmill import sgf import global_vars_go as gvg import loader import utils import board3d as go_board import numpy as np kifuPath = "./kifu" num_games = gvg.num_games from_game = gvg.from_test_games lb_size = 250. correct = 0 total = 0 num_lb = int((num_g...
38.107692
131
0.63908
4c9540d917ffca6d79c34b67e169110a93828770
714
py
Python
gpx_split/writer.py
mario-s/gpx_split
d043b1a887a4d42205c319b089a4e51594603dbe
[ "Apache-2.0" ]
null
null
null
gpx_split/writer.py
mario-s/gpx_split
d043b1a887a4d42205c319b089a4e51594603dbe
[ "Apache-2.0" ]
null
null
null
gpx_split/writer.py
mario-s/gpx_split
d043b1a887a4d42205c319b089a4e51594603dbe
[ "Apache-2.0" ]
null
null
null
import os import gpxpy import gpxpy.gpx from gpx_split.log_factory import LogFactory
23.8
76
0.62605
4c9630f53ceb58a9bfb694a986d27f1deb6933d1
1,303
py
Python
utils/all_utils.py
RaghuprakashH/classification_Asssignment
ebf507736f0d67b1c0fd8451ca284a2fbee9465e
[ "MIT" ]
null
null
null
utils/all_utils.py
RaghuprakashH/classification_Asssignment
ebf507736f0d67b1c0fd8451ca284a2fbee9465e
[ "MIT" ]
null
null
null
utils/all_utils.py
RaghuprakashH/classification_Asssignment
ebf507736f0d67b1c0fd8451ca284a2fbee9465e
[ "MIT" ]
null
null
null
from typing import cast import pandas as pd import os import numpy as np import glob from sklearn.model_selection import train_test_split
27.723404
133
0.595549
4c96717b178bd17f84a623b5cf3eca004be63ebd
3,882
py
Python
src/isanlp_rst/allennlp_segmenter.py
IINemo/isanlp_rst
2d71b4fa874e6777aa437989024294bf9f6983c0
[ "MIT" ]
1
2020-07-30T08:29:56.000Z
2020-07-30T08:29:56.000Z
src/isanlp_rst/allennlp_segmenter.py
IINemo/isanlp_rst
2d71b4fa874e6777aa437989024294bf9f6983c0
[ "MIT" ]
null
null
null
src/isanlp_rst/allennlp_segmenter.py
IINemo/isanlp_rst
2d71b4fa874e6777aa437989024294bf9f6983c0
[ "MIT" ]
null
null
null
import os import numpy as np from allennlp.predictors import Predictor from isanlp.annotation_rst import DiscourseUnit from symbol_map import SYMBOL_MAP
38.435644
119
0.523442
4c9986463d2e2e151140a1d7be057768191f4a9b
963
py
Python
parser/team26/G26/Instrucciones/DDL/use.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team26/G26/Instrucciones/DDL/use.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team26/G26/Instrucciones/DDL/use.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
import sys sys.path.append('../G26/Instrucciones') sys.path.append('../G26/Utils') sys.path.append('../G26/Librerias/storageManager') from instruccion import * from Lista import * from TablaSimbolos import * from jsonMode import *
32.1
119
0.5919
4c9b0063f6db3d05efa749cbd3914b0058567581
2,337
py
Python
Mundo 3/ex105.py
erickeloi/ExerciciosTreino
f5ac02f45e2eb27d5a8af87fca1227b5c88f523f
[ "MIT" ]
null
null
null
Mundo 3/ex105.py
erickeloi/ExerciciosTreino
f5ac02f45e2eb27d5a8af87fca1227b5c88f523f
[ "MIT" ]
null
null
null
Mundo 3/ex105.py
erickeloi/ExerciciosTreino
f5ac02f45e2eb27d5a8af87fca1227b5c88f523f
[ "MIT" ]
null
null
null
# Exerccio Python 105: Analisando e gerando Dicionrios # Faa um programa que tenha uma funo notas() que pode receber vrias notas de alunos # e vai retornar um dicionrio com as seguintes informaes: # # - Quantidade de notas # - A maior nota # - A menor nota # - A mdia da turma # - A situao (opcional) # # Adicione tambm ...
28.156627
113
0.621737
4c9bc3f10c76957588e5e8306a910512d15f845e
1,410
py
Python
scraper/storage_spiders/halobuyvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/halobuyvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/halobuyvn.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div[@class='product-name']/h1", 'price' : "//div[@class='span8']/div[@class='price-box']/p[@class='special-price']/span[2] | //div[@...
52.222222
207
0.619149
4c9d0b8cbc12d186cf020ee76baabe0196201161
2,741
py
Python
sdks/python/apache_beam/io/external/generate_sequence.py
ByteFlinger/beam
21f1b0dab7ccb35f04bf0a0dc908f45c19a5d8c7
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/io/external/generate_sequence.py
ByteFlinger/beam
21f1b0dab7ccb35f04bf0a0dc908f45c19a5d8c7
[ "Apache-2.0" ]
1
2019-06-17T13:16:42.000Z
2019-06-17T13:16:42.000Z
sdks/python/apache_beam/io/external/generate_sequence.py
ByteFlinger/beam
21f1b0dab7ccb35f04bf0a0dc908f45c19a5d8c7
[ "Apache-2.0" ]
null
null
null
# # 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 us...
36.546667
92
0.725648
4c9d37382d716b5d2f7ff5351463737b4b1e2fce
385
py
Python
config.py
wangyida/voxel-dcgan
def3fc0e5788ef663feb1a37214117b378101da3
[ "MIT" ]
1
2018-02-01T16:13:39.000Z
2018-02-01T16:13:39.000Z
config.py
wangyida/voxel-dcgan
def3fc0e5788ef663feb1a37214117b378101da3
[ "MIT" ]
null
null
null
config.py
wangyida/voxel-dcgan
def3fc0e5788ef663feb1a37214117b378101da3
[ "MIT" ]
1
2020-09-16T08:29:12.000Z
2020-09-16T08:29:12.000Z
nz = 512 # noize vector size nsf = 4 # encoded voxel size, scale factor nvx = 32 # output voxel size batch_size = 64 learning_rate = 2e-4 dataset_path_i = "/media/wangyida/D0-P1/database/ShapeNetCore.v2/*/*/*/model_normalized.binvox.thinned" dataset_path_o = "/media/wangyida/D0-P1/database/ShapeNetCore.v2/*/*/*/model_...
42.777778
103
0.763636
4ca0d80847d16efc73837554e39a67770a6416fc
1,971
py
Python
nailgun/nailgun/test/performance/unit/test_node_group_operations.py
prmtl/fuel-web
3577169e209596a8e4a95d1c41d2dde099a3945f
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/test/performance/unit/test_node_group_operations.py
prmtl/fuel-web
3577169e209596a8e4a95d1c41d2dde099a3945f
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/test/performance/unit/test_node_group_operations.py
prmtl/fuel-web
3577169e209596a8e4a95d1c41d2dde099a3945f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
32.311475
78
0.675292
4ca2201274eaddfe1362c3f7ce25b8cbc37de3da
27
py
Python
db_quick_setup/django/db/backends/sqlite3.py
amezin/django-db-quick-setup
e0c90c8b112b2230b19885e39a92b67b5a7d3819
[ "BSD-2-Clause" ]
1
2016-05-27T14:25:37.000Z
2016-05-27T14:25:37.000Z
db_quick_setup/django/db/backends/sqlite3.py
amezin/django-db-quick-setup
e0c90c8b112b2230b19885e39a92b67b5a7d3819
[ "BSD-2-Clause" ]
null
null
null
db_quick_setup/django/db/backends/sqlite3.py
amezin/django-db-quick-setup
e0c90c8b112b2230b19885e39a92b67b5a7d3819
[ "BSD-2-Clause" ]
null
null
null
from .dummy import Backend
13.5
26
0.814815
4ca24d42104bcea1dfe7cf404fc35427c76c83f0
1,256
py
Python
Solutions/0394.decodeString.py
lyhshang/LeetCode-Solutions
ecd4f193567bf87c9805f5ee871db9a7e1f3e9df
[ "Apache-2.0" ]
null
null
null
Solutions/0394.decodeString.py
lyhshang/LeetCode-Solutions
ecd4f193567bf87c9805f5ee871db9a7e1f3e9df
[ "Apache-2.0" ]
null
null
null
Solutions/0394.decodeString.py
lyhshang/LeetCode-Solutions
ecd4f193567bf87c9805f5ee871db9a7e1f3e9df
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # author:lyh # datetime:2020/5/28 22:28 """ 394. : k[encoded_string] encoded_string k k k 3a 2[4] : s = "3[a]2[bc]", "aaabcbc". s = "3[a2[c]]", "accaccacc". s = "2[abc]3[cd]ef", "abcabccdcdcdef". """ if __name__ == '__main__': print( Solution().decodeString("3[a...
23.259259
72
0.449841
4ca5a9c56553252365bb928f5df0c8cc21a911fd
5,872
py
Python
odin/utils/iterator.py
rnt-pmi/odin
8cfddf04f964393ef30217aa5f4aa61229d7e811
[ "Apache-2.0" ]
4
2021-01-09T10:46:31.000Z
2021-12-16T14:38:06.000Z
emd_with_classes/utils/iterator.py
VidyaKamath1089/odin
da03f9a86cb2c66092815e3a57795be2db9150bd
[ "Apache-2.0" ]
null
null
null
emd_with_classes/utils/iterator.py
VidyaKamath1089/odin
da03f9a86cb2c66092815e3a57795be2db9150bd
[ "Apache-2.0" ]
3
2021-01-09T10:46:15.000Z
2021-05-11T01:33:30.000Z
import os import glob import random from PIL import Image from matplotlib import pyplot as plt from ipywidgets import Button, Output, HBox, VBox, Label, BoundedIntText from IPython.display import Javascript, display
35.804878
118
0.600136
4ca69d037973302f62772df73b1764080320eb80
1,066
py
Python
ahye/lib.py
kopf/ahye
75ab5f3f901feb85a7779365f42e86f76d68083f
[ "Apache-2.0" ]
2
2015-03-29T10:21:36.000Z
2015-11-14T15:36:42.000Z
ahye/lib.py
kopf/ahye
75ab5f3f901feb85a7779365f42e86f76d68083f
[ "Apache-2.0" ]
null
null
null
ahye/lib.py
kopf/ahye
75ab5f3f901feb85a7779365f42e86f76d68083f
[ "Apache-2.0" ]
null
null
null
import magic import os import random import string from ahye.settings import LOCAL_UPLOADS_DIR def guess_file_extension(url): """ Used by the image mirroring service """ url = url.lower() if '.jpg' in url or '.jpeg' in url: return '.jpg' elif '.gif' in url: return '.gif' elif '.pn...
25.380952
81
0.616323
4ca6d1e9adcbfc1659eea6898aaed8b50b3a6d86
3,650
py
Python
editUser/lambda_function.py
LUDecomposition/YouTutor-lambda
8d3e63ff968cef8deae6e8bd725b65614ddfa173
[ "Apache-2.0" ]
null
null
null
editUser/lambda_function.py
LUDecomposition/YouTutor-lambda
8d3e63ff968cef8deae6e8bd725b65614ddfa173
[ "Apache-2.0" ]
null
null
null
editUser/lambda_function.py
LUDecomposition/YouTutor-lambda
8d3e63ff968cef8deae6e8bd725b65614ddfa173
[ "Apache-2.0" ]
null
null
null
import json import boto3 from elasticsearch import Elasticsearch, RequestsHttpConnection from requests_aws4auth import AWS4Auth from boto3.dynamodb.conditions import Key user_table = 'user-profile' dynamodb = boto3.resource('dynamodb') table = dynamodb.Table(user_table) cognito = boto3.client('cognito-idp') region = '...
35.096154
116
0.552329
4ca8d798d7a2b204a20d82a1615b959aa4293d08
1,168
py
Python
pelicanconf.py
fluxoid-org/cyclismo_pelican
388229ac122576171d925171e2556e839f764f64
[ "MIT" ]
null
null
null
pelicanconf.py
fluxoid-org/cyclismo_pelican
388229ac122576171d925171e2556e839f764f64
[ "MIT" ]
null
null
null
pelicanconf.py
fluxoid-org/cyclismo_pelican
388229ac122576171d925171e2556e839f764f64
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals PLUGIN_PATHS = ['plugins'] PLUGINS = ['jinja_filters'] AUTHOR = u'Fluxoid Ltd.' DESCRIPTION = u'Site description' FOOTER_TEXT = u'Copyright &copy; Fluxoid Ltd. 2017' SITENAME = u'Cyclismo by Fluxoid Ltd.' SITEURL = 'http://127.0.0...
24.333333
77
0.704623
4ca9e915a4cd09f2cd968664373f53f1b6e4c084
838
py
Python
bloscpack/constants.py
sachk/bloscpack
c37b02eee0c66f7cfa11a2d0f3e1beb6d43064df
[ "MIT" ]
87
2015-01-30T21:16:25.000Z
2022-03-02T18:52:32.000Z
bloscpack/constants.py
sachk/bloscpack
c37b02eee0c66f7cfa11a2d0f3e1beb6d43064df
[ "MIT" ]
91
2015-02-22T17:54:17.000Z
2022-01-27T14:23:15.000Z
bloscpack/constants.py
sachk/bloscpack
c37b02eee0c66f7cfa11a2d0f3e1beb6d43064df
[ "MIT" ]
20
2015-02-21T15:07:39.000Z
2022-03-02T18:52:34.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim :set ft=py: import blosc from .compat_util import (OrderedDict, ) # miscellaneous FORMAT_VERSION = 3 MAGIC = b'blpk' EXTENSION = '.blp' # header lengths BLOSC_HEADER_LENGTH = 16 BLOSCPACK_HEADER_LENGTH = 32 METADATA_HEADER_LENGTH = 32 ...
17.829787
43
0.577566
4ca9ec6965d0d2705091310ae77f83d79c68ebb5
2,595
py
Python
nn_interpretability/interpretation/deconv/deconv_partial_reconstruction.py
miquelmn/nn_interpretability
2b5d2b4102016189743e09f1f3a56f2ecddfde98
[ "MIT" ]
41
2020-10-13T18:46:32.000Z
2022-02-21T15:52:50.000Z
nn_interpretability/interpretation/deconv/deconv_partial_reconstruction.py
miquelmn/nn_interpretability
2b5d2b4102016189743e09f1f3a56f2ecddfde98
[ "MIT" ]
4
2021-07-11T12:38:03.000Z
2022-03-08T14:47:38.000Z
nn_interpretability/interpretation/deconv/deconv_partial_reconstruction.py
miquelmn/nn_interpretability
2b5d2b4102016189743e09f1f3a56f2ecddfde98
[ "MIT" ]
7
2020-10-21T13:03:16.000Z
2022-03-07T11:45:00.000Z
import torch import torch.nn as nn from torch.nn import Module from torchvision import transforms from nn_interpretability.interpretation.deconv.deconv_base import DeconvolutionBase
43.25
138
0.660886
4caafefdae30664c014954671a3e827965070da3
68
py
Python
test/files/first_spider.py
mawentao007/reading_grab
a8b64d235d60e5c895e70f59739888f6748d4407
[ "MIT" ]
null
null
null
test/files/first_spider.py
mawentao007/reading_grab
a8b64d235d60e5c895e70f59739888f6748d4407
[ "MIT" ]
null
null
null
test/files/first_spider.py
mawentao007/reading_grab
a8b64d235d60e5c895e70f59739888f6748d4407
[ "MIT" ]
null
null
null
from grab.spider import Spider
13.6
30
0.764706
4cab4a8359dd4ce2c56dafb5af2f65badffe704e
45
py
Python
vnpy_oracle/__init__.py
noranhe/vnpy_oracle
73c2ce070f36703e78af752ce8483f8cd87cf9fa
[ "MIT" ]
2
2021-04-06T14:25:35.000Z
2021-07-10T02:04:59.000Z
vnpy_oracle/__init__.py
noranhe/vnpy_oracle
73c2ce070f36703e78af752ce8483f8cd87cf9fa
[ "MIT" ]
null
null
null
vnpy_oracle/__init__.py
noranhe/vnpy_oracle
73c2ce070f36703e78af752ce8483f8cd87cf9fa
[ "MIT" ]
1
2021-04-06T09:47:48.000Z
2021-04-06T09:47:48.000Z
from .oracle_database import database_manager
45
45
0.911111
4cad15e70b748bdb4e072d4e8e11d1a0d8e91b07
269
py
Python
irrd/storage/__init__.py
mirceaulinic/irrd
24cf8812cabe46ea7eaff1c43c9b6a029c30f11c
[ "BSD-2-Clause" ]
null
null
null
irrd/storage/__init__.py
mirceaulinic/irrd
24cf8812cabe46ea7eaff1c43c9b6a029c30f11c
[ "BSD-2-Clause" ]
null
null
null
irrd/storage/__init__.py
mirceaulinic/irrd
24cf8812cabe46ea7eaff1c43c9b6a029c30f11c
[ "BSD-2-Clause" ]
null
null
null
import sqlalchemy as sa import ujson from sqlalchemy.pool import NullPool from irrd.conf import get_setting
17.933333
38
0.717472
4cadcda3bac884ab250a8ab928b7b959bbc5ce4c
333
py
Python
monitor/nagios_check.py
caoghui/python
ca36be7d47bb8abe0561eef1e364a1edcae05088
[ "MIT" ]
null
null
null
monitor/nagios_check.py
caoghui/python
ca36be7d47bb8abe0561eef1e364a1edcae05088
[ "MIT" ]
null
null
null
monitor/nagios_check.py
caoghui/python
ca36be7d47bb8abe0561eef1e364a1edcae05088
[ "MIT" ]
null
null
null
import sys import json import base64 status = sys.argv[1] if status.lower() == "warnig": print('Status is WARN') exit(1) elif status.lower() == 'critical': print('Status is CRITICAL') exit(2) elif status.lower() == 'unknown': print('Status is UNKNOWN') exit(3) else: print('Status is OK') ...
15.857143
34
0.618619
4caf7b9a3203087c9923cbdada0e045dc5dd66e5
15,804
py
Python
operations_api/v1/modelform/utils.py
Mirantis/python-operations-api
65cc9bfe04037f2b70d272a33d9729219ecdc116
[ "Apache-2.0" ]
null
null
null
operations_api/v1/modelform/utils.py
Mirantis/python-operations-api
65cc9bfe04037f2b70d272a33d9729219ecdc116
[ "Apache-2.0" ]
null
null
null
operations_api/v1/modelform/utils.py
Mirantis/python-operations-api
65cc9bfe04037f2b70d272a33d9729219ecdc116
[ "Apache-2.0" ]
1
2018-10-04T16:46:25.000Z
2018-10-04T16:46:25.000Z
import crypt import io import json import logging import re import requests import uuid import yaml from flask import current_app as app from base64 import b64encode from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.backends imp...
31.991903
108
0.606239
4cb09e1fb81ed468b94d37828ac3a20046aaccd1
416
py
Python
Contest/ABC086/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC086/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/ABC086/d/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # 2 S [x1, x2) [y1, y2) import numpy as np _, *d = open(0) n, k = map(int, _.split()) B = np.zeros((2*k, 2*k)) for e in d: *z, c = e.split() x, y = map(int, z) B[x % (2*k)][(y + k * (z == "W")) % (2*k)] += 1 B.cumsum(axis = 0) B.cumsum(axis = 1) B = np.tile(B, (2,2)) print(B) #
23.111111
56
0.485577
4cb0e7a0a07eb711d71379b5e3128a9be7f0538d
7,374
py
Python
prepare_data_file_cluster.py
prise-3d/LSTM-noise-detection
a468e6a142a2baa64bbbaba8469cb452c2f18fe3
[ "MIT" ]
2
2021-03-15T12:24:28.000Z
2022-03-01T20:48:19.000Z
prepare_data_file_cluster.py
prise-3d/LSTM-noise-detection
a468e6a142a2baa64bbbaba8469cb452c2f18fe3
[ "MIT" ]
null
null
null
prepare_data_file_cluster.py
prise-3d/LSTM-noise-detection
a468e6a142a2baa64bbbaba8469cb452c2f18fe3
[ "MIT" ]
null
null
null
# main imports import numpy as np import pandas as pd import sys, os, argparse import joblib # image processing from PIL import Image from ipfml import utils from ipfml.processing import transform, segmentation, compression # modules and config imports sys.path.insert(0, '') # trick to enable import of main folder mo...
32.628319
150
0.597505
4cb10ffb4a0caa2e9be7fffbd0ef91a1cb12509a
2,699
py
Python
applications/CoSimulationApplication/custom_data_structure/pyKratos/TriangleElement.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
2
2019-10-25T09:28:10.000Z
2019-11-21T12:51:46.000Z
applications/CoSimulationApplication/custom_data_structure/pyKratos/TriangleElement.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
13
2019-10-07T12:06:51.000Z
2020-02-18T08:48:33.000Z
applications/CoSimulationApplication/custom_data_structure/pyKratos/TriangleElement.py
lcirrott/Kratos
8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea
[ "BSD-4-Clause" ]
null
null
null
from __future__ import print_function, absolute_import, division # makes these scripts backward compatible with python 2.6 and 2.7 # pyKratos imports from .Element import Element # Other imports import numpy as np
36.972603
131
0.609485
4cb24a662344c757d394dd28aa505276b9b46ee7
971
py
Python
saleor/graphql/account/dataloaders.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/graphql/account/dataloaders.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/graphql/account/dataloaders.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
from collections import defaultdict from ...account.models import Address, CustomerEvent, User from ..core.dataloaders import DataLoader
30.34375
72
0.725026
4cb2cdedd09079e23a93411498c4e4df1b5bb2ca
11,770
py
Python
neurox/data/representations.py
qcri/NeuroX
a56528231f6514412f3703af48effce1404cb069
[ "BSD-3-Clause" ]
87
2018-12-12T11:58:21.000Z
2022-03-26T19:19:46.000Z
neurox/data/representations.py
qcri/NeuroX
a56528231f6514412f3703af48effce1404cb069
[ "BSD-3-Clause" ]
16
2019-07-08T23:45:18.000Z
2022-03-30T14:46:40.000Z
neurox/data/representations.py
qcri/NeuroX
a56528231f6514412f3703af48effce1404cb069
[ "BSD-3-Clause" ]
15
2019-02-12T08:52:35.000Z
2022-03-15T13:13:32.000Z
"""Utility functions to manage representations. This module contains functions that will help in managing extracted representations, specifically on sub-word based data. """ import numpy as np from tqdm import tqdm def bpe_get_avg_activations(tokens, activations): """Aggregates activations by averaging assuming ...
34.017341
96
0.615293
4cb312593753b7aa0dbd1194d0ea52750711b7d9
2,298
py
Python
src/application/model/matkaroute.py
arpejupe/matkanaattori
d255a05baa1f856bc3f0a0254fe8af5c7b0fb91d
[ "BSD-3-Clause" ]
null
null
null
src/application/model/matkaroute.py
arpejupe/matkanaattori
d255a05baa1f856bc3f0a0254fe8af5c7b0fb91d
[ "BSD-3-Clause" ]
null
null
null
src/application/model/matkaroute.py
arpejupe/matkanaattori
d255a05baa1f856bc3f0a0254fe8af5c7b0fb91d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from urllib import urlencode from xml.etree import ElementTree from requests import get from datetime import datetime from pytz import timezone matka_api = "http://api.matka.fi/?" matka_api_timezone = timezone("Europe/Helsinki") api_user = "matkanaattori" api_pass = "ties532soa" if __name__ =...
35.353846
99
0.627067
4cb35be46e8b753fc4c3da524508ad7692d3c234
319
py
Python
numba/__init__.py
teoliphant/numba
a2a05737b306853c86c61ef6620c2cc43cb28c18
[ "BSD-2-Clause" ]
3
2015-08-28T21:13:58.000Z
2022-01-21T17:02:14.000Z
numba/__init__.py
teoliphant/numba
a2a05737b306853c86c61ef6620c2cc43cb28c18
[ "BSD-2-Clause" ]
null
null
null
numba/__init__.py
teoliphant/numba
a2a05737b306853c86c61ef6620c2cc43cb28c18
[ "BSD-2-Clause" ]
null
null
null
import sys try: from . import minivect except ImportError: print >>sys.stderr, "Did you forget to update submodule minivect?" print >>sys.stderr, "Run 'git submodule init' followed by 'git submodule update'" raise from . import _numba_types from ._numba_types import * __all__ = _numba_types.__all__
22.785714
85
0.733542
4cb37a738ea8912f45bc6b8e68783253722ed608
580
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/maximize-the-confusion-of-an-exam.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/maximize-the-confusion-of-an-exam.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/maximize-the-confusion-of-an-exam.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(1) import collections
24.166667
59
0.512069
4cb38436ee43de94cce46d68eb49a8de9473c484
32
py
Python
homeassistant/components/eliqonline/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/eliqonline/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/eliqonline/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The eliqonline component."""
16
31
0.6875
4cba3149350ff3b94810297495c09822eb3b9b0f
1,587
py
Python
src/zope/app/authentication/browser/loginform.py
zopefoundation/zope.app.authentication
1100f938aa0e8d9b4d2378ce2534c4a3c0d11c00
[ "ZPL-2.1" ]
null
null
null
src/zope/app/authentication/browser/loginform.py
zopefoundation/zope.app.authentication
1100f938aa0e8d9b4d2378ce2534c4a3c0d11c00
[ "ZPL-2.1" ]
4
2017-05-01T12:56:58.000Z
2021-01-13T07:35:20.000Z
src/zope/app/authentication/browser/loginform.py
zopefoundation/zope.app.authentication
1100f938aa0e8d9b4d2378ce2534c4a3c0d11c00
[ "ZPL-2.1" ]
1
2015-04-03T07:28:05.000Z
2015-04-03T07:28:05.000Z
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
33.0625
78
0.617517
4cba3608e64aeaa57fb925f5a77219c212e22170
23
py
Python
ncoreparser/constant.py
gszabi15/ncoreparser
cd7856a962ac82e31ae840ada77f6c25b2963919
[ "Apache-2.0" ]
10
2020-09-03T23:17:33.000Z
2022-03-05T11:37:19.000Z
ncoreparser/constant.py
gszabi15/ncoreparser
cd7856a962ac82e31ae840ada77f6c25b2963919
[ "Apache-2.0" ]
12
2020-10-29T14:57:13.000Z
2022-03-17T00:44:09.000Z
ncoreparser/constant.py
gszabi15/ncoreparser
cd7856a962ac82e31ae840ada77f6c25b2963919
[ "Apache-2.0" ]
1
2021-11-17T16:32:21.000Z
2021-11-17T16:32:21.000Z
TORRENTS_PER_PAGE = 25
11.5
22
0.826087
4cbb043ced4f02b5698668dfec4c28d61acb742f
3,320
py
Python
src/py/icosahedronlib/LinearSubdivisionFilter.py
lbumbolo/ShapeVariationAnalyzer
976e22cbacc87fb593d92e24cbdbba6c99a64060
[ "Apache-2.0" ]
5
2018-09-05T19:49:35.000Z
2022-03-17T16:48:37.000Z
src/py/icosahedronlib/LinearSubdivisionFilter.py
lbumbolo/ShapeVariationAnalyzer
976e22cbacc87fb593d92e24cbdbba6c99a64060
[ "Apache-2.0" ]
19
2018-02-15T21:15:53.000Z
2022-03-29T21:15:53.000Z
src/py/icosahedronlib/LinearSubdivisionFilter.py
lbumbolo/ShapeVariationAnalyzer
976e22cbacc87fb593d92e24cbdbba6c99a64060
[ "Apache-2.0" ]
9
2018-02-23T21:17:25.000Z
2022-03-25T15:23:57.000Z
import vtk import numpy as np
32.54902
123
0.708434
4cbb33c2f4e123b773b6ed31e96a7f22c0768349
1,310
py
Python
test/test_tpo_data_dt_os_erx_patient_prescriptions_patient_prescription_dto.py
my-workforce/TMB-SDK
bea9e8dd82240c30f7809b052a4a612202d4e607
[ "CECILL-B" ]
null
null
null
test/test_tpo_data_dt_os_erx_patient_prescriptions_patient_prescription_dto.py
my-workforce/TMB-SDK
bea9e8dd82240c30f7809b052a4a612202d4e607
[ "CECILL-B" ]
null
null
null
test/test_tpo_data_dt_os_erx_patient_prescriptions_patient_prescription_dto.py
my-workforce/TMB-SDK
bea9e8dd82240c30f7809b052a4a612202d4e607
[ "CECILL-B" ]
null
null
null
# coding: utf-8 """ Transaction Management Bus (TMB) API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: V3.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import a...
32.75
178
0.789313
4cbc5d49a4a57adb7a4b7fa33c57c90c98c8a93f
11,214
py
Python
pyhsslms/hsslms.py
russhousley/pyhsslms
a9c6a9f5ba61beba16bf95d34d238c90ce05ba0a
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
pyhsslms/hsslms.py
russhousley/pyhsslms
a9c6a9f5ba61beba16bf95d34d238c90ce05ba0a
[ "Python-2.0", "OLDAP-2.7" ]
1
2020-07-14T14:29:09.000Z
2020-07-14T14:31:06.000Z
pyhsslms/hsslms.py
russhousley/pyhsslms
a9c6a9f5ba61beba16bf95d34d238c90ce05ba0a
[ "Python-2.0", "OLDAP-2.7" ]
2
2022-01-20T04:14:40.000Z
2022-03-03T04:08:16.000Z
#!/usr/bin/env python # hsslms.py # # This provides a command line interface for the pyhsslms.py # implementation of HSS/LMS Hash-based Signatures as defined # in RFC 8554. # # # Copyright (c) 2020-2021, Vigil Security, LLC # All rights reserved. # # Redistribution and use, with or without modification, are permitted ...
43.130769
82
0.57883
4cbe3e42d77987567a49f38ef020ff5814e45f81
5,273
py
Python
emoji/spec_parser.py
capnfabs/emoji-haiku
cacf011424a9d15b8cf6f17b2b815a85cf2b97f2
[ "Apache-2.0" ]
4
2017-04-16T01:07:31.000Z
2020-05-02T18:29:45.000Z
emoji/spec_parser.py
capnfabs/emoji-haiku
cacf011424a9d15b8cf6f17b2b815a85cf2b97f2
[ "Apache-2.0" ]
null
null
null
emoji/spec_parser.py
capnfabs/emoji-haiku
cacf011424a9d15b8cf6f17b2b815a85cf2b97f2
[ "Apache-2.0" ]
null
null
null
"""Methods for parsing the unicode spec, and retrieving a list of Emoji and Modifiers. Note that the model of 'Emoji' here isn't sufficiently general to represent everything in the spec - a visual / user-facing emoji could be, for example, a super complicated Zero-Width-Join sequence. I wanted to go in favor of ease-o...
42.524194
100
0.682344
4cc29d6c2c7572e3d56f021b79147757d89d9e20
4,212
py
Python
setup.py
aricci10/superpose3d
36844b156d27d0f3c4a50757fe48f7a4d903f85e
[ "MIT" ]
null
null
null
setup.py
aricci10/superpose3d
36844b156d27d0f3c4a50757fe48f7a4d903f85e
[ "MIT" ]
null
null
null
setup.py
aricci10/superpose3d
36844b156d27d0f3c4a50757fe48f7a4d903f85e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup setup( name='superpose3d', packages=['superpose3d'], description='Diamond\'s 1988 rotational superposition algorithm (+scale tranforms)', long_description='''Register 3-D point clouds using rotation, translation, and scale transformations. ## Usage ...
39.364486
408
0.66548
4cc2cc43040196bd3c73760172314b2b65f1c12f
602
py
Python
project/server/main/views.py
jkassel/cerebro
387cdde4e5b95ca30b14d05526bc6357e5cfd418
[ "MIT" ]
null
null
null
project/server/main/views.py
jkassel/cerebro
387cdde4e5b95ca30b14d05526bc6357e5cfd418
[ "MIT" ]
null
null
null
project/server/main/views.py
jkassel/cerebro
387cdde4e5b95ca30b14d05526bc6357e5cfd418
[ "MIT" ]
null
null
null
# project/server/main/views.py import os ################# #### imports #### ################# from flask import render_template, Blueprint from project.server import app ################ #### config #### ################ main_blueprint = Blueprint('main', __name__,) ################ #### routes #### ###########...
17.705882
61
0.566445
4cc36da902f9ddb43d573a13ddbf89c3ff2bf7a5
5,598
py
Python
src/dircifrar/main.py
ctchou/dircifrar
6bfd0916613c8a4e4ff5058969824f59102fa939
[ "MIT" ]
1
2021-08-28T20:09:15.000Z
2021-08-28T20:09:15.000Z
src/dircifrar/main.py
ctchou/dircifrar
6bfd0916613c8a4e4ff5058969824f59102fa939
[ "MIT" ]
null
null
null
src/dircifrar/main.py
ctchou/dircifrar
6bfd0916613c8a4e4ff5058969824f59102fa939
[ "MIT" ]
null
null
null
from .__init__ import ( __pkg_name__, __pkg_version__, __pkg_description__, ) import sys if sys.version_info < (3, 6): sys.stdout.write(f"Sorry, {__pkg_name__} requires Python 3.6 or above\n") sys.exit(1) from .dirconfig import ( init_config, crypt_change_password, crypt_rebuild_meta,...
38.606897
97
0.634155
4cc491a284af54f47be381a4be2778e24923e8cc
129
py
Python
jumpscale/packages/threebot_deployer/models/backup_tokens.py
zaibon/js-sdk
cd1d26f2c3343884c1927ceef7c1e12e3f7da905
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/packages/threebot_deployer/models/backup_tokens.py
zaibon/js-sdk
cd1d26f2c3343884c1927ceef7c1e12e3f7da905
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/packages/threebot_deployer/models/backup_tokens.py
zaibon/js-sdk
cd1d26f2c3343884c1927ceef7c1e12e3f7da905
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from jumpscale.core.base import Base, fields
18.428571
44
0.713178
4cc65d6319b85c1557e7a1f68dfdd66a75070baf
3,511
py
Python
mlexpt/data/dataload.py
stephenhky/ml-experiment
2e0bd7945c3f9caed6dcecc1bdc49dbeec24d6ad
[ "MIT" ]
4
2020-04-28T09:26:59.000Z
2021-10-05T08:29:18.000Z
mlexpt/data/dataload.py
stephenhky/ml-experiment
2e0bd7945c3f9caed6dcecc1bdc49dbeec24d6ad
[ "MIT" ]
null
null
null
mlexpt/data/dataload.py
stephenhky/ml-experiment
2e0bd7945c3f9caed6dcecc1bdc49dbeec24d6ad
[ "MIT" ]
null
null
null
import os import tempfile from glob import glob import json from collections import OrderedDict import numpy as np from .adding_features import adding_no_features def process_data(traindatafilepath, qual_features, binary_features, quant_features, target_label, feature_adder=addi...
39.449438
124
0.55084
4cc72ebbf1d2a395ab61b0a358ef14e07350a1c2
333
py
Python
Server/model/account.py
devArtoria/-Awesome-GraphQL-
db13f235b2d1e6aeee6e858a2c682b7f86bd7062
[ "MIT" ]
27
2019-03-20T14:13:09.000Z
2022-03-18T20:36:39.000Z
Server/model/account.py
devArtoria/-Awesome-GraphQL-
db13f235b2d1e6aeee6e858a2c682b7f86bd7062
[ "MIT" ]
5
2018-04-17T10:54:13.000Z
2018-09-25T10:30:29.000Z
Server/model/account.py
devArtoria/-Awesome-GraphQL-
db13f235b2d1e6aeee6e858a2c682b7f86bd7062
[ "MIT" ]
14
2019-02-26T05:43:39.000Z
2022-03-01T15:39:26.000Z
from mongoengine import * from datetime import datetime
33.3
70
0.747748
4cc9907c3e6982c53be1c37022a333762d1c73f3
473
py
Python
users/migrations/0010_auto_20200321_1902.py
jakubzadrozny/hackcrisis
4fe27423cda013bf01d5e9d3fc734c707f06b708
[ "MIT" ]
null
null
null
users/migrations/0010_auto_20200321_1902.py
jakubzadrozny/hackcrisis
4fe27423cda013bf01d5e9d3fc734c707f06b708
[ "MIT" ]
4
2021-03-19T01:03:55.000Z
2021-06-10T18:44:03.000Z
users/migrations/0010_auto_20200321_1902.py
jakubzadrozny/hackcrisis
4fe27423cda013bf01d5e9d3fc734c707f06b708
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-21 19:02 from django.db import migrations import phonenumber_field.modelfields
23.65
107
0.655391