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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f4574f19704732b35e9a1608f3760eaacfdcd64 | bd93fa910151c278be8249055bc084e5a5c35a6a | /Python/itcast/01-Python进阶1/3面向对象/02魔法方法str.py | 87b7cb966fb02fd2b8c31c726aea63b56963dabb | [] | no_license | ahojcn/practice-code | bd81595b80239cd2550183093566bd536a83ed3f | b65f4e76271479269463e92fd3fd41585c2ac792 | refs/heads/master | 2021-07-10T14:15:08.036592 | 2020-07-09T11:32:16 | 2020-07-09T11:32:16 | 153,059,349 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | """
__str__ 相当于 Java 中的 toString()
"""
class Cat:
def __init__(self, name, age, sex):
self._name = name
self._age = age
self._sex = sex
def __str__(self):
return "姓名:" + self._name \
+ "年龄:" + str(self._age) \
+ "性别:" + self._sex
def eat(self):
... | [
"hanoi_ahoj@icloud.com"
] | hanoi_ahoj@icloud.com |
e81a46145ac0da82da2536133a7c0a69c8ffc392 | 7c82896f5322ffd5d61697ed597f4d2c53e4e744 | /backend/ecommernce_25667/wsgi.py | 16d515f35532223e7e77c29bf39f2a5ff06566df | [] | no_license | crowdbotics-apps/ecommernce-25667 | c4487f6c19a3d4dc608fd2a13291f74c84b53dc7 | 55dd1c6293fcfbec01aec7e8e0118ed8b1c48130 | refs/heads/master | 2023-04-02T00:48:51.026549 | 2021-04-13T19:40:25 | 2021-04-13T19:40:25 | 357,668,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for ecommernce_25667 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
539f8f2da156d8b3ce8a755659f688fe6ee1d71e | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /branches/nacl_repy/seattlelib/serialize.repy | 29a142d7996092ac9787ccb13497c54fdc3571d5 | [
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 6,493 | repy | """
Author: Justin Cappos
Start date: October 9th, 2009
Purpose: A simple library that serializes and deserializes built-in repy types.
This includes strings, integers, floats, booleans, None, complex, tuples,
lists, sets, frozensets, and dictionaries.
There are no plans for including objects.
Note: that all item... | [
"USER@DOMAIN"
] | USER@DOMAIN |
80475aeee17df3cba099d4d162c7d768068d604d | 6c219c027c7d0ef454bdeac196bd773e8b95d602 | /cms/jumboecms/jumboecms_slide_id_sqli.py | 2b692758481ff7bb88275db2b44434dd22f770e3 | [] | no_license | aStrowxyu/pocscan | 663f3a3458140e1bce7b4dc3702c6014a4c9ac92 | 08c7e7454c6b7c601bc54c21172c4788312603b1 | refs/heads/master | 2020-04-19T10:00:56.569105 | 2019-01-29T09:31:31 | 2019-01-29T09:31:31 | 168,127,418 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: JumboECMS V1.6.1 注入漏洞
referer: http://www.wooyun.org/bugs/wooyun-2010-062717
author: Lucifer
description: 文件/plus/slide.aspx参数id存在SQL注入。
'''
import sys
import requests
import warnings
from termcolor import cprint
class jumboecms_slide_id_sqli_BaseVerify:
def ... | [
"wangxinyu@vackbot.com"
] | wangxinyu@vackbot.com |
fff42786877735c43c12c0b6b7b613c376845e8c | 6375b7e4dfe11ced7dcd3fad1a7a2de9a504910d | /exc7_more_print.py | 9a734f30db2a725ccfb434e3859ea93eda66107f | [] | no_license | yaowenqiang/lpthw | b65e6b8ce576e7caa5cfba5570550e546d1e0549 | 4bbd7ebb4e8c570a39bf9c55df9bd97e4f86e1e5 | refs/heads/master | 2020-04-01T10:57:32.959389 | 2019-05-01T09:27:25 | 2019-05-01T09:27:25 | 153,140,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | print("Mary had a little lamb.")
print("Its fleece was white as {}.".format("snow"))
print("And everywhere that Mary went.")
print("." * 10)
end1 = "c"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "b"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = "e"
end12 = "r"
print(end1 + end2 + end3 + end4 +... | [
"yaowenqiang111@163.com"
] | yaowenqiang111@163.com |
c0bca8d865bf372c3ad7e16a347e11b50c5bd363 | 6a7058009587e78b5c758ff783410325ad7c2a4b | /leet/trees/serializeDeserialize.py | 11901325add1a326d48e38679f57ee4d830890e5 | [
"Apache-2.0"
] | permissive | stacykutyepov/python-cp-cheatsheet | 8b96b76403c501f5579befd07b3c4a4c69fe914e | a00a57e1b36433648d1cace331e15ff276cef189 | refs/heads/master | 2023-07-16T13:26:35.130763 | 2021-08-30T11:23:39 | 2021-08-30T11:23:39 | 401,442,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Codec:
def serialize(self, root):
"""Encodes a tree to a single string.
:type root: TreeNode
:rtype: str
... | [
"peterrlamar@gmail.com"
] | peterrlamar@gmail.com |
ae112f60c472608d64fea6061820870ce341dd5c | 048df2b4dc5ad153a36afad33831017800b9b9c7 | /atcoder/arc030/arc030_2.py | fb80908cb169ecdb2886d69d72282652698d8452 | [] | no_license | fluffyowl/past-submissions | a73e8f5157c647634668c200cd977f4428c6ac7d | 24706da1f79e5595b2f9f2583c736135ea055eb7 | refs/heads/master | 2022-02-21T06:32:43.156817 | 2019-09-16T00:17:50 | 2019-09-16T00:17:50 | 71,639,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | def reduce_graph(root, children, houseki):
def rec_dfs(node):
removals = []
for c in children[node]:
if not rec_dfs(c):
removals.append(c)
for i in removals[::-1]:
children[node].remove(i)
if len(children[node]) == 0 and houseki[node] == 0:
... | [
"nebukuro09@gmail.com"
] | nebukuro09@gmail.com |
71724e17def474442e5c246dd126c278d482fb73 | 74482894c61156c13902044b4d39917df8ed9551 | /test/test_get_contract_details_by_address_response_item.py | 924e6c10948054f2f336b69dea39bc685b9e522f | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 1,353 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
3a48961a4b6dd2e091a6c553297caabc8dfe0bf9 | 8501165bbbc6acf017b062c846a3ef7ef8624dc0 | /dataframes.py | 5e95c158a85cf9e26deb466f6ef7e8a54bd9025e | [] | no_license | olavosamp/spark_tutorial | df9edcc3cf82fc2103dd4f889e13eec22f97fbcc | c80d0e8259eda0dc443c3af259a3b11241ba63fa | refs/heads/master | 2023-03-29T09:20:08.279790 | 2021-03-26T20:01:40 | 2021-03-26T20:01:40 | 351,897,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from pyspark.sql import SparkSession
from pyspark.sql.types import StructType, StructField, StringType, IntegerType
spark = SparkSession.builder.master("local[1]").appName("SparkbyExamples.com").getOrCreate()
data = [
("George", "M", 12),
("Adolf","M", 14),
("Emilia","F", 16),
]
print("\nOriginal RDD")
rd... | [
"olavosamp@poli.ufrj.br"
] | olavosamp@poli.ufrj.br |
ef0aaacd8fedf13c8a18d46944b7df0927c88d38 | e905abd9bb7bd7017657d0a0c4d724d16e37044c | /.history/article/spiders/ieee_20210206223025.py | 4220b80e3f61daeddb62f3b9b60b2bc1a791ce13 | [] | no_license | tabdelbari/articles | a8b921841f84fb473f5ed1cdcda743863e6bc246 | f0e1dfdc9e818e43095933139b6379a232647898 | refs/heads/main | 2023-03-05T10:21:35.565767 | 2021-02-10T13:35:14 | 2021-02-10T13:35:14 | 325,654,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,534 | py | import scrapy
import logging
import re
from scrapy_splash import SplashRequest, request
from article.items import ArticleItem
import json
class IeeeSpider(scrapy.Spider):
name = 'ieee'
allowed_domains = ['ieee.org']
lua_script = """
function main(splash, args)
assert(splash:go{
splash.ar... | [
"abdelbari1996@hotmail.com"
] | abdelbari1996@hotmail.com |
7d81e0e0ff8208f3ac7143677298a42c4f2a1199 | 481b4b6955c6ddb5d962da5f2c8f9bf6d49d4f4c | /virtual/bin/pip | 63518a7dfa1e3b162a75c4bfdd69ccb87c3d5ea8 | [] | no_license | sanii-muthui/motoblog | b0b72c2013741a8a0dcb93ebc96cbce2edd220a6 | d82ae26184b75a433aaeefcd77c0bbe174bfe27f | refs/heads/master | 2022-10-03T08:55:29.879056 | 2019-08-13T07:02:07 | 2019-08-13T07:02:07 | 202,012,043 | 0 | 0 | null | 2022-09-16T18:08:10 | 2019-08-12T21:30:57 | Python | UTF-8 | Python | false | false | 246 | #!/home/sanii/Desktop/motoblog/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"muthuisanii@gmail.com"
] | muthuisanii@gmail.com | |
3cd9bfc221cf246f3a393362774ee3f9883a9923 | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-496895.py | 705c281fd7ebdc79fa6b70e2cc5c4d5bbf46119c | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | import string
def rebase(i, frombase=None, tobase=None, fromalphabet=None, toalphabet=None, resize=1, too_big=40000, debug=False):
''' if frombase is not specified, it is guessed from the type and/or char in i with highest ord.
tobase defaults to [10, 2][frombase == 10].
the alphabets are map(chr, ... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
e54a39dbfad7a724eeeaa1ef31bddec82f0bd60a | b5ca0a2ce47fdb4306bbdffcb995eb7e6eac1b23 | /Problem Solving/Algorithms/Strings/Strong Password/Strong_Password.py | ffab59cbf509d72ada08350dae73075e23cc95ca | [] | no_license | rsoemardja/HackerRank | ac257a66c3649534197b223b8ab55011d84fb9e1 | 97d28d648a85a16fbe6a5d6ae72ff6503a063ffc | refs/heads/master | 2022-04-14T22:46:03.412359 | 2020-04-03T07:44:04 | 2020-04-03T07:44:04 | 217,687,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the minimumNumber function below.
def minimumNumber(n, password):
# Return the minimum number of characters to make the password strong
count = 0
if any(i.isdigit() for i in password)==False:
count+=1
if any(i.i... | [
"rsoemardja@gmail.com"
] | rsoemardja@gmail.com |
0250af5de2c470cdfe5b35e79ad11ff9fecf0505 | b3aa3d77836fa8f05b54d68e7bd6bff19dced90d | /Atcoder/166/F.py | cebe95a2befd384d575177108224c95f438c7ef8 | [] | no_license | anoubhav/Codeforces-Atcoder-Codechef-solutions | 660c5b78723791bc33b1d51977bf11ebe6dfe4c1 | aeebcae332af64aba49f52261d11aa6996f33b1c | refs/heads/master | 2022-12-08T14:02:49.574928 | 2020-08-29T14:18:30 | 2020-08-29T14:18:30 | 255,004,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | n, a, b, c = list(map(int, input().split()))
slist = []
d = {'A': a, 'B':b, 'C':c}
soln = []
prev = None
for i in range(n):
s = input()
# corner case
if prev:
if prev[0] in s:
d[prev[0]] += 1
d[prev[1]] -= 1
soln.append(prev[0])
else:
... | [
"anoubhav.agarwaal@gmail.com"
] | anoubhav.agarwaal@gmail.com |
3bc0fa150804ea42ba257f13005f8613c6d86e46 | d3dc206446cffc919a7b3fb0838ca0ef14043e04 | /redditbot/worker.py | 3af98330efac68cb5f8d935bf1d5e72af2b2adfd | [] | no_license | gtmanfred/redditbot | 70ff2e2d1a63a4d272db93301ebb4f21acf16dae | 05d8f24620c9a3847c7e0c37ae8015e048af312e | refs/heads/master | 2020-04-18T14:56:02.289674 | 2015-10-19T01:22:40 | 2015-10-19T01:22:40 | 42,025,013 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | from kombu.connection import BrokerConnection
from kombu.mixins import ConsumerMixin
from blinker import signal
import logging
from redditbot.queues import task_queues
logger = logging.getLogger(__name__)
class Worker(ConsumerMixin):
def __init__(self, connection, config):
self.connection = BrokerConnec... | [
"danielwallace@gtmanfred.com"
] | danielwallace@gtmanfred.com |
1287031215a5c2e62234091f3722019c1952123e | 3bcc247a2bc1e0720f0344c96f17aa50d4bcdf2d | /第三阶段笔记/x.py | 9a4ea86bafae287fe00bb41414f17d9df388718a | [] | no_license | qianpeng-shen/Study_notes | 6f77f21a53266476c3c81c9cf4762b2efbf821fa | 28fb9a1434899efc2d817ae47e94c31e40723d9c | refs/heads/master | 2021-08-16T19:12:57.926127 | 2021-07-06T03:22:05 | 2021-07-06T03:22:05 | 181,856,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | import time
HTML_ROOT_DIR="./static"
PYTHON_DIR="./wsgiPy"
class Application(object):
def __init__(self,urls):
self.urls=urls
def __call__(self,env,set_headers):
path=env.get('PARH_INFO','/')
if path.startswith('static'):
file_name=path[7:]
try:
fd... | [
"shenqianpeng@chengfayun.com"
] | shenqianpeng@chengfayun.com |
09dc93bf160fae79ae292d82e8e5f44287276cfe | 70bee1e4e770398ae7ad9323bd9ea06f279e2796 | /openapi_client/models/waas_path.py | 628e708d4edce2b96dbb415798f282ec876d858b | [] | no_license | hi-artem/twistlock-py | c84b420b1e582b3c4cf3631eb72dac6d659d4746 | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | refs/heads/main | 2023-07-18T07:57:57.705014 | 2021-08-22T04:36:33 | 2021-08-22T04:36:33 | 398,637,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,597 | py | # coding: utf-8
"""
Prisma Cloud Compute API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.04.439
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfulla... | [
"aakatev@virtru.com"
] | aakatev@virtru.com |
db766e679ad5d5b29b11e5227f416641d4615582 | 8a39a9092e468ae0b0f1cbaa120ec9cb073ea99a | /flaskapp/bin/wheel | 6cf1bd3c2fac09220ced09d1f4faf7538fb92369 | [] | no_license | UPstartDeveloper/Mad_Libs | 717d840dfaebf837a0ec8b7d41360557bdd28ba7 | b103051afdc38693e07deb6fb66b3b992b032a3b | refs/heads/master | 2020-07-14T07:18:58.575014 | 2019-09-09T19:06:50 | 2019-09-09T19:06:50 | 205,271,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/Users/zainraza/Documents/dev/courses/MadLibs/flaskapp/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zainr7989@gmail.com"
] | zainr7989@gmail.com | |
a536bdcbf7d2e262cdcd57fb7576a6c706c7c063 | fcbf910c46991955159a11a34573d3bbb2c8bb90 | /test/serial/mf_mapping.py | fa9f5612f9e55757f82782376fecec5ea9607cbd | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | xunzhang/paracel | 59114aa63e46b844e56e1089dae633e55150875a | 553598a1f4c942c80157adfc23c2cd3fe0dab333 | refs/heads/develop | 2020-05-19T08:57:50.643425 | 2015-06-14T16:44:49 | 2015-06-14T16:44:49 | 14,230,290 | 13 | 3 | null | 2014-12-09T16:24:44 | 2013-11-08T10:37:14 | C++ | UTF-8 | Python | false | false | 3,221 | py | #! /usr/bin/env python
#
# Matrix factorization with bias
#
import numpy as np
class mf():
def __init__(self, k = 100, rounds = 10, alpha = 0.001, beta = 0.01, train_fn = '', pred_fn = '', output = ''):
self.k = k
self.rounds = rounds
self.alpha = alpha
self.beta = beta
self.train_fn = train_fn
self.... | [
"xunzhangthu@gmail.com"
] | xunzhangthu@gmail.com |
cb02f43cde2d805ac8b14cabc69256dfad851d6a | fec36e7493a78575cd0320bf31c5080649863a06 | /src/views/feature_value/list.py | 2294b96b083b882991877221f5e144dc233b810e | [] | no_license | teimurjan/eye8-backend | 6f44e830dd17dcac8b23acc3b66b9918357f643b | bf0a4c894a5b3770fada269d8b4d7d72367ab1ba | refs/heads/master | 2023-06-30T01:34:38.358903 | 2021-06-23T10:06:29 | 2021-06-23T10:06:29 | 273,144,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | from src.validation_rules.feature_value.create import (
CreateFeatureValueData,
CreateFeatureValueDataValidator,
)
from typing import Type
from src.serializers.feature_value import FeatureValueSerializer
from src.constants.status_codes import OK_CODE
from src.errors import InvalidEntityFormat
from src.services.... | [
"teymurgg321@gmail.com"
] | teymurgg321@gmail.com |
54fa9a542b276fcf3b2261c362e3d446b891570a | ce9c2603167e1b30b222afd5206ac7fa31d19a77 | /imctools/io/errors.py | dfd219570e7d15482e270e2b063e25a27abc5522 | [
"MIT"
] | permissive | BodenmillerGroup/imctools | 6d07036045a6361e17811d8f675eab01f34ffade | 361e49f3e0de4cf9c58c3b6d1024feacd2855d98 | refs/heads/master | 2022-05-01T23:29:49.302686 | 2022-03-31T09:58:01 | 2022-03-31T09:58:01 | 68,657,395 | 21 | 14 | MIT | 2022-03-31T09:58:02 | 2016-09-20T00:16:24 | Python | UTF-8 | Python | false | false | 75 | py | class AcquisitionError(Exception):
"""An error with IMC acquisition"""
| [
"anton.rau@gmail.com"
] | anton.rau@gmail.com |
3901eb30debbc1c94cf3d40f80aa71a9a4ffbaa1 | 0b514feea82eaa2e341130d9e23d13d72271d644 | /2.Jump_to_python/Python07.py | 99deebb9aeec73d60845d030c9ca5481a5b33cec | [] | no_license | Jerrykim91/FromZero | f8478012130948a11978a46ab6ec7922cb354a8f | fdd5a0716b29c77019cfcd1e1eab7ed4afd1aed4 | refs/heads/master | 2022-12-25T15:04:22.656462 | 2020-10-10T14:35:06 | 2020-10-10T14:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | # 모듈화 + 패키지
# + 모듈가져오기, 테스트 코드 배치 , 모듈가져오기 , 패키지 사용
# 모듈
# 함수나 변수 또는 클래스를 모아 놓은 파일이다.
# => 확장자가.py파일
# mod.py,__init__.py,p1.py, p2.py,...
# import 모듈이름
# 모듈이름.함수 모듈이름을 안쓰려면 -> from 모듈이름 import 모듈함수
# from mod1 import* -> * (모든것)을 의미
# 모듈화의 대상 => 변수, 함수, 클래스 <= 요소를 가져다 내것 처럼 사용가능
# ... | [
"sun4131@gmail.com"
] | sun4131@gmail.com |
86157b173385f4d53dbc01fa8e2417b7ee496c95 | f952a4583b0b751a1d5e2c5c453b16b1eb790ce5 | /networks/resnext_50_share_attention.py | db6b84562b8195c8267425a8f726e74a486801de | [] | no_license | dotpyu/Concept-Sharing-Network | 18b636a556cbc2dff887ac3c06110c58064393c8 | 2c85b312ef7d93a79498b5b3a8bc7b4d008e7b94 | refs/heads/master | 2022-04-11T02:07:16.387275 | 2020-03-30T20:44:36 | 2020-03-30T20:44:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,668 | py |
import torch
import torch.nn as nn
from torch.autograd import Variable
from functools import reduce
import pdb
from collections import OrderedDict
import torch.nn.functional as f
class LambdaBase(nn.Sequential):
def __init__(self, fn, *args):
super(LambdaBase, self).__init__(*args)
self.lambda_fun... | [
"zhaoxiangyun915@gmail.com"
] | zhaoxiangyun915@gmail.com |
94d03e9f0f7b8cec3c47cc368593566e2ada6fad | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_magnesia.py | 9193757fb3463cb627d30a16deadeb1b54c32ebb | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py |
#calss header
class _MAGNESIA():
def __init__(self,):
self.name = "MAGNESIA"
self.definitions = [u'a white substance used in stomach medicines']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.js... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
34b0a3903fbab558986e74b115ebb5bf14cae7a3 | 7c857119fe1505b1d80d6e62969661c06dc1a2f4 | /BaseTools/Source/Python/GenFds/VerSection.py | 7280e80cb4ef7ce47524af2de67a3c2e84cf5a33 | [
"BSD-2-Clause"
] | permissive | CloverHackyColor/CloverBootloader | 7042ca7dd6b513d22be591a295e49071ae1482ee | 2711170df4f60b2ae5aa20add3e00f35cf57b7e5 | refs/heads/master | 2023-08-30T22:14:34.590134 | 2023-08-27T19:14:02 | 2023-08-27T19:14:02 | 205,810,121 | 4,734 | 770 | BSD-2-Clause | 2023-09-03T12:41:33 | 2019-09-02T08:22:14 | C | UTF-8 | Python | false | false | 2,917 | py | ## @file
# process Version section generation
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
# Import Modules
#
from __future__ import absolute_import
from .Ffs import SectionSuffix
import Common.LongFilePathOs as os
from... | [
"isakov-sl@bk.ru"
] | isakov-sl@bk.ru |
b197dbe5eb039338439bb8c6b3e6fb20f0f80e18 | db1247a3999e3f22db025639d09a605082ded89d | /grid/urls.py | 4da7303e5324e7da6e0f39e3e8d1faa61df9ca6a | [
"MIT"
] | permissive | wise-team/hiveprojects.io | 1614deb0e4df5fe19cf62dbdb4d8d2741173c6b0 | 96e15a53f02c7327fe982a06b2dce56cd130e38c | refs/heads/master | 2022-12-12T18:44:35.221892 | 2020-03-27T21:50:03 | 2020-03-27T21:50:03 | 248,597,914 | 5 | 1 | MIT | 2022-11-22T01:59:55 | 2020-03-19T20:24:59 | Python | UTF-8 | Python | false | false | 2,093 | py | """grid url patterns"""
from django.conf.urls import url
from grid import views
from grid.views import (
add_feature,
add_grid,
add_grid_package,
add_new_grid_package,
ajax_grid_list,
delete_feature,
delete_grid_package,
edit_element,
edit_grid,
... | [
"noisy.pl@gmail.com"
] | noisy.pl@gmail.com |
c5ad1b5d232b6458e70b9d7459d2978fcf989724 | 1bde114a847c629701e3acd004be5788594e0ef1 | /Examples/PatternRefactoring/trashvisitor/Visitor.py | 29bc5089c2ffa37d3322ce93d7a97ca546f4a1f4 | [] | no_license | BruceEckel/ThinkingInPython | 0b234cad088ee144bb8511e1e7db9fd5bba78877 | 76a1310deaa51e02e9f83ab74520b8269aac6fff | refs/heads/master | 2022-02-21T23:01:40.544505 | 2022-02-08T22:26:52 | 2022-02-08T22:26:52 | 97,673,620 | 106 | 33 | null | 2022-02-08T22:26:53 | 2017-07-19T04:43:50 | Python | UTF-8 | Python | false | false | 215 | py | # PatternRefactoring/trashvisitor/Visitor.py
# The base class for visitors.
class Visitor:
def visit(self, Aluminum a)
def visit(self, Paper p)
def visit(self, Glass g)
def visit(self, Cardboard c)
| [
"mindviewinc@gmail.com"
] | mindviewinc@gmail.com |
d8efecb43d9198e3dd2221f4e39fb241646378fc | 0032d988541e85c47b5034c20ecf88220dde5a95 | /openbook_posts/migrations/0026_auto_20190414_1620.py | 242d6b7b2f6ad2429773288abeaee56f0fb9ccf8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | OkunaOrg/okuna-api | eabd37fef9d2be59b590ed8d72bee084ac377997 | f87d8e80d2f182c01dbce68155ded0078ee707e4 | refs/heads/master | 2022-02-04T21:31:10.577601 | 2021-12-28T18:20:39 | 2021-12-28T18:20:39 | 151,052,951 | 185 | 92 | MIT | 2022-01-13T01:00:40 | 2018-10-01T07:44:46 | Python | UTF-8 | Python | false | false | 444 | py | # Generated by Django 2.2 on 2019-04-14 14:20
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('openbook_posts', '0025_post_is_edited'),
]
operations = [
migrations.AlterField(
model_name='post',
name='... | [
"joel@open-book.org"
] | joel@open-book.org |
b613607484ff4991e3b7a52462661a1989ffd82b | 9b41bd4d829b7b4b5fc7ea2f375089793f34beb0 | /lib/googlecloudsdk/api_lib/app/appengine_client.py | baa0ff95581004e5a3dbd6f42446a6baadea863d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | eyalev/gcloud | 20a596f9cbf7873eaea652a0b2ad080678f1598c | 421ee63a0a6d90a097e8530d53a6df5b905a0205 | refs/heads/master | 2020-12-25T14:48:11.142544 | 2016-06-22T08:43:20 | 2016-06-22T08:43:20 | 61,703,392 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,561 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"eyalev@gmail.com"
] | eyalev@gmail.com |
a9194341e115335348649466389655b10bc7ccd4 | caa05194b8f11f29a19767c94fdc93628be694d5 | /nemo/collections/nlp/modules/common/transformer/transformer_decoders.py | 910a7104ea24d2870a596d91e46359933d887e99 | [
"Apache-2.0"
] | permissive | Jimmy-INL/NeMo | a589ab0ab97b9ccb8921579670e80c470ce7077b | 6a3753b3013dc92a3587853d60c5086e2e64d98f | refs/heads/main | 2023-04-02T22:28:29.891050 | 2021-04-13T18:22:24 | 2021-04-13T18:22:24 | 357,681,603 | 1 | 0 | Apache-2.0 | 2021-04-13T20:34:12 | 2021-04-13T20:34:12 | null | UTF-8 | Python | false | false | 8,169 | py | # Copyright (c) 2020, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | Jimmy-INL.noreply@github.com |
08541c40fee9474b87a66113054f486ea71f0e98 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /azure-mgmt-network/azure/mgmt/network/models/network_interface.py | fa19b8e2ad03dfa74bef269fdcb7d724b08d0661 | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 4,531 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
cbc244e711bf6a4c305a2d03973ffb5ac09658b0 | 85a6fcace7eaff15242595bdf9b9e8f41116dc7f | /Round A/workout.py | 7d0a0bd6e2ed76a2a224a03c3a89e1a9f3b430f1 | [
"MIT"
] | permissive | Meenadshi/GoogleKickStart-2020 | e0dfd4f2e44a39c5c58de034265baf2fc7a81f9b | 7c60b5a7a6c9daaf3f20b28d6b60aab19f5f22df | refs/heads/main | 2023-08-15T23:41:31.484139 | 2021-10-17T00:34:58 | 2021-10-17T00:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # Copyright (c) 2020 kamyu. All rights reserved.
#
# Google Kick Start 2020 Round A - Problem C. Workout
# https://codingcompetitions.withgoogle.com/kickstart/round/000000000019ffc7/00000000001d3f5b
#
# Time: O(Nlog(MAX_DIFF))
# Space: O(1)
#
def check(M, K, target):
count = 0
for i in xrange(1, len(M)):
... | [
"kamyu104@gmail.com"
] | kamyu104@gmail.com |
ab81b868a0040eb8cd4674fd20d3f934f5141499 | 981ecc9cf59dd6f839c3e40d26601efb1d073558 | /src/face_recognition/youtube_dl/extractor/tf1.py | e595c4a69b3f03361abc05f6bca61adecb61cf36 | [
"MIT"
] | permissive | lodemo/CATANA | 469e0684b816f09ac74f186552b463cc77db369e | a349f460772511ccbb16429b40bfb50f774d45d4 | refs/heads/master | 2023-03-30T04:07:12.070332 | 2021-02-03T21:47:32 | 2021-02-03T21:47:32 | 102,767,095 | 12 | 6 | MIT | 2023-03-24T21:55:24 | 2017-09-07T17:36:45 | Jupyter Notebook | UTF-8 | Python | false | false | 2,239 | py | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
class TF1IE(InfoExtractor):
"""TF1 uses the wat.tv player."""
_VALID_URL = r'https?://(?:(?:videos|www|lci)\.tf1|(?:www\.)?(?:tfou|ushuaiatv|histoire|tvbreizh))\.fr/(?:[^/]+/)*(?P<id>[^/?#.]+)'
_TESTS = [{
'... | [
"moritzlode@gmail.com"
] | moritzlode@gmail.com |
256a78690243b47369486b84acba56ba650f403c | 4131625553ff59b4c730ae7148dd5d603d8cb87d | /hackerEarth/challenges/iitKanpurFreshersProgrammingContest2016/pokeluck.py | 30419fb90a7798a46de3e00cf2d4155fda419afc | [
"MIT",
"Apache-2.0"
] | permissive | odonnmi/learnNPractice | 29034304303aab3827e6b3334b1d7d9d65b93e54 | eb1c775e4d6e35cebb7b109b46b91f9aecb2d9ec | refs/heads/master | 2020-12-04T14:52:00.520219 | 2019-09-03T06:30:03 | 2019-09-03T06:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | # Pokeluck
#######################################################################################################################
#
# Mewtwo is one of the rarest and most famous pokemons in thw pokemon world. If any pokemon gets to fight with
# Mewtwo, he is considered to be "1-lucky". A pokemon that gets to fight w... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
e4d0583561a6158725a236905afe2fbba09c6263 | d1ad901e1e926d9c92ce4dc7a7ba3c6ee91a65e2 | /spytest/apis/qos/qos.py | c4158600f29cdeb92e9d1a8b3ac6ac00fa192bab | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | SubhajitPalKeysight/sonic-mgmt | ff59c2c5baf53cc2575aea2d541278fc9cf56977 | e4b308a82572996b531cc09cbc6ba98b9bd283ea | refs/heads/master | 2022-12-31T01:03:47.757864 | 2020-10-15T11:04:37 | 2020-10-15T11:04:37 | 286,815,154 | 1 | 1 | NOASSERTION | 2020-08-11T18:08:34 | 2020-08-11T18:08:33 | null | UTF-8 | Python | false | false | 5,034 | py | import re
from spytest.utils import filter_and_select
from spytest import st
import json
def verify_qos_queue_counters(dut,port,queue_name,param_list,val_list,tol_list):
'''
verifies QOS queue counters in the CLI show qos queue counters
:param dut: Device name where the command to be executed
:type dut... | [
"noreply@github.com"
] | SubhajitPalKeysight.noreply@github.com |
6585fb31b416dfd35f83c956c594528d69b6d742 | 3fe5046326c0e6a63b9de6ab4de8f094f1e49614 | /bin/indent-ged | 165c4adbf540abe1e9a436dfd7f6e341711abfa8 | [] | no_license | dave-shawley/ged-work | cc7d6b71a58e3ac05d94177c018efe969fc60e0d | 1edc7d6c2b871d65668a7ec347a42d3727e615d1 | refs/heads/master | 2020-03-23T22:01:52.407922 | 2019-04-21T14:33:06 | 2019-04-21T14:33:06 | 142,148,536 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/usr/bin/env python
#
import sys
with open(sys.argv[1], 'r+') as f:
lines = f.readlines()
f.seek(0)
for line in lines:
indent, rest = line.split(None, 1)
f.write('\t' * int(indent))
f.write(line)
| [
"daveshawley@gmail.com"
] | daveshawley@gmail.com | |
cefb634734daaaddf09a98024d5ec5e44fb354b5 | edb88981aa1420af7e074068ed7818b9d904a3dd | /tags/release-0.4.2/minds/test/test_cachefile.py | 550d17ef92064fd5da222650ab9c462809cf2eb8 | [] | no_license | BackupTheBerlios/mindretrieve-svn | 101c0f1dfc25d20d5f828b6fd0d43301b773af4e | 463745fcf1c1d5b1f6c201c30bcc339c99b437ed | refs/heads/master | 2021-01-22T13:57:31.225772 | 2006-04-28T04:24:43 | 2006-04-28T04:24:43 | 40,801,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | """
"""
import os, os.path, sys
import unittest
from config_help import cfg
from minds import cachefile
class TestCacheFile(unittest.TestCase):
FILE1 = 'testcache'
def setUp(self):
self.pathname = os.path.join(cfg.getPath('logs'), self.FILE1)
self.cleanup()
def t... | [
"tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990"
] | tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990 |
788e4f26f9ce4a49e8009089a81dd509608996ca | 1c527a1944264784ba6ed237a723376bdee47f02 | /src/utl/strip_csv.py | 0c3dc9fa82235b03ec8b3ca868c5a6d64b12ed89 | [] | no_license | mikegleen/modes | 3544517467b77ddb21ec50c2a624b98e0a7ea308 | e77c89f28c623ce8fd30d7727a1b914461c6a0fd | refs/heads/master | 2023-09-03T15:10:26.931110 | 2023-08-27T07:31:42 | 2023-08-27T07:31:42 | 139,562,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | """
For each cell in a CSV file, strip leading and trailing whitespace.
"""
import codecs
import csv
import sys
def main():
incsv = codecs.open(sys.argv[1], 'r', 'utf-8-sig')
outcsv = codecs.open(sys.argv[2], 'w', 'utf-8-sig')
outwriter = csv.writer(outcsv)
for row in csv.reader(incsv):
fo... | [
"mike.gleen@gmail.com"
] | mike.gleen@gmail.com |
08a13407b68ca6cda24394e7cdfc4eb4314bec1e | bc64931a5cdfed6d54a8d8828e9b9d4510d7a998 | /test/multisig/commands/create_multisig_address_test.py | 83ae9dbd6d76cdcf5210d0bea2085f4dc26f7cac | [
"MIT"
] | permissive | valentinlehuger/iota.lib.py | 4b9ddfda9c283b4fde6d9ba6ab5d6c1add5cd920 | e345de981829a36ceaccf3862835c0dd28486950 | refs/heads/master | 2021-01-19T12:26:09.709236 | 2017-07-16T01:19:39 | 2017-07-16T01:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,866 | py | # coding=utf-8
from __future__ import absolute_import, division, print_function, \
unicode_literals
from unittest import TestCase
import filters as f
from filters.test import BaseFilterTestCase
from iota import TryteString
from iota.adapter import MockAdapter
from iota.crypto.types import Digest
from iota.filters i... | [
"phx@phx.ph"
] | phx@phx.ph |
12098a4349966f1bb91731bacb395b298b3dec81 | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /3heptane_pdep/pdep/network42_1.py | ba15fe7bcaabbec6ac0c67a81fd946ab69ff1f2e | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 51,612 | py | species(
label = 'CCCC(CCC)O[O](138)',
structure = SMILES('CCCC(CCC)O[O]'),
E0 = (-164.605,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([2750,2764.29,2778.57,2792.86,2807.14,2821.43,2835.71,2850,1425,1433.33,1441.67,1450,1225,1241.67,1258.33,1275,1270,1293.33,1316.67,1340,700,733.333,766... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
30fc99c1e299f230a6679c3c4150367665d667e7 | 30736dab9d8e682e5603d4803349144a5f6a84fb | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/operations/_resources_operations.py | 2532fbe114047a2aa4df6e55706d0512029e99c1 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | montgomp/azure-sdk-for-python | 6fcaffc59f4321852aa71109691e94ad38c66464 | 0ffb0b0de095b97cbc5b69309bbce0a3b91d3eb4 | refs/heads/master | 2020-12-06T11:08:01.683369 | 2020-01-07T23:24:42 | 2020-01-07T23:24:42 | 232,445,563 | 1 | 0 | MIT | 2020-01-08T00:45:33 | 2020-01-08T00:45:33 | null | UTF-8 | Python | false | false | 64,532 | 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 ... | [
"zikalino@microsoft.com"
] | zikalino@microsoft.com |
eb7ae1ac126c5b743c4c5ef5c4ccf26c00e3fe0b | 6468584be4f1400ca18dabe59a5c0f05e1f45b03 | /dsl/features/create_ngram_matrix.py | 6e9dd4263e7604fd6bf0246dd03e788605d20f6d | [
"MIT"
] | permissive | juditacs/dsl | 824e04e77d7bf44aab7e0b820b3f36fea9f09e87 | d6212cb2ff0755ceed8f37ee2f80ab47c9dc780c | refs/heads/master | 2021-01-14T13:21:52.215072 | 2020-04-16T09:32:02 | 2020-04-16T09:32:02 | 35,669,552 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | from sys import argv, stderr
import cPickle
from featurize import Tokenizer, Featurizer
from dsl.representation.model import Representation
def main():
N = int(argv[1]) if len(argv) > 1 else 3
t = Tokenizer(filter_punct=True, ws_norm=True, strip=True, replace_digits=True)
f = Featurizer(t, N=N)
f.fea... | [
"judit@sch.bme.hu"
] | judit@sch.bme.hu |
4f31d3739a8a0169184bb538944118b6f95aec4a | fd4df5cf34f8427153bf01d25c39ded9315b8d6a | /tests/test_ram.py | 7a12aff7cec9d97af7a57edbc2623b3b2f0b1518 | [
"BSD-2-Clause"
] | permissive | jepebe/nes | 9ac00e89cf474b7811020d18bf7fd8f15b556339 | 79e6ad689473b7a3a4f3b6d7cf2c381220fcf140 | refs/heads/master | 2023-01-05T22:38:30.714836 | 2020-10-26T07:33:10 | 2020-10-26T07:33:10 | 300,615,959 | 1 | 1 | null | 2020-10-26T07:33:11 | 2020-10-02T13:01:36 | Python | UTF-8 | Python | false | false | 567 | py | from nes.bus import Bus
class TestCartridge:
def cpu_write(self, addt, value):
return None
def cpu_read(self, addr):
return None
def test_ram():
bus = Bus()
bus.insert_cartridge(TestCartridge())
for addr in range(0x0000, 0x800):
bus.cpu_write(addr, 0xff)
assert b... | [
"jepebe@users.noreply.github.com"
] | jepebe@users.noreply.github.com |
af1f62d0bf863e6597fbe007f00340142d4450ce | 16b2c2365eff11f34ae260321e6dde78ab09b45d | /api/api_services/PersonService.py | 14c5f4056460582f3abd2dd4a7f5dc56475455ed | [] | no_license | laken11/TMS | bf941802e350a16db0f2314330ad315e73ce48f0 | c271f2cbb1624ab943c10bacaa6406ec8ca08083 | refs/heads/dev | 2023-04-27T22:03:38.811267 | 2021-05-08T12:06:54 | 2021-05-08T12:06:54 | 362,518,465 | 0 | 0 | null | 2021-05-05T10:07:54 | 2021-04-28T15:27:28 | Python | UTF-8 | Python | false | false | 1,823 | py | from abc import ABCMeta, abstractmethod
from typing import List
from api.api_dto.PersonDto import *
from api.api_repository.PersonRepository import PersonRepository
class PersonManagementService(metaclass=ABCMeta):
@abstractmethod
def create_person(self, model: CreatePersonDto):
"""Create a person ob... | [
"omitogunopeyemi@gmail.com"
] | omitogunopeyemi@gmail.com |
7fc48ac64107c97a8357f111ccd641bcaaf880af | aca01c2d073cc9ca2b71e12b8ed87a13a3d61438 | /design-patterns/src/iterators-ksiazka-adresowa.py | bed9ad1fa41d7eb0c99cdd60435c1395e01f065b | [
"MIT"
] | permissive | sli1989/book-python | ee2ee0f37b3173b6921db722a4cb2593d6df1f2b | 51ea279bcc26c4b9b8a1d726e2683c019a28d62b | refs/heads/master | 2020-04-15T11:39:07.209256 | 2019-01-06T23:27:55 | 2019-01-06T23:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | class Kontakt:
def __init__(self, imie, nazwisko, adresy=[]):
self.imie = imie
self.nazwisko = nazwisko
self.adresy = adresy
class Adres:
def __init__(self, **kwargs):
for key, value in kwargs.items():
setattr(self, key, value)
kontakt = Kontakt(imie='Pan', nazwis... | [
"matt@astrotech.io"
] | matt@astrotech.io |
d8074cdceef3099fac3b9fe5188dce7732392b2d | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/Clarification/Backtracking/生成括号.py | 79c4cbc77e31405a0b2e94b1f993c9dc312741f0 | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | UTF-8 | Python | false | false | 685 | py | # 给出 n 代表生成括号的对数,请你写出一个函数,使其能够生成所有可能的并且有效的括号组合。
#
# 例如,给出 n = 3,生成结果为:
#
# [
# "((()))",
# "(()())",
# "(())()",
# "()(())",
# "()()()"
# ]
class Solution:
def generateParenthesis(self, n: int) -> List[str]:
ans = []
def backtrack(s='',left=0,right=0):
if len(s... | [
"mzm@mail.dlut.edu.cn"
] | mzm@mail.dlut.edu.cn |
eb7c72bc1dfe900c646c7d26ddc66400e27f3755 | 60f9b5dce4d11f1e89da620915918dacba738b45 | /billiard/reduction.py | 11ea7c4913c98a398df8837bd3ac3dfc3807ca5e | [
"BSD-3-Clause"
] | permissive | dexter-xiong/billiard | 5e7497a29d14b11b19cab5008110e69d3c9bae19 | 0fedae7cb7c7408a4287e3d161b4f2b63541c279 | refs/heads/master | 2020-12-31T01:36:59.953134 | 2014-12-18T20:58:25 | 2014-12-18T20:58:25 | 33,759,423 | 0 | 0 | null | 2015-04-11T02:25:20 | 2015-04-11T02:25:20 | null | UTF-8 | Python | false | false | 8,976 | py | #
# Module which deals with pickling of objects.
#
# multiprocessing/reduction.py
#
# Copyright (c) 2006-2008, R Oudkerk
# Licensed to PSF under a Contributor Agreement.
#
from __future__ import absolute_import
import functools
import io
import os
import pickle
import socket
import sys
__all__ = ['send_handle', 'recv... | [
"ask@celeryproject.org"
] | ask@celeryproject.org |
309933581c5906d2db8e8db38c4eb5949f694987 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03157/s868052818.py | ec6805ad1b92df0a841e5a07b2af49a175993650 | [] | 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 | 1,370 | py | from collections import defaultdict
H, W = map(int, input().split())
S = [input() for _ in range(H)]
es = defaultdict(list)
# あるマスについて左右見なくても右に向かってみていけば逆もとれる
for i in range(H):
for j in range(W):
if j < W-1 and S[i][j] != S[i][j+1]:
es[(i,j)].append((i,j+1))
es[(i,j+1)].append(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
79db950c2f9450ff729d2ac03f6271965dd807cf | d5049c3b59b943a158389deaefe9c48970a43c6c | /Lab4/UI.py | e33e0458a9bc51d6e7bef9164a7954f72ed438a3 | [] | no_license | LauraDiosan-CS/lab04-gatsp-DiosDuck | 18e013df30b1a8d0e182190c693cad7da47e68d1 | 647ae011fa5edf7ea4a4187b684f351b0482c328 | refs/heads/master | 2022-04-22T20:47:47.311060 | 2020-03-27T17:59:05 | 2020-03-27T17:59:05 | 250,198,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from Service import Service
class UI():
def __init__(self):
self.__service=None
def main(self):
while 1:
try:
x = input()
if x == "0":
return
elif x == "1":
file=input()
... | [
"noreply@github.com"
] | LauraDiosan-CS.noreply@github.com |
21b6deb849e7b391aabeb811cc79bf8b7ccee1eb | 21238a26742309adb860a04174ea5360f729ad39 | /SourceCode/.history/Detector_20181224025625.py | b39a3a2293f57ceff29bef9d0e2a2f2758353cac | [] | no_license | Shehabalaa/Viola-Jones-Face-Detection | 5b5d0c3835e0de11658d35941fa3d19468452e93 | b6522b96394df8d67266b41a803bc30a93fc5c49 | refs/heads/master | 2020-04-23T03:08:56.976486 | 2019-06-23T10:39:25 | 2019-06-23T10:39:25 | 170,869,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,957 | py | from IntegralImage import toIntegralImage as toII
import cv2
import numpy as np
import random
from sklearn.cluster import MeanShift
from Cascade import Cascade
import itertools
import Utils
from math import floor
from functools import partial
from multiprocessing import Pool
base_detector_width = 24.
def... | [
"shehabalaa97@gmail.com"
] | shehabalaa97@gmail.com |
eda7d59af2ae751d7b25d53cd82272fde7a20c7d | eb19175c18053e5d414b4f6442bdfd0f9f97e24d | /tests/contrib_django/test_converter.py | 8c04699773df54369df8be04d36665643a5f9a55 | [
"MIT"
] | permissive | jhgg/graphene | 6c4c5a64b7b0f39c8f6b32d17f62e1c31ca03825 | 67904e8329de3d69fec8c82ba8c3b4fe598afa8e | refs/heads/master | 2020-12-25T21:23:22.556227 | 2015-10-15T19:56:40 | 2015-10-15T19:56:40 | 43,073,008 | 1 | 0 | null | 2015-09-24T14:47:19 | 2015-09-24T14:47:19 | null | UTF-8 | Python | false | false | 3,521 | py | from py.test import raises
from collections import namedtuple
from pytest import raises
import graphene
from graphene import relay
from graphene.contrib.django.converter import (
convert_django_field
)
from graphene.contrib.django.fields import (
ConnectionOrListField,
DjangoModelField
)
from django.db impo... | [
"me@syrusakbary.com"
] | me@syrusakbary.com |
2f961ffd53ac5c591c95cfb96f730b5bb45915e4 | 133e8c9df1d1725d7d34ea4317ae3a15e26e6c66 | /python/数据结构与算法/02链表/单链表.py | 9acd2da0cfb6f8e8a747ab11e1d4d6a83f289443 | [
"Apache-2.0"
] | permissive | 425776024/Learn | dfa8b53233f019b77b7537cc340fce2a81ff4c3b | 3990e75b469225ba7b430539ef9a16abe89eb863 | refs/heads/master | 2022-12-01T06:46:49.674609 | 2020-06-01T08:17:08 | 2020-06-01T08:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | # -*- coding: utf-8 -*-
class Node(object):
def __init__(self, value=None, next=None):
# 这里我们 root 节点默认都是 None,所以都给了默认值
self.value = value # 值
self.next = next # 链接域, 指针
def __str__(self):
"""方便你打出来调试,复杂的代码可能需要断点调试"""
return '<Node: value: {}, next={}>'.form... | [
"1248644045@qq.com"
] | 1248644045@qq.com |
116cc3115d4ac2f1294d91646a2ab68c1d360cde | eff7a4a914e912eef2bc7a480795cfaae95eac91 | /python/Exercicios/8.16/8.16v2.py | 357d73983e83043c3f6a648ce289af847d27c6f8 | [] | no_license | HenDGS/Aprendendo-Python | fb3cf05d8911a7084c7805a69b8df06f9ce3d311 | 622a83983f3f77e5e74411e016663f05449be537 | refs/heads/master | 2023-08-17T14:17:53.304676 | 2021-09-14T02:51:52 | 2021-09-14T02:51:52 | 294,150,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import funcao
a=funcao.funcao("camaro","Chevrolet",ano=2015,porência=461)
print(a)
| [
"henrique1443@hotmail.com"
] | henrique1443@hotmail.com |
719ec5e11dce6e24bd6b5f91b3469b407c0160a1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02257/s888628284.py | 59550bf214754874e7673f5cf26d7edf5cc0ca07 | [] | 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 | 321 | py | # -*- coding: utf-8 -*-
def isPrime(p):
if p == 2:
return True
elif p < 2 or p%2 == 0:
return False
elif pow(2, p-1, p) == 1:
return True
else:
return False
n = int(raw_input())
count = 0
for i in range(n):
if isPrime(int(raw_input())):
count += 1
print coun... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed222c561a8364dd729c7da79f866fc6f3032907 | 8419f7d24df69a2cb92f04d7369c11c8141b0fcd | /tests/selection_test.py | 50d2e7a9e5f36e1495360ba5839de57cc89d17e9 | [
"MIT"
] | permissive | heyuqi1970/vaex | c1768eac9d5126e7efd1e139522feb9d65a7ecc9 | 867c180427a23e3b71df47305d7e8866b6673a98 | refs/heads/master | 2021-07-09T08:45:21.634354 | 2020-04-23T17:23:58 | 2020-04-23T17:23:58 | 242,555,084 | 2 | 0 | MIT | 2020-04-24T03:40:17 | 2020-02-23T16:54:13 | Python | UTF-8 | Python | false | false | 6,325 | py | from common import *
def test_selection_basics(df):
total = df["x"].sum()
df.select("x > 5")
df.select("x <= 5", name="inverse")
counts = df.count("x", selection=["default", "inverse", "x > 5", "default | inverse"])
np.testing.assert_array_almost_equal(counts, [4, 6, 4, 10])
df.select("x <... | [
"maartenbreddels@gmail.com"
] | maartenbreddels@gmail.com |
5c187cef52ac8e1006273cd22ea80940f0c1b7d1 | 485ba262357e10460c74482cd407003ac86886bb | /pyNastran/converters/openfoam/test_openfoam_gui.py | 0d93a5f9986ab459a658b741ae5694fddee65246 | [] | no_license | shangke00GitHub/pyNastran | 13202f3f504dca044755088971176a407622425b | c4509df6ef6c3291c005caada831b443feee734f | refs/heads/master | 2020-11-30T02:45:48.774507 | 2019-12-20T00:56:25 | 2019-12-20T00:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | py | import os
import unittest
from cpylog import get_logger
import pyNastran
from pyNastran.gui.testing_methods import FakeGUIMethods
from pyNastran.converters.openfoam.block_mesh import read_block_mesh, mirror_block_mesh
from pyNastran.converters.openfoam.face_file import FaceFile
from pyNastran.converters.openfoam.openf... | [
"mesheb82@gmail.com"
] | mesheb82@gmail.com |
1df490347f6ba150e4c18eda8adb09b65cfd0cbd | 7ca50753ed3ff4c6115f8be3de675c91631c382f | /manage.py | 8c8509f5ee95dfc01cb27aa14ab0dd2c753db751 | [] | no_license | harrywang/flask-tdd-docker | a63ca86062dc05ab99591ef4ce609d90868f6e77 | 2677c52ae8dba84695d032fd309ee864f7fb2521 | refs/heads/master | 2023-05-11T15:44:04.689565 | 2020-03-21T20:00:57 | 2020-03-21T20:00:57 | 248,801,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # manage.py
import sys
from flask.cli import FlaskGroup
from project import create_app, db
from project.api.users.models import User
app = create_app()
cli = FlaskGroup(create_app=create_app)
@cli.command('recreate_db')
def recreate_db():
db.drop_all()
db.create_all()
db.session.commit()
@cli.comma... | [
"harryjwang@gmail.com"
] | harryjwang@gmail.com |
ed2f46727aa6af253e2f0bda84ca29d56ea9a2af | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network4339_1.py | 52702a2b7fa8af0d6b888aed032edd7cb7a99807 | [] | no_license | aberdeendinius/n-heptane | 1510e6704d87283043357aec36317fdb4a2a0c34 | 1806622607f74495477ef3fd772908d94cff04d9 | refs/heads/master | 2020-05-26T02:06:49.084015 | 2019-07-01T15:12:44 | 2019-07-01T15:12:44 | 188,069,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,984 | py | species(
label = '[CH]C(=[CH])C([CH2])C(18883)',
structure = SMILES('[CH]C(=[CH])C([CH2])C'),
E0 = (739.718,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3000,3100,440,815,1455,1000,2750,2800,2850,1350,1500,750,1050,1375,1000,1380,1390,370,380,2900,435,3120,650,792.5,1650,350,440,435,172... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
561a473b6aa704f7d0651d89278fc1942b376384 | b3528a3795ce373e27d52362128de3cff6f9969d | /python/orbs/target/password-generator/slices1589360571.263371/success/success_39_0.py | f1896f56cc09413b60c95ec2ce3c24bce6dab1fd | [] | no_license | greenmonn/daily-coding | 43e0f3775678c7d6116df7ba5034ea18489d87c9 | ef6ecc88e6db61e18364eef3ea071c11e1385a99 | refs/heads/master | 2023-01-14T04:59:14.130309 | 2021-02-08T23:32:56 | 2021-02-08T23:32:56 | 157,735,438 | 1 | 1 | null | 2022-12-21T02:13:17 | 2018-11-15T15:47:37 | Python | UTF-8 | Python | false | false | 5,253 | py | #!/usr/bin/env python3
# m4ngl3m3! v0.1.1
# Common password pattern generator using strings list
# Follow (Medium / Twitter): @localh0t
import argparse
import sys
import os
from Mangler import ManglingParameters
from Mangler import Mangler
def build_parser():
"""Add parser arguments and return an instance of A... | [
"greenmon@kaist.ac.kr"
] | greenmon@kaist.ac.kr |
e382659fe44a65b3a060e2c0d9cb78015fd0bea2 | 28436c3e8d5f59f9011bfac7fcdef977c345aa7b | /2021-05-15/homework1.py | 960425e000fa70c2621ff185c6e2e587beb46b6b | [] | no_license | engeeker/python-for-kid-2021 | 533d7b54ef23d99727642ba7a119e0a46577651b | 783d3582c6e9009c23213378650160f7dc937409 | refs/heads/main | 2023-08-02T15:18:17.367567 | 2021-10-01T13:15:56 | 2021-10-01T13:15:56 | 347,414,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | import turtle
import random
p = turtle.Pen()
color_list = ['red', 'yellow', 'blue', 'green']
p.speed(0)
turtle.bgcolor('black')
p.color(random.choice(color_list))
for i in range(200):
p.forward(i * 2)
p.left(91)
turtle.Screen().exitonclick() | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
4a07ea84d52063b402726d57dbdf3727faf67046 | b09584e81194e40070d320c763856d6b0721935f | /tools/Polygraphy/tests/backend/trt/test_loader.py | 74ddfb66e8dcb83df156387239bb16de0286f81a | [
"BSD-3-Clause",
"Apache-2.0",
"ISC",
"BSD-2-Clause",
"MIT"
] | permissive | MarkMoTrin/TensorRT | c7a46a5877b4a0687ffe2b694515e7fc923d0443 | 7f269a7e6a62f555100d9b72afb9977e702ad488 | refs/heads/main | 2023-09-05T13:08:58.048025 | 2021-10-19T08:23:08 | 2021-10-19T17:25:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,003 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appl... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
352fc2592e428da6a89e6a9b67cbe4e96f892a87 | 3ca6b34676a0adeaba85a2953a8c9abf5d6ef3e4 | /cap 2/ex2.3 mensagem_pessoal.py | d266787bc99096ebbba2c49184dbe991fa9c8afc | [] | no_license | giusepper11/Curso-intensivo-Python | 34fb8e94c7c9afb09f54d8fc67136b337d0ef106 | 613cd502af3ff877dac0d62d9eb09b290d227838 | refs/heads/master | 2021-08-30T11:41:42.824065 | 2017-12-17T19:47:15 | 2017-12-17T19:47:15 | 114,535,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | name = "Giuseppe"
print('Alo ' + name + ', voce gostaria de aprender mais sobre python? ')
| [
"giusepper11@gmail.com"
] | giusepper11@gmail.com |
804b7d2aeaf690de61b0b87bbb40796c12287a2a | dfaf5cd5607c2c4e55ec9173d2d7ca12842db129 | /104_findDiagonalOrder.py | add0e471b6091ea711a6ab960ca377f92f09bd77 | [] | no_license | khinthandarkyaw98/Leetcode | 2b0be053931b3ddec6309d136228dae1f4c61b2b | 578f2a38d8a41864ebfd6c4e941f6915c7c0a508 | refs/heads/master | 2023-06-24T02:34:59.399319 | 2021-07-14T19:37:14 | 2021-07-14T19:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import collections
class Solution:
def findDiagonalOrder(self, nums: List[List[int]]) -> List[int]:
res = []
q = collections.deque()
q.append((0,0))
while q:
row, col = q.popleft()
if col == 0 and row < len(nums)-1:
q.append((row + 1, ... | [
"noreply@github.com"
] | khinthandarkyaw98.noreply@github.com |
be4a4e2c0ee32b41a05520c16e30dac4c1106efe | 922e923bdab099efa7161f5806ed262ba5cc84c4 | /apps/documents/migrations/0006_boardmeetingaudio_boardmeetingvideo.py | 22c1e2091ad36ddb3047bb2b82dd82b211ce2165 | [
"MIT"
] | permissive | iamjdcollins/districtwebsite | eadd45a7bf49a43e6497f68a361329f93c41f117 | 89e2aea47ca3d221665bc23586a4374421be5800 | refs/heads/master | 2021-07-05T19:06:12.458608 | 2019-02-20T17:10:10 | 2019-02-20T17:10:10 | 109,855,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-11 17:04
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('objects', '0005_auto_20171210_1447'),
('documents',... | [
"jd@iamjdcollins.com"
] | jd@iamjdcollins.com |
71420c46e794fbf9129e80cd832982ba3453f560 | c0836fbc0d26ec5b4fbef8b116536ee1573a63e3 | /1_basic/2_pandas/pandas_15.py | c103bccdeca3d2290f5bb6aabbc243f1cc9500b8 | [] | no_license | SungmanHan/machineLearningStudy | 5e4c2869351cceddb6cd212323c4a710a97984cc | 36854f946252158b2cdb18b6842f0c905d0811b1 | refs/heads/master | 2020-07-12T21:21:18.126845 | 2019-09-25T13:23:50 | 2019-09-25T13:23:50 | 204,908,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | # -*- coding: utf-8 -*-
import pandas as pd
# 사이킷 런의 sklearn.datasets 패키지 내부의
# 학습 데이터를 로딩하는 코드
# (load_... 이름으로 함수가 정의되어 있음)
from sklearn.datasets import load_iris
# iris 데이터를 로딩하는 코드
iris_data = load_iris()
# Bunch 클래스 타입의 값이 반환
# 파이썬의 딕셔너리와 유사한 타입으로
# 키값을 사용하여 데이터를 추출할 수 있음
print(type(iris_data))
# Bunch 클래스 k... | [
"hansung926@gmail.com"
] | hansung926@gmail.com |
8edae035598a6bff9f6a7325d526abfd07cb3fab | e5ba55ac56d2d07aeebd7253fbe5d186196c9a52 | /catkin_ws/catkin_ws/build/iai_kinect2/kinect2_registration/catkin_generated/pkg.installspace.context.pc.py | 85e878c71d08a7cf827ee4e610db3258f4e5642e | [] | no_license | masiro97/darrsm | 5305a3e7c1fba2635a4925b9e079f45b40162862 | b881d00427d2af5d75ca509a191e57f2890e1ece | refs/heads/master | 2021-05-10T21:57:17.760536 | 2018-01-20T15:13:56 | 2018-01-20T15:13:56 | 111,084,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/cun/catkin_ws/install/include;/usr/include".split(';') if "/home/cun/catkin_ws/install/include;/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_... | [
"estrk7120@gmail.com"
] | estrk7120@gmail.com |
989cebdde1f1edb13d8b2c625c233a9d8db44468 | cd04112e1b8995cabb3464fe408c308aa3005bdd | /pylib/appy/pod/renderer.py | cd28abab24a9009d15aec2f623c459106b8ec56f | [] | no_license | vampolo/cacerp | 6fc132bf827fb9ec245f32d6caf6d4c5ab827e2d | 57aef2008ae4cb6e783d46b0cfc7cfc32b16a54c | refs/heads/master | 2021-01-19T05:28:57.675300 | 2011-03-28T17:17:24 | 2011-03-28T17:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,528 | py | # ------------------------------------------------------------------------------
# Appy is a framework for building applications in the Python language.
# Copyright (C) 2007 Gaetan Delannay
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# a... | [
"vincenzo.ampolo@gmail.com"
] | vincenzo.ampolo@gmail.com |
b942645e69d7dd1d7dcbcdb08855353708ff84f2 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /components/autofill/content/common/DEPS | c3505fa54c3ecf8453d1bfdeff494e6ca31545ae | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 58 | include_rules = [
"+content/public/common",
"+ipc",
]
| [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net | |
542816beffb8b703f3ac06dfc3663090ffee2d00 | b129c9b11e9d2c06114f45ce03a94f4f2a177119 | /hugin/haproxy/filters/userstate.py | c25adced17d38446916ca97be7ca2a70eced1dc0 | [] | no_license | pyfidelity/hugin.haproxy | a9e48e345b03ed9d361c0d6c8617135378f5c311 | 444e30350936883e7749c2371f394fa82c1644fe | refs/heads/master | 2016-09-01T17:29:48.210244 | 2014-11-24T12:34:51 | 2014-11-24T12:34:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | # Userstate is about detecting when users switch backend node when session affinity is used.
import re
from hugin.haproxy import registerFilter
from collections import deque
COOKIEMATCH = re.compile('.*="?(?P<cookie>\S+)')
class UserState(object):
def __init__(self):
self.duplicates = 0 # Redundant reloa... | [
"florian.schulze@gmx.net"
] | florian.schulze@gmx.net |
0535d5b25645641c17f7429e27beadf5cbf303d1 | 1b6fd0e1da9aa6d28b19540887ffcb5233ac3692 | /Resources/RP01/P01.3/sprites_001.py | 8bd0fb678689dd03c92fa1ffe7d2cdabc160fd01 | [] | no_license | rugbyprof/4443-2D-PyGame | a637cd1237f90ca30a484d9fb2b6738571777d8c | bba26f794bd85599cf0598c1c64feec59fa31246 | refs/heads/master | 2022-11-27T14:14:54.982351 | 2020-08-05T19:32:45 | 2020-08-05T19:32:45 | 271,365,653 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,735 | py | """
Sprite Helper
Description:
Loading a sprite animation and displaying it.
Problems using a single instance of image.
"""
# Import and initialize the pygame library
import pygame
import random
import json
import pprint
import sys
import os
import math
import glob
from helper_module import rgb_colors
from ... | [
"terry.griffin@msutexas.edu"
] | terry.griffin@msutexas.edu |
a90e6404551b5912048b4829a5294fbb441ab70e | 93a95c5b9411960b394cfb63e400910d7d1abf50 | /estoque/migrations/0002_auto_20210510_1515.py | ea13d302de4b62141beacc1712e501fe83515d36 | [
"MIT"
] | permissive | jonathan-mothe/estoque | 9377e4ac826fabe9d1a4f66f817204334a59a311 | de8d0ea87e67e93ad4922a2d81b1ba7d68a29845 | refs/heads/master | 2023-04-21T19:08:07.579886 | 2021-05-11T17:46:31 | 2021-05-11T17:46:31 | 364,916,799 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | # Generated by Django 3.2.2 on 2021-05-10 18:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('estoque', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='EstoqueEntrada',
... | [
"jonathan.mothe@gmail.com"
] | jonathan.mothe@gmail.com |
8384c25f0bd13dd9db7d550b2dcd676408c0460e | d5cc5b93483f3e13b13cb0580a1994583c70ebb8 | /tmuxp/testsuite/test_config_teamocil.py | 184d205016b1244ea37d8ce4677b4cf7cdbec981 | [
"BSD-3-Clause"
] | permissive | GoodDingo/tmuxp | b07293e3090760283f7e733fd538410f36f8bea7 | 23594fdae5473aaa31c33dae64ace59001847f9e | refs/heads/master | 2020-12-11T07:38:36.346464 | 2013-12-25T03:29:06 | 2013-12-25T03:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,985 | py | # -*- coding: utf-8 -*-
"""Test for tmuxp teamocil configuration..
tmuxp.tests.test_config_teamocil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2013 Tony Narlock.
:license: BSD, see LICENSE for details
"""
from __future__ import absolute_import, division, print_function, \
with_statement, unicode_lit... | [
"tony@git-pull.com"
] | tony@git-pull.com |
1fd9d339fb8682ef8a6f21a25cc9fe2d23ae8ca3 | 09bcd2a342fc79a4a7c30e24a76788d90df2176d | /galleria/artists/migrations/0001_initial.py | f3a25b6873d47bb0d9d6a0437de97740b0176461 | [
"Apache-2.0"
] | permissive | kamalhg/galleria | 48b2ed5ef1931ee12b7247caf7e50caa167c88ff | 18ee38e99869812e61244d62652514d1c46bf3f3 | refs/heads/master | 2020-12-27T12:15:22.233386 | 2014-06-18T15:53:54 | 2014-06-18T15:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,628 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Artist'
db.create_table('artists_artist', (
(... | [
"hum3@drummond.info"
] | hum3@drummond.info |
a0d0b8457024d2982d5052c463bd38f342cf93d4 | e18f0a32703fbe841d27c8a0e55eca9b9ab39cce | /run.py | c3e6569870cc01a9823fac62025ce182b58ea349 | [
"Apache-2.0"
] | permissive | qybing/tf-pose-estimation | 302550e74d457edea178b8e36a9cd58c1cbe89e8 | 9adc3d4bf1c87fba4df977b83cee8e656882fe15 | refs/heads/master | 2023-04-10T08:59:08.778691 | 2019-06-19T06:11:49 | 2019-06-19T06:11:49 | 189,166,320 | 0 | 0 | Apache-2.0 | 2023-03-25T00:06:18 | 2019-05-29T06:44:17 | PureBasic | UTF-8 | Python | false | false | 3,518 | py | import argparse
import logging
import sys
import time
from tf_pose import common
import cv2
import numpy as np
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
logger = logging.getLogger('TfPoseEstimatorRun')
logger.handlers.clear()
logger.setLevel(logging.DEBUG)
ch ... | [
"qiaoyanbing1@163.com"
] | qiaoyanbing1@163.com |
f7069d0de200d1883e7840ebfcdab0ad60192a08 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/abd.py | 3dd4529c22f77fef93c0dbd871cbccde845e5b30 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,840 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
bd94282c6683da22e869c64a0dd76f5ba27d7158 | 35c1dcb0c8a713725a8d9d3062df26b096a4c150 | /setup.py | 295d74e177fe1a2cc941145ea359d2970b74527a | [
"MIT"
] | permissive | ijgarcesc/pybiblio | 84fc78c09866a65bd13945ab36c8841587d74f09 | 02428eba8c4fcef3f9311ca9ba7be6bab661ca9e | refs/heads/master | 2021-07-15T07:40:08.319875 | 2017-10-18T13:57:08 | 2017-10-18T13:57:08 | 105,827,028 | 0 | 0 | null | 2017-10-04T22:48:12 | 2017-10-04T22:48:12 | null | UTF-8 | Python | false | false | 899 | py | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='pybiblio',
version='0.0.0',
description='Analysis of bibliographic information using python',
long_description='A tool for creating and gradding assignments in the Jupyter Notebook using t... | [
"jdvelasq@unal.edu.co"
] | jdvelasq@unal.edu.co |
3245b49aa803d9fd7eaad75b78856c0dd540cbf0 | 1d4adeca605818749247235dba11a90fbc154748 | /deprecated/services/deployment/deployment_controller.py | 6ccff0b553fb38655e4e8f6737b142ce9a9a71f7 | [
"Apache-2.0"
] | permissive | joshish-iu/cloudmesh-nist | 4598cd884fb9faaef5ea5cc5fa3e3920dbc6ebff | c26952859c2230231420058f6c488c9f6cc73218 | refs/heads/master | 2020-05-26T13:11:51.730994 | 2019-05-21T10:42:28 | 2019-05-21T10:42:28 | 188,243,290 | 0 | 0 | NOASSERTION | 2019-05-23T13:48:49 | 2019-05-23T13:48:48 | null | UTF-8 | Python | false | false | 905 | py | import connexion
import six
#from deployment_controller import *
from swagger_server.models.deployment import Deployment # noqa: E501
from swagger_server import util
from pymongo import MongoClient
client = MongoClient()
db = client['cm']
deployments = db['deployment']
def get_deployment():
"""
:return... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
d8482c372930f5b396b0f84fea8ef886b2b2b545 | 948205e4d3bbe2200ca41ffc4f450ee96948b50f | /picamera/mmalobj.py | ec167f2f6d6e24dfa2b1bba876addbc6c496c0e7 | [
"BSD-3-Clause"
] | permissive | TheSpaghettiDetective/picamera | 1a875dec7f616db059034317dee7b38060149253 | f7b9dcc66224d12ff5a22ece61d76cace2376749 | refs/heads/master | 2022-11-24T12:58:12.932558 | 2020-07-28T18:39:26 | 2020-07-28T18:39:26 | 283,290,128 | 2 | 1 | BSD-3-Clause | 2020-07-28T18:05:32 | 2020-07-28T18:05:32 | null | UTF-8 | Python | false | false | 150,486 | py | # vim: set et sw=4 sts=4 fileencoding=utf-8:
#
# Python header conversion
# Copyright (c) 2013-2017 Dave Jones <dave@waveform.org.uk>
#
# Original headers
# Copyright (c) 2012, Broadcom Europe Ltd
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted... | [
"dave@waveform.org.uk"
] | dave@waveform.org.uk |
63049adb954204a6d260ac373203abbc430dd063 | 67568ac53039fd633f9017bd368a13258191e1b2 | /thrift_example/file_transport/file/FileService.py | 429826b7eddda8fd50d339c35c87f6a40c1cd0ea | [] | no_license | starryrbs/rpc_shared | 22012bbb5e0916a178e088f1be58acedd589c13d | 6e4feb2929337ccb885ff629c13a0a6d3bc457d2 | refs/heads/master | 2022-12-11T04:27:24.176393 | 2020-09-02T16:01:37 | 2020-09-02T16:01:37 | 291,492,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 7,528 | py | #
# Autogenerated by Thrift Compiler (0.12.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | [
"1322096624@qq.com"
] | 1322096624@qq.com |
5cb291f086a1a6e113110c2af91826068dd57189 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/4287546/snippet.py | 9124f440cdeccffaef8a4bd8d92dd5e133c999f6 | [
"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 | 680 | py | # FROM: http://en.wikipedia.org/wiki/Base_36#Python_implementation
def base36encode(number):
"""Converts an integer into a base36 string."""
ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
if not isinstance(number, (int, long)):
raise TypeError('This function must be called on an integer.')
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
666459957700b84b14bec98f21fbd9d2c6441c2b | 7236d1d4873faa9735fd5e2d4598b211a370f731 | /project/n/projects/projects/ecommapp/ecommerce/migrations/0020_auto_20200928_1630.py | 7ceab26f28c88cea212b50ab80571813c500c591 | [] | no_license | Dreambigxz/my_first_django_app | 05f5a5d330d72084489f9306fca9ca232af13999 | 9e21ebcbe63c7394280558d2977ef8a796960e0d | refs/heads/main | 2023-01-03T18:45:20.712074 | 2020-10-23T09:05:47 | 2020-10-23T09:05:47 | 306,180,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.0.8 on 2020-09-28 15:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecommerce', '0019_products_color'),
]
operations = [
migrations.AlterField(
model_name='products',
nam... | [
"onyemordidaniel@gmail.com"
] | onyemordidaniel@gmail.com |
0209945db389ffcf041bf8356b57309837cca01c | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/profile_h262.py | b8e281c4665dfd372553426648bec8a362d66ae8 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 194 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
class ProfileH262(Enum):
MPEG2_422 = "MPEG2_422"
| [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
27e87424929b5c8237e98b92155346589f22cff5 | f00ad57c98e554470a72511dda7a7bfd160aca19 | /others/test_compress_str.py | 21fe737a9d075590a8f39e8909d0acdd69b93853 | [] | no_license | fanzhangg/algorithm-problems | d60115210aaaffcd094b34b9db5b46dadf93fe9e | 43b111ad625f197ba0905abceab9ee4484284e08 | refs/heads/master | 2021-07-12T20:24:46.265700 | 2020-07-06T17:58:31 | 2020-07-06T17:58:31 | 171,220,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from unittest import TestCase
from compress_string import compress_str
class TestCompressStr(TestCase):
def test_compress_str(self):
self.assertEqual(compress_str("AAAAaaBCCCDDe"), "A4a2B1C3D2e1")
| [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
497ff7a37a21b8d7b26e76ad4a2070a35baf71cc | bb87afa0fd2f5466f282ba93779293449ae72e9f | /apps/article/tasks.py | 0377213159cd91d4dfd25488e3ce850c0d8f288e | [
"MIT"
] | permissive | xuechuance/website | 14d50e6c66f4315f5829f5a2707fc7bdf3925266 | 91a017ea26806136a89f12d8620a4d99676a7497 | refs/heads/master | 2020-05-27T06:18:36.403271 | 2019-05-21T04:28:02 | 2019-05-21T04:28:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,889 | py | from __future__ import absolute_import
import datetime
from configparser import ConfigParser
from time import sleep
import requests
from celery import shared_task
from django.core.mail import send_mail
from random import Random
import random
from apps.article.models import Headlines
from apps.user.models impor... | [
"tarena_feng@126.com"
] | tarena_feng@126.com |
21ee44b6155df6c86db7afac320d841dd0a6eea7 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/zulip/2016/4/realm_filters.py | 3ebd74a423ccd5d544621ba6011b7915cf5d5e90 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 2,844 | py | from __future__ import absolute_import
from __future__ import print_function
from optparse import make_option
from django.core.management.base import BaseCommand
from zerver.models import RealmFilter, all_realm_filters, get_realm
from zerver.lib.actions import do_add_realm_filter, do_remove_realm_filter
import sys
cl... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
0bed982517ec2d1db37c3a013aeab72f14937675 | e832ec980dfb5cb52fb3116ca1ac79052cb02fae | /guo_py1811code/first/day_0325/code/requests_07_https.py | d38a5e8c6e7d7af4f5e858619f1ace95123202f2 | [] | no_license | Liu-Zhijuan-0313/Spider | e6b10ebd5f9b5c70803494e1b894ac4556dfc544 | bf04e9615e23350f7c0b9321ac3b7cbd4450dd3e | refs/heads/master | 2020-05-03T18:36:12.102519 | 2019-04-19T02:48:13 | 2019-04-19T02:48:13 | 178,766,396 | 0 | 0 | null | 2019-04-18T07:11:23 | 2019-04-01T01:50:37 | HTML | UTF-8 | Python | false | false | 106 | py | import requests
response = requests.get('https://kennethreitz.com', verify=True)
print(response.text)
| [
"1602176692@qq.com"
] | 1602176692@qq.com |
94709ea9fdd3f5b965a753f366702dbec38c259a | c0c6b41523d8f8071c88d4320d9040a6d1d2e3f4 | /problem1 | 80d2761714d5ce30c6ac12310c7fc42a98b8b028 | [] | no_license | GLAU-TND/python-programming-assignment-2-Manish-021 | 952cf9bd8a4f953074595f7c7d164541eba94443 | 782bdef864fadac653e500d03498de6c92c56382 | refs/heads/master | 2021-01-09T11:43:22.749103 | 2020-02-24T11:42:25 | 2020-02-24T11:42:25 | 242,287,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | t=eval(input())
b=[min(t)]
a=min(t)[-1]
t.remove(min(t))
for i in t:
for j in t:
if a==j[0] and j[-1]!=b[0][0]:
b.append(j)
a=j[-1]
t.remove(j)
break
b=b+t
print(b)
| [
"noreply@github.com"
] | GLAU-TND.noreply@github.com | |
81008224cac8591b4f00dcd38bf9b8e5cc34dc27 | 30ec40dd6a81dbee73e7f14c144e20495960e565 | /kubernetes/client/models/v1beta1_http_ingress_rule_value.py | 9653f80f26ca995284fb6ca79ec30368e71cd13e | [
"Apache-2.0"
] | permissive | jonathan-kosgei/client-python | ae5a46968bcee19a3c62e1cefe227131ac9e7200 | 4729e6865d810824cafa312b4d06dfdb2d4cdb54 | refs/heads/master | 2021-01-20T14:59:10.435626 | 2017-05-08T16:55:51 | 2017-05-08T16:55:51 | 90,700,132 | 1 | 0 | null | 2017-05-09T03:50:42 | 2017-05-09T03:50:42 | null | UTF-8 | Python | false | false | 3,300 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
a098dbcf2862c4b934dc7a374423ead058106d1c | 1e84a9fec36deaf9a55a2734749ea035f72ac869 | /KAKAO BLIND RECRUITMENT/2017/1차/다트 게임/refernece_code.py | f0d49073d4794a7333d54379d6f483324e86a55c | [] | no_license | mgh3326/programmers_algorithm | aa3afc91231550e1fec2d72d90e85b140f79d677 | b62f08ccccbdcac71e484d508985a5a9ce5f2434 | refs/heads/master | 2022-08-31T04:19:15.728666 | 2022-07-31T14:02:26 | 2022-07-31T14:02:26 | 201,747,526 | 0 | 0 | null | 2022-07-23T10:19:13 | 2019-08-11T10:02:15 | Python | UTF-8 | Python | false | false | 601 | py | def solution(dartResult):
point = []
answer = []
dartResult = dartResult.replace('10','k')
point = ['10' if i == 'k' else i for i in dartResult]
print(point)
i = -1
sdt = ['S', 'D', 'T']
for j in point:
if j in sdt :
answer[i] = answer[i] ** (sdt.index(j)+1)
... | [
"mgh3326@naver.com"
] | mgh3326@naver.com |
34c75ed85b11695edf53feaa3236244bd3fefc44 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=4/params.py | f2962918ddc7d0f6fada37b1a1592dedf23cce8d | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.668690',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'RUN',
'trial': 4,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
5fc066834916a8dbb349035d834ab8ffcd3415d5 | c3483984a4782be6097e4753de3cb545ae00039b | /geneticTest/unitTestingExample/unitTesting/test_Employee.py | e00ef30b7b7dd17f737f32a405b4966559a25522 | [] | no_license | nghiemphan93/machineLearning | 67c3f60f317a0c753b465751113511baaefd1184 | 36d214b27c68d399f5494b5ec9b28fee74d57f7f | refs/heads/master | 2020-03-28T02:20:11.843154 | 2020-02-03T14:18:39 | 2020-02-03T14:18:39 | 147,563,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | import unittest
from geneticTest.unitTestingExample.stuffToTest.Employee import Employee
class TestEmployee(unittest.TestCase):
@classmethod
def setUpClass(cls):
print('setupClass')
@classmethod
def tearDownClass(cls):
print('teardownClass')
def setUp(self):
print('setUp... | [
"nghiemphan93@gmail.com"
] | nghiemphan93@gmail.com |
56e2ea0cf73544e8dbe4bf9a62cade699f0cd4f7 | 353e6685be6737a828b8770d4d71e389ca2853b9 | /0x11-python-network_1/5-hbtn_header.py | b7a195a4f570bbc400e36cfd7ab5c6a16a190e72 | [] | no_license | adebudev/holbertonschool-higher_level_programming | 912af3f7caab3197beb062b5389f5b464b2ed177 | cb0510ed0b6d7b7c43d0fd6949139b62e2bdede7 | refs/heads/master | 2022-12-18T17:40:28.539558 | 2020-09-25T04:29:45 | 2020-09-25T04:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/python3
"""Request value X-Request-Id with requests Module"""
import requests
import sys
if __name__ == '__main__':
"""displays the value of the variable X-Request-Id"""
url = sys.argv[1]
R = 'X-Request-Id'
req = requests.get(url)
print(req.headers.get(R))
| [
"delaasuncionbuelvasadrian@gmail.com"
] | delaasuncionbuelvasadrian@gmail.com |
63d41c42f8f87f62095b5bc99fda6d77e3eb4288 | 59788643fcce655a3a15ad0d3c91401a63e525d9 | /home/models.py | f925cf6580cdcd1ae6f9a202aa595fe40ca9a4ba | [] | no_license | crowdbotics-apps/element-28308 | f39132662eb2e433d44e3c570ae539d9feae3db0 | 018966b7d47c9e2f9b1bb33c018d1a9b7a3b3b42 | refs/heads/master | 2023-06-06T09:31:10.513777 | 2021-06-29T20:33:03 | 2021-06-29T20:33:03 | 381,465,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.conf import settings
from django.db import models
class CustomText(models.Model):
"Generated Model"
chart = models.URLField(
null=True,
blank=True,
)
class HomePage(models.Model):
"Generated Model"
body = models.TextField()
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b71cf501c6e9e920c344c180785088347c9eea05 | 398de9098811c7712b18f8e314340ce93aa86839 | /id2date.py | 7fc4502cd5258ae680b5604cba9dd53e78ba1f70 | [] | no_license | NiMaZi/thesis | 0c2ce8bced070d010838bae80f844a46bb1a798c | 15dc1aeca941f8feec4c283cd7436983ba982871 | refs/heads/master | 2020-03-18T13:19:52.711331 | 2018-07-09T12:11:08 | 2018-07-09T12:11:08 | 134,776,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | import os
import sys
import csv
import json
import boto3
import numpy as np
homedir=os.environ['HOME']
from elasticsearch import Elasticsearch
from elasticsearch.helpers import scan
es=Elasticsearch(['localhost:9200'])
s3 = boto3.resource("s3")
mybucket=s3.Bucket("workspace.scitodate.com")
s3key=sys.argv[1]
id2date... | [
"zhengyl940425@gmail.com"
] | zhengyl940425@gmail.com |
6f781fbb34a0effb575b1359355f0db2026e382d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658571765186560_1/Python/dnutsch/problem_d.py | ec9d645f24bcbab7bf09cb17d6dd1abaea92f717 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | #!/usr/bin/python
f = open('D-large.in','r');
out = open('D-large.out','w');
T = int(f.readline().strip())
for t in range(T):
X,R,C = [int(x) for x in f.readline().strip().split(' ')]
#print "x {}, r {}, c {}".format(X,R,C)
mx = max(R,C)
mn = min (R,C)
richard_wins = False
if (R*C) % X != 0:... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b3a796f6f6e1d72469e523177fe6e9c9ac1fb9ff | 94d5ef47d3244950a0308c754e0aa55dca6f2a0e | /migrations/versions/53e2ad0d34e3_added_produce_id_to_breed_table_instead.py | 977835fba4e07675a127bd13b29394f31d921a8f | [] | no_license | MUMT-IT/mis2018 | 9cbc7191cdc1bcd7e0c2de1e0586d8bd7b26002e | 69fabc0b16abfeba44173caa93d4f63fa79033fd | refs/heads/master | 2023-08-31T16:00:51.717449 | 2023-08-31T11:30:13 | 2023-08-31T11:30:13 | 115,810,883 | 5 | 5 | null | 2023-09-14T10:08:35 | 2017-12-30T17:06:00 | HTML | UTF-8 | Python | false | false | 1,288 | py | """added produce_id to breed table instead
Revision ID: 53e2ad0d34e3
Revises: e4f15449eb31
Create Date: 2018-02-03 22:51:38.297350
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '53e2ad0d34e3'
down_revision = 'e4f15449eb31'
branch_labels = None
depends_on = No... | [
"likit.pre@mahidol.edu"
] | likit.pre@mahidol.edu |
65b9c52ec1d9f80e900be3aaf4e02cf9ea349b1c | 9775ca99e222ec2cf7aa071b68954ee750f4b58a | /0x09-python-everything_is_object/100-magic_string.py | bc304a2f8dc85450f6f897c63025222c9cd30a42 | [] | no_license | humeinstein/holbertonschool-higher_level_programming | f7363a129cc5e2787207ab898c984b5866cbe7de | 01ba467964d7585ee95b7e0d76e7ae6bbdf61358 | refs/heads/master | 2020-07-22T20:25:21.868028 | 2020-02-13T23:08:49 | 2020-02-13T23:08:49 | 207,317,556 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/bin/python3
def magic_string(new_list=[]):
new_list += ["Holberton"]
return ", ".join(new_list) | [
"humeincreations@gmail.com"
] | humeincreations@gmail.com |
3124b674fa821716127a4d34ee60d1afc948da96 | 7000895fad6f4c23084122ef27b3292d5e57df9f | /src/xrd/crypto/Qryptonight.py | 1475f988d07b1c8d0513eab0742c2dab0685602f | [
"MIT"
] | permissive | jack3343/xrd-core | 1302cefe2a231895a53fcef73e558cdbc1196884 | 48a6d890d62485c627060b017eadf85602268caf | refs/heads/master | 2022-12-15T07:36:16.618507 | 2020-08-27T09:21:36 | 2020-08-27T09:21:36 | 290,652,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
import threading
from xrd.core import config
from xrd.core.Singleton import Singleton
from xrd.crypto.Qryptonight7 import Qryptonight7
from xrd.crypto.QRandomX import ... | [
"70303530+jack3343@users.noreply.github.com"
] | 70303530+jack3343@users.noreply.github.com |
d3407c1815d554881ce33812bf3dfc89430fe36f | 2521e6427a7668d8cc91eabb368a5cf0eb7310f9 | /Cap18-Extras/09_dimensionar.py | 5872547aa4d77143e41c6c59a3c7fd24ab1da260 | [] | no_license | frclasso/turma3_Python1_2018 | 4a7bc0ba0eb538100400c15fc5c5b3ac1eeb7e50 | 47cd3aaa6828458b7f5164a8bce717bb8dd83a7c | refs/heads/master | 2020-04-06T16:18:00.889198 | 2019-06-10T15:11:32 | 2019-06-10T15:11:32 | 157,614,408 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #!/usr/bin/env python3
import openpyxl
wb = openpyxl.Workbook()
#print(wb.sheetnames)
sheet = wb.active
sheet['A1'] = 'Tall row'
sheet['B2'] = 'Wide column'
sheet.row_dimensions[1].height = 70
sheet.column_dimensions['B'].widht = 50
wb.save('dimensions.xlsx')
print('Feito...') | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
aeb1d9e97840a831a2788c0ea0ccb002728935fd | 2b7d422e78c188923158a2a0780a99eca960e746 | /opt/ros/melodic/lib/python2.7/dist-packages/control_msgs/msg/_JointTrajectoryGoal.py | 5daffbc8743dfc8aad30e794c9f3e0535a86a395 | [] | no_license | sroberti/VREP-Sandbox | 4fd6839cd85ac01aa0f2617b5d6e28440451b913 | 44f7d42494654357b6524aefeb79d7e30599c01d | refs/heads/master | 2022-12-24T14:56:10.155484 | 2019-04-18T15:11:54 | 2019-04-18T15:11:54 | 180,481,713 | 0 | 1 | null | 2022-12-14T18:05:19 | 2019-04-10T02:00:14 | C++ | UTF-8 | Python | false | false | 13,159 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from control_msgs/JointTrajectoryGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import trajectory_msgs.msg
import genpy
import std_msgs.msg
class JointTrajectoryGoa... | [
"samuel.p.roberti@gmail.com"
] | samuel.p.roberti@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.