blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
9096ed4b68d2bef92df7db98589e744ddf3efad0
24cc3a219fcda04bc9d4699ddbd287ff5fa7c1f8
/examples/bug_split.py
a0970b6f642dbabdfe74b9191c7550931ba801db
[ "MIT" ]
permissive
abey79/lines
eb43ed28806abded86e7c96a4609569071b3b122
02b43eac05638081ff42594b67821f625003e3aa
refs/heads/master
2022-02-12T12:10:39.873368
2022-01-28T18:06:15
2022-01-28T18:06:15
214,864,153
46
4
MIT
2022-01-28T18:06:16
2019-10-13T17:35:35
Python
UTF-8
Python
false
false
467
py
bug_split.py
import matplotlib.pyplot as plt from shapely.geometry import MultiLineString, Polygon mls = MultiLineString([[(0, 1), (5, 1)], [(1, 2), (1, 0)]]) p = Polygon([(0.5, 0.5), (0.5, 1.5), (2, 1.5), (2, 0.5)]) results = mls.intersection(p) plt.subplot(1, 2, 1) for ls in mls: plt.plot(*ls.xy) plt.plot(*p.boundary.xy, "-...
c99f1333c5ca3221e9932d9a9ba1d95a77924f0d
a5349d4fe26ff631e9804e05692a466b5db77929
/hacker_rank/2d_arrays/a.py
8ab2e5450fa3ca54e3a24f5933378f8a41b5b6f4
[]
no_license
jef771/competitive_programming_practice
76c7e553c97c80309a4a279ac4b651f1c70d0500
65a0d41350fe535c5d20c51d7c1b452c58483530
refs/heads/main
2023-04-20T20:38:52.400418
2021-05-06T00:40:45
2021-05-06T00:40:45
290,401,748
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
a.py
import sys import math def get_max_sum(arr): max_sum = -math.inf for i in range(1, 5): for j in range(1, 5): temp = arr[i][j]+arr[i-1][j-1]+arr[i-1][j]+arr[i-1][j+1]+arr[i+1][j+1]+arr[i+1][j]+arr[i+1][j-1] max_sum = max(max_sum, temp) return max_sum def main(): sys...
78c9f92349ba834bc64dc84f884638c4316a9ea4
2f557f60fc609c03fbb42badf2c4f41ef2e60227
/Validation/Performance/python/cmsPerfSuite_runOptions.py
2874d4908af407c502eeaf11437438528847d7f1
[ "Apache-2.0" ]
permissive
CMS-TMTT/cmssw
91d70fc40a7110832a2ceb2dc08c15b5a299bd3b
80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7
refs/heads/TMTT_1060
2020-03-24T07:49:39.440996
2020-03-04T17:21:36
2020-03-04T17:21:36
142,576,342
3
5
Apache-2.0
2019-12-05T21:16:34
2018-07-27T12:48:13
C++
UTF-8
Python
false
false
1,714
py
cmsPerfSuite_runOptions.py
INPUT_MINBIAS = '/build/RAWReference/MinBias_RAW_320_STARTUP.root' INPUT_TTBAR = '/build/RAWReference/TTbar_RAW_320_STARTUP.root' puSTARTUP_TTBAR = '/build/RAWReference/TTbar_Tauola_PileUp_RAW_320_STARTUP.root' relval = { 'step1': { 'step': 'GEN-HLT', 'timesize': (100, ['MinBias','TTbar']), 'igprof': (50...
c6b261a09b2982e17704f847586bbf38d27cb786
922d5487bc18dd4d044d41d6b81cd14eb952c591
/devel/lib/python2.7/dist-packages/sin_commander_action_server/msg/__init__.py
a4fddb76bbbb9395701e1d77636ddebc10a8679f
[]
no_license
hanbincho/ros_ws
21b747f115cee85a3b8a578028ac44e069721c31
d92feebd845a69bb8535e8c48592caf2b94d6497
refs/heads/master
2020-04-02T15:45:16.395227
2018-11-07T04:09:07
2018-11-07T04:09:07
149,820,985
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
__init__.py
from ._sinAction import * from ._sinActionFeedback import * from ._sinActionGoal import * from ._sinActionResult import * from ._sinFeedback import * from ._sinGoal import * from ._sinResult import *
f4306f80330850415b74d729384f360489644e39
e66e15ac47930bc37b06fbc830bd3a08b1ed9ca4
/cellxgene_schema_cli/tests/test_schema_compliance.py
979940defb49ccb5c2c924d9f9345a82e2363944
[ "MIT" ]
permissive
kishorikonwar/single-cell-curation
68aa8655c09b734f3c3bf5f571fea1d4d373ccb4
2736bc224c9cb7b4174fe1a3540434f53f9fe960
refs/heads/main
2023-09-04T05:22:49.601273
2021-10-19T02:46:34
2021-10-19T02:46:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
46,199
py
test_schema_compliance.py
import unittest import numpy import pandas as pd import fixtures.examples_validate as examples from cellxgene_schema.validate import Validator from cellxgene_schema.write_labels import AnnDataLabelAppender # Tests for schema compliance of an AnnData object class TestValidAnndata(unittest.TestCase): """ T...
ad3a7221883a847fc9d26097c3801973cbbda38e
4ef92cba77e6b13427b16b1c45359fa013c4da0b
/Income/urls.py
85f87c1cc5b422965f2e2b83506edc659387f595
[]
no_license
joy1954islam/Daily-Income-Source-Project-Using-Django
8089e8cff8debb440ba59f59bc5e0e26bdf66eef
c5d8b6795b352eed3bc6efd69b1543760351b981
refs/heads/main
2023-01-15T15:31:23.886730
2020-11-11T06:32:49
2020-11-11T06:32:49
310,912,486
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
urls.py
from django.urls import path,include from Income import views urlpatterns = [ path('IncomeHome/',views.IncomeHome,name='IncomeHome'), path('IncomeCreate/',views.IncomeCreate.as_view(),name='IncomeCreate'), path('IncomeUpdate/<int:pk>',views.IncomeUpdate.as_view(),name='IncomeUpdate'), path('IncomeDel...
9e7dee9c0fd4cd290f4710649ffc4a94fedf0358
45ae442af9b2a3522b55455250fbab2980189834
/calc.py
efb5da01eb8da5a0e40e14b29aeef4a8b97fe430
[]
no_license
aytidaureh/belajarpython
e4e866c64682fe63d7f934555a1c71e0e0b5e301
5042f2ce7d40d74461695a345079492747debca5
refs/heads/master
2021-01-11T18:34:38.024806
2017-01-20T17:16:39
2017-01-20T17:16:39
79,555,995
0
0
null
null
null
null
UTF-8
Python
false
false
1,813
py
calc.py
import os pil = 'y' while(pil=='y'): os.system("cls") print("===============================") print("== KALKULATOR SEDERHANA ==") print("===============================") print("MENU-UTAMA : ") print("1 Penjumlahan") print("2 Pengurangan") print("3 Perkalian") print("4 Pembagia...
180f7f0ade9770c6669680bd13ac8f2fd55cc8c7
79b45608e3eca2a38a26f1d6f4ec57be1f063abb
/guia2_whiFunEjercicio2.py
9ca910df02f25c1f140a4ca17b11cad89c05607b
[]
no_license
devprofe/python
a3bd593f805083cc61921d6615f65c136542429a
9d1cb2aea81d295c4f63f0178218fa00b48d7a5a
refs/heads/master
2022-11-12T23:58:17.162501
2020-07-08T17:39:23
2020-07-08T17:39:23
272,847,732
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
guia2_whiFunEjercicio2.py
def raizCubica(numero): r = pow(numero,(1/3)) return r numeros = [] raices = [] for x in range(5): numeros.insert(x, float(input("Ingrese Numero: "))) raices.insert(x, round(raizCubica(numeros[x]),3)) print("Numeros: ", numeros) print("Raices: ", raices)
97ebdeada3d797a971b5c3851b75f9754595f67c
06f9b08a2745a300506a7426ebb86ff446ccfc40
/setup.py
cd0abfa5e174a91ac3c05b3ad56b10ba84525944
[ "Apache-2.0" ]
permissive
poush/TF_SpeechRecoChallenge
831535bec05be7167939613183e30b121db456ab
39d56c91bcdbfca9d451548d0dd66cd7152df188
refs/heads/master
2020-06-03T00:13:15.020846
2019-06-11T12:08:41
2019-06-11T12:08:41
191,357,029
0
0
Apache-2.0
2019-06-11T11:23:45
2019-06-11T11:22:38
Python
UTF-8
Python
false
false
224
py
setup.py
""" Python package setup file. """ from setuptools import setup setup( name="TF_Speech", version="0.2.0", extras_require={'tensorflow': ['tensorflow'], 'tensorflow with gpu': ['tensorflow-gpu']}, )
9f34bf3a0bb24db428b7af1a354aec1d3a72df98
55f5dba6af42d159db82ee17cb5272d7c8708431
/backend/syntheticus/registration/serializers.py
df67b9cd57c43561ac4a48dd4facd50566d86aa8
[]
no_license
DHvarchilkova/syntheticus
1529de480dd676c277dd389bc22582b72cec7a1e
3f15093adfb0c1f2b592897773aef86980ff9ff1
refs/heads/desi
2023-02-14T16:56:51.429773
2020-04-23T10:33:30
2020-04-23T10:33:30
266,548,772
0
0
null
2021-01-06T03:13:53
2020-05-24T13:40:11
JavaScript
UTF-8
Python
false
false
3,293
py
serializers.py
from random import randrange from django.core.exceptions import ValidationError from django.contrib.auth import get_user_model from rest_framework import serializers from rest_framework_simplejwt.serializers import TokenObtainPairSerializer from .models import EmailValidation from ..emails.models import Ema...
f19fcc31ea85b2968392f6495dc336eeb67dfdb6
88b7175424356bc6bc7a17ddadf8192e06227be3
/practice_2.py
7e525f771c4b6752de908a5fbb27b6eb624c66b1
[]
no_license
nanaji0133/Data-Structures
8e66e2c839abbcfd33ca0cf5d0629a43768ae38a
2d1911b164d245ca7f563614b45fbedbc8179e41
refs/heads/master
2022-11-07T03:37:52.135356
2020-07-06T14:16:02
2020-07-06T14:16:02
277,561,592
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
practice_2.py
def logger(msg): def log_msg(): print(msg) return log_msg l = logger("hi") l() # class Employee: # def __init__(self, name): # self.name = name # class Developer(Employee): # def __init__(self, name, programming): # super().__init__(name) # self.programming = pr...
c2a4320943fff145deae105101cc7993dbb7de23
5daca0bdff83af177e548db044dce551e5dc50f3
/test.py
a9daa729f85a775442bd3e5ef2c38c5086173bfd
[]
no_license
ueu2715/python
74453c82af43ba102cc045bcd71fcc02181b1839
4fe51fb46b30150f28230a1b5c60f806df6cb096
refs/heads/master
2021-01-17T14:57:30.182645
2017-10-12T06:31:56
2017-10-12T06:31:56
47,885,037
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
test.py
import random a = '123' print (a[2])
d0c655c7d492943d73a035b17fdb396580804beb
4366f2f575abc93196f9a5811c9b78f216ee77d6
/BreadthFirstSearch 1:25:2018/Pathfinder.py
871f262f116c9b4ef69d472dd7a1ceee76fc3ce6
[]
no_license
anthonyescobar/SampleWork
4fb3cacf628b588d9e25580ef966ee651991be93
86e547c695d5915850f58395574010dc438d167e
refs/heads/master
2022-02-05T09:12:57.299699
2022-01-20T22:28:02
2022-01-20T22:28:02
46,293,414
0
0
null
null
null
null
UTF-8
Python
false
false
4,115
py
Pathfinder.py
''' Name: Anthony Escobar The Pathfinder class is responsible for finding a solution (i.e., a sequence of actions) that takes the agent from the initial state to the optimal goal state. This task is done in the Pathfinder.solve method, as parameterized by a maze pathfinding problem, and is aided by the Search...
5d2c665bfa06f0e4f2c7dd41b731e8750d2ab1fa
3425c2fc9287d5dbe82bc93ea7fcf6f1b551c59a
/tests/dev/test_horoscope.py
048e3fc62c49cd0ab32efe322539a8ab41ac0630
[ "MIT" ]
permissive
comp-490-group-5/yoda
2cbb8f3c001f8c280bbf509afa89b6728e53e57e
cd7ece2832164b6d3e2ecd96da5ed4cf166d9ec9
refs/heads/master
2021-06-14T10:03:17.961426
2019-05-08T02:34:11
2019-05-08T02:34:11
178,211,687
1
1
MIT
2021-03-31T19:01:01
2019-03-28T13:42:09
Python
UTF-8
Python
false
false
1,213
py
test_horoscope.py
# coding=utf-8 import sys from unittest import TestCase import mock from click.testing import CliRunner import yoda from requests.exceptions import ConnectionError def function_with_connection_error(): raise ConnectionError() class TestHoroscope(TestCase): """ Test for the following commands: ...
8f202aae381bddbdd20ff8aedabc0cbe5352eb9a
00545fdacdeffd76d242518423de89f0ca0d6f1c
/pipeline.py
3a038403c1807d6190f269520f5e3054b0b31c4e
[]
no_license
krockamichael/bachelor_thesis
de7df7653407c7dccd64924719330669bd8cadc6
2444f693a67f5973716f9ab0800395a81982fdda
refs/heads/master
2022-11-12T02:58:50.201553
2020-06-28T13:56:21
2020-06-28T13:56:21
249,966,713
0
0
null
null
null
null
UTF-8
Python
false
false
3,528
py
pipeline.py
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' from context_paths.module_handler import ModuleHandler from utils import ClusteringLayer from keras.models import load_model import numpy as np def java_string_hashcode(s): # Imitating Java's String#hashCode, because the model is trained on hashed paths h = 0...
2a398dfbb4851dc2f0d5f22288ead82d69d8ee5d
8f44e497502ebd9fd2f35bf8df9252f5ed7a65c0
/stat_reader.py
80135b2e4bbdb555160c66a2947ac94848d66938
[]
no_license
cfarbs/Protein_conformation
e70ac4c6ed75559b65cbbdd7839039d31ac009fb
dc38d334055bed2f571cdab0a6354213d95fffc9
refs/heads/segment_p2n_avg
2021-01-20T19:27:26.539233
2016-07-19T23:38:26
2016-07-19T23:38:26
63,729,341
0
0
null
2016-07-19T21:41:34
2016-07-19T21:30:55
Python
UTF-8
Python
false
false
1,566
py
stat_reader.py
#!/usr/bin/env python import pickle import numpy as np import matplotlib.pyplot as plt #infile = input("enter the set of features from the combo tests to examine") #infilestr=str(infile) #print (type(infilestr)) epochs = np.arange(0,5000,500) savedir = "combo_train_graphs/" data = pickle.load(open("combo_80.pkl","rb"...
01bde569155a7953bcf37bdeeffd8d59a2c012ae
d214cc88212175f319e05c4d98477d34eb009f88
/dj_vue/login_app/login_views.py
81deb7ae4fb453a025fefd82aac25aa65d89a06f
[]
no_license
sunflowerLan/apiTest_plantform
015b42f6dce08045ccfb71a411beee4b03f2b402
015927cc77a618f0e559d6c5de936c5fbb6836d5
refs/heads/master
2021-07-10T12:29:39.164167
2019-03-12T06:44:07
2019-03-12T06:44:07
149,781,282
0
0
null
null
null
null
UTF-8
Python
false
false
893
py
login_views.py
import json from django.http import JsonResponse, HttpResponse from django.shortcuts import render # Create your views here. users = [ {"name": "test1", "pwd": "test1"}, {"name": "test2", "pwd": "test2"} ] def index(request): return render(request, 'login.html') def login_action(request): if request...
45bcd14202db3c27e76a4d6dd58e322d3c2e1bf2
4e3a6a49ac00563f73f84fefc8f7a0e2d7946a03
/Jumptopy/chapter.05/ㅂㅈㄷㅅ.py
44e5e8d99addb4508a3b3bbd261be5e6c2e09bcd
[]
no_license
ffffffuck/Jumptopy
969e409499abc0c0dc5e87eebfa97ec75cbf1a1e
fd300437e28a9edfa82be9c7cc1ce30d2616124d
refs/heads/master
2021-09-06T16:00:10.278004
2018-02-08T08:17:48
2018-02-08T08:17:48
112,128,647
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
ㅂㅈㄷㅅ.py
def sub(a,b): return a-b def mul(a,b): return a*b def dev(a,b): result = a/b return result def sum(a,b): return a+b while True: i = int(input("계산기 모드를 선택하세요.\n1.덧셈\n2.뺄셈\n3.곱셈\n4.나눗셈\n5.프로그램종료")) if i == 1 :z=sum elif i == 2 :z=sub elif i == 3 :z=mul elif i == 4 :z=dev elif ...
48155ea21d0a0ca672b5c3eb818a81e93dc4b5e3
828f37596df16a87cce465a36798190230b78c94
/pass.py
9f84933aff51fa6bb0d78c2809eb219b249a62b1
[]
no_license
naveentnair96/machine-learning
d8e4005106ead9b2447c31e80776acb7a6f3d95d
57668ca3259ebee5921ad1622b195ca85ac6051c
refs/heads/master
2021-07-17T18:42:31.122606
2017-10-24T05:48:07
2017-10-24T05:48:07
108,081,203
0
0
null
null
null
null
UTF-8
Python
false
false
55
py
pass.py
var1=int(input()) if(var1<6): pass else: print(var1)
b141ae9600d765db96ef2c426f5bf2b8365f5bf6
f1f2d28ddb873525a456208cb54987f8470e984f
/shop/views.py
b5e279f996f46a7915907e818b595527d1abce8e
[]
no_license
SabinaMih/PhonesPartsAndRepaires_Website
59560ac0f21a67b6211fe20a021bff3006c14dfe
8eee8c66e11a34c8ee687618cfa31aeb3c2fbab6
refs/heads/main
2023-08-06T00:15:37.173007
2021-09-13T15:45:41
2021-09-13T15:45:41
405,928,813
0
0
null
null
null
null
UTF-8
Python
false
false
1,821
py
views.py
from django.shortcuts import render, get_object_or_404, redirect from .models import Category, Product, Review from .forms import ReviewForm from django.core.paginator import Paginator, EmptyPage, InvalidPage from django.utils import timezone from django.views.decorators.http import require_POST def allProdCat(reque...
108bef9856ff608a62f1f3abb6fee4e64dbf4c61
c49c540cc2e74f906b31662cb040e667cd19fdc3
/task.py
fa955a0bf52df86aa0820c9c35e17e50c3c82b03
[]
no_license
gui1bin2/donten-Jddddd
ba0f7f172d3af52b0978653783592da0df2bfc5b
b1857e3af4adee600f8135460a85e2cc7d1075c2
refs/heads/master
2020-12-30T10:49:55.516151
2017-10-22T09:48:40
2017-10-22T09:48:40
98,863,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,323
py
task.py
# -*- coding: utf-8 -*- #测试 import pandas as pd import networkx as nx df = pd.DataFrame([['geneA', 'geneB', 0.05, 'method1'], ['geneA', 'geneC', 0.45, 'method1'], ['geneA', 'geneD', 0.35, 'method1'], ['geneA', 'geneB', 0.45, 'me...
1816d7a2494da9b7f23b4dee39da286cba7b905e
3f81ec7a7d0767a4a4b79f0f846c59515547e9fc
/infer.py
9674b256422c9f47446539435fc08cf0e2b0a665
[]
no_license
lllsiriuslll/font_generation
32382ca85c618e78ff44f9e3de7bc4bdca98a20c
8ba66a65e03fb08b2332fe9ecdfd1691a5fa623f
refs/heads/master
2021-01-05T05:27:18.141990
2020-02-19T22:22:03
2020-02-19T22:22:03
240,896,531
5
0
null
null
null
null
UTF-8
Python
false
false
3,801
py
infer.py
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import import torch import os import argparse from model.unet import UNet from model.utils import compile_frames_to_gif parser = argparse.ArgumentParser(description='Inference for unseen data') parser.add_argument('--model_d...
0369baeb5e9a7f677e64e81598c79f7607bb348f
5dc3097686530bb80ef69e2382eaec827f2fe282
/DMP.py
2b7c910f838195ccb3fb776c68a06b6de5263e39
[]
no_license
zmadmani/Dynamic-Primitive-Movements-Project
01b1e4cc99280d898736560427ef7bd2d85f6947
20f3788da98ed55d9fa1cb4a817028645968ca9d
refs/heads/master
2021-01-22T16:10:06.998932
2016-09-21T05:25:19
2016-09-21T05:25:19
67,570,019
0
1
null
null
null
null
UTF-8
Python
false
false
6,645
py
DMP.py
import math import numpy as np from functionApproximators import interpolate_function from functionApproximators import GBF # Parameters ALPHA = -1*math.log(0.01) # Alpha that leads to 99% convergence T = 4 K = 70 D = 2*math.sqrt(K) numPoints = 40 numFuncs = 40*2+2 centers = [] widths = [] curr = 1 width = 1.0 for i in...
6919edef7d8426d3893e442569f76b1bde816b4f
b5e82944f4db5e992ce124e4d4eb6affe41ea4fb
/dialogflow/log_capturor/test.py
4bd94838ab42bf4768086d65f13e2331ab18cd41
[]
no_license
cubature/jobs_final_internship
764b50fcc55e39dde816d7317ba6088496f148af
4adb4665014407a97214c3c5a9d1e49f8e1c6e38
refs/heads/master
2020-03-26T21:37:15.732195
2018-08-20T11:12:58
2018-08-20T11:12:58
145,398,688
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
test.py
import requests import json import pprint url = 'https://api.dialogflow.com/v1/query?v=20170712' token = 'd5106a7a7d2f46dd9de001c7be158290' headers = { 'Authorization': 'Bearer ' + token, 'Content-Type': 'application/json' }
fdf1ae66549ae8efd6aaaad41e651c11b9ee4745
26003dd6c77a18af27aaa2b1c0357e33bad70d1f
/Problems/LeetCode_070_Climbing Stairs/LeetCode_070_Climbing Stairs_1.py
4006439dfbb0b907a92b70552130db46c21f8918
[]
no_license
amosricky/LeetCode_Practice
a607671fb4806e9d15a62df10be580e76206a257
beceb905b6b03571ad16f6a780e8c09c3f475e30
refs/heads/master
2020-09-08T22:04:48.823842
2020-07-25T08:23:22
2020-07-25T08:23:22
221,255,183
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
LeetCode_070_Climbing Stairs_1.py
class Solution: def climbStairs(self, n: 'int') -> 'int': if n <= 2: return n else: return self.climbStairs(n - 1) + self.climbStairs(n - 2) myClass = Solution() result = myClass.climbStairs(6) print(result)
75c234e7b881d90442a6f268e504ed88933eb597
c25ebdfb00183bc52612cd6e2cfc31776f4a58c5
/stochastic_agent/backtester/components/parallel/policy.py
9d002478e9c165aeebfbd8837c4586f7fd4b3453
[]
no_license
kivo360/concurrent-rl-training
ee9655a2e4f37c193a3f39c3d753dbc6db8bcf58
c549cb88f6b11f20947c267bee797e6e9284b525
refs/heads/master
2022-12-11T14:52:49.092494
2019-07-30T16:56:20
2019-07-30T16:56:20
199,372,363
24
4
null
2022-12-08T05:56:37
2019-07-29T03:34:41
Python
UTF-8
Python
false
false
357
py
policy.py
from ray.rllib.utils.policy_client import PolicyClient policy_client = PolicyClient("http://localhost:9900") def start_episode(): return policy_client.start_episode() def get_action(episode, obs): return policy_client.get_action(episode_id=episode, observation=obs) def log_reward(episode, reward): polic...
f6db28ec474ecf31752b416efbfc1cee6618f850
b9fbe0907389e5968ecae493e44484707bbaf9b8
/pytest/Basics/factorialfunc.py
aa7f74efbd6bd3199f72b628f6b816a3be218bc8
[]
no_license
mentor22/PyTest
05dc69af92d4884884ac354206588328b569cfd0
241700c2371ad69baaf54546b1b0c8c376c23df6
refs/heads/master
2022-12-01T18:09:07.431651
2020-08-22T07:34:10
2020-08-22T07:34:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
factorialfunc.py
def fact(n): f=1 for i in range(2,n+1): f*=i return f factorial=fact(int(input("Enter a number : "))) print(factorial)
35592f758b8545d92a5340aa358dd097a989995b
fde7c2ee8bf826f83d23f7b8c1ee54298766ab7b
/smokey/hdfs/hdfs_application_runner.py
10f662b5d8afa46b122ba271ad53544030ab2cf6
[ "Apache-2.0" ]
permissive
gkesavan/hdp-smokey
0875e3d985aba566275c996bb106fcb73b73a440
b60c6941d77b66b4f84747d5fe10c972db88f7f7
refs/heads/master
2021-06-17T02:56:26.010405
2017-04-24T11:21:45
2017-04-24T11:21:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,023
py
hdfs_application_runner.py
import re import glob import core.application_runner as runner class SparkRequestError(runner.ApplicationRequestError): pass class MrRequestError(runner.ApplicationRequestError): pass class SparkHdfsTestRunner(runner.SparkApplicationRunner): def _get_application_args(self): example_jars = glo...
3be864797085c215454cae0b463c240f372adcfd
a7e38ad93f30d78f9853f890bfe8d6273c4bf7d0
/S2C16.py
2f7d7c7b83cf65106761afca149cc2e5cb0c146e
[]
no_license
Trishulya0112358/Cryptopals_Solutions
786f1f9219e4d57dced1ed18aac217db581b6255
337119d550efe3d3aed2ba624c75d5496c3855ec
refs/heads/master
2022-08-31T09:33:04.952822
2020-05-27T18:04:06
2020-05-27T18:04:06
267,390,750
0
0
null
null
null
null
UTF-8
Python
false
false
2,261
py
S2C16.py
from random import randint from Crypto.Cipher import AES from binascii import a2b_base64 from fractions import gcd def unpad(planun): pl=ord(planun[len(planun)-1]) for i in range(len(planun)-pl,len(planun)): if ord(planun[i])!=pl: return planun return planun[:-pl] def enfunc(plaintext,key,iv): lf=(l...
e8694f8cf7612c99cff768701fa66e223a07b4c1
3bf257448a4d8e5ab8dd89e1aff485de4a38e5b5
/Server/app/api/views.py
0417770bca800f2be9e30a694d624baffa9846e5
[]
no_license
kazaamjt/HIMOS
d7b5e5ae09cb8e90333b7c3602632af67dea8a6d
df0e0c0d88e7d70b7fdfad00ed43a762ea0de1a7
refs/heads/master
2021-07-09T22:10:57.857568
2017-10-10T10:04:32
2017-10-10T10:04:32
106,398,970
3
0
null
null
null
null
UTF-8
Python
false
false
2,692
py
views.py
from flask import request, json, session from Server.app import redis from Server.app.api_utils import fail_with, reconstruct_computer from Server.app.measurements_redis_adapter import ComputerMeasurementsRedisAdapter from Shared.HardwareObjects import Computer from . import api @api.route('/newest/<node_identifier>...
ddb0b851ab68935853c78ec6d54a82396b53bda3
937c8c53ed65c5592e0a0656627335cb4202f79e
/test.py
c06f5cfe83afee9a3de5d302f8f9e95b02f7cee9
[]
no_license
Tokkiu/pySpider2NBA
a835c286820fb461123886e30b59ced9129836ce
c621dc5223755a717839b6907bdeb6e823635b09
refs/heads/master
2021-01-12T11:41:55.705435
2016-10-29T05:16:41
2016-10-29T05:16:41
72,265,904
0
0
null
null
null
null
UTF-8
Python
false
false
3,352
py
test.py
# _*_ coding: utf-8 _*_ """ test.py by xianhu """ import re import random import logging import datetime import spider logging.basicConfig(level=logging.WARNING, format="%(asctime)s\t%(levelname)s\t%(message)s") # 继承并重写Parser类 class MyParser(spider.Parser): def htm_parse(self, priority, url, keys, deep, critic...
b6adbaa3d1ba09d013b13398605697dca8990fe7
7b74ac6501e89d32eb46f07a99d84531fba9cc52
/model/hyper_qa.py
9d4d3618ba25c47bfb91fb9b5b3b9528da165102
[]
no_license
svetli-n/WSDM2018_HyperQA
3580889966f28ddecb9c8b4f99132a682b5ac8ce
2ac5dbfc9c22934edcd9c865a93d85d45c1b58d0
refs/heads/master
2020-03-31T21:26:38.827938
2018-11-16T17:40:41
2018-11-16T17:40:41
152,580,848
3
1
null
2018-10-11T11:29:23
2018-10-11T11:29:23
null
UTF-8
Python
false
false
20,455
py
hyper_qa.py
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division import os import pickle import timeit from typing import Tuple, List, Dict from tqdm import tqdm import numpy as np from collections import defaultdict from sklearn.metrics import accuracy_score from datasets.Base import Bas...
d6d7f74e367e10e113349ebaa9b3dded3aa311f3
ffe6833e20f137f17d44edd4ef53605bc325390f
/cages/.shared/config_resource_sqlserver_1.py
040e7935912d975853fa48e22ea86e7915b0776b
[ "BSD-3-Clause" ]
permissive
targeted/pythomnic3k
3e087a0e0dacd870cda8783c0148ae63bc1ff2cd
c59f8c11302c0a568f45ec626ec6a0065527aa79
refs/heads/master
2021-06-28T09:28:48.302031
2020-11-23T17:39:46
2020-11-23T17:39:46
190,796,562
2
0
null
null
null
null
UTF-8
Python
false
false
1,446
py
config_resource_sqlserver_1.py
# configuration file for resource "sqlserver_1" # # this file exists as a reference for configuring sqlserver resources # and to support self-test run of module protocol_sqlserver_adodb.py # # copy this file to your own cage, possibly renaming into # config_resource_YOUR_RESOURCE_NAME.py, then modify the copy config =...
a355bd8bb951ee23808c9ecdd9d5ddfe7c991f93
84b3b9e14e557e4319a8b12f39d48583d544e969
/airflow_ml_dags/test/test_dag.py
8d675374ea33948db6c72874388a08e5c238ea1a
[]
no_license
made-ml-in-prod-2021/krveronika
150a641ccc5d2ca57ce83dc441831afebc6809ad
dea2227346212e28c6d9f1fc18b40c234d73154a
refs/heads/main
2023-06-13T22:14:57.194265
2021-07-01T21:14:09
2021-07-01T21:14:09
355,471,429
0
0
null
2021-07-03T00:43:39
2021-04-07T08:36:28
Jupyter Notebook
UTF-8
Python
false
false
2,103
py
test_dag.py
import sys import pytest from airflow.models import DagBag sys.path.append("dags") @pytest.fixture() def dag_bag(): return DagBag(dag_folder="dags/", include_examples=False) def test_dag_bag_import(dag_bag): assert dag_bag.dags is not None assert dag_bag.import_errors == {} def test_dag_generate_data...
07bbeceb8778767aa9794b03a8190911b572d75d
32ef0d22d690ccad9e6892876b7673821572c637
/DRL_demo/DRL_demo.py
a355bd4366be813350e53fe4033f8f5a57fa744c
[]
no_license
yyf8989/DRL_Net
30f1c1c1d84cf8b2e84839fd2196663266b267a2
cc2170327c09d78bc3456a6e36bd116988771257
refs/heads/master
2020-04-06T09:06:47.963667
2018-11-13T06:12:56
2018-11-13T06:12:56
157,329,521
0
0
null
null
null
null
UTF-8
Python
false
false
10,162
py
DRL_demo.py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ __author__ = 'YYF' __mtime__ = '2018/11/12' # code is far away from bugs with the god animal protecting I love animals. They taste delicious. ┏┓ ┏┓ ┏┛┻━━━┛┻┓ ┃ ☃ ┃ ┃ ┳┛ ┗┳ ┃ ┃ ┻ ┃ ┗━┓ ...
d2ab8ed42602bf17d91bfbfc506b7405c3d70794
e4bd2ff6bf85ad4bcab34b4905f00ca24e82e3c6
/Example Mesa/Code/model.py
4cdd464f962598fa4c73c5e7c8f80c3c33c6999e
[]
no_license
SheratonMV/Brandwonden-Project-IAS
24f7c2ec581e8c7f97daaf82ded6ccbc9456f65f
a38fbd601d06d7bbc0b82f7051e76d1f52d1b709
refs/heads/master
2020-09-23T15:36:52.594531
2019-10-15T13:05:13
2019-10-15T13:05:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,006
py
model.py
from globals import * import networkx as nx from mesa import Agent, Model from mesa.time import RandomActivation from agents import * from utility import * from mesa.space import NetworkGrid from mesa.datacollection import DataCollector from heapq import nlargest class Network(Model): def __init__(self, N, no_o...
dae87889039a57288a9c03ba83cfeb35c5badcc6
10b4b883854d371c2f400ae19eb85c28774183dd
/NBA_prediction/game_dataset.py
34cb6aa1796012897c9d24769048e9db925da612
[]
no_license
AaronHavens/NBA-Player-Movements
5a3e6b2a120781bce34654dff75f286762b0da1e
60a87224fa476a24dd40f451e2f87991230f0191
refs/heads/master
2020-04-07T10:54:34.779952
2018-11-28T19:29:39
2018-11-28T19:29:39
158,305,006
0
1
null
2018-11-19T23:50:02
2018-11-19T23:50:02
null
UTF-8
Python
false
false
2,088
py
game_dataset.py
from torch.utils.data import Dataset import numpy as np import pandas as pd import glob from itertools import chain class GameDataset(Dataset): def __init__(self, game_dir, start, end): self.in_state = [] # all 2D player states + 3D ball state self.out_state = [] # all 2D player states. We dont re...
97e4577b8616b987be7ca615420453e5d28f21cf
062fb859e450adb9a3c12bd480a4f11d7ce5a89a
/ShipSta.py
1ac855ddc1ce33112b76d65edb2f618a162a9d10
[]
no_license
OkJoe/Battleship
f8f06312971025b00128d06ce13a0f682e9fdecc
23f68f4e95d1b5800628e6037d6144671a8e3270
refs/heads/master
2016-09-15T20:12:47.891711
2014-06-03T18:01:56
2014-06-03T18:01:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,765
py
ShipSta.py
import pygame, sys, Ship, Arm from pygame.locals import * pygame.init() FPS = 10 turnr = .02 black = (0, 0, 0) white = (255, 255, 255) red = (255, 0, 0) green = (0, 255, 0) def addship(shiplist): level = 0 while True: level = int(raw_input("please enter ship level")) if level <= 200 and level >...
c4a281f6c000e233879337cf81b0dd7563546dda
0760fb4901a75766921a205b55686d6d6f049b30
/release/tune_tests/scalability_tests/workloads/test_durable_trainable.py
1a07f6edf651d4f431ec3699da2a721282250d23
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
2,743
py
test_durable_trainable.py
"""Durable trainable (16 trials, checkpoint to cloud) In this run, we will start 16 trials on a cluster. The trials create 10 MB checkpoints every 12 seconds and should only keep 2 of these. This test ensures that durable checkpoints don't slow down experiment progress too much. Cluster: cluster_16x2.yaml Test owner...
dfddb27ccb7df5577cab693c0cfe4ae6f7a0ef3c
56b69a58a8844d09e213dc38aab9aa62422dd58e
/148.py
8b83dbb5f071dd23631b1ba5d83b2e8cd44228bc
[]
no_license
dilkas/project-euler
d697daf4087a0b436e2dc7b2840d5e53c2ff07b8
e637fc34d406de7b05755d9c85b370aef1beb2a7
refs/heads/master
2021-05-31T15:46:45.342257
2016-05-15T10:29:45
2016-05-15T10:29:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
148.py
def triangle(n): return n * (n + 1) // 2 N = 10 ** 9 D = 7 # convert N to base D digits = [] while N: digits.append(N % D) N //= D multiplier = 1 s = 0 for i in range(len(digits) - 1, -1, -1): s += multiplier * triangle(digits[i]) * triangle(D) ** i multiplier *= digits[i] + 1 print(s)
3f11df1db36452a4e3ac841f89ab9f6d5edb968e
fe213b2cb291f493e0d71a244115ff1c8004f540
/Algorithm/SWEA/SWEA_글자수.py
a7eff9c98ef6c66933ebeb754b110026e6624e97
[]
no_license
kyeongseok-lee/TIL
fe09696be1511c609619c6ffe64435a87add3f90
5a8508335ef3177e1dc78bb57b7deff0eb8df3fc
refs/heads/master
2023-04-09T15:20:14.616611
2021-04-22T14:06:40
2021-04-22T14:06:40
259,929,497
1
0
null
null
null
null
UTF-8
Python
false
false
299
py
SWEA_글자수.py
for t in range(1, int(input()) + 1): str1 = set(input()) str2 = list(input()) result = 0 for s1 in str1: cnt = 0 for s2 in str2: if s1 == s2: cnt += 1 if result < cnt: result = cnt print('#%d' % t, result)
30cb77dcc10630ca2dc5e4abe0d57c9aaa6e9502
b2689a4a3e094637c189cc25930455e93055afd0
/survey/migrations/0002_auto_20210620_2344.py
b6de3bffedf4cb11d464a3156d1b53e53a1b7754
[]
no_license
kushagra219/SurveyApp-Django
c77013248c773cfc3fcdf55c09d499da80b9ea8d
ec9228565d63a057c467d2b24238a475790251bb
refs/heads/main
2023-06-07T15:52:06.327784
2021-06-25T02:45:13
2021-06-25T02:45:13
378,714,561
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
0002_auto_20210620_2344.py
# Generated by Django 3.2.3 on 2021-06-20 18:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0001_initial'), ] operations = [ migrations.CreateModel( name='Improvement', fields=[ ('id...
5f49a918f41a073d39fec573c91259668332bc3b
0c759cd37338db689ce36c22944d4a6f8f9fe74e
/app/web/tasks.py
ce1b50edf42784ee67d9d93ca15352aa455feda5
[]
no_license
mkramb/acegit
4dee079719c82fa9f95e9c5d59ac6af72a211f7a
76c8383496a5531461aab59ceb16daff7a3c406a
refs/heads/master
2021-01-10T06:43:54.496288
2016-02-24T17:39:16
2016-02-24T17:39:16
52,461,727
0
0
null
null
null
null
UTF-8
Python
false
false
2,173
py
tasks.py
from __future__ import absolute_import from django.db import transaction from celery import shared_task from app.repos.models import Repository, RepositoryBranch, RepositoryPull from app.repos.settings import REPO_COMMITS_LIMIT from app.utils import get_or_none @shared_task @transaction.atomic() def log_commits(repo_...
442f5c05589c4b3478a17de9a168c806d799fdc8
1eda841036572d1d52128bcee4aaf38e13965052
/treat_results.py
c020976f4e8cc4c5096882b1436827c7b5431b73
[]
no_license
CarlosMatheus/Cloud-Benchmark
7da52256f9e77f84c5acdeddb4dca51eac7e9040
57552d0b1ebab1d5358df3d92b6472bee49a51aa
refs/heads/master
2020-05-25T14:29:57.783887
2019-06-22T04:12:32
2019-06-22T04:12:32
187,845,796
0
0
null
null
null
null
UTF-8
Python
false
false
5,238
py
treat_results.py
import os from utils import get_tests_names dirName = 'treated_results' def create_folder(test_name): if not os.path.exists(dirName): os.mkdir(dirName) if not os.path.exists(os.path.join(dirName, test_name)): os.mkdir(os.path.join(dirName, test_name)) def write_results(test_name, benchmark_...
68a75e60b8d7c8a040e20920e65e5c959e3bf246
16a72ef387d34cae924264d82761494989c65557
/apps/ninjas/views.py
7b59f925716119a347e375343c3d85a9ba56f111
[]
no_license
Bthelisma/Ninja_Gold
4fe7e860daec9066cab1be5f75c821c5dd2aa45d
2c7088e802febd8494a344101d50eb2907907845
refs/heads/master
2020-03-22T19:37:29.703963
2018-07-11T07:54:07
2018-07-11T07:54:07
140,540,875
1
0
null
null
null
null
UTF-8
Python
false
false
1,881
py
views.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render, HttpResponse, redirect import random from datetime import datetime def index(request): try: request.session['total_gold'] except KeyError: request.session["total_gold"] = 0 return render(re...
721e53a3fd86829e1aff91372345537bc1e5d66e
37ae402e6e7df649bbacd45ff9747a0979d08236
/pythonII/adjectives.py
ddc4662d18b5b938d34333975412c420e8a13227
[]
no_license
aparnakn/myworkspace
c7a9f66afb1259e2b4a7efa1a1bc093f73df1eb7
ddafac69d0ce71ef7eee9e5c59bca305ef951d0d
refs/heads/master
2021-01-19T14:09:45.609690
2017-04-13T05:23:33
2017-04-13T05:23:33
88,127,610
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
adjectives.py
''' Short-cut Dunder methods raymond Adj real adj --------- -------------- ----------- --------- len(a) a.__len__() lennable sizable a[i] a.__getitem__(i) bracketable indexable a(i, j) a.__call__(i, j) parenable callable a+b a.__add__(b) plusable addable a * b a.__mul__(b...
ce39832f8ffb29cfa2f49ab58ab409933505cbf9
638f64de8bd7895192b0df340ece58f401e57a89
/hw01/my_solution/5.py
3bd8b2da1979d56636da35c63fe800aae8db4cda
[]
no_license
jerlomy4ever/EECS498_IntroductionToAlgorithmRobotics
304f923678728b511c875a629716cc79f59e8a62
d943ec10d700c133c35537ca064aac7c39f1d5d5
refs/heads/main
2023-02-04T23:00:32.680564
2020-12-28T02:03:45
2020-12-28T02:03:45
324,832,019
1
0
null
null
null
null
UTF-8
Python
false
false
1,468
py
5.py
#!/usr/bin/env python import numpy def main(): print '*********** ' print '5.a \n' A = numpy.matrix ( [ [ 0 , 0 , -1 ] , [ 4 , 1 , 1 ] , [ -2, 2 ,1] ] ) b = numpy.matrix ( [ [ 3 ] , [ 1 ] , [1] ] ) solve(A,b) print '*********** ' print '5.b \n' A = numpy.matrix ( [ [ 0 , -2 , 6 ] , [ -4 ...
8d542941ccf0ebd11b98456d59b7f906590f2009
688fb91bcc86e90597ad877d77205d2fc6a52c0e
/re example/re_ replace2.py
68fb78e205309a20cbc5d26cbfa87d72056749d5
[]
no_license
A26mike/Intro_to_scritping
854bae22b3ca8c1d9b51249d7427f9a378645972
8c365932f3d74b1d123ad5ed7a768d7563982d0f
refs/heads/master
2022-12-30T08:05:33.003941
2020-10-11T21:46:34
2020-10-11T21:46:34
292,116,927
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
re_ replace2.py
import re #The string to search for the regular expression occurrence (This is provided to the student) search_string='''This is a string to search for a regular expression like regular expression or regular-expression or regular:expression or regular&expression''' #1. Write a regular expression that will find all ...
717e5adaef0a96c206f079a1050094f92b1e9da8
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/DOCS-L2VPN-MIB.py
605db663b4b1e754eec205fe11b79d267ed11d92
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
23,710
py
DOCS-L2VPN-MIB.py
# # PySNMP MIB module DOCS-L2VPN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DOCS-L2VPN-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:28:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2...
86a227a99053049f7c9ce503f99b74d9c755648e
09847fe412c4bf3a44a6b4f5f73abc92766eefca
/server/repository/match_repository.py
cdb510315a70b6f905734035b1e2cd6cd78cc7e0
[]
no_license
Gushono/animates-python-backend
c036b764e5e8dededb562395069087d407c34d5a
90e800f6f2a1f131d62981aefa4020fdd6cfdeda
refs/heads/main
2023-05-13T17:16:22.156898
2021-06-09T23:43:14
2021-06-09T23:43:14
357,010,328
0
1
null
null
null
null
UTF-8
Python
false
false
324
py
match_repository.py
from server import db from server.models.relacao_match import RelacaoMatch def verifica_existencia_match(id_animal, id_animal_match) -> RelacaoMatch: return db.session.query(RelacaoMatch). \ filter(RelacaoMatch.id_animal == id_animal). \ filter(RelacaoMatch.id_animal_match == id_animal_match).firs...
34f4d5a8efdd9aaee66465fbfdd3e1a017ddb0b6
9c1eb98f706fb286e9e6d450c5d80f321bdaa2ca
/authors/apps/authentication/views.py
33e8548117e4ad606072aaf23df884b7463d3be6
[ "MIT", "BSD-3-Clause" ]
permissive
Tittoh/blogAPI
b9d75a36987244e590df5cbc68fbf98c81e54996
19f5550f97905ee4a97574cab799d42a0471f12b
refs/heads/develop
2023-08-04T16:53:34.420960
2023-08-03T19:34:16
2023-08-03T19:34:16
223,628,636
1
1
MIT
2023-09-03T07:41:44
2019-11-23T17:37:38
Python
UTF-8
Python
false
false
11,002
py
views.py
import os from django.contrib.auth.tokens import default_token_generator from django.contrib.sites.shortcuts import get_current_site from django.core.mail import send_mail from django.template.loader import render_to_string from rest_framework import serializers from rest_framework import status, generics from rest_fra...
b949355de68022c090a5a0cb01c6c469d75e2dfa
1d561b04fd95cb2ef64c0d2373501592ae84f840
/epinetwork/modelos.py
b3853ca33d6c724134602cc11b7db803e56996f0
[]
no_license
jorgevc/epi-network
989d95f326adab38ce22dd33197df608606ecd63
43b7d6db74a6f7738cbaa347103a66c76cd5a28d
refs/heads/master
2022-10-30T07:20:41.223300
2022-10-05T04:03:29
2022-10-05T04:03:29
160,407,884
1
2
null
2022-04-21T22:56:35
2018-12-04T19:25:20
Python
UTF-8
Python
false
false
6,352
py
modelos.py
# modelos.py # # Copyright 2018 Jorge Velazquez Castro # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This...
ed95fbcc3aef14e1fbf53875369716a84d0ac8f0
ef6ab10f60bdd9dd42b734fefc4c3dd102b1c003
/eod_historical_data/__init__.py
035889d5f8230e074e6e6f798f08ea793306625a
[ "MIT" ]
permissive
summatix/python-eodhistoricaldata
ae59c3d0b966bd51c41763145444a9384d65472a
e4587163092081c16a93bda043a9cfc683cf1cfa
refs/heads/master
2020-06-23T16:46:57.866725
2019-07-25T06:12:10
2019-07-25T06:12:10
198,685,494
1
0
null
null
null
null
UTF-8
Python
false
false
245
py
__init__.py
from .data import (get_api_key, get_eod_data, get_dividends, # noqa get_exchange_symbols, get_exchanges, # noqa get_currencies, get_indexes, # noqa get_splits, get_fundamentals) # noqa
0dce33021a2e01db9d9ab8105847be16d8790bfc
fff80cdaf12712704f36038479f50418253f42f3
/git-review/src/gitreview/git/config.py
d7567fe272e2e85f359a7952c25e1c2c44534bd2
[]
no_license
rudolfkopriva/Facebook
1ea0cfbc116f68ae0317332eeb9155461af5645a
56e4c6a83f992bb01849ad353004b28409e53eef
refs/heads/master
2023-02-14T01:54:36.519860
2021-01-05T02:09:26
2021-01-05T02:09:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,359
py
config.py
#!/usr/bin/python -tt # # Copyright 2009-2010 Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
20efc767364b52c21911ddc7cc2b23c41cd185a6
14f6cac660334d72cbce8e06e5721be7d30be49b
/facebook.py
ea2684af2ac67f73419864aa3e98db5f3740a380
[]
no_license
diam21-meet/meetyl1
e74eaaa6680f36027ee372d914892d8cdbba1ae6
0814d7f798ba30f6fcff1abe46592cc739cbf91e
refs/heads/master
2020-09-07T15:27:10.159085
2020-02-02T17:36:34
2020-02-02T17:36:34
220,827,435
0
0
null
null
null
null
UTF-8
Python
false
false
1,596
py
facebook.py
class User(): def __init__(self,name,email,password): self.name=name self.email=email self.password=password self.friends_list=[] self.posts=[] def add_friend(self,email): self.email=email self.friends_list.append(email) print(self.name + " has added " + self.email + " as a friend") def remove_friend...
ec049d1f706baa3669566e93b65555b3a3dde0f6
b7a889a90281b283209228ef8e5944d511529b6d
/Sprint 5 03072020.py
2ff0044e888b38836c1278b04594eb39d613dd28
[]
no_license
therealdavidbrown/Sprint-5-03072020
d259798bd789551396af4b19eb4840fc71dd83e2
bc90629148dc9a8003fd996ca5c92623c5ea3d96
refs/heads/master
2022-11-12T08:14:51.771636
2020-07-03T07:00:00
2020-07-03T07:00:00
276,828,670
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
Sprint 5 03072020.py
import pandas as pd chips = {'Chips': ['Simba', 'Lays']} cooldrinks={'Cooldrinks': ['Coke', 'Fanta']} chocolates ={'Chocolates': ['Cadbury', 'Tex']} pies = {'Pies':['Pepper Steak', 'Chicken']} fruit = {'Fruit':['Pear', 'Apple', 'Orange']} cupcakes = {'Cupcakes':['vanilla', 'Chocolate']} veggies = {'Veggies':['spinach...
507bc749f8424f6031d2459a5dc19c49604ef5fa
ae6cff9503054a847ee968714a45687582f3f20e
/_Python Scripts/vissim_run_functions.py
622785104284145297055ec12102b8990d3c4aff
[]
no_license
bhammit1/Vissim-SPA
f5ee2b1962195005bf46c1e4dd5de9d9685e690a
502acea78e621f83c8137936944768846281ef0c
refs/heads/main
2023-07-03T01:42:16.324054
2021-08-03T17:49:20
2021-08-03T17:49:20
391,158,298
0
0
null
null
null
null
UTF-8
Python
false
false
7,807
py
vissim_run_functions.py
from vissim_simulation_classes import Vissim_Network from travel_time_plots import * from organize_att_files import * from run_excel_macro import * from transit_metrics import * import shutil, os, time def RunVissim(fn_scenario, peak_pd, excel_scenario, fn_start, fn_end, run_vissim, copy_moe_sheet, transit_veh_recor...
1c16901f5a6a5334f58e631dcd55191977d48eeb
701f9a3eed5d3b4f1a9ecf007e5a674fab68f72f
/messages/content_converter.py
210aaaff95fe6cff9a8c1959fca9b904d6810ab3
[]
no_license
heliobmartins/appengine-python37-standard
5659011cef1153cada9d186c8ec171a9fff2a685
599c8de077e0da79f260e02445f458a7bd3610b0
refs/heads/master
2023-05-22T11:08:55.822549
2019-03-22T00:49:37
2019-03-22T00:49:37
176,170,220
1
0
null
null
null
null
UTF-8
Python
false
false
431
py
content_converter.py
def convert_entity_into_to(content): dest = { u'title': content.title, u'description': content.description, u'body': content.body } return dest def convert_to_into_entity(content_to): from domain.content_domain import ContentDomain return ContentDomain(title=content_to.titl...
6762567ab9b4b96ffbf6b0170ae7e15cfc12bf4f
c3533d23afc12c5176c41f8986d66425c73d7f8b
/apps/architecture/admin/__init__.py
7e674a9e02dddc8b6c470577f4d17e1cd99c064e
[]
no_license
plsof/tabops
208a61ee940c27988eb214db5baf2a879c872bdd
973a4176543fa065cf6f03a8cdd4d599925d7154
refs/heads/master
2022-12-08T18:53:29.438100
2019-08-01T02:51:51
2019-08-01T02:51:51
187,328,153
0
0
null
2022-12-08T00:47:05
2019-05-18T07:32:04
Python
UTF-8
Python
false
false
631
py
__init__.py
from .bimsbootAdmin import * from .bimspanelAdmin import * from .epgAdmin import * from .picAdmin import * from .tmsAdmin import * from .wtvAdmin import * from .pplAdmin import * from .mscreenAdmin import * from .xmppAdmin import * from .uicAdmin import * from .cossearchAdmin import * from .dms2Admin import * from .cos...
9d126a5232c7c6508a73508d209bdce282d0113c
efadd1b930c4cb6a2d179f2d8f2b32b9634dad34
/lesson6.py
19f134aaa137149001f0075b7e4a4dd9d49bddd2
[]
no_license
Orazumov/homedeeds
d5172e5178a9d30e4039e101f93b2e80fa5fa557
29490d5bb3f47d4256212b6bafe8c33c783d1f43
refs/heads/master
2020-12-18T11:55:18.829443
2020-02-14T18:55:46
2020-02-14T18:55:46
235,370,795
5
1
null
2020-02-17T18:50:54
2020-01-21T15:09:24
Python
UTF-8
Python
false
false
9,670
py
lesson6.py
# Начало ООП. import statistics # модуль считает медианы, среднее и т.д. # все что нужно для статичтики. statistics.mean() #считает среднее значение по списку. # до появления С++ не было ООП, поэтому была проблематична скорость # написания ПО. Сейчас используется повсеместно. # можно описывать различны...
2ca91c410b8c8d6306d5ed918783a4d77a091ba8
b2be040176cfc06a3b60bab103815bfaae91217c
/rwb_timer.py
280e6184fa5bffb904de2d1328eee8fb4b2ccbc2
[]
no_license
sunny-heo/rwb_timer
ef0033d69a7ffe60206417139f8a688e2c7c2d48
c07e59d48febd8f4d2c6ee9e5dcd0acd1a4c90a1
refs/heads/main
2023-01-05T03:08:37.712274
2020-11-07T20:12:42
2020-11-07T20:12:42
301,325,630
0
0
null
null
null
null
UTF-8
Python
false
false
5,135
py
rwb_timer.py
from typing import List from re import match from utility import ButtonGroup import rumps class RepeatWorkBreak(rumps.App): def __init__(self): rumps.debug_mode(True) self.config = { "app_title": "Repeat Work and Break", "start": "Start", "pause": "Pause Timer"...
8bc40ed4fe1091ecdb40cd55ff9cf53010078823
a7db09b7681e8050e832da8198afde3cbff6da0e
/tools/postdata.py
5d378f7f87e4dfbfaf6d9d448a2035dd107eac36
[ "MIT" ]
permissive
HakoCra/smap
0146b0b2da7c9d06423d3d49dec22b4b4138576f
88a6265cbb4777e6d1a032c4c792187debcaf41f
refs/heads/master
2021-01-11T22:03:07.376411
2017-08-29T16:48:43
2017-08-29T16:48:43
78,906,682
0
1
null
2017-02-19T04:56:08
2017-01-14T02:54:02
Python
UTF-8
Python
false
false
191
py
postdata.py
import requests import json data = json.load(open("dummy_data/data.json")) for one in data: print(one) r = requests.post("http://localhost:8080/sumari", json=one) print(r.text)
4e9a968842c2b3eca79690f0b56c8e176b203138
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc015/A/4639616.py
c87a300a241a804c6727e3bab97fec74482b1d82
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
28
py
4639616.py
print((9*int(input())/5)+32)
7a1bd2b4734527a414c6173ea8edb150221f8042
87441d2904f9e69580f64144fe4bcc260577b5b5
/functions/Weather_Module_wEA.py
939313e1f07012076667f39f555b04c4b9bac042
[]
no_license
kevinxieee/Capstone
e032e8d8116327783e3c0caf0a0cb38eb4a33779
873a47a643a2e93932ea5c91e55c7945a8f99071
refs/heads/main
2023-04-03T11:51:07.762422
2021-04-09T18:03:51
2021-04-09T18:03:51
351,888,311
2
0
null
null
null
null
UTF-8
Python
false
false
2,980
py
Weather_Module_wEA.py
import numpy as np import pandas as pd from scipy.optimize import minimize from datetime import datetime import time from functions import weather_scraper def getData(): # # run weather_scraper.py to fetch new weather data # weather_scraper.getData() ## Read in csv file "weather_data.csv" weather_data...
1bdb19373960e4f63d80d6ab73ec3c0939e40b7f
1fa240a49863d3f8ef3997596172a9b8c86291cc
/dask_ml/_compat.py
9b90d5e300ea75f25d0f43099b2c95d1cc008d2e
[]
permissive
akoury/dask-ml
95ed7400aeeab7be4656f96fbf0dda3629a71369
c704d0d036da90684ade98d4f2ba0006c5c3df0e
refs/heads/master
2020-05-24T05:11:18.767983
2019-05-01T03:09:17
2019-05-01T03:09:17
187,108,927
0
0
BSD-3-Clause
2019-05-16T22:22:50
2019-05-16T22:22:50
null
UTF-8
Python
false
false
588
py
_compat.py
import contextlib import dask import dask.array as da import packaging.version import pandas import six import sklearn SK_VERSION = packaging.version.parse(sklearn.__version__) DASK_VERSION = packaging.version.parse(dask.__version__) PANDAS_VERSION = packaging.version.parse(pandas.__version__) @contextlib.contextma...
a4f932a8566afe0265dc1057d0f6534a608697f7
f8e8e365c9cf58b61d72655bc2340baeaed5baff
/Leetcode/Python Solutions/Strings/ValidAnagram.py
58df50f04ad73af7c21a096e0ad46ebb816207f0
[ "MIT" ]
permissive
Mostofa-Najmus-Sakib/Applied-Algorithm
39a69f6b9ed113efe4a420d19cad79e0aa317637
bc656fd655617407856e0ce45b68585fa81c5035
refs/heads/master
2023-08-31T19:54:34.242559
2021-11-05T03:43:35
2021-11-05T03:43:35
412,263,430
0
0
MIT
2021-09-30T23:45:29
2021-09-30T23:45:25
null
UTF-8
Python
false
false
785
py
ValidAnagram.py
""" LeetCode Problem: 242. Valid Anagram Link: https://leetcode.com/problems/valid-anagram/ Written by: Mostofa Adib Shakib Language: Python """ class Solution(object): def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ length1 = len(s...
6dd11f71e514a46462bf0b97ddac9ea474e86ad0
0068bbbb80ea9e6d5a64d97f5cfe787ba5c775c0
/repartition_experiments/tests/test_clustered.py
ff102704712439925556ef185355b0414c59b708
[ "MIT" ]
permissive
big-data-lab-team/repartition_experiments
7d4e8cc975e632df888ad6ac49c246085e1fd62b
71cff469d2036f3e325ea3fc15b9f686c794f8d8
refs/heads/master
2022-12-25T09:49:57.420053
2020-10-06T17:35:40
2020-10-06T17:35:40
273,741,684
0
0
null
null
null
null
UTF-8
Python
false
false
3,220
py
test_clustered.py
import os, glob import numpy as np from ..algorithms.utils import get_file_manager from ..algorithms.clustered_writes import * from ..exp_utils import create_empty_dir def test_get_entity_sizes(): # in C order bytes_per_voxel = 1 R = (10,9,10) cs = (5,3,2) partition = (2,3,5) bs, brs, bss = g...
c09c02a36a64e9522cfc8c0951bd6c98f404f09c
1127c08a0576a6cc17ef7efc7a9a727845cc3ba9
/P5HW1_RandomNumber _ThelmaMajette.py
7263e16612132b97a5c74368e0c22076ad99d000
[]
no_license
majettet4888/cti110
5e45b81af9df2edf42a73a2a6f26f05d6441ee1e
d43fb819e80d80387e8f9b0d9f382f0451b6774f
refs/heads/master
2022-11-15T08:26:01.904115
2020-07-10T17:54:35
2020-07-10T17:54:35
272,832,108
0
0
null
null
null
null
UTF-8
Python
false
false
878
py
P5HW1_RandomNumber _ThelmaMajette.py
# Random number guessing game. # 10 July 20 # CTI-110 P5HW1 - Random Number # Thelma Majette import random randomNumber = random.randint (1,100) # main function def main(): # Create a variable to control the loop. keep_going = 'y' while keep_going == 'y': # Ask user fo...
798ddd4a6e4febb4664bf1c973877628d1a45c71
3c625e624e2a29f8cf435390fd04e2799c36f53b
/rewardly/accounts/urls.py
4956431ac6dc7595f1a8703c0e8a4f9e920b8051
[]
no_license
bshin94/Rewardly
41a9f4f40ccd2165d4a09b744a150e0c7455b88b
caa717029f33919a46ef2e18f727f937b1a6a448
refs/heads/master
2020-12-25T01:40:21.027190
2015-05-27T10:33:39
2015-05-27T10:33:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
urls.py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('accounts.views', url(r'^$', 'home', name='home'), url(r'^login/$', 'login', name='login'), url(r'^logout/$', 'logout', n...
3340277df91f1421dab8d204eddce65b4604432b
10d23d6a193f1298513c0b472fae975c5e620a46
/cources/views.py
7500a65662fa7fdd2b7e64213a74d3ba5775c6f7
[]
no_license
RahimjonPc/centre
7bc1a57dd49212a5dafb90d203a4234b29bd4336
d90b43f417c522b21a0f8e92eb09add44764d85a
refs/heads/main
2023-04-12T12:43:44.767769
2021-05-15T11:14:03
2021-05-15T11:14:03
339,373,487
0
1
null
null
null
null
UTF-8
Python
false
false
913
py
views.py
from django.shortcuts import render, redirect from .models import Courses from django.views.generic import CreateView, ListView, UpdateView, DeleteView from .forms import CourceCreateForm from django.urls import reverse_lazy from django.urls import reverse class CourceListView(ListView): model = Courses templa...
d6e6cc724f11c98ce8f9c918a56e02a0a9a003cc
4ed1d1174c93696db5f871bedd90f6ef930dbd89
/preprocess/subtoken_generator.py
5e1391709aa90ac51faaab2cbcb6e62ae1f1c369
[]
no_license
Sanqiang/keyphrase_generation
ea4dd47df0f4905a5c39f7ce23736da0f2335186
df9c9b00aae7a3775b8b541202b9116714c4b59a
refs/heads/master
2022-10-31T10:03:52.725287
2018-10-08T23:51:19
2018-10-08T23:51:19
126,573,253
0
3
null
2022-10-07T13:57:45
2018-03-24T06:41:15
Python
UTF-8
Python
false
false
869
py
subtoken_generator.py
from util.data.text_encoder import SubwordTextEncoder from util.data import text_encoder from collections import Counter types = ['kword', 'abstr'] type = types[0] dict = {} for line in open('/Users/sanqiangzhao/git/kp/keyphrase_data/kp20k_cleaned/tf_data/%s.voc' % type): items = line.split('\t') word = item...
1aba9d08be50445dcbfe0c5bb2fb73ee44d1f923
c8790f18c94b9b73955285247c6bfcf8c5801867
/jump/login.py
00d23e2b5d453988b89fea1b3b2381a7d90db17d
[]
no_license
wy3517881wy/pywin
2ab5966aac90118d480c63ee8eebad5483201982
ab81c2c47eb36a826e9e28001b80fe439e0e0433
refs/heads/master
2020-03-28T12:02:59.854646
2018-09-11T05:45:11
2018-09-11T05:45:11
148,266,508
0
0
null
null
null
null
UTF-8
Python
false
false
2,225
py
login.py
import urllib.error, urllib.request, urllib.parse import http.cookiejar LOGIN_URL = 'https://www.alipay.com/' #get_url为使用cookie所登陆的网址,该网址必须先登录才可 get_url = 'https://my.alipay.com/portal/i.htm?referer=https%3A%2F%2Fauth.alipay.com%2Flogin%2FhomeB.htm%3FredirectType%3Dparent' values = dict(ALIPAYJSESSIONID='RZ25HTfo7ooYE...
8d2b089243d9a7590ae467a6a108785a56d4d3b4
333a74991be23ee0240f3abcf867ab96ce6094ef
/Работа с файлом табуляция.py
644e167227359713a9c1fd8c20e485479a6d4faa
[]
no_license
ilx-prof/MyPyton-test
a686e4cce82934b65097268753f9fb3ed12840c2
52409967354f6671f9d5313da1ff4e55aa46cf2b
refs/heads/master
2021-07-05T13:34:11.523150
2020-11-07T12:14:53
2020-11-07T12:14:53
200,486,710
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
Работа с файлом табуляция.py
d ={a: ["-",0,0] for a in range(1,12)} my_file = open("dataset_3380_5.txt", "r") for st in my_file.readlines(): clas, _ , rost = st.split() d[int(clas)][1] = d[int(clas)][1] + int(rost) d[int(clas)][2] = d[int(clas)][2] + 1 for cl in d: if d[cl][1]>0: print (cl, d[cl][1]/d[cl][2]) else: ...
899a88e52d7d1acd4ffe36490fa12dfd10f34d63
ced8b83ddec2e3d6f0845dd240c42ffa7acc23f6
/main.py
696ebcb3898513eaa3de398b8a1a7c00fd7708c6
[ "MIT" ]
permissive
AhmadMehrbodTalkdesk-zz/image-caption-generator-using-deep-learning
1f19164b624df2dcfb2afe4573e278dc18fd6568
46aace56c0b06f95aec23781f0a597344697ce49
refs/heads/master
2023-06-16T12:46:32.628511
2021-07-15T09:09:18
2021-07-15T09:09:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,927
py
main.py
# https://github.com/nithintata/image-caption-generator-using-deep-learning import numpy as np #load the trained model to classify sign from tensorflow.keras.models import load_model from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras.models import Model from tensorflow.keras.applic...
16ebde4103366bb0e7ab9fb7727e3b10da4dc5d6
c2d7e9f188720d03f705a2e07c8207c16afe91fc
/python/live_view.py
6c2dc80833c713a56dfe668781ef74ce4118a8d4
[]
no_license
MoonRiyadh/eTextilePressureSensor
285f931e4fb33ebe91e71ec1d182571de67a2ae2
fe8d4fb6969bef8264f3b1ab16310c08c58263cd
refs/heads/master
2022-12-01T13:18:16.047582
2020-08-15T18:16:37
2020-08-15T18:16:37
275,463,983
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
live_view.py
from itertools import count import pandas as pd import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation """ at first run the data_rw_gen.py and then run the live_view.py it stores sensor reading in CSV file so that it can be used later or farther process for mapping values to GCS or You can onl...
f4795a226db8dab33026e0275ac7bf90a42ec59e
3e41f99714775552f3b22b24f57aff9a77b10a6a
/actionizer/hotkeyManager/remaplist.py
91a64a0d04cc2214fde550e9b553c7fc39c7eb26
[]
no_license
c0ffeeartc/Actionizer
b2e4bc1767cc1cef94a31a65a9a7d2713dc96aaa
3d82471aefa70e8be05f0ed9f0268f1c70894765
refs/heads/master
2021-01-10T12:56:16.873034
2015-08-16T13:54:56
2015-08-16T13:54:56
43,880,120
0
0
null
null
null
null
UTF-8
Python
false
false
731
py
remaplist.py
__author__ = 'cfe' class RemapList(object): CTRL = "^" ALT = "%" SHIFT = "+" def __init__(self): self.remap_list = {} self.remap_list["Alt+1"] = "%[" self.remap_list["Alt+2"] = "%]" self.remap_list["Alt+Shift+1"] = "%+[" self.remap_list["Alt+Shift+2"] = "%+]" ...
993192b93e14a71e27fae7685d6880835d2bde0f
ab18f1a685a7459dbf48f3edd68d8d477be0ba20
/users/migrations/0010_appuser_accounts.py
f08bb2e87aeeef5a64110f17f1245d8c736fc504
[ "MIT" ]
permissive
a-samir97/mostql-project
4bb8afce703f9627b8f13832c093f22adf2c7a54
db4657e6f510760910b9e8afa100fcdc1fd329b7
refs/heads/master
2022-11-17T08:25:46.251554
2020-07-15T00:01:40
2020-07-15T00:01:40
267,169,688
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
0010_appuser_accounts.py
# Generated by Django 3.0 on 2020-06-19 12:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0009_accounts'), ] operations = [ migrations.AddField( model_name='appuser', ...
bdc505dec95bfb281dde8ff6ae99dfa3c95a4192
b02ace415a6a605e0e41ab7ef028b2768c708d93
/trabajotarde.py
5ca607a82d5404cdd0cba3be4f6ac41d6e8f0feb
[]
no_license
jmgr99/maktabaalhakam
110d1e03b8410eb3a1059562a84a805fef19f275
8c94bbcce8624df9809565f04826848766872f52
refs/heads/master
2021-05-16T23:38:27.096716
2020-03-27T11:43:43
2020-03-27T11:43:43
250,503,239
0
0
null
null
null
null
UTF-8
Python
false
false
7,218
py
trabajotarde.py
from app import app from flask import Flask, render_template, request, url_for, escape, jsonify import json, random root = "درس" verb = "x" testroot ='فعل' listedroot = list(root) rad3 = (listedroot.pop(2)) rad2 = (listedroot.pop(1)) rad1 = (listedroot.pop(0)) str1 = "" fatha = b'\xD9\x8E'.decode('utf-8') damma =...
8af0ebf185801d5204d1d5f4d18601c55633bdb4
4136a12f6cdbf314d42dda233420a4852f3655dd
/expt.py
d1ba6cc4534fbe65e6773f9f40763916f41c8d0b
[]
no_license
mjypeng/sberbank
63f4fb901398ba3dd8b50ff9882de42120892ad9
cff14594dab6df065ec981b77eb396f29a069e91
refs/heads/master
2021-01-20T06:17:19.383066
2018-04-07T03:27:48
2018-04-07T03:27:48
89,858,623
0
0
null
null
null
null
UTF-8
Python
false
false
12,987
py
expt.py
from xgb_common import * tr = pd.read_csv('train.csv') tt = pd.read_csv('test.csv') tt['material'] = tt.material.astype(float) macro = pd.read_csv('macro.csv') macro_col = ['cpi','ppi','balance_trade','balance_trade_growth','usdrub','eurrub','average_provision_of_build_contract','average_provision_of_build_contra...
499ab56a4ecc60fb4780d3de51cd9512bf14b7bc
93e8eea62111df6a74e0a45a3ecc285c27b979c6
/123.py
9665da2076d18bb9b627722f5f1603d0fdfcb735
[]
no_license
LitvinenkoAlexandr/Beetroot_Alexandr
fcbf3730e2766a11ce1fc273049ca03a78ef3dbf
054e6d5261353c09a518403185cc632bd8d9882f
refs/heads/master
2020-08-05T17:42:52.449672
2019-10-10T16:49:07
2019-10-10T16:49:07
212,638,642
0
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
123.py
#6) Вывести первые 10 символов в строке #7) Вывести последние 25 символов в строке #8) Вывести строку “HELLO WORLD” в нижнем регистре #9) Вставить слова: ”I like {fruit} and {vegetables}” #10) "length - {}, width - {}, height - {}" #11) Заменить слова Yes на No в строке: “Do you like summer? - Yes” #12) "This is a {su...
df0a72ad065daff3a1f0993b167d4da4585e5b67
dbbad226582bcc10a1c7a3f9be2e5ba95cc09032
/Some other foobar gits/hieupham7127/bomb_baby.py
a50f999932440a2e5b5804d090f374e3b9be5297
[]
no_license
mrsingh3131/Foobar
e1638d8f6d4a49b45a636eca399f261cafeb3153
0a6db0bb3dfe8938f018c573e07e6f42a26930c6
refs/heads/master
2022-12-31T08:47:36.099357
2020-07-20T07:33:28
2020-07-20T07:33:28
281,046,737
0
0
null
2020-10-13T23:44:04
2020-07-20T07:32:14
Python
UTF-8
Python
false
false
308
py
bomb_baby.py
def findVal(a, b): if (b > 1 and a % b == 0): raise Exception("Sorry. It's impossible to find a solution") return a if b == 0 else (a/b + findVal(b, a % b)) def answer(M, F): # your code here try: return findVal(long(M), long(F)) - 2 except: return "impossible"
fc7c7ea5660d383d68a70f1e7bf2c6f5cb745b96
f1b8e87ba5e42a1bd35aaab1747b7cb241fc016f
/dronedirector/_version.py
84f8b0b53f8977d83b6c5f02fb707c98c1e7a171
[ "Apache-2.0" ]
permissive
avmarchenko/dronedirector
1e34ec96cd4dfae15ca76f633acf92874033eb20
07c9b18b0db6d56e0da082004335a131a33646f8
refs/heads/master
2020-03-21T08:04:19.153641
2018-07-04T13:21:08
2018-07-04T13:21:08
138,318,069
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
_version.py
# -*- coding: utf-8 -*- # Copyright 2018 Alex Marchenko # Distributed under the terms of the Apache License 2.0 version_info = (0, 0, 7) __version__ = ".".join(map(str, version_info))
a80f960d0d50b84405a5b3979751b50f4f5ea30a
faad989209ec13bc97c253c4fede6ab7c65cfebd
/scripy爬虫框架项目/bwm/bwm/pipelines.py
0091664f6fe65bc883015c2135e38febc5f34e91
[]
no_license
laoban520/scrapy_code
22070b351bda314de99c9f038a9ecbb804fbde4d
a22fa3336a2e9747a478b82fd9e1d678061f3c91
refs/heads/master
2020-04-17T16:58:46.365964
2019-01-21T08:12:24
2019-01-21T08:12:24
166,764,604
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import os from urllib import request class BwmPipeline(object): def __init__(self): self.path=os.path.join(os.path...
f49d17cecae82748676f3144667caf20d9b50260
c81df6397c89aa8c58c3759ee50788a281334dc8
/road_safety/maps/models.py
10615cd716fabff908c5a02c79b879e54737f65a
[]
no_license
MaxSurets/RoadSafety
52a062350ebca66cc984944a742cf04e5918e781
ac2156d03548cc695df3eb3901930f4d95e856fe
refs/heads/main
2023-02-17T19:46:57.420341
2021-01-17T20:33:31
2021-01-17T20:33:31
330,067,684
0
2
null
null
null
null
UTF-8
Python
false
false
366
py
models.py
from django.db import models class Accidents(models.Model): lat = models.CharField(max_length=30) long = models.CharField(max_length=30) street = models.CharField(max_length=100) zip = models.IntegerField() class Scores(models.Model): score = models.FloatField() street = models.CharField(m...
5e7e14ee715ee75d8a6f2549aaf2eac82ede4dcb
231f2aa788dbcdf064b45a1baf3f1ca17517b2b9
/examples/GUI/caer_gui_video.py
4a4fd90cb9c22555f5ae4064dbddd8c87f6e9cde
[ "MIT" ]
permissive
jasmcaus/caer
5184d34a39b2074d5500a3eef6de2703e7b9502d
3708bce3d6b1568b844ac78c55402862c548de61
refs/heads/master
2023-08-11T06:04:24.999595
2021-10-13T21:05:33
2021-10-13T21:05:33
285,644,536
806
159
MIT
2023-04-01T08:26:46
2020-08-06T18:36:14
Python
UTF-8
Python
false
false
12,144
py
caer_gui_video.py
# Simple tkinter GUI app example, designed to showcase some caer features for playing video # Should only be used as a base to create a new GUI # It can be re-designed, controls re-grouped and code improved # Requirements: python3, caer # Run it either via IDLE or from command prompt / terminal with one of thes...
feb6fc602fce7c744f3ad1ca3d1e7f2aebff898e
76a3ef6764db1f59dfc5ab6dc94084b91160af15
/deploy_tools/fabfile.py
e0c99a8fc090b79ee8f3c98f848cf3abcad36f64
[]
no_license
doctorwidget/test-goat
03c8d5d82c60b4634e775835d1b25b863e8105e1
69d47f0124e291594167c53681151d8f0620d20d
refs/heads/master
2020-05-18T19:39:07.297937
2015-02-06T20:28:02
2015-02-06T20:28:02
28,693,718
0
0
null
null
null
null
UTF-8
Python
true
false
4,909
py
fabfile.py
""" This entire project uses Python3, but as of Jan 01 2015, Fabric is still 2.X only. That means this file can only be run from inside an independent, second virtualenv that uses 2.X, and not from the main one where everything else runs. I find this to be surprisingly irritating! Note that after running this script y...
072df56fe97e0ba715faf77e5765b55ee9855665
6a4adc0509547c7a47fd9b2d4cb2c505fa0868e4
/scraper.py
a2bbd1bca658e46e349917d15d21a0ffdc200558
[]
no_license
denise-sanders/Top-Questions
5e7e2f6305f0b4a3d00585450b7083bb821e0e01
1606683f3608cce62a76df3eae7b5af12d132eb6
refs/heads/master
2021-09-08T19:21:07.519983
2016-08-09T03:11:10
2016-08-09T03:11:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
scraper.py
# Lets get us some data. import urllib.request from bs4 import BeautifulSoup class WebpageInfo: def get_user_requested_info(): user_input = input() def get_raw_data(self,topic): response = urllib.request.urlopen('http://stackoverflow.com/questions/tagged/topic?sort=votes&pageSize=15'.format(topic)).read(...
21ae63f7a72c7d36d9256b0457cf44dcdb2bcd84
87719a6b38dcd409a27d177b0455eb38473c89f9
/testing_case.py
0a651d9b654cf895718bb8bdce6496a0f40ecf0f
[]
no_license
llanoxdewa/competitive_programing
858236f96a50e7ba34cd0e3b28021583a986cd38
57c9ab0f2b2813160658d2863697e7a79a096bac
refs/heads/master
2023-07-01T18:22:27.712576
2021-08-07T08:46:41
2021-08-07T08:46:41
374,058,102
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
testing_case.py
import os import sys import time try: pilihan = sys.argv[1] except: pilihan = False i,n= 1,1 if(pilihan == "y"): for case in os.listdir("./case"): os.system(f"run_case {case[-1]}") skip = input("<enter>") i += 1 elif(pilihan == "o"): for case in os.listdir('./case'): os.system(f"code < case/{case} > out/o...
7693cb330e6e875b929e591efb8c0fa79c0a92eb
b3501f37d9ad1698b9ae1ea123d3dc753a860ed1
/TP4/src/exo3.py
74e9474a45d40a0c79450db3ac1f5d1cdd59f4db
[]
no_license
aymaneelgarrai/Recherche-Operationnelle-et-Donnees-Massives
9e1c528e2b490b3b62b1daa4b8461db636f9db28
0ae3896d47acf1b0f1e4ea4bbcde725af1a08a8b
refs/heads/main
2023-03-25T22:52:50.366312
2021-03-28T19:58:50
2021-03-28T19:58:50
351,825,956
0
0
null
null
null
null
UTF-8
Python
false
false
3,113
py
exo3.py
import networkx as nx nx.__version__ '2.2rc1.dev_20180521153746' import numpy as np import matplotlib.pyplot as plt from functions import rand_graph_generator, label_prop import time from community import community_louvain from networkx.algorithms.community.quality import coverage, performance, modularity import random...
7ff707ac652049e48bac5df47d3a257b07c413f9
8ce2131d77d4a7f969786d0d1700436ac98fc640
/py/tebak_angka.py
3091100d734141415f4710a470be9a95f0acea0f
[]
no_license
mwafa/visual
0e739cb3132f920077af46fa2781575e095cd3fa
a7562685cd8ada7b77ad6bf13a97f911069e0c27
HEAD
2018-08-25T14:53:31.658885
2018-06-12T08:46:54
2018-06-12T08:46:54
120,874,603
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
tebak_angka.py
tebakan = 0 for k in range(5): i = 2**k print([j for j in range(32) if (j//i)%2 == 1]) tebakan = tebakan + i if input("ada disini?[Y/N]") in ["y","Y"] else tebakan print(tebakan)
ba8df5c26df16ecdac21c52cd8a6222ea5462798
6f224b734744e38062a100c42d737b433292fb47
/llvm/utils/lit/tests/googletest-detect-duplicate.py
dab75bca4e8b3ff515801fcc3837763b276bef8b
[ "NCSA", "LLVM-exception", "Apache-2.0" ]
permissive
smeenai/llvm-project
1af036024dcc175c29c9bd2901358ad9b0e6610e
764287f1ad69469cc264bb094e8fcdcfdd0fcdfb
refs/heads/main
2023-09-01T04:26:38.516584
2023-08-29T21:11:41
2023-08-31T22:16:12
216,062,316
0
0
Apache-2.0
2019-10-18T16:12:03
2019-10-18T16:12:03
null
UTF-8
Python
false
false
502
py
googletest-detect-duplicate.py
# Check we don't add a GoogleTest binary more than once and issue a warning # when it happens. # RUN: %{lit} -v --order=random %{inputs}/googletest-detect-duplicate \ # RUN: %{inputs}/googletest-detect-duplicate 2> %t.warn | FileCheck %s # RUN: FileCheck --check-prefix=CHECK-WARN < %t.warn %s ...
d2e0a1e9d5f1527e64b7b3b4b38157caadd7ad8a
2655a77164c847131a2c63bdc5253cf5b9a8f776
/Word find game..py
472a670a58bcd8416660ea7d3484dde9b4819abc
[]
no_license
Dilshodbek23/Word-find-game.
c34b29ab9da60dff05abd6c68f7cf8c270b4c495
141821194a4f38cbbad3850a0aa3c9bb5f979681
refs/heads/main
2023-08-22T07:26:54.307959
2021-09-19T18:33:30
2021-09-19T18:33:30
408,206,235
0
0
null
null
null
null
UTF-8
Python
false
false
1,000
py
Word find game..py
from uzwords import words from function import get_word from display import display uz_word = get_word() all_enterned_letters = "" count = 0 print(f"My word consists of {len(uz_word)} letters. Can you find it?") while True: enterned_letter = input("Enter letter\n>>>") count += 1 if enterned_letter...
52222205ab9a631f6bdd0db2bf8024b4debbf9c8
7da34f82868ed87950afd5f4fddcdbc4a53e4b4c
/hacktober.py
54dc242e7675cfaa019189c12783f09cd22804a4
[]
no_license
mrtampan/python_hacktoberfest2021
6f97ac8e0f797ef589af38867821efcd60604e6d
0c37e7cac8ec6e2ce0ec7e3fa44ee9744e9fe9c4
refs/heads/main
2023-09-01T16:23:56.539294
2021-10-03T10:47:23
2021-10-03T10:47:23
412,457,550
0
1
null
2021-10-03T10:47:23
2021-10-01T12:26:14
Python
UTF-8
Python
false
false
168
py
hacktober.py
# Mantapkan kode dengan adanya input nomor ! n = int(input("Masukkan Angka : ")) for i in range(n): for j in range(i): print(j+1, end="") print()
dd54cc34aca06146c62a4a521344cc58d92244db
29789787999a8eb72e0cbd7bf28907b0add185c5
/gfgauth/views.py
71cccfa6aceed2e24c85e30fdb036e291457d072
[]
no_license
sidharthpanicker/Job-Application-Tracker-as-a-Service
c0e75568e6be847e972e6af8efdfaa27077bced4
216536ad74b05d1b7f88663435149d63dfbf13f6
refs/heads/master
2021-06-18T04:44:03.216925
2019-05-03T06:00:45
2019-05-03T06:00:45
206,439,394
0
1
null
2021-06-10T21:56:05
2019-09-05T00:25:23
HTML
UTF-8
Python
false
false
16,192
py
views.py
import httplib2 import base64 import email from googleapiclient import errors from googleapiclient.discovery import build from django.http import HttpResponseBadRequest from django.http import HttpResponseRedirect from .models import CredentialsModel, TrackStatus from gfglogin import settings from oauth2client.contrib ...
68812d578134cc06b0677647c0f890ccc436818e
a4a6ee8f949d0786f0f98ef4348c35ed38cf7e06
/array6.py
9d31f241bab0fd071aec80135cb89f84d4755483
[]
no_license
deetchiga/pythonexercise
8eade8fa4277b5e84ca610d6ab144dbd20e37e98
f5fe4b22d3505160720f0345009f359e84089802
refs/heads/master
2020-07-12T20:26:42.846514
2019-08-29T11:14:04
2019-08-29T11:14:04
204,899,947
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
array6.py
from array import * array_num = array('i', [1, 3, 5, 3, 7, 1, 9, 3]) str(array_num) print(str(array_num.count(1)))
e95e0ef50c354d1f72f1ac07112a6e2de12e27d0
54f704a3e4fc428c492057309029429bdf41d31e
/corpus_builder/format_date/__init__.py
644993e1c38e266d5524974e2ae05686373664d9
[]
no_license
sayemomer/makorsha
884760b415aa2cd7e9071e53d889b44a281d2af6
17efa38b5152be80053c7358b3baa13422da6e0f
refs/heads/master
2023-02-12T14:03:50.458213
2021-01-15T14:56:33
2021-01-15T14:56:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
__init__.py
import datetime def format_date(raw_date): """ Extracts date from YYYY-MM-DD format and returns a date object. """ date_fragments = raw_date.split("-") return datetime.date(*[int(i) for i in date_fragments])
68cc9fdd59e034a03eab0f924f6df0dcd12864f1
0478f00a027609e35d6953808b306eca2a4f4f2b
/d_robot/Send.py
a8e0d7fe31f4fc1f9ab65ce091d8e2ec898565b9
[]
no_license
GEDS1990/danmu_robot
428760c7af6fdc0e11717af2688a92c4e0c25145
bb5f5d1c5b7c5608eeda69d432e3aaa87d69642e
refs/heads/master
2020-04-02T06:32:50.839809
2018-06-21T13:14:59
2018-06-21T13:14:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,018
py
Send.py
#!/usr/bin/env python3 #-*- coding:utf-8 -*- #导入模块 import requests #1. import time import random import judge import study import win32api,win32con #程序运行判断。。。全局 Start = 0 need_send = 1 need_study = 0 Robot_Time = 1#range in (1,6)自适应 my_ns = "烟雨s浮尘" send_text = '' base_data = {'23333','6666','flag','前方高能','高能','233',...
6d769b1eb8cd6ed7ce1bdf2dcdf9ac1f01fe1ec0
e902b87e574341e612c834e204b7d0544029335c
/naming.py
acbc8b3611416c621577fe8578f29a1bd60dd876
[]
no_license
Esther-Wanene/training101
d1e8e38c348bbebb0e7ce43a66a0bfbd44eb1f27
c1e6bc2e319e8ef0c88480e8b84d3dc507295eb2
refs/heads/master
2020-04-25T23:34:43.884306
2019-02-28T17:07:43
2019-02-28T17:07:43
173,150,423
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
naming.py
5name = 12 print(5name) total marks = 10 #a variable cannot start with a number #a variable cannot start with a space # a variable name cannot include special characters total5 = 20 # ending or having a number in the middle is okay # a variable cannot have reserved words = 20 #python reserved words list(assignment) #y...
8899abccbce8a94e21112f322836e9e573670aa9
da2c90fd4a2ca07af4b9f62510faecb5f0c96488
/agmo-cnn/cnn.py
d8495f4c1a35b72ca0143e805b53ca8b4e41d7b9
[]
no_license
yonelyvan/gcnn
74a758bd0fcfb5b220f1135af46e2d477c4848db
4085291c4254a416f6ddb535fe02ba80dfac02a4
refs/heads/master
2020-03-30T00:35:35.329175
2018-12-16T23:38:02
2018-12-16T23:38:02
150,532,281
0
0
null
null
null
null
UTF-8
Python
false
false
8,624
py
cnn.py
# entrenamiento y prueba from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Convolution2D, MaxPooling2D from keras.models import model_from_json from keras.utils import np_utils from keras.preprocessing.image import img_to_array ...
c7d8303757507bc607b35e7478e1adff5e8d102f
0e3176402334f1014a244e6206df5fe66e182438
/scripts/py2neoImportCSV.py
5d1b71d4ae4ef6f8a5e0fadacaa2c1dc61404f18
[]
no_license
haley/BigLittle
cdacb605caa0da417a0d6d446d9484e86eed2664
ad2120d69d74724100ff0929f1d1c052de302236
refs/heads/master
2020-03-22T02:37:34.167250
2019-02-27T23:05:11
2019-02-27T23:05:11
139,383,261
0
0
null
null
null
null
UTF-8
Python
false
false
1,575
py
py2neoImportCSV.py
from py2neo import Graph, Schema graph = Graph(auth=("neo4j", "137137137")) graph.delete_all() # Create Indexes for primary keys of entites tx = graph.begin() tx.run('''CREATE INDEX ON :Member(ID)''') tx.run('''CREATE INDEX ON :Organization(ID)''') tx.run('''CREATE INDEX ON :User(ID)''') tx.commit() # Create Entitie...