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
elinlarsen/WordSegComprehension
8,924,942,051,281
03566b4f2b14d976d4f347a5ce83b6a33c27f808
04ae5108359803ad42081f73a5c63e35614f61bf
/wordsegcomp/pipeline/translate.py
adbe735ec6296a610e0a87334e485a961ee8c421
[]
no_license
https://github.com/elinlarsen/WordSegComprehension
0438ec0f2426888b9c91ce11501403081735dd13
42c368afbb5e58e39c433151aadbdc2c6ffa80a8
refs/heads/master
2021-05-07T06:00:31.446826
2018-07-24T10:41:35
2018-07-24T10:41:35
111,671,313
8
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Dec 15 11:45:59 2016 @author: elinlarsen """ import collections try: # Python 2 from itertools import izip except ImportError: # Python 3 izip = zip import pandas as pd #import file import read def build_phono_to_ortho(phono_file, ortho_file): """ ...
UTF-8
Python
false
false
3,834
py
44
translate.py
34
0.592071
0.586333
0
102
36.588235
123
haakonvt/cognite-sdk-python
541,165,890,438
8ce5f960ef8ab295cb73d3b4a006b2a45a7a6823
6eefa36c107182bfa403b9bebf599a6736f75ae5
/cognite/client/data_classes/transformations/notifications.py
29cfb0850249b5fe7188ef9a0c0b291609944b52
[ "Apache-2.0" ]
permissive
https://github.com/haakonvt/cognite-sdk-python
056afc9ab46af73e1348099c98c7cf254bdfa293
70200ce771d630edb5f918a33a10381ba5112417
refs/heads/master
2022-09-08T07:41:30.667283
2022-08-01T11:17:22
2022-08-01T11:17:22
213,588,099
0
0
Apache-2.0
true
2022-08-25T13:15:59
2019-10-08T08:25:44
2022-06-23T16:38:06
2022-08-04T00:43:47
13,482
0
0
0
Python
false
false
from typing import TYPE_CHECKING, Dict, Optional, Union, cast from cognite.client.data_classes._base import CogniteFilter, CogniteResource, CogniteResourceList if TYPE_CHECKING: from cognite.client import CogniteClient class TransformationNotification(CogniteResource): """The transformation notification res...
UTF-8
Python
false
false
2,585
py
83
notifications.py
69
0.69207
0.69207
0
67
37.58209
122
CJFJack/cmdb
6,682,969,144,721
0de4d0d12b4a57ab76f6471d597e7d8d9b107e95
193a4ca08daeb3b3fc3a65ee32d2699ac59e07f3
/cmdb_update_loop_log.py
df02843e13490c00ef8aef89061ef7a851b11c6e
[]
no_license
https://github.com/CJFJack/cmdb
e3a512b640930407b63e8786ca9a13b32e7aefc1
fc8d8bf2462c8f4f7e685aed4fd6acc1e86b92ac
refs/heads/master
2020-12-12T08:14:44.316317
2020-01-15T13:27:25
2020-01-15T13:27:25
228,413,223
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- encoding: utf-8 -*- """外部的脚本,通过读取redis中 的cmdb:log的key记录,来更新日志文件到 前端页面中 """ import time import json import logging from logging.handlers import RotatingFileHandler import traceback from concurrent import futures import redis import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cmdb.settings") import dj...
UTF-8
Python
false
false
5,055
py
493
cmdb_update_loop_log.py
301
0.592345
0.587743
0
159
29.069182
111
vivekaxl/LexisNexis
19,585,050,902,119
2e77b398a0f9a461b4cc9f20a65cd97ac20c6846
1a2ca64839723ede3134a0781128b0dc0b5f6ab8
/ExtractFeatures/Data/kracekumar/2.py
3ef19b303974fd157f047b3205121b0b92244c56
[]
no_license
https://github.com/vivekaxl/LexisNexis
bc8ee0b92ae95a200c41bd077082212243ee248c
5fa3a818c3d41bd9c3eb25122e1d376c8910269c
refs/heads/master
2021-01-13T01:44:41.814348
2015-07-08T15:42:35
2015-07-08T15:42:35
29,705,371
9
3
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame WINDOW = WIDTH, HEIGHT = 400, 300 def main(): pygame.init() screen = pygame.display.set_mode(WINDOW) pygame.display.set_caption("Freed.in Demo") while True: pygame.display.flip() if __name__ == '__main__': main()
UTF-8
Python
false
false
259
py
936
2.py
924
0.610039
0.586873
0
14
17.5
47
ezember/Ezekiel-Bustillo
14,422,500,192,447
757e43a1eebd72d96b0d98623ce8ce4ebf36ea92
d4a98d50c3089ad3a96ae33ef4614b40d9ed8636
/buQ2p2.39.py
c52255cd3e3852d40464fd80e811e3f0966d6b85
[]
no_license
https://github.com/ezember/Ezekiel-Bustillo
e418d3a3cfc0e245f27e87ee64880af5c3ffee52
fb0fa49237636329e177f9ba30c0421a7828f2ee
refs/heads/master
2021-04-01T05:52:15.726058
2020-03-18T08:06:28
2020-03-18T08:06:28
248,161,153
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Ezekiel M. Bustillo DATALOGO Lab04 Feb. 19, 2020 I have neither received nor provided any help on this (lab) activity, nor have I concealed any violation of the Honor Code. """ from abc import ABCMeta, abstractmethod class Polygon(metaclass=ABCMeta): def __init__(self, lengths): ...
UTF-8
Python
false
false
1,403
py
11
buQ2p2.39.py
10
0.54526
0.531718
0
49
26.632653
73
AmazingWood/simple-two-layers-mlp
3,710,851,781,784
801b8fd0a80fd240c0a03ebab671aaf54711b7ac
b7ca2afdfaa002b0260c12b4be40f8093b82fc9e
/buildConfig.py
5b3369f8c7e0559b4f6b97d49366f499e2f4d1c1
[]
no_license
https://github.com/AmazingWood/simple-two-layers-mlp
43968824b59ac4e6b0901ace0b15faec940b4594
7946884202654d089b62d035e9667df15c619008
refs/heads/master
2020-12-11T07:01:57.372806
2020-01-14T09:09:55
2020-01-14T09:09:55
233,795,463
0
0
null
true
2020-01-14T08:41:00
2020-01-14T08:40:59
2020-01-10T08:51:11
2020-01-10T08:51:09
69
0
0
0
null
false
false
class buildConfig(object): def __init__(self,isDebug): self.incDirs=["/home/robin/installFromSource/boost_1_72_0","/home/robin/installFromSource/eigen-git-mirror"] self.linkDir=["/home/robin/installFromSource/boost_1_72_0/stage/lib"] self.linkOpt=["pthread" ,"m","dl"] self.CC="gcc-9"...
UTF-8
Python
false
false
1,214
py
11
buildConfig.py
9
0.596376
0.580725
0
33
35.787879
116
illulia/Baekjoon
2,628,520,000,718
380c4633e65fd6a3f070ee59114d70298e9a9282
ed60f34a00c24b5d6115c995ec796080d1c07687
/python/5543.py
13f4357cc35ec5865ca11711b7b729a0242dc37a
[]
no_license
https://github.com/illulia/Baekjoon
fe6613c0e344e081bb42d5b06396363e7f9614d2
0b816bd271028e1128a8c092aedf80cae5e5fbd8
refs/heads/master
2021-05-18T17:31:06.897050
2020-10-09T21:57:19
2020-10-09T21:57:19
251,338,754
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
b = 2000 d = 2000 for i in range(3): a = int(input()) if a < b: b = a for i in range(2): c = int(input()) if c < d: d = c print(b+d-50)
UTF-8
Python
false
false
175
py
28
5543.py
28
0.417143
0.348571
0
11
14.272727
20
jordy33/python_proxy
4,252,017,645,687
54759fec835d1d78980c52c9bcd4ee3173472223
1ea03ebaa0fcd8257f140db4ad88d8ed1002d3a5
/proxy/__init__.py
0709b421c670fe97181827d93e7c14c529b27ecc
[]
no_license
https://github.com/jordy33/python_proxy
208ca09c6c5c8a5a6e825decc2f29bd9c80a2251
572b4eaf0f830f4531b51a3533c783a046114e97
refs/heads/main
2023-02-20T03:55:53.120077
2021-01-22T00:10:07
2021-01-22T00:10:07
331,789,277
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
############################################################################### # Copyright (C) 2017 Aludirk Wong # # # # This file is part of TCP Proxy. # ...
UTF-8
Python
false
false
4,797
py
3
__init__.py
2
0.452991
0.449031
0
125
37.376
97
rady1337/FirstYandexLyceumCourse
12,644,383,756,558
20d3e91dc93e8928791ad7310eb190aec7676a1a
338062cc2bb422f1364fd18ad5e721f6f713907a
/27. Обработка коллекций. Потоковый ввод sys.stdin/Домашняя работа/Есть ли 0.py
2135a4c06f9f7d5ec36e994627e8daf11e63d7ba
[]
no_license
https://github.com/rady1337/FirstYandexLyceumCourse
f3421d5eac7e7fbea4f5e266ebeb6479b89941cf
0d27e452eda046ddd487d6471eeb7d9eb475bd39
refs/heads/master
2022-06-17T03:07:51.017888
2020-05-12T22:17:34
2020-05-12T22:17:34
263,459,364
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from sys import stdin as st print("0" in st.read().split())
UTF-8
Python
false
false
61
py
411
Есть ли 0.py
368
0.672131
0.655738
0
3
19.333333
31
kdriver/planes
11,656,541,276,321
3f7ee24706ce37d305ed230baee8829aac447bd9
d25fd9631f3567e4d1508c4d1d0398048a92f8d4
/mk2/detect.py
7248862dbdc8887591e1875c7223878b7451f017
[]
no_license
https://github.com/kdriver/planes
d88942b3dbf84ddcca6e25d073163eff58c39b62
0fed8c84df5576d55ab07eee7502d18661650351
refs/heads/master
2023-05-25T12:53:28.305503
2023-05-14T10:57:37
2023-05-14T10:57:37
142,787,180
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" A program to detect planes and tweet """ import json import time import math import os import zipfile import requests import sqldb import say from vrs import Vrs from loggit import loggit,init_loggit from loggit import BOTH from loggit import TO_SCREEN # from loggit import TO_FILE from loggit import GREEN_TEXT...
UTF-8
Python
false
false
14,331
py
33
detect.py
26
0.537436
0.527877
0
387
36.031008
233
leandreboris/XMatosBackend
4,964,982,242,822
c5276d8a0d8db5ee89a004feab741e40ee6cd959
5099bdf6ee8485e281f834ddcd71e2827bcce4d6
/Profile_updates/apps.py
abae4ee4473ed1189704eed80fb09be52112b522
[]
no_license
https://github.com/leandreboris/XMatosBackend
5c57a491ec3ffbe195389b02d0733ff31d66a243
2118bf08fbc9fdf099d35a1e8da5715610fd2c15
refs/heads/master
2023-08-11T08:28:46.106004
2021-09-28T10:03:31
2021-09-28T10:03:31
390,736,624
0
0
null
false
2021-08-06T15:59:54
2021-07-29T13:40:48
2021-07-29T16:20:43
2021-08-06T15:59:41
175
0
0
1
Python
false
false
from django.apps import AppConfig class ProfileUpdatesConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'Profile_updates'
UTF-8
Python
false
false
161
py
24
apps.py
24
0.763975
0.763975
0
6
25.833333
56
ghdus4185/SWEXPERT
11,141,145,200,089
52bc4462d88f81b8733b5f1fd29e86c487d58514
3e85618c79a1a934fec543e1327e772ca081a5b9
/N1486.py
1564c24d32ff1e1c9575221b39304ca0b3f96357
[]
no_license
https://github.com/ghdus4185/SWEXPERT
72d79aa4a668452327a676a644b952bab191c79b
4dc74ad74df7837450de4ce55526dac7760ce738
refs/heads/master
2020-07-16T18:31:22.153239
2019-12-20T04:18:30
2019-12-20T04:18:30
205,843,190
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.stdin = open('input.txt', 'r') T = int(input()) for tc in range(1, T+1): N, B = map(int, input().split()) h = list(map(int, input().split())) subset_list = [] minV = 10000000 for i in range(1, 2**N): res = 0 for j in range(N): if i & (1 << j) != 0: ...
UTF-8
Python
false
false
470
py
142
N1486.py
140
0.417021
0.385106
0
20
22.55
40
ChadDiaz/cs-Hash-Tables-I-project-5.21.21
10,943,576,671,492
e78845da445e86fa770494dd0778e24df1cfdc32
27c6db187a103a2b83ad403af8fd75cc2c10620c
/csCommonStrategyForHashCollisions.py
372e01b852afcaa0f94fff4e0ab679683fed4e84
[]
no_license
https://github.com/ChadDiaz/cs-Hash-Tables-I-project-5.21.21
9814bcfa5d54d40a7e663c67df20e48f664ad853
133ed4d21f758681ff62976f0f8dd03bcb3aba35
refs/heads/main
2023-05-03T21:02:32.068048
2021-05-22T02:28:04
2021-05-22T02:28:04
369,682,370
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" "What is the most common strategy for dealing with hash collisions?" A: Not storing the values directly at an index of the hash table's array. Instead, the array index stores a pointer to a linked list. Each node in the linked list stores a key, value, and a pointer to the next item in the linked list. """
UTF-8
Python
false
false
313
py
3
csCommonStrategyForHashCollisions.py
3
0.753994
0.753994
0
5
61.6
234
zaojiahua/flask_dn_server
2,147,483,673,266
8288694b82afdaf939cb33148819a49fedc82f0f
28f05b2ddb635f1577a09a502b29ee30c0dba0f0
/dn/common/lln.py
656b99df590c70c4aa03fbca9b3f8468f0a0c39e
[]
no_license
https://github.com/zaojiahua/flask_dn_server
709efeced512cfabdd35720373f75bb8ca8d7a96
9e5aa865633399f86242d9ebdd5a9ed8c623d203
refs/heads/master
2023-05-10T06:17:16.682532
2020-01-08T08:43:46
2020-01-08T08:43:46
232,228,795
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import urllib.error import urllib.parse import urllib.request import simplejson as json class LLNFormatError(Exception): pass _not_safe = '%|\r\n=' _safe_map = {} for i, c in zip(list(range(256)), str(bytearray(list(range(256))))): _safe_map[c] = c if c not in _not_safe else '%{:02x}'.format(i) def _enco...
UTF-8
Python
false
false
6,805
py
14
lln.py
11
0.509061
0.498748
0
261
25.003831
76
ShadyZOZ/zblog
3,513,283,252,039
55e2fa84e9765449a2de857c36555076abf8a189
d88ccd19b2f788affb5caec81122802f0418a09a
/zblog/views.py
0f75bc02b9008da6fba63ae6e324e0fd1b652a87
[]
no_license
https://github.com/ShadyZOZ/zblog
93900e6368006f991db031b004ff72b9942db631
df397d9deeb81a25e624b49b593ce188c5d70256
refs/heads/master
2016-09-22T10:30:57.859203
2016-07-25T18:48:30
2016-07-25T18:48:30
64,157,174
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render def index(request): r = request.COOKIES print(r) return render(request, 'index.jinja')
UTF-8
Python
false
false
135
py
5
views.py
1
0.711111
0.711111
0
6
21.666667
41
Spredzy/ansible-builder
9,483,287,828,202
2d2d2d1b48ca3c563fcf05d697acc933d6b78293
efa5c0f6590750e97d7489e29e9d5fea5cda9147
/ansible_builder/main.py
4234a3c70a2c51ff3dbf43b787292c96cb35eb38
[]
no_license
https://github.com/Spredzy/ansible-builder
1c375f559f4125cbbf921268d3d345aafe70a1da
a1adc2aec9b40cb223b02613699dda77f7bcb110
refs/heads/master
2023-06-04T14:30:01.008282
2020-05-09T17:18:04
2020-05-09T17:18:04
265,592,353
0
0
null
true
2020-05-20T14:32:24
2020-05-20T14:32:23
2020-05-09T17:18:16
2020-05-09T17:18:13
37
0
0
0
null
false
false
import os import yaml from shutil import copy default_base_image = 'shanemcd/ansible-runner' class AnsibleBuilder: def __init__(self, filename='execution-environment.yml', base_image=default_base_image, build_context=None): self.definition = Definition(filename=filename) self.base_image = base_i...
UTF-8
Python
false
false
2,815
py
6
main.py
4
0.61492
0.61492
0
92
29.597826
112
W1rner/SITE_FOR_SCHOOL
8,933,532,015,511
6aba75a49029570ea0770198f877f6078bb94fa8
24c6132ae420ccada3b742aebca4c62044166d87
/main/models.py
66ea51308a73947c1af131907b32c9bcc0f7cda3
[]
no_license
https://github.com/W1rner/SITE_FOR_SCHOOL
207728e4314740b80e1d7a02efdf1027bc5fef90
c0e08816bb7aad2e1b9898b20a02a04f9be0da13
refs/heads/main
2023-04-30T12:39:07.888539
2021-05-14T11:00:19
2021-05-14T11:00:19
367,328,554
0
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 from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. class Votings(models.Model): name = models.TextField(unique=True) about = models.TextField() author = models.TextField() ...
UTF-8
Python
false
false
1,041
py
37
models.py
13
0.722382
0.722382
0
37
27.135135
63
loveunCG/linkedin-front-end
1,984,274,915,267
6666007b6ebc27d05f873cc62ca7273ca52ac377
8ddcf2bb34b3d2a69d84ea535ef2235db8e089ea
/app/migrations/0019_auto_20180513_1347.py
54383fdb892df2427e12c475f263d418402da0ae
[]
no_license
https://github.com/loveunCG/linkedin-front-end
2a8ada9603c0f0cfaee23dd7b6762752d86772cd
a96f51736ee5b9b882c9a7f3ba78f600ddb9f648
refs/heads/master
2022-12-10T08:08:56.182716
2018-06-24T13:29:50
2018-06-24T13:29:50
125,702,961
2
0
null
false
2021-06-10T20:29:42
2018-03-18T07:42:27
2019-10-17T12:56:54
2021-06-10T20:29:40
14,039
2
0
2
CSS
false
false
# Generated by Django 2.0.5 on 2018-05-13 13:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0018_auto_20180513_1955'), ] operations = [ migrations.RemoveField( model_name='linkedinuser', name='is_pin_n...
UTF-8
Python
false
false
682
py
294
0019_auto_20180513_1347.py
114
0.573314
0.524927
0
22
30
228
momchil-lukanov/hack-bulgaria
824,633,767,036
75e34fb7acc995a6b60c238db2a96e75feada40c
78724939218b9023aed2b7d0256f2798d8a3f246
/programming-0/week-4/program.py
a1b6be02fb53fb8401028a3c15fdd27cf89fb9e7
[]
no_license
https://github.com/momchil-lukanov/hack-bulgaria
6968e80b654fe1b352d2289d652dca7395757914
bb6b8ea3db272577443b98de0af636fb022b0fbb
refs/heads/master
2020-12-25T18:22:28.467960
2015-11-22T16:17:18
2015-11-22T16:17:18
31,120,172
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
person = {} person["first_name"] = input() person["second_name"] = input() person["third_name"] = input() person["birth_year"] = int(input()) person["current_age"] = 2015 - person["birth_year"] print(person)
UTF-8
Python
false
false
208
py
164
program.py
144
0.653846
0.634615
0
7
28.714286
51
GavrilinEugene/geo2osm
12,498,354,832,123
6ffdf0a19a4c3e83b4dc8d4782260eb4d6f0f576
f0067fa81119fff7e9b7dfd03003b85fe7e75d77
/application/overpass_utils.py
c05badbfc9720dfdf30ffd0ea3130c35ce127476
[]
no_license
https://github.com/GavrilinEugene/geo2osm
06e68c5ac48284dbd0f134be70da012d99e965a5
eb8fbf62f637c8bd91421ec36c2709c4114c49d3
refs/heads/master
2023-03-01T23:59:37.595129
2021-02-13T13:19:57
2021-02-13T13:19:57
324,165,968
0
0
null
false
2021-02-13T13:19:58
2020-12-24T13:46:43
2021-02-13T11:24:38
2021-02-13T13:19:58
33
0
0
0
Python
false
false
import requests from osm2geojson import json2geojson def get_geojson(bbox, list_node_types = ['way["building"]']): """ """ (left, bottom, right, top) = bbox way_query = "" for node_type in list_node_types: way_query += f"{node_type}({bottom},{left},{top},{right});\n" query = f""" ...
UTF-8
Python
false
false
856
py
8
overpass_utils.py
4
0.570093
0.559579
0
29
28.517241
99
jiananarthurli/insight_api
12,549,894,461,015
1fa75a092d9185d18ef1d9d54cb38ac79f7794c6
539c267a58cb727c5f1925b67da0bbbae0b04de2
/insight_api_src/vectorizer/views.py
b22e6c6de88eac610c098d01f3abb25997cedab1
[]
no_license
https://github.com/jiananarthurli/insight_api
e228b7cbd193b4eb2a9c3ad5a9b490816c1f65ed
c6c46f1fa96e3fe6d182ef6b7a575deaa3d6bee9
refs/heads/master
2022-12-17T08:58:29.978049
2020-10-03T04:42:04
2020-10-03T04:42:04
191,235,576
6
1
null
false
2022-12-08T05:17:11
2019-06-10T19:49:08
2020-10-05T09:03:13
2022-12-08T05:17:10
166,118
6
1
5
Jupyter Notebook
false
false
from django.shortcuts import render import re import nltk import spacy import numpy as np from nltk.stem import WordNetLemmatizer from collections import defaultdict from nltk.corpus import stopwords lemmatizer = WordNetLemmatizer() nlp = spacy.load("en_core_web_sm") stop = set(stopwords.words('english')) stop_words...
UTF-8
Python
false
false
3,702
py
16
views.py
9
0.574014
0.568882
0
130
27.461538
104
yamaguchiyuto/location_inference
532,575,987,397
1fd6562079077366de858571ea6d3801fb427e61
02f82a98a1db5d9a28ad97b11b447194d3ec6aab
/lib/words.py
dbf28f07b7f24bd80f2de2848bda74c768578824
[ "MIT" ]
permissive
https://github.com/yamaguchiyuto/location_inference
d5301d71010016e23a0716e73776b30c2fe67b00
370a632cef843aa42a4a3662f8ee492789cbe053
refs/heads/master
2021-01-19T13:53:15.354412
2013-11-05T14:08:59
2013-11-05T14:08:59
13,535,937
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import json class Words: def __init__(self, words={}): self.values = words def __str__(self): res = "" for word in self.values.values(): res += json.dumps(word) + "\n" return res[:-1] def set(self, words): self.values = words ...
UTF-8
Python
false
false
1,220
py
35
words.py
22
0.513223
0.510744
0
54
21.407407
44
jm-begon/clustertools
1,821,066,182,091
5440ef01bd7a08e64f97370eb282710e2886c979
f52a5fdb795279f87df6bf61161dfe720ad97034
/clustertools/test/test_paramset.py
d22137a592d15474abe1c0ecbbc2629174b1fef8
[ "BSD-3-Clause" ]
permissive
https://github.com/jm-begon/clustertools
3ce5f96831b16b9f7a9f9bfaf3dcc4952674f6a8
264198d0ffbd60b883b7b6a2af79341425c7729b
refs/heads/master
2021-05-25T09:02:13.946550
2019-08-21T07:51:22
2019-08-21T07:51:22
43,871,227
8
3
BSD-3-Clause
false
2019-08-21T07:51:24
2015-10-08T07:51:56
2019-08-20T11:50:10
2019-08-21T07:51:23
745
5
2
15
Python
false
false
from nose.tools import assert_equal, assert_in, assert_less, assert_raises, \ with_setup, assert_true from clustertools import ParameterSet, ConstrainedParameterSet, \ PrioritizedParamSet, ExplicitParameterSet # --------------------------------------------------------- ExplicitParameterSet from clustertools....
UTF-8
Python
false
false
6,526
py
69
test_paramset.py
42
0.46353
0.38339
0
212
29.787736
80
zrdsj/py-learning-for-u
19,542,101,203,855
e2898f7434aa4ee0fca5373e6ece57e1a5359e46
c658bc613ad430d563e4805c598258e2d1bd05d5
/01-07/06.py
5f10bc8104f9a495ee992d9ac97ea9e5fad2fd5a
[]
no_license
https://github.com/zrdsj/py-learning-for-u
5e7867a77c9a73eba2840827a3f1d89c6ec31060
a37d5a8c5dcc0f54868c419550dd59b8b358bef9
refs/heads/master
2020-08-03T11:59:41.917884
2019-10-13T06:51:12
2019-10-13T06:51:12
211,745,480
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# print('Hello, World!') # print(2**3) # print(9**(1/2)) # print(20 // 6) # 商 # print(1.25 % 0.5) # 余数 # 我爱你 # print('我爱你') # print("love u") # print("1231") # print(1231)9 # print(woaini我爱你),,,是错误的 input("Enter a number:")
UTF-8
Python
false
false
283
py
26
06.py
26
0.518519
0.427984
0
19
11.105263
25
arcaorm00/sba-2-api
3,805,341,056,960
47f491f97e90823911b503a1b6729841bb80ba89
63fab1fc9d7114c38280048c94ad71b3488f6f63
/model/cabbage_model.py
f6b65300d137783ffc45adea874045b0b0ed341a
[]
no_license
https://github.com/arcaorm00/sba-2-api
8122ef06e0c2a9b1c2a541d8f49b5772e7f2119f
fd383732684c339d6017ce9e33304982f14224c9
refs/heads/master
2022-12-25T03:33:37.768412
2020-09-28T06:01:09
2020-09-28T06:01:09
299,144,358
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.insert(0, '/Users/saltQ/sbaProject') from util.file_handler import FileReader import pandas as pd import numpy as np import tensorflow as tf from dataclasses import dataclass @dataclass class Cabbage: # entity + service # year,avgTemp,minTemp,maxTemp,rainFall,avgPrice # 20100101,-4.9,-1...
UTF-8
Python
false
false
4,508
py
3
cabbage_model.py
3
0.574296
0.551877
0
100
37.32
93
arnabs542/BigO-Coding-material
12,549,894,473,163
4481ddaeaad78b4c4c22c38a032d67434ac0ae29
9b527131c291b735a163226d1daac2397c25b712
/BigO_Algorithm/algorithmreview/Algo practice/Eleven.py
dc67102af23c3ada8c98a7fa94885b859f706b92
[]
no_license
https://github.com/arnabs542/BigO-Coding-material
dbc8895ec6370933069b2e40e0610d4b05dddcf2
3b31bddb1240a407aa22f8eec78956d06b42efbc
refs/heads/master
2022-03-19T18:32:53.667852
2019-11-27T23:55:04
2019-11-27T23:55:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Eleven chooses names n = int(input()) Fib_arr = [0 for i in range(n+5)] result = [] def Fib(i): if i == 0: return 0 elif i == 1 or i == 2: return 1 else: return Fib_arr[i-1] + Fib_arr[i-2] for i in range(n+5): Fib_arr[i] = Fib(i) for num in range(1,n+1,1): ...
UTF-8
Python
false
false
447
py
138
Eleven.py
127
0.47651
0.447427
0
22
17.681818
42
Rohan175/roadCompanion-SGH
18,425,409,724,598
12f905a98ab70f96858d4bb124e35bf92b1ad734
f2c95171d8094de7ab774cfea69cd8d27937c579
/roadG-master/roadGriev/migrations/0029_delete_prestoredloc.py
1a5d05c1d32ff69133f4ecf8e6112f65a9144935
[]
no_license
https://github.com/Rohan175/roadCompanion-SGH
1d96429bffe6ee5f73b1cb97c3bccc4efe1c63e3
ec949dc559a65bd7f417d4c1eab83207e91ca878
refs/heads/master
2022-12-14T20:59:41.907755
2018-09-09T07:44:02
2018-09-09T07:44:02
144,819,916
2
0
null
false
2022-12-07T23:52:10
2018-08-15T07:23:39
2019-01-21T15:17:28
2022-12-07T23:52:10
1,707
1
0
5
JavaScript
false
false
# Generated by Django 2.0.7 on 2018-08-12 16:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('roadGriev', '0028_roadmapping'), ] operations = [ migrations.DeleteModel( name='PreStoredLoc', ), ]
UTF-8
Python
false
false
296
py
127
0029_delete_prestoredloc.py
90
0.601351
0.537162
0
16
17.5
47
GabrielBergam0/Trabalho-de-FLA-4
10,282,151,739,857
f25385c498e490389b64c901d104ebd228978792
d14e222c70a4e599578a0f0f7ef6835fb1b5884f
/RINHA DE BARCO.py
284be5d1bd3b304e845447a443096274fb139f47
[]
no_license
https://github.com/GabrielBergam0/Trabalho-de-FLA-4
69addbcae73c1d4fadb3a486c6fc4b84a192246e
04c4e1d24e8aea0c3dd7daf1f5d582fa57bb4746
refs/heads/master
2022-01-04T17:51:42.565510
2019-11-23T18:46:03
2019-11-23T18:46:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random barcos1 = 0 BARCO = u"\u2588\u2588" BARCO_ATINGIDO = "##" EMPTY = '@'.center(2) MISS = ")(" #============================================================================= #============================================================================= def tem_barco(tabuleiro): global BARCO for...
UTF-8
Python
false
false
16,423
py
1
RINHA DE BARCO.py
1
0.46559
0.412984
0
398
40.201005
104
ayushianan/Summarizer
712,964,578,755
1e02b3000715cc95c95279097ae273bed2c9b180
4c040d6bdccd3d0f7308ad8934b38c1363d7cda8
/venv/lib/python3.6/_collections_abc.py
7e2c2af484be8c7b454774fe8c49b8d810569f38
[]
no_license
https://github.com/ayushianan/Summarizer
456dc75b3f53b7b03ce2808c584ec12ee91f4ffd
ced46a48c1071a65f0d2b24d064d55aa575f58f2
refs/heads/master
2020-05-18T08:47:42.956905
2019-05-03T17:03:34
2019-05-03T17:03:34
184,304,942
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
/home/ayushi/anaconda3/lib/python3.6/_collections_abc.py
UTF-8
Python
false
false
56
py
44
_collections_abc.py
42
0.821429
0.767857
0
1
56
56
wuhuabushijie/sample
7,576,322,312,570
2e1e1b2f3a3029dc5498fe7279e05c9523d8ea3a
58fd635c519d573127bc2d4df2e46b9afb75c65c
/chapter05/bisect_test.py
1febe0ffad1ce8804cef842d124e8c22f977793e
[]
no_license
https://github.com/wuhuabushijie/sample
5be50cb5582233a6409e8e6ca9479a300ac1a8d4
b5ceb5c4f061732ecf27fff8242daa9372c18385
refs/heads/master
2020-03-30T06:07:55.742159
2018-10-13T15:39:51
2018-10-13T15:39:51
150,840,806
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import bisect # 用来处理和维持已排序的序列 # insort 将参数插入序列中 # bisect 查询参数将要插入的位置 aList = [] bisect.insort(aList,3) bisect.insort(aList,4) bisect.insort(aList,7) bisect.insort(aList,4) bisect.insort(aList,3) bisect.insort(aList,6) bisect.insort(aList,5) bisect.insort(aList,9) print(bisect.bisect(aList,8)) print(aList)
UTF-8
Python
false
false
372
py
36
bisect_test.py
36
0.772727
0.743506
0
17
17.176471
29
dbr/tvdb_api
1,803,886,264,870
53d6bbde21dd65915a1b33c0c13fd8303b0914a9
6faa73f33a4ce3f2d62588bc16f17d0cf787b10d
/tests/test_tvdb_api.py
2b3034f1e0123e1957dabca27a85839659779d6a
[ "Unlicense" ]
permissive
https://github.com/dbr/tvdb_api
326cad12fa8540cbb3e9ce1cb8db7695ba6fc636
ce0382181a9e08a5113bfee0fed2c78f8b1e613f
refs/heads/master
2023-08-17T08:08:09.660904
2021-09-03T13:30:43
2021-09-03T13:30:43
14,645
226
54
Unlicense
false
2023-06-29T18:08:42
2008-05-05T13:01:53
2023-06-28T13:34:07
2023-06-29T18:08:41
2,288
342
69
15
Python
false
false
#!/usr/bin/env python # encoding:utf-8 # author:dbr/Ben # project:tvdb_api # repository:http://github.com/dbr/tvdb_api # license:unlicense (http://unlicense.org/) """Unittests for tvdb_api """ import os import sys import types import datetime import pytest # Force parent directory onto path sys.path.insert(0, os.pa...
UTF-8
Python
false
false
18,071
py
13
test_tvdb_api.py
3
0.598676
0.58638
0.000278
569
30.586995
99
ksergie/testMobile
6,889,127,549,079
c4f3cbeaea7715e77482c979cff62e1aba4d89d0
d8b74852bc3856d6a7272c67c926facbe0b34b30
/test_main_page.py
da47ee5d3fba8b06a49bbd223d9eb75c0583bf64
[]
no_license
https://github.com/ksergie/testMobile
4cc9ee5bd4edf82197318474a613f1b033c66977
08d24bd3d94ac2e68761f9c242fa9eee3dc115f4
refs/heads/master
2021-06-30T19:04:12.666123
2020-01-05T11:11:52
2020-01-05T11:11:52
231,894,084
0
0
null
false
2021-06-02T00:54:52
2020-01-05T09:21:20
2020-01-05T11:12:01
2021-06-02T00:54:51
13,758
0
0
2
Python
false
false
from .pages.main_page import MainPage def test_open_main_page(browser): link = "https://www.lotteryheroes.com/" page = MainPage(browser, link) page.open() assert page.main_pages_title(), "Play Online Lottery | Bet on global lotteries jackpots | LotteryHeroes"
UTF-8
Python
false
false
278
py
3
test_main_page.py
2
0.71223
0.71223
0
8
33.75
108
hjcafaroUC/matique
12,936,441,508,382
b74bb6ea455f356181a1dc12a56288454a9e98ea
c864e8066b4ae2abf85e4e9fe85408d27b5c47d6
/diff.py
503c3a656e3c7feb8217bd1736d2bae6a46c37e6
[]
no_license
https://github.com/hjcafaroUC/matique
b7421cbd78d7328f109261e0e5231c279e080a98
bc733d7a87874d9b6483f896e91546322bc09388
refs/heads/master
2022-11-30T07:37:45.892478
2020-08-07T03:08:47
2020-08-07T03:08:47
279,121,823
0
0
null
false
2020-08-07T00:30:38
2020-07-12T18:13:12
2020-08-06T04:20:01
2020-08-07T00:30:37
64
0
0
2
Python
false
false
#diff utility for checking correctness of code-check against earlier versions print("Enter 1st file") f1 = open(input(),"r") print("Enter 2nd file") f2 = open(input(),"r") lines1 = f1.read().split(sep="\n") lines2 = f2.read().split(sep="\n") if(len(lines1) != len(lines2)): print("Lengths differ : " + str(len(l...
UTF-8
Python
false
false
555
py
16
diff.py
13
0.61982
0.587387
0
22
24.227273
77
dnanexus/dx-toolkit
3,393,024,202,844
2f04c6d67c05efbaadf8372d7965218b25e7bc4b
d75f33671fe9431c09b384a91d04bdcaaa6ae68c
/src/python/dxpy/toolkit_version.py
e7a7c36712315585f4e1456eca3ca710ce1c4459
[ "Apache-2.0" ]
permissive
https://github.com/dnanexus/dx-toolkit
df61a794c275f735b6216afe234fcff0240c422d
ad4f498ae80fb0cd2e591f63a7bf4fb983049c75
refs/heads/master
2023-08-30T20:19:06.383154
2023-08-30T18:06:44
2023-08-30T18:06:44
4,802,269
82
80
Apache-2.0
false
2023-09-14T18:35:09
2012-06-27T00:23:47
2023-08-14T11:42:53
2023-09-14T18:35:08
36,224
76
77
80
Python
false
false
version = '0.356.0'
UTF-8
Python
false
false
20
py
502
toolkit_version.py
312
0.6
0.35
0
1
19
19
HenReLili/FP02
4,939,212,430,612
c57d47c7a0d37452f39b4cda59783d4ca57841b0
40c2b31d6bca6bc16444d444cea4894f737ac761
/dataorganisator.py
f4edba12b64fe451b85580b3c4a360f23da38876
[]
no_license
https://github.com/HenReLili/FP02
bc8e4e842465faf162207e59dd7b49d2fb9130ca
5fe4c41bf55b640d930e194afa973292e67c78c0
refs/heads/main
2023-05-30T18:47:05.173962
2021-06-17T12:17:06
2021-06-17T12:17:06
377,820,877
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" reads data """ import os.path import numpy as np def datareader(datanumber): """Reads the data of a measurement from dataname Args: dataname is the name of the .txt-file wich data is to be read Returns: data is the data of the measurement in a numpy-array """ wavelengths = [] intensity ...
UTF-8
Python
false
false
823
py
5
dataorganisator.py
5
0.611179
0.605103
0
33
23.939394
71
Squiercg/recologia
515,396,078,843
0a325d78f94be414bcf539df041e6333699381b4
7ae64966a18056434545eec13a6fe6c563a8fb50
/project_euler/prob009.py
537c96689b28fdaf9fdb363a075c2fb55871f31f
[]
no_license
https://github.com/Squiercg/recologia
522812932fc26ae6f0f60df911365ef06b00d916
d873b3fa08bac3fe633506c8c3591b884526c728
refs/heads/master
2020-05-21T22:11:43.879102
2019-11-07T14:23:35
2019-11-07T14:23:35
9,555,220
7
6
null
null
null
null
null
null
null
null
null
null
null
null
null
def produto(l): """Calcula o produto dos itens de um iterable""" t = 1 for i in l: t *= int(i) return t def tripleto(n): """Encontra o tripleto pitagorico qual a soma é igual ao numero de entrada""" for c in range(n - 3, 1, -1): for b in range(c - 1, 1, -1): a = (c*...
UTF-8
Python
false
false
476
py
195
prob009.py
180
0.513684
0.475789
0
19
23.894737
81
ChaoOnGitHub/psClean
10,900,627,002,742
579aafec4c3721704bcacc0d4e3609213a8892fb
7ad2468f1398f7f4eb6105ff06964bb51c84fc5c
/test/test_ipc_green_query.py
e6c71ddb091bc008316bf00cadec1fad403d71a1
[]
no_license
https://github.com/ChaoOnGitHub/psClean
ecd0e5450787eece5be2f03f6e457b4646ba36af
85e1a98f709e7ab8efe1b0f6a5418fe0b107f142
refs/heads/master
2021-01-18T11:33:40.816377
2013-01-25T18:44:44
2013-01-25T18:44:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import MySQLdb import csv import re import time os.chdir('/home/markhuberty/Documents/psClean') conn = open('./data/ipc_green_inventory_tags_8dig.csv') reader = csv.reader(conn) ipc_codes = [row[-1] for row in reader] conn.close() ## Format correctly ipc_codes = [re.sub(' ', ' ', code) for code in ipc_cod...
UTF-8
Python
false
false
1,286
py
26
test_ipc_green_query.py
25
0.602644
0.585537
0
47
26.361702
86
calvinchankf/AlgoDaily
16,750,372,481,116
4645fd5d73e7b8b2cb944173855d4e7c8f70d3fb
e00f0f6a6f605532b1123d3e985a5902609eb30a
/codility/10-min_perimeter_rectangle/main.py
5571eaf511a9e96e44af9cede309df8cf68da7d6
[]
no_license
https://github.com/calvinchankf/AlgoDaily
b53c5ea5896e9b8662f4f97bce3eb41b480eb8e0
8ee5006e42442043816881ee88ccc485a3a56ec5
refs/heads/master
2023-08-25T11:48:47.415388
2023-08-25T08:55:22
2023-08-25T08:55:22
146,955,627
154
48
null
false
2023-09-09T09:02:43
2018-09-01T00:56:43
2023-09-03T17:36:52
2023-09-09T09:02:42
63,478
2
1
11
Python
false
false
import math """ 1st approach: math Time O(sqrt(N)) Space O(1) Result 100/100 https://app.codility.com/demo/results/training96RPGQ-5K6/ """ def solution(N): # write your code in Python 3.6 root = int(math.sqrt(N)) for i in range(root+1, 0, -1): quotient = N//i if ...
UTF-8
Python
false
false
371
py
3,428
main.py
3,404
0.560647
0.512129
0
19
18.526316
61
derf/icinga2-check-submitter
2,903,397,935,590
9a72bea731457a81ffd90964dbf1dc9f97bc8648
e8f315c264b0bfffd1c9693e1aff966efe570196
/bin/icinga2-run-checks
47c9f37767f37f768264a576757186fd68f707d1
[ "MIT" ]
permissive
https://github.com/derf/icinga2-check-submitter
23fce502e297a29672d1df95e71e6d9526db71fc
7edf5f61313bb288f89546a05b407ce2ad31041f
refs/heads/master
2023-01-05T15:17:29.156674
2020-11-07T10:39:44
2020-11-07T10:40:23
310,821,495
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import json import random import requests import subprocess import sys import time with open("/etc/nagios/icinga2-passive-checks.json", "r") as f: config = json.load(f) host = config["host"] passive_ping = config["passive_ping"] checks = config["checks"] api = config["api"] headers = {"Acc...
UTF-8
Python
false
false
1,523
3
icinga2-run-checks
1
0.613263
0.604071
0
52
28.288462
79
NeehaK/python_intermediate_project
19,344,532,717,253
f9b06fea2d0a8d7caf03a186ed6c62baef0c07e1
9fe355a0da2fd9e615322b8122b622a1cb20c2e2
/q08_get_total_extras/build.py
5edaf3cd70745f8274f85b6b91ae8cc2cc6bd363
[]
no_license
https://github.com/NeehaK/python_intermediate_project
af8af5d307abb0041199f54b4ab74c8475d9a1c2
ef4b317ae32495f6ad62196e798656b880c293df
refs/heads/master
2020-03-14T01:59:28.465710
2018-05-02T12:14:26
2018-05-02T12:14:26
131,389,663
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# %load q08_get_total_extras/build.py # Default Imports from greyatomlib.python_intermediate.q05_read_csv_data.build import read_ipl_data_csv import numpy as np path = 'data/ipl_matches_small.csv' def get_total_extras(): file_data = read_ipl_data_csv(path, dtype='|S50') extras_col =list(file_data[:,17]) ex...
UTF-8
Python
false
false
523
py
5
build.py
5
0.66348
0.640535
0
18
28
85
general-programming/tumblrarchives
11,098,195,505,639
669f59b19e02df11d063c678eac19e1b2db3971a
15c3febe00af3959c6e16bcc8b59920208fba962
/web/alembic/versions/9dafd4fd2d5f_last_crawl_update.py
9e442b7bce2cf6c0067324dd3a86023bd1e29fc1
[]
no_license
https://github.com/general-programming/tumblrarchives
26ee1ca5877b387a9356f200e9769def92b4f948
74386daf0f50d7dfd07042207ff29105fb3430fa
refs/heads/master
2020-04-09T16:36:24.500759
2018-12-13T23:51:29
2018-12-13T23:51:29
160,457,485
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""last_crawl_update Revision ID: 9dafd4fd2d5f Revises: d00401ed8599 Create Date: 2018-12-08 03:25:42.357038 """ # revision identifiers, used by Alembic. revision = '9dafd4fd2d5f' down_revision = 'd00401ed8599' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(): ...
UTF-8
Python
false
false
677
py
64
9dafd4fd2d5f_last_crawl_update.py
40
0.686854
0.618907
0
28
23.178571
88
TheScottishFly/Netflux
7,464,653,161,255
76c4d7b855dbff4ff215578022cadb7b22080067
82975e04aea861c5f9b10fad270baf929bf67baa
/apps/users/models.py
ab39d0dbfc13126a300b600d8b600ef4ffb67889
[]
no_license
https://github.com/TheScottishFly/Netflux
a7d278c82f7de38bafe2ba57931a118777551379
4df0564c95f50dd8ee6dddab93e8dea84e252af0
refs/heads/master
2020-04-13T08:34:53.889224
2019-02-20T11:19:14
2019-02-20T11:19:14
null
0
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 class ExtendedUserManager(models.Manager): def get_queryset(self): return super(ExtendedUserManager, self).get_queryset().select_related('user') class ExtendedUserModel(models.Model): user = models.OneToOneField(User, on_delete...
UTF-8
Python
false
false
633
py
54
models.py
40
0.742496
0.728278
0
16
38.5
85
YeFeiyangx/grownup_share
16,767,552,342,927
e6bc8775fccc59ea05c2426955a1e9206993584e
f13798ab8440948364bab96cbf23ce6b30c0a9f8
/rl-book-challenge-master/chapter6/driving.py
0fab24a334f716c9e85ab1c3731dae6eb2dd3579
[ "MIT" ]
permissive
https://github.com/YeFeiyangx/grownup_share
29de787d268e6abd6028296c6684adbc4097389c
a6686dbd614c62f62d55735bc95a5e58320e36e6
refs/heads/master
2022-12-07T05:57:48.336393
2021-05-06T12:17:21
2021-05-06T12:17:21
230,780,311
5
0
null
false
2022-11-21T21:04:58
2019-12-29T17:13:30
2021-05-06T12:17:35
2022-11-21T21:04:55
25,516
2
0
4
Jupyter Notebook
false
false
GO_HOME = 0 STATES = ["leaving office", "reach car", "exiting highway", "2ndary road", "home street", "arrive home"] TRAVEL_TIME = [5, 15, 10, 10, 3, 0] class DrivingEnv: def __init__(self): self.reset() @property def moves(self): return [GO_HOME] @pr...
UTF-8
Python
false
false
836
py
219
driving.py
147
0.599282
0.582536
0
37
21.594595
63
FeezyHendrix/colosseum
13,082,470,430,376
2060174420f96dafe050df01f0e8fed86502be46
e352a11ba612bc52b5e5d0f2635dd4cc54e972b0
/tests/web_platform/CSS2/normal_flow/test_block_in_inline_append_002_ref.py
1e30c6f942537a3f5ec8aadd09d4f3b04b54e587
[ "BSD-3-Clause" ]
permissive
https://github.com/FeezyHendrix/colosseum
6e8f4996a3d6531813a0a797c9a1cdb0771057ec
d6cffba96d732ac50dc514b600622a44c95ec616
refs/heads/master
2023-04-15T04:41:29.469230
2020-03-01T13:37:54
2020-03-01T13:37:54
226,541,151
0
1
NOASSERTION
true
2023-04-04T01:11:58
2019-12-07T16:14:59
2020-03-01T13:38:14
2023-03-24T22:34:23
27,292
0
0
0
Python
false
false
from tests.utils import W3CTestCase class TestBlockInInlineAppend002Ref(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'block-in-inline-append-002-ref'))
UTF-8
Python
false
false
174
py
721
test_block_in_inline_append_002_ref.py
492
0.775862
0.724138
0
4
42.25
85
bbhunter/boucanpy
15,075,335,215,361
63c8f1800d92cb0a182aff536e100428c775d04f
d3a0303ce235e131c8b14ce1bdf362bb85a31311
/boucanpy/db/models/zone.py
b32478f1ec8341074eb2d678ba40527b870a4a79
[ "MIT" ]
permissive
https://github.com/bbhunter/boucanpy
303f56d5134e615506435a9c12027d495f5aa11a
7d2fb105e7b1e90653a511534fb878bb62d02f17
refs/heads/master
2022-02-27T03:22:12.426415
2021-02-10T21:26:57
2021-02-10T21:26:57
224,160,082
0
0
MIT
true
2022-02-01T19:49:07
2019-11-26T10:06:39
2019-11-26T10:06:41
2022-02-01T19:49:05
1,669
0
0
0
null
false
false
from sqlalchemy import Boolean, Column, Integer, String, ForeignKey from sqlalchemy.orm import relationship from boucanpy.core import logger from boucanpy.broadcast import make_redis, make_broadcast_url from .base import Base class Zone(Base): __tablename__ = "zones" __searchable__ = ["domain", "ip"] id...
UTF-8
Python
false
false
2,183
py
179
zone.py
172
0.640861
0.640861
0
61
34.786885
153
grechko1985/Stepik-2021
12,893,491,853,813
9245b4462029518e8f9e42772cded2766f0c2c25
48e97f95cff37ff412c0b683145b9ef1a5c63306
/Chapter №2/10. Среднее арифметическое, которое кратно 3 (from part 2.3).py
db6c5fa2d4ab70c5c70336ac99916a3333380872
[]
no_license
https://github.com/grechko1985/Stepik-2021
7751e78d6074777421cad10533bc38bac5b76218
a077d7b71260fc0fdef269427547976691d0f475
refs/heads/main
2023-03-15T17:55:24.248213
2021-03-04T23:47:58
2021-03-04T23:47:58
330,654,184
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Напишите программу, которая считывает с клавиатуры два числа a и b, считает и выводит на консоль среднее # арифметическое всех чисел из отрезка [a; b], которые кратны числу 3. В приведенном ниже примере среднее # арифметическое считается для чисел на отрезке [-5; 12]. Всего чисел, делящихся на 3, на этом отрезке 6:...
UTF-8
Python
false
false
1,054
py
84
10. Среднее арифметическое, которое кратно 3 (from part 2.3).py
77
0.66716
0.633136
0
13
49.846154
118
joanna-janos/GestureRecognizer
11,914,239,328,359
2f9118e6858a97201a16915a431515904fe2bac5
3970a8df09b6e42919fe96e1d3f9938863f1dff7
/data_preparation/dataset.py
2484ac7fb3a7604e5bba009c9c99a40edd59a535
[]
no_license
https://github.com/joanna-janos/GestureRecognizer
b5cfddc9a092ebb085aebb973d06046c9d990095
62d9bd2f02d642901e094cfefbe4cb634b5e83ad
refs/heads/master
2022-04-03T01:21:07.337830
2020-02-13T10:25:56
2020-02-13T10:25:56
220,803,684
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import typing from PIL import Image from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True from torch.utils.data import Dataset from torchvision.transforms import Compose, Resize, ToTensor class GestureDataset(Dataset): """ Dataset for gestures where one sample is image-label. Parameters ---...
UTF-8
Python
false
false
1,575
py
16
dataset.py
13
0.612063
0.605079
0
61
24.819672
84
Hari025/syncupcall
13,477,607,391,977
396f84f1d8fb6eead0366a264375f563f7df48a6
edb8e1e83e862cda2884db184700ea77770f90bf
/testapp/admin.py
b222d0c5c35b76a39b9424349bf7395f8243bbf6
[]
no_license
https://github.com/Hari025/syncupcall
776c90bde36f47bec88b11f51a0c102f8ec6f32a
149fb732f516571ccaf8ac948f7b8d64d724f5a6
refs/heads/master
2023-06-09T02:51:35.403464
2021-06-30T13:40:57
2021-06-30T13:40:57
381,695,291
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 testapp.models import Truecomp from testapp.models import Smart from testapp.models import PDB from testapp.models import DMS # Register your models here. class TruecompAdmin(admin.ModelAdmin): list_display=['TC','title','content','attendees','dat...
UTF-8
Python
false
false
762
py
7
admin.py
3
0.761155
0.761155
0
22
33.636364
60
bleeptv/obey-sm-post-classification
17,695,265,277,327
eacda154e0eac84156faff702a68ec2d2e96571e
4fbb49ac49dc9bc9d68adac09eea43de49e09f94
/app/src/data_cleaning/custom_text_preprocessor.py
8ecb70dc3848a19c4ae23c0af63e937b0d145dc3
[]
no_license
https://github.com/bleeptv/obey-sm-post-classification
8948104d01644c8a51671310b83cd93a2345ed55
b14722737296c6a5df93f1dba3db4b57f14f34c6
refs/heads/master
2023-03-16T04:58:09.862950
2021-03-05T10:15:43
2021-03-05T10:15:43
344,027,299
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import nltk from nltk.stem import WordNetLemmatizer, PorterStemmer from string import punctuation from gensim.utils import simple_preprocess from gensim.parsing.preprocessing import STOPWORDS from gensim.parsing.preprocessing import strip_punctuation from gensim.parsing.preprocessing import strip_non_alphanum nltk.dow...
UTF-8
Python
false
false
1,585
py
9
custom_text_preprocessor.py
4
0.668139
0.667508
0
56
27.321429
85
kc8/UPC_API
13,786,845,067,985
46846bdcf92808ea07a212e2f0835552f7c9de56
c7422c7a1cd127c690b9f87d80b0d2692efa6a38
/tests.py
8b82b1b1dc921c59733d0a0b8f621ceb352f2e3a
[]
no_license
https://github.com/kc8/UPC_API
42e38cf11c5adf1b10171237cfea74acf71c9558
15465791a28169b47435eb518e2733d9ea44f686
refs/heads/master
2022-04-09T04:40:53.326498
2020-02-26T12:50:05
2020-02-26T12:50:05
241,003,215
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' This is an example test script. In its current state this will not run ''' import unittest #import module class TestModule(unittest.TestCase): def test_add(self): result = module.add(4,6) #this would be a test self.assertEqual(result, 15) if __name__ == "__main__": unittest.main() #th...
UTF-8
Python
false
false
357
py
7
tests.py
5
0.658263
0.647059
0
17
19.941176
58
ngoodman90/CodingGame
14,851,996,927,012
762527730e2ca2ff1f31a97c9cfb6c764686fc58
d26b4c0eb87ccd861ff99d7b78bb052cd5d3e421
/python/RockPaperScissorsSpock/main.py
5901ae46aa64fe7ec290bb8790765980144389e2
[]
no_license
https://github.com/ngoodman90/CodingGame
6ad8226253b94cc20c18bdd019b3c880301017ff
529da15a964f92e5407522cea0c9b7a7063c05eb
refs/heads/master
2021-01-10T07:07:30.880015
2020-05-08T13:36:23
2020-05-08T13:36:23
48,571,145
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# https://www.codingame.com/ide/puzzle/rock-paper-scissors-lizard-spock from collections import defaultdict rules = { 'C': ['P', 'L'], 'P': ['R', 'S'], 'R': ['L', 'C'], 'L': ['S', 'P'], 'S': ['C', 'R'] } def winner(pl1, pl2): pl1_wins = pl2[1] in rules[pl1[1]] pl2_wins = pl1[1] in rules[...
UTF-8
Python
false
false
933
py
44
main.py
41
0.559486
0.514469
0
41
21.756098
71
AnchorFree/python-statuspageio
14,577,119,021,251
b8667f2a05ca8d0aa795e87e3a2b8db363848ff4
a33714d6344ae8449e973254d20ff27b151a0d10
/statuspageio/__init__.py
3b211b55c6863a9beaec0104b12763c93b06ab87
[ "MIT" ]
permissive
https://github.com/AnchorFree/python-statuspageio
916f1770a32f6cdbbd284c5a921b937ef8e5923f
54a87368c851de585043e2d8c05086b017b36015
refs/heads/master
2023-01-02T18:21:17.530675
2020-10-27T04:29:02
2020-10-27T04:29:02
299,762,396
0
0
MIT
true
2020-10-27T04:29:03
2020-09-29T23:36:42
2020-09-29T23:36:45
2020-10-27T04:29:02
17
0
0
0
null
false
false
""" StatusPage.io API V1 library client for Python. ~~~~~~~~~~~~~~~~~~~~~ Usage:: >>> import statuspageio >>> client = statuspageio.Client(api_key=os.environ.get('STATUSPAGE_API_KEY') >>> status = client.components.list() >>> print status :copyright: (c) 2016 by GameSparks TechOps (techops@gamesparks.com). :li...
UTF-8
Python
false
false
864
py
5
__init__.py
4
0.725694
0.719907
0
37
22.351351
79
dpq/spacetrack
12,618,613,953,960
693d1da1d7368092e410a1a022d6e2a864ac11cf
bdeebfa1b3f3abcfaa8881c086d9e0ea1ee7e635
/dupe.py
09289d4c4c9ca7b93d50fcaa7631827709863ba3
[]
no_license
https://github.com/dpq/spacetrack
4bfc7f113243ba72a32f60a0fd1a19284ab485ab
907d0bfcc9ab44993e0ca31fa8e7e6bdce55532f
refs/heads/master
2020-07-22T00:03:38.819325
2011-03-28T13:19:05
2011-03-28T13:19:05
1,541,691
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from google.appengine.api import memcache from google.appengine.ext import db import model def main(): print "Content-Type: text/plain" print "" print "Dupes" query = model.Object.gql("where orbiting = :1 order by noradid asc", True) res = {} sects = {} while True: result = query.f...
UTF-8
Python
false
false
898
py
16
dupe.py
11
0.495546
0.482183
0
33
26.242424
78
SvanderHeijden/SimpleMovingAverageModel
7,430,293,433,648
d31f72f48e85c3a412218ac0e014c3030e16ae71
7f3f3d85ab18a019ceaf953f768bf18ee44a6866
/SimpleMovingAverageModel.py
de496fb1f4ecec21d89eecc00fedf99ed1dbaac1
[]
no_license
https://github.com/SvanderHeijden/SimpleMovingAverageModel
98316e401a0687a6988d7f66843b25e25fc2a7e7
f1a9faca2f0b8fec7153c5e15a610661aef2f87a
refs/heads/master
2020-09-03T15:51:16.793378
2019-11-04T13:03:58
2019-11-04T13:03:58
219,502,998
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This application serves as a simple plotting tool for the US stock market. For closing data the financial moddeling pred API is used. @author: Sjoerd van der Heijden """ import urllib.parse import json import requests import numpy as np import pandas as pd from tqdm import tqdm """ When this definition is ca...
UTF-8
Python
false
false
2,910
py
1
SimpleMovingAverageModel.py
1
0.578694
0.568041
0
123
22.666667
113
matrix-org/synapse
12,369,505,821,150
1fd595704053862eae81c16d53291297d53e2013
7343ece3b82ac87a594865c4074623b45b0297b4
/synapse/storage/databases/main/task_scheduler.py
9ab120eea9ca5f326f9470c6bdf4c4300a397d22
[ "Apache-2.0" ]
permissive
https://github.com/matrix-org/synapse
a00111f83310783b78e2996557f8bbae4d9fb229
d35bed8369514fe727b4fe1afb68f48cc8b2655a
refs/heads/develop
2023-09-05T05:24:20.808942
2023-09-04T16:14:09
2023-09-04T16:14:09
22,844,864
12,215
2,869
Apache-2.0
false
2023-09-14T15:20:48
2014-08-11T15:51:42
2023-09-14T11:01:28
2023-09-14T15:20:47
388,587
11,321
2,120
1,497
Python
false
false
# Copyright 2023 The Matrix.org Foundation C.I.C. # # 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
6,970
py
1,212
task_scheduler.py
932
0.562984
0.561693
0
202
33.50495
91
amimimor/questionnaire-poc-be
12,867,722,057,160
bffb04ae6384590447f77573a4c81dfa6be1ccb7
7ffc3497a6af48b6c1674ed948d3805c4a7cb28d
/app/neo/neo_transaction.py
6b071fd6b35b8a1d34debaa55414ed83e8dbf27f
[]
no_license
https://github.com/amimimor/questionnaire-poc-be
3597c32f3523506112c245d09f20c43e9b114f1f
5f2fbdd13427ab1ce81dda9d62cd0fb5368bfd0f
refs/heads/main
2023-07-30T14:05:24.458497
2021-09-02T16:33:40
2021-09-02T16:33:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from app.neo.neo_utils import * def create_new_respondent(tx, company_name, policy_request_id): query = "CREATE(r:Respondent:MatanDev $node) return r" node = { 'id': generate_node_id(), 'comapnyName': company_name, 'policyRequestId': policy_request_id } result = tx.run(query, n...
UTF-8
Python
false
false
6,030
py
8
neo_transaction.py
6
0.612438
0.609619
0
149
39.469799
157
Erick-LONG/MxShop
4,767,413,702,428
42e950392aabc75f9c800d29ffdf3fe907bb40d4
ce741ade3d7ebfc64cf2736358f6e77b06168830
/apps/trade/models.py
9833ff9c0502730ca9e76d98bed3b6859c63e790
[]
no_license
https://github.com/Erick-LONG/MxShop
798a1ce4eb557973732ee6206640bdf9a247216b
783e5d66a4d49b3eceb3eb6d7c729fcfa69742cb
refs/heads/master
2021-04-03T08:31:41.588749
2018-03-22T04:01:46
2018-03-22T04:01:46
124,395,167
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime from django.db import models from django.contrib.auth import get_user_model from goods.models import Goods # Create your models here. User = get_user_model() #返回User类 class ShoppingCart(models.Model): '''购物车''' user = models.ForeignKey(User,verbose_name='用户') goods = models...
UTF-8
Python
false
false
2,831
py
7
models.py
7
0.654932
0.647195
0
79
31.734177
106
shalgrim/advent_of_code_2019
18,365,280,165,247
70cb77a144f512d2ff8f476e48b60e8d92fc8972
ac4f3bfa74fa452448757203a7b03786fbe6f40f
/day14_1.py
0e2e6f9d27a899ca01d732650530c098df34b16b
[]
no_license
https://github.com/shalgrim/advent_of_code_2019
e1f1f825f75597c10b6fda3141323ee162d36618
ffb6731254c48abe1decc769dab9580a86bf8e05
refs/heads/master
2021-10-31T00:41:03.263486
2021-10-21T14:35:16
2021-10-21T14:35:16
227,891,104
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fuel_builder import FuelBuilder class Rule(object): def __init__(self, line): lhs, rhs = line.split('=>') lhs = [l.strip().split() for l in lhs.strip().split(',')] self.lhs = {t[1]: int(t[0]) for t in lhs} self.rhs_ingredient = rhs.strip().split()[1] self.rhs_quantity ...
UTF-8
Python
false
false
2,731
py
57
day14_1.py
57
0.639326
0.633101
0
92
28.684783
102
wakita/glvis
19,292,993,100,379
01b41ca3d18a4065ffed90081417355ac9147b6d
a052b3ecee8b5dd8d0857a80ba9b16f0e9b1515b
/lib/sn/gl/geometry/Geometry.py
7e62597deb2f80190ce37fbd84595ca6dc65e20a
[]
no_license
https://github.com/wakita/glvis
ae67d1f904e7e6e75cd4d5cb9c5aad27ec694d85
700a355a31e15eb920b73923b52ec9cf0db8bf52
refs/heads/kw
2021-09-19T22:18:18.552349
2018-08-01T04:57:15
2018-08-01T04:57:15
49,638,984
4
2
null
false
2017-08-04T04:14:14
2016-01-14T10:02:36
2017-04-21T05:02:14
2017-08-03T08:48:35
3,243
4
2
9
Python
null
null
#!/usr/bin/env python from collections import defaultdict import os, os.path, sys import numpy as np np.set_printoptions(precision=4) root_path = os.path.join(os.path.normpath(os.environ['DROPBOX']), 'work', 'pyqt') sys.path.append(os.path.join(root_path, 'lib')) def demo(Demo): try: Demo.start(Demo) except...
UTF-8
Python
false
false
705
py
114
Geometry.py
73
0.693617
0.69078
0
33
20.363636
81
JetErorr/Python3
14,963,666,096,704
bf7d22d24490160f0c3c2d02215b0e428d839193
6e79476207f4c114b374eaa0a149bde2d9b181ff
/1.Prints.py
1e47864dfa4673731845831a3105971841fe7c91
[]
no_license
https://github.com/JetErorr/Python3
e9493d1f7949c4af179b8fff927d504ab418927d
c7c9cb81f76e727211cfd3671c2f5da4532bb418
refs/heads/master
2020-03-19T16:38:21.050952
2019-07-31T07:03:04
2019-07-31T07:03:04
136,722,688
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#1 Print and comments print("#1 Print and Comments") #These are comments btw print("This will be displayed without any processing.!") print("These things are called prints") print("Just like the C printf() or the C++ cout()") print("Or the bash and cmd echo") #This line will not be proccessed or printed print("This lin...
UTF-8
Python
false
false
378
py
18
1.Prints.py
16
0.743386
0.738095
0
9
41
72
eadasfa/LeetCode
6,786,048,352,636
ae77c27ee7503ce6584eb5716e226862216ff91b
33ca5a05a6dfa1a4b37c9fd33c870743886cb87d
/8.字符串转换整数-atoi.py
bc1e91e81339e3ff342b37d7e06c33367ba4c2bc
[]
no_license
https://github.com/eadasfa/LeetCode
b6c06f57cc2db7a16d9e18661bb43b239ba48659
924b8643279c14bd32d3d8b4b982e463b23f162b
refs/heads/master
2022-09-26T04:49:20.932243
2020-06-07T01:53:14
2020-06-07T01:53:14
255,844,958
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # @lc app=leetcode.cn id=8 lang=python # # [8] 字符串转换整数 (atoi) # # @lc code=start class Solution(object): def myAtoi(self, str): """ :type str: str :rtype: int """ start,end=-1,-1 nums = '1234567890' for i in range(len(str)): if start==-1: ...
UTF-8
Python
false
false
2,952
py
46
8.字符串转换整数-atoi.py
46
0.562432
0.493428
0
85
20.494118
103
wizh/codewars
8,340,826,536,550
9f5f6f475fefe6e75921125ef3641b4600c72530
d4453687d18351b53201b655433803763034ea51
/5kyu/Sudoku_solved/solution.py
8280d61615fad0c7d6f3e0e3f39282faa8283b77
[ "MIT" ]
permissive
https://github.com/wizh/codewars
3af2fc9c8d2fcabd4d626439d848632d47e8129b
bdb421720437a9fcafaa2eda8869a1cd4835bb47
refs/heads/master
2021-01-10T02:17:21.274346
2015-11-25T00:05:09
2015-11-25T00:05:09
46,823,367
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Obscure, non-understandable, but really cool! from itertools import chain def done_or_not(b): cs = [[b[j][i] for j in range(9)] for i in range(9)] rs = ([[[[b[3 * j + m][3 * i + n] for n in range(3)] for m in range(3)] for j in range(3)] for i in range(3)]) rs = ([se...
UTF-8
Python
false
false
497
py
34
solution.py
18
0.519115
0.49497
0
11
44.181818
77
VatsalP/PythonScripts
1,417,339,221,213
f0415d407a4347a9b46f83eaf558af55f92d13d2
329b462f546f8524528cf6752d1e364c3ae14c14
/no-ip/AutoUpdateHost.py
aea576d46ab7acf226046e7646f7784477063f1b
[]
no_license
https://github.com/VatsalP/PythonScripts
a3d8f764073052a847b2796cc488e6fdfe8eb2ad
7aa1abfcccd5bb77622ad2e4811d75e643589573
refs/heads/master
2021-01-10T14:34:28.100128
2020-10-01T02:18:42
2020-10-01T02:18:42
49,646,764
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from selenium import webdriver # use this instead: "browser = webdriver.Firefox()" if you don't have PhantomJS browser = webdriver.PhantomJS() browser.get('http://www.noip.com/login') username = browser.find_element_by_name('username') username.send_keys('yourusername') passwd = browser.find_ele...
UTF-8
Python
false
false
661
py
20
AutoUpdateHost.py
17
0.750378
0.750378
0
21
30.52381
79
ATNoG/5gcontact
670,014,920,032
e59daf6576c443215d25e848f425254a33e7977d
d18abd71a7867eb40c5227e96295059ef14a78b2
/slimano/agents/osm/osm_error.py
35de537aa26a38aa1c8e79679181ceffc385977d
[ "MIT" ]
permissive
https://github.com/ATNoG/5gcontact
0a529ea15b7778a49c1989c4950c26fcd0c399cb
fb65ae919977fb6411932b986bd565b962d9c0b9
refs/heads/main
2023-03-27T23:10:42.058444
2021-04-01T08:30:26
2021-04-01T08:30:26
326,690,140
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json class OsmError: def __init__(self, message=None): self.response = { 'message': message } def set_message(self, message): self.response['message'] = message def __str__(self): return json.dumps(self.response)
UTF-8
Python
false
false
281
py
90
osm_error.py
60
0.562278
0.562278
0
15
17.733333
42
paviprajansai/sai8
10,033,043,636,624
89d633273fd70de285431246af9e31fbfac37683
5d670e61c128c3e75b43e463c06a0cab0ef61b7a
/saira1.py
66f6a279f12ed46edd17b42e8c0954e04bd21b23
[]
no_license
https://github.com/paviprajansai/sai8
7499766f396da3885c9dbe82cb917381389a2dc5
45fb53ca081788c33cea2a83ebdc9dfbbfc4cc18
refs/heads/master
2020-06-27T00:44:46.262735
2019-07-31T07:48:40
2019-07-31T07:48:40
199,802,475
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n11=int(input()) s11=0 while n11>0: r11=n11%10 s11=s11+r11 n11=n11//10 print(s11)
UTF-8
Python
false
false
85
py
8
saira1.py
8
0.670588
0.341176
0
7
11.142857
16
xyan36/measurement_codes
13,322,988,595,434
9dd44b1c2437516288a70ecdcccf3ede4a36de34
46d86c4dfa69d1eb7841501f293bfac4480df781
/suspended_wire/power_dependence_test2.py
f1da49b61c0a11057c24452b08af20842bff4b01
[]
no_license
https://github.com/xyan36/measurement_codes
01330e557a155316949bc37adc0d5df22776e366
fda03ac08c575bbe575bd6e557367c0db2194512
refs/heads/master
2021-07-21T17:42:23.758620
2021-07-19T18:29:42
2021-07-19T18:29:42
207,862,388
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 25 12:05:51 2019 @author: Administrator """ from datetime import datetime import time import visa import numpy as np import os ########### function defitions ################################################ ### lock in 1w initialize ### def lockinInit_1w(): lockin1....
UTF-8
Python
false
false
7,954
py
165
power_dependence_test2.py
20
0.562987
0.526905
0
222
34.828829
94
Volen/edsdtest
3,959,959,886,310
298737ae529c1eefc7deeef2f4d981c1a2b87f48
f433d026216c6c35fb6ac37d82409529260b75b8
/psychics/views.py
91a0ec32a183652f9d08b57ad8094c8e38f74d8d
[]
no_license
https://github.com/Volen/edsdtest
7db093be672919c0e3e7f375b681a679b1116223
7df9fb24b6b0df6ee1ad0b75d74e7c37166c577d
refs/heads/master
2023-04-11T11:02:15.949442
2021-04-09T17:31:16
2021-04-09T17:31:16
355,106,933
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.http.response import HttpResponseRedirect from django.views import View from django.shortcuts import render from django.urls import reverse from .forms import CorrectAnswerForm from .models import HistoryDB, PsychicsPool from edsdtest.settings import PSYCHICS_NAMES class HomePage(View): template_name...
UTF-8
Python
false
false
3,448
py
11
views.py
5
0.634281
0.634281
0
74
45.554054
140
innogames/serveradmin
10,746,008,208,510
431e3b5c4eb06d5da657dcc000efe2dcbec58289
df96f5d5555a8eb0f783598c6c4fc53bdfa629a7
/adminapi/exceptions.py
8cf8e6ce5e4891d5bd10c4eb8ce6c1d088534732
[ "MIT" ]
permissive
https://github.com/innogames/serveradmin
142b536f9516fc0e70630049e631fff42c1a38c8
f59755035a07abdeb8681db4b49729e6861e0967
refs/heads/main
2023-08-09T15:27:56.949189
2023-08-02T05:48:14
2023-08-02T05:48:14
82,291,244
46
18
MIT
false
2023-08-02T05:48:15
2017-02-17T11:33:27
2023-07-13T12:03:25
2023-08-02T05:48:14
4,495
43
17
4
Python
false
false
"""adminapi - Exceptions Copyright (c) 2019 InnoGames GmbH """ class AdminapiException(Exception): """Adminapi exception parent class.""" pass class ConfigurationError(AdminapiException): """Missing or invalid configuration""" class ApiError(AdminapiException): """An API request wasn't successful...
UTF-8
Python
false
false
1,063
py
158
exceptions.py
111
0.688617
0.682032
0
44
23.159091
67
daisukeiot/OpenVINO-Toolkit-Setup
16,518,444,251,041
7a7d705628acfb5be9705eb329c63c82353927a6
38360de287983f99f1d5a49fba36a9dc4f142de5
/App/ObjectDetection/Python/VideoProcessor.py
54ee1e75dbadd3f42d25d069f5b73ef1f38bbc46
[ "MIT" ]
permissive
https://github.com/daisukeiot/OpenVINO-Toolkit-Setup
f71e801d4b47cefdf84dec74b940143f8742ef72
d5002e7f9cb12de0be14bf2d8c30c2767afc83e9
refs/heads/master
2022-07-06T02:01:31.767246
2021-01-06T20:37:57
2021-01-06T20:37:57
246,788,872
3
2
MIT
false
2022-06-22T01:51:16
2020-03-12T09:04:42
2021-01-06T20:38:01
2022-06-22T01:51:15
1,510
3
1
1
Python
false
false
import sys import logging import traceback import time import cv2 import asyncio import numpy as np from FPS import FPS from enum import IntEnum import json from OpenVINO_Engine import OpenVINO_Util, OpenVINO_Engine from OpenVINO_Config import Engine_State, Model_Flag from concurrent.futures import ThreadPoolExecutor, ...
UTF-8
Python
false
false
26,907
py
81
VideoProcessor.py
45
0.574089
0.566433
0
699
37.493562
176
bpJedisim/CS_ML_DL_Courses
4,698,694,247,774
4eb4f954d83129618674b1f83b4ce1b5e7ea3ef5
4746ae085e941eab7d3d98e07c4318104c61db47
/Machine_Learning_Univ_Course_(2017Fall)/Homeworks/hw06/prac/spam/create_vocab/gen_features.py
8d489de19d2d594bf765c5f20c62de08bd6b58cc
[]
no_license
https://github.com/bpJedisim/CS_ML_DL_Courses
b21b912d6f5cd8cb5b088405c1fc1a46c5d202bd
838f05915cb25605f574756fea77274692c1122e
refs/heads/master
2020-08-01T22:54:16.616123
2019-09-15T14:28:14
2019-09-15T14:28:14
211,144,312
0
0
null
true
2019-09-26T17:24:13
2019-09-26T17:24:12
2019-09-15T14:28:16
2019-09-15T14:28:15
191,185
0
0
0
null
false
false
#!python # -*- coding: utf-8 -*-# """ Spam Exercise (Qn 2) @author: Bhishan Poudel @date: Nov 9, 2017 @email: bhishanpdl@gmail.com """ # Imports import collections import numpy as np def create_vocab(fdata,min_freq,fvocab): # count the words and frequencies wordcount = collections.Counter() wi...
UTF-8
Python
false
false
3,524
py
285
gen_features.py
165
0.523837
0.51277
0
122
27.885246
87
sntciitbhu/sntc_website_beta
10,711,648,477,225
0c5097a1c7069240c873f41ba914e6a8de0c56fc
5f6874113f86669d3220c9d5c247dab0a8abca01
/apps/tac/migrations/0005_auto_20200514_1918.py
b0d3abc104197b59d09afd1f7041cefde99ca7b9
[]
no_license
https://github.com/sntciitbhu/sntc_website_beta
f5e0f0b0deec9b291b7c4c6cf0d54b7cf069596c
26a17ac7a401229a53fd428132fe072bdbb260b9
refs/heads/master
2021-12-23T19:26:03.161225
2020-05-18T09:54:25
2020-05-18T09:54:25
252,948,125
0
0
null
false
2021-09-22T18:50:51
2020-04-04T08:35:08
2020-05-18T09:54:29
2021-09-22T18:50:49
38,516
0
0
4
JavaScript
false
false
# Generated by Django 3.0.5 on 2020-05-14 19:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tac', '0004_auto_20200514_1900'), ] operations = [ migrations.RemoveField( model_name='tac_detail', name='facebook_l...
UTF-8
Python
false
false
2,069
py
62
0005_auto_20200514_1918.py
45
0.530691
0.507008
0
67
29.880597
89
jShainline/soens_sim
6,365,141,564,780
3be0605b8b65ebb2c342a6e0186fff09daeb6a0c
6a56fbd216432eb7f55e9ebd30275edd0d8fbcb9
/synapse/_bak/s__load_wr_synapse_test_data.py
cab187b22f6e3af79e6032ad44e19d0a50c5636f
[]
no_license
https://github.com/jShainline/soens_sim
fea00d736a0d5cdb1267e06cf0ee55a4ca8c7bb7
51784fcba09e563f7353c84572cebf31fb7aa11a
refs/heads/master
2021-04-02T23:03:28.019615
2021-03-31T01:46:51
2021-03-31T01:46:51
248,327,761
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#%% import numpy as np from matplotlib import pyplot as plt import time from scipy.signal import find_peaks from scipy.optimize import curve_fit # from soen_sim import input_signal, synapse, dendrite, neuron from _plotting import plot_fq_peaks, plot_fq_peaks__dt_vs_bias, plot_wr_data__currents_and_voltages, plot_wr_co...
UTF-8
Python
false
false
1,639
py
161
s__load_wr_synapse_test_data.py
155
0.708359
0.633923
0
40
40
214
Oluwadurotimi10/Reuseable_pipeline_components
5,927,054,911,096
9baadc92b4af8f4ecb2c9518a5429768c594b459
bb568739839c42e023d32c625d2238c507c4f48f
/TensorFlow/components/visualization/visuals.py
b88dd451d179853cda92fc0ee92475f2589e0bf8
[]
no_license
https://github.com/Oluwadurotimi10/Reuseable_pipeline_components
dcfaac2dfcf0f626278cbf5bdbb80563bd30abe0
629ea1f247e18f49abb630850d844c9460e43aec
refs/heads/main
2023-05-26T19:45:55.095048
2021-06-09T12:53:11
2021-06-09T12:53:11
326,209,579
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#importing libraries import argparse from typing import NamedTuple def visuals(test_loss,test_acc,matrix_data) -> NamedTuple('output', [('mlpipeline_ui_metadata', 'UI_metadata'), ('mlpipeline_metrics', 'Metrics')]): #importing libraries import joblib ...
UTF-8
Python
false
false
2,460
py
26
visuals.py
8
0.584959
0.583333
0
75
31.813333
112
AlissonMacedo/gestao_escolar
4,767,413,748,378
8c9f965e1e1baa936dae799f41f34f53df2f7aeb
5f365910d9459e2ad17770565351e3f06889336c
/apps/departamentos/migrations/0003_auto_20190401_1529.py
7dffee2149f9ce71f2e9dbd6c53855a32485ba91
[]
no_license
https://github.com/AlissonMacedo/gestao_escolar
0d40fa84d627bc9a571314dd256a78692ecf57b0
cd42d950565496e8ffefbfac9603f8e1c3de85f0
refs/heads/master
2020-04-15T01:00:08.400258
2019-04-23T16:11:28
2019-04-23T16:11:28
164,259,591
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.7 on 2019-04-01 18:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('departamentos', '0002_departamento_empresa'), ] operations = [ migrations.AlterField( model_name='departamento', nam...
UTF-8
Python
false
false
398
py
112
0003_auto_20190401_1529.py
79
0.600503
0.547739
0
18
21.111111
55
mbenitezm/taskr
3,925,600,127,029
f3a4f3c940eabf5ebefa3b6ca2ef629abe4d2ffe
79ff9f61117e27f2fb54a7052f210e2a8e50e675
/bin/modules/render.py
c7bbe609cc128d2e709d5c1c13915debd6180449
[]
no_license
https://github.com/mbenitezm/taskr
b0f3a8976e9868a2920951f8dfe5b4347a30e66e
33f29d7ac9b90767804a974cfae8e021ea5b898f
refs/heads/master
2020-12-27T21:33:07.590557
2014-08-14T05:23:02
2014-08-14T05:23:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def open_html(): html = '''<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="auth...
UTF-8
Python
false
false
928
py
13
render.py
11
0.602371
0.599138
0
31
28.935484
78
scottclowe/eat-it
12,884,901,905,492
a4149cc6aafa3a2865acc1cf216a33227b1f7efd
8971e9132cbcaca6f8513b3f451a71509f566a0e
/scripts/no_rfa_doubled3.py
67263f4323ced23b48c7c5dcb23b879743373074
[]
no_license
https://github.com/scottclowe/eat-it
5cb605b560050f47ab17920a5bed26da74b4928e
c55ac9a2f88012c7d08a1e7ea495097746730420
refs/heads/master
2016-09-01T23:28:29.928957
2015-09-12T12:48:46
2015-09-12T12:48:46
42,356,547
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sklearn import pandas as pd import numpy as np import datetime import itertools import copy import pickle import sklearn.svm import sklearn.linear_model import sklearn.cross_validation import sklearn.decomposition import sklearn.manifold import sklearn.metrics from eat_it import StratifiedPercentileKFold from ea...
UTF-8
Python
false
false
7,913
py
48
no_rfa_doubled3.py
14
0.661945
0.645125
0
261
29.291188
114
v-k-k/GalagaGameTestingPythonOpenCV
2,027,224,597,261
dd14cc890deaca44a4131d6581932fddd492b45c
545b7f7905897cb8a9d8082abb78c19551e62562
/constants.py
6d086959d06af36cc724e1c95c2ce214df189e80
[]
no_license
https://github.com/v-k-k/GalagaGameTestingPythonOpenCV
9083c7764d23d1bd8480189ce91fc3fdfb42d00f
9b1f96cc9498877c4a33a7e23acda0602101debf
refs/heads/master
2023-04-16T12:02:37.491064
2021-04-30T10:22:31
2021-04-30T10:22:31
362,190,353
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from utils import Area, Filters from dotenv import load_dotenv import os load_dotenv() TESSERACT_EXE = os.environ.get('TESSERACT_PATH') GAME_SOURCE = os.environ.get('GAME_SOURCE') DRIVER_PATH = os.environ.get('LOCAL_CHROME_DRIVER_PATH') BROWSER_PATH = os.environ.get('LOCAL_CHROME_EXECUTABLE_PATH') DEBUG_MODE = os.en...
UTF-8
Python
false
false
546
py
23
constants.py
20
0.730769
0.690476
0
22
23.818182
61
yc-Claire/machine_learning
18,597,208,410,380
5ce221213e987c610b7bec6b13116a3f2ed3505f
231d783eea300a8c3e6d108df031e6aff7035999
/1_project/GMM.py
0bb8c537dfb538fd36fca76c3c1ce2ef0d8fce50
[]
no_license
https://github.com/yc-Claire/machine_learning
c7b288c4882bfe86acb6397b6404d6cc4b04127e
6540def874cd4f7325984443ec10e3cc122aafb7
refs/heads/master
2022-11-06T23:35:53.415326
2020-07-06T10:58:43
2020-07-06T10:58:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import torch import torchvision.datasets as dsets import torchvision.transforms as transforms import matplotlib as mpl import matplotlib.pyplot as plt from sklearn.datasets import load_iris from sklearn.preprocessing import Normalizer from sklearn.metrics import accuracy_score from sklearn.d...
UTF-8
Python
false
false
7,440
py
28
GMM.py
11
0.521025
0.507995
0
189
33.746032
150
disfear86/class-projects
19,473,381,753,467
4312269e925474c822b3bfc3b779665ed4d6fc23
c0316e7d525b81be015c68c512a8b590152cf44d
/python/codewars/maskify.py
2647be75df8abee85b107d4661a00d8926615f07
[]
no_license
https://github.com/disfear86/class-projects
73ff183e988e8f6232469d933a27591cc14ef8c7
d67b08f3529cf7e73495177d02d87d328082fff5
refs/heads/master
2021-01-17T18:23:48.369584
2017-05-16T17:51:56
2017-05-16T17:51:56
62,585,100
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def maskify(cc): lst = list(cc) for item in enumerate(lst): if item[0] < (len(lst) - 4): lst[item[0]] = '#' return ''.join(lst) str = "4556364607935616" print(maskify(str))
UTF-8
Python
false
false
210
py
8
maskify.py
5
0.528571
0.438095
0
9
22.333333
36
fybmain/DormitoryBackend
17,051,020,167,244
5093d799d8637c5a5114acece28918d25ac7dd94
19c974cbcd526b91d7e0dbe2fadedac553383268
/DormitoryBackend/src/dormitory.py
b9a1436608f34a9652c0baa46998663f6d61d9c3
[]
no_license
https://github.com/fybmain/DormitoryBackend
e7f7d2562f8cfa679f1e8ba6ef57574cdf2090e0
25bc697a504ae9f360ce459a65333062b3624606
refs/heads/master
2020-04-09T17:22:54.386592
2019-01-03T05:21:47
2019-01-03T05:21:47
160,479,238
6
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import List from .util import http, get_request_json, generate_pagination_list from .util import string_filter, id_filter, foreign_key_filter, get_filter_condition from .global_obj import app from .model import Dormitory, Building, ElectricityMeter, WaterMeter from .permission import get_permission_conditi...
UTF-8
Python
false
false
6,001
py
39
dormitory.py
33
0.582403
0.58007
0
195
29.774359
113
cdevine49/ml_helpers
17,111,149,736,247
dfe620d14cc8b1015ade17cf5c5228703f2b5fe5
58d634d2bff5877102a7b7ea3944072b8cb56398
/ml_helpers/tf_helpers.py
6bc9b1eedd57401d9a1afd3414e7749759081231
[ "MIT" ]
permissive
https://github.com/cdevine49/ml_helpers
ab2aea538e53a78779a44990656b7ac465470ee4
7e0be9898822e4efeb736d0678aa9ed7746ea5f2
refs/heads/master
2020-04-03T04:07:13.251841
2019-04-07T16:28:04
2019-04-07T16:28:04
155,003,810
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf def create_placeholders(n_x, n_y): X = tf.placeholder(tf.float32, [n_x, None]) Y = tf.placeholder(tf.float32, [n_y, None]) return X, Y
UTF-8
Python
false
false
165
py
14
tf_helpers.py
12
0.672727
0.648485
0
6
26.666667
45
OpenBanking-Brasil/ressarcimento
19,155,554,153,428
0667712456916de387a84007a0bb60c1cda4abda
bdd2731705bdb50e58816509c671fddbfd095a28
/sdks-client/python-sdk-client/swagger_client/__init__.py
85227557618cf2818b6eb5a432a9920f3109d215
[]
no_license
https://github.com/OpenBanking-Brasil/ressarcimento
865ee9757e1d76f8ed9fe5f8e32e171e9a3500ee
50254340d95f9fae632238b8af422b08a3848b40
refs/heads/main
2023-06-07T00:17:51.583921
2021-07-01T21:13:59
2021-07-01T21:13:59
375,832,352
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 # flake8: noqa """ Plataforma de Ressarcimento do Open Banking Brasil APIs da plataforma de Ressarcimento do Open Banking Brasil para a comunicação online com a plaforma. Através da documentação das APIs abaixo é possível realizar os devidos testes de integração. # noqa: E501 OpenAPI sp...
UTF-8
Python
false
false
912
py
46
__init__.py
17
0.796235
0.785161
0
24
36.625
211
ACCarnall/loch_nest_monster
8,237,747,294,849
351a7db767327e342bafe32a77b02b76a1247cef
fc0201220fa4d73c7e68289a80e096fb4215bc3d
/lochnest_monster/nball_sampler.py
106b426e81299e6d57fffa1488fb1419529570a8
[]
no_license
https://github.com/ACCarnall/loch_nest_monster
b1e817a60f1afa37ca0c65af056b169e8498cc29
166784bfc81f15d1af52fc19124c7d43be2f9b8a
refs/heads/master
2020-03-15T18:52:31.849544
2018-09-03T10:16:17
2018-09-03T10:16:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function, division, absolute_import import numpy as np from .bounds import nballs, nballs_fill_frac from .basic_sampler import basic_sampler class nball_sampler(basic_sampler): """ Nested sampling implementing the nballs boundary method. This uses a nearest-neighbours algorithm ...
UTF-8
Python
false
false
2,798
py
15
nball_sampler.py
14
0.619728
0.613653
0
87
31.16092
79
hardikkhurana19/spy_chat
7,610,682,086,749
9903307f97189aaf824ac438862ed6206f38bf87
783edb76ccd13d169cfda8affd4b304931c7ab9e
/Spy_Chat/select_friend.py
51db0883dfaf5459a9d82020b5070feb5e559649
[]
no_license
https://github.com/hardikkhurana19/spy_chat
c66c913f2bc40eec0b6611a7c04019197b648ff1
503b21ac8c893fdfd3d2b44b32e49bb1ba5de92a
refs/heads/master
2021-01-02T09:39:14.437830
2017-09-16T16:09:27
2017-09-16T16:09:27
99,266,762
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from globals import friends from termcolor import colored,cprint def select_friend(): counter = 1 for friend in friends: print str(counter)+". " + friend['name'] counter += 1 user_input = int(raw_input(colored("Choose the friend\n", 'yellow'))) if user_input <= counter: return...
UTF-8
Python
false
false
399
py
14
select_friend.py
14
0.611529
0.601504
0
16
23.9375
73
kumaraadi/AIcodes
14,224,931,699,194
aa4ff9b90817d1f47833a5eedcb8ba748d34ee47
21405f36d9b1ddcb3a20431b9b2d3a4123cea6f4
/Node.py
48fb19ffdf835812fda4d832aced87b7a08dfbb6
[]
no_license
https://github.com/kumaraadi/AIcodes
e503f8b5823eb50885aef72189eb3150f5843b53
cedb3e666d81bf09768e7580845b35dcdeafc0fe
refs/heads/master
2020-05-07T15:55:12.377177
2019-04-10T20:34:15
2019-04-10T20:34:15
180,659,632
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
ArrayList<Node> children = [] char[][] state int heuristic Node parent int depth int nodeNu int visited def __init__(self, char[][] state,int heuristic,Node parent,int depth,int Nodenum,int visited){ self.state = state self.heuristic = heuristic self.parent ...
UTF-8
Python
false
false
482
py
2
Node.py
2
0.578838
0.578838
0
19
23.842105
99
pfisher3/kegmeter
19,018,115,206,866
25bf837a48d6a4ae19a53c21d581f451207474b3
7ce40ea908478c296d34bcf566796a6221ecf277
/kegmeter-app/kegmeter/app/Interface.py
019c92d011ffc1341096eadb567941303c77d28d
[ "MIT" ]
permissive
https://github.com/pfisher3/kegmeter
b73c74e88de19221d092d803384cd56df749837b
edd27ed824efb26dc9dc3abecb787646ba2ac9a6
refs/heads/master
2020-06-16T08:27:20.775059
2014-12-17T20:56:53
2014-12-17T20:56:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from PIL import Image, ImageTk from StringIO import StringIO import Tkinter import base64 import colormath.color_objects import colormath.color_conversions import logging import md5 import os import pkg_resources import re import requests import threading import time import ttk from kegmeter.common import Config, Beer...
UTF-8
Python
false
false
12,579
py
30
Interface.py
21
0.628826
0.617299
0
314
39.06051
146
c15314356/FYP_Python
1,030,792,155,517
a34a28f26a53e29759b65bb52c25e2f06e23813d
bbe4c6a1a9f5c4a62c0dd451d307dca7c04a8805
/CrimeStatisticFiles/generate_crime_type_stats.py
cd3bd5cbede24dc166087e770c7e7ed86c387935
[]
no_license
https://github.com/c15314356/FYP_Python
5cc0065d208c0c92b2dc528fad1447c2b44a335c
1b919ad2b88da4f3a13e0b72b89805584d2a2ceb
refs/heads/master
2021-10-26T10:52:47.314441
2019-04-12T05:43:24
2019-04-12T05:43:24
159,813,532
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import pandas as pd from cassandra.cluster import Cluster import math FILEPATH = './data/' dataset_location = FILEPATH + '2017-01-city-of-london-street.csv' dataset = pd.read_csv(dataset_location, header=None) ''' Structure of dataframe Crime ID 0 Month 1 Reported by 2 Falls within 3 Longitude 4 ...
UTF-8
Python
false
false
1,212
py
746
generate_crime_type_stats.py
10
0.611386
0.590759
0
48
24.229167
86
divyachandana/objectDetectionKeras
12,086,038,005,968
c1bbee13341502fd549f35d1bdbeab107ecb8a80
c683597057303450536b6299adb22a611007b86c
/generateImageSet.py
1ec9c78dd9e04986b76a6010cffe8016d053d448
[ "MIT" ]
permissive
https://github.com/divyachandana/objectDetectionKeras
a69b0d9233f2e2c31832ad4a029c1e679148c7de
79d89fbf6684c451676c7a561637bb130b2c7883
refs/heads/master
2022-05-24T19:07:25.369044
2020-04-28T20:22:49
2020-04-28T20:22:49
259,394,773
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # _*_ coding:utf-8 _*_ # 用于生成PASCAL VOC格式的训练和测试txt # Author:jefby # Email: jef199006@gmail.com import os import random import glob # trainval数据集占所有数据的比例 trainval_percent = 0.9 # train数据集占trainval数据的比例 train_percent = 1 xmlfilepath = 'data/VOC/Annotations' txtsavepath = 'data/VOC/ImageSets/Main...
UTF-8
Python
false
false
1,137
py
34
generateImageSet.py
1
0.685341
0.67507
0
46
22.304348
61
sqeu/xinhualy
17,772,574,683,278
7801bca3b25831ffe7257c445a03b6ca999d70bc
f4a7b03a0aad58b844cc1af02595591cc311708b
/xinhualy.py
7bc911067405488e873390dea6a8b4c6d33b30b5
[]
no_license
https://github.com/sqeu/xinhualy
23cdeb1459ee0bff5fa97de0d5bd88114529b3ba
2049f4c0d6975cf8ccbe62eb57a3fbb1ddd17436
refs/heads/master
2022-09-13T15:52:16.660337
2019-05-10T22:42:49
2019-05-10T22:42:49
181,925,868
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Apr 17 11:13:26 2019 @author: S80240 """ from __future__ import absolute_import, division, print_function, unicode_literals from bs4 import BeautifulSoup import hashlib import pprint import random import requests import time _GOOGLEID = hashlib.md5(str(ra...
UTF-8
Python
false
false
6,053
py
3
xinhualy.py
2
0.551958
0.52949
0.000165
176
32.352273
154
polyswarm/polyswarm-artifact
16,655,883,210,640
2accb30bf8a415c9da7800f4a2a1421bb197eb6a
d8492e2ebe444157a7d85440d878f4f9c0163641
/src/polyswarmartifact/__init__.py
44cae5301619285ea2a973bd01af2e6e50cbcaa9
[ "MIT" ]
permissive
https://github.com/polyswarm/polyswarm-artifact
4c5c1d84e0634486a9992fdc49d3054eeeae900b
6e4f36fe7b6ec10fc6e94806b8f4b308619ad025
refs/heads/master
2022-04-27T13:34:56.076922
2022-03-24T17:29:02
2022-03-24T17:29:02
187,640,216
2
1
MIT
false
2021-10-14T20:42:50
2019-05-20T12:54:17
2021-10-14T19:14:50
2021-10-14T20:42:49
135
1
1
1
Python
false
false
from .artifact_type import ArtifactType from .exceptions import PolyswarmArtifactException, DecodeError __version__ = '1.4.4'
UTF-8
Python
false
false
127
py
18
__init__.py
13
0.795276
0.771654
0
4
30.75
63
hluk/pdc-client
9,689,446,237,170
358cab01f75bec9c4b0e9b48cc07ff2caebacb85
7cabf7117a74d38e92d1f7fad1cdfb188423186c
/tests/group_resource_permissions/tests.py
5e1b22ec51cc5feb43b9586c946b8ac183f0dd61
[ "MIT" ]
permissive
https://github.com/hluk/pdc-client
a20a88ada43a521911956269b421649d45230183
7236fd8b72e675ebb321bbe337289d9fbeb6119f
refs/heads/master
2021-06-27T02:45:23.205324
2018-03-29T11:28:21
2018-03-29T13:17:54
95,637,783
0
0
null
true
2017-06-28T06:45:44
2017-06-28T06:45:44
2017-04-04T19:38:22
2017-06-23T06:57:34
604
0
0
0
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # from pdc_client.test_helpers import CLITestCase from pdc_client.runner import Runner class GroupResourcePermissionTestCase(CLITestCase): def setUp(self): self.runner = Runne...
UTF-8
Python
false
false
4,509
py
123
tests.py
48
0.522289
0.515857
0
107
41.140187
101
tanveerahmad1517/grimesengineering
15,719,580,343,759
a256affc3f6c463d652108b5d7af342fa1fa5611
dbecbfe77d32abb7c56696eda44ffde6cb7cb396
/ga/services/views.py
eafa2b8bc52ce10e87e16b704dc06ae7ef659e80
[]
no_license
https://github.com/tanveerahmad1517/grimesengineering
1c3cb87f65d0c32c55365e330069bed7c9f76dac
88a539c83d2af899c89566018011d7e1cb533005
refs/heads/master
2020-03-30T01:43:06.462646
2018-09-08T15:41:55
2018-09-08T15:41:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render_to_response from django.template.context import Context, RequestContext from ga.services.models import Department from django.http.response import HttpResponseRedirect from django.core.urlresolvers import reverse from ga.jobs.models import Job #=====================================...
UTF-8
Python
false
false
1,388
py
33
views.py
18
0.589337
0.589337
0
39
34.589744
118
pichetzh/jama16-retina-replication
5,703,716,592,561
cb7c8d7f79bb2417e13311a5e4a0928ce14fad6e
8ae20385243cb1d6d2e596bb506b382081aa9033
/preprocess_messidor2.py
0553892d4054d58cb9dcb897084b6da43be42353
[ "MIT" ]
permissive
https://github.com/pichetzh/jama16-retina-replication
7cdfe36991ad036843f5de3ed16ee68fd7520fa6
ec7ea0c270c8e371549b2c8a1817cbf7b947ec25
refs/heads/master
2020-04-23T07:59:08.726312
2019-02-16T21:08:33
2019-02-16T21:08:33
171,022,275
0
0
MIT
true
2019-02-16T16:04:18
2019-02-16T16:04:18
2019-02-03T19:56:03
2018-10-09T02:40:43
660
0
0
0
null
false
null
import argparse import csv import sys from shutil import rmtree from PIL import Image from glob import glob from os import makedirs, rename from os.path import join, splitext, basename, exists from lib.preprocess import resize_and_center_fundus parser = argparse.ArgumentParser(description='Preprocess Messidor-2 data s...
UTF-8
Python
false
false
2,057
py
16
preprocess_messidor2.py
10
0.629071
0.618376
0
67
29.701493
79
Reidond/workgate-service
7,834,020,394,850
c3f8581717efe419e0c4484a80824d5604a4f1d9
9e6eed34bf233388ad807845432af5212402e59a
/app/functions/trapmf.py
4ca36556fb593851eef4299ab9a33004f8c342b6
[]
no_license
https://github.com/Reidond/workgate-service
dc1523472573b32306eca11b03e8e21790589ddd
3e7db451ccbca81daba2563b6453272beb948afc
refs/heads/main
2023-02-13T16:03:32.897819
2021-01-11T09:59:05
2021-01-11T09:59:05
324,210,973
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Трапецієподібно-пірамідальна функція належності Trapezoidal-pyramidal membership function """ import numpy as np from app.colors import palette import os from bokeh.io.export import export_png from app.browser import BROWSER from sanic import Blueprint, response from bokeh.plotting import figure from bokeh.embed i...
UTF-8
Python
false
false
2,625
py
17
trapmf.py
12
0.621465
0.611391
0
91
27.362637
84
massmutual/ddfg19_cliff_effect
4,999,341,941,813
ceb1c29ae915f6e4fe72ed5460f5ee06d4e1f3e5
cfe8b933e7f2af5d317529af7d2d6c0ea4588611
/services/data.py
7f58b909b94248c2283cd118584740fc07379480
[]
no_license
https://github.com/massmutual/ddfg19_cliff_effect
820d2133804f9473f799f9dc82ff064f074c91cb
462e5b6d1f64894e211bb9dd371361be8e4bd449
refs/heads/master
2020-06-26T15:55:28.901362
2019-12-16T21:42:15
2019-12-16T21:42:15
199,678,800
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np fip_assistance_payment_lookup_data = \ {'group_size': np.arange(1,13,1), 'eligible_grantee': [306,403,492,597,694,828,905,985,1065,1145,1225,1305], 'ineligible_grantee': [158,274,420,557,694,828,905,985,1065,1145,1225,1305]} fip_lookup_table = pd.DataFrame(fip_assi...
UTF-8
Python
false
false
4,149
py
47
data.py
30
0.593396
0.374548
0
59
69.338983
252
ZhangMeimei-pixel/iroko
16,681,653,007,379
1d6f98ee299de4a3d3b026bce2df3a2bceba7369
378ab867300998ea39d7b83f0975562615061f4b
/dc_gym/control/test_bw_control.py
513b48bb1326c25d4ad5753d5bdf0b89cf6b3c91
[ "Apache-2.0" ]
permissive
https://github.com/ZhangMeimei-pixel/iroko
02f62234d38e54802c17f7fc5dd1daef44af211a
874e8fd9fba54e53482c44c525c937defb8deeae
refs/heads/master
2022-01-09T12:04:47.500345
2019-05-28T13:19:47
2019-05-28T13:19:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Simple test suite to verify the functionality of the bandwidth control library. Hardcoded. ''' import ctypes import os FILE_DIR = os.path.dirname(os.path.abspath(__file__)) class Ring(ctypes.Structure): pass bw_lib = ctypes.CDLL(FILE_DIR + '/libbw_control.so') bw_lib.init_ring.argtypes = [ctypes.c_cha...
UTF-8
Python
false
false
895
py
22
test_bw_control.py
19
0.721788
0.688268
0
27
32.148148
77
M4NS0/Workspaces
17,145,509,466,881
bc95233ef2909b3fa6816d0c1e4126c398fddaba
418e22b1eb5bf2c466a3cb63ef7b9b1177581365
/Python/Lógica de Programação I/Exercícios/Lista7/Exercicio5.py
b94b1f9b2768b5856d9c3a0cc4ae54502cb4643f
[]
no_license
https://github.com/M4NS0/Workspaces
2f85bb6f55eeaf93327021b2028716821062fa77
9376c30aa9538b6f80978aeb4b091bcb0e179a62
refs/heads/master
2021-07-06T07:39:08.089759
2021-06-16T11:14:16
2021-06-16T11:14:16
216,075,608
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
mulheresF = 0 homensF = 0 menos24 = 0 vivas = 0 falecidas = 0 nasc = int(input("Insira o numero de crianças nascidas no periodo: ")) for cadastro in range (0,nasc,1): escolha = str (input("Digite 'V' se a criança #{} está viva ou 'F' se falecida: ".format(cadastro))) if escolha == "V" or escolha == "v": ...
UTF-8
Python
false
false
1,105
py
941
Exercicio5.py
738
0.589627
0.55778
0
36
29.527778
178
Allan-Perez/CStudies-
14,353,780,729,851
b461d2f3cf31af112a1420b58fa646b83931d119
d6cdb1317cc3ec40299955f821efa1f33ca2962c
/AI_studies/NonInformedSearch/BreadthFirstSearch.py
a947deb903549124fbd3989f4b6c8d2a8e2c5d6a
[]
no_license
https://github.com/Allan-Perez/CStudies-
37116f9b72e69b7427cbbeb9cd3727e78365e59e
c22ecf915828c70cc1884856acae4817f2c5a9d2
refs/heads/master
2020-03-28T21:09:42.460057
2018-11-11T21:49:30
2018-11-11T21:49:30
149,133,964
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tree import StaticNode as Node import queue def BreadthFirstSearch(init_state, aim_state, transitionOps, mState_mNodes=False): visited_nodes = set() frontier_nodes = queue.Queue() frontier_nodes.put(Node(init_state, transitionOps=transitionOps, mState_mNodes=mState_mNodes)) while frontier_nodes.qsize()>0: ...
UTF-8
Python
false
false
707
py
72
BreadthFirstSearch.py
26
0.74116
0.739745
0
18
38
96
robertsawko/pde-and-uq
17,042,430,242,743
94ff73ccec2cbaeee2a291e1464b049178320546
a76206152efea48d4d2d568db600f46c37b3a285
/high_dimension/test_sh.py
6b6fe8a7c708325c734ced345fc3d299413a5ccb
[]
no_license
https://github.com/robertsawko/pde-and-uq
b84a2ebaf1f0b4cc54206ea3d18ebcc726709799
be4c4dda88d1c63cf355a88f16ecbc4eee1b6203
refs/heads/master
2021-01-17T11:35:21.718594
2016-04-01T09:44:02
2016-04-01T09:44:02
31,924,961
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Testing Shinozuka method for signal generation. ''' from numpy import logspace, linspace, pi from numpy.random import seed, rand from matplotlib.pyplot import figure from scipy.signal import periodogram from scipy.integrate import trapz from synthesis import ftransform_analytical, shinozuka if __name__ == '__main_...
UTF-8
Python
false
false
1,465
py
37
test_sh.py
30
0.571331
0.534471
0
48
29.520833
78
tomaThomas/3D-Scanner
4,105,988,735,388
3da6cbf90d685fcc8c8dfab8ec0365fcfe34f6be
7aaf691564f08708e1618f3bfbf49a1ab158e343
/stepper/__init__.py
a09d97a0bc50287ca1f7176ed1029e1c26bd893e
[]
no_license
https://github.com/tomaThomas/3D-Scanner
bceb8fbdeec9f23ad4aac521d06847c21b82e4a3
6a711330f736a6aed4f61bccb4147295250badf7
refs/heads/master
2020-03-17T10:44:25.138908
2018-06-14T11:10:53
2018-06-14T11:10:53
133,523,679
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .gpio import * import asyncio import math startPin = 2 time_per_step = 0.002 steps_per_scan = 100 step_angle = 2 * math.pi / steps_per_scan current_angle = 0 print("Init stepper") def get_steps_per_scan(): return steps_per_scan def get_current_angle(): return current_angle def set_steps_per_scan(st...
UTF-8
Python
false
false
1,011
py
14
__init__.py
10
0.646884
0.619189
0
57
16.736842
45