blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
705e80c6537c334161ccb3c524c985b1dd6ed6e2 | ab5ac53de3b5c2d5bf332957ec5799d0226d5e7b | /bot.py | 8c7c2e8a8e9532ede9950873a047b275e3faf487 | [] | no_license | S1eap/Chris | d3b21363cd2d8c5d6e067a2f4e869dc09af5e6e8 | 90b2256a2218e2273bf4193fabc57d66de20dab5 | refs/heads/master | 2021-01-13T12:58:38.845180 | 2017-06-20T17:15:55 | 2017-06-20T17:15:55 | 94,912,640 | 0 | 0 | null | 2017-06-20T17:25:12 | 2017-06-20T16:30:46 | Python | UTF-8 | Python | false | false | 2,682 | py | import logging #Библиотека для ведения логов, потом пригодится
import vk #Модуль для доступа к API
import vk.exceptions #Модуль с описанием исключений связанных с API
import time
tokenfile=open('token.txt','r')
#/////logss=open('loggs.txt','w')
quest=['Привет','привет','Как дела?','как дела?','Как дела','как дела']
... | [
"S_leap@mail.ru"
] | S_leap@mail.ru |
7a592cdf6a9b54e598ddd17945122d921db69bb3 | 7548c8efccb43b1d8daec719bd7d8ad4a4d03630 | /Check Completeness of a Binary Tree/Leetcode_958.py | 0a338ef629921b6783c50f373af6e33940a2e591 | [] | no_license | arw2019/AlgorithmsDataStructures | fdb2d462ded327857d72245721d3c9677ba1617b | 9164c21ab011c90944f844e3c359093ce6180223 | refs/heads/master | 2023-02-17T11:50:07.418705 | 2021-01-19T19:37:17 | 2021-01-19T19:37:17 | 204,222,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
from collections import deque
class Solution:
def isCompleteTree(self, root: TreeNode) -> bool:
levelOrder = [root]
i = 0
while le... | [
"noreply@github.com"
] | noreply@github.com |
a64e88355a141723eb1b4f63398ead1cc763a9a3 | 42f33330bd85d22b788f21bc11ad936aa0049875 | /part2/1_unit_3x3.py | 7a07497280d86b22acc277788a15f27ee014ec05 | [] | no_license | rs19hack/klayout | f434ba44371fb9f3857d47b53b83d6685dd6e8c8 | 844f2eb909e63237bc0e3268253f0375ced75ece | refs/heads/master | 2023-02-01T04:15:18.154903 | 2020-12-07T23:18:27 | 2020-12-07T23:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py |
# Create KLayout object
import pya
KLAYOUT = pya.Layout()
# Dimensions
pitch = 100*1000 # 100 um
# Create Top Cell Name & Obj of the GDS to be EXPORTED
TOP_CELL = KLAYOUT.create_cell("1_UNIT")
# Define array of GDS files to read
gds_files = [ "0_unit_1x1.gds" ]
# Read each GDS files
for each_gds in gds_files:
KL... | [
"noreply@github.com"
] | noreply@github.com |
16b22648fa1f5de69b31232a5a4ad19b8bbd052d | aa8d3623f7679ff223620a0bf5762b1e91ba5d36 | /config.py | 9ef5bb1631a3bc43b2ecb4ab625c63bec562a995 | [] | no_license | damengde/big_mech_isi_gg | e671eb23e7e35c3b514d71ba2b9b1bad4fd06a0c | 789cb3a21d69b02adedb0e9757ce6e9f44f5efee | refs/heads/master | 2020-06-02T20:47:01.137462 | 2018-03-12T01:22:02 | 2018-03-12T01:22:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | #
# Written by Sahil Garg (sahilgar@usc.edu, sahil@isi.edu, sahilvk87@gmail.com)
#
# Sahil Garg, Aram Galstyan, Ulf Hermjakob, and Daniel Marcu. Extracting biomolecular interactions using semantic parsing of biomedical text. In Proc. of AAAI, 2016.
#
# Copyright ISI-USC 2015
#
debug = False
coarse_debug = True
| [
"sahilgar@usc.edu"
] | sahilgar@usc.edu |
5a14f95c907ff7ad332c002c84f30f49f49b8cdf | 2059f378d07c7c067aca01b835502472a2eb3f27 | /app/run.py | 362e8d3b40fee57c62f770dd56f46083595f82c5 | [] | no_license | zhangliang852469/FlaskLogin | d51a79d63c4a812dc6764f1892efb7ba37c13b9f | fbdccdca5cfb947b6a77cbb27e17d9792799463c | refs/heads/master | 2020-04-23T20:10:12.595991 | 2019-02-19T07:44:13 | 2019-02-19T07:44:13 | 171,430,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
from app import app
app.run(
debug=True
) | [
"710567585@qq.com"
] | 710567585@qq.com |
746b4de333e6c36723c2c921b4d1609468b257de | bf1813aa740224992cc88c1ce3dde55f1cac9858 | /twitteruser/migrations/0007_auto_20200905_2309.py | 73bc56967199888f9da9a7bb4a1be0e6fa51df61 | [
"CC-BY-4.0"
] | permissive | pokeyjess/Twitterclone | 542e681339fa49ef2ca032f598c0d65989fe75d6 | 6c2d7d5ed2e71b7ef6252552d387d804c18b3870 | refs/heads/master | 2022-12-18T00:06:20.699424 | 2020-09-08T08:39:15 | 2020-09-08T08:39:15 | 291,804,702 | 0 | 0 | null | 2020-09-15T20:03:21 | 2020-08-31T19:22:44 | Python | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.1 on 2020-09-05 23:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('twitteruser', '0006_auto_20200905_2306'),
]
operations = [
migrations.AlterField(
model_name='myuser',
name='job_title... | [
"pokeyjess72@gmail.com"
] | pokeyjess72@gmail.com |
743fb306d02fdd8647e4e3fdc698e0da32610bad | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /upsolve/ABC/abc077/c/main.py | 0d82c8873315de4343231f2620a0fa633e717d3a | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 1,196 | py | # -*- coding: utf-8 -*-
from bisect import bisect_left, bisect_right
from typing import List
def bisect_lt(sorted_array: List[int], value: int):
"""Find the largest element < x and its index, or None if it doesn't exist."""
if sorted_array[0] < value:
index: int = bisect_left(sorted_array, value) - ... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
3a38b3a0c03e6b40a19ba9eca87d5c6ad252d8c7 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pip/_vendor/distlib/version.py | df4c094a926591eda8f0a2f518c0a097f745ebc2 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,252 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2017 The Python Software Foundation.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
"""
Implementation of a flexible versioning scheme providing support for PEP-440,
setuptools-compatible and semantic versioning.
"""
import logging
import re
from .compat import s... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
caad93adc74097557cecb0e54e1c83e7b78b37fe | f693407a50907660fe3eab218765a914a206c15c | /fronts.py | 843044b6efe15c82b092dc0fb0302e0c40d99202 | [] | no_license | JansenRachel/Fronts | fb3be960ac59d60d2779fad22d4650390e427347 | 4dc432946513e4f67c029bcaac19a7f0fdba8c58 | refs/heads/master | 2023-08-12T08:39:34.815959 | 2021-10-06T02:18:40 | 2021-10-06T02:18:40 | 414,041,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class SLL:
def __init__(self):
self.head = None
# NOT WORKING -> RETURN VALUE OT HEAD OF LISTls
def front(self, index):
current = self.head
count = 0
if (count == index):
... | [
"rachel.jansen0613@gmail.com"
] | rachel.jansen0613@gmail.com |
9a91f54cacde8f0577d9c9281ea1eb1c1c4dbf30 | 08d3958fbaa816af6d440088af180c30b0389018 | /excelpars/wsgi.py | bfa728f5a9875880e05341de645123aa70f9fff8 | [] | no_license | al3xrz/okn | 691234a9e98045322d80d291148b9800727ce30f | 84cb01b958cce91b7f3b51da28050b1f253f5e10 | refs/heads/master | 2022-11-25T20:17:10.088676 | 2019-12-19T11:22:48 | 2019-12-19T11:22:48 | 229,039,809 | 0 | 0 | null | 2022-11-22T02:58:35 | 2019-12-19T11:23:44 | JavaScript | UTF-8 | Python | false | false | 412 | py | """
WSGI config for excelpars project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"al3xrz@gmail.com"
] | al3xrz@gmail.com |
aa20dec965009cb22d6d9cb06fb52bd5e9d26275 | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/containerservice/models/container_service.py | 6ddfa6ada5fad98de6c1c1e67dfa49f9783db332 | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 5,179 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
a055322caf148a15c9f87582760f6b1896668816 | a6fda904adea5e0cf00f046c4b80c3e9ef765f98 | /pA/gen/genmain.py | 0cfc304097287be3d79fce9637e698294ca2a8d5 | [] | no_license | TNFSH-Programming-Contest/2021NHSPC-TNFSH-Final | f0a02f3e166a67385d9fafa67f5a3482d8935247 | 25866390f5a0ed6b95600cf5322f450eff77ef04 | refs/heads/main | 2023-07-18T23:47:24.635228 | 2021-09-25T13:10:24 | 2021-09-25T13:10:24 | 399,841,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,961 | py | #!/usr/bin/env python3
from functools import reduce
from pathlib import Path
import random
import subprocess
from _gen import runTest
from _gen.generator import Generator, genStart
from _gen.present import Entry, List, SpaceContainer, LineContainer
class TestGenerator(Generator):
def presentTest(self):
retur... | [
"53344765+Li-Pro@users.noreply.github.com"
] | 53344765+Li-Pro@users.noreply.github.com |
4a0421c79f327b4ef1ed5b66294e4a2145414a5e | a9eb4acadf1e11622a1f7ad36ad15f870be762a6 | /oscar/run_captioning_finetune.py | c05f5409672270bbe3c79d0ae936a96418fbcbcc | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | qianqianderizi/11777-Group11 | 5b13d0c483de4ce8f1cecf6961c01ebe621c99eb | 6be01ca0c0c2bfa53b402d02f00cd07f20698c50 | refs/heads/master | 2023-01-28T03:14:57.447354 | 2020-12-10T23:44:34 | 2020-12-10T23:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,892 | py | # Copyright (c) 2020 Microsoft Corporation. Licensed under the MIT license.
from __future__ import absolute_import, division, print_function
import argparse
import base64
import os.path as op
import random, time, json
import numpy as np
import torch
from torch.utils.data import Dataset, DataLoader, RandomSampler, Sequ... | [
"zhiranc@andrew.cmu.edu"
] | zhiranc@andrew.cmu.edu |
cd0bfc611589de1e7ca5ed8f25e1600ba4902b11 | 1fe6c46cfc9b839554a1f24e964a0fb03a29bac7 | /linearsearchprblm.py | 23458e778da6da11f6b697c780f6aa574ac74a21 | [] | no_license | fariya-banu234-au7/python | adbfc1082b43133fbbcf5db0ef7f444609d30332 | 94e02d1467e0e0d34b05952e999ca4ab8ae13a1c | refs/heads/master | 2021-01-07T08:47:27.309551 | 2020-02-29T02:06:00 | 2020-02-29T02:06:00 | 241,639,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """You have been given an array of size N consisting of integers.
In addition you have been given an element M you need to find and print the index of the last occurrence
of this element M in the array if it exists in it. Consider this array to be 1 indexed.
Input Format:
The first line consists of 2 integers N and... | [
"fariyafortunate23@gmail.com"
] | fariyafortunate23@gmail.com |
78a0851ea9299d16a556f87dd0545a5c9477d748 | 21dfcc44840cb94058bcd014946f2a38fbf30c54 | /scripts/EmuSo.py | d0f8e85d777d129c382cb83107cca556152999c8 | [
"SGI-B-2.0",
"MIT",
"Libpng",
"BSD-3-Clause",
"LicenseRef-scancode-glut",
"Zlib",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Unlicense"
] | permissive | nigels-com/regal | 819a74deeeac00860bcb6f21c3e59ccad1b78448 | 3f1a06d5c098339d30221c9e999640e4c5437a0b | refs/heads/master | 2020-12-14T16:19:29.701418 | 2015-10-18T08:57:48 | 2015-10-18T08:58:56 | 9,986,650 | 2 | 3 | null | 2014-07-12T07:28:49 | 2013-05-10T17:35:20 | C++ | UTF-8 | Python | false | false | 3,670 | py | #!/usr/bin/python -B
soFormulae = {
# TODO
'GenSamplers' : {
'entries' : [ 'glGenSamplers' ],
'impl' : [ '_context->so->GenSamplers( ${arg0plus} );' ],
},
'DeleteSamplers' : {
'entries' : [ 'glDeleteSamplers' ],
'impl' : [ '_context->so->DeleteSamplers( ${arg0plus} );'... | [
"nigels@users.sourceforge.net"
] | nigels@users.sourceforge.net |
a9932497831b3520dc8d1bf8198cfa29f04da645 | 3c8ff71a0c4aa49748cfa801273e56d3db8bd0c2 | /home/root/Lab2/edisonKinesisDemo.py | c8ad596ca6b4eec9d9f208e12dc19a86c2f940e3 | [] | no_license | SiyangYin/IOTLAB | 7153aaf56c0fbbd51d79a45cd1a68b2bd79ccadc | c15b4a303cf38f519ad9013f928e75b5740e5b81 | refs/heads/master | 2020-04-21T19:50:27.421021 | 2019-03-28T00:58:54 | 2019-03-28T00:58:54 | 169,821,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,324 | py | # File: edisonKinesisDemo.py
# Group: abcd
# Date: 2/7/2018
# Group Members:
# Alicia Musa - am4036@columbie.edu
# Doug Soto - djs2240@columbia.edu
# Sam Beaulieu - srb2208@columbia.edu
########################################################################
# * Assignment 2 Part 3. File written by Peter Wei pw242... | [
"sy2820@columbia.edu"
] | sy2820@columbia.edu |
f9fdbe714b8a398dcdadea5f1a8fc7b7c1e7d4d6 | ecdc60fca790fef9e9d8178a8b43fc58e7f90d79 | /config.py | 81ec0f0ef428eb88fc364feca4b922b145efaf8f | [] | no_license | dporr/P1_event-booking_fullstack-nanodegree | 09595ed786f7068962e6dc86b8668c89eab90735 | af48d23d3eb3042ce9d2515a76f886fc58bc4ab5 | refs/heads/master | 2023-04-20T11:45:21.911175 | 2020-05-11T18:08:48 | 2020-05-11T18:08:48 | 262,219,277 | 0 | 0 | null | 2021-05-06T20:08:21 | 2020-05-08T03:37:15 | Python | UTF-8 | Python | false | false | 457 | py | import os
SECRET_KEY = os.urandom(32)
# Grabs the folder where the script runs.
basedir = os.path.abspath(os.path.dirname(__file__))
# Enable debug mode.
DEBUG = True
# Connect to the database
user = os.getenv("POSTGRES_USER")
password = os.getenv("POSTGRES_PASSWORD")
host = os.getenv("POSTGRES_HOST")
schema = os.get... | [
"dporras.mail@gmail.com"
] | dporras.mail@gmail.com |
243444d11bff96d6b6a3072afe8a54f1a5bcc3c1 | 6f7a1e4a53a142250c9a5df71066c4dfaebaa6b7 | /day2/day2_tasks/taskTwo.py | 4865aea36664070a1cb0780b25936a634a882f42 | [] | no_license | Hamdi-Limam/PythonTraining | 25a22682400bd571c21837a00ed2e4b27c5a38c8 | dcf02d7e097cb5234c37aa086461dfcaf31f610f | refs/heads/master | 2023-09-04T07:38:42.756701 | 2021-10-31T22:06:46 | 2021-10-31T22:06:46 | 405,022,986 | 4 | 0 | null | 2021-10-06T10:34:11 | 2021-09-10T09:16:05 | Python | UTF-8 | Python | false | false | 872 | py | # Task 2: WAP to create a function in which the arguements are users and their marks and return three value.
# User with maximum mark, Average_marks, Users below failing marks. Below is sample of output:
# ("Raul": 99),("avg_marks","55"),["Hidan", "Goku", "Timon", "Sasuke", "Saitama"]
def marks(**students_list):
m... | [
"limamhamdi13@gmail.com"
] | limamhamdi13@gmail.com |
4f6e98d736958850f3715a80606ca28c7eabddf4 | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/43/43-31_wat_20Abox/set_1ns_equi_m.py | eeadbfffcabc77af30b8d082f6dcced30aacc839 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L43/wat_20Abox/ti_one-step/43_31/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
3e70d6b733d6b080671881bb8509683d651b7bf7 | 0eaeb80b9cab9e66003cb8959293fefa36f80834 | /Code/powerhop_kronecker_synthetic.py | dbff643370d23d93e797259a326f8ce894f134e5 | [] | no_license | kpelechrinis/powerhop | 9d2c2f07fbcce49abdd796b6c9f5f58a7cb3e610 | c3f7f94fbde340bf26e5a3d76d48f0d076be5feb | refs/heads/master | 2021-01-13T14:28:18.452881 | 2015-07-01T12:41:46 | 2015-07-01T12:41:46 | 38,369,238 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | #!/usr/bin/env python
import sys
import os
import matplotlib.pyplot as plt
import numpy as np
import numpy.linalg
import igraph
from numpy import log, log10
from scipy import stats
import random
fout = open("syntetic_results_kronecker_04.txt","w")
for n in range(100):
print str(n)+") "+"Generating network...with dia... | [
"kostas.pelechrinis@gmail.com"
] | kostas.pelechrinis@gmail.com |
961096bccecb455c04c730733e373659fba99b17 | 3bd6ea153ee2bd7999023dc778c3e49de534034a | /stream/messenger.py | b90b34ce99da3e2d136864ff2feeec809a370c74 | [] | no_license | sanket-patel/criptoe | 0fc05db3a5f5e96e8c1a176fcae4663f42aef17c | 5125e90eac6634876a44b07d88e3f85e67a23309 | refs/heads/master | 2020-12-03T04:03:07.505494 | 2017-08-01T17:07:59 | 2017-08-01T17:07:59 | 95,807,949 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,929 | py | import redis
import json
import psycopg2
import gdax
import time
import collections
import codecs
import ast
import threading
import stats
# Messenger acts as a Messenger between databases
# like a carrier Messenger does
#
# can subscribe to stream from exchange or redis server,
# and publish to either redis server or... | [
"nilaypatel2@gmail.com"
] | nilaypatel2@gmail.com |
d6f7fe06dc5df861f9e1552b2578e3a5feac95df | 6461c34c8bacdf4e9d75d7f22056fda9cacfc763 | /RoboticsLanguage/Outputs/RosCpp/Parameters.py | 0f5131039e4a15d48b1dfbdb32af99a9c56e3c52 | [
"Apache-2.0"
] | permissive | Russ76/RoboticsLanguage | c100a38fdc54670b19d07d8ff311e111e75ac6a7 | 0f96cbfff4852199da1cbb6e21d3e588c5ad6aae | refs/heads/development | 2020-03-30T15:39:04.523950 | 2019-06-17T04:59:27 | 2019-06-17T04:59:27 | 151,373,101 | 0 | 0 | Apache-2.0 | 2019-06-17T04:59:29 | 2018-10-03T06:58:21 | Python | UTF-8 | Python | false | false | 1,240 | py | #
# This is the Robotics Language compiler
#
# Parameters.py: Definition of the parameters for this package
#
# Created on: June 22, 2017
# Author: Gabriel A. D. Lopes
# Licence: Apache 2.0
# Copyright: 2014-2017 Robot Care Systems BV, The Hague, The Netherlands. All rights reserved.
#
# Licensed ... | [
"g.lopes@robotcaresystems.com"
] | g.lopes@robotcaresystems.com |
570430474d734ea45b7b4bf3c1ec9a6489e26a5b | a05716cdf916edb42efdcec4fd10c65bdd043f3d | /elasticsearch/_async/client/monitoring.py | 2f7b570d21a89b3af2d569d08af6dd9e023b1547 | [
"Apache-2.0"
] | permissive | mesejo/elasticsearch-py | 0a30e104f3f4e6b2426c1eb01ba51e5d86efab14 | 041a433de263482e306b3855ab67b93c03978966 | refs/heads/master | 2022-11-11T11:57:44.792382 | 2020-06-23T18:36:32 | 2020-06-23T18:36:32 | 274,199,907 | 0 | 0 | Apache-2.0 | 2020-06-22T17:20:49 | 2020-06-22T17:20:49 | null | UTF-8 | Python | false | false | 1,494 | py | # Licensed to Elasticsearch B.V under one or more agreements.
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information
from .utils import NamespacedClient, query_params, _make_path, SKIP_IN_PATH, _bulk_body
class MonitoringClient(Name... | [
"sethmichaellarson@gmail.com"
] | sethmichaellarson@gmail.com |
66709a49f3e706347ee3b043ad29d03ce0b01967 | 03bb28197d3acdcdd76d9679b476c818d0d55328 | /app.py | 105c6df3348e620c34b162a60b79cc5435db0dfb | [] | no_license | jakejg/flask-survey | 80faa19496e962b24aafe05e85659694aa251506 | 72f387670861dcd117329469445f15728ebd6831 | refs/heads/master | 2021-01-14T07:16:14.631346 | 2020-02-25T16:57:38 | 2020-02-25T16:57:38 | 242,636,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | from flask import Flask, request, render_template, redirect, flash, session
from flask_debugtoolbar import DebugToolbarExtension
import surveys
app = Flask(__name__)
app.debug = True
app.config['SECRET_KEY'] = "secret"
app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = False
debug = DebugToolbarExtension(app)
surveys_dict ... | [
"jakefrisbee@gmail.com"
] | jakefrisbee@gmail.com |
15fc40bda909702b808b9f6a350ed20b9f7666e1 | 62484d13c69e2b37998e1338a84d1b798afe93cf | /funcExamples/PhraseRepeated.py | 416eff424fab19dd0cd41fb5983fbcb10f520f62 | [] | no_license | sathayas/PythonClassFall2019 | 029514f6d7de9d339261b420d19778271cb2d892 | 7ee9e53370e75691650d65aa5bdb01963468f091 | refs/heads/master | 2020-06-30T19:04:37.348185 | 2019-11-21T21:16:12 | 2019-11-21T21:16:12 | 200,921,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | def RepPhrase(word, times):
print((word + ' ') * times)
RepPhrase('Wow!', 3)
| [
"hayasaka@utexas.edu"
] | hayasaka@utexas.edu |
0e2bbbc4a67fd094f67dd7d060888036adf62cba | 030aef4b13a29246ef21342efea9b26f5620f0b0 | /code/SWEA/1859_백만장자_프로젝트.py | 757a273af12d8f69c335f163cf7e6678348557f7 | [] | no_license | kyeah01/Problem_Solving | d70049efb72d09c4ea07a8dba9144d482857b36a | efec0486ec07843e085abf4e66cdf694fdde104b | refs/heads/master | 2021-07-03T14:28:56.001123 | 2020-09-23T17:37:42 | 2020-09-23T17:37:42 | 176,175,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | T = int(input())
for tc in range(1, T+1):
N = int(input())
days = list(map(int, input().split()))
max_index = N-(days[::-1].index(max(days))+1)
ans = 0
# max_index까지 값을 구해야함
for i in range(max_index):
ans += max(days) - days[i]
if ans < 0:
ans = 0 | [
"kyeah01@gmail.com"
] | kyeah01@gmail.com |
c9137e927e2762c3dabb53464b188c75bd852b4b | d41a27290864603e850b3e088e179e44308a2b94 | /phase1.py | 3d37663c03dc116639b61b7ce2dd3651f6a80e41 | [] | no_license | sathish-selvam/Number-Detection-using-OCR | a6c6730a6e84b6399f87cd15505c7a3956aed99b | f4d0372d042ced1d844c5a822fc144788762d0f5 | refs/heads/master | 2023-01-01T01:16:44.837522 | 2020-10-15T14:15:46 | 2020-10-15T14:15:46 | 302,004,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import cv2
import pytesseract
import numpy as np
import glob
import os
from blurImage import blur_found_area;
pytesseract.pytesseract.tesseract_cmd = 'C:\Program Files\Tesseract-OCR\\tesseract.exe'
print(pytesseract.get_tesseract_version())
cong = r'-c tessedit_char_blacklist=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLM... | [
"sathishselvamdev@gmail.com"
] | sathishselvamdev@gmail.com |
e3d45c0faaf86b27d3e9a66e838c30803505fdcd | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sN5.py | 37a225513018600c0b319a3af69b558ec72dabd4 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
f86ddab7d6b66466c1bcee50a9c2ab08a8f25e55 | bd279d9fa3685847db65cfaa81d828b6cc0c2779 | /hello_world/setup.py | 26862ed693c6c5b84a164b735ba795858f3fe536 | [] | no_license | rahul8590/cython-snippets | 5ad4c260054106395b8a67d662de357c33226561 | 8869d1e29d0be5e415cea5fb39f6f72c2141f50f | refs/heads/master | 2021-01-04T14:07:12.950653 | 2013-12-18T05:07:10 | 2013-12-18T05:07:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from distutils.core import setup
from Cython.Build import cythonize
setup(
name = 'Hello world app ',
ext_modules = cythonize("hello.pyx"),
)
| [
"rahul@g3ck0.(none)"
] | rahul@g3ck0.(none) |
dc16d15a4b31c4420ceb6d43c73325fca7e6ed21 | a04ad53e6d0e0bfa1240d4d8b77f2f2439a7992d | /resumable_model/models.py | 9955c0abd5cc229fc6a3658da4a0f6550678b6e8 | [] | no_license | MarcelloCeresini/Ramassin | 4eb0c97858ceb84ea72e55bf5f055947c22284dd | a4153e89f9bed853fefdbde71bbc4ab13e8710c9 | refs/heads/main | 2023-03-31T09:04:40.001341 | 2021-04-03T08:53:09 | 2021-04-03T08:53:09 | 349,140,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,482 | py | import pickle
import os
import tensorflow as tf
from tensorflow.keras.models import load_model
from tensorflow.keras.callbacks import ModelCheckpoint
# from tensorflow.keras.utils.generic_utils import get_custom_objects
from .callbacks import EpochCounter, HistoryLogger
from .utils import merge_dicts_with_only_lists_... | [
"mceresini.97@gmail.com"
] | mceresini.97@gmail.com |
327ad68e4bcae5d1eff685baa4c85bdb0d92863a | b7e390682f019d1856799356496aad1ee381b4fa | /admin.py | 5e3dd1bfa5f725eaabfcc2c51fcd04095d38b581 | [] | no_license | chs8691/myequis | ba59f6f0991f9b8b016410eb5975d9f588b5cc97 | 0e78f055941c0c99bc7b2cbcabba420f97e6b359 | refs/heads/master | 2022-03-10T08:48:47.789984 | 2019-10-03T23:13:14 | 2019-10-03T23:13:14 | 212,697,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | from django.contrib import admin
from .models import Component
from .models import Part
from .models import Bicycle
from .models import Record
from .models import Material
#from .models import Mounting
class RecordInline(admin.TabularInline):
model = Record
extra = 1
ordering = ["-date"]
class BicycleAdm... | [
"chs8691@mailbox.org"
] | chs8691@mailbox.org |
500e560f98594b47a9c7e0c522cb853259a51bde | 961e79f77cbe71b6d7f18c5ccebef961e54a42ba | /routes.py | 3a35df7a40b0c783de432a9a3069fbd6c235ced1 | [] | no_license | tdbr26/flask-demo | 2cbe823b7d9d041133fe5af44b0385133368a20a | 700fec5fb99d43b0e3eab254557e5817794d8462 | refs/heads/master | 2021-01-10T02:55:26.981875 | 2015-11-12T01:32:30 | 2015-11-12T01:32:30 | 45,765,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | from flask import Flask, render_template, request, session, redirect, url_for
from models import db, User
from forms import SignupForm, LoginForm
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']='postgres://localhost/flaskdemo'
db.init_app(app)
app.secret_key = "development-key"
@app.route("/")
def inde... | [
"thabitreid@thabits-Mac-mini.local"
] | thabitreid@thabits-Mac-mini.local |
ef3f05716502649f5e7d9ddc4e67ec5912e7270a | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs28/gs28/asgi.py | e1f1a15c27ff9ec6f8b42b0f1666ea6af01dd283 | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for gs28 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
44ea4283cb706f70dc5b653285510c61915d9fcb | 931a3304ea280d0a160acb87e770d353368d7d7d | /vendor/swagger_client/models/get_characters_character_id_mail_labels_ok.py | c6952fb75c441a4204eea1c255bb24fb9afe18e6 | [] | no_license | LukeS5310/Broadsword | c44786054e1911a96b02bf46fe4bdd0f5ad02f19 | 3ba53d446b382c79253dd3f92c397cca17623155 | refs/heads/master | 2021-09-08T00:05:26.296092 | 2017-10-24T07:01:48 | 2017-10-24T07:01:48 | 105,143,152 | 0 | 1 | null | 2017-11-03T14:29:38 | 2017-09-28T12:03:19 | Python | UTF-8 | Python | false | false | 4,288 | py | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online
OpenAPI spec version: 0.6.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class GetCharactersCharacterIdMailLabelsOk(object):
"""
... | [
"cyberlibertyx@gmail.com"
] | cyberlibertyx@gmail.com |
11a7ba57ef33455617ff1a65b1212ef14b285268 | c3deb375f4bed4c95836f193b2676bc5fb7acfb8 | /code/webservice_emergency/main.py | 218de706b29fd72c9c89715f4c26f82632f4f6ad | [] | no_license | sagargueye/projet_scientifique_s7 | feff3713c62dff737299e9046721b9fef192d6ae | e7e4e7a7220169749d3098f3f663540e29479c36 | refs/heads/main | 2023-02-18T02:22:04.229352 | 2021-01-16T10:30:43 | 2021-01-16T10:30:43 | 330,129,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,086 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import copy
import mysql.connector
import sys
import web
import json
import datetime
HOST = "127.0.0.1"
USER = "root"
PASSWORD = "root"
DATABASE = "bd_simulator"
urls = (
'/get_camions/', 'list_camions',
'/get_incendie/', 'list_incendie',
'/get_intervention/'... | [
"gueyesagar97@gmail.com"
] | gueyesagar97@gmail.com |
56658b1b204f9655fbd8f8276cc516986cabee06 | 3e6dffad73b8d5024024b52b044c57a05e7e9655 | /assets/2019-11-30/commondb_server.py | 6b08cb78bef355870da187cefdbe820cdc3509bc | [
"MIT"
] | permissive | dhilipsiva/talks | 07f33b162d8db6e20e3d5974576d71c273629187 | 05581b6b8fdd0598d4ffed4bf75204d718719ed9 | refs/heads/master | 2022-08-05T12:27:39.932612 | 2022-07-21T07:43:36 | 2022-07-21T07:43:36 | 68,734,565 | 5 | 3 | MIT | 2021-07-30T11:24:12 | 2016-09-20T17:05:44 | Python | UTF-8 | Python | false | false | 1,022 | py | from concurrent.futures import ThreadPoolExecutor
import grpc
from grpc_opentracing.grpcext import intercept_server
from grpc_opentracing import open_tracing_server_interceptor
from github_pb2 import Reply
from utils import get_config, wait_for_termination
from github_pb2_grpc import CommonDBServicer, add_CommonDBSer... | [
"dhilipsiva@pm.me"
] | dhilipsiva@pm.me |
0fc08ad397132ddd865c40d67745ef14e80eacfd | 7c4f821117e9d9bc99f2b1f140b073908264e8fd | /aula12/exercise5.py | d270f97b91ca2804a5d14612d3e6eead0ebd20d0 | [] | no_license | bsadoski/entra21 | d963785d8f779e0b17ae9a6148765f4526fa4ea5 | 5d9f9da71363b832074623a93b897ababe1aced7 | refs/heads/main | 2023-02-16T23:19:47.764653 | 2021-01-18T20:17:59 | 2021-01-18T20:17:59 | 309,852,651 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from random import randint
from collections import Counter
lancamentos = []
for i in range(1, 100):
dado = randint(1, 6)
lancamentos.append(dado)
resultado = Counter(lancamentos)
print(resultado)
for jogada, ocorrencia in resultado.items():
print(f'o lado do dado {jogada} ocorreu {ocorrencia} vezes') | [
"bruno_sadoski@hotmail.com"
] | bruno_sadoski@hotmail.com |
dc96d76d6f1a7ed04bd000b67cf9ab0015f21eff | 07103adc11ab04dcec7622e389f442c7387ee427 | /deepvq_BS_penalty_scipy.py | 5e2fc8b842bc45e3526b2de52daaf91e5cbc481a | [] | no_license | intellhave/BinarySolver | d1487a876beeaf1bbd7a060d8ad117cf9314ab08 | e4978bdd631562c76364e506304055a4dcf92d4f | refs/heads/master | 2020-03-09T17:00:05.738954 | 2018-05-14T03:51:32 | 2018-05-14T03:51:32 | 128,899,234 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,731 | py | import pdb
import numpy as np
from scipy.optimize import minimize
from scipy.linalg import norm
def BinarySolver(decoder_params, x_batch, batch_size,latent_dim,currentH,currentB,rho, maxIter, sigma=100):
"""
Solve optimization problem with binary constraints
min_x func(x)
s.t. x \in {-1,1}
... | [
"intellhave@gmail.com"
] | intellhave@gmail.com |
2ee5f7ff3ea4f9bcaa9b24ea8deedb87e6378a5b | 7a81a6cb525b00716bfe8594d250d46e01a09d5b | /_help/helpPython/iterator.py | 3ba6d9bd68ae0e8630cb74745b4e01473e800171 | [] | no_license | LichaDC/GitProgramming | 84de8543190269bbcbde08b538b51ceba85ccb1f | e99c30bcabee8350406d708943f717ab74739ebd | refs/heads/master | 2020-03-28T07:54:03.684310 | 2018-11-15T20:23:41 | 2018-11-15T20:23:41 | 147,595,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | myList = [1, 2, 3, 4]
# get an iterator using iter()
myIter = iter(myList)
# iterate through it using next()
print(next(myIter))
print(next(myIter))
# next(obj) is same as obj.__next__()
print(myIter.__next__())
print(myIter.__next__())
# This will raise error, no items left
next(myIter)
| [
"lisandrodc06@gmail.com"
] | lisandrodc06@gmail.com |
e5ebec423cf9305cfe7f42e21ce98f7913c045a6 | 1d3b883983325a73b0314f0a5da163e06e2195da | /image_process.py | 060e9af64c392c76c8766b26633b8a2889059388 | [] | no_license | veya2ztn/FFTtracking | 9214bf20f48491f6c48e74ec11399288eb5f2ef4 | da477ca531010b28aa49865c6a374cc573650e09 | refs/heads/master | 2020-07-24T17:38:36.928969 | 2019-09-18T06:46:30 | 2019-09-18T06:46:30 | 207,998,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,629 | py | import numpy as np
import torch
import cv2
def get_subwindow_tracking(image, pos, model_sz, original_sz, avg_chans, out_mode='torch', new=False):
if isinstance(pos, float):
pos = [pos, pos]
im=image.copy()
sz = original_sz
im_sz = im.shape
c = (original_sz+1) / 2
context_xmin = round(p... | [
"zhangtianning@gmail.com"
] | zhangtianning@gmail.com |
bdb8a18180857ccf800b8509da9eed07eb046aca | f74fcf1c565885eb15dc87504721dcf90cc0d4ea | /google_helpers/sheets/sheets_support.py | 21aaa324f152d87664426dab860ea322a2be834a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ImagingDataCommons/IDC-Common | 32edd41ce88cfc1981442022c715f0edbec594c8 | c489cfa362f7412cb3a2a64f3ddd0a30cc6d6930 | refs/heads/master | 2023-09-05T05:40:02.867594 | 2023-08-29T17:51:49 | 2023-08-29T17:51:49 | 206,376,612 | 0 | 0 | Apache-2.0 | 2023-08-30T17:21:42 | 2019-09-04T17:38:32 | Python | UTF-8 | Python | false | false | 1,242 | py | #
# Copyright 2015-2019, Institute for Systems Biology
#
# 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 ... | [
"spaquett@systemsbiology.org"
] | spaquett@systemsbiology.org |
54f912c316bd7110c007ef2f03a51bad4dcdca24 | 64f593b2aee5652685a992fa097f8453d760be83 | /vagrant/catalog/flaskForms.py | 1c7c0a774e2746e32bcb541b9f45990680e92760 | [] | no_license | ohayamic/fullstack-nanodegree-vm-1 | bfe35f1f38eb75d48d0a6491d148f86a6b987885 | 4d9809f77890e47c70546f9116556ec238138448 | refs/heads/master | 2020-04-20T23:22:54.221751 | 2019-03-18T23:21:50 | 2019-03-18T23:21:50 | 169,166,579 | 0 | 0 | null | 2019-02-04T23:36:49 | 2019-02-04T23:36:48 | null | UTF-8 | Python | false | false | 1,269 | py | from flask_wtf import FlaskForm
from catalog.catalogDB import User
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired, Email, Length, ValidationError
from catalog import db
class LoginForm(FlaskForm):
email = StringField("Email", validators=[DataRequired(), Len... | [
"noreply@github.com"
] | noreply@github.com |
efcc19a6e74e0a6cbe6f000da6badaee9807e99c | 0257e046a3fedcb59ef329e85d7bebfc88897b49 | /surveil/api/controllers/v2/config/checkmodulations.py | c5c83b54b378c27f8429830b2764be97f67978cc | [
"Apache-2.0"
] | permissive | Cloudxtreme/surveil | bc8e8e6638be3ff6ac07e4dbf337f7fd88323d16 | 11cbf5c40cf9f8b890e4cced8fd74e22aeaccd55 | refs/heads/master | 2021-05-28T21:44:31.485564 | 2015-05-06T20:56:39 | 2015-05-06T20:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | # Copyright 2015 - Savoir-Faire Linux inc.
#
# 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 ... | [
"peyre.flavien@gmail.com"
] | peyre.flavien@gmail.com |
10b521f82bc66ef9eca34617899ca120391d14d3 | 00820b522cc16bf996f1ef44a94a2f31989c4065 | /abc/abc144/c.py | 6932b9a69d517fcc35addc7fce7e72fb3b8071b0 | [] | no_license | yamato1992/at_coder | 6dffd425163a37a04e37507743a15f67b29239fc | 6e0ec47267ed3cae62aebdd3d149f6191fdcae27 | refs/heads/master | 2020-08-31T11:17:03.500616 | 2020-06-12T15:45:58 | 2020-06-12T15:45:58 | 218,678,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | import math
INF = 1e12
n = int(input())
cnt = INF
m = math.sqrt(n)
for i in range(1, math.ceil(m) + 1):
if n % i == 0:
j = n // i
cnt = min(cnt, i + j - 2)
else:
continue
print(cnt) | [
"yamato.mitsui.orleans@gmail.com"
] | yamato.mitsui.orleans@gmail.com |
75c80e1240c4b7484191142b451cc2239905cbfd | 40ba3112a116b361673732efc10402a067322ad1 | /PycharmProjects/untitled/Error/DIYError.py | adf55f4e1b8b0fb4049b232aef954deef85589c9 | [] | no_license | oumingwang/----Python | 622be90adffefcab1696bb145b171fa9a8bff5b7 | 003c0b7880de2b9e0737120bc15bf6eaeb7a644f | refs/heads/master | 2020-07-03T03:16:13.687118 | 2017-04-08T16:55:01 | 2017-04-08T16:55:01 | 74,200,264 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | class FileError(IOError):
pass
try:
raise FileError, "Test FileError"
except FileError,e:
print e | [
"474978390@qq.com"
] | 474978390@qq.com |
50b531b433e14ea6d1fc8c3ee981b1f69e1c5c5d | cfb7d4976e3fd018608ff350da8cc0a568255c2b | /1012.py | 215a8113bc1f03c3ebf193216c2c3348c16b6f38 | [] | no_license | andressamesquita/URI-Judge | 30348ed22c0bcaced9a86da0c4ba00112ea26bb1 | 3eae84fef795f1508b43e1b29a0bf77f86741c15 | refs/heads/master | 2020-03-27T06:46:33.061874 | 2018-08-25T22:47:20 | 2018-08-25T22:47:20 | 146,134,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | #-*-coding: utf-8-*-
def main():
entrada = input()
valores_string = entrada.split(" ")
numeros = [float(numero) for numero in valores_string]
A, B, C = numeros
area_triangulo = (A*C)/2
area_circ = 3.14159*(C**2)
area_trapezio = ((A + B)*C)/2
area_quad = B**2
area_retang = A*B
print ("TRIANGULO: %.3f" %area_... | [
"rib.mesq.andressa72@gmail.com"
] | rib.mesq.andressa72@gmail.com |
917ee557f9fe287f3752878d2f57f0990122fb69 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /OA/Akuna/QAkuna_Order Marketing.py | dbf97a7359f5393adf302b66732ef5fea9e7cc95 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,571 | py | import json
import copy
from collections import defaultdict
# Implement the class below, keeping the constructor's signature unchanged; it should take no arguments.
class Company:
def __init__(self, name):
self.name = name
self.own = 0
self.sell = 0
self.buy = 0
def __eq__(self... | [
"564258080@qq.com"
] | 564258080@qq.com |
8afeeb8fb16d3bce58d70f6d8b010165971f44dc | fa031121d664d1a33331fa47420821de5fbf2708 | /flaskblog/routes.py | cd25fee4a009efbfaff2ab1819938377dc3c3fc9 | [] | no_license | princea55/blog-post | 64d69268971a70bd0f6567ccae050defa23f8848 | ae7323c09fe5adac9230c5a95d0a1fc8c14d7408 | refs/heads/master | 2023-01-10T16:14:27.993461 | 2020-11-18T04:58:10 | 2020-11-18T05:00:22 | 313,805,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,334 | py | import secrets, os
from PIL import Image
from flask import render_template, url_for, flash, redirect, request, abort
from flaskblog.models import User, Post
from flaskblog.forms import Registrationform, Loginform, UpdateAccountform, Postform
from flaskblog import app, db, bcrypt
from flask_login import login_user, logo... | [
"princesuriya14gmail.com"
] | princesuriya14gmail.com |
678a035115b9bab5ee37b4008fa8b1f71d3795dc | 91b80ef798cbcdaab7f6ae0be994f5a3b12f1515 | /198.py | 155ed9d04a687a65692c489eeaa6c5e9ef28c808 | [] | no_license | luckkyzhou/leetcode | 13377565a1cc2c7861601ca5d55f6b83c63d490e | 43bcf65d31f1b729ac8ca293635f46ffbe03c80b | refs/heads/master | 2021-06-21T11:26:06.114096 | 2021-03-24T21:06:15 | 2021-03-24T21:06:15 | 205,568,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from typing import List
class Solution:
def rob(self, nums: List[int]) -> int:
prevMax = 0
curMax = 0
for num in nums:
temp = curMax
curMax = max(prevMax + num, curMax)
prevMax = temp
return curMax
| [
"luckky_zhou@163.com"
] | luckky_zhou@163.com |
f4533170a347b6a9994a352819561bd35bafaa6c | 280fab1ce77c007cbaaf4b277bd1b84c853ce4d9 | /2HW2/part2a.py | 8f1a58327f5c026c95dd811bde32fc65a32dfdfd | [] | no_license | pcp135/C-AD | 36f428d7a2525de237d841ea9c44ff0c30d5eb2e | 4525e672e0b7c8baaab41169dee29a6a3e431edf | refs/heads/master | 2016-08-05T00:55:43.802125 | 2013-10-26T22:26:39 | 2013-10-26T22:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | import sys
def nodesToMerge(label):
labels=[]
for i in range(len(label)):
working = label[:]
working[i] = 1-working[i]
for j in range(i+1,len(label)):
working2 = working[:]
working2[j] = 1-working2[j]
labels.append(hash(working2))
labels.append(hash(working))
return set(labels)
def hash(label):
r... | [
"phil@parsons.uk.com"
] | phil@parsons.uk.com |
b639c66079d6978a557070b06e23b9261a1e321c | 883cfaf09d64e003aec100274025e0ed45348e91 | /systems/buda-hate/3_modeling/descrptive_stat/31_ES_descr_stat_model_training.py | b89d01b6eca46d94c3e3625de6f6704b90febd9c | [] | no_license | ChrisBagdon/ap-FakeHate | e57a32be47a3a159b4f63598cf6e08a4b0dbfdd9 | 7e4cc40bd50cbfe7d24cf309915c1268ca3e4f41 | refs/heads/main | 2023-03-27T17:06:46.482528 | 2021-04-01T19:58:23 | 2021-04-01T19:58:23 | 352,123,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,043 | py | #########################################################
# #
# importing packages #
# #
#########################################################
import joblib
import numpy as ... | [
"steinar.graessel@gmx.net"
] | steinar.graessel@gmx.net |
a32ad3c7390782052e0d15a239f6e45437ed713e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_274/ch71_2020_03_09_14_29_38_361917.py | 6ebfb914c1c8014bcdcef462b0fd223be9d837a3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | def esconde_senha(pswd):
n=len(pswd)
return "*"*n | [
"you@example.com"
] | you@example.com |
833bef43af8a0f95c7a90575647b304575e902ec | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-UNIFIED-COMPUTING-COMPUTE-MIB.py | dbf7b723c65e8058719374600bb894515432ab32 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 393,280 | py | #
# PySNMP MIB module CISCO-UNIFIED-COMPUTING-COMPUTE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-UNIFIED-COMPUTING-COMPUTE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:58:42 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Usi... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
930b289dd0953ad05d0561eb5103070a6df984c1 | 7af6e04e460ee34ebc466c81131b055a72e065a0 | /Test/migrations/0005_auto_20210324_2144.py | 137eb6f10520e02cc39b7e659183ece9e6dccb59 | [] | no_license | johanmasih26/crud_ajax_with_django | 718a9fc079c4b904fe23ce30d268aec7c22669f5 | 30b2df43326a9e975dff10e8d7094e4478bac26e | refs/heads/master | 2023-04-05T05:46:47.730976 | 2021-04-05T07:41:07 | 2021-04-05T07:41:07 | 354,755,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | # Generated by Django 3.1.5 on 2021-03-24 16:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Test', '0004_auto_20210324_1843'),
]
operations = [
migrations.RenameModel('hello','ImageUploader')
]
| [
"harryjohn026@gmail.com"
] | harryjohn026@gmail.com |
ca77dfa1890cc2e639dbc2586f6378d943ed725a | e14fac61fb306f7e6318dea20d29ee8975dfaac8 | /codeup/046.py | 833c5d4840a8135286eb97beba6abab2fe6320f4 | [] | no_license | gjeon03/study_ct | 1892a6b5cd3a281c0c87174b60104128ddd11292 | 4b047ced4c6c295a91caf4400b177fb48035acc9 | refs/heads/master | 2023-07-10T23:52:21.125448 | 2021-08-13T15:08:04 | 2021-08-13T15:08:04 | 388,323,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | n = input()
print(int(n)<<1)
| [
"gjeon0321@gmail.com"
] | gjeon0321@gmail.com |
684a78be036566a57baed920e9bd2f9893d67d92 | ff1e1c7ac74281865269a8414ec1b0193d31e4e7 | /Main.py | fb8d7c835da4da229336aef871ea82808f6f49ec | [
"MIT"
] | permissive | davidthomas5412/PanglossNotebooks | 11e3cce1c66e523a12853bb05781e17c4ffaf54a | 719a3b9a5d0e121f0e9bc2a92a968abf7719790f | refs/heads/master | 2020-07-01T11:44:43.487799 | 2017-06-30T00:45:05 | 2017-06-30T00:45:05 | 74,082,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | from pangloss import BackgroundCatalog, ForegroundCatalog, \
TrueHaloMassDistribution, Kappamap, Shearmap
from pandas import DataFrame
# initialize background and foreground
B = BackgroundCatalog(N=100.0, domain=[1.43, 1.4, -1.43, -1.4], field=[0, 0, 0, 0])
F = ForegroundCatalog.guo()
F.set_mass_prior(TrueHaloMas... | [
"davidthomas5412@gmail.com"
] | davidthomas5412@gmail.com |
d358f34d2e8e7a01d396f3d976acceaff7821357 | ecf22cd4f463327c85be6e763f550f933104815f | /news/migrations/0005_auto_20180624_1612.py | 0f9e14b77b3a4e7661b9ccdbfa5558862e5757a5 | [] | no_license | solairedev/gomel-agro-complect | d0205f4381baf083a9bf94791e64193208ca0387 | a77a3f9db4bb88f810e1c7a73859019407b1292e | refs/heads/master | 2022-01-31T06:29:55.831333 | 2019-05-20T09:01:13 | 2019-05-20T09:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-24 13:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('news', '0004_auto_20180328_1816'),
]
operations = [
migrations.AlterModelOptions(
... | [
"victor374288@mail.ru"
] | victor374288@mail.ru |
f93da296293541792f1b857128f8fc420baf3c96 | 94b135b95ddee6df8f9df004fedcddacba58d9b9 | /venv/Scripts/futurize-script.py | a95151cf41d63ae39dafe769311225a727587a0c | [] | no_license | MarcBelleperche/Artemis | 228cda7116af339e7f66c3528eb30a200e03b82d | c1db794f36fb001a0bd26edc654de2cbd4461d82 | refs/heads/main | 2023-03-31T20:34:23.161426 | 2021-04-07T16:59:48 | 2021-04-07T16:59:48 | 337,823,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!E:\Artemis_VA\Artemis\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
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... | [
"marc.belleperche@gmail.com"
] | marc.belleperche@gmail.com |
02854909f946a6698f8c5c170a77719ed9c0e07e | 5f67df4e0d6d82b6877e4f899dd6395850ca3604 | /Hackerrank/LongestCollatzSequence.py | 556052c2b1385fad0a9dcf73cc4ed5c4150d02a6 | [
"MIT"
] | permissive | dfm066/Programming | c27115bffed568fa1fe05a5448a7a82042451415 | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | refs/heads/master | 2021-07-03T17:40:22.010361 | 2020-09-14T19:59:03 | 2020-09-14T19:59:03 | 63,838,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import time
t= time.time()
limit = 5000000
collatz = {1:1,0:0}
tmp = []
num = 1
cnt = 0
while 2*num <= limit:
collatz[2*num] = collatz[num] + 1
num *= 2
for i in range(3,limit+1):
if i & 1 and i not in collatz:
tmp.clear()
num = i
while num != 1 and num not in collatz:
... | [
"dfm066@icloud.com"
] | dfm066@icloud.com |
cec6f6ab4f4c062e5b047ed06e2bb4f78d764438 | 25767b30475b1c5860ab6c2de43466ed2a4d23c9 | /python/c04.py | eecd417950826ec89969908994676148f88440d9 | [] | no_license | robertsmukans/DMI | 1402281746011047d46266a9fcb54181dc1221fe | 1bdd3204f4e84dd2c57cd9cdff1cb66771b03fc8 | refs/heads/master | 2018-08-31T08:59:53.253712 | 2018-06-03T18:55:40 | 2018-06-03T18:55:40 | 103,374,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | f1 = open("meta.bin","rb")
f1.seek(0)
f2 = open("data.bin","rb")
S=0
while 1:
b = f1.read(1)
if not b:
break
S = S + ord(b)
f2.seek(S)
a = f2.read(1)
b = f1.read(1)
c = ord(b) ^ ord(a)
print chr(c),
print
f1.close()
f2.close()
| [
"noreply@github.com"
] | noreply@github.com |
bfc96905759dddb3a1e1d364586c7779eb1c0fcf | d6589ff7cf647af56938a9598f9e2e674c0ae6b5 | /clickhouse-20191111/alibabacloud_clickhouse20191111/client.py | a17bbd2e8b2d107874e65eb08969dd3eae30d01f | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python-sdk | 55028a0605b1509941269867a043f8408fa8c296 | cddd32154bb8c12e50772fec55429a9a97f3efd9 | refs/heads/master | 2023-07-01T17:51:57.893326 | 2021-08-02T08:55:22 | 2021-08-02T08:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110,610 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from typing import Dict
from Tea.core import TeaCore
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilCl... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
1df0232ea1abf7d87ad033e4f42f641e57851c46 | 8f0fee459b33524b854be475a71d6d25786acc91 | /lifemonitor/integrations/github/app.py | 9b739a578dc84d5683bf1305f2c995f4c975f9bd | [
"MIT"
] | permissive | crs4/life_monitor | 77d06a81b974ed413a786a6949cc55b78c602afb | 6e5ea4da0e8b937c71c196dadfea565696006a49 | refs/heads/master | 2023-09-04T23:39:01.160979 | 2023-07-03T07:37:49 | 2023-07-03T07:37:49 | 247,062,841 | 12 | 6 | MIT | 2023-09-06T15:49:06 | 2020-03-13T12:08:43 | Python | UTF-8 | Python | false | false | 15,141 | py | # Copyright (c) 2020-2022 CRS4
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribut... | [
"kikkomep@crs4.it"
] | kikkomep@crs4.it |
faa9d8c58e886e847824a2b2a462460cd3c720d1 | 84be17114186d7f28c4238cd5fcddd2fd649bb77 | /src/JSON-to-MWS.py | 022ff3d5a7399913e40ed8683cbf48e8c9108ac8 | [] | no_license | RASMiranda/JSON-to-MWS | 396740372f8f060818f3611c0636c6eda900d335 | c631e8c945d489f6393c8e6024415ac6a2bc9e9c | refs/heads/master | 2016-09-06T19:57:36.231843 | 2015-04-13T11:32:19 | 2015-04-13T11:32:19 | 26,713,591 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | #!/usr/bin/env python
"""
JSON-to-MWS.py
Given a mtgjson set array converts it into mws spoiler format and ouputs
into a txt file
Author: Rui Miranda
Usage:
python JSON-to-MWS.py http://mtgjson/seturlexample [output]
"""
from __future__ import print_function
import requests
import re
import os
import... | [
"34.ruimiranda@gmail.com"
] | 34.ruimiranda@gmail.com |
7c4624679b56a92e566f8525561a6d268d4791f7 | e0b81ac782cb6b5b96f49914ac5707971d31d5b4 | /week14/todo_list/main/urls.py | 0f9b60b7a5903820284a2eb17db67cb3f931aec3 | [] | no_license | balnur00/djangoSpring2020 | 33ba23472715aa143e2a9b1ff785730c2778a1fd | ca3500875a339601a44dc105bc946d72e4d143eb | refs/heads/master | 2021-09-29T05:44:34.941331 | 2020-04-21T10:26:29 | 2020-04-21T10:26:29 | 237,578,070 | 0 | 0 | null | 2021-09-22T19:45:38 | 2020-02-01T07:19:09 | Python | UTF-8 | Python | false | false | 692 | py | from rest_framework.routers import DefaultRouter
from django.urls import path
from main import viewsets
from .views import BusTaskListApiView, BusTaskListDetailApiView, BusTaskApiView, BusTaskDetailApiView, ReceiverApiView
urlpatterns = [
path('business/', BusTaskListApiView.as_view()),
path('business/<int:pk>... | [
"balnur00@mail.ru"
] | balnur00@mail.ru |
a8ba051393989f797716031f25926df19131f972 | e9a0f269be7fae722a0c6f7141041ad8a25bf845 | /lib/python3.7/linecache.py | 1ca6ab4370857225c2eb44e8bfa36352244fdb19 | [] | no_license | Brauliongon/Django_test_1 | 8fa2a192e11b2b1f872fce6ed29ef51fbbfe17b0 | 1d8ea1d7a383b856d448d132019262cacd2f5469 | refs/heads/master | 2020-07-25T23:45:50.676563 | 2019-09-14T16:57:45 | 2019-09-14T16:57:45 | 208,458,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | /Users/BraulioBolanos/anaconda3/lib/python3.7/linecache.py | [
"BraulioBolanos@MacBook-Pro-de-Braulio.local"
] | BraulioBolanos@MacBook-Pro-de-Braulio.local |
76c2be24cd3471acd4c320fa2ff5671d516aa254 | 49ba5356bdc5df7dd9803b56fe507c5164a90716 | /unique-number-of-occurrences/solution.py | 8947b64feeaba863e1fa0f2965c3530126347f56 | [] | no_license | uxlsl/leetcode_practice | d80ad481c9d8ee71cce0f3c66e98446ced149635 | d8ed762d1005975f0de4f07760c9671195621c88 | refs/heads/master | 2021-04-25T18:12:28.136504 | 2020-03-11T07:54:15 | 2020-03-11T07:54:15 | 121,472,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | class Solution(object):
def uniqueOccurrences(self, arr):
"""
:type arr: List[int]
:rtype: bool
"""
m = {}
for i in arr:
if i in m:
m[i] += 1
else:
m[i] = 1
return len(m.values()) == len(set(m.values()))... | [
"linsl2018@163.com"
] | linsl2018@163.com |
85227994c68d9c045abef7afe0d47e2d36b70bfb | 3b2a6d06e78aaeb37543ff940e3126cbd239dd12 | /cropCharImage.py | 683ca4a70cbb5a52195a174035e888cb50a2edca | [] | no_license | bbc0213/myScripts | eeb5ce732949d821f60e0ca75745e6aa4c66956b | 6bea82be7e21b68aaf461d63bb617fe2b3d2bb1e | refs/heads/master | 2020-04-15T03:50:55.632116 | 2019-03-14T07:17:51 | 2019-03-14T07:17:51 | 164,362,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,823 | py | #!/usr/bin/python
import os
import sys
import errno
import zipfile
import re
import datetime
import copy
from random import randint
from PIL import Image
#from lxml import etree as ET
import xml.etree.ElementTree as ET
#from xml.dom import minidom
def mkdir_p(path):
try:
os.makedirs(path)
except OSErr... | [
"noreply@github.com"
] | noreply@github.com |
14db6151d1d5e8efda132f8a532188ffbae387d4 | ad11d343b0da8cb46be7ac40796b128eb3586085 | /app _.py | fb9bb6eb0e47ab5cd960c3fa10e481e19daefdd8 | [] | no_license | Ephmuya/-africado | 25a26746923f56d400f5c76e7aedfecced19d896 | 6fb32c1e0daab43cc4d07fc93328ec9d9bf0888a | refs/heads/master | 2022-12-29T03:11:38.719682 | 2020-10-17T15:36:20 | 2020-10-17T15:36:20 | 304,890,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from flask import Flask, request, render_template
import pandas as pd
app = Flask(__name__)
@app.route('/upload', methods=['GET', 'POST'])
def upload():
if request.method == 'POST':
df = pd.read_csv(request.files.get('file'))
return render_template('upload.html', shape=df.shape)
return render_t... | [
"ephmuya@gmail.com"
] | ephmuya@gmail.com |
125c85f29e3af70d205fb27c73b5585e75d79932 | ac49698bb580417dc37d93be8a3353fa95c06ddb | /src/nussschale/log.py | f91d9189f424c1e700b09d134608b303e91fa8d6 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | RealFloorIsJava/KgF | 771a251555c07a7bc707a899492773f3a7f259f4 | 7f7737923e5d8441bbc65cafedf29db14e750860 | refs/heads/master | 2022-01-10T06:50:41.475835 | 2019-06-17T09:44:57 | 2019-06-17T09:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,046 | py | """Part of Nussschale.
MIT License
Copyright (c) 2017-2018 LordKorea
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, mod... | [
"31963040+LordKorea@users.noreply.github.com"
] | 31963040+LordKorea@users.noreply.github.com |
b5cc4ae9e657917dced9d806724c0a4c78abb181 | 3aa6ea85cb0b9b5aac4b739a2fc819573b547508 | /paper_figure_scripts/in_vs_out_deg_PGPA.py | a6d248005da44ffea3c29f8b03937e7faaa0dd4c | [] | no_license | wronk/dbw | 6b779db74a045e2b885bdc1e181161218a9e6a92 | 77f17f52bace6543aa7ed6386003de993744f08a | refs/heads/master | 2020-05-19T08:48:16.898453 | 2015-10-28T19:29:37 | 2015-10-28T19:29:37 | 23,373,650 | 1 | 2 | null | 2014-11-14T23:41:42 | 2014-08-27T02:07:24 | Python | UTF-8 | Python | false | false | 5,452 | py |
import numpy as np
import matplotlib.pyplot as plt
from random_graph.binary_directed import biophysical_indegree, biophysical_reverse_outdegree
from network_plot.change_settings import set_all_text_fontsizes, set_all_colors
from extract.brain_graph import binary_directed
import brain_constants as bc
import color_... | [
"sindre.henriksen.09@aberdeen.ac.uk"
] | sindre.henriksen.09@aberdeen.ac.uk |
c7473e0b86b77ea6781aa54b3063668f7f9695b3 | 846c067f53006d18caa467997b2143ae4df50519 | /config/config.py | efbc2a7e2fd6de4de26c10e551251379b239c5c8 | [] | no_license | radusuciu/dancealytics | 7e791d9732c8a19f3b6df2f61bb2837360cf4c65 | 7246ab8a32f2b7cbf7a42e08605e58c4a61b8a38 | refs/heads/master | 2022-12-13T23:12:54.065740 | 2017-07-14T02:21:49 | 2017-07-14T02:21:49 | 97,040,963 | 0 | 0 | null | 2022-12-08T00:01:27 | 2017-07-12T18:38:53 | JavaScript | UTF-8 | Python | false | false | 1,377 | py | """Main configuration file for project."""
import yaml
import os
import pathlib
PROJECT_NAME = 'dancealytics'
PROJECT_HOME_PATH = pathlib.Path(os.path.realpath(__file__)).parents[1]
# debug is true by default
DEBUG = bool(os.getenv('DEBUG', True))
_secrets_path = PROJECT_HOME_PATH.joinpath('config', 'secrets.yml')... | [
"radusuciu@gmail.com"
] | radusuciu@gmail.com |
135d9bdab62c878aefee2d59c799173e4e70c9c0 | 2c95eb88d7f30855bf277ade70bdb77caa95a38e | /exercism/python/high-scores/high_scores.py | b5784d4213eebb477a6c627cfdc5b31defd5db55 | [
"LicenseRef-scancode-public-domain"
] | permissive | shanavas786/coding-fu | 3fbf48638e8d44a13ab8c44b5658201880ffca5c | 2f29781ab793b5932a951259afffbbe0078e8a8a | refs/heads/master | 2021-06-11T09:33:58.253834 | 2021-05-31T02:46:07 | 2021-05-31T02:46:07 | 167,407,087 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | class HighScores(object):
def __init__(self, scores):
self.scores = scores
def latest(self):
return self.scores[-1]
def personal_best(self):
return max(self.scores)
def personal_top(self):
return sorted(self.scores, reverse=True)[:3]
def report(self):
best... | [
"shanavas.m2@gmail.com"
] | shanavas.m2@gmail.com |
024b849de973bb79f3dd438ad4f54759176af23b | d883df1e79fcb68e0141e41e1dfbf0e3efc42a86 | /unknown/sos.py | 56965567f7023fe6bb1b8c4be82c5abe40c4b2d8 | [] | no_license | gamesguru/hackerrank-interview-prep | bfb0121590b93e412295c8e70544d48e9fdaf034 | cdd0b894e35cf20b5528a9649d43d3d5bdd66e92 | refs/heads/master | 2023-08-22T16:27:42.085794 | 2021-10-19T21:13:31 | 2021-10-19T21:13:31 | 417,189,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #!/bin/python3
# Complete the marsExploration function below.
def marsExploration(s):
nums = [3 * i for i in range(len(s) // 3)]
arr = [s[i : i + 3] for i in nums]
n = 0
for e in arr:
# if e == "SOS":
# continue
if e[0] != "S":
n += 1
if e[1] != "O":
... | [
"mathmuncher11@gmail.com"
] | mathmuncher11@gmail.com |
b29aa5044d878b01405681002ab9101cd46d01cd | fc37e64fa743993ac84b71a72633340cd6c2ecd1 | /skct-backend/skctapp/views.py | 8cf65f98cecef9e5f497b06c8ae926da4529eb7c | [] | no_license | Vicky-Raj/skct-backend | b9930f9988086bec9f025c4f94c41e413e3cc519 | 693f6d36bd08820eee5d01bb399ce2c7ed9ef5f6 | refs/heads/master | 2020-06-28T07:34:35.138008 | 2019-08-12T06:48:05 | 2019-08-12T06:48:05 | 200,177,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,860 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from django.core.exceptions import SuspiciousOperation
from django.shortcuts import get_object_or_404
import smtplib
import threading
from .models import *
from django.urls import reverse
import socket
def send_mail(to,subject,text):
... | [
"noreply@github.com"
] | noreply@github.com |
adb975e6cd0cb85a78862491f335c05367dda310 | d12eb4abed21d444da5a3f97987060852dc03aa8 | /usoregex.py | 06b0f04e76f76d60ca7f3134c6128d5a9bcb2c37 | [] | no_license | AlejandroTZ26/Programacion | 5e292fa4d9e8a964f84b514df9ab211d1c6317e4 | 5907f553cd8ea91b8a70974ca1e9f5f78e9561f3 | refs/heads/master | 2021-01-16T15:18:25.266836 | 2020-05-22T21:32:28 | 2020-05-22T21:32:28 | 243,165,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Pregunta un dato hasta que sea correcto, haciendo validaciones usando
# expresiones regulares.
# Importa el módulo requerido para usar Regular Expressions.
import re
def main():
# Infinty Loop - Itera hasta que se presenta un break
# Estará preguntando el dato, mientras no cumpla con el patrón de la
# expesió... | [
"hedder2001@gmail.com"
] | hedder2001@gmail.com |
cec3a985e7ce8c9aa91b159664568dd89362fb14 | ab621c65fc91f5194c4032d68e750efaa5f85682 | /docline_sequence/models/sale.py | 56ef1d787c8c291ba4c97ac9796b71da170e942c | [] | no_license | pabi2/pb2_addons | a1ca010002849b125dd89bd3d60a54cd9b9cdeef | e8c21082c187f4639373b29a7a0905d069d770f2 | refs/heads/master | 2021-06-04T19:38:53.048882 | 2020-11-25T03:18:24 | 2020-11-25T03:18:24 | 95,765,121 | 6 | 15 | null | 2022-10-06T04:28:27 | 2017-06-29T10:08:49 | Python | UTF-8 | Python | false | false | 874 | py | # -*- coding: utf-8 -*-
from openerp import models, api, SUPERUSER_ID
from .common import DoclineCommon, DoclineCommonSeq
class SaleOrder(DoclineCommon, models.Model):
_inherit = 'sale.order'
@api.multi
@api.constrains('order_line')
def _check_docline_seq(self):
for order in self:
... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
2b9666d905f7455cf20f6e9c84a254364590a459 | 17d350575fdea8ccc0640e83c25ae263f0da1bf9 | /tests/plots/plot1.py | 4c04961a43d0ebe8616c56a382a06492931f57c9 | [
"MIT"
] | permissive | keith-palmer/numerical-solutions-for-ode | 9612a0e75ff34b366fe8b1637e0bdebdb754ffb4 | 14a4ebe4ca27be780528691896505f7b58e3085f | refs/heads/master | 2023-08-07T05:33:35.304203 | 2021-09-23T22:10:01 | 2021-09-23T22:11:34 | 409,086,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from eulers_method import eulers
from runge_kutta_3 import rk3
from runge_kutta_4 import rk4
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 2, 11)
w1 = eulers(func='y-x**2+1', a=0, b=2, y=[0.5], N=10)
w2 = rk3(func='y-x**2+1', a=0, b=2, y=[0.5], N=10)
w3 = rk4(func='y-x**2+1', a=0, b=2, y=[0.5],... | [
"kwpalme3@asu.edu"
] | kwpalme3@asu.edu |
d699f65005232a77e7031d8d4cf5b557251724ae | f983809974ad78d099fc5e8a08038723fdb1d172 | /det3d/datasets/nuscenes/nuscenes.py | 8afeae8a75a41a03cff8fcb08beff274f7f26d13 | [
"LicenseRef-scancode-proprietary-license",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | you4ever/CenterPoint | 169df36e1bfcd9e0efcea37f983b04bddf59a66b | 1a87d2ea18b11801214f41aeb042373364ba99c1 | refs/heads/master | 2023-03-04T11:04:32.251822 | 2021-02-12T18:17:55 | 2021-02-12T18:20:06 | 298,402,953 | 0 | 0 | MIT | 2020-09-24T21:51:22 | 2020-09-24T21:51:21 | null | UTF-8 | Python | false | false | 11,057 | py | import sys
import pickle
import json
import random
import operator
import numpy as np
from functools import reduce
from pathlib import Path
from copy import deepcopy
try:
from nuscenes.nuscenes import NuScenes
from nuscenes.eval.detection.config import config_factory
except:
print("nuScenes devkit not fou... | [
"yintianwei@utexas.edu"
] | yintianwei@utexas.edu |
2c71d9d2dbc01452e839910b462608c72b22032c | 05f2af1d419dc77024a5a6b1692fd8c053913610 | /apps/user/admin.py | 13c6073cc8cb038ae6df522d7ed4e1f21f5e5fa6 | [] | no_license | zqhong-qiyan/MxOnline | a3ef17327b6596fb4e83c204ffcd3d054264754f | 8f1bb931078079b2d80d6fda1731a5e98dc62c87 | refs/heads/master | 2020-03-24T05:54:00.000852 | 2018-12-10T06:27:11 | 2018-12-10T06:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.contrib import admin
from .models import UserProfile
# Register your models here.
| [
"2358636483@qq.com"
] | 2358636483@qq.com |
5f9bd3f574357e4086032aec7e61d62623341ce2 | c59b91482ea23003e055688fdbfb409a6b99c8da | /qanta/guesser/nn.py | c36167748e721fbb6530602b0284bbe0f77a6c37 | [
"MIT"
] | permissive | nadesai/qb | 83a3618227e87fef46680fade3a168585aebb889 | f2dd64499eb66ae409f08eb9f762d4a6b0a7feda | refs/heads/master | 2021-08-24T15:13:23.959664 | 2017-12-08T15:28:33 | 2017-12-08T15:28:33 | 112,909,453 | 0 | 0 | null | 2017-12-03T07:40:36 | 2017-12-03T07:40:35 | null | UTF-8 | Python | false | false | 4,823 | py | from typing import Set, Dict, List
import random
import numpy as np
import os
import pickle
from qanta.util.io import safe_open
from qanta.config import conf
from qanta import logging
log = logging.get(__name__)
def create_embeddings(vocab: Set[str], expand_glove=False, mask_zero=False):
"""
Create embeddi... | [
"ski.rodriguez@gmail.com"
] | ski.rodriguez@gmail.com |
0a06a91180a513b9ca68ae21d038c56fe87d400c | 959478cb50c33baad387bc2e5b5157c551cb8c2d | /g0/goog_parse6.py | c499b60c76506c2639c1d510f1c7ef7050eb37be | [] | no_license | cti97/Python-Browsers | e1724cd4dadcc9f267197abe0952c1c44efa4aca | d22bc6c03212a4cbaffc1cf2368c30b9502142ea | refs/heads/master | 2020-04-14T12:34:47.198919 | 2011-06-20T17:14:34 | 2011-06-20T17:14:34 | 1,924,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,340 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib2
import urllib
import re
import time
import sys
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
p_start = 10
p_end = 20
i=0;
for arg in sys.argv:
i = i + 1
if (i==2):... | [
"catalinist@gmail.com"
] | catalinist@gmail.com |
dd261860773354feeb95b73b9633735516f0764a | 9cd58199cc2afdbc09272f74db63899d0394cbfa | /angry.py | e0d28313b55660b47da6d04ca1b264b360fb6328 | [] | no_license | bpanguluru/usaco-python-bronze | 6ae3304e800518fd7ab1210e72b6972a6abef205 | fd2edcb4736b197f805125efa33fcf1572f67927 | refs/heads/main | 2023-01-31T11:47:12.730797 | 2020-12-01T23:58:56 | 2020-12-01T23:58:56 | 317,698,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py |
with open("angry.in","r") as f_in:
N = int(f_in.readline().strip("\n"))
positions = [int(x) for x in f_in.read().strip("\n").split("\n")]
def blast(source,distance):
global done
target = []
for s in source:
for t in positions:
if t in done:
continue... | [
"noreply@github.com"
] | noreply@github.com |
1c49e49775f591c722cda30551d7de1e6a30f81f | f32fa8034d46fadb402afb49d800c7dcf8a2f873 | /mms/config.py | 28393afb0b15b64ca7f788cd32561116f1990662 | [] | no_license | xluren/mms | eb75686bcca06d9c2b4f43af18579eaf6b774a6c | c4048c0aa333e6891b0abc21c0b36119702b83a6 | refs/heads/master | 2016-09-06T00:39:10.075443 | 2015-04-08T15:50:26 | 2015-04-08T15:50:26 | 32,262,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | class Config(object):
DEBUG=False
SQLALCHEMY_DATABASE_URI='sqlite:////tmp/sql_test.db'
CSRF_ENABLED=True
CSRF_SESSION_KEY="secret"
SECRER_KEY="hello secret key"
class MysqlConfig(Config):
SQLALCHEMY_DATABASE_URI='mysql://hello:hello@10.210.71.145:3306/sqlalchemy'
DEBUG=True
class TestConfig(Config):
DEBUG=True
| [
"xluren@126.com"
] | xluren@126.com |
a1e637528b548281fc1a57dea43afe962e9a6b69 | 6de9249353dcb64cc042498c13e3ec2ab89e35d1 | /ShuoShiJianKang/Lib/__init__.py | 91b688e9643c54795641cf362f75fb1286d161f7 | [] | no_license | zhusenlin-ex/ShuoShiHealthInterFace | 3e74df3b99390582b458df820578786331156998 | 22e7f64d8130017aadf30e41f4dd30bd6210120b | refs/heads/master | 2023-07-02T04:10:44.627744 | 2021-08-11T09:43:08 | 2021-08-11T09:43:08 | 394,937,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # -*- encoding: utf-8 -*-
"""
@File : __init__.py.py
@Time : 2020/6/23 15:35
@Author : Forest
@Email : 17349766478@163.com
@Software: PyCharm
""" | [
"17349766478@163.com"
] | 17349766478@163.com |
2da0688afc25cff756d677e933f5e6133941fc2b | f74b803a3fcfd81f309423839c26f79e612e11d8 | /joint/data/pipe.py | ee94b6ed050a5b921a115be3a2e9a8a68b5f802f | [] | no_license | lisp2021/BertForRD | 55b8a2778abfb1d2271d1c77e8526b08060664b0 | 9ce38722ed31154795298f4e67bf0964265f22c0 | refs/heads/master | 2022-12-16T04:35:16.162882 | 2020-09-27T06:08:15 | 2020-09-27T06:08:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,636 | py | from fastNLP.io import Pipe
from transformers import XLMRobertaTokenizer
from fastNLP import DataSet
from transformers import BertTokenizer
from collections import defaultdict
class BiAlignedBertPipe(Pipe):
"""
输出为
target input
int [cls, xx]
"""
def __init__(self... | [
"poemsmileyh@gmail.com"
] | poemsmileyh@gmail.com |
8eb3b7bb4439eb1933fcd7f44aec8526a3b6bebf | 7fd31e2a9a1ad882d4e8e6955afdb4323eb6b6ae | /ajmAxa/drivers/tripFilesConverter.py | 0a2c65a94071cc6261a1044029c80952171d8803 | [] | no_license | ardgal/pymlaxa | c106e667270c071ea2f3630bc285261e41a26f59 | d7d83c6a1574628ab650d25909dfbe5b1829b671 | refs/heads/master | 2021-01-10T13:56:45.117530 | 2016-02-09T03:38:19 | 2016-02-09T03:38:19 | 51,344,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,917 | py | __author__ = 'mcardle'
"""
Routines to convert the raw CSV files into python (numpy) binary files
for faster processing.
File had already been processed by low pass filter
"""
# WARNING: need to adapt to make cross platform for file folders, etc
import os
import numpy as np
import logging
import pickle
import o... | [
"mcardle@iMacArdle.home"
] | mcardle@iMacArdle.home |
03bed537a7c7af629c252cd2ef5b6de518247060 | 5191fac18485dd6055613a5855ce273f455706ab | /Reality_Checks/RC13/helpful_functions.py | aae4fbb09f15228e83d2154929b04dda3d1f232f | [] | no_license | Helblindi/NumericalAnalysis | e6d0056df1f8591f24c495a652f070264a3234f6 | 639d1f3fccc11f0b3e390e57c0402509bc674d57 | refs/heads/master | 2021-09-11T15:20:43.787068 | 2018-04-09T06:30:03 | 2018-04-09T06:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,646 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
def U(points):
"""
Calculates the potential energy of a given orientation of nodes
:param points: single dimensional array representing a node configuration
:return: potential energy of the given node configurat... | [
"mspencersheridan@gmail.com"
] | mspencersheridan@gmail.com |
8a8acaaa7df6f1e72d73b6d79d28ab2aa2ab366d | 3df2b88d409e7beb16516090dde76b723aea7f5e | /myblog/admin.py | 6a0ba3888f52fe57391070e00eef7369eac850d2 | [] | no_license | sjasonma/ostproject | b265a8757dd7b1062f2fc452a20ac3f6cbf5d95f | fe93044aaa21bfd0230e046b9bd7afb3c64ca26c | refs/heads/master | 2021-01-23T11:59:20.341941 | 2013-12-12T20:17:10 | 2013-12-12T20:17:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.contrib import admin
from myblog.models import Blog, Tag, Post
# Register your models here.
admin.site.register(Blog)
admin.site.register(Tag)
admin.site.register(Post)
| [
"sjasonma@gmail.com"
] | sjasonma@gmail.com |
fa228373f0088c6d581d1a8300b1adb8bb7a928b | f5b6429b73cab4f6c7f54086541d07b5f29a0d04 | /k-means_key_word.py | 2dded29bd907431772bbb3971b9b7a3a2840c43e | [] | no_license | matrixgame2018/NLP12 | 3ef95160dceae72c066703923d434fd2560d0559 | 103ff5302105165cf58a7a63a0391c1d89e5576b | refs/heads/master | 2022-03-26T18:33:47.272538 | 2020-01-05T10:38:04 | 2020-01-05T10:38:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 1 18:20:52 2020
3.2 使用词向量和k-means的方法寻找关键词
提示:
1.使用3.1训练好的词向量
2.可使用sklearn等机器学习库
@author: us
"""
import numpy as np
import pickle
import warnings
import pandas as pd
warnings.filterwarnings('ignore')
fileHandle = open('D:/开课吧/NLP11/word2vec_File.f... | [
"noreply@github.com"
] | noreply@github.com |
811f19e555af506fddbc92be3a4f88e97786027d | 2b2b41b462b1a1eadc7f0d45eb24e78436c93234 | /run_expts/explore/train_zoo.py | b06aeda1790f7cac54908276c2d9af7152c14837 | [
"MIT"
] | permissive | kikyoiii/Data_Assimilation | 153e685044422214e7a02ee700d88ab684034a2c | b4d43895229205ee2cd16b15ee20beccb33b71d6 | refs/heads/master | 2023-05-04T13:06:25.971315 | 2021-01-07T09:45:40 | 2021-01-07T09:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,895 | py | """File to run elements of pipeline module from"""
from pipeline.settings import config
from pipeline import TrainAE
from pipeline.settings.CAE_configs import ARCHITECTURES as architectures
TEST_INIT_ONLY = False
#I am seeing Batch norm performing much worse than non bathc norm.
# I have a suspicion this may be beacus... | [
"julianmack@hotmail.co.uk"
] | julianmack@hotmail.co.uk |
2697b5566c74af4f57efbe66d7c4b16078c6dbb4 | 2e4ea01ecefa389b0894d60a61c956b293c7ce24 | /first/venv/Lib/site-packages/auxiliary/funcs.py | 2598e66a58551916bf2137a097f1897f1278d75b | [] | no_license | anndrozd4321/diplomchik | b24fcd4fc0b5c57416540459d18eb5a105c8bf3f | cfd67fc1ce8003670db3666e2598cc4f0f3c7210 | refs/heads/master | 2023-05-31T08:17:55.451502 | 2021-06-01T17:35:43 | 2021-06-01T17:35:43 | 372,907,977 | 0 | 0 | null | 2021-06-05T21:44:50 | 2021-06-01T17:15:44 | Python | UTF-8 | Python | false | false | 5,843 | py | from collections.abc import Iterable, Iterator, Sequence, Sized
from itertools import chain, islice as _islice
from typing import Any, Optional, cast
from auxiliary.types import _F, _T
def const_len(func: _F) -> _F:
"""Decorates a function to make sure all sized arguments are of the same length.
:param func... | [
"8729194@gmail.com"
] | 8729194@gmail.com |
10ee3a79215305ca731b17917124885015e4fff5 | bf50d48edd0aaeb251aeb6fce0cdd609abca845b | /blogger/util/lru.py | 4589bfb414abdb37cc642ac9e082da15e2e1436d | [
"Apache-2.0"
] | permissive | Yeolar/blogger | 6fd97497eb3cef1048a1a74ee0d7d8564f6592b1 | 0f14a992cd226b15f9fb01f3970f3e802dee3415 | refs/heads/master | 2020-03-23T02:46:32.080193 | 2018-08-11T15:18:56 | 2018-08-11T15:18:56 | 140,991,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,406 | py | # coding: utf-8
"""
https://github.com/stucchio/Python-LRU-cache/blob/master/lru.py
"""
from collections import OrderedDict
from time import time
def lru_cache_function(max_size=1024, expiration=15*60,
key=None, arg_start=0):
"""
>>> @lru_cache_function(3, 1)
... def f(x):
... ... | [
"yeolar@gmail.com"
] | yeolar@gmail.com |
41361c51e8f57e31cac40162b9cc430cf549bbce | 60c9701342ca4355b17c949470bae6a4aad187d9 | /scripts/python/prog_with_mosh/house_sale.py | 7dad1d926d494ca06d163e4956784a79e1230a60 | [] | no_license | juhiiyer/scripts | 1f5cc95a38154ea1addc43c11284f340f01cb2d9 | 9ac8f4652147da43cb22346800c84983b08449d6 | refs/heads/master | 2022-01-28T18:57:58.712568 | 2022-01-16T12:59:34 | 2022-01-16T12:59:34 | 81,440,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | #!/usr/bin/python3.7
price_of_house = 1000000
credit_good = False
ten_per_price = 1000000*10/100
twenty_per_price = 1000000*20/100
if credit_good:
print('You only have to pay 10per i.e $%s'%(ten_per_price))
else:
print("You have to pay 20per i.e $%s"%(twenty_per_price)) | [
"juhiiyer@gmail.com"
] | juhiiyer@gmail.com |
391053f155a0c7fe44b5bdddb2c4f93f2fa2dd38 | 1c91439673c898c2219ee63750ea05ff847faee1 | /configs/vision_transformer/vit-large-p16_ft-64xb64_in1k-384.py | 5be99188bfe0fbbce2de927c9d9c55ed74131d2f | [
"Apache-2.0"
] | permissive | ChenhongyiYang/GPViT | d7ba7f00d5139a989a999664ab0874c5c9d53d4d | 2b8882b2da41d4e175fe49a33fcefad1423216f4 | refs/heads/main | 2023-06-08T00:10:07.319078 | 2023-05-26T15:52:54 | 2023-05-26T15:52:54 | 577,075,781 | 78 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | _base_ = [
'../_base_/models/vit-large-p16.py',
'../_base_/datasets/imagenet_bs64_pil_resize_autoaug.py',
'../_base_/schedules/imagenet_bs4096_AdamW.py',
'../_base_/default_runtime.py'
]
model = dict(backbone=dict(img_size=384))
img_norm_cfg = dict(
mean=[127.5, 127.5, 127.5], std=[127.5, 127.5, 1... | [
"chenhongyiyang@Chenhongyis-MacBook-Pro.local"
] | chenhongyiyang@Chenhongyis-MacBook-Pro.local |
88064737146f8486c48bb2156213112e065c2bf0 | 74698be74d244ebbabcb0b3cf17ebed26adfa37c | /official/modeling/progressive/trainer_test.py | 0dae36b770f956b6e57d931152bd5528377b1bd7 | [
"Apache-2.0"
] | permissive | lfads/models | aa75616fee2476641aa98ca1cbdce7e5d27a9aff | fd700f0cb2e104544c445d9fbf3991d8388ff18a | refs/heads/master | 2021-01-25T13:50:55.423010 | 2021-01-05T18:27:01 | 2021-01-05T18:27:01 | 123,619,512 | 16 | 9 | Apache-2.0 | 2021-01-05T18:27:02 | 2018-03-02T19:07:50 | Python | UTF-8 | Python | false | false | 9,150 | py | # Copyright 2020 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
3405f4b929c2d44498b6528877324da5263ad60d | 81ee44f440d50dba726ea51f7eedf3c1c2f33459 | /deploy_tools/fabfile.py | f680f95d06a81d10cc9a4290ec93e14d1860f0db | [] | no_license | gmcavalheiro/ToDoList | e07069a98e9a36b480d4a5639a08fda23bde0788 | 7de5f692b29d2afc76eac8940b47af0dcd0343b6 | refs/heads/master | 2020-06-18T13:02:37.049289 | 2018-07-18T18:52:23 | 2018-07-18T18:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 1,900 | py | import os
from fabric.api import env, run, put
REPO_URL = "git@github.com:Akay7/ToDoList.git"
env.user = 'todo_list'
env.hosts = ['todo.crazyrussian.pro']
def update(branch="master"):
source_folder = "/home/todo_list/sites/ToDoList/"
# latest source
_get_latest_source(source_folder, branch)
# backe... | [
"egor@crazyrussian.pro"
] | egor@crazyrussian.pro |
29f9bfb8f7ed4611d558d1afb005c01db9d9448d | 7d798b9c9a9d9d3404452373aac6f24876e14d86 | /qa/rpc-tests/p2p-acceptblock.py | 48094270b73c7429fcbe21de275fb3875d2a0835 | [
"MIT"
] | permissive | phaseproject/phase | e6b735b97a2e5886f58b8fec9ee6d86b38109ccf | d99a36cb535529e541462fd36eceda513fcc4b90 | refs/heads/master | 2020-03-22T00:01:26.159117 | 2019-03-27T13:31:04 | 2019-03-27T13:31:04 | 139,219,913 | 3 | 7 | MIT | 2019-03-27T13:31:05 | 2018-06-30T04:46:38 | C++ | UTF-8 | Python | false | false | 12,330 | py | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import time
from... | [
"tri282@gmail.com"
] | tri282@gmail.com |
edabe2e38a6b43ffdf43443e068b720351a4d0f5 | f7819b182abe3c249f5f0f6824243a88dabfb9d9 | /multiagent-particle-envs/multiagent/environment.py | 32fc2d5091343037b45ff2b95097bac05fa24de4 | [
"MIT"
] | permissive | zachkeer/Recurrent-Multiagent-Deep-Deterministic-Policy-Gradient-with-Difference-Rewards | aaffa067d15a549c9cb65b3934769b2136055cfb | 5923b76c13bb2567084608b847c6affe9bd6e740 | refs/heads/master | 2021-10-21T10:40:37.770457 | 2019-03-04T07:15:09 | 2019-03-04T07:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,841 | py | import gym
from gym import spaces
from gym.envs.registration import EnvSpec
import numpy as np
from multiagent.multi_discrete import MultiDiscrete
# environment for all agents in the multiagent world
# currently code assumes that no agents will be created/destroyed at runtime!
class MultiAgentEnv(gym.Env):
metadat... | [
"noreply@github.com"
] | noreply@github.com |
c8f2bc34e43d242a403dfb5071ebbf186b8c9426 | 7f4fe878d92e780100dafb7c0a3ec5d1fdeb2fca | /scrapers/uefa_european_cups.py | 74bfc882a90d0e33fbfed178f52bb016d65354e8 | [] | no_license | marcinpawelkot/mgr | d93e99477aba3b07cde2409218f8d4f4d38c7e13 | aa0e273650c68fdb8f597757acfcdfff2dcb16cc | refs/heads/master | 2022-04-26T13:07:21.315241 | 2020-05-03T18:07:16 | 2020-05-03T18:07:16 | 231,332,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import pandas as pd
from bs4 import BeautifulSoup
def uefa_ids(page_content):
table = BeautifulSoup(str(page_content.findAll('tbody')))
trs = table.find_all('tr')
ids = [tr.attrs['data-team-id'] for tr in trs]
teams = [tr.find('a').text for tr in trs]
tds = table.find_all('td', {'class': "table_me... | [
"KotkoKarynki26.10"
] | KotkoKarynki26.10 |
17e352e7db10508228cbf2779af5fae947201cdf | 477682fa385889d69eec976de4f63a1116588c14 | /src/basic/args.py | e2e7a83395b87ca72c3b1c74413779eea3a2bad0 | [] | no_license | lgu-lab/python-examples | d638d9b3abf1f1439709f9a424f91f3976926311 | a1375c47ef437d431d5c502f1b53de3dd7954d5a | refs/heads/master | 2021-01-21T19:45:37.106922 | 2017-05-23T17:15:59 | 2017-05-23T17:15:59 | 92,158,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | import sys
# 2 def same name : no error
def args():
print ( "arguments :" , sys.argv )
print ( "arguments count = ", len(sys.argv))
for idx, arg in enumerate(sys.argv) :
print(" . ", idx, "arg = ", arg)
print("end of loop : idx = ", idx)
#def args():
# print ( "Override the previous foncti... | [
"laurent.guerin@sogeti.com"
] | laurent.guerin@sogeti.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.