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
iosetek/CommandRecognition
16,552,803,984,647
b6a635c3cdbf64a5d8535ede2292b8403ea39149
8e79d1a368e99b1cb44d232703839fe2542c21d8
/src/gui/test.py
899f4e628b88ee8b789b28ca8a498a20b4362fd0
[ "MIT" ]
permissive
https://github.com/iosetek/CommandRecognition
ab233063fd1ccf2e81d96d5ccd1cb1a30ea8f236
56a58b44bdc4d54feafc955c17dd0ff236486cae
refs/heads/master
2020-05-01T12:09:22.236993
2019-09-03T00:26:34
2019-09-03T00:26:34
177,459,249
0
0
MIT
false
2019-08-07T23:18:41
2019-03-24T19:26:55
2019-05-02T12:05:20
2019-08-07T23:18:41
396
0
0
0
Python
false
false
from src.api import Api from src.gui.appJar.appjar import gui class TestUI: def __init__(self, app): self.__app = app self.__isRecording = False self.__RECORD_BUTTON_NAME = "TEST_START_STOP_RECORD_BUTTON" self.__USE_ACTION_CHECKBOX_NAME = "TEST_USE_ACTION_CHECKBOX" def append_i...
UTF-8
Python
false
false
1,447
py
43
test.py
37
0.609537
0.609537
0
37
37.891892
103
artidoro/hate-speech-detection
3,461,743,676,683
26405347bf9849605897b78d21737a55f3eae0a2
9295f1f774e63dff47951c52a5a60ef8dab07239
/hate_speach_utils.py
399a953fe1d8c4fa27ce9cba23f25070f715e7d4
[]
no_license
https://github.com/artidoro/hate-speech-detection
a718fdb1ca4c81520aa1d5161b459569d793461d
78923e3fc2243b6d77be56d98a95a262797e2bd5
refs/heads/master
2021-02-14T02:44:58.017139
2020-03-06T03:39:41
2020-03-06T03:39:41
244,759,525
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import torchtext from torchtext import data from torchtext.vocab import Vectors, GloVe import os from tqdm import tqdm from datetime import datetime import logging import pprint import io from transformers import RobertaTokenizer from tokenizers import CharBPETokenizer import numpy as np from sklearn.metri...
UTF-8
Python
false
false
4,288
py
4
hate_speach_utils.py
2
0.654151
0.65042
0
110
37.981818
108
prabhatmalhan/Computer_Tools
2,972,117,403,603
8e33750c6d7530b05c467fe2a90e78af7b936e01
e466198ac69dd031428fd0018f4b7f729da28e17
/Keylogger/keylogger.py
05f387be127f47915a0f4e96ad3ec90fcf6e7111
[ "Unlicense" ]
permissive
https://github.com/prabhatmalhan/Computer_Tools
93cf6e241796ba138dd200a8eb6cbb98a65adfad
4ec90381ff23684f602a6b92cecd2c25cfcc43cb
refs/heads/master
2023-01-05T02:40:16.941234
2020-11-05T03:13:15
2020-11-05T03:13:15
268,194,610
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys try: from os import system as syst except: syst('pip install pynput') syst('cls') try: from os import system as syst except: sys.exit() try: from pynput.keyboard import Key, Listener except: syst('pip install pynput') syst('cls') try: from pynput.keyboard import Key, Listener except: sys...
UTF-8
Python
false
false
677
py
4
keylogger.py
3
0.695716
0.694239
0
37
17.297297
104
PreFX48/colorization_project
12,506,944,804,027
a6a504b3832079542ba482f8c1b29aa1fff7ff70
d3fa08a938f0ad4375875412f2a3706205f05067
/colorize/form.py
442e5a4283fe0e93f50556827397bcca7e16077f
[]
no_license
https://github.com/PreFX48/colorization_project
6848656999d2d52d7c3d506933702146744a5ae3
138aa3cbaf3f4b59e8fcdae36570f0cc5c67056a
refs/heads/main
2023-04-01T23:31:04.904012
2021-03-20T14:43:32
2021-03-20T14:43:32
349,738,450
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'form.ui' # # Created by: PyQt5 UI code generator 5.15.3 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, ...
UTF-8
Python
false
false
16,033
py
19
form.py
15
0.724755
0.707853
0
256
61.628906
114
liltong97/dsp
7,413,113,573,585
5ef0eaed2c89a28b0810712aa3404fe7eaa3da90
15ab89c068c1ec6976c3b188e0fcafd058a30f2e
/python/q5_datetime.py
18e10ee9cff4c71e4e6b79c639e8e4ce93f5e670
[]
no_license
https://github.com/liltong97/dsp
70785fb61e9a2bd7e2caa8a8ed3893076127260e
9d489412c02c887e3ebe1ab4d17bff7f7836e424
refs/heads/master
2021-01-13T15:03:13.378163
2017-01-12T21:22:24
2017-01-12T21:22:24
76,284,152
1
0
null
true
2016-12-12T18:32:32
2016-12-12T18:32:32
2016-12-09T19:38:34
2016-12-05T18:51:00
2,681
0
0
0
null
null
null
# Hint: use Google to find python function from datetime import date ####a) date_start = '01-02-2013' date_stop = '07-28-2015' def find_days_dashes(date_start, date_stop): start_array = map(int, date_start.split('-')) stop_array = map(int, date_stop.split('-')) d0 = date(start_array[2], start_array[0], st...
UTF-8
Python
false
false
1,270
py
12
q5_datetime.py
6
0.638583
0.575591
0
37
33.324324
78
telminov/ansible-manager
13,554,916,797,729
ee5a42c91d6c91a1bbac7a1b482473087a29cb3d
9ab4af46e9a35519e16d8ea52337e4ca908e3bfa
/core/migrations/0013_auto_20170705_1453.py
e61511423a84f6feef28a4c4b6f213dfc9169f07
[ "MIT" ]
permissive
https://github.com/telminov/ansible-manager
11a78417afbe9a0b4ee995c00b91e19b71905325
05222c469f31ebab3d35dce127c4687bdd8e86e1
refs/heads/master
2021-01-22T20:39:59.366634
2018-10-30T13:22:01
2018-10-30T13:22:01
85,341,950
13
7
MIT
false
2020-07-03T08:16:39
2017-03-17T18:14:17
2020-02-15T03:42:28
2018-10-30T13:22:02
268
12
3
4
Python
false
false
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-07-05 11:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0012_auto_20170623_1113'), ] operations = ...
UTF-8
Python
false
false
1,101
py
86
0013_auto_20170705_1453.py
57
0.584015
0.553134
0
34
31.382353
149
r06922085/chatbot
15,135,464,760,601
2cc780aa9a15aca53f43738f7b03b58378ef4be6
33fad982daddff9eea25baabdf2ab2807d7ffe1e
/utils/dataManager.py
9f2c88184fccc064a2719a282060e3e902ac9b70
[]
no_license
https://github.com/r06922085/chatbot
56ee70ee6ee6e8a65d385825cbb6788699bf17bb
b2772c0ae9b0968813bae702cbd902d5e35877d1
HEAD
2018-11-06T01:20:12.287195
2018-08-27T09:02:19
2018-08-27T09:02:19
144,441,660
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import json import pickle import json PAD = '<PAD>' # index 0 BOS = '<BOS>' # index 1 EOS = '<EOS>' # index 2 UNK = '<UNK>' # index 3 class DataManager(): raw_data = None whole_data = None train_data = None train_label = None clean_train_label = None #word_list...
UTF-8
Python
false
false
6,044
py
7
dataManager.py
2
0.519689
0.510258
0
152
38.769737
107
vikash-india/DeveloperNotes2Myself
15,710,990,377,196
2a242383ab2f24fb9706a8119ac93b368ac81e5c
992d7341b692b7e659510b261fd4ab168f4a1c13
/languages/python/src/concepts/P085_OOP_GettersAndSetters.py
27ae141de0fdbea8cdebe5832fb5387a9ee3afd6
[ "MIT" ]
permissive
https://github.com/vikash-india/DeveloperNotes2Myself
427cd8ef98ab73ce42c4c4a74ca6f1395f508ae4
fe277a3c52f73884863f2f72b237365b27a8c882
refs/heads/develop
2022-09-04T22:03:34.592580
2020-10-30T08:05:00
2020-10-30T08:05:00
146,297,297
2
6
MIT
false
2022-08-23T17:42:55
2018-08-27T12:54:19
2022-03-11T09:06:23
2022-08-23T17:42:52
46,228
1
3
8
XSLT
false
false
# Description: Getters and Setters """ ### Note * None """ class Player(object): def __init__(self, name): self.name = name self._lives = 3 self.level = 1 self.score = 0 def _get_lives(self): return self._lives def _set_lives(self, lives): if lives >= 0:...
UTF-8
Python
false
false
891
py
823
P085_OOP_GettersAndSetters.py
302
0.540965
0.526375
0
48
17.5625
97
Eliory09/Riddlism
10,058,813,425,973
8c9475b82d2b4f39845afa7de9e4f5cb5c9fb548
ce32aa910d7fe6c143bfb3b3dc72fc67bf7e3d3f
/app.py
bfcf16bcb2264b0060f5bfb2d7c2840ff61aa40d
[]
no_license
https://github.com/Eliory09/Riddlism
2eae278b3642d16091174fbcf746e8777ed55bda
70e282c2a8f1253672611a9d2c8203917424aee0
refs/heads/main
2023-08-23T16:52:06.180703
2023-08-11T11:01:04
2023-08-11T11:01:04
319,796,544
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import bcrypt from dotenv import load_dotenv from flask import (Flask, abort, flash, g, redirect, render_template, request, session, url_for) from flask_login import (LoginManager, current_user, login_required, login_user, logout_user) from peewee import fn from pl...
UTF-8
Python
false
false
5,667
py
16
app.py
2
0.625551
0.61567
0
186
29.467742
112
Cyren4/bootcamp-python
6,459,630,818,239
f5b1959f98f16f318d9d6adf0666539a5657d2bb
cdafd6218ff5a2f936f8507e9f289e42322309e6
/42/boootcamp/day00/ex05/kata02.py
06011d0d9638203809fba2bcbc258a14edc17ddc
[]
no_license
https://github.com/Cyren4/bootcamp-python
33fee15bf67b7206315be8ad151090fd741b32ca
7e6f3986535f7e6f47be8aa6266b39788dd18de0
refs/heads/master
2022-04-16T12:14:06.036133
2020-04-16T14:31:12
2020-04-16T14:31:12
256,238,226
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
hour, minutes, year, month, day = (3,30,2019,9,25) print("%.2d/%.2d/%d %.2d:%d" %(day, month, year, hour, minutes))
UTF-8
Python
false
false
119
py
18
kata02.py
16
0.579832
0.470588
0
3
38
64
ezucca/reoccuring-bday-prob-python
4,355,096,862,709
5be6a6d7af7c6e9f658b62601a6ec61172edf464
c743889d698a4be9607a83c2194e967587ee195f
/a4code.py
b028fc59be2ffde733556b149e58ced18c6126ca
[]
no_license
https://github.com/ezucca/reoccuring-bday-prob-python
4773861cee4ab8efb730e2378839d1cbd7fcf94d
3068ff323eac17f83d2137f15ebb56735a72a9cf
refs/heads/master
2016-08-05T03:54:12.259470
2015-06-30T05:57:46
2015-06-30T05:57:46
38,290,575
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Emily Zucca from pylab import * import numpy.random as npr from math import * import random as rand def combinations(n, k): prod = 1.0 for j in range(k): prod = prod * (n-j) / (j+1) return prod #Real Birthdays infile = open('birthday.txt', 'r') bdays = [] for i in range(365): s = infile...
UTF-8
Python
false
false
2,283
py
1
a4code.py
1
0.502409
0.444152
0
114
18.605263
66
leohsmedeiros/DataScienceStudy
1,520,418,462,724
32613b2e3b23cb47f8032ecd37dc0bbfbed81100
497bd5b174c2ea1798ea077a23e8d64a6efcdbf5
/udemy/05 - grafos/04 - Caminhos e Distâncias/caminhos_distancias_parte_01.py
badb8908bf00b7f7dfd63ae90ddbcf7ebaf49147
[]
no_license
https://github.com/leohsmedeiros/DataScienceStudy
804d5a857516d5c8a64e0314c0d4886e4632fac8
69b9b61dbde8437d771a1dfda1ea5d3af23e78fb
refs/heads/master
2020-04-11T10:09:17.828999
2019-09-13T16:26:01
2019-09-13T16:26:01
161,705,084
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from igraph import Graph from igraph import plot """ Vamos trabalhar com o cálculo dos caminhos e distâncias """ grafo = Graph(edges = [(0,2), (0,1), (1,4), (1,5), (2,3), (6,7), (3,7), (4,7), (5,6)], directed = True) grafo.vs['label'] = ['A', 'B', 'C', 'D', 'E', 'F'...
UTF-8
Python
false
false
1,351
py
48
caminhos_distancias_parte_01.py
47
0.671386
0.640835
0
39
33.410256
119
yannabraham/PickANumber
5,961,414,651,587
9d6317cedf9ad570d1e4ed59781a2439a13ec9ee
1ff8ed674aff56d11818aa7d5138140b0c645091
/src/PickANumber.py
da1eac7afbe51e42ade229e8671ed608baf97891
[]
no_license
https://github.com/yannabraham/PickANumber
e1e56b5993842b306ac0060bbb881baabceef693
453f8d28487d8a9f6359a82125d8d80a16547b89
refs/heads/master
2016-09-05T19:23:16.093224
2015-08-24T12:22:00
2015-08-24T12:22:00
41,301,459
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' Created on Feb 14, 2014 @author: abrahya1 ''' from random import randint def pickANumber(turns=3,minNum=1,maxNum=10): score = [0,0] while turns>0: secretNumber = randint(minNum, maxNum) print 'Choisis un chiffre entre %i et %i\t' % (minNum, maxNum) myGuess = None while myG...
UTF-8
Python
false
false
821
py
2
PickANumber.py
2
0.53106
0.500609
0
31
25.516129
70
pretenders/pretenders
14,800,457,309,344
52ae35062991edc9ac0829a6d4260477dc1fe7c6
c4a6a4d2c27ce50b568ef216f3064a5a6dba99ee
/pretenders/client/__init__.py
5f577ca924c2ee39b2a0620bef6dbb06257c1cfa
[ "MIT" ]
permissive
https://github.com/pretenders/pretenders
1a9aba9aca61e2c6601ff3ce17cff2fbd397002f
d76f5ce3504c64bc1c583f912c8ef1f7ebbe1ee2
refs/heads/develop
2022-08-03T10:19:25.980148
2022-07-10T22:02:58
2022-07-10T22:02:58
4,322,486
87
30
MIT
false
2022-07-10T22:02:59
2012-05-14T10:19:45
2022-06-24T09:47:32
2022-07-10T22:02:58
1,064
108
22
30
Python
false
false
import json import logging try: from http import client as httplib except ImportError: # Python 2.6/2.7 import httplib import urllib from pretenders.common.exceptions import ( ConfigurationError, ResourceNotFound, UnexpectedResponseStatus, ) from pretenders.common.pretender import PretenderMo...
UTF-8
Python
false
false
5,630
py
66
__init__.py
48
0.587034
0.579751
0
190
28.631579
85
mansonul/events
6,906,307,414,289
6951d356195e9916d0b2a60c12e0c4299669b83d
a03eba726a432d8ef133f2dc55894ba85cdc4a08
/events/contrib/plugins/form_elements/content/content_image_url/base.py
0ff2a1ce5632a97fada8892c315fffaf50b87da0
[ "MIT" ]
permissive
https://github.com/mansonul/events
2546c9cfe076eb59fbfdb7b4ec8bcd708817d59b
4f6ca37bc600dcba3f74400d299826882d53b7d2
refs/heads/master
2021-01-15T08:53:22.442929
2018-01-30T16:14:20
2018-01-30T16:14:20
99,572,230
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import absolute_import from collections import OrderedDict from uuid import uuid4 from django.template.loader import render_to_string from django.utils.translation import ugettext_lazy as _ from nonefield.fields import NoneField from fobi.base import FormElementPlugin from . import UID from .forms ...
UTF-8
Python
false
false
2,378
py
144
base.py
109
0.576535
0.568966
0
86
26.651163
79
dipeshjoshi/MachineLearning
4,664,334,484,263
85bbd8a0ab0f94b42f4ef73f16581bd2ae1e62a3
c71248c1e83714a457daf0490c8db42b6697717f
/python/algoInPython/linkedList/reversingLinkedList.py
8a666bbe7f086558133823f4616dbbd6aaa77846
[]
no_license
https://github.com/dipeshjoshi/MachineLearning
c3841f928e45fe142f1bfc6bfe29c8a8f5118d60
2231bb7dea4f416558f0a862430d6f15f12deaf9
refs/heads/master
2021-05-06T10:42:55.029053
2019-03-15T09:35:03
2019-03-15T09:35:03
114,160,960
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import singly_linked_list as sll class ReverseLinkedList: def reverseIterative(self, linkedList): if linkedList.head is not None: ptr1 = linkedList.head; ptr2 = ptr1.next; while ptr2 is not None: if(ptr1 == linkedList.head): ptr1.nex...
UTF-8
Python
false
false
822
py
92
reversingLinkedList.py
84
0.553528
0.532847
0
40
19.55
44
tahandy/numerical
12,627,203,880,509
db217ebcca3b941b0f39ba8bcc914df3cd55ca83
e568b63b013ff810eb279362e3ceab70169ff3ed
/grid/uniform/python/gridUniform.py
a6cd997f8239f29ca85f76585b35a3f9e4dc863a
[ "MIT" ]
permissive
https://github.com/tahandy/numerical
23a4e14b9186819d22b9f9d39b81c37593e886e7
e8790f05ee323c7a8104e3becc8fd1a4d25023eb
refs/heads/master
2021-01-10T19:03:17.022310
2015-10-30T04:16:55
2015-10-30T04:16:55
40,026,745
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
''' The MIT License (MIT) Copyright (c) 2015 Timothy A. Handy This module is intended to serve as a simple uniform numerical grid implementation in Python 2.7.10. It is intended to support cell, face, and edge centered variables in up to 3 dimensions. Data is managed via the numpy library (www.numpy.org). ''' from g...
UTF-8
Python
false
false
2,070
py
30
gridUniform.py
7
0.615459
0.606763
0
81
24.469136
93
szpaczyna/cherry_conf
5,446,018,577,128
e5a0bc6c148714f90ba327814586dc28bc1b0f9d
7ce114b97cbe0410dfa338f757115b93e7e5a990
/scripts/tvs/config.py
27ed71efab090343d51fb7576056ef32aaaea535
[]
no_license
https://github.com/szpaczyna/cherry_conf
23327fa2ff75fdee25dc946f3cc698c3c754e291
52f2108873a6323b2b8d997a1f5d79a1ecb8f313
refs/heads/master
2021-01-15T15:43:53.838450
2016-10-04T17:35:17
2016-10-04T17:35:17
36,720,615
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python #-*- coding: utf8 -*- # Copyright 2009-2012 Kamil Winczek <kwinczek@gmail.com> # # This file is part of series.py. # # series.py 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 ve...
UTF-8
Python
false
false
10,069
py
16
config.py
11
0.558943
0.551793
0
249
39.437751
130
stuart12/python-scripts
19,602,230,768,430
2b544001b41d040807e3c58f396fdb2013972640
3632f84661fa31f67c5f82bca36d65a80a12112f
/lockscreen4bed
c63668372d57b42b529b4b76d7c1eaceeae3fc69
[]
no_license
https://github.com/stuart12/python-scripts
a67acdee4eb1906a4dd732efe1d346e3c6cf38fb
4b3419587259f33153682376f3f7ca6ad60d7de0
refs/heads/master
2023-04-23T03:57:47.439494
2023-04-04T21:19:00
2023-04-04T21:19:00
3,964,348
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python3 # lockscreen4bed Copyright (c) 2016,2018 Stuart Pook (http://www.pook.it/) # Lock the screen every 15 minutes when it is time to go to bed. # 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 #...
UTF-8
Python
false
false
2,716
65
lockscreen4bed
65
0.702504
0.690722
0
65
40.784615
115
teotiwg/studyPython
5,935,644,813,471
2123fecaee96ab4beac288e5ef75de9116ec4c98
6a74ae0a776dfa50e946651362ff97326fc9f6e1
/200/pt5/185.py
2a8eaf04454ef628d762f9de3583090c3c9ab18d
[]
no_license
https://github.com/teotiwg/studyPython
799c1307d50ad77a27b8a8ca59c79b79f07c29cd
fd0c7f8af9b0ba9d832818d42aec320386bf857b
refs/heads/master
2023-02-17T17:04:23.809231
2021-01-11T09:27:20
2021-01-11T09:27:20
327,474,697
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
visitIp = [] with open('access_log', 'r') as f: logs = f.readlines() for log in logs: log = log.split() ip = log[0] if ip not in visitIp: visitIp.append(ip) print('방문자 수: [%d]' %len(visitIp))
UTF-8
Python
false
false
245
py
124
185.py
124
0.514768
0.510549
0
11
20.636364
34
ceasaro/magic
15,470,472,204,530
f8df275b8125ad52fed3ed6217d49a1d0eb0015c
5a9db657d4d58704be48a9b3a8e5bb10de01d053
/web_app/magic/im_export/mtgjson.py
7a0f30d3ff85125ec458bb43afa29c028a8c8ddc
[]
no_license
https://github.com/ceasaro/magic
b6445f0ab95aa0dcaf0a4c4ad2e7ec9b01eac6e4
74d284b08ef2aa29526d63022811808e8ca687be
refs/heads/master
2023-04-15T17:08:19.163665
2023-04-01T13:38:23
2023-04-01T13:38:23
77,072,334
1
0
null
false
2023-01-12T08:38:14
2016-12-21T17:26:04
2020-07-30T12:38:52
2023-01-12T08:38:14
251,919
0
0
22
JavaScript
false
false
import json from datetime import datetime import logging from magic.core.exception import ManaValidationError from magic.core.models import Card, Set logger = logging.getLogger(__name__) def import_cards(json_data, verbosity=0): for card_name, card in json_data.items(): try: new_card, crea...
UTF-8
Python
false
false
2,630
py
82
mtgjson.py
68
0.509125
0.505703
0
76
33.605263
84
dreadkopp/activejob_bootstrap
618,475,328,303
7b2757422309e9c8cff3b22b3a058f80efa1c07a
47e3f13ce4e42fc157db6580154acd3e9a7169d7
/activejob/activejob/berufsfelder/views.py
d6401d7f826ce04fc7bdb398f0ad68608e03a117
[]
no_license
https://github.com/dreadkopp/activejob_bootstrap
d266c15565f1371cd9c271de093c9570e0511231
8bcdb73f1f95265a06a8e9c751113ccf0cce67eb
refs/heads/master
2020-12-30T13:40:19.351153
2017-08-22T15:48:28
2017-08-22T15:48:28
91,242,018
0
1
null
false
2017-08-22T15:48:29
2017-05-14T12:30:55
2017-07-01T19:55:25
2017-08-22T15:48:28
20,145
0
1
0
Python
null
null
from .models import Berufsfelder from core.views import SearchAndMenuDetailView class BerufsfelderView(SearchAndMenuDetailView): def dispatch(self, request, *args, **kwargs): self.active_nodes = { "top": "bewerber", "left": "bewerber_" + kwargs["slug"], "sub": "Berufsfe...
UTF-8
Python
false
false
472
py
135
views.py
72
0.631356
0.631356
0
16
28.5
57
gunnarviking/2019_Stockholm_suntory_strong
11,115,375,388,345
8c35ac2f1e8d82e2839c8b386353452c044da2c7
a029e78f6978410fef96b84db7475afec307c245
/services/filter_service/filter_service.py
5c8fce9122f1f8ee914fa6e50e6040d1cb365e5a
[ "MIT" ]
permissive
https://github.com/gunnarviking/2019_Stockholm_suntory_strong
c29e61f1faba3e21bd4b081b685798975ad00780
a1fc6e7c1a7317c3cb8bd33a00a0f0bc7fe3e1a7
refs/heads/master
2022-12-21T11:22:34.257659
2019-11-03T12:25:34
2019-11-03T12:25:34
219,287,522
0
0
null
false
2022-12-10T07:41:05
2019-11-03T11:03:20
2019-11-03T12:25:47
2022-12-10T07:41:04
3,014
0
0
3
Python
false
false
from common import filter_service_data_collection from common import filter_service_filter from common import filter_service_save def main(): print("main") filelist = filter_service_data_collection.init() counter = 0 if filelist is not None: for file in filelist: counter+=1 ...
UTF-8
Python
false
false
603
py
30
filter_service.py
13
0.605307
0.60199
0
21
27.714286
58
abnerjacobsen/Smart_Office
16,827,681,880,246
61c23d613c2df778a4b2b055841f034b83bc1a61
32a4ebfaf311a33dfa0e360c98c9b8c4a95332a5
/Front_Desk_Facial_Recognition/recognition/recognise.py
5ba49add017772b21d97a24be8e698e3912288a5
[]
no_license
https://github.com/abnerjacobsen/Smart_Office
726b89d1f2fd11c635f18b1d9c57c48bec87842c
2c0395f916dab94bf4ed96375f0d1b92a53c26a3
refs/heads/master
2020-04-26T20:57:40.201495
2019-03-02T02:24:15
2019-03-02T02:24:15
173,827,837
1
1
null
true
2019-03-04T21:57:06
2019-03-04T21:57:05
2019-03-02T02:24:17
2019-03-02T02:24:15
1,745
0
0
0
null
false
null
# USAGE # With default parameters # python3 03_recognise.py # OR specifying the encodings, screen resolution, output video and display # python3 03_recognise.py -e encodings.pickle -r 240 -o output/capture.avi -y 1 ## Acknowledgement ## This code is adapted from: ## https://www.pyimagesearch.com/2018/06/18/fac...
UTF-8
Python
false
false
8,348
py
66
recognise.py
16
0.537973
0.512099
0
224
36.272321
130
luisrs/MmodMMGBSA
4,114,578,704,261
8629f86e1c357d7ad9cc77fd69a0ce6092639464
c6b91581f08ca963d215dd02cbc80ba53bfe6bca
/fatools/fatools/utils/validation/validations/presence.py
a4fe81fb1668740e615ffa9364f4d8e3fcc44c78
[]
no_license
https://github.com/luisrs/MmodMMGBSA
c454ffa94ec358f0252dea6dab2f62b798ce26f7
73b8252fe7144f763b051c6745097c0418de4244
refs/heads/master
2021-01-10T07:38:41.978439
2016-02-14T00:04:08
2016-02-14T00:04:08
43,270,633
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fatools.utils.validation.validator import FieldValidator class PresenceValidator(FieldValidator): """Validates that the specified field is present (not None).""" err_template = "'{name}' is missing" def validate_field(self, name, value): if value is None: raise self._construct_e...
UTF-8
Python
false
false
358
py
79
presence.py
79
0.684358
0.684358
0
12
28.833333
67
ZainQasmi/LeetCode-Fun
17,162,689,326,833
f794ae5a1ff293457b8f3ad30e2f9f137e8ac258
1777a2d56daf94d3cbbf99d4a6723fa39dc65488
/Amazon/quora1.py
4b26a6a1b1a53fbb20f1f5f817b9ed9c777e6eb8
[]
no_license
https://github.com/ZainQasmi/LeetCode-Fun
ab390f5d23e71f6b8c173fb55826d8885f968a7d
1be106af08624cc0653be5df4dc41184356dfa0c
refs/heads/master
2020-04-19T15:01:31.226811
2019-08-01T08:05:55
2019-08-01T08:05:55
168,262,028
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Node: def __init__(self, next=None, prev=None, data=None): self.next = next # reference to next node in DLL self.prev = prev # reference to previous node in DLL self.data = data # Adding a node at the front of the list def push(self, new_data): # 1 & 2: Allocate the Nod...
UTF-8
Python
false
false
2,435
py
83
quora1.py
67
0.570842
0.563039
0
85
27.647059
61
slyfrs/aldryn-wordpress-import
8,607,114,475,732
9b3e2f2feb1d180b200e73df07894a8e66888a9d
8184104b7f42534ae454b5187bb755ffbdfffbd9
/aldryn_wordpress_import/factories.py
7da6a21c863c5b302330360e8ac86d144682e1e3
[ "BSD-3-Clause" ]
permissive
https://github.com/slyfrs/aldryn-wordpress-import
3c26947d4a24221e9ec429b4f77e3292fbd0173e
aac70f6a70e1c6544f10e54e500cf6eba73a0b16
refs/heads/master
2021-05-08T13:43:24.949380
2015-07-09T12:21:29
2015-07-09T12:21:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.template.defaultfilters import truncatewords_html from aldryn_blog.models import Post from cmsplugin_filer_image.models import FilerImage from djangocms_text_ckeditor.models import Text def create_post(post_data, parts): try: first_part = parts[0] except IndexError: first_part = p...
UTF-8
Python
false
false
1,572
py
9
factories.py
5
0.676209
0.669847
0
53
28.660377
67
Veallym0n/KPark
18,073,222,414,369
bbc575d5413abc7ab75fefd3a9b4dd771c5cdaa3
3532e8d0ec55b540ab13c39c0dbacc57d45a6314
/Client.py
938ded2b09af66881d5f9726dab842ac84c2b5c9
[]
no_license
https://github.com/Veallym0n/KPark
cb1f40a87f3c73013ebda2d4dfedf119bd091029
207dcc13cdd8a9f946dba129d545f38f37cef9d5
refs/heads/master
2020-06-02T12:56:53.808332
2015-06-30T03:36:38
2015-06-30T03:36:38
38,103,645
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from tornado import tcpclient, gen, ioloop import traceback import rdd import util from collections import deque from pdb import set_trace as st class TCP(object): def __init__(self,host,port): self.host = host self.port = port self.client = tcpclient.TCPClient() self.stream = Non...
UTF-8
Python
false
false
2,621
py
6
Client.py
5
0.563144
0.556276
0
100
25.21
82
ViegasAdilson/Python
16,879,221,481,036
1ca7423c655bd2093b607a8467eb2ffe92c72f9f
d504bbb14739aef710111e4ae5360c1a2d726154
/projetoEcommerce/pedido/views.py
c02e8cbfddb6314fd14438abfd57bdc7d2b75012
[]
no_license
https://github.com/ViegasAdilson/Python
5190655e23dccf2d293c19fa55903df147e66950
61e44184ec135b7d55490834c3e468fa72da9656
refs/heads/master
2023-04-05T07:40:36.171222
2021-04-07T11:20:23
2021-04-07T11:20:23
355,515,206
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 ListView from django.views import View # Create your views here. class Pagar(View): pass class FecharPedido(View): pass class Detalhe(View): pass
UTF-8
Python
false
false
230
py
75
views.py
68
0.756522
0.756522
0
14
15.5
41
tzahishimkin/extended-hucrl
9,698,036,169,772
fc5d76b3799b1d363bf201feef95d596f3c0161e
66c7b0da6ee27ddce0943945503cdecf199f77a2
/rllib/agent/random_agent.py
c34450a48b8f3563c446b16997c3081c0c8c5d90
[ "MIT" ]
permissive
https://github.com/tzahishimkin/extended-hucrl
07609f9e9f9436121bcc64ff3190c966183a2cd9
c144aeecba5f35ccfb4ec943d29d7092c0fa20e3
refs/heads/master
2023-07-09T22:57:28.682494
2021-08-24T08:50:16
2021-08-24T08:50:16
383,819,908
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
"""Implementation of a random agent.""" from rllib.policy import RandomPolicy from .abstract_agent import AbstractAgent class RandomAgent(AbstractAgent): """Agent that interacts randomly in an environment.""" def __init__( self, dim_state, dim_action, num_states=-1, num_actions=-1, *args, **kwargs ...
UTF-8
Python
false
false
1,023
py
381
random_agent.py
340
0.600196
0.59824
0
34
29.088235
83
virtue244/Remote_Hydroponic_Growing_Platform
2,164,663,542,657
1ab9c8b83678e2321e7ad361e2363f42daa1a5f4
b8a1cde0b85ff9400319e79a6418247368cc91c6
/hydroponicPlantPlatform.py
7d652bfdcee256a1e37c07880163a351a2185c25
[]
no_license
https://github.com/virtue244/Remote_Hydroponic_Growing_Platform
6eeaf5ade42d445e862eb57ccf4d8ec5132eb797
60ff51aea68b98d39a6b75d71cf98b140f9be1e4
refs/heads/master
2021-09-13T07:29:22.787723
2018-04-26T13:41:27
2018-04-26T13:41:27
124,950,810
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # Software created by Drew Davis and Dylan Victory # December 2017 # # This software allows the monitoring and control of a hydroponic plant platform # It utilizes a grove sunlight sensor, as well as moisture sensors to achieve this # A simple UI allows the user to choose the sunlight level/time between fertilizatio...
UTF-8
Python
false
false
5,582
py
49
hydroponicPlantPlatform.py
47
0.683626
0.668757
0
175
30.891429
104
ericl1u/northeastern-scheduler
3,238,405,347,486
a53f8ef70db7b93ce884e600ee54e284a108e8c9
f6b68a10af84b0a71b33789a8b7abdda30d290e0
/app/logging.py
98287e8c414612e32b96a572f96b2262b70f2b07
[ "Apache-2.0" ]
permissive
https://github.com/ericl1u/northeastern-scheduler
ef4d26ce4d98df8c24ee9d855d16566feca28242
c3cf02c41ac32b2992ab82ce73a67e25aa69102e
refs/heads/master
2021-05-01T03:28:09.152720
2018-01-10T15:11:48
2018-01-10T15:11:48
65,651,658
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import logging from logging.handlers import RotatingFileHandler from app import app file_handler = RotatingFileHandler('NortheasternSchedule.log', 'a', 10 * 1024 * 1024, 10) file_handler.setFormatter(logging.Formatter('%(asctime)s %(levelname)s: %(message)s [in %(pathname)s:%(lineno)d]')) app.logger.setLevel(logging....
UTF-8
Python
false
false
451
py
32
logging.py
13
0.789357
0.762749
0
11
40.090909
115
erdincuzun/PythonCourse
16,655,883,177,695
c4c709f37b2c2ca8ede69c504668b9ee75227d9a
765be0a4b92f66c4b00aef65e33f4fd4cbd4caf4
/Course07/Ders0703.py
eceae3db09cb782068d14467ada4df9764c3b212
[]
no_license
https://github.com/erdincuzun/PythonCourse
bb195c8b1956510c39b00498f5a9ca7e2278b004
489256b3e4207abfb8f41f8318ddb99fb645cdc5
refs/heads/master
2022-05-12T20:32:25.752886
2022-04-14T16:35:20
2022-04-14T16:35:20
156,826,183
11
6
null
null
null
null
null
null
null
null
null
null
null
null
null
# 'Merhaba Deneme' def kactane(s): d = {} for thes in s: if thes in d: d[thes] += 1 else: d[thes] = 1 return d print(kactane('Merhaba Deneme'))
UTF-8
Python
false
false
207
py
39
Ders0703.py
10
0.444444
0.434783
0
11
16.909091
32
cbao/Basic-sorting-algorithms
14,310,831,041,619
426d2311cff8984997ffe90688760ad3f8d087fd
09a8e5def07d312075bfed040cd94ba6f1f27923
/heapsort.py
f843afef511ec22bd1687783b9b2d2cb2da01af4
[]
no_license
https://github.com/cbao/Basic-sorting-algorithms
cac524771499218c02b0ab468e9e922a14e898e3
7ad100c8feb91cee426b70f5340074359bac26a3
refs/heads/master
2016-03-18T23:25:37.023509
2015-08-12T15:25:59
2015-08-12T15:25:59
16,318,237
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def heapsort(data): sortedList = [] heap = build_heap(data) while len(heap) != 0: min, heap = extractmin(heap) sortedList.append(min) print sortedList return sortedList def extractmin(heap): heap[0], heap[-1] = heap[-1], heap[0] removal = heap.pop() heap...
UTF-8
Python
false
false
1,617
py
8
heapsort.py
7
0.517625
0.479283
0
61
25.508197
95
ranjansarma/attendance
11,493,332,506,183
1b9890466f0a78578d58a10241c71c16730c3560
9e0514909e310831fe12cb2c6c5c2019d14de7f2
/sms.py
5f0bc4914b9d0628373c0a4c2ddd50d72938ff07
[ "MIT" ]
permissive
https://github.com/ranjansarma/attendance
17e5020379abdad135859f325923733902f876c5
f3b801ceda16b54d052ec380688152a24c64c2e7
refs/heads/master
2020-09-28T11:24:40.449770
2016-08-30T07:08:17
2016-08-30T07:08:17
66,455,393
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import urllib import urllib2 def notify(message): params = { 'api_key': '', 'api_secret': '', 'to': '', 'from': 'RND', 'text': message } url = 'https://rest.nexmo.com/sms/json?' + urllib.urlencode(params) request = urllib2.Request(url) request.add_header('A...
UTF-8
Python
false
false
389
py
3
sms.py
2
0.565553
0.557841
0
17
21.823529
71
erling6232/imagedata
7,026,566,530,385
f1c6eb2570fa4adb717a98197822c06e7ed132af
e35c6f465144abb59827a962aa382238c987fd48
/src/imagedata/formats/dicomlib/uid.py
00b980477bdae208a7f17296953210f3545ef303
[ "MIT" ]
permissive
https://github.com/erling6232/imagedata
500cee6c992a18c4dfa6a49f535ff0e3d36398b5
5fa118b2017db27ef4dbcd415804402fa3d82da3
refs/heads/master
2023-09-01T11:49:45.445250
2023-09-01T06:42:01
2023-09-01T06:42:01
123,263,810
10
0
MIT
false
2023-08-23T12:03:53
2018-02-28T09:43:45
2023-04-11T03:19:15
2023-08-23T12:03:52
110,228
9
0
9
Python
false
false
"""DICOM UID tool.""" # Copyright (c) 2013-2021 Erling Andersen, Haukeland University Hospital # import os import os.path import uuid import time import pydicom._uid_dict # from pydicom.uid import UID _hostid = None def get_hostid() -> str: """Return hostid of running system. """ global _hostid if ...
UTF-8
Python
false
false
1,500
py
97
uid.py
53
0.590667
0.571333
0
59
24.423729
91
snigdhasambitak/python-scripts
17,042,430,259,788
d641b78fbf285d9990e4e6f1f59ccad03ba5b92c
aa663d4567f8a34a6705df71a6b829cb6ac353ed
/count_primes.py
2ca6a4b0dcc03be24f6797751316bb6c0963bcff
[]
no_license
https://github.com/snigdhasambitak/python-scripts
cd5df9cde2e31a4427ff1db6d078c91988e9eca4
f059d36a13657e33e0261d4d3a7805d90d8b382b
refs/heads/main
2023-05-03T22:23:45.454773
2021-05-17T17:28:25
2021-05-17T17:28:25
360,143,354
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#### COUNT PRIMES: Write a function that returns the *number* of prime numbers that exist up to and including a given number # count_primes(100) --> 25 # By convention, 0 and 1 are not prime. def count_primes(num): counter = 0 primes = [] for n in range(2,num+1): prime=1 for i in rang...
UTF-8
Python
false
false
543
py
17
count_primes.py
16
0.541436
0.506446
0
23
22.652174
124
ShivamTyagi05/Machine-Learning-Algos-Study
5,488,968,250,605
5e01171decba2c19d39e5d01c31c2041909b80c7
3a7a3c141f3d59ed3063050b5fbd93bc149e3f87
/ClusteringStudy.py
454cb90fba501a6158d2ecb1782e13c50663a3c6
[]
no_license
https://github.com/ShivamTyagi05/Machine-Learning-Algos-Study
da948488c0dc564e0dea50839c02713f977c4289
6814a7fe45e3cfdf8d303fd1e3342e9fb12154cd
refs/heads/master
2020-06-19T11:08:23.145354
2019-07-13T07:11:40
2019-07-13T07:11:40
196,687,458
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sklearn.cluster import KMeans from sklearn.datasets import load_iris from sklearn.datasets import fetch_mldata import matplotlib.pyplot as plt import numpy as np x = np.array([[5,3],[10,15],[15,12],[24,10],[30,45],[85,70],[71,80],[60,78],[55,52],[80,91]]) plt.scatter(x[:,0],x[:,1]) sos = [] for k in range(1,10): ...
UTF-8
Python
false
false
1,587
py
9
ClusteringStudy.py
8
0.625079
0.569628
0
64
23.8125
93
neimasilk/preprocessing
5,239,860,133,312
9dd3b474b039bec8ba32adfff0e073f54c5a674f
7e872f1abdd918c8f8302a1e1feb1f19d1101677
/translate_dbase_google.py
a3c99d61b78c8f32b2bafd0fc0dee56d50eabbe8
[]
no_license
https://github.com/neimasilk/preprocessing
832ce0414d5e1698c897d271239b997adbfea273
8fc5be71db34c826c9ce38a7427164a61c5bfc52
refs/heads/master
2022-12-24T02:52:42.666144
2022-12-13T14:17:17
2022-12-13T14:17:17
153,034,488
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sqlite3 import os os.environ["GOOGLE_APPLICATION_CREDENTIALS"]="/home/mukhlis/seq2seq-e71dee1db5ca.json" from google.cloud import translate translate_client = translate.Client() filepath = 'indonesia_sentences_10.db' try: db_connection = sqlite3.connect(filepath) db_cur = db_connection.cursor() except...
UTF-8
Python
false
false
1,357
py
15
translate_dbase_google.py
12
0.588799
0.576271
0
51
25.627451
123
pushmeetkapoor/new_django_pro
16,862,041,618,308
4a6cd13b02fed3f67936a9a3bb23c84f922fc6a6
fbdb191ec82ad4a687faecfe4b854224dbdc8c03
/steam_trap/serializers.py
d142c985dd2e578f703df8db604e75a43892f07c
[]
no_license
https://github.com/pushmeetkapoor/new_django_pro
6fe0166f0b9502659ffdf5bae9e08a3a29ea2f39
221194916cf7f4a4a6c2fe400d8b3122a7806a0f
refs/heads/master
2021-01-10T04:44:10.321087
2016-03-21T04:08:01
2016-03-21T04:08:01
54,358,090
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import serializers from steam_trap.models import SteamTrap from django.contrib.auth.models import User class SteamTrapSerializer(serializers.HyperlinkedModelSerializer): owner = serializers.ReadOnlyField(source='owner.username') start_date = serializers.ReadOnlyField() id = serializers....
UTF-8
Python
false
false
1,320
py
90
serializers.py
62
0.672727
0.672727
0
26
49.769231
79
nju161250102/leetcode
5,634,997,109,757
4ade3a0385704ef3e6309086d7372b46732addc6
7aa75f578603f1ece6fccd7758673066b6bd485f
/122.py
6184e21b881bdeb27e0fdfe1dc9ca94c97ba301e
[]
no_license
https://github.com/nju161250102/leetcode
91b01d6662ed9717056f6b62c881136d815dea04
a7de39f00c9020b615360f37ab50d36f6bd0f608
refs/heads/master
2020-03-22T21:33:55.612243
2019-04-10T04:40:22
2019-04-10T04:40:22
140,696,345
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ if len(prices) == 0: return 0 bp = 0 result = 0 for i in range(1, len(prices)-1): if prices[i-1] < prices[i] and prices[i+...
UTF-8
Python
false
false
641
py
89
122.py
85
0.441498
0.422777
0
21
29.571429
70
kkb626/python
6,399,501,309,981
0cee7807b80b5d54462a5728161d4e196322772b
fbcebb4a062ede7e1ec8c3a8da9a0756c5981cee
/문제300/문제021~030.py
c4340d698c2e74e8af99c28f900993b55670366d
[]
no_license
https://github.com/kkb626/python
6f62174bfd960de189195060f814a0d564c7cb1b
77f6ce6eb641ae964909d54acbc63804436ff100
refs/heads/master
2023-05-07T03:41:46.775964
2021-05-30T08:56:54
2021-05-30T08:56:54
363,334,188
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 021 letters = 'python' print(letters[0],letters[2]) # 022 license_plate = "24가 2210" print(license_plate[4:]) # 023 string = "홀짝홀짝홀짝" print(string[0: :2]) # 024 string = "PYTHON" print(string[ : :-1]) # 025 phone_number = "010-1111-2222" print(phone_number.replace("-"," ")) # 026 phone_number = "010-1111-2222" ...
UTF-8
Python
false
false
623
py
28
문제021~030.py
28
0.635579
0.512953
0
40
13.475
36
meyt/microhttp-auth
1,743,756,732,614
2c473a46c7c716e96f3cffa7cb6a051659926d87
3d1e71d17cf23900d2f180f706614c661614af0b
/microhttp_auth/tests/test_stateful_authenticator.py
af3b2f324704c09c8c6996dd98eda06643fc2f3c
[ "MIT" ]
permissive
https://github.com/meyt/microhttp-auth
51bc66902fdc60051167b03fdbdd2e6e9a5204fc
55c49876078a7dd0cb76599b6cbe59d379cbca42
refs/heads/master
2020-04-12T21:25:42.278598
2019-01-27T18:26:27
2019-01-27T18:26:27
162,761,649
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pytest from uuid import uuid4 from freezegun import freeze_time from webtest import TestApp as WebtestApp from nanohttp import Controller, settings, json, context from microhttp import Application from microhttp_auth import StatefulAuthenticator, authorize session_info_test_cases = [ { 'enviro...
UTF-8
Python
false
false
8,987
py
10
test_stateful_authenticator.py
6
0.579615
0.551352
0
315
27.530159
79
ustcllh/MLUtility
2,791,728,771,848
6b218a42d899ffec775c591103e2df49ee9046e9
c90e7363b9b76615e2d60834fa272d6dd505cc53
/digit_recognition_conv.py
6c836559c7fadbc53d9e6c03f8e0ffeab3b99bef
[]
no_license
https://github.com/ustcllh/MLUtility
7ee2e3d19945ed46a1d4d0bbee7396170c0e13fd
0f252799fd3545aebd3a793117dc6381c6a4bd68
refs/heads/master
2021-08-19T23:04:58.176333
2021-06-11T17:18:40
2021-06-11T17:18:40
185,864,825
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import torch.nn as nn import torchvision from torchvision import transforms import torch.nn.functional as F # Neural Network with CNN + pooling layers # note: dropout layers are disabled, please check nn.Dropout2d() for information class Net(nn.Module): def __init__(self): super(Net, self).__i...
UTF-8
Python
false
false
4,224
py
4
digit_recognition_conv.py
3
0.621686
0.600142
0
127
32.244094
124
sergiievdokimov/AQA-Python-Odessa
781,684,089,426
4c1cc0bd1702a2e3baeb2b91c6b09012bbdf2057
87669859027f45fde819b8c1cd25e26aad414e99
/src/pages/create_issue_page.py
1bdc89ef7b82ee3498d816ac42b1f2a692e75773
[]
no_license
https://github.com/sergiievdokimov/AQA-Python-Odessa
9d2148a7f3317ece514348b21ebbdc2c62d160a3
d945faa411c1fcfe67223b407ea708a02819bcf5
refs/heads/master
2022-12-15T04:16:41.466798
2019-06-03T08:53:52
2019-06-03T08:53:52
179,825,140
0
0
null
false
2022-12-08T01:43:51
2019-04-06T11:31:53
2019-06-03T08:53:54
2022-12-08T01:43:50
27
0
0
5
Python
false
false
from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWait from src.pages.base_page import BasePage class CreateIssuePage(BasePage): PROJECT_FIELD = (By.ID, "proje...
UTF-8
Python
false
false
4,083
py
28
create_issue_page.py
24
0.683076
0.680382
0
89
44.876404
138
Ebedthan/clv
6,047,313,963,548
6e294948529c0bbce966f4cbdfb153eda2c31f43
ba3e6545257173f1e73f7d3ccb315862e951a4d2
/linear_alr.py
5ba938e3abc9033811f702b837f6eed53e690a5f
[ "MIT" ]
permissive
https://github.com/Ebedthan/clv
b5b4a82807cf93946e0c1d6d81baba089be87cba
c184cd5f98a8f471f9e6131c88e7c9cf7717cf47
refs/heads/master
2023-03-18T19:14:08.495785
2021-01-25T15:14:58
2021-01-25T15:14:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import sys from scipy.special import logsumexp from scipy.stats import linregress from scipy.integrate import RK45, solve_ivp from timeout import * def choose_denom(P): """Pick a denominator for additive log-ratio transformation. """ np.seterr(divide="ignore", invalid="ignore") log_...
UTF-8
Python
false
false
14,463
py
32
linear_alr.py
17
0.506534
0.492083
0
456
30.717105
193
ajayasocean/learnSdet
11,287,174,085,306
8e8e190ac02cefd4c6f11aa638d8bc98d18de0d9
56d6987ffcc49ccd1446cfbcfc63e3e1294fca41
/pythonBasicsOld/dictMethods.py
109171ea131d843c03316ca3a5b1735b655bf2b1
[]
no_license
https://github.com/ajayasocean/learnSdet
6b6139459d6488c40f665f4b3e75fbba408deba8
b22c1a9356730ba31d3b782393d4487c5e32fcd9
refs/heads/master
2023-06-14T08:33:08.569432
2021-07-09T20:11:15
2021-07-09T20:11:15
376,581,573
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# dictionary methods # copy() method avng1 ={'iron-man':'Tony', 'Cap':'Steve','BW':'Natasha'} avng2 = avng1.copy() print('copy of aveng1 is',avng2) # Understanding copy vs assigment a1 = {'iron-man':"Tony", "CA":"Steve","BW":"Natasha"} a2 = a1 print(a2) cw = a1.copy() print(cw) print('id of a1',id(a1)) print('id of...
UTF-8
Python
false
false
960
py
141
dictMethods.py
124
0.667708
0.633333
0
40
23
68
jerrysun21/python_cmd_line_convert
4,174,708,235,071
d095b65cbe1ac98b3e4801a99ab262552cf92454
965a65402cad98fcf60492e482c596ebbb30c308
/cnvt.py
f5f316fff5a8df3b97c527a8c44e9ef8b37c4ce3
[]
no_license
https://github.com/jerrysun21/python_cmd_line_convert
a410a97510933aace4644bcc5f02ea65ab1b1876
b89cc9c1bb2f1b970cefd175e01138d9c1b5221e
refs/heads/master
2020-05-30T20:11:56.345159
2012-11-20T16:29:52
2012-11-20T16:29:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import argparse import sys def parseInput(in_type, in_num): if (in_type == 'bh' or in_type == 'bd'): try: int(in_num, 2) return True except ValueError: return False elif (in_type == 'hb' or in_type == 'hd'): try: in...
UTF-8
Python
false
false
1,921
py
2
cnvt.py
1
0.559604
0.554919
0
59
31.576271
156
kekmodel/geoopt
19,052,474,926,064
2ca0e9a2eea6b1e81225d7319c49d47bbea7a6df
0b0c6885f40219689ce4b1859248612db00b9795
/geoopt/optim/radam.py
6c90b16a4ccc18df1d596394fc444aef0295b5ca
[ "Apache-2.0" ]
permissive
https://github.com/kekmodel/geoopt
bb2a060cc28784a3a051e71d953313cd65e43d7a
7f4f54ca44f175f47030965ef2fdaae92eb59f8b
refs/heads/master
2020-04-17T10:33:37.117862
2019-01-18T11:38:36
2019-01-18T11:38:36
166,505,241
1
0
null
true
2019-01-19T04:18:00
2019-01-19T04:18:00
2019-01-18T11:38:39
2019-01-18T11:40:44
85
0
0
0
null
false
null
import torch.optim from .mixin import OptimMixin from .tracing import create_traced_update from ..tensor import ManifoldParameter, ManifoldTensor from ..manifolds import Euclidean class RiemannianAdam(OptimMixin, torch.optim.Adam): r"""Riemannian Adam with the same API as :class:`torch.optim.Adam` Parameter...
UTF-8
Python
false
false
8,871
py
18
radam.py
13
0.451697
0.447526
0
222
38.959459
104
Jonas-Nicodemus/phdmd
9,328,669,010,422
c8138715d8c03daff0b6d903ee64975bc2c17db8
2f3c413ff9678ddc4aff0fb182c402c4466723ea
/src/discretization/discretization.py
c510f58af109632c0a96d60dde89be049c55c035
[ "MIT" ]
permissive
https://github.com/Jonas-Nicodemus/phdmd
208b43ad3500713fdfe1b1244d891cf2c4b83672
6b72e840cd71fb22422a01c5550225996bcd1eff
refs/heads/main
2023-04-14T06:42:32.177808
2023-02-10T14:52:53
2023-02-10T14:52:53
483,152,686
4
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np from tqdm import tqdm from pymor.algorithms.to_matrix import to_matrix from pymor.models.iosys import LTIModel, PHLTIModel def discretize(lti, U, T, x0, method='implicit_midpoint', return_dXdt=False): """ Discretize a continuous-time linear time-invariant system. Parameters -----...
UTF-8
Python
false
false
6,847
py
31
discretization.py
18
0.555426
0.547831
0
247
26.720648
106
Sunghwan-DS/TIL
7,705,171,360,963
4855cc702d440850fe157a192dd77f52e2cbc25a
8051c8863119bc2b5e5b3107ce9c47ab12616e63
/Python/BOJ/BOJ_17142.py
9989d49b27554e20dc7966a0856536b0987a92e0
[]
no_license
https://github.com/Sunghwan-DS/TIL
c01f6f4c84f3e2d85e16893bbe95c7f1b6270c77
6d29f6451f9b17bc0acc67de0e520f912dd0fa74
refs/heads/master
2021-07-11T16:23:58.077011
2021-03-12T02:28:26
2021-03-12T02:28:26
234,990,431
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 2020.03.21 # 22:00 ~ 22:32 # BFS 구현 # 시간:1004ms, 코드 길이:1810B def BFS(virus): global ans visited = [[False] * N for _ in range(N)] q = virus[:] for y, x in q: visited[y][x] = True final_cnt = 2500 res = 0 cnt = 0 stop = False while q: cnt += 1 for _ in rang...
UTF-8
Python
false
false
1,890
py
305
BOJ_17142.py
286
0.409819
0.374066
0
90
19.833333
98
roshni-v/cpe101-word-finder-project
6,485,400,636,445
bec23084515dab9e3420d461771c9a23541724a9
0d45c828de90ae0b18af396021efa2270af3aacf
/wordFinderFuncs.py
39075fecd97870d9619ea928c33b1fe57633a6fa
[]
no_license
https://github.com/roshni-v/cpe101-word-finder-project
ff2cb8f9cb60aece1c3730fc94b7f050f4cedfbc
112c3c4646bf42a37a9b3ce4b87f9910209a16c7
refs/heads/main
2023-04-24T19:39:40.255653
2021-05-07T10:59:07
2021-05-07T10:59:07
365,204,252
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Project 3 Word Finder # # Name: Roshni Vakil # Instructor: Dr. S. Einakian # Section: 9/10 #creates a point object from two provided coordinates #int + int --> Point class Point: def __init__(self, row, column): self.__row = row self.__column = column def __repr__(self): return "row:...
UTF-8
Python
false
false
11,361
py
2
wordFinderFuncs.py
2
0.621072
0.59405
0
250
44.436
190
groundnuty/lw-daap
9,174,050,187,945
afd48d9a51e2f0622c9d037fde86df63362e5352
b9cd85504a84ef99f7c96784ab0fc67fb1921c3f
/lw_daap/modules/deposit/validation_utils.py
77d8aa7bd67c698115298625ce8d9cc939d5bc36
[]
no_license
https://github.com/groundnuty/lw-daap
28bed75257e60c51e3bde47385ad95efdc59e52b
e84cb33310506fcdab1dcdb1e8bd425d44435fbe
refs/heads/master
2021-01-11T00:35:48.649454
2016-10-11T20:52:42
2016-10-11T20:52:42
70,513,173
0
0
null
true
2016-10-10T17:42:45
2016-10-10T17:42:44
2016-01-21T20:26:25
2016-07-08T12:22:19
6,433
0
0
0
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Lifewatch DAAP. # Copyright (C) 2015 Ana Yaiza Rodriguez Marrero. # # Lifewatch DAAP 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 Lic...
UTF-8
Python
false
false
1,349
py
228
validation_utils.py
115
0.690141
0.685693
0
37
35.459459
72
FluffyFu/Leetcode
12,902,081,794,360
0d0eaff62bb314f73da77019bfdcc154228b6455
538fd58e4f7d0d094fd6c93ba1d23f78a781c270
/102_binary_tree_level_order_traversal/solution.py
0914b40ee7bb5251e602984ccb4b757ffab0c459
[]
no_license
https://github.com/FluffyFu/Leetcode
4633e9e91e493dfc01785fd379ab9f0788726ac1
5625e6396b746255f3343253c75447ead95879c7
refs/heads/master
2023-03-21T08:47:51.863360
2021-03-06T21:36:43
2021-03-06T21:36:43
295,880,151
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import List from queue import Queue class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def levelOrder(self, root: TreeNode) -> List[List[int]]: result = [] if not root: ...
UTF-8
Python
false
false
784
py
475
solution.py
474
0.479592
0.478316
0
34
22.029412
60
ljhahne/ARNe
3,032,246,931,477
1b2be40a9c415aa6c5c46958e2c3b9972c5be758
6398c22bcb07a11a783fa93e8c7ea8a60f2b3322
/models/WReNTransformer.py
3b1b1d64f81283a7a46af1120a74576f71a3d4ef
[]
no_license
https://github.com/ljhahne/ARNe
4ce60e30684f22356709d573935d0a7a91e6dfcf
c438d0df31fd1536291ccc8ba90b23edeb8c2af0
refs/heads/main
2023-07-16T18:09:55.495323
2021-08-24T19:17:52
2021-08-24T19:17:52
398,060,141
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import torch.nn as nn from .Transformer import Encoder class WReNTransformer(nn.Module): def __init__(self, config_transformer, N, d_classifier=[256, 256, 256, 13], use_delimiter=False, old_transformer_model=False): super().__init__() self.N = N self.d_model = ...
UTF-8
Python
false
false
3,032
py
18
WReNTransformer.py
15
0.568602
0.559037
0
79
37.392405
133
sysrnd/Maya_Animacion_PlayblastExporter
17,858,474,024,541
b639549d820ce4938ef7043cca95f3d1db1322eb
1ae93fdcd8446509c3c722df70e3332443c4ffb3
/playblastExport_Core/playblastExportBridge.py
967e914dbd4d963c87a5b4c9d915ebb24a17fa0d
[]
no_license
https://github.com/sysrnd/Maya_Animacion_PlayblastExporter
571fa57707b48f9c5c228fc6752df8d74bfd7eb5
217e4dbbb91827baa34fbed389a8b854ef8d88f2
refs/heads/master
2021-09-04T22:14:53.863115
2018-01-22T16:16:52
2018-01-22T16:16:52
113,534,142
2
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from Modules.Qt import QtCore import Animacion.Maya_Animacion_PlayblastExporter.playblastExport_Core.MKF_playblastCore reload(Animacion.Maya_Animacion_PlayblastExporter.playblastExport_Core.MKF_playblastCore) from Animacion.Maya_Animacion_PlayblastExporter.playblastExport_Core.MKF_playblastCore import playblastExport ...
UTF-8
Python
false
false
3,787
py
9
playblastExportBridge.py
7
0.623713
0.623185
0
175
20.577143
174
adorsk-noaa/georefine
10,840,497,469,544
93d13ac19bcbc2b24133cab3d8f97b5b1ea9ad22
a77776b362c361933a02f91692b0ae112a6ca33c
/georefine/app/projects/models.py
8205a912c2b2f2ca9b485238eb210e090ec41e8e
[]
no_license
https://github.com/adorsk-noaa/georefine
3114a66a6eaafe8ab68df8e75ec16f0286e68c6d
237ab00be4b028e90fccdf82cc15c5cd88fe3a34
refs/heads/master
2021-01-25T12:02:10.909344
2013-03-13T19:58:26
2013-03-13T19:58:26
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from georefine.app import db from sqlalchemy import (Table, Column, Integer, String, Text, ForeignKey, PickleType) from sqlalchemy.orm import mapper, relationship, backref class Project(object): def __init__(self, id=None, name=None, schema=None, data_dir=None, static_di...
UTF-8
Python
false
false
891
py
62
models.py
53
0.606061
0.606061
0
27
32
73
wjs018/PySceneDetect
17,781,164,642,933
a6ce56c61a672fe7002a6192419ced759ba7f853
7c8c7245e87fec996b2b956ad0438b0d87a45aa4
/scenedetect/platform.py
4f3dae9cafe60107fa9a3a16f7a5e8b9501f3f93
[ "BSD-3-Clause", "Python-2.0" ]
permissive
https://github.com/wjs018/PySceneDetect
4d663ca03d236ea031c2e31423cef341a7d4183e
456ed933ebf5d4c222c0458fc90b06bc9a3500c5
refs/heads/master
2023-07-05T08:13:30.564699
2023-05-22T00:56:07
2023-05-22T00:56:07
159,362,599
0
0
NOASSERTION
true
2018-11-27T16:05:54
2018-11-27T16:05:54
2018-11-26T14:36:09
2018-09-23T19:48:31
56,098
0
0
0
null
false
null
# -*- coding: utf-8 -*- # # PySceneDetect: Python-Based Video Scene Detector # --------------------------------------------------------------- # [ Site: http://www.scenedetect.scenedetect.com/ ] # [ Docs: http://manual.scenedetect.scenedetect.com/ ] # [ Github: https://github.c...
UTF-8
Python
false
false
11,772
py
65
platform.py
36
0.647638
0.643306
0
347
32.925072
100
golian1204/exemples
4,655,744,551,572
9db4c08b9982d62d8b6021a3072c7a16b843adb5
5a22f8a55d53ff342b4072622f5f0f590eb2be68
/mess/serializers/feedback.py
85ff2b06ff03df4638afb7134bdd1d9d0024cabe
[]
no_license
https://github.com/golian1204/exemples
a4b317f2544aa3796e00652fa9372023e9aafe49
294ea708f839919fe20b584533db73dd71837b7b
refs/heads/master
2021-09-09T21:18:10.729893
2018-03-19T19:05:20
2018-03-19T19:05:20
125,905,286
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import serializers from mess.models.feedback import Valuation class ValuationSerializer(serializers.ModelSerializer): class Meta: model = Valuation fields = '__all__' def create(self, validated_data): return Valuation.objects.create(**validated_data) def updat...
UTF-8
Python
false
false
538
py
51
feedback.py
50
0.689591
0.689591
0
17
30.647059
68
jianjhu/Inspect
8,194,797,612,766
263c37373e961edd60ccffa58b90a1b67739a938
8ceb5b655089c08bcecfab7379d9f9f0dace657a
/Inspector.py
96e7b449f7b99ae5be91d942f976c19d72ebf25b
[ "Apache-2.0" ]
permissive
https://github.com/jianjhu/Inspect
72315675673f27724cc7b650674fb33a2222c27a
3d16457b555359553b54441d616a5e299fe1550b
refs/heads/master
2020-03-27T07:20:20.272435
2018-09-28T08:48:24
2018-09-28T08:48:24
146,183,122
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import keras import numpy from datasethdr import get_dataset3 from datasethdr import n, m voice_train_files = ['DataSet/Voice.csv'] no_voice_train_files = ['DataSet/noVoice.csv'] webex_normalshare_train_files = ['DataSet/normalshare'] highFPS_train_files = ['DataSet/HighFPS.csv'] webex_ppt_train_files = ['DataSet/h...
UTF-8
Python
false
false
4,285
py
11
Inspector.py
5
0.641774
0.617503
0
126
33
109
FRANKSADWAR/HedonicHouseModels
5,909,875,043,856
aacfd2bf40d084c11b6c00f65a3dae8cf866793a
5928dc0c33e19a95571b53b6a7670d87dba1f594
/route_test.py
fd36b56ff2fe3fc26d4f293b4579538520c813e9
[ "Apache-2.0" ]
permissive
https://github.com/FRANKSADWAR/HedonicHouseModels
cdc85745d15a81e3740e6d813e09cf9aca48f7af
243dbe08c6798a87efe86fcc9ed2e14745769c78
refs/heads/main
2022-12-27T12:34:34.616153
2020-10-10T11:27:21
2020-10-10T11:27:21
302,886,041
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import traceback from django.contrib.gis import db from django.db import connection,connections from geojson import loads,Feature,FeatureCollection import geojson import psycopg2 import json import math import logging logger = logging.getLogger(__name__) database = 'routes_test' user = 'postgres' password = 'RootRend...
UTF-8
Python
false
false
3,300
py
1
route_test.py
1
0.647273
0.632424
0
91
35.032967
136
CaMeLCa5e/TechnicalExamples
7,765,300,901,265
c9505a8ddf6a0102a3d1f2ff2215b98b95acff42
308a5086eba8414cd5174de4ebb8b54ab4b50012
/RomanNumeral.py
73be1770982f42bc78fa8ddefcfd8c4b1aada34b
[]
no_license
https://github.com/CaMeLCa5e/TechnicalExamples
cde8231ab248449e11ce3677f8ee718b9c940903
655b1911ceda92b9c981d7697652ae5b545f3cbf
refs/heads/master
2021-01-23T05:45:55.354422
2014-10-22T03:44:36
2014-10-22T03:44:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
""" 3. Write a method that converts its argument from integer to roman numeral """ import re #Define exceptions class roman_error (exception): pass class out_of_range_error(roman_error): pass class not_integer_error(roman_error): pass class bad_roman_numeral_error (roman_error): pass #Define conversion map roma...
UTF-8
Python
false
false
1,325
py
8
RomanNumeral.py
7
0.634717
0.607547
0
57
21.596491
83
codacy-badger/noobit-backend
14,508,399,546,636
1b92dfa9a6e65d24efa3e1d1427c697fb7c10882
b9abb3c31e98b95b4d21380d929897e70b1a4233
/models/data_models/users.py
b7e7ecdd5f832da3328d10fa73b9cdb0eb0d5c5b
[]
no_license
https://github.com/codacy-badger/noobit-backend
8b3cc4838990c08a1a830dce833a73c0a900f68c
874372803d709d078947b38024856a926763fff4
refs/heads/master
2022-04-07T22:15:16.681500
2020-03-25T20:45:35
2020-03-25T20:45:35
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fastapi_users import models # FastAPI-Users models class User(models.BaseUser): pass class UserCreate(User, models.BaseUserCreate): pass class UserUpdate(User, models.BaseUserUpdate): pass class UserDB(User, models.BaseUserDB): pass # Our own response model to filter out password and id ...
UTF-8
Python
false
false
466
py
60
users.py
58
0.718884
0.718884
0
31
14.032258
54
dazhouxiaoyang/fastapi-pagination
7,842,610,314,489
3678623ec2739dd8c69e547ebcab1d70990d7e10
b1613ab7bf9b8ff89d24a7b4f4530170235d2fc5
/tests/ext/test_async_sqlalchemy.py
99b447d3e1e26db5de93d3b5f7c4ced30b5c4b20
[ "MIT" ]
permissive
https://github.com/dazhouxiaoyang/fastapi-pagination
4352da16372c6bcff16c3c8a87ec0c5edfbc7f51
9048334db650ba521f1770e8990760f36beee45c
refs/heads/main
2023-08-11T03:10:26.174664
2021-10-12T06:35:03
2021-10-12T06:35:03
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from typing import AsyncIterator from fastapi import Depends, FastAPI from pytest import fixture, mark from sqlalchemy import Column, Integer, String from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.future import select from sq...
UTF-8
Python
false
false
2,572
py
13
test_async_sqlalchemy.py
9
0.695568
0.693624
0
90
27.577778
78
UoM-ResPlat-DevOps/melbourne-tools
15,255,723,860,635
aac56de4a44c43937c52d259091b6368746697ba
9bcc6143ef883c697ccc7a0ceb675ed2db8355ad
/spartan/sync_ad.py
9f02d214093a330ddd92331f1e1bb0b0419fcc09
[]
no_license
https://github.com/UoM-ResPlat-DevOps/melbourne-tools
f3ffa848bc2810462911963af279c4d09331758f
1a955dc5cb6990a564bab8155cf64c2271e69fff
refs/heads/master
2017-10-12T02:53:38.937272
2017-09-27T01:17:50
2017-09-27T01:20:06
35,392,912
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # This script syncs users from AD to Slurm # It looks up the provided AD accounts and add/deletes users from slurm # accordingly import argparse import subprocess import os, pdb, sys, traceback NOOP = False DEBUG = False # get list of all slurm accounts def get_slurm_accounts(): accounts = {} ...
UTF-8
Python
false
false
5,642
py
48
sync_ad.py
44
0.564516
0.56044
0
187
29.171123
88
kysshsy/pai
7,937,099,595,563
462be559260c457f6d0f5908f090a67689472c81
ea05885d182c99c94aa271a865cdf88224afe5b0
/test3/digi_recognize.py
45a16695e08039f3f62528ef7a16eb6f241337c4
[]
no_license
https://github.com/kysshsy/pai
9471b6f4f521f6efe754a4b52c2bbddb703ead4e
50a17e39eb3f96183cebdd68923f7e948654458d
refs/heads/master
2020-06-06T04:53:06.474180
2019-07-02T04:51:54
2019-07-02T04:51:54
192,642,271
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd import numpy as np import tensorflow as tf # pre_process def transform_one_hot(labels): n_labels = np.max(labels) + 1 one_hot = np.eye(n_labels)[labels] return one_hot train_data = pd.read_csv("train.csv") img = train_data.values[:,1:] label = train_data.values[:,0] train_img = img.astype(np...
UTF-8
Python
false
false
1,707
py
6
digi_recognize.py
5
0.670901
0.641258
0
51
31.431373
123
kalyons11/march-madness
16,690,242,933,358
8697a0038546783d877b80aeea971c82b0ec6080
64ab9e962325285406477f9fd2ca22ad427c8054
/classes/model.py
896393668b833856f797a598316dd08018f09c10
[ "MIT" ]
permissive
https://github.com/kalyons11/march-madness
5d97e09f4eb7f70fb9ad12d9cd68d15f80cfbfb8
3171813785fb5915aa5240d4c507210e816d22f4
refs/heads/master
2020-03-10T09:49:26.794378
2018-05-11T03:44:49
2018-05-11T03:44:49
129,319,462
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.ensemble import RandomForestClassifier from sklearn.linear_model import LogisticRegression from sklearn.metrics import classification_report, roc_curve, auc from sklearn.model_selection import train_test_split from .feature import Feature from .feature_ve...
UTF-8
Python
false
false
4,647
py
26
model.py
18
0.570906
0.563374
0
133
33.93985
77
TAIPANBOX/autokeras
901,943,171,482
42ae8cabf2399a0eac06aaac5cda99e40daeddc3
2d8b7a06a510776d3f83b3c39ea62128c6b49f19
/autokeras/tuners/task_specific.py
c015ca9aa7c9354b5628821aa5ee729e6ea25e7d
[ "MIT" ]
permissive
https://github.com/TAIPANBOX/autokeras
ac3dbad01aa9d07140bcfc2280160e426f0606ce
fba4c190a846e84a6dcf460d1dc2aad0c739705c
refs/heads/master
2022-07-11T02:46:14.001874
2020-05-17T22:10:09
2020-05-17T22:10:47
265,168,850
3
0
MIT
true
2020-05-19T06:52:39
2020-05-19T06:52:38
2020-05-19T06:52:36
2020-05-19T05:12:08
40,303
0
0
0
null
false
false
from autokeras.tuners import greedy IMAGE_CLASSIFIER = [{ 'image_block_1/block_type': 'vanilla', 'image_block_1/normalize': True, 'image_block_1/augment': False, 'image_block_1/conv_block_1/kernel_size': 3, 'image_block_1/conv_block_1/num_blocks': 1, 'image_block_1/conv_block_1/num_layers': 2, ...
UTF-8
Python
false
false
2,595
py
80
task_specific.py
56
0.647399
0.599615
0
67
37.731343
74
s4swadhin/TalkPythonToMe
2,946,347,613,261
4a0d1b51727184fff4d30773b609ca9782a77fa3
973c3a34e0bb25fabdf10edfb3211c4160ff319e
/Birthday_Countdown/program.py
4a79af4a67d53424c43f4dbb2672f4e57a5bdeef
[]
no_license
https://github.com/s4swadhin/TalkPythonToMe
2218c4cd1deaf0341bc5632adbe8176709330207
86a08b59dfe00787eee66f3b2260c301f4ac8af3
refs/heads/master
2019-08-22T22:00:36.801193
2016-06-10T14:12:29
2016-06-10T14:12:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import datetime def print_header(): print('-------------------------------------') print(' Birhtday Counter') print('-------------------------------------') def get_birthday_from_user(): print('Tell us when you are born: ') year = int(input('Year [YYYY]: ')) month = int(input('Month ...
UTF-8
Python
false
false
1,213
py
9
program.py
6
0.570486
0.561418
0
43
27.232558
91
maroodb/allsafe-ctf
2,937,757,642,448
ee98abe0eb01ca7dd991541aa1a057a27fc9bbd3
4c044acdce8d83cc240e8b6221ec394c70d5400a
/ctf/urls.py
774ba37b06b6561ce3e36fadc08bdbca9b4dc5ce
[]
no_license
https://github.com/maroodb/allsafe-ctf
4d94b0e6772c51bbf0ff662d01474e970563f3a1
3893bb64203b7c28285467d1b7ff0ad149b204d9
refs/heads/master
2021-07-14T11:04:16.225012
2019-09-13T08:26:18
2019-09-13T08:26:18
150,078,611
1
0
null
false
2020-06-05T23:23:30
2018-09-24T09:14:48
2019-09-13T08:27:14
2020-06-05T23:23:28
118,330
0
0
2
JavaScript
false
false
from django.conf.urls import url from ctf.views import scoreboard, upload, challenges, ctf_resolve, challenge_details urlpatterns = [ url(r'^scoreboard/', scoreboard), url(r'^upload/', upload), url(r'^challenges/$', challenges), url(r'^challenges/(?P<id_ch>\d+)$', challenge_details, name='challenge_d...
UTF-8
Python
false
false
411
py
73
urls.py
54
0.666667
0.666667
0
15
26.4
85
Ziva1811/BikeShare
15,891,379,036,118
b129365178159c4e7b21afe875ba4f11a2ba0992
f134ed5baab5f7c792562722900f49752ea68b6f
/bikeshare.py
c707036d787480696c0fc308f25d53f4df18ad64
[]
no_license
https://github.com/Ziva1811/BikeShare
8fc6a9b7a9ffa839c2a8f66b6e1c6059dea5f7e2
d153c3fba45a03e9962091808edc280ebf8985ee
refs/heads/master
2020-04-02T17:34:06.824901
2018-10-28T07:33:40
2018-10-28T07:33:40
154,662,564
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time import pandas as pd import numpy as np CITY_DATA = { 'chicago': 'chicago.csv', 'new york city': 'new_york_city.csv', 'washington': 'washington.csv' } def get_filters(): """ Asks user to specify a city, month, and day to analyze. Returns: (str) city - name o...
UTF-8
Python
false
false
6,955
py
2
bikeshare.py
1
0.583178
0.577139
0
235
28.595745
102
vcp-kurhessen/Pfadiralala-IV
19,378,892,448,212
e21a5240f43826b95a84d89e3088ab553ada3579
1e5798fe2191f198f8a312a602601aa58c70d9c2
/Tools/txt2Latex/config/metakeys.py
79ec524942f40c61f43c743a1c5b0002865b8bba
[ "MIT" ]
permissive
https://github.com/vcp-kurhessen/Pfadiralala-IV
597add15b5bf43460fd97f790918f70f6b7768e8
66ae5de12c59bfa1da83edcc2c5cc6ecd962ceb5
refs/heads/master
2023-07-10T01:36:09.811290
2023-06-24T14:58:38
2023-06-24T14:58:38
50,174,511
29
14
null
false
2022-10-12T11:46:49
2016-01-22T10:27:48
2022-08-23T10:34:19
2022-10-12T11:46:49
383,847
23
13
6
TeX
false
false
# Schlüssel für metaangaben, die im Titelblock eines Liedes Vorkommen dürfen. siehe auch die Definition in lib/Heuristik/Heuristik.py metakeys = dict( # Siehe auch liste in Heuristik.py ww='wuw', # Worte und weise wuw='wuw', jahr='jahr', # jahr des Liedes j='jahr', mel='mel', # Autor der Melodi...
UTF-8
Python
false
false
2,059
py
584
metakeys.py
18
0.597561
0.592683
0
71
27.873239
133
Vishal-kilaskar/job_assignments
5,196,910,478,842
f543518dd1febeb51a2452268971dfec7b74339e
f9d60e93286244ebb16f56f35ee089ddb8bd85d6
/korangle/movie_data/urls.py
fb511ee6aeed205422606139f2b802e621c59e2f
[]
no_license
https://github.com/Vishal-kilaskar/job_assignments
90c26313e86d83408909ac0a11da12be9d163e64
8c579eb9ac4a915e37db735f47fd15c1ad6bbf5c
refs/heads/master
2023-02-13T12:37:47.603795
2021-01-07T13:13:29
2021-01-07T13:13:29
318,994,444
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.home), path('api/get_data/', views.get_data), path('api/post_data/', views.post_data) ]
UTF-8
Python
false
false
179
py
22
urls.py
14
0.653631
0.653631
0
7
24.714286
43
zt1112/pytorch_inceptionv3
13,194,139,579,284
b647eb3b7eca046154fd6c5c7ae0c74b8f84d378
8025816040aeb1d845e17e6a4d780ae2a8668ef3
/data/gentxt
7754bc1f182e8867f7cdfc00beaa30974f48f461
[]
no_license
https://github.com/zt1112/pytorch_inceptionv3
24714ee84bcc4775b8c74429c06fb38a7e653eb6
bd3a7afe1cb6e9db8ef3a2f48ecf34666bdfaddf
refs/heads/master
2020-03-20T13:26:32.403181
2018-01-19T06:12:15
2018-01-19T06:12:15
137,455,812
4
0
null
true
2018-06-15T07:31:55
2018-06-15T07:31:55
2018-06-07T03:23:43
2018-01-19T06:12:16
10
0
0
0
null
false
null
#!/usr/bin/python #-*-coding:utf8-*- import os with open('label2.txt','r') as f: text = f.read() dic = text.split(',') files =os.listdir('./val/') print(len(files)) f = open('val_label.txt','w') for file in files: a = file.split('_')[0] f.write(file+' '+a+'\n') f.close()
UTF-8
Python
false
false
286
6
gentxt
4
0.566434
0.555944
0
17
15.588235
33
DianYu420376/Full-Backprop-Test-on-20-News-1
17,171,279,254,241
5fdbc55644b9feb9d771ed62ee8fe78e18dd9712
000ca12a989d7bd96426a421099d5f036dda6130
/Test_20NewsGroup/check_gradient.py
3f1f71b12e7daa535d838850e1612525c6ce2665
[]
no_license
https://github.com/DianYu420376/Full-Backprop-Test-on-20-News-1
25a53ca1bd20fbeba292b0c3a73e934d619a51f9
059b0cb48c2d0774c9ab42516cba73ad2212a71c
refs/heads/master
2020-03-25T00:38:29.594455
2018-08-08T16:35:09
2018-08-08T16:35:09
143,196,357
0
0
null
false
2018-08-06T16:13:37
2018-08-01T18:57:53
2018-08-06T03:50:09
2018-08-06T16:13:37
207,624
0
0
0
Jupyter Notebook
false
null
# coding: utf-8 # In[11]: # debugging the supervised version of deep NMF import sys package_dir = '../full_backprop_package/' sys.path.append(package_dir) import torch from torch.autograd import Variable from auxillary_functions import * from pinv import PinvF import numpy as np from writer import Writer from matpl...
UTF-8
Python
false
false
3,745
py
28
check_gradient.py
17
0.608812
0.591455
0
120
30.191667
121
torms3/instance_segmentation_with_pixel_embeddings
12,249,246,731,663
0e5f90e995d86bda9562f263a6884f2848623d82
214760d3005eba69d0f58e40f9eab1e31e9bbca4
/check_tfrecords.py
76aa0a31af0a4daed9831aad802c00b33cfc0435
[ "MIT" ]
permissive
https://github.com/torms3/instance_segmentation_with_pixel_embeddings
8eb1bff948d584ebacecd6b9a51831ce447e7274
befaeb9e0a6e79213b4da3d5c5ce5a7c21b0b070
refs/heads/master
2021-04-07T03:40:00.036873
2019-11-26T14:04:10
2019-11-26T14:04:10
248,641,816
1
0
MIT
true
2020-03-20T01:31:04
2020-03-20T01:31:03
2019-11-26T14:04:20
2019-11-26T14:04:18
133,839
0
0
0
null
false
false
import tensorflow as tf import numpy as np import cv2 import os import glob import time import shutil from preprocess import extract_fn from utils.img_io import save_indexed_png dist_map_included = True # dataset_dir = "./tfrecords/U2OScell/train" # image_channels = 1 # image_depth = 'uint16' dataset_dir = "./tfreco...
UTF-8
Python
false
false
1,589
py
23
check_tfrecords.py
22
0.679043
0.66331
0
46
33.543478
133
ArchiveTeam/VideoBot
11,115,375,384,255
26b9acc70846cebc739578f2723b04a1b6e3cf5d
f0b50eb2e6491220da62af916088855fa2e6408c
/refresh.py
ea696b1b2bc2273c2f53430305712b9ec97570eb
[]
no_license
https://github.com/ArchiveTeam/VideoBot
aa63c02f0ce6039e0c494346091c498251fec448
ad504e03c941c9a1ed7bc5c037f2336c4c9bc160
refs/heads/master
2021-01-17T07:09:51.056362
2017-12-03T00:59:18
2017-12-03T00:59:18
52,161,461
11
6
null
null
null
null
null
null
null
null
null
null
null
null
null
from config import irc_channel from config import github import os import services import time import re import irc_bot import periodical_jobs import random import string import threading import functions periodical_job_start = lambda filename, type_, user: functions.periodical_job.periodical_job_start(filename, type_...
UTF-8
Python
false
false
4,774
py
26
refresh.py
25
0.586301
0.579388
0
107
43.616822
231
mathieubonnet/capsul
4,664,334,519,323
63402d3ae9a71b5beb01a42b608c5cbb1261a212
f6a24e51b6012b582d76db0b2e1e27950729b7bb
/capsul/wip/apps_qt/capsulview
b406ea1829809f04ddd26e49b97cb800de7dc52f
[ "LicenseRef-scancode-cecill-b-en" ]
permissive
https://github.com/mathieubonnet/capsul
391733a2391c1191b643e6847b5f757cf77c1255
c9745e339c24fc6a27d0adcc1e0c91b355588cac
refs/heads/master
2020-04-09T02:54:29.257904
2015-03-04T14:36:08
2015-03-04T14:36:08
31,950,724
0
0
null
true
2015-03-10T10:11:37
2015-03-10T10:11:37
2015-03-10T10:11:33
2015-03-04T14:36:08
4,779
0
0
0
null
null
null
#! /usr/bin/env python ########################################################################## # CAPSUL - Copyright (C) CEA, 2013 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ...
UTF-8
Python
false
false
1,106
41
capsulview
37
0.604882
0.599458
0
37
28.864865
74
linrong/flask-practice
7,679,401,535,989
5f582adb76386012ae98a8c0a2f0f4dc2f739104
3f1918a279e807505c6fa13a597eb0d121a095f6
/flask_demo/3/view_demo4/method_view.py
03286b26585d9b0a44d27f66a8fe1d530af3bf75
[ "MIT" ]
permissive
https://github.com/linrong/flask-practice
b177d5f52c4b55e78bbd5bf14c47decd74c87a28
91ec9d8219482562cb95a1df9ff846f9ca7ea9f1
refs/heads/master
2020-09-22T18:13:19.673917
2019-04-16T08:23:18
2019-04-16T08:23:18
225,296,899
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask,jsonify from flask.views import MethodView app=Flask(__name__) # 基于调度方法的视图,对于每个HTTP方法执行不同的函数,类似RESTful API class UserAPI(MethodView): def get(self): return jsonify({ 'username':'fake', 'avtar':'http://lorempixel.com/100/100/nature' }) def pos...
UTF-8
Python
false
false
540
py
43
method_view.py
34
0.622951
0.594262
0
19
24.684211
63
socketwiz/pi-wall-project
5,617,817,239,799
d8711680538fbb56d72dbd44a92cac172fda7944
9763810c6017f5b7ce6d681bc931a24c45786655
/pi_wall_project/bus/views.py
ce0d4eab2bd07600802f893219345068abc4f2eb
[]
no_license
https://github.com/socketwiz/pi-wall-project
c29628335b4690e09b735a17c121a19bbc869694
f8d2f459c3a1117fcd0f5f934a308b24446395dd
refs/heads/master
2021-09-10T22:02:51.796093
2021-03-01T13:10:42
2021-03-01T13:10:42
56,316,370
0
0
null
false
2021-09-10T18:16:54
2016-04-15T11:50:29
2021-03-01T13:10:48
2021-09-10T18:16:53
22,846
0
0
39
JavaScript
false
false
from django.http import JsonResponse from django.shortcuts import render from .models import Holiday, Schedule from .serializers import HolidaySerializer, ScheduleSerializer from rest_framework import generics import os, pyaudio, _thread, wave def play_sound(): alarm = 'school-bell.wav' chunk = 1024 tr...
UTF-8
Python
false
false
1,412
py
52
views.py
40
0.644476
0.641643
0
55
24.672727
81
paigekehoe/slacktactoe
12,627,203,886,802
867ebf84dc56050412218d3ddb490356061b00e7
e1427e6dae356d9af99fd961023581787cdb2b49
/app.py
0833c1776ea8f937801db3919015d81ab4493969
[ "MIT" ]
permissive
https://github.com/paigekehoe/slacktactoe
5cf96ec163ffebbe366ec628576feef521298ae6
1758e48a2f2b46fdfb6ccdb068c567fbdfb3592a
refs/heads/master
2021-07-25T09:04:51.067440
2017-11-07T18:26:48
2017-11-07T18:26:48
109,851,064
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import re from slackclient import SlackClient from flask import Flask, request, jsonify, abort import game import keys ## A simple tic tac toe slack application ## Author: Paige Kehoe ## Date: 11/6/17 SLACK_TOKEN = os.environ['SLACK_TOKEN'] ## getting the SLACK_TOKEN from hidden variable :) active_games = ...
UTF-8
Python
false
false
8,342
py
3
app.py
2
0.560657
0.550108
0
243
33.333333
285
gduvalsc/kairos
13,228,499,304,562
6e1e1ea750d97b83179e9cf2470bc7c502e329cb
035a3eebe2091897b942796781a192f67680b336
/worker.py
781c2a70051ece0aee5cff606df3664ea63e51ee
[]
no_license
https://github.com/gduvalsc/kairos
763eb8fa5daeefc5fd46ea066a47400d5be7b7f5
2bf863ba3f73fc16ef75842ad390eb55fb1906f1
refs/heads/master
2021-12-23T18:33:34.382989
2021-10-19T16:44:00
2021-10-19T16:44:00
77,072,517
4
3
null
null
null
null
null
null
null
null
null
null
null
null
null
import pykairos application = pykairos.KairosWorker().application
UTF-8
Python
false
false
65
py
139
worker.py
130
0.861538
0.861538
0
2
32
49
yumingzhu/pydemo
1,855,425,909,131
8d90ce88557324e926884df167cad56f8c34320a
7935d5e1b2e97c5b2933df32a2a4086d7de076bc
/demo/selenium/demoCSDN.py
f4b957ef33b7aff6ecebdcb026c087690899dee7
[]
no_license
https://github.com/yumingzhu/pydemo
6b1d0f06c65ee836d7e667ee63cd0d35f634b438
6b204723a0a7f08a36883c8db35355a6c8e8526b
refs/heads/master
2022-12-10T07:11:32.723391
2020-08-28T09:48:51
2020-08-28T09:48:51
291,010,541
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import time from retrying import retry from selenium import webdriver @retry(stop_max_attempt_number=3) def getToCsdn(): time.sleep(30) options = webdriver.ChromeOptions() prefs = { 'profile.default_content_setting_values': { 'images': 2 } } options.add_experimental_opt...
UTF-8
Python
false
false
876
py
37
demoCSDN.py
37
0.626712
0.597032
0
31
27.258065
92
InCodeLearning/InCodeLearning-Python3
1,760,936,596,882
452fa494a830a5c7d6d89323be4f80539d62e6c5
103bfe29fa92dc02411dad257e4486d5a71075d7
/built_ins/sequence_list.py
2d7fc55f4b59c9d9b366f6f064433da195fab793
[]
no_license
https://github.com/InCodeLearning/InCodeLearning-Python3
85eed07242d869ddfef57895c60c7987e5266b83
6968983514e696472d13ef62ebae59828a8da44b
refs/heads/master
2022-12-21T23:39:42.298427
2021-02-24T02:45:45
2021-02-24T02:45:45
63,978,085
8
3
null
false
2016-11-19T03:05:47
2016-07-22T19:26:39
2016-10-18T17:27:45
2016-11-19T03:05:46
232
8
4
1
Python
null
null
# C source https://github.com/python/cpython/blob/master/Include/listobject.h # dynamic array, not linked list # Array can only contain same type items, # mostly numbers as numpy array, to handle large data sets efficiently # list is mutable # using list as a queue, not efficient queue = [0, 1, 2, 3, 4] queue.append(5)...
UTF-8
Python
false
false
3,778
py
45
sequence_list.py
38
0.592642
0.540233
0
114
32.140351
78
sdYoo/ImgRecogSystem
7,138,235,682,649
95d7937d860a04c3d6e55d71bdd9784278bbc907
cc4878e8ebfa86387e7ae0c13a89815007da3d3a
/ProbabilisticHoughTransform.py
d20dcd603b5d919850f65e1a0d66e3b0107eeb78
[]
no_license
https://github.com/sdYoo/ImgRecogSystem
fda2b8b3582d0c580591e2ab51a6a0997f1dd5de
c6ef7f82560542f8d7ea4fe37b71ddea2aa31758
refs/heads/master
2022-10-28T12:50:41.080308
2020-06-10T11:34:13
2020-06-10T11:34:13
271,174,885
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import cv2 import numpy as np def show_ProbabilisticHoughTransform(): img = cv2.imread('images/20200610-sudoku-01.jpg') gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) edges = cv2.Canny(gray,50,150,apertureSize = 3) minLineLength = 50 maxLineGap = 5 lines = cv2.HoughLinesP(edges,1,np.pi/180,100,m...
UTF-8
Python
false
false
593
py
7
ProbabilisticHoughTransform.py
7
0.669477
0.580101
0
24
23.75
75
pulumi/pulumi-azure-native
7,911,329,785,222
b06d4d3c94ad71181c372f43a68641d996d792d5
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/search/get_service.py
284fe59973d3757b751b19d4cb1e902508fac874
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
https://github.com/pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
false
2023-09-14T13:17:00
2019-02-24T20:30:21
2023-09-11T17:08:08
2023-09-14T13:16:52
2,507,628
104
26
377
Python
false
false
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . imp...
UTF-8
Python
false
false
16,655
py
13,948
get_service.py
5,665
0.668388
0.665866
0
328
49.777439
909
karthikpappu/pyc_source
11,304,353,948,664
095a3e6a503878f9b0205ad9aaf7032b01ed20e8
91fa095f423a3bf47eba7178a355aab3ca22cf7f
/pycfiles/sbtab-0.9.73.tar/validatorSBtab.cpython-35.py
24788f1ea5ddd752cc640b91ea8cd76f5f74f60d
[]
no_license
https://github.com/karthikpappu/pyc_source
0ff4d03e6d7f88c1aca7263cc294d3fa17145c9f
739e7e73180f2c3da5fd25bd1304a3fecfff8d6e
refs/heads/master
2023-02-04T11:27:19.098827
2020-12-27T04:51:17
2020-12-27T04:51:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.5 (3350) # Decompiled from: Python 3.6.9 (default, Apr 18 2020, 01:56:04) # [GCC 8.4.0] # Embedded file name: /home/timo/Desktop/projects/SBtab/pypi_installer/sbtab/validatorSBtab.py # Compiled at: 2018-10-25 03:40:01 # Size of source mod 2**32: 14710 bytes """ SBtab Vali...
UTF-8
Python
false
false
12,442
py
114,545
validatorSBtab.cpython-35.py
111,506
0.553445
0.544189
0.001449
292
41.55137
229
enterpriseih/easyTest
3,109,556,322,815
749e13db8574478b989fc76c182f9c80f6242b46
24c5c46f1d281fc15de7f6b72a5148ae85f89fb4
/SRC/demo/基础实例/part23.py
b784897027abd7b3694db8a5915064205faed712
[]
no_license
https://github.com/enterpriseih/easyTest
22d87c7ffe40fb10a07f7c5cdd505f63dd45adc0
43b8d294e898f25055c78313cfece2753352c250
refs/heads/master
2023-08-23T22:55:14.798341
2020-02-11T09:13:43
2020-02-11T09:13:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# 题目:打印出如下图案(菱形): # * # *** # ***** # ******* # ***** # *** # * # print('%*s'%(4,'*')) # print('%*s'%(5,'*'*3)) # print('%*s'%(6,'*'*5)) # print('%*s'%(7,'*'*7)) def printPic(maxLineNumber): if maxLineNumber%2==0: return start=(maxLineNumber+1)//2 index=0 for x in range(start,maxLineNumber+1): in...
UTF-8
Python
false
false
510
py
169
part23.py
160
0.473029
0.421162
0
30
15.1
44
shivvignesh/Twitterclone
16,733,192,630,567
bd9228c1430de538cedc7565bbf01415e2ab2f28
1f048eff65c3c50033a76ade764992ac824b78c4
/core/admin.py
0248b0f785bc80640ad930bd0f69317b42b5b444
[]
no_license
https://github.com/shivvignesh/Twitterclone
9d1a0dff77b11aefdabcddc5af3900ce9b9290b0
9b2d508500f189e92cdfa768d7a65e4513a6ca29
refs/heads/master
2020-03-29T03:08:50.620034
2018-10-06T12:25:12
2018-10-06T12:25:12
149,469,130
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from core.models import Profile # Register your models here. class ProfileAdmin(admin.ModelAdmin): list_display=['user','about','dob'] search_field=['user'] admin.site.register(Profile,ProfileAdmin)
UTF-8
Python
false
false
237
py
20
admin.py
15
0.772152
0.772152
0
9
25.222222
41
jiaoyinyi/game_server
17,738,214,936,575
3ffd68018fa254e3ceb8c32b74ec57ff7a73229c
005b3f4538cf787bd82f043d3156e6662786fc4f
/script/xparser.py
fbb3b7980919320112b7c7a0513cf5c2fe64ac5e
[ "Apache-2.0" ]
permissive
https://github.com/jiaoyinyi/game_server
33b7a4fb7d52485063e2922eee8cc8195c7e1f20
e39bf199dc478e10d88ed63be92fc00589ec4eb0
refs/heads/master
2020-07-03T15:50:02.081877
2019-10-09T13:12:07
2019-10-09T13:12:07
201,957,654
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import xlrd # 读取xls文件,取出配置,第一行是中文提示,第二行是字段名,第三行以下是数据 # 输入一个文件名 # 输出解析好的数据 结构是[{},,,{}] 字典列表 def get_datas(file): table = open_file(file) check_table(table) return parser(table) # 打开文件,返回第一个sheet表格 def open_file(file): f = xlrd.open_workbook(file) tab...
UTF-8
Python
false
false
1,153
py
57
xparser.py
4
0.588117
0.582075
0
49
19.265306
68
JuanesKill/Listas-Haskell
6,511,170,436,150
20fca1ddf3e55fa31402c438892f1143fc7e75f1
f42a92268d8fe503ebdceb00bd4fe0be5efb59b9
/sumadigitospares.py
5a1c5241f690093638fce8cb3721d76e60a6a635
[]
no_license
https://github.com/JuanesKill/Listas-Haskell
cae0ba269534152f7b13da751ccf6d8efe9a55a8
95df3f3d3cca40b963d48f671a204b59160df14a
refs/heads/master
2021-01-19T08:05:16.354312
2017-04-08T01:47:13
2017-04-08T01:47:13
87,599,631
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def SumaDigitosPares(n): if(n==0): return (0) else: if(n%2==0): return n%10+SumaDigitosPares(n/10) else: return SumaDigitosPares(n/10) print SumaDigitosPares(21111)
UTF-8
Python
false
false
275
py
3
sumadigitospares.py
1
0.447273
0.392727
0
12
21.916667
47
mrbertadams/platypush
12,189,117,216,102
d3b5a4581a9e35c231472cf79a1ba72fff1a22ce
9484419e70b955a4e5e6a77b0d1ff1afadcca524
/platypush/plugins/mqtt.py
e6a4e5cc83ddff52b6378afe35f87ee412722856
[ "MIT" ]
permissive
https://github.com/mrbertadams/platypush
301638134a652fa42e0300386abe80ec140d9ebe
e880f004983810702b5732a88c2801201a818299
refs/heads/master
2020-12-05T13:00:34.698973
2020-01-06T14:24:52
2020-01-06T14:24:52
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json import os from platypush.message import Message from platypush.plugins import Plugin, action class MqttPlugin(Plugin): """ This plugin allows you to send custom message to a message queue compatible with the MQTT protocol, see http://mqtt.org/ """ def __init__(self, host=None, port=1...
UTF-8
Python
false
false
6,344
py
7
mqtt.py
3
0.598203
0.595366
0
162
38.154321
208
Shershebnev/SDCND
14,362,370,680,966
7c50e751ae12724d47ac437f24c6636a2f415e7a
0d83640f61c9d9a2abc84733b95931d3e749c0e0
/term1/project5/heatmap.py
4e0d23e111e83e0c5b2685e112b4822c627a2b37
[]
no_license
https://github.com/Shershebnev/SDCND
57f1870cc7dfe3ddfe99ed7c332b813cf0433e63
f1e1d9a02adde01c38727102b6436fc4ce38ee69
refs/heads/master
2021-05-01T15:49:28.657444
2018-05-26T03:55:37
2018-05-27T15:18:29
121,038,006
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from collections import deque import numpy as np class Heatmap: """Class for storing heatmaps from the previous frames """ def __init__(self, n_last_heatmaps=3): """init :param n_last_heatmaps: size of frame memory """ self.queue = deque(maxlen=n_last_heatmaps) def ...
UTF-8
Python
false
false
480
py
16
heatmap.py
10
0.60625
0.602083
0
22
20.863636
58
elmiomar/testbed
18,906,446,053,941
a5d3c8e4692ffc7d7bde12445dc2fe27e92b0a31
94876d26987e31ddc3a939fe02d2150407b00903
/MainApp/migrations/0004_sensor_xsensoriotcomponent.py
bab6dd7c334f63bec000d096bc14eaad1856fc2f
[]
no_license
https://github.com/elmiomar/testbed
cc5e96f9bb131f232344136b9680215cb65f8c32
b347cdc0f7f13ddaef45fb633ba44cef315e0b0c
refs/heads/master
2023-02-25T08:20:48.660433
2021-01-25T22:52:37
2021-01-25T22:52:37
332,906,553
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.2 on 2020-02-03 19:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('MainApp', '0003_iotcomponent_topic'), ] operations = [ migrations.CreateModel( name='Sensor', ...
UTF-8
Python
false
false
1,380
py
66
0004_sensor_xsensoriotcomponent.py
64
0.586232
0.57029
0
34
39.588235
125
timegambler/-wechatScrapy
8,383,776,180,279
d031948d8b583d499d4456798adb0ac8dfb65bdf
bbef5ac140bdfe36e68ae776dfae3cb36a86417d
/run/spidertool/workspace/officialAccountSpiders/items.py
8adff8792e5d49dade4ead0552915085db8b4d90
[]
no_license
https://github.com/timegambler/-wechatScrapy
2fa43f47ca2472b0c86791710e148917712bbb69
8afa427901dd5a25d8192a2b960acf8f9dc4e835
refs/heads/master
2020-04-24T22:23:54.871189
2019-02-24T08:13:41
2019-02-24T08:13:41
172,310,508
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class officialAccountItem(scrapy.Item): nickname = scrapy.Field() # 公众号名称 article_title = scrapy.Field() # 文章标题 article_updatetime = scra...
UTF-8
Python
false
false
463
py
8
items.py
7
0.67696
0.674584
0
15
27
52
sot/mica
8,194,797,629,318
e6f1e9bf58d2d3dded87d80d441a0847e184c1d1
f839a5b4025952684d72194ee93aa946388d88cd
/scripts/update_guide_stats.py
28a7388082b407d5638339983ae9162359b8eac7
[ "BSD-3-Clause" ]
permissive
https://github.com/sot/mica
f0bf217b707d30e62a32f91e40de806f7b8faca3
6f9a7831f22d6797d51e494377ad18279879a0ed
refs/heads/master
2023-08-31T04:27:39.853169
2023-08-22T14:02:12
2023-08-22T14:02:12
3,139,571
0
0
BSD-3-Clause
false
2023-08-07T13:17:47
2012-01-09T19:58:08
2021-11-29T16:26:17
2023-08-07T13:02:19
2,223
3
0
42
Python
false
false
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst import os import argparse from mica.stats import update_guide_stats import mica.stats.guide_stats # Cheat and pass options directly. Needs entrypoint scripts opt = argparse.Namespace(datafile=mica.stats.guide_stats.TABLE_FILE, ...
UTF-8
Python
false
false
813
py
103
update_guide_stats.py
70
0.738007
0.725707
0
25
31.52
93
borissimkin/moneykeeper-bot
10,539,849,747,751
8e2aa211096a7b1389f52efb4721b231b09e3356
a137d3f7c5956f659c8ce356aac52e22906fbc28
/bot/conversations/limits/keyboards.py
3a4c22d09fd05f41b51782f6a7ae94c52ce04f3b
[ "MIT" ]
permissive
https://github.com/borissimkin/moneykeeper-bot
33c19d127b34598d54653f0ae05f1999e264e5d7
45f7ed92be187db71d28c5326a5b62cb587c88bf
refs/heads/master
2022-12-07T21:20:15.619429
2020-04-17T10:58:30
2020-04-17T10:58:30
231,085,939
2
0
MIT
false
2022-11-22T05:25:04
2019-12-31T12:33:45
2022-01-21T13:00:28
2022-11-22T05:25:01
175
1
0
2
Python
false
false
from telegram import ReplyKeyboardMarkup from bot import config from bot.buttons import Buttons from bot.keyboards import make_buttons_for_choose_category, row_is_full from bot.utils import add_button_exit, add_buttons_exit_and_back text_button_daily = 'Суточный' text_button_weekly = 'Недельный' text_button_monthly =...
UTF-8
Python
false
false
2,506
py
89
keyboards.py
85
0.639459
0.638638
0
57
41.736842
117
Aasthaengg/IBMdataset
13,950,053,804,950
67c302ef2dcb50ab8710afc15c1175ab2c46e1fd
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03778/s090293313.py
245125398d062db92596d5a96a074f1d464167ae
[]
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
W,a,b=map(int,input().split());print([abs(a-b)-W,0][abs(a-b)<=W])
UTF-8
Python
false
false
65
py
202,060
s090293313.py
202,055
0.569231
0.553846
0
1
65
65
Galactromeda/baseline-pupil-size-study
1,460,288,909,311
24949b3114d935443f812212a2d2f581544ddbe5
09dd7af14e88edaffc2980bd6d35e4a08969a507
/data/analysis/data.py
adb37373f3115459f5932495f8ad2c8135cc705d
[]
no_license
https://github.com/Galactromeda/baseline-pupil-size-study
7cd9f9fbb909b876820982f4e50221a4d5b4e1a8
ff7638271659c879c18ede33d5c0ab65293e75ca
refs/heads/master
2022-01-02T06:28:19.558444
2017-11-29T13:21:25
2017-11-29T13:21:25
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 import numpy as np from datamatrix import cached, DataMatrix, SeriesColumn, IntColumn, io from analysis.constants import * a = np.loadtxt('data/trace.txt') @cached def generatedata(effectsize=EFFECTSIZE, blinksinbaseline=BLINKSINBASELINE, **kwargs): dm = DataMatrix(length=TRACES) dm.c = IntColumn ...
UTF-8
Python
false
false
1,531
py
22
data.py
8
0.702155
0.687786
0
50
29.62
75
christellevs/toxinclass_old
781,684,085,268
e19eaec723b2d5c99eb8ea5d4f41e6a57e2b64a4
53f79149e1dee73a39dc4a436df2ba155437b337
/protein.py
5f0f92cf32d6525b28c67e5fbf29926075aac287
[]
no_license
https://github.com/christellevs/toxinclass_old
07b8ec28d974eae6f7beac50de89133511c1c390
8b56f85504aba9e13cc997553c85aa2eb2c2590a
refs/heads/master
2022-11-26T19:58:21.312863
2020-08-09T19:28:56
2020-08-09T19:28:56
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np # PROTEIN PROCESSING FUNCTIONS START # ----------------------------------------------------------------------------- # PROTEIN CLASS class Protein: def __init__(self, identifier, toxic, length, sequence): self.identifier = identifier self.toxic = toxic self.length = length self.s...
UTF-8
Python
false
false
1,519
py
10
protein.py
9
0.500987
0.485188
0
48
30.645833
89