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
JulseJiang/DrugKBPrototype
3,032,246,933,707
699b403b2d1b2d7deae4507a01013afe8739cb95
3b9194499503f9e06dbebe113c53afad0b572ab2
/Visualization/functionhelp.py
2c17b58cfc37b4fa09a344204cc4c1932e90d348
[]
no_license
https://github.com/JulseJiang/DrugKBPrototype
0bffa42b2913996d22e40942d24c4da0feb76f33
34567630fe8febb1ea6827541fd3d92f42935ecc
refs/heads/main
2023-03-19T17:57:14.822743
2021-03-18T11:54:22
2021-03-18T11:54:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- encoding: utf-8 -*- #------------------------------------------------------------------------------- # @file: function # @Author: GuoSijia # @Purpose: # @Created: 2019-04-21 # @update: 2019-04-21 9:39 # @Software: PyCharm #--------------------------------------------------------------...
UTF-8
Python
false
false
4,950
py
67
functionhelp.py
54
0.631889
0.608119
0
135
34.222222
112
pranavgarg1506/Machine_Learning
9,156,870,305,944
2f1d912d53450d23d7cfaa7a80ea93f7a7b68c63
9a92c117403e9b8ed6d0ab4d25ece315288fdfe1
/passwordGenerator/passwordgenerate.py
94b3ed859e53fcace9f280b53a8a4da21b93f48b
[]
no_license
https://github.com/pranavgarg1506/Machine_Learning
b459c1eb0fecf91f958ab349a60d653e8dad51a9
865906d6d9edf76657f71cc8ae275ca1e27ae93a
refs/heads/master
2022-04-11T14:49:28.227047
2020-03-31T15:35:12
2020-03-31T15:35:12
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import datetime Capital = "ABCDEFGIJKLMNOPQRSTUVWXYZ" small = 'abcdefgijklmnopqrstuvwxyz' number = '0123456789' specialCharacters = '!@#$%^&*()' digit = int(input()) print("digit ", digit) password = '' index = 0 # defining probabilities for all the sets # p_Capital = 0 # p_small = 0 # p_number...
UTF-8
Python
false
false
3,210
py
6
passwordgenerate.py
4
0.664174
0.649533
0
116
26.672414
123
Chenjianqi1992/Movie_comment
1,400,159,367,740
6889d13882024bab36cf319628e955794316e501
e17b9b9978ba214294d752d170bb50caff6ec70a
/movie_comment/movie/migrations/0002_remove_movie_info_movie_published.py
cc5629c9c3ed9e2a5b6dde1d8de57e2c94e3c8ee
[]
no_license
https://github.com/Chenjianqi1992/Movie_comment
e0563ab215e456f1da8dd87ed473c988c1f6013f
73900ef887fa38bc2a4fc770c39eef0e4ebcb4c3
refs/heads/master
2021-07-16T13:01:33.512789
2020-05-19T02:31:09
2020-05-19T02:31:09
144,814,257
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.7 on 2018-08-07 06:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('movie', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='movie_info', name='movie_publish...
UTF-8
Python
false
false
345
py
13
0002_remove_movie_info_movie_published.py
9
0.550725
0.495652
0
17
18.294118
47
buraksmg/e-itim
14,465,449,897,259
7f190558ca228b7bbdb54b6480c79b67fd24754c
d9c7c6da6c55d6f77f9cbbb754ce88863195b871
/egitim_1.py
94953c4d0d8ac4425bc4f5503a046310d5b1fe67
[]
no_license
https://github.com/buraksmg/e-itim
f2f89d3bf2764d3a5c7f3363c2b4daef74e12da7
fc518478ccc2470c96db9a03c52fe2851e3fc0c4
refs/heads/master
2022-11-20T08:43:42.429429
2020-07-20T13:01:52
2020-07-20T13:01:52
280,889,960
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
"""test""" print("Hello world") print("merhaba doğum tarihinizi yazınız") a = int(input()) print("yaşınız:"+str(2020-a))
UTF-8
Python
false
false
134
py
7
egitim_1.py
7
0.640625
0.609375
0
6
19.333333
41
csm9493/denoising_gan
19,061,064,862,038
f5122de663339e52f2ad2185a9c17746ea863284
71b193a2bb083efd33406fb3b00b07f9f1469abd
/main_noisegan.py
f935b0fd315307a0906506d6e50fbe3aa6a3daa4
[]
no_license
https://github.com/csm9493/denoising_gan
cbbb4d73e29ab8d1a7bc2a26914e6d0d65ed9b2d
0a2dc2329035ae1f0a8fb044b8e6be4c2c306949
refs/heads/master
2020-04-25T20:09:57.178031
2019-03-27T00:31:47
2019-03-27T00:31:47
173,045,206
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from core.noisegan import NoiseGAN import torch import torch.nn as nn import torch.nn.functional as F class ResidualBlock(nn.Module): def __init__(self, in_features): super(ResidualBlock, self).__init__() conv_block = [ nn.ReflectionPad2d(1), nn.Conv2d(in_features, in_feat...
UTF-8
Python
false
false
6,326
py
5
main_noisegan.py
5
0.585836
0.543155
0
169
36.372781
149
N1te0wl1384/inzopr2020
12,773,232,784,532
7c817870f4cf59a571325a419d63e442ee3250b4
c465c76e7bbbcc5c2a74dc2a1fd47d8def839d51
/git_operations/pracownicy.py
87b7b8d27ec520da52970c52b00810c619b15bb5
[]
no_license
https://github.com/N1te0wl1384/inzopr2020
547f796662834be13ee7746b63a09f5959131313
c25aa1bf401f114a9702b663bf288a36ac1eb5b5
refs/heads/master
2022-05-28T23:38:28.849880
2020-04-30T14:37:01
2020-04-30T14:37:01
259,095,822
0
0
null
false
2020-04-30T14:37:02
2020-04-26T17:48:34
2020-04-30T14:24:23
2020-04-30T14:37:01
16
0
0
0
Python
false
false
class Pracownik: def __init__(self, imie, pensja): self.imie = imie self.pensja = pensja def obliczPensje(self): b = self.pensja c = float('%.2f'% (round(b*0.0976,2) + round(b*0.015,2) + round(b*0.0245,2))) d = b - c e = float('%.2f'% round(d*0.09, 2)) f ...
UTF-8
Python
false
false
1,383
py
5
pracownicy.py
4
0.573391
0.514823
0
41
32.731707
132
meijida258/mediaSpider
16,269,336,159,180
c3dfbe1bf9a93c64aa15e7b3ab852440462ea30c
54891a2c2ddd56de28c495309a52e98b36290cf0
/crawl/mmjpg.py
3caec44e10e4ad56f26a8056c7d8449ac3d672e8
[]
no_license
https://github.com/meijida258/mediaSpider
61287f5ca58650c6a9578afdbab764fe063c5b39
9a9ef40d1f3dbd46dff25fad4a8b87ee85e5e1fd
refs/heads/master
2021-01-23T08:10:14.211074
2018-06-20T02:19:12
2018-06-20T02:19:12
86,479,178
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import asyncio, time, re, os, requests, json, random, datetime from lxml import etree from multiprocessing.dummy import Pool from pymongo import MongoClient from PIL import Image from tool.ImgOut import iop client = MongoClient('localhost', 27017) db = client.MMjpg collection1 = db.Image1 collection2 = db.Image2 colle...
UTF-8
Python
false
false
3,072
py
122
mmjpg.py
93
0.597948
0.577763
0
78
37.75641
133
hi-noikiy/hall0
5,995,774,369,967
c56c8fd31581724bab21bc7911e6e3126f917611
2b5dfacdb7389aefff64c67fac863e3f82d3723e
/source/tyframework/src/tyframework/_private_/dao/userprops_/usermedal.py
95de216065f5bc50b36cdd1ed59226c47e7bc7a5
[]
no_license
https://github.com/hi-noikiy/hall0
54ef76c715f7ac7fec4c9ca175817e12f60fbd6a
21ea94c5b048bc611fb1557ac0b6e3ef4fdbbc09
refs/heads/master
2020-04-08T21:58:55.239106
2018-01-15T14:58:32
2018-01-15T14:58:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding=utf-8 -*- from tyframework._private_.dao.userprops_.daobase import DaoBase from tyframework._private_.dao.userprops_.daoconst import DaoConst from tyframework._private_.dao.userprops_.decorator.structdataitem import load_struct_data, \ dump_struct_data class UserMedal(DaoConst, DaoBase): def _in...
UTF-8
Python
false
false
4,966
py
1,079
usermedal.py
601
0.584984
0.584754
0
113
37.424779
116
PurpleMyst/porcupine
18,219,251,289,688
f017a806ba28bc62cc281deb3445d569032374c1
3c98132198637077b55d3b6630a7134f747e8e39
/porcupine/plugins/autopep8.py
5d24f6b133af09b5fdd842989959e709202cdeff
[ "MIT" ]
permissive
https://github.com/PurpleMyst/porcupine
ebff59278fb426e8cba862ac6ef6f3ce7d4bd3a9
1ce4e15a5b2fed97efb889e56216c93c042fc7a8
refs/heads/master
2021-01-25T06:56:11.144326
2017-09-07T19:11:12
2017-09-07T19:11:12
93,628,416
0
1
null
true
2017-06-07T11:35:06
2017-06-07T11:35:05
2017-05-29T12:16:37
2017-06-07T10:00:48
774
0
0
0
null
null
null
import platform import subprocess import porcupine from porcupine import tabs, utils def run_autopep8(code): try: import autopep8 # noqa except ImportError: # this command is wrong in some cases, but most of the time # it's ok if platform.system() == 'Windows': ...
UTF-8
Python
false
false
1,957
py
57
autopep8.py
44
0.60603
0.593255
0
63
30.063492
77
ahtouw/Projects
9,680,856,317,183
0d3c8d4f4845c46313d5fc3e6f849dc877b5ea4f
23019dc9f099efe5361d387817022130af59334b
/Comp Sci/Python/hw4/hw4-3.py
f7b06e5e5a91ccc4c724207580a34c8d0e47990e
[]
no_license
https://github.com/ahtouw/Projects
950dc23b371fe0997b48c4475ad268aa0342fbca
15d25449e3ddcfe204d2ac6546ccb9272f074928
refs/heads/master
2020-04-14T15:38:02.363349
2019-01-03T07:16:34
2019-01-03T07:16:34
163,932,996
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Homework 4 - Part 3 - Substitution # William Ah Tou # 3/12/17 # Mustafa Al-Lail import sys import re inFile = sys.argv[1] outFile = sys.argv[2] def readFile(fileName): with open(fileName,'r') as f: lines = f.read().splitlines() return lines def writeFile(newLine): appendStr = newLine + '\n' ...
UTF-8
Python
false
false
2,151
py
40
hw4-3.py
16
0.451883
0.437936
0
98
20.959184
77
darionyaphet/python.learning
8,521,215,159,316
fc035da22f55faa92bbe141491c880559f67884d
f319e49b4a4852539fca48fbe830f3871f9f5a2f
/pandas/start.py
77a7d5af338e73b20cf02844f9ccfadc6d009e0d
[]
no_license
https://github.com/darionyaphet/python.learning
75b4d8f7e863286f212f55a6b0478a68b11e48d9
eec24569ef11c7c459a2a10aff9f6522edb1e352
refs/heads/master
2020-05-21T12:23:02.060758
2018-12-12T07:03:10
2018-12-12T07:03:10
36,119,713
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' 10 Minutes to pandas: http://pandas.pydata.org/pandas-docs/stable/10min.html ''' import pandas as pd import numpy as np import matplotlib.pyplot as plt #Creating a Series by passing a list of values, letting pandas create a default integer index s = pd.Series([1,3,5,np.nan,6,8]) ''' 0 1 1 3 2 ...
UTF-8
Python
false
false
2,443
py
53
start.py
50
0.561195
0.289808
0
84
28.047619
93
MarcoBurgos/ayeWedding
17,093,969,866,911
d18d3d8c1b5acc479b13e121eaffcefebc75b5e1
74315bccd4faef88b2ac33dcb1b26977121a4d0f
/ayeApp/models.py
50d474e7bd40906ad5c44f90540cd1c2f8633429
[]
no_license
https://github.com/MarcoBurgos/ayeWedding
b5aebe825272f8a9a1a32348515a7260b164bf8b
16d231ae5e6bd623c66874ef150d7e2ea3d7eb1f
refs/heads/main
2022-12-30T12:25:33.158855
2020-10-20T02:02:42
2020-10-20T02:02:42
305,221,217
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.forms import ModelForm # Create your models here. class Invitation(models.Model): invitation_owner_name = models.CharField(max_length=90, verbose_name="Propietario de la invitación") email = models.EmailField(max_length = 128, unique=True) telephone = models.CharFie...
UTF-8
Python
false
false
1,029
py
13
models.py
8
0.736585
0.723902
0
20
50.25
114
SaurabhAgarwala/grapp
13,503,377,206,205
3f9d28756c601b20f5534d1fcbc663f99a9e7dc5
c7f47100965c15b4cb120610a4c8af33ab727c3d
/grievances/forms.py
bc2030b50bd712fcbf7d331d05b93d19f30c0210
[]
no_license
https://github.com/SaurabhAgarwala/grapp
a60213f262115e6599b77a03cdd0c5b46678644a
d0d568add196308e6940c94735a1e980d9b23a38
refs/heads/master
2020-03-26T22:30:33.608655
2018-08-20T19:58:37
2018-08-20T19:58:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from . import models class ComplainForm(forms.ModelForm): class Meta: model = models.Complain fields = ['title', 'body'] class RespondForm(forms.ModelForm): class Meta: model = models.Complain fields = ['status', 'comments']
UTF-8
Python
false
false
291
py
16
forms.py
8
0.649485
0.649485
0
12
23.333333
39
xinsec/python-framework
14,654,428,435,711
d1338348b197822003edf7738f8c79af7532e8d5
4ebf8067f596707dc5336914bf0ea0a97d9fbcb7
/tornadoapp/tornadoapp/websocket/client.py
ed4bc7ae825713f550c9436098dfec7305bcaf03
[]
no_license
https://github.com/xinsec/python-framework
0ade696c5467635a6fd38125f1b2467d58047184
2da2258896145456312342f471d91cec95ddfb24
refs/heads/master
2018-02-06T19:13:18.152713
2017-06-28T03:54:21
2017-06-28T03:54:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" pip install websocket-client """ from websocket import create_connection if __name__ == '__main__': ws_server = "ws://localhost:30001/websocket/" ws = create_connection(ws_server) # ws.send('{"name":"admin"}') ws.send('{"message":{"reload":1},"destination":"admin"}') print ws.recv() ws.clo...
UTF-8
Python
false
false
324
py
35
client.py
27
0.611111
0.592593
0
13
24
61
woobinda/mysite_v2
764,504,206,826
bf4a14bc18cc7d923fcdcf6b3732ec332a1c7c94
cad8d97ff00189c5bcc5f9d8278cb809ff044772
/musicians/migrations/0027_auto_20160412_1443.py
869dfa91f853e9d54658f82642d8f5cb68aa9120
[]
no_license
https://github.com/woobinda/mysite_v2
d1a405148ffd1bb87b254c9449f46dc50c73085f
9a105e042c4ae1c204d031a4a2a9cd712ce0e831
refs/heads/master
2016-06-03T08:11:04.791096
2016-04-15T17:56:08
2016-04-15T17:56:08
51,135,993
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-04-12 11:43 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('musicians', '0026_auto_20160412_1407'), ] operation...
UTF-8
Python
false
false
1,203
py
81
0027_auto_20160412_1443.py
46
0.58271
0.551122
0
37
31.513514
149
cyriltasse/FindCluster
8,315,056,690,198
1e00c4aa44c79a38d75e139eb7c778e19dcbae5c
593930a095ace43d083e850c6a155eea3824dfcf
/ClassLogDiffLikelihoodMachine.py
d938c2eb8cc3d2cfb3a80bd245f372c5d26fb48c
[]
no_license
https://github.com/cyriltasse/FindCluster
edc96280e0e5824ed2d607a5b4a4d62686c99559
f8010c04b6802751669a81bfc63bb5a84777ca31
refs/heads/master
2023-01-28T12:26:54.549341
2020-05-27T14:34:03
2020-05-27T14:34:03
186,429,403
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import pylab import ClassMassFunction import ClassCatalogMachine import ClassDisplayRGB from DDFacet.Other import ClassTimeIt from DDFacet.ToolsDir.ModToolBox import EstimateNpix np.random.seed(1) from DDFacet.Other import logger log = logger.getLogger("ClassLikelihoodMachine") from DDFacet.Other.Asy...
UTF-8
Python
false
false
18,810
py
49
ClassLogDiffLikelihoodMachine.py
49
0.509091
0.477778
0
541
33.752311
157
KupynOrest/AmurTigerCVWC
5,265,629,914,523
b5ad41c2d7d9bac0fb5a938ee165f125b5922945
116395020bafdfc3b7ac56150dfff72507d83faa
/PyTorch/model_training/detection/detector.py
f8f846a7b91b983d12d604f4d6c2a747a2c9739a
[]
no_license
https://github.com/KupynOrest/AmurTigerCVWC
4e8aee5f4b9b736a8d8fe24aae984c97dab22acd
684e9c1480da92b4ce7ea24d31a55657256aee23
refs/heads/master
2020-06-26T09:53:40.176070
2019-08-05T14:15:04
2019-08-05T14:15:04
199,601,559
7
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import albumentations as albu import numpy as np import torch # from model_training.detection.retinanet_v2 import RetinaNet from model_training.detection.retinanet import RetinaNet from .ssd import SSD from .detector_postprocessing import DetectorPostProcessing class Detector(object): def __init__(self, config):...
UTF-8
Python
false
false
1,930
py
39
detector.py
32
0.615544
0.6
0
54
34.740741
117
Yanqin25/pythonLab
9,629,316,721,274
e3086ecfe12d2ca0f7ad2320b1494235f763d01a
0771e69408932bd128e71556ac8b3547c583bab0
/18.algorithm/linear_algebra/matrix.py
a77140feff04a1d1d0c008b0deb1db3b43689e3f
[]
no_license
https://github.com/Yanqin25/pythonLab
bbbe7bc8eb7f9964b5070ea8b1c6a65313eae56d
48f6ab729a635016c09208608c7223523f73d8f7
refs/heads/master
2020-08-10T23:40:05.760447
2020-02-26T10:07:30
2020-02-26T10:07:30
214,445,503
0
0
null
false
2020-02-18T01:13:04
2019-10-11T13:36:54
2020-02-18T01:12:41
2020-02-18T01:13:03
16,739
0
0
2
Python
false
false
from vetor import * class Matrix(object): def __init__(self,matrix,w,h): # 矩阵的初始化 self.__matrix = matrix self.__width = w self.__height = h def __str__(self): # 返回矩阵的字符表达形式 ans = "" for i in range(self.__height): ans += "|" for j in range(self._...
UTF-8
Python
false
false
3,348
py
186
matrix.py
163
0.497782
0.491128
0
80
38.425
111
parkus/FLAIIL
16,149,077,071,889
b978cfc4f3020848f337a6704d53e2b6db1e35d6
aed2049a6cc9cf2434221632b1b0d60da7d10d60
/ranges.py
9c3776c36af86bc0eca4e84beccc8ccb8f1c3cfc
[ "MIT" ]
permissive
https://github.com/parkus/FLAIIL
15d776c36cca48ead0e6bf65ba4f48f599173976
53698f9e6e2d933c091fb9c4b069bf255871541b
refs/heads/master
2020-03-16T17:18:35.783996
2020-02-21T18:15:26
2020-02-21T18:15:26
132,826,181
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Utilities for handling numerical ranges. """ from __future__ import division, print_function, absolute_import import numpy as np def rangeset_union(ranges0, ranges1): """ Return the union of two sets of *sorted* ranges. Parameters ---------- ranges0 : Nx2 array ranges1 : Nx2 array ...
UTF-8
Python
false
false
4,068
py
7
ranges.py
6
0.584317
0.552606
0
144
27.256944
83
urmithakkar/testrepo
13,580,686,593,455
13a2be3124a6d79b1be53a72abe41c8ae8c3363f
ec77feaed2d190ded34799ea01c8072d955a0022
/testbranch1.py
9cc1f894fe66a595f686cfbcd7be9aa53540ae87
[]
no_license
https://github.com/urmithakkar/testrepo
8181ee263cf31d19f36041da4ecffa20779fc394
2e7e154b1ab44242ab889a0ebf74c8e18182d487
refs/heads/main
2023-02-05T16:56:38.494353
2020-12-26T15:43:46
2020-12-26T15:43:46
324,581,770
0
0
null
false
2020-12-26T15:43:47
2020-12-26T15:23:08
2020-12-26T15:26:22
2020-12-26T15:43:46
0
0
0
0
Python
false
false
#creating a file in brach1 print("Inside branch 1")
UTF-8
Python
false
false
53
py
2
testbranch1.py
2
0.735849
0.698113
0
3
16.666667
26
fd-facu/termodinamica
18,030,272,737,461
b9a8f8bae47d51cee31a962d4e9714f9fdc6a367
aafae0baeaeda7409c47cf4933edcfde4040f018
/grafico_temp_calor.py
6582a93e95fb7d2f7ae1c0d50b3453b973d833ff
[]
no_license
https://github.com/fd-facu/termodinamica
26adb1c46bcb43398daff558e37d6612dacf3df4
1a9a1d50a82d7a8542f26a97b68298d0be8cc40c
refs/heads/master
2022-01-29T11:38:44.559874
2017-12-12T20:56:40
2017-12-12T20:56:40
95,333,793
0
0
null
false
2022-01-19T23:29:57
2017-06-25T02:29:31
2017-12-06T17:41:23
2022-01-19T23:29:56
63
0
0
1
Python
false
false
import matplotlib.pyplot as plt plt.ylabel('Temperatura (K)') plt.xlabel('Tiempo (seg)') plt.title('Grafico PV') def generar_grafico(lista_etapas): instancia_x = [] instancia_y = [] for tupla in lista_etapas: instancia_x.append(tupla[0]) instancia_y.append(tupla[1]) ...
UTF-8
Python
false
false
405
py
19
grafico_temp_calor.py
18
0.612346
0.607407
0
23
15.695652
38
Bihan-tifr/Exam
6,743,098,678,767
8135bb23edb4c7f029af0082e6b21201459431a3
5bf5da35ccd39c6e99cf6f904f250ed117bc019c
/p9.py
1e35676b173fd3fee99d955075f00cc83b633f8d
[]
no_license
https://github.com/Bihan-tifr/Exam
52615027df4a86bbf980b303335094b1c50f4e59
e254c346c8dde8def5cb033e1b4998652a6cd341
refs/heads/master
2022-10-08T21:40:56.950279
2020-06-05T15:49:10
2020-06-05T15:49:10
269,667,696
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np A=np.array([[2,1],[1,0],[0,1]]) print("The Matrix:\n{}".format(A)) print("Singular value decomposition:") u,s,v=(np.linalg.svd(A)) print("u:\n{}".format(u)) print("s:\n{}".format(s)) print("v:\n{}".format(v)) input("press any key to evaluate svd of second matrix") B=np.array([[1,1,0],[1,0,1],[0,1,...
UTF-8
Python
false
false
502
py
6
p9.py
5
0.615538
0.585657
0
19
25.368421
55
1017-MJ/1017_MJ
18,236,431,163,772
edf019e4e0f8b7c9e9478e2ffd0deb28d634e969
c235a6d5ff3c118f6e89b7ee853e8d2cb8debeda
/27.py
576e52ca08ad3e5b7cc6debe4f29de089114aee2
[]
no_license
https://github.com/1017-MJ/1017_MJ
7b9b7ac4322bf8ed17d8c200d98d2bdc7c2c1fad
a2f2775cc40f88fd5abdc0c0fa14cdf2f6d21460
refs/heads/main
2023-06-04T16:41:27.230568
2021-06-11T11:46:15
2021-06-11T11:46:15
365,239,005
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
x = [3,2,4,1] for n in x: print(n) x = [3,2,4,1] y = ["Hello", "There"] for c in y: print(c) x = [3,2,4,1] #0,1,2,3 y = ["Hello", "There"] print(x.index(4)) print(y.index("Hello")) x = [3,2,4,1] #0,1,2,3 y = ["Hello", "T...
UTF-8
Python
false
false
496
py
26
27.py
26
0.397917
0.345833
0
34
12.176471
25
zvonicek/IT3708
10,660,108,846,122
429ecd76fdaea5cc57bce42ed087fb1542f5b573
7b201f188e0e5073009dd84f0437cc6a1c41b920
/task5_q_learning/q_flatland/reinforcement_flatland/flatland.py
4c588cb74da5ee3de1de249a84fbc855bed021f1
[]
no_license
https://github.com/zvonicek/IT3708
d4e4653cb1579c0765bd4837677d798f696f57af
990b448f9d01badc8b955ce49843e37c54f8fd7b
refs/heads/master
2020-05-20T06:01:23.754233
2015-05-19T10:59:32
2015-05-19T10:59:32
30,255,328
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random class Cell: Food, Poison, Empty, Agent = range(0, 4) class Turn: Left, Right, Up, Down = range(0, 4) class Flatland(): def __init__(self, world, agent_coord, food_num, poison_num): self.agent_init = agent_coord self.agent_coord = agent_coord self.grid = world ...
UTF-8
Python
false
false
3,620
py
57
flatland.py
37
0.508011
0.498895
0
114
30.763158
93
hypnguyen1209/infosec-algorithm
154,618,845,393
fb92f1769733165dfad4a83ca4d1e089cf7ae84f
fd836e5c699198ff32f6a6710a6720979a53ca43
/a.py
940803d21643dcec9bfd86d90b73ffb21428b594
[]
no_license
https://github.com/hypnguyen1209/infosec-algorithm
af4552da0e937135e41e54538fa35807a989edb7
9b9a0b091cf1a2296cede4befcee625671ac5d98
refs/heads/main
2023-07-02T12:41:26.696442
2021-08-16T09:49:17
2021-08-16T09:49:17
364,528,414
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math a = 123456 W = 8 p = 2147483647 def solve(a, W, p): result = [] m = round(math.log2(p)) t = round(m/W) n = [pow(2, i*W) for i in range(t)] for i in n[::-1]: result.append(math.floor(a/i)) a = a%i return result if __name__ == "__main__": print(solve(a, W, p))
UTF-8
Python
false
false
301
py
32
a.py
31
0.524917
0.458472
0
18
14.833333
36
Ironman778/WebShell-C2
11,381,663,354,765
a664157e42e52f2a89cb0e4572f38043d7fb07e5
5510fa4604cf9c72198c4cb590622ff22c8624a5
/live_feedback_(OldVersion).py
741e14cef580fe9956de2a36c6adabebc64908d6
[ "MIT" ]
permissive
https://github.com/Ironman778/WebShell-C2
028e351509a046f82774fb5066b6a370cd8bb4e6
5ed781b2797054f7c031191a238618a3cf441750
refs/heads/main
2023-08-24T18:33:53.822209
2021-11-03T13:57:18
2021-11-03T13:57:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import glob session = input("Session ID :") if session not in glob.glob("./data/*.*"): with open(f"./data/{session}",'a') as file: file.write('') previous = "" while True: with open(f"./data/{session}",'r') as file: data = file.read() if data!=previous: previ...
UTF-8
Python
false
false
377
py
22
live_feedback_(OldVersion).py
10
0.551724
0.549072
0
19
18.842105
47
pulumi/pulumi-aws-native
6,760,278,539,705
db694e00dec7014e2d820026bf831bf36ff33c4e
5a74500be5b851f1efd999778088fb228ffa75b2
/sdk/python/pulumi_aws_native/configuration/get_configuration_recorder.py
08bacf4d61bc34268fd7eebc68ae9c405a06f1cc
[ "Apache-2.0" ]
permissive
https://github.com/pulumi/pulumi-aws-native
d0031db61fba441d62e83f14a1503093dcabbd5a
360bc11ff2538e17bacfb34c512cd1b34ef7ba50
refs/heads/master
2023-08-16T04:46:09.356539
2023-08-10T06:13:07
2023-08-10T06:13:07
219,575,168
68
13
Apache-2.0
false
2023-09-14T12:47:08
2019-11-04T19:00:32
2023-09-08T08:20:52
2023-09-14T12:47:07
174,365
70
12
111
Go
false
false
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _ut...
UTF-8
Python
false
false
3,096
py
13,355
get_configuration_recorder.py
6,362
0.666667
0.666344
0
82
36.756098
151
AlexG31/EcgDiagnosis
11,836,929,879,787
06fc69d38fed30deb9f9b476d857d3b8bd302ac7
9feaa24ec54d39270d87bb0039dc106aedf12709
/mcmc/hermit_model.py
2f1c53a3876b5e8d00c3a00fb702b0ecab49676f
[]
no_license
https://github.com/AlexG31/EcgDiagnosis
65cb4a98aa1da1db916744e867e28bedf55bdf19
16b1c81351957393f27675e5eaea4920be787e28
refs/heads/master
2021-01-12T02:46:26.899927
2017-01-20T09:55:16
2017-01-20T09:55:16
78,096,065
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#encoding:utf8 # MCMC Model import os import sys import pymc import matplotlib.pyplot as plt import scipy.signal as signal from pymc import DiscreteUniform, Exponential, deterministic, Poisson, Uniform import numpy as np import json # Load ECG segment array with open('./segment.json', 'r') as fin: raw_sig = json....
UTF-8
Python
false
false
2,543
py
23
hermit_model.py
20
0.577271
0.529296
0
113
21.504425
95
PantherPrg/Rollercoaster_Height
18,382,460,052,989
78198715a5a08a23b7ad73fdbcd6bf5bf3cf3f94
3bbffa332419f35ed617d79cc9d46160b75cbe6d
/TestCases/testCase3.py
6de6b77fa81a2722fec625a5c567eede2b926228
[]
no_license
https://github.com/PantherPrg/Rollercoaster_Height
d599a75e0c51960e174cea3915dd726de175b039
a835dfca6cf45c17cee52cf5317f75b97a82872e
refs/heads/main
2023-03-30T18:00:29.210400
2021-03-30T05:58:01
2021-03-30T05:58:01
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
70 Sidney 64 Carlin 69 Oldra 59 Alvy 63 Gael 59 Harlea 67 Luba 66 Brooke 62
UTF-8
Python
false
false
75
py
8
testCase3.py
7
0.786667
0.546667
0
9
7.444444
9
xieqiumei/data_analysis
120,259,117,519
fae403f1b9ab28b954b1c31ecac8ce6083f4ceb8
1a3e6deed6002bb4a0cb832edb743a8a566ce33f
/feature_analysis/model_analysis.py
efb8b41111ea98f01f2dce4e489c5293101a3782
[]
no_license
https://github.com/xieqiumei/data_analysis
7bc2157cfaa4e91b41effb58ff35c3bca0ba92e2
208fe84aad98f0ae834020aacbc3f5a21d1b8a50
refs/heads/master
2023-05-30T21:20:44.033699
2021-06-28T00:32:15
2021-06-28T00:32:15
380,514,178
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!D:/Code/python # -*- coding: utf-8 -*- # @File:model_analysis.py # @Software:PyCharm import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.svm import SVR from sklearn.metrics import r2_score # 要注意预测评估函数,有回归和分类之分 from...
UTF-8
Python
false
false
11,415
py
16
model_analysis.py
15
0.59524
0.584052
0
298
34.392617
119
zodiac/competitive-programming
1,769,526,567,929
df9b2b798639a0479384bc379cf17c66edcc2f41
7da5ffee8fe9722fd06d28757dd5dfc57d2806ac
/codeforces/E99/C/C.py
4c2ad6b9cb6d505b3b7190867e96e49760d7428a
[]
no_license
https://github.com/zodiac/competitive-programming
1609aa8bc3ab69894eecad45f2ce9d798ddd6d92
a35a2c0a10b5f2b0cd4a2cfa5926b6ebf5bff03f
refs/heads/master
2020-12-29T02:49:36.244457
2020-12-28T14:34:40
2020-12-28T14:34:40
1,388,667
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env pypy3 T = int(input()) for _ in range(T): x, y = input().split() x = int(x) y = int(y) print(x-1, y)
UTF-8
Python
false
false
121
py
832
C.py
811
0.528926
0.512397
0
8
14.125
23
janion/CARMA
16,716,012,723,377
8e15fa82325d735cc5fa1fec7aa02f05f86171cf
41e42c52e502e67ea06fcf66b7bf1acb1bd30be7
/CARMA/src/backend/event/events/CheckSignalEvent.py
50c30ca1264eb076f596ab73d56b698d00ca6aae
[]
no_license
https://github.com/janion/CARMA
2e7840d9f55df0cccd0004e3a4a182a341f8fbf0
55bfafc2465371e2b0e37deda5a955e47d202270
refs/heads/master
2021-01-10T23:16:27.224636
2016-10-03T17:52:03
2016-10-03T17:52:03
70,622,618
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on 27 Sep 2016 @author: Janion ''' class CheckSignalEvent(): ''' Event which relates to a train needing to check a signal. ''' CODE = "C" def __init__(self, sectionName): ''' Constructor ''' self.entityName = sectionName #######...
UTF-8
Python
false
false
819
py
17
CheckSignalEvent.py
16
0.373626
0.365079
0
35
21.285714
80
SLLittrell/GameRater-server
1,133,871,392,209
719636f364a112f4890d7746305d3ed0af289d9e
15ae6080ac1ba504ec2c19dd02edc6ac585e13cb
/raterprojectapi/views/game.py
729dae9aecf94f0625a3d43e312e7cdacb2e9709
[]
no_license
https://github.com/SLLittrell/GameRater-server
1d824df4d662567a944c2697c43e1a890af6ad1d
dbd55ab096408b738ade7c3407ad71bdcbd7a541
refs/heads/main
2023-05-09T00:24:43.183349
2021-05-26T19:05:03
2021-05-26T19:05:03
364,363,110
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.core.exceptions import ValidationError from rest_framework import status from django.http import HttpResponseServerError from rest_framework.viewsets import ViewSet from rest_framework.response import Response from rest_framework import serializers from rest_framework import status from raterprojectapi.mod...
UTF-8
Python
false
false
3,320
py
15
game.py
13
0.636747
0.629518
0
98
32.867347
147
darkoob12/POSTagger
14,439,680,077,343
d01a8bf21c7e5ae11c7e04d016e3c0554ab30544
08c7d5fadbfce44166f29d23fe8734e7e87c6094
/program.py
c7097067b2e94a459228bce6238c3b5e846559cc
[]
no_license
https://github.com/darkoob12/POSTagger
0ae08cf0fcd3ecbe6c1ad42e31a56b4c7158e933
8de77008f28661a1e7d600dae9ab2e859da1d424
refs/heads/master
2021-01-16T17:36:53.901293
2017-08-11T08:10:53
2017-08-11T08:10:53
100,008,605
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from POSTagger import * import time import random def read_data(path): """ str -> list loads data from a csv file removes redundant info :param path: :return: list of sentences """ data = [] with open(path, 'r') as f: sentence = [] for line in f: a = line.sp...
UTF-8
Python
false
false
3,498
py
3
program.py
2
0.534019
0.520011
0
139
24.165468
99
Ashyaa/aoc2020
6,657,199,332,578
fdeda4671d22fb88224d67b201b1c1c7918d9a36
e03c4147acf427ef26b73ad2c26e7a0fcb5f8de4
/2021/day20/solution.py
40e4764a267f69d5662e8871adaafa61be9ac517
[]
no_license
https://github.com/Ashyaa/aoc2020
22b5051d3e77155b93e54df553c852d60f3f4767
844548cd99050f5227bd17ef13b88286cdce60a4
refs/heads/main
2023-02-21T04:30:05.618050
2022-12-25T09:21:41
2022-12-25T09:21:41
318,306,558
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import contextlib from pathlib import Path from typing import * import numpy as np from AoC.util import show CWD = Path(__file__).parent def read_input(filename: str = "input.txt") -> Tuple[str, np.ndarray]: input_file = CWD.joinpath(filename) with open(input_file, "r") as reader: ...
UTF-8
Python
false
false
1,708
py
126
solution.py
123
0.556206
0.528103
0
60
27.466667
73
YANH216/myweb
16,475,494,591,582
84d9db9b1020fc3b752906969d549354267a6703
95913618293ab052c7f75fe0411adae8379c4c3a
/SitesApp/migrations/0003_auto_20180605_1307.py
9bac1c31b74b0342ca7c195acde009b4d94d1477
[]
no_license
https://github.com/YANH216/myweb
6553f9028c8e23fe57c9988fb94e2c88f5b44886
c24600a99e0e6c3c1266251c2f6f18caed17f83c
refs/heads/master
2023-06-27T03:18:13.718437
2021-07-29T09:19:28
2021-07-29T09:19:28
390,667,214
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-06-05 05:07 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('SitesApp', '0002_auto_20180605_1128'), ] operations = [ migrations.AlterFie...
UTF-8
Python
false
false
680
py
45
0003_auto_20180605_1307.py
28
0.591176
0.536765
0
25
26.2
87
larsbak/fletch
8,624,294,346,937
ce4922248d60fbd850cf516c699aa8d31fd3100b
4fffc216d36563b5db4a5ef230d95b6bda3be0e4
/src/vm/vm.gyp
6262c463f1339822da528907eb156cf599a81a51
[ "BSD-3-Clause" ]
permissive
https://github.com/larsbak/fletch
e18ec6cdfe306f75553638433109a2549b589c7a
6ca18fb7c55f052ef5537c650025811434b9a323
refs/heads/master
2018-05-19T05:37:25.789701
2015-01-29T11:19:50
2015-01-29T11:19:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE.md file. { 'target_defaults': { 'include_dirs': [ '../../', ], 'actions': [ { ...
UTF-8
Python
false
false
3,846
gyp
58
vm.gyp
26
0.471659
0.468539
0
147
25.163265
79
LuisHVieira/valorant_games
11,269,994,186,642
1fbde5dfabbc5a903b62e336d4dcf1a817572e06
d054c44279a959f03fc76147f4dde75b20dd5f6a
/datasValorant.py
0710f807c0d508a259d9b0c3fbbadd6e800b4c9f
[]
no_license
https://github.com/LuisHVieira/valorant_games
03f5991083a3d0394f1acd072be3cfb13d634172
8e8af388a607ff4c76aede1c7d52b7aed549097e
refs/heads/master
2023-08-15T03:23:25.527484
2021-09-30T23:54:14
2021-09-30T23:54:14
411,813,213
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests import json import datetime import embeds as e import discord def get_games_today(): #Get current date and convert from string today = datetime.datetime.now() year = str(today.year) month = str(today.month) if today.month >= 10 else '0' + str(today.month) day = str(today.day) if today.day >= 10 e...
UTF-8
Python
false
false
1,701
py
7
datasValorant.py
3
0.673721
0.628454
0
65
25.153846
211
chaitualuru/algorithms
10,196,252,397,575
aa80d07c26f450f42b4189a9755446298101607c
19241f750f9bef7f2d8529bb6d3096eea46d83b5
/eip/sudoku_checker.py
095fbd59f128f3ccad973e90e379edb20854d63e
[]
no_license
https://github.com/chaitualuru/algorithms
ad372146dc9a286963131a59889ee5c83445db17
af58921e23f9c97650f87bfadbdeac51f433a249
refs/heads/master
2022-07-12T03:58:25.129841
2015-08-31T06:00:33
2015-08-31T06:00:33
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Sudoku Checker""" def sudoku_checker(A): for i in range(len(A)): if not valid_line(A[i]): return False unzipped_A = list(zip(*A)) for j in range(len(unzipped_A)): if not valid_line(unzipped_A[j]): return False for k in range(0, len(A), 3): for l in range(0, len(A), 3): grid = [] for x in A[k...
UTF-8
Python
false
false
875
py
57
sudoku_checker.py
57
0.544
0.443429
0
45
18.444444
56
moskalikbogdan/CDV
5,257,039,992,144
1241c1a272387bd5034d0044af2b2351952cd4b6
a9d4ba71e1c847e0f4a7f26d76ee1fb6c08f8c76
/Python/Warsztaty/Week02/W02.Z04.2.py
ddfae2e158abb6e57bcba39f1739d0a711780b19
[]
no_license
https://github.com/moskalikbogdan/CDV
569c257b779e14c42fe9e1ff19cfd105bb624afb
90d14a597e66f9e5902ecf2b103baf737ed0e4ea
refs/heads/master
2020-12-15T01:42:18.842169
2020-07-13T00:40:20
2020-07-13T00:40:20
234,949,055
0
1
null
false
2020-02-09T08:30:12
2020-01-19T18:55:48
2020-01-21T15:38:26
2020-02-09T08:29:32
17
0
0
1
Python
false
false
""" @author: Bogdan Moskalik, DataScience, Niestacjonarne, Grupa 2 """ import numpy as np print('''Policzę srednią i odchylenie standardowe z listy którą wprowadzisz Z ilu elementów ma się składać lista?: ''') a = int(input()) print('''Wprowadź pojedyńczo elementy twojej listy:''') x = [] for i in rang...
UTF-8
Python
false
false
531
py
43
W02.Z04.2.py
36
0.684008
0.676301
0
25
19.8
75
m-nosrati/springboard-course
7,610,682,086,991
be8e030dbfe6707ba2b450fc7a4d679a8f959f68
ff986f9509dbdbe843c223f630a82e80e9dbfebc
/machine-learning/naive_bayes/src/naive_bayes.py
125630359e284d4f2b44167a2543df0d39046f5d
[]
no_license
https://github.com/m-nosrati/springboard-course
65ce414411525ac49c3bd36e0da00164af75b153
bd7da238f32bcf6d5716984dab6e887c90ac94ad
refs/heads/master
2022-02-27T05:55:31.642308
2019-08-13T02:06:51
2019-08-13T02:06:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#%% [markdown] # # Basic Text Classification with Naive Bayes submitted by Ahrim Han (2019/3/25) # *** # In the mini-project, you'll learn the basics of text analysis using a subset of movie reviews from the rotten tomatoes database. You'll also use a fundamental technique in Bayesian inference, called Naive Bayes. Thi...
UTF-8
Python
false
false
25,840
py
19
naive_bayes.py
5
0.713235
0.70209
0
508
49.862205
857
noltron000/CS-1-2_tweet-generator
5,609,227,289,814
77f8235f455e91f8d95a896cd589b58597305a5d
0c0712ff1c7a06bf75dcc9fbfdac8d6d3b8df876
/misc/prefactored.py
10f81c92eacee63b7e195570f07a08ce4cff19d1
[]
no_license
https://github.com/noltron000/CS-1-2_tweet-generator
fde70ce31188e2143cda06824292218d0adf527e
11c1afcf81632aa453818e2320937b9854891fa7
refs/heads/master
2020-04-05T09:12:06.165258
2019-04-14T20:26:16
2019-04-14T20:26:16
154,562,627
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask app = Flask(__name__) import urllib.request # imports internet textfile reader import random # psuedo-random number generator module import sys # module allows program to access terminal parameters import re # the powerful "regular expression" for decompartimentalizing strings def dictionary_m...
UTF-8
Python
false
false
8,304
py
12
prefactored.py
10
0.678675
0.674337
0
305
26.216393
135
State-Representation/code
3,298,534,887,485
6ddbedf7fa2f86e63527bc4ab206c8b8bcc1c3c8
566aabb186fc6950959240202b7db596a64fec4a
/algorithms/AE_Algorithm.py
5d0cbaa14c70dbe0500e008b7633326d344c3378
[]
no_license
https://github.com/State-Representation/code
3393c34a831c209f9d89793543b3a56e4d1fb18a
88c8e80a491db56204e3b9211ae10aa87d661178
refs/heads/main
2023-07-24T22:52:03.918718
2021-09-07T15:14:55
2021-09-07T15:14:55
399,847,904
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # State Representation Learning with Task-Irrelevant Factors of Variation in Robotics # Anonymous Authors 2021 import numpy as np import matplotlib matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! import matplotlib.pyplot as plt import torch im...
UTF-8
Python
false
false
20,883
py
17
AE_Algorithm.py
15
0.557918
0.549011
0
501
40.676647
124
StevenClontz/mathematics-of-data
1,288,490,210,696
5e8b15b9788d0904d6c638fa2c4d9e302d246203
e9cf8a5b25f6e22d2b13b4e557f0fb5adb16d7ce
/source/files/measurements-spread-deviations.py
083dec31359cdda2ec9066c94a76d8eb5a92c301
[ "MIT" ]
permissive
https://github.com/StevenClontz/mathematics-of-data
fe0a910fcd4b99c0bc8dff43c20f8085e5fdade9
dd35724cafd4f7581ade5358828332f7e9fcb6b3
refs/heads/main
2023-04-04T11:05:00.228022
2022-06-15T21:05:38
2022-06-15T21:05:38
267,642,578
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
data_one = [] # fill in values from first dataset data_two = [] # fill in this too # if means are different, data was entered incorrectly from statistics import mean assert mean(data_one) == mean(data_two), "Means should be the same" print("The mean for each dataset is FIXME") # print out the mean of the datasets dev...
UTF-8
Python
false
false
598
py
562
measurements-spread-deviations.py
24
0.688963
0.66388
0
15
38.933333
80
wayabi/bvh2nn_data__q2e
12,524,124,669,126
bf52fba0b6f5a13fac06a1a9604d3594e1cae6be
ee8f2d1a738528c8ae300a50b0861e0fedebf551
/pandas3Dscatter.py
e62b08b28d53f2bde1562b855750f769f4da2341
[]
no_license
https://github.com/wayabi/bvh2nn_data__q2e
1a612b9ef4897c6d9d55a28887661d43c71b76fb
2ec84e4d71166b19a19f2a6c806718fd2452d658
refs/heads/master
2020-03-22T19:02:19.190245
2018-07-11T00:10:17
2018-07-11T00:10:17
140,499,741
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd from pandas import DataFrame import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D df = pd.read_csv('~/a', parse_dates=True) #print(df.head()) #df['H-L'] = df.High - df.Low #df['100MA'] = pd.rolling_mean(df['Close'], 100) threedee = plt.figure().gca(projection='3d') threedee.scat...
UTF-8
Python
false
false
437
py
9
pandas3Dscatter.py
8
0.688787
0.668192
0
16
26.3125
48
mesonbuild/meson
15,195,594,324,002
8c855c54f7660368ed011739de7e60f3e7ff6054
85ccd32aa73eecf274a937f1fc3b6f4d484b77da
/test cases/common/262 generator chain/stage2.py
7f82592a1efe5f47c09cdff8a731e74087c2d87d
[ "Apache-2.0" ]
permissive
https://github.com/mesonbuild/meson
48321cf4235dfcc0194fed90ff43a57367592bf7
cf5adf0c646474f0259d123fad60ca5ed38ec891
refs/heads/master
2023-09-01T05:58:50.807952
2023-03-17T20:27:37
2023-08-31T11:52:41
19,784,232
5,122
1,848
Apache-2.0
false
2023-09-14T15:47:23
2014-05-14T15:08:16
2023-09-14T09:59:12
2023-09-14T15:47:22
40,706
4,875
1,436
2,172
Python
false
false
#!/usr/bin/env python3 import sys from pathlib import Path assert(Path(sys.argv[1]).read_text() == 'stage2\n') Path(sys.argv[2]).write_text('int main(void){}\n')
UTF-8
Python
false
false
163
py
3,350
stage2.py
683
0.687117
0.662577
0
6
26.166667
51
ulucsahin/Thesis
16,879,221,485,506
c1450d0d58662a515250e9b45b338041218f17c4
00e256c739659169972fca251a3611d137c913a4
/annotation_manager.py
d0fd267cd8abb24265a4e0e222a1cd8ede71ca4f
[]
no_license
https://github.com/ulucsahin/Thesis
3a5378a0f5b5e526c199dae7c4d72ef3330bd573
0f9b85b3ac7284174a011e619fdd6f6e3971360c
refs/heads/master
2023-03-14T20:58:43.282707
2021-03-14T12:41:41
2021-03-14T12:41:41
243,502,559
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import randint # Annotation indexes bald = 4 bangs = 5 black_hair = 8 blond_hair = 9 brown_hair = 11 gray_hair = 17 receding_hairline = 28 straight_hair = 32 wavy_hair = 33 # gender and beard goatee = 16 male = 20 mustache = 22 no_beard = 24 sideburns = 34 # face chubby = 13 high_cheekbones = 19 oval_fac...
UTF-8
Python
false
false
6,550
py
15
annotation_manager.py
12
0.540153
0.519847
0
308
20.266234
116
pardusnimr/adelscrapper
2,723,009,266,699
7585f0f8451324cdbc6807bb71226fcd7d5f6a5f
fcb5b41c20330ae17093d5449f209d113b2a1775
/wed2.py
51e5d2ab8e7649f4ced88765488a0c60c6ed03ba
[]
no_license
https://github.com/pardusnimr/adelscrapper
0c520650881b2dd05d1cd79265065dd708a769bd
83c66ba82cf6c058cd4e6febc33a70012fb39dc4
refs/heads/master
2021-01-10T05:25:07.229791
2015-12-09T20:33:30
2015-12-09T20:33:30
47,716,780
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 import lxml.html import pymongo client = pymongo.MongoClient("mongodb://nimr:d7hero@ds041871.mongolab.com:41871/adel") db = client['adel'] f = open('allrabea2.html') ff = f.read() doc = lxml.html.document_fromstring(ff) region = '' city = '' district = '' scheme = '' land = '' deal = '' deal_price...
UTF-8
Python
false
false
1,526
py
78
wed2.py
5
0.543906
0.517693
0
56
26.089286
86
cho-jae-seong/Algorithm
798,863,933,104
99dbc7e94cb5a714ff1c19d5d9bc3e240e4b05d1
6feda26060cfc9f79a98acdedc8ef4bd82bf0587
/BOJ17140.py
288582525c2c43ac445712f9f9b4d16524acda4d
[]
no_license
https://github.com/cho-jae-seong/Algorithm
1ff188ec1dbba370af6cfbf0186728ab536930b6
436dadb8be5c308c276562de53a7f4bf25d03bfa
refs/heads/master
2023-07-04T04:27:33.741983
2021-08-10T10:12:04
2021-08-10T10:12:04
260,405,007
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from collections import Counter from functools import reduce def R(array): mx=0 for i in range(len(array)): X=Counter(array[i]) del X[0] X=list(X.items()) X.sort(key=lambda x: (x[1],x[0])) if len(X)>50: X=X[:50] array[i]=reduce...
UTF-8
Python
false
false
1,086
py
123
BOJ17140.py
123
0.486188
0.461326
0
43
23.255814
72
fattredd/fattredd.github.io
16,621,523,470,920
0b2ad160523e9b476f4f943353278d81f4b705fb
f1fed01b75e8968a1bf1ab194a12b2c3ad7ccb95
/py/textOffset.py
9f36744b36ed7d5cb9ad4d9953f0838d932cb2da
[]
no_license
https://github.com/fattredd/fattredd.github.io
c0553f938df005b822b3640cdc56d6c0bb453c8c
d45da47ae3a2f5f40848b89f47b97e6127996d48
refs/heads/master
2021-01-19T21:28:11.700195
2019-05-13T14:11:28
2019-05-13T14:11:28
21,010,252
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import msvcrt as m import time alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' def wait(): key = m.getch() def offsetStr(string, num=1): out = '' #23 for x in string: if x in alpha: newNum = ord(x)-65+num if newNum > 25: newNum = newNum%26 elif newNum < 0: newNum += 26 out += chr(newNum+65) else: o...
UTF-8
Python
false
false
721
py
71
textOffset.py
60
0.613037
0.590846
0
42
16.190476
36
raulastu/Algorithm-Competitions-EWS
19,224,273,620,446
9e21c959008307071eb15529af013301085bc6d9
fc4897c00ad5a6a641e12e4affe374d686ae7714
/coderperu/Round13/D.py
c2565b3875920ac9f34256e178908044246de2fa
[]
no_license
https://github.com/raulastu/Algorithm-Competitions-EWS
b651c0af684b7e4a1afc7cfabdc6fd9d1dc8e45d
07801fe774778dc5c81682f6a893f97a79ed4022
refs/heads/master
2020-04-10T12:18:50.923422
2015-08-31T01:45:15
2015-08-31T01:45:15
7,485,600
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.stdin = open("D.in", "r") def expo(a, b, MOD): if (b==1): return a%MOD; if (b==2): return (a*a)%MOD; if (b%2==0): return expo(expo(a%MOD,b/2,MOD),2,MOD)%MOD else: return a*expo(expo(a%MOD,(b-1)/2,MOD),2,MOD)%MOD; def solve(): A = raw_inp...
UTF-8
Python
false
false
1,276
py
324
D.py
286
0.418495
0.359718
0
69
17.507246
58
eqiihuu/EE512
9,577,777,106,043
1b09bd7c3831b1f01408ec4f9ce8124e76bd73f2
a8f778fed3e42cad4554c57ad607c19d10fbc697
/EE512-graphical-model-master/test.py
a0e42ae50f71d4dfe58d3c29c225fd88b799a41a
[]
no_license
https://github.com/eqiihuu/EE512
75b38842979aaae2b90e218a57eaa0c97a7b7183
0ce92f60f6e2a7e212ced7fc30bf988d81faf223
refs/heads/master
2021-08-28T03:34:42.352695
2017-12-05T11:45:11
2017-12-05T11:45:11
113,174,681
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import exact_inference as EI from read_data import read_uai #from node_clique import Node, Clique, Graph, Junction_tree_cloud graph = read_uai("../data/test.uai") for clique in graph.cliques: print("-------------------") for node in clique.nodes: print(node.index) EI.min_fill(graph) for node in graph...
UTF-8
Python
false
false
602
py
5
test.py
4
0.652824
0.649502
0
24
24.083333
65
beverast/LS-DS-Unit-CS
4,947,802,351,867
9ae6cda83b6790e6395ad57070494ffb32de8775
623fa21c3e24373d3e90f7f40a2cef983a32a6b5
/Whiteboard-Lectures/skip_list.py
8df9b745930cc074f51c86e20fb22f18b3678bd1
[]
no_license
https://github.com/beverast/LS-DS-Unit-CS
4c138ba427c87e9ef753512362d8814acc6aba16
e0fb759da5ffa49aa5a04e267bb150d00db119e2
refs/heads/master
2023-05-29T22:47:10.151353
2020-05-16T19:00:58
2020-05-16T19:00:58
264,509,235
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Skip list: probabilistic data structure based on the Linked list # Description of a skip list: https://brilliant.org/wiki/skip-lists/ class SkipNode(object): def __init__(self, elem=None): self.elem = elem # 'Square' representation (not list, station-like representation) self.prev = Non...
UTF-8
Python
false
false
2,195
py
20
skip_list.py
17
0.560364
0.556264
0
61
34.983607
80
abhusnurmath/rando
15,470,472,227,060
32000b9ec633b8ae10abff2854ce83813fb4b0ac
a6df3ca677cb301ae67220d1a2bec37f5045d270
/cit590Examples/fancySort.py
501c66aca4a36a1659d160958626deaf33bbe827
[]
no_license
https://github.com/abhusnurmath/rando
53c6fdf5ef8ecbe8440c09acb79636db7f0bbd42
84260a35399d983ed0154a5e004cadd970d2be6a
refs/heads/master
2020-05-19T11:07:09.372441
2015-02-21T01:35:25
2015-02-21T01:35:25
2,403,652
7
10
null
false
2015-01-25T02:02:12
2011-09-17T05:34:24
2015-01-24T02:43:10
2015-01-24T02:43:10
651
14
14
1
Java
null
null
def compareBasedOnLastComponent(x,y): if x[-1] < y[-1]: return -1 elif x[-1] == y[-1]: return 0 return 1 data = [['arv','Penn', 33], ['fed', 'West Point', 45], ['Ben', 'Cornell', 25], ['Steven', 'UVA', 24]]
UTF-8
Python
false
false
233
py
153
fancySort.py
153
0.502146
0.437768
0
7
31.571429
54
santiago-dc/MyLearningPath
18,030,272,713,282
7f502f1af7de2e13253bdc93805f3e428b45e9dd
acc7d1568e286afeae2841b218761943ae9e21ba
/skin_cancer/.ipynb_checkpoints/CNN_dataset2-checkpoint.py
cca594931a63a4d3befe3df9b594070cc259510c
[]
no_license
https://github.com/santiago-dc/MyLearningPath
b0b826397b185855492fdbf793cc26232dfb06d8
414809a1770cc58d66c132bafe4eb2c75e83e99d
refs/heads/master
2021-09-11T12:05:17.503457
2021-09-07T17:03:26
2021-09-07T17:03:26
241,696,158
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import pandas as pd from PIL import Image import os import glob import matplotlib.pyplot as plt from keras.utils.np_utils import to_categorical import tensorflow as tf np.random.seed(5) benign_train_folder = 'data/melanoma/DermMel/train/NotMelanoma' malignant_train_folder = 'data/melanoma/DermMel/tr...
UTF-8
Python
false
false
4,839
py
46
CNN_dataset2-checkpoint.py
6
0.704691
0.66708
0
145
32.372414
108
yamini94/imdb
6,975,026,891,233
793e3b215c83227c4228f998ce76ffb8a07721c4
f7ea2b73e87508ae9a145d79752d0251c362c6ab
/movie/documents.py
c9780389bc7a1494611c42797a2e9cd99ae1e506
[]
no_license
https://github.com/yamini94/imdb
ec730d4a04c266e71ca8d9e01edffe99506daef4
66e341675f5c1976d9f44378be179751e9169d98
refs/heads/master
2022-12-10T10:17:11.509859
2020-08-28T03:11:20
2020-08-28T03:11:20
290,918,417
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django_elasticsearch_dsl import Document from django_elasticsearch_dsl.registries import registry from .models import Imdb,Genre from elasticsearch_dsl import Index from django_elasticsearch_dsl import Document, fields # @registry.register_document imdb_index = Index('imdb') @registry.register_document @imdb_ind...
UTF-8
Python
false
false
1,148
py
15
documents.py
13
0.621951
0.620209
0
51
21.470588
56
ChinaChenp/Knowledge
4,956,392,282,476
7adb242787d6d0c807ff3953c1a387a2b2def07f
5e3fb85de7caa7e9529114e97a992f1f88067d6c
/interview/interview_python/jianzhioffer2/16.py
02935955e68e34bcc942e9fdd00ea01bbb4d38d5
[]
no_license
https://github.com/ChinaChenp/Knowledge
ad3f0b290fadf18b1a4be11246041efa81736df7
64bb5286856ad5c01e682fc5e93477c6aa7299b9
refs/heads/master
2021-06-05T03:13:32.071326
2019-12-25T10:45:51
2019-12-25T10:45:51
45,509,734
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 数的N次方 def Power(base, exp): # 0的n次方没有意义,0的-n求倒数会出错 if base >= -1e-9 and base <= 1e-9 and exp < 0: return 0.0 # 次方为负数要用正数n次方求倒数 abs_exp = abs(exp) # 计算次方 re = 1.0 for _ in range(0, abs_exp): re *= base # 次方为负数要求倒数 if exp < 0: return 1.0 / re ...
UTF-8
Python
false
false
522
py
368
16.py
300
0.518605
0.460465
0
26
15.538462
50
tomaxh/todo
10,161,892,646,172
2a3a550063bb199e8a875e22dcb7ec4a8277ba4c
be00691fd152502981c6a221d4636db0a0b93e7e
/backend/src/articles/admin.py
b563cb1b766d3b4bde410aa1420b0957a2f97342
[]
no_license
https://github.com/tomaxh/todo
8ca34e9200e114753a671ea391c3d7ee0dfdb71a
2c04aa272be6c3cd56bcd7edd8be287a01c31c12
refs/heads/master
2020-05-18T11:05:47.890825
2019-05-15T22:09:57
2019-05-15T22:09:57
184,369,447
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from .models import Todo # Register your models he admin.site.register(Todo)
UTF-8
Python
false
false
111
py
16
admin.py
12
0.801802
0.801802
0
5
21.4
32
codingEnzo/YunfangWork
171,798,741,664
bd47edb4791d1e62727386f35abfe4ff2434c2d0
d7ade211dd818f9653c5a1de6edba343dff1514c
/developer_data_push/start_task.py
288489272d9ec9b801cbf338d851d32e8e420703
[]
no_license
https://github.com/codingEnzo/YunfangWork
ee6382feedd663d1906ff54f41988df814395444
da6c3b622ea10e28802bcdead01d422a90784cb5
refs/heads/master
2017-09-10T02:45:10.013828
2017-08-25T03:36:44
2017-08-25T03:36:44
81,432,516
0
1
null
false
2017-03-23T12:29:25
2017-02-09T09:22:26
2017-02-09T09:49:47
2017-03-23T12:29:25
458
0
1
0
HTML
null
null
#coding=utf-8 from __future__ import absolute_import import sqlalchemy import __builtin__ from db_orm import data_handle_instance,db_instance from celery import Celery from settings import * from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import declarative_base from task_env im...
UTF-8
Python
false
false
4,317
py
233
start_task.py
209
0.576789
0.566597
0
103
40.912621
165
HPCD/room-number-ocr
3,272,765,127,997
918b26caaf578aead2bee87ced834a314b678b92
039370bec9ba63a49bc48d3f7e11463dc10da032
/testpost.py
468fb715578abaea06f6067cbe13989d741e23b9
[]
no_license
https://github.com/HPCD/room-number-ocr
96660b72e2a83a773de198de25d41ea0393c6fca
d7548c52a83351f8b056ae43e8459a70bf32b962
refs/heads/master
2023-03-24T22:43:20.236234
2021-03-19T03:08:26
2021-03-19T03:08:26
349,283,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- """ @author:abner @file:testpost.py @ datetime:2020/8/26 16:45 @software: PyCharm """ import cv2 import base64 import requests import unittest from datetime import datetime import json import os #内部测试地址 in_url_ip = "http://10.74.150.75:32666" # 测试环境外部访问地址 # out_url_ip = "h...
UTF-8
Python
false
false
1,737
py
22
testpost.py
14
0.591751
0.529588
0
69
23.246377
107
Ysnsn/python
7,404,523,624,478
373ff21a836a36261f802c2e6c6e9419db7b8e7e
f89a96461b24dd448007ef221926dd83f5c54562
/基本.py
82af16231743c1b7f42a53d88404c9883d7e0bea
[]
no_license
https://github.com/Ysnsn/python
4b34e96edbd21dfc255f3fcb0256cc23048dc994
ccf6d4f3510d54724c7571ab22bd423d1e7c2d27
refs/heads/master
2023-01-04T13:28:24.013264
2020-08-04T02:59:47
2020-08-04T02:59:47
280,341,353
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
ls=[7,4,5,2,3,5,6] print("列表为",end="") print(ls) print("列表长度为{}".format(len(ls))) print("列表中有{}个5".format(ls.count(5))) print(ls[1:5:2]) new=eval(input("请输入一个新的元素:")) ls.append(new) ls[3:5]=[11,12,13] print("列表为",end="") print(ls) print("列表中的最大值为:{}".format(max(ls))) print("列表中的最小值为:{}".format(min(ls))) n=eval(i...
UTF-8
Python
false
false
568
py
36
基本.py
33
0.639738
0.59607
0
29
14.793103
37
damc/TextEditor
13,520,557,082,282
3bed9bc228d353edbf82aad2eb18ac1655f4615f
bfdf5da40942676f17300f48ece3348cf50a67dd
/text_editor/__init__.py
f903ce9bdaf80bda6f5eb89ebc0b7188a416e065
[]
no_license
https://github.com/damc/TextEditor
c81209163a09900e14ab33065cc03391a4cf3ab3
5801b09f490a2845f9ffcb67beb8fc2a39d19e94
refs/heads/master
2023-07-03T17:58:07.829734
2021-02-19T13:58:29
2021-02-19T13:58:29
395,630,579
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .text_editor import TextEditor
UTF-8
Python
false
false
35
py
6
__init__.py
5
0.857143
0.857143
0
1
35
35
OzupeSir/credit_card
5,944,234,746,840
3ac2be34527b4b5a79671f5f93fcf151ce32b512
74ddde6c4d75e82761551190b3347bca38f9a90f
/credit_card/auto_bin.py
9c4fe036c94e346563f99ed96a5a758b55034ea2
[]
no_license
https://github.com/OzupeSir/credit_card
551b5d1e84ce5ae9f7d89ac192a2024705f1bbcd
c7ff733629164d8050c286f3ba95cbfc031fe171
refs/heads/master
2020-07-26T20:56:23.394379
2019-09-25T12:08:56
2019-09-25T12:08:56
208,763,691
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# utf8 # Hsiaofei Tsien import numpy as np import pandas as pd import scipy class AutoBins: def __init__(self, frame, y): self._frame = frame.copy() self._y = y def _column_qcut(self, column,q): # 进行初始化分箱,先分成 20 个箱体 _drop, bins = pd.qcut(self._frame[column], q=q, retbins=Tr...
UTF-8
Python
false
false
4,951
py
2
auto_bin.py
1
0.52143
0.501066
0
131
31.236641
97
nayamama/asycio-programming
18,038,862,644,295
09d3e2131b1f4a97e4b8ec8e54b48859755f2a8a
1ab21f43ee50952693c06711df296ebf41ec9699
/thread_programming/os_processes.py
dd6534155f6b05a2aaae41b1903c269c4ea8f53a
[]
no_license
https://github.com/nayamama/asycio-programming
17cc478fda383a7d68212b1095e2cc79d789df03
fdc52a7bab97c95e1b50018ab16f4fc99c263eed
refs/heads/master
2020-05-27T06:27:07.759152
2019-05-25T04:46:54
2019-05-25T04:46:54
188,520,641
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from multiprocessing import Process from syc_programming import io_bound, cpu_bound, timeit @timeit() def multiprocessed(n_thread, func, *args): pros = [] for _ in range(n_thread): p = Process(target=func, args=args) pros.append(p) # start the process for p in pros: p.start() ...
UTF-8
Python
false
false
669
py
7
os_processes.py
6
0.572496
0.55157
0
30
21.333333
55
mobilase/python
12,678,743,494,967
f4a671d94d5442c60f91271df937eb9f2e0476a4
9c6382dec3012f29019d44619233293fbfc2125c
/08/01.py
69798c23e721d25dc36959a71baab1a9f22f4805
[]
no_license
https://github.com/mobilase/python
7a56dd0d5fc63503aa4bad34d7ec677c5685eed7
5690d924c3ef0d9f0df25d184b1752cdc03399ca
refs/heads/master
2022-04-25T05:09:12.692031
2020-04-28T17:55:30
2020-04-28T17:55:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import threading import time import random def worker(number): sleep = random.randrange(1, 10) time.sleep(sleep) print("Worker {} slept {} seconds\n".format(number, sleep)) for i in range(8): t = threading.Thread(target=worker, args=(i,)) t.start() print("All Treads are in queries\n")
UTF-8
Python
false
false
311
py
146
01.py
97
0.66881
0.655949
0
14
21.071429
63
nj7/SecureVault
4,990,752,008,265
36ae039c7bc9a5b1887a6221b2fffdfa4e959282
1abb3698e84c61dfe0d8bac3dfbd29d26e3f1036
/secure.py
876be179ae4417b6e3479407e1168e505ab116b8
[]
no_license
https://github.com/nj7/SecureVault
784f14d8d5bbe81cdfe629decbbf132776ee9a0d
d1d5c6c9567a97c0754eadfc7ea29c7f7ea43be9
refs/heads/master
2021-01-23T00:14:46.576516
2017-03-30T01:12:14
2017-03-30T01:12:14
85,706,448
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import shutil import os import batchExecute def main(): """taking user input of view a file or adding a file to vault""" while True: choice = takeInput() if choice == 1: hideFile() elif choice == 2: findFile() else: print "P...
UTF-8
Python
false
false
3,782
py
3
secure.py
2
0.574828
0.572184
0
145
24.082759
118
cassie01/APItesting
14,113,262,579,406
a6e79ea33c785ee83636fe603f5d08e249ca252c
1ae32e324de7e8712b4cde4aaa0a6901fa293301
/before/010.py
64279bab200e84ab76c150ef18e8debca027f161
[]
no_license
https://github.com/cassie01/APItesting
bfd78422aeebcf5a1031ce4357309df3b99e4979
812cff983bc59df3d34e0fd5d2f4229c82cf90ab
refs/heads/master
2020-04-18T07:33:48.901876
2019-01-24T13:47:34
2019-01-24T13:47:34
167,364,372
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from selenium import webdriver import unittest import time from selenium.webdriver.common.action_chains import ActionChains class Cnode(unittest.TestCase): def setUp(self): self.Url = 'http://39.107.96.138:3000' self.driver = webdriver.Chrome() self.driver.get(self.Url) #登陆用户 ...
UTF-8
Python
false
false
1,389
py
24
010.py
24
0.643755
0.611973
0
34
38.823529
89
lbgbox/DenoiSeg
15,607,911,190,206
4e8740ace94520da2010da21043c2db6a84e6fa8
1c6763051234c7e00acc0b209d79f9b3a718605b
/denoiseg/utils/seg_utils.py
e9d7ea553b42c6290dbce8efe7dc309987005c82
[ "BSD-3-Clause" ]
permissive
https://github.com/lbgbox/DenoiSeg
07151d513391bb60e0c21131a244d4ac701e99c0
9803cbcf31c0510d28a9ff43be92b29cd47120a0
refs/heads/master
2023-08-30T18:40:53.591717
2021-11-16T13:53:07
2021-11-16T13:53:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from skimage.segmentation import find_boundaries def convert_to_oneHot(data, eps=1e-8): """ Converts labelled images (`data`) to one-hot encoding. Parameters ---------- data : array(int) Array of lablelled images. Returns ------- data_oneHot : array(int) ...
UTF-8
Python
false
false
2,826
py
54
seg_utils.py
12
0.583864
0.573956
0
118
22.949153
86
huseyinbiyik/repository.boogie
10,874,857,197,365
40d46e33c0091f373300cb8f5ceb5875aa120a26
7c8bfb281103e5b59054ff5a957926cf62a7a896
/service.subtitles.turkcealtyazi/service.py
be80bf22a1cb7dbdf5c1810ed2c14cf3c4f96f06
[]
no_license
https://github.com/huseyinbiyik/repository.boogie
06deaee6b4e641330dc6070bb53529f119c0395a
d73d8baa99f2757e9ad13730c51d9b96b17b6512
refs/heads/master
2021-03-12T19:22:09.903700
2021-02-17T00:07:30
2021-02-17T00:07:30
39,784,700
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- ''' Author : Huseyin BIYIK <husenbiyik at hotmail> Year : 2016 License : GPL This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either v...
UTF-8
Python
false
false
9,071
py
80
service.py
49
0.474589
0.467203
0
250
34.284
99
nehaiyer/nlu-assignment1
5,162,550,735,791
54b955514797e444271e1aa95135d658d5a4270a
89bc5fa4d267fbd796c88c6e60550d9e4c68c0e5
/S1_bigram.py
8e6198437565e82f98f181bb06e76de0177940b1
[]
no_license
https://github.com/nehaiyer/nlu-assignment1
8e373deee32f16880141268cbe55633017d8dcc4
d95e79eb705037a67e8d127e7d27a97d46ab1a68
refs/heads/master
2021-01-24T13:01:12.102595
2018-03-04T09:14:41
2018-03-04T09:14:41
123,161,929
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 27 17:14:30 2018 @author: neha """ import nltk from nltk.corpus import gutenberg import numpy as np import string from nltk.corpus import brown import random def load(): train=[] test=[] for c in brown.categories(): sent=b...
UTF-8
Python
false
false
5,242
py
5
S1_bigram.py
3
0.566387
0.55227
0
194
26.020619
633
bi3mer/qd_dda_level_generation
1,520,418,452,079
d337bcc89aaee4ce804b5d820265f4b2a1c3f9d2
2bb5ec0ff4676d24e9a2fe000afa3a8ecd843c46
/Utility/Icarus/Fitness.py
4200dc6de0b79b3f86a69960a27f0a695e3e71ce
[]
no_license
https://github.com/bi3mer/qd_dda_level_generation
85f2f6030688b19a7c4c40220019009087df0ddc
463ca6335868bd3424ecdb47c79e3120a4f41cee
refs/heads/main
2023-09-06T04:46:40.150802
2021-11-01T17:32:27
2021-11-01T17:32:27
327,395,831
0
0
null
false
2021-05-04T15:35:39
2021-01-06T18:22:08
2021-05-04T14:43:09
2021-05-04T15:35:39
638
0
0
0
Python
false
false
from .SummervilleAgent import percent_completable def build_slow_fitness_function(grammar): def slow_fitness(slices): # at this point, Icarus slices should be rows bad_transitions = grammar.count_bad_n_grams(slices) play_slices = list(slices) # add an area for the player to start ...
UTF-8
Python
false
false
818
py
66
Fitness.py
64
0.632029
0.623472
0
22
36.181818
98
hector-han/pythonweb
14,233,521,650,689
d9ead1b89c605b2aa3d65e3553d5383ecfddb877
1330be11e79f58c7d0a8b427546b258a14f0e2d4
/wechat/urls.py
da87f7425470fe10dde0705e3493ec3a08d7d74a
[]
no_license
https://github.com/hector-han/pythonweb
68cca4861e1c911fe7b27193ca7b31f4475aeafb
baf1af5a1207b90e24e7370f4ae27e2b33aaaed5
refs/heads/master
2022-08-08T03:22:53.225781
2022-07-31T09:13:38
2022-07-31T09:13:38
156,961,628
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views urlpatterns = [ path('main', views.wechat_main, name='wechat_main'), ]
UTF-8
Python
false
false
126
py
7
urls.py
5
0.690476
0.690476
0
6
19.833333
56
Y0URFR13ND/Hot-Board
16,140,487,140,931
9b39cf0aadef2cd330d39682b7aec030fc57079d
965e75eb296f97ccb0e1dd27bdf323a559b60b11
/Software/pyApplication/vcp_handler.py
7bace7818ffa3bedc2282d0d2b18a0d4bf60574b
[]
no_license
https://github.com/Y0URFR13ND/Hot-Board
8851c038a7921e2c1c35143b368ad1136dd87c36
a943e9d2141f623d358388ce7535276c50303101
refs/heads/master
2023-02-13T03:09:19.257778
2020-12-02T07:27:46
2020-12-02T07:27:46
292,227,353
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# ****************************************** # file: vcp_handler.py # project: Hot-Board # author: Nils Jäggi # description: communication with the Hardware itself # ****************************************** import glob import sys import serial # python -m pip install pyserial class VirtualComPort(): def __init...
UTF-8
Python
false
false
2,682
py
40
vcp_handler.py
3
0.541589
0.533756
0
79
32.924051
97
techkids-c4e/c4e5
13,262,859,038,959
55bf4c6e128558675ab21db1631f0340875590ee
b9a8164b946f1967e3c2cde0d8c0060ee6cc7366
/Phuong Anh/Lesson 5/L5 - Dictionary Ex.py
33bae5994fcaf48e9e99a90376af9d52314530d1
[]
no_license
https://github.com/techkids-c4e/c4e5
d91bb2b4f791ddd978fc486028373a655a3accd2
83df2b5718192f9340c6b9edeb0b2a7ff0b9e148
refs/heads/master
2020-12-25T10:41:19.485635
2016-12-09T07:09:57
2016-12-09T07:09:57
61,489,855
0
4
null
null
null
null
null
null
null
null
null
null
null
null
null
#Wave 1: print('Wave 1:') teacher_list = [{"Name":"Tran Quang Hiep","class":"C4E3","session number":"10","rate":"100","month salary":"1,000"}, {"Name":"Nguyen Quang Huy","class":"C4E1","session number":"10","rate":"200","month salary":"2,000"}, {"Name":"Tran Thu Ha","class":"C4E2","sessi...
UTF-8
Python
false
false
1,498
py
412
L5 - Dictionary Ex.py
336
0.570093
0.533378
0
35
40.914286
122
lithium/django18-template
2,319,282,380,986
46ef9dc0595452f9eb34d3080722f45102fb9d9b
d1ddda48764785f903f1d5883651210091c1cf82
/apps/mainsite/settings/fragments/defaults/email.py
5ab0cc1370a39a1c61336eb87b8eae02283b03e5
[]
no_license
https://github.com/lithium/django18-template
2144d38e310ce4428cb1594c52a1e77ea8156a29
501f2feb2d7d7a233aaa260c95aa8f0f86fd035c
refs/heads/master
2021-01-10T08:10:51.551031
2016-02-12T03:21:48
2016-02-12T03:21:48
43,374,235
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
### # # Email # ### DEFAULT_FROM_EMAIL = 'webmaster@localhost' EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
UTF-8
Python
false
false
125
py
11
email.py
8
0.712
0.712
0
8
14.75
61
Jusan-zyh/zqh_riscv
17,368,847,763,319
a2154f39108f246034898d5cc114a5a96c043f72
b627da650f75bdcf7e0dc0ef5c4419cf53a1d690
/src/zqh_amba/zqh_tilelink_2_axi4_parameters.py
f77b294d9d599fad774644911f57cb5d2f7f40c7
[]
no_license
https://github.com/Jusan-zyh/zqh_riscv
4aa8a4c51e19fb786ba0c2a120722f1382994a52
bccde2f81b42ac258b92c21bb450ec6ff848387a
refs/heads/main
2023-08-06T12:56:52.420302
2021-09-21T01:25:41
2021-09-21T01:25:41
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import os from phgl_imp import * from zqh_tilelink.zqh_tilelink_atomic_transform_parameters import zqh_tilelink_atomic_transform_parameter class zqh_tilelink_2_axi4_parameter(parameter): def set_par(self): super(zqh_tilelink_2_axi4_parameter, self).set_par() self.par('aw_id_max_num', 1) ...
UTF-8
Python
false
false
460
py
295
zqh_tilelink_2_axi4_parameters.py
224
0.691304
0.676087
0
12
37.333333
105
y-oksaku/Competitive-Programming
9,277,129,408,746
040c69e54a888d290388b9e7ace73765d16a77bb
bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6
/AtCoder/abc/007b.py
7e3215a086df3151fe76cfda94be1a3ff43a1176
[]
no_license
https://github.com/y-oksaku/Competitive-Programming
3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db
a3ff52f538329bed034d3008e051f30442aaadae
refs/heads/master
2021-06-11T16:14:12.635947
2021-05-04T08:18:35
2021-05-04T08:18:35
188,639,647
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
A = input() if len(A) == 1 and A[0] == 'a' : print('-1') else : print('a')
UTF-8
Python
false
false
83
py
1,459
007b.py
1,456
0.421687
0.385542
0
6
13
32
824zzy/Leetcode
13,769,665,176,327
16663bf9c1b774d4a5853b6f10e9070f8f39bfed
a34ec07c3464369a88e68c9006fa1115f5b61e5f
/K_DynamicProgramming/Knapsack/01-Knapsack/L1_740_Delete_and_Earn.py
1b7edc7382be775a9534f95225eae08cc190fceb
[]
no_license
https://github.com/824zzy/Leetcode
9220f2fb13e03d601d2b471b5cfa0c2364dbdf41
93b7f4448a366a709214c271a570c3399f5fc4d3
refs/heads/master
2023-06-27T02:53:51.812177
2023-06-16T16:25:39
2023-06-16T16:25:39
69,733,624
14
3
null
false
2022-05-25T06:48:38
2016-10-01T10:56:07
2022-05-10T23:28:02
2022-05-25T06:48:37
2,707
4
1
0
Python
false
false
""" https://leetcode.com/problems/delete-and-earn/ 1. use hash table for calculating score and sorted keys as A 2. At i-th number, we can skip it or select it, if we select it then check if next number needs to be deleted. """ class Solution: def deleteAndEarn(self, A: List[int]) -> int: cnt = Counter(A) ...
UTF-8
Python
false
false
726
py
1,842
L1_740_Delete_and_Earn.py
1,795
0.53719
0.523416
0
19
37.263158
110
rtloftin/HAL
11,510,512,358,163
017f5f7f59c7dd6198c83d5e91aec812cb5ecb67
fe3f88bf0344b3408b808a3d9aa3d30b9233a8a6
/navigation/expert.py
021a6352ba663f0f4dd6170f393322433ada88f5
[]
no_license
https://github.com/rtloftin/HAL
45c500877911144b539a11c9f582b864752da0d3
381c019a3c930d943672a65ae651e5a4f52686f8
refs/heads/master
2020-03-20T02:41:09.954395
2019-01-16T00:16:45
2019-01-16T00:16:45
137,120,524
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Defines an agent that acts optimally in a given navigation environment. """ import numpy as np import tensorflow as tf from .environment import Action class Expert: """ An agent that generates optimal actions for navigation tasks in a specific environment. """ def __init__(self, env): "...
UTF-8
Python
false
false
3,773
py
74
expert.py
74
0.532202
0.524781
0
119
30.705882
109
fvelotti/myScripts
4,767,413,716,782
bb8eae85a6e9a6b59cbd0b8609a0f72d0d7f09de
002f72085a6a1ea6beb0f05d959b093de7478e2c
/LHC_injection/plot_lhc_beams.py
3ef92d67cee591558c43da1094eca6de8a6f6b4c
[]
no_license
https://github.com/fvelotti/myScripts
02ba44ac76194024d2f1e6e3180cfe8368f0dbdf
ceb869a1a80d01b9aed44fe0fd24c4998c899ac2
refs/heads/master
2017-05-06T00:45:50.402990
2017-05-04T08:51:53
2017-05-04T08:51:53
12,155,006
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt import dump_library as dp path = '/afs/cern.ch/work/f/fvelotti/private/lhc/' twiss_old_b1 = 'twiss_lhc_old_b1.tfs' twiss_old_b2 = 'twiss_lhc_old_b2.tfs' variables = ['name', 's', 'x', 'y', 'betx', 'bety', 'dx', 'dy', 'mux', 'muy'] name_b1o, s_b1o, x_b1o, y_b1o, b...
UTF-8
Python
false
false
1,319
py
915
plot_lhc_beams.py
348
0.636846
0.576952
0
43
29.674419
133
Hryts-hub/eventmaster
4,277,787,433,672
11e590108409b7c019fc147f5a2f6445498bb56c
696bca4311caddbef8b55a3466417d28b81c7bfd
/comrades/management/commands/country.py
2becb009710e1806e187b8270c30fa12ba8a6404
[]
no_license
https://github.com/Hryts-hub/eventmaster
98d40e708f9ff3a0b92c90b743d99be3bf66b0e9
34cbde942d28ddde12272d67493a1ba81d0b4cd3
refs/heads/master
2023-07-25T10:38:00.965219
2021-09-09T10:05:41
2021-09-09T10:05:41
334,152,626
0
0
null
false
2021-02-21T08:28:14
2021-01-29T13:24:12
2021-02-20T10:35:46
2021-02-21T08:28:05
125
0
0
1
Python
false
false
from django.core.management.base import BaseCommand from events.services import get_countries from comrades.models import Country class Command(BaseCommand): def handle(self, *args, **options): slugs, list_country = get_countries() country_fields = [ Country(slug=slugs[i], country_name...
UTF-8
Python
false
false
443
py
27
country.py
25
0.670429
0.668172
0
13
33
64
zwen000/CSc44500-HW4
14,053,133,012,848
415649637be1cad7d41ede1ab0f3a9796501140f
136d228e6b6193b457b8f46601b350b1349492b3
/BDM_HW4_Wen2.py
e54d2d365c41763310e775651bc1758ec3dceccc
[]
no_license
https://github.com/zwen000/CSc44500-HW4
540515aea6c59a4fb930007525d5fb6300d4624d
b93230705294f0a3063525c3875d9ee910ec41cc
refs/heads/main
2023-01-23T12:44:02.899568
2020-11-17T05:12:03
2020-11-17T05:12:03
312,475,182
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pyspark import SparkContext import sys import csv if __name__=='__main__': def parseCSV(idx, part): if idx == 0: next(part) for p in csv.reader(part): yield ("\""+p[1]+"\"", p[0].split("-")[0], p[7]) path_in = sys.argv[1] if len(sys.argv)>1 else "complaints_small.c...
UTF-8
Python
false
false
958
py
2
BDM_HW4_Wen2.py
2
0.525052
0.502088
0
26
35.807692
97
ShazwanX9/Hamming_Numbers
2,894,807,972,771
e6c07b6e78ee30fb582439abef0b0fe4bf948a76
f3708130135e9c7e6fe2bd12ad6487a5b0ae14e6
/hamming_numbers.py
a4bd2674eb4fd5ba6f00aefd237fbff1c3298b8b
[]
no_license
https://github.com/ShazwanX9/Hamming_Numbers
e0db06e2bf5f04cd8bdaec0bc87e0cf0843923ee
37b1b8de919d5d384cd37d312049d9fd4913e912
refs/heads/main
2023-07-16T07:47:57.520799
2021-08-31T16:09:45
2021-08-31T16:09:45
401,765,105
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" In computer science, regular numbers are often called Hamming numbers, after Richard Hamming, who proposed the problem of finding computer algorithms for generating these numbers in ascending order. In number theory, these numbers are called 5-smooth, because they can be characterized as having only 2, 3, o...
UTF-8
Python
false
false
3,195
py
2
hamming_numbers.py
1
0.404069
0.376526
0
113
26.274336
104
foru120/PythonRepository
4,956,392,264,768
08a0ad4ec4cbb2f276e1179c4ea4d6f2484f328e
f8ad6963bfc851657ea50c6a036cfad29cdd7f60
/Books/DeepLearningLearningFromTheFounderOfKeras/chapter4/chapter4_2.py
169e6b99e6419949c52106331c23e305c0b8e016
[]
no_license
https://github.com/foru120/PythonRepository
e1ab0265c0f50ef2e9acdf7447237c913560692b
db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98
refs/heads/master
2021-01-01T06:53:11.728109
2019-04-25T13:52:50
2019-04-25T13:52:50
97,541,222
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#todo K-겹 교차 검증 #todo - 데이터를 동일한 크기를 가진 K 개 분할로 나누고, 각 분할 i에 대해 남은 K - 1개의 분할로 모델을 훈련하고 분할 i에서 모델을 평가한다. #todo 최종 점수는 이렇게 얻은 K개의 점수를 평균한다. #todo 이 방법은 모델의 성능이 데이터 분할에 따라 편차가 클 때 도움이 되고, 홀드아웃 검증처럼 모델의 튜닝에 별개의 검증 세트를 사용한다. import numpy as np k = 4 data = [] test_data = data[int(len(data) * 0.7):] data = data[:in...
UTF-8
Python
false
false
2,027
py
577
chapter4_2.py
541
0.667154
0.661302
0
42
31.571429
101
fclintj/bash_setup
14,242,111,559,692
9a845e0873fff89d1a618b25dfce20e5dcfb8eee
9dce72b2a41433602b710e00470115ca364970f9
/.autokey/unicode/rarrow.py
371b0462ff89f79a12c967e7ea66fe8834688f28
[]
no_license
https://github.com/fclintj/bash_setup
7213c2a0a672f4a29d2aa1329df7bfcc902e7353
8e71a744302d604724bfab0e2bab843cd8867322
refs/heads/master
2021-01-02T08:38:00.518288
2018-09-28T06:10:54
2018-09-28T06:10:54
99,036,013
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# → U+2192 keyboard.send_keys("<ctrl>+<shift>+u+" + "2192") keyboard.send_keys("<ctrl>"+" ")
UTF-8
Python
false
false
95
py
60
rarrow.py
35
0.591398
0.505376
0
3
30
48
hw233/lolita_son
8,830,452,781,327
d48f995fbd283433642c3466a5da7443609e93ee
8d6227b76789f4e64a8fda38c5b678114c81fd36
/firefly/utils/interfaces.py
eb05a1d8ced6187ab77f3e7494104d7e391a7916
[ "MIT" ]
permissive
https://github.com/hw233/lolita_son
2a2ddeb70bda323c6cf4c1ca1defa25c018c9801
8205dff0d423aaedfa7fca8790d1d6fe50213e6e
refs/heads/master
2021-02-13T10:44:11.393406
2019-04-23T15:19:35
2019-04-23T15:19:35
244,689,286
0
1
MIT
true
2020-03-03T16:42:02
2020-03-03T16:42:02
2019-04-23T15:19:42
2019-04-23T15:19:40
17,647
0
0
0
null
false
false
#coding:utf8 ''' Created on 2013-10-17 @author: lan (www.9miao.com) ''' from __future__ import division, absolute_import from zope.interface import Interface class IDataPackProtoc(Interface): def getHeadlength(): """获取数据包的长度 """ pass def unpack(): '''解包 '...
UTF-8
Python
false
false
427
py
248
interfaces.py
231
0.496222
0.471033
0
24
14.708333
48
Alex1820209/AprendiendoPython
9,285,719,336,837
76ec0acebb5fd7b29f8a5d6e28390afb64da2e4b
d1c58b834a9d86b9447eb984213ffd56ec1cbdcb
/GuiaPython/compara.py
0d9e737fa36c423d2ce7b8c38cc98daae347ec42
[]
no_license
https://github.com/Alex1820209/AprendiendoPython
201f4228220c09c4c3260ef2172d4dbd0a30e183
1b5642dcaa2caf13303d3ede48b94293f82a91fd
refs/heads/master
2020-08-01T09:06:35.852829
2019-09-25T21:33:48
2019-09-25T21:33:48
210,944,026
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
numero1 =input("Numero 1: ") numero2=input("Numero 2: ") #se muestran los valores salida="Numeros proporcionados: {} y {}. {}." if (numero1==numero2): #se mete a esta funcion si los capturados son iguales print(salida.format(numero1, numero2,"Los numeros son iguales")) else: #se usa un if dentro de ...
UTF-8
Python
false
false
669
py
10
compara.py
9
0.660688
0.639761
0
16
39.6875
72
xingxingdegit/learnpython
14,972,255,994,655
ddd2afd21a88adeb95c0c0683ca7a1b14ffe7223
618389bc0bb267785af72ccc9e1cf0dcec874861
/2.7/threadling/test2.py
b9113c626bd252f85134e12ea0c77dacbc2fd5b6
[]
no_license
https://github.com/xingxingdegit/learnpython
4479cb24d77af6b0bc50ee5cadd49a85848113e9
4a353363e5040c8a8c6a48cf3654583fbd1c54a4
refs/heads/master
2020-02-29T15:05:57.991568
2017-03-30T03:24:08
2017-03-30T03:24:08
65,520,341
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # # --*-- cofing: utf-8 --*-- # import threading,time i = 100 lock = threading.Lock() def push(tid): global i check = True while check: # lock.acquire() if i > 0: i -= 1 print 'i is:',i,'the tid is:',tid else: print 'nothing',...
UTF-8
Python
false
false
531
py
47
test2.py
43
0.495292
0.47646
0
26
18.769231
56
fmhr/procon
4,973,572,174,651
e967242d5223ad33cda44cca35aa6848694d7dff
a3c70d94274216451520905d83685cc3c6315473
/atcoder/ABC/012/abc12c.py
7b6ad8d55d0ecb3f14fcf5290e514c8e321ece72
[]
no_license
https://github.com/fmhr/procon
b939827f03d8a5c0e2faada81ae14c11f861909d
e8bea807b9cc8b8781fc21c5e64ab20e4b453283
refs/heads/master
2019-08-27T10:53:57.594751
2019-01-28T09:05:06
2019-01-28T09:05:06
59,471,219
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- def main(): n = 2025-int(input()) x = [] for i in range(1, 10, 1): if n%i==0 and n//i<10: print(i, 'x', n//i) if __name__=='__main__': main()
UTF-8
Python
false
false
228
py
11,142
abc12c.py
777
0.421053
0.368421
0
14
15.285714
31
OMalenfantThuot/scripts_raman
9,887,014,741,332
57d8788700f0047bb42d2c7f8e36075f2911a2ea
5660cc796ba00f5090c7de6208c2e0a77c2328ba
/utils/functions/gramschmidt.py
a25bd32ad43e68be72b93b735fccbc39728a0748
[]
no_license
https://github.com/OMalenfantThuot/scripts_raman
ac65fec1c5ac97a13b8c222e02241f02393f7709
2fd42a4b09d33fcf96da4b4d3340f67d21428b18
refs/heads/master
2023-07-19T20:11:10.457974
2023-07-18T18:15:26
2023-07-18T18:15:26
193,724,148
1
1
null
false
2023-08-28T20:00:38
2019-06-25T14:29:42
2021-12-14T20:08:26
2023-08-28T20:00:37
17,462
1
1
0
Python
false
false
import numpy as np def gramschmidt(basis, normalize=True): basis = [np.array(vec, dtype=np.float64) for vec in basis] nvectors = len(basis) ndim = len(basis[0]) for vec in basis: assert len(vec) == ndim new_basis = [] for i in range(nvectors): new_vec = basis[i].copy() ...
UTF-8
Python
false
false
583
py
71
gramschmidt.py
69
0.567753
0.562607
0
22
25.5
62
smutch/gpu_tests
1,434,519,100,451
ffd6abef4c171c66c2a2f5f4a895d51b1e7dd1e2
c09bf27d535f52c1c613b843a54b4f8853e560b7
/test.py
ca2e0068a4349dbe79b46eb7824f001ae65dad04
[]
no_license
https://github.com/smutch/gpu_tests
2f14c4b7ce969e04a2e4694503da513990311d8f
f9df91357d89310b1679e3a7c855e9b23ea32839
refs/heads/master
2020-04-21T07:02:07.926383
2019-02-06T09:36:22
2019-02-06T09:36:22
169,382,095
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.insert(0, "build/lib") from mpi4py import MPI import pygpu_tests if MPI.COMM_WORLD.rank == 0: print(f"Running test with {MPI.COMM_WORLD.size} ranks...") pygpu_tests.init_cuda()
UTF-8
Python
false
false
204
py
7
test.py
2
0.710784
0.696078
0
10
19.4
62
vedantshr/python-learning
14,216,341,782,672
7019978851bf125c1db556b47650040e58f7900c
f5bf67a840af96182fafaf9528fac2b83fed62fa
/learning/armstrongno.py
02a53dab85e7c4492624b8de5355bb4a89416355
[]
no_license
https://github.com/vedantshr/python-learning
4a6d4e2d230d8db4b4370a7ef9375bf4c4dc96c2
637efb29f2f13c47cd3d9b402735b15657392835
refs/heads/main
2023-06-28T04:24:25.215630
2021-07-28T15:13:11
2021-07-28T15:13:11
281,611,580
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def armstrong(ip): n = 0 for i in range(len(ip)): n = n + int(ip[i])**len(ip) if n == int(ip): return True else: return False if __name__ == "__main__": ip = input() ip2 = input() print (armstrong(ip)) print (armstrong(ip2))
UTF-8
Python
false
false
283
py
136
armstrongno.py
86
0.480565
0.469965
0
15
17.933333
35
CiiMAV/python-cdr
11,759,620,466,043
79c2a896e856771bb462f8aae1f643156213e53e
f65ebbcf5baf0cb649b28df191b38a75fbdb71fe
/test/sensor_accel_cdr.py
a81fafcad457a15c635066ce8d63a5a02ffa1b19
[]
no_license
https://github.com/CiiMAV/python-cdr
c59bafd9b0ae2eaf5777f874cafe28e36b2be2f9
1cfa4ea30694b4e7173bdc0f63d2e8a2ce0dca22
refs/heads/master
2020-03-13T06:28:32.340915
2018-06-25T10:20:18
2018-06-25T10:20:18
131,005,536
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import ctypes import sys lib = ctypes.cdll.LoadLibrary('./sensor_accel_cdr.so') class sensor_accel(object): """docstring for sensor_accel""" def __init__(self): lib.sensor_accel_new.restype = ctypes.c_void_p lib.sensor_accel_deserialize.argtypes = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_int] lib.s...
UTF-8
Python
false
false
694
py
18
sensor_accel_cdr.py
17
0.681556
0.680115
0
20
32.6
90
askemottelson/minigit
1,520,418,425,058
0246f38a8434ff5b4800ba36b76be9228116b8b9
9965abf48dacdf15cf7c2b3b7fb7450dfcbdd2c1
/gui/clonedialog.py
1f29cb666219d8c17ddaeb322efed55a032974bd
[]
no_license
https://github.com/askemottelson/minigit
c72d5c98827fa57aed5639f1550d7181947553ba
7468eead89f68d6a80cb0d5ad5dba0ce22cecb02
refs/heads/master
2016-08-04T04:29:48.543996
2014-12-07T14:37:31
2014-12-07T14:37:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from PyQt4 import QtCore, QtGui from clone import Ui_CloneDialog class CloneDialog(): url = "" path = "" def __init__(self, parent): self.parent = parent def urlSelected(self): root = str(QtGui.QFileDialog.getExistingDirectory(self.parent, "Select Directory")) self.clonedialog_ui.path.setTe...
UTF-8
Python
false
false
744
py
13
clonedialog.py
8
0.700269
0.698925
0
32
22.28125
87
anitabaral/Exercism-exercises
18,098,992,209,019
78310c21b47e2dc37e896f4e05cec0c133691294
10815fbddf1d85fbdf2655c1b41977496aa28a6f
/robot_name.py
2dbc69ab107f223f6c2b27494c73bf00e36a9e5a
[]
no_license
https://github.com/anitabaral/Exercism-exercises
983d6b6ce1c0ee8f0d70d5dbe8ab59e8e8b3e878
81034e5174ef6933e07bc595c9dd708265faeaaf
refs/heads/master
2023-05-30T17:22:38.143483
2021-06-14T08:33:47
2021-06-14T08:33:47
363,824,732
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import string class Robot: def __init__(self): random.seed() self.reset() def reset(self): self.get_name() def get_name(self): text = [] for _ in range(2): text.append(random.choice(string.ascii_uppercase)) for _ in range(3): ...
UTF-8
Python
false
false
403
py
39
robot_name.py
39
0.543424
0.538462
0
18
21.388889
62
bibongbong/pythonCookBook
16,630,113,411,239
e90b83216d5bd040546fe3d9450c4855128bbce3
6d8f60ea657cdc4d82ae6f9272e3614a9ac6e525
/learningStuff/getUrl_multiThread.py
ff30bf643f0a5e53e15b151c436afc088f3d1d74
[]
no_license
https://github.com/bibongbong/pythonCookBook
4d6dc3904a1afa1250304b66ec99a98c1a80649f
c92c75f2d5256de0bb2ec879a7d6484a22cc6bcd
refs/heads/master
2021-06-10T01:37:26.178698
2021-06-01T13:52:18
2021-06-01T13:52:18
152,709,122
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#################################################################### # File: getUrl.py # Function: Learning to how to get the specific URL, and parse the HTML page to get the content you want # #################################################################### import urllib.request import operator from bs4 ...
UTF-8
Python
false
false
2,840
py
80
getUrl_multiThread.py
80
0.601408
0.57993
0
105
25.028571
104
Renjiewu/2019-3d-
11,184,094,877,899
292100defb8ac84c6e43675a4170fb50e2e56556
c249a7472d64b0bac788aa1d106958e94b888bfc
/rs1_1.py
c653a657a40f456e7996e48a6180bfe22d151111
[]
no_license
https://github.com/Renjiewu/2019-3d-
88fe444fd7795d75d1044d47999eb00dbfd75551
a2e71e5ef1c934a3fc38117ac37bfec4f13939bc
refs/heads/master
2020-09-20T06:41:02.264820
2019-11-27T10:28:13
2019-11-27T10:28:13
224,402,171
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jul 7 17:58:18 2019 @author: w3321 """ import pyrealsense2 as rs import numpy as np import cv2 from . import rs1_cv as rs1 import math import time import os from . import square_distance_angle as da import pandas as pd from .. import output2 as op from .. imp...
UTF-8
Python
false
false
13,887
py
5
rs1_1.py
5
0.511092
0.407255
0
402
32.430348
114
mrerren/Workshop-Python-101
1,992,864,851,537
a7c8a24deefcbe885d014286807e1c060d423026
2b7f99469ebf47efddc522503df0742cef2abd10
/8-OOP/2-Class/lat31.py
1fdb44bf436a7a961c9807e2fde79febe5501e8c
[]
no_license
https://github.com/mrerren/Workshop-Python-101
961c15ed972cc6b3bc3cd9cf36b8f915794751ca
5a870d0664f3119348c12c01ab76968055d4a6c1
refs/heads/master
2023-03-05T10:43:49.830222
2020-12-18T08:54:12
2020-12-18T08:54:12
321,860,883
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# lat31.py class Orang: pass org = Orang() print(org)
UTF-8
Python
false
false
59
py
69
lat31.py
46
0.627119
0.59322
0
7
7.571429
13
444thLiao/my_toolkit
19,155,554,146,969
3fa5b7b0e26f8fcfcef8376d3a32a505cd49b06c
9ea705a75261fc8a128f016e0af37ee413ad98d7
/vis_for/newick/draw_tanglegram.py
6d82242460e6b606bc438cc6e3cf5d6bca6a6a4e
[]
no_license
https://github.com/444thLiao/my_toolkit
a3ec207f36978d8fe40278b43d3e7b63e00d690b
a5b7cda90d28d98edf90456dca34da3824aa5ce7
refs/heads/master
2020-05-09T12:11:45.161286
2020-05-08T07:38:11
2020-05-08T07:38:11
181,104,919
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This script is mainly written for tanglegram which connect leafs from two dendrograms. Further, it also implement some useful transferring function from iTOL. for adding color to the leaves of the dendrogram. you could use the iTOL file.. or something simpler like removing the description """ from collections...
UTF-8
Python
false
false
8,875
py
35
draw_tanglegram.py
30
0.58738
0.566535
0
217
39.898618
176
udemirezen/rational_activations
6,012,954,218,353
ed9e090bd0b27670529672ad6d04bcd92f4118a1
22ad9abeb6c9bcddb6ee127309cd1afce9e1cf3c
/rational/torch/rationals.py
2551ab2c8038a17dd89087ea537af0a9196e9539
[ "MIT" ]
permissive
https://github.com/udemirezen/rational_activations
8e9abf3475d78251ddb8e9f0b37bd6bbf8135dbb
5bc4ade862eb8967e940afb15d33e0d6653668cc
refs/heads/master
2023-08-11T15:38:01.254359
2021-08-10T13:23:22
2021-08-10T13:23:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Rational Activation Functions for Pytorch ========================================= This module allows you to create Rational Neural Networks using Learnable Rational activation functions with Pytorch networks. """ import torch from torch._C import device import torch.nn as nn from torch.cuda import is_available a...
UTF-8
Python
false
false
28,724
py
85
rationals.py
55
0.53645
0.529488
0
726
38.564738
121