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
Greenleaf88/MDRSteg-large-capacity-image-steganography-based-on-multi-scale-dilated-ResNet-and-combined-chi-squ
16,303,695,877,752
76019b1d462d55a7f7e6fd06db4ee609611d11ea
db3fbb7f5dda676b36b1d8db5d6a613ec7192dad
/SingleSizeModel.py
1a37efe350a78e2f3945d6ca9b23e7dd0b1de9d7
[ "MIT" ]
permissive
https://github.com/Greenleaf88/MDRSteg-large-capacity-image-steganography-based-on-multi-scale-dilated-ResNet-and-combined-chi-squ
edf23fe541baf71ad0072059d5e2085fceb86133
a80a73fb1f104e530168319bc0049878a38ed76a
refs/heads/main
2023-05-12T13:51:32.625426
2021-06-03T02:50:18
2021-06-03T02:50:18
373,348,246
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# from __future__ import absolute_import # from __future__ import division # from __future__ import print_function import os import time os.environ["CUDA_VISIBLE_DEVICES"] = "1" import numpy as np # import cv2 import tensorflow as tf from tensorflow.data import Iterator from Dataset import SegDataLoader, VocRgbDataL...
UTF-8
Python
false
false
21,883
py
14
SingleSizeModel.py
6
0.624412
0.607458
0
370
58.091892
303
joeljwilliams/csc312-project-tvmdb
18,554,258,724,002
20e72ede1a2e21d7954d491f8a6ec1e86180fd2f
ac85cf7e8e4047359205ddd12c343fc77a192f4b
/mediafollower/models.py
445976abd49b2d8b2e0a38931e0b941a3be47e68
[]
no_license
https://github.com/joeljwilliams/csc312-project-tvmdb
2eaf6b708985c3c04ca90944c9b3e207c7e5da53
239347fbf0d5420927927847046331fa00ddd515
refs/heads/master
2022-09-16T21:16:21.675728
2013-05-22T14:24:25
2013-05-22T14:24:25
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 Genre(models.Model): name = models.CharField(max_length=20) def __unicode__(self): return self.name class Media(models.Model): title = models.CharField(max_length=45) description = models.CharField(max_length=255)...
UTF-8
Python
false
false
1,629
py
14
models.py
7
0.690608
0.675875
0
59
26.610169
50
zconn/PythonCert220Assign
3,573,412,793,030
aa0f793de060ef704b025448edd562bdd1eab1c7
0c72282d601ccf840dd4e41b675c0675de7bc916
/students/DanCornutt/lessons/lesson03/alt_assignment/tutorial/tutorial_sqlite3.py
875eb1e1ec162d98942ae5ef6bb5b040507e808c
[]
no_license
https://github.com/zconn/PythonCert220Assign
c7fedd9ffae4f9e74e5e4dfc59bc6c511c7900ab
99271cd60485bd2e54f8d133c9057a2ccd6c91c2
refs/heads/master
2020-04-15T14:42:08.765699
2019-03-14T09:13:36
2019-03-14T09:13:36
164,763,504
2
0
null
true
2019-01-09T01:34:40
2019-01-09T01:34:40
2019-01-08T20:21:44
2019-01-08T20:21:43
788
0
0
0
null
false
null
import sqlite3 from sqlite3 import Error def sql_connection(): try: con = sqlite3.connect('mydatabase.db') print("Connection is established: Database is created in memory") except Error: print(Error) def sql_table(con): """Creates db table and db""" cursorObj = con.cursor()...
UTF-8
Python
false
false
770
py
375
tutorial_sqlite3.py
326
0.675325
0.671429
0
31
23.83871
206
RevansChen/online-judge
6,459,630,823,750
36dfead4ae087add5584ea0b4fc0967ddb78fda5
abad82a1f487c5ff2fb6a84059a665aa178275cb
/Codewars/7kyu/the-office-ii-boredom-score/Python/test.py
09a96be24d3ece9180479365ab78167ed3d21c1d
[ "MIT" ]
permissive
https://github.com/RevansChen/online-judge
8ae55f136739a54f9c9640a967ec931425379507
ad1b07fee7bd3c49418becccda904e17505f3018
refs/heads/master
2021-01-19T23:02:58.273081
2019-07-05T09:42:40
2019-07-05T09:42:40
88,911,035
9
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Python - 3.6.0 Test.describe('Basic tests') Test.assert_equals(boredom({ 'tim': 'change', 'jim': 'accounts', 'randy': 'canteen', 'sandy': 'change', 'andy': 'change', 'katie': 'IS', 'laura': 'change', 'saajid': 'IS', 'alex': 'trading', 'john': 'accounts', 'mr': 'finance' }), 'kill me now') Test.assert...
UTF-8
Python
false
false
889
py
2,569
test.py
1,607
0.572553
0.569179
0
21
41.333333
79
karthikpappu/pyc_source
10,015,863,776,042
c16ff6024908f8357bc1834fb7db8b6df73e9c37
91fa095f423a3bf47eba7178a355aab3ca22cf7f
/pypi_install_script/spamme-0.0.1.tar/setup.py
2464928f9ce1fe902b972a899f625ad011eeabe5
[]
no_license
https://github.com/karthikpappu/pyc_source
0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f
739e7e73180f2c3da5fd25bd1304a3fecfff8d6e
refs/heads/master
2023-02-04T11:27:19.098827
2020-12-27T04:51:17
2020-12-27T04:51:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup setup(name = 'spamme', version = '0.0.1', description = 'The trash clean utilities', url = 'http://fake.usr.com', author = 'Z.G.', author_email = 'zg@fake.usr.cim', license ='MIT', packages = ['spamme'], zip_safe = False)
UTF-8
Python
false
false
284
py
114,545
setup.py
111,506
0.588028
0.577465
0
10
27.3
46
alipay/alipay-sdk-python-all
11,716,670,794,198
6b29a6a632181398beb0975f108629114b5a55be
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayInsCooperationProductQrcodeApplyResponse.py
990bce50e10a201d145d644966ef44c95a441668
[ "Apache-2.0" ]
permissive
https://github.com/alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
false
2023-04-25T04:54:02
2018-05-14T09:40:54
2023-04-20T12:00:51
2023-04-16T10:42:27
12,485
221
54
27
Python
false
false
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayInsCooperationProductQrcodeApplyResponse(AlipayResponse): def __init__(self): super(AlipayInsCooperationProductQrcodeApplyResponse, self).__init__() self._code_...
UTF-8
Python
false
false
745
py
9,331
AlipayInsCooperationProductQrcodeApplyResponse.py
9,330
0.691275
0.689933
0
25
28.8
119
Hayato-t/pythonNeuronSimulation
9,096,740,783,705
86d60d77fd8024b2c1bb76fa4c528f4ae43f363a
6d9ce5b5a0afd585c6e714ed52509b75e2202661
/util/graphPlotter.py
52f939c75a0d6ba33298a47c33673f82ea9a5a78
[]
no_license
https://github.com/Hayato-t/pythonNeuronSimulation
0854e44a5984d8d77fd1e405b08bc276cdfd2569
372d542b8f2a88f1b6d5b199698b3e1fa0ec0653
refs/heads/master
2021-05-02T07:13:45.994235
2019-02-12T02:34:11
2019-02-12T02:34:11
120,871,690
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import numpy as np import matplotlib.pyplot as plt sys.path.append("/home/hayato/lib/python") sys.path.append("./modules") import argparse import pickle if not len(sys.argv) == 2: print("this program requires 1 argument (filepath)") exit() with open(sys.argv[1], mode='rb') as f: da...
UTF-8
Python
false
false
472
py
57
graphPlotter.py
29
0.641949
0.635593
0
20
21.6
56
AgencyPMG/awslogin
7,705,171,376,163
4b0742120748164f2d6eb9b1c3f1e9113a41c4f2
578c147c09a30fb34ba1a187ef352ba9d084f6eb
/awslogin.py
85b97c91562bd843dc3eb321f70ac426010e2641
[]
no_license
https://github.com/AgencyPMG/awslogin
90538a3df60bc4ba0d32bef8737c5fdb367c3616
b65de13281133e8265925b8beb20096f23c058bf
refs/heads/master
2021-01-25T08:13:45.561783
2017-06-08T13:47:58
2017-06-08T13:47:58
93,754,673
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ A script that can be used to login to AWS via federated login. This is useful when you have a single account with actual users/passwords and allow role switching to other accounts. Your credentials setup should be something like this: # ~/.aws/credentials [default] region = us-e...
UTF-8
Python
false
false
2,196
py
3
awslogin.py
2
0.67714
0.675774
0
78
27.153846
121
alexbennett/aioguardian
10,239,202,052,936
86307c895299cb2478ef30198b332578a17969f3
4a53ac8b71481a6dfea359fb7c4b4139c0c5a9b4
/examples/test_sensor.py
36e739a438c5af3f5f88b703750477d4ae9a5942
[ "MIT" ]
permissive
https://github.com/alexbennett/aioguardian
a8b8e80ec12b877c33dbc302156f62b7420e7317
b33e277f7972fc43c2e50f192d391a6fab94ff8c
refs/heads/master
2022-12-14T23:33:37.183869
2020-09-23T23:02:40
2020-09-23T23:02:40
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Run an example script to quickly test the guardian.""" import asyncio import logging from aioguardian import Client from aioguardian.errors import GuardianError _LOGGER = logging.getLogger(__name__) async def main() -> None: """Create the aiohttp session and run the example.""" logging.basicConfig(level=...
UTF-8
Python
false
false
1,380
py
81
test_sensor.py
47
0.603623
0.596377
0
39
34.384615
90
jh247247/euler
14,774,687,507,995
7117fd24a7227d0cfbd4e9dcf74ec4882f43ceef
feae26a0f91a735326104af4031257eee23115c7
/p21/p21.py
c0e60acf68b7d63f1acce857c92d0849214f3269
[]
no_license
https://github.com/jh247247/euler
a9679e678e378e663551227ec98c6f03ad551dfb
8a1f25b3b7cff337a8f41c9de14f56e2a25298c9
refs/heads/master
2021-01-01T05:41:24.806989
2015-08-18T02:39:51
2015-08-18T02:39:51
40,878,313
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3.5 # gets the sum of the factors of a number def sumOfFactors(num): if num is 0: return 0 return sum([x for x in range(1,int(num/2)+1) if num%x is 0]) def isAmicable(num1, num2): return (sumOfFactors(num1) == num2 and sumOfFactors(num2) is num1) amicable = [] for i i...
UTF-8
Python
false
false
541
py
20
p21.py
19
0.598891
0.563771
0
23
22.521739
64
iamEi/Dropper
7,584,912,252,818
c873232d96078f108ba29d489ce08aad59d3f1ae
b6e913f50ae50e7519d4a99e407fb73b42e0b7a8
/main.pyw
0e8476141fbc32d82a3ca8a9524272132855221b
[]
no_license
https://github.com/iamEi/Dropper
e38c87cd674b18fcb78c9b7c614c40e92d23b88e
27f322c908ab5aab25ae9e12dd1340d83e30594c
refs/heads/master
2023-08-29T23:05:09.687009
2021-09-28T03:29:46
2021-09-28T03:29:46
409,289,547
0
0
null
false
2021-09-28T03:14:56
2021-09-22T17:06:09
2021-09-24T08:39:47
2021-09-28T03:14:56
6,130
0
0
0
Python
false
false
import pygame, sys from player import Player from platforms import Platforms from spikes import Spikes from text import Text #initializing pygame pygame.init() #set up WIDTH = 500 HEIGHT = 700 title = 'Dropper' screen = pygame.display.set_mode((WIDTH,HEIGHT)) pygame.display.set_caption(title) clock = pygame.time.Cloc...
UTF-8
Python
false
false
4,470
pyw
6
main.pyw
5
0.711633
0.689038
0
191
22.408377
131
williamsdoug/GitAnalysis
12,369,505,855,416
54a3592311ac9336fc191edd5c1b337186e621c2
640411253fcf4dfc71b70ec923b0864ccd58b837
/dev/NewDiff.py
1ed82534ee81d0300b8ff84a1e6d19719d68ad15
[]
no_license
https://github.com/williamsdoug/GitAnalysis
cb6dce95e7a92b0d1d2cf2db3c94aec6ef3be3bf
da91b541d2531a41cc1f4e02537b7803b84b20d3
refs/heads/master
2016-09-06T15:50:50.345898
2015-07-02T13:28:51
2015-07-02T13:28:51
23,364,094
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # NewDiff.py - Language-specific change detection for Python # # Author: Doug Williams - Copyright 2015 # # Last updated 5/13/2015 # # History: # - 5/5/15 - Initial version of file # - 5/8/15 - Continued active development # - 5/10/15 - Various bug fixes while testing against nova, glance, # swift, hea...
UTF-8
Python
false
false
37,700
py
43
NewDiff.py
13
0.552016
0.544456
0
1,116
32.781362
79
mattloper/chumpy
2,044,404,459,700
35e0cdeaccaabc9488346a8e55a759990433cccb
d10c7e12f5c9a7b37cf6c776ef21c9f70b87df48
/chumpy/reordering.py
0ab1cd34cddd73a521df41807ac81687e4075c58
[ "MIT" ]
permissive
https://github.com/mattloper/chumpy
1029bc308e5c72d5b6b967c1d3b86b4267f45fda
51d5afd92a8ded3637553be8cef41f328a1c863a
refs/heads/master
2023-06-08T23:17:35.228530
2023-02-21T21:21:27
2023-02-21T21:21:27
21,735,743
189
83
MIT
false
2023-06-06T10:26:08
2014-07-11T12:43:43
2023-05-15T21:14:48
2023-06-06T10:26:07
218
176
87
16
Python
false
false
""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ from .ch import Ch import numpy as np from .utils import row, col import scipy.sparse as sp import weakref __all__ = ['sort', 'tile', 'repeat', 'transpose', 'rollaxis', 'swapaxes', 'reshape', 'Select', 'atleast_1d', 'a...
UTF-8
Python
false
false
13,938
py
26
reordering.py
22
0.544124
0.53573
0
454
29.700441
118
thednainus/ERV_Simulations_II
7,464,653,191,016
347f93973771c15bb15b2884d525719d6541b0cf
243a76a0b3b9bc3a87b3c79346b89c33010ac9a4
/OSG/inputs/ERV_phylodynamics_class.py
37b70d9895f3d07f337652b39415bd53497afa26
[]
no_license
https://github.com/thednainus/ERV_Simulations_II
599d0003bc94a9f6484188d64e046f97407898c4
173cdf76cd099168becd9d649d2fdbf0f7c42bd9
refs/heads/master
2016-09-21T04:48:26.698014
2016-08-23T16:04:53
2016-08-23T16:04:53
66,194,658
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time, os from ete2 import Tree from Tree_utilities import TreeUtil from Random_Functions import ERV_Randoms from writeFiles import writeInfos class Dynamics(object): def __init__(self, model, n_Sim, numHostGen, hostGen_text, max_copies, hostMutRate, virusMutRate, virusBirthRate, virusInacRate, virusDelRate...
UTF-8
Python
false
false
17,130
py
18
ERV_phylodynamics_class.py
12
0.386924
0.381144
0
312
53.897436
222
lujun9972/lctt-cli
420,906,823,318
c7cb0dbef7129ede661edfb46272327fadf387da
969c4337320aa75e602639300f17ddaee219595c
/lctt-cli/clone/clone_translate.py
2e5d4eca60540d3ca957b812119785c377485f6a
[ "MIT" ]
permissive
https://github.com/lujun9972/lctt-cli
f5a33f87fabfa0b3895a0fe2571bed39a899bdab
48b3911104e5c5675922fdbfcab498ed2f670fee
refs/heads/master
2021-08-19T21:52:33.442891
2017-10-24T16:24:53
2017-10-24T16:24:53
112,172,011
0
0
null
true
2017-11-27T08:57:34
2017-11-27T08:57:34
2017-11-09T11:23:11
2017-10-24T16:53:22
8,176
0
0
0
null
false
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import wget,git,os class download_translate_project(): # 定义初始变量 def __init__(self,url=None,filename=None): self.url='http://codeload.github.com/LCTT/TranslateProject/zip/master.zip' self.filename='TranslateProject.zip' # 定义下载模块 def...
UTF-8
Python
false
false
1,566
py
16
clone_translate.py
12
0.580913
0.57953
0
36
38.166667
134
fczero/MT_Testing
19,679,540,164,077
c560736b96882fc2bbb14af55dd18c5184045d9a
0f35c3a2c957b10bd9a0c79a314f6cfc4500de62
/compare_macros.py
42d244f6afe73b00c06f699cad9fe8b15ec8182d
[]
no_license
https://github.com/fczero/MT_Testing
ec61092c0be245054dab4514ba88a40f06feadee
d109a8aa1409eabc8f96804f6ee93233571a063b
refs/heads/master
2021-01-11T15:31:08.194508
2016-11-14T10:12:15
2016-11-14T10:12:15
80,367,028
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- #from db_helper import * import db_tables import db_helper import sys def compareMacros(target, reference, newIndices): """ given target, reference macro numbers and list of new indices loops through equivalent parameters returns list of tuple of parameters with differences...
UTF-8
Python
false
false
3,917
py
28
compare_macros.py
13
0.585908
0.57978
0
108
35.259259
112
MakDizdar/map
11,201,274,716,237
16a841c51cc36814a1c7cb547771eab6138b70c4
4707b6e6a7eba583391a382f2619589710a54a6c
/Maps/.svn/pristine/16/16a841c51cc36814a1c7cb547771eab6138b70c4.svn-base
322256ce117af1e98ed8d027c21e98515b45a07e
[]
no_license
https://github.com/MakDizdar/map
c9ce8cd54978b30f23c972bb73caf38a78a998c0
0886e3e3d00a8b005a3c97c6e7246d0a8a6bd6ba
refs/heads/master
2020-07-06T02:00:52.602371
2018-06-03T10:47:59
2018-06-03T10:47:59
73,970,520
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.shortcuts import render_to_response from django.template import Template, Context, RequestContext from django.http import HttpResponse import datetime from time import sleep from extract_nodes import extract_osm_nodes , select_nodes_in_rectangle from extract_shortest_path...
UTF-8
Python
false
false
3,705
6
16a841c51cc36814a1c7cb547771eab6138b70c4.svn-base
3
0.57247
0.557355
0
103
34.961165
98
bretmullinix/githooks
5,918,464,965,760
e5c0920bf1d47c4aba2d150380007ec256e75f84
73908cf0d8561f1dc4e1820e086aa510fd680b44
/pre_commit_directory/common_classes/markdown_rule.py
63948b13ec67eb8d236f7a400cd05b4b8831b068
[]
no_license
https://github.com/bretmullinix/githooks
84e8da509468bbe39104ee4301b925c03c9dbe0f
b6c6f4500c4b22d0feb448a88951cd9bc708dd98
refs/heads/master
2022-11-18T01:33:31.655751
2020-07-19T20:54:06
2020-07-19T20:54:06
278,967,733
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class MarkdownRule: def __init__(self): pass def __init__(self, regex_match): self.re_match = regex_match self._parse_re_match() def _parse_re_match(self): self.rule = self.re_match.group(3) self.rule_description = self.re_match.group(4) self.file = self.r...
UTF-8
Python
false
false
397
py
12
markdown_rule.py
11
0.586902
0.576826
0
13
29.384615
59
andypaw03/homework
9,715,216,072,552
0a13a82fb3bcc6f0d286a7361bdf1b87ab2389c3
b1db73e6c9df798e190ec23d170710d7f0b9f073
/zad new.py
8a0b232d8f775bf464666682187c64f946ad8b54
[]
no_license
https://github.com/andypaw03/homework
3f9fe1825f4a9a4e3245994b02a0520fa88f8acd
d0553507b5842867aaac21aaeaa7638969e307c6
refs/heads/master
2021-05-17T11:07:05.534910
2020-03-28T17:29:59
2020-03-28T17:29:59
250,748,906
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a=input("").split() b=[""] for i in range(len(a)): minn=a[0] for j in a: if minn>j: minn=list(j) a.remove(minn) b.append(minn) print(b)
UTF-8
Python
false
false
172
py
53
zad new.py
52
0.488372
0.482558
0
10
16.2
24
Ispirett/kjbstudios
10,342,281,291,200
f8a8b1664a14e81d38d236f2587bde909838b79c
e83f5fe4cb0b8c8bb2a4484aebe83fcde81dddec
/photography/migrations/0008_auto_20180812_0517.py
b6b415b44418808e073d06561a668867a723c95d
[]
no_license
https://github.com/Ispirett/kjbstudios
47b910ec666f0bfced834eab931390b499ef0581
e09a03da02eca9ecc16709862bcaf4f3b282f015
refs/heads/master
2018-11-14T00:02:00.211649
2018-08-30T22:24:41
2018-08-30T22:24:41
144,615,989
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.7 on 2018-08-12 05:17 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('photography', '0007_auto_20180812_0305'), ] operations = [ migrations.AddField( model_name='sitecon...
UTF-8
Python
false
false
956
py
21
0008_auto_20180812_0517.py
10
0.595188
0.547071
0
32
28.875
87
AdiGajbhiye/grid-world
1,408,749,284,589
b707611a6de8f0e7d6f9a0bef2fa612ceff8b0bd
e99a9c91fb6c1c6c9c2a2da21bd3c76eec605c27
/qlearning.py
cbc22210c65d5acbcba0fbee078235eaebdabe69
[]
no_license
https://github.com/AdiGajbhiye/grid-world
5e258a89f38517aed7e188135eb37b5b3b65cf5b
dcc939cbbd9436956beb0c520beb598930f22e05
refs/heads/master
2021-01-20T03:04:24.937817
2017-08-29T09:30:34
2017-08-29T09:30:34
101,344,244
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import subprocess import time import grid Qvalues = [[[0 for i in range(4)] for i in range(4)] for i in range(4)] discountFactor = 0.9 epsilon = 0.8 # how much exploration livingReward = -0.4 def printQvalues(): for i in reversed(Qvalues): for j in i: for action in j: ...
UTF-8
Python
false
false
1,895
py
4
qlearning.py
4
0.503958
0.486544
0
83
21.831325
71
anjabeck/AP-1516
7,310,034,371,918
ec92dae4029ca0f0e26266e978b1c280ec92eb8d
42595a8f1c8bb4509b6586843296c9f751ca71b7
/V601-Franck-Hertz/Rechnung.py
5596af124bc1999d8ddbeabdc96b731a51482e40
[]
no_license
https://github.com/anjabeck/AP-1516
a6acccca6abb0fe0cfc7e65e3fd35830ef5831bc
d07f6108038bf2d84e9b96db7d932beeb59f4b88
refs/heads/master
2023-08-31T07:02:05.547817
2016-08-25T10:31:08
2016-08-25T10:31:08
null
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 scipy.stats import sem import scipy.constants as const from uncertainties import ufloat from table import( make_table, make_SI, write) Strom1, Spannung1 = np.genfromtxt('Messung1.txt', unpack=True) Strom2, Spannung2 = np.genfromtxt('Messung2.txt', unpack=True)...
UTF-8
Python
false
false
3,068
py
508
Rechnung.py
47
0.720915
0.657516
0
94
31.489362
115
ajtanskanen/benefits
3,710,851,773,996
f1fa70d47cd3741f12fb3953fc1b241e991ea349
baa2041f13a21d43e9c89751057eb7517c67a5aa
/fin_benefits/benefits_unemp_EK2020.py
8484c6d65969f6876ff733bf34a212956ebd98b5
[ "MIT" ]
permissive
https://github.com/ajtanskanen/benefits
a9cd9d2b2214f8c50541dbe19f40fede5ec8662e
82bed55716d7b4f27fa51063519646c5044b33bc
refs/heads/master
2023-07-19T01:20:48.325805
2023-07-18T13:57:47
2023-07-18T13:57:47
208,250,070
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import gym from gym import spaces, logger, utils, error from gym.utils import seeding import numpy as np from .benefits import Benefits import random class BenefitsEK2020(Benefits): """ Description: Changes to unemployment benefits in the EK model Source: AT """ def __...
UTF-8
Python
false
false
4,781
py
38
benefits_unemp_EK2020.py
20
0.608312
0.551427
0
103
45.252427
189
mF2C/LifecycleManagement
4,956,392,280,686
6b8f9afdd77ff7b61fe2b094143c4aa7bc79b91e
0d893c8e3a0e5db6da272fb909080d44983781c2
/lifecycle/common.py
b47229e22103b50df024e6eaac7be913f2d7cc60
[ "Apache-2.0" ]
permissive
https://github.com/mF2C/LifecycleManagement
5be09ef5f1c98319a9361a93e129e19fa1b5d007
a9661c6dcaad94564c3e00d6059b9c0713b3f3c0
refs/heads/master
2021-06-03T20:54:22.429726
2020-01-17T14:02:32
2020-01-17T14:02:32
107,657,386
0
0
Apache-2.0
false
2021-05-06T19:05:58
2017-10-20T09:13:42
2020-01-17T14:02:51
2021-05-06T19:05:57
4,827
0
0
3
Python
false
false
""" Common functions This is being developed for the MF2C Project: http://www.mf2c-project.eu/ Copyright: Roi Sucasas Font, Atos Research and Innovation, 2017. This code is licensed under an Apache 2.0 license. Please, refer to the LICENSE.TXT file for more information Created on 09 feb. 2018 @author: Roi Sucasas -...
UTF-8
Python
false
false
3,909
py
49
common.py
40
0.61141
0.600153
0
130
29.069231
119
VickyChing/ICASSP19
14,594,298,876,367
7e221da539932c9dac63c1701e0c8d180f2691c1
310077d1ef72e29e8659702f539eb7e060f6038d
/plot.py
02723c8270b009049e27675811537be9a2ff6358
[ "MIT" ]
permissive
https://github.com/VickyChing/ICASSP19
8476f63b3fd1c244211d34769539026f12553a59
247b0b9d738679f5472dd74f52bd1933b871e87f
refs/heads/master
2020-09-22T06:59:28.514413
2019-09-04T07:45:26
2019-09-04T07:45:26
225,097,441
0
1
MIT
true
2019-12-01T02:42:01
2019-12-01T02:42:01
2019-10-02T03:36:57
2019-09-04T07:45:31
34
0
0
0
null
false
false
import torch import argparse import numpy as np import mir_eval from madmom.io import midi from adsr import ADSRNoteTrackingProcessor from matplotlib.collections import PatchCollection import matplotlib.patches as mpatches import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap np.set_prin...
UTF-8
Python
false
false
7,805
py
20
plot.py
15
0.584369
0.565535
0
240
31.520833
95
kbsezginel/tee_mof
17,343,077,979,745
a10acaf6eb9c28df9798e78c79d1548bfccf416f
ce8b70e1b61b64a0f9f80f1974e9ffe34b5eb242
/thermof/read.py
2f40ca3cf3887c86a74b42029fb76be4798a642f
[ "MIT" ]
permissive
https://github.com/kbsezginel/tee_mof
6a2da327d0d5178c962106c270bbed2f3d0df558
44c33e37aeadce31241a878135b1531757a2b1c4
refs/heads/master
2021-01-11T16:41:44.227544
2018-06-09T19:17:27
2018-06-09T19:17:27
80,137,987
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Date: August 2017 # Author: Kutay B. Sezginel """ Read Lammps output files for thermal conductivity calculations """ import os import math import yaml import csv import numpy as np from thermof.reldist import reldist from thermof.parameters import k_parameters, thermo_headers def read_thermal_flux(file_path, dt=k_p...
UTF-8
Python
false
false
15,839
py
82
read.py
50
0.604647
0.599407
0
399
38.696742
138
simonb21/cmsc128-ay2015-16-assign001-py
5,016,521,852,259
e6b09981c96e24467d0833a0b23eb61008667dbb
06904d39db5dbd91e5a976be01856442d3d17c92
/numberDelimited.py
d03f1e2b7c39ff7c6200104003d8aa5bf1b3ef59
[]
no_license
https://github.com/simonb21/cmsc128-ay2015-16-assign001-py
6941ac1834dc0f2c674125cf799e5724c64719da
4019ed5d27b8445c6c7fbbc14ca25fea01962f30
refs/heads/master
2016-08-09T06:54:50.924132
2016-02-13T14:51:03
2016-02-13T14:51:03
51,634,321
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Language Used: Python 3.5 #Constants# MIN = 0 MAX = 1000000 good = False #Flag for valid input while not good: try: x = int(float(input("Input: "))) if x>=MIN and x<=MAX: #Limits the input so it is between 0 and 1000000 good = True else: print("Invalid value size!"...
UTF-8
Python
false
false
1,096
py
4
numberDelimited.py
4
0.568431
0.544708
0
49
21.367347
96
Marketuser/LearnPython-lesson1
3,358,664,460,384
8bdfa95c0dd35d18b0a49338672a7dcda579eb74
bcfefdb823051a9115cd62ddfebeb28ba726bafe
/answers.py
c6b22d87d95b59bbfd191eb224f3317638dd7810
[]
no_license
https://github.com/Marketuser/LearnPython-lesson1
33f87bfa638cd48287cf204dab6566d84a046d35
a95f9fb84dcbd44ee68a22c0c132135d88a51799
refs/heads/master
2021-08-15T23:24:36.970526
2017-11-18T14:03:52
2017-11-18T14:03:52
111,210,991
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def get_answer(question, answer): answer = ["привет", "И тебе привет!", "как дела", "Лучше всех", "пока"] return()
UTF-8
Python
false
false
152
py
2
answers.py
2
0.652174
0.652174
0
3
37.666667
72
thelma1944/Python_Stuff
4,827,543,286,323
dbca047be049f18c75300d947719b4626a5ef8c4
484c462c29e3c2f8ac280b79c11db6982c6a8ca6
/wip/CFO_Module/UDP_client.py
74f22ac708e0b891587e6bcaf72d526803a5ba69
[]
no_license
https://github.com/thelma1944/Python_Stuff
b5fa53bf008bb5e865204201b144fe20e7f87565
077131a2c9f247396dca86fdf18933d38ae8d501
refs/heads/master
2021-06-05T12:25:35.779070
2020-10-03T18:20:16
2020-10-03T18:20:16
16,077,931
0
1
null
false
2021-03-26T00:30:14
2014-01-20T17:36:16
2020-10-03T18:23:33
2021-03-26T00:30:12
97,334
0
1
3
Python
false
false
#!/usr/bin/python # UDP client example import socket import datetime, timeit """ This is a ten second heart beat using the port number as the single word as the heartbeat 28 Jan 2014 TEV """ port = "5000" target = '216.97.82.48' while 1: while 1: ...
UTF-8
Python
false
false
687
py
81
UDP_client.py
35
0.558952
0.524017
0
28
23.464286
73
Belbola/learn-GUI-Python
4,011,499,484,840
afd3ef2eb451385e56265e5da29f660e633dc7de
0f8d89c1d3cedfd7a19c249791ac10d2e3bf65ab
/6 - Advanced Widgets/HelloTextWidget.py
3d4033c9b32020665e500211692d47be65fa66ff
[ "Apache-2.0" ]
permissive
https://github.com/Belbola/learn-GUI-Python
6e1c1d94b0180ec65ea54202ec191ec25a42181b
c259658ee2f3b67eeb84a543cb74e3166b5edcd7
refs/heads/master
2016-09-08T19:17:56.510086
2015-07-17T06:40:53
2015-07-17T06:40:53
38,014,428
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
Python 3.4.0 (default, Jun 19 2015, 14:20:21) [GCC 4.8.2] on linux Type "copyright", "credits" or "license()" for more information. >>> from tkinter import * >>> root = Tk() >>> text = Text(root, width = 40, height = 10) >>> text.pack() >>> text.config(wrap = 'word') >>> # the widget has : get, insert and delete method...
UTF-8
Python
false
false
1,655
py
24
HelloTextWidget.py
24
0.583686
0.552266
0
32
50.71875
158
snassimr/concept-drift
9,706,626,098,799
ccc8a04bc78ce3a66b06643384ca77fff6ac3256
7e0d9b57304629abea51a753302517dad3026604
/notebooks/archive/plots.py
1ca86e6a7b65826be5caeecf3ffd7c7acc3d1126
[ "Apache-2.0" ]
permissive
https://github.com/snassimr/concept-drift
aabf071c7666e89ae01e2220bbe563d5298c6d6e
11dc0ddee35c9e5d43f7d70d1bd0e2486471c0af
refs/heads/main
2023-07-23T18:09:59.709296
2021-08-30T19:10:27
2021-08-30T19:10:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.pyplot as plt import numpy as np from matplotlib.colors import ListedColormap def decision_regions(x, y, classifier, test_idx=None, resolution=0.02, plot_support=False, plot_custom_support=False): markers = ('s', 'x', 'o', '^', 'v') colors = ('red', 'blue', 'lightgreen', 'gray', 'cyan') ...
UTF-8
Python
false
false
2,550
py
21
plots.py
9
0.493333
0.464314
0
78
31.705128
118
cmoralescar/programacion-practica-seo
18,734,647,357,921
affbb2c67ccd228df5dcdb0a86903b8954a76e37
a3b9452798d707d2592a00dd8eece6dbdf186d7a
/programacion-practica-seo-master/python/intro/08-dictionaries.py
25b87e842a627672ff7999c9a39c5d82016ebbdf
[]
no_license
https://github.com/cmoralescar/programacion-practica-seo
2bc74979fab23fa5c664f0edbd6b5b3358eddc72
24d44e324e37fcf53ce778792b2ca85dafeaab1a
refs/heads/master
2023-02-02T02:38:43.168926
2020-12-21T18:08:21
2020-12-21T18:08:21
323,315,459
0
1
null
false
2020-12-21T18:08:22
2020-12-21T11:25:03
2020-12-21T12:37:20
2020-12-21T18:08:21
0
0
0
0
null
false
false
# Crear ejemploDict = { 'a': 3, 'b': 0, 'z': 34 } # Acceder a un elemento print(ejemploDict['a']) # Loop for elemento in ejemploDict: print(ejemploDict[elemento]) # Items & values ejemploDict.keys() ejemploDict.values() print(ejemploDict.items()) # Chequear si existe if 'a' in ejemploDict: print('existe...
UTF-8
Python
false
false
452
py
96
08-dictionaries.py
72
0.690265
0.676991
0
35
11.942857
30
ludwigwittgenstein2/Algorithms-Python
16,432,544,914,951
aa3103657c1c758200e3a80335162fd6aa6a4602
de95e9ace929f6279f5364260630e4bf7a658c1c
/practiceReuse.py
58f86e0f8d05f971270eaea784c1891c30896d01
[]
no_license
https://github.com/ludwigwittgenstein2/Algorithms-Python
ceaf0739b8582f7bd749a9b3f52f283765044744
c5bed8b2e398c218d1f36e72b05a3f5545cf783a
refs/heads/master
2021-06-19T11:40:31.012268
2017-07-02T04:59:20
2017-07-02T04:59:20
75,953,711
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
seq = [20, 10, 24, 56, 89, 99] def trav(seq, i=0): if i ==len(seq): return trav(seq, i+1) if __name__ == '__main__': trav(range(100))
UTF-8
Python
false
false
156
py
162
practiceReuse.py
156
0.467949
0.358974
0
9
16.333333
30
laurent-george/comments
12,807,592,479,562
be779dd8a03d020927515e2663a1a8a991e1a090
94c4e6b4d5b65e4aca078456c6be76c80944ab07
/first_try_keras.py
d0c83c4199d7b19bb8bab6aa209ac700324f394e
[]
no_license
https://github.com/laurent-george/comments
92d663d0068148e10903464b325cc24cf011391b
596648802d4db9eba32d276ee3ec1d3bb0e3e3bb
refs/heads/master
2021-05-11T08:17:14.825319
2018-01-18T22:55:48
2018-01-18T22:55:48
118,048,224
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf def get_input_fn_dataset(dataset_name = 'train', num_epoch=30, batch_size=256): def _parse_function(example_proto): features = {"X": tf.VarLenFeature(tf.float32), "Y": tf.VarLenFeature(tf.float32)} features = {'id': tf.FixedLenFeature([1], tf.int64), ...
UTF-8
Python
false
false
2,869
py
2
first_try_keras.py
2
0.555246
0.538864
0
73
38.30137
103
caleb-severn/useful_codes
14,328,010,946,287
a8e7ef8de4c933c90a5e6c6f004330f5d2f26ce6
a62c3b44a1e22ce919819836cf0ebd63d3e5fce6
/Code Tests/139. Word Break.py
4b49de81fc711d9a102f1fd160dec85b1fa1848d
[]
no_license
https://github.com/caleb-severn/useful_codes
e70128bf00cd2eff9fb84d69c9417c2082c4ed40
03ebb313cf0609736822464bdf3730fc136b227c
refs/heads/main
2023-06-21T03:41:28.598802
2021-07-20T09:12:28
2021-07-20T09:12:28
387,737,531
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jun 2 11:32:34 2021 @author: csevern """ #%% Attempt 1 this only ran into an issue on one example which required a rewrite def wordBreak(s,wordDict): slist = list(s) wordc = 0 for w in wordDict: print(w,''.join(slist), len(s),wordc) if w in ''.joi...
UTF-8
Python
false
false
1,597
py
39
139. Word Break.py
39
0.505322
0.487163
0
70
21.785714
81
TacoCurry/HRTTest
8,650,064,144,094
4ecf4d5f990e6c1957e01443244ab0fe30f0fa7e
88c9b01dc08254b2555e68eb7b7094aace41c2d7
/none_rt_out_csv.py
d944bb21395b02e338caf33034ab531124c47ae8
[]
no_license
https://github.com/TacoCurry/HRTTest
c4400a5fdd36431f62e89f1743642fa18c2efc90
c5fb0d3792284ef2578343520e9156bec373bf6e
refs/heads/master
2021-04-10T23:36:04.081758
2020-06-12T13:37:12
2020-06-12T13:37:12
248,976,484
0
0
null
false
2020-06-12T13:37:13
2020-03-21T12:58:54
2020-03-26T06:17:30
2020-06-12T13:37:12
1,288
0
0
0
Python
false
false
import csv def init(file_name): f = open(file_name, 'w', encoding='utf-8', newline='') f.close() def write(file_name, list): f = open(file_name, 'a+', encoding='utf-8', newline='') wr = csv.writer(f) wr.writerow(list) f.close()
UTF-8
Python
false
false
253
py
31
none_rt_out_csv.py
21
0.58498
0.577075
0
11
22.090909
59
shubhamchandak94/LDPC_DNA_storage
3,779,571,247,515
7f36be1166cb4800ce13065f5d8434781cdcfc31
0591f0b651235e77c2161c89cebdf11e25e533f9
/util/analysis/Raptor_BCH/sample_generation_raptor_BSC.py
7f3fb2090d757d8f3c28533e3293e7a2c28c97aa
[ "MIT" ]
permissive
https://github.com/shubhamchandak94/LDPC_DNA_storage
be6da10d53b4fde16f9c8e42df1d7c96c97f42df
ae69da8696f71c1afc7f2dac8756b9d2392ac052
refs/heads/master
2021-06-29T18:32:20.365051
2020-09-05T15:08:24
2020-09-05T15:08:24
189,745,376
9
3
null
false
2020-01-29T13:32:43
2019-06-01T14:58:24
2019-10-04T17:17:40
2020-01-29T13:32:42
3,922
0
1
0
C
false
false
import numpy as np import random import argparse import json def get_argument_parser(): parser = argparse.ArgumentParser() parser.add_argument('--output_file', type=str, default="output.txt") parser.add_argument('--sample_file', type=str, default="sample.txt") parser.add_argument('--coverage', type=floa...
UTF-8
Python
false
false
1,472
py
31
sample_generation_raptor_BSC.py
20
0.660326
0.650136
0
40
35.8
95
teaking/Python-exe
10,153,302,699,110
b0ad8439cc372740398251975d8d37b874fb5387
e7b274111a324b28871ac23d7120710645488bae
/ex39_2.py
1beb136306f3b0cf183f042789bd3c078f78f462
[]
no_license
https://github.com/teaking/Python-exe
5bbfd8c228af7ad80bd6aa850134a32d7d96bf5c
f3c17d7399f99f4f9e0f7ec790a90089d2bdd166
refs/heads/master
2021-01-25T00:10:26.329655
2018-04-22T00:40:55
2018-04-22T00:40:55
123,290,095
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
'''Dictionary Data Structure example''' #create a mapping of state to abbreviation states = { 'Oregon': 'OR', 'Florida':'FL', 'California':'CA', 'New York': 'NY', 'Michigan':'MI' } cities = { 'CA': 'Sans Fransisco', 'MI': 'Detroit', 'FL':'Jacksonville' } #add some more cities cities['NY'] = "New York" cit...
UTF-8
Python
false
false
1,424
py
48
ex39_2.py
47
0.652388
0.643961
0
74
18.243243
82
floriangardin/musiclang
12,524,124,648,140
6b9c7514d82f5ae96dbc2432081e791558bcacc5
7127cc2ab5eb59bfe93d872bbc3705a865bf0269
/musiclang/script/actions/counterpoint.py
7f13a49d8b5824cf0b4c27dd7a33edc9d356eea1
[ "MIT" ]
permissive
https://github.com/floriangardin/musiclang
f117b5c6f8acec33d239d4250629563a64bab3a4
4d593263c697065938772a212c0c063b2567a4c3
refs/heads/master
2022-10-29T00:25:08.050505
2022-10-24T18:58:14
2022-10-24T18:58:14
101,918,359
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .rythm import ProjectOnRythm from .utils_counterpoint import create_counterpoint from ..operators import * from .utils_actions import parse_relative_to_absolute from ..utils.chord_utils import offset_between_chords, project_on_one_chord, reproject_on_multiple_chords class CounterpointPart(ChordAction): """ ...
UTF-8
Python
false
false
3,632
py
111
counterpoint.py
104
0.660518
0.658315
0
95
37.210526
122
AndySer37/semantic_labels_sys
8,117,488,237,493
6c6857e9167e02bfeb855e35e5342ae6c3b638ed
451e809753c2833bf510f9f41c37c7d804d6a039
/catkin_ws/src/text_recognize/moran_text_recog/src/text_recognize.py
8e38a4f54cf55fa0150015df29fa72a221072b85
[]
no_license
https://github.com/AndySer37/semantic_labels_sys
91de213bb03e5142702e5165c9f633ab75544fad
074ea8bf015900bba053eb6ad8e789f627504808
refs/heads/master
2020-08-05T00:49:43.136415
2020-03-19T13:56:31
2020-03-19T13:56:31
212,338,077
2
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import numpy as np import cv2 import roslib import rospy import tf import struct import math import time from sensor_msgs.msg import Image from sensor_msgs.msg import CameraInfo, CompressedImage from geometry_msgs.msg import PoseArray, PoseStamped from visualization_msgs.msg import Marker, Marker...
UTF-8
Python
false
false
12,007
py
45
text_recognize.py
21
0.626135
0.598484
0
355
32.822535
141
Dogeek/pyprocessing
14,525,579,445,790
137b65a81a8637f012d6e51cead6e5af481aa816
4a2952ebb5e6a199b4949088f1695812457e5bc6
/pyprocessing/runner.py
087ee7d74477addbd0826b219ca23cf954f22569
[ "MIT" ]
permissive
https://github.com/Dogeek/pyprocessing
a7b4eb0ebde872f521e2d8964e22d21c7cd42766
14e832cd64384426ab29c5be35b2be6c56e6e04a
refs/heads/master
2023-02-04T22:44:37.736020
2020-12-23T15:42:08
2020-12-23T15:42:08
296,716,131
23
13
MIT
false
2020-09-26T10:46:55
2020-09-18T19:49:35
2020-09-26T07:07:41
2020-09-26T10:46:54
91
17
9
2
Python
false
false
import importlib.util import tempfile from pyprocessing import PyProcessing from pyprocessing.renderer import TkRenderer class Runner: renderers_mapping = { 'TkRenderer': TkRenderer, } @classmethod def from_sketch_path(cls, sketch_path, **kwargs): spec = importlib.util.spec_from_file...
UTF-8
Python
false
false
1,770
py
37
runner.py
30
0.59887
0.59774
0
60
28.5
70
boyko11/ML1-SupervisedLearning
12,498,354,844,282
c5c2c4658fbcf8b1594c86c6838a3d678950d431
40a1991796073db107aeb070c53cae781389eb91
/boosting.py
9fad7575768b54432edb915b6289fdcee130918d
[]
no_license
https://github.com/boyko11/ML1-SupervisedLearning
80c521a971560aed5c89bf83d7ca63b4ede0da7e
f5d6771bce5d7eed7f3b4bdcd70bbc94f1ee573c
refs/heads/master
2020-03-28T18:52:13.189670
2019-01-21T04:45:25
2019-01-21T04:45:25
148,921,219
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sklearn import ensemble from learner import Learner from sklearn import tree class BoostingLearner(Learner): def __init__(self, n_estimators=50, max_depth=1, class_weight=None): self.max_depth = max_depth #self.estimator = ensemble.GradientBoostingClassifier() self.estimator = ensem...
UTF-8
Python
false
false
1,151
py
16
boosting.py
15
0.659427
0.654214
0
28
40.107143
111
maelsin/Project-Euler
7,645,041,828,248
769ad171f26f105d9b23c9f3863f48c3b6daf03d
b36ce9c02cfbc0989ede45088534e85958f0ae8f
/Problem 6.py
d7755a938e2e16750322b95afc925d769f8d25b3
[]
no_license
https://github.com/maelsin/Project-Euler
d868069561a815e286652af08056e40296ee6d49
ed570d299cf1082a69902c5cfbc2cb5e13e49b30
refs/heads/main
2023-06-25T16:49:12.702571
2021-07-11T15:43:46
2021-07-11T15:43:46
384,986,266
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def SquareDifference(n): sumOfSquare = sum([i ** 2 for i in range(1, n+1)]) squareOfSum = sum(range(1, n+1)) ** 2 return squareOfSum - sumOfSquare print(SquareDifference(100))
UTF-8
Python
false
false
189
py
9
Problem 6.py
9
0.661376
0.613757
0
7
26.142857
54
ashish717744/100dayscodingchallenge
16,484,084,505,933
242fa370f59fdfd9e907e739405d6018692d7fa8
33d5078db9fef4e4db28210febb654ddcc824ba3
/code5.py
e458b0b907d163fb86fd5b8790dec0578fcbe7c8
[]
no_license
https://github.com/ashish717744/100dayscodingchallenge
b462f40e59ebc8b06bd17464a6b582f7a2805f70
2afdf1b124cd9f1d057c84e86e211c7ec9abeb87
refs/heads/master
2020-05-07T13:34:44.599224
2019-04-11T15:32:01
2019-04-11T15:32:01
180,555,365
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Question: Complete the script so that it prints out a list slice containing letters a, c, e, g, and i. letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] #Expected output: #['a', 'c', 'e', 'g', 'i'] keyword ='' for i in letters: if i =='a' or i=='c' or i=='e' or i=='g' or i=='i': key...
UTF-8
Python
false
false
351
py
8
code5.py
8
0.504274
0.504274
0
10
33.1
104
frr717/pythonProjects
2,199,023,301,920
d079a68a120818a56de053d76dbb7d614a8e370a
8be1b6b9ae64c696ec057331b89155954dbb3e1d
/chap14/calc.py
e24a4782e482eebd43a52400fa609e6dbfb5c993
[]
no_license
https://github.com/frr717/pythonProjects
d4969ede129b1c54991f133dbd7d7317195b353c
eb5afd17bc20331ba8ab40dac11b3c0ea70c924e
refs/heads/main
2023-05-07T16:40:03.368384
2021-05-11T02:08:47
2021-05-11T02:08:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Editor: aaaasubing # DevelopmentTime: 2021/4/29 9:13 def add(a, b): return a + b def div(a, b): return a / b # 如何去导入自定义模块
UTF-8
Python
false
false
156
py
120
calc.py
118
0.610294
0.536765
0
11
11.363636
33
MTNDStudiosXD/Xenonite-Bot
13,838,384,638,726
ce104392799cab10cd0c2767fc13c852dbd3d9d3
5d35c0e146e6c71a5ce81dcb16b048fce7bfd1a7
/main.py
95ba68073e356f721aed1d74ba076b1fb3afca05
[]
no_license
https://github.com/MTNDStudiosXD/Xenonite-Bot
f6a9b435fa6d044edcebd58c8b91d6290c5fb6b2
46425116d99f3be071e60d2928af34dba4c03697
refs/heads/master
2020-12-31T09:41:18.969541
2020-02-07T17:16:33
2020-02-07T17:16:33
238,983,313
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import discord from discord.ext import commands import asyncio import keep_alive import os #------------------------------------ from discord.ext import * from discord.ext import commands #------------------------------------- print("Bot loading...") bot = commands.Bot(command_prefix='x!') #prefix bot = ...
UTF-8
Python
false
false
1,816
py
6
main.py
2
0.664097
0.656388
0
57
29.877193
128
visw2290/Sel-python
25,769,805,486
0531ac5dda4601a987d611512df1f830d1885db9
7904467d003db1a9e482235e1967e215b7363f50
/working_with_elements/scroll_yahoo.py
b87826224b0bd72984e4b6c934c0a024bd95da7c
[]
no_license
https://github.com/visw2290/Sel-python
fd4661b2530458032d6429a6f0c6f6d6b45dee18
ea0075bf8b160a183686d8db4f54b7411c3530fa
refs/heads/master
2021-07-07T14:00:07.437111
2017-10-03T07:04:02
2017-10-03T07:04:02
105,622,417
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from selenium import webdriver import time class Scrollyahoo(): def test_scroll_yahoo(self): url = 'https://yahoo.com' driver = webdriver.Firefox() driver.maximize_window() driver.get(url) driver.implicitly_wait(3) driver.execute_script("window.scrollBy(0,2000);") ...
UTF-8
Python
false
false
888
py
52
scroll_yahoo.py
51
0.635135
0.608108
0
29
29.655172
99
ongbt/VisionaireDiscord
7,559,142,450,544
a477e095e355d5ed0fd54fd5985d23c1a75d12eb
c25d523e01b371a12595ea222aaea44137935cb2
/src/com/squeakysnail/visionairediscord/bot.py
f8e8efc2a4e2c2680b5a9281efd24e99c863f796
[]
no_license
https://github.com/ongbt/VisionaireDiscord
f7e3dc7161ffe1efdc51fb360927643f8715a120
53e35a899f28d74a724e989327e42cdbe8e47a9b
refs/heads/master
2021-06-23T05:11:37.309564
2017-08-06T09:09:54
2017-08-06T09:09:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on 5 Aug 2017 @author: bengt ''' import pandas import discord import asyncio from bs4 import BeautifulSoup import requests import re import datetime if __name__ == '__main__': print('Visionaire Discord Bot') url = "http://www.mysg-property.com/the-visionaire-ec.html" lastCheckedTime = datetime.dateti...
UTF-8
Python
false
false
2,976
py
5
bot.py
1
0.646169
0.633065
0
82
35.292683
158
atom-chen/Tools-2
10,239,202,033,913
52bf5978823e91232850ea3f0bccdb164ecd04ee
45b32ffcdc7ac3864c0b810b61deeee136616554
/ProtocolAnalysis/src/ProtocolAnalysis/UnitTest/TestFuncPtr.py
79e3f370a522c883130d2a7fca5254ce87d93b51
[]
no_license
https://github.com/atom-chen/Tools-2
812071cf6ab3e5a22fb13e4ffdc896ac03de1c68
0c41e12bd7526d2e7bd3328b82f11ea1b4a93938
refs/heads/master
2020-11-29T10:05:24.253448
2017-07-12T06:05:17
2017-07-12T06:05:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- class TestFuncPtr(object): ''' classdocs 测试函数指针 ''' def __init__(self): ''' Constructor ''' def funcHandle(self, hello): print("funcHandle called") @staticmethod def staticFuncHandle(...
UTF-8
Python
false
false
796
py
903
TestFuncPtr.py
644
0.497449
0.496173
0
42
17.571429
54
rodolfoksveiga/web-player
1,554,778,169,345
0008cc980d972b5a3d6076e30cd86f295206fefc
d167b6205a5f5ccf66ac6669ee99dbeab33a9316
/videos/views.py
0d96880f515878411629d403d31bb0786614b553
[]
no_license
https://github.com/rodolfoksveiga/web-player
f31b8070a4106064fb365f47ec663be79e3a1398
911768442baad932c8a40fe2c38858ffdde09a1c
refs/heads/main
2023-06-19T21:38:05.245606
2021-07-07T16:39:01
2021-07-07T16:39:01
358,970,130
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from django.contrib.auth.decorators import login_required import requests import vimeo from .models import Video from .forms import VideoForm def videos_view(request, *args, **kwargs): queryset = Video.objects.all() context = { 'obj_lis...
UTF-8
Python
false
false
2,516
py
15
views.py
5
0.584658
0.569157
0
97
24.938144
72
rishabdesai7/CollegeConnect
10,814,727,683,718
2c6ea8e5001561d95a30fee54a6b9738cce90130
1d0fef589acc5ffe2969e6763a224bc97da74104
/colcon/migrations/0003_auto_20200210_1804.py
2ff43a9b24abfc5bd76a3dc1c80f86520148f754
[]
no_license
https://github.com/rishabdesai7/CollegeConnect
ae3c5f35259f2fa844fbc9031029401f0ecf08e9
204480bffb981da9f400112e72e918c8a4537fdd
refs/heads/master
2022-04-12T04:01:07.547950
2020-03-03T15:49:29
2020-03-03T15:49:29
229,413,010
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.2.10 on 2020-02-10 12:34 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('colcon', '0002_auto_20200210_1603'), ] operations = [ migrations.RenameField( model_name='userdetails', old_name='mather_ph...
UTF-8
Python
false
false
488
py
22
0003_auto_20200210_1804.py
21
0.557377
0.491803
0
22
21.181818
48
vjcitn/BiocHookChecks
10,625,749,133,108
3a610c92134ee7790bfbe650c3e258f7498e3795
a0a6a68bbdf25a353bf8c50ef73ea4d0bf84b58c
/inst/repo-specific/git_hook_utilities.py
a48879489ff41f07d6290d3245ad081bde3fee0b
[ "MIT" ]
permissive
https://github.com/vjcitn/BiocHookChecks
6c0fc7530af58793ff3d61f94df9dc04d7fee450
175d3fd0ea4acdf60bbe9d92e9ca1f12a38e3404
refs/heads/main
2023-08-24T21:22:09.136068
2021-10-19T13:14:35
2021-10-19T13:14:35
418,923,350
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ Bioconductor hook utilities """ import subprocess from os import path HOOKS_CONF = "file:///home/git/repositories/admin/hook_maintainer.git" LOCAL_HOOKS_CONF = "file:////Users/ni41435_lca/Documents/bioc/hook_maintainer.git" def indent_xml(elem, level=0): """ Recursive function to ...
UTF-8
Python
false
false
1,557
py
11
git_hook_utilities.py
9
0.584457
0.579961
0
52
28.942308
82
JoaoFiorelli/ExerciciosCV
14,310,831,061,579
13d55b822e11f1cf9f42a03644650bea05611b5b
47020f6145548dbd1bef6bd9a79d9b473375d567
/Ex077.py
8c0d03892a7c1db70a4507cdc4d0f1a9c146467e
[]
no_license
https://github.com/JoaoFiorelli/ExerciciosCV
59ebd0556e5cee6787ac3a2fd476affc854eaac6
f6eba3c0a79f1bf249d48c0d07a2653bf16f0513
refs/heads/master
2023-03-12T04:03:10.811352
2021-03-04T00:07:45
2021-03-04T00:07:45
335,791,211
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
palavras = ("casa", "queijo", "sapeca", "politica", "armazenar", "amaciante", "louro", "idiota", "intenso") for p in palavras: print(f"\nNa palavra {p} temos as vogais ", end = "") for letra in p: if letra in "aeiou": print(f"{letra} ", end = "")
UTF-8
Python
false
false
301
py
101
Ex077.py
100
0.511628
0.511628
0
10
29.1
57
City-of-Helsinki/open-city-profile
1,408,749,310,661
4b3b091aaafdca0d695aafc481ba609daa42e24b
9cf7a03963e0db10d73930322331be2754ed5e2e
/profiles/tests/conftest.py
bac02a8966d019e40064e470208ea98dcb0dc513
[ "MIT" ]
permissive
https://github.com/City-of-Helsinki/open-city-profile
b338fbea74dea90034f75b9dd26172f968e752f9
b26bb4a7e1c7fc940e52a4868f03d71131819f95
refs/heads/develop
2023-06-11T05:34:02.486215
2023-06-06T10:37:42
2023-06-06T10:54:24
133,320,223
8
10
MIT
false
2023-06-06T12:04:46
2018-05-14T07:15:50
2023-01-15T12:47:53
2023-06-06T12:03:01
1,593
7
8
6
Python
false
false
from datetime import timedelta import pytest from django.utils import timezone as django_timezone from pytest_factoryboy import register from open_city_profile.tests.conftest import * # noqa from profiles.models import _default_temporary_read_access_token_validity_duration from profiles.schema import profile_updated...
UTF-8
Python
false
false
2,998
py
207
conftest.py
180
0.741494
0.74016
0
114
25.298246
82
nbonamy/downtobox
2,637,109,928,161
1c77256403f6d7219b3993d7ee70a4bae55c832f
7944faf34531f3710f6284fd62de39f7e4c552f5
/src/test.py
aa7a0a2ec1aebce31794b5a042f8a1d06e172288
[ "Apache-2.0" ]
permissive
https://github.com/nbonamy/downtobox
c285281397a80a46f6cb40c026d6d1d3d21e45cc
1e78654c8e729b58809036a64ed1e0e8dafa98e7
refs/heads/master
2023-08-21T22:03:45.715687
2023-07-22T02:21:25
2023-07-22T02:21:25
208,615,478
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 import unittest import utils # test data filenames = { 'Interstellar.mkv': 'Interstellar', 'Interstellar.avi': 'Interstellar', 'Interstellar.720p.mkv': 'Interstellar', 'Interstellar.MULTI.mkv': 'Interstellar', 'Interstellar.VOSTFR.mkv': 'Interstellar', 'Interstellar.VOST.mkv': 'Interstel...
UTF-8
Python
false
false
1,928
py
15
test.py
10
0.703434
0.613424
0
50
37.44
83
gteu/AtcoderCheatsheet
19,198,503,826,075
9937af98d8af293d52c5d4536fe5350539536f3a
ed9e7329a61151418d16c30111ac3a2eb26afa06
/problems/abc/abc246/f.py
49a54e064472441d42d986f255d0c145533351c4
[]
no_license
https://github.com/gteu/AtcoderCheatsheet
e6667ee822b3dd54f8304e70b8efa9b2cfd8047d
ec77adb14f5e71de705f284d2af2a6b79ab69e8c
refs/heads/main
2022-11-13T14:37:31.088246
2022-07-04T03:27:51
2022-07-04T03:27:51
260,360,907
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
MOD = 998244353 N, L = map(int, input().split()) S = [] for _ in range(N): n = 0 for s in input(): n += 2 ** (ord(s) - ord('a')) S.append(n) ans = 0 for i in range(1, 2 ** N): cur = 2 ** 26 - 1 c = 0 for j in range(N): if i >> j & 1: cur &= S[j] c += 1 ...
UTF-8
Python
false
false
468
py
313
f.py
312
0.401709
0.350427
0
25
17.72
37
sonsus/albert_paraphrase
13,159,779,823,950
772e58c6dd6fa03f4364afbb0d76a1e15debe14e
ce981b62c016f3df63f0b3365a30b55e50b43fed
/data/prepdata_test.py
9dd9a50271f4d8c9e3f67aa4d4b302b6f2f4316b
[]
no_license
https://github.com/sonsus/albert_paraphrase
7a928ff26b161c57d148c650b5ec415144ff66b0
50950c1183b7bc0d53bf95896f7ab9ef73e0b0dc
refs/heads/main
2023-02-10T08:37:45.847067
2021-01-06T15:17:47
2021-01-06T15:17:47
312,601,905
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fire import Fire import csv import jsonlines as jsl import json from collections import defaultdict from munch import Munch def open_vocab(vocabpath): vocab= Munch(json.load(open(vocabpath))) return vocab def tokenize(vocab, inputs): return [vocab.stoi[t] for t in inputs] def preptest(datapath='./t...
UTF-8
Python
false
false
968
py
27
prepdata_test.py
8
0.627066
0.616736
0
37
25.162162
95
GabrielWallace/ics140-prog-fundamentals
14,121,852,515,620
8f213d93642437a092e564f12b0434309cc257ec
3fe936b4d5880339627259e29a843d86b12a4d7a
/Programming Fundamentals/bug_collector.py
304329f0bab897714c2b31a12b5db28835e32a9a
[]
no_license
https://github.com/GabrielWallace/ics140-prog-fundamentals
c7703003cbfbc61a092ecfe4d8b4af28d1f2acda
125eb5b600c465160c521d49155be61400f31584
refs/heads/master
2021-01-23T10:55:09.212707
2017-06-01T22:43:06
2017-06-01T22:43:06
93,105,312
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
bug_count = 0 bug_sum = 0 for i in range(5): user_input = eval(input("Enter number of bugs for the day ")) bug_count = bug_count + user_input print(bug_count)
UTF-8
Python
false
false
171
py
36
bug_collector.py
34
0.643275
0.625731
0
6
26.833333
65
kjjeong104/MD_kjjeong
10,565,619,559,478
b04be2312bdc34fd108b588594fa43e8421ccb68
2246e52853c710a72f28a81a81093e3ae3b3dfae
/py_development/data_process/sapt_dimer/fit_NCCO_pe_test.py
813d5b6915fd29c69982a91028103c14c4ae9c4b
[]
no_license
https://github.com/kjjeong104/MD_kjjeong
39867e22a7cedcce6a47b90ddd8c6769e3e2f5b8
2963031e96926bc7c469e81fee7ff996fdcfaee3
refs/heads/master
2022-12-28T20:19:50.952020
2020-10-10T12:04:35
2020-10-10T12:04:35
302,845,641
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function from simtk.openmm.app import * from simtk.openmm import * from simtk.unit import * from sys import stdout from time import gmtime, strftime from datetime import datetime import numpy as np from scipy.optimize import curve_fit # load fake pdb file. Later, new modeller will be defin...
UTF-8
Python
false
false
2,619
py
362
fit_NCCO_pe_test.py
177
0.752577
0.723559
0
78
32.576923
113
Groestlcoin/c-lightning-plugin-collection
377,957,145,361
bd54e1d141b5ba863e4f72d801acb842ab075e9a
edb1c2683b031fbcb51f514dbeba27c2e62473c9
/simpleFundsOverview/funds.py
f3f2be4854e10e061b059e3a2c2d0865bb4b8941
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/Groestlcoin/c-lightning-plugin-collection
d9e760414aceeab69b9ac76e034888a5b1946632
a2cb8b4ca49bc2112be69b9b2a4bb5521e0bb62d
refs/heads/master
2020-04-16T11:28:15.945997
2019-01-14T11:30:12
2019-01-14T11:30:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 """ This plugin gives you a nicer overview of the funds that you own. Instead of calling listfunds and adding all outputs and channels this plugin does that for you. Activate the plugin with: `lightningd --plugin=PATH/TO/LIGHTNING/contrib/plugins/funds/funds.py` Call the plugin with: `lightn...
UTF-8
Python
false
false
3,111
py
1
funds.py
1
0.666024
0.658309
0
107
28.074766
103
TardC/UDP_Chatroom
5,695,126,651,787
bf2f52f15e9820adca6c890f4ca3653b3bf5701a
6350899085abea5195835baab2fe1e96b7ee3f19
/client/client_c.py
5eaa3e7fbef9a3873b789aa263b4c7c11c2e8330
[]
no_license
https://github.com/TardC/UDP_Chatroom
8bdaa5e499a655a9144a751cc87962620fbf22ec
bef2f777b7f67dca0f1fd4afb77b56d61c7ad271
refs/heads/master
2021-01-20T13:56:43.251321
2017-05-07T15:43:36
2017-05-07T15:43:36
90,542,209
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 from socket import * def init(): client_c_name = gethostname() client_c_ip = gethostbyname(client_c_name) client_c_port = 8886 client_c_address = (client_c_ip, client_c_port) client_c = socket(AF_INET, SOCK_DGRAM) client_c.bind(client_c_address) return client_c def main...
UTF-8
Python
false
false
663
py
4
client_c.py
3
0.586727
0.558069
0
33
19.090909
51
fabric-testbed/CredentialManager
16,441,134,812,886
84eacb7d1073e13ac0d412068c823b8da41f97c2
3538fa5a4523e309292a6f2afd214d8fb74b252d
/fabric_cm/__init__.py
9d72f7b512d291c023105487aa05df7cca14c51f
[ "MIT" ]
permissive
https://github.com/fabric-testbed/CredentialManager
81c16e6edea549854cbf6dad7d7ec5c8f261ec9e
0c211e7b1efeead371100019da5574c6d8c770ea
refs/heads/master
2023-09-01T19:53:36.443917
2023-06-12T18:42:55
2023-06-12T18:42:55
242,810,981
1
0
MIT
false
2023-09-11T20:07:01
2020-02-24T18:26:43
2022-04-26T19:54:17
2023-09-11T20:07:00
2,792
1
0
3
Python
false
false
__version__ = "1.5.0" __API_REFERENCE__ = "https://github.com/fabric-testbed/CredentialManager"
UTF-8
Python
false
false
96
py
53
__init__.py
40
0.6875
0.65625
0
2
47
73
NurymKenzh/ELake
9,818,295,279,907
3596e7420c1253e20abea9766e9dbc18c9f831c3
40b31a6b1aa0e73e50f7f150c287f76ae58928ac
/ELake/Python/MergeShpLayers.py
22e2a864daffa481559b75eb5bc3315464c75140
[]
no_license
https://github.com/NurymKenzh/ELake
5ef98c70e3f765e470c51c0e0eb25761681be933
27160ec4a4cc6b1bf2f5a5ac96a5e598bd395f52
refs/heads/master
2020-03-19T11:00:43.521421
2019-05-15T06:47:46
2019-05-15T06:47:46
136,421,158
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import glob import shapefile folder = raw_input() outfile = raw_input() files = glob.glob(folder + "/*.shp") w = shapefile.Writer() for f in files: r = shapefile.Reader(f) w._shapes.extend(r.shapes()) w.records.extend(r.records()) w.fields = list(r.fields) w.save(outfile)
UTF-8
Python
false
false
278
py
154
MergeShpLayers.py
9
0.690647
0.690647
0
14
18.857143
36
atliSig/isfrost-django
9,474,697,875,456
1d2674767d2f5cb4f84ae7024ce535cc60dbd6f5
4afb48a927ad70765fd100d800d979b529ca7f4b
/isfrost_app/migrations/0023_auto_20171218_1709.py
b8b9b187421dda84073d9cf98b8040b300a78142
[]
no_license
https://github.com/atliSig/isfrost-django
305f5ca73573387af56c3adf9d53ff08c5bee753
c94ab7d6a84cee0f425fea8a9ac6a9a6f35b47ab
refs/heads/master
2021-09-10T21:22:41.959655
2018-01-12T01:29:45
2018-01-12T01:29:45
113,074,471
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0 on 2017-12-18 17:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('isfrost_app', '0022_auto_20171218_1650'), ] operations = [ migrations.AlterModelOptions( name='company', options={'ver...
UTF-8
Python
false
false
782
py
66
0023_auto_20171218_1709.py
44
0.57732
0.533505
0
27
27.740741
91
AlexandreSenpai/video-hub
16,140,487,129,506
d95889797dbed75331439133aa13bb69941e1c4b
37d1e9069fb1f4fbfe46eb075a3bf628c2b5ca53
/__init__.py
f830ca8a5e8796dda52e76d09d45a17792bb9c29
[ "MIT" ]
permissive
https://github.com/AlexandreSenpai/video-hub
97e66f54e2a10b31e20e535201083b52ecf2479d
d20b580e136d40c742398e27a59748706d09cc81
refs/heads/master
2020-08-02T15:46:37.193893
2019-11-17T18:31:30
2019-11-17T18:31:30
211,416,012
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask, render_template, request, redirect, session from utils.download_file import Upload from utils.storage_utils import Storage from utils.tk_generator import id_gen from datetime import datetime from utils.firebase_utils import firebase import os app = Flask(__name__, template_folder='./pages/') s...
UTF-8
Python
false
false
3,922
py
14
__init__.py
5
0.592706
0.581994
0
109
34.981651
171
yaront/BMI-MutSig
3,135,326,136,798
551b64fd09730fb55845b6390397522fb6705630
12f74e3cefc01cae4d07155b9915a2b5f2b605d1
/scripts/Emdometrial/Statistics/t_test_avg_bmi.py
05f4da6dbd260652d22c2c139ed51a172bf4981f
[]
no_license
https://github.com/yaront/BMI-MutSig
211f684998006104b77e1e8557201b384455b768
456dc793ab2dbd955b5cef098fd14539d428de0b
refs/heads/master
2022-02-22T23:25:16.062334
2019-10-06T18:53:47
2019-10-06T18:53:47
151,335,574
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Sep 7 22:19:05 2018 @author: tomer """ #%% # ================================================= # # T-test for the average BMI of mutaated VS wt # ================================================= import numpy as np import pandas as pd import scipy.st...
UTF-8
Python
false
false
1,108
py
11
t_test_avg_bmi.py
9
0.546931
0.529783
0
42
25.380952
131
UMNLibraries/experts_dw
11,038,065,991,507
1029e567e04e15d6081822f5c702d10dcc3489c0
9d73e270f44b8893c11d1aafb4c15a0d5b359bae
/legacy/populate_umn_dept_pure_org_uuid.py
b54f25feb8d1d80b8ec9d0e6b4b75e4153a8e4c9
[]
no_license
https://github.com/UMNLibraries/experts_dw
55011ee5afda65ac26b57507aec07dd171b85217
897c5442fb6a92336247c1372e5387ee7dc60510
refs/heads/main
2023-04-27T19:08:38.045074
2023-04-27T18:34:55
2023-04-27T18:34:55
81,886,376
2
0
null
false
2022-04-12T20:03:01
2017-02-14T00:28:00
2022-01-13T19:08:00
2022-04-12T20:03:00
2,254
2
0
7
Python
false
false
# One-off to populate umn_dept_pure_org.pure_org_uuid, assumed to be empty. import db session = db.session('hotel') from models import UmnDeptPureOrg, PureOrg for umn_dept_pure_org in session.query(UmnDeptPureOrg).all(): pure_org = ( session.query(PureOrg) .filter(PureOrg.pure_id == umn_dept_pure_org.pure_o...
UTF-8
Python
false
false
550
py
289
populate_umn_dept_pure_org_uuid.py
267
0.696364
0.696364
0
19
27.947368
75
EduardoSanglard/ProjetoEstudos
15,676,630,658,659
5083a9c96cb3f375f823125d4618e152240fa1d9
50637f643fa6630e42a4e3cbf0e6ed62e24c63f8
/EstruturaSequencial/ex2.py
443a4c2d139f8a7bd736428ae2829824e005fadf
[]
no_license
https://github.com/EduardoSanglard/ProjetoEstudos
75f59b86b0c60b82d6d36e9c5c035157f8259936
d810c5ddbeb67768189e0783af70245f6d066484
refs/heads/master
2020-04-13T09:25:20.054921
2020-02-16T01:46:42
2020-02-16T01:46:42
163,110,550
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
numero = input('Informe o numero: ') try: print('O numero informado foi ', int(numero)) except ValueError: print('Voce nao digitou um numero')
UTF-8
Python
false
false
151
py
47
ex2.py
43
0.688742
0.688742
0
6
24.333333
49
akshat343/Python-Programming
5,952,824,684,724
4aa4df60d88482f8426199d9d4b461528e279a7f
a93cfeed4c2a2833f1896bf5f39aa31955f21efe
/Algorithms/Greedy Algorithms/Huffman_coding.py
c1a5219d01a5ffd77f8a95485af49eb5d149fd23
[]
no_license
https://github.com/akshat343/Python-Programming
ae83d05408fb67d51d388df22492dfe743596b2a
f5a1540770388e49d65536352ce1816c406d5229
refs/heads/master
2023-08-05T19:58:40.293770
2021-10-07T07:25:46
2021-10-07T07:25:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Author : Robin Singh Implementation Of Huffman Coding Huffman coding is a lossless data compression algorithm. In this algorithm, a variable-length code is assigned to input different characters. The code length is related to how frequently characters are used Most frequent characters have the smallest codes and lo...
UTF-8
Python
false
false
1,663
py
84
Huffman_coding.py
81
0.630186
0.616356
0
61
26.245902
104
amithasarath/django-vastrakala
18,047,452,584,102
54b5771b0d33ae4add44cd71914ae9a0f48a9ce2
75cb5dc378d91de9abeb7bd2b95d34f35d6abd35
/vastrakala/accounts/forms.py
c05f0c3e8644405734977eb03fc6bbaa9a4770e3
[]
no_license
https://github.com/amithasarath/django-vastrakala
3633b6ca4eb8ca268ebb3bcad43a578a7d4ee11d
72959f623e2a4f47a09ad3d87bbed22b209f6201
refs/heads/master
2020-03-29T05:08:13.574918
2018-11-12T09:29:05
2018-11-12T09:29:05
117,645,180
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from . models import Dealer,Reseller,Customer,SalesOrder from django.utils.translation import gettext_lazy as _ from django.conf import settings class DealerForm(forms.ModelForm): class Meta: model = Dealer fields = '__all__' widgets = { 'dealer_code': f...
UTF-8
Python
false
false
5,727
py
67
forms.py
26
0.478435
0.472848
0
157
35.477707
100
aleMartinelli04/ultimo4lifebot
19,602,230,744,723
a2b365b181101cac279881f43d91057e626e3102
24d71850f14329d34cb118794f3d2ec773b0f5ed
/plugins/api.py
ca649a3de0f4c28d1938f71991576173accab137
[]
no_license
https://github.com/aleMartinelli04/ultimo4lifebot
2dc78e5bad25ba9e98f579192129b1b0bab48cda
742adab95bc919c4aa60f6bfa9456a178ed48125
refs/heads/master
2023-04-12T19:38:09.756806
2021-05-08T08:56:14
2021-05-08T08:56:14
324,736,304
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import randint from pyrogram import Client, filters, emoji import requests import config PREFIXES = ["Ultimo ", "ultimo "] @Client.on_message(filters.command("gatto", prefixes=PREFIXES)) async def on_cat_api(_, message): message = message.reply_to_message or message r = requests.get('https://ap...
UTF-8
Python
false
false
1,344
py
18
api.py
13
0.645089
0.634673
0
48
27
86
deepsleeping/dev
4,114,578,695,434
559dff4746485ab035220e322304e895fa8d1afa
c42c21ca1d17595f0163097d521252c95d4ba08e
/hardgame.py
f0d267d88123c3d6eea3d7a11a85b20de124b1cc
[]
no_license
https://github.com/deepsleeping/dev
913892b985df2287806cae6c2051aef6eaf07bf7
3c8d9a3034da6dad9cbbcbffa5224cf76cbbc37e
refs/heads/master
2021-01-13T17:24:06.996392
2017-02-13T11:45:29
2017-02-13T11:45:29
81,791,861
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random print("안녕 나는 게임파이썬이야") point=100 rand=random.randrange(1,101) box=[] while(point>0): i=input("1부터100까지중 원하는 숫자를 골라서 적어:") if(rand>int(i)): point = point -1 box.append(i) print("그 숫자보단 커") elif(rand<int(i)): point = point -1 box.append(i) print("그 숫자보단 작아") else: print("축하해") print("네...
UTF-8
Python
false
false
531
py
9
hardgame.py
9
0.625304
0.591241
0
22
17.681818
38
brutalic/pynet_brutal
1,563,368,145,786
b087eaf20f79de1b1280bb59d174641d11bf55af
6c752a0f0182872f3f1af9d465963505f9fc859b
/class2/BrutalTelnetLib.py
a4567545497507241a1f150b89e087bfaeaa733d
[ "Apache-2.0" ]
permissive
https://github.com/brutalic/pynet_brutal
6802ff351788b354f5375c94751a2692a63127a6
2afb94430dc9a19eeaf075460494a44e93fab683
refs/heads/master
2020-05-22T04:39:37.878082
2016-11-28T22:01:46
2016-11-28T22:01:46
64,899,880
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import telnetlib import time import yaml IpDevice = '184.105.247.70' TelnetPort = 23 TelnetTimeout = 5 User = 'pyclass' Pass = '88newclass' #Initiating a Telnet session RemoteTelnet = telnetlib.Telnet(IpDevice, TelnetPort, TelnetTimeout) #Login portion TelnetUser = RemoteTelnet.read_until("sernam...
UTF-8
Python
false
false
1,098
py
88
BrutalTelnetLib.py
39
0.752277
0.733151
0
48
21.833333
68
kalpeshshardul/CS-5700-Fundamentals-of-Computer-Networking
12,970,801,268,681
62d4162e93857252592ab6dc9a7d5f8826b7db12
555d38d7e9ceef18cf007295b0dc902cf9fea785
/FCN_projects/project5_CDN/dnsserver.py
ffa0db325bb0ef3cbddd7c62cd8be3571380f11d
[]
no_license
https://github.com/kalpeshshardul/CS-5700-Fundamentals-of-Computer-Networking
52024b93c5d4df4139278ba0dfe35858155bfe69
041266fad00a9a8a9001f6035cfa410e8f8e2755
refs/heads/master
2021-05-02T10:16:26.592986
2018-02-08T18:46:49
2018-02-08T18:46:49
120,792,920
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import socket,sys,threading,struct,math,collections,urllib,urllib2,json from thread import * ###############################################################HEADER DETAILS####################################################### global dns_response def head_construct(ident): #Constructing header ...
UTF-8
Python
false
false
5,413
py
8
dnsserver.py
5
0.535747
0.45908
0.000369
115
46.078261
230
ipipip1735/PythonBasics
7,413,113,599,480
81564b1add53843870b53a0cfc53d013c2899b20
d354ddcd86dc83b0ecaeda0e5fd7e33d0036c319
/buildIn/DataTypes/collectionsModule.py
d61d1aed9912f6e290c6d141b933ec1ac8d8bfc8
[]
no_license
https://github.com/ipipip1735/PythonBasics
1eff2fa8c750f6f9ffff855fdffcfec5dd5fbfa1
b52e2850cb0f30573eaadd00ffc48f5c5c723fb6
refs/heads/master
2022-05-01T17:57:50.103372
2022-03-15T21:45:04
2022-03-15T21:45:04
251,281,482
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import collections # ''' # collections模块 ChainMap对象 # ''' # dictOne = {'one':111, 'two':222} # dictTwo = {'two':999, 'three':333} # chainMap = collections.ChainMap(dictOne, dictTwo) # list = list(chainMap)#导出key # print(list) # dict = dict(chainMap)#导出map # print(dict) #复制 # dictOne = {'one':111, 'two':222} # dictTwo...
UTF-8
Python
false
false
1,567
py
23
collectionsModule.py
21
0.63618
0.572293
0
79
17.835443
89
atmani-massinissa/UD2OIE
12,687,333,406,807
7ad174fecef071abdd735095de45d6dc94e83dfb
364c771b7d74d598a193cea9c4383a6de92bc84b
/train.py
e54737a9e3f2c0ec517b34f78887e5417177d02e
[]
no_license
https://github.com/atmani-massinissa/UD2OIE
5513c9cfe4bdd992a1bff46365ca52d47dabdee0
4c972cdf8cdcb8b10abfb295b61b3c0f624ea4a8
refs/heads/master
2022-03-08T18:54:46.530384
2022-02-09T16:58:03
2022-02-09T16:58:03
346,315,750
3
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import warnings import os import logging os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' #warnings.simplefilter(action='ignore', category=FutureWarning) warnings.simplefilter(action='ignore') warnings.filterwarnings('ignore') def warn(*args, **kwargs): pass warnings.warn = warn #warnings.filterwarnings("error") logging.ge...
UTF-8
Python
false
false
563
py
107
train.py
17
0.765542
0.763766
0
18
30.277778
77
bonoron/Atcoder
8,211,977,486,511
c0f12e782a41549cdb57001b2c1f42f89eff4f66
cba8f623e613cfb0cdba73fb373bec68f7bbfdcb
/ARC051A.py
871c7455726b0fd557e093b392cc81300573b42b
[]
no_license
https://github.com/bonoron/Atcoder
7d0af77a12b40ce2bdebf5ab5a76462629a03ea5
e8c0d1ed7d113a0ea23e30d20e8d9993ba1430fa
refs/heads/master
2022-12-24T20:00:32.702741
2020-09-24T07:03:48
2020-09-24T07:03:48
271,685,972
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def dis(x1, y1, x2, y2): return ((x2-x1)**2 + (y2-y1)**2)**0.5 x1,y1,r=map(int,input().split()) x2,y2,x3,y3=map(int,input().split()) print("NO" if (x2<=x1-r)and(x1+r<=x3)and(y2<=y1-r)and(y1+r<=y3) else "YES") print("NO" if (r>=dis(x1,y1,x2,y2))and(r>=dis(x1,y1,x2,y3))and(r>=dis(x1,y1,x3,y2))and(r>=dis(x1...
UTF-8
Python
false
false
343
py
221
ARC051A.py
221
0.568513
0.446064
0
9
36.333333
119
lcrepet/AdventOfCode2018
13,554,916,786,470
2ff2154d0c219b376edde03951980723091a58e1
0ea3e4698791964bb0ac8c3d07252d818dfabedc
/python/day_3/tests/test_overlapped_claims.py
d411161421021dead59bdd16992591e5441f44f5
[]
no_license
https://github.com/lcrepet/AdventOfCode2018
2a1c5229c1d445c10587748330db8074e7b47c17
7efa1483ed21eb1c30bc01157a7129cf538bf6a2
refs/heads/master
2020-04-10T06:27:35.332561
2019-07-19T06:55:54
2019-07-19T06:55:54
160,854,976
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from overlapped_claims import * import fabric def test_count_overlapped_claims(): claims = [fabric.Claim('1', 1, 3, 4, 4), fabric.Claim('2', 3, 1, 4, 4), fabric.Claim('3', 5, 5, 2, 2)] assert count_overlapped_claims(claims, 7, 7) == 4 def test_count_overlapped_claims_with_no_claim...
UTF-8
Python
false
false
374
py
46
test_overlapped_claims.py
28
0.601604
0.545455
0
12
30.166667
53
danwillscott/pyFun
7,181,185,345,416
e477f8f6fd48c2bb7f221004aa9e3000f6c95004
d564c631423350dbf9ea55b7e6f28620b6b74290
/avg.py
cbebc49deb56d47dda5c2aff7ec8f3bf3eddd1a6
[]
no_license
https://github.com/danwillscott/pyFun
32759f9fe9e0f31f2510149865d25f6a6d11a093
eada1f29a42cf5cb96aa4b5e3b2573af1098ecd3
refs/heads/master
2021-01-12T02:04:13.260364
2017-01-10T18:44:26
2017-01-10T18:44:26
78,465,028
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print "This will give you the average of a list!" def avgOfList(a_list): list_len = len(a_list) list_sum = 0 for num in a_list: list_sum = list_sum + num list_avg = list_sum / list_len print list_avg a = [1, 2, 5, 10, 255, 3] avgOfList(a)
UTF-8
Python
false
false
248
py
13
avg.py
13
0.645161
0.604839
0
13
18.153846
49
MartinToilet/vector-field
12,403,865,595,314
1bdc6b66c1b94d0ae9e7473f4cba36e2df24e80b
d25c7a586d8b8c6c7a033d247f53219cbb96df24
/game.py
d19464fe82d660a94e860443a7eb9bbc313bbf76
[]
no_license
https://github.com/MartinToilet/vector-field
54e87c0c3f9387125fa41c11203835d15d2b5c32
b3218b2b456a507516f4d45e60fc5c9615b25a5f
refs/heads/master
2022-10-19T01:10:40.804568
2020-06-12T07:20:53
2020-06-12T07:20:53
271,456,538
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame import random import math import os import sys def resource_path(relative_path): try: base_path = sys._MEIPASS except Exception: base_path = os.path.abspath(".") return os.path.join(base_path, relative_path) width = 1600 height = 1000 window = pygame.display.set_mode((wid...
UTF-8
Python
false
false
1,848
py
1
game.py
1
0.550866
0.516775
0
81
21.814815
81
darkcoders321/Torikus-p
8,289,286,888,136
247af585606b77449b06aa76b72a247a9de7411e
e3b5611d61c009023a5664745e8d9c78995fab18
/python/lyn/pow.py
733a6a54288446ce4c38b6fdc6cc9e5d15eab410
[]
no_license
https://github.com/darkcoders321/Torikus-p
9d10bf5d205855d7fde2c4a827757e0509f56616
be84b40d220410eb0316f054558354ae3e625b9f
refs/heads/master
2021-01-09T13:56:53.484014
2020-02-23T01:15:33
2020-02-23T01:15:33
242,328,088
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
chanceoftails = 0.5 inarowtails = 3 print(pow(chanceoftails, inarowtails)) chanceofone = .167 inarowone = 2 print(pow(chanceofone, inarowone))
UTF-8
Python
false
false
144
py
51
pow.py
50
0.770833
0.722222
0
7
19.571429
38
Hender-hs/Image-DB-in-Flask
15,058,155,368,316
13600239d2b4b0f34ba66b20de98e6279a3a7eca
63c2ba0e46b479331b045e71c567b711129e000f
/app/modules/especific_file.py
33ae3e54e84fadf96b2d1bf46064019d2ba1d577
[]
no_license
https://github.com/Hender-hs/Image-DB-in-Flask
fd0065a5a93abd17aaef49da3adff5b9b7a598ea
333a8a6bbe977094af19f2563ac54abca8b6ef7e
refs/heads/master
2023-07-23T13:33:36.624899
2021-09-05T21:34:37
2021-09-05T21:34:37
397,964,102
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from os import walk def get_especific_file_to_download(file_name: str, UPLOAD_FOLDER: str) -> tuple : def getting_current_file_dir() -> list : current_dir_files = [] for item in walk(UPLOAD_FOLDER): dir_files_list = item[2] if len(dir_files_list) ==...
UTF-8
Python
false
false
818
py
16
especific_file.py
14
0.581907
0.57824
0
36
21.722222
111
jonespm/etc-jupyterlab-telemetry
8,942,121,934,677
71a3b822f9b15818d435a640465182c34fdaf87e
546b409e81d456c7592893ff8bee95e453f91449
/etc-jupyterlab-telemetry/handlers.py
91aea543dfc2a075621a1d8d379c8f43ba5b0699
[ "BSD-3-Clause" ]
permissive
https://github.com/jonespm/etc-jupyterlab-telemetry
c48cecdd97e4701ed349d3aed5511d2e1cdc5424
af296bf8401c4e0ca5ce2b73a6399cb61163fc29
refs/heads/main
2023-04-24T06:01:07.972684
2021-05-12T19:23:32
2021-05-12T19:23:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import os from jupyter_server.base.handlers import APIHandler from jupyter_server.utils import url_path_join import tornado class RouteHandler(APIHandler): # The following decorator should be present on all verb methods (head, get, post, # patch, put, delete, options) to ensure only authorized user...
UTF-8
Python
false
false
1,103
py
9
handlers.py
5
0.657298
0.657298
0
30
35.766667
110
rscnt/etl-pipeline
609,885,382,423
82d00099a1b6b00839fb9115dc20ac2c12dca516
4de59ac9d699f1ca1dc6f8253c7d44ea5aa880a4
/pipeline/pipeline/tasks/cities_metrics_v1.py
c4013375eb1da84ded4beeac8c28d629449db50a
[]
no_license
https://github.com/rscnt/etl-pipeline
73435807a531e98e860b54f0c1bab410c269f1bf
2e9aecdc6600e9fea24256664ca6091b5655b0ab
refs/heads/master
2023-01-03T16:35:21.925822
2020-10-18T11:07:25
2020-10-18T11:07:25
289,469,955
1
0
null
true
2021-11-18T20:43:46
2020-08-22T10:50:19
2020-10-18T11:07:28
2020-10-18T12:29:50
5,744
0
0
0
Jupyter Notebook
false
false
"""Contains the code written for the data_pipeline as Luigi tasks""" import datetime import json from datetime import date, timedelta import luigi import requests import pandas as pd from pipeline.extract_history_v1 import extract_history_command from pipeline.calculate_metrics_v1 import ( calculate_city_states...
UTF-8
Python
false
false
6,779
py
51
cities_metrics_v1.py
21
0.642425
0.639475
0
209
31.435407
94
multikillerr/Hacking
6,356,551,619,523
e16b16c17fd17850b0e05db85353ddc192ba0510
8818c1ae07d328c017cbd3596c67af444f1ba05f
/file.py
34adae560073a8ce8179a9cc134caf67dca866cd
[]
no_license
https://github.com/multikillerr/Hacking
d275241f3d6a9b42406f3d4ff802d8ed06514219
8339df4478f6644a4eea3fd8a033d3f500467d0d
refs/heads/master
2021-07-24T08:46:14.077091
2019-01-20T04:26:05
2019-01-20T04:26:05
153,230,112
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import shutil filename=raw_input("Enter the file name: ") def file1(file): file=open(filename,"r") for line in file: lines=line[0:8] with open("Test1.txt","a") as f: f.write(lines) f.write("\n") def file2(file): file=open(filename,"r") for line in...
UTF-8
Python
false
false
674
py
16
file.py
12
0.52819
0.501484
0
29
22.241379
43
nedagarmo/Libraries
6,846,177,892,959
8b94cf5f66a7a8f96a5ea613483f791ff9927809
b27842867322b13b6e9d4d91f58d14d29c53ce88
/src/application/exceptions.py
73fb3deb2508ea0c39d954c8743e7bbe397fd0ce
[ "Apache-2.0" ]
permissive
https://github.com/nedagarmo/Libraries
50591e02b9720c5f7ab1571435e72e96dbfc6ad9
7618bd329593684d475a9e64a38409ffb30697df
refs/heads/main
2023-05-27T18:46:11.509015
2021-06-21T01:33:13
2021-06-21T01:33:13
376,500,863
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class WrongDataException(Exception): def __init__(self, data=None): self.data = data or {} def to_dict(self): return self.data
UTF-8
Python
false
false
153
py
34
exceptions.py
29
0.601307
0.601307
0
7
20.857143
36
saeedeMasoudinejad/BootCamp_Projects
12,807,592,522,171
040b54eaac62ea4457252f04c0a5d84ef6bf01ce
f4cf658f4bb4c981a8485d17d95b26cfbd239f86
/Online_shop/OnlineShopProject/loginapp/urls.py
3b0efc0606ecd0cc81e457fdb6ebf51a49cba322
[]
no_license
https://github.com/saeedeMasoudinejad/BootCamp_Projects
968867c856b14dea5311e2d16ddc7b2f441b4007
bbe483ca3993382a320762a916893801b62924c0
refs/heads/master
2023-04-27T10:23:19.514915
2020-03-22T14:21:04
2020-03-22T14:21:04
231,568,924
1
0
null
false
2023-04-21T20:45:02
2020-01-03T10:54:31
2020-03-23T14:29:24
2023-04-21T20:45:02
33,308
1
0
2
Python
false
false
from django.urls import path, include from . import views from .views import SignUp, Profile from django.views.decorators.csrf import csrf_exempt # from OnlineShopProject.contentapp import urls urlpatterns = [ path('home/', views.load_main_page, name='home'), path('signup/', SignUp.as_view(), name='register'), ...
UTF-8
Python
false
false
452
py
84
urls.py
64
0.714602
0.714602
0
12
36.75
69
chagan1985/PythonByExample
2,645,699,864,805
2fa66245a2138d024d216f420435a23056fa1624
48cb0bd14a0f83e9f7ec58a76ac2bc6b029ff6f5
/ex046.py
b1fce77e211364a21bf31ef11af4d03eacbf0174
[]
no_license
https://github.com/chagan1985/PythonByExample
c8aa81f9d90c8f5dde3bac6357880b3b080b9443
db1d7614542fda09dfdd6d04aa90bdf3e181b671
refs/heads/master
2022-12-31T11:21:57.787270
2020-10-20T19:39:49
2020-10-20T19:39:49
271,625,654
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
##### # Python By Example # Exercise 046 # Christopher Hagan ##### num = 0 while num < 5: num = int(input('Enter a number: ')) print('The last number entered was {}'.format(num))
UTF-8
Python
false
false
185
py
150
ex046.py
147
0.621622
0.594595
0
11
15.818182
51
hanwufeng/Programs
1,529,008,357,649
272346b59113688a7c2d469625b8b38b5df09a17
e5a9d6a5d8901416ead1712e85478087f05a0a3c
/program/switch_run.py
4060c808baf04d3f2f92d785744fa5cfb5aae6a1
[]
no_license
https://github.com/hanwufeng/Programs
58076d1edbc723709d143975142a5f8b9c2defcd
625f3bbddd2dcb70e705a38b5990c56e086c7f66
refs/heads/master
2020-05-29T19:25:30.157002
2019-05-30T02:18:00
2019-05-30T02:18:00
189,329,785
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # !/usr/bin/python import paramiko import threading import time import os from conf import * # 拿到cmd.txt文件中的命令 with open('./cmd.txt', 'r') as f: cmd_line = f.readlines() cmd = [] for c in cmd_line: cmd.append(c) # 定义连接与操作 def ssh2(ip, username, passwd, cmd): try: ssh = par...
UTF-8
Python
false
false
937
py
18
switch_run.py
15
0.560088
0.54796
0
41
21.121951
75
amito/rpi-surv-cam
14,147,622,302,169
7785efd90d9834eb355d77ae0ee0f9944de28096
07eb6608c25cde5894432a79f4c37ac1616cd2fa
/servo/maestropacket.py
4c7e50535289cb2016afd9cfbd5d49237fb1a0d3
[]
no_license
https://github.com/amito/rpi-surv-cam
ceaaec9f03d8a4b20004d88378ac79c9135e41e1
30d5604e2834f39fc5b2b1c8bd6fc01f2126803d
refs/heads/master
2021-01-17T15:31:24.689196
2016-05-27T08:08:38
2016-05-27T08:08:38
48,494,390
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import struct import logging from analogpacket import AnalogPacket logger = logging.getLogger("servoLogger") class MaestroPacket(AnalogPacket): _HEADER = struct.pack('BB', 0xaa, 0x0c) ################################# #### Maestro Channel Packets #### ################################# # Maestr...
UTF-8
Python
false
false
6,998
py
42
maestropacket.py
32
0.61046
0.599457
0
214
31.700935
79
RamonBomfim/lab-de-prog2
11,347,303,601,749
57062e3996d7fa65be0921d23eb70b607e1a0624
06c962f8d2a7c40ec00a0e11c1d17a2d9080beb0
/aula-20-10/teste-conexao.py
48a04497c177ab70f74f108029227293ce861334
[ "MIT" ]
permissive
https://github.com/RamonBomfim/lab-de-prog2
ccdcc9c2ba9896bc76a5a37e6a52d1bb58e031f5
fdc054cf092cd1a06d34a2bdc0edcb5826f79775
refs/heads/master
2023-01-11T05:04:44.673743
2020-11-13T23:58:19
2020-11-13T23:58:19
301,205,879
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import psycopg2 conn = psycopg2.connect(database='empresa', user='postgres', password='941215', host='localhost', port='5433') print("Sucesso na conexão ao Banco") cursor = conn.cursor() cursor.execute("SELECT * FROM empr...
UTF-8
Python
false
false
434
py
29
teste-conexao.py
26
0.554273
0.524249
0
21
19.619048
43
harikishoremail/Python
14,027,363,222,679
2cec75ec3cde59f71b46c6dc3e26500418e1d45c
701cc8e58832eeca86a963110a445ef30c1bf294
/pattern.py
02af26ae61f55b258dc2af3c2cf77671e6ece51f
[]
no_license
https://github.com/harikishoremail/Python
37ad4bbdd0605c1fea8f1b01ea1161ac4305f625
73aa2154b40878a7bdab9b86f3f29709f534768c
refs/heads/master
2021-01-13T13:48:11.464246
2016-12-13T04:43:11
2016-12-13T04:43:11
76,322,795
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!usr/bin/python import math sequence = "A B C D E F G F E D C B A"; n = len(sequence) y =sequence print (sequence) for i in range(71,65,-1): x ="" j=0 while j<=n-1: if ord(y[j])==i: x = x if(y[j+1]==" "): x = x j +=1 else: ...
UTF-8
Python
false
false
385
py
10
pattern.py
10
0.376623
0.350649
0
23
15.73913
39
walefmachado/atuaria
6,734,508,750,961
6cdf9d256dee3e94d65f1089f378b69993b32014
f071d933b721d1f993679624c89c50608e63b246
/atuaria/__init__.py
c52ea4dea201b721bdff933a9cec662308463020
[]
no_license
https://github.com/walefmachado/atuaria
3b4627ecc4fd1e5b3d129661fdb9ccf86ceb1349
b2a57a6217476660db6e453ff467fc1a83c1fb6c
refs/heads/master
2020-03-30T03:14:00.031182
2018-09-28T00:02:46
2018-09-28T00:02:46
150,677,002
1
0
null
true
2018-09-28T02:51:07
2018-09-28T02:51:07
2018-09-28T02:50:34
2018-09-28T00:02:50
6
0
0
0
null
false
null
import pandas as pd import numpy as np tabuas = pd.read_csv('https://raw.githubusercontent.com/lincolnfrias/dados/master/tabuas-de-vida.csv') def sv_vit(i, idade, b, qx): n = tabuas.idade.max() - idade px = 1 - qx.values serie = np.arange(1, n+1) v = 1/(i+1)**serie vp2 = (1/(i+1)**2)**serie qx...
UTF-8
Python
false
false
1,056
py
4
__init__.py
2
0.564394
0.526515
0
33
31
102
o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis
18,442,589,594,455
cc34670ea2aa62f183c7107596c3c69ea488a6b7
5f998fcb6e8248748526bef2bdfff9eb4c950d58
/src/movie_main.py
53084ac32e0a1b2077da314eb12b68deb6bc41fd
[ "MIT" ]
permissive
https://github.com/o-x-y-g-e-n/Web-Scraping-With-Sentiment-Analysis
220f8d41c228fa49933f01fac5dbf6a60f72b21d
4f0faaefdbdc515165a58fd53942c2902c3e7372
refs/heads/master
2022-12-28T06:41:53.205559
2020-12-05T11:18:59
2020-12-05T11:18:59
155,549,376
3
2
MIT
false
2022-07-06T20:56:20
2018-10-31T11:53:11
2021-06-14T07:30:25
2022-07-06T20:56:17
4,522
3
2
4
JavaScript
false
false
# imdb user reviews, imdb user ratings scraper import time import requests import pandas as pd from pandas import ExcelWriter from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support i...
UTF-8
Python
false
false
2,850
py
21
movie_main.py
16
0.665263
0.653684
0
94
29.329787
80
eblot/pyftdi
19,533,511,281,266
84fc9954a934ef41098be683a360accb31d76ff3
3c1a16e6c44c2272a11eeca2a1e48a247338b4f0
/pyftdi/ftdi.py
c6e147b6ec67a2a4c2371f9722e4548c42bef499
[ "BSD-3-Clause" ]
permissive
https://github.com/eblot/pyftdi
11859a8d68b6e4b3855cac809178a95cf97d495c
0d20ccd1ae4542d868a252c492ba6855b4e67906
refs/heads/master
2023-08-18T08:37:34.782085
2023-08-12T16:25:05
2023-08-12T16:25:28
1,162,758
445
208
NOASSERTION
false
2023-08-12T14:55:52
2010-12-13T00:49:37
2023-08-12T10:37:45
2023-08-12T14:55:51
15,166
437
193
73
Python
false
false
# Copyright (c) 2010-2023 Emmanuel Blot <emmanuel.blot@free.fr> # Copyright (c) 2016 Emmanuel Bouaziz <ebouaziz@free.fr> # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause """FTDI core driver.""" from binascii import hexlify from collections import OrderedDict from enum import IntEnum, unique from errno...
UTF-8
Python
false
false
97,088
py
57
ftdi.py
42
0.566074
0.548399
0.00001
2,341
40.472875
79
lemonad/molnet-polls
16,097,537,459,108
7100c13bb736549a48f4f493232bf747e711de4a
1a29ca23f96102c917cfd5091d133fecfd7a406a
/forms.py
4d39b30da8b96d28bff801f90c45f3387e3839ee
[ "MIT" ]
permissive
https://github.com/lemonad/molnet-polls
72d4174c307bd6821f68186f0e0582f313200268
1d2aa3c71356f044958d03d23faf56d29006f3a7
refs/heads/master
2016-09-05T17:22:35.230476
2010-09-26T22:02:44
2010-09-26T22:02:44
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from django.forms import (BooleanField, CharField, ChoiceField, Form, ModelForm, MultiValueField, MultiWidget, RadioSelect, Textarea, TextInput, ValidationError) from django.utils.encoding import force_unicode from django.utils.translation impo...
UTF-8
Python
false
false
8,700
py
24
forms.py
8
0.556897
0.54069
0
215
39.465116
114
BushiJhon/iAnimeServer
18,485,539,243,298
2f9440fda1b956088c8878867dee9ee1448f1c21
d4191a69ff2b9effeb4d4a53ab93d92ab9571145
/pojo/User.py
2e8bfbafdec69f0aeaba0e80007f91142636f13e
[]
no_license
https://github.com/BushiJhon/iAnimeServer
e9df1fd4952bca70ec88c7368b21aef5260b7510
c57ecc1aa2ada163e75dcabc6ec92097f29d9e95
refs/heads/master
2020-09-07T11:27:24.458713
2019-11-20T10:17:20
2019-11-20T10:17:20
220,764,608
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class User: __phone = None __password = None __user_id = None # __nick_name = None # __avatar = None # __background_photo = None # __signature = None # __follower = None # __following = None # __rank = None # __my_like = None # def set_my_like(self, my_like): # ...
UTF-8
Python
false
false
2,109
py
18
User.py
18
0.525842
0.525842
0
89
22.685393
55
FrozenFist27/Image-Classifier-CIFAR-10-Dataset
5,102,421,187,244
492d6e00823c98d90955b9d78b876aaf6df4e6b6
cda564026f9030fd5d3a142edbc4897c0eef4c7e
/image_classifier_cifar_10.py
2db4371e729d42a8dcff3588d3860a3a2c1a2dae
[]
no_license
https://github.com/FrozenFist27/Image-Classifier-CIFAR-10-Dataset
803331e77fbd85ac0ac34ed92344a941249635f7
4e8d7db862decbf29e2b4cc6ce00cc7178dc7ff5
refs/heads/main
2023-06-23T02:50:05.911316
2021-07-13T11:21:07
2021-07-13T11:21:07
385,577,773
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """Image Classifier CIFAR 10.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1fWk1LWbLZTn8YIBm5z_ik8fCPD5zimdL """ import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O # import backend ...
UTF-8
Python
false
false
3,710
py
1
image_classifier_cifar_10.py
1
0.731536
0.704313
0
119
30.168067
164
gabriellaec/desoft-analise-exercicios
15,247,133,910,661
d50b3e3bb524e587f515fd7167c4487d727fa57d
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_176/ch84_2019_06_04_05_16_57_763624.py
217edf8460217c8ae37c987ddee80f25f8ad4f14
[]
no_license
https://github.com/gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
inv_map = {v: k for k, v in my_map.items()}
UTF-8
Python
false
false
43
py
35,359
ch84_2019_06_04_05_16_57_763624.py
35,352
0.581395
0.581395
0
1
43
43
wulalakuaipao/api_auto
4,183,298,167,444
a642e5a85e53bb59af74007e5eaa5afb200e05bd
bf01461b7608588124b6cb17d158b3074ee75e74
/week_8/class_0304/learn_suite.py
bb497669d6f3075de8dc9bb44c77c6033aca966d
[]
no_license
https://github.com/wulalakuaipao/api_auto
b66ac4c2f106d0af04f3ff441fbf76643ae91308
218a19da10df4095f3e80cdbee39b7d723dafd18
refs/heads/master
2023-03-24T13:24:10.931032
2020-07-12T07:04:28
2020-07-12T07:04:28
279,010,891
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/3/1 21:08 # @Author : lemon_huahua # @Email : 204893985@qq.com # @File : learn_suite.py import unittest import HTMLTestRunnerNew #生成一个非常漂亮的HTML模板的模块 from week_8.class_0304 import class_unittest_learn # from week_8.class_0304.class_unittest_learn import * #具体到类名 # # #添加用...
UTF-8
Python
false
false
2,136
py
105
learn_suite.py
99
0.648727
0.611111
0
55
30.436364
73