blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3767e7c945abe719f74b7ea747b807c21211ab0e | 2f89231a207b89acda1c46aba0b03572fb1da8aa | /main.py | b97b41680283a8d71d2b5d7c127bf9028765e375 | [] | no_license | BentleyJOakes/wordpress_extractor | 8649487562a7113effced06cd06a50ffcf53dff9 | 02891890b801515e2c7873ccb95f62692a354fa3 | refs/heads/master | 2023-01-30T01:50:43.290318 | 2020-12-09T22:18:13 | 2020-12-09T22:18:13 | 297,141,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import argparse
from scrapy.crawler import CrawlerProcess
from WordpressSpider import WordpressSpider
from scrapy.utils.project import get_project_settings
class WordPressExtractor:
def __init__(self):
self.process = CrawlerProcess(get_project_settings())
def parse(self, start_urls):
for su... | [
"bentleyjoakes@gmail.com"
] | bentleyjoakes@gmail.com |
8e7da99e05dbef88db6e0a0a7373afb00d7ae04c | 409a3d53b08f55b6b42643dc68b1eb6daeb54ced | /mars/tensor/fetch/__init__.py | 9fe01c973ada2f630855b79aa187e44692abfcc5 | [
"BSD-3-Clause",
"MIT",
"OFL-1.1",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | sighingnow/mars | 06cbcd8f4aa132a85cdb6c7215c61139636e316b | c7897fbd144d230fff5edabc1494fb3ff44aa0d2 | refs/heads/master | 2023-01-21T12:11:12.469853 | 2019-09-26T09:34:13 | 2019-09-26T09:34:13 | 189,408,668 | 0 | 0 | Apache-2.0 | 2021-01-12T06:19:58 | 2019-05-30T12:19:28 | Python | UTF-8 | Python | false | false | 647 | py | # Copyright 1999-2018 Alibaba Group Holding 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... | [
"chinekingseu@gmail.com"
] | chinekingseu@gmail.com |
49aeb0cb38e74c85e659bb3dc53c57a0ff8bf0bd | c90674d955fe1399c0e99cf34437e583d1cf9fb9 | /application6-webcam motion detector/facedetection/script_face_detector.py | 9e1d75fde667176ccd297abb50c5542b6827f488 | [] | no_license | TrellixVulnTeam/My_python_code_QQZ2 | 556878cbe4f8d6d92e71f48285a6d2439b10ca81 | 8cd8b697d92e1a79cce109baf560eeff27717ce8 | refs/heads/master | 2023-03-19T15:26:35.836114 | 2018-06-29T14:09:06 | 2018-06-29T14:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import cv2
face_cascade=cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
img=cv2.imread("people-6.jpg")
gray_img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
faces=face_cascade.detectMultiScale(gray_img,scaleFactor=1.05,minNeighbors=5)
print(type(faces))
print(faces)
for x,y,w,h in faces:
img=cv2.r... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
6b676d38806dcbf551a398d20280036d0eda2c59 | 4631798b64f2118b7d8e64483a14d7485163358b | /pizzaim.py | 899a6b086debd422f3812a74737846fb8e184845 | [] | no_license | royrowe/python | 288680aba27b8c2d46368250b45fb1672427fe6a | dc7cebd56aa1bee7b2afd91e3a2a4b03f1775ba5 | refs/heads/master | 2020-04-15T20:05:02.587794 | 2019-01-10T02:53:08 | 2019-01-10T02:53:08 | 164,978,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
'''
@File :8.6.1_pizza.py
@Copyright :luoming
@Date :
@Desc :
'''
def make_pizza(size,*toppings):
'''概述要制作的匹萨'''
print("\nMaking a "+str(size)+"-inch pizza with the following toppings:")
for topping in toppings:
print("-"+ topping) | [
"your email"
] | your email |
30d50006b8f6f9c5ac6db3ed6ed1ae6ae151b195 | 312d8dbbf980bf164f210e7935b17dc08d64ff87 | /Model/repeat1_link_prediction_appeared_utilize_existing_attribute/STGGNN/main.py | 97389c092854b118fe55455b3f04168c8e8d4bd8 | [] | no_license | hsack6/OWGP_NBA | 27dafbd6e59c17ce4a66e92132ee56782e2126bf | 56656efb5884cd9f806e476a92c5e6485c71adeb | refs/heads/master | 2023-02-25T09:52:05.165494 | 2021-02-03T12:44:04 | 2021-02-03T12:44:04 | 288,363,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,315 | py | import argparse
import random
import pandas as pd
import torch
import torch.nn as nn
import torch.optim as optim
from model import STGGNN
from utils.train import train
from utils.valid import valid
from utils.test import test
from utils.inference import inference
from utils.data.dataset import BADataset
from utils.da... | [
"yamasaki.shohei@ist.osaka-u.ac.jp"
] | yamasaki.shohei@ist.osaka-u.ac.jp |
9b382f90b9dd2ca867af5f2dcd6efb0088ac50d7 | ae7e36ede21f38fce15d31caf12d235d76276d54 | /tests/component/deb/test_import_dsc.py | 41d081e5dee9013cb645ec380bed530384e7e13e | [] | no_license | pombreda/git-buildpackage-rpm | 08e658847b5608b21f59abb2f7da0ebec333df45 | bd72c30f029c2099ec3ed792b82eefcaedbc79b6 | refs/heads/master | 2020-12-30T19:45:18.763908 | 2015-03-31T15:59:37 | 2015-04-01T06:48:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | # vim: set fileencoding=utf-8 :
#
# (C) 2013,2014 Guido Günther <agx@sigxcpu.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your opt... | [
"agx@sigxcpu.org"
] | agx@sigxcpu.org |
3092838cfce71af4c34d48f0d6bbbaf825881518 | bc565ca3361eb7119a6ff757201e550c20e1ea84 | /Programmers/Lv1/lv1_가운데글자가져오기.py | a1018cc534f5910aa9e173681eb9b1391cd9d583 | [] | no_license | seoyoungsoo/CodingTest-Python | 1f9a3caaa3a424f4f7bd0e01a30664b183aaf5eb | d47cb46dd78f52b7cfa26846e8e77b63a931161e | refs/heads/master | 2023-04-21T20:25:46.663686 | 2021-05-17T12:17:21 | 2021-05-17T12:17:21 | 351,439,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # 가운데 글자 가져오기
def solution(s):
answer = ''
slen = len(s)
if slen % 2 == 0:
mid = int(slen / 2 - 1)
answer += s[mid]
answer += s[mid + 1]
else:
mid = int(slen / 2)
answer += s[mid]
return answer
# testcase 1
s = "abcde"
print(solution(s))
| [
"iulove37@naver.com"
] | iulove37@naver.com |
ab908d2c9e608b5422fd8f8fed60465b577c9043 | 587dbdf730b6cc3e693efc5dca5d83d1dd35ee1a | /leetcode/1-300/25.py | 933cf1a3090bdb12225bd9e756ef2cfc34a4c9f9 | [] | no_license | Rivarrl/leetcode_python | 8db2a15646d68e4d84ab263d8c3b6e38d8e3ea99 | dbe8eb449e5b112a71bc1cd4eabfd138304de4a3 | refs/heads/master | 2021-06-17T15:21:28.321280 | 2021-03-11T07:28:19 | 2021-03-11T07:28:19 | 179,452,345 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # -*- coding: utf-8 -*-
# ======================================
# @File : 25.py
# @Time : 2020/5/16 0:07
# @Author : Rivarrl
# ======================================
from algorithm_utils import *
class Solution:
"""
[25. K 个一组翻转链表](https://leetcode-cn.com/problems/reverse-nodes-in-k-group/)
"""
... | [
"1049793871@qq.com"
] | 1049793871@qq.com |
1f59d88201b38289c14c3124ed3a3da301396303 | 6c8d8b1c5b02e3181efd41b5b227f8905f474fa9 | /clustering/clustering_categorical_peoples_interests/main.py | f024becc456028afc3f32d2de04be24de61c83c5 | [] | no_license | DXV-HUST-SoICT/data_mining_mini_projects | 9203990a620546fb61ee571090ef51e16242054d | c1010a4f39b5b114ad58ae1f3224435c3a84f50e | refs/heads/master | 2022-11-01T08:38:21.141429 | 2020-06-16T12:01:32 | 2020-06-16T12:01:32 | 257,429,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,780 | py | from time import time
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import joblib
from sklearn import metrics
from sklearn.cluster import KMeans, DBSCAN
from sklearn.datasets import load_digits
from sklearn.decomposition import PCA
from sklearn.preprocessing import scale
from sklearn import pr... | [
"vuong.1998@gmail.com"
] | vuong.1998@gmail.com |
74f80006fb22a26cc258bf1607e458416ed5a188 | a34e3d435f48ef87477d3ae13ca8a43015e5052c | /fw2/z.py | 8986497000a50feaecab9d3e7771b510e72b2e36 | [] | no_license | haehn/sandbox | 636069372fc7bb7fd72b5fde302f42b815e8e9b0 | e49a0a30a1811adb73577ff697d81db16ca82808 | refs/heads/master | 2021-01-22T03:39:03.415863 | 2015-02-11T23:16:22 | 2015-02-11T23:16:22 | 26,128,048 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | #!/usr/bin/env python
import os
import sys
import _zstack
def print_help( script_name ):
'''
'''
description = ''
print description
print
print 'Usage: ' + script_name + ' INPUT_DIRECTORY'
print
#
# entry point
#
if __name__ == "__main__":
# always show the help if no arguments were specified
if ... | [
"haehn@seas.harvard.edu"
] | haehn@seas.harvard.edu |
84b57fa7d45db79a5a17f56d0c3453631c7fc231 | ab39a61ff9882e8b06ea6f0d2939dbccb7b75bd5 | /src/views.py | 1c48266966e228cc0569f6405f284cbb62f5bc27 | [] | no_license | ShipraShalini/NotificationCenter | 1be9c0774bfce2d75f3c31bef852150d7cb60281 | e544a53645b411977c19c7317b80cefe35e8f720 | refs/heads/master | 2021-01-19T21:40:35.884152 | 2017-02-26T19:06:43 | 2017-02-26T19:06:43 | 82,533,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | from apscheduler.jobstores.base import JobLookupError
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.views import View
from django.views.generic import FormView
from src.forms import NotificationForm, ModifyNotificationForm
from src.notification_utils import get_notifi... | [
"code.shipra@gmail.com"
] | code.shipra@gmail.com |
4aab842ed7919e90fdd2d4fae1bab975297d211b | fdb9bdc6c4ab2f14ba71e544493706d5e275899f | /fhir/resources/tests/test_questionnaireresponse.py | f4c0b5b5d25ac332f7ef4b157ddba01873270d93 | [
"BSD-3-Clause"
] | permissive | nazrulworld/fhir.resources | 6ae8aea8180c611b0c5050759c6dcdf63e4cb061 | 1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3 | refs/heads/main | 2023-08-30T18:27:27.277249 | 2023-07-03T19:57:06 | 2023-07-03T19:57:06 | 165,297,877 | 256 | 83 | NOASSERTION | 2023-08-24T15:34:05 | 2019-01-11T19:26:41 | Python | UTF-8 | Python | false | false | 69,438 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
Release: R5
Version: 5.0.0
Build ID: 2aecd53
Last updated: 2023-03-26T15:21:02.749+11:00
"""
from pydantic.validators import bytes_validator # noqa: F401
from .. import fhirtypes # noqa: F401
from .. import questionnai... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
a70e6430dc82722e95b7aa187dba90f4f65b2478 | d860a2c1fa8fffc76a9101e4f91cecc80c27e802 | /leetcode/388_Longest_Absolute_File_Path.py | b5c85ee31daee9b4d6fef541d42bacebabeddfca | [] | no_license | heroming/algorithm | 80ea8f00ac049b0bc815140253568484e49c39e3 | 18e510f02bff92bc45cceb7090a79fbd40c209ec | refs/heads/master | 2021-01-19T01:27:31.676356 | 2019-06-09T08:51:16 | 2019-06-09T08:51:16 | 62,952,889 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def show(self) :
it, v = self, []
while it :
v.append(it.val)
it = it.next
print v
class TreeNode(object):
def __i... | [
"heroming7788@gmail.com"
] | heroming7788@gmail.com |
3b7225d69c4c077284ccdc74dae85cbbc5634161 | 37530ffbb3d14cc9c7307fb4b1a276d9d26516dc | /api/migrations/0015_auto_20180831_1847.py | cf66e98858b6394528d104f6c5617359338775ad | [] | no_license | aballah-chamakh/Repair-api | 567a4f81107569bec67072fa598aa76384343752 | 22574a9b69df8d62c5f027146fc21d6abf4b245a | refs/heads/master | 2020-04-10T12:46:32.309178 | 2018-12-09T11:20:07 | 2018-12-09T11:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # Generated by Django 2.0.7 on 2018-08-31 16:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0014_auto_2018063... | [
"chamakhabdallah8@gmail.com"
] | chamakhabdallah8@gmail.com |
2aa60f59119f97962eebc18716cb636a07ebabe5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/dc3335ee46ab9f650b19885e8ade6c7a/snippet.py | cc0b25145b92da727de388094323b861968c2325 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,929 | py | #!/bin/python
from flashtext.keyword import KeywordProcessor
import random
import string
import re
import time
def get_word_of_length(str_length):
# generate a random word of given length
return ''.join(random.choice(string.ascii_lowercase) for _ in range(str_length))
# generate a list of 100K words of rando... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
c164d54f8fd02d4a2faf4337c691176cb3244813 | 11d3f0fcf4a968a6b612f2b85d242cbbbabc7e07 | /services/convert-document/test.py | ba6972a0ac5a807125ea05f14912997425a99161 | [
"MIT"
] | permissive | OpenUpSA/eskom-enquiry | 21d728e6e7ceceed84fe646a439d9aee8c4222d5 | 71dfa8aa00688a83df24a4afaeb9e5639565bbbb | refs/heads/master | 2023-05-11T11:23:18.561070 | 2018-08-24T12:51:55 | 2018-08-24T12:51:55 | 137,739,474 | 0 | 1 | MIT | 2023-05-01T19:47:30 | 2018-06-18T10:40:42 | Python | UTF-8 | Python | false | false | 654 | py | import os
import sys
import signal
import requests
from multiprocessing import Pool
signal.signal(signal.SIGINT, signal.SIG_IGN)
url = os.environ.get('UNOSERVICE_URL')
def request(i):
path = sys.argv[1]
files = {'file': open(path, 'rb')}
data = {'extension': 'docx'}
# print('send request')
res = ... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
1c7a40531f47be5347ae4c77918c932197355793 | 982fac39f5a2232f3976789bbc265cdc2cc8be08 | /bqskit/compiler/search/generator.py | 81d1f4eeac8e6ce93567fb2d735539f9377ff711 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | mtreinish/bqskit | 8516575eef46241e426f78b96d047987e6c9b2df | 3083218c2f4e3c3ce4ba027d12caa30c384d7665 | refs/heads/master | 2023-08-06T20:11:01.278308 | 2021-08-09T19:55:30 | 2021-08-09T19:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | """This module implements the LayerGenerator base class."""
from __future__ import annotations
import abc
from typing import Any
from bqskit.ir.circuit import Circuit
from bqskit.qis.state.state import StateVector
from bqskit.qis.unitary.unitarymatrix import UnitaryMatrix
class LayerGenerator(abc.ABC):
"""
... | [
"edyounis123@gmail.com"
] | edyounis123@gmail.com |
b2b5040251b52f2a7d00a3fcd69aff1df9c96f97 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2408/60648/267250.py | 42fd2a73853aa61e8e1101e5966296a105b18cc4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | class Solution:
def numPrimeArrangements(self, n: int) -> int:
# (sum(prime)) 的阶乘 乘以 (n - sum(prime)) 的阶乘
def countPrimes(n: int) -> int:
if n < 2:
return 0
prime = [1] * (n + 1)
prime[0] = prime[1] = 0
for i in range(2, int(n**0.5) +1)... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b09d38372acd5147033c1441a46c1221bd6cffee | 5442f2f71e36419ad23894d3dd527837029e42f3 | /ramda/memoize.py | 90f43e8a162f1d4455b1acae4b5aa05196ba2aa1 | [
"MIT"
] | permissive | zequequiel/ramda.py | 5e6a23765598550ecaf1a76b785f4fde7bc11ea4 | eac054163de535520659ce6269536355d5e89865 | refs/heads/master | 2020-09-11T16:43:07.989407 | 2019-09-06T12:07:26 | 2019-09-06T12:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | import hashlib
import json
from ramda.memoize_with import memoize_with
def memoize(f):
"""Creates a new function that, when invoked, caches the result of calling fn
for a given argument set and returns the result. Subsequent calls to the
memoized fn with the same argument set will not result in an additional
call... | [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
6907cd3956eefc7814e16763b87275820f02964b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /xdSKkXQkkMroNzq8C_8.py | 6a7c8f49d0986abe2427cee6cbaff07659418e65 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | """
Create a function that counts how many D's are in a sentence.
### Examples
count_d("My friend Dylan got distracted in school.") ➞ 4
count_d("Debris was scattered all over the yard.") ➞ 3
count_d("The rodents hibernated in their den.") ➞ 3
### Notes
* Your function must be case-insensi... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b44d3cbb59f5f3f8a54a12f0b7ce7209ce3bc61c | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/startup/bl_ui/properties_data_curve.py | e7f9de5dc201d7f35e1f93372c5733fd3877f555 | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 14,402 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"admin@irradiate.net"
] | admin@irradiate.net |
78d5a9d6714ee5729fc953d355fd9ece21e45447 | b507751bb8adbf0c3270e399dab00259371afd05 | /setup.py | aa38ce6ee4a06ff0d1640bb6106e9f645240be61 | [] | no_license | sdkwe/pywe-component-token | 2c7bd3fe05b95dcd70b5c49f516e8936519b9a73 | 020d1be06ffd0d8a79e5cb34dd9ecb4a09d740ed | refs/heads/master | 2020-03-07T19:05:16.951405 | 2018-05-01T20:10:31 | 2018-05-01T20:10:31 | 127,661,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | # -*- coding: utf-8 -*-
from setuptools import setup
version = '1.1.0'
setup(
name='pywe-component-token',
version=version,
keywords='Wechat Weixin Component Token',
description='Wechat Component Token Module for Python.',
long_description=open('README.rst').read(),
url='https://github.com... | [
"brightcells@gmail.com"
] | brightcells@gmail.com |
69380cac821df4b434fe8e0bbea627355081cb50 | 161fd6370ffa0b35ecd50719d6266224da597ee0 | /Python/Django/sports/views2.py | 23bfca83cec0e4ed4b02022eb70bc98072091a6a | [] | no_license | ebergstein/DojoAssignments | a30fd8b36442bff2a4253902a591ad11f191fc12 | 3ad9ac65073c733ead32b93ce4be19af5369fccf | refs/heads/master | 2021-06-19T09:48:23.100713 | 2017-06-30T04:24:35 | 2017-06-30T04:24:35 | 82,743,546 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from django.shortcuts import render, redirect
from .models import League, Team, Player
from . import team_maker
def index(request):
context = {
"leagues": League.objects.filter(name__contains="Womens"),
""""teams": Team.objects.all(),
"players": Player.objects.all(),"""
}
return render(request, "leagues/inde... | [
"ebergstein@sbcglobal.net"
] | ebergstein@sbcglobal.net |
e2cc167ab3cd9c985b8979c1c3ad79f7754354a2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03494/s213100148.py | 504f8df2d6619e1e1087cee14a9f5a8c697d6b08 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | N = int(input())
A = list(map(int,input().split()))
def X(x):
y = 0
while x%2==0:
x = x/2
y = y+1
return y
a = [X(A[i]) for i in range(0,N)]
print(min(a))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7e006593e39f695a39c0508dbad1b2e8fa0889c9 | 90be755a741d6c93dd59d4acef8b27b4cf93ff54 | /src/elsia/scripts/coarse2fine.py | 4012618330283e3d1b0f119612ad5aaeaa7aa7c6 | [] | no_license | karry3775/Elsia_ws | 05aa5786a6f3f64b70c7ceafead6d72d4ca18bab | 031f8006e9a439d9947be5ed288a666f20fca3a7 | refs/heads/master | 2023-02-21T05:21:10.842475 | 2021-01-23T14:58:57 | 2021-01-23T15:21:46 | 326,032,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,529 | py | #!/usr/bin/env python
import rospy
from nav_msgs.msg import Odometry # to get the laser cross track and abs yaw
from std_msgs.msg import String # to get the block_val message
from geometry_msgs.msg import Twist # for cmd_vel
from tf.transformations import euler_from_quaternion, quaternion_from_euler
import math as m... | [
"kartikprakash3775@gmail.com"
] | kartikprakash3775@gmail.com |
43ba92b302deb3f78d664830d576fe2b464496d3 | bb78978db67663287ecabd7124b844a068a607ce | /command/sub8_rqt/sub8_rqt_gui/__init__.py | b916ed4001769e1ce299f046ebd3546166f06783 | [
"MIT"
] | permissive | ErolB/Sub8 | fb0493c20e7d5409a21c9fb473117dccb8c11c6b | 757e56ed0c22aa0386dba2e7f539a9c62782c167 | refs/heads/master | 2021-01-11T07:41:42.849536 | 2016-03-28T05:01:13 | 2016-03-28T05:01:13 | 54,864,501 | 0 | 0 | null | 2016-03-28T04:05:16 | 2016-03-28T04:05:15 | null | UTF-8 | Python | false | false | 27 | py | from gui import AlarmPlugin | [
"jpanikulam@ufl.edu"
] | jpanikulam@ufl.edu |
73f12fed22111fd0e30c62b8b0e51fb76df8a6bd | c1d5aeaa30418507610d3f1364ef24759b41e86d | /tango_with_django_project/settings.py | a73a709671e694d9d025eba696db1505d946ba6b | [] | no_license | kydkang/workspace8 | 7c368f3549e40dd62bf5aa126747aa83f14f09a1 | bc17b6a1cdf0e4b025e844eb5cf33f53a629875f | refs/heads/master | 2020-03-12T13:49:50.047181 | 2018-04-23T06:44:12 | 2018-04-23T06:44:12 | 130,651,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | """
Django settings for tango_with_django_project project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/... | [
"you@example.com"
] | you@example.com |
fc8dd96f4980bb48684fbfa0034cb7b99912c982 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/nextdns/test_init.py | fb9ea74509e9554bd31f080eb5f5aa471a463f55 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 1,806 | py | """Test init of NextDNS integration."""
from unittest.mock import patch
from nextdns import ApiError
from homeassistant.components.nextdns.const import CONF_PROFILE_ID, DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import CONF_API_KEY, STATE_UNAVAILABLE
from homeassistant.c... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
c268cd0eb69a97954d3fe683c3c669a4afee24df | 02e9e67f6fd0d7dd6c88620f78923afa0ea639d1 | /Classes/Examples/Lesson 2/animal_tester.py | adaf99c2bc0d252784ad1bd762666685158ece31 | [] | no_license | fbhs-cs/PreAPCS-classcode | 55823b0f16333c35650785b4dd92ae03cd6b4768 | ef1355c04fcdbb3c3d4e16c4aae20acfbc833c1c | refs/heads/master | 2021-03-27T19:08:49.479105 | 2018-04-06T21:21:23 | 2018-04-06T21:21:23 | 103,399,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | import animal
def main():
print("Creating dogs...")
try:
dog1 = animal.Dog(name="Drama",gender="female",age=14,breed="Chow/Lab")
dog2 = animal.Dog(name="Santa's Little Helper",gender="male",age=3,breed="Greyhound")
dog3 = animal.Dog(name="Einstein",gender="male",age=38,breed="Sheepdog")... | [
"cpurdy@flourbluffschools.net"
] | cpurdy@flourbluffschools.net |
0dc63cb0e85c77c53207e0d69ae4bae808320782 | ce7c414f098e3ea6674bec05d40345d0047bdbe5 | /basic07.py | 4d9fdf47767336fb17e20427de88584fafe1803e | [] | no_license | jun-yoshiyoshi/python_plactice100 | 0545783d199c04ebd5b53b354c5dc50c52a99b6e | 466dc39341cad50594c957ae60d5d00c254d06f7 | refs/heads/main | 2023-08-11T06:29:41.711413 | 2021-09-14T00:59:38 | 2021-09-14T00:59:38 | 406,175,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # if,elif,else fizzbuzz ワンライナー
for i in range(1, 31):
if i % 15 == 0:
print('fizzbuzz')
elif i % 3 == 0:
print('fizz')
elif i % 5 == 0:
print('buzz')
else:
print(i)
for i in range(1, 51):
print("Fizz"*(i % 3 < 1)+"Buzz"*(i % 5 < 1) or i)
| [
"yoshi.jun.yoshi.jun0621@gmail.com"
] | yoshi.jun.yoshi.jun0621@gmail.com |
a647121f068ff94bcce89cf280706e5fae7e7d1d | bc441bb06b8948288f110af63feda4e798f30225 | /topology_sdk/api/container/update_container_pb2.py | bc6d3f93792986767e0d060cda91eefac7cdf152 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 11,781 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: update_container.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pro... | [
"service@easyops.cn"
] | service@easyops.cn |
41c70140030ead7bcb3232f412ecfb56956c7900 | 22ccc673a522b52f2678b6ac96e3ff2a104864ff | /digest/migrations/0015_auto_20150731_0859.py | fbd6d24eea0abcd05e835877f6ddb37710feb92a | [] | no_license | ivlevdenis/pythondigest | 07e448da149d92f37b8ce3bd01b645ace1fa0888 | f8ccc44808a26960fb69a4c4c3491df3e6d3d24e | refs/heads/master | 2021-01-18T02:09:42.121559 | 2016-05-15T22:44:34 | 2016-05-15T22:44:34 | 58,350,368 | 0 | 0 | null | 2016-05-09T05:21:39 | 2016-05-09T05:21:39 | null | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [('digest', '0014_auto_20150731_0859'), ]
operations = [migrations.AlterField(
model_name='item',
name='tags',
field=models.... | [
"sapronov.alexander92@gmail.com"
] | sapronov.alexander92@gmail.com |
865946e4d753262386d009e877aa101002220064 | 48cb50826c7774f320c9b4d51a287dcb4e805d8e | /jsk_pcl_ros_utils/cfg/PolygonArrayAreaLikelihood.cfg | 5c6645133f23ae642c1b94f2a27d657fd33ee98b | [] | no_license | huangxliang/jsk_recognition | 921d28771f5a1c1dde6dcdaa9289dafdde81b310 | 8c6b46d0ca9ccb00f033ceef305b35edafb32162 | refs/heads/master | 2021-01-18T12:56:05.945787 | 2016-03-11T05:50:08 | 2016-03-11T05:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | cfg | #!/usr/bin/env python
# set up parameters that we care about
PACKAGE = 'jsk_pcl_ros_utils'
try:
import imp
imp.find_module(PACKAGE)
from dynamic_reconfigure.parameter_generator_catkin import *;
except:
import roslib; roslib.load_manifest(PACKAGE)
from dynamic_reconfigure.parameter_generator import... | [
"garaemon@gmail.com"
] | garaemon@gmail.com |
ebf1ee4cdfea3e7fa89adbca475840bc63d22534 | dc5d8dbbb4c6f296a95bea7069d13de38db00ac6 | /lines.py | 2d7e386e0f375c07c2fc1d2ac950771ef6d3ee0d | [] | no_license | the-isf-academy/drawing | 906591afa279529cb7a6208183188b01651b2fcb | 652fea4754d3a465b55aaeb6673d989402a06350 | refs/heads/master | 2021-10-14T11:34:57.447129 | 2021-09-28T02:45:15 | 2021-09-28T02:45:15 | 205,507,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,585 | py | # lines.py
# by Chris Proctor
# Helper functions for playing with how the turtle draws
# =============================================================================
# ! Advanced !
# =============================================================================
# This module contains some fancy code that we don't expe... | [
"chris.proctor@gmail.com"
] | chris.proctor@gmail.com |
03f40f445a153af0590c13f0c05606a782782605 | 4c9580b2e09e2b000e27a1c9021b12cf2747f56a | /chapter02/app02/urls.py | 23e633effc2aff2db92d1f3dca1fc3e48b57a431 | [] | no_license | jzplyy/xiaoyue_mall | 69072c0657a6878a4cf799b8c8218cc7d88c8d12 | 4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc | refs/heads/master | 2023-06-26T02:48:03.103635 | 2021-07-22T15:51:07 | 2021-07-22T15:51:07 | 388,514,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.urls import path, re_path
from app02 import views
urlpatterns = [
path('blog-list/', views.blog, {'blog_id': 3}),
]
| [
"jzplyy@126.com"
] | jzplyy@126.com |
c8b0206da89a30aca71601e901c93e63d45782b8 | ffdcd340fdef833bfd9af89d779845ba2991a08c | /customer/migrations/0150_auto_20190325_1616.py | c47d4b86a52930c61ecb4fef98dc24e10b8ed1a2 | [] | no_license | calvinti12/Goat | 64a122f697e06855bb53c37c8b7472a14c1030a3 | 2993dc48296cc1c6dd41651c05752647f074cb70 | refs/heads/master | 2020-07-03T19:16:26.942485 | 2019-08-12T20:17:43 | 2019-08-12T20:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 2.1.4 on 2019-03-25 20:16
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0149_auto_20190323_1312'),
]
operations = [
migrations.AlterField(
model_name='orderrequest',
... | [
"jermol@mtgfirst.com"
] | jermol@mtgfirst.com |
42eec63fcd92eef17a0881c4d0abc24e596ff8f6 | 26d5c795d8aa83bf5cb3f228675ff51e2f704f57 | /scripts/bqexport | bfef9fe73be2b701637137c11c7a7d955f03f311 | [] | no_license | binarymachines/mercury | 8e13bb10c67a056fe88e02f558d73f1f1b95d028 | db3e2425f4e77a44a97c740f7fff90312a1bd33f | refs/heads/master | 2023-07-08T11:35:26.867494 | 2023-06-25T00:46:23 | 2023-06-25T00:46:23 | 94,708,610 | 2 | 6 | null | 2023-02-15T21:50:06 | 2017-06-18T19:31:50 | Python | UTF-8 | Python | false | false | 4,413 | #!/usr/bin/env python
'''
Usage:
bqexport [-p] <project> <dataset> --table <table> --bucket <google_bucket> --format=<fmt> [--delimiter=<delimiter>] [--directory=<directory>]
bqexport [-p] <project> <dataset> --table-list-file <tables> --bucket <google_bucket> --format=<fmt> [--delimiter=<delimiter>] [--d... | [
"binarymachineshop@gmail.com"
] | binarymachineshop@gmail.com | |
ca831b57120478eb123c55e911034a76632d7712 | 6022d4228b3bd318447f2693a799c44f78d4d552 | /hqca/tools/_operator.py | ad4edef8fa0c0febf1deac5caf1d205c20702f1b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sesmart/HQCA | 74e67673913e6f3a141d3ed814dfad2d4f51c287 | 07ed661b95d0ee798c8f75396960e510e23ffbe6 | refs/heads/main | 2023-02-28T10:44:59.789765 | 2021-02-02T21:04:03 | 2021-02-02T21:04:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,936 | py | from copy import deepcopy as copy
import sys
import traceback
from hqca.tools.quantum_strings import *
class Operator:
'''
Can construct mathematical operators using different 'string'.
Aggregate collection of smaller strings, typically either qubit,
fermionic, or Pauli strings. Addition or multiplica... | [
"smartscott@gmail.com"
] | smartscott@gmail.com |
d2f93461f3e3a9caba1a1a3f2303cf3528743bae | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations/_route_filter_rules_operations.py | 87b50c0fb113dd13bb5d4aee1f915c107da18d14 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 28,417 | 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 may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
9ee758cd3a968a7234a34b8742d1648503bc6124 | 1e1f303cf81da16dec2aa2a5e04c0f3e420ffae8 | /scripts/pypi/tests/build_pypi_package_test.py | cbda69b39a3e0d89bb656211bced2608121c5b8d | [
"MIT"
] | permissive | brianjo/pyre-check | ba56e727dafb0c626b6dd0ba414c0df94e762475 | faae20632480948d943d094895c1a2c025e9d82a | refs/heads/master | 2021-08-07T08:43:15.473504 | 2020-12-08T18:46:48 | 2020-12-08T18:46:48 | 250,374,200 | 0 | 0 | MIT | 2020-03-26T21:20:21 | 2020-03-26T21:20:20 | null | UTF-8 | Python | false | false | 2,854 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import tempfile
import unittest
from pathlib import Path
from unittest.mock import Mock, patch
from ..build_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
588945412a87dad60b0a723b7af48d15a27e0609 | b3b5902f0cd292defdc1acccd8fa5c7890e8ba5d | /SPORTS/sports_spiders/sports_spiders/pipelines.py | 4b51184e5232bc55a5bcf189c34fc18983dce0fa | [] | no_license | headrun/SWIFT | 83d3d926244e472813ef79b304ac1639750904a3 | 68bdd09d83ee2967a2378375d9b2cb6232a3a0cf | refs/heads/master | 2023-01-25T00:29:57.810604 | 2020-12-01T01:22:16 | 2020-12-01T01:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import MySQLdb
import os
import copy
from scrapy import signals
from sports_spiders import configUtils
from sports_spiders import game_utils as gu
from ... | [
"charan@headrun.com"
] | charan@headrun.com |
bf0e511132c09ac1f4357a51bc4e9d9d89c5c22a | df541a802b2dfa89d3aab14af627358dc7c76e6e | /APP自动化/StoneUIFramework/testcase/空间/test3_团队人事任免/TeamAssignJob003.py | 0c43aa4c91f7c63a4792fccfbf00acf0681abc82 | [] | no_license | gupan2018/PyAutomation | de966aff91f750c7207c9d3f3dfb488698492342 | 230aebe3eca5799c621673afb647d35a175c74f1 | refs/heads/master | 2021-09-07T19:44:20.710574 | 2017-12-22T15:58:23 | 2017-12-22T15:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | __author__ = 'Administrator'
# -*- coding: utf-8 -*-
import unittest
from time import sleep
import logging
from StoneUIFramework.public.common.Connect import Connect
from StoneUIFramework.public.common.publicfunction import Tools
from StoneUIFramework.config.globalparam import GlobalParam
from StoneUIFramework.public.... | [
"610077670@qq.com"
] | 610077670@qq.com |
fe582f20576126607ef96485a1246221704d6f63 | 313b64057838ae28ebca3d8bfff191cb13b80c61 | /101/Q110.py | 30d49ef376657c2ad1d4fa9dd4f9ec5c2c727348 | [] | no_license | veblush/Euler | e78961fb378be8e7c25070131e0adb72a83381f2 | de54a77da41b3b58642055169bf2ea4090dbefb8 | refs/heads/master | 2016-08-05T09:12:16.775008 | 2013-03-13T08:31:11 | 2013-03-13T08:31:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | import math
import bisect
# ready prime array
primes = [2]
for i in xrange(3, 1000+1):
ii = int(math.sqrt(i))
composite = False
for p in primes:
if p > ii:
break
if i % p == 0:
composite = True
break
if not composite:
primes.append(i)
f = lambda a: reduce(lambda x, y: x*y, (k+1 f... | [
"veblush+git@gmail.com"
] | veblush+git@gmail.com |
775f2b2ed2fdb72a82f704927dee417183e0c016 | c77d8dd4042d29150da277184a06834fb551c953 | /env/lib/python3.9/site-packages/split_settings/tools.py | 307d347a226f30c00a2e6f81dd9b49cd11a66cb6 | [] | no_license | josephaw1022/centralizedAPI | 9978858ff6e906337062ab73b7e36576b0796a39 | 5850a7869519250912279c3a78d6b9585c9591de | refs/heads/master | 2023-06-12T17:12:20.128798 | 2021-07-05T21:24:52 | 2021-07-05T21:24:52 | 383,256,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | # -*- coding: utf-8 -*-
"""
Organize Django settings into multiple files and directories.
Easily override and modify settings. Use wildcards and optional
settings files.
"""
import glob
import inspect
import os
import sys
from importlib.util import module_from_spec, spec_from_file_location
__all__ = ('optional', 'i... | [
"josephsims1@gmail.com"
] | josephsims1@gmail.com |
bcae5eb42cbe4e4b38d8b5de33efb5ba30dcb142 | a836c17c1e8cfcc79f85a3f05e1a5c126e85da75 | /login/views.py | 587513fa07253c62b1d6c55ed1fa9cb5fad30159 | [] | no_license | Rabidza/hackathon | 949729a0b8f0c5d1f18e054700a032630613e991 | 807399892f43fb67a26837080e49fb1773ddee8c | refs/heads/master | 2021-01-10T16:10:34.371846 | 2016-01-06T06:34:25 | 2016-01-06T06:34:25 | 45,219,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | #views.py
from login.forms import *
from django.contrib.auth.decorators import login_required
from django.contrib.auth import logout
from django.views.decorators.csrf import csrf_protect
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.template import RequestConte... | [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
a6bcd8507b54ca4a44c6428e7a49a7801f35cd74 | 13d0ad57a2f5deb83593e73843be7cbeeaad8d3d | /medium/knight_probability.py | be06b5a4f1c93083f6686ced4cbb0d22268fbe2f | [] | no_license | mwong33/leet-code-practice | b21f277d73b30df9e681499733baad07979480a1 | 9c0e6294bf3b3614b185f0760906abad60f8d9b6 | refs/heads/main | 2023-03-29T20:35:43.841662 | 2021-03-31T22:05:44 | 2021-03-31T22:05:44 | 317,382,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | class Solution:
# Top Down Memo - O(N*N*K) time O(N*N*K) space
def knightProbability(self, N: int, K: int, r: int, c: int) -> float:
return self.knightProbabilityMemo(N, K, r, c, 0, {})
def knightProbabilityMemo(self, grid_size, total_moves, row, col, move_count, cache):
if (row... | [
"noreply@github.com"
] | mwong33.noreply@github.com |
b49a0876dd1c49261f74128ad2221410df781ed8 | 67d76057aee86c43d32e0b74f3ac94d521ee03d8 | /tests/pyre.pkg/descriptors/timestamps.py | a53130b8d4f65d34e6904ffdfb98461d080e6fdd | [
"BSD-3-Clause"
] | permissive | jlmaurer/pyre | 0f94b1855bf029210f07c528747221751e37687f | 6af38a83621d7d6228d147b4bb94f97fbb10f6e2 | refs/heads/master | 2023-05-25T04:33:19.907452 | 2020-06-18T14:07:54 | 2020-06-18T14:07:54 | 273,362,988 | 0 | 0 | NOASSERTION | 2021-06-10T23:42:14 | 2020-06-18T23:50:28 | null | UTF-8 | Python | false | false | 1,135 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2020 all rights reserved
#
"""
Verify that time conversions work as expected
"""
def test():
import pyre.descriptors
# create a descriptor
time = pyre.descriptors.timestamp()
# casts are not implemente... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
b894061a7d8848b8131261f6320a605aa72345cb | 59b0ebc4249f20edd0e87dc63784c6e8c138c7fd | /.history/anagrams.1_20180607000217.py | f4fa839c7c5fce48d1434066880e74d167a6f952 | [] | no_license | Los4U/first_python_programs | f397da10be3ef525995f3f220e3b60012a6accaa | c3fc33a38c84abd292cb2e86de63e09434fc7fc4 | refs/heads/master | 2020-03-22T08:09:40.426118 | 2018-07-04T17:17:58 | 2018-07-04T17:17:58 | 139,748,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import sys
file = open(str(sys.argv[1]), "r")
words = file.read().splitlines()
p2 = 1
for word in words:
print(words.index(word))
i = 0
for i in range(i, len(words)):
if sorted(word) == sorted(words[i]):
#print(i)
print(str(i) + ": " + word + " - " + words[i])
... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
5f417a6eea67c50ba9f5cf04eac634c569c0d4e4 | 793ec68fc65013b8bd3689a850fddff4e50aa34f | /func.py | 5b98cbcd034f0f3b3ad17dd19fe4f6eb5ddf9d4a | [] | no_license | Acrelion/various-files | 1ec27f3c03718a0c01756bac47134daa74cc3870 | becb38141110a31e817402de09c4b6d44d0580f6 | refs/heads/master | 2021-09-28T16:41:32.949690 | 2018-11-18T13:44:36 | 2018-11-18T13:44:36 | 108,088,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | def do_sum(arr):
result = 0
for i in arr:
result += i
return result
| [
"ivan.kristiyanov@gmail.com"
] | ivan.kristiyanov@gmail.com |
5549cfd4d5d6343f8d3430fa4093b7f1d0b8fd9a | 05e634a232574f676434dfa8e4183f3d0a1a4bc9 | /paddlecv/ppcv/ops/output/tracker.py | 0df393bc437d7098472b6cb7eebcfd7a5c2d1fc1 | [
"Apache-2.0"
] | permissive | PaddlePaddle/models | 67ac00d93c5255ac64a9d80ae5be2e8927e47cee | 8042c21b690ffc0162095e749a41b94dd38732da | refs/heads/release/2.4 | 2023-09-04T15:23:59.543625 | 2023-07-20T11:54:16 | 2023-07-20T11:54:16 | 88,868,842 | 7,633 | 3,597 | Apache-2.0 | 2023-09-05T23:23:54 | 2017-04-20T13:30:15 | Python | UTF-8 | Python | false | false | 3,870 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
4c8eb4e0b011ab53434d6d5b85b39b91903957ab | 4a76ac7ad1aaeec44729ab6d5b121b1cae0d910c | /Week 2/FindTheMedian.py | f1017afb1254cfc9663bbd2a334cfc369fdfa9d9 | [] | no_license | kalmad99/CompetitiveProgramming | 2d825e839faa9e13ef43dbb45498bd3eef6723ab | 6cbb1f12f7670d0016fa2af8f2dd597d9123070d | refs/heads/main | 2023-03-25T20:18:23.389396 | 2021-03-24T21:36:52 | 2021-03-24T21:36:52 | 325,816,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | def findMedian(arr):
negarr = []
posarr = []
finarr = []
for i in arr:
if i < 0:
negarr.append(i)
else:
posarr.append(i)
for i in range(len(negarr)):
negarr[i] = -1 * negarr[i]
negarr = sorting(negarr)
for i in range(len(negarr) - 1, -1, -1):... | [
"kalemesfin12@gmail.com"
] | kalemesfin12@gmail.com |
b6efb199a5f5c5dfbf9ef558876f865598c298da | 56f428833bac273c180dd95bafd0a8da992349c1 | /bin/Utils/GetFiles.py | 6b9e2aa465828987020f0a802346239f3c3a6ea5 | [
"BSD-2-Clause"
] | permissive | LlianeFR/craft | 8e6ac764a76812628c1d3dc0be75c7aceea771f4 | 0d1e5e5c12fa817cf411ab4fc4a9d1815432e461 | refs/heads/master | 2020-03-25T20:19:23.376298 | 2018-08-06T09:32:30 | 2018-08-06T09:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,960 | py | # -*- coding: utf-8 -*-
# Copyright Hannah von Reth <vonreth@kde.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of condi... | [
"vonreth@kde.org"
] | vonreth@kde.org |
5a67bbde46a7bcb4dcf509d2e277e112851804a4 | f185d98c2d56c4c212c023ad71514e2ad398950b | /nv/resources/avatars.py | 50dd2d40463da4535700a2f9831c1f3783d5851f | [
"MIT"
] | permissive | new-valley/new-valley | 24b9591eba21ed85634d55d6ac36f0eb25d27198 | 8810739cab52ad4dea2f4005a59b8b7afea1e2db | refs/heads/dev | 2022-12-27T12:26:36.144077 | 2018-12-02T18:51:21 | 2018-12-02T18:51:21 | 156,936,213 | 0 | 0 | MIT | 2022-12-08T01:17:15 | 2018-11-10T01:27:24 | Python | UTF-8 | Python | false | false | 2,314 | py | from flask import request
from flask_restful import (
Resource,
)
from flask_jwt_extended import (
jwt_required,
get_jwt_identity,
)
from webargs.flaskparser import parser
from webargs.fields import (
Str,
Int,
)
from webargs import validate
from nv.models import (
Avatar,
)
from nv.schemas impo... | [
"erik.perillo@gmail.com"
] | erik.perillo@gmail.com |
86b34b358fa22363f9d0c994feca0b1566cf675e | f9be6f15af272fce4565a74d85dfe3298ea22315 | /aiogram/types/game.py | f5861d90c825331214bf4649639d797f96a9e959 | [
"MIT"
] | permissive | hellboi-atul/aiogram | 7654ca127b9b709b8700cb1755674a895abb7d05 | 3440ab3c96e31384cbcf515e75904dcade6f5fd0 | refs/heads/dev-2.x | 2023-01-27T12:09:21.177136 | 2020-12-05T13:28:56 | 2020-12-05T13:28:56 | 318,952,603 | 1 | 0 | MIT | 2020-12-06T04:44:05 | 2020-12-06T04:44:04 | null | UTF-8 | Python | false | false | 725 | py | import typing
from . import base
from . import fields
from .animation import Animation
from .message_entity import MessageEntity
from .photo_size import PhotoSize
class Game(base.TelegramObject):
"""
This object represents a game.
Use BotFather to create and edit games, their short names will act as uni... | [
"jroot.junior@gmail.com"
] | jroot.junior@gmail.com |
6212f545fdf293959684ff38828655f7139ad795 | 3d5035d6b6ece6beca77ee625b6f1b4a906c4c3a | /project-addons/res_partner_farm_data/models/__init__.py | 2813df0338d6631c828c32d88235013156f216d1 | [] | no_license | fadeldamen/CMNT_00033_2015_COOP_IV | 98ba3fd4ca5df17651f251c76aec80b92c497603 | f1f0027b25dffe1281de956c146340dd825cbe9b | refs/heads/master | 2020-04-07T22:00:58.920747 | 2016-02-02T17:39:22 | 2016-02-02T17:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Comunitea All Rights Reserved
# $Jesús Ventosinos Mayor <jesus@comunitea.com>$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | [
"jesus@comunitea.com"
] | jesus@comunitea.com |
e224ca5de74c0f709f85248fb16c8941f8f53647 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523135820.py | e8c2172120c7256018689f40de758c86f45f3e5b | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | from flask import Flask
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
class MCQ(FlaskForm):
age = IntegerField("Age", [DataRequired()])
professio... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
09fbe7c3b04b86dd5917185ce79e3bbccb6ef515 | 8d3fd439c6d5a52eda578847545234b2ebdc4f3b | /机器学习百科/pycode/numpy实战.py | 5f899edd24ae4ec602d0f7df5ce3d9c76f5df722 | [] | no_license | gm-p/practice_demo | d1530dcdb3de95832f1fa5b6e30c75e7ca6acc05 | 7eaa825fc634ad21aea48713133c0266a44ac54a | refs/heads/main | 2023-03-31T23:01:02.302579 | 2021-04-04T13:29:50 | 2021-04-04T13:29:50 | 354,193,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,759 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 28 22:19:13 2019
https://mp.weixin.qq.com/s?__biz=Mzg5NzAxMDgwNg==&mid=2247484006&idx=1&sn=1d0b49c0200e901915a99d29f0dadc79&chksm=c0791f7ff70e966929ed3a9b1358beb3b31a1106084f4332176476eafebf3a407fff2150d5b3&scene=21#wechat_redirect
@author: guangming.pan
"""
# 1.1列表转为矩阵
i... | [
"abc"
] | abc |
80ad83afd181b73ca8f260ec4eb78f2354f20a7f | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_azir/na_azir_top.py | 914fc01c70d432f9190f4176ab17fef32b18fec6 | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,269 | py | from getratings.models.ratings import Ratings
class NA_Azir_Top_Aatrox(Ratings):
pass
class NA_Azir_Top_Ahri(Ratings):
pass
class NA_Azir_Top_Akali(Ratings):
pass
class NA_Azir_Top_Alistar(Ratings):
pass
class NA_Azir_Top_Amumu(Ratings):
pass
class NA_Azir_Top_Anivia(Ratings):
pass
clas... | [
"noreply@github.com"
] | koliupy.noreply@github.com |
300860ec08d763f75ed23d5aaa30370d6baf1713 | 6c5971b878d245fdca10d68ca653c3e72470d0f3 | /pyesmon/daemon.py | b47a20151c9d3d1e44b88bbb63d46c8f7d5fbfe2 | [] | no_license | patirot/LustrePerfMon | 417328674680e8693707e0dc4b93dd597409fb4c | 4a351f6190a713ba4b861a9d22fb9240c3261266 | refs/heads/master | 2023-08-02T08:05:37.742882 | 2021-09-30T18:49:12 | 2021-09-30T18:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Copyright (c) 2017 DataDirect Networks, Inc.
# All Rights Reserved.
# Author: lixi@ddn.com
"""
Library for daemon process
"""
import logging
SHUTTING_DOWN = False
EXIT_REASON = "unkown reason"
def signal_handler(signum, frame):
"""
Singal hander
"""
# pylint: disable=global-statement,unused-argume... | [
"lixi@ddn.com"
] | lixi@ddn.com |
0a9eff2aa9d6f96402d906eb1b805de2ca963c30 | a2fec2dada04b2c7cd69f5e186efea99e98bd32e | /leetcode/maximum-product-subarray.py | 07cc57beb127beb0fd6d99c5f146e9a2c6aa210b | [] | no_license | IcyCC/effective_note | 363ed9c2eb986151caef7134815be424e53fc592 | d55074032217c48e3d872d4524ba6cea94613b86 | refs/heads/master | 2022-02-13T21:42:54.871413 | 2022-01-24T02:10:11 | 2022-01-24T02:10:11 | 168,490,684 | 78 | 7 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | class Solution:
def maxProduct(self, nums: List[int]) -> int:
if not nums :
return 0
t_min = nums[0]
t_max = nums[0]
res = nums[0]
for i in nums[1:]:
if i < 0:
# 遇到负数反转
t_max, t_min = t_min, t_max
t_max = max... | [
"1103232282@qq.com"
] | 1103232282@qq.com |
b2549b3de94c275ed7aad85c9d88802e3d7deead | b43e73898400662b68e522c84286a79e359a3390 | /cybox/test/objects/win_registry_key_test.py | ca9afc432a92efa097a04e28519119d64ec90b74 | [
"BSD-3-Clause"
] | permissive | emmanvg/python-cybox | fc8f44200a02dc956c81da60b4a051984d03ac5b | e58649356e21720cf79bb09ac9ceaf73283c0f26 | refs/heads/master | 2021-01-20T01:11:24.264142 | 2017-10-26T01:19:56 | 2017-10-26T01:19:56 | 89,234,015 | 1 | 0 | null | 2017-04-24T11:48:24 | 2017-04-24T11:48:24 | null | UTF-8 | Python | false | false | 2,087 | py | # Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import unittest
from mixbox.vendor.six import u
from cybox.compat import long
from cybox.objects.win_registry_key_object import WinRegistryKey
from cybox.test.objects import ObjectTestCase
class TestWinRegistryK... | [
"gback@mitre.org"
] | gback@mitre.org |
f0072159501e0c427e68bdfa0438e86855b9b9a1 | 058f6cf55de8b72a7cdd6e592d40243a91431bde | /tests/parser/static/test_match_assignments/test_match_assignments_2.py | 8f5c218a9b77384a83595bb1205e81efc452285e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/FPChecker | 85e8ebf1d321b3208acee7ddfda2d8878a238535 | e665ef0f050316f6bc4dfc64c1f17355403e771b | refs/heads/master | 2023-08-30T23:24:43.749418 | 2022-04-14T19:57:44 | 2022-04-14T19:57:44 | 177,033,795 | 24 | 6 | Apache-2.0 | 2022-09-19T00:09:50 | 2019-03-21T22:34:14 | Python | UTF-8 | Python | false | false | 2,464 | py | import os
import pathlib
import sys
import subprocess
sys.path.insert(1, str(pathlib.Path(__file__).parent.absolute())+"/../../../../parser")
#sys.path.insert(1, '/usr/workspace/wsa/laguna/fpchecker/FPChecker/parser')
from tokenizer import Tokenizer
from instrument import Instrument
RUNTIME='../../../../src/Runtime_p... | [
"ilaguna@llnl.gov"
] | ilaguna@llnl.gov |
6e360b41dcec06167dd4382fe2834712cd879592 | 58ec75465a2a6f8500b220bba92d9268e9f77f01 | /blog/views.py | b6552b9681fbe39c099a9ebc15e912b63800a1b8 | [] | no_license | Rayhun/Django-blog | 797e13524aad95d7677a4675b3d9921ad56c6064 | 8aadfb6a6e6246f1dd979fc11f5b21436ac2bfa1 | refs/heads/master | 2023-08-28T07:17:34.479268 | 2021-11-04T14:07:04 | 2021-11-04T14:07:04 | 296,093,670 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,996 | py | from datetime import datetime
from ipware import get_client_ip
import json, urllib
from django.shortcuts import render, redirect, get_object_or_404
from django.views.generic import TemplateView, DetailView
from .models import BlogPost, BlogComment, IpStore
from .forms import CommentForm, SignUpForm
from django.contrib.... | [
"rayhunkhan27@gmail.com"
] | rayhunkhan27@gmail.com |
c13786863d7eb85259610ae6c03d43f058ff954f | 5e4ddf4a8dac912a7679b0a6babe1b42d5d018e9 | /python2/prac/pracmodules/cs_recognition/src/cs.py | 361ad0fbe503585194797fb73ca9be2325110c30 | [
"BSD-2-Clause"
] | permissive | danielnyga/prac | b686d9655c56175057db2af0002348c99a7de2ee | 7add712590dd52dd8c1692554f49b271447ef03f | refs/heads/master | 2020-05-30T07:10:58.260570 | 2018-02-28T17:30:29 | 2018-02-28T17:30:29 | 45,621,476 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,364 | py | # PROBABILISTIC ROBOT ACTION CORES
#
# (C) 2012-2013 by Daniel Nyga (nyga@cs.tum.edu)
#
# 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 th... | [
"mareikep@cs.uni-bremen.de"
] | mareikep@cs.uni-bremen.de |
2a6b7dcf34814b4cf52d13c7b049621f96bb6f85 | cb324b8e92765c535765bbb88aa69878ce2e4fe3 | /regtests/list/if_empty.py | fad3c9e5d5f0cd8f09b8e56e51887962654316cd | [
"BSD-3-Clause"
] | permissive | pombredanne/Rusthon | f47756c6ae465c60012e63e02ea1e912c3b391fb | 343c0b2b097b18fa910f616ec2f6c09048fe92d0 | refs/heads/master | 2021-01-17T21:24:29.744692 | 2016-09-10T10:53:59 | 2016-09-10T10:53:59 | 40,818,721 | 1 | 0 | null | 2016-09-10T10:54:00 | 2015-08-16T13:20:47 | Python | UTF-8 | Python | false | false | 581 | py | from runtime import *
"""if empty list then false"""
class A:
pass
def main():
d = []
#if d: ## this is not allowed, and will raise an error at runtime
if len(d):
err1 = 1
else:
err1 = 0
if len([]):
err2 = 1
else:
err2 = 0
d.append('xxx')
if len(d):
err3 = 0
else:
err3 = 1
assert( err1 == 0... | [
"goatman.py@gmail.com"
] | goatman.py@gmail.com |
38e6b27c30a8b8c86965c575147b2d9f90a8bb76 | 9069db5ea6adce8739ccdac841317e529a5059f8 | /creditos/migrations/0017_auto__add_field_credito_liquidado__add_field_credito_fecha_liquidacion.py | 8ae7aa07763339dc8bb68726a0536fb880d44412 | [] | no_license | jesusmaherrera/buro-de-credito | f5fc0836ad4db94a8dbe9edbd2998c6beab23033 | 070bd296b9b2305b423c6547510f89fa8eb4870f | refs/heads/master | 2021-01-15T23:45:49.675114 | 2015-03-12T19:51:50 | 2015-03-12T19:51:50 | 8,079,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,893 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Credito.liquidado'
db.add_column('creditos_credito', 'liquidado',
self... | [
"jesusmaherrera@gmail.com"
] | jesusmaherrera@gmail.com |
dfb641cfcda182da1c34f2edbfc8b2ddb29075b3 | a04eff13392361cf6effa7b321ff6c931705534c | /python/ccxt/async_support/acx.py | 1a4ee9682dd3bc362426874ff7e4156b41bbf5db | [
"MIT"
] | permissive | Homiex/homiex-ccxt | 89594883f06f72e8eaf3222d43a66370a030dbd2 | f669d7cb2a9276ba07c7782c5ec1a488f13d930d | refs/heads/master | 2022-07-06T19:47:38.759274 | 2020-03-16T09:27:07 | 2020-03-16T09:27:07 | 246,796,828 | 3 | 4 | MIT | 2022-06-23T01:48:09 | 2020-03-12T09:41:33 | JavaScript | UTF-8 | Python | false | false | 16,718 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
from ccxt.base.errors import InsufficientFunds
from ccxt.base.errors import OrderNotF... | [
"ruiliang.guo@homiex.com"
] | ruiliang.guo@homiex.com |
3a9191bee9d44079e2dbeb83c998458f78dd8a94 | 73a2917525e56ac548563b39ead045a19d4861a1 | /tutorial_11.py | b650f21148e9fdbe67e2fb3fbf193671ac46ce23 | [] | no_license | VsevolodM95/Python_training | 468e80e5ed6dbec627b08970eb6f2d6febfcd0b5 | 120b2142a7f627a1f98db46a8b531d6e35013090 | refs/heads/master | 2021-01-15T14:28:36.144487 | 2014-07-11T23:14:39 | 2014-07-11T23:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | #tutorial #12
#the same as 11, but more rational
name = raw_input("What's my name?")
height = raw_input("How tall am I?")
age = raw_input("How old am I?");
print "My name is %r, I'm %r tall and I'm %r years old." % (name, height, age)
| [
"myemail"
] | myemail |
140ccc842c6d7721c31339b91f2e8e6c3a027af8 | 3417c37060ec8f7089754baace34d8051572570a | /Python-dev/Task3/app/models/score.py | 228822793642df91258d2585422b3e11fe1a7c6e | [] | no_license | rrkas/SID2021 | 8a2baa41b8e4868dce0d4ac75533109bc5e717a5 | 09d2a771ca1914928fbb78a0dac58c1bb4d0dd7b | refs/heads/master | 2023-06-26T13:58:35.246291 | 2021-07-25T07:34:57 | 2021-07-25T07:34:57 | 381,122,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | class Score:
def __init__(self, name=None, regd_num=None, score=0, id=-1):
self.id = id
self.name = name
self.regd_num = regd_num
self.score = score
def __repr__(self):
return f"Score({self.id}, {self.name}, {self.regd_num}, {self.score})"
| [
"rrka79wal@gmail.com"
] | rrka79wal@gmail.com |
c4df4a79f4af6383e7de96d43d1fa38fa94f3cd2 | 471c3ad9912423763295c353c3dcbb7e2e74b818 | /pos_aware_lm.py | f4d8c64ad5fceab1789cd330a1b426392bc1f96c | [] | no_license | mikekestemont/seqmod | a3bfcbf4c7418005e71cb5381c30a837cff88aec | 7d8c976a03836fcf347395c192987dba531c2144 | refs/heads/master | 2021-01-21T22:05:18.518306 | 2017-06-21T10:26:39 | 2017-06-21T10:26:39 | 95,155,787 | 0 | 0 | null | 2017-06-22T20:55:51 | 2017-06-22T20:55:51 | null | UTF-8 | Python | false | false | 12,050 | py |
import os
import math
import numpy as np
import torch
import torch.nn as nn
from torch.autograd import Variable
from seqmod import utils as u
from seqmod.modules.custom import StackedRNN
from seqmod.loaders import load_penn3
from seqmod.misc.dataset import Dict, BlockDataset
from seqmod.misc.optimizer import Optim... | [
"enrique.manjavacas@gmail.com"
] | enrique.manjavacas@gmail.com |
f6346a64d9a515475908d829accc6318b2aab55b | 5c1643e0e03969b91dba6f0d6428719b75b2d7e1 | /basic/string2.py | 31df9c32eb94b536d06ee0696cb753b5ab5edbe0 | [
"Apache-2.0"
] | permissive | KobiBeef/google-python-exercises | 2ff0ba89f0618087301b32e8318d751690975c76 | e5d67d2a198bcf26611df21b0306cd8c42630fdc | refs/heads/master | 2021-01-10T16:49:25.235238 | 2015-10-02T05:33:48 | 2015-10-02T05:33:48 | 43,537,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | #!/usr/bin/python2.4 -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Additional basic string exercises
# D. verbing
# Given a string, if its length is a... | [
"ezekielbacungan@gmail.com"
] | ezekielbacungan@gmail.com |
6376fc530b0e76bd4f87940ec6ad2bb947e107f8 | a7596165a29e5186bc6c4718e3b6e835939b105d | /apps/impala/src/impala/conf.py | ebefe16ed4f96697220a65c9051ecf7c7974f66a | [
"Apache-2.0"
] | permissive | lockhart39/HueQualityAndIngestionApp | f0c778665f0fbe699ec30e0df5e9f3ed8a9c3384 | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | refs/heads/master | 2021-08-20T00:31:29.481333 | 2017-11-27T19:22:16 | 2017-11-27T19:22:16 | 112,237,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,295 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"cloudera@quickstart.cloudera"
] | cloudera@quickstart.cloudera |
7025f22c61a62607db00ded8bad9e7ddf8e73873 | d11543019903dedde9fe81b46587ebd190f9ec8b | /0x04-python-more_data_structures/101-square_matrix_map.py | 3179981ed00ee3e115cc4dc9fa9eabcb3915be40 | [] | no_license | Viiic98/holbertonschool-higher_level_programming | 553d435a8dec97f4ff83e4862ee3978d6ca02d7b | 5507f2a94a9b58af5760052ad9ba8fd9904bbad2 | refs/heads/master | 2020-09-29T00:15:41.990726 | 2020-05-15T21:56:37 | 2020-05-15T21:56:37 | 226,900,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | #!/usr/bin/python3
def square_matrix_map(matrix=[]):
return list(map(lambda a: list(map(lambda a: a * a, a)), matrix))
| [
"xathovic@gmail.com"
] | xathovic@gmail.com |
57f798f3e5d7088caef9d70cee3a08ba05c77d64 | 3950cb348a4a3ff6627d502dbdf4e576575df2fb | /.venv/Lib/site-packages/numba/tests/test_extending.py | 8aea9608da489164cd1072d8131cdd3a2231d44f | [] | no_license | Bdye15/Sample_Programs | a90d288c8f5434f46e1d266f005d01159d8f7927 | 08218b697db91e55e8e0c49664a0b0cb44b4ab93 | refs/heads/main | 2023-03-02T04:40:57.737097 | 2021-01-31T03:03:59 | 2021-01-31T03:03:59 | 328,053,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,239 | py | import math
import operator
import sys
import pickle
import multiprocessing
import ctypes
import warnings
from distutils.version import LooseVersion
import re
import numpy as np
from numba import njit, jit, vectorize, guvectorize, objmode
from numba.core import types, errors, typing, compiler, cgutils
f... | [
"brady.dye@bison.howard.edu"
] | brady.dye@bison.howard.edu |
e0ae885a4a52601d7b84938cb69ac26206faec5d | d9af28bb1f9eb67300f1dde7942f9b536cbcb1b8 | /232.py | 9b04d35b284fdf7b16016d547f5b8bccb6c278ae | [] | no_license | khanjason/leetcode | c78d415fd5794ffb7d15f68b8e2dc89b367317ab | d2c0b41bdd181bee999922be820d6ce16312b7ae | refs/heads/master | 2021-12-26T17:28:32.706678 | 2021-09-09T13:56:09 | 2021-09-09T13:56:09 | 235,096,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.q=[]
def push(self, x: int) -> None:
"""
Push element x to the back of queue.
"""
el=[x]
self.q=el+self.q
def pop(self) -> int:
... | [
"noreply@github.com"
] | khanjason.noreply@github.com |
3f3975822de1286c6ce6e3a90f622ab86cdb0abb | c9952dcac5658940508ddc139344a7243a591c87 | /tests/lab07/test_ch07_t03_getting_there.py | 78b92c4a065dbc622993d8e2f3a40b16d74c4cdc | [] | no_license | wongcyrus/ite3101_introduction_to_programming | 5da1c15212528423b3df91997327fe148abef4de | 7cd76d0861d5355db5a6e2e171735bee2e78f829 | refs/heads/master | 2023-08-31T17:27:06.193049 | 2023-08-21T08:30:26 | 2023-08-21T08:30:26 | 136,574,036 | 3 | 2 | null | 2023-08-21T08:30:28 | 2018-06-08T06:06:49 | Python | UTF-8 | Python | false | false | 925 | py | import types
import unittest
from tests.unit_test_helper.console_test_helper import *
from tests.unit_test_helper import is_answer
class TestOutput(unittest.TestCase):
def test(self):
if is_answer:
from lab.lab07.ch07_t03_getting_there_ans import plane_ride_cost
else:
fr... | [
"cywong@vtc.edu.hk"
] | cywong@vtc.edu.hk |
c859fcb34b407a626bbd148d0aa71ece70d0cff6 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/proven.py | 12c5c1c4aed443fb0ba2a6dc608615d906cad3ba | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 104 | py | ii = [('ChalTPW2.py', 1), ('LeakWTI4.py', 1), ('WheeJPT.py', 19), ('HallFAC.py', 2), ('MackCNH2.py', 2)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
b994d486bed5ada6105bd8330aec492f5aa07a05 | 32e01bc8b5883896a58bdb3c2443028cf61484cf | /RaptAutomation/Test_UI/K8s_SingleUser_SingleGpu/test_17_s3_image_classification_auto.py | 44fad6b0452a6b74f4b82cc09e1338151c053a9c | [] | no_license | Idur69/RaptAutmationWin | df8a55a6c60467ea7d048b7a6856263d5624643c | 1f4faffa75a9cc5bf72c20baec3893d611b9d565 | refs/heads/master | 2022-12-03T21:01:38.841645 | 2020-08-30T08:39:43 | 2020-08-30T08:39:43 | 291,431,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,534 | py | import datetime
import unittest
from telnetlib import EC
from time import sleep
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.wait import WebDriverWa... | [
"shaikidurbasha469@gmail.com"
] | shaikidurbasha469@gmail.com |
a3c3c4e911bc0abc6a69bd4872fab46bdb146b9d | da4d071cb7d2b3f46a8e393859d6d745f8e4fa96 | /single_sign_on/single_sign_on/settings.py | 4785912b185a5a2f57f84ee3d7fa2a3a8501efc7 | [] | no_license | pnija/single_sign_on | 59140395ac8bd451b719e4ad7627e33dc29a689a | 145f007abbede74906faf4d5b37fd73254c31039 | refs/heads/master | 2022-12-17T01:46:26.482289 | 2018-10-01T14:31:21 | 2018-10-01T14:31:21 | 151,037,834 | 0 | 0 | null | 2022-05-25T00:50:13 | 2018-10-01T04:48:55 | Python | UTF-8 | Python | false | false | 3,272 | py | """
Django settings for single_sign_on project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impor... | [
"nijap@techversantinfotech.com"
] | nijap@techversantinfotech.com |
226ebe40297fd07a670ccb4b161a84312e59cd5f | be471cdee10e2273ce41631c4a58f16227f18b5b | /virtual/walt/virtual/setup/__init__.py | 897f6407a59976eac4f37043ca18e8730ef3640e | [
"BSD-3-Clause"
] | permissive | dia38/walt-python-packages | d91d477c90dbc4bd134fdcc31d7cb404ef9885b8 | e6fa1f166f45e73173195d57840d22bef87b88f5 | refs/heads/master | 2020-04-29T17:41:19.936575 | 2019-11-26T10:11:58 | 2019-11-26T10:11:58 | 176,303,546 | 0 | 0 | BSD-3-Clause | 2019-03-18T14:27:56 | 2019-03-18T14:27:56 | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
import os, sys
from walt.common.tools import failsafe_symlink
from pkg_resources import resource_string
from pathlib import Path
SYSTEMD_SERVICE_FILES = [ "walt-vpn-server.service", "walt-vpn-server.socket" ]
SYSTEMD_SERVICES_DIR = Path("/etc/systemd/system")
def run():
if os.geteuid() != 0:... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
1b4bf67859e3d5788fe48c327bd779ca472b00f8 | fb49051e2cb4b9865fdde761a5892b46f5815a5c | /tutorial1/app/permissions.py | d3f8296625624a6a9e3fd99185f9ba5bb3b23814 | [] | no_license | ashish1sasmal/Django-REST-Framework | 0bb810e17c716750faac676218bdd44847891b52 | ca8caa9b38d86086e78a28cfad2ca9cf0216cce1 | refs/heads/master | 2023-02-06T09:09:56.582366 | 2020-12-27T17:37:44 | 2020-12-27T17:37:44 | 321,983,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from rest_framework import permissions
class IsOwnerOrReadOnly(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
# Read permissions are allowed to any request,
# so we'll always allow GET, HEAD or OPTIONS requests.
if request.method in permissions.SAFE_METHOD... | [
"ashishsasmal1@gmail.com"
] | ashishsasmal1@gmail.com |
d0db361dd3d49dc29a842821913c2f0e8337c048 | c20a7a651e63c1e7b1c5e6b5c65c8150898bbaf2 | /OJ/LeetCode/63. Unique Paths II.py | face5e92689a3a4bc7c6ff313028f2f885493362 | [] | no_license | Nobody0321/MyCodes | 08dbc878ae1badf82afaf0c9fc608b70dfce5cea | b60e2b7a8f2ad604c7d28b21498991da60066dc3 | refs/heads/master | 2023-08-19T14:34:23.169792 | 2023-08-15T15:50:24 | 2023-08-15T15:50:24 | 175,770,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | # 思路,类似unique path 1 但是遇到路障要将路径数置零
class Solution:
def uniquePathsWithObstacles(self, obstacleGrid):
if obstacleGrid == []:
return None
height = len(obstacleGrid)
width = len(obstacleGrid[0])
dp = [[0] * width for _ in range(height)]
for i in range(height):
... | [
"cyk19951@gmail.com"
] | cyk19951@gmail.com |
8feff23b081e85387612f08d06a1a23ad765ae10 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2019_03_01_18_32_46_384807.py | ae243968d9d574a99e555abaf06c22567dccc2a8 | [] | 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 | 173 | py | import math
def calcula_gaussiana(x, mi, sigma):
x = 1/(sigma*(2*math.pi)**(1/2))
y = math.exp(-0.5*((x-mi)/sigma)**2)
f_x_mi_sigma = x*y
return f_x_mi_sigma | [
"you@example.com"
] | you@example.com |
bdc220e948745490edc4cbef2ed6b46407352b76 | 45df3588d0ec1a2bd7dbe4af104a49aa5775d034 | /login/migrations/0007_auto_20150704_1334.py | 5005920a9630a6b47a59b80425c6dab87ba3debd | [] | no_license | wittawin/DB_Project | 043db7eb3d70ef32c9c97d51a242775b3e115f73 | 1cc1fe84c75906d670f7bb4dd130093bc15035b8 | refs/heads/master | 2020-04-06T03:43:21.516583 | 2015-07-13T05:47:09 | 2015-07-13T05:47:09 | 37,700,817 | 0 | 1 | null | 2015-06-19T04:06:07 | 2015-06-19T04:06:06 | JavaScript | UTF-8 | Python | false | false | 1,546 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('login', '0006_auto_20150704_0050'),
]
operations = [
migrations.AlterField(
model_name='student',
na... | [
"o_k_t@hotmail.com"
] | o_k_t@hotmail.com |
bfd36c25bbcaa8e49bf606f5919191e197984ef1 | 243f64a13a1f496a08d05508ccf73c61e03a69de | /max_even_seq/subs/2017B/3.py | 7de5e2179d22b93d5d7e963889ba0802ea33e9ee | [] | no_license | RazLandau/pybryt | 5f3e946a99338fb159d6044098380bce2aacdc6f | 8973b15fc48d1f278e7b8a3990d2f73a3bffb128 | refs/heads/main | 2023-08-19T12:30:46.622088 | 2021-10-14T18:35:21 | 2021-10-14T18:35:21 | 350,324,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def max_even_seq(n):
cnt=0
seq=0
for i in str(n):
if int(i)%2==0:
cnt=cnt+1
if seq<cnt:
seq=cnt
else:
cnt=0
return(seq)
| [
"landau.raz@gmail.com"
] | landau.raz@gmail.com |
92e836e1d5b811cf5b44ccf47321db9ceec18820 | 7c2e677d931a8eb7d7cffc6d54713411abbe83e4 | /AppBuilder9000/AppBuilder9000/MovieUpapp/apps.py | c154b17ad65f00eca9d7444f3554a110a27b8616 | [] | no_license | r3bunker/Python_Live_Project | 19e367b3cf74c2279c287fcd3a8a44a27f24041a | d3e06150d7daea6326cc1a4155309d99e4ff6244 | refs/heads/main | 2023-06-12T23:01:50.440371 | 2021-06-16T20:21:03 | 2021-06-16T20:21:03 | 344,883,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class MovieupappConfig(AppConfig):
name = 'MovieUpapp'
| [
"r3bunker@gmail.com"
] | r3bunker@gmail.com |
ad82cdec2b606068c08bfc2d613f9ee8f4bf77c9 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/ism.py | 260052b0c7fe2bd50488ddbcc28be15ea25f4185 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 470 | py | ii = [('CookGHP3.py', 2), ('FerrSDO3.py', 1), ('ProuWCM.py', 1), ('CookGHP.py', 1), ('LeakWTI2.py', 3), ('FitzRNS3.py', 1), ('CarlTFR.py', 2), ('AinsWRR3.py', 1), ('CookGHP2.py', 1), ('MarrFDI2.py', 1), ('GilmCRS.py', 1), ('DaltJMA.py', 1), ('FerrSDO2.py', 1), ('NewmJLP.py', 1), ('SoutRD.py', 2), ('MereHHB3.py', 2), ('... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
ca31ba023e5d757237337eab00d32136418b0830 | f09c8ecfc5b981b0ff5cd56c3ac20f5d86a9f91a | /nuitka/plugins/Plugins.py | 2e84612c94ca8d7149ffb0f75830c35f7965ac50 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Manjunath30/Nuitka | eb99518b14c43e9d3b0169408d2cdabf28862ffd | d280d1ba88dda10fbce27b6b295f773653c42e09 | refs/heads/master | 2023-09-04T10:00:22.982034 | 2021-10-28T14:15:36 | 2021-10-28T14:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,768 | py | # Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
470f2a990b04ca4e12743e5c260e9e30c6e83955 | 9652060cff5372e971c112a2a6b3495d68a824a9 | /vagrant/wsgi.py | b0962de43da81f0a84401a51d88a932c4d8f161f | [
"BSD-3-Clause"
] | permissive | open-contracting-archive/kingfisher-vagrant | 5b02dfe60193538d3db1d3736a15033f68985651 | f82baf5c5098e99702fbb5ba84c8364c3ebaa548 | refs/heads/main | 2023-03-03T23:52:20.819877 | 2021-02-20T02:43:43 | 2021-02-20T02:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from ocdskingfisherprocess.web.app import create_app
application = create_app()
| [
"james.baster@opendataservices.coop"
] | james.baster@opendataservices.coop |
fcdc87080a8f3063b6c4cf66f424fa516756e16c | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-989.py | 43aaa042bfe2771cdb70273fcae5be3fb967c2f5 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,999 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
aa7d69aee1bc7288dcc9116c62b689a7f9e24991 | ec39ccb701d30c64e9541802e3f45aff61a16f09 | /toontown/uberdog/ClientServicesManager.py | 864a38a6b01ad165a11c91ef604473c9ad5679d6 | [] | no_license | ronanwow1001/toontown-src-py3.0 | f3089ea2b0a987e236df1ae0fad8f94c45e852e0 | b7bf9673353a1a8231652d009ef00b11da4b0290 | refs/heads/master | 2020-12-07T05:03:48.795733 | 2020-01-11T19:07:49 | 2020-01-11T19:07:49 | 232,640,248 | 0 | 0 | null | 2020-01-08T19:18:50 | 2020-01-08T19:18:50 | null | UTF-8 | Python | false | false | 3,418 | py | from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal
import hmac
from panda3d.core import *
from otp.distributed.PotentialAvatar import PotentialAvatar
from otp.otpbase import OTPGlobals
from toontown.chat.ChatGlobals import WTSy... | [
"nathanielfuhr@gmail.com"
] | nathanielfuhr@gmail.com |
451cd7b8185e807bd043961430589cdeb1c46411 | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2016/09/florida-millennials-20160915/graphic_config.py | abeb5e9f7aff3c2d8157284f6417f5027493d479 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '1ffq-ubcw70cvHmmrQFXNDvn79iRvVQLRnLZaA_pdltU'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
f01e56e28adaf1a1870f5b9b221f031d2d9ca2ff | d21dbab3f374eb42a10f9ec7c434c1ca6fb2bff7 | /Data Structures/Heap/1-qheap1_with_heapq.py | 14cb88fd7ab7ac36671aa051029f95f47b91679f | [] | no_license | almamuncsit/HackerRank | 5360ad1d54aa01075dba5527f6ae695e4c6d9c7a | 6599cde4c7541ebf27bacff8af02dc0c3eaaa678 | refs/heads/master | 2021-07-06T00:33:25.912754 | 2021-01-13T09:09:29 | 2021-01-13T09:09:29 | 222,364,072 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | class MinHeap:
def __init__(self, items=[]):
self.heap = [0]
for item in items:
self.push(item)
def push(self, item):
self.heap.append(item)
self.__float_up(self.size() - 1)
def peak(self):
if self.heap[1]:
return self.heap[1]
else:
... | [
"msarkar.cse@gmail.com"
] | msarkar.cse@gmail.com |
ad2334b337a461b4bd675a7ad1bc2ba0f29925a3 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_2415.py | 223d3fe4b277c1a262932b0bb0e952accf4ba03c | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,838 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
f91bae1f75347a2dca6cbfcaefc9d5b228815bb5 | b4a39921429d9045163d7a4d030951fecbfa352d | /setup.py | f1ecdc2b187860a10daf5c4d5210c312eac3adbd | [
"MIT"
] | permissive | MayuriKalokhe/Data_Science_Covid-19 | 814c7767e9d0b3cce27c2fa87b0407b7ea27166e | e4bd99ddb2d6b2467991867bfa8a658804689d9f | refs/heads/master | 2022-12-17T17:39:36.342071 | 2020-09-15T21:22:50 | 2020-09-15T21:22:50 | 295,846,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Applied Data Science for Covid-19 Tracking ',
author='Mayuri Kalokhe',
license='MIT',
)
| [
"you@example.com"
] | you@example.com |
10cdf6ae6137753f16ca394c963e3e452646a544 | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Kangaroo/solution.py | c3eb95f215b9b283337e9308ae9ff6c5d375055a | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 487 | py | #!/bin/python3
import os
# Complete the kangaroo function below.
def kangaroo(x1, v1, x2, v2):
# x1 < x2
return 'YES' if v1 > v2 and not ((x2 - x1) % (v1 - v2)) else 'NO'
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
x1V1X2V2 = input().split()
x1 = int(x1V1X2V2[0])
... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
584a7b924adeb54de34928fb9018d078d9f7b946 | 64cd483b18dd9027c40c35c9f3b5153d6735db64 | /api_ec2/chatbot_api/resources/food.py | 011d68778c0f43d9b472fb3bddc3e7122b0d301b | [] | no_license | taepd/sba-chatbot | a55673e170891d7e536a2e4017989e7874c28354 | d58f4663c431870b5aca7412cf491f962a04f095 | refs/heads/master | 2023-04-23T20:49:26.947955 | 2021-05-19T14:58:16 | 2021-05-19T14:58:16 | 301,092,681 | 2 | 0 | null | 2021-05-19T14:58:17 | 2020-10-04T09:48:34 | Python | UTF-8 | Python | false | false | 4,511 | py | # from sqlalchemy import Column, Integer, Float, String, ForeignKey, create_engine
# from sqlalchemy.dialects.mysql import DECIMAL, VARCHAR, LONGTEXT
from typing import List
from flask import request
from flask_restful import Resource, reqparse
from flask import jsonify
import json
import os
import numpy as np
import p... | [
"taepd1@gmail.com"
] | taepd1@gmail.com |
19ed803340dab89ff9a3c6ced25d27987779f1f1 | 89f5a6b6ecb4aed9d5007bf2f500b7bfcb66c542 | /saltcontainermap/modinstall.py | fa9ab9bce241d084bd7b8bcdbc84a37b87628ef0 | [
"MIT"
] | permissive | merll/salt-container-map | a752a5bcff326ba7b3402a4397b73d9f8adcca66 | 0792e7bd1e80dfb370d783a45ca23db51ef28c22 | refs/heads/master | 2020-05-22T04:12:57.010357 | 2018-01-16T16:51:46 | 2018-01-16T16:51:46 | 38,863,690 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,934 | py | # -*- coding: utf-8 -*-
import argparse
from collections import namedtuple
import logging
import os
import salt.config
log = logging.getLogger()
InstallEnvironment = namedtuple('InstallEnvironment', ['lib_path', 'salt_config', 'salt_extmods', 'salt_root'])
def _expand_path(root, path):
if os.path.isabs(path):... | [
"matthias@erll.de"
] | matthias@erll.de |
e0b748369a429ce203da0543699f8fa7b8f011aa | 5a711a4a49f94ae1497a723e29c981facf1d5f37 | /tests/practice_centers/test_services.py | 4d8d050dcd9f9685d0cc981749b8179fa27e3e89 | [
"MIT"
] | permissive | fabien-roy/glo-2005-sportsapp | 2509583fb47bce9cff1e211cb1ed7adebaf3fdd0 | 3b5b5f9cdcfe53d1e6e702609587068c4bd3310d | refs/heads/master | 2023-04-09T07:30:31.512069 | 2020-05-10T23:21:42 | 2020-05-10T23:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from instance.practice_centers.services import PracticeCenterPopulationService
from tests.practice_centers.mocks import practice_center_repository
from tests.interfaces.test_basic import BasicTests
class PracticeCenterPopulationServiceTests(BasicTests):
def setUp(self):
self.practice_center_population_se... | [
"fabienroy28@gmail.com"
] | fabienroy28@gmail.com |
6cfeb76982ef4150fc264f81b7bd13f46fcbf673 | 941b25a0d0ccd25e4e64293defc2b50a61fccb01 | /testBoard.py | 115ca435b072bd140be722e11fea581ae4d714cc | [] | no_license | fanzhangg/sliding-tiles | c5a396818ec2d7449309f773df37a46ec7b41c8e | 334bb7df76436aa9429ff6132db8a9ea1afce35f | refs/heads/master | 2020-04-08T20:06:37.554387 | 2018-11-29T15:20:52 | 2018-11-29T15:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import unittest
from Board import Board
class testBoard(unittest.TestCase):
board = Board(3, 3)
def test_0_initialize_board(self):
print("Start initialize board test")
tiles_1 = (1, 2, 3, 4, 5, 6, 7, 8)
self.assertEqual(self.board.initialize_board(tiles_1), None)
tiles_2 = (1,... | [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.