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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f56cc1a689c23240821dc326faae91eec5feaa9c | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/intermediate/275_v2/test_domains.py | d5cdc26ce93502ec1f4cbb81d48608342ccc407b | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,101 | py | import pytest
from domains import get_common_domains, get_most_common_domains
@pytest.fixture(scope="module")
def common_domains():
return list(get_common_domains())
def test_get_common_domains(common_domains):
assert len(common_domains) == 100
first_3 = ['gmail.com', 'yahoo.com', 'hotmail.com']
la... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
95bd676c55b0e0caee97915b2a024a12ad465654 | 07917881310fc81d85a2cbdf27c9b3c4fa03c694 | /python1812/python_1/9_函数用法_作用域_列表生成器/代码/07_全局变量.py | 97951e1ea2fc17126e5d76734a0b71094e83cf71 | [] | no_license | zaoyuaner/Learning-materials | 9bc9a127d1c6478fb6cebbb6371b1fd85427c574 | 1f468a6f63158758f7cbfe7b5df17f51e3205f04 | refs/heads/master | 2020-05-18T11:38:45.771271 | 2019-05-20T09:07:44 | 2019-05-20T09:07:44 | 184,384,050 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # 全局变量: 定义在函数之外,任何函数都可以访问的变量
# 白色框框之内就是一个global,全局作用域
num = 100
def test():
print(num) # 100 在函数中访问(读取,不能写)全局变量
def show():
num = 10
print(num)
test()
show() # 10 局部变量已经定义
print(num) # 100
| [
"13510647877@163.com"
] | 13510647877@163.com |
eadb3d553eb28bb13c81807b3b17909d9ca84a3f | bb35fcd1ee3fa5b7df0ff3e461044edf70e92524 | /test_plots/test_tooltips_labels.py | c1d2778b6790bbe1618709b43b0778720f9c9642 | [
"BSD-3-Clause"
] | permissive | olgabot/mpld3 | 87020c3fb8b1437c5dbbe3343c79661397e31cbf | d2d07c523f4c0bdc9d3b09c51333704b9b4cd480 | refs/heads/master | 2020-04-02T01:05:33.575259 | 2014-04-16T20:22:39 | 2014-04-16T20:22:39 | 18,869,007 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | """Plot to test line styles"""
import matplotlib.pyplot as plt
import numpy as np
import mpld3
from mpld3 import plugins
fig, ax = plt.subplots()
colors = plt.rcParams['axes.color_cycle']
points = []
for i, color in enumerate(colors):
points = ax.plot(i, 0, 'o', c=color, ms=20)
plugins.connect(fig,
... | [
"vanderplas@astro.washington.edu"
] | vanderplas@astro.washington.edu |
045043d6dcb139aba2f0418b6e7593ea3991fd83 | fd67592b2338105e0cd0b3503552d188b814ad95 | /egoi_api/apis/paths/lists_list_id_fields_extra_field_id_options.py | 68bb80d9a0e65a53b5c08cf7cb137e05a18d58a7 | [] | no_license | E-goi/sdk-python | 175575fcd50bd5ad426b33c78bdeb08d979485b7 | 5cba50a46e1d288b5038d18be12af119211e5b9f | refs/heads/master | 2023-04-29T20:36:02.314712 | 2023-04-18T07:42:46 | 2023-04-18T07:42:46 | 232,095,340 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from egoi_api.paths.lists_list_id_fields_extra_field_id_options.get import ApiForget
from egoi_api.paths.lists_list_id_fields_extra_field_id_options.post import ApiForpost
class ListsListIdFieldsExtraFieldIdOptions(
ApiForget,
ApiForpost,
):
pass
| [
"integrations@e-goi.com"
] | integrations@e-goi.com |
a75e491842a39c88ddce9f8c43a381047f45905e | 8771c94dce3c7e30c9e5b5f45cf8683ba9cac6fd | /tests/algorithms/p0104_maximum_depth_of_binary_tree_2_test.py | 1e76e763a99388de366aa44a459decdf8fb74a24 | [] | no_license | J14032016/LeetCode-Python | f2a80ecb7822cf12a8ae1600e07e4e6667204230 | 9a8f5329d7c48dd34de3105c88afb5e03c2aace4 | refs/heads/master | 2023-03-12T02:55:45.094180 | 2021-03-07T07:55:03 | 2021-03-07T07:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | import unittest
from leetcode.algorithms.p0104_maximum_depth_of_binary_tree_2 \
import Solution, TreeNode
class TestMaximumDepthOfBinaryTree(unittest.TestCase):
def test_maximum_depth_of_binary_tree(self):
solution = Solution()
a = TreeNode(3)
b = TreeNode(9)
c = TreeNode(20)
... | [
"mao_xiaodan@hotmail.com"
] | mao_xiaodan@hotmail.com |
45cebbd676d9cce5816d7a8df162db395d9deda4 | 6cefdb99a86b40ef7dac8fc7157c5d1c2590c711 | /tests/address_for_script_test.py | 82e6f6ac600cdd484c3878d6792d01740e076bb5 | [
"MIT"
] | permissive | IFWallet/pycoin | 114c0cc223901d7e84aecf0f17aa110592a2d661 | 5aef6dd086fbd9e7ed6de743ff6a41a5e7941ca0 | refs/heads/master | 2020-04-03T03:10:32.619279 | 2020-02-05T13:43:49 | 2020-02-05T13:43:49 | 154,978,454 | 0 | 0 | MIT | 2020-02-05T13:43:51 | 2018-10-27T15:18:35 | Python | UTF-8 | Python | false | false | 3,669 | py | import unittest
from pycoin.ecdsa.secp256k1 import secp256k1_generator
from pycoin.networks.registry import network_for_netcode
from pycoin.solve.utils import build_hash160_lookup
def make_tests_for_netcode(netcode):
network = network_for_netcode(netcode)
address_for_script = network.ui.address_for_script
... | [
"him@richardkiss.com"
] | him@richardkiss.com |
de85989536e80af06321bc7c0a0ce4ce0cc1494e | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/shared/sound_helpers.py | 146bf63ce4b5ad318550adefd5c609c959fafbb7 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 759 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/shared/sound_helpers.py
import SoundGroups
import WWISE
from shared_utils import CONST_CONTAINER
class SliderSoundEvents(CONST_CONTAINER):
RTPC_PROGRESS_BAR = 'RTPC_ext_ammo_progress_bar'
SLIDER_SINGLE_PLUS = 'cons_ammo... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
51cc34be2e374d2fb8d8f7405684743ad5592995 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/operations/_certificate_registration_provider_operations.py | ab1cf6e26166407c53b15d4d1f95d256267d7ea2 | [
"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 | 6,431 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
0b8ade5ec782288bdadae0b5799342fe4f0d4a4a | 30f8afce1ba484183d8e1e14aae76cabb2d92354 | /pbase/day24/first_pymysql.py | 16c55a412867e72c944154e0d07e6188face8c91 | [] | no_license | brooot/Python_Base_Codes | d83e8c3b8a37b86672412c812fdb0d47deb67836 | a864685e160b5df4162a6f9fb910627eda702aaf | refs/heads/master | 2023-04-10T20:08:39.161289 | 2021-03-25T12:59:23 | 2021-03-25T12:59:23 | 200,570,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import pymysql
"""创建一个库python,在库中创建一个表t1
"""
#1.创建数据库连接
db=pymysql.connect("localhost","root","123456")
#2.创建一个游标对象(用db对象的cursor方法创建游标)
cursor = db.cursor()
#3.使用游标方法操作数据库
cursor.execute("create database python;")
cursor.execute("use python;")
cursor.execute("create table t1(\
id int primary key,\
name char(20)... | [
"1442704671@qq.com"
] | 1442704671@qq.com |
563c595db8e3413595f61fba5384d8f9265b788a | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/hmpnas001/question4.py | 51aecf3c68b8c9e91c9725b5e6d06df2f059c360 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | """program to find palindromic primes
nasonkwe hampwaye
2014-05-09"""
N=eval(input("Enter the starting point N:\n"))
M=eval(input("Enter the ending point M:\n"))
Mf=M+1
def prime(f,s):
#base case
if f==0:
return False
if f==1:
return False
#recursive step
elif b>=2 and b<math.sqrt(f):
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
84557ed92016863cb3377f02eae80683dd0d755f | 5201e237c0d58cdfdbc2fdf8103f9141161eb9f8 | /support/itkBuildOptions.pyi | e4be3d296749a3fdc9a8c5aed16d7a5f1b182896 | [] | no_license | hjmjohnson/itk-stubs | 704f5b92a755e55b81d02fcad62a366143e125f3 | 771951d007ae425b758e088eae6f9e4ca0e4afb1 | refs/heads/main | 2023-01-22T05:50:33.649088 | 2020-12-04T01:31:09 | 2020-12-04T01:35:06 | 318,368,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | pyi | from itk.support import itkTypes as itkTypes
from itk.support.itkTemplate import itkTemplate as itkTemplate, itkTemplateBase as itkTemplateBase
from typing import List, Union
DIMS: List[int]
USIGN_INTS: List[itkTypes.itkCType]
SIGN_INTS: List[itkTypes.itkCType]
REALS: List[itkTypes.itkCType]
VECTOR_REALS: List[itkTemp... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
c2cd681b086bed3a6de66c95c7ef848bb939cc86 | 19a32440205b2caeec67c73c10d917b5fb30a86a | /isi_sdk/models/snapshots_sid_lock_create_params.py | b83773787db192bd8e5a15f999f798bd8ba24d8f | [
"Apache-2.0",
"MIT"
] | permissive | marrotte/isilon_sdk_python | 480e84312f5924a506aeb09c9c7cae79a2b9b7f4 | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | refs/heads/master | 2020-03-23T07:31:40.376316 | 2016-06-07T23:44:31 | 2016-06-07T23:44:31 | 141,277,076 | 1 | 0 | MIT | 2018-07-17T11:02:08 | 2018-07-17T11:02:08 | null | UTF-8 | Python | false | false | 3,939 | py | # coding: utf-8
"""
Copyright 2015 SmartBear Software
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... | [
"dmoxon@isilon.com"
] | dmoxon@isilon.com |
84944033dfc9450ab78d7f320a2a0494bb05ec51 | 45173de7c932da649ee2fdbf18cc9f6767f1da53 | /varz/autograd/minimise.py | 0395b63b254e0071cf8f7cefa961bbb6287e810b | [
"MIT"
] | permissive | gergely-flamich/varz | 6979cc0936f0daa6bf170b683a7b8cc30464275e | 6428488d4b011d1cbb6e9c0b70c1a73beb97e9ee | refs/heads/master | 2020-09-10T14:53:46.285236 | 2019-11-08T15:34:20 | 2019-11-08T15:34:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | import logging
from autograd import value_and_grad
from ..minimise import make_l_bfgs_b, make_adam, exception
__all__ = ['minimise_l_bfgs_b', 'minimise_adam']
log = logging.getLogger(__name__)
def _wrap_f(vs, names, f):
# Differentiable assignments will overwrite the variables, so make a copy.
vs_copy = v... | [
"wessel.p.bruinsma@gmail.com"
] | wessel.p.bruinsma@gmail.com |
8c1fe5e538fe3a2ad0b87efc7abcc9b9ce0d3e57 | 7ccf104e767e7c36b8d5d5204cc264bddc4bcd75 | /src/count_node_labels.py | c55798ffc0a98f2f00cc8a8bd19e1d549c7a7525 | [
"BSD-3-Clause"
] | permissive | eghisu/graphkernels-review | 46d27887f049d2be5aad2c177d43f3fa9f1812a1 | 0bba165c666492c5ed25ce5b318df6633d6cc131 | refs/heads/master | 2023-02-12T15:09:29.004236 | 2021-01-07T13:49:20 | 2021-01-07T13:49:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | #!/usr/bin/env python3
#
# count_node_labels.py: debug script to count the number of node labels
# in a graph data set.
import argparse
import collections
import logging
import igraph as ig
from tqdm import tqdm
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('FILE', nargs... | [
"bastian.rieck@bsse.ethz.ch"
] | bastian.rieck@bsse.ethz.ch |
24efbb81b0b0b4362da1ab65f51ec7a9e53684d2 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/disable_domain_response.py | c365fe2b7b04b664494af45d5b94903e51aafb6c | [
"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 | 3,075 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DisableDomainResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
936f2e6298203b22aeec88c5e4a3e8e54fe470a6 | 4652255cc1adaed1cf808f5475aa06265ee2016a | /fluiddb/api/user.py | e6b41c3a18fe53559420975edec17722f27b62e0 | [
"Apache-2.0"
] | permissive | fluidinfo/fluiddb | ca55b640ce44be53614068caade373046bdf30e4 | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | refs/heads/master | 2021-01-11T08:16:01.635285 | 2016-03-27T21:11:58 | 2016-03-27T21:11:58 | 54,848,235 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,753 | py | from twisted.internet.defer import fail
from fluiddb.api.util import getCategoryAndAction
from fluiddb.common.types_thrift.ttypes import (
TUser, TBadRequest, TNoSuchUser, TPathPermissionDenied)
from fluiddb.data.exceptions import UnknownUserError
from fluiddb.data.user import Role
from fluiddb.model.exceptions im... | [
"terry@jon.es"
] | terry@jon.es |
cf940de16cc0d885602276ef4e5ac12f7ddf34ba | 94c1805df5a09c39159d502f420d19ad54b567fc | /runtime/deps/gyp/test/analyzer/common.gypi | 7c664e40dabf4d407a239ca3c1613b9ebab9c886 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | tmikov/jscomp | 9805a5a4d06520549c57380f0df4a1c0aa0dab56 | 83828441cb38ec96603a6a60be06977d4852940a | refs/heads/develop | 2021-01-19T02:56:35.102659 | 2016-04-12T06:19:30 | 2016-04-12T06:19:30 | 36,981,674 | 237 | 13 | Apache-2.0 | 2018-10-14T09:48:12 | 2015-06-06T13:49:26 | C | UTF-8 | Python | false | false | 161 | gypi | # Copyright (c) 2014 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
}
| [
"tmikov@gmail.com"
] | tmikov@gmail.com |
48466c5c601c8058f73c7e4be934d172a3e02862 | 4d1cca31a3aae847bd6ee2dc12eca3971b263fc4 | /src/flua/Tools/IDE/Widgets/BPIntelliView.py | cfd91e3eff3fb12429289b6ca49fad7e6023ae13 | [] | no_license | akyoto/flua | 4cc27202c326a6eedd088c5bb88c644905e7be64 | e09d50e0d50fc4f4faa1b0ee482756eaef4e60ec | refs/heads/master | 2021-06-06T10:55:32.795005 | 2016-12-04T00:17:20 | 2016-12-04T00:17:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from PyQt4 import QtGui, QtCore
class BPIntelliView(QtGui.QWidget):
def __init__(self, parent):
super().__init__(parent)
self.vBox = QtGui.QVBoxLayout()
#self.vBox.addStretch(1)
self.setLayout(self.vBox)
self.setContentsMargins(0, 0, 0, 0)
self.vBox.setContentsMargins(-1, -1, -1, -1)
self.vBox.setSpac... | [
"e.urbach@gmail.com"
] | e.urbach@gmail.com |
3976825577b9adbac01d41fe267a7fa344f52cb1 | 3820a723d6d3a301313b885fc045182e44363d58 | /scheduled_tasks/buy_trending_tickers.py | 8cc41df1032e2cb84ebde5373d89a399a2cab652 | [
"MIT"
] | permissive | fkotey/Stocksera | bf45f20452807472860453b0654d3ea97d1fa423 | 3b9cdb72a91484deab9c09255742066558a58051 | refs/heads/master | 2023-06-08T22:02:04.048858 | 2021-06-22T02:20:05 | 2021-06-22T02:20:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,965 | py | import sqlite3
import logging
from datetime import datetime
import yfinance.ticker as yf
logging.basicConfig(filename='logging.log', level=logging.INFO)
conn = sqlite3.connect("database.db", check_same_thread=False)
db = conn.cursor()
db.execute("SELECT * FROM reddit_etf WHERE status=?", ("Open", ))
prev_bought = d... | [
"tanguanquan@yahoo.com"
] | tanguanquan@yahoo.com |
9c577f416ea868619ee9367ec29b5b403601744e | 410093afc4c9101606ab152f7c48c7950a56e70f | /welib/yams/tests/test_sectionloads.py | 76c66366881c618b532e5cc90ae8ea4a23eca7c5 | [
"MIT"
] | permissive | huangyunping986/welib | a3580edfa9ec2e4c6ca0a5e738a6be115f6aa685 | 14122da5bf364a8603496d41d7837b36653e7340 | refs/heads/master | 2023-05-19T07:38:14.101942 | 2021-06-05T03:03:04 | 2021-06-05T04:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,629 | py | import unittest
import numpy as np
import os
from welib.yams.flexibility import *
import welib.weio as weio
MyDir=os.path.dirname(__file__)
# --------------------------------------------------------------------------------}
# --- TESTS
# --------------------------------------------------------------------------------... | [
"emmanuel.branlard@nrel.gov"
] | emmanuel.branlard@nrel.gov |
48bb084d38b8df1a719adae77de11a3e684e2e93 | e06ab16934e05954184807acd560e83a6adbef1c | /test/tests/simple_notebook_tests.py | 7c652a932c9baba49e1092ba451d4f4a44ef77e3 | [
"Apache-2.0"
] | permissive | google/swift-jupyter | 8fcb5e45f5fc3fc9c95e81545eb4632bb277c88f | c07b554f58f2053b205928c0e46a6a650bbe9a3c | refs/heads/main | 2023-09-03T10:09:02.057635 | 2022-05-13T01:18:00 | 2022-05-13T01:18:00 | 140,776,120 | 657 | 104 | Apache-2.0 | 2022-05-13T01:18:04 | 2018-07-13T00:06:13 | Python | UTF-8 | Python | false | false | 2,239 | py | """Checks that simple notebooks behave as expected.
"""
import unittest
import os
from notebook_tester import ExecuteError
from notebook_tester import NotebookTestRunner
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
NOTEBOOK_DIR = os.path.join(THIS_DIR, 'notebooks')
class SimpleNotebookTests(unittest.Test... | [
"noreply@github.com"
] | google.noreply@github.com |
06654370a61c20aab05d1535f56d70f6d875c06c | b66457c060a99dc5786c9adbbfb920398e98a870 | /venv/bin/celery | 5d0fa48d357d360f444b704dd1a0aa29d8a3480d | [
"Apache-2.0",
"OFL-1.1"
] | permissive | joeybaba/incubator-superset | 38349d9ad93caf365fc02d256b75bb0a9b7f04f8 | fc6fc042b4acbc564b69011532a92cf88d21a609 | refs/heads/master | 2022-12-16T15:15:48.830165 | 2020-09-21T09:34:25 | 2020-09-21T09:34:25 | 267,489,424 | 0 | 0 | Apache-2.0 | 2020-05-28T04:02:52 | 2020-05-28T04:02:51 | null | UTF-8 | Python | false | false | 270 | #!/Users/joey/Documents/PycharmProjects/incubator-superset/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from celery.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"scau2017@163.com"
] | scau2017@163.com | |
df9acf74f9950871fe5c0c5f717a944f66e349f8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_256/ch64_2020_04_29_13_30_17_172660.py | a403190f95141772528e7e4a47059b1d53487cce | [] | 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 | 239 | py | def acha_bigramas(palavra):
i=0
lista = []
while i<len(palavra):
bigramo = palavra[i] + palavra[i+1]
if not bigramo in lista:
lista.append(palavra[i,i+1])
i+=1
return lista
| [
"you@example.com"
] | you@example.com |
e0b18e4063c5a38cc8e13d08dd6cc7de5f1cb753 | ae65873c3584cef7139066b224daad04410af6d2 | /EvenDigits.py | c67ff0732dae7e25e94a3e85357fc0213bab53a3 | [] | no_license | rajatkashyap/Python | 2240c7472d07803c460c7a55d570e20694b694f9 | f74c85c65b0e209a5f7ab25b653d42835222faaf | refs/heads/master | 2022-06-25T19:20:52.847498 | 2022-06-08T14:40:45 | 2022-06-08T14:40:45 | 145,714,257 | 0 | 0 | null | 2022-04-25T00:18:37 | 2018-08-22T13:39:14 | Python | UTF-8 | Python | false | false | 178 | py | str_even=[]
for i in range(1000,3001):
s=str(i)
if (int(s[0])%2==0 and int(s[1])%2==0 and int(s[2])%2==0 and int(s[3])%2==0):
str_even.append(s)
print ','.join(str_even) | [
"rajatkashyap@Rajats-MBP.T-mobile.com"
] | rajatkashyap@Rajats-MBP.T-mobile.com |
21a4bf318dee61d0b39d1069f10068a14758ffa2 | 89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7 | /Python OOP 2020/Excersises/Exercise10/06. HTML Tags.py | 39a77e6ea355fb8eead70793bd702ecaba9c92e7 | [] | no_license | KoliosterNikolayIliev/Softuni_education | 68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd | 18f1572d81ad9eb7edd04300deb8c81bde05d76b | refs/heads/master | 2023-07-18T09:29:36.139360 | 2021-08-27T15:04:38 | 2021-08-27T15:04:38 | 291,744,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def tags(tag):
def decorator(func):
def wrapper(*args):
result = f"<{tag}>{func(*args)}</{tag}>"
return result
return wrapper
return decorator
@tags('p')
def join_strings(*args):
return "".join(args)
print(join_strings("Hello", " you!"))
@tags('h1')
def to_upp... | [
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] | 65191727+KoliosterNikolayIliev@users.noreply.github.com |
71a4a389beda54713692cc3b9841716a9a782d12 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /abEZ5AEPaDBHFjfJG_7.py | 6223af65d24c7ceedb45af6ca6c7b43ca0ffe0a4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | """
Create a function that takes a string and returns `True` or `False` depending
on whether or not the given formula is correct.
### Examples
formula("6 * 4 = 24") ➞ True
formula("18 / 17 = 2") ➞ False
formula("") ➞ None
### Notes
* You have to figure out what `a` is.
* Ignore the spac... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
92a12fd5bcac861f1427e2ff89f62bd6f5702940 | 6146d080087b21e36347408eea76598f4691ed67 | /code/list/linkedList.py | 2b148d5961911be941c19307ec2d3598817fe8a2 | [] | no_license | banggeut01/algorithm | 682c4c6e90179b8100f0272bf559dbeb1bea5a1d | 503b727134909f46e518c65f9a9aa58479a927e9 | refs/heads/master | 2020-06-27T14:07:51.927565 | 2019-12-19T03:48:30 | 2019-12-19T03:48:30 | 199,800,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | # linkedList.py 연결 리스트 실습
class Node:
def __init__(self, data):
self.data = data
self.next = None
def __del__(self):
print(self.data, '삭제')
class List:
def __init__(self):
self.head = None
self.tail = None
self.size = 0
def printlist(self):
if ... | [
"genie121110@gmail.com"
] | genie121110@gmail.com |
ea3290935cb696c17986d48477df1310b8e982b1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/40.py | 41c13efb5662c68e11248268b5e46147cfa95161 | [] | 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,249 | py | #!/usr/bin/env python
from sys import stdin
tn = int(stdin.readline())
for ti in xrange(tn):
n, r, o, y, g, b, v = map(int, stdin.readline().split())
s = ''
if r > 0:
s = 'R'
r -= 1
elif y > 0:
s = 'Y'
y -= 1
else:
s = 'B'
b -= 1
for i in xrange(n... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
771aef1a7525ff7b4a65f6542a933b60eb20ad19 | 481452cd3b904af7a42bbeb71190a59c29e4775b | /exception_handling/test2.py | 98edc2e0cf3f0d1df9bd5a2bc139507851ba0e69 | [] | no_license | rahusriv/python_tutorial | b09b54044f9df86ac603634ac1dd8d4ea6705e4a | 7de9b62a8e1e8ca1df5f2679ebf17d655f6b1b8e | refs/heads/master | 2020-03-28T11:24:16.468977 | 2019-05-12T06:51:32 | 2019-05-12T06:51:32 | 148,209,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | while(True):
try:
num = int(input("Please enter a number b/w 1 to 10"))
if num >= 1 and num <=10:
print("Correct input")
break
else:
continue
except:
continue
#list1 = [1,2,3,4,5,6,7,8,9,10] | [
"rahusr@gmail.com"
] | rahusr@gmail.com |
9926b3b4c77337a2126b2648fc7a559b4c357e06 | 2458ed97610a5baddffae0b8e558341e4466da62 | /01_keras/keras52_Embedding_02_LSTM_func.py | 9b779f992251443079fe850688fbf396bfda9caf | [] | no_license | DJSull93/keras_new | be539a1c0e3e5cb5d9708515695929b6002f5051 | 8847c0336bb2b6cdd7a1c03eced2c7548e8993fd | refs/heads/main | 2023-07-02T06:57:53.205030 | 2021-08-14T15:44:25 | 2021-08-14T15:44:25 | 384,960,114 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,041 | py | from tensorflow.keras.preprocessing.text import Tokenizer
import numpy as np
from tensorflow.python.keras.layers.recurrent import LSTM
# 1. data
docs = ['너무 재밌어요', '참 최고에요', '참 잘 만든 영화에요',
'추천하고 싶은 영화입니다', '한 번 더 보고 싶네요', '글쎄요',
'별로에요', '생각보다 지루해요', '연기가 어색해요',
'재미없어요', '너무 재미없다', '참 재밌네요', '청... | [
"digi809@naver.com"
] | digi809@naver.com |
2a758fc86b35139ab5e0d3d3d1c647d8c760d5b7 | 8f1352b264b3c67406a810e483af9a253677fcff | /twitting/twitting/settings.py | a53be8c2e7ae767f647ecb468638592c0c778e73 | [] | no_license | tktk-ai/Machine-Learning-Application | c8a94bf279e29f0a93adfa3feb5b31ac2b606325 | 962506a3a2ba334468d8f48a410a35545617a5cc | refs/heads/master | 2020-11-29T03:18:18.527049 | 2017-07-12T14:16:59 | 2017-07-12T14:16:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | """
Django settings for twitting project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
i... | [
"madan_ram@rocketmail.com"
] | madan_ram@rocketmail.com |
afbf04539b1a6be5e4afe153b23eb30f510f0712 | 1c398b7e0de6b51e01087906c679ed5081962dc0 | /site_dj/polls/admin.py | 0bd71316beb26ed0570b7003cd71f207ce98021d | [] | no_license | LukeBreezy/Django | 0bb2a97d2a33988f64b683f952a781142431c948 | f1d4cec033d469b122636848d3b7a0c4460353b5 | refs/heads/main | 2023-03-08T20:46:47.298470 | 2021-02-18T03:27:33 | 2021-02-18T03:27:33 | 337,603,427 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | from django.contrib import admin
from .models import Question, Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
('Question Information', {'fields': ['question_text']}),
('Date Infor... | [
"lkslukas23@gmail.com"
] | lkslukas23@gmail.com |
627500a3860f168cce28f4cabbbc623781c7c6bf | 894c973735c5ca727cab30c1b8df261c7e2ace0d | /Algorithms/binary_search.com/contest_9/Inverted_inversions.py | 81d4b2a75eeecd816fbb394610cf062a8f057482 | [] | no_license | Alferdize/Data-Structure-and-Algorithms | a587ae5851aee531deaf84f9ec65a7c55787dd55 | 5cbb1d3232acff55ac3f7508b5ace0785be540ac | refs/heads/master | 2020-12-08T22:10:38.100156 | 2020-06-02T07:58:27 | 2020-06-02T07:58:27 | 233,109,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | class Solution:
def solve(self, nums):
n = len(nums)
for i in range(n):
nums[i] -= 1
smaller = []
st = SegmentTree(n+1)
for i in range(n):
smaller.append(st.query(0, nums[i]-1))
st.update(nums[i], 1)
larger = []
st... | [
"simonandrew132@gmail.com"
] | simonandrew132@gmail.com |
5d2e6d8010b4336603f8a7f96757eda04ce7aab5 | 06984002a22f41b6eb63f9bdf3eb3529792d766f | /trunk/ceres/ceres-0.10.0/build/scripts-2.7/ceres-tree-create | 2046ac8aadb7bd805e63ddceaee8afe69123d8a5 | [] | no_license | lixmgl/Intern_OpenStack_Swift | d6195c25cd59dfe603203f727ed409a61891a3bf | 40c241319c6b9a7aabacc9d927486864d13b8055 | refs/heads/master | 2020-04-14T20:40:15.496239 | 2015-08-06T22:24:38 | 2015-08-06T22:24:38 | 40,329,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | #!/usr/bin/python
import sys
from optparse import OptionParser
from ceres import CeresTree
parser = OptionParser(usage='''%prog [options] <path/to/tree/root/> [property=value]*''')
parser.add_option('--verbose', action='store_true')
options, args = parser.parse_args()
if not args:
print "You must specify a root ... | [
"lixmgl@gmail.com"
] | lixmgl@gmail.com | |
0d861c97d0e60514916636db98a7cf8c0b10c599 | 237162607427106ae9564670d47427a62356861f | /core/migrations/0038_merge_20170926_1426.py | 3a4b868b0aa47660d5cadfb8d661d8cd8d53d724 | [] | no_license | pitipund/basecore | 8648c1f4fa37b6e6075fd710ca422fe159ba930e | a0c20cec1e17dd0eb6abcaaa7d2623e38b60318b | refs/heads/master | 2020-09-13T20:16:02.622903 | 2019-11-20T09:07:15 | 2019-11-20T09:07:15 | 221,885,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-26 14:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0037_auto_20170925_0940'),
('core', '0036_auto_20170920_1129'),
]
operation... | [
"longman_694@hotmail.com"
] | longman_694@hotmail.com |
741b0900397378a100e5723da5616bb2ad96cbb8 | c921dea5e5135716aff0b64ec563872d636eb15a | /aidaiary/code/linear_regression.py | 4d8688e9ceafd3750024dd94af8bc0144d7521f0 | [] | no_license | fuchami/pytorch_study | c8caa05f6d3c354a99d8c791f87e473e54f8d517 | 02655f9f0c52fc84c38266e5da0144a361aad347 | refs/heads/master | 2020-04-26T16:28:24.146171 | 2019-10-19T11:33:07 | 2019-10-19T11:33:07 | 173,679,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | # coding:utf-8
"""
線形回帰(Linear Regression)
"""
#%% import
import torch
import torch.nn as nn
import numpy as np
import matplotlib.pyplot as plt
# hyper parameters
input_size = 1
output_size = 1
num_epochs = 600
learning_rate = 0.001
#%% toy dataset, 15samples, 1features
x_train = np.array([3.3, 4.4, 5.5, 6.71, 6.93,... | [
"famichiki.yuuki@gmail.com"
] | famichiki.yuuki@gmail.com |
86a43e11b1fe02f8a938411883fc8a53d0392ab2 | c5e482e94938c9cd8ae3419b47c3bf32944e8d43 | /second.py | 0807b73f4406826de145c563eb4fdf9d64365c3e | [] | no_license | milanakdj/localfirstday | 0a1ab3ca4091057770bc155ac232c65f94af10c1 | 71b88c7743093a4395994387be4366c7af55c49c | refs/heads/master | 2020-09-28T01:29:48.633877 | 2019-12-08T11:31:22 | 2019-12-08T11:31:22 | 226,656,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # collision and cohesiveness
#from one modules to another we use a import
#syntax import nameoftheoperation
import math
import time
import random
# pi=math.pi
# a=math.sin(pi)
# print(a)
# to print every 5 second hello
# while True:
# print('hello')
# time.sleep(5)
# to generate a random number
# w... | [
"you@example.com"
] | you@example.com |
7c70ca053f765de0bf415db6e9acf8a1e053ea79 | c0298db1f9539d253cc1f488074cb5398cda5b05 | /demo_admin_tools_zinnia/settings.py | 05adc0c6b7265bdcd30636c865228005e30014c5 | [
"BSD-3-Clause"
] | permissive | SusannaGr/admin-tools-zinnia | 89242cdc225d6ff144729faaed804ba28fa25886 | f370e6b05dfc62eab0a9739ebf5b17fd13ebf7dc | refs/heads/develop | 2020-09-08T17:09:27.567513 | 2015-04-14T10:02:13 | 2015-04-14T10:02:13 | 221,192,495 | 1 | 0 | BSD-3-Clause | 2019-11-12T10:36:18 | 2019-11-12T10:36:17 | null | UTF-8 | Python | false | false | 2,688 | py | """Settings for the admin_tools_zinnia demo"""
import os
gettext = lambda s: s
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {'default':
{'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(os.path.dirname(__file__), 'demo.db')}
}
TIME_ZONE = 'Europe/Paris'
STATIC... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
bc006085a481225a9e2e747e117b23c2d1df39ba | d36a2ebe14c8e786e687deecc26bb3a5b9606687 | /giicourse/__openerp__.py | ebddd8d978b196e65f5477d3105c41b6ae468be1 | [] | no_license | hashirharis/GII | 2ee9b85a7ee341e1bb6bdff62b97ef506ef0275f | deac28b42e52f1c2a8173e03998aeaef6736dc9f | refs/heads/master | 2016-09-05T22:01:09.544637 | 2014-08-14T06:55:49 | 2014-08-14T06:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | {
"name" : "GII",
"version" : "1.0",
"depends" : ['sale','product'],
"author" : "Novasoft Consultancy Services Pvt. Ltd.",
'category' : 'Generic Modules/Others',
"description": """ GII - Management Module
""",
'website': 'http://www.novasoftindia.com',
'data': ['giisa.xml',
... | [
"hashir.haris@gmail.com"
] | hashir.haris@gmail.com |
0dfb93e2c4d4f1c478031b2f513102c420b0b15a | 426b00d9621aaaf5fe36dd01c590084f489abcbd | /config.py | a08360f9d7db3a273deb1093d2ba44c619e56ac9 | [
"MIT"
] | permissive | aiboys/mask-rcnn-pytorch | 0ea5e8c542c5c52281c027752f22d42dc1ef67ff | d92994545f8f1777604e32708cd0215114f4315e | refs/heads/master | 2022-02-27T22:51:59.619816 | 2019-10-09T21:17:47 | 2019-10-09T21:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,970 | py | """
Mask R-CNN
Base Configurations class.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import math
import numpy as np
import os
# Base Configuration Class
# Don't use this class directly. Instead, sub-class it and override
# the configura... | [
"wodhks7968@gmail.com"
] | wodhks7968@gmail.com |
d641af6105bde646b925b749a566da0bca560eb2 | 78b4b9d7fc89fe4c8dc7fe2c3eb31853c12f4569 | /book/views.py | 73dfd4d8495dcea86f9f075664be1c1e9c95f778 | [] | no_license | Sasha1152/bookshop | 6d4e0acc8163efd2bc4f4a6f6921451f1dcf1241 | 23ecf1ae8a3543961398f9365232a179a0488ec5 | refs/heads/master | 2023-04-27T22:36:23.276692 | 2020-01-30T20:27:18 | 2020-01-30T20:27:18 | 181,053,262 | 0 | 0 | null | 2023-04-21T20:31:03 | 2019-04-12T17:23:35 | Python | UTF-8 | Python | false | false | 1,136 | py | import json
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render
from .models import Book
def get_books_list(request):
books_list = Book.objects.all()
return render(request, 'books.html', {'books': books_list})
def retrieve(request, book_id):
book = Book.objects... | [
"saxin@ukr.net"
] | saxin@ukr.net |
2b1e5ddec1219a6442d05fb07e3673ba28eee6a9 | 6a4feaae8a93942930f53657aa9e19b98e9c4068 | /algs2e_python/Chapter 10/python/draw_tree3.py | 1008bc10b74a6d1ed3158b41ac6d884ff821ce0e | [
"MIT"
] | permissive | bqmoreland/EASwift | 73ec9a11bad1a058d68de4f6d0a6b90469dc9726 | 9ffefcf5418488c43a57797904ecfee9c3e4f84b | refs/heads/master | 2020-07-15T14:22:16.895684 | 2019-08-31T19:47:11 | 2019-08-31T19:47:11 | 205,582,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,993 | py | import tkinter as tk
class NAryNode:
# Class-level drawing parameters.
node_radius = 10
x_spacing = 20
y_spacing = 20
def __init__(self, name):
self.name = name
self.children = []
# Drawing parameters.
self.center = (0, 0)
self.subtree_bound... | [
"bqmoreland@gmail.com"
] | bqmoreland@gmail.com |
9f66488ed26159ebd2462538f028d48a5f3480b7 | d61183674ed7de0de626490cfba77d67c298d1be | /py_scripts/plot_cv_digits.py | a0ce0f9af1499b00decb91c4bf0adad5d9488ff0 | [] | no_license | Giannos-G/python_dataset | bc670a53143d92cf781e88dee608da38b0e63886 | 18e24cbef16ada1003a3e15a2ed2a3f995f25e46 | refs/heads/main | 2023-07-25T20:24:31.988271 | 2021-09-09T10:31:41 | 2021-09-09T10:31:41 | 363,489,911 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | """
=============================================
Cross-validation on Digits Dataset Exercise
=============================================
A tutorial exercise using Cross-validation with an SVM on the Digits dataset.
This exercise is used in the :ref:`cv_generators_tut` part of the
:ref:`model_selection_tut` section... | [
"giannos.gavrielides@gmail.com"
] | giannos.gavrielides@gmail.com |
f5933e82ed927210c51773afa9af7a7d0a215fe0 | d1e437d0e4bdb5654816965eda313191c471364e | /jacc/migrations/0004_auto_20171030_1935.py | 5ead7c25f21104ecfaa47d6011a78b8c7129d49b | [
"MIT"
] | permissive | iamtomc/django-jacc | ec9119e6f59af0d0c388c53690da0a53ff0ce7e8 | 12ba0de1ee85beebdb7d6ee8b2c1e1594351c078 | refs/heads/master | 2022-01-13T17:40:56.255362 | 2019-07-23T18:04:54 | 2019-07-23T18:04:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-10-30 19:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('jacc', '0003_auto_20171030_1933'),
]
operations = [
migrations.RenameModel(old_name='... | [
"kajala@gmail.com"
] | kajala@gmail.com |
540af058fef67b0ac90fedc369546f353a01097c | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4330/codes/1871_1713.py | 1fddc3ead2a24a6e2dbd689bbdde7da9c7384099 | [] | 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 | 178 | py | from numpy import*
from numpy.linalg import*
matriz=array(eval(input("Matriz de notas:")))
media=0
for i in range(shape(matriz)[1]):
media=sum(matriz[i:2])
print(round(media,2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c690e3456493ae5be13cbf818d8d6b98aad17de0 | e232de1f42a922dc0c94d889c1f72d4f66b325d6 | /genfiles/proto/rec/gui/Orientation_pb2.py | f663b0b83a107796aa3172ac938613aaa8061100 | [] | no_license | rec/slow_gold | b19fcd684e469978bf20cd0638fa83786fc5ffae | f4551785cf7f9cf45605a850d013eef5d80f4ea6 | refs/heads/master | 2022-10-20T06:37:00.370927 | 2017-02-04T11:39:59 | 2017-02-04T11:39:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 1,895 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: rec/gui/Orientation.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_poin... | [
"tom@swirly.com"
] | tom@swirly.com |
be05ed5e7be5f1d8d7a75cd9c761b2e00caf0a57 | 150eac9d584eacea6f42cf3a6aaf2bdb72c5dfad | /db/transf.py | f01fc75ce1ed12456960d32ff1acf8b0abe5a083 | [] | no_license | mdamien/twitter-poetry | bd74941aafa2188970b2396b9b557381b527d7d2 | 6c7d1c2a44a62e98a8d5e1557491aa013d5e34b9 | refs/heads/master | 2016-09-06T00:45:47.045703 | 2015-02-12T15:26:22 | 2015-02-12T15:26:22 | 20,359,672 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | lines = open('raw.txt')
lines = [l.strip() for l in lines]
lines = [l for l in lines if len(l) > 10]
lines = [l for l in lines if l.upper() != l]
with open('data','w') as out:
for line in lines:
out.write(line+'\n')
| [
"damien@dam.io"
] | damien@dam.io |
326b24c2d76b451be9826101719a91764b6bcf48 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/recoveryservices/v20210301/get_replication_recovery_services_provider.py | ed78893587fc3628a19bf0d53c64c139da570f4a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,435 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
16a04be9bfd36bab69fea24c83fef7c22d769273 | 546fda8ea4c37dd9b633ab2fb81ae18987085bb6 | /用Python玩转数据/2.2-1-demo.py | 65ac4cabba4986b740d171210fc9825ea4ebdce0 | [] | no_license | zk040377/load2python | a454addb9465848b5408685498eee25cb198140d | 82eab48182fcfdf16450e0b66e81377d2f4a7385 | refs/heads/master | 2022-01-08T04:57:58.551691 | 2018-10-17T06:44:53 | 2018-10-17T06:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | week = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'saturday', 'Sunday']
print week[0:5]
print week[1:5]
print week[::-1]
print week[-1]
print week[-7:-2]
print 'apple'*3
print 'apple'+'123'
print 'pp' in 'apple'
# list()
print list('apple')
# tuple()
print tuple('apple')
# str()
a = 123
print str(a)
... | [
"ieeflsyu@outlook.com"
] | ieeflsyu@outlook.com |
411b8898b900b547832adae426810ad1f07962ce | 9f99485ac5479c1e6169e71d88a33c31ff591f4e | /tests/app/routes/stats/test_rest.py | fa0bc7f19a85ea575326c96ee400efcdf5ac97e8 | [
"MIT"
] | permissive | NewAcropolis/api | b8c65554ca78ac0e87fbef46f5f2fbecb6d7700a | 34367f55d3c9ee5bf870956ffc90fd23da559b15 | refs/heads/master | 2023-08-31T09:27:02.125549 | 2023-08-26T22:15:10 | 2023-08-26T22:15:10 | 99,582,634 | 1 | 1 | MIT | 2023-08-26T22:15:11 | 2017-08-07T13:46:23 | Python | UTF-8 | Python | false | false | 2,048 | py | import werkzeug
werkzeug.cached_property = werkzeug.utils.cached_property
from flask import url_for
from mock import call
from tests.conftest import create_authorization_header
class WhenGettingSocialStats:
def it_sends_social_stats(self, mocker, client):
mock_send_social_stats = mocker.patch(
... | [
"kenlt.uk@gmail.com"
] | kenlt.uk@gmail.com |
9a0fb73924c252633ca202feecf32a848fe37348 | 4500172cf203b078bd1826062821af16018747ee | /project/tds/utils.py | f2d51e87a05bdf004d115241d8c986cd5ec368db | [] | no_license | chrisblythe812/gamemine | 726ad338279a80676eee9693a6ecc6bfca5eaf13 | 7c3acc39a24c38ae2ee06b71104a24cfbbde8453 | refs/heads/master | 2020-04-05T22:53:46.622902 | 2012-01-26T00:50:28 | 2012-01-26T00:50:28 | 3,269,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | __all__ = ["is_eligible_for_free_trial"]
FREE_TRIAL_CIDS = ["10", "14", "15"]
def is_eligible_for_free_trial(request):
if getattr(request, "campaign_id", None) in FREE_TRIAL_CIDS:
return True
return False
| [
"christopher.ratha@gmail.com"
] | christopher.ratha@gmail.com |
f603093e1feecfda665b5a8bb1c3c3cc0aa4d855 | dfeda597c5caef242801571976ace03698d13703 | /utils/eval_utils.py | 9ea2c3211c81c73e44f730aa932fea14f2e8e0cf | [] | no_license | SamL98/Hierarchical-Calibration | b12e06c938438eab611c28ee5c0c02f77256741f | b783848311c48c862a9bdc00bcdb30bf22121eb2 | refs/heads/master | 2020-04-01T11:05:04.440936 | 2019-03-26T23:02:23 | 2019-03-26T23:02:23 | 153,146,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | def get_depth_of_label(pred_label, slices):
if pred_label <= len(slices[0]):
# If pred_label is a terminal, it's parent could be a few levels up in the hierarchy.
#
# Therefore, iterate through the slices until the terminal label is in a node with more than one child.
# Then return that depth plus one since th... | [
"lerner98@gmail.com"
] | lerner98@gmail.com |
0ea5ca6e51a96ef390cf0499370aef428126ac9b | 58959ee3e92cfb4dee217df94a1eb5d0fb4a238e | /qiskit/algorithms/gradients/spsa_estimator_gradient.py | 0f9518a2b4b79e35c4e9cf35358bd03124fa9791 | [
"Apache-2.0"
] | permissive | AGaliciaMartinez/qiskit-terra | e5d143393ee31af28e7fefddc52219c375d54066 | e70ce504149b40287cfb8bff3ac525159dd46a40 | refs/heads/master | 2023-03-16T09:50:59.840070 | 2022-12-11T14:25:14 | 2022-12-11T14:25:14 | 219,828,601 | 0 | 0 | Apache-2.0 | 2023-03-06T13:15:22 | 2019-11-05T18:59:22 | Python | UTF-8 | Python | false | false | 5,290 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | AGaliciaMartinez.noreply@github.com |
28e671196ad5dbffcd9ff3bc3f688df4f24e01ba | 1b512092052c8fe7f6919ee870431ac7b3a65f66 | /pal/examples/MixedHalidesBE/compile_final.py | 630a6f0d6b28b7c9853fe4d1fd22c565c4096f1f | [] | no_license | ClancyLab/PAL | d7b9dd1caeb62d363041b8e4c7f402d6edbf741e | cb0ef048de37014922b943ae6b5eaffd3d43da63 | refs/heads/master | 2022-02-25T05:31:20.590421 | 2019-10-14T19:47:10 | 2019-10-14T19:47:10 | 210,862,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | import os
import numpy as np
def get_cost(fptr, goal="FAPbBrBrCl_THTO_0"):
'''
Read in a log file and try to find the cost it took to recommend something.
'''
goal = "Recommendation = %s" % goal
buf = open(fptr, 'r').read().strip()
if goal not in buf:
return None
cost = buf[buf.in... | [
"hherbol@gmail.com"
] | hherbol@gmail.com |
ca4809efbd4988779a9e754561eabdb88dff16b3 | 034962500d30b5942017760ce7054f881ae771c1 | /symposion_project/manage.py | 378e3b0be3df7c4943a0edb78dc49a6589cc86df | [
"BSD-3-Clause"
] | permissive | CarlFK/pinax-symposion-project | 6c2d6bb13d6c4a5b8782cdb838dac4e094fdfb41 | 41b1f20ba981f3f20cb7e4ed28d06ebd93a9a0fa | refs/heads/master | 2021-06-17T14:10:24.098255 | 2011-12-03T20:47:39 | 2011-12-03T20:47:39 | 2,905,791 | 0 | 0 | BSD-3-Clause | 2021-06-10T22:06:53 | 2011-12-03T16:35:13 | Python | UTF-8 | Python | false | false | 412 | py | #!/usr/bin/env python
import sys
try:
import pinax
except ImportError:
sys.stderr.write("Error: Can't import Pinax. Make sure you are in a "
"virtual environment that has\nPinax installed.\n")
sys.exit(1)
else:
import pinax.env
from django.core.management import execute_from_command_line
pin... | [
"lukeman@gmail.com"
] | lukeman@gmail.com |
ca782f5c25da6cb66ece72b436e204f0d9d18df4 | c46b1a90126baedc87a5444ba46f225ca24c4a1e | /tests/test_api.py | f784b6e78d6c48bbc552ec0bab9f4d483e5701c7 | [
"MIT"
] | permissive | KarrLab/wc_model_gen | de1327d5f9b31ff77d89f992b5dcd5bfece5fbad | b2735391545bcd5f21faaa1ceaa1949e53497378 | refs/heads/master | 2021-07-20T11:03:37.916107 | 2021-07-06T22:55:43 | 2021-07-06T22:55:43 | 129,947,668 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | """ Tests of the API
:Author: Jonathan Karr <jonrkarr@gmail.com>
:Date: 2018-04-19
:Copyright: 2018, Karr Lab
:License: MIT
"""
import types
import unittest
import wc_model_gen
class ApiTestCase(unittest.TestCase):
def test(self):
self.assertIsInstance(wc_model_gen.ModelGenerator, type)
| [
"jonrkarr@gmail.com"
] | jonrkarr@gmail.com |
a4b0dc0823f531ef1e73c6456fb19051372eb1fe | 6c7b506acac3570f3b87204f894161982d03ea37 | /main/migrations/0005_auto_20180822_1228.py | 23b4b4f4a0579a618d7c752ca294a65e7da3e27b | [
"MIT"
] | permissive | sirodoht/skglist.com | d9af4e59bbcef4a343344145ddcde63dc70f6ac2 | 36b19af3bdd9161d3b8253b87e2332345925696f | refs/heads/master | 2021-06-28T12:54:20.511823 | 2020-09-20T21:50:08 | 2020-09-20T21:50:08 | 143,543,616 | 2 | 0 | MIT | 2018-10-13T13:38:57 | 2018-08-04T16:09:20 | HTML | UTF-8 | Python | false | false | 2,090 | py | # Generated by Django 2.1 on 2018-08-22 12:28
import django.db.models.deletion
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("main", "0004_auto_20180804_1803")]
operations = [
migrations.CreateModel(
name="G... | [
"theodorekeloglou@gmail.com"
] | theodorekeloglou@gmail.com |
302edc5ff0a02c11ed720e0825dbcc615b677412 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /GPibesdkGf433vHBX_24.py | c74bf371c79776cca3445a52557fbc36dd6a0de2 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
def goldbach_conjecture(n):
for i in range(2, n):
if is_prime(i) and is_prime(n-i):
return [i, n-i]
return []
def is_prime(n):
for i in range(2, n):
if n % i == 0:
return False
return True
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d6e3149a916573b490d21d18d099629f1e2b9fe5 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_124/ch4_2019_08_14_14_06_31_797868.py | 8a183993c31af1645ff7e0261e0909f91438cb29 | [] | 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 | 211 | py | idade = int(input("coloque sua idade: "))
def classifica_idade(idade):
if idade <= 11:
return("crianca")
if idade >= 18:
return "adulto"
else:
return "adolescente"
| [
"you@example.com"
] | you@example.com |
f6432077c9f6c543057d5d48ef10914dd89faf2b | 54f5bd4106b6e70d04708e3c4dc10421fe8b93bd | /tensor/tostring.py | f550d367eba2b5be03dd6bed0f8e9738e20d16fe | [] | no_license | hslee1539/tic_tac_toe | 2c11f28e681681314e8f9b9a8cecccfd1f94f494 | aa7aa50de55ef4825f05a6d6ad1b00be7f40f770 | refs/heads/master | 2020-07-26T09:25:23.165078 | 2019-09-15T15:56:14 | 2019-09-15T15:56:14 | 208,603,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | def tostring(array, shape, newline = "\n"):
out = [""]
#todo: 배열 -> 정수로
pos = [0] * len(shape)
#do-while
_tostring_process1(out, pos)
_tostring_process2(out, array, shape, pos)
_tostring_process3(out, shape, pos)
while(_tostring_process4(out, shape, pos, newline)):
_tostring_pr... | [
"qq1539@naver.com"
] | qq1539@naver.com |
2a22b7a9ccbb859b6dc190a8b772afb3cde27e98 | 174833cc3f8ea752ecfa5ffbbdfbab2798dc8745 | /ml_params_tensorflow/tests/test_datasets.py | ec54d5bcee928ad3abbf923be5129a52fd2446d7 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SamuelMarks/ml-params-tensorflow | 35098d95de15b65d4bf7ae944eb9a62efb245584 | 86fb92147443e69982d05755361b101f8a6f64e5 | refs/heads/master | 2023-04-22T14:59:15.464011 | 2021-04-08T11:03:24 | 2021-04-08T11:03:24 | 276,570,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | """
Datasets tests
"""
from unittest import TestCase
from unittest.mock import MagicMock, patch
import tensorflow as tf
import tensorflow_datasets as tfds
from ml_params_tensorflow.ml_params.datasets import (
load_data_from_tfds_or_ml_prepare,
normalize_img,
)
from ml_params_tensorflow.tests.utils_for_tests ... | [
"807580+SamuelMarks@users.noreply.github.com"
] | 807580+SamuelMarks@users.noreply.github.com |
8d7d99dc8ae4f91baba87b44d915c616853447b0 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/crimewatch/const.py | 2731911e6909562866995fe1f1849e88a143df94 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,266 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\crimewatch\const.py
import inventorycommon
securityLevelsPerTagType = {inventorycommon.const.typeSecurityTagCloneSoldierNegotiator: (-2.0, 0.0),
inventorycommon.const.typeSecurityTagCloneSoldierTransporter: (-5.0, -2.0),
... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
b9e7e2135ba4e4004c2e0c2d6dc6e0fecb9cfd18 | 55ff0f456f43c0946c0e7b46e3cda18e9b9355ac | /test/merge.py | 3f2a9c3fd315c93ae65764bcc94c1116b24d3a73 | [
"MIT"
] | permissive | pombredanne/seqsearch | 27952bda90d445d1cf62e2060b08b3b73ced37f3 | a5adf1968188d5fc9ec8a5f5fc1a88aaaf08c3e0 | refs/heads/master | 2020-12-28T19:46:54.197349 | 2014-12-09T13:16:26 | 2014-12-09T13:16:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | """
Copied and adapted from https://bitbucket.org/peterjc/galaxy-central/src/5cefd5d5536e/tools/ncbi_blast_plus/blast.py
Tested working with BLAST 2.2.28+
More info at: http://www.biostars.org/p/53946/
"""
###############################################################################
def merge_blast_xml(inputs, out... | [
"lucas.sinclair@me.com"
] | lucas.sinclair@me.com |
fe7daa01e6a5301329101c810797c3b283f10b2a | 4a238068e29a1f6871cc049a0486b20b27e781de | /Graphcore/benchmarks/bert/implementations/popart/tests/conftest.py | c42f6d6691c78ddade8380b1c3b554468375a887 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Pixelz-Inc/training_results_v1.0 | 61b4555ad482b189d1966be3edd127858addd628 | c507130c4e04c1f274a9ae8b7284aac79f26325a | refs/heads/master | 2023-08-18T22:46:13.316503 | 2021-10-22T04:01:57 | 2021-10-22T04:01:57 | 399,047,712 | 0 | 0 | NOASSERTION | 2021-08-23T09:37:25 | 2021-08-23T09:37:25 | null | UTF-8 | Python | false | false | 3,311 | py | # Copyright (c) 2019 Graphcore Ltd. All rights reserved.
import subprocess
from pathlib import Path
import pytest
import ctypes
custom_ops_loaded = False
def load_custom_ops():
bert_dir = Path(__file__).parent.parent.resolve()
so_path = str(bert_dir / "custom_ops.so")
global custom_ops_loaded
if not... | [
"vsb@fb.com"
] | vsb@fb.com |
4ae9df5f1c31e0f5c48de50021683c98a6f7f54a | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit_noisy131.py | 2971f1450f1f42045af471289822413e880caf82 | [
"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,428 | py | # qubit number=3
# total number=11
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 |
ceca7cc6d47204361aae260b7c45ff9ace0dd528 | 2e08552e1eb86ffa4870d9208d83b903f0f847d0 | /paperswithcode/models/page.py | 5f597c84ab5097f1ac29acc250d7f44fd9b81fe7 | [
"Apache-2.0",
"CC-BY-SA-4.0"
] | permissive | paperswithcode/paperswithcode-client | c1fffc0a17066f0eb7128ea726bf4f0485f47c5d | 70bd7ee5157fcaeff39145d2e03cc9ed5bb7421b | refs/heads/develop | 2022-12-12T21:20:17.493109 | 2021-12-01T17:44:04 | 2021-12-01T17:44:04 | 283,026,422 | 113 | 17 | Apache-2.0 | 2022-12-01T22:24:42 | 2020-07-27T21:58:46 | Python | UTF-8 | Python | false | false | 414 | py | from typing import Optional
from tea_client.models import TeaClientModel
class Page(TeaClientModel):
"""Page model.
Attributes:
count (int): Number of elements matching the query.
next_page (int, optional): Number of the next page.
previous_page (int, optional): Number of the previou... | [
"alefnula@gmail.com"
] | alefnula@gmail.com |
7611691c177850d221fddb2c75190a29a576c535 | 002e84f64299bfefbe044e7bd38d5c2bf49a4d43 | /my_notes/python/model_representation.py | f303e51b036d4ccc4e931f86d706dbf2666979c0 | [
"MIT"
] | permissive | ptracton/MachineLearning | 03784c725d6293d5555c4ed48fe009c3e3691151 | 4225de8ec5e373ba1aa9e479b0fc0860398420e0 | refs/heads/master | 2022-12-21T13:09:17.418325 | 2020-05-04T20:36:17 | 2020-05-04T20:36:17 | 133,865,472 | 0 | 0 | MIT | 2022-12-08T04:04:15 | 2018-05-17T20:32:22 | Jupyter Notebook | UTF-8 | Python | false | false | 490 | py | #! /usr/bin/env python3
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0, 10, 1)
# y = 0.5x + 1
y = [0.5*v + 1 for v in x]
y2 = [0.9, 1.6, 2.4, 2.3, 3.1, 3.6, 3.7, 4.5, 5.1, 5.3]
print("Data {} {}".format(x, y))
fig = plt.figure()
fig.subplots_adjust(top=0.8)
ax1 = fig.add_subplot(211)
ax1.set_yla... | [
"ptracton@gmail.com"
] | ptracton@gmail.com |
87c8bd6a149bd766d06d0656cb3c0cf7f478f86c | 25415c9e82e341f6eba09264700a351d195ddbdd | /helplineApp/perpetrators/api/serializers.py | d1d42f7405933475e8f645944decedfcbe0458b0 | [] | no_license | Ahmedsebit/helplineApp | 1eef789b0d015faa671292e81284a1351d0547dd | 57d0e2f30b5951b8ab2a0fd5b5537c2628d85959 | refs/heads/master | 2022-05-25T18:08:27.489100 | 2019-07-16T09:33:39 | 2019-07-16T09:33:39 | 189,024,405 | 0 | 0 | null | 2022-05-25T03:05:35 | 2019-05-28T12:30:54 | Python | UTF-8 | Python | false | false | 636 | py | from rest_framework import serializers
from perpetrators.models import Perpetrator
class PerpetratorModelSerializer(serializers.ModelSerializer):
class Meta:
model = Perpetrator
fields = [
'first_name',
'last_name',
'middle_name',
'location',
... | [
"Ahmed.yusuf@andela.com"
] | Ahmed.yusuf@andela.com |
904ace06f31e54dc006bd55a0ee339192a507c3e | 2aa4c5fc960c5c05b6ef9891fd7ae85e5e38ac57 | /household/migrations/0015_auto_20200408_1154.py | 1abc54a671b64c8335611c5b03a0af6b884efbb6 | [
"MIT"
] | permissive | OpenUpSA/municipal-data | 4a4e8239f41bc179705f8858c82f15246160ba90 | 21ee3a4cf3614ac1fe32ff730843a238f39e1f40 | refs/heads/master | 2023-08-30T23:52:45.924118 | 2023-08-23T13:33:55 | 2023-08-23T13:33:55 | 55,236,579 | 24 | 15 | MIT | 2023-09-14T14:12:18 | 2016-04-01T14:01:37 | JavaScript | UTF-8 | Python | false | false | 523 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2020-04-08 09:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('household', '0014_financialyear_year_range'),
]
operations = [
migrations.... | [
"stumenz.complex@gmail.com"
] | stumenz.complex@gmail.com |
558ce2d4970ebaf25314f0b4911cfdc53d0ff02f | 50084bf941b61791ac4def5b8cff950e7ddfdd15 | /03 More on Data Types/Dictionaries/01_initializing.py | 7553534a05cd376fdcc7596e2dfc500367f7e7c7 | [] | no_license | gjq91459/mycourse | 6904ad191dc6128fb853eb8bdb1b200a46b2059f | 211d7707e41f50495375b4a1dfc32b62b76b317b | refs/heads/master | 2021-01-21T10:34:44.841349 | 2017-03-01T11:17:52 | 2017-03-01T11:17:52 | 83,456,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | ############################################################
#
# dictionary
#
############################################################
# set up a dictionary
salary1 = {
"john": 34000,
"sara": 27000,
"pedro": 52000,
"tim": 12500,
"zoe": 66000
... | [
"gjq91459@diamtr341.diamond.ac.uk"
] | gjq91459@diamtr341.diamond.ac.uk |
1af3b3c1224466edff599b99409613ab99fe2a06 | 89044e65254b443aa596d1711cc88146516b0546 | /asynchronous/twisted/1/code009.py | ead54e410b1328aa199ec12f59f6173f4e7693a1 | [] | no_license | romandev/bible | 1b4e0a0959a2c00c8daadd01faa9cf6466442e87 | 005d5087d9f897f105683f565979ee59e2e2559c | refs/heads/master | 2020-08-07T22:02:32.351698 | 2019-08-31T04:36:22 | 2019-08-31T04:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | from twisted.internet import reactor
from twisted.internet.defer import Deferred
class Task:
def __init__(self, gen, defer):
self._gen = gen
self.defer = defer
reactor.callWhenRunning(self.step)
def step(self, value=None):
try:
defer = self._gen.send(value)
... | [
"xg.gao@tianrang-inc.com"
] | xg.gao@tianrang-inc.com |
0689c340d6122770144a6369739a7db6c17c0831 | c1960138a37d9b87bbc6ebd225ec54e09ede4a33 | /adafruit-circuitpython-bundle-py-20210402/lib/adafruit_rsa/core.py | 4c41a95e17bd0719d0ebc567d51712e586ded19f | [] | no_license | apalileo/ACCD_PHCR_SP21 | 76d0e27c4203a2e90270cb2d84a75169f5db5240 | 37923f70f4c5536b18f0353470bedab200c67bad | refs/heads/main | 2023-04-07T00:01:35.922061 | 2021-04-15T18:02:22 | 2021-04-15T18:02:22 | 332,101,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | # -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2011 Sybren A. Stüvel <sybren@stuvel.eu>
#
# SPDX-License-Identifier: Apache-2.0
"""Core mathematical operations.
This is the actual core RSA implementation, which is only defined
mathematically on integers.
"""
# pylint: disable=invalid-name
from adafruit_rsa._compa... | [
"55570902+apalileo@users.noreply.github.com"
] | 55570902+apalileo@users.noreply.github.com |
1cc48d42e4a7b09019c4f1bb816e221f3202dbd0 | 211fdc0564d9b003a82bb880d2e422dac85a5752 | /correcciones/segunda_parte/proyecto_2/Proyecto2-1010673-1211167/Proyecto2-1010673-1211167/cancion.py | fa8b941f0d42a5882a585bf191618b06ab130e7b | [] | no_license | dvdalilue/ci2692_ene_mar_2017 | 45fa1833b4b3b49a1e5be33e58f01cb23bb2d6aa | 1690e6429c2c5ec167d505642d3344b249257475 | refs/heads/master | 2021-01-20T01:32:43.668461 | 2017-04-24T22:50:01 | 2017-04-24T22:50:01 | 89,292,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | # Proyecto no. 2
# Autores: Jorge Sanchez 10-10673
# Greanny Vivas 12-11167
from pathlib import Path
from PyQt5.QtCore import QFile
# Clase cancion:
class Cancion:
def __init__(self, artista, titulo, archivo):
assert(len(str(titulo))>1 and len(str(artista))>1 and archivo is not None)
self.titulo = s... | [
"dvdalilue@gmail.com"
] | dvdalilue@gmail.com |
d1492421a7acc9db39fc8fc53e3e20389ce7c0d4 | 00fc47594af196da2b57477deb380552e564dea7 | /tests/fixtures/config-scheduler1.py | 882b4c371fba6b23f6c7b329280323e8e94bcec6 | [
"MIT"
] | permissive | apploitech/mrq | b97c2136b8b405a4784395acedb02ff8d913f49e | e63021606fb1dc839165c6b203e807119bffa2ec | refs/heads/master | 2023-06-27T09:44:44.457392 | 2023-06-07T14:32:18 | 2023-06-07T14:32:18 | 172,127,544 | 2 | 0 | MIT | 2023-06-13T19:17:24 | 2019-02-22T20:03:37 | Python | UTF-8 | Python | false | false | 592 | py |
SCHEDULER_TASKS = [
{
"path": "tests.tasks.general.MongoInsert",
"params": {
"a": 1
},
"interval": 5
},
{
"path": "tests.tasks.general.MongoInsert",
"params": {
"a": 2
},
"interval": 5
},
{
"path": "test... | [
"sylvain@sylvainzimmer.com"
] | sylvain@sylvainzimmer.com |
8f2aaf00f129669008fd27ad7b7dc0c99368f5d7 | f410cce6c0313ed17b6b28274327dc452fa60b71 | /tools/python/allcheck.py | d8ca7990dc6418bc764f93464ff8d4dac7340b59 | [
"Apache-2.0"
] | permissive | squadrun/python-phonenumbers | ecb9a9702f9c7471c411d97f8a5347686b362303 | b60ebefd6e2fbe058b742a5fd527e5aaa6cf3203 | refs/heads/dev | 2020-03-24T08:28:12.329407 | 2018-07-12T06:18:22 | 2018-07-12T06:18:22 | 142,596,822 | 0 | 0 | Apache-2.0 | 2019-03-25T12:39:23 | 2018-07-27T15:52:45 | Python | UTF-8 | Python | false | false | 1,932 | py | #!/usr/bin/env python
import sys
import re
import glob
# Use the local code in preference to any pre-installed version
sys.path.insert(0, '../../python')
import phonenumbers
import phonenumbers.geocoder
import phonenumbers.carrier
import phonenumbers.timezone
from phonenumbers.util import prnt
# Manually grep for to... | [
"dmd@lurklurk.org"
] | dmd@lurklurk.org |
d689e07ad00b40877dc25a19edbcc62606afc7cf | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-dataworks-public/aliyunsdkdataworks_public/request/v20200518/DeleteQualityRelativeNodeRequest.py | 8700e286e16251cfe6c0840e6e02b314528e8ec6 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,786 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
71a643637d45a102fbc1d4fa3f965954501e56f3 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/rest_allow_un_mute_req_body.py | 7339fb6a277980ea3189e622b2cd0b7c0d0a2715 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,226 | py | # coding: utf-8
import pprint
import re
import six
class RestAllowUnMuteReqBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the v... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
37a74d5112c5fae35b17594856dc5077a2f9ee7c | db891dc74972e7ccf2ad1a8dabe8de5cbb93c024 | /l10n_hn_check_printing/__manifest__.py | b5875f3e904cc581250516f00786753446be95de | [] | no_license | LuisMalave2001/GarryTesting | 2a439b1ad6d1216f64e3e766028750a0bc9e4db0 | f83efeb54e22313e8b533036ff4a5befa5d3a59b | refs/heads/main | 2023-05-04T06:54:17.069804 | 2021-05-25T13:41:22 | 2021-05-25T13:41:22 | 336,295,640 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # -*- coding: utf-8 -*-
{
'name': 'Honduras Checks Layout',
'summary': """ Print HN Checks """,
'description': """
This module allows to print your payments on pre-printed checks.
""",
'author': 'Eduwebgroup',
'website': 'http://www.eduwebgroup.com',
'category': 'Invoicing',
... | [
"LuisAngelMalaveMora@gmail.com"
] | LuisAngelMalaveMora@gmail.com |
85c5a8c3454140a8d27019a7086d75b067551e01 | c6759b857e55991fea3ef0b465dbcee53fa38714 | /rtos/pmsis/tests/api/quick/periph/timestamp/tdm_timestamp/check_tx_buffer.py | 47a49dfab35ff6ee4287bb6cb194d3d59d303c71 | [
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 2,623 | py | #!/usr/bin/env python3
import argparse
parser = argparse.ArgumentParser(description='Check TX buffer')
parser.add_argument("--start", dest="start", default=None, type=int, help="Start value")
parser.add_argument("--incr", dest="incr", default=None, type=int, help="Incr value")
parser.add_argument("--end", dest="end"... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
0125109b8e9fb2b9245c7905243318775b233b51 | 3e660e22783e62f19e9b41d28e843158df5bd6ef | /script.me.syncsmashingfromgithub/smashingfavourites/scripts/rsyncscripts/test7.py | b020bb375ee719f7e8f8f170b09dd7e68e84701c | [] | no_license | monthou66/repository.smashingfavourites | a9603906236000d2424d2283b50130c7a6103966 | f712e2e4715a286ff6bff304ca30bf3ddfaa112f | refs/heads/master | 2020-04-09T12:14:34.470077 | 2018-12-04T10:56:45 | 2018-12-04T10:56:45 | 160,341,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | # -*- coding: utf-8 -*-
# get masterprofile
import xbmc
import os
def printstar():
print "***************************************************************************************"
print "****************************************************************************************"
# define stuff
USERDATA = xbmc.tra... | [
"davemullane@gmail.com"
] | davemullane@gmail.com |
7f19a93ef1d1906f8a58f6b8100ac5c7583ae6d2 | bc550f6966e30de27987bc803b2447bf02a2e44b | /tools/PdfView.py | cc9c4d05989940a53c2f233d78518478ea1e75b7 | [] | no_license | v-komarov/psv3 | afe2a50a5498ee66f4146802ecbbb62bef5a9173 | deca97a9fac0865163f7c2d4fd5110caccb00a80 | refs/heads/master | 2021-01-18T10:52:35.444429 | 2016-06-06T09:19:27 | 2016-06-06T09:19:27 | 59,651,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #!/usr/bin/env python
#coding:utf-8
import shelve
### --- Запись значения в CFG файл ---
f = shelve.open('../ps.cfg')
f['pdfview']='evince'
f.close()
| [
"komarov-krsk@mail.ru"
] | komarov-krsk@mail.ru |
9ef7f10f2c660037d94e912eb79c785e24555905 | e5d6e752d2511eae6a0214a7590e3bcd752714f8 | /data_splite_resize.py | cf4c02609f92d54531b540e492d6b20d5732f2aa | [] | no_license | WenHui-Zhou/head_detection | 69c3d2b53dd1d88089c6415500fbfcaf0522c35f | 8394a39211b86c7998d6b7011e39363494679f4a | refs/heads/master | 2020-04-18T05:37:11.457028 | 2019-01-24T02:35:34 | 2019-01-24T02:35:34 | 167,285,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | import os
import json
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image, ImageDraw,ImageFont
SIZE1 = 480
SIZE2 = 640
imSaveDir = "/home/zhouwenhui/AI/head_Detection/TensorBox/data/yuncong/part_B_resize/"
txtDir = "/home/zhouwenhui/AI/head_Detection/TensorBox/data/yuncong/TXT/"
imTrainSaveDir =... | [
"765647930@qq.com"
] | 765647930@qq.com |
804e46ee81c147120f603c6628db2934f2e92b09 | dea38bc535d00d2580063b365994d41fe971e2da | /Chatterbot/no_output_example.py | 1a53a3d725655d1e6c5787de27f79fdd294b23ba | [] | no_license | shivam1111/research | ed6282116d9d7daaa6e416c9c20b919851b5560b | 0d3cc5d1718715733dd023ed021ceee8377481d4 | refs/heads/master | 2021-01-10T03:50:48.336533 | 2016-02-18T14:35:21 | 2016-02-18T14:35:21 | 50,817,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | from chatterbot import ChatBot
# Create a new instance of a ChatBot
bot = ChatBot("No Output",
storage_adapter="chatterbot.adapters.storage.JsonDatabaseAdapter",
logic_adapter="chatterbot.adapters.logic.ClosestMatchAdapter",
io_adapter="chatterbot.adapters.io.NoOutputAdapter",
database="../database.db... | [
"shivam1111@gmail.com"
] | shivam1111@gmail.com |
c09f7a806b89ae8a840a389d85bc26850aef8f86 | 849e95a72f4f380d6b31573a0a13e9eccd288838 | /legal-api/migrations/versions/94586877d4bc.py | 04c88f952e263abfab0972cf8bf10c53c5cf1ef3 | [
"Apache-2.0"
] | permissive | bcgov/lear | d9b27e2b44ba607ca13878357a62a0623d54ddee | d90f11a7b14411b02c07fe97d2c1fc31cd4a9b32 | refs/heads/main | 2023-09-01T11:26:11.058427 | 2023-08-31T20:25:24 | 2023-08-31T20:25:24 | 168,396,249 | 13 | 117 | Apache-2.0 | 2023-09-14T20:52:02 | 2019-01-30T18:49:09 | Python | UTF-8 | Python | false | false | 821 | py | """empty message
Revision ID: 94586877d4bc
Revises: 9147d4bc9939
Create Date: 2022-02-16 06:07:35
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '94586877d4bc'
down_revision = '9147d4bc9939'
branch_labels = None
depend... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
d26084ef48b5903eb14a6ff3773fd372563ad97d | 960087b76640a24e6bb5eb8a9a0e5aeb6c68917b | /result/predMultiOD_CopyLastWeek_2103291212_log/Param.py | 9bd78ebf230c9483fe0cec99b4523a85365b0962 | [] | no_license | 346644054/ODCRN | e14d0a1f2e2e4a9cb655cdd914b587beeaff37cf | 71c11cb1da156ad0809c4352e578a8b0586fdf83 | refs/heads/main | 2023-06-19T21:32:22.245910 | 2021-07-20T02:47:59 | 2021-07-20T02:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import pandas as pd
TIMESTEP_IN, TIMESTEP_OUT = 7, 7
HEIGHT = 47
WIDTH = 47
CHANNEL = 1
BATCHSIZE = 4
SPLIT = 0.2
LEARN = 0.0001
EPOCH = 200
PATIENCE = 10
LOSS = 'mse'
OPTIMIZER = 'adam'
trainRatio = 0.8 # 80 days for training and validation, 20 days for testing.
ODPATH = '/data2/cai/OD/japan/aggregate_prov/results/... | [
"jiangrh@csis.u-tokyo.ac.jp"
] | jiangrh@csis.u-tokyo.ac.jp |
74ae9dcf574f4c0718a0e5731a53eef15f6de6dd | 7a570977ac42ea25c61b812bd9fe3a5ea0a9f33b | /_MOM/import_MOM.py | 1f754ea54a2607c45751ee2ec944d259d03f1561 | [
"BSD-3-Clause"
] | permissive | YanjiaSun/tapyr | 6d6f3859abe5c6cf81e12b2319387d02c0d2749f | c261d3e06db1a4fbe0e6535bd97b0134049b3a79 | refs/heads/master | 2021-05-17T22:22:31.570349 | 2020-02-09T09:41:12 | 2020-02-09T09:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2009-2016 Mag. Christian Tanzer. All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# ****************************************************************************
# This module is part of the package _MOM.
#
# This module is licensed under the terms... | [
"tanzer@swing.co.at"
] | tanzer@swing.co.at |
ea94aad8e58c0c0be710456cc4153f670fc7cbfc | 9e1dceda91ed6ecbdf274e90502a9c9b22a4d9d8 | /hdlConvertor/toHdlUtils.py | 9f43b1b7cc9b9c3362b00761a4c41b9d7811e0f7 | [
"BSD-3-Clause",
"GPL-3.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | Pear0/hdlConvertor | 17fb6f024a48bab3f4ee3786a305c34cf2a2d133 | f6a856d2622cef559e2ef28c96cad88ddb50838f | refs/heads/master | 2020-07-15T19:15:58.563202 | 2019-09-01T05:28:46 | 2019-09-01T05:28:46 | 205,631,305 | 0 | 0 | MIT | 2019-09-01T05:00:52 | 2019-09-01T05:00:52 | null | UTF-8 | Python | false | false | 2,078 | py | import sys
class Indent():
"""
indentation context
"""
def __init__(self, autoIndentStream):
self.s = autoIndentStream
self.original_indent = None
def __enter__(self):
s = self.s
self.original_indent = s.indent_str
s.indent_cnt += 1
s.indent_str = ... | [
"nic30@seznam.cz"
] | nic30@seznam.cz |
aa7e6ad4a7cfe5ec56285de4777d6f82132ae53a | 58373aa1768d3632f0bdc9c9d6eb1eeac0d76369 | /yamtbx/dataproc/xds/command_line/prepare_xds_runs.py | dd30cc779614fdcebf2a78c47441a33fe2cb9b4b | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | keitaroyam/yamtbx | ee3c6e694f3c81277dfaebf7253b159e1f14b413 | 11b27aaff4920f554b4db76e80d0d832cd23809c | refs/heads/master | 2023-07-26T03:42:05.971228 | 2023-07-12T21:00:51 | 2023-07-12T21:00:51 | 46,595,277 | 18 | 11 | null | null | null | null | UTF-8 | Python | false | false | 3,663 | py | #!/usr/bin/env yamtbx.python
"""
(c) RIKEN 2015. All rights reserved.
Author: Keitaro Yamashita
This software is released under the new BSD License; see LICENSE.
"""
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
"""
Find data sets, make directories for X... | [
"keitaroyam@users.noreply.github.com"
] | keitaroyam@users.noreply.github.com |
55aff3ccb7d45fd470c4d6068a957299bacfeb71 | 00cd46c5722fbb4623d8cefc33bbce6e4c6bf970 | /Two_Pointers/1132.Valid Triangle Number/Solution.py | e823e0ed65a9eabe3e94ccbd2778ab88ea0a03f3 | [
"MIT"
] | permissive | jxhangithub/lintcode | 9126d0d951cdc69cd5f061799313f1a96ffe5ab8 | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | refs/heads/master | 2022-04-02T22:02:57.515169 | 2020-02-26T21:32:02 | 2020-02-26T21:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | class Solution:
"""
@param nums: the given array
@return: the number of triplets chosen from the array that can make triangles
"""
def triangleNumber(self, nums):
# Write your code here
if not nums or len(nums) == 0:
return 0
nums.sort()
ans = 0
... | [
"32248549+Zhenye-Na@users.noreply.github.com"
] | 32248549+Zhenye-Na@users.noreply.github.com |
68b00c7ec908c0220975cc655f82a6f48eb38e28 | 772d1ab6a1814e4b6a408ee39865c664563541a6 | /lms_app/lms_view/course_view/urls.py | 09fbbb67d382635b62d900b9e6f7a553f164b2ad | [] | no_license | omitogunjesufemi/lms | 7deed8bf54799034d6af2b379a0c56801f5645cc | 9c8bb88556a3f5598cf555623ef016a74ae3f5c7 | refs/heads/master | 2023-05-04T12:52:13.862572 | 2021-05-25T13:48:26 | 2021-05-25T13:48:26 | 330,643,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from django.urls import path
from lms_app.lms_view.course_view import views
urlpatterns = [
path('create', views.register_course, name='create_course'),
path('edit/<int:course_id>', views.edit_course, name='edit_course'),
path('list', views.list_courses, name='list_courses'),
path('api/list', views.lis... | [
"omitogunopeyemi@gmail.com"
] | omitogunopeyemi@gmail.com |
5196941370e3697463ee0bae9b2d71570e00b60a | 01ee34b6d9775f0b23029167223bd05b6c59d41a | /tests/test_models/test_city.py | 6c258239bfd5271dba17a604e3f990afcf6c0c43 | [] | no_license | juansedev/AirBnB_clone | 03bf1d787ea1f36d7781ba3592d14aadba886235 | 1ffd4e4251e8bbc13d574b63097475fecb786bc3 | refs/heads/master | 2022-11-15T08:21:19.099092 | 2020-07-13T16:49:42 | 2020-07-13T16:49:42 | 278,485,830 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | #!/usr/bin/python3
""" This is a test module for City Class"""
from models.city import City
from models import city
import pep8
import unittest
import os
class TestCity(unittest.TestCase):
"""Class for test the City class"""
def test_docstring(self):
""" Method to test doctring module, class and fu... | [
"elnavarro55@gmail.com"
] | elnavarro55@gmail.com |
44f09a07efe93ef55a802d05340487f469040c69 | 8133f13e08e619207bf0ab3e86967f95caf22e8e | /pricelist_by_customer/models/pricelist_by_customer.py | 001c3284495ef4ecdae0fd1df2456836e0108374 | [] | no_license | trung8358573/liderit8 | f4fcc3cc5d87c347bee4f1e3d9b3a349ad0b0dfa | 18d8bb548bd0a913ed2483734d59a9f0f482024d | refs/heads/master | 2020-06-07T15:37:01.977870 | 2019-04-13T10:40:00 | 2019-04-13T10:40:00 | 193,049,266 | 0 | 1 | null | 2019-06-21T07:09:08 | 2019-06-21T07:09:08 | null | UTF-8 | Python | false | false | 3,328 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012 Hugo Santos (<http://factorlibre.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of th... | [
"mellanoc@gmail.com"
] | mellanoc@gmail.com |
1f6fbab9460099fa101bcf92ace191e114d53dee | dae2deea56610239e84213d4de8ff5b183b6b639 | /DeepLearningStudy/deeplearnCode/Day2/test.py | 2fca566fe22733b91128a628eef6f483f3725102 | [] | no_license | 852251748/pytorchStudy | f76fbd0529d1197535b0ffe7a6a75d5a64d755eb | 3b865c814bf51a1946d628bb75c7cec10fe12590 | refs/heads/master | 2022-12-05T18:14:00.549552 | 2020-09-03T06:27:20 | 2020-09-03T06:27:20 | 274,569,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from torchvision import datasets, transforms
import torch
data = datasets.CIFAR10("../../day_02\data", train=True, transform=transforms.ToTensor(), download=False)
print(data[0][0].shape)
| [
"123456789@qq.com"
] | 123456789@qq.com |
e1c2a584180aff93c0d54eb997d9f5298d4f9796 | 423ba09a145b3468a322acf4ddf7d2c2446e227d | /atcoder/abc/abc037_b.py | 4ff000b9402d83b50165ec02e0bf627f8235e51f | [] | no_license | hirosuzuki/procon | 13d3bc332d6e4368fd54fec742b32b09729658ed | 533f40e13456542b202905a61814ad926c3c206e | refs/heads/master | 2021-05-12T10:42:51.920561 | 2020-05-20T15:49:05 | 2020-05-20T15:49:05 | 117,356,746 | 0 | 0 | null | 2018-01-29T14:46:28 | 2018-01-13T15:56:40 | Python | UTF-8 | Python | false | false | 204 | py | N, Q = [int(_) for _ in input().split()]
LRT = [[int(_) for _ in input().split()] for i in range(Q)]
result = [0] * N
for l, r, t in LRT:
result[l-1:r] = [t] * (r - l + 1)
print(*result, sep="\n")
| [
"hirosuzuki@users.noreply.github.com"
] | hirosuzuki@users.noreply.github.com |
9d4e197144a53717920ef31e8fbfb7c4f2b7daf6 | f5c2dd5345b4826e824bad560714cf50ce8d57b7 | /actor.py | a062f53ce3b7a8e8cbec9b05493f8d6c925f4007 | [] | no_license | cloudaice/gevent-test | 4fa06ce963ca15b69eedbf0c60216754a6162d91 | dc5070588381f078d677ac402cfea8301dbfbf08 | refs/heads/master | 2020-06-04T18:44:00.217124 | 2012-09-13T06:06:37 | 2012-09-13T06:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | import gevent
from gevent.queue import Queue
from gevent import Greenlet
class Pinger(Actor):
def receive(self, message):
print message
pong.inbox.put('ping')
gevent.sleep(0)
class Ponger(Actor):
def receive(self, message):
print message
ping.inbox.put('pong')
g... | [
"cloudaice@163.com"
] | cloudaice@163.com |
0a9066c340d550d2cbc48ebb0e441a14a2b2b7cf | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/46/usersdata/87/17428/submittedfiles/funcoes1.py | e027d6d71e1f391c6c2ec2f67d3e4aef6578b7ea | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | # -*- coding: utf-8 -*-
from __future__ import division
def crescente (lista):
cont=0
for i in range (0,len(lista),1):
if lista[i]<lista[i+1]:
cont=cont+1
return True
else:
return False
def decrescente (lista):
cont=0
for i in range (0,len(lista),1):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
29ec250ce6f3401d7aae0c4b42b24b3933654670 | 23b686feb2d0ab9082a7ce622fc055946ed99c55 | /.history/atkd/views_20190409152315.py | ab497963cb95200bcb95867866f3be859cb95fb2 | [] | no_license | jasvr/atkd | a18b9840bf9948a7560684cd5eb0d5e22f6c52c7 | daf61f7aa11cfc812171298894b1d0019641c4bd | refs/heads/master | 2020-05-07T09:35:56.343837 | 2019-04-12T16:17:09 | 2019-04-12T16:17:09 | 180,383,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from django.shortcuts import render
from .models import Parent, Student
def parent_list(request):
parents = Parent.objects.all()
return render(request, 'atkd/parent_list.html') | [
"jas.vrgs@gmail.com"
] | jas.vrgs@gmail.com |
a2deef2164462b7b4e99186be2c4799799abc83a | e84feabf99ff6e15df9eeee7b7c2595853fe746d | /app/event_handlers/channel_create.py | de5e906cf0cee90439c03f50436ea42b4eae7be3 | [] | no_license | Ravillatypov/freeswitch-intergration | f0536b3abf3982cb2051291dbe101d07e59809b8 | cac8cc829ca0d5734a5294847bf7587758b45eb1 | refs/heads/main | 2023-01-23T02:06:53.070823 | 2020-10-01T17:19:33 | 2020-10-01T17:19:33 | 300,362,493 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | from datetime import datetime
from app.misc.consts import CallType, CallState
from app.misc.types import FSEvent
from app.models import Call, VATSClient
from app.utils.events import is_external, is_internal, phone_number_normalize
from app.utils.logging import get_logger
logger = get_logger('root')
async def channe... | [
"ravillatypov12@gmail.com"
] | ravillatypov12@gmail.com |
d7b095878f8817b56c77f1b2a802147c990453d0 | bb983b38f9be7b6fd4ab1a651484db37c1aeff39 | /0620/test2_AdaBoost.py | cbf7833d213f2459eb7c2d77515beb30a191fe36 | [] | no_license | nakanishi-akitaka/python2018_backup | c214df78372cca993d69f8001010ec2f6dcaf1be | 45766d3c3777de2a91b3e2cf50c6bfedca8627da | refs/heads/master | 2023-02-18T08:04:28.625532 | 2022-06-07T01:02:53 | 2022-06-07T01:02:53 | 201,399,236 | 5 | 30 | null | 2023-02-10T21:06:51 | 2019-08-09T05:48:22 | Jupyter Notebook | UTF-8 | Python | false | false | 1,259 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 20 14:09:25 2018
@author: Akitaka
http://scikit-learn.org/0.18/auto_examples/ensemble/plot_adaboost_regression.html
"""
print(__doc__)
# Author: Noel Dawe <noel.dawe@gmail.com>
#
# License: BSD 3 clause
# importing necessary libraries
import numpy as n... | [
"noreply@github.com"
] | nakanishi-akitaka.noreply@github.com |
f76ab8cef5d7fefa2ec7f58000951ebfc8506c20 | 2e852cd19629b6dab2901483ff0a8f61333fc433 | /PyqtProject/votegui.py | 3bd9ac4a2405df6510fb8e7041f661717516237f | [
"MIT"
] | permissive | pection-zz/Interactionstudent | 919adf9f09121bbf4ea25a17a6e5a6c1b10c1636 | 74291812d3a5455c805b7ccc2d76dad28e6db77f | refs/heads/master | 2022-12-24T03:10:19.088273 | 2020-10-05T17:10:42 | 2020-10-05T17:10:42 | 301,482,791 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,765 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'vote.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _from... | [
"pection.naphat@gmail.com"
] | pection.naphat@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.