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
Psayta/WSU_Projects
18,090,402,285,426
fd95ee52e7da5030be04684d6f7bca6f82691643
d34b72e4368fb03b78ca819ab4fd8626b159d25d
/Project 10/procedures.py
7c52d9ce17c70a969f188ea4258caa0dc80a751c
[]
no_license
https://github.com/Psayta/WSU_Projects
40722bfb2c6eb3d37615ab8079302b16763ff145
dbcf984f41141df841d44ecc254c4749451ffdb6
refs/heads/main
2023-05-25T09:53:10.678099
2021-06-04T19:21:48
2021-06-04T19:21:48
360,944,142
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Procedure: def __init__(self, ProName, ProDate, Practitioner, Charges): self.__ProName = ProName self.__ProDate = ProDate self.__Practitioner = Practitioner self.__Charges = Charges def ProName(self,ProName): self.__ProName = ProName ...
UTF-8
Python
false
false
789
py
20
procedures.py
17
0.585551
0.585551
0
26
28.307692
42
Reekomer/scrapweb
17,489,106,865,587
de2656db84388e91875e3b63558fa48344841665
aa85a4c6efd6146d8f959aa366dbaca63ad6c27c
/backend/scrapers/artprice/artprice/spiders/invaluable.py
b914fe99a392679c106a5e5c2ad35374abeba1be
[ "MIT" ]
permissive
https://github.com/Reekomer/scrapweb
030176ce8b0d08583aee32e2724db5e79f783dae
b56eaa4ec5ea23ea2daf95ddf06ba150b8b53bbe
refs/heads/master
2020-12-30T12:10:52.806859
2017-05-16T21:34:48
2017-05-16T21:34:48
91,506,381
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import scrapy from scrapy.selector import HtmlXPathSelector import urlparse class Art(scrapy.Item): title = scrapy.Field() date = scrapy.Field() price = scrapy.Field() class GetReview(scrapy.Spider): name = 'invaluable' start_urls = ["http://www.invaluable.com/drawings/cc-X40D0LU6...
UTF-8
Python
false
false
722
py
17
invaluable.py
10
0.599723
0.592798
0
24
28.083333
90
TheUncleKai/bbutils
7,739,531,112,286
794a11bb1047ff94944ce168fe3202f8ed7b2c1b
98a3afc34adccd68d34a4d681070267714fd8b9d
/tests/logging/console.py
505e772d50e01b5067d5b6951d188343ec4853ae
[ "Apache-2.0" ]
permissive
https://github.com/TheUncleKai/bbutils
6f606d54060acdd2b795068bcd77d4d3f4067de2
62a1258849c284de5e33fe85fb10a50e5b9f034e
refs/heads/master
2021-12-15T19:58:34.881224
2021-12-10T15:08:30
2021-12-10T15:08:30
232,920,435
0
0
Apache-2.0
false
2023-09-01T11:24:32
2020-01-09T22:44:05
2021-12-10T15:08:34
2023-09-01T11:24:31
1,099
0
0
2
Python
false
false
#!/usr/bin/python3 # -*- coding: utf-8 -*- # # 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 ...
UTF-8
Python
false
false
13,088
py
33
console.py
29
0.508175
0.495492
0
443
28.544018
92
briancabbott/GitHub-Repository-Downloader
3,745,211,489,833
9d33b3de675befb9a416ffe6d8428a5362a97ee0
5c157c4e76ca54d30f543e0393eae29d49d90962
/TypeScript/resources/code/ts_lib/Apollo-Latest/apollographql/internal-platform-orb/src/scripts/generate-mustache-parameters.py
f4f570adfb61f710f7bbec7bff6265bf01d77989
[ "MIT" ]
permissive
https://github.com/briancabbott/GitHub-Repository-Downloader
a69ccc97100947525fd77e822544b84b82c5636a
b2ea9502f68e64ff4c8e02ff6113f4f4dc927f60
refs/heads/master
2023-05-25T07:21:43.908126
2023-05-21T08:05:45
2023-05-21T08:05:45
148,926,714
1
0
null
false
2022-12-08T23:32:10
2018-09-15T17:59:55
2022-07-10T13:31:30
2022-12-08T23:32:10
126,905
0
0
3
TypeScript
false
false
#!/usr/bin/env python3 # PORTIONS OF THIS CODE from # https://github.com/CircleCI-Public/path-filtering-orb/blob/main/src/scripts/create-parameters.py import json import os import re import subprocess from functools import reduce def checkout(revision): """ Helper function for checking out a branch :param rev...
UTF-8
Python
false
false
3,338
py
3,942
generate-mustache-parameters.py
1,770
0.696225
0.68574
0
108
29.907407
109
mehultandale/hotel-management
4,870,492,952,485
1f9df9ea3838d5c9d2284584ffb90d4aceddb173
0ef0fbee7338d3e72a415a2d31db1a42cc1e9bb0
/hotel_management/rooms/urls.py
6cbced0a81d705f3b8c72c529a6f20dae9b44fbc
[]
no_license
https://github.com/mehultandale/hotel-management
a3d6c26077d074bb3cf7b438d185c6930286ebd4
693f4accb31b33660fa0d75fe433f0f6071c4147
refs/heads/master
2021-04-18T21:28:51.974126
2018-03-27T12:25:20
2018-03-27T12:25:20
126,471,608
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url, include from django.contrib import admin from .views import room_list, FloorList urlpatterns = [ url(r'^room-list/', room_list), url(r'^floor-list/', FloorList.as_view()) ]
UTF-8
Python
false
false
212
py
6
urls.py
5
0.721698
0.721698
0
10
20.2
42
EvelynZhou/separation
9,904,194,628,326
3041ab7cf11d24926ea0164399b56f4659be84a9
39e4acd72a12e203ceeef2330cbca194c2299fbd
/preprocess.py
a4569ed21f7a833fdb044b3f8a5f935085337a48
[]
no_license
https://github.com/EvelynZhou/separation
0351049d1088d5b698f83ba003bf02e714a5aac0
cb05b3a881a1a99586c0fe33ee903e3e32e091e4
refs/heads/master
2020-06-24T09:01:09.382200
2019-07-26T01:21:24
2019-07-26T01:21:24
198,923,384
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # !/usr/bin/env python import librosa import numpy as np import soundfile as sf import os import random from config import ModelConfig def get_filenames(datafilename): wavf = os.listdir(datafilename) wavfile = [] for file in wavf: if file.endswith(".wav"): wavf...
UTF-8
Python
false
false
8,357
py
10
preprocess.py
8
0.624704
0.612477
0
235
33.110638
150
collective/transmogrify.webcrawler
17,351,667,910,027
e7d9321ac8cc8b457b4f27af205847b64ebabefe
858e645a8b087da48d8031c1c0cfa2d089e002da
/transmogrify/webcrawler/webcrawler.py
d0e61a3baf8db290c3102abf307f35a8b213adb7
[]
no_license
https://github.com/collective/transmogrify.webcrawler
4cfa089140be8a535f8abd89201b9ff25bbf8d5c
4a169c043b40b96121c0e874033393218e1371cc
refs/heads/master
2023-08-25T03:16:37.610710
2014-02-03T05:45:40
2014-02-03T05:45:40
573,984
0
2
null
false
2014-11-20T17:42:06
2010-03-22T13:39:11
2014-02-03T05:45:56
2014-11-20T17:37:29
1,002
13
7
3
Python
null
null
from _socket import socket from transmogrify.webcrawler.staticcreator import OpenOnRead from zope.interface import implements from zope.interface import classProvides from collective.transmogrifier.interfaces import ISectionBlueprint from collective.transmogrifier.interfaces import ISection from transmogrify.webcrawl...
UTF-8
Python
false
false
22,404
py
9
webcrawler.py
5
0.559141
0.555749
0
600
36.336667
236
gmbz/frro-soporte-TPI-09
18,751,827,219,837
23276924e8bbb0de6849dab4f16f9610131b2925
e55cc6431790570c2534ebe094ec2be0d36c2385
/app/controller/users_controller.py
2eea19afb5c4f1f8c39c44a8564f90131c20d813
[ "MIT" ]
permissive
https://github.com/gmbz/frro-soporte-TPI-09
3e4212be279ff026cb8dc9d995709a5d4ed8230f
5161f5002fa11307c357920ec2278bb97f92f926
refs/heads/main
2023-08-24T18:25:02.846157
2021-10-20T17:39:00
2021-10-20T17:39:00
403,168,548
2
0
MIT
true
2021-10-17T19:36:05
2021-09-04T22:37:27
2021-10-16T22:49:51
2021-10-17T19:36:05
162
1
0
0
Python
false
false
from typing import Optional from ..database import user_db from ..helpers import helper from ..models.exceptions import UserNotValid, UserAlreadyExists, UserNotFound from ..models.models import Usuario def register_user(user_: Usuario) -> Usuario: try: if helper.validate_registration(user_): ...
UTF-8
Python
false
false
1,098
py
53
users_controller.py
30
0.644809
0.644809
0
41
25.780488
77
astrojuanlu/ezaero
6,176,163,004,552
902ca7aa16c31f781268126ec9c22e2cb88e550e
65d061dfd0a8504dda48faac1898d8e9fd264f78
/setup.py
9b23ca879c072f06d19ccf675f4b64144bef38e0
[ "MIT" ]
permissive
https://github.com/astrojuanlu/ezaero
10c0956b3f0df2b0781abbde13205dfe78aec677
564b3c3442081a5b18c30a0e884ffa217381c859
refs/heads/master
2022-01-26T02:19:48.660176
2019-05-15T21:39:15
2019-05-15T21:39:15
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from glob import glob from os.path import basename, splitext from setuptools import find_packages, setup NAME = 'ezaero' DESCRIPTION = 'Aerodynamics in Python.' URL = 'https://github.com/partmor/ezaero' EMAIL = 'part.morales@gmail.com' AUTHOR = 'Pedro Arturo Morales Maries' REQUIRES_PYTHON = '>=3.5' VERSION = '0.1.de...
UTF-8
Python
false
false
1,321
py
12
setup.py
7
0.572294
0.564724
0
56
22.589286
74
guru-14/CodeChef
4,595,615,024,135
3c248200ad4f6da0b913238d85f854c7e0ec9eab
7d122522df1d34c47ebbb11c8f3971232a23a441
/December Long Challenge 2019/WATSCORE.py
a50af37aa8631c098d785a80890467070ead558f
[]
no_license
https://github.com/guru-14/CodeChef
0098fafa28d7321bbaa09bd863300a3653da1466
3ccb2766c6f56b8fd76afdf31eb5aa8e875bea17
refs/heads/master
2020-07-09T09:37:16.466541
2020-04-14T19:58:37
2020-04-14T19:58:37
203,940,655
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Problem link : https://www.codechef.com/DEC19B/problems/WATSCORE for _ in range(int(input())): n = int(input()) scores = [0] * 8 for _ in range(n): p, s = map(int, input().split()) if p == 9 or p == 10 or p == 11: continue else: if s > scores[p - 1]: ...
UTF-8
Python
false
false
372
py
89
WATSCORE.py
88
0.473118
0.443548
0
13
27.615385
66
sanotaku/fem
4,947,802,363,756
b38313be174d2859298ff68c1996e897fa497b9d
fe4333ca3c70523f117285f50389ba0e97d9a15f
/fem/boundary_condition.py
34880191f84bfbb8d26fc8cc44c34dfd998f8d4c
[]
no_license
https://github.com/sanotaku/fem
96088caa115b33eb1d370f7b70eedf4e997f8a10
522b7f2abd259294f7fc5b1b65c19c7ca577e54b
refs/heads/master
2023-05-07T10:40:40.374697
2021-06-03T14:18:47
2021-06-03T14:18:47
320,246,490
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import List from fem.utils import ModelTypeError class HoldCondition: def __init__(self) -> None: """ Example... hold_condition = {1: True, 5: True} """ self.hold_condition = {} def set_hold(self, global_node_no: int, is_hold=True): if type(is_...
UTF-8
Python
false
false
793
py
13
boundary_condition.py
6
0.553594
0.544767
0
31
24.580645
58
PlatONnetwork/client-sdk-python
15,547,781,614,328
07cf9115af72c0994521c067df41a6d2b61eaa45
b64fcb9da80d12c52bd24a7a1b046ed9952b0026
/client_sdk_python/net.py
9eddcb018088398998223abb2938ddbd6625c7ae
[ "MIT" ]
permissive
https://github.com/PlatONnetwork/client-sdk-python
e59f44a77690806c8763ed6db938ed8447d42417
94ad57bb34b5ee7bb314ac858071686382c55402
refs/heads/master
2022-07-09T08:49:07.312759
2021-12-24T08:15:46
2021-12-24T08:15:46
173,032,954
7
16
MIT
false
2022-08-31T02:19:42
2019-02-28T03:18:03
2021-12-24T09:48:30
2022-06-22T04:33:46
1,027
6
9
5
Python
false
false
from client_sdk_python.module import ( Module, ) from client_sdk_python.utils.decorators import ( deprecated_in_v5, ) class Net(Module): @property def listening(self): return self.web3.manager.request_blocking("net_listening", []) @property def peerCount(self): return self.web...
UTF-8
Python
false
false
555
py
218
net.py
198
0.654054
0.645045
0
25
21.2
70
RubensIA/Kmeans
6,373,731,478,358
88393073bd7c09c56f50689c59cadc1fee868edd
98a2af78e752d7a560875b1e936d732fe355c1ff
/Kmeans7.py
4164aa1c5dd55ce00ccb5c9eb0f92821ac9a00c9
[]
no_license
https://github.com/RubensIA/Kmeans
ebc9857705cc881e762533216385cab76e0872b3
0f4e1761c7c38f3dc5389b05618246569b61b0c9
refs/heads/master
2020-03-07T03:35:41.659415
2018-04-13T21:02:16
2018-04-13T21:02:16
127,240,740
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 28 16:49:22 2018 @author: Rubens """ "algoritmo para clusterização em 3 clusters" import xlrd import numpy as np data = [[1,2,5,8],[2,4,7,3],[1,9,89,76],[10,32,87,56],[11,54,89,34],[12,89,90,27],[10,99,67,45]] data_aux = list(data) #Cria 3 centróides aleatórias data_au...
UTF-8
Python
false
false
3,481
py
5
Kmeans7.py
4
0.593318
0.550979
0
173
19.052023
96
tstrait/Unit1Project
6,073,083,781,324
5daaf022d1d58a396cb47da44b4d058a3dbcbff7
1fd587d717c75965765ba935809238493e44ac4f
/stringcompression.py
d344a3cc6295ada589a342766aa04da29c6986f3
[]
no_license
https://github.com/tstrait/Unit1Project
85ea53b9dc12e9847ee075a08592683b89e52966
99688af2973b67f8f26bafd19d46c34d51b26457
refs/heads/master
2020-03-13T03:05:03.385296
2018-04-28T21:47:24
2018-04-28T21:47:24
130,937,195
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
mystring = 'abbbcccdddde' def string_compression(mystring): print("Original string:", mystring) a=[] compressed=[] #for each character in string, check if next character is the same or not for i in range(0,len(mystring)-1): #if next character is the same, add to a temporary string i...
UTF-8
Python
false
false
1,188
py
6
stringcompression.py
5
0.657407
0.651515
0
30
38.633333
126
pgunnink/magnons-python
10,797,547,825,884
f4baa87274ff6d5051b1c93c2e2b3b03085e3f0f
3416d6a60032f32f2da0512152a36dc18b1b3a9f
/magnons/plot.py
d8be912c8b9d6a3940f819f4367a68eed44b0b4c
[]
no_license
https://github.com/pgunnink/magnons-python
5e6d533554aa4efcf759b09586001d50f35ea0bf
42a1a4139e3ab403a62cee0670dd590669aa27e7
refs/heads/master
2020-08-19T02:36:20.089621
2019-12-02T14:08:14
2019-12-02T14:08:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.pyplot as plt import numpy as np from magnons.spin import get_spincurrent_total from tqdm import tqdm import matplotlib as mpl from mpl_toolkits.axes_grid1 import make_axes_locatable def create_edges(x, upper_lim=None, lower_lim=0): N = len(x) new_x = [] for i in range(N): if i =...
UTF-8
Python
false
false
2,884
py
49
plot.py
35
0.57975
0.564494
0
91
30.692308
75
Janluke0/DSBDA-Project
2,619,930,098,419
87322ee6fb1223bd4f7004ba9489ebf6652e2d12
1d4a027a06375372f9554613fd4d7c7ec570efa6
/hadoop/join_works_hadoop/join_oscar_people/mapper_reducer/cast_crew_people/mymapper_join2.py
f45f94ba45182490e18150daa01a6f615ff592e1
[]
no_license
https://github.com/Janluke0/DSBDA-Project
09d748c51431a07d45b7d471f84d34cc9fb5aa6a
6bce1dbb744cc28a24710155e4356c267bcccc46
refs/heads/master
2023-02-09T21:33:26.985716
2021-01-09T17:38:48
2021-01-09T17:38:48
292,589,236
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import logging import sys import re from pprint import pprint log = logging.getLogger(__name__) from pymongo_hadoop import BSONMapper def mapper(documents): try: #print(documents, file=sys.stderr) #f=open("doc_formatted.txt","a+") for doc in documents: ...
UTF-8
Python
false
false
971
py
47
mymapper_join2.py
25
0.549949
0.548919
0
35
26.742857
73
dangxiaobin123/leetcodeAC
5,952,824,674,116
1136a9d9a5a557815377b9a1880bcd76270c07fd
9f144992eb5f41f624d2327967ba1498b36a7d05
/leetcode/0004. 寻找两个有序数组的中位数/python/median-of-two-sorted-arrays.py
206fcea607ec2b584b2b9f62a74357b966498bdd
[]
no_license
https://github.com/dangxiaobin123/leetcodeAC
6c93729bd2cc7edd4ed80387688555fb4718af26
64d26abe124267abf08afaf28fcbcd16be4f6ca4
refs/heads/master
2021-01-03T08:31:14.224703
2020-10-28T16:08:36
2020-10-28T16:08:36
240,001,477
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys class Solution(object): def findMedianSortedArrays(self, nums1, nums2): a, b = len(nums1), len(nums2) l, r = (a+b+1)>>1, (a+b+2)>>1 return (self.findKthNum(nums1, nums2, l)+self.findKthNum(nums1, nums2, r))/2 def findKthNum(self, nums1, nums2, k): if len(num...
UTF-8
Python
false
false
727
py
76
median-of-two-sorted-arrays.py
59
0.539202
0.482806
0
21
33.619048
104
blandinw/wit_ros
4,930,622,483,958
d1d07f2c27c3900d5ccfc684a7b3ffcf40d3c611
e9e4d588368b22e4b70f2279513c5ca18d3b820a
/src/wit_ros/wit_ros.py
8de39eb745c89fddc06cb4acdffdb3e8b19b4b97
[ "MIT" ]
permissive
https://github.com/blandinw/wit_ros
5ecffa3f5d566eb3ae60a5f15a8de3216bed6cda
8fe0b1d2132956f1f3c0114e815e6a3d1fadb959
refs/heads/master
2021-01-24T00:09:09.756688
2013-09-15T21:06:59
2013-09-15T21:06:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ROS node for the Wit.ai API""" import roslib roslib.load_manifest('wit_ros') global APIKEY APIKEY = None import rospy import requests from wit_ros.srv import Interpret, InterpretResponse from wit_ros.msg import Outcome, Entity def interpret(rosrequest): rospy.logdebug("Interpreting {0}...
UTF-8
Python
false
false
1,804
py
3
wit_ros.py
2
0.551552
0.550443
0
53
33.056604
112
huilongan/Python-for-data-processing
16,277,926,088,796
d1a86ac7f6bb675749ca0fdd2d1380c4f9ca7805
ea7043301d765717e3a09df68ccc160a356933eb
/emailsent2_2.py
19f19cac935b47dbc520c7156e89683310a8b370
[]
no_license
https://github.com/huilongan/Python-for-data-processing
b31ed0aea62ba2ea9865ef3e2441f5b664185707
cacb187632d84718cda47c3551a0779a6af55f04
refs/heads/master
2020-06-22T07:20:31.442702
2018-02-13T23:22:49
2018-02-13T23:22:49
74,599,467
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 10 10:58:50 2016 @author: Andy """ from email.message import EmailMessage from email.headerregistry import Address from email.utils import make_msgid from email.mime.text import MIMEText from email.mime.application import MIMEApplication from email.mime.multipart import M...
UTF-8
Python
false
false
3,801
py
8
emailsent2_2.py
4
0.623257
0.614838
0
114
32.342105
120
idancie/PersonalCoach
12,567,074,321,900
3cb0a5aa997c790dc3d68488a3b417a74b339324
72effb6b9b3252ed348291c56e9050f4af5e0e83
/personal_coach/trainings/models/exercise.py
195cc6af32333f7f33220fed556d7053aff28ae4
[]
no_license
https://github.com/idancie/PersonalCoach
301831a20d962293afc088326aebd5e530a4982a
a6ed5c9f9eda97ea6158feb83a5510b9e1ec7660
refs/heads/master
2020-05-18T01:26:44.602486
2014-03-02T19:47:05
2014-03-02T19:47:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from datetime import datetime from pytz import utc class Exercise(models.Model): '''Excercise that someone has performed ''' plan = models.ForeignKey('trainings.ExercisePlan', null=True, blank=False, ) type = models.ForeignKey('trainings...
UTF-8
Python
false
false
1,180
py
14
exercise.py
11
0.524576
0.522034
0
48
23.583333
57
gkoren/TempMonitor
1,949,915,154,938
879762c7da7db38564d16a15bff144a3ad115ccb
1e7b7a336dbb37a8624e7aca7553530d1ac9f237
/python/plots_area.py
762eaaf7830cc64ea0eee259dcfee214c397887a
[]
no_license
https://github.com/gkoren/TempMonitor
d8d8160fff193b78d922794f4b4e09953244134e
155ac66d5b3e43fbcd0e96407d10f1923cc4949b
refs/heads/master
2021-07-06T21:06:58.094487
2021-05-27T10:33:05
2021-05-27T10:33:05
100,924,134
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python #from PyQt4.uic import loadUiType from PyQt4.QtGui import * from PyQt4.QtCore import * from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar from matplotlib.figure import Figure from Pl...
UTF-8
Python
false
false
3,884
py
16
plots_area.py
11
0.611998
0.599125
0
107
35.299065
145
shaily99/Fake-News-Detection
19,439,022,008,504
b6afdb7fbdb95d7d812898bfd5f85a1b7f21e15e
d82f7439c2fbb78cbc5bcf6a34068029ffc654b9
/make_natlang_csv.py
fb60b48b60aa54cbbee676eace1b6d293267a551
[]
no_license
https://github.com/shaily99/Fake-News-Detection
f29f25f54f6c69bc29fa326857a732d012b44bdc
f770b81dfb50f5543c98ce30770bfc7841632a1c
refs/heads/master
2020-05-31T22:30:23.586125
2019-06-06T06:13:20
2019-06-06T06:13:20
190,521,611
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pprint import pprint import os import json import csv name_ = 'keyw_celeb_fake.csv' f = open(name_, 'w+') outWrite = csv.writer(f) path_ = './natlang_responses/celebrityDataset/fake' for file_ in os.listdir(path_): with open(os.path.join(path_, file_), 'r+') as f: res = json.load(f) row10 = [f...
UTF-8
Python
false
false
634
py
12
make_natlang_csv.py
11
0.615142
0.589905
0
29
20.862069
81
Eomys/pyleecan
5,480,378,297,105
bf9203f049a9f157fe104c92daf33111a4d26247
3e9e7a0fc3c3cb4af50360be4f1f917f94dce3e2
/pyleecan/Methods/Machine/LamHoleNS/comp_periodicity_geo.py
640df34f6b87f569abc3c665b607e9efdca83af2
[ "Apache-2.0" ]
permissive
https://github.com/Eomys/pyleecan
ba3bc98cddc2a1d014fd3a95e84d671f5ea3dcd7
2140c1532632b67c1a3a10441de52aa0713d562b
refs/heads/master
2023-08-17T10:53:50.867613
2023-06-22T15:18:31
2023-06-22T15:18:31
110,973,589
144
111
Apache-2.0
false
2023-09-14T15:25:34
2017-11-16T13:17:16
2023-08-31T12:26:58
2023-09-14T15:25:33
348,050
130
111
92
Jupyter Notebook
false
false
def comp_periodicity_geo(self): """Compute the geometric periodicity factor of the lamination Parameters ---------- self : LamHoleNS A LamHoleNS object Returns ------- per_a : int Number of spatial periodicities of the lamination is_antiper_a : bool True if an s...
UTF-8
Python
false
false
432
py
2,074
comp_periodicity_geo.py
1,750
0.645833
0.645833
0
17
24.411765
79
BalterNotz/huntjob
326,417,558,618
f4494a98b0f0dc37c67be35aa18ca475337bc71b
f83df26ec704ec5091ac8665b84869e768827c84
/main.py
f61627b690a2d46b7968f5e0a5b959f77c3ccef9
[]
no_license
https://github.com/BalterNotz/huntjob
31d1c50f55b1b922510e94e798bc7e8445975574
5c4816a39b8e0f1c79dfcf0ec4b51c8bd064b279
refs/heads/master
2021-04-30T07:29:04.031471
2018-03-31T13:47:38
2018-03-31T13:47:38
121,397,913
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # Python3 ''' ''' import time from selenium import webdriver liepinurl = "http://www.liepin.com/" liepinzhaopinurl = "https://www.liepin.com/zhaopin" try: fireFoxOptions = webdriver.FirefoxOptions() # fireFoxOptions.set_headless() driver = webdriver.Firefox(firefox_options=fireFox...
UTF-8
Python
false
false
1,197
py
7
main.py
7
0.665549
0.657167
0
40
28.825
135
pars-linux/pardus-1.0
19,009,525,275,546
c3a5d497d5aa23155ea90421d7b32e349ecdd37c
884112003b7bd1e200325bba3e3ac9a2f9d3ea8b
/programming/languages/blackdown-jre/actions.py
b005fa370c331536e67332bd6d308a74cdf22936
[]
no_license
https://github.com/pars-linux/pardus-1.0
e1a4049c17ac9f2fbc2ae50c61d81c15e03e5823
4d2196b7558b3870908e799e02568ee9a6eee419
refs/heads/master
2021-01-24T19:12:02.809085
2006-06-14T07:07:39
2006-06-14T07:07:39
82,460,626
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2005 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. # # S.Çağlar Onur <caglar@pardus.org.tr> from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.act...
UTF-8
Python
false
false
1,715
py
1,370
actions.py
319
0.652072
0.636311
0
53
31.320755
126
fluffynuts/scripts
3,418,794,002,780
cc7626bc02a1308c9f7b5a2ca08f46f417b23cf4
6e46ad114b6a542b3fede3e511dbe2ffc8d34176
/DropboxPushbulletPusher.py
52c753b2c0450475a7164dff8be2a30bc25a2205
[ "BSD-2-Clause" ]
permissive
https://github.com/fluffynuts/scripts
dffa978fd1ff360fe5cf630407f2eb5805fcf02b
8fc9493ac6c3b43f885742b504385bb74c8b7374
refs/heads/master
2023-09-04T11:02:17.356787
2023-08-23T14:36:40
2023-08-23T14:38:28
139,478,534
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import sys import os from pushbullet import Pushbullet import ConfigParser import dropbox class Pusher: def __init__(self): self._loadConfig() def _loadConfig(self): home = os.path.expanduser('~') self._secretsFile = os.path.join(home, 'secrets.ini') self._loadConfigFile() def...
UTF-8
Python
false
false
2,394
py
238
DropboxPushbulletPusher.py
221
0.639933
0.637845
0
82
28.195122
78
jkpubsrc/python-module-jk-jsoncfghelper2
1,159,641,205,896
3d4708362a9a7d51e06c5b2dc5f17b7d9f545e2f
004646388f3a40d4e6ee306730dad104b20a237b
/testing/test-compile-from-jdef.py
fc0c540e49c07b293e8716cb74114d0be5fff93f
[ "Apache-2.0" ]
permissive
https://github.com/jkpubsrc/python-module-jk-jsoncfghelper2
326e68391aac92f5782b5b54388580d3030285de
2c584c946db5d290525ff49f5c809cec14616247
refs/heads/master
2022-09-28T20:15:32.674328
2020-01-20T18:33:11
2020-01-20T18:33:11
235,169,634
0
1
null
false
2022-09-03T13:57:00
2020-01-20T18:29:07
2020-01-20T18:34:17
2020-01-20T18:34:14
175
0
1
1
Python
false
false
#!/usr/bin/python3 from jk_jsoncfghelper2 import * MAIN_DEF = JDefStructure("authData", structure=[ JDef("authMethod", dataType="str", required=True), JDef("authLogin", dataType="str", required=True), JDef("authToken", dataType="str", required=True), JDef("info", dataType=JDefStructure("authDataClientInfo", s...
UTF-8
Python
false
false
1,789
py
77
test-compile-from-jdef.py
8
0.645612
0.631079
0
72
23.791667
70
foothillsgeek/imgFTPur
6,167,573,058,842
f3ee5607e8725834d12d186beebcf9cc2633edd1
7cf8bcdf866c28022b088faa32490766dcd364f7
/imgFTPur.py
acc6c4510527d1ba0a61d44e85cc167e375372ba
[]
no_license
https://github.com/foothillsgeek/imgFTPur
c9d29c595e6112b3c027cd459c8a951701170728
8165f7014beca187ec737e964b39ddd55274c416
refs/heads/master
2021-01-19T00:46:13.282548
2015-06-17T01:55:37
2015-06-17T01:55:37
37,226,198
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#/usr/bin/python env import argparse import ConfigParser import sys from pyftpdlib.authorizers import DummyAuthorizer from pyftpdlib.handlers import FTPHandler from pyftpdlib.servers import FTPServer def arg_parser(): parser = argparse.ArgumentParser() parser.add_argument('--list_config', action="store_true"...
UTF-8
Python
false
false
1,404
py
2
imgFTPur.py
1
0.678063
0.676638
0
51
26.529412
108
azmweb/tyty
3,573,412,824,931
64a16c9ffbf9f15ceb5cd322713cb79c4f96b318
77e55c43ccfd96402ce9d10595a2ee563e7d6f96
/tyty/migrations/0003_auto_20190708_1755.py
a79cea58071bf2b2f142a8aaf66df345a85cc017
[]
no_license
https://github.com/azmweb/tyty
7677d40ae9498491490dbfd9a11a484e49e1c8e9
2d1ec308a0d8e878938bd92ee8408da5f9b9fae3
refs/heads/master
2020-06-21T15:44:41.163899
2019-07-18T02:54:14
2019-07-18T02:54:14
197,493,870
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.2 on 2019-07-08 08:55 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tyty', '0002_auto_20190705_1044'), ] operations = [ migrations.AddField( model_name=...
UTF-8
Python
false
false
1,969
py
34
0003_auto_20190708_1755.py
22
0.606907
0.580498
0
49
38.183673
154
rhanmar/python_explore
4,604,204,958,911
a19e7ecac9dbb2b74046be4fe3d6d5e49220ad1e
f0dec8189259791f4ccca11b9b372989a25d0b24
/tasks_basics/tuple_rotation.py
07d003b400609ae1edfbbc3f1873d7c68c1c4101
[]
no_license
https://github.com/rhanmar/python_explore
ff536ecfd0b7f7691c0c9612c3395184fc30c081
92ce62118180dcb6a44c964e27d2772bbb915165
refs/heads/master
2020-11-28T22:58:51.994509
2020-01-06T16:12:54
2020-01-06T16:12:54
229,943,175
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def rotate_left(triple): (a, b, c) = triple return (b, c, a) def rotate_right(triple): (a, b, c) = triple return (c, a, b) triple = ('A', 'B', 'C') print rotate_left(triple) # ('B', 'C', 'A') print rotate_right(triple) # ('C', 'A', 'B')
UTF-8
Python
false
false
256
py
44
tuple_rotation.py
44
0.519531
0.519531
0
13
18.769231
44
Afra-intellisoft/Musa-Trading
3,719,441,711,728
21398a37ad3d6c0f9079d2b3f1fc3c00a23cdd3a
b8760f70f2fa9a7714b890eb5b8794ef1ddd2d98
/check_followups/report/all_check_report.py
bf96413d2b72f1cc8920e2cceb9fc22c85803df1
[]
no_license
https://github.com/Afra-intellisoft/Musa-Trading
f87b98fed4478b040a744a9a86669f53611916bf
e07b0cbc1283d790db7c9d1c226d37ba81bae10d
refs/heads/master
2022-10-15T10:52:55.415361
2020-06-13T15:21:06
2020-06-13T15:21:06
272,035,372
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from odoo import api, models, fields # # from openerp import api, models, fields # from openerp.tools import float_round # from openerp.exceptions import UserError, Warning class all_check_report(models.AbstractModel): _name = 'report.check_followups.all_check_report' def get_check(se...
UTF-8
Python
false
false
8,742
py
238
all_check_report.py
101
0.475635
0.472775
0
221
38.556561
98
Soumithri/coding_problems
2,637,109,927,478
b1b1d475c4a4c6b624616d63ab7aae35bf74e849
e470d8d230d96c1c2bba2b3b6ace84e640dbb2e5
/src/hashes/answers/two_sum.py
7ac0d98a5494c2a3afd5c9d4f1a42f2a615de0e1
[ "MIT" ]
permissive
https://github.com/Soumithri/coding_problems
a4877b83ddbb4ef7e6f94d820b14c2ab41853b81
b10820d81677ef0edc9a5f2b310720d8e1df6c76
refs/heads/master
2023-04-13T18:06:26.457593
2020-08-10T07:04:37
2020-08-10T07:04:37
284,794,694
0
0
MIT
false
2021-04-20T20:46:26
2020-08-03T19:58:52
2020-08-10T07:04:41
2021-04-20T20:46:26
68
0
0
1
Python
false
false
def twoSum(nums, target): nums_set = set() for i in nums: diff = target - i if diff in nums_set: return True else: nums_set.add(i) return False
UTF-8
Python
false
false
205
py
34
two_sum.py
25
0.492683
0.492683
0
9
21.666667
28
neekin/djangoapp-rest
1,752,346,697,724
9d1877919800760cd9fd9bd2652f4bda588ff548
28c9b4437817e4f849b4a1098855776278fa184a
/apps/details/migrations/0001_initial.py
34771601e4a7c81d5f640797f90f2a65e5dc167f
[]
no_license
https://github.com/neekin/djangoapp-rest
9b0e1cefd24413384b995694f3832eaaac3fa1c3
f0e76794b098a6ff6f60e226dc4e9749fb282041
refs/heads/master
2021-07-23T11:55:46.845571
2017-11-04T01:30:02
2017-11-04T01:30:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-02 15:35 from __future__ import unicode_literals import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ...
UTF-8
Python
false
false
1,317
py
13
0001_initial.py
13
0.588053
0.569434
0
38
32.921053
137
mbraak/django-file-form
2,241,972,960,536
db0c6a494fda9632e09f1698e9a6831f03f7c632
a629162409ae8b7e42d90dd98cfeeda3036a559a
/django_file_form/migrations/0007_auto_20210119_0104.py
f7346c299948070a8b602bfe7035fed5598063f3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
https://github.com/mbraak/django-file-form
c0422237167961df97d2d6a9585e2554e0e38c3b
672651166c0107c20f5191ce481f5049f88444d5
refs/heads/master
2023-08-28T16:25:25.981926
2023-08-28T06:13:11
2023-08-28T06:13:11
9,933,602
153
47
NOASSERTION
false
2023-09-11T06:16:57
2013-05-08T10:06:20
2023-09-02T16:10:00
2023-09-11T06:16:56
18,073
146
40
5
JavaScript
false
false
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("django_file_form", "0006_auto_20200501_0908"), ] operations = [ migrations.RenameModel( new_name="TemporaryUploadedFile", old_name="UploadedFile", ), migratio...
UTF-8
Python
false
false
450
py
113
0007_auto_20210119_0104.py
74
0.591111
0.555556
0
18
24
56
justagist/tf_notebook_playground
8,126,078,135,755
fcedb5018dd60355034093189f0539c1b163ce29
68814f1f35cfcec0361afe2df6c61a8f6e4710ee
/code/autoencoder_mnist.py
e43823ce6653d40ea61c268de11e0c6710d5521b
[]
no_license
https://github.com/justagist/tf_notebook_playground
01b21a4eb873137f17b5392477b142194c0bbb7b
a290f8bc37f1b7de5f6e10b6ecb3ea9f65d02caf
refs/heads/master
2021-04-28T10:49:17.958703
2018-02-20T23:46:45
2018-02-20T23:46:45
122,075,116
0
0
null
true
2018-02-19T14:37:34
2018-02-19T14:37:34
2017-01-22T14:16:29
2017-01-22T14:26:06
520
0
0
0
null
false
null
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import numpy as np import matplotlib.pyplot as plt # import matplotlib.image as mpimg # %matplotlib inline mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) ''' Extracting MNIST_data/train-images-idx3-ubyte.gz Extracting M...
UTF-8
Python
false
false
2,785
py
1
autoencoder_mnist.py
1
0.656373
0.617594
0
74
36.635135
112
aCoffeeYin/pyreco
2,216,203,173,392
74917e702ddadb2a7333425c874e7bdc3826bef9
9b9a02657812ea0cb47db0ae411196f0e81c5152
/repoData/numba-numba/allPythonContent.py
ea59e539dc7d783472605598f66472d87c929e16
[]
no_license
https://github.com/aCoffeeYin/pyreco
cb42db94a3a5fc134356c9a2a738a063d0898572
0ac6653219c2701c13c508c5c4fc9bc3437eea06
refs/heads/master
2020-12-14T14:10:05.763693
2016-06-27T05:15:15
2016-06-27T05:15:15
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__FILENAME__ = bm_euler # Modified from a stackoverflow post by Hyperboreus: # http://stackoverflow.com/questions/6964392/speed-comparison-with-project-euler-c-vs-python-vs-erlang-vs-haskell from __future__ import print_function, division, absolute_import import math from numba import jit from numba.utils import ...
UTF-8
Python
false
false
2,953,372
py
16,703
allPythonContent.py
3,862
0.552561
0.542143
0.000002
93,617
29.547187
218
isaacaaa/server
13,941,463,891,948
2c2c64cd5edb6960cf0451edab903a3c615bc5f3
dc405b3efbafeab2770e3b97e3c03bdf03b4fa92
/client.py
07139d343ccbd120b1335889fe31d9553b3a6567
[]
no_license
https://github.com/isaacaaa/server
5ceb6ffd50affdd94e45ed2c29fd272e21f5a4bf
4faf75c63dbc77dbba44314032583a0d1e55f161
refs/heads/main
2023-04-03T10:32:55.096272
2021-04-03T15:44:01
2021-04-03T15:44:01
349,131,666
0
1
null
false
2021-03-23T10:49:30
2021-03-18T15:50:09
2021-03-18T15:53:11
2021-03-23T10:49:29
2
0
0
0
JavaScript
false
false
import socket class Client: def __init__(self) -> None: self.server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.server.connect(("127.0.0.1", 20213)) def send_msg(self): msg = b"This is a test from python client" self.server.send(msg) def run(self): se...
UTF-8
Python
false
false
521
py
2
client.py
2
0.564299
0.535509
0
23
21.608696
70
zjajgyy/webServer_project4
3,770,981,315,056
2bd2583304495c218695a8e1e2f0c7665e370c98
cea68be7423264081508cf28f569dcefd3c2c40e
/serverTest.py
26348fefccd13ea398be539911e976f216fb2f97
[]
no_license
https://github.com/zjajgyy/webServer_project4
5650280b9ca07c057150566948972bb0f7493e06
bdc48747fd22a4c102df5df5964fa12f9ceac8e2
refs/heads/master
2021-01-19T02:09:21.119565
2016-11-10T07:28:10
2016-11-10T07:28:10
73,357,222
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, request, Response import os import imghdr from PIL import Image from io import BytesIO app = Flask(__name__) app.config['ALLOWED_EXTENSIONS'] = set(['png', 'jpeg', 'bmp', 'gif']) def isnum(num): try: if(float(num) > 0): return True else: return False except ValueError:...
UTF-8
Python
false
false
1,314
py
3
serverTest.py
1
0.611872
0.59589
0
52
24.25
77
deyh2020/RRAM-RADAR-Tuning
3,229,815,452,211
131a4ba4a7f2a0e2d8bab6cd1e14d6c2888aa8fe
e3fa86932742b5b3cf504ee0c7b00b3fb13ad959
/exptdata/misc/forming/form.py
c68b18a29915f2ea5db1aa59479f5afeef493aef
[]
no_license
https://github.com/deyh2020/RRAM-RADAR-Tuning
e341a180694758e5836f2ad7bba6e2ec1e734b9f
5038af308a4bf0d8ca233f9699f31019d6580985
refs/heads/master
2023-06-26T08:49:31.009748
2021-07-27T02:33:47
2021-07-27T02:33:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib as mpl, numpy as np, pandas as pd import matplotlib.pyplot as plt # Load data and filter data = pd.read_csv('data/form-5-1-20.csv', delimiter='\t', names=['addr', 'wlv', 'blv', 'rf', 'success']) data = data[data['wlv'] == 2] data = data[data['blv'] >= 2.5] data = data[data['blv'] <= 4] data = data[da...
UTF-8
Python
false
false
1,048
py
672
form.py
25
0.670802
0.650763
0
40
25.2
105
ion9/eve-inc-waitlist
9,921,374,496,480
adfa84809558bb56cf824b0c64c2379a670c05dd
5bd7b8bb5827844f1a8b984b3212c1eb35a9b3b3
/migrations/versions/95eb3cae9e68_.py
5c6a96cd6bb649b9ae9132c37f9898722c1409c6
[ "MIT" ]
permissive
https://github.com/ion9/eve-inc-waitlist
f8a5ee96153e339b00ff2717555341597365fcea
0be8a50b63c986ed0156c5b91963eb5845343ecb
refs/heads/master
2021-07-07T09:52:17.179210
2017-09-19T13:04:04
2017-09-19T13:04:04
104,153,961
0
0
null
true
2017-09-20T02:16:48
2017-09-20T02:16:48
2017-09-06T17:08:21
2017-09-19T13:04:14
1,467
0
0
0
null
null
null
"""empty message Revision ID: 95eb3cae9e68 Revises: aacfc1555e57 Create Date: 2016-12-30 20:43:41.455000 """ # revision identifiers, used by Alembic. revision = '95eb3cae9e68' down_revision = 'aacfc1555e57' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ### ...
UTF-8
Python
false
false
1,762
py
64
95eb3cae9e68_.py
60
0.679909
0.654938
0
49
34.959184
107
QuentinGoss/sumo-windows10
10,548,439,722,958
ebf9a63fcb91ec2e83e7574cdfeae52cc5149aeb
2c98eec99d742b84089bc4f4bd2d06df5eac0d28
/projects/grid2/reroute1/runner.py
7fe5a9403b03a1f601b32292941502be8cc5b880
[]
no_license
https://github.com/QuentinGoss/sumo-windows10
085896f282f5bb05bfbe90fd506699f6a77707b2
ac1697b9fa857d0549d7847584427eec0c7d8f47
refs/heads/master
2020-04-03T18:04:21.236568
2019-10-29T17:22:41
2019-10-29T17:22:41
155,470,316
1
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys import optparse import config # ./config.py __IS_DEBUG_MODE = False # global flag used when calling debug() ############################### # Import sumolib_and_traci and TracI ############################### try: sys.path.append(config.s_sumo_tools_dir) # Path to SUMO python modules fro...
UTF-8
Python
false
false
8,183
py
209
runner.py
90
0.565318
0.557253
0
271
29.191882
124
duguyue100/spikefuel
2,697,239,467,298
1e82dcacdb6cfb57cb3cdb5e730f707f38bdc1d9
699cbda2cb495879cdcfbfb540df9171e119ae69
/spikefuel/__init__.py
afa2d7de96325a8d71ec87768cc8f7783bd899c2
[ "MIT" ]
permissive
https://github.com/duguyue100/spikefuel
18edbc3c9557c2eb981c11fad6d19039b36c7212
e06713b62c0bc7f881dd75a5a4842723cce4aaab
refs/heads/master
2020-12-12T23:22:02.520501
2016-11-17T15:09:01
2016-11-17T15:09:01
53,040,299
16
10
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Init the package of spikefuel. Author: Yuhuang Hu Email : duguyue100@gmail.com """
UTF-8
Python
false
false
87
py
39
__init__.py
26
0.724138
0.689655
0
5
16.4
33
dolamroth/visual_novel
11,398,843,214,317
624111d6c8a7739ca4767687af8c3ca8901dec30
5a5e3e838ee72d9e2922192e6e0f240340ef6540
/visual_novel/translation/migrations/0006_betalink_sent_to_vk_model.py
493e584c8260df5e422a93cb619bc48799f89a1d
[ "MIT" ]
permissive
https://github.com/dolamroth/visual_novel
6c89787079cf48dc0d0d70ca7ad3be3da97ae741
e3f1b13187e0fff5f6c94af907e0944b45f85fdc
refs/heads/develop
2023-07-26T19:50:42.472442
2022-11-22T11:54:26
2022-11-22T11:54:26
124,779,991
8
4
MIT
false
2023-09-10T13:37:13
2018-03-11T17:15:56
2023-09-10T10:09:10
2023-09-10T13:37:12
1,937
4
2
0
Python
false
false
# Generated by Django 2.0.2 on 2018-08-04 09:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('translation', '0005_add_translation_item_status'), ] operations = [ migrations.CreateModel( nam...
UTF-8
Python
false
false
1,214
py
176
0006_betalink_sent_to_vk_model.py
128
0.602837
0.583333
0
28
39.285714
158
Raj-Bisen/python
8,899,172,246,831
ae21a36d5ad52abe01d45043cc77bf8063178043
2dd53c9e439b580812ed98f7e27c809351a0ac97
/DisplayFactors.py
8a54529e64f8ee2151ec57ac9e6b04fc962ad101
[]
no_license
https://github.com/Raj-Bisen/python
9549fe2f3c5c4d8c4105746ae6d6cf39cf25c0c9
dc155da665a857adcd2c4f74842120939f6dae96
refs/heads/master
2023-07-03T16:23:30.459838
2021-08-10T09:55:23
2021-08-10T09:55:23
246,358,977
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# accept number from user and display its factors # input : 6 # output : 1 2 3 def DisplayFactors(no): iCnt = 1 for i in range(1,int(no/2)+1): # no = 6 if no%iCnt == 0: print (iCnt) iCnt = iCnt +1 #while(iCnt <= no/2): # if((no % iCnt) == ...
UTF-8
Python
false
false
607
py
56
DisplayFactors.py
56
0.410214
0.38715
0
26
21.423077
49
jdutreve/request-reply-pypy
18,382,460,029,953
f8a4b1142901b93a01cfb28d6f0d5cc1af0967cd
96577fb1b2853d6ec420d364aa3a4ef3a0b59e7c
/server.py
db1873c8eb7c39d704e89fa80645aa9227b674a9
[]
no_license
https://github.com/jdutreve/request-reply-pypy
1efd630bb53d68dcebd0d28fd9ae1ee3dd5b43f2
989daef3327544ac18bb401f23c2a87bc59d3b12
refs/heads/main
2023-01-24T00:39:11.143258
2020-11-15T10:07:32
2020-11-15T10:07:32
313,003,276
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # Paranoid Pirate worker # # Author: Daniel Lundin <dln(at)eintr(dot)org> # # restart DEALER socket when queue restarts (timeout to receive queue heartbeat) # heartbeat to queue so queue unregisters this worker when unresponsive # import time import sys from random import randint from datetime import datetime...
UTF-8
Python
false
false
6,227
py
3
server.py
3
0.571704
0.553557
0
192
31.432292
125
Ending2015a/test_memorynet2
7,146,825,616,270
2272abe6e28400ba9c15dfa2e3d54cb07963522b
7f05ca492a328c390316e8cea8400f64ed9c4c48
/model.py
80de48dd4ccdaaf1858e36204f5ad5a3209f693a
[]
no_license
https://github.com/Ending2015a/test_memorynet2
c6294200282a30aabc12169ff097edcb7f1d09d9
ad563866b5674e87b6346a45cd64d73315f10437
refs/heads/master
2021-05-14T03:46:24.701960
2018-01-08T03:27:05
2018-01-08T03:27:05
116,480,734
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import time import random import numpy as np import tensorflow as tf def position_encoding(sentence_size, embedding_size): encoding = np.ones((embedding_size, sentence_size), dtype=np.float32) ls = sentence_size+1 le = embedding_size+1 for i in range(1, le): for j in range(1, ls): ...
UTF-8
Python
false
false
10,678
py
5
model.py
5
0.568084
0.555535
0
268
38.83209
140
ChloeDumit/holbertonschool-higher_level_programming
5,617,817,234,015
5b266cb0633f719d8504da2aea175835562fc8ff
85cb34fe14b55018a1109f0345068e6e022c1ba9
/0x0A-python-inheritance/6-base_geometry.py
61cc5471fd5979f31bf642eb8b84e7f33d65b32f
[]
no_license
https://github.com/ChloeDumit/holbertonschool-higher_level_programming
5b5d1f86ef01653c4d00ed5035a44bd309f0850f
5e53eb817ef0c83e8fbda259ffabed6cd319b5b8
refs/heads/main
2023-04-24T01:40:52.454902
2021-05-12T14:14:33
2021-05-12T14:14:33
319,319,941
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 """ Return true if object is an instance of a class """ class BaseGeometry: """ class base geometry """ def area(self): """ def area""" raise Exception("area() is not implemented")
UTF-8
Python
false
false
234
py
89
6-base_geometry.py
82
0.58547
0.581197
0
14
15.714286
52
dave-shawley/imbi
4,114,578,688,078
0278168b2c9eb0494b9f21f4830c9ed75e80f843
88f7fa9c22983f2002664b22afd589931e3f77b0
/imbi/endpoints/project/__init__.py
1999964099cdfb62c94d423cf72402e89e8bd41b
[ "BSD-3-Clause" ]
permissive
https://github.com/dave-shawley/imbi
cbc67525991fa6fc9e93fd74b2063debce263150
61e2950a437c0599a365432580c3ee363b875177
refs/heads/main
2023-06-29T05:30:44.392994
2020-11-23T18:42:57
2020-11-23T18:42:57
316,947,047
0
0
BSD-3-Clause
true
2020-11-29T12:33:14
2020-11-29T12:33:13
2020-11-23T18:43:06
2020-11-23T19:23:16
530
0
0
0
null
false
false
""" Project Related Request Handlers """ from tornado import web from imbi import common from . import (dependencies, dependency, inventory, link, links, options, project) URLS = [ web.url(r'^/project/$', project.RequestHan...
UTF-8
Python
false
false
1,580
py
172
__init__.py
126
0.586709
0.586709
0
40
38.5
78
michaelplesser/counting-winks
4,801,773,444,140
4ed1ce0faed0addcd5f2682a78994b1086df33cb
d8339ee1a5c22b3deb12a5d66031a58c4686e090
/counting-winks.py
b04a0a3307d5de58f461061f8a2f0572a15b4f03
[]
no_license
https://github.com/michaelplesser/counting-winks
b4822368f6faa0d4687dde288a7644747505b730
08e2375b2262bb05c35544d2c1be09d0e782240c
refs/heads/master
2020-04-29T17:59:56.781291
2019-03-23T15:47:22
2019-03-23T15:47:22
176,311,392
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 #import av # This module is only needed if processing the video data. # It can be a pain in the ass to get its dependencies working. # For the analysis, just use the data/*.npy files, no av needed! import os import sys import scipy import argparse import scipy.stats imp...
UTF-8
Python
false
false
8,490
py
2
counting-winks.py
1
0.605889
0.589164
0
187
44.40107
180
AmigoCap/PredicTrajec
9,577,777,082,356
24a2b4b6d08cbde2427998774ec241d602e1b82d
2be2c928215e58018e8f822fb037b8141ce3496b
/ressource python/speedClassification.py
d16153229cb93660abd99ff2a4784337abe6e16c
[]
no_license
https://github.com/AmigoCap/PredicTrajec
54425a6eeb006060aacfc774763b6c1d603fc7bb
40f586e29365116aefc40bcdca3a3badacec368c
refs/heads/master
2021-01-25T13:28:33.668628
2018-06-18T15:18:01
2018-06-18T15:18:01
123,574,278
0
5
null
null
null
null
null
null
null
null
null
null
null
null
null
from scipy.cluster.vq import vq,kmeans,whiten import numpy as np import distance def applyKMeans(seg,k): lV=[] for ii, v in enumerate(seg['velocity']): lV.append([float(ii),v]) features = np.array(lV) whitened = whiten(features) k=kmeans(whitened,k) lK=[] for ii in ...
UTF-8
Python
false
false
2,990
py
16
speedClassification.py
10
0.628094
0.61204
0
98
28.510204
102
hmlinaric/AlphaBot
12,670,153,523,767
017a26a548d7dfaff536f8aee8ae0ceeed76242d
7be748c1f08848314f4caec780515f14df2915fd
/rpi/AlphaBotRestlet.py
3e6a58215cb74b6bc3e69ff3937a9284c4705023
[]
no_license
https://github.com/hmlinaric/AlphaBot
e3893f8cbe9bf5e54463fb4534334ca00a921397
88c24a051c49ab6012a48e96833a1ae6e3bcc0b4
refs/heads/master
2021-01-25T04:48:19.535541
2017-06-08T16:41:25
2017-06-08T16:41:25
93,478,673
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, request from flask_restful import Resource, Api from flask_restful import reqparse from AlphaBot import AlphaBot import sys #import pyhsm debug = True app = Flask(__name__) api = Api(app) #to awoid CORS problems @app.after_request def after_request(response): response.headers.add('Access...
UTF-8
Python
false
false
2,227
py
4
AlphaBotRestlet.py
3
0.680287
0.661877
0
88
24.261364
92
jmny-cell/School
14,980,845,949,246
6596d6757287d23699def25e7db1be631ae3bf53
58a961432d93c042e31c2b3992be9bb42ea2e4b9
/COMETPY (Computational Methods in Physics)/Project/MANAY_COMETPY_PROJECT.py
fc0d12e63cf82c2d660c31aa21dd705c27d32c04
[]
no_license
https://github.com/jmny-cell/School
ebab0df69ad14b0bf9fd3335870b032a023f1375
ec18011216df7f78556d2d4d6faf4afe743678ec
refs/heads/master
2020-12-27T06:41:40.654989
2020-02-03T01:55:47
2020-02-03T01:55:47
237,798,289
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import random import matplotlib.pyplot as plt # Initialize values m_init = 100 # initial wealth num_agent = 500 # number of agents num_transact = 10000 # number of transactions num_sim = 1000 # number of Monte Carlo simulations save_rate_list = [0.25, 0.50,...
UTF-8
Python
false
false
5,363
py
79
MANAY_COMETPY_PROJECT.py
17
0.656536
0.629871
0
118
44.457627
131
jlgrady1/mediamanager
1,537,598,311,956
ea3f34727509e3bb5a1dfc0cf3bbe629810e783c
9dd97bf7f5bab93211772942eb19048935ba0146
/sorter/migrations/0001_initial.py
494530b3c7c2c02974f119d66b3bbeaf0a1476ef
[]
no_license
https://github.com/jlgrady1/mediamanager
8c716885b831a63d64e57a05fab3335340a536ae
d92cb46aa0a1e78b9bb4bc0f43342f351e51c9d2
refs/heads/master
2020-05-24T14:03:32.584805
2015-03-20T14:45:58
2015-03-20T14:45:58
10,370,721
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Type' db.create_table(u'sorter_type', ( (u'id', self.gf('django.db.models.fields...
UTF-8
Python
false
false
9,566
py
20
0001_initial.py
9
0.583839
0.578612
0
157
59.936306
126
gabriel1898/auladeprogramacao
4,363,686,802,840
f3a535a4e6cfe8b6add36af9d62b4161acd2b456
dc32ede9f7d9e81a5636655fec4107d37cae9c05
/estruturaDecisao/exercicio11.py
6e3ce78ff974ac2fb31c584f49b8b8375f859a40
[]
no_license
https://github.com/gabriel1898/auladeprogramacao
d4abbfd296fec9b21d69ba4bfc44c530a7165faf
743261defce20c9dfc0d9bbeaf2a8acdc0e0c2b5
refs/heads/master
2020-10-01T04:34:07.247053
2020-01-16T21:04:48
2020-01-16T21:04:48
227,456,434
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def exercicio11(): s = 750 if (700 < s < 1500): a = s*1/10 print (a) print ("10%") print ("750") print ("825")
UTF-8
Python
false
false
128
py
74
exercicio11.py
74
0.484375
0.304688
0
8
15.125
22
cbporch/perceptron
12,197,707,141,339
806ba17b9a5add18daa95f17690235a79d475215
c4d33fb436d951a2317d4500ffb2ddd104d3e7ca
/perceptron.py
477b13bddcb021b4bb8060f5f9d25d96c38a69a8
[ "MIT" ]
permissive
https://github.com/cbporch/perceptron
b71587513752abd01ad219361f415402fca17aad
f90379038ef5a2b7b37c3a3fca5188f63da6d426
refs/heads/master
2021-01-22T01:51:29.094071
2017-02-05T19:03:53
2017-02-05T19:03:53
81,014,776
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Implementation of a Perceptron Learning Algorithm, that can be abstracted to various input sizes (NUM) or dimensions (DIM). Displays using pyplot. """ from matplotlib import pyplot as plt import numpy as np def f(x): # Target Function return 0.5 * x + 1.25 NUM = 20 DIM = 3 PLOT = True if DIM == 3 else PLOT ...
UTF-8
Python
false
false
1,442
py
1
perceptron.py
1
0.531207
0.501387
0
69
19.898551
76
shamssami/Selenium-Tutorial
6,416,681,174,773
491d37736c0f705f21924b1fe73c96a65044735a
92a7a80336e4c0547f68ab8f4071ccafd03360fe
/Tests/test_table_search.py
5fee79cd11a73d85be6aea9eb69d1c12383dc313
[]
no_license
https://github.com/shamssami/Selenium-Tutorial
07e4626ba762ee40be377cfcd6a6318d51cbc353
13e8ad1e73def3f03ef93e6f40921e2935b0e920
refs/heads/main
2023-06-26T01:29:56.943819
2021-07-31T20:59:11
2021-07-31T20:59:11
384,167,996
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import allure from allure_commons.types import AttachmentType from selenium import webdriver from Pages.table_filter_search import TableSearch from Utils.Logger import Logging from Utils.locators import TableSearchLocators from Utils.test_data import TableSearchData import time @allure.severity(allure.severity_level...
UTF-8
Python
false
false
3,103
py
96
test_table_search.py
25
0.63068
0.625846
0
78
38.782051
115
bgoonz/UsefulResourceRepo2.0
10,943,576,716,620
9b588d87826e6839b482b2cecefa13827bfc38ce
8afb5afd38548c631f6f9536846039ef6cb297b9
/_MY_ORGS/Web-Dev-Collaborative/blog-research/Data-Structures/HTML-only/DS-and-Algorithms-Prac/DS-n-Algos/Arrays/python/sum-avg/avg.py
3dd28b1c461c41ab11ba562de496378c512c4459
[ "MIT" ]
permissive
https://github.com/bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
false
2022-10-10T14:13:54
2021-07-03T13:58:52
2022-08-23T18:47:59
2022-08-11T03:18:48
10,239,100
5
11
2
null
false
false
# average of sum of lists m = [1,43,656,8,54,908,4,5,23,78,435,89,45,476,89] n = [234,56,90,675,56,786,90,564,8,657,87,64,354,2,75] q = [34,76,76,564,34,32,16,67,25,98,90,345,235,64,134,76] def avgSums(a,b,c): summingUp = sum(a) + sum(b) + sum(c) summed = summingUp / 3 return(summed) print(avgSums(m,n,q)) # [Running...
UTF-8
Python
false
false
546
py
107,966
avg.py
49,173
0.686813
0.450549
0
13
41
166
mkm-dz/punchoutAI
549,755,816,363
b3bce94483161fb77726e3b82191282caf2cdd02
5715d31e23089cb0bab4f2544205ad2a030d69a6
/punchout-ai/classes/punchUtils.py
c71a5c2cd45ba15b4c4432e42b4d20ba7a84bbae
[ "MIT" ]
permissive
https://github.com/mkm-dz/punchoutAI
4a5f6d5ff2984e137f4943f9da787b65d3845f1c
ab6cc41ffdc2011aab007a457daf9f9521391183
refs/heads/master
2023-03-04T05:47:17.970209
2023-02-24T17:49:28
2023-02-24T17:49:28
158,609,266
2
0
MIT
false
2023-02-24T17:49:29
2018-11-21T21:39:51
2022-02-13T02:54:42
2023-02-24T17:49:28
117
1
0
8
Python
false
false
from classes.bizhawkClient import BizHawkClient from gym import error, spaces import numpy as np from tensorflow.keras.utils import to_categorical class punchUtils(): def __init__(self): # We have an output space of 60 possible actions (moves) # we map each one to a controller action # Fi...
UTF-8
Python
false
false
5,554
py
12
punchUtils.py
8
0.548614
0.487396
0
152
35.539474
143
open222333/PythonCode
13,013,750,923,112
a823b10f55b6135d08adb09a061d7b4407bf4f77
3ff6b318db4d0fdda60c763f475b7dafa4f0c9ba
/Kingreturn_Algorithm/ch19-Meeting/ch19-8.py
702501e7d56ffb4ac2d8a24850a43ecfb5e5bc4c
[]
no_license
https://github.com/open222333/PythonCode
493124dcbbb4d4ab18be3090bc35224e20959780
b9baffd2598b2b1e131fdd6bb38536c685b633e5
refs/heads/master
2023-08-28T14:51:52.004948
2023-06-20T15:45:05
2023-06-20T15:45:05
356,302,028
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 挖金礦問題 動態規劃演算法 def gold(W, wt, val): '''動態規劃演算法''' n = len(val) table = [[0 for x in range(W + 1)] for x in range(n + 1)] # 最初化表格 for r in range(n + 1): # 填入表格row for c in range(W + 1): # 填入表格column if r == 0 or c == 0: table[r][c] = 0 elif wt[r - 1] ...
UTF-8
Python
false
false
774
py
1,002
ch19-8.py
926
0.458084
0.411677
0
21
30.809524
92
staguchi0703/ABC166
4,209,067,969,456
7a7cf7f5834c6f16068c89242fc8c3d5021ba210
ad0af348da7b97f21559697103bbf242db526b86
/E/resolve.py
27d63309082f85774dddd484c57c2b634dfd005c
[ "MIT" ]
permissive
https://github.com/staguchi0703/ABC166
ef923346c887e96d7e7a8739f4dad7cc3f7f9404
8913a37525d0ecdd58523117bd9a61f89a781bde
refs/heads/master
2022-05-27T20:21:16.164872
2020-05-03T13:45:14
2020-05-03T13:45:14
260,901,341
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def resolve(): ''' code here ''' N = int(input()) A_list = [int(item) for item in input().split()] dp = [0 for _ in range(N+1)] if __name__ == "__main__": resolve()
UTF-8
Python
false
false
195
py
4
resolve.py
4
0.461538
0.451282
0
11
16.727273
52
ArhinZi/Rubina
16,071,767,639,096
f7ba7ed3837176d4729337872d4eec9ebd968136
e01bdfb8cf82550c36db97af33ad3d08e084169a
/adm/admin.py
e357746543b678e04a5fdf29e5a48d98f6136555
[]
no_license
https://github.com/ArhinZi/Rubina
e4862f67bab7c6aafecddd61d7a8c445dd516c7b
89c69d0de010ee105503f8d3ecd24b563ce5fc22
refs/heads/master
2018-10-11T23:48:40.762153
2018-06-14T15:06:47
2018-06-14T15:06:47
121,873,359
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin # Register your models here. from .models import Video from .models import News from .models import Static from .models import Recalls admin.site.register(Video) admin.site.register(News) admin.site.register(Static) admin.site.register(Recalls)
UTF-8
Python
false
false
280
py
18
admin.py
11
0.807143
0.807143
0
12
22.333333
32
TheChouzanOne/ProjectEuler
6,846,177,877,255
4cd012b7c8e80c68b1536bc6a811fab9b8b8dc28
5e6bdead9022b93f0b050358239a92790d5040be
/P015/solution.py
2575118ed1c395ab9b86bbfbd7728e6b787e51cc
[]
no_license
https://github.com/TheChouzanOne/ProjectEuler
d1e5603e466b2e7275e94e0f01d8f5d30a567ef0
11aac516616bd00080925eaab90057a961fe28d2
refs/heads/master
2020-05-16T00:02:26.025339
2019-04-22T09:10:11
2019-04-22T09:10:11
182,569,309
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from time import time t=time() ans = 1 for i in range(21,41): ans *= i for i in range(1,21): ans /= i print(ans) print("Time: %s"%(time()-t))
UTF-8
Python
false
false
151
py
26
solution.py
22
0.576159
0.523179
0
11
12.818182
28
Aasthaengg/IBMdataset
18,923,625,922,208
1b34e2e65d058a1ce8825b747d700f4757090ea7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02416/s574642041.py
9143d753a53fc50a3b0a02446871b1cf3ddffbca
[]
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
go = 1 while go == 1: a = str(input()) alist = list(a) if a == "0": go = 0 exit sum = 0 for i in alist: i = int(i) sum += i if go == 1: print(sum)
UTF-8
Python
false
false
211
py
202,060
s574642041.py
202,055
0.369668
0.341232
0
13
15.230769
20
zzmjohn/deep_trading_notebook
6,536,940,252,687
b97ced9e054f61b1f264c7611f1e443710e2b1d6
ea1ff148253a759c57fa970d758c5e21d86318ea
/pandas_ta.py
cd2a8f551606dd90b685755b73a65df392ca2124
[ "MIT" ]
permissive
https://github.com/zzmjohn/deep_trading_notebook
525ebab350297e9d278aaca755aca7d3bd3ee572
95d82cb399df57fe17e80527c21d9e3c1a2af015
refs/heads/master
2021-08-15T07:57:17.069207
2017-11-17T09:24:57
2017-11-17T09:24:57
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd def EMA(df, n, column='Close'): """ Exponential Moving Average """ result=pd.Series(df[column].ewm(span=n,min_periods=n - 1,adjust=True,ignore_na=False).mean(), name='EMA_' + str(n)) return df.join(result)
UTF-8
Python
false
false
248
py
13
pandas_ta.py
7
0.637097
0.633065
0
8
29.875
119
dBounde13/Hangman
16,355,235,471,349
0c32ae56a1ae8a4f97d6db3347a213ae4f6a9e62
7c699473b65883cf25dd7bba5a5b2425dd526640
/Hangman/task/hangman/hangman.py
ada340a949354a66ca76e2df8ee4d570551d0c2d
[]
no_license
https://github.com/dBounde13/Hangman
d9488b9f7dea721fedee1daa67e8f2b49ea649e1
861c38cdd8f9a90fb02fb98eeafec3be5a635173
refs/heads/master
2023-06-15T19:35:55.459088
2021-07-13T10:07:44
2021-07-13T10:07:44
385,559,065
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random print('H A N G M A N\n') user_type = input(f'Type "play" to play the game, "exit" to quit: ') print() while user_type == 'exit': break words_list = ['python', 'java', 'kotlin', 'javascript'] word = list(random.choice(words_list)) guesses = list('-' * len(word)) print(''.join(guesses)) count = 8 tri...
UTF-8
Python
false
false
1,403
py
24
hangman.py
12
0.578047
0.574483
0
44
30.886364
68
Ericonaldo/pysc2_minimap_agents
5,815,385,767,698
e654d1fd21076fe7338e599c13fca3077d0225c6
1af3088cfc2aca00e497722ba63c50bd5ff20bfe
/build_marines_agent_v3-dqn.py
995aea39a97f06069ee1889cb0aba10c3bda1c32
[]
no_license
https://github.com/Ericonaldo/pysc2_minimap_agents
e052886382f1f94621880b9f41eadec877ed13fc
9e33f371bdfa2786ee492eb886f49eee01dedf48
refs/heads/master
2020-03-26T19:40:39.953087
2018-08-19T07:50:57
2018-08-19T07:50:57
145,279,578
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Chinese is noted by talor, eric import random import math import os.path import numpy as np import pandas as pd import tensorflow as tf import collections from pysc2.agents import base_agent from pysc2.lib import actions from pysc2.lib import features _NO_OP = actions.FUNCTIONS.no_op.id _SELECT_POINT = actions.FUN...
UTF-8
Python
false
false
18,578
py
2
build_marines_agent_v3-dqn.py
1
0.569862
0.559067
0
410
42.604878
216
defbobo/pytest-testmon
14,027,363,202,087
f8b717581f5ec62fdd4379c7bb45704284bce7b8
377489abd7886ca652f768ca77f508efe26623f2
/test/test_process_code.py
c564e81fc1bed5281c5ec083ccc01b2dbbc2e36e
[ "MIT" ]
permissive
https://github.com/defbobo/pytest-testmon
cbc92ce9b2c2b834e15d820a6a4a0ca2239dd70d
6964c04ed4c8979cce006240c0de49d22bde5340
refs/heads/master
2021-05-13T20:50:14.424205
2018-01-06T09:18:07
2018-01-06T09:18:07
116,920,371
1
0
null
true
2018-01-10T06:57:36
2018-01-10T06:57:35
2018-01-10T06:57:25
2018-01-06T09:23:09
247
0
0
0
null
false
null
# -- coding:utf8 -- from test.coveragepy.coveragetest import CoverageTest import pytest from testmon.process_code import Block, Module, checksum_coverage, read_file_with_checksum, process_encoding try: from StringIO import StringIO as MemFile except ImportError: from io import BytesIO as MemFile def parse(...
UTF-8
Python
false
false
9,721
py
12
test_process_code.py
8
0.503138
0.467538
0.000206
328
28.631098
118
mcdavid109/dpf-nets
2,456,721,295,769
74a46f5ca7100dea38324894043a87a22f90b875
74dcaf70e91d8153912bbfed465732d773c7d318
/lib/datasets/cloud_transformations.py
ed2767b2cd4b7d5fd2eedf6b4b9aa482f26826aa
[]
no_license
https://github.com/mcdavid109/dpf-nets
e5905791ae20d9ef2824580bdb8e3512e4b1e31a
386b7fbd5e4b1c57aeafafae28914473402d44a9
refs/heads/master
2023-01-07T00:20:06.952183
2020-10-30T02:33:33
2020-10-30T02:33:33
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from torchvision.transforms import Compose class Scale2OrigCloud(object): def __init__(self, **kwargs): self.do_rescale = kwargs['cloud_rescale2orig'] self.do_recenter = kwargs['cloud_recenter2orig'] def __call__(self, sample): if self.do_rescale: sampl...
UTF-8
Python
false
false
2,858
py
27
cloud_transformations.py
25
0.614066
0.604619
0
83
33.433735
122
janetzki/fact_extraction
3,813,930,991,005
1d96d5699cf17f404c9f3b1374c65a1efdc95eee
d93b22136858c58b5f6f55e7dd9bee1bef17cc8a
/pattern_learning/pattern_cleaner.py
d589c11a2f25a4b8b07b85da60ddf2815750aa27
[]
no_license
https://github.com/janetzki/fact_extraction
23756b81c1ba28f1d28d84b20899ab00c81d6104
187023f93937985e10f593b032ea7f48c1d61060
refs/heads/master
2023-07-16T19:41:50.462284
2021-08-28T14:19:34
2021-08-28T14:19:34
73,001,582
5
0
null
false
2021-08-28T14:19:34
2016-11-06T15:57:58
2020-07-16T02:58:16
2021-08-28T14:19:34
119,514
6
0
16
Python
false
false
from tqdm import tqdm from storing_tools import PatternTool from pattern_extraction import Pattern import os dir_path = os.path.dirname(os.path.abspath(__file__)) + '/' class PatternCleaner(PatternTool): def __init__(self, least_threshold_types, least_threshold_words, patterns_input_path=dir_pat...
UTF-8
Python
false
false
1,829
py
63
pattern_cleaner.py
57
0.632586
0.632586
0
39
45.897436
101
Chamalie-UOM/BackEnd
566,935,707,293
dde84e81a1278696f390ce69327da983ed4a0467
923759b372d7367ae07e5cca91d3df1709b8c276
/phyloGenie/ml.py
72e419763853ea3851cdf8d09928cf8bda9fa3b3
[]
no_license
https://github.com/Chamalie-UOM/BackEnd
fbb74a0344da943df1741553a8aa5bdffc5c609e
9f67cf00cbcea13778700b4512efd89fa434e383
refs/heads/master
2020-07-07T17:46:51.195757
2019-11-20T13:16:22
2019-11-20T13:16:22
203,426,932
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sys from Bio import Alphabet from Bio.Phylo.Applications import PhymlCommandline from io import StringIO from Bio import AlignIO, SeqIO from Bio import SeqIO from Bio.Alphabet import IUPAC class MlTreeConstructor: '''def formatConversion(self, data_type, file): temp = "{}.phylip".format...
UTF-8
Python
false
false
1,798
py
24
ml.py
23
0.577308
0.57564
0
51
34.235294
96
poyuH/DiseaseRiskCalculator
17,746,804,869,700
3f70c867fb0a8193e82bf8077c0919112d7aa28b
9d9b1e86717cdf816360308dfff31a29c8e252d2
/user/globalvalues.py
ad5c74abdade751c876b6e0cb70a3c3195482eb5
[]
no_license
https://github.com/poyuH/DiseaseRiskCalculator
2d9c7dd5adab05544e5da94d6dd942a86964aca4
6caf7b50debb7fc6a97715fb7e17bdbd29a49bee
refs/heads/master
2020-06-03T14:03:02.901280
2019-09-11T02:47:47
2019-09-11T02:47:47
191,596,497
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime def get_birthyear(): cur_year = datetime.date.today().year return [(year, year) for year in range(cur_year-100, cur_year + 1)] def get_gender(): GENDER = ( ( 0,'female' ), ( 1,'male' ) ) return GENDER def get_race(): RACE = ( ( 0, 'Other' ), ...
UTF-8
Python
false
false
368
py
17
globalvalues.py
10
0.519022
0.497283
0
22
15.727273
71
WSJI0/BOJ
68,719,514,737
700eb53603dd7bc82c78451548ecf250214e4a36
6e601105760f09d3c9f5306e18e4cf085f0bb4a2
/10000-99999/10990.py
62e442db10353f81e5828159e5f37c70b7d88e07
[]
no_license
https://github.com/WSJI0/BOJ
6412f69fddd46c4bcc96377e2b6e013f3bb1b524
160d8c13f72d7da835d938686f433e7b245be682
refs/heads/master
2023-07-06T15:35:50.815021
2023-07-04T01:39:48
2023-07-04T01:39:48
199,650,520
2
0
null
false
2020-04-20T09:03:03
2019-07-30T12:48:37
2020-04-19T11:34:50
2020-04-20T09:03:03
261
1
0
0
Python
false
false
''' 10990번 별 찍기 - 15 ''' n=int(input()) print(" "*(n-1)+"*") if n>1: for i in range(2,n+1): print(" "*(n-i)+"*"+" "*((i-1)*2-1)+"*")
UTF-8
Python
false
false
155
py
739
10990.py
736
0.380952
0.285714
0
12
11.333333
48
Gr3yG00se64/overwatch
5,420,248,760,218
682efabebab7374e91d53d7a58b7c8d12311a35f
839cd5616d63825192dffb3730dacb67619bda2f
/modules/maintenance/db_handler.py
a9fee5494a01f2ffb7d6522b31dab2bc848df453
[]
no_license
https://github.com/Gr3yG00se64/overwatch
1e0777005a28cc3e8e3b32d130935d6ee4163110
090f3d8aafe758ae29b4c5add346e1bc51cc923a
refs/heads/master
2020-09-12T09:16:55.854617
2020-04-20T06:01:35
2020-04-20T06:01:35
222,378,902
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Local Dependencies import config #Package Dependencies from pymongo import MongoClient def remove_alerts(alerts): #Establish DB Connection connection = MongoClient(config.mongoURI) #Set Up DB for Alerts alertDB = connection["alerts"] alertCollection = alertDB["alerts"] if alerts: fo...
UTF-8
Python
false
false
1,639
py
23
db_handler.py
20
0.663819
0.663819
0
68
23.088235
74
jesdin/OST
10,316,511,487,727
d61ee8beaf8be02ac6f48e51a503c17d831ee458
cefab47e1b4d134b02a7e28b8a28e2d289534044
/Exp 4/exp4a.py
83afd9b41b70e4dd8a31d650706ed11b4b688c9d
[]
no_license
https://github.com/jesdin/OST
d251de9a471b0891410a2d504b2dce94a9e1168b
702cf008ec0d7b6cf5ee9852d7f0a66acecd8e14
refs/heads/master
2020-04-26T09:25:22.813993
2019-03-26T16:53:49
2019-03-26T16:53:49
173,454,435
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import copy str1 = input("String 1: ") str2 = input("String 2: ") set1 = set(list(str1)) set1.discard(' ') set2 = set(list(str2)) set2.discard(' ') print("Set1: {}".format(set1)) print("Set2: {}".format(set2)) print("Common letters: {}".format(set1 & set2)) print("letters in str1 not in str2: {}".format(set1 - set2))...
UTF-8
Python
false
false
954
py
16
exp4a.py
16
0.672956
0.63522
0
30
30.766667
80
vecelo/Chuck2
19,636,590,478,457
f9b09a29f6fd2d1fec297b8ef6b8b7056475e4c6
089e2bf84731446ce7d3b2b209fc58fc882d97b0
/test1.py
b99faad13f236bec84e4a15749906c7c55e9149c
[]
no_license
https://github.com/vecelo/Chuck2
d3c4163b30c181947a024c099d97a9d3514c81dc
86265a727b4747f9607ee0e8496ee66704275b98
refs/heads/master
2021-01-10T02:10:49.057812
2016-01-10T07:32:11
2016-01-10T07:32:11
49,357,834
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from f1 import kiem class tc1(unittest.TestCase): def setUp(self): pass def test_f1(self): self.assertEqual(kiem(['<key>Track ID</key>'],['<integer>369</integer>']), 369) if __name__ == '__main__': unittest.main()
UTF-8
Python
false
false
260
py
3
test1.py
2
0.603846
0.569231
0
12
20.75
87
iciclenine/jim
8,203,387,580,140
632322b6fc8772ffa7cb44a34c15537919b1c0f7
3b3e636c711219b0173b4297f7ab672689463c0a
/old_jim/config.py
be2146a11c8acc1a962fd54e28b3eb609a94d2e9
[]
no_license
https://github.com/iciclenine/jim
3822f54770efcdd7c1f31a87024b6e5257ec7fc5
1e89b8ab94f4775366964cee43e919d1346e21e9
refs/heads/master
2016-05-23T02:36:49.776523
2013-12-13T23:05:27
2013-12-13T23:05:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/opt/local/bin/python import getpass import os # from jim import JIM_DIR, JIM_DB, JIM_WORKING, JIM_CONFIG, COL_NUM import re import sys import yaml ARGV = sys.argv NUM_ARGV = len(ARGV) HOME = os.path.expanduser("~") JIM_DIR = os.path.join(HOME, ".jim") PROJECT_DB = os.path.join(JIM_DIR, "projects.db") JIM_DB = os....
UTF-8
Python
false
false
3,043
py
21
config.py
14
0.616826
0.599408
0
149
19.416107
118
gm332211/workspace_p3x
14,697,378,121,403
7c5fd5b83bd69dfbe39ce25ed45fec05266c4ff3
88efda89a4aa923079e89ea53c4eaa13522d1bfe
/模块/类的使用/class模块.py
ff94924873807942b7d111f6af87bbc3151912eb
[]
no_license
https://github.com/gm332211/workspace_p3x
fab5132107863ae26ed079774d2c80883e187266
33c106cd069962df8e2ab99b552bfd9288530f1a
refs/heads/master
2021-04-12T12:05:16.716708
2019-01-29T09:02:28
2019-01-29T09:02:28
126,682,989
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Role(): #构造函数 n=123 #类变量,没有实例化也可以调用类变量(好处共用属性,节省内存) def __init__(self,name,role,have_gun,live_value=100,money=1000):#类的初始化方法 self.name=name #实例变量(作用域实例本身)(静态属性) self.role=role self.have_gun=have_gun self.live_value=live_value self.money=money def buy_gun(sel...
UTF-8
Python
false
false
1,447
py
138
class模块.py
82
0.622481
0.603393
0
32
28.5
76
PatriotJ/chenyun-leetcode
5,317,169,547,097
a09537ebfeeac5e68d7e4e446d98f0febb8ec32a
638684378d281aa23d3262f0eb6ead5527fb544c
/python/496.py
fefca4a68a61217864be0461c7d28f2402234999
[]
no_license
https://github.com/PatriotJ/chenyun-leetcode
3bd52525f75b91786bfa11ead754e19d7765ef4f
e1b43d5e1819916cd48598a1a6a547f749ffff3c
refs/heads/master
2020-05-30T18:59:23.818287
2019-07-11T23:20:37
2019-07-11T23:20:37
189,913,801
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def nextGreaterElement(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ ans = [-1] * len(nums1) dic= {} for i,num in enumerate(nums1): dic[num] = i stack = [] for n...
UTF-8
Python
false
false
532
py
465
496.py
464
0.43797
0.421053
0
19
27
47
wwwwodddd/Zukunft
6,158,983,122,347
964304cf466cc6b4f753baa627baa50ed14bc7cf
1c390cd4fd3605046914767485b49a929198b470
/luogu/P4236.py
7d56d25698bd9fab1b682e048c4d0adb529081b5
[]
no_license
https://github.com/wwwwodddd/Zukunft
f87fe736b53506f69ab18db674311dd60de04a43
03ffffee9a76e99f6e00bba6dbae91abc6994a34
refs/heads/master
2023-01-24T06:14:35.691292
2023-01-21T15:42:32
2023-01-21T15:42:32
163,685,977
7
8
null
null
null
null
null
null
null
null
null
null
null
null
null
t = int(input()) for tt in range(t): a, n = map(int, input().split()) if a & 1: print(['wzt', 'lsq'][n & 1], 'Win') else: n %= a + 1 print(['wzt', 'lsq'][n & 1 or n == a], 'Win')
UTF-8
Python
false
false
188
py
6,144
P4236.py
6,060
0.462766
0.441489
0
8
22.5
47
Pramod-Shrinivas/Project-Euler
4,621,384,823,644
cbb8a058d531532baebb42b33024fd2146ea4e68
353508e9f9746be5783dc822b37776dcd13c15e6
/Python/002.py
c81f2c04a01eae27feddef02e5d3ecdea985b3b8
[]
no_license
https://github.com/Pramod-Shrinivas/Project-Euler
ee94e7448feeeff8cc03ae2534e85a88326768e6
86951a507f7c71788f1d0264108fa4c23bb53022
refs/heads/master
2016-09-06T19:30:53.637228
2015-01-28T10:23:51
2015-01-28T10:23:51
29,229,741
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python ''' Purpose: https://projecteuler.net/problem=2 @author:Pramod S ''' def main(): f1,f2,sum=1,2,2 while(f2<=4000000): f1,f2 = f2,f1+f2 if(f2%2==0): sum+=f2 print("result {0}".format(sum)) if __name__ == "__main__": main()
UTF-8
Python
false
false
304
py
18
002.py
17
0.483553
0.404605
0
15
19.266667
49
Yu-Jhin-s-Python/006992
10,565,619,559,238
902a9dc4f4f710aac28d68c02a47d911728b1155
d342494d8a41fe941f16d1a89144afa001f04e01
/twoWindow.py
81f406fec718328d5ebbb52d10ce77943f170d4f
[]
no_license
https://github.com/Yu-Jhin-s-Python/006992
8381ce8b756569ec94d4e69828aa07426ca41ec2
7493540e7ae7cd54e2fc1e6a6c8be3bdafd67e70
refs/heads/master
2022-04-08T09:40:24.148920
2019-09-30T06:07:44
2019-09-30T06:07:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tkinter window1 = tkinter.Tk() window1.geometry("100x100") window1.configure(background="white") window2 = tkinter.Tk() window2.geometry("100x100") window2.configure(background="black") def changecolor(): print("button1") def changecolor2(): print("button2") btn = tkinter.Button(window1, text="Random c...
UTF-8
Python
false
false
468
py
34
twoWindow.py
33
0.74359
0.685897
0
22
20.272727
74
Tubbz-alt/psbeam
12,257,836,667,298
e3f01adc04a0dac281e4edbe0d0abf20df87a9dd
28b94ec8485c1dcb387078c6a18b9d19af2c37b8
/tests/utils.py
46c31ec0db2a50d555662a6fc47616a707b1894a
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/Tubbz-alt/psbeam
443648723e5a53700d0720ec9d6d52af6e34096e
42524e0ba52e04bf37d86416bbd35360e5df5d2c
refs/heads/master
2021-08-15T17:58:44.242303
2017-11-18T01:50:45
2017-11-18T01:50:45
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############ # Standard # ############ import logging logger=logging.getLogger(__name__) def collector(field, output): """ Reimplement bluesky.callbacks.collector to not raise exception when field is missing. Instead, log a warning. """ def f(name, eve...
UTF-8
Python
false
false
612
py
21
utils.py
16
0.571895
0.570261
0
23
25.608696
77
swuerth/StravaDevChallenge
2,044,404,435,904
2bf0cf89242bca0d2721c26c5da81910016026bd
44a2803051ca3627025dae5d10b095596ad58ad0
/strava-club-highlights-gcloud/env/lib/python2.7/site-packages/units/abstract.py
c5dbd122698c120f4a4e0eedf974c3eb0d0387fc
[]
no_license
https://github.com/swuerth/StravaDevChallenge
f5e238a3b5a67ed1acca48e0bdfc315800d9b7d0
0fcdddeab99694c1bd5be983d2b34ea043f7c39f
refs/heads/master
2020-04-06T07:03:14.729373
2016-09-07T21:01:38
2016-09-07T21:01:38
65,424,264
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
"""An abstract base class to define the interface for all units.""" from units.compatibility import compatible from units.exception import IncompatibleUnitsError from units.quantity import Quantity class AbstractUnit(object): """Parent class/interface for units.""" def __init__(self, is_si): self...
UTF-8
Python
true
false
1,512
py
78
abstract.py
54
0.580026
0.579365
0
44
32.977273
69
blackball/.emacs.d
7,310,034,345,352
3ea194bdd43bbc7873d6bd5388788b9e9bb604a8
b317ea149ba1954bc2b7a12e58fce69e72e814b0
/.python-environments/default/lib/python3.6/sre_constants.py
62e6eb3529094de6b4513626a2c490fb7b10bf27
[]
no_license
https://github.com/blackball/.emacs.d
d71d863308c1bc03550996856f75cf1f0677dfa1
b2a9988957bf0c30840afb9f39f1487b2d8e268c
refs/heads/master
2023-06-05T20:06:29.440954
2021-06-17T07:19:11
2021-06-17T07:19:11
69,253,081
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
/home/rvbust/Rvbust/Install/Miniconda3/lib/python3.6/sre_constants.py
UTF-8
Python
false
false
69
py
76
sre_constants.py
37
0.84058
0.797101
0
1
69
69
ly-c-christopher/EllieActiveToStaging
3,427,383,908,883
297a6dde9244bb50d12b6ed278ba098c46557a0d
ecc7a22cb85cb935aaa13e48eadd4e2f1b6271b9
/psql_db.py
ff343809881f89c59a6e7b182f346619401d533c
[]
no_license
https://github.com/ly-c-christopher/EllieActiveToStaging
67c90643e93aea23d4fc053e42224854be1d54a6
c38c50dae4a92f1b1b663651412f9cbb7a1603e1
refs/heads/main
2023-02-13T01:12:13.208471
2021-01-19T00:23:47
2021-01-19T00:23:47
330,789,911
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import psycopg2 import PsqlProduct from config import config, TABLES, ELLIE_TESTING_TABLES def get_products(): """ Connect to the PostgreSQL database server """ conn = None try: # read connection parameters params = config('ellie_testing') # connect to the PostgreSQL s...
UTF-8
Python
false
false
6,163
py
20
psql_db.py
17
0.547785
0.538699
0
142
41.415493
119
fepeter/VASY
18,116,172,089,289
5639a9f6ea8178a9afc081a5dc924c7619dd3eb5
69b84f3f90bea2335e96106311bda30314f3d550
/Aufgabe 2/exit.py
6d30c2e3cb8dc83fc7915918a00ed5d530d58310
[]
no_license
https://github.com/fepeter/VASY
2a5d21a8c20788ad9fb28fe624919ff191275b66
c6344cba500b10ed01b994dd1fd47223880afa0e
refs/heads/master
2021-09-04T21:39:45.463528
2018-01-22T12:22:22
2018-01-22T12:22:22
113,789,601
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import mraa, time class EdisonCar(): def __init__(self): self.pwm_ina = mraa.Pwm(0) self.pwm_inb = mraa.Pwm(14) self.pin_stby = mraa.Gpio(15) # 0 = motor off self.pin_ina1 = mraa.Gpio(45) # 0/1 -> go forward/backward self.pin_ina2 = mraa.Gpio(46) self.pin_inb1 = m...
UTF-8
Python
false
false
3,071
py
12
exit.py
12
0.57408
0.550309
0
102
29.107843
80
frstrtr/twisted-network-programming-essentials-examples
18,459,769,439,702
37ead2ce6935a5a4ee01e02611f47aba89f36c36
370e82472caf4cbcc711a6877181e94275a38d5a
/Chapter4-Web-Servers/ex7-web60sec_dynamic_URL_dispatch.py
ced1194cc7327ee84552ed498201d46f53a26988
[]
no_license
https://github.com/frstrtr/twisted-network-programming-essentials-examples
74e45c065cfc45e58b48fe386871287626a3fa78
15ff534b7ca0a3ff27e49788d5338472c6b89463
refs/heads/master
2022-12-08T07:34:29.984408
2020-08-28T14:30:33
2020-08-28T14:30:33
289,447,143
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from twisted.web.server import Site from twisted.web.resource import Resource from twisted.internet import reactor, endpoints from calendar import calendar import datetime class YearPage(Resource): def __init__(self, year): Resource.__init__(self) self.year = year def render_GET(self, reques...
UTF-8
Python
false
false
859
py
27
ex7-web60sec_dynamic_URL_dispatch.py
26
0.66007
0.651921
0
31
26.709677
87
AndreaCensi/geometry
14,104,672,607,897
863cad5d583c5c59cb9533b56eb7eac654ad0f4e
8b5488c3d339c5e1bf2cc9679636b1f5968f43c1
/src/geometry/__init__.py
5130e7930b49f177c83ccd97201511e217652a2e
[]
no_license
https://github.com/AndreaCensi/geometry
6538ade2364d38ca6a9d8d5bf36a2c5f973ba043
d192cfefffad2e4b29f18973f63f5eabb2a57fd1
refs/heads/master
2023-07-08T13:52:36.970494
2020-07-06T09:54:21
2020-07-06T09:54:21
916,570
42
11
null
false
2020-06-04T14:43:30
2010-09-16T19:24:49
2020-03-18T04:16:51
2020-06-04T14:43:29
7,422
39
11
1
Python
false
false
# coding=utf-8 __version__ = "1.5.8" # If True, additional checks are done at runtime development = False # Does extra checks to make sure things are ok. # These are now redundant, but it was useful while debugging. # Reactivate if some strange bug is suspected. GEOMETRY_DO_EXTRA_CHECKS = False def create_logger():...
UTF-8
Python
false
false
1,771
py
132
__init__.py
71
0.677583
0.675325
0
79
21.417722
81
HPCC-Cloud-Computing/press
18,528,488,922,801
7a86a13f8c247d213a5c3fb6c7df6b70b46a8320
b1ff91db05435a2f6b912e0281cb2322e8189ea7
/prediction/predict/feedforward/slidingwindow.py
2997822080edad32eaa334ef5b1d88f9148306ab
[ "MIT" ]
permissive
https://github.com/HPCC-Cloud-Computing/press
147c9c4b798ba68a3d17d5930f73791b1d61493e
776f820116b853c9413c8771e8d0832238e88b1a
refs/heads/master
2021-01-19T00:44:37.538452
2019-04-06T09:59:29
2019-04-06T09:59:29
87,205,983
2
0
MIT
false
2019-04-06T08:33:19
2017-04-04T15:47:17
2019-04-06T08:28:39
2019-04-06T08:33:18
11,211
2
0
0
Jupyter Notebook
false
false
class SlidingWindow: def __init__(self, data, size): self.data = data self.size = size self.index = 0 def __iter__(self): return self def __len__(self): return self.data.shape[0] - self.size + 1 def __next__(self): if self.index < len(self....
UTF-8
Python
false
false
498
py
106
slidingwindow.py
40
0.495984
0.481928
0
18
25.666667
75
Takahiro800/algorithm-and-data
19,524,921,329,962
9ebc35226b79b47490eb4e3b6f5c0545cfdde0bd
2a2f40504b7d2ddcd8872d385abd7e5b84b7ff66
/ALDS/1_3_A.py
bbe278a18d3b58b27dd1185c049f061341c96ddd
[]
no_license
https://github.com/Takahiro800/algorithm-and-data
0c170bde2885d77fa0e4edaabee39445577b4816
8e1b5a437bd36f5ce26ba3b3694e37a03e213050
refs/heads/main
2023-01-12T01:49:54.747493
2020-11-03T12:22:03
2020-11-03T12:22:03
307,830,225
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
S = list(input().split()) N = len(S) def is_int(str): try: int(str) return True except ValueError: return False class Stack: def __init__(self, max): self.size = max self.top = 0 self.stack = [None] * self.size def is_empty(self): return self.top == 0 def push(self, arg_object...
UTF-8
Python
false
false
768
py
9
1_3_A.py
8
0.519531
0.502604
0
45
16.066667
37
rinditriandi/document_management
3,350,074,498,511
9a02b68f6baa73bff547e484f9ecba8fca8f5d56
dea51891c173a777028c5ebaad2ebcf729cb95d1
/document_management/apps/company_regulations/views.py
5b60a26d07bbf20f208a3efb6fdf14b328459f48
[]
no_license
https://github.com/rinditriandi/document_management
cd9f4819421a3b6c3951229338fc6c63535887b7
42ddfd3dc82284e6c1cb1425b238178c18b4c309
refs/heads/master
2022-12-07T07:55:40.672166
2020-02-26T15:09:07
2020-02-26T15:09:07
184,234,567
0
0
null
true
2019-07-18T00:36:40
2019-04-30T09:37:48
2019-05-04T14:38:17
2019-07-18T00:36:39
1
0
0
0
null
false
false
from datetime import datetime from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Q from django.shortcuts import render, redirect, reverse, ge...
UTF-8
Python
false
false
9,821
py
107
views.py
56
0.657061
0.65309
0
283
33.70318
122
radomirklacza/C-BAS
4,930,622,470,324
ec32150cdc5c4e692658ec8970e4c886c82f2f01
214a99e53a9e3a2fc9332dd3b7dcd4d571dbd66a
/src/vendor/geniv3rpc/ext/geni/am/gibaggregate/resources.py
f313a98a89c6dfb738afa5f0e7e45ea9591e5aaf
[ "BSD-3-Clause" ]
permissive
https://github.com/radomirklacza/C-BAS
0f2e76a308ca8d45ae74411aaea40cbd55ccea4e
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
refs/heads/master
2020-03-31T21:20:40.092740
2018-10-26T10:10:12
2018-10-26T10:10:12
152,576,649
0
0
NOASSERTION
true
2018-10-11T10:53:23
2018-10-11T10:53:23
2018-09-07T12:05:27
2018-09-07T12:05:26
12,715
0
0
0
null
false
null
#---------------------------------------------------------------------- # Copyright (c) 2012 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including witho...
UTF-8
Python
true
false
37,606
py
92
resources.py
67
0.581822
0.57177
0
787
46.777637
225
cctbx/cctbx_project
2,370,821,973,906
74c2012b1e535ca89460a022218d3f4785d5af90
5b6ba0f288b1e2ac236af846a9bf546a63228476
/xfel/ui/db/job.py
dcc374f8f4944c687ba68b7d0291ad879cd7eec1
[ "BSD-3-Clause-LBNL" ]
permissive
https://github.com/cctbx/cctbx_project
5b547b416cadbdf95cca21dace9f54272a08d98a
7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa
refs/heads/master
2023-08-17T17:44:05.077010
2023-08-16T22:40:22
2023-08-16T22:40:22
39,508,026
206
131
NOASSERTION
false
2023-09-14T17:12:55
2015-07-22T13:36:27
2023-08-22T19:40:38
2023-09-14T17:12:55
122,392
190
113
119
Python
false
false
from __future__ import absolute_import, division, print_function from xfel.ui import settings_dir from xfel.ui.db import db_proxy, get_run_path, write_xtc_locator, get_image_mode import os, shutil, copy known_job_statuses = ["DONE", "ERR", "PEND", "RUN", "SUSP", "PSUSP", "SSUSP", "UNKWN", "EXIT", "DONE", "ZOMBI", "DEL...
UTF-8
Python
false
false
51,293
py
1,928
job.py
1,786
0.605638
0.603786
0
1,150
43.602609
223
Orderlee/tjoeun
9,431,748,222,007
62e5d91cf73e7aaab011f05f6e2c404cdc7d923d
904f80808061d498e9c8aeaccee5de172b5e97e6
/myweb/address/views.py
0881662edd5d2d2403eb0db68547b9880a8d79e3
[]
no_license
https://github.com/Orderlee/tjoeun
ad48691f439f47b5518f374ca3089c9d5f2e845e
e494b39ee4574076b52ab1cc2b93443ee0572bae
refs/heads/master
2022-12-23T07:35:07.481383
2020-09-27T14:20:30
2020-09-27T14:20:30
298,336,476
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect #from django.shortcuts import redirect # Address 클래스 import from address.models import Address from django.views.decorators.csrf import csrf_exempt def home(request): # address 테이블의 모든 레코드를 name 오름차순으로 저장, 내림차순은 -name items = Address.objects.order_by('name'...
UTF-8
Python
false
false
2,632
py
536
views.py
233
0.628289
0.628289
0
65
30.738462
72
lance-lh/Data-Structures-and-Algorithms
6,262,062,328,155
bbd00433c3ddf2bfb6f8101448ff5a3d1c539be0
e4a2bbcae9a8ef78780b8bc2504434edb2990260
/DSA/hashtable/findAnagrams.py
41e7e30bf2f3d3b58cf55eb8dd31fb27cae9679a
[ "MIT" ]
permissive
https://github.com/lance-lh/Data-Structures-and-Algorithms
e21b4c36df9887ad2d638a00b65e1b7f0d9ee534
c432654edaeb752536e826e88bcce3ed2ab000fb
refs/heads/master
2020-04-28T03:10:20.303427
2019-09-13T14:16:16
2019-09-13T14:16:16
174,926,695
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def findAnagrams(self, s, p): ''' :param s: str :param p: str :return: List[int] ''' from collections import Counter ls, lp = len(s), len(p) cp = Counter(p) cs = Counter() res = [] for i in range(ls): ...
UTF-8
Python
false
false
763
py
255
findAnagrams.py
128
0.414155
0.407602
0
29
25.344828
55
anrav/bcg_bigdata_case_study
17,274,358,503,995
e50affd41203f7be4715a08b6275c4d63909d95d
ab17680fa7bc0ddb9d1d3bf839016e33d3a663b0
/src/analytics/analysis_top_speeding_vehicles.py
bc60cc5e979e7f4f71a55740c1a5efedfba6ec92
[]
no_license
https://github.com/anrav/bcg_bigdata_case_study
ced275acde9d9f7826d50533d3dddba158256c9b
f555a97af6f415bc64eff7a5a68010e0e24601f2
refs/heads/main
2023-05-31T10:55:35.591002
2021-06-28T03:32:10
2021-06-28T03:32:10
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pyspark.sql.functions import col from utils import Utils, schemas class TopSpeedingVehicles: """ Analysis 8: Determine the Top 5 Vehicle Makes where drivers are charged with speeding related offences, has licensed Drivers, uses top 10 used vehicle colours and has car licensed with the Top 25 states w...
UTF-8
Python
false
false
3,947
py
18
analysis_top_speeding_vehicles.py
14
0.570053
0.567266
0
97
39.690722
115
tkterje/algdat
4,569,845,238,565
11c4b23b8613fdb4df5540a83bb434a5a31bb0ff
80c677059b9c98776bcc38dce0d6805b5917882b
/HashTable.py
748e7c3389fd546293e1b3b35e2e248574b6e395
[]
no_license
https://github.com/tkterje/algdat
4c0fa3866e7a2eb9b4889a8bbbb274c4e03ae20d
91a3ba9a127e1e2d3200aeb6cba8259beae7d986
refs/heads/master
2022-12-12T21:22:20.525990
2020-09-04T18:36:54
2020-09-04T18:36:54
292,921,516
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#implement a hashtable with chaining in python #initialize Node class ListNode: def __init__(self,key, value): self.pair = (key,value) self.next = None class HashTable: def __init__(self): self.m = 100 #number size of table self.table = [None] * self.m def is_empty(self,...
UTF-8
Python
false
false
964
py
7
HashTable.py
7
0.590249
0.585062
0
44
20.909091
46
BriandaBri/Clases
16,913,581,240,360
98ec69dc1808b170b8b30ebf747f9988c898eee6
83d3b03428e0e3f27883063e37d673e9ee08f206
/bloque1/Ej2.py
ed4f431ea2c7496df6a2deaae0a91b17c3c62afd
[]
no_license
https://github.com/BriandaBri/Clases
4dcd66767928148ef1943c06dce0ae03d0b18853
dfd0e122a9fae9430130a82e5ecf25bf8b503cff
refs/heads/master
2021-01-02T09:10:25.504446
2017-08-07T21:25:45
2017-08-07T21:25:45
99,152,197
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def mayor_edad(n): if n >= 18: return True else: return False n = 15 print mayor_edad(n)
UTF-8
Python
false
false
128
py
22
Ej2.py
17
0.476563
0.445313
0
9
12.222222
21
digipodium/string-and-string-functions-singhaditya12
7,825,430,464,177
e6939d8bff4ef42823ec9c66535a87b6110778f5
c566451989436330a75537f9cf61698e0481640c
/lw.py
5203a31cfd1322c822442b4743bfc812d6e56a16
[]
no_license
https://github.com/digipodium/string-and-string-functions-singhaditya12
14d13013671b8f59686043bf8b09f1f91e170a52
8c5ce032a5cd4758e1162201d405c6fb3e221cdb
refs/heads/main
2023-08-28T10:33:03.691620
2021-10-12T14:53:42
2021-10-12T14:53:42
416,361,875
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
str="How Is It Going?" print(str.lower())
UTF-8
Python
false
false
42
py
11
lw.py
11
0.666667
0.666667
0
2
20
22
soumik12345/Adventures-with-GANS
19,481,971,656,088
da80016fb7e3cd922caab6ef02a4ef6d5ff8f7e6
2fd4c351c259ddf69176347769291ebf9ba434b4
/CycleGAN/Discriminator.py
1f9119cb8d04128390f1d0233b4ef204894ed77f
[]
no_license
https://github.com/soumik12345/Adventures-with-GANS
970c3aa08f6c5d72555c209cc7824d49da0d309f
438ea0dfd1a0795dbedad8063a8b68d2346f7ceb
refs/heads/master
2023-04-02T20:04:03.506016
2022-09-24T09:52:26
2022-09-24T09:52:26
197,522,773
18
3
null
false
2023-03-24T23:40:15
2019-07-18T06:09:54
2023-02-21T15:54:26
2023-03-24T23:40:11
60,937
14
2
5
Jupyter Notebook
false
false
from tensorflow.keras.layers import ( Conv2D, BatchNormalization, Input, LeakyReLU, ZeroPadding2D ) from tensorflow.keras.models import Model class Discriminator: def __init__(self, n_filters, max_layers, image_size, image_channels): self.image_size = image_size self....
UTF-8
Python
false
false
2,198
py
20
Discriminator.py
8
0.49636
0.482257
0
80
26.4875
74