blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
8424d48df45764507a31d8a1ab65bd44b3544d9b
aa2210cbc53e2892f2d7192085433950879b3e93
/file_summary_1.py
a2aa31b77215d790056587eed7df6145cb8b9d87
[]
no_license
6188506/LearnPythonHardWay
dddc9f076902e94ba1cbff24142237ea7cdeeb28
bd071a6602a1cde297209fa2339ebe3d96da6441
refs/heads/master
2021-01-20T04:11:36.536522
2018-05-03T09:01:38
2018-05-03T09:01:38
89,654,909
1
0
null
null
null
null
UTF-8
Python
false
false
202
py
#from sys import argv #script, destination_file = argv #print script #print "read file from ex1 to ex41,and write to a argv file" x = 6 print open('e:/learnpythonhardway/ex'+str(x)+'.py','r').read()
[ "6188506@qq.com" ]
6188506@qq.com
79feeaca9b02f648fa48495c3481b1b1940c3057
406abf223c6eaca3ec4741e7136cfc2fe819022b
/api/utils.py
d778f462a585c6d1f73e13507c6ed37c3e75ed4a
[]
no_license
WarrentLee/ImgChangeServer
e068132e2430863698870038d2627a79e2bb51b3
14e9658e75ab2eebe0cbafa119410ec2c6200321
refs/heads/master
2022-10-07T15:36:03.136973
2020-06-10T01:41:50
2020-06-10T01:41:50
269,850,341
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
from flask import Flask from database.model import db import os, json from config import Config def create_app(name): app = Flask(name, template_folder='../templates') # app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL', 'sqlite:///' + os.path.join(app.root_path, 'data.db')) print("Database...
[ "1065791740@qq.com" ]
1065791740@qq.com
1161c6ec01e8bf8124199a123fc850feb16f7924
27c94d7e040902d3cdadd5862b15e67ec2ee4b6e
/exps/NAS-Bench-201-algos/DARTS-V1.py
67441af82a7bc2f760fa028163eb4ca9c8887773
[ "MIT" ]
permissive
D-X-Y/AutoDL-Projects
8a0779a7710d809af2b052787928d8d34c14d0d9
f46486e21b71ae6459a700be720d7648b5429569
refs/heads/main
2023-08-13T10:53:49.550889
2022-04-24T22:18:16
2022-04-24T22:18:16
168,538,768
989
197
MIT
2022-04-24T22:16:21
2019-01-31T14:30:50
Python
UTF-8
Python
false
false
15,785
py
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020 # ######################################################## # DARTS: Differentiable Architecture Search, ICLR 2019 # ######################################################## import sys, time, random, argparse from copy im...
[ "280835372@qq.com" ]
280835372@qq.com
587c0100e02d4abc95b9fb79c169f06d3ed8b47b
891c267df1228d42153ff1a36d6b92b58a32f435
/schemes.py
ad91237c7020256b802593dc48fb3b750e821042
[]
no_license
ellawang44/numerical-advection-eq-MATH2306-
eaa6be239e1d27f1aed2cb29bba4fdfde305a081
de410631ec9d2fcb68c7aa2405f2cd785cb1c604
refs/heads/master
2021-07-21T12:17:50.392999
2017-10-25T02:15:15
2017-10-25T02:15:15
106,899,828
0
0
null
null
null
null
UTF-8
Python
false
false
568
py
def ftbs(jn1, j, C_r): """Forward Time Backwards Space Scheme""" return j - C_r*(j - jn1) def ftcs(jn1, j, j1, C_r): """Forward Time Centered Space Scheme""" return j - C_r/2*(j1 - jn1) def ftfs(j, j1, C_r): """Forwards Time Forwards Space Scheme""" return j - C_r*(j1 - j) def lax_wendroff...
[ "u6083620@anu.edu.au" ]
u6083620@anu.edu.au
3d4eeac4dc2bacb190a2ec396de0cfce8de00b15
902215df8f073b83b5815657d7b69fd6d67c8b5f
/kkd/views.py
00c6807b8480442a788fd0a2ca628a9bf47f4ca8
[]
no_license
k821209/KKD_GO_DB
e7643209da7d33cc1eee1395430046fd41199af7
9745dcb2c2a62db08b239716dfc4f3581200bb8c
refs/heads/master
2020-04-07T05:48:01.054782
2018-05-02T05:48:47
2018-05-02T06:33:00
124,186,255
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from django.shortcuts import render def show_go_list(request): return render(request, 'kkd/go_index.html',{}) # Create your views here.
[ "kangyangjae@gmail.com" ]
kangyangjae@gmail.com
8104871522b317d80e9b8bcd58d1d04195096050
57385c8ae2b10d01c2dede1d69f1887d8a8a7ac0
/manage.py
001c29815eafae252644ec0a25538483b622b402
[ "MIT" ]
permissive
bruno-dash/teste-5
151efb6558168c20d3320c510893a922e2d68ee1
484cc065673fe859cda571b208be79d82368eeae
refs/heads/main
2023-08-19T01:37:10.334089
2021-10-16T23:27:45
2021-10-16T23:27:45
417,916,703
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'teste5.settings') try: from django.core.management import execute_from_command_line except Impor...
[ "bonofre36@gmail.com" ]
bonofre36@gmail.com
371f634ce0aaff313e172b3b8cd67e6b98119edc
cdcaf074da4a38c2d653705225e8578e5c8a1372
/爬取天气.py
03c682424390894b35734bd1d8e09a7017f5d30c
[]
no_license
475271359/TST
f71b8632ae06f3963e9b440d8c26885fe6b9be58
d9cbd24bab66f4f92718f424a40345ae3944695c
refs/heads/master
2020-11-26T04:25:04.989105
2020-03-10T03:37:27
2020-03-10T03:37:27
228,964,176
0
0
null
null
null
null
UTF-8
Python
false
false
3,268
py
""" 目标网站: 2345天气网站 总目标:爬取北方大区所有城市的历史天气。 阶段性目标:爬取山东济南过去一年的天气数据。 输入内容: 分析网站: 待爬取页面:http://tianqi.2345.com/wea_history/54511.htm 待爬取数据:数据在js里面,http://tianqi.2345.com/t/wea_history/js/202001/54511_202001.js 构建循环,用request库,批量下载。 处理内容: 不是标准的json, 实现返回的javascript解析,得到目标数据。 对于javascript的json如何解析? 使用tqInfos = demjson...
[ "noreply@github.com" ]
475271359.noreply@github.com
4816b6ce56b6ba10760fc6ec50b511666a0ef942
c0f5d309576f791f8cc062e2d0cad340eec41d7d
/3.py
846552142673f67774ae9cc5803b41248ec09248
[]
no_license
mjjin1214/algorithm
fa91455ab792c38d01fd210c12e53e50f516eb55
423119406061443939b4b966c7d9f1513544dd03
refs/heads/master
2020-04-22T19:31:23.981387
2019-04-05T07:58:10
2019-04-05T07:58:10
170,610,108
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
import sys sys.stdin = open('input2.txt') def subset(n, su): global visit, count if n == len(score): if not visit & (1<<su): visit ^= (1<<su) count += 1 return subset(n+1, su+score[n]) subset(n+1, su) T = int(input()) for t in range(T): N = int(input()) ...
[ "moc0etan@gmail.com" ]
moc0etan@gmail.com
ae9c47cbad8ea97eded1a2947f4a8a01472b1951
be2fe3d75f5d08d44d207de42309aefac90f8c64
/O Big.py
02c8fc7d2f7e6ff0e6cb59e6ce33be3bbad2de42
[]
no_license
lucasilvabc/CS241
be18016862b420da0a7d44d9d6ab49aa76111e81
e94487a7d4b1e4b282de8df419fa2abad61f2087
refs/heads/main
2023-04-06T20:11:01.283402
2021-04-19T23:42:58
2021-04-19T23:42:58
344,626,769
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
def contains(haystack, needle): # Does the haystack contain the needle? for item in haystack: if item == needle: return True return False
[ "noreply@github.com" ]
lucasilvabc.noreply@github.com
d874e4f137ec4de13520364ebc883e120ec966a1
7f19038537cfafb2c725973d36ae0d1ae767995f
/Labs/lab10/lab10.py
378f26a0b28368e93b796d5f88913dbfcea81dc5
[]
no_license
aaeissa/UMBC-CS-201
f532684734543dd7a16698b61f1824443dfeb23e
c07a97469fc9c3a3b91e5228880abeb49918691f
refs/heads/master
2021-01-13T12:49:50.373730
2016-10-29T18:30:52
2016-10-29T18:30:52
72,298,768
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
def convertToDict(info): stateFile = info.readlines() myDict = {} states = "" for line in stateFile: states = line.strip() key, value = states.split(",") myDict[key] = value return(myDict) def main(): print("Welcomet to the State Abbreviator.") info = open("states.txt", "r") myDict ...
[ "ahmedeissa33@gmail.com" ]
ahmedeissa33@gmail.com
f5a8345f6e04ba694a886993167e2ae60ef1dcd4
8a6a96d487a0933293a563b04c24d08907608920
/app/auth.py
85c5eecc234752549804a0b229487c55dc6041ed
[]
no_license
shuxue051/ninja
21ec07318f8c868e61659b977edce1ebdefc8e97
ccb9724ff6329b82e18f839bb76246cae899fe99
refs/heads/master
2021-01-10T21:04:20.004674
2014-09-24T02:50:25
2014-09-24T02:50:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,941
py
import os, datetime from flask import current_app, Blueprint, render_template, abort, request, flash, redirect, url_for from jinja2 import TemplateNotFound from app import login_manager, flask_bcrypt from flask.ext.login import (current_user, login_required, login_user, logout_user, confirm_login, fresh_login_required)...
[ "shuxue051@gmail.com" ]
shuxue051@gmail.com
c2f2d9873572b84a36f2345329ebd77f92a88cbe
98e1716c1c3d071b2fedef0ac029eb410f55762c
/part15-statistical-thinking-1/No04-Bee-swarm-plot.py
0b503f7631dcaaedd5a7afe2edbda8d651de8a7c
[]
no_license
iamashu/Data-Camp-exercise-PythonTrack
564531bcf1dff119949cbb75e1fd63d89cb2779f
c72a4e806494f0e263ced9594597dc8882c2131c
refs/heads/master
2020-07-22T00:23:12.024386
2019-04-12T09:24:42
2019-04-12T09:24:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
#Bee swarm plot ''' Make a bee swarm plot of the iris petal lengths. Your x-axis should contain each of the three species, and the y-axis the petal lengths. A data frame containing the data is in your namespace as df. For your reference, the code Justin used to create the bee swarm plot in the video is provided below:...
[ "beiran@hotmail.com" ]
beiran@hotmail.com
0866ea3ae0e864e61eef207ffc5ef2936d10b99e
9e6bab4664f9275896b510209a83d5917b4746e1
/apps/moca/migrations/0003_merchantprofile.py
7d57bdec7486b538d9b0c963255d7ab013ee3543
[]
no_license
manticarodrigo/moca
4a25215715a11b0a85d0ce65388b35df8c799eed
d8cce8dc5c88e8dc944bb7c5c89e11a86e009e03
refs/heads/master
2023-08-03T08:25:52.856943
2019-12-04T22:20:00
2019-12-04T22:20:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
# Generated by Django 2.1.10 on 2019-12-04 18:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('moca', '0002_device_auth_token'), ] operations = [ migrations.CreateModel...
[ "manticarodrigo@gmail.com" ]
manticarodrigo@gmail.com
7afc92885276c205066adf4255d7d46f5f5e60fb
30f9e6a5f649b52b5d1a0ae606f44764038f6028
/pai-fs/fsimpl/Errors.py
0ad8850b971ccf904dbdae10d1b94181ddf962f7
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
unixcrh/pai
97d6ffe6ff16eecd91a8e5222c7f4b33efddb1aa
5c1836edc1db6e7d3b23ad2416fec309d48fc677
refs/heads/master
2021-04-15T09:12:25.198703
2018-03-26T09:40:39
2018-03-26T09:40:39
126,845,731
1
0
MIT
2018-03-26T14:59:16
2018-03-26T14:59:15
null
UTF-8
Python
false
false
1,449
py
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation # the rights...
[ "v-yifxio@microsoft.com" ]
v-yifxio@microsoft.com
cb1e1c4fd0adabebcd87bc33eefe453ec2df48fa
942ee5e8d54e8ebe9c5c841fbfdd1da652946944
/1001-1500/1443.Minimum Time to Collect All Apples in a Tree.py
e8ae7ff0deadce1de133f2d3d5feb31d43fde59a
[]
no_license
kaiwensun/leetcode
0129c174457f32887fbca078fb448adce46dd89d
6b607f4aae3a4603e61f2e2b7480fdfba1d9b947
refs/heads/master
2023-08-31T07:30:50.459062
2023-08-27T07:59:16
2023-08-27T07:59:16
57,526,914
69
9
null
2023-08-20T06:34:41
2016-05-01T05:37:29
Python
UTF-8
Python
false
false
728
py
from collections import defaultdict class Solution(object): def minTime(self, n, edges, hasApple): """ :type n: int :type edges: List[List[int]] :type hasApple: List[bool] :rtype: int """ graph = defaultdict(list) for edge in edges: graph[e...
[ "noreply@github.com" ]
kaiwensun.noreply@github.com
59a23d259eca385a7a14f82cc06da91203ce8f7c
9e30d4e6e14c5a57d99f80b28b59ee42f23fe4eb
/Listas.py
c1caff2066d60c415e7c5c3aedf552bd7ca108f7
[]
no_license
lukeencinas/EjerciciosExtraPython
408b1208f526a11a4ae214fd8c15b3fd31216626
e75378d8b0fb12684c5cfeba396a50d3ec030c1d
refs/heads/master
2020-05-09T18:25:33.295651
2019-04-14T17:04:31
2019-04-14T17:04:31
181,341,719
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
#1) e1 = ["F. de Computadores", "Visualizacion","Fisica","Quimica", "Historia", "Lengua"] # print(e1) #2) e2 = ["F. de Computadores", "Visualizacion","Fisica","Quimica", "Historia", "Lengua"] # for i in e2: # print("Yo estudio: "+i) #3) e3 = ["F. de Computadores", "Visualizacion","Fisica"] # nota = [] # for i in e...
[ "noreply@github.com" ]
lukeencinas.noreply@github.com
f7bb5b008461cd4f51770163a3cf7e600d784405
81c5c07e1144747dc0e98f8dffb287a69be1eba7
/score_mcc_bin.py
686c4e86fcab42e4f12a69f6f893e59e1cfe31ee
[]
no_license
twistedmove/e2e_antispoofing
acbb9ec5bc4454c1698fc355d0c0fee3bf70006e
686dfb515b2c568a1006136f56bbaad0419f0787
refs/heads/master
2020-09-07T10:41:12.024794
2019-10-06T19:28:19
2019-10-06T19:28:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,454
py
import argparse import numpy as np import glob import torch import torch.nn.functional as F import os from kaldi_io import read_mat_scp import model as model_ import scipy.io as sio from utils import compute_eer_labels, set_device, read_trials, get_freer_gpu def prep_feats(data_): #data_ = ( data_ - data_.mean(0) )...
[ "joaomonteirof@gmail.com" ]
joaomonteirof@gmail.com
6c1a65c48e423d27b57f75c12495f1387113b2df
3a4ecc7f7db23e92b7f8e406d3a73a77c53e1472
/src/chapter02/c2_df1.py
6026dc4be928099e2aae64f9481d1a1313b6da19
[]
no_license
Parthi3610/pandas_workbook
b89b768f2d99cb5f042accbaebc1470bc350565e
6e61f67db42ff708b6f40a9fb96b755085fe6587
refs/heads/main
2023-01-19T08:52:37.000264
2020-11-06T03:58:38
2020-11-06T03:58:38
303,878,391
0
0
null
null
null
null
UTF-8
Python
false
false
2,071
py
import pandas as pd import numpy as np movies = pd.read_csv("C:/Users/preet/PycharmProjects/pandas_workbook/src/data/movie.csv") movie_act_dir = movies[ [ "actor_1_name", "actor_2_name", "actor_3_name", "director_name" ] ] print(movie_act_dir.head()) print(type(movies[["dir...
[ "parthi_3610@yahoo.co.in" ]
parthi_3610@yahoo.co.in
ed321ee3351dd686798f469165a774a3b522d685
8541f96e5f48780050a7995ed735c70d4f3c2642
/test/test_validation.py
5fb04f8372aea80988cd6820c8839dc4e3d5c76a
[ "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
influence-usa/lobbying_federal_domestic
ede64752f81b6a8496a9f6b31b3f2a6c3a5f485e
117a1991e01a203c2c181c1c6163b044c4d5c56f
refs/heads/master
2021-01-02T23:02:57.140303
2016-11-30T22:47:46
2016-11-30T22:47:46
17,500,504
7
2
null
2014-05-08T21:32:29
2014-03-07T02:39:15
Python
UTF-8
Python
false
false
3,903
py
import json import pytest import validictory from utils.validate import validate_uuid, validate_url, validate_email @pytest.fixture def uuid_fixture(): data = json.loads(''' { "uuidInt": 117574695023396164616661330147169357159, "uuidHex": "054a4828074e45f2...
[ "blannon@gmail.com" ]
blannon@gmail.com
f442cd7e453fbda6168780d39defdc6005872da8
576e36669d9012c244fe2f777314ba1a6d903277
/ChefAndPizza_problem_PCJ18G.py
fe82a5fe7766e9a759c1bf080cb7195945214b8b
[]
no_license
OlhaKuzaka/algorithms_python
cf26658e1f70491eda4cb636269c0373aed9f76d
14edacc8f0c0040fc95e9cae0e88515ac5293985
refs/heads/master
2020-03-26T10:37:50.018355
2018-08-15T05:03:23
2018-08-15T05:03:23
144,808,431
0
0
null
null
null
null
UTF-8
Python
false
false
1,376
py
# All submissions for this problem are available. # Chef's pizza is the tastiest pizza to exist, and the reason for that is his special, juicy homegrown tomatoes. # # Tomatoes can be grown in rectangular patches of any side lengths. However, Chef only has a limited amount of land. # # Consider the entire town of Chefvi...
[ "o.kuzka@gmail.com" ]
o.kuzka@gmail.com
bfa7845a3715e92b22b02ae33fc01bfb05d211e5
29e82a7b9412b10600fb5c7638c0918e08af67d7
/exps/algos/R_EA.py
bc3345bcc4569b24352b35198ea4b2200718e996
[ "MIT" ]
permissive
chenmingTHU/NAS-Projects
faa2edccd821b0ae0876179a1b02e7872d4bd91e
f8f44bfb31ed50c7156f9125ba34e49159848fb7
refs/heads/master
2020-12-02T14:48:17.363203
2019-12-29T09:17:26
2019-12-29T09:17:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,177
py
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ################################################################## # Regularized Evolution for Image Classifier Architecture Search # ################################################################## import os, sys, t...
[ "280835372@qq.com" ]
280835372@qq.com
cb73af820437abcd75867aff99c64c43744110ef
c2c1fffabcdbc81cedfd039a1090000ff70f6968
/Proxy/ProxyGetter.py
2243f29bd3d3d11d82bf42cdbb1e589307628c55
[]
no_license
nightstalkerx/ProxyPool
c92eafa9badc32bf085d44f9493e3b2a805bc602
3982b293f6091fae36f39cc0683ec47ebf2020d1
refs/heads/master
2020-04-21T23:25:11.544582
2018-09-05T11:01:16
2018-09-05T11:01:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,737
py
import sys sys.path.append('../') from Util.UtilFunction import get_html_tree from Util.WebRequest import WebRequest class ProxyGetter(): """ 代理获取类 """ def __init__(self): pass @staticmethod def get_proxy_one(): """ 采集:http://www.ip181.com/ :return: "...
[ "610426459@qq.com" ]
610426459@qq.com
aaab34fc3d46736a9c6abdb2195fc43a0ba0f6f4
75f48cb18eb83fd4f9fd1c7dd0543fcaaf781342
/members/migrations/0029_profile.py
e7b48cc47f392bbf73ff5bb36412d5885b6a87dc
[]
no_license
trouvaay/trouvaay
f28a879e60de6212cbf30904c4471158c3907ebb
5440928238428c9e60be61e75910ad8d78866426
refs/heads/master
2021-03-27T10:11:09.602842
2015-06-05T22:06:28
2015-06-05T22:06:28
27,945,386
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import localflavor.us.models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('members', '0028_auto_20150220_1922'), ] operations = [ migrati...
[ "sergey@lanasoft.net" ]
sergey@lanasoft.net
93b57b5d8ab7beae315d919322890e775a1998e9
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_188/ch78_2019_04_04_19_41_08_100209.py
61335cb39d3ea9f3ad223e32472973ee949e080e
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
from math import sqrt def calcula_tempo(atletas): tempo_de_conclusao = {} for nome in atletas: tempo_atleta = sqrt(200 / atletas[nome]) tempo_de_conclusao[nome] = tempo_atleta return tempo_de_conclusao def atleta_mais_rapido(dicionario): menor_tempo = 0 melhor_atleta = "" for ...
[ "you@example.com" ]
you@example.com
158c8395e7b37a739bbe7438d2a3fb3853747fb2
0b20f4ce14b9ff77c84cedbecbaa29831335920d
/tests/cloudformation/file_formats/test_yaml.py
76149f86216a57acc3de965d65a22daae34bad5a
[ "Apache-2.0" ]
permissive
sergesec488/checkov
219c1b3864ab4f70b39a4cd79b041e98f3145364
56008e1c531b3626f14716067731be6e673040bc
refs/heads/master
2023-04-10T12:26:49.749864
2021-02-26T18:36:52
2021-02-26T18:40:58
342,883,133
0
1
Apache-2.0
2023-03-30T13:31:25
2021-02-27T15:01:08
null
UTF-8
Python
false
false
681
py
import os import unittest from checkov.cloudformation.runner import Runner from checkov.runner_filter import RunnerFilter class TestYamlFileFormat(unittest.TestCase): def test_summary(self): runner = Runner() current_dir = os.path.dirname(os.path.realpath(__file__)) test_files_dir = cur...
[ "noreply@github.com" ]
sergesec488.noreply@github.com
c03967857b3abb3a4db4df537c2c4342ac393b68
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/scatter/marker/line/_width.py
108770c589b4e4605b6ff605e20647ef337325b7
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
465
py
import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='width', parent_name='scatter.marker.line', **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=pa...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
e6ce7ed7be75cb36861a415589dd9916147d2c3b
17ed1b63dcc519c1ddf91d500e2b1e80c8cb338f
/Fixed_Income_Project/pricing_2.py
82ee24b37e9daa928d8f3fa6f694ec9230ef7465
[]
no_license
khorwei01/reinforcement
6834187814901b216317c2e2e29eed873a43b242
cfd2a151d1ecfae9f00ed658b45304ef0ff43046
refs/heads/master
2021-11-01T00:15:05.047005
2021-10-18T07:43:16
2021-10-18T07:43:16
238,147,407
0
0
null
null
null
null
UTF-8
Python
false
false
9,703
py
# -*- coding: utf-8 -*- """ FI part 4 @author: Archer """ import numpy as np import pandas as pd from enum import Enum from scipy.stats import norm from scipy.integrate import quad from scipy.misc import derivative from math import log from scipy.optimize import fsolve # discounting methods from part1 i...
[ "noreply@github.com" ]
khorwei01.noreply@github.com
7556cf1918258fe40c2aabedcaf970d5535e3a6b
7c926109cda8e59cef6abf097774c1d64c7f77af
/app.py
18bb8ed0dbd02ac640d073f871277c93e192c80d
[]
no_license
zahraEskandari/corona_dashboard
f27ee1091a24cf622d1f631712036387760e6327
4c881800369a9c3be390409e4d9d146fbd5858c2
refs/heads/master
2021-05-20T04:15:44.021841
2020-04-01T13:24:15
2020-04-01T13:24:15
252,181,036
0
0
null
null
null
null
UTF-8
Python
false
false
29,609
py
#from flask import Flask import flask import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd import plotly.graph_objs as go import random import math import dash_table as dst from dash.dependencies import Input, Output import datetime import plotly # storing and anaysi...
[ "zahra.eskandari@gmail.com" ]
zahra.eskandari@gmail.com
db053d106eb43e3318aeb6cca68e054a75650c83
77cc444d492545c322da1c7819e81a6542e3a6ff
/likes/models.py
b98a20354d3401cce7bab157417a960e8de39b09
[ "Apache-2.0" ]
permissive
PingLu8/django-twitter
3bd3a646c8d74179160f8fad11c1fa40018d59e7
ef5c47a9b2cd6796d67028946b2ed1c7b0af51be
refs/heads/main
2023-07-08T05:38:47.605500
2021-08-11T04:00:07
2021-08-11T04:00:07
361,040,505
0
0
Apache-2.0
2021-08-11T04:00:08
2021-04-24T00:58:36
Python
UTF-8
Python
false
false
1,320
py
from django.db import models from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey from utils.memcached_helper import MemcachedHelper from django.db.models.signals import pre_delete, post_save from likes.li...
[ "noreply@github.com" ]
PingLu8.noreply@github.com
9e2de46d09baa08db907b3cdb46d3b08b3da73b1
87b906a183d6cf7f041356c8ff5aa2ee59d03a09
/Day 3/Ticket for photo.py
5e9236eaea7dbf2d0f4cf341142f621033e8885c
[]
no_license
amitshrestha-15/100daysof-code
558635f50c26568fb6186bf648e2b783bbc7d7c1
16969e8562ed49a88fbe010e02e27108ff5470c7
refs/heads/master
2023-05-21T08:07:50.820307
2021-06-04T11:53:23
2021-06-04T11:53:23
373,150,913
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
print ("Welcome to roller coaster!") height = int(input("What is your height in cm?")) bill = 0 if height >= 120 : age = int(input("What is your age?")) if age < 12: bill = 5 print("Child ticket price is $5.") elif age <= 18: bill = 7 print("Youth ticket price is $7.") el...
[ "amitstha1234@gmail.com" ]
amitstha1234@gmail.com
b4cebd6904d477cd8224278ad3c87bbe2000ae9e
ccbfc7818c0b75929a1dfae41dc061d5e0b78519
/aliyun-openapi-python-sdk-master/aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/CreateRouterInterfaceRequest.py
f3794b0030c799277bdbb14c640f9f31c41bee1c
[ "Apache-2.0" ]
permissive
P79N6A/dysms_python
44b634ffb2856b81d5f79f65889bfd5232a9b546
f44877b35817e103eed469a637813efffa1be3e4
refs/heads/master
2020-04-28T15:25:00.368913
2019-03-13T07:52:34
2019-03-13T07:52:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,414
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "1478458905@qq.com" ]
1478458905@qq.com
b29f5d7cbbd6924909c5ec897b40f7a01208f045
92115d37e1199a21367986cb97ddc64580432d34
/seq2seq/data_dial/create_dial_data.py
5f8bb9d4d1605857aa6028183a295eac6d35494e
[]
no_license
MasatoMiyoshi/tensorflow_tutorial
9575acb495ec16bb91fdbc8b9e22bee7b451ac0a
cc51632f818aa2e2c73400fb6348d108e41d66bf
refs/heads/master
2021-07-13T18:02:33.072835
2020-05-11T09:10:58
2020-05-11T09:11:27
129,721,097
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
# -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals, absolute_import import sys import os import codecs import re import glob import commands reload(sys) sys.setdefaultencoding('utf-8') dirname = "./json/init100" fh_u = codecs.open('src.txt', 'w', 'utf-8') fh_s = codecs.open('tg...
[ "mirasi1h@gmail.com" ]
mirasi1h@gmail.com
f60987e55994a05e1fbf45fa4d8ded677baca05b
732374714ffe0e0f2c07a493a2ee71c9271fdce0
/mysite/settings.py
bcd771fb691401a56d55a3106a4ee650b115e261
[]
no_license
aaronahmid/mosunhomesrealtors
721fb20d671f1a58c64abc8bdf1209a5ab3236f1
561b56fd90179e163f0c861dae1d451cc1cfc662
refs/heads/main
2023-08-13T02:22:46.005517
2021-10-09T05:15:59
2021-10-09T05:15:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,269
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.2.7. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os imp...
[ "thormiwa04@gmail.com" ]
thormiwa04@gmail.com
6b201919d4ba0b553e94078cae06ca3b7bd4d89a
3b7cc69990b01cc6765435cc513d06f63edea334
/Programmers/다리를 지나는트럭.py
57f7ffc00c6f76bc4d8a94aca27ebbeb8d312612
[]
no_license
naldal/This-is-coding-test
9d531e6131f40ee8ecf02fc038f5d2c040325e6f
a5170e0780ccb9f62c963ae46e45bebd1f9d288f
refs/heads/master
2023-01-05T09:39:38.643980
2020-11-05T09:07:15
2020-11-05T09:07:15
293,424,017
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
def solution(bridge_length, weight, truck_weights): answer = 0 for i in range(len(truck_weights)): print(i) total_weight = truck_weights[i] truck_count = 1 reduce = 0 if total_weight < weight: for j in range(i+1, len(truck_weights)): total_weig...
[ "cec7378@gmail.com" ]
cec7378@gmail.com
8c02b65c424703478a511dc63b5449224c33868c
d2d9ff977d8eb21420d6f3dc5f9476850ebcc5e9
/ABC_SMC_exponential_F5.py
1d9a14cf7871f9587428b409151c8bc433fd8962
[ "MIT" ]
permissive
GiuliaBell/ABC_SMC_codes
45d85fd22c2b36058f6a3b4cf66b0bc590209781
6587190456c9465a1cb056916d7502a1ea8d6330
refs/heads/main
2023-04-17T20:01:20.503306
2022-03-08T13:09:42
2022-03-08T13:09:42
467,183,547
0
0
null
null
null
null
UTF-8
Python
false
false
12,223
py
# Pyhton code to run the ABC-SMC algorithm to parametrise the exponential model with cell generations # making use of F5 T cells data. # Reference: "Approximate Bayesian Computation scheme for parameter inference and model selection # in dynamical systems" by Toni T. et al. (2008). # Import the required modules. impor...
[ "95767138+GiuliaBell@users.noreply.github.com" ]
95767138+GiuliaBell@users.noreply.github.com
15a3b3cd280903839a7706abb9e05c8e6621ad2a
837877c72a803fc62eea396e466dff36cffa5028
/dnnlib/submission/internal/__init__.py
52a7fce687d3906d061a6a76834e222143555b9b
[]
no_license
tantantetetao/StyleGANv2-Re-Implementation
55d6c9e98e2d98450734937133348acb197bf5d8
bfa0c410073863ab199cc5e5fbafb3dd2da35ea9
refs/heads/master
2022-12-12T23:32:53.423432
2020-09-14T07:26:27
2020-09-14T07:26:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
# Copyright (c) 2019, NVIDIA Corporation. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://nvlabs.github.io/stylegan2/license.html # Cheng-Bin Jin re-implementation. from . import local
[ "jinchengbin@huya.com" ]
jinchengbin@huya.com
8effb973e9606af222d40da9faf37e6076c24cca
7dac8d38552a8f8eb401158ed3aabffaf8f23251
/gobotany/site/migrations/0008_alter_document_upload.py
c2b8ece6b53b86964306fb7bec83afeba21b88a8
[]
no_license
newfs/gobotany-app
3b9933a55a2b7ab5adcdd10aa371b104c1a0850b
9030d08b9a1b8bdb0f897c6e482c09ef78cc4d3d
refs/heads/master
2023-01-11T02:49:04.585248
2022-11-17T00:56:30
2022-11-17T00:56:30
3,584,135
10
6
null
2016-02-06T23:07:24
2012-02-29T17:49:06
JavaScript
UTF-8
Python
false
false
497
py
# Generated by Django 3.2.15 on 2022-11-11 00:36 from django.db import migrations, models import storages.backends.s3boto class Migration(migrations.Migration): dependencies = [ ('site', '0007_auto_20210602_2000'), ] operations = [ migrations.AlterField( model_name='document...
[ "jnga@users.noreply.github.com" ]
jnga@users.noreply.github.com
016624cd89be6e7f3e25cc65d992a04808dc6ae2
9d008ba29c32180518e03a58e5b3cb946c8a1d6c
/app.py
fdfaa5b29ad43f850c5077d83e2b36ee18fab768
[]
no_license
MikeCarbone/Personal-website
9f5f25e031ca8be939fa26df89b44b1da51be871
16540283128cc7b711886dfdf2b99abd7d3c9af5
refs/heads/master
2021-09-02T06:10:44.005130
2017-12-30T23:19:00
2017-12-30T23:19:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
import tornado.ioloop import tornado.web import tornado.httpserver import os.path class MainHandler(tornado.web.RequestHandler): def get(self): self.render('main.html') class tempHandler(tornado.web.RequestHandler): def get(self): self.render('underConstruction.html') settings = dict( template_path = os.path....
[ "mfcbone@gmail.com" ]
mfcbone@gmail.com
620b6dda3cf88205a7c9f1e46efff99abe37eb7d
256728286889a60e5d8896efc6869483daba3280
/cinemanio/sites/imdb/migrations/0001_initial.py
1f14d2c4b9e565d481ff8bf0acc5215f8e05d89a
[ "MIT" ]
permissive
cinemanio/backend
5236be94d08ec79b9fc8d8973aee93ec8fad9b1b
c393dc8c2d59dc99aa2c3314d3372b6e2bf5497f
refs/heads/master
2021-05-01T13:02:08.102705
2019-11-10T14:33:37
2019-11-10T14:33:37
121,069,149
4
0
MIT
2020-02-12T00:09:03
2018-02-11T01:00:31
Python
UTF-8
Python
false
false
1,273
py
# Generated by Django 2.0.1 on 2018-01-26 01:06 import cinemanio.sites.imdb.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('core', '0001_initial'), ] operations = [ migrations....
[ "ramusus@gmail.com" ]
ramusus@gmail.com
908a7f137c7d77f79dcb503a8a9d2dda08602255
68072366b67058780f8a629b5a8fcebdfbec1590
/test/test_config.py
b0b51f77970482c314336dc1c2f2da8a7f6b56f4
[ "MIT" ]
permissive
markdrago/banter
fb6bf0aea3ac8e9dc8c82790911e09fbfd1f9d77
5d57d109bf9c3535750cfb845f08ccc861e38047
refs/heads/master
2021-01-19T19:31:19.024415
2015-11-09T13:18:10
2015-11-09T13:18:10
7,073,738
2
2
null
2015-11-07T16:41:49
2012-12-09T00:09:15
Python
UTF-8
Python
false
false
2,995
py
import unittest from mock import Mock try: from cStringIO import StringIO except ImportError: from io import StringIO from banter import config class TestConfig(unittest.TestCase): def test_get_value(self): contents = "[auth]\n" contents += "token = mdrago:102:abcdefghijklmnopqrstuvwxyz\n...
[ "markdrago@gmail.com" ]
markdrago@gmail.com
a71ce795ba83eeadfd0ca322c34f7d911d52d157
92a4bd6df16659e72d91b279f915d81b84d56c39
/GBN_window.py
bccc5c1cd549160c1a7459a268474e5ffdc5bc91
[]
no_license
banana16314/rdt
1d1d714dc34554065f37de59da5abf24fac4963c
1f1ca293c0c2462861997f0728a2bc9644f9a315
refs/heads/master
2020-12-30T15:29:41.671132
2017-05-19T04:39:12
2017-05-19T04:39:12
91,145,369
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
class GBN_window : def __init__(self) : self.packet_list = [] self.ack_list = [] self.resend_list = []
[ "18245032253@163.com" ]
18245032253@163.com
40719b630af8856497ca0e697dd33dee816eeeb1
ac042704660f07263a9b7918c9d19e8027e2c01b
/qn 9.py
adc05564fc75215eb2d78a4b3c7011f3db70e44f
[]
no_license
Prashant414/python
23387f2d205ceb36f141e4b4529ff9c3e80d2679
f5ff2b280b4bf29df2723b9d1d16690e65aaf62f
refs/heads/main
2023-03-21T10:23:32.119726
2021-03-09T17:59:45
2021-03-09T17:59:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
# Modify the above question to allow student to sit if he/she has medical cause. Ask user if he/she has medical cause or not ( 'Y' or 'N' ) anx=float(input("number of clases held")) x=float(input("number of clases held")) a=float(input("number of classes attend")) m=input("any medical issue type y or n") z=a/x*100 if ...
[ "prashantshyam09@gmail.com" ]
prashantshyam09@gmail.com
59f8819b81b135eec58e7e72e99829415c9a5917
2312db84a76baf32a918ed9d354dc324c842c3cb
/data-structure/array/max_ascending_pairs.py
168918681a9d68f94ef547f4f6c7a55cfcc5791a
[]
no_license
justdoit0823/notes
a6ec61c2429a76f7d9ac52d8535a97abfa96ee10
25da05f9fdd961949c56bcb11711934d53d50c9a
refs/heads/master
2023-06-22T23:17:17.548741
2022-10-19T15:15:15
2022-10-19T15:15:15
18,003,252
13
1
null
2023-06-14T22:29:39
2014-03-22T06:01:28
Jupyter Notebook
UTF-8
Python
false
false
1,103
py
"""Max ascending pairs.""" def max_ascending_pairs(a_list): m_low_idx = None m_high_idx = None c_low_idx = None c_high_idx = None for idx, val in enumerate(a_list): if idx == 0: c_low_idx = idx c_high_idx = idx else: if val >= a_list[idx - 1]: ...
[ "justdoit920823@gmail.com" ]
justdoit920823@gmail.com
376b7b79d23557f1e0c36c97dd6bb44441e25287
902fb2fdc99eb16df86344bee0ac5ac02d1686a9
/lib/my_requests.py
849dad0edf3f5591da57b5cf3bd0b20934093ae8
[]
no_license
Natasha093/LearnQA_PythonAPI2
ae665705af07f9752871004a9da247aaa1ecfac8
343ead661b0b54f6f2160381d77074b6824528c8
refs/heads/master
2023-07-09T05:28:30.287901
2021-08-17T11:24:49
2021-08-17T11:24:49
393,113,137
0
0
null
null
null
null
UTF-8
Python
false
false
2,043
py
import requests from lib.logger import Logger import allure from environment import ENV_OBJECT class MyRequests: @staticmethod def post(url: str, data: dict = None, headers: dict = None, cookies: dict = None): with allure.step(f"POST request to URL '{url}'"): return MyRequests._send(url, d...
[ "fanloko063@mail.ru" ]
fanloko063@mail.ru
0b9fdafd9012da3e7de11c97acde26a00ae5d363
91502409e1de21daca0ac771290acb1e840f298f
/src/Transformer-TTS/transformer.py
da18861a417b959b3b8cda76aa017327b6665c56
[]
no_license
ishine/MultispeakerTTS
d759db15604b9ebe3d8bedba27de99c849618d17
f0267faf57c9a6c0cdade88d01b25f4d82dae85a
refs/heads/master
2021-04-13T03:34:15.285892
2020-03-02T01:32:36
2020-03-02T01:32:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
import tensorflow as tf from tensorflow.keras import layers class Transformer(tf.keras.Model): def __init__(self, num_layers, d_model, num_heads, dff, input_vocab_size, target_vocab_size, pe_input, pe_target, rate=0.1): super(Transformer, self).__init__() self.encoder = Encoder(n...
[ "zakwwebb@gmail.com" ]
zakwwebb@gmail.com
edf977c8ee2771f059d611fdf4b49337c5b6119e
a4174a9d51577d9b72b4e5dcf1be56bc9b0d242b
/retinanet/model/head/builder.py
b4153ffafb41099f951afdc540259b1454c0ab31
[ "Apache-2.0" ]
permissive
lchen-wyze/retinanet-tensorflow2.x
996396724c858fdc954880f3c20db7865d930a87
86404a2da6ec636d4b1aef768ac52f018c127798
refs/heads/master
2023-08-23T06:12:39.629288
2021-10-18T15:52:23
2021-10-18T15:52:23
418,040,957
0
0
Apache-2.0
2021-10-17T06:26:21
2021-10-17T06:26:21
null
UTF-8
Python
false
false
2,157
py
import numpy as np import tensorflow as tf from retinanet.model.head.detection_head import DetectionHead def build_detection_heads( params, min_level, max_level, conv_2d_op_params=None, normalization_op_params=None, activation_fn=None): if activation_fn is None: ...
[ "sriharihumbarwadi97@gmail.com" ]
sriharihumbarwadi97@gmail.com
6216f8236cd09f608eacb70d7507bc0ac3a525f7
b4491eb4aea6bb8620373f4c1cdb61639f56bb75
/lesson_7/task_2.py
360e34748b2eb78813b6611aca932ecfd1d03ab6
[]
no_license
ApolloNick/Memory_holder_for_Hillel
92643a2fa11b726b218f2f707c302807352dbeb7
12df12fb4e467efd2becf44fb0771f37014c8be7
refs/heads/main
2023-07-05T07:30:27.417183
2021-08-22T19:20:31
2021-08-22T19:20:31
374,915,594
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
def convertor_for_temperatures(amount_of_degrees: int, type_of_system: str): if type_of_system == "Celsius": value_kelvin = amount_of_degrees + 273.15 value_fahrenheit = float(amount_of_degrees) * 9.0 / 5.0 + 32 return value_kelvin, value_fahrenheit elif type_of_system == "Kelvin": ...
[ "nkostrov7@gmail.com" ]
nkostrov7@gmail.com
3a141b982aad58e4efe5283b889680634f9fbab5
9ca57420255bdc8df9f9d34989a28457ef818d66
/src/tests/test_era5_processor_service.py
306d90806bca697684582fcc3fff6676eb9d2d5c
[]
no_license
SatelliteApplicationsCatapult/csvs-nc-processor
6b8475bbbc2e415e718ff9b0acbf7c909fe7d0ba
c0ab5dfee88e78717d6589b77b1d64f2fe5b5f03
refs/heads/master
2023-01-13T08:57:09.991893
2020-10-23T14:49:51
2020-10-23T14:49:51
294,157,819
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
import pathlib import unittest from services.era5_processor_service import merge_nc_files, MergeError, concatenate_nc_files extracted_daily_data_path = 'tests/resources/extracted_daily_data' extracted_monthly_data_path = 'tests/resources/extracted_monthly_data' class ERA5ProcessorService(unittest.TestCase)...
[ "noreply@github.com" ]
SatelliteApplicationsCatapult.noreply@github.com
f668e324466fcbe5eacf8b3b1dfb24bd51d73cfd
5ef9d5114cd6c16c22f289f65f86de16bc15e46b
/src/smartcity/module/modelling/arima/x1ClassifyTrafficArimaData.py
fbf39b98f135f78e0dd10f28cb0309f40dceefeb
[]
no_license
decmhugh/smartertraffic
d30b79d4d8d602741c2e8aa368cce7886b11558f
b672c4cd1ce26e2c4b58f3799da978ab890b5ece
refs/heads/master
2021-01-02T22:30:51.091589
2014-10-21T09:04:41
2014-10-21T09:04:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,369
py
''' Created on 3 Dec 2013 @author: declan ''' from pymongo import Connection as mongoConn import os,gc,sys import numpy as np from datetime import datetime, date from pandas.core.series import TimeSeries from sklearn import cross_validation from pandas import DataFrame as df from sklearn import linear_model from bson ...
[ "declan.mchugh@gmail.com" ]
declan.mchugh@gmail.com
7c7221fa64006ffeb187d80c5c61089cad20c41f
04b3d872caa5c057642b2b6ed672675e6c58ac53
/yelp_vch_scraper/yelp_vch_scraper/middlewares.py
0cfc3fe6a04fe86f936d968c39e9750d68c49b4d
[]
no_license
brandontkessler/scrapers
4a6b59321125e73fc9c8660d00cea1c199a7eb1a
413d9b3d3b06b8cc7955cde117590b6b7fc0f699
refs/heads/master
2022-11-06T18:16:11.812766
2019-07-30T19:22:34
2019-07-30T19:22:34
199,532,189
0
0
null
2022-11-04T19:35:40
2019-07-29T22:01:07
Python
UTF-8
Python
false
false
3,613
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class YelpVchScraperSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, #...
[ "brandontkessler@gmail.com" ]
brandontkessler@gmail.com
1f0aab49aa5a6590e8778e8b8366970e2e0a08f6
62babb33b9bede95aac217db04636956279bb2e2
/bit operation/1395C Boboniu and Bit Operations.py
90ae03a3fd60423b3df792021485ced2af7a8c6a
[]
no_license
tycyd/codeforces
0322e31daf18544944c769fd2a50c6d006015e34
e0773f069c6c5793f9d9a07b61878a589e375a5f
refs/heads/master
2023-08-12T05:00:39.467404
2021-09-30T16:39:21
2021-09-30T16:39:21
266,847,425
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
from sys import stdin, stdout # 1 1 1 => 1 0 0, 0 1 1 # 1 1 0 0 => 1 0 0 # def boboniu_and_bit_operations(n, m, a_a, b_a): for k in range(513): cnt = 0 for a in a_a: for b in b_a: if ((a & b) | k) == k: cnt += 1 br...
[ "tycyd@hotmail.com" ]
tycyd@hotmail.com
1c78faf04ba1a79eed5b1f09d8a19e8c1175fe06
5eb003a2c4dc978a00de9fd9fac10ffc41c94297
/quadratic/views.py
fb7036c002d1b97869bef2bc99f0bc83b39e3437
[]
no_license
fedorchenko-a/ooniversity_django_courses_06
c1344d3b97520477e645f51187a74a553c1a8258
7070f49b000b402e0c2c04deb0c319115bfebf65
refs/heads/master
2020-05-21T02:23:36.296395
2017-04-08T18:35:00
2017-04-08T18:35:00
84,559,180
0
0
null
2017-03-10T12:45:57
2017-03-10T12:45:57
null
UTF-8
Python
false
false
1,970
py
from django.shortcuts import render from django.http import HttpResponse, HttpResponseNotFound import math from django.contrib import messages from . forms import QuadraticForm # Create your views here. def quadratic_results(request): message = {} diskr = '' if request.method == "GET": form = Qu...
[ "smolnax@gmail.com" ]
smolnax@gmail.com
8f3b6dd785a104a1985f13ba77bbd4751286ee03
7fd8a09fd94d09d568d67afcb4ecf3b60a936fe2
/Tests/TestEnvironment/test_config.py
ad9fcccfe8d638613e2087450489742dbd85bc2a
[ "MIT" ]
permissive
dev-11/eigen-technical-task
4c2ac82c02f2cbd6b7020d2cbfc33beca20db37f
c0b041fc2bd27d2706ccdab94f6eb618f17098bd
refs/heads/master
2021-05-20T22:14:32.015768
2021-03-28T12:02:50
2021-03-28T12:02:50
252,434,894
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
DIRECTORIES_TO_SCAN = ['test_docs/'] TXT_FILE_EXTENSION = 'txt' DEFAULT_INTERESTING_WEIGHT = 1 INTERESTING_RATING_THRESHOLD = 5
[ "otto@masterbranch.io" ]
otto@masterbranch.io
4286d6e8f7466f4a7c7b415049764bd995510e58
272cf6bd5f56812e14c2ed0df60d626859ec2c96
/imdb_scrapy/spiders/script.py
e4449b1818474a1e4a37f9c3fa7e6064e5dd476e
[]
no_license
abhinavjha98/scrapy_simple_hired
a1b5933be5a401585f6cdfef48299b765cf25303
a0dbf812d1d4a5e16d8bf46633bdc95b747f2fd3
refs/heads/master
2023-01-24T05:46:24.639774
2020-11-30T17:17:09
2020-11-30T17:17:09
298,634,627
1
0
null
null
null
null
UTF-8
Python
false
false
2,352
py
# -*- coding: utf-8 -*- import scrapy import urllib import requests # item class included here class DmozItem(scrapy.Item): # define the fields for your item here like: ApplyLink = scrapy.Field() Title = scrapy.Field() Company = scrapy.Field() Location = scrapy.Field() salary = scrapy.Field()...
[ "abhinavjha98ald@gmail.com" ]
abhinavjha98ald@gmail.com
06a75d32395897be1704baf76488c145cb2b23b8
779ae09963d3ee259ab8b9dc6f4d035dd551668c
/venv/bin/pyrsa-priv2pub
1b6424b1514d7ccc442c721d100d6e54a4ab307c
[]
no_license
manav2401/Apna-Hack-Ayega_hackout
5fa6473b96f3e02810c452de9b18e9b9295ab015
734240b844e20db845b0e03273dbb09f48686e6d
refs/heads/master
2020-08-06T19:17:34.357676
2019-10-13T16:01:45
2019-10-13T16:01:45
213,121,054
1
0
null
2019-10-13T15:04:35
2019-10-06T06:44:32
Python
UTF-8
Python
false
false
255
#!/home/nisarg/flask/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from rsa.util import private_to_public if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(private_to_public())
[ "nisshah1499@gmail.com" ]
nisshah1499@gmail.com
823daf20cb6341e16101ac5a8c0abc46ed7afb5f
92291e79a95c3c0876c7d5498c53b84e45e703de
/commands/abstract.py
85c036107c453a68bae11cdcd94e2b64157b51aa
[]
no_license
RafRaf/boobogram-bot
52932dfde614677bdd1c1c49a2b9de7fa74f454c
9ae3bc904cb7d333e452f5312e67002bae50ef80
refs/heads/master
2022-05-01T23:12:44.096690
2022-04-28T06:52:01
2022-04-28T06:52:01
51,752,737
5
0
null
2018-02-03T09:13:35
2016-02-15T12:03:27
Python
UTF-8
Python
false
false
160
py
class AbstractCommand: COMMAND = '*TYPE COMMAND HERE*' def handler(self, bot, update): raise NotImplementedError('Handler is not implemented')
[ "smartrafraf@gmail.com" ]
smartrafraf@gmail.com
a9735c0896569ca1a2fa0992ca72325452c956bb
6006b0452379166d5e4bc085227c8351bedd264a
/Tacotron/madeGspeech/record.py
b2aaa3d6991963d2619bb1f61c50cb045177b353
[]
no_license
firstcoding17/Tacotron
a0cd7d764d368afa71e820d1dda66f60b58590a7
234f739b1ab8fc55bf974679075c52d01e58fdbb
refs/heads/master
2023-07-25T08:40:48.849708
2019-12-23T18:17:52
2019-12-23T18:17:52
184,554,512
0
0
null
2023-07-06T21:20:42
2019-05-02T09:30:04
Jupyter Notebook
UTF-8
Python
false
false
1,670
py
##녹음 import pyaudio import wave import time RATE = 48000 CHANNELS = 2 # FORMAT = pyaudio.paInt16 DEVICE_INDEX = 2 CHUNK = 1024 SAMPLING_PER_SEC = RATE // CHUNK RECORD_SEC = 5 pa = pyaudio.PyAudio() try: if pa.is_format_supported(RATE, input_device=DEVICE_INDEX, input_channels=CHANNELS, inp...
[ "noreply@github.com" ]
firstcoding17.noreply@github.com
8c9849703cc07eca40e79e9815e37eca6f5ad5a7
77e2e024741473aa4bfaa91332ed9187130677b5
/names/my_subprocess.py
32fc1f9c5438500841b7e4a57c8a5fa499849222
[]
no_license
ld86/shad-course-work
444accbd802876d988b7a08c24a51b68b5bfbb87
0510e165378ec686455e8937ec146ed12a48063c
refs/heads/master
2021-01-25T03:54:43.656012
2013-08-23T07:48:56
2013-08-23T07:48:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
#!/usr/bin/python3.2 import os import time import fcntl import subprocess class IPopen(subprocess.Popen): def __init__(self, *args, **kwargs): """Construct interactive Popen.""" keyword_args = { 'stdin': subprocess.PIPE, 'stdout': subprocess.PIPE, 'stderr': subpr...
[ "frizzlywitch@gmail.com" ]
frizzlywitch@gmail.com
c27f9949af47f0826b64a66cfbde19ef82a82f72
efa326097d25e030666e75bf5a851e8c68fc62c2
/code/heuristic-stats-parser.py
0f421e1285d52ab3403d32f6a765e4d9aaf81293
[]
no_license
mzumsteg/downward-lab
940c4be2280bcffe4d6f907884a3a7ff01ef69c8
e3ba6e6747a4ba60ba185c8184c80763825ec7bf
refs/heads/master
2020-05-03T04:59:19.235859
2019-10-29T14:54:46
2019-10-29T14:54:46
178,437,108
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
#! /usr/bin/env python import re import logging from lab.parser import Parser class MultiPattern: def __init__(self, attribute, regex, mapper, required=False, flags=''): self.attribute = attribute self.mapper = mapper self.required = required flag = 0 for char in flags: ...
[ "mar.zumsteg@stud.unibas.ch" ]
mar.zumsteg@stud.unibas.ch
ddf61c3298a3b789b970f9e7a487613619465098
50d35003334d3947ac71717f670647cb7b954427
/data/ai.py
33d2484289294860a0951be232b5b6d7d3a98abf
[]
no_license
NEVTIK-org/Simple-Virtual-Assistant
c40aec818972c001a61b6fe900a2ad91c3a3804d
a5731ec332a0ddd4fd7d6ad1c48c8620d862a6c4
refs/heads/master
2022-04-22T01:17:07.561823
2020-04-13T12:53:32
2020-04-13T12:53:32
255,242,805
1
0
null
null
null
null
UTF-8
Python
false
false
2,563
py
#Created by Hermawan S.S. #hermawansent@gmail.com import os import brain import re from playsound import playsound import speech_recognition as sr def speech_input(): print("\nMe\t\t: ",end="") user_input = str(brain.spoke()).lower() if user_input != "none": print(user_input) return user_input def learn_englis...
[ "farishelmi@nevtik.org" ]
farishelmi@nevtik.org
45d9db07a10f58220ed192774bd5337b434140b1
005ae4a30a0a322481489e2e4eacc0ac1a5bf36c
/amaascore/assets/derivative.py
f05a3989d7fdd6ea5666f340a3d313ee827966d8
[ "Apache-2.0" ]
permissive
amaas-fintech/amaas-core-sdk-python
d8b98dcc50c5536250803972b8d39b38e382825a
bd77884de6e5ab05d864638addeb4bb338a51183
refs/heads/master
2021-01-11T19:01:50.391765
2020-10-27T02:13:28
2020-10-27T02:13:28
79,296,376
0
8
Apache-2.0
2018-12-11T08:11:52
2017-01-18T02:46:34
Python
UTF-8
Python
false
false
1,358
py
from __future__ import absolute_import, division, print_function, unicode_literals from datetime import date, datetime from dateutil import parser from decimal import Decimal from amaascore.assets.asset import Asset class Derivative(Asset): def __init__(self, asset_manager_id, asset_id, asset_issuer_id=None, ...
[ "ned@amaas.com" ]
ned@amaas.com
f35f9453708d4f7187b92e2ba3afe2280bf7d580
373daa3912c2f1f7c144a20593abac886729fca2
/products/serializers.py
1075d01379f7dd9f26ea0e0a9e97dea005c06e8e
[]
no_license
yash-bhat/Gallery
0cfccb6b2917c403adf5d79e40df51d5377bcac8
6e9f7114786eb9adbeb045d3d555626c4cf8ff87
refs/heads/main
2023-02-27T22:48:47.142656
2021-02-03T19:34:51
2021-02-03T19:34:51
335,344,231
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
from rest_framework import serializers from .models import Product #to return objects in the API for products class ProductSerializer(serializers.ModelSerializer): class Meta: model = Product fields = '__all__' # no serializer for 'User' model as we will just return random IDs there
[ "hvyashbhat@gmail.com" ]
hvyashbhat@gmail.com
eb2bae37e9c648b4f4f8701e435601f4d4be96e9
0f556b9d4e250df73bf1e0929dbd4afad51e82fe
/smaller_than/smaller_than.py
cb6b4e049621e62ab38344e518e8ebe479383f31
[]
no_license
unabl4/PythonCodeClub
0ef1cb4d145860a4fda528c2eea513d0ba6b8327
72d5887342c1e0b304307a0e0ac9eb78f0202c35
refs/heads/master
2021-04-30T04:42:03.266029
2019-02-18T22:09:12
2019-02-18T22:09:12
121,541,065
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
def smaller_than(number_1, number_2): return None if number_1 == number_2 else min(number_1, number_2)
[ "unabl4@gmail.com" ]
unabl4@gmail.com
08fbda338ee07b7d2e4bdaddba5d9ca235ebee02
251c899a019af13f0355fc005dad499e12464ee2
/home/views.py
d0000b07c64a63aa5a865639e8735019709b924d
[]
no_license
vinayhegde105/docker_ECR
d7a556f1a6127e857a24b458bce074819b2ecda3
db8b2614436487806868862759df601a303350eb
refs/heads/main
2023-08-05T14:46:19.018733
2021-09-23T14:52:15
2021-09-23T14:52:15
409,539,321
0
0
null
null
null
null
UTF-8
Python
false
false
3,423
py
from django.shortcuts import render , redirect # Create your views here. from .form import * from django.contrib.auth import logout def logout_view(request): logout(request) return redirect('/') def home(request): context = {'blogs' : BlogModel.objects.all()} return render(request , 'home.html' ,...
[ "root@AdminVM.ce2kuzjo5r2utpyd55bak1t0ia.rx.internal.cloudapp.net" ]
root@AdminVM.ce2kuzjo5r2utpyd55bak1t0ia.rx.internal.cloudapp.net
49e3e2dc21de028828c27795a9fc50162734f705
bb453b5c265ea1567de6750c910a35c80ee984d5
/OSG/Gravel/SLiM_gravel_osg.py
f50c4d9c7372d20ff9a6973bfc5cc9cdd759d4d4
[]
no_license
SantosJGND/Models
8134142970a15ecf59c613947c681a434da7de91
b7b6740071a4caefe0addac7d883eb1bb18fb8d4
refs/heads/master
2021-05-18T21:13:05.754098
2020-11-21T20:52:26
2020-11-21T20:52:26
251,423,689
0
0
null
null
null
null
UTF-8
Python
false
false
4,737
py
from tools.SLiM_pipe_tools import ( read_chrom_sizes, region_samplev2, fasta_RextractUnif, write_fastaEx, process_recipe, SLiM_osg_dispenser, ) from tools.ABC_utilities import demo_to_recipe ########### if __name__ == '__main__': import argparse parser = argparse.ArgumentPars...
[ "dourado.jns@gmail.com" ]
dourado.jns@gmail.com
1694e505bb5a7e90a0692bc69b4fbe548b49cf2b
012d191a0869869724ad2169289ddef2c74e6a9e
/Sort_Search/Searching/fibo3.py
2104ca91502ee5a507b52cac13638fd20cec7017
[]
no_license
seoninja13/Algo_DataStructures
7ceda677fe330955f0f01f034b3675e409516919
0476cf45f30f1c635340f969bf85877ee3943efc
refs/heads/master
2021-01-23T01:17:18.462298
2017-05-31T18:14:28
2017-05-31T18:14:28
92,860,589
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
# Example 1: find the fibonacy nth number # def findFib(n): # a,b=0,1 # if n<=1: # return 0 # else: # for i in range(n): # a,b= b,a+b # return a # print(findFib(6)) # 0, 1, 1, 2, 3, 5, 8, 13, 21 // findFib(n) # 0 1 2 3 4 5 6 7 8 // n # a b # ...
[ "dacheviov@gmail.com" ]
dacheviov@gmail.com
363f86770b28d6cb2e6389bb1e933efbd7d0a25f
e29b380111a9180fb4a5a4b3b227b2a67dbf71b2
/State.py
5ba57e77ccc20b5c078696d9a4f7af7e201e1f31
[]
no_license
ptyshevs/npuzzle
5af9036537f9125e1689eef856e29aad1fc3fdcf
05c578aa73a56d9a1a7be642531490e53db5b79a
refs/heads/master
2020-08-10T05:23:44.598024
2019-10-18T10:47:07
2019-10-18T10:47:07
214,267,611
0
0
null
null
null
null
UTF-8
Python
false
false
6,047
py
class State(list): def __init__(self, values=None, empty_loc=None): """ Matrix is a rectangular table of numerical values :param values: """ self.shape = len(values), len(values[0]) self.h, self.w = self.shape # self._validate_values(values) self.value...
[ "ptyshevs@gmail.com" ]
ptyshevs@gmail.com
d6652ee362ae8f58bcb2d3e494a5e011f4bcedeb
46ec244f2b4b28645a7c8a1bfe666fc7c69ec76d
/booking/migrations/0022_auto_20181103_1536.py
fd6a9a66c70fa150f65469b9484dad5ef4e7e4c8
[]
no_license
bisalgt/hotel-jumera-app
d83c3b97f81f649333f26c9e3c1b2545cf516f40
b9d03c3bb321206a39a1f134c7c13fdbddd63337
refs/heads/master
2022-12-14T19:45:23.238189
2018-11-09T09:48:49
2018-11-09T09:48:49
203,003,707
0
0
null
2022-12-08T01:23:07
2019-08-18T13:01:29
Python
UTF-8
Python
false
false
710
py
# Generated by Django 2.1 on 2018-11-03 09:51 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('booking', '0021_auto_20181103_1421'), ] operations = [ migrations.AlterField( ...
[ "bisalgt@email.com" ]
bisalgt@email.com
7721212f0127819872a18fcc4a779267ff52d0b7
c9dc5de35b590f748ab29d89b572f270bbff1f45
/setup.py
c2e112464c6f69152594161f7322e1c272358c47
[]
no_license
spmacdonald/craigslist
198600c2bbff456dc23eb47e10eb45f0f4ece3fa
ebf13276b9ea59f465a6fd722b54ca66494f1998
refs/heads/master
2016-09-09T17:02:17.308681
2013-01-16T09:02:52
2013-01-16T09:02:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='craigslist', description='A Python API for searching Craigslist.', long_description=read('README'), author='Andrew Brookins', author_email='a@andrewbrookins...
[ "a.m.brookins@gmail.com" ]
a.m.brookins@gmail.com
79a8e4c562139987c47fe34f81f4bc9c48703f36
3db7b5409f2f9c57ab3f98bda50f8b548d98063d
/samples/tests/test_model_samples.py
ed82dd678c2f104779586f523aeefb3e7b00a9f1
[ "Apache-2.0" ]
permissive
googleapis/python-bigquery
66db156b52e97565f6211b2fab5aac4e519fa798
3645e32aeebefe9d5a4bc71a6513942741f0f196
refs/heads/main
2023-09-01T07:41:24.893598
2023-08-23T19:04:13
2023-08-23T19:04:13
226,992,475
622
287
Apache-2.0
2023-09-12T04:31:26
2019-12-10T00:09:04
Python
UTF-8
Python
false
false
1,507
py
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "noreply@github.com" ]
googleapis.noreply@github.com
b6ebc4882b065f7bde87c7e46e7c9c9b357583dc
ae6adcc4f81e59cc570889f999d6fa4c919e201b
/dataloader/dataLoad.py
effb825572ffba9bd7fa1bd975578b0712541062
[ "BSD-3-Clause" ]
permissive
Orieus/WeakLabelModel
82643f54957236f548f7912c075ec975a8b47cfa
7d51fc719b8d5a715b55587e382f84b87c54378a
refs/heads/master
2023-04-05T18:51:53.634708
2021-09-27T18:51:24
2021-09-27T18:51:24
62,823,569
0
1
null
2023-03-25T01:13:14
2016-07-07T16:55:27
Jupyter Notebook
UTF-8
Python
false
false
1,658
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This code contains a method to load datasets for testing classification algorithns Author: JCS, June, 2016 """ # External modules import sklearn.datasets as skd def getDataset(name): # This method provides the feature matrix (X) and the target variable...
[ "jcid@tsc.uc3m.es" ]
jcid@tsc.uc3m.es
f29914a515f74f76b34be9f8770ba18e37935362
401d9e394626c143eecbe2079b6a94fa4c896c05
/crawler/fdThreads/fd_to_thread.py
7b464a19b005d18ed820c5a144e67eb622c4fbc8
[]
no_license
paldosh/perceive
f94dc0e05814bb7825a4fa180829eeb54bb4df3a
2d67cdec04970446057c7da4532ac0f5192b4fa4
refs/heads/master
2020-12-28T23:36:08.667215
2017-01-20T04:51:12
2017-01-20T04:51:12
66,851,770
0
0
null
2016-09-01T00:35:36
2016-08-29T14:36:56
null
UTF-8
Python
false
false
899
py
#script to get the thread FD data in the format required for Running LDA import csv import sys def get_data(f): try: f2= open(f) d=f2.read().strip() f2.close() except IOError: print "error" d="" return d if __name__ == "__main__": if len(sys.argv) != 2: print "Usage: <Name of the ...
[ "noreply@github.com" ]
paldosh.noreply@github.com
fa28e044a716da27bba63669641a6930120d6137
2a538cffa543855a2c0c1b4485a0455b9673efdd
/users/migrations/0005_remove_profile_name.py
3b9e8eeaf8d21b482426080b9df7b6ca1296226e
[]
no_license
FLIQ1-0/FLIQ1.0
dbf0ae92cf613d9a9813122998934e4ceedc9790
97109d62a89b9184052c349b09d28b097c1bdcf6
refs/heads/main
2023-06-30T01:39:28.560442
2021-07-30T07:15:06
2021-07-30T07:15:06
390,750,477
0
1
null
null
null
null
UTF-8
Python
false
false
342
py
# Generated by Django 3.0.8 on 2020-08-13 14:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20200812_0907'), ] operations = [ migrations.RemoveField( model_name='profile', name='name'...
[ "noreply@github.com" ]
FLIQ1-0.noreply@github.com
49499f173136efc9f5360c976ed035066e6153ff
a48aff43b3b05fedfa4e9262842be0c485a1addf
/python/gamin/racey.py
270f5505879af934bcbf4ed6cdeb6e97e6ccdded
[]
no_license
Vkeynote/rep3
5989d22805efb2c07e038b3027e8eb54adfb6fac
87789937bd4097cd142c57223e5c656ae2a476f5
refs/heads/master
2020-12-30T14:33:37.603440
2017-06-22T11:06:07
2017-06-22T11:06:07
91,320,885
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
import pygame import sys pygame.init() display_width = 800 display_height = 600 black = (0,0,0) white = (255,255,255) green = (0,255,0) red = (255,0,0) blue = (0,0,255) gameDisplay = pygame.display.set_mode((display_width, display_height)) pygame.display.set_caption('Ray-see') clock = pygame.time.Clock() crashed = F...
[ "victor kinoti" ]
victor kinoti
273d5e6c1723e75812580b3ef222fe5e49de355b
07a460e0827fe2e7326276d78216b64fcc0cbf43
/CSCI_1100/Week_7/Lab_6/lab6Files/check0.py
2145e0c6f2f70146626a257b55ddae97c202b6ff
[]
no_license
bobmayuze/RPI_Education_Material
2b1a122b70ec420f9a63fe1e26c47ad2d506cd9b
202a25239f4c50529012b0c9163ca059bf7fc82b
refs/heads/master
2020-12-01T21:01:09.059103
2017-02-17T18:29:37
2017-02-17T18:29:37
67,041,284
2
0
null
null
null
null
UTF-8
Python
false
false
443
py
string = '' for i in range(0,9): string += str(i)+' ' print(string) rows = 9 cols = 9 grid = [] for y in range(rows): grid.append([0]*cols) for y in range(rows): for x in range(cols): grid[y][x] = "{},{}".format(y,x) # print("{},{}".format(y,x)) s = "" for i in range(len(grid)): for p in range(len(grid[i]...
[ "584653629@qq.com" ]
584653629@qq.com
a43a6ca183fe13cab45ff1ffe654cb22df55bdd3
b3f6daa5d6c987eb8a61d5fe125bf2a98997e259
/8kyu/Simple multiplication/index.py
0853411208f8f60cc3ab604295bcd6f49ea44358
[]
no_license
krnets/codewars-practice
53a0a6c9d2d8c2b94d6799a12f48dd588179a5ce
5f8e1cc1aebd900b9e5a276884419fc3e1ddef24
refs/heads/master
2022-12-20T19:33:43.337581
2022-12-16T05:32:39
2022-12-16T05:32:39
217,464,785
1
0
null
2020-07-20T08:36:31
2019-10-25T06:20:41
JavaScript
UTF-8
Python
false
false
668
py
# 8kyu - Simple multiplication """ This kata is about multiplying a given number by eight if it is an even number and by nine otherwise. """ # def simple_multiplication(number): # return 8 * number if number % 2 == 0 else 9 * number # def simple_multiplication(number): # return number * (8 if number % 2 == ...
[ "cmantheo@gmail.com" ]
cmantheo@gmail.com
49850af963a65360d1c97ece208d22db0d8b0796
ef4f8e5505077799eef1e333c681eba2f5b91eb7
/proyectoLeVents/manage.py
193ee00e952eab2fa446208afba8a2d54ff2036e
[]
no_license
DonRata/Le-Vents
9b9a44e7a25972f7ff32ac1b83e9766d505b2d90
7b668565732f218b6e5bfd2bc002dfd11b45a060
refs/heads/master
2021-06-22T19:11:18.093227
2019-12-02T14:16:14
2019-12-02T14:16:14
215,043,028
0
0
null
2021-06-10T22:12:40
2019-10-14T12:50:52
Python
UTF-8
Python
false
false
627
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Levents.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Import...
[ "emilio.r.cruz@gmail.com" ]
emilio.r.cruz@gmail.com
45ee16d54b3d9fc6b576564b858c3f81e65f61ac
8f589b4ce5daa41325dd34af7f55b79d4363fff4
/rest_api_project/wsgi.py
293555757e895f29980343018f5ac48a41d000ff
[]
no_license
manoliskorniotakis/geo_rest_api
506ba9413c1a6e33bc90cc8b6961df7220226edb
2f2318a5592ccfd4c3cd43c33afa61758d3a9416
refs/heads/master
2020-03-23T00:57:10.311380
2018-07-13T21:37:50
2018-07-13T21:37:50
140,893,372
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
""" WSGI config for rest_api_project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
[ "manolis@Jessie.debian.org" ]
manolis@Jessie.debian.org
4d67978e52e4e83c73dd638f7a3dce705eb9f725
7ea3fd8b778fa47b9e7f2c91b094a50a7dd34cf2
/Ch. 8 Exercise 5.py
ff97daa2a931cafc0c1528f65b68b017cd2be51d
[]
no_license
jenjade/class-work
7c4ee0d215fa3a16806c7d6259f06d84c579f146
af0d1281cdd64898afebcf87220a22ee50aa2569
refs/heads/master
2020-03-16T21:16:24.754108
2018-05-11T05:31:37
2018-05-11T05:31:37
132,992,066
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
fhand = open('mbox-short.txt') count = 0 search_word = 'From' for line in fhand: dict() words = line.split() #print ('Debug:', words) if len(words) == 0 : continue if words[0] != 'From' : continue print(words[2]) count += 1 print ('The word From occurs', count, 'times.')
[ "jenjade@uw.edu" ]
jenjade@uw.edu
611a50956c59cb945db54ff980d7e159427332e7
da0fd3464feae5e77469b2ff2e727388fb806335
/btre/urls.py
00804af15a0f5a9e3c691e5b885194cb426ea548
[]
no_license
mim-omid/Django_RealEstate
d02ee8c829138fb1dc5916621b2ad1db97456a48
17cefeb502594274ed505474e03d54aca4930399
refs/heads/master
2020-05-22T14:42:40.226353
2019-05-18T11:10:43
2019-05-18T11:10:43
186,393,151
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
"""btre URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "mr.mim.omid@gmail.com" ]
mr.mim.omid@gmail.com
56531f41048eb1678833782d2cbcab5c2079f65c
e02ae56bdd80ad660c3fe455641e74b5ae8ba765
/FluentPython/unit17/demo_executor_map.py
150bb87106ed622508c340713fcd8082e980702f
[]
no_license
RiderLai/pytest
aa1f7115186c274856996fa3c9cce2e0982fabc2
e939398353efe624d4808d0024a85762a235ca9a
refs/heads/master
2020-04-14T01:16:59.678025
2020-02-12T12:02:49
2020-02-12T12:02:49
163,556,588
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
from time import sleep, strftime from concurrent import futures def display(*args): print(strftime('[%H:%M:%S]'), end=' ') print(*args) def loiter(n): msg = '{}loiter({}): doing nothing for {}s...' display(msg.format('\t'*n, n, n)) sleep(n) msg = '{}loiter({}): done.' display(msg.format(...
[ "lyf670354671@gmail.com" ]
lyf670354671@gmail.com
5733282b347437017239c5826413bf88554b2717
2d8573859614560cd550df021cf46901803dd18a
/merdecoin-v0.01/test/functional/feature_reindex.py
123ee0a7d555cb17a50dc57592b3ad2ba3ad49e7
[ "MIT" ]
permissive
merde-libertas/merdecoin
d0cd34a84e8affbf42b99c8acd1cc692a1767b26
35f8a54db8d322d0bd8534822f0e88aab274e539
refs/heads/master
2023-05-26T20:43:23.516846
2021-06-10T10:24:07
2021-06-10T10:24:07
369,151,527
0
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Merdecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test running merdecoind with -reindex and -reindex-chainstate options. - Start a single node and gen...
[ "phillipwilkinson@hotmail.com" ]
phillipwilkinson@hotmail.com
42226fdcd5ceb2549588906b5c91eab8af344a0f
cbc9b9966f4dd25d9e77f1b85b4179ee372a3eea
/tests/utils.py
720371037fa93e53103cafa2b25bfa8951edccc7
[ "Apache-2.0" ]
permissive
uber/uber-poet
f58b8f264f8e2f4c488104f41d3146fca380f648
580a52f428014861847ea59bb838ffb4e060b84d
refs/heads/master
2023-09-03T16:04:26.824597
2021-06-16T22:21:39
2021-06-16T22:21:39
156,401,298
95
14
Apache-2.0
2022-01-12T04:01:10
2018-11-06T15:04:46
Python
UTF-8
Python
false
false
916
py
# Copyright (c) 2018 Uber Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
[ "mahyar@uber.com" ]
mahyar@uber.com
b1163b2984e2eb93acf05d4c2079a8f7368f68bc
a04c52e256b52a69f8786045d7751907b7d652cd
/python/inflowPrepMMC.py
1d0eb28fe69b6ca4a1f2f956efdcea8abbd65f35
[]
no_license
mchurchf/ABLTools
9b77e599759d38888bf7af44295b550ff8bb7396
474dc20b98f91dfc2b15853128e3ae62666f29cb
refs/heads/master
2021-01-20T15:23:51.950863
2019-06-19T21:29:04
2019-06-19T21:29:04
90,765,882
5
1
null
null
null
null
UTF-8
Python
false
false
16,595
py
# inflowPrepMMC.py # # # Matt Churchfield # National Renewable Energy Laboratory # 25 August 2017 # # This is a module to deal with preparing inflow for mesoscale-microscale # coupled cases over complex terrain. import numpy as np # Class to deal with the mesoscale-microscale inflow preparation. class infl...
[ "matt.churchfield@nrel.gov" ]
matt.churchfield@nrel.gov
19838a190c48902a9799ae5a54116786d9d5576b
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2901/58744/247697.py
300e82a6c695d61e1fd561bfba7acad1b071cf0a
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
289
py
num = int(input()) def isAlternatingBits(num): former_bit = 0 if num & 1 else 1 while num > 0: if num & 1 == former_bit: return False num >>= 1 former_bit = 0 if former_bit else 1 return True print(str(isAlternatingBits(num)).lower())
[ "1069583789@qq.com" ]
1069583789@qq.com
ca418afeb7226b1ed8850883ad982e55f778e9c6
b6832369607b214a3b491262f135b818e242e6c3
/catalog/urls.py
6c9bf7190243e6befa7456b45a60becd2e69c53c
[]
no_license
khazraer/Test
a55b103c462450e3b05f46b01d6746b800aa0971
17da0270978abd6a72d4058b41e03b8110d35984
refs/heads/master
2020-07-26T02:23:50.649017
2019-09-14T22:17:59
2019-09-14T22:17:59
208,503,156
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
from django.urls import path from catalog import views urlpatterns = [ path('', views.index, name='index'), path('book/',views.BookListView.as_view(),name = 'books'), path('book/<int:pk>',views.BookDetailView.as_view(),name = 'book-detail') ]
[ "raedkhazeem@Raeds-MacBook-Pro.local" ]
raedkhazeem@Raeds-MacBook-Pro.local
d212b97e65ff4b31400a53849b1752ac83d9b736
4932130e91984cedb824609b4d4dd65e1ba6fbf3
/doc/lsystem_1.py
54b5d250c2c50af4085e58a3c59384c51d3f7663
[]
no_license
junqi108/MAppleT
999e6089c01d9b535727efc9dd3e0ddc9a6b4183
090370f08271455f6c1b89592a0b7eb18212a6c9
refs/heads/master
2023-06-20T13:24:34.111337
2021-07-20T15:10:10
2021-07-20T15:10:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,677
py
from openalea.lpy import * __revision__ = " $Id: stocatree.lpy 9964 2010-11-23 12:24:26Z cokelaer $ " try: import openalea.stocatre.optimisation as optimisation except: import openalea.stocatree.non_optimised as optimisation import openalea.stocatree.constants as constants from openalea.stocatree.output import ...
[ "christophe.pradal@inria.fr" ]
christophe.pradal@inria.fr
20f8fb5a190e77a3ff5fccec0605de447e4a5d3d
cd612a871df90cc010f7836cbdaf40afba401016
/blog/myblog/migrations/0003_auto_20170422_2009.py
a9145bd8176b513289b7db8152aff89e764a1048
[]
no_license
nicexp/myblog
64db95bb06b52d09bae4322f5ba9bdf44cd4781a
1856d54cb7f302501c425febe0f5a30a89697d60
refs/heads/master
2021-01-20T14:59:51.313194
2017-05-09T04:42:56
2017-05-09T04:42:56
90,703,324
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-22 12:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myblog', '0002_auto_20170422_2005'), ] operations = [ migrations.AlterField( ...
[ "419797567@qq.com" ]
419797567@qq.com
f183c720412c131b71409791d712d87142101b8b
6e8d58340f2be5f00d55e2629052c0bbc9dcf390
/eggs/SQLAlchemy-0.5.6_dev_r6498-py2.6.egg/sqlalchemy/databases/mysql.py
ba6b026ea29aac857be41bbe8563e904dfc2ff43
[ "CC-BY-2.5", "MIT" ]
permissive
JCVI-Cloud/galaxy-tools-prok
e57389750d33ac766e1658838cdb0aaf9a59c106
3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c
refs/heads/master
2021-05-02T06:23:05.414371
2014-03-21T18:12:43
2014-03-21T18:12:43
6,092,693
0
2
NOASSERTION
2020-07-25T20:38:17
2012-10-05T15:57:38
Python
UTF-8
Python
false
false
97,080
py
# -*- fill-column: 78 -*- # mysql.py # Copyright (C) 2005, 2006, 2007, 2008, 2009 Michael Bayer mike_mp@zzzcomputing.com # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Support for the MySQL database. Overview -------- For normal SQ...
[ "root@ip-10-118-137-129.ec2.internal" ]
root@ip-10-118-137-129.ec2.internal
c4629c6296276f6dd000ac6acc97097972160f92
4755dabdcff6a45b9c15bf9ea814c6b8037874bd
/build/laser_proc/catkin_generated/pkg.installspace.context.pc.py
8aa2d2e231584bb4c6aa2e425d2a5cc3e336be50
[]
no_license
Rallstad/RobotSnake
676a97bdfde0699736d613e73d539929a0c2b492
37ee6d5af0458b855acf7c2b83e0ee17833dbfd1
refs/heads/master
2023-01-03T05:46:46.268422
2018-05-27T16:01:47
2018-05-27T16:01:47
308,665,980
2
0
null
null
null
null
UTF-8
Python
false
false
698
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/snake/Documents/catkin_ws/install/include".split(';') if "/home/snake/Documents/catkin_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;rosconsole;nodelet".replace('...
[ "vetle.fredriksen@gmail.com" ]
vetle.fredriksen@gmail.com
eb484998751392468bf30d8a2fb2c3ba3ede7764
318d26f99fc8e61b9da4669edb72f400b7fd26d3
/venv/Scripts/pycolor-script.py
f3417a87f6dafedb62f79b400dd596547c1db112
[]
no_license
lsferreira934/Exercicios-em-Python
880a8221a00de43a429c216153be6cba043c8369
7f59f8c1dafdd23a68189bf9123c818e511d2858
refs/heads/master
2020-12-22T17:19:03.982669
2020-01-29T00:42:52
2020-01-29T00:42:52
236,871,652
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
#!C:\Users\Leandro\PycharmProject\CursoemVideo\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'color==0.1','console_scripts','pycolor' __requires__ = 'color==0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy...
[ "lsfereira934@yahoo.com.br" ]
lsfereira934@yahoo.com.br
14895c387790963bdf7116b1e8c8c4f7091456ff
bd61ecbc7696eb499b0658c5d636e93bf2f94844
/tutorials/W08_AutoEncoders_GANs/solutions/W8_Tutorial1_Solution_Ex05.py
db284bd51b1651e82d322ddcabf0f27c929a1b38
[]
no_license
fyshelab/course-content
a8587f23a8fcfd692694cfddcbf5879a6cbbc2ec
353d738d76a352a09e058569d6692d5944a3975a
refs/heads/main
2023-04-19T19:40:01.129935
2021-05-14T19:56:19
2021-05-14T19:56:19
364,661,485
1
1
null
2021-05-05T17:50:57
2021-05-05T17:50:56
null
UTF-8
Python
false
false
4,138
py
class ConvVAE(nn.Module): def __init__(self, K, num_filters=32, filter_size=5): super(ConvVAE, self).__init__() # With padding=0, the number of pixels cut off from each image dimension # is filter_size // 2. Double it to get the amount of pixels lost in # width and height pe...
[ "noreply@github.com" ]
fyshelab.noreply@github.com
a6bd02271c9b2f71284783392b9407f1e9b79f7f
67f1e3d3ac20baf3530ef1ccfc3feca0de466c16
/python/entrance/connection/cli.py
750ed6822e0a02eab0aaa1213b253c601b550170
[ "MIT" ]
permissive
ensoft/entrance
6f4ae3598407fc945207bec8eeae6d7b736fc654
87d67e32511cab4be6b80012aa853ebbbc72d48f
refs/heads/master
2023-03-18T06:44:17.964792
2023-03-02T13:16:52
2023-03-02T13:16:52
145,552,487
11
9
MIT
2023-02-17T16:28:29
2018-08-21T11:08:17
Python
UTF-8
Python
false
false
1,922
py
# Base class for a CLI ThreadedConnection # # Copyright (c) 2018 Ensoft Ltd import re from entrance.connection.threaded import ThreadedConnection class ThreadedCLIConnection(ThreadedConnection): """ Base class for a ThreadedConnection whose worker thread maintains a CLI session """ async def sen...
[ "code@chatts.net" ]
code@chatts.net
e8d69dc71a1291dee1d8938c549171c4d1c602aa
e58307f680fb8f975b7c47b0dda98efed2e0675f
/main.py
cc000d07d16a2bd8c8c0d075c5c6308c7361631d
[]
no_license
yeahdef/albumRipIdentify
af49fc83cf152c18e3d65ac6a35951e089322b9c
266b043fb981e53cc7d26e6f2b382a71b0ddba81
refs/heads/master
2020-03-16T00:02:51.928628
2018-05-07T04:28:15
2018-05-07T04:28:15
132,406,714
0
0
null
null
null
null
UTF-8
Python
false
false
4,589
py
from mutagen.easyid3 import EasyID3 from dateutil.parser import parse from mutagen.mp3 import MP3 from time import sleep from tqdm import tqdm import discogs_client import argparse import mutagen import difflib import fnmatch import pickle import sys import os parser = argparse.ArgumentParser(description='Slice mp3 re...
[ "josephliechty@josephs-air.gateway.pace.com" ]
josephliechty@josephs-air.gateway.pace.com
0d9c589064bdfa802bbc69912c2b119c8b1a3167
5b3d8b5c612c802fd846de63f86b57652d33f672
/Python/seven_kyu/to_jaden_case.py
6f1011c1120d950fcc87a4462cab4f25505b6208
[ "Apache-2.0" ]
permissive
Brokenshire/codewars-projects
1e591b57ed910a567f6c0423beb194fa7f8f693e
db9cd09618b8a7085b0d53ad76f73f9e249b9396
refs/heads/master
2021-07-22T18:50:25.847592
2021-01-25T23:27:17
2021-01-25T23:27:17
228,114,677
1
0
null
null
null
null
UTF-8
Python
false
false
942
py
# Python solution for 'Jaden Casing Strings' codewars question. # Level: 7 kyu # Tags: Fundamentals, Strings, and Arrays. # Author: Jack Brokenshire # Date: 17/02/2020 import unittest def to_jaden_case(string): """ Your task is to convert strings to how they would be written by Jaden Smith. The strings are a...
[ "29889878+Brokenshire@users.noreply.github.com" ]
29889878+Brokenshire@users.noreply.github.com
d807a7d1a649fac018c6da8614952df89a7cdc5e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_snowboard.py
5100be7c8c861988ab39e3be570cce2fce7b2eba
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
#calss header class _SNOWBOARD(): def __init__(self,): self.name = "SNOWBOARD" self.definitions = [u'to slide on the snow by standing on a specially shaped board: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'verbs' def run(self, obj1 = [], obj2 = [...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
68b565789058c8489d1540a33c82ab5cffbc36d4
bf362dbe80929d1f6bd6600a91b9bb6882c4120c
/train.py
7e1bd37241ad09f38cf71be7b93dfa12dc898bee
[]
no_license
Neclow/ee559-project2
9cfd5a3ba46745b3672ea10794e6fe0d62f98f01
0753602e5fff6c25f3d4597b6e55ffd790e1eed5
refs/heads/master
2023-03-06T04:48:03.477123
2021-02-23T21:36:17
2021-02-23T21:36:17
260,314,599
1
0
null
null
null
null
UTF-8
Python
false
false
5,709
py
import time import torch from loss import * from metrics import compute_accuracy from optim import * from utils import load_data def train(model, trainX, trainY, input_criterion = 'mse', input_optimizer = 'sgd', nb_epochs = 250, eta = 1e-3, mini_batch_size = 100, verbose = False): ''' Network traini...
[ "neil.scheidwasser-clow@epfl.ch" ]
neil.scheidwasser-clow@epfl.ch
11e9e11dc871aea4258733931469fe48088b6a3c
91d77c5cde6a83457b5b0b7baf9f4d04398c7f2b
/mysite/settings.py
20ca551958cd2bd9b987d00991a4b64623910dad
[]
no_license
niksamoyloff/blog
727835a9bb47dcd7766ca4ad6cc684e02c738ff5
27f4a0f891f9a480100d4507dd65065f152f6560
refs/heads/master
2021-06-09T22:52:17.619888
2017-01-09T11:24:08
2017-01-09T11:24:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,532
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
[ "niksamoyloff@gmail.com" ]
niksamoyloff@gmail.com
1337748aee1def7513208e92e38858d34f0ed411
50fcaacdb31ae4083749266286f2ac6efcaef97a
/backend/base/products.py
3cf6d7f8fa418fd6335f7a4a4835474b925d4abe
[]
no_license
TannerGS/react-django-ecommerce
cfc587a3fe5941cbc4eedeaf291bd05564329231
a44242a28229dc1574d1293416f1feb213e70745
refs/heads/master
2023-05-05T06:51:33.117588
2021-05-25T18:25:55
2021-05-25T18:25:55
364,300,782
0
0
null
null
null
null
UTF-8
Python
false
false
2,735
py
products = [ { '_id': '1', 'name': 'Airpods Wireless Bluetooth Headphones', 'image': '/images/airpods.jpg', 'description': 'Bluetooth technology lets you connect it with compatible devices wirelessly High-quality AAC audio offers immersive listening experience Built-in microphone all...
[ "tannersimpkins@gmail.com" ]
tannersimpkins@gmail.com
aba1b20ca910395e8e556c928a2bf6e5d53cdac8
2d8da5cacd21dd425688d67e1a92faa50aefc6bc
/excel-sheet-column-number.py
c90dd1c70703b45a9911aa35628d96708bba7730
[]
no_license
stella-shen/Leetcode
970857edb74ae3ccf4bcce0c40e972ab8bcc5348
16ad99a6511543f0286559c483206c43ed655ddd
refs/heads/master
2021-01-19T02:48:49.918054
2018-11-29T10:36:43
2018-11-29T10:36:43
47,523,042
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
class Solution(object): def titleToNumber(self, s): """ :type s: str :rtype: int """ ret = 0 for i in xrange(len(s)): ret *= 26 ret += ord(s[i]) - ord('A') + 1 return ret if __name__ == '__main__': sol = Solution() s = "AB" ...
[ "szsxt818@gmail.com" ]
szsxt818@gmail.com