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
szollosova/webstrom
16,492,674,421,140
7a86ebce0cc05d831421c0af1bac7a7ed47cb528
adb6f583accf1ab7409253210136e0e9a51e2cbf
/user/forms.py
cc94d1b58bdc6b4611515915f093a4bd351c5e7d
[]
no_license
https://github.com/szollosova/webstrom
b06b86a2798705a8f4765e4b583166f552e30387
10b5e433b62291b4e3fc1d4169011db9fb2f7f76
refs/heads/master
2022-07-16T15:16:51.556206
2020-05-17T07:36:32
2020-05-17T07:36:32
263,088,587
0
0
null
true
2020-05-11T15:52:32
2020-05-11T15:52:31
2020-05-11T14:47:53
2020-05-11T14:47:50
2,292
0
0
0
null
false
false
from django import forms from django.contrib.auth.password_validation import validate_password from competition.models import Grade from user.models import County, District, Profile, User class UserCreationForm(forms.ModelForm): class Meta: model = User fields = ('email',) password1 = forms....
UTF-8
Python
false
false
3,266
py
14
forms.py
9
0.632508
0.626935
0
99
31.626263
89
MatthewBenjamin/fsnd-blog
858,993,489,370
9fad8a566ce658bea1cf71b77ccc46e6e4800fa7
19247cef8d4464a005969239a5510382e06e5487
/models.py
c4b554e5672c3bd2729f5fea1ed57776ae521fc2
[]
no_license
https://github.com/MatthewBenjamin/fsnd-blog
b7373a33080efbea407d427620ad8ba230076647
8ab0b4ed159f8ca96c6a8c82415b2e339d0ae936
refs/heads/master
2020-04-06T06:58:10.158739
2016-09-08T19:09:44
2016-09-08T19:09:44
60,494,946
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# models.py - appengine datastore models from google.appengine.ext import ndb from string import letters import hashlib import random def make_salt(length=5): return ''.join(random.choice(letters) for x in xrange(length)) def make_pw_hash(name, pw, salt=None): if not salt: salt = make_salt() h ...
UTF-8
Python
false
false
2,139
py
14
models.py
3
0.637214
0.633941
0
75
27.52
66
NGG-kang/PythonPractice
1,425,929,183,258
4137f48c134d48fec09061ba77c6fc3f3e706097
5136c61a230de741830c2971c704967360d8911d
/For.py
f38fcc306c25e53b527ecf66145d53be82724e60
[]
no_license
https://github.com/NGG-kang/PythonPractice
e301af7a5abb7848faab5bdfd15f682dbbf53926
b91d487ba764f7ed7dc5527871691dc93c2eb0ce
refs/heads/main
2023-03-02T11:35:41.989193
2021-01-29T23:29:32
2021-01-29T23:29:32
332,351,023
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# for문 for 변수 in 리스트(또는 튜플, 문자열): # 리스트 넣을 시 변수에는 리스트의 요소가 들어간다 for i in range(5): # 5까지 for i in range(1,5): # 1부터 5까지 for i in range(5,0, -1): # 5부터 0까지 -1씩 까짐 # 리스트 내 포 사용하기 # 이건 좀 기니까 예시로 대체 numbers = [1, 2, 3, 4, 5] result = [] for n in numbers: if n % 2 == 1: result.append(n*2) # fo...
UTF-8
Python
false
false
525
py
13
For.py
12
0.546419
0.485411
0
19
18.842105
43
uwcirg/true_nth_usa_portal
7,645,041,804,047
113228410cbce1e04ec304ffee03a4048f75122e
152856254c7c236dfba0fd1a5d1e96b0de5e300e
/tests/test_next_step.py
ed2b7d393655bb5c3d097e5bee395a9ce46de867
[ "BSD-3-Clause" ]
permissive
https://github.com/uwcirg/true_nth_usa_portal
7299c592a7e5539d8e052ea09bff16043244fb2e
34c95244fdc0aa40ff4b133b7af90ef4551c3191
refs/heads/master
2021-04-03T01:12:01.841170
2021-04-02T02:09:18
2021-04-02T02:09:18
37,150,258
3
9
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask_webtest import SessionScope import pytest from werkzeug.exceptions import BadRequest from portal.database import db from portal.models.intervention import Intervention from portal.models.next_step import NextStep from tests import TestCase def test_validate(): assert NextStep.validate('decision_suppor...
UTF-8
Python
false
false
987
py
421
test_next_step.py
272
0.683891
0.680851
0
34
28.029412
69
ngotest/ebmr_proj
9,698,036,163,974
98d68ac87f3b5851fc35f89cd1a2040f52f66059
0119ac95e0e08e946c92e9eb6e828cc412fd6fbc
/music_player/playlist/urls.py
b5c6051ee711fcdaa1a836174fe88069b7e2599d
[]
no_license
https://github.com/ngotest/ebmr_proj
58f351ef0590634cc6de92433cb93ae5d93ea353
59504ba8d1eb1acecec6e72024b903b2322991bf
refs/heads/master
2023-03-01T02:19:25.297879
2021-02-04T05:28:53
2021-02-04T05:28:53
323,348,594
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from django.urls import path,include from . import views app_name='playlist' urlpatterns = [ path('',views.general,name='general'), path('<int:type>/',views.emotion,name='emotion'), path('songupload/<int:type>/',views.song_upload,name='songupload'), path...
UTF-8
Python
false
false
553
py
31
urls.py
18
0.638336
0.638336
0
14
38.5
75
annijanora/meiginajums1102-1
16,947,940,956,879
dd9fb1183313cbd0b36bd13ca9a1979e48bb147b
fffb3bff816bc34358c29d82fd27bc32711000aa
/main.py
ec1c42abcf98eee352bdfcde7a240c7846a8021c
[]
no_license
https://github.com/annijanora/meiginajums1102-1
c3cb5258f0f1dca36bd5b1ebd936a8c24b1d2c04
7f3be8cb3f1fab209f379b268f437f8b15fd6491
refs/heads/master
2023-05-11T10:48:34.463438
2020-02-18T20:17:27
2020-02-18T20:17:27
241,458,829
0
0
null
false
2023-05-02T22:47:00
2020-02-18T20:19:43
2020-02-18T20:19:51
2023-05-02T22:47:00
4
0
0
1
HTML
false
false
from flask import Flask, render_template, request app = Flask(__name__) @app.route('/') def home(): return render_template('sakums.html') @app.route('/viens') def viens(): return render_template('viens.html') @app.route('/divi') def divi(): return render_template('divi.html') @app.route('/tris') def tris():...
UTF-8
Python
false
false
470
py
5
main.py
1
0.674468
0.657447
0
24
18.625
49
victorsemenov1980/WordCound_RabbitMQ_SQLalchemyORM
9,869,834,890,713
e5c4266bdd61bc35ef69278a7efd86f96ab94af3
36420c31e002b47faaa344afaac580c583e7b0b5
/producer.py
e55fbb9439d19328e78054148139243219edb46b
[ "MIT" ]
permissive
https://github.com/victorsemenov1980/WordCound_RabbitMQ_SQLalchemyORM
b53dc0145929a37e6e96ccf4cfb4b92a6e76c488
e62a07e7b72f82e45c03964649b79be74f4c0f93
refs/heads/main
2023-05-04T13:47:53.879247
2021-05-28T06:56:40
2021-05-28T06:56:40
371,608,578
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu May 20 19:32:19 2021 @author: Viktor Semenov """ from os import listdir from os.path import isfile, join import mimetypes from datetime import datetime import pika params=pika.URLParameters('amqps://____your link here') #txt_dir = ('TXTfiles') d...
UTF-8
Python
false
false
1,852
py
24
producer.py
9
0.575054
0.566415
0
70
24.957143
77
nishizumi-lab/sample
5,257,039,998,525
e2107b99ed8120cf6d22154f018d4fdfd2ce124b
f8bb2d5287f73944d0ae4a8ddb85a18b420ce288
/python/opencv/basic/ex10.py
1f8d23bf7002aa1256c4a17db7fd16f41c7ed4af
[]
no_license
https://github.com/nishizumi-lab/sample
1a2eb3baf0139e9db99b0c515ac618eb2ed65ad2
fcdf07eb6d5c9ad9c6f5ea539046c334afffe8d2
refs/heads/master
2023-08-22T15:52:04.998574
2023-08-20T04:09:08
2023-08-20T04:09:08
248,222,555
8
20
null
false
2023-02-02T09:03:50
2020-03-18T12:14:34
2023-01-18T21:29:33
2023-02-02T09:03:45
616,689
8
13
5
C
false
false
#-*- coding:utf-8 -*- import cv2 import numpy as np width = 200 height = 100 img = np.zeros((height, width, 3), np.uint8) # 画像の書き込み cv2.imwrite("/Users/github/sample/python/opencv/basic/ex10.png", img)
UTF-8
Python
false
false
219
py
1,222
ex10.py
814
0.687805
0.62439
0
11
17.636364
69
Chris35Wills/python_functions
4,612,794,913,315
f1f243c94d665905d6deeefbffe0740d64339ad4
22d3b8993c20f4189a78d3337b37ea098859cc1d
/dem_point_operations.py
70811fb99ae7d32c2af776a5493e59929874a02b
[]
no_license
https://github.com/Chris35Wills/python_functions
b603ebfb51e56f157ffb84c5d28e8c28b5048c81
cb1782e524577de465b4fb2cca2da4ed6e63e566
refs/heads/master
2020-04-16T02:11:09.535516
2017-07-19T15:40:53
2017-07-19T15:40:53
54,633,206
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import numpy as np import pandas as pd sys.path.append('./georaster') import georaster """ DEM and point operations """ def extract_values(dem, points, extracted_col_header='extracted_z'): """ Extracts points from a dem at point locations - binds them to a pandas dataframe Variables: dem : a ...
UTF-8
Python
false
false
862
py
25
dem_point_operations.py
24
0.676334
0.657773
0
37
22.297297
82
amandasystems/msc-polonius-fact-study
8,555,574,857,235
200aec7539a8672e1db3e84dda5f5c077463857f
da17c47ba292e7e46686b81fd70d7b2597a9201f
/benchmark-solving.py
ca3e1561f6fe6a3bf62d6c57dcb214313ebd784a
[]
no_license
https://github.com/amandasystems/msc-polonius-fact-study
c9402e067730340d889e508cad2d7d51bca72f69
b0e0fe45602e6f1208e2b4f0806f67126f9384d5
refs/heads/master
2022-02-12T17:03:37.219351
2019-09-10T15:16:30
2019-09-10T15:16:30
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # benchmark a release version of Polonius on a number of directories containing # nll-facts. # benchmark-solving <my-crate> <my-other-crate> import csv import os import sys import timeit from pathlib import Path from benchmark import inputs_or_workdir, run_command POLONIUS_OPTIONS = ["--skip-...
UTF-8
Python
false
false
2,210
py
16
benchmark-solving.py
9
0.638914
0.634842
0
78
27.333333
85
JohnWestonNull/RaspberryPiWithScreen
7,172,595,399,138
c36cd56dd2b1244725f3f468c6c384e20b4d7035
239d4895fb24d501cca3cdc773debfac6a2266bc
/screen_off.py
8e801322458871007fdeda379f309833a3c17b45
[]
no_license
https://github.com/JohnWestonNull/RaspberryPiWithScreen
017329416c84fbaebd3110803418f7cbf986d776
0453f6e8a9f0a5762e4aa2d4fae7045555fb3a37
refs/heads/master
2020-12-13T00:33:13.134745
2020-01-16T08:33:53
2020-01-16T08:33:53
234,267,775
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from App import App class ScreenOff(App): def __init__(self): super().__init__(name="Screen Off") def render(self): self.draw.rectangle(((0, 0),(127, 63)), fill=1) if self.driver is not None: self.driver.refresh()
UTF-8
Python
false
false
259
py
6
screen_off.py
6
0.563707
0.532819
0
10
25
55
yashpupneja/Coding-Problems
8,297,876,835,193
6123ad1f72fc833efd80ba5c89c14c39c2c44e6d
b49b049643f956a09d9205bfe151e4211aeab3b3
/Leetcode Problems/02. Number of consecutive ones.py
f2531432d59b500e7a69190e0fd8602bd038197f
[]
no_license
https://github.com/yashpupneja/Coding-Problems
b20337c5a52e47cef5af487ccb32cc1aebb167d4
04804cb5be12779bb2018d3550c1d506d6c373b3
refs/heads/master
2023-02-10T15:48:23.098878
2021-01-06T18:41:07
2021-01-06T18:41:07
281,583,764
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three digits are consecutive 1s. The maximum number of consecutive 1s is 3. Note: The input array wi...
UTF-8
Python
false
false
833
py
66
02. Number of consecutive ones.py
65
0.572629
0.542617
0
33
23.242424
78
srikanth3006/Python
13,305,808,700,994
96da991425931bf5116e179e12f2a32adab1bb88
054b8db82269c51a3ab4e60ea49c77b75c762c43
/DataStructures/Graphs/DFS_in_Graphs.py
b00b9973db029dc29483af233d1b6b41ff9753de
[]
no_license
https://github.com/srikanth3006/Python
8c001f9ae48a5e5681f3c3a4730399b63ebece96
56601df8a179a7526cb69e95cf485efe806ecdc6
refs/heads/master
2020-06-19T14:08:19.393909
2019-07-28T18:47:12
2019-07-28T18:47:12
196,737,796
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
class Node(object): def __init__(self, name): self.name = name self.adjacencyList = list() self.visited = None class DepthFirstSearch(object): def dfs(self, starting_node): print("%s" % starting_node.name) starting_node.visited = True for node in starting_node.a...
UTF-8
Python
false
false
1,009
py
47
DFS_in_Graphs.py
46
0.583746
0.569871
0
40
24.25
48
gubjanos/gravity-test
16,870,631,549,254
035ac55494613480ca7fb5a95063195ef28ee84b
6fef56670700919113f15505c25cd1d95df187d6
/load_data.py
d15459998a52b0b164e36554ad3f01e74fc9ac7e
[]
no_license
https://github.com/gubjanos/gravity-test
5caab9c955343f5c734491ae90f14958f69b27fd
2dedf62056704614c7e8506d0b3f882b36f5f8a9
refs/heads/master
2016-09-08T00:41:13.718894
2014-06-22T12:06:18
2014-06-22T12:06:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def load_data(path): from numpy import loadtxt instances = loadtxt(path) y = [] x = [] for j in xrange(len(instances)): y.append(instances[j][0]) x.append(instances[j][1:]) return x, y
UTF-8
Python
false
false
225
py
5
load_data.py
5
0.564444
0.555556
0
9
24
36
oumkale/test-python
3,736,621,597,087
9f9b206c84972a23f62ef73d92914756cf6257fc
9a52dd6961c033d06174921de2955be5f9035f03
/pkg/types/types.py
50a1b48fb83f0db26b6149b81a9f8d8c3b03fd79
[ "Apache-2.0" ]
permissive
https://github.com/oumkale/test-python
f4ef58e3751b1ef1626e77c7c02833e4b1b9d237
1f3d3e42ffbe1bf5ed9df8a0c6038e50129b2c4d
refs/heads/main
2023-08-13T01:30:40.624522
2021-10-12T06:14:08
2021-10-12T06:14:08
416,193,482
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# PreChaosCheck initial stage of experiment check for health before chaos injection PreChaosCheck = "PreChaosCheck" # PostChaosCheck pre-final stage of experiment check for health after chaos injection PostChaosCheck = "PostChaosCheck" # Summary final stage of experiment update the verdict Summary = "Summary" # Chaos...
UTF-8
Python
false
false
4,522
py
35
types.py
23
0.756524
0.756303
0
105
42.057143
129
cryzed/Feedbuffer
7,258,494,758,895
f339bcfba12855a9ce9c276f0cfec355b8a1db43
63f50c6742d1cdcc1b64a69828b3acbf493f2ce1
/feedbuffer/database.py
f9a6f31c3d029e4cf431a0b19c481311db1f1006
[ "MIT" ]
permissive
https://github.com/cryzed/Feedbuffer
bc3faedae83d6c7ffe65e70e8ffdc81c5f87aedf
0f258bbc7fbcdb39e19fd7d26192a45098b1fc68
refs/heads/master
2021-01-15T15:25:39.979230
2016-07-02T19:12:38
2016-07-02T19:12:38
52,744,909
20
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import concurrent.futures import functools import peewee from feedbuffer import settings, log _database = peewee.SqliteDatabase(settings.DATABASE_PATH) _logger = log.get_logger(__name__) # Easy way to queue function calls and execute them in a single thread, without having to manually write # producer-consumer logi...
UTF-8
Python
false
false
2,585
py
8
database.py
6
0.670793
0.670406
0
106
23.386792
113
rqdzs/EasyTutoring
10,471,130,278,814
a6979b894b8e41f6c32fcf062d884e4d53c3eceb
feab6c3e0dc419d1a22e01c8cdab1d6ae2dc4a44
/turmas/migrations/0004_turma_disciplina.py
46eeeffd1ca5886d3c0808a985a26d2194164827
[]
no_license
https://github.com/rqdzs/EasyTutoring
3c35b6547c22f86ec03d955f057daeee1e146d26
53fcec8e17bb950049ad3379ee63658c23aa3f38
refs/heads/master
2021-08-16T16:42:34.532149
2017-11-20T02:55:32
2017-11-20T02:55:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-26 13:07 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('disciplinas', '0001_initial'), ('turmas', '0003_rem...
UTF-8
Python
false
false
629
py
98
0004_turma_disciplina.py
69
0.6407
0.600954
0
22
27.590909
149
heimagithub/par
6,691,559,075,498
88b4def2f8e22ac8d58cb5493169a13ec8e06aab
0da45639cca5b4631ef8f167cb457eee0da29cab
/180227_6_sqlite_del.py
a9dfb2ea6e08c29e25facb46f5440f9e67da8e3a
[]
no_license
https://github.com/heimagithub/par
9450af8f7ce87cf13bd58608a6e81813e95b359c
9e5efc1904ec32f337e3f1ae7fe9ea7330fe4f39
refs/heads/master
2021-01-25T14:33:11.459379
2018-03-03T03:04:31
2018-03-03T03:04:31
123,708,172
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import sqlite3 dbpath = '/home/heima/Databases/NewDB.db' conn = sqlite3.connect(dbpath) c = conn.cursor() c.execute('DELETE from LAND where ID = 4838674') conn.commit() conn.close()
UTF-8
Python
false
false
196
py
25
180227_6_sqlite_del.py
23
0.72449
0.678571
0
13
14.153846
48
gratcliff/Happy_Cup_Server
18,966,575,604,375
9b310b5e888872484e4a4c596f52b738c63d9516
d050ed3ce3742a3de82606d8eb5a20ffe5173e0b
/apps/products/migrations/0001_initial.py
fafcf726f5d7bcaa1a9fe05386e5753a3a67e2da
[]
no_license
https://github.com/gratcliff/Happy_Cup_Server
59f5871cd47516c9f7f73b3d4c649aacdebc29b6
bd93c58e0015f55142fad14b7fba25abc639c626
refs/heads/master
2021-01-11T02:38:45.701336
2016-12-02T02:43:18
2016-12-02T02:43:18
70,946,723
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-03 17:51 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('product_options', '0001_initial'), ...
UTF-8
Python
false
false
6,235
py
126
0001_initial.py
103
0.578348
0.572093
0
126
48.484127
217
Al3x-BB/Unidad3-Ejercicio1
2,860,448,257,172
74b2582d064907147b8bd3965e1d369de5139c46
533d68e3993c246b159abd50eae7be1e1e5e43be
/ManejaLibros.py
1e8bfff49f4d36966fecb3db9b114fedea8fa7bc
[]
no_license
https://github.com/Al3x-BB/Unidad3-Ejercicio1
0aad51a2bee955154b2a874759afb6a96639568f
eef9d10a09b1e149c9fb4e04d47987b11ec27cfc
refs/heads/main
2023-05-03T00:38:21.373599
2021-05-24T14:35:51
2021-05-24T14:35:51
370,382,547
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from Libro import claseLibro import re import csv class claseManejaLibros: __lista = [] def __init__(self, lista = []): self.__lista = lista def crearLista(self): band = False archi = open('ArchivoLibros.csv') reader = csv.reader(archi, delimiter = ';') for...
UTF-8
Python
false
false
2,623
py
6
ManejaLibros.py
5
0.479557
0.468093
0
55
45.618182
116
KarthikMAM/AVSR
19,533,511,265,860
d08645eba043a023eae15863c9dcd079ac09068a
56682fb5b73a2b4c22fb8c3ea75d05a919d998ad
/align_file_indexer.py
9575d7436718ed49dd0fdd4fa2c6901cf72de5af
[]
no_license
https://github.com/KarthikMAM/AVSR
7aeefb80a197aa189846846f6a5cf8fe8cd93033
2ad53ef3dc7a32104a28827cc4faa6128ba0f095
refs/heads/master
2023-07-09T22:36:49.891147
2023-06-30T21:02:28
2023-06-30T21:02:28
87,597,032
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from os import path, listdir, makedirs import numpy as np from config import ALIGN_RAW, ALIGN_TEXT, ALIGN_INDEXED def map_letters(letters): return np.array(list(map( lambda x: 0 if x == " " else ord(x) - ord("a") + 1, list(letters) ))) print("\n\n", "INDEXING ALIGN FILES:START".cente...
UTF-8
Python
false
false
1,151
py
16
align_file_indexer.py
15
0.596872
0.585578
0
27
41.666667
122
JulesBelveze/wikipedia-pages-suggestion
13,675,175,889,773
66cf9adedaf72ea51c8435f3babc0811c80f7acc
5f329b39a638d88a3c046570f0f2e79926c25c19
/testers/PageRankTest.py
430f1bdd607498a85c3de6b7f5f72841cc10a610
[]
no_license
https://github.com/JulesBelveze/wikipedia-pages-suggestion
3abc3963a38cd6090ba99929c913cabf08dba7ea
ed9b4af493a257fca2d440027b4647f9d442b350
refs/heads/master
2020-03-31T18:35:09.466225
2019-05-06T06:28:19
2019-05-06T06:28:19
152,464,264
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import networkx as nx import sys sys.path.append('..') import PageRank G = nx.DiGraph() G.add_nodes_from([1,2,3,4,5,6,7,8,9,10,11]) G.add_edge(1,2) G.add_edge(1,4) G.add_edge(1,3) G.add_edge(2,3) G.add_edge(4,3) G.add_edge(1,5) G.add_edge(2,1) G.add_edge(5,2) G.add_edge(3,4) G.add_edge(2,4) PR = PageRank.PageRank(G...
UTF-8
Python
false
false
406
py
16
PageRankTest.py
13
0.679803
0.598522
0
24
15.958333
43
SeoDongMyeong/tbot
8,366,596,342,653
820d55f7d3dd07ad3d69b6fc110818e2d80cf59e
3928ac6c2253928c27a4814eaf2fee92973e80cd
/run.py
610b5c168fcc46c67224136ecb71be2e9c5b207d
[]
no_license
https://github.com/SeoDongMyeong/tbot
77ee8095a1e76614cdb0ed67d65551ad0b842480
c4c67a0912b183fcbdee06a7d39f4e3ab62bc3e6
refs/heads/master
2021-05-20T17:56:05.111025
2016-06-20T06:41:26
2016-06-20T06:41:26
61,489,341
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import requests import logging import re import os from uuid import uuid4 from urllib2 import quote from bs4 import BeautifulSoup from telegram.ext import Updater, CommandHandler from PIL import Image, ImageDraw, ImageFont from io import BytesIO from config import get_config logging.basicConfi...
UTF-8
Python
false
false
8,980
py
3
run.py
2
0.594968
0.579661
0
202
41.693069
315
syurskyi/Python_Topics
6,141,803,254,235
23527fe77fc1b5a33982a3819bdad38f29508896
e23a4f57ce5474d468258e5e63b9e23fb6011188
/105_network/002_requests_library/_exercises/templates/Python HTTP Guide. Requests library/003_.py
f1210ab0b92fbaec2e35cde3ff03b3412821485d
[]
no_license
https://github.com/syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
false
2023-02-16T03:08:10
2019-11-09T02:58:47
2022-11-03T01:22:28
2023-02-16T03:08:09
198,671
2
2
33
Python
false
false
# # В простых методах запросов значительных отличий у них не имеется. Но давайте взглянем на работы с Basic Auth: # # ______ u__.r__ # password_mgr _ ?.r__.H_PMWDR.. # top_level_url _ 'https://httpbin.org/basic-auth/user/passwd' # password_mgr.a_p.. N.. ? 'user', 'passwd' # handler _ ?.r__.H_BAH.. ? # opener _ ?.r__.b_...
UTF-8
Python
false
false
1,777
py
15,362
003_.py
14,734
0.639508
0.636434
0
35
36.171429
113
hpham-broadsoft/Cloudqa
4,956,392,300,365
192c736fa0d9d9b92b1bef26c50b519573440823
68d7f806a2d49093c92b34150f81f4b03198d6c8
/utils/RialtoQA/RialtoAutomationTestReport/Engineers.py
469662c901a2fb6da230c4e9d7c1481ac861164a
[]
no_license
https://github.com/hpham-broadsoft/Cloudqa
c1344166baf9382f90e11c39605e71c3636965ae
5d1fd3934972924de9b04c49958ec8d34bf01486
refs/heads/master
2019-04-29T04:28:50.231114
2017-06-20T23:25:46
2017-06-20T23:25:46
94,146,466
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#from requests.auth import HTTPBasicAuth import requests from xml.etree import ElementTree as ET import getpass import csv import datetime import getpass from selenium import webdriver from selenium.webdriver.common.keys import Keys import os.path import sys import sqlite3 as db #username=sys.argv[1] #pa...
UTF-8
Python
false
false
6,742
py
1,234
Engineers.py
273
0.561999
0.542717
0
192
33.114583
196
SahibSingh1311/Session_3
12,575,664,288,174
d545fec502d3b094eabf0db098d85688c4da4e38
d122fa13031f6f087e91bf89c2133e19c3e3a816
/session12a.py
d1773146dbafbc61de3a712810800c13938269b5
[]
no_license
https://github.com/SahibSingh1311/Session_3
2b5574d6ba9c352aee8d602ae7aa8e6ec11076f1
41ab1cbca13e251c318bd657cbe3aa87f284f52e
refs/heads/master
2022-01-12T10:18:54.134755
2019-06-24T05:23:32
2019-06-24T05:23:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Database: mySQL prog Lang: SQL -> Structured Query Language 1. Create Database Database is collection of Tables Tables can be related to each other : 1 to 1 relation or 1 to many relationship 2. Create Table Table is collection of rows and columns eg: Excel Sheet OR...
UTF-8
Python
false
false
5,072
py
39
session12a.py
39
0.597989
0.586751
0
150
32.82
161
Gillepool/Coursera
1,013,612,296,257
5472a94e37de8459ef01072d97d5b3d6e9f8f33c
9c64f63b9ca4519b07cfca2f6b8af1cdca6a7a33
/movieReccomendations.py
1c7fa4aac3aa0eea637d961acb1158d112bc7469
[]
no_license
https://github.com/Gillepool/Coursera
274401e07287760bec1b9cc70306a46540ed350e
3268148469f5f8d37078d266eee0b22b5fa5b92d
refs/heads/master
2020-09-11T08:18:00.440936
2016-09-12T20:28:29
2016-09-12T20:28:29
65,901,843
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import scipy.io import numpy as np import scipy.optimize as op import matplotlib.pyplot as plt def cofiCostFunc(params, Y, R, num_users, num_movies, num_features, Lamnda): X = params[0:num_movies*num_features].reshape(num_movies, num_features) Theta = params[num_movies*num_features:].reshape(num_users, num_fe...
UTF-8
Python
false
false
6,427
py
4
movieReccomendations.py
2
0.634511
0.604481
0
221
28.081448
127
MostafaOkasha/orc
13,374,528,180,442
3adcc5aa06d3682cc97bf41eee3ba0634f0033e2
9e0607d3cc71c1e890b558742305f2669777b8b4
/database.py
7894a89d83dfdc09d9ec00da53d98b169559b829
[]
no_license
https://github.com/MostafaOkasha/orc
9858111d841ee052b57a69becd3812257ec11d02
d4829cbcb698e037cd741a61a0eaf501aa2da708
refs/heads/master
2020-04-09T15:11:01.261873
2016-11-04T20:05:58
2016-11-04T20:05:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import sqlite3 import datetime # TODO catch DB errors # Setup sql Instructions ''' To setup sqlite3 to make it more readable when running queries run the following .header on .mode column .timer on To setup the databases USER TABLE CREATE TABLE IF NOT EXISTS `users` ( ...
UTF-8
Python
false
false
3,903
py
6
database.py
2
0.560594
0.535229
0
135
27.911111
203
trucker-su/Django-Blog-With-Quiz-Game
10,909,216,942,518
f38e8fc5cfc19a7356708a87fc66e4707ae9a77d
06d8496178d209b2c7914ff1b2c2cc3aecf7829b
/blog/migrations/0016_article_slug.py
097b5245319ad72223e027c77c1eef6786f54e2f
[]
no_license
https://github.com/trucker-su/Django-Blog-With-Quiz-Game
111d5f87d0f573e15e1c1baec9f23fa4029b380b
e45d692414829e20722b400d53fa129312b4918f
refs/heads/master
2023-04-03T22:24:52.821470
2021-03-19T06:28:02
2021-03-19T06:28:02
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.5 on 2020-06-01 16:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0015_article_article_text2'), ] operations = [ migrations.AddField( model_name='article', name='slug', ...
UTF-8
Python
false
false
407
py
35
0016_article_slug.py
22
0.592138
0.535627
0
18
21.611111
74
ioppermann/munin-contrib
14,766,097,586,745
ff7e541c9dccf7d0e949e12d9000c214a4209663
c4c5ee3612c37ba495fcc41836635fd10191b926
/plugins/weather/weather_
d91580b7b7ec3db6eb848695278c9ea2ce0a38af
[]
no_license
https://github.com/ioppermann/munin-contrib
9ef935303baab10c3c453a1887d718a0b9d4af68
c9157be3fe0bdcc3fb54855056e1cebe94e4dcd5
refs/heads/master
2021-01-24T03:37:46.738509
2018-02-24T21:58:04
2018-02-24T21:58:50
21,696,221
7
3
null
true
2015-01-07T18:02:47
2014-07-10T14:01:37
2014-09-10T05:39:59
2015-01-07T18:02:45
4,938
3
1
0
Perl
null
null
#!/usr/bin/python import os import re import sys import urllib url = 'http://www.weather.com/weather/today/%s' re_tmp = re.compile('realTemp: "(\d+)"') re_hum = re.compile('relativeHumidity: "(\d+)"') re_loc = re.compile('locName: "([\w ]+)"') #code = sys.argv[0][(sys.argv[0].rfind('_') + 1):] code = os.environ.get...
UTF-8
Python
false
false
1,279
806
weather_
499
0.627834
0.608288
0
61
19.967213
73
TheKinshu/100-Days-Python
8,744,553,426,205
e12e6aa86ada66e9b77a3702eceed1cf100e2ad9
0c7ff0ec35ba2bb38f99ef6ecb261ec33466dd52
/Day45/MovieToWatch.py
5be19e2e5e47ed622655b39619f209ed9e9a8c9e
[]
no_license
https://github.com/TheKinshu/100-Days-Python
15cbacc608ee349cc9733a7032e10a359bebb731
293ad6b3e5f5208da84efbc5b2d2d395a5a53421
refs/heads/master
2023-04-18T08:21:30.361800
2021-05-02T18:48:39
2021-05-02T18:48:39
351,582,416
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from bs4 import BeautifulSoup import requests URL = "https://www.empireonline.com/movies/features/best-movies-2/" response = requests.get(URL) website_html = response.text soup = BeautifulSoup(website_html, "html.parser") content = soup.find(name="div", class_="jsx-3821216435 block-item listicle-container") movies...
UTF-8
Python
false
false
687
py
110
MovieToWatch.py
90
0.697234
0.673945
0
27
24.481481
93
yanbinbi/leetcode
463,856,489,633
74029cb32b649d0f9a08c0294195485ca1cde5a3
5afd733a5c1f753601c69b8b4eae1b49edfbae7c
/101-200/119.py
93cf5d2bee16f95dc9da01e38c24bd119d1fb339
[]
no_license
https://github.com/yanbinbi/leetcode
9dcd4a0160be915006455b83d6b7cd39e9819811
616a868bfa7bdd00195067b0477b0236a72d23e0
refs/heads/master
2021-05-13T19:34:17.222576
2017-11-12T02:04:31
2017-11-12T02:04:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def getRow(self, rowIndex): """ :type rowIndex: int :rtype: List[int] """ if rowIndex < 0: return [] ret = [1] for i in range(1, rowIndex+1): for j in range(i-1): ret.append(ret.pop(0)+ret[0]) ...
UTF-8
Python
false
false
362
py
219
119.py
218
0.444751
0.422652
0
14
24.857143
45
bianzheng123/NN_as_Classification
7,198,365,221,981
2443726509aad27c37d791600d25d25a03de6133
fafecccce95eb60bebbb3fb9a12dc0517bd0e8ff
/config_batch_run.py
6ab5e9209207f99f98428d57ba87840752e96d9c
[]
no_license
https://github.com/bianzheng123/NN_as_Classification
92d41a9845e7d6ab1bf7c129a4ae6341b0d535cc
57c56d196c54d41b9f3a5fece5664c68c5f07faf
refs/heads/master
2023-05-02T05:06:50.856257
2021-05-19T04:38:54
2021-05-19T04:38:54
314,740,560
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from util import send_email def run_nohup(long_config_dir, short_config_dir, dataset_name, fname, _type, k): os.system('nohup python3 -u run.py --long_term_config_dir %s --short_term_config_dir %s --type %s --k %d > ' './log/%s/%s_%s.log 2>&1 &' % ( long_config_dir...
UTF-8
Python
false
false
2,148
py
77
config_batch_run.py
64
0.58473
0.54702
0
48
42.75
112
SalatskySal/osbs-client
10,728,828,353,923
6c59b869ae6bf0899d2d58f5dff96b19a56735b8
5e100133ec454150f20e97ed9e47df7f08468c3d
/tests/utils/test_yaml.py
5385d667f5fea9c4f005ae42d665cfade0e136a1
[ "BSD-3-Clause" ]
permissive
https://github.com/SalatskySal/osbs-client
460774e3cac5552edb26c5fdfcd421ee3c916cd7
b66e19eb5ffe0e6cf97cb5c0c2f57403a862a0cf
refs/heads/master
2021-02-12T17:11:29.599698
2020-04-27T19:21:45
2020-04-29T13:55:09
244,610,612
0
0
BSD-3-Clause
true
2020-03-03T10:47:08
2020-03-03T10:47:07
2020-02-26T16:22:06
2020-03-02T20:35:30
3,926
0
0
0
null
false
false
""" Copyright (c) 2020 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from __future__ import absolute_import from flexmock import flexmock from osbs.utils.yaml import read_yaml, read_yaml_from_file_path import...
UTF-8
Python
false
false
2,539
py
5
test_yaml.py
3
0.674281
0.672706
0
86
28.523256
80
thomas536/alltheplaces
14,963,666,099,195
3b81b7cb024a0f04a65ac1f52cdebfc9b90fa475
251f5c092d4b7760cec8c2b6324e5290b917721f
/locations/spiders/chrome_industries.py
05d92544eb10d5ec370da9e9f6832e93cf406db3
[ "MIT", "CC0-1.0" ]
permissive
https://github.com/thomas536/alltheplaces
663a2441054ba62df6d6e070c19b1ba91f2f4f1f
ac4d4783572d55c0799fe6aeb5f6c0e72fad55fb
refs/heads/master
2021-11-27T12:21:46.387422
2021-09-08T18:33:46
2021-09-08T18:33:46
242,420,362
0
0
NOASSERTION
true
2021-09-09T05:00:22
2020-02-22T22:25:57
2021-08-24T04:15:25
2021-09-09T05:00:20
7,437
0
0
0
Python
false
false
import scrapy import re import json import lxml from locations.items import GeojsonPointItem class ChromeIndustriesSpider(scrapy.Spider): name = "chrome_industries" item_attributes = { 'brand': "Chrome Industries" } allowed_domains = ["www.chromeindustries.com"] start_urls = ( 'https://www.chrom...
UTF-8
Python
false
false
1,201
py
429
chrome_industries.py
418
0.571191
0.542048
0
29
40.448276
175
YanghaoZYH/GaAN
18,073,222,418,629
43a3fb5b6eb8b5f823e25d6cb68f794234a69abe
7d5205682e904a9ffac3b6e04946efaa3fd86283
/mxgraph/graph.py
2e65d7432cc96f74ebd5f156b9f05440425c213a
[]
no_license
https://github.com/YanghaoZYH/GaAN
690bae05e91c3acfc8cb8d6f074d11fe7ec9dd34
98010378215dfdd0b4c66485dc70d2f384311ba2
refs/heads/master
2020-07-06T14:02:55.025690
2019-08-18T16:20:45
2019-08-18T16:20:45
203,041,405
1
0
null
true
2019-08-18T18:24:32
2019-08-18T18:24:31
2019-08-18T16:20:56
2019-08-18T16:20:54
106
0
0
0
null
false
false
import numpy as np import scipy.sparse as ss import logging import mxgraph._graph_sampler as _graph_sampler def set_seed(seed): """Set the random seed of the inner sampling handler Parameters ---------- seed : int Returns ------- ret : bool """ return _graph_sampler.set_seed(seed)...
UTF-8
Python
false
false
28,928
py
23
graph.py
19
0.524302
0.519047
0
708
39.857345
132
cm0ore/ensem_cctbx
13,013,750,954,008
d02f9ccdbada04340b06be348dee10216dc84d3b
810c43b318501dbd319d21a1d68c95d7f13329e4
/ensem_cctbx_mapmask.py
15a12ff8aaee6da7c609a8bea300e93473a12c7f
[]
no_license
https://github.com/cm0ore/ensem_cctbx
7aef3079acdb8387597f23b41d7b863a1fe1ea63
71441a3d99439f97463c90d17b64c43e01862304
refs/heads/main
2023-02-24T12:30:42.131955
2021-01-28T22:26:05
2021-01-28T22:26:05
332,935,750
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Generates a shifted waterless_model, map, and mask and also shifts the original model by the same amount #inputs are waterless_pdb_file and original_pdb_file import sys import os from iotbx.data_manager import DataManager # load in DataManager dm = DataManager() # Get an initialized v...
UTF-8
Python
false
false
1,799
py
2
ensem_cctbx_mapmask.py
1
0.714286
0.710395
0
35
50.314286
106
zilani-09/Task_String_with_Python
12,661,563,630,206
856c768da05df02d988187f5d3c85a885ab55f62
dd34a06366df03da881452b10836727d72474a35
/listComprehension.py
7d04d5f297f3ee1fa7208f475cb486da28eb883e
[]
no_license
https://github.com/zilani-09/Task_String_with_Python
ebcbae36d3bc1c43fc563602afd8c0a38b595c92
33e9dc75ec37822bf4c8b744202e9e4c69d2b16b
refs/heads/master
2023-02-21T02:50:06.999599
2020-01-29T08:24:51
2020-01-29T08:24:51
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a = [2,3,4] d = [i*i for i in a] print(d)
UTF-8
Python
false
false
53
py
40
listComprehension.py
40
0.377358
0.320755
0
4
9.75
20
Anova07/Competitive-programing
11,862,699,717,639
d0b304377bd437df2988978c2632e973b05c8265
6d03a69bbee0325d6c37c616aec126c07cd9cd85
/HackerRank/HalloweenSales.py
565f9a59a46a0bdf7c0fc423ba93f16655a91b2d
[ "Unlicense" ]
permissive
https://github.com/Anova07/Competitive-programing
7863fe64fbd533eef99e944f11e8bd0d0aa575d9
3e28cd1d852e620ee1edbef0c3c4da739ef7fd9b
refs/heads/main
2023-08-12T20:00:37.924824
2021-10-15T06:32:19
2021-10-15T06:32:19
417,391,339
0
0
Unlicense
true
2021-10-15T06:29:57
2021-10-15T06:29:56
2021-10-10T10:38:36
2021-10-14T14:32:18
458
0
0
0
null
false
false
import sys import math def howManyGames(p, d, m, s): t_l = 0 if p % d != 0: t_l = p % d else: t_l = d d = -d t_n = ((t_l-p)/d) + 1 t_sum = (t_n*(p+t_l))/2 if s > t_sum: n = ((m-p)/d) + 1 l = p+((n-1)*d) sn = (n*(p+l))/2 return n+((s-sn)/m) ...
UTF-8
Python
false
false
867
py
21
HalloweenSales.py
21
0.355248
0.316032
0
35
23.771429
86
winksaville/fuchsia
4,827,543,250,562
ccc51e4c0c91ce8853d84c6cb32382eddb916476
5499e8b91353ef910d2514c8a57a80565ba6f05b
/tools/fidl/difl/comparator.py
edc2dd8eb3b8ed3ce10e7a168444951ca62e1b14
[ "BSD-3-Clause" ]
permissive
https://github.com/winksaville/fuchsia
410f451b8dfc671f6372cb3de6ff0165a2ef30ec
a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f
refs/heads/master
2022-11-01T11:57:38.343655
2019-11-01T17:06:19
2019-11-01T17:06:19
223,695,500
3
2
BSD-3-Clause
false
2022-10-13T13:47:02
2019-11-24T05:08:59
2020-08-07T10:10:53
2022-10-13T13:47:02
428,325
1
2
6
C++
false
false
# Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from difl.ir import * import typing __all__ = ['Comparator'] class Comparator: def __init__(self): self.identifier_shapes_match: typing.Dict[s...
UTF-8
Python
false
false
13,431
py
8,203
comparator.py
5,625
0.575162
0.574566
0
299
43.919732
97
topatlant/AdventOfCode-python
16,518,444,248,356
dff728a11ae49ca508ef750518a3dd4c70d50faf
ea8fce92f032af8920b47309c1881adacadb09a8
/y2020/test/test_day05.py
238642e19b5d5f4d8c90504ae4f1c866e9664e58
[ "MIT" ]
permissive
https://github.com/topatlant/AdventOfCode-python
6ec361967dd571cbdb9b5687e0a39295ef51a503
0e6db6c844f99d7ddf009862165646d83c6c6474
refs/heads/master
2023-01-20T23:48:36.331972
2022-12-22T11:02:48
2022-12-22T11:02:48
160,153,655
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from y2020.day05 import * def test_get_row_col(): assert extract_row_col("FBFBBFFRLR") == (44, 5) assert extract_row_col("BFFFBBFRRR") == (70, 7) assert extract_row_col("FFFBBBFRRR") == (14, 7) assert extract_row_col("BBFFBBFRLL") == (102, 4) def test_get_seat_id(): assert get_seat_id("FBFBBFFRL...
UTF-8
Python
false
false
463
py
82
test_day05.py
77
0.632829
0.565875
0
15
29.866667
52
JabezThian/System_Security
5,111,011,086,699
c0cb1dbe0789282622744876e9b771f09d34abc7
365a3bb8cbbaf38fd204bdb06a22336bc1ba0ae6
/Resend.py
eae7e097ee80b48abd69ed4716ad09173fefe9bd
[]
no_license
https://github.com/JabezThian/System_Security
19484df27556b31f33a3f0d041442035299bbb52
dbcf9210583ee79d06495655e678584dc3bbab64
refs/heads/main
2023-07-14T09:29:20.053712
2021-08-21T06:42:48
2021-08-21T06:42:48
378,038,704
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Resend: def __init__(self, nric, email, age, gender, nationality, language, phoneno, quali, industry): self.__nric = nric self.__email = email self.__age = age self.__gender = gender self.__nationality = nationality self.__language = language self.__phon...
UTF-8
Python
false
false
1,460
py
43
Resend.py
12
0.582877
0.582877
0
62
22.548387
98
SaileshShahri/ecommerce-site
19,138,374,310,482
1fe6c2f988d6b1b4854faf6cf79ebadde10fa58f
55c94b4dd1ead177b037939df4f8ff13ee1eff8f
/order/models.py
eee2420d1524116693537215163a249515445bfc
[]
no_license
https://github.com/SaileshShahri/ecommerce-site
2062205b54a4e340021e097989b74dfcdf15b6bc
f293af9525b2025a90855aa3098b9f88c66b2a38
refs/heads/master
2022-07-18T23:58:20.764796
2020-05-18T11:55:39
2020-05-18T11:55:39
264,920,445
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf import settings from django.db import models from django.urls import reverse User = settings.AUTH_USER_MODEL from django.utils import timezone from product.models import Product, ProductVariant from address.models import Address # from payment.models import Payment from django.db.models.signa...
UTF-8
Python
false
false
2,296
py
67
models.py
40
0.6973
0.685976
0
71
30.338028
93
mhgharieb/MILP_Division_Property
1,434,519,083,741
138542da5d7929d76e1e52fa45bab02c7f22a019
3b13edf19c244501fc1d0718aecec69c9019ec4a
/algorithm2/main.py
fcb6a7700ce6947de8fcf42ad537924185c71457
[]
no_license
https://github.com/mhgharieb/MILP_Division_Property
5a780093c972d9b07e1358588914cd3d9aaa4fdc
d1eeebb04e4f2c1959615c15dc683a08786a86e2
refs/heads/master
2021-04-29T15:09:06.137941
2018-02-16T20:37:16
2018-02-16T20:37:16
121,791,898
0
1
null
true
2018-02-16T19:31:38
2018-02-16T19:31:38
2017-08-08T01:10:04
2016-12-13T01:55:21
163
0
0
0
null
false
null
# Algorithm 2 presented in paper "Applyint MILP Method to Searching Integral # Distinguishers based on Division Property for 6 Lightweight Block Ciphers" # Regarding to the paper, please refer to https://eprint.iacr.org/2016/857 # For more information, feedback or questions, pleast contact at xiangzejun@iie.ac.cn # I...
UTF-8
Python
false
false
725
py
16
main.py
11
0.73931
0.691034
0
23
30.521739
88
SeanZicari/sfxmanager
10,883,447,149,515
b1e275c7c19eb5612930f308f0c6a4d4703ce43e
75635a3621ff9e14ad4e2162e3597d497d19197d
/src/soundserver/server.py
7df2aec68c71ed6ea12cce40e6cf42f8e65f41ef
[]
no_license
https://github.com/SeanZicari/sfxmanager
143e4adfc290fc647a5c9c517010450396846575
6074a1a8c2879127645e0558142729bc87583d5a
refs/heads/master
2016-09-06T12:54:15.698338
2015-04-18T21:48:21
2015-04-18T21:48:21
34,175,049
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import zmq from zmq.eventloop import IOLoop from zmq.eventloop.zmqstream import ZMQStream CONTROL_PORT = 5600 class SoundServer(object): def __init__(self): self._context = zmq.Context() self._socket = self._context.socket(zmq.REP) self._socket.bind('tcp://127.0.0.1:{0}'.for...
UTF-8
Python
false
false
911
py
10
server.py
4
0.588364
0.570801
0
40
21.775
69
PatrickDRusk/pdrtools
10,514,079,980,833
e8948b7f67e72e26f23360a301916bf8dc25803e
27982e0aabcd947bc7f26171c1447b16a149bd53
/pdrtools/slim_price_data_reader.py
41e87db2838b92576644d386ffc09267da04c0a4
[]
no_license
https://github.com/PatrickDRusk/pdrtools
9db3c904b2cf4d0e1ef2981204191e27c0fc69ad
958d42fce4d788b2c97611155880001d7755f237
refs/heads/master
2021-01-10T16:03:13.796790
2020-02-26T20:50:16
2020-02-26T20:50:16
55,615,425
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python """ Lambda functions for the slim_price_data_reader. To deploy: zip /tmp/slim_price_data_reader.zip slim_price_data_reader.py aws lambda create-function --function-name pdr_price_data --runtime python2.7 \ --role arn:aws:iam::528461152743:role/TradingOpsLambda --handler slim_price_dat...
UTF-8
Python
false
false
2,927
py
18
slim_price_data_reader.py
14
0.661428
0.651862
0
112
25.133929
98
matt-gardner/pnp
16,063,177,692,535
6721bd40211d46d78d2e3e2318e9ffd39c08ad27
a897833e9f71bb03f7117fc5826eb0d48f1a2a52
/experiments/dqa/scripts/generate_diagram_feats.py
412c9fc07e353120568e60da6e31b46529a97f42
[ "Apache-2.0" ]
permissive
https://github.com/matt-gardner/pnp
95824d0dd577ad4a703d9aa70a936263199552de
c6f52697763ec26b614e5d3ca3fad140b4ccad53
refs/heads/master
2021-01-23T06:35:15.006410
2017-03-21T23:39:20
2017-03-21T23:39:20
86,379,969
0
0
null
true
2017-03-27T20:17:13
2017-03-27T20:17:13
2017-03-19T13:56:17
2017-03-27T17:05:13
5,887
0
0
0
null
null
null
#!/usr/bin/python # Generate random feature vectors for each diagram part import sys import ujson as json import random diagram_label_file = sys.argv[1] out_file = sys.argv[2] def label_to_feature_vector(label, xy, width, height): DIMS = 2 vec = [0.0] * DIMS vec[0] = float(xy[0]) / width vec[1] = fl...
UTF-8
Python
false
false
2,249
py
10
generate_diagram_feats.py
4
0.545576
0.534015
0
91
23.714286
67
Greeshma-Prakasan/Manage_Docker
1,760,936,592,107
73cedd1720903ef906d60687cc4e9d9783d3b879
4e076520ea85693c168758625d8a9617624e7a00
/manage_docker.py
567239a1c7ae4d1fa19ba7ac128e9c0697533751
[]
no_license
https://github.com/Greeshma-Prakasan/Manage_Docker
61f64038e1f9617550ddef7c31c0e04dda9a4c1d
23da875555b56e83e11758e1699fd300d3878a7c
refs/heads/main
2023-08-04T07:48:17.768828
2021-09-20T17:54:49
2021-09-20T17:54:49
408,501,175
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from rich.console import Console console = Console() def stat_container(): os.system("docker container stats") def download_new_image(): img = input("\tEnter the name of Image : ") os.system(f'docker pull {img}') def run_container(): img = input("\tEnter the image name : ") container =...
UTF-8
Python
false
false
2,083
py
1
manage_docker.py
1
0.631301
0.62458
0
63
32.079365
209
oksana-yashan/MOPE-5
9,062,381,015,748
8135944ea1a238b22a2465fc63114df9c79e46a8
9cad2261b2f4a2109db13ee8ff680b20ff1a7159
/Lab5.py
c29374b99715553c3be355ab344f6ab4c179a4bb
[]
no_license
https://github.com/oksana-yashan/MOPE-5
1e49e3d475a3104bbf89c4bf66a9a7ab17894a76
a6bfb01c4614dc81c317684aea02f84cf135254d
refs/heads/master
2022-04-25T19:03:30.586509
2020-04-24T15:12:18
2020-04-24T15:12:18
257,075,083
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import numpy as np import math from functools import reduce from itertools import compress import scipy from scipy.stats import f,t x1min, x2min, x3min = -5, -9, -3 x1max, x2max, x3max = 5, 3, 5 x_min = (x1min + x2min + x3min) / 3 # mean of x1min, x2min, x3min x_max = (x1max + x2max + x3max...
UTF-8
Python
false
false
29,486
py
1
Lab5.py
1
0.467204
0.385693
0
588
46.920068
134
yingxingtianxia/python
18,957,985,667,812
ca2c74a968c8ced1c0a1474ba1ab939c72c7643d
6df0d7a677129e9b325d4fdb4bbf72d512dd08b2
/PycharmProjects/nsd_python_v02/day08/python_code_web/logs_engine/cals/data_save.py
cad8fa5346f8be4fbd628000acaaf4765bea136c
[]
no_license
https://github.com/yingxingtianxia/python
01265a37136f2ad73fdd142f72d70f7c962e0241
3e1a7617a4b6552bce4a7e15a182f30e1bae221e
refs/heads/master
2021-06-14T15:48:00.939472
2019-12-13T05:57:36
2019-12-13T05:57:36
152,200,507
0
0
null
false
2021-06-10T20:54:26
2018-10-09T06:40:10
2019-12-13T06:01:21
2021-06-10T20:54:24
324,414
0
0
3
Python
false
false
#!/usr/bin/python # coding=utf-8 """ python 操作redis是很方便的,直接安装此包 注意:在docker中重启redis,导致数据完全丢失 """ import redis r = redis.Redis(host='192.168.99.100', port=46379) def addOne(key): add(key, 1) def add(key, num): val = r.get(key) if val == None: val = 0 else: val = int(r.get(key)) ...
UTF-8
Python
false
false
593
py
879
data_save.py
608
0.58256
0.54731
0
40
12.475
50
zzqzzqzzq0816/FontRecognition
9,466,107,969,661
2f4cc5bec074b10a45721e0227fe485567b94e08
cb1373bfb1d057ab6cc7135ea6e72c599d2ffaee
/rear/FontRecognition/font/api/views.py
230d5bdb82cccce936b1b0e36bc3ab716c40559d
[]
no_license
https://github.com/zzqzzqzzq0816/FontRecognition
116f83947cde0a184ae0c3d5ec9cf358f5404c38
1e43a09993d2c4c73ef28de599c6cc658f5227e3
refs/heads/master
2022-12-20T01:53:43.650481
2020-10-02T03:12:05
2020-10-02T03:12:05
300,487,336
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import time from django.views.decorators.csrf import csrf_exempt from rest_framework.response import Response from rest_framework.decorators import api_view def tran_name(image): curr_time = time.strftime("%Y%m%d%H%M%S", time.localtime()) suffix = image.name.split('.')[-1].replace('"', '') imag...
UTF-8
Python
false
false
1,033
py
2
views.py
2
0.620253
0.617332
0
36
27.555556
99
snigdharao28/nltk_sentdex
2,138,893,748,992
16504e6c0ae8ff30cd0063c43246bcceae7405b0
a178f9ae84aab9eddd50cd82557a8493914a64a0
/newtextclf.py
9792c116c2707ca7adb2973abc63c781b52da19e
[]
no_license
https://github.com/snigdharao28/nltk_sentdex
4b495fd3fa96f22ad482aa21adb144ff3d45e15a
5b285260caa1ce3cb8c88381513c6fcd4c02cf45
refs/heads/master
2020-04-18T01:39:14.512064
2019-01-24T04:57:32
2019-01-24T04:57:32
167,127,261
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jan 23 14:24:41 2019 @author: snigdharao """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jan 22 17:40:35 2019 @author: snigdharao """ import random import pickle import nltk #from nltk.corpus import movie_reviews from nltk.classi...
UTF-8
Python
false
false
6,793
py
4
newtextclf.py
4
0.70028
0.681731
0
212
31.042453
134
MadhavKMadhu/C4-SMP-ML
10,299,331,599,347
6b897331b0ddf09ccb9d34e6e9d1d509298b2319
95951b2999d655ddd1438e76cc8dd5678fc6ef2c
/Week_3_tasks/costFunction.py
677e8927a8fc565672bfa6a6614f143a19f928e0
[]
no_license
https://github.com/MadhavKMadhu/C4-SMP-ML
5541b36aab63f735502f8e09780e2831da4248a0
353588db847e6250404399bd621bc1a05167bed1
refs/heads/master
2022-09-07T13:34:21.804191
2020-06-02T04:36:13
2020-06-02T04:36:13
255,570,131
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from sigmoid import sigmoid def costFunction(theta, X, y): '''Returns Cost for theta, X, y''' m = y.size h = sigmoid(np.dot(X,theta)) J = [-(1/m) * (np.sum((y.T)*np.log(h) + (1-(y.T))*np.log(1-h)))] if np.isnan(J[0]): return(np.inf) return(J[0]) def gradient(theta,...
UTF-8
Python
false
false
537
py
13
costFunction.py
9
0.562384
0.547486
0
21
24.571429
68
stlk/django-toolbox
9,972,914,078,870
b3f882fa74abb4a77288efef32859a9373dcfb9a
6773e3ee5045a26b065c0c3c4bc86670499306c7
/django_toolbox/timing_middleware.py
b75420251eb4a1b8ab17c4e4d2fbabaf1f01c044
[ "MIT" ]
permissive
https://github.com/stlk/django-toolbox
079bb051d4e2d1a03ace86cf4a347e92b597f96b
146abdae59f7b27be7aaddce611faea91a0d4b69
refs/heads/master
2022-12-14T10:59:05.232092
2020-10-27T13:17:50
2020-10-27T13:17:50
156,200,470
2
0
MIT
false
2022-12-08T10:54:35
2018-11-05T10:34:03
2020-10-27T13:17:54
2022-12-08T10:54:34
135
2
0
4
Python
false
false
import logging from time import time from django.conf import settings timing_logger = logging.getLogger("django.request") SETTINGS = {"EXCLUDED_PATHS": set(), "LONG_REQUEST_THRESHOLD": 1000} SETTINGS.update(getattr(settings, "METRICS", {})) SETTINGS["EXCLUDED_PATHS"] = {path.strip("/") for path in SETTINGS["EXCLUDED...
UTF-8
Python
false
false
1,297
py
42
timing_middleware.py
32
0.643022
0.636854
0
38
33.131579
85
jukim-greenventory/python-practice
6,923,487,311,827
23c6bfa0d5d455c337fba84d02dad25aeb1c5a87
2c0e1786044c2818be20062a1c8f75990c61ae26
/argparse/6_example.py
b7376246bb9b011b5c909556861f002bc77de897
[]
no_license
https://github.com/jukim-greenventory/python-practice
51802bf354c36049f41f539778f576d7e9560305
4a1bb17c08204edf6954196c29f6e40a88274ef6
refs/heads/master
2023-05-31T21:15:37.770161
2021-06-10T12:38:57
2021-06-10T12:38:57
375,691,460
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" base form: - parse_args(['option','value']) other forms: For long options (options with names longer than a single character), the option and value can also be passed as a single command-line argument, using = to separate them: - parse_args(['--option=value']) For short options (options onl...
UTF-8
Python
false
false
1,721
py
12
6_example.py
11
0.680628
0.680628
0
48
34.8125
116
kevinkraydich/showerthoughts
13,400,297,971,255
9d6ea8e73311b7fa51a370a5496771b7abbf45b1
5ea34937c95be4ee828b180ca2c753e2db80db45
/bot/bot.py
728552356c58c5fe88e099874f95e8d4ac36a873
[ "MIT" ]
permissive
https://github.com/kevinkraydich/showerthoughts
9a551091ac0fa44ac8d44415a9df6d015a8acfbb
7f312a7dc2670076282d62b20f655d1fb69698e0
refs/heads/master
2020-07-10T23:11:22.934416
2020-05-06T04:08:19
2020-05-06T04:08:19
204,393,095
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Python module for Reddit bot. Kevin Kraydich <kraydich@umich.edu> """ # Import third party modules import os import configparser import sys path = os.path.join(os.getcwd(), 'bot/', 'utils/') sys.path.append(path) # Import local modules import scraper import text config = configparser.ConfigPa...
UTF-8
Python
false
false
928
py
6
bot.py
4
0.674569
0.674569
0
39
21.794872
65
FranciszekPin/gravity-field-simulator
1,082,331,760,861
5359dd5aa0acc1d2b6ec6543fdf9244010df2ee9
5acc2960ce32fac00f55531e2d7ab0063dbd770c
/BallsManager.py
740191eb80e03d1012b078f2ed0d26e3c3de968c
[]
no_license
https://github.com/FranciszekPin/gravity-field-simulator
ea1dabcd2dc2cb564e7a69d1f7fa2563ab7a0a8a
603b2c16fa16bdfb5e16112639e736124b07e718
refs/heads/main
2023-01-24T18:00:50.312297
2020-12-10T19:07:34
2020-12-10T19:07:34
314,677,977
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy from panda3d.core import LPoint3, LVector3 from physics.Ball import Ball from physics.PhysicsManager import PhysicsManager class BallsManager: balls = [] speed = 100000 def __init__(self, showBase): self.showBase = showBase self.add_balls_to_render() self.showBase.t...
UTF-8
Python
false
false
2,995
py
7
BallsManager.py
5
0.620033
0.583306
0
72
40.597222
135
giorgiberia/gitlearn
16,423,954,974,636
f20b1b4fc502b3788ef41b7ad8af13860ea65ab8
71c6a5dcf59a9388e23c468ad716ab807454bb8a
/app/OrbiUser/managers.py
46092bf856f6ee3cb4561fb73306274866bf6c0d
[ "MIT" ]
permissive
https://github.com/giorgiberia/gitlearn
0b63c21d93ae7b7313b2634294d579e75cc772f7
447b1ccd6279bd5accf92336c446e3340d8e8181
refs/heads/master
2020-06-21T07:26:20.586610
2019-07-18T11:49:52
2019-07-18T11:49:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth.base_user import BaseUserManager class UserManager(BaseUserManager): use_in_migrations = True def create_user(self, username,fullname, date_of_birth, password=None): user = self.model( username=username, date_of_birth=date_of_birth, fullnam...
UTF-8
Python
false
false
1,085
py
7
managers.py
6
0.588018
0.588018
0
37
28.324324
75
NeerajaLanka/100daysofcode
8,083,128,464,577
f2a4ca0811ea330f58ee483e495a6a5dade187c7
103d5c372371ceb8235becd0b66e504594b61e4b
/Day15coffee_Machine.py
5913a299df8cb792ea98207f1dd87093581e2151
[]
no_license
https://github.com/NeerajaLanka/100daysofcode
29dc194742a9b14565e50f8674724aed85380f18
5a42fa02c773f4949ad1acc07c88cef9c702f088
refs/heads/master
2023-07-09T04:45:02.757056
2021-08-19T19:56:06
2021-08-19T19:56:06
327,458,893
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#flavours = input("what would you like?(espresso/latte/cappuccino:") MENU = { "espresso": { "ingredients": { "water": 50, "coffee": 18, }, "cost": 1.5, }, "latte": { "ingredients": { "water": 200, "milk": 150, "coff...
UTF-8
Python
false
false
1,384
py
92
Day15coffee_Machine.py
92
0.427023
0.402457
0
59
22.457627
68
Aasthaengg/IBMdataset
16,466,904,660,324
e8ef5e615f58b78dd2d64dde919b0c2670160012
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02665/s564559024.py
0cbbd9ba9d053be1d913e709cc91d4285f6558f2
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
n=int(input()) l=list(map(int,input().split())) k=l[n] count=1 sumleaf=1 flag=True i0=0 suml=[] for i in l: i0+=i suml.append(i0) if l[0]>2 or l[0]==1 and n>=1: print(-1) flag=False elif n==0 and l[0]!=1: print(-1) flag=False else: for i in range(1,n+1): sumleaf*=2 if i=...
UTF-8
Python
false
false
851
py
202,060
s564559024.py
202,055
0.398355
0.372503
0
44
18.363636
49
imfede/py-project-euler
7,112,465,883,775
152c206c9634cb556ac378c3d9b0d1a45fa7bc87
cceeebcfe1df8a849216917217ee413d1ed715b2
/003.py
0508dec0e94bb45a4a52b572d406fd9614021d6c
[]
no_license
https://github.com/imfede/py-project-euler
d97861bde90a0bde74041aa29beb071cec6921ac
6aaf5daf7be962db35bb1284915da76b396bb672
refs/heads/master
2021-01-01T19:24:48.072243
2015-07-25T13:53:05
2015-07-25T13:53:05
35,602,711
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # what is the largest prime factor of 600851475143 import math def isPrime(n): x = 2 while (x < math.ceil(math.sqrt(n)) ): if( n%x == 0): return False x += 1 return True def number_from_factors(factors): p = 1 for i in range( len(factors) ): ...
UTF-8
Python
false
false
580
py
39
003.py
39
0.525862
0.467241
0
33
16.575758
50
Jorsorokin/JAGA_software
6,064,493,823,488
e571566f43818b29c269cf50979b38f23c887c73
e713cdc626f2d1bc97cbc8744a071bca0b66b823
/Python/packet_buffer.py
b196729cfaa9258a72e3d1573f589769a681b58c
[]
no_license
https://github.com/Jorsorokin/JAGA_software
bc605f48ae08a1f9c1954e64fbd88bfa25a4f481
b9b6efd6aaef5a163af0e1c1197655dd439c9f64
refs/heads/master
2021-01-19T15:14:35.674545
2017-04-16T19:43:16
2017-04-16T19:43:16
88,206,238
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'Markus De Shon' import copy import packet import sys class PacketBuffer(): MIN_FILL = 100 MAX_FILL = 1000 SKIP_COUNT = 10 # Skip initial packets when calculating start time because their timing is odd. LATENCY = 0.003 # Latency of packet delivery on the network. def __init__(self...
UTF-8
Python
false
false
9,654
py
7
packet_buffer.py
6
0.553967
0.547856
0
206
45.864078
112
j5int/pyslet
18,098,992,196,401
f7e5e2626116048929ddd21136f9b4c7f88b2bc8
c2b35211fab6b1f8a4a51b3245f540512b76cc6c
/pyslet/streams.py
65badddf89dac569bf46f0a56455a1b6520ff38a
[ "BSD-3-Clause" ]
permissive
https://github.com/j5int/pyslet
08ed591f8ca6347225d9404c4fe16f8afc03d476
ef27dd6bb6fbd6d47687a349508cd4ab2989a0ad
refs/heads/master
2021-05-23T11:30:31.713515
2016-07-25T09:10:32
2016-07-25T09:10:32
68,193,782
2
2
null
true
2021-04-06T09:14:05
2016-09-14T09:40:27
2016-10-19T11:15:54
2021-04-06T09:14:05
7,646
0
2
0
Python
false
false
#! /usr/bin/env python """This module add some useful stream classes""" import errno import io import logging import os import threading import time from .py26 import memoryview if hasattr(errno, 'WSAEWOULDBLOCK'): _blockers = set((errno.EAGAIN, errno.EWOULDBLOCK, errno.WSAEWOULDBLOCK)) else: _blockers = se...
UTF-8
Python
false
false
28,375
py
132
streams.py
101
0.530044
0.52793
0
750
36.833333
79
rrsilaya/springer_books
11,854,109,750,593
0158b56aace7fda6db770cab22e3486d94f2b7d1
cf865985f3513142725904ec4297ef189563ce74
/downloader.py
c0e411ec2dcdf28bee76ae9214606e76eda6eafa
[]
no_license
https://github.com/rrsilaya/springer_books
95ed77605e43f09fb0e223154888d76c20d77163
26d83f3f2696d0d1eaf57171a439bfd33ae0ac21
refs/heads/master
2022-05-29T04:34:30.269377
2020-04-27T12:05:36
2020-04-27T12:05:36
259,287,721
0
0
null
true
2020-04-27T11:01:11
2020-04-27T11:01:10
2020-04-27T08:54:36
2020-04-27T03:32:16
87
0
0
0
null
false
false
import csv import os, sys from axel import axel if not os.path.exists('Books'): os.mkdir('Books') elif not os.path.isdir('Books'): print('Error: a file named "Books" cannot be in the execution directory.') sys.exit(0) links = 'downloads.csv' with open(links) as file: reader = csv.reader(file, delimit...
UTF-8
Python
false
false
516
py
4
downloader.py
1
0.612403
0.598837
0
18
27.666667
78
GinormousSalmon/SC2020
18,760,417,176,001
4bae90ea50eb9787d74c35107f87437152af7a7d
42e332e06748752ef38514ee30f16221533fcca7
/examples/encoding_test.py
d4e0bcaf6f937886360daec236d8a3726980b34c
[]
no_license
https://github.com/GinormousSalmon/SC2020
a082baece81dd65bd41b45dd33967ebbcc493aa7
6ac3a1807e35dc673654dd97d7bf5a7601d12b7b
refs/heads/master
2022-10-18T17:34:51.251938
2020-06-08T15:45:23
2020-06-08T15:45:23
259,367,410
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
string = "кок" enc = str(string.encode('utf-8')) print(enc) dec = (enc).decode('utf-8') print(dec)
UTF-8
Python
false
false
102
py
27
encoding_test.py
18
0.636364
0.616162
0
5
18.8
33
justanhduc/AugmentedCycleGAN
7,017,976,583,936
0f8ec0809d50d8c69f7fb9051ac75b99be3444b6
632d82d996d8b0d3dc14317ee6e7b3db6712dc78
/train.py
35921d02fed385e3f998ca6e0ca0ae8b90ef2590
[ "Unlicense" ]
permissive
https://github.com/justanhduc/AugmentedCycleGAN
1df2c97d5cb267c7a4e60bcd6ab7bdd9223e3977
4a83c2a370842a713ec1d7ebf20cbd71f4039093
refs/heads/master
2020-04-11T06:45:11.512754
2018-12-13T06:23:25
2018-12-13T06:23:25
161,590,717
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse parser = argparse.ArgumentParser('Augmented CycleGAN') parser.add_argument('--test', action='store_true', default=False, help='Train or test') parser.add_argument('--latent_dim', type=int, default=16, help='Latent dimension') parser.add_argument('--n_gen_filters', type=int, default=32, help='Number of ...
UTF-8
Python
false
false
8,710
py
5
train.py
4
0.626406
0.615155
0
181
47.121547
130
UmashankarTriforce/CUDAImageManipulation
12,558,484,396,884
ab5c19bfd289ffff0ff61ce9ff49d2e8875d101e
2bb157ac4f3b5e53cdf2a06c9a0b858d5c3ec938
/gpu/server.py
fb2b28ba48a83e804c7b3b3968ce5d7a21043f27
[]
no_license
https://github.com/UmashankarTriforce/CUDAImageManipulation
983a3eb1988a70e6ec062a422078bb84cc9b134a
f281c09fa1845331b6f66c1505d120e819eecc78
refs/heads/master
2023-01-09T18:41:05.904684
2019-12-08T04:11:21
2019-12-08T04:11:21
194,909,442
0
1
null
false
2023-01-04T05:04:12
2019-07-02T17:45:44
2019-12-08T04:11:24
2023-01-04T05:04:12
8,325
0
1
32
TypeScript
false
false
from flask import Flask, request, jsonify, Response from flops import work import pycuda.driver as cuda app = Flask(__name__) def initialize(): cuda.init() DeviceID = 0 device = cuda.Device(DeviceID) ctx = device.make_context() return ctx def destroy(ctx): ctx.pop() @app.route('/bench', met...
UTF-8
Python
false
false
670
py
15
server.py
5
0.583582
0.570149
0
35
18.171429
51
paepcke/tableauNetworkLayout
10,694,468,592,374
d8145ac5a0fd81483ef4a568e95b4904b909c313
1e9401f97f00b6b8b1c1532b8dd0b9cfbc1b2938
/setup.py
ac33a2adfe2ba1577d62ca6a426165aee4624ec7
[]
no_license
https://github.com/paepcke/tableauNetworkLayout
94df998b1574345a10505cde92b99f9aa2735a90
72623953cc2ece4a6f3e674130946bbaa674f223
refs/heads/master
2021-08-17T06:28:05.024486
2017-11-20T21:38:26
2017-11-20T21:38:26
111,446,713
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import multiprocessing from setuptools import setup, find_packages setup( name = "tableauNetworkLayout", version = "0.01", packages = find_packages(), # Dependencies on other packages: # Couldn't get numpy install to work without # an out-of-band: sudo apt-get install python-dev setup_requi...
UTF-8
Python
false
false
1,329
py
3
setup.py
2
0.569601
0.551543
0
37
34.918919
84
dwaipayanbiswas2017/photo_uploader
4,355,096,849,499
a053af7154558c353297b4f20a33c0b99d8d4e43
bdfb9ede57cf273d92e4ab5c0d483907a3c2a6a9
/index.py
832c4aaf4b660bfd232951c220aa7bb5f083ca21
[]
no_license
https://github.com/dwaipayanbiswas2017/photo_uploader
98548a10fdbd3938f87f03e10997ac9fd39d5638
5a1eb006fff9551e0354badfb4968d4a5bb805cd
refs/heads/master
2020-08-10T02:57:56.234829
2019-10-10T15:30:00
2019-10-10T15:30:00
214,239,815
1
0
null
true
2019-10-10T17:05:22
2019-10-10T17:05:21
2019-10-10T17:03:07
2019-10-10T15:32:06
8
0
0
0
null
false
false
from PyQt5 import uic from PyQt5.QtWidgets import * import sys UI_file = "ui.ui" class PhotoUploader(QMainWindow): def __init__(self, ui_file): super(PhotoUploader, self).__init__() uic.loadUi('ui.ui', self) self.setFixedSize(self.size()) self.console_data = "" self.tabs...
UTF-8
Python
false
false
2,927
py
2
index.py
1
0.555518
0.542877
0
79
36.050633
119
smartxworks/cloudtower-python-sdk
7,971,459,340,868
5c506a67366362ac1adc92cecfc6535bf15628b5
873551a415af1ed5270e3281910b07beb15afbdf
/cloudtower/models/content_library_vm_template_where_input.py
5a3a6fce13513df5beb476f22261ada686e9f4d5
[ "LicenseRef-scancode-unknown", "ISC" ]
permissive
https://github.com/smartxworks/cloudtower-python-sdk
290ffb4677f247a9a1edfde0133015f221860da6
da8cdca0e869278f83d33207b1fc77c6d785ac15
refs/heads/master
2023-08-08T07:49:10.503674
2023-08-01T11:38:37
2023-08-01T11:39:41
438,103,300
4
0
ISC
false
2023-09-01T03:36:45
2021-12-14T03:22:32
2023-02-02T19:41:28
2023-09-01T03:36:44
17,186
5
0
0
Python
false
false
# coding: utf-8 try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getfullargspec import pprint import re # noqa: F401 import six from cloudtower.configuration import Configuration class ContentLibraryVmTemplateWhereInput(object): """NOTE: This class is auto ge...
UTF-8
Python
false
false
91,732
py
367
content_library_vm_template_where_input.py
361
0.628428
0.617494
0
2,842
31.27727
133
racharyy/BERT_humor
7,954,279,432,193
0021216bd49b05b406fd7312df13e136bc3ec09e
e7b02652f394f12ec166d89e98d0ed520761d067
/humor_bert_embedding_property.py
e1b0860542c538301d708e3c284a1b23fd78503d
[]
no_license
https://github.com/racharyy/BERT_humor
a95c732b0c64210bb2c4ed7052533dd491480fda
6f135866fe29b635a9aaf05fd0c08cfb9554d073
refs/heads/master
2022-11-09T13:27:00.409531
2019-10-30T20:51:41
2019-10-30T20:51:41
199,521,323
0
0
null
false
2022-10-25T14:02:42
2019-07-29T20:18:36
2019-10-30T20:51:53
2019-10-30T20:51:50
1,143
0
1
1
Python
false
false
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 3 16:14:01 2019 @author: mhasan8 """ import pickle as pkl dev_data=pkl.load(open("humor_bert_embeddings_dev.pkl","rb")) train_data=pkl.load(open("humor_bert_embeddings_train.pkl","rb")) test_data=pkl.load(open("humor_bert_embeddings_test.pkl","...
UTF-8
Python
false
false
896
py
21
humor_bert_embedding_property.py
20
0.686384
0.670759
0
37
23.243243
82
nharringtonwasatch/WasatchUSB
9,096,740,751,244
65ed0f357ac8fc1ba92499ff75359ecd74946487
50469576929509d5845aaa0177c2d563e91b1f60
/scripts/stroker.py
34fc7789adc89901110640d67523eb13f5345aca
[]
no_license
https://github.com/nharringtonwasatch/WasatchUSB
00294a34ae21812851bf4535f7faa319794f9fbb
2576ded56704736c8f0d6d6de3613840fce3662f
refs/heads/master
2020-04-12T08:01:45.651896
2017-09-22T21:43:07
2017-09-22T21:43:07
40,848,538
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python2 """ Bare bones script to connect to a Wasatch Photonics device that supports the stroker series protocol. Will print version information of any device connected. communication for devices from Wasatch Photonics. Stroker in this case is an homage to automotive performance: https://en.wikipedia.or...
UTF-8
Python
false
false
2,365
py
20
stroker.py
19
0.635941
0.630444
0
83
27.493976
72
karlicoss/orger
13,383,118,118,031
039d70ee1e3ab039eb43d8dc77c68af6c2ed6ef7
3dc867d0c91c69d3cfdad7ffc94976820056e48f
/modules/reddit_all.py
3e6abf265f412fcf562eed6e70cd21eed61d3b9a
[ "MIT" ]
permissive
https://github.com/karlicoss/orger
12d698a88a7c1b8354106a296ccfeb94a8b9e989
9c4fb4b252aa7abd09bfed6c580781ebe4ceef70
refs/heads/master
2022-11-11T04:30:11.130043
2022-10-19T20:38:12
2022-10-19T20:44:12
186,183,159
287
16
MIT
false
2022-10-19T20:44:13
2019-05-11T21:30:23
2022-10-09T15:08:48
2022-10-19T20:44:12
182
256
11
7
Python
false
false
#!/usr/bin/env python3 """ Read-only reddit mirror of comments, submissions and upvoted posts; everything except saved """ from orger import Mirror from orger.inorganic import node, link, Quoted from orger.common import dt_heading from my.reddit import upvoted, submissions, comments class RedditAllView(Mirror): ...
UTF-8
Python
false
false
1,247
py
43
reddit_all.py
39
0.57097
0.570168
0
41
29.414634
100
samwar/python-class
17,334,488,033,203
d07878093fdda9b497de33513a0ddf8cd8a61302
f1e9e47ca30d63f7b787b38af64aaeadede63221
/lab03.py
336d4d894f864a893b8cb30cff6ab9015879e2f0
[]
no_license
https://github.com/samwar/python-class
0e967c67d17d897fbaf33faab852f0b8d0d8e3b6
8696b84d8e3070d3d38bcce0586d40a03492baf0
refs/heads/master
2021-01-15T23:40:00.948787
2014-04-10T22:04:23
2014-04-10T22:04:23
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'samu6978' x = 4 print x print int(5) y = [1,2,3] print y.count(3) y.index(1) foo = {1:'foo', 2:'bar', 3:'baz'} for x in foo.iteritems(): print x print y y.extend([4,5]) print y y.append([4,5]) print y z = "foo" # z.ap("bar") # z.ex z += "bar" print z
UTF-8
Python
false
false
271
py
24
lab03.py
24
0.560886
0.494465
0
23
10.826087
33
DRAR444/poei-python
7,533,372,637,454
34b164d219120454e2c48243ab00279c7059b4a5
8854a2851cdd0666965d324a6123c0f4a7b08050
/voiture.py
eec02f1134c9efeef3bc62ad6d408d0a11060585
[]
no_license
https://github.com/DRAR444/poei-python
ce72b46f1a258a1f34743cb28336bcea4af55fcc
63c55314e3d8a2e7233da00f5aefebfa9ab93138
refs/heads/master
2020-03-19T08:07:14.445816
2018-06-16T08:44:03
2018-06-16T08:44:03
136,177,167
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 class Voiture: def vitesseMax(self): return "500km/h" ma_voiture = Voiture() print(ma_voiture.vitesseMax()) # def __init__(self): #self.nom = "Ferrari" #self.origine = "Italienne" #elf.couleur = "Rouge" #ma_voiture = Voiture() #print("Ma voiture est...
UTF-8
Python
false
false
436
py
8
voiture.py
8
0.614679
0.605505
0
17
24.705882
138
Hackman238/ZenPacks.ShaneScott.ipSLA
10,892,037,081,896
e8ce4866991ac533221f2f32ab1e75224bcad435
a5b6b8c079e5dd8480db9685295bae5b7e07fcb0
/ZenPacks/ShaneScott/ipSLA/routers.py
dd4e92a3b1bfd7e1424fb79ded0a66bd6151dd65
[]
no_license
https://github.com/Hackman238/ZenPacks.ShaneScott.ipSLA
8b654a083726455430734a5dc171ff749f34d245
ec3185dc9ea4ea2f4233b5e95dfb0bb62d626dff
refs/heads/master
2020-12-24T14:35:24.139328
2012-10-08T17:41:37
2012-10-08T17:41:37
6,128,426
1
3
null
null
null
null
null
null
null
null
null
null
null
null
null
from Products.ZenUtils.Ext import DirectRouter, DirectResponse from Products import Zuul class SLARouter(DirectRouter): def _getFacade(self): return Zuul.getFacade('sla', self.context) def manage_delSLAs(self, rttIndex, deviceIp, community): facade = self._getFacade() success,...
UTF-8
Python
false
false
4,650
py
22
routers.py
12
0.736774
0.726022
0
81
55.382716
274
Customer1-Everforce/Repo1
15,539,191,700,856
97c6bad2f8ab706b0a1ffbe428098cd6651dc2dd
8b6fdd216e2a8eed2faa20fe82bf444b135dcc05
/create_issue.py
df65786278880311007d60a60ec911f4a41ee9f4
[]
no_license
https://github.com/Customer1-Everforce/Repo1
2e1dc7b7e4d6db3e94811469ef52372c1d5d449d
5fc74c7060bb2795f80fbd0e92fcec481e8a1ff4
refs/heads/main
2023-07-16T03:47:16.557060
2021-09-03T04:21:48
2021-09-03T04:21:48
358,514,457
0
0
null
false
2021-05-11T07:47:50
2021-04-16T07:32:01
2021-05-07T09:36:48
2021-05-11T07:47:49
5
0
0
0
HTML
false
false
from github import Github import requests import os from pprint import pprint token = os.getenv('GITHUB_TOKEN', '5b80cd6dd28577ed249e762207a2d9831cf8c727') #repo = "API_test" #repo = "everforce_editors" owner = "everforce-github" g = Github(token) #repo = g.get_repo("{owner}/{repo}") repo = g.get_repo("everforce-gith...
UTF-8
Python
false
false
846
py
10
create_issue.py
4
0.663121
0.630024
0
37
21.864865
77
Jackiu1997/gcransac-python
11,106,785,449,778
2870fd1d2ac8a9858553d2a1507fd592753baac8
e115ea0da47f88e8d1b0bbe19c2af5e63ea80266
/ransac/ransac_api.py
df492873131ac1d67456e28cb2fbcbf261084d7c
[]
no_license
https://github.com/Jackiu1997/gcransac-python
8264d4efa2eafebcd9664a2692476a3bd54d76f1
050ee2c31f24f90551a0adb2f51aed988f39b16a
refs/heads/master
2022-09-19T00:25:23.234923
2020-06-05T04:17:46
2020-06-05T04:17:46
255,355,515
5
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import cv2 import numpy as np from estimator import (EstimatorEssential, EstimatorFundamental, EstimatorHomography) from model import * from sampler import UniformSampler from solver import (SolverEssentialMatrixEightPoint, SolverEssentialMatrixFivePointStewenius...
UTF-8
Python
false
false
2,883
py
92
ransac_api.py
36
0.593483
0.585336
0
102
23.068627
86
Saurabh2509/CloudCompare-PythonPlugin
13,194,139,574,869
1a6208724b12bb4ffcfaa586584f983078971092
ad6b36d1b0e0692ec2c3715f95d85f0935d680ec
/script_examples/merge_script.py
c2c9cac2fcd1a3f4b21bb95b3b66408ad19cedc4
[]
no_license
https://github.com/Saurabh2509/CloudCompare-PythonPlugin
6e1e2db8820b3c75d3d4727a238c8c4ad5df61d6
a90b32b599883b1e12391996073e404d2c6a65a8
refs/heads/master
2023-08-15T20:14:20.921088
2021-09-30T09:28:13
2021-09-30T09:28:13
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pycc def merge(clouds): total_num_points = sum(cloud.size() for cloud in clouds) merge_result = pycc.ccPointCloud("MergeResult") merge_result.reserve(total_num_points) for cloud_idx, cloud in enumerate(clouds): for point_idx in range(cloud.size()): merge_result.addPoint(cl...
UTF-8
Python
false
false
1,219
py
196
merge_script.py
146
0.611157
0.608696
0
44
26.704545
82
xiaming9880/Curvature-Learning-Framework
1,185,410,986,347
78132a4fde70df65a718d6e4909d57f88f5e99fb
1dcb23afe2b907636345ac5f94552eca12c53999
/examples/hgcn/data_utils.py
466861d0341d37e3676c6bb99144cf88f86826f0
[ "Apache-2.0" ]
permissive
https://github.com/xiaming9880/Curvature-Learning-Framework
da0c2300b96dbcb5b48a28ddb7ce6c6b63373d04
db1be0b7ed57f046bc5b359dbb0155708cd94611
refs/heads/main
2023-08-26T18:48:48.821531
2021-11-15T06:14:09
2021-11-15T06:14:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright (C) 2016-2021 Alibaba Group Holding Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
UTF-8
Python
false
false
4,815
py
41
data_utils.py
23
0.64486
0.636137
0
117
40.153846
119
MerlinAu/leetcode-python
16,054,587,753,105
561cd54e74c7278fc32e66d2f84acf6eee30a9cf
dc23985fcf3dd4d15b32a2f774f7efd45d9daab7
/code/Template/DP.py
2974d9c1eed7f5a3901f4c7f774195b24b2d0356
[]
no_license
https://github.com/MerlinAu/leetcode-python
caa2da9ebe10988aa88bc64bf50be6d5b2fb6b87
acf29a6ba46586d320e6d9acc891ba16d741a7ed
refs/heads/master
2020-05-24T08:05:46.912648
2019-08-30T07:28:54
2019-08-30T07:28:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
'''template of dynamic programming''' # 状态定义 # dp = new int [m + 1][n + 1]; # 初始状态 # dp[0][0] = x; # dp[0][1] = y; # ... # DP状态的推导 ''' for i = 0; i <= n; ++i { for j = 0; j <= m; ++j { ... dp[i][j] = min {dp[i - 1][j], dp[i][j - 1], etc.} } } ''' # return dp[m][n]; 最优解
UTF-8
Python
false
false
330
py
48
DP.py
42
0.38255
0.348993
0
21
13.238095
57
BDNYC/astrodbkit
15,178,414,426,317
58f1299b64c63323323dc587bf51c6e3efa54d7b
a6cffe95a5c5318535da8f6510f97bcfb0ffa6ea
/astrodbkit/__init__.py
ac7de65a61dcc968e5ee156adbd98bf4082a7588
[ "MIT" ]
permissive
https://github.com/BDNYC/astrodbkit
51a99255fc4bc931fc7add2fd6f986696aa45887
00b9dc5470ddede2027faddd8ba1e8787166a54f
refs/heads/master
2021-04-19T00:03:14.527412
2020-05-28T13:01:25
2020-05-28T13:01:25
49,847,131
2
6
MIT
false
2018-05-03T21:19:50
2016-01-18T02:32:16
2018-05-03T19:57:01
2018-05-03T21:19:50
1,897
1
5
20
Python
false
null
from .astrodb import * from .astrocat import * from .votools import * from pkg_resources import get_distribution __version__ = '0.6.6'
UTF-8
Python
false
false
134
py
12
__init__.py
6
0.738806
0.716418
0
5
26
42
connectthefuture/psdmrepo
5,669,356,860,204
3b6e5ce83aeb6aaab9ceb4823fdf00126a5f401f
786de89be635eb21295070a6a3452f3a7fe6712c
/psddl/tags/V00-08-06/tags/andy-20101027-01/psddl/src/Type.py
3c8d5cf794b17b1aec97d335c7444fb3698f9859
[]
no_license
https://github.com/connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#-------------------------------------------------------------------------- # File and Version Information: # $Id$ # # Description: # Module Type... # #------------------------------------------------------------------------ """DDL class representing a type (class). This software was developed for the SIT project. ...
UTF-8
Python
false
false
2,275
py
3,157
Type.py
2,769
0.421978
0.421978
0
92
23.728261
75
majdigital/bigworldgraph
7,550,552,535,505
92518b78d9ee21f524ef3cb5685c7705c33fede6
7987783a15f161168a04551b4da97317c9cf4250
/backend/bwg/tasks/relation_merging.py
2e6766f7abc59b0a452afcfa269bead98b7c32c0
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
https://github.com/majdigital/bigworldgraph
b2f251bb1b82208878e3e99812a08791527e1423
8ae28f1923f1116c0595896872af23a41fcfdf99
refs/heads/master
2023-01-21T07:20:21.612816
2019-06-21T17:08:07
2019-06-21T17:08:07
88,851,746
4
0
MIT
false
2022-12-10T19:48:49
2017-04-20T10:10:39
2022-07-05T21:53:36
2022-12-10T19:48:48
62,677
3
0
27
Python
false
false
# -*- coding: utf-8 -*- """ Defining a pipeline task that merges relation extracted from different tasks, e.g. participation extraction or naive open relation extraction. """ # EXT import luigi # PROJECT from bwg.decorators import time_function from bwg.mixins import ArticleProcessingMixin from bwg.serializing import...
UTF-8
Python
false
false
3,524
py
111
relation_merging.py
58
0.629398
0.627696
0
96
35.71875
116
Mehedi109/Ambulance-Service
17,944,373,371,456
3fecc9057a188da6ceb7c77d5e2832c64d7e7158
49e7d8a7574ada9bdfc8cb66a5e1afb0eab8eb57
/project_app/views.py
dae15c8302d36a39e0fd149d33fdfe1f528422e4
[]
no_license
https://github.com/Mehedi109/Ambulance-Service
bd5bbfc7317a5f6efd7556411202fc26487666f2
eaa1b8bb52ee5239a89e235fdd3db5eb186ec9e4
refs/heads/main
2023-01-13T01:17:24.284389
2020-11-12T11:49:26
2020-11-12T11:49:26
304,373,928
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.views.generic import ListView from django.shortcuts import render,redirect,HttpResponse,get_object_or_404 from django.core.paginator import Paginator from django.db.models import Q from . models import Category from . models import Quot from . models import ability_top from . models import ability_bottom f...
UTF-8
Python
false
false
8,425
py
43
views.py
22
0.727596
0.719169
0
297
27.367003
104
MathactwFX/python
19,335,942,778,069
0924f256d030359d157e7fda448cb999f49577c9
a249beaa5dd9f7838b2c44364c88fc7056814033
/language/python_overview.py
da3f3b33d5da9262764ffa171980158426b853fc
[]
no_license
https://github.com/MathactwFX/python
0d3254d9741b0d6f0570f885d53d86e7e44c267e
a0f2797feebc5188921d1e5850008c5811e9c9b8
refs/heads/master
2019-07-10T06:56:10.717252
2017-06-29T02:01:13
2017-06-29T02:01:13
91,102,622
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """a test module""" # content ref = Python教程 | http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000 # ******** 关键字 ******** # g = lambda x: x^1 # print(g(2)) # # def make_counter(): # count = 1 # def counter(): # nonlocal cou...
UTF-8
Python
false
false
15,162
py
22
python_overview.py
21
0.547586
0.514331
0.000823
639
21.823161
116
MrDeff/bitrix-crest
18,872,086,301,379
80fb7ef6b6b0bc04fa443e91141019b8860c74e6
ea12579ffe18c6530536cf7897d4559d2fb52edd
/setup.py
b44659974b4f7a6b897ae521419f3bc6689c222c
[]
no_license
https://github.com/MrDeff/bitrix-crest
b485d351c297c2955c53d3ef4288ca47e1700661
5da66b765d9e9f7f3b08846ac40a8befeeca9bbb
refs/heads/master
2020-12-08T11:34:16.454459
2020-01-23T02:54:08
2020-01-23T02:54:08
232,972,386
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import setup setup( name='bitrix-crest', version='0.0.1', packages=['b24rest'], url='https://github.com/MrDeff/bitrix-crest', license='MIT', author='Evgeniy Pedan', author_email='e.pedan@gmail.com', description='Библиотека для работы с rest Bitrix24' )
UTF-8
Python
false
false
322
py
5
setup.py
4
0.662252
0.639073
0
12
24.166667
55
larkspur78/capstone
3,435,973,877,808
584e21dea8707e74db65459b567451c25b778596
539d2e1e821138a541301a1d500a0b87f82f41c2
/virtualtrainer/apps.py
bb86660cd76624d04ef1c76c4b2eb5089de03314
[]
no_license
https://github.com/larkspur78/capstone
6996a9521ab233a5e0f77853cd69b09a8e42f270
10878113263479191218387db8d44fb50cf8aecf
refs/heads/master
2021-01-09T20:46:13.072990
2016-06-22T03:35:26
2016-06-22T03:35:26
59,877,096
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.apps import AppConfig class VirtualtrainerConfig(AppConfig): name = 'virtualtrainer'
UTF-8
Python
false
false
103
py
12
apps.py
7
0.786408
0.786408
0
5
19.6
38
UVA-DSI-2019-Capstones/ARL
11,751,030,537,089
06d41ee5f17be3a801f97d161ce0555ac947d1c2
9ad83773134d89c682405ab328d197589eb43aff
/db/lda_randomforest.py
c84d5ba08869c1f1a1036a0376becdf9b9bb0baf
[ "MIT" ]
permissive
https://github.com/UVA-DSI-2019-Capstones/ARL
a52102419479e1cc76e2e00d4d92e38301f3f7bb
74d43bf975db90da70696d4b68002d6971164840
refs/heads/master
2021-07-09T05:09:28.660761
2019-04-06T17:31:30
2019-04-06T17:31:30
146,603,421
1
0
MIT
false
2019-03-01T00:49:32
2018-08-29T13:24:11
2019-02-28T23:52:10
2019-03-01T00:49:32
92,377
1
0
4
Jupyter Notebook
false
null
from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import classification_report, confusion_matrix, accuracy_score, f1_score from gensim.corpora.dictionary import Dictionary from gensim.models import LdaModel from shorttext.utils import standard_text_preprocessor_1 import pandas as pd import os di...
UTF-8
Python
false
false
2,759
py
134
lda_randomforest.py
30
0.656035
0.638275
0
73
36.794521
152
xuhui1994/craft_onnx_tensorrt
7,645,041,792,781
76e38b052df80320cec801449f576aad21651c64
008689ceb7629b9c26b475c3e5eb66bd5e2c67f3
/export_onnx.py
7410a0922102a594bf8c1519a60bccd728552259
[]
no_license
https://github.com/xuhui1994/craft_onnx_tensorrt
d323f4f7de9dcbd09cbf8cc3b23241b7f322a9a2
443aced62125e582a7d1ef221952b365e686bb64
refs/heads/master
2023-03-05T05:07:08.155567
2021-02-20T06:24:55
2021-02-20T06:24:55
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Copyright (c) 2019-present NAVER Corp. MIT License """ # -*- coding: utf-8 -*- import sys import os import time import argparse import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.autograd import Variable from PIL import Image import cv2 from skimage import io import numpy as np...
UTF-8
Python
false
false
7,024
py
3
export_onnx.py
2
0.606065
0.589977
0
217
31.313364
162
janlindblad/eantc20
14,551,349,231,197
420e1d7ebf1fd18061790b4b452ea17611cf0e4f
c6ad3f65da16e714619bb62b27565efc00364c1c
/work-packages/f5500/python/f5500/CiscoIOSXRPerfMeasCfg_ns.py
8eff8f4d2a84ea17c1df2b14827d5ad99da52e97
[]
no_license
https://github.com/janlindblad/eantc20
c0c74a1e6476ca5e5a2906f18472259d8a515b21
e9051c77de16578c97dcf1f7ecb0a5ef30ad2e68
refs/heads/master
2020-12-21T19:09:36.076797
2020-03-17T18:17:04
2020-03-17T18:17:04
236,523,910
0
3
null
null
null
null
null
null
null
null
null
null
null
null
null
# # BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE # This file has been auto-generated by the confdc compiler. # Source: ../load-dir/Cisco-IOS-XR-perf-meas-cfg.fxs # BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE # # Autogenerated namespace class for YANG module Cisco-IOS-XR-perf-meas-c...
UTF-8
Python
false
false
3,282
py
2,201
CiscoIOSXRPerfMeasCfg_ns.py
1,006
0.728519
0.655393
0
63
51.095238
97
alwhite1/tech_smart
13,666,585,977,589
7e32ee7e7028000334e1f0b5bf87a2013a9a46f4
b5a30e688f83dad8eda90f47ed5cc9f4374f9de5
/to/admin.py
bbe41c67e3b268d20d4bf3163f8c5220113e0e96
[]
no_license
https://github.com/alwhite1/tech_smart
915b1bfa02bbc43a394505c966180ac71e3d0762
6c0378d7185511f5427c33b940c46323d6f310b6
refs/heads/master
2021-01-15T18:14:16.846325
2015-11-17T10:06:33
2015-11-17T10:06:33
32,804,106
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from to.models import LOU from to.models import Staffer admin.site.register(LOU) admin.site.register(Staffer)
UTF-8
Python
false
false
145
py
47
admin.py
22
0.813793
0.813793
0
7
19.714286
32
bahamat/sdcadmin
10,213,432,258,742
01646b845b48a39f945561baf63d397d3b47aff7
e48a2cadaee548a7be5449f16ad54cdb7bffa583
/sdcadmin/datacenter.py
9c735341c73bdf35f63c97a65487f2925aabcad5
[ "Apache-2.0" ]
permissive
https://github.com/bahamat/sdcadmin
ad7502e1e8591b67599d556a698b7f009b0f7bf4
0a51cdbde70a3694918cc0a3c20340bc9fff54e4
refs/heads/master
2020-03-28T07:56:42.858083
2015-01-21T10:05:04
2015-01-21T10:05:04
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2015 Zuercher Hochschule fuer Angewandte Wissenschaften # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/...
UTF-8
Python
false
false
7,678
py
7
datacenter.py
7
0.605105
0.604064
0
195
38.379487
119
Simranjeet96/MovRec
4,071,629,005,754
4ecd9e0ca724236675bb1545992e410dfaf22e0f
b65cb15f70b8c3a4108a75cfaa0a7675ece11830
/src/web/views.py
132b623baea160485ffa56390fc33cfb0a743ceb
[]
no_license
https://github.com/Simranjeet96/MovRec
1c26f9c91dd99ce9f43f9af01300709c70bb64a1
e731b3a430eaa9409ab22ad98ba222faa7e862e6
refs/heads/master
2020-05-15T06:03:53.325938
2019-04-19T14:18:00
2019-04-19T14:18:00
182,112,844
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth import authenticate, login from django.contrib.auth import logout from django.shortcuts import render,get_object_or_404,redirect from django.db.models import Q from django.http import Http404 from .models import Movie,Myrating from django.contrib import messages from .forms import UserForm from...
UTF-8
Python
false
false
2,905
py
5
views.py
2
0.732874
0.726334
0
94
29.861702
116
sasha0/episodes
3,307,124,832,523
a2bf78fb19e8b2db572183a21e5fef111a43f0be
9b50ec9706ae68b12daa56c549dd8efe8e83dc05
/app/api_views.py
0018f8ed3afa1458314e1fa812bdde850ccf45e1
[]
no_license
https://github.com/sasha0/episodes
a60c84608224d85ef9491ef165bcb4ea6fe98a32
43667ed4f26bb6bb0bd3e5a60b2c235868b9df42
refs/heads/master
2021-01-25T12:14:19.592495
2015-03-28T21:51:29
2015-03-28T21:51:29
30,326,633
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """REST API controllers, powered by flask-restful.""" from flask.ext.restful import Api, Resource, fields, marshal_with, marshal from flask.ext.restful import reqparse from flask.ext.security import current_user from app import api, es, QueryStringQuery, MultiMatchQuery, TermQuery from app.res...
UTF-8
Python
false
false
6,017
py
17
api_views.py
10
0.632874
0.632043
0
144
40.791667
114
korylprince/BeagleCommand
2,250,562,876,144
7b18c964d86f40c561a87a877a5873bb46f4bf87
124423867d4278e7bef4463c6a7e05d9fa52346d
/client/__init__.py
743e8e8af953bda16190be1babcc68aac83a34c8
[]
no_license
https://github.com/korylprince/BeagleCommand
b39ae000a38cf1dd204388eaa2b987025f2199dc
0b130684cba41b12c8ac3ca141520f081ae12185
refs/heads/master
2016-09-05T16:36:47.517357
2013-07-20T13:41:26
2013-07-20T13:41:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import signal, os from Queue import Empty from multiprocessing import Process, Queue from BeagleCommand import QuitinTime # create message passing queues SerialIn = Queue() StorageIn = Queue() MessageBox = Queue() QueueOwners = {'serial':SerialIn,'storage':StorageIn} # wait until objects are defined to initialize wo...
UTF-8
Python
false
false
1,677
py
15
__init__.py
10
0.645796
0.644007
0
61
26.491803
70
andy5macht/service.odroidn2.oled
9,543,417,353,603
01a71c1bd54a350518bcad65f2f138cd187bbd58
d35bf0fba626a4ab8e5bb71f689d9a5f863deb5d
/lib/settings.py
49836367f0fecb0adc9af271b7bd956bf9696758
[ "MIT" ]
permissive
https://github.com/andy5macht/service.odroidn2.oled
a0cd3d0d1a25ae07bd30207d028d88d66dca1340
60b91680da8d8918e7dea466cf5e91d9b80e9ca4
refs/heads/master
2023-06-09T14:46:49.738050
2020-08-22T16:10:07
2020-08-22T16:10:07
348,997,189
0
0
MIT
true
2021-03-18T08:33:02
2021-03-18T08:33:01
2021-03-05T05:02:45
2021-02-25T17:35:16
200
0
0
0
null
false
false
import xbmcaddon from lib.logging import * addon = xbmcaddon.Addon(id="service.odroidn2.oled") def getSetting(id): return addon.getSetting(id).lower() def getBool(id): value = getSetting(id).lower() if (value == "true"): return True else: return False def getInt(...
UTF-8
Python
false
false
2,297
py
11
settings.py
7
0.632564
0.629517
0
85
25.023529
78
davemcg/Rosalind
13,572,096,656,801
062fb8d1ca721c0baecfa42f0896bd42c510a7b8
05a980609170614e4aeb10d73acc1bb29ec0580a
/PROT.py
649724fc77a020fa9f10aef5cb5727d2e89ba278
[]
no_license
https://github.com/davemcg/Rosalind
19536ec78594b8755c63c25e449aadb53c09102b
d4f2bad0835c410e6030ca59288f2686b97f8ef0
refs/heads/master
2021-01-19T07:18:52.387106
2015-03-13T19:50:44
2015-03-13T19:50:44
31,798,561
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 """ Given: An RNA string s corresponding to a strand of mRNA (of length at most 10 kbp). Return: The protein string encoded by s. """ from Bio.Seq import Seq from Bio.Alphabet import generic_rna import fileinput for line in fileinput.input(): seq = Seq(line[:-1], generic_rna) print(seq....
UTF-8
Python
false
false
333
py
12
PROT.py
11
0.714715
0.702703
0
19
16.526316
84
toszter/afecomputing
9,921,374,484,196
6229b3fa099d7f367a2a8424fd0a1fa365cf481f
5e104bdd7b9178ebba44a1c613a5a6a4f5a320e1
/connect4/connect4.py
35e9e9a5d77b2de7481f0f99a21f4f6d4f4b7e2f
[]
no_license
https://github.com/toszter/afecomputing
c716ef461b5be033bb8278d4a097bd1a3c6ca8c4
2a96546af62ee9756e8ec2f86d389bdb08d1511a
refs/heads/master
2021-01-20T13:48:37.594743
2013-03-22T18:56:49
2013-03-22T18:56:49
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Connect 4 # AFE Python Class Spring 2013 # # Use Lists to represent positions of X and O's on a 7x6 Board # [[],[],[],[]] # # How do we check for a winning condition (4 in a row up/down/diag) # [[],['x','x'],['o','x'],['x','o','x'],['o','x','o','x'],[],[]] # 0 1 2 3 # Col...
UTF-8
Python
false
false
4,743
py
2
connect4.py
1
0.458992
0.445288
0
147
31.258503
84
NickSwainston/misc_scripts
15,032,385,577,814
60e04fbd5156948bd415fd905767f9f348cfc448
af0c01986f6228c9b0c8da53527d757be84e8de5
/spectra_paper/fit_pulsar_spectral_models_and_doc.py
957e6c5d9fa12ea2aa3ae9e96baf90c1c43d6591
[]
no_license
https://github.com/NickSwainston/misc_scripts
9f304e304a42e624f77cd9bc1163263e537af944
5d61fa2e869e06d09326360484734c4fd24275eb
refs/heads/master
2023-05-27T20:51:49.301058
2023-05-16T02:03:55
2023-05-16T02:03:55
187,352,432
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import os import matplotlib.pyplot as plt import psrqpy import numpy as np import shutil from PIL import Image import glob import torch.multiprocessing as mp from functools import partial from tqdm import tqdm import yaml from pulsar_spectra.spectral_fit import find_best_spectral_fit, estimate_flux...
UTF-8
Python
false
false
31,285
py
187
fit_pulsar_spectral_models_and_doc.py
57
0.515799
0.506684
0
775
39.345806
232