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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f4026d972f244c0391ff8f24625e881b3fc284a | 1bf7f5fdfc5e7dbbc5ba14698ff488aa76b34d58 | /virtual/bin/gunicorn_paster | 3977588403c354347f27e635608040cf5dca8a00 | [
"MIT"
] | permissive | Brian23-eng/News-Highlight | ca86fab23ebfc429b31624c36ac7c3520d46966d | 19c8816cbcf2980a381d01788ba604cc85c8ebaa | refs/heads/master | 2021-06-25T02:05:01.848783 | 2019-10-17T08:09:19 | 2019-10-17T08:09:19 | 214,452,153 | 0 | 0 | MIT | 2021-03-20T01:54:54 | 2019-10-11T14:06:20 | Python | UTF-8 | Python | false | false | 282 | #!/home/brian/Documents/Core/Python/Flask/News-Highlight/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"b.odhiambo.bo@gmail.com"
] | b.odhiambo.bo@gmail.com | |
301248baf3e0ec9b7f224e9ddc8096a28fe52d4c | 6ce6e78391e957fabf47a2242cb0a337f419a1fe | /Chapter 3/zeroDivide.py | 10b8be0c2898b90b67324319d6c1ae6348ab2c36 | [] | no_license | bj-mckay/atbswp | 3e6d84fc58cff640acc6d6236b65f19eb378d63c | be46902f6f2ae36b85fde91964bdc99187c4186a | refs/heads/master | 2020-12-29T23:29:07.200194 | 2020-09-02T20:22:14 | 2020-09-02T20:22:14 | 238,776,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | def spam(divideBy):
try:
return 42 / divideBy
except ZeroDivisionError:
print('Error: Invalid argument')
print(spam(2))
print(spam(12))
print(spam(0))
print(spam(1)) | [
"brad.goetsch@gmail.com"
] | brad.goetsch@gmail.com |
92467aabe2d3e0851ea17a982715577fa57c6fde | 4aa6b7c3a5ae3817007e09ad1289c1e9f7a355c0 | /dynamic_programming/best-time-to-buy-and-sell-stock-iv.py | 57dc30b64f80d1c90423152d8d4b8f9a47789989 | [] | no_license | liuhuipy/Algorithm-python | 8f5143e06cf5fa2de2c178e3ba9e5fd12b9bcdf7 | 4e92a0b874f956d1df84d1493f870a5d1f06cde2 | refs/heads/master | 2021-06-03T04:19:01.946149 | 2021-01-08T07:44:40 | 2021-01-08T07:44:40 | 99,838,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | """
买卖股票的最佳时机IV:
给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。
设计一个算法来计算你所能获取的最大利润。你最多可以完成 k 笔交易。
注意: 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。
示例 1:
输入: [2,4,1], k = 2
输出: 2
解释: 在第 1 天 (股票价格 = 2) 的时候买入,在第 2 天 (股票价格 = 4) 的时候卖出,这笔交易所能获得利润 = 4-2 = 2 。
示例 2:
输入: [3,2,6,5,0,3], k = 2
输出: 7
解释: 在第 2 天 (股票价格 ... | [
"liuhui_py@163.com"
] | liuhui_py@163.com |
629f2ff4feeb1c2a14b762b23be4363df4961583 | bee1bf4e458a7ea4be0cd70be00f2d7d7b2d1d3f | /lu_factorization.py | 7250058d8c2ecadc8a5e05d55857cdff0822430f | [] | no_license | mateusoliveira43/estudos-Algebra-Linear-Computacional | 3b3abd4f4b3ee7b4e2c75b8863753d5299324334 | aa1cbe2d3a928c9de689512aa8da7add3d43ebb6 | refs/heads/master | 2023-02-16T04:51:31.749993 | 2021-01-16T14:13:22 | 2021-01-16T14:13:22 | 295,873,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | import numpy as np
from pprint import pprint
import timeit
def lu_factorization(matrix):
# fazer type hinting depois
dimensions = matrix.shape
n = dimensions[0]
lower_matrix = np.eye(n)
for i in range(n-1):
for k in range(i+1, n):
lower_matrix[k][i] = matrix[k][i]/matrix[i][i]... | [
"matews1943@gmail.com"
] | matews1943@gmail.com |
5e1e5a1b37d9ffaf4acf035129a76aebec8edb4b | 242453b215468acdd2c13109757a3076aa7d04aa | /lessons/lesson11-prallel-tasks/Thread-web-examples.py | 54a5d5626bf4d1f16a0e940738d74651ece09e56 | [] | no_license | maksrom/data-science-less | de5644ce3fd27b99271c4c9b190243c945327ec3 | 8eb494cc907a48218bdcbcc0b9e63403b85e3941 | refs/heads/master | 2020-03-21T08:06:39.474963 | 2018-06-22T16:02:16 | 2018-06-22T16:02:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | import urllib.request
import threading
import queue
q = queue.Queue()
def request():
while True:
url = q.get()
if url is None:
break
r = urllib.request.urlopen(url)
print(len(r.read()))
q.task_done()
for i in range(5):
t = threading.Thread(target=request)... | [
"Maxim.Romaniv@netent.com"
] | Maxim.Romaniv@netent.com |
019e554986b56d005e4f2668da030024fbc2998a | 3bfe2238f9337a03780961f756c3317320dbdf7d | /td3.py | 9e349dc284a3a807947fa1644f1cf5e39fd22087 | [] | no_license | herrbilbo/neural-ode-rl | 6cd30f0c9d360a3e131e9a52ff837fb9c1e3f3ab | f30bfa62f93bae527aae981179ef46c50fa64145 | refs/heads/master | 2022-11-08T07:46:16.271687 | 2020-06-24T22:46:15 | 2020-06-24T22:46:15 | 274,783,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,262 | py | import gym
import random
import numpy as np
from collections import deque
import torch
import torch.nn.functional as F
import torch.optim as optim
import torch.nn as nn
import pybullet_envs
from torchdiffeq import odeint
from torch.utils.tensorboard import SummaryWriter
import multiprocessing.dummy as ... | [
"noreply@github.com"
] | herrbilbo.noreply@github.com |
57209408cf256d9887b2a70f4019707fbfca8030 | bf78c33be28fcd1b33cf5e3eab1e6923607bca8d | /fullversion/pressure_system/pressure_system_sensor/CurveDetection.py | 97fd783b5d1f3e37f78854af70f9431191838ec5 | [] | no_license | marcosase/E-MA-docker | 4531c973bb96ab588a039198cf5a55c5b50f6da1 | 5ce56f7ac79df0b0fcfd957b2750840b7261f973 | refs/heads/master | 2020-05-27T02:46:55.258051 | 2019-05-24T00:23:41 | 2019-05-24T00:23:41 | 188,456,200 | 1 | 0 | null | 2019-05-24T16:39:10 | 2019-05-24T16:39:10 | null | UTF-8 | Python | false | false | 15,343 | py | '''
Created on Jul 2, 2018
@author: rodrigo.guercio
'''
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''Peak detection algorithms.'''
import numpy as np
from scipy import optimize
import math
from lmfit.models import LorentzianModel
import matplotlib.pyplot as plt
import pylab
def indexes(input_array,axis_x, thres = ... | [
"root@LNLS55-linux.abtlus.org.br"
] | root@LNLS55-linux.abtlus.org.br |
001acef57576b87eb38040f53889537d452e2f72 | 552865ae5daa143bc6a7dec46f7febe49f0a7226 | /src/mr/cabot/kml.py | 96d3de4531e1a03cd61c963cb5568f2f5a0be081 | [] | no_license | collective/mr.cabot | 231a4a96c38e793356c4d06438d236d447e97bc8 | 3e905d80ed5eac52a258b74d19abf5ab182d49e2 | refs/heads/master | 2023-03-22T15:30:19.171188 | 2013-01-27T17:54:22 | 2013-01-27T18:32:03 | 6,816,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import datetime
import urllib
import os
import simplekml
from mr.cabot.interfaces import IListing, IGeolocation
import sebastian
colors = {"commit": "ff00ff00", "mailing-list": "ffff0000", "answer": "ff00ffff"}
def join(objs):
kml = simplekml.Kml()
unique_locations = set()
for obj in objs:
... | [
"git@matthewwilkes.name"
] | git@matthewwilkes.name |
7c9b22a38ca78b7384d98f036477bb1f96f5c71f | 08637a7a73653c1c3c0d5c5316589e3f290fbbfd | /ProjectEulerProblem45.py | a44a26a4d4f9f456bee09040e9a5899b5c902ea7 | [] | no_license | jdbr827/ProjectEuler | 91253bf36c86e21d95deed2bac2a43a33289da66 | ddc728a75303d7ad949c723c0aa0f36900cc9aae | refs/heads/master | 2022-07-24T12:42:50.038387 | 2019-11-12T23:39:35 | 2019-11-12T23:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py |
def solve3():
T = 1
Tn = 1
P = 1
Pn = 1
H = 1
Hn = 1
found = set([])
while len(found) < 2:
# update the sequence whose most recent element is smallest
M == min(T, P, H):
if M == T:
Tn += 1
T = Tn * (Tn+1) / 2
elif M == P:
Pn += 1
P = Pn * ((3*Pn)-1) / 2
elif H == P:
... | [
"noreply@github.com"
] | jdbr827.noreply@github.com |
cff049faf2a96253a3c9ab4ba304667f2b5d2244 | 00edbbf472066b51d1dafa361303aa1836f3b177 | /stock_incoming_shippment_container/stock.py | 9e3d3fa5ea458d2b80b197b33294f5bb1ae8ea0d | [] | no_license | kevin808/ellico_extra_addons | 22513a927e23c00d8380c9c75ac2a5df68adf8c8 | 9953fe3ad9a092aa1dbb1631b0cf30bd96403166 | refs/heads/master | 2020-05-17T02:55:03.091842 | 2014-06-17T02:37:43 | 2014-06-17T02:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2010-2014 Elico Corp. All Rights Reserved.
# Alex Duan <alex.duan@elico-corp.com>
#
# This program is free software: you can redistribute it and... | [
"lin.yu@elico-corp.com"
] | lin.yu@elico-corp.com |
9c1c1496d9e87ef0b64186d9951572487e4eec52 | 2d5648035b8bd32b4a6ded311e48975e5ea100d4 | /runs/bro/100KB/src2-tgt1/ssl-par-ssl-iter00100.cfg.py | 0df43d2c6562ed9dcdd7e02e3967e1cde40ca70a | [
"MIT"
] | permissive | Largio/broeval | 3975e54a1eaead6686c53e5e99250a00becbe1e0 | 89e831d07f066100afdd1a5b220f9f08f1c10b3d | refs/heads/master | 2021-05-08T08:54:06.498264 | 2017-11-10T17:09:02 | 2017-11-10T17:09:02 | 92,508,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py |
# Write results to this file
OUTFILE = 'runs/bro/100KB/src2-tgt1/ssl-par-ssl-iter00100.result.csv'
# Source computers for the request
SOURCE = ['10.0.0.1', '10.0.0.3']
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# IDS Mode. (ATM: noids, min, max, http, ssl, ftp, icmp, mysql)
IDSMODE = 'ssl... | [
"larswiete@googlemail.com"
] | larswiete@googlemail.com |
601c6109a398a6044f0de960eb68847c99317d8b | b65cd9500e73e51459ce426dd7702d82cee405ba | /ANN/artificial_neural_network.py | a5e7c148dd445479dfd1f243bef73358ebc95213 | [] | no_license | ashish-atkar/ML_Algorithms | b335f9fbb04bbb093c76222c9d18fb1340ec9835 | 647cc7bb17ae201ce3cdaeb1c644b6b5a277a106 | refs/heads/master | 2022-10-08T10:11:08.101779 | 2020-06-09T19:15:27 | 2020-06-09T19:15:27 | 270,686,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py |
#Part 1: Data importing and preprocessing
import pandas as pd
dataset = pd.read_csv('Churn_Modelling.csv')
X = dataset.iloc[:,3:13].values
Y = dataset.iloc[:,13].values
#Encoding Categorical data
from sklearn.preprocessing import LabelEncoder,OneHotEncoder
labelencoder_X_1 = LabelEncoder()
X[:,1] = labelencoder_X_... | [
"ashish.atkar12@gmail.com"
] | ashish.atkar12@gmail.com |
58a25e67f1a25a87bcf69394078f2dff07c063d3 | 274a72fffdeea616d65e1ca6c343a948325b12c1 | /bot.py | 6e3b160bb2bea21e1f41575a9d32fbfa7f4cf744 | [] | no_license | ideasincrypto/moderatorBot | 9091b224039f560b9bea94d1abec736a6b1b2720 | 9e8d12cfa3b7cfb05a64aa6a80eb5ef416167319 | refs/heads/main | 2023-05-15T10:23:59.363963 | 2021-06-17T07:21:35 | 2021-06-17T07:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,616 | py | import time
import config
import logging
import bot_helpers
from aiogram import Bot, Dispatcher, executor, types
from filters import IsAdminFilter
from sqlite import SQLight
# log level
logging.basicConfig(level=logging.INFO)
# bot init
bot = Bot(token=config.TOKEN)
dp = Dispatcher(bot)
db = SQLight("db.db")
# acti... | [
"cent1pede@protonmail.ch"
] | cent1pede@protonmail.ch |
3a16a90b838831a9cd17e75fbc0cf1128433630b | 509b42db1734d1fd0577ac9d471a5dc597f81a3b | /Web/polls/migrations/0001_initial.py | 2534117e0a2c66cc416eafe0ff03efba89f6917e | [] | no_license | kote2ster/ChaosStack2019 | 19063c0fbcaf47fe6732dc78a5535890f42904a1 | 61dbb37a67c9ab15fc44f10bd98a3b955624b4b6 | refs/heads/master | 2022-12-10T09:18:15.104635 | 2019-09-28T17:00:01 | 2019-09-28T17:01:24 | 202,116,975 | 0 | 0 | null | 2022-12-08T06:17:12 | 2019-08-13T10:05:32 | Python | UTF-8 | Python | false | false | 1,075 | py | # Generated by Django 2.2.5 on 2019-09-27 14:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"kote2ster@gmail.com"
] | kote2ster@gmail.com |
7a6ad161974c26b3fb9c026dab412103523de24d | 6492db43d623d3ef5d47bfe9b22486d858b9a243 | /assignments/day2-homework/fasta_reader.py | bbbb51724a88ffbd816b5edebaaaccd892802607 | [] | no_license | rgenner/qbb2021 | 76cfed73916e51e7985f95d31e3b1587e49ebd72 | bb6b1d069f2ff438205ce5e44ddaa6ec42ddb3be | refs/heads/main | 2023-08-26T02:52:18.649496 | 2021-10-22T05:24:42 | 2021-10-22T05:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | #!/usr/bin/env python3
def FASTAReader(file):
# Get the first line, which should contain the sequence name
line = file.readline()
# Let's make sure the file looks like a FASTA file
assert line.startswith('>'), "Not a FASTA file"
# Get the sequence name
seq_id = line[1:].rstrip('\r\n')
... | [
"kweave23@jhu.edu"
] | kweave23@jhu.edu |
3e9b63e9492405f039f1e350d73adff14fddf664 | 39ab815dfdbab9628ede8ec3b4aedb5da3fd456a | /aql/aql/options/aql_option_types.py | e93027919b544a7de53973e716f7a8f385c8a943 | [
"MIT"
] | permissive | menify/sandbox | c03b1bf24c1527b47eb473f1acc433f17bfb1d4f | 32166c71044f0d5b414335b2b6559adc571f568c | refs/heads/master | 2016-09-05T21:46:53.369065 | 2015-04-20T06:35:27 | 2015-04-20T06:35:27 | 25,891,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,600 | py | #
# Copyright (c) 2011,2012 The developers of Aqualid project - http://aqualid.googlecode.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction,
# including without limitati... | [
"menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b"
] | menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b |
46f9074e93f7bef5beaa27844351f2b1ba6935da | 3307766701d680af6d12a726a2d98df2cb1830e5 | /jams/gcj/2013/1C/C/C.py | 0660c807359fca4cfb396ebfa66c729d1b5b2f9e | [] | no_license | dpaneda/code | c1a54037a275fa7044eb5c2d6079f052dd968615 | 7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff | refs/heads/master | 2023-01-07T18:41:00.816363 | 2022-12-30T09:24:22 | 2022-12-30T09:24:22 | 1,583,913 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | #!/usr/bin/python2
import sys
import bisect
def calculate_atacks(tribes):
# We calculate attacks day by day, until no tribe have any attacks left
attacks = {}
for tribe in tribes:
for i in xrange(0, tribe[1]):
d = tribe[0]
if d not in attacks:
attacks[d] = ... | [
"dpaneda@gmail.com"
] | dpaneda@gmail.com |
f85d432e037030d3e230472ed90ab71633bfd965 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-6.py | 50bed63741a7b659fb9658ec148349d295ad58a5 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # A resizable list of integers
class Vector(object):
$ClassBody
# A faster (but more memory-consuming) implementation of vector
class DoublingVector(Vector):
doubling_limit:int = 1000
# Overriding to do fewer resizes
def increase_capacity(self:"DoublingVector") -> int:
if (self.capacity() <= s... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
7cb4c2732a9e0437ad2c3c1be8df7a72b03dab80 | b8062e01860960131b37e27298b6b755b4191f5f | /python/level1_single_api/9_amct/amct_pytorch/resnet-101/src/resnet-101_calibration.py | 1fb64a80ea43a7e08efa9490757866a88b3a89a4 | [
"Apache-2.0"
] | permissive | RomanGaraev/samples | 4071fcbe6bf95cf274576665eb72588568d8bcf2 | 757aac75a0f3921c6d1b4d98599bd7d4ffda936b | refs/heads/master | 2023-07-16T02:17:36.640036 | 2021-08-30T15:14:05 | 2021-08-30T15:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,051 | py | """
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 a... | [
"derek.qian.wang@huawei.com"
] | derek.qian.wang@huawei.com |
aee259f55635db4b74927412b4c3d307f3038436 | 1d90a784f0fb673b188f3fdde425bd7ca23617e6 | /python/multiparadigma/1195.py | 0d4b9b31bcfc229f6642bd5c9c89253f87968f29 | [] | no_license | lzacchi/INE5416 | 8b767dec0aa19baf8f27930b6c345b609220c6ff | e182dc7777a1d49c478c6655afdf1e754dce43b1 | refs/heads/master | 2021-03-15T09:36:09.924193 | 2020-11-25T01:10:40 | 2020-11-25T01:10:40 | 246,840,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | class Node:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
class Tree:
def __init__(self):
self.root = None
self.buffer = ""
def insert(self, value):
if self.root is None:
self.root = Node(value)
else:
... | [
"zacchilucasm@gmail.com"
] | zacchilucasm@gmail.com |
4af4f611f29d8399e7635e13af155fc04e99e0b9 | 9e1dcb4f71b7eda84bbf0855d574eb38719d21a9 | /nested_loops_prime_number.py | 09ead76ff7a45ba184bcf3f6b8ff47bf66b017c6 | [] | no_license | ayoubabounakif/edX-Python | 689c2730458513151fc3b7a69f6a3e8b25462028 | 2449616fd6d9d8d8d74819cff24f3a54bff9dd4b | refs/heads/master | 2020-12-30T03:46:10.271688 | 2020-02-07T05:28:09 | 2020-02-07T05:28:09 | 238,849,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | #ALGORITHM
'''
1. Select a number
2. Select a divisor and set it equal to 2.
3. Assume number is prime
4. If divisor is less then the number go to step 5 else go to step 8
5. If remainder of (number/divisor) is 0 then number is not prime(exit/stop)
6. Add one to the di... | [
"noreply@github.com"
] | ayoubabounakif.noreply@github.com |
963def63ffb064f3a9cabda28fe6da460f3f0ce1 | 4384fea5021c660abd188f0d7d5072a42b0b37a3 | /analysis/irb_13384/scripts/coh_04_analyze_segmentations.py | 3135adde1749d7792bb7af0868383fd7f86ec669 | [] | no_license | cohmathonc/car-t-image-analysis | ae39b6c8cb22d55f606fd478f10f56fbd6b65181 | 3719ddbd3c0da74f26da04aebdb42cad3956a184 | refs/heads/master | 2023-07-14T22:27:15.013239 | 2019-06-05T18:31:08 | 2020-06-10T08:14:39 | 190,288,277 | 0 | 1 | null | 2023-06-29T20:33:00 | 2019-06-04T22:31:16 | Python | UTF-8 | Python | false | false | 1,646 | py | import analysis.irb_13384.coh_config as config
from tools import data_io as dio
import analysis.irb_13384.coh_helpers as ch
import tools.general_tools as gt
import os
gt.ensure_dir_exists(config.coh_dir_analysis_segmentation)
data_io= dio.DataIO(config.coh_dir_bids, config.path_to_coh_bids_config)
# This function l... | [
"djs.abler@gmail.com"
] | djs.abler@gmail.com |
d6db180179ec7d18235d889f23c35b8b394da45a | 154620312f4e4b53382a2637e9a130e458a0d4cd | /alcoholExample.py | 4897a663f0158fe1464a8843754cb4b2e2badc1a | [] | no_license | heltongo/VAA-Tool | 0cebae267f536a449eccf6f64f0559093d17b7cb | ebe93ed0d80d4729d71bf353ae11ed3172de5988 | refs/heads/main | 2023-08-02T10:59:24.269362 | 2021-10-10T10:41:59 | 2021-10-10T10:41:59 | 406,747,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,025 | py | import wx
from numpy import arange, sin, pi
import matplotlib
import os.path
#matplotlib.use('WXAgg')
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wx import NavigationToolbar2Wx
from matplotlib.figure import Figure
# from data.db_utils import *
BASE... | [
"80892899+debbiemaborekhe@users.noreply.github.com"
] | 80892899+debbiemaborekhe@users.noreply.github.com |
c38d01418bc5557e97442e26d3317de141654596 | 5858cc331d73f04d38f2572d68bd9c2eb3747165 | /subscriptions/tests/test_views_detail.py | 27515f097684c7bcca36babb70f8b52b11b5e55c | [] | no_license | rougeth/wttd | 6f9817e3f34df8adebda5a12bde3aa66a4f5d966 | b8d63ccce01c0f7403fc53547c0a421fbe5e6c8b | refs/heads/master | 2021-01-17T05:27:04.678657 | 2014-06-01T03:02:30 | 2014-06-01T03:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # coding: utf-8
from django.test import TestCase
from subscriptions.models import Subscription
class DetailTest(TestCase):
def setUp(self):
s = Subscription.objects.create(
name='Marco Rougeth',
cpf='12345678901',
email='marco@rougeth.com',
phone='61-1234567... | [
"marco@rougeth.com"
] | marco@rougeth.com |
402bd32071698d56c3451e82af17c292a4406371 | 64dd93c757173c57ffcb0810c66e339650b37a22 | /client/models.py | 7980945194f56eb06a495c1305489b132e69785d | [] | no_license | bannawandoor27/Django-Tenant-Single-URL | 0a09ce6df33c06ec80bc4a4f69ea01e1b93b5e78 | 47ca4c2b7ce1f71050b9ae896df98e5749082bfc | refs/heads/main | 2023-08-11T13:31:31.622577 | 2021-09-15T20:51:07 | 2021-09-15T20:51:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | from django.db import models
from django_tenants.models import TenantMixin, DomainMixin
import uuid
import os
from django_tenants.postgresql_backend.base import _check_schema_name
# Create your models here.
class Client(TenantMixin):
REQUIRED_FIELDS = ("tenant_name", "paid_until", "schema_name", "on_trial")
... | [
"david@holdcb.com"
] | david@holdcb.com |
556a064c6aaa406e6208c1055530438590c6f151 | 9b2f4810b093639209b65bbcb5fa07125e17266f | /src/radical/pilot/umgr/staging_input/__init__.py | 66be18b437eb382c61a394d1bf9f1abbbf8f82d4 | [
"MIT"
] | permissive | karahbit/radical.pilot | 887d25d370d08e3455f19cd240677b62278ef67f | c611e1df781749deef899dcf5815728e1d8a962e | refs/heads/devel | 2020-12-21T09:54:10.622036 | 2020-08-20T18:18:12 | 2020-08-20T18:18:12 | 254,967,331 | 0 | 0 | NOASSERTION | 2020-05-01T00:47:51 | 2020-04-11T22:37:20 | null | UTF-8 | Python | false | false | 141 | py |
__copyright__ = "Copyright 2016, http://radical.rutgers.edu"
__license__ = "MIT"
from .base import UMGRStagingInputComponent as Input
| [
"andre@merzky.net"
] | andre@merzky.net |
4285a06223ef406e7b6a8cfcba809f60b3d98731 | 57eb2354f8fba9d46c8edcfac60c13fc0468d950 | /Lekhaka/deformer_noiser.py | af37dc110bc7fa9c610374b8ecf483f63c73effc | [] | no_license | rakeshvar/Lekhaka | 597e91e60c30c566e6f792af2d1378205f698087 | 1d2d31035fe8a29f002adb5a70d762669102a0f3 | refs/heads/main | 2023-06-16T11:18:30.121653 | 2021-07-09T08:35:56 | 2021-07-09T08:35:56 | 370,766,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | import numpy as np
from scipy import ndimage as nd
from scipy.special import cosdg, sindg
def _summary(mat, name):
print(f"{name}\tshape:{mat.shape}\tmax:{mat.max():.2f} min:{mat.min():.2f}")
pass
class Deformer:
def __init__(self, translation=0, zoom=0, elastic_magnitude=0, sigma=1, angle=0, nearest=Fa... | [
"rakeshvar@gmail.com"
] | rakeshvar@gmail.com |
120fb4ec281dcd2b86e5467ee1a6d5de6064f9a9 | 08405d519907288da5e780c4c7edd86c5e898f67 | /sql_and_python_asignment_14.py | d191384a0354d544f26177e48a1941db3affeee0 | [] | no_license | brambabu/Python_oops | a2a8aeb38fb44084367e21d7119ab17edc6dc7d5 | fca97ba7be04902dc88b24a67a2d36a782b16ffb | refs/heads/master | 2022-08-26T10:22:31.024124 | 2020-05-27T04:59:35 | 2020-05-27T04:59:35 | 257,840,293 | 0 | 5 | null | 2020-04-22T08:32:12 | 2020-04-22T08:32:12 | null | UTF-8 | Python | false | false | 2,923 | py | def write_data(sql_query):
import sqlite3
connection = sqlite3.connect("students.sqlite3")
c = connection.cursor()
c.execute("PRAGMA foreign_keys=on;")
c.execute(sql_query)
connection.commit()
connection.close()
def read_data(sql_query):
import sqlite3
connection = sqlite3.conne... | [
"noreply@github.com"
] | brambabu.noreply@github.com |
62840653bb6acafdea57d4f93202a81cccb65c4f | 488d6a8df1c50f232344308c6377e9bbe58eb012 | /Trabajo Practico 1 - B/errorController.py | 60c54ba0c325b51b043479d4b1fc66218c03c865 | [] | no_license | fjp2k/SistemasDeTransmisionDeDatos2017 | 97e719c759f98652b6796d40375d3fa1a81f8b69 | c301bdcad1d92cc419730dacbb17d21b0abcff9c | refs/heads/master | 2021-01-20T06:08:21.967764 | 2017-11-20T17:42:20 | 2017-11-20T17:42:20 | 101,487,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | def controlar_trama(trama):
error_funcion = trama[2:4]
if error_funcion == '83':
return False
elif error_funcion == '86':
return False
elif error_funcion == '90':
return False
return True
def obtener_error(trama):
error_funcion = trama[2:4]
codigo_error = trama[4... | [
"fpalma2k@gmail.com"
] | fpalma2k@gmail.com |
4117bf0fede268a09fcfef5704f7c884814e3c6f | d2e822f47779dff3cec81e1c9e71f381a6ceb0f0 | /COURS/python/TP7/TP7 EX1.py | ff3531bce28bd7438b72b0db37e93aad0b6b48e6 | [] | no_license | BrandidiCH4O4/Code-des-cours | fe019ba211785ade42d54fc1238d4944bb178373 | ac9eb6bf9042f2ceaca5e8e5a6de49848395bffb | refs/heads/main | 2023-01-21T02:03:51.412532 | 2020-12-02T13:41:19 | 2020-12-02T13:41:19 | 309,106,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | """Ex 1"""
#1:
print("1:")
def saisieON():
rep=input("Entrer OUI ou NON ")
while rep!="OUI" and rep!="NON":
print(rep, "n'est pas une réponse acceptable.")
print("")
rep=input("Entrer OUI ou NON ")
return rep
print("")
print(saisieON(), "est une réponse accépté.")
###... | [
"noreply@github.com"
] | BrandidiCH4O4.noreply@github.com |
75ef228fd5619a6cc49f30d58c3284d5f4dbb728 | 584dda592f5869a5ba2c0bbaee12401bcfe5454a | /telloner/apps/tellonym_api/tellonym/User.py | a40dd16a4d884433f06b7898a58c445447b60ab8 | [] | no_license | Rei-x/django-tellonym-api | d769d79549443f1729f79bbf4a498ba014198311 | 04b43f7c4f71188351ffe482b23b58c6aaa98128 | refs/heads/master | 2023-02-22T14:20:55.987434 | 2021-01-27T12:45:30 | 2021-01-27T12:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py |
class User:
def __init__(self, input):
print(input)
self.id = input['id']
self.display_name = input['displayName']
self.username = input['username']
self.about_me = input['aboutMe']
self.avatar_file_name = input['avatarFileName']
self.is_verified = input['is... | [
"wszyzdgo@gmail.com"
] | wszyzdgo@gmail.com |
201d456efa359e1836be4a554f33efd81f1843c1 | 552a03030160de2f096489e704f7b8088450f979 | /concesionario/apps/empleado/views.py | f578f11b90b50e634d7022b3f57a4dff3e76097f | [] | no_license | lisafbe/SIGIA | ce718e9ba5b37cabeaaabe879ca99dcbe6e12059 | a883b38e310af646fa8d6023e8f62bdb9e0a21d8 | refs/heads/master | 2021-01-10T08:46:08.055581 | 2016-02-20T18:58:54 | 2016-02-20T18:58:54 | 52,169,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # -*- encoding: utf-8 -*-
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.views.generic import TemplateView
from .models import Empleado
from apps.sucursal.models import Sucursal
class EmpleadoListView(TemplateView):
def get(self,request,*args,**kwargs):
s... | [
"lisabetanco@gmail.com"
] | lisabetanco@gmail.com |
c6984060bdb66e9297a30262564f0ec5543acd5e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03146/s790644084.py | 7e0cb3ce3d0317c1b444b17f7e0a4ff736bda753 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | s = int(input())
a = s
prev = set()
for i in range(1, 1500000):
if a in prev:
print(i)
exit()
prev.add(a)
if a % 2 == 0:
a //= 2
else:
a = 3 * a + 1 | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
29f193740bef122fbd90749abed73ecb40569459 | b3a2beaab1ac676c96e93a48d4f35ff6ed6799d0 | /anyex/async/btcchina.py | 1adec6030b7a567203d310d05d8ea27f4920560c | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ttwishing/anyex | 40c06cf34e4d8f96bb968e8b7be3d2da5e6023f8 | cfd1f2f04ab992b790add4843aafff91e5773cbf | refs/heads/master | 2020-05-23T12:07:58.615432 | 2019-05-15T05:09:46 | 2019-05-15T05:09:46 | 186,751,745 | 0 | 0 | MIT | 2019-05-15T04:57:08 | 2019-05-15T04:57:08 | null | UTF-8 | Python | false | false | 11,676 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/anyex/anyex/blob/master/CONTRIBUTING.md#how-to-contribute-code
from anyex.async.base.exchange import Exchange
import base64
import hashlib
class btcchina (Exchange):
def describe(self):
... | [
"yong2452@gmail.com"
] | yong2452@gmail.com |
fbb9c8ae7ff641259199c43c4776c6e6207c9d4a | bddd137df94aeefe3b2dddda450cb3830c4d612a | /数据/raw data/20170816price_radio_2012/2_128/tsc_model.py | faa4fa79ffe20f5d75bfc9d8e1eaf3cae1bfd247 | [] | no_license | yangyiqwer/vue-sp | e211f05965930086edb0b6625177ec1f0a9557c6 | 44f09352dc6aac01ebb749f55635714c3cf11b53 | refs/heads/master | 2021-01-01T19:04:16.109666 | 2017-08-27T15:04:26 | 2017-08-27T15:04:26 | 98,498,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | import numpy as np
import pandas as pd
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='3'
import tensorflow as tf
tf.logging.set_verbosity(tf.logging.ERROR)
from tensorflow.python.framework import ops
from tensorflow.python.ops import clip_ops
from tensorflow.contrib.rnn import LSTMCell
from tensorflow.python.ops.rnn im... | [
"yangyiqwer@gmail.com"
] | yangyiqwer@gmail.com |
287b2dea5d50e568064505e8ecdad813d1967f06 | e966e08e69df8f6669034c1d8a2ed57293a48ef7 | /www/main.py | a8c620ef841d4f5469289bfa7a8cbc2b5c224f3a | [] | no_license | adrianPerez/notify-io | c9d06f5fb2a40d25a9399bb72319225e60ffa142 | 20eeafa5edfe2455d4b154733283aa8ce2969dbb | refs/heads/master | 2021-01-18T12:14:50.622242 | 2009-11-12T06:13:36 | 2009-11-12T06:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,257 | py | import wsgiref.handlers
import hashlib, time, os
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.api import urlfetch
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import login_required
from... | [
"progrium@gmail.com"
] | progrium@gmail.com |
db7db6a90704df75b54f315bea68f0ad7f3365c1 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp101_6000.py | ca5589222090cec51eb4387d80afbfad76d2ebaa | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,814 | py | ITEM: TIMESTEP
6000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
1.4321272860081535e-01 4.7056787271390377e+01
1.4321272860081535e-01 4.7056787271390377e+01
1.4321272860081535e-01 4.7056787271390377e+01
ITEM: ATOMS id type xs ys zs
8 1 0.121128 0.0652153 0.0529452
35 1 0.0586052 0.120368 0.0662597
130 1 0.04784... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
72c565718ed0cf9f285301d357f8ad4810cba575 | a1588ec1e4480c4ab58dccf49150066ce2ab1ee8 | /exampls/operationLogic.py | de1a5aa399a69ee2262eb544dd54396d4260ec34 | [] | no_license | silvermiguel96/pythonVentas | 9e9a60b9573e39d2113f91362bf82b3a9ab42153 | b785696dea666a49076d01ec9edecf8d054e09d4 | refs/heads/master | 2020-04-22T13:45:48.822291 | 2019-02-14T21:55:39 | 2019-02-14T21:55:39 | 170,420,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | x = 2
y = 3
x == y
y = 2
x == y
x != y
x > y
x < y
x >= y #false
x <= y #True
x = 2
y = 3
a = 5
b = 6
print('De acuerdo a los siguientes valores de variables')
print('x=',x)
print('y=',y)
print('a=',a)
print('b=',b)
print('Sabemos que...')
if x == y:
print ('"x" es igual que "y"')
else:
print ('"x" no es igual que... | [
"silvermiguel96@gmail.com"
] | silvermiguel96@gmail.com |
295338183b59fe88a08317b8e639fd6a5734f638 | 1ee4c8d3208d1b51a72d30e4732a9b2082da605c | /sao_portal/asgi.py | 42ad8861fc2ad5d0afd93f540fdc60c77c34b824 | [] | no_license | abhiram-g/SAO_service_dashboard | 8336f52a9968019102884e24edc735e8e4f38bc6 | 4d2cde4cefe6c10bc644223981b67755cf6c1145 | refs/heads/master | 2022-10-15T10:23:30.537956 | 2020-06-08T12:43:51 | 2020-06-08T12:43:51 | 270,624,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for sao_portal project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"abc@gmail.com"
] | abc@gmail.com |
6a6035e8568deb8735087e5c391727eb03d1e06f | 9b9be4c8c1824c524556a074afaec0b989cf389e | /download.py | 5e9b29fb8bc0d4458de9d72ff46ee060abd7dc9b | [] | no_license | bezoadam/MetaIT | ad9abc459b932efc3d6c86226afaa710081eb71a | 23cf145d3ad796198d9e916f00c6a50f341d2749 | refs/heads/master | 2021-01-19T22:47:15.019640 | 2017-04-20T20:09:19 | 2017-04-20T20:09:19 | 88,870,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | #! /usr/bin/env python3
import sys
import json
import requests
from operator import itemgetter
# sys.path.insert(1,'/usr/local/lib/python3.5/site-packages/')
from bs4 import BeautifulSoup
NHL_LINK = "https://www.ifortuna.cz/cz/sazeni/hokej/nhl"
PREMIER_LEAGUE_LINK = "https://www.ifortuna.cz/cz/sazeni/fotbal/evropska-... | [
"bezoadam95@gmail.com"
] | bezoadam95@gmail.com |
593e2746323dfc3130f56fe671a34f9ddd763f58 | f55818124fe2e82e18a03174637c7166bfb5bda6 | /File Display.py | 0dae5fca52780dc144dc1925fbc03f7081870fac | [] | no_license | jfranck99/Python-Projects | 46b12aca9a0c99ecf7316dc3ae110b37173bf123 | b61c42030c17eb4171862ce81e99291d0f439b63 | refs/heads/main | 2023-04-12T05:30:03.713769 | 2021-05-12T18:28:56 | 2021-05-12T18:28:56 | 366,805,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #Open the file
myfile = open('numbers.txt', 'r')
#Read and display file
for line in myfile:
number = int(line)
print(number)
#Close the file
myfile.close()
| [
"noreply@github.com"
] | jfranck99.noreply@github.com |
fc4c8a68056ed1b5b0241e8b4020194a7895889a | e560cf41cf47debaa297d43522f52961eb660c1c | /Python/3.- Logging.py | 1ed14805b8e569dba36b2fbfe62a59773fea1661 | [] | no_license | ActivandoIdeas/Concurrent-Programming | 6c2eb18981c62f09c1cc6de00392343c01158ac9 | bcd673dcd676b33c9f33c8b28dac3cb968d8d041 | refs/heads/master | 2022-12-16T08:15:01.130024 | 2020-09-16T03:56:26 | 2020-09-16T03:56:26 | 295,833,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import logging
# Debug (10)
# Info (20)
# Warning (30)
# Error (40)
# Critical (50)
logging.basicConfig(
level=logging.DEBUG, # 10
format='%(filename)s %(asctime)s %(message)s %(funcName)s %(levelname)s %(lineno)s %(module)s %(name)s %(pathname)s %(thread)s %(threadName)s %(process)s %(processName)s',
da... | [
"eliasojedamedina@gmail.com"
] | eliasojedamedina@gmail.com |
b71f4f4c0c82b54bf051e4b6b83878612d3b30c1 | dc9f2638209a9be235a1c4acc44fe2a26256c4b4 | /venv/projects/lib/python3.8/site-packages/pip/_vendor/msgpack/_version.py | 7f0f77b35e6f3f520b75e0ff6182498615a30fa0 | [] | no_license | alwinruby/RealWorld | 4f5fcaed68fdd2d9fc37f5973fec365195cb3e9e | ec446f96f3545cb847429b5e33cefdc4f00ce432 | refs/heads/main | 2023-08-13T10:28:40.528047 | 2021-10-10T14:58:23 | 2021-10-10T14:58:23 | 408,079,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | version = (1, 0, 2)
| [
"alwinsolanky@gmail.com"
] | alwinsolanky@gmail.com |
8481ed2d0f149e2feca988ff41ea6b4cf7e1eef4 | ceb726ec9aaee5b6b914ca850aa4147d3ce0aedf | /addons/odoo/addons/sale/tests/test_access_rights.py | 492ff640ce31d43341918b07152f51c87de97ddc | [
"Apache-2.0"
] | permissive | BabakMahmoudi/parOdoo | 969ab3f2946243c71a54fd12a2d80667b2671927 | abef1218992751cd87019689963e62aa3c614f31 | refs/heads/master | 2022-12-10T13:28:57.753225 | 2020-08-31T11:20:49 | 2020-08-31T11:20:49 | 291,694,670 | 0 | 0 | Apache-2.0 | 2020-08-31T11:20:50 | 2020-08-31T11:18:48 | null | UTF-8 | Python | false | false | 7,269 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.exceptions import AccessError, UserError, ValidationError
from odoo.tests import tagged
from .test_sale_common import TestCommonSaleNoChart
@tagged('post_install', '-at_install')
class TestAccessRights(TestCo... | [
"babak@gnco.ir"
] | babak@gnco.ir |
c89fddca810ff0a6a6816e86a3546737492b1e5e | 56b3f373de5189f128d84ea191cc5dfc6f88636a | /TrackProblems/trackproblems/controllers/__init__.py | 32c45f64e71509d5257896d8ff5c8bf2795962c0 | [
"Apache-2.0"
] | permissive | tongpa/TrackProblems | 0e301d01735ebc523de18553d670207b9a75427e | 41e827a21907f0e9e4cc036ec0f96ab379b94544 | refs/heads/master | 2021-01-02T08:53:47.648786 | 2017-09-11T09:56:39 | 2017-09-11T09:56:39 | 99,089,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | # -*- coding: utf-8 -*-
"""Controllers for the TrackProblems application."""
| [
"tong_pa@hotmail.com"
] | tong_pa@hotmail.com |
2adf1b16dc0fe58417825d349d3e29ccf10e3135 | a247e3a40bca426f604ee057319ae3f7fce5c22f | /django1/venv/bin/django-admin | 8279c65ae89eb5715eb0a7f394b21f42bacec363 | [
"MIT"
] | permissive | stephenndele/django-1 | fcb5cd2a8598b5d68855814fb588a231e06efc09 | 11be0289bc3b6b3234b1e34979f282bd06cbce2e | refs/heads/main | 2023-03-26T14:55:11.769279 | 2021-03-25T12:12:55 | 2021-03-25T12:12:55 | 349,335,362 | 0 | 2 | null | 2021-03-25T12:12:56 | 2021-03-19T07:22:05 | Python | UTF-8 | Python | false | false | 345 | #!/home/moringa/Desktop/moringa-school-projects/core/Django/django-playlist/django1/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(exec... | [
"stephenndele09346@gmail.com"
] | stephenndele09346@gmail.com | |
0e848300eeaafad6eda8c0a708e85d39d6455cce | 5229fd82b398b4f1fc370dd874af780f41837c35 | /bot/triggers/commands/story.py | 4c10178151d808eb8de42b894985b5a220238436 | [] | no_license | kdung/jenova | 3264bd2b0dd6b5aa32cd4517a3f325d643f8e23a | df0589ee8a6f4e1da8183ee113bb727e7122b27b | refs/heads/master | 2020-12-30T15:42:10.101999 | 2017-05-12T08:19:38 | 2017-05-12T08:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | """Trigger implementation to tell a story"""
import time
import random
from ev3bot.trigger import Trigger
from utils import tts
class Story(Trigger):
"""Trigger to tell a story"""
def __init__(self):
Trigger.__init__(self)
self.stopped = False
def run(self, execution_context):
... | [
"griever@Dzungs-MacBook-Pro.local"
] | griever@Dzungs-MacBook-Pro.local |
f6bb2899a6ff92ba5e477f3de7c6537b0ec6391e | 14f66af5aefd883ed49d3c3bd349581e64f2207d | /app/user/tests/test_user_api.py | fb932470d2aa8c492618d0ab71b698b099ab06dc | [
"MIT"
] | permissive | CompSci2013/recipe-app-api | 10e2dd253ba7b53c2a3a2ea719b22b874fb4df70 | b5546ad7b1d05492eacf2d086274e45a97a86f24 | refs/heads/main | 2023-04-25T18:48:36.906440 | 2021-05-31T14:32:13 | 2021-05-31T14:32:13 | 359,903,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | from django.test import TestCase
from django.contrib.auth import get_user, get_user_model
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
CREATE_USER_URL = reverse('user:create')
TOKEN_URL = reverse('user:token')
def create_user(**params):
return get_... | [
"kcollins2004@gmail.com"
] | kcollins2004@gmail.com |
d7833d20c9de724dea0ff27dce90bb80523ae797 | a22cc323b29f50da397d8363ac2521e3542a0fd7 | /tests/dpaycli/test_witness.py | a4b82ed9882df3b715a284b0fdf967a5516a4db1 | [
"MIT"
] | permissive | dpays/dpay-cli | 1a58c7dae45218e3b05b7e17ff5ce03e918d27b9 | dfa80898e1faea2cee92ebec6fe04873381bd40f | refs/heads/master | 2020-04-01T09:26:43.200933 | 2018-10-15T08:03:06 | 2018-10-15T08:03:06 | 153,075,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,801 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import super
import unittest
from parameterized import parameterized
from pprint import pprint
from dpaycli import DPay
from dpaycli.witness import Witness, ... | [
"jaredricelegal@gmail.com"
] | jaredricelegal@gmail.com |
4b3bcb583dfe4073fbaf60da96a44bc417c9ff61 | 1ddbe64e41ba648bb60a8758be6764e19b1c418a | /trunk/tygame-hall5-py/src/hall5/plugins/hallitem/_private/_actions/open.py | 722642fc9426119f820446f54c160267601f47ce | [] | no_license | zhaozw/freetime5 | 9bc3d0671a594822cc82e04b69c8016b7afd0554 | 99c47ad235583e765c35627ba34d4f496ccccbe4 | refs/heads/master | 2020-03-08T04:09:15.293616 | 2020-02-11T06:06:29 | 2020-02-11T06:06:29 | 127,913,013 | 0 | 0 | null | 2018-04-03T13:31:36 | 2018-04-03T13:31:35 | null | UTF-8 | Python | false | false | 8,612 | py | # -*- coding=utf-8 -*-
"""
@file : itemaction
@date : 2016-09-22
@author: GongXiaobo
"""
from hall5.plugins.hallitem._private._actions import _action
from hall5.plugins.hallitem._private._items.box import TYBoxItem
from tuyoo5.core.typlugin import pluginCross
from tuyoo5.game import tycontent
from tuyoo5.game._priva... | [
"tuyoo@tuyoodeMac-mini-8.local"
] | tuyoo@tuyoodeMac-mini-8.local |
8c3118deb13c8c994393b2003f7d577b34e10853 | 0479655f53b20aabd58e74fab15d7a0d278bd0f5 | /scripts/modules/enumerators.py | 7767ef0c42ae6ae865e130491fb2e739654393d2 | [
"MIT"
] | permissive | gianheck/MeshSim | a717e54fa92bafea5b4522b54d02f9967c95d7b4 | f2ff91634e1d7db2946fa86ab4384047dbfe0747 | refs/heads/master | 2022-04-07T11:06:38.212254 | 2020-02-27T22:45:46 | 2020-02-27T22:45:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,437 | py | #!/usr/bin/env python
"""
Small module to enumerate sets of variable values.
For simulation, we often want the enumerate the possible values in a
grid, i.e. look at the cartesian product possible values. Sometimes the
set is slightly more complicated, but usually not much so. In such
cases, the explicit listing of ... | [
"lminder@gmx.net"
] | lminder@gmx.net |
baaf7396d7d64ca02b696064862bf5652b225a14 | 568ed7fdc9ccbd7967dd2950669c68002b454869 | /yotta/test/cli/test.py | ccec43116468a2790ebad484c3f8dcd52ce643de | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | headlessme/yotta | ade06c41108dca045e295bd2e0fdb2b7baef8c89 | 947ab074b629c8f18ca91ab84ebaa29096b011c6 | refs/heads/master | 2021-01-17T11:10:07.569198 | 2015-12-08T11:45:12 | 2015-12-08T11:45:12 | 27,595,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,592 | py | #!/usr/bin/env python
# Copyright 2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0
# See LICENSE file for details.
# standard library modules, , ,
import unittest
import copy
# internal modules:
from yotta.lib.detect import systemDefaultTarget
from . import cli
from . import util
Test_Tests = {
'm... | [
"James.Crosby@arm.com"
] | James.Crosby@arm.com |
4df0a799a412b846b2b31ff74dc86ea649ff1808 | dbffdb62709e36618162d708377bbc63ca76ff65 | /Towers.py | 6cd0a4f0bd63f0cffc4cd3b7f9465468b6458b8c | [] | no_license | Yupiter5505/Project-4th-sem- | 21f8dfc61ab30d77795d642a7a31e2677473286c | 201917745dc30a50a12ec62e8115ca6174a25693 | refs/heads/master | 2021-04-27T03:57:24.588626 | 2018-05-21T07:32:55 | 2018-05-21T07:32:55 | 122,723,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,190 | py | import pygame as pg
import SingleNumbers as SN
import random as rnd
import Effects
class Bullet:
def __init__(self, position: SN.Vector, direction: SN.Vector, damage, effect):
self.position = position
self.direction = direction # Радиус-вектор тайла прибытия
self.damage = damage... | [
"noreply@github.com"
] | Yupiter5505.noreply@github.com |
f1516933ea445803defec8a1fa0c6335c45eb5e6 | 491d3ad04c852d2efe3e49842ccfcd20e40eab96 | /mysite/blog/admin.py | 6f0dd47e26f5ddf14bfd772d3edc6b2cfbd7becd | [] | no_license | marianwitkowski/python-24082019 | 746c9824c15c2072caceeac8a9b610d79c63f0f6 | df849d09aa7d9b7a08d8276a9c2b557d9f9d7ce7 | refs/heads/master | 2020-07-07T03:55:55.398961 | 2019-09-29T16:12:40 | 2019-09-29T16:12:40 | 203,239,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from django.contrib import admin
from .models import Post
# Register your models here.
class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'slug', 'status','created_on')
list_filter = ("status",)
search_fields = ['title', 'content']
prepopulated_fields = {'slug': ('title',)}
admin.si... | [
"marian.witkowski@gmail.com"
] | marian.witkowski@gmail.com |
9f70e24acb6247d89104f02908ac2638143ee173 | ca4910e944cca453050299cb6c8e856c06a76fb0 | /blog/settings.py | 1175ab8bc4cd442f1245d312eacf024ca32835cc | [] | no_license | SonerArslan2019/djangoRESTAPI | f8e33cd8570f86f14810ef8fabea918503e0fc90 | 5398b578524fc5c6eb3b7ed51db68bc4f3687221 | refs/heads/master | 2023-04-18T01:45:45.093105 | 2021-04-24T09:50:22 | 2021-04-24T09:50:22 | 360,634,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the sec... | [
"soner@arslanyapi.com.tr"
] | soner@arslanyapi.com.tr |
e62b2815fac299fb1b126e73cee5e4166cd51d2f | 4296c26a6669870671ae92d0588ad08c18590bdb | /imageboard_withLinuxPaths.py | cfa0f4ceb767bc03fd5d60932cfa9b32a793e4d7 | [] | no_license | neisor/imageboard | 4c4af1d8567ecb9892d6d5279029cfd0d7323881 | 18b6db42fe67ef4e65cc63c96addf08f42089be0 | refs/heads/master | 2022-12-12T09:06:40.527836 | 2020-09-11T12:04:43 | 2020-09-11T12:04:43 | 294,684,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,986 | py | # -*- coding: utf-8 -*-
from flask import Flask, flash, redirect, render_template, request, session, abort, jsonify
import sqlite3
import random
import os
from datetime import datetime
from werkzeug.utils import secure_filename
#Flask configuration variables
UPLOAD_FOLDER = os.getcwd() + r'/static/images'
AL... | [
"noreply@github.com"
] | neisor.noreply@github.com |
4dc1e5bc9c09fba76c3d8b83675b6caf6567e2f6 | 3da0a07e0c89f2cb0331752f531d8c2c3e728c0c | /testing/cjdemo/test_order.py | 51dd338c1244e82e0faae1b8522dfae580c649c8 | [] | no_license | yindan01/yindan | 4e1dffa418d7b4d90396b12b7c1fbda4e492d036 | ec596632c34e90acf1496128fa0d04f2906fd5b7 | refs/heads/master | 2022-12-22T22:37:32.177854 | 2020-09-22T14:46:52 | 2020-09-22T14:46:52 | 283,661,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import pytest
@pytest.mark.last
def test_foo():
assert True
@pytest.mark.third
def test_bar():
assert True
@pytest.mark.fourth
def test_aar():
assert True | [
"1130083087@qq.com"
] | 1130083087@qq.com |
4eaa794568039ff5217f0ae9c40798be17b54adb | 2eecc6419b28b5f5b1d84f0fd04861e7de05027d | /read_files.py | 1be2b02e96cb572e659e749ed22a5097f3e7bae5 | [] | no_license | priyanka36/RetinalDiseaseClassification | 61f49b16c9bc447c2454f1969e6830610ee6f5e0 | 3cf5932dc0dcec1632f90a7798215fee5df0ba2c | refs/heads/main | 2023-06-26T19:29:05.365292 | 2021-08-01T00:15:30 | 2021-08-01T00:15:30 | 390,621,647 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,762 | py | import os
import numpy as np
import cv2
from glob import glob
from tqdm import tqdm
import imageio
from albumentations import HorizontalFlip,VerticalFlip,ElasticTransform,GridDistortion,OpticalDistortion,CoarseDropout
def create_dir(path):
if not os.path.exists(path):
os.makedirs(path)
... | [
"poudelnipriyanka@gmail.com"
] | poudelnipriyanka@gmail.com |
5bcdd778d1e6f731488beb83daa9a83c0f4996a2 | b8e29b6e957b0a55571f7cffc4357666a43fb56e | /mxnet/insightface/insightface/src/symbols/fdpn.py | 0544f8347e0d24662ee3f007fe9468e1d3a22ddd | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | aliyun/alibabacloud-aiacc-demo | b9bbe565021757ecaea0e7d7209632cbdb5cc8ab | 2e49deeb38d12d4af4c5e50bb15d731c4bbf4cf1 | refs/heads/master | 2023-05-14T08:09:33.067050 | 2023-05-04T08:19:51 | 2023-05-04T08:19:51 | 228,604,743 | 38 | 14 | Apache-2.0 | 2022-06-22T02:41:01 | 2019-12-17T11:46:44 | Python | UTF-8 | Python | false | false | 9,635 | py | import mxnet as mx
import symbol_utils
bn_momentum = 0.9
def BK(data):
return mx.symbol.BlockGrad(data=data)
# - - - - - - - - - - - - - - - - - - - - - - -
# Fundamental Elements
def BN(data, fix_gamma=False, momentum=bn_momentum, name=None):
bn = mx.symbol.BatchNorm( data=data, fix_gamma=fix_gamma, mom... | [
"ziqi.yzq@alibaba-inc.com"
] | ziqi.yzq@alibaba-inc.com |
b9f098dd72ef674afb3bd21f560cc6124c6f2a47 | d159a228eebf3a050e75f72f8e49c64e19a09eb8 | /ui/SwitchButton.py | 24bed49fc5f28fb547fceaffa54b56c9b1941a60 | [] | no_license | LK007CX/General-Industrial-Smart-Monitoring-V2.0 | ca7f34d3f26e6e09f73a77f7b9bf4aca19590968 | ae16825504ab4b081779867513ea7a068acff7b1 | refs/heads/main | 2023-06-20T09:57:16.338101 | 2021-07-19T14:28:33 | 2021-07-19T14:28:33 | 343,361,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,626 | py | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
import sys
from PyQt5.QtCore import pyqtSignal, QTimer, QRect, QRectF, QSize, Qt
from PyQt5.QtGui import QColor, QFont, QPainter, QPainterPath, QPen
from PyQt5.QtWidgets import QPushButton, QMainWindow, QApplication
"""
TO DO LIST
"""
class SwitchButton(QPushButton):
c... | [
"1317108121@qq.com"
] | 1317108121@qq.com |
2984f1f901892baa21d75ff5c8020bbf9ce301ea | 0a7aa62ff09fef26f1e3af5cafa95cd22ae146f9 | /bin/calc_edge_activity.py | 2b4c1452450044f4816605a10d38983a175ff8f6 | [] | no_license | Boston123456/MIDAS | bd32313d8aced4dfc4c9a77ca63f9229fe06f818 | fcacae06be387fd692bb5d33e40c56bf7a268e89 | refs/heads/master | 2022-04-10T08:34:52.626800 | 2020-04-09T12:05:17 | 2020-04-09T12:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | py | import networkx as nx
import sys
import csv
import matplotlib.pyplot as plt
from graph_node import Graph_node
from centrality import calc_centrality
from calc_edge_act_parallel import *
def dic_return(temp_dic, temp_key):
result=0.0
if temp_key in temp_dic:
result= temp_dic[temp_key]
else:
result= 0.0
return... | [
"noreply@github.com"
] | Boston123456.noreply@github.com |
071f4455fe0d1f60f156ab41e827e9bf8ac15021 | 3fe0db879006076936376ef1b8b573f300e4a9f8 | /client/gui/resources_rc.py | e3f8f80c0ebffd774d80e97f838f0ab2558ad24c | [
"MIT"
] | permissive | Laikos38/ADS-TP-Seguridad | a3e6eef37a208341481b8781528acf77acb4bec8 | d6cf0403a6c2e4eaed3adc344c28b3e82354d001 | refs/heads/master | 2023-05-27T11:27:10.789356 | 2021-06-04T21:42:03 | 2021-06-04T21:42:03 | 362,307,644 | 0 | 0 | MIT | 2021-06-04T19:38:57 | 2021-04-28T02:00:26 | Python | UTF-8 | Python | false | false | 24,439 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x12\xc6\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x01\x2c\x... | [
"j.f.maurino@gmail.com"
] | j.f.maurino@gmail.com |
186088d2e2d202f72cb654fef5b82afc371e8bb8 | 1643b8c9dfec62cb41e1172a8602ffc8d510b01b | /00-学习/1.0-类型-常量-输出-分支.py | 25e68268c74f7d42d92296498c68941b5ecf6bbf | [] | no_license | yangyiko/helloworld | 56b922f0b26342f37e5c4dee1c002c31940fb02b | 40da8a23b3de304a092574a2856d26d3920b176b | refs/heads/master | 2020-04-16T18:53:44.712759 | 2019-01-15T11:40:22 | 2019-01-15T11:40:22 | 165,839,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,278 | py | """注释"""
#===============================================================================
# """注释"""
#===============================================================================
# 特殊注释
# encoding=utf-8
# coding=utf-8
# _*_ coding:utf-8 _*_
# _*_ coding:utf-8 _*_
# Python2.x 版本
from test.test_tools.test_unparse impo... | [
"yangyiko@163.com"
] | yangyiko@163.com |
10912b08ab87df2a95943513ea9d012cdd01ef7b | b78ef5518bf4c735b86a8ecf50fba6cc95dd3fc8 | /django/09_DRF/drf/urls.py | bcbada83c30c75c633435b07318323fa2a5e78f5 | [] | no_license | AmberPark/TIL | 58ff9dcc4607ae199deb278d8f4971aafa6addac | b5a3455f15b3eeb35dc994116e06b74e67234669 | refs/heads/master | 2023-07-10T20:24:30.439653 | 2021-08-22T12:57:38 | 2021-08-22T12:57:38 | 332,991,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """drf 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-based vie... | [
"amberso1996@gmail.com"
] | amberso1996@gmail.com |
f6a760119a4c4b2c583957abb4a7066cbb64a2eb | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/066/A.py | cabb38041ad8e0ea035492830c9cef953fb894b2 | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 193 | py | def ringring(a: int, b: int, c: int)->int:
return sum(sorted([a, b, c])[:2])
if __name__ == "__main__":
a, b, c = map(int, input().split())
ans = ringring(a, b, c)
print(ans)
| [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
f0cb718b6420d11174583a18554cb1278090ca7f | b67693ed0ab64bc540dd5d4d24a8fb81efc08031 | /build/catkin_tools_prebuild/catkin_generated/pkg.develspace.context.pc.py | f30dc76d7d900620f2d7aaa1c1354eee7c788d31 | [] | no_license | kbhakt/epicIMU | 35cc609404ae3661ec435e4fc19a74d8d7c3ce89 | 0904281e4956bac47732577d65e25afee69aff06 | refs/heads/main | 2023-06-06T11:22:28.041534 | 2021-06-22T13:25:51 | 2021-06-22T13:25:51 | 379,272,854 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "catkin_tools_prebuild"
PROJECT_SPACE_... | [
"kbhakta3@gatech.edu"
] | kbhakta3@gatech.edu |
72d7de871b2fb085d76442aa9a24ad3405cd961b | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/centerface/preprocess.py | a985c6b64428994c27265c5fcd6ff413bee6b92a | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 2,585 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
12dc8e0255927fe426d8d84f615a6566ebf6cdb7 | ef2b79578ebb2fd8cbccbd2af53fc60a0a188f5f | /poc/polls/admin.py | 2881a09dbab98ca870e3c66313c6043cfdb728e2 | [] | no_license | oscarmyepes/django-polls | 15e999fdbd49b60747118bba3db3a44d3372c3f7 | c503349243b20d55285086faba106bbff535c095 | refs/heads/master | 2023-04-27T01:54:38.938285 | 2020-01-04T03:40:32 | 2020-01-04T03:40:32 | 231,703,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from django.contrib import admin
# Register your models here.
from .models import Question, Choice
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [(None, {'fields': ['question_text']}), ('Date information', {
'fields': ['pub_... | [
"oscarmyepes@gmail.com"
] | oscarmyepes@gmail.com |
fa3dc1be669911bfd6a1f491293bb3b01b26b80d | 288a4eaad55d56f86d61d8354e4d35ca98b75308 | /Python /is_number_a_prime.py | a36ab6e29bd6d218fd640f74ae2dc840edae11d4 | [] | no_license | KaniahDunn/codewars-solutions | 003a9e40654203bf2bbf89a33164a7b6057de1e8 | 141cc2c9dcdba04641528208e3df20d50abef1a7 | refs/heads/master | 2021-06-25T23:25:47.658294 | 2021-03-16T01:24:50 | 2021-03-16T01:24:50 | 217,607,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | """
IS NUMBER A PRIME ?
Define a function that takes one integer argument and returns logical value true or false depending on if the integer is a prime.
Per Wikipedia, a prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself.
Requirements
You can assume y... | [
"kaniahdunn@gmail.com"
] | kaniahdunn@gmail.com |
95869793a95931568444941801533d4d5e6cb5eb | d6be2453d1c4428a4b9d9f78ea80e7e1a39f0f5b | /src/utils.py | 20225ec0e46d35e08388cbfdfc634ce8c9a2e343 | [] | no_license | bcrestel/sls | 8f6a6356264747285fb193b2ebfa1c2914aa0fe3 | f0392135e5c4072e3341998651091c8455a882fb | refs/heads/master | 2020-12-15T16:51:03.663284 | 2020-10-06T14:22:58 | 2020-10-06T14:22:58 | 235,185,248 | 0 | 0 | null | 2020-01-20T19:47:07 | 2020-01-20T19:47:06 | null | UTF-8 | Python | false | false | 1,478 | py | import hashlib
import pickle
import json
import os
import itertools
import torch
import numpy as np
def hash_dict(dictionary):
"""Create a hash for a dictionary."""
dict2hash = ""
for k in sorted(dictionary.keys()):
if isinstance(dictionary[k], dict):
v = hash_dict(dictionary[k])
... | [
"issam.laradji@gmail.com"
] | issam.laradji@gmail.com |
701bd093bcd667f743047b4f0a4a5aac7dc88001 | 9b5d7dde000f5619ff4a752fc453f8ed5b2618e0 | /.history/main_20210924153614.py | d47094295983741c4ba3c32169bb49e2b9386307 | [] | no_license | Luyzr/EE7207_A1 | 4a2031221c5264ef70da516e370fbd9d6a068616 | 1c8592a0f8c7629848e494dd9dda8d14421a26a4 | refs/heads/master | 2023-08-14T10:10:51.113766 | 2021-09-29T10:58:00 | 2021-09-29T10:58:00 | 411,636,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,831 | py | import numpy as np
import math
import scipy.io
from sklearn.model_selection import KFold
# data_train.shape => (330, 33)
# label_train.shape => (330, 1)
# data_test.shape => (21, 33)
def Gaussian(x, c, t):
return math.exp(-1 * np.sum(np.square(x - c))/(2 * t**2))
def EstimateC(data, label, pn=30, pretrained=Fals... | [
"gentlelu@outlook.com"
] | gentlelu@outlook.com |
91489aef1cfcb6675882a5ed78249f485727af5a | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/access_package_request_state.py | 8d2207eae29267f561c8c719c8dc968d0f903cb0 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 410 | py | from enum import Enum
class AccessPackageRequestState(str, Enum):
Submitted = "submitted",
PendingApproval = "pendingApproval",
Delivering = "delivering",
Delivered = "delivered",
DeliveryFailed = "deliveryFailed",
Denied = "denied",
Scheduled = "scheduled",
Canceled = "canceled",
P... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
a31faa28ea7fa887dcbc8ad53795258aa189f931 | 498e792e16ab1a74ac034c53177c4cccbeef2749 | /classification/resnet/train.py | 662ceca52750777835c1b05e25f7eaacf8d247aa | [] | no_license | ydwisroad/imageprocessingpytorch | f97bec4469c087f6bbbca5d42da180c95be8b13f | bd8d1af228619c9c6c9c1a2b880422f7d5048dd5 | refs/heads/master | 2023-07-29T05:05:11.145832 | 2022-02-21T23:32:03 | 2022-02-21T23:32:03 | 284,976,501 | 7 | 3 | null | 2023-07-24T01:08:22 | 2020-08-04T12:43:24 | Jupyter Notebook | UTF-8 | Python | false | false | 4,052 | py | import torch
import torch.nn as nn
from torchvision import transforms, datasets
import json
import matplotlib.pyplot as plt
import os
import torch.optim as optim
from model import resnet34, resnet101
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
print(device)
data_transform = {
"train":... | [
"wandf12345@163.com"
] | wandf12345@163.com |
dcd109650ffae5939c920e522bef889514d1f60b | 8e0dd6f0a1936a15a23831db614697d783031df5 | /10K/LDA_10K.py | 76ef8a9b080a529fe5d8b207b7818395629801f1 | [] | no_license | Russzheng/Financial-Reports-Analytics | e7a375917c255d382ba3e02c1865ed71f50f4811 | c741ec8d858f8e01b4c04a57df8052e1d7184767 | refs/heads/master | 2021-07-21T09:53:37.411259 | 2017-10-27T06:42:39 | 2017-10-27T06:42:39 | 103,638,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | ####### GENSIM LDA for 10-K Filings #######
# GENSIM: wrapped python version of MALLET
# This gensim library is incredibly slow. sklearn
# library's perplexity calculation method is all wrong
# and the paper used MALLET. So we stick with Gensim.
# But it is really slow
# This file applies the LDA model using Gensim... | [
"noreply@github.com"
] | Russzheng.noreply@github.com |
c7d6ae9174a1d5de81776048a2bf38d10148c42d | 38c7e9a2752c03498d4807f263b60f7021f6667d | /src/doublebook/ebook.py | c08a9de4c04edcdb0884c40381c3e22df2176555 | [
"MIT"
] | permissive | plysytsya/doublebook | 2915ebbc8ae67cd77796776c990ffb3241af21f8 | 09dcd5399288c9544df928136a9e2f2e54639cbd | refs/heads/master | 2020-09-21T19:08:21.663868 | 2019-11-29T20:25:41 | 2019-11-29T20:25:41 | 224,893,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from .text_tokenizer import TextTokenizer
class Ebook:
def __init__(self, path):
self.path = path
self.read()
self.tokenize()
def read(self):
print("Reading text into memory.")
with open(self.path) as file:
self.content = file.read()
def tokenize(self)... | [
"pavlo.lysytsya@outfittery.de"
] | pavlo.lysytsya@outfittery.de |
4c308631d8558f3143ccd5dbbebe96c450af9f82 | 5b10b05d22c17836aa139239bd6d2e0c7c7d8427 | /5c1t/Algebra in Algorithms/task-10/all.py | 6a21a428e54addf4dfa6a630c2299db51c4abf75 | [] | no_license | a1ip/mipt-materials | f362218c095df61a9ade282726009909589c0e23 | 5e9d8cc5d32922e939d2f4c30d0250bb5352699f | refs/heads/master | 2023-03-21T12:54:21.519985 | 2018-05-21T17:33:37 | 2018-05-21T17:36:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,728 | py | from copy import deepcopy
import numpy as np
from collections import Counter, namedtuple
class Node:
def evaluate(self, *args, **kwargs):
raise NotImplementedError()
class InputNode(Node):
def __init__(self, name):
self._name = name
def evaluate(self, *args, **kwargs):
pass
... | [
"sautin1@yandex.ru"
] | sautin1@yandex.ru |
5bf7470e827eea42e7c8955e6c2fb564dbc45de9 | f453f183834e3bf587a120023615ed2ddd38c157 | /tsa/lib/encoders.py | 969cdf1f6c1712d900097659bf0862df709f2d35 | [
"MIT"
] | permissive | chbrown/topic-sentiment-authorship | 72c21638eb72888c370cd3b1b5f06504df09ce2e | e8cacf11b06583d9ed85ff790e1d5322e59f2fd6 | refs/heads/master | 2022-07-05T22:58:24.456139 | 2020-03-29T16:12:21 | 2020-03-29T16:12:21 | 13,025,589 | 0 | 0 | MIT | 2020-03-29T16:13:35 | 2013-09-23T02:53:40 | Jupyter Notebook | UTF-8 | Python | false | false | 492 | py | import json
from datetime import datetime
class JSONEncoder(json.JSONEncoder):
def default(self, obj):
if hasattr(obj, '__json__'):
return obj.__json__()
if isinstance(obj, datetime):
return obj.strftime('%Y-%m-%dT%H:%M:%S')
# return super(JSONEncoder, self).default... | [
"io@henrian.com"
] | io@henrian.com |
6b340d1d189577e17193f55e983367c6b759bdae | 459cc494fc3555b52c12b1861db0abfbd07a54b5 | /0x07-python-test_driven_development/2-main.py | 5af2d947114baf0589dcb6a498621a89a69bd5d4 | [] | no_license | ymcastellar/holbertonschool-higher_level_programming | a5dd910d9b1c52d21a2bed557147c3c9a5aa3ccf | f5bd4d7e6b7ada991b5d81cea2bb14212abb8888 | refs/heads/master | 2022-12-22T13:47:07.154798 | 2020-09-24T21:17:20 | 2020-09-24T21:17:20 | 259,443,832 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/python3
matrix_divided = __import__('2-matrix_divided').matrix_divided
matrix = [
[1, 2, 3],
[4, 5, 6]
]
print(matrix_divided(matrix, 3))
print(matrix)
print(matrix_divided(matrix, 3)) | [
"yoycas@hotmail.com"
] | yoycas@hotmail.com |
da82a7c906d4c100176b5994979f58c4b7d290da | ebc356d79226ffbb56438436b4abd13dc0594767 | /2018/pset6/cash/cash.py | e0e3f0d9757e1fe739dc7b043414089485a2c071 | [] | no_license | KevinStoneCode/CS50_2018 | 2f7aafe5b7f21bbecd3f91c3fa9b2827bc646df4 | 4030b9c9d884e30350d77466d82443a9de955840 | refs/heads/master | 2022-08-29T08:11:22.732539 | 2018-09-06T10:12:59 | 2018-09-06T10:12:59 | 145,199,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from cs50 import get_float
while True:
change = get_float("Change owed: ")
if change >= 0:
break
cents = round(change * 100)
coins = 0
coins += cents // 25
cents %= 25
coins += cents // 10
cents %= 10
coins += cents // 5
cents %= 5
coins += cents
print(coins) | [
"kwshih0212@gmail.com"
] | kwshih0212@gmail.com |
1eafdd1f445b525cf93c63c5472861c04502650d | 8bfdfde9886c85e5354bd97c9c754b821249c803 | /lib/OpenTokSDK.py | 1249027fddc8935ef371b1780db4885930e7a462 | [] | no_license | merrypuck/hotpot | 89587a715e4968c613f5fb67894f9f4985d1175c | 1debfa76ca206257c08a00710ba8c96b8c1b0635 | refs/heads/master | 2021-05-27T01:52:54.682419 | 2012-05-12T04:29:17 | 2012-05-12T04:29:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,821 | py |
"""
OpenTok Python Library v0.90.0
http://www.tokbox.com/
Copyright 2010, TokBox, Inc.
Last modified: 2011-10-12
"""
import urllib
import urllib2
import datetime
import calendar
import time
import hmac
import hashlib
import base64
import random
TIMEOUT = 10
class OpenTokException(BaseException):
"Gener... | [
"t@tinabeans.com"
] | t@tinabeans.com |
f18101feaea2825e198453f972be02107ee83e77 | ed0a3ebb8d26ea8451e5fab3af65aa37fe343c13 | /joins/forms.py | 0cb18bfebd20b82af03de008bb8afb8ba08e7236 | [] | no_license | alisaleh65/first_app | 7fbf516bae300a11ab31f36c14d5002750c3d3fb | 90e2c8a4a44e1f8e62a5f49215bfc4d4c49d8c4b | refs/heads/master | 2021-01-20T22:19:58.806751 | 2016-06-26T08:54:29 | 2016-06-26T08:54:29 | 61,530,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from django import forms
from .models import Join
class EmailForm(forms.Form):
name = forms.CharField(required=False)
email = forms.EmailField()
class JoinForm(forms.ModelForm):
class Meta:
model = Join
fields = ["email"]
| [
"alisaleh65@yahoo.com"
] | alisaleh65@yahoo.com |
cc9a5cfca7fa31d2f2c94d92b36a1c1bd5caae4b | a9e6a1dea27a984b7e3f46c56e5d62e57ac5d8a5 | /first/gevent/3.py | 8557daca47a4c80492bf9f028e91463ad466bcb9 | [] | no_license | spiderTom/pythonReference | fd2f21c0c3b919e08429b27464b4d161a20db2f7 | fa1d7de8630c12a8add3a7370a452daef0e62c73 | refs/heads/master | 2021-01-19T05:01:01.490392 | 2017-04-06T09:01:04 | 2017-04-06T09:01:04 | 87,408,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py |
def fibon(n):
a = b = 1
for i in range(n):
yield a
a, b = b, a + b
for x in fibon(20):
print(x)
| [
"tomtubo@163.com"
] | tomtubo@163.com |
c2527e5e639b13cb1d28b6c112b7544a225ffc45 | d538b6bae84256e241ebdc976bbe1a0d0b4ec7ee | /productDetails/forms.py | 23c107d05e7a99e435f01291b0f3565e22609a3c | [] | no_license | Sangeethsajan/WarehouseManagement | 871b3661c74922f7b524232867e5dc5d7b3dee59 | 30731a7538fa6278e9744c3060aa93f7e37fed79 | refs/heads/master | 2023-02-10T03:59:19.142042 | 2021-01-08T15:23:03 | 2021-01-08T15:23:03 | 327,938,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from django import forms
from .models import productDetails, productPath
class productForm(forms.ModelForm):
class Meta:
model = productDetails
fields ="__all__"
labels ={
'Product Name':'Name of Product',
}
def __init__(self, *args, **kwargs):
super(productF... | [
"31395590+Sangeethsajan@users.noreply.github.com"
] | 31395590+Sangeethsajan@users.noreply.github.com |
68f576c1e6ca803266988f8b0b0c5c830237888e | 6a2c43da788a27910bb11881e0e32b734b700e8e | /src/components/elements/groups_element.py | c1a3fbb027a3e7e22ddbb5efd5cf7daf6d68fa00 | [] | no_license | pitikdmitry/homework-4 | fa5ae5cd1e153dd98ccbbf299ee9ce0463efa275 | f456669dca4987b384f09bf4f00a1dcbc8e16467 | refs/heads/master | 2020-03-17T21:04:53.197276 | 2018-05-25T11:58:30 | 2018-05-25T11:58:30 | 133,942,398 | 0 | 0 | null | 2018-05-25T11:58:31 | 2018-05-18T10:53:20 | Python | UTF-8 | Python | false | false | 479 | py | from src.components.base_element import BaseElement
class GroupsElement(BaseElement):
MARKED_ITEM_NAV_BAR = '//a[@hrefattrs="st.cmd=userAltGroup&st._aid=NavMenu_User_AltGroups"]' \
'[@class="mctc_navMenuSec mctc_navMenuActiveSec"]'
def is_marked(self):
"""
Check for... | [
"ya.zubarevanton@yandex.ru"
] | ya.zubarevanton@yandex.ru |
977cd1f34ed3ff2b174cb7a5bb2ad1829606c277 | fbff973537eae45b724b23e9b6fc8692da959b21 | /app/core/config.py | 979658548ef83b1914a5730ab318dedd6ab5b824 | [
"MIT"
] | permissive | lsetiawan/cava-metadata | d4a8878480cd9da4bfa163b9d9c42d705a0fb263 | e45c469a4b5cbdebfba74ab0031fb94eb59fd724 | refs/heads/main | 2023-04-08T02:28:24.402853 | 2021-01-27T20:02:23 | 2021-01-27T20:02:23 | 358,033,596 | 0 | 0 | MIT | 2021-04-14T20:26:35 | 2021-04-14T20:26:35 | null | UTF-8 | Python | false | false | 1,418 | py | import os
import fsspec
# API SETTINGS
SERVICE_NAME = "Metadata Service"
SERVICE_ID = "metadata"
OPENAPI_URL = f"/{SERVICE_ID}/openapi.json"
DOCS_URL = f"/{SERVICE_ID}/"
SERVICE_DESCRIPTION = """Metadata service for Interactive Oceans."""
CORS_ORIGINS = [
"http://localhost",
"http://localhost:8000",
"htt... | [
"landungs@uw.edu"
] | landungs@uw.edu |
0c1a3d07a07d072f99c7a29312d13587a4198ea3 | f049ed97c00301ac9400bad7d53ad35909837ec2 | /doc_extractor/extractor/views_19.1.2021.py | c9dddd4be533a18412baf89a396f71f07555c397 | [] | no_license | vijay867777/sgk_git | 54afb4f826e65c8ef3f04698fc6fdda29e01587a | cc8856ebfd3639266bc2260f3d6a63047b50ff8a | refs/heads/main | 2023-02-24T22:08:55.310228 | 2021-02-03T07:12:17 | 2021-02-03T07:12:17 | 335,535,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,854 | py | # Django Libraries
# import concurrent.futures
from django.shortcuts import render
from django.http import HttpResponse , JsonResponse
from .models import *
# Custom Libraries
import pandas as pd
import numpy as np
import joblib
from laserembeddings import Laser
# from sentence_transformers import SentenceTransformer ... | [
"VIJAYKANAGARAJ@CHENMACL16.local"
] | VIJAYKANAGARAJ@CHENMACL16.local |
dbb9dfef04bde38e63f84dfddf9bbc7d5b6ad1a2 | c404b7f9d30cd47550b621f8f243dc4b1c2bdf8a | /a_byte_of_python/chapter10_backup_ver3.py | ffed5450115aa74531d2ba191a0cde7ab2edb502 | [] | no_license | ilxsh/python_learning | 768d7857cece0a48f05524393eb12e985b174302 | efbaa88d0339c21eb78cf96a81dd163ae377759f | refs/heads/master | 2021-01-10T10:19:12.965879 | 2015-12-24T18:32:07 | 2015-12-24T18:32:07 | 48,186,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Filename: backup_ver2.py
import os
import time
# 1. The files and directories to be backed up are specified in a list.
source = ['/home/test/backup1', '/home/test/backup2']
# If you are using Windows, use source = [r'C:\Documents', r'D:\Work'] or something list that
# ... | [
"David@jdsu.com"
] | David@jdsu.com |
4b2f6eff5f5301a631de8ff075d91eec3458cd2e | 7f43804828706cfd3635c1f1d8cfff1c7fc33beb | /2019/day08/day8.py | c42c2ca2f84644ceb98f510cc13bac1a3db0501b | [] | no_license | aldewereld/AventOfCode | b9149a0161d89cd550c53b20a3a42f069b520e41 | 2da755700593e98445736d23b16dfb10483df049 | refs/heads/master | 2020-09-23T08:44:25.553145 | 2019-12-12T13:43:14 | 2019-12-12T13:43:14 | 225,455,849 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | from typing import List, Tuple
from functools import reduce
with open("input.txt") as file:
line = list(file.readline().strip())
def split_layers(input_message: List[str], width: int = 25, height: int = 6) -> List[List[str]]:
layers = []
start = 0
step = width * height
end = step
fo... | [
"huib.aldewereld@hu.nl"
] | huib.aldewereld@hu.nl |
f9b589aa7e5cb26eda1a3b56bc67249768ee6093 | 4b819b9c7aee9d60689f487557e437445101188d | /lanuch/accounts/views.py | e04d7ebbd2e15bedabf699d153c0170baa54e03b | [] | no_license | Damidara16/dev | c2fe90fb70d4644bdee964ce9b7b85bf9f71c99a | f3c8666bc32b19ffb623b83019fdbf404433ece8 | refs/heads/master | 2020-03-10T20:14:11.173397 | 2018-04-15T00:56:56 | 2018-04-15T00:56:56 | 129,565,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | from django.shortcuts import render, redirect
from .forms import RegistrationForm, EditProfileForm, AddInfo
from django.contrib.auth.forms import PasswordChangeForm
from django.contrib.auth import update_session_auth_hash
from .models import Author
from blog.models import waste
from django.contrib.auth.models import Us... | [
"sajala8624@gmail.com"
] | sajala8624@gmail.com |
08ab74257fcfe8e582694e17d8f70578c069d383 | f15449e438b0b799a3866ba21243924ce0e4fa2d | /survey/models.py | e6565f3535ec711e92f3831b062f00dd86ac58f5 | [] | no_license | xmduhan/qisite | 46af79d0e4d1af814298862cfaa18c6f7ddf3a74 | 2c9d7513c3e0cd483341dc457a8d289e5e174f20 | refs/heads/master | 2021-01-17T08:44:29.826082 | 2020-02-07T11:22:29 | 2020-02-07T11:22:29 | 14,419,020 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,025 | py | # -*- coding: utf-8 -*-
from __future__ import division
from django.db import models
from django.db.models import F
import account.models
from datetime import datetime
from numstyle import NumStyle, defaultQuestionNumStyle, defaultBranchNumStyle
from django.core.exceptions import ValidationError
from django.core.signin... | [
"xmduhan@gmail.com"
] | xmduhan@gmail.com |
987811a6ffc6d66edfc20e22d3a6be53f16d4372 | 0b6dade21d327773ab958db6b85af3ef68dfbbe0 | /hello.py | bad42797591e2329f10c59a41eb9f9c0fd568a41 | [
"Apache-2.0"
] | permissive | maharsh-cmput404/cgi-lab | 8e10ba1762dee5650d2911c032b94e1dd3decd46 | b8b5a2bf15b7e689d7507f89e57506ab718e6863 | refs/heads/master | 2020-12-15T19:20:40.657703 | 2020-01-21T00:49:43 | 2020-01-21T00:49:43 | 235,226,103 | 0 | 0 | null | 2020-01-21T00:39:14 | 2020-01-21T00:39:13 | null | UTF-8 | Python | false | false | 202 | py | #!/usr/bin/env python3
import os
import cgi
import cgitb
cgitb.enable()
print("Content-Type: text/plain\n")
print()
# print("<!doctype html><title>Hello</title><h2>Hello World</h2>")
print(os.environ)
| [
"patel@maharsh.net"
] | patel@maharsh.net |
0f48da39bcd7577cbe908aaee672175a9921e808 | fc5e2a7873d39f93300f030eeff7678b7d09918c | /auth_middleware.py | 69158f54dc426f440f2aac2d3e5ce55a33f614c0 | [] | no_license | kubamvictor/mlflow-tracking-template | 357d01d82dd789bfab6fbda5e9ef70bdf58858c2 | 1990459979be28fb0d6495cc22ddc364f19dd2e8 | refs/heads/master | 2022-11-12T00:52:46.453922 | 2020-07-01T18:34:08 | 2020-07-01T18:34:08 | 276,577,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | class AuthMiddleware():
"""
Middleware for authenticating requests sent to a flask app
"""
def __init__(self, app):
self.app = app
self.token = 'YHON36336hhngEYEY'
def __call__(self, environ, start_response):
# Validate token
if self._authenticated(environ.get('HTTP... | [
"kubamvictor@gmail.com"
] | kubamvictor@gmail.com |
714db4e6784f72403c33549680bae507b0d5bb17 | b951b28a8957cc788ea297a294766117b6ee9e04 | /task_2.py | a6aef9d9e9ef01ef8c7cbd86d178b29c6a4962f5 | [] | no_license | goodprogrammist/module3 | ada4b757a1020614b86a6e36eca9718aa6aeb546 | 4dd60fbf7b948dfa4398406960a73a25d3eb6ec6 | refs/heads/master | 2023-04-20T22:37:58.072734 | 2021-05-15T15:26:08 | 2021-05-15T15:26:08 | 367,620,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | print('Задача 2. Финансовый отчёт')
# Наде дали задание сформировать финансовый отчёт за последние 20 лет по полугодиям.
# Нужно сумму дохода первых двух кварталов поделить на сумму последних двух кварталов,
# чтобы понять динамику роста или падения дохода. И так за каждый год.
#
# Надя решила,
# что быстрее буде... | [
""
] | |
3dbdb608cd2de3f1278d8f0339287fd5ce40c676 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0844-Backspace-String-Compare/soln-1.py | cf9b6afca02d5b7deeaed1a8aa8d927a70cbd4e0 | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 600 | py | class Solution:
def backspaceCompare(self, S, T):
"""
:type S: str
:type T: str
:rtype: bool
"""
i, j = len(S) - 1, len(T) - 1
bs, bt = 0, 0
while True:
while i >= 0 and (bs or S[i] == '#'):
bs = bs + 1 if S[i] == '#' else b... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
79697ef0b2a734acad1ab51ba409899d1f512b1f | ad314542195e2eb8ae2ba343a47a27a530f5969d | /utils/label_plot.py | 5202c7398090e2de686bc1961839e000b2d73a44 | [] | no_license | vivianyaya/SHL2021 | 183ad722f8aa34dab93c4fb5cb07f7a1f1473a35 | d610ba2b2134a915e617c81d5e24c31acac3b3c3 | refs/heads/main | 2023-06-04T03:10:05.535868 | 2021-06-25T03:19:10 | 2021-06-25T03:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
import seaborn as sns
plt.style.use("dark_background")
label_dic = {1: 'Still', 2: 'Walking', 3: 'Run', 4: 'Bike', 5: 'Car', 6: 'Bus', 7: 'Train', 8: 'Subway'}
cmap = mpl.cm.get_cmap('viridis', 8)
label_cols = cmap(np.linspace(0, 1, 8))
labe... | [
"1609532549@qq.com"
] | 1609532549@qq.com |
41ef232e7c76144c75891a57dcc4d00868f32726 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/pandas/tests/scalar/timedelta/test_arithmetic.py | 555b47c8dc0fc9a2a6f68e9ffd73c8a00e312d4d | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 24,619 | py | """
Tests for scalar Timedelta arithmetic ops
"""
from datetime import datetime, timedelta
import operator
import numpy as np
import pytest
import pandas as pd
from pandas import NaT, Timedelta, Timestamp, _is_numpy_dev, offsets
import pandas._testing as tm
from pandas.core import ops
class TestTimedeltaAdditionSub... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
50eb91f0fbd18a59b7eb5e494dc487cac5caadee | 821985c62bf469b72a7d451560a455aefe2c7bd0 | /A、机器学习/机器学习实践/RandomForest/4.RandomForestClassifier_Enum_iris.py | bc292c16243930d4ddca12758d85363a76bc9f66 | [] | no_license | FangChao1086/Machine_Learning | 625106c977055328368100dae30f00909aff590c | 603900b510a9a64f4bb6fcc7753546b34828e022 | refs/heads/master | 2020-04-16T13:20:53.675722 | 2020-03-14T03:33:21 | 2020-03-14T03:33:21 | 165,622,654 | 14 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn.ensemble import RandomForestClassifier
def iris_type(s):
it = {b'Iris-setosa': 0, b'Iris-versicolor': 1, b'Iris-virginica': 2}
return it[s]
# 'sepal length', 'sepal width', 'peta... | [
"“fangchao1086@163.com"
] | “fangchao1086@163.com |
13c52a06183456edede58129114517b459640d65 | 879e9f1d5ef7a48a33dc7851c7ebf8bddf8cfc2b | /apistar/backends/django_orm.py | f2ddd2f99439b61c8b22148bbced29eaa47f06a9 | [
"BSD-3-Clause"
] | permissive | mehrdadmhd/apistar | ed3dcd1f1a86ddfc602421f5f720009a535cd841 | 5cd30d380457b870961c32fad394745778d08a1c | refs/heads/master | 2021-04-09T16:04:22.655897 | 2018-03-18T11:09:40 | 2018-03-18T11:09:40 | 125,716,342 | 0 | 0 | BSD-3-Clause | 2018-03-18T11:06:28 | 2018-03-18T11:06:28 | null | UTF-8 | Python | false | false | 2,275 | py | import contextlib
import sys
import typing
import django
from django.apps import apps
from django.conf import settings as django_settings
from django.core.management import call_command
from django.db import connections, transaction
from apistar import Command, Component, Settings
class DjangoORM(object):
def _... | [
"noreply@github.com"
] | mehrdadmhd.noreply@github.com |
829fb7ef3ac2065f715fbf5de042422456c84678 | 0fba7a95a16bd8351ccfdf806dde5f48f1e0b137 | /localsite/migrations/0031_auto__add_field_seatlocation_hallscheme.py | 2af37f723707ba51878ebeb9ab87092cba79eda7 | [] | no_license | yanchenko-igor/shop-ticket | 3e36c2c664241391fc02e90d239ff9458e601209 | 0093a3c1eb8025f480ecf67692ad1340ddf38296 | refs/heads/master | 2020-05-21T12:13:18.652894 | 2011-12-02T15:00:44 | 2011-12-02T15:00:44 | 3,631,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,138 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'SeatLocation.hallscheme'
db.add_column('localsite_seatlocation', 'hallscheme', self.gf('dj... | [
"yanchenko.igor@gmail.com"
] | yanchenko.igor@gmail.com |
1dd9830ae74fa5d06a572e1f0b7f6445fd3ae66c | bb27630e7af7f1bccbb5cfc892d0b0e6445fe874 | /05_django/01_djangoIntro/django_formTest/formTestApp/apps.py | f318035ab1e56dfebb9f0f7f047dd9a3a89e5c53 | [] | no_license | MrBreakIT/pythonStack | fe8cd9418ee1060ada8cd1c446332d81facecf4e | f615436dbff581c50ded70dec6532f6339977c1d | refs/heads/main | 2023-02-06T14:37:05.688885 | 2020-12-27T22:37:09 | 2020-12-27T22:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class FormtestAppConfig(AppConfig):
name = 'formTestApp'
| [
"johnpike1022@gmail.com"
] | johnpike1022@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.