blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62be565d1ad0e2bc743c1f5b5682cd2bdeef76c1 | 2e9ffd88923b1eb90047fe5c6a633a6d29c111a8 | /muddery/typeclasses/players.py | 76d46460f1c6c62028e28ae5e66dedef392932d5 | [
"BSD-3-Clause"
] | permissive | externIE/muddery | 4f7424abf2eac4280baef86ba5752e8d8ddee16d | ee4165e97e1510e06fa1e8120a35878a6c2862b7 | refs/heads/master | 2020-04-06T06:48:41.501309 | 2016-08-16T12:58:47 | 2016-08-16T12:58:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | """
This is adapt from evennia/evennia/players/players.py.
The licence of Evennia can be found in evennia/LICENSE.txt.
Player
The Player represents the game "account" and each login has only one
Player object. A Player is what chats on default channels but has no
other in-game-world existance. Rather the Player puppe... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
00e2fbc37e5d8aa5a588fc4185c7bc8bab4c4f22 | a39ed5db6c75c9ae1f5e05118794c64102dc5f7a | /2020/01_1/solution.py | 091874824ee82bf49cb18909afad5b2272562b7c | [
"MIT"
] | permissive | budavariam/advent_of_code | b656d5caf5d05113b82357754eb225e61e89ac0d | 635be485ec691f9c0cdeb83f944de190f51c1ba3 | refs/heads/master | 2022-12-25T18:12:00.981365 | 2022-12-20T08:20:51 | 2022-12-20T08:20:51 | 114,570,426 | 1 | 1 | MIT | 2022-12-09T09:29:06 | 2017-12-17T21:36:00 | Python | UTF-8 | Python | false | false | 656 | py | """ Advent of code 2020 day 1/1 """
import math
from os import path
def solution(data):
""" Solution to the problem """
lines = data.split("\n")
precalculate = dict()
for line_value_str in lines:
precalculate[2020 - int(line_value_str)] = True
for line_value_str in lines:
current... | [
"budavariam@gmail.com"
] | budavariam@gmail.com |
92c59a1156df87073eec8744b9a4011e1e6fd657 | f07e66293cc41a9fe71fc44f765b432fd7a0997c | /selfdrive/controls/lib/cluster/SConscript | 97eb4300d4da6618962e0430ca534fc43fb0640f | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | kegman/openpilot | c9ba96a72d905956f02c684e065091e023942883 | b35291c91783657a5fc83abfff012d3bb49dd89f | refs/heads/kegman-ultimate | 2022-05-22T17:07:16.656336 | 2021-10-25T13:35:28 | 2021-10-25T13:35:28 | 229,979,925 | 105 | 212 | MIT | 2022-03-13T05:47:51 | 2019-12-24T17:27:11 | C | UTF-8 | Python | false | false | 185 | Import('env')
fc = env.SharedLibrary("fastcluster", "fastcluster.cpp")
# TODO: how do I gate on test
#env.Program("test", ["test.cpp"], LIBS=[fc])
#valgrind --leak-check=full ./test
| [
"user@comma.ai"
] | user@comma.ai | |
99d58cfffec18317f497271c87e04c101c9d5fbf | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/rdbms/azure-mgmt-rdbms/generated_samples/mysql/server_security_alerts_create_max.py | 702f9e0bb6a8a7da00508fb08c8a992824a0c71c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 2,227 | 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"
] | Azure.noreply@github.com |
98d4b751487188eba562b6871a2298cb5ea68deb | 34d5ebe9e6de9d6742c234dabfa9b38f0adb7774 | /carriage_return/ui.py | 6b4e0f2958482b03ef044f9c62842f0bd045a463 | [] | no_license | campagnola/return-to-carriage | f37acaf8e41ccf04e7089018574732a1fdcd2a64 | eeb7f31b16e2c236c875c867a0295173fa6f4b0a | refs/heads/master | 2021-08-05T14:02:49.988526 | 2021-07-31T08:38:17 | 2021-07-31T08:38:17 | 84,014,684 | 0 | 2 | null | 2021-07-30T02:48:13 | 2017-03-06T00:55:55 | Python | UTF-8 | Python | false | false | 4,518 | py | import numpy as np
import vispy.scene, vispy.app
import vispy.util.ptime as ptime
from .input import InputDispatcher, CommandInputHandler
from .graphics import TextBox
from .console import CommandInterpreter
class MainWindow:
"""Implements user interface: graphical panels, key input handling
"""
def __in... | [
"luke.campagnola@gmail.com"
] | luke.campagnola@gmail.com |
89a83059cc975cbb899bcbf35c4ce9000b7da5e0 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_watermill_api.py | 9b7b62efa75df5f6b212c5921dfa2cb31da4fd6a | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import dbpedia
from dbpedia.api.watermill_api import WatermillApi ... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
ce66f81dd62ef4c454b93bada3202dfdabc764a2 | adbb2b958296815f9485bab60c0d38827befeeeb | /build/lib.linux-i686-2.7/gdrivefs/change.py | 394f5bedbdc47e5902688e014679cddbd2e96977 | [
"MIT"
] | permissive | gryphius/GDriveFS | 4b4619e1eefceb562ded6ae13dcc9a2c5b4c0a1b | fadfbdea019cfa4c2a821f4636380edbc8be32bc | refs/heads/master | 2021-01-18T14:14:32.028542 | 2013-04-24T06:17:03 | 2013-04-24T06:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | import logging
from threading import Lock, Timer
from gdrivefs.gdtool import AccountInfo, drive_proxy
from gdrivefs.conf import Conf
from gdrivefs.cache import PathRelations, EntryCache
from gdrivefs.timer import Timers
def _sched_check_changes():
logging.debug("Doing scheduled check for changes.")
get... | [
"myselfasunder@gmail.com"
] | myselfasunder@gmail.com |
5260e5f6e9e62dff2851c2a69b0d9942a5673c04 | ccbb7fb8fda4d936e765263f05a435058b397bd9 | /src/guiltytargets/ppi_network_annotation/pipeline.py | 4556892fb1e8316cdaac58aa4319506234f86649 | [
"MIT"
] | permissive | GuiltyTargets/guiltytargets | 5a5d3ba9e45867a64c81a91529ae6689f8be447f | c20a5cae6c9cc71c2ca73080a862abe986bc34c0 | refs/heads/master | 2022-02-13T03:30:49.705239 | 2021-12-22T12:51:20 | 2021-12-22T12:51:20 | 154,318,881 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # -*- coding: utf-8 -*-
"""Functions to easily set up the network."""
import logging
from typing import List, Optional
from .model.gene import Gene
from .model.network import Network
from .parsers import parse_csv, parse_disease_associations, parse_disease_ids, parse_excel, parse_ppi_graph
__all__ = [
'generate... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
8f15048573ae6cf53c784fe29bb50ef7345fb154 | 99701affb7ae46c42c55484f3301d59f79294a10 | /project/Examples/Examples/PP2E/Dstruct/Basic/inter2.py | 200364cc5828b3f08ae4bba0989169e3e39861b8 | [] | no_license | inteljack/EL6183-Digital-Signal-Processing-Lab-2015-Fall | 1050b9e9bddb335bf42b7debf2abebe51dd9f9e0 | 0f650a97d8fbaa576142e5bb1745f136b027bc73 | refs/heads/master | 2021-01-21T21:48:21.326372 | 2016-04-06T20:05:19 | 2016-04-06T20:05:19 | 42,902,523 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | def intersect(*args):
res = []
for x in args[0]: # scan the first list
for other in args[1:]: # for all other arguments
if x not in other: break # this item in each one?
else:
res.append(x) # add common items to the end
return ... | [
"inteljack2008@gmail.com"
] | inteljack2008@gmail.com |
5582e0c04ffcb5fecce6af3812ec4c05c1be9fb2 | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/thnhatrangvn.py | 220429db599deaabf7822d301bccd557a783a259 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='home-center']/div[@class='product-info']/div[@class='product-name']/h1",
'price' : "//div[@class='product-right']/div[@c... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
9cbdd8a6c6170a9d1d5a9ca37e428a2e16bc6c22 | 309d17b81cea038713ba67bee72a41d2df4d6869 | /Python/Python_basic/Python_OOP/OOP21_composition2.py | 86f25cef9fcfcf5256d11e83738ff6e7e74ed70b | [] | no_license | Bongkot-Kladklaen/Programming_tutorial_code | ac07e39da2bce396e670611884436b360536cdc5 | cda7508c15c3e3d179c64b9aac163b6173ef3519 | refs/heads/master | 2023-06-20T13:14:17.077809 | 2021-07-18T04:41:04 | 2021-07-18T04:41:04 | 387,081,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | class Printer:
def print_page(self, data):
print("printing {}".format(data))
class Scanner:
def scan_page(self):
print("scanning...")
class Fax:
def fax_page(self,number):
print("faxing to {}".format(number))
class Aio: # All in one printer
def __init__(self, p, s,f):
se... | [
"bongkot.klad@gmail.com"
] | bongkot.klad@gmail.com |
ea8ca2060f2262c3ecaf0c88506fad93bb81a001 | eb54d732b5f14f03d9bf2988c6157605c80bbdd5 | /bubble_sort.py | e599bb7065016d2e01b3e67d5e93e3dc4947d828 | [] | no_license | tngo0508/practice_coding | 2e60519fed83a9b3c28b52c2d5ec1ee1d2a609ed | 453c9a7b9a8aa80f37b245f9df447525a9b0a2d1 | refs/heads/master | 2022-03-27T01:44:56.589650 | 2020-01-05T18:58:31 | 2020-01-05T18:58:31 | 225,294,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | def bubble_sort(nums):
for i in range(len(nums) - 1, 0, -1):
for j in range(i):
if nums[j] > nums[j + 1]:
nums[j], nums[j+1] = nums[j+1], nums[j]
print(nums)
return nums
print(bubble_sort([4, 1, 0, 3, 5, 1, 2, 6]))
| [
"tngo0508@gmail.com"
] | tngo0508@gmail.com |
86a2d304179a0d4d021966bafce213f4365d57c2 | 84290c584128de3e872e66dc99b5b407a7a4612f | /Statistical Thinking in Python (Part 2)/Bootstrap confidence intervals/Visualizing bootstrap samples.py | 325418de26f528e09ecafe5c6554c241dae959c8 | [] | no_license | BautizarCodigo/DataAnalyticEssentials | 91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789 | 7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57 | refs/heads/main | 2023-04-11T04:42:17.977491 | 2021-03-21T19:05:17 | 2021-03-21T19:05:17 | 349,784,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | for _ in range(50):
# Generate bootstrap sample: bs_sample
bs_sample = np.random.choice(rainfall, size=len(rainfall))
# Compute and plot ECDF from bootstrap sample
x, y = ecdf(bs_sample)
_ = plt.plot(x, y, marker='.', linestyle='none',
color='gray', alpha=0.1)
# Compute and plot E... | [
"78171986+BautizarCodigo@users.noreply.github.com"
] | 78171986+BautizarCodigo@users.noreply.github.com |
391a306f78fe5c96c880603c95534afa317eb828 | 874f8db726d5ce5da971dbd54aac58f0b3176d78 | /aa通用的工具类或方法/一个通用的mongodb类.py | 688e8d6c4c304fd0c6613395dc49c4fed7d13fcf | [] | no_license | Social-Engineering-OrigData/python | a8442ab5b3a772ddfc568eb5e386b11074c5bf93 | 6dde78f75e2a3306bccdc0085a44751cf2b901ca | refs/heads/master | 2021-09-09T12:56:09.781127 | 2018-03-16T09:34:17 | 2018-03-16T09:34:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@contact: wersonliugmail.com
@File : 一个通用的mongodb类.py
'''
from pymongo import MongoClient
"""
在爬虫存数据时使用,不需要事先建立数据库,直接存字典
"""
class MyMongo:
def __init__(self, dbname, colname):
"""
:param dbname: 初始化 命名自己的库
:param colname: 初始化 命名自己的表(集合)... | [
"wersonliu@gmail.com"
] | wersonliu@gmail.com |
35380b0997d3dc37aa77773fe400ca9768d179f3 | 9c05ec071dda2aa98ea1b12d9703dd91df19c87d | /quantum/hooks.py | 2c6a587a6d593503d2bbf9fee3977197c254c5db | [
"Apache-2.0"
] | permissive | DestinyOneSystems/quantum | af6ff44dd5e8cff944e53946f60adb11efb47bd5 | d7eafd8ffa719d91108b230221ecf27531a3530d | refs/heads/master | 2020-04-05T18:59:00.584768 | 2013-10-21T02:41:15 | 2013-10-21T02:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# 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://... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
f138655f1c273477db99f1f85129ea718053c624 | 1a2cbc44bfcda1eafe4e8513de8541d8cd49bd08 | /fts/test_t1_amend_user2.py | f8bebf459f343d1e016841a1993e789e179cfd24 | [
"LicenseRef-scancode-public-domain"
] | permissive | DonaldMc/gdms | d62d34585a3914330cc933476dcb0d3ab750b7d8 | 7bfdf40d929afab2e204256c781c3700f6e24443 | refs/heads/master | 2021-01-18T12:38:55.798638 | 2016-05-30T18:59:55 | 2016-05-30T18:59:55 | 56,460,151 | 0 | 0 | null | 2016-05-30T20:59:22 | 2016-04-17T21:44:40 | Python | UTF-8 | Python | false | false | 3,486 | py | from functional_tests import FunctionalTest, ROOT, USERS
from ddt import ddt, data, unpack
from selenium.webdriver.support.ui import WebDriverWait
import time
from selenium.webdriver.support.ui import Select
# Testuser1 - stays as unspecified
# Testuser2 - specifies Africa and unspecified country and subdivision
# Te... | [
"donaldm2020@gmail.com"
] | donaldm2020@gmail.com |
c85113890b4775751eea8a0787ac818401ea92d5 | c660fdd49861211926a9dac0206d3856002ff2a8 | /smbl/prog/plugins/samtools.py | e203b8094d9a9201ecb7919fbc2f9595a2242875 | [
"MIT"
] | permissive | hermanzhaozzzz/smbl | d493a8b7ecfaf961c7ca7280d94c945a3e4e3b92 | 5922fa2fc4060d86172e991361a1cceb0af51af8 | refs/heads/master | 2021-06-23T11:27:57.869235 | 2017-08-19T02:21:51 | 2017-08-19T02:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | import smbl
import snakemake
import os
from ._program import *
SAMTOOLS = get_bin_file_path("samtools")
##########################################
##########################################
class SamTools(Program):
@classmethod
def get_installation_files(cls):
return [
SAMTOOLS,
]
... | [
"karel.brinda@gmail.com"
] | karel.brinda@gmail.com |
ee8aad80ea9fe488f536a12acb866395bcbdfc70 | c26dc7928b1facac2c0912f6532076d35c19e835 | /devel/lib/python2.7/dist-packages/cob_object_detection_msgs/srv/__init__.py | 8d01ac1030bab33d482fd8bc39a91912a52446bc | [] | no_license | mattedminster/inmoov_ros | 33c29a2ea711f61f15ad5e2c53dd9db65ef6437f | e063a90b61418c3612b8df7876a633bc0dc2c428 | refs/heads/master | 2021-01-23T02:39:36.090746 | 2017-08-09T02:56:42 | 2017-08-09T02:56:42 | 85,995,826 | 0 | 0 | null | 2017-03-23T20:45:32 | 2017-03-23T20:45:32 | null | UTF-8 | Python | false | false | 309 | py | from ._AcquireObjectImage import *
from ._BaTestEnvironment import *
from ._BagTrainObject import *
from ._ComputeGraspsVacuumGripper import *
from ._DetectObjects import *
from ._SaveRecordedObject import *
from ._StartObjectRecording import *
from ._StopObjectRecording import *
from ._TrainObject import *
| [
"mattedminster@gmail.com"
] | mattedminster@gmail.com |
47ede935441605d7d56f33de91b7e10d1f544291 | 930309163b930559929323647b8d82238724f392 | /sumitb2019_c.py | 8ebf6c2adc23f64ec6e3e5122b0e1896defd65e2 | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import itertools
X = int(input())
ps = [100, 101, 102, 103, 104, 105]
dp=[0]*(X+1)
dp[0] = 1
for p in ps:
for i in range(len(dp)):
if i >= p:
dp[i] = max(dp[i], dp[i-p])
print(dp[X])
| [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
56583f3316a24edddd70b4a0f9c935cbd4ceb946 | 3b79a802f8dd9f26bee0bfde4630ac0cab932803 | /srcSegcls/getEventSegDF.py | b004b92f2a243f693794a4efdb8cca0d07350ef9 | [] | no_license | qolina/Twevent | 87fc4706564088361e9db6ddc44efc10647e67fe | 4b90b0604493b20dee90448c17e0a8e0d557165e | refs/heads/master | 2021-06-24T19:06:02.022882 | 2017-08-15T05:20:09 | 2017-08-15T05:20:09 | 100,341,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,338 | py | #! /usr/bin/env python
#coding=utf-8
import time
import re
import os
import math
import cPickle
############################
## load tweetID-usrID
def loadUsrId(filepath):
usrFile = file(filepath,"r")
tweIdToUsrIdHash = cPickle.load(usrFile)
usrFile.close()
return tweIdToUsrIdHash
####... | [
"qolina@gmail.com"
] | qolina@gmail.com |
b6c7bc0863d3be11b0c5fdaf4028d0651061b62a | 3ee0418421955d01558b1c623def251932bcfc01 | /python-examples/marble_sort/write_json.py | b3388c9cc682286c4a2476f1d08641cbb8ddb79c | [
"MIT"
] | permissive | pep-dortmund/mindstorms | 89f426930516155bb75f52b9fdd24a0b64fc0951 | 9e6be52545e21ab8ba3bca7e1b0e64ed2320366d | refs/heads/master | 2021-01-01T19:19:26.508803 | 2017-04-29T11:39:35 | 2017-04-29T11:39:35 | 38,932,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from argparse import ArgumentParser
import zmq
import json
parser = ArgumentParser()
parser.add_argument('outputfile')
parser.add_argument('-p', '--port', type=int, default=5000)
context = zmq.Context()
socket = context.socket(zmq.REP)
def main():
args = parser.parse_args()
socket.bind('tcp://0.0.0.0:{}'.fo... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
6afad1eb9a9749a808aa04ff852f4ed7cf4fb72b | 889d13d15084f12e84731f48f50c72169f4ca45f | /public/class03demos/class03p10.py | d49c82eb8a80a9c4ac35087d43a3a802aada5e9c | [] | no_license | puneet-khatod/ml4us | 1bb4a661f3d59d8d0b7ff9e959b2f51324c7a9c9 | 917cdac85086bfc82f03e3db3ba8e7b15f9c407b | refs/heads/master | 2021-05-06T15:59:13.646649 | 2017-12-09T08:03:30 | 2017-12-09T08:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | """
class03p10.py
This script should use Pandas to plot prices of GSPC for 2016.
"""
import pandas as pd
import matplotlib.pyplot as plt
csvfile = 'http://spy611.herokuapp.com/csv/allpredictions.csv'
# Goog: In pandas how to sort a dataframe?
cp_df = pd.read_csv(csvfile).sort_values(['cdate'])
# Goog: In pandas how ... | [
"bikle@bikle.com"
] | bikle@bikle.com |
cd4907ec3488eeaa4af0b6adb78c6fe463d8811d | 4142b8c513d87361da196631f7edd82f11465abb | /python/round135/219A.py | 84c2546d1739cabe735229c97479d28929b9d4e4 | [] | no_license | npkhanhh/codeforces | b52b66780426682ea1a3d72c66aedbe6dc71d7fe | 107acd623b0e99ef0a635dfce3e87041347e36df | refs/heads/master | 2022-02-08T17:01:01.731524 | 2022-02-07T10:29:52 | 2022-02-07T10:29:52 | 228,027,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from collections import Counter
k = int(input())
s = input()
d = Counter(s)
res = ''
for t in d:
val = d[t]
if val % k == 0:
res += t * (val // k)
else:
res = '-1'
break
if res != '-1':
res *= k
print(res)
| [
"npkhanh93@gmail.com"
] | npkhanh93@gmail.com |
9d7639d189d421797740d682aac51312abee9e92 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4011/codes/1745_1531.py | f673af6f93026f7831e6b2d8cc72542a9d884f67 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from math import*
x = eval(input("radiano: "))
k = int(input("Quantidade de termos da serie: "))
n = 0
soma =
while(n < k):
n = n + 1
sinal = (x**(2 + 2*n)/factorial(2*n))
sinal = - sinal
soma = sinal + sinal
print(round(serie, 10)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
f5dd2bb68d941f22a8ece354d5ebe4a7ff628fca | 736250d9d14552c5fa0aca25b25d9c8a28fcd1a0 | /mtmpro/mtmapp/migrations/0001_initial.py | 42368fcde0eff7c119ef4b9236f3139dcdb96da7 | [] | no_license | maheswatapradhan/feedback | 57f052a2082902cb8a72b474e0b863b7a00d1c9c | 31c7dcb113a38e29b3a56481fcb9ae2fce7d61a2 | refs/heads/master | 2020-09-15T23:42:32.041306 | 2019-11-23T12:54:25 | 2019-11-23T12:54:25 | 223,585,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-09-16 11:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Course',
... | [
"test@test.com"
] | test@test.com |
e92bb7009b48dbf53be81f216d049bab6787cdce | 5d61565651b7ba5fa8fade3313a5e82fca8b6686 | /login/migrations/0003_auto_20190709_2213.py | 58c72a12c002fd6586fd9fbdb94b2ed1aaacc6c2 | [] | no_license | lonelyxmas/ISMS | d597b00072bfa77907875f575b866fbb1fb53295 | 08c5e2f3518fc639cf1a1f2869f4b2f3ae58e306 | refs/heads/master | 2023-08-14T12:02:59.001215 | 2021-03-22T03:34:58 | 2021-03-22T03:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # Generated by Django 2.1.4 on 2019-07-09 14:13
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('login', '0002_auto_20190704_0826'),
]
operations = [
migrations.AlterField(
model_name='user',
name='FID... | [
"11325818@qq.com"
] | 11325818@qq.com |
db9503f8d4917677b10f97a48c4f912d05a9290a | acc244c97a943d8e2074339afa1bff1274ae4cfc | /CGATPipelines/PipelineMedip.py | 3f12a921f960aaedb163d725a83b325930f8e7fb | [] | no_license | eromasko/cgat | 00114f4c95b439ba6595ddf2092d1a3307347401 | d82d197f3913b8d65b656c0b205ca48854fdb2a6 | refs/heads/master | 2021-01-17T09:37:17.168278 | 2015-02-20T09:03:31 | 2015-02-20T09:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,824 | py | '''
PipelineMedip.py - tasks associated with MedipSeq analysis
==========================================================
'''
import re
import os
import collections
import sqlite3
import CGAT.Experiment as E
import CGAT.Pipeline as P
import CGAT.Database as Database
import CGAT.IOTools as IOTools
from rpy2.robject... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
7a821db6e73317f1eda8b4668d934a936b9bc173 | efb3d0c2f9fcc5be631323e31f4b8dfcdd0ab676 | /compiler/tests/14_replica_column_test.py | c8d50a539879db74ee9e9e7d09880960e2cc6270 | [
"BSD-3-Clause"
] | permissive | kanokkorn/OpenRAM | 5f30beb35e3c161fbf0d233b59fe7d7805d3c348 | 3a9693e37fd3afbd52001839966b0f2811fb4ccd | refs/heads/master | 2022-06-03T12:53:47.750245 | 2022-05-27T15:53:05 | 2022-05-27T15:53:05 | 189,780,330 | 0 | 0 | BSD-3-Clause | 2021-04-07T06:49:08 | 2019-06-01T21:47:50 | Python | UTF-8 | Python | false | false | 1,291 | py | #!/usr/bin/env python3
# See LICENSE for licensing information.
#
# Copyright (c) 2016-2021 Regents of the University of California
# All rights reserved.
#
import unittest
from testutils import *
import sys, os
sys.path.append(os.getenv("OPENRAM_HOME"))
import globals
from globals import OPTS
from sram_factory import ... | [
"mrg@ucsc.edu"
] | mrg@ucsc.edu |
7b205e91d3d2e6bea20b6b48b78dc7bf2b245db8 | c908dacdc0006e247aa529dddb98bc1d67fbf7c8 | /user.py | c2f9669f15bbddd02c3b88046a27e25547ba194d | [] | no_license | TomeCirun/flask_blog | 40e3bd041fd7ba376c181073c92e19f296aca928 | de34ac14e2e3e2044e3f327e288eefadf34b7faf | refs/heads/main | 2023-03-05T13:51:37.335673 | 2021-02-17T12:04:00 | 2021-02-17T12:04:00 | 339,709,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py |
class User():
def __init__(self,id,username,password):
self.id = id
self.username = username
self.password = password
def __str__(self):
return f'User Id: {self.id}' | [
"cirun@live.com"
] | cirun@live.com |
7332bb72184308f1c755b9859e825e727dc18a52 | 2205363ea412aae36aa2c5f8b7d608cd8a158a03 | /Personal_Blog/Pb/Pb/settings.py | d3f8de8c66bb1455f934b84f6bb3190cd42b086b | [] | no_license | Akanksha2403/HacktoberFest2020 | 986ef7ba5595679085e5159d35c5a30d9e91ebc5 | 789762e3a4a3ad23fd2c1ca3b6cc3bc8f39eed82 | refs/heads/master | 2023-08-28T04:25:07.466359 | 2021-10-20T10:16:46 | 2021-10-20T10:16:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,674 | py | """
Django settings for Pb project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import ... | [
"lit2020026@gmail.com"
] | lit2020026@gmail.com |
38ffeefe71c4acb79a5a838efeb26765465afa7f | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/bin/iptest | 62ac6036fc5f261d69ea933bb91ed9bee7ded5ca | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 269 | #!/Users/yenchiehliao/Dropbox/bisCrawler/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython.testing.iptestcontroller import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"davidycliao@gmail.com"
] | davidycliao@gmail.com | |
412d94ad7ce1d9d7b92b6406d8aa5350f3f77fe9 | 2e79b8f2e4cc5ea10789de787f787fdc56137993 | /leetcode/438.找到字符串中所有字母异味词.py | e1f674a878c118e39a1c3fa3bfafdb8b51fc9564 | [] | no_license | wangye707/Test | d486ccb0947f6a83662a73fb56554260d1445c30 | 0d5fb8ea7da79d7d168d99f7158c8aa5757a1d35 | refs/heads/master | 2020-06-04T05:48:46.132054 | 2020-04-28T14:53:30 | 2020-04-28T14:53:30 | 191,894,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!D:/workplace/python
# -*- coding: utf-8 -*-
# @File : 438.找到字符串中所有字母异味词.py
# @Author: WangYe
# @Date : 2019/9/25
# @Software: PyCharm
def findAnagrams(s, p):
"""
:type s: str
:type p: str
:rtype: List[int]
"""
out = []
need = {}
for i in p:
if i in need:
need[i] +... | [
"1119744330@qq.com"
] | 1119744330@qq.com |
e170f688e59520f390ab02a6b3e1b52b161b747b | 66bfac516682bc8c3c804a5b7414cfc8b3440186 | /leads/apps/leads/serializers.py | 5e9d220555f6c26071a166a7b386b109ee1a7eb8 | [] | no_license | Izaiasjun1Dev/leads | 190d1bf01f1809c34cb53582e0f1020c3d704b58 | 22a209b43fd0eb60218deba731c9bf189ea9568a | refs/heads/master | 2023-04-05T15:15:39.834194 | 2021-03-30T11:35:36 | 2021-03-30T11:35:36 | 352,966,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from rest_framework import serializers
from .models import Lead
# Serializador lead
class LeadSerializer(serializers.ModelSerializer):
class Meta:
model = Lead
fields = '__all__'
| [
"solucaoprogramer@gmail.com"
] | solucaoprogramer@gmail.com |
71f27e6f44fc1dfef7571b27982acccf33236218 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/ring/siren.py | 7f1b147471d271411715ee41520529c0afef4805 | [
"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,678 | py | """Component providing HA Siren support for Ring Chimes."""
import logging
from typing import Any
from ring_doorbell.const import CHIME_TEST_SOUND_KINDS, KIND_DING
from homeassistant.components.siren import ATTR_TONE, SirenEntity, SirenEntityFeature
from homeassistant.config_entries import ConfigEntry
from homeassist... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
f9d21162737f40168c323f56d4a303bf6211ce0c | c6d89d2507efe02ead1802649a769e021795b2b6 | /categories/context_processors.py | cb9c2687489bdc34c2746a89d05b11c34a37b16c | [] | no_license | ikonitas/pleasuresallmine | b671b05d2f13428973cc19d39e58d0b56d1914f0 | 875e6067a202be801a9b1fddb27c4d313fd133f4 | refs/heads/master | 2021-05-29T19:50:39.812885 | 2014-11-27T21:22:22 | 2014-11-27T21:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # coding=utf-8
from django.core.cache import cache
from models import Category
def list_categories(request):
categories = cache.get('list_categories')
if not categories:
categories = Category.objects.filter(
is_active=True).order_by('sort_order')
cache.set('list_categories', cate... | [
"ikonitas@gmail.com"
] | ikonitas@gmail.com |
29511c1e8bcf903725d957b2e420756cc1908ad8 | 29d7ba390d4b6046666f783e682ea248108ea900 | /cbagent/__main__.py | 09669d3c032cc65f432c457e3e7024f81dfcc2cd | [
"Apache-2.0"
] | permissive | pavel-paulau/cbagent | 5f289fbaf08b997b55d270944d67f716ec1a127a | f905974d663e0320e55a00076d292cbf489e53d9 | refs/heads/master | 2020-04-26T09:55:43.761203 | 2014-07-31T12:41:18 | 2014-07-31T12:41:18 | 13,084,444 | 2 | 1 | null | 2014-06-19T02:15:22 | 2013-09-25T04:52:21 | Python | UTF-8 | Python | false | false | 2,380 | py | import sys
from optparse import OptionParser
from cbagent.collectors.active_tasks import ActiveTasks
from cbagent.collectors.iostat import IO
from cbagent.collectors.latency import Latency
from cbagent.collectors.observe import ObserveLatency
from cbagent.collectors.net import Net
from cbagent.collectors.ns_server imp... | [
"pavel.paulau@gmail.com"
] | pavel.paulau@gmail.com |
1fa53956af9d567b5bb6cde0572f8a7cb11d736f | 70121257e52e0fd2f0895414fcee3c991737443a | /python_recipes/tfpreprocess_cifar.py | 33aaef3fdca4998831ffa5306a3bf25f080ae646 | [] | no_license | OlgaBelitskaya/cookbooks | 2e54208bb5e5157814deea6ff71cd7ce5b1e4972 | 216dde3e5617203371ed4c4bb7d9e8391640c588 | refs/heads/master | 2021-07-11T15:56:44.923442 | 2021-03-25T08:38:46 | 2021-03-25T08:38:46 | 99,447,645 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | import warnings; warnings.filterwarnings('ignore')
import tensorflow as tf,numpy as np,pandas as pd
import tensorflow_datasets as tfds
from IPython.display import display,HTML
pd.set_option('precision',3)
tf.keras.backend.set_floatx('float64')
tfds.disable_progress_bar()
img_size=32
buffer_size,batch_size=10000,64
c1,... | [
"safuolga@gmail.com"
] | safuolga@gmail.com |
c623380ca8277769f08041e14cc66374a1963eb7 | 5be7afab3f57b7b5365053700386c01bad7031e6 | /quotes.toscrape.com/1.2.quote_web_scraping/spiders/quotes_spider.py | 16b47d33a8206b7bb7caf819229b34ef62e264fb | [] | no_license | enji-coder/SCRAPY-PROJECTS | c0c76e1ef8697320a0cb9b3fa9155a158574a5c1 | bd65e6f3cf83912bc082ef39aba702db6cc4465c | refs/heads/main | 2023-06-20T19:11:36.764847 | 2021-08-04T04:39:08 | 2021-08-04T04:39:08 | 386,542,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import scrapy
class ExampleSpider(scrapy.Spider):
name = 'quotes'
allowed_domains = ['example.com']
start_urls = ['http://quotes.toscrape.com']
def parse(self, response):
all_quotes = response.css('div.quote')
# retrive all quotes title , author and tag details
# note it re... | [
"47570231+enji-coder@users.noreply.github.com"
] | 47570231+enji-coder@users.noreply.github.com |
e6ea0a18c418751b3458be9dd1196e1a7f5514d0 | 2d13b3206b04d663eed9c5cfe7b6d273abaab33e | /2.Algorithm/pycharm/SW Academy/20200309/harvest.py | 89098f8eaff5f7281c33299f947b60d69d741907 | [] | no_license | hdp0545/TIL | 0ba5378274f0076cd2b029581b292785a77207da | 6d6e5e54373bd71606823e97b3a5fb2d63a2784e | refs/heads/master | 2023-05-24T12:37:33.690750 | 2023-05-19T06:57:49 | 2023-05-19T06:57:49 | 235,004,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | for test_case in range(1, int(input())+1):
N = int(input())
matrix = [list(map(int, [n for n in input()])) for _ in range(N)]
result = 0
c = N // 2
for i in range(N):
di = (N//2) - abs(i - (N//2))
result += sum(matrix[i][c-di:c+di+1])
print('#{} {}'.format(test_case, result)) | [
"hdp0545@gmail.com"
] | hdp0545@gmail.com |
569c0fe40b397c4990eb34ce4716eead233cf51f | e0ede722874d222a789411070f76b50026bbe3d8 | /practice/solution/0040_combination_sum_ii.py | 522d0209dcadd27bc9829d15d2270d94bb200cd4 | [] | no_license | kesarb/leetcode-summary-python | cd67456cb57bdff7ee227dab3930aaf9c2a6ad00 | dc45210cb2cc50bfefd8c21c865e6ee2163a022a | refs/heads/master | 2023-05-26T06:07:25.943854 | 2021-06-06T20:02:13 | 2021-06-06T20:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | class Solution(object):
def combinationSum2(self, candidates, target):
"""
:type candidates: List[int]
:type target: int
:rtype: List[List[int]]
"""
self.res = []
self.dfs(0, sorted(candidates), target, [])
return self.res
d... | [
"weikunhan@g.ucla.edu"
] | weikunhan@g.ucla.edu |
b7f7294d6eed3c6580709c80a3bbdedfde794b91 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03767/s342121711.py | e279603e0ad4d33f1c70bcc3c868122d20a4b586 | [] | 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 | 197 | py | n = int(input())
a = list(map(int, input().split()))
a.sort(reverse = True)
list = []
for i, j in enumerate(a):
if i % 2 == 1:
list.append(j)
answer = sum(list[0 : n])
print(answer) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0d497de579e262500807394359bad38278397bee | 90ea49bb872623a0fc117632df0232f26e078033 | /redis_main.py | 6e22c3d257bc2ca5b18745dc8e70d73601aefcc6 | [
"MIT"
] | permissive | JX-Wang/Redis-servcie-T | e4612967a30c8c18ba5fa51aac91482e5f4f591a | 26005d0b15defa8628220512046aadc94765bd5b | refs/heads/master | 2020-06-17T04:39:28.779495 | 2019-07-09T12:35:38 | 2019-07-09T12:35:38 | 195,799,949 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # usr/bin/env python
# coding:utf-8
"""
redis Notes
============
Date@2019/7/9
Author@Wangjunxiong
"""
import redis
try:
r = redis.Redis(host="39.106.165.57", port=6379, db=0)
r.get("msg")
except Exception as e:
print "Connect Error as -> ", str(e)
| [
"1411349759@qq.com"
] | 1411349759@qq.com |
69e9bebc4513c00a473c70457e1a049832307ad5 | 8ebb138562884f01cae3d3ffaad9501a91e35611 | /dbCruiseKeywords/insertKeywordsAMT09.py | df5628bef408fcbba07deedb761444ed58a7b142 | [] | no_license | simonscmap/DBIngest | 7b92214034e90f8de88b06c17b48f83c769d8d35 | 9ae035cbf7453df375f0af5e920df3880a419107 | refs/heads/master | 2021-07-16T07:12:31.749027 | 2020-08-13T16:28:24 | 2020-08-13T16:28:24 | 200,295,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | import sys
import pycmap
sys.path.append('../')
import insertFunctions as iF
import config_vault as cfgv
import pandas as pd
sys.path.append('../dbCatalog/')
import catalogFunctions as cF
"""-----------------------------"""
""" AMT09 CRUISE KEYWORDS"""
"""-----------------------------"""
cruise_name = 'AMT09'
server... | [
"norlandrhagen@gmail.com"
] | norlandrhagen@gmail.com |
00fb0b2202d07d72ab8075b038f6426190d4d82e | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Hard/1449.form-largest-integer-with-digits-that-add-up-to-target.py | fde6df1309dddc7154ccfbf41d760c6ba9bd1dbe | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | #
# @lc app=leetcode id=1449 lang=python3
#
# [1449] Form Largest Integer With Digits That Add up to Target
#
# https://leetcode.com/problems/form-largest-integer-with-digits-that-add-up-to-target/description/
#
# algorithms
# Hard (42.08%)
# Total Accepted: 6.5K
# Total Submissions: 15.5K
# Testcase Example: '[4,3... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
42d77cdb15f7031c1d699412730a8035bd7e471a | 367d2670c75d385d122bca60b9f550ca5b3888c1 | /gem5/env/lib/python3.6/site-packages/kombu/asynchronous/http/__init__.py | e776977dd40d3fa99f91d5b31d93c25a7d36b580 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | Anish-Saxena/aqua_rowhammer_mitigation | 4f060037d50fb17707338a6edcaa0ac33c39d559 | 3fef5b6aa80c006a4bd6ed4bedd726016142a81c | refs/heads/main | 2023-04-13T05:35:20.872581 | 2023-01-05T21:10:39 | 2023-01-05T21:10:39 | 519,395,072 | 4 | 3 | Unlicense | 2023-01-05T21:10:40 | 2022-07-30T02:03:02 | C++ | UTF-8 | Python | false | false | 591 | py | from kombu.asynchronous import get_event_loop
from .base import Request, Headers, Response
__all__ = ('Client', 'Headers', 'Response', 'Request')
def Client(hub=None, **kwargs):
"""Create new HTTP client."""
from .curl import CurlClient
return CurlClient(hub, **kwargs)
def get_client(hub=None, **kwarg... | [
"asaxena317@krishna-srv4.ece.gatech.edu"
] | asaxena317@krishna-srv4.ece.gatech.edu |
95a65891632e1c526dfe49cd5b082b05a23fb3a0 | d80173b86be50c7b8c8dec265bfe4e9b66575f7c | /objects.py | 80305cbd3829557b6a79312bc8f6e6372c6c0d8e | [] | no_license | Pk13055/bomberman | 11450bb673ab1ffbb827d9dddeac3583742ce7e5 | 5e4d4413f9572e520de5604174123393f4463e86 | refs/heads/master | 2021-01-19T06:02:39.774474 | 2017-10-20T14:08:16 | 2017-10-20T14:08:16 | 100,589,676 | 6 | 4 | null | 2017-10-20T14:08:17 | 2017-08-17T10:03:18 | Python | UTF-8 | Python | false | false | 3,723 | py | '''
contains the structure of each object
'''
import config
from config import x_fac, y_fac
import numpy as np
class Object:
'''# bombs, walls, bricks all will be of this type'''
def __init__(self, x, y, ch=config._empty):
'''# the x and y coords wrt top left of board'''
self._x = x
... | [
"pkrockstar7@gmail.com"
] | pkrockstar7@gmail.com |
80f796be803c6cbe9307785b3beaf103fdaf5177 | 52266a44e2aca241707984e3b138775681b3e95f | /一本册子/字符串.py | 739ef5576c270d031768b4e1d83d68f15064ac44 | [] | no_license | Mr-hongji/pythonNote | 91b1252711ce0b919fc365932276b89d85d4c16b | ff5eda0c8f63345de4d98cff8f0f7ab5254c77a6 | refs/heads/master | 2020-04-11T14:49:39.637983 | 2019-05-26T09:21:09 | 2019-05-26T09:21:09 | 161,869,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | print 'hello'
print "I'm Shihongji"
'''
\被称作转译字符,除了用来表示引号,还有比如用
\\表示字符串中的\
\n表示字符串中的换行
'''
print 'I\'m a \"good\" people'
print 'I\'m a "good" people'
print '我是良民\\'
print '我是良民\n吗'
'''
作业
输出以下文字
1、He said, "I'm yours!"
2、\\_v_//
3、Stay hungry,
stay foolish.
---Steve Jobs
4、... | [
"shihongji@xiaoneng.cn"
] | shihongji@xiaoneng.cn |
26f644c66a8b92892987b70efed6d22aee3270b8 | 6160586aa239eada16e735d40d57970dedbe1dfc | /modules/app_additional/app_custom/app_position_update_info.py | b2724f015a7037a4d90534964a519bb0702c5061 | [] | no_license | showgea/AIOT | 7f9ffcd49da54836714b3342232cdba330d11e6c | fe8275aba1c4b5402c7c2c2987509c0ecf49f330 | refs/heads/master | 2020-07-23T10:19:37.478456 | 2019-09-23T12:25:59 | 2019-09-23T12:25:59 | 207,525,184 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | import requests
from config import readcfg
header_Gary = readcfg.header_Gary
header_Jenny = readcfg.header_Jenny
url = readcfg.url
def app_position_update_info(positionId, positionName=None, isDefault=None):
url_ = url + "/app/v1.0/lumi/app/position/update/info"
json_ = {
"positionId": positionId,
... | [
"tangguobing2011@163.com"
] | tangguobing2011@163.com |
16e1c2a3227a5d0baee604734564e9d99490428f | bc441bb06b8948288f110af63feda4e798f30225 | /monitor_sdk/model/notify/operation_log_with_meta_pb2.pyi | 4eb4b81a00e7c4fbc85a45c47c2b95b1eeda8653 | [
"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 | false | 2,093 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from monitor_sdk.model.notify.operation_log_pb2... | [
"service@easyops.cn"
] | service@easyops.cn |
202431c6183a6dcff01d28a468d59da31fa8c7b1 | cb9f5db2cdaa5c85a4c5950e34fa22d931da445e | /seed.py | d94c6e63d50668962053785917432aba4eb825c1 | [] | no_license | rmmistry/movie-ratings- | 248fdb36a7392cebc8cfc9686cae61a3b0c516c4 | 89050e4da2dc998ab99fca8537d8df75a650e845 | refs/heads/master | 2021-01-10T05:13:17.863638 | 2015-10-23T00:58:23 | 2015-10-23T00:58:23 | 44,561,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | """Utility file to seed ratings database from MovieLens data in seed_data/"""
from model import User, Movie, Rating
# from model import Rating
# from model import Movie
from model import connect_to_db, db
from server import app
from datetime import datetime
def load_users():
"""Load users from u.user into data... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
1ad194458a4f64f614b9ac861a9e7623c7eaa041 | 29345337bf86edc938f3b5652702d551bfc3f11a | /python/src/main/python/pyalink/alink/tests/examples/from_docs/test_alsusersperitemrecommbatchop.py | 21104be85c65e675c3b2d8099853b1de16f0fc5b | [
"Apache-2.0"
] | permissive | vacaly/Alink | 32b71ac4572ae3509d343e3d1ff31a4da2321b6d | edb543ee05260a1dd314b11384d918fa1622d9c1 | refs/heads/master | 2023-07-21T03:29:07.612507 | 2023-07-12T12:41:31 | 2023-07-12T12:41:31 | 283,079,072 | 0 | 0 | Apache-2.0 | 2020-07-28T02:46:14 | 2020-07-28T02:46:13 | null | UTF-8 | Python | false | false | 920 | py | import unittest
from pyalink.alink import *
import numpy as np
import pandas as pd
class TestAlsUsersPerItemRecommBatchOp(unittest.TestCase):
def test_alsusersperitemrecommbatchop(self):
df_data = pd.DataFrame([
[1, 1, 0.6],
[2, 2, 0.8],
[2, 3, 0.6],
[4, 1, 0... | [
"shaomeng.wang.w@gmail.com"
] | shaomeng.wang.w@gmail.com |
81a39a0d1720fe639ac2b59e7861b623c6118af5 | 2324dea2cb3003c8ab7e8fd80588d44973eb8c77 | /Euler_1_17a.py | 9a350a6d333f32263cf6731390cfab23de618e79 | [] | no_license | MikeOcc/MyProjectEulerFiles | 5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56 | 4d066d52380aade215636953589bf56d6b88f745 | refs/heads/master | 2021-01-16T18:45:44.133229 | 2015-05-27T18:28:43 | 2015-05-27T18:28:43 | 5,876,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | def p17():
def lowest_digit(n):
return n/10, n%10
def words(n):
if n > 999:
raise ValueError, "Number too big."
digits = [None, 'one', 'two', 'three', 'four', 'five', 'six', 'seven',
'eight', 'nine']
teens = ['ten', 'eleven', 'twelve', 'thirteen'... | [
"mike.occhipinti@mlsassistant.com"
] | mike.occhipinti@mlsassistant.com |
77a600b8a161271244c70a072a2ad68e0c19c0f9 | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/个人项目/weather/venv/Scripts/pip3-script.py | a6ac6cc88412f3e6968662a23c89959c23f69bbe | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 446 | py | #!E:\学习文件\python学习资料\开班笔记\个人项目\weather\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
410d7498c362b982e00c1371ea8e80ffedc787f5 | 2ecfe0e10d10513917e4f2770e0a56075404c5d8 | /oldnumba/tests/test_exceptions.py | 80cbe4e56325c6d8248dd39bfb2723c2511aeeb1 | [
"BSD-2-Clause"
] | permissive | laserson/numba | 84ab7615ea0177b496a63e2a86319f0b12992cd2 | 35546517b27764a9120f6dfcd82eba7f4dd858cb | refs/heads/master | 2020-05-20T23:13:23.011971 | 2014-12-08T20:16:20 | 2014-12-08T20:16:20 | 16,754,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | """
>>> boom()
Traceback (most recent call last):
...
ValueError: invalid literal for int() with base 10: 'boom'
>>> boom2()
Traceback (most recent call last):
...
TypeError: 'object' object is not callable
>>> boom3()
Traceback (most recent call last):
...
TypeError: 'object' object is not callable
"""
im... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
d315787bb6b8a33384f02df4fd9358fc7f3ae68e | f359c953ef823cc44f7d87a3736c3e4fb1817c0b | /EDBRCommon/python/simulation/RunIIDR74X50ns/TTbar/TTaw.py | 71536ff1fd213b3a0b0ae79234018df0b109d56f | [] | no_license | jruizvar/ExoDiBosonResonancesRun2 | aa613200725cf6cd825d7bcbde60d2e39ba84e39 | b407ab36504d0e04e6bddba4e57856f9f8c0ec66 | refs/heads/Analysis76X | 2021-01-18T20:00:57.358494 | 2016-05-30T21:30:19 | 2016-05-30T21:30:19 | 23,619,682 | 1 | 1 | null | 2016-04-22T18:38:45 | 2014-09-03T12:41:07 | Python | UTF-8 | Python | false | false | 1,426 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISpring15D... | [
"jruizvar@cern.ch"
] | jruizvar@cern.ch |
e06d790514e028de8404d51db547b5b990b4f864 | 4a5d9f129d5129b34c55171c99f83f0893ae5c11 | /archives/migrations/0006_categorie_lien.py | 1d61623e1a6f57d121b4c3b2cf399d28cc058f6f | [
"MIT"
] | permissive | fromdanut/syndicat-riviere | ec097cf9bf9aec8829069a2a93d4750a36d87a39 | 0fd099524a2a79d0932dbf8b87f8232d470308ad | refs/heads/master | 2018-09-04T19:14:40.490656 | 2018-06-04T10:52:21 | 2018-06-04T10:52:21 | 103,665,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-15 06:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('archives', '0005_remove_categorie_lien'),
]
operations = [
migrations.AddFie... | [
"remidelannoy@hotmail.com"
] | remidelannoy@hotmail.com |
e174afa38ec2ea5f548eadf2273ad23fbf7cb7e9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_105/324.py | 9ddec5819097ba9f1a61905d441b8271fd8d44f7 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py |
class Item(object):
def __init__(self, index=0):
self.index = index
self.parents = []
self.childs = []
def is_source(self):
return len(self.parents) > 1
def is_dest(self):
return len(self.childs) > 1
def get_dests(self):
if len(self.parents):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
109a875760f5fc39260fd4abcf0b9b11c346051b | 7950c4faf15ec1dc217391d839ddc21efd174ede | /explore/2020/september/Evaluate_Division.1.py | 65d4246ab245ebe5ad135c0ae57a97572fd70b22 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | '''
Floyd
You are here!
Your runtime beats 27.33 % of python submissions.
'''
class Solution(object):
def calcEquation(self, edges, weights, pairs):
graph = collections.defaultdict(lambda: collections.defaultdict(lambda: float('inf')))
for (i, j), weight in itertools.izip(edges, weights):
... | [
"838255715@qq.com"
] | 838255715@qq.com |
91bb39e87b153c78a084acbdc38998fcc5de7e04 | 5a01774b1815a3d9a5b02b26ca4d6ba9ecf41662 | /Module 2/Chapter03/django-myproject-03/quotes/models.py | 1659b30889e4e5de96390dfb7a8897a216d15bfe | [
"MIT"
] | permissive | PacktPublishing/Django-Web-Development-with-Python | bf08075ff0a85df41980cb5e272877e01177fd07 | 9f619f56553b5f0bca9b5ee2ae32953e142df1b2 | refs/heads/master | 2023-04-27T22:36:07.610076 | 2023-01-30T08:35:11 | 2023-01-30T08:35:11 | 66,646,080 | 39 | 41 | MIT | 2023-04-17T10:45:45 | 2016-08-26T12:30:45 | Python | UTF-8 | Python | false | false | 3,578 | py | # -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import os
from PIL import Image
from django.db import models
from django.utils.timezone import now as timezone_now
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from django.conf import... | [
"bhavinsavalia@packtpub.com"
] | bhavinsavalia@packtpub.com |
2b062e03f669e6aaead91edb14be24e5af00d892 | 0d76013f6e1ee69713690d6d6e65ce05a3c94de1 | /account/urls.py | e37b608b6be1c0e5f060818a1a26f890b42c089d | [] | no_license | rafiulgits/law | 8f8576980a47dc27ef744a9c32447e69630d3eca | 42e6e6ac79229b648e023b3ae9c3252919045453 | refs/heads/master | 2023-03-05T22:05:25.854131 | 2021-02-20T04:02:52 | 2021-02-20T04:02:52 | 177,262,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from account.views import auth, manage
from django.urls import path
from django.contrib.auth import views as resetviews
from rest_framework_simplejwt.views import TokenRefreshView
urlpatterns = [
path('signup/', auth.SignUp.as_view()),
path('signin/', auth.SignIn.as_view()),
path('access-renew/', TokenRefreshView.... | [
"avoidcloud@gmail.com"
] | avoidcloud@gmail.com |
46d66199b07078ad113d2244608aa0f3dcff80bb | ed8cdcce521b8cab33c66f716c0886e17f035d21 | /.history/script/get_cpu_mem_info_20191222122843.py | 8d68937cd4d25850ae1c036ceb08d000a04b8098 | [] | no_license | deancsdfy/AndroidPerformanceTool_windows | 8ac35729bc651c3af551f090d6788b6ee3f17eb5 | c4906aa9347e8e5eca68dbb7cf2d66a327c70d1f | refs/heads/master | 2020-11-27T20:38:55.014228 | 2020-01-09T15:55:52 | 2020-01-09T15:55:52 | 229,593,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | #! python3
#coding=utf-8
import sys,os,re
print(sys.path)
sys.path.append('.')
from public import publicfunction as util
PATH = lambda p: os.path.abspath(p)
#获取当前应用包名
package_name = util.get_current_packagename()
# print('本次测试APP为:%s' %(package_name))
#获取men cpu 占用情况
def top():
print('Starting get mem cpu inform... | [
"denacsdfy@gmail.com"
] | denacsdfy@gmail.com |
da1c27f4df3f3d42ec1025d9f87a1ffc36a10f25 | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/content/test/gpu/gpu_tests/gpu_integration_test_unittest.py | 7abe56fc3e5829005d6262afc304c84092b965a5 | [
"BSD-3-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | Python | false | false | 6,491 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import os
import shutil
import tempfile
import unittest
import mock
from telemetry.testing import browser_test_runner
from gpu_tests import pat... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
96ebd867811570532d8fc6a0934d0475f42f77e1 | db903a5e99712d1f45e1d45c4d77537f811ae569 | /src/python/pants/option/global_options_test.py | ede2086b69991da2a0ecc2330dd8015392456304 | [
"Apache-2.0"
] | permissive | Hirni-Meshram2/pants | 777db8ea67c1fc66de46f0ab374ba4fff8597357 | e802d62cc68176aa66947a939c771b01f47d5425 | refs/heads/main | 2023-05-01T09:23:10.973766 | 2021-05-19T08:24:50 | 2021-05-19T08:24:50 | 366,021,656 | 0 | 2 | Apache-2.0 | 2021-05-10T11:38:07 | 2021-05-10T11:38:06 | null | UTF-8 | Python | false | false | 6,764 | py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import sys
from pathlib import Path
from textwrap import dedent
import pytest
from pants.base.build_environment import get_buildroot
from pants.engine... | [
"noreply@github.com"
] | Hirni-Meshram2.noreply@github.com |
eed94a047c8ceace0d5f1642db2ffe1c7eb3bf0e | f8ad6963bfc851657ea50c6a036cfad29cdd7f60 | /Study/Keras/Chapter_03_Catching_Layer_Concept/sub_03_image_augmentation.py | 5af584ec17aef04328d39886bb785271c2918441 | [] | no_license | foru120/PythonRepository | e1ab0265c0f50ef2e9acdf7447237c913560692b | db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98 | refs/heads/master | 2021-01-01T06:53:11.728109 | 2019-04-25T13:52:50 | 2019-04-25T13:52:50 | 97,541,222 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | import numpy as np
# 랜덤시트 고정시키기
np.random.seed(5)
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
# 데이터셋 불러오기
data_aug_gen = ImageDataGenerator(
rescale=1./255,
rotation_range=15,
width_shift_range=0.1,
height_shift_range=0.1,
shear_range=0.5,
zo... | [
"broodsky1122@hanmail.net"
] | broodsky1122@hanmail.net |
63aece5376d78fe1adf90813932e843283448f09 | 2b28f749fef34e566b685d520be7ed50f28b7bff | /bondhon_docx/convert_bangla.py | eec2df4268d0d8e6e6bd40811d001112db6fa54b | [
"MIT"
] | permissive | banglakit/bondhon-docx | cc58fea46fd9a50b4559ed26ba2142a5d708423e | a8f6a58995392f420d48f5fc8ec7a25dadeca30a | refs/heads/master | 2020-04-28T12:00:15.608727 | 2019-03-12T18:23:15 | 2019-03-12T18:23:15 | 175,262,079 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/env python
import argparse
import os
from docx import Document
from bondhon_docx import conversion
def main():
parser = argparse.ArgumentParser(description='Convert Bengali Documents between encodings.')
parser.add_argument('from_enc', help='Original Encoding of File')
parser.add_argument('t... | [
"aniruddha@adhikary.net"
] | aniruddha@adhikary.net |
995c7fb086f0b3ce3be2766dfa862208c3486b28 | d52f71cac1c10a8641a18b2b30e789744f3b3ef7 | /Experiments/Yellow_submarine/2019_01_30_ml_approach/src/qmlt/numerical/__init__.py | a1f226b035bbee8776fb49ed53650e6768d1eceb | [] | no_license | BOHRTECHNOLOGY/public_research | 89c67e583b2283f6c67ab33c7303c23bf18467df | d9209f20073d075ae7150250cb1a369f8cb215b7 | refs/heads/master | 2022-12-10T16:47:54.319350 | 2020-01-09T12:51:04 | 2020-01-09T12:51:04 | 143,842,978 | 17 | 5 | null | 2022-12-08T01:40:31 | 2018-08-07T08:26:05 | Python | UTF-8 | Python | false | false | 2,833 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2... | [
"michal.stechly@gmail.com"
] | michal.stechly@gmail.com |
786e15a926f9ea9ba51dff0e7cfd6b90ea532743 | cf14b6ee602bff94d3fc2d7e712b06458540eed7 | /gs24/enroll/urls.py | c58191feb75d1b077f6411cb53f93548cd76ff79 | [] | no_license | ManishShah120/Learning-Django | 8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27 | 8fe70723d18884e103359c745fb0de5498b8d594 | refs/heads/master | 2023-03-29T09:49:47.694123 | 2021-03-28T16:04:34 | 2021-03-28T16:04:34 | 328,925,596 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from django.urls import path
from .views import studentinfo
urlpatterns = [
path('stu/', studentinfo, name='studetails'),
]
| [
"mkshah141@gmail.com"
] | mkshah141@gmail.com |
e3af4d6ab9808460198837d63b6e0f5553b57bbb | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /content/browser/frame_host/DEPS | 3da57e57e31e41791a995a6a1205c9dbf9929048 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 902 | include_rules = [
# The frame_host files should only call upwards in the layering via the
# delegate interfaces.
"-content/browser/web_contents",
"-content/public/browser/web_contents.h",
"-content/public/browser/web_contents_delegate.h",
"-content/public/browser/web_contents_view.h",
]
specific_include_ru... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com | |
8c677a448294359eddc72929c681abd438b90e80 | 385ed58325dd0cc75bdb9fd3e61c5e005f7a4f28 | /source/difang/src/difang/majiang2/table_state/state_xueliu.py | 8aa6d33479d6ef5c2163185c743230768621fe2e | [] | no_license | csirui/hall37 | 17dfa4e4f1f8bf719d0c11ac7738fa4c14fd06db | 5c4eb4b2bf57bbbee4731470c830d8d81915d603 | refs/heads/master | 2021-09-04T03:55:12.460035 | 2018-01-15T15:12:30 | 2018-01-15T15:12:30 | 117,560,615 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # -*- coding=utf-8
'''
Created on 2016年9月23日
@author: zhaol
'''
from difang.majiang2.table_state.state import MTableState
class MTableStateXueliu(MTableState):
def __init__(self):
super(MTableStateXueliu, self).__init__()
# 血战玩法
self.setState(MTableState.TABLE_STATE_DROP)
# 碰
... | [
"cg@ibenxi.com"
] | cg@ibenxi.com |
292ffd198700cdc76c0bcbe232ae0cb3ca792a13 | 07b751896b5e8c029a1808f5587a9bb30090b0b4 | /tensorflow/python/data/experimental/kernel_tests/restructured_dataset_test.py | 3b0d23d6e11ee17a3fe6ac5cf9cce767232c559a | [
"Apache-2.0"
] | permissive | danfischetti/tensorflow | c5326578bac35c6f9a47444d8f91e03097fc2506 | f3d4bf4345a442f605a45b1fbf74ea9656fa72ed | refs/heads/master | 2020-04-11T10:07:21.324395 | 2018-12-13T22:46:13 | 2018-12-13T22:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,105 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
07d557b67c5f57d0bc58e144628ef21653545f9f | ff8db86ce558e57f7b24f8f6d890a3154f6d948f | /neutron_plugin_contrail/plugins/opencontrail/loadbalancer/v2/loadbalancer_member.py | bcc4781fbd29f19c81389f17ff651e751bc75193 | [
"Apache-2.0"
] | permissive | lungdear/tf-neutron-plugin | 143740d1cafb93f4cbe672e53a609c4771be6833 | d19e758673e1e28bf8b270b8e934857014a46cdf | refs/heads/master | 2022-12-04T21:18:39.869684 | 2020-08-08T13:32:59 | 2020-08-11T20:06:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,424 | py | #
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
import uuid
from neutron_lbaas.extensions import loadbalancerv2
try:
from neutron.openstack.common import uuidutils
except ImportError:
from oslo_utils import uuidutils
try:
from neutron.common.exceptions import NotAuthorized
except Imp... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
33aac62c06dca320ef84cbca693af39b9e8b6757 | ee6caf788762d7e297aed4c291b20012ed681410 | /92. Codeforces/R73-C.py | 25419f28edf76623870b575c939e5b06d5e7ad59 | [] | no_license | dmlimgo/Problem-Solving | 61ea51f1737f572714bc5030470a73a6e0339336 | c265ccac046b3e87c34d014876fde11f33a15ed9 | refs/heads/master | 2020-08-30T15:45:08.895947 | 2020-02-02T14:45:28 | 2020-02-02T14:45:28 | 218,424,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | Q = int(input())
for q in range(Q):
c, m, x = map(int, input().split())
if c == 0 or m == 0:
print(0)
continue
if min(c,m,x) == x:
c -= x
m -= x
b = max(c, m)
s = min(c, m)
if (s+b)//3 > s:
print(s+x)
else:
print((s+b)//... | [
"dongmyeong.lim@gmail.com"
] | dongmyeong.lim@gmail.com |
6b75e66b7182ecc217fcf6cf12e24451b43ad307 | aa9647e01ace505d9c70e5247af0bce6749bdc45 | /src/db.py | b34ffc4a33947da398cf2efb32ceeecdd3a2e601 | [
"MIT"
] | permissive | cgDeepLearn/pyserver | 83853875dc33173eb3ae72b2e70c7db2c9ba3404 | 5a5e23ccafcc203b2d70eef289ec618ff9da0481 | refs/heads/main | 2023-01-29T05:45:52.110262 | 2020-12-09T09:03:33 | 2020-12-09T09:03:33 | 311,908,364 | 0 | 0 | MIT | 2020-11-16T08:39:29 | 2020-11-11T08:29:55 | Python | UTF-8 | Python | false | false | 5,075 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : db.py
# @Author : cgDeepLearn
# @Create Date : 2020/11/16-3:30 下午
import redis
from conf import config
import pymysql
from DBUtils.PooledDB import PooledDB
from utils.log import logger
class RedisOps(object):
FIELD_EXIST = 0
NEW_FIELD = 1
def __i... | [
"cglearningnow@163.com"
] | cglearningnow@163.com |
4f66898e78968d145cadffd50f0fbaa0bc24e6f1 | 3b1daac7c1f72b985da899770d98e5f0e8fb835c | /Configurations/VBS/2017CR_v7/plot.py | 98e0a0b236687fec6d81492a000ee0a41787e122 | [] | no_license | freejiebao/PlotsConfigurations | 7e10aa45aa3bf742f30d1e21dc565d59d2a025d8 | cdfd3aff38d1ece9599a699997753bc8ba01b9b1 | refs/heads/master | 2020-06-18T19:22:00.561542 | 2019-09-02T12:52:28 | 2019-09-02T12:52:28 | 186,931,874 | 0 | 0 | null | 2019-05-16T01:58:07 | 2019-05-16T01:58:07 | null | UTF-8 | Python | false | false | 1,009 | py | # plot configuration
# groupPlot = {}
#
# Groups of samples to improve the plots (merge different sample during plot).
# If not defined, normal plots is used
#
Red=632; Violet=880; Green=416; Orange=800; Yellow=400; Azure=860
groupPlot['non-prompt'] = {
'nameHR' : 'non-Prompt',
... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
d01e1db1a3d1d0bce24766f0e241c2a7a9923a0f | 665b89f2472f5cf7eb441609eb112109b7381884 | /weblatex/migrations/0003_song_attribution.py | 98e7a851e1a47ea4155fcbc38063165cc4d344cb | [] | no_license | Mortal/weblatex | 5807bf25ea0d6a371e9fc6f0094f7e7375645b6c | 9c841f9ec226e99f38b6e0c4f12e03535d2c06de | refs/heads/master | 2020-05-14T11:53:08.299274 | 2016-12-23T12:03:50 | 2016-12-23T13:43:52 | 24,682,829 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-31 09:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('weblatex', '0002_auto_20151227_1835'),
]
operations = [
migrations.AddField(
... | [
"rav@cs.au.dk"
] | rav@cs.au.dk |
77d2fa83d35599a5b053874fa4654b5d4fae6602 | 7e72c17745625a1dd4d04f1787c1d2b7bd90642f | /htmlgen/attribute.pyi | 7d17093d5f6cc7d37287a665c5b87a2b0710bba8 | [
"MIT"
] | permissive | ra2003/python-htmlgen | 27de75b94ad3b635caf11d26fa64f4a19e543668 | cbe74d89acd655b78ffe12773b16ef2036502514 | refs/heads/master | 2022-04-08T10:37:36.265349 | 2020-03-11T13:46:53 | 2020-03-11T13:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | pyi | import datetime
from typing import Optional, List, Iterable
from htmlgen.element import Element
class html_attribute(object):
def __init__(
self, attribute_name: str, default: Optional[str] = ...
) -> None: ...
def __get__(
self, obj: Element, type: Optional[type] = ...
) -> Optional[s... | [
"srittau@rittau.biz"
] | srittau@rittau.biz |
b31a19f61f75d84e9c43cae789ca4a9fafb8dfc3 | 3cae667175b2d6aac6d7f3d8189e9a02c38ea1cf | /AOJ/ITP1/python/ITP1_3_B_Print_Test_Cases.py | 01ada1baf19ee14e9ca3f502aaf3c19915bc6f52 | [] | no_license | kokorinosoba/contests | 3ee14acf729eda872ebec9ec7fe3431f50ae23c2 | 6e0dcd7c8ee086650d89fc65616981361b9b20b9 | refs/heads/master | 2022-08-04T13:45:29.722075 | 2022-07-24T08:50:11 | 2022-07-24T08:50:11 | 149,092,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | for i,e in enumerate(list(open(0))[:-1],1):print(f'Case {i}:',e,end='')
"""
i=1
while 1:
n=input()
if n=="0": break
print(f"Case {i}: {n}")
i+=1
"""
"""
import sys
for i,x in enumerate(sys.stdin,1):
if x=="0\n":break
print(f"Case {i}: {x}",end="")
"""
| [
"34607448+kokorinosoba@users.noreply.github.com"
] | 34607448+kokorinosoba@users.noreply.github.com |
e894dd2c0042e872525cb05a134c54ed4c900387 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5010/317005010.py | bae484c5693cbe1c4f44c01024c8ae9c43673514 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 756 | py | from bots.botsconfig import *
from records005010 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'SO',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'N1', MIN: 1, MAX: 10, LEVEL: [
{ID: 'N2', MIN: 0, MA... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
de44f671db344112f3455fc9a68fd630b9fa685c | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/exception/exception_3.py | c238bdfaf994db7ca61ad080adc0958a24b2cca5 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
class MyClass(object):
__slots__ = ('attribute',)
o = MyClass()
o.attribute = 'known attribute'
o.not_a_slot = 'new attribute' | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
1c738ef73bdc0768137d85581d244067c1e3ef73 | f9d7036649ff5d64660c33bc295ddf97e316d082 | /blog/settings.py | b9c6c73355a9da6b8c57b7e16e0b4b08e72fe807 | [] | no_license | jocsakesley/blog-jocsa-kesley | 1ebd6c11ad45c98a6b396ddfe58675da5cd113ec | d106a0870636542c08ee7791d971d77a948b3e0a | refs/heads/main | 2023-03-16T00:08:23.688040 | 2021-03-12T15:36:57 | 2021-03-12T15:36:57 | 322,912,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,687 | py | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from p... | [
"jocsadm@gmail.com"
] | jocsadm@gmail.com |
0e0b02856e4b9275bbad24a7461c2c793b231d87 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_208/81.py | 5eb844629edbf0f9bad243963bf552da90da0e7c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | for t in range(int(input())):
n, q = (int(i) for i in input().split())
hs = [[int(i) for i in input().split()] for j in range(n)]
ds = [[int(i) for i in input().split()][j + 1] for j in range(n - 1)]
input()
input()
tc = [0] * n
tc[n - 1] = 0
for i in range(n - 2, -1, -1):
min = -1
sd = 0
for j in range(1... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c536b9fd5c1e73cc295090ed7b3acb50d109db16 | fec863b67ec1ae65da7111bd8c77d0ab2ef1f6ce | /movie recommendation system/.history/moviemodel_20210503171215.py | 065bab6744cb5a59f9f2bcad99cc217a20cecea4 | [] | no_license | kannan768/movie-recommendation-system | e6cf71620e25a0185fed3b37896137f1f39b0801 | 7460d440d44e77390e459ab10c535b6971c9c3ab | refs/heads/main | 2023-05-14T02:21:50.930672 | 2021-06-09T05:02:30 | 2021-06-09T05:02:30 | 375,225,316 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | import pandas as pd
import numpy as np
from zipfile import ZipFile
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from pathlib import Path
import matplotlib.pyplot as plt
"""##Dataset"""
df = pd.read_csv('ratings.csv', sep=',', encoding='latin-1', usecols=['userId','movieId','... | [
"kannanbsk1609080@gmail.com"
] | kannanbsk1609080@gmail.com |
4c592d51f61cf481cc775b42cd08c2ac8509d63a | d2f50124ff3bec70b9b3139ecb063b06e526781d | /biable/migrations/0063_auto_20170209_1210.py | b1f585b6e2133d7294f9972748a301e53108e589 | [] | no_license | odecsarrollo/odecopack-componentes | e8d993f089bf53bbf3c53d1265e70ac5c06b59b8 | b583a115fb30205d358d97644c38d66636b573ff | refs/heads/master | 2022-12-12T00:33:02.874268 | 2020-08-13T18:45:01 | 2020-08-13T18:45:01 | 189,262,705 | 0 | 0 | null | 2022-12-08T11:23:46 | 2019-05-29T16:37:21 | Python | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-09 17:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('biable', '0062_auto_20170209_1032'),
]
operations = [
migrations.AlterField... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
f562bc0096ec80473c16957f03b4c070b782bab7 | 99280ee4672420b43bdcedb9c6f5c93a5fe182f0 | /API/backend_3/todo_project/todo_project/settings.py | 297321c3ae1b7a167c333d4af61b2cc4b333d714 | [] | no_license | kamral/test_1 | f8674a075d51fc94630df7d6a5cf55b11d086db0 | a10ce3337463d1cb9b56876d0566798740c0b42f | refs/heads/master | 2023-08-06T23:50:45.519935 | 2020-06-07T09:27:43 | 2020-06-07T09:27:43 | 265,688,683 | 0 | 0 | null | 2021-09-22T19:23:15 | 2020-05-20T21:21:21 | Python | UTF-8 | Python | false | false | 3,293 | py | """
Django settings for todo_project project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
e7d10f8320db3c2f560b7875b1bb254593aca879 | 5ffa05429f1278455cd02e759cc64f376813ce20 | /html_form_builder/__openerp__.py | 1e8592471c11867f3ba1a29645d05d25c8cae4e7 | [] | no_license | tonihr/Odoo9 | 217f483993c4a49d5c14ad93ec2594e0a46bef5d | 93e0d3de55714e34229cb5273400a6ebc1f6e3e0 | refs/heads/9.0 | 2021-01-19T04:02:57.407271 | 2017-03-08T05:35:47 | 2017-03-08T05:35:47 | 84,426,868 | 0 | 0 | null | 2017-03-09T10:02:45 | 2017-03-09T10:02:45 | null | UTF-8 | Python | false | false | 681 | py | {
'name': "HTML Form Builder",
'version': "1.8.9",
'author': "Sythil Tech",
'category': "Tools",
'support': "steven@sythiltech.com.au",
'summary': "Manage both internal and external forms",
'description': "Manage both internal and external forms",
'license':'LGPL-3',
'data': [
... | [
"steven@sythiltech.com"
] | steven@sythiltech.com |
9abfdc5a2c0729518fddf65bbefeae6317b8b9a0 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2283-2366/right-branch-2366/twisted/internet/tksupport.py | 19dcf48b56a21fe81e5d2e00d290099a36bdac51 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | """This module integrates Tkinter with twisted.internet's mainloop.
API Stability: semi-stable
Maintainer: U{Itamar Shtull-Trauring<mailto:twisted@itamarst.org>}
To use, do::
| tksupport.install(rootWidget)
and then run your reactor as usual - do *not* call Tk's mainloop(),
use Twisted's regular mechanism for runni... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
d1ca2a52b83d8def8c1aa10f303e6cad817df346 | 41a20700b5bb351d20562ac23ec4db06bc96f0d7 | /src/fg/tv_metrics.py | f38e38ae3fce02c994c9be7c9605523073f0d3f0 | [] | no_license | kedz/noiseylg | ee0c54634767e8d3789b4ffb93727988c29c6979 | 17266e1a41e33aecb95dc1c3aca68f6bccee86d5 | refs/heads/master | 2020-07-30T11:22:08.351759 | 2019-10-30T21:33:11 | 2019-10-30T21:33:11 | 210,212,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | from plum.types import register, PlumModule, HP, props
from subprocess import check_output
from queue import Queue
from threading import Thread
from pathlib import Path
from tempfile import NamedTemporaryFile
import json
import d2t.preprocessing.tvs as preproc
@register("metrics.tv_metrics")
class TVMetrics(PlumMo... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
b48cbc34229e604e32f551d252f74916fe277a3e | b789bf78ffe684782da7eed9df9d88a62d13ad82 | /pyannote/database/protocol/__init__.py | d9f270782593bbe36e7e6fabe7d6039e4a1d5979 | [
"MIT"
] | permissive | yinruiqing/pyannote-database | 8d77678efec06ffb797716e28b4673f1d5ec6453 | 731593b57082e675e0f661f6211f2dd261807561 | refs/heads/master | 2020-12-02T06:45:29.029202 | 2017-06-28T13:12:26 | 2017-06-28T13:12:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2016 CNRS
# 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 ... | [
"bredin@limsi.fr"
] | bredin@limsi.fr |
0a101df3b11fa31f2f9270e4eb622a88f96554f3 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/validators/scattercarpet/selected/marker/__init__.py | 67542f2ea7f75af48003f76f0d057af6429e1e4c | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 1,616 | py |
import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name='size',
parent_name='scattercarpet.selected.marker',
**kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotly... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
9d7d16c4a73674e00426099c87f36ac5e20d778f | 60a4f0fa5c8239edbb4cd4390e3b4a7d70c919de | /user/migrations/0006_auto_20190805_2145.py | 54fac07db74e7b1545406f8ec51ded054071913c | [] | no_license | DuncanMoyo/Developer-Portfolio | cca6cbe29e13bddbf56584e400cbd169a515c047 | 9aa8dcef123b3144d9bf2c34a19f4c65c193ac98 | refs/heads/master | 2022-12-09T17:14:42.865413 | 2019-08-09T03:55:21 | 2019-08-09T03:55:21 | 200,691,837 | 0 | 0 | null | 2022-12-08T05:59:41 | 2019-08-05T16:31:39 | CSS | UTF-8 | Python | false | false | 497 | py | # Generated by Django 2.2.4 on 2019-08-05 19:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0005_auto_20190805_2144'),
]
operations = [
migrations.RemoveField(
model_name='userprofile',
name='skill_le... | [
"duncanfmoyo@gmail.com"
] | duncanfmoyo@gmail.com |
35ff7c7b0b2608a161283aad1158714f840e4261 | bf21cd0ef7a94fa106ccd9f91a4bbfdcda7f94ed | /python-basic/chapter06/ex02_1.py | b89200405d271e475c79d5066eb693b18a584a1a | [] | no_license | juneglee/Deep_Learning | fdf8cae1b962aaa0ce557cb53f78a22b6d5ae1e8 | 17a448cf6a7c5b61b967dd78af3d328d63378205 | refs/heads/master | 2023-07-15T03:02:55.739619 | 2021-08-19T14:04:55 | 2021-08-19T14:04:55 | 273,253,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | # 예외 고급
# 예외 객체
# try:
# 예외가 발생할 가능성이 있는 구문
# except 예외의 종류 as 예외 객체를 활용할 변수 이름:
# 예외가 발생했을 때 실행할 구문
# 예외 객체
try:
number_input_a = int(input("정수 입력> "))
print("원의 반지름:", number_input_a)
print("원의 둘레:", 2 * 3.14 * number_input_a)
print("원의 넓이:", 3.14 * number_input_a * number_input_a)
exce... | [
"klcpop1@gmail.com"
] | klcpop1@gmail.com |
a8d1c3855133be357e3ac72d35616e8b7fc0d18b | ce07ccf78739a768971f393222fdca4a56315241 | /employee_management/employee_management/doctype/ord/ord.py | 5cfedfcf1c3f5f11200b1042214ecfbf25a91a73 | [
"MIT"
] | permissive | Gdinesh03/Frappe | 563e0ddbe925be536f65f925787ed321a6098c0d | efd2d1568b6f5b8a4e0ff31e06a415c717a3d32a | refs/heads/master | 2023-08-27T19:24:12.024442 | 2021-09-14T07:04:27 | 2021-09-14T07:04:27 | 406,260,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Gopi and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class Ord(Document):
def validate(self):
total = 0
for d in self.get('product_details'):
... | [
"vivekananthan112599@gmail.com"
] | vivekananthan112599@gmail.com |
9e94751b6f70c73ed790cef4cef4bfb8083f9ffd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_traipsed.py | f59c7ae5d2434f5d2f1133296a72f7b2307b4aa4 | [
"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 | 226 | py |
#calss header
class _TRAIPSED():
def __init__(self,):
self.name = "TRAIPSED"
self.definitions = traipse
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['traipse']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e8cff7405331705ecde8b0a9722786a9a9e6d615 | 11ff14c118240e87c4804d0373e4656d0683d479 | /RatToolAgent/test/firefox_test.py | 63c7ccf8fd97890cb406cd2616cc6efaffa93c1d | [] | no_license | wxmmavis/OS3.1 | e3028d9c79d5a1a17449fea6380fcdda902bdec7 | 26d954344207a82d2298821c3c4f01302393dc7e | refs/heads/master | 2020-03-25T20:07:11.225493 | 2018-08-13T03:20:57 | 2018-08-13T03:20:57 | 144,115,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import sys
sys.path += ['../../RatToolAgent']
import RatToolAgent as rta
id = rta.init_and_start_browser()
conf = {
'validation_url': "http://172.16.10.252/authenticated/",
'download_loc': r"//a[@id='logo']",
'file_name': "logo.zip",
'page_title': "Ruckus Automation T... | [
"1475806321@qq.com"
] | 1475806321@qq.com |
8eb0ddd533b6242fa21b29701e10215b497fcd90 | d93901e7ff019c7c929594c17b9ed0c575dd1165 | /NumPyNet/box.py | 506948ebbb806413bf3c0380425a8914f0f69669 | [
"MIT"
] | permissive | Nico-Curti/NumPyNet | 0e673ad3da4120cd761a5b1f4c1f0c429cfd20a9 | c5e217751e28f0812282333b83964b7fee217cfb | refs/heads/master | 2022-05-04T04:51:50.076629 | 2022-03-28T10:02:15 | 2022-03-28T10:02:15 | 199,490,280 | 57 | 10 | null | null | null | null | UTF-8 | Python | false | false | 7,109 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
import operator
from functools import wraps
__author__ = ['Mattia Ceccarelli', 'Nico Curti']
__email__ = ['mattia.ceccarelli3@studio.unibo.it', 'nico.curti2@unibo.it']
class Box (object):
'''
De... | [
"nico.curti2@unibo.it"
] | nico.curti2@unibo.it |
4bad0a9d74fdc33c1b08594b16c3ae6ae2d4ad36 | 26b6a35e2415d94fbc1c9fc43814309a5d6f443b | /tests/test_openapi_basic.py | f18074c73970570a97135bc4faab94c39ee95a93 | [
"BSD-3-Clause",
"MIT"
] | permissive | BigRLab/apiflask | 57e0c036aa5d284da5340dcecd49108eea651bcd | d6dd5595009be5de6a7741a5a887276c3ac011bf | refs/heads/main | 2023-05-30T21:30:17.930046 | 2021-07-11T04:07:15 | 2021-07-11T04:07:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,700 | py | import json
import pytest
from openapi_spec_validator import validate_spec
from .schemas import BarSchema
from .schemas import BazSchema
from .schemas import FooSchema
from apiflask import doc
from apiflask import input
from apiflask import output
from apiflask import Schema as BaseSchema
from apiflask.fields import ... | [
"withlihui@gmail.com"
] | withlihui@gmail.com |
abcd9cf3a6a72e23d78bf410cfbdac852343d238 | eb40dce4039d528b9cd06dbeda75da09d09d7fc5 | /need_install/Django-1.8.17/tests/basic/models.py | 0ebe3e0b4af812d92177a78a86fa007380fb0e16 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MulticsYin/MulticsSH | 39b62189446787c7f0f037b1640c9c780bd1dddd | 5837a0bff0e7da0e8535e4e0b31ef6baf24274b4 | refs/heads/master | 2021-08-28T07:53:51.759679 | 2017-12-11T15:31:03 | 2017-12-11T15:31:03 | 82,428,902 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # -*- coding: utf-8 -*-
"""
Bare-bones model
This is a basic model with only two non-primary-key fields.
"""
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Article(models.Model):
headline = models.CharField(max_length=100, default='De... | [
"multics_luo@163.com"
] | multics_luo@163.com |
0ecb406dc4b005795c6d37aaa895fd106844ac7f | b1e7481f8b5bf40c2547c95b1863e25b11b8ef78 | /Kai/crab/NANOv7_NoveCampaign/2017/crab_script_2017_Mu_C.py | a8cd9f368837fbf5bec45d00d8e189ee53cc12fe | [
"Apache-2.0"
] | permissive | NJManganelli/FourTopNAOD | 3df39fd62c0546cdbb1886b23e35ebdc1d3598ad | c86181ae02b1933be59d563c94e76d39b83e0c52 | refs/heads/master | 2022-12-22T22:33:58.697162 | 2022-12-17T01:19:36 | 2022-12-17T01:19:36 | 143,607,743 | 1 | 1 | Apache-2.0 | 2022-06-04T23:11:42 | 2018-08-05T11:40:42 | Python | UTF-8 | Python | false | false | 6,794 | py | #!/usr/bin/env python
import os, time, collections, copy, json, multiprocessing
from PhysicsTools.NanoAODTools.postprocessing.framework.postprocessor import *
from PhysicsTools.NanoAODTools.postprocessing.framework.crabhelper import inputFiles,runsAndLumis
from PhysicsTools.NanoAODTools.postprocessing.modules.common.p... | [
"nicholas.james.manganelli@cern.ch"
] | nicholas.james.manganelli@cern.ch |
0cbc26a7c531c9e66e72aff03e1ef1e05d090406 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2542/60761/235001.py | 0f6cce935b31eb1a6dc6d3e0854022eb80c48159 | [] | 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 | 301 | py | import math
arr=input("")
arr=arr.replace("[","")
arr=arr.replace("]","")
arr=list(map(int,arr.split(",")))
arr.sort()
i=1
maxlen=1
templen=1
while(i<len(arr)):
if(arr[i]==arr[i-1]+1):
templen=templen+1
else:
maxlen=max(templen,maxlen)
templen=1
i=i+1
print(maxlen) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7c658b02af1216d35936435030ac30caedbcf48f | e79888cd68177e7ec5125270cdc52f888e211e78 | /hirao/chapter01/knock04.py | de4c0c4219da8267d76dd51e2e4cbcf9b31ea0fd | [] | no_license | cafenoctua/100knock2019 | ec259bee27936bdacfe0097d42f23cc7500f0a07 | 88717a78c4290101a021fbe8b4f054f76c9d3fa6 | refs/heads/master | 2022-06-22T04:42:03.939373 | 2019-09-03T11:05:19 | 2019-09-03T11:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | s = "Hi He Lied Because Boron Could Not Oxidize Fluorine. New Nations Might Also Sign Peace Security Clause. Arthur King Can."
drop = ",."
print(s)
for c in list(drop):
s = s.replace(c, "")
s = s.split()
display_list = [1, 5, 6, 7, 8, 9, 15, 16, 19]
ans_dict = {}
for i, word in enumerate(s):
if i + 1 in displ... | [
"reohirao116@gmail.com"
] | reohirao116@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.