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
1a9d7cda48b1e296206076d3d46cfc71b4de07c2
1,852
py
Python
ytdlscript.py
antsareflying/ytdlscript
e03e965bfab1b7148982ea9fef04d06b6b5a84c1
[ "MIT" ]
null
null
null
ytdlscript.py
antsareflying/ytdlscript
e03e965bfab1b7148982ea9fef04d06b6b5a84c1
[ "MIT" ]
null
null
null
ytdlscript.py
antsareflying/ytdlscript
e03e965bfab1b7148982ea9fef04d06b6b5a84c1
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 Moon Seongmu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
38.583333
418
0.759179
1a9dcbe44706cc17ddb463f1054c5280c08ef119
36,033
py
Python
grid_generator/body_fitted_grid_generator.py
Mayu14/2D_comp_viscos
a62633d8684b218b52e39d47a13717a1edfa4a46
[ "MIT" ]
1
2020-05-08T18:00:28.000Z
2020-05-08T18:00:28.000Z
grid_generator/body_fitted_grid_generator.py
Mayu14/2D_comp_viscos
a62633d8684b218b52e39d47a13717a1edfa4a46
[ "MIT" ]
null
null
null
grid_generator/body_fitted_grid_generator.py
Mayu14/2D_comp_viscos
a62633d8684b218b52e39d47a13717a1edfa4a46
[ "MIT" ]
1
2020-02-20T09:26:27.000Z
2020-02-20T09:26:27.000Z
# coding: utf-8 from math import sqrt from scipy import interpolate from scipy.spatial import Delaunay import numpy as np from numpy.linalg import norm from naca_4digit_test import Naca_4_digit, Naca_5_digit from joukowski_wing import joukowski_wing_complex, karman_trefftz_wing_complex import matplotlib.pyplot as plt i...
38.537968
219
0.532512
1a9e25b8e38841c4bac70ac6ccb33656070cf168
868
py
Python
slot/d/water.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
slot/d/water.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
slot/d/water.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
from slot import * DJ = Dragonyule_Jeanne H_Maritimus = Halloween_Maritimus
20.186047
45
0.559908
1a9e2fd106422503a1e5fac850661d45c2df7299
4,238
py
Python
cmp/gnfa.py
kikeXD/Grammar-Analyser
ca8f35c0e36e3d8181dab78bb0231e101f953437
[ "MIT" ]
1
2020-02-13T16:52:57.000Z
2020-02-13T16:52:57.000Z
cmp/gnfa.py
kikeXD/Grammar-Analyser
ca8f35c0e36e3d8181dab78bb0231e101f953437
[ "MIT" ]
null
null
null
cmp/gnfa.py
kikeXD/Grammar-Analyser
ca8f35c0e36e3d8181dab78bb0231e101f953437
[ "MIT" ]
1
2020-02-13T16:44:26.000Z
2020-02-13T16:44:26.000Z
from cmp.regex import Regex from cmp.nfa_dfa import NFA import pydot from pprint import pprint
37.175439
119
0.51345
1a9e301a01427b553ef254d21db7775e0f228100
4,203
py
Python
python/venv/lib/python2.7/site-packages/openstackclient/tests/image/v2/fakes.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
python/venv/lib/python2.7/site-packages/openstackclient/tests/image/v2/fakes.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
python/venv/lib/python2.7/site-packages/openstackclient/tests/image/v2/fakes.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
# Copyright 2013 Nebula Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
27.116129
121
0.520343
1aa1225f975c24c5462e87cbb4bbe01830ca0112
2,557
py
Python
wwyfcs/utils/create_examples.py
shc558/wwyfcs
05ca6c94f59f7317e4e597d3df18f549dcadf7c1
[ "MIT" ]
1
2021-03-24T18:00:03.000Z
2021-03-24T18:00:03.000Z
wwyfcs/utils/create_examples.py
shc558/wwyfcs
05ca6c94f59f7317e4e597d3df18f549dcadf7c1
[ "MIT" ]
null
null
null
wwyfcs/utils/create_examples.py
shc558/wwyfcs
05ca6c94f59f7317e4e597d3df18f549dcadf7c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import os import pandas as pd from sklearn.model_selection import train_test_split # load data and tag lines with source characters' names # create response sets where each row includes n previous responses as context if __name__ == "__main__": main()
36.014085
96
0.678138
1aa1a697528836b8f497782c36ef0f059f0914be
2,445
py
Python
dottyDrawings.py
riyap/DottyDrawings
33691c390ef939507e6499c56ab3e0f33485734f
[ "MIT" ]
null
null
null
dottyDrawings.py
riyap/DottyDrawings
33691c390ef939507e6499c56ab3e0f33485734f
[ "MIT" ]
null
null
null
dottyDrawings.py
riyap/DottyDrawings
33691c390ef939507e6499c56ab3e0f33485734f
[ "MIT" ]
null
null
null
from tkinter import * color = 'black' tk = Tk() tk.title( "Dotty Drawings") frame = Frame(tk) frame.pack() r = Button(frame, bg = 'red', command = red, width = 5) r.pack(side = LEFT) r = Button(frame, bg = 'orange', command = orange , width = 5) r.pack(side = LEFT) r = Button(frame, bg = 'yellow', comman...
26.010638
77
0.592229
1aa1c12c8ef5bbdcb0a900983b817113c8754fc5
1,080
py
Python
metrics.py
mrhhodd/capsnet-keras
3e4f9024552072f27d124dda3ff346855c1ca5ca
[ "MIT" ]
null
null
null
metrics.py
mrhhodd/capsnet-keras
3e4f9024552072f27d124dda3ff346855c1ca5ca
[ "MIT" ]
null
null
null
metrics.py
mrhhodd/capsnet-keras
3e4f9024552072f27d124dda3ff346855c1ca5ca
[ "MIT" ]
null
null
null
from tensorflow.keras import backend as K EPSILON = K.epsilon()
30.857143
76
0.641667
1aa1ca7c87724c54b585e2a6a3bad71ad929799e
2,598
py
Python
tests/test_envfile.py
jaysonsantos/prettyconf
3c6a17340d040b6b39b7185b888f0a2bdc04fb0c
[ "MIT" ]
null
null
null
tests/test_envfile.py
jaysonsantos/prettyconf
3c6a17340d040b6b39b7185b888f0a2bdc04fb0c
[ "MIT" ]
null
null
null
tests/test_envfile.py
jaysonsantos/prettyconf
3c6a17340d040b6b39b7185b888f0a2bdc04fb0c
[ "MIT" ]
null
null
null
import os from prettyconf.loaders import EnvFile from .base import BaseTestCase
38.776119
108
0.667821
1aa29587a4eba407d37fdbf858f15f5c5df32ab9
68
py
Python
geotrek/feedback/tests/__init__.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/tests/__init__.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/tests/__init__.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
from .test_views import * # NOQA from .test_email import * # NOQA
22.666667
33
0.705882
1aa3b2b635b5e0fe136530f149a2852716edea06
163
py
Python
ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
#Imports from bisection import * #Constants LowerLimit = 0.0 UpperLimit = 10.0 Root = bisection(f,LowerLimit,UpperLimit) print Root
12.538462
41
0.711656
1aa4b3a113ac926ca89f8c9615ae6678dd7f9cd5
5,622
py
Python
hand_of_ros/roomba_control/scripts/create_controller.py
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
hand_of_ros/roomba_control/scripts/create_controller.py
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
hand_of_ros/roomba_control/scripts/create_controller.py
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from Tkinter import * import tkMessageBox import tkSimpleDialog import struct import sys, glob # for listing serial ports import rospy from roomba_control.srv import * send_mode = None connection = None TEXTWIDTH = 40 # window width, in characters TEXTHEIGHT = 16 # window height, in lines V...
31.58427
98
0.544468
1aa5ff8d79fad0cf1844b76d7b3b8225587726b3
1,248
py
Python
search/nlp/qu/alpha_numbers.py
octabytes/search
750124d2de0e349249e3183daccc83ba5a82af36
[ "Apache-2.0" ]
null
null
null
search/nlp/qu/alpha_numbers.py
octabytes/search
750124d2de0e349249e3183daccc83ba5a82af36
[ "Apache-2.0" ]
null
null
null
search/nlp/qu/alpha_numbers.py
octabytes/search
750124d2de0e349249e3183daccc83ba5a82af36
[ "Apache-2.0" ]
null
null
null
alpha_numbers = [ { "alpha": "one", "number": 1 }, { "alpha": "two", "number": 2 }, { "alpha": "three", "number": 3 }, { "alpha": "four", "number": 4 }, { "alpha": "five", "number": 5 }, { ...
14.682353
51
0.310096
1aa66e4a88e8039f0db550652234c2a41fa7e240
2,510
py
Python
pdfmerge3/pdfmerge3.py
marciojmo/pdfmerge3
f1fa598000dd304fc85bcb60bb72e35e1121feea
[ "MIT" ]
null
null
null
pdfmerge3/pdfmerge3.py
marciojmo/pdfmerge3
f1fa598000dd304fc85bcb60bb72e35e1121feea
[ "MIT" ]
null
null
null
pdfmerge3/pdfmerge3.py
marciojmo/pdfmerge3
f1fa598000dd304fc85bcb60bb72e35e1121feea
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Merge pdf files into a single file. EXAMPLES pdfmerge3 -o output.pdf Merges all pdf files from the current folder in lexicographic order and put the result in output.pdf pdfmerge3 -o output.pdf file1.pdf file2.pdf file3.pdf Merges file1.pdf, file2.pdf, file3.pdf (in t...
30.987654
111
0.657371
1aa707c8a85977c3cb01e58f2e7d0ab3b1f10872
2,685
py
Python
openGaussBase/testcase/KEYWORDS/restrict/Opengauss_Function_Keyword_Restrict_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/restrict/Opengauss_Function_Keyword_Restrict_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/restrict/Opengauss_Function_Keyword_Restrict_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
36.283784
124
0.665922
1aa7f5994534e2c541d01b757ecf3f65fc58d25f
17,858
py
Python
acwingcli/__main__.py
jasonsun0310/acwingcli
ef5de599b8fceeb16563aa4f2ac10db106b374da
[ "MIT" ]
null
null
null
acwingcli/__main__.py
jasonsun0310/acwingcli
ef5de599b8fceeb16563aa4f2ac10db106b374da
[ "MIT" ]
null
null
null
acwingcli/__main__.py
jasonsun0310/acwingcli
ef5de599b8fceeb16563aa4f2ac10db106b374da
[ "MIT" ]
null
null
null
import json import acwingcli.actions as actions import sys import os import acwingcli.commandline_writer as cmdwrite # import acwingcli import argparse import subprocess import acwingcli.update as update import os import websocket import json import threading import psutil import acwingcli.utils as utils import ti...
46.264249
134
0.582708
1aa9303e674b4308db627878870a3d77956ca97a
9,760
py
Python
main.py
Readix/TrafficMonitoring
eaaf63b4973d44de37b7593eb4507e65b24b4e95
[ "MIT" ]
null
null
null
main.py
Readix/TrafficMonitoring
eaaf63b4973d44de37b7593eb4507e65b24b4e95
[ "MIT" ]
null
null
null
main.py
Readix/TrafficMonitoring
eaaf63b4973d44de37b7593eb4507e65b24b4e95
[ "MIT" ]
null
null
null
import cv2 import numpy as np import json import os import re import yolo.darknet.darknet as darknet import haversine import imutils as imu from tracker.sort import * #-------------------------------------------- ''' res_path - path to: - calibration.npy - perspective_matrix.npy - mask.png - sides.png...
38.27451
175
0.569365
1aaa5460c4001c62707a01ed99a09b49ed09db38
1,975
py
Python
otindex/scripts/load_taxonomy_files.py
OpenTreeOfLife/ottreeindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
1
2017-03-10T22:27:18.000Z
2017-03-10T22:27:18.000Z
otindex/scripts/load_taxonomy_files.py
OpenTreeOfLife/otindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
31
2016-08-17T20:00:51.000Z
2020-10-08T20:35:28.000Z
otindex/scripts/load_taxonomy_files.py
kcranston/ottreeindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
null
null
null
# Imports ott.csv, synonyms.csv, tree_otu_assoc.csv into the database # Assumes database already set up. This happends either in initializedb.py # if running pyramid app or setup_db.py for testing (both in # this same directory) import datetime as dt import argparse import psycopg2 as psy import os # other databa...
35.909091
82
0.696203
1aaad603bf5e83f2d58f456fd2cb27bd0fae1730
15,679
py
Python
ghostwriter/home/tests/test_views.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
1
2022-02-04T20:24:35.000Z
2022-02-04T20:24:35.000Z
ghostwriter/home/tests/test_views.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
ghostwriter/home/tests/test_views.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
# Standard Libraries import logging from datetime import date, timedelta # Django Imports from django.conf import settings from django.db.models import Q from django.test import Client, TestCase from django.test.utils import override_settings from django.urls import reverse # Ghostwriter Libraries from ghostwriter.fa...
34.611479
96
0.675553
1aad579bb647de889b27f15e5b9e096cbdc98efc
1,400
py
Python
05_topic_modeling/topic_modeling.py
alyonavyshnevska/text_visualization_course
882a49290edf98640d20805ade14d6dfa7903e51
[ "MIT" ]
null
null
null
05_topic_modeling/topic_modeling.py
alyonavyshnevska/text_visualization_course
882a49290edf98640d20805ade14d6dfa7903e51
[ "MIT" ]
1
2019-04-23T01:23:17.000Z
2019-05-01T15:53:20.000Z
05_topic_modeling/topic_modeling.py
alyonavyshnevska/text_visualization_course
882a49290edf98640d20805ade14d6dfa7903e51
[ "MIT" ]
null
null
null
from gensim.models.ldamodel import LdaModel as ldamodel from gensim import corpora import pprint from gensim.test.utils import datapath import pyLDAvis import pyLDAvis.gensim from clean_data import clean as clean if __name__ == '__main__': #list of docs as lists of strings texts = clean('voted-kaggle-datase...
30.434783
71
0.730714
1ab14723dda2ad5abaa75d0e99e89f0f9a425b1d
3,480
py
Python
selenium/test_login_unfollow_follow_message_check.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
selenium/test_login_unfollow_follow_message_check.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
selenium/test_login_unfollow_follow_message_check.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
#!/usr/bin/env python from selenium import selenium import unittest, time, re if __name__ == "__main__": unittest.main()
40.465116
114
0.609483
1ab294b9434a7343b63cc5b761a5e72a521a3292
3,681
py
Python
pylons/decorators/secure.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
118
2015-01-04T06:55:14.000Z
2022-01-14T08:32:41.000Z
pylons/decorators/secure.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
21
2015-01-03T02:16:28.000Z
2021-03-24T06:10:57.000Z
pylons/decorators/secure.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
53
2015-01-04T03:21:08.000Z
2021-08-04T20:52:01.000Z
"""Security related decorators""" import logging import urlparse from decorator import decorator try: import webhelpers.html.secure_form as secure_form except ImportError: import webhelpers.pylonslib.secure_form as secure_form from pylons.controllers.util import abort, redirect from pylons.decorators.util imp...
32.008696
75
0.653355
1ab4bfddddae575d022743618b16597b55734005
393
py
Python
ntu_data.py
qiuwch/lt
3a36f325a70a37f8152e8f62387628f6dabcabeb
[ "MIT" ]
null
null
null
ntu_data.py
qiuwch/lt
3a36f325a70a37f8152e8f62387628f6dabcabeb
[ "MIT" ]
null
null
null
ntu_data.py
qiuwch/lt
3a36f325a70a37f8152e8f62387628f6dabcabeb
[ "MIT" ]
null
null
null
import os import glob seq_id = 'S001' # cam_id = 'C001' cam_id = '*' pid = 'P001' rid = 'R001' aid = 'A007' data_root = './data/NTU' seq_path = '{seq_id}{cam_id}{pid}{rid}{aid}_rgb/img_00001.jpg'.format(**locals()) seq_path = os.path.join(data_root, seq_path) print(seq_path) images = get_images(seq_path) print(im...
16.375
81
0.676845
1ab581d03430d3b70b00302350af75c95eb520dd
6,876
py
Python
pydax/_schema.py
cclauss/pydax
75c7d7041041043695d693c0f36110a3f4cd1d9c
[ "Apache-2.0" ]
11
2020-11-12T21:51:49.000Z
2021-07-12T15:47:09.000Z
pydax/_schema.py
cclauss/pydax
75c7d7041041043695d693c0f36110a3f4cd1d9c
[ "Apache-2.0" ]
138
2020-11-14T01:35:08.000Z
2021-07-22T05:52:29.000Z
pydax/_schema.py
cclauss/pydax
75c7d7041041043695d693c0f36110a3f4cd1d9c
[ "Apache-2.0" ]
5
2020-12-03T22:04:39.000Z
2021-07-13T17:03:53.000Z
# # Copyright 2020 IBM Corp. 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...
39.517241
119
0.681792
1ab5f348f3b648c7e38b865f80541d5d68554892
1,760
py
Python
pliki_przejsciowe/kolorujemy_ksiazki.py
stared/wizualizacja-wolnych-lektur
ad4219b4587aeb7d8ade3546ad9922ad1b5104b2
[ "CC-BY-3.0" ]
6
2015-08-05T09:59:45.000Z
2018-07-13T04:09:43.000Z
pliki_przejsciowe/kolorujemy_ksiazki.py
stared/wizualizacja-wolnych-lektur
ad4219b4587aeb7d8ade3546ad9922ad1b5104b2
[ "CC-BY-3.0" ]
null
null
null
pliki_przejsciowe/kolorujemy_ksiazki.py
stared/wizualizacja-wolnych-lektur
ad4219b4587aeb7d8ade3546ad9922ad1b5104b2
[ "CC-BY-3.0" ]
8
2016-09-13T11:13:43.000Z
2021-03-18T08:01:56.000Z
import requests from collections2 import Counter import simplejson as json import re books = json.load(open("books2.json")) color_stem = json.load(open("stemmizer_kolory.json")) colors = json.load(open("kolory_nowe.json")) for i, book in enumerate(books): if "txt" in book and book["txt"] != "": try: ...
35.918367
127
0.572727
1ab79890c8715d44cb5a582ad20c54a470f52918
1,259
py
Python
turngeneration/forms.py
jbradberry/django-turn-generation
dbfec9d0addbff2d8d54597b7520e171938c9107
[ "MIT" ]
null
null
null
turngeneration/forms.py
jbradberry/django-turn-generation
dbfec9d0addbff2d8d54597b7520e171938c9107
[ "MIT" ]
null
null
null
turngeneration/forms.py
jbradberry/django-turn-generation
dbfec9d0addbff2d8d54597b7520e171938c9107
[ "MIT" ]
1
2019-12-12T19:36:15.000Z
2019-12-12T19:36:15.000Z
from django.contrib.contenttypes.models import ContentType from django import forms from . import models
29.27907
80
0.652105
1ab98a6d7dd06d056ddf62a198dd9ded5f6d2846
2,047
py
Python
bot.py
technicalwritingEditor/Discord2FB-Bot
e5e10329ea2056adf451f352c4d582dc281281d1
[ "MIT" ]
3
2018-06-03T00:58:27.000Z
2021-10-06T09:41:11.000Z
bot.py
technicalwritingEditor/Discord2FB-Bot
e5e10329ea2056adf451f352c4d582dc281281d1
[ "MIT" ]
null
null
null
bot.py
technicalwritingEditor/Discord2FB-Bot
e5e10329ea2056adf451f352c4d582dc281281d1
[ "MIT" ]
1
2018-07-13T19:45:33.000Z
2018-07-13T19:45:33.000Z
import discord from discord.ext import commands import facebook from discord.ext.commands import Bot Client = discord.Client() bot = commands.Bot(command_prefix = "/") #Tells what the prefix before every command should be. bot.remove_command('help') if(__name__ == "__main__"): bot.run("<ADD_YOUR_BOT_TOKEN>") #Do no...
37.218182
170
0.72936
1ab9ac6dd4bb10c4ea54f939af124df3ccd014f8
561
py
Python
tool/click_demo.py
KEVINYZY/python-tutorial
ae43536908eb8af56c34865f52a6e8644edc4fa3
[ "Apache-2.0" ]
2
2021-01-04T10:44:44.000Z
2022-02-13T07:53:41.000Z
tool/click_demo.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
null
null
null
tool/click_demo.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
2
2019-02-28T07:53:30.000Z
2021-07-28T07:11:20.000Z
# -*- coding: utf-8 -*- # Author: XuMing <xuming624@qq.com> # Brief: import click if __name__ == "__main__": hello()
25.5
96
0.632799
1abbc4f259e0af349f90eba1f861bc51de4ccaec
2,780
py
Python
vertigo/datasets/fetchers.py
rmarkello/vertigo
35c79faf3a62b9b3941f0c989640c2f5de8f819e
[ "Apache-2.0" ]
null
null
null
vertigo/datasets/fetchers.py
rmarkello/vertigo
35c79faf3a62b9b3941f0c989640c2f5de8f819e
[ "Apache-2.0" ]
null
null
null
vertigo/datasets/fetchers.py
rmarkello/vertigo
35c79faf3a62b9b3941f0c989640c2f5de8f819e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions for fetching datasets from the internet """ from collections import namedtuple import os.path as op from .osf import _get_data_dir, _get_dataset_info from .utils import _fetch_files ANNOT = namedtuple('Surface', ('lh', 'rh')) def fetch_fsaverage(version='fsaverage', data_dir=N...
31.235955
79
0.611871
1abc0cd17b3be692c4ae6a95012e1e744129a64f
6,798
py
Python
rdkit/ML/ModelPackage/UnitTestPackage.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/ML/ModelPackage/UnitTestPackage.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/ML/ModelPackage/UnitTestPackage.py
bp-kelley/rdkit
e0de7c9622ce73894b1e7d9568532f6d5638058a
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
# # Copyright (C) 2002-2008 greg Landrum and Rational Discovery LLC # """ unit tests for the model and descriptor packager """ import os import random import unittest from xml.dom import minidom from xml.etree import ElementTree as ET from rdkit import Chem from rdkit import RDConfig from rdkit.Chem import Descripto...
38.191011
104
0.597823
1abce33b89f98cb52f1c4e73fa1fee092929d3eb
9,545
py
Python
plugins/logger/standardout/standard_out.py
Ghostkeeper/Luna
0dfc8694538c9d1ad3941602de2d4b6b815db657
[ "CC0-1.0" ]
null
null
null
plugins/logger/standardout/standard_out.py
Ghostkeeper/Luna
0dfc8694538c9d1ad3941602de2d4b6b815db657
[ "CC0-1.0" ]
null
null
null
plugins/logger/standardout/standard_out.py
Ghostkeeper/Luna
0dfc8694538c9d1ad3941602de2d4b6b815db657
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- #This software is distributed under the Creative Commons license (CC0) version 1.0. A copy of this license should have been distributed with this software. #The license can also be read online: <https://creativecommons.org/publicdomain/zero/1.0/>. If this online license dif...
42.995495
227
0.753064
1abdcea8efc0ca3c44292b62fd849e170b45bca7
1,466
py
Python
forge/blade/entity/npc/mobs.py
jarbus/neural-mmo
7ad02fab50f2781c0a71f7d2afd10c1503110736
[ "MIT" ]
1,450
2019-03-04T15:47:38.000Z
2022-03-30T03:33:35.000Z
forge/blade/entity/npc/mobs.py
jarbus/neural-mmo
7ad02fab50f2781c0a71f7d2afd10c1503110736
[ "MIT" ]
34
2019-03-05T09:50:38.000Z
2021-08-31T15:20:27.000Z
forge/blade/entity/npc/mobs.py
LaudateCorpus1/neural-mmo
a9a7c34a1fb24fbf252e2958bdb869c213e580a3
[ "MIT" ]
164
2019-03-04T16:09:19.000Z
2022-02-26T15:43:40.000Z
#NPC definitions with AI overrides per NPC, as required. from forge.blade.entity import NPC from forge.blade.item import Item, RawMeat, Sword from forge.blade.lib import AI from forge.blade.lib.Enums import Material from forge.blade.modules import DropTable, Skill
30.541667
71
0.662347
1abe13c8550d375e49e3544c2d226393aab8428e
1,638
py
Python
backend/apps/api/system/models/enums.py
offurface/smsta
b8a1f2e6efe6c71703c8d57e8aae255ad213863c
[ "MIT" ]
null
null
null
backend/apps/api/system/models/enums.py
offurface/smsta
b8a1f2e6efe6c71703c8d57e8aae255ad213863c
[ "MIT" ]
null
null
null
backend/apps/api/system/models/enums.py
offurface/smsta
b8a1f2e6efe6c71703c8d57e8aae255ad213863c
[ "MIT" ]
null
null
null
"""""" from enum import Enum, unique from django.utils.translation import gettext_lazy as _ from etc.choices import ChoicesEnumMixin, get_choices FORM_TRAINING = get_choices(FormTraining) PAYMENT_TRAINING = get_choices(PaymentTraining) TYPE_TRAINING = get_choices(TypeTraining) SEMESTERS = get_choices(Semesters...
18.613636
54
0.655067
1abe388e69a825f7770361eb67cf1c3461ead767
2,168
py
Python
notes/algo-ds-practice/problems/dp/double_helix.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
6
2020-07-05T05:15:19.000Z
2021-01-24T20:17:14.000Z
notes/algo-ds-practice/problems/dp/double_helix.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
null
null
null
notes/algo-ds-practice/problems/dp/double_helix.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
2
2020-09-14T06:46:37.000Z
2021-06-15T09:17:21.000Z
''' Two nite, strictly increasing, integer sequences are given. Any common integer between the two sequences constitute an intersection point. Take for example the following two sequences where intersection points are printed in bold: First= 3 5 7 9 20 25 30 40 55 56 57 60 62 Second= 1 4 7 11 14 25 44 47 55...
31.42029
152
0.627768
1abfc9f54d479adbe3c36baf00a9a7fac7331057
40,724
py
Python
libcst/matchers/_matcher_base.py
dendisuhubdy/LibCST
1acf2c83d132d4f665dd5de3684330463cbd361e
[ "Apache-2.0" ]
null
null
null
libcst/matchers/_matcher_base.py
dendisuhubdy/LibCST
1acf2c83d132d4f665dd5de3684330463cbd361e
[ "Apache-2.0" ]
null
null
null
libcst/matchers/_matcher_base.py
dendisuhubdy/LibCST
1acf2c83d132d4f665dd5de3684330463cbd361e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict import collections.abc import re from dataclasses import fields from enum import Enum, auto from typing import ( Callable, ...
38.637571
90
0.651336
1ac0100cb9b2c279cea35555f4fa8cbff672edda
4,911
py
Python
visualize/loss_function.py
Drchen-AI/NN_DL_tensorflow2.0
3bf26a0b48e2aa78eecb3910104738612c176678
[ "MIT" ]
null
null
null
visualize/loss_function.py
Drchen-AI/NN_DL_tensorflow2.0
3bf26a0b48e2aa78eecb3910104738612c176678
[ "MIT" ]
null
null
null
visualize/loss_function.py
Drchen-AI/NN_DL_tensorflow2.0
3bf26a0b48e2aa78eecb3910104738612c176678
[ "MIT" ]
null
null
null
# coding:utf8 import torch from torch import nn, optim # nn optim from torch.utils.data import DataLoader from torch.autograd import Variable from torchvision import transforms, datasets from visdom import Visdom # import time import numpy as np # app viz = Visdom() # BATCH_SIZE = 40 LR = 1e-3 EPOCH = 2 # gpu US...
32.959732
122
0.576461
1ac1c18d81b3fb08cc942e5904dbb8a0b2570d9d
1,783
py
Python
connections/migrations/0001_initial.py
jamisonwight/KnectarPy
082ab65ed9ab8e8ee5351f0f1027eea0e432c88c
[ "MIT" ]
null
null
null
connections/migrations/0001_initial.py
jamisonwight/KnectarPy
082ab65ed9ab8e8ee5351f0f1027eea0e432c88c
[ "MIT" ]
null
null
null
connections/migrations/0001_initial.py
jamisonwight/KnectarPy
082ab65ed9ab8e8ee5351f0f1027eea0e432c88c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-26 17:23 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion
45.717949
169
0.653393
1ac1d6d3fc31da110e9581cf6f625215065fc6d5
3,737
py
Python
Car.py
molenathyhoangxuannguyen/Math_Quiz_1-Car
cbcd31bf12e13fe3a31725a46df9af14214b77c2
[ "MIT" ]
null
null
null
Car.py
molenathyhoangxuannguyen/Math_Quiz_1-Car
cbcd31bf12e13fe3a31725a46df9af14214b77c2
[ "MIT" ]
null
null
null
Car.py
molenathyhoangxuannguyen/Math_Quiz_1-Car
cbcd31bf12e13fe3a31725a46df9af14214b77c2
[ "MIT" ]
null
null
null
#Written by Thy H. Nguyen import turtle from math import pi import random main()
27.07971
107
0.578539
1ac20c1a12bae5faab7bd06bd64e2ac8f107be97
1,242
py
Python
src/learning/migrations/0025_user_and_tutorial_relations_cascade.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
3
2021-04-01T19:42:53.000Z
2022-03-01T09:50:17.000Z
src/learning/migrations/0025_user_and_tutorial_relations_cascade.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
null
null
null
src/learning/migrations/0025_user_and_tutorial_relations_cascade.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-27 13:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
38.8125
177
0.68277
1ac3f96b97737e3eb3f7b8408474c5d059166aee
442
py
Python
functions/odd_and_even_sum.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
functions/odd_and_even_sum.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
functions/odd_and_even_sum.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
1
2022-01-14T17:12:44.000Z
2022-01-14T17:12:44.000Z
number = input() evens_sum = get_sums("even", number) odds_sum = get_sums("odd", number) print(f"Odd sum = {odds_sum}, Even sum = {evens_sum}")
24.555556
79
0.615385
1ac490b577ea5dda5544e1fbb2ce5bee62233294
1,955
py
Python
algorithms/iterative_tree_traversals.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
algorithms/iterative_tree_traversals.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
algorithms/iterative_tree_traversals.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
""" Iterative versions of the tree traversals TODO: Using a set defeats the purpose of iteration (reducing the space usage) """ def in_order_traversal(tree): """left -> curr -> right""" to_visit = [tree] visited = set() path = [] while to_visit: # peek to make sure it is not visited ...
22.732558
77
0.570844
1ac500dbb07444e0474269ea82dee2adab318324
11,587
py
Python
pycatia/tps_interfaces/capture.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
90
2019-02-21T10:05:28.000Z
2022-03-19T01:53:41.000Z
pycatia/tps_interfaces/capture.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
99
2019-05-21T08:29:12.000Z
2022-03-25T09:55:15.000Z
pycatia/tps_interfaces/capture.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
26
2019-04-04T06:31:36.000Z
2022-03-30T07:24:47.000Z
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
30.018135
111
0.53793
1ac8d5589ceca70f9e89f1d4ba9ffbf6e4b2d824
1,257
py
Python
yandex_algorithm2/home1c.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1c.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1c.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
''' , ( , , ) ( , , ). . , . ? , . , . x , y z ( 1 x 3 1 , 1 y 3 1 , 1 9 7 0 z 2 0 6 9 . , x y z . 1, , 0 . ''' if __name__ == "__main__": l = list(map(int, input().split())) result = helper(l) pri...
18.761194
374
0.686555
1ac958a3278a36707325e087561792a722194785
356
py
Python
tests/__init__.py
crsanderford/brainrender
6d2f1c2150ef381d08daaf1cff1ae287de0cc5e8
[ "BSD-3-Clause" ]
226
2020-10-19T13:41:36.000Z
2022-03-29T11:22:43.000Z
tests/__init__.py
RobertoDF/BrainRender
a92dc3b08f743721521ae233f15b1814207bf08c
[ "MIT" ]
90
2020-10-14T09:52:48.000Z
2022-03-25T15:51:09.000Z
tests/__init__.py
RobertoDF/BrainRender
a92dc3b08f743721521ae233f15b1814207bf08c
[ "MIT" ]
36
2020-10-14T13:04:14.000Z
2022-03-25T15:31:29.000Z
from brainrender import settings settings.INTERACTIVE = False settings.OFFSCREEN = True settings.DEFAULT_ATLAS = "allen_mouse_100um" from vedo import settings as vsettings vsettings.useDepthPeeling = False vsettings.screenshotTransparentBackground = False # vedo for transparent bg vsettings.useFXAA = True # This n...
29.666667
76
0.823034
1ac9d75cb11357f8d4a47e717d459835c97dc46a
38
py
Python
src/lib/symbol.py
DTenore/skulpt
098d20acfb088d6db85535132c324b7ac2f2d212
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
src/lib/symbol.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
src/lib/symbol.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
import _sk_fail; _sk_fail._("symbol")
19
37
0.763158
1acaa8c1153a3b9bb299ba78526d2d3b51be4f66
593
py
Python
topo/optimized/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/optimized/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/optimized/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
import os (basepath, _) = os.path.split(os.path.abspath(__file__)) warn_for_each_unoptimized_component = False try: from distutils.core import run_setup # Run the setup script in the sandbox, so that it doesn't complain about unknown args when launched through nose run_setup(basepath + "/compile.py") ...
34.882353
116
0.740304
1acb8eb322e9aec321348f3d36693b0a3fc3fd97
5,618
py
Python
sdk/python/pulumi_gcp/organizations/get_project.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/organizations/get_project.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/organizations/get_project.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# 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, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
36.245161
185
0.659665
1acc2f32cc9a7a1f5f4e8cb7660bd8849614cb8a
3,035
py
Python
app/models/users.py
dwcaraway/govly
c3a134c2d8ae911c0ab05d9b96014a7c18bfac45
[ "MIT" ]
5
2018-03-14T18:55:35.000Z
2021-10-04T00:16:38.000Z
app/models/users.py
dwcaraway/govly
c3a134c2d8ae911c0ab05d9b96014a7c18bfac45
[ "MIT" ]
null
null
null
app/models/users.py
dwcaraway/govly
c3a134c2d8ae911c0ab05d9b96014a7c18bfac45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ vitals.models.users ~~~~~~~~~~~~~~~~~~~ :author: Dave Caraway :copyright: 2014-2015, Fog Mine LLC :license: Proprietary, see LICENSE for more details. """ import base64 import os from flask.ext.security import RoleMixin, UserMixin from ..framework.sql import ( db,...
32.634409
110
0.677759
1acc37fde77112dc03495f8a8ad528c34e34685e
7,273
py
Python
data.py
jgoppert/iekf_analysis
d41ad34b37ef2636e20680accf399ea4a9332811
[ "BSD-3-Clause" ]
5
2018-01-16T06:46:38.000Z
2019-06-19T10:17:12.000Z
data.py
jgoppert/iekf_analysis
d41ad34b37ef2636e20680accf399ea4a9332811
[ "BSD-3-Clause" ]
null
null
null
data.py
jgoppert/iekf_analysis
d41ad34b37ef2636e20680accf399ea4a9332811
[ "BSD-3-Clause" ]
null
null
null
from transforms3d.taitbryan import quat2euler import matplotlib.pyplot as plt import numpy as np from util import X, Xe
31.621739
78
0.514643
1acc4bb74661ef6bbaf044a243078ab4c44c027c
580
py
Python
utils/decorators.py
amigne/ZosTeroPs
d76023faa0cba8ff3f01018ca252969df86dcf60
[ "MIT" ]
4
2021-03-18T12:29:10.000Z
2022-01-26T10:03:12.000Z
utils/decorators.py
amigne/ZosTeroPs
d76023faa0cba8ff3f01018ca252969df86dcf60
[ "MIT" ]
7
2021-02-06T09:13:57.000Z
2021-03-19T21:09:59.000Z
utils/decorators.py
amigne/ZosTeroPs
d76023faa0cba8ff3f01018ca252969df86dcf60
[ "MIT" ]
null
null
null
from django.conf import settings from django.http import HttpResponseRedirect
41.428571
79
0.701724
1acca912a31ec6a2ebcc918e528a3318f2a3f937
1,874
py
Python
client_code/landing/settings/ColorChanger.py
Alcampopiano/OpenQuestion
8576ec3372eca3b3b51661ad7f5c615fe8193946
[ "BSD-3-Clause" ]
4
2021-01-27T15:36:21.000Z
2021-06-04T17:43:27.000Z
client_code/landing/settings/ColorChanger.py
Alcampopiano/OpenQuestion
8576ec3372eca3b3b51661ad7f5c615fe8193946
[ "BSD-3-Clause" ]
1
2021-02-04T20:24:38.000Z
2021-02-05T13:47:41.000Z
client_code/landing/settings/ColorChanger.py
Alcampopiano/OpenQuestion
8576ec3372eca3b3b51661ad7f5c615fe8193946
[ "BSD-3-Clause" ]
2
2021-01-27T15:36:30.000Z
2021-02-02T06:11:35.000Z
import anvil.facebook.auth import anvil.google.auth, anvil.google.drive from anvil.google.drive import app_files import anvil.js # This is the subset of theme.css that is affected by theme colour choice. # (I just copy-pasted theme.css and searched for theme:) themed_css = """ a, a:focus { color: %color:Primary...
21.54023
120
0.699039
1acfcd0292220871f431e4e473efb911e7c66800
1,098
py
Python
conary_test/repositorytest/filecontentstest.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
43
2015-03-31T01:37:10.000Z
2021-11-14T16:26:48.000Z
conary_test/repositorytest/filecontentstest.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-06-10T16:39:41.000Z
2020-01-27T16:35:01.000Z
conary_test/repositorytest/filecontentstest.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-04-07T08:12:37.000Z
2020-01-26T09:54:18.000Z
# # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
28.153846
74
0.640255
1ad07d6aab73d167ba977ffa3a12a00f276ccca7
2,582
py
Python
global_finprint/annotation/urls/assignment.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
global_finprint/annotation/urls/assignment.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
6
2020-06-05T18:42:32.000Z
2022-01-13T00:48:57.000Z
global_finprint/annotation/urls/assignment.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from django.views.decorators.csrf import csrf_exempt from global_finprint.annotation.views.assignment import VideoAutoAssignView, ManageAssignmentView, ObservationListView, \ AssignmentListView, AssignmentListTbodyView, AssignmentModalBodyView, UnassignModalBodyView, Assig...
52.693878
124
0.755616
1ad0ae27acc8dbfede485ff88f989be820ffa27e
3,512
py
Python
pytext/data/test/data_test.py
NunoEdgarGFlowHub/pytext
2358b2d7c8c4e6800c73f4bd1c9731723e503ed6
[ "BSD-3-Clause" ]
1
2019-02-25T01:50:03.000Z
2019-02-25T01:50:03.000Z
pytext/data/test/data_test.py
NunoEdgarGFlowHub/pytext
2358b2d7c8c4e6800c73f4bd1c9731723e503ed6
[ "BSD-3-Clause" ]
null
null
null
pytext/data/test/data_test.py
NunoEdgarGFlowHub/pytext
2358b2d7c8c4e6800c73f4bd1c9731723e503ed6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import unittest from pytext.common.constants import Stage from pytext.data import Data, RawBatcher, types from pytext.data.sources.data_source import SafeFileWrapper from pytext.data.sources.tsv import TSVDataSource from pyt...
39.909091
85
0.660308
1ad0bb118d7657c0226c9703cf3e0988adf2f733
1,765
py
Python
main.py
GrDaniel/duplicates_finder
edb5bb601494f50425850ce5bcfb4e37955541ba
[ "MIT" ]
null
null
null
main.py
GrDaniel/duplicates_finder
edb5bb601494f50425850ce5bcfb4e37955541ba
[ "MIT" ]
null
null
null
main.py
GrDaniel/duplicates_finder
edb5bb601494f50425850ce5bcfb4e37955541ba
[ "MIT" ]
null
null
null
import os from itertools import chain from hashlib import sha256
33.942308
104
0.648159
1ad18fb2a9e0d96a010fcbc48c609ae14cc20cfb
415
py
Python
Python-Advanced/functions_advanced/absolute_values.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Advanced/functions_advanced/absolute_values.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Advanced/functions_advanced/absolute_values.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
nums = map(lambda el: float(el), input().split()) print(convert_iterable_to_absolute(nums)) # def convert_iterable_to_absolute(nums_list): # result = [abs(el) for el in nums_list] # return result # # nums = [float(el) for el in input().split()] # print(convert_iterable_to_absolute(nums))
27.666667
51
0.718072
1ad19cefd911536d3cd0c13616bd9ef7f9d045b4
2,686
py
Python
Question.py
asdfadrian/OpenTester
b893025fcdc3e5c9b8581a64b68fbafe32e30988
[ "Apache-2.0" ]
null
null
null
Question.py
asdfadrian/OpenTester
b893025fcdc3e5c9b8581a64b68fbafe32e30988
[ "Apache-2.0" ]
null
null
null
Question.py
asdfadrian/OpenTester
b893025fcdc3e5c9b8581a64b68fbafe32e30988
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 14 12:20:07 2018 @author: 1172334950C """
27.131313
120
0.612063
46b7f5466652a294010568c915735275e982b3b9
107
py
Python
envs/hns/mujoco-worldgen/mujoco_worldgen/util/envs/__init__.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
424
2019-09-17T15:50:41.000Z
2022-03-26T07:10:21.000Z
envs/hns/mujoco-worldgen/mujoco_worldgen/util/envs/__init__.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
7
2019-09-18T08:54:58.000Z
2020-08-28T15:12:45.000Z
envs/hns/mujoco-worldgen/mujoco_worldgen/util/envs/__init__.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
81
2019-09-18T00:14:25.000Z
2022-03-30T18:25:08.000Z
from .env_viewer import EnvViewer from .examine_env import examine_env from .flexible_load import load_env
26.75
36
0.859813
46b8e3c90bcd926a8f712d20d77daa3692772f66
6,095
py
Python
test/unit/test_network_util.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
null
null
null
test/unit/test_network_util.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
null
null
null
test/unit/test_network_util.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ Tests for deepreg/model/network/util """ import pytest import tensorflow as tf import deepreg.model.network.util as util from deepreg.model.backbone import global_net, local_net, u_net def test_wrong_inputs(): """ Function to test wrong input types passed to build backbone func """ ...
29.587379
88
0.597539
46ba3880bb819e029eff762b12b3a9362a955d15
4,841
py
Python
code/tmp_rtrip/test/test_importlib/test_locks.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/test/test_importlib/test_locks.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/test/test_importlib/test_locks.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
from . import util as test_util init = test_util.import_importlib('importlib') import sys import unittest import weakref from test import support try: import threading except ImportError: threading = None else: from test import lock_tests if threading is not None: LOCK_TYPES = {kind: splitinit._bootstr...
30.639241
79
0.622185
46bc10fa6ebc50719d08ff180aa6f6a2e590a585
9,053
py
Python
archived_code/sed_test_AI_64_8.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
null
null
null
archived_code/sed_test_AI_64_8.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
10
2018-03-14T08:44:12.000Z
2018-11-13T13:45:53.000Z
archived_code/sed_test_AI_64_8.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' Abstract: This is a code for test AI with given sed data. Usage: sed_test_AI_64_8.py [source] [id] [directory] [AI] Editor and Practicer: Jacob975 ################################## # Python3 # # This code is made in python3 # ################################...
37.102459
150
0.642218
46bc78afaeb62cb0bbad5b4d159a408a129ad787
677
py
Python
compare_lists/compare.py
Esukhia/text_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
1
2017-01-26T22:37:57.000Z
2017-01-26T22:37:57.000Z
compare_lists/compare.py
Esukhia/tibtext_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
null
null
null
compare_lists/compare.py
Esukhia/tibtext_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
null
null
null
from PyTib.common import open_file, write_file import os monlam = open_file('input/monlam1_total_corrected.txt').split('\n') monlam_entries = [a.split(' | ')[0] for a in monlam] monlam_entries = [a.rstrip('') for a in monlam_entries] monlam_dict = {a: True for a in monlam_entries} non_monlam = {} in_path = 'input/use...
35.631579
81
0.675037
46bc7d4de06ca22e044fe05c60711faebec83394
801
py
Python
lustre/minification.py
half-cambodian-hacker-man/lustre
93e2196a962cafcfd7fa0be93a6b0d563c46ba75
[ "MIT" ]
3
2020-09-06T02:21:09.000Z
2020-09-30T00:05:54.000Z
lustre/minification.py
videogame-hacker/lustre
93e2196a962cafcfd7fa0be93a6b0d563c46ba75
[ "MIT" ]
null
null
null
lustre/minification.py
videogame-hacker/lustre
93e2196a962cafcfd7fa0be93a6b0d563c46ba75
[ "MIT" ]
null
null
null
import typing from starlette.responses import Response, HTMLResponse from starlette.templating import _TemplateResponse try: import htmlmin except ImportError: htmlmin = None
28.607143
84
0.750312
46bdf7ca5389b5cf7a84c57dce254fb87783c3f5
165
py
Python
packs/openhab/actions/set_state.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/openhab/actions/set_state.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/openhab/actions/set_state.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from lib.action import BaseAction
20.625
33
0.654545
46bf10d65b2898b4623a80c0d43fb1265448ebae
10,711
py
Python
src/iceberg_penguins/search/data_processing/m_im_util.py
iceberg-project/Penguins
80297bc812e2a3811cbcfd1025e81072631b1c5c
[ "MIT" ]
3
2018-04-02T19:59:06.000Z
2019-02-15T16:42:13.000Z
src/iceberg_penguins/search/data_processing/m_im_util.py
iceberg-project/Penguins
80297bc812e2a3811cbcfd1025e81072631b1c5c
[ "MIT" ]
15
2018-09-12T19:18:08.000Z
2020-08-06T21:59:56.000Z
src/iceberg_penguins/search/data_processing/m_im_util.py
iceberg-project/Penguins
80297bc812e2a3811cbcfd1025e81072631b1c5c
[ "MIT" ]
2
2019-03-06T06:18:14.000Z
2019-05-06T16:18:06.000Z
""" Utility scripts for images Author: Hieu Le License: MIT Copyright: 2018-2019 """ import os import numpy as np from PIL import Image from scipy import misc #AT this point, I don't even know what is this file about. junk codes assembly.
37.98227
128
0.559892
46bf2f91cab789c97cc83c0134f194ca9fcd7f20
6,024
py
Python
templates/openwisp2/settings.py
wanman/ansible-openwisp2
4688cf0f17dae37f716fe2526db43c3f486d0ece
[ "BSD-3-Clause" ]
null
null
null
templates/openwisp2/settings.py
wanman/ansible-openwisp2
4688cf0f17dae37f716fe2526db43c3f486d0ece
[ "BSD-3-Clause" ]
null
null
null
templates/openwisp2/settings.py
wanman/ansible-openwisp2
4688cf0f17dae37f716fe2526db43c3f486d0ece
[ "BSD-3-Clause" ]
null
null
null
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '{{ openwisp2_secret_key }}' # SECURITY WARNING: don't run with debug turned on in p...
29.101449
129
0.623008
46c38085c612adaa0ca6f062ec208baa84525144
1,056
py
Python
Yahoo_OAuth/migrations/0001_initial.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
2
2017-05-05T14:02:37.000Z
2017-07-21T13:19:31.000Z
Yahoo_OAuth/migrations/0001_initial.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
7
2018-01-31T13:28:12.000Z
2020-02-19T01:57:55.000Z
Yahoo_OAuth/migrations/0001_initial.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-24 22:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
34.064516
156
0.610795
46c47142371b3e46378834e1371af47748000547
36,685
py
Python
source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
# # PySNMP MIB module TOKEN-RING-RMON-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/TOKEN-RING-RMON-MIB # Produced by pysmi-0.0.7 at Fri Feb 17 12:48:35 2017 # On host 5641388e757d platform Linux version 4.4.0-62-generic by user root # Using Python version 2.7.13 (default, Dec 22 2016, 09:2...
172.230047
11,057
0.778929
46c557a179c5fb92ac9408ec04bd8055c84518c8
554
py
Python
reviews/models.py
connor-blackburn/HighCal
6669d5be6298eefd3f5189df7d30a5c06ce1e04d
[ "MIT" ]
null
null
null
reviews/models.py
connor-blackburn/HighCal
6669d5be6298eefd3f5189df7d30a5c06ce1e04d
[ "MIT" ]
8
2021-06-02T00:51:39.000Z
2022-03-12T00:10:27.000Z
reviews/models.py
connor-blackburn/HighCal
6669d5be6298eefd3f5189df7d30a5c06ce1e04d
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone """ Model for client reviews """
32.588235
86
0.749097
46c56182630c419e1daaa07b3dec063b0e47636b
517
py
Python
src/driver/slack_driver.py
tubone24/tech_blog_spider
f91feea445d87d31e81bd920c7d386e42c495aee
[ "MIT" ]
null
null
null
src/driver/slack_driver.py
tubone24/tech_blog_spider
f91feea445d87d31e81bd920c7d386e42c495aee
[ "MIT" ]
7
2021-06-25T07:50:21.000Z
2021-11-06T04:44:55.000Z
src/driver/slack_driver.py
rcy1314/spider-feed
fbab76c8e221053f611cadd4d27642ef8725e76d
[ "MIT" ]
1
2022-02-10T21:05:13.000Z
2022-02-10T21:05:13.000Z
import json from output.slack_output_data import SlackOutputData from interface.driver.slack_driver import SlackDriver from dataclasses import asdict import requests from util.logger import AppLog _logger = AppLog(__name__)
27.210526
57
0.748549
46c5bcf324a8b41403c291c8dfde501e02e20e93
188
py
Python
src/bitinfo_holding_alert/config.py
Jimsparkle/bitinfo_holding_alert
bc79112615686fadf98c9fe634fb8e7eefbe9918
[ "MIT" ]
null
null
null
src/bitinfo_holding_alert/config.py
Jimsparkle/bitinfo_holding_alert
bc79112615686fadf98c9fe634fb8e7eefbe9918
[ "MIT" ]
null
null
null
src/bitinfo_holding_alert/config.py
Jimsparkle/bitinfo_holding_alert
bc79112615686fadf98c9fe634fb8e7eefbe9918
[ "MIT" ]
null
null
null
"""Default configuration when no ENV variables are set.""" CLOUDFLARE_BYPASS_URL = "http://localhost:8191/v1" TRACK_COIN = "dogecoin" TRACK_ADDRESS = "DRSqEwcnJX3GZWH9Twtwk8D5ewqdJzi13k"
31.333333
58
0.792553
46c8a4498347859a35abd81cfed9f5d58806930a
1,841
py
Python
src/zojax/widget/captcha/widget.py
Zojax/zojax.widget.captcha
9aa315bc0ec85ecd5bf0743296e4733e0b2b8de5
[ "ZPL-2.1" ]
null
null
null
src/zojax/widget/captcha/widget.py
Zojax/zojax.widget.captcha
9aa315bc0ec85ecd5bf0743296e4733e0b2b8de5
[ "ZPL-2.1" ]
null
null
null
src/zojax/widget/captcha/widget.py
Zojax/zojax.widget.captcha
9aa315bc0ec85ecd5bf0743296e4733e0b2b8de5
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # 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...
32.298246
78
0.67572
46c8ae10d53e8ce4d08d1a08d67812ca60bf79fe
5,407
py
Python
VirusTotalAVBot/modules/virustotal.py
kenanismayilov335/VirusTotal-File-Scan-Bot
369e8bba10ce40cf9e9bdaeba018496e8509cd8d
[ "MIT" ]
null
null
null
VirusTotalAVBot/modules/virustotal.py
kenanismayilov335/VirusTotal-File-Scan-Bot
369e8bba10ce40cf9e9bdaeba018496e8509cd8d
[ "MIT" ]
null
null
null
VirusTotalAVBot/modules/virustotal.py
kenanismayilov335/VirusTotal-File-Scan-Bot
369e8bba10ce40cf9e9bdaeba018496e8509cd8d
[ "MIT" ]
6
2020-11-01T17:46:27.000Z
2022-03-01T14:34:17.000Z
import hashlib import logging import os import requests import time from VirusTotalAVBot import VT_API logger = logging.getLogger("VirusTotal Methods") api_base_url = "https://www.virustotal.com/api/v3" header = {'x-apikey': VT_API} def vthash(filehash: str): """Returns the analysis data class for a file in Vir...
32.572289
118
0.630294
46c92a616b9d9851d72ec6a3219d86df867f63c1
621
py
Python
apps/keyboard/migrations/0004_auto_20210328_2122.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
apps/keyboard/migrations/0004_auto_20210328_2122.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
apps/keyboard/migrations/0004_auto_20210328_2122.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-28 13:22 from django.db import migrations, models
25.875
78
0.613527
46c9302c3f4b4a29c5ed9d253acad5c1dab9d819
323
py
Python
instagram_api/response/profile_notice.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
13
2019-08-07T21:24:34.000Z
2020-12-12T12:23:50.000Z
instagram_api/response/profile_notice.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
instagram_api/response/profile_notice.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
from .mapper import ApiResponse, ApiResponseInterface from .mapper.types import Timestamp, AnyType __all__ = ['ProfileNoticeResponse']
24.846154
73
0.839009
46cc8cea14d7417890822055eef4890caa7dc2ab
832
py
Python
scripts/place_random_object.py
ltu-ros/simple_sim_office
20e37b5f7a6d07b7859c3868a3954f0384f7c71a
[ "MIT" ]
null
null
null
scripts/place_random_object.py
ltu-ros/simple_sim_office
20e37b5f7a6d07b7859c3868a3954f0384f7c71a
[ "MIT" ]
null
null
null
scripts/place_random_object.py
ltu-ros/simple_sim_office
20e37b5f7a6d07b7859c3868a3954f0384f7c71a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from random import uniform, choice from math import copysign """ This is a simple pythin script that generates random values for circN parameters read by simple_sim to place objects It places 1, 2 or 3 circles in a +/- 1.5m area around the center of the map """ def randsign(): ...
24.470588
59
0.667067
46cd1e657ec4409874672e0022455763ebebbf47
1,868
py
Python
CODES/S18 - Selenium WebDriver -_ Working With Web Elements/10-HiddenElements.py
PacktPublishing/-Selenium-WebDriver-With-Python-3.x---Novice-To-Ninja-v-
7be863a0a9c8da7e31a413742da92c2fcfd0b38a
[ "MIT" ]
11
2019-05-17T00:54:17.000Z
2021-11-12T22:12:18.000Z
CODES/S18 - Selenium WebDriver -_ Working With Web Elements/10-HiddenElements.py
PacktPublishing/-Selenium-WebDriver-With-Python-3.x---Novice-To-Ninja-v-
7be863a0a9c8da7e31a413742da92c2fcfd0b38a
[ "MIT" ]
null
null
null
CODES/S18 - Selenium WebDriver -_ Working With Web Elements/10-HiddenElements.py
PacktPublishing/-Selenium-WebDriver-With-Python-3.x---Novice-To-Ninja-v-
7be863a0a9c8da7e31a413742da92c2fcfd0b38a
[ "MIT" ]
12
2019-06-17T00:56:01.000Z
2021-09-29T11:38:53.000Z
from selenium import webdriver import time ff = HiddenElements() ff.testLetsKodeIt() ff.testExpedia()
33.963636
95
0.654711
46cd3a5d74191e0c2f0c767df32bfdb8ff7e82a4
1,091
py
Python
WPC_CSV2XLSX.py
ChenKuanSun/WPECCrawler
9b98fe7da96768fe102c1c494281103cf66aa6ff
[ "MIT" ]
null
null
null
WPC_CSV2XLSX.py
ChenKuanSun/WPECCrawler
9b98fe7da96768fe102c1c494281103cf66aa6ff
[ "MIT" ]
null
null
null
WPC_CSV2XLSX.py
ChenKuanSun/WPECCrawler
9b98fe7da96768fe102c1c494281103cf66aa6ff
[ "MIT" ]
null
null
null
#CodeMod from Trinh Nguyen http://www.dangtrinh.com/2013/10/python-convert-csv-to-excel.html import csv import os from openpyxl import Workbook from openpyxl.utils import get_column_letter WPC_PATH = "./01_WPCOutput/" csv_list = os.listdir(WPC_PATH) i=1 for j in csv_list: print(str(i)+"."+j) i+=1 cp = WPC_PATH+csv_li...
34.09375
92
0.71769
46ceb47962207e44fc2ccae2afd955563e900ab2
9,345
py
Python
matlab2cpp/tree/expression.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
28
2017-04-25T10:06:38.000Z
2022-02-09T07:25:34.000Z
matlab2cpp/tree/expression.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
null
null
null
matlab2cpp/tree/expression.py
emc2norway/m2cpp
81943057c184c539b409282cbbd47bbf933db04f
[ "BSD-3-Clause" ]
5
2017-04-25T17:54:53.000Z
2022-03-21T20:15:15.000Z
""" Expression interpretor """ import matlab2cpp as mc import findend import identify import constants as c def create(self, node, start, end=None, start_opr=None): """ Create expression in three steps: 1) In order, split into sub-expressions for each dividing operator 2) Address prefixes, postfixes, pa...
30.639344
93
0.521134
46d17d184f4c0040c0f1034f4461fae1fd05d6e6
1,103
py
Python
{{cookiecutter.company_name}}-cli/setup.py
farooq-teqniqly/cli-cookiecutter
e9a8262d5f11d6bfc313e906fad4e683950e52c3
[ "MIT" ]
null
null
null
{{cookiecutter.company_name}}-cli/setup.py
farooq-teqniqly/cli-cookiecutter
e9a8262d5f11d6bfc313e906fad4e683950e52c3
[ "MIT" ]
null
null
null
{{cookiecutter.company_name}}-cli/setup.py
farooq-teqniqly/cli-cookiecutter
e9a8262d5f11d6bfc313e906fad4e683950e52c3
[ "MIT" ]
null
null
null
import setuptools import os # Change to the setup.py directory to read files relative to it. cwd = os.getcwd() abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) os.chdir(dname) with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="{{cookiecutter.company_name...
31.514286
129
0.700816
46d19331d95a9aabe8ab0fbdf213f6c043f5d9f4
3,917
py
Python
attributes.py
AmeliaSZK/ffxiv-squadron-planner
d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea
[ "MIT" ]
null
null
null
attributes.py
AmeliaSZK/ffxiv-squadron-planner
d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea
[ "MIT" ]
null
null
null
attributes.py
AmeliaSZK/ffxiv-squadron-planner
d98c4bba82caf5a51cbfc8ced8b2c670eeaac1ea
[ "MIT" ]
null
null
null
from dataclasses import dataclass if __name__ == "__main__": import doctest doctest.testmod()
30.364341
82
0.521062
46d1b76cc358cb882e976013873aa0558d4d7221
2,382
py
Python
tests/__init__.py
deniskorobicyn/kozmic-ci
0af754b81891722824c6bea85154590f15931030
[ "BSD-3-Clause" ]
1
2021-06-05T18:36:13.000Z
2021-06-05T18:36:13.000Z
tests/__init__.py
deniskorobicyn/kozmic-ci
0af754b81891722824c6bea85154590f15931030
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
deniskorobicyn/kozmic-ci
0af754b81891722824c6bea85154590f15931030
[ "BSD-3-Clause" ]
null
null
null
import os import collections from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.webtest import TestApp, get_scopefunc from kozmic import create_app, db from . import factories
29.407407
79
0.617968
46d2957beb8300483d8b056de5349aadf1799cfd
6,046
py
Python
coding/python/tkinter_canvas_image.py
jujumo/memento
9879c74d7b9c64ba2e2a1d8bae20e2d353ccd7bd
[ "MIT" ]
1
2019-08-05T17:53:33.000Z
2019-08-05T17:53:33.000Z
coding/python/tkinter_canvas_image.py
jujumo/memento
9879c74d7b9c64ba2e2a1d8bae20e2d353ccd7bd
[ "MIT" ]
null
null
null
coding/python/tkinter_canvas_image.py
jujumo/memento
9879c74d7b9c64ba2e2a1d8bae20e2d353ccd7bd
[ "MIT" ]
null
null
null
import argparse import logging import sys import numpy as np from PIL import Image, ImageTk import tkinter as tk logger = logging.getLogger('tkcanvasimage') logger.addHandler(logging.StreamHandler(sys.stdout)) class TkImage(TkDrawable): def from_pil(self, image_pil): self._image_pil = image_pil ...
30.846939
100
0.610155
46d4677b37669cdaf6bf286e4bbbce299572bd25
1,485
py
Python
oddsgym/envs/meta.py
OryJonay/soccer_odds_env
b69401518003099ca355c812f2b26775abc25754
[ "Apache-2.0" ]
11
2020-03-10T10:13:53.000Z
2022-02-06T19:06:27.000Z
oddsgym/envs/meta.py
OryJonay/soccer_odds_env
b69401518003099ca355c812f2b26775abc25754
[ "Apache-2.0" ]
1
2020-04-11T14:14:17.000Z
2020-04-11T14:14:17.000Z
oddsgym/envs/meta.py
OryJonay/soccer_odds_env
b69401518003099ca355c812f2b26775abc25754
[ "Apache-2.0" ]
1
2020-10-05T01:20:28.000Z
2020-10-05T01:20:28.000Z
from .base import BaseOddsEnv from .base_percentage import BasePercentageOddsEnv from .daily_bets import DailyOddsEnv, DailyPercentageOddsEnv
43.676471
110
0.617508
46d6deb7ca587b0c1dc12540a32ed1be89712a6d
998
py
Python
tests/pyboard/execScript_adc_son.py
david-therincourt/physique
add85faef564359252da93dca9b7dbb35bd6b4ab
[ "MIT" ]
null
null
null
tests/pyboard/execScript_adc_son.py
david-therincourt/physique
add85faef564359252da93dca9b7dbb35bd6b4ab
[ "MIT" ]
null
null
null
tests/pyboard/execScript_adc_son.py
david-therincourt/physique
add85faef564359252da93dca9b7dbb35bd6b4ab
[ "MIT" ]
null
null
null
from physique import Pyboard import numpy as np import matplotlib.pyplot as plt script = """ from pyb import Pin, ADC, Timer, delay import array f = 20000 # frquence d'chantillonnage nb = 2000 # nombre de points adc = ADC(Pin('A2')) # Activation du CAN sur la broche A0 buf = array.array(...
22.177778
83
0.650301
46d790318dd9872e70883f8227ecbf0ac8affa79
1,663
py
Python
python/test_demo.py
rensir/RapidOCR
2408ec64cd20145e468e08a5469eaa2c042cd1c6
[ "Apache-2.0" ]
null
null
null
python/test_demo.py
rensir/RapidOCR
2408ec64cd20145e468e08a5469eaa2c042cd1c6
[ "Apache-2.0" ]
null
null
null
python/test_demo.py
rensir/RapidOCR
2408ec64cd20145e468e08a5469eaa2c042cd1c6
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # @Author: SWHL # @Contact: liekkaskono@163.com from rapid_ocr_api import TextSystem, visualize det_model_path = 'models/ch_ppocr_mobile_v2.0_det_infer.onnx' cls_model_path = 'models/ch_ppocr_mobile_v2.0_cls_infer.onnx' # rec_model_path = 'models/ch_ppocr_mobile_v2.0_rec_infer.onnx' keys_pa...
31.980769
62
0.693325
46dce8abd822089ad9a46a0110574671f9f528d4
1,133
py
Python
auto/appium/demo.py
wuhongnpm/Gardenia
a07b34ddfff8c058b5bfc9ee5832e59c86e7e276
[ "MIT" ]
1
2019-05-01T08:03:06.000Z
2019-05-01T08:03:06.000Z
basic/auto/appium/demo.py
wuhongnpm/Python
1b0d576c8c04db6214b627bbe5530643b1f85da0
[ "MIT" ]
null
null
null
basic/auto/appium/demo.py
wuhongnpm/Python
1b0d576c8c04db6214b627bbe5530643b1f85da0
[ "MIT" ]
null
null
null
# This sample code uses the Appium python client # pip install Appium-Python-Client # Then you can paste this into a file and simply run with Python #adb shell dumpsys window | findstr mCurrentFocus #adb shell getprop ro.product.model from appium import webdriver caps = {} caps["platformName"] = "Android" caps["devi...
31.472222
119
0.761695
46e01dbf680d02bed46b7756ac1cd294cfc51cef
2,589
py
Python
weallcode/forms.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
15
2019-05-04T00:24:00.000Z
2021-08-21T16:34:05.000Z
weallcode/forms.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
73
2019-04-24T15:53:42.000Z
2021-08-06T20:41:41.000Z
weallcode/forms.py
rgroves/weallcode-website
ead60d3272dbbfe610b2d500978d1de44aef6386
[ "MIT" ]
20
2019-04-26T20:13:08.000Z
2021-06-21T14:53:21.000Z
from django import forms from django.conf import settings from captcha.fields import ReCaptchaField from captcha.widgets import ReCaptchaV3 from coderdojochi.util import email
25.89
98
0.499034
46e0903e5bdf7bf970df5689667d22a05b2773ae
4,411
py
Python
examples/ex4_mathsop/myhdl/construct.py
cfelton/alt.hdl
80cdefd20d4fd46e3a1b6116d4b2090135fe1cdf
[ "MIT" ]
19
2015-01-01T18:37:28.000Z
2021-11-26T14:33:37.000Z
examples/ex4_mathsop/myhdl/construct.py
cfelton/alt.hdl
80cdefd20d4fd46e3a1b6116d4b2090135fe1cdf
[ "MIT" ]
null
null
null
examples/ex4_mathsop/myhdl/construct.py
cfelton/alt.hdl
80cdefd20d4fd46e3a1b6116d4b2090135fe1cdf
[ "MIT" ]
1
2017-07-04T13:15:17.000Z
2017-07-04T13:15:17.000Z
from myhdl import * ggens = [] gclock = None #Signal(bool(0)) greset = None #ResetSignal(0, active=0, async=True) #=========================================# #=========================================# #=========================================# #=========================================#
28.642857
69
0.535706
46e1a8c21a554419cdff3642d808e34133c9c15c
6,975
py
Python
Notebooks/Text-Summarization/summarize.py
Abhijit2505/Grokking-Machine-Learning-
e088eeecacaa93d0bc87478b20d3401b5699224e
[ "MIT" ]
43
2020-12-18T17:18:22.000Z
2022-03-10T08:09:45.000Z
Notebooks/Text-Summarization/summarize.py
Abhijit2505/Grokking-Machine-Learning-
e088eeecacaa93d0bc87478b20d3401b5699224e
[ "MIT" ]
232
2020-12-24T20:33:30.000Z
2021-05-28T16:03:13.000Z
Notebooks/Text-Summarization/summarize.py
Abhijit2505/Grokking-Machine-Learning-
e088eeecacaa93d0bc87478b20d3401b5699224e
[ "MIT" ]
94
2020-12-21T18:17:36.000Z
2021-12-14T17:37:56.000Z
# importing required modules import argparse stop_words = {'i', 'with', 'he', 'down', 'itself', 'm', 'shan', 'no', 'yourself', 'but', 'the', 'y', 'again', 'more', 'o', "she's", 'theirs', 'my', "isn't", 'are', 're', 'their', 'own', 'during', 'don', 'such', 'me', "you'll", 'have', 'has', 'an', 'isn', 'wouldn', 'between'...
43.867925
1,486
0.600717
46e21454a078b2e8ade7f2191dc1b15307690c29
5,458
py
Python
torchvision/datasets/cifar.py
felixgwu/vision
d5eab760e60bc662961faa08a3a17deaa65d2c75
[ "BSD-3-Clause" ]
4
2018-07-22T19:20:49.000Z
2019-04-30T01:28:58.000Z
torchvision/datasets/cifar.py
felixgwu/vision
d5eab760e60bc662961faa08a3a17deaa65d2c75
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/cifar.py
felixgwu/vision
d5eab760e60bc662961faa08a3a17deaa65d2c75
[ "BSD-3-Clause" ]
2
2019-04-30T01:29:02.000Z
2019-05-01T07:36:23.000Z
from __future__ import print_function import torch.utils.data as data from PIL import Image import os import os.path import errno import numpy as np import sys if sys.version_info[0] == 2: import cPickle as pickle else: import pickle
32.105882
96
0.563576
46e27dfea306c481f9189b43bf419b95084d4d77
1,780
py
Python
project/modules/modules_helpers.py
MattiaPeiretti/MCDAS
11a12df305949d49201af26c0d71d48be6fcb545
[ "CC0-1.0" ]
null
null
null
project/modules/modules_helpers.py
MattiaPeiretti/MCDAS
11a12df305949d49201af26c0d71d48be6fcb545
[ "CC0-1.0" ]
null
null
null
project/modules/modules_helpers.py
MattiaPeiretti/MCDAS
11a12df305949d49201af26c0d71d48be6fcb545
[ "CC0-1.0" ]
null
null
null
import os import multiprocessing from tqdm import tqdm # Custom Modules import constants import formulas from dataHandler import dataHandler from settingsHandler import SettingsHandler from mcd_interface import MCDInterface settings_handler = SettingsHandler() mcd_interface = MCDInterface(settings_handler.get_setting...
29.180328
87
0.664045
46e3fc7bf3794e3fe125f3281b40c8afefb840e4
8,160
py
Python
backend/data/connection.py
jiangyy12/application-tracking-system
6de2d98351df65d43c09a5739c3c3dbdf3bf78d3
[ "MIT" ]
1
2021-10-17T16:00:20.000Z
2021-10-17T16:00:20.000Z
backend/data/connection.py
jiangyy12/application-tracking-system
6de2d98351df65d43c09a5739c3c3dbdf3bf78d3
[ "MIT" ]
14
2021-11-01T17:34:51.000Z
2021-11-16T02:48:03.000Z
backend/data/connection.py
jiangyy12/application-tracking-system
6de2d98351df65d43c09a5739c3c3dbdf3bf78d3
[ "MIT" ]
3
2021-11-01T18:00:49.000Z
2021-11-16T19:57:26.000Z
import mysql.connector as conn from mysql.connector import errorcode Connection = conn.connect( host="localhost", port="3306", user="root", password="", database="applicationtrackingsystem" ) print("Connect to the local database outside method success...
32.771084
136
0.552451
46e51229bf81d16850dc1c99426ad60797e1a90e
746
py
Python
pointCollection/ATL06/tile.py
tsutterley/pointCollection
04e4359e463ff8a556e0d078373578bd96390151
[ "MIT" ]
null
null
null
pointCollection/ATL06/tile.py
tsutterley/pointCollection
04e4359e463ff8a556e0d078373578bd96390151
[ "MIT" ]
null
null
null
pointCollection/ATL06/tile.py
tsutterley/pointCollection
04e4359e463ff8a556e0d078373578bd96390151
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 18 18:45:18 2019 @author: ben """ import pointCollection as pc
27.62963
130
0.615282
46e55a727f3051ddea52da6c465bbf43323192b6
5,898
py
Python
build/PureCloudPlatformClientV2/models/biography.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
libs/PureCloudPlatformClientV2/models/biography.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
libs/PureCloudPlatformClientV2/models/biography.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 applica...
25.097872
77
0.553238
46e677c6196f6b6664b127fcdc9e5b1d74d18be7
1,247
py
Python
src/backend/expungeservice/models/record.py
sico/recordexpungPDX
c2f18322014add7c78b27736bde2d29d1d086aa8
[ "MIT" ]
38
2019-05-09T03:13:43.000Z
2022-03-16T22:59:25.000Z
src/backend/expungeservice/models/record.py
sico/recordexpungPDX
c2f18322014add7c78b27736bde2d29d1d086aa8
[ "MIT" ]
938
2019-05-02T15:13:21.000Z
2022-02-27T20:59:00.000Z
src/backend/expungeservice/models/record.py
kenichi/recordexpungPDX
100d9249473a01953451b83a72ec1b74574acc43
[ "MIT" ]
65
2019-05-09T03:28:12.000Z
2022-03-21T00:06:39.000Z
from __future__ import annotations from dataclasses import dataclass, field from typing import List, Dict, Tuple, Optional, Any from expungeservice.models.case import Case from expungeservice.models.charge import Charge
20.112903
54
0.674419
46e87d0d702a6085e4175544be3a7b236bbac27f
3,329
py
Python
services/dsrp-api/app/api/application/namespace.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
null
null
null
services/dsrp-api/app/api/application/namespace.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
9
2020-05-06T23:29:43.000Z
2022-03-14T22:58:17.000Z
services/dsrp-api/app/api/application/namespace.py
bcgov/dormant-site-reclamation-program
4710434174a204a292a3128d92c8daf1de2a65a6
[ "Apache-2.0" ]
3
2020-05-08T16:54:22.000Z
2021-01-27T17:28:49.000Z
from flask_restplus import Namespace from app.api.application.resources.application import ApplicationResource, ApplicationListResource, ApplicationReviewResource from app.api.application.resources.application_estimated_cost_override import ApplicationEstimatedCostOverride from app.api.application.resources.applicatio...
67.938776
235
0.828477
46e978e4d8c72a9619d5082735eae010a3835dc0
4,172
py
Python
trabConfeitaria/pycake/migrations/0002_auto_20210908_2214.py
mestrecalendo/trabalho_web
4b6c8c6029e67270146396b8421f4c65a172a52d
[ "MIT" ]
null
null
null
trabConfeitaria/pycake/migrations/0002_auto_20210908_2214.py
mestrecalendo/trabalho_web
4b6c8c6029e67270146396b8421f4c65a172a52d
[ "MIT" ]
null
null
null
trabConfeitaria/pycake/migrations/0002_auto_20210908_2214.py
mestrecalendo/trabalho_web
4b6c8c6029e67270146396b8421f4c65a172a52d
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-09 02:14 from django.db import migrations, models
65.1875
545
0.584372
46ea0df8e2046e5c8f782334316cb99316dcf051
734
py
Python
course_registration/migrations/0002_auto_20191127_0506.py
Cent-Luc/University_Portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
null
null
null
course_registration/migrations/0002_auto_20191127_0506.py
Cent-Luc/University_Portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
1
2020-02-11T22:01:10.000Z
2020-02-11T22:01:10.000Z
course_registration/migrations/0002_auto_20191127_0506.py
c3n7/university-portal
82bf40a1c0d98111ffe8a184d16b543a3feec072
[ "MIT" ]
3
2019-11-14T08:50:15.000Z
2019-11-15T15:36:45.000Z
# Generated by Django 2.2.7 on 2019-11-27 05:06 from django.db import migrations, models
30.583333
172
0.608992
46eb67734142a3e1e31aedcc8ef44301ec624a41
743
py
Python
saliency.py
Desaiakshata/Saliecy-detection-using-opencv
8ebc9e461093bf66652ac55b36f737e9a93df787
[ "MIT" ]
null
null
null
saliency.py
Desaiakshata/Saliecy-detection-using-opencv
8ebc9e461093bf66652ac55b36f737e9a93df787
[ "MIT" ]
null
null
null
saliency.py
Desaiakshata/Saliecy-detection-using-opencv
8ebc9e461093bf66652ac55b36f737e9a93df787
[ "MIT" ]
null
null
null
import cv2 import argparse a=argparse.ArgumentParser() a.add_argument("-i","--image", required=True, help="input image path") args=vars(a.parse_args()) image=cv2.imread(args["image"]) # two methods # Static spectral saliency saliency = cv2.saliency.StaticSaliencySpectralResidual_create() (success, salien...
29.72
71
0.755047