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
GafferHQ/gaffer
11,338,713,680,519
3e9336d5f12ac401379a720fea095a331efb41ef
6146e33102797407ede06ce2daa56c28fdfa2812
/python/GafferImageUI/ImageTransformUI.py
f2f7e56eddf5930961f93affe4387334f5df06d4
[ "BSD-3-Clause" ]
permissive
https://github.com/GafferHQ/gaffer
e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64
59cab96598c59b90bee6d3fc1806492a5c03b4f1
refs/heads/main
2023-09-01T17:36:45.227956
2023-08-30T09:10:56
2023-08-30T09:10:56
9,043,124
707
144
BSD-3-Clause
false
2023-09-14T09:05:37
2013-03-27T00:04:53
2023-09-13T21:09:28
2023-09-14T09:05:36
74,700
880
196
333
Python
false
false
########################################################################## # # Copyright (c) 2014, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
UTF-8
Python
false
false
3,646
py
1,694
ImageTransformUI.py
1,585
0.689248
0.687877
0
117
30.162393
97
anncarln/start-python
2,723,009,278,879
9ec81bb08e54a284ec60bf92994e105b4e6d6f99
e79e3974f877be62f96bb575bbe84c5fe70e68b7
/ex026.py
327e9c006144f5b725acb0ba826f49b57f4f6b08
[]
no_license
https://github.com/anncarln/start-python
885ea5b8da8533035ab90edc1e7b52741421b76a
964f3ed54a2a05f3999bb30bdcd93dbdf816d0e0
refs/heads/master
2023-06-29T01:57:47.190743
2021-08-08T03:18:31
2021-08-08T03:18:31
282,767,791
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
frase = str(input('Digite a frase que você deseja analisar: ')).strip() frase1 = frase.upper() print(f"A letra A aparece {frase1.count('A')} vezes nessa frase") print(f"A primeira letra A apareceu na posição {frase1.find('A')+1}") print(f"A última letra A apareceu na posição {frase1.rfind('A')+1}")
UTF-8
Python
false
false
312
py
80
ex026.py
80
0.696078
0.676471
0
5
59
71
otacake/ML
755,914,283,856
925f04089db99ab5cd4b5c1997cd1c15163a9991
632a161c20cab566a63c5920a9e8b0f5635abee6
/sec3/Iris_training_logistic.py
1c9cfa781d8ee0d7b5ae53cfe07af08c5e9646e4
[]
no_license
https://github.com/otacake/ML
70eb32c6bad13dedb16a2f75e205fe2fb39e49a4
d26651db97b33241e2b22c52b5be6341c17b23f1
refs/heads/master
2023-01-06T18:28:20.751254
2020-11-07T16:22:52
2020-11-07T16:22:52
274,142,870
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sklearn import datasets import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap def plot_decision_regions(X, y, classifier, test_idx=None,resolution=0.02): # setup marker generator and color map markers = ('s', 'x', 'o', '^', 'v') colors = ('...
UTF-8
Python
false
false
2,626
py
21
Iris_training_logistic.py
20
0.628631
0.603734
0
76
30.723684
105
hugo1840/car-classification-with-sklearn
3,616,362,489,504
0040d9640981d6b16be19238303947ca650610c4
ac84c76cf2663548991962584d0b875c10881b75
/car_vanilla_evaluator.py
5f67a7b95a5829e91b1290a15311720c263297d8
[]
no_license
https://github.com/hugo1840/car-classification-with-sklearn
103e384201ab29b390d7234606b497eac3d1e946
a8681344ac5579c94a0fb0f164afc9e7a2df6bce
refs/heads/master
2021-09-05T05:06:00.431515
2018-01-24T08:40:41
2018-01-24T08:40:41
118,736,870
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Dec 30 12:56:10 2017 @author: Hugot """ import numpy as np # Part 1 : load data Xt = np.genfromtxt('car.data', delimiter=',', dtype=[ 'U15','U15','U15', 'U15','U15','U15','U15'], names=( 'buying', 'maint', 'doors', 'persons', 'lug_boot', 'safety', 'c...
UTF-8
Python
false
false
6,325
py
3
car_vanilla_evaluator.py
2
0.673992
0.636364
0
185
33.194595
103
dmanchon/storydraw_api
12,678,743,484,931
0e2df0d050514a923dd5f6335ee358b6f9f1f2ef
e3f45e0e3b2fb30155d5469aef15e1f557cf7172
/api/views.py
c590017ab6152a0955e7241cf5cebe44cc9502ef
[]
no_license
https://github.com/dmanchon/storydraw_api
74183f5678274289bf6ec841fb313e4122a3b27f
063db0f44e990e9c64382c526298fb6ed01b75d4
refs/heads/master
2020-12-31T02:42:15.996453
2016-04-12T18:22:00
2016-04-12T18:22:00
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from api.models import Game from api.serializers import GameSerializer from rest_framework import viewsets from rest_framework.response import Response class GameViewSet(viewsets.ViewSet): def list(self, request): """ API endpoint that allows users to be viewed or edited. """ querys...
UTF-8
Python
false
false
562
py
7
views.py
7
0.681495
0.681495
0
20
27.1
62
triumphpc/profileApp
7,816,840,488,828
f8a7a604f7e1c183e7913c79cc23ff156f500280
8273a4db2e955c1300ce46f39a9de6a4816a90e8
/profileDjango/profileApp/admin.py
405f6ab228dc75753133de2a012cbdd8b1dfd66e
[]
no_license
https://github.com/triumphpc/profileApp
859e1f761164476b0f1a31f78ac1df88bc300374
65da33d1c93aa81496cf215b91f641c7ded5e4d5
refs/heads/master
2019-03-12T21:40:45.184859
2017-09-11T18:39:13
2017-09-11T18:39:13
102,396,801
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.contrib import admin from profileApp.models import ProfileVk @admin.register(ProfileVk) class ProfileAppAdmin(admin.ModelAdmin): list_display = ('phoneNumber', 'firstName', 'secondName', 'isOnline') list_filter = ['phoneNumber'] from profileApp.models import City @admin.register(City) class Profi...
UTF-8
Python
false
false
1,214
py
8
admin.py
7
0.793245
0.793245
0
44
26.613636
73
treetrnk/flask_writer
10,694,468,601,258
2848b410fdae298a1df80f01252fbde8e61ef2c5
f9abe32ae9a9dd25a01187dde74d98214ca32de4
/migrations/versions/44077c9504c9_definitions.py
c44303c1c4c9b1dc6f12df85cda1a90a9a25c6ac
[]
no_license
https://github.com/treetrnk/flask_writer
79bdab2f952d2667d92824b5abab0876b69ff97d
c7b7443b5afc065626850bbde21a38aa30570d1e
refs/heads/master
2023-09-03T11:41:41.412642
2023-08-31T18:54:55
2023-08-31T18:54:55
181,212,814
5
3
null
false
2023-02-16T04:40:38
2019-04-13T18:28:35
2023-01-09T16:17:26
2023-02-16T04:40:36
17,190
5
3
3
Python
false
false
"""definitions Revision ID: 44077c9504c9 Revises: 67240b207c34 Create Date: 2019-07-28 05:24:34.831541 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '44077c9504c9' down_revision = '67240b207c34' branch_labels = None depends_on = None def upgrade(): # ##...
UTF-8
Python
false
false
1,251
py
110
44077c9504c9_definitions.py
48
0.668265
0.611511
0
42
28.785714
69
bganglia/pigar
17,051,020,166,939
1ea3515bc04f9608bc1becc9ccb151add0c31d80
a2c7a9a42fc2904131b4fb96ac1b12556263878e
/pigar/pypi.py
8641255fcbc56e83ceaff846dc6ad16a627c5493
[ "BSD-3-Clause" ]
permissive
https://github.com/bganglia/pigar
6f2c98cc8902b79f83546d3947352e0eac59e734
3a656a4b8ba1c2050b33213f1c002dfb9ebc9a24
refs/heads/master
2020-12-02T09:00:42.143289
2020-01-02T05:53:57
2020-01-02T05:53:57
230,955,096
0
0
NOASSERTION
true
2019-12-30T17:34:41
2019-12-30T17:34:40
2019-12-27T23:27:48
2019-08-28T04:00:34
14,695
0
0
0
null
false
false
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import gzip import json import collections import io import threading import multiprocessing from multiprocessing import Queue as ProcessSharableQueue try: # py2 from HTMLParser import HTMLParser from urlparse import url...
UTF-8
Python
false
false
9,396
py
2
pypi.py
1
0.561196
0.554704
0
296
30.743243
78
Rahulrajsr2714/simple-eccomerce-django-project
14,302,241,104,838
6eb3393b9865346a8135531b0b5c247b2b85a272
5a90a0c641ae4bc215a9bf0769c5fac0eacb8426
/customer/urls.py
f856e70e73bacd1f2c775067e52aac9cc104b2bf
[]
no_license
https://github.com/Rahulrajsr2714/simple-eccomerce-django-project
8a1f3d6554815d5e90c381ff2c70d351791eee09
1785f2e7373f337fec188902e9fd54bdc798901e
refs/heads/master
2022-12-09T21:53:15.072169
2020-09-12T18:29:56
2020-09-12T18:29:56
294,997,041
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.urls import path from . import views from django.views.generic import RedirectView urlpatterns = [ path('', RedirectView.as_view(url='products')), path('registercustomer', views.registercustomer, name='registercustomer'), path('logout', views.logoutcustomer, name='logoutcustomer'), path('l...
UTF-8
Python
false
false
1,047
py
9
urls.py
3
0.741165
0.741165
0
21
48.857143
84
IvanovVitalii/project_ssw
15,152,644,666,626
f3064cc2f05339b9ea8b3316f927f54980d8f616
d0356e1bfb7c8bcbc8afdb80aa55c5ee66af9b4b
/project_ssw/alias/models.py
eeea15630591e09f47fdaf8f200d963ca921a611
[]
no_license
https://github.com/IvanovVitalii/project_ssw
7efd60f84090610170627d1912d0fea67ed97e5f
de69a5a8bca862581cd5b37db9e1154052dc3a44
refs/heads/main
2023-06-30T19:10:33.838705
2021-07-30T07:07:33
2021-07-30T07:07:33
381,144,656
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.db import models class Alias(models.Model): alias = models.CharField(max_length=24) target = models.CharField(max_length=24) start = models.DateTimeField() end = models.DateTimeField(default=None, null=True)
UTF-8
Python
false
false
238
py
10
models.py
8
0.726891
0.710084
0
8
28.75
55
cjacques01/portfolio
1,005,022,371,983
909b80353e604352da8940f9c79c0100197a2cfd
8cd560b3ee8bea9da35b46b8089c65ea6bf34886
/blog/views.py
7b1c054eb356a3542bde4c7576d2219b3daf55fd
[]
no_license
https://github.com/cjacques01/portfolio
d9d88289c62774ebecae3e0cd96df789ced1e2ee
1b605820dcb57514489d799b44bdf685e41be745
refs/heads/master
2022-12-13T13:16:59.107759
2020-02-24T04:00:53
2020-02-24T04:00:53
242,603,810
0
0
null
false
2022-12-08T03:40:32
2020-02-23T22:49:55
2020-02-24T04:01:14
2022-12-08T03:40:32
12,069
0
0
2
HTML
false
false
from django.shortcuts import render, get_object_or_404 from django.views import generic from django.http import Http404 from . import models from django.contrib import messages # Create your views here. class BlogList(generic.ListView): paginate_by = 5 model=models.Blog def detail(request, blog_id): de...
UTF-8
Python
false
false
447
py
12
views.py
4
0.749441
0.727069
0
17
25.294118
72
gungui98/INT3414---Reinforcement-Learning
7,284,264,574,929
3c60c7e2a863700fd3ecc20d38b6870796b7b008
5c8f862e07409b06c00eef48d5ef25b8e86828c8
/Tic-Tac-Toe/testAI.py
166a3e82947912e46e0916acff4955b0b7481040
[ "MIT" ]
permissive
https://github.com/gungui98/INT3414---Reinforcement-Learning
fba4a87c6bbff47b3bc74188f187252ad52ddca4
38bce513bdac861c9f864ebeff8387e8fde2c96d
refs/heads/master
2021-05-10T18:56:52.969638
2018-02-06T04:51:18
2018-02-06T04:51:18
118,138,998
0
2
MIT
false
2018-02-05T15:29:06
2018-01-19T15:01:03
2018-01-21T13:03:46
2018-02-05T15:29:05
745
0
2
0
Python
false
null
from env4 import TicTacToeEnv as env from AI import AI import numpy as np import pandas as pd import matplotlib.pyplot as plt def csv_to_arr(file): df=pd.read_csv(file,sep=',',header=None) return(df.values) env=env() player1=AI(env,1) player2=AI(env,2) player1.q=csv_to_arr('data2.csv') player2.q=csv_to_ar...
UTF-8
Python
false
false
939
py
19
testAI.py
14
0.640043
0.599574
0
46
18.456522
41
nyucel/kriptografi
9,182,640,119,544
a9ec064bcb55b36178280f531ec3b54564b97f5a
512d928c138008406733d48bdedc00bf006ed984
/final/140401016/final.py
e739ece3cabe1bfddc16309cceccfbcedf95a3e4
[ "Unlicense" ]
permissive
https://github.com/nyucel/kriptografi
4bb73ada2088777cd3df5656c6695daf045d9fc9
10325e745da5cc77bc9a80d94600fd9ff7c21ee5
refs/heads/master
2022-11-12T10:56:03.525223
2020-06-26T09:13:02
2020-06-26T09:13:02
255,692,683
9
54
Unlicense
false
2020-06-26T09:13:03
2020-04-14T18:30:27
2020-06-26T09:12:47
2020-06-26T09:13:03
217
6
30
0
Python
false
false
import random import time def generate_bit(n): p = random.getrandbits(n) bin = format(p, 'b').zfill(n) return bin def and_bit(block1, block2): res = "" if len(block1) == len(block2): for i in range(len(block1)): res = res + str(int(block1[i]) & int(block2[i])) ...
UTF-8
Python
false
false
4,399
py
64
final.py
54
0.525273
0.477687
0
147
27.863946
99
skiran252/quantizing_model_script
10,385,230,934,508
971e28e32686bb5621fefb2d3402b48488200e79
119125857c9c594d51a14173a1c24e47a311085c
/transform.py
7bd6f8a072d58f181465da84d54befccaa9d71ef
[]
no_license
https://github.com/skiran252/quantizing_model_script
4a9d96aa76921b9404f2b5568c64405121862976
45447101c1adf47bc8f0189df1598cfd1be5073c
refs/heads/main
2023-04-23T12:29:51.634669
2021-05-21T12:38:33
2021-05-21T12:38:33
369,531,148
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import numpy as np from simpletransformers.model import TransformerModel from transformers import RobertaForSequenceClassification, RobertaTokenizer import onnx import onnxruntime model = TransformerModel( "roberta", "Roberta_evaluator_6", args=({"fp16": False}), num_labels=2,use_cuda=False ) tokeni...
UTF-8
Python
false
false
955
py
4
transform.py
3
0.685864
0.672251
0
38
24.157895
89
Jimyfar/bbs
11,458,972,769,699
2f22b4651b83ddfbfbecdc7b029c2109d39810ee
71ba8b6ec24e905d9f70d92f95ef4295df9944fb
/routes/setting.py
9e136719c5a74e41cfc5bfe05e3e5762bce385e3
[]
no_license
https://github.com/Jimyfar/bbs
688c5b6bc6461ffbc4f04a383806bf45860a2ca3
1389107c29dfb53bdbfeabd7338de3f74685deea
refs/heads/master
2020-06-16T10:35:36.352525
2019-07-08T13:44:21
2019-07-08T13:44:21
195,542,261
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import os import uuid from flask import ( render_template, request, redirect, url_for, Blueprint, ) from werkzeug.datastructures import FileStorage import config from models.user import User from routes import current_user from utils import log main = Blueprint('setting', __name__) @main.rout...
UTF-8
Python
false
false
2,636
py
17
setting.py
8
0.607759
0.606583
0
97
25.298969
86
alirahatmayo/PlayFaction
893,353,248,243
4331f57f17b638853022bb41090da46a92e382d3
46f47e43a08cebde519b9efa97911b0fd8fdd241
/account/api/serializers.py
e8eee8ef46c0284db7fa3d22ac37798ca445284d
[]
no_license
https://github.com/alirahatmayo/PlayFaction
7615c2f1cb95aa921ed843df93273cda81e0bd82
433ceedef356339063306ce6faed4906b837b025
refs/heads/master
2020-04-21T14:34:03.945962
2019-02-20T17:39:56
2019-02-20T17:39:56
169,639,252
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from rest_framework import serializers from transaction.api.serializers import TransactionSerializer from account.models import Account ''' Serializer -> converts into JSON Serializer ->does Validations on data ''' class AccountSerializer(serializers.ModelSerializer): transfer_from = TransactionSerializer(many= ...
UTF-8
Python
false
false
887
py
38
serializers.py
38
0.639233
0.639233
0
34
25.058824
69
ossuchas/aplinechatbot
11,106,785,461,141
c5601513565507ed26df7c757ff6853c1a6adac1
4c408e04c630080f4a404ae7e37005b7881840cf
/models/chatbot_mst_user.py
aec8d910771b2577433cec929d43c4b8fb446c27
[]
no_license
https://github.com/ossuchas/aplinechatbot
9849560493a31a65ca1ab8438e001aed1b604e01
a538aaaf6a029ddf5384defb8ab45fd8628a6115
refs/heads/master
2021-12-04T11:53:20.964858
2021-11-16T07:44:43
2021-11-16T07:44:43
217,653,051
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from db import db from typing import List from datetime import datetime class MstUserModel(db.Model): __tablename__ = "chatbot_mst_user" user_id = db.Column(db.Integer, primary_key=True) user_token_Id = db.Column(db.String(255)) user_name = db.Column(db.String(255)) user_full_name = db...
UTF-8
Python
false
false
2,592
py
81
chatbot_mst_user.py
76
0.60841
0.597994
0
65
37.876923
107
AVS18/beta23_techbuddies
15,736,760,209,468
4854550496080fb3f0220f18910780accdfb6e76
073eaa4971acf86a43a29aa6461175129af89d17
/base/urls.py
edba34121e6346f9dcb342b81213cba68d227bcb
[]
no_license
https://github.com/AVS18/beta23_techbuddies
55db9ea9918999cbb6eda83e7d4817980d27a34f
53cfc14f37d31032c849dd87ef740bc4200b317f
refs/heads/master
2023-01-11T06:35:15.379907
2020-11-19T10:20:53
2020-11-19T10:20:53
308,706,302
0
0
null
false
2020-11-02T19:55:21
2020-10-30T17:58:10
2020-11-02T19:51:28
2020-11-02T19:52:05
1,146
0
0
0
JavaScript
false
false
from django.contrib import admin from django.urls import path, include from . import views urlpatterns = [ path('',views.home,name="home"), path('contact',views.contact,name="contact"), path('login',views.login,name="login"), path('register',views.register,name="register"), path('logout',views.logou...
UTF-8
Python
false
false
783
py
20
urls.py
13
0.706258
0.706258
0
17
45.058824
86
an10nimus/MyCodeForces
3,547,643,006,353
66c80b2874f791c51bec2f8e9a8f34791dc3b451
41d52e12d62e1935317e87e03639fdfdd5008419
/Round_640_Div_4/G/G.py
f840e35236cda49d6b73864076a27c1282c5e28b
[ "MIT" ]
permissive
https://github.com/an10nimus/MyCodeForces
f971718cbc393f812e7c45e4a1b6f558d8019c8b
aef134222fe3218d28de308e7ef8a57d40b69179
refs/heads/master
2022-11-13T07:35:10.907765
2020-06-25T16:59:30
2020-06-25T16:59:30
264,267,763
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
PATTERN = { 0: [1, 4, 2, 5, 3], 1: [1, 4, 2, 6, 3, 5], 2: [1, 4, 2, 6, 3, 7, 5], 3: [1, 5, 2, 6, 3, 7, 4, 8], 4: [1, 4, 2, 5, 3, 7, 9, 6, 8] } def solve(n): if n < 4: ans = -1 elif n == 4: ans = [2, 4, 1, 3] else: ans = [] common = (n // 5) - 1 ...
UTF-8
Python
false
false
705
py
32
G.py
26
0.404255
0.329078
0
33
20.333333
53
AlexGrasley/Web-Movie-Database
19,610,820,709,237
8935b63eba80addd95206b059c4be9ee92781b5a
0733eb7f9128194cdc41dfa7778a8ec4834425a9
/backend/migrations/migrate.py
4e897416d38604a3437ce168ee0fab90c38be29a
[]
no_license
https://github.com/AlexGrasley/Web-Movie-Database
cdebe3372c05f7e4c23b5a60ee1fb98595b320d0
1ec176298a20d4e1d54a32f0e24e4247b605a9ad
refs/heads/master
2022-03-18T02:44:54.599465
2019-12-05T03:41:26
2019-12-05T03:41:26
211,689,620
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import mysql.connector as mariadb import sys import os from enum import Enum import time up_end = ".up.sql" down_end = ".down.sql" # Order matters here migrations = [ "theaters", "rooms", "movies", "customers", "showings", "tickets", ] def get_args(): up_or_down = sys.argv[1] if up_o...
UTF-8
Python
false
false
2,331
py
39
migrate.py
34
0.573145
0.571858
0
105
21.2
106
oshadmon/foglamp-south-wind-sensors
2,680,059,626,990
b99b7a24bf512cf17f9f980552f2dd8505115793
1a85fa9c101e45262df385695e97727ab0fbe01a
/python/foglamp/plugins/south/wind_sensors/ina219.py
52c4fe06f4ad433a1cb15106f0f1fae9be53d551
[ "Apache-2.0" ]
permissive
https://github.com/oshadmon/foglamp-south-wind-sensors
2a69d95a2c4061012ba4009d2322068ebd82e800
eb89096facd1f4ae7fee12b998b4f7193efabdeb
refs/heads/master
2020-04-10T19:12:46.689142
2018-12-17T18:38:37
2018-12-17T18:38:37
161,227,106
0
0
null
false
2018-12-10T20:06:31
2018-12-10T19:38:11
2018-12-10T20:04:39
2018-12-10T20:06:30
0
0
0
0
Python
false
null
# Based on - https://github.com/adafruit/Adafruit_CircuitPython_INA219/blob/master/adafruit_ina219.py from pyftdi.i2c import I2cController, I2cNackError, I2cPort try: import struct except ImportError: import ustruct as struct #pylint: disable=bad-whitespace # Internal constants: _INA219_DEFAULT_ADDRESS ...
UTF-8
Python
false
false
7,353
py
4
ina219.py
2
0.586563
0.540868
0
217
32.884793
101
rjwen2045458/UoE_CPSLP
18,502,719,131,186
60f800b0ff527818a283388f669fb53a558fea04
4d59e2b420e44d4524002a9dc0a33dbafadfbc69
/CPSLP4.12/wordfreq.py
95b8910194bdfa800bd2642aaf5845092db42f2a
[]
no_license
https://github.com/rjwen2045458/UoE_CPSLP
e458dab42333b3fdd9322900457763c71af1f8d2
220fe3bf8ec35ec800c383129a5e9d97c75298d3
refs/heads/master
2023-02-21T04:30:22.781613
2021-01-28T17:24:06
2021-01-28T17:24:06
333,824,813
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
def get_word_frequencies(filename): # Empty dictionary for word frequencies freqs = {} # Read in the file with open(filename, 'r') as f: for line in f: for word in line.split(): if word in freqs: freqs[word] += 1 else: freqs[word...
UTF-8
Python
false
false
342
py
26
wordfreq.py
18
0.51462
0.508772
0
13
25.384615
43
Pupation/GalaxyGallery
17,703,855,228,937
da294adc83fbaec4f7b4ba5c0db05bca163061b1
be63aab08119daa41bb0cd18121e2b2ea8815131
/core/misc/chatbox/__init__.py
68795ecbb48d09d94bf63ea65b438dba30d125a1
[]
no_license
https://github.com/Pupation/GalaxyGallery
034f3742dd0e4609846f6a62983b33b234291ecd
109e0916983fe1e1eb21ac7f46d74c0955869663
refs/heads/master
2023-08-26T05:52:19.924253
2021-11-15T01:53:48
2021-11-15T01:53:48
415,851,807
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from fastapi import APIRouter chatbox_router = APIRouter( prefix='/chatbox', tags=['chat'] ) from .chatbox import *
UTF-8
Python
false
false
128
py
70
__init__.py
66
0.671875
0.671875
0
9
13.111111
29
abiraja2004/tw
6,021,544,197,634
d5b7e5f5f102e85498ed51c8d33e40f268a3ba9f
97e3e5747bd786e04616a3ffd49e12742c0688be
/frontend/gnip/pipeline.py
5414c29949d6c89d1b576adcec46c05a154dad88
[ "Apache-2.0" ]
permissive
https://github.com/abiraja2004/tw
26dc3692392f9b1b94ae06ddff70bec0f92ac21a
7c82278dce578dd73fb6fa465aed8585af224445
refs/heads/master
2020-03-08T09:39:04.428444
2016-01-28T02:28:54
2016-01-28T02:28:54
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from utils import MyThread from Queue import Queue, Empty from pprint import pprint import traceback class Pipeline(object): class Stage(object): def processItem(self, item): return item class DummyTimedStage(object): def __init__(self, t): self.t=t ...
UTF-8
Python
false
false
3,619
py
88
pipeline.py
53
0.520586
0.516994
0
104
33.798077
118
filipedc82/tddfirst
3,985,729,676,268
1f4826ac8571b78923c14f016b8b1da48f0556c8
d722d0936bf821ec1580dcf0e1a99ff6f7c17a54
/products/urls.py
252a72019d3e65d7b6336d6f82b5e74a8025fe9f
[]
no_license
https://github.com/filipedc82/tddfirst
5088981168c1c73aa2e0a4386283fefd73f7c1bf
badcd5e9b8dcb327903d75c2d5a20587226123f0
refs/heads/master
2016-09-09T20:30:08.900676
2015-05-07T17:03:25
2015-05-07T17:03:25
31,426,859
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'Filipe' from django.conf.urls import patterns, include, url # from django import views from .views import home_page, ProductListView urlpatterns = patterns('', # Examples: url(r'^$', ProductListView.as_view(), name='product_list'), )
UTF-8
Python
false
false
274
py
33
urls.py
17
0.656934
0.656934
0
11
22.909091
63
marcospsviana/sysweb-venda-stoq
13,984,413,552,867
d29f7ba1283b9b547cfc0e94ee04810201fa002b
9af423160aee10041045100abde5e66a78304137
/sistema/sysweb.py
1bddd8cf70ac17dd58c6242b70356cdecc55582c
[]
no_license
https://github.com/marcospsviana/sysweb-venda-stoq
e93c872608a18fe2f6eed69914c14d5d6a550110
adc02f3560c54b7beaf88a2f1b30a055243f5c07
refs/heads/master
2018-11-13T03:17:12.806793
2018-10-23T13:20:52
2018-10-23T13:20:52
145,180,161
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate, MigrateCommand from flask_script import Manager app = Flask('sistema') db = SQLAlchemy(app) manager = Manager(app) manager.add_command('db', MigrateCommand) app.config.from_pyfile('config.py') migrate = Migrate(app, db...
UTF-8
Python
false
false
390
py
15
sysweb.py
6
0.735897
0.735897
0
18
20.611111
49
Sweenpet/mic-tac-toe
14,688,788,165,777
b4fa0e567b6e2a0467b3bd907f0b3af994853048
b242ae576323f4d4c0cb954afd3d64e3b35065ad
/mic_tac_toe/resource_locators/content_type.py
9882ff44e2773e98de2b671b17f4092526e8e37e
[]
no_license
https://github.com/Sweenpet/mic-tac-toe
4c85e8ff1661eeff1f4d0860c411d9b898297600
a225ea3f8ce570b59c1315b2c9a3d4e2a3d70bd8
refs/heads/master
2020-03-27T21:14:15.763763
2018-10-28T21:21:43
2018-10-28T21:21:43
147,127,005
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from enum import Enum class ContentType(Enum): """Document type, XLS, PDF, etc""" XLSX = 1
UTF-8
Python
false
false
102
py
26
content_type.py
21
0.627451
0.617647
0
6
15.833333
38
lijinlongweb/index.py
11,081,015,646,356
167b3cc8aad8d3ee1cac37840049df24d37d1af2
8d0456a86ec21bcdcff899ef947b2172d627f318
/indexpy/__init__.py
6cb0c71af7c8c63056d3d5e13557dce6677ca756
[ "Apache-2.0" ]
permissive
https://github.com/lijinlongweb/index.py
6443a2fd5756248ac7ade312936e495c703c60f7
819daf95a6432eac9c037b32234ba0105c80378e
refs/heads/master
2022-04-21T21:30:35.294680
2020-04-25T06:59:36
2020-04-25T06:59:36
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys import logging import importlib from .utils import State from .applications import Index from .config import here, Config __all__ = ["logger", "Index", "Config"] app = Index() logger = logging.getLogger("indexpy") # global state g = State() sys.path.insert(0, here) # loading preset functions importlib.im...
UTF-8
Python
false
false
350
py
62
__init__.py
44
0.737143
0.734286
0
18
18.444444
41
ddasilva/attendance
8,873,402,458,214
ac05d6006133aa35081c95f41b65ecfaa8ae7346
8ebd4566eade160fa9d6a7edce62eeda287bea3d
/tests.py
803a5350a1e580f661cd4ff0f2a6da92dd2f4534
[]
no_license
https://github.com/ddasilva/attendance
2e664f87027b9fa51ca69e0b9608932c0bf2b347
d4d41e3b13d4d98fc833d3b22a2e51c5e4e699df
refs/heads/master
2020-03-27T11:21:51.044076
2018-08-28T17:25:39
2018-08-28T17:25:39
146,481,811
1
0
null
true
2018-08-28T17:20:30
2018-08-28T17:20:30
2018-08-28T13:36:31
2018-08-28T13:36:30
0
0
0
0
null
false
null
#!/usr/bin/env python3 import os import re import unittest class ReadmeTests(unittest.TestCase): """Unit tests for README.md""" def test_readme_file_exists(self): self.assertTrue(os.path.exists('README.md')) def test_readme_matches_regexp(self): with open('README.md') as fh:...
UTF-8
Python
false
false
574
py
2
tests.py
1
0.533101
0.531359
0
27
20.259259
73
avman44/final-project-stepik-selenium-python
6,768,868,492,222
07adf55a9756e58d292ed7155040b520b4183e21
03adbc8014d33fbb4fef158e9daa0d6383e5235b
/pages/basket_page.py
a94ded1af89d0afea8e99067e7bc11f90b5b25be
[]
no_license
https://github.com/avman44/final-project-stepik-selenium-python
6b66bfd619b2af452ed2a6264c9f15336b143eb9
e0eb7384ec184ec61b0318aec0a8851cf0baf014
refs/heads/master
2023-03-20T03:59:51.237161
2021-03-11T15:25:02
2021-03-11T15:25:02
342,881,524
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from .base_page import BasePage from .locators import BasketPageLocators class BasketPage(BasePage): def should_be_empty_basket(self): self.should_be_no_items_in_basket() self.should_be_message_about_basket_is_empty() def should_be_no_items_in_basket(self): assert self.is_not_element_p...
UTF-8
Python
false
false
621
py
6
basket_page.py
4
0.695652
0.695652
0
15
40.4
86
danhaus/quadcopter-autopilot
1,778,116,473,708
de25c2d6ed8f44482dcf5443d9fbcecd03d836bc
3efbfb5ab2968909c4fde860487d7b75f5d24659
/src/hyper_propelled_cow/scripts/controller_simple
7a4ba8283c767881962b441edcc709ca709c646d
[]
no_license
https://github.com/danhaus/quadcopter-autopilot
83d3ec5e05d1d1c81bfdc1d593452ba53708e0f6
5a096ffbb073fad67673886209cf0574a58cbbb3
refs/heads/master
2021-03-22T00:57:15.914707
2018-08-07T22:37:15
2018-08-07T22:37:15
119,521,702
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import rospy import time from std_msgs.msg import Int16, Int32 import propelled_cow.PID_control as _PID class Controller(object): """docstring for Controller""" def __init__(self): self.distance_demand = rospy.get_param('distance_treshold') self.PID_vals = rospy.get_param('distance') s...
UTF-8
Python
false
false
1,804
47
controller_simple
27
0.689024
0.666297
0
52
33.692308
140
ggonzaleze/Programming101
14,328,010,936,144
a91d37423b018b260c7a919558e993d2ce289a09
ddf709da01a4a4f53e547de9671c159d06385250
/MaxInList.py
cc5bfd7757fcb631865b17b1555ab3f57d7f0e2d
[]
no_license
https://github.com/ggonzaleze/Programming101
53ef2bb76af181d3193f10222c472198279623e8
025de1ccd278aabf71deb1a22135c208304bcb69
refs/heads/master
2021-05-14T23:44:01.939521
2017-12-06T04:30:07
2017-12-06T04:30:07
104,280,422
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from functools import reduce def max_in_list(numbers): return reduce(lambda x,y : x if x > y or x == y else y , numbers) numbers = [-5,10,6,0] print("The maximum number is: ",max_in_list(numbers))
UTF-8
Python
false
false
210
py
59
MaxInList.py
56
0.647619
0.62381
0
7
28
69
umedoblock/fugou
13,993,003,452,044
3b584d902a186169b2ea4dfa2b20b586c2468ff1
ee87e89befa0d4bf353dcf682b6467f9daaf657e
/src/foo/baz.py
143417c8ba0618e5834d06180764cc3e2e4d4246
[ "BSD-3-Clause", "MIT" ]
permissive
https://github.com/umedoblock/fugou
43046056ce5f20b81d76e3c8e3149717b63708ed
45d95f20bba6f85764fb686081098d92fc8cdb20
refs/heads/master
2021-07-15T15:26:30.856753
2018-11-26T23:44:18
2018-11-26T23:44:18
152,105,228
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from abc import ABCMeta, abstractmethod, abstractproperty # class Baz_abstract(metaclass=ABCMeta): class Baz_abstract(object): def __init__(self): self.v_abstract = 8 self.p_abstract = 9 dic = self.__dict__ print('Baz_abstract id(__dict__) = {:x}'.format(id(dic))) print('Baz...
UTF-8
Python
false
false
1,297
py
279
baz.py
67
0.509638
0.50347
0
47
26.595745
65
LucasYang-JLL/horizon_2080_fullstack
9,156,870,276,642
e95ddd1bbb94a1dc22dc4fe6365c7e6d6fa1fa4a
d4ac7a8e5844df254957c1a52170173a765a9b69
/horizon_2080/users/views.py
c3eca38e65af41d88166084b55d94cf27c1de362
[]
no_license
https://github.com/LucasYang-JLL/horizon_2080_fullstack
cbd417e325d0542a74934ad8e6b30d14be0c66c3
888c10013b473e0312a0847a80f4088214619cf2
refs/heads/master
2021-07-08T16:45:47.528947
2019-04-17T06:42:00
2019-04-17T06:42:00
153,553,962
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.http import HttpResponseRedirect from django.http import JsonResponse from django.contrib.auth import logout from rest_framework import generics def Logout(request): logout(request) # Redirect to a success page. return HttpResponseRedirect("/landing") def UserQuery(request): userID = reque...
UTF-8
Python
false
false
1,006
py
162
views.py
147
0.7167
0.7167
0
29
33.724138
75
yash-analytics/HackerRank_Solutions
8,435,315,801,386
0fa40cacf5cc0e528353583b82984ec4929e1e4c
0685e1ae8e50f9211ca7675b73633757c188bb80
/10_Days_of_Statistics/Day 1/Quartiles.py
5e8400c1017ade8b3f5a631a9b037b45b12dd31f
[]
no_license
https://github.com/yash-analytics/HackerRank_Solutions
48f398cee065cb4c4d54efdec82e1bbee59c4e5b
5dbd2b65f80414354c9d027aab054582f9f1b9f8
refs/heads/master
2023-08-25T02:08:59.483089
2020-05-27T17:19:29
2020-05-27T17:19:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Getting the input no_of_elements = int(input()) elements = list(map(int, input().split())) elements.sort() # Defining Median def median(my_list): length = len(my_list) if (length % 2 == 0): return ((my_list[length // 2 - 1] + my_list[length // 2] / 2)) else: return int(my_list[length /...
UTF-8
Python
false
false
668
py
40
Quartiles.py
36
0.607784
0.582335
0
26
24.730769
70
spolichnowski/Blog-1
8,203,387,535,482
104268e1551be99ffcd7d0d78ad1f9a87ebb9171
02736f7d0419462ab8b336394645640e99e00c5a
/articles/forms.py
b785d20333548132ce5f2781d838aa728ca7ffdf
[]
no_license
https://github.com/spolichnowski/Blog-1
a5016d002de2f2a80cad1f0de6ecb3b84fb8139b
a735e682841909592b188a4b45f1114a3938a06c
refs/heads/master
2021-01-19T00:03:23.425483
2016-11-05T10:37:24
2016-11-05T10:37:24
72,918,688
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms class EmailMessageForm(forms.Form): name = forms.CharField(max_length=70) from_email = forms.EmailField() message = forms.CharField(required=True, widget=forms.Textarea)
UTF-8
Python
false
false
239
py
6
forms.py
3
0.65272
0.644351
0
8
28.875
52
linbaiwpi/RoadNet-RT
18,846,316,525,750
1fe0c9e8b8b3bf2e0ebc2dca653fe31d523d85df
f24c5cd5957473f497f4089bc9ff9a72b5814a68
/roadnet/net.py
b341d6af7d8be0892790aade4981d3436202cdc5
[ "MIT" ]
permissive
https://github.com/linbaiwpi/RoadNet-RT
d7faec43475300b94a185d874532af0a1e284ab0
624a1051e0502b60abe6122450ea53f80e9e4f8a
refs/heads/main
2023-04-19T02:47:32.829009
2021-05-11T20:54:07
2021-05-11T20:54:07
310,941,805
12
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import keras as K import keras.layers as L import keras.models as M import tensorflow as tf def resnetLayer(x_in, filters, strides, name): # main branch x = L.Conv2D(filters=filters, kernel_size=3, strides=strides, padding="same", name=name+"_conv1")(x_in) x = L.BatchNormalization(name=name+"_bn1")(x) ...
UTF-8
Python
false
false
5,141
py
15
net.py
12
0.634896
0.601245
0
106
47.5
137
hhlgithub/Gaiter
4,655,744,549,679
803e2932d9bac3966899797ca4c54ffc85745f7a
f44cee6652d0699a4426a6a3243ae35d80292c43
/personal_classifier/ada_boost.py
e37bce4493e996d85fcf9a7b80bffdd39b409e58
[ "MIT" ]
permissive
https://github.com/hhlgithub/Gaiter
b89db580d817fa049e30e434390863f5d5e419be
a456ab59b67ed9eaf4896b423c0b09589f28f19f
refs/heads/master
2017-05-09T11:46:12.399447
2014-12-16T13:03:31
2014-12-16T13:03:31
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from sklearn.ensemble import AdaBoostClassifier from personal_classifier import PersonalClassifier class AdaBoost(PersonalClassifier): def __init__(self, data_set, labels): super(AdaBoost, self).__init__(data_set, labels) def train(self): x = self.data_set y = self.labels clf...
UTF-8
Python
false
false
399
py
28
ada_boost.py
27
0.656642
0.656642
0
16
24
56
SyedUmaidAhmed/Buzzers-and-PIR-Sensor-All-with-Raspberry-Pi-
1,288,490,191,313
da360595b8885c64b33f5065c31875a988387038
53d6b530227605b007f3a62356e2667a9c897193
/bz_2.py
c9be7165c657070a72e9e52e8a5d9f5b00a5f1ff
[]
no_license
https://github.com/SyedUmaidAhmed/Buzzers-and-PIR-Sensor-All-with-Raspberry-Pi-
b139b938369a523fc1a1436a47d8eaea4484e664
6a6ed9be04c6f5cbe3ff7ee35364f1381fecb6de
refs/heads/main
2023-03-18T20:14:05.561090
2021-02-27T21:06:54
2021-02-27T21:06:54
342,958,242
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) BUZZER= 23 buzzState = False GPIO.setup(BUZZER, GPIO.OUT) while True: buzzState = not buzzState GPIO.output(BUZZER, buzzState) time.sleep(1)
UTF-8
Python
false
false
237
py
9
bz_2.py
8
0.742616
0.729958
0
13
17.307692
34
umarhussain88/rhls_pdf_generator
9,165,460,248,354
aa9f1bb5a4ccd6034768c0e081fac1bcfc1463e8
2b2bd49738c04db885f9b0ebed4cb7b1ede05be8
/students/migrations/0001_initial.py
7517ade3f117d2a78004f057c1b691c005dfa588
[]
no_license
https://github.com/umarhussain88/rhls_pdf_generator
62857ebcd39ec0df32b7f9ae2db2f264b550cfc1
86cbcaab6f4960320f354783c3d5a5947e50f583
refs/heads/main
2023-07-17T14:11:42.348488
2021-09-05T22:26:27
2021-09-05T22:26:27
399,273,471
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.2.6 on 2021-08-25 22:12 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Student', fields=[ ('id', models.BigAutoFie...
UTF-8
Python
false
false
948
py
16
0001_initial.py
10
0.556962
0.518987
0
28
32.857143
117
tetianakh/playground
10,737,418,271,493
918394a01d86228450d32963b0672b795802be09
d2642b02511811a6e85f8c004ac72765001b7459
/django-test/test_project/user_generator.py
e7952ae11a4c0dfe2b50278791b99f79090ef9b0
[]
no_license
https://github.com/tetianakh/playground
58920751d647b14e4409e125a3221ce106fe9b00
282959bc2f6bb7782192c68e6ceff227ff64a5fc
refs/heads/master
2021-09-06T20:12:45.360806
2018-02-10T22:34:09
2018-02-10T22:34:09
117,529,602
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from faker import Faker import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings') import django django.setup() from users.models import User fake = Faker() def generate_users(N=10): for _ in range(N): user = User( first_name=fake.first_name(), ...
UTF-8
Python
false
false
523
py
26
user_generator.py
15
0.586998
0.57935
0
28
17.678571
72
tastypenguinbacon/just-messing-arround
7,997,229,124,401
5af3982ddee7df965abf44e2046d95fd7686fc42
e001481b356cdf23ed1a070681ab5385ddc83b39
/algo/fractal/python-mandelbrot-inverse.py
18b399fe59fdd5f2b851f45ba74be6fdb580c537
[]
no_license
https://github.com/tastypenguinbacon/just-messing-arround
5b276b614ad5be4c7b6dc4c97eb551d1c0da1057
12f3efd1c003f550934465bf9c57966479cd4707
refs/heads/master
2022-12-24T05:47:47.634229
2019-11-30T17:19:50
2019-11-30T17:19:50
82,855,657
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import matplotlib.pyplot as plt x = np.linspace(-1.5, 4.5, 2000) y = np.linspace(2, -2, 1500) c = np.repeat(np.array([x]), y.size, axis=0) + np.repeat(np.array([y]), x.size, axis=0).T * 1j c = 1 / c z = np.zeros(c.shape, dtype=np.complex) img = np.zeros(c.shape) for i in range(128): z = z ** 2...
UTF-8
Python
false
false
396
py
42
python-mandelbrot-inverse.py
30
0.606061
0.545455
0
17
22.235294
94
instance01/py-S-MCTS
4,466,766,021,323
dfe5a99b420cb890b96e538dbd3026f0f7e59f74
95cd30d17d99b3827ed926ff5b1e09077e61d729
/show_profile.py
b15a40b9f8cc34703c976be0f3526ef3c3ba8565
[ "MIT" ]
permissive
https://github.com/instance01/py-S-MCTS
12d3d47541932ed426bf22901603ff6704385b65
cad67da8bb515126311040674d5e6da77f47c90f
refs/heads/master
2021-03-13T19:25:00.826462
2020-04-16T20:03:22
2020-04-16T20:03:22
246,704,443
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pstats name = '3.profile' out = pstats.Stats(name) print('sort by cumulative') out.sort_stats('cumulative').print_stats(20) print('sort by total time') out.sort_stats('time').print_stats(20)
UTF-8
Python
false
false
201
py
13
show_profile.py
12
0.721393
0.696517
0
10
19.1
44
ngglasgow/clamp_ephys
867,583,395,330
db6f9a9f6b5eb8d186a6b2c106007d2fca786852
2d64c81dad73bd9f03288b9004b589ac5c90d555
/single_cell_test_analysis.py
48ad8d4c7723822307e512d20cb8c1cc02352ab4
[ "MIT" ]
permissive
https://github.com/ngglasgow/clamp_ephys
11fa657b4f746b9adb9046fc68ae976e4b0a4efa
60f1f490837939a0afcf9cf5bdd123fb51546269
refs/heads/master
2022-11-04T23:02:50.220537
2020-05-26T15:30:29
2020-05-26T15:30:29
223,270,172
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import clamp_ephys import pandas as pd import os import scipy import matplotlib import matplotlib.pyplot as plt '''####################### SET THE PROPER PATH YOU WANT ########################### ''' paths = clamp_ephys.workflows.file_structure('local', 'Injected_GC_data/VC_pairs') tables = paths.tables figures = path...
UTF-8
Python
false
false
3,641
py
31
single_cell_test_analysis.py
22
0.63911
0.620159
0
103
34.359223
138
nagyist/ParaView
14,233,521,636,152
43d43111efc48d7f08f09873fdbcf4546275888b
09d1138225f295ec2e5f3e700b44acedcf73f383
/Examples/PythonClient/eventdriver.py
487353c3a71be4cabc3b3f8ce3066042378b3147
[ "BSD-3-Clause" ]
permissive
https://github.com/nagyist/ParaView
e86d1ed88a805aecb13f707684103e43d5f6b09f
6810d701c44b2097baace5ad2c05f81c6d0fd310
refs/heads/master
2023-09-04T07:34:57.251637
2023-09-03T00:34:36
2023-09-03T00:34:57
85,244,343
0
0
BSD-3-Clause
true
2023-09-11T15:57:25
2017-03-16T21:44:59
2022-12-16T20:27:24
2023-09-11T15:57:22
238,433
0
0
0
C++
false
false
from PyQt4 import QtCore, QtNetwork, QtGui def exit(): import sys sys.exit(0) def sendMessage(): global sock, timer bl = QtCore.QByteArray() out = QtCore.QDataStream(bl, QtCore.QIODevice.WriteOnly) out.writeDouble(10) sock.write(bl) timer.start(30) app = QtGui.QApplication(['Event...
UTF-8
Python
false
false
548
py
5,743
eventdriver.py
3,836
0.713504
0.689781
0
30
17.266667
60
juditacs/deep-morphology
7,232,724,975,762
270d956e12dddd9cd9603d5a3e1c372ce7811ae3
d36982d5629d31063ffc2bb87ce558316645d6f6
/deep_morphology/probe.py
93bc3770930e9e9f0a8e8f14387d9c2978fa2fda
[ "MIT" ]
permissive
https://github.com/juditacs/deep-morphology
7ec32c671ce88b291ae04021f7a4e5df8a9649a6
090c17e604499a3430ea835a6340fa3abdc6ea83
refs/heads/master
2021-05-26T08:08:07.629377
2020-11-26T15:34:20
2020-11-26T15:34:20
128,024,350
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © 2018 Judit Acs <judit@sch.bme.hu> # # Distributed under terms of the MIT license. from argparse import ArgumentParser import os import gzip import logging import platform import numpy as np import torch import torch.nn as nn from deep_morphology.config i...
UTF-8
Python
false
false
13,416
py
64
probe.py
45
0.575997
0.572568
0
368
35.453804
97
kikyou123/DCGAN
5,128,190,996,595
bd8bb7ca580012ea4e000d94908759bfb0f7c4aa
28eeb5db2629583e0e516cb2992efec172b03a36
/DCGAN_CelebA.py
01c47d1f2cbf4353a26f361ab2c1dfd5b0d81f86
[]
no_license
https://github.com/kikyou123/DCGAN
25113de82d8d8f4b76d0d8a9b0f2b2c09a936fe2
334b8b72a34bf31bffa753b3a0964b69dda4685b
refs/heads/master
2021-06-13T16:49:06.923924
2017-03-22T06:28:26
2017-03-22T06:28:26
85,309,959
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding: utf-8 # In[1]: import os import tensorflow as tf import numpy as np from tqdm import tqdm from op import * from utils import * from load_hdf import * # In[2]: seed = 42 np.random.seed(seed) tf.set_random_seed(seed) # In[3]: dim = 64 batch_size = 100 z_dim = 100 ndfc = 1024 learning_rate = 0.0002 beta...
UTF-8
Python
false
false
7,887
py
7
DCGAN_CelebA.py
7
0.563712
0.535438
0
250
30.54
108
rkudache31/django
2,044,404,474,402
f295dd77f2144ca4186cb18223731900d4a9decc
5bc99197b793971c76a69ba78f2db194d47a999a
/homefood/food/migrations/0004_auto_20200517_1434.py
def7407af482f54ec3dcd8b980c021a008d2c5cc
[]
no_license
https://github.com/rkudache31/django
180abb329ec5b3d1f709616615a1ef7c4d23c08b
4fab3ba0a1bdf4e0dfd36c24cc66ab195dcb919b
refs/heads/master
2023-07-17T14:34:36.207475
2021-08-25T20:55:28
2021-08-25T20:55:28
259,901,385
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
# Generated by Django 3.0.3 on 2020-05-17 09:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('food', '0003_item_item_type'), ] operations = [ migrations.AlterField( model_name='item', name='Item_d...
UTF-8
Python
false
false
399
py
14
0004_auto_20200517_1434.py
7
0.551378
0.496241
0
18
20.166667
51
GuyCarver/raspi
10,668,698,780,839
5cbad709642e542f1b7c1cd52d7380055aa20e50
6ed530cc9fc7758c1df341c9d624e92539300c6a
/projects/sentrybot/body.py
9d33418dec75eff09371add799993c2c8bc7b9d7
[]
no_license
https://github.com/GuyCarver/raspi
aa87bff08969069074a98196574edaa27be8585c
30dc2b595274cdc5afe07767b584fbb2cfdfa7f1
refs/heads/master
2022-11-24T14:05:33.867306
2022-11-11T16:20:22
2022-11-11T16:20:22
109,533,023
0
0
null
false
2020-10-13T04:36:04
2017-11-04T21:53:07
2020-09-07T15:56:25
2020-10-13T04:36:02
83,228
0
0
1
C++
false
false
#!/usr/bin/env python3 #11/10/2018 11:10 AM from quicrun import * from atom import * #------------------------------------------------------------------------ class part(object): '''abstract base for a body part. anglepart and speedpart derive from this to control the value as either a +/-90 deg angle or ...
UTF-8
Python
false
false
7,356
py
156
body.py
120
0.566476
0.535481
0
272
26.047794
107
yuliyabirman/pynd-pubs
7,550,552,538,196
34d0234ec6184516c58f474cfa89514a3adb9ee6
fd7b81162c68cd1b78fedc1caec829fbebe3dc38
/src/calc_fitness.py
f3f777a73038dfd3986083bd9f6c7f1b106a72f3
[ "Apache-2.0" ]
permissive
https://github.com/yuliyabirman/pynd-pubs
938972a62934c1771c081a9dba72b1f513a964c3
61ee54f152343689169e1e6664edea94beed37cc
refs/heads/master
2020-12-14T08:53:07.440864
2015-11-11T17:16:34
2015-11-11T17:16:34
45,495,227
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import math import sys import pickle import numpy from scipy import stats import os homedir = os.path.expanduser('~') def calc_ratio(frequencies): # find mutant positions # find WT positions # map residue positions to mutants and WT WT_frequency = None mutant_frequencies = {} for key, frequency in frequen...
UTF-8
Python
false
false
2,931
py
22
calc_fitness.py
19
0.67349
0.653019
0
93
30.516129
124
MrLinNing/FoolsGold
1,511,828,500,397
2a6e62bbbb27a12b552842a5483993f7f29172bc
501f11db8449149dfe84474b23b56433859bfb49
/ccs19-eval/vggface-iid-heatmap/iid_heatmap.py
f833180d6ba585bce3f0d99bbb870187e7c6e195
[]
no_license
https://github.com/MrLinNing/FoolsGold
eff28c036591c06dacb0d59f00e7999fff1c7b54
db25670a0502d879ffda018992280248a7e1b2b8
refs/heads/master
2021-01-05T16:21:05.216670
2019-05-16T02:49:10
2019-05-16T02:49:10
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import seaborn as sns import matplotlib.pylab as plt import re import pdb import pandas as pd def plot(): toplot = np.zeros((5, 5)) props = [0, 25, 50, 75, 100] df = pd.read_csv("squeeze-heatmap.csv", header=None) toplot = df.values sns.set(font_scale=1.4) ax = sns.heatma...
UTF-8
Python
false
false
809
py
100
iid_heatmap.py
12
0.578492
0.543881
0
40
19.225
60
arkster/gmusic
2,216,203,134,664
7d10d75a38d594b62b57ffc49327e9b37ed3964e
43d12e8cea8d65d499cd674e0aec7993feac7e2d
/gmusic/media_resources.py
fd66f7cae44c15037891fb3fc26f11d12ee9a305
[]
no_license
https://github.com/arkster/gmusic
1ad082cdffc53f5e4b8be9a02dcd1a69d87eeadc
aa817bd14a8f9995e846784eeeecc9735b3545b4
refs/heads/master
2021-08-18T02:46:38.452230
2020-03-31T05:03:24
2020-03-31T05:03:24
146,410,728
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- """ gmusic.media_resources ~~~~~~~~~~~~~~~~~~~~~~ This module queries various radio stations to gather recently played songs on their playlists """ from datetime import datetime, timedelta from random import randint import asyncio import aiohttp import requests from bs4 import BeautifulSoup ...
UTF-8
Python
false
false
10,602
py
6
media_resources.py
5
0.518676
0.495284
0
246
42.097561
142
TJCrisostomo/Automation
816,043,817,422
a8fde6a48ba58f76e88e7e713cab2849bbd3baf8
81761e416c6164d13c2da6d793d282ce8bc1e3c3
/myconfig.py
947e7947c397bf27d8d9254c3f30d1278c44dbc4
[]
no_license
https://github.com/TJCrisostomo/Automation
46c9618d825972dfcf0284c61c040df9c86a2465
3743b6b8ba34b336849bc5fc89ece96d909ea91e
refs/heads/master
2021-01-19T09:48:47.265655
2017-02-16T08:27:07
2017-02-16T08:27:07
82,141,378
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# myconfig.py: var_username = '0468827174' var_password = 'theHoff34' var_url = 'https://accounts.amaysim.com.au'
UTF-8
Python
false
false
115
py
3
myconfig.py
2
0.713043
0.608696
0
5
22
43
larry1101/Tesselladou
1,846,835,952,728
4041d518e99f306d9113b45b69e9b335a745169e
400d2d336d9e3d86ad010e60e1994c786ff4138b
/tessellat.py
258fee8e35f1523159e77d7baf7b17592ad3e4f1
[]
no_license
https://github.com/larry1101/Tesselladou
505cc45a70810a44bb55babb915fd4a5a1974ffa
516a7dfcfbeb8748ceb1e17e00314350f27ec792
refs/heads/master
2021-05-05T23:25:42.019447
2018-01-09T07:07:08
2018-01-09T07:07:08
116,675,742
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import random import svgwrite from svgwrite.container import Defs from svgwrite.gradients import LinearGradient from svgwrite.shapes import Polygon fosu = ['#F0FFFD', '#97FBE7', '#53F0C9', '#33BD9B', '#2BA473', '#41D6BF', '#39CDDD', '#C1FDDE', '#42FF80', '#30C965', '#26C168', '#31D9B3', ] shinnsha = [...
UTF-8
Python
false
false
10,060
py
7
tessellat.py
2
0.46829
0.400795
0
302
32.311258
116
brianlee389/twilioadapter
3,796,751,102,717
c48c0ee931fe8f674910e40ee60c7f2fd2af8b28
ecfcfa6c3df973f04741e2e12eacccf3bb6ecb21
/main.py
3c497499e55bfbd057b309264bf727df897b56fd
[]
no_license
https://github.com/brianlee389/twilioadapter
f3246e2cb29b2d80a3de32f1033317ea1bb46be5
26628df29484b4f7078185f0d5a4c04c75e9db2a
refs/heads/master
2023-01-12T08:17:03.828937
2016-04-17T08:07:55
2016-04-17T08:07:55
56,425,799
0
0
null
false
2022-12-26T20:15:04
2016-04-17T08:06:33
2016-04-17T08:09:43
2022-12-26T20:15:02
24
0
0
17
Python
false
false
#!/usr/bin/env python import os import sys from flask import Flask, request, redirect, jsonify from twilio.rest import TwilioRestClient from twilio.util import RequestValidator from flask import Flask, request, redirect, jsonify from twilio.rest import TwilioRestClient from twilio.util import RequestValidator # Find...
UTF-8
Python
false
false
1,794
py
3
main.py
1
0.710702
0.658863
0
59
29.389831
88
kpapag/hua_hospitalServices
5,480,378,316,195
2a02489820d17f2a1ae3f6035910eae241002821
023a951bad97aea0b0aba746489805d9353a7c5a
/VirtualEnviromentDjango/hospitalPoject/__init__.py
3b7f2c4e43239afdf43a2fcbb7bcf7706e2b27ec
[]
no_license
https://github.com/kpapag/hua_hospitalServices
a0b4f37f871c4d14836cb0a3f80494f132a32cd3
4303a68d18630c16b7ef842cfd712900cbe406e2
refs/heads/master
2021-05-29T15:45:25.945523
2015-06-15T18:50:29
2015-06-15T18:50:29
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
__author__ = 'abaoubas'
UTF-8
Python
false
false
24
py
78
__init__.py
31
0.583333
0.583333
0
1
23
23
HutchieV/UIRS
16,372,415,353,877
45e87a4385c3a144cfcb601b820ced0f384fb15d
a879bfe59bcf8b820e52d4a7b42b83a742d970c8
/data/print_decorator.py
ffc1d3a9238600b494a276cdf9f867fc472627f1
[ "Apache-2.0" ]
permissive
https://github.com/HutchieV/UIRS
7ec9f223197de9ef1a42490dc5b6a7bf9326938e
a9d66b6890986445f9060c6e579e8af70d814ada
refs/heads/main
2023-04-11T04:48:35.038345
2021-04-21T14:35:20
2021-04-21T14:35:20
329,394,319
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from datetime import datetime class PrintDecorator(): """ Contains a print decorator for printing time, thread/class, and debug messages. """ def __init__(self, sid=None, pd=False): if sid: self.script_id = "[{}]".format(sid) else: self.script_id = sid self.print_debug = pd def ...
UTF-8
Python
false
false
1,692
py
20
print_decorator.py
15
0.524823
0.524823
0
71
22.84507
72
dinopetrone/chelseacourtdesigns
18,915,035,989,384
a5a8404c74e021f76917fbafd8dbd096f3b855e7
b650950faa18e9104b17135eba6778247f4de422
/www/home_carousel/models.py
59e637d76e25371dbe9b81b4c53de3690726a2eb
[]
no_license
https://github.com/dinopetrone/chelseacourtdesigns
f378bd79667f95000eb9b949c70feb84165f01c2
edce009401ec3e292304bef7519db1a99a3eb8d3
refs/heads/master
2021-06-11T10:28:06.450297
2012-08-03T03:49:46
2012-08-03T03:49:46
5,276,188
0
0
null
false
2021-06-10T17:39:37
2012-08-02T18:28:11
2014-04-19T02:29:51
2021-06-10T17:39:35
364
1
0
1
Python
false
false
from django.db import models class Carousel(models.Model): large_img = models.ImageField(upload_to='photos/%d/%m/%h/%s') def __unicode__(self): return 'Carousel Item ' + str(self.pk)
UTF-8
Python
false
false
199
py
32
models.py
21
0.658291
0.658291
0
6
32.333333
65
satchab/aa
936,302,904,518
239d3da321579dfc3b01da85dd27546c6ab4c5d5
d40bb0f6a9e94f6e7678384eba0076d163f69008
/Project/__init__.py
7bef3b21943fccef11dd890b6683588e331e73ae
[]
no_license
https://github.com/satchab/aa
0f0bd2f8f5f95a82173b670d1e9e6a5ac9bc221a
e70c2348318737519cb0bae0896a1e0c35273b5e
refs/heads/master
2022-12-30T16:52:05.126878
2019-10-29T06:00:28
2019-10-29T06:00:28
212,384,377
0
1
null
false
2022-12-15T14:39:19
2019-10-02T16:05:59
2019-10-29T06:25:03
2019-10-29T06:24:54
10,016
0
1
1
Python
false
false
from flask import Flask , request , abort app = Flask(__name__) @app.route('/') def hello(): return 'hello tam' , 200 @app.route('/webhook',methods = ['POST','GET']) def webhook(): if request.method == 'POST': print(request.json) return request.json, 200 elif request.method == 'GET': ...
UTF-8
Python
false
false
337
py
2
__init__.py
2
0.593472
0.566766
0
15
21.333333
47
abdallah-nasir/advancing-the-blog-blog-api
19,507,741,466,892
7aad40b0d5f8f78f44efca9f48142a8b86e009a1
7fea6a1c0a197f184f48df31e2bb72d64a2ff128
/blog/posts/forms.py
40003c9e8cf25dede89a39a42acbb6175ab73952
[]
no_license
https://github.com/abdallah-nasir/advancing-the-blog-blog-api
daba6809118675eb039e8c7f8f8fb6bfe55eea0f
f1eb9bc50c40aef877c1b5864b45caa3c6cec191
refs/heads/main
2023-04-08T05:35:04.813446
2021-04-14T12:21:54
2021-04-14T12:21:54
334,929,607
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django import forms from .models import * class PostForm(forms.ModelForm): class Meta: model = Post fields = ["title","body","image"] class CommentForm(forms.ModelForm): content = forms.CharField(widget=forms.Textarea,label="") class Meta: model = Comments fields = [...
UTF-8
Python
false
false
344
py
23
forms.py
15
0.616279
0.616279
0
15
21.066667
61
kishkash555/biu-research
19,490,561,608,736
a7624466236bd66867a8fe6961100d79defad439
a87dba2cfe9cbbc93906de64f7d3ae49dd0d3ea5
/HashNet/HashNet.py
aafbbaf4ce245576bdc5022000eb11572462bc1a
[]
no_license
https://github.com/kishkash555/biu-research
cb7340fff82fe47356b6a532bc2fb239bd977a74
0f38e5089c97ee1bf11bb76e8825c1fbb048b5d5
refs/heads/master
2020-04-26T17:24:04.871408
2019-06-24T12:33:58
2019-06-24T12:33:58
173,711,836
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import dynet as dy import xxhash as xx import numpy as np from random import randint from collections import namedtuple, Counter layer_namedtuple = namedtuple('layer','g,w,b,m,n,hf,type'.split(',')) def hashed_matrix(k,m,n,pc): """ create a hashing dynet matrix """ def hashed_phi(a, hf, N, K): r""" ...
UTF-8
Python
false
false
6,399
py
26
HashNet.py
19
0.556962
0.540866
0
201
30.81592
119
maleadt/tado-charts
10,359,461,159,576
85475d1df4009e14f59865869e7c64be4be0a0f4
0ef279313598b67ec4d56abc4f8a257290d69e1a
/bin/plot.py
786fa2a447656c80d872d37157288f8801df2238
[]
no_license
https://github.com/maleadt/tado-charts
82ad8aa7c43a2044ee209601a615c3d0cc1ccf76
11270c40d2d8a886b6d2b4c7ece3311050bdaca2
refs/heads/master
2021-01-23T01:08:04.810978
2017-11-15T12:31:17
2017-11-15T12:31:17
85,877,904
6
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 import os import sys import datetime import pymysql import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.ticker as ticker import matplotlib.patches as mpatches from scipy.signal import savgol_filter import private if len(sys.argv) > 1: outp...
UTF-8
Python
false
false
4,979
py
9
plot.py
4
0.628164
0.60446
0
157
30.707006
104
Guyebai/Geeks_DongHua
2,886,218,030,937
564648be126a20b943e2f7ce1da93b8e8dfc9db9
a4905aa47878f35d4937a4834749caeee3f6e260
/fix/models.py
4bde2f395992bf30c4b917e7700fab9a43579a52
[]
no_license
https://github.com/Guyebai/Geeks_DongHua
e94d05d6dff8b572be4d385132eebf9718c80f8d
d6ca97c0176218948d2f182bcaa6a564c6d7326d
refs/heads/master
2020-09-10T04:04:26.650834
2017-09-26T10:27:58
2017-09-26T10:27:58
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 from __future__ import unicode_literals from django.db import models from django.utils import timezone from myuser.models import User from myuser.constants import Sex_Choice from util import format_time class Fault(models.Model): name = models.CharField('故障', max_length=255) order = models.In...
UTF-8
Python
false
false
2,164
py
96
models.py
70
0.655977
0.645287
0
72
27.583333
80
wingtonbrito/test-build
12,661,563,602,197
f52f6f7416c4e772e8cf45efd04cedcb16475a61
d2fab1990bd12cf401cdf93766f2bef3d76c25f9
/src/dataflow/libs/log.py
64a1484af9659f9e6a503a0693f8a29b02198c72
[]
no_license
https://github.com/wingtonbrito/test-build
26fe3098ad6695e62c754459976f98a3e399e2fc
261c832b569f52ec4ad370c0d72afce2a5b2c234
refs/heads/master
2023-01-06T13:38:02.315272
2020-06-09T21:04:09
2020-06-09T21:04:09
271,098,141
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import apache_beam as beam import logging class Log(beam.DoFn): def __init__(self, func='info'): self.__func__ = getattr(logging.getLogger(), func) def process(self, payload): self.__func__(f'>> logging payload: {payload}') yield payload
UTF-8
Python
false
false
273
py
154
log.py
135
0.615385
0.615385
0
11
23.818182
58
JackPotte/snottywong
5,162,550,718,455
06db479219bef02fc2a451f4864f23079c3756ed
bf9c643237b8996ddee573bc3fa4bd0f899aab34
/cgi-bin/votecounter.cgi
1692919db2da261a89e3bd6b32d66e7e7edc2aa8
[ "MIT" ]
permissive
https://github.com/JackPotte/snottywong
c846197d66e94f59f2570f8dd4952fe44ca20b38
c4f5c3f5322fb73669c16dbd374ff60b3fcd4970
refs/heads/master
2021-01-19T23:40:41.628010
2017-05-28T23:37:18
2017-05-28T23:37:18
89,007,737
0
2
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #TODO remove commented out material #TODO Logging import sys import os import traceback import cgi import re import urllib import htmllib import datetime import MySQLdb page = "" def main(): global discussiontype global page print """<!doctype html> <HTML> <...
UTF-8
Python
false
false
9,643
cgi
61
votecounter.cgi
30
0.530022
0.522348
0
253
37.114625
322
justinro-underscore/MiniInfiniteRunner
1,795,296,351,764
9f2f8d38147eb1ee33bbafb7e1f401917a1db7bd
909e3310cdf4c03a771c79919301a502b47b4d88
/ground.py
0444568c160512f521bc6024dfe49de890bbd587
[]
no_license
https://github.com/justinro-underscore/MiniInfiniteRunner
95383cc96c1977a979e59707fc08dce62546ba28
d6503d217cea7165d131e00b61d1a9bd44c4d934
refs/heads/main
2023-04-10T19:03:03.637311
2021-04-20T02:39:37
2021-04-20T02:39:37
358,453,231
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from random import random from moving_objects.ground_mark import GroundMark from moving_objects.cactus import Cactus from constants import height, width, ground_height, init_ground_speed, ground_mark_probability, max_ground_mark_length, init_cactus_space, cactus_space_increment class Ground: def __init__(self): ...
UTF-8
Python
false
false
2,732
py
10
ground.py
9
0.68631
0.680088
0
71
37.478873
161
GraphicalDot/Sportsunity
16,681,652,994,802
c66dcf83483e769a9aaacd6c8df5fa07e0b7f109
728325025dcd9cef1e94298ddcf0163fe26e8503
/leagues_elasticsearch.py
86b5694910b6c1273edbf6c6db20430336e56ed8
[]
no_license
https://github.com/GraphicalDot/Sportsunity
6bafdf21f93c14b5e8e58ad196424c530ecd5e21
085d7237b849dfec1e59b4236eef10e0ab87179c
refs/heads/master
2021-03-19T15:18:09.553691
2016-04-11T09:03:50
2016-04-11T09:03:50
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python import requests import json from pyfiglet import figlet_format from termcolor import cprint import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import connection ES_CLIENT = connection.get_elastic_search_connection() class GetTeams: def _...
UTF-8
Python
false
false
3,431
py
63
leagues_elasticsearch.py
59
0.388808
0.382687
0
69
48.594203
140
anniezhn/CSC210
17,566,416,253,317
4ddc7555a14250bee4e06bff33ef791189a4dce2
41061be9fc4f639594c0d6d5002ad656d78f0276
/cgi-bin/delete.py
18e8e5ef1fa4fb98e71b8a49576957816d9b78c1
[]
no_license
https://github.com/anniezhn/CSC210
286f785821df0bef8e4143beaf188e7bc59b704a
716858302339fd6a2c471ca2550ca64dbe19c204
refs/heads/master
2016-09-06T21:51:04.490068
2014-12-10T05:54:33
2014-12-10T05:54:33
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/python import cgitb, cgi, os, Cookie, sys import MySQLdb as mdb #setup cgitb.enable() #retrieve username from cookie cookie_monster = Cookie.SimpleCookie(os.environ['HTTP_COOKIE']) username = cookie_monster['user'].value conn = mdb.connect('localhost', 'tnichol1', 'TeamTAJ2!', 'tnichol1_CSC210') #connect ...
UTF-8
Python
false
false
1,402
py
42
delete.py
28
0.71398
0.690442
0
41
33.170732
106
th3seus/fbctf-load-test
5,368,709,123,107
d2fd13ef100cee1bb485bbcd3495fcdcaa2b1edf
51b743f2d87207df7b5163d1a20e29522289e26f
/test.py
a417d85ec12bbc780fc8277742b7da9f74f2c46e
[]
no_license
https://github.com/th3seus/fbctf-load-test
3420acdef18986ae8444af813a4d47c8de677ed2
be4fa0b483139f6a5fc7366cba3760a64dd4769e
refs/heads/master
2020-03-23T20:33:40.322553
2018-07-24T22:46:53
2018-07-24T22:46:53
142,048,388
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions as EC im...
UTF-8
Python
false
false
2,824
py
2
test.py
2
0.660057
0.65085
0
93
29.365591
99
KieranHauser/TorontoCoffee
6,244,882,478,625
5bb2dc359451e2af06f48149fa129115c5a93f9b
399b7b74fda0d863d59234285aa5ab95efcc5a17
/shop/urls.py
70ba52273f7b35f846b828b394856e7476b3c827
[]
no_license
https://github.com/KieranHauser/TorontoCoffee
28e871013a35c6e6c3e6c9fec5ab4cd8f0487e6a
3571eafe13d0fd447a31fa4323caa0eccc8fbd8a
refs/heads/master
2021-08-07T07:35:25.578249
2017-11-07T21:20:10
2017-11-07T21:20:10
105,454,681
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from django.conf.urls import url from django.contrib import admin from django.views.generic import TemplateView from .views import ShopCreateView, ShopDetailView, ShopListView urlpatterns = [ url(r'^create/', ShopCreateView.as_view(), name='create'), url(r'^(?P<slug>[\w-]+)/$', ShopDetailView.as_view(), name='...
UTF-8
Python
false
false
384
py
14
urls.py
13
0.705729
0.705729
0
10
37.4
73
hydrargyrum/pytat
12,232,066,877,578
716ad811843a07dd25104aa221d417267069bce7
494857bc8583ff83fb1e972aa2f460d287576670
/examples/sample2.py
882270c61c11c93d105b8f87f7e841905e79253b
[ "WTFPL" ]
permissive
https://github.com/hydrargyrum/pytat
3bcbf2ebbf62a4ca3fdd885729aea6f0ef5ca774
9a7796177990ae55aa4ea3686bd92d7e91fd3404
refs/heads/master
2020-03-27T05:35:46.204018
2018-11-11T14:04:11
2018-11-11T14:04:11
146,033,398
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import sys def f(): print(42) for i in range(2): print(4, 2) print(42, file=sys.stderr)
UTF-8
Python
false
false
111
py
15
sample2.py
13
0.531532
0.468468
0
7
14.571429
30
orange21cn/OrcTestToolsKit
6,640,019,454,947
fc6e6db131110562ebd61d804e088d76d3c60119
4adc1d1b8f9badefcd8c25c6e0e87c6545ccde2c
/OrcApi/Batch/BatchDefMod.py
afb6746181f6da20b52a345b533f664c66b265ad
[]
no_license
https://github.com/orange21cn/OrcTestToolsKit
eb7b67e87a608fb52d7bdcb2b859fa588263c136
69b6a3c382a7043872db1282df4be9e413d297d6
refs/heads/master
2020-04-15T07:30:35.485214
2017-09-30T06:16:17
2017-09-30T06:16:17
68,078,991
5
3
null
null
null
null
null
null
null
null
null
null
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from OrcLib.LibCommon import OrcString from OrcLib.LibCommon import is_null from OrcLib.LibException import OrcDatabaseException from OrcLib.LibDatabase import TabBatchDef from OrcLib.LibDatabase import gen_id from OrcLib.LibDatabase import orc_db from OrcLib.LibLog...
UTF-8
Python
false
false
6,285
py
240
BatchDefMod.py
212
0.512821
0.510697
0
236
24.944915
102
astrosilverio/PokeDB
3,040,836,859,093
8a62c1a828ddc4c8150db5f27e14165c52c1ba68
483fcc2e88ddd4828567606bc625c69d95306b7a
/pokedb/storage/__init__.py
6f44e28d976e65e232bb3a1622efdd0a6345bef1
[]
no_license
https://github.com/astrosilverio/PokeDB
c5e7eae67867deb6a17b1352a95d8de5ea3c8834
e2f811e6f135cb761f94faf315f2679273f6003f
refs/heads/master
2020-03-31T10:39:34.838719
2019-01-09T20:42:57
2019-01-09T20:42:57
152,143,406
1
0
null
true
2019-01-09T20:42:58
2018-10-08T20:37:11
2018-11-28T22:30:40
2019-01-09T20:42:58
61
0
0
0
Python
false
null
""" API to access layer: `get` `write` `sync` """ import os from pokedb.storage.pager import Pager from pokedb.storage.serializer import serialize, deserialize DBFILE = os.getenv('DBFILE', 'test.db') _pager = None # In-memory storage _storage = dict() _temp = dict() _table_schema = { 'main': ('value',), } ...
UTF-8
Python
false
false
1,062
py
5
__init__.py
5
0.621469
0.621469
0
59
17
60
mirumee/saleor
11,802,570,135,609
acd6fec63c7f9692aecbed15e26af690f8aceb23
4d2ecebad4a5144a70ad8e565215b153ef344452
/saleor/plugins/webhook/tests/test_tasks.py
9705ea5eef80a8eff0c0c767eb3bf8713104b35e
[ "BSD-3-Clause" ]
permissive
https://github.com/mirumee/saleor
6f28ded7e2eb354e9442d7b9c26f6c4c1c3a719f
1dbde699aaf0a2a7b80b968a76a079f16757c0f6
refs/heads/main
2023-09-03T02:12:00.604910
2023-03-29T07:05:15
2023-03-29T07:05:15
8,162,715
15,337
5,864
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from decimal import Decimal from unittest import mock import pytest from django.utils import timezone from freezegun import freeze_time from graphene import Node from ....core import EventDeliveryStatus from ....core.models import EventDelivery, EventPayload from ....payment import TransactionEventType fr...
UTF-8
Python
false
false
22,515
py
67
test_tasks.py
61
0.688696
0.673951
0
686
31.8207
88
darkreapyre/NeOS-0.0.0-00
6,871,947,703,361
8b01738e8bcaacf562e80d38955ea27024e968be
4fe0c90217656ff9f449c1278a9956d71e5769b0
/core/clients/python/api_bindings/cb2_api/objects/node_role.py
172f5911d9e9f64ce1184c058587447f2ca868f0
[ "Apache-2.0" ]
permissive
https://github.com/darkreapyre/NeOS-0.0.0-00
f7335935a058700cc7a3aff20fba203fa1d3d727
fdaddf3350edac74ee7c31f34843f0296d8e1d84
refs/heads/master
2016-09-06T20:34:18.263522
2014-10-12T00:54:17
2014-10-12T00:54:17
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Copyright 2014, Dell # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software #...
UTF-8
Python
false
false
1,648
py
490
node_role.py
58
0.615291
0.609223
0
56
27.964286
82
Walkerlikesfish/leetleet
523,986,042,418
0694183dbfaf47e38e96cce2a060beae85557bcf
3f39fd28584ede3e606438892eaa4e61e826f6c3
/leetPy/leet_131.py
aa6c34437c6028d41a23586f4dce5b1b0db4b585
[]
no_license
https://github.com/Walkerlikesfish/leetleet
d3d4e1a2554b0f1967f58819fde1cc1713d6df9a
477511951ce9a13ff87e1901559d999b7a9b38c7
refs/heads/master
2020-03-22T22:57:19.207535
2019-05-19T10:17:03
2019-05-19T10:17:03
140,780,989
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json class Solution(object): def partition(self, s): """ :type s: str :rtype: List[List[str]] """ self.n = len(s) self.res = [] self.s = s if not s: return [] if len(s) == 1: return [[s]] self.dfs(1, [0]...
UTF-8
Python
false
false
1,834
py
182
leet_131.py
181
0.442203
0.429662
0
79
22.227848
82
quynhdtn/WECDenoiser
19,172,734,044,574
4737faf2209cc38efeb777b3ca78a144383d0222
30752189f5bb42581b4fcb3ee9721903427ee767
/nn/Connection.py
c529180d7e649beb9925a21c6f5a4ece0ba1c6de
[]
no_license
https://github.com/quynhdtn/WECDenoiser
7511c87af3a226beee1bd70165845bb343e94f22
bd57d8a2408926562961f23a15bb4c604a375a73
refs/heads/master
2021-01-10T04:50:26.145725
2016-03-04T09:34:58
2016-03-04T09:34:58
53,056,487
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from nn.Functions import DotTransferFunction, SigmoidActivateFunction, WeightInit import theano.tensor as T import theano as th import numpy as np __author__ = 'quynhdo' # implement the connection between two layers class Connection: def __init__(self, scr, dst, transfer_func=DotTransferFunction, activate_fun...
UTF-8
Python
false
false
3,685
py
9
Connection.py
7
0.584532
0.581547
0
92
39.054348
136
fandipj98/Social-Media-Prediction
17,154,099,393,799
8114d2702f2c3f40443429410c1aeb0204b34e12
16404ea73768335255abe89adea850176255a3ef
/kmeans.py
393fb457aed4152c7970266f36b73667ddee4922
[]
no_license
https://github.com/fandipj98/Social-Media-Prediction
7daf5a13d73493b6c1cb4ad4eff370eee203bca4
ffa9fc1b781cdc9d55ca118351fe05b123b2a162
refs/heads/master
2022-03-27T17:17:56.418339
2019-12-11T14:14:58
2019-12-11T14:14:58
215,304,469
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import numpy as np import pandas as pd from matplotlib import pyplot as plt from sklearn.datasets.samples_generator import make_blobs from sklearn.cluster import KMeans import csv trainingSet=[] with open('data_km.csv','r') as csvfile: lines = csv.reader(csvfile) dataset = list(lines) for x in range(10000...
UTF-8
Python
false
false
2,546
py
41
kmeans.py
17
0.67282
0.653181
0
93
26.365591
95
raczandras/szkriptnyelvek
5,282,809,776,829
a65a9dad17587e5ca8d7d411f36b675be1d08359
2384ecfba2f96b44aad463360444389b1c517263
/HF/8/hangrendenum.py
8fc40851777952d835ac1570e41811f456280252
[]
no_license
https://github.com/raczandras/szkriptnyelvek
9176f511ec3552385176dd122459633d41d0db8f
efe3dec3288f71e18c48150a9c849ef34fffb766
refs/heads/master
2023-01-11T02:29:03.023309
2020-11-12T14:33:29
2020-11-12T14:33:29
296,817,986
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 from enum import Enum class Beturendek(Enum): MELYHANGOK = 'aáoóuú' MAGASHANGOK = 'eéiíöőüű' class Hangrendek(Enum): SEMMILYEN = 0 MÉLY = 1 MAGAS = 2 VEGYES = 3 def hangrend(word): mely = False magas = False eredmeny = 0 for c in word: if c in...
UTF-8
Python
false
false
771
py
64
hangrendenum.py
62
0.562005
0.551451
0
39
18.435897
67
rivrproject/rivr
18,511,309,090,514
b39c45082fdf514cf7a806179ccca4128d281b56
5f38be02781b0ee6bd3bf09ad4bf77c3b525e212
/rivr/router.py
aaef833ea63c49f9a103e797a0b7d8a22d737f27
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
https://github.com/rivrproject/rivr
a474c7bf24a8a0076fb75129ee9a657421532ac8
b4f7eb481cc28ae48169f1d3982b896b7cfd5c91
refs/heads/master
2021-07-03T01:51:48.676645
2020-11-05T18:26:03
2020-11-05T18:26:03
506,574
3
0
NOASSERTION
false
2020-10-10T15:31:51
2010-02-07T13:49:53
2020-10-10T13:51:53
2020-10-10T13:52:08
253
10
1
7
Python
false
false
import re from typing import Any, Callable, Dict, Iterable, Optional, Tuple from rivr.http import Http404, Request, Response, ResponsePermanentRedirect from rivr.importlib import import_module class Resolver404(Http404): pass class ViewDoesNotExist(Exception): pass class RegexURL(object): def __init_...
UTF-8
Python
false
false
7,652
py
47
router.py
34
0.553973
0.548745
0
282
26.134752
83
XRSHEERAN/Algorithms
8,650,064,181,024
285b475c08e748f2aa69671eb6f98ee85622c3d4
781c65db3fadb9cb9511468dc0c17e9d985297f4
/TopInterview/4SumII.py.py
76ad7414d0a84c7a66c2081dded74ac8d8dc4478
[]
no_license
https://github.com/XRSHEERAN/Algorithms
37b38a8e80c6e1b28fca5b386f654f4a3851544c
da60a684655e9c890bbf8ee0c234fc2432ad9ec1
refs/heads/master
2018-11-02T04:52:36.434798
2018-10-04T18:26:14
2018-10-04T18:26:14
113,063,020
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
class Solution: def fourSumCount(self, A, B, C, D): """ :type A: List[int] :type B: List[int] :type C: List[int] :type D: List[int] :rtype: int """ mapping={} for i in A: for j in B: temp=i+j if temp ...
UTF-8
Python
false
false
812
py
51
4SumII.py.py
46
0.380542
0.364532
0
31
25.193548
48
tiduswr/Algoritimos_P1_UEPB_CCEA_CAMPUS_VII
17,617,955,862,707
e8253915fe86f37f442bafd2fc6f8096964b1e79
8394f555a2cba1e90b2cbdd85ced0346487be8ac
/Lista 06/lista06ex08.py
1829c10b8e8e552e9b710cf1205057c943a5d7b6
[]
no_license
https://github.com/tiduswr/Algoritimos_P1_UEPB_CCEA_CAMPUS_VII
f44ad786db73aa9009dd6196e364ee363cabb692
8b74b0782a73cea32b5382a2f893615afdf16017
refs/heads/master
2022-03-10T18:22:44.697323
2019-11-21T05:09:18
2019-11-21T05:09:18
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
lin = 3 col = 6 matriz = [] somaimpar = 0 media2_4 = 0 print('=' * 50) print('{:^50}'.format('Questão 08 Lista 06!')) print('=' * 50) for i in range(lin): matriz.append([0] * col) for i in range(lin): for j in range(col): matriz[i][j] = float(input('Matriz[{}][{}]: '.format(i+1, j+1))) for i in ran...
UTF-8
Python
false
false
1,242
py
122
lista06ex08.py
122
0.508475
0.467312
0
47
25.382979
113
personalbrian/self-playing-snake
7,713,761,265,469
209465d3b8fd72e9ba1a50b8679788330aab0065
4cc751e4dc2688af3709c9ed26075f627ea33944
/venv/Lib/site-packages/IPython/terminal/tests/test_interactivshell.py
5a00780cc6cefc9720119a8c3ab708a3f82fd1f4
[]
no_license
https://github.com/personalbrian/self-playing-snake
6a485328292d4971636cc4d033839ffc16d7f6ec
db4cf9b88b73c2494c35e599c2c23faaff7a3b73
refs/heads/main
2023-04-17T08:11:06.501719
2021-05-03T08:06:32
2021-05-03T08:06:32
362,734,451
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:34ac6aa27eff0ff5eb776a5538fc557ff5ee671b2f53cf1c04680380340d80a2 size 6888
UTF-8
Python
false
false
129
py
3,892
test_interactivshell.py
3,212
0.883721
0.51938
0
3
42
75
gesco/TG_PY
16,346,645,547,972
39b3df6d2ca6edeb7e30b6fabe81d87dcd88ec3d
99a5d68411c02a78a0bb1c0a4e4d167116aca413
/02_InputProcessingAndOutput/program_0211.py
bb9b344692d31892e9456758692e29a1fd216ee9
[]
no_license
https://github.com/gesco/TG_PY
19c3fcada4d530ff065e71e12f281ee56dd08eb4
af80f15da27448603d1fececbf71b620ff3d77a5
refs/heads/main
2023-02-12T22:20:52.085426
2021-01-09T16:52:53
2021-01-09T16:52:53
323,755,566
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# Create variables to reference two strings. first_name = 'Kathryn' last_name = 'Marino' # Display the values referenced by the variables. print(first_name, last_nameg) # OUTPUT # Kathryn Marino
UTF-8
Python
false
false
197
py
7
program_0211.py
7
0.751269
0.751269
0
9
20.888889
49
zengxio/auto
13,348,758,365,297
dbfd5fdc0ae3943dbfb76e94aa290cb2cb1aaa11
1da5738176c97cc931abbc8abb9fbe1953389dc5
/autoclient/Course_system/lib/Login.py
01936eb56d8f311f6eb6224b81fbf8c602da6681
[]
no_license
https://github.com/zengxio/auto
ed25db07c513e3e3c7cec3125e39c4429de4d52b
14f101afe97ac1257a7afc804a9aac75de3a0376
refs/heads/master
2020-03-12T21:25:15.301984
2018-04-24T09:16:15
2018-04-24T09:16:15
130,827,649
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python #coding:utf-8 from Course_system.lib import Open_file class login(): def __init__(self,username,password): self.username=username self.password=password def login_func(self): userdata=Open_file.Open_file_class() read_file=userdata.read() if self.use...
UTF-8
Python
false
false
925
py
21
Login.py
21
0.571892
0.564324
0
31
28.870968
84
srio/paper-guigay-resources
12,893,491,858,132
2aedc8f56fb337227192ae45c2166de5042a0a1e
cd028ec879c4c1538aaee528d706817f5ca68412
/scripts/crystal_data.py
e830fabae8e463b3d0712b0ca584b9da0c9ab77e
[ "MIT" ]
permissive
https://github.com/srio/paper-guigay-resources
5d0b0f06618eb941d7a5c34079e2c854a334e9b9
4c7d379a975b5ae034c5595c6222d5ff94c39460
refs/heads/main
2023-03-29T23:44:29.167969
2021-04-09T08:32:44
2021-04-09T08:32:44
332,707,764
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# # example of using xraylib to get crystal data # # see: # http://dx.doi.org/10.1016/j.sab.2011.09.011 (paper) # https://github.com/tschoonj/xraylib/ (code) # http://lvserver.ugent.be/xraylib-web (web interface, but crystals not included!) # # # import block # import xraylib ...
UTF-8
Python
false
false
3,017
py
16
crystal_data.py
2
0.623467
0.591316
0
92
31.793478
102
geohot/tinygrad
1,984,274,934,195
a4886f23fd169927c420ed7e9a4982f4a0e71f86
180aa89910e8c1fc65652b26fc6be9243e5ce96b
/models/resnet.py
972fb6aa4127f8077c4be630c34c0e57fb0bbe5d
[ "MIT" ]
permissive
https://github.com/geohot/tinygrad
04521e22deb0e4cb41c3662a00ed177a5701c81c
89b529c07f8ed1eae672faa6f2940c51a153ce0b
refs/heads/master
2023-08-26T17:27:47.942097
2023-08-26T13:34:15
2023-08-26T13:34:15
305,144,746
17,772
2,343
null
null
null
null
null
null
null
null
null
null
null
null
null
import tinygrad.nn as nn from extra.utils import get_child class BasicBlock: expansion = 1 def __init__(self, in_planes, planes, stride=1, groups=1, base_width=64): assert groups == 1 and base_width == 64, "BasicBlock only supports groups=1 and base_width=64" self.conv1 = nn.Conv2d(in_planes, planes, kern...
UTF-8
Python
false
false
6,300
py
181
resnet.py
166
0.658889
0.603333
0
153
40.183007
132
Dearyyyyy/TCG
19,078,244,762,876
4712940fadd388e623fe820845d58b82aa9c22cc
ba602dc67ad7bb50133aeb312f3c6c54627b3dec
/data/3921/AC_py/508183.py
dd42196616efcbb3891deb084f98ea74bdc2c237
[]
no_license
https://github.com/Dearyyyyy/TCG
0d21d89275906157372d775f33309ce337e6bc95
7b80de16de2d3f5d95a7c4ed95d45a9e38882e67
refs/heads/master
2020-12-27T23:19:44.845918
2020-02-04T01:59:23
2020-02-04T01:59:23
238,101,032
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
# coding=utf-8 import sys def ss(s): if len(s)<2: return True if s[0]==s[-1]: return ss(s[1:-1]) else: return False n=int(input()) for i in range(n): s=[str(i) for i in input()] if ss(s)==True: print('YES') else: print('NO')
UTF-8
Python
false
false
288
py
898
508183.py
652
0.482639
0.461806
0
16
17.0625
31
andreishabanski/Labs
14,482,629,759,264
c2eda155c9391ececc646c432fe2110babfa13f1
af9d64a207a22853fe9bb02b2b326441454c68a8
/8 semester/SAIO/lab7/lab7.py
9f9ef90eb752d78f3cdf3ae7a85c64b98a88c739
[ "MIT" ]
permissive
https://github.com/andreishabanski/Labs
89f5a9a865580d03c94c56cd94bcf26ae50ef5a8
3ac775945bff5801642183c48de1e839685d5aa4
refs/heads/master
2016-03-25T19:54:54.055492
2015-05-24T06:49:20
2015-05-24T06:49:20
12,844,548
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import print_function from algoritms import DestinationCalculator from common.utils import print_matrix def main(): # table = [ # [2, 10, 9, 7], # [15, 4, 14, 8], # [13, 14, 16, 11], # [4, 15, 13, 19], # ] # table = [ # [2, -1, 9, 4], # [3, ...
UTF-8
Python
false
false
1,512
py
437
lab7.py
159
0.365079
0.201058
0
58
25.068966
117
sxu11/Inference_Stem_Cell_Dynamics
2,413,771,652,256
a2de87d4ede835f581dcc546a2b6d3f5d47f4d2e
22241442f216859e99560cbf33c75f8385c75dcd
/raw_data/diversities.py
ce9f6bcdb1043ef69943dc29ec99da2225eee18d
[]
no_license
https://github.com/sxu11/Inference_Stem_Cell_Dynamics
611274d39ebbd36ca1b67f4ec6b10dc7f005d67c
ea9ae43a86e7e48883e93284ca1cfa14e5965ac4
refs/heads/master
2020-04-25T00:56:48.869758
2019-05-24T05:47:52
2019-05-24T05:47:52
172,393,925
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import pandas as pd pd.set_option('display.width', 3000) pd.set_option('display.max_columns', 3000) df = pd.read_csv('abunds/zh33.csv') cell_types = ['T', 'B', 'Mon', 'Gr', 'NK'] times = ['1m', '2m', '3m', '4.5m', '6.5m', '9.5m'] ts = [float(x[:-1]) for x in times] cols = {} for time in times: cols[time] = [] ...
UTF-8
Python
false
false
2,542
py
11
diversities.py
9
0.580645
0.551534
0
97
25.195876
78
fperi/cdk_step_function
15,934,328,685,403
80252fe391ed28109770d64c75b898141ae2f8b1
04c9905b1fc9fe2d85aea2624a1f32b461af64f6
/source/setup.py
de6b601a15e0af485de481676a650ac9d2dde427
[]
no_license
https://github.com/fperi/cdk_step_function
1afbd00814e82ab9ce4d68f6f60d2d2d34cf4a86
b3666b099f19b7d71783942a97a3e0e9e8c4056c
refs/heads/master
2023-05-01T08:53:26.679259
2021-05-08T17:52:22
2021-05-08T17:52:22
365,563,036
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from setuptools import find_packages, setup with open("requirements.txt") as stream: REQUIREMENTS = stream.read().splitlines() setup( name="cdk_test", version="1.0", description="Test app for cdk deployment", packages=find_packages(), python_requires=">=3.6", install_requires=REQUIREMENTS,...
UTF-8
Python
false
false
343
py
20
setup.py
10
0.682216
0.670554
0
14
23.5
46
Kreedols/Koostetehnoloogiaprojekt
8,615,704,432,982
04ff9c07b4ea112a5c7574f085f7bae9b2199706
71b935c6363593cbca813ac3068b1f6591cf35b9
/home folder/b.py
483457299ab82cef7b3bd831e3a2a155a3230fec
[]
no_license
https://github.com/Kreedols/Koostetehnoloogiaprojekt
a2f41970732c0d0913a5aa1b0b21825b9d7d3adb
0b739c381efbf649470c314d39c60fd32ae1cbf9
refs/heads/master
2020-05-21T05:26:37.922579
2019-01-09T22:41:49
2019-01-09T22:41:49
84,576,993
3
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import threading from array import array from Queue import Queue, Full import pyaudio CHUNK_SIZE = 1024 MIN_VOLUME = 500 BUF_MAX_SIZE = CHUNK_SIZE * 10
UTF-8
Python
false
false
155
py
44
b.py
25
0.76129
0.703226
0
10
14.5
30
wmgroot/servicer
4,492,535,794,467
7e79f25329036dea81eeb3ca1f566b8c01ccb9f2
a749274d74531a0c5806ac672e348c157d84d37a
/test/test_config_loader.py
2982614ac3d0dc1a187898a89c25009a65bcc419
[ "BSD-3-Clause" ]
permissive
https://github.com/wmgroot/servicer
a986e92772dee9831968500b1c36c7efd1eb89e0
13313bcaed2b487848f2b483aea13e538a4484cc
refs/heads/master
2023-05-27T01:35:55.709438
2019-10-22T22:06:45
2019-10-22T22:06:45
138,642,168
3
1
BSD-3-Clause
false
2019-09-02T18:25:49
2018-06-25T19:45:07
2019-08-20T18:36:53
2019-09-02T18:25:49
239
1
1
5
Python
false
false
from unittest import TestCase, mock from servicer.config_loader import ConfigLoader class ConfigLoaderTest(TestCase): def setUp(self): self.config_loader = ConfigLoader(args={}) class ConfigLoaderClassTest(ConfigLoaderTest): def test_initialized(self): pass class MergeConfigTest(ConfigLoader...
UTF-8
Python
false
false
2,737
py
52
test_config_loader.py
45
0.505298
0.502009
0
97
27.216495
96
Harry887/ml
11,708,080,868,378
86bb0d3be3d3d94f51ce030178da24ff53807670
d92e4a0be6e31129fddfcb77453ea845a9ca4100
/Demo1/optimizer.py
2e6c73cbd6cfa339c0921e09eb8bea571cdd06b4
[]
no_license
https://github.com/Harry887/ml
13f22650136dbef1417094431c5caf2b1c629b13
539984fd9bfee9bffda5032ae0d312c0c75a0fbd
refs/heads/master
2020-04-23T07:32:39.299294
2019-02-16T13:54:02
2019-02-16T13:54:02
171,009,211
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import torch import torch.utils.data as Data import torch.nn.functional as F import matplotlib.pyplot as plt LR = 0.01 BATCH_SIZE = 32 EPOCH = 12 # fake dataset x = torch.unsqueeze(torch.linspace(-1, 1, 1000), dim=1) y = x.pow(2) + 0.1*torch.normal(torch.zeros(*x.size())) # plot dataset plt.scatter(x.numpy(), y.nu...
UTF-8
Python
false
false
1,449
py
5
optimizer.py
5
0.612836
0.590752
0
48
29.208333
82
RomanKamen/RomanKamen
8,821,862,866,787
e5c5c8703b301eab55ee41c3971d6f9e642781cf
1b49b0cb4d9c1e6805f1153eab9658dc733d4fd4
/GameEngine/player.py
2ae3310ce14bd8fc7390b3a000a03c282ce50107
[]
no_license
https://github.com/RomanKamen/RomanKamen
b308cc820df990de05cc84f894906c00b844de88
1c8b8a5d6dbc8dc5e03f5ff4453cfe772c60a79a
refs/heads/master
2020-07-09T08:14:50.380811
2019-08-24T01:02:39
2019-08-24T01:02:39
203,923,330
0
1
null
null
null
null
null
null
null
null
null
null
null
null
null
from GameEngine.func import deal_damage, game_initialized_only # TODO: end_act # TODO: timer decorator class Player: def __init__(self, deck): self.game = None self.deck = deck self.client_id = 1 self.side = '' self.hp = 30 self.armor = 0 self.mana = 0 ...
UTF-8
Python
false
false
1,039
py
16
player.py
16
0.557267
0.552454
0
46
21.586957
62
jhyrkas/canne_synth
18,605,798,343,209
4d1b0d90d93896facfd971aa4fc4ea630c1e8278
480128c00099fdba1280172e18039e497dcffb92
/probably_useful_for_author_only/comp3.py
0e26e7b8b8dbc282fbfd11f27ff5397e23b5d0d8
[]
no_license
https://github.com/jhyrkas/canne_synth
acf5cff59f5d7d48967ee3c508204ee4739f1e43
e780c7b332b00a948a09e6ff1c985d99796013fb
refs/heads/master
2021-06-11T03:09:42.653769
2021-06-03T21:28:36
2021-06-03T21:28:36
194,894,284
0
0
null
true
2019-07-02T15:56:39
2019-07-02T15:56:39
2019-06-12T07:33:23
2018-09-27T01:12:58
14
0
0
0
null
false
false
import numpy as np import synth_architecture as sa import sounddevice as sd import soundfile as sf import librosa import os import scipy np.random.seed(20855144) #np.random.seed(212) path = 'comp3_audio/' if not os.path.exists(path) : os.mkdir(path) # ARCHITECTURE a = sa.Architecture('root', np.zeros(8)) a.add_ne...
UTF-8
Python
false
false
2,626
py
17
comp3.py
16
0.606626
0.573877
0
79
32.240506
101
idontknowinder/EVE-Prosper
11,905,649,364,889
03b4cb755c2ab3c5d93bd6a9b12b8efed9bca37a
15ce0e08d87a602cdbc49e8ebebcbe4a0151f3fd
/Scraps/central_dumpcrunch.py
c1cf4a00cb5ec1b9d504bc413076850a44db2abb
[]
no_license
https://github.com/idontknowinder/EVE-Prosper
74f7fceedfe08ef0392c78b69537550ac6272d11
6d103ace8e2f8cb332fcee83ce08035dc7dc87b4
refs/heads/master
2021-01-19T17:17:27.909668
2014-05-11T20:24:43
2014-05-11T20:24:43
null
0
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/Python27/python.exe ##Try 2.0 for processing dump files for loading SQL file ##Designed for UNIX environment ##For win/DOS, install cygwin: http://www.cygwin.com/ ## CYGWIN + MYSQLDB: ## --Install all the DB/Python modules for cygwin ## --run: easy_install mysql-python ## --Verify with python terminal: import MyS...
UTF-8
Python
false
false
10,383
py
58
central_dumpcrunch.py
29
0.645093
0.638255
0
243
41.728395
203
projx/vm-scripts
19,112,604,487,642
633fdeac1e079414d63ecb2942e8cbac49941703
e957b965a397c4c1ddfefb8fc0548fdd6726b9ba
/vm-power-mgr.py
26f9cae96e778c9336e348b90119c5ab1cdd03c4
[]
no_license
https://github.com/projx/vm-scripts
28eb18026f633ba118e26d55b640c240c9de384f
1860d80dade72b176da05f8737c4b3226a589d07
refs/heads/master
2020-05-01T12:39:04.321812
2019-03-31T20:36:16
2019-03-31T20:36:16
177,471,490
2
0
null
null
null
null
null
null
null
null
null
null
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: Kelvin W # Date: 2019 # Description: A power saving script for my or your Dell PowerEdge ESXi homelab. # It can be used to power down, i.e. suspending VMs and shutting down # the host, then powering it back up via IPMI a...
UTF-8
Python
false
false
17,700
py
2
vm-power-mgr.py
1
0.596723
0.594633
0
515
33.370874
168
mlautman/NN_MNEST
9,105,330,697,142
9995d32d752a0da0eb65af3b9e6f2500397f3e21
f8190ab585debc67632dea51fc66e9b52fb894ed
/src/im_t_wrap_bu.py
94f6ddb3b2cfeda8116781c4fbdc5629d3aa16e3
[]
no_license
https://github.com/mlautman/NN_MNEST
a72ba2ab2eba25fbcb4c26d9696bd9c5b5b99888
38a59cb8de9bf4b6287d6e45737c1f48f3d9a2a1
refs/heads/master
2020-05-20T12:19:06.509973
2014-04-25T18:28:32
2014-04-25T18:28:32
18,905,714
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
from __future__ import division import numpy as np from math import sqrt from src.show_images import show_image_np # Things we want to output while we run the algo # sum of get_z_delta for each run (sequential) # image of get_z_delta # Image animation as gif. def _initial_z_t(z_shape): return np.matrix([0]...
UTF-8
Python
false
false
2,339
py
17
im_t_wrap_bu.py
14
0.519025
0.504489
0
98
22.867347
68
opennorth/open511
12,421,045,444,391
80c255c1f984223d927fd7f0ceb80cadb587e4dd
91d950c5522baf7b47ca113d413c4cb35ec9a007
/open511/utils/serialization.py
7a93d15f1dcadad040f52350824361144901ab67
[ "MIT" ]
permissive
https://github.com/opennorth/open511
7f3bde31746717450dc73e2873d9e8d2cc533874
3d573f59d7efa06ff1b5419ea5ff4d90a90b3cf8
refs/heads/master
2020-06-05T00:55:18.333600
2015-11-17T23:33:20
2015-11-17T23:34:30
12,960,085
1
0
null
null
null
null
null
null
null
null
null
null
null
null
null
import json from lxml import etree XML_LANG = '{http://www.w3.org/XML/1998/namespace}lang' XML_BASE = '{http://www.w3.org/XML/1998/namespace}base' GML_NS = NS_GML = 'http://www.opengis.net/gml' NS_KML = 'http://www.opengis.net/kml/2.2' NS_PROTECTED = 'http://open511.org/namespaces/internal-field' NS_ATOM = "http://ww...
UTF-8
Python
false
false
1,823
py
32
serialization.py
19
0.606692
0.586396
0
65
27
67