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
raft-tech/cfgov-refresh
5,755,256,192,655
93e50273e3c0db0ec4b679380815727d779b5540
fa38abb2f030c8e22c98c71f66ffd950a6b70c60
/cfgov/data_research/views.py
705d464371a2e37ef685b49a384955abb03b54c5
[ "CC0-1.0" ]
permissive
https://github.com/raft-tech/cfgov-refresh
5a06619ccd59f9799829a9abb976ea5ae059715a
7c63c31fd6bb95ed4f7d368f1e1252175f0c71ca
refs/heads/my-money-calendar
2023-08-22T17:43:46.716172
2020-09-21T18:36:46
2020-09-21T18:36:46
236,096,029
4
0
CC0-1.0
true
2023-09-06T00:46:04
2020-01-24T22:44:07
2020-09-21T18:36:54
2023-09-06T00:46:03
631,509
3
0
337
Python
false
false
import datetime from rest_framework.renderers import JSONRenderer from rest_framework.response import Response from rest_framework.views import APIView from data_research.models import ( County, CountyMortgageData, MetroArea, MortgageMetaData, MSAMortgageData, NationalMortgageData, NonMSAMortgageData, State, ...
UTF-8
Python
false
false
8,153
py
1,557
views.py
998
0.52447
0.522262
0
205
38.770732
79
ace-racer/ReviewAnalysis
12,498,354,838,327
27e2db4b2ab30b8ff4e8f6f8691f8462fb9d02b3
54fc549a8af5bad5cfeb97af92a02448297f1ea9
/src/gather_reviews/flipkart_crawler.py
a0433a94589599117c30ce98456d4f1c576bcd65
[]
no_license
https://github.com/ace-racer/ReviewAnalysis
35659ba09917a345edb3e3701aa12ae78602333b
95fee3407791b5bbbc47619b06e603689e2249ed
refs/heads/master
2020-07-26T06:10:05.563327
2019-10-26T14:58:12
2019-10-26T14:58:12
208,559,897
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from bs4 import BeautifulSoup import sys import os import utils from template import ReviewTemplate from review_template_filler import ReviewTemplateFiller MAX_REVIEW_PAGES = 50 def get_num_pages_of_reviews(html_soup): num_pages = 1 navigation_details = html_soup.find("div", class_ = "_2zg3yZ...
UTF-8
Python
false
false
3,015
py
7
flipkart_crawler.py
4
0.68325
0.672305
0
78
37.628205
120
AtzeDeVries/medialib-restore
9,646,496,596,798
6243bc2ea21550d5a3e314ea85f72344e17c6072
a17d266cf304f4c254565103180342b108316918
/index_tars.py
00fd1992291d642fad6b3dff8a899bcbf42eb6b1
[ "Apache-2.0" ]
permissive
https://github.com/AtzeDeVries/medialib-restore
cfef655ee449efdf86482c8fecf01b0801547cf9
25d2f3e853dfb7a9cfd4af4c1423b85ef6ac9509
refs/heads/master
2021-01-18T20:24:03.110254
2014-08-29T13:30:46
2014-08-29T13:30:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python from lib import * import os path = '/data/tar/' filelist = [ f for f in os.listdir(path) if os.path.isfile(os.path.join(path,f)) ] for file in filelist: try: restore.indexTar(path+file) except Exception as e: log.logger.error('Could not index tar')
UTF-8
Python
false
false
287
py
6
index_tars.py
4
0.679443
0.679443
0
14
19.5
82
MD58/Udacity_FSND_5
2,748,779,086,303
fd6c3a1852f0a9e0f4f7aa674249554bd4a63ca0
25ec7d592e93b1196ff44dca01b062f381155045
/migrations/versions/5876f7116045_.py
025dfb027291155a42ffc38b45b66ad5be656e3c
[]
no_license
https://github.com/MD58/Udacity_FSND_5
d47e57ff03414271df6d2662875e9ef6df793a60
a109a8df90c77842d4964b0565856ce05f817d0a
refs/heads/master
2023-03-17T08:07:10.020285
2021-03-06T11:57:56
2021-03-06T11:57:56
344,796,596
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""empty message Revision ID: 5876f7116045 Revises: Create Date: 2021-03-05 21:39:32.116726 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5876f7116045' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gen...
UTF-8
Python
false
false
1,612
py
7
5876f7116045_.py
6
0.595533
0.569479
0
58
26.793103
68
TonyPod/Two-CILs
16,621,523,463,298
8edfb3b6b4e1905f4abbf7699f990b3d6fe9d6c4
2662ec80bc48697b3041fdf00a3afcb55c531b7b
/networks/backbones/imagenet64x64_mobilenetv2.py
f5de4c359a8320f1cb457988820c5b77038bc1b2
[]
no_license
https://github.com/TonyPod/Two-CILs
b3ae7b3298688d714fdb7378864b33a37f993313
0bcd19e52dddafc8fb1b4043db8a799a258c60d9
refs/heads/main
2023-06-01T04:49:40.146258
2021-06-23T08:35:33
2021-06-23T08:35:33
357,801,755
7
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- """ @time: 3/3/21 10:05 PM @author: Chen He @site: @file: imagenet64x64_mobilenetv2.py @description: """ from tensorflow.python.keras import backend, Model, layers, regularizers def _make_divisible(v, divisor, min_value=None): if min_value is None: min_value = divisor ...
UTF-8
Python
false
false
9,454
py
34
imagenet64x64_mobilenetv2.py
26
0.614343
0.586207
0
260
35.361538
99
gurbanli/OOP_task1
10,024,453,670,935
5e3f6cd55dc12df9877d0c17b5f11f26d2649b92
7f50192d2a6efdf0ddfb8b3994f43af926ee22f6
/master.py
cf1491218e5a387821de4bb0352e6e1c4a78846c
[]
no_license
https://github.com/gurbanli/OOP_task1
5f64e446f20d771c6b009c0d75d6dc923167c708
51713474353d8172cb01b21350c82cbd7a2b55a1
refs/heads/master
2023-03-23T03:19:52.079969
2020-04-17T20:24:32
2020-04-17T20:24:32
256,599,221
0
0
null
false
2021-03-20T03:36:10
2020-04-17T20:07:30
2020-04-17T20:24:55
2021-03-20T03:36:10
3
0
0
1
Python
false
false
class Master: def __init__(self, num_of_masters): self.salary = 100 self.price_of_masters = int(num_of_masters) * self.salary
UTF-8
Python
false
false
146
py
7
master.py
4
0.616438
0.59589
0
4
35.5
65
LD250/pyconweb2018workshop
13,460,427,552,367
e5a6a92dfed160ba6b22415be5b4ed1a3ee42239
4d0872809a121d31e895ca2c71862bc6ed89f866
/polls/management/commands/import_questions.py
1dbe8cd51fa9a4e8bacbbcb889b8ffef3268d9e4
[]
no_license
https://github.com/LD250/pyconweb2018workshop
07b18db19506758cfaf7e7ad77c833b4c5843ebd
63b9ed81969cec6338e8d773acdae2b27a80377d
refs/heads/master
2020-03-21T03:09:19.405400
2018-06-30T13:40:19
2018-06-30T13:40:19
138,038,765
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from datetime import datetime from django.utils import timezone from time import time from django.core.management.base import BaseCommand, CommandError from polls.models import Question, Choice, QuestionInfo class Command(BaseCommand): help = 'Import Questions from file' def handle(self, *args, ...
UTF-8
Python
false
false
751
py
11
import_questions.py
8
0.59787
0.573901
0
23
31.608696
98
L00J/Django
8,589,934,633,040
04a21617570abc8eb7ebbd33c6b980540ed55352
5a5829c0bb3cf3efb5bf944acacce0d0055e52cd
/2.数据增删改查的操作/blog/migrations/0001_initial.py
c2a9a422e39e3ef22b68088b1929dde2fe7343bf
[]
no_license
https://github.com/L00J/Django
4c198efde9f6ffb9e04d7ab40ce10ced0a38947b
1da4eadc05da02a1846bde27c0fdbc568a542d7b
refs/heads/master
2019-03-16T18:11:56.520973
2018-05-21T12:44:52
2018-05-21T12:44:52
122,968,787
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-04-03 16:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations ...
UTF-8
Python
false
false
3,053
py
18
0001_initial.py
7
0.554518
0.538513
0
72
40.652778
122
NoiseBaphomet/python
5,145,370,835,946
07baa39698e573b0bc0fda0e38466bab4356de5f
3272f846772d725644f54c3e4b109ea71707435f
/NoiseBot.py
867361e36066e6252fee1366798a1b109cd3961c
[]
no_license
https://github.com/NoiseBaphomet/python
c76ae4c0f77dcaafa4a56ab264d569daf39176b0
48cc408c71116bbe88b3cb662caad59cceba56ee
refs/heads/main
2023-03-01T12:56:30.391108
2021-02-12T22:33:06
2021-02-12T22:33:06
337,807,700
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import discord from discord.ext import commands import youtube_dl import os import datetime from urllib import parse, request import re #para que funcione hay que instalar youtube_dl y FFmpeg client = commands.Bot(command_prefix=">", description="Hi") @client.event async def on_ready(): print('logueado como {0....
UTF-8
Python
false
false
5,114
py
2
NoiseBot.py
2
0.666079
0.659029
0
151
32.821192
139
stevenconnorg/GDB_DataReview
4,801,773,437,057
12f088ec56412745051b39b40c0072032afcce53
bbb9a40bbe78e4dc94db118a6fe9d663442f423c
/py/exportMetadata.py
35b866a7aa0a28e5f98cb8df25d36c66602c0f49
[ "MIT" ]
permissive
https://github.com/stevenconnorg/GDB_DataReview
a6e13f6f95fcd6bf7c1ddd325c6d95dbd720128a
1ff294a27b18554b644eea2ea83272789d8e6902
refs/heads/master
2020-03-14T17:39:49.606793
2018-05-24T15:19:06
2018-05-24T15:19:06
131,725,576
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 27 12:39:46 2018 @author: stevenconnorg """ import arcpy gdb = arcpy.GetParameterAsText(0) translator = arcpy.GetParameterAsText(1) outDir = arcpy.GetParameterAsText(2) # ============================================================================= # gdb = r"C:\Users\s...
UTF-8
Python
false
false
1,693
py
27
exportMetadata.py
22
0.618429
0.605434
0
43
38.372093
145
ctb/STRONG
15,659,450,767,015
101c568d41dba4e51b49201409a40194ea42521e
d5406d6bb844ff90380818757a4a8cb2a59ee6f0
/SnakeNest/scripts/Bandage_Cov_correction.py
8386c79ac56d2b810f297d8a8e645db2b2b7e0ef
[ "MIT" ]
permissive
https://github.com/ctb/STRONG
d24676edbf9f10a9d98019b44ddd1453cd163a36
2a7771804afc9d72c33e4957e311193df6beb485
refs/heads/master
2022-12-09T13:49:01.314122
2020-09-03T20:19:12
2020-09-03T20:19:12
294,188,112
1
0
MIT
true
2020-09-09T17:53:34
2020-09-09T17:53:33
2020-09-03T20:19:32
2020-09-03T20:19:30
25,092
0
0
0
null
false
false
#!/usr/bin/env python # -*- coding: latin-1 -*- import argparse import os from subprocess import Popen, PIPE from random import randint from Bio.SeqIO.FastaIO import * def gfa_correction(gfa_file, kmer, output): def correct_KC(split_line, kmer): KC = next(element for element in split_line if "KC:i:" in el...
UTF-8
Python
false
false
1,185
py
52
Bandage_Cov_correction.py
38
0.608439
0.605063
0
37
31.027027
74
timbailey74/python-utilities
5,772,436,060,559
c44a97daf82d86cde77944bed0a1ab6cf58f3391
eafeb2e54ba2f98bc6c41acfe53dffd5fa97f7f1
/sandbox/scaling.py
607757f44c0af361398490621299a4752f347006
[]
no_license
https://github.com/timbailey74/python-utilities
812b4fb3fff0ae460f1446634d39e249311b96e9
ba2e676acbb484d5923929e015058a5518999af6
refs/heads/master
2020-04-16T16:40:33.112317
2016-12-10T01:17:08
2016-12-10T01:17:08
34,838,591
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Test the effect of scaling and other transformations on numerical accuracy of # least-squares, numerical differentiation, etc. import numpy as np
UTF-8
Python
false
false
150
py
10
scaling.py
9
0.8
0.8
0
4
36.25
79
CS1803-SE/The-First-Subsystem
12,214,887,028,253
2edefecafa3d4590a9cd1faf4fa337e0f5d4192b
bccfab4d853f7417401a084be95de293e66ccd2a
/mySpider/spiders/Exhibition170.py
d0df88857cd1f3ca2af0a6e325ef8f92b292bde7
[]
no_license
https://github.com/CS1803-SE/The-First-Subsystem
a8af03ce04a9de72a6b78ece6411bac4c02ae170
4829ffd6a83133479c385d6afc3101339d279ed6
refs/heads/main
2023-05-06T02:32:08.751139
2021-05-24T06:09:37
2021-05-24T06:09:37
363,400,147
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# from ..items import * from ..str_filter import * class Exhibition170(scrapy.Spider): name = "Exhibition170" allowed_domains = ['jinshasitemuseum.com'] start_urls = ['http://www.jinshasitemuseum.com/Exhibition/ExhibitionSpecial'] custom_settings = { 'ITEM_PIPELINES': { 'mySpider.p...
UTF-8
Python
false
false
1,372
py
310
Exhibition170.py
309
0.586105
0.558758
0
33
40
144
VatsalRaina/HATM
343,597,420,620
f5845ac7327f15119511ca87e5b303e1d6bf1c2b
ae6ca0239e319553dee8a4949604af3577f58381
/preprocessing/magic_preprocess_raw.py
46a7e5462eae9e97ac697036c5fc8272a3df8aa2
[]
no_license
https://github.com/VatsalRaina/HATM
61d2d751e0d130cfc9e08af32aafae46a7040adc
b06a06d31cea60e597b2d4ee45ad9604d4622a11
refs/heads/master
2020-09-16T01:03:25.563275
2020-05-22T11:23:14
2020-05-22T11:23:14
223,604,488
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python """ Preprocess 'raw' mlf transcription and scripts files into prompt-response pairs and save them alongside with grades, speaker-ids and other meta-data into human-readable .txt in the destination directory. ----- Generates files: responses.txt prompts.txt speakers.txt conf.txt sections.txt pr...
UTF-8
Python
false
false
19,298
py
50
magic_preprocess_raw.py
46
0.623225
0.616074
0
403
46.885856
137
V4riableZ/Python
1,597,727,848,831
c4c50aa92059b945ddda31f52f7d8d5e78b0c421
9aacf52f308de0f84448a7f1c6cd60c69823ed02
/Homework/Ext2_t2.py
4219cf0cb503ed0002003aeb5dfaaa730fe725a3
[]
no_license
https://github.com/V4riableZ/Python
9d8fa3b7a32ea74d8736a0b9d7b22d5fabc3c2f8
7ae787884894127114d0d1c19d83ea8b028c9a3d
refs/heads/master
2020-05-03T04:08:16.429945
2020-01-21T12:17:47
2020-01-21T12:17:47
178,413,756
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import os os.system('clear') str1=input("Enter a word:") str2=input("Enter another word:") num=int(input(("Choose a number: [1,2,3] "))) if len(str1) > len(str2): print("Longest word '%s'"%str1) elif len(str1) < len(str2): print("Longest word '%s'"%str2) else: print("Words are equa...
UTF-8
Python
false
false
537
py
9
Ext2_t2.py
9
0.662942
0.629423
0
27
18.740741
64
arthur-samarin/SoftwareDesignProject
15,908,558,900,245
5d884b8a695b71c8f1f414f0694dd0fa75e4a154
e14b357df0b8dc66bcc00690406121b57b09df79
/src/app/bot/reqhandler/exception_handling_request_handler.py
4f1a5a384186f1d74172525b5b6e438ac8824af5
[]
no_license
https://github.com/arthur-samarin/SoftwareDesignProject
102f295627651bdf710ea6ad9ee069057f8ff41f
9858fcb16d98c2e5950214d3c839c7ae2c2a4912
refs/heads/master
2020-04-06T15:33:46.678018
2018-12-08T00:39:50
2018-12-08T00:39:50
157,583,298
0
0
null
false
2018-12-05T15:48:05
2018-11-14T17:08:02
2018-12-05T13:56:22
2018-12-05T15:48:05
68
0
0
0
Python
false
null
import logging import sys from typing import Callable from app.bot.mvc import RequestHandler, RequestContainer, Request from app.bot.reqhandler import BotException logger = logging.getLogger(__name__) class ExceptionHandlingRequestHandler(RequestHandler): def __init__(self, wrapped: RequestHandler, internal_exc...
UTF-8
Python
false
false
1,106
py
72
exception_handling_request_handler.py
68
0.706148
0.706148
0
31
34.677419
110
topherCantrell/pixelHat
1,056,561,964,089
333050c379f6de09ff8ea127404b58fd19c06ba7
1ddcf47817f8bb0f21a671bfef041929aab4dbb0
/movieMaker/StillMovie.py
0d1ecb8a5eb607f8e86e01a8e4fd866ca45542a2
[]
no_license
https://github.com/topherCantrell/pixelHat
bd42c4f2076451c98d169934420bf02557706b20
d23243bee31d730d3dcc9c93cbeef9a460e867a1
refs/heads/master
2018-09-12T04:26:42.977355
2018-06-27T00:03:14
2018-06-27T00:03:14
104,479,810
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import SpriteLoader import HatFrame sprites = SpriteLoader.SpriteLoader() ghostMap = ['#', 1, '*', 2] ghost = sprites.colorSprite("ghostc",ghostMap) pacMap = ['#', 3] pac = sprites.colorSprite("pac2", pacMap) f = HatFrame.HatFrame() f.draw_sprite(32-15+32, 1, ghost) f.draw_sprite(32+1+32,2,pac) ...
UTF-8
Python
false
false
772
py
26
StillMovie.py
10
0.59456
0.507772
0
41
16.731707
46
PPTMiao/mtl-ssl
3,109,556,370,727
f580d7851d08c11f520ed058d11f883bda267025
c7279303a225334c7ed3c1aa32e499f508d4f6b8
/object_detection/core/mask_predictor.py
a02dd9944e3068fbde1ee7d7b298146891bcbe10
[ "Apache-2.0" ]
permissive
https://github.com/PPTMiao/mtl-ssl
b501f835b79112b5a754345bf10b3f299abc6f59
b61449c3f902414304657de6ec217077e441a6b9
refs/heads/master
2023-08-23T05:39:26.520032
2021-10-17T16:02:45
2021-10-17T16:02:45
418,143,628
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
UTF-8
Python
false
false
4,465
py
33
mask_predictor.py
21
0.688242
0.683987
0
119
36.521008
110
taliasman/kitsune
13,537,736,935,760
8aad852cd5c9374fd721013314e4296f5dffcd22
99b6faa1e31b9b18755e90070e24787632cd4776
/apps/twitter/middleware.py
6ffd1e838cd876461f44a1c560d423ce57f67fc0
[]
no_license
https://github.com/taliasman/kitsune
d6743ef9e5b26951a87638a963e7429abf1d0327
f8085205eef143011adb4c52d1f183da06c1c58e
refs/heads/master
2021-05-28T19:50:40.670060
2013-03-11T13:55:15
2013-03-11T13:55:15
8,706,741
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging import re from django import http from django.conf import settings import tweepy from twitter import url, Session, REQUEST_KEY_NAME, REQUEST_SECRET_NAME log = logging.getLogger('k') def validate_token(token): return bool(token and (len(token) < 100) and re.search('\w+', token)) class SessionM...
UTF-8
Python
false
false
4,001
py
106
middleware.py
76
0.532117
0.531367
0
105
37.104762
79
zj-Cloudia/StructurePlaneCluster
14,388,140,485,820
08ea77db5c2afb20bcd995f3a2b3b739d085ba18
3b5f1b969dd9fcdc9a439db585ee72e4b0fe451d
/test/testDbscan.py
de09785bc987efe65225e6dcc08e214fdc0508d2
[]
no_license
https://github.com/zj-Cloudia/StructurePlaneCluster
9d0ecc0561cfdce355378bd14c61e6119bb08833
9591ac8a4b795fec308fbc1307b5dda395f1c1d5
refs/heads/master
2020-05-20T11:59:56.404151
2017-10-28T16:23:04
2017-10-28T16:23:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from importlib import reload import numpy as np import plotGraph as plt, helper as hp import dbscan as dbs # ####### Parameters ######### eps = 0.05 min_pts = 10 file_name = "_dataSet.txt" # file name of Test Data, should be in the same folder of program plot_origin = 0 # plot origin graph or clustered graph, 1 = or...
UTF-8
Python
false
false
1,721
py
14
testDbscan.py
11
0.617664
0.599651
0
50
33.42
99
sray0309/SI-507-homework5
14,697,378,107,853
8ad5546f0dfa9ef07641ff3e090a8ac66ffd96de
af22f9953750bfd28980893e27504cdce5888769
/hw5_tests_ec2.py
b33187293b3c6e58658d0294ffa9f120aa2ad127
[]
no_license
https://github.com/sray0309/SI-507-homework5
205cd78005342515b2b8d8a8e891e7d95722088c
ff755cea3e083eff78fb3524a79a54aca56364f9
refs/heads/main
2023-03-26T18:07:07.275432
2021-03-14T19:31:35
2021-03-14T19:31:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random, unittest import hw5_cards_ec2 class Testec2(unittest.TestCase): def test1(self): d = hw5_cards_ec2.Deck() # create a deck d.shuffle() # shuffle the deck hand_size = random.randint(1,51) # generate a random hand size hand = d.deal_hand(hand_size) # create a temp hand ...
UTF-8
Python
false
false
1,482
py
5
hw5_tests_ec2.py
4
0.604588
0.579622
0
40
36.075
94
sken10/tpow
3,805,341,053,291
1f71be91b287abc84d829419ab585e9f3519c002
5666d371d4fe78d4bb0f7a63ae2f5d9465e7d1b5
/tpow/__init__.py
e72b75325bda5b9749981968df382317163b2462
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/sken10/tpow
095dd53d60413b86a14fa0f387a96e592bce715c
6accbfe133a41959c2d35d5c8401e622d4f9efc2
refs/heads/master
2021-05-10T15:56:29.163286
2018-01-28T05:49:51
2018-01-28T05:49:51
118,565,827
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__version__ = "0.2.0" __license__ = "MIT License" __author__ = "Kenichi SHIRAKAWA"
UTF-8
Python
false
false
83
py
15
__init__.py
12
0.590361
0.554217
0
3
26.666667
32
EdenShuker/kaggle_project
18,528,488,940,274
a6ec40e5e2f0015f0cbf084c2cb9faa5c7f7f28f
cff6e0ef8ffb58b22fe378eb25c2c03b1b61a016
/data/create_csv_data.py
01a70a3a276c69d04532e96e34a54ade88d201ab
[]
no_license
https://github.com/EdenShuker/kaggle_project
99ddfee8fcc6154c5e843ac46a830f23d2c4dc3b
be2038ffe58e5c4b3a0f9c3cb2d3c1dd51420143
refs/heads/master
2021-04-06T08:26:29.707781
2018-06-12T13:57:40
2018-06-12T13:57:40
124,678,518
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from csv import DictReader label2dir = {'5': 'Benign', '1': 'Gatak', '2': 'Kelihos', '3': 'Kryptik', '4': 'Lollipop', '6': 'Ramnit', '7': 'Simda', '8': 'Vundo', '9': 'Zbot'} file2label = open('allLabels.csv') with open('files2label.csv', 'w') as f: for row in file2label: file_name, label = ro...
UTF-8
Python
false
false
413
py
19
create_csv_data.py
14
0.559322
0.525424
0
11
36.545455
119
georgerapeanu/adibot
9,431,748,198,999
af6f3204633765aaa89b66a7ff54b86f9c11e89a
ae68a11dbae17ebc13127993003bad3953d199b4
/scripts/preprocess.py
5de5274c417405553d6f9fe3b7fa880e7c35177e
[]
no_license
https://github.com/georgerapeanu/adibot
e10db530a57333ccff7d07dc81b8377079ea25b0
e3f7ce4812f2f0723def936d7f8b3820ab1aefaa
refs/heads/master
2022-06-03T03:55:57.230452
2020-04-30T21:54:27
2020-04-30T21:54:27
259,831,622
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # push test import cv2; import os; import matplotlib.pyplot as plt; import numpy as np; R_MIN = (93,84,96) R_MAX = (255,255,255); def process(IMAGE_DIR,OUTPUT_DIR): for filename in sorted(os.listdir(IMAGE_DIR)): if(True or filename.endswith(".jpg")): im = cv2.imread(os.path...
UTF-8
Python
false
false
2,259
py
5
preprocess.py
3
0.520142
0.486056
0
60
36.65
152
eost/pfi-utils
10,866,267,283,476
22d85be407f784319e50d580ba15af2ee2ccbd55
fff0fb30b1329ca88d69a6005d4a02197a01643e
/pyseQC/qc_repimp.py
bd95c4ee77ec3d1955ddf85a012f867bdc5b9901
[]
no_license
https://github.com/eost/pfi-utils
61ee5e98b1f0e2d6c3a5aaf8dbbc02fbb701ab64
cb1902faeda32d5fdaba6cc0ad2e966efc173690
refs/heads/master
2018-01-04T08:09:00.944711
2017-12-06T16:17:04
2017-12-06T16:17:04
71,113,485
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ :author: Maxime Bès de Berc (mbesdeberc@unistra.fr) :copyright: Maxime Bès de Berc (mbesdeberc@unistra.fr) :license: The Beerware License (https://tldrlegal.com/license/beerware-license) """ from matplotlib import pyplot import numpy as np from obspy.core im...
UTF-8
Python
false
false
4,103
py
24
qc_repimp.py
18
0.481834
0.469154
0
103
38.815534
79
femalemoustache/python_test_tasks
15,204,184,244,570
cefae10c66f9127a7620a7968340c4f798ab05e4
e35e325b29378b137f674529446c476449db32d1
/task4.py
b3d1dc19ca705560421aab27df26e3adfcc34128
[]
no_license
https://github.com/femalemoustache/python_test_tasks
8ababb5ca42f0b66cfe79dc0da4378cb69012459
29170e33d0bf1b62bc2f5824bf98c5dac935b196
refs/heads/master
2016-08-07T11:44:11.219181
2015-04-17T13:30:13
2015-04-17T13:30:13
34,118,130
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class A(object): def __init__(self): print "A" class B(A): def __init__(self): super(B, self).__init__() # Python 2.7 print "B" b = B()
UTF-8
Python
false
false
154
py
6
task4.py
5
0.5
0.487013
0
10
14.4
42
CharlieBliss/spellbook
16,260,746,196,895
9c1ef2a53d6ec55d4e863811f8350650032a65a4
b07adcac0a50f9047c4e4148c8986122ff1bb871
/spellbook/spells/migrations/0003_auto_20181212_0404.py
fec4fdbed2e0e53d683d94513bbb106249e97540
[]
no_license
https://github.com/CharlieBliss/spellbook
f60bd93ea42c3218d8ce020b7a8cca772688d491
49938e7ea74b0317f43ec2c45fa7dd53b71b111b
refs/heads/master
2020-04-20T22:36:01.882065
2019-02-07T17:23:10
2019-02-07T17:23:10
169,145,462
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.4 on 2018-12-12 04:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('spells', '0002_auto_20181212_0401'), ] operations = [ migrations.AlterField( model_name='spell', name='area', ...
UTF-8
Python
false
false
685
py
49
0003_auto_20181212_0404.py
46
0.541606
0.487591
0
28
23.464286
50
nhchenfeng/mmt
11,106,785,476,308
ad4ee0f2d3944720765bf58fba74a37f5909bf7a
55db00c7a234176d7647c17719eee8a3268dcd1c
/draw/mmtest/linux.py
6aadd569474c208b5e321a466ac9f692cb1ebd11
[]
no_license
https://github.com/nhchenfeng/mmt
c9cee700eeba5ec7a3e4ea075fde541d356b366d
1a1bce734b3febea8823b0e3068cc229ebf23d66
refs/heads/master
2021-10-14T07:03:34.178529
2016-12-26T14:35:25
2016-12-26T14:35:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from curses.ascii import isdigit from lib import * from app import * from view import * from linux_cmd import linux class device: meminfo = "" vmstat = "" def init_device_info(self, Param): local_linux = linux() device.meminfo = local_linux.cmd("adb shell cat /proc/memin...
UTF-8
Python
false
false
3,283
py
22
linux.py
17
0.553457
0.549802
0
84
38.071429
111
VaRkanar/werk24-python
7,490,422,977,349
b77e8024c8983d470b4fe615749273663041b6b9
8aea9f7c00947b43cd8309ba003a7e4cc1475388
/werk24/gui/worker.py
9da5f71ce95fdb0df073bb8e4be8cacb66a1aae7
[]
no_license
https://github.com/VaRkanar/werk24-python
7d8917037e242161362d878d7f66de80bc655c63
4a8ddcf5b0e08293262b842faf7c094ba1fa368f
refs/heads/master
2023-06-07T10:42:10.778329
2021-07-06T19:16:53
2021-07-06T19:16:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import List, Dict, Any, Callable from PyQt5.QtCore import (QObject, QRunnable, pyqtSlot, pyqtSignal) class W24GuiWorker(QRunnable): """ Small worker class to execute non-blocking calls in the background. Used to call the API while keeping the GUI responsive """ def __init__( ...
UTF-8
Python
false
false
1,162
py
51
worker.py
42
0.594664
0.58864
0
42
26.642857
70
Dans-labs/dariah
8,495,445,327,265
5366cf903810cbae300c37cb4502d72c825d34f1
e75cbecd7cd419b7cc1ac911de42befa1f014124
/server/index.py
81825b3e581f1b8b5e1e5fbb78d79411b97cb96d
[ "MIT" ]
permissive
https://github.com/Dans-labs/dariah
7646504724b2b6a9ef62c22b574f13ec4440711b
07c9b1a8efd60bda177c1276043209a1c6c55f02
refs/heads/master
2021-11-30T15:54:43.110269
2021-11-24T14:20:06
2021-11-24T14:20:06
53,429,449
0
1
MIT
false
2020-03-15T09:11:14
2016-03-08T16:57:21
2020-03-13T08:54:46
2020-03-15T09:11:13
155,763
0
0
3
HTML
false
false
from flask import ( Flask, render_template, redirect, ) from controllers.utils import dbjson from controllers.db import DbAccess from controllers.info import getInfo, selectContrib from controllers.review import getReview, modReview from controllers.cons import getCons from controllers.file import FileApi ...
UTF-8
Python
false
false
3,809
py
233
index.py
117
0.61696
0.61696
0
134
27.425373
81
veryamini/Treehouse-Python
8,169,027,818,101
649889062e1aaaa1c3a0381b6c411949f5dd8a6e
c3c6bf1377f7110fb8a648b5a91350b86e0cb876
/Python Collections/Dictionaries/word_count2.py
c90c0bf524cdc5b3f2ba73dc8265ed3073ad51d0
[]
no_license
https://github.com/veryamini/Treehouse-Python
0975739ab5f29435e9278658f875d60752f73417
60f8ee1a2cb87b2202f701e2ab244b833bfce80e
refs/heads/master
2020-03-21T20:50:31.345367
2018-07-10T15:42:36
2018-07-10T15:42:36
139,031,850
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# E.g. word_count("I do not like it Sam I Am") gets back a dictionary like: # {'i': 2, 'do': 1, 'it': 1, 'sam': 1, 'like': 1, 'not': 1, 'am': 1} # Lowercase the string to make it easier. def word_count(new_string): words = list(new_string.lower().split()) words.sort() print(words) dictionary = ...
UTF-8
Python
false
false
783
py
12
word_count2.py
11
0.469987
0.453384
0
26
28.115385
75
wesenu/udacity
9,887,014,757,992
4fb5d7115f89b4092e79124a850bf7ea33cf5476
339afd37aa6ce68d61d5ec0fc512c3ebede0a016
/basic_algorithms/problem_1.py
b6dbd648602db1ca35b0577de982321325549d64
[]
no_license
https://github.com/wesenu/udacity
174c5d48886b6c6ae4c4272140becabf9d3bfaa3
6657e0658082a885cce63d5fdb1a8046e27c0e7f
refs/heads/master
2023-03-16T17:18:31.507001
2019-11-09T21:05:26
2019-11-09T21:05:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def sqrt(number): """ Calculate the floored square root of a number Args: number(int): Number to find the floored squared root Returns: int: Floored Square Root """ if (number is None) or (not isinstance(number, int)) or (number < 0): print("The input should be an integer...
UTF-8
Python
false
false
1,758
py
24
problem_1.py
11
0.580205
0.557452
0
62
27.370968
100
LuisAngelGonzalezA/TTI
12,163,347,406,410
682f8030cd56a2c4d685aa55ef1c964407c1c323
7f61a702ec89c0084e492db3dd2ee4dd0a7cc7b0
/TTI/Interfaz_grafica_python/Documentos/pruebas_python/sistema/vista.py
7ced160acfe0d72ac2fbfb0f6e2d748aec07f215
[]
no_license
https://github.com/LuisAngelGonzalezA/TTI
dee50b6500dd5b5fb30987dcfd27e82c8ca6b5c8
bc69b627b3c67a48182485fc02a4f5679ee6a415
refs/heads/master
2020-03-30T08:32:41.419281
2019-06-11T07:57:14
2019-06-11T07:57:14
151,023,323
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tkinter import * import tkinter as Tk import mysql_conection from tkinter import ttk import tkinter.font as tkFont import vista as vis import cerrar_ven import table import insert import update_ventana import mostrar_grafica import eliminar from functools import partial from tkinter import messagebox def vista_...
UTF-8
Python
false
false
20,608
py
149
vista.py
57
0.715029
0.695538
0
523
38.33652
327
Naatoo/advent_of_code_2020
15,590,731,296,245
9ec9f2f8990f223be722eed3bb14d20641f83a4e
802b6999fe759954d0de4b3793bb4bd34e03f87d
/day9/solution.py
0e0c47541fb2075232171e806ef8b86694a8ffc1
[]
no_license
https://github.com/Naatoo/advent_of_code_2020
bbe977f4ec7335a95c0898e65616ccb838bac9ba
880e8a948852de9e33da4c216a42979d627b3cd0
refs/heads/master
2023-02-28T00:36:38.374187
2021-01-31T21:39:27
2021-01-31T21:39:27
317,694,657
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import collections import itertools from typing import Generator, Tuple def parse_file() -> Generator[int, None, None]: with open("input.txt") as file: yield from map(int, file.readlines()) def part_1(preamble: int = 25) -> int: program: Generator[int, None, None] = parse_file() current_values: ...
UTF-8
Python
false
false
1,047
py
12
solution.py
12
0.618911
0.60745
0
33
30.727273
116
PythonCoderAS/ProgramWorker
16,707,422,790,476
37489d2e63f56c5f59a3aa848aae0d509eeb93a7
894e9e3b4a3dc2a7e1a602babaf3398866369776
/filecleaner.py
f4f3199a337f0a916be36077fb679dcb4596128f
[ "MIT" ]
permissive
https://github.com/PythonCoderAS/ProgramWorker
a6c9bee331e799294bded4b9a40b4d21eb3932e3
74902f6327072e12d460259098a275d5c28bfc03
refs/heads/master
2020-03-16T23:57:19.133607
2018-05-11T23:57:58
2018-05-11T23:57:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from .utils import * temp = getvar('temp') windowstemp =
UTF-8
Python
false
false
69
py
5
filecleaner.py
5
0.695652
0.695652
0
5
12.6
21
quantum-compiler/quartz-artifact
17,867,063,973,086
d7865df1e866bb43e927c1f03cb08fad86e68621
a085153abaf16eae2a0f9bdbb14540aa42959b23
/extract_results.py
0cce73c524fa2820e36d2869bc9741a15a2761a2
[]
no_license
https://github.com/quantum-compiler/quartz-artifact
c76779821303c1ab52870717c85186708bed4f70
20f6747d8f1ffb943fa017fe84bec342f22441cf
refs/heads/main
2023-04-16T01:40:58.078260
2022-08-05T00:58:58
2022-08-05T00:58:58
464,661,620
6
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import os from natsort import natsorted verbose = True original_val = [900, 58, 114, 170, 450, 170, 420, 225, 347, 495, 669, 883, 1095, 1347, 63, 119, 278, 521, 443, 884, 200, 45, 75, 105, 255, 150] circuit_names = ['adder_8', 'barenco_tof_3', 'barenco_tof_4', 'barenco_tof_5', 'barenco_tof_10', 'csla_mux...
UTF-8
Python
false
false
6,486
py
174
extract_results.py
108
0.539778
0.500154
0
163
38.791411
373
mojtaba-arvin/video-service
6,863,357,788,430
5ca26553b293b6e50c6f1e00b0ba88770092ed7e
9a6eae37a03647aae2d590d8dd96cae2b558181f
/video-streaming/video_streaming/grpc/exceptions.py
a03dd0ca7987334229d7a9e9f66ba1cced9fb242
[ "MIT" ]
permissive
https://github.com/mojtaba-arvin/video-service
35382dc4e93c4f8afc591c83d12e6d00b1bea6f9
d75bd59d8203277fc6a50440d3f0b34693958ee1
refs/heads/develop
2023-04-02T02:59:36.888720
2021-04-01T10:11:50
2021-04-01T10:11:50
340,950,715
25
5
MIT
false
2021-04-01T10:11:50
2021-02-21T16:42:37
2021-03-31T20:17:16
2021-04-01T10:11:50
407
5
0
0
Python
false
false
from video_streaming.core.constants import ErrorMessages, ErrorCodes from video_streaming.core.exceptions import GrpcBaseException __all__ = [ 'S3KeyCanNotBeEmptyException', 'BucketNameIsNotValidException', 'DuplicateOutputLocationsException', 'OneOutputIsRequiredException', 'JobNotFoundException'...
UTF-8
Python
false
false
1,834
py
89
exceptions.py
79
0.78626
0.782988
0
60
29.566667
68
v-komarov/psv3
10,462,540,381,775
af220385d50552951648db6d6173885d2f352ac4
bc550f6966e30de27987bc803b2447bf02a2e44b
/report/UlDom.py
e593ad33df18c849095f53eea1cccf70fac1a9d2
[]
no_license
https://github.com/v-komarov/psv3
afe2a50a5498ee66f4146802ecbbb62bef5a9173
deca97a9fac0865163f7c2d4fd5110caccb00a80
refs/heads/master
2021-01-18T10:52:35.444429
2016-06-06T09:19:27
2016-06-06T09:19:27
59,651,228
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf-8 """ Вспомогательные интерфейсы для отчетных форм """ import RWCfg import wx import sys from report.RunSQL import GetUlDom class ListUlDom(wx.ListCtrl): def __init__(self, parent, ID, pos=(0,0), size=(270,200), style=0): wx.ListCtrl.__init__(self, parent, ID, pos, size...
UTF-8
Python
false
false
2,988
py
158
UlDom.py
79
0.628409
0.591667
0
140
17.842857
64
Aasthaengg/IBMdataset
652,835,035,306
362c3c6b265ede2a7a3565275a917f338f7c85a0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02936/s652606703.py
34938dac1bd96621de52b33622a25f321bce4fb5
[]
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
import sys input = sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 import queue N,Q=MI() adj=[[]for _ in range(N)] for _ in range(N-1): a,b=MI() a-=1 b-=1 ...
UTF-8
Python
false
false
742
py
202,060
s652606703.py
202,055
0.416442
0.401617
0
40
17.55
48
Sikerdebaard/dcmrtstruct2nii
2,714,419,358,646
66b4a9460b796ad0a8b11bbe0f59174f515611bb
f964bb231431aad5b5e90d05679adb89a985dc56
/dcmrtstruct2nii/adapters/output/niioutputadapter.py
b3249a10eff2137d617bcbcfdce5676e402a4cb9
[ "MIT" ]
permissive
https://github.com/Sikerdebaard/dcmrtstruct2nii
1a95e954e064e8d236e6b97d293d712ee1291dde
9a6669bf73454f1cb2550664d42faabf58776f7d
refs/heads/master
2023-03-15T21:12:49.408885
2023-03-07T14:44:08
2023-03-07T14:44:08
166,835,376
75
25
Apache-2.0
false
2023-03-07T10:56:16
2019-01-21T15:19:54
2023-02-03T12:20:27
2023-03-07T10:56:13
4,268
61
20
7
Python
false
false
from dcmrtstruct2nii.adapters.output.abstractoutputadapter import AbstractOutputAdapter import SimpleITK as sitk class NiiOutputAdapter(AbstractOutputAdapter): def write(self, image, output_path, gzip): if gzip: sitk.WriteImage(image, output_path + '.nii.gz') else: sitk.Wr...
UTF-8
Python
false
false
358
py
33
niioutputadapter.py
30
0.701117
0.698324
0
11
31.545455
87
nkmurli/vasuNKproj
14,628,658,635,591
292eca8002bbe96a173e8ed2255e54a822d172e9
4b0d1d7e61455587483cc60c3adab1ccf068ae02
/app/views.py
bacf0ac44fd55d3f31cde43e65170c608fd9156f
[ "MIT" ]
permissive
https://github.com/nkmurli/vasuNKproj
95548f7f11081fd54203bcd8b79fd633a324cf4f
543f87d5ed2812d50b39867bca60c893a4d906d8
refs/heads/master
2022-12-10T15:47:53.890614
2020-01-30T12:46:31
2020-01-30T12:46:31
237,213,578
0
0
MIT
false
2022-12-08T03:31:39
2020-01-30T12:58:36
2020-01-30T13:12:52
2022-12-08T03:31:39
76
0
0
7
Python
false
false
from django.shortcuts import render, redirect,HttpResponseRedirect from django.db.models import Q from django.http import JsonResponse, request from django.core import serializers from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from . import models import sqlite3,json impo...
UTF-8
Python
false
false
10,082
py
22
views.py
10
0.642134
0.629538
0
292
33.520548
150
SrdjanStankov/DRS_Asteroidi
1,039,382,091,286
533d3a1911e50b00847365cb6384fe3feaf1ef1e
724a58f72e4f82262bd63c09f65cad36646619f1
/Game/Asteroid.py
39472bd11d2e3af1f3c4ac9c8a97688854ee4150
[]
no_license
https://github.com/SrdjanStankov/DRS_Asteroidi
4a748511071f3e6d85d3eeed04986d18ead13d58
392d53458629f9feeea0a2fa5c6b068ad8734be4
refs/heads/master
2020-09-14T15:40:13.015684
2020-01-17T22:55:43
2020-01-17T22:55:43
223,171,906
0
0
null
false
2020-01-03T19:24:08
2019-11-21T12:43:47
2020-01-03T02:52:27
2020-01-03T19:24:07
32,533
0
0
0
Python
false
false
from GameObject import GameObject from PyQt5.QtCore import QObject import types import Transform as transform import Managers as mng class Asteroid(QObject): def __init__(self,type,x,y,rotation,speed,signalCollision): super(Asteroid,self).__init__() tempTransform = transform.Transform() te...
UTF-8
Python
false
false
995
py
45
Asteroid.py
42
0.660302
0.658291
0
28
34.535714
161
alanyamuzu/py-etherscan-api
15,384,572,857,830
9798063284843ee08a81c12ba8872241069daddd
29767f4fbe9b52fa65a37d7406855d0aa4b1b8f7
/examples/accounts/get_all_transactions.py
5386e94b6a794f23ae13bd862a79657079f963b5
[ "MIT" ]
permissive
https://github.com/alanyamuzu/py-etherscan-api
7c7be17e93b6baeb5e008fc1c48b3ff466f79c01
eca11d9eb8d9376ecca964046571cdd80f33375d
refs/heads/master
2023-01-22T10:41:09.169872
2020-12-06T20:02:00
2020-12-06T20:02:00
319,119,946
1
0
MIT
true
2020-12-06T20:00:27
2020-12-06T20:00:26
2020-12-06T19:54:11
2020-04-16T07:56:00
217
0
0
0
null
false
false
from etherscan.accounts import Account import json with open('../../api_key.json', mode='r') as key_file: key = json.loads(key_file.read())['key'] address = '0x49edf201c1e139282643d5e7c6fb0c7219ad1db7' api = Account(address=address, api_key=key) transactions = api.get_all_transactions(offset=10000, sort='asc', ...
UTF-8
Python
false
false
399
py
39
get_all_transactions.py
31
0.666667
0.586466
0
13
29.692308
65
jerrylance/LeetCode
867,583,394,465
638984cc617bc3a7d94bc7ce39ee784d2e50b786
e28009b0a4584e8d128ed6fbd4ba84a1db11d1b9
/278.First Bad Version/278.First Bad Version.py
2846c079b87b211233d4d72a5e599ba39b3d66a5
[]
no_license
https://github.com/jerrylance/LeetCode
509d16e4285296167feb51a80d6c382b3833405e
06ed3e9b27a3f1c0c517710d57fbbd794fd83e45
refs/heads/master
2020-12-02T23:10:27.382142
2020-08-02T02:03:54
2020-08-02T02:03:54
231,141,551
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# LeetCode Solution # Zeyu Liu # 2019.3.17 # 278.First Bad Version from typing import List # method 1 binary lterative,快 # The isBadVersion API is already defined for you. # @param version, an integer # @return a bool # def isBadVersion(version): def isBadVersion(version): if version >= 4: r...
UTF-8
Python
false
false
1,281
py
191
278.First Bad Version.py
190
0.521535
0.50509
0
55
21.254545
50
hemanthsoma/BigData
5,789,615,934,948
a3d2f0f246fcd4ebce3ad4df1404a8af86b803b1
61ec8269904b03e13fa3d44cd44db3324145f6d2
/Assignment02/printItemsInDict.py
9d897add686b031ac275941fbc58c63993368f27
[]
no_license
https://github.com/hemanthsoma/BigData
4f72b260cd54132c48a9680ed5e0225f80c03e26
c58432e59858a0f33e86a9e68281ac343f0714cd
refs/heads/main
2023-06-08T18:17:21.228177
2021-06-29T15:38:51
2021-06-29T15:38:51
381,094,430
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Dict = { 'a':1, 'b':2, 'c':3 } for i,j in Dict.items(): print(i, ":", j)
UTF-8
Python
false
false
82
py
37
printItemsInDict.py
37
0.402439
0.365854
0
7
10
24
cavealix/Udacity
2,937,757,656,746
657ee35225a3c5806f77660621ff5ff92922f681
c47cb4fe48cdaf5702bc06a3f329a7c896e8bf4f
/FullStack/Backend_Intro/Elements of SQL/quizzes.py
f2321544fee8774ff3fdc1979a3009f1cd97ca72
[]
no_license
https://github.com/cavealix/Udacity
749103b2423bf10ccfc4ac3e1f9cae4e249b0976
20b96665e88e206f61f8e51aa316791eac5efd74
refs/heads/master
2020-02-26T16:04:45.730335
2017-01-10T06:08:23
2017-01-10T06:08:23
68,942,596
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Write a query that returns all the species in the zoo, and how many animals of # each species there are, sorted with the most populous species at the top. # # The result should have two columns: species and number. # # The animals table has columns (name, species, birthdate) for each individual. # QUERY = "select ...
UTF-8
Python
false
false
6,516
py
37
quizzes.py
18
0.642265
0.639349
0
197
32.076142
125
br8696/first
17,626,545,809,382
33e0374a1b5c906e1982d83231f5f6f7b8a47e8c
c9fd281ce06da24f8a912a553c40b9dba59f5736
/xlrd2.py
49b6d4b44d81478de171f79699ca899eec6030ef
[]
no_license
https://github.com/br8696/first
2b09bcb534edf8c55285394f249db7942ea90c5f
679be9a4db6f4acb663128c8586c91cb5253678b
refs/heads/master
2020-03-21T05:26:18.160670
2018-06-21T13:30:51
2018-06-21T13:30:51
138,160,432
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import xlrd for i in range(0,3,1): for j in range(0,1,1): s=xlrd.open_workbook("student.xlsx","r") sh=s.sheet_by_index(0) print sh.cell(i,j), sh.cell(i,j+1), sh.cell(i,j+2),"\n" """for display all names we have to use loop to display all] to print onlyname we use print cell.valu...
UTF-8
Python
false
false
334
py
5
xlrd2.py
5
0.580838
0.553892
0
12
25.333333
63
karadenizli-koefte/Repos
5,746,666,245,431
08a7c5d36a3218dfd902b4893e2bd2572def489f
456c19ad6051e86a418968a90400eaafd0aea6e8
/Image_Processing/Image Processing/CannyEdgeDetection2.py
5b2fa2c38210ae0579ab1521b5d2986dbc381901
[]
no_license
https://github.com/karadenizli-koefte/Repos
c8c31ece7a074fa16c8fc42cc2f1614ac11f1cfe
9b136a140165258d080540b225800d3fdb6767a7
refs/heads/main
2023-08-15T06:24:34.555752
2021-09-18T18:14:09
2021-09-18T18:14:09
358,521,074
0
0
null
false
2021-06-22T08:12:52
2021-04-16T07:57:40
2021-06-21T08:09:59
2021-06-22T08:12:52
22,888
0
0
0
C#
false
false
import cv2 import numpy as np from matplotlib import pyplot as plt imgPath = 'D:/img/lena_full.jpg' # Load two images img = cv2.imread(imgPath) img = cv2.resize(img, (int(img.shape[1] / 2), int(img.shape[0] / 2))) def nothing(x): pass # Create a black image, a window cv2.namedWindow('image') cv2.namedWindow("...
UTF-8
Python
false
false
818
py
68
CannyEdgeDetection2.py
27
0.674817
0.627139
0
37
21.081081
69
huster-wgm/web_simu
12,214,887,025,740
b90669b682a7d262b68d03a8927153b993e223e6
1ac2a5b527850cd78f7e7b49e7528103134d0145
/portfolios/bio_calc.py
4cdc184f2561253c1bc2f615736c5c59973a373f
[]
no_license
https://github.com/huster-wgm/web_simu
eaea90121a1117d9cf5c1f0b4ec9618719f0f53a
e6310f8a7e17cb48fdeec634db0f807c4259c5fc
refs/heads/master
2020-09-16T15:04:09.367377
2017-06-27T06:11:35
2017-06-27T06:11:35
66,014,637
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 13 22:25:05 2016 @author: huster-wgm """ import numpy as np import pandas as pd from math import pi from bokeh.plotting import figure from bokeh.models import NumeralTickFormatter, HoverTool, ColumnDataSource from bokeh.embed import components d...
UTF-8
Python
false
false
15,892
py
21
bio_calc.py
11
0.510796
0.49084
0
434
35.601382
120
Pyton-Projects/My-All-Tkinter-Projects
9,929,964,438,675
bde8be562b884d079f1e01ab79e59f2a088a10ec
a2bf461dad0bd0139a408b6f22c56db1d78a01fa
/Music Player/main.py
2a93a6272f285dffe88e8df8ccbae3a37a4d4936
[]
no_license
https://github.com/Pyton-Projects/My-All-Tkinter-Projects
4f5f456d81f986b51efb0ced5d1c15fb26ead5e8
dd653589246713c48226abe772d4d819a6ff71e4
refs/heads/main
2023-05-08T22:31:14.329240
2022-02-04T13:17:27
2022-02-04T13:17:27
367,537,541
1
0
null
false
2021-05-15T04:24:59
2021-05-15T04:18:08
2021-05-15T04:21:10
2021-05-15T04:24:35
0
0
0
0
Python
false
false
from tkinter.ttk import* import shutil from tkinter import simpledialog from tkinter import dialog#plz import! from tkinter import PhotoImage,mainloop,Entry,StringVar,Button,HORIZONTAL,Scale,Listbox,ACTIVE,Menu,END,filedialog,Toplevel from ttkthemes import ThemedTk import os import pygame from tkinter import messagebox...
UTF-8
Python
false
false
18,360
py
19
main.py
18
0.684477
0.652996
0
610
29.096721
288
mooja/dailyprogrammer
9,216,999,857,249
005fcfdf7249bbff6abb1f53abeb8302be6bebba
b4dd760e79de0db39792b947bacfe2b27c2a89ee
/kata_fizzbuzz.py
f1afd8cc021452d494755bade5ec6800965dd695
[]
no_license
https://github.com/mooja/dailyprogrammer
c23f1a0c5d6e4269b6c03b47d8cc18f6d857a6e1
d12fcb6744ac3b4a5e651f37ea0b3f20ca062f7d
refs/heads/master
2021-01-16T23:47:28.955660
2018-04-09T18:03:50
2018-04-09T18:03:50
23,394,207
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # encoding: utf-8 import unittest def fizzbuzz(n): a, b, c = 0, 0, 0 for i in xrange(1, n): if i % 3 == 0 and i % 5 == 0: c += 1 elif i % 3 == 0: a += 1 elif i % 5 == 0: b += 1 return [a, b, c] class TestFizzBuzz(unitte...
UTF-8
Python
false
false
710
py
379
kata_fizzbuzz.py
369
0.511268
0.450704
0
37
18.189189
53
wcheung8/halite-3-DL-project
16,415,365,031,100
11adbceed48e5db345ecbed7715809af6909f628
b0d445c5d64a0e199e40de547d776d13017974e4
/MyBot.py
24dcc9d69ba4aa671cd1e255a5adafdd191e4c6c
[]
no_license
https://github.com/wcheung8/halite-3-DL-project
86613c14b5dd217733d6012454b5773f9cfcc6ca
6f4e05c47e83d3a216fa41e6bc4b32f47a950431
refs/heads/master
2020-04-09T01:09:24.095525
2018-12-08T21:57:57
2018-12-08T21:57:57
159,893,754
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import os import sys import warnings warnings.filterwarnings("ignore", category=UserWarning) from MLBot import * class NN_Bot(MLBot): def __init__(self): super().__init__(sys.argv[1]+".nn") if __name__ == '__main__': bot = NN_Bot() bot.run()
UTF-8
Python
false
false
290
py
6
MyBot.py
4
0.613793
0.606897
0
17
16.058824
55
17600117041/my_Django
11,330,123,746,261
73eeebc3fa73ca7ca24bdc434e3af1064e61df0f
021c21281665ef4ed6b18bb2c84d1c0f9429dec0
/adminweb/migrations/0001_initial.py
a054447bd43852e98a4121e657ec830acada7595
[]
no_license
https://github.com/17600117041/my_Django
f28dfcb959218bfaef4c89736107692a7007fedc
c2cd2e1c321157687b6f6dc3a87879a35e71c421
refs/heads/master
2021-06-24T07:01:08.072179
2017-09-13T09:33:37
2017-09-13T09:33:37
103,378,596
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-09-12 07:11 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
UTF-8
Python
false
false
2,177
py
5
0001_initial.py
5
0.519982
0.502986
0
62
34.112903
106
Dauphin-NWU/Leetcode-Practice
17,703,855,209,689
7aeb1ee8ea3b12e9b00d9d124f4fc3e1adee2fe1
d1ebc64bc9c817b1d7b2a55e7964e68c60c813cf
/301-400/371-380/py/375_guess_number_higher_or_lower_2.py
137fcaa3048584f8e5cb2014b1c0db0b9620c82f
[]
no_license
https://github.com/Dauphin-NWU/Leetcode-Practice
d213a844cd4be9c736fbc5cb93822c087f1f96bc
614d8e7afc9761bded794d4c5df6800bcdb5f710
refs/heads/master
2017-04-26T17:22:34.770608
2017-04-21T18:01:37
2017-04-21T18:01:37
44,287,169
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def getMoneyAmount(self, n): """ :type n: int :rtype: int """ # start coding at 10:28 INF = 0x7fffffff; dp = [[INF for i in range(n+1)] for j in range(n+1)]; def gen(dp, left, right): if dp[left][right] != I...
UTF-8
Python
false
false
828
py
577
375_guess_number_higher_or_lower_2.py
576
0.440821
0.419082
0
25
32.16
105
UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018
5,214,090,299,848
7b4ace370871dc81adb62d38021bd608023f57bc
422dd5d3c48a608b093cbfa92085e95a105a5752
/students/srepking/lesson06/water-regulation/waterregulation/decider.py
df4eb7c25c2a8c9a7fe95323d3470444888faafc
[]
no_license
https://github.com/UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018
a2052fdecd187d7dd6dbe6f1387b4f7341623e93
b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1
refs/heads/master
2021-06-07T09:06:21.100330
2019-11-08T23:42:42
2019-11-08T23:42:42
130,731,872
4
70
null
false
2021-06-01T22:29:19
2018-04-23T17:24:22
2019-11-08T23:42:45
2021-06-01T22:29:16
43,341
3
65
8
Python
false
false
""" Encapsulates decision making in the water-regulation module """ import logging logging.basicConfig(level=logging.DEBUG) class Decider: """ Encapsulates decision making in the water-regulation module """ def __init__(self, target_height, margin): """ Create a new decider instance f...
UTF-8
Python
false
false
5,240
py
2,050
decider.py
1,627
0.60458
0.600573
0
124
41.258065
79
nEDM-TUM/Sis3302Datahandling
16,707,422,801,341
c4790443d8063ea96d3cc23515beecfb9e89bb7a
a3406f9ac9fa840daffe9df3a0bbc8c643d692bd
/sis3302Datahandling.py
7c1a5271ca1194d2a3d0db7659802d4e7112a87d
[]
no_license
https://github.com/nEDM-TUM/Sis3302Datahandling
f0309371f6fbb30aad093e6ee8b25b52865abaf3
3a764bd2b514d5b1ae48e4ac75b6fcd6b3a7986e
refs/heads/master
2021-01-13T01:40:57.996865
2014-04-16T15:27:53
2014-04-16T15:27:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 8 10:35:34 2012 @author: bernd """ import numpy import ROOT import os import sys import array import pathfinder from convert_sis3302_files import WFConvert ROOT.gSystem.Load(pathfinder.libPyOrcaROOT) ROOT.gSystem.Load(pathfinder.libWaveWaveBase) class orcadatamani...
UTF-8
Python
false
false
7,047
py
4
sis3302Datahandling.py
2
0.658294
0.648361
0
214
31.929907
95
lanister58/readme1
206,158,444,757
845f13c3b3fdecf7dc8324d62df17d02db37244c
fa527d9bfb076aa8ec3aa14ea924d7eab78b5562
/evenodd1.py
d78cce8fe4ee7f698ce142a222a00bb6c2d7700f
[]
no_license
https://github.com/lanister58/readme1
05ea1afc5751b2afd0a05c084e52d6c78f77076e
5ae16090618d5ac937f5e04ec44b9e8e44a87489
refs/heads/master
2020-12-06T15:09:23.782592
2020-01-25T11:53:21
2020-01-25T11:53:21
232,493,153
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
i=[1,2,3,4,5,10] for a in i: if a % 2 == 0: print(a, "is even") else: print(a,"is odd")
UTF-8
Python
false
false
117
py
5
evenodd1.py
2
0.401709
0.324786
0
8
13.75
27
TitechMeister/mikan
16,922,171,157,751
b5de46660dc3e0649bbf3f9a9896066e3a317f6c
7d7bbaea128d521c40d2d0890b025ca05c258547
/members/views.py
03d0d89be8d9d87d7b00daf318ea9f190d4c2048
[]
no_license
https://github.com/TitechMeister/mikan
43c27a267cc24c5c26464454de5443f6a7e8c567
f51878b0fc18ab74b37c8a045e1a0d7c6877dcfb
refs/heads/develop
2022-12-12T19:23:31.168911
2021-10-28T14:38:26
2021-10-28T14:38:26
123,887,409
0
0
null
false
2022-12-08T03:15:00
2018-03-05T08:19:26
2021-10-28T14:45:14
2022-12-08T03:14:59
202
0
0
6
Python
false
false
from rest_framework import viewsets, permissions from members.models import Member, Team from members.serializers import MemberSerializer, TeamSerializer class MemberViewSet(viewsets.ReadOnlyModelViewSet): """ This viewset automatically provides `list`, `create`, `retrieve`, `update` and `destroy` actions...
UTF-8
Python
false
false
701
py
45
views.py
42
0.728959
0.728959
0
22
30.863636
69
MichaelMikeJones/HackerRank_Challenges
936,302,893,304
7f3310b8f9d1f2ee744c26e5511848c3ea35801a
09c2f19d50b53a9b742e97cb3d1b131d4c6feb8e
/Python/16-Numpy/Mean_Var_and_Std.py
e5a80ddf2dbbbeec1b3e529e4d9b3002b187cfdd
[]
no_license
https://github.com/MichaelMikeJones/HackerRank_Challenges
d5a2a90cd6f71065312ce69eca7e4ee1845ea95a
9e651aab4a9d2e5a646c7ecbf051435f58e6dbb0
refs/heads/master
2022-01-26T23:33:51.441722
2019-06-30T19:31:55
2019-06-30T19:31:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy numpy.set_printoptions(legacy='1.13') n, m = map(int, input(). split()) A = [list(map(int, input().split())) for _ in range(n)] print(numpy.mean(A, axis=1)) print(numpy.var(A, axis=0)) print(numpy.std(A, axis=None))
UTF-8
Python
false
false
233
py
71
Mean_Var_and_Std.py
68
0.648069
0.626609
0
11
20.181818
55
tomsiadev/spinup-vpg
1,786,706,406,206
7368499f16701c8fb69afe44426a6be691eff585
d8b59251d526e5ff3d9c9c31fdc8e5d2f39c2ec8
/train.py
315d4d2c4dd90d1b9e3798bfa22c09819e4b8bed
[]
no_license
https://github.com/tomsiadev/spinup-vpg
25c35736efa54cfb2fe8c8c2e5ba36616a86a83b
19b0f7dadf65563d24fe3426a61ccd8aadaa99b1
refs/heads/master
2023-06-13T02:01:33.592271
2021-07-07T11:10:27
2021-07-07T11:10:27
383,769,868
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import gym import torch.cuda from torch.optim import Adam from models import * from vpg import * def train(): env_name = 'CartPole-v1' epochs = 2000 max_ep_length = 2000 save_freq = 200 value_updates_per_trajectory = 80 actor_hidden_sizes = [64, 64] value_hidden_sizes = [64, 64] a...
UTF-8
Python
false
false
1,299
py
4
train.py
4
0.605851
0.574288
0
50
24.98
90
mabelzhang/sandbox
1,013,612,282,953
81afa74e6ecdd9628bb96a690267f15868af8328
d5647d7196a6c215914c3b0e64ac0f6b55e00023
/catkin_ws/src/grasp_collection/src/grasp_collection/config_consts.py
fbf27c2f6a0ec4eff80d23e14eb6110012b885ee
[]
no_license
https://github.com/mabelzhang/sandbox
2862073bd776a62d6b508302770d347effbff4d4
6c501b57ec39bd84daec913a1683d5f53cf43f9b
refs/heads/master
2021-07-17T23:27:25.483704
2020-05-04T05:08:48
2020-05-04T05:08:48
146,808,872
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # Mabel Zhang # 1 Oct 2018 # # Constants for GraspIt grasp planning. # # GraspIt world files in GraspIt installation path worlds/ to load # Use this instead of YAML in depth_scene_rendering, `.` grasps don't need to # be re-generated all the time! Only need to generate once! Grasps are the # ...
UTF-8
Python
false
false
1,829
py
103
config_consts.py
57
0.722253
0.711318
0
57
31.052632
79
Zrealshadow/Matrixslow
6,897,717,491,972
6e71a3d570a66ba8a4ea7a033e20b83eb419c3fd
207bcb19c0bd0392c707873909e4daaded4ff732
/demo/logistic.py
6e409789cdf97200286ff34f573140ab8a2ef4d2
[]
no_license
https://github.com/Zrealshadow/Matrixslow
c09c7de3df329836eb8374c83e216e48c5820e91
19d62cd640f0c6b52630981b65c748855ac45cb2
refs/heads/main
2023-03-18T07:41:24.490703
2021-03-07T14:30:50
2021-03-07T14:30:50
341,768,433
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' * @author Waldinsamkeit * @email Zenglz_pro@163.com * @create date 2021-02-25 15:01:47 * @desc ''' import matrixslow as ms from matrixslow.core import Variable import numpy as np import matrixslow.optimizer as optim male_heights = np.random.normal(171, 6, 500) female_heights = np.random.normal(158, 5, 500) ...
UTF-8
Python
false
false
2,122
py
15
logistic.py
15
0.618756
0.570217
0
88
23.102273
69
CarlLOL01/Python_Coding
11,751,030,546,878
e18a9ae520c88ced67a758523e7f95042197c20d
0c84154dac47431b8e58b52cae40002b11ebadc3
/Spider/01_requests/07.cookie_session_3.py
572b0ec8d6bbb1366fc665348a93c16a2fde1690
[]
no_license
https://github.com/CarlLOL01/Python_Coding
61671ed6f4361a2377f3f67a542ec05e2d3ea7f4
cb6a1194e65fad30b1fde5713bc1fd8e51a21f77
refs/heads/master
2022-05-11T18:56:43.515378
2019-03-25T04:29:49
2019-03-25T04:29:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests def main(): # session = requests.session() post_url = "http://www.renren.com/PLogin.do" post_headers = { "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1" } cookie_str = "ano...
UTF-8
Python
false
false
1,486
py
209
07.cookie_session_3.py
185
0.697174
0.527591
0
25
58.44
628
daniel-lozano/Machine-Learning
18,150,531,821,075
7c191e2c53057055ba7c792dff648d2e6bc5a578
067f7fc1f4380d61bbc07c6e8bca12229fedf78b
/Classifying/CPP/XY_model/kpca_xy.py
d8705fbe5f03a27179da1fe314330ace429e2da3
[]
no_license
https://github.com/daniel-lozano/Machine-Learning
e07c5a8a13a3adac5e992280c67eb8966dc9f9bc
c403212045602e3a2e313807a2ee5c62e666881d
refs/heads/master
2020-05-02T01:51:48.579628
2020-04-29T19:50:52
2020-04-29T19:50:52
177,693,311
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D number=input("Enter the number of configurations=") file_name_configs_mattis="spin_configurations_mattis_L"+number+".bin" file_name_labels_mattis="spin_labels_mattis_L"+number+".bin" file_name_temps_mattis="spin_T_mattis_L"+nu...
UTF-8
Python
false
false
4,326
py
42
kpca_xy.py
33
0.612344
0.582524
0
140
29.892857
93
Pabloc98/Regresion_Predictiva
12,171,937,335,131
c4a54639645db322b7fe42e7e8e0a12b8bc3f9ca
196d70bc1da67be81805f8f302b0a8af5a01b0e9
/Process/Models/utils.py
c5a0a4a8d726855b10c0f1134d9be90e096d8bb4
[]
no_license
https://github.com/Pabloc98/Regresion_Predictiva
7894e5f798281d20ee53264f6a91449c89b688de
b4ff9dabee86e375fc817e6d707e11bf612a5db9
refs/heads/main
2023-05-04T21:30:59.335242
2021-05-26T01:17:54
2021-05-26T01:17:54
370,846,444
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sklearn.model_selection import GroupKFold from sklearn.model_selection import KFold from sklearn.model_selection import RepeatedStratifiedKFold from sklearn.model_selection import ShuffleSplit seed = 0 def split(tipo="KFold", n_splits=5 ,random_state=seed, n_repeats=10 ,shuffle=True, test_size=None, train_size=No...
UTF-8
Python
false
false
1,906
py
27
utils.py
21
0.749342
0.747235
0
39
47.666667
180
janiszewskibartlomiej/Python_Code_Me_Gda
5,832,565,617,375
6ad04c84c93960a898cd14d144510b46a5cc88bc
f8ffa8ff257266df3de9d20d95b291e393f88434
/Python from scratch/Warsztaty/Warsztaty01/info o mnie na Linked/linkedinWer3.py
fb6d1bae10d910d0af76c6872414c08a9b1418d4
[]
no_license
https://github.com/janiszewskibartlomiej/Python_Code_Me_Gda
c0583c068ef08b6130398ddf93c3a3d1a843b487
7568de2a9acf80bab1429bb55bafd89daad9b729
refs/heads/master
2020-03-30T05:06:26.757033
2020-03-02T08:53:28
2020-03-02T08:53:28
150,781,356
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
obecnie = {'Python': 'SQL', 'w szkole CODE:ME': 'in infoShare Academy'} staz = 'FNX Group' k = 'Tester oprogramowania' c = 'ISTQB FL' while True: dzien = input('Wpisz dzień: ') miesiac = input('Wpisz miesiąc: ') rok = input('Wpisz rok: ') try: liczba_z_dzien = int(dzien) liczba_z_miesia...
UTF-8
Python
false
false
2,411
py
435
linkedinWer3.py
349
0.626904
0.616751
0
56
41.214286
99
cagdas9696/casestudy
6,210,522,742,981
44c90084320816fbbe23a1a5f158a7825b31c541
57e4f917a2b0006fa821ad35c632386aec53f19b
/label_control.py
8dd50cb5e3f9a2ff97e9cd1e5875571eaf8f7b17
[]
no_license
https://github.com/cagdas9696/casestudy
464d7167d20081c534a64fa79eb44520dd9033f4
7475e99916431ca485736dd2643e273e35ad9f7d
refs/heads/master
2023-02-02T11:07:04.354044
2020-12-23T17:46:51
2020-12-23T17:46:51
323,644,301
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: can """ import os import cv2 import argparse FLAGS = None if __name__ == '__main__': parser = argparse.ArgumentParser(argument_default=argparse.SUPPRESS) parser.add_argument('folder', type=str, default='', help='path to folder that contains images ...
UTF-8
Python
false
false
2,447
py
4,413
label_control.py
14
0.515325
0.491622
0
72
32.986111
136
chenkuo0716/Text-similarity-detection-system
11,295,764,006,292
560ba8277e64c3ddadf30ffb9d2f82606889c459
ec014345f5ef6191bb349352aef1701e2ed40abd
/english.py
e3f9793191a06d7fa8ab124f2ce776313a15f48a
[]
no_license
https://github.com/chenkuo0716/Text-similarity-detection-system
9d6aa067078cea174250ed140c4e13b8e5d1fded
45bfd79ef1b6f9a40c6b35faf362637d3d9b0f61
refs/heads/master
2021-01-14T18:24:28.452569
2020-02-24T13:46:18
2020-02-24T13:46:18
242,711,032
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import logging from collections import defaultdict from gensim import models, similarities, corpora def English(documents): # Log logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) # Reference text file processing tex...
UTF-8
Python
false
false
1,930
py
3
english.py
3
0.676166
0.666321
0
68
27.382353
95
pythias/sublime-insertdatestring
8,907,762,202,849
608d1305206070284d16e73e149d601d4ec212af
24e9cce550e0feb2e831bc44ac173b6514d7ff54
/tests/test_plugin_load.py
447407e63285899706bf773f67f21b67b18f0351
[ "MIT" ]
permissive
https://github.com/pythias/sublime-insertdatestring
a633b6c00407fb19db3c3802963a0974dae8bd11
8aae9be80ed351fe10f6ff0994a6f5f6c0aa232f
refs/heads/master
2021-05-27T12:02:56.063134
2020-04-09T05:12:40
2020-04-09T05:12:40
254,266,893
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import sublime from unittesting import DeferrableTestCase class TestPluginLoad(DeferrableTestCase): def setUp(self): self.view = sublime.active_window().new_file() self.settings = sublime.load_settings('InsertDateString.sublime-settings') def tearDown(self): if self.view: ...
UTF-8
Python
false
false
714
py
8
test_plugin_load.py
2
0.666667
0.654062
0
21
33
82
Jeroen-Weber/HetGroteTMspel
18,820,546,722,415
993f9e0c76273da98b3a3d447ca2e6f562775929
17edbd22036f67dbce7e6b65ba230be80925617f
/Hoofdprogamma.py
9ce914f84b00987fdb6c6697fdc7ad27b90eb33b
[]
no_license
https://github.com/Jeroen-Weber/HetGroteTMspel
18afa6551ab92bb319c8e83712ecc1764d7511aa
eda483050d1d2a9d37cf671062904e08ffc7054c
refs/heads/master
2020-09-26T14:55:43.451877
2020-03-09T14:22:42
2020-03-09T14:22:42
226,277,976
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
###################### # HET GROTE KUT SPEL # # Copy Jeroen Weber # ###################### # Project op Github te vinden op: https://github.com/Jeroen-Weber/HetGroteTMspel # -*- coding: utf-8 -*- # een aantal imports om bepaalde functie's en variabele te laten werken import webbrowser import time from colo...
UTF-8
Python
false
false
13,338
py
5
Hoofdprogamma.py
2
0.589012
0.582933
0
325
38.996923
173
subhash-pujari/PubSearchApp
249,108,124,834
b35b82de2102ffbe7ac1335f97f01f71f828b44a
84f594088af97a757f81bf749fbdad088e5c1bdf
/dataAnalysis/commTopCit.py
26e5c79f5687ab939110fcb7fe65a70b6fd5042d
[]
no_license
https://github.com/subhash-pujari/PubSearchApp
255ac269e5ed1062155604f6be039903dcef35c0
84c1856863d3aca9703eaac297d45be47402bfba
refs/heads/master
2020-05-18T10:54:20.882481
2014-05-27T15:30:15
2014-05-27T15:30:15
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' This script is to get the top citation publication in a community. ''' import database from operator import itemgetter dataDir = "../../PubDataSet/" commFile = "nodeComm.tsv" def main(): db = database.DatabaseHandler() # create a dict of comm with pub and cit count print "hello" commDict = dict() fi...
UTF-8
Python
false
false
1,048
py
10
commTopCit.py
9
0.626908
0.616412
0
54
18.407407
67
sumedhbala/catalog
4,131,758,568,113
831eafb1e86d0cdd8fe794f4aeb2652dc4618a14
b8545dfa0cbf29a0174ab9deb5677c78bf9ae0bd
/app/models/models.py
5c9ccca2301e163f64eb3a1645a3d1410e1b0343
[ "MIT" ]
permissive
https://github.com/sumedhbala/catalog
e79b91b7454f5a7990ce47bf0f7ccbd6948901af
ab969ccf39ce343ba0172e92221f56c18478f743
refs/heads/master
2020-03-28T16:16:16.859689
2018-12-05T09:21:33
2018-12-05T09:21:33
148,676,359
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from app import db, login from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin class Catalog(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80), unique=True) def __init__(self, name): self.name = name cla...
UTF-8
Python
false
false
1,624
py
14
models.py
8
0.636084
0.62931
0
56
28
73
yarko/django
11,261,404,292,016
d62a415b06c24dbb4517bd74eda00de8469a3ef5
18953e688e5ad09880e10d03fcd95a09e423cae9
/tests/regressiontests/localflavor/mk/models.py
244f396b52a362f47f2125355a4f7268f4b9d926
[ "BSD-3-Clause" ]
permissive
https://github.com/yarko/django
64d5604ea1c2e6fdc0621310f9e22919a5abe9eb
90b6240c8753ece3e52cafc37e1088b0646b843f
refs/heads/djangocon2011-sec
2021-01-24T04:13:07.209945
2011-09-19T16:23:35
2011-09-19T16:23:35
2,358,407
3
1
NOASSERTION
true
2019-11-18T04:24:08
2011-09-09T22:05:56
2014-10-15T12:52:29
2011-09-19T16:23:45
40,851
5
0
1
Python
false
false
from django.db import models from django.contrib.localflavor.mk.models import ( MKIdentityCardNumberField, MKMunicipalityField, UMCNField) class MKPerson(models.Model): first_name = models.CharField(max_length = 20) last_name = models.CharField(max_length = 20) umcn = UMCNField() id_number = MKIden...
UTF-8
Python
false
false
505
py
74
models.py
54
0.732673
0.724752
0
14
35.071429
62
GamesDoneQuick/donation-tracker
11,081,015,638,207
42d0aeada0d61e56b4bc0f3843ee5c9da54e85ea
7cdcd244cb576f9bb689d6fef9c3428d67364274
/tracker/models/prize.py
6d5d2f471a31960171fabcf822bdb0bfdbf6c22e
[ "Apache-2.0" ]
permissive
https://github.com/GamesDoneQuick/donation-tracker
9728579531961eb556d7acd4564c6fe4deaffbff
4d231bae7d00ee990ca9086400d926da59b0598d
refs/heads/master
2023-08-31T21:37:41.015548
2023-08-22T22:03:47
2023-08-22T22:03:47
44,652,980
48
39
Apache-2.0
false
2023-09-11T14:10:57
2015-10-21T04:38:00
2023-09-09T23:14:01
2023-09-11T14:10:57
7,439
44
32
15
Python
false
false
import datetime from decimal import Decimal import pytz from django.contrib.auth.models import User from django.contrib.sites import shortcuts as sites from django.core.exceptions import ImproperlyConfigured, ValidationError from django.db import models from django.db.models import Q, Sum from django.db.models.signals...
UTF-8
Python
false
false
30,566
py
541
prize.py
278
0.593404
0.589446
0
881
33.694665
154
neequole/docvite
9,414,568,346,198
9e06590255299cf986a20664fc9049651625d71b
bebc333c753f2f50e527f3f3b90c319e09d7c59f
/backoffice/tests/test_client.py
9021481e45767acc1a4a47dec7dc2f5ffed8fd80
[]
no_license
https://github.com/neequole/docvite
ba11148edd5454553860d3deaae0d80f4e521576
9a84f062893fe506e9904ded2d9881acea0c7faf
refs/heads/master
2021-09-01T20:10:39.250879
2017-12-07T09:17:44
2017-12-07T09:17:44
113,398,269
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import status from rest_framework.test import APITestCase from backoffice.models import Client, Doctor, Invitation from .decorators import needs_doctor_login, needs_client_login class ClientTests(APITestCase): API_URL = '/api/clients' DOCTOR_ACCOUNT = {'username': 'foo', 'password': 'foo...
UTF-8
Python
false
false
2,557
py
15
test_client.py
13
0.658193
0.652327
0
60
41.616667
78
bootchk/GimpFu-v3
1,717,986,951,020
3c564b25c3398a86e5998999386dadeb9d0e21c7
0c26cde921259189fa38a28092054f931f62ffc1
/gimpfu/adaption/adapted_property.py
882d6bc37b62b5828b17588ac3e9708a6a895f00
[]
no_license
https://github.com/bootchk/GimpFu-v3
e3f570588c411c55bf171f13f19677d9af7d39ef
7e6e08a2acb34fe2dce6631f9f255dae5ab34a6b
refs/heads/master
2022-08-10T08:24:58.858898
2022-07-27T19:42:24
2022-07-27T19:42:24
231,368,472
21
3
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging class AdaptedProperty(): ''' Understands how to dynamically adapt properties. Properties on Adaptee must be called using call syntax (with parens) e.g. "foo = adaptee.get_property()" or "property()" In the statement dynamically generated by this class. Properties on AdaptedA...
UTF-8
Python
false
false
6,716
py
113
adapted_property.py
83
0.675253
0.675253
0
168
38.964286
121
ibkalokoh/cbc_adas
4,234,837,771,965
b4c6ad4df62fa827b3ccdd015150165410a74a44
3a733c3cb60ef69f2c7ccf342a51e6e38ce4d535
/code/human_driver_model/evaluation/storm/mini.py
45a997bd19f2c8a3e2a9d5f4b0605dda0e41cb14
[]
no_license
https://github.com/ibkalokoh/cbc_adas
6e00716b85034424077ce51d23297fb8bb6dcd92
83b661b39fbc8a5babe0571bc4828086e25056ed
refs/heads/master
2020-09-12T17:02:40.316327
2018-10-09T19:04:03
2018-10-09T19:04:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os, random f = open('test_cases.csv', 'w') f.write("d_type,v,v1,x1_0\n") N = 10 for i in range(0,N): while True: d_type = random.randint(1,3) v = random.randint(15,34) v1 = random.randint(15,34) x1_0 = random.randint(30,85) if v >= v1: break f.write("%d,%d,%d,%d\n"%(d_type,v,v1,x1_0)) f.clos...
UTF-8
Python
false
false
323
py
556
mini.py
13
0.588235
0.504644
0
20
15.2
44
simonsobs/acondbs
10,840,497,482,020
013910e7d6203cf32bdc818dbee32010bbd283d1
caa175a933aca08a475c6277e22cdde1654aca7b
/tests/schema/product/gql/queries/query_all_product_types.py
b5da1173ab9f8889fbc160c6abfe39551e4de117
[ "MIT" ]
permissive
https://github.com/simonsobs/acondbs
01d68ae40866461b85a6c9fcabdfbea46ef5f920
d18c7b06474b0dacb1dcf1c6dbd1e743407645e2
refs/heads/main
2023-07-07T04:33:40.561273
2023-06-28T22:08:00
2023-06-28T22:08:00
239,022,783
0
1
MIT
false
2023-06-26T20:36:39
2020-02-07T21:07:46
2023-06-22T15:38:54
2023-06-26T20:36:02
1,478
0
1
13
Python
false
false
from ..fragments import FRAGMENT_PRODUCT_TYPE_CONNECTION QUERY_ALL_PRODUCT_TYPES = ( """ query AllProductTypes($sort: [ProductTypeSortEnum] = [ORDER_ASC]) { allProductTypes(sort: $sort) { ...fragmentProductTypeConnection } } """ + FRAGMENT_PRODUCT_TYPE_CONNECTION )
UTF-8
Python
false
false
283
py
338
query_all_product_types.py
316
0.706714
0.706714
0
12
22.583333
67
denyami/StPython
16,836,271,824,744
31a1e1786aee74a077435823679ce739b810453a
e115e7f508dcb1df8cc77de64f39a4551900e914
/Matplotlib/sample2.py
71124eef6c23584e9d257dcdc52e0a1926ace26d
[]
no_license
https://github.com/denyami/StPython
cd4e935843d5d6a778942ef88702f4c41e07f11e
47b834fa7ee98de395b75c760247b7e050681eba
refs/heads/master
2022-06-20T03:24:42.953990
2019-07-19T04:34:59
2019-07-19T04:34:59
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 x = [1,2,3,4] y = [5,6,7,8] plt.plot(x,y, 'o-', label = "my data") plt.xlabel('X') plt.ylabel('Y') plt.legend(loc = 'best') plt.show()
UTF-8
Python
false
false
187
py
10
sample2.py
10
0.620321
0.57754
0
10
17.7
38
xdreamseeker/Asystem
9,577,777,093,796
df02910c6838e4f5e0361bf23e44e8437b1dac2a
5a5280a532111fafcc79b36fa6e75db0e81b8d5a
/Wroker.py
5c2b65f4b73fb94a97e9f9cf93fea348dbb0bc8d
[]
no_license
https://github.com/xdreamseeker/Asystem
d99842c44f429594717fac07cea19608b98b261d
b7e7b0583e6ba5df41892118d3932ec5ef7ee52d
refs/heads/master
2019-04-20T17:23:42.690423
2017-08-24T09:14:04
2017-08-24T09:14:04
93,318,058
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import multiprocessing import time import socket class Worker(multiprocessing.Process): def __init__(self): multiprocessing.Process.__init__(self) def run(self): host=('127.0.0.1',8888) sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) try: sock.bind(host) ...
UTF-8
Python
false
false
599
py
15
Wroker.py
8
0.539232
0.517529
0
31
18.354839
63
ki4070ma/leetcode
13,984,413,550,978
bac40e2e0f9a5fc8dbcad7405b238dc868c40242
1626839892713a4ff453b46ae55d51c224d9e866
/atcoder/20191005_AGC/1_A_ConnectionAndDisconnection.py
e317a1e446d50a8b8d1b4008eacf70cfa5ecf894
[]
no_license
https://github.com/ki4070ma/leetcode
c317ce72b62cd44420ee1abe629386f048582266
2e9db241cb32d746bb0061d5d1e7c9d170101daf
refs/heads/master
2021-06-13T17:06:41.033873
2021-03-21T14:14:20
2021-03-21T14:14:20
161,972,630
1
0
null
false
2019-11-11T08:42:01
2018-12-16T05:59:50
2019-10-06T10:48:11
2019-11-11T08:42:00
67
1
0
0
Python
false
false
#!/usr/bin/python3 from sys import stdin for _ in range(13): S = stdin.readline().rstrip() K = int(stdin.readline().rstrip()) pre_str = "" count = 1 base_count = 0 for a in list(S): if pre_str == a: count += 1 else: base_count += int(count / 2) ...
UTF-8
Python
false
false
1,102
py
199
1_A_ConnectionAndDisconnection.py
136
0.42922
0.403811
0
50
21.04
74
Kohodeus/lol-account-checker
18,760,417,171,730
c2f086a5425a91406f9daf09ed6c07f0449a6807
2a908be0e7c801898d1d8d164f475bd7174843c6
/lolchecker.py
3017e27e5a8fbb99feb8fbe85e288543830b7ddd
[]
no_license
https://github.com/Kohodeus/lol-account-checker
746b9b2089da15e770824f7e6d26170d8c487919
05943e860162b62d3ebd49296d90e67a5cfe4210
refs/heads/main
2023-07-10T18:24:36.115849
2021-08-26T19:45:58
2021-08-26T19:45:58
414,004,502
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime import requests, concurrent.futures, re, time ''' Paste you accounts below separated by commas ''' ACCOUNTS = "user:pass, user1:pass1,user2:pass2" class AccountChecker: AUTH_URL = "https://auth.riotgames.com/api/v1/authorization" INFO_URL = "https://auth.riotgames.com...
UTF-8
Python
false
false
10,295
py
2
lolchecker.py
1
0.55085
0.54473
0
252
38.853175
448
juhanikataja/SAPPORO-web
13,348,758,386,035
12d2cdb28389706e03191b104f00ba870a5e4bfd
d39b5fe0d87f28a28d14b8004a3f3a40cd7ccab7
/src/app/lib/mixin.py
5f7d2f904ccb83260784ca6beee7757f4b9bafc7
[ "Apache-2.0" ]
permissive
https://github.com/juhanikataja/SAPPORO-web
4bfb7d9ea720e18f2bc4d8fdb00234438ed32621
1b070a2338e36a25d8b7af3c12b6bafe86003dad
refs/heads/master
2020-09-13T03:47:09.029647
2019-11-18T23:51:29
2019-11-18T23:51:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.views import redirect_to_login from django.core.exceptions import PermissionDenied class MyLoginRequiredMixin(LoginRequiredMixin): raise_excrption = True permission_denied_message = "You do not have permission t...
UTF-8
Python
false
false
957
py
63
mixin.py
31
0.668757
0.667712
0
24
38.875
89
Zynoz/BachelorsThesis
14,388,140,470,361
d7da206b87d19359bc6017d142da0fbbb40caaae
36e3e6a12c71c738ed69da8a45b633a71faa4a3c
/src/Utility/__init__.py
1a961d4ed42fee362f8bd7b8f62f2d322a9d2550
[]
no_license
https://github.com/Zynoz/BachelorsThesis
2aa4006294a3b74068ce5e80356a00336e539d54
9b5289b947f1eab9b22f5129e8fc7c6f578408d2
refs/heads/master
2022-12-24T15:05:53.890638
2020-10-02T18:03:55
2020-10-02T18:03:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from src.Utility.Exceptions import * from src.Utility.Constants import * from src.Utility.Util import *
UTF-8
Python
false
false
105
py
20
__init__.py
17
0.790476
0.790476
0
3
33.666667
36
AdamsStWeb/Advent2020
11,802,570,149,230
a978141173ca0dc251a02c225c87b5c02361cc52
1aff385b10cd334384c92a8b28b9b9c7865d3bb1
/Day2/Day2.py
153719f95d43234432f22b453046c7412e4d0886
[]
no_license
https://github.com/AdamsStWeb/Advent2020
cac2f31737e40149ea92ca334e0ef61c71ab6db6
bbf91b018d13cb6bf17787fed98b374caf428cd0
refs/heads/main
2023-01-24T17:34:15.614741
2020-12-06T17:46:49
2020-12-06T17:46:49
317,702,613
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
with open("Day2Input.txt") as f: data = f.readlines() data = [x.strip() for x in data] #### Part 1 arr = [] for line in data: arr.append(line.split(' ')) valid_count = 0 for line in arr: pw_range = line[0].split('-') min_len = int(pw_range[0]) max_len = int(pw_range[1]) letter = line[1] ...
UTF-8
Python
false
false
983
py
7
Day2.py
7
0.54527
0.514751
0
47
19.93617
55
fankiat/598rl-fa20_fchan5
4,123,168,647,605
c83b620be3433fcbb2d68eba10e62dfa15e16d49
1fda9ceb5eaa5cd19e520127dcc0a577a9a5a47f
/hw1/hw1_fchan5/train.py
c2ab890a58b128058b14bbcfb669c398c94a8c8c
[]
no_license
https://github.com/fankiat/598rl-fa20_fchan5
786c17bf8629acb723113e5c29f1ccbc09874e6a
828d6cb4ec70fc995b30ef24aeb9f010a8d05ec4
refs/heads/main
2023-02-17T04:08:40.562642
2021-01-12T22:00:36
2021-01-12T22:00:36
328,705,859
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import numpy as np from learning_algorithms import policy_evaluation, policy_improvement from learning_algorithms import value_iteration from learning_algorithms import sarsa_td0, qlearning_td0, value_evaluation_td0 GAMMA = 0.95 def train_policy_iteration(env, save_dir, gamma=GAMMA, *args, **kwargs): # ...
UTF-8
Python
false
false
4,763
py
46
train.py
30
0.648541
0.637413
0
134
34.544776
111
neerraghuwanshi/interview-prep
19,464,791,809,250
7c8cf1f38492b622ed388177040db96629b2dd6f
f85b35dd09cb42c82200be6a68685a7b09bbbd80
/treeAndGraph/11.py
6553550e32e2cf1d4eb8bbb47e5a5234afcbbbf1
[]
no_license
https://github.com/neerraghuwanshi/interview-prep
ba6ffc9bc4bdf1c6bd8a89a0a7d0f19c04c5688e
c196d831de1bc8363a8585f4e8a6d76a737f1449
refs/heads/main
2023-04-29T19:56:43.713886
2021-05-12T14:42:05
2021-05-12T14:42:05
316,802,207
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Random Node: You are implementing a binary tree class from scratch which, in addition to insert, find, and delete, has a method getRandomNode() which returns a random node from the tree. All nodes should be equally likely to be chosen. Design and implement an algorithm for getRandomNode, and explain how you would imp...
UTF-8
Python
false
false
6,016
py
49
11.py
49
0.488364
0.486037
0
177
32.99435
351
sembly1985/Sembly_LIB
17,892,833,757,276
ec630e9e3638d48770038443a560dee5541ba079
de93d65c044ea5d27324c63658ca328c095ac4fe
/Software/Python/EmbeddedSystem/runTime.py
402947f2b3207ce55dc80b4dc0c0f111a3ea64c0
[]
no_license
https://github.com/sembly1985/Sembly_LIB
b99d326917bfc63619b7f686b9d867347cd05cf5
ac8e0a5d7ae7a92f1667e962a3890b653bffe6bf
refs/heads/master
2021-06-01T17:49:55.136022
2020-07-31T07:34:17
2020-07-31T07:34:17
94,499,009
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 06 14:54:14 2016 @author: WANGSP1 """ from datetime import datetime class runTime: startTime=datetime.now(); def __init__(self): self.startTime=datetime.now(); def DeltaMiniTime(self): curTime=datetime.now(); delta=curTime-self.startTi...
UTF-8
Python
false
false
391
py
23
runTime.py
10
0.649616
0.580563
0
16
23.5
67
chiluen/ManTraNet_2020
10,316,511,462,274
d0b6f6c13cce124802e69f9594fea3d89b059c4e
b6c3362907ed756f4b831b90ae14551b24f6133a
/removal.py
f0fb55237bd35d817017cc17f4cec0bf38d48961
[]
no_license
https://github.com/chiluen/ManTraNet_2020
3d1e142c468d65939a0f55139bac8c7fe7e4f37e
8183af6874c53ca0a8250c83b32ffa54d665de44
refs/heads/master
2022-12-02T09:45:14.387607
2020-08-14T06:46:32
2020-08-14T06:46:32
276,780,522
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import numpy as np import cv2 from PIL import Image import random from torchvision import transforms as T def translate(image, x, y): M = np.float32([[1, 0, x], [0, 1, y]]) shifted = cv2.warpAffine(image, M, (image.shape[1], image.shape[0])) return shifted def rotate(image, angle, center=None, ...
UTF-8
Python
false
false
3,849
py
57
removal.py
49
0.612039
0.5773
0
122
29.909836
100
wall-e-08/medigap-wagtail
7,765,300,912,793
a47d0743d7ce18ee7dfb9c5e8c2cb81d26c08c0c
bfa100593b7fc67ae65593bdddb357fa3d9e27cf
/quotes/forms.py
a4bc688ba983395813b3940fa3e374002e2f0380
[]
no_license
https://github.com/wall-e-08/medigap-wagtail
e2342631004de047a4b3d09571dd88f2a6fc2286
1d7b77759f071eec89e29591e814523d4c433655
refs/heads/master
2020-05-20T17:27:43.966094
2019-04-30T06:25:58
2019-04-30T06:25:58
185,688,386
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import string import datetime from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ from .models import Lead class LeadForm(forms.Form): APPLICANT_MAX_AGE = 64 APPLICANT_MIN_AGE = 2 first_name = forms.CharField(required=True,) # middle_name...
UTF-8
Python
false
false
2,287
py
77
forms.py
65
0.623087
0.620901
0
59
37.762712
127
danoctavian/fuckarounds
7,739,531,072,845
36aa1a85ee2c259937d2bf4de74321b2c15cd3ba
eb8608848fac8585754aea87f9efa8f683e33c25
/codeforces/A.py
456102ab269583da81a25cb0eec8dac46d20ceb6
[]
no_license
https://github.com/danoctavian/fuckarounds
5f9eabc0e58030e50940dca138ea429025d365eb
565a1d6131148f45604b155fb187ca1ac07a11b8
refs/heads/master
2020-04-16T07:19:32.416654
2014-02-06T03:09:40
2014-02-06T03:09:40
10,093,991
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
nums = raw_input() [a, b] = map(lambda x: int(x), nums.split()) h = 0 while a >= b: h = h + b a = a - b a += 1 h = h + a print h
UTF-8
Python
false
false
141
py
55
A.py
31
0.446809
0.432624
0
10
12.8
44
tojewel/MAMS-for-ABSA
5,342,939,359,251
ec81211e92fe24af003b5fff5ee3cda22c2f0129
efa42f7fe156db3a61e2d0c74a7daca7c2b0d6a0
/src/module/utils/constants.py
4b2cbfc91fe56da9262935a41cb1bc130eeecb47
[ "Apache-2.0" ]
permissive
https://github.com/tojewel/MAMS-for-ABSA
7b707736801d499ef797d5e240d7692d8b00e59f
d4e4dda751161f729ca9cce7cea2e58845e46f04
refs/heads/master
2022-11-14T01:19:29.897269
2020-07-08T09:09:23
2020-07-08T09:09:23
278,039,394
0
0
Apache-2.0
true
2020-07-08T08:54:21
2020-07-08T08:54:21
2020-07-01T01:09:08
2019-11-04T08:10:21
936
0
0
0
null
false
false
PAD = '<pad>' UNK = '<unk>' ASPECT = '<aspect>' PAD_INDEX = 0 UNK_INDEX = 1 ASPECT_INDEX = 2 INF = 1e9
UTF-8
Python
false
false
104
py
21
constants.py
19
0.576923
0.528846
0
9
10.666667
19
AshenHermit/get_off_this_board
4,123,168,615,296
aac5289f6caf0fed63e00af2a8d1d76d965a5dcf
42190f68d748c42b281e9765c03b870989dd958d
/launcher.py
bf6fe1a54a0261c607171094efb92770940f50db
[]
no_license
https://github.com/AshenHermit/get_off_this_board
46156f251a4b008299ea39ef261054cc5784906e
04658c0c0bbf44b26b8cecc9dde9ed010e1e0a22
refs/heads/master
2023-04-07T12:09:27.162697
2021-04-17T12:01:10
2021-04-17T12:01:10
352,336,813
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import os import argparse import requests import json import subprocess import ctypes from threading import Timer import math class Launcher(): def __init__(self, raw_files_root_url="", _debug=False): self.raw_files_root_url = raw_files_root_url self.DEBUG = _debug with open("l...
UTF-8
Python
false
false
3,054
py
16
launcher.py
10
0.582187
0.580223
0
108
27.287037
105
pablovillauy/pythonbasics
10,376,640,991,048
56f149010630a94d381d348fa45cf7cd753dc99e
2748f72fd485f3d569a19a2c30a2061545a1f54e
/dictionaries.py
220e2d238a4fbafd546a82ad143cbd9254dd8051
[]
no_license
https://github.com/pablovillauy/pythonbasics
ff3e956a8f1136650163439a43cb17e8585b6e2d
80b49b528d6697f91a2f93639419c3857e11ee27
refs/heads/master
2021-03-08T13:08:23.836774
2020-04-10T13:59:13
2020-04-10T13:59:13
246,347,525
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# key-value pairs cart = { "name":"book", "quantity":3, "price": 4.99 } person ={ "first_name":"ryan", "last_name":"ray" } print(dir(cart)) print(person.keys()) print(person.items()) # list of dictionaries products = [ {"name":"book", "price":10.99}, {"name":"laptop...
UTF-8
Python
false
false
339
py
17
dictionaries.py
15
0.522124
0.486726
0
23
12.826087
35
ozamanan/teHmm
14,963,666,082,419
5360408f4c45b4bf7b93a930c2ee98fedf7786b8
d8529efc2bfbd58531e4e0bca786b68370a215da
/bin/cleanRM.py
b1c3674abca35f4b0e37e77ab94fadecdb36754d
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
https://github.com/ozamanan/teHmm
c4ae4a89252623f75a66af661b8e0dadb5f82766
bb82e891b5c1562929c43845f4f467f24ff21e29
refs/heads/master
2020-09-11T19:45:44.040920
2015-05-21T21:41:30
2015-05-21T21:41:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python #Copyright (C) 2013 by Glenn Hickey # #Released under the MIT license, see LICENSE.txt import sys import os import argparse import re from pybedtools import BedTool, Interval from teHmm.common import myLog, EPSILON, initBedTool, cleanBedTool from teHmm.common import runShellCommand, getLocalTemp...
UTF-8
Python
false
false
4,982
py
149
cleanRM.py
78
0.5833
0.58049
0
121
40.173554
80
wewendeng/webdriver_guid
7,851,200,231,499
a9756a3b956e4079d1c4da74f2601d528735b3a1
7d7bc02851bd5a3a99652c2bcd82e4549be67736
/03maximize_browser.py
17f23796f52656c56559b5fe5b7d7065d952aa37
[]
no_license
https://github.com/wewendeng/webdriver_guid
2f840e7933fd4f3444c71de53dec0c0dd58f31e0
985377bc697e92ac7eb3e5cc24af195ac3be5fbf
refs/heads/master
2020-06-12T17:51:53.375338
2019-06-29T07:43:48
2019-06-29T07:43:48
194,378,489
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from selenium import webdriver import time driver = webdriver.Chrome() time.sleep(2) print("maximize browser") driver.maximize_window() time.sleep(2) print("close browser") driver.quit()
UTF-8
Python
false
false
191
py
34
03maximize_browser.py
34
0.759162
0.748691
0
13
13.692308
30
Marrrcy/uap
10,780,367,935,115
5abd0d975d80357f0ec85f7fa0dc4d26e74cf169
283ee2715d095e2a832104a5613a1dbb4e3d7f57
/MetodeBayar.py
630377953cfa751f141b3cd844b1217d4304b23a
[]
no_license
https://github.com/Marrrcy/uap
9a957a4a2d5039f5e96881d53d19b9d104e3a889
8e189f2e23dbb05af54119c08fe91ff01916d190
refs/heads/master
2020-08-28T08:43:32.642701
2020-04-29T04:46:05
2020-04-29T04:46:05
217,652,441
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import Review import os #Tambahan baru: import time import random # cek pembayaran def CekBayar(ListReview,GameName): codes = ["XXYY12", "BQQPR1", "MMR20K", "MMR900", "MMR1DI", "MMRR69", "69A420"] while True: print("\n>>>Misalkan user mendapatkan email yang berisi kode pembayarann...
UTF-8
Python
false
false
9,044
py
8
MetodeBayar.py
6
0.656457
0.609907
0
135
65.007407
311
janikgar/protonmail-cli
5,815,385,733,543
bc812126607469aa0cf7df2c76e5069f88d530b3
468bcafa4a6e173a6d52c1ccf671b3c96d2dcefe
/protonmail-cli.py
8334a8f4e2b76a5339c8566e16946f872193efd1
[]
no_license
https://github.com/janikgar/protonmail-cli
e8b1adfa013afb99990ea08fc6a532e81a9a567b
f5bf9e84e9c9659707415bd56456ccea5a08795b
refs/heads/master
2020-03-28T02:11:59.417297
2018-09-05T00:04:10
2018-09-05T00:04:10
147,554,421
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os, datetime, time, hashlib, sys import settings from bs4 import BeautifulSoup as bs4 from pyvirtualdisplay.display import Display from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.keys import Keys def tail(filename, n): """Keep last...
UTF-8
Python
false
false
6,349
py
3
protonmail-cli.py
2
0.579461
0.575524
0
229
26.724891
86
dsc-upt/opportunity-backend
10,771,777,994,080
5947221c2a1448d20783b08138c3ca3d22a3c34d
810e01b2d7f45e69cf34c7eca3d845ab1c1092a3
/src/createsuperuser.py
dc2ddb9910866f132ececd4ff0587b7da123e530
[ "Apache-2.0" ]
permissive
https://github.com/dsc-upt/opportunity-backend
5fcf101196eb10a4013ee95e48b6bce51cbb0341
571bee2d8ba4bd43d0ca8c46cad346d055745108
refs/heads/main
2023-08-02T15:54:15.311824
2021-10-06T05:33:14
2021-10-06T05:33:14
318,819,417
5
2
Apache-2.0
false
2021-01-29T23:07:11
2020-12-05T15:16:44
2021-01-29T16:25:04
2021-01-29T23:07:10
760
1
1
6
Python
false
false
from django.contrib.auth import get_user_model from django.db.utils import IntegrityError username = 'admin' email = 'admin@example.com' password = 'admin' try: get_user_model().objects.create_superuser(username, email, password) except IntegrityError: print("User '%s <%s>' already exists" % (username, email)...
UTF-8
Python
false
false
418
py
42
createsuperuser.py
31
0.712919
0.712919
0
13
31.153846
89
rfsip/learnpython
19,705,309,955,618
d770dae2364d0f0a7acc73025f435ae720dde4d3
76df8b5fbbafaafeba585db013f29fb05427df44
/STRING.py
7cbf02f0f88a4c43007e21240d9156fd0c487594
[]
no_license
https://github.com/rfsip/learnpython
f911750719e8314d4440380890b023c5e04bee9b
ffecdb2ca1d169741948b9eeab6a38ecbfaa3687
refs/heads/master
2021-01-20T12:22:59.619955
2017-06-02T12:51:26
2017-06-02T12:51:26
90,357,486
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf-8 ''' UTF-8:可变长编码 在计算机内存中,统一使用unicode编码,保存到硬盘或传输时转换为UTF-8. python3 的字符串是采用unicode 编码 对于单个字符,ord() 获取字符的整数表示,chr()把整数编码转化为相应字符。 >>>ord('A') 65 >>>chr(65) 'A' 采用十六进制编码形式表示 >>>'\u4e2d' '中' 对字符串进行编码和解码: >>>'中文'.encode('UTF-8') b'\xe4\xb8\xad\xe6\x96\x87' >>> b'\xe4\x...
UTF-8
Python
false
false
959
py
7
STRING.py
7
0.534669
0.4453
0.01849
38
16.078947
52