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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce43314f310b9b65dee36e38c84db5b49f04c6b6 | 2fd194196f21f51c881ec88d736bb8b2ee1937ce | /RaspberryPi/interface.py | fadbf12345a8799e9d5a53d86879de1f32419990 | [] | no_license | MV-Automation/MV_Pandemic_Solution | 6d609ab8ab2efff7fadfe2b09e27be9bdeaf72e1 | a95c2b090aa5625ee9be407294735eccf93c3869 | refs/heads/main | 2023-02-18T02:23:56.248935 | 2021-01-20T17:55:14 | 2021-01-20T17:55:14 | 312,030,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,648 | py | from tkinter import Tk, Label, Button, Frame
from PIL import ImageTk, Image
import cv2
from camera import camera
import config as cfg
import mv_rasp_upload_snaps_to_cloud as awsupload
import AmazonKeys as key
import boto3
"""
Secuencia:
1. Se inicializan todos los componentes de la GUI y se añaden a la ventana de Tk... | [
"70815913+anarrode@users.noreply.github.com"
] | 70815913+anarrode@users.noreply.github.com |
277eefec07dfbb8604106fa7fb9dbdc5dff111a0 | 4819d5b68ac2708cd9f7e238790568f6fb62bf4a | /shop/ShopSerializers.py | c96c2565256fbd1eb6e73cbd9da8599cb60a0676 | [] | no_license | suyashgithub/django-rest | f8c60efaa95ad74220be6d44c766181614b55adc | bb41c41713983ee95fab5d1a799b96231b817305 | refs/heads/master | 2022-11-29T06:02:04.119874 | 2020-08-13T22:08:21 | 2020-08-13T22:08:21 | 287,384,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from rest_framework import serializers
from shop.models import Shop
class ShopSerializer(serializers.ModelSerializer):
created_at = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", read_only=True)
username = serializers.SerializerMethodField("get_username")
class Meta:
model = Shop
fie... | [
"suyash.mishra@thinkmantra.com"
] | suyash.mishra@thinkmantra.com |
f8cff679622d038367e9ba166acddf2c25db3acc | 8126a1246a7fadcba2a57afdec210e6c00dd85ff | /tests/data_objects/constraints/constraints_object_test.py | 556692a6d6f5a40717a7b875d031a5c4615430be | [] | no_license | TF-185/cra-princess-cp1 | 0961f0bb140a89efb427e4e497318a563a564b75 | cbe5dab43983f794a817cd891973f68789ebd3b4 | refs/heads/master | 2023-05-30T10:45:24.635862 | 2019-10-11T19:55:00 | 2019-10-11T19:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,433 | py | # """
# constraints_object_test.py
#
# Module to test constraints_object.py.
# Author: Tameem Samawi (tsamawi@cra.com)
# """
#
# import unittest
# from cp1.common.exception_class import ConstraintsObjectInitializationException
# from cp1.data_objects.processing.constraints_object import ConstraintsObject
# from cp1.dat... | [
"tsamawi@cra.com"
] | tsamawi@cra.com |
6ebf11b3f019ebe0338ba4e09bbe5dcd2b7fbd4f | ec4e153f3bf1b335bc1b31b85e6f9db4a6c4faa9 | /wd_extractor/Document.py | 6ed52824a553446bd88f07562c5ca97fb6fb3529 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | DuaneNielsen/wd_extractor | 7936ac29ae97972cfe74973108aaad1efa5054b6 | 128a189bacd0cd2d7f1fa598202b9c4e55f48e2f | refs/heads/master | 2021-01-19T14:13:42.441554 | 2017-09-19T02:16:08 | 2017-09-19T02:16:08 | 100,887,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from .Graminator import Graminator
class Document:
def __init__(self, corpus, path, grams):
self.corpus = corpus
self.grams = grams
self.graminator = None
self.path = path
self.tokens = corpus.tokenizer.tokens(self)
def getText(self):
if self.path is not None... | [
"duane.nielsen.rocks@gmail.com"
] | duane.nielsen.rocks@gmail.com |
12eca4b3e8ae4bf6f27c07a03bbc58a313b36f5f | d668209e9951d249020765c011a836f193004c01 | /tools/pnnx/tests/test_torch_fft_irfft.py | 8f92dd551a1f5c2f0b5ff9c8894b75b1b122d362 | [
"BSD-3-Clause",
"Zlib",
"BSD-2-Clause"
] | permissive | Tencent/ncnn | d8371746c00439304c279041647362a723330a79 | 14b000d2b739bd0f169a9ccfeb042da06fa0a84a | refs/heads/master | 2023-08-31T14:04:36.635201 | 2023-08-31T04:19:23 | 2023-08-31T04:19:23 | 95,879,426 | 18,818 | 4,491 | NOASSERTION | 2023-09-14T15:44:56 | 2017-06-30T10:55:37 | C++ | UTF-8 | Python | false | false | 1,804 | py | # Tencent is pleased to support the open source community by making ncnn available.
#
# Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the... | [
"noreply@github.com"
] | Tencent.noreply@github.com |
0154452e8030cb69acdc0d908d2e28193782d8cc | 1f9f0e49c2dd5104e24a63416a4f773c017793db | /parse_dir.py | eee4110418bbbda9f46243fcea474adbbd76cad9 | [] | no_license | sameeul/duplication_detector | ca6cb957e24e443da92cccea1342d0d4484d8e93 | 3e374ea0274c1983e78e416a623cd05da3f270a5 | refs/heads/master | 2020-09-13T07:33:30.400569 | 2019-11-22T03:19:45 | 2019-11-22T03:19:45 | 222,696,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,137 | py | import argparse
import operator
#set up command line processing
parser = argparse.ArgumentParser(description = "Find duplication in a directory")
parser.add_argument("--name", required = True, type = str, help = "Text file containing file listing")
args = parser. parse_args()
input_file_name=args.name
# now work on f... | [
"noreply@github.com"
] | sameeul.noreply@github.com |
1570433f75a24869c25727245eb54167af8b00ab | bdbb20034786685601d0a424f29ea8bd04755419 | /stopWait/client/client.py | 9bcb24ee87990c4551f147c2c65755c851585681 | [] | no_license | s19-nets/udp-file-transfer-mc | 48df5efc60af4b41caf48a06381c45c17e640f4f | 8a5aff2b3142589f1e1ebb4702bdafe1ef0ed4ae | refs/heads/master | 2020-04-27T19:41:42.532207 | 2019-03-09T07:14:55 | 2019-03-09T07:14:55 | 174,629,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | from socket import *
serverAddress = ('localhost', 50000)
ack = 0
last = 0
doneNum = 0
seqnum = 0
done = False
retry = False
#Get user input
input = input("What would you like to do?")
input_list = input.split()
#Create socket and send user input
clientSocket = socket(AF_INET, SOCK_DGRAM)
clientSo... | [
"noreply@github.com"
] | s19-nets.noreply@github.com |
e8a5e9cff601be65ad6eb8f089f1c1bbc68ad329 | 5c6238e52a3b58cfa56df2b0376fe972d4eda055 | /time/clock_back/clock_back.py | 9e3ea9bad8288a2a23031157d5bae86b63553156 | [] | no_license | yhoazk/LF331_V2 | 25258da02654726a79e645f73616978dedf01064 | 5ca1c2620fbc295cc735f38acf7a6027fc4b9ae2 | refs/heads/master | 2023-06-30T15:18:31.283875 | 2023-06-18T11:28:18 | 2023-06-18T11:28:18 | 109,063,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | #!/usr/bin/env python3
from matplotlib import pyplot as plt
import csv
def main():
print("sdfsdf")
data = []
with open("/tmp/samples.log") as csv_file:
samples = csv.reader(csv_file)
for row in samples:
data.append(int(row[0]))
data_diff = [j-i for i, j in zip(data[:-1... | [
"yhoazk@gmail.com"
] | yhoazk@gmail.com |
0d3ffa1d191e50eef4a95f5452a805a99887284a | c65028cd7520d6ac4b109eb4fafc470bfafcabfb | /logit.py | 2970708f6eefa3453ef031a0e0a254360824535d | [] | no_license | devsunb/commit-log-exporter | 17ca29eb2ede7cfffb140101fa002bffc6567549 | 5c58b9d5d902ac017a05bf6a9451390f65c5560d | refs/heads/master | 2023-07-26T14:36:12.141223 | 2021-08-31T08:04:56 | 2021-08-31T08:04:56 | 401,622,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | import logging
import re
import subprocess
logger = logging.getLogger('LOGIT')
class Logit:
@staticmethod
def parse(commit_lines):
commits = []
commit = {}
for line in commit_lines:
if line == '' or line == '\n' or re.match('merge:', line, re.IGNORECASE):
c... | [
"devsunb@gmail.com"
] | devsunb@gmail.com |
406f62c74fe702355e8c72a821dc3983799b0ff2 | 2477ba1cd7e04b641f95b800e188d7525d39ab46 | /Monochrome_sketches/stripe/stripe.pyde | 31e0e239c6a31336735627ca8ac6824354f8348a | [] | no_license | lsm35/ProcessingSketchbook | ec6ddf875caa87f1ccfefefde690c9dd6a0260f8 | d15ae1dcdcc920f583bc911c0a5cf72f58821dd1 | refs/heads/master | 2021-03-31T02:00:24.209133 | 2018-03-17T00:48:40 | 2018-03-17T00:48:40 | 124,572,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | pyde | size(400,400);
background(60);
Ncols = width;
Nrows = height;
# Set up 2D array
myArray = [[0]*Ncols]*Nrows;
for i in range(0,Ncols,20):
for j in range(0,Nrows,20):
myArray[i][j] = int(random(255));
stroke(myArray[i][j]);
rect(i,j,1/2,j/2);
save("stripe.tif") | [
"lsm35@cam.ac.uk"
] | lsm35@cam.ac.uk |
48dfd03ed0706d7a711f1e304f10e7e7b6b13b01 | 0d59d36b45143e8710d6a19dce41c7a8fc14fc3b | /tasker/libs/client_desktop/event.py | 9d9d31fa183128fc1573f381b098c9c7f4010c83 | [] | no_license | nkitsan/trello_clone | 4d09b8f5bfe1b77ce2d4a5eb6eb49492b229b1fc | c86c83f4fe76323bc558911cb81bbfe234bfe3ce | refs/heads/master | 2020-04-13T12:06:29.129019 | 2018-12-26T15:29:07 | 2018-12-26T15:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,251 | py | import requests
import click
from tasker.libs.client_desktop.helper import HOST, date_validation
from tasker.libs.client_desktop.access import read_api
@click.group()
def event_operations():
"""Here is commands which allow to work with calendar events"""
@event_operations.command(short_help='Add the event to th... | [
"nastik.kitsan@gmail.com"
] | nastik.kitsan@gmail.com |
429cff803102a46433f095f3ba8e41199c5dcae2 | 47257562cd6db4185c34ab582f8ea311c3155c45 | /DDPG_HER_VIME/Smoothing.py | cf7379093370f65b961a366d14338f46d0e9a24e | [] | no_license | JuliusVsi/HVDDPG_Project | f25ebe429c0ed0ea806b2f41d108f60e798b9a39 | a21c6b89ef8e9ab2092a2dcc329b83f6b7813fcd | refs/heads/master | 2020-07-17T02:09:38.593852 | 2019-09-02T19:25:32 | 2019-09-02T19:25:32 | 205,919,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,970 | py | import matplotlib.pyplot as plt
import numpy as np
def smooth(data, weight=0.85):
last = data[0]
smoothed = []
for point in data:
smoothed_val = last * weight + (1 - weight) * point
smoothed.append(smoothed_val)
last = smoothed_val
return smoothed
if __name__ == '__main__':
... | [
"noreply@github.com"
] | JuliusVsi.noreply@github.com |
acd320e9b5670c9b4b981d67159ec8153117268f | 6a020d2afc402b443013a1a65b961d21e868ad8b | /tools/mdtable.py | 92d401420be8a0b8255ba25b904ef3829c2fbe13 | [] | no_license | scientist1642/anagram_benchmarks | fd5645f44e8454596ac3f06768a586819fe12403 | ccbc728544ce86028e0a2d9f8de0490c8ccecc72 | refs/heads/master | 2020-04-27T19:26:06.883530 | 2020-02-27T12:36:32 | 2020-02-27T12:36:32 | 174,617,771 | 4 | 1 | null | 2019-03-09T10:42:27 | 2019-03-08T22:15:14 | Python | UTF-8 | Python | false | false | 3,600 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
def get_matrix_from_csv(stream, separator=";"):
"""Return a matrix of values from an input stream containing csv data."""
for line in stream:
yield [col.strip("\r\n") for col in line.split(separator)]
def get_matrix_from_md(stream):
"""Retur... | [
"z.isakadze@gmail.com"
] | z.isakadze@gmail.com |
fff29da02d95309713cc9a0f7a86f69832ba5220 | 83a506a501561602ad3b259341225ddfbddab160 | /GameServer/matchGames/Match_PK_DouDiZhu/redis_instance.py | 3fe50de16f52f543bb74fc19e6b8dcc7b80828c3 | [] | no_license | daxingyou/SouYouJi_Game | 9dc5f02eb28b910efb229653a8d0bffe425a7911 | 7311a994c9aba15b7234331709975ebc37e8453d | refs/heads/master | 2023-03-28T01:36:48.955107 | 2020-04-05T01:24:17 | 2020-04-05T01:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # -*- coding:utf-8 -*-
# !/bin/python
"""
Author: Pipo
Date: $Date$
Revision: $Revision$
Description: Redis
"""
import redis
from configs import CONFIGS
redisdb = None
def getInst(dbNum=CONFIGS['redis']['db']):
global redisdb
redisdb = redis.ConnectionPool(
host=CONFIGS['redis'][... | [
"ronnyzh@yeah.net"
] | ronnyzh@yeah.net |
51f55bc16f6ed44f56ff1aebecc74e8ef660f3e9 | 222b17dacb95640499ebd484697ead32e83b9ac1 | /find_defining_class.py | 3bf7302beb99684035cd35f6b235fee80a90520b | [] | no_license | cicekozkan/python-examples | 08330ef0fb1678cace17716ac2f490a3c5b95dd2 | 01b0e654c884946f8353995333a6946062c9c158 | refs/heads/master | 2021-01-14T14:06:37.585963 | 2014-12-26T07:55:13 | 2014-12-26T07:55:13 | 25,510,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 17 11:46:43 2014
@author: ocicek
"""
def find_defining_class(obj, meth_name):
"""takes an object and a method name (as a string) and returns
the class that provides the definition of the method"""
for ty in type(obj).mro():
if meth_name in ty.__dict_... | [
"cicekozkan@gmail.com"
] | cicekozkan@gmail.com |
0c0c96329a80a01c75b885a1de44d8ad5ef2138d | 64965365bfeb800c9b4facae7d707f752c922d9c | /args_aula.py | 9d4788c4db0121d903f357ba664099c15d84c3df | [] | no_license | RafaelNGP/Curso-Python | 585b535f1383931286d897fe2745a1a976e3a3b8 | 0300566578b176071abe7083b222d4fa8a338e90 | refs/heads/master | 2020-12-03T17:33:35.907478 | 2020-06-26T18:33:27 | 2020-06-26T18:33:27 | 231,409,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | """
Entendendo o *args
- Eh um parametro, como outro qualquer. Isso significa que voce podera chamar de qualquer
coisa, desde que comece com *
por ex:
*xis
mas por convencao, todos utilizam *args para defini-li.
O QUE EH O ARGS??
O parametro *args utilizado em uma funcao, coloca os valores e... | [
"rafaelferreira.dev3@gmail.com"
] | rafaelferreira.dev3@gmail.com |
e8e634391f303d0b6ceac4ace6299bdd2bf13d16 | 92caa71c5a5135603cd875ce56dcd28a7dac7655 | /GHER/common/vec_env/subproc_vec_env.py | 44ac0f946d3087a480df1d7ca5ba9e3acb077a7b | [] | no_license | MrDadaGuy/GHER | 286343d66815971afd5bd47f6ee0e1940b144610 | 8b1b2a2aba6a684db5921d2328c79e7f36aa8eae | refs/heads/master | 2022-03-25T08:48:43.359759 | 2019-07-19T14:59:53 | 2019-07-19T14:59:53 | 173,989,952 | 0 | 0 | null | 2019-03-05T17:21:49 | 2019-03-05T17:21:49 | null | UTF-8 | Python | false | false | 2,859 | py | import numpy as np
from multiprocessing import Process, Pipe
from GHER.common.vec_env import VecEnv, CloudpickleWrapper
def worker(remote, parent_remote, env_fn_wrapper):
parent_remote.close()
env = env_fn_wrapper.x()
while True:
cmd, data = remote.recv()
if cmd == 'step':
ob, ... | [
"baichenjia@163.com"
] | baichenjia@163.com |
d9d48cd7afade834ffcb015e029a3826b4194562 | c351bc7388ece0e36b0c91cdc91dbce821940066 | /TC/redes-tp1/herramientaS2.py | 990187e7cca4726d39693846d36f107fa1d7c098 | [] | no_license | julianlen/tps_facultad | 059d62dc6a8c017688511e3d30ee93f3e0baca60 | 9b776e685036d34de5cf9dc86ad019e2f20f572d | refs/heads/master | 2021-09-02T06:16:00.274517 | 2017-12-31T00:02:01 | 2017-12-31T00:02:01 | 115,832,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,740 | py | #!/usr/bin/env python
# encoding: utf-8
from sys import argv, exit
import math
import matplotlib.pyplot as plt
from matplotlib import pylab
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy .all import *
#import graphviz as gv
import functools
DECIMALES = 3
def PlotBars(simbolos... | [
"julianlen@gmail.com"
] | julianlen@gmail.com |
2da8ab85dde17e654b3141983d5e3f549d3c1c70 | 3bf41ea64766b4f39f90db90aea8a97ccf915c30 | /Insertionsort.py | 9fc1b47b8388b81deedee8edaea0ba5d43ced68a | [] | no_license | utkarsht724/Pythonprograms | b461eebd1414f00f45f37343df212ae02abe91c8 | 2613544a974b34d3939466482fe4ef7b32a9918d | refs/heads/master | 2020-12-29T17:48:43.728569 | 2020-02-22T00:26:49 | 2020-02-22T00:26:49 | 238,688,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #sort the string using insertion sort
def insertion_sort(names):
for i in range(1,len(names)):
value=names[i] #select value to be inserted
hole=i
while hole>0 and names[hole-1]>value: #locate hole position for the element to be inserted
names[h... | [
"utkarsht724@gmail.com"
] | utkarsht724@gmail.com |
0e8a3dffcb9fc9ad6d8d25500665e90fa65b0b3d | 189996bd337adf575352201ccddc5bc9fe7550cd | /Incomplete_tensorflow_implementation/Test.py | 7ffecf73a67e41dee8aaca4fcba66e534c62f55e | [] | no_license | Ru0628/LUNA16_Challange | 07ab83cb2f9d09207c38559ebb8a9c12d43c1aff | cd380f6b44fa5cfd45de377112b7770b94a1f451 | refs/heads/master | 2022-04-19T05:40:22.791855 | 2020-04-15T15:45:44 | 2020-04-15T15:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,964 | py | import numpy as np
from scipy import ndimage
from os import listdir
import matplotlib.pyplot as plt
from PIL import Image
# ****************** Connected Component Analysis
# testMatrix = np.array([[[1, 1, 0],
# [0, 0, 0],
# [1, 0, 0]],
# ... | [
"noreply@github.com"
] | Ru0628.noreply@github.com |
2044349675b019719547202cd026f4a96865b6c6 | b4ad07eba142d4c2cbec643a3f679b7590a69a78 | /FinalProject_CombatSim/sim_combat/army.py | a5d357af331dd04353adc6197bbd71e1f4d11ae3 | [] | no_license | Heraclito1107/D3Labs_Heraclito | af344b4692ef3504e604ab025451d8f456a8e46f | b89a8bc405bc89ba5ef9730ba5a2f99a202a8030 | refs/heads/master | 2022-08-27T15:06:00.380790 | 2020-05-30T02:40:20 | 2020-05-30T02:40:20 | 266,623,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | """ from characters.character import Character
from characters.character_type import CharacterType
class Army:
def __init__(self, army_id: int):
self._id = army_id
self._size = 0
self._army = [0 for x in range(10)]
def assignArmy(self, size: int, army_type: CharacterType) -> None:
... | [
"heraclito.diaz@hotmail.com"
] | heraclito.diaz@hotmail.com |
b449c65779fdc5cecf2dd164f7627c6d1568c411 | b2bbd4ab93467ed9971a73e5393108943a3424e3 | /programing/object_oriented_programing.py | 57a124d982255a99e31046dc75886ac6dd2ffa0b | [] | no_license | ajaykr26/learning-python-programing | 57c00325f1150897679e8c2071af31c1c55ba35a | 5341727592677bd214de5b22a600a0c546c6d7ab | refs/heads/master | 2022-04-08T12:07:25.407114 | 2020-03-18T04:52:49 | 2020-03-18T04:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,743 | py | # oops: inheritance, polymorphism, encapsulation, abstraction
# inheritance: single level inheritance, multi level inheritance, hierarchical inheritance, multiple inheritance
# class: A class is a blueprint for the third.We can think of class as an sketch of a parrot with labels.
# It contains all the details about the... | [
"ajaykr.mailbox@gmail.com"
] | ajaykr.mailbox@gmail.com |
233a03f97ecdb2657432694ef3554ae545d0dda9 | 13adab7e3e09f69dfc74ac0fad96d3a4a350db9d | /src/game/data_structures/states.py | 25efe554d83825e6886957f1bb48628844731861 | [
"MIT"
] | permissive | richlanc/Game_of_life | 5f4150c2258a97778021b8841309a03c826ca01c | 3784b694c5d89df05a2b9d5cbf2a0596d8bf5a86 | refs/heads/master | 2020-12-03T05:10:41.430658 | 2014-01-05T14:23:06 | 2014-01-05T14:23:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | '''
Created on 20 Oct 2013
@author: Richard and Michael
This is a module containing the State class and all classes derived from it.
'''
class State(object):
"""
This class represents the state of a cell at any given time.
NOTE: This class is abstract.
"""
def __init__(self):
"""
... | [
"mw362@kent.ac.uk"
] | mw362@kent.ac.uk |
95e9f1d292ccffad970294b2b502147429f71198 | 23b5337bf410415b7b150e3ad60cafc1578a0441 | /07-User-Authentication/01-Flask-Login/myproject/__init__.py | 54b954d72924a39c7987de9eda326bbc04bd3512 | [] | no_license | VerdantFox/flask_course | b8de13ad312c14229f0c3bc2af70e8609a3b00fb | 47b167b54bc580734fa69fc1a2d7e724adfb9610 | refs/heads/master | 2021-09-10T05:01:47.385859 | 2020-02-24T21:07:05 | 2020-02-24T21:07:05 | 241,973,705 | 0 | 0 | null | 2021-09-08T01:40:59 | 2020-02-20T19:40:42 | Python | UTF-8 | Python | false | false | 761 | py | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
# Create a login manager object
login_manager = LoginManager()
app = Flask(__name__)
# Often people will also separate these into a separate config.py file
app.config["SEC... | [
"verdantfoxx@gmail.com"
] | verdantfoxx@gmail.com |
40944c5fac9d6218fbb3fccd6144a95baa133e07 | 8bef4e20c773ebd6ccb6af0cb81eb788db920cb0 | /Routes/addNote.py | bd5398cafada0dd39b1819418c86ad88086ec1f0 | [] | no_license | animoffa/PhytonProj | 44207cc3f52826c136b8ea2d204f443f0e604fd7 | 1e62c94af510631fb9ad3b46f6dd882687d183ee | refs/heads/master | 2023-01-28T00:22:56.258766 | 2020-12-09T14:41:15 | 2020-12-09T14:41:15 | 319,985,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | from flask.blueprints import Blueprint
from flask import render_template
from flask import request
from models.lectгurers import Lect
from models.subjects import Subj
from models.intervals import Intervals
from models.groups import Group
from managers.DatabaseManager import DatabaseManager
from extensions import db
db... | [
"animoffa1352@gmail.com"
] | animoffa1352@gmail.com |
8e8d989c5ae7bb188f444018f73a3c7200c98092 | 6220fd6bfd24626ea3f15b862606ecffe090e211 | /Course_2_Python_to_Access Web Data/chapter15/roster.py | ef6818724c91f27ab94ca4d4a5c59ce06d7dc212 | [] | no_license | Amithabh/Python4Informatics | ffa459a5340673d8df488aff3be4cef43499a6ef | 3faad370928f5bd2a17edaa4caf3d1b8fb759710 | refs/heads/master | 2020-05-30T12:27:13.802610 | 2016-10-07T21:04:04 | 2016-10-07T21:04:04 | 70,282,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | import json
import sqlite3
conn = sqlite3.connect('rosterdb.sqlite')
cur = conn.cursor()
# Do some setup
cur.executescript('''
DROP TABLE IF EXISTS User;
DROP TABLE IF EXISTS Member;
DROP TABLE IF EXISTS Course;
CREATE TABLE User (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
name TEXT UNIQUE
... | [
"amithabh5@gmail.com"
] | amithabh5@gmail.com |
108cc53743d0761bb5612f81ccca8e5ac6f491ff | cb6f6888859567727e7a4c03f29ad0cf549d465a | /main1.py | a0729ed3f708bbdac13d7b5c2d969d3c76f373e8 | [] | no_license | Parth-AI/file-uploader | bfe3781a440cd276192b847732cbb219fc8a8016 | b7fe462d8d7f10b6c4200cede8af0f105e3657fa | refs/heads/main | 2023-04-25T17:12:41.785404 | 2021-05-17T23:58:33 | 2021-05-17T23:58:33 | 368,351,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | import dropbox
class TransferData:
def __init__(self, access_token):
self.access_token = access_token
def upload_file(self, file_from, file_to):
"""upload a file to Dropbox using API v2
"""
dbx = dropbox.Dropbox(self.access_token)
with open(file_from, 'rb') ... | [
"noreply@github.com"
] | Parth-AI.noreply@github.com |
30dc3b2da46f46ecc794ac6ddebb62d32642eee8 | 933450b76a6ebfc06f5ee8bd09a03e5eecd79081 | /itm-413/final/connection.py | a06d769ff728e980eeb287f6515e69f6bd5b8cfa | [
"MIT"
] | permissive | bradyhouse/iit | 7a2e0e1d81a0d02dc432bc7a5a2b76fde7bd8865 | 7d1e91864467f56fa6dc901a83e97977630132b3 | refs/heads/master | 2022-07-07T01:20:45.808092 | 2016-08-27T17:11:46 | 2016-08-27T17:11:46 | 66,312,487 | 1 | 1 | MIT | 2022-03-25T15:57:02 | 2016-08-22T22:22:26 | JavaScript | UTF-8 | Python | false | false | 105 | py | db_host_name="127.0.0.1"
db_name="TestDB"
db_user="testuser"
db_password="test123"
db_table_name="brady"
| [
"bradyhouse@gmail.com"
] | bradyhouse@gmail.com |
df5e27dbf8300206dc4e4fdd743705abeca3d79a | 42d4fd4b5ecf073ed7eda60bb12347a7e2281a60 | /uvfits_to_ms.py | 856f0ceaf02f321096560bd1157dac9f6e28c034 | [
"BSD-3-Clause"
] | permissive | tyler-a-cox/HERA_beam_mapping | 6d0d57cf344262f58d2e5c0cd75f5df161b5da81 | ef45242b73219017c0403b18048136f2feafa234 | refs/heads/master | 2023-07-13T02:37:46.356293 | 2021-08-12T20:03:04 | 2021-08-12T20:03:04 | 177,019,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | """
Example:
casa -c uvfits_to_ms.py /path/to/data/*.uv
"""
from casa_imaging import convert_uvfits
if __name__ == "__main__":
try:
folders = sys.argv[3:]
for folder in folders:
convert_uvfits(folder)
except IndexError:
print("No file specified for conversion from uvfits to... | [
"tyler.a.cox@berkeley.edu"
] | tyler.a.cox@berkeley.edu |
1511174dcb89eb47693c4902e477237c79e49570 | a1dd53f96c79955a6723aca2627f207020d215eb | /bin/pyrsa-verify | 2de038a1db0ff9eb17a4bce4d5390230411f2e16 | [
"MIT"
] | permissive | linuxg33k76/speech | bfbf20efb84ba4bb1113960d9f287c30c047aad8 | 9e5c131a0f8b76756d52dacb764fb35bc8302dc4 | refs/heads/main | 2023-05-17T06:00:28.220754 | 2021-06-06T20:04:07 | 2021-06-06T20:04:07 | 374,419,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | #!/home/linuxg33k/dev/speech/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import verify
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(verify())
| [
"linuxg33k76@gmail.com"
] | linuxg33k76@gmail.com | |
663f935d7eb0b3d622d212ba615d6a7387719c88 | c4cb90afb658a822c4ab867eec979227c0a25a6d | /testdemo/settings.py | 752c0a3676d4faf49f9a97caa9ee3abc5b89683d | [] | no_license | Contraz/demosys-py-test | 81afb3dd801c0deb6046ddb0e7836de61182a36f | 2aa760cb94ea34e3fb610ca8c43f1549ba9b53de | refs/heads/master | 2021-01-19T16:58:33.608630 | 2018-07-13T07:59:34 | 2018-07-13T07:59:34 | 88,294,443 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | import os
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
DEBUG = False
SCREENSHOT_PATH = os.path.join(PROJECT_DIR, 'screenshots')
# Profile: any, core, compat
OPENGL = {
"version": (3, 3),
}
WINDOW = {
"size": (1280, 720),
"vsync": True,
"resizable": True,
"fullscreen": False,
"ti... | [
"eforselv@gmail.com"
] | eforselv@gmail.com |
48f3584a790de2d2e0b3bcbc8564f738a07d7db1 | 4760101a6c297c4b4b0e96f5ae7fb8c94c2abda6 | /cs_591/hw1/Swell.py | 0922c9bccb5bb0bd5ed7e2c7ba7ab360210abbc9 | [] | no_license | ssikdar1/grad_school | 6fc739c7638e64a0a9974c920ac808c3989c9109 | cfcdcd70fab5b4083515abb2afe10c9dd5c27923 | refs/heads/master | 2016-09-06T11:46:42.754021 | 2014-10-27T16:17:10 | 2014-10-27T16:17:10 | 13,286,075 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | #Problem 3: Write a program Swell.py which prompts the user for the name of a mono input file, and produces a mono output file which takes the musical signal from the input file and changes the amplitude in the following way: the signal will start at amplitude 0, increase linearly until exactly half way through the fil... | [
"shan.sikdar@gmail.com"
] | shan.sikdar@gmail.com |
40442ff6a3e8d55c9463efb03745c7f4f7599364 | 3b14022e319adc1d51583bf323b52d60b6bdcae3 | /deepfield/field/rates/__init__.py | 05a1c2af9b673a70c2fd21c73c81c939c03b3708 | [
"Apache-2.0"
] | permissive | scuervo91/DeepField | 0b7008f76e0789cd80ad3bbdf65027b5815921f9 | 3b336ed110ff806316f1f6a99b212f99256a6b56 | refs/heads/main | 2023-07-07T13:03:16.869291 | 2021-08-14T09:55:52 | 2021-08-14T09:55:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | """Init file"""
from .blocks_info_upd import apply_perforations, calculate_cf
from .plot_rates import show_rates, show_rates2, show_blocks_dynamics
from .calc_rates import calc_rates, calc_rates_multiprocess
| [
"egor.mypost@gmail.com"
] | egor.mypost@gmail.com |
7cbcab569a1f959cdee14d726d23c6b0440e977e | cc274ad0f1ce4e9a968fd6057f4fb0fd8a08f988 | /hw21.py | 4001c1dc59a457beeaec6ee8bf0d7f87fcb38259 | [] | no_license | MikaPY/HomeworkPY | 51b216de30d7b2b33aa8847cd3ae46e421ea6db4 | c1ecc0f718ededb60aa375dd1a7a6231a7668a32 | refs/heads/master | 2023-01-22T11:51:30.248030 | 2020-11-22T17:25:28 | 2020-11-22T17:25:28 | 304,744,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # def max_num(num1,num2):
# if num1 > num2:
# return num1
# else:
# return num2
# num1 = 10
# num2 = 21
# print(max_num(num1,num2))
# def sum_num(*numbers):
# pack = 0
# for x in numbers:
# pack += x
# print(pack)
# sum_num(1,21,9,3,5,7)
# def multiply_num(*numbers):
# pack = 1
# for x in nu... | [
"72929883+MikaPY@users.noreply.github.com"
] | 72929883+MikaPY@users.noreply.github.com |
a5c7326e28f20fc08a463bfb04e69b82c6be461e | 466c185dd064d0a1fb8f20e72b21e227e2cb3efc | /individual_tutorials/pygamestartercode-PghTrickster-master/00-IntroToPython/01_expressions.py | ce823f663fc15dfaa6c674cfdb136a7c8bc9ae00 | [
"MIT"
] | permissive | rhit-catapult/2021-session1 | 3e937235fe48cb03a1dc69b5573879a17b2e81eb | 60c70abeb90ab7edc8d6ddb2c6beb12243a244fc | refs/heads/main | 2023-06-15T20:34:34.449474 | 2021-07-16T20:15:15 | 2021-07-16T20:15:15 | 386,752,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,282 | py | """
Permits exploration of EXPRESSIONS, e.g. 3 + (5 * 2) and "hello" + "goodbye",
and NAMES and ASSIGNMENT, e.g. n = n + 1
Authors: David Mutchler, Sana Ebrahimi, Mohammed Noureddine, Vibha Alangar,
Matt Boutell, Dave Fisher, their colleagues, and
"""
import random
import math
##########################... | [
"fisherds@rose-hulman.edu"
] | fisherds@rose-hulman.edu |
b7acd23168a4cac8d3afab25692d93f940e90c97 | bc97fbbfa0078304fa45c386700ddba278c34e37 | /BoardManip.py | 8105cabbe4d1f0e28a5332790d6fecfe961d34e9 | [] | no_license | nayr31/Connect4 | f0d0c4fdce29b03b4286ebb671e4fe7a454d750c | 1be25dd07525f0bf3c4d7f02ddb6e0b6caef92ee | refs/heads/main | 2023-08-31T13:07:46.370699 | 2021-10-11T15:12:38 | 2021-10-11T15:12:38 | 405,181,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,434 | py | # This file is for anything that relates to the board. The main program should not know what it needs to do, only what it wants to.
# This could just be my Java seeping into my Python, but this is how I like it.
from PVector import PVector
import random
# Constants
width, height = 7, 6
top_string = "+ 0 1 2 3 4 5 6 "... | [
"re17wj@brocku.ca"
] | re17wj@brocku.ca |
f1ef29d00b9e612458bdb8429ac6cc2833dcfeb1 | cd58faaffc84a4b1194fa55206ecce3458289edb | /setup.py | 00f05e0c3c24ac0059253c0b709c8ccd9fd0b61a | [
"MIT"
] | permissive | danieleteti/revelation | 89327833d896c7350d41a7983d4781d980134a79 | de4f8221e6c78aca174600dd333b0f9a5f62baa2 | refs/heads/master | 2020-03-21T08:10:47.420032 | 2018-07-17T18:05:17 | 2018-07-17T18:05:17 | 138,326,204 | 0 | 0 | MIT | 2018-06-22T16:43:33 | 2018-06-22T16:43:33 | null | UTF-8 | Python | false | false | 2,222 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""revelation setup file"""
import os
import re
from setuptools import find_packages, setup
PACKAGE = "revelation"
REQUIREMENTS = [
"Jinja2==2.10",
"Werkzeug==0.14.1",
"click==6.7",
"gevent-websocket==0.10.1",
"gevent==1.3.4",
"watchdog==0.8.3",
]... | [
"humrochagf@gmail.com"
] | humrochagf@gmail.com |
8f2f0eec2b1efbe86d15896aed5fdbab5ccb68a4 | 190193fbf79b2a755c1fe7bc2db604d6e2c7dac3 | /clovece nezlob se.py | 2d855e23aa89af91526f9e7e3775ead4934bc162 | [] | no_license | marekdrab/clovece_nezlob_se | 2843a22fc4333990437429b43065ba59e358b5b1 | a43046149787d027583a839986eed0ef1a9b6e6c | refs/heads/main | 2023-07-17T00:11:10.498624 | 2021-08-20T14:44:38 | 2021-08-20T14:44:38 | 398,307,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,800 | py | """
n=rozmer hracej plochy
m=počet pozícii domčeka ( ak n=9, tak m=3 čo znamená, že berieme do úvahy 3. riadok/stlpec
v podmienkach pre pohyb)
k=najväčší počet "*" vedľa seba v riadku (použité pri generovaní hracej plochy)
r1,r2,r3,r4=riadky v hracej ploche
r5=riadok plný medzier potrebný pre pohyb
sach=samotn... | [
"noreply@github.com"
] | marekdrab.noreply@github.com |
1763b815e273475b326541c6b358d67877c9a015 | dc375c2e22ebf0a56703ad84d09494a49d994c7c | /genrxkt0.py | c8e87d48c9439d6e5f396a1cab7c2633365364ab | [] | no_license | chen17/rxkt0 | ad7a0b32453890745092121eb8063a41c3cb11e1 | 66713aecd2f82395e56ec360747b79b3500b0bba | refs/heads/master | 2021-01-13T10:56:03.973637 | 2016-11-14T05:30:45 | 2016-11-14T05:30:45 | 72,267,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | import fontforge
import subprocess
import urllib
# Create new font TypographyKT.
newfont = fontforge.font()
newfont.fontname="TypographyKT"
newfont.save("TypographyKT.sfd")
font = fontforge.open("TypographyKT.sfd")
# Get Char_List.txt
charlist = urllib.urlopen("https://raw.githubusercontent.com/chen17/rxkt0/master/C... | [
"noreply@github.com"
] | chen17.noreply@github.com |
c389de36a0b5295a4cec6e9ccfb15f6e11845d20 | 1f3cfc88c3b9d51d626f3e71301d6fd25ef2738b | /vegefoods/accounts/migrations/0009_auto_20190812_1913.py | 67ef3e510a576d5d99a0e5f43c3e59622a1b60c2 | [] | no_license | farzan-web/django-vegetableshop | cde071b8fab98901e193eec198c3b0e95efc3dcd | 7713808046ca2b2cd009765a21c61713352eb014 | refs/heads/master | 2020-07-05T20:35:24.087796 | 2019-08-16T16:58:16 | 2019-08-16T16:58:16 | 202,766,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # Generated by Django 2.2.1 on 2019-08-12 14:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0008_auto_20190812_1909'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='address',... | [
"farzan.moradi71@gmail.com"
] | farzan.moradi71@gmail.com |
f25824b60d5d366a1303a8ecdeb33674f8eee4e7 | de12b4939bc67ba4a1438a1b90fb2dc83725930c | /emg_hom_iso_unbound/export_as_pandas.py | 1440ba5e1d5077524915eaf97ba820c9d7bc062f | [
"Apache-2.0"
] | permissive | UAS-Embedded-Systems-Biomechatronics/EMG-concentrated-current-sources | d239a9080e224868a0c61dc90af1bbd94ad2ba2b | 567280d71c6bc32f6afd1f12c08091361a5b3ab6 | refs/heads/main | 2023-06-07T10:56:55.772829 | 2023-06-01T14:03:08 | 2023-06-01T14:25:48 | 609,161,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,763 | py | # Copyright 2023 Malte Mechtenberg
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"mmechtenberg@fh-bielefeld.de"
] | mmechtenberg@fh-bielefeld.de |
49810965fe88053aecf6f8d41bc56ca22e857633 | 8f14190c9a9c4060a17a5d8cafc5a54bc2c79300 | /companies/views.py | 14a54af61ff6ad243004abc0276fa378f9519f18 | [] | no_license | rcdigital/kanban-server | f486672627fcbb11c8ae377187cac455e45ea14a | 905f071ff963b9bad61610e944b1cef01fc95b33 | refs/heads/master | 2019-01-02T04:14:04.573196 | 2015-03-23T22:00:59 | 2015-03-23T22:00:59 | 31,366,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,871 | py | from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from django.http import Http404
from companies.serializers import MembersSerializer, MembersRetrieveSerializer, RolesSerializer
from companies.models import Members, Roles
class CompanyMembersList... | [
"erick.belf@gmail.com"
] | erick.belf@gmail.com |
b596f6be091373758522a35be25f02f7e2e9bb57 | 6e43f45ff6eb4d3388b20b0af18982abc3d58993 | /migrations/versions/d0695a26d06a_.py | f4ccbd8279dcff1a1533112d88a58743c231d4a2 | [] | no_license | mechanicalhack/Fyyur | 8ab910950c5576730205638bb6477528347b9972 | c2dfbad1ab7de3d5d721422037e048e468833196 | refs/heads/master | 2022-11-13T07:27:53.209134 | 2020-07-13T21:41:25 | 2020-07-13T21:41:25 | 276,451,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | """empty message
Revision ID: d0695a26d06a
Revises: 2afc362f9fb7
Create Date: 2020-07-06 17:35:52.150821
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'd0695a26d06a'
down_revision = '2afc362f9fb7'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"rlloyd28@gmail.com"
] | rlloyd28@gmail.com |
70e4b33a9519977afd5f4c27c746af80bf80095b | d69212d8f0f63937db5a3f3376d634a3adca9276 | /app.py | aeab5527d0b6e58de265f848d77f7a6e5b6c5da5 | [
"MIT"
] | permissive | the-mocode/Heroku_test | 82dea28d6df8b158959a46a5c34cce98e8fd4860 | 97e48c546d65fc339f83d7eeea69eefc68d6f5c0 | refs/heads/main | 2023-07-26T12:02:45.724092 | 2021-09-09T11:34:06 | 2021-09-09T11:34:06 | 404,654,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from flask import Flask
import os
import psycopg2
DB_URL = os.environ.get("DATABASE_URL", "dbname=i_love_bigmac_db")
SECRET_KEY = os.environ.get("SECRET_KEY", "pretend key for testing only")
app = Flask(__name__)
app.config['SECRET_KEY'] = SECRET_KEY
app = Flask(__name__)
@app.route('/')
def index():
conn = psy... | [
"Antar@Mohamads-MacBook-Air.local"
] | Antar@Mohamads-MacBook-Air.local |
fda2f73dcd940252430b681bada9eeb30c5c875e | 625bcba8922a6d0bd4c34721354f1f87977437ad | /scripts/make_sec_qc/linear_reg.py | 309f3e5019cf48ba311d00c0967ec399d1c0fd81 | [] | no_license | toth12/data_processing_lts | 2970805d101154b5aa2283061da970d45538571a | 831c3d3ccfd745606f4cc855623086b3d3c07a01 | refs/heads/master | 2023-04-16T06:19:18.410693 | 2021-05-04T07:55:53 | 2021-05-04T07:55:53 | 353,973,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | import pandas as pd
import numpy as np
import itertools
from itertools import chain, combinations
import statsmodels.formula.api as smf
import scipy.stats as scipystats
import statsmodels.api as sm
import statsmodels.stats.stattools as stools
import statsmodels.stats as stats
from statsmodels.graphics.regressionplots ... | [
"gabor.toth@yale.edu"
] | gabor.toth@yale.edu |
e2f505d0488a2ed6b0f324d7951de077e1ea375f | 9530809bf3772806290305b82171faf84fe7c500 | /books/migrations/0003_add_page_year_cover_to_book_model.py | 2ff994507851925a0aa76a1af7ea759af2f6b741 | [
"Beerware"
] | permissive | tomasz-rzesikowski/books_poc | a764fbd939b5215bda7189290f63e9498874bcf5 | 9f253db1ef6c35fe91a6b8d65317a85532986344 | refs/heads/master | 2023-03-23T05:17:50.536208 | 2021-03-23T19:41:17 | 2021-03-23T19:41:17 | 349,726,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Generated by Django 3.1.7 on 2021-03-20 16:36
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0002_change_isbn_in_book_model'),
]
operations = [
migrations.AddField(
model_name='book'... | [
"tomasz.rzesikowski@gmail.com"
] | tomasz.rzesikowski@gmail.com |
61bd7c3ce1c3aa60ee4f2247f0294133557a21b5 | dcc82e255c50ddcae9489e2524e43c1d51dc0daf | /schematic.py | ffb16d56cf23290de52dd83ff0b3925c922349af | [
"MIT"
] | permissive | BenediktSeidl/fzpzf | 5f46bda1b09fd74a79892808ebe3541d01ec7162 | 69581beb36e9f9cc62713559f7212c9fc81ba462 | refs/heads/master | 2020-12-04T05:37:59.281232 | 2011-10-03T18:03:16 | 2011-10-03T18:03:16 | 2,462,234 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011 Benedikt Seidl
#
# 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 ... | [
"Benedikt.Seidl@gmx.de"
] | Benedikt.Seidl@gmx.de |
3464a1d12deb2429b216bf21a75ff381d2e395ba | 7e4b8098a108e8396961bb0b7c208914d41231be | /webscraper.py | 591fec861ee1ca3a07f485c8351921c6907e9822 | [] | no_license | marceloslacerda/webscraper | 2e4c20bee96f5cc228f052ec4928610e1a2dc3a5 | 11ecb899aa5b5d95f2c21c3fdaa76ee572ac3969 | refs/heads/master | 2021-04-15T04:42:58.401080 | 2018-04-01T20:36:08 | 2018-04-01T20:36:08 | 126,224,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #!/usr/bin/env python3.6
import json
import sys
from io import StringIO
from os.path import join
from urllib.parse import urljoin
from typing import Dict, Any, AnyStr
import requests
from lxml.html import parse
class PageError(ValueError):
def __init__(self, pname):
self.pname = pname
def process_pa... | [
"marceloslacerda@gmail.com"
] | marceloslacerda@gmail.com |
f4569cb68df5952191b3a6f8ad24a70db8240a73 | ac87ed7653f277c82ed80235d4598847e96102b4 | /scripts/date_parse.py | ee71750e7cd12b49575588c7145222009957e894 | [] | no_license | ucancallmealicia/aspace_data_audit_demo | da561017bae6287ac14c3b5a86055091ebd4bf36 | de96822d7af24c004d223772f2b0c4bd81f2ffb3 | refs/heads/master | 2021-08-07T05:45:09.214166 | 2017-11-07T16:34:05 | 2017-11-07T16:34:05 | 108,923,900 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from dateutil.parser import parse
import csv
csvin = input('Please enter path to input csv: ')
file = open(csvin, 'r', encoding='utf-8')
reader = csv.reader(file)
next(reader, None)
for row in reader:
date_expression = row[0]
try:
parse_it = parse(date_expression)
print(parse_it)
except Val... | [
"noreply@github.com"
] | ucancallmealicia.noreply@github.com |
376d6b0ccb6509c96d3c340f24977524379fc444 | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/secondaires/diligence/fonctions/diligences.py | 0c9dd2f3eb7a0ab9f84de366ec3c7a1105448876 | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2014 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# lis... | [
"vincent.legoff.srs@gmail.com"
] | vincent.legoff.srs@gmail.com |
4e22770993cda1b6d0349f0ad9c0668bd56e8065 | 3041138130a9feda9ee28166ec8c4b6dff593fac | /commandblog.py | 6daa24f16c9ac3ed47f11c58abfc54682b1e7f8c | [
"MIT"
] | permissive | IssaIan/commandlineblog | 1b23f68bbdd6eafed627d00654def752f52488f8 | 2cfe197ed85bec3a24b31f55d43e8d1c54d9f7e4 | refs/heads/master | 2020-04-10T16:14:17.991212 | 2018-12-10T12:15:20 | 2018-12-10T12:15:20 | 161,138,508 | 0 | 0 | MIT | 2018-12-10T12:35:52 | 2018-12-10T07:58:53 | Python | UTF-8 | Python | false | false | 3,273 | py | import datetime
comments = []
users = [
{
"name": "kenn",
"password": "1234",
"role": "admin",
"lastLoginAt": ""
},
{
"name": "issa",
"password": "1234",
"role": "moderator",
"lastLoginAt": ""
},
{
"name": "eric",
"pas... | [
"issamwangi@gmail.com"
] | issamwangi@gmail.com |
8fc69ea6d952ef1e4cfc879a40a170fe9c897d6c | d9fd9c6329461235f140393f1e934362d0f645df | /Unidad 2/Módulo 6/Sección 4/eje_09.py | e3cf1510314a26331adc0b550e3c13291c3325ad | [
"MIT"
] | permissive | angelxehg/utzac-python | e6b5ee988d1d76c549ab0fa49717eb042fa7d91f | fb88bcc661518bb35c08a102a67c20d0659f71db | refs/heads/main | 2022-12-02T11:16:27.134741 | 2020-08-14T19:38:33 | 2020-08-14T19:38:33 | 265,944,612 | 0 | 0 | MIT | 2020-08-07T21:23:53 | 2020-05-21T20:25:24 | Python | UTF-8 | Python | false | false | 375 | py | class MiClase:
pass
obj = MiClase()
obj.a = 1
obj.b = 2
obj.i = 3
obj.ireal = 3.5
obj.entero = 4
obj.z = 5
def incIntsI(obj):
for name in obj.__dict__.keys():
if name.startswith('i'):
val = getattr(obj, name)
if isinstance(val, int):
setattr(obj, name, val + 1)
... | [
"50889225+angelxehg@users.noreply.github.com"
] | 50889225+angelxehg@users.noreply.github.com |
0ef11b9c31f93e9991b2d05c6ea0958092ae630c | 523a47a9519b548680cdd2e100d7d3bd871158d1 | /DP/14003_가장긴증가하는부분수열.py | 51db0adb36e9f2d9d5b0785b5451e48605b6e6aa | [] | no_license | bernard-choi/Algorithm_Training | 19c2b3063a506d45931d8948de765efc53dd93aa | 4e16533d0cd9ea1e79485f0a6d34bc680064c111 | refs/heads/master | 2022-12-31T01:20:53.361406 | 2020-10-20T03:00:04 | 2020-10-20T03:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | n = int(input())
input_list = list(map(int,input().split()))
d = [1] * n
d[0]=1
for i in range(1,n): ## 기준은 i
# print(i)
max_value = 1
for j in range(0,i):
# print(j)
if input_list[j] < input_list[i]:
temp = d[j] + 1
if temp > max_value:
max_value = t... | [
"gafield8785@naver.com"
] | gafield8785@naver.com |
5fb0d6de6e07ff397e5a483f3a634518532a6424 | 427cb811a465677542172b59f5e5f102e3cafb1a | /python/print/printContent.py | 6a213db972abd85fe761285d5c7b5bbb5ae57cdd | [] | no_license | IzaakWN/CodeSnippets | 1ecc8cc97f18f77a2fbe980f322242c04dacfb89 | 07ad94d9126ea72c1a8ee5b7b2af176c064c8854 | refs/heads/master | 2023-07-26T21:57:10.660979 | 2023-07-20T20:35:59 | 2023-07-20T20:35:59 | 116,404,943 | 18 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,361 | py | # https://docs.python.org/2/library/optparse.html
# http://www.macworld.com/article/1132219/software-utilities/termfoldercomp.html
# https://automatetheboringstuff.com/chapter7/
# TODO: function to replace patterns https://docs.python.org/2/library/re.html
# TODO: add month and year to fileName
# TODO .bundle
import o... | [
"iwn_@hotmail.com"
] | iwn_@hotmail.com |
bb936e36f73b3022e5fc4ff938b2e48d6d89e8c1 | 4273f162abb12ef1939271c2aabee9547ac6afee | /studio_usd_pipe/test/ver.py | e3d449cb801732082a041c7c123caf699f61c94a | [] | no_license | xiyuhao/subins_tutorials | 2717c47aac0adde099432e5dfd231606bf45a266 | acbe4fe16483397e9b0f8e240ca23bdca652b92d | refs/heads/master | 2023-07-28T13:42:41.445399 | 2021-09-12T11:02:37 | 2021-09-12T11:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | input_data = {
"exe": [
"KONSOLE_EXE",
"/venture/source_code/subins_tutorials/studio_usd_pipe/bin/build-in/konsole/main.sh"
],
"name": [
"APPLICATION_NAME",
"konsole2.10.5"
],
"version": [
"KONSOLE_VERSION",
"konsole2.10.5"
],
"path": [
... | [
"subing85@gmail.com"
] | subing85@gmail.com |
c6815d6ecd0404d950bfe91a9e4cd29990e054be | f5a6f1ecc4e9ecdf0ef607707ca7d725cbe7aab2 | /day6_1.py | 3c10375d99157fc40a06d37d94021ca652bcb763 | [] | no_license | juliaschatz/adventofcode19 | 89911c0bc5f6b2dc72a3ac93d130a046c3bf7353 | c2a0fd0a4c53f7916444accb2a0bb25f66257b50 | refs/heads/master | 2020-09-27T07:34:52.581548 | 2019-12-17T22:03:39 | 2019-12-17T22:03:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | #!/usr/bin/python
with open("day6_input") as f:
orbits = {}
for l in f.readlines():
o = l.replace("\n","").split(")")
orbits[o[1]] = o[0]
def count(p):
if orbits[p] == "COM":
return 1
return 1 + count(orbits[p])
print(sum(map(count, orbits.keys()))) | [
"schat127@umn.edu"
] | schat127@umn.edu |
43b850a09eb1b800bf3a04b4a7b97fbca79ba6f3 | af64febbe756c6eef9201bbdec675d0956376ba8 | /day 6-nested loop/pattern 17.py | a202763a59f4904da3935b6d4bcca470da079ecd | [] | no_license | lokitha0427/pythonproject | 34bf1e6d301b5adc3330d79294ce3cf3aa170a22 | 7eac677378ac7d2f631466e98b646a0f928e3852 | refs/heads/main | 2023-08-19T21:01:58.297201 | 2021-09-21T08:08:14 | 2021-09-21T08:08:14 | 380,134,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #pattern 17
'''
1 3 5 7 9
3 5 7 9 11
5 7 9 11 13
7 9 11 13 15
9 11 13 15 17
'''
k=1
for i in range(1,6):
for j in range(1,6):
k=2*(i+j)-3
if k<10:
print(" "+str(k),end=" ")
else:
print(k,end=" ")
print()
| [
"noreply@github.com"
] | lokitha0427.noreply@github.com |
ec574f915bd463b70acdc5f5ee19c252bfd21b95 | f8221492ca64481c84680d46f617de6168719e7a | /frontpage/migrations/0002_auto_20180509_2100.py | 7631280fa55bcc3b9a999aed10cc5bb76f95bd18 | [] | no_license | JohannLieb/BD | 046a1e7e1be665c66fcc1c5e22f7f7fbf9d0e5a4 | c880fd697692fa3501afba52aa43031e5b253e75 | refs/heads/master | 2020-03-18T10:37:29.003428 | 2018-06-09T17:01:22 | 2018-06-09T17:01:22 | 134,623,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | # Generated by Django 2.0.4 on 2018-05-09 18:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('frontpage', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='orders',
options={},
),
]
| [
"gerbertwells101@gmail.com"
] | gerbertwells101@gmail.com |
9c477960dc9369da5c01e71b845d5177847a00cb | 8d582e36f3a86113d6eac6dec10d0c16b0c5595a | /ui.py | e84da1c8a2fd673d644229a36721a5804f443e6e | [] | no_license | jackz314/speech-synthesizer | c1a7e1d211e65101fc5f562fd9859b3f5fcfce25 | d42fb69d482a788b3d7157a83e0f8d258b9e80e3 | refs/heads/master | 2023-03-05T03:05:54.842687 | 2021-02-05T10:01:08 | 2021-02-05T10:01:08 | 332,403,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,278 | py | import multiprocessing
from multiprocessing import Process
import locale
import multiprocessing
import os
import sys
from multiprocessing import Process
from threading import Thread
import PySide2
import zmq
from PySide2.QtCore import QUrl, Qt, Signal, Slot
from PySide2.QtGui import QColor, QDesktopServices, QIcon, Q... | [
"zhangmengyu10@gmail.com"
] | zhangmengyu10@gmail.com |
16b0e2d4b028d65145d6962bb8cfe453c22ffd6b | 13d06305d64ee4705a8f9ba0c3801b89fa8c742c | /timeflow/placeholders/prediction.py | 987ef175ce54c7fe5722b8125fdc13d4f931554d | [
"MIT"
] | permissive | genesiscrew/TensorFlow-Predictor | 45fc43f5c85bac2fbc137fb6a23fc7e458248e3b | d129172b064d9e73e9118ac7164eb826a1263100 | refs/heads/master | 2021-01-20T05:53:25.935780 | 2017-05-02T03:05:10 | 2017-05-02T03:05:10 | 89,820,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | # Input and output placeholders for prediction placeholders
import tensorflow as tf
def input_placeholder(input_dim, name='inputs'):
"""Initialize input placeholder for prediction networks
Parameters
----------
input_dim : integer
Input dimensions
name : string
Placeholder name
... | [
"abhishekmalali@gmail.com"
] | abhishekmalali@gmail.com |
4229eb3d57d5f03b46b944d86271693266461296 | e73a2ff9458effe038ebabfe9db6cdaf0c5bc473 | /order_food_online_project/order_food_online/urls.py | c5771206f24064f500d0c904aa8232d203cf5dcb | [
"MIT"
] | permissive | MaksNech/django_order_food_ingredients | fcad5668b92b90776715d39e3f241577cf4364fa | 3578e36570ce99b25136942320fbcd7df956d435 | refs/heads/master | 2020-04-20T21:20:38.496108 | 2019-04-06T15:17:29 | 2019-04-06T15:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | """order_food_online URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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')
C... | [
"nechypurenko.shag@gmail.com"
] | nechypurenko.shag@gmail.com |
935fca9aeb9e49495333cec1cba3e0da776c35f3 | 3170ea59f57a214285ea3e0a12f839ca9c64a4f8 | /python/BOJ/1000/1305.py | c67ec2711280427d2e66e1587fbdb08c91a03a27 | [] | no_license | dahyun1226/ProblemSolving | 9d02bed487f19abfcbd79934b166a2e59cd51c69 | 523cc84d70efe84e4574de84e50161563ccdb6d6 | refs/heads/master | 2023-07-26T18:18:45.468548 | 2021-09-08T12:52:03 | 2021-09-08T12:52:03 | 255,228,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # 백준 온라인 저지 1305번: 광고
# fail의 이해
def makeFail(n: str):
fail = [0] * len(n)
matched = 0
for index in range(1, len(n)):
while matched > 0 and n[index] != n[matched]:
matched = fail[matched - 1]
if n[index] == n[matched]:
matched += 1
fail[index] = matched
... | [
"dahyun1226@naver.com"
] | dahyun1226@naver.com |
fc547eff6a8ec530b219d1a57a2a7005de4c279a | c3941a9a631511f7785f49ad0de8b584c3f4a146 | /dataset_utilities/create_yrly_datasets.py | ac020edcd6cca9258e4ff9b1f2fdef1b73850161 | [] | no_license | spurs229/advanced-ml-final-proj-original-paper-code | 02df3b469240b30d4431912f56b74b54713751e6 | b5c9016e5a093e531a5ec21bc0b4638d2451b6c1 | refs/heads/main | 2023-07-15T12:54:16.870585 | 2021-08-30T20:05:06 | 2021-08-30T20:05:06 | 400,199,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,875 | py | # from xml.etree import cElementTree as ET
import os
import re
def clean_string(s):
s = s.lower()
s = re.sub( '\s+', ' ', s ).strip()
sp =''
for w in s.split():
if len(w) < 20 and len(re.sub('[^a-z]+', '', w)) == len(w):
sp+=w + " "
# s = s.lower()
# s = re.sub('[^a-zA-Z\s... | [
"neta-caspi@MacBook-Pro.local"
] | neta-caspi@MacBook-Pro.local |
fd2f69e09e71f5891978da89ed3adc6501a7dd84 | a6ba42d4c838a2e1790984f12add463293bae942 | /todolist/urls.py | 5dc33cb0775ec3c9f346137650055ffe6998d0a8 | [] | no_license | santhoshcharan-001/todolist | 9614abb0d03d9d891d02a78f7d89486e07774bca | cd0fe620a784aefdcce174285f310b9a8f8af927 | refs/heads/main | 2023-08-01T22:49:43.474760 | 2021-09-15T09:41:35 | 2021-09-15T09:41:35 | 393,067,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | """todolist URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"2019287@iiitdmj.ac.in"
] | 2019287@iiitdmj.ac.in |
cd6178fde5a2f050f81387635719ed84a41f15cb | 8218b3ba6abf291bad3f29b1dce3cd1c9bb51a27 | /doctype/contract/contract.py | 3a0d291a55f1b1a77376215d04470e89b53cafab | [] | no_license | Kozlov-V/contracts | 1ec3c7a6e794789b2fde4f426f4369008c1c53f8 | 8928c1bdbe4eb1f9a5e2db8f263e150b81865525 | refs/heads/master | 2016-08-12T19:08:51.832553 | 2016-01-13T20:31:34 | 2016-01-13T20:31:34 | 49,599,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,039 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import flt, getdate
from frappe import _
from frappe.model.document import Document
class Contract(Document):
def ge... | [
"kozlov-ter@yandex.ru"
] | kozlov-ter@yandex.ru |
820c2bd2006c8b43d126a6d5226df4dd461d5814 | b6ef959b538e4bffec92998a553175248bd72a77 | /06-Machine_Learning/brain.py | 1376cf1f411443947b708acf7499cd6bdf52de49 | [
"MIT"
] | permissive | suzynakayama/udemy-python-dev | 9e384e3683a300f07c14d2a5862003038a4b169c | fbb35d00f94296da1281e6042a4efe506f79dddb | refs/heads/main | 2023-02-10T11:50:47.650049 | 2021-01-07T22:46:52 | 2021-01-07T22:46:52 | 307,135,927 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import os
from imageai.Classification import ImageClassification
# get current directory
execution_path = os.getcwd()
prediction = ImageClassification()
prediction.setModelTypeAsMobileNetV2()
prediction.setModelPath(os.path.join(execution_path, "mobilenet_v2.h5"))
prediction.loadModel()
predictions, probabilities = ... | [
"suzy.nakayama@gmail.com"
] | suzy.nakayama@gmail.com |
0265f009c0e4e8d5a39c8b1b2673b159407c7b02 | 9868ee5c9b121097f824dac306b678a2761498af | /blog/models.py | dc0a3603c0a5f7c86bdbd2ee46799a8bf7570834 | [] | no_license | ShaikhHussain/portfolio_project | c5fbcbda4ea59f4db41d329de96c6b65eaf5bacc | 3064008d9d6f6083b65d5ab13c4ae2c230f76910 | refs/heads/master | 2020-07-08T20:08:41.462786 | 2019-08-22T09:45:42 | 2019-08-22T09:45:42 | 203,763,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from django.db import models
# Create your models here.
class Blog(models.Model):
title = models.CharField(max_length=200)
publish_date = models.DateTimeField()
image = models.ImageField(upload_to='images/')
blogs_body = models.TextField()
def __str__(self):
return self.title
def s... | [
"abdulshaikhhussain@gmail.com"
] | abdulshaikhhussain@gmail.com |
87dcdc1f187f0619115ef51295c60468005bd5f3 | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/itertools_filterfalse.py | 4db9836daa58ad384b41f161c27d4886ab93f22c | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # itertools_filterfalse.py
from itertools import *
def check_item(x):
print('Verifica:', x)
return x < 1
for i in filterfalse(check_item, [-1, 0, 1, 2, -2]):
print('Trattengo:', i)
| [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
9b5a036d68b3466bed0b435be8c763ad69490521 | 10b1f4d80f4453972918f8de42a5b6212047dac9 | /submissions/exercise4/doron/main.py | 86994c093b9644a9187cdc9a110e5a4de9ef497a | [
"MIT"
] | permissive | tjmonsi/cmsc129-2016-repo | e6a87cab1c6adb093f9b339271cf3e8d2c48726c | 5a1833265b17f9079d5a256909296d363db9179b | refs/heads/master | 2021-01-22T09:55:37.484477 | 2017-06-01T16:24:19 | 2017-06-01T16:24:19 | 52,767,672 | 0 | 14 | null | 2017-06-01T16:24:20 | 2016-02-29T05:55:01 | JavaScript | UTF-8 | Python | false | false | 594 | py | #!/usr/bin/python
import tokengenerator
import grammar
import execute
filename = input("Enter Filename: ")
tokengenerator.tokengenerator(filename)
print("\n\nCHECK GRAMMAR\n\n")
grammar.addGrammars()
ret = grammar.checkGrammar("START", 0)
if len(ret.grammar) >0:
print("GRAMMAR CONSTRUCTION")
for gram in ret.... | [
"mddoron@up.edu.ph"
] | mddoron@up.edu.ph |
da159561015fdb97e791d62db109c2cf4ba71be4 | cd6694d484744fe5be8ccdaf9be50005fb6e956b | /spoj/even_numbers.py | a5a94ac4026ababeb9ec054eaf8276c53d52aba7 | [] | no_license | MrDm1try/Euler | aa40d8d52774b79c76b332306b43f28da8a4fba1 | ef311da6072c953284606b09e1117cf2f3837033 | refs/heads/master | 2020-02-26T15:03:32.842419 | 2018-04-11T16:00:13 | 2018-04-11T16:00:13 | 83,286,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | def revert(num):
res = 0
while num:
res <<= 1
res |= num & 1
num >>= 1
return res
n = int(input())
numbers = []
for i in range(n):
num = int(input())
numbers.append(num if num % 2 == 1 else revert(num))
for i in numbers:
print(i) | [
"dmr@kamstrup.com"
] | dmr@kamstrup.com |
a433ae84fb074b61840e19b067915bc4fc1b848c | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/patching/zun_compute_api/provideraccount.py | a338bd5fd861592d8f7f624b5913d613b42fd69c | [] | no_license | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 1,679 | py | def provideraccount_update(self, context, container, *args):
if direct_action:
return self.manager.provideraccount_update(context, container, *args)
else:
return self.rpcapi.provideraccount_update(context, container, *args)
def provideraccount_show(self, context, contai... | [
"Mr.Qinlichao@hotmail.com"
] | Mr.Qinlichao@hotmail.com |
4d845798bb70aeb5b3dc8d3806363ab292d44cc0 | 037bd176ab73aeaf139be5811a7605167d3032e0 | /app/server.py | 09be70a52e9832db64e841fd4cbebe9401a2d94e | [] | no_license | MoyaCar/BugsEyesDetector | 7db319c3c1c63dbaef45cf1b7859f39adcbcc9d0 | 1a89cef03205a1cb4b3cb7b743a7e579a7d84941 | refs/heads/master | 2022-07-15T08:57:43.956593 | 2019-09-30T01:54:01 | 2019-09-30T01:54:01 | 211,749,310 | 0 | 0 | null | 2022-06-21T23:00:13 | 2019-09-30T01:10:40 | Python | UTF-8 | Python | false | false | 2,346 | py | import aiohttp
import asyncio
import uvicorn
from fastai import *
from fastai.vision import *
from io import BytesIO
from starlette.applications import Starlette
from starlette.middleware.cors import CORSMiddleware
from starlette.responses import HTMLResponse, JSONResponse
from starlette.staticfiles import StaticFiles
... | [
"carlosmoya@gmail.com"
] | carlosmoya@gmail.com |
866315edcd99aed6f352e4f094a4bec0b268966f | 8fb3dad615426e7d7dd5b37f385138f38c7dedf2 | /spark-1.1.0/spark-base/files/etcd-service/Constants.py | 805270223cb0bdb58b58a88bd0733445a6e227aa | [
"Apache-2.0"
] | permissive | LuqmanSahaf/etcd-spark | 53ee6c0d3d7c315e99f9c9dd8b7a214efbe6fd3b | 0f3b9db820b243645365cd8a442943611be758ef | refs/heads/master | 2021-01-22T02:34:18.542297 | 2014-10-29T10:49:52 | 2014-10-29T10:49:52 | 24,637,843 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | ETCD_PORT = '4001'
ETCD_KEYS_DIRECTORY = 'etcd_spark/etcd_service'
HOSTS_FILE = '/etc/hosts'
TTL=60
| [
"lgsahaf@gmail.com"
] | lgsahaf@gmail.com |
2a7a72f33498109a975dad72cce5024127501aae | 0eaffa74bf33d54a30a16ca85a2771090a225747 | /apps/hosts/tests.py | 6121c0f272b1909c8e90e972fbea59fd54b4f9e6 | [] | no_license | tom2jack/fdommp | b6e1466df3ae041f730cb9c7a0f6257b6902023a | 264150666c621268d0d05686cc445ace91993419 | refs/heads/master | 2022-04-12T23:42:52.255825 | 2020-03-05T08:37:08 | 2020-03-05T08:37:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | import sys
import os
from django.conf import settings
pwd = os.path.dirname(os.path.realpath(__file__))
sys.path.append(pwd + "../../")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "fdommp.settings")
import django
django.setup()
# git
# from git import Repo
#
# url = 'https://github.com/fq47523/fdommp-dockerfi... | [
"289557905@qq,com"
] | 289557905@qq,com |
629f6895bc1d0a0101bef7c2b69ca4bb864c172b | 83f85eb8247e994ccdd08c6caac359fd10147478 | /hips.py | 2f24596186abf8ffb0426d95f3aefc78f707afb4 | [] | no_license | bufferbandit/hips | 0e9ef021fa8a36b0cd043d287a9dcf78270acc4a | 822257aafc169b8f4120cf2ffa1fe500fd5aba9b | refs/heads/master | 2020-04-04T16:29:28.926782 | 2020-01-27T09:39:08 | 2020-01-27T09:39:08 | 156,080,248 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | # H.I.P.S, by BufferBandit.
# Hide your HTML source code by encoding it with tabs and spaces...
import binascii
class HIPS:
def __init__(self,raw_html):
self.space,self.tab = " "," "
self.raw_html = raw_html
def text_to_bits(self,text, encoding='utf-8', errors='surrogatepass'):
... | [
"noreply@github.com"
] | bufferbandit.noreply@github.com |
5e373df7e1c7c7ded6daed67b822f087b1d68048 | 290e455134baa42a177d16564442524d6152ef40 | /src/.ipynb_checkpoints/model_maker-checkpoint.py | 8fbb4f92490906adcce68441768253d09b9b5931 | [] | no_license | hoffm386/customer_churn_project | caeeef745e036707723a056b2966e19c4ce261ee | 8038e34ebd31dd5296be49b57bf4d6d54f2dc55a | refs/heads/master | 2021-05-24T16:12:26.486060 | 2020-03-31T04:24:48 | 2020-03-31T04:24:48 | 253,650,393 | 0 | 0 | null | 2020-04-07T00:48:00 | 2020-04-07T00:47:59 | null | UTF-8 | Python | false | false | 3,470 | py | import pickle
import numpy as np
import pandas as pd
from sklearn.linear_model import LogisticRegression
from sklearn.neighbors import KNeighborsClassifier
from sklearn.ensemble import RandomForestClassifier, StackingClassifier, GradientBoostingClassifier, ExtraTreesClassifier
from sklearn.preprocessing import Standard... | [
"jarodc333@gmail.com"
] | jarodc333@gmail.com |
c08920406c3451c83af6edf3fa87dfab8ec032c3 | 0709766ad33c3d46f0b91afb65acce1c2188d777 | /tools/export_serving_model.py | 368ee157599eb08087f4f344b8cb09aa84ab0138 | [
"Apache-2.0"
] | permissive | netidol/PaddleDetection | 37a511f3cf93d929ad986317b3294dcee95c9f62 | 365d81367bf3f42a4b1941a89e84000dc8b14223 | refs/heads/master | 2021-06-28T16:03:29.069173 | 2021-04-22T12:34:15 | 2021-04-22T12:34:15 | 223,561,417 | 0 | 0 | Apache-2.0 | 2019-11-23T09:09:26 | 2019-11-23T09:09:26 | null | UTF-8 | Python | false | false | 3,991 | py | # Copyright (c) 2020 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | netidol.noreply@github.com |
747ca14a18296d4beabd473f554d3da345152774 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/sok2_20180606104430.py | e3d724e0922456fec8afc2db0669485e5ed3545c | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | row1 = [0,0,0,0,0,0,0,0,0]
row2 = [0,0,0,5,0,6,0,0,0]
row3 = [0,0,1,0,0,0,0,3,0]
row4 = [0,9,5,0,0,0,2,0,0]
row5 = [0,0,0,0,0,1,6,0,7]
row6 = [1,0,6,0,0,9,0,0,5]
row7 = [7,0,0,8,0,3,9,0,0]
row8 = [0,3,8,9,0,0,0,2,0]
row9 = [0,5,0,0,2,0,7,0,0]
print(row1)
print(row2)
print(row3)
print("")
print(row4)
print(ro... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
1c1722d15f2ee8dde90347013662ca30cd87c6a3 | 0269037acc7785a58f8786c60be8ccea8ef3f6f3 | /indico/modules/attachments/models/folders_test.py | 71309414a40429ae60741e7457815421438a6ce8 | [
"MIT"
] | permissive | bebusl/cbnu_indico | 1ffa7042a1f706da953214b39827cbdbb1387cce | 60b37c2bf54cd7f17092b2a9ad21311762729601 | refs/heads/master | 2023-01-18T22:22:09.655751 | 2020-12-02T09:04:06 | 2020-12-02T09:04:06 | 281,068,896 | 0 | 0 | MIT | 2020-07-20T09:09:44 | 2020-07-20T09:09:43 | null | UTF-8 | Python | false | false | 1,890 | py | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from indico.modules.attachments import AttachmentFolder
def tes... | [
"adrian.moennich@cern.ch"
] | adrian.moennich@cern.ch |
4261d8986f56637cd42771daa6474eafbddebbf2 | 384e9cfef73a8f3374cb048ee608d3268b739d66 | /lora_abp/config.py | 715e0de47f741d1c653185603e0c75e78c895abd | [] | no_license | rbraggaar/sensor-city-delft | 005ed7ccf60e6420d73903c48ac497dc6f11eb54 | 9b580a7232e010ed70512eccb7aebe2117461cad | refs/heads/master | 2021-01-19T23:32:11.160937 | 2017-06-12T13:17:37 | 2017-06-12T13:17:37 | 88,988,205 | 16 | 9 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | """
Change these for your own keys (see https://loradeveloper.mendixcloud.com/)
Type has to be string
"""
DEV_ADDR = 'dev addr'
NWKS_KEY = 'network shared key'
APPS_KEY = 'applications shared key'
| [
"r.c.braggaar@outlook.com"
] | r.c.braggaar@outlook.com |
3b15be8b188528ce122516e650d067191f2ec45e | 47f4ba73b25ebc1e920f85295c51171c11ec78f4 | /Tkinter/ProgessBarHttpDownload.py | cb4c017af1e3f71b65704c54ad442c134f1d06e9 | [] | no_license | pedroazcona/PythonLearning | 45e04e76d94bfea304e1924d2f7661ed497a5312 | 514e2851defce4cf911d338542c7f738167f2a57 | refs/heads/master | 2021-04-30T15:36:48.423600 | 2018-02-13T10:39:04 | 2018-02-13T10:39:04 | 121,242,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 16 09:42:36 2018
@author: poaa
"""
import tkinter as tk
from tkinter import ttk
from threading import Thread
from urllib.request import urlretrieve, urlcleanup
class Application(ttk.Frame):
def __init__(self, main_window):
super().__init__(main_... | [
"pedroazcona@gmail.com"
] | pedroazcona@gmail.com |
7b57e8d45ffc337b723d2242be7cf1abb54c1482 | 0f1dc76f801a307c0566c8fe610323bdcaa700ff | /nbsearch/Test/nb_search.py | 4bf35612f93750f898a5fdabda085db1205bb5c7 | [] | no_license | jkitchin/nb_search | 3843d0b8ed810de902a7cf193b1b523707229c23 | 50179495e71a0ba7b47a0845c881abf1da52c020 | refs/heads/master | 2022-12-04T20:53:53.033087 | 2020-08-28T14:30:56 | 2020-08-28T14:30:56 | 291,049,650 | 0 | 0 | null | 2020-08-28T13:09:34 | 2020-08-28T13:09:34 | null | UTF-8 | Python | false | false | 11,403 | py | import sys
import os
from IPython.display import HTML, display
import nbformat
import argparse
import re
import pandas as pd
# HELPFUL FUNCTIONS
def search_util(root='.'):
"""Recursively find all ipynb files in a directory.
root - This is the directory you would like to find the files in, defaults to cwd"""
... | [
"59749099+loevlie@users.noreply.github.com"
] | 59749099+loevlie@users.noreply.github.com |
779f544e7eb9cb8e40c4b4995687d4dfb4bea3fc | 74479f8586558f8a95a00c28b14d0e1421d6dc50 | /ping_thread.py | 66b91faf477237b37c4a9092e70b71a2f1a23b5d | [] | no_license | xiaoyecent/ping_threading_Queue | 39b8b6023fa5efd2b4e53b00b47a9a8e77bac96a | 625fd5f542afff12dff7083a1c36dccc33ad690f | refs/heads/master | 2021-01-21T10:59:25.422929 | 2017-03-01T03:49:02 | 2017-03-01T03:49:02 | 83,507,654 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | '''
Created on 2017-2-27
@author: xiaoye
'''
#coding: utf-8
import thread
import time
from subprocess import Popen,PIPE
def scan_ip(ip):
process = Popen('ping -c 2 ' + ip, stdin=PIPE, stdout=PIPE, shell=True)
data = process.stdout.read()
if 'ttl' in data:
print '%s is live ,now time is %s' % (ip, ... | [
"biqqanquan@163.com"
] | biqqanquan@163.com |
fa168001eed0986c591712b65a78378669b9066b | d7851c13caeec784de188e97c912ab3edb2b10fd | /classifier/__init__.py | e265178fd1e40900289a101d7ed781fe05b19502 | [] | no_license | caozhang1996/CS231N_Two_Layer_Neural_Network | 5b7f2737b460ac3f50b11527efe63dfc03aac9d0 | 4a3d1027c20210f22ae538cb69a03aaedb175d2c | refs/heads/master | 2020-05-24T20:53:54.115208 | 2019-05-19T10:50:07 | 2019-05-19T10:50:07 | 187,464,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 4 16:43:54 2019
@author: caozhang
"""
| [
"caozhang1996@gmail.com"
] | caozhang1996@gmail.com |
42b4ad526ebe9485065450c2f0c41f7a0afd5a4f | 5d98fd658cff0fd5aa5b4f912d34dc7610f6980a | /src/core/cli/commands/__init__.py | d4d506dcbcac52d934f377536ff4f8c2cc7a4aee | [] | no_license | lxbrvr/aiohttp-chat | 6de33e98a5537dbe1439b34178a01a618a36e201 | d5cb8fa3c3f294c7c00d0a09b73ddd06342efda9 | refs/heads/master | 2022-06-19T10:42:58.952457 | 2019-09-18T09:40:09 | 2019-09-18T09:40:09 | 208,893,619 | 5 | 0 | null | 2022-05-25T02:58:24 | 2019-09-16T20:38:58 | Python | UTF-8 | Python | false | false | 123 | py | command_classes = [
'core.cli.commands.clean_db.CleanDbAppCommand',
'core.cli.commands.run.RunServerAppCommand',
]
| [
"to100100100@gmail.com"
] | to100100100@gmail.com |
92f3ee7e26c3ee1406bd8042cee27fc0d7f8f4c2 | d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189 | /tags/pygccxml_dev_1.0.0/unittests/plain_c_tester.py | c26b2581fbaca21e9f350c66801aeb71c9acd90f | [
"BSL-1.0"
] | permissive | gatoatigrado/pyplusplusclone | 30af9065fb6ac3dcce527c79ed5151aade6a742f | a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede | refs/heads/master | 2016-09-05T23:32:08.595261 | 2010-05-16T10:53:45 | 2010-05-16T10:53:45 | 700,369 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import unittest
import autoconfig
import parser_test_case
from pygccxml import utils
from pygccxml import parser
fr... | [
"roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76"
] | roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76 |
a40856233a9964baf4c68babb5fface0b95472e3 | 045cb1a5638c3575296f83471758dc09a8065725 | /harpiya/service/model.py | d5f3733a91592649bfbd91be8592000f5bcf3b43 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,683 | py | # -*- coding: utf-8 -*-
from contextlib import closing
from functools import wraps
import logging
from psycopg2 import IntegrityError, OperationalError, errorcodes
import random
import threading
import time
import harpiya
from harpiya.exceptions import UserError, ValidationError, QWebException
from harpiya.models imp... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
e5853a5dc4dcb39d89592c1c7218567fabf657b8 | ab7909a49f372c82baa1e8031eb46a1a913796aa | /selenium_spider.py/src/driver.py | c449e19872e9d30d26625008a2b70914ba883c4e | [] | no_license | Bortolosso/extract-data-tjsp | 5fde991cd6e8f71e86f6b4ee686bac9659d3deaf | 2a8c94a0d1e5582ccde1353fcaa795c77adf0ebc | refs/heads/master | 2020-06-14T05:55:40.530546 | 2019-08-16T13:45:15 | 2019-08-16T13:45:15 | 194,918,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | #!/usr/bin/python -tt
# coding: utf-8
from selenium import webdriver
class Driver:
def __init__(self):
local_dir_pdf = "/home/bortolossohurst/Documents/ambv_boot/selenium_spider.py/temp/pdf"
local_dir_driver = "/home/bortolossohurst/Documents/ambv_boot/selenium_spider.py/driver/chrom... | [
"bortolossojoao@gmail.com"
] | bortolossojoao@gmail.com |
5d5b5c72b46a23b4384971602e86d7719b885892 | b8bde9a346685e1428a8284f7ffb14f15e35fb78 | /deploy/pinax.fcgi | 43f92ff0c8e98da7b3b5d94b6afd6d72456e3420 | [] | no_license | bhaugen/pinax-groups-experiments | 9302762c8e7379f067385a7280ef9af4dc4c5e8f | d520ccbfdb8228e10b6e547df6f64106caa6f0ec | refs/heads/master | 2020-04-05T22:49:04.750605 | 2009-11-13T19:36:20 | 2009-11-13T19:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | fcgi | # pinax.fcgi is configured to live in projects/pinax_groups/deploy.
import os
import sys
from os.path import abspath, dirname, join
from site import addsitedir
sys.path.insert(0, abspath(join(dirname(__file__), "../../")))
from django.conf import settings
os.environ["DJANGO_SETTINGS_MODULE"] = "pinax_groups.setting... | [
"bob.haugen@gmail.com"
] | bob.haugen@gmail.com |
3552b52bbdcda04755cd1fd787a1dd6a4b657cdb | f292e51314479f0d8195818667b7f5a7a2f1b410 | /Python/pset6/problems-sentiments/analyzer.py | 3538abacc3b9c5e7170e941a3a8f321a804ea6c6 | [
"MIT"
] | permissive | NSKBpro/cs50-solutions | d3f906bcef614dcbcb55ce46d05b62d3249bbcb8 | ebb13dc4861d85e6c64b235bbc6b1313c290ace5 | refs/heads/master | 2020-03-19T03:48:38.567215 | 2017-12-22T23:26:54 | 2017-12-22T23:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import nltk
class Analyzer():
"""Implements sentiment analysis."""
def __init__(self, positives, negatives):
#Init sets
self.positives = set()
self.negatives = set()
#Read positive words from data set
with open(positives) as words:
for word... | [
"alekski64@icloud.com"
] | alekski64@icloud.com |
4958e340325e2b1f63b19ed5aa66405c1d5d7cf5 | 3b7930868ea6b052e10202d4ba723de753d71853 | /todoauth/todo/urls.py | d431f23916cbf4a5d3ed6c35543e28d325708219 | [] | no_license | Daniel3M/ToDoAuth | c6b444ac485d8e5048f480856f14f7a6d6a9c599 | abf2ca13ddf55576e58ae268cc12f3832694638f | refs/heads/master | 2023-06-24T21:43:12.774994 | 2021-07-18T08:54:29 | 2021-07-18T08:54:29 | 387,129,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | from django.urls import path
from .views import CustomLoginView, TaskList, TaskDetail, TaskCreate, TaskUpdate, DeleteView, RegisterPage
from django.contrib.auth.views import LogoutView
urlpatterns = [
path('login/', CustomLoginView.as_view(), name='login'),
path('logout/', LogoutView.as_view(next_page='login')... | [
"daniel.muhammad96@gmail.com"
] | daniel.muhammad96@gmail.com |
e5bd7290b39a8424517b15b4e042703972bc4d2b | be29d94b112ac4fd687d84dcc0d40c4a1557687d | /utils/adni_utils.py | fb14daf62c174df94e75f2515f442e6d88c7ed8d | [] | no_license | Amerosa/Multimodal-Alzheimer-s | 10d5cefe974cbf7d7a4506b72c7c1c9fb8f06516 | 7118d4ce99f24aa12ca6da1f497d74c21d59af1f | refs/heads/master | 2023-01-01T09:12:48.493480 | 2020-10-21T22:34:17 | 2020-10-21T22:34:17 | 306,163,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | from utils.basic_utils import get_project_root
import csv
def parse_adni_subject(pth):
"""Takes a standard adni nii.gz file name, splits it up and returns the
subject id and session id information
"""
return pth.split('_')[:2]
def generate_mappings():
"""
Parses the labels file and makesa dic... | [
"giuseppe.volpe.grossi@gmail.com"
] | giuseppe.volpe.grossi@gmail.com |
50bbc66e4a19925e3c5c7c5c929e89be44671cac | fd32b1f3d3003a70e7220482d34e2c20c16940b3 | /node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | a69878fb189bafde4c65b6e4fb6abd1119b502c2 | [
"MIT"
] | permissive | predeezRav/CountriesGroup2 | 12a6fe51e7ac63f277ecc7e4d0292fe1b59f8684 | 6b231f6baf9688d4fd9f31297eb5734d2e4bb42f | refs/heads/main | 2023-03-15T11:39:52.270571 | 2021-03-16T08:20:47 | 2021-03-16T08:20:47 | 348,105,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,059 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"prat0025@edu.ucl.dk"
] | prat0025@edu.ucl.dk |
96eaba8baa60786fa762b5a9ed86e115dfb96fb2 | b5ba12d4dcb240ba6069964380f6a3aede79f448 | /mixins/simulation.py | 7ccaefcd9da8089d5c296d7cfa10fab98b594edc | [] | no_license | 70-6C-65-61-73-75-72-65h/erp | 9e1a6f20a15d16794043f583022b1e04a9435b20 | 0e088c767d0d0c0e5515be703ed71252d55b70d9 | refs/heads/master | 2022-03-27T21:12:52.305257 | 2019-12-17T15:41:59 | 2019-12-17T15:41:59 | 224,333,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # from datetime import datetime
# # from string to datetime: time.strptime
# # from datetime to string: time.strftime
# def today():
# # simulational date_today:
# def datetime_date_today():
# """ only date returned """
# month, day, year = today()
# datetime_str = f'{month}/{day}/{year}'
# datetim... | [
"max.ulshin.max@istat.com.ua"
] | max.ulshin.max@istat.com.ua |
6f34903b427e2c0394314d9a1fb819e582ee7026 | 590de10b365aeb28cfffde5fde02fd36ef18e9d5 | /src/covcov/infrastructure/db/schema/company_domain.py | cc294456d65b0a8cf27cd3028b15d693ed82a429 | [] | no_license | W-Alphonse/covid-app | 1b0c6b4ef19d274016a97c65eea557f1327caadf | 5f8b3953c6fd5c2bd2afd3077a20c90aa1feb396 | refs/heads/master | 2023-07-23T15:23:31.287461 | 2021-05-13T21:10:44 | 2021-05-13T21:10:44 | 321,175,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,138 | py | import datetime
from sqlalchemy import Column, Integer, Unicode, String, ForeignKey, Boolean, DateTime, update
from sqlalchemy.ext.declarative import DeclarativeMeta
from sqlalchemy.orm import relationship, Session
from sqlalchemy_serializer import SerializerMixin
from sqlalchemy_utils import EmailType
from sqlalchem... | [
"wharouny.tp@gmail.com"
] | wharouny.tp@gmail.com |
f27c50dc81bfd9c7856aaa1f0f9af9ce8f819815 | 1596ebabdc32196d50e2cd9f776b0aaf460f28d5 | /oldScripts/20181002_bgSub_ClusterTrack_ImStack.py | 6dd96a66c179e24a1c6f1bf36102662ced5f48f5 | [
"MIT"
] | permissive | crackmech/flyclimb | 1394a81ef7fae98c13eaadc18a36543a378571c1 | 551621d1d2747d22b407a6b640d7ccaf680b53e5 | refs/heads/master | 2021-04-26T22:38:34.720421 | 2019-09-21T08:30:51 | 2019-09-21T08:30:51 | 124,124,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,438 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 14 18:46:57 2017
@author: aman
"""
import cv2
import os
import numpy as np
import re
from datetime import datetime
import Tkinter as tk
import tkFileDialog as tkd
import multiprocessing as mp
import time
import glob
#import trackpy as tp
import rando... | [
"crack.mech@gmail.com"
] | crack.mech@gmail.com |
977da3579e8f87f1655e64f2de8938f2c1adc395 | 1207d50126d4d59966573927c5eadd94db6aeb59 | /svggen/library/Rectangle.py | cb7e78caee0de5d274f55684375712ff71248bc0 | [] | no_license | christianwarloe/robotBuilder | aee03c189972f1d305c6e13d106b362b5d26d187 | 3f8fbc267ac7b9bbae534d1208278541a7b5eaa5 | refs/heads/master | 2021-06-13T02:42:24.834816 | 2017-04-07T01:01:52 | 2017-04-07T01:01:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | from svggen.api.FoldedComponent import FoldedComponent
from svggen.api.composables.graph.Face import Rectangle as Rect
from svggen.api.composables.GraphComposable import Graph
from svggen.api.ports.EdgePort import EdgePort
from svggen.api.ports.FacePort import FacePort
class Rectangle(FoldedComponent):
_test_param... | [
"christian.warloe@gmail.com"
] | christian.warloe@gmail.com |
e5d6877f5ad971d0129f929e76feae87e1c15651 | 9b37fdf52cb2eb9795bb7cead33dd0ae053fa80f | /catkin_ws/src/opencv_img_processing/src/opencv3_parse_camera_data_colorspaces.py | e7486324a6b91977095b29a3362d872fc4810eba | [
"MIT"
] | permissive | a-yildiz/ROS-Simple-Sample-Packages | 9d3e01371e750a9489eb20487f524b380e34e0f7 | eb6b18adcd1fe26e2b5e644c42922e8102867cd9 | refs/heads/master | 2023-08-22T17:18:52.148201 | 2021-09-19T07:29:43 | 2021-09-19T07:29:43 | 390,817,521 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | #!/usr/bin/env python3
import rospy
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
import cv2
"""
Run this script/node after `roslaunch opencv_img_processing turtlebot3_and_cone.launch`.
When you look at `rostopic list`, you can see a topic named `/camera/rgb/image_raw`.
After inspecting `rost... | [
"yildiz@stanford.edu"
] | yildiz@stanford.edu |
bc5ad557d4f626a81e3b4e15f4bf084bb239d1a7 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/show_asset_detail_request.py | 310a07633cd81850d55c262f5845bd24add26eb3 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowAssetDetailRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
061a12b6590aeeeea3ffcea01282b6cc2a5fe06b | 1bc6195a6d6577266c5722854b6342b22f5d914d | /BusInquirySystem/settings.py | 4defc6751684f62ac237cef63e400d3243485d29 | [] | no_license | zhangfangyong/BusInquirySystem | fe2711ce893097246646b3ea425e7de36e0c8107 | 84c5c9055db1c84b15d4d4f7d8ccd7d97deddef9 | refs/heads/master | 2020-07-31T23:23:39.217615 | 2019-10-13T13:04:42 | 2019-10-13T13:04:42 | 210,785,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,244 | py | """
Django settings for BusInquirySystem project.
Generated by 'django-admin startproject' using Django 2.2.5.
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/
"""
imp... | [
"15209805296@163.com"
] | 15209805296@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.