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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aec5cebc7c02dfa2d6a9bd26431eef3f3eb82c51 | 9870d2c6880fd3fa558c46e3bf160aae20c74157 | /permuteUnique.py | f104cb1cf5024240cfeb1b15ac8dd83327f3196d | [] | no_license | Yigang0622/LeetCode | e7f7f115c6e730c486296ef2f1a3dd1a3fdca526 | c873cd1ee70a2bdb54571bdd50733db9f6475e9e | refs/heads/master | 2023-03-03T14:32:25.498633 | 2021-02-15T13:59:00 | 2021-02-15T13:59:00 | 281,423,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # LeetCode
# permuteUnique
# Created by Yigang Zhou on 2020/9/18.
# Copyright © 2020 Yigang Zhou. All rights reserved.
# 47. 全排列 II
# https://leetcode-cn.com/problems/permutations-ii/
from typing import List
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
ans = []
vi... | [
"zhou@zygmail.com"
] | zhou@zygmail.com |
b74676e45149ad9bbe55f3f25d2e2048b5786119 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/AHU_Heating_Demand_Setpoint.py | ec0c93fb165063c910beab5029a9309ddd5da42c | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Heating_Demand_Setpoint import Heating_Demand_Setpoint
class AHU_Heating_Demand_Setpoint(Heating_Demand_Setpoint... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
ef044ae299db9f398d052e194ee8cd25f4f925be | 71cc41abe5aa896e4e09faa004b7b3e67004946e | /programming-with-guis/ex-02-06b.py | 94fbf509813f6223b20c8b516912a5e0187f7241 | [
"Apache-2.0"
] | permissive | psiborg/FutureLearn | 0f1872c0e194dab2b3e311d8122838816196c9f0 | f6ca371d740a1054d3a3fcbb3502b44fe9f73f59 | refs/heads/main | 2023-04-25T02:34:29.236519 | 2021-05-06T04:27:52 | 2021-05-06T04:27:52 | 352,233,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | #!/usr/bin/env python3
# programming-with-guis
# Ex. 2.6b
from guizero import App, Text
# this time we have not set the layout to auto as it is default
app = App(title="align")
# create a series of widgets each with a different alignment
top_text_1 = Text(app, text="top_text_1", align="top", bg="#330000", color="#FF... | [
"jim.ing@gmail.com"
] | jim.ing@gmail.com |
a1ac6616d7ceb4489edaba41e6502f59f0a9cb80 | 4ab99b7fb72f95f76a11dbeaf179120ab57de53f | /RN2.py | c25ff80d02f7c26dbe8d3626bee05b27881fca0f | [] | no_license | sepideh06/ProcessingDataAnalysisCommunicationBehavior | 04c7f01ae450f11d97c3fbe67c19bfa895924e64 | 285464ec13f1bf14f72eda76b5d6a36b90f5349f | refs/heads/master | 2021-07-09T15:01:37.732509 | 2020-08-01T14:27:11 | 2020-08-01T14:27:11 | 177,779,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers import Dropout
import tensorflow as tf
# Just disables the warning, doesn'... | [
"noreply@github.com"
] | sepideh06.noreply@github.com |
24e062b0a347efb144c793470090a11891eac1ea | cae6097057099a88324f5ecaf2417ff85cf46ad4 | /CodigoML/Regresion/regresion.py | 75c3ad8958b0b71fa55384a58b90135291d6e90c | [] | no_license | mayralina/python-code | ec5adaf8d0638558ad249efdf1606b1eda530997 | 244c0714878ab6cdeca5934491550fa543470139 | refs/heads/master | 2020-06-18T22:08:06.764226 | 2019-07-11T21:43:36 | 2019-07-11T21:43:36 | 196,468,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | #import
import matplotlib.pyplot as plt #Para hacer graficas
import numpy as np #Para preparae mis dat
#importing from scikit-learn (librerias de Machine Learning)
from sklearn import datasets, linear_model
#Load dataset
house_price = [245,321,279,308,199,219,405,324,319,255]
size = [1400,1600,1700,1875,1100,1... | [
"root@nn2.innovalabsnet.net"
] | root@nn2.innovalabsnet.net |
3d0acf4566d6c149de4d7e08be4584349f50dc07 | 9f98a10049e2c1417ca08d8b03f8bdbd7f228fa4 | /py_test/algorithm/等差数列.py | fcfa382b780475ce40abcddc5cf4af29d4eee511 | [] | no_license | gallofb/Python_linux | 73870ac6e3cd1aa66c89fdacd1fc6fefb27c69cf | ec330d2bbbb7c05367ed55f8801614ae48444d7c | refs/heads/master | 2020-04-13T23:52:10.724678 | 2019-05-09T13:13:25 | 2019-05-09T13:13:25 | 163,517,895 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | # 题目描述
# 如果一个数列S满足对于所有的合法的i,都有S[i + 1] = S[i] + d, 这里的d也可以是负数和零,我们就称数列S为等差数列。
# 小易现在有一个长度为n的数列x,小易想把x变为一个等差数列。小易允许在数列上做交换任意两个位置的数值的操作,并且交换操作允许交换多次。但是有些数列通过交换还是不能变成等差数列,小易需要判别一个数列是否能通过交换操作变成等差数列
# 输入描述:
#
# 输入包括两行,第一行包含整数n(2 ≤ n ≤ 50),即数列的长度。
# 第二行n个元素x[i](0 ≤ x[i] ≤ 1000),即数列中的每个整数。
#
# 输出描述:
#
# 如果可以变成等差数列输出"Possible"... | [
"854591086@qq.com"
] | 854591086@qq.com |
742775c2a1a92a8b26038369364d0226d91ec913 | 23579a08f36a6c5e627e489458f85edd44400710 | /mosaic_constants.py | 63034fcbd7447f052002019053bfe0f6b82c6433 | [] | no_license | just-jason/qd_mosaic | 42aeac053a878972a7fa6f1a3075e3224fd77dd3 | 27e6a2d05c03467c5a9356579a21198f530c402e | refs/heads/master | 2022-12-05T09:44:27.769635 | 2020-08-25T19:14:52 | 2020-08-25T19:14:52 | 290,292,356 | 0 | 0 | null | 2020-08-25T18:27:06 | 2020-08-25T18:27:06 | null | UTF-8 | Python | false | false | 232 | py | render_path = "renders"
json_path = "jdata"
set_path = "thumbs"
thumbs_path = "thumbs"
bdata_path = "bdata"
# this is intended to simulate a medium pen stroke if the 256x256 thumbnail represents a quarter inch
thumb_pen_width = 15
| [
"jim.bumgardner@disney.com"
] | jim.bumgardner@disney.com |
bba14463d406a243a6adeccd39f8417cc67a5a1f | 5e8c431bd8cf9717e62c3205f59520c21b872026 | /model/attention.py | 5ea1f43c9b575640d4bc77036e0e390a23a70c18 | [
"MIT"
] | permissive | helang818/MA-Net | 3543fc13559b797200b7da49d265c322c478f274 | c90cfd2e05046945a1aefe1c9c998202c298c224 | refs/heads/main | 2023-08-24T04:59:41.359213 | 2021-11-08T02:26:25 | 2021-11-08T02:26:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicConv(nn.Module):
def __init__(self, in_planes, out_planes, kernel_size, stride=1, padding=0, dilation=1, groups=1, relu=True, bn=True, bias=False):
super(BasicConv, self).__init__()
self.out_channels = out_planes
... | [
"noreply@github.com"
] | helang818.noreply@github.com |
76503fd44f477611362807b50923b0b3951640ba | 277d0a33645f2f821216d15f1b4b1be6aa6b5fa7 | /oneflow/python/test/ops/test_TestSourceMultiGpuFixedOutNum.py | 9432f0170af3b51cfae13dc814bfc53f941a8e8e | [
"Apache-2.0"
] | permissive | lenran/oneflow | 504a255af0ffae8e24f6515311859524650e110c | 7c34e35ad6505bc12b48ce0fafa20322d280b2b1 | refs/heads/master | 2023-01-24T17:52:33.857444 | 2020-11-20T08:50:07 | 2020-11-20T08:50:07 | 283,967,294 | 0 | 0 | Apache-2.0 | 2020-11-20T08:49:39 | 2020-07-31T07:05:59 | null | UTF-8 | Python | false | false | 1,811 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | lenran.noreply@github.com |
3a1d924c60e44b082e8e80f48a9fc1f1261a5e56 | fd099ad76c29e5dd740d920127ef11bd16a45c97 | /server/jobeditor/jsonencoder/__init__.py | 5cd6b57b38365695c45a876b4ef99899f2b400b9 | [
"MIT"
] | permissive | zhangyanwei/job-chain-editor | 5de614ca49640c9fc17d9e74618c313c3f625d73 | 56a2b2b10718abb3dc7e4e313a0ec11c10f5a82a | refs/heads/master | 2023-01-13T02:19:35.264405 | 2019-11-13T16:02:23 | 2019-11-13T16:02:23 | 221,485,814 | 0 | 0 | MIT | 2023-01-04T13:10:34 | 2019-11-13T15:05:38 | Vue | UTF-8 | Python | false | false | 892 | py | import importlib
import os
from flask.json import JSONEncoder
class AutoJSONEncoder(JSONEncoder):
registered_encoders = dict()
def default(self, obj):
try:
encoder = AutoJSONEncoder.registered_encoders.get(type(obj), None)
if encoder:
return encoder(obj)
... | [
"verdigris@163.com"
] | verdigris@163.com |
3eee96b13023b5a6cebfa82b4a4612ea73ac4b80 | bf304def5b7993bc940cdd79321557401934747e | /backend/accounts/migrations/0012_remove_user_name.py | f6dd64ddf6ea00107d384251f2cd42d5c9f74345 | [] | no_license | simaogoncalves10/projeto_vce | c325c412ade1809e9f29600c7de294149e131eee | dfdbe8d2e2398052c3b6f64a428a7ed0fa424275 | refs/heads/master | 2023-04-16T07:04:04.103378 | 2021-04-11T13:32:02 | 2021-04-11T13:32:02 | 352,689,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | # Generated by Django 3.1.7 on 2021-04-05 21:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0011_user_name'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='name',
),
]
| [
"49321479+HFaria10@users.noreply.github.com"
] | 49321479+HFaria10@users.noreply.github.com |
a2ac6bbdfff0323c8f4fe83e2d2d49e05e23d939 | 06f0e1477b41c543f9a37e46582038d9f9a78c35 | /sysin.py | 8178a3570331feadf1c925cbd3c359a3f9f93f54 | [] | no_license | imtiyaz86/firstrepo | ab0cb93c78d65deef30951758e8679334d0c00d3 | 5a42a129dc3e556815ce27d29dd17ebd1e65d1ce | refs/heads/master | 2020-05-09T23:59:53.708525 | 2019-05-14T21:03:17 | 2019-05-14T21:03:17 | 181,518,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/local/bin/python2.7
from pysysinfo import disk_func
import subprocess
def tmp_space():
tmp_usage = "du"
tmp_arg = "-h"
path = "/tmp"
print "Space used in /tmp directory"
subprocess.call([tmp_usage, tmp_arg, path])
def main():
disk_func()
tmp_space()
if __name__ == "__main__":
m... | [
"imtiyaz@linux2.(none)"
] | imtiyaz@linux2.(none) |
570db6accc88fe50729a6579d12fd3b3c150c75c | 65c3e7139829829dd1410228e17f85c285ab0706 | /Aniyom Ebenezer/Phase 2/STRINGS/Day_29_Challenge_Solution/Question 8 Solution.py | d443f353ceb9d57814ceb49adf93228d5ddd05d5 | [
"MIT"
] | permissive | eaniyom/python-challenge-solutions | 167e9d897d0a72f1e264ff2fed0e4cc5541b0164 | 21f91e06421afe06b472d391429ee2138c918c38 | refs/heads/master | 2022-11-24T02:57:39.920755 | 2020-08-05T09:23:04 | 2020-08-05T09:23:04 | 277,686,791 | 1 | 0 | MIT | 2020-07-07T01:31:00 | 2020-07-07T01:30:59 | null | UTF-8 | Python | false | false | 308 | py | """
Write a Python program that takes a list of words and retuerns the length of the longest one.
"""
def longest_words(word_list):
word_len = []
for n in word_list:
word_len.append((len(n), n))
word_len.sort()
return word_len[-1][1]
print(longest_words(["PHP", "Python", "Backend"])) | [
"eaniyom@gmail.com"
] | eaniyom@gmail.com |
3bc8b0b394a8af2e20d9c16af406ae9f47ba8965 | 7951f2a1453ac33f53e49e465d61ebd74f3a0b86 | /Test03.py | 9dd851bda1ba466d18bb1931d889a3a12adb9318 | [
"Apache-2.0"
] | permissive | lebronjames/python1 | 363845885b44f8be473aa19d26e954a942e30ed4 | 06bfb3d85ea4415217d65ab37ca22b10e217a74a | refs/heads/master | 2021-05-14T04:13:15.070058 | 2018-01-12T08:54:02 | 2018-01-12T08:54:02 | 116,638,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | a = 21
b = 10
c = 0
if (a == b):
print("1 - a 等于 b")
else:
print("1 - a 不等于 b")
if (a != b):
print("2 - a 不等于 b")
else:
print("2 - a 等于 b")
if (a < b):
print("3 - a 小于 b")
else:
print("3 - a 大于等于 b")
if (a > b):
print("4 - a 大于 b")
else:
print("4 - a 小于等于 b")
# 修改变量 a 和 b 的值
a = 5;
... | [
"798258843@qq.com"
] | 798258843@qq.com |
a6c7e17f4c7f3b8822cda3e26700ed7e9cc210f9 | 6bd31df3ea78052d451cf6d81a27f28192f51bad | /app/__init__.py | 7e413f39fa982200733a2b980f4e5c4dbbd6c2b6 | [] | no_license | hasanmehmood/KeyValue_pair_increment | 94e2efc4b355abcd4446573fba02a3bb497b3a69 | e23ca7f42ec70a16cfc7a304040b2a1388c1c84c | refs/heads/master | 2023-05-12T12:48:51.562072 | 2020-04-08T18:18:38 | 2020-04-08T18:18:38 | 39,795,268 | 2 | 1 | null | 2023-05-01T20:14:46 | 2015-07-27T20:04:17 | Python | UTF-8 | Python | false | false | 226 | py | from flask import Flask
# Loading all configurations to flask app
app = Flask(__name__)
app.config.from_object('app.settings')
from app.models import KeyValue
from app.resources import keyvalue
from app import routes, views
| [
"hasanmehmood123@yahoo.com"
] | hasanmehmood123@yahoo.com |
aeb7c078d7b9c8346f32a9a6fabb972f2683eadf | 9bce3862ef1c6235212a49cf49d300e0532be92c | /politico/Exceptions/handler.py | 6e8b2d397fc6c7909a4eefba84197c2cfe36c130 | [] | no_license | erycoking/Politico_API | d7f5458267dee0736ba154e602869d75514abde2 | 004727b03bfb77bd8d717bcf59b3fa3af5d699a0 | refs/heads/develop | 2022-12-09T08:24:37.589001 | 2019-03-06T01:40:29 | 2019-03-06T01:40:29 | 169,312,409 | 1 | 1 | null | 2022-12-08T01:37:36 | 2019-02-05T21:03:40 | Python | UTF-8 | Python | false | false | 511 | py | from flask import Flask, Blueprint, make_response, jsonify
from werkzeug.exceptions import default_exceptions
error = Blueprint('error_handler', __name__)
@error.app_errorhandler(Exception)
def handle_error(err):
message = str(err)
err_list = message.split(' ')
if str(err_list[0]).isdigit():
statu... | [
"erycoking360@gmail.com"
] | erycoking360@gmail.com |
b41a85c4442578767973735198a8e87f0a30bf9f | 404fa161db6c3e2a2ef5b657d64f38804774fd51 | /pyzoo/test/zoo/orca/learn/ray/tf/test_tf_ray_estimator.py | 15ddd998adf3530403650602ad0654b03878630a | [
"Apache-2.0"
] | permissive | masir110/analytics-zoo | 6e6d409a40db0c98256f03cb73da1d0ab2bb236b | 6a8f90a8b4886026696843a12cf362861ee26a2f | refs/heads/master | 2022-12-11T14:27:22.891358 | 2020-08-26T01:27:29 | 2020-08-26T01:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | #
# Copyright 2018 Analytics Zoo Authors.
#
# 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... | [
"noreply@github.com"
] | masir110.noreply@github.com |
28d5e3dae132663d27b2d5c4430019896f8b3eef | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/sympy/combinatorics/free_groups.py | 2150e670e4015d91706a458585d33802adc1eba1 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 40,158 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division
from sympy.core.basic import Basic
from sympy.core.compatibility import is_sequence, as_int, string_types
from sympy.core.expr import Expr
from sympy.core.symbol import Symbol, symbols as _symbols
from sympy.core.sympify import CantSympify
from sy... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
bf948013cefb5f8b525ed00d1b23ecdad0ebc9c0 | d1c5176a1cb370addfb3ef0dabb303fefb9c6f87 | /struktury_danych/gra 10x10.py | 624d921c63a93bfdc1f98db4bc2d321dc6623dea | [] | no_license | fzubowicz/Python_bootcamp | 72d58f49f744ae5711f65446433b49be26e4351c | 12d6624f0070038a8a0f28a2d09325a2100f0941 | refs/heads/master | 2020-03-22T12:58:41.499223 | 2018-07-08T14:58:27 | 2018-07-08T14:58:27 | 140,074,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import random
gracz_x = random.randrange(1,11)
gracz_y = random.randrange(1,11)
skarb_x = random.randrange(1,10)
skarb_y = random.randrange(1,10)
print(f'Debug: gracz x: {gracz_x}, y: {gracz_y}')
print(f'Debug: skarb x: {skarb_x}, y: {skarb_y}')
krok = print(f'Podaj w którą stronę idziesz:\n'
f'[l]ewo... | [
"fzubowicz@gmail.com"
] | fzubowicz@gmail.com |
d50ee5614b6458f9b37e671f7f4b5bf5761a9488 | ca082797e89e12138e7daac2d5fda41d072ac3bf | /constants.py | 14fe1728db33e6fd09f69ae6097d6f32f74a6e8f | [] | no_license | SmileyJoe/pygame_tetris | 18a05df529afcc58c1a031076932d65e15d1ad7a | bcff26fc5f29a2a14af2a72de8be487cacea4d05 | refs/heads/master | 2021-08-18T04:41:03.495808 | 2020-08-08T21:08:49 | 2020-08-08T21:08:49 | 212,444,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | BLOCK_WIDTH = 20
| [
"noreply@github.com"
] | SmileyJoe.noreply@github.com |
2a814317557e930c6e5fe3fcb7968d5290cec338 | 548659eb5d932a338a4399ff920b4efe91461d64 | /day-07/part-2/remi.py | 7f327b14abbf2a737fda1c3cbace12a21bee63f6 | [
"MIT"
] | permissive | lypnol/adventofcode-2019 | 7b3535d3e17b3283db237c86055b8531704ba080 | ca244804d4bcb08404a0ba011c05d9b8ca322a98 | refs/heads/master | 2022-02-06T00:03:02.821888 | 2022-01-23T14:27:38 | 2022-01-23T14:27:38 | 223,915,089 | 9 | 6 | MIT | 2022-01-23T14:27:38 | 2019-11-25T09:53:40 | Python | UTF-8 | Python | false | false | 3,637 | py | from tool.runners.python import SubmissionPy
from itertools import permutations
class RemiSubmission(SubmissionPy):
def run(self, s):
p = [int(n) for n in s.split(",")]
m = 0
for sequence in permutations([5, 6, 7, 8, 9]):
p_input = 0
amps = [IntCode(p.copy(), seq... | [
"remicalixte.rmc@gmail.com"
] | remicalixte.rmc@gmail.com |
6bf1ec396da74c8fa242c13abb1eb5677f823eb5 | 8936c124497e3fbd3108f77ca90c69b0a71403d2 | /Project 3 - Graph plan/search (1).py | 6cc31ff36f6bc9c6c6f3b3090dc5ad92df506a46 | [] | no_license | shaharec/into-to-AI | 752f426867f639775eb2919047f2a46045978f66 | 8e1006789b047972f8b6f72d2938e11de6870453 | refs/heads/main | 2023-05-08T11:37:25.160133 | 2021-05-30T19:18:15 | 2021-05-30T19:18:15 | 348,135,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,577 | py | # search.py
# ---------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan Klein (klein@cs.be... | [
"noreply@github.com"
] | shaharec.noreply@github.com |
0f95d1f0afd35793d831794f083971ba12078c33 | 335747796db247660fae03be38d39dc4030520c3 | /tests/repositories/test_service_repository.py | 5cb8f47174b8d660c079eb718c0863ff48d26569 | [
"Apache-2.0"
] | permissive | Neoklosch/Motey | 633f550c90815c523265afa5ab2307a3c5aa2df3 | d3f07d9d161d97ec2c19f66167dfb26eb9c6e616 | refs/heads/master | 2022-08-25T09:04:35.480653 | 2019-06-27T20:16:18 | 2019-06-27T20:16:18 | 90,272,879 | 0 | 1 | Apache-2.0 | 2022-08-06T05:22:14 | 2017-05-04T14:28:01 | Python | UTF-8 | Python | false | false | 2,546 | py | import unittest
import uuid
from unittest import mock
from tinydb import TinyDB, Query
from motey.repositories import service_repository
class TestServiceRepository(unittest.TestCase):
@classmethod
def setUp(self):
self.text_service_id = uuid.uuid4().hex
self.test_service = {'id': self.text_... | [
"markus.paeschke@gmail.com"
] | markus.paeschke@gmail.com |
e4b140bd4a3681c4aff2b85b0c7660c38588549f | 9c0eebdeb427db1ea1ce33987947e22b2c897440 | /map.py | 1925fc08dc7034e1f11acc9e148e356e5ec8fb80 | [] | no_license | dkotenko/npuzz | 6d52c2ca9d733c8d59450af65f89c8bbac938134 | 461a864659893ec8276fafe3e58f73d853d1e42c | refs/heads/main | 2023-06-22T06:30:10.979771 | 2021-07-13T23:54:21 | 2021-07-13T23:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | from Printer import Printer
import sys
def parse_int(s):
n = 0
try:
n = int(s)
except ValueError:
s_value = s.strip() if s.strip() else '{empty value}'
Printer.print_error_exit(f"map error: string {s_value} is not an integer")
return n
def validate_map(b):
... | [
"you@example.com"
] | you@example.com |
0a5e75d64b3e21d510ec0712d34ca4a20c0fb542 | 90c3318ee2beec4c11cd5d4b3afd35036b5539bb | /users/migrations/0001_initial.py | 0bc92427506d348f68138bbb47d34378429f7ea3 | [] | no_license | 17100262/Django-Blog | c81ec0714643081a604ad260f086fcd34d413e6b | acce7013c4da7d0a50d5f42ec334bf396829b8e1 | refs/heads/master | 2022-12-18T09:54:15.250520 | 2020-09-11T16:35:27 | 2020-09-11T16:35:27 | 294,742,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # Generated by Django 3.1 on 2020-08-30 18:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"maueezahmed@gmail.com"
] | maueezahmed@gmail.com |
77ab769c1b8aec8167006b5f2add5683816dfb8c | 39f6aac24796f9cec335f7c5ad1e41fc9eb82bd3 | /scratch/method_1_poly.py | 33afd259e2beebb9eb847d1941eba4b44e8a08b2 | [] | no_license | saqibnizami/DSI-Project-2 | 578dba10c2da2273c82d5b006315fbfd87c8f20d | 03a76f10297a699e0a613d660a199237e29cce48 | refs/heads/master | 2020-07-17T07:34:07.493021 | 2018-07-17T12:10:26 | 2018-07-17T12:10:26 | 205,975,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,069 | py | # Get data
t = pd.read_csv("train.csv")
tt = pd.read_csv("test.csv")
t.columns,tt.columns
len(yt)
t.drop(['Id',], axis=1, inplace=True)
tt.drop('Id', axis=1, inplace=True)
t.shape,tt.shape
train = pd.concat((t,tt)).reset_index(drop=True)
train['SalePrice'].isnull().sum()
y = pd.DataFrame(train['SalePrice'])
y.shape... | [
"github@generalassemb.ly"
] | github@generalassemb.ly |
fab03a8abd843c2bbb6cdfa193cea2dbb5d74fd0 | baea4ae8aac7f57cbd374e4c1fe7b21206e9b380 | /forecast/urls.py | 709f1bdb1a9a444d43c6fb1925fbd5c8dc52c71a | [] | no_license | IHautaI/missions-forecast | ac2deb3ab24a5505e1261dc42d2b701996a696f1 | 9ebe4d5b9a9a38d355383fa6f96bf6a93bd821c8 | refs/heads/master | 2021-01-10T18:41:03.489170 | 2015-06-15T14:12:37 | 2015-06-15T14:12:37 | 37,431,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^specialist/(?P<specialist_id>[0-9]+)/$', views.specialist, name='specialist'),
url(r'^country/(?P<country_name>(?:\w+\s?)+)/$', views.country, name='country'),
url(r'^country/(?P<country_name>(?:\w+\s?)+)/relevant/$', \
... | [
"greshjs@gmail.com"
] | greshjs@gmail.com |
d58c5d69ac4d4936a7aeabe6f33219107db46479 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYBBHToTauTau_M-1000_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467519/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_7/run_cfg.py | ecd7e088550ddaf95adcd0944c067d9074645308 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYBBHToTauTau_M-1000_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467519/HTT_24Jul_newTES_manzoni_Up_J... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
ae706498d56f2fd63d7b4d2949855d2574c6d9f6 | 81588eafe6a247bc5f12daf9ad2090f68526c45d | /knn.py | bda1cc2396725665e4916506204f23a5ce4c289f | [] | no_license | Unishshah/K-nearest-neighbor | 169e5f32436cbc8cc1f079b2c50b1097046ed97f | 6565516b313776b291fad0902f4a25043480a76e | refs/heads/master | 2021-08-15T12:18:06.934037 | 2017-11-17T20:35:50 | 2017-11-17T20:35:50 | 111,146,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import numpy as np
import pandas as pd
from sklearn.preprocessing import Imputer
from sklearn.cross_validation import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import accuracy_score
import sklearn.metrics
df = pd.read_csv(r'''C:\Users\unish\Desktop\datat.csv''')
df['sex']... | [
"unishshah@gmail.com"
] | unishshah@gmail.com |
d8ee1a504c9bd9c6cc1553f20e8b4ea2c99322c3 | b2df4e2e84f8d82bafa2d248fbdf77e24f6e2c27 | /config.py | d5391f7936579e947ba978b277d29bcbd0a0d316 | [] | no_license | oracletosun/WHATEVER1 | 79efefa6718d255f52d9ac2155f622e25f71abdd | 71e7ee1c3f6196f8c0b4a6157eecc8d52abe01a0 | refs/heads/master | 2020-03-24T20:30:13.173127 | 2018-07-31T07:57:41 | 2018-07-31T07:57:41 | 142,981,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | import random
TIME = random.randint(6,10)
| [
"noreply@github.com"
] | oracletosun.noreply@github.com |
aaf256ba2bdd21c457ade542d5729057eeced03f | 6e65ad467e8a873fede9f5ce63aff87ad64e4b9b | /usure/preprocessing/application/__init__.py | 71575516b235c9466dafa9ade02ac350efa58976 | [
"MIT"
] | permissive | PaNuMo/usure | 019b103ab345c6a9746dcbced2c0b8a05bb434c3 | ca3633ecafbab01239b074e152ded9eccddc8809 | refs/heads/master | 2020-06-18T21:19:59.515361 | 2019-07-10T05:32:18 | 2019-07-10T05:32:18 | 196,452,616 | 0 | 0 | null | 2019-07-11T19:18:49 | 2019-07-11T19:18:49 | null | UTF-8 | Python | false | false | 45 | py |
__name__="application"
from .etl import ETL | [
"cristian_ang@live.com"
] | cristian_ang@live.com |
34775d8e2f5c422962edb8210a4931541eb496d0 | 08d61da8cff80519bc3290b38e2008d480b257e2 | /whimpy/startup.py | 11fdcca802aab014198cbc62cd1d1567e9b15617 | [
"MIT"
] | permissive | miraculixx/whereismypackage | 6a7f57922f1579d597aec6d19d1e16accaaf5e7a | d6b42b825fa800fb435b70d4301b031d642b63be | refs/heads/master | 2021-06-17T14:40:11.502572 | 2020-05-28T23:49:20 | 2020-05-28T23:49:20 | 27,425,031 | 1 | 0 | MIT | 2021-06-10T19:46:34 | 2014-12-02T09:29:46 | JavaScript | UTF-8 | Python | false | false | 306 | py | #!/usr/bin/env python
import os
config = {
'PORT' : os.environ.get('VCAP_APP_PORT', 80),
'IP' : os.environ.get('VCAP_APP_HOST', '0.0.0.0')
}
c = 0
while True and c < 10:
c = c + 1
try:
os.system('python manage.py runserver {IP}:{PORT}'.format(**config))
except:
pass
| [
"ps@novapp.ch"
] | ps@novapp.ch |
4210864d8351f209dc4661f80b9a92c07bf86f3d | 17b6caab6e0047ff7fffd258da8297436e7615d2 | /src/tests/tankFill/constants.py | 7fdefbd4d2b39cd67e7880ea59c6c6d9bdbf6592 | [] | no_license | eweilow/SF2567-hybrid-rocket-simulation-project | bf75644a73546754d5a1e9b1897058f3e8741fa4 | 3a60b20ebf15b4856b0425c0cdb9631cfeb3be14 | refs/heads/main | 2023-01-21T23:51:27.780956 | 2020-12-01T18:27:05 | 2020-12-01T18:27:05 | 310,228,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | class Lengths:
m = 1
dm = m/10
cm = dm/10
mm = cm/10
class Volume:
m3 = 1
dm3 = m3/(10**3)
cm3 = dm3/(10**3)
liter = dm3
class Pressure:
kPa = 1e3
MPa = 1e6
bar = 100 * kPa
class Area:
cm2 = Lengths.cm * Lengths.cm | [
"eweilow@digitalkoppar.se"
] | eweilow@digitalkoppar.se |
5d39ce404f49ee9a6d244e769bf4dc0993630cc7 | d2b7f8aa21782e61dd645bdbb291e835827baf16 | /tictactoe_env/__init__.py | 877250048cbe4a96480735badd5639b6d510c514 | [] | no_license | lucadivit/Adversarial_RL_TicTacToe | d27d837b1ac84236994f87906438ae5574222321 | 470c53b4b5ba854f075ea43e1e9246fccb94734d | refs/heads/master | 2020-08-08T18:35:34.104088 | 2019-10-09T12:59:43 | 2019-10-09T12:59:43 | 213,889,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from gym.envs.registration import register
register(
id='tictactoe-v0',
entry_point='tictactoe_env.envs:TicTacToeEnv') | [
"noreply@github.com"
] | lucadivit.noreply@github.com |
ecc3e6b8d119081e510084e3005d631f9d895d53 | 23c4f6d8a2a6b97077628c2a012b2b402c816d91 | /LeetCode算法题/0190_颠倒二进制位/颠倒二进制.py | a253597ca1dc577aa84d9985492621b0937a38bc | [] | no_license | exueyuanAlgorithm/AlgorithmDemo | 7ef6ff8104e8da5a81037795184115fb0ac8ca9a | d34d4b592d05e9e0e724d8834eaf9587a64c5034 | refs/heads/master | 2023-07-16T19:00:05.664780 | 2021-09-04T11:31:07 | 2021-09-04T11:31:07 | 277,327,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | class Solution:
def reverseBits(self, n: int) -> int:
result_num = 0
for i in range(31):
if n % 2 == 1:
result_num = result_num + 1 << 1
else:
result_num = result_num << 1
n = n >> 1
if n % 2 == 1:
result_num += ... | [
"1079240024@qq.com"
] | 1079240024@qq.com |
7c3cbb509670d4a23d7afd068652fab8eda4ab8b | f56662c97e1ce4e723b5dfb18cdbef2c7de5684e | /commands/reactions.py | aae7d8ddbbfa4a76adabb732f8e037e55c05fb8f | [] | no_license | NeGaiGEN7/RubyRoseBot | feb2b81e1a9dc2268db0c839ffce5508cde0be4b | e1485290c37bb96333d1cb42415a0f532e4c8942 | refs/heads/master | 2021-01-18T23:32:01.440165 | 2017-03-18T18:59:49 | 2017-03-18T18:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py | from discord.ext import commands
class Reactions():
def __init__(self, bot):
self.bot = bot
@commands.command()
async def ropestore(self):
"""Kill yourselve."""
await self.bot.say("http://ropestore.org")
@commands.command(pass_context=True)
async def rekt(self, ctx):
... | [
"creeperseth@mail.com"
] | creeperseth@mail.com |
919946fed5be2a8d467bc2f1db784427042a3c56 | b49420c84905523ee14fe9d724742163daa4f1ef | /ikea_ros_pkg/script/train.py | 5828f3241b20d5a27c2a95ed2ace1ed624e848ff | [] | no_license | himlen1990/ikea_assembly | de138e277c6aba4158fe87e2d8634e05f669a6af | d5a0dff451a073ffb92069737b9ce084e9dd7396 | refs/heads/master | 2020-03-29T21:43:11.052964 | 2018-09-28T03:03:53 | 2018-09-28T03:03:53 | 95,186,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | from read_data import dataReader
import numpy as np
import tensorflow as tf
from model import regression_model
import skimage.io as io
import cv2
def train():
sess = tf.Session()
model = regression_model(sess)
dr = dataReader('./dataset')
iteration = 15000
saver = tf.train.Saver()
test_ima... | [
"himlen1990@gmail.com"
] | himlen1990@gmail.com |
c394f10b52fe8b7d449085b3dfe3eb4347b47a19 | 2ac12bae4d53a03dbdce865f674243cd45ae5abf | /analysis_curve/select_example.py | d90fd58cfade2431b8de556c1b94a156497fd1b4 | [] | no_license | lidashuai123/SRCC_classification-and-stratification | 9bee42526d2f992c45be6baa15a532cd20550987 | b6eae7186fac8f9db669cf793408ec4059812678 | refs/heads/master | 2022-12-23T14:31:34.159424 | 2020-09-21T11:45:44 | 2020-09-21T11:50:44 | 297,318,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | ####印戒细胞癌课题,将PVP的最大层面移动到一个文件夹中方便选出合适的肿瘤
import os
import shutil
import numpy as np
path = r'G:\West China Hospotal-Gastric Cancer SRCC\Max_ROI_save\PVP'
target_path = r'G:\West China Hospotal-Gastric Cancer SRCC\Max_ROI_save\select_example'
for folder in os.listdir(path):
for item in os.listdir(os.path.join(path, ... | [
"2714241070@qq.com"
] | 2714241070@qq.com |
bcd1c2f1c3fdc0f2088fe69ccbcb0cb8fb88b0de | 960dd60c263cea329e27584b03bb430b025fe05a | /venv/lib/python3.6/site-packages/bigquery/client.py | eedafc23b7799a04e4b141860937b508bc7d12ac | [] | no_license | RuchiBhardwaj/covid_pipeline | 18b3c0ae5836487b150ad112d86e312544d19f9d | f21a98593383caed532b9e7178e70172984cd635 | refs/heads/master | 2022-12-04T09:02:47.076901 | 2020-06-08T14:12:18 | 2020-06-08T14:12:18 | 268,835,744 | 0 | 2 | null | 2022-11-27T19:32:17 | 2020-06-02T15:17:20 | Python | UTF-8 | Python | false | false | 70,802 | py | import calendar
import json
from logging import getLogger, NullHandler
from collections import defaultdict
from datetime import datetime, timedelta
from hashlib import sha256
from io import StringIO
from time import sleep, time
from functools import reduce
import six
from bigquery.errors import (BigQueryTimeoutExcepti... | [
"ruchi.bhardwaj@nineleaps.com"
] | ruchi.bhardwaj@nineleaps.com |
10b5605b4bccd6d1f948a4c6810b3e573adb67ae | a961aa04d7c7d18fd2ac7da8a8016bacfabc6e1b | /elevennote/src/notes/migrations/0007_auto_20200509_1450.py | 38a6a80a43cd9fce7abbf51b8a93bfb99cfc98ae | [] | no_license | EgorovM/cs102 | a4f6423f3e96064c68a9015118cd141a8a7eea14 | 0f72f9027dbcda510c67f815348a8ce58f76d857 | refs/heads/master | 2021-06-21T16:21:10.880523 | 2020-06-06T08:34:28 | 2020-06-06T08:34:28 | 214,231,423 | 0 | 1 | null | 2021-06-10T22:52:37 | 2019-10-10T16:24:08 | JavaScript | UTF-8 | Python | false | false | 440 | py | # Generated by Django 2.0.1 on 2020-05-09 14:50
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notes', '0006_note_shared'),
]
operations = [
migrations.AlterField(
model_name='note',
... | [
"EgorovM@bitbucket.org"
] | EgorovM@bitbucket.org |
cde9c5c591a0868fda460d5f45c15e0897cb2d77 | 89c4a43a505df8fdf1f0d7386988c4896c2e631b | /google/ads/googleads/v6/services/services/gender_view_service/transports/base.py | c2715ba063f55d3fe0da66e820e30cd4ad4a3ba0 | [
"Apache-2.0"
] | permissive | hurricanelennane/google-ads-python | a0a1fed690776a8bb2e81f637eb7eae10fb4992f | 310a488b6fdad9d5beea8fa4b166edce779a2511 | refs/heads/master | 2023-07-04T03:07:53.344466 | 2021-07-16T19:06:36 | 2021-07-16T19:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | hurricanelennane.noreply@github.com |
8f648624a6f6672263fb311609c38a968b7e26d2 | 04d780d240580b60410ccd2f853f7aa528ae1710 | /polls/models.py | b5b5df0ff545dbd944e2bd407cbca6264901602e | [] | no_license | LocNguyenPV/student-management-django | b142c14a9336d7f6fba01b582d205a4dfb3cc21c | e33e5d801a81e0cf1d87422f8247854875ee1f4c | refs/heads/main | 2023-04-13T21:40:21.257053 | 2021-04-25T16:28:18 | 2021-04-25T16:28:18 | 361,262,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | from django.db import models
from datetime import datetime
# Create your models here.
class Student(models.Model):
registration_number = models.CharField(max_length=11,
primary_key = True,
verbose_name = "Registration Numb... | [
"noreply@github.com"
] | LocNguyenPV.noreply@github.com |
0a86e75c70dcb21815b1a3f7ca3483db5fd939cc | 707c6a7f3b3213c8a996967ede905aeb18a8c6d9 | /solutions/Insert-Interval.py | d680a3144665d7fbb6a2e681c4be95c980267521 | [] | no_license | Ziyilan/Pyleetcode | d35b9c2ae6c890dfd42804264b139bfddb8db563 | 81a9d98607b4ce554507d16763ee82f7dad49edd | refs/heads/master | 2020-12-11T02:11:38.470153 | 2015-10-27T18:46:47 | 2015-10-27T18:46:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | """
Author: Jing (https://github.com/gnijuohz)
Insert Interval: https://oj.leetcode.com/problems/insert-interval
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).
You may assume that the intervals were initially sorted according to their start times.
Example... | [
"gnijuohz@gmail.com"
] | gnijuohz@gmail.com |
101d77dd19df613d208d4d097e808037d9d2a2f5 | 6be49bcd473a7098cd0f6ea52475cd865bc4c158 | /creating_reference_geometries_for_eu_nuts.py | 65bf5366db2286103651c8a9997abaefc51f1daa | [
"BSD-2-Clause"
] | permissive | xarabiburacaramba/olu_v2 | 6c9520c4a2bf6e99ac3c7e6a6ba5af5ffe9a7808 | bd1cf9d91e90d704115fe1bc20eb88f29e0bb956 | refs/heads/main | 2023-08-30T17:12:47.068449 | 2021-11-05T11:50:11 | 2021-11-05T11:50:11 | 310,257,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,831 | py | from tridy import apply_function
import json
import sys
from osgeo import ogr
import psycopg2
#from credentials import connectionstring_localhost
import math
import numpy as np
np.set_printoptions(threshold=sys.maxsize)
def sequence_generator(starting_number):
while starting_number<=10000000000000:
st... | [
"dmitrii@seznam.cz"
] | dmitrii@seznam.cz |
fe49918b93bc0175098d4277f76f2d191bfbce49 | 5a69cab2b5ed410f944b57f3ec586b9c624a735c | /lib/demo_test/multi_platform_demo | 0cd943b292114efcecb53e660e9883bb98850ba5 | [
"Apache-2.0"
] | permissive | T3kton/architect | 214a176dd5f9a9bc340d358d692e16a61f362ebe | 3368a66c0c1836eca12dbc7af97f01d5ba13984a | refs/heads/master | 2021-01-20T09:03:25.451300 | 2018-09-17T23:03:24 | 2018-09-17T23:03:24 | 90,217,916 | 0 | 2 | Apache-2.0 | 2018-09-17T23:03:24 | 2017-05-04T03:29:18 | Python | UTF-8 | Python | false | false | 2,211 | #!/usr/bin/env python3
import os
import django
os.environ.setdefault( 'DJANGO_SETTINGS_MODULE', 'architect.settings' )
django.setup()
from datetime import datetime, timezone, timedelta
from architect.Contractor.models import Complex, BluePrint
from architect.Plan.models import Plan, PlanComplex, PlanBluePrint, Plan... | [
"pnhowe@gmail.com"
] | pnhowe@gmail.com | |
0a6b7d03cc154ca43ef1f5ebee317ab1ffc0e58e | e9377cf065f226ba19abef0572c33d2f5b554f7a | /main.py | 82b099d9838c9fb55edb20c59aa60661f553eef1 | [] | no_license | gurup0907/wHACKIEST2021-ragequit | 86660a08447bef87fcfa76aff7e17d1f21124a36 | e7c5b540d9cbdbb09c043f60685702bb05601100 | refs/heads/main | 2023-03-29T17:51:25.698792 | 2021-04-03T18:59:10 | 2021-04-03T18:59:10 | 353,921,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | import cv2
import time
import numpy as np
import os
import json
import base64
# Preload models for performance
print("[INFO] loading YOLO...")
net = cv2.dnn.readNetFromDarknet("./yolo_configs/yolov3-obj.cfg", "./yolo_configs/posture_yolov3.weights")
print("[INFO] loading labels...")
with open("./yolo_configs/posture.... | [
"krishnanyadu60@gmail.com"
] | krishnanyadu60@gmail.com |
ab19333820fd54ea2dcd676cff73a77ba47f222c | f0dcf2d670c0b472e234df501024dd7851b6aeed | /Game_Project/Sample.py | 9d12699ac78552ec203cf1b5a7af9ef4f91365dd | [] | no_license | CRTao/DCP3510_Introduction-to-Artificial-Intelligence | bfcb19a670f281b330fc68b55cb45e41d970c51c | 110060b16985920f8206d6bfb2728cf5b1028451 | refs/heads/master | 2022-11-20T10:23:52.978096 | 2020-07-14T10:33:12 | 2020-07-14T10:33:12 | 279,555,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py |
import STcpClient
'''
輪到此程式移動棋子
board : 棋盤狀態(list of list), board[i][j] = i row, j column 棋盤狀態(i, j 從 0 開始)
0 = 空、1 = 黑、2 = 白
is_black : True 表示本程式是黑子、False 表示為白子
return step
step : list of list, step = [(r1, c1), (r2, c2) ...]
r1, c1 表示要移動的棋子座標 (row, column) (zero-base)
... | [
"ms0599027@gmail.com"
] | ms0599027@gmail.com |
6cc98ec5242239b297c10d8179c3d873d574fb9b | 52b6cf6fda991e6f6a3de53f1b79cc3bfbc69575 | /backend/app/api/users/routes.py | a8d3193944914bfe7cfd5d5f04f871f4724974ff | [] | no_license | nikitakuznetsoff/financial-predictor | 94315e0aff16e6cd124a61095ba1f7668fb9b328 | 80ab84757ebe68d482bd50ff4d0571ce1e311e41 | refs/heads/main | 2023-06-25T17:45:40.859436 | 2021-07-21T21:15:59 | 2021-07-21T21:15:59 | 354,827,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,235 | py | from flask import Blueprint, request, make_response, jsonify
from app.models import User
from app.repository import users_repo as repo
from datetime import datetime
bp = Blueprint('users', __name__, url_prefix='/api/users')
@bp.route('', methods=['POST', 'GET', 'DELETE'])
def user():
if request.method == 'POST... | [
"devnkuznetsov@gmail.com"
] | devnkuznetsov@gmail.com |
6671a1befd491dd6f5399bc3c26c9e7b9427b1fa | 34ec03bef0371def736c89e3943a3b3f178d9615 | /Homeworks/03/dataset_downloader.py | 582ea2474b201eabd4a728297b37b18927041b2f | [] | no_license | Mikhail-off/DL-2019 | 3c4b936e41c75e2239e2db31fa31b3697ce17af1 | b7728179bbeb852c0c642af85b413a839466c61b | refs/heads/master | 2020-07-28T23:53:49.590405 | 2020-04-02T14:18:09 | 2020-04-02T14:18:09 | 209,586,350 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | import tarfile
import os
import urllib.request
DATASETS_REPO = 'http://efrosgans.eecs.berkeley.edu/pix2pix/datasets/'
ARC_EXT = '.tar.gz'
TEMP_ARC_FILENAME = 'temp' + ARC_EXT
class DatasetDownloader:
def __init__(self, dataset_names, data_path):
self.dataset_names = dataset_names
self.d... | [
"hukutoc46@gmail.com"
] | hukutoc46@gmail.com |
f4a5841f5d31f26e0da2530d937bbf5ce64db363 | ac1bbabc7c1b3149711c416dd8b5f5969a0dbd04 | /Programming Fundamentals/objects_and_classes/class.py | 7289e5275a0ea25652981f2f7b0b49c310acc71b | [] | no_license | AssiaHristova/SoftUni-Software-Engineering | 9e904221e50cad5b6c7953c81bc8b3b23c1e8d24 | d4910098ed5aa19770d30a7d9cdf49f9aeaea165 | refs/heads/main | 2023-07-04T04:47:00.524677 | 2021-08-08T23:31:51 | 2021-08-08T23:31:51 | 324,847,727 | 1 | 0 | null | 2021-08-08T23:31:52 | 2020-12-27T20:58:01 | Python | UTF-8 | Python | false | false | 701 | py | class Class:
def __init__(self, name):
self.name = name
self.students = []
self.grades = []
__students_count = 22
def add_student(self, name, grade):
if len(self.students) < Class.__students_count:
self.students.append(name)
self.grades.append(grade)... | [
"assiaphristova@gmail.com"
] | assiaphristova@gmail.com |
dda48464dce73f3af0af909f3571d348d3d0d84e | f8dd8d046100f1223713e047074f30c7ce5a59cd | /testing/epilogue/decorators.py | 35dbdffbffc9e1b88e69fb384d455179a4f387c3 | [] | no_license | dotslash227/98fitcortex | 57aed99270799eff68fdff62db0b8c1d9aabd4a2 | bd4002151e5def00c3dea1f5a1abfb06ba3e809a | refs/heads/master | 2022-12-17T00:51:20.302948 | 2019-02-27T13:54:22 | 2019-02-27T13:54:22 | 197,362,824 | 0 | 0 | null | 2022-12-08T00:02:42 | 2019-07-17T09:55:14 | HTML | UTF-8 | Python | false | false | 3,694 | py | import functools
import datetime
from django.db import models
def last_days(days = 6):
today = datetime.datetime.today().date()
while days >= 0:
val = today - datetime.timedelta(days = days)
days -= 1
yield val
def last_weeks(weeks = 6):
today = datetime.datetime.today().date()
current_year , current_week... | [
"shikhar.chauhan@live.com"
] | shikhar.chauhan@live.com |
3ac83d2ac2af4145c059505d5214c148e2fa8ab9 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-MailKit/PyObjCTest/test_memessagedecoder.py | 9ebaeafd6990e8c6d9d71d48d0c727eca4fb01ad | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 198 | py | from PyObjCTools.TestSupport import TestCase
import MailKit # noqa: F401
class TestMEMessageDecoder(TestCase):
def test_protocols(self):
self.assertProtocolExists("MEMessageDecoder")
| [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
0c631d542a5fcf84983bc34ab35fa12f1af594d9 | 6d548c4f4de49a1470113c80d2182e315e6c3811 | /LaboratorioDeAlgoritmos/exemplo_funcao_empacotamento.py | e4de180967bcf81c4dba2687d62112c3997c240f | [] | no_license | rodrigoksaito/anchieta | 646ca5a7d34e028b7a244d2ab9e57d3b114d36d6 | dd5221391e24603a9d1fe21a3c44a5277165d96b | refs/heads/master | 2021-07-08T14:36:04.029040 | 2018-11-02T00:56:15 | 2018-11-02T00:56:15 | 103,395,258 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | def somainteiros(* inteiros):
for valor in inteiros:
print(f'{valor} ', end='')
print('')
def containteiros (* inteiros):
tamanho = len(inteiros)
print(f'A quantidade de inteiros recebidos sao {tamanho}')
#chamada das funcoes
somainteiros(5, 4)
somainteiros(6, 2, 2)
somainteiros(5, 3, 2, ... | [
"rodrigo.ksaito@gmail.com"
] | rodrigo.ksaito@gmail.com |
4291138fa9f83457d0086a492f9a410c62db6ac8 | 51131380cc9cbd114966c2d7b36980675917dd46 | /app/core/models.py | d52902f40ba92bcd404c6462bb1cf15ff85b8350 | [] | no_license | agasca94/recipe-api | e0c96ef5a7dcced44f5d9700a6682f49e666f44d | 3c22ae69fa07dcca665f606e71547cb2f71b58a9 | refs/heads/master | 2020-04-29T14:46:39.434231 | 2019-04-13T05:19:48 | 2019-04-13T05:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \
PermissionsMixin
from django.conf import settings
from core import utils
class UserManager(BaseUserManager):
def create_user(self, email, password=None, **kwargs):
"""Create and saves a new user""... | [
"agasca1994@gmail.com"
] | agasca1994@gmail.com |
9a46dba46851efdae40042afb4cf0b10eb576bb5 | 3c8ce930338597ad18d7435e4e4f60b0dc4d1a66 | /ex13.5.py | 681614865994029b65927a32e536491f78e0cf88 | [] | no_license | nimbinatus/LPHW | 1af22668b3ecf32fd62f6d99911d1e6800b608a9 | 6fc14aa5f7e2e248dfb7ea8c2d1e1daba949920a | refs/heads/master | 2021-01-20T05:58:07.209743 | 2015-06-12T21:21:13 | 2015-06-12T21:21:13 | 35,133,396 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from sys import argv
script, name, age = argv
print "My name is:", name
print "My age is:", age
hame = raw_input("Name? ")
age = raw_input("Age? ")
| [
"nimbinatus@users.noreply.github.com"
] | nimbinatus@users.noreply.github.com |
7bec6a1f34fb836517447489c802a213b5bb4928 | 38c8e4ef46cfd86f03a931330a6d86d270f459db | /tests/integration/src/handlers/IngestS3Event/test_function.py | b47d590ee5dc027ce9dad904265351c2de6816af | [
"BSD-2-Clause"
] | permissive | praneetap/PhotoOps | 821a18656add95d36f30c80eb24c0a270f810513 | 01799afe4f324a879ba3d85e2c2f8e1a07643d1b | refs/heads/master | 2023-09-01T07:32:36.123839 | 2021-10-22T00:28:46 | 2021-10-22T01:21:28 | 422,656,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | '''Test IngestS3Event'''
import json
import os
import boto3
import pytest
from aws_lambda_powertools.utilities.data_classes import S3Event
STACK_NAME = 'PhotoOps-tom'
FUNCTION_NAME = os.path.abspath(__file__).split(os.path.sep)[-2]
DATA_DIR = './data'
EVENT_DIR = os.path.join(DATA_DIR, 'events')
IMAGE_DIR = os.pat... | [
"tom@serverlessops.io"
] | tom@serverlessops.io |
34f550e6a8ce03365c67f497c90b8d70b792a727 | eb61956c2221b38741ae045b492c2f52cb0c4515 | /ex_10_02/ex_10_02.py | 247ef73adc5e5087b093530f5aec6c8f20c497ea | [
"MIT"
] | permissive | ColinTing/Python-Specialization | 9552a4c35a322dff80d3e14ea97e51feec0ede06 | 684bfaa29fac729dbb76776cec29426f7d9853b1 | refs/heads/master | 2020-04-29T07:29:22.288768 | 2019-06-17T17:00:31 | 2019-06-17T17:00:31 | 175,954,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | fname = input("Enter file name: ")
if len(fname) < 1 :
fname = "mbox-short.txt"
fh = open(fname)
counts = dict()
for line in fh:
line = line.rstrip()
lst = line.split()
if len(lst)>5 and lst[0] == "From":
hour = lst[5].split(':')[0]
counts[hour] = counts.get(hour,0)+1
for key, val in so... | [
"honey.hao.2012@gmail.com"
] | honey.hao.2012@gmail.com |
3925b4ce5bdbda0b5ed45b195289fc7d8cdc6c07 | 0aebc9c25f0e0fcdd9d2b3541ced519fa7230627 | /Binary_oreder_preorder_traversal.py | 9877b1b5a553c578920d7d3943178f3561f01c1c | [] | no_license | Divyanshushandilyakiet/Leet_code_solutions | 5da21074a5f0ef7b95ad1dec44732b18ed3920a8 | c91170df24c1382a0b954918640ecea0de3811c6 | refs/heads/master | 2023-08-22T22:43:06.367132 | 2021-09-24T14:54:27 | 2021-09-24T14:54:27 | 382,666,643 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def preorderTraversal(self, root: TreeNode) -> List[int]:
result = []
self.traverse(root, re... | [
"noreply@github.com"
] | Divyanshushandilyakiet.noreply@github.com |
13552287bb4df48a8d6a782b4cc05ba180beb7b7 | c6907805a1075e733ad0a176faa5936fc5657d5f | /testscript/asst1-03-cat.py | a81c4285fc54fe34e4185ac1aabb825c36a564f0 | [] | no_license | john-yan/OS161 | aaf5aa07b580c00f462ef0bbc705f5bb732aa897 | fa0b9676a0febc63cf8c4f5ee05e0aacb91b4693 | refs/heads/master | 2020-05-22T12:45:32.955071 | 2014-03-12T01:21:59 | 2014-03-12T01:21:59 | 17,651,018 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,869 | py | #!/usr/bin/python
import core
import sys
# TODO: should make the code work for arbitrary number of animals, bowls, etc.
def catmouse(test, cmd):
test.send_command(cmd)
bowls = [ -1, -1] # cat or mouse nr who is eating
mouse_cat = 0 # 1 when cats are eating, 2 when mouse are eating
nr_eating = 0 ... | [
"john.yan@mail.utoronto.ca"
] | john.yan@mail.utoronto.ca |
0482cb5e7c5b58fb5081addda9ef1529b0337c5f | 91789995d08a71c8c9afaa04eba171efc842b94d | /DOCX_Creator.py | 9751ba3f6bf6cd84d1f9e83744d7055f17b959dd | [] | no_license | richardbing/VCRI | 7e3a9f9e7b8f5f5c754e8f0cdd45cf002b651273 | 9f6125c584d734d5d3b4591ef7b01f082bf5a673 | refs/heads/master | 2020-03-19T13:36:25.443427 | 2019-01-21T14:54:03 | 2019-01-21T14:54:03 | 136,587,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | from docx import Document
from docx.opc import exceptions
def DocxWrite(title, tableContents):
try:
document = Document()
except exceptions.PackageNotFoundError:
import os
import sys
dir_path = os.getcwd()
full_path = os.path.join(dir_path, 'docx\templates\default.docx')... | [
"mabi@tcd.ie"
] | mabi@tcd.ie |
ba93f39d8f0eb7f2d6f9d915fa08222c70e5556f | a0557aca65760466806bae630b03d0637cfed482 | /Juego2 Movimiento comida.py | c4019db44ca30c9f1603661252b39ea446cb2355 | [] | no_license | IvanAlvarez15/Juego2 | 033faa3bbe1133f31a0aac2e2d8dbade13cac6dd | ee7722f57e995f648f13b1c1e5672496b1b81c5b | refs/heads/main | 2023-01-04T13:01:04.958383 | 2020-10-28T16:15:52 | 2020-10-28T16:15:52 | 307,773,934 | 0 | 1 | null | 2020-10-28T16:12:49 | 2020-10-27T17:13:13 | Python | UTF-8 | Python | false | false | 2,383 | py | # Juego2 comida mov..py
# Ivan Alvarez y Jesus Daniel
# Juego de la Víbora
from turtle import *
from random import randrange
from freegames import square, vector
import random
food = vector(0, 0)
snake = [vector(10, 0)]
aim = vector(0, -10)
colors = ["green","blue","orange","purple","black"] #Generamos u... | [
"noreply@github.com"
] | IvanAlvarez15.noreply@github.com |
f975c93923abd391b57c737a6a91d07e74706955 | d5552b232a74ab968571ece1fbdc08cae028ce6d | /Neural Networks/MLP_LSTM_ANN/MLP_model.py | c67f2484ef6efc296c9f42b5664fb27006859883 | [] | no_license | pneal1995/Python | 9d9d91105a42f8ddb74f19305b30402df24590d9 | 63f783fab220a55aa721b43d4e89ae51518aecf3 | refs/heads/master | 2020-05-18T09:51:43.398066 | 2019-05-28T20:05:17 | 2019-05-28T20:05:17 | 184,338,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | import get_prices as hist
import tensorflow as tf
from preprocessing import DataProcessing
# import pandas_datareader.data as pdr if using the single test below
import fix_yahoo_finance as fix
fix.pdr_override()
start = "2003-01-01"
end = "2018-01-01"
hist.get_stock_data("AAPL", start_date=start, end_date=e... | [
"noreply@github.com"
] | pneal1995.noreply@github.com |
89888a2b8d51fe177fcd8053f9abdf21227ff496 | d3fcd8a969d8204124e73fbb892ce051f6c0f0f2 | /app.py | 0a784a34a487b50ca4d32def44a51d43f4cf61b0 | [] | no_license | rahulyadav170923/stockulator | c10ded6422fea8ee2d4af51ab455049f1cb0cac6 | 9ad7050b946ca6a256faf9ddd7f1005c7ab0dcf6 | refs/heads/master | 2021-01-10T04:54:58.204322 | 2016-02-20T11:59:44 | 2016-02-20T11:59:44 | 52,151,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | from flask import Flask,render_template,request,url_for,jsonify,json
import unirest
import math
import numpy
app = Flask(__name__)
@app.route('/<company>/<selected_date>',methods=['GET'])
def get_stock_by_date(company,selected_date):
url='data/'+company+'.json'
with open (url) as f:
data = json.loads(f... | [
"rahulyadav170923@gmail.com"
] | rahulyadav170923@gmail.com |
ee62c946bacf7cf765e57fe18224aea84ff72185 | 2fcf361eb89f1f01fe4d677d4772ddaba89b06ad | /hydrus/HydrusGlobals.py | 06ab47dbf5399492ca0bfda15b4892944f211c47 | [
"WTFPL"
] | permissive | matjojo/hydrus | 9f13f35e817bfe7e170ec7be22e18b64e393cb01 | 8f87206ea6ef242bc38235d7053bb33b5a785e68 | refs/heads/master | 2021-05-17T03:26:19.183503 | 2020-03-27T23:32:58 | 2020-03-27T23:32:58 | 250,597,596 | 0 | 0 | NOASSERTION | 2020-03-27T17:18:53 | 2020-03-27T17:18:52 | null | UTF-8 | Python | false | false | 1,239 | py | import threading
controller = None
client_controller = None
server_controller = None
test_controller = None
view_shutdown = False
model_shutdown = False
no_daemons = False
no_wal = False
no_db_temp_files = False
db_memory_journaling = False
db_synchronous_override = None
import_folders_running = False
export_folders... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
3f4e8b56e0d0f91975ff1694c039ef1492b922da | 6ad7ba4261054436ff99a64341676fe484f3eb66 | /day3/while_demo/ex9.py | bfb2eb456ab6c936a7698085ac4ee663474128aa | [] | no_license | Schrodingfa/PY3_TRAINING | e5b3eeb227cc48fe9f63159f1c9e2c97b922fd1c | 1277a1b1d9959becea0ffb6a959dd4cea29775d8 | refs/heads/master | 2021-07-13T07:38:13.001635 | 2020-07-08T09:31:05 | 2020-07-08T09:31:05 | 177,097,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # Author:jxy
# 猜数字 1.0
# 规则:系统生成 1 -- 100 之间的随机数
# 让用户一直猜,直到猜对为止
# 提示:大了 小了 猜对了
# 猜数字 2.0
# 最多只能猜10次
import random
# 1.0
# goal = random.randint(1,100) #产生随机数
# while True:
# num = int(input("please input a number:"))
# flag += 1
# if num > goal:
# print("too bigger")
# elif num < goa... | [
"82779721@qq.com"
] | 82779721@qq.com |
ac4d37c42caf015e05fe2241de6dd28a1002d777 | 613c532f982c6c9f994e848ef6cf0a268b7dd19f | /mysite/polls/views.py | 127f442d12ced9fdde1945ee557fd236930df299 | [
"MIT"
] | permissive | youwei1-sudo/CMPUT404_lab4 | 05125f50d087f2f90b03e32289bb027bfec91cb9 | 57ed0c5c0d2e127a1994f75bdf07861d68a1c121 | refs/heads/main | 2023-02-28T06:44:00.905383 | 2021-02-02T19:53:15 | 2021-02-02T19:53:15 | 335,120,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | # Create your views here.
# from django.http import HttpResponse
# from django.shortcuts import get_object_or_404, render
# from .models import Question
#part3
# # v1
# def index(request):
# return HttpResponse("Hello, world. You're at the polls index.")
#V2
# def index(request):
# # get 5 newest question
# ... | [
"davidchenyouwei1999@gmail.com"
] | davidchenyouwei1999@gmail.com |
b7673eb6fe474f69b1874f855d4420fa94be6795 | fdbb5a57c16c0bbfdf990ce17dcdcbbf4a4b0489 | /khansole_academy.py | dcd93504ef957f34ed5ed6314b961bcaa4f28351 | [] | no_license | jackreacher80/khansoleacademy | 5151dd83d866f465473cc11b9d9c9644934ec9f5 | d8849fdae5a3cb268ea7763f066864d2f43c7c8c | refs/heads/master | 2022-09-03T00:57:34.264288 | 2020-06-01T11:23:33 | 2020-06-01T11:23:33 | 268,501,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,712 | py | """
File: khansole_academy.py
-------------------------
Add your comments here.
"""
import random
def main():
"""
The main function calls four functions addition_console(), subtraction_console(),multiplication_console() and division_console()
that tests the user on his knowledge of addition, subtraction,... | [
"turisys.python@gmail.com"
] | turisys.python@gmail.com |
b935a12a246adc3ca19c8aa6d4847d63d250dfd0 | 6bb509842d31bf1cae22d6a2ad66d4ebb42ee235 | /p5_HOG_test.py | bc652ed41954a7236340ee9a8d0f12f75b9ee1ad | [] | no_license | yulongl/p5_VehicleDetectionAndTracking | 1386ddc5bae8ee39cca192cf5ebec372ac8b07b8 | 3cafb0241ea2c075fe6d1e0f66e930e25da0793e | refs/heads/master | 2020-03-17T04:16:00.340370 | 2018-09-01T00:55:47 | 2018-09-01T00:55:47 | 133,268,633 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,088 | py | import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from sklearn.preprocessing import StandardScaler
import glob
from skimage.feature import hog
from sklearn.model_selection import train_test_split
import time
from sklearn.svm import LinearSVC
import pickle
from sci... | [
"noreply@github.com"
] | yulongl.noreply@github.com |
59c88a20af7ad0adc735f39520fd890402bbf27e | cf2bb64be5bda0afee2e60e1acc0de2df66b681c | /assessment/models.py | 6b4103bb193e3fdfa2dd8a370aa2be205a83e113 | [] | no_license | Rahul86999/Assessment | adbbba28484a0d61492b40eb96b0e4fde1737a77 | f082a95676959912b4b84c4d0845855a7be7558d | refs/heads/master | 2022-12-06T12:56:58.462474 | 2020-08-20T09:05:34 | 2020-08-20T09:05:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | from django.db import models
from django.contrib.auth import get_user_model
User=get_user_model()
# Create your models here.
class Standard(models.Model):
standard_name = models.CharField(max_length=20)
def __str__(self):
return self.standard_name
class Language(models.Model):
lang_name = models.C... | [
"ganesharmy95@gmail.com"
] | ganesharmy95@gmail.com |
35c013a6e48a7fa35c0656fe8b663356438f02cb | e63c127ad19d0faa25cf2b0c25321e216d27556a | /sheets/utility.py | 97efae39a015689f17f9e9fd85b833dc1e10ecf3 | [] | no_license | lykius/iLectern | e4a04616b7c3fb5d9b42a1cd7b2f633d4be23d97 | dd4735674c5dcd5f048756ceffce1a71b53ed03b | refs/heads/master | 2021-01-13T16:15:28.118724 | 2019-03-02T08:18:29 | 2019-03-02T08:18:29 | 81,872,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import sys
import os
from wand.image import Image
from pdfrw import PdfReader
PDF_EXT = '.pdf'
IMAGE_EXT = '.jpg'
RESOLUTION = 500
def convert_pdf_to_image(pdf_file, dest_dir):
filename, ext = os.path.splitext(pdf_file)
if os.path.exists(pdf_file) and ext == PDF_EXT:
pages = PdfReader(pdf_file, de... | [
"lucadeluigi91@gmail.com"
] | lucadeluigi91@gmail.com |
f6ced2b4805a2ac25e3a6f5f5bc67b175ac0c922 | 69d3680f881833a0a4906ad708eac11401bc03c6 | /python3/515. 在每个树行中找最大值.py | 7f9663db2eb82e0576ad697414cd72b43c7432df | [] | no_license | menghuu/YALeetcode | 21df4b5ea6cb0a249263b0ce2df37e7580477ddd | 1959a884bb1cc9f2f1acb1ba6f413498ea0d1aca | refs/heads/master | 2023-08-18T03:55:41.470428 | 2021-09-11T12:39:02 | 2021-09-11T12:39:02 | 269,104,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 m <m@meng.hu>
#
# Distributed under terms of the MIT license.
"""
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
... | [
"m@meng.hu"
] | m@meng.hu |
468645e9619fb25182bf7c27b275edf40ec84218 | afa4ad9cefeb12f78fa7176d2c80d71cc5a76d1c | /clastic/tests/common.py | e1327a4596c8a3033fab40fdefe4c40417973191 | [
"BSD-3-Clause"
] | permissive | slaporte/clastic | 0d88fdc56570de578efcd221d1a5182be661ac97 | d7734040160ece0bf2dd6ef10770be838776056f | refs/heads/master | 2021-01-16T22:36:30.852244 | 2013-09-15T01:43:11 | 2013-09-15T01:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | # -*- coding: utf-8 -*-
import clastic
from clastic import Middleware
def hello_world(name=None):
if name is None:
name = 'world'
return clastic.Response('Hello, %s!' % name)
def hello_world_str(name=None):
if name is None:
name = 'world'
return 'Hello, %s!' % name
def hello_world... | [
"mahmoudrhashemi@gmail.com"
] | mahmoudrhashemi@gmail.com |
b4a0be1470e467285d734202a3faced0aa92de3a | 954ceac52dfe831ed7c2b302311a20bb92452727 | /python/tvm/relax/dpl/__init__.py | e0bbdaff05127fcefdd39e14799047773730be0e | [
"Apache-2.0",
"LLVM-exception",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Zlib",
"Unlicense",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | tqchen/tvm | a0e4aefe8b8dccbdbe6f760549bed6e9545ad4a1 | 678d01dd4a4e75ef6186ce356bb1a20e584a7b24 | refs/heads/main | 2023-08-10T02:21:48.092636 | 2023-02-25T18:22:10 | 2023-02-25T18:22:10 | 100,638,323 | 23 | 8 | Apache-2.0 | 2023-02-20T16:28:46 | 2017-08-17T19:30:37 | Python | UTF-8 | Python | false | false | 876 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"tianqi.tchen@gmail.com"
] | tianqi.tchen@gmail.com |
f23343b409b67f1ed8b81fd6a541d2127152e76b | 988781c5bd40b19300a4146d7643120f46a51753 | /commands/default_cmdsets.py | 1ae72ff7b2a4a261562b77494687c6a596c0ec92 | [] | no_license | philnelson/chronopolis | 9cf1b10af4ce5b62da2e417861860926afa703f5 | 1b2be502cf81411d6c7c2c9a8bb1949de5437a5a | refs/heads/master | 2020-03-08T16:57:34.813159 | 2018-04-09T17:34:37 | 2018-04-09T17:34:37 | 128,255,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | """
Command sets
All commands in the game must be grouped in a cmdset. A given command
can be part of any number of cmdsets and cmdsets can be added/removed
and merged onto entities at runtime.
To create new commands to populate the cmdset, see
`commands/command.py`.
This module wraps the default command sets of Ev... | [
"phil@extrafuture.com"
] | phil@extrafuture.com |
57ee62c2b454803a41896a4bf9ceef507af16a53 | fa06915cb1f1d49d636ee2137889cfd66c6e55af | /metodos_confinamentos/secante.py | 18e79f85bf7e3f67cb40920e9a009f43320520b7 | [] | no_license | DarknessRdg/mat-computacional | 7ed45dd333bec52b509128e6d106efaa4a205cea | 30fd0dd144a10a91f3a11055d20ebdab72be3620 | refs/heads/main | 2023-04-03T10:27:35.510285 | 2021-04-16T04:30:38 | 2021-04-16T04:30:38 | 329,485,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import math
from utils import trunc
def secante(x1, x2, funcao, tolerancia):
f_x1 = 0
loop = 0
while loop == 0 or abs(f_x1) > tolerancia:
loop += 1
f_x1 = funcao(x1)
f_x2 = funcao(x2)
x3 = x2 - ((f_x2 * (x1 - x2)) / (f_x1 - f_x2))
feedback = (
'loop ... | [
"luanrodrigues007@hotmail.com"
] | luanrodrigues007@hotmail.com |
5a4cf44e3bbc3f22c141b8f8ed919d023ecd9365 | 382c4f85ca26d2d6a6bb287f14e70e1b485f77b4 | /2018/task5/solution.py | cd3895040a1a56ae5c0c8eb445192f44e17811b7 | [] | no_license | sapkos/advent_of_code | c5b783d9e773f2ede8a350d68f20c21650dd182e | 8005a3f7879f6a350e082de4a80264387dfacb35 | refs/heads/master | 2020-04-09T02:02:59.515353 | 2019-12-09T21:41:26 | 2019-12-09T21:41:26 | 159,926,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from string import ascii_lowercase
with open('input.txt') as f:
word = f.read()
stosik = []
def is_reacting(a, b):
return ((a==b.lower()) and (a.upper()==b)) or ((a.lower()==b) and (a==b.upper()))
for char in word:
if stosik and is_reacting(stosik[-1], char):
stosik.pop()
else:
stosi... | [
"szymon.sapkowski@samba.tv"
] | szymon.sapkowski@samba.tv |
0e3558e47561e850419df0c5701c93bfd1818048 | 2772f804bae2bf1dad1c9fcab435c98696465c65 | /二刷+题解/每日一题/minCameraCover.py | aba1966661634456e10dc88a4eea8520e49f8eee | [] | no_license | 1oser5/LeetCode | 75e15a2f7a1a7de1251fe5f785ad06a58b4b8889 | 40726506802d2d60028fdce206696b1df2f63ece | refs/heads/master | 2021-07-19T04:40:17.637575 | 2020-09-30T00:16:39 | 2020-09-30T00:16:39 | 211,662,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # -*- encoding: utf-8 -*-
'''
@File : minCameraCover.py
@Time : 2020/09/22 08:52:25
@Author : Xia
@Version : 1.0
@Contact : snoopy98@163.com
@License : (C)Copyright 2019-2020, HB.Company
@Desc : None
'''
# here put the import lib
# Definition for a binary tree node.
# class TreeNode:
# def ... | [
"snoopy98@163.com"
] | snoopy98@163.com |
e21c4b5c7730ecd49513a9820a31aa059f4ceb1c | 6d9e4ab7e786617042d5e09173144d95b88b142d | /typeidea/custom_site.py | 556c9fb026ecb56ca0deeddeefe64c0d056d7187 | [] | no_license | Yzhanjiang/typeidea | 3fc44707e673a8769f582bf0a20ed838fd5bdae7 | 6b669f1d2112eb036af3be0bc0cbe788e6967dfa | refs/heads/master | 2021-01-23T10:34:38.542295 | 2018-10-03T02:52:14 | 2018-10-03T02:52:14 | 101,458,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | #!/usr/bin/env python
#coding:utf8
class custom_site():
pass | [
"251642766@qq.com"
] | 251642766@qq.com |
2c452f4e7e72702d7354e8fa50f100cf8bc38220 | 923ebf37cfd9311c1de0f0d7b96589fbe6e1b1d8 | /Functions/Internal Force Calculations/InterpolatePanelPressure.py | 25356ab420462379a0ef2f486c4d04a3ae71bf1f | [] | no_license | jsolvang/MUFP-Optimisation | f134f4792de372cf04a17e8fd8e09ea1039be89d | c05ad645638ca8ab032448b6c2a7506226d94cf7 | refs/heads/main | 2023-08-31T07:57:59.571608 | 2021-10-05T16:22:45 | 2021-10-05T16:22:45 | 413,427,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from scipy import interpolate
import numpy as np
# Interpolation function
def interpolate_panel_pressure(sim, column_pressure, f_rad):
panel_pressure_interp = np.zeros(shape=(2, len(f_rad), len(column_pressure[0, 0, :, 0]), 21))
for ii, _ in enumerate(column_pressure[:, 0, 0, 0]):
for jj, _ in enumer... | [
"67953495+jsolvang@users.noreply.github.com"
] | 67953495+jsolvang@users.noreply.github.com |
d9d6170dc9afb8e6db2dc891ea9ed441996d7528 | 280086eb5c09278a0b558c11b7b9b08883e9a65d | /funstuff/funstuff.py | 1879fffc627615eeb6861ec4ded98178bb7376d8 | [] | no_license | TechStar123/Kurvoid | fa7e139da6e83fc739c1fb12bdad482c2917a18d | e7b62f43b0e87607a086e4ed3f07e6160efa796f | refs/heads/main | 2023-02-12T13:02:57.069005 | 2021-01-12T01:04:31 | 2021-01-12T01:04:31 | 328,828,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,856 | py | from redbot.core import commands
from redbot.core.utils.chat_formatting import pagify
import random
from typing import Literal
from redbot.core import Config, bank, commands, checks
from redbot.core.utils import AsyncIter
from redbot.core.errors import BalanceTooHigh
import asyncio
import discord
from .animals... | [
"noreply@github.com"
] | TechStar123.noreply@github.com |
3181dad9678f15a10294fae0a6fb7334ab5f4cba | 14ca48dc9252a779c0b82a511d7687a763192b8f | /listoperators.py | 0adbde1a046f544be8f504a4591f49b89c6766a6 | [
"MIT"
] | permissive | Coder4OO/listoperators | 398663d1650781263a1c28126869f1d30b94ef0e | 8f660f4fbec65a9c547e1cae55fcdce575a3e178 | refs/heads/main | 2023-06-27T02:36:36.893182 | 2021-07-24T15:18:25 | 2021-07-24T15:18:25 | 389,129,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | from functools import reduce
import operator
def list_multiply(l):
return reduce(operator.mul, l)
def list_divide(l):
return reduce(operator.div, l)
def list_subtract(l):
return reduce(operator.sub, l)
def list_sum(l):
return sum(l)
| [
"noreply@github.com"
] | Coder4OO.noreply@github.com |
e88de8a6f97600d2db0bca15862523e3391bb291 | 821e27e52b077edf9ba9f30ee770394d38b46412 | /cxr_covid_predictor/urls.py | 97f6b3d367ea1511afcb85006699d8a791d02322 | [] | no_license | dimdejesus/cxr_covid_predictor | 7e520d892a6f1babf0b7a505d9c7b83175f1fc78 | 2a38c9ce8b9b007fbe417c1228b0fba8b1bc2587 | refs/heads/main | 2023-08-15T17:53:46.473746 | 2021-10-04T12:36:16 | 2021-10-04T12:36:16 | 413,134,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | """cxr_covid_predictor 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')... | [
"ddejesus0320@gmail.com"
] | ddejesus0320@gmail.com |
db6ba2fc2635e56052c35ca36a819d6348f32bd3 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/common/Lib/ctypes/macholib/dylib.py | 55b791f15df2416f3ae4ab32269899edf999a3d8 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,276 | py | # 2017.05.04 15:31:20 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/ctypes/macholib/dylib.py
"""
Generic dylib path manipulation
"""
import re
__all__ = ['dylib_info']
DYLIB_RE = re.compile('(?x)\n(?P<location>^.*)(?:^|/)\n(?P<name>\n (?P<shortname>\\w+?)\n (?:\\.(?P<version>[^._]+))?\n (... | [
"info@webium.sk"
] | info@webium.sk |
0eb91115050dd84862b4b5adc45e51414a098dc9 | 5faa3f139f30c0d290e327e04e3fd96d61e2aabb | /mininet-wifi/SIGCOMM-2016/hybridVirtualPhysical.py | a318efac432e79db502409c7800249359668848f | [] | no_license | hongyunnchen/reproducible-research | c6dfc3cd3c186b27ab4cf25949470b48d769325a | ed3a7a01b84ebc9bea96c5b02e0c97705cc2f7c6 | refs/heads/master | 2021-05-07T08:24:09.586976 | 2017-10-31T13:08:05 | 2017-10-31T13:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,853 | py | #!/usr/bin/python
"""Code created to be presented with the paper titled:
"Rich Experimentation through Hybrid Physical-Virtual Software-Defined Wireless Networking Emulation"
authors: Ramon dos Reis Fontes and Christian Esteve Rothenberg"""
"""Topology
(2)ap2(3)
/ \
... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
3af9d4502ed80b048f1d39d29d825f2cbe48b44d | 374f5e3e2f65b2e9bf341beb76cafd37eff1fb3b | /Lib/site-packages/rails/response.py | 900ca6b69de38b9d481044cf07d19cf7e2a5bd05 | [
"BSD-3-Clause"
] | permissive | FredyJoelSis/herokuapi | 67300b8bae37eae023dfcb1b3fe2b3aa9b817da7 | e203e1c7ba70ff384d43db27f6fa8b1d56c73b76 | refs/heads/main | 2023-07-05T13:20:32.341841 | 2021-08-12T04:03:53 | 2021-08-12T04:03:53 | 395,184,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from webob import Response as WebobResponse
class Response(WebobResponse):
"""
Extended response object.
"""
pass
| [
"85387339+FredyJoelSis@users.noreply.github.com"
] | 85387339+FredyJoelSis@users.noreply.github.com |
d39dd211bfebe08a6e11256b0b84abca0233e94a | ec6b8a36bc3ae0ab9dff0117bffa2a4adff42681 | /venv/Lib/site-packages/tensorflow/_api/v2/compat/v2/compat/v2/__init__.py | 7ae5e3e43d5d11c6f8bb55bb5de9d81ff99a29c6 | [] | no_license | niloofarhp/vehicle-detection-Recognition | ce523fbc9863c50d20491d5a54c18ce5a96aa6ef | d235269d87cf1c00d60d1882a1a9aafc982919c6 | refs/heads/main | 2023-07-07T06:50:39.364213 | 2021-08-01T17:47:12 | 2021-08-01T17:47:12 | 390,743,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,592 | py | # Copyright 2015 The TensorFlow 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... | [
"niloofar.hp@gmail.com"
] | niloofar.hp@gmail.com |
328378e9ec6da68b38cdd54ef721e443cd715fb1 | 801f29f66832f128ca0790c7b1b71739980d821b | /tensorflow-score/tf_load.py | 6694135eaca2dade06e98b97d9fd6180c67fb567 | [] | no_license | Tembryo/dota-analysis | b70bf06e2417110405ea03705a9f701ee452dc6f | ddae01ce8b1d438fb73a118e983012a43c76e9e2 | refs/heads/master | 2021-01-18T18:37:44.735093 | 2016-07-29T14:02:28 | 2016-07-29T14:02:28 | 44,391,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,628 | py | import csv
import numpy as np
from sklearn.feature_extraction import DictVectorizer
from sklearn.preprocessing import StandardScaler
import collections
import random
def importCSV(file):
reader = csv.DictReader(file)
result = []
for row in reader:
ok = True
for key in row:
if ... | [
"fischerq.de@gmail.com"
] | fischerq.de@gmail.com |
d1ac0d2d109d40e4f9ba60558808dbce428e8e9c | 55d3f77fa214901b59a1dfd7e66c52369da1d948 | /hubi/models/wiz_create_productprice.py | 7d125efd73b71b5602ae7b67a2f67501d59ca782 | [] | no_license | arsenepoutsi/Projet_HUBI | 22f5fa87579dc801aa8f46f6ce420d67f43398f2 | a614cfae2535dba86442659a9b6baf49215ef2d4 | refs/heads/master | 2020-11-25T08:08:05.122700 | 2019-12-17T08:32:13 | 2019-12-17T08:32:13 | 228,568,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,411 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models, _
from datetime import date, timedelta, datetime
from odoo.exceptions import ValidationError
class Wizard_productprice(models.TransientModel):
_name = "wiz.productprice"
_description = "Wizard creation of price"
category_id = fields.Many2... | [
"arsenepoutsi@gmail.com"
] | arsenepoutsi@gmail.com |
e1a0cc35139d2225a59c6a38f7203f7ca8deabee | e76683547c26a6f902e3c68ebfc207a1d9abe79f | /03_RequestsHandlingInDjango/board/board/middleware/entry_sleep_middleware.py | 94557765cc10f5aaaf8ae48a4ec622e23ac01426 | [] | no_license | antoshkoo/python_django | 03b19f3307b9aef1cc4c2bf2858b550334442ebe | ecb8b1c3edfe3e1af6a531cb237bb5d9f4e50601 | refs/heads/master | 2023-03-19T18:52:54.257903 | 2021-03-05T16:09:56 | 2021-03-05T16:09:56 | 339,375,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import time
class EntrySleepMiddleware:
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
# time.sleep(1)
responce = self.get_response(request)
return responce
| [
"antoshkoo@gmail.com"
] | antoshkoo@gmail.com |
85acd8c33a4d86b37f68e76988f2f8be9b1fe762 | 9c3f071b8fe19850324444f9c06f7088de4778a6 | /Solar_Position_Determination/SolarPositionDetermination.py | 5e3da4ccb3dafc024b39a565c3f46a5738555e9d | [] | no_license | rayarka/EG3301R_Data_and_Programs | dfb20b7443ffb375b05b515a12ba7b9fe50b7efd | 13cd8bbed8c9addba313072d23b0fac0257f1da2 | refs/heads/main | 2023-02-16T18:20:14.180487 | 2021-01-19T03:34:33 | 2021-01-19T03:34:33 | 313,043,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | from pvlib import solarposition
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# CHANGE THE FOLLOWING PARAMETERS TO GET DIFFERENT RESULTS
# Timezone - Singapore's timezone taken from online tz database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
timezone = 'Asia/Singap... | [
"noreply@github.com"
] | rayarka.noreply@github.com |
400e0cbc8ddf1af81c4576306a061e3557142533 | 94d1e542e44b508c88d76b00d709f9f6a1a16289 | /insert_data.py | 9dd4505adb238a5d9b3a3637539e657f97323054 | [] | no_license | Tom-Leee/Python_Chatbot | 8abbf4d37a9e2b08e8e48c1bce0149e2d01d39b5 | e64d23c4fd9c6fa763f639e32049b5a5ac0607ab | refs/heads/master | 2023-02-24T04:05:06.325229 | 2021-02-03T02:48:31 | 2021-02-03T02:48:31 | 334,850,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | import pymysql
db = None
try:
# pymysql.connect() 함수를 사용하면 DB 서버에 접속할 수 있습니다.
# connect() 함수의 인자는 다음과 같습니다.
# DB 호스트 정보에 맞게 입력
db = pymysql.connect(
# 데이터 베이스 서버가 존재하는 호스트 주소
host='localhost',
# 데이터베이스 로그인 유저
user='root',
# 데이터베이스 로그인 패스워드
passwd='jok... | [
"joohyoung.t.lee@gmail.com"
] | joohyoung.t.lee@gmail.com |
9428c285bc4fc2aa86c8fd8e7488a758f45bfba7 | c7262c5612d6a0a100b854ec7b93ea6b87bd7357 | /tkgui/__init__.py | f8b69a0b0a1c5643c5da210236514b3d4a4f357a | [
"ISC"
] | permissive | Pidgeot/python-lnp | 71d8207d1b72d310b16e82a2d88f5ee9fa3127a2 | 6d1e9452155618367918945548a1cb41463a1e34 | refs/heads/master | 2023-03-17T00:40:48.893000 | 2023-03-10T14:52:52 | 2023-03-10T14:52:52 | 103,780,162 | 64 | 12 | ISC | 2023-09-05T16:52:23 | 2017-09-16T19:59:23 | Python | UTF-8 | Python | false | false | 28 | py | """TKinter UI for PyLNP."""
| [
"michael@birdiesoft.dk"
] | michael@birdiesoft.dk |
0f46f52ab83c0ecc174c3ed6da715bbc140ed3b1 | e48344cc54b1ad6e362b55a0aabf54b38738056c | /OpenCV_1_입출력과 GUI/Canny_with_GUI.py | e0da28be0bd83dbd5297a3a3955105e87450fa19 | [] | no_license | junsoofeb/Deep_Learning_for_CV | b458a4ca7baf7d2a6d3a47c536e054f2ba69076a | 47004821aeddbbe5a0e97b5da4b6a1f094ae7b04 | refs/heads/master | 2020-09-13T06:38:59.776614 | 2020-01-04T13:58:12 | 2020-01-04T13:58:12 | 222,683,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import cv2 as cv
import numpy as np
import sys
fill_val = np.array([255, 255], np.uint8)
min = 50
max = 150
def trackbar_callback_min(min, im):
global img
img = cv.Canny(im, min, 100)
def trackbar_callback_max(max, im):
global img
img = cv.Canny(im, 100, max)
img = cv.imread("/home/junsoofeb/p... | [
"noreply@github.com"
] | junsoofeb.noreply@github.com |
88648b48ace3d9b3b880559928464aa7fe7e236a | 4e992864069f301cefa7ab19d092a6484c0a2a2d | /test.py | 629cbf409f35a50a1be0d58fff87e6cb37a0ad4d | [] | no_license | HoanGnR/MCN_week3_prefixCodeImplementation | 9532e86c89fcb2c8b16b0f374cc7868b5d9d91d4 | 4facdabcfef816259953459e78cad5178986b78e | refs/heads/master | 2022-12-29T02:00:38.004734 | 2020-09-30T19:23:55 | 2020-09-30T19:23:55 | 300,035,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from prefixcodetree import *
codebook = {
'x1': [0],
'x2': [1,0,0],
'x3': [1,0,1],
'x4': [1,1]
}
codeTree = PrefixCodeTree() # create a prefix code tree `codeTree`
# Initialize codeTree with codebook
for symbol in codebook:
codeTree.insert(codebook[symbol], symbol)
#print (n)
#print(str(codeTree.findNode(n,0)))
mes... | [
"noreply@github.com"
] | HoanGnR.noreply@github.com |
88714f0674500d5b3ab3962a0d7892afb809344c | c277ce8e73ecfeaacd6e45c6302c0fd48655c1e6 | /QAC Python Challenges/Easy Challenges/'Near' Exercise.py | 97ce8a2319d4dec906a18dda6d175d05ce54be82 | [] | no_license | joshuahigginson1/Python_Study_QA | 32c50bb9e06d99d5a3baa5cc3584e790eebec84f | 2da4d3608091dbe05fda325f958e8ac24aa8d37d | refs/heads/master | 2022-11-30T21:54:14.579549 | 2020-08-13T13:54:10 | 2020-08-13T13:54:10 | 280,158,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | """
Task: When given two strings of letters,
determine whether the second can be made from the first by removing one letter.
The remaining letters must stay in the same order.
near ("reset", "rest") => true
near ("dragoon", "dragon") => true
near ("eave", "leave") => false
near ("sleet", "lets") => false
Dev Notes:... | [
"joshuahigginson1@gmail.com"
] | joshuahigginson1@gmail.com |
ae0a246b65ae31d255a3cc51cecfd9d393fe018a | 9c73dd3043f7db7c9ec76d560484e99ad134fdb6 | /students/Shirin_A/lesson08/assignment/tests/test_inventory.py | eac91903a6023b907b02159b4072e8250af9075c | [] | no_license | UWPCE-PythonCert-ClassRepos/py220-online-201904-V2 | 546b316025b680ca28d24b523663095398616b13 | ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56 | refs/heads/master | 2022-12-10T03:14:25.514630 | 2019-06-11T02:14:17 | 2019-06-11T02:14:17 | 179,139,181 | 1 | 19 | null | 2022-12-08T01:43:38 | 2019-04-02T18:49:10 | Python | UTF-8 | Python | false | false | 920 | py | """
Autograde Lesson 8 assignment
"""
import pytest
import inventory as I
@pytest.fixture
def _add_furniture():
return ("../data/invoice_file.csv", "Elisa Miles", "LR04", "Leather Sofa", 25)
@pytest.fixture
def _single_customer():
return ([['LR01', 'Small lamp', 7.5],
['LR02', 'Televisio... | [
"sirin_ruet@yahoo.com"
] | sirin_ruet@yahoo.com |
b280a34f704939651ee03930ae7366dd84668ae3 | a7b13784688d7ae5392ddd3332fde375419df8e8 | /setup.py | 272968036885bd430102f3c775818d1f1e4bf36e | [] | no_license | ArunSinghJ123/aws-python-boto3 | dcb0853e1497fcb6c43c0fe4704848b1f3891b0b | dd4b56d093aa2bc8ac1ac17fe5237a82fce8abae | refs/heads/master | 2021-04-18T18:50:01.039530 | 2020-04-07T05:00:07 | 2020-04-07T05:00:07 | 126,759,353 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import sys
from setuptools import setup
setup(
name="awshammer",
version="0.0.1",
author="Arun",
author_email="arunsinghkce@gmail.com",
description="Packaging boto3 aws scripts",
url="https://github.com/ArunSinghJ123/aws-python-boto3",
install_requires=['boto3', 'awscli'],
packages=['ia... | [
"arun@Arunsinghs-MBP.home"
] | arun@Arunsinghs-MBP.home |
21d3f37f0ebe4ec592d700a1d4acdf2080efe131 | c77a40408bc40dc88c466c99ab0f3522e6897b6a | /Programming_basics/Exercise_6/PasswordGenerator.py | d16198682725a9db48d9d7f698aaecd4211c4375 | [] | no_license | vbukovska/SoftUni | 3fe566d8e9959d390a61a4845381831929f7d6a3 | 9efd0101ae496290313a7d3b9773fd5111c5c9df | refs/heads/main | 2023-03-09T17:47:20.642393 | 2020-12-12T22:14:27 | 2021-02-16T22:14:37 | 328,805,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | num = int(input())
let = int(input())
for i_1 in range(1, num+1):
for i_2 in range(1, num+1):
for i_3 in range(97, 97+let):
for i_4 in range(97, 97+let):
for i_5 in range(max(i_1, i_2)+1, num+1):
print(f'{str(i_1)+str(i_2)+chr(i_3)+chr(i_4)+str(i_5)}', end=' ... | [
"vbukovska@yahoo.com"
] | vbukovska@yahoo.com |
6d63bfb92c5a72e38f2a7c3c8ebbe32b7e9ad516 | 457e2f5b2a26877df739e314ec1560e8a3ecfb97 | /controllerMaker/controllerMaker.py | 80cee9d6f2d79933805ee707da01d112e70e8ee8 | [] | no_license | mappp7/tools | f6685d9a682bd540d59c1bff0cebb60f79fd6556 | c537e7648112c51ba4f44225418e773ee6b8be6c | refs/heads/master | 2021-01-14T16:40:44.450790 | 2020-10-30T05:30:27 | 2020-10-30T05:30:27 | 242,682,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,757 | py | #encoding=utf-8
#!/usr/bin/env python
#-------------------------------------------------------------------------------
#
# Dexter Rigging Team
#
# yunhyuk.jung
#
# 2017.11.21 ver.1.2.3
#-------------------------------------------------------------------------------
import os
import site
import maya.cmds a... | [
"56536931+mappp7@users.noreply.github.com"
] | 56536931+mappp7@users.noreply.github.com |
ec3279a0d583a81c3f3babb1c9cf24cf74075378 | 2e4023d59718d87e1940b27ada9155a9a47a7668 | /tests/serialization/serializers_test.py | 78ee84a4e45f73535abd4bd8f1ecd15917121351 | [
"Apache-2.0"
] | permissive | olukas/hazelcast-python-client | c71038a22b73de894320d641dbf617509049c63d | 63bcbaaef0bf755e4e94e8e536d19d964e02144a | refs/heads/master | 2020-03-20T21:27:02.460282 | 2018-06-18T11:50:39 | 2018-06-19T12:02:37 | 137,741,377 | 0 | 0 | null | 2018-06-18T11:02:55 | 2018-06-18T11:02:55 | null | UTF-8 | Python | false | false | 3,526 | py | import binascii
from hzrc.ttypes import Lang
from hazelcast.config import SerializationConfig, INTEGER_TYPE
from hazelcast.serialization.data import Data
from hazelcast.serialization.serialization_const import CONSTANT_TYPE_DOUBLE
from hazelcast.serialization.service import SerializationServiceV1
from tests.base impo... | [
"arslanasim@gmail.com"
] | arslanasim@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.