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
noahggit/CovidMaskDetector
10,746,008,213,761
54cc7f482542f5f8c653e134e31c0b608ef31713
a236d001a8f80ce7f2d428a730a0fa2265d021a6
/app.py
231763763eaea0ca13ad792216c47ed3c459584a
[]
no_license
https://github.com/noahggit/CovidMaskDetector
8e8c03a0435ec980135a94ce83fee400f9ed3537
75cbd353007b3dd48b4cdaa6023bf8052d13154a
refs/heads/main
2023-02-19T22:12:28.797936
2021-01-22T08:26:03
2021-01-22T08:26:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import streamlit as st from tensorflow.keras.models import load_model import numpy as np from webcam import webcam def main(): model = load_model("mask_detection.h5") face_classifier = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml') labels_dict = {0: " MASK"...
UTF-8
Python
false
false
1,374
py
3
app.py
1
0.580058
0.531295
0
41
32.512195
114
shirley5229/pyrequest
11,141,145,205,495
61fbea940196616846fde053e021a87aafe4376b
b4c7a72fc7ed2434d3aad0d28a31373498b2f3a4
/rest_test_tms3/interface/consultation_cancelSave_test.py
2d496386af0d83759898ff5c91dccb0c211a1181
[]
no_license
https://github.com/shirley5229/pyrequest
ce6e940c81e6b410e09059d87ba66823d589817b
df0b3ce51507b643b2a4be24321136797d85c002
refs/heads/master
2021-04-12T03:05:54.961455
2019-04-02T01:51:44
2019-04-02T01:51:44
125,944,133
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import unittest import json import os,sys from request_pub import config from request_pub import httpRequest from request_pub import getParams from request_pub import getAssert parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0,parentdir) #需要跳转到pyrequest目录下引用db_fixture from db_f...
UTF-8
Python
false
false
1,901
py
45
consultation_cancelSave_test.py
40
0.699598
0.686962
0
50
33.82
101
oucher/ec2_test
15,865,609,193,918
161c74d412550a2d5dcedcdf79b054709e3bbdf5
033ed5ef4545ef94d5c9b4ebe68309c067db1dc3
/marketplaces/webStore/webStore_interface.py
0cedc93e100f1942b991314b163fca7c0998d3b8
[]
no_license
https://github.com/oucher/ec2_test
9843395b0ab55f35d72af51f1de72a35cc0f0a1d
4c0fd854378caab8b712139e18120b8278718ba7
refs/heads/master
2019-03-13T08:14:34.432019
2017-10-09T06:44:51
2017-10-09T06:44:51
102,559,523
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#import this for eBay and Amazon use from .utils import get_element_by_tag from xml.dom.minidom import parseString class BaseInterface(object): _account = None def getImgUrl(self,**args): ''' @param **args: {'itemID':itemID} {'type':type,'id':[id]} ''' ...
UTF-8
Python
false
false
1,890
py
48
webStore_interface.py
44
0.538624
0.538624
0
71
25.633803
328
bolcom/pgcdfga
13,889,924,255,561
744ccf8479690df3df1b7034e300a2dee0f7be7b
16aee12df11be7bca2a2c1e0f742acd90cc20244
/tests/test_pgcdfga.py
6dbf68ac5adefd3bfef026abaf9c9ddde1311f19
[ "Apache-2.0" ]
permissive
https://github.com/bolcom/pgcdfga
042cc4792bc51efca3e5abbf3246f09ecc6206a6
56ef5482eab560fdb56937b58d2327fbaa068afa
refs/heads/master
2020-04-04T11:20:09.873226
2019-10-28T10:40:20
2019-10-28T10:40:20
155,887,184
2
0
Apache-2.0
false
2021-04-21T13:02:17
2018-11-02T15:41:17
2020-04-24T14:09:03
2021-04-21T13:02:17
9,852
1
0
1
Python
false
false
#!/usr/bin/env python3 # Copyright 2019 Bol.com # # 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 ag...
UTF-8
Python
false
false
2,552
py
12
test_pgcdfga.py
8
0.624608
0.602273
0
70
35.457143
81
Jon-Gibson/BogleBot
11,914,239,305,089
669c39798c75bbb67d8a8577bb3357e75331ea68
b402c705acf14dac6b372bf0c2415934413b5774
/expense.py
ccf0bc584812b76e42a3d98a2d1687bdcd5fd734
[]
no_license
https://github.com/Jon-Gibson/BogleBot
4675957980f71747eff24c6ec69da8a6a141fa8f
0323a1b7f78999e7b5cddd3b109680f3d1b1e156
refs/heads/master
2023-04-09T19:29:00.673906
2021-04-18T00:40:37
2021-04-18T00:40:37
359,007,520
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from urllib.request import urlopen import re import html def getStockData(stockSymbol): page = urlopen("http://finance.yahoo.com/q/pr?s=" + stockSymbol + "+profile" ) data = page.read() return str(data) def getFullName(stockSymbol, stockData): row = re.findall("<h1[^>]*?>(.*?)</h1>", stockData) if...
UTF-8
Python
false
false
1,945
py
3
expense.py
3
0.576864
0.569152
0
64
29.40625
110
kingking888/PythonSpider-3
1,640,677,554,078
bfba6962bae6c70c2f1271e47b6682187cf8d0bb
880b663cbd015eb1f7bd610619d44dff3b20266d
/10-zhihu/begin.py
148695e0fd9f0977bf6524adf7940b053e0df955
[]
no_license
https://github.com/kingking888/PythonSpider-3
1f84cba58afa3957529bfee95e0adaedfe1413c6
0c3bb0e302c0b7d80472ac597f87f66cac240427
refs/heads/master
2020-07-04T05:05:30.310978
2019-08-10T07:06:32
2019-08-10T07:06:32
202,166,073
4
1
null
true
2019-08-13T14:50:14
2019-08-13T14:50:13
2019-08-13T13:24:45
2019-08-10T07:07:03
1,396
0
0
0
null
false
false
""" @author:hp @project:10-zhihu @file:begin.py @ide:PyCharm @time:2019/4/24-13:54 """ from scrapy import cmdline # cmdline.execute("scrapy crawl zhihuspider".split()) cmdline.execute("scrapy crawl user".split())
UTF-8
Python
false
false
213
py
50
begin.py
44
0.732394
0.671362
0
10
20.3
53
yengsheng/SplitVRPHUROP
15,951,508,576,737
906126218c1ddb29bb9f6459d70d85e47e823ae4
0be08827bfe94ba75293cab23cf05848b595f848
/convert_to_tsplib.py
1c7409a746e713da9addc0ff531b7124cf322ead
[]
no_license
https://github.com/yengsheng/SplitVRPHUROP
7baddffbcf9c2289e5759d4fba71acd097cbe8ed
2f9472bc88d763953c94822101ac928905439ce1
refs/heads/master
2023-02-17T22:18:37.713266
2021-01-08T05:58:10
2021-01-08T05:58:10
297,616,436
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Oct 4 12:05:55 2020 @author: Yong Sheng """ import os def convert(filename): f = open(filename) lines = f.readlines() nodes, capacity = lines[0].strip().split() nodes = int(nodes) + 1 demands = ['0'] + lines[1].strip().split() locs = lines[2:] lo...
UTF-8
Python
false
false
1,648
py
1,205
convert_to_tsplib.py
12
0.541262
0.510922
0
48
33.291667
193
ikaruga0508/tcml
8,950,711,846,601
ba8621d8be744820ad5d4dcd2420c303197fce93
3df0a2eeefbf1289d81839efec9f4a8036b65883
/_loader_configs.py
2520cf455395e9c673b6f97562ff9893da048802
[]
no_license
https://github.com/ikaruga0508/tcml
c3bfa965fef67f2cc74e356e9645e9cc0bbb5c8a
48a1e4cb4b450587d3a5d29071ed5a8806c07eb9
refs/heads/main
2023-04-22T18:00:57.805486
2021-05-08T15:39:06
2021-05-08T15:39:06
359,476,643
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class KFoldCrossValidationConfig: def __init__(self, X_indices_list, X_val_indices_list): """初始化 Args: X_indices_list: 训练集索引矩阵 X_val_indices_list: 验证集索引矩阵 """ assert (len(X_indices_list) == len(X_val_indices_list)) self.X_indices_list = X_indices_list ...
UTF-8
Python
false
false
762
py
12
_loader_configs.py
11
0.546407
0.546407
0
22
29.363636
65
keithrpotempa/bangazon-workforce-management-oculus-nebula
15,418,932,614,506
cb6cf98d278f3ad5dadf634e5dffa67a0c0ae91e
168605919f28ea761cfd8d92ed69518f7656921f
/hrapp/models/employee_computer.py
1cbc51b37c7ab63020aa9fe1efc35ce4f32d16d5
[]
no_license
https://github.com/keithrpotempa/bangazon-workforce-management-oculus-nebula
81a35fec751f0f975999b980c2dda0a52ed9515f
4282491a92b96ac98f64672b77f9892dfbc368d5
refs/heads/master
2022-08-18T22:05:12.995936
2020-05-14T16:40:58
2020-05-14T16:40:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models from django.urls import reverse class EmployeeComputer(models.Model): """ Creates the join table for the many to many relationship between computers and employees Author: Joe Shep methods: none """ employee = models.ForeignKey("Employee", on_delete=models.CASCADE)...
UTF-8
Python
false
false
716
py
62
employee_computer.py
40
0.703911
0.703911
0
22
31.545455
92
Indrateja25/Learning-Python
14,714,558,003,035
67d1177ed7cf1f9e96791f679c844e1c2bdf47c1
1548742f7beb798792cc319c0789a588fe338a26
/dictionaries2.py
82a0f273c7462cb374b878bafce45e2e79976a73
[]
no_license
https://github.com/Indrateja25/Learning-Python
0d0a8c5900e6abf70ce368acbced083202cb83ea
8c2cbe4c556401a3bd8b27178f232419617614e9
refs/heads/master
2021-04-09T11:03:17.181442
2018-03-17T19:42:53
2018-03-17T19:42:53
125,523,906
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
stocks = { 'GOOG':256.8, 'APPL':128.9, 'FB':167.1, 'MST':212.5, 'AMZ':230.0 } print(min(stocks)) print(min(stocks.items())) print(max(zip(stocks.values(),stocks.keys()))) print('\n') print(sorted(stocks)) print(sorted(stocks.items())) print(sorted(zip(stocks.values(),stocks.keys())))
UTF-8
Python
false
false
306
py
15
dictionaries2.py
14
0.617647
0.552288
0
15
19.4
49
salonikalra/BVCOE-Feedback
5,403,068,868,265
e76ec4526e0b373394987110169333296a5ce6f0
141d9f25727349c584b8fcebd64991f27c1232a8
/feedbacks/admin.py
1602416925bc05f01bde10fa57e78a8bcddd5112
[]
no_license
https://github.com/salonikalra/BVCOE-Feedback
2b92c01b15e9c70cacf77c86662d9f92a730d811
abd46cd6259a56ec91dfba8b0aa01ede490ae96a
refs/heads/master
2022-12-12T22:07:19.355436
2019-06-24T11:45:30
2019-06-24T11:45:30
193,562,536
1
0
null
false
2022-12-06T20:21:57
2019-06-24T18:59:08
2021-05-23T11:18:45
2022-12-06T20:21:56
8,885
0
0
8
CSS
false
false
from django.contrib import admin from . import models class DepartmentAdmin(admin.ModelAdmin): list_display = ['department_id', 'department_name'] class TeacherAdmin(admin.ModelAdmin): list_filter = ['department'] list_display = ['teacher_name', 'teacher_id', 'get_subjects'] search_fields = ['teacher...
UTF-8
Python
false
false
1,372
py
34
admin.py
16
0.704082
0.704082
0
35
38.2
97
hanrick2000/Leetcode-for-Fun
2,010,044,739,334
b37fec175d2db8d7dd06ce977466011931b0a30a
96ded4b80a459483d3359c9e2f68f1e4c80453a2
/lintcode/lintcode_376_Tree_pathSum.py
6209cd7e8a4c7c5e4e078aab34852f0a6254fd2c
[]
no_license
https://github.com/hanrick2000/Leetcode-for-Fun
bd37f8a9ab92ac564e24e38edfa04f1fbaab9fbd
cce863008199c0beb0fc8839f9efbd4487240e2c
refs/heads/master
2020-12-19T05:33:48.957554
2019-04-15T19:52:01
2019-04-15T19:52:01
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: # @param {TreeNode} root the root of binary tree # @param {int} target an integer # @return {int[][]} all valid paths def binaryTreePathSum(sel...
UTF-8
Python
false
false
990
py
557
lintcode_376_Tree_pathSum.py
390
0.543434
0.541414
0
34
28.147059
62
tunmyatbryan/EECS118_Web_and_Database_Programming
10,333,691,355,447
8f7f0b0d668fbfcb9e48ccab1c5904d681bc4cde
212397f6ba92b23a79df9e91630e4bf5c8ca6fa2
/new_gallery.py
b0f8f09f3cd66e3944a55e14194fd3f5127863fd
[]
no_license
https://github.com/tunmyatbryan/EECS118_Web_and_Database_Programming
fef7ee518478226ff8a57b97b7c6b6e1a5b6dcc4
77d321d33fee8c4cf798e3b545901ebdb74120e7
refs/heads/main
2023-01-05T07:36:48.482933
2020-10-30T22:19:12
2020-10-30T22:19:12
308,755,760
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#Name - Tun Myat #ID - 51705354 print("Content-type: text/html") #HTML is following print() print("<H1>Requesting New Gallery</H1>") print("<b>Please type the detail of new gallery<br></b>") print("<form action='new_gallery_add.py' method = 'post'>") print("Gallery Name: <input type='text' name='gallery_name'><...
UTF-8
Python
false
false
465
py
27
new_gallery.py
27
0.68172
0.660215
0
16
28.125
84
Aasthaengg/IBMdataset
11,063,835,781,000
6b7ed046f6c06b74ff27cac1139d84088b7265d3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02697/s864560609.py
44d593fa4fc9a9d8aae51d4b3dbdf5e0ea96939f
[]
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 stdin = sys.stdin inf = 1 << 60 mod = 1000000007 sys.setrecursionlimit(10 ** 7) ni = lambda: int(ns()) nin = lambda y: [ni() for _ in range(y)] na = lambda: list(map(int, stdin.readline().split())) nan = lambda y: [na() for _ in range(y)] nf = lambda: float(ns()) nfn = lambda y:...
UTF-8
Python
false
false
1,391
py
202,060
s864560609.py
202,055
0.419123
0.376707
0
59
22.59322
60
Jarrod95/Python_Programs
6,279,242,190,784
6a0c770074704cc899a0cccdffe0c24d8de7827f
b96bf8f96d33fd2e9235501f9523e70f7bb51547
/closestTherapist.py
c7772956d842231fd7278cbe88f88364e6b1f6ba
[]
no_license
https://github.com/Jarrod95/Python_Programs
a85b2b513c7135dcc51207cd704e0e953b2472a6
6741619cf363457e4f376d593691304769311272
refs/heads/master
2023-02-06T11:34:29.483723
2020-12-31T04:57:53
2020-12-31T04:57:53
275,974,159
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import googlemaps from datetime import date, timedelta api_key = '' gmaps = googlemaps.Client(key=api_key) today = date.today() #Find most recent file extension = r'C:\Users\info\OneDrive\1. M2M Administration\EXPORTED FROM SOFTWARE\Therapist Data\Maps_Export_' #Extract most recent therapist data...
UTF-8
Python
false
false
2,279
py
5
closestTherapist.py
2
0.644142
0.631856
0
59
37.627119
122
kogwang/Flask-fenli
16,801,912,064,837
d1df94f71d436112f94555949e73458e869bb516
b346f7ea4a4bb05800acd731bfba9960249ee3e9
/App/models.py
4670084706e205a68b9d12fbee7395c787d2f681
[ "Apache-2.0" ]
permissive
https://github.com/kogwang/Flask-fenli
f340c977e24bc0783adaa2652e9caa594e2200cf
6e54f2e03c107611fec986a672b47001086e1c7d
refs/heads/master
2020-03-27T23:17:10.149182
2018-09-04T07:56:46
2018-09-04T07:56:46
147,306,744
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask_sqlalchemy import SQLAlchemy # 创建对象 db = SQLAlchemy() # 例: class User(db.Model): id = db.Column(db.Integer,primary_key=True,autoincrement=True) name = db.Column(db.String(20),unique=True) password = db.Column(db.String(100))
UTF-8
Python
false
false
260
py
4
models.py
4
0.71371
0.693548
0
9
26.666667
66
eastene/vRNN-PyCUDA
11,587,821,803,536
cf5453cabc702f5c4f82b002001230f794e644a9
7c81cea6c5607c62ec9744051cc3931696f6631d
/test/test_cases/model_tests.py
b6b6b9b9022b44b8e743d38ad2cd2131c84b0b63
[]
no_license
https://github.com/eastene/vRNN-PyCUDA
a3e2e6386cd429bf922294de100863d749f7cc66
0dffad1b995ee66c99a5d452dbf9e5085882b03a
refs/heads/master
2020-03-10T08:52:59.419694
2018-06-26T17:59:54
2018-06-26T17:59:54
129,296,437
2
2
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import unittest from time import time from pycuda.tools import make_default_context import pycuda.gpuarray import pycuda.driver import pycuda.curandom from pycuda.tools import mark_cuda_test import string from src.model.LSTM import LSTM from src.model.lstm_layer import * from src.preprocess.nlp import * ...
UTF-8
Python
false
false
12,666
py
15
model_tests.py
14
0.576109
0.557082
0
339
36.365782
151
avoinea/allen.image.scale
661,424,987,118
cd52a95155b12db1fb7119b909de4bd76bda3223
c136fdf7083fae2198f660c6a92c1232e982fd5a
/allen/image/scale/__init__.py
af4f4b242ba7fbe00b200f3143aa328351214b6b
[]
no_license
https://github.com/avoinea/allen.image.scale
1cfd9b7c5a42010903b4a9a21273c7e6b785c47a
041e0e31cf128ea6ff65f9bee2f1a49df3933f43
refs/heads/master
2020-04-23T03:08:59.408327
2010-07-10T05:19:16
2010-07-10T05:19:16
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging from PIL import Image as PilImage from StringIO import StringIO from zope.interface import implements from interfaces import IThumbnail from z3c.blobfile.image import Image logger = logging.getLogger('allen.image.scale') class Thumbnail(object): """ Adapter for zope.app.file.image.Image object to g...
UTF-8
Python
false
false
2,959
py
4
__init__.py
3
0.559311
0.541061
0
97
29.505155
75
InsightSoftwareConsortium/ITK
7,576,322,321,875
b4c87ebe59ff4374313d555718f7ad66137d3208
bed3ac926beac0f4e0293303d7b2a6031ee476c9
/Modules/ThirdParty/pygccxml/src/pygccxml/declarations/dependencies.py
fedf793be00c34e3465e2b9348aa7935aa8e2aab
[ "IJG", "Zlib", "LicenseRef-scancode-proprietary-license", "SMLNJ", "BSD-3-Clause", "BSD-4.3TAHOE", "LicenseRef-scancode-free-unknown", "Spencer-86", "LicenseRef-scancode-llnl", "FSFUL", "Libpng", "libtiff", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-permissive", ...
permissive
https://github.com/InsightSoftwareConsortium/ITK
ed9dbbc5b8b3f7511f007c0fc0eebb3ad37b88eb
3eb8fd7cdfbc5ac2d0c2e5e776848a4cbab3d7e1
refs/heads/master
2023-08-31T17:21:47.754304
2023-08-31T00:58:51
2023-08-31T14:12:21
800,928
1,229
656
Apache-2.0
false
2023-09-14T17:54:00
2010-07-27T15:48:04
2023-09-11T02:58:41
2023-09-14T17:53:59
200,420
1,245
624
286
C++
false
false
# Copyright 2014-2017 Insight Software Consortium. # Copyright 2004-2009 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt from . import declaration from . import typedef from . import cpptypes from . import type_traits from . import class_declarat...
UTF-8
Python
true
false
5,418
py
8,579
dependencies.py
5,576
0.615356
0.611665
0
158
33.291139
79
turekj/cassom
9,010,841,409,273
38557a27aaeffffe3039326d3a8371c09ba5e4b9
56304e0d89b726725250795ddfc1cf6a50756386
/core/model/model.py
e7b6cdfe07745ba244b4e6c33936cc9f331a7d09
[ "MIT" ]
permissive
https://github.com/turekj/cassom
3907c6232fe2f4d78d50f35e6a3a20c31f5f6b1f
6c70e9b6ef5c390a546ea25cd854d74e73863dbd
refs/heads/master
2021-01-13T02:26:00.178605
2014-10-02T08:31:15
2014-10-02T08:31:15
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from core.keyspace.keyspace_manager import KeyspaceManager from core.model.model_fields import ModelFieldsFactory from core.model.model_manager import ModelManager from core.model.model_transformator import ModelTransformator from core.table.table_manager import TableManager from core.model.model_metadata import ModelM...
UTF-8
Python
false
false
2,243
py
56
model.py
35
0.670085
0.670085
0
72
30.152778
103
kanhaichun/ICS4U
14,456,859,946,067
6e5fc847fa9f80fb1634a70803b7df650d930d93
aea37c205cd97404f2a564fcebaf25cd284c5586
/Toxicbug/Jeffrey/assignment1Jeffrey.py
cf32c86c0012050aff23820fe9ff2c3abed2055b
[]
no_license
https://github.com/kanhaichun/ICS4U
b9457d001f9cdde84894f004409621023bea91ab
bf3e29364707f52fcd5f7b20c7ba6ca1d848af31
refs/heads/master
2020-07-31T02:15:38.211002
2018-04-26T17:18:25
2018-04-26T17:18:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Author: Jeffrey Date: 10th January 2018 Title: division Function: Loop through 1000 numbers, and find the numbers that are divisible by 3 or 19. """ #loop from 0 to 1000: for number in range(0,1000): if number%3 == 0: #find the number that is divisible by 3 print(number, "is divisible by 3.") elif...
UTF-8
Python
false
false
428
py
411
assignment1Jeffrey.py
378
0.670561
0.591121
0
13
31.461538
88
lipengddf/test
7,267,084,710,344
329357af19a6b05ed7547298a19adf8eb0d782c3
39134e5bed6fb212697fe9d712c4ca1309e4e066
/PycharmProjects/untitled/web.py
f09d1fce99e83654a2181e9fcc5bcd869409567e
[]
no_license
https://github.com/lipengddf/test
e13970d3bfeeef0d096ac1f92a485c796477e90f
5b4899a95ab20c9497df5dfa67dee410e61f3399
refs/heads/master
2020-05-24T20:48:18.138833
2019-05-19T11:20:08
2019-05-19T11:20:08
187,462,326
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- #! the author lipeng # from selenium import webdriver # from time import sleep # #定义打开的浏览器 # dr = webdriver.Firefox() # sleep(2) # #请求网页 # dr.get('https://qzone.qq.com/') # sleep(2) # dr.get('http://www.jd.com') # sleep(2) #回到上一次打开的网页 # dr.back() # sleep(2) #前进 # dr.forward() #...
UTF-8
Python
false
false
4,597
py
13
web.py
11
0.670627
0.649903
0
169
20.420118
100
yriart/python-projects
4,320,737,103,774
566eb07de4c13f1a69d19bfd1cd388a67106718c
629cc6526150d7b3e320e88f236e0843de33ba70
/convert_to_lower.py
84cc0cc95481b794005e59aaf2bf1a8ac098145b
[]
no_license
https://github.com/yriart/python-projects
84546ba6a4bf69fc68d9a42db9a6b0af160f2ba7
3c42c13243d356ce4eec1b92b10a5928bb6c363f
refs/heads/master
2021-01-20T11:59:40.369297
2015-05-18T22:56:24
2015-05-18T22:56:24
9,307,884
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# take input of a filename on command line, convert the contents of the file to lowercase. import sys f = sys.argv[1] myfile = open(f).read().split() for item in myfile: print item.lower()
UTF-8
Python
false
false
191
py
12
convert_to_lower.py
8
0.722513
0.717277
0
7
26.285714
90
GeorgiyDemo/FA
12,592,844,124,041
479e44f088d006ee92a84f55c850e3fd87496002
45ab1e397b5fc69ba84c8f5dfb66c09b79bca4c6
/Course_I/Алгоритмы Python/Part2/семинары/pract2/example/your_package/file2.py
5bfab372e2c3ea4bcddeb215debafd0feb9af6a2
[ "WTFPL" ]
permissive
https://github.com/GeorgiyDemo/FA
926016727afa1ce0ee49e6ca9c9a3c60c755b35f
9575c43fa01c261ea1ed573df9b5686b5a6f4211
refs/heads/master
2023-06-28T00:35:43.166167
2023-06-16T14:45:00
2023-06-16T14:45:00
203,040,913
46
65
WTFPL
false
2022-04-09T21:16:39
2019-08-18T18:19:32
2022-02-22T02:39:45
2022-04-09T21:16:38
1,281,041
23
11
4
Jupyter Notebook
false
false
def add2(): print("MEOW add2")
UTF-8
Python
false
false
35
py
1,270
file2.py
702
0.571429
0.514286
0
2
16.5
22
hwua/openerp
11,192,684,788,978
2b513aadc1032bff550d44fc0142d4bbaa347ee9
7746c96fc763e56d55c882824a5d078f1a62a2ab
/Recruitment/models/recruitment_email.py
2c9ad311d80a0ccca02edb81511b5cb0003226a5
[]
no_license
https://github.com/hwua/openerp
a744c4d0ee54cac44448ac54f4315d7dbf5df704
d2fdf24daf83030c0fbcee052e04eee6c86eda2b
refs/heads/master
2021-01-23T15:41:27.614700
2017-09-21T04:11:47
2017-09-21T04:11:47
102,717,626
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#-*- coding:utf-8 import logging from openerp import models,fields,api,_ from openerp.exceptions import ValidationError,UserError _logger = logging.getLogger(__name__) #工资邮件发送模板 class RecruitmentinformationTemplate(models.Model): _name = 'recruitment.information' _inherit = ['recruitment.information','mai...
UTF-8
Python
false
false
14,669
py
109
recruitment_email.py
55
0.624776
0.554896
0
236
58.245763
170
5Elements/myappp
9,234,179,727,592
4ec4398a688bf702e6f224335232eb6152899709
fb6539851d623bff4b9f47ff110b7f5339d242ac
/myapp/migrations/0002_auto_20180405_2238.py
ce6de17abb259511c561af9be55a4622e83da8b8
[]
no_license
https://github.com/5Elements/myappp
038c076bcacfd8d0e9affbb3f39ffa22683fc8a9
875fa1e0a2a14a1b3bb32566d2abcb976514f74e
refs/heads/master
2020-03-08T16:37:43.131198
2018-04-05T18:01:40
2018-04-05T18:01:40
128,244,664
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0.2 on 2018-04-05 17:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0001_initial'), ] operations = [ migrations.AlterField( model_name='tweet', name='tw_cat', fiel...
UTF-8
Python
false
false
374
py
3
0002_auto_20180405_2238.py
2
0.574866
0.516043
0
18
19.777778
52
HuangZengPei/LeetCode
18,305,150,615,804
8196b8ef15adab88ce8a73b33448b4068b234e7c
b729b6262f6cb096c988341829cd4ff2525a6133
/Middle/Que114.py
5225e50f4a68e1a02883b67ec0614f5d36dbbf05
[ "MIT" ]
permissive
https://github.com/HuangZengPei/LeetCode
f812014cf840a9ecd764e5850d7258aa881549b5
d2b8a1dfe986d71d02d2568b55bad6e5b1c81492
refs/heads/master
2020-09-13T04:12:26.824514
2020-06-27T12:52:03
2020-06-27T12:52:03
222,651,348
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None # 将二叉树展开为链表,使用栈保存右子树 class Solution(object): def flatten(self, root): """ :type root: TreeNode :rtype: None Do not return...
UTF-8
Python
false
false
795
py
97
Que114.py
92
0.491436
0.491436
0
28
26.142857
74
artyomLisovskij/blockchain-market
6,725,918,799,695
a181122ee042aceda4878d4fc5b4f88929c745f7
3d974bf4f769d20afc8249d1fe384716c016d3d1
/main/migrations/0001_initial.py
adc39c60a66523d25e84354928e53dc8c3a14427
[]
no_license
https://github.com/artyomLisovskij/blockchain-market
afdbf0082311be800112f5ae7e7b5eed23c569cf
e87d45c3d71719618142f38eb6ca5825e0f44ff1
refs/heads/master
2021-05-06T01:13:42.355475
2017-12-16T16:17:55
2017-12-16T16:17:55
114,412,097
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.0 on 2017-12-16 09:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Categories', fields=[ ...
UTF-8
Python
false
false
1,892
py
14
0001_initial.py
8
0.556554
0.544926
0
49
37.612245
115
ferjavrec/imp_firebird
15,461,882,280,747
10c7fa0b3edd169a10c07a3d711732a76ab027d3
d714e7791bd1aa9f7149c054b05c631be6325844
/nuevos_script/listar_nuevos_usuarios.py
2bb364abf69e4a2aa26889eaa120d877c2dc5e35
[]
no_license
https://github.com/ferjavrec/imp_firebird
42f8ad9394778bceb5bc641771922aa4bee5dc27
bb6c4a7ddd9d3f3db13e50635449a57f65ce9ba1
refs/heads/master
2016-08-11T05:51:36.277214
2016-02-13T03:38:00
2016-02-13T03:38:00
47,922,306
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys reload(sys); sys.setdefaultencoding("utf8") sys.path.append('/home/fer/tryton/trytond') from decimal import * import datetime import fdb import psycopg2 import os hoy = datetime.date.today() RUTA_PROYECTO = os.path.dirname(os.path.realpath(__file__)) con = fdb...
UTF-8
Python
false
false
2,557
py
58
listar_nuevos_usuarios.py
44
0.652718
0.637075
0
77
32.12987
101
siddharthvaria/GI-DL
11,218,454,614,663
e9aea849891f25c699869356243ba071ec8daf04
3aabf076ca0f31c69948ccb34151488bec6e1e3e
/terra/classifier.py
16ead567f316c48b3749cc50ebe244812ab24d0c
[ "MIT" ]
permissive
https://github.com/siddharthvaria/GI-DL
2e4af5dada42cefaa8e19137963b0a4675025011
715b5fe4426d737ed1b23ffbb812058a90433682
refs/heads/master
2021-09-14T16:07:41.572158
2018-05-15T22:39:20
2018-05-15T22:39:20
94,111,739
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from keras.models import Model, load_model from keras.layers import Input, LSTM, Dense, RepeatVector # autoencoder/encoder + classifier for tweets class Classifier: def __init__(self, timesteps, input_dim=1, latent_dim=100, elayers=3, dlayers=3, clayers=3): ainputs = Input(shape=(timesteps...
UTF-8
Python
false
false
3,968
py
90
classifier.py
85
0.595514
0.586442
0
122
31.45082
77
delimitrou/DeathStarBench
17,145,509,476,209
3bd3718b51792fd331777af130fc9e727a2e2c40
e95e60cb698b7b2e7622b33643df944c0362c02c
/mediaMicroservices/gen-py/media_service/CastInfoService.py
378fd2ab5778816c783d45a800793a73d3a56879
[ "Apache-2.0", "GPL-1.0-or-later" ]
permissive
https://github.com/delimitrou/DeathStarBench
5ae251e87052a83f0daadfe2f60231ee5e999dda
ef9823b441aec5a8133304f1cc322f882f767812
refs/heads/master
2023-09-01T02:23:38.342474
2023-08-28T17:37:44
2023-08-28T17:37:44
180,669,714
576
364
Apache-2.0
false
2023-09-01T17:20:13
2019-04-10T21:57:24
2023-08-29T22:48:43
2023-09-01T17:20:12
129,490
568
328
65
C
false
false
# # Autogenerated by Thrift Compiler (0.12.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
UTF-8
Python
false
true
21,033
py
800
CastInfoService.py
395
0.552227
0.539058
0
592
34.527027
134
lijyigithub/leetcode
360,777,273,543
33955c806c9a25b1e04883941e3ce951ca7435b6
dae0a181a09abe51d84267f797fed9e4da38e7d4
/1_Two_Sum/two_sum.py
06a6fb693a6e11dc00b0456c3710a2ea8e050cd6
[]
no_license
https://github.com/lijyigithub/leetcode
f922ee28b187d272a03c8b0bff43a8443d0ed18f
41db86171719fda9be621f79dfb201a52abdaf04
refs/heads/master
2016-06-05T13:00:16.005377
2016-03-24T18:20:15
2016-03-24T18:20:15
54,652,892
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def twoSum(self, nums, target): temp = dict() for i in range(0, len(nums)): d = target - nums[i] if d in temp: return [temp[d], i] temp[nums[i]] = i
UTF-8
Python
false
false
194
py
4
two_sum.py
2
0.57732
0.572165
0
8
22.875
32
LoveRL/BAEKJOON-online-judge
6,279,242,221,298
7f988d0aaad112d97c465e70806f0d8295e8729b
0eb83bd6cd229758c38e8ff097db49af7cf4b762
/Solutions_Part1/2609번_최대공약수와 최소공배수.py
2396be8323c5312bbf2d1574e0461175c170d059
[]
no_license
https://github.com/LoveRL/BAEKJOON-online-judge
d1d90d7fabd6056f35e1200277c03359f1d630b1
89477e4ccc5a0e6a2cb771f91cf2371e7390a7d3
refs/heads/master
2021-01-25T22:36:57.071990
2020-02-26T08:46:19
2020-02-26T08:46:19
243,208,969
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
a,b=input().split() a=int(a); b=int(b) gcd=lambda a,b : a if not b else gcd(b, a%b) gcd_1=gcd(a,b) lcm=int((a*b)/gcd_1) print(gcd_1) print(lcm)
UTF-8
Python
false
false
155
py
246
2609번_최대공약수와 최소공배수.py
245
0.567742
0.548387
0
9
15.222222
44
jpraychev/portfolio
1,039,382,093,159
7363049eb208ae2cfa6f0d1b1087e1ec723b7f4b
72e8ed7d2c48bc8665c2e4142cee94672721a314
/jraychev_website/accounts/views.py
4815d4fb9235969dfc0d37f2458001255d50953f
[]
no_license
https://github.com/jpraychev/portfolio
95992531c85d33eae38b0c979088d068a70a46b3
2509a3c37dd0d53339ad5eb943156488d5335172
refs/heads/master
2023-06-05T02:38:52.612773
2021-06-29T19:21:56
2021-06-29T19:21:56
340,250,099
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.urls import reverse_lazy from django.views.generic import CreateView, TemplateView, RedirectView, UpdateView, FormView from django.contrib.auth.views import LoginView, LogoutView from django.http import HttpResponse, Http404, HttpResponseRedirect, HttpResponsePermanentRed...
UTF-8
Python
false
false
4,628
py
57
views.py
29
0.649957
0.646932
0
126
35.714286
129
venamax/dataincubator
3,040,836,885,572
241f175aae865b3fcabd46e95f2886556c68a7ff
282a8f786b8bd1d437c70e7aae5bb6926d9acfd4
/skeleton/data.py
eb8fc28554503bd1df9f7458403556e6f963f3fb
[]
no_license
https://github.com/venamax/dataincubator
7e94791b92925826d089177dcda93b9bcfb28a37
88bc238abf5492a32e1bd85ac3bb4dc8b0ce486e
refs/heads/master
2021-01-10T02:11:35.950275
2016-03-21T20:05:20
2016-03-21T20:05:20
54,677,844
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# flake8: noqa """ This file holds sample data for validation, it is visible to fellows. Usually this is given for modelling problems involving parsing raw data. """ sample_jsons_for_validation = [ {"hip": "broken", "shoulder": "intact", "wrist": "missing"}, {"hip": "intact", "shoulder": "fragmented", "wrist":...
UTF-8
Python
false
false
403
py
33
data.py
18
0.640199
0.637717
0
11
35.181818
72
DavidMachineLearning/Quadcopter-RL
249,108,105,129
2ceceb5521cdb12fd844a16d1e5572084b65eeb4
ef05e5f0a9c0722a63137bac3e5ff5856a377007
/ActorCritic.py
3f27a4d91c1d72f45e4a9bbab25021018dbe7017
[ "MIT" ]
permissive
https://github.com/DavidMachineLearning/Quadcopter-RL
a141b1ce0726dbb9e844351c428c53d4538452b5
e78da0d1156d5631fa3946087318e0ab8d896620
refs/heads/master
2020-04-13T13:17:18.152381
2019-01-16T20:58:32
2019-01-16T20:58:32
163,225,559
1
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import tensorflow as tf import numpy as np class Actor: """Actor Model.""" def __init__(self, state_size, action_size, action_low, action_high): """Initialize parameters and build model. Params ====== state_size (int): Dimension of each state action_size (int): ...
UTF-8
Python
false
false
5,724
py
5
ActorCritic.py
2
0.616702
0.607792
0
118
47.508475
117
SwampStats/visProj
12,721,693,170,786
d25945c26fa759466edfae838b96f7e7e3bcc0f7
ce2ec082608e5f0f95a615b4fd35f041e1c81c56
/rw_visual.py
b9e351be916f19aaa88fe6b6fd2333602629f431
[]
no_license
https://github.com/SwampStats/visProj
226c60cebf7536d8c11a1462d44f359f2fa07fcf
1d02341a97d0b0c6e6d893376af268b6081cff96
refs/heads/master
2021-05-03T07:48:59.632530
2018-02-18T02:58:46
2018-02-18T02:58:46
120,555,972
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import matplotlib.pyplot as plt from random_walk import RandomWalk # Make a randomw walk, and plot the points. rw = RandomWalk() rw.fill_walk() plt.figure(figsize=(20, 12)) #plt.scatter(rw.x_values, rw.y_values, s=1) #now try with plot plt.plot(rw.x_values, rw.y_values, linewidth=1) plt.show()
UTF-8
Python
false
false
299
py
3
rw_visual.py
2
0.725753
0.705686
0
13
21.923077
47
aichi-t/leetcode
9,517,647,537,206
6003fc6342e2249e4d8a1928443aac6e7d77f22e
8244306e8c31dcd598ade6bca2e7d6568045fbc6
/332.Coin_Change.py
a54288910db0166d1691396bb97555224781b16d
[]
no_license
https://github.com/aichi-t/leetcode
57463acbc32975a0ec6d637170bdb615f175848e
f8d0cb0c33e365ac21c07eb25a41b49a7f7e6cce
refs/heads/master
2020-08-01T20:04:02.439248
2020-06-27T00:13:56
2020-06-27T00:13:56
211,100,475
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def coinChange(coins, amount): memo = [0] + [float('inf')]*amount for c in coins: for i in range(1, amount+1): if i - c >= 0: memo[i] = min(memo[i], memo[i-c]+1) return memo[-1] if memo[-1] != float('inf') else -1 coins = [1, 2, 5] amount = 11 coinChange(...
UTF-8
Python
false
false
336
py
53
332.Coin_Change.py
52
0.494048
0.455357
0
14
22
55
potomatoo/TIL
19,267,223,319,447
0abfadd8e93402984638d14df6527060cf40d389
37c3b81ad127c9e3cc26fa9168fda82460ca9bda
/SW_expert/sw_5102_노드의거리.py
5e83df39e9645929070a5b54d6c7d574ae3925f4
[]
no_license
https://github.com/potomatoo/TIL
5d85b69fdaed68966db7cfe2a565b7c64ed3e816
395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c
refs/heads/master
2021-07-08T16:19:40.410097
2021-04-19T02:33:40
2021-04-19T02:33:40
238,872,774
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys sys.stdin = open('./input/input_5102.txt', 'r') from _collections import deque TC = int(input()) for tc in range(TC): V, E = map(int, input().split()) G = [[] for _ in range(V+1)] visit = [0] * (V+1) for i in range(E): v, u = map(int, input().split()) G[v].append(u) G...
UTF-8
Python
false
false
796
py
393
sw_5102_노드의거리.py
380
0.442211
0.423367
0
32
23.71875
47
Nani446/blog-gjango-ar
9,826,885,206,356
79d08e4aedd15dc0b1a815c35e8ee195beb318a9
57f7579d8bbbfaf6fc1bcd0daed2b732103f7ac7
/myapp/admin.py
cad6f6a6b44da0a8b0f6f301018f54b2b84373af
[]
no_license
https://github.com/Nani446/blog-gjango-ar
06444a34fb740e005045c844809bb1384943721c
2020c15a3f060d8e3660118cda61c1c29670ffcb
refs/heads/main
2023-07-19T03:31:47.788126
2021-09-12T20:35:18
2021-09-12T20:35:18
405,741,606
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from myapp import models # Register your models here. admin.site.register(models.Student) admin.site.register(models.Teacher) admin.site.register(models.Fach) admin.site.register(models.Library) admin.site.register(models.Father) admin.site.register(models.Author) admin.site.register(m...
UTF-8
Python
false
false
331
py
14
admin.py
13
0.824773
0.824773
0
11
29.181818
35
jmathes/assbible
10,574,209,522,792
933cb3f3bc3fbe5031dc5f6bd6e7d165d7cb7365
3a4c9c60fed3fb12066f347de3e7b8270cd6eb8a
/grabass.py
5159f8314953596d9ab6fff69cb4d09867474780
[]
no_license
https://github.com/jmathes/assbible
bc09c39acc5e3299873cba921c56cba4035da790
fee74fb2c5db1df521f3421c5e770dc0ce4e0623
refs/heads/master
2020-07-25T21:53:54.606606
2012-10-29T05:47:06
2012-10-29T05:47:06
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import re from pprint import pprint bibledir = os.path.join(os.path.dirname(__file__), "bible") asslines = {} asscounts = {} ass_re = re.compile(r"\b[Aa][Ss][Ss]\b|\b[Aa][Ss][Ss][Ee][Ss]\b") assert ass_re.search("ass") assert ass_re.search("Ass") assert ass_re.search("aSS") assert ass_re.search("aSS") asse...
UTF-8
Python
false
false
1,345
py
4
grabass.py
2
0.628253
0.624535
0
39
33.487179
228
Matheus-SS/Python
8,478,265,460,740
1aa90b951a837fd5bfbcdb718fd8efd06096c73f
a1f7ad37bd91d2a53fdbce0c8da7f9862a5ad458
/agenda.py
85ccdf4be626d71b277d5e88d58614c1a6637478
[]
no_license
https://github.com/Matheus-SS/Python
47cc7a6292038a98e069cc6584574c5b139a11ba
e604b4433aef84ba7779ad4b47b423fa9ab4ac2f
refs/heads/master
2020-03-26T17:02:47.735979
2018-08-17T15:52:49
2018-08-17T15:52:49
145,138,788
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
lista = [] print("1 - Adicionar contato") print("2 - Remover contato") print("3 - Atualizar contato") print("4 - Listar contato") print("0 - Sair") print() while True: n_digitado = int(input("O que deseja fazer:")) print() if(n_digitado==0): break if(n_digitado==1): res=input("Deseja v...
UTF-8
Python
false
false
1,844
py
36
agenda.py
36
0.522777
0.5141
0
52
34.403846
85
imsb-uke/bias-transfer-microscopy
14,285,061,244,696
17995260549df554d6701596bddb507f57533cbc
2c0aeaacaa818f83ce035ef261ca9cad14798521
/debiasmedimg/debiasmedimg/cyclegan/util/evaluation.py
4b3f929884f43df949fb27dc89ff282a2f3e0303
[ "MIT" ]
permissive
https://github.com/imsb-uke/bias-transfer-microscopy
54e35df5829b69d6c2b9ce5a0a0d7d4df7dc3d93
7cfbdc9098b3ec725397d5a45affa77863c4fc46
refs/heads/main
2023-06-27T15:10:16.486063
2021-08-03T08:52:33
2021-08-03T08:52:33
304,248,427
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from scipy.linalg import sqrtm from skimage.metrics import structural_similarity as ssim import tensorflow as tf from tensorflow.keras.applications.inception_v3 import InceptionV3 from tensorflow.keras.applications.inception_v3 import preprocess_input def ssim_score(input1, input2): """ Cal...
UTF-8
Python
false
false
2,311
py
45
evaluation.py
28
0.691342
0.667532
0
63
35.666667
100
svillalc/WebScrapingUoc
463,856,500,851
16f93b37e94e05df7001185bb93adf5685a62ef6
eb3857e637e84724a2332e8731af0549bb1c5370
/scraper/scraper.py
16a8dab4d831e6351e5966b76ab664c7d4302b6c
[]
no_license
https://github.com/svillalc/WebScrapingUoc
113b110940f07f78daab2cd57d93d39722edb1a6
0dc20b377605e641ff9cf766a4d3f77891f52760
refs/heads/master
2022-04-21T15:32:45.116156
2020-04-13T16:03:52
2020-04-13T16:03:52
253,291,066
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: cp1252 -*- from bs4 import BeautifulSoup import requests import pandas as pd import math import time # Headers para que idealista no bloquee el scraper headers = { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",...
WINDOWS-1252
Python
false
false
3,298
py
3
scraper.py
1
0.663024
0.636308
0
96
33.322917
141
xiongjia/vim-fanfou
13,039,520,714,886
817aaa09c52849496780b194445311f079d693a5
08a7def003486eb07873567a25daab69ab3fefcf
/plugin/vim_fanfou/vim_fanfou_unittest.py
96f643120edb8879a31467876d0afb45b78f813d
[ "LicenseRef-scancode-unknown-license-reference", "Vim" ]
permissive
https://github.com/xiongjia/vim-fanfou
49520b9a3554cf66e63e7f1093f1552b998774aa
800b3181d658269985f6f642ac707198dc7f472c
refs/heads/master
2020-05-01T11:33:14.634932
2014-07-26T03:41:29
2014-07-26T03:41:29
20,683,294
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python """ vim_fanfou.vim_fanfou_unittest: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The entry of all unit tests. NOTE: We need the vim Python module. Therefore, we must run these unit tests in VIM. Steps: 1. Open "plugin/vim_fanfou.vim" in vim 2. Run :so % 3. call VimFanf...
UTF-8
Python
false
false
669
py
16
vim_fanfou_unittest.py
12
0.641256
0.630792
0
25
25.72
70
asmrpuppy/talon_config
8,607,114,463,525
67bd16fadbdd4a68a75727fd18660cab43c9014f
2fff7c3428583e9da80c8c75579fd76e83a9746a
/misc/keys.py
769749583cd5d054c50882bc174fa95ecfedbc40
[ "MIT" ]
permissive
https://github.com/asmrpuppy/talon_config
59fb36ff4310eaa682b0aa78e6d62138631ccb16
d30e02f30873986b899bd1f10efc7442c6bd6d22
refs/heads/master
2022-05-25T10:45:43.794255
2020-04-23T17:20:38
2020-04-23T17:26:46
270,017,394
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Basic key mapping. Originally written by lunixbochs, version taken from the knausj_talon repo: https://github.com/knausj85/knausj_talon/blob/d330a6eb1fbfcc13f99a732a097f220fd0c10950/code/keys.py """ from typing import Set, List from talon import Module, Context, actions from user.utils import multi_map, dictif...
UTF-8
Python
false
false
7,339
py
60
keys.py
24
0.570883
0.566658
0
317
22.141956
146
terrifyzhao/educative4
15,152,644,660,465
5a781d3d8571098cefcc73c311464a7e681b7858
cb410de77d8118ca6e43919a84402b3bdb99289a
/14_k_way_merge/4.py
d4adebfadb931fe34a43c01fb4ab786b3d43d824
[]
no_license
https://github.com/terrifyzhao/educative4
e4708ba4088a72bd2973ddaae33e7d4bf6fda7d6
4f2def0d328d160da52ffa7c8082763e34185ab2
refs/heads/main
2022-12-28T04:26:45.428774
2020-10-13T09:21:38
2020-10-13T09:21:38
302,783,542
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from heapq import * def find_smallest_range(lists): min_heap = [] max_num = 0 for list in lists: max_num = max(max_num, list[0]) heappush(min_heap, (list[0], 0, list)) start = 0 end = 1000 while len(min_heap) == len(lists): value, index, list = heappop(min_heap) ...
UTF-8
Python
false
false
719
py
33
4.py
32
0.513213
0.485396
0
34
20.147059
69
Divinreddy/michael_le_python_scripts
11,149,735,113,358
f867a3ec14186367de6befa65df6fa1c269b4687
8220f38acfb4e9cef6583175676b4a5e5acda862
/le_print_hostNames_keys_Logs/le_print_hostNames_keys_Logs.py
ef5669e38d39bad71d3b9a6c04e333f757b268c2
[]
no_license
https://github.com/Divinreddy/michael_le_python_scripts
5fbf37f182fa4e0f40da428e1c6e7582378ef2e0
a21932b68f4c5d94e645cdb33f7fe4199156990e
refs/heads/master
2020-04-15T04:48:08.279453
2014-12-01T15:32:11
2014-12-01T15:32:11
164,397,017
0
1
null
true
2019-01-07T07:51:27
2019-01-07T07:51:26
2014-12-02T12:21:21
2014-12-01T15:32:23
72
0
0
0
null
false
null
# coding: utf-8 #!/usr/bin/python # THis script prints an alphabetically sorted list of host names, respective host keys, associated logs and log details # The log details include: Token-based or agent-based, log name, log token and log key # REQUIREMENTS - You must have the Account Key of the Logentries Account on...
UTF-8
Python
false
false
1,753
py
14
le_print_hostNames_keys_Logs.py
7
0.628066
0.623503
0
54
31.444444
120
habi/JahresRueckblick15
9,680,856,331,555
77847ec78bcae15c3ce63280f38bdd79c82db5c7
e4ba193aca8160991388f6828c71b690ca1e09a9
/geodata.py
d08d0acab3a783065c9b2fce38412d44f6abc339
[]
no_license
https://github.com/habi/JahresRueckblick15
9c7d68420f95aeb165999ed6411771374f190a59
0541a915df5129ab007aafc2ed09e067f367acf9
refs/heads/master
2021-01-10T11:32:37.657126
2020-09-22T20:04:11
2020-09-22T20:04:11
46,274,178
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Plotting OpenPaths data on a map ''' import numpy import matplotlib.pyplot as plt import matplotlib.dates as mpdates #~ lat,lon,alt,date,device,os,version #~ 49.9761505127,8.00768661499,86.5952682495,2014-01-18 16:17:04,"iPhone4,1",7.0.4,1.1 Lat, Lon, Altitude, Date, = numpy.loadtxt('openpaths_habi.csv', delimit...
UTF-8
Python
false
false
1,027
py
8
geodata.py
2
0.654333
0.583252
0
28
35.678571
86
nosarthur/cloud-harness
7,911,329,780,773
06d2609968ac5b769d9519cae2e3d9c2e349d4b4
c9909cc2f99c59105fea5af33e85903b5f1938e9
/tests/test_user_model.py
886180a33e564f2f41272c357ae2774f13164cbd
[ "MIT" ]
permissive
https://github.com/nosarthur/cloud-harness
dbd32641be8e93d06f91fe9b1ba0621417f2576c
8c4377860d35b94a89833b5700f374427b090b67
refs/heads/master
2022-12-14T11:32:10.659902
2017-08-24T04:49:24
2017-08-24T04:49:24
95,626,269
0
0
MIT
false
2022-12-07T23:59:58
2017-06-28T03:47:31
2018-03-07T05:41:08
2022-12-07T23:59:58
215
0
0
16
JavaScript
false
false
import pytest from app.models import User class TestUserModel: def test_password_setter(self): u = User('test', 'a@b.com', password='cat') assert u.password_hash def test_no_password_getter(self): u = User('test', 'a@b.com', password='cat') with pytest.raises(AttributeError):...
UTF-8
Python
false
false
803
py
27
test_user_model.py
22
0.608966
0.607721
0
29
26.689655
51
h4hany/yeet-the-leet
15,496,242,016,892
4338f71fea86b5e5ae57048886d39b7747617ede
de01cb554c2292b0fbb79b4d5413a2f6414ea472
/algorithms/Hard/132.palindrome-partitioning-ii.py
8b9a40e961fb9225099fdee9e81af001f4148f04
[]
no_license
https://github.com/h4hany/yeet-the-leet
98292017eadd3dde98a079aafcd7648aa98701b4
563d779467ef5a7cc85cbe954eeaf3c1f5463313
refs/heads/master
2022-12-10T08:35:39.830260
2020-09-02T23:12:15
2020-09-02T23:12:15
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # @lc app=leetcode id=132 lang=python3 # # [132] Palindrome Partitioning II # # https://leetcode.com/problems/palindrome-partitioning-ii/description/ # # algorithms # Hard (30.32%) # Total Accepted: 135.9K # Total Submissions: 448.2K # Testcase Example: '"aab"' # # Given a string s, partition s such that every su...
UTF-8
Python
false
false
860
py
3,103
132.palindrome-partitioning-ii.py
1,763
0.631395
0.595349
0
53
15.056604
79
JustinLiam/DAN
6,605,659,713,047
ed4a35850d5f2d20cdba0a7f4ea1fd3092ed6070
3cfb76a1540326ad2d17042c5263697a91147a20
/test.py
7064ce6c9fb68b3075543a9c5ff0c9642a2a3d91
[ "MIT" ]
permissive
https://github.com/JustinLiam/DAN
5f3e1568bce353f1f48f69e4b0c4cc4fd2d412ae
eb29cddad6c93e591854b115ef524643b1cd471c
refs/heads/main
2023-07-29T22:21:45.578891
2021-09-09T09:46:15
2021-09-09T09:46:15
409,651,931
1
0
MIT
true
2021-09-23T15:44:56
2021-09-23T15:44:55
2021-09-14T09:28:54
2021-09-09T09:46:15
15,370
0
0
0
null
false
false
import torch import os import ray from time import time from runner_for_test import TestRunner from config import config from env import Env cfg = config() model_path = cfg.model_path device = cfg.device decode_type = 'greedy' test_size = 500 def test(): average_max_length = 0 average_mean_length = 0 ave...
UTF-8
Python
false
false
1,393
py
13
test.py
12
0.61163
0.600861
0
50
26.86
80
Conpancol/PyHeroku
10,256,381,912,364
e26ee1426bd8f5355f17e726f05cf9cae78cc3eb
d9c41d8356ce6d7334598909db030b4f802c5146
/CPFrontend/quotes/views.py
de57c9d639dd808d2f887c1c61e170a0085129dd
[ "MIT" ]
permissive
https://github.com/Conpancol/PyHeroku
da8336c6b51fd17ee2965622fc3a6a8d1ffe8a8c
16b157a23c77cd794d246a56cf8575766e48689c
refs/heads/master
2020-03-22T20:24:04.797147
2019-11-03T02:49:22
2019-11-03T02:49:22
140,596,657
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render, redirect from django.core.files.storage import FileSystemStorage from django.contrib.auth.decorators import login_required from django.forms import formset_factory from requests.exceptions import ConnectionError from .services.QuoteCreator import QuoteCreator from .services.ExtQuo...
UTF-8
Python
false
false
29,210
py
73
views.py
48
0.476036
0.475727
0
557
51.441652
119
beproud/bpmailer
12,867,722,057,793
2063fd528693718836d0e40bba8bfd4992768e3e
4bc1b018d091c85e0e9581b2e14e6fc2bf8c3f94
/beproud/django/mailer/backends/console.py
4b205330044dd798190a9138b8242819edd48b99
[]
no_license
https://github.com/beproud/bpmailer
cf1942c8666a8f4dcaae4a82e03ff9d01c4f7776
cea10bd2f087979d6632f71d87917787b9bd13c1
refs/heads/master
2023-07-11T09:06:51.924940
2022-07-12T04:21:14
2022-07-12T04:21:14
41,725,433
0
2
null
false
2022-07-12T04:21:15
2015-09-01T08:03:23
2022-03-11T07:30:56
2022-07-12T04:21:14
354
0
2
3
Python
false
false
""" Email backend that writes messages to console instead of sending them. """ import sys import logging import threading from django.conf import settings from beproud.django.mailer.backends.base import BaseEmailBackend logger = logging.getLogger(getattr(settings, "EMAIL_LOGGER", "")) class EmailBackend(BaseEmailB...
UTF-8
Python
false
false
1,398
py
23
console.py
12
0.600858
0.59299
0
44
30.772727
71
saleph/SAG_spatial_factory
4,303,557,247,882
912a60e04ca9021fe2920051fb22065699d8de5c
a32a2f525ced34dac627cb135c34b55f88679aec
/DataTypes/MessageThreadCounter.py
cdc3e9112c9aa8b2d96f492b14532f6936b794d6
[]
no_license
https://github.com/saleph/SAG_spatial_factory
50f6eea5d021d512a37aef0277cf4f06a922873b
88ccfa6d25aa8c279f930e3f43ceecfc079464cb
refs/heads/master
2020-09-27T15:30:15.951510
2020-01-28T21:47:51
2020-01-28T21:47:51
226,546,285
0
0
null
false
2020-01-18T20:51:52
2019-12-07T16:52:52
2020-01-18T17:10:51
2020-01-18T20:51:51
26
0
0
0
Python
false
false
class MessageThreadCounter: def __init__(self, thread_id = None, counter = 0 ): self.thread_id = thread_id self.counter = counter def increaseCounter(self): self.counter += 1 def decreaseCounter(self) -> bool: self.counter -= 1 return self.isCounterEmpty() def...
UTF-8
Python
false
false
435
py
26
MessageThreadCounter.py
22
0.616092
0.606897
0
18
23.222222
55
hubaym/waf
1,760,936,612,804
9e3822df1a0543d5982538588dede3f66720d9dc
4f50a8a320e89fa60147ae21949168f9929a24ea
/wafweb/wafwebapp/classes/archive/process.py
04812d369d317a1eeacbe885f97b153877a33310
[]
no_license
https://github.com/hubaym/waf
78732b3d42054b0bc608912a37bed3e78bd750f0
a51ec7331c0c80841de3a52b325fb42708e38a6d
refs/heads/master
2021-04-15T03:52:02.586070
2016-08-24T22:18:15
2016-08-24T22:18:15
65,689,380
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tweet2json import Tweet2Json from twitterconnection import TwitterApi import datetime from mongolayer import MongoLayer from processTweetBatch import processTweetBatch from waflog import WafLog twitter= TwitterApi() mongodb = MongoLayer() def ingestion(users, count = 1, insert = True, drop = False): if dr...
UTF-8
Python
false
false
2,592
py
80
process.py
58
0.612269
0.584105
0
83
30.180723
97
codeashen/Python-Journey
8,856,222,568,143
b1119ad956acc82cde01bad18c29a99ca5ceda57
08afbb6a4d3856c7db4b004bd24d5b815f190951
/python-full-stack/1-elementary-python/11-模块与包-python_package/test_01.py
28a82772f5868dc52a6a954cae694024e2e3e7d5
[]
no_license
https://github.com/codeashen/Python-Journey
90734548249f469ef9d08e2d64ceb699a7607bfd
39002b0e008fb9f536b200e95f587649e9bca6bc
refs/heads/master
2023-04-16T06:13:32.526114
2022-09-17T13:51:09
2022-09-17T13:51:09
359,531,091
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding:utf-8 import re str_data = 'hello xiaomu, this is a good day!' result = re.search('h([a-zA-Z])s', str_data) print(result.groups())
UTF-8
Python
false
false
142
py
170
test_01.py
151
0.661972
0.65493
0
7
19.285714
46
achenbachsven/learningSkript
1,571,958,031,957
b1277e4de9bfa4022c4628722a93d9f6ec419ec2
533d7f6213181bc65f89f4f01e4521671deb266a
/cobras_ts/cobras_dtw.py
bbfcfbf938cad229bf89568682db62bcd11f916b
[ "BSD-3-Clause" ]
permissive
https://github.com/achenbachsven/learningSkript
7353b8341212da6ad8af6e5acb0ab20327d0cd57
7af067cbf0c8d7eed010806923f8af2e38977be2
refs/heads/master
2022-06-04T16:10:48.109638
2021-03-05T16:37:03
2021-03-05T16:37:03
245,118,795
0
0
BSD-3-Clause
false
2022-05-26T20:42:39
2020-03-05T09:21:50
2021-03-05T16:37:05
2022-05-26T20:42:38
2,601
0
0
2
Jupyter Notebook
false
false
import numpy as np from sklearn.cluster import SpectralClustering from cobras_ts.superinstance_dtw import SuperInstance_DTW, get_prototype from cobras_ts.cobras import COBRAS class COBRAS_DTW(COBRAS): def split_superinstance(self, si, k): data_to_cluster = self.data[np.ix_(si.indices, si.indices)] ...
UTF-8
Python
false
false
1,583
py
27
cobras_dtw.py
18
0.646241
0.64561
0
42
36.714286
100
jain7727/html
12,455,405,186,039
3c2a0f13d4c2fdab094da996b2191b6248e75d56
5849acd68ed0ba545c767663911ee0365cad42c2
/collections/list/list1.py
bc7a7cf9bc8158d53e081c1aa012b9b313632216
[]
no_license
https://github.com/jain7727/html
785e6731634732e63fc4d76d52524f8707d53bb6
c056d6023e9fc05b8cea1afbc941bb35a63efcf5
refs/heads/master
2023-04-30T21:39:22.710943
2021-05-20T08:26:24
2021-05-20T08:26:24
369,136,223
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# lst=[1,2,3,4,5,6,7,8,9,10] # lst=[2,5,3,9,10,7,11,5,1,8,4,6] # sum=0 # for i in lst: # sum+=i # print(sum) # print(sum(lst)) #function of sum, of all elements # print(max(lst)) # function called max, prints max element # print(min(lst)) # function called mix, prints min element # d=0 # for i in lst: # ...
UTF-8
Python
false
false
825
py
77
list1.py
77
0.587879
0.509091
0
42
18.595238
70
QuinnBast/SaskTel-Communication-Portal
16,784,732,224,998
02b3b4af13919f1eafdcfadd40b31f13dc1906e7
820626d43974817219be626fbb12119a545b5d0d
/REST/config/ProductionConfig.py
09f82d41129727823f4edd4cc42a62aa6e9f2b8c
[]
no_license
https://github.com/QuinnBast/SaskTel-Communication-Portal
7bd3c6ea8262ff1dd42844851919d77db76c58ee
45e113331cfa5af48e27812764316ce436f16b46
refs/heads/master
2020-04-02T12:06:42.626039
2019-04-04T03:42:31
2019-04-04T03:42:31
154,419,804
2
0
null
false
2019-04-04T03:42:32
2018-10-24T01:27:25
2019-04-02T01:09:40
2019-04-04T03:42:31
5,980
1
0
10
JavaScript
false
false
from REST.config.Config import Config class ProductionFlaskConfig(Config): JWT_COOKIE_SECURE = True # Cookies must be sent using HTTPS JWT_SECRET_KEY = "ChangeThis" # Secret value used encrypt tokens
UTF-8
Python
false
false
221
py
67
ProductionConfig.py
46
0.723982
0.723982
0
5
43.4
75
h4wldev/seed
816,043,824,520
e4249ad664fab7f6641589b1b53939be72b31e45
bd9c828c41e334a743073f8c48600a85a72db214
/seed/models/ability_model.py
931a19d8389e0021b901add2ad8f0ea6e5144267
[ "MIT" ]
permissive
https://github.com/h4wldev/seed
caab268501548e09ffce256945b3264bd234158d
858e74b002526c7100200241fb4ec36c9f9f691f
refs/heads/main
2023-03-22T03:24:27.305840
2021-01-26T13:52:46
2021-01-26T13:52:46
323,279,470
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime from sqlalchemy import Column, Text, String, DateTime from .mixin import Base, ModelMixin class AbilityModel(Base, ModelMixin): __tablename__ = 'abilities' _repr_attrs = ('ability') ability = Column(String(20), primary_key=True) description = Column(Text) created_at = Column(Da...
UTF-8
Python
false
false
359
py
70
ability_model.py
61
0.715877
0.710306
0
15
22.933333
64
fc860325/Leetcode
2,800,318,686,258
83e8a6d17fa5af36536f14c69cb60d48b0fa8615
c6c2384f3013ff0445c2cb93474b1caf035912e9
/HW3.py
dc50eb3989aa633b1ea756aa5f10779b902a2610
[]
no_license
https://github.com/fc860325/Leetcode
bd3c14f0a8d24a829f993267dc738a7ca957d2c4
a6ff313e67737b9b33b8763e1cca9de7a6d24a71
refs/heads/master
2022-02-07T18:43:06.284220
2019-07-10T16:12:50
2019-07-10T16:12:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def isPalindrome(self, x): back = str(x)[:: - 1 ] if(x >= 0 and str(x) == back): return True else: return False
UTF-8
Python
false
false
193
py
6
HW3.py
5
0.455959
0.445596
0
7
25.857143
38
leadrive-public/portal
13,580,686,631,489
abea3550e43e9c5ac7a5433b5851ef973d6ea0eb
827957b8f7269173732d3627b62eaef869abacab
/application/qms/blueprint.py
299f4d966d704dd787f758f4b32b26c82bcd55f8
[]
no_license
https://github.com/leadrive-public/portal
04ed58b6bf55bd41195a26c1a5356718ea11595a
a72f4b9afc315124d9dd6e056d602c56fa1e7196
refs/heads/master
2021-01-16T01:34:53.911100
2020-08-06T01:56:33
2020-08-06T01:56:33
242,927,610
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import flask import flask_login import sqlite3 import os import json from . import service as service bp = flask.Blueprint('qms', __name__, url_prefix='/qms') def basePath(): return os.path.dirname(__file__) @bp.route('/') def default(): user=flask_login.current_user if user.is_authenticated: re...
UTF-8
Python
false
false
1,961
py
85
blueprint.py
34
0.677715
0.677206
0
69
27.42029
89
jeremysherriff/HTPC-Manager
18,794,776,911,051
a5e052f275dc3c274b2aea0a5ee58ad1f6ca3330
b76446925e45c3da75829cb98786125f59381b13
/libs/sqlobject/maxdb/maxdbconnection.py
b88a79f49b446a4548078795d324139e54b84556
[ "MIT", "GPL-1.0-or-later" ]
permissive
https://github.com/jeremysherriff/HTPC-Manager
f28f319f2b95a966825458dbaf1d0069cbde009a
f4972361b768f9b585b9060daa605d5d8346c1a8
refs/heads/master2
2021-05-13T15:30:22.453814
2019-02-13T22:43:00
2019-02-13T22:43:00
116,771,272
1
0
MIT
true
2019-01-22T06:37:13
2018-01-09T05:42:23
2019-01-21T04:47:26
2019-01-22T06:26:46
11,816
0
0
3
Python
false
null
""" Contributed by Edigram SAS, Paris France Tel:01 44 77 94 00 Ahmed MOHAMED ALI <ahmedmoali@yahoo.com> 27 April 2004 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ...
UTF-8
Python
false
false
10,919
py
157
maxdbconnection.py
145
0.576335
0.573496
0
303
34.036304
103
x41lakazam/di-python-2018
6,021,544,163,589
b1422f5000857609fdc56f3dbff65c3b76d51061
75f20a330bfa1295c9d564ea58ae582e871c107b
/Homeworks/anagrams/anagram_checker.py
89e778bb88c773ace33b3d391f464794cfda2d2b
[]
no_license
https://github.com/x41lakazam/di-python-2018
ffd1c94347415a72f3ea85644a76628ffade7f72
743a5887b15a2234268d702741aff17b7e7e441d
refs/heads/master
2020-04-24T06:04:14.942358
2019-07-23T16:49:02
2019-07-23T16:49:02
171,752,683
1
4
null
false
2019-11-02T22:41:48
2019-02-20T21:33:35
2019-07-23T16:49:19
2019-11-02T22:41:47
33,879
1
1
1
Python
false
false
class AnagramChecker: def __init__(self): # Read the lines of the file with open("engmix.txt", 'r') as f: lines = f.readlines() # Put everything in lowercase self.clearlist = [] for line in lines: self.clearlist.append(line.lower()) def is_val...
UTF-8
Python
false
false
815
py
159
anagram_checker.py
49
0.52638
0.52638
0
31
25.258065
54
jimc101/opec-tools
4,088,808,913,119
573d1121098df7ed37ac3fb082c06ed2ffc15258
bb5c056b07887d19a198a30ee1c63ac0ff349a6a
/opec/benchmarking.py
d045b5840473d23e2283544dee8b87cf19c7d1b6
[]
no_license
https://github.com/jimc101/opec-tools
246d66e529d293adc2ae53cbca77b718430d9955
dffabfc3383f262b1c69b68f2529425f10875968
refs/heads/master
2020-12-25T02:40:15.926017
2014-07-02T09:29:05
2014-07-02T09:29:05
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright (C) 2013 Brockmann Consult GmbH (info@brockmann-consult.de) # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation; either version 3 of the License, or (at your option) # any later version...
UTF-8
Python
false
false
10,228
py
35
benchmarking.py
24
0.724482
0.723797
0
225
44.457778
159
enixdark/itNews
2,319,282,382,274
09d803fe7784c39c23b2b9deecb654f0c1fd5096
47d1edfeef8c67a237c62b3caf0fbc6a5a2ddf35
/Haskell.py
ae1196859b61a2460f530e558f77e2973b359c3e
[]
no_license
https://github.com/enixdark/itNews
c54e9219c6d8e8a82d7ebd19fa742069501ebccb
0d10a6dc3b8b3e26d278c9249ecf975d8a5e12bb
refs/heads/master
2021-01-19T10:57:46.926398
2015-09-26T09:41:40
2015-09-26T09:41:40
33,329,765
6
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"Haskell":[ "https://blog.wearewizards.io/using-haskells-quickcheck-for-python" "http://haskellbook.com/" "http://engineering.imvu.com/2015/06/20/testable-io-in-haskell-2/" "https://realm.io/news/swift-summit-abizer-nasir-lessons-from-haskell/" "http://haskell-distributed.github.io/" "http://www.brendanhay.nz/ama...
UTF-8
Python
false
false
664
py
48
Haskell.py
47
0.76506
0.704819
0
12
54.416667
104
adrianhindes/generalizedModeling
6,579,889,941,059
e86b14576450d55482f6ba3190d108dde2e75a36
451ac0df177e15e17105fce4404511bc48bae618
/mangrove-peat-salt/jacobian.py
e92eadc010c2bf8ffd0e10c41da9048c246ded83
[ "MIT" ]
permissive
https://github.com/adrianhindes/generalizedModeling
dab9c3723ecd539093b351c5e78ac34dcbae4655
ba0e366814fa289aafde4011b95d24b647da4cb6
refs/heads/master
2020-05-20T20:55:33.925217
2019-10-07T04:08:01
2019-10-07T04:08:01
185,751,376
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 30 13:17:03 2019 @author: hindesa return Jacobian for mangroves model given parameter set """ import numpy as np def computeJac(data): alphaM = data['alphaM'] alphaP = data['alphaP'] alphaS = data['alphaS'] betaG = data['betaG'] betaP = data['bet...
UTF-8
Python
false
false
2,144
py
46
jacobian.py
44
0.564832
0.548041
0
93
22.064516
77
ajso/recommendation-system-
11,974,368,837,574
bf8bb453fa1733f7aa861e602756c09040207317
77173d31ba70fa2e5ea8e4457c0e9d84195a2a93
/recommender/load_movies.py
11c06ecd4bfe87fb34a9332569573d4366ae3cc7
[]
no_license
https://github.com/ajso/recommendation-system-
81896547f6154ea950c3ff8598af307e6de70b09
8507784d36ee7f87b0130bb77f99d5876ba913da
refs/heads/master
2022-05-17T16:13:13.731392
2018-12-07T12:52:28
2018-12-07T12:52:28
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys, os import pandas as pd import datetime os.environ.setdefault("DJANGO_SETTINGS_MODULE", "recommender.settings") import django django.setup() from moviesreview.models import Movie def save_movie_from_row(movie_row): movie = Movie() movie.id = movie_row[0] movie.title = movie_row[1] ...
UTF-8
Python
false
false
756
py
2
load_movies.py
2
0.580688
0.572751
0
36
20
71
robertoantony32/Activity-010
16,303,695,893,709
e1dac0fd5f4715e3b6882b1174688bf84d4d670b
9962b2cd97dfbfa0caff4d69024a2804c04e9212
/gameplay.py
b1d2e24020bc128a976f5db56d4e64e3a9d410d1
[]
no_license
https://github.com/robertoantony32/Activity-010
1b587aa4e662b941353ed564a39bbc5b730df99e
27681653af3fe6efd644d4ec516ec936c2391d50
refs/heads/master
2023-06-05T05:36:32.002823
2021-06-28T14:30:35
2021-06-28T14:30:35
380,808,324
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pygame from pygame.locals import * from until import Until class Gameplay: def __init__(self): pygame.init() self.screen = pygame.display.set_mode((Until.WINDOWM_SIZE, Until.WINDOW_SIZE)) self.clock = pygame.time.Clock() self.running = True def loop(self): w...
UTF-8
Python
false
false
706
py
13
gameplay.py
13
0.532578
0.529745
0
34
19.794118
86
raphaelhazout/Raphael5
9,079,560,898,077
19a6c28f28f4d1a0d378d71ea6530ee55e2456ca
85a10d5fd6788bbcb743f7cfa95a1f12d80c5491
/Package1/test_worker.py
f842ac67b0ca63111bd9d229bd8a874fb8a00a05
[]
no_license
https://github.com/raphaelhazout/Raphael5
60782715acf16e2d9273038d9de0f5fdd3ad9f30
29c26b1ffb756ddfb5aafa62f5b12992731256c0
refs/heads/master
2022-11-24T21:41:36.024135
2022-08-02T19:01:49
2022-08-02T19:01:49
279,591,863
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from unittest import TestCase from unittest.mock import patch from Package1.Worker import * class TestWorker(TestCase): def setUp(self): print('setUp') self.moshe = Worker('Moshe', 'Cohen', 2000,2,17,'1 Yigal Alon, Tel Aviv','il') print(self.moshe.full_name()) def tearDown(self): ...
UTF-8
Python
false
false
1,076
py
79
test_worker.py
76
0.615242
0.60223
0
35
29.714286
111
t-hanya/xreco
7,808,250,567,587
8430ecba945ccad58a9d8ae1cb1fc016f39f96ad
965f54a150ee950fa00d684b44a3fbbfc80d00b1
/xreco/__init__.py
7f024c31608112ce182288f35a1cd6bceb7cace7
[ "MIT" ]
permissive
https://github.com/t-hanya/xreco
4bc10ed0d1478c0d093507f8e2613cbd980c7948
b004d6892a49018d8684d02fda88640e07ca0b26
refs/heads/master
2021-04-15T06:55:05.104047
2018-03-26T14:40:44
2018-03-26T14:40:44
126,154,969
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ xreco module """ from xreco.argument_parser import ArgumentParser
UTF-8
Python
false
false
95
py
6
__init__.py
4
0.673684
0.663158
0
6
14.833333
48
pmlmodelling/fabm-mizer
8,254,927,186,364
b02a669179a68fcbbaafdce3bc6142bd415b82d8
98125515c8b7efaacdd0ba7728ed225242e8c405
/python/run_offline_amm7.py
b9c70aed1cb3908ad77b76a0c6295c49873b3144
[]
no_license
https://github.com/pmlmodelling/fabm-mizer
02b7c58d8f3ad710a78013e34f56c041c25e8798
3a62680301c1806f1369e8ff7ddf5d0555c131b7
refs/heads/master
2023-09-03T17:32:29.403712
2023-07-17T13:41:00
2023-07-17T13:41:00
341,277,850
0
0
null
false
2023-07-17T13:41:02
2021-02-22T17:17:05
2023-05-31T13:00:21
2023-07-17T13:41:00
849
1
0
0
Fortran
false
false
from __future__ import print_function import sys import os import glob import datetime import argparse import re import shutil import gc gc.set_debug(gc.DEBUG_UNCOLLECTABLE) import yaml import numpy from matplotlib import pyplot from matplotlib.dates import datestr2num, date2num, num2date import netCDF4 fabm_root ...
UTF-8
Python
false
false
16,973
py
35
run_offline_amm7.py
13
0.603193
0.574795
0
374
44.379679
285
goldfish724/kaori
15,118,284,916,699
48d12e8a8b353ffe2ea81fc0b0652c03bb92b6f5
3f42728b17c8e780c864e847ceed96f0abb9d693
/kaori/skills/file_uploads/__init__.py
847ec416f3d266a7b691b113719a143bc7023788
[ "MIT" ]
permissive
https://github.com/goldfish724/kaori
b1b4390085a8713098e54c16ba7d57e5f744bcc5
aa2abedd2be4484539d79340ebdc9b6e213b5381
refs/heads/master
2022-12-30T13:04:44.802242
2020-08-24T16:04:29
2020-08-24T16:04:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .abc import FileUploader from .local import LocalFileUploader from .gcloud import GCloudStorageUploader
UTF-8
Python
false
false
108
py
124
__init__.py
104
0.87037
0.87037
0
3
35.333333
41
ishangala16/Python-Basics
15,401,752,740,922
41c8bd05a57113ce0eb18929dd4503431e70b50d
3e6ef2a834f373a3f51fb2de4abe0c1ac9ce0cbd
/searchfile.py
e2f3544962588becb67780601eda7c841ba41213
[]
no_license
https://github.com/ishangala16/Python-Basics
5386851d139f5fefcb874607c024b61590606eec
7bfd00e137196a7296e82dac521f9c3c5cc74c9e
refs/heads/master
2020-07-10T14:04:57.029194
2019-12-27T10:02:20
2019-12-27T10:02:20
204,279,959
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
searchWord=input("enter word to search: ") with open('/home/fpl-i/Desktop/chagan.txt') as infile: words = 0 characters=0 count = 0 for lineno, line in enumerate(infile,1): count += line.count(searchWord) wordslist = line.split() words += len(wordslist) characters += sum(l...
UTF-8
Python
false
false
460
py
8
searchfile.py
8
0.634783
0.626087
0
15
29.066667
54
andrasormos/Ai_Statistics
12,541,304,504,629
3172c81e7378eb9e2464ab40d3596a34d1c5b63c
fca1c652a0b9672db1e64cd4de9c89d6f1f28e1d
/Examiner.py
fd090e7f4ad8a04395df8b6334e55cb7a5dea330
[]
no_license
https://github.com/andrasormos/Ai_Statistics
e12948683b1a549adeedf9ca288fdf78973362e2
05c15e20c6eaae46b04c933185fefa5d63e81c56
refs/heads/master
2020-03-31T16:37:06.476104
2018-10-13T23:16:15
2018-10-13T23:16:15
152,382,495
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np from random import randint import matplotlib.pyplot as plt import matplotlib.dates as mdates import pylab as pylab from scipy import stats import os.path def guessCorrectness(guessedRightCnt, guessUpCnt, guessDownCnt, guessSkipCnt, rewardSum, guessCnt, profit, period): correc...
UTF-8
Python
false
false
4,247
py
7
Examiner.py
6
0.612197
0.580881
0
153
26.764706
197
Ping1122/JRAuto
11,038,065,960,327
9a2f0324e6470955392d00f6629e9bfdf8456cbf
c42e0c34ab9962c552ed79088f37079e48ee8119
/util/logger.py
00a5a90cb3dd420c0c26ef3c7758133aa50a7bee
[]
no_license
https://github.com/Ping1122/JRAuto
c479ce9dab8a9f145bef2c5d953cd4b8cb7c4930
d885631cf66f4ed5206bdcdd09e55489cb5813ab
refs/heads/master
2020-12-14T22:03:49.235071
2020-03-06T18:17:35
2020-03-06T18:17:35
234,883,205
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from enum import Enum Types = Enum("Types", "error warning info debug verbose") typeMessageHeader = { Types.error : "Error: ", Types.warning : "Warning: ", Types.info: "", Types.verbose: "", Types.debug: "Debug: ", } def log(message, type): print(typeMessageHeader[type] + message)
UTF-8
Python
false
false
291
py
142
logger.py
140
0.676976
0.676976
0
14
19.785714
57
Asadullah-Dal17/Improve-object-detection
18,949,395,716,397
3c63bea26c7dfd247ef40bbebd5a31f1bc2b186d
c4dd282c3ad8f617cf270c35912bb341748a56e2
/QR_Code_Detection/opticalFlow.py
ae73503abe6dc739e8d9601b8b78f17efa5d9cfd
[]
no_license
https://github.com/Asadullah-Dal17/Improve-object-detection
f63a08d16954d64a4a9b44b852eac71c6b7e93c4
ba3674067367f9c16ca31aa86db3433014b9e4f2
refs/heads/master
2023-07-18T16:08:35.154358
2021-09-17T10:44:53
2021-09-17T10:44:53
405,378,013
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 as cv import numpy as np cap = cv.VideoCapture(1) _, frame = cap.read() old_gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY) lk_params = dict(winSize=(15, 15), maxLevel=4, criteria=(cv.TERM_CRITERIA_EPS | cv.TERM_CRITERIA_COUNT, 10, 0.03)) def selected_Point(event, x, y, fla...
UTF-8
Python
false
false
1,370
py
9
opticalFlow.py
8
0.59854
0.572993
0
51
25.862745
84
PKQ1688/rpa_verification
15,204,184,266,486
c40d5d71d9ded1b69275d431a969bd8dc1e2a5b0
a7c7ec87766cb2f7837567bb9e408c0d2dfddcb7
/rpa_ocr/__init__.py
2c450d9520335c378fc53ddaea83e68082b96201
[ "MIT" ]
permissive
https://github.com/PKQ1688/rpa_verification
843e77aed0763655beb363b3e1d7dc0fb532c6bd
12e5402cdbe3e48db338c821baed4d41bfef278d
refs/heads/master
2023-01-21T11:32:23.221423
2020-12-01T08:39:22
2020-12-01T08:39:22
317,476,129
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding:utf-8 -*- # @author :adolf __name__ = 'rpa_ocr' __version__ = '0.2.1' from rpa_ocr.Identify_English.train_tools import Train from rpa_ocr.verification_service.verification_main import ocr_pipeline_main from rpa_ocr.Identify_English.inference import CRNNInference
UTF-8
Python
false
false
276
py
32
__init__.py
26
0.746377
0.731884
0
7
38.428571
76
yaotian/IPProxys
9,955,734,225,024
d3572e81b8dd8bf87c1594f5c0c79b5a1387ab9d
db46667e51210956b10c9b5ef3ca815007287552
/spider/ProxySpider.py
61b2040fd9a750eba5a4bf6133d30df8f6c99a79
[]
no_license
https://github.com/yaotian/IPProxys
3ee32dc71fcb71dd276f027d4ea157479133f7e8
c3aa23b281ddf8f68d9b6433141ca16f30b17fc3
refs/heads/master
2020-06-18T04:26:18.356336
2016-12-01T05:08:33
2016-12-01T05:08:33
74,949,704
0
0
null
true
2016-11-28T07:48:47
2016-11-28T07:48:46
2016-11-28T07:03:09
2016-11-28T01:23:34
4,901
0
0
0
null
null
null
#coding:utf-8 import os from gevent.pool import Pool import requests import time from config import THREADNUM, parserList, MINNUM, UPDATE_TIME from db.SQLiteHelper import SqliteHelper from spider.HtmlDownLoader import Html_Downloader from spider.HtmlPraser import Html_Parser from validator.Validator import Validator im...
UTF-8
Python
false
false
3,670
py
1
ProxySpider.py
1
0.554207
0.551101
0
105
32.742857
199
carolinewang01/psa-analysis
13,005,161,019,398
86471c67a6524ce1dd9c95e3b772f114908b83a9
25cbfbdc36cefd99e988c0dd5d6cd8fbbf2aa49e
/kentucky/interpretable/six-month/.ipynb_checkpoints/advance_functions-checkpoint.py
0cf9d2b4c4a7b37cc0ab3f9992691b73bbdf0ba0
[]
no_license
https://github.com/carolinewang01/psa-analysis
5ec25960a75fcb452051cf0f99e45f6406f0a50d
d8d77d23ec5964c995b2756eb56675e6cae3263f
refs/heads/master
2022-04-01T05:08:30.037675
2019-12-20T00:53:00
2019-12-20T00:53:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
### AdaBoost -- one-depth decision tree #def Adaboost(x, y, learning_rate, estimators, seed): # # import numpy as np # from sklearn.model_selection import KFold, GridSearchCV # from sklearn.ensemble import AdaBoostClassifier # # ### model & parameters # ada = AdaBoostClassifier(random_state=seed)...
UTF-8
Python
false
false
3,520
py
510
advance_functions-checkpoint.py
9
0.615341
0.611648
0
83
41.39759
130
oauthlib/oauthlib
12,386,685,729,896
92f8e5b33bdef1deddaea9267ac61e365c474924
aed49405cb8b3d0b90e9aabedd6a730efaa7cd6b
/oauthlib/oauth1/__init__.py
9caf12a90d878efa4460811310818ee3572fcdd4
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
https://github.com/oauthlib/oauthlib
fe6e56e50487492fce6bc940bcdd639d9cca67e4
00f9a212004a80df790ed071a59af53a05f5e3f2
refs/heads/master
2023-09-02T18:30:07.113921
2023-08-11T16:35:16
2023-09-02T11:35:31
2,811,323
1,223
236
BSD-3-Clause
false
2023-09-14T09:47:49
2011-11-19T23:08:51
2023-09-13T14:29:21
2023-09-14T09:47:48
3,098
2,640
489
87
Python
false
false
""" oauthlib.oauth1 ~~~~~~~~~~~~~~ This module is a wrapper for the most recent implementation of OAuth 1.0 Client and Server classes. """ from .rfc5849 import ( SIGNATURE_HMAC, SIGNATURE_HMAC_SHA1, SIGNATURE_HMAC_SHA256, SIGNATURE_HMAC_SHA512, SIGNATURE_PLAINTEXT, SIGNATURE_RSA, SIGNATURE_RSA_SHA1, SIGNAT...
UTF-8
Python
false
false
822
py
193
__init__.py
118
0.776156
0.734793
0
23
34.73913
79
ac259/The-GANfather
16,956,530,899,316
b9dced42e782d28853d86480c68c98be48e557c6
13582d22715a3b5c5a4630683205b725295cf782
/DCGAN_SAGAN/python_files/test_fid.py
f0582363893a6a6129ccd2d2e6d30049ec124411
[]
no_license
https://github.com/ac259/The-GANfather
3cf772de70d7565b28fbb93f11e6faf20f664cc0
ffb0891b83ca9c57bf9bc0fc3672f1cb82e2727c
refs/heads/master
2022-12-01T02:55:12.671609
2020-02-28T00:27:43
2020-02-28T00:27:43
183,055,833
0
0
null
false
2022-11-22T04:35:52
2019-04-23T16:35:41
2020-02-28T00:27:47
2022-11-22T04:35:49
27,844
0
0
14
Jupyter Notebook
false
false
from keras import layers, models import numpy as np import os, glob from keras.preprocessing import image from numpy import zeros from numpy.random import randn from matplotlib import pyplot from time import gmtime, strftime import numpy import keras from numpy import cov from numpy import trace from numpy import iscom...
UTF-8
Python
false
false
3,610
py
6
test_fid.py
1
0.710526
0.681994
0
112
31.241071
92
denniscallanan/gaa-api
13,477,607,382,755
cc379ccf233f70cf77575e8dcfbb3ee7ce45d14d
8a3580f4816f81f1698ed71617a2ddb9563bf340
/src/helpers.py
f2f9a7df94a654b4389d5c689f8abe2353f4f27a
[]
no_license
https://github.com/denniscallanan/gaa-api
c46b67d0e8f496c93b791dfb619fbbe41f0063cb
6ed23baecb976e740171c72be37c7137324323f4
refs/heads/main
2023-03-01T12:34:04.869174
2021-02-10T09:30:44
2021-02-10T09:30:44
334,648,455
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def get_field_args(obj, new_field_map=None, discarded_fields=None, nested_structure=True): attributes = obj.__dict__ if nested_structure: attributes = attributes['__data__'] field_map = new_field_map or {} fields_to_discard = discarded_fields or set([]) field_args = {} for k in list(a...
UTF-8
Python
false
false
581
py
28
helpers.py
20
0.592083
0.592083
0
16
35.25
90
shivam221098/data-structures
9,878,424,810,188
6baf2a5dc52ba55005b7cbb6fb78f28bc7ea51ac
9794293160296c46696541047a9929d56193ca70
/trees.py
c48c8183a68fb8793d5738e41a183493aa71ac47
[]
no_license
https://github.com/shivam221098/data-structures
5edb8976e07e19b34dbd5ff4e616dac83a1a9219
53832076f7deed78a1d7e7e3025b93de21fd0289
refs/heads/master
2023-07-11T13:59:50.768351
2021-08-10T19:02:34
2021-08-10T19:02:34
394,754,826
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" Max Heap """ import sys def parent(pos): return pos // 2 def left_child(pos): return pos * 2 def right_child(pos): return (2 * pos) + 1 class MaxHeap: def __init__(self, size): self.maxsize = size self.size = 0 self.Heap = [0] * (self.maxsize + 1) self.Hea...
UTF-8
Python
false
false
5,847
py
6
trees.py
6
0.534804
0.520096
0
260
21.488462
118
IAAA-Lab/python-quality-checker
10,118,942,986,198
dc30e8e047453516322696ba01363e8f01d2c497
63e92f5bebb2bc297e87ac4ebf77985cda7006b4
/tests/test_url_availability.py
bac2c17a1ee297ee16d7a5970249fe7188b5d1d5
[]
no_license
https://github.com/IAAA-Lab/python-quality-checker
496201c7c19cee9a9ea9ea87292b68c4d6883057
2e5973f5707dcaccf809115485a13d19de115931
refs/heads/master
2022-12-10T15:43:50.335547
2019-08-28T13:37:38
2019-08-28T13:46:28
196,577,290
0
0
null
false
2022-12-08T05:55:50
2019-07-12T12:40:54
2019-08-28T13:49:24
2022-12-08T05:55:49
22
0
0
2
Python
false
false
from qualitychecker import URL # pylama:ignore=E501 available_urls = [ ("http://google.com", False), ("http://datos.gob.es", True), ( "http://servicios.ine.es/wstempus/js/es/DATOS_TABLA/t37/p198/p01/serie/02002.px?tip=AM", False, ), ("http://www.ine.es/jaxiT3/Tabla.htm?t=24357", Fa...
UTF-8
Python
false
false
2,160
py
13
test_url_availability.py
6
0.658333
0.609722
0
58
36.241379
387
Harold1994/ProgramingCollectiveIntelligence
11,605,001,673,526
99d14b7c230f54dd61484aaa8bdde4f23b4680ff
f75e27b2a778d5cae678daa3a49ddfba2e728291
/chapter5_Optimazation/kayak.py
93f0784d2b2d7605f7372321bdcaebdb1ed0ebb8
[]
no_license
https://github.com/Harold1994/ProgramingCollectiveIntelligence
8560bd4e3f82d0991f01d39ba3d712ad512f4074
44940566eb0bccb5c07af5c4ddc37fb558617066
refs/heads/master
2022-10-23T20:29:14.100504
2018-01-12T14:04:12
2018-01-12T14:04:12
114,741,164
0
2
null
false
2022-10-17T14:07:55
2017-12-19T08:48:08
2017-12-19T08:50:35
2018-01-12T14:04:44
17,245
0
2
1
Python
false
false
import urllib.request import xml.dom.minidom import time kayakkey='YOURKEYHere' def getkayaksession(): url = 'http://www.kayak.com/k/ident/apisession?token=%s&version=1' % kayakkey doc = xml.dom.minidom.parseString(urllib.request.urlopen(url).read()) sid = doc.getElementsByTagName('sid')[0].firstChild.dat...
UTF-8
Python
false
false
1,943
py
19
kayak.py
16
0.663922
0.653114
0
47
40.361702
87
DenizCicekDS/Workspace-Clarusway
4,776,003,666,782
21d550ac5d2d4d5c88ba9a383609e4ed74a6235e
b0f61695760b2b94673d1e05541c894e02d0b17c
/covid19_new.py
8bb4492cb679c3e7141b18162de82d52973a8b3e
[]
no_license
https://github.com/DenizCicekDS/Workspace-Clarusway
bb95645ab676712cda36326663aa127cb4b76b8e
e008f632bd02a311163d4eb99f76a9ed99f6a160
refs/heads/main
2023-04-20T03:53:00.964281
2021-05-03T00:57:32
2021-05-03T00:57:32
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jan 16 02:16:15 2021 @author: C7169-Deniz """ print("\nThis simple program shows you, which risk group you are belonging \ \nto for Covid-19. There are 8 groups in total and the group 8 represents \ \nthe highest risk group. I wish you all the best. Stay at home, stay safe!...
UTF-8
Python
false
false
4,954
py
7
covid19_new.py
6
0.577715
0.559144
0
102
47.343137
87
mandstoni/Aula2
6,279,242,194,328
8a6a7af68b6cec7a3f11f432e5d5853fa7e14944
7bff0a016a89949dc12c125bb44014c02b4dbf70
/exer07.py
f5ce1aafe35aaff39617dc6a046f314453189718
[]
no_license
https://github.com/mandstoni/Aula2
db835d614865f4c64da45e7f3b8a7b4d3e5245b5
77c80ffa11ee7a218248b37f73f8fb78b5b49bcf
refs/heads/master
2021-03-13T21:36:33.279606
2020-03-12T01:22:36
2020-03-12T01:22:36
246,715,261
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
print("Exemplo 07") for item in range(9, -1, -1): print(item)
UTF-8
Python
false
false
69
py
11
exer07.py
11
0.57971
0.507246
0
3
21
29
Karagul/reportlabbookcode
137,438,957,373
975b56c0ab09e7da12ee8f25a054d270145fbde1
fc1141aabffe60455898b014fd8b4a2e8307ce85
/chapter6_other_flowables/xpreformatted_paragraph.py
718497674299f1423d3c1cc9b2ba9ccb2fef261f
[]
no_license
https://github.com/Karagul/reportlabbookcode
b5bff1609d62fe2bcfb17bfd7b65777121ac175c
e271348d5562f4842b9d1628ef917539a8ebcd5d
refs/heads/master
2020-09-21T14:58:43.427964
2018-12-19T17:40:46
2018-12-19T17:40:46
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# xpreformatted_paragraph.py from reportlab.lib.pagesizes import letter from reportlab.platypus import SimpleDocTemplate, Paragraph from reportlab.platypus import XPreformatted from reportlab.lib.styles import getSampleStyleSheet def xpreformatted_paragraph(): doc = SimpleDocTemplate("xpreformatted_paragraph.pdf...
UTF-8
Python
false
false
842
py
106
xpreformatted_paragraph.py
95
0.672209
0.672209
0
28
29.107143
78
GannTrader/django_resetpassword
962,072,726,605
de5226acb2807c805afaf5ca3c9703aa1dc7eefe
7104988a98a8152465bd76b60cde7b79e7772c61
/account/forms.py
e53b6a1aa0d113c1e1c0c714bce6be7100c6c017
[]
no_license
https://github.com/GannTrader/django_resetpassword
a3cdc6a0557f0bb22e17ac4b9f9514524b36a2a9
ab3ef49975aff9af0e49cf12a6187e3874c63cbf
refs/heads/master
2022-12-07T17:53:37.494831
2020-09-02T04:08:18
2020-09-02T04:08:18
291,991,086
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms class LoginForm(forms.Form): username = forms.CharField(max_length = 255, widget = forms.TextInput(attrs = { 'class':'form-control', 'placeholder':'enter your name' })) password = forms.CharField(max_length = 255, widget = forms.PasswordInput(attrs = { 'class':'form-control', 'plac...
UTF-8
Python
false
false
544
py
4
forms.py
3
0.683824
0.667279
0
17
31.058824
89
kotakasahara/omegagene
11,020,886,117,474
7566cc78a627fcbd5962d146d6e06f68aaee866e
e6f8c7567dec8cd2c37077147636fe7d3d5b9177
/toolkit/kkmdconf.py
4a7571a6cd9a235611fbb1bac0a74c647ff63feb
[]
no_license
https://github.com/kotakasahara/omegagene
3f8649ee42cbabf4fb326d8c567d576a11e0e376
6ef292e065903c28ebe138425e2ab855feb35986
refs/heads/master
2023-05-12T16:56:12.455951
2023-05-09T02:30:16
2023-05-09T02:30:16
183,242,028
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python2.7 import kkkit import sys import re class MDConf(object): def __init__(self): self.description = "" self.gro_init_structure = "" self.gro_traj_edr = [] self.gro_traj_trr = [] self.gro_traj_set = [] self.atom_selections = [] self.selection_...
UTF-8
Python
false
false
5,728
py
320
kkmdconf.py
146
0.474686
0.462291
0
141
39.624113
103
Tech-Amol5278/Python_Basics
5,798,205,851,083
e75fb24afcea5a701137e4e41c62be9eb49e246b
d06302e2cc1d76eda354c39b516782452785c02a
/c2 - strings methods/c2_1.py
9bfa801c00816315bf081a038fd6275b0588bb72
[]
no_license
https://github.com/Tech-Amol5278/Python_Basics
8ff418290075ee3476dfca40d9f9b3a10e597a60
9c7d98b4aac437502f99d7ded83669bee1d4d3a0
refs/heads/master
2022-04-18T01:58:11.387087
2020-04-18T11:12:09
2020-04-18T11:12:09
256,205,799
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#### Tut: 24 #############3 # string indexing language = "python" # positions # p = 0, -6 # y = 1, -5 # t = 2, -4 # h = 3, -3 # o = 4, -2 # n = 5, -1 print(language[2]) print(language[-2]) ###### Tut: 25 ############ # string slicing - to print multiplt characters in string # syntax - [start arguement : stop argue...
UTF-8
Python
false
false
709
py
162
c2_1.py
145
0.559944
0.51481
0
34
19.705882
57
jrvalcourt/feature-selection
1,855,425,874,882
469d8599cd133d52104c99217ad37eaf274d1013
3c8eafd20fc6b47ea02bec5dd523da44e0050fb7
/scripts/plot_varying_ks.py
77268eefbe1d2df82775c0493688e50379d1c9e7
[]
no_license
https://github.com/jrvalcourt/feature-selection
0a6acede5be8885a42a2af148b429576e775b39e
b847d6044aabb28201ead1f1615b0db705fe303d
refs/heads/master
2022-07-20T00:04:52.769160
2020-05-20T15:35:56
2020-05-20T15:35:56
259,767,364
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import count_and_score_kmers import sys import pickle import os import numpy as np from guess_alphabet import candidate_breaks import matplotlib matplotlib.use('Qt5Agg') import matplotlib.pyplot as plt if __name__ == '__main__': test_file = sys.argv[1] train_data = sys.argv[2] maxK = int(os.path.basename(...
UTF-8
Python
false
false
1,159
py
9
plot_varying_ks.py
8
0.61346
0.591027
0
32
35.21875
94
almohress/djrest-wrapper
13,511,967,160,932
0851002e232b44eee97d02fef4349da6ae9612c9
933ffbc470030abc0a443e879dee66ca1305544e
/djrest_wrapper/decorators/create_model.py
ce6af0ea587f72292bb688613be7016b0f521482
[ "MIT" ]
permissive
https://github.com/almohress/djrest-wrapper
587cdbc0feae59f6b8cfea3605815fad44271e8a
48f6e413fc9d8c8e22585133af7b344185398c4a
refs/heads/master
2023-08-04T09:48:39.094197
2021-09-29T06:51:30
2021-09-29T06:51:30
387,012,178
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from functools import wraps from rest_framework.response import Response from rest_framework.status import HTTP_201_CREATED def create_model(func): @wraps(func) def inner(self, request, *args, **kwargs): reqser = self.get_serializer(data=request.data) reqser.is_valid(raise_exception=True) ...
UTF-8
Python
false
false
592
py
36
create_model.py
34
0.6875
0.677365
0
15
38.4
102
LIDA-training/starting_python
16,389,595,244,086
64ca877c5bdc6ed2b2f481cafe3144f5cc93adef
2a821f2c36b123670deb0596626506e8a9ef1d85
/py1.py
a51733ce851bfbd97b0fd30ccf6c7f3b1f77b016
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
https://github.com/LIDA-training/starting_python
04eb113439b33ce615d176c04e43ebe489328ba5
559d3748f1d47ca4a314f1d4c75635a3a20645d5
refs/heads/master
2022-03-01T16:21:03.432864
2019-10-03T10:56:05
2019-10-03T10:56:05
212,553,023
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Comment print("Hello world") def func(var): if var == 1: print("Var is 1") else: print("Var is not 1") func(1) func(0)
UTF-8
Python
false
false
144
py
3
py1.py
1
0.534722
0.5
0
9
15.111111
29
VictorCcccc/CS411_FINAL_DEMO
1,494,648,661,427
d350e8f00a48964fb9459d00e532bc8a5fad2614
5eda9290b7112020272b2be7284ad71570c121dc
/Users/migrations/0001_initial.py
5b3015b1193f4f3182945fca31656493d8b37c52
[]
no_license
https://github.com/VictorCcccc/CS411_FINAL_DEMO
da21570498a78d8bd0e88c3b40d361d852067834
1ca607a512015c3e288c8eac61e682ce467a5e4d
refs/heads/master
2020-05-15T14:10:16.084285
2019-04-19T21:26:20
2019-04-19T21:26:20
182,326,324
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 2.1.1 on 2019-04-14 02:27 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
UTF-8
Python
false
false
1,049
py
25
0001_initial.py
13
0.627264
0.611058
0
26
39.346154
235
wavefrontHQ/demo-app
8,787,503,113,610
87bc57d84ea1f83f2b0d5510856ab427d9c481ae
d9f6ae8293543f68fb8465eace3f3ebe855fc11c
/warehouse/warehouse/views.py
0bc19ebb196e2ce00cd7c36a1d1736cd95a06907
[ "Apache-2.0" ]
permissive
https://github.com/wavefrontHQ/demo-app
85c547124dba57097c8d314a2d0f08049934eb31
41d1e4d034981a58414f54c914b1bf9b071b69e4
refs/heads/master
2023-02-03T08:44:28.023608
2022-12-15T12:41:09
2022-12-15T12:41:09
228,472,322
8
18
Apache-2.0
false
2023-02-02T07:52:54
2019-12-16T20:43:11
2023-01-17T15:25:16
2023-02-02T07:52:54
114,574
7
14
5
Java
false
false
import logging import random import sys import time import traceback import requests from concurrent.futures import ThreadPoolExecutor from rest_framework.response import Response from rest_framework.decorators import api_view from django.conf import settings logging.basicConfig(level=logging.INFO) logger = logging.ge...
UTF-8
Python
false
false
3,687
py
131
views.py
69
0.602929
0.588283
0
106
33.783019
85
redspider/fkths
6,030,134,113,088
6d9dc12427fcedeb1dff09fbcbb119878c764889
4f2f9924353c1dc541ae58dfcb56710d01d23b22
/fkths/view/index.py
570eed69ef46b69cc76ccd53b28e1cee8e5e74db
[]
no_license
https://github.com/redspider/fkths
0210626818e00b5d6e1892689df9d73385fd4895
fd9c329c49a0a95f6840bca745ac561b7e3b9cd7
refs/heads/master
2021-01-21T14:01:40.987405
2012-11-10T09:52:31
2012-11-10T09:52:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fkths import app from trex.flask import render_html from flask import Blueprint blueprint = Blueprint('index', __name__) @blueprint.route('/') @render_html() def index(): """ We can't stop here, this is bat country """ return {} app.register_blueprint(blueprint)
UTF-8
Python
false
false
286
py
14
index.py
8
0.681818
0.681818
0
15
18.133333
43
insan333/Children-Garden
5,239,860,135,169
be11f613c00488cb63d38e7edcf021faee1eeabc
f786f2b40f873a4b1d1172d7b704e6529107412a
/main/views.py
daef9eacf2748219e91bd952ef501e8bfdb984f8
[]
no_license
https://github.com/insan333/Children-Garden
a24af50ed65132652f20f4fceeee7346d3fe88ff
ffba18ad03e92deb1d5641dc193b93016db80c35
refs/heads/main
2023-06-16T04:34:45.923504
2021-07-03T13:04:00
2021-07-03T13:04:00
382,617,080
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.shortcuts import render from django.views.generic import View from .models import Educator,Children,Children_Garden class MainView(View): children_garden=Children_Garden.objects.all() def get(self, request): return render(request, template_name="main/main.html",context={'children_garden':se...
UTF-8
Python
false
false
2,953
py
6
views.py
4
0.74128
0.729089
0
62
46.645161
111