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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62e2055c06bdab8ebe9363f8cb6ba7382d3af888 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1798177/homework04/program02.py | 2afb7299a76787aa239a4beaaac8f0e9130c4d9e | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,331 | py | # Il tris è un popolarissimo gioco. Si gioca su una griglia quadrata di 3x3
# caselle. A turno, i due giocatori scelgono una cella vuota e vi disegnano il
# proprio simbolo (un giocatore ha come simbolo una 'o' e l'avversario una 'x').
# Vince il giocatore che riesce a disporre tre dei propri simboli in linea retta
# o... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
e5edc21a34b45ca67e7abb9b03ee9215880f212d | c440bcb0e566ed107d198593bfeb482c59276dd8 | /advent_of_code/2021/day10_1.py | 2d34868acd58b3462cc9f7332e432aea3f23b3a6 | [] | no_license | TheCDC/Musings | 1ee917bbf2fd39f6fa97b268568053ca6ad7fbbf | 7b07e315230248239bbccad5d85d0a5e8a54d5d8 | refs/heads/master | 2022-11-30T23:37:24.608955 | 2021-12-19T08:12:03 | 2021-12-19T08:12:03 | 175,046,297 | 0 | 0 | null | 2022-11-22T07:20:49 | 2019-03-11T17:01:54 | Python | UTF-8 | Python | false | false | 1,751 | py | from typing import List, Optional, Tuple
with open("inputs/day10.txt") as f:
lines = f.read().split()
openers = "([{<"
closers = ")]}>"
points_corruption = {")": 3, "]": 57, "}": 1197, ">": 25137}
def complete(opens: List[str]):
to_complete = opens[:]
completion: List[str] = []
while to_complete:
... | [
"christopher.chen1995@gmail.com"
] | christopher.chen1995@gmail.com |
2dd0f2b4ecbe9a9e488c7bbbb3b682fe8d7cc773 | 108f35831d5f81dd1e8eaace0b05e7202d2258dd | /searchr_app/file_analyzer/FileAnalyzer.py | 2a8d62151de3763affead234dd4f587e91b2b260 | [] | no_license | cebul55/Searchr_Project | d54c997bb5cc5eda8a066d74adf8bb06dead9ebe | f629439912cdd4e822f549c48740611cab2e9d6f | refs/heads/master | 2020-08-05T20:15:02.560090 | 2020-01-26T23:28:22 | 2020-01-26T23:28:22 | 212,691,605 | 0 | 0 | null | 2020-01-26T18:55:51 | 2019-10-03T22:21:09 | Python | UTF-8 | Python | false | false | 3,940 | py | import itertools
import json
from bs4 import BeautifulSoup
from searchr_app.file_analyzer.HTMLFileAnalyzer import HTMLFileAnalyzer
from searchr_app.file_analyzer.TextFileAnalyzer import TextFileAnalyzer
class FileAnalyzer(object):
search_result = None
search_phrases_combination = None
# phrases defined ... | [
"B.Cybulski@stud.elka.pw.edu.pl"
] | B.Cybulski@stud.elka.pw.edu.pl |
13499e083165756c2b409cacdc7e80ddbc1bb0ee | d7ff534ef84ca89c5e0505f249374a77b74559f9 | /services/users/project/api/utils.py | 7e051efb9fce1a609dbfaf5feb7d5dd7296d3316 | [] | no_license | Muhinyuzi/testdriven-app | 10095c25cb0473f73734a3356bfd8d1ce7917c14 | 625982c8e2bdea3200f6962751210d158365a6a3 | refs/heads/master | 2022-06-21T06:39:03.323832 | 2019-12-03T11:28:24 | 2019-12-03T11:28:24 | 154,828,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # services/users/project/api/utils.py
from functools import wraps
from flask import request, jsonify
from project.api.models import User
def authenticate(f):
@wraps(f)
def decorated_function(*args, **kwargs):
response_object = {
'status': 'fail',
'message': 'Provide a valid au... | [
"mujecla007@gmail.com"
] | mujecla007@gmail.com |
dc47da1229fb1fe7b1bab77e741c3d578297a343 | d205793571b39fe254f513f4437f37c47f4db011 | /src_py/ztf_data.py | 8c01c96019f18722082a48d7ffa032ab7d4514e1 | [] | no_license | memanuel/kepler-sieve | ba996c4008edec3458ac0afbfa3bee95367467cd | 9f11f377d82cb941d77159fd7b97ae2300b6ca6a | refs/heads/main | 2021-11-22T19:07:13.725263 | 2021-08-08T20:44:47 | 2021-08-08T20:44:47 | 236,581,914 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,965 | py | """
ZTF Data
Calculations to enrich ZTF data after it is loaded.
Michael S. Emanuel
24-Mar-2021
"""
# Standard libraries
import numpy as np
import pandas as pd
# Astronomy related
from astropy.units import deg
# UI
from tqdm.auto import tqdm as tqdm_auto
# MSE imports
from db_utils import df2db, sp2df, sp_run
from... | [
"michael.s.emanuel@gmail.com"
] | michael.s.emanuel@gmail.com |
2466a150d32b4e609db3ff2436a9814b440d4592 | 764cd26665124fdba7ad36e1dbb5c45cfc3c8ac2 | /0x0B-python-input_output/0-read_file.py | c4c3d7507a44edf365cf57fc51ce838ff5cf6eb2 | [] | no_license | Athesto/holbertonschool-higher_level_programming | 633dbc006ba895e52a7db10b0a6e2f7b65a3f283 | 5de9c7fa35247ae27c488f1a4ed1db8f7aa6bd5e | refs/heads/master | 2023-05-02T21:03:11.872649 | 2021-05-25T21:09:54 | 2021-05-25T21:10:59 | 291,834,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | #!/usr/bin/python3
'''task 0'''
def read_file(filename=""):
'''read file'''
with open(filename, 'r', encoding="utf-8") as file:
for line in file:
print(line, end='')
| [
"gamez.live@gmail.com"
] | gamez.live@gmail.com |
3b8e576a97ba4ac059b20ebad2031a6905f954f0 | e75d8c82d32db8544f90cd298fcbc9bf99570322 | /beginnerModel.py | b48fe82c944aa8947bbe9777a2b6be54119edf60 | [] | no_license | szr712/SkipRope2 | d5069d661bbc84d3f18234e035185e90a4db368d | 60941a6362ab200afa3642a4b4708feef44dd7f6 | refs/heads/master | 2023-04-21T07:04:26.898651 | 2021-05-12T06:39:19 | 2021-05-12T06:39:19 | 360,069,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,082 | py | import os
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout
from tensorflow.keras.layers import LSTM
import tensorflow as tf
from tensorflow.python.keras import Input
from tensorflow.python.keras.layers import concatenate, add
from tensorflow.python.keras.models import M... | [
"zirui990712@163.com"
] | zirui990712@163.com |
3537aa0fb0be8afecb49e6666914e44afa4ab13f | 3e01b405b99c95c48cf97f6d2f0609132e7aa80f | /Project Code/ICG with Quadruples/a.py | 48e641adc9f5c9aa8884652dfc5fd106b872f2ad | [] | no_license | rishabh15b/Compiler-Design-CPP | a1ee6944b98295561842795d6f229f37a9d89f53 | fe1b43c8dee0c9afa48393aabeec66eaf8c6922e | refs/heads/master | 2022-09-22T18:11:48.829062 | 2020-06-05T10:51:14 | 2020-06-05T10:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | fp=open("out.txt","r")
lines=fp.readlines()
#print(lines)
#lines.pop()
c=0
d_value={}
d_reg={}
used=[0]*16
#print(lines)
i=0
while(i<len(lines)):
stmt=lines[i]
stmt=stmt.strip("\n")
#print(stmt)
if("=" in stmt):
index=stmt.index("=")
lhs=stmt[0:index]
exp=stmt[index+1::]
lhs=lhs.strip()
exp=exp.strip()
... | [
"kashishoberoi00@gmail.com"
] | kashishoberoi00@gmail.com |
bededd6fe791e5c9a093dd367ca0f71eb18b58a2 | 10be352a4d80672c108fc66e86afec977ec830de | /cs1_final/DissemblerSolver.py | 4f3206e839c973618fadcc7e275b56dfa5e9afda | [] | no_license | MeganTj/CS1-Python | cef5a7cd812f294812beff58c69514d52e2c1541 | 09b4a7cfb9bfb6bc64b631e6fd8c35ff35a5ca56 | refs/heads/master | 2022-02-16T17:49:34.218252 | 2022-01-27T06:22:29 | 2022-01-27T06:22:29 | 178,276,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,984 | py | # Name: Megan Tjandrasuwita
# CMS cluster login name: mtjandra
'''
Solves a Dissembler puzzle given a puzzle in the form of a one-line string.
'''
import string
from utils import *
# ----------------------------------------------------------------------
# Global data.
# --------------------------------------------... | [
"26992324+MeganTj@users.noreply.github.com"
] | 26992324+MeganTj@users.noreply.github.com |
5cc782ae961498b0b58560713f086c5bc4bfa0ed | 4f48e707f6a50adb40c13aaee1d10d9d76c81780 | /logsapp/migrations/0001_initial.py | 86dd00cf84cba4766c5eb9bfc533c575d077c607 | [] | no_license | rishanexe/logistics | a7c3421e4a8493bc71559b7e76ed2824a880bdc3 | e383929d8247842bfbc2e53e6822b07a4bf85402 | refs/heads/master | 2020-04-26T08:36:46.057822 | 2019-04-04T17:29:22 | 2019-04-04T17:29:22 | 173,428,159 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # Generated by Django 2.1.7 on 2019-03-03 09:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Details',
fields=[
('id', models.AutoField(... | [
"ri5han@github.com"
] | ri5han@github.com |
53a60bedfce82eb6c8617cb9f78d86af5ec5433b | 0c8174248dedf4b1dc152d4f944165c0313048ea | /220. Contains Duplicate III.py | dcb506cf2bedab2a3a92862caca1119f7b483c30 | [] | no_license | linruili/leetcode-python3.5 | 6c31b4ff8985a4c3f94930698df2de13bf2a1420 | 01680c813150e5fb9ddd52b0746add5d416104f2 | refs/heads/master | 2021-01-20T18:45:05.059677 | 2016-07-01T15:03:08 | 2016-07-01T15:03:08 | 61,994,520 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 108,153 | py | def containsNearbyAlmostDuplicate(nums, k, t):
"""
:type nums: List[int]
:type k: int
:type t: int
:rtype: bool
"""
for i in range(len(nums)-1):
for j in range(i+1 , min(len(nums) , i+k+1)):
if abs(nums[i]-nums[j]) <= t:
return True
return False
L=[24... | [
"linruili1113@gmail.com"
] | linruili1113@gmail.com |
d6cbfefec0772206808b2dbfbe06b5750a86f444 | c3abc9e55a0a57027ef6928e83443e2ba7fcfbdf | /lhzutil.py | 41e0dbf406614ce7b1b0dc40b4c0b0e077e0b428 | [
"Apache-2.0"
] | permissive | Q5EbA7Vdyw84efER/wxBot | 590de2355f1f8be7e3aff2846ef1900459eaf958 | 98c7acee5a076332c8de2bac091e04d7f661edb6 | refs/heads/master | 2020-03-24T14:21:22.283861 | 2018-12-25T06:13:26 | 2018-12-25T06:13:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
# 获取字符串中匹配子串的最后一个位置
def find_last(string, str):
last_position = -1
while True:
position = string.find(str, last_position+1)
if position == -1:
return last_position
last_position = position
# 将文件名改写成小文件名
def thumbFilePath(filepath):
... | [
"lhz@lhzs-Macbook-Pro.local"
] | lhz@lhzs-Macbook-Pro.local |
20675f33d29bf73a3bcfb2d44baa70a43ba27ed0 | e002510c48f271ffcc36449f2c866d29e0bb2a4b | /AoC/2018/05/05.py | 330ff11fe3cf88c9c56de54ee8ab57c0ea92d5e8 | [] | no_license | petreleon/CodingChallanges | 6da5b45abcb6d9e10acbf78d6eb695eaa413fff7 | 3b213938a90c0e477ec592b0cb5cb2826971b8ea | refs/heads/master | 2023-02-07T23:32:05.390242 | 2020-12-25T23:17:32 | 2020-12-25T23:17:32 | 317,426,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | from parse import parse
from operator import methodcaller
file_opened = open("input.txt", 'r')
lines = file_opened.read().splitlines()
def reactorMatch(first,second):
if first.upper() == second.upper() and first != second:
return True
return False
sum_ = 0
for line in lines:
beforeReact = ''
af... | [
"petreleonardos@gmail.com"
] | petreleonardos@gmail.com |
a63796007e54fbdde56559bc9935e176c6ce52c4 | a392216464aea36f81c7dc29de5595c0f5331565 | /test.py | 2d66f54a7d4b983057934fc3f61f705574d65af9 | [] | no_license | renecotyfanboy/bh | 98a3722411383e08c9f7aa9aa3403ed8d13c9a5f | 8b601d96db5c22360d0d41e52a4ef1d69c23d511 | refs/heads/master | 2022-09-01T22:53:36.554676 | 2020-05-25T10:42:25 | 2020-05-25T10:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun May 24 01:54:00 2020
@author: simon
"""
#%% Example code
import numpy as np
import matplotlib.pyplot as plt
import tempfile
from os.path import join
from tqdm import tqdm
from matplotlib import cm
from matplotlib import colors,image
from tools.imager i... | [
"49200287+renecotyfanboy@users.noreply.github.com"
] | 49200287+renecotyfanboy@users.noreply.github.com |
5a2d06f06eacfc9d696d721d68dc22817b5a540d | f3bb68a5fd99b5fc4e8365375fa85b88b4b84ea1 | /main.py | 49e025aadc1081545e37d2df2eb2ce53d7dc2d8a | [] | no_license | AndreYanny/calculator | bc972f0ed4eb1354d3363be681c463d6d66ae91f | 7b9bcbf8b2daf2ce1dcdd20647dbf041a8fe7c63 | refs/heads/master | 2023-04-11T19:18:51.300737 | 2021-03-31T16:30:31 | 2021-03-31T16:30:31 | 353,417,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # Program make a simple calculator
# This function adds two numbers
def add(x, y):
print(x, "+", y, "=", x + y)
# This function subtracts two numbers
def subtract(x, y):
print(x, "-", y, "=", x - y)
# This function multiplies two numbers
def multiply(x, y):
print(x, "*", y, "=", x * y)
# This functio... | [
"andre_osama@yahoo.com"
] | andre_osama@yahoo.com |
5547b3e9164be8dae5f3be87c30fc50b9e4ece64 | 91d70927a526f11e9c093ef62f5d83a3e613d9ee | /exercise13/Tehtävä_L13T02.py | 99d355988a478c050902c785fba7d19d0646a52e | [] | no_license | RiikkaKokko/JAMK_ohjelmoinnin_perusteet | 1812b92c9b6d8b1127ca2b54e93d17fa687920b6 | 2be91f6346a301232f06023425408d83196cab63 | refs/heads/master | 2023-07-23T02:58:06.639330 | 2021-08-23T13:20:06 | 2021-08-23T13:20:06 | 399,109,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | Arvosanat = []
arvosana = 0
number_of_empty_responses = 0
while True:
data = (input("Kirjoita arvosana: "))
arvosana += 1
Arvosanat.append(data)
if data == "":
number_of_empty_responses += 1
if number_of_empty_responses == 1:
Arvosanat.remove("")
#print(Arvosanat... | [
"40693952+RiikkaKokko@users.noreply.github.com"
] | 40693952+RiikkaKokko@users.noreply.github.com |
4699041df8bc845885513fbf247fa04518328cbd | 14afcc5e2b8bdb3d91b500f6e7985d8a3378e929 | /src/68.文本左右对齐.py | b3689a9c97bc0475d281eab692c085002b906bbc | [] | no_license | hysapphire/leetcode-python | 8569a0e76f8917165e6b9fb25bfef1afc1186e3c | 8e338ee7a5c9f124e897491d6a1f4bcd1d1a6270 | refs/heads/master | 2022-12-03T15:17:52.557115 | 2020-08-17T14:19:59 | 2020-08-17T14:19:59 | 278,781,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | #
# @lc app=leetcode.cn id=68 lang=python3
#
# [68] 文本左右对齐
#
# @lc code=start
class Solution:
def fullJustify(self, words: List[str], maxWidth: int) -> List[str]:
splited_words = []
s = []
cnt = 0
for word in words:
t = cnt + len(word)
if t > maxWidth:
... | [
"huoyang93@qq.com"
] | huoyang93@qq.com |
fac016a72c1b7602d5ce283cbfdbcf983e781f19 | d83ad2d6dd921cff284db58bc8a212d7e97d132c | /python/SparseMatrix.py | 9140c87fa65e4e385aea83d0b591e281e45189a3 | [] | no_license | BradleyMorgan/COMP7970-004-FinalProject | 493f8e62b96f34d647a3b15c635f611367cd8ab5 | dba2bb72142bfcf94c25448948466af267ed15fa | refs/heads/master | 2021-08-22T23:09:11.143733 | 2017-12-01T15:34:30 | 2017-12-01T15:34:30 | 109,397,317 | 0 | 0 | null | 2017-11-03T13:14:07 | 2017-11-03T13:14:06 | null | UTF-8 | Python | false | false | 3,216 | py | import random
import scipy.io as sio
from math import sqrt
class SparseMatrix():
def __init__(self, fileName = 'blogcatalog.mat'):
self._data = None
self.edge_size = 0
self.node_size = 0
self.InstanceToFeature = list()
self.FeatureToInstance = list()
self.load_from_ma... | [
"robinsa87@gmail.com"
] | robinsa87@gmail.com |
92a2c9a2ec7f194f864497a4a7795eeba899fab1 | 0f727fdca3f37e08ed057abcfeb068b3f4acb84b | /gps_helper/test/test_kalman.py | 1d732c3f244605a4ce37104b91e1cf6df728c182 | [
"MIT"
] | permissive | Miguel-O-Matic/gps-helper | e7939902201f2e5b1260e2e801439660fe3f4d32 | dae3f143281ef930de84a1b783d33aa6e4446040 | refs/heads/master | 2020-06-24T20:51:34.604777 | 2019-08-15T12:42:32 | 2019-08-15T12:42:32 | 199,085,652 | 0 | 0 | MIT | 2019-07-26T22:08:41 | 2019-07-26T22:08:41 | null | UTF-8 | Python | false | false | 15,770 | py | from .test_helper import GPSTest
from .. import kalman as kf
from .. import simulator as sim
import numpy as np
from numpy.linalg import norm
from numpy import testing as npt
class TestKalman(GPSTest):
"""
Test class for the kalman functions.
"""
_multiprocess_can_split_ = True
def test_simple_ka... | [
"chiranthsiddappa@gmail.com"
] | chiranthsiddappa@gmail.com |
6a2f2c5f0d35f4f8e7e2af202d2a7b638e94bd51 | 255daf96ae2641a06fd5020a65622e41b1b22ca8 | /insert_sort1.py | 1b11a46d3a082f3b965df4a223babe8df9a71b5e | [] | no_license | duanyiting2018/learning_python | 11f7aab080e16da5dcf9bb14a4d81590eabd4c85 | 3041d6a6369641a0bb8e7c3161cbb988d3c37abd | refs/heads/master | 2021-08-18T05:51:25.827615 | 2021-06-11T13:39:52 | 2021-06-11T13:39:52 | 151,018,624 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 24 14:05:50 2020
@author: duanyiting
"""
size=8
def showdata(data2):
for i in range(size):
print('%1d'%data2[i],end=' ')
print()
def insert_sort(data3):
for i in range(1,size):
tmp=data3[i]#tmp用来暂存数据
no=i-1
while no>=0 and tmp<... | [
"1036179833@qq.com"
] | 1036179833@qq.com |
72222da4ae1741a0fe83d540d008fd9bae0c1a83 | 51b6d2fc53d5c632fcf01319842baebf13901e84 | /atcoder.jp/abc131/abc131_a/Main.py | 68ba8c087a27f58b969015b21503fb2ab8a823b3 | [] | no_license | mono-0812/procon | 35db3b2c21eff74fbd7b52db07f249380f6834ef | 68a4b53880a228a0164052b23d1326363efcbc20 | refs/heads/master | 2023-05-30T17:02:58.935074 | 2021-06-27T12:15:10 | 2021-06-27T12:15:10 | 345,896,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | s=input()
las=""
for i in s:
if las==i:
print("Bad")
exit()
las=i
print("Good") | [
"frisk02.jar@gmail.com"
] | frisk02.jar@gmail.com |
1dd017ce55ba23554439bf43ec6c811e5a816567 | 4a06d9c889b5db2b7f9cbce0c39dedfce27876c4 | /Application3_Q7.py | 521100e0e901931296709c938ffeba32c9daa8cc | [] | no_license | Oleksandr-Olefirenko/AlgorithmicThinking | f75fe8a98877deb4ed724cdb680f893fe5830f4b | 3c5986d6003ee1a00e05e736f81540001480469e | refs/heads/master | 2021-05-29T22:03:01.457838 | 2015-08-04T19:08:25 | 2015-08-04T19:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,156 | py | """
Student template code for Project 3
Student will implement five functions:
slow_closest_pair(cluster_list)
fast_closest_pair(cluster_list)
closest_pair_strip(cluster_list, horiz_center, half_width)
hierarchical_clustering(cluster_list, num_clusters)
kmeans_clustering(cluster_list, num_clusters, num_iterations)
wh... | [
"TogusaRusso@gmail.com"
] | TogusaRusso@gmail.com |
3ffd4d86eac5f5c2dd6d48d15c7872a2d6e8ef95 | abbc500b22e8d136550b3994095d79f3a2dc2f38 | /answers/98.py | 1ce7880153465dda684a3db96cd59d7912450d43 | [] | no_license | badandworse/leetcodeAns | 956507f90eddcff3acb909275f3c8d0ae62e83dc | b1d141272d7ae02552a5e0bc88ae2dd5a9fd3a08 | refs/heads/master | 2021-05-15T00:04:33.414555 | 2018-04-13T15:07:10 | 2018-04-13T15:07:10 | 103,942,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def isValidBST(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
inOrderList... | [
"zilaixv@gmail.com"
] | zilaixv@gmail.com |
2850dbedb93f513dc0ee15666df35c5ff685c000 | 1302c48beae789b1b7837f34325a8f2b203d69df | /src/byro/bookkeeping/models/account.py | 866ae96ca5bbdf954ac3dddf73f44b8cdd0bb526 | [] | no_license | grince/byro | b9a8ad0d54b78ee220af6dedee119ab9ec0036df | abe8743c04ba828fdd5ff50c55c43a3b32bc26bd | refs/heads/master | 2021-01-25T12:31:12.461853 | 2018-02-26T17:42:12 | 2018-02-26T17:42:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | from django.db import models
from django.db.models import Q
from django.utils.decorators import classproperty
from django.utils.timezone import now
from django.utils.translation import ugettext_lazy as _
from byro.common.models.auditable import Auditable
from byro.common.models.choices import Choices
class AccountCa... | [
"rixx@cutebit.de"
] | rixx@cutebit.de |
fd00b70e65bcfa00a449b04cf78677a2199d7d70 | 0aad1bfab7ff39bdadd66d048de4c8d0670ca325 | /gui/setup.py | 6a1aa6738ccebd0501e6827d2343cc3804c497c1 | [] | no_license | RidaShamasneh/SQLAlchamy | ffe50c1c9eec54cb46255071a1c9d7ff693a8800 | cb56c27e6a8dabfc53b7890b33ecdfeb68343b7d | refs/heads/master | 2021-02-18T08:40:08.294409 | 2020-07-09T14:45:13 | 2020-07-09T14:45:13 | 245,178,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | #################################################################
# Do not remove the py2exe package, it is needed somewhere else #
#################################################################
import sys
sys.path.append(r'..')
sys.path.append(r'..\libs')
sys.path.append(r'C:\Program Files (x86)\Microsoft Visual S... | [
"rshamasneh@asaltech.com"
] | rshamasneh@asaltech.com |
127f915c4b516382f9f8475573aee8803aa3fb0f | d83cedb26a1f40b4e129416165fe7ae0947a725d | /斐波那契 列表 网上代码.py | 1b473c28e6529067b98df0df1c5f18a7294c5138 | [] | no_license | VestigesH/python | 84ce1c188495748632edb202177db67cd75f1ebe | 5b8561d171cab5cb93c5577b24d84fd01524b168 | refs/heads/master | 2020-06-16T14:00:35.510453 | 2019-07-07T02:33:08 | 2019-07-07T02:33:08 | 195,601,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | L=[1,1]
while len(L)<10:
L.append(L[-1]+L[-2])
print(L)
| [
"1541945594@qq.com"
] | 1541945594@qq.com |
d411f2560b7fea2dbce270905b09789a7a00e732 | 8e524f23d18c02d5b4e4d8cccff5330229a8d7eb | /EstruturaDeRepeticao/exerc8.py | c6ca2af03682e1f7ab2272b3135e42916d5cffb2 | [] | no_license | Louissilver/exercicios_python | dfe8e1e37fb9300f357c0e5ceffcc559666161fe | 39d7d53b83177b1dcd64d105eb13f75eed557b17 | refs/heads/master | 2022-12-27T03:41:31.238035 | 2020-10-05T23:15:32 | 2020-10-05T23:15:32 | 295,038,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | #8.Faça um programa que leia 5 números e informe a soma e a média dos números.
num = 0
soma = 0
media = 0
for i in range(1, 6):
num = int(input("Digite um número: "))
soma += num
media = soma/i
print(f"A soma dos números é {soma} e a média deles é {media:.2f}") | [
"luisfernandosilveira23@gmail.com"
] | luisfernandosilveira23@gmail.com |
c2b6c76ca7aba1eb22ec95bfa7914deef8ef88e7 | 93ab9665078d49028e5094e23d673574031d47e5 | /Data_structures/list/meeting_point.py | b1d9fd087e06d641949969cbfa1187c8b775cc1e | [] | no_license | raghulrage/Python-programs | 7072429108c2932323b5f636d06f97a07c4cb6a4 | 8d134fade8626c99237c48068a2d1f5c6b04a0cc | refs/heads/master | 2023-05-05T23:11:36.407458 | 2020-10-17T05:45:58 | 2020-10-17T05:45:58 | 198,346,485 | 1 | 9 | null | 2021-05-22T12:50:28 | 2019-07-23T03:41:20 | Python | UTF-8 | Python | false | false | 1,612 | py | class Node:
def __init__(self,data):
self.data = data
self.next = None
class LinkedList():
def __init__(self):
self.head = None
def push(self,data):
new_node = Node(data)
if(self.head == None):
self.head = new_node
return... | [
"noreply@github.com"
] | raghulrage.noreply@github.com |
d175ae5e78fe281e79ff378a83c197c643eda9d6 | 7ab5402a6de3eb6bdda78d1bc42a2fddc920db44 | /Algorithms/Implementation/Apple and Orange/code.py | fc29e634c07686cc80db997da8fb7fd5205a3ab9 | [] | no_license | elmoallistair/hackerrank | 14f29c8960fca81f578f19bcb4df8978da7730a0 | 0d119fbe39ded3f9dc17d35661575d7822d82562 | refs/heads/master | 2023-06-09T18:54:24.661721 | 2022-10-20T12:29:34 | 2022-10-20T12:29:34 | 237,128,803 | 7 | 3 | null | 2023-05-31T10:32:59 | 2020-01-30T03:04:33 | Python | UTF-8 | Python | false | false | 1,170 | py | # Written: 02-Jan-2020
# https://www.hackerrank.com/challenges/apple-and-orange/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the countApplesAndOranges function below.
def countApplesAndOranges(s, t, a, b, apples, oranges):
ap_count = or_count = 0
for i in apples:... | [
"noreply@github.com"
] | elmoallistair.noreply@github.com |
88be9db0202831cb66b600f8534377dc0698b3d3 | c4b86ca323a9725e80e17c5a56a2b60a6194fcda | /adaboost.py | 7047d283957f420c610c60ea7b902fb6b09fc04b | [] | no_license | shivgupt/Whats-the-Correct-Orientation | 3d8c2991bb1c65b5de1d1a7d5ed6a230884bfa0c | 6f32609ba1aad11b10f993456ad7e1680bba64df | refs/heads/master | 2021-06-10T21:46:18.892800 | 2016-12-31T22:34:40 | 2016-12-31T22:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/usr/bin/python
"""
Adaboost
"""
import time
def train(traind, N):
starttime = time.time()
print " Training...",
print "Done in", round(time.time() - starttime, 5), "seconds!"
def test(testd, N):
starttime = time.time()
print " Testing...",
print "Done in", round(time.time() - starttime,... | [
"bohenderson93@gmail.com"
] | bohenderson93@gmail.com |
c8a176d73ce4de43a0c744f3ba4ba152b13f907d | 9c968f7cdf390f8417912519b53f1b7f6ea8b7e8 | /HJ_AL/brute_force/b1065_brute.py | 9f0cd478cfd5e6253c843f1b729ba4e7aabdc19b | [] | no_license | hhongjoon/TIL | aa33ce2973552a0baa0e0da5bd7d20824fd2e322 | a33b20af15d3f671ea7c7b2855291e50a9036c1c | refs/heads/master | 2021-08-07T17:33:39.722880 | 2020-04-25T08:11:02 | 2020-04-25T08:11:02 | 162,099,245 | 4 | 0 | null | 2019-10-30T09:06:21 | 2018-12-17T08:34:07 | Jupyter Notebook | UTF-8 | Python | false | false | 427 | py |
num = int(input())
count=0
for i in range(1,num+1):
if len(str(i)) == 1 or len(str(i))==2:
count += 1
continue
str_num=str(i)
judge = True
for j in range(0,len(str_num)-2):
if int(str_num[j]) - int(str_num[j+1]) == int(str_num[j+1]) - int(str_num[j+2]):
continue
... | [
"sungsung129@gmail.com"
] | sungsung129@gmail.com |
30e02ab643584aa79a5e1571a8f813fc19a66bf0 | a650a94b2ee02c5ac4160377105059eda51b3c32 | /scraper/ont_muni_list.py | 22f4dfc701a2e47a0deb9342ae71f07a821c5d04 | [
"MIT"
] | permissive | asterix135/votefor_data | 566dc082eb9137f2245f13a637266d33e386985d | db54a424e1455868d9d47f0726e5fbce4679aacf | refs/heads/master | 2021-01-23T15:50:56.415394 | 2017-09-18T02:39:50 | 2017-09-18T02:39:50 | 93,273,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import csv
import requests
from lxml import html
page = requests.get('http://www.mah.gov.on.ca/page1591.aspx')
tree = html.fromstring(page.content)
muni_names = tree.xpath(
'//*[@id="content"]/div/table/tbody[2]/tr/td[1]/p/a[contains(@href, "h")]/text()'
)
muni_urls = tree.xpath(
'//*[@id="content"]/div/table/... | [
"chgraham@gmail.com"
] | chgraham@gmail.com |
a4e9e0947887ea83249ad5ea387bebbd6ff85e0a | 8793b5a3c6819ff3a349faaa80868035dfdf424c | /6/at_lesson/star.py | 895b6681026d8de02db9a5c372d432b5b308a614 | [] | no_license | MarinaFirefly/Python_homeworks | 0a331d5c2235e6f9b791c136d0f08020bf688b4a | c334c828fac9d163b45fe3710db45ec393830bff | refs/heads/master | 2020-09-06T15:33:41.456129 | 2020-02-08T09:46:30 | 2020-02-08T09:46:30 | 220,466,582 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #briliant. Only odd numbers must be entered!
def star(number):
for i in range(number):
quantity_slash = abs(number // 2 - i)
print(f"{' ' * quantity_slash}{'*' * (number - quantity_slash * 2)}")
return
num = int(input("Enter odd number! "))
if num%2 == 1:
star(num)
else: print ("Number isn't ... | [
"laktionova.marina@gmail.com"
] | laktionova.marina@gmail.com |
b67369e584f1033bb94ffe25f1989624e70acf7b | a219071bf28605b7504d0aea2c0e35cdbaa10460 | /helpdesk_luismiguel/__manifest__.py | 8ff31aacd8653184c58cd827b188b554ddf6118b | [] | no_license | e-lrl/curso2020-2 | 3c3106da39ad5a6e53dc6c1050e0ea08019c808a | 8fa5b0d702892b4ffceaf45ba7e75e781f3f2c76 | refs/heads/13.0 | 2023-02-03T04:19:07.290378 | 2020-12-20T21:11:55 | 2020-12-20T21:11:55 | 316,099,365 | 0 | 0 | null | 2020-11-26T02:06:22 | 2020-11-26T02:06:22 | null | UTF-8 | Python | false | false | 789 | py | # Copyright 2020 Hergar
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "helpdesk.ticket",
"summary": "Helpdesk Ticket",
"version": "13.0.1.0.0",
"category": "Helpdesk",
"website": "https://github.com/OCA/helpdesk",
"author": "Hergar, Odoo Community Association... | [
"l_arpon@hergar.com"
] | l_arpon@hergar.com |
dfa17b78951d1872ed8fc4f817a8579389a5a042 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cancel_readonly_cluster_response.py | d682b2b92dc9ed1fe6c03084b6e00be2e4fc2041 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 2,467 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CancelReadonlyClusterResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b4894f135a3440bcec49be233de785a09e58a382 | 7f32834adae48f49d088aef58718b9d7a473af26 | /venv/Scripts/pip3-script.py | 9986486fc369508d184eb01eefd50e5983b032fa | [] | no_license | PeiYunluo/spider-scrapy | 9f6e4f38aa15f7ea4d997c1139254cd5be259981 | 6d91e59b509f141930de45b83a3de47db4b72346 | refs/heads/master | 2020-12-14T10:19:06.055652 | 2020-01-18T08:49:17 | 2020-01-18T08:49:17 | 234,706,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!D:\PyCharmProjects\spider-scrapy\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"peiyunluo@icloud.com"
] | peiyunluo@icloud.com |
e1dde18ada9d2bd785b48f8d297f7672a2c033fc | 83d30fd71aed81e391efa95b77cad4e3ab0f9522 | /Копия task1_18 Vector Class.py | 7da64689f87f12fc192b592fe189bb35b36dda15 | [] | no_license | jooker33/learning_tasks | b59a8daceb3592871c86873ed2d0522ad9d7927b | 072212540e9b3ab98978e2e2801796e2c1174a89 | refs/heads/master | 2023-08-28T06:09:05.908910 | 2021-11-01T15:57:12 | 2021-11-01T15:57:12 | 390,347,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py |
class vector():
def __init__(self,x_coord,y_coord):
self.x_coord=x_coord
self.y_coord=y_coord
def __add__(self,other):
return vector(self.x_coord + other.x_coord,self.y_coord+other.y_coord)
def __repr__(self):
return 'Vector({}, {})'.format(self.x_coord,self.y_coord)
vector_1=vector(1,3)
#Вывели значения... | [
"noreply@github.com"
] | jooker33.noreply@github.com |
3597afdc6cc44123ef9e2f78547e45c252287aac | 6f9e4bec6bbe9a37dc69c991a9ba0090b9720bfa | /project_rango/settings/base.py | 4504d734ffd99dae77f5dbb368bee1ad1005894f | [] | no_license | hkfs15/rango | 13e10010e259ef88777a898f4f54621bf4677bef | 0ec0902bfc070667bc3e21c8403103dafac0f2e9 | refs/heads/master | 2021-01-10T10:01:42.345526 | 2015-10-14T04:18:33 | 2015-10-14T04:18:33 | 44,223,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | """
Django settings for project_rango project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Buil... | [
"hkfs15@163.com"
] | hkfs15@163.com |
028660a24e92f54b0bc846a5d68b6e90ac21cddf | 41710e9133d660739f8f9f17040a2a8a6082e9fb | /python/aa_modules/fitsio_has_errors/eg2.py | d4a0e6e5e75796a2ec451845dfda65e7d12df200 | [] | no_license | hanjiangxue007/Programming | 591678150e2e300051fdeaf09124d3893076d3a9 | 7a545ef2300b004497f30d27d1f2aaa032e26af5 | refs/heads/master | 2020-06-29T18:50:27.776557 | 2016-10-27T18:31:39 | 2016-10-27T18:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author : Bhishan Poudel; Physics PhD Student, Ohio University
# Date : Oct-15-2016 Sat
# Last update :
#
#
# Imports
import fitsio
from fitsio import FITS,FITSHDR
# Often you just want to quickly read or write data without bothering to
# create a FITS objec... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
bddbb9c1ef1aa13ff2a9a7ce5aad4cdea29336db | 75915b819739c338b61e664ede0849a1cc0a17d1 | /webSauna/my.app/my/new_app/views.py | 9c92bedbda25df6a1573b61f20db7c932551e1d7 | [] | no_license | gaurav7goyal/pyramid_framework | d3f604aa4703a878829ccbc1e50fe0ea74712985 | c472c6de7e2dcd7deb4ffa187fb46165905505fe | refs/heads/master | 2020-09-23T02:33:37.065084 | 2019-12-27T05:35:13 | 2019-12-27T05:35:13 | 225,379,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | """My Application views."""
from websauna.system.http import Request
from websauna.system.core.route import simple_route
# Configure a sample view provided by this addon
@simple_route("/", route_name="home", renderer='my.new_app/home.html')
def home(request: Request):
"""Render site homepage."""
return {"proj... | [
"gaurav.goyal@d10x.io"
] | gaurav.goyal@d10x.io |
3851500e0770a527347f3612bf3cb70c49f66473 | ae9fb8a01419c9f405142ec8c878608f0c0568f4 | /mapit_bulk_processing/migrations/0013_auto_20160408_1040.py | b9a4155a1d098424f5490475c7e2cc73a23bd699 | [] | no_license | mysociety/mapit-bulk-processing | dfbd41c6a06b9d0625a3dde797cdf9dcc07e6f7e | d3a407877145fee657bde2ca6b9d5c5ae1fe96e3 | refs/heads/master | 2021-01-19T03:59:16.393571 | 2016-08-02T12:16:30 | 2016-08-02T12:16:30 | 55,393,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-08 09:40
from __future__ import unicode_literals
from django.db import migrations, models
import mapit_bulk_processing.models
class Migration(migrations.Migration):
dependencies = [
('mapit_bulk_processing', '0012_auto_20160401_1740'),
]... | [
"steve@mysociety.org"
] | steve@mysociety.org |
bc5f1733b0803e237f45c8a20bd76e628c440728 | 5f0f3823e4f637dec72ec155dfda9ad485fca190 | /Chapter-1/01.py | 2b9ef64a6a4d1ed83eb9ea749298ae772ee2852e | [] | no_license | Loliver1224/NLP100 | 41eacdf45886b2c16589129812d7cc695b6fde42 | 458f7a8383de83840d23fb64e0047df372f3db55 | refs/heads/master | 2020-05-01T09:18:12.122776 | 2019-09-05T16:22:28 | 2019-09-05T16:22:28 | 177,397,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # 01. 「パタトクカシーー」
# 「パタトクカシーー」という文字列の1,3,5,7文字目を取り出して連結した文字列を得よ
s = "パタトクカシーー"
print(s[::2])
# 前回と同様にスライスを用いる | [
"swim.01060808@gmail.com"
] | swim.01060808@gmail.com |
7c6ad8291a41bca71e27bfbe2cc3b423b82fcc5d | 121a430d428cda6b854a40ebd371cf6210b2d05a | /platformer.py | d262ac828d8569c32d457774e22c373d4dbff307 | [
"MIT"
] | permissive | oliviaosimon/Platformer | 0be14eb4d163fee51e4347695cd1badd73dae12b | d70db0f969f73fe5a7bbe6babb4f77c2e35061ec | refs/heads/master | 2020-04-02T23:08:31.090310 | 2018-12-11T16:55:24 | 2018-12-11T16:55:24 | 154,857,055 | 0 | 0 | MIT | 2018-10-26T15:39:41 | 2018-10-26T15:39:41 | null | UTF-8 | Python | false | false | 9,228 | py | """
platformer.py
Author: Olivia Simon
Credit:
Assignment:
Write and submit a program that implements the sandbox platformer game:
https://github.com/HHS-IntroProgramming/Platformer
"""
from ggame import App, Color, LineStyle, Sprite, RectangleAsset, CircleAsset, EllipseAsset, PolygonAsset, Ima... | [
"42871888+oliviaosimon@users.noreply.github.com"
] | 42871888+oliviaosimon@users.noreply.github.com |
6f6408c6315620f3287858f8f6276f435d001ecd | 9d939421402f98030e41d8f83c5cb3c5f8eadb45 | /app/decorated.py | ace26787c86114b65840ed451ff4848f3559046c | [] | no_license | miniYYan/xiaoniu_cron | 3819a47c474d4a98c3959acf54ad1eaf9c3bc14a | f84902b45f58eba5b811e049154c4bf6cae2ae91 | refs/heads/master | 2022-12-20T04:28:05.052900 | 2020-09-28T01:02:57 | 2020-09-28T01:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
from functools import wraps
from datas.utils.json import api_return
def api_err_return(code=1,msg='',data=''):
return code,msg,data
'''
接口 api返回
'''
def api_deal_return(func):
@wraps(func)
def gen_status(*args, **kwargs):
try:
result = func(*... | [
"aniulee@qq.com"
] | aniulee@qq.com |
99993322ae5d3b12cf215d06c988de7930420701 | 6ea03449de7e8b3efcd980995eef9d2a6226fa90 | /cnn_minist.py | 4011f88c9c22d738db7bd4b19deccf6e3f5443c8 | [] | no_license | wuzhouqiang/tensorflow2 | cab6c05fa89aab7e725a54c8112bae34ba8645f7 | a5bc48972cb6a7e8355dc44dc0f36ad571f7a9b6 | refs/heads/master | 2020-06-27T14:03:26.444538 | 2019-08-06T04:12:06 | 2019-08-06T04:12:06 | 199,972,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | import tensorflow as tf
from tensorflow import keras
lr = 1e-3
batchsz = 256
epochs = 50
(x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()
# print(x_train.shape, y_train.shape) # (60000, 28, 28) (60000,)
x_train = x_train.reshape(60000, 28, 28, 1)
x_test = x_test.reshape(10000, 28, 28, 1)
x_... | [
"w943554532@126.com"
] | w943554532@126.com |
ac86c90afb0aadf8e7f618ee3cf32b49cf3f6cca | 6c28f51864cf2d2582c582f168bbd7aaf9207d71 | /14_week/이레/5676_음주 코딩.py | 212f133e297e07a2901ca2e9de5d4b3fd87a7de0 | [] | no_license | brrgi/Algorithms | a4ae5319703b9f5daa359bb1afdb82a1b17797cc | 2b7003ef0463a56f4595656d46fdae11f88d246a | refs/heads/main | 2023-08-29T00:17:39.255573 | 2021-10-31T14:21:36 | 2021-10-31T14:21:36 | 386,301,933 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | while 1:
try:
n,k=map(int, input().split())
tree=(n*4)*[0]
nodes=list(map(int, input().split()))
answer=''
init(0,n-1,1)
for _ in range(k):
lst=input().split()
if lst[0]=='C':
i,V=map(int, (lst[1],lst[2]))
nodes[... | [
"48500985+brrgi@users.noreply.github.com"
] | 48500985+brrgi@users.noreply.github.com |
f5d619cb1c3318a7c4daf4cc4c3df14dbff8b35c | 37279a6b70fd432d96087f2154ded529ffbc0c9e | /binary/190-Reverse-Bits.py | cd559594ce7b9ec23bb1a474deca59b1404b5570 | [] | no_license | abhishek-jana/Leetcode-Solutions | cfe1bad64fda2421ba85f23121ca50ffc59357da | 9cd5d12b7438c646226a5e174571e3dbf339a179 | refs/heads/master | 2020-12-02T02:04:41.784082 | 2020-01-22T13:07:13 | 2020-01-22T13:07:13 | 230,852,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | '''
Reverse bits of a given 32 bits unsigned integer.
Example 1:
Input: 00000010100101000001111010011100
Output: 00111001011110000010100101000000
Explanation: The input binary string 00000010100101000001111010011100 represents the unsigned integer 43261596, so return 964176192 which its binary representation is 00... | [
"abhishekjana6@gmail.com"
] | abhishekjana6@gmail.com |
243f9502d6d493755fd42afd6fe5df30df8792a6 | 8d1b2c704368e4e40dbe564f54a16658be334687 | /Netflix-based/py/fdt_process.py | 972cb26a617eb34c6099a20729d5ed8249673d5e | [] | no_license | zzhyzzh/Factorized-Decision-Tree | ca9b4b7bd7cdcaad4e52d98426e856efd290f167 | 0057c1d464d10efc0ee8f3ec30402af58a046774 | refs/heads/master | 2021-09-07T19:05:54.612325 | 2018-02-27T16:29:39 | 2018-02-27T16:29:39 | 110,657,366 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | ############# Input Package ################
from scipy.sparse import load_npz
import dt_model as dt
import tool_function as tf
import klepto
############################################
############### Load Data ##################
rating_matrix_csc = load_npz('./netflix/sparse_matrix_100%.npz').tocsc()
rating_matrix_... | [
"zzhno50@hotmail.com"
] | zzhno50@hotmail.com |
170ca8d188aacad28ab3a8be69a38b02bb931402 | 9e4ab50f5822941ab70fefb8ac8f2d91d702d9df | /suorganizer/views.py | a8c5954ad810ac9b24b4425723169efa4e7b3098 | [] | no_license | andyk1278/startuptracker | cf3b51a82aa6018b990c605cff47398636b4643c | b2b07db3a6213249588214200b52a705ed50b339 | refs/heads/master | 2021-01-02T23:00:29.839108 | 2017-08-13T09:18:51 | 2017-08-13T09:18:51 | 99,437,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from django.http import HttpResponseRedirect
def redirect_root(request):
return HttpResponseRedirect('/blog/') | [
"andyk1278@gmail.com"
] | andyk1278@gmail.com |
c197ade7c48dc6d9abbc95297012c1ba1bc2f6b2 | f3591f53c7a4ab6f1babdeb1ff4e21843054d2f2 | /train_blog.py | decd987287d9c24bcf358e43d9a11363a7c72cf6 | [
"MIT"
] | permissive | forks-learning/self_supervised | 3bf0ea8d7402bb780ba68e97806798340cc921c3 | a3addb9c4bc5277224eee040c6ba30230f7586fc | refs/heads/master | 2022-12-08T00:24:46.495732 | 2020-08-26T18:01:21 | 2020-08-26T18:01:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | import pytorch_lightning as pl
from attr import evolve
from pytorch_lightning.loggers import TensorBoardLogger
from moco import MoCoMethod
from moco import MoCoMethodParams
def main():
base_config = MoCoMethodParams(
lr=0.8,
batch_size=256,
multi_gpu_training=False,
loss_type="ip"... | [
"abe@sourceress.co"
] | abe@sourceress.co |
a3fcd188a0e4b21306c2d67dfab0717e25089ac6 | 7650c4b0404ff25c26ed5c29e544ed00e259ca50 | /examples/EXAMPLE_config_DST_LC.py | c230007afcb3242d4823f688fe1c22e8b2fc12ef | [
"Apache-2.0"
] | permissive | ajeldorado/falco-python | b32e1ab24d521a6790b4c18a96a4fa9d239c7882 | 406ccf60392542630a7f1f629fc020b8c8e613d2 | refs/heads/master | 2022-11-06T03:27:12.604912 | 2022-10-07T15:22:19 | 2022-10-07T15:22:19 | 137,521,218 | 5 | 2 | Apache-2.0 | 2022-10-07T15:22:58 | 2018-06-15T18:43:56 | Python | UTF-8 | Python | false | false | 13,962 | py | # import sys
# sys.path.append('../')
import numpy as np
import falco
mp = falco.config.ModelParameters()
mp.SeriesNum = 1
mp.TrialNum = 34
# Special Computational Settings
mp.flagParallel = True;
mp.useGPU = False;
mp.flagPlot = False;
# General
mp.centering = 'pixel';
# Method of computing core throughput:
# - '... | [
"aj.riggs@jpl.nasa.gov"
] | aj.riggs@jpl.nasa.gov |
b65f91b5d0820bef879b4902b41d7a79e7fe245a | 33f304bbd8536045a63dea909031576ea3f7b488 | /census_area/core.py | c3fe06979410922dd4552eca320be2f8349c5c06 | [
"MIT"
] | permissive | LindaLv11/census_area | 859c92cd5ca6a8537ff45014b42771804dc29913 | 48d8bc7e73c12b58e796307e36c93029b1ec0044 | refs/heads/master | 2020-04-20T08:25:32.838867 | 2019-01-04T03:00:47 | 2019-01-04T03:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,436 | py | import shapely.geometry
import shapely.geos
import esridump
GEO_URLS = {
'tracts' : {
1990 : 'https://gis.uspatial.umn.edu/arcgis/rest/services/nhgis/Census_Tracts_1910_2014/MapServer/8',
2000 : 'https://tigerweb.geo.census.gov/arcgis/rest/services/Census2010/tigerWMS_Census2000/MapServer/6',
... | [
"fgregg@uchicago.edu"
] | fgregg@uchicago.edu |
ae5725c9cb4a24fb714b7b102620f0ddc2126997 | e0ba27b8b9894ccffa0bff1b3e0e35d135e5966f | /src/api/__init__.py | c9932624f8ac5a7077a105c64116fa4199bd5482 | [] | no_license | tiagodread/lumen_api | 0188969d178a9bca2897cb8fff0181d7ab6ee9d1 | 41898d2691550c530703b5771ad1176b1b4c2b9f | refs/heads/master | 2020-04-04T01:08:49.312051 | 2018-11-06T15:49:05 | 2018-11-06T15:49:05 | 155,669,556 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | from .api import Api
| [
"tiago.goes2009@hotmail.com"
] | tiago.goes2009@hotmail.com |
b5a06168a7891d65d6d1f2dc37cc42b31c3f9075 | 14b8cf0b67104b53534678b8c0e9525ace4714ff | /codeeval/spiral.py | 8ce3b47e920f2d0e9c03bbd1d9e3a51d4092b051 | [] | no_license | bhfwg/py_learn | bb11898fd81f653643fc61949f43df751d317fcb | eca9da748bada67357961d1581d8ec890a3385f8 | refs/heads/master | 2020-03-27T15:01:25.881792 | 2018-06-05T01:36:26 | 2018-06-05T01:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | from sys import argv
def spiral_printing(n, m, one):
if n * m == 1:
yield one[0]
return
def point_2_index(x, y):
return x * m + y
ax = 0
ay = 0
bx = 0
by = m - 1
cx = n - 1
cy = m - 1
dx = n - 1
dy = 0
while 1:
for i in xrange(ay, by):
... | [
"metathinkerk@gmail.com"
] | metathinkerk@gmail.com |
0f2da2a3a3f2c17a50f1b0f5234713f5baf9597f | 3aa1e554a4895252f36bf2c423d7813af67b11c9 | /algoprac3/backjun_2609.py | 1f8163b7259309b8a0d24d45e73117cebda959d5 | [] | no_license | rlagudals95/Algorythm | 10e18b4d83b287144545f7129f66e0f571b814b0 | 055d1eae986071b0cfd3f00f1669043f364c090c | refs/heads/main | 2023-04-28T23:49:59.926153 | 2021-05-20T01:32:16 | 2021-05-20T01:32:16 | 369,041,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # C = list(map(int, input().split()))
# a = C[0]
# b = C[1]
# low = 6
# high = a*b//low
# low = a*b//high
# print(low,high)
import sys
A, B = map(int, sys.stdin.readline().split())
# a=24 b=18
a, b = A, B
while b != 0:
a = a % b # a = 24를 18로 나눈 나머지 6 // 6이 최대공약수
a, b = b, a # a는 6이 되... | [
"76252074+rlagudals95@users.noreply.github.com"
] | 76252074+rlagudals95@users.noreply.github.com |
30faee71e2caf0f4591612bbe4528e2edd9a5b1e | 684f8a81a212b58d038a353ae247fec89cde5bde | /newclient.py | 89ea5422724c78eb2667f0e4e96e7a9748eecb8f | [
"MIT"
] | permissive | saini1998/Computer-Networks | 418731ebef4bc10b31663f86d4bd76d467ca4560 | dd47093231edc6a11774d75470a6064818c48a0d | refs/heads/master | 2021-02-13T04:55:04.197853 | 2020-03-05T17:51:01 | 2020-03-05T17:51:01 | 244,663,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | import socket
import os
import subprocess
s = socket.socket()
host = '172.20.10.3'
port = 9999
s.connect((host, port))
while True:
data = s.recv(1024)
if data[:2].decode("utf-8") == 'cd':
os.chdir(data[3:].decode("utf-8"))
if len(data) > 0:
cmd = subprocess.Popen(data[:].decode("utf-8"),... | [
"sainiaaryaman1998@hmail.com"
] | sainiaaryaman1998@hmail.com |
ed7b2c19a04dae0bca45ca6da925bc7be5c2972b | 2677510320f5d4e111d9262e7c76bd2eec1444e3 | /src/control/sac_script/discrete_actor.py | a56d8e714ac784b441bc0ad032465c394d5ea915 | [] | no_license | amiani/spacerl | 1037da385ab7f27aaffbd7df58cbdb01164329e0 | ee11a5e2b2604eb06279e76964e10aad6017ebe6 | refs/heads/master | 2022-06-28T20:39:45.004294 | 2020-05-04T00:13:35 | 2020-05-04T00:13:35 | 249,797,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | import torch
from torch.distributions import Categorical
obdim, h1, h2, acdim = 6+3, 256, 256, 3
class DiscreteActor(torch.nn.Module):
def __init__(self):
super().__init__()
self.net = torch.nn.Sequential(
torch.nn.Linear(obdim, h1),
torch.nn.ReLU(),
torch.nn.L... | [
"amaianijohns@gmail.com"
] | amaianijohns@gmail.com |
083fe36854fbd371229788e78188c0979a5c2992 | 9136059cc782460a1cd4d74aa7e4570037996202 | /testingoutputfromreducerc1.py | 8e3665636e8afbbd913287e86d3a3f4cf89ed0e4 | [] | no_license | sheikhusmanshakeel/ExtremeComputing2 | d26dfb02d32e64dcee4f5252ee138b2925f58a26 | e634100fa4404e540fefe7ad864791a93aaa483f | refs/heads/master | 2021-08-15T05:41:47.942314 | 2017-11-17T11:58:37 | 2017-11-17T11:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | #!/usr/bin/env python
import sys
ownerRowIdDict = dict()
maxCount = 0
currentCount = 0
previousOwnerId = ''
currentOwenrId = ''
answerIds = ''
fileHandle = open('/afs/inf.ed.ac.uk/user/s15/s1579769/excassignment2/outputfromreducerc1', 'r')
# fileHandle = open('/home/raven/PycharmProjects/excassignment2/stacksorted... | [
"sheikh_usman3@yahoo.com"
] | sheikh_usman3@yahoo.com |
6c45e72f32ca223fecfcc490073f0cd0d14b4b65 | 0130c8b14927097663157846adc4b146d67d2fda | /tests/common/test_run/div_no_nan_run.py | 1a2c66c665dc13f6f5900b55ab27ee71b9d67109 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-3-Clause",
"NCSA",
"LLVM-exception",
"Zlib",
"BSD-2-Clause",
"MIT"
] | permissive | Shigangli/akg | e8be3e0ee1eafe3e42b4cc4d424c28f08ef4c0bc | 3766c54e0b109541932d147a6b5643a334b82403 | refs/heads/master | 2023-09-06T05:13:40.571583 | 2021-11-23T03:44:54 | 2021-11-23T03:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | # Copyright 2020 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... | [
"1027252281@qq.com"
] | 1027252281@qq.com |
17a5a316fa55654604037c588471a6476c68239c | 04ce9939a13dab2dd306d06f2c420e074de87a03 | /SiamDW_D/libs/FPNlib/mmdet/ops/__init__.py | e24d41db63b2b6739c87dc709f7f552a2b50795e | [
"MIT"
] | permissive | cy-sohn/VOT2019 | d0ae7a083dc96eb2a1bd6f9340dbf36b1583cfc7 | eaf84c2b58a8ed3ff6ca464dcfdd52519507ae36 | refs/heads/master | 2022-03-03T07:43:10.778201 | 2019-10-23T06:32:24 | 2019-10-23T06:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | from .nms import nms, soft_nms
__all__ = [
'nms', 'soft_nms'
]
| [
"henry.hw.peng@gmail.com"
] | henry.hw.peng@gmail.com |
9fc39c434aeb8db7e69c85650d79dea51a686666 | 5d2404f62e58d5fd1f6112744ff32c3166183ac7 | /Geek University/Seção 4/Exercicios/EX49.py | de8275af5902ac3f09895155461a32956779a2ef | [] | no_license | Leownhart/My_Course_of_python | 236cfc84d841c5883e5aa1cc0c0730e7a9a83c40 | 5abb21f8cdad91ab54247a007d40bf9ecd2cff8c | refs/heads/master | 2020-08-28T15:04:33.628086 | 2020-08-24T19:25:39 | 2020-08-24T19:25:39 | 217,733,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | '''
49 - Faça um programa que leia um horário (hora, minuto, segundo) de inicio e a duração, em
segundos, de uma experiência biológica. O programa de resultar com o novo horário
(hora, minuto, segundo) do termino da mesma.
from datetime import datetime
now = datetime.now()
print now.year
print now.month
print now.da... | [
"francisco.amartins.al@gmail.com"
] | francisco.amartins.al@gmail.com |
6dc940a6b8466d401e91dddd33c3ef52e54a5242 | cb97215bde0c6d15e454b03ab9f264801772bf83 | /Notes/Plotting/folium_extended.py | 6c5d81c32ea59b71d4110067cc63feacac6af12f | [] | no_license | FWP-Computer-Science/programming2-sp2021 | 331f1eb2eeea70cc10bbdeaf42fc19d031fd9b00 | ce407b6fa8481ece0ee1ab45128c9976e8a69f6b | refs/heads/main | 2023-04-11T18:12:36.024182 | 2021-05-19T14:21:37 | 2021-05-19T14:21:37 | 331,132,320 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | import folium
import csv
# https://python-visualization.github.io/folium/quickstart.html#
art_map = folium.Map(location=[41.8781, -87.6298], zoom_start=11)
# Parker 41.923000, -87.638461
# placing a marker on the map
folium.Marker(location=[41.923000, -87.638461],
popup="Our School",
icon... | [
"bifft95@gmail.com"
] | bifft95@gmail.com |
e4a2ebe390211d6803336853fae8ab415dc3c629 | 4baf2e3f52bcbf447b368a5832ae18fd0339431c | /itchanged/diff_match_patch.py | 4dae2a004574271885d834205ab24de64bf56e12 | [] | no_license | markng/itchanged-server | a18798a6670ba2dc210e783d1dd140331aa36b4f | 16765f3a6c51ff6a581bdfff3ee259fcf8520e1c | refs/heads/master | 2016-09-06T04:06:41.132101 | 2010-07-12T14:27:21 | 2010-07-12T14:27:21 | 530,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,638 | py | #!/usr/bin/python2.4
"""Diff Match and Patch
Copyright 2006 Google Inc.
http://code.google.com/p/google-diff-match-patch/
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/l... | [
"mark@markng.co.uk"
] | mark@markng.co.uk |
85f1f80f24220aed6e73c2015e66ee635b426869 | 15d4861bf2f4748f144fbb85a128341736060bd2 | /archive/chemproject/copypaste.py | 7c72af112b0c881e7824d2aa062e487cae5d3a4b | [] | no_license | wombat-drone/fema-flavor-classifier | 283033d4e1535e3f83fefada41eb4d2a36c138c5 | 9737d5e6322f49b89e61cfa372505d8e217dd4da | refs/heads/master | 2022-11-06T22:38:32.838474 | 2018-01-29T22:58:12 | 2018-01-29T22:58:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | """
Tools for sending printouts to clipboard.
Only work for Mac.
"""
import subprocess
def write_to_clipboard(output):
"""
writes output to clipboard
"""
process = subprocess.Popen(
'pbcopy', env={'LANG': 'en_US.UTF-8'}, stdin=subprocess.PIPE)
process.communicate(output.encode('utf-8'))
d... | [
"TRN@BeyondTRN.local"
] | TRN@BeyondTRN.local |
68eeea5ed3b7b64fa83adeca2d9a513d9c57fd1c | 24caa6710105a060fab2e17147e6d56609939011 | /06-Importing_Data_in_Python_(Part_2)/01-Importing_data_from_the_Internet/01-Importing_flat_files_from_the_web_your_turn!.py | b845373064884f87b9853e85c1360cd5849f5a64 | [] | no_license | inverseundefined/DataCamp | 99607022ad3f899d7681ad1f70fcedab290e269a | 7226b6b6f41888c3610a884db9a226e013d37e56 | refs/heads/master | 2022-01-10T00:53:21.714908 | 2019-07-24T13:27:49 | 2019-07-24T13:27:49 | 198,280,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | '''
Importing flat files from the web: your turn!
You are about to import your first file from the web! The flat file you will import will be 'winequality-red.csv' from the University of California, Irvine's Machine Learning repository. The flat file contains tabular data of physiochemical properties of red wine, suc... | [
"inversedrivenundefined@gmail.com"
] | inversedrivenundefined@gmail.com |
f34253d3cdbb977a559f8f296b19947c19542246 | 77a73704511667d41392b15d7b87e2621453a6a4 | /Day9/q36.py | 379321f62dfc7f99e76e2a59f1077cb0d29e0a4a | [] | no_license | mahtab04/Python-Programming-Practice | 0ee790aec4ae32a474800826a7da113906289b29 | c076c6efd786059d3a4ac33dddd41f187eb0ce10 | refs/heads/master | 2020-04-16T18:29:28.454966 | 2019-03-11T15:49:13 | 2019-03-11T15:49:13 | 165,822,216 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # Program to find whether a no is power of two
# Given a positive integer, write a function to find if it is a power of two or not.
# Input : n = 4
# Output : Yes
# 22 = 4
# Input : n = 7
# Output : No
# Input : n = 32
# Output : Yes
# 25 = 32
def check_Power(number):
if(number & number-1) == 0:
print(... | [
"smmalam9@gmail.com"
] | smmalam9@gmail.com |
b24a89fc5023e465c9d433a04830c0efbcfae800 | 19c42d7c30a38e9ef5e5ef694b00449c92ec8f8f | /images/serializers.py | a89a0ad31cecf175961b0a0955b3cca0cda68f7d | [] | no_license | Blitzone/backend | 219210fe82652b872df1e0c4ccdaec21b1b1b887 | 9dfb1327db304877ff08fb88ed79df8182bffcf0 | refs/heads/master | 2021-01-17T07:10:15.523623 | 2016-07-18T23:12:53 | 2016-07-18T23:12:53 | 55,292,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,018 | py | from rest_framework import serializers
from .models import Topic, Chapter, Blitz, UserTopic, UserChapter
from accounts.serializers import BlitzUserSerializer
from accounts.models import BlitzUser
from django.db.models import Q
class UserTopicSerializer(serializers.ModelSerializer):
class Meta:
model = User... | [
"mikelv92@gmail.com"
] | mikelv92@gmail.com |
af110594bc60b09186afd5627301dc1dbf379ca8 | af61044c866eb85ca2c622e082090f7657431206 | /webcli/arthur_utils/experiment.py | a2e95ed3a2caacf3035abf7dcdb6607dbfd126af | [] | no_license | leepand/gridpoc | f7959ef099d8a5513c59dfeb682761771ffe7594 | 4c476cd0241a95a4a7d2abf53a519d3749ecfb94 | refs/heads/master | 2020-04-28T02:38:49.631595 | 2019-03-11T02:01:50 | 2019-03-11T02:01:50 | 174,906,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | from _mlflow_object import _MLflowObject
class Experiment(_MLflowObject):
"""
Experiment object.
"""
DEFAULT_EXPERIMENT_ID = 0
ACTIVE_LIFECYCLE = 'active'
DELETED_LIFECYCLE = 'deleted'
def __init__(self, experiment_id, name, artifact_location, lifecycle_stage):
super(Experiment, s... | [
"85721094@qq.com"
] | 85721094@qq.com |
5db755421c2575707e428ae378775b1cf3462cdc | 672f2f55cc81388ce6322350ad1fbd96d4c639dd | /brain_games/scripts/brain_gsd.py | 76a1286c3aa0574f56a3cced02233f01314a042f | [] | no_license | Nikolaevaanneta/python-project-lvl1 | 26018cf3681fc2f44991d6c781901d4c5a081f56 | 9913b2e092e6c3a414a3cf9d72fb39be03d25254 | refs/heads/main | 2023-07-14T19:50:42.219635 | 2021-08-26T10:41:00 | 2021-08-26T10:41:00 | 397,596,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from brain_games.body import run_game
from brain_games.games import gsd
def main():
run_game(gsd)
if __name__ == '__main__':
main()
| [
"nikolaevaanneta@gmail.com"
] | nikolaevaanneta@gmail.com |
33667e8b97d6c876c073bc1b32185c8188c271fa | a1614311937bae5204e171b2a3481fb31e61a490 | /media/codigos/36/36sol118.py | 0e4ccda5dba78b1aa00e7913b2e0c1bb249e5ec9 | [] | no_license | alexandre146/avaliar | 8d406100ed72f10292a0580edac50ad061ad92e9 | 3daf247ca68962086592a356e013b07fa1569afe | refs/heads/master | 2020-03-21T03:09:29.493919 | 2018-07-23T11:41:38 | 2018-07-23T11:41:38 | 137,883,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | n=int(input())
m=int(input())
if(m%n==0):
print(m)
elif(m%n!=0):
x=m%n
if((m-x)==n):
print("sem multiplos menores que"+str(m))
else:
print(m-x)
| [
"alexandre146@gmail.com"
] | alexandre146@gmail.com |
3a30135d3a76ea4be773fdf0dbce6c8d4ce4fcf1 | ce4c24564022d8f3bd9d224e99a66bb43eb2d870 | /R0004_Exams_By_Weekday_BarPlot_Report/ExamsByWeekday.py | 2ab7e09d499ffdf5ada9914ac1b8df1eda682c40 | [] | no_license | Harshit1503/Test-Center-Data-Analysis | a676e7de484977ac975cc2a5792c8f461a63cbdc | b94a43b4a01fa9c5e3f8166cf4957f7aea6e6a9a | refs/heads/master | 2022-11-28T08:15:55.802896 | 2021-03-29T16:14:32 | 2021-03-29T16:14:32 | 205,307,314 | 0 | 0 | null | 2022-11-22T07:39:01 | 2019-08-30T04:56:45 | Python | UTF-8 | Python | false | false | 3,310 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 1 01:37:07 2019
@author: Harshit
"""
import os
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image, ImageDraw, ImageFont
from datetime import date
def exams_by_weekday_bar_plot(weekDay_CNT_Tuple, yearVal):
# set width of bar
barWidth ... | [
"harshit.singh1503@gmail.com"
] | harshit.singh1503@gmail.com |
5d2d9c1ac8f26a527eaf2d08e5cdd9a656e0880c | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/kms/v1/kms-v1-py/google/cloud/kms_v1/services/key_management_service/transports/base.py | 0da50e0196d2991964005d561c4193993d0eb0a7 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,784 | 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 or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
ec49e6c91ca97068e5bb27f4a55e242b2c3c60c3 | d8cbe9ce0469f72b8929af01538b6ceddff10a38 | /tests/components/calendar/test_trigger.py | ac2547c81f72bf1d79b0d040948536d8a80702ac | [
"Apache-2.0"
] | permissive | piitaya/home-assistant | 9c1ba162dac9604e4d43e035e74bad7bba327f0b | 48893738192431f96966998c4ff7a3723a2f8f4a | refs/heads/dev | 2023-03-07T16:13:32.117970 | 2023-01-10T17:47:48 | 2023-01-10T17:47:48 | 172,578,293 | 3 | 1 | Apache-2.0 | 2023-02-22T06:15:56 | 2019-02-25T20:19:40 | Python | UTF-8 | Python | false | false | 21,468 | py | """Tests for the calendar automation.
The tests create calendar based automations, set up a fake set of calendar
events, then advance time to exercise that the automation is called. The
tests use a fixture that mocks out events returned by the calendar entity,
and create events using a relative time offset and then ad... | [
"noreply@github.com"
] | piitaya.noreply@github.com |
42de06cba2aa491aca4aeef891e131415fe780b7 | 0981c4973af3eda0e31c1af47e03d0133d1db43a | /base/sitemaps.py | ec929cc7331b712ef532cf6603346f17e0916179 | [] | no_license | kizashi7512/mysite_test | 327b17f6143dca3ff322c35d26c041e28c0141ca | 27a69e5a3039ad0aa91103bc7b2d5d9f52f8673c | refs/heads/master | 2023-03-29T12:36:46.641648 | 2021-03-26T02:43:57 | 2021-03-26T02:43:57 | 351,262,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from django.contrib.sitemaps import Sitemap
from django.shortcuts import resolve_url
class BaseSitemap(Sitemap):
def items(self):
items = [
'base:top',
'base:policy',
'base:terms',
]
return items
def location(self,obj):
return resolve_url(obj)
def changefreq(self, obj):
i... | [
"kizashi3230@gmail.com"
] | kizashi3230@gmail.com |
6ec31c553f72c6a11ebe59ba3afd9595af33ffd4 | 65a60b14be349d4d8f6f493f87f6f2b4ac7f6cbb | /jmesh/models/transformer/external.py | d200fdfc08675ab4bd6a30ccfb477170acc75165 | [
"MIT"
] | permissive | Exusial/MWFormer | 3729fee8ec085930d7a67161b968402a5db59b9e | 008e5724c933cebc110ace9b3cdcab102ee011de | refs/heads/master | 2023-07-13T10:54:01.295366 | 2023-07-10T03:10:52 | 2023-07-10T03:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,772 | py | #coding=utf-8
import jittor as jt
from jittor import nn
from jittor.misc import _pair
from functools import partial
import math
import numpy as np
from .utils import trunc_normal,load_pretrained,_conv_filter
from .config import default_cfgs
class MLP(nn.Module):
def __init__(self, in_features, hidden_features=No... | [
"bilibili39@163.com"
] | bilibili39@163.com |
3a9bf2b914edde4e5c397c7319864fbf32311712 | 117f066c80f3863ebef74463292bca6444f9758a | /finnhub_swagger_api/finnhub_swagger_api/models/revenue_estimates_info.py | 02eb5c15a1e32e1b17eb727157f4a1affeec2537 | [] | no_license | cottrell/notebooks | c6de3842cbaeb71457d270cbe6fabc8695a6ee1b | 9eaf3d0500067fccb294d064ab78d7aaa03e8b4d | refs/heads/master | 2023-08-09T22:41:01.996938 | 2023-08-04T22:41:51 | 2023-08-04T22:41:51 | 26,830,272 | 3 | 1 | null | 2023-03-04T03:58:03 | 2014-11-18T21:14:23 | Python | UTF-8 | Python | false | false | 7,028 | py | # coding: utf-8
"""
Finnhub API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six... | [
"cottrell@users.noreply.github.com"
] | cottrell@users.noreply.github.com |
d39520befb46e5c0ba5180a6c69f1a0df8f3b5c0 | 2aea5f0c91922b3686eaa9fb14d0c8675c080c98 | /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | 24638528d9d329e923b933e99e31de8b4471c3a0 | [
"MIT",
"Apache-2.0"
] | permissive | Earlvin/GEEC | 91cdd5772c6851e7fe2f8f8564cd6505ea3edf72 | b59d31ca3a18b486f85f68397c4de0ee92b5e852 | refs/heads/master | 2021-01-15T13:24:46.089488 | 2014-12-10T00:51:13 | 2014-12-10T00:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "false",
"node_pref... | [
"ejmanansala@gmail.com"
] | ejmanansala@gmail.com |
210e5ddca76bde20cfc78dc0b2d86fc7fb822f00 | 1170dd002a501a15f51c1282638b4d2146cab6b6 | /roboarchsim/src/roboarchsim/sensors/probeviz.py | a827522e9c771446bfacd0b3344f5aa2ce868992 | [] | no_license | kaosbeat/roboarch | 7f9ce45c9d51e6f172ee5673b83430cbc1571a4b | 010d6b7777fd3843da8b7b325dcc8552e500a103 | refs/heads/master | 2020-03-17T19:31:58.999814 | 2018-05-21T07:49:03 | 2018-05-21T07:49:03 | 133,867,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py | import logging; logger = logging.getLogger("morse." + __name__)
import morse.core.sensor
import math
from roboarchsim.builder.sensors import perlin
# import perlin
from morse.core.services import service, async_service
from morse.core import status
from morse.helpers.components import add_data, add_property
class Pr... | [
"kasper.jordaens@gmail.com"
] | kasper.jordaens@gmail.com |
26ec2100442d4be7cb84f871f4af39f81f332470 | 056f10d9f99506bb9b5abf7e91633f3ad0c76061 | /CountCSVRows.py | f31ac1a85a8c869736b03a67223274ff65e3ce66 | [] | no_license | taers232c/GAM-Scripts3 | 5f171b620b2ac19514ab7198e39720f59a60ba9e | a59c5adb7b03b6bc9a4e054b9b41eabae2779f13 | refs/heads/master | 2023-08-31T06:43:57.645295 | 2023-08-22T17:32:21 | 2023-08-22T17:32:21 | 108,921,186 | 176 | 46 | null | 2023-02-28T15:52:32 | 2017-10-30T23:48:44 | Python | UTF-8 | Python | false | false | 573 | py | #!/usr/bin/env python3
"""
# Purpose: Count rows in a CSV file
#
# Python: Use python or python3 below as appropriate to your system; verify that you have version 3
# $ python -V or python3 -V
# Python 3.x.y
# Usage:
# python3 CountCSVRows.py File.csv
#
"""
import csv
import sys
QUOTE_CHAR = '"' # Adjust as nee... | [
"ross.scroggs@gmail.com"
] | ross.scroggs@gmail.com |
f2b5f59d3c117070dd065713dd8377902588a840 | a535d7f6c873b0701507f3ba2286ad9d17485811 | /test_yuk.py | c874ec5b211636a508d6e3d163be589de10ae32e | [
"MIT"
] | permissive | okken/pytest-yuk | 5ce3747b69fb82dcdc566330e9f44d9c6aeae223 | 36ec350d7e2d753ede1f89226d5e83baa5abe075 | refs/heads/main | 2023-03-26T14:31:32.380813 | 2021-03-26T21:19:14 | 2021-03-26T21:19:14 | 351,911,575 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import pytest
@pytest.mark.yuk
def test_pass():
assert 1 == 1
@pytest.mark.yuk
def test_fail():
assert 1 == 2
def test_pass_unmarked():
assert 1 == 1
def test_fail_unmarked():
assert 1 == 2
| [
"1568356+okken@users.noreply.github.com"
] | 1568356+okken@users.noreply.github.com |
658779025acf197840a145bf6b531d133d94f75b | f0d864a4a26ab5a95462df0f1016039f1ba69895 | /tests/test_equal_air_temperature.py | 3d9827fc4209359847c1cad74f7fc40ba93fcd1c | [
"MIT"
] | permissive | ThomasSchuetz/ThermalBuildingModel | 7cd6f4007fc0e67ab7007392b8c71bc5aaa32546 | f1a9417451374ac5632980df62f859a51e91851a | refs/heads/master | 2022-12-19T13:24:02.118303 | 2020-09-25T07:43:01 | 2020-09-25T07:43:01 | 297,264,852 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | # -*- coding: utf-8 -*-
import numpy as np
import pytest
from thermal_building_model.eqAirTemp import equal_air_temp
class TestEqualAirTemperature:
def test_equal_air_temperature_case_08(self):
t_outside_raw = np.loadtxt("inputs/case08_t_amb.csv", delimiter=",")
t_outside = np.array([t_outside_raw[... | [
"thomas.schuetz@eon.com"
] | thomas.schuetz@eon.com |
7c4856b94c048615d4958703b69db3191a928ddf | d7195e61bc37f6b90c8bc2d6f164e5e7da98aa77 | /landlab/grid/linkstatus.py | 6eb74a1aadecb3b7f83bdb0915c210dc93491ae0 | [
"MIT"
] | permissive | joeljgeo/landlab | ffaae36b3ad3c5e1377355427bc9cfbb21074f01 | 1d2651c76a8a36a7a132f139638192df1823f8fb | refs/heads/master | 2020-04-05T01:38:11.870170 | 2018-11-09T16:44:31 | 2018-11-09T16:44:31 | 156,443,219 | 0 | 0 | MIT | 2018-11-09T16:44:32 | 2018-11-06T20:26:54 | Python | UTF-8 | Python | false | false | 5,415 | py | #! /usr/bin/env python
import numpy as np
from .nodestatus import (CLOSED_BOUNDARY, CORE_NODE, FIXED_GRADIENT_BOUNDARY,
FIXED_VALUE_BOUNDARY)
from ..utils.decorators import (cache_result_in_object,
make_return_array_immutable)
# Define the link types
#: Indica... | [
"mcflugen@gmail.com"
] | mcflugen@gmail.com |
6d8323e3ea02352d65d2f5f99110a013ddd2cc3d | 1348885ccdebfcb6010a267a3440a4ccc64373d1 | /Examples/IPlugSideChain/scripts/update_installer_version.py | d4c3a9886d1d11e75b3572f01e371d4ebdeff671 | [
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ddf/iPlug2 | c6565343def57dbf063fefb3b875c6337d363081 | d05d20929544b06500369208b9ec81a62eb191fb | refs/heads/master | 2022-11-02T04:39:45.019866 | 2022-10-10T17:15:04 | 2022-10-10T17:15:04 | 170,179,953 | 2 | 0 | NOASSERTION | 2019-02-11T18:30:30 | 2019-02-11T18:30:30 | null | UTF-8 | Python | false | false | 3,091 | py | #!/usr/bin/python3
# this script will update the versions in packages and innosetup installer files to match that in config.h
import plistlib, os, datetime, fileinput, glob, sys, string
scriptpath = os.path.dirname(os.path.realpath(__file__))
projectpath = os.path.abspath(os.path.join(scriptpath, os.pardir))
IPLUG2_... | [
"olilarkin@googlemail.com"
] | olilarkin@googlemail.com |
e6598a812d349f8f87994cd30681974bef4771b0 | 6b3dc07cc118dc68b942d593041e198c8e4b82f5 | /conftest.py | c95a8cd2e7c5c28ff5f77808433b913fd1577fb7 | [] | no_license | BarysTsibets/Stepik_Selenium_Python_tasks | e1603010aae93a5dc7c698a22126d8660f14218e | b0b96cc37c2276ee68623e0bfbe866261ae9bcd5 | refs/heads/master | 2022-12-23T12:31:49.171178 | 2020-10-01T00:10:46 | 2020-10-01T00:10:46 | 295,846,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | import pytest
from selenium import webdriver
PATH1 = r'C:\Users\BorisPC\PycharmProjects\untitled\HelloWorld\Automation\driver\chromedriver.exe'
PATH2 = r'C:\Users\BorisPC\PycharmProjects\untitled\HelloWorld\Automation\driver\geckodriver.exe'
def pytest_addoption(parser):
parser.addoption('--browser_name', action=... | [
"molekyla_08@mail.ru"
] | molekyla_08@mail.ru |
5e4a0ac99813e835e0faa58dd39e06c62ee81d61 | 5208a988cfe97dcc515cb26e4f39e2da2763e6b6 | /HouseSpider/items.py | e0a721e96efa04573898f743f04675998808be40 | [] | no_license | xuyun0906/HouseSpider | f316582de448acd91faf0fa00be9d761f5569e06 | e3fa9f57b1716fa841a44629d4b9372d4b5bae79 | refs/heads/master | 2020-04-10T08:22:04.239227 | 2018-12-09T15:06:58 | 2018-12-09T15:06:58 | 160,904,248 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy import Item, Field
class XiaoquItem(scrapy.Item):
id = scrapy.Field() # 小区ID
url = scrapy.Field() # 小区链接
name = scrapy.Field()... | [
"yunxu_master@126.com"
] | yunxu_master@126.com |
0cdc66bc726905c1a108a246b3d9afde367a20d3 | 7a16c85f09c2232a3fab5933c8ad2740edecace3 | /python_local_courses/dz-9/nine.py | ab06ac9c9610927989f8c00769ea47ef6e2b184c | [] | no_license | romanovna/baseline | 42adf5ae1eeb27c34b4684f07ad4c57882e4033a | c0bbef293c9e7f434d130aca89b8741f36e888df | refs/heads/master | 2021-07-14T09:20:19.924159 | 2021-03-10T13:22:36 | 2021-03-10T13:22:36 | 44,129,919 | 0 | 0 | null | 2021-02-26T14:23:30 | 2015-10-12T19:40:10 | Python | UTF-8 | Python | false | false | 6,207 | py | __author__ = 'roman.deles'
# coding: utf-8
""" Жизнь на ферме
- Курица
- Корова
- Собака
1. У этих классов есть следующие функциональности:
- бежать
- голос
- продукт ( яйцо, молоко) все эти классы унаследованы от базового "животное"
2. Также нужен класс ферма
Программа инициализирует ферму с заданным числом каждо... | [
"bullsey@gmail.com"
] | bullsey@gmail.com |
b484e91c0ba83b8e1b68afae32e927f0094f3207 | cb025bce485f2900c588dc6853b58aaba2db8e85 | /venv/bin/pip2.7 | 6bec2a6dd4dfc14afa4c65d9de1459e799c1d0cc | [] | no_license | jovannovkovic/athon | 04fc0fd0729133e504e30a03e721e8c415a4b803 | 2059160a58dfebdf891097dd5b3bc4bb50daf5bc | refs/heads/master | 2020-06-06T04:21:23.494297 | 2015-04-06T10:05:42 | 2015-04-06T10:05:42 | 30,805,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | 7 | #!/home/popara/Desktop/backend/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"popara@gmail.com"
] | popara@gmail.com |
e18cf06b5b2dc63197823de50c35c4e582ab59e9 | 772be6c5f04273b8e53485128e625d89fa13cb18 | /algorithms/warmup/Diagonal-difference.py | 1db5412cd07a5a314f7e4b36645f32ab834dfafc | [] | no_license | anandvimal/hackerrank | 4f714c44756b65886ff56c3c42ed8bc03477f436 | 148221da61f03859035009d307e2955ecf760fe2 | refs/heads/master | 2021-01-20T20:08:04.392126 | 2016-06-19T22:58:24 | 2016-06-19T22:58:24 | 59,915,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import sys
n = int(raw_input().strip())
a = []
for a_i in xrange(n):
a_temp = map(int,raw_input().strip().split(' '))
a.append(a_temp)
x=0
sum1 = 0
sum2 = 0
for i in a:
d1 = i[x]
d2 = i[len(i)-1-x]
#print d1
#print d2
#print " "
sum1 = d1 + sum1
sum2 = d2 + sum2
x+=1
#print... | [
"colirsweb@gmail.com"
] | colirsweb@gmail.com |
532430bc032a5da32c5501e5d1e2fe6e3cfaf911 | d8e7ed4d1e89aec85f1cd0006f8caca5ddc183c4 | /page_object/index/search_page.py | 1d3d0a4f5a283b1f46871918217c656078dfa3d3 | [] | no_license | reach950/hangzhoubanshi-uitest-iOS | 3bf7585e0b42a734ec8eb1db29b5a0ea82527809 | ce25cff3da3fb6f7e3c4a96f6e92f8b62b139c3c | refs/heads/master | 2021-06-19T15:27:42.801633 | 2019-11-14T08:17:05 | 2019-11-14T08:17:05 | 187,554,944 | 0 | 0 | null | 2021-06-01T23:45:36 | 2019-05-20T02:30:54 | Python | UTF-8 | Python | false | false | 2,716 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""搜索页"""
__author__ = 'kejie'
import time
from appium.webdriver.common.mobileby import MobileBy
from page_object.base_page import BasePage
class SearchPage(BasePage):
# 搜索输入框
search_field_loc = (MobileBy.CLASS_NAME, 'XCUIElementTypeSearchField')
# 搜索按钮
... | [
"reach950@gmail.com"
] | reach950@gmail.com |
e51ace0d5c0e2ac2999081b7aaabcb7594237299 | 81bdddb98eaa89c2a2256d2f40be6d5f92d3f9cd | /edr/edsmserver.py | 0694116964ab4dda5bc18f9ccdf17bd5feb2cf55 | [
"Apache-2.0"
] | permissive | Majorjjamo5/edr | e91af77512dc415ccca8496757edecb5f9cae692 | 0b05c04954bded5952d4b28886f97f599cd30792 | refs/heads/master | 2020-03-29T00:06:46.277576 | 2018-09-17T00:58:07 | 2018-09-17T00:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | import json
import urllib
import edrconfig
import edrlog
import requests
import urllib
EDRLOG = edrlog.EDRLog()
class EDSMServer(object):
def __init__(self):
config = edrconfig.EDRConfig()
self.EDSM_API_KEY = config.edsm_api_key()
self.EDSM_SERVER = config.edsm_server()
def system... | [
"33626494+lekeno@users.noreply.github.com"
] | 33626494+lekeno@users.noreply.github.com |
6bedde275f4ca48faeadfd4bab076e488b4228ea | cdb05cd3d2e90320bdb8469d7a0a3731457afbf6 | /base/products.py | 40365ad96ff37abac239c249d1e2016976a4d115 | [] | no_license | lastdefiance20/Campirit_Website_Example | c80a9d06e15b2c855a512c869d4c1ed30a6f835c | ba4d80057d77a7b6484eb5c7e88caf3553035d5c | refs/heads/master | 2023-07-15T12:07:40.483139 | 2021-08-31T23:50:44 | 2021-08-31T23:50:44 | 387,822,800 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | products = [
{
'_id': '1',
'name': 'Airpods Wireless Bluetooth Headphones',
'image': '/images/airpods.jpg',
'description':
'Bluetooth technology lets you connect it with compatible devices wirelessly High-quality AAC audio offers immersive listening experience Built-in microphone allows you to t... | [
"lastdefiance20@gmail.com"
] | lastdefiance20@gmail.com |
e017a965c13c03a73293617f8454c31ae8b81cac | 8ffe631d5493bb03c50e9acaf82edd864bde5abc | /bin/trial | 9f2c35a964d485cd1ccce351972aaecdb992960b | [] | no_license | aditya172926/scrapy-scrap | 58f7f7de77aa2ebddd31d21b213a1ab58a7b6bd4 | f4b29b329412e326c7b698a086eb75df860ca5cc | refs/heads/master | 2022-11-09T20:20:57.543829 | 2020-06-28T05:57:02 | 2020-06-28T05:57:02 | 275,516,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/harshshetye/Desktop/scrapy_scrap/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.scripts.trial import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"aditya26sg@gmail.com"
] | aditya26sg@gmail.com | |
366ea396e642b9019bb557961a0b903fbe4531e5 | 3ae01569e10db9e4b3036a6e877ef24a3f056179 | /website/openeuler_release_refresher/obs/util.py | 1b8b9459e04a65dd9c973feeb9ee6743a3f3af57 | [
"Apache-2.0",
"MIT"
] | permissive | openeuler-mirror/infrastructure | f3bc92bdc8af9285a549045a6180593f7d9e16fe | d1020ab3fe7535f75da9e8b24e6221f103422ac0 | refs/heads/master | 2023-09-01T18:08:00.704355 | 2023-08-26T18:00:04 | 2023-08-26T18:00:04 | 246,005,363 | 0 | 2 | Apache-2.0 | 2023-05-23T05:51:28 | 2020-03-09T10:25:26 | Python | UTF-8 | Python | false | false | 12,786 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# Copyright 2019 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 r... | [
"hu.husheng@huawei.com"
] | hu.husheng@huawei.com |
c5517dd7c08f39a902510e7f3cd4029fc8a11a87 | 900e3a70c3264d43a8a478143ec0443b7afc9083 | /helpers.py | d497e49a30802ccb27deb6bfe120b39e0b050c7d | [] | no_license | James171/nfl_team_comparison_app | 285fa5b48f36fda67ecf469cb0ca092e458568c3 | 1428cca60faefca64e111d2e072e6d3c2924a5cc | refs/heads/master | 2021-02-19T01:49:11.382554 | 2020-05-06T19:23:59 | 2020-05-06T19:23:59 | 245,265,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | import os
import requests
import urllib.parse
from flask import redirect, render_template, request, session
from functools import wraps
# Hide API Key from viewers
api_key = os.environ['API_KEY']
# Lookup function to to get hierarchy api information and team ID
def lookup(symbol):
# Contact API
try:
... | [
"26070680+James171@users.noreply.github.com"
] | 26070680+James171@users.noreply.github.com |
54109eabfcfbc9695ac0860bc473d43ead1adcb8 | 0266f371319c28227a948fb105440ef74a3c583d | /tests/test_util_methods.py | 8f2614102db8a1e8235c6930336ef83eab1e57bc | [
"MIT",
"Python-2.0"
] | permissive | qbicsoftware/mtb-converter-cli | 2ff264576c07a0c383b59f817d076ebe3d76d884 | 8a2a33f511fcc1b9791aad4a5ff6a44a16f1d72a | refs/heads/master | 2021-09-15T09:08:08.005762 | 2018-05-14T19:28:58 | 2018-05-14T19:28:58 | 115,716,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | """
Tests for util methods
"""
import os
import unittest
from nose.tools import raises
from mtbconverter import utils
INVALID_BARCODE = "QLAUCH123AE"
VALID_BARCODE = "QAHJH006A4"
INVALID_PATH = "my/file/QLAUCH123AE_file.fastq.gz"
VALID_PATH = "my/file/QAHJH006A4_file.fastq.gz"
PATH_WITH_MULT_BARCODES = "my/file/QAHJH0... | [
"sven.fillinger@qbic.uni-tuebingen.de"
] | sven.fillinger@qbic.uni-tuebingen.de |
d021d36f984ab643b089ddca6cf72adba3e0c21e | e3565e1ce607f60745f2a045aae8026661a6b99b | /resources/Onyx-1.0.511/py/onyx/grid/griddy.py | b7fdb67930c51b30bfc7c426ac2a4ed49d48c2c2 | [
"Apache-2.0"
] | permissive | eternity668/speechAD | 4c08d953b2ed06b3357b1c39d8709dd088a2471c | f270a1be86372b7044615e4fd82032029e123bc1 | refs/heads/master | 2021-01-12T22:10:33.358500 | 2014-02-03T16:03:28 | 2014-02-03T16:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | ###########################################################################
#
# File: griddy.py (directory: ./py/onyx/grid)
# Date: 4-Feb-2009
# Author: Hugh Secker-Walker
# Description: A function for use in testing by gridgo.py
#
# This file is part of Onyx http://onyxtools.sourceforge.net
#
... | [
"nassos@n12mavra.cs.ntua.gr"
] | nassos@n12mavra.cs.ntua.gr |
9eb02a16cb5679b043e158e4f36ae3ea11a51e80 | 162f0a636cab320ead784b33597e583e38ac432f | /1744.py | f339b7b48defbece73a4dddc7bee0dbea7c0d161 | [] | no_license | goodsosbva/BOJ_Greedy | fc2450df90f64790f6cc01c168ba7f19ec83e504 | 98d21af254cacf41632a4b40ca9ef643b29bb104 | refs/heads/main | 2023-03-31T17:26:33.863396 | 2021-04-06T07:50:57 | 2021-04-06T07:50:57 | 347,081,712 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | n = int(input())
sequence = []
negative = []
positive = []
res = 0
for i in range(n):
i = int(input())
sequence.append(i)
for k in sequence:
if k < 0:
negative.append(k)
elif k > 0:
positive.append(k)
else:
negative.append(k)
negative.sort()
positive.sor... | [
"noreply@github.com"
] | goodsosbva.noreply@github.com |
f8e9765b859dd527defd2ce06933a55ecb70e041 | 35fdd5b42b47a1dbe6a25f6fc1865f4e48b842a5 | /evalml/tests/component_tests/test_catboost_classifier.py | 1ef6fd41a8656a2914d90172ce42a92330d0a24e | [
"BSD-3-Clause"
] | permissive | skvorekn/evalml | 41e5426f9f7d5ad625c21b74336009894c79c7de | 2cbfa344ec3fdc0fb0f4a0f1093811135b9b97d8 | refs/heads/main | 2023-03-27T01:42:07.691406 | 2021-03-19T18:53:43 | 2021-03-19T18:53:43 | 349,555,689 | 0 | 0 | BSD-3-Clause | 2021-03-21T14:57:01 | 2021-03-19T21:08:12 | null | UTF-8 | Python | false | false | 837 | py | import pandas as pd
from pytest import importorskip
from evalml.pipelines.components import CatBoostClassifier
from evalml.utils import SEED_BOUNDS
importorskip('catboost', reason='Skipping test because catboost not installed')
def test_catboost_classifier_random_seed_bounds_seed(X_y_binary):
"""ensure catboost... | [
"noreply@github.com"
] | skvorekn.noreply@github.com |
0f776e18f96167e136351a53c789777a2a35a629 | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/comparison/test_chart_layout04.py | f377a5806721d2af1d65752bac33bb918a5d84f3 | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
ee6f7db289489973bebf80ffdf3c8346f71732cc | 6d5c5fbbefb6b6dfc398adfc054f09cb95fbdcaf | /rh_pathfinding/src/rh_pathfinding/utils/minheap.py | e8cbf2a4ee3c61c7adc7c8c6290a9deff3e0d774 | [
"MIT"
] | permissive | Wuxinxiaoshifu/rh_ros | 46a8d75d10317aef04c57785653a6b00ddcb2b63 | e13077060bdfcc231adee9731ebfddadcd8d6b4a | refs/heads/master | 2022-04-11T15:12:38.539565 | 2020-04-09T19:51:46 | 2020-04-09T19:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | import heapq
class MinHeap:
"""
What you'd expect. There is probably a better one, but this is simple and meets our needs.
"""
def __init__(self):
self._heapList = []
self._inc = 0
def isEmpty(self):
return len(self._heapList) == 0
def __len__(self):
return ... | [
"stephenpheiffer1@gmail.com"
] | stephenpheiffer1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.