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
rupol/Computer-Architecture-Lecture
10,909,216,951,463
387682528a4e773a65738037f24a7ef33f818694
3430ce172c5f4f143ddf8214e8553a382f25d461
/01_basics/conversion.py
6b33466468e8230dd13c71e9818bf08023591828
[]
no_license
https://github.com/rupol/Computer-Architecture-Lecture
b596ed54d210082d46e2d062b92e50a4e410baed
0cc5715dabf7aeec9b8cd6d35a0d3cb823b0db2c
refs/heads/master
2022-12-17T07:51:15.578565
2020-09-14T23:34:20
2020-09-14T23:34:20
292,130,158
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# num = 21 # print(int(num)) # 21 # print(bin(21)) # 0b10101 # print(hex(21)) # 0x15 # print(hex(129038)) # 0x1f80e # print(int(0x1005d41c0)) # 4301078976 # print(2 ** 8) # 256 - possibilities in an 8 bit computer # a = 2 ** 32 # b = 2 ** 64 # print(a) # print(hex(a)) # print(int(0b11001010)) # print(bin(115)) ...
UTF-8
Python
false
false
354
py
14
conversion.py
7
0.59322
0.387006
0
17
19.823529
59
mohitsh/python_work
16,286,515,989,367
3c00880d5ab65703b12054067daeaa35a84e254d
c73fc798764f40ea6fa466a573fb01223e367ce3
/graph/wordLadder.py
56a223df4843d6e47b01d453e1ed9c5fd34f6e96
[]
no_license
https://github.com/mohitsh/python_work
b1385f62104aa6b932f5452ca5c2421526345455
223a802dea5cdb73f44a159856c7432983655668
refs/heads/master
2020-04-24T00:34:15.427060
2018-08-21T19:12:07
2018-08-21T19:12:07
37,491,449
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from graph2 import Graph, Vertex def buildGraph(wordFile): d = {} g = Graph() wfile = open(wordFile,'r') for line in wfile: word = line[:-1] #print word for i in range(len(word)): bucket = word[:i] + '_' + word[i+1:] if bucket in d: d[bucket].append(word) else: d[bucket] = [word] for k...
UTF-8
Python
false
false
591
py
284
wordLadder.py
276
0.560068
0.544839
0
32
17.4375
49
jmp85/enigma-python
14,800,457,352,496
dbabd5c7e935905bf24d9cc96a80f877c198bcb3
443c12b5c2ab634fe974942b35237ab7af31d1c0
/enigma/__init__.py
877c0bc34fc3b0a0ba537424c7b34b683c5633be
[]
no_license
https://github.com/jmp85/enigma-python
f1481797a270533f9aefead379ae871d81c46a31
22b502a69634f907d664540f945b9da3189af2a8
refs/heads/master
2021-01-10T09:12:29.979297
2016-02-27T14:23:50
2016-02-27T14:23:50
52,628,028
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' __init__.py The enigma package '''
UTF-8
Python
false
false
49
py
6
__init__.py
5
0.44898
0.44898
0
6
7.166667
22
aky4wn/pybats
8,031,588,848,770
10f2bcc369c1fde3845f3e52a6021eb2c900ac4e
ac2d144bb8eb06e664eb2f8e16ae3185d0473d1e
/pybats/forecast.py
b2c48e15afa25239739533ff0bf54bc990bf7316
[ "MIT" ]
permissive
https://github.com/aky4wn/pybats
f3d64fb48169be4b1767869f512dd38b6abb81f9
ac47d43b8491e70537cea41a15653c01f8bae652
refs/heads/master
2022-04-18T23:29:52.423164
2020-04-06T19:30:31
2020-04-06T19:30:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
## The standard DGLM forecast functions import numpy as np from scipy import stats from scipy.special import gamma from pybats.update import update_F def forecast_aR(mod, k): Gk = np.linalg.matrix_power(mod.G, k - 1) a = Gk @ mod.a R = Gk @ mod.R @ Gk.T if mod.discount_forecast: R += (k - 1) ...
UTF-8
Python
false
false
9,356
py
30
forecast.py
11
0.539119
0.526935
0
301
30.079734
117
Mounika1577/mounika_python
18,021,682,808,230
43b769e23cd907826d05442d62385904519ce7ef
1c2cf4f97996a9a5858c0b1114e1967cc9340f27
/dijkstra.py
8035e627fbbb247da517fa259c07884216ffa6fb
[]
no_license
https://github.com/Mounika1577/mounika_python
59fdb5b6c4c3b3306e53f60fcece5c7aec9c206a
59de3e02f949af901b933ae32634b87db1cf6de9
refs/heads/master
2023-02-25T11:19:50.813030
2021-01-31T13:36:15
2021-01-31T13:36:15
281,108,492
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Dijkstra's Algorithm graph=[[0,7,9,0,0,14],[7,0,10,15,0,0],[9,10,0,11,0,2],[0,15,11,0,6,0],[0,0,0,6,0,9],[14,0,2,0,9,0]] V=len(graph) src=int(input()) d(src)=0 d=[sys.maxint]*V visited=[False]*V for i in range(V): u=minDistance(d,visited) #current vertex visited[u]=True for j in range(V): ...
UTF-8
Python
false
false
627
py
30
dijkstra.py
30
0.559809
0.486443
0
25
24.12
99
EdHub563/gpa
11,373,073,410,723
77f087f854cd3c4e3252aa9e63da2ecbbc493374
0c99e679fb9b3183cb3c6dffe997b3013b3572aa
/web/gpa_calc/gpa/models.py
325b31c77a31e1f3bcd6e4f4015b344c2780101d
[]
no_license
https://github.com/EdHub563/gpa
b4e44bc945cf4f575bdca2404419f0682b1678e7
60421536697f33bbcf96f65c78a4683c02b447e8
refs/heads/main
2023-08-21T15:42:58.673001
2021-10-30T02:36:29
2021-10-30T02:36:29
303,064,571
0
9
null
false
2021-10-30T02:36:30
2020-10-11T07:18:45
2021-10-30T02:31:41
2021-10-30T02:36:29
474
0
9
0
Dart
false
false
from django.db import models # Create your models here. # pass the current semester's subject wise grades in a dictionary as (subject(str)+credits(str)) # as key and grade(str) as value and one more dictionary as second parameter to GPA_CALC # like key=semester_count and value=current_cgpa class GPA_CALC: def __...
UTF-8
Python
false
false
1,390
py
18
models.py
2
0.501439
0.489928
0
46
29.217391
120
coxmediagroup/notario
9,165,460,226,609
c403ab376f25df5fe99e99d3d1190f8a21927c7f
60e8a0eef22782f92b43d3af7e54b5b6551f850d
/notario/validators/recursive.py
18d06cae7d1a943c6c879f4c0a3bda7c4dd9101c
[]
no_license
https://github.com/coxmediagroup/notario
3c951db4d8cf7d397a84de16269bc1b6dc4aaa9a
e160b97908c8b90889d84d4ce7f7eb7831348cf7
refs/heads/master
2018-05-30T14:55:10.070147
2012-07-10T20:24:07
2012-07-10T20:24:07
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from notario.exceptions import Invalid from notario.engine import RecursiveValidator class BasicRecursiveValidator(object): """ Base class for recursive validators, can be sub-classed for other type of recursive validators but should not be used directly. """ __validator_leaf__ = True de...
UTF-8
Python
false
false
3,758
py
10
recursive.py
10
0.600053
0.588345
0
122
29.803279
96
AstrorEnales/CodeEval
5,265,629,944,064
21309ead87e36f3a4eb2eac8ce96d0524ea29481
92153c926f7dbb766304a28abe6b055e3ba03607
/Easy/Knight Moves/main.py
acc71fb714502a030ef5e3bc90fa16cba4e37869
[ "MIT" ]
permissive
https://github.com/AstrorEnales/CodeEval
c25cac01dcd7cde486db4759cb8ee1b719bb5948
eae0fb471d27d3a83d544ff4a4651ed1a2076930
refs/heads/master
2016-09-01T10:18:34.522449
2015-11-12T17:15:05
2015-11-12T17:15:05
45,317,379
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys letters = 'abcdefgh' lines = open(sys.argv[1], 'r') for line in lines: line = line.replace('\n', '').replace('\r', '') if len(line) > 0: fields = [] letter = letters.index(line[0]) number = int(line[1]) if number >= 3: if letter >= 1: ...
UTF-8
Python
false
false
1,237
py
95
main.py
95
0.452708
0.426839
0
36
32.361111
68
kingtub/OpencvExercise
2,413,771,644,859
3455710a003f73e740a61b8938aa767ec79ac640
da4a74569af5a95a8f79e250ccb664d00ac61a31
/opencv/pyramid/pyr_up.py
47d2d7fc109c99b116ae7320327cc6d1cd600172
[]
no_license
https://github.com/kingtub/OpencvExercise
7bea3a24334e78a189775e53cd89a7fcdafd4772
b9765a67855a1abded1d659e9a168b97e0db79ae
refs/heads/master
2022-11-30T08:14:07.823478
2020-08-13T02:38:00
2020-08-13T02:38:00
271,786,271
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' 图像金字塔。这是(高斯采样)向上取样。 ''' import cv2 o = cv2.imread('C:\\D\\testImgs\\chapter12\\image' + '\\p.bmp') r1 = cv2.pyrUp(o) r2 = cv2.pyrUp(r1) r3 = cv2.pyrUp(r2) cv2.imshow('o', o) cv2.imshow('r1', r1) cv2.imshow('r2', r2) cv2.imshow('r3', r3) cv2.waitKey() cv2.destroyAllWindows()
UTF-8
Python
false
false
319
py
48
pyr_up.py
48
0.629893
0.544484
0
17
15.588235
63
artemponomarevjetski/python-codility-solutions-artemp
9,165,460,219,411
69f18b17203e3f627e2c0d5c52cfe8aac6b60959
e717b0acc0eb485e7d804ba5b6fdcc2636f181ad
/equileader-correct-fast.py
f882c8f68ab10939f07d2a043077ba282f832541
[]
no_license
https://github.com/artemponomarevjetski/python-codility-solutions-artemp
a3aa78ca5e87e812359c7094eea7e9cd438bd473
aa6fec4b9efbb21aa48e40e6862f88498b22b245
refs/heads/main
2023-02-25T02:37:26.815174
2022-10-14T04:12:30
2022-10-14T04:12:30
240,374,263
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Apr 4 11:35:06 2020 @author: artemponomarev """ # you can write to stdout for debugging purposes, e.g. # print("this is a debug message") def solution(A): # write your code in Python 3.6 """ Task description is given on Codility website, ...
UTF-8
Python
false
false
2,405
py
35
equileader-correct-fast.py
33
0.580059
0.541614
0
90
25.3
88
John-Boccio/FacialExpressionRecognition
2,886,218,040,733
0d816be4cbe0fd75bdfcf5051b60b939692634dc
3bda096ad622a39b2b05bfacc0a7bb8c3b724eb5
/data_loader/__init__.py
954a393d57e93af651c32542f7a0bf11595c6831
[]
no_license
https://github.com/John-Boccio/FacialExpressionRecognition
17d2fc26e7d8b726c61fd4f778ef1e45067c5fa5
523e37651aed11f13a59bc09d4d1a7a2a10854e9
refs/heads/master
2022-10-05T16:25:00.768446
2020-05-05T18:56:40
2020-05-05T18:56:40
206,116,310
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .CK import CKDataset as CKDataset from .FER2013 import FER2013Dataset as FER2013Dataset from .ExpW import ExpWDataset as ExpWDataset
UTF-8
Python
false
false
138
py
20
__init__.py
17
0.847826
0.76087
0
3
45
53
JpBongiovanni/UserDashboard
17,772,574,688,137
52fc4096476521e4773a42e59c695a98fc152903
2ed6c65b4b7c7052af630fe4fa187896b9d34573
/test_app/views.py
57d3c9fced9844032f5f5d13a9cd2dd326a8d884
[]
no_license
https://github.com/JpBongiovanni/UserDashboard
26d1293b4a733f752c3d4bc543bea93a4a92df27
3df5fe21f12f6e689cd9c0c462cd312c05970904
refs/heads/master
2023-02-02T13:56:38.861766
2020-12-19T13:16:13
2020-12-19T13:16:13
321,970,534
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, HttpResponse, redirect from registration_app.models import User def admin_dashboard(request): context = { "user": User.objects.get(id = request.session['user_id']), "users": User.objects.all() } return render(request, "test_index.html", context)
UTF-8
Python
false
false
314
py
3
views.py
3
0.684713
0.684713
0
9
33.666667
66
utshahansen2604/rpa_demo
11,424,613,046,091
71de63c41621a3c4eabf97f46dd7d6118cab58a0
519aa28b6df2f1778fed566e027c4bb06b5406d5
/rpa_demo_dd_loop.py
9f4e0a7717e95a9493d150aba6a41406b385b7e7
[]
no_license
https://github.com/utshahansen2604/rpa_demo
10734640908dd008cbb8c4dc4b98f51c8d84229f
75301a37d71f48a3ba3e41956891f3cd2329e2f9
refs/heads/master
2020-07-27T02:40:55.026635
2019-11-10T14:42:42
2019-11-10T14:42:42
208,840,551
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.select import Select from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expect...
UTF-8
Python
false
false
4,897
py
4
rpa_demo_dd_loop.py
3
0.652644
0.61895
0
116
41.224138
160
Gongzq5/leetcode-helper
10,995,116,316,827
f56b1ec66f6d5802c8ebe74686791e99ad5801c9
6592fd6eb192f0369c6b621582c3a6f801c779ad
/leetcode/__init__.py
ece30b3a8b4e4963d61979af9763fe25def49cf7
[ "MIT" ]
permissive
https://github.com/Gongzq5/leetcode-helper
c7d48853b9de33e000fed3572c0d3f9dc0a05094
2c44fca7e988da2fd8fb8c1851cbba01032ad8df
refs/heads/main
2023-07-10T09:01:39.955342
2023-06-29T07:38:32
2023-06-29T07:38:32
373,733,773
0
1
MIT
false
2023-06-29T07:38:33
2021-06-04T05:46:26
2021-06-04T06:49:39
2023-06-29T07:38:32
147
0
1
0
Jupyter Notebook
false
false
from . import array from . import list from . import reporter from . import tree from . import simple_drawer
UTF-8
Python
false
false
109
py
9
__init__.py
7
0.761468
0.761468
0
5
20.8
27
dylburger/cracking-the-coding-interview-prep
10,943,576,672,147
4acf87cc881f2bdbb0f4a1f57b33bfc704fa67d5
666131d3188db46e214238050437d15fe6244d26
/balanced-brackets/tests.py
a8606def3e74cf3ab43a49bf407ddbf2df71d730
[ "MIT" ]
permissive
https://github.com/dylburger/cracking-the-coding-interview-prep
2c36258ed28922bf896c8a16d98c19a9c1cccc3f
14fbf4e798cfee2074f26e96091034c3aa9bfb02
refs/heads/master
2020-03-18T18:14:08.890931
2018-06-06T18:45:11
2018-06-06T18:45:11
135,079,211
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from are_brackets_balanced import is_balanced def test_single_balanced_case(): assert is_balanced('[]') is True assert is_balanced('()') is True assert is_balanced('{}') is True def test_trivial_unbalanced_case(): assert is_balanced('[') is False assert is_balanced('{') is False assert is_bala...
UTF-8
Python
false
false
582
py
22
tests.py
15
0.640893
0.640893
0
20
28.1
51
caveness/pants
10,290,741,667,672
892f34d402b319b87f54ebf5d80f750c5d2a198c
83e0cded019d54593ca5978f313835b9097a2859
/tests/python/pants_test/engine/exp/test_engine.py
c9cf2294390a4816acf33670421349193835e61d
[ "Apache-2.0" ]
permissive
https://github.com/caveness/pants
1cb61709b4156a598b18e3fb55621f0de0ffa4aa
71b7bbbeb61085bb4312727c0f045dbcce19bebc
refs/heads/master
2021-01-17T04:24:46.045359
2016-02-11T20:52:09
2016-02-11T20:52:09
50,482,636
0
0
null
true
2016-01-27T04:56:30
2016-01-27T04:56:30
2016-01-23T23:40:06
2016-01-27T02:55:22
72,376
0
0
0
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import uni...
UTF-8
Python
false
false
2,277
py
17
test_engine.py
11
0.703996
0.700483
0
57
38.947368
104
egeromin/Isomorphisms
10,660,108,863,285
5ed475a3b649b87d04a2af98ef6df267242f9068
c427c8530635293c207b4ddbc8f87cf81036fb07
/lstm_state/models.py
8bcc962c3c9045852bb828a9bcd076a10d31fe1f
[]
no_license
https://github.com/egeromin/Isomorphisms
91fa9aebfd79cba6d9bde1905df79cdf76ee5cb9
7aaf754fb3cb1e0ec062142db39f37dee9fff567
refs/heads/master
2022-12-02T06:00:25.007757
2018-06-18T20:29:46
2018-06-18T20:29:46
133,087,439
0
0
null
false
2022-11-22T01:06:06
2018-05-11T20:50:42
2018-06-18T21:10:38
2022-11-22T01:06:06
78
0
0
21
Python
false
false
""" Different models to try out for language modelling. """ import tensorflow as tf import tensorflow.contrib.eager as tfe import ipdb from lstm_state import config class RNNLanguageModel: def __init__(self): self.should_save_state = False self.saved_states = [] self.saver = None ...
UTF-8
Python
false
false
4,704
py
19
models.py
13
0.595876
0.587585
0
157
28.955414
68
hezhenpan/sylwk04
3,246,995,317,272
793835b55c2b900284412e1bac9ee8d318964dff
7f100960fa99e9233b3a7cbd8e9d82ed3a9b0d1f
/shiyanlou/spiders/github.py
16a3b4da4f5c8bce90bd5a32a1a95d0ec6fcc390
[]
no_license
https://github.com/hezhenpan/sylwk04
b401e386289986d15fe9f273161334feabaad129
51f348dda4751280b962b0dcf4fc631981c1d004
refs/heads/master
2020-03-08T15:55:00.270599
2018-04-06T10:03:04
2018-04-06T10:03:04
128,224,812
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import scrapy from shiyanlou.items import GithubItem class GithubSpider(scrapy.Spider): name = 'github' allowed_domains = ['github.com'] @property def start_urls(self): url_tmpl = 'https://github.com/shiyanlou?page={}&tab=repositories' return (url_tmpl.format(i)...
UTF-8
Python
false
false
1,354
py
1
github.py
1
0.591581
0.587888
0
38
34.552632
113
gevaertlab/MultiModalBrainSurvival
14,388,140,489,993
788ae8501fb77e966a13f44ca3f3877d3c5d6eff
35996de59c46726504af25c7c372741f0b150ecf
/5_JointFusion/2_JointFusion_savescore.py
7da0d3e4a59f4987a90cded44f780b18c8c80366
[]
no_license
https://github.com/gevaertlab/MultiModalBrainSurvival
4a0536b2b32eb9034879f1341453e7cf703f2dd0
af5f6b00e956413d21bcb40905bfd7dc43babec7
refs/heads/main
2023-08-03T16:55:07.797302
2023-07-12T23:36:21
2023-07-12T23:36:21
542,352,608
8
2
null
null
null
null
null
null
null
null
null
null
null
null
null
######################################### ### MODEL SCORES FOR JOINT FUSION MODEL (FFPE+RNA) ######################################### ### This script tfetches the model scores of the multimodal joint fusion model ### - input: ### - 224x224 patches (see 1_WSI2Patches.py) ### - log+z-score transformed ...
UTF-8
Python
false
false
9,474
py
29
2_JointFusion_savescore.py
17
0.624974
0.609457
0
236
39.144068
281
yyjhao/Seer-recognizer
592,705,534,613
4e34b5efdf1e3ad2ea16cf4c93ac7cd42afa1967
8e91545f5fabd57ccb98fe55f483a4ba3d15dba5
/code/bg.py
7283978341982df686f70c927825bcccfdc34769
[]
no_license
https://github.com/yyjhao/Seer-recognizer
69786f0c4ace83f84b14f44041ea3440cbd39208
003ad3e3302fd3b917b9711ff6c749d479490f61
refs/heads/master
2020-05-30T08:43:29.341950
2015-11-13T05:14:12
2015-11-13T05:14:12
43,367,022
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# bg.py # Performs background extraction on a video by averaging the # pixels of every frame in the video import cv2 import numpy as np import sys def main(): # Read video file from command line argument filename = sys.argv[1] cap = cv2.VideoCapture(filename) # Get and print video properties fr...
UTF-8
Python
false
false
1,199
py
15
bg.py
12
0.6397
0.627189
0
46
25.065217
64
caelus95/MantaOcean
16,398,185,146,863
2e80f50897f78006385a66a7b1cd909a9ad1beb6
3d4a3bebf614086cce8a22510d8c27c0bea52f92
/Ori/Read_nc/untitled5.py
73b6ad175aa599ae831d83e06750c89ca9afe472
[]
no_license
https://github.com/caelus95/MantaOcean
dc031518051daac9b718b4c7664a057a956475f8
dbc5774f6ecd949a8d8f58c66d0101f816b90dc9
refs/heads/master
2023-06-18T22:00:26.353952
2021-06-29T13:25:48
2021-06-29T13:25:48
365,965,350
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 Mar 18 21:10:56 2021 @author: caelus """ import pandas as pd import numpy as np data = pd.read_csv('/home/caelus/wormhole/mix_elnino.csv') a,b = data.shape ep_index = data.values.reshape(-1) np.save('/home/caelus/dock_1/Working_hub/DATA_dep/Kurosh...
UTF-8
Python
false
false
358
py
117
untitled5.py
114
0.687151
0.642458
0
19
17.736842
91
VSevagen/Chat-Application-using-TCP-Socket-and-Threads
807,453,869,108
40ad8e7eb87b8139b06c8e3c981ac166c49492e3
080ec6458420864bf8958f0761fd6267c8112cff
/Client.py
7260ff82f01d1f7d5c030ab3f8f2dda63a5f1cd7
[]
no_license
https://github.com/VSevagen/Chat-Application-using-TCP-Socket-and-Threads
7dbb57be4f93913bae16606949c945989dcafcd4
594306bffc585bd4618f1df6783be8a2f3edfc6d
refs/heads/master
2023-04-20T02:31:26.063224
2021-05-11T15:57:40
2021-05-11T15:57:40
358,806,422
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Script for Tkinter GUI chat client. """ import tkinter from tkinter.filedialog import askopenfilename from socket import AF_INET, socket, SOCK_STREAM from threading import Thread def receive(): """ Handles receiving of messages. """ while True: try: msg = sock.recv(BUFSIZ).decode("utf...
UTF-8
Python
false
false
2,939
py
3
Client.py
1
0.676421
0.666553
0
101
28.108911
108
DenGamleSkurk/advent-of-code
18,433,999,652,616
490c002ef3f74d19ec7899953e681dedfefea2ea
d5dcc8916b89b44a2d98eb257d12411e5cf2fe64
/2016/day8_1.py
8a541ee83eb4ae479bf0ecfafe8f230a9c89ee11
[]
no_license
https://github.com/DenGamleSkurk/advent-of-code
7930f211c44b04dc4106a8c0413ea4fe173b7c21
0b1911f8ee2de823534315f7fc200a4a814b8d1d
refs/heads/master
2020-03-29T19:26:27.471210
2018-09-26T11:03:53
2018-09-26T11:03:53
150,263,312
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np a = np.zeros((6, 50)) for line in open("input8.txt"): words = line.split() if words[0] == "rect": inst = words[1].split("x") x = int(inst[0]) #col y = int(inst[1]) #row tmp = np.ones((y, x)) a[0:y, 0:x] = tmp else: if words[1] == "row": ...
UTF-8
Python
false
false
675
py
17
day8_1.py
17
0.435556
0.41037
0
26
24.961538
50
JHUAPL/meta-system
14,070,312,879,022
5dc41f2629022fe88913b661a4935c09a5970762
92bf028ca91bf095355c7f3fbc8062099b7645d7
/system/models/job_manager.py
de5692a8c3fb4a9274146f0f9451bcf9ac51ab59
[ "Apache-2.0" ]
permissive
https://github.com/JHUAPL/meta-system
db6b116a782b0aa33bbad175ef2736154350f084
d3e80e50d64e1a9e83d81efbcb8de1ec9cc34e03
refs/heads/main
2023-01-10T00:09:31.167176
2020-11-13T01:13:58
2020-11-13T01:13:58
307,448,138
7
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# ********************************************************************** # Copyright (C) 2020 Johns Hopkins University Applied Physics Laboratory # # All Rights Reserved. # For any other permission, please contact the Legal Office at JHU/APL. # # Licensed under the Apache License, Version 2.0 (the "License"); # y...
UTF-8
Python
false
false
1,385
py
184
job_manager.py
75
0.645487
0.639711
0
44
30.477273
77
chengtachu/MUSE_PSM
197,568,526,587
70d22a2213e4956004ebcbc59f752ce57f68e818
3146cacb8c03bb1588386408ffccc5f87a190016
/PSM_main.py
c0acc4939848cd72b5b20943d42162437c7dd262
[ "MIT" ]
permissive
https://github.com/chengtachu/MUSE_PSM
37a18e74d225ba328e190c9b99ff3ce4e97705e1
2dd9f20a56b270eda5a7c02f53ff1d71921e5c76
refs/heads/master
2023-02-10T20:51:13.048686
2021-01-05T15:40:24
2021-01-05T15:40:24
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import time import cls_instance def _MainFunction(instance): # import external data from other module (Data/Input) instance.update_MUSEInput() print('{:f}'.format(time.time() - start_time) + " external data loaded") # run the models instance.run() if __name__ == '__ma...
UTF-8
Python
false
false
1,855
py
266
PSM_main.py
20
0.667385
0.666846
0
56
32.035714
115
DOAJ/doaj
13,134,010,020,375
4cc5f553093e4af677844090f43ff09b18fe8ec8
50db96c78ed909fe3035215a5975554bdbdafcc0
/portality/migrate/2957_heloise/remove_heloise_policy.py
25b4b448d3a452e52dcebb7ea47d0e4260a8f49d
[ "Apache-2.0" ]
permissive
https://github.com/DOAJ/doaj
fc5a53011d5d0042b4d86e0d721561e5cb04c66e
b441932e93a114129539abe4ce79221bd4c7e970
refs/heads/develop
2023-08-23T03:21:09.875609
2023-08-21T15:34:23
2023-08-21T15:34:23
14,500,626
56
17
Apache-2.0
false
2023-09-12T15:48:44
2013-11-18T18:07:31
2023-07-21T16:59:02
2023-09-12T15:48:42
213,439
51
17
23
Python
false
false
import csv from copy import deepcopy from portality.models import Journal from portality.settings import BASE_FILE_PATH if __name__ == "__main__": import argparse parser = argparse.ArgumentParser() parser.add_argument("-o", "--out", help="output file path") args = parser.parse_args() if not arg...
UTF-8
Python
false
false
1,371
py
1,161
remove_heloise_policy.py
589
0.570593
0.566203
0
40
33.175
105
pendulumswing/wonderboard
14,207,751,837,462
5257c61100fae6e18f9690ff6e4c6d02eb11f69c
56865ef15f7ca6cc7962dae67980b8521420c967
/app/api/board_users.py
6a73b921bfcde7ee164e7be268fccf53f3ff90ae
[ "MIT" ]
permissive
https://github.com/pendulumswing/wonderboard
805a3f382c9acf0d162a8867539990915643fed4
60d55a1a70deb5d67ee442e9c9028b9d61d06aa8
refs/heads/main
2023-01-09T00:28:57.617377
2022-10-26T22:02:48
2022-10-26T22:02:48
307,538,686
0
0
null
true
2020-10-27T00:10:53
2020-10-27T00:10:52
2020-10-13T20:16:15
2020-10-25T23:13:02
12,705
0
0
0
null
false
false
from .resources import * @api_rest.route('/board_users') class BoardUsers(Resource): # Get all board_users def get(self): return find_all('board_users'), 200 # Create board_user def post(self): data = request.json conn = get_connection() with conn.cursor() as cursor: ...
UTF-8
Python
false
false
1,023
py
50
board_users.py
20
0.533724
0.523949
0
37
26.648649
56
Will-Murphy/dp-address-project
13,554,916,816,356
f3068cf3e50878b737c4ca31d9336b27bc9595dc
748f7c58e0c74a676a01678b9db83b2956b5d7e5
/src/main_batch.py
78cefb8ea6e7ceb51a8573aa0e880501a96777f4
[]
no_license
https://github.com/Will-Murphy/dp-address-project
a096eeeda36bc08993d26a95897bad2a0192df6f
0ac5a49d527580c375726241a804ae306ffd11f6
refs/heads/master
2022-12-20T17:22:19.955622
2020-09-18T15:00:02
2020-09-18T15:00:02
231,607,607
2
0
null
false
2022-12-08T11:26:15
2020-01-03T14:46:09
2020-09-18T15:00:28
2022-12-08T11:26:14
2,306
2
0
3
Python
false
false
import argparse import sys from services.open_cage_address_service import OpenCageAddressService from services.smarty_address_service import SmartyAddressService from utilities import batch_io """ Entry point for batch processing of addresses.It produces output to a csv file. see readme for usage details. ""...
UTF-8
Python
false
false
3,320
py
19
main_batch.py
10
0.636446
0.632831
0
75
43.266667
91
svpcom/TxOauth2
2,886,218,060,493
c49dcaa7e2f44a4bfb4066352928298ee707f545
a3881c457d4de43c5fe8b586fb424fad08746bc0
/txoauth2/errors.py
cc0ae59936028bda46a5fd9be38d6c219e265946
[ "MIT" ]
permissive
https://github.com/svpcom/TxOauth2
7c15c64604b6f929f2913affa4941a4bc64225f1
431f728f18a6d3a2665823bdf34a5d1294df03ed
refs/heads/master
2021-08-19T04:00:15.969848
2017-11-24T17:15:59
2017-11-24T17:15:59
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright (c) Sebastian Scholz # See LICENSE for details. import json import logging try: from urllib import urlencode except ImportError: # noinspection PyUnresolvedReferences from urllib.parse import urlencode from twisted.web.server import NOT_DONE_YET from txoauth2.util import addToUrl OK = 200 BA...
UTF-8
Python
false
false
13,423
py
6
errors.py
6
0.659614
0.654995
0
331
39.55287
100
CamiloMeassiMacoris/20_Exercicios_Python
10,977,936,423,977
5f070cfa94c7353d8d28dd8f8457ca178b084503
c543bc74ea5199cb1df40f374cb7fd025e2f6bf9
/17.py
12aeca77366ded1178d28d5e88d77f4725b75d95
[]
no_license
https://github.com/CamiloMeassiMacoris/20_Exercicios_Python
ac546675045982f761502a9286a00df5d73ab16b
07a5ed2becb5721ac17b2b121e58b56d0c8b949d
refs/heads/master
2022-04-12T19:11:16.978508
2020-04-02T23:42:37
2020-04-02T23:42:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def valorPagamento(valor,dias): if dias == 0: return valor elif dias > 0: return valor + valor*3/100 + valor*0.1/100*10 else: return valor prestacoes = [] sair = 1 while sair != 0: valor = float(input('Digite o valor da prestação: ')) atraso = int(input('Digite os ...
UTF-8
Python
false
false
564
py
20
17.py
20
0.630824
0.600358
0
16
33
88
pvoosten/wolfit
14,139,032,365,625
06d375fa6c1fafaf76df7c068f2917819c961007
c26efd93535fe7d4d3f0f72573a3cd1c1d413153
/src/wolfit/test_partial_process.py
40fcd7dc1b4fe3ab5484de2e9bd6370a7b8121ad
[]
no_license
https://github.com/pvoosten/wolfit
d08616e8dd98d382908498982f955bac72a598d0
d7f3fba5ff5af290f00c6436f03654e32d0d471a
HEAD
2016-08-04T17:06:22.392634
2011-01-22T00:50:14
2011-01-22T00:50:14
32,882,365
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on Sep 22, 2010 @author: Philip van Oosten @license: GNU GPLv2 ''' import unittest import wolfit.runners class BasePartialProcessTest(object): ''' A partial process run is an execution of a process with only a part of the possible inputs given as the amount of input necessary to execute the ...
UTF-8
Python
false
false
1,669
py
14
test_partial_process.py
9
0.739365
0.735171
0
45
36.088889
86
stuymmillar/SoftDev
17,214,228,949,321
75e038057accc788216974addba31d2f979a9757
c8164a02c28112ce8aab34fea96d30ce0e86d57f
/17_db-nmcrnch/stu_mean.py
bfded3ad59bb2753933c86df69e465beec1e2c52
[]
no_license
https://github.com/stuymmillar/SoftDev
46cef51062e5b3e12ba85666480f200e2251749a
53630546f25673b06165fd87d75b7eae9abae1b7
refs/heads/master
2021-07-22T19:19:24.617960
2019-01-06T00:05:59
2019-01-06T00:05:59
148,509,232
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Madison - Max Millar, Addison Huang import sqlite3 import csv DB_FILE="discobandit.db" db = sqlite3.connect(DB_FILE) c = db.cursor() def findAvg(stuId): c.execute("SELECT mark FROM courses WHERE courses.id = '" + str(stuId) + "';") grades = c.fetchall() sum = 0 for x in grades: sum += int...
UTF-8
Python
false
false
1,592
py
35
stu_mean.py
14
0.575377
0.563442
0
56
27.428571
106
Sahanduiuc/TradingStrategyTrial
13,881,334,341,714
2f0ff292b039569bb5aa14afe64261bb396c344c
52edc4544dad6e6991a9bea382623c5d44b6e44a
/OtherStrategy/BollingerBandsMain.py
03c7c4369ab72ec8b640519b848d0192d1f70402
[]
no_license
https://github.com/Sahanduiuc/TradingStrategyTrial
082407ddc2b78a6eda73fadf1d2e9c187cf634d5
7fd62f8b576ffc8f714b590d78fefd8a3a03dc61
refs/heads/master
2021-05-22T00:25:44.414180
2020-01-04T02:15:36
2020-01-04T02:15:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pyalgotrade import strategy from pyalgotrade import plotter from pyalgotrade.tools import quandl from pyalgotrade.technical import bollinger from pyalgotrade.stratanalyzer import sharpe from pyalgotrade import broker as basebroker from pyalgotrade.barfeed import yahoofeed from pandas.plotting import register_matp...
UTF-8
Python
false
false
2,812
py
23
BollingerBandsMain.py
8
0.6867
0.677454
0
72
38.069444
122
ChangeXuan/windowsClearFile-Python
5,858,335,436,416
92e2f8f87784ed1dcb50247e29fc0a51c0615a8f
e3a787ce67b22f69b950bb6d75fdf6f025256bb2
/otherMsg.py
748bdfba16064d65db1ad74c7afa6384446fd004
[]
no_license
https://github.com/ChangeXuan/windowsClearFile-Python
45adfd386139e5d211b1c9f300224bfd381dbbfe
8d0201aec5aec240e81687b9d65620d83f57b613
refs/heads/master
2021-06-17T21:17:21.337535
2017-06-09T08:50:52
2017-06-09T08:50:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# test = { # 'one':'oneoneone', # 'two':'twotwotwo', # 'three':'three' # } # # for item in test.items(): # print(item) # del_extension = { # '.tmp': '临时文件', # '._mp': '临时文件_mp', # '.log': '日志文件', # '.gid': '临时帮助文件', # '.chk': '磁盘检查文件', # '.old': '临时备份文件', # '.xlk': 'Excel备份文件', # '.bak': '临时备份文...
UTF-8
Python
false
false
672
py
4
otherMsg.py
3
0.501748
0.486014
0
34
15.794118
44
yekeren/Cap2Det
7,447,473,314,598
ce7d149e5974ea343b4c9061991e11e03f683843
7e7ae13002510ff4e0f23c462236c41b920ce6fe
/models/registry.py
cd4a18d92b374d255d07bf47be2163d121c76e4f
[ "Apache-2.0" ]
permissive
https://github.com/yekeren/Cap2Det
e9f1d855cd663b5170742f2183e4b42d9a60f702
727b3025f666e2053b3bbf94cf18f9ab56fb1599
refs/heads/cap2det
2022-11-25T05:35:35.204237
2021-04-19T21:59:20
2021-04-19T21:59:20
199,341,640
34
11
Apache-2.0
false
2022-11-22T02:57:30
2019-07-28T22:06:18
2022-11-21T08:10:28
2022-11-22T02:57:30
19,175
30
10
12
Python
false
false
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf _registry = {} def register_model_class(cid, cls): """Registers a model class. Args: cis: Class id. cls: A specific class. """ global _registry _registry[cid] = cl...
UTF-8
Python
false
false
529
py
63
registry.py
48
0.676749
0.676749
0
30
16.633333
51
jpaav/SnakeGame
16,819,091,946,823
810a53dbde129bc138b2deef392090940058f0b4
831c8904b18cc993d16e99ba04a6f78c4b5ce21e
/logic/game.py
7da6278148e510134dc3886b312fee3119322a7a
[]
no_license
https://github.com/jpaav/SnakeGame
d47b48540ff58f7ff6c38c75699f3a5409898de9
0d28c53a5c0a53a3bdea7ae22055f97c5cb97864
refs/heads/master
2020-04-10T07:07:18.231442
2019-01-24T13:08:51
2019-01-24T13:08:51
160,872,834
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime import numpy as np import pygame as pg from googleapiclient.discovery import build from httplib2 import Http from oauth2client import file, client, tools from uuid import getnode from classes.board import Board from classes.snake import Snake from logic.difficulties import Difficulties from logic.stat...
UTF-8
Python
false
false
6,204
py
9
game.py
7
0.68343
0.659413
0
190
31.647368
138
LYQCOOL/Vueshops
12,292,196,402,725
e85d8d9f0f54291c24b775881a34e21b905cd7e1
9a1e39e525bb1eabe71ea4ea34e58f19f422d88f
/apps/users/adminx.py
cbb061fd901cd33d7289102a513e23e238b5930a
[]
no_license
https://github.com/LYQCOOL/Vueshops
6976ef6dde730eb50116315ebaf936ad2f690edb
3ccc9bd50653ee38d59a5b8c4f4fa19d19f0b874
refs/heads/master
2020-03-28T05:04:21.961426
2018-09-07T01:37:32
2018-09-07T01:37:32
147,754,305
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# _*_ encoding:utf-8 _*_ __author__ = 'LYQ' __data__ = '2018/8/17 19:37' import xadmin from xadmin import views from .models import * class BaseSetting(object): enable_themes = True use_bootswatch = True class GlobalSetting(object): site_title='购物网后台管理' site_footer='七七大公司' menu_style='accordio...
UTF-8
Python
false
false
655
py
23
adminx.py
20
0.709984
0.690967
0
28
21.571429
55
Thigos/PyChat-CLI
5,927,054,880,124
37cb5bcc65ede8f7efaa9e8172e70bb308cec6a6
3bec2018661d470936e21d84f6a7dcfe8f751f9c
/bin/Database.py
2cdaa6381df0931a679589d37488080414cf1c33
[ "MIT" ]
permissive
https://github.com/Thigos/PyChat-CLI
7ca8f704157f4705c178b7379cb7c394114957d8
7e938ae2c1c88350f5a78c163bde441214f02761
refs/heads/main
2023-05-28T18:39:42.534993
2021-06-04T05:37:44
2021-06-04T05:37:44
366,591,786
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pyrebase #Configuração do Firebase firebaseConfig = { apiKey: "api-key", authDomain: "project-id.firebaseapp.com", databaseURL: "https://project-id.firebaseio.com", projectId: "project-id", storageBucket: "project-id.appspot.com", messagingSenderId: "sender-id", appID: "app-id", } firebase = ...
UTF-8
Python
false
false
363
py
5
Database.py
4
0.722992
0.722992
0
15
23
51
jsoldani/ship-to
15,582,141,359,856
f438f3750a9bd0209903504efc12fc1c89e2b97b
301d22ed52e78dc4b7dbdcf5124bf3f111f1744f
/loader/config/costs-template-getter.py
b767e5a5a5f23024bbb372c98a30bfa1d6f44357
[ "Apache-2.0" ]
permissive
https://github.com/jsoldani/ship-to
2fa15ce9cadb4cb01e5e1290c67b0f00d5399d31
92ff47d4c44278778e9e75892ba90eb8e34f0181
refs/heads/master
2020-12-27T19:02:04.536486
2020-09-16T14:04:40
2020-09-16T14:04:40
238,014,296
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def cost(node): return costs[node]
UTF-8
Python
false
false
39
py
16
costs-template-getter.py
8
0.666667
0.666667
0
2
18.5
22
copenlu/politihop
11,149,735,121,749
ee6ab0447e5edb990fa8ef4f9e0810cd27e6a727
268eb04895b6beb8fd656204ed7cd3cff9e6c2b8
/Transformer-XH/data/__init__.py
ffeeb2dc27ceb5d2723f3662bca6952466b8e435
[ "MIT" ]
permissive
https://github.com/copenlu/politihop
95feae4d5e0816363b10f89f721bb141bfe1d549
bcb16fd6ff983337d5aae47494477be623a015d8
refs/heads/master
2023-06-16T00:13:24.566764
2021-07-15T07:47:37
2021-07-15T07:47:37
297,984,085
8
1
null
false
2020-10-16T13:32:32
2020-09-23T13:46:47
2020-09-23T16:14:14
2020-10-16T13:32:31
1,436
0
1
0
null
false
false
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # import the classes in the files of the data folder here. from .base import TransformerXHDataset from .hotpotqa import HotpotDataset, batcher_hotpot from .fever import FEVERDataset,batcher_fever from .utils import load_data
UTF-8
Python
false
false
297
py
38
__init__.py
18
0.811448
0.811448
0
7
41.571429
58
Ddollz/Writeam
8,186,207,710,608
521ff22c374fee08ff114cca64318ad863dccf2f
20670b9904ddfdd9f6f42b734734319249c37171
/clientApp/migrations/0013_auto_20210910_1744.py
a979b02ab88b01afdb0e59cfe7aafb44bd38999c
[]
no_license
https://github.com/Ddollz/Writeam
beced57abdba5b436d9e927dba9c30c2ff817f80
8b3c8916b812aa11d7b096eeb009292be6707048
refs/heads/main
2023-08-31T10:09:00.376411
2021-10-07T08:42:18
2021-10-07T08:42:18
391,028,558
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2.6 on 2021-09-10 09:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('clientApp', '0012_auto_20210907_0745'), ] operations = [ migrations.AlterModelOptions( name='article', options={'ver...
UTF-8
Python
false
false
1,558
py
131
0013_auto_20210910_1744.py
70
0.550064
0.526316
0
51
29.54902
89
Penultimatum/discord-boar-bot
8,864,812,546,441
fc30beabc431a109019cba0c8770ba7918825577
61c13147d43c6bf848f3cf2bf7bd575f580880ab
/src/boarbot/common/botmodule.py
7aa1ed94685556ebf4931341f346f2e828bb6dcf
[ "MIT" ]
permissive
https://github.com/Penultimatum/discord-boar-bot
bb4ad8365ac6d85ebed7babd8473ba83b3052d9a
1222b4e1df2513928a5ec20fd5d292d6e15f6c2c
refs/heads/master
2021-01-02T09:10:02.720805
2017-06-23T20:53:04
2017-06-23T20:53:04
99,149,047
0
0
null
true
2017-08-02T18:31:12
2017-08-02T18:31:12
2017-05-26T18:16:33
2017-06-23T20:53:08
49
0
0
0
null
null
null
import discord import shlex from abc import ABCMeta, abstractmethod from boarbot.common.events import EventType from boarbot.common.log import LOGGER class BotModule(metaclass=ABCMeta): def __init__(self, client: discord.Client): self.client = client @abstractmethod async def handle_event(self, e...
UTF-8
Python
false
false
2,269
py
20
botmodule.py
16
0.561481
0.560159
0
67
32.865672
124
kimballXD/Example
19,524,921,347,323
f4d77421742a5b2a7730a2d1b39b094b4cf97978
df50b358dfc48bfea3ea398adcdc99dad7b32f27
/cralwer example/metal.py
80f4ce5d68d46b5712ecac56ab99949666ada521
[]
no_license
https://github.com/kimballXD/Example
ad027bd36f667718248bb734629ae3ea6f631272
e4b6b70cf2f3258b390550ee0b000e6e7cf168ee
refs/heads/master
2021-01-10T08:21:52.017877
2016-03-27T17:14:43
2016-03-27T17:14:43
54,837,836
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Feb 26 09:59:16 2016 Crawling the member list of Taiwan Metal Indsutry Association (http://www.trmsa.org.tw/Member.aspx) Using Selenium package to request page. Parsing page with Selenium and BeautifulSoup package. Python version: built from Anaconda 2. @autho...
UTF-8
Python
false
false
4,289
py
8
metal.py
4
0.607336
0.590172
0
107
38.757009
167
TurtleZhong/uav_frontier_exploration_3d
18,665,927,897,994
cc542398ed4eaf835fa43c7b0b448e9ac1713dce
320551bcf39da6ce25754b20515b14daeb888f19
/scripts/execute_trajectory_state_machine.py
2c5af99b30af540266036d6d108a376bde268afe
[]
no_license
https://github.com/TurtleZhong/uav_frontier_exploration_3d
f74a6f8e34b1542e4765d4aeb04ee7b702a29fb9
16419e19fdebea2bb45c9f947592a28c42b7f2ad
refs/heads/master
2023-03-24T17:48:07.960403
2021-03-25T14:33:43
2021-03-25T14:33:43
359,473,829
1
2
null
true
2021-04-19T13:41:39
2021-04-19T13:41:38
2021-03-25T14:36:21
2021-03-25T14:36:18
69,286
0
0
0
null
false
false
#!/usr/bin/env python __author__ = 'abatinovic' import rospy, math, time from geometry_msgs.msg import Pose, PoseStamped from std_msgs.msg import Float64, Empty, Int32, Float32, String, Bool from nav_msgs.msg import Odometry from std_srvs.srv import SetBool, SetBoolResponse, SetBoolRequest from trajectory_msgs.msg im...
UTF-8
Python
false
false
9,898
py
28
execute_trajectory_state_machine.py
9
0.637503
0.630936
0
263
36.634981
91
thydungeonsean/Rainbowmancer
15,161,234,583,743
da38488dc49b44179845c888b109dd6ecf91b2a3
f797c5fc3243944855ff9304a678f9d89ff85f93
/src/map_objects/player/ablities/ability_collection.py
173ff2d7efee33fc0028cb379394a2927f37ac42
[]
no_license
https://github.com/thydungeonsean/Rainbowmancer
551e857a85b76489b1cee3feb0e40f7832919712
b8395fd2c25b83c84239a1aa198a0d134d7c60be
refs/heads/master
2021-01-25T06:57:05.968319
2017-07-17T12:00:07
2017-07-17T12:00:07
93,628,155
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from ability import Ability from bolt import Bolt from block import Block from bind import Bind from imbue import Imbue from invoke import Invoke from ray import Ray from shatter import Shatter from summon import Summon def new_block_ability(inventory): return Block(inventory) def new_bolt_ability(inventory): ...
UTF-8
Python
false
false
1,202
py
66
ability_collection.py
66
0.717138
0.717138
0
69
16.42029
50
jessharri/Gravitate
6,975,026,924,048
e132745cfaee644d5615f216b304d440f5547406
d34bfb34e1df3ae1e10d2dfbe2698601fc6b6ca5
/gravitate/schemas/luggage.py
6a223fcdce3cde69deaf88700c724eef41f45c97
[]
no_license
https://github.com/jessharri/Gravitate
deeeae76bfdb1ac73fb031cc650f59e1e9c2d118
d478cea5e391cda199134b5fc3245cf2a6b33b59
refs/heads/master
2023-04-05T00:34:23.838442
2019-06-23T09:47:00
2019-06-23T09:47:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# from marshmallow import fields # from flask_marshmallow import Marshmallow from flasgger import Schema, fields # ma = Marshmallow() class LuggageItemSchema(Schema): luggage_type = fields.Str() weight_in_lbs = fields.Number() class LuggageCollectionSchema(Schema): luggages = fields.Nested('LuggageItem...
UTF-8
Python
false
false
340
py
4
luggage.py
2
0.755882
0.755882
0
14
23.285714
60
nc-uw/ML-DeepLearning--Algos
16,655,883,202,804
7ff5795b32746f987d8dc6b5a7e891183f5c8748
66586a969a732680d012428b2782184a0cf4c9f8
/ML05 - Deep Learning/A. Tensorflow MNIST/tf_model.py
d8207350b648d34f91d60e00e2728fe41cfa70d8
[]
no_license
https://github.com/nc-uw/ML-DeepLearning--Algos
5dc95e5ff1baaa50d8b3e9d021e3afed8a56e6a8
4447f17bd7d874fe3efe558bb6ab496dfd90d7b5
refs/heads/master
2022-02-05T12:57:40.953670
2019-06-20T20:34:33
2019-06-20T20:34:33
117,786,396
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
"""This contains model functions. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import math import tensorflow as tf class Config(object): """This is a wrapper for all configurable parameters for model. Attributes: ...
UTF-8
Python
false
false
6,424
py
14
tf_model.py
12
0.643836
0.626712
0
172
36.348837
122
Kutabix/matura
4,415,226,393,040
833610fb3fcd0f5dc8003a4a5fbd984ebd06e8d6
6e23c34d439f8afdcfde8ec7012cb34f6958e7f6
/63/zad1.py
3deb3260fc4ea085a7752bfcece1f7bbd27362a4
[]
no_license
https://github.com/Kutabix/matura
53de8d3b086de1cd0fd271a9c0a9e804cc19e6e7
50655f2de70cad460bd7c6c3dcf333a159e81272
refs/heads/master
2022-04-19T07:24:55.565874
2020-04-21T00:12:48
2020-04-21T00:12:48
256,803,403
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from openfile import file for binary in file(): if len(binary) % 2 == 0 and binary[:int(len(binary)/2)] == binary[int(len(binary)/2):]: print(binary)
UTF-8
Python
false
false
163
py
27
zad1.py
26
0.625767
0.601227
0
5
31.6
91
kitchWWW/sparse_music
13,005,160,980,449
64ca686b326acd902595ed02fbd983b6d66ba355
2d0d0ef256f4cf882ab18233973e7d22c4f8c6b3
/create.py
0082bf75cfda4fa0e7a895716c008d7bd1643cbe
[]
no_license
https://github.com/kitchWWW/sparse_music
cf2f7e4f2cfa8efa573805bd278205ff8deaf1ef
5a86bdef7e08e631375a9bc1870ad7c504f1d42d
refs/heads/master
2020-03-27T18:45:06.448233
2018-08-31T20:50:24
2018-08-31T20:50:24
146,940,781
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import math noteNames = ['c', 'cis', 'd', 'ees', 'e', 'f','fis','g','aes','a','bes','b'] def stringForNote(note,octave): ret = noteNames[note%12] direction = (math.floor(note/12) + octave) if direction > 0: ret += '\''*direction elif direction < 0: ret += ','*(-1*direction) return ret stepDir...
UTF-8
Python
false
false
4,564
py
6
create.py
2
0.591586
0.524321
0
199
21.919598
96
ykshatroff/site_yksname
14,293,651,200,995
8e0758853afc60edba1451e1e6e3e399c19f7ae4
d0230c00360c0edbda54842497092c6b5dc6df19
/yksname/templatetags/__init__.py
5dc4b95a25723c46871e95316ca559bf6a6bf20f
[]
no_license
https://github.com/ykshatroff/site_yksname
3a98ae58081ca12db0cfdcef1baa4de33a6ae37d
f328ddef2643cdf1b2d20410ec6c29437bbcaa6e
refs/heads/master
2016-08-08T19:28:49.102584
2015-12-26T12:29:11
2015-12-26T12:29:11
48,335,817
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Date: 19.12.15 from __future__ import unicode_literals
UTF-8
Python
false
false
83
py
33
__init__.py
20
0.614458
0.53012
0
3
26
39
earl-grey-cucumber/Algorithm
12,867,722,049,610
49c0a3762a452f1230b9defc3cc28e2e57b32d2e
2a401f70b0b4beb1c96b12f84dbcb93e74357dd7
/166-Fraction-to-Recurring-Decimal/solution.py
4ec4b02e17d3ee2747becb122d818a55333e778a
[]
no_license
https://github.com/earl-grey-cucumber/Algorithm
1321aa94e74afdc84542944cd523b3dacfcdb43f
ae4611f181fe32e6b81a04d6661037f06c0e2008
refs/heads/master
2021-06-05T12:16:16.708485
2016-10-11T06:21:00
2016-10-11T06:21:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def fractionToDecimal(self, numerator, denominator): """ :type numerator: int :type denominator: int :rtype: str """ if numerator == 0 or denominator == 0: return "0" sign = (numerator > 0 and denominator > 0) or (numerator...
UTF-8
Python
false
false
1,086
py
171
solution.py
171
0.494475
0.47698
0
31
34.032258
90
DenisYavetsky/UP
6,425,271,089,284
a0d27841ef7076be02508efe3493cee758d1b038
d24b739e8b93331628bcbd1030e4be353ab2b9c1
/up_app/views.py
898f51413f8658e80439b00cc2c70cfb69b7962c
[]
no_license
https://github.com/DenisYavetsky/UP
083e5c3e5e56a22bc453cffa60b86aa44bdb0781
29eaaa942546bbd861bd6dd1c749bebc1e1ac987
refs/heads/master
2023-07-13T14:17:50.987005
2021-08-31T18:44:25
2021-08-31T18:44:25
401,103,412
0
0
null
false
2021-08-31T18:44:26
2021-08-29T17:36:32
2021-08-29T17:43:53
2021-08-31T18:44:26
2,514
0
0
0
JavaScript
false
false
from django.shortcuts import render from .models import * from bs4 import BeautifulSoup as bs import requests import urllib.request from django.http import HttpResponse from django.urls import reverse from django.core import serializers from .forms import OrderForm from django.shortcuts import redirect from django.shor...
UTF-8
Python
false
false
8,690
py
19
views.py
10
0.556426
0.546901
0
248
32.443548
117
Naxaes/OpenGLpython
13,924,284,012,596
eecf965634d32f5bebe346bea45f7a8484614e42
9632b023d486ace2be302d7956da5759d95e8a93
/source/shader.py
24c7cdf4cb4463f9285dc0e7138d02fa43ed57c5
[]
no_license
https://github.com/Naxaes/OpenGLpython
cad3e09a51e11c47d72ce9dde53d4fdd70adeeff
de01845f18619cfae8c64ac8a7da4cf1b8f99130
refs/heads/master
2022-03-06T07:21:31.016828
2022-02-10T11:39:14
2022-02-10T11:39:14
93,307,461
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from pyglet.gl import ( glUseProgram, glUniform4ui, glUniform4ui, glUniform4ui, glUniform4ui, glUniform1i, glUniform2i, glUniform3i, glUniform4i, glUniform1d, glUniform2d, glUniform3d, glUniform4d, glUniform1f, glUniform2f, glUniform3f, glUniform4f, glUniformMatrix4fv, GL_TRUE, ...
UTF-8
Python
false
false
4,762
py
57
shader.py
38
0.639647
0.633347
0
136
34.014706
131
Aasthaengg/IBMdataset
19,576,460,940,013
053ad5f5c6cfbde6cd479fb594ef61b9c5ffca95
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03265/s646381713.py
f5e5124423a8bf25647e934365d82cd5639d65ed
[]
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
x_1, y_1, x_2, y_2 = map(int, input().split()) vec_x = -(y_2 - y_1) vec_y = x_2 - x_1 x_3, y_3 = x_2 + vec_x, y_2 + vec_y x_4, y_4 = x_1 + vec_x, y_1 + vec_y print(x_3, y_3, x_4, y_4)
UTF-8
Python
false
false
187
py
202,060
s646381713.py
202,055
0.454545
0.347594
0
9
19.777778
46
lovewin99/pyspace
627,065,259,095
2ea50db20e40ff8b1004c20ce8ec3d4555c00aa7
74d3f172ce860777b35657f2f08677324a4701d6
/com/wangxy/finup/AgglomerativeDemo.py
2b87b42ec436a85d13f6e4829226f73c7d740602
[]
no_license
https://github.com/lovewin99/pyspace
b825567fffeb963424c374d4539247c6c2087fc0
ae4675b142fb5a206cc525c681361a9224e88940
refs/heads/master
2020-04-06T07:03:28.622896
2017-10-27T02:24:07
2017-10-27T02:24:07
47,744,396
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding=utf8 __author__ = 'wangxy' import numpy as np from sklearn.cluster import AgglomerativeClustering, KMeans from sklearn.metrics.pairwise import pairwise_distances_argmin yuqi = open("/Users/wangxy/Desktop/taobao_trans_repaid_feature.info") noyuqi = open("/Users/wangxy/Desktop/taobao_trans_over_dure_feature.inf...
UTF-8
Python
false
false
2,085
py
40
AgglomerativeDemo.py
38
0.596163
0.565468
0
52
39.076923
428
igorgoncalves/NutriData
8,873,402,477,038
d05920c8b884ec227cb0980bf7cc62e4bae8a493
6a25ea6835d8c3d9e0411449afc5a1af6fc2cba6
/server/webapp/commands.py
37111c568c04d3f0367e92c2f57129542b4c73a1
[]
no_license
https://github.com/igorgoncalves/NutriData
8887be76c84e92de2a21bab28cbd7aeb61eeba2f
a77e6645f2ae3cba8aabdea3bb41b4e26218abc4
refs/heads/master
2022-12-25T14:24:17.302174
2020-06-03T00:31:54
2020-06-03T00:31:54
161,583,550
1
1
null
false
2022-12-10T16:46:43
2018-12-13T04:23:58
2020-07-24T00:46:06
2022-12-10T16:46:42
89,806
1
0
23
Vue
false
false
import json import os from flask_script import Command, Option, commands from webapp import manager from webapp.modules.localidade.services import LocalidadeService from .modules.macroindicadores.services import IndicadorService from .modules.user.services import UserService class Initdb(Command): def run(self...
UTF-8
Python
false
false
1,199
py
67
commands.py
47
0.673895
0.673895
0
40
28.975
72
jenga/cerebellum
8,538,395,015,846
88fe1e39c34bb0ad1a3130e269256656519480e0
1a25ceb3ff12859bc47079da806eab9e3d1bec53
/models/links.py
a6813a65d4d5a744cc80609e3aedcb6dbd0fc921
[]
no_license
https://github.com/jenga/cerebellum
6758a4b06325588666110c6cafe6c4d3e3458fa4
387699ca648466a82044913609b2e572e42de737
refs/heads/master
2020-06-03T12:52:01.526910
2014-05-09T17:36:39
2014-05-09T17:36:39
9,897,184
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from rhesus.models.link import Link class InhSynapse(Link): def __init__(self, name, pre, post, g_tau=2.5, a=1.0, f_inc=0.0, d_inc=-0.59, f_init=1.00, d_init=1.0, f_tau=1.0, d_tau=77.67): super().__init__(name, pre, post, 'spike', 'inh') self.g = 0 self.f_init = f_init ...
UTF-8
Python
false
false
1,593
py
18
links.py
9
0.514752
0.498431
0
52
29.538462
84
luckcul/BUAA-Score-Notification
566,935,706,685
8143ea99324b1081cd7369b1e784d19dee5bfeb0
a9a90d37fc9e4c1487fe1f1f7cbd02a5cddfcd5a
/login.py
0d690baa8b311cfb7df72977005478c103af27ec
[]
no_license
https://github.com/luckcul/BUAA-Score-Notification
e2f8c8164c329967c79bbc6b3cbb08f3dbb7950b
2d023f065cb67d023f795ddeb87194a48c767dba
refs/heads/master
2021-01-11T21:49:08.173823
2017-02-27T07:03:50
2017-02-27T07:03:50
78,857,525
2
1
null
false
2017-02-22T01:52:21
2017-01-13T14:44:03
2017-02-14T07:56:42
2017-02-22T01:52:21
5
2
1
0
Python
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2017-01-12 19:33:33 # @Author : luckcul (tyfdream@gmail.com) # @Version : 2.7.12 import os import urllib import urllib2 import cookielib import re from ocr import ocr import socket headers = { 'Host':"gsmis.graduate.buaa.edu.cn", 'User-Agent':"Mozilla/5.0 (...
UTF-8
Python
false
false
2,480
py
7
login.py
5
0.697177
0.66371
0
93
25.677419
109
zensen6/album_practice
14,800,457,340,342
ae8180b0bd8dbe1c5ef416b2f53395dddae5672b
86c1d35377a12abb8610d8f8742035b3c6478158
/main/migrations/0004_auto_20200728_1656.py
512333389c79e1ff3a720d068e2f384c167fc993
[]
no_license
https://github.com/zensen6/album_practice
cc21f05ce241a79edcd7816e6113ddcc531f63c8
bcb37642789dda38835bd8029ad2df3e97cb9498
refs/heads/master
2023-03-26T18:03:52.396768
2021-03-15T11:55:46
2021-03-15T11:55:46
347,950,171
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.8 on 2020-07-28 11:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('main', '0003_auto_20200728_1651'), ] operations = [ migrations.RemoveField( model...
UTF-8
Python
false
false
595
py
14
0004_auto_20200728_1656.py
11
0.566387
0.514286
0
23
23.869565
109
ryangniadek/.dotfiles
6,330,781,820,862
fc13befdc3c16edfe58682b09cd455702b45dcc9
c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105
/vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/stdlib/2and3/distutils/msvccompiler.pyi
304b68356c56237cd4039ef59a19a290cdcc1a0c
[ "MIT", "Apache-2.0" ]
permissive
https://github.com/ryangniadek/.dotfiles
ddf52cece49c33664b56f01b17d476cf0f1fafb1
be272baf6fb7d7cd4f4db1f6812b710196511ffe
refs/heads/master
2021-01-14T07:43:12.516127
2020-03-22T20:27:22
2020-03-22T20:27:22
242,632,623
0
0
MIT
false
2020-09-12T17:28:01
2020-02-24T02:50:06
2020-03-22T20:39:47
2020-09-12T17:28:00
991,651
0
0
4
Python
false
false
# Stubs for distutils.msvccompiler from distutils.ccompiler import CCompiler class MSVCCompiler(CCompiler): ...
UTF-8
Python
false
false
121
pyi
379
msvccompiler.pyi
278
0.760331
0.760331
0
6
18.166667
41
Kai-Eiji/Intern-Info-App
18,975,165,520,277
73371cac8750be161c812265ce931b17f0e97fb5
6f0b3140dc546afcf90b10c2c239c1bf09e59244
/django_react_proj/students/migrations/0008_auto_20200525_1039.py
fc0de9dc9d2a76d183c406d73071b7df6e5c4ca2
[]
no_license
https://github.com/Kai-Eiji/Intern-Info-App
89713a44ac24df041b22d9afb9d56b669ca66bae
7f4650151ae1ca1c66a084f2fd45ec590a13caf5
refs/heads/master
2023-05-15T05:43:06.575548
2021-06-07T02:23:31
2021-06-07T02:23:31
372,345,291
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.6 on 2020-05-25 17:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('students', '0007_auto_20200525_0949'), ] operations = [ migrations.AlterField( model_name='student', name='prev_exp_...
UTF-8
Python
false
false
394
py
21
0008_auto_20200525_1039.py
21
0.588832
0.505076
0
18
20.888889
50
js4683/CS172
14,628,658,610,473
50af56058fcd7009b25ee64b093b7dbca1f65ea3
b52ec6344dd3156e882fdf5a751656cc768a015e
/Week 5/Lab5-1.py
7a8f8778f389e51872649a502d1fe436f19f0d6c
[]
no_license
https://github.com/js4683/CS172
0989169aec04ff9ebb5734b6067c7e63e6a13af2
dbd6f933816725e5492264a6d874e3bb1306e8bb
refs/heads/master
2022-02-28T16:13:45.640423
2019-11-05T15:17:41
2019-11-05T15:17:41
219,775,054
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame import random from Drawable import Rectangle, Snowflake pygame.init() surface = pygame.display.set_mode((600,500)) pygame.display.set_caption("Lab 5") drawables = [] green = Rectangle(0, 200 ,600 ,300 , (0,128,0)) sky = Rectangle(0, 0, 600, 300, (0,0,205)) snow = Snowflake() drawables.append(green) drawa...
UTF-8
Python
false
false
1,055
py
29
Lab5-1.py
28
0.62654
0.570616
0
33
30.969697
81
dimkoug/taskproject2
19,241,453,505,140
87ad890f00a73847b4144c0107bac6a9e8bcc84e
133c523977c785ce35aef5f45e2ac52795114bca
/taskproject2/projects/api/viewsets.py
27747ec37026c0136c8cdcd54b90de4a49454701
[]
no_license
https://github.com/dimkoug/taskproject2
68f8eb2a62a345f013d9957bd26a59ed8cee7d83
5275e86f5e37adb6e8b0bf8a4766ee9ed715122d
refs/heads/master
2023-03-17T08:51:34.077300
2023-03-11T19:08:39
2023-03-12T08:27:51
41,932,817
2
0
null
false
2022-11-22T07:54:10
2015-09-04T18:54:36
2021-06-09T07:09:38
2022-11-22T07:54:07
4,658
1
0
3
JavaScript
false
false
from rest_framework import authentication, permissions, viewsets, filters from django_filters import rest_framework as django_filters from ..models import Category, Project, Task from .serializers import CategorySerializer, ProjectSerializer, TaskSerializer class CategoryViewSet(viewsets.ModelViewSet): """API e...
UTF-8
Python
false
false
1,062
py
79
viewsets.py
34
0.725047
0.725047
0
33
31.181818
78
YogeshMorpho/Reuters-newswire-class-dataset-sample
18,554,258,735,572
1ccebf68c1e2a97dac7a93f5f2520ef5ebd01105
c7effa1c7dd34d785aad367bd6d747c549351f41
/Reuters newswire classification sample.py
a1a5af9f705796bbe5e1a39ccf2fb4830d2f6a93
[]
no_license
https://github.com/YogeshMorpho/Reuters-newswire-class-dataset-sample
21089a458fef06e027e393e3cf670688adfc0d4f
77210e34eb7eb9cbd950cdcf35e76b7992296d6f
refs/heads/master
2020-03-27T20:41:28.560162
2018-09-09T10:47:53
2018-09-09T10:47:53
147,086,833
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import keras #import keras's Reuters Neswire Classification Dataset from keras.datasets import reuters from keras.models import Sequential from keras.layers import Dense, Dropout, Activation from keras.preprocessing.text import Tokenizer ''' Loading the datas set and dividing it into train and test.A...
UTF-8
Python
false
false
2,767
py
1
Reuters newswire classification sample.py
1
0.735454
0.719913
0
75
35.906667
122
M1koto/sc-backend
352,187,344,078
6eb5e995021b6591cafa0dd7ad01d96d1d9f8fed
40264435d0a9cd3474cef1b5df8977e845b749d0
/models/metadata.py
95fc99b63fcc78debe5c55c2f59a79017516cae4
[ "MIT" ]
permissive
https://github.com/M1koto/sc-backend
cb38e7aec850874ef35cdce306212a98e4fb1adf
8faeaec0d7bc4c0308e872b9972bccfabeae0402
refs/heads/master
2023-07-26T07:31:07.507834
2021-05-30T06:11:39
2021-06-01T02:39:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import mongoengine as mongo import mongoengine_goodjson as gj class Tag(gj.Document): id = mongo.IntField(required=True, primary_key=True) name = mongo.StringField(required=True) meta = {'auto_create_index': False} class NumUsersTag(gj.Document): id = mongo.IntField(required=True, primary_key=Tr...
UTF-8
Python
false
false
935
py
36
metadata.py
28
0.696257
0.696257
0
32
28.21875
59
kaushikriya/Python-Machine-Learning
16,887,811,407,980
624c19e4953fb9e4664712026839b7e228dc36c0
3430896f91092b3f8ea800a86a226ab9085afd72
/SVMHeart.py
562ab6fe118a78178d08ced0995eef3c5c6fe449
[]
no_license
https://github.com/kaushikriya/Python-Machine-Learning
65c3d7fe7a776bcfbab8828e54e1c297d4823dcc
fe27af73aad8ef345b5db74cf3dec9fa77756139
refs/heads/master
2020-04-27T09:30:54.748195
2019-03-06T21:09:41
2019-03-06T21:09:41
174,217,737
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd #Loading data data=pd.read_csv('D:\heart.csv') #Ceating feature and target data set X=data[['age','sex','cp','trestbps','chol','thalach']].values Y=data[['target']].values print(data.dtypes) #Creating training and testing data sets from sklearn.model_selection import train_test_split XTrain,XTes...
UTF-8
Python
false
false
1,135
py
6
SVMHeart.py
5
0.772687
0.765639
0
33
33.424242
105
rafaelperazzo/programacao-web
9,045,201,163,975
63ee1b3ca2634845ec897172ef9364960ecc0c7a
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/111/usersdata/165/63648/submittedfiles/av2_p3_m2.py
0fa499fecc667148e4d9a53f16b17c549fe6dce6
[]
no_license
https://github.com/rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import numpy as np def descobrirm(a): s1=0 s2=0 s3=0 for i in range(0,a.shape[0],1): s1=s1+a[i,0] s2=s2+a[i,1] s3=s3+a[i,2] if s1==s2: return(s1) else: return(s3) def somalinhaerrada(a,m): b=[] for i in range(0...
UTF-8
Python
false
false
718
py
17,467
av2_p3_m2.py
16,712
0.447075
0.392758
0
34
19.588235
39
h3lio5/MetaDropout-pytorch
6,777,458,412,010
548e4dc63fb8297d892e8822b5b879cebe930053
2525db70007efd777226132745d102cde330e2c3
/utils.py
21966674bc8e22dd6d86ca85db6685be06972f30
[]
no_license
https://github.com/h3lio5/MetaDropout-pytorch
1fa4d65707bffe3b19e9757d6d423026cea4f25a
a0a6532b601dfc296bdbaebfc5d66881d93f6582
refs/heads/main
2023-03-23T18:44:32.339438
2021-03-12T10:46:08
2021-03-12T10:46:08
330,917,409
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from model import MetaDropout import torch from torchmeta.modules import MetaModule from main import get_args from collections import OrderedDict def compute_accuracy(logits, targets): """Compute the accuracy""" with torch.no_grad(): _, predictions = torch.max(logits, dim=1) accuracy = torch.m...
UTF-8
Python
false
false
2,002
py
7
utils.py
5
0.607393
0.604895
0
57
34.122807
79
lianilychee/SoftwareDesign
14,302,241,140,111
5c2e764d08771b0b6515e8c243ccf6295b3865e5
cea5a7b36f871614122958537c1f3c2b35f858a3
/hw2/fermat.py
84937c60213f6490752f1dd11aa6e2ae09c2e91f
[ "MIT" ]
permissive
https://github.com/lianilychee/SoftwareDesign
9b57a7e5ff299ad647f9222f82452708070898b9
24e43fc5b7dd36581f011350ae9bcbe0b630373d
refs/heads/master
2021-01-17T08:02:25.836892
2014-11-11T19:10:52
2014-11-11T19:10:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Liani Lye, HW 02 SoftDes Fall '14 Due 09.16.14 ''' a = int(raw_input("enter value for a: ")); b = int(raw_input("enter value for b: ")); c = int(raw_input("enter value for c: ")); n = int(raw_input("enter value for n: ")); def check_fermat(): if (a**n + b**n) == c**n: print "Fermat's theorem holds." else: p...
UTF-8
Python
false
false
361
py
30
fermat.py
15
0.603878
0.576177
0
18
19.111111
42
cosmicBboy/ml-research
3,745,211,488,681
ee18f724cda696fa076c89bfa39e4d207cb3dad3
bae5f696b76af428fb5555c147c4f1bcff1bb62e
/metalearn/metalearn/data_environments/feature_maps/kaggle_homesite_quote_conversion.py
40fb334f56ddf6ec1b364a96b45e82584283c5cc
[ "MIT" ]
permissive
https://github.com/cosmicBboy/ml-research
1e309f881f9810e7a82a262d625db5d684752705
04fd31f68e7a44152caf6eaaf66ab59f136dd8f5
refs/heads/master
2021-01-24T09:58:25.662826
2020-08-10T22:08:23
2020-08-10T22:08:23
123,030,133
8
4
MIT
false
2019-06-29T20:13:37
2018-02-26T21:03:02
2019-06-24T00:55:51
2019-06-29T20:13:37
52,791
6
0
1
Jupyter Notebook
false
false
"""Feature map for the kaggle competition 'homesite quote conversion.""" from collections import OrderedDict from ...data_types import FeatureType def get_feature_map(): return OrderedDict([ ("Original_Quote_Date", FeatureType.DATE), ("Field6", FeatureType.CATEGORICAL), ("Field7", Featur...
UTF-8
Python
false
false
16,213
py
124
kaggle_homesite_quote_conversion.py
78
0.685068
0.652686
0
307
51.811075
72
JennifferLockwood/sqlalchemy-challenge
12,979,391,191,048
71cdfdf8440ce3647b6304ee134bab1316e2c8d0
4d07711006706655a82a8fdb3809e606751260ad
/climate-app.py
13517df26402d6eed540329df891ece6df58f20e
[]
no_license
https://github.com/JennifferLockwood/sqlalchemy-challenge
79077b9ab4fc3c458daf926ca59585c9aba9cb34
b227048bbbb316359a63250ab8f115960012f2fb
refs/heads/master
2020-09-12T01:06:22.826627
2019-11-23T14:37:33
2019-11-23T14:37:33
222,250,328
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import datetime as dt import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify ################################################# # Database Setup ################################...
UTF-8
Python
false
false
4,958
py
2
climate-app.py
1
0.614361
0.605284
0
167
28.688623
85
EnderDas/The-Mage
10,256,381,938,241
1decb42879a68f723d9200b33d45dccf6a9d5310
f2304cc80c24d1580fc80fd06947050f2d36308d
/The-Mage/API/__init__.py
931190dac68d6fa1f42a246efb345ae2158db046
[ "Apache-2.0" ]
permissive
https://github.com/EnderDas/The-Mage
47d3f6af3198bdda057e7581dd0d303b0f5f6463
58699b79e618212ed99d8b3c3c12f86a446d1cc8
refs/heads/master
2021-09-15T03:20:58.619645
2018-05-25T03:45:34
2018-05-25T03:45:34
111,168,431
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#__init__.py from .armor import * from .inventory import * from .item import * from .player import * from .skill import * from .weapon import *
UTF-8
Python
false
false
144
py
11
__init__.py
10
0.701389
0.701389
0
7
19.571429
24
lucasolmostito/empresa-zapatos-bernini
3,496,103,398,975
dbd97f6f0d69e46e5a553f28ecbdd987359c6ffd
2b2dc71f73bb553e83eb51907565186c5ecf6e8d
/zapatos_bernini/applications/orders/migrations/0001_initial.py
350abe435a60ee80b3bcca38733dccd355ea5482
[]
no_license
https://github.com/lucasolmostito/empresa-zapatos-bernini
47be36d7aaad73bc3a9aa5cd97bdc4ac54bb353d
5624c51b843f960a2fd24400eb6da137900fa338
refs/heads/master
2023-06-19T05:48:21.439339
2021-07-07T20:01:21
2021-07-07T20:01:21
383,903,850
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2.5 on 2021-07-07 19:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('items', '0001_initial'), ] operations = [ migrations.CreateModel( name='Ord...
UTF-8
Python
false
false
2,077
py
24
0001_initial.py
21
0.56235
0.551276
0
49
41.387755
117
justalemon/LimeBot
3,934,190,068,706
e1123a345bf2e9f048894598fdb7687598533cbc
bbf10736c2d5339ee137c391e5077222aceca594
/superlime/bot.py
627d6dbdd9c11f5480958436e27763079a408991
[ "MIT" ]
permissive
https://github.com/justalemon/LimeBot
62da1432d15164949d4f1b2c894cce356da87e2c
89153007be0a94038b430a1f4605d66731922e29
HEAD
2019-03-17T21:22:47.177860
2018-05-05T16:25:20
2018-05-05T16:25:20
123,289,986
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import importlib import inspect import logging from .commands import Native from discord.ext import commands logger = logging.getLogger(__name__) class SuperLime(commands.AutoShardedBot): def __init__(self, *args, **kwargs): """SuperLime's Bot class.""" logger.debug("Main class initialization") ...
UTF-8
Python
false
false
1,074
py
8
bot.py
5
0.621043
0.61825
0
34
30.588235
77
evbeda/suppliers_management
1,735,166,803,207
3a83ed611aaf0d23df4f66ac86a902ac0b1e7918
58f63776b6e150fdd6dd2404f3f5d73b19d3bcb0
/supplier_app/filters.py
d650565646224c6b50e165e784063fd22de5d65e
[]
no_license
https://github.com/evbeda/suppliers_management
9360a2ce70f67aa4994bcc26d9da91252a03cecb
ce3966ba13a292f62904579b7bf5947ddd540d14
refs/heads/master
2022-12-14T05:08:22.408725
2020-07-24T13:41:32
2020-07-24T13:50:06
206,798,693
4
1
null
false
2022-12-08T06:07:54
2019-09-06T13:22:30
2022-10-29T07:14:56
2022-12-08T06:07:52
2,124
2
0
17
Python
false
false
from django.forms import CheckboxSelectMultiple, Select from django_filters import ( CharFilter, DateFromToRangeFilter, FilterSet, MultipleChoiceFilter ) from django.utils.translation import ugettext_lazy as _ from supplier_app.constants.taxpayer_status import get_taxpayer_status_choices from supplier_...
UTF-8
Python
false
false
1,207
py
149
filters.py
105
0.64623
0.64623
0
42
27.738095
78
csu7617/StudyPython
6,811,818,146,070
c1bc3240393a5443a266e79071a2969697e2021b
616463bd0161f4e4db882ab68e40b6ef61816225
/MLProject/data/Instructions/ML05_RF_2花费时间说明.py
fc6e4b9b5833ac4e49222e122470cddcd46fbb83
[]
no_license
https://github.com/csu7617/StudyPython
9dee358865a10ba7814fcc34846bcad6af3e5319
0a70b86080e8344d90343186fb39f71e6c643d5c
refs/heads/master
2020-03-19T07:30:13.825925
2018-06-26T05:45:49
2018-06-26T05:45:49
136,024,516
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on 2018年5月22日 @author: hw ''' ''' 使用随机森林预测森林植被 ''' from sklearn.grid_search import GridSearchCV import datetime from sklearn.model_selection import cross_val_score from sklearn.ensemble import RandomForestClassifier import numpy as np ''' ------------随机森林预测准确率---------- 测试集准确率: 0.84 训练集准确率: 0.84(+/- 0.0...
UTF-8
Python
false
false
6,884
py
24
ML05_RF_2花费时间说明.py
23
0.636788
0.596718
0
187
29.962567
116
nacpacheco/python-data-structures
5,145,370,833,679
af04c21899af97c1b0999e98e75ab7ad93a90447
f6ce89cc14e4e18824187cc6479328dc4d75576d
/algorithms/factorial_recursion.py
44ec2771dcc3c6ded672d6d70eb57d313d9b48fb
[]
no_license
https://github.com/nacpacheco/python-data-structures
242d5cb7921bd3fbf56c864ebab4698f3d2fa632
ffcc3ac3668b3a0825c80fe1d501d9466f27b5ca
refs/heads/main
2023-01-11T18:15:25.550036
2020-11-15T02:01:02
2020-11-15T02:01:02
312,938,548
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# O(N) def factorial_recursive(number): if number == 1: return 1 else: return number * factorial_recursive(number-1) # O(N) def factorial_iteractive(number): factorial = 1 for num in range(number,1,-1): factorial = num * factorial return factorial print(factorial_recursive...
UTF-8
Python
false
false
355
py
20
factorial_recursion.py
19
0.653521
0.630986
0
17
19.941176
53
cifpfbmoll/ollivanders-in-a-docker-pau13-loop
17,995,912,984,947
b70264ba8e33779f98baef5297556ca8afdf5094
77ac696c71aea8942f280f4b181ecfcece2ce24a
/test/test_sql/test_repository/test_get_by_quality.py
0e28fa695edd0546f50918e1ea245e0cb36dca63
[ "MIT" ]
permissive
https://github.com/cifpfbmoll/ollivanders-in-a-docker-pau13-loop
78c6d6368b72a467da536db194f0da25c67b87b1
0f9f2589b567c57bd56a8a4161de3043d5639a8b
refs/heads/main
2023-05-03T10:36:26.745077
2021-05-07T16:12:13
2021-05-07T16:12:13
362,498,409
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import pytest from service.service_sql.service import Service from repository.repository_sql.models.items import Items @pytest.mark.db_test @pytest.mark.db_filter_by_sell_in def test_get_by_quality_db(session): """Test if through session we can get an item by its quality Args: session (...
UTF-8
Python
false
false
897
py
128
test_get_by_quality.py
54
0.716201
0.710615
0
29
29.862069
120
pacellyjcax/ProgrammingChallenge
7,335,804,162,402
54868840161f94a7e9fedc214678b925e2f37691
cca41f3b3c88f0c154526b0df483bdea9e447fc5
/URI/1241 - Encaixa ou Não II.py
5c70f846e16a5236599d0ccfe73dcbee3705f699
[]
no_license
https://github.com/pacellyjcax/ProgrammingChallenge
499a1e4d0a67dee2bd6a2ae5ad7d4f4aee91bcd5
5c62fd62a44d61852fe5a13d0e2cc025a17108db
refs/heads/master
2021-01-10T06:04:05.508209
2015-11-06T04:18:30
2015-11-06T04:18:30
45,658,779
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def encaixa(l): dif = len(l[0])-len(l[1]) if dif<0: return False if l[0][-len(l[1]):] == l[1]: return True return False n = int(raw_input()) res = [] for i in range(n): e = raw_input().split() if encaixa(e): res.append("encaixa") else: res.append("nao encai...
UTF-8
Python
false
false
352
py
227
1241 - Encaixa ou Não II.py
227
0.505682
0.488636
0
20
16.6
33
tbindi/hackerrank
3,650,722,250,601
e6a7cbe018d2c76977dd011f26c5bc51dac8baf3
319203fff0529393487a774e93254430f61f649c
/find_hackerrank.py
94b374ec684bf1a64f92b0d9704f3f72fbfa2f9a
[]
no_license
https://github.com/tbindi/hackerrank
96b431cfba966e669bf9d96f0d20027175ae3f9b
2a9184bc9603cee9dfe57360f7791a2d438bb055
refs/heads/master
2016-09-01T18:22:22.300723
2015-01-14T11:06:03
2015-01-14T11:07:39
29,057,104
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' At HackerRank, we always want to find out how popular we are getting every day and have scraped conversations from popular sites. Each conversation fits in 1 line and there are N such conversations. Each conversation has at most 1 word that says hackerrank (all in lowercase). We would like you to help us figure out...
UTF-8
Python
false
false
1,030
py
34
find_hackerrank.py
31
0.629126
0.606796
0
41
24.146341
340
IDisater/DjangoWeb
9,062,381,019,062
7722f48962b2b868b53bae61bae6f4b1c5e22488
8d9128bbb71b0ac3b09fbe375b2f768facc81936
/testapp/migrations/0014_auto_20191206_1427.py
2765c5865586ce2f76553db86dbfa06dc5affb2b
[]
no_license
https://github.com/IDisater/DjangoWeb
6fbdca948fb75e0fe22c9abf7ac0a34fb991fe29
4e41fceed528f10e549295ca745899c6c6fbcfb9
refs/heads/master
2022-12-04T11:52:11.097313
2020-03-26T02:09:06
2020-03-26T02:09:06
249,904,054
0
0
null
false
2022-11-22T04:59:25
2020-03-25T06:31:16
2020-03-26T02:09:09
2022-11-22T04:59:22
26,058
0
0
4
Python
false
false
# Generated by Django 2.2.6 on 2019-12-06 14:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('testapp', '0013_remove_information_cp_about'), ] operations = [ migrations.RenameField( model_name='information', old_name='...
UTF-8
Python
false
false
380
py
68
0014_auto_20191206_1427.py
48
0.578947
0.528947
0
18
20.111111
56
kushkansara02/aquadrone2020
884,763,296,783
14a0c4fbc545f527392413d1e85e74ecdb00c4fb
726333481b78ab22b67cb8ba0ddb12efd147aeab
/thruster_control/scripts/v28_thruster_connection_test.py
1c7e5bd86c470ceff6d7c64123e08e96ef1cdad1
[]
no_license
https://github.com/kushkansara02/aquadrone2020
41632f8f00f9141af4a179a1882ba5c4f41837f4
9df03c9bfdcbbd86f4e8273a00fb108b780fcc60
refs/heads/dev
2023-03-11T20:36:12.827933
2021-02-28T02:38:09
2021-02-28T02:38:09
342,344,117
0
0
null
true
2021-02-28T01:48:27
2021-02-25T18:41:18
2021-02-27T03:42:55
2021-02-28T01:48:26
994
0
0
0
Python
false
false
#!/usr/bin/env python3 import rospy import rospkg import json from thrust_computer.thruster_configurations import V28Configuration from uuv_gazebo_ros_plugins_msgs.msg import FloatStamped if __name__ == "__main__": # rospy.init_node('sim_thruster_controller') config = V28Configuration() pwm_frequency ...
UTF-8
Python
false
false
1,456
py
100
v28_thruster_connection_test.py
70
0.572115
0.54739
0
56
25
96
love3forever/django_hello
7,516,192,797,402
411f132b2d5e93982788275b196fe1a0e840e100
f49a0d83c73310a9d199970638c6fdc4cf89b2c0
/function_test.py
f646de7d58c8898a11886bdfddd5ad5da9245922
[]
no_license
https://github.com/love3forever/django_hello
bf3764fb4ce67ad104b78d2d3b81f6c9d9209f94
5e125b21f3864c54745952a940416f814031656a
refs/heads/master
2021-08-15T00:04:01.887093
2017-11-17T02:20:41
2017-11-17T02:20:41
111,040,914
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2017-11-16 13:45:41 # @Author : Wangmengcn (eclipse_sv@163.com) # @Link : https://eclipsesv.com # @Version : $Id$ from selenium import webdriver import unittest class FirstPageTest(unittest.TestCase): """测试初始页面""" def setUp(self): self.b...
UTF-8
Python
false
false
597
py
2
function_test.py
2
0.617094
0.579487
0
27
20.666667
51
JonasEc/historyproject2017
17,652,315,621,673
4eaefe97706bf9e5be0e3ff3cc6b36099e2bd7db
6d8e7923c2a2c18a98a971ada87d63e32bdddf49
/analyse/MergeSurreyTypes.py
c5600579d4396a277414f29ce7687e0989385fab
[]
no_license
https://github.com/JonasEc/historyproject2017
a41242641d5631b41ea8b90ff3f861d50bfe8f0f
6254f6d7066442ae042c4c461c16c2cc550d6ee8
refs/heads/master
2021-01-21T20:29:22.555395
2017-08-30T01:36:00
2017-08-30T01:36:00
92,239,771
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################# # Jonas Mueller Gastell & Melanie Wallskog # History Project ############################################# # Create Battalion Types SC # 2017 07 27 ######################### # "administrative stuff" import pandas as pd f...
UTF-8
Python
false
false
1,279
py
52
MergeSurreyTypes.py
47
0.644253
0.630962
0
48
25.625
113
League-Advisor/league-advisor
2,345,052,153,786
9b6a3e60f0cdf4575d898aa15a77c87235d29e27
02f9eb2d16a6c8f58f0f242d1fbf66cf38f3c95f
/tests/test_sim_league_advisor.py
af72552a5ac19df70b7db03fc57af1983469af5a
[ "MIT" ]
permissive
https://github.com/League-Advisor/league-advisor
39de50f3e31381672f9d7ad35bff3c99fb39c9f2
b77895833075ff13b075875eff421ec9fef9770e
refs/heads/main
2023-09-05T02:44:12.866773
2021-11-11T09:32:35
2021-11-11T09:32:35
423,940,194
0
0
MIT
false
2021-11-12T11:10:08
2021-11-02T17:35:42
2021-11-11T09:32:39
2021-11-11T09:32:36
11,528
0
0
4
Python
false
false
"""This module tests LeagueAdvisor class methods""" from league_advisor.league_advisor import LeagueAdvisor from tests.flo import diff def test_input_handler_help_user_color(): league_advisor = LeagueAdvisor() diffs = diff(league_advisor.run_program, path="tests/simulations/help_color.sim.txt") assert not diffs...
UTF-8
Python
false
false
531
py
52
test_sim_league_advisor.py
27
0.758945
0.758945
0
14
36.857143
98
LSmyrnaios/DocUrlsRetriever
18,846,316,512,797
75355149cbcb67696e18111c23113586bc26ae35
b0fd5224a716fd95a1742640350673ab45d5d2fd
/logsAnalyzer.py
07011b65354e90e76af4fd0b1eb7c2fe07a6c231
[ "Apache-2.0" ]
permissive
https://github.com/LSmyrnaios/DocUrlsRetriever
e04d3c730e9616b9c280bb981dfc1a6af57fb766
765e66cf2def97bfa1989024549ea5e23716fbb9
refs/heads/master
2021-07-10T13:04:52.676204
2021-06-27T18:14:29
2021-06-27T18:14:29
121,557,817
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" This program analyzes the logfiles and extracts useful info :-) It does not work since the main program moved to multi-thread mode. TODO - Update this program to handle the multithread-logs.. Some thoughts: Loop through the logs and detect the thread that each log is referring to and write it to a differen...
UTF-8
Python
false
false
5,453
py
48
logsAnalyzer.py
31
0.633963
0.629562
0
140
37.95
165
DISBi/django-disbi
15,702,400,447,092
469c6d8493a28af5cb9891b650261dd3b539bd55
897b62f973175c7108790e7df023ea4d391bffce
/disbi/_import_export/exceptions.py
e129cf0118a2dbed167724d59ac0f2f16a5d3e6d
[ "BSD-2-Clause", "MIT" ]
permissive
https://github.com/DISBi/django-disbi
72e652a582ec0290d9a34b6f26c5260c61ebfe91
b63d9cb87daa3396d7bbca20268e89bf91cb0395
refs/heads/master
2021-01-16T23:04:42.315810
2019-07-17T07:02:29
2019-07-17T07:02:29
68,965,297
3
0
MIT
false
2018-11-13T20:49:01
2016-09-22T21:54:15
2018-08-28T19:30:39
2018-11-13T20:49:00
1,687
3
0
0
Python
false
null
from __future__ import unicode_literals class ImportExportError(Exception): """A generic exception for all others to extend.""" pass class FieldError(ImportExportError): """Raised when a field encounters an error.""" pass
UTF-8
Python
false
false
242
py
85
exceptions.py
41
0.710744
0.710744
0
11
21
55
luoxuwei/Compiler
2,765,958,985,279
515ad1fb16f1881993ca07606b9e51cdc9e8c8df
7588f030cb6f5c2692c14ec3caedf9f11a312cb1
/pythonvm/test_case/30_test_class_method.py
b8d495e7fce033d69404419a3ff16851991a1267
[]
no_license
https://github.com/luoxuwei/Compiler
cceee6af426ba9d9b2f13d22fcf6e06a692953ba
d11da97ab9ef2f1a61d0244d0080c6b3f90fd475
refs/heads/master
2022-12-12T12:20:27.988873
2022-11-26T16:29:00
2022-11-26T16:29:00
252,653,543
4
2
null
null
null
null
null
null
null
null
null
null
null
null
null
class A: def say(self): print(self) print("hello") a = A() a.say()
UTF-8
Python
false
false
88
py
271
30_test_class_method.py
217
0.465909
0.465909
0
7
11.571429
22
ivanmtoroc/xyz-bank
7,464,653,203,407
92d80d7df2118321697d9a77632693fa9169e92a
62071acf24445e59274721c1b4cf75a50c0d2a55
/apps/users/views.py
35c754b499d19e6e899b324402b24e14eb385b90
[ "MIT" ]
permissive
https://github.com/ivanmtoroc/xyz-bank
4773e6aa6e5d6e9f65ee4205352cdb22a661d8b0
7d1a383ee745a01f19e63e3254af389acb1628d9
refs/heads/master
2018-12-07T17:53:02.327324
2018-11-07T01:22:14
2018-11-07T01:22:14
148,047,855
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from .forms import LoginForm def login_view(request): if request.method == 'POST': username = request.POST['username'] password = requ...
UTF-8
Python
false
false
705
py
20
views.py
9
0.689362
0.689362
0
21
32.571429
78
RoboLoCo-5338/website
6,880,537,630,958
7815f76dc698d4960be772bc6cfa25727c34f688
039dc473a25d22ae982867b53b39987541ff709a
/mysite/settings.py
f6934700c2075774ff223c7e332346e0a1e3b499
[ "Apache-2.0" ]
permissive
https://github.com/RoboLoCo-5338/website
3d970c16f736884a71c86a9cb5c41e7a44734d46
331ce231e40fb9296f3a1602c59c12b43f86b938
refs/heads/master
2023-02-18T05:37:30.549891
2022-08-05T20:29:01
2022-08-05T20:29:01
143,949,138
0
1
Apache-2.0
false
2023-02-15T20:53:48
2018-08-08T02:13:55
2021-12-12T06:34:51
2023-02-15T20:53:43
4,852
0
2
18
Python
false
false
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os impor...
UTF-8
Python
false
false
6,622
py
68
settings.py
47
0.690124
0.682271
0
214
29.943925
91
ketaki-thatte/algorithms_n_data_Structure
10,299,331,602,932
946dae3904fa7493afc98a2b5e40f26baacb1e32
144895f1cd2ca059a6dab03d051f36ae96458f06
/Searching_n_Sorting/binary_search.py
a35ed8fcd7eaa783d830e3094f032ceda0f3da0c
[]
no_license
https://github.com/ketaki-thatte/algorithms_n_data_Structure
187568ce93933373bdb2983b0c201ca53aa3b19e
5bb432eb8729ac983422391f36ecc4ebced1515a
refs/heads/master
2020-03-26T02:34:51.490675
2018-12-11T15:48:53
2018-12-11T15:48:53
144,416,437
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def binarySearch(arr,num,start,end): mid = (start + end) // 2 if start <= end: if arr[mid] > num: return binarySearch(arr,num,start,mid-1) elif arr[mid] < num: return binarySearch(arr,num,mid+1,end) elif arr[mid] == num: return mid else: return -1 if __name__ == '__main__': arr = [1,3,4,6,8,19,...
UTF-8
Python
false
false
484
py
12
binary_search.py
12
0.623967
0.582645
0
20
23.25
54
Imran2923/FYP-IT-audit-project
18,829,136,651,469
54ae99626739603ff7ceb2811798f81e1527489e
8b9700c75aef28a659e6089ce0c7142236051dd1
/Windows_GUI.py
05a820b90090bb7aa00ebfb48f90cf048b2eef8b
[]
no_license
https://github.com/Imran2923/FYP-IT-audit-project
a472c0cf5ee2de7b6b5d139645d421dcb358da10
8afed610a513943a70bf2125eaa7f22abf20913b
refs/heads/main
2023-06-28T17:44:55.074855
2021-07-30T07:30:08
2021-07-30T07:30:08
386,152,471
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import tkinter as tk from tkinter import ttk from tkinter.ttk import * import pyfiglet import fileinput import time from parse import * import winrm #module for patch scan import os import subprocess as sp #module for port scan import sys import socket from datetime import datetime import shutil f...
UTF-8
Python
false
false
178,932
py
3
Windows_GUI.py
2
0.520321
0.506349
0.000011
3,693
46.451665
283
mwz73trz/information_and_notes
16,243,566,332,716
66277f82f1bf47b0d90840ad0648507d243ea5e5
c52c526fb5a05fffea5d4a9c7ede97694057c1e8
/backend/backend_app/serializers.py
479fa6faaa94897a0b9cac7ee371650b9a1f8740
[]
no_license
https://github.com/mwz73trz/information_and_notes
7e00d0f03161849d9e25425e4fb79cf1f8ce4b42
c15b4d2ac7910a3320d3ee61f3a6e668e77b8906
refs/heads/main
2023-08-04T07:10:00.390914
2021-09-16T17:27:29
2021-09-16T17:27:29
406,961,634
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework.serializers import ModelSerializer, StringRelatedField from backend_app.models import Subject, Title class SubjectSerializer(ModelSerializer): class Meta: model = Subject fields = ['id', 'name', 'user', 'titles'] depth = 1 user = StringRelatedField() class TitleSer...
UTF-8
Python
false
false
410
py
15
serializers.py
13
0.673171
0.670732
0
15
26.4
74
mwisdom04/one_second_centre_port_hold
15,796,889,733,087
3d32663899f9de8d59d774a265aa994123a3ea41
3356823028e4d78187c24b5de9e6c97668a743fb
/load_bpod_raw_events.py
a418791e557989fffa602be012dd35c1f6df81e2
[]
no_license
https://github.com/mwisdom04/one_second_centre_port_hold
60af622896ff6672365907fadd72635b6df24163
3733d7986888f331673e24cfd1076816bf867086
refs/heads/main
2023-07-17T23:33:06.977378
2021-09-07T15:24:34
2021-09-07T15:24:34
370,728,599
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import load_nested_structs as load_ns def load_bpod_file(main_session_file): # gets the Bpod data out of MATLAB struct and into python-friendly format loaded_bpod_file = load_ns.loadmat(main_session_file) # as RawEvents.Trial is a cell array of structs in MATLAB, we have to loop through the array and conve...
UTF-8
Python
false
false
661
py
11
load_bpod_raw_events.py
10
0.727685
0.727685
0
11
59.181818
129
QiuhuaL/tensorflow
8,169,027,797,455
46d884815aae5536325defc276fd453d169deb13
f8e8495441c456b2a768c93c34c830b64e69c368
/tensorflow/python/estimator/training_test.py
4e67d4577195c31d753d6c5917fd83d14f5f0b5a
[ "Apache-2.0" ]
permissive
https://github.com/QiuhuaL/tensorflow
3434aca36f66ccf33271d55c47c6ee5b9c2f4585
3bc73f5e2ac437b1d9d559751af789c8c965a7f9
refs/heads/master
2021-06-27T19:48:50.506012
2017-09-12T22:57:35
2017-09-12T22:57:35
103,412,413
1
0
null
true
2017-09-13T14:48:38
2017-09-13T14:48:38
2017-09-13T14:30:08
2017-09-13T11:46:23
124,489
0
0
0
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
UTF-8
Python
false
false
6,863
py
3
training_test.py
3
0.718199
0.708291
0
172
38.901163
80
Yodart/banky
3,693,671,885,443
5643783b4cf6cfd0834da30717c5237ed9e346e6
29c6c54ab679fb2462e29212c75066e9d1940501
/deposits.py
5393d02735d24a2839f279f5a3df7174e6309351
[ "MIT" ]
permissive
https://github.com/Yodart/banky
3e943c767ecb354fedba9a089d16225aabcb552d
604c37ab80d95bb9f81d91534df512b20df5cd10
refs/heads/master
2022-12-16T05:10:39.152859
2020-09-14T03:44:17
2020-09-14T03:44:17
295,042,203
1
0
null
false
2020-09-14T03:44:18
2020-09-12T23:17:51
2020-09-14T03:43:48
2020-09-14T03:44:17
4,531
0
0
0
Python
false
false
from flask import Flask, Blueprint, request, jsonify, make_response from werkzeug.security import generate_password_hash, check_password_hash from db import db_connect from auth import require_auth_token import datetime import jwt import psycopg2 import sys deposits = Blueprint('deposits', __name__) @ deposits.route...
UTF-8
Python
false
false
2,758
py
8
deposits.py
8
0.637056
0.625453
0
65
41.430769
164
vajjhala/ChessBot
7,679,401,552,448
401cd8330665b0e7cfc05952b0c61fb705134614
f26f67858e8bed1c7c3412c81ac11b2a584dddbe
/read_data.py
3f6c34f32c67ee1dd0af5ab1f40e19421fdf0fd7
[]
no_license
https://github.com/vajjhala/ChessBot
fbc786cacc2d7c022ba90450d9c6e6443f64b3de
667e72fbeab03f9cc1571a1144b9f08e46859acd
refs/heads/master
2021-01-22T19:36:36.367280
2018-10-24T15:14:04
2018-10-24T15:14:04
85,220,603
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import copy import numpy as np import random import gzip import math class GeneratorRestartHandler(object): def __init__(self, gen_func, argv, kwargv): self.gen_func = gen_func self.argv = copy.copy(argv) self.kwargv = copy.copy(kwargv) self.local_copy = self.gen_func(*self.argv, **...
UTF-8
Python
false
false
4,602
py
12
read_data.py
9
0.608648
0.581921
0
142
31.401408
93
techtronics/ottomen
5,789,615,960,257
b6e90e91aeeb29c6fb5f3755d11099314dd10bb2
7aeef925467347597c5afb041bf7c8b5b248807f
/tests/resources/task_test.py
0edd5fe1b6b760261e3f9c845e5bfbab661a1da9
[]
no_license
https://github.com/techtronics/ottomen
e9c59a54c0f1ebe56195e306efd6e2f1488ab424
9cf5b8282f2349798b0b4d08626111f564d89f8c
refs/heads/master
2017-12-21T21:44:20.232246
2015-09-21T16:53:47
2015-09-21T16:53:47
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from . import OttomenResourceTestCase from ottomen.resources.services import * from werkzeug.exceptions import NotFound import sure import pytest from .helpers import create_task, create_experiment class TaskResourceTestCase(OttomenResourceTestCase): def test_db_create(self): """ It should be able...
UTF-8
Python
false
false
3,511
py
119
task_test.py
97
0.650812
0.64597
0
85
40.305882
120
SimonOkello/carr_app
1,743,756,737,338
eed38ff7ccc871cad61bf29f2dd76f66a801bee3
d4b79b3f61aca1b9dd85312fbba8529fbe1f287d
/src/cars/urls.py
91d8b7fde89533a195fe36e015d416c786e8195f
[]
no_license
https://github.com/SimonOkello/carr_app
f53e111d0599e3909b5abaf49af0df33703d4fd2
776947fc17861527504368405e0df3080cf6b02c
refs/heads/master
2022-04-07T11:37:33.481236
2020-03-06T12:48:53
2020-03-06T12:48:53
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from .views import upload_csv, custom_upload_csv urlpatterns = [ path("import/", upload_csv), path("custom_import/", custom_upload_csv) ]
UTF-8
Python
false
false
177
py
16
urls.py
11
0.700565
0.700565
0
8
21.125
48
bellick/Algorithm
10,617,159,183,466
a8f934f9c87bab5c943abe2395b9a4787e8e7229
ddcffe85ff80fec7b92ccc0a77acdd29406294d5
/Sword2Offer/isNumeric.py
aa1db81ed32be405d536cddf728c7c92ca8ae81b
[]
no_license
https://github.com/bellick/Algorithm
6b9296168467d7f299bd8fa589b6d7d90683364b
583d2c810f2b7c9f0b776a5e635d0ca768346382
refs/heads/master
2020-05-05T10:50:48.396442
2019-06-14T01:08:11
2019-06-14T01:08:11
179,963,485
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- ’‘’ 请实现一个函数用来判断字符串是否表示数值(包括整数和小数)。 例如,字符串"+100","5e2","-123","3.1416"和"-1E-16"都表示数值。 但是"12e","1a3.14","1.2.3","+-5"和"12e+4.3"都不是。 ‘’‘ class Solution: # s字符串 def isNumber(self,s): digit = ['0','1','2','3','4','5','6','7','8','9'] if s[0]=='+' or s[0] == '-': for ...
UTF-8
Python
false
false
563
py
65
isNumeric.py
24
0.478652
0.373034
0
20
21.3
55