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
conleydg/kanban-django
6,201,932,810,431
ae73a922817dc4e3684e3ae3b1712b5456f621c3
8c1a4b848a4262da55b9ae7290bbd4f76acfca99
/tasks/views.py
160e0ab4bdcc710fccbeb0d89c050fe2feee152f
[]
no_license
https://github.com/conleydg/kanban-django
f96ac69c343723e0730d303ab08e959304d4a0cc
40cf1f27ae7df894fa0652c232be52b2c37669f4
refs/heads/master
2016-09-12T09:32:35.842397
2016-05-17T00:17:27
2016-05-17T00:17:27
58,590,809
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib.auth.models import User, Group from rest_framework import viewsets, permissions from .models import Task from .serializers import TaskSerializer, UserSerializer, GroupSerializer from django.contrib.auth.decorators import login_required from django.contrib.auth.models import Permission, User from dja...
UTF-8
Python
false
false
1,409
py
7
views.py
6
0.713272
0.713272
0
45
30.311111
72
DanielRJohansen/DumbLesion
14,834,817,073,761
ae25db9e1bf3d5a470c70c209e84494757eec43c
26d6af68056ef62dbf8e543d5b073f51d0ef2050
/Toolbox.py
26e63514e4685fecb33b6847c7548cadd5809316
[]
no_license
https://github.com/DanielRJohansen/DumbLesion
c7992249aba1c6e26767bf7530564584e72c7e51
2cb2007e215f593ad216d1d36055328ede8eabec
refs/heads/master
2022-11-24T23:29:55.279664
2020-07-26T13:09:58
2020-07-26T13:09:58
272,507,533
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from glob import glob import os import torch import cv2 import numpy as np import csv import Constants def get_subs(folder): return glob(folder + r"\*") def min_images(folder): fewest = 9999 bins = [0]*1000 for sf in get_subs(folder): num_images = len(get_subs(sf)) bins[num_images] +=...
UTF-8
Python
false
false
6,626
py
14
Toolbox.py
13
0.57712
0.556746
0
228
28.065789
104
BIGKINGS10/demos
3,659,312,141,879
5f357a8c0700d350c7afc723fa8e52c66258ce93
725c9ea87a1561daa00c104cdc056fc92cdaba18
/DataAnalyticsRobot.py
60bc29513192926c7efdee018cc76ee74671dcc7
[]
no_license
https://github.com/BIGKINGS10/demos
4f888d2b386a28d3968585a0e992257e3b82e49f
cadaa51cfc7ae2789fa9707843c82817d0883a1c
refs/heads/main
2023-04-08T21:46:03.198388
2021-04-02T17:28:38
2021-04-02T17:28:38
343,210,180
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import streamlit as st #import plotly_express as px import pandas as pd import numpy as np #title of the app st.title("Data Analytics Robot") #Add a sidebar st.sidebar.subheader("Visualization Settings") #setup file upload uploaded_file = st.sidebar.file_uploader(label="Upload your CSV or Excel File.", type=['csv','...
UTF-8
Python
false
false
947
py
1
DataAnalyticsRobot.py
1
0.703273
0.703273
0
45
20
101
dhenry314/gleanomatic
16,286,515,999,371
2453a71d7b6256da31f11cab0ca199f1200478ef
3fb61cb2da8cad71b214a7faadffc27bcd1a5315
/gleanomatic/scripts/deleteByNamespace.py
cb4e4edfabe204bb7ab67933c48726b32d43db76
[]
no_license
https://github.com/dhenry314/gleanomatic
4ed0ed80836e4aa622392ec804e6ca2a95336a7b
9c9c8ab9a6da83d4a1fc429289c7450bf606005b
refs/heads/master
2021-07-06T02:55:43.571032
2019-04-15T18:21:12
2019-04-15T18:21:12
148,791,398
0
1
null
false
2018-10-04T21:35:10
2018-09-14T13:19:57
2018-10-04T19:40:00
2018-10-04T21:35:10
40
0
1
0
Python
false
null
import sys import json from datetime import datetime from gleanomatic import Utils import gleanomatic.gleanomaticLogger as gl from gleanomatic.RSRestClient import RSRestClient if len(sys.argv) < 2: print("USAGE: deleteByNamespace.py {sourceNamespace}/{setNamespace}\n") exit() localhost = "http://localhost:81...
UTF-8
Python
false
false
1,744
py
46
deleteByNamespace.py
38
0.603211
0.598624
0
46
36.913043
111
zwc662/CARLA
11,381,663,353,526
e6b4acaee539ede53d6f19d4f04586718b3071f0
3178c199a3a6f5805fc45c8791204259bcb39125
/PythonAPI/synchronous_mode/synchronous_mode_client_control.py
ae9abb39fe68210649993c9cbc145dd7b6b9a213
[]
no_license
https://github.com/zwc662/CARLA
e3550d6fa2b07036c69d10a9f1642cc975ce5e2e
ec32181c67417c56d93d3d7afd22946c50e78a6c
refs/heads/master
2021-07-21T14:12:52.241222
2020-08-21T01:20:37
2020-08-21T01:20:37
207,066,345
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import glob import os import sys import pickle try: sys.path.append(glob...
UTF-8
Python
false
false
13,751
py
331
synchronous_mode_client_control.py
22
0.610428
0.595593
0
385
34.716883
144
edublancas/pipeline
1,666,447,328,613
6ba66db85ba97ce3ae4d0bfb9983e2d86d6af46c
98a936d5372294ed892a9bf9cf98646c72af515c
/pipeline/lab/FrozenJSON.py
4982ba1a31619c7f158f6658a42fa7939e4ac706
[ "MIT" ]
permissive
https://github.com/edublancas/pipeline
f6d22ad07b134be98c139d1de6ca7d8321072ba8
5bef04d77fdadc1dc4ec22b9b346f0a062cca1ce
refs/heads/master
2021-05-15T01:09:50.072378
2016-12-29T05:45:48
2016-12-29T05:45:48
59,692,708
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import Mapping, MutableSequence import keyword class FrozenJSON(object): """A read-only facade for navigating a JSON-like object using attribute notation. Based on FrozenJSON from 'Fluent Python' """ def __new__(cls, arg): if isinstance(arg, Mapping): ret...
UTF-8
Python
false
false
994
py
27
FrozenJSON.py
24
0.561368
0.561368
0
35
27.4
59
lexuanthien/python-django-basic
8,306,466,766,573
91bdd117fc2f71cea5dff51d7ebdc8c2677b5b26
94cc1a151b1a6e72522407a3241647182ce1528f
/issue/serializers.py
26ec48976b27f88ec64eb8efa6ba47d90182269f
[]
no_license
https://github.com/lexuanthien/python-django-basic
5a155d722cd206f4bd09024ff0dea607bfff1462
b56d4b72b8c1529679751e93b48eb846ff8e48a4
refs/heads/master
2023-06-11T06:10:40.946499
2021-06-28T08:39:06
2021-06-28T08:39:06
380,962,866
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import serializers from .models import Task class TaskSerializer(serializers.ModelSerializer): title = serializers.CharField() content = serializers.CharField(max_length=10) type = serializers.IntegerField(default=1) class Meta: model = Task fields = ['title', 'con...
UTF-8
Python
false
false
551
py
17
serializers.py
9
0.713249
0.702359
0
17
31.470588
73
j-towns/ssm-code
3,040,836,885,446
0fc3fb560e605fa069f23d10294c30767fb5b30a
d0772e49724cb282e8435784053cbdd6cf05ae67
/generate_model_plot.py
c439166b2b9101e29aeecf376e884e25f247a1fb
[ "MIT" ]
permissive
https://github.com/j-towns/ssm-code
6bd4ad1a89483b029a6b8dd53eb1bfc816b317ef
4255ac0f7801779e3511a8d9c64b9ee846c26e21
refs/heads/master
2023-03-27T10:15:37.360335
2021-03-19T11:13:30
2021-03-19T11:13:30
349,015,928
9
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Based on examples/hmm_em.py, from the Autograd repository. from __future__ import division, print_function from dataclasses import replace import autograd.numpy as np import autograd.numpy.random as npr from autograd.scipy.special import logsumexp from autograd import value_and_grad as vgrad from functools import par...
UTF-8
Python
false
false
5,022
py
5
generate_model_plot.py
3
0.638192
0.623656
0
148
32.932432
78
DayGitH/Python-Challenges
7,894,149,913,220
9c07989fe2d9c7f6bf2f7f8c5222161cdf9734f6
f1961c86e6da14f35c21d7235f4fc8a89fabdcad
/DailyProgrammer/DP20130118C.py
160f08637796b83bdedb555ed267c1057285d4c5
[ "MIT" ]
permissive
https://github.com/DayGitH/Python-Challenges
d4930bdd85cd1a977d8f6192775ca956a375fcde
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
refs/heads/master
2021-01-17T13:01:03.784523
2018-06-29T23:49:04
2018-06-29T23:49:04
58,497,683
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" [01/18/13] Challenge #117 [Hard] Verify Your Language! https://www.reddit.com/r/dailyprogrammer/comments/16t2sx/011813_challenge_117_hard_verify_your_language/ # [](#HardIcon) *(Hard)*: Verify Your Language! [Context-free grammar](http://en.wikipedia.org/wiki/Context-free_grammar) is a tool heavily used in progra...
UTF-8
Python
false
false
3,430
py
922
DP20130118C.py
921
0.708163
0.695627
0
82
40.829268
119
sousajmr/ptpy
9,311,489,120,173
5fbf25023f9ba420a1c9b9078d8daba96209a727
531ed2d580fd389cb472af8344ed0caf9e241a89
/tornado/demos/lihuashu/docs/common_bak/toto.py
471e34816d90197016e3c994ad63f2aee6bc323d
[]
no_license
https://github.com/sousajmr/ptpy
dee83971973ce0069b1b27aeab16bca4a3a6504a
f35169ecf410240e7569ff0195524f874ca6660e
refs/heads/master
2021-01-10T20:08:15.848115
2013-04-05T05:23:02
2013-04-05T05:23:02
10,300,362
1
3
null
null
null
null
null
null
null
null
null
null
null
null
null
#coding:utf8 #from fdfs import Fdfs #fs=Fdfs() #fs.open() from kyototycoon import KyotoTycoon k=KyotoTycoon() k.open() po=k.set("编解码;编解码","编码编码编码编码编码",60) print(po) ''' p=k.remove('jia') print(p) ''' p=k.get_str("编解码;编解码") print(p)
UTF-8
Python
false
false
289
py
345
toto.py
237
0.640816
0.628571
0
15
14.466667
35
fazeVaib/Zephyr
7,954,279,454,840
5aa58e12a9fc9c11a85ca4709872488cd3716305
b9c78fe1f197be8e99b0a89c52aec2a9a36e4ce1
/src/app_zephyr/views.py
77df1a01570fd6e2e523ee882b62146466a2e564
[]
no_license
https://github.com/fazeVaib/Zephyr
54d7009b5622b485e32d863cb9a810449d37023b
27729b1dc2772d268a4797938e605a09b66f514a
refs/heads/master
2022-12-10T15:40:45.603656
2020-06-07T15:06:16
2020-06-07T15:06:16
175,456,694
7
1
null
false
2022-06-21T21:46:35
2019-03-13T16:15:33
2022-05-05T08:48:33
2022-06-21T21:46:35
57,030
7
1
5
JavaScript
false
false
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from django.views import View from .stats import get_stat_data from .daily_predicted_data_delhi import get_daily_delhi_pred from .monthly_predicted_data import get_monthly_pred fro...
UTF-8
Python
false
false
7,768
py
209
views.py
28
0.550206
0.536432
0
221
34.149321
150
jofrankiewicz/AZ
429,496,770,326
e999ae780f36ac516419280204079bc0e888f837
f1d115e44e22e2cc45619edf681451feda3e5f74
/run.py
e6df99891f99a54346218602646f9a769fd3a47c
[]
no_license
https://github.com/jofrankiewicz/AZ
f66186d6e4f4dd2ac4cb5cf2e1b21510c36b1784
43e08ec75d0e53e26bcff3a6f3f3a23fabe434d2
refs/heads/master
2023-05-02T22:07:07.898205
2021-05-17T14:36:18
2021-05-17T14:36:18
349,590,548
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse import time import glob import argparse import random from alghoritms import Graph from generate_files import random_graphs def main(): print('Rozpoczęcie działania programu rozwiązującego problem TSP') parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter) parser...
UTF-8
Python
false
false
1,971
py
103
run.py
6
0.551759
0.54309
0
63
30.142857
168
yasmin2496/DSA_Quick_Reference
8,615,704,420,111
77d525217897bdfe4f3f91dea0086ef51f7b4168
d28c0ef18e7a341e15be98359f4480b5e20e2363
/solutions/singly_linked_list.py
b31b974eca20d4b367c9ad94b239e1267082f0f0
[ "MIT" ]
permissive
https://github.com/yasmin2496/DSA_Quick_Reference
7d71d609a0e50b65b31b69d86904f9fc4b3a7243
827a7d3331d9224e8bb21feb9151a89fc637a649
refs/heads/main
2023-04-16T14:24:11.801530
2021-04-27T16:15:36
2021-04-27T16:15:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Node: def __init__(self, value): self.value = value self.next = None class LinkedList: def __init__(self): self.head = None def append(self, value): if self.head is None: self.head = Node(value) return node = self.head w...
UTF-8
Python
false
false
2,142
py
46
singly_linked_list.py
20
0.50747
0.49113
0
94
21.765957
76
AotY/char-lstm
1,013,612,294,154
241f4af055f70070536254f6fedae596b99c765b
6a4a1875e5f8cff0112e6f45e34b25f909d3d034
/data_set.py
c775330f56009c2435450ed5354affd7774f0cd5
[]
no_license
https://github.com/AotY/char-lstm
bcc35fe15ad9b1b5d915ba770cabacfb0164155d
0bb9be96e3af1380609b95ae81651ec74125086e
refs/heads/master
2020-04-01T20:06:57.319229
2018-10-18T09:38:12
2018-10-18T09:38:12
153,589,069
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright © 2018 LeonTao # # Distributed under terms of the MIT license. """ """ from __future__ import unicode_literals, print_function, division from io import open import glob import os import unicodedata import string import random import torch import torch.nn a...
UTF-8
Python
false
false
3,702
py
5
data_set.py
3
0.691975
0.684139
0
116
30.887931
91
boo9305/python
16,123,307,238,248
1353e2a2577cf85b0646e0e01f88c0939f277396
e980207805af1d868a1418527d0be25727c9c878
/selenium/tving_contents_parser.py
a7408100b23bafcc531a8fc7277463200131b467
[]
no_license
https://github.com/boo9305/python
3b279899825e788386f610918c15fd68893ad138
1bd689e3182da6bbeda61d2a22de4372a37e57db
refs/heads/master
2023-02-23T00:38:39.948478
2021-01-25T07:07:12
2021-01-25T07:07:12
328,588,500
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys, time, atexit, json, requests import settings from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from pyvirtualdisplay import Displ...
UTF-8
Python
false
false
5,175
py
17
tving_contents_parser.py
14
0.529469
0.521739
0
164
30.54878
138
hungphatsource/HungPhatSourceCode
15,212,774,163,305
b008bc087343aa21cd86d44362ab4c4eb06074a3
06598dfdde0cb0ecdd0af6b5aaab57b26aa9d23c
/hpusa_kpis_manufacturing/wizard/wizard_hp_report_kpis_chart.py
a03fc44c50445923b21e795da3907a792b42dd07
[]
no_license
https://github.com/hungphatsource/HungPhatSourceCode
98f99d87f0a07ffbf7c622037ea6e87e162c763d
11141af1fdd397590a1a5a7f7d8dd65abf53a59a
refs/heads/master
2021-01-21T13:57:40.494472
2016-05-13T07:34:35
2016-05-13T07:34:35
53,999,296
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from osv import fields, osv from tools.translate import _ from dateutil.relativedelta import relativedelta import time from datetime import datetime from datetime import timedelta from openerp.addons.pxgo_openoffice_reports import openoffice_report from openerp.report import report_sxw class wizard_hp_report_chart_kpi...
UTF-8
Python
false
false
54,504
py
89
wizard_hp_report_kpis_chart.py
47
0.522567
0.514366
0
701
76.74465
263
alexmlucas/i1
12,824,772,355,851
f080f88cd75f5556828288bbad3e329c4116e3da
66e7978eb51f74ddd9b5f8d9ecbf35617b982da3
/rpi_script/parameter_manager.py
8c41a765184115a80fd59cd976740882cbe0539a
[]
no_license
https://github.com/alexmlucas/i1
aa0ef1b98d5f2449bc69a14f7822beca9c3628f4
154fcc72b2ab87c1bf3f1f5ba2baf20b025223f2
refs/heads/master
2021-10-10T10:31:20.236306
2019-09-12T13:54:17
2019-09-12T13:54:17
158,238,900
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import serial import csv from subprocess import call class Parameter_Manager: def __init__(self, port, baud_rate): self.port = port self.baud_rate = baud_rate self.song_data_path = "/home/pi/i1/rpi_script/song_data.txt" self.global_data_path = "/home/pi/i1/rpi_script/global_data.txt" # Initalise class v...
UTF-8
Python
false
false
15,850
py
49
parameter_manager.py
37
0.67123
0.66183
0
463
33.226782
115
kyrs/hackerank-solution
12,206,297,088,703
f3a005badda087592dccd0c572e82ac986771aa2
4265c94c924f0086a8541d7d768db1b73a9982ed
/Artificial Intelligence/save_princess_2/princess2.py
c5938aa2073bd2e208d9086dcecf2d4e5375296d
[]
no_license
https://github.com/kyrs/hackerank-solution
f27972af9d234a48102f187fc23d7d4bd06f15bb
8c3ba62802dcc8a487b91f19961839af14a26984
refs/heads/master
2021-01-10T08:04:39.980852
2016-01-17T14:30:55
2016-01-17T14:30:55
49,046,311
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Coded by Kumar Shubham Date : 6-Jan-2016''' #!/bin/python class SavePrincess(object): def __init__(self,m, grid): self.SizeMatrix = m self.GridMatrix = grid self.PrincessCordinate = None self.BotCordinate = None self.PrincessMarker = "p" self.BotMar...
UTF-8
Python
false
false
2,676
py
9
princess2.py
8
0.548954
0.540732
0
122
20.942623
64
iamsaptorshe07/TRAVMAKS-Old
15,547,781,648,692
7ccaafb941555a508caa36e70a4cf3a85ff36cf4
6596113cfc5a4d19a1edbb1bc93cb0d43af67a6d
/travelagency/urls.py
74ad76a2e5f25837ff7cd7ab06ac51b454d2a68d
[]
no_license
https://github.com/iamsaptorshe07/TRAVMAKS-Old
3fe7cbb603264ab3513439a42eec8843af859daa
e0159ae8e7cd1c77e6475df77cc9dc769c7d4bd2
refs/heads/main
2023-07-01T21:08:36.931079
2021-07-31T08:26:11
2021-07-31T08:26:11
333,350,933
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from .views import * from .tests import * urlpatterns = [ path('myagency/<agid>',travelagency_home,name='travelAgencyHome'), path('myagency/addtour/<int:uid>/<str:agid>',addTour,name='addTour'), path('agencytours/<int:uid>/<str:agid>',agencyTours,name='agencyTour'), path('ag...
UTF-8
Python
false
false
1,073
py
123
urls.py
60
0.730662
0.730662
0
18
58.666667
88
anhnda/gformstats
13,056,700,599,124
82902775297df8b311c39ac01468ff48e2a0d9f9
622eea38f1fb1c4bedddf26c1c5904c078339eef
/data/final_responses/IT4866_20132546/20132546_RR.py
e04cdcc1d11de7650748039ac8d4c556d13ce4db
[]
no_license
https://github.com/anhnda/gformstats
4aec7ee2d325caabbf65cd5b72fdb4eab9d13c25
5e1ae2a600464f50185b887c7efa906e85b4cad6
refs/heads/master
2019-03-20T05:29:10.599530
2018-03-05T07:28:22
2018-03-05T07:28:22
105,976,418
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sklearn.preprocessing import scale from sklearn import metrics import numpy import csv # Trích ma trận X và vector y từ file dữ liệu đã cho Xy = numpy.loadtxt("/home/mable/Desktop/python/training-data.csv", dtype=float ,delimiter=",", skiprows=1) Xy1 = numpy.loadtxt("/home/mable/Desktop/python/20132546-test.csv"...
UTF-8
Python
false
false
1,540
py
503
20132546_RR.py
109
0.700067
0.670675
0
49
29.55102
106
marcelopederiva/CodeSignal
12,481,174,963,129
8cb856cc2e73a3cd1d64a5bac63968fe5be30103
6372a2de8c0d904504cc004b5bddddf47e6ae44b
/Arcade_Intro/checkPalindrome.py
04632dedbd0d641450c08652e6e371373017e58f
[]
no_license
https://github.com/marcelopederiva/CodeSignal
8d9fee5908403316b72adfa44c01daefd80501e9
b5006caa47cbe4dbaf05f175abd7cb75ba81ee83
refs/heads/master
2021-05-21T19:00:23.046352
2020-04-03T14:58:27
2020-04-03T14:58:27
252,754,653
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def checkPalindrome(inputString): if list(inputString) == list(inputString)[::-1]: return True else: return False
UTF-8
Python
false
false
149
py
57
checkPalindrome.py
57
0.583893
0.577181
0
5
26.6
52
zzlyzq/speeding
9,002,251,489,632
52a68bb591bfd7fdfcf6ab8057a3d2d04e68b8f4
c5c71eb1011f53a6e878b91ca02eebdba5e06c37
/funcs/mgmt.py
e50a5c87fc11b064517954c5c6022b20805fd07a
[]
no_license
https://github.com/zzlyzq/speeding
4458dc4443ed5f548952a874f9aa8d1dd75f19c6
fc8f61660910c9cba8979b368f146efb76d5810b
refs/heads/master
2021-01-19T13:49:52.179935
2017-04-13T01:43:09
2017-04-13T01:43:09
88,112,397
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -* from fabric.api import * from fabric.context_managers import * from fabric.contrib.console import confirm from fabric.contrib.files import * from fabric.contrib.project import rsync_project import fabric.operations import time,os import logging import base64 from getpass import ...
UTF-8
Python
false
false
1,297
py
21
mgmt.py
20
0.702391
0.64798
0
33
35.787879
496
mattf4171/ComputerNetworks
17,506,286,700,518
1ce68967663adcbf5a8a7bcb9e5e8e42e54d7918
684407cc2a451ae36aa996bdc35eb52d27339b73
/TCP_threadedServer/serverTCP.py
3d42ae53fc61e145ed94105db4add2ee612c92f9
[]
no_license
https://github.com/mattf4171/ComputerNetworks
bc1162979b84c7521f67b5a14b507301ad71dcc1
06adc719f38867120682feca4268277d680c4f7c
refs/heads/main
2023-04-09T18:39:50.840666
2021-04-05T00:04:01
2021-04-05T00:04:01
354,667,527
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 4 16:27:09 2021 @author: matthewfernandez """ from socket import * import threading ​ i = 0 sentences = [] # will append the messages in the empty array then dispay them in the order they were received ​ def catch_msg(socket, name): global i, se...
UTF-8
Python
false
false
1,608
py
2
serverTCP.py
2
0.732368
0.710957
0
54
28.407407
109
Starenesha/django-prj-test
7,267,084,687,475
b051db1e23c63cd872bcc9487204cd93249d6119
1ad01cf671ec81155e470030999b5fdd13919d58
/meter/migrations/0002_csvupload_meter.py
d3514d24289cfb11152288e62438f58c752a988c
[]
no_license
https://github.com/Starenesha/django-prj-test
affa250087b6ffb2783c654b32ab54ac3686799b
c5ceaca4fb997eb541b8dded36c72c8e98e50730
refs/heads/master
2023-04-27T10:49:43.645172
2021-08-08T16:16:44
2021-08-08T16:16:44
199,383,673
0
0
null
false
2023-04-21T20:34:53
2019-07-29T05:23:35
2021-08-08T16:16:47
2023-04-21T20:34:51
37
0
0
5
Python
false
false
# Generated by Django 2.2.3 on 2019-08-06 02:37 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('meter', '0001_initial'), ] operations = [ migrations.AddField( model_name='csvupload', ...
UTF-8
Python
false
false
467
py
13
0002_csvupload_meter.py
7
0.620985
0.5803
0
19
23.578947
111
krishna0512/drf
6,236,292,515,787
37eedf304e2e412c25aeb2aab1d9b2fff6828b0c
5fbc48cb9d5ff7688be323434e8879563c97256e
/mysite/polls/migrations/0008_auto_20150926_1129.py
123b7be296f8fa84471c13a480514885acf20841
[]
no_license
https://github.com/krishna0512/drf
c92defb47420f2ef124fa6964e7e78e327fdd2dd
2516e069d88466c5fce2252d5c4eedc3d07920a1
refs/heads/master
2021-01-10T19:54:16.282489
2015-10-01T11:15:23
2015-10-01T11:15:23
37,807,772
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('polls', '0007_student'), ] operations = [ migrations.AddField( model_name='question', name='correct'...
UTF-8
Python
false
false
756
py
24
0008_auto_20150926_1129.py
18
0.587302
0.56746
0
26
28.076923
119
WaterH2P/Algorithm
2,070,174,270,608
37d995362378bdad21e9b2d4bffa124cb0871cf4
9cc3dfb89e7243595d0a76c6e0a4e77a04230eb2
/Python/Sort/insert.py
4cf279863488f506e1687a1158e2e980cf6dca75
[]
no_license
https://github.com/WaterH2P/Algorithm
a369f5013eb52108402b6d8ab97cdbbdfb75cf35
35e18c8b81342a84dec4a5fdbb5ddf4b6447ae3d
refs/heads/master
2022-11-28T18:19:57.145915
2020-08-04T12:12:13
2020-08-04T12:12:13
211,606,354
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def sort_insert(l): index, maxI = 0, len(l) while index < maxI - 1 : i = index + 1 while i > 0 and l[i] < l[i-1] : l[i], l[i-1] = l[i-1], l[i] i -= 1 index += 1 return l L = [2, 5, 7, 1, 4, 3, 0] L2 = sort_insert(L) print(L2)
UTF-8
Python
false
false
286
py
147
insert.py
146
0.412587
0.34965
0
13
21.076923
39
thisispratt/hacktoberfest_2020
455,266,563,392
b445abee05726edd70673fd34d75cb119a92a70d
7b59cba866493d8c4a57c4b48e53a266b118e07a
/Python/1.py
205d4a934a1d82d86d87514c19c0d67016288171
[]
no_license
https://github.com/thisispratt/hacktoberfest_2020
afa3d5f80da76865b35494b6f424c9995a58cc14
c31937273d815715e38d6123d130c8f4e93968f3
refs/heads/master
2023-04-20T02:39:47.333188
2021-10-23T20:31:20
2021-10-23T20:31:20
212,836,169
52
106
null
null
null
null
null
null
null
null
null
null
null
null
null
#command used to print something print("Hello world")
UTF-8
Python
false
false
56
py
61
1.py
48
0.75
0.75
0
2
26
32
KaiOWhatmore/PE-Algorithms
10,376,640,997,859
5a86dc52e7907f6f5e44437a91014918f617b791
226ff10abebba77f5367a7d5a1ee2d127d53da1b
/Project Euler/PE_P17_Sum Of Letters_RadiiofCircle.py
ea12d5803a56856ab41bbfeda72a0b2705bb102b
[]
no_license
https://github.com/KaiOWhatmore/PE-Algorithms
3f69108af5cccd639c26f1981d8517ef5ce396b0
1758ea7e089916c14846cdd2112dd65b69e04fd1
refs/heads/master
2023-06-01T14:25:51.312242
2021-06-16T09:33:22
2021-06-16T09:33:22
377,435,785
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# dictionary to store the values dic = {n: 0 for n in range(0, 1001)} # intial values given manually dic[0] = 0 # '' dic[1] = 3 # 'one' dic[2] = 3 # 'two' dic[3] = 5 # 'three' dic[4] = 4 # 'four' dic[5] = 4 # 'five' dic[6] = 3 # 'six' dic[7] = 5 # 'seven' dic[8] = 5 # 'eight' dic[9] = 4 # 'nine' di...
UTF-8
Python
false
false
1,493
py
23
PE_P17_Sum Of Letters_RadiiofCircle.py
21
0.5499
0.464836
0
84
16.77381
52
vnleonenko/EPDE
8,323,646,649,874
c35e9e79dc5c961ff927e255612b41416dbab9f7
af562c3070916266bfce0b31fe094aef9e4d7ac7
/tests/system/ode_textbook_interfaced.py
9abe3bd32ed296fb9a81bd0006272af01c1c0328
[ "BSD-3-Clause" ]
permissive
https://github.com/vnleonenko/EPDE
fb9cfc29cec24caa9c69a7688974e50fb7dacd7d
c9f5f4a3c593dbd17987576bfcabf5554c41ed66
refs/heads/main
2023-08-15T02:36:05.622484
2021-09-30T10:40:59
2021-09-30T10:40:59
417,873,275
0
0
NOASSERTION
true
2021-10-16T15:46:12
2021-10-16T15:46:12
2021-10-15T15:18:18
2021-10-14T16:01:06
583
0
0
0
null
false
false
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 13 14:45:14 2021 @author: mike_ubuntu """ import numpy as np import epde.interface.interface as epde_alg from epde.interface.prepared_tokens import Custom_tokens, Trigonometric_tokens, Cache_stored_tokens from epde.evaluators import Custom_Evaluat...
UTF-8
Python
false
false
11,038
py
53
ode_textbook_interfaced.py
49
0.608216
0.598651
0
118
68.110169
168
bitmapup/patricia_trie
14,714,557,999,374
50436488b9dc1024dccc7c8fcf1d1d66d0fd99a4
3b372f7d4e2cd18c5481a0602393c221a152665a
/coppredict/evaluation.py
e52e4e0e5127a85de0dddfec47ce15a32e5f30a6
[ "MIT" ]
permissive
https://github.com/bitmapup/patricia_trie
462b1785138efef937f7b6af414c1044151f5299
59a82dd04f82030c9f0995859e5dfcb75ab54476
refs/heads/main
2023-08-11T03:46:41.848163
2021-09-26T05:02:14
2021-09-26T05:02:14
363,258,444
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- import os import psutil import time def get_process_memory(): process = psutil.Process(os.getpid()) return process.memory_info().rss def get_time(): time_v = time.time() return time_v def get_time_build(time_start, time_end, message): if time_start != -1 and time_end !...
UTF-8
Python
false
false
607
py
12
evaluation.py
7
0.609555
0.594728
0
25
23.28
92
yaelBrown/Codewars
14,989,435,908,468
59b87522b345b6710fe2c5bd82bac49319b13b2e
ee9655d3ffcdb70ae68692f400096b479b39d0f7
/Python/MovingZerosToEnd.py
3a1fab93c3ba875b155df0058b8756cfcad6250a
[]
no_license
https://github.com/yaelBrown/Codewars
4f123387b8c4ea6e55ec1ff5d2ae9b1d674c06cf
efa10770b593e48579c256b9d6b69deede64e9ba
refs/heads/master
2020-11-27T16:02:43.409465
2020-03-20T00:59:49
2020-03-20T00:59:49
229,521,981
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Write an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements. move_zeros([false,1,0,1,2,0,1,3,"a"]) # returns[false,1,1,2,1,3,"a",0,0] """ def move_zeros(l): out = [] count = 0 for x in l: if x == 0 and not type(x) == bool: count += 1 ...
UTF-8
Python
false
false
498
py
51
MovingZerosToEnd.py
50
0.586345
0.532129
0
28
16.821429
121
Gincral/cp468-artificial-intelligence
11,098,195,505,341
3d31db510398dcf922c0433ffc1f478ab5f805a5
2cde2eb5b828745f2bce2ec11b99ce08b41b4256
/asgn01/8-puzzle.py
d10447d99bc0c08e692f77bb4ab7e08a935a3964
[]
no_license
https://github.com/Gincral/cp468-artificial-intelligence
d9ba5b561f3b543fed617a8de682a3ffd32d258e
9a4c4a969ce03100dd1c63e9101ef5ef79504f02
refs/heads/main
2023-02-01T02:54:50.225748
2020-12-11T20:44:02
2020-12-11T20:44:02
300,418,950
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import random import heapq import sys import csv class node: def __init__(self, state, action, pathCost, heuristicCost): self.state=state #state/data, position of all tiles self.action=action #action required to get to this state from parent self.pathCo...
UTF-8
Python
false
false
9,511
py
7
8-puzzle.py
3
0.603932
0.587005
0
198
47.040404
149
hongtao510/u_tool
9,792,525,471,320
a00ee5aa0a8b2a97d2494d3a5341ad8517b4a60e
d89a482aaf3001bbc4515f39af9ba474e1ae6062
/ubertool/ecosystem_inputs_db.py
283bfbca15444b837a0a946d0d6a4130679a39f9
[]
no_license
https://github.com/hongtao510/u_tool
2925e3694aba81714cf83018c3f8520a7b503228
98c962cfb1f53c4971fb2b9ae22c882c0fae6497
refs/heads/master
2021-01-10T20:40:24.793531
2014-03-14T22:57:37
2014-03-14T22:57:37
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jan 31 11:55:40 2012 @author: jharston """ import os os.environ['DJANGO_SETTINGS_MODULE']='settings' from django import forms from django.db import models from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext.webapp import template from google.ap...
UTF-8
Python
false
false
1,264
py
740
ecosystem_inputs_db.py
166
0.744462
0.730222
0
27
45.851852
126
Holomoro/django_chase_comic
1,082,331,771,419
9162fddfccad8e90cca3b1e6e41b66f718a24d7f
ad463ed0176e6ec4cdc3ca361879ea9f5d05a8b9
/kahz_comic/comics/migrations/0003_auto_20150220_1201.py
7ec5e33213fecc132cb5a52bf1e80777ba0c9b04
[]
no_license
https://github.com/Holomoro/django_chase_comic
53c0c76241a6bb7d4473765992dfa53623c29661
6065aa27d9cd7df110d0e76a020e8e4bae734000
refs/heads/master
2016-09-11T13:36:37.658299
2015-03-18T14:01:55
2015-03-18T14:01:55
31,089,554
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('comics', '0002_auto_20150220_0026'), ] operations = [ migrations.RemoveField( model_name='comic', na...
UTF-8
Python
false
false
571
py
5
0003_auto_20150220_1201.py
2
0.558669
0.527145
0
24
22.791667
76
eunh1107/StudyRaspberry-Pi
14,439,680,095,404
90f15e2f8a35e122b91bc93f84caad4ed0baca56
ff6cc81031d8cbe4d538b218a5da0dfb2f3b02be
/StudyPython/210705_003/210705_003/list05.py
6291cfae0a950bc124e58e4b290e72520afe8941
[]
no_license
https://github.com/eunh1107/StudyRaspberry-Pi
ff19b87da861f07a963f28899db73adff31ec971
679af2f61b90bd6b7fcf3fe0a5fe7ad6ee5ce676
refs/heads/main
2023-07-04T00:07:37.453850
2021-08-12T17:24:14
2021-08-12T17:24:14
382,286,335
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
aa = [30, 10, 20] print("현재의 리스트 : %s" % aa) # aa 리스트 전체 출력은 문자열로 인식하므로 %s는 aa 리스트를 대입 aa.append(40) # 요소를 하나 추가 print("append 후의 리스트 : %s" % aa) # 요소 추가 후에 aa 리스트를 출력 aa.pop() # stack 알고리즘 적용(마지막 1개를 꺼냄) # aa 리스트의 제일 마지막 요소를 뺀다. print("pop 후의 리스트 : %s" % aa) # 추가 후에 다시 요소를 빼고 나서 출력 aa.sort() ...
UTF-8
Python
false
false
1,488
py
57
list05.py
50
0.557082
0.497886
0
19
48.842105
67
junyechen/PAT-Advanced-Level-Practice
11,321,533,827,375
a4e036874e5db5d808af41b11f5b575f2063d539
556da038494ad93b03923577b48f89dd6d70fb48
/1154 Vertex Coloring.py
c09e6112712bb0fa2d5489c29a08c7fbee5999f0
[]
no_license
https://github.com/junyechen/PAT-Advanced-Level-Practice
f5c9f604c458965c2165960aaac714f69ce1057b
401c9d3040a0273c0e2461c963b781bcebd33667
refs/heads/master
2020-06-19T10:55:19.564725
2020-05-12T10:21:14
2020-05-12T10:21:14
196,684,047
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" A proper vertex coloring is a labeling of the graph's vertices with colors such that no two vertices sharing the same edge have the same color. A coloring using at most k colors is called a (proper) k-coloring. Now you are supposed to tell if a given coloring is a proper k-coloring. Input Specification: Each inpu...
UTF-8
Python
false
false
1,735
py
155
1154 Vertex Coloring.py
155
0.643234
0.598125
0
58
28.431034
305
maretec/MOHID_python_tools
19,464,791,790,474
703d88fd031488b7b5fd28c0fa24bbcddb6b60bb
282f44c3f10564489c3338f95295812fb9176a4e
/MapasDeCampos_by_hidromod/src/ModuloTimeSeriesDraw.py
1a94d03bf6f6fc2bf17a2838bbbde252c34f015d
[ "MIT" ]
permissive
https://github.com/maretec/MOHID_python_tools
92eebc44be3b01bda57cfe76ac974abf5c113f58
c69c03294e7e371be86cf980133bd8ae6829df60
refs/heads/master
2023-02-07T14:10:16.411017
2020-03-11T13:38:57
2020-03-11T13:38:57
151,395,700
8
11
MIT
false
2023-01-25T11:10:54
2018-10-03T10:27:13
2020-12-17T20:01:41
2023-01-25T11:09:54
242,146
8
7
0
Python
false
false
import matplotlib.pyplot as plt import matplotlib.pyplot as plt_date import matplotlib.dates as datesMat import logging import sys from matplotlib import gridspec import matplotlib as mpl from matplotlib.offsetbox import AnchoredText import numpy as np import ModuloTimeSeriesFunctions as MTSF class Draw_timeseries: ...
UTF-8
Python
false
false
20,104
py
73
ModuloTimeSeriesDraw.py
41
0.497611
0.483378
0
432
45.506944
164
mmweber2/reps
18,906,446,050,038
7227bfc4431107a9ca11b8ef0536ecd594872ec0
570089a94cc1ee992eb4325998c84c697850ce15
/codefights/possibleSums.py
5dbcd5dfd12de382eaf0d260b0d86b4d378d6351
[]
no_license
https://github.com/mmweber2/reps
a707e2ad192267a6b4137437cccc817eb27f2903
8ce26b21f0898ebfc0784261393efad7b1b99d76
refs/heads/master
2020-05-21T16:45:27.338269
2017-12-10T02:23:55
2017-12-10T02:23:55
62,955,968
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def possibleSums(coins, quantity): sums = set() sums.add(0) for coin, quant in zip(coins, quantity): new_sums = set() # Don't confuse new and old values for coin_total in xrange(0, (coin * quant) + 1, coin): for s in sums: new_sums.add(s + coin_total) sums...
UTF-8
Python
false
false
372
py
61
possibleSums.py
60
0.564516
0.551075
0
10
36.3
62
WalkingMachine/sara_commun
1,254,130,466,044
4449d19e1e54cac9e7e06b143879c2adbf6356c2
12bd6522cee8dba32e1ef0dd1d012226ed572874
/wm_ork/transparent_objects/src/apps/runExperiments.py
a4781b0adaa4b3cfed31a7253257470de6bde0d8
[]
no_license
https://github.com/WalkingMachine/sara_commun
55a42ffc0f37821b2d678bedf2df87309227da61
79585904ded31eca418614f0306a7308b24ccd0e
refs/heads/master
2019-07-14T17:47:48.126153
2016-10-28T15:37:28
2016-10-28T15:37:27
58,494,906
9
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import subprocess import os import sys import psutil import time import re runner='/home/ilysenkov/ecto_fuerte/build/bin/transparentExperiments' #runner='/home/ilysenkov/itseezMachine/home/ilysenkov/ecto/server_build/bin/transparentExperiments' runnerName = 'transparentExperiments' trainedModelsPath='/media/2Tb/trans...
UTF-8
Python
false
false
2,477
py
390
runExperiments.py
225
0.698426
0.691562
0
77
31.168831
99
ehubbard/templates-aws
2,611,340,148,233
220c3edfdd52b6dc1f4c108337af451691da7580
2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f
/aws.apigatewayv2.Authorizer.basic-http-api-python/__main__.py
a429a9be0ee4ec94913ed63b5db33be1e7c13990
[]
no_license
https://github.com/ehubbard/templates-aws
e323b693a18234defe6bd56ffcc64095dc58e3a1
2ae2e7a5d05490078017fed6d132dcdde1f21c63
refs/heads/master
2022-11-17T13:53:14.531872
2020-07-10T21:56:27
2020-07-10T21:56:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pulumi import pulumi_aws as aws example = aws.apigatewayv2.Authorizer("example", api_id=aws_apigatewayv2_api["example"]["id"], authorizer_type="JWT", identity_sources=["$request.header.Authorization"], jwt_configuration={ "audience": ["example"], "issuer": f"https://{aws_cognito_...
UTF-8
Python
false
false
364
py
2,779
__main__.py
2,048
0.651099
0.645604
0
11
32
76
Jlevjean/SFT-Protocol
15,719,580,307,957
4bf4e20078b0028f3f2acd9e8d807a6f560dc216
0e7514552dfc05b63738228e99d0b5333b8e9d41
/tests/security_token/transfer/investor_counts.py
9d7efec93cc3cb98d46296e4ed0e39576c8c5a4d
[ "Apache-2.0" ]
permissive
https://github.com/Jlevjean/SFT-Protocol
cd6161c2087f5ed1000a533df18c2209d043c280
bbfaf94df448bf9e653ae2f7d8a1edbf9d693a46
refs/heads/master
2020-05-17T23:20:52.137990
2019-04-28T21:38:21
2019-04-28T21:38:21
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 from brownie import * from scripts.deployment import main def setup(): config['test']['always_transact'] = False main(SecurityToken) global token, issuer token = SecurityToken[0] issuer = IssuingEntity[0] token.mint(issuer, 1000000, {'from': a[0]}) def issuer_to_investor(...
UTF-8
Python
false
false
2,460
py
50
investor_counts.py
48
0.555285
0.460569
0
68
35.191176
67
moki/aoc2015
14,018,773,299,498
90a431a2c8633638cab7ae5c535d73d6f0c35ae0
1f28dd28e049cd0a9af1259b3213ba13fed8cb69
/day/day_03/solution.py
0621340bef611cfc69ab0795e022249ccfc59d31
[ "BSD-3-Clause" ]
permissive
https://github.com/moki/aoc2015
615b40e21a701d78afc2b38aa91e2cd6e95a5cdc
da43fccd20d154840161c022d1f3c0f70035d604
refs/heads/main
2023-03-09T13:08:50.663737
2021-02-27T13:47:59
2021-02-27T13:47:59
342,246,538
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def _hash(x, y): return hash(str(x) + "," + str(y)) def part_1(input): x, y = 0, 0 move_map = {"^": (0, 1), ">": (1, 0), "<": (-1, 0), "v": (0, -1)} house_map = dict() house_map[_hash(x, y)] = 1 for c in input: _x, _y = move_map.get(c, (0, 0)) x += _x y += _y ...
UTF-8
Python
false
false
923
py
9
solution.py
8
0.339112
0.297941
0
57
15.192982
69
JensGutow/AdventOfCode2020
12,309,376,297,589
1cd05dce127d982649967690329ccdca8a411136
b54ed58e5a6e9d8f468c1f36544d6782b276f3be
/tag_09.py
f96ddb9a8c1d8159f4a9791378d5326cbf8e2324
[]
no_license
https://github.com/JensGutow/AdventOfCode2020
c69ff3d1be5ff6cf399c4a3ecb14fa1c70323d74
9e116175f0042dacdde182424f1286801e7da131
refs/heads/main
2023-02-08T10:00:43.584837
2020-12-31T06:57:18
2020-12-31T06:57:18
322,389,060
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import itertools import time def get_puzzle(file_name): pre_Length = 5 p = [] with open(file_name) as f: p = [int(i) for i in f.read().split()] return p def check(text, p_len, i): check = [sum(x) for x in itertools.combinations(set(text[i-p_len: i]),2)] return text[i] in check text...
UTF-8
Python
false
false
1,027
py
28
tag_09.py
25
0.538462
0.518987
0
48
20.375
77
benzyp/lakewoodSimcha
19,292,993,121,140
f120e0e49e80a0831eed4c49b6af757f69ca47bc
fd2774da9a9a9d311169685eee8331aa034f4ecd
/LakewoodSimcha/app/forms.py
1a163e065c352a27176f14e71288f1908c5883b8
[]
no_license
https://github.com/benzyp/lakewoodSimcha
0d54bd343943d583347879bad971aade3eb3ef9a
02b9995eef46677f749e8ac4e29a576acf56fb3f
refs/heads/master
2020-03-13T23:31:15.342130
2018-06-19T02:55:36
2018-06-19T02:55:36
131,336,852
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Definition of forms. """ from django import forms from django.contrib.auth.forms import AuthenticationForm from django.utils.translation import ugettext_lazy as _ from django.forms import Form from app.models import Event,Venue,Customer from datetimewidget.widgets import DateTimeWidget class BootstrapAuthenticati...
UTF-8
Python
false
false
2,409
py
29
forms.py
16
0.626816
0.620589
0
57
41.280702
168
AmolPachpute/RightArm
2,130,303,821,066
ba1d0cd3ce5e70824d711bf85e884f9b8cbbb3ad
624e0e8d61887303c257c93ac77d799ed8518af5
/Projects/models.py
4ea6f2d77147cf5aaffd7d4effb51e54f1c37ecc
[]
no_license
https://github.com/AmolPachpute/RightArm
9b5f94802f669c6cc3051d8b698b0e1f400694ba
6d8cabdd9d6c2d46987935d770367a722a3274ed
refs/heads/master
2021-01-23T03:33:33.179099
2014-08-26T09:52:08
2014-08-26T09:52:08
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic from thumbs import ImageWithThumbsField from ckeditor.fields import RichTextField fr...
UTF-8
Python
false
false
7,712
py
37
models.py
35
0.653786
0.639263
0
224
33.428571
112
staccDOTsol/GitHubScraper
1,932,735,295,260
2850f500c5ad2ee9dfefa0eb2eff7493b7ea02ea
63910ef32836751a8cf24d8b8e9ec17b2fd2757c
/python.py
5cb5782ff8569cd4bd9a360f2d405bc30b9a4efe
[]
no_license
https://github.com/staccDOTsol/GitHubScraper
8222810cfc2f099df90095bfec9d45e776081d00
5fb145ca2f5a0102a8e6c36a6a5d4d8f75be6b32
refs/heads/master
2023-01-22T06:45:42.058551
2020-12-04T07:52:05
2020-12-04T07:52:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from urllib3.contrib import pyopenssl import json import re import smtplib import lxml.html as html import numpy import time import os from subprocess import * import subprocess from compiler.pycodegen import EXCEPT from multiprocessing.dummy import Pool as ThreadPool bannedIps = [] xyz = 221875000 r...
UTF-8
Python
false
false
15,731
py
2
python.py
1
0.481724
0.446507
0
455
33.540659
129
wegnerce/python_scripting
10,909,216,957,227
b5c001ccdc0616b195ad670b297cb018b5906171
b4b900170acb702b12aa77c2708f59ec2107fa49
/metagenomics/filter_blast.py
39da08b29dfad936d74df09eef601d0177df0075
[]
no_license
https://github.com/wegnerce/python_scripting
cf6435d0fa2ad41615c6ff06d44f28449904272c
6230d3f0489c67af18db5b13e48e888018b2cceb
refs/heads/main
2023-04-11T23:28:39.990998
2021-04-28T06:43:17
2021-04-28T06:43:17
362,132,027
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jan 19 10:50:17 2016 @author: calle """ # needed modules import csv import taxman as tx # required paths blast_out = "/media/STORAGE1/Stasja_pro/to_filter/mRNA_assemblies/total/total_mRNA_contigs_trans.faa.out" blast_out_filtered = "/media/STORAGE1/Stasja_pro/to_filter/mRNA_...
UTF-8
Python
false
false
826
py
156
filter_blast.py
155
0.690073
0.663438
0
24
33.416667
123
lovro-sinda/dretveno_programiranje
6,451,040,888,938
f858c1a43d44bc603f16436ce7386ff0cfb805a1
6862d9d91b40de9e15c932131d8b9cb2641c1ee2
/Moneyball/web_scraping/test.py
c6dca9bd5314587e2612c8243fd7e17eb28f6eef
[]
no_license
https://github.com/lovro-sinda/dretveno_programiranje
fdfbb0e7b00cb95b463fc75726dfb02c5a41df4a
4d972e1f50e89f5d760ae834f7075a009f2888f9
refs/heads/master
2020-05-02T04:06:29.744638
2019-09-14T09:34:31
2019-09-14T09:34:31
177,742,455
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd df = pd.read_csv("dr1.csv") df['new_column'] = 'some_value' df.to_csv('dr1.csv')
UTF-8
Python
false
false
101
py
32
test.py
6
0.653465
0.633663
0
4
24.25
31
ajeldorado/falco-python
17,274,358,496,634
87d49f54cba853fa5b4ae5b1dfda2630acea5e3b
7650c4b0404ff25c26ed5c29e544ed00e259ca50
/falco/mkl_fft.py
3a3b144cffc57e2157e2196d261aa5c0284de8a9
[ "Apache-2.0" ]
permissive
https://github.com/ajeldorado/falco-python
b32e1ab24d521a6790b4c18a96a4fa9d239c7882
406ccf60392542630a7f1f629fc020b8c8e613d2
refs/heads/master
2022-11-06T03:27:12.604912
2022-10-07T15:22:19
2022-10-07T15:22:19
137,521,218
5
2
Apache-2.0
false
2022-10-07T15:22:58
2018-06-15T18:43:56
2022-06-13T03:06:15
2022-10-07T15:22:19
7,116
5
4
0
Python
false
false
""" Wrapper for the MKL FFT routines. This implements very fast FFT on Intel processors, much faster than the stock fftpack routines in numpy/scipy. """ from __future__ import division, print_function import numpy as np import ctypes as _ctypes import os from dftidefs import * def load_libmkl(): r"""Loads the ...
UTF-8
Python
false
false
30,947
py
82
mkl_fft.py
74
0.620836
0.607943
0
891
33.73064
115
AntKazakovv/GeoJsonAnalyzer
12,189,117,210,718
8598f43192d604ea459dfb5dc7b0c14704c7bcb1
636419f778f1551e8a3744be0192a88037093352
/src/geo_tools.py
e80e4cdb218e4f50bd5e326d67ddb37203c2ec39
[]
no_license
https://github.com/AntKazakovv/GeoJsonAnalyzer
6c2537214bdc6229dbea5a93017115999c613418
9d7fdbca5202d0f52e993c67791c5d554aab4977
refs/heads/master
2023-03-24T17:37:20.081178
2020-06-03T09:24:09
2020-06-03T09:24:09
269,043,003
0
0
null
false
2021-03-20T04:11:16
2020-06-03T09:16:25
2020-06-03T09:24:20
2021-03-20T04:11:15
2
0
0
1
Python
false
false
# def checkCoordsPoint(list): import geojson dump = """{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "EPSG:3857" } }, "features": [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [0, 0] } }, { "type": "Feature"...
UTF-8
Python
false
false
2,604
py
3
geo_tools.py
2
0.464772
0.407552
0
106
23.245283
77
folkol/tutorials
13,048,110,691,827
e0bc41ce8635bfbfe483d9b8abfd771b5c81901b
81ec35443bc2567118aece66254c021e73f960d1
/python3/5.5.dictionaries.py
ed9c74be7c6566ccce9fafab234d7bea865f1114
[]
no_license
https://github.com/folkol/tutorials
95f1d641843cc26c04a79f74270721c7de4ac628
962b0fd89dac244e7f9dcb03773a25d96413fb0b
refs/heads/master
2023-08-17T18:50:18.358911
2023-08-02T20:46:53
2023-08-02T20:47:35
66,833,956
0
0
null
false
2023-09-05T03:40:46
2016-08-29T10:26:01
2021-11-24T09:15:13
2023-09-05T03:40:45
9,057
0
0
57
JavaScript
false
false
empty_dict = {} d = {'foo': 1, 'bar': 'baz', 'quz': []} print(d) print('foo' in d) # is key in dict. Sugar for b.__contains__(a) del d['foo'] # Remove key from dict print('foo' in d) # is key in dict d['foo'] = 1 print(d['foo']) d['foo'] = 2 print(d['foo']) print(list(d.keys())) # print(d['asdf']) # KeyError # d...
UTF-8
Python
false
false
1,087
py
188
5.5.dictionaries.py
115
0.593376
0.577737
0
54
19.12963
87
Faiznurullah/HacktoberFest-Python
2,044,404,454,916
542250becb021947a302004cea48bbc457d08618
a7b4e777e5e08194112594b6d4cde029c181f5a3
/codes/django-url-shortener-rest-api/api/views.py
651162451958997531ed639e7cf762d7f022bd73
[]
no_license
https://github.com/Faiznurullah/HacktoberFest-Python
b1407248d95e178a131c7f350ecccf7ae8aa7e5a
b3615869f98696de784dcc5335d9e070e05bfb00
refs/heads/main
2023-08-26T14:14:32.576035
2021-10-01T14:41:45
2021-10-01T14:41:45
412,502,808
1
1
null
true
2021-10-10T01:25:37
2021-10-01T14:38:11
2021-10-01T14:41:53
2021-10-01T14:41:45
222,376
0
1
1
Jupyter Notebook
false
false
from django.http.response import Http404, HttpResponseRedirect from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.parsers import JSONParser from .models import ShortenedURL from .serializers import ShortenedURLSerializer def home(request): "...
UTF-8
Python
false
false
2,410
py
50
views.py
22
0.675104
0.663485
0
66
35.515152
72
JKK5/BOJ
2,568,390,460,288
1e22c6afb4494747972cb31a371fece51e5f7b42
0291d961a1406802e4ff52a5dd742f08b9030583
/lv5/2.py
930c949318e72fea5c37ca1478690b3a16113d35
[]
no_license
https://github.com/JKK5/BOJ
d607a2a8d4adc498345fb62ef1cd10c39c4c5c2f
0ef1d302c14cd4514647ea23dd8b650af6bca6c8
refs/heads/main
2023-02-16T07:09:42.586297
2021-01-17T13:17:46
2021-01-17T13:17:46
328,104,093
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# lst = [] # for i in range(9): # lst.append(int(input())) # print(max(lst), lst.index(max(lst)) + 1) lst = [int(input()) for i in range(9)] print(max(lst), lst.index(max(lst)) + 1)
UTF-8
Python
false
false
189
py
26
2.py
26
0.566138
0.544974
0
9
20
42
Est17256/LAB2-Redes-Deteccion-Errores
13,056,700,621,192
88fb264a29eeeab89e3fe6565ed3a360b7aea574
60a26ca7fb99965fc572146d4e60d2134f71d5f6
/emisor.py
f9d0b3a6e70683901a1c3267d4d4450289244054
[]
no_license
https://github.com/Est17256/LAB2-Redes-Deteccion-Errores
299f08fdbe737a49bd715ae0131ceafde61dffdc
31e482ae6c2dcb6e2d45b3a02d586cf85e00891e
refs/heads/master
2022-11-26T05:42:29.646040
2020-08-06T21:08:27
2020-08-06T21:08:27
284,817,363
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
### Emisor del mensaje import re import socket import pickle ### Funciones utilizadas para la implementacion de Hamming def VerRdn(m): for i in range(m): if(2**i >= m + i + 1): return i def PosRdn(data, r): j = 0 k = 1 m = len(data) res = '' for i in range(1, m + r+1):...
UTF-8
Python
false
false
4,945
py
4
emisor.py
3
0.542164
0.517492
0
181
26.320442
97
dortania/Opencore-Legacy-Patcher
15,607,911,165,855
dd39415c7c57ca212c8a644e3939c8c6423c8ee6
7d13c03810d893447ca5b2b59c3cf46d835abad0
/resources/build/build.py
07615dafd78e3ee90b14b48d4e8c6a87628dc8c2
[]
no_license
https://github.com/dortania/Opencore-Legacy-Patcher
fdcd3dfec0ce59e9cd8f5a0a1108c9d264b28843
961c9c7a683ea9860b704523cc04d65dc4fa440c
refs/heads/main
2023-03-20T03:22:15.819393
2023-03-19T17:35:14
2023-03-19T17:35:14
315,490,189
64
15
null
null
null
null
null
null
null
null
null
null
null
null
null
# Class for generating OpenCore Configurations tailored for Macs # Copyright (C) 2020-2022, Dhinak G, Mykola Grymalyuk import copy import pickle import plistlib import shutil import zipfile from pathlib import Path from datetime import date import logging from resources import constants, utilities from resources.buil...
UTF-8
Python
false
false
5,856
py
16
build.py
12
0.677083
0.669399
0
125
45.848
200
webclinic017/asyncdb
13,443,247,637,179
6afb4dcff5918cb756481051c96d8b99d3a3cece
f50598c605d8299c8093a8c4eba6006c7616912d
/asyncdb/providers/mysql.py
c008acfa4cf5ddbc4e2c473f359e1909de590dd0
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
https://github.com/webclinic017/asyncdb
5e87bd8bce6780fdcfa6ef9dfc9129b299a49425
2fe94c719c88397d42b38cd8e2954be8eec3eee9
refs/heads/master
2023-08-31T09:17:32.841163
2021-10-20T17:34:38
2021-10-20T17:34:38
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import asyncio import json import time from datetime import datetime import aiomysql from asyncdb.exceptions import ( ConnectionTimeout, DataError, EmptyStatement, NoDataFound, ProviderError, StatementError, TooManyConnections, ) from asyncdb.providers import ( ...
UTF-8
Python
false
false
23,819
py
77
mysql.py
61
0.513288
0.51165
0
722
31.990305
193
skrla/OOP_JAVA_PHP_PYTHON_SWIFT
4,346,506,951,515
59a9f2bcfb761f6125af7c045b6fd8876cb2998c
7dd0b989cb4915f9a04361da49f0c10775209c86
/Python/model/Partija.py
bee25d69f4a22a311c7baf1f38921d379ce532bf
[]
no_license
https://github.com/skrla/OOP_JAVA_PHP_PYTHON_SWIFT
aa55771ccbb1406bcd2ac6b6699145403835cc75
ecb79d79cf8c6e78f8e330f73a4d7a6f438a925a
refs/heads/master
2023-03-29T05:57:05.824323
2021-03-28T12:20:03
2021-03-28T12:20:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from model.Entitet import Entitet from model.Igrac import Igrac from model.Lokacija import Lokacija from model.Rezultat import Rezultat class Partija(Entitet): def __init__(self, sifra=None): super().__init__(sifra) self._do_koliko_se_igra = 501 self._lokacija = Lokacija() self._un...
UTF-8
Python
false
false
2,082
py
88
Partija.py
67
0.599904
0.597983
0
74
27.135135
108
FujitaHirotaka/djangoruler3
17,471,926,973,275
0cf324e4784b2b933bec45adc7129823a054d5df
c1c7214e1f9230f19d74bb9776dac40d820da892
/examples/css辞書/dropshadow/box-shadow/project/app/forms.py
1bc8d7ad974bab511d23f93c0df35a2810c133de
[]
no_license
https://github.com/FujitaHirotaka/djangoruler3
cb326c80d9413ebdeaa64802c5e5f5daadb00904
9a743fbc12a0efa73dbc90f93baddf7e8a4eb4f8
refs/heads/master
2020-04-01T13:32:28.078110
2018-12-13T00:39:56
2018-12-13T00:39:56
153,256,642
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from .models import * from django.urls import reverse from django.urls import reverse_lazy from pathlib import Path bathpath=Path.cwd()/"app"/"static"/"app"/"images" class CssForm(forms.Form): value1=forms.IntegerField(label="第一パラメーター(水平方向の影のオフセット距離 px)", help_text="正負の値可") value2=fo...
UTF-8
Python
false
false
840
py
300
forms.py
136
0.753226
0.746774
0
14
43.071429
85
ivanAbregu/ci
15,710,990,396,127
487d2767a1308b1f1cbd958c84ab804f6b6a03a9
3931c14aca58e2149a6440245e363807732a17fd
/test_sum.py
c4dbe8a85463e9df1aabb1a9a1cfaa49c34d5307
[]
no_license
https://github.com/ivanAbregu/ci
830ee297a5b469cdd2e05583ac3fe85ea34ee179
5d473b17a7a15223acbda50bf993254b40977aff
refs/heads/master
2020-12-31T10:10:04.149824
2020-03-09T02:10:50
2020-03-09T02:10:50
238,993,606
0
0
null
false
2020-06-04T18:07:20
2020-02-07T18:08:56
2020-03-09T02:10:53
2020-03-09T02:13:35
18
0
0
1
Python
false
false
import unittest from sum import custom_sum class MyTestCase(unittest.TestCase): def test_custom_sum(self): self.assertEqual(custom_sum(1, 1), 2) def test_sum_big(self): self.assertEqual(custom_sum(5000, 5000), 10000) if __name__ == '__main__': unittest.main()
UTF-8
Python
false
false
291
py
3
test_sum.py
2
0.652921
0.597938
0
12
23.25
55
mtianyan/LeetcodePython
18,674,517,806,581
c0487f6a371675ec41070859ac5475b0471ef670
7f57c1bc457f693d1e2b482bd92180b5f619d3bb
/easy/7-0706/160-intersection-of-two-linked-lists.py
4322be9e165f9c752b96f7f5c1db0975101f5fbf
[]
no_license
https://github.com/mtianyan/LeetcodePython
17694eed256886a075208264904ac1533df71d03
6880de6f92d8b6bf9223656f356831fb2b475202
refs/heads/master
2023-07-11T19:46:54.388781
2023-07-06T15:59:34
2023-07-06T15:59:34
331,367,286
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode: A, B = headA, headB while A != B: A = A.next if A else headB B = B.next if B else headA return A class Solution: def getIntersectionNode(self, headA: ListNode, headB: Li...
UTF-8
Python
false
false
1,064
py
138
160-intersection-of-two-linked-lists.py
137
0.496241
0.496241
0
42
24.333333
90
specialkgb/StudyCrawl
14,242,111,602,883
33da6bd239094245c160d5dca801e3f4008d257d
0cb2a54f19435afb72181500979f53c6edc15ca2
/apart/boardpage.py
7aa35503b71e18f812ce494f0cc2dd45d6a3ce41
[]
no_license
https://github.com/specialkgb/StudyCrawl
3c1ba953fdc234a7bbf1a5de6c1bef34c270d410
8385cafde8883d9e49eef162a39fb31e1e75f88c
refs/heads/master
2022-11-10T15:30:49.187134
2020-06-18T07:29:39
2020-06-18T07:29:39
273,171,856
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import requests from bs4 import BeautifulSoup cnt = 0 for page in range(1, 6): list_url = 'http://news.sarangbang.com/bbs.html?tab=free&p={}'.format(page) resp = requests.get(list_url) if resp.status_code != 200: print('WARNING: 잘못된 URL 접근') soup = BeautifulSoup(resp.text, 'html.parser') ...
UTF-8
Python
false
false
1,501
py
5
boardpage.py
5
0.570681
0.550486
0
43
30.116279
118
pratik-ingle/Planar-VTOL
14,259,291,427,562
d986ed67dd4ba10df9921c088f86c0fa2e1cb724
e18409e0455d020e536d87e68fd8e115aedb7a8f
/Observers:Disturbance/hw13/vtolController.py
586314cef67f8f96822bbe69b495b5a0c82a3b4b
[]
no_license
https://github.com/pratik-ingle/Planar-VTOL
28c8d8ca13200c37cc5880b81a4acc0435afd55f
82a8c8a608d4a438fd847d7c42d11fcf81319475
refs/heads/main
2023-04-25T00:27:13.900226
2021-05-19T17:35:47
2021-05-19T17:35:47
321,948,258
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import vtolParamhw13 as P import vtolParam as P1 class PDController: def __init__(self): self.x1_hat = np.array([ [0.0], # initial estimate for z_hat [0.0], # initial estimate for theta_hat [0.0], # initial estimate for z_hat_dot [0.0]]...
UTF-8
Python
false
false
7,378
py
22
vtolController.py
21
0.504608
0.483464
0
213
33.633803
87
OpenHack-Eyes/Eyes_WebServer
17,480,516,921,188
af5ec875f82ee7f58f9908259a0fa76cfeb33b73
363811bab819cde2d1ea0e6793db48a46b69032d
/app/ObjectMapper.py
e363a393d347403b6776e2c28487d945e3ef4bf3
[]
no_license
https://github.com/OpenHack-Eyes/Eyes_WebServer
6342166887fa168976fd138a07165a20afb6a1dc
8a7ecbfadd094762b116ca73e6760c680a6019bb
refs/heads/master
2020-03-21T20:45:27.571508
2018-06-30T02:55:39
2018-06-30T02:55:39
139,026,174
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from app.Model import HistoryVO, PatientVO def get_histories(histories): history_list = [] for history in histories: # a에서 안쪽 리스트를 꺼냄 history = HistoryVO.HistoryVO(history[0], history[1], history[2], history[3], history[4], history[5], history[6]) history_list.append(history.serialize()) ...
UTF-8
Python
false
false
437
py
11
ObjectMapper.py
7
0.702638
0.685851
0
13
31.153846
121
gavin0430/Visual-Recognition-using-Deep-Learning
5,677,946,791,583
6cd84677367ecde58444705dfa7c4fd0aa940d06
0b9f931ad846b7d75aba1895251223ef5874cbd9
/lab1/HW1.py
c271a6915fc8b47b014ac3454e7c4f5192b78b0f
[]
no_license
https://github.com/gavin0430/Visual-Recognition-using-Deep-Learning
89486064fb1a3b0b47f87ceb933f42b879bfccc1
1a96329e65a9850adf797ef6922417266b018fe8
refs/heads/master
2020-08-07T22:03:46.756427
2019-12-25T15:47:31
2019-12-25T15:47:31
213,599,424
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import os import time import numpy as np import pandas as pd import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader from torchvision import datasets from torchvision import transforms import torchvision.models as m...
UTF-8
Python
false
false
6,221
py
5
HW1.py
2
0.621926
0.593634
0
222
27.018018
149
MinseokJGit/dd-klee
2,370,821,967,776
cc849ea8f4fbeb04f69171d84ac1889c7b913a13
880451e55a554b4e730fb838faedbec4f6be8037
/paradyse/subscripts/check_w.py
038572f150e07051d08450c547463c68e55a0de4
[]
no_license
https://github.com/MinseokJGit/dd-klee
a61c09bbd3fb3cedda651fa65a96f4b62c9417b0
eb23ae83b5f8432ee693e43ab98d22311d359d4a
refs/heads/master
2023-09-01T15:31:12.648356
2021-01-14T11:41:14
2021-01-14T11:41:14
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from multiprocessing import Process, Value, Queue import signal import subprocess import os import sys import random import json import argparse import datetime import shutil import re import glob import subprocess from subprocess import Popen, PIPE import time from threading import Timer import math start_time = dat...
UTF-8
Python
false
false
7,562
py
39
check_w.py
27
0.554351
0.546681
0
217
33.847926
157
zzf-technion/EduParser
3,298,534,930,244
b0676d44d1c5d2cf44cb8da28eebca6614f64bba
0140dbcd57d17ba82f32ead44cebe61f0e25a91a
/eduParser/out/ustc/信息科学技术学院/MyHandler.py
2415afb07658ff4a31c2e2e7c194bf4ee7f39f8b
[]
no_license
https://github.com/zzf-technion/EduParser
03b59d1e614c2cb21fdaf8339c6c06090545f4ae
05f17dbc7e5eb3d063eeac01e266646b5d073556
refs/heads/master
2020-06-16T14:52:48.288113
2016-01-06T00:50:27
2016-01-06T00:50:27
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 import os from models import Employee from bs4 import BeautifulSoup from config import Config from mparser import ProfileParser from mparser import get_doc_bySelenium import re # @brief: 函数将过滤结果转化为Employee数据 # @tag: 输入为待处理的BeautifulSoup的tag对象 # @output:输出employee def handler(tag): tds = tag.find_al...
UTF-8
Python
false
false
1,338
py
176
MyHandler.py
21
0.584496
0.572093
0
54
22.888889
97
luqiang6q/mobile_detect
10,402,410,814,467
dc4468e93e8cf6581bfe4e32f8d2ba26c9b265c6
923a0c9396169f9c7831efe943a3637b63a4085c
/configs/mbv3_config.py
b9e3fac701f296f648f37f20bd0fcc5e020f431c
[]
no_license
https://github.com/luqiang6q/mobile_detect
00e6bef9405a8010f6072c1a61422326d88eafaa
eceda8d262744932eac7eff1d98972c785419e3a
refs/heads/master
2022-04-05T06:32:03.657194
2020-02-21T03:12:36
2020-02-21T03:12:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#-*-coding:utf-8-*- import os import numpy as np from easydict import EasyDict as edict config = edict() os.environ["CUDA_VISIBLE_DEVICES"] = "0" ##if u use muti gpu set them visiable there and then set config.TRAIN.num_gpu config.TRAIN = edict() #### below are params for dataiter config.TRAIN.process_num ...
UTF-8
Python
false
false
3,788
py
9
mbv3_config.py
7
0.667371
0.615892
0
93
39.741935
127
gloriamaris/designsouth-reg
5,841,155,544,621
f15be12ae2341b7bea6195dc0ba486785528f751
45a81062272778f3da70f1a00e39913527e93d1f
/designsouthreg/local/__init__.py
6cb49dceec514f1006a65c832dadfd8849c7e632
[]
no_license
https://github.com/gloriamaris/designsouth-reg
b92d69fd8a280aaf8525eec7056981482368967e
dc86214a41fec548c91469ae393a6a45e2144811
refs/heads/master
2020-04-08T19:52:19.163144
2018-11-30T15:39:55
2018-11-30T15:39:55
159,674,159
1
0
null
false
2018-11-29T16:12:47
2018-11-29T13:55:49
2018-11-29T15:02:28
2018-11-29T16:12:46
12
0
0
0
Python
false
null
/home/monique/Documents/Projects/Personal/designsouthreg/designsouthreg/__init__.py
UTF-8
Python
false
false
83
py
7
__init__.py
6
0.843373
0.843373
0
1
83
83
nguyenduchien1994/Secret_Sharing
14,774,687,530,419
b2766cbcd1a960b582b8f6b31b69dd101957d938
0c0b8edd6947cf0fcd66ff74d8f0242e9182645f
/SecretRecon.py
aed365eabc293e5f1933cdf0c5f7fa87e97baa8d
[]
no_license
https://github.com/nguyenduchien1994/Secret_Sharing
ae806a85b736574a5e734a5f2be5808d8066fa3d
d3ea632113f7d17c925d98f7062e69078712ecb3
refs/heads/master
2020-04-05T11:22:30.706424
2017-07-07T16:47:45
2017-07-07T16:47:45
81,397,311
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.path.append("/ad/eng/users/h/e/heinous/Desktop/Research/Secret_Sharing/Finite-Field") sys.path.append("/home/heinous/Desktop/Research/SecretSharing/Secret_Sharing/Finite-Field") import ffield class SecretRecon(): def __init__(self,f): self.f = f self.F = ffield.FField(self.f) ...
UTF-8
Python
false
false
1,029
py
16
SecretRecon.py
7
0.559767
0.541302
0
32
31.15625
91
ibraaaa/news-credibility
644,245,096,681
55aac651386100719cf558f569cfd58c4d796867
e914c69576b89833b7ead49569701f4a97958f3a
/src/python/parsers/html_parser.py
dacff6c95db50c53c959775baed79d8b0bc734bb
[ "Apache-2.0" ]
permissive
https://github.com/ibraaaa/news-credibility
3c439be20db18d3f364f3e19b460d952ae1272b8
cae1009d9def17c058342c3dee969f2babcd0c9e
refs/heads/master
2020-04-15T08:14:50.190724
2019-01-07T00:20:35
2019-01-07T00:20:35
164,347,496
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import lxml.html import os.path import threading import traceback import util.const as CONST import util.db as db import util.helper as helper from multiprocessing import Pool class HTMLParser(object): def __parse_shorouk(self, html_): page_ = lxml.html.fromstrin...
UTF-8
Python
false
false
27,039
py
155,526
html_parser.py
19
0.535839
0.527212
0
634
41.602524
176
omkar6644/Python-Training
14,886,356,656,142
b7b4f9f8aa35d2dc887efa3948f09a1cbfb7bb76
cd91d4c2cef458ef0d82f4daed3fad0247e2d3c5
/Doubly_Linked_List.py
9dec6399b1d07a41abc290b8ff0e9f1bb08a06ca
[]
no_license
https://github.com/omkar6644/Python-Training
bde04eeffd0853d01d966eeeec8cc44300edda78
f8212dccf2dddd6acc6cff4164d2d27324bf9564
refs/heads/main
2023-05-28T10:58:41.427295
2021-06-11T12:01:39
2021-06-11T12:01:39
364,865,236
0
0
null
false
2021-05-11T11:53:27
2021-05-06T10:03:23
2021-05-11T11:52:14
2021-05-11T11:53:26
12
0
0
1
Python
false
false
class Node: #Node class constructor to initialize data, next, prev def __init__(self, value): self.value = value self.next = None self.prev = None class DoublyLinkedList: #Linkedlist class constructor to initialize head def __init__(self): self.head = None ...
UTF-8
Python
false
false
3,246
py
49
Doubly_Linked_List.py
40
0.520025
0.514171
0
130
22.969231
58
Mokona/La-Grille
8,074,538,565,302
53fb81a0503e849c9bc543c48e1bb45ebbb70016
81ea71bd0cd9eba88abccfa1b112d7bd7dba661e
/build/site_scons/UnitTestBuilder.py
872fd43be2528c7bacf43d619726e075d7b398fb
[]
no_license
https://github.com/Mokona/La-Grille
83751b5a25a21d3dc71b02f9a36e3038f159ab15
6a1d1d15601e04eed8b62fce287e16be16dd5157
refs/heads/master
2016-08-03T12:42:11.787930
2010-02-12T22:25:09
2010-02-12T22:25:09
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Unit testing builder import os import os.path def builder_unit_test(target, source, env): app = str(source[0].abspath) if os.spawnl(os.P_WAIT, app, app)==0: open(str(target[0]),'w').write("PASSED\n") else: return 1
UTF-8
Python
false
false
258
py
126
UnitTestBuilder.py
119
0.593023
0.577519
0
10
23.6
50
1068171/CSE-Novello-Final
3,917,010,187,549
b6e09fafd327a140387683fccf1e0fb8d9bf4a52
8d5523b0b049246475e8bca1af4cd043c612a18c
/Compare_Factors_Final.py
1ac38b86e19b217590001038780cd9c901f522ad
[]
no_license
https://github.com/1068171/CSE-Novello-Final
08c3ee43d4015204a7a4e93b692d2fcb47ef2a7d
7c8c568ec9aefacaeb712aee64fb60102d528fc5
refs/heads/master
2016-09-14T18:53:15.432698
2016-05-25T00:06:21
2016-05-25T00:06:21
59,050,028
0
10
null
false
2016-05-24T16:42:05
2016-05-17T18:52:15
2016-05-19T20:13:45
2016-05-24T16:42:05
29
0
9
1
Python
null
null
def compare_factors(list1, list2): length_1 = len(list1) length_2 = len(list2) list_1_factors = [] list_2_factors = [] factors_length_1 = len(list_1_factors) factors_length_2 = len(list_2_factors) longer_factors_list = list_1_factors shorter_factors_list = list_2_factors overlap...
UTF-8
Python
false
false
2,302
py
5
Compare_Factors_Final.py
4
0.620765
0.598175
0
61
36.754098
121
openvinotoolkit/nncf
455,266,542,980
b228e6de6f116ff601e35b2f332a21a20ba1765e
62179a165ec620ba967dbc20016e890978fbff50
/examples/torch/classification/main.py
2854c894f0a8a93f854d8900b264aa0339c1ade8
[ "Apache-2.0" ]
permissive
https://github.com/openvinotoolkit/nncf
91fcf153a96f85da166aacb7a70ca4941e4ba4a4
c027c8b43c4865d46b8de01d8350dd338ec5a874
refs/heads/develop
2023-08-24T11:25:05.704499
2023-08-23T14:44:05
2023-08-23T14:44:05
263,687,600
558
157
Apache-2.0
false
2023-09-14T17:06:41
2020-05-13T16:41:05
2023-09-14T12:38:03
2023-09-14T17:06:41
39,847
659
176
65
Python
false
false
# Copyright (c) 2023 Intel Corporation # 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 law or agreed to in writ...
UTF-8
Python
false
false
30,918
py
1,665
main.py
873
0.630709
0.616121
0
793
37.986129
119
nocproject/noc
11,063,835,788,638
e81994eeab9846d29b19f3ff5ad1469a97ac2ea2
2337351b228818e41be3002bd38f68f77c2aa074
/bi/models/reboots.py
4478010291c1ef641e77583dd04377b38e0474ba
[ "BSD-3-Clause" ]
permissive
https://github.com/nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
false
2023-07-31T07:57:45
2017-10-21T21:04:33
2023-07-18T16:58:03
2023-07-31T07:46:42
91,288
103
29
14
Python
false
false
# ---------------------------------------------------------------------- # Reboots model # ---------------------------------------------------------------------- # Copyright (C) 2007-2017 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # NOC modules fr...
UTF-8
Python
false
false
3,339
py
10,368
reboots.py
4,525
0.656484
0.651093
0
76
42.934211
99
lucther/akshare
16,363,825,398,911
0589c0d67b0bb192647136ec65f32950eaf726c0
894d085e3c19d0eb052d7fceaa668ab326e7a64b
/akshare/stock_feature/stock_three_report_em.py
e1ec3569b3839753dd0e57578230303976862245
[ "MIT" ]
permissive
https://github.com/lucther/akshare
cf7cf750716d9c7f118f6bb72aed11c3bb690d2b
b4fbceaa7fcb9cc26936ddb448a212468b3a02ba
refs/heads/master
2023-09-02T01:25:53.760317
2023-08-22T08:48:32
2023-08-22T08:48:32
249,578,209
0
0
null
true
2020-03-24T00:52:30
2020-03-24T00:52:30
2020-03-23T13:49:48
2020-03-23T12:37:01
258,348
0
0
0
null
false
false
# -*- coding:utf-8 -*- # !/usr/bin/env python """ Date: 2023/8/22 14:20 Desc: 东方财富-股票-财务分析 """ from functools import lru_cache import pandas as pd import requests from bs4 import BeautifulSoup from tqdm import tqdm @lru_cache() def _stock_balance_sheet_by_report_ctype_em(symbol: str = "SH600519") -> str: """ ...
UTF-8
Python
false
false
15,845
py
21
stock_three_report_em.py
20
0.616166
0.597361
0
412
35.783981
107
sushku/leetcode-py
5,411,658,841,195
3d1d6935880a9739f6059449538c84554c9af892
d141d6a9507c864ad335c56070882d4c5bf8b04c
/0011-container-with-most-water.py
a09edce72a035b7b0f92689d31900f4f41486756
[]
no_license
https://github.com/sushku/leetcode-py
c692d0850c7cc175ae663ddbe6f682fec47dabaf
997b89c985c1dcf8c4c6e3c607d6b1f0ac730a8b
refs/heads/master
2021-01-19T02:40:58.322798
2017-03-26T06:24:56
2017-03-26T06:24:56
65,436,658
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def maxArea(self, height): """ :type height: List[int] :rtype: int """ i = 0 j = len(height) - 1 max_area = 0 while i < j: h = min(height[i], height[j]) area = h * (j - i) max_area = max(area,...
UTF-8
Python
false
false
537
py
17
0011-container-with-most-water.py
16
0.407821
0.387337
0
21
24.571429
43
csesoumita/TwitterDataAnalysis
7,086,696,086,691
9b7edc305a0b8d4f7338797ea0f1f68a68913eef
33ed6bf1f503e073ad1946216f337ec3caa9e3dd
/REST_API_Twitter.py
d1c90d5e055e495bd3612c9d51091868be18a706
[]
no_license
https://github.com/csesoumita/TwitterDataAnalysis
f4a10311bdead268aa6b3438edba41453b98c4bc
776cacc29b199bfa62b9e63dad77c5daa73650b2
refs/heads/master
2021-08-17T09:29:07.034056
2020-06-22T03:44:42
2020-06-22T03:44:42
195,810,180
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Program for Twitter Data Crawling via REST API using tweepy Start import tweepy from pymongo.mongo_client import MongoClient class filter_Twitter: # Accessing the Authentication Keys API_key="" API_secret_key = "" Access_token = "" Access_token_secret = "" # Passing objects for Twit...
UTF-8
Python
false
false
1,456
py
9
REST_API_Twitter.py
7
0.675824
0.675824
0
40
34.25
73
consaceves/csc210-project
5,274,219,841,875
bdc2e80cd37f4a2346c5a19dfee71fe87be77f7b
2f4640dfec53a65a26d61b17b3684a34552374b2
/tests/__init__.py
1a6f474ad2169c94a7d392bda710adcd68c282d5
[]
no_license
https://github.com/consaceves/csc210-project
e472242cdad81f643c18e471d204048f74de0939
a199a0759f5939189de73ade60ef2cd4b2a94ae6
refs/heads/master
2022-12-11T11:32:03.041038
2019-12-11T00:41:12
2019-12-11T00:41:12
218,378,045
0
0
null
false
2022-12-08T01:50:18
2019-10-29T20:31:56
2019-12-11T00:41:21
2022-12-08T01:50:18
5,262
0
0
10
HTML
false
false
import unittest from app import create_app, db class BaseTest(unittest.TestCase): def create_app(self): return create_app() def setUp(self): self.app = self.create_app() self.client = self.app.test_client with self.app.app_context(): from app import models ...
UTF-8
Python
false
false
571
py
28
__init__.py
15
0.556918
0.556918
0
26
20.961538
42
sreejithev/pythoncodes
627,065,248,120
ab256fb06856c39f20bd0ab6481f67057ca71a48
5a4436884af5341ce855c0e84866b972a0f61c05
/day4/classes/tests/a.py
9bd7ba8bf794a4dc3d74485131ffd21b4c76d0be
[]
no_license
https://github.com/sreejithev/pythoncodes
74a420c4f025b893e27f17ba85632a4a096f17fd
70df14871a9687916d1c4ada76c055607f13e8ce
refs/heads/master
2021-01-21T20:59:47.056167
2017-06-19T09:43:17
2017-06-19T09:43:17
92,292,259
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
dec = 567 print ("decimal value is",dec) print (bin(dec),"in binary")
UTF-8
Python
false
false
70
py
376
a.py
344
0.671429
0.628571
0
3
22.333333
30
uktrade/lite-exporter-frontend
8,839,042,700,040
dd64151b73b505878895f85493ff5089db3b982c
a402fc7de174d6610063e087ba2f82b658dca5f2
/end_users/urls.py
41f3d1f3cd830c88bbd2b064cf20dfbc115197d2
[ "MIT" ]
permissive
https://github.com/uktrade/lite-exporter-frontend
bdd8e1c3a40bbc82076f1253cab408974e23632d
cf42ac37a21236486aa303c8935c44a7eba91ef5
refs/heads/master
2021-07-15T04:32:22.105366
2020-07-24T09:47:31
2020-07-24T09:47:31
175,791,659
3
1
MIT
false
2020-08-05T10:20:10
2019-03-15T09:41:41
2020-07-24T09:47:35
2020-07-24T10:22:18
2,646
3
1
0
Python
false
false
from django.urls import path from end_users import views app_name = "end_users" urlpatterns = [ path("", views.EndUsersList.as_view(), name="end_users"), path("<uuid:pk>/", views.EndUserDetailEmpty.as_view(), name="end_user"), path("<uuid:pk>/copy-advisory/", views.CopyAdvisory.as_view(), name="copy"), ...
UTF-8
Python
false
false
497
py
320
urls.py
210
0.67002
0.67002
0
13
37.230769
89
judithnat/shoppingList
15,427,522,530,844
289c8a38f78a20c758b5878a624ad02112d3288c
262308480e2f7052592ee95580be672b54f03a8e
/shoplistapp/urls.py
274a3f3e989db8753b78801e7ea088b239dafe5b
[]
no_license
https://github.com/judithnat/shoppingList
9e2d930c6366b41df886623a5211f8be5476c04d
a1ab38c4f5b2bac1abb5fb2f37dccb63ef7cadec
refs/heads/master
2020-03-24T15:31:04.064567
2018-07-29T21:46:08
2018-07-29T21:46:08
142,792,405
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.ItemList.as_view(), name='shop_list'), url(r'^item/(?P<pk>\d+)/$', views.item_detail, name='item_detail'), url(r'^item/new/$', views.ItemCreate.as_view(), name='item_new'), url(r'^item/(?P<pk>\d+)/edit/$', views.item_...
UTF-8
Python
false
false
454
py
12
urls.py
6
0.618943
0.618943
0
15
29.333333
72
krakowiakpawel9/live-python
15,522,011,823,062
8fa34951c61966a497c4f2333451009ea35148ae
1ab52d160b72f4b5bc6776175c1a8aaf3cb86e0a
/fb-posts/02_pathlib/18_pathlib.py
f1196f7066b3aa6b58c5d09aaacf5bcf6207dbec
[]
no_license
https://github.com/krakowiakpawel9/live-python
ea3598ceeafca827b53efdf71a6d3156a6fa25b4
237b186b48b51f58450290f5ed0146041e0a1135
refs/heads/master
2021-04-17T06:10:53.141136
2021-03-06T09:53:47
2021-03-06T09:53:47
249,418,666
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from pathlib import Path base_dir = Path.cwd() / 'reports' if not base_dir.is_dir(): base_dir.mkdir() fnames = [f'{str(i).zfill(2)}_sales.txt' for i in range(1, 13)] paths = [Path.cwd() / base_dir / f'{fname}' for fname in fnames] for path in paths: path.touch()
UTF-8
Python
false
false
276
py
70
18_pathlib.py
68
0.630435
0.615942
0
11
23.909091
64
elvesmrodrigues/Kcore_Expert_Finding
7,387,343,788,475
ff0f2ee460cd14ccfd86536ba89b58dde549d51d
f9efe2ce2325ad3d5d3c5762f3c85e51a2612ea8
/expert_finding/script/content_embedding.py
365ace7ec2d69b2eca78c26dd26881e380cbc565
[]
no_license
https://github.com/elvesmrodrigues/Kcore_Expert_Finding
3e3347fa77b51d81999fcac12ac9a7324568763e
c03174640f62771492805fb6cbb08f3d2ba6f88f
refs/heads/main
2023-06-25T03:42:15.155785
2021-07-26T12:57:22
2021-07-26T12:57:22
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import expert_finding.script.finding_pipline as expert import expert_finding.finetuning.network as net_model import os current_dir = os.path.dirname(os.path.abspath(__file__)) work_dir = os.path.join(current_dir, "output/data") def content_embedding_finding(): models = ["tfidf", "GloVe", "sci_bert_nil_sts"] ...
UTF-8
Python
false
false
1,067
py
61
content_embedding.py
42
0.682287
0.665417
0
25
41.68
99
Aasthaengg/IBMdataset
2,705,829,421,953
db028e48eabea08f1691ba7f712dd730e9fdd144
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03167/s904500920.py
57bd79e056e177c6d9f615c4ea73ddc64ad7fde5
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from collections import defaultdict readline = sys.stdin.buffer.readline sys.setrecursionlimit(10**8) def geta(fn=lambda s: s.decode()): return map(fn, readline().split()) def gete(fn=lambda s: s.decode()): return fn(readline().rstrip()) def main(): mod = 10**9 + 7 H, W = geta(int) ...
UTF-8
Python
false
false
898
py
202,060
s904500920.py
202,055
0.447661
0.426503
0
40
21.475
69
CUUATS/geojson-vt-py
6,279,242,206,438
aadeeb66ab4ba49a900f49a452b515e2a322516a
05610a560d95ceec420600e4e001aa6614283a0d
/tests/test_full.py
dbbf0aa2d398d9663623f2c258c5e7b609b02d5d
[ "ISC" ]
permissive
https://github.com/CUUATS/geojson-vt-py
301b646ceda9bccf024f66ff962d89378a99a98e
e7b2d68a460679690375a034aae12553fea953dc
refs/heads/master
2021-10-02T20:41:46.389173
2018-11-30T17:03:26
2018-11-30T17:03:26
119,899,784
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest from .gen_tiles import genTiles from .utils import load_json, json_str class TestFull(unittest.TestCase): def _tiles_equal(self, inputFile, expectedFile, maxZoom=0, maxPoints=10000): tiles = genTiles(load_json(inputFile), maxZoom, maxPoints) expected = load_js...
UTF-8
Python
false
false
1,499
py
20
test_full.py
19
0.650434
0.643763
0
45
32.311111
79
marcosanchezdenis/laborapp-uc-back
4,707,284,171,757
7e78ae807b5eab53aa2fdd96c0872b2ab988ac61
5c23d7c8c2ede17698c7a0111138ec6de7a9d315
/network/migrations/0003_auto_20190210_1432.py
9b25b5ec78a5c341aa9654aa3308952142657f35
[]
no_license
https://github.com/marcosanchezdenis/laborapp-uc-back
90d9326514292955901e2e90d099b42472da4475
0eb2b7843b36cc9666acd675b4badfe715692eee
refs/heads/master
2020-05-07T21:19:02.759391
2019-04-12T00:32:52
2019-04-12T00:32:52
180,899,633
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.5 on 2019-02-10 14:32 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('network', '0002_customer_user'), ] operations = [ migrations.AddField( ...
UTF-8
Python
false
false
1,806
py
59
0003_auto_20190210_1432.py
59
0.581949
0.570321
0
55
31.836364
119
rephus/django-rest-template
17,428,977,297,311
044729e53fb2c4a1b340c76dde51db947d81118c
bfbf35361169bdd0daae677570aab5ef498eb99c
/project/todo/models.py
cfa4bff064905c02e1133f80595e633fabe9d8f4
[]
no_license
https://github.com/rephus/django-rest-template
306e29a5108874efcdabd8c38457a79029da7f61
a088dd426fed3733ed7b1153919545a5cccd997c
refs/heads/master
2020-04-15T14:42:55.913531
2019-01-11T00:56:45
2019-01-11T00:56:45
164,764,315
3
8
null
null
null
null
null
null
null
null
null
null
null
null
null
import uuid from django.db import models from django_extensions.db.models import TimeStampedModel class Task(TimeStampedModel, models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) title = models.CharField(max_length=200) description = models.CharField(max_length=200, ...
UTF-8
Python
false
false
476
py
12
models.py
8
0.771008
0.756303
0
11
42.272727
87
simtol/EffectivePython2nd
19,198,503,821,466
ddc334e16aea80888c1e77238eedcf958323bd3f
a0bd18d49044bcb38bb8b0f9d5983cad0cf5461a
/master/chapter8/item72.py
5ea606e27bde285136fc18b7a631f0e26b9edcb3
[]
no_license
https://github.com/simtol/EffectivePython2nd
40d14256cbbfcd041427611bfcd54fd521046c3c
913782212ec0952f59d6ded8566fe797b3ac7978
refs/heads/main
2023-03-01T09:21:29.987291
2021-02-12T02:06:12
2021-02-12T02:06:12
338,195,148
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # 아이템 72 # data = list(range(10**5)) index = data.index(91234) assert index == 91234 def find_closest(sequence, goal): for index, value in enumerate(sequence): if goal < value: return index raise ValueError(f'범위를 벗어남: {goal}') index = find_closest(data, 91234.56) assert ind...
UTF-8
Python
false
false
1,488
py
58
item72.py
52
0.627566
0.571114
0
59
21.084746
71
YirongMao/COSONet
14,233,521,655,833
e10aba3ec6524571f8d505584a2c747e28c36302
05844d09831bd2b816d9a4b3f3001d04705e601f
/read_utils.py
075de1f13c0687f9b662d3cd77a09623d90854d3
[]
no_license
https://github.com/YirongMao/COSONet
78dba9e9501889d794e97d1b73a658159fc944d6
20e92c577ff448588e82c603f4bcc785be90f615
refs/heads/master
2020-04-08T04:23:18.762943
2018-12-27T07:00:25
2018-12-27T07:00:25
159,014,162
11
2
null
null
null
null
null
null
null
null
null
null
null
null
null
from PIL import Image import PIL import os import os.path import torch.utils.data as data import numpy as np import torchvision.transforms as transforms import time # input_image_size = 224 webface_train_transforms = transforms.Compose([ transforms.RandomCrop(224), transforms.RandomHorizontalFlip(), transf...
UTF-8
Python
false
false
2,248
py
12
read_utils.py
10
0.564947
0.536922
0
83
26.084337
101
zaheerkhancs/QuantumNeuralNetwork
13,735,305,460,930
9170e311838d86c5c155750a147dbb659def9a53
4eeee252acc1a6b55fbb981ed08110047bd3d017
/data_processor.py
adcfa97b4393d7230c3037db1ce06af7bed21b08
[]
no_license
https://github.com/zaheerkhancs/QuantumNeuralNetwork
58e58d044ca4389438ca4c370bb6dbb7760cf392
ce5654c36d45868cf5a7a53bef460f41e19e6c5d
refs/heads/master
2022-02-20T22:08:07.618034
2019-09-17T04:32:21
2019-09-17T04:32:21
208,957,603
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2018 Xanadu Quantum Technologies Inc. # 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 law or agre...
UTF-8
Python
false
false
2,675
py
5
data_processor.py
2
0.748037
0.731963
0
66
39.530303
119
mst-solar-car/kicad-bom-generator
19,653,770,369,592
c85a270c8bc7c2726c29efd2adc067c938ca2ed9
cbc5e26bb47ae69e80a3649c90275becf25ce404
/Formatter/excel_formatter.py
8f93a89358022a62fa75644c8f7ab99664d2e7da
[ "MIT" ]
permissive
https://github.com/mst-solar-car/kicad-bom-generator
c3549409c3139f787ad28391372b5cb03791694a
2aae905056d06f3d25343a8d784049c141d05640
refs/heads/master
2021-09-07T14:00:40.759486
2018-02-23T23:21:13
2018-02-23T23:21:13
107,868,801
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import Arguments import Formatter import Config import Logger from Utils import * import xlsxwriter args = Arguments.Parse() cfg = Config.Get() @Formatter.Register("xlsx") def excel_formatter(components): """ Formats a list of components into an excel spreadsheet """ save_path = args.output_file wo...
UTF-8
Python
false
false
1,200
py
42
excel_formatter.py
36
0.655833
0.645833
0
54
21.203704
72
braskin/pd
12,927,851,587,101
707ded8c96202e033b67a264c2bbe5badf06861e
bbc8fbbdd40665af61fedf69962b38c1d5939683
/apps/account/templatetags/util_tags.py
5e479f6c5d6e6ee59165db6a697af2f8568c6308
[]
no_license
https://github.com/braskin/pd
64b299ad8058e8d3939bc9778fd1576522f786b0
df32f96b432c2f07e1a20bcbd84df3eccad5e29a
refs/heads/master
2021-01-10T22:10:34.318229
2013-01-23T11:50:37
2013-01-23T11:50:37
7,773,119
0
1
null
false
2020-07-25T19:53:06
2013-01-23T11:09:43
2013-10-11T06:04:48
2013-01-23T11:52:07
7,088
0
1
1
Python
false
false
from django import template from django.conf import settings from mydebug import * register = template.Library() @register.filter def key(d, key_name): try: value = d[key_name] except KeyError: value = '' return value key = register.filter('key', key) def raw(parser, token): # What...
UTF-8
Python
false
false
2,456
py
256
util_tags.py
172
0.619707
0.618893
0
84
28.238095
86
friendlywhales/lineup-web
13,554,916,819,735
03e418d102519b3d0fb405af44a27dcbb8caa459
b066191ce947eb7ca4acebd021070ee46eae4d05
/backend/apiserver/settings.py
8135742c0fa2c9e35d61fec3c9eb2cd8977112eb
[]
no_license
https://github.com/friendlywhales/lineup-web
17624b8c17678eb1abd380fa603d5559ece83115
ed06227b14a57791449a4c134c5a0955fc5b9f27
refs/heads/master
2022-12-04T20:08:13.482782
2020-09-01T07:59:49
2020-09-01T07:59:49
291,615,047
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os from corsheaders.defaults import default_headers BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '' DEBUG = True ALLOWED_HOSTS = ['*'] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.ses...
UTF-8
Python
false
false
6,912
py
196
settings.py
130
0.669378
0.653399
0
266
24.87594
108
AsymmetricVentures/mypy-django
9,440,338,167,999
6bdc0fcb841b438d6597fcef20480cb446f3a419
7942342d457276bb266228d0236af647b3d55477
/django/utils/synch.pyi
ede96fb9f738a990f466541050a1b8acaa2a6c48
[ "MIT" ]
permissive
https://github.com/AsymmetricVentures/mypy-django
847c4e521ce4dec9a10a1574f9c32b234dafd00b
f6e489f5cf5672ecede323132665ccc6306f50b8
refs/heads/master
2020-06-30T01:53:44.434394
2016-12-22T22:45:50
2016-12-22T22:45:50
74,397,884
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Stubs for django.utils.synch (Python 3.6) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from typing import Any class RWLock: mutex = ... # type: Any can_read = ... # type: Any can_write = ... # type: Any active_readers = ... # type: int active_writers = ... #...
UTF-8
Python
false
false
629
pyi
404
synch.pyi
404
0.578696
0.575517
0
21
28.952381
75
a1403951401/PyDaMo
11,407,433,172,134
079f6fd86973155e3cb16931dd2ac39e6513766f
6ff56a0d34ef5d3577852f39ec400208d5046855
/DaMo/err.py
a4fe498f177e82aaf11cdc6f9b905b36b5c2fd96
[]
no_license
https://github.com/a1403951401/PyDaMo
d4c3536cd5855682950d286ec6db8d23412a3701
a880758ec28ff6c51920e302c3c30f20084da146
refs/heads/master
2020-08-25T08:22:13.128489
2019-10-22T06:30:41
2019-10-22T06:30:41
216,986,996
4
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# 请求错误的类型 class VIP_Err(Exception): code = { -1: "无法连接网络, (可能防火墙拦截, 如果可以正常访问大漠插件网站,那就可以肯定是被防火墙拦截)", -2: "进程没有以管理员方式运行.(出现在win7 win8 vista 2008.建议关闭uac)", 0: "失败(未知错误)", 1: "大漠注册成功", 2: "余额不足", 3: "绑定了本机器,但是账户余额不足50元.", 4: "注册码错误", 5: "你的机器或者IP在黑名单列表中或者...
UTF-8
Python
false
false
1,585
py
10
err.py
9
0.598691
0.569248
0
27
32.962963
161
recuraki/PythonJunkTest
16,535,624,092,381
155485641ed77e32116d99460907bb3787bfe9ff
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/_codeforces/1359_b.py
3a9bbb603bd1f49ffcf55d202be404d0821ed4c6
[]
no_license
https://github.com/recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): from pprint import pprint import sys q = int(input()) for _ in range(q): n, m, x, y = map(int, input().split()) maze = [] for i in range(n): s =...
UTF-8
Python
false
false
1,789
py
1,170
1359_b.py
1,143
0.406372
0.376188
0
81
21.098765
59
Aasthaengg/IBMdataset
10,651,518,894,575
e073dbedb29021f87d5224dd1c78aaa0e64e11bf
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02632/s292618205.py
e3e76f22e4c3ca5583413714aa64de5463e69964
[]
no_license
https://github.com/Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys input = sys.stdin.readline K = int(input()) S = list(input())[: -1] N = len(S) mod = 10 ** 9 + 7 class Factorial: def __init__(self, n, mod): self.f = [1] for i in range(1, n + 1): self.f.append(self.f[-1] * i % mod) self.i = [pow(self.f[-1], mod - 2, mod)] for i in range(1, n + 1)[:...
UTF-8
Python
false
false
749
py
202,060
s292618205.py
202,055
0.523364
0.492657
0
31
23.193548
78
smallsunsun1/Cascade-RCNN
9,457,518,015,982
ccab8b9ce5ac7e58f22c1233b7d4c36ca6818e65
3f4467e4501e8cee2c22d31784b05b10acee2fb7
/train.py
1dbb4537f9355e8903ee297586d901e2dfe79280
[]
no_license
https://github.com/smallsunsun1/Cascade-RCNN
7babbefd22d3be506773dc2204612c58b21f059e
7a0bc01bddb4547523f8b490e4a16cdd4c77d746
refs/heads/master
2020-12-03T12:40:16.743165
2020-02-07T15:08:34
2020-02-07T15:08:34
231,319,366
7
4
null
null
null
null
null
null
null
null
null
null
null
null
null
import argparse import numpy as np import tensorflow as tf import os import cv2 import json import re import time from tensorflow import keras from tensorflow.contrib import distribute from config.config import _C from model import model_frcnn from model.basemodel import resnet_c4_backbone, resnet_conv5, resnet_fpn_b...
UTF-8
Python
false
false
20,332
py
39
train.py
32
0.604859
0.591039
0
398
50.080402
185
Neo31415/django_learn
3,255,585,257,799
2c036d73ed7735b3737fe87497bed0392fe338f1
2f5447b8ef6e9759b512ad2a0c54d2b9528d0ac4
/intro_to_models_in_django/model_playground/relationship_playground/migrations/0001_initial.py
08fb405b3515767de877d5a6bf59438d96738630
[]
no_license
https://github.com/Neo31415/django_learn
4a39ea62328a56774faffb9d454d352481d21cb6
df57a554cedba27f8fafc5708eb9c6ca21a4de0b
refs/heads/main
2023-04-06T00:32:41.686543
2021-04-17T19:18:20
2021-04-17T19:18:20
302,133,051
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.1.5 on 2021-02-13 11:27 import django.core.validators from django.db import migrations, models import re class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Testing', fields=[ ...
UTF-8
Python
false
false
1,278
py
33
0001_initial.py
25
0.605965
0.583203
0
29
42.931034
247