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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb9691b3450709a614b89aa79f2514474029d6d9 | ea0c3e2e8e4167f5bc982d9b8619888b42c20e23 | /py/bing_search_api.py | c017fdc369b5271963e4287b388e92c2f53cd3a6 | [] | no_license | data-bit/scripts | 01eceb4ccf3532a9b02e232984316c72bb2d2df7 | 6e7cb8ee630b084a52af3e0c50b87b7d07e4197e | refs/heads/main | 2023-05-09T00:36:28.347027 | 2021-06-01T19:11:52 | 2021-06-01T19:11:52 | 339,446,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # $ mkdir dataset/charmander
# $ python search_bing_api.py --query "charmander" --output dataset/charmander
from requests import exceptions
import argparse
import requests
from cv2 import cv2
import os
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-q", "--qu... | [
"IDP7116@hca.corpad.net"
] | IDP7116@hca.corpad.net |
ed6e780555fec531ecbb2776df56d400039000ec | bfeb52b7c0faa33cff389cd6c197266aeeb5002a | /lab1/gauss.py | 835866b807dda95a9b53e3ec1b4a549359588042 | [] | no_license | NaylyaZh99/numeric_methods | e7e737f56ca865d5ddd6debdc0eee5ed29c91ecd | cef2f4f4a9a0a13b8a90ce62f23f64c99e0fd396 | refs/heads/master | 2022-01-28T05:12:47.791370 | 2019-06-01T03:39:12 | 2019-06-01T03:39:12 | 189,677,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import numpy as np
import time
import matplotlib.pyplot as plt
def gauss(n, A, f):
res = np.zeros(n)
for k in range(n):
for j in range(k + 1, n):
A[k][j] = A[k][j] / A[k][k]
f[k] = f[k] / A[k][k]
A[k][k] = 1
for i in range(k + 1, n):
for j in range(k + 1, n):
A[i][j] = A[i][j] - A[k][j] * A[i][k];
... | [
"noreply@github.com"
] | NaylyaZh99.noreply@github.com |
4b4f20ebd7680757a8764a77720b31af1cef4c8a | 17d4b72032e404ed45057c4fc5af04670b7c27b5 | /7.11-Number Pattern.py | 8f7ad45768d4c5b5237b66dcf1a3bcae9253a923 | [] | no_license | Mahendra710/Number_Pattern | 0e10e93dec6f0f28c6e0916f813bfe4340f647db | 2d2a3e0fb1b281092465700e965a87350227aafc | refs/heads/main | 2023-04-18T01:44:27.456717 | 2021-05-12T05:34:11 | 2021-05-12T05:34:11 | 366,267,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | num=input("Enter an odd length number:")
length=len(num)
for i in range(length):
for j in range(length):
if i==j or i+j==length-1:
print(num[i],end=" ")
else:
print(" ",end=" ")
print() | [
"noreply@github.com"
] | Mahendra710.noreply@github.com |
d57bda58d4f2cfac8a38db31dece06b03b25335f | 843b13d64b591ea48126a1a68c37dab663af8958 | /french_lm/dictionary.py | 4c5e15f133a8a5e11747e1c748360476e4b709cb | [] | no_license | AmaMidzu/say-it-right | ac5fd998abd90c3539d2121abc52a0a85b5c1aed | 1fb05bbbaa8236fb5f489f3dada2b3fefa58bd3b | refs/heads/master | 2021-01-12T01:29:32.289505 | 2017-12-01T01:31:33 | 2017-12-01T01:31:33 | 78,392,748 | 0 | 0 | null | 2017-01-09T04:05:57 | 2017-01-09T04:05:57 | null | UTF-8 | Python | false | false | 1,082 | py | # -*- coding: latin-1 -*-
import csv
with open('Lexique381.csv') as infile:
reader = csv.reader(infile)
#skips a couple phrase but it's negligible comparitively
mydict = {row[0]:row[1] for row in reader if (len(row[0].split()) ==1 and row[0].isalpha())}
mapping = {
'\xa7': 'o~',
'1': '9~',
'\xb0' : '@',
'2' : ... | [
"sjeong@brandeis.edu"
] | sjeong@brandeis.edu |
e953daf74af26ba80d58f622e7985c62eaf4cadd | 76de53bd3923a57a36d0ed4b4a900b56050ebb31 | /SW Expert Academy/190926/1263_사람 네트워크2.py | 61dbab0dcf1c40b17376a408ca7e36d21934b1bb | [] | no_license | Seungjin22/Algorithm | 5b4fd53ae5742d830594d116e536531959b3454d | 753dda47334e445f7a9e1e41df5e44564d99e79e | refs/heads/master | 2020-09-04T08:54:01.359518 | 2020-02-03T10:41:05 | 2020-02-03T10:41:05 | 219,697,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import sys
sys.stdin = open('1263_input.txt')
def AllPairsShortest(D):
for k in range(N):
for i in range(N):
if i != k:
for j in range(N):
if j != k and j != i:
D[i][j] = min(D[i][k] + D[k][j], D[i][j])
T = int(input())
for tc in ran... | [
"up6760@gmail.com"
] | up6760@gmail.com |
6c3e19bfc980c5147668a28b04c39f84b4d67bef | 83c7be03506bd42fb20616613c628acb00822de6 | /utils/Send_email.py | 0ae0fb78fc106f9f08a57956eb3ce8f9c289e44f | [] | no_license | haoshf/AutoRF | 5a1a6573715faf263785468d51c5ccc11b8cc8db | 28dd50b808a5c04ae552a3ed73ea8efb773048e5 | refs/heads/master | 2023-05-12T04:11:30.240631 | 2021-06-04T05:49:14 | 2021-06-04T05:49:14 | 290,464,411 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | #coding=utf8
import smtplib
from email.header import Header
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
import datetime
from repository import models
# 第三方 SMTP 服务
mail_host = "smtp.mxhichina.com" # SMTP服务器
mail_user = "haosf@jvtd.cn" # 用户名
mail_pass = "Lu201314" # 授权密码,非登录密码
se... | [
"13938863072@163.com"
] | 13938863072@163.com |
cfe436e359c52cb80c53b6b3d45d67431576f12c | 16f173135e81215d05ee8f475c13a16e3796e1fa | /Deep_Learning_with_Keras_in_Python/3.Improving_Your_Model_Performance/Learning the digits.py | 4219e773851dd4e8ea25cc68e96088e4bed25bb3 | [] | no_license | jerry-mkpong/DataCamp | 1b53821f1a32b48efdc8465251401721ba75bb56 | 10445bad35ef11567910ffab6ac70a980555a1b7 | refs/heads/master | 2022-11-11T03:57:21.923366 | 2020-06-28T17:36:10 | 2020-06-28T17:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | '''
You're going to build a model on the digits dataset, a sample dataset that comes pre-loaded with scikit learn. The digits dataset consist of 8x8 pixel handwritten digits from 0 to 9:
You want to distinguish between each of the 10 possible digits given an image, so we are dealing with multi-class classification.
T... | [
"egorfollia@gmail.com"
] | egorfollia@gmail.com |
00bb139bc7606403b576ce7cbadcf0745f8fc7fb | cc1eeb43eb9e4e83078f4c87e40a5c7fe56b109f | /Day05/shuixianhua.py | 8cb8f1e3429d4bb2394b367a322d9a2886c2fb28 | [] | no_license | test-wsl/learn_100 | d57ac4e8e7c062472273622351374decbae6d213 | 9fbb83455c15115b3cdec80d17c542e0aba2a6df | refs/heads/master | 2020-08-29T22:43:10.800177 | 2019-11-04T08:17:38 | 2019-11-04T08:17:38 | 218,192,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
寻找水仙花数
水仙花数为一个三位数,每位上的立方之和正好等于本身
version: 0.1
"""
for num in range(100, 1000):
low = num %10
mid = num // 10 %10
high = num // 100
if num == low ** 3 + mid ** 3 + high **3:
print (num)
| [
"weishl"
] | weishl |
d39d72257df172bff8f5cd5099afaa33c2f712dd | 923e430212ab0640d9e9d3a56332415821a1d734 | /dz3/2.py | c0f13fed7d0bc66f6a14c4cda38d9b4e7563f3b7 | [] | no_license | OzoNeTT/aisd-labs | e054c87cb30497cd0e9d4db8b97c8754d0421921 | 416ae3a8538f949e08000d590dcafdaa85be31b5 | refs/heads/master | 2023-01-21T15:09:43.871769 | 2020-12-06T16:21:49 | 2020-12-06T16:21:49 | 318,797,904 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | matrix = [
['*', '*', '*', '*', '*'],
['*', ' ', '*', ' ', '*'],
['*', ' ', ' ', ' ', '*'],
['*', ' ', '*', ' ', 'E'],
['*', 'S', '*', '*', '*']
]
already_visited=[]
def solve1(x,y):
print((x,y))
if matrix[x][y] == "E":
print(*matrix, sep='\n')
retur... | [
"ozonet@kali.ozonet"
] | ozonet@kali.ozonet |
a3cdabb184babdd424c3116978f8451da2f52324 | 96ee09c4da0fe9342339f900cb950aa73f5a7c27 | /Winter 2020/CCPS 305/Assignments/Assignment 2/Ass2-Template.py | 007671beb5519c6435839ecbded6bc8da5530436 | [] | no_license | kwxza/ryerson_school_work | 191eefce7b7f789d3d705d68afdf581a5deafe8d | 4d3300b78d1d17da474ef9e6a6708c068024a055 | refs/heads/master | 2022-10-29T22:55:44.976967 | 2020-06-18T01:29:30 | 2020-06-18T01:29:30 | 273,114,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | class MyTrie:
def __init__(self):
# Initialize the trie node as needed
pass
def insert(self, word):
# Insert a word into this trie node
pass
def exists(self, word, position=0):
# Return true if the passed word exists in this trie node
# A terminal node w... | [
"kpsidev@gmail.com"
] | kpsidev@gmail.com |
b7cefdc89ffe8af8e4f60dd0df293e6dd83ec5c0 | d08b3e6f9cb52b073d26b7a20a49e541268f0b44 | /curso-online/teste02.py | 83fa4e1ceb9a777ce16136e1e9afb79d01aef837 | [] | no_license | LaneriTiago/scripts-python | 7d04179f01f1f764a27f40a35438d5128e6dbc18 | 22c6cfa47337633638ddadbebabe6d7dd883e511 | refs/heads/master | 2023-01-04T18:34:56.675749 | 2020-10-24T00:33:32 | 2020-10-24T00:33:32 | 291,186,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | num1 = input ('Digite o numero 1: ')
num2 = input ('Digite o numero 2: ')
resultado = num1 + num2
print (resultado) | [
"tiago.laneri93@gmail.com"
] | tiago.laneri93@gmail.com |
b4577f6dc2ca7a3c75449f92e21cad3aa1b6b5fe | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2814/60652/240209.py | 19b8d713af73e09dfece90f18c9ba12646de0b4a | [] | 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 | 162 | py | n = int(input())
l=list(map(int,input().split()))
l.sort()
num_s=0
wait_time=0
for i in l:
if i>=wait_time:
num_s+=1
wait_time+=i
print(num_s) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
fc270e6c65f91953c840ea615d7b05fff50ca4c1 | 3555cea3c629130357ced9fb6f68f982fe6e11d1 | /hypergan/trainers/sgd_adam_trainer.py | 2475913fa8ef6391b3cf842b79225466c4c6fe33 | [
"MIT"
] | permissive | karimpedia/HyperGAN | 0fbd75d7af918d59af2117fad675e021d5e59bbc | d354a5d92d69143a519e862d2b976accd86c5e2c | refs/heads/master | 2021-01-11T15:17:50.976539 | 2017-01-21T21:21:00 | 2017-01-21T21:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | import tensorflow as tf
import numpy as np
from hypergan.util.globals import *
def initialize(config, d_vars, g_vars):
d_loss = get_tensor('d_loss')
g_loss = get_tensor('g_loss')
g_lr = np.float32(config['trainer.sgd_adam.generator.lr'])
d_lr = np.float32(config['trainer.sgd_adam.discriminator.lr'])
... | [
"martyn@255bits.com"
] | martyn@255bits.com |
c3abef289fdb1b5edf9c22750beeb472ac9b5966 | 6d5d9cad3ef750c36da30e6cee16cc0165f05821 | /venv/bin/python-config | a0723c82b24c1d5f3655350bb9118ce7becff764 | [] | no_license | CarloMara/FreeRoomFinder | f024ec966a614365fbca2e91d3a6550ae99320ef | 3061e76006a839323b1ad9fa721e42a360e8693b | refs/heads/master | 2021-04-30T08:26:28.772677 | 2018-02-13T13:48:56 | 2018-02-13T13:48:56 | 121,371,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | #!/home/carlo/Documents/uni/dei_free_room_scraper/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflag... | [
"ste.maragno@gmail.com"
] | ste.maragno@gmail.com | |
2886b9662212764044f3302a3eccaad0cdff4912 | 67ceb35320d3d02867350bc6d460ae391e0324e8 | /practice/0189-Rotate_Array.py | 14b099e5eeadce2d9badb37bee07eebce138511c | [] | no_license | mattjp/leetcode | fb11cf6016aef46843eaf0b55314e88ccd87c91a | 88ccd910dfdb0e6ca6a70fa2d37906c31f4b3d70 | refs/heads/master | 2023-01-22T20:40:48.104388 | 2022-12-26T22:03:02 | 2022-12-26T22:03:02 | 184,347,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # 189. Rotate Array
#
# Given an array, rotate the array to the right by k steps, where k is
# non-negative.
class Solution:
def rotate(self, nums: List[int], k: int) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
results = [None] * len(nums)
for i, num in enumerate(nums)... | [
"mattjp@umich.edu"
] | mattjp@umich.edu |
9fa0535a2ff8ad4adeef16e987ef257e79ac819b | 8434c17248f32817626b9865ebcc8912e18cf18e | /beginner_source/examples_nn/two_layer_net_optim.py | 6f0bd5ba1ff18b32eb3531e4da649ec12d5da719 | [
"BSD-3-Clause"
] | permissive | codingbowoo/PyTorch-tutorials-kr | 47868f8ec5aa45ff8de087f92d15d9d1aaed08d0 | 0a41550cdba4c5b1d67b652ccc66cb30ce16a762 | refs/heads/master | 2022-12-18T14:17:53.251189 | 2020-09-10T00:56:33 | 2020-09-10T00:56:33 | 278,267,902 | 2 | 0 | BSD-3-Clause | 2020-08-13T03:44:15 | 2020-07-09T05:03:57 | null | UTF-8 | Python | false | false | 2,667 | py | # -*- coding: utf-8 -*-
"""
PyTorch: optim
--------------
하나의 은닉층(hidden layer)과 편향(bias)이 없는 완전히 연결된 ReLU 신경망을,
유클리드 거리(Euclidean distance) 제곱을 최소화하는 식으로 x로부터 y를 예측하도록
학습하겠습니다.
이번에는 PyTorch의 nn 패키지를 사용하여 신경망을 구현해보겠습니다.
지금까지 해왔던 것처럼 직접 모델의 가중치를 갱신하는 대신, optim 패키지를 사용하여
가중치를 갱신할 Optimizer를 정의합니다. optim 패키지는 일반적으로 딥러닝... | [
"reserve.dev@gmail.com"
] | reserve.dev@gmail.com |
fa4afd515b85832e48027c3718d29480726e3223 | 8954988f7c9aa9dd9ae984b5f214d45d981b612b | /global_codes/global_values.py | 8171196e470210747db9bdc582c0b47d4e341453 | [] | no_license | MoamerEncsConcordiaCa/GED_python | 5494c7f0523d938b9832ee155d71c0dca5d3e1f6 | 7ad9f96e4d7b2ca6b1b91ec2386b4fa93ceacd67 | refs/heads/master | 2021-01-10T22:11:57.151730 | 2016-11-19T06:48:14 | 2016-11-19T06:48:14 | 42,900,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | '''
Created on Nov 30, 2014
@author: ameriPC
'''
gt = 'gt'
cv_list = ['cv1', 'cv2', 'cv3', 'cv4']
experiment_set_path = 'set_of_ids'
experiment_scores = 'scores'
experiment_parameters = 'parameters'
data_set_path = '../../wordspotting_dataset'
out_dir_path = '../../out_dir'
task_list_path = 'jobs'
Ce= [0, 1... | [
"mo_amer@encs.concordia.ca"
] | mo_amer@encs.concordia.ca |
f929e4e55338565906826f7583e63f82f9012ae0 | 9da2102516703f1c148085aabe867e7e9ec0b07c | /split/sample_prefixes.py | 58129b9e2f64306a8a4a4e61e45a836a738adff8 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | CurtisASmith/comet-atomic-2020-gpt2-colab | d46c82aa4084a7ae0d56d9fd3f96a0bd81084943 | 6835d4ba9ef99d02811c9728e4e4c4b405eb278a | refs/heads/master | 2023-03-27T04:40:46.890301 | 2021-03-12T11:37:21 | 2021-03-12T11:37:21 | 346,646,398 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | import argparse
import random
from utils import read_csv, write_jsonl
def sample_kg(args):
random.seed(args.random_seed)
data_file = args.input_file
data = read_csv(data_file, delimiter="\t")
prefixes = {}
for l in data:
prefix = l[0] + " " + l[1]
if prefix not in prefixes.keys... | [
"jenah@allenai.org"
] | jenah@allenai.org |
57a16be36238a704d13ed3389b205542b728c0e4 | f3b670732a1bd7661e4dd21294d18e2d949190f5 | /flowers_agent/messenger_bot/views.py | 4767483a950b61dd7ad7d7212548ecaf2db6a4fa | [
"MIT"
] | permissive | darkowic/flowers-agent | 0bc0f94205f52348a1c73e2fe162290509379ebe | f47ac7ba228781d1c3b096f42ea6a2da2b1af32b | refs/heads/master | 2021-07-12T18:42:14.673030 | 2018-09-20T07:43:44 | 2018-09-20T07:43:44 | 145,862,067 | 0 | 0 | MIT | 2020-06-05T19:06:23 | 2018-08-23T14:05:06 | JavaScript | UTF-8 | Python | false | false | 2,233 | py | import json
from django.views import generic as views
from django.http import HttpResponse, HttpResponseForbidden, Http404
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
from .helpers import WebhookHandler
# Create your views here.
class MessengerWebhookView(views.View):
... | [
"rzepkadarek@gmail.com"
] | rzepkadarek@gmail.com |
8a9dc1cce37df30579ca1364c3462cffc1c5aa18 | 6c32f0308700ca3c635ea83780f911298d2585cc | /LongestRepeatSubstring.py | 28913161bbb984be6602caebacad51aee1a77d66 | [] | no_license | bitpeng/algorithm-exercise | ece2d461c93d7752674586a8ab894216e54f7b07 | d621326e3cbc2cc2d6a127cf9e70ccbb8d010541 | refs/heads/master | 2021-01-01T17:05:53.685921 | 2015-09-05T15:34:00 | 2015-09-05T15:34:00 | 41,278,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | import random
import time
t = time.time()
def LongestPrefix(s1, s2):
if not s1 or not s2:
return 0, ""
i = 0
n1 = len(s1); n2 = len(s2)
while i < n1 and i < n2 and s1[i] == s2[i]:
i += 1
return i, s1[:i]
def LongestRepeatSubstring(s):
if not s:
return ""
a = [s[i:] ... | [
"bitpeng@yeah.net"
] | bitpeng@yeah.net |
05bcc41b1fda06b38e94d20c17eae7dd2767364c | c1f4647ba499ab6af84b62525c7a7586e4e59f70 | /learn_python_01/test_module.py | d5a9195384128b1086fbf7a5339287367ee651b6 | [] | no_license | madecai/learn-python | e406269cb70beb368b54a67499df080acbe777e9 | 65b34efef931b565a62e7af2a54b44d98b004f3d | refs/heads/main | 2022-12-26T06:29:15.390188 | 2020-10-09T08:56:58 | 2020-10-09T08:56:58 | 302,584,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | print('********** 我是test_module模块')
print('**********', __name__) # test_module
a = 10
_b = 20
c = 30
_d = 40
e = 50
_f = 60 | [
"qiang.wang03@sap.com"
] | qiang.wang03@sap.com |
a976399b9c9b2cd65b81c38fc1ab67a1eaf7764a | ce9e6fc86466eb0d0080bbc5e3762ec19e63c6db | /Python/24_yaml.py | 9a463c30708d42f9858d77b028814f70bd289b4b | [
"Unlicense"
] | permissive | tomoki-99-ikomot/programing_languages | 1ee0f96741bee67c2385e763a104f41fe3300e0d | 7aa2354f4a366b2400d3c0b86863d03073387486 | refs/heads/main | 2023-07-22T00:16:58.288735 | 2021-09-10T13:07:58 | 2021-09-10T13:07:58 | 364,067,804 | 0 | 0 | Unlicense | 2021-05-03T21:39:06 | 2021-05-03T21:39:05 | null | UTF-8 | Python | false | false | 751 | py | ################################################################################
# yaml ファイル
import yaml
# 設定値の定義
# yaml ファイルの書き込み
with open('files/24_config.yml', mode='w') as yaml_file:
yaml.dump({
'web_server': {
'host': '127.0.0.1',
'port': 80
},
'db_... | [
"tomoki_99_ikomot@yahoo.co.jp"
] | tomoki_99_ikomot@yahoo.co.jp |
4b07d1427059017a5efe9aaa2f4d709d14931aa8 | d4ea1f9747799bf503523b86b8b5ee29bab65eff | /gyun/cli/iaas_client/actions/s2/modify_s2_shared_target_attributes.py | a1ea167b28dd9c16607678be1997a591d7b7c26d | [
"Apache-2.0"
] | permissive | gyun-gome/gyun-cli | 88b5493d90a19c5bf56a1bba4bf301d1b4a3156d | 275b6664335e2ef21a01a48f8c06d6a89dd63467 | refs/heads/master | 2021-06-28T13:53:01.300135 | 2017-09-13T04:44:01 | 2017-09-13T04:44:01 | 103,353,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,206 | py | # encoding: utf-8
# =========================================================================
# ©2017-2018 北京国美云服科技有限公司
# -------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this work except in compliance with the ... | [
"lvyonggang@gomeholdings.com"
] | lvyonggang@gomeholdings.com |
ed7c33aabc46b64f71b665ec8a3893f6541bdb34 | e0062e1a23e9dc1dbd3215d1aad601610e114078 | /App/csv_scraper.py | e1b21e303c9b57e78aa724be0c44fb6b06830ba8 | [] | no_license | Vedantsahai18/Aviation-Winners | 293d3a9c260d9be85b19495ce076d70426d8da58 | 35ee757812154742c2d62bb488ccd28b140f3963 | refs/heads/master | 2022-12-10T14:36:57.952197 | 2020-06-21T18:14:06 | 2020-06-21T18:14:06 | 174,552,809 | 0 | 0 | null | 2022-12-06T04:30:09 | 2019-03-08T14:34:26 | HTML | UTF-8 | Python | false | false | 3,095 | py | # import pathlib
# import xml.dom.minidom
# import sys
# from os import listdir, getcwd
# from os.path import join, isfile
# import csv
# csv_path = "XXXXXX"
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Integer
from s... | [
"vedantsahai18@gmail.com"
] | vedantsahai18@gmail.com |
d1e360b771fc125f22caf4d80ca157b3557aa97c | 96d7b268ed589c3cf2caa47b5478f6c24f883e34 | /爬取不得解视频.py | 6bff5b6bf076a93dbe23f3c99b2ff5b4c21e63dd | [] | no_license | 494589939/learn-python3- | 2c5836ae2af415a606f2a0398b175c8e7fa6686c | b13b600ab334f7fa04183b777a0579388aab9a02 | refs/heads/master | 2021-01-20T15:27:07.728339 | 2018-03-18T08:46:19 | 2018-03-18T08:46:19 | 82,815,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | #! /usr/bin/env python
from bs4 import BeautifulSoup
import requests,urllib
#解析URL
def req(url):
try:
headers={"User-Agent":"Mozilla/5.0"}
html=requests.get(url,headers=headers)
html.raise_for_status()
html.encoding=html.apparent_encoding
soup=BeautifulSoup(html... | [
"noreply@github.com"
] | 494589939.noreply@github.com |
348eb8ac220b6481e2b57cbfeb6ccf7416321623 | 5478a6265b2aace785b2eb805cbddcad4c07fb61 | /src/server/app/main/models/SubmissionOutputsModel.py | 74c7196d7a3ae3dbb6f73cf6ace353e338880fab | [
"MIT"
] | permissive | albseb511/execode | 352b88a47df7b000a735b6471b7c285e9355c18b | 4dfb373ba1146ad41f7389c4b8d1a230cac5e3e1 | refs/heads/master | 2022-04-26T11:28:09.173801 | 2020-04-25T13:39:56 | 2020-04-25T13:39:56 | 258,724,856 | 0 | 0 | MIT | 2020-04-25T08:39:38 | 2020-04-25T08:39:38 | null | UTF-8 | Python | false | false | 846 | py | from .. import db
import datetime
class SubmissionOutputs(db.Model):
"""
[summary]
Args:
SubmissionOutputsMixin ([type]): [description]
db ([type]): [description]
"""
__tablename__ = "submission_outputs"
id = db.Column(db.Integer, primary_key=True)
output_file = db.Column... | [
"beckhamd36@gmail.com"
] | beckhamd36@gmail.com |
2c9bfe0886844534963fb82e8839ee2a8d6ef61f | e18a3d43c02d33b342381c219a6ec25fd0581be5 | /DataStructures/linkedlist/floyd-cycle-finding-algo(loop detect).py | e32b7891e50d5c6a669d3301e8a11ca05483ae40 | [] | no_license | ItsSamarth/ds-python | 1187e799f54421e351709bad5eecb16c4466f0b0 | c7d35a3d1421c4a40243efc1e06ac01a1f7c220d | refs/heads/master | 2020-03-25T06:50:03.515978 | 2019-05-04T06:49:57 | 2019-05-04T06:49:57 | 143,526,509 | 2 | 0 | null | 2018-08-12T07:35:14 | 2018-08-04T12:23:33 | Python | UTF-8 | Python | false | false | 1,057 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def push(self, new_data):
new_node = Node(new_data)
new_node.next = self.head
self.head = new_node
def printll(self):
... | [
"samarth19sam@gmail.com"
] | samarth19sam@gmail.com |
f686c14d3f3ccf88ac38fcd8a34d6d9f001befd4 | 3c0f50b6563e2c9c6306f7ca2216ff46c8250b96 | /address/migrations/0003_usuario.py | b33eb28800063dbfeb0a7fb4e8513ef46fb1f55c | [] | no_license | JoamirS/project-curriculo | 895e72b34a8a51478c3fe5958d509bfa89be761e | 490ed533dae740a7d2e1b652ce36fdb2af294eb3 | refs/heads/master | 2020-06-01T19:50:42.019259 | 2019-06-22T22:16:18 | 2019-06-22T22:16:18 | 190,904,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 2.2.2 on 2019-06-12 17:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('address', '0002_auto_20190612_1127'),
]
operations = [
migrations.CreateModel(
name='Usuario',
fields=[
... | [
"jmrsilveira@outlook.com"
] | jmrsilveira@outlook.com |
a236a68804d645dd9a685c2644be5573fa15f618 | 7ee7e0e24f24e77dc3f532561554ffaf9d59d75e | /insertTable.py | 36735944f084b71d2afddbe0a272b56cd100328f | [] | no_license | vidhlakh/SQLiteExploration | 58b74f3051f3f52179b624130fd55470f268d636 | 3136fc067b9285e1758699fa9b3be2d6e13f3bf5 | refs/heads/master | 2022-08-06T18:56:11.720261 | 2020-05-21T14:19:09 | 2020-05-21T14:19:09 | 265,867,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import sqlite3
conn = sqlite3.connect("mydatabase.db") # or use :memory: to put it in RAM
cursor = conn.cursor()
# insert some data
cursor.execute("INSERT INTO albums VALUES ('Glow', 'Andy Hunter', '7/24/2012', 'Xplore Records', 'MP3')")
# save data to database
conn.commit()
# insert multiple records using the more sec... | [
"vidhlakh@gmail.com"
] | vidhlakh@gmail.com |
96a1a29185bb89e216a1143bf81d52bf7b007e15 | 07f6d1a07e9c1b078e9175df2050ce501b88d8c1 | /Text/Count_Vowels.py | 5548e24f7173d7b163ef4f1028e132429edd4db7 | [
"MIT"
] | permissive | 023Sparrow/Projects | 06413bd24dbba60fb1fd695ad02c92994a849320 | b14fc9ac8fcf760396dbdff2f918910b5dc96742 | refs/heads/master | 2020-03-16T22:59:35.699661 | 2018-11-27T07:18:16 | 2018-11-27T07:18:16 | 130,497,117 | 0 | 0 | null | 2018-04-21T17:33:23 | 2018-04-21T17:33:23 | null | UTF-8 | Python | false | false | 568 | py | def count(w,s):
countnum = 0
for i in s:
if i == w:
countnum += 1
return countnum
def countvowels(s):
a = count('a',s)
e = count('e',s)
i = count('i',s)
o = count('o',s)
u = count('u',s)
return a+e+i+o+u
testtext = 'vnaofnoaijnavavijfvapvnpofj'
print('''there ar... | [
"flame_zh@foxmail.com"
] | flame_zh@foxmail.com |
e5e84e25c5a9c701c6e2880d5b7603b6945e33a5 | b685f62e0f41349b39fc573f10338fa6148e3dd7 | /wucaicheng_Sign v2.py | e5bc18c47b8bf3601f209f9c038b8f1b27296bb0 | [] | no_license | ifr4me/MyPython | 61e46fa1c9e5886b589ab104eaf50690623ff2a2 | 6e4b64d3c3dad30bbcb5e76a48b704f10d73b838 | refs/heads/master | 2021-09-12T13:27:30.526976 | 2018-04-17T08:47:45 | 2018-04-17T08:47:45 | 103,880,499 | 0 | 0 | null | 2017-09-18T02:16:11 | 2017-09-18T02:16:11 | null | UTF-8 | Python | false | false | 2,069 | py | # coding=utf-8
#cron 58 6-10/1 * * * python /root/wucaicheng.py
__author__="iframe"
__Date__="20171018"
import requests,json,time
import logging
LOG_FILE = '/var/log/wucaicheng.log'
#LOG_FILE = 'd:\\wucaicheng.log'
#If find date in LOG_FILE, exit. so you need set cron execute twice everyday, when the server is no... | [
"noreply@github.com"
] | ifr4me.noreply@github.com |
724bbe70f98b91f343a99b80f80d0d4dce28efe1 | 8cc53c1fb137cc8508ff2ec7b570b8fa8eabba14 | /LAMARCK_ML/architectures/losses/Loss_pb2.py | 168ff9a80d4171d4e04b0217803f53307ee929e7 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | JonasDHomburg/LAMARCK_ML | d1611624f8397ca267e87def5531a8854c62057b | 0e372c908ff59effc6fd68e6477d04c4d89e6c26 | refs/heads/master | 2021-08-16T06:41:19.149852 | 2020-04-12T16:36:14 | 2020-04-12T16:36:14 | 209,362,976 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,132 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: LAMARCK_ML/architectures/losses/Loss.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.... | [
"jonasdhomburg@gmail.com"
] | jonasdhomburg@gmail.com |
8a395168a28dd3d92b9f315c65da262c70b7c02d | 68d9deebaf5c5c1fe3a01b54aa07860e186cb69c | /run/PlotDraw_Wplusmunu5.py | 294e62513d2ccc3a051f24b42fc0fd4ccbb93b5b | [] | no_license | Hicham-ATMANI/XSCalceFW | 731667ea9389d8f6e8a4fb7e02f98cce014be8e8 | 3309a1e33a897c7922cf8b60f8b41b8a5919b53b | refs/heads/master | 2022-12-04T01:31:25.253993 | 2020-08-25T11:25:50 | 2020-08-25T11:25:50 | 274,935,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,941 | py | #!/usr/bin/env python
# -*-coding:Latin-1 -*
from math import *
import ROOT
import ROOT as root
from ROOT import gROOT, TCanvas, TFile, THStack, TH1F, TPad, TLine, TH1
from source.PlotClass1D import Plot1D
from source.SystVariations import SystVariations
from source.PlotClass2D ... | [
"hichamatmanicn@gmail.com"
] | hichamatmanicn@gmail.com |
8196a6d153f61f9ad7d3d169b3850fb382e2b167 | 6963f191a3574edcfaecc265a363bc10d4cdfc19 | /osf/management/commands/osf_shell.py | 11ed88684d009e3e84f839751c5ea9a4012a6410 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer",
"AGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | rdm-dev12/RDM-osf.io | 8f3c2f7057b17512921292e84578d24ad4ca2bb5 | 14d9a924b8c6bc7d79fd34b87830ffa29acafed1 | refs/heads/timestamp-v18.2.7.file_upload_x_of_y | 2022-12-09T06:23:43.320341 | 2019-02-27T07:39:12 | 2019-02-27T07:39:12 | 172,862,723 | 0 | 0 | Apache-2.0 | 2022-09-16T17:58:51 | 2019-02-27T07:07:48 | Python | UTF-8 | Python | false | false | 7,816 | py | """Enhanced python shell.
Includes all features from django-extension's shell_plus command plus OSF-specific
niceties.
By default, sessions run in a transaction, so changes won't be commited until
you execute `commit()`.
All models are imported by default, as well as common OSF and Django objects.
To add more object... | [
"sloria1@gmail.com"
] | sloria1@gmail.com |
5d7b1f7b81a1e99a2ebca3c53db18a84add46beb | 1f9a83114758e7be45062ce95e1e53cc54d5c41c | /cs231n/classifiers/k_nearest_neighbor.py | 5818811857353f819e9a9dab4c892ae4c657c093 | [] | no_license | aluckyi/cs231n-assignment1 | 4a9e95bdfbebf14185a13580d03fe2a80ebba436 | 5de3b70a1b1c80fd0784cef593ef6029d7118839 | refs/heads/master | 2020-03-30T12:51:14.974146 | 2018-10-02T11:36:24 | 2018-10-02T11:36:24 | 151,228,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,266 | py | import numpy as np
class KNearestNeighbor(object):
""" a kNN classifier with L2 distance """
def __init__(self):
pass
def train(self, X, y):
"""
Train the classifier. For k-nearest neighbors this is just
memorizing the training data.
Inputs:
- X: A numpy array of shape (num_train, D) ... | [
"1341234863@qq.com"
] | 1341234863@qq.com |
cff93f064b230f06153b1a99ce69e4f99f7623ed | 82f5a3e139034da846db0c3516848e3a797a52f0 | /sixteen.py | 16eeac1b1be9cf18646774eb3f75c61a77c5b307 | [] | no_license | Yanl05/LeetCode-git | d98f807d05d80b7df6c0a4f69cf233e25b0695b5 | ce617247645517f15d513c29e12c7fff33e1cccf | refs/heads/master | 2020-04-12T08:33:30.416069 | 2018-12-19T06:07:36 | 2018-12-19T06:07:36 | 162,388,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | '''
给定一个包括 n 个整数的数组 nums 和 一个目标值 target。
找出 nums 中的三个整数,使得它们的和与 target 最接近。返回这三个数的和。假定每组输入只存在唯一答案。
例如,给定数组 nums = [-1,2,1,-4], 和 target = 1.
与 target 最接近的三个数的和为 2. (-1 + 2 + 1 = 2).
'''
class Solution:
def threeSumClosest(self, nums, target):
"""
:type nums: List[int]
:type target: int
... | [
"756593069@qq.com"
] | 756593069@qq.com |
af9c85a29106aea32c52488a1f5cbc2dc870b522 | a6652818efd2371f797011ca1c25be9f1d2d8db8 | /hello/migrations/0003_remove_usercomments_img_caption.py | 454fa863237b41b37c3973dda01f00796f9b9a12 | [] | no_license | Sulaiha-Shameena-teah/sara-bday | 4ccef78f3c95bdf13b3cbb4a2b58b1c8ebbdfe67 | 6bde5f48e55090461cbbfceb1552680a0cdb71bb | refs/heads/main | 2023-04-21T06:48:48.302078 | 2021-05-27T11:24:33 | 2021-05-27T11:24:33 | 369,998,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Generated by Django 3.1.7 on 2021-04-08 17:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hello', '0002_usercomments'),
]
operations = [
migrations.RemoveField(
model_name='usercomments',
name='img_caption',
... | [
"https://github.com/Sulaiha-Shameena-teah"
] | https://github.com/Sulaiha-Shameena-teah |
9ccb7264a662062475936c66c4c5e44cd9570c80 | 56c35b477af8eb5972709a703f6f63f1eeed4672 | /CombineDetailsToReviews.py | 7f19d91b2269440331246f0103d1f8995e189c40 | [] | no_license | abhishekkshk68/Play-Store-Deeplearning-Analysis | a8e47152798073b3a8aa8b274a6c78813b1ef0ec | 4f5c2a7011056d31808ea6f66cc75efba2de43e3 | refs/heads/master | 2020-06-01T00:45:48.852401 | 2019-06-10T15:55:12 | 2019-06-10T15:55:12 | 190,565,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,944 | py | #Combine Total Average Rating , Installs , Total Number of Reviews , Required Android Version , Main Category Unique Val as per Application ID.
#Required Android Version
ReqAndroidVer_Apps=data_from_CleanedDetails[['required_android_version','app_id']]
ReqAndroidVer_Apps_New=ReqAndroidVer_Apps
ReqAndroidVer_A... | [
"abhishekkshk68@gmail.com"
] | abhishekkshk68@gmail.com |
d4877edd8d5a2d480e47bd50800d5ab3ebf850c1 | 411e5de8629d6449ff9aad2eeb8bb1dbd5977768 | /AlgoExpert/array/largestRange/1.py | 821c57749e45fe5a0fdc1c4e4747e82157bdece3 | [
"MIT"
] | permissive | Muzque/Leetcode | cd22a8f5a17d9bdad48f8e2e4dba84051e2fb92b | 2c37b4426b7e8bfc1cd2a807240b0afab2051d03 | refs/heads/master | 2022-06-01T20:40:28.019107 | 2022-04-01T15:38:16 | 2022-04-01T15:39:24 | 129,880,002 | 1 | 1 | MIT | 2022-04-01T15:39:25 | 2018-04-17T09:28:02 | Python | UTF-8 | Python | false | false | 395 | py | def largestRange(array):
array.sort()
h = len(array)
mid = int(h/2) if h % 2 == 0 else int(h/2)+1
left, right = array[0], array[h-1]
for i in range(1, mid):
j = h - i - 1
if array[i] not in (array[i-1], array[i - 1]+1):
left = array[i]
if array[j] not in (array[j+... | [
"zerosky1943@gmail.com"
] | zerosky1943@gmail.com |
b1268a6115f43f5420f6644711db3168fe16eca5 | 540e6d092fb1e57191b7dd5a14509892b91f6fbb | /scripts/python/mirs_tc/libMIRSTC.py | d7f7b72dc7509478d48105d84195f083b0cd0a7d | [
"BSD-2-Clause"
] | permissive | ScottLongmore/MIRS_TC | a2ab6c08639cd1b9280da416e184c33bf3f1adba | 51c3964b8192f71716f075fbe3fd2ffbdb656fb5 | refs/heads/master | 2021-01-25T10:21:22.815953 | 2018-02-28T21:53:25 | 2018-02-28T21:53:25 | 123,347,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,578 | py | #!/usr/bin/python
"""
MIRS_TC - library of MIRS_TC routines
"""
# Stock modules
import sys
import os
import re
import logging
import traceback
import datetime
import collections
import operator
import shutil
import json
import jsonschema
import numpy
import pandas as pd
import math
import pprint
# Local modules
imp... | [
"scott.longmore@colostate.edu"
] | scott.longmore@colostate.edu |
8c4bc2f8647439b9567f65c61e77308b8808c395 | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ABC/ABC200~ABC299/ABC275/a.py | 8e0374be934c1e0a79209fb5d3a1594e525966c5 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | n = int(input())
h = list(map(int, input().split()))
maxh = max(h)
ans = h.index(maxh)+1
print(ans)
| [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
392439ff9f7190ef628cf4a49689016dfe12271f | cb68a4aee95efc3a88c2be2213732fdc18443be7 | /astropy/io/fits/tests/test_checksum.py | badff8141950bbf78f204e60dd022ace3c18eb0d | [] | no_license | zblz/astropy | 2026efdb20ec8a5a9ad3e223060723c325f39388 | 5a54fd4485003823b237888eb9629fb0065cffd4 | refs/heads/master | 2021-01-15T21:35:21.590257 | 2013-02-07T00:03:54 | 2013-02-07T00:03:54 | 8,071,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,874 | py | # Licensed under a 3-clause BSD style license - see PYFITS.rst
import shutil
import warnings
import numpy as np
from ....io import fits
from ....tests.helper import pytest
from . import FitsTestCase
class TestChecksumFunctions(FitsTestCase):
def setup(self):
super(TestChecksumFunctions, self).setup()... | [
"embray@stsci.edu"
] | embray@stsci.edu |
e8eefc2a5b75f134fcd23181b0c301b932082508 | 14f9b7a41bd3b93d820ca8f0a0507c673e2902db | /game.py | 0fc4e4cff5ac7fc1a52d6f53368cf33c3c21bb46 | [] | no_license | adamsudol36/Battleship-game | 898e23ac7411b3aefd6cb4057f338cdbac9c9805 | 831817d2b416ff06d5952e144b0a29a405d030cb | refs/heads/master | 2023-04-22T02:13:27.706301 | 2021-05-10T20:59:12 | 2021-05-10T20:59:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | from matrix_generation import (
show_actual_board,
make_player_matrix,
generate_computer_matrix,
get_basic_info
)
from game_functions import (
show_actual_state,
better_bot_shoot,
player_shoot
)
from time import sleep
def main():
'''
Whole game function.
Gets info from player. ... | [
"01158935@pw.edu.pl"
] | 01158935@pw.edu.pl |
bf604c5c88de4b1652ed6c32594f61c0e84a082f | b6a59c78b4143441077f9ce81c9a6951687f9103 | /quiz/common/templatetags/common_tags.py | c22c495f3760396d2cbf01c3943b9cb2026abee6 | [] | no_license | EkaterinaEIvanova/quiz | 7389bd26eb891ba5a7033b91698321cbba7d2d7d | 6f93a5d6e604f127be0d29e8eebbb07c10eb9d47 | refs/heads/master | 2023-03-22T00:54:27.100204 | 2021-03-10T07:35:08 | 2021-03-10T07:35:08 | 346,270,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django import template
register = template.Library()
@register.simple_tag()
def get_name_or_email(user):
name = user.name if user.name else user.email
return name
| [
"you@example.com"
] | you@example.com |
afcab4259b346d2f19de83a8aec1a7b2832093a9 | 9acc826c5a80f31d5fbc179a41fb3062775678b2 | /listings/migrations/0001_initial.py | 2d792cc9f0d6a691dc18d251ad376fadd508d403 | [] | no_license | adace123/django-realestate | f2687ddc4b8ea9bca58b875b8c510557e6d1f4b8 | e16d9918a11a7e6fd6de985786a02dc439906daf | refs/heads/master | 2020-04-20T18:27:49.888357 | 2019-02-04T03:25:17 | 2019-02-04T03:25:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | # Generated by Django 2.1.2 on 2019-01-18 07:55
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('realtors', '0001_initial'),
]
operations = [
migrations.C... | [
"rexforddrive@gmail.com"
] | rexforddrive@gmail.com |
59c09463d5b70bbc47faab715f64998ec8fc7423 | 167ce2917fd646749629fd05223d739961841a20 | /mysite/mysite/urls.py | d2d1a106d8d77149928b8bbc7c25f1947082f3d4 | [] | no_license | lemon-l/Python-beginner | 70b8e2604826d2d7c767578345ac5e3276857977 | 5e1ebfc5c4f15a81ee7b33a2336556f6b32f61c8 | refs/heads/master | 2023-02-16T03:22:36.535084 | 2021-01-19T09:32:21 | 2021-01-19T09:32:21 | 235,269,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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-based ... | [
"2010048424@qq.com"
] | 2010048424@qq.com |
6beae38fe42d7b43c779382d774f761cdd035349 | 39a64a85dfd9e2f3805061c1126b8e96c75a7643 | /step_seven.py | e0adb7ce4d46a903eed8c50bb4f65007fd197247 | [] | no_license | juliapochynok/Rubik-sCube_withLA | dde1dad5f786341e32670b48cc3ba80db181f672 | 57b9d187a00142bfbd0dd149c25f94316be3af22 | refs/heads/master | 2022-10-29T23:02:23.828939 | 2020-06-17T19:46:04 | 2020-06-17T19:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | from solve import find_cubie
from step_six import is_fish, is_H, find_unsolved_edges
def solve_down_edges(cube, result_steps):
lst = find_unsolved_edges(cube)
if len(lst) == 0:
return
if is_H(cube, lst):
H_method(cube, lst, result_steps)
elif is_fish(cube, lst):
fish_method(cub... | [
"kravchuk@ucu.edu.ua"
] | kravchuk@ucu.edu.ua |
62ba4516cecfc475a1122352092cb23d07a9500a | f1e19808b558ec4ff7c296b40ba08f1f7300e048 | /spotty/project_resources/stack.py | e91948662c95c9325d0eac30f2d3fa052f21fa61 | [
"MIT"
] | permissive | giserh/spotty | 300a6ec470f98319819cabfda0982ef3e46618ca | e12547ae32e39cdffa9c0187787ea7ca404090dd | refs/heads/master | 2020-04-11T18:57:54.218929 | 2018-12-14T00:18:06 | 2018-12-14T00:18:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,543 | py | import os
import yaml
from botocore.exceptions import EndpointConnectionError
from cfn_tools import CfnYamlLoader, CfnYamlDumper
from spotty.helpers.resources import get_snapshot, is_gpu_instance, stack_exists, get_volume, get_ami
from spotty.helpers.spot_prices import get_current_spot_price
from spotty.project_resourc... | [
"apls777@gmail.com"
] | apls777@gmail.com |
df35d4e2bc4e83da4aa1b6939db8d9e229e0bd70 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/type_agency_profile_level_4.py | 5ee1ce876f63b649381647bc034c48d77dea4ecb | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 318 | py | from __future__ import annotations
from enum import Enum
__NAMESPACE__ = "http://www.travelport.com/schema/common_v37_0"
class TypeAgencyProfileLevel4(Enum):
"""
Profile levels in the Agency Hierarchy.
"""
AGENCY = "Agency"
BRANCH = "Branch"
BRANCH_GROUP = "BranchGroup"
AGENT = "Agent"
| [
"chris@komposta.net"
] | chris@komposta.net |
066b82d0dff811aba0d736008f3c2018c5ac0134 | 62ad933ee61f67847d8f2d1cb74f8b2582efac2c | /scripts/a0_optimize_vkdv.py | e026eda67f59f7dfd88c510ec7a168977e9e128e | [] | no_license | liqun1981/kdv_uncertainty | add808d3327263c55124cff3c46965d043dceb31 | 24ed0a3f7944bcf4e503115f22a9fb5b5f6e6fd6 | refs/heads/master | 2020-06-26T06:51:52.835686 | 2019-07-26T07:35:00 | 2019-07-26T07:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,236 | py |
# coding: utf-8
# # Find initial conditions for $$a_0$$ by optimizing the KdV model
# In[3]:
import numpy as np
import pandas as pd
import xarray as xr
import matplotlib.pyplot as plt
from datetime import datetime
import h5py
from scipy import signal
from scipy.optimize import minimize
from soda.utils.timeseries... | [
"matt.rayson@gmail.com"
] | matt.rayson@gmail.com |
ac1791beab3601ae73fcf4a4b76e4d448860528f | 80038a1cc4efc01de7cc4c5375af4628f84798a8 | /SpangAP/pizzaproject/stores/urls.py | 09682bd54f39bb9668a19944c05f19a0dfc8e49b | [] | no_license | PeteSpangler/SpangApi | 8e3477a03a41a435f77afd0293f00623723cfcb2 | b38a237387ff2ebc014e9fa4161f60b798fd197c | refs/heads/master | 2023-03-20T10:21:02.399422 | 2021-03-21T01:15:14 | 2021-03-21T01:15:14 | 345,256,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from django.urls import path
from . import views
urlpatterns = [ path('', views.PizzeriaListAPIView.as_view(), name='pizzeria_list'),
path('<int:id>/', views.PizzeriaRetrieveAPIView.as_view(), name='pizzeria_detail'),
path('create/', views.PizzeriaCreateAPIView.as_view(), name='pizzeria... | [
"petertspangler@outlook.com"
] | petertspangler@outlook.com |
ad6bd82e49c1f8590dc46011936d01613bf6168c | 1aa36d549995a2ec5ef214037d36de01563ea94b | /appointments/booking_request.py | 548bff0a54528fefbfd1fd0323759e4e44af0073 | [] | no_license | vinithegit/BookingMeetings | 9291dc95b5d9feb8944ab07aca5cf6060434874d | 52985e921c793f9ed6c4fd699a315718a7e6e869 | refs/heads/master | 2020-03-09T13:54:40.568619 | 2018-04-09T19:25:37 | 2018-04-09T19:25:37 | 128,822,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | from datetime import datetime
class BookingRequest:
def __init__(self, booking_request_date, booking_request_time, booking_request_employee_id,
meeting_date, meeting_start_time, meeting_duration):
self.booking_request_date_time = datetime.strptime(booking_request_date + ' ' +
... | [
"vinithacse@gmail.com"
] | vinithacse@gmail.com |
d17e4401738223e0d38787c397ce0ebfd2deeac6 | 39c0b85e7bf37bf11341ce8d06a8f402e5ca08cc | /src/pymortests/iosys_add_sub_mul.py | 0f0d8633880728e279d69bfb3e59e714554492d2 | [
"BSD-2-Clause"
] | permissive | josefinez/pymor | a28e9ed24f0234f3ca54a09e02cd72381d08ad31 | c3304e6c9250495f12796ed6430f431f48cb3ee1 | refs/heads/main | 2023-07-01T00:04:31.961366 | 2021-08-09T07:38:52 | 2021-08-09T07:38:52 | 368,589,801 | 0 | 0 | NOASSERTION | 2021-05-18T16:00:17 | 2021-05-18T16:00:16 | null | UTF-8 | Python | false | false | 3,709 | py | # This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2021 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
import numpy as np
import pytest
from pymor.models.iosys import LTIModel, TransferFunction, Secon... | [
"mlinaric@mpi-magdeburg.mpg.de"
] | mlinaric@mpi-magdeburg.mpg.de |
ac1742c4a595eeb68f9fec77a4fa18f37ea7ef11 | db745606ab7e9df7f6cd85eaff3ce100578eacfa | /LeetCode/lc_241_DifferentWaysToAddParentheses.py | 1c021f675c46b3abdac98c52e442224c1ab67f43 | [] | no_license | testcoder11/Algorithms | 2ffa3b10e46856d0cd0dc5949342ba778cbb3d16 | 497d7faf821a3609611a907cd4cab0422ae02c16 | refs/heads/master | 2020-03-15T03:54:29.330108 | 2017-12-05T16:01:25 | 2017-12-05T16:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,983 | py | # -*- coding:utf-8 -*-
class TreeNode(object):
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def __str__(self):
print self.value
class Solution(object):
def dfs_for_building_operation_tree(self, start, end):
lst = []
# 利用... | [
"albert.menglongli@gmail.com"
] | albert.menglongli@gmail.com |
748c9a45f6de3823112f3b66a56ef8e9d71ef7c3 | 99c616c8262b3e95ca705420b1b93185151dae8b | /job_listing/job_listing/jobs/forms.py | d7e59a23e2f88721bcda55dc4e63e9492b9068fa | [
"MIT"
] | permissive | mtaziz/listing | 23edfd4274c2710a11d6743fab44c381a5fc0c8e | 657e1dc9f2c97ddf3058a2d24155306ddf867387 | refs/heads/master | 2020-03-22T17:46:49.210455 | 2018-04-18T13:18:09 | 2018-04-18T13:18:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from django.forms import ModelForm
from django import forms
from .models import JobPosting
class NewJobListing(ModelForm):
title = forms.CharField()
body = forms.CharField(widget=forms.Textarea)
class Meta:
model = JobPosting
fields = ['title', 'body']
| [
"willemdrescher@yahoo.com"
] | willemdrescher@yahoo.com |
1bca72762d89325a8b67cb7ba5698f05032c6c51 | 1868fa53882265e74019893897afa5667c2afd6c | /models/stacking_v1.py | 2aaf616a7a7e4e4e64f10e22e1a3bd733eea9568 | [] | no_license | jinbaoziyl/CCF-Risk-Enterprises-Fund-Rasing | 5d8e3a0204db6deb97e6d4f68a19c268a28f1f8c | fb93ea94f471440848b5419001871238eefb9b79 | refs/heads/main | 2023-01-07T07:56:05.886675 | 2020-11-05T09:48:45 | 2020-11-05T09:48:45 | 306,074,133 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,037 | py | # -*- coding: utf-8 -*-
from heamy.dataset import Dataset
from heamy.estimator import Regressor, Classifier
from heamy.pipeline import ModelsPipeline
import pandas as pd
import xgboost as xgb
import datetime
from sklearn.metrics import roc_auc_score
import lightgbm as lgb
from sklearn.preprocessing import LabelEncoder,... | [
"185284033@qq.com"
] | 185284033@qq.com |
7e88584d8c9462e3c4b2497010a721f9e983291c | 8ef898365843bd96b17967ba374f15d9bcff8fe7 | /practica_PI/settings.py | a9f8511014d5ec914e9aeb9bd07c4cbe6dfce554 | [] | no_license | hbarcelos/piudc | 0dc6d309a9a0a97671664407e2db2fec33709a0a | 7c01fe5ad9e726ef9b00dd04a7403bf85e727ba7 | refs/heads/master | 2020-12-25T22:07:06.096134 | 2013-05-31T15:06:31 | 2013-05-31T15:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,789 | py | import os
import django
# Django settings for practica_PI project.
# Because actually hard-coding absolute paths into your code would be bad...
PROJECT_DIR = os.path.dirname(__file__)
BASE_DIR = os.path.dirname(PROJECT_DIR)
APP_DIR = os.path.join(BASE_DIR, 'images')
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
... | [
"rick.hjpbarcelos@gmail.com"
] | rick.hjpbarcelos@gmail.com |
3215e7794a5d89a0eaaf39bf83143b223ab9638b | b2e2adc73147a6ae6fa642bc9448923888a713ca | /python/whlie.py | c9ff6911ee7f92d133df9ef4ad3c9d4a87596901 | [] | no_license | cypggs/HeadFirstPython | 100d7ad52fa7c93baa082bbf4812ecdb064f7722 | 703b85c8482eb24fcef2afec39d20001b94d09ff | refs/heads/master | 2020-03-17T23:58:39.975841 | 2018-07-26T15:52:15 | 2018-07-26T15:52:15 | 134,071,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | #!/usr/bin/env python
# coding=utf-8
a = 0
while a < 10:
a += 1
print a
| [
"qcypggs@qq.com"
] | qcypggs@qq.com |
a92eb8b71c3f2252f56375b6717c1b22b1a03928 | aafce2cfe6a3edee05ff27dc7be7fcdb37c85e73 | /Basic/ModuleTest.py | 80764030dc8b142c7e2bd9186cd2c047c97364f7 | [] | no_license | kvijaya-datascientist/Python | cfea0fa64f7fc83c15c2fecb846b368471fad676 | efef999b2cd15813484f74bcb0c2a328eda3aba0 | refs/heads/master | 2023-06-24T03:47:16.582221 | 2023-06-14T07:20:59 | 2023-06-14T07:20:59 | 247,455,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | """
pip = pip install packages
pip is a tool used to install python modules
NOTE : install required module in python terminal
EX : pip install calendar , pip install matplotlib
"""
import math
print(math.sqrt(16))
print(math.pow(2,5))
import calendar
print(calendar.month(2021,6))
| [
"61687772+kvijaya-datascientist@users.noreply.github.com"
] | 61687772+kvijaya-datascientist@users.noreply.github.com |
8d4c6fcfac3f511aafca5a4bbb3875f5d7e09ee6 | 039385db928314c55b03e90549ef40010529ef5e | /Shop/urls.py | 8b23e81e5b39ab9e8e67903b6f297982cd4d4811 | [] | no_license | DragonStuff/Shop-Django | 5334692aa23512c3ed8350abe495220017fc3be3 | 0b720f001af5bd393cc103d7f9cc3563304a8720 | refs/heads/master | 2021-06-13T07:48:43.299176 | 2019-07-24T23:21:01 | 2019-07-24T23:21:01 | 150,483,530 | 4 | 3 | null | 2021-03-19T22:08:13 | 2018-09-26T20:04:53 | Python | UTF-8 | Python | false | false | 818 | py | """dj110 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"me@0xdragon.com"
] | me@0xdragon.com |
6ffac5ea208ba2d6e273b1fdd1775d31f9762364 | 9eab77cb998e94ceb2b2d08738b05a98982505f1 | /sentiment-analysis/pythoncodes/01-text-to-id.py | 16b8e56535efcf07addf12250c40f7bd8382a0a7 | [] | no_license | behrouzmadahian/python | 1584dd13cde8531e69bb6fab76f148dc3fc0da57 | 5d4dbde8d570623fe785e78a3e45cd05ea80aa08 | refs/heads/master | 2021-06-28T16:53:09.927450 | 2020-09-21T14:02:55 | 2020-09-21T14:02:55 | 156,713,696 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | import re
from nltk.corpus import stopwords
from nltk import word_tokenize
stop_words = stopwords.words('english')
def remove_stop_words(word_list, stopwords):
filtered_list = [w for w in word_list if not w in stopwords]
return filtered_list
# Removes punctuation, parentheses, question marks, etc... | [
"noreply@github.com"
] | behrouzmadahian.noreply@github.com |
a476355eb2604e1fbd519da46642dde0a0225e7f | d4873ecfc5bc6141cf80d54d35426f27e7c78116 | /bacisforms/bacisforms/settings.py | 842c095e0ec9312d7c6007ea9fcf14c16a7a29ea | [] | no_license | epedzich/My_Django_Stuff | 9ccbc3670447c2f4d578342c64a5b9d6a0ffd9eb | fc1f56ce8a689569fea8bb49aa39bc215240a3f0 | refs/heads/master | 2021-09-02T15:33:03.849445 | 2018-01-03T12:00:45 | 2018-01-03T12:00:45 | 110,693,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | """
Django settings for bacisforms project.
Generated by 'django-admin startproject' using Django 1.11.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"moquedire@yahoo.com"
] | moquedire@yahoo.com |
f0e0f44f0622cc09917ec205144aca3599559424 | 302734e285f1c77a1985f72da18d92810dda6151 | /features/environment.py | f2db32270068fb2417c84bc95d4ec33200c490c4 | [
"MIT"
] | permissive | zhammer/morning-cd-playlists | 924dd297188d86d019d7f176a9cf49ff33f31237 | 10426bc1435d4f34761d8782ad0599f40865596f | refs/heads/master | 2022-12-11T02:29:12.972491 | 2019-02-07T00:35:18 | 2019-02-07T00:35:18 | 162,019,835 | 0 | 0 | MIT | 2022-12-10T03:33:27 | 2018-12-16T16:28:45 | Python | UTF-8 | Python | false | false | 605 | py | import os
import behave
from features.support.fixtures import (
with_aws_lambda_environment_variables,
with_empty_db
)
TEST_DATABASE_CONNECTION_STRING = os.environ.get(
'TEST_DATABASE_CONNECTION_STRING',
'sqlite:///morning_cd_behave_tests.db'
)
def before_scenario(context: behave.runner.Context, s... | [
"noreply@github.com"
] | zhammer.noreply@github.com |
42c5ba3daabc90deacaf00f303deeec5868ff29e | 7b6dac52b16febbcade84c0949fa2d91914119ad | /poirazi/cells/inh.py | 58778b833f2d7b5ba22dfabd3f02bd00c17a8364 | [] | no_license | Neurosim-lab/EEE_network | 122ef87bc89477d441d99e7da0dc165340ffd2cb | bbad1336b74d71005d4d7dd2bd6d86ff2f65e214 | refs/heads/master | 2021-07-19T08:54:09.241884 | 2020-05-05T14:26:35 | 2020-05-05T14:26:35 | 153,055,050 | 2 | 3 | null | 2019-01-22T15:04:54 | 2018-10-15T04:54:21 | Python | UTF-8 | Python | false | false | 1,905 | py | #//Interneuron for PFC - fast spiking parvalbumin interneuron
#//Based on Durstewitz and Gabriel 2006
#//"Irregular spiking in NMDA-driven prefrontal cortex neurons"
from neuron import h
# Soma properties
soma_nseg = 1
soma_L = 53.0
soma_diam = 42.0
# Axon properties
axon_nseg = 1
axon_L = 113.2
axon_diam = ... | [
"joe.w.graham@gmail.com"
] | joe.w.graham@gmail.com |
c50419bef15bebb081749b2a06382dacd4da0b95 | 0e91204becbe621e0cd04d409f3eea4658bc315d | /venv/lib/python3.6/site-packages/google/cloud/container_v1/proto/cluster_service_pb2_grpc.py | 9c555774cbef963ea76e7b8e153d17bc0cc2d2ce | [] | no_license | hssmikey/Launch_APP | 97b1bac5fa6df849ef0530ff8bae3e82f7c3c720 | 0d3743b6121361bace4143a639a645159459b5af | refs/heads/master | 2022-07-18T14:49:14.092568 | 2020-05-14T21:27:49 | 2020-05-14T21:27:49 | 263,176,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,227 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.cloud.container_v1.proto import (
cluster_service_pb2 as google_dot_cloud_dot_container__v1_dot_proto_dot_cluster__service__pb2,
)
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
class Cluste... | [
"dylanblake@Dylans-MacBook-Air.local"
] | dylanblake@Dylans-MacBook-Air.local |
225ceeb7e8183ff4fe55fd640c53ec2f3624a6c8 | 2bcc421ee345b00cf805c543b37d18b5d019dc04 | /adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/matrixportal_simpletest.py | 6acecd14cfce626edae83fa7e034c7cadbe1bf85 | [] | no_license | saewoonam/sc-current-source-titano | 5a1ad46889c1b09c168424901fd71cb4eab5c61b | 1c136aa8b61268d9ac0b5a682b30ece70ab87663 | refs/heads/main | 2023-03-02T22:12:26.685537 | 2021-02-09T03:28:01 | 2021-02-09T03:28:01 | 317,299,900 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | # SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
"""
This example checks the current Bitcoin price and displays it in the middle of the screen
"""
import time
import board
import terminalio
from adafruit_matrixportal.matrixportal im... | [
"nams@nist.gov"
] | nams@nist.gov |
507cd1e57aedaba705c21a91c02080b0a76e9250 | a2350d94f82e73e7ec078ca513e85fa5919440a0 | /Connect4Game.py | 9786068f30e1127c15911f93a64701b74370f779 | [] | no_license | adrielk/ConnectX | c551d44741abec71651365e665ea3a03e6836730 | 44486015c8beb44d6a7f00531a0c16fe8aa4ee86 | refs/heads/master | 2022-11-21T03:47:43.811372 | 2020-07-27T01:01:22 | 2020-07-27T01:01:22 | 274,325,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 26 19:55:03 2020
Connect 4 - Text Version
Exact same implementation as TicTacToe but with game baord's gravity enabled!
@author: Adriel Kim
"""
from GameBoardClass import GameGrid as grid
#Dependancy that deals with managing player turns and round set up for games
impo... | [
"59209071+adrielk@users.noreply.github.com"
] | 59209071+adrielk@users.noreply.github.com |
a49ecab130db3c3d6818db8eec5ff5c4c879e481 | b18ef6eca63c7db88107ccf720491b32a785e0de | /mig_main/forms.py | 6c212692160aa28a52826b5cfd953fc0aae70753 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tbpmig/mig-website | 368c270d0427f09245a3e13f31757ca2d52f21d0 | 527f9dd39a6b50caa24ea5d0d97b19a0c9b675d1 | refs/heads/master | 2023-06-08T07:15:19.792102 | 2023-06-05T15:57:17 | 2023-06-05T15:57:17 | 17,345,471 | 7 | 4 | Apache-2.0 | 2022-11-22T00:36:54 | 2014-03-02T19:53:15 | Python | UTF-8 | Python | false | false | 12,564 | py | from django.contrib.auth.models import User
from django import forms
from django.forms import ModelForm, BaseModelFormSet
from django.forms.models import modelformset_factory
from django.db import IntegrityError
#from django.utils.timezone import now
from django_select2.forms import (
Select2MultipleWidget,... | [
"mikehand@umich.edu"
] | mikehand@umich.edu |
9d1b5f66a246d990332925b934287b88f6a5b75a | 9d3f8a896b97ee19a32a57b25c7ebcb17ac76730 | /Text_cleaner.py | 7ce7e240568289cdd0139c635b6971de3b1f5281 | [] | no_license | iam-Raghav/Translation_using_attention | c0b9210ffa1f6704c6213f68995a2c4a53aec1bc | 1577e8f7d3f4f2b76b9a3b2c081391559a4b2272 | refs/heads/master | 2020-11-27T12:22:54.723514 | 2019-12-21T14:43:35 | 2019-12-21T14:43:35 | 229,439,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | from __future__ import print_function
import numpy as np
import pandas as pd
import re
import unicodedata
#word_tokenize accepts a string as an input, not a file.
rawtext_filename = "E:\_Translation\data\eng-fra.txt" #KEY IN PATH OF SOURCE FILE
cleantext_filename = "E:\_Translation\data\eng-fra_clean.txt" #KEY... | [
"noreply@github.com"
] | iam-Raghav.noreply@github.com |
fed3c0f64e13f63329bc763774c51426ea1d2b67 | a43ad70e7fb1b3c3e564f22e14921e0446c2c770 | /M2TExample.py | e5572a1150ff0daf432b4e286a05d2eeb318335b | [
"Apache-2.0"
] | permissive | yindaheng98/GANomaly-Tensorflow | 99786390e5c31e975ca53178fc8877d18ec64902 | 8ba5fada15c9b8aae697b7ea5839d5c665ed0150 | refs/heads/master | 2020-03-30T19:57:18.681283 | 2018-10-06T12:28:16 | 2018-10-06T12:28:16 | 151,566,959 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import tensorflow as tf
import cv2
from GANomaly.Coders import Encoder, Decoder
from GANomaly.Movie2TFRecord import dataset_from_movie
#options
input_shape = 1024
#model
x = tf.placeholder(tf.float32, [None, input_shape, input_shape, 3])
z = Encoder(x)
x_ = Decoder(z)
loss = tf.reduce_mean(tf.abs(x - x_))
optimizer ... | [
"770275298@qq.com"
] | 770275298@qq.com |
ca86cc40c3726385022d4803c5ece0dda47cc10b | a1041e0f8df3ca2724929339606511fd657d92f7 | /Book/Book/pipelines.py | cb332c6268e6948933e5cc097d96d6e4d150206c | [] | no_license | mikailceren/Web-Mining | 3d1242383fa2317affa60e93cfa4c4479d994579 | e31662ca14d3ae75c792b34241347f6bc9b846b6 | refs/heads/master | 2021-01-18T17:18:48.855718 | 2015-06-17T11:58:44 | 2015-06-17T11:58:44 | 33,506,333 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | from scrapy.http import Request
from scrapy.contrib.pipeline.images import ImagesPipeline
from scrapy.exceptions import DropItem
import MySQLdb
import MySQLdb.cursors
import sys
class BookPipeline(object):
def __init__(self):
db = MySQLdb.connect(host='localhost', user='mcrn46', passwd='mcrn46', db='web_m... | [
"mcrn46@gmail.com"
] | mcrn46@gmail.com |
6ba923e2897f1f34a8d9fefb279295ca6d447ad8 | 3c88b31090d6568435e811a455ce934604fa5c9f | /category/migrations/0004_auto_20210604_1515.py | 1598b851990f23fb79ef630c2f5f22ca87780b4e | [] | no_license | kamran1231/Great-Cart-Django-Website | 09e0e7b5085737cf54614b45b5424ac5c273bb5b | a674593d5c8cb15be7b24dca397f9027659033e2 | refs/heads/main | 2023-05-17T08:52:31.092404 | 2021-06-09T20:21:08 | 2021-06-09T20:21:08 | 373,645,947 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # Generated by Django 3.1.7 on 2021-06-04 09:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('category', '0003_alter_category_category_name'),
]
operations = [
migrations.AlterField(
model_name='category',
name... | [
"khanbrother805@gmail.com"
] | khanbrother805@gmail.com |
6bc9cfedf2ac61a6012b493b3f2430a79c3a77a4 | b4fd7421a2796672276219f32085371f732b76c5 | /untitled3.py | dd0b589b66e3d72061004840da1a941b6bccd669 | [] | no_license | sanjanapatill/CDR-Analysis-with-Insights | 16e4d1ac29f44f3ee9897a928b790f3a5c904db6 | 16705dd3dea99d5962d2d04e5a65e2986fbf1999 | refs/heads/main | 2023-01-01T19:17:06.802197 | 2020-10-25T15:43:55 | 2020-10-25T15:43:55 | 307,131,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 25 19:34:38 2020
@author: Sanjana
"""
# https://pastebin.com/QbYwcrgh
"""
This is the initial stage of the CDR Analysis project.
We are going to learn about loading the CDR data and transform it for our
Data Analysis and visualization purpose for Business pe... | [
"noreply@github.com"
] | sanjanapatill.noreply@github.com |
d48020e09346ac0479a76ae076694a0326303d2c | ae011f14f841c0acdc6a77a09badd76f6496f434 | /AtCoder/ARC 049/connectivity.py | a714a7207a65ccc529ecb481bcf21b49fa6b9edf | [] | no_license | ASHIJANKEN/CodingTest | d6d51f3ad8d2631483a48b605ba0b4c1958dbcf8 | dfd0abbe4ea4090a9bef2495673523344be46c19 | refs/heads/master | 2022-11-07T07:29:47.462872 | 2020-06-27T14:04:34 | 2020-06-27T14:04:34 | 128,972,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | N, K, L = map(int, input().split())
roads = []
for i in range(K):
roads.append(list(map(int, input().split())))
trains = []
for i in range(L):
trains.append(list(map(int, input().split())))
parents_road = [i for i in range(N+1)]
rank_road = [0 for i in range(N+1)]
parents_train = [i for i in range(N+1)]
... | [
"24617794+ASHIJANKEN@users.noreply.github.com"
] | 24617794+ASHIJANKEN@users.noreply.github.com |
e978fbd36bc6430b82b7ef6ce4e7d29fc5402e43 | 7f4bfec61051b4ddc8f747c16b6294b2591b64e4 | /test.py | 346a341f44084790b3d3d411dc3cc81a54f2c191 | [] | no_license | JCWanghub/pytorch_demo | 094d93e83fe911a14a80bf1d9b9490c52528fd1d | 4ea3a48c2fefefa5d426df3218a717c76713c38e | refs/heads/master | 2022-09-17T01:59:44.239423 | 2020-05-30T12:53:34 | 2020-05-30T12:53:34 | 266,676,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import os
data_dir = os.path.join("..", "..", "Data", "cifar-10-batches-py",'test_batch')
data_dir = ".\\Data\\cifar-10-batches-py"
if os.path.exists(data_dir):
print(data_dir+' exist!')
else:
print(data_dir+' not exist') | [
"316222593@qq.com"
] | 316222593@qq.com |
5bd54955034dce898b16e994b82d4b750b30dc95 | 3005ec1c7adfc269ea5d3ab676199881f68853f0 | /SVM.py | da368c7afb61636eb245ab0894cbbf6fbb2ba6c0 | [] | no_license | idamsa/Machine-Learning-With-Python-Course | d2d59b4a74091b1ecdb81befa92078bcc939120c | 868572b01bee0309e4d92ec4d2cda5c046f672ab | refs/heads/master | 2021-02-24T04:14:07.860458 | 2020-03-12T09:12:50 | 2020-03-12T09:12:50 | 245,419,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | import sklearn
from sklearn import datasets
from sklearn import svm
from sklearn import metrics
cancer = datasets.load_breast_cancer()
print(cancer.feature_names)
print(cancer.target_names)
X = cancer.data
y = cancer.target
X_train, X_test, y_train, y_test = sklearn.model_selection.train_test_split(X, y, test_size... | [
"damsaioana17@gmail.com"
] | damsaioana17@gmail.com |
6803fab74994e780eb31f5665279ec1ea6fd3290 | e1755c044d7922dc6e25d02003188717edc6c3ef | /hurdles/__init__.py | 46b6252cc99b65e1c73e28298caa0edfd5e38d15 | [
"MIT"
] | permissive | oleiade/Hurdles | 0a9ca0c52df50380c7c905a9eaef899dd45cc5b4 | 51f42919216087a7a6af65e007cb1c0a17983178 | refs/heads/master | 2020-04-24T05:10:22.957389 | 2013-02-23T10:19:34 | 2013-02-23T10:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012 theo crevon
#
# See the file LICENSE for copying permission.
from __future__ import absolute_import
from hurdles.base import BenchCase, BenchSuite
version = (0, 0, 1)
__title__ = "Hurdles"
__author__ = "Oleiade"
__license__ = "MIT"
__version__ = '.'.join(map(str, versi... | [
"tcrevon@gmail.com"
] | tcrevon@gmail.com |
f9b92cfbc1d8a521f0e1b94fab75fc5c6d9ce986 | 5f7a2753b88be27c995863067cdae62fef5f2d6a | /soft-attention/core/orisolver.py | 610f31b14bd0c22a981baa5b68b13839bec28de6 | [] | no_license | 16GMCN/COMS4995-Deep-Learning | 118164f91760c17dbd38487268a4bca337be33dd | 4332ff68a23d54f2e233c60039d0852a0e001ec7 | refs/heads/master | 2020-04-05T16:58:31.603167 | 2018-11-20T18:09:56 | 2018-11-20T18:09:56 | 157,037,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,563 | py | import tensorflow as tf
import matplotlib.pyplot as plt
import skimage.transform
import numpy as np
import time
import os
import pickle
from scipy import ndimage
from core.utils import *
from core.bleu import evaluate
class CaptioningSolver(object):
def __init__(self, model, data, val_data, **kwargs):
"""... | [
"noreply@github.com"
] | 16GMCN.noreply@github.com |
07e9212800cc725a94c4b26bd76f2998a46dc66c | ee71d6baed9dfd99e454aa49733990c8ca43ef63 | /robust/receivers.py | aafe45fccc7f559a2651d4f181f4d21f90b4ceea | [] | no_license | Cybernisk/django-robust | d72a1097ee3c3e62352d48d3a29eb40a306f02ea | 595f3a7cd8a2fb0fd48a787660589bfd6c584e47 | refs/heads/master | 2020-12-11T16:35:39.331505 | 2018-09-16T15:34:36 | 2018-09-16T15:34:36 | 233,899,107 | 0 | 0 | null | 2020-01-14T17:39:20 | 2020-01-14T17:39:20 | null | UTF-8 | Python | false | false | 1,744 | py | from django.conf import settings
from django.core.signals import setting_changed
from django.db import models, connection
from django.dispatch import receiver
from django.utils import timezone
from .models import Task, RateLimitRun, TaskManager
from .signals import task_started
@receiver(signal=models.signals.pre_sa... | [
"barbuzaster@gmail.com"
] | barbuzaster@gmail.com |
48248070eee31b5da804a1282adf2c9f311b079b | 7b2e225055512eda6122a28a64c2a977f6fafb9e | /examples/get_active_courses.py | 18a44362b60f6c552e7341ee9c6cf110c00ce5e9 | [
"MIT"
] | permissive | RmDr/Stepik-API | f42c3283e5301f0d940360f8f08695501ff2f903 | 1292857131d06b242942c1bdbc80d28f546164fc | refs/heads/master | 2020-12-03T01:58:19.697499 | 2017-03-28T14:24:35 | 2017-03-28T14:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,803 | py | # Script that produces:
# a) courses, started in the last six months, in which there are new lessons in the last month,
# b) courses created over the past six months, in which more than 10 students
#
# Issues (stdout + csv file):
# 0) the condition a) or b) or a) + b)
# 1) a reference to the course
# 2) the nam... | [
"vyahhi@gmail.com"
] | vyahhi@gmail.com |
630fdf34cffd61483b80bff67efb54fe38eda8f2 | 6e95d66027599e960af7f0a82dbc94f029f6ee69 | /run.py | 11e151c302e7a2c1d3a538b56cce4b191d768f45 | [] | no_license | martinmaguire89/flask | ddb63c4f33c1aa4ac38a94de75e0cc12840e84c2 | 592c45340805f6cf8920eeb1fb9c7c85106f395c | refs/heads/master | 2023-05-11T04:17:50.033322 | 2020-07-14T13:27:02 | 2020-07-14T13:27:02 | 231,933,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import os
import json
from flask import Flask, render_template, request, flash
app = Flask(__name__)
app.secret_key = 'some_secret'
@app.route('/')
def index():
return render_template("index.html")
@app.route('/about')
def about():
data = []
with open("data/company.json", "r") as json_data:
data ... | [
"Martin.maguire89@hotmail.co.uk"
] | Martin.maguire89@hotmail.co.uk |
e01c6ae624a61f1dbf75ab56e391078604fe1b12 | ad77e334bba34e1aa17debc66e90dd1e78d32af9 | /Clg/HW/MultipleVal.py | d5a926c4f74d3cd395651ada2f07e630a776776e | [] | no_license | SnehuD/Python-Programs | 7c08bfa82789dd9139b2687ec3d6cf3d13a33fc5 | ecf6c92ce2673885b4345e0ae70cfe3d01677911 | refs/heads/main | 2023-08-23T06:33:46.535386 | 2021-10-03T17:02:51 | 2021-10-03T17:02:51 | 413,140,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | # Assigning multiple values to multiple variables
a, b, c = 5, 3.2, "Hello"
print(a)
print(b)
print(c)
| [
"noreply@github.com"
] | SnehuD.noreply@github.com |
0d7dd8e40973b221f489ff37dce90f802a587cf1 | 385d46cd1fc7df47814f68f450b8949df466131e | /easypolls.net.py | d26e7b8400005e076a4f88cfaa00ca4a75e277d2 | [] | no_license | ashaheedq/Voting-bot | e5c049b9e771a0ea5241dd41719fcb8016d6aefe | 98ab208f1b7799108f82cf2ff341f6d26147807e | refs/heads/master | 2022-12-12T07:44:17.698515 | 2020-09-10T08:11:18 | 2020-09-10T08:11:18 | 294,345,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | #!/usr/bin/python
url = 'http://www.easypolls.net/poll?jsoncallback=jQuery1102043759123584718296_1436987933237&command=getPoll&pollId=5ecad213e4b017b74559a5ce&isMobile=false&_=1436987933238'
import mechanize, http.cookiejar as cookielib, json, time
from random import randint
br = mechanize.Browser()
cj = cookielib.LW... | [
"noreply@github.com"
] | ashaheedq.noreply@github.com |
d8985677a59029b17e03e42069b38812e14ecf8d | 743d58c35caf21568feddc86946bbee340174721 | /leet_code/labuladong/stack/p0739_Daily_Temperatures.py | 0d1b05a124037d6c13f214f35b0a1ee5f41b145f | [] | no_license | klgentle/lc_python | 38009ed82614c8f21ca9af6e3779a2e0898af09f | aabe56e690b40e4b93afef99bfe46d9a06e20cea | refs/heads/master | 2022-12-02T05:23:55.585659 | 2022-08-07T12:11:38 | 2022-08-07T12:11:38 | 176,750,473 | 2 | 0 | null | 2022-11-15T23:42:06 | 2019-03-20T14:21:51 | Python | UTF-8 | Python | false | false | 926 | py | """
739. Daily Temperatures
Medium
Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warmer temperature. If there is no future day for which this is possible, put 0 instead.
For example, given the list of temperatures T = [... | [
"klgentle@sina.com"
] | klgentle@sina.com |
fff70a531184f845afd5d314ce82c007a8d99ba6 | 882ce52c80c01e69cf00476320351140a5ab055a | /gen.py | 87b0037936b2fbc9cffd33b58b4a859d3fc008f6 | [] | no_license | adiultra/CollatzRsrch | 37591528bb359622ff782c68c4e626c42f4f4c85 | 619203ee03bf1aa1cf28dd36cb0ab613d2756895 | refs/heads/master | 2021-01-13T03:14:46.279527 | 2016-12-29T11:04:12 | 2016-12-29T11:04:12 | 77,605,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | large = [1,0]
def fn(x):
j =x
global large
n = 0
while x!= 1:
if x %2 == 0:
x = x/2
n += 1
else:
x = (3*x+1)/2
n+=2
if large[1]<n:
large = [j,n]
print(large)
return n
for i in range(1,10000000):
fn(i)
| [
"adityaultra4@gmail.com"
] | adityaultra4@gmail.com |
aa6977b0b274bab8863a388a9723f9b4e5b84d81 | c74c907a32da37d333096e08d2beebea7bea65e7 | /kaikeba/image caption/image_captioning/image_captioning/models.py | 0ee1e2560a93401662355584208c4c607a7e887f | [] | no_license | wangqiang79/learn | 6b37cc41140cc2200d928f3717cfc72357d10d54 | e4b949a236fa52de0e199c69941bcbedd2c26897 | refs/heads/master | 2022-12-25T06:24:39.163061 | 2020-07-13T15:43:13 | 2020-07-13T15:43:13 | 231,796,188 | 2 | 2 | null | 2022-12-08T07:03:05 | 2020-01-04T16:45:33 | Jupyter Notebook | UTF-8 | Python | false | false | 9,252 | py | import torch
from torch import nn
import torchvision
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
class Encoder(nn.Module):
"""
Encoder.
"""
def __init__(self, encoded_image_size=14):
super(Encoder, self).__init__()
self.enc_image_size = encoded_image_size
... | [
"wang20100226@outlook.com"
] | wang20100226@outlook.com |
c35197f9f570cf811da57298c472a5e7507c805c | 636a23ea51c1d3220e9b6b67404d99a12aa6e53b | /utils/permutation_loss.py | a3aefba3392de2ee17f24c3f4d8eb8e089a8d89d | [] | no_license | alwc/GraphLineMatching | 6249a6efd4ef98220a66aa82698dbbfba69b8f3d | 4cbb42c491c5aef564b8e9f4010b0dc7a2d995c1 | refs/heads/master | 2022-07-15T23:59:58.090654 | 2020-05-18T12:19:49 | 2020-05-18T12:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class CrossEntropyLoss(nn.Module):
"""
Cross entropy loss between two permutations.
"""
def __init__(self):
super(CrossEntropyLoss, self).__init__()
def forward(self, pred_perm, gt_perm, pred_ns, gt_ns):
batch_num ... | [
"2908071445@qq.com"
] | 2908071445@qq.com |
717e92a6feda1f345899d0e6678b31ee0ff08998 | 5da11a9ee7f860b8713afebe838e75d749b295a3 | /app/app/settings.py | 4b0589119e6aa79b98f87a86958888bee66f3860 | [
"MIT"
] | permissive | abhishek-anand-78/recipe-app-api | 390a9d852d8ca43f4de9585ba0fc8c204f992c8a | 7fc5cf142cb94a76b2c79e04a5f021b6984fce1c | refs/heads/main | 2023-07-15T09:29:02.360041 | 2021-08-31T06:06:06 | 2021-08-31T06:06:06 | 401,362,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | """
Django settings for app project.
Generated by 'django-admin startproject' using Django 2.1.15.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"abhishekanan@cybage.com"
] | abhishekanan@cybage.com |
8045ae8341fd3cac151ea395a4d62f7e5a92a745 | cc8336cf7b733c6675a3dd4871f9badb3656e3e8 | /bookmark/models.py | 6551d2f45651be17bba0fc8b16da27a400209123 | [] | no_license | ssh521/bookmark | befd52158ebd9a5f1ac83bbddb810db4a8b11b18 | a46f4f9585f1ba93baa23d44995d6ad052ba0506 | refs/heads/master | 2021-11-23T08:11:14.435300 | 2021-10-31T13:48:15 | 2021-10-31T13:48:15 | 214,645,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from django.db import models
from django.urls import reverse
class Bookmark (models.Model):
site_name = models.CharField(max_length=100)
url = models.URLField('Site URL')
def __str__(self):
#객체를 출력할 때 나타날 값
return self.site_name + " " + self.url
def get_absolute_url(self):
re... | [
"philipshin@SeungHakui-MacBook-Pro.local"
] | philipshin@SeungHakui-MacBook-Pro.local |
107188cdde394f7226c7ddb3f1de922a7ce8517e | e4acc426fabf4a9f346bf07293cf2c854a02e770 | /web.py | c4dd19f189cc63e971f50d4b803aac8ce67e9fb0 | [] | no_license | bridgecrew-perf4/windows-jenkins-terraform | d6652da9a489f77179bf3a863d53b80555ad52a6 | 6089a413d4e6581a528bd1842a9c34b43e1549ec | refs/heads/master | 2023-03-17T13:01:26.803918 | 2021-03-02T00:58:29 | 2021-03-02T00:58:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def main():
return render_template('index.html')
if __name__ == "__main__":
app.run(host="0.0.0.0", port=80, debug=True)
| [
"spappl19@g.holycross.edu"
] | spappl19@g.holycross.edu |
5a4251faa3640ee14864c166bae3382666f4e194 | 376ba4a0a531f67d601b5f31794321313f09df62 | /data_structures/heap/heap.py | 45c86c5768d608613ea4446bd047615a99534f88 | [
"MIT"
] | permissive | scottwillmoore/algorithms | d967f9cb8a6d42da077840cd3d8546f7e442eb71 | 16f859f8a76e7522249fdd970bb2c0d7bbb9f880 | refs/heads/master | 2023-08-02T22:39:33.461294 | 2021-09-16T10:46:14 | 2021-09-16T10:47:35 | 389,867,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | from __future__ import annotations
from collections.abc import Collection
from typing import Callable, Protocol, TypeVar
Element = TypeVar("Element")
Comparator = Callable[[Element, Element], bool]
MIN_COMPARATOR: Comparator = lambda x, y: x < y
MAX_COMPARATOR: Comparator = lambda x, y: x < y
class Node(Protoco... | [
"scott.will.moore@gmail.com"
] | scott.will.moore@gmail.com |
3b59eeb39cfdbba61656424e03607f2a49000569 | de116cb6ff5f4793bf01df128c8add41c552d3e5 | /CodeWars/camelCase/textToCamelCase.py | d5eabc6dae1298a265705796a8cd6159e251c627 | [] | no_license | joshplateros/Practice-Questions | ba6c668552782b337f0957bd489b5fd833560323 | a065c85d397934d1735279f0121a6fdd6d0e4437 | refs/heads/master | 2021-07-09T17:52:18.631855 | 2020-10-21T23:39:03 | 2020-10-21T23:39:03 | 205,966,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py |
# www.codewars.com/kata/517abf86da9663f1d2000003/train/python
import re
def to_camel_case(text):
splitted = []
result = text.find("-")
# completedWord = []
completedWord = ""
if (len(text) == 0):
return ''
splitted = re.split('[- _]', text)
checkList = []
# Go over ... | [
"josh.plateros13@gmail.com"
] | josh.plateros13@gmail.com |
66401cd91bc96aaedbc392e2073c9fd118eade0e | b095339e88576cf0e9992e49d86ee72c4d9c4be0 | /ProjAlgo/Route.py | 1bf4bd1581beaa044dd9031c0486e23a69340544 | [] | no_license | NanoClem/Graph_Langage | 48101296157ef01794c3b7e960536d18e6dc4c8a | b51328983da73042f31a24aff6798a10e9ab27b7 | refs/heads/master | 2020-04-08T12:16:44.517959 | 2019-03-08T12:55:10 | 2019-03-08T12:55:10 | 159,340,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,673 | py | """
creator : decoopmc
"""
import time
from datetime import datetime
from Arc import Arc
class Route :
"""
Cette classe represente le trajet complet d'un bus, aussi appele route \n
La route empruntee correspond aux differents chemins entre les arrets
compris dans le trajet du bus (arcs)
"""
... | [
"clemdecoop.pro@gmail.com"
] | clemdecoop.pro@gmail.com |
b4c7dc9e5dd44603c578afbbbbda6d03f98ab0c0 | da61401d1d520ecead67a7c9bbf53bcc61784968 | /competancy_mgt/applications/competancy_mgt_app.py | c0f6e56a73785c21f97431ea6d34841a382b9184 | [] | no_license | saifsayyad/Competency_mgt | ecb9ff91d136242f9ccda8d9fc7a1f8dbd706f27 | ef0e67a10eac7896e06374ea7a7ed5c74d0a84dd | refs/heads/master | 2020-11-27T00:56:17.546672 | 2020-06-15T12:09:17 | 2020-06-15T12:09:17 | 229,249,771 | 1 | 0 | null | 2020-04-30T13:47:23 | 2019-12-20T11:07:59 | CSS | UTF-8 | Python | false | false | 590 | py | import os
from groundwork import App
from competancy_mgt.applications.configuration import APP_PATH
class COMPETANCY_MGT_APP:
def __init__(self):
# Let's be sure our APP_PATH really exists
if not os.path.exists(APP_PATH):
os.makedirs(APP_PATH)
self.app = App([os.path.join(os.p... | [
"Saifali.Saiyyad@partner.bmw.de"
] | Saifali.Saiyyad@partner.bmw.de |
19e0444bb8521b323469f3fcd68ba49b76ce7b7b | 41e89ebedbb760382de217754d9d8ec00340b680 | /Homework_beta/wsgi.py | c0f6c9120da5539d06fa711773c24aeb73f1183f | [] | no_license | Dimagudilin/RIP_Homework | 64c894200e7f80f45581407dd649219fd6fed8ea | 8810b881e0c8bfe649129e38309d41cfe1ca356c | refs/heads/master | 2020-09-25T08:16:03.064479 | 2019-12-19T20:54:54 | 2019-12-19T20:54:54 | 225,959,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for Homework_beta 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"dima.gudilin@mail.ru"
] | dima.gudilin@mail.ru |
ffd932dbd780505eb4bef606f414e3d7a4c848cc | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/position_controllers/catkin_generated/pkg.installspace.context.pc.py | 23b00e2290c58c2e5784fc5a4572705354fb4fd1 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "controller_interface;forward_command_controller".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lpos... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
430b886607c68f95ee1443b58e22c10b06ca0c36 | b2135e3fc77666f043f0fbafd0d88ed9865d5b4f | /7183 Python Basics/32 Chapter 6 - About Properties/07 test_validation3/78794_01_code.py | 2f8efd74a7afa4db194872d5c8b652ef492fbd27 | [] | no_license | Felienne/spea | 164d05e9fbba82c7b7df8d00295f7157054f9248 | ecb06c66aaf6a2dced3f141ca415be9efb7dbff5 | refs/heads/master | 2020-03-17T17:35:27.302219 | 2018-05-17T10:14:49 | 2018-05-17T10:14:49 | 133,794,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #
class AboutAssignments(unittest.TestCase):
class Doctor:
def __init__(self):
self._age = 903
@property
def age(self):
return self._age
@age.setter
def age(self, value):
if value < self.age:
pass
# nice t... | [
"felienne@gmail.com"
] | felienne@gmail.com |
c5ae4257150c3e1e1fdd2e16e204f478f52129fc | 6cdd24734609c6e4fd3aa5a7a4862d8af80daa0e | /djangorestframework_extensions/models.py | 7ee9bd0c1ea2355e04915559c875db851c4ba43d | [
"BSD-2-Clause"
] | permissive | MechanisM/djangorestframework_extensions | e8a79725b99d2439642b4c61c48c97285f8f3e8d | 937639218ff385d3ca7f921bd14d8bfd485f2e54 | refs/heads/master | 2020-04-08T13:51:06.957932 | 2012-07-10T17:05:13 | 2012-07-10T17:05:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from django.contrib.contenttypes.management import update_contenttypes
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import Permission
@receiver(post_syncdb)
def ensure_view_permission(ap... | [
"benjamin.slavin@gmail.com"
] | benjamin.slavin@gmail.com |
8f173791ac25db2f261ca3b803329440d7724ed9 | 1c902085a3a0ba2d366424a665f6f83bc2c63435 | /level8.py | c8ebf10bc1babbdeb542c0a17ee232fe81053acc | [] | no_license | MR-Geri/varios | e17ddd48cca14f92b2fad2c7f6f9b4b234108e02 | 310cc6ddd8856e50b1c93dc826a1485e1cc8e7b8 | refs/heads/master | 2022-11-28T18:56:21.170744 | 2020-08-13T19:13:09 | 2020-08-13T19:13:09 | 285,392,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import bz2
un = b'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084'
pw = b'BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08'
decoded_un = bz2.decompress(un)
decoded_pw = bz2.decompress(pw)
print(decoded_un)
print(decoded_pw... | [
"63905039+MR-Geri@users.noreply.github.com"
] | 63905039+MR-Geri@users.noreply.github.com |
d2e05c3cfab86f28eff962c80f13b1284c221ed6 | fee2a81dfa111038c1986e7797f371b1f791ef46 | /src/tajo/rowdecoder.py | f1277b96d30d62d6078e0a726b010dc5cc2d873e | [
"Apache-2.0"
] | permissive | charsyam/python-tajo-rest-api | 863abe0f1b087ba52e5d34c7dcbc551f1dd991c1 | 739581acaa50f50162192cc395331a7175ee2b59 | refs/heads/master | 2021-01-22T17:47:35.153669 | 2015-07-28T23:51:43 | 2015-07-28T23:51:43 | 37,017,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | 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 use ... | [
"clark.kang@kakao.com"
] | clark.kang@kakao.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.