blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
95da0414284b1f8b0e0e098a72c08e474d19c39a
c3e4afc3070fb611b38e2e9e6a1ae3e57f10fb34
/dbom/rsync_demo.py
4b9feb71aacb0e69db812a81c2cd2f16ff378c68
[]
no_license
eat1124/TSDBOM
6744a11fa3245012805d3e10321e385be0623c7d
1332c9591c7813ee99e0fc597cd58ff1a7b798bd
refs/heads/master
2022-12-01T16:39:10.800234
2019-09-03T01:33:45
2019-09-03T01:33:45
174,254,774
0
0
null
2022-11-22T02:55:53
2019-03-07T02:14:15
JavaScript
UTF-8
Python
false
false
18,130
py
""" Rsync自动化备份 """ import paramiko import re class RsyncBackup(object): """ Rsync备份: 单一安装Rsync 集体安装Rsync 配置Rsync 多个模块 添加虚拟用户 启动服务 配置密码文件 设置开机自启 服务端/客户端 执行Rsync的命令选项 执行Rsync的参数:服务器端文件地址,虚拟用户名,IP地址,模块名称 """ def __init__...
[ "2972799448@qq.com" ]
2972799448@qq.com
abcc57f99068124670c61612d93d80115daf1130
0b88201be895a25c8c321481615b4965f529d6da
/CDTB_Seg/model/SEG_BOT/model.py
64b039c9c3e6f5e3a9a391a5db78055dd22219a1
[ "BSD-2-Clause", "MIT" ]
permissive
NLP-Discourse-SoochowU/segmenter2020
1e8335da56b26f52ed48eb462047b9fe9b1e10df
fd71b353c59bcb82ec2cd0bebf943040756faa63
refs/heads/master
2023-01-13T23:14:37.078780
2020-11-24T05:07:26
2020-11-24T05:07:26
283,890,012
0
1
null
null
null
null
UTF-8
Python
false
false
9,509
py
# -*- coding: utf-8 -*- """ @Author: Lyzhang @Date: @Description: """ import torch import torch.nn as nn import torch.nn.functional as func from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from config import * from model.SEG_BOT.pointer import Pointer class Segment_Model(nn.Mod...
[ "longyin128128@163.com" ]
longyin128128@163.com
8026c945551a6f83770ed3d763c38d37a713608f
8bfe6d8d592829aef63dd8780399ffe7d6c0500b
/mysite/polls/migrations/0002_auto_20200724_1700.py
df740bffa1081d1f6d31e0e0d60915d7beef842d
[]
no_license
mohitkarhana/MovieDetail
5cb7f7b71a26e4239b5cb09c6fa5fe755ffbb517
b8961c35db3df996878a3000bfad24b962f32479
refs/heads/master
2022-11-21T17:52:33.277463
2020-07-25T10:53:13
2020-07-25T10:53:13
282,422,845
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
# Generated by Django 3.0.8 on 2020-07-24 17:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('polls', '0001_initial'), ] operations = [ migrations.AlterField( model_name='movie_data', name='movie_poster', ...
[ "mohitkarhana0028@gmail.com" ]
mohitkarhana0028@gmail.com
c8836b33a50d4efcecac0159fa205c363e153582
9c7eb90ed23e61adf52cf78a02ad20d6d805e8e3
/migrations/versions/8be8963fb0f3_.py
54049c1ea5899c6063ee2e83f505e371be647ed4
[]
no_license
david94bert/info3180-project1
bb755b9525b5cb0aaf49ea6109ccb87e470511a4
786be813fcdcb6ca56131b10682aa2f7e9cd4bed
refs/heads/master
2020-03-11T18:14:36.570457
2018-05-05T07:36:41
2018-05-05T07:36:41
130,171,638
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
"""empty message Revision ID: 8be8963fb0f3 Revises: 349a068d240c Create Date: 2018-02-27 23:47:47.468946 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '8be8963fb0f3' down_revision = '349a068d240c' branch_labels = None depends_on = None def...
[ "david94bert@yahoo.com" ]
david94bert@yahoo.com
f9c5c63e12d9b0b73fee56bf952f1eef6fd0eabf
a9e8c17c0add797ec08b5938d8a6b73f723e7af2
/spokestack/nsx/webrtc.py
53d53c87248d06ac75e11af85793b6118567c948
[ "LicenseRef-scancode-warranty-disclaimer", "Python-2.0", "Apache-2.0" ]
permissive
ferasalsaab/spokestack-python
b57f8363d97d32afae81208256383b64ecb410f8
95e451f9ab6ab1af2370d3e1007ebf6739e4765f
refs/heads/master
2023-09-04T21:25:54.847063
2021-10-26T20:43:55
2021-10-26T20:43:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,002
py
""" This module contains the class for webrtc automatic noise suppression """ import numpy as np from spokestack.context import SpeechContext from spokestack.extensions.webrtc.nsx import WebRtcNsx POLICY_MILD = 0 POLICY_MEDIUM = 1 POLICY_AGGRESSIVE = 2 POLICY_VERY_AGGRESSIVE = 3 class AutomaticNoiseSuppression: ...
[ "noreply@github.com" ]
noreply@github.com
d3e1782ef5fb6e2d3c9bcd7344caf934341671ba
02345c1fd293674f331d9f2dc175cd2d7d291738
/Markowitz Portfolio Theory - Portfolio Optimization.py
c553e8843812df543f11cf56777af589362d1616
[]
no_license
MdAsadUzJaman/Portfolio-Analysis-using-Markowitz-Portfolio-Theory
55c4fdec4a5dfa2ed04842395932f24364b23b87
927097da3c4de3005faf377883e0e6e6a43105f8
refs/heads/master
2022-09-24T00:29:57.727272
2020-06-05T17:51:34
2020-06-05T17:51:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,707
py
#!/usr/bin/env python # coding: utf-8 # In[1]: # Importing numpy, matplotlib, pandas,pandas_datareader import pandas as pd import numpy as np import pandas_datareader.data as web import matplotlib.pyplot as plt get_ipython().run_line_magic('matplotlib', 'inline') # ## Markowitz Portfolio Theory (MPT) # Modern port...
[ "noreply@github.com" ]
noreply@github.com
de63bdffcb21ae66826ed72756766dc1638d7361
926b3c52070f6e309567c8598248fd5c57095be9
/src/mmgeneration/configs/positional_encoding_in_gans/stylegan2_c2_ffhq_512_b3x8_1100k.py
b051c9f38b4cd25d7bc657feff88311e3c9f1f18
[ "Apache-2.0" ]
permissive
fengbingchun/PyTorch_Test
410f7cd2303707b0141d433fb9d144a961e1f4c8
df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348
refs/heads/master
2023-05-23T16:42:29.711338
2023-03-25T11:31:43
2023-03-25T11:31:43
167,339,907
15
4
null
2023-03-25T11:31:45
2019-01-24T09:24:59
C++
UTF-8
Python
false
false
1,260
py
"""Config for the `config-f` setting in StyleGAN2.""" _base_ = [ '../_base_/datasets/ffhq_flip.py', '../_base_/models/stylegan/stylegan2_base.py', '../_base_/default_runtime.py' ] model = dict(generator=dict(out_size=512), discriminator=dict(in_size=512)) data = dict( samples_per_gpu=3, train=dic...
[ "fengbingchun@163.com" ]
fengbingchun@163.com
b74a1cb1eca45f142c0d82b002db983581f70bd2
8f03c631bd6d034e78d7bd46eb490fd4faec7a8a
/fly_bs.py
ef50711ec084c907b6d7ac63e785b9a2b8affc8a
[]
no_license
gtwell/stock_buy_point
e30cf2ef08a79ada58518a73be8725f6c044d083
2b1589ace01cebdb22485c775b782058e2161a1c
refs/heads/master
2023-02-26T15:53:17.922931
2021-02-02T14:20:47
2021-02-02T14:20:47
287,318,382
10
2
null
null
null
null
UTF-8
Python
false
false
6,854
py
''' Author: gtwell Date: 2020-08-13 17:09:01 LastEditTime: 2020-12-03 23:09:08 ''' import baostock as bs import pandas as pd import datetime from chinese_calendar import is_workday import numpy as np from get_stocks import get_better_stocks, get_hs300_zz500_data from tqdm import tqdm import os import yagm...
[ "noreply@github.com" ]
noreply@github.com
e3ed95a44c706d1c1798c3a7374b45aee5f99317
6701c62ba8763cc9e0e81065c63a6f62600a3cec
/Models/Trains/MumbaiTrain.py
d7a5412b1469b866a27fe0501b174f7916ed2212
[]
no_license
Aryanp211/Persistent_Internship
457aa25592d5782fb528d59b8dba33d85662bcee
a672b0ce4847fcb34547eb922b2e27cc4a9e515b
refs/heads/main
2023-05-30T20:51:46.279229
2021-06-16T19:24:53
2021-06-16T19:24:53
377,582,953
1
0
null
null
null
null
UTF-8
Python
false
false
1,855
py
# -*- coding: utf-8 -*- """ Created on Sun Jun 6 23:59:57 2021 @author: Aryan """ import pandas as pd import scipy.stats as stats import numpy as np from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.metrics import r2_score from sklearn.metrics import...
[ "54819515+Aryanp211@users.noreply.github.com" ]
54819515+Aryanp211@users.noreply.github.com
7854fac2668f4fb5cb1e8ff450a7dfa8e8e0d4fc
e314c25746cd04cfc1e0c88d5044293c10a7c67e
/Exercícios/ex070.py
22f02515eb2383c15372d84c0dd983ca160187ea
[ "MIT" ]
permissive
JosevanyAmaral/Exercicios-de-Python-Resolvidos
0c4dbbd12ec4593a6a82d7aeed64a3ef4e0fbccd
210e02ed05831a09d5445eab53cd907a09aaa280
refs/heads/main
2023-02-07T15:41:24.796702
2020-12-31T14:09:53
2020-12-31T14:09:53
324,603,260
1
0
null
null
null
null
UTF-8
Python
false
false
985
py
total_Gasto = maisde_1000 = mais_Barato = 0 nome_Maisbarato = '' print('-' * 40) print(f'{"CANTINA DO MAMADÚ":^40}') print('-' * 40) while True: nome_Produto = str(input('Nome do Produto: ')).strip().title() preco = float(input('Preço: R$')) total_Gasto += preco if preco > 1000: maisde_1000 += 1...
[ "Josevanyamaral2004@gmail.com" ]
Josevanyamaral2004@gmail.com
048eba3f5a345d7e9ba5b8e6f5fdc89be6c17887
a70ace742de7423def0cd5d63499d2c9242ef8fb
/train.py
021d2db4a5acb8a1aab8dd33e37d8345b949b38f
[ "Apache-2.0" ]
permissive
xzhcn6/ssd.sixray
0d40f915372023bcc50fc1b473a069cb12d28069
3489f9fc82b26da595e89341fcb4dae6e49f28c6
refs/heads/master
2022-04-01T18:21:21.492127
2019-12-19T11:09:09
2019-12-19T11:09:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,541
py
from data import * from utils.augmentations import SSDAugmentation from layers.modules import MultiBoxLoss from ssd import build_ssd import os import sys import time import torch from torch.autograd import Variable import torch.nn as nn import torch.optim as optim import torch.backends.cudnn as cudnn import torch.nn.i...
[ "xzhcn6@outlook.com" ]
xzhcn6@outlook.com
5f396843aabd5f593d41833f8b56ec6ec6a8d0ed
564ac4e3bfe951ecf66f77ae690739e13de5163a
/blog/admin.py
21a3b32b59313519dc19181dbcb0975830c82ed9
[]
no_license
ThxPatox/server
db0dbd0c0537fad9394990b3216ed7c6ab1f6bd5
cce258716c51f060733c3e9c537b85077896f9fc
refs/heads/master
2020-04-08T22:02:04.562919
2018-11-30T07:42:11
2018-11-30T07:42:11
159,768,608
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
from django.contrib import admin from .models import PERRO admin.site.register(PERRO)
[ "patricio.adres.def@gmail.com" ]
patricio.adres.def@gmail.com
b1800d49cbe141e1369fc7abcb03a19475c6629d
263ec1a7eab575adbaa0b0d21ba910d545e67c98
/MODUL_2/NO_004.py
fa5cbbc9b37be8422464f18c46743931a85bd03f
[]
no_license
L200180023/praktikum-ASD
9ee9a25bff9b54247765837b065acfc5218a90df
4e93409323093d1a187f86114b795e09c472ddd9
refs/heads/master
2021-02-04T14:44:28.867976
2020-07-18T02:50:24
2020-07-18T02:50:24
243,676,744
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
print("saya baru saja latihan",k) self.keadaan = 'lapar' def mengalikandengandua(self,n): return n*2 class Mahasiswa(Manusia): """class mahasiswa yang dibangun dari kelas manusia""" matkul=[] def __init__(self,nama,NIM,kota,us): """metode inisiasi ini menutupi...
[ "noreply@github.com" ]
noreply@github.com
07a63835fd728056fd721d6f4167b08a8e734cbd
2e175a3722755ed028046f43a66959da94d28dbe
/aligned_reid/model/ResneXt_copy.py
834613e334cfc096e3bf9f227b817ceda19666a5
[]
no_license
Eric-Zhang1990/AlignedReID-Re-Production-Pytorch
088ee9af0782505a7ac257575d8867e6a8ced90d
df878e84f3251a12ea88dfb30ac1fe8678cfdf2e
refs/heads/master
2020-03-23T11:58:05.967346
2018-08-08T02:16:15
2018-08-08T02:16:15
141,528,945
0
0
null
2018-07-19T05:34:02
2018-07-19T05:34:02
null
UTF-8
Python
false
false
5,098
py
import torch.nn as nn import torch.nn.functional as F from torch.nn import init import math import torch class ResNeXtBottleneck(nn.Module): expansion = 4 """ RexNeXt bottleneck type C (https://github.com/facebookresearch/ResNeXt/blob/master/models/resnext.lua) """ def __init__(self, inplanes, planes, cardin...
[ "zhang_shifeng1990@163.com" ]
zhang_shifeng1990@163.com
ab63e8021e45f2d9401d5a37c64310a3ceba43d1
e7f8ae8f23cdfefd65d32eea481aaafe2e824ab0
/train_network.py
3e0e0fa16a2026e657903afc35c6ce3417bbf1ba
[]
no_license
adampicwell/digit-classification
0ee18a02d9a44299ac749fce6e7f82675f245b19
69f8d1328f8dffde1d3563c0c14cbe958050f498
refs/heads/master
2020-03-10T13:28:23.339132
2018-05-23T17:24:19
2018-05-23T17:24:19
129,401,058
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
from network import Network, predict_from_output from helpers import load_training_data, convert_to_xy import numpy as np img, lbl = load_training_data() X, Y = convert_to_xy(img, lbl) X_train, Y_train, X_test, Y_test = create_train_set(X, Y) learning_rate = 0.003 layer_dims = [X.shape[0], 30, 20, Y.shape[0]] net = N...
[ "adam@picwell.com" ]
adam@picwell.com
7fbf97b1503386b6939f46cfda12993249f306aa
3a93a50bf80668a6ede701534f1567c3653729b0
/Sept_challenge/arithemetic_slice_II.py
5d4391eb891b132eaff46dae5987441400c9534b
[]
no_license
Tadele01/Competitive-Programming
c16778298b6c1b4c0b579aedd1b5f0d4106aceeb
125de2b4e23f78d2e9f0a8fde90463bed0aed70f
refs/heads/master
2023-09-01T06:00:09.068940
2021-09-13T18:04:30
2021-09-13T18:04:30
325,728,258
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
from typing import List from collections import defaultdict class Solution: def numberOfArithmeticSlices(self, nums: List[int]) -> int: subsequence = 0 cache = [defaultdict(int) for _ in nums] for i in range(len(nums)): for j in range(i): diff = nums[i] - nums[j...
[ "tadeleyednkachw@gmail.com" ]
tadeleyednkachw@gmail.com
5ea516859557ee0128ed78efa85d06748621daf9
defde8f15da2d6f631444c9545878adbaf0651b3
/yl2695/questions/question1.py
7c294ba0e6a806446b3f389bb154cf6870ad55b2
[]
no_license
ky822/assignment7
c1be90bf04a55d7938117ef8dd01177db0844f06
aec803b8593fb9e8dae057539c79026d5f658edc
refs/heads/master
2021-01-09T20:54:45.874537
2014-11-06T00:14:56
2014-11-06T00:14:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,356
py
import numpy as np def question1(): ''' Create a 2-D array and do a series of operations on it. ''' print 'This is question1:' print # Generate the original array. array = [] for i in range(5): new = filter((lambda x: (x % 5) == (i + 1) % 5), range(1, 16)) array.appen...
[ "yl2695@nyu.edu" ]
yl2695@nyu.edu
11daa0fb424a109296242741c22c98986f6dd6bc
1c210851a02e99f1c7f12ee7b8a9ed1c6e78e9e3
/dUCB4/ducb4.py
5f17ed8ef66ba142030de4b39d9b27a6df499a99
[]
no_license
siddhantttt/multiplayer-mab
7d7309880d6e3b441a0c94a8a146fa670b8e80b0
af4b5071c504a5cb5b5e96d7b7e81608e48af1c8
refs/heads/master
2020-05-17T04:14:30.967741
2019-04-25T20:18:20
2019-04-25T20:18:20
183,503,177
0
0
null
null
null
null
UTF-8
Python
false
false
5,268
py
from math import log2,modf,sqrt import random import dbm_with_escaling import dbm import time import numpy as np n=1 #number of users M=5 #number of arms N=5 #Total time horizon T=100000 t = 0 #index g=[[0 for i in range(N)] for j in range(M)] #size M X N #playingPairCount[j][i] is the nu...
[ "siddhantnagpal03@gmail.com" ]
siddhantnagpal03@gmail.com
9c7c5503d6820c8d892b7ba12c79c4c53e2b1abc
91f4078045a57eaaafe0b172909d7041e829941c
/arjuna-samples/arjex/test/pkg/app_class/check_02_app_model.py
66bdc8398d1a691c081dc86f4420c25017d30f6c
[ "Apache-2.0" ]
permissive
amiablea2/arjuna
0d06d1dfb34309f4b6f39b17298f7acb6c3c48c9
af74e0882216881ceca0a10f26442165ffc43287
refs/heads/master
2023-08-21T20:04:30.416303
2021-10-27T06:41:40
2021-10-27T06:41:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
# This file is a part of Arjuna # Copyright 2015-2021 Rahul Verma # Website: www.RahulVerma.net # 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...
[ "rahulverma81@gmail.com" ]
rahulverma81@gmail.com
031834471e28bacff187b2572b0a054496860295
040522fc2892a4490f93b20ac484a88e6053c932
/apps/trade/migrations/0002_auto_20200417_1748.py
bc0ce2fe06d43934f6d1081c2789b6c25a5a1974
[]
no_license
Skylor-Tang/django_rest_farmework_project
7c20fceca4d3e4c1bb286571cda6cd52487c58c4
3f0f18036df34f055d92f5b56c8c08cbb47fff0c
refs/heads/master
2022-12-16T14:05:27.888209
2020-08-26T12:15:38
2020-08-26T12:15:38
255,602,808
5
0
null
null
null
null
UTF-8
Python
false
false
1,496
py
# Generated by Django 2.2 on 2020-04-17 17:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('goods'...
[ "739230854@qq.com" ]
739230854@qq.com
f18b4114bcebaa049d73cd21543bccee1454dd73
7ca826c4be7491fcb19d952c78bbb0d290bc3959
/views.py
ec90614c3ccf37a1a5d15da22140061bde1ce41b
[]
no_license
Artromterra/redis
a2d3e6b25b059f6541abf9772014540a70ef8d59
5e378e81b97ec4bd28a429714bc0071fad6e0d9e
refs/heads/master
2021-05-18T00:56:42.024276
2020-03-28T22:17:06
2020-03-28T22:17:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,197
py
import pickle import redis import json client = redis.Redis(host='redis', port=6379) cache = {0: 0, 1: 1} def fibo(n): if n in cache: return cache[n] else: f = fibo(n-1) + fibo(n-2) cache[n] = f return f def foo(number): if number > 60000: return 'Больше 60000 не...
[ "56137646+dfpetrov@users.noreply.github.com" ]
56137646+dfpetrov@users.noreply.github.com
9e832794ae0303e1478a60e5fc14f9b3d1493dc4
d720edd9ff999521403004b1a6c5d6075ca0f9ef
/tasks/youglish/youglish.py
370f916295dadd27c6b3743b8ab1d4aaa30f2cd4
[]
no_license
caijinhai/crawl-demo
e43b5a7cc3fbe2d5b9034c0417b9409cedb38329
17ff2393b3f499ece9c60dffb7f04d87ccafd7c0
refs/heads/master
2021-02-12T08:10:07.852482
2020-09-23T03:53:08
2020-09-23T03:53:08
244,576,457
0
0
null
null
null
null
UTF-8
Python
false
false
7,370
py
import requests import time import json import os import xlrd import urllib.request, http.cookiejar from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options # driver = webdriver.Chrome(ChromeDriverManager().install()) # 使用已打开的浏览器窗口 c...
[ "cjh123honey@gmail.com" ]
cjh123honey@gmail.com
3bde8438472ef3cd5ac51c05f8a64bb7e57cd319
0be7f77a2a5ae32c1b88a7ce32b33c3d3d58412a
/printData.py
93dbd52d7f84c39179985507d5e4028f7864c30c
[]
no_license
square1307/another_TWCLI_py_again
d280cb93de0df0fb0ca5ac2722b4d1187457fb16
7a8eec2bed6801c8aa10bbd78d6065e83f512997
refs/heads/master
2020-09-09T22:28:54.353230
2019-11-14T01:46:03
2019-11-14T01:54:37
221,586,221
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
def printTimelines(jsonTimelines): for objTweet in jsonTimelines: print(objTweet['user']['name']+":") print(objTweet['text']) print("Tweet at:{}".format(objTweet['created_at'])) print("=============================================") def printUsers(jsonUserData): for objUser in jsonUserData: print("{...
[ "square1307@gmail.com" ]
square1307@gmail.com
192afb53c8b8a277230d03f01de21883ccea8c4c
861b280938e0369fb40531f8c67ef181c419fce5
/pyfuntofem/funtofem_nlbgs_aerothermal_driver.py
a081387394c718dc20d81a59739fa9d27838fa25
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
AOE-khkhan/funtofem
ea2472dc37a0ce0238f48d08dacfaad08b814321
332c9fcc90f2b2763b54b9b35f40527de3534a08
refs/heads/master
2023-03-24T01:11:28.824539
2021-02-26T16:22:27
2021-02-26T16:22:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,092
py
#!/usr/bin/env python """ This file is part of the package FUNtoFEM for coupled aeroelastic simulation and design optimization. Copyright (C) 2015 Georgia Tech Research Corporation. Additional copyright (C) 2015 Kevin Jacobson, Jan Kiviaho and Graeme Kennedy. All rights reserved. FUNtoFEM is licensed under the Apache...
[ "lhalim6@gatech.edu" ]
lhalim6@gatech.edu
b76f9f37dcbaaa33ef729114afb089aeff729984
bb8a4c794740a3aae979abf15cb7dec92e141179
/patient/admin.py
9d2fd710ae5cfdd309fa99921a9a52ac247bcc55
[]
no_license
Xinghan/loveandhelpserver
6c5347e0d34a37ad618bade0cb5ffe7a111ab11f
bc34ab6d61a7ebdfa9eca0bbc132d0e31f39b438
refs/heads/master
2021-01-25T12:13:25.358356
2015-06-04T05:25:55
2015-06-04T05:29:13
34,239,512
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
from django.contrib import admin from . import models admin.site.register(models.Patient)
[ "xinghan.cui@gmail.com" ]
xinghan.cui@gmail.com
881f41eaac681509ceedf52e9c86ba2f216030b8
af41234fd6f497c2a9e47cf598a9fb5f9250cda9
/Chapter_14_CollaborativeFiltering/item_based_recommend.py
940fc52d097c01512f31c02873ad8635aa13f259
[]
no_license
RuoBingCoder/Python-Machine-Learning-Algorithm
d27e3231d48db2fb9a1f25f8b6db625abd2871d3
9ad83db7261f2523f0e3eeeeed7adad2b7c013ef
refs/heads/master
2021-08-31T16:30:25.676221
2017-12-22T02:51:01
2017-12-22T02:51:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,414
py
# coding:UTF-8 ''' Date:20160928 @author: zhaozhiyong ''' import numpy as np from Chapter_14_CollaborativeFiltering.user_based_recommend import load_data, similarity def item_based_recommend(data, w, user): '''基于商品相似度为用户user推荐商品 input: data(mat):商品用户矩阵 w(mat):商品与商品之间的相似性 user(int):用户的...
[ "clawpo@foxmail.com" ]
clawpo@foxmail.com
ac9904a84f7994769b41fbccddf0d7a7a2b87223
2fa25e3f098f631fbbda9eacf9ab701e70c7d24a
/setup.py
245578f34733aebf99e59cd9bd282ba540ca931b
[ "BSD-3-Clause", "Python-2.0" ]
permissive
chdemko/pandoc-latex-unlisted
bb9e48d3af0ba570674562c3ddf61b803e5cdc31
3f96490ab6b78c248bdb5e9127b7b525c2c03f98
refs/heads/master
2021-05-14T11:14:33.665148
2021-02-24T10:27:56
2021-02-24T10:27:56
116,375,904
3
1
null
null
null
null
UTF-8
Python
false
false
3,906
py
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/chdemko/pandoc-latex-unlisted """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path, make...
[ "chdemko@gmail.com" ]
chdemko@gmail.com
8e0dfc5890ad2e90c4a0d14bbcf0a9896580df08
ca115c9e0e4647b2730600389704f258e1a2fabe
/Mode/demo/spaces/Sales/Salesforce Dashboard.f9edab2f5d11/notebook/cell-number-2.b0c50231f18a.py
47b820db8032eb63070802c1a4e5ab758d97591f
[]
no_license
demo-mode/demo-github-sync
9a45b3b8919b075da80dc8bf8de27899a0045bc5
0f646bcdc061fb5a5638edbcd34e8190673b0dcc
refs/heads/master
2023-09-01T18:33:13.954331
2023-08-23T16:30:38
2023-08-23T16:30:38
151,139,007
1
4
null
2022-04-13T20:55:08
2018-10-01T18:35:31
HTML
UTF-8
Python
false
false
155
py
import matplotlib.pyplot as plt import numpy as np daily = datasets[8] day = pd.to_datetime(daily['day']) orders = daily['orders'] plt.plot(day, orders)
[ "roberto@modeanalytics.com" ]
roberto@modeanalytics.com
eca296da9ccd2f7a4e7c8eac7f1d9bb5f94c62e2
cd648b2637e1beb927efe7b7c116bf8cddd6f11a
/01_CartPole-reinforcement-learning/Cartpole_DQN_torch.py
33bc816365144d6f49bf087adec15889b8722935
[]
no_license
alfrentgen/ReinforcementLearning
5c84928d33413b808ea878699c34162047cfa8de
daaf5f61055e2c336cb6fb374a28d980f4854293
refs/heads/master
2023-03-15T09:37:07.394565
2021-03-24T17:14:45
2021-03-24T17:14:45
327,903,304
0
0
null
null
null
null
UTF-8
Python
false
false
5,842
py
# Tutorial by www.pylessons.com implementation for pytorch import random import gym import numpy as np from collections import deque from torch import nn, optim, zeros, from_numpy, amax, argmax from torch import load as load_model from torch import save as save_model #from sys import exit def getModel(input_shape, ac...
[ "alf@alf.alf" ]
alf@alf.alf
c25560cf0a8b4a99a980693881f8c79cc1267f95
79b71cdb289df2fa0ba21a515466956cbb7fac0d
/datasets/DatasetLoaderRGB_DCT.py
0326c6f3f1e1fd00d294af212302325495a95726
[]
no_license
jason90330/metaLeft
04e4c87cbe243327a1bda023f35d5d2bc906e173
1db149b4db18e0d83aaa14797cf12de31b60e431
refs/heads/main
2023-03-30T17:44:52.719214
2021-04-07T05:42:07
2021-04-07T05:42:07
347,303,633
0
0
null
null
null
null
UTF-8
Python
false
false
8,070
py
import os import dct import torch from torchvision import transforms, utils from torch.utils.data import Dataset, DataLoader # import matplotlib.pyplot as plt from imutils import paths from PIL import Image from misc import utils from pdb import set_trace as st ''' class freq_domain(): def __call__(self, input): ...
[ "jason90330@yahoo.com.tw" ]
jason90330@yahoo.com.tw
57efe0e04b0ba663ac682d4eb78efafa356b0bc2
c27d09387e7a1d6770fac224c3ac16cdf06e3ac1
/ex1.py
e40727d11b8f7d2ae6c7210d373e2991489179d0
[]
no_license
iboelsakka/learning_python_the_hard_way
389a2f657be1c34619705dd8e869f22fe56be68c
a202549eb289c020a8325fad6a54d79a13af2023
refs/heads/master
2021-06-14T07:35:31.888917
2017-05-04T19:27:45
2017-05-04T19:27:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
# Created by Ibrahim Elsakka on 4/7/2017 print "Hello World!" # print "Hello Again" # print "I like typing this." # print "This is fun." # print 'Yay! Printing.' # print "I'd much rather you 'not'." # print 'I "said" do not touch this.' # print "" # print "I just printed a blank line"
[ "ibrahim.elsakka@gmail.com" ]
ibrahim.elsakka@gmail.com
78de110bc6f7197013aaaea4ee9a1707f78e3281
6b038fa1b33baac1159b3ce49175a74171646d2d
/models/hr_employee.py
9655e6197f0fc37c78c39fc21529b9e1ca7d385e
[]
no_license
shahnoorbaga/bista_training
8d1756def128be0715211402f6947df1646a58ec
8553a2ae0a49a8c5d652d6807391eb761b578602
refs/heads/main
2023-02-24T17:56:18.560439
2021-02-04T06:05:08
2021-02-04T06:05:08
315,559,445
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
from odoo import api, fields, models class HrEmployeePrivate(models.Model): _name = "hr.employee" _inherit = ['hr.employee'] is_trained = fields.Boolean('is trained')
[ "shahnoor.baga@gmail.com" ]
shahnoor.baga@gmail.com
34dff387c422a3a3d82393f6c225e74efea452d5
dea51891c173a777028c5ebaad2ebcf729cb95d1
/document_management/core/utils.py
7fac926b99fffba374b1aedf31677e34fcfd2b2d
[]
no_license
rinditriandi/document_management
cd9f4819421a3b6c3951229338fc6c63535887b7
42ddfd3dc82284e6c1cb1425b238178c18b4c309
refs/heads/master
2022-12-07T07:55:40.672166
2020-02-26T15:09:07
2020-02-26T15:09:07
184,234,567
0
0
null
2019-07-18T00:36:40
2019-04-30T09:37:48
null
UTF-8
Python
false
false
1,745
py
import os import datetime from django.template.defaultfilters import slugify from django.utils import timezone from django.utils.deconstruct import deconstructible @deconstructible class FilenameGenerator(object): """ Utility class to handle generation of file upload path """ def __init__(self, prefi...
[ "nicholovsimon@gmail.com" ]
nicholovsimon@gmail.com
4ed834b99d37a0e7b96af9190ba32c0544ba629a
27c3517ad80264db5d4a4ef966af528fbe87eda9
/src/analysis_tools/call_rampage_peaks.py
6a7b5df9cfb83e1ae2918410359040c36c0fff17
[]
no_license
nboley/rampage_pipeline
e5cf960a949e6ca2428fd49df4c6eb29b983e05e
2cccc977d774c39d5617c7aa984fdb871f8cb3cd
refs/heads/master
2021-01-02T09:32:23.626404
2015-10-22T22:19:16
2015-10-22T22:19:16
26,610,678
2
0
null
null
null
null
UTF-8
Python
false
false
16,218
py
#!/usr/bin/env python3 import os, sys, time import requests, json from itertools import chain from collections import defaultdict import re from multiprocessing import Value NTHREADS = 32 MATCH_LAB = True INDEX_DIR = "/srv/scratch/nboley/RAMPAGE_human/STAR_indexes/STAR_2.4.1b.GRCh38_PhiX_ERCCv2/" ANNOTATION_GTF...
[ "npboley@gmail.com" ]
npboley@gmail.com
8dbeb21e45db293b1eed3a4d259d0a7190aadd1e
46e6b58d52aad982ac49e8b4b1e72cc19d5855e7
/venv/Lib/encodings/gb2312.py
9e002e015138f7d2e656d95a22e0deba0a85c73b
[]
no_license
Josquin95/Triqui
76584d2801d49546c79422b4635bff5d251b77c9
82e3ac1b0e053993d76e3d7aea88204799540e05
refs/heads/master
2023-07-21T09:38:49.037207
2023-07-17T21:42:29
2023-07-17T21:42:29
113,802,751
0
1
null
2022-10-07T04:32:38
2017-12-11T02:27:58
Python
UTF-8
Python
false
false
1,039
py
# # gb2312.py: Python Unicode Codec for GB2312 # # Written by Hye-Shik Chang <perky@FreeBSD.org> # import _codecs_cn import _multibytecodec as mbc import codecs codec = _codecs_cn.getcodec('gb2312') class Codec(codecs.Codec): encode = codec.encode decode = codec.decode class IncrementalEncoder(mbc.Multiby...
[ "jose.osorio1@correo.icesi.edu.co" ]
jose.osorio1@correo.icesi.edu.co
743d2c165c4bd1035af862eb7e8f8aa10942a0bb
54bd5a131a8218004d63f17e21a4b68536ac119f
/classification_rotate.py
ea8c0fa821aea27a21938e0d37c4f3e71d0aca74
[]
no_license
dyf0631/AAE_FOR_KG
162bb4f4883bee2e85380742ae2ca5abaa9ccb84
2f831018b3cf36971b3d30b7dc2520a0e33a201e
refs/heads/master
2022-09-08T15:02:01.851330
2020-06-02T01:43:50
2020-06-02T01:43:50
268,627,138
5
3
null
null
null
null
UTF-8
Python
false
false
3,142
py
from classification_Deepddi import Tester from dataset import Dataset import argparse import time def get_parameter(): parser = argparse.ArgumentParser() parser.add_argument('-ne', default=100, type=int, help="number of epochs") parser.add_argument('-lr', default=0.1, type=float, help="learning rate") p...
[ "daiyuanfly@gamil.com" ]
daiyuanfly@gamil.com
6a0133b60e39092bb9168e79b34e7f97ef908275
ff738b3ec7e5c8c414f6d3c7d74310d8fab69368
/Mock/Interview5/solution1.py
63117bb3138185ef7bcaea918ed9a22c4e801a57
[]
no_license
jw3329/leetcode-problem-solving
a0684ef13bd60e81bd54b91e1b54827aaac9bf16
0cc7ad64891a23e348c8214f806a2820ac8c9e0a
refs/heads/main
2023-08-17T20:36:51.624415
2023-08-17T07:09:56
2023-08-17T07:09:56
170,944,191
0
1
null
null
null
null
UTF-8
Python
false
false
246
py
class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: n = len(nums) for i in range(n): for j in range(i+1,n): if nums[i] + nums[j] == target: return [i,j]
[ "junwon3329@gmail.com" ]
junwon3329@gmail.com
2c9791af0ab83167e99f034371e3b1d0fabe5410
b4bb72953c2c7fd68231d7579927da20288df6dc
/other/best_model_tests/Scripts/graph_deltas_histogram.py
13f6781d0bb7541f81d0b6dd377c063555396f90
[]
no_license
JimBell/deepMirCut
e050a4092557ae217658c845abb049244b583fc5
ddfde1fac89022f9312f65fa8628b44ff63a2a81
refs/heads/master
2023-04-10T19:41:00.412057
2021-04-22T17:58:02
2021-04-22T17:58:02
206,287,544
0
0
null
null
null
null
UTF-8
Python
false
false
18,650
py
import sys, os import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt from matplotlib.lines import Line2D from seqeval.metrics import precision_score, recall_score, f1_score, classification_report import statistics import functools import matplotlib.font_manager as fm font_dirs = ['/...
[ "jimmybell82@gmail.com" ]
jimmybell82@gmail.com
33f755fbefd4ab1120c6872800904540b86e853a
43b1320c21bfdb20c198ee9ed81131b169a64106
/pairs_generator_csv.py
00762fb308d8c697d6200ff32493b98bd48d6a4a
[ "MIT" ]
permissive
KasparasKralikas/BERT-Duplicate-Bug-Report-Detection
0a6f6662e308ead40873818ac12b8c171a1e08d9
e18706a92cc66df1eeb04842c4419c55c7729c77
refs/heads/main
2023-05-06T11:18:17.099263
2021-05-27T05:54:56
2021-05-27T05:54:56
351,505,959
4
0
null
null
null
null
UTF-8
Python
false
false
2,741
py
import json, random, numpy as np, pandas as pd ISSUES_FILE = 'ooall.csv' GENERATED_PAIRS_FILE = 'ooall_pairs_40000.csv' PAIRS_COUNT = 40000 DUPLICATE_PAIRS_RATIO = 0.5 # What part of the original issues pool to use for pairs generation PART_TO_USE_FOR_GENERATION = 0.9 def main(): issues = get_issues(ISSUES_FILE) ...
[ "kasparaskralikas@gmail.com" ]
kasparaskralikas@gmail.com
94ed977992a98b9a925f1090729b26f274a7eb7f
44c2f66912f66d80a0b0ccbe2e286d5ab1ad422b
/uvalibroomcount_api/roomcounter/models/sensor_result_model.py
799e1f599c4603c36f39000175f76e4007f37972
[]
no_license
scholarslab/uvalibroomcount_api
12d2dee7eb123fb174db732313e9238031ad3288
d3d043e11d9e679204c8d3c401d77082019f285c
refs/heads/master
2021-08-23T11:39:48.813295
2017-12-04T18:58:52
2017-12-04T18:58:52
110,748,333
0
0
null
2017-12-04T18:58:53
2017-11-14T21:43:49
Python
UTF-8
Python
false
false
754
py
from django.db import models from . import sensor_model class SensorResult(models.Model): ''' The Sensor Result class is a model that defines which data is available in the Sensor Result table. ''' date_recorded = models.DateTimeField(auto_now_add=True) sensor = models.ForeignKey(sensor_model.Sensor, ...
[ "zgleblanc@gmail.com" ]
zgleblanc@gmail.com
aab170776fd444d8dd9cb1674d07dc237082b942
09c6d0987280dd0dcdb03cf700d2d76487ac91e8
/app/main/migrations/0001_initial.py
f3f8f0f6b31da292106ddc7b1745812a7c2a0848
[]
no_license
daniellyatuu/cloud_storage
d0e69b9ee14020ec8b2ee5e5f8126121451ad130
a30c20261242096964ec676428f1500a2baf86e4
refs/heads/master
2022-12-18T18:04:21.798109
2020-09-30T13:30:28
2020-09-30T13:30:28
299,904,073
0
0
null
2020-09-30T13:30:29
2020-09-30T11:59:12
Python
UTF-8
Python
false
false
717
py
# Generated by Django 3.0.7 on 2020-09-30 12:59 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField...
[ "daniellyatuu@gmail.com" ]
daniellyatuu@gmail.com
11863bd4b7bd6508d883062cf7745a2b9b246727
94a3dcbb71ab019794de0775c4de3dd363e77a99
/interview-cake-all/apple_stocks.py
b9465248f0b018cf5cdddd71677d39c81511589a
[]
no_license
coreyarch1234/leetcode-problems
89603a25aa115496ab0613f7da43addb768a3733
eb9594b26e78a7a0af8cbef59970626dba47ec21
refs/heads/master
2021-05-14T07:34:50.055651
2018-04-03T19:39:24
2018-04-03T19:39:24
116,268,314
0
0
null
null
null
null
UTF-8
Python
false
false
4,385
py
# Writing programming interview questions hasn't made me rich. Maybe trading Apple stocks will. # # Suppose we could access yesterday's stock prices as a list, where: # # The indices are the time in minutes past trade opening time, which was 9:30am local time. # The values are the price in dollars of Apple stock at tha...
[ "harrilal@mit.edu" ]
harrilal@mit.edu
677da4b419273dd5a0c14a32c94015dd6bb3ad6b
10c6f6801ff50e7456ef7dacc57e6c019cbe5311
/vendor/pipstrip
67cd04941aefc0845693decab4a56cce0f59c29f
[ "MIT" ]
permissive
2pax-hq/heroku-buildpack-python
6d66f9cc48e80276e65c00bf95d486ff24f5be48
4669a838e7a56a369f97c4ba1c65426774d93d96
refs/heads/master
2021-06-15T18:33:20.806751
2017-03-14T12:52:01
2017-03-14T12:52:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
245
#!/usr/bin/env python import sys req_file = sys.argv[1] lines = [] with open(req_file, 'r') as f: r = f.readlines() for l in r: lines.append(l.split('--hash')[0]) with open(req_file, 'w') as f: f.write('\n'.join(lines))
[ "me@kennethreitz.org" ]
me@kennethreitz.org
2fa7b7a557dddd216f0f97f3589b97950895112a
b1d90fa399c2f4cb1f5eba0846d60d72044fc4b9
/wASmaster/configure_was/myfunctions.py
2496563a0785098237b8076ab09bc5d207c31a5a
[]
no_license
igmatovina/webSphere-automatization
a497b0ec70b1bee833082c58410ed4409e1ae84b
c4ec7fdba9d57ce176b7186dfd6697c95ebd6214
refs/heads/main
2023-01-02T00:34:02.523424
2020-10-19T11:10:29
2020-10-19T11:10:29
305,355,822
1
0
null
null
null
null
UTF-8
Python
false
false
5,952
py
#!/usr/bin/python # -*- coding: utf-8 -*- import sys AdminConfig = sys._getframe(1).f_locals['AdminConfig'] AdminApp = sys._getframe(1).f_locals['AdminApp'] AdminControl = sys._getframe(1).f_locals['AdminControl'] AdminTask = sys._getframe(1).f_locals['AdminTask'] Help = sys._getframe(1).f_locals['Help'] def getScope...
[ "noreply@github.com" ]
noreply@github.com
5f9d2c298007f1dde078c574cdceea69ba7321a1
1f3e6db6e3ba7032c9871164786cba0a9112ee91
/EX42/main.py
e87e59ae2cee49c7b8fcc198518f5886eb9801b5
[]
no_license
alicia6174/EX-FOR-PY
f17e23e31ec37027c6bc1503c9ffcc3d18508216
afba69e4cc017bfae6a2b708b23d9bafc4e95bb2
refs/heads/master
2020-05-29T08:54:36.204271
2016-11-05T15:53:10
2016-11-05T15:53:10
69,107,139
0
0
null
null
null
null
UTF-8
Python
false
false
840
py
#!/usr/bin/python f = open('data', 'r') Data = f.readlines() fs = lambda string: string[0:len(string)-1].split(',') Data = map(fs, Data) class MyClass(object): def __init__(self, a, b, c): self.Last = a self.First = b self.Salary = c headers = ['Last', 'First', 'Salary'] items = [] for i ...
[ "yhguan8128@gmail.com" ]
yhguan8128@gmail.com
800a1d85313f35b73a634b10abe2013d2631bc1b
ce5be4f0b16d08296114da4a3c327d4adb0ec8bc
/topsis_in_python.py
b555f896f0c15ed2cd819e5f2e1d94bb8dd105b1
[]
no_license
gur01052000/git
1a7382b6fecb307ea86973a2b71495a362bcbb5b
48f16ebd23c24156f371a255b04cde79e237203f
refs/heads/master
2020-04-21T22:11:56.805888
2020-01-20T17:03:48
2020-01-20T17:03:48
169,903,096
0
0
null
null
null
null
UTF-8
Python
false
false
1,584
py
# -*- coding: utf-8 -*- """ Created on Sat Jan 18 02:12:58 2020 """ import numpy as np import math def topsis(matrix,weight,feat): b=[] for i in range(n): sum=0 for j in range(m): sum=sum+matrix[j][i]**2 b.append(math.sqrt(sum)) for i ...
[ "noreply@github.com" ]
noreply@github.com
3a6dca8992ab5cc806956e4513c10943419020d0
d45cbb9aa98871851efeebf5f39498534c9125a5
/supar/models/constituency.py
38f92d4cceb2d8d625432379412c00c47351464b
[ "MIT" ]
permissive
ashim95/parser
c307e7178128031deb8fbaa08db6410a94e30bf4
61e9cd6bf16dcf1aa2b9d51b3a6c04ed048b3199
refs/heads/main
2023-02-06T02:36:48.404534
2021-01-01T20:05:49
2021-01-01T20:05:49
324,896,816
0
0
MIT
2020-12-28T02:53:43
2020-12-28T02:53:42
null
UTF-8
Python
false
false
10,859
py
# -*- coding: utf-8 -*- import torch import torch.nn as nn from supar.modules import LSTM, MLP, BertEmbedding, Biaffine, CharLSTM from supar.modules.dropout import IndependentDropout, SharedDropout from supar.modules.treecrf import CRFConstituency from supar.utils import Config from supar.utils.alg import cky from tor...
[ "yzhang.cs@outlook.com" ]
yzhang.cs@outlook.com
ad2c845c72862321f1bca7ffd9b3e11f281c32ac
a1a016447475200323062478b8d555e830f7bb54
/config.py
b6766c00384694ac78d033ddcc736cb7c7fbe369
[]
no_license
Gouwal/Py104-Weathers
af7eac72cdc7aa7b90c9acecf8a6fc216cb38a31
8b21cb0132e6704418a5ea28989b917a966abd2f
refs/heads/master
2021-07-16T11:10:22.203828
2017-10-22T07:51:36
2017-10-22T07:51:36
106,160,311
0
0
null
2017-10-16T12:07:44
2017-10-08T08:15:06
Python
UTF-8
Python
false
false
494
py
# config.py class Config(object): """ Common configurations """ WTF_CSRF_ENABLED = True # Put any configurations here that are common across all environments class DevelopmentConfig(Config): """ Development configurations """ DEBUG = True SQLALCHEMY_ECHO = True class Producti...
[ "Neil_zhang@126.com" ]
Neil_zhang@126.com
b1a3c8cc07fae71c627558f8887507229a139da5
1add595fa4a4b2ebd42e4447310a1b389f88d9fe
/aiohttp_cache/setup.py
1e9a3bcf79880be8bf5bf2d1b016be470047d511
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
baldur/aiohttp-cache
95a57fd71feddb3fa0423c88318ed7c2a828b3a3
dc20cb7fb291e2eb755de1e70f356631cc0b16ac
refs/heads/master
2020-06-18T19:18:12.889982
2019-07-11T15:00:24
2019-07-11T15:00:24
196,415,749
0
0
NOASSERTION
2019-07-11T14:59:01
2019-07-11T14:59:00
null
UTF-8
Python
false
false
1,033
py
import logging from aiohttp import web from .backends import * from .middleware import * from .exceptions import * log = logging.getLogger("aiohttp") def setup_cache(app: web.Application, cache_type: str = "memory", backend_config=None): app.middlewares.append(cache_middleware) ...
[ "cr0hn@cr0hn.com" ]
cr0hn@cr0hn.com
6a0e6ca5460c14393eabb83dbed4443e75781e2b
c906013191a3e4d773800c44f94bc06ed25954d7
/users/views.py
76c9f4da56999eb1597edeb0703a6eae656158a7
[]
no_license
kobayaba/journal
12f326c308523c121cfec078d0d8cfd1885b2a0c
83844f3a2726674e77aaedfae0ded363557bda1b
refs/heads/master
2023-02-02T03:47:24.539488
2020-12-17T18:12:34
2020-12-17T18:12:34
321,181,232
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
from django.shortcuts import render from django.urls import reverse_lazy from django.views.generic import CreateView from .forms import CustomUserCreationForm class SignupView(CreateView): form_class = CustomUserCreationForm success_url = reverse_lazy('home') template_name = 'signup.html'
[ "yabakoba@gmail.com" ]
yabakoba@gmail.com
3107a558332ff43deb57768deac006b0ed55d62e
948d8e5c5e5b2a0357527c3dbc9a86f5fb51bad6
/ebot_nav/scripts/ebot_waypoint_nav.py
ba8f95aaa131d9d1d46e72cce42b7c4afd637ccc
[]
no_license
jasmeet0915/E-yantra_2020
7a34176f197f30b8880cb15b31383f59b0aa3dab
f62d07faacb683d320d86ef5d3125bf3227e3c65
refs/heads/master
2023-02-24T04:38:20.371758
2021-01-22T15:58:53
2021-01-22T15:58:53
303,998,266
0
0
null
null
null
null
UTF-8
Python
false
false
3,792
py
#! /usr/bin/env python import rospy import numpy as np # import actionlib & actionlib_msgs to create a SimpleActionClient object from actionlib import SimpleActionClient, SimpleGoalState from actionlib_msgs.msg import GoalStatus # import geometry_msgs to create Pose objects with goal coords from geometry_msgs.msg i...
[ "jasmeet0915@gmail.com" ]
jasmeet0915@gmail.com
654e2c1856ab3a889e8e7e108d6496018b47e21c
db300b2a74ca1e1b0ff9715f5c0f6e51fd0509d1
/awsdbconnect.py
87ff59eac21de826ebc63f11f4d3bfe3307c16cf
[]
no_license
aswinnaidu1/altiscope-webstore
5058e867715cc56eaf9fa81bd69e5d91ec89407e
e0c1e4f6a92586f4764236bd62b709675c12a372
refs/heads/master
2021-04-26T23:07:30.197158
2018-03-05T22:52:33
2018-03-05T22:52:33
123,933,928
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
import pymysql import boto3 def connecttodb(): conx = pymysql.connect(host='dbanaidu.cjmvjfp6abln.us-east-1.rds.amazonaws.com',user='aswin',password='amazonsiva1',db='aircraftstore') conx.commit() return conx def connecttodynamodb(): dynamodb = boto3.resource('dynamodb', region_name='us-east-1') t...
[ "noreply@github.com" ]
noreply@github.com
ea572bb92fca4cb3b0994b3b19f6bbc5c67b0e8b
fdfd0cca9d18076c4ab04504da3bf5e39d38ccfb
/plugins/Грамматическая_загруженность/lib/libfuturize/fixes/fix_metaclass.py
7c489e43283e1f5fb10979717d2f82a749b3b1df
[]
no_license
ade5t/stylisticAnalysisOfText
aadc57bed384fb086e0acced21e606606339c121
5e511e212adb0b0e8944ae4090dac7f56f1beb27
refs/heads/master
2022-11-16T11:16:28.920706
2020-07-17T19:20:48
2020-07-17T19:20:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,568
py
# coding: utf-8 """Fixer for __metaclass__ = X -> (future.utils.with_metaclass(X)) methods. The various forms of classef (inherits nothing, inherits once, inherints many) don't parse the same in the CST so we look at ALL classes for a __metaclass__ and if we find one normalize the inherits to all be an arg...
[ "eryshev.u@gmail.com" ]
eryshev.u@gmail.com
833ad181c5f68862eace4d05521b509afc87380d
8ab977c2f5846378ef611e41ec29456b79508143
/tasks/rl_basic_tasks.py
26c9e8d20b12e6ef31168e2b188eaba2c384ad79
[]
no_license
DavidRSeWell/RLDashApp
06b9baf4cfdc8f21ac62923b066e277b97fd40d6
33f9d63d0c9a65353dba67fb5831ba331ef7ed97
refs/heads/master
2023-02-06T18:44:12.739959
2019-06-21T19:28:16
2019-06-21T19:28:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,917
py
import datetime import time import os import sqlite3 import pandas as pd import numpy as np import h5py from scipy.stats import norm from celery import Celery from scipy.stats import norm def format_query(q): q = q.replace('\n',' ') q = ' '.join(q.split()) return q def execute_sql(db,q): conn = ...
[ "befeltingu@gmail.com" ]
befeltingu@gmail.com
c4b87867633ef1590bf86b17328f7c49e7240a27
74d54aef5bc3fc3aeb01a16c4738d59215085790
/sm/main.py
b92b99e9edc36d8b9194d92c4b5212e3a1a1fb2b
[]
no_license
sarthak77/super-mario
a051cd96bef178a86f1c1f1f46d9f3574e55c7df
1dc97213c735d20f265a9e9e5a1ac51de963b7cf
refs/heads/master
2022-07-10T11:16:41.276036
2019-07-07T06:06:59
2019-07-07T06:06:59
148,191,715
2
2
null
2022-06-21T22:16:09
2018-09-10T17:17:22
Python
UTF-8
Python
false
false
32,053
py
#main code of the game from start import * from mainscene import * from func import * import time import sys import select import tty import termios #GLABAL VARIABLES quit=1 i=0 mariopresent=[33,7] marioprev=["-","-","-","-","-","-","-","-"]# 8 elements life=3 score=0#coins a=time.time() cjump=10#for surprise coin bul...
[ "sarthak.singhal@students.iiit.ac.in" ]
sarthak.singhal@students.iiit.ac.in
8e8bf11e41d2a9d112c996c91aedda605b92f21a
f1a7f108df5b6aef8672844bffa9e938b72089be
/networks/pretrained_net/__init__.py
7f64fa2a15c76b6f62f2786c1f5307871e439b73
[]
no_license
qianqian397/Dogs_vs_Cats_TensorFlow_Keras
1a2325793cb91cc0c0e7f4aaeb7d5e028d3f3332
0e40018efc5ddc9379f840978470834e472f2de0
refs/heads/master
2020-11-26T22:58:20.037355
2019-12-12T10:19:20
2019-12-12T10:19:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
from networks.pretrained_net.VGG16.VGG16 import VGG16 from networks.pretrained_net.RESNET50.ResNet50 import ResNet50
[ "nickhuang1996@126.com" ]
nickhuang1996@126.com
129ec1929c1af7937079abce7452c92eea96f8e4
2443f23d928a6b3516f810e3dfdf6f4b72aa0325
/st01.Python기초/py08반복문/py08_16_보초값.py
75f7ddc86a9165bb9ee575c350e7cb0af877175b
[]
no_license
syuri7/Python20200209
48653898f0ce94b8852a6a43e4e806adcf8cd233
5f0184d9b235ce366e228b84c663a376a9957962
refs/heads/master
2021-01-01T10:37:59.077170
2020-03-15T09:15:50
2020-03-15T09:15:50
239,241,118
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
# while문을 사용하여 합계를 구하시오. # 무한 반복과 반목문(루프) 탈출을 결합한 예정 # 페이지 134 참고 # 무한 반복문은 조건식을 True로 하면 된다. # 루프 탈출은 break를 사용하면 된다. sum = 0 count = 0 print("종료하려면 음수를 입력하시오.") while True: # 무한 루프 입력값 = input("성적을 입력하시오.") # 정수로 변환 입력값 = int(입력값) # 입력값이 음수이면 반복문을 종료 if 입력값 < 0: break # 반복문을 종료 ...
[ "d@d" ]
d@d
f32d2ec9c40cacb50e5ba2d49c0873d117c8bc4c
c0f2a38caac5b8af21a4c526987dd0532eebda28
/run.py
dc9f0031214d0fa00d497bec8310ec37d7b401f7
[]
no_license
boer0924/boer-wechat
fba1dff9d65b2b23cea0d83503f5462cfa937126
d8b8a856af279f5fc2bea9117d9ae814418a061d
refs/heads/master
2020-06-13T22:48:50.428663
2016-12-09T14:30:11
2016-12-09T14:30:11
75,544,083
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
import os from app import create_app from config import config app = create_app(os.getenv('FLASK_CONFIG') or 'default') if __name__ == '__main__': app.run(host='0.0.0.0', port=5000)
[ "boer0924@qq.com" ]
boer0924@qq.com
9390ac9a05ba2cf70ffb3bf1c4c724e79c3c8eda
81f81a9affdd0bd467825fd4e21d9a0cd835706b
/grass/03_pygrass_serial/pygrass_serial.py
cbbbcd4c6af7c8421e3d539c5fcec33517bf2dc0
[]
no_license
csc-training/geocomputing
dd4445c505bf6051b0629d5617264acbc9284a88
582e51f90089130adcd4da42e69c4b7c95cc3625
refs/heads/master
2023-08-24T21:19:19.730574
2023-08-23T12:52:14
2023-08-23T12:52:14
99,661,745
35
21
null
2023-09-14T11:07:39
2017-08-08T07:07:17
Jupyter Notebook
UTF-8
Python
false
false
1,307
py
from grass.pygrass.modules.shortcuts import general as g from grass.pygrass.modules.shortcuts import raster as r from grass.pygrass.modules.shortcuts import vector as v #from grass.pygrass.modules.shortcuts import temporal as t from grass.pygrass.modules.grid import GridModule file='/appl/data/geo/mml/dem10m/2019/W3/...
[ "kylli.ek@csc.fi" ]
kylli.ek@csc.fi
bd1771928b88b2b00dd990cdf0a30f7110cf8d84
a0c6af3627a8b5b306d0a7d43dd3bc362b041449
/app.py
53c929f41104f59e6af2a43efda2bd939afc33ad
[]
no_license
amandageorgescu/chatapi
e991d0d1093270c021d575723061338b18a4761c
c19409a8918d66e3148376d29b6dcb72688fa22f
refs/heads/master
2021-01-11T14:53:12.971149
2017-02-05T00:25:28
2017-02-05T00:25:28
80,242,919
0
0
null
null
null
null
UTF-8
Python
false
false
4,771
py
#!/usr/local/bin/env python import flask import flask_sqlalchemy import hashlib import app import os import datetime from flask import request, json app = flask.Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/chat.db' db = flask_sqlalchemy.SQLAlchemy(app) #Model class User(db.Model): __table...
[ "georgescu.amanda@gmail.com" ]
georgescu.amanda@gmail.com
deaf0d68b75d76daf2148049eed3e2be5d5008b9
60aa3bcf5ace0282210685e74ee8ed31debe1769
/core/sims4/repr_utils.py
8fe89c74f5e505a9815ce9efad0af05baaee8694
[]
no_license
TheBreadGuy/sims4-ai-engine
42afc79b8c02527353cc084117a4b8da900ebdb4
865212e841c716dc4364e0dba286f02af8d716e8
refs/heads/master
2023-03-16T00:57:45.672706
2016-05-01T17:26:01
2016-05-01T17:26:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,243
py
from types import FrameType import functools import sys def _strip_source_path(path): for f in sys.path: while path.startswith(f): return path[len(f):].lstrip('\\/') return path class suppress_quotes(str): __qualname__ = 'suppress_quotes' def __str__(self): return self ...
[ "jp@bellgeorge.com" ]
jp@bellgeorge.com
1e83a61419ae959d0270392bdd2b2ac0193a8498
abc686d65019110193b97678b48b08433a7e034d
/scraper-framework/scrapy_balloons/supportclients/aws.py
69e59a8cdc360c0f4f0485b44c2fa6cb30ed78be
[]
no_license
huyhoang17/scraper
bb261bdfbd88c7599f55e22d57a364bee2deef88
c7b928097fd14a20dad4e400216b63256e6dbab8
refs/heads/master
2021-01-11T02:10:46.411954
2015-05-26T06:33:00
2015-05-26T06:33:00
70,796,442
1
0
null
2016-10-13T10:40:28
2016-10-13T10:40:28
null
UTF-8
Python
false
false
2,987
py
from scrapy_balloons.utils.allfunctions import * from scrapy.http import Request from scrapy_balloons.items import * from time import gmtime, strftime import re class aws: """ Step 1: Create 1 request from code 'RequestVerificationToken' Step 2: Get event's data from response """ api_url = "https:...
[ "hoangminh.itvn@outlook.com" ]
hoangminh.itvn@outlook.com
7e1d3f98f9918b8c57609a3abdbe11d5430f69ca
7f8ae468840f175a4744896986d4ec66895f08c2
/src/logcollection/loggers.py
7f85bc7dc7dc0ceaae168959543cf8019ea29f5d
[]
no_license
TakesxiSximada/logcollection
1ed54554c12d12e10149d1c473cd0eab00bd1cb2
19028f249fe7526227f3fe11607b24812a000b5c
refs/heads/master
2016-09-11T01:19:13.810367
2015-08-30T13:54:24
2015-08-30T13:54:24
29,011,707
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
# -*- coding: utf-8 -*- import logging from functools import lru_cache from lazr.delegates import delegate_to from .interfaces import ILogger @delegate_to(ILogger, context='_context') class LazyLogger(object): def __init__(self, name): self._name = name @property @lru_cache() def _context(sel...
[ "takesxi.sximada@gmail.com" ]
takesxi.sximada@gmail.com
4259f82d3a522f689537a8024e105b0567bea99b
bd9f7f145422e242a60a5ee090e3070f707acd3c
/UPC.py
3221bf82b6de6e15d3a791648ccd9bec66be4cfe
[]
no_license
Gav104/practice_code
cfbf754bc3ebb46f62c7416688399d80fd4cf3fc
1bdf9aca8929667bd29458a5dded9c90582f6fa7
refs/heads/master
2020-12-28T16:51:29.188186
2020-02-06T07:04:01
2020-02-06T07:04:01
238,403,102
1
0
null
null
null
null
UTF-8
Python
false
false
526
py
import requests import json import csv UPC = input("What is the UPC? - ") UPCResult = ("https://api.upcitemdb.com/prod/trial/lookup?upc=" + UPC) UPCResult # Website / URL we will contact wjdata = requests.get(UPCResult).json() print('\n') dataset = (wjdata['items'][0]) print(dataset) print(type(dataset)) print("-")...
[ "gavinohanlon104@gmail.com" ]
gavinohanlon104@gmail.com
99ac6fe4c345bbe0805306eae469c131dcc7e20c
c216e15a00b3b729ce4aeefc1d85edffe7eb1b48
/closures.py
8848a48df788487181cf760a40cd98269b51e516
[]
no_license
succinction/Python
564b677701eb2b234db98aaccbbdd00704399f30
10f6e2d6ba5f72d23e3600a9afa158f7d06eefae
refs/heads/master
2021-06-16T19:07:57.518667
2017-06-07T20:23:58
2017-06-07T20:23:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
def a_new_decorator(a_func): def wrapTheFunction(): print("I am doing some boring work before executing a_func()") a_func() print("I am doing some boring work after executing a_func()") return wrapTheFunction # def a_function_requiring_decoration(): # print("I am the function w...
[ "succinction@gmail.com" ]
succinction@gmail.com
363b901442a645ecf9548d3dc0b6dfe3fbcb2f6f
a900f9c17af9fe73783e89940040ffa54158dd21
/test/test_add_contact.py
acf5b6100a5708971d1a4ae04604895ae33cbbd2
[ "Apache-2.0" ]
permissive
mikhaylov2a/python_training
48de6c746eacd36676b407507fec4b2a932ab70c
18ee7a5dd5189506d037e5d65facd1a2ec26e19f
refs/heads/master
2020-12-14T09:18:51.548731
2020-01-26T16:55:05
2020-01-26T16:55:05
234,696,038
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
# -*- coding: utf-8 -*- from model.contact import Contact def test_add_contact(app): app.session.login("admin", "secret") app.contact.create_contact(Contact(firstname="john", middlename="j", lastname="smith", nickname="neo", title="title", companyname="RealCo", firstaddress="1st...
[ "mikhailov2a@gmail.com" ]
mikhailov2a@gmail.com
deca784aa0384b1925a9d39771ac13ea8b93714d
edd5faeff1698f9e58c5a91c9567b4579e68323d
/test/test_sh.py
dac63a3e41dbf7e30c32ec6cc0fe52a6d393f357
[ "MIT" ]
permissive
GaryLee/cmdlet
30151491f5dba991142edf9af01bb674282d9073
d5bc971ea1e3afe866ba882b97453964d8517783
refs/heads/master
2021-01-10T17:24:41.596090
2020-08-30T14:56:23
2020-08-30T14:56:23
46,262,134
3
0
null
null
null
null
UTF-8
Python
false
false
1,667
py
#!python # coding: utf-8 import sys import platform from os import path from cmdlet.cmds import * is_py3 = sys.version_info >= (3, 0) def test_sh_input(): register_default_types() test_vector = ['this', 'is', 'a', 'shell', 'input', 'output', 'test', '!!'] if is_py3: cmd=r'''python3 -c "from sys ...
[ "garywlee@gmail.com" ]
garywlee@gmail.com
dac4a90c856c8b6205ee53a754f74e9b55ce5fd6
13efbb0b88ff2adf5d7cf62106676c4347dfae31
/factorset/factors/ROIC.py
d55e2f5d7eef252f42979fe7034a572f00aca2eb
[ "MIT" ]
permissive
michaellinp/factorset
a5a05a82887e84474a1678627a0cf739f5513ef8
ad246804449b31c0e24434ade75b86513eecf72c
refs/heads/master
2022-01-08T06:50:10.700589
2018-05-25T13:15:28
2018-05-25T13:15:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,768
py
# -*- coding:utf-8 -*- """ @author:code37 @file:ROIC.py @time:2018/3/217:39 """ import pandas as pd import tushare as ts from factorset.factors import BaseFactor from factorset.data.OtherData import code_to_symbol, shift_date from factorset.data import CSVParser as cp from factorset.Util.finance import ttmContinues c...
[ "495673131@qq.com" ]
495673131@qq.com
62115d63d7c3755e8fc05d6cf73fa9d3a9857653
e461f81351a70ee2f8040d7e776f32cde86951a3
/bin/easy_install-3.7
d6f1237f92a066bbd2260d004a79fba8b66ba273
[]
no_license
gaspiman/facecrop
1c4637ecec39c15a596c782cbceb5e977ae87460
0d87ee0f42a0f22d846b0092bac5cdc9c4e5a161
refs/heads/main
2023-01-18T17:33:25.994212
2020-11-20T14:44:19
2020-11-20T14:44:19
314,577,622
0
0
null
null
null
null
UTF-8
Python
false
false
285
7
#!/Users/gaspiman/dev/src/github.com/gaspiman/suggestions/.env/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ayouroukov@gmail.com" ]
ayouroukov@gmail.com
2c6c4264cb594c4bc7ecaa40e5d99619f2ca30cf
eee6dd18897d3118f41cb5e6f93f830e06fbfe2f
/venv/lib/python3.6/site-packages/pip/_vendor/distlib/metadata.py
69ef29eb16fc38a48ed43e07359abac03efebd73
[]
no_license
georgeosodo/ml
2148ecd192ce3d9750951715c9f2bfe041df056a
48fba92263e9295e9e14697ec00dca35c94d0af0
refs/heads/master
2020-03-14T11:39:58.475364
2018-04-30T13:13:01
2018-04-30T13:13:01
131,595,044
0
0
null
null
null
null
UTF-8
Python
false
false
40,001
py
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Implementation of the Metadata for Python packages PEPs. Supports all metadata formats (1.0, 1.1, 1.2, and 2.0 experimental). """ import codecs from email import message_from_file import json i...
[ "georgeosodo2010@gmail.com" ]
georgeosodo2010@gmail.com
d1ab281c2e62d65260d23ab349dc6a3a12a368ca
8e14eb40fd16c3432c4d4d19306f8fd7919c20cd
/cliente/testeJson.py
b2d4a77a6f8423751118e9c7c87192cbb5a46eea
[]
no_license
SymbiSoft/pytrucos60
ab354126293827ca66f29dea8483ae266bfc402c
de533b0d60c16618e2685b38b8f33dac4900e205
refs/heads/master
2021-01-10T15:06:59.470248
2012-06-07T19:55:42
2012-06-07T19:55:42
48,182,900
0
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
#-*- coding: utf-8 -*- # Author: Wander Jardim # email: wanderjardim@gmail.com # Copyright 2011 # About: The main application class, will hold event processing # code as also objects to represent windows. import appuifw import e32 import sys import os PYTRUCOS60_UID = u"ef080808" TESTE_PATH1 = "\\Python\\" ...
[ "wanderjardim@gmail.com" ]
wanderjardim@gmail.com
3643846cd776764fc37a7bffd93fbf6320164c7a
979e64ea513a29309967a03b6d282c386fb374cb
/articles/urls.py
a5ce0ff3c9f465b630fba9eff44449a94bebf515
[]
no_license
Arthanadftz/vkr_project_v2
0af87149bcd26f99a264993e70df1744913f6c68
f204f8a14810c3ee52a7c81927a9fdbc7e9941c4
refs/heads/master
2023-04-27T14:55:09.162157
2019-06-09T13:34:32
2019-06-09T13:34:32
187,499,092
0
0
null
2023-04-21T20:31:49
2019-05-19T16:08:07
Python
UTF-8
Python
false
false
490
py
from django.urls import path from . import views urlpatterns = [ path('', views.ArticleListView.as_view(), name='article_list'), path('new/', views.ArticleCreateView.as_view(), name='article_new'), path('<int:pk>/edit/', views.ArticleUpdateView.as_view(), name='article_edit'), path('<int:pk>/...
[ "nikitazdanov@iMac-Nikita.local" ]
nikitazdanov@iMac-Nikita.local
59975cc741528fa0110c3e9cc78057a3c98883cf
019994225e24e2dea836f21f4d39c3cf891ebab5
/models/Location.py
c22172ff8668b14bf8f4b0a41f87881508dd74a7
[ "MIT" ]
permissive
AbdelrhmanHamouda/Weather_RESTful_api
67c51bf62f97dad666d68bd7528c5fac3ab7525c
6fa4c52a04d78ea99218226670fa5265b36fb68d
refs/heads/main
2023-02-03T05:25:03.630576
2020-12-20T09:43:16
2020-12-20T09:43:16
317,033,781
0
0
MIT
2020-12-13T20:56:35
2020-11-29T20:08:23
Python
UTF-8
Python
false
false
241
py
from typing import Optional from pydantic import BaseModel # Init a pydantic model to use in the route instead of passing so many variables. class Location(BaseModel): city: str state: Optional[str] = None country: str = 'US'
[ "abdelrhman.ahmed@outlook.com" ]
abdelrhman.ahmed@outlook.com
1cf467b58fc95dc223aba6b2fc94d92dce2949cd
fa3bf02fdcd6dfa48de8b9345c0131ac61abe0ab
/alphastarmini/core/arch/spatial_encoder.py
7f235287a5f1b98cbaf021d49e8a010734380604
[ "Apache-2.0" ]
permissive
jkchromy/mini-AlphaStar
d56423e2e86cb69ea100518e3d16f59eb6851c5e
9c9f7a4cc53a969da9d53d7dd46122178d83085e
refs/heads/main
2023-09-05T20:54:27.279230
2021-11-15T02:06:23
2021-11-15T02:06:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,155
py
#!/usr/bin/env python # -*- coding: utf-8 -*- " Spatial Encoder." import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from alphastarmini.core.arch.entity_encoder import EntityEncoder from alphastarmini.core.arch.entity_encoder import...
[ "liuruoze@163.com" ]
liuruoze@163.com
fd72a5293e172d8358502b21a6a3d9f435c2e9bb
fe7dbe29d50f3e122cc21fe347e5c231eb26024f
/project/grocery_list/views.py
b2e37e48f00d0df24b543557b17d874f77250b0d
[]
no_license
anadyr-1/grocery
431e575fd81161ce7d6e40d8b3f10811cb0ef2d8
66033ca69487144ebb8e5aafd752265fd2546b22
refs/heads/master
2020-03-27T11:57:32.566389
2018-09-21T22:34:31
2018-09-21T22:34:31
146,517,021
0
0
null
null
null
null
UTF-8
Python
false
false
3,262
py
from grocery_list.models import Grocery, GroceryList, Recipe from grocery_list.serializers import GrocerySerializer, GroceryListSerializer, RecipeSerializer from rest_framework import generics from rest_framework.response import Response from rest_framework.parsers import JSONParser from django.views.decorators.csrf im...
[ "patrick.lauppe@gmail.com" ]
patrick.lauppe@gmail.com
397af5e22f3391d8db8b9ebfad7cb31cbb87725e
b20f297495857e6eec300452f85ea5f293d324d0
/generate.py
d9326fe4fc3ce29e73714a2e71ef3fbc3d6562c1
[]
no_license
zhaoxuhui/video-generator
7e4d28ca4bfbffd120f764bb1e56249985903c7a
c310503afe0b87ec27f1376a1110045314d20c50
refs/heads/master
2021-02-27T13:09:16.350241
2020-03-07T10:11:26
2020-03-07T10:11:26
245,607,321
0
0
null
null
null
null
UTF-8
Python
false
false
8,456
py
import cv2 import numpy as np from PIL import Image, ImageDraw, ImageFont import os def findAllFiles(root_dir, filter): """ 在指定目录查找指定类型文件 :param root_dir: 查找目录 :param filter: 文件类型 :return: 路径、名称、文件全路径 """ print("Finding files ends with \'" + filter + "\' ...") separator = os.path.se...
[ "zhaoxuhui1993@qq.com" ]
zhaoxuhui1993@qq.com
d8bca2f697fc48df753b8ebc8305207a7cf39ca5
8a7e8fd10a43c10b6e8ab04ed338a7fcff54947d
/docs/conf.py
19e12a747cfc167b848d77ee62f38738ee3c1b51
[ "MIT" ]
permissive
xcnkx/kaggle_titanic
e6dbb1008b31e24132de274b80ab9a6bb9048e6a
09f774b708ae5f7563d14e74ba121748833ff6cc
refs/heads/master
2022-12-22T02:00:28.841050
2019-04-27T04:47:23
2019-04-27T04:47:23
174,256,359
0
0
MIT
2022-12-08T01:40:47
2019-03-07T02:26:06
Jupyter Notebook
UTF-8
Python
false
false
7,825
py
# -*- coding: utf-8 -*- # # Kaggle_titanic documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values...
[ "cnk_2806@me.com" ]
cnk_2806@me.com
53882dc73e368f6c749d7838a985265351315fb0
f64d8201c2e55d7631d0a03a7a51d146c7d5c761
/00Python代码/flask_learn/10extends_block/extends_block.py
e882945721804bf0cdb4dafcb648896e538e10a1
[]
no_license
wh-orange/CodeRecord
cd14b5ccc1760a3d71762fef596ba9ab8dac8b8c
0e67d1dafcb2feaf90ffb55964af7a9be050e0ee
refs/heads/master
2022-01-18T10:26:27.993210
2019-08-04T17:38:35
2019-08-04T17:38:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
#encoding: utf-8 from flask import Flask,render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/login/') def login(): return render_template('login.html') if __name__ == '__main__': app.run(debug=True)
[ "ljressrg@gmail.com" ]
ljressrg@gmail.com
fbefe5ee53df4789d1f34bd68a4a528e2a05ab55
a3785b6ff7734d98af1417000cd619a59bd5a268
/part_2_mmntv/regression/mpg/master_process.py
5cb1a476caa23132c8799010886daa0520f3c007
[]
no_license
SuryodayBasak/mst-final-run
bd9800744ab4fb6f0947c258ebc1be1151bc9ff2
2cde94af03d63f66cc3753843e4e60c92c313466
refs/heads/master
2022-07-01T22:40:39.003096
2020-05-09T04:25:18
2020-05-09T04:25:18
260,341,230
0
0
null
null
null
null
UTF-8
Python
false
false
4,352
py
import numpy as np import data_api as da import multiprocessing import time from knn import KNNRegressor, DwKNNRegressor from sklearn.model_selection import train_test_split from ga import GeneticAlgorithm from sklearn.metrics import mean_squared_error as skmse from ga_run import ga_run from pso_run import gbest_pso_ru...
[ "suryodaybasak@gmail.com" ]
suryodaybasak@gmail.com
c0e4444f72f861346f349b0d3e17248c24e001e7
6f05f7d5a67b6bb87956a22b988067ec772ba966
/data/test/python/b12493130ac5924d0181574c0779561a13d48541admin.py
b12493130ac5924d0181574c0779561a13d48541
[ "MIT" ]
permissive
harshp8l/deep-learning-lang-detection
93b6d24a38081597c610ecf9b1f3b92c7d669be5
2a54293181c1c2b1a2b840ddee4d4d80177efb33
refs/heads/master
2020-04-07T18:07:00.697994
2018-11-29T23:21:23
2018-11-29T23:21:23
158,597,498
0
0
MIT
2018-11-21T19:36:42
2018-11-21T19:36:41
null
UTF-8
Python
false
false
559
py
from django.contrib import admin from repositories.models import Repository, Credential from repositories.forms import RepositoryForm, CredentialForm class RepositoryAdmin(admin.ModelAdmin): form = RepositoryForm list_display = ('name', 'manager', 'endpoint') class CredentialAdmin(admin.ModelAdmin): form ...
[ "aliostad+github@gmail.com" ]
aliostad+github@gmail.com
31299d70df8982c1ec42479742d8a20e0c929a42
4a8d3c70a8d234d3b8951e5a58709d2be54ac842
/cart/cart.py
5b29d5f5401e078a3eeaeaa77eb0eb3415fcf6a9
[]
no_license
ekatwho/bookstore45
8107ed75ca01fe5d5db03e4f654cbb4552fccdec
8879b94c854e49408ceeaf510991c122d63df385
refs/heads/master
2023-05-25T06:39:18.707193
2021-05-29T09:08:57
2021-05-29T09:08:57
366,277,023
0
1
null
2021-05-11T14:49:42
2021-05-11T06:21:32
Python
UTF-8
Python
false
false
2,413
py
from decimal import Decimal from django.conf import settings from shop.models import Product class Cart(object): def __init__(self, request): """ Initialize the cart. """ self.session = request.session cart = self.session.get(settings.CART_SESSION_ID) ...
[ "noreply@github.com" ]
noreply@github.com
660ee441142d617aee932d223611f5b28bc11cf0
90969b7b86f0b17a25f8f1ea9360a53e1855f36e
/news_app/routes.py
c269242adec49d71dc1abc888adfc23522a75a9f
[]
no_license
MoneaVlad/flask-news-app
2648a6a76b9f3901a3844251ad0884ef061bcf8b
93bcbd1bf57814d1f526edef3e46c269c65d7963
refs/heads/main
2023-05-07T13:44:40.611775
2021-05-20T00:01:45
2021-05-20T00:01:45
369,000,534
0
0
null
null
null
null
UTF-8
Python
false
false
3,149
py
from news_app.news import getNewsFromTopic, getTopics from flask import render_template, redirect, url_for, request, flash from flask_login import login_user, current_user, logout_user, login_required from news_app import app, db from news_app.forms import RegistrationForm, LoginForm from news_app.news import getNewsFr...
[ "vmonea@fitbit.com" ]
vmonea@fitbit.com
b8359d24dd876ab46950040d77eb52f836f79def
2736cebfd34ebdec028f0bbcfffbd8e0e75b98a7
/ML/Capacity_Planning/input_csv.py
4bde83feac182b7e5a0270491255d4f0215356cc
[]
no_license
braja535/Codes
10078e10d7cdfbf7019a52aa309066f886c96df0
b4d35c3ca76eacddf1333a55b10acaeb31121fc4
refs/heads/master
2020-12-02T22:42:54.036206
2017-08-02T16:00:41
2017-08-02T16:00:41
96,169,547
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
import csv import pandas as pd import io import random import math #df = pd.read_csv('compute-03.csv',usecols=['time','value']) #df = pd.read_csv('/home/raja/aggregation-cpu-average.percent-active_bb-blr-prod-compute.csv',usecols=['time','value']) #df.to_csv('prod-compute.csv') def LoadDatasets(filename,split,traini...
[ "natajasekhar@bankbazaar.com" ]
natajasekhar@bankbazaar.com
bbcb4440cdf209b3729ac4d4eb688a416411d79d
ce32657c87891a645dd116d378f6b1519ad8a3bc
/onmt/modules/global_attention.py
b14692951d9842d8dadf4382c05baf1793fe9aae
[]
no_license
CreaterLL/DDAMS
6dae2e8524308669ff68020b71983ac0f438affe
8fe17bd2b36c10f5a338b8aec9b7adad0ceb261a
refs/heads/main
2023-05-13T09:44:52.224705
2021-06-15T11:20:36
2021-06-15T11:20:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,849
py
"""Global attention modules (Luong / Bahdanau)""" import torch import torch.nn as nn import torch.nn.functional as F from onmt.modules.sparse_activations import sparsemax from onmt.utils.misc import aeq, sequence_mask # This class is mainly used by decoder.py for RNNs but also # by the CNN / transformer decoder when...
[ "fengxiachong_hit@163.com" ]
fengxiachong_hit@163.com
941316000714f17d11800af916d06a25fef729ca
c7010ded86da5be48d10f65d9397be6254be1a09
/code.py
8826d1d4d4f59c75731befd8be8c937d162e6f3f
[ "MIT" ]
permissive
MapuH/Coursera-Python
0a9d26c2d2eb7a626e840bffd6b37ccd5726af69
fc9cd88483da49bb043db1255586c30265b2fb66
refs/heads/master
2021-01-01T19:59:31.524815
2015-01-10T21:59:33
2015-01-10T21:59:33
29,064,536
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
print "This is my first line of code." print("This is my second line of code.")
[ "m.s.marinov@gmail.com" ]
m.s.marinov@gmail.com
6ca259815af0d360b758e2b3500b632cac6ef117
301a6d0e527c0740faa9d07f3e75ef719c51f858
/gantcal/cal/migrations/0006_auto_20160210_1233.py
e1243e4b17e588761e3b64e02d5c4d74b5ef563c
[]
no_license
akmiller01/gantcal
249eafa2de1d261ba7e54d59a8275e980caaf408
da99526f3a353bcc83fb2900044a4c8e8db0e6b5
refs/heads/master
2021-01-17T15:24:23.206363
2017-02-22T14:21:04
2017-02-22T14:21:04
51,007,120
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-10 12:33 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
[ "alex.k.miller@gmail.com" ]
alex.k.miller@gmail.com
aa1fa18c03be28898f5293490a23de02df193858
28e39e4f308de8b90e3813e347f8b87f2bd7b569
/imgcrawler/crawler_func.py
4c957b44985512e29c5db03a8673ce55394f9800
[]
no_license
yunluoxiaobin/imgcrawler-tool
5b33560c30e1447cd75763190e22f6aeed3441df
c67c97750f95dfea18f0073508834c54154a3abb
refs/heads/master
2023-01-30T13:26:58.751322
2020-12-14T03:23:59
2020-12-14T03:23:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,367
py
import requests from bs4 import BeautifulSoup import re import uuid from tqdm import tqdm import time import shutil import os baidu_url = 'http://image.baidu.com/search/flip?tn=baiduimage&ie=utf-8&ct=201326592&v=flip&word=' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KH...
[ "409767510@qq.com" ]
409767510@qq.com
24450b29d23b2b7f0f99a3b2bb2811bd670bf89a
babc3e26d66a8084c9f84a0431338bafabae6ffd
/TaeJuneJoung/ACM/brute_force/p1182.부분수열의 합.py
57966b23796f176632ebfe67ed031fd3ce6133ab
[]
no_license
hoteldelluna/AlgoStudy
5c23a1bfb07dbfbabc5bedd541d61784d58d3edc
49ec098cecf2b775727d5648161f773e5488089b
refs/heads/dev
2022-10-09T14:29:00.580834
2020-01-25T14:40:55
2020-01-25T14:40:55
201,632,052
5
0
null
2020-01-25T14:40:57
2019-08-10T13:11:41
Python
UTF-8
Python
false
false
407
py
""" [완전탐색:Brute-force Search] 집합의 모든 원소의 집합을 꺼내서 합한 후, 해당 값과 같은지 비교하여 같으면 cnt++ """ N, R = map(int, input().split()) arr = list(map(int, input().split())) cnt = 0 for i in range(1, 1 << N): sum_num = 0 for j in range(N): if i & 1 << j != 0: sum_num += arr[j] if sum_num == R: cn...
[ "jtj0525@gmail.com" ]
jtj0525@gmail.com
a8b262d5222cd6bfb53827635cddb4926379e537
a93cb5d670ab3b11f75f1afbd925fea2fac3aa92
/backend/maze_game_19808/settings.py
edb194014f1bab70390523539427a56c2ea70179
[]
no_license
crowdbotics-apps/maze-game-19808
156f1d011f8da29906ebde97688885207a1ce0b7
4abba9ca9b5adbb9a6c16005beae1c7946963182
refs/heads/master
2022-12-05T16:41:49.030137
2020-08-27T00:27:17
2020-08-27T00:27:17
290,634,346
0
0
null
null
null
null
UTF-8
Python
false
false
5,901
py
""" Django settings for maze_game_19808 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
18112fc2ef13761ab56b0ad9361922b18eedae8b
06397078d27796c4f8a7172232925c97d8075dc8
/app-3rd-party/ultragrid-1.1-rc4/FastDXT/bin/dnd.py
61433748ccc8a9084d87f6a328c24275019f3b68
[]
no_license
ItayGal2/sage-graphics
5ca89459a2c05ebf965d11f636e9a72028a8db5c
090640167329ace4b6ad266d47db5bb2b0394232
refs/heads/master
2021-01-10T20:14:06.718143
2012-07-24T18:41:59
2012-07-24T18:41:59
38,210,116
0
1
null
null
null
null
UTF-8
Python
false
false
6,811
py
import wx import os, stat #---------------------------------------------------------------------- PATH2DXT = "/Users/luc/Dev/FastDXT/bin/2dxt" WIDTH = 1920 HEIGHT = 1080 FORMAT = 1 #---------------------------------------------------------------------- def mylistdir(directory): """A specialized version of o...
[ "renambot@gmail.com" ]
renambot@gmail.com
7a4e323cd0bfbc8996619f0391c5f023deeeeaa8
6c866622c26e36da473d411d8f61252da12ecf4c
/demo/mongodb/runserver.py
dc77eacbd1d8ad03bc3c1518ca54d2e2fa08562e
[]
no_license
mrpadan/resource
d3d5e018ae927871af8f463293ccb762eab3aaa9
fe9cdfc7553c7748c3eb2b7e50ce1dc6167b9e8d
refs/heads/master
2021-01-20T17:33:35.828883
2014-10-13T15:02:25
2014-10-13T15:19:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import datetime from jsonform import JsonForm from pymongo import MongoClient from flask import Flask from resource import Resource, Filter from resource.index import Index from resource.db.mongo import Collection, MongoSerializer from resource.contrib.fram...
[ "luopeng.he@gmail.com" ]
luopeng.he@gmail.com
3ab792aded34c44d711400676e9f9c82534fcf19
579217c21329537358ee7f098c1e5bfb867b67aa
/RemoteOperation.py
2c116522da038f43285a23fd16f456ebe0d5cfc9
[]
no_license
max827/del_to_excel
e1528d44ccf9e95a188005b85a7a64ef6e860567
7468f9780cddb555c4169d101266f9474b233366
refs/heads/master
2023-08-03T13:23:43.705902
2021-09-26T15:03:12
2021-09-26T15:03:12
403,241,102
0
0
null
null
null
null
UTF-8
Python
false
false
3,237
py
import paramiko import requests import paramiko import os from stat import S_ISDIR as isdir class RemoteOperation: def __init__(self, host, username, password): self.host = host self.username = username self.password = password def ssh_Run_Cmd(self, cmd): """ 远程执行 CMD ...
[ "942134712@qq.com" ]
942134712@qq.com
474d47fa263276c39e312bb95ec77e4a5467baca
f6cdbacc79802ee2408c5686ac471136a9cfb7f2
/venv/bin/easy_install-3.5
5bb06649ebc168d69c0c61e21953732481ff966c
[]
no_license
eHuisse/MLP
920563d9c3fec9413b4dd4d2b667b81a5f843cea
83b834f6f33f650ef16ed5d5a90b9dd5a528f50a
refs/heads/master
2020-04-10T17:33:27.270696
2018-12-10T13:14:26
2018-12-10T13:14:26
161,177,393
0
0
null
null
null
null
UTF-8
Python
false
false
451
5
#!/home/edouard/PycharmProjects/TPneurone/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.5' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe...
[ "huisse.edouard@wanadoo.fr" ]
huisse.edouard@wanadoo.fr
1f1134dae9bc171e4e36131aac07200d449c4ee7
16303a3f6bc8fd1f2116bc3cdd22db8f5e56ae40
/tests/common_tests/formats_tests/newick_tests.py
60dbf5d547dd262269722ddcd8964b3dd46514f3
[]
no_license
jelber2/paleomix
eb3ed410e925437321168710808b67cf8c029bbf
dfb7f8f9410e1e985992e7ed95adc36de7bc0353
refs/heads/master
2020-08-23T01:36:50.778627
2019-10-15T20:17:42
2019-10-15T20:18:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,722
py
#!/usr/bin/python # # Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com> # # 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 #...
[ "MikkelSch@gmail.com" ]
MikkelSch@gmail.com
7b9dbea9e9fdfdc4c4710de9be9f3487bc3afc4e
392edf39711e7cfa7194efaf1f4f2ed66d45e561
/pycharts/charts/bubble_chart.py
d394639a616ceaa2ae7efb6fe861e1bca2062405
[ "MIT" ]
permissive
jpmfribeiro/PyCharts
efc77e68bf75d84757b49f1d8a6536afd0861b68
e1b52ba11adbb8fa884116019e2321bc769adfba
refs/heads/master
2021-01-25T10:15:34.037422
2015-10-22T14:19:39
2015-10-22T14:19:39
32,893,304
0
0
null
null
null
null
UTF-8
Python
false
false
1,744
py
from ..fields.chart_field import ChartField from ..fields.title_field import TitleField from ..fields.axis_field import AxisField from ..fields.series_field import SeriesField from ..fields.series.series import Series from highchart import HighChart class BubbleChart(HighChart): def __init__(self, title, data, x_...
[ "mjoao@student.ethz.ch" ]
mjoao@student.ethz.ch
fceb973003007ef5405eb8febf5ac8a41ce33ad7
b8cc6d34ad44bf5c28fcca9e0df01d9ebe0ee339
/requests模块/5.5、高级用法-异常处理.py
42990463ecb480ba842a6fdf377487716d805e8c
[]
no_license
python-yc/pycharm_script
ae0e72898ef44a9de47e7548170a030c0a752eb5
c8947849090c71e131df5dc32173ebe9754df951
refs/heads/master
2023-01-05T06:16:33.857668
2020-10-31T08:09:53
2020-10-31T08:09:53
296,778,670
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
# -*- coding: utf-8 -*- #异常处理 import requests from requests.exceptions import * #可以查看requests.exceptions获取异常类型 try: r = requests.get('http://www.baidu.com', timeout=0.001) except ReadTimeout: print('=======:') except ConnectionError: # 网络不通 print('------') except Timeout: print('aaaaaa') except Request...
[ "15655982512.com" ]
15655982512.com
9cd6e3a6c838c0bb7a7fce0dcfeee063368078a5
e1fe8da6e18428401aed898f792e3193848ba094
/models/transformer_decoderToEncoder.py
d6a73fa087968f8d0205f2779181b5152a3758ef
[]
no_license
li3cmz/SRGT
0e1fe4531a7f01e0b04ac71ae8ed0fba41bd2c04
7b03f81487e949237988f420c65bef4e7d2cce09
refs/heads/master
2020-12-03T16:53:44.748993
2020-09-07T12:59:15
2020-09-07T12:59:15
231,397,670
1
0
null
2020-01-03T14:01:58
2020-01-02T14:26:18
Python
UTF-8
Python
false
false
32,199
py
# Copyright 2019 The Texar Authors. All Rights Reserved. # # 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 ...
[ "15992507766yz" ]
15992507766yz
f3ef463a068a6d88ed0913e877237474d96845e8
0f887bc316d8c665899258406b67f6e25838f9cf
/kangaroo.py
18362f5f21c7f43b649fe0f2a3dec1f8224f2523
[]
no_license
bawejakunal/hackerrank
f38489be488f76e782b7f8e8c5fdc2ba1a024c30
999008a19c3196c9706a9165923f5683ea887127
refs/heads/master
2021-01-12T04:31:50.984640
2017-09-08T02:28:44
2017-09-08T02:28:44
77,662,863
1
0
null
null
null
null
UTF-8
Python
false
false
631
py
#!/bin/python """ https://www.hackerrank.com/challenges/kangaroo x1 + v1.n = x2 + v2.n n = float(x2 - x1)/(v1 - v2) if n > 0 and whole integer then possible because the kangaroo starting at lesser position will be able to catch up AND land at exactly same position as the kangaroo with a head start """ import sys x1...
[ "bawejakunal15@gmail.com" ]
bawejakunal15@gmail.com
087550c691a7f63759958f88a2520cc4f47e3e13
a395970ce4ae445d1b0c549b54c5b3c60b6a61e1
/tmp/venv/Scripts/django-admin.py
60ad0fac3ed612605747786207340f61470fec45
[]
no_license
cxz5309/likelion_Python
ea5bd0fa82c167a5aacc52cc65d7331b59f4b46f
47ac85318647dd549788305a57b3af91f0ccdbac
refs/heads/main
2023-08-07T01:05:24.158248
2021-09-04T13:08:05
2021-09-04T13:08:05
397,220,890
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
#!c:\users\cxz53\onedrive\바탕 화면\tutorial\python\likelion_python\tmp\venv\scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportErr...
[ "42149645+cxz5309@users.noreply.github.com" ]
42149645+cxz5309@users.noreply.github.com
8d665a2fac160226625f5ff47170916d67a561a7
494c191e87ae52470b9eb5d38d4851db168ed7cc
/system_design/designing_twitter_search.py
04d1bfbcb67768989e277cd8f694365b364a79b3
[]
no_license
Jeetendranani/yaamnotes
db67e5df1e2818cf6761ab56cf2778cf1860f75e
1f859fb1d26ffeccdb847abebb0f77e9842d2ca9
refs/heads/master
2020-03-19T01:12:45.826232
2018-05-30T20:14:11
2018-05-30T20:14:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,921
py
""" Design twitter search Twitter is one of the largest social networking service where users can share photos, news, and text-based messages. In this chapter, we will design an service that can store and search user tweets. Similar Problems: Tweet search. Difficulty Level: Medium 1. What is twitter search? Twi...
[ "yunpeng-li@hotmail.com" ]
yunpeng-li@hotmail.com