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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ff7f18189a737d555cbde4deae0c5c44d3e4146 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/building/BoardingPartyBase.py | 6ade45cfe90f83e8674d19176e11788f5a7de483 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 3,545 | py | # File: t (Python 2.4)
from otp.otpbase import OTPGlobals
from toontown.toonbase import ToontownGlobals
import copy
BOARDCODE_OKAY = 1
BOARDCODE_MISSING = 0
BOARDCODE_MINLAFF = -1
BOARDCODE_PROMOTION = -2
BOARDCODE_BATTLE = -3
BOARDCODE_SPACE = -4
BOARDCODE_NOT_PAID = -5
BOARDCODE_DIFF_GROUP = -6
BOARDCODE_PENDING_INV... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
75ef9f781e721c20417a5306eb9cb22d32295072 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0048-Rotate-Image/soln.py | 68f292078a9ebf0a641e10d3de72a04aa64052bf | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 491 | py | class Solution:
def rotate(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
"""
m, n = len(matrix), len(matrix[0])
for i in range(n - 1):
for j in range(n - 1 - i):
matrix... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
96e2414c4b98df768bcd639756de677b9a7b9201 | 6f99c51a186227a127ce8ca2cf3231b15519b70c | /apps/operation/adminx.py | a870326f9adcb0c697ad576297a0cf0fa6b17c14 | [] | no_license | nicolefengs/mxonline | ce0a9748e64b7ecead53bc3c2aefea6269a0a4f9 | 67452439b7e073afaf25621d00085e2de05ffad9 | refs/heads/master | 2020-03-14T22:40:41.053409 | 2018-05-02T09:12:15 | 2018-05-02T09:12:15 | 131,824,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | #coding=utf-8
from operation.models import UserAsk, CourseComments, UserFavorite, UserMessage, UserCourse
from organization.models import CityDict, CourseOrg, Teacher
import xadmin
class UserAskAdmin(object):
list_display=['name','mobile','course_name','add_time']
search_fields= list_filter=['name','mobile... | [
"you@example.com"
] | you@example.com |
ea4755390ded77d2ee9842a8b9c407a80a47f434 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch120_2020_03_31_18_18_53_266473.py | d7858fad724d1cbc438ab352670cbbe95771a2fc | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import random
d = 100
i = 0
print("quantidade de dinheiro disponível:",d)
V = int(input("Aposte um valor:"))
if V == 0:
print("Erro.")
aposta = input("A aposta é em um número(n) ou paridade(p)?")
if aposta == "n":
sorteio_n = random.randint(0,36)
numero = int(input("Digite um número de 1 a 36:"))
if... | [
"you@example.com"
] | you@example.com |
e56c1aefefe86204e5ac1e6be713ea705f2b988e | ad4684b7b746a8438740ffc771123e17557f6e19 | /audio/audio_streamer.py | affdd0c9ef6a7d88bada105baf601e8c926e890e | [] | no_license | gsy/conference | 204bde511232866d77ca15def924835475d5fcc2 | 31f448ab5508a158c71aebe6217cc87814f4d47b | refs/heads/master | 2021-03-12T19:46:01.536532 | 2013-04-17T08:41:31 | 2013-04-17T08:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,445 | py | #!/usr/bin/env python
# encoding: utf-8
import gobject, pygst
pygst.require('0.10')
import gst
import gobject
import sys
import os
import readline
# To the laptop that will catch everything
# REMOTE_HOST = "192.168.33.153"
REMOTE_HOST = "127.0.0.1"
WRITE_AUDIO_CAPS = "audio.caps"
mainloop = gobject.MainLoop()
pipelin... | [
"gtcxg@hotmail.com"
] | gtcxg@hotmail.com |
0d44984be0a8977fe27cd615b7eafa47890bc823 | 803f1b894767aa21f153be8e137840ea511e7cf8 | /pkg/codegen/testing/test/testdata/simple-resource-schema/python/pulumi_example/_utilities.py | 2aa8c1ef88746add475d2f09a752bad67675afca | [
"Apache-2.0"
] | permissive | dorucioclea/pulumi | 9f9b0355e41a881c7798e04851f9996988260cb7 | 766a4d25a5668f975f1371ff5d0ed1e9bf1f1701 | refs/heads/master | 2022-04-29T05:26:38.804331 | 2022-03-27T09:39:00 | 2022-03-27T09:39:00 | 229,891,320 | 0 | 0 | Apache-2.0 | 2019-12-24T07:11:54 | 2019-12-24T07:11:53 | null | UTF-8 | Python | false | false | 7,694 | py | # coding=utf-8
# *** WARNING: this file was generated by test. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import importlib.util
import inspect
import json
import os
import pkg_resources
import sys
import typing
import pulumi
import pulumi.runtime
from semver import VersionI... | [
"noreply@github.com"
] | dorucioclea.noreply@github.com |
23917bd09ece8b6d1d7fb6cc27498eb09ecf9b2c | 48b2328b6b1f5c64ae693c1f16a353c949f93c0c | /Leetcode/509_FibonacciNumber/sol.py | 21091917fcb96a8809a6bf3ccc6bf04aae364da3 | [] | no_license | salaschen/ACM | 1f766aa7449f1ed6ac76c81bff7ecc0756f20a60 | fe414fff98c5d49ea374e24ef50c0ee4f6c66be2 | refs/heads/master | 2022-03-20T19:15:20.481335 | 2022-03-16T09:34:16 | 2022-03-16T09:34:16 | 90,522,481 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | '''
Level: Easy
Author: Ruowei Chen
Date: 02/Oct/2021
'''
class Solution:
def fib(self, n: int) -> int:
fn = [0,1] ;
if n < 2:
return fn[n] ;
cur = 1
while n > cur:
temp = fn[0]+fn[1] ;
fn[0] = fn[1] ;
fn[1] = temp ;
cur ... | [
"ruowei.chen.aus@gmail.com"
] | ruowei.chen.aus@gmail.com |
94107cf8dde62d10192e5e43203d223ebf9b035c | 3adec884f06eabfe50d4ab3456123e04d02b02ff | /538. Convert BST to Greater Tree.py | 94b43f0f5825e42f7c42ca0003659da1ce415c30 | [] | no_license | windmzx/pyleetcode | c57ecb855c8e560dd32cf7cf14616be2f91ba50e | d0a1cb895e1604fcf70a73ea1c4b1e6b283e3400 | refs/heads/master | 2022-10-05T17:51:08.394112 | 2020-06-09T09:24:28 | 2020-06-09T09:24:28 | 250,222,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
num=0
def convertBST(self, root: TreeNode) -> TreeNode:
if root :
self.convertBST(root.right)
root.val+=self.nu... | [
"2281927774@qq.com"
] | 2281927774@qq.com |
6cd1743d11c3b8bbf500dc145e1330c58b6f3433 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/messenger/proto/xmpp/contacts/sub_tasks.py | cab760bb87ed4ec17330fc720e5921b1f2308f4f | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,104 | py | # 2015.11.18 11:58:02 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/messenger/proto/xmpp/contacts/sub_tasks.py
from messenger.m_constants import USER_TAG, USER_ACTION_ID, CLIENT_ACTION_ID
from messenger.proto.xmpp import errors
from messenger.proto.xmpp.contacts.roster_tasks import SyncSubscriptionTas... | [
"info@webium.sk"
] | info@webium.sk |
c3ed054dc3e14fdcef5f4c20f19357a6986ef5da | c5f3f83d5ba37f9f67b150f539286cbe19631451 | /apps/short_url/admin.py | e9441bed261a38db90f3f12c22aff0ab2c83acaa | [] | no_license | andre23arruda/django-shortener-url | be7f13f2e0da40090cbcd898062f2ffe360f3df5 | 06b62a53e5746fb32432dffae1b04c66d8c20092 | refs/heads/main | 2023-07-06T07:04:39.205960 | 2021-08-14T17:29:05 | 2021-08-14T17:29:05 | 396,056,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from django.contrib import admin
from django.conf.locale.pt_BR import formats
from .models import Url
formats.DATE_FORMAT = 'd/m/Y'
@admin.register(Url)
class UrlRegister(admin.ModelAdmin):
list_display = ('id', 'long_url', 'short_url', 'registered_at', 'is_valid',)
list_display_links = ('id', 'long_url', 'sh... | [
"andre23arruda@gmail.com"
] | andre23arruda@gmail.com |
db511c5d8f78db8cb7b72287680dbd013cc1e7f6 | 7887a9337cef4b44bf1ccb80657558aa5e104d35 | /tests/async/test_async_operation.py | 4ff39bd9984c13e16b87cf4840c98930ab866707 | [
"MIT"
] | permissive | wuhuaroubj/canopen_301_402 | 5c7ec60a1e8ac1257cd5c5879fde3a8b92adba84 | 16b189ffe631bb5812311131002d7f722de5fc66 | refs/heads/master | 2021-04-28T18:04:36.819618 | 2016-09-19T10:48:43 | 2016-09-19T10:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from canopen_301_402.async.async_operation import AsyncOperation
from time import sleep
import mock
evt_done_timeout = 2.0
TRACE = False
if TRACE:
import hunter
hunter.trace(module_contains="canopen_301_402")
def test_timeout():
global evt_done_timeout
... | [
"xaedes@gmail.com"
] | xaedes@gmail.com |
eaffd88895449099757d1777f1e4f6b6f1199ccc | cc578cec7c485e2c1060fd075ccc08eb18124345 | /cs15211/01Matrix.py | c485aab88cf7b4b6cae582320a6880ccca35ea3e | [
"Apache-2.0"
] | permissive | JulyKikuAkita/PythonPrac | 18e36bfad934a6112f727b4906a5e4b784182354 | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | refs/heads/master | 2021-01-21T16:49:01.482561 | 2019-02-07T06:15:29 | 2019-02-07T06:15:29 | 91,907,704 | 1 | 1 | Apache-2.0 | 2019-02-07T06:15:30 | 2017-05-20T18:12:53 | Python | UTF-8 | Python | false | false | 4,866 | py | __source__ = 'https://leetcode.com/problems/01-matrix/#/description'
# Time: O( m * n)
# Space: O( m * n)
#
# Description: Leetcode # 542. 01 Matrix
#
# Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.
#
# The distance between two adjacent cells is 1.
# Example 1:
# Input:
#
# 0 0 ... | [
"b92701105@gmail.com"
] | b92701105@gmail.com |
fe2659d2998173f89fe387abf8ec2bca8c2cc725 | 0129b016055daa1aaa1e9e0911f271fa7b38e27e | /programacao_estruturada/20192_166/Bimestral2_166_20192/Parte_1/Giovanne Omar/prova2.py | b73ac32c4fc2e298fbb7be866be63930a722dcfb | [] | no_license | rogeriosilva-ifpi/teaching-tds-course | 7c43ff17d6677aef7b42071929b3de8361748870 | 771ccdc4dc932d0ef5ce6ba61a02b5ee11920d4c | refs/heads/master | 2022-04-04T01:08:45.157185 | 2020-01-30T19:36:57 | 2020-01-30T19:36:57 | 206,439,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | def prr():
print('Tem que ter letra maiscula,minuscula e numeros')
senha = input('Senha: ')
maiuscula = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
minuscula = 'abcdefghijklmnopqrstuvwxyz'
numeral = '1234567890'
seguro = ' '
if seguro in senha:
senha = seguro + senha
print ('Seguro')
e... | [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
4865748c5f4b78e9b21742da57d6807d03e0e882 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_10_02_preview/aio/_container_service_client.py | 75c2ac282f9f65c4ed0d4f485676b5050385064b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 8,166 | 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"
] | kurtzeborn.noreply@github.com |
bbf59a92615aca58f79f53557cce9d592a994f4f | 1898456162422859f8b7da7902582e43ed3afffb | /1_Algorithmic_Toolbox/week2_algorithmic_warmup/3_greatest_common_divisor/gcd_euclidean.py | dba5cfa2886ef9aa53f29d9308fab17bd434a02b | [
"MIT"
] | permissive | AnthonyRChao/UCSD-DSA | 275a5e668d3c54e0e27c8530280ad3c234f93933 | 877d7f1d7f3d3d9d6a0c6cda2421ec130b64da3d | refs/heads/master | 2020-04-22T14:34:18.824210 | 2019-05-06T06:46:09 | 2019-05-06T06:46:09 | 170,448,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Uses python3
def gcd_euclid(a, b):
"""Lemma:
Let a' be the remainder when a is divided by d, then:
gcd(a, b) = gcd(a', b) = gcd(b, a')
a = a' + bq for some value, q
d divides a if and only if it divides a' and b
"""
a_prime = a % b
if a_prime == 0:
... | [
"anthony.r.chao@gmail.com"
] | anthony.r.chao@gmail.com |
2308219eb5641915fe61715620c458341e5e765a | b9723fa7959d88690bd7605738087b91fa82584a | /HW6/env/lib/python3.5/site-packages/stix/test/common/information_source_test.py | e7421765c9ef24429199a48e409b1ba1b00f8440 | [] | no_license | michael5486/network_defense_2 | a35e2cffad35d522e68471ab941b34ee14a10cbc | 87af7f177840c4df16042f9feefef7b415fd98b5 | refs/heads/master | 2021-09-14T03:29:08.138589 | 2018-05-07T16:41:57 | 2018-05-07T16:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | # Copyright (c) 2017, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import unittest
from stix.test import EntityTestCase
from stix.test.common import structured_text_test
from stix.common import InformationSource
class InformationSourceTests(EntityTestCase, unittest.T... | [
"michael5486@gmail.com"
] | michael5486@gmail.com |
4076a7a73a3e41bf67212e5a16777ca13771c952 | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/AlipayUserContractGetRequest.py | 6f18440e9cab71cd6a5dc283901fed5b64cdc84f | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class AlipayUserContractGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.subscriber_user_id = None
def getapiname(self):
return 'alipay.user.contract... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
d3d43400018ccce1b6426aee15074ec634bf3c64 | c1a9436f38714277b063d76af47e8b9448d5cc73 | /Lynda/12 Classes/classes.py | 6b9e4219a561fada6e52c529fa95aea7296bc7e7 | [] | no_license | rakib06/LearnPythonBasic | 83f5bf5c63a40e8d5f93ac3ffa0d0443fdc0519a | fc0b81850e76d38c6816bd9fe81b442b68d6bd75 | refs/heads/master | 2020-09-01T01:03:49.087763 | 2019-12-25T23:11:09 | 2019-12-25T23:11:09 | 218,835,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/python3
# classes.py by Bill Weinman [http://bw.org/]
# This is an exercise file from Python 3 Essential Training on lynda.com
# Copyright 2010 The BearHeart Group, LLC
class Duck:
def quack(self):
print('Quaaack!')
def walk(self):
print('Walks like a duck.')
def main():
don... | [
"six.rakib@gmail.com"
] | six.rakib@gmail.com |
941c2999e3c4c3fdb8999beeceda28b91361d2a4 | 82b7d5d153b815cafc3cd1b1c156803d0af0e30e | /idaes/unit_models/tests/test_equilibrium_reactor.py | 103b06a3516c47a29d2d8971144c2f481e973519 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | spevenhe/idaes-pse | f045ddfa848bbf2bbdda69599222375adbd97e73 | cd509f98eb3d60ea468922f793c8b8040f99723c | refs/heads/master | 2020-06-10T20:31:45.265044 | 2019-06-13T20:39:34 | 2019-06-13T20:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,596 | py | ##############################################################################
# Institute for the Design of Advanced Energy Systems Process Systems
# Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the
# software owners: The Regents of the University of California, through
# Lawrence Berkeley N... | [
"KSBeattie@lbl.gov"
] | KSBeattie@lbl.gov |
c620e2df81219d035ecd1f171637e90d1698b03b | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_waitstatistic.py | 8760b4aa27a3bb43697584165780431ade4596eb | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 8,035 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
36f2df1c0fadae1ce06bec70824d1a7806c2bcfd | f0257428fed2a5f10950ee52e88a0f6811120323 | /study_oldboy/Day6/work/school_course_system/core/all_class.py | 7409957e05a32da0f1caf8ce038138c822b690cf | [] | no_license | tata-LY/python | 454d42cc8f6db9a1450966aba4af6894e1b59b78 | 55d13b7f61cbb87ff3f272f596cd5b8c53b807c5 | refs/heads/main | 2023-04-08T19:31:57.945506 | 2021-04-19T05:39:17 | 2021-04-19T05:39:17 | 328,880,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | #!/usr/bin/env python3
# _*_coding:utf-8_*_
# by liuyang
from conf import settings
import os
import json
class People(object):
"""学校成员类"""
def __init__(self, name, age, sex):
self.name = name
self.age = age
self.sex = sex
class Teacher(People):
"""老师类"""
def __init__(self, nam... | [
"ainiyang20@qq.com"
] | ainiyang20@qq.com |
9c6e4cdc92a086b7fe4fea32597c647b8e50c6df | 82e46ddaeca0a9147f0da00f3edc7c25e2b52596 | /project01_python_soccerletters/soccer_league.py | 97f538144df993f1cb6bdd8378b448b5951ac920 | [] | no_license | sabinem/treehouse-python-techdegree | 8f0fd57681fa0cc620e4c3bfa7553a6647bbef06 | 8bfbba09132b405f7c68cbfd9a0e7596223c3a53 | refs/heads/master | 2021-09-15T05:21:25.631722 | 2018-03-07T08:20:11 | 2018-03-07T08:20:11 | 121,496,395 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | """File includes all functions for Building a Soccer League
and printing team assigmnet letters for the players"""
import csv
import operator
DRAGONS = 'Dragons'
SHARKS = 'Sharks'
RAPTORS = 'Raptors'
PRACTICE_DATETIME = {DRAGONS: 'March 17 at 1pm',
SHARKS: 'March 17 at 3pm',
R... | [
"sabine.maennel@gmail.com"
] | sabine.maennel@gmail.com |
afdf9eeb2ac56c0d8950e050e5216bf7f20b8ba8 | a02ccb5dff094fad8bcd691dda234d50ff768299 | /tools/pytorch-quantization/docs/source/conf.py | 24a47cd91e3a683eeab528b458ce73df04a5c13f | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"ISC",
"BSD-2-Clause"
] | permissive | NVIDIA/TensorRT | 5520d5a6a5926a2b30dbdd2c5b2e4dfe6d1b429b | a167852705d74bcc619d8fad0af4b9e4d84472fc | refs/heads/release/8.6 | 2023-07-29T05:39:45.688091 | 2023-06-09T22:29:09 | 2023-06-09T23:04:18 | 184,657,328 | 8,026 | 2,096 | Apache-2.0 | 2023-09-13T17:30:16 | 2019-05-02T22:02:08 | C++ | UTF-8 | Python | false | false | 7,065 | py | #
# SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
2b6d1fecb2a811e522b9d20194c673d044f96cf0 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/01_netCDF_extraction/erafive902TG/271-tideGauge.py | e29a18682de1fa0fad9a12969b80dd9b5d82266b | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 01 10:00:00 2020
ERA5 netCDF extraction script
@author: Michael Tadesse
"""
import time as tt
import os
import pandas as pd
from d_define_grid import Coordinate, findPixels, findindx
from c_read_netcdf import readnetcdf
from f_era5_subsetV2 import subsetter
def extrac... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
60ab5b263e428ce47743d2c8034aad095274f996 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1992. Find All Groups of Farmland/1992.py | de3ffbfecbdf64854477022bf9e877b2b521cede | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 627 | py | class Solution:
def findFarmland(self, land: List[List[int]]) -> List[List[int]]:
ans = []
def dfs(i: int, j: int, cell: List[int]) -> None:
if i < 0 or i == len(land) or j < 0 or j == len(land[0]):
return
if land[i][j] != 1:
return
land[i][j] = 2 # Mark as visited.
c... | [
"me@pengyuc.com"
] | me@pengyuc.com |
156513a0fe8b7ff93b79d1fb09bff8bb8d17ddae | 9a8da3fdadd810f19edefe3dbcc642546db3c6f2 | /_research/funWithCode.py | 1c3582312f74f5420bc373d98452737188190e7c | [] | no_license | davidlatwe/MS_Research | 304ae44d0705a62ea4af2c3a6e0b9aef72049f44 | 06230dade75069f5b3983d1d4bad02d90c8afd54 | refs/heads/master | 2021-06-01T10:03:19.276550 | 2016-07-30T05:41:55 | 2016-07-30T05:41:55 | 57,391,941 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | import binascii
'''
https://board.b-at-s.info/index.php?app=core&module=global§ion=register
'''
print 'Question:\n'
sec = \
'30 31 31 31 31 30 30 30 20 30 31 30 31 31 31 31 30 20 30 30 31 31 30 30 31 30 20 30 30 31 30 30 30 30 30 20 30 30 31 30 31 31 30 31 20 30 30 31 30 30 30 ' + \
'30 30 20 30 30 31 31 31 30 3... | [
"david962041@gmail.com"
] | david962041@gmail.com |
1c96bc28b3f01bf269ae12e4eeef64856461c2da | e4f8b14cead542586a96bcaa75993b0a29b3c3d0 | /pyNastran/bdf/dev_vectorized/cards/elements/solid/chexa20.py | 70c2e01cd3c3f8988c3c933611cee3085c7639f7 | [] | no_license | afcarl/cyNastran | f1d1ef5f1f7cb05f435eac53b05ff6a0cc95c19b | 356ee55dd08fdc9880c5ffba47265125cba855c4 | refs/heads/master | 2020-03-26T02:09:00.350237 | 2014-08-07T00:00:29 | 2014-08-07T00:00:29 | 144,398,645 | 1 | 0 | null | 2018-08-11T15:56:50 | 2018-08-11T15:56:50 | null | UTF-8 | Python | false | false | 6,450 | py | from numpy import zeros, arange, dot, cross, searchsorted
from numpy.linalg import norm
from pyNastran.bdf.fieldWriter import print_card_8
from pyNastran.bdf.bdfInterface.assign_type import (fields, integer, integer_or_blank,
double_or_blank, integer_double_or_blank, blank)
from .chexa8 import area_centroid
class... | [
"mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b"
] | mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b |
f0a9d907d87bc9d69895fefff2492247b3861692 | 009df7ad499b19a4df066160cf0c7d8b20355dfb | /src/the_tale/the_tale/game/bills/tests/test_person_chronicle.py | 3c4827cf3d5c5c7d9961831e2f707b14d523037d | [
"BSD-3-Clause"
] | permissive | devapromix/the-tale | c0804c7475e877f12f29444ddbbba025561d3412 | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | refs/heads/develop | 2020-03-28T20:26:30.492292 | 2018-10-07T17:32:46 | 2018-10-07T17:32:46 | 149,070,887 | 1 | 0 | BSD-3-Clause | 2018-10-07T17:32:47 | 2018-09-17T04:57:50 | Python | UTF-8 | Python | false | false | 5,070 | py |
import smart_imports
smart_imports.all()
TEST_FREEDOM = float(666)
class PersonChronicleTests(helpers.BaseTestPrototypes):
def setUp(self):
super(PersonChronicleTests, self).setUp()
self.person1 = sorted(self.place1.persons, key=lambda person: -politic_power_storage.persons.total_power_fract... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
c68a214e4c5850820d017ae9dd37c481e6408f49 | 701086eb3c858cf7e677f4e901b37ca26752b494 | /app/models/Whitelist.py | e01b91fd08351d17a9f74917f23a420833912d1b | [] | no_license | anshulkgupta/eventum | e38f19678358b42f0336c642d818e8e8ed14c84b | 4b36ed879694b650c1e5a1eefea7c36855ccf221 | refs/heads/master | 2021-01-18T01:24:52.697223 | 2014-10-26T23:09:11 | 2014-10-26T23:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | from app import db
from datetime import datetime
now = datetime.now
class Whitelist(db.Document):
""""""
date_created = db.DateTimeField(required=True, default=now)
date_modified = db.DateTimeField(required=True, default=now)
email = db.EmailField(required=True, unique=True)
user_type = db.StringFi... | [
"dan.r.schlosser@gmail.com"
] | dan.r.schlosser@gmail.com |
d079d828db34f8f26bd7721251c82253f148fc32 | abe9e6bdd8a24383c79362a7c988f04d9489ba34 | /CUE_unitary/random_unitaries.py | 5c54a65cf83dc23fb9961beef68f7417c11cd388 | [] | no_license | rafaelha/quantum_pathway | 441334d4ca09899e8fec38bb67e41029561cf3dc | b1356033b908afaca452c60520e72f4412aa0888 | refs/heads/master | 2023-02-13T15:10:22.341052 | 2021-01-10T23:20:16 | 2021-01-10T23:20:16 | 261,972,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | from scipy import linalg
import numpy as np
from numpy import cos, sin, exp, pi
import matplotlib.pyplot as plt
def haar_measure(n):
# A Random matrix distributed with Haar measure
# taken from https://arxiv.org/pdf/math-ph/0609050.pdf
z = (randn(n,n) + 1j*randn(n,n))/sqrt(2.0)
q,r = linalg.qr... | [
"rafaelhaenel@phas.ubc.ca"
] | rafaelhaenel@phas.ubc.ca |
1042a4208bc2b9c2a2795a404792ee5c31b05bdc | 21a8ec2d3b12b5a4f6ef7bc39df7573f4d9b087a | /dlex/sklearn/models/word2vec.py | 370b1b0eab641ec8726ee767b38540cc7937e073 | [
"MIT"
] | permissive | trungd/dlex | 58ef9d4c9fcaa0ea13aabd4d638a3e8cb58c8a1f | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | refs/heads/master | 2021-07-24T19:11:07.654399 | 2020-05-22T01:57:04 | 2020-05-22T01:57:04 | 178,768,391 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from gensim.sklearn_api import W2VTransformer
from dlex.configs import Params
class Word2Vec(W2VTransformer):
def __init__(self, params: Params):
cfg = params.model
super().__init__(
size=cfg.dimensions,
window=cfg.window_size,
min_count=cfg.min_count or 0,
... | [
"trungv.dang@outlook.com"
] | trungv.dang@outlook.com |
911419de1a74862753af9183e8413782345dc05f | 64ae9e59e387aa219183f6748f07ede3533c14b2 | /gui/components/status/physicallocationcgi.py | 20868dbb82f21aef6053304a11448695aea5fb33 | [
"BSD-2-Clause"
] | permissive | sohonet/HEN | fe0168816d908c9c5d3180e90e67b12e4724c7be | 47575028a6f3d3fe04d6839dd779b2b1b991accc | refs/heads/master | 2021-01-19T07:30:22.849260 | 2012-02-20T19:41:17 | 2012-02-20T19:41:17 | 87,548,153 | 0 | 0 | null | 2017-04-07T13:25:40 | 2017-04-07T13:25:40 | null | UTF-8 | Python | false | false | 2,294 | py | #!/usr/local/bin/python
##################################################################################################################
# physicallocationdaemon.py:
#
##################################################################################################################
import sys, os, time
temp = sys.pa... | [
"ben@darkworks.net"
] | ben@darkworks.net |
f6fb8015fda10838b80d2b282726bc881398735e | ba57abbddc7c9730741936ebb546d3aa2f1dcb8f | /photos/migrations/0027_photo_live.py | 2710fde475b755f9a9292cde2a99aacc781e5cc2 | [
"MIT"
] | permissive | kingsdigitallab/mmee-django | 895c96e9b9d09e2a16ca3a8cf6b0203e31c4fed7 | 845fefbecfbf8a46fef2ced9c8d19dfe70bc32db | refs/heads/master | 2023-09-01T09:28:32.434736 | 2023-08-11T12:14:46 | 2023-08-11T12:14:46 | 138,729,225 | 0 | 0 | MIT | 2021-06-09T17:39:46 | 2018-06-26T11:36:21 | Python | UTF-8 | Python | false | false | 383 | py | # Generated by Django 2.0.8 on 2018-10-21 12:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photos', '0026_auto_20180926_0149'),
]
operations = [
migrations.AddField(
model_name='photo',
name='live',
... | [
"geoffroy.noel@kcl.ac.uk"
] | geoffroy.noel@kcl.ac.uk |
48ffbf0aaa44cdced4add6095ea072614d0fdea9 | c7a1c1ae40e9d95dfb92251dcfbf3c5010e6ba81 | /expbot.py | bc2084e3034ac5f6e55ebb211b734c7f4424dcbe | [] | no_license | pranavlathigara/Raspberry-Pi-DIY-Projects | efd18e2e5b9b8369bb1a5f5418782480cf9bc729 | 0c14c316898d4d06015912ac4a8cb7b71a3980c0 | refs/heads/master | 2021-04-06T09:14:28.088223 | 2018-02-19T00:15:22 | 2018-02-19T00:15:22 | 124,649,553 | 1 | 2 | null | 2018-03-10T11:30:59 | 2018-03-10T11:30:59 | null | UTF-8 | Python | false | false | 1,846 | py | import explorerhat
import time
steps = [0 for x in range(16)]
G_FORWARDS = 2
G_BACKWARDS = 3
G_LEFT = 1
G_RIGHT = 4
G_PLAY = 5
G_STOP = 6
G_PREV = 7
G_NEXT = 8
edit_index = 0
def turn_on_light(light):
explorerhat.light.off()
if 0 <= light <= 3:
explorerhat.light[light].on()
def handle_touch(ch, ev... | [
"tdamdouni@users.noreply.github.com"
] | tdamdouni@users.noreply.github.com |
32940e37aee2805d56237bb95f2b3c82ea7af7fa | 8792e3449fbc6c8dec99f6af1d9f1b4caddad1f7 | /131player.py | d23f482ca0511c5694f7b8740769634f4f9e6051 | [] | no_license | aarthisandhiya/aarthisandhiya1 | c19c1951c9ba01cd97eeddd44614953088718357 | e6f10247b6a84d6eaf371a23f2f9c3bebbc73e5b | refs/heads/master | 2020-04-15T17:17:07.151242 | 2019-05-20T05:24:19 | 2019-05-20T05:24:19 | 164,868,494 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | a=int(input())
s=0
while a>0:
rem=a%10
a=a//10
if rem%2==1:
s=s+rem
break
if s%2==0:
print("E")
else:
print("O")
| [
"noreply@github.com"
] | aarthisandhiya.noreply@github.com |
203a1767c228e187dbeac0fddef496ac0f6b9a28 | 7082ba81103d859d745cf159f389739e66a7689f | /Chapter3_DDoS_Mitigation_and_Countermeasures/YAML_Jinja2_Examples/config_generate.py | 760e17bea2ce11438d6a3194eeadf3e09ac1d9f1 | [] | no_license | oreillymedia/distributed_denial_of_service_ddos | 4be4bef49e563cefebd4eb1f7e2eca9f15a671a8 | 05e7856363aea012a71646689d1996964f5d3787 | refs/heads/master | 2021-09-25T11:02:30.050119 | 2018-10-21T15:59:33 | 2018-10-21T15:59:33 | 108,575,347 | 9 | 3 | null | 2018-10-21T15:59:34 | 2017-10-27T17:31:33 | Python | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python
from jinja2 import Environment, FileSystemLoader
import yaml, sys
ENV = Environment(loader=FileSystemLoader('./'))
yamlFile = sys.argv[1]
template = sys.argv[2]
with open(yamlFile) as f:
dict = yaml.load(f)
# Print dictionary generated from yaml
print("This is the dictionary attributes: ... | [
"echou@yahoo.com"
] | echou@yahoo.com |
cff7327e9e3015e0a6548179dbcf8765f300dc7e | 59bd639757fd8afcfdba73298a69482fd1f88069 | /imagenet/1_resnet50/8NBC_SNAC.py | 1694b0b59e614ed71afda3e01d9e2a00b84090a1 | [] | no_license | DeepReduce/DeepReduce | f1e14b985affba2796c80d9e795b36cfd4ed9a55 | 707c2b411d65ed77967a3d1ea1506a91cc9d4bfd | refs/heads/master | 2020-08-01T01:47:23.293453 | 2020-06-14T18:09:01 | 2020-06-14T18:09:01 | 210,813,368 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,385 | py | import keras
from keras import optimizers
from keras.datasets import cifar10, mnist
from keras.models import Sequential
from keras.layers import Conv2D, Dense, Flatten, MaxPooling2D
from keras.callbacks import LearningRateScheduler, TensorBoard
from keras.models import load_model
from keras.models import Model
... | [
"DLR_ICLR20@163.com"
] | DLR_ICLR20@163.com |
f66988b1e4965b6ae344917bd414779ad74ca807 | 46a62c499faaa64fe3cce2356c8b229e9c4c9c49 | /taobao-sdk-python-standard/top/api/rest/WangwangEserviceEvalsGetRequest.py | 6406152479f681489920d40c22f149ac57a72112 | [] | no_license | xjwangliang/learning-python | 4ed40ff741051b28774585ef476ed59963eee579 | da74bd7e466cd67565416b28429ed4c42e6a298f | refs/heads/master | 2021-01-01T15:41:22.572679 | 2015-04-27T14:09:50 | 2015-04-27T14:09:50 | 5,881,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | '''
Created by auto_sdk on 2012-09-23 16:46:13
'''
from top.api.base import RestApi
class WangwangEserviceEvalsGetRequest(RestApi):
def __init__(self,domain,port):
RestApi.__init__(self,domain, port)
self.end_date = None
self.service_staff_id = None
self.start_date = None
def getapiname(self):
... | [
"shigushuyuan@gmail.com"
] | shigushuyuan@gmail.com |
12b033f7034f3d97fe823cb291a1a0e7e3da66ef | 2d58c1351ab970eb55f4832b09582592e96468d5 | /p1615_test.py | 0a2e08bf433cfec9f1f0facd7db734f1cb79e05c | [] | no_license | 0x0400/LeetCode | 832bc971c2cae9eecb55f5b14e8c34eaec0d9e26 | 94bb9fedc908490cc52d87def317c057fadaeceb | refs/heads/master | 2023-02-24T20:13:11.345873 | 2023-02-10T16:46:31 | 2023-02-10T16:46:31 | 84,653,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from p1615 import Solution
test_cases = [
((4, [[0,1],[0,3],[1,2],[1,3]]), 4),
((5, [[0,1],[0,3],[1,2],[1,3],[2,3],[2,4]]), 5),
((8, [[0,1],[1,2],[2,3],[2,4],[5,6],[5,7]]), 5),
]
def test_maximalNetworkRank():
s = Solution()
for case in test_cases:
assert s.maximalNetworkRank(*case[0]) == ... | [
"0x0400@users.noreply.github.com"
] | 0x0400@users.noreply.github.com |
effeb89f93cf09cd44df17904784266c89986783 | a93cf8f695c1d1d97b8d0b9ccec6932c5e499ff8 | /sw_expert/Python/seungjun/2805.py | 16268c0755686ef322e0099511c645e5635edda2 | [] | no_license | tmdwns1101/AlgorithmStudy | 0abc108a7a73895934da2633998c7a90137d49ea | e8ca069e202f40e074b7311626fe8da8af057589 | refs/heads/master | 2021-07-22T11:32:30.817108 | 2020-05-20T16:28:27 | 2020-05-20T16:28:27 | 165,377,838 | 0 | 1 | null | 2020-02-07T07:56:16 | 2019-01-12T11:02:59 | C++ | UTF-8 | Python | false | false | 620 | py |
import sys
T = int(input())
# 여러개의 테스트 케이스가 주어지므로, 각각을 처리합니다.
for test_case in range(1, T + 1):
n = int(input())
board = [input().rstrip() for i in range(n)]
pivot = n // 2
cost = 0
for i in range(n):
pos = i
if pos > pivot:
pos = 2*pivot - pos
cost += int(bo... | [
"tmdwns1101@naver.com"
] | tmdwns1101@naver.com |
73f3cf1e4449d6ba0fd187fcd977768648fedaa0 | b75d249e71be510fa6468246e611f7788c55db70 | /finpack/callbacks/inference_runner.py | ab2bf7f76e78011c70892beb6bb81208a08a9fbb | [] | no_license | BWZX/FinTech | 65b9510928218954ddea0b62d4bc3a931d2455a9 | d56253fa98365bfa5ad468283d970c049f51d960 | refs/heads/master | 2020-04-05T14:33:57.047913 | 2017-07-19T13:58:00 | 2017-07-19T13:58:00 | 94,680,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | import tqdm
from torch.autograd import Variable
import numpy as np
from .base import Callback
from .inference import Inferencer
from ..utils import get_tqdm_kwargs
from ..dataflow import DataFlow
import pdb
__all__ = ['InferenceRunner']
class InferenceRunner(Callback):
def __init__(self, ds, infs):
se... | [
"jesse.yang1985@gmail.com"
] | jesse.yang1985@gmail.com |
351556da1dcd3311b59e277f6688e3d8a155e962 | e4bdc4a1dfd2d44bef2eb477733a0f98085b33f7 | /tfx_bsl/telemetry/util.py | dac7cfd6b2bf922538a3481ceca4633604c0f1cb | [
"Apache-2.0"
] | permissive | meixinzhang/tfx-bsl | 9262c589baf3e9f62845e5d8615b733025dd9099 | ff40846050827175b419b7b12c16a3f5b276a20d | refs/heads/master | 2022-12-05T21:53:29.234072 | 2020-08-20T22:20:01 | 2020-08-20T22:20:01 | 263,428,768 | 0 | 0 | Apache-2.0 | 2020-07-23T22:25:39 | 2020-05-12T19:12:39 | Python | UTF-8 | Python | false | false | 971 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
00e540618cc340e9ffe4c9bcf4fbd126cc4d2037 | ea91c40523e088d3f41323d000c3345af2615f58 | /parser/wmhweb/parser.py | 04edcec167defe68e4992e5cd3457499801b7391 | [] | no_license | iamkamleshrangi/simpleSpider | 73ee9bd4ff29273118411d6f803755cd2df42b87 | 25db63ad359880f0fbd0992bc4144947a3d34e6a | refs/heads/master | 2022-12-13T12:25:51.975653 | 2019-08-26T09:36:40 | 2019-08-26T09:36:40 | 164,854,454 | 1 | 0 | null | 2022-06-28T14:41:22 | 2019-01-09T11:57:43 | Python | UTF-8 | Python | false | false | 886 | py | from bs4 import BeautifulSoup as bs
from lib.common import getContent
from lib.mongodb import operations
from lib.jobs_log import updateJobStatus
import re
def parser(job):
obj = operations()
file_path = job['storage_path']
content = getContent(file_path)
soup = bs(content, 'html.parser')
records ... | [
"iamkamleshrangi@gmail.com"
] | iamkamleshrangi@gmail.com |
e9e08582325190cb279a2b66d075b0ef4420ee11 | 77d808f47101202db6cec5a9eee6b38c55f73fde | /02. EXCERCISE - Basic Syntax, Conditional Statements and Loops/08.py | 10180c2d145830cc5bc990e9eaf9cf8df8a42ede | [] | no_license | dimDamyanov/Py-Fundamentals | 2ce5591fbfebf8d95c832e3f7109b24e53dd721b | 5ccae5bfa456829d97e8773ee9f5eaa5f5051765 | refs/heads/main | 2023-01-29T22:21:07.788061 | 2020-12-13T08:11:04 | 2020-12-13T08:11:04 | 317,682,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | input_string = input()
output_string = input()
s = input_string
for i in range(len(input_string)):
s1 = input_string[(i + 1):]
s2 = output_string[:(i + 1)]
if s2 + s1 == s:
continue
s = s2 + s1
print(s)
| [
"dim.damianov@gmail.com"
] | dim.damianov@gmail.com |
0f90e72a1d4d4ef8b165cc7357c066b6908dc0d8 | 98be41d34ca238e040408017e1a2af8cfd71a419 | /Modules/Scaler/compute_average_unit_cell.py | 87733e4eff841c85737c5ee42bef9bc6206def8c | [] | no_license | hainm/xia2 | 338a834fd40aa0a684e4833d34244d6d8f6e0417 | a5ae68c731577f14b8400404e883029d2147c548 | refs/heads/master | 2021-01-24T15:24:44.917551 | 2016-03-10T09:47:27 | 2016-03-10T09:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | #!/usr/bin/env python
# compute_average_unit_cell.py
#
# Copyright (C) 2011 Diamond Light Source, Graeme Winter
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
#
# Replacement function centralised to replace the use of cellparm.
def compute... | [
"graeme.winter@gmail.com"
] | graeme.winter@gmail.com |
7bc83b0f13b30e778c7a90f6e609e30ef0ac3572 | efcd21234f3291e8fc561f49a7c88fc57a63e952 | /tests/functional/regressions/test_multiline_strings.py | 8dcc0327742a01ccb3e2744251cce00a9536d321 | [
"MIT"
] | permissive | tartiflette/tartiflette | 146214a43847d2f423bf74594643c1fdefc746f1 | 421c1e937f553d6a5bf2f30154022c0d77053cfb | refs/heads/master | 2023-09-01T02:40:05.974025 | 2022-01-20T14:55:31 | 2022-01-20T14:55:31 | 119,035,565 | 586 | 39 | MIT | 2023-09-11T07:49:27 | 2018-01-26T09:56:10 | Python | UTF-8 | Python | false | false | 1,198 | py | import pytest
from tartiflette import Resolver, create_engine
@pytest.fixture(scope="module", name="ttftt_engine")
async def ttftt_engine_fixture():
sdl = """
type Query {
simpleParameterField(s: String): String
}
"""
@Resolver(
"Query.simpleParameterField",
schema_name="test_regressions... | [
"raulic.maximilien@gmail.com"
] | raulic.maximilien@gmail.com |
45093cb170b4b757572f577dbdb00c4e41e5e292 | f30b91db647dca1f77fffa4b7e26b6c6a68abbc6 | /8_kyu/Floating point comparison/python/test_solution.py | b38c958754064b02d07be022c2e9d66730288bc1 | [] | no_license | estraviz/codewars | 73caf95519eaac6f34962b8ade543bf4417df5b7 | 5f8685e883cb78381c528a0988f2b5cad6c129c2 | refs/heads/master | 2023-05-13T07:57:43.165290 | 2023-05-08T21:50:39 | 2023-05-08T21:50:39 | 159,744,593 | 10 | 55 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | import pytest
from solution import approx_equals
@pytest.mark.parametrize(
"a, b, eq",
[
(175.9827, 82.25, False),
(-156.24037, -156.24038, True),
(123.2345, 123.234501, True),
(1456.3652, 1456.3641, False),
(-1.234, -1.233999, True),
(98.7655, 98.7654999, True... | [
"javier.estraviz@gmail.com"
] | javier.estraviz@gmail.com |
56d9db15a0cceb14826de86eda7996e2712b31ef | 3a7ed9d2d71a67974ffefa9236387c80eac18981 | /00_WarmUpChallenges/repeatedString_2019_02_21.py | d0b1e5d5443bd73a5f2906ec4879ab8ede35f839 | [] | no_license | kevindsteeleii/HackerRank_InterviewPreparationKit | ab053c90d8c8dfaea491e9a6fd9a5fa3a8b1329e | 6daa175be310923fc5c47c3e779d558d6f3a9538 | refs/heads/master | 2020-04-24T06:55:36.321707 | 2019-03-05T09:10:22 | 2019-03-05T09:10:22 | 171,782,208 | 0 | 0 | null | 2019-03-05T08:17:17 | 2019-02-21T02:02:14 | Python | UTF-8 | Python | false | false | 159 | py | """
https://www.hackerrank.com/challenges/repeated-string/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=warmup
""" | [
"github email address"
] | github email address |
4a48d342d2cdc3f02c107a0831285930b6407258 | 318a2283e9fd8386e1e9b8b33393ec21892ff053 | /plaso/formatters/android_app_usage.py | 4f934ed5c48c179bef93270861d08458b711cc64 | [
"Apache-2.0"
] | permissive | ddm1004/plaso | 3a4590f9c7fb5d624938dd1caea703dc92118646 | 88d44561754c5f981d4ab96d53186d1fc5f97f98 | refs/heads/master | 2021-05-19T10:16:24.111136 | 2020-02-27T04:40:48 | 2020-02-27T04:40:48 | 251,647,179 | 0 | 0 | Apache-2.0 | 2020-03-31T15:31:29 | 2020-03-31T15:31:29 | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
"""The Android Application Usage event formatter."""
from __future__ import unicode_literals
from plaso.formatters import interface
from plaso.formatters import manager
class AndroidApplicationFormatter(interface.ConditionalEventFormatter):
"""Formatter for an Application Last Resumed even... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
23b565d8b2a8ab3626a528f81bf52bbb47e61131 | 6929f9696a8f90b3778d449a199cee8891f3f739 | /python_core/list_tuple_set_search.py | 167ba40383a7bba60f30ab81348871d9ef3a9d6a | [] | no_license | chemplife/Python | 881d492a4271fb2b423f2dd611eaac53a0efdc34 | 7fdfbf442a915e4f41506503baad4345a52d1e86 | refs/heads/master | 2022-12-31T20:00:22.475985 | 2020-10-19T20:14:43 | 2020-10-19T20:14:43 | 305,503,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | import time, string
def membership_test(container):
for i in range(len(container)):
if 'z' in container:
pass
char_set = set((string.ascii_letters)*500000)
char_list = list((string.ascii_letters)*500000)
char_tuple = tuple((string.ascii_letters)*500000)
start = time.perf_counter()
membership_test(container=cha... | [
"ratul.aggarwal@outlook.com"
] | ratul.aggarwal@outlook.com |
b2ee23acc96bb98d93ad3fb3e05950b26ce01dbb | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit353.py | d58778735a1d97d6d6603911b86bdc537ce8f819 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | # qubit number=3
# total number=13
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
bb9dea15280befbcd20ea727dc72004f78bccdc6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_321/ch151_2020_04_13_20_25_48_753863.py | fb9550841cfbebbd430552d32a832a92139cc0ff | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | def classifica_lista(l):
if len(l) < 2:
return 'nenhum'
for i in range (len(l)):
if l[i] > l[i-1]:
c = 0
elif l[i] < l[i-1]:
c = 1
if (c = 0 and l[i+1] < l[i]) or (c = 1 and l[i+1] > l[i]):
c = 2
break
if c == 0:
return ... | [
"you@example.com"
] | you@example.com |
418db186f83eb3bdbbfcc0713df9741c991d5f13 | 34693b720742528539b666e6b55b8a53c109b0f1 | /pwn/rop_emporium/2-split/1-32bit/pwntools_dbg.py | d024dc4602e1928c25820a9994af886d60e2c910 | [] | no_license | Catcheryp/CTF | 307ebc8f6da5945a8b51e1e14c7579077a528696 | b785833c825fb209195a34369ff6d067c8746f50 | refs/heads/main | 2023-08-08T02:10:11.566297 | 2023-08-06T20:30:46 | 2023-08-06T20:30:46 | 152,171,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | from pwn import *
# Many built-in settings can be controlled via CLI and show up in "args"
# For example, to dump all data sent/received, and disable ASLR
# ./exploit.py DEBUG NOASLR
def start(argv=[], *a, **kw):
# Start the exploit against the target
if args.GDB:
return gdb.debug([exe] + argv, gdbsc... | [
"jburgess03@qub.ac.uk"
] | jburgess03@qub.ac.uk |
8bb9a49cb677ccdd8f20bef3a865090f1a0de473 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/basic/7_15.py | 47324d708b588f201643588e7521e3f6f480f0fa | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | Python program to get Current Time
In this article, we will know the approaches to get the current time in
Python. There are multiple ways to get it. The most preferably date-time
module is used in Python to create the object containing date and time.
**1: Current time of a timezone –** Using pytZ module
... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
eeb7546c75b3b6ad01a811b97a56d8ebbb752b3f | 1e4923a7f415a68aaf22b22406f005a22324a367 | /ps/Lib/site-packages/setuptools/extension.py | e3903c33556b5dfecaaa3b587e722c4c28f2c758 | [
"Apache-2.0"
] | permissive | phanikiran99/blogapp | 91ab261bb1737ee5e0bae11568527975f8b36421 | 79483041754a62ad9aa9314343a437027a071a5b | refs/heads/master | 2020-03-13T00:54:14.811040 | 2018-04-24T18:10:56 | 2018-04-24T18:10:56 | 130,895,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | import sys
import distutils.core
import distutils.extension
from setuptools.dist import _get_unpatched
_Extension = _get_unpatched(distutils.core.Extension)
def have_pyrex():
"""
Return True if Cython or Pyrex can be imported.
"""
pyrex_impls = 'Cython.Distutils.build_ext', 'Pyrex.Distuti... | [
"phanikiran99@gmail.com"
] | phanikiran99@gmail.com |
8498346d7922253bd0eacfc450aead7f1afed285 | 5d09e3b32b0f7dee1147139e5e57822f33dc0f32 | /lib/authorship_simulate_base.py | 8104c60606922df764ab157fa7984242dc22516c | [] | no_license | scone-snu/pyflib2 | cb797f625100d280f6bd3b757795040ca892b1ed | bb2ad7d9974903ac8c3b01ac48b4d6ab72d2ac80 | refs/heads/master | 2020-03-31T17:37:54.216805 | 2011-05-06T04:43:31 | 2011-05-06T04:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | import os
import glob
import re
import networkx as nx
import itertools
import matplotlib.pyplot as plt
import pickle
from collections import defaultdict
from PlotFunctions import *
import random
from scipy.stats import gamma
import math
# Variables that can be modified
START_YEAR = 1997 # Year to start simulation from... | [
"jccccf@gmail.com"
] | jccccf@gmail.com |
f232753e867945b6495485f24cac5ff8ae4e0666 | 21cfc943bf4989362fe4b1063ee9451a44175098 | /kitsune/questions/tests/test_karma.py | 9b53b9cff7c7e5dff562a6807f493c7d803f6db4 | [] | permissive | feer56/Kitsune1 | 6230a8f01b554c3bb6b4a7016edf198f7b2d74dd | 0b39cbc41cb7a067699ce8401d80205dd7c5138d | refs/heads/master | 2023-01-07T14:34:24.046353 | 2014-11-23T04:38:04 | 2014-11-23T04:38:04 | 27,058,591 | 1 | 0 | BSD-3-Clause | 2022-12-27T14:53:52 | 2014-11-24T03:14:18 | Python | UTF-8 | Python | false | false | 2,474 | py | import mock
from kitsune.questions.karma_actions import (
AnswerAction, AnswerMarkedHelpfulAction, AnswerMarkedNotHelpfulAction,
FirstAnswerAction, SolutionAction)
from kitsune.questions.tests import TestCaseBase, answer
from kitsune.sumo.tests import post
from kitsune.users.tests import user
class KarmaTest... | [
"rickyrosario@gmail.com"
] | rickyrosario@gmail.com |
0d68583685799cb7f838930e725c0558d2039ad1 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/EGL/NOK/swap_region2.py | 15d7b7749d2e3ba7979ff3ae15c99e77677d952c | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 748 | py | '''OpenGL extension NOK.swap_region2
This module customises the behaviour of the
OpenGL.raw.EGL.NOK.swap_region2 to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/NOK/swap_region2.txt
'''
from OpenGL import platform, constant, arr... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
f52e4f60d959af9541b75faf1b0c795288fb4307 | 0e5f3af9174f53b87a9db42faffc5ba88480426e | /jupyter_server/extension/handler.py | 2285e7f063294c805cb0e03b4c7b9891e8e177db | [
"BSD-3-Clause"
] | permissive | KennyWZhang/jupyter_server | 69a91b59004bc1157a161e35c1ac0fc1257a6999 | bf029a5a410625c1227d7fd6e45986148b176a7b | refs/heads/master | 2020-06-13T09:17:26.064076 | 2019-06-27T06:38:38 | 2019-06-27T06:38:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | from jupyter_server.base.handlers import JupyterHandler, FileFindHandler
from traitlets import Unicode, default
class ExtensionHandler(JupyterHandler):
"""Base class for Jupyter server extension handlers.
Subclasses can serve static files behind a namespaced
endpoint: "/static/<extension_name>/"
... | [
"zachsailer@gmail.com"
] | zachsailer@gmail.com |
3c9ed0d2055e6d730ce3542d13ae5b25341ac8cd | 15ed3ab4510677e6df9b11af8fd7a36fc6d826fc | /v1/res_mc_le_2/ortoven.py | 51c795491e62e41e95d56db6cdc7d334e159d82e | [] | no_license | pe-ge/Computational-analysis-of-memory-capacity-in-echo-state-networks | 929347575538de7015190d35a7c2f5f0606235f2 | 85873d8847fb2876cc8a6a2073c2d1779ea1b20b | refs/heads/master | 2020-04-02T08:08:38.595974 | 2018-01-17T08:12:26 | 2018-01-17T08:12:26 | 61,425,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
ortoven.py - Orthogonalization vs. N
Created 5.8.2015
Goal: Measure the effect of orthogonalization process, depending on N.
"""
from library.ortho import learn_orthogonal
from library.mc6 import memory_capacity
import numpy as np
from numpy import random
from tim... | [
"gergelp@gmail.com"
] | gergelp@gmail.com |
7336143924b7fa3c04d6faa0441cf285f070670c | 3f6088cf1aaaddc18ca1c6f2d5bfc69590941d60 | /Xianyang_vmd/projects/pca_one_step_one_month.py | 6233815bed29cac0fbac8b631c7283885f1034b3 | [
"MIT"
] | permissive | YX577/MonthlyRunoffForecastByAutoReg | 80038b1b0401d0dbe9b4b67cf531298090815cf7 | 2d66c628141f001e4ffb3dc3b7520a0f0f0ff239 | refs/heads/master | 2022-03-30T10:48:30.165288 | 2020-01-17T02:36:47 | 2020-01-17T02:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import os
root_path = os.path.dirname(os.path.abspath('__file__'))
import sys
sys.path.append(root_path)
from PCA import one_step_pca
if __name__ == "__main__":
one_step_pca(
root_path=root_path,
station='Xianyang',
decomposer='vmd',
predict_pattern='forecast',
n_components=... | [
"zuojianyi@outlook.com"
] | zuojianyi@outlook.com |
41fb1e52df9ff5130e4d242072b581afbd2b61a4 | b87216632b87e1877723e8b079ebe35680b5989c | /pytorch-10/10.4.py | 1384f61991a88b5820904b02ac52c51715e4a570 | [] | no_license | Jackliaoall-AI-Books-Practise-Archive/DL-with-Python-and-PyTorch | a8b888c9963d38f256f815effb4e1760fa50984a | 18f907e9c5351fadecc5c41dbb3efb7efb8b6142 | refs/heads/master | 2023-07-03T02:49:44.461381 | 2021-08-08T13:31:18 | 2021-08-08T13:31:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,034 | py |
import torch
from torch import nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
from torchvision import models
from torchvision.datasets import ImageFolder
from datetime import datetime
def get_acc(output, label):
total = output.shape[0]
_, pred_label = output... | [
"zhangxin19870504@163.com"
] | zhangxin19870504@163.com |
45a48deb8c867f7e8c2ac195ac2b3a819361fe00 | 449175eb373ebc622221552e43b46c9378adb618 | /grader/files_mai/6210545980_task2.py | 22ac0f3f5cf033a28ebe23660681eb8560110745 | [] | no_license | NutthanichN/grading-helper | 911d39211e070eafc9ffee6978f9270a0be38016 | 971c605effb4f59e9e22a32503337b3e671f120c | refs/heads/master | 2022-12-12T22:46:15.062462 | 2020-09-08T06:50:12 | 2020-09-08T06:50:12 | 293,724,530 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | def check_valid_input(a): # Check input that must be only rock, paper, scissors, lizard and spock.
"""
>>> check_valid_input("rock")
True
>>> check_valid_input("paper")
True
>>> check_valid_input("scissors")
True
>>> check_valid_input("lizard")
True
>>> check_valid_input("spock")... | [
"monaprom134@gmail.com"
] | monaprom134@gmail.com |
69e92160ac275dc70b1346b22dcc9a7531236eb2 | fa0ae8d2e5ecf78df4547f0a106550724f59879a | /Crawler/day02/lxmlTest.py | 9f6077a5d486a90d0b54a942c2d22da3cb3cf918 | [] | no_license | Polaris-d/note | 71f8297bc88ceb44025e37eb63c25c5069b7d746 | 6f1a9d71e02fb35d50957f2cf6098f8aca656da9 | refs/heads/master | 2020-03-22T17:51:49.118575 | 2018-09-06T03:36:00 | 2018-09-06T03:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 8 17:16:52 2018
@author: Administrator
"""
from lxml import etree
xml = """
<bookstore>
<book>
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book>
<title lang="chs">Pytho... | [
"610079251@qq.com"
] | 610079251@qq.com |
14d637853077495453c40daade4d491e2a593f7e | 60ce73bf2f86940438e5b7fecaaccad086888dc5 | /working_scrapers/Kansas_clay.py | ad26969d414aba798ed3fa8963eefcec32c066e6 | [] | no_license | matthewgomies/jailcrawl | 22baf5f0e6dc66fec1b1b362c26c8cd2469dcb0d | 9a9ca7e1328ae549860ebeea9b149a785f152f39 | refs/heads/master | 2023-02-16T06:39:42.107493 | 2021-01-15T16:37:57 | 2021-01-15T16:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,157 | py | #!/usr/bin/python
'''
This is a template script
MG
'''
from urllib.request import urlopen, Request
import pandas as pd
import os
import time
import numpy as np
from datetime import datetime
import datetime as dt
import sys
from io import StringIO
from joblib import Parallel, delayed
import requests
from jailscrape.com... | [
"jborowitz@gmail.com"
] | jborowitz@gmail.com |
35a950dbf3b9e75a38ee84649b783316892357c9 | 778d24bc897fc92bb9aef0ee832959c58d768202 | /apps/orgs/adminx.py | 5e7ea220ffb663aebe175cac06d164c8e723199d | [] | no_license | ferry-luo/GuliEdu | cd5c9901b1d3d80f30fdedd9d6cce1e0c3e794d6 | 585e18a686e75931d568b5dfc343bdc4da454477 | refs/heads/master | 2022-12-28T19:15:08.973810 | 2020-10-18T09:29:03 | 2020-10-18T09:29:03 | 305,004,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import xadmin
from .models import *
class CityInfoXadmin(object):
list_display = ['name','add_time']
model_icon = 'fa fa-bath'
class OrgInfoXadmin(object):
list_display = ['image', 'name','course_num','study_num','love_num','click_num','category','cityinfo']
model_icon = 'fa fa-gift'
style_fields... | [
"1021164925@qq.com"
] | 1021164925@qq.com |
869b495ffd293a3d94c9bc684760277e0f23369b | 292d23019c18d0b724aed88f04a0f20b5b616bb9 | /Python1/homework/requests_demo.py | c98ec3c56fc555d6c045d54f58ed4f2b1ca24f94 | [] | no_license | RedAnanas/macbendi | 6f1f6fd41ed1fe8b71408dffa0b964464bd00aa8 | 8d5aa39d9389937f0e0c3f7a7d6532537f33cda8 | refs/heads/master | 2023-06-11T18:57:31.061009 | 2021-06-29T15:04:56 | 2021-06-29T15:04:56 | 380,759,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,824 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import requests
import json
base_url = 'http://jacky-vpc'
def get_method1():
# 最基本的get方法使用
return requests.get(base_url + '/agileone/?key=value&key1=value')
def get_method2():
# 可以利用字典类型的数据传参数
params = {'key': 'value', 'key1': 'value... | [
"1315157388@qq.com"
] | 1315157388@qq.com |
4895aae8487188c234456e63b583a485476c9829 | 237b1823007a07f17d7bc5c413764361686cd5da | /course/migrations/0024_auto_20181205_1209.py | 3cf32f3689f5f2df2eb1e3e0af02335f178521ed | [] | no_license | alan8365/EasyCoding | df919d5c32c7c9f832ddb2edac874b2f0ca350a5 | 7b676fb64644c754e69ef9373c53e311c9cd9cb5 | refs/heads/master | 2020-04-24T06:30:43.569268 | 2019-02-20T23:49:56 | 2019-02-20T23:50:42 | 126,286,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.0.7 on 2018-12-05 12:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0023_auto_20181205_0812'),
]
operations = [
migrations.AlterField(
model_name='fill',
name='content',
... | [
"alan8365@gmail.com"
] | alan8365@gmail.com |
d7b570628ed22d1f5d9ec89a7651bbefef601209 | a2706c66c4f2769c00fc5f67e1a85742cfa7e17c | /MODULES/Execution_UserExecution_CallbackEnumChildWindows.py | ebda523c29d49dd154ae4fead9e32a39e3d78131 | [
"BSD-3-Clause"
] | permissive | Jeromeyoung/viperpython | 48800312dcbdde17462d28d45865fbe71febfb11 | ba794ee74079285be32191e898daa3e56305c8be | refs/heads/main | 2023-09-01T18:59:23.464817 | 2021-09-26T04:05:36 | 2021-09-26T04:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | # -*- coding: utf-8 -*-
# @File : SimpleRewMsfModule.py
# @Date : 2019/1/11
# @Desc :
import time
from Lib.ModuleAPI import *
class PostModule(PostPythonModule):
NAME_ZH = "Callback免杀(EnumChildWindows)"
DESC_ZH = "模块通过编码shellcode与EnumChildWindows Callback结合的方式实现免杀"
NAME_EN = "Callback AV bypass(Enu... | [
"yu5890681@gmail.com"
] | yu5890681@gmail.com |
02e6a3de200c8917daf80bad4aaf1422f224e314 | 0478abafc05f1dd55ddf6054d95fef73e9fa03e9 | /quati/modules/continuous_softmax.py | 424dea2bcea09def82286fd875ce7ccf5540523d | [
"MIT"
] | permissive | deep-spin/quati | 89bce0868b36b0d7902659507b72acfbd01ada98 | 62a6769475090182fe2990b2864d66f8e2081a32 | refs/heads/master | 2023-03-12T09:22:31.520259 | 2021-03-02T15:13:22 | 2021-03-02T15:13:22 | 330,678,540 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | import torch
import torch.nn as nn
# torch.autograd.set_detect_anomaly(True)
class ContinuousSoftmaxFunction(torch.autograd.Function):
@classmethod
def _expectation_phi_psi(cls, ctx, mu, sigma_sq):
"""Compute expectation of phi(t) * psi(t).T under N(mu, sigma_sq)."""
num_basis = [len(basis_fu... | [
"marcosvtreviso@gmail.com"
] | marcosvtreviso@gmail.com |
e095a2cd8bc732b35cfca3d7493e9ee4b1805c24 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_343/ch58_2019_06_05_15_34_32_171117.py | decac30d69c3036fed2ef41debb5f2f301530027 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | def calcula_fibonacci(n):
lista=[1,1]
i=2
while i <= n:
lista.append(lista[n-1]-lista[n-2])
i+=1
return lista | [
"you@example.com"
] | you@example.com |
8428d937c22cfa74c60528fa50dff7c54b123ba0 | f89d70fc8bf370ef4e2aa54c7ee0de3b4a053624 | /troposphere/panorama.py | d36c5dec7721f9129222f01ccc913c74feb38a5c | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yks0000/troposphere | a7622bff01c31f10dcb296d2ca353144e1d7f793 | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | refs/heads/main | 2022-04-28T03:51:42.770881 | 2022-04-15T15:15:01 | 2022-04-15T15:15:01 | 482,753,190 | 1 | 0 | BSD-2-Clause | 2022-04-18T07:20:42 | 2022-04-18T07:20:42 | null | UTF-8 | Python | false | false | 2,395 | py | # Copyright (c) 2012-2022, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
from . import AWSObject, AWSProperty, PropsDictType, Tags
from .validators import boolean
class ManifestOverridesPayload(AWSProperty):
"""
... | [
"mark@peek.org"
] | mark@peek.org |
e75e947ac7f463fd18ff6fb01275a6ee8c879f01 | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/605.can-place-flowers/605.can-place-flowers_104872540.py | 604e16e3c8af492351df9335d2a9cb55492d46ad | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import itertools
class Solution(object):
def canPlaceFlowers(self, flowerbed, n):
"""
:type flowerbed: List[int]
:type n: int
:rtype: bool
"""
flowerbed = [0] + flowerbed + [0]
t = sum((sum(1 for _ in items) - 1) // 2
for v, items in ... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
58cfa225de80a2132c45f83d79cdbcdb6c23c2c2 | 3632fd8d60f7cc2c681f4bb8e03b0dfbee087420 | /trepan/processor/command/show_subcmd/autopython.py | 1a7bacdf9608660b13e41ec585d95b65ca3166ac | [] | no_license | mvaled/python3-trepan | 893a81db566c95fd3f265e0439cdbf06b6c82ada | 3c8ddf94cd12ca72985d82d2cd589f8551a538fd | refs/heads/master | 2021-01-23T20:41:49.314047 | 2014-02-05T10:34:55 | 2014-02-05T10:34:55 | 16,593,782 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2009, 2013 Rocky Bernstein
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... | [
"rocky@gnu.org"
] | rocky@gnu.org |
096c041686e84d64320aa2ff1a85f3968733eb1c | f3c4fab7d6d79366c5fa1dcf973a30dfb9741cd8 | /PYTHON/SSAFY/13_day/bus.py | cb66569e5b01f69b4553aa769941ee6be3b6def0 | [] | no_license | eprj453/algorithm | 03874747a4cef041721a0b6dc1d7ee16e86edfa9 | abf6f7bc319737bbeecba9d88caaab952bf7d4d9 | refs/heads/master | 2023-01-09T10:36:02.231703 | 2022-12-26T16:10:50 | 2022-12-26T16:10:50 | 196,233,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import sys
sys.stdin = open('s_input.txt', 'r')
t = int(input())
for i in range(1, t+1):
n = int(input())
bus = [0]
ans = []
for j in range(n):
a, b = map(int, input().split())
# print(a, b)
for k in range(a-1, b): # 1, 4
if bus[k]:
bus[k... | [
"eprj453@gmail.com"
] | eprj453@gmail.com |
5381cfbd84425e5fcbc2c6d7328f1b8b61ce1099 | 0baac2c4aa84f65896054043486577b6e08ba9ef | /python/476-umberComplement.py | 8a5ae6d584a99f112078bb2c1176426b6ef302d8 | [] | no_license | hy299792458/LeetCode | c302983b81151acddffe3a71b03b4aceb20b4fa4 | bb24717283a6b3ddd463b68cba34f70df75ddfed | refs/heads/master | 2021-01-21T17:01:58.082623 | 2017-09-12T16:49:44 | 2017-09-12T16:49:44 | 91,924,578 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | class Solution(object):
def findComplement(self, num):
num = abs(num)
total = 1
while total <= num:
total *= 2
return total - num - 1
| [
"hy299792458@gmail.com"
] | hy299792458@gmail.com |
a809872cd19991eebd1ad7a841514ad988e803f0 | 79ad67da4b7a869391f963798eb5367fdb9e3c63 | /venv2/build/WTForms/tests/i18n.py | 94c82ab6063e6bddccc32b9ed9ff14db4aea888f | [
"BSD-3-Clause"
] | permissive | SteveScott/EvePIProfit_github | 19e37d6313e1719822ac5f5a22d4385576ebe1a2 | af9db4c9763546b02eb08a3d043b17bc1cdc53a1 | refs/heads/master | 2020-05-30T14:46:56.392431 | 2019-04-16T00:07:37 | 2019-04-16T00:07:37 | 70,080,617 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,184 | py | from __future__ import unicode_literals
from unittest import TestCase
from wtforms import form, TextField, validators
from wtforms.i18n import get_translations
from wtforms.ext.i18n import form as i18n_form
def gettext_lower(self, s):
return s.lower()
def ngettext_lower(self, singular, plural, n):
if n == ... | [
"stevescott517@gmail.com"
] | stevescott517@gmail.com |
a147cfff6d74217ef4c82c4061c03bdc45e9329a | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/sieuthithoitrangvn.py | 1a39ea85dbfd0eec1f8681faf30cdf664614a7d1 | [
"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 | 934 | 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[@id='team_images']/div[@class='mid']/ul/li[1]/img/@alt",
'price' : "//div[@class='deal-buy']/p[@class='deal-price']/strong",
... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
c5aa7f93751a048f50aaa962110d508c77f27ea8 | d8018fc2cd52db17fa288d58197bb949cd1b9ec8 | /tests/test_modification.py | a88d88a6fc0732a9b4995e5afe68b256f509d718 | [
"MIT"
] | permissive | tbenthompson/quadracheer | 6570a3062ecd95a97c59d203e7cfc8d525b68db5 | da32766c4b58dba1c8c6e3904404bc0c9ce28b12 | refs/heads/master | 2016-08-04T10:46:12.473391 | 2014-08-16T20:08:12 | 2014-08-16T20:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | import numpy as np
from math import log
from quadracheer.legendre import legendre_integrals
from quadracheer.rl135 import rl1, mu_3_0, mu_3_1, mu_5_0, mu_5_1
from quadracheer.recursion import modified_moments
from quadracheer.modification import modify_times_x_minus_a,\
modify_divid... | [
"t.ben.thompson@gmail.com"
] | t.ben.thompson@gmail.com |
298108ece4c8718b4432baa9c6e668f912393043 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /few_point/old_week/own_work/few_week.py | 306d6f06c372a5769ed6fd951d99f35ff768f832 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py |
#! /usr/bin/env python
def big_thing(str_arg):
different_fact(str_arg)
print('be_few_time_for_first_group')
def different_fact(str_arg):
print(str_arg)
if __name__ == '__main__':
big_thing('number')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
672429a929f0b4039ab90f49799335d9905bfc26 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/Spinning Wheel Game.py | 000a3af5a17a97fd12c47f3e74f68bb8da51e8c5 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6beb45d5af6bb4b3dda6649cd2180c46ef2980ca83ed163e32141e0be85b318b
size 3274
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
9536b7cdda40955e08d4ba5aa24b6a2c788400a4 | b64f4a01f1b15d7128b1bd806bfe3d10c66f14d4 | /api/migrations/0002_auto_20190603_1829.py | 13f3ac400e3f5ee67dfb59716276212bd2de90a2 | [] | no_license | mahmoudzeyada/Cloned-Pastbin-webapp | 2e85a92b852baf0253a169107e0dafd8f90a9d0c | c3fbb768707d2fee5a3bed7c99f64109d103707f | refs/heads/master | 2022-05-15T15:28:46.681474 | 2019-06-03T21:39:00 | 2019-06-03T21:39:00 | 190,085,592 | 0 | 0 | null | 2022-04-22T21:26:07 | 2019-06-03T21:34:59 | Python | UTF-8 | Python | false | false | 780 | py | # Generated by Django 2.2.2 on 2019-06-03 18:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
df49bc8ad919e9c82907d2cfd9a95acdb0a52376 | 7f5dca89315a869b2f30d39a9ed3d3c848960bd0 | /basic_cms/migrations/0001_initial.py | 6293c2a85468d2f2bf467386cf084a16d2b6b674 | [] | no_license | ljean/balafon_standalone_example | 6df5f3252a9ec3fcc180ced2ee3301f5ca42f196 | bde12ee9c1f1735a0a3c63271fab1a5caee9ecf9 | refs/heads/master | 2021-01-10T08:10:35.437568 | 2016-03-24T11:31:42 | 2016-03-24T11:31:42 | 54,129,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
import django_extensions.db.fields
import coop_cms.models
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),
('coop_cms', '0003_auto_20160204_1... | [
"ljean@apidev.fr"
] | ljean@apidev.fr |
f7082a7156a6dda784bb7806d3d451b3a8383186 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /ncsnv3/configs/ncsnv3/cifar10_continuous.py | 7e44c6bc6fe36efad48a5bd257ab4994d5ae3fb1 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,219 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
2094da5347167c011a3f4e1919c4ee4ac2648197 | 88b298dd3ea7f8daac6ce74c7c22c28aa707d156 | /exercises/chapter02.py | c64abc6190256f26932efc08746233144c7d1ef8 | [] | no_license | carlhinderer/python-math | 7780c91046e6cea8773bc4b921206db647f56e57 | f8c71e1adc00634b8e736b1209e2603e0b34d812 | refs/heads/master | 2020-04-09T01:48:01.143330 | 2018-12-27T06:56:15 | 2018-12-27T06:56:15 | 159,917,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,140 | py | # Chapter 2 Exercises
import matplotlib.pyplot as plt
import math
g = 9.8
# 2-1: Temperature Varying During The Day
#
# Pick 3 cities, and plot their daily hourly temperatures.
def plot_hourly_temperatures():
hours = range(24)
nyc_temps = [29, 29, 28, 28, 27, 27, 27, 28, 28, 30, 32, 34, 35, 36, 37, 36, 35,... | [
"carl.hinderer4@gmail.com"
] | carl.hinderer4@gmail.com |
609e576738d5a8aa402657f45f472c5b61e34a4c | 9ee2623d415ac789c7a79b31f9b4408b86235d0f | /setup.py | 8c97a58ac030be8a2a26ce1dd6fbd9589cec2ee9 | [] | no_license | dieynaba77/WaterWatch | b8ec15bf9622df0b833438b9b34e9821498b3e87 | 735f02c4f2ad7658a61e0efbcaecbce0f995a6f8 | refs/heads/master | 2020-03-26T06:26:56.689332 | 2018-07-25T07:53:24 | 2018-07-25T07:53:24 | 144,605,840 | 1 | 0 | null | 2018-08-13T16:29:27 | 2018-08-13T16:29:26 | null | UTF-8 | Python | false | false | 1,138 | py | import os
import sys
from setuptools import setup, find_packages
from tethys_apps.app_installation import custom_develop_command, custom_install_command
### Apps Definition ###
app_package = 'waterwatch'
release_package = 'tethysapp-' + app_package
app_class = 'waterwatch.app:Waterwatch'
app_package_dir = os.path.join... | [
"sarvapulla@gmail.com"
] | sarvapulla@gmail.com |
792c3769cb7b55e0b7f9f96ca9808de7d932e87f | 97bd82d809168b2cf43441981b754edcd937cb2e | /resto/models.py | 046d4072e18e6e1d436088e86eceacb834f0be8a | [] | no_license | harshvardhan7395/rest | c841bc81f4eecf6dda72e856b58e87fef20c1ef1 | 6f726950dca60116a167d3e9a39e9c43b4668ccc | refs/heads/master | 2020-09-26T18:31:30.283807 | 2020-02-03T05:41:36 | 2020-02-03T05:41:36 | 226,313,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Rest(models.Model):
name_text = models.CharField(max_length=200)
address_text = models.CharField(max_length=400)
def __str__(self):
return self.name_text
def __str__(self):
retur... | [
"you@example.com"
] | you@example.com |
0966d96c62f7fc473804c0193685c1e6fe42f153 | 1554150a9720ebf35cd11c746f69169b595dca10 | /old_package_and_launchers/import_derivation.py | af4de935941cc78df7b214ef5394add39f0cb4c6 | [] | no_license | andrewili/shape-grammar-engine | 37a809f8cf78b133f8f1c3f9cf13a7fbbb564713 | 2859d8021442542561bdd1387deebc85e26f2d03 | refs/heads/master | 2021-01-18T22:46:51.221257 | 2016-05-31T21:15:28 | 2016-05-31T21:15:28 | 14,129,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | # import_derivation.py
import package.controller_view.importer as importer
imp = importer.Importer()
imp.import_derivation() | [
"i@andrew.li"
] | i@andrew.li |
6ac44b55cdb421a17cb7da6239f3f32c9c02a4bd | 5419f9706d17fd088b6facea88ca7e5f489efe0a | /python/fate_client/pipeline/param/cross_validation_param.py | dca405efa324f9f874fb85e7854cd2ec0be629ef | [
"Apache-2.0"
] | permissive | sf-fl/federatedML | f686ca5a97f31b8ea458646851eb52e0d0dfe01f | 6cb48525d662ba1bad12702622f2b43f67da67cf | refs/heads/master | 2023-07-16T21:09:02.109514 | 2021-09-02T01:39:52 | 2021-09-02T01:39:52 | 311,584,205 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE 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/lic... | [
"35332465+windwithmind@users.noreply.github.com"
] | 35332465+windwithmind@users.noreply.github.com |
dba68c36a803c8c2611a79171bcc7462f574cd4a | 0755a5f8d821b2b02b7f087d26e1433156075f04 | /programmers/level1/콜라츠추측.py | 23cea283bf0d463df0339ec2dfb3cb2fe3a582ad | [] | no_license | kimevanjunseok/Algorithm | 35fdfdd5a0c5c8ad1029429aba8d6c2320088993 | ea0883964e43779e569a1a2c8a879a246083ef0e | refs/heads/master | 2020-08-17T22:50:13.096789 | 2020-01-07T14:28:56 | 2020-01-07T14:28:56 | 215,720,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # My solution
def solution(num):
cnt = 0
while True:
if cnt == 500:
return -1
elif num == 1:
return cnt
elif num % 2 == 0:
num = num // 2
cnt += 1
elif num % 2 != 0:
num = num*3 + 1
cnt += 1 | [
"jnunseok@gmail.com"
] | jnunseok@gmail.com |
5b727617d4a65c12285e973357cefbfebff470c9 | b4808bc9e777c0f4cbb22bc8571c9d0d6ee5e984 | /fep1_actel_check/tests/test_fep1actel_acis.py | b9f084902b870ed3ff117b42e49d7f743ba5c89d | [] | no_license | jzuhone/fep1_actel_check | b454c14df14f57ca80788c15848416a2997f00b8 | af6b9332d18e539d99c1bea6bed999f8b816a499 | refs/heads/master | 2023-04-10T06:55:28.744658 | 2021-04-01T18:28:19 | 2021-04-01T18:28:19 | 87,862,654 | 0 | 1 | null | 2021-01-04T15:44:36 | 2017-04-10T22:17:40 | Python | UTF-8 | Python | false | false | 843 | py | from ..fep1_actel_check import model_path, FEP1ActelCheck
from acis_thermal_check.regression_testing import \
RegressionTester, all_loads
import pytest
@pytest.fixture(autouse=True, scope='module')
def fa_rt(test_root):
# ACIS state builder tests
rt = RegressionTester(FEP1ActelCheck, model_path,
... | [
"jzuhone@gmail.com"
] | jzuhone@gmail.com |
a21da1150f4a7c402b931dfc2a345336519b5fa0 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/env_variable_resp.py | 40067510863069f23bd1ea2e2717c77645127dfe | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,704 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class EnvVariableResp:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
ce82b7275b9d22abd9f113e6193dcc3154ad0dff | a8b0599af76b5393039431f876be00d628a1fe43 | /backend/kangas/datatypes/text.py | cd0ead0ae0c47e9a40ad7e4f360a0f5d6682a57d | [
"Apache-2.0"
] | permissive | comet-ml/kangas | c951f648d890dca5a66cbab405d3437be2f3e9e3 | df0c1a495032cc4f1c367c74fcb0ef6e5a2063be | refs/heads/main | 2023-06-12T23:38:43.068259 | 2023-06-05T18:38:34 | 2023-06-05T19:28:33 | 550,324,241 | 944 | 41 | Apache-2.0 | 2023-06-05T19:28:35 | 2022-10-12T15:10:04 | Jupyter Notebook | UTF-8 | Python | false | false | 1,759 | py | # -*- coding: utf-8 -*-
######################################################
# _____ _____ _ _ #
# (____ \ _ | ___) (_) | | #
# _ \ \ ____| |_ ____| | ___ ___ _ _ | | #
# | | | )/ _ | _)/ _ | |(_ / __) |/ || | #
# | |__/ ( ( | | |... | [
"doug.blank@gmail.com"
] | doug.blank@gmail.com |
8e23a6396a07e2824051e591a2264143d84551cb | 3952c7b723163a454a694380951a98f0ebfdff8d | /fbapps/tests/mocks.py | f6b3420a97573c775bf6b61576afb1a053234134 | [
"BSD-3-Clause"
] | permissive | Manduka/django-fbapps | e49dae22892539c523d0a280005c72b750fb94e2 | 3f1410d69231489a26cb46d06fd25eeeff4dbe0f | refs/heads/master | 2020-12-01T01:08:11.079909 | 2013-01-29T00:15:26 | 2013-01-29T00:15:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #DO not import at test setup time
import base64
import hmac
import hashlib
try:
import json
except ImportError:
from django.utils import simplejson as json
from fbapps.views import FacebookTabView
#from fbapps.utils import parse_signed_request
class MockedFacebookTabView(FacebookTabView):
object = None
... | [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
57b06614dc5fb453268dfe042633a4fd66d510a1 | 52f8ac63714421e1930d7b90cb8200bb24d6ac42 | /milove/shop/admin/payment.py | 98b55aa047ea35479aee0e8a64b6b5efb10ee3e3 | [] | no_license | richardchien/milove-backend | ccc7afa17e88b17199ad3878b9315e12c2af8ef1 | 0310f2a60ebcbc3143d0aedcc6cb5842ba264a43 | refs/heads/master | 2023-07-06T12:45:13.622032 | 2017-10-02T04:40:00 | 2017-10-02T04:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from django.contrib import admin
from ..models.payment import *
class BillingAddressInline(admin.StackedInline):
model = BillingAddress
def has_add_permission(self, request, obj=None):
return False
def has_delete_permission(self, request, obj=None):
return False
class PaymentAdmin(adm... | [
"richardchienthebest@gmail.com"
] | richardchienthebest@gmail.com |
58ecebdb3fc981492ee9bd667d4773082c6f8964 | 56be7f6b6a1243c532af9ea98310ccea165a1e66 | /day18/about_fenye/about_fenye/settings.py | 89ec6c16b96098094c0b0ebd63a8a82d2a2e88c6 | [] | no_license | 214031230/Python21 | 55b0405ec4ad186b052cde7ebfb3f4bb636a3f30 | d7fc68d3d23345df5bfb09d4a84686c8b49a5ad7 | refs/heads/master | 2021-05-26T06:00:53.393577 | 2019-01-09T02:29:04 | 2019-01-09T02:29:04 | 127,778,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | """
Django settings for about_fenye project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"214031230@qq.com"
] | 214031230@qq.com |
731bd47232300631441334490fdd574ad7048092 | cd9224afd9f377adf00b9dfd18669daf39f2663f | /src/per_cls_acc.py | 19ff8db7156379304d7dc49cbc357517e2b12179 | [] | no_license | luzai/few-shot | 56fc03ff87652d18eda291980cf01486ce2f339e | 792406d990b5a0aaea0f8589883643120ede1170 | refs/heads/master | 2021-03-27T13:34:05.766349 | 2017-11-11T10:56:21 | 2017-11-22T08:32:36 | 96,596,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | from utils import *
from metadata import *
from model_utils import *
from gen_imglst import *
from keras import backend as K
from keras.engine.topology import Layer
@chdir_to_root
def load_model(path):
import parrots
import string, os
from parrots.env import Environ
import parrots.dnn as dnn
impor... | [
"907682447@qq.com"
] | 907682447@qq.com |
ee56bd687ba22cd692482612f4b6285cc8269d56 | 9959162401c59da445d5cb48644848cc08f0d5ea | /special/generator.py | 9b5af75a82adeb63f40ac13243ab3e58fdaad071 | [] | no_license | lyyljs/learnpython2.7 | 05cb87af4aefe01cc2c818d7ae80517447199d49 | bd4cf7685da83c1480e6d6b295a13f3a710eeb23 | refs/heads/master | 2020-05-27T18:11:55.537798 | 2014-11-23T05:28:07 | 2014-11-23T05:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | g = (x * x for x in range(10))
#print g.next()
#for n in g:
# print n
def fib(max):
n,a,b = 0,0,1
while n < max:
yield b
a,b = b,a + b
n = n + 1
print fib(6)
for n in fib(6):
print n
| [
"lyyljs@gmail.com"
] | lyyljs@gmail.com |
e0ee8332241f33e8ac224531f96a59b70ca20d6a | d4c47276c8fbd15240aa228eda04ee8e338caf02 | /Python/Python Lesson/First/Lesson6/Sample5.py | a5bbddca38ab215550aa763df0123ef5cfff1199 | [] | no_license | developer579/Practice | a745384450172fb327913c130303ab76492096f1 | 54084468af83afcc44530e757800c8c3678147c1 | refs/heads/main | 2023-05-06T01:36:06.222554 | 2021-06-02T07:04:03 | 2021-06-02T07:04:03 | 324,312,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | data1 = {"東京":80,"名古屋":60,"京都":22}
data2 = {"京都":100,"大阪":50,"福岡":75}
print("1のデータは",data1,"です。")
print("2のデータは",data2,"です。")
print("1を2で更新します。")
data1.update(data2)
print("1のデータは",data1,"です。") | [
"69954570+developer579@users.noreply.github.com"
] | 69954570+developer579@users.noreply.github.com |
c2e6bdaf1ed939fe510a417bd3e4a4e879e25359 | 72ab1015b460cb0cbfef4221023855cd7302594c | /Terningkastar (python)/terning.pyw | e0ebcc47945b891d9f349c8802a4e186b4e2e35f | [] | no_license | madsop/shellscript | abc99a0f1834078b67cc60a9122da7c17a113fe7 | eb118778b16ca399084177d4f89fcea25cd3abb7 | refs/heads/master | 2022-11-12T14:48:45.113944 | 2020-06-29T18:51:04 | 2020-06-29T18:51:04 | 275,900,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | pyw | # -*- coding: UTF-8 -*-
import random
import sys
def dice(terningstorleik):
kast = random.randint(1,terningstorleik)
array[kast-1] += 1
#input = raw_input("antalkast d auge? ")
#print sys
temp = sys.argv[0]
if temp[0] != int(temp[0]):
print "antal kast er ikkje eit heiltal"
if temp[1] != int(temp[1]):
print "an... | [
"devnull@localhost"
] | devnull@localhost |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.