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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d1490ee476b6f966503a8f9e4b266ada5179d28 | 61456f36bc796cd8b4e5ebe489bc6e4c019363ad | /cc3d/twedit5/ucode_demo.py | 03f0029bfdb779b23caef53551a3f9d7971755a8 | [] | no_license | insafbk/CompuCell3D | f3556be82d10e71b6993a68e9a3fee552d10eb16 | 4c8b3b38f6fb9b96de7b7c13575ef0738f53dbc0 | refs/heads/master | 2023-01-03T08:55:37.934247 | 2020-08-22T18:13:13 | 2020-08-22T18:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | import locale
import unicodedata
from os.path import *
import os
from _functools import partial
pref_encoding = locale.getpreferredencoding()
def unicode_cnv_fcn(_str, encoding):
return unicodedata.normalize('NFKD', _str).encode(encoding, 'ignore').strip()
unicode_cnv = partial(unicode_cnv_fcn,enco... | [
"maciekswat@gmail.com"
] | maciekswat@gmail.com |
a486d109c6bc1f21664e250bf129caebbfcc0169 | de7cae42ec760bae3b532259b399a8c6df0394c9 | /wxPython/samples/wxPIA_book/Chapter-13/list_icon.py | 2626b59a89e5ec3669e185385ff2851bf5bc75ff | [] | no_license | nvaccess/wxPython | b70f91bd682b86e20434d0c69ac497dfbf875838 | 13cceab2a1891ab443e62078be729dc1e1e2e283 | refs/heads/master | 2020-05-31T00:11:36.079007 | 2016-07-12T09:25:04 | 2016-07-12T09:25:04 | 63,135,776 | 1 | 2 | null | 2016-07-18T02:43:08 | 2016-07-12T07:18:57 | C++ | UTF-8 | Python | false | false | 937 | py | import wx
import sys, glob
class DemoFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1,
"wx.ListCtrl in wx.LC_ICON mode",
size=(600,400))
# load some images into an image list
il = wx.ImageList(32,32, True)
for... | [
"robin@alldunn.com"
] | robin@alldunn.com |
d327fd7f69840247562703336daa75291d37d7d9 | 7b2328b53ed84cc5fa87fb0ae56ee2db96362d9e | /playground/dags/execution_date.py | a840d4a91eda010e250b03a0f248502e391307e8 | [
"MIT"
] | permissive | DoctorNasa/automating-your-data-pipeline-with-apache-airflow | 3ae7ca24eb0ca01fafa33fdf240d268ef188be08 | b920e5a75836a0fc63930c3a4605f5eb22273478 | refs/heads/master | 2022-12-02T10:36:54.481869 | 2020-07-29T16:23:08 | 2020-07-29T16:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.utils.dates import days_ago
args = {
'owner': 'Airflow',
'start_date': days_ago(2),
'provide_context': True,
}
with DAG('execution_date', schedule_interval='*/5 * * * *', default_args=args, catchup=False) as dag:... | [
"zkan.cs@gmail.com"
] | zkan.cs@gmail.com |
bc73e62931b80098e8ffc04d3459a7b377385d27 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_1.1/MsAccess_Edit/TestCases/Y_NamedFldTests/GeneralEdit/C02_NewFile2.py | 92b5a91bfd08ec7633a00da2f44cef980ced500c | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | useFixture(default)
def test():
from Modules import commonBits
java_recorded_version = '1.6.0_22'
if window('Record Editor'):
select('Record Layout_Txt', 'DTAR020')
assert_p('Record Layout_Txt', 'Text', 'DTAR020')
select('File_Txt', commonBits.sampleDir() + 'xxxcvxx')
assert_p('Record Layout_Txt'... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
158a87bd73979bbd0abef31a03080ea8dffee5b1 | 5d142801de475f41d4512879de84a2472639d0d7 | /runs/4_groups_4_subgroups/initial_means/test_means.py | fb136d9c5b50ce21e9b5b2bb56dbf6c455b86429 | [] | no_license | samyvilar/greenbandsubgroups | e817a59e4cd3f5224608f5e9da1f3e59fa0460ab | 0eba2d1c52093723d24ab4e322327c84caf79b2f | refs/heads/master | 2021-01-01T05:30:37.586998 | 2012-08-23T19:23:17 | 2012-08-23T19:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | __author__ = 'Samy Vilar'
__date__ = 'Mar 22, 2012'
import sys
sys.path.extend('../../..')
import numpy
import time
from lookuptable.lookuptable import lookuptable
from MeanCalculator import minimize, get_predicted_from_means
from Utils import get_sum_of_errors_squared,\
get_granule_path, get_standard_granule_l... | [
"samy.vilar@gmail.com"
] | samy.vilar@gmail.com |
30c9f3c85c5def9f37dda402d2284c0191579f24 | 3086b5195cb4dbb27aa73a24f6bf964440dff422 | /bugs/dwarfparser-object-file-segfault/test.py | 94ac36e51d8a2229cfcd702d484c733e785719f5 | [
"MIT",
"Python-2.0"
] | permissive | avast/retdec-regression-tests | 8c6ea27ce2f5d0dfa6e6c845c38b56fa5bdfcc23 | 6662fed9d73cb7bc882ea69fd2429d5464950e39 | refs/heads/master | 2023-08-31T05:53:16.967008 | 2023-08-07T13:33:00 | 2023-08-15T08:33:07 | 113,974,761 | 7 | 10 | MIT | 2023-08-15T08:33:08 | 2017-12-12T10:11:00 | Python | UTF-8 | Python | false | false | 204 | py | from regression_tests import *
class Test(Test):
settings=TestSettings(
input='lib704.o',
args='--backend-no-opts'
)
def test(self):
assert self.decompiler.succeeded
| [
"petr.zemek@avast.com"
] | petr.zemek@avast.com |
1775ec800fa8f1a6c33114282aea096abe71998c | d7016f69993570a1c55974582cda899ff70907ec | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_aad_properties_operations.py | b3629645e8f4c0bd62398211177c9414d6bdc1b3 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"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,461 | 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 |
d5c87705dd3d428780099c8c6f79f006b394590a | a39ed5db6c75c9ae1f5e05118794c64102dc5f7a | /2020/17_2/solution.py | 540e1a648fef8138c66f0f0daab7afcc616bae85 | [
"MIT"
] | permissive | budavariam/advent_of_code | b656d5caf5d05113b82357754eb225e61e89ac0d | 635be485ec691f9c0cdeb83f944de190f51c1ba3 | refs/heads/master | 2022-12-25T18:12:00.981365 | 2022-12-20T08:20:51 | 2022-12-20T08:20:51 | 114,570,426 | 1 | 1 | MIT | 2022-12-09T09:29:06 | 2017-12-17T21:36:00 | Python | UTF-8 | Python | false | false | 3,777 | py | """ Advent of code 2020 day 17/2 """
import math
from os import path
STATE_ACTIVE = '#'
STATE_INACTIVE = '.'
def get_neighbours(start_w, start_z, start_y, start_x):
return [
(start_w-w, start_z-z, start_y-y, start_x-x)
for w in range(-1, 2)
for z in range(-1, 2)
for y in range(-1... | [
"budavariam@gmail.com"
] | budavariam@gmail.com |
aab662f7b23c8294f4ae025229b60fdd5a1bd3e9 | 09fc9f877b816fd83e9a1206255d6aa798b04dee | /src/faber/config/try_compile.py | 57896a723fbc502aa7a96e61088aa5e895edfcd3 | [
"BSL-1.0"
] | permissive | stefanseefeld/faber | 3dd108142a11ece3a2a0cd272ac47402bfc23976 | 0f369a8a9e4de305e5379d9662b2e79bffd43910 | refs/heads/develop | 2022-09-16T00:55:23.912513 | 2021-01-02T22:26:41 | 2021-02-07T21:15:38 | 70,861,219 | 15 | 4 | BSL-1.0 | 2021-02-08T18:33:06 | 2016-10-14T01:06:24 | Python | UTF-8 | Python | false | false | 1,186 | py | #
# Copyright (c) 2016 Stefan Seefeld
# All rights reserved.
#
# This file is part of Faber. It is made available under the
# Boost Software License, Version 1.0.
# (Consult LICENSE or http://www.boost.org/LICENSE_1_0.txt)
from .check import check
from ..artefact import intermediate, always
from ..tools.compiler impor... | [
"stefan@seefeld.name"
] | stefan@seefeld.name |
822f1400735295ad1cfeac14f882784a16658dac | da7e67b37e0eaf3f8288d3159f5d28c120802c96 | /pyapdl/sections.py | 219d6769f3cbfd805c672c16d1345d7cad73b556 | [
"MIT"
] | permissive | jangson1990/pyapdl | b2d09d2245f47da066a2edc83e45cd7a8b344a0d | 6a9842808b01121032515d01bdb3d055661b849a | refs/heads/master | 2020-12-27T14:25:53.750438 | 2016-04-25T19:20:45 | 2016-04-25T19:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | # -*- coding: utf-8 -*-
class Section(object):
def __init__(self):
pass
class RectangleSection(Section):
"""
Rectangle section
Parameters
----------
b : int, float
Rectangle base
h : int, float
Rectangle height
"""
def __init__(self,b,h):
Se... | [
"delossantosmfq@gmail.com"
] | delossantosmfq@gmail.com |
b9ebaf024b9219aea5f86a9ed411b6a8abcd83d2 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano4267.py | 07b5ba86399ad038c34f49d2a57ef30dde99ca4b | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
dc9e5314738349dd7f06dcd3043611e286751b17 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/catapult/tracing/bin/why_imported | 04a134681f723555b8291862ff8c1f15a2a23709 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 1,614 | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Produces a dot file showing dependency relationships between modules.
The dot file contains a text-based representation of a direct... | [
"jengelh@inai.de"
] | jengelh@inai.de | |
7710b7d876f401666783f8bf46726bf2b8f58df2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2440/60889/271884.py | 583ca4ffedd948172eb023ae5d77bc0ece2cac7d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | nums = input().strip("[]").split(",")
nums = list(map(int,nums))
orders = []
for i in nums:
loc = 0
for j in orders:
if i < j:
break
loc = loc + 1
orders.insert(loc,i)
print(orders) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c4aabf85bf0b01452aee9289e9735f0b49219722 | ad0857eaba945c75e705594a53c40dbdd40467fe | /baekjoon/python/downhill_1520.py | 7c360ba104e9eca8c7fb87bd2294c46ddde39c14 | [
"MIT"
] | permissive | yskang/AlgorithmPractice | c9964d463fbd0d61edce5ba8b45767785b0b5e17 | 3efa96710e97c8740d6fef69e4afe7a23bfca05f | refs/heads/master | 2023-05-25T13:51:11.165687 | 2023-05-19T07:42:56 | 2023-05-19T07:42:56 | 67,045,852 | 0 | 0 | null | 2021-06-20T02:42:27 | 2016-08-31T14:40:10 | Python | UTF-8 | Python | false | false | 1,157 | py | # Title: 내리막 길
# Link: https://www.acmicpc.net/problem/1520
import sys
sys.setrecursionlimit(10 ** 6)
directions = [(1, 0), (0, 1), (-1, 0), (0, -1)]
def read_list_int():
return list(map(int, sys.stdin.readline().strip().split(' ')))
def read_single_int():
return int(sys.stdin.readline().str... | [
"yongsung.kang@gmail.com"
] | yongsung.kang@gmail.com |
22b65e7e9d66ba92ab280d6fca4ffcf4a361e8eb | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /think_problem_over_public_time/child_and_year.py | 85a1bb4d007969c762c6aa57214e6f74a10a5baa | [] | 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 | 227 | py |
#! /usr/bin/env python
def young_place(str_arg):
part_or_same_time(str_arg)
print('government')
def part_or_same_time(str_arg):
print(str_arg)
if __name__ == '__main__':
young_place('public_year_and_place')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
4d4ff24ed394ccb4e208d80b15590a7ece0952dd | 229e1e103bc24dda4d8fef54b762009e19045a45 | /configs/nowd/nl_gc/trainpp/res101_d_nl_gc_nowd_lnnostd_ws5e-1_traincoarse.py | 07fc49782f27a22f696441c914492efc911283b3 | [
"MIT"
] | permissive | yinmh17/CCNet | c0be71919877c0d44c51cd8fd8ad8f644ef618a6 | d5e90fe5ccfa16389fd25bdd3e2160ffe2dfbd22 | refs/heads/master | 2020-06-18T13:03:46.781284 | 2019-11-12T06:26:59 | 2019-11-12T06:26:59 | 196,311,075 | 1 | 1 | MIT | 2019-07-21T19:48:39 | 2019-07-11T03:10:01 | Python | UTF-8 | Python | false | false | 1,095 | py | model = dict(
type='basenet',
pretrained='',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
block_num=[3, 4, 23, 3],
),
att=dict(
with_att=False,
type='glore',
att_stage=[False,False,True,False],
att_pos='after_add',
at... | [
"yaozhuliang13@gmail.com"
] | yaozhuliang13@gmail.com |
b73802373a6a49f608a897c9609dd07d4ef43068 | 129e18365c5ab0111e2a6d950e60bb34c9946ff5 | /tests/test_method_api.py | 580e6a9d260f455259723b4f9836f93afd5c10ac | [
"Apache-2.0"
] | permissive | pengutronix/aiohttp-json-rpc | 03ebe8ace99b244293aa27cb010c6d654831a2e3 | b9d375c5da01360abcf48aebb1bf2bddaab51a6a | refs/heads/master | 2021-10-08T13:49:13.763555 | 2020-12-14T09:11:49 | 2020-12-14T09:11:49 | 46,267,041 | 59 | 26 | Apache-2.0 | 2021-09-26T17:23:31 | 2015-11-16T10:12:15 | Python | UTF-8 | Python | false | false | 2,204 | py | import pytest
@pytest.mark.asyncio
async def test_async_notification_api(rpc_context):
# setup rpc
async def test_method(request):
await request.send_notification('test', 'payload')
return True
rpc_context.rpc.add_methods(
('', test_method),
)
# setup client
client = ... | [
"f.scherf@pengutronix.de"
] | f.scherf@pengutronix.de |
7f50e52899cc3461ddceaf5c1095ed2d1a5a76af | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2701/60771/253188.py | d84c1dabc16758053654abbbd72c23bd8db0bf56 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | #35
def judge(cells):
winchar = ""
for i in range(0,3):
for j in range(0,1):
if cells[i][j] != "_" and cells[i][j] == cells[i][j+1] and cells[i][j+1] == cells[i][j+2]:
winchar = cells[i][j]
break
# 判断横着胜利
if winchar == "":
for j in range(0, 3):... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0fa276a450ee2d160968371641bbedc3f69ec646 | 3034e86347c71bf7e7af9e5f7aa44ab5ad61e14b | /pweb/day04/fork.py | 2a7815947708dedc536f6e44d7e8333654774046 | [] | no_license | jason12360/AID1803 | bda039b82f43d6609aa8028b0d9598f2037c23d5 | f0c54a3a2f06881b3523fba7501ab085cceae75d | refs/heads/master | 2020-03-17T00:43:42.541761 | 2018-06-29T10:07:44 | 2018-06-29T10:07:44 | 133,127,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import os
pid = os.fork()
if pid < 0:
print('创建进程失败')
elif pid ==0:
print('创建了一个新的进程')
else:
print('这是原有的进程')
print('进程执行完毕') | [
"370828117@qq.com"
] | 370828117@qq.com |
7756ec54dc75e36946be1af794fd42870fb58a8f | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/kikoAnalysis/wndResFiles/90-tideGauge.py | 512c0909b54fa8fefac2265ed140b549e52885f7 | [] | 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 | 1,382 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 28 11:52:48 2020
@author: Michael Tadesse
"""
import os
import pandas as pd
dir_in = "/lustre/fs0/home/mtadesse/eraFiveConcat"
os.chdir(dir_in)
tgList = os.listdir()
x = 90
y = 91
#looping through individual tide gauges
for ii in range(x, y):
os.chdir(tgList[i... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
2eacf57c13cb5a8cb9e5721c3ab2b909815e081e | 1220f32fbf835e7a853ee7ccc8ca13c215bc79cf | /Kivy_tutorial_files/Kivy_App_Tutorial_00/Kivy_App_Tutorial/Modif_Ur_Window_Size/modyifi_Your_Window_Size_Max_03.py | 0a22f993632a5284390427903931b2bc34cbd978 | [] | no_license | CyborgVillager/Gui_Tutorial | 6775fc570427b424dc38b56cdaad2c17ef3d178d | 9f39efc3d62bcb2f22bbf1fa9d23ad96a04cc412 | refs/heads/master | 2022-11-06T10:14:44.006658 | 2020-01-11T15:35:14 | 2020-01-11T15:35:14 | 232,301,052 | 1 | 1 | null | 2022-10-21T05:28:32 | 2020-01-07T10:31:01 | Python | UTF-8 | Python | false | false | 349 | py | from kivy.lang import Builder
from kivy.base import runTouchApp
# 0.3 is the height 0.1 is the width
runTouchApp(Builder.load_string("""
FloatLayout:
Button:
text: 'Button_00'
# By using 'None' it will take up the whole window screen, try it by uncommenting line 10!
# size_hint_max_x: None
... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
9f9e242520188bb14cb9c7b6f36101274425ca9c | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/3-OO-Python/2-attributes-methods_20200415002718.py | c4cccd6bc07274a6196fe76164001d7db22c5a1d | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # OOP
class PlayerCharacter :
# class object attribute - it is static
membership = True
# constructor method / init method
def __init__(self, name, age):
if(self.membership):
if(self.membership):
self.name = name #attributes
self.age = age
def run (s... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
da85d46fa7ad4e1a6f7a3ddebbbed8eccd958488 | 7c8782117a74729660071a6039b5db023f368ff2 | /notice/migrations/0005_auto_20170921_0150.py | 165425672d4a1e6093127af2dc481c25a3ff8664 | [] | no_license | bartkim0426/google-speech-with-django | e1f2f37f176c195c0a7633f6de101cac3f2bc323 | ce08a298895906dd39928208b90c3b65395d4b59 | refs/heads/master | 2021-08-11T08:31:55.106034 | 2017-11-13T11:55:40 | 2017-11-13T11:55:40 | 104,433,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-20 16:50
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('notice', '0004_notice_is_important'),
]
operations = [
migrations.AlterModelOptions... | [
"bartkim0426@gmail.com"
] | bartkim0426@gmail.com |
ddef1677d5cc020b5c704c38d912dcb005238784 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day38_scrapyAndFlask/sp2/sp2/commands/crawlall.py | d8fb8b7c53b623cbe1c7d14c40abd3b823ccb64c | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 853 | py | from scrapy.commands import ScrapyCommand
from scrapy.utils.project import get_project_settings
from scrapy.crawler import CrawlerProcess
from scrapy.crawler import Crawler
class Command(ScrapyCommand):
requires_project = True
def syntax(self):
return '[options]'
def short_desc(self):
... | [
"284607860@qq.com"
] | 284607860@qq.com |
f78b346dc992a2f49cea25987126cb404ae65d7f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/748.py | 54e8f77e9fd7afb6b495002071d8fa39eb762831 | [] | 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 | 833 | py | def sol3(A,B):
ret = 0
for n1 in range(A,B):
str1 = str(n1)
temp = []
for i in range(len(str1)):
str2 = str1[i:] + str1[:i]
if str2 in temp:
continue
temp.append(str2)
if str2[0] == '0':
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
55efb17ab3cb6096ca5a122e1f125cdc29fcc90e | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/3/ising2d-microstates_20200505133826.py | 64efea2f8344dda6475ae491fdd00338a3ea739c | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,965 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
from time import time
import datetime
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import pandas as pd
def ising_microstates(L=2):
# Tamaño del sistema
N = L * L
# Lista en la que se guardan e... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
92e8b4f7ca7fbef1d8cc7f873b7e7ad47db82d87 | ebe422519443dbe9c4acd3c7fd527d05cf444c59 | /fearnor_elf.py | e037d3eeef83536f298a89b333679b4e800f9909 | [] | no_license | SaiSudhaV/coding_platforms | 2eba22d72fdc490a65e71daca41bb3d71b5d0a7b | 44d0f80104d0ab04ef93716f058b4b567759a699 | refs/heads/master | 2023-06-19T18:05:37.876791 | 2021-07-15T18:02:19 | 2021-07-15T18:02:19 | 355,178,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # your code goes here
import math
def radius(n, k):
return n / 9.8 * math.sqrt(k * 19.6 + n ** 2)
if __name__ == "__main__":
while True:
n, k = map(int, input().split())
if n == -1 and k == -1:
break
print("%.6f" % radius(n, k)) | [
"saisudhavadisina@gmail.com"
] | saisudhavadisina@gmail.com |
05a524b8ffbf2af130857c377b57264dcb637707 | bba10f5ff91b7a9f514728a0863cd05c058dd31d | /transformers/configuration_camembert.py | 2c493eb9bb1b31ae715eb26668e2b6f98495f5f2 | [
"MIT"
] | permissive | Tarpelite/UniNLP | 309367f598b36202ecfdcfce27223a0bc3f26f57 | 176c2a0f88c8054bf69e1f92693d353737367c34 | refs/heads/master | 2022-12-12T09:49:58.552732 | 2020-02-06T09:44:26 | 2020-02-06T09:44:26 | 223,107,063 | 0 | 1 | MIT | 2022-12-08T06:16:25 | 2019-11-21T06:46:05 | Python | UTF-8 | Python | false | false | 1,255 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain... | [
"tarpelite_chan@foxmail.com"
] | tarpelite_chan@foxmail.com |
9d0dd53227043daee8d183b1f3d8bff1d5cc81e7 | bd08d0532f20b7285b437c9bf620de1bbcd5b9ea | /aalh_iit_celebrations_001/debug-find-duplicates.py | 6867c099189db389d3868ff771a5b2f19118a3b7 | [
"Unlicense"
] | permissive | johndewees/iitmigration | a9e8a31ba6ceb541ce12c22fd612596cc243dbca | 4dadfbecda719d6e7d60af076a231aedec3c862f | refs/heads/main | 2023-03-14T17:06:58.777683 | 2021-03-27T20:44:58 | 2021-03-27T20:44:58 | 320,086,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | from openpyxl import load_workbook
filename = 'aalh_iit_celebrations_001.xlsx'
wb = load_workbook(filename)
ws = wb['Metadata Template']
minimumcol = 43
maximumcol = 43
minimumrow = 7
maximumrow = 208
iterationrow = 7
identifiercol = 25
filenamecol = 43
countfilename = dict()
countidentifier = dict(... | [
"noreply@github.com"
] | johndewees.noreply@github.com |
35089f3587517a1db16930307195d7ff26ea8679 | 85fa329cadd8edb7aa8ad32d573a1da91445c676 | /RSVP_MVPA/MVPA_multi_methods/accs_multi_featureextraction/do_MVPA_alltime_eeg.py | 8a5b931a7ededf1bb8d5ba4d7bab9db33fc84480 | [] | no_license | listenzcc/RSVP_scripts | 05aaed6d1aded2c3b1851ece61f52442c8a9eba8 | e01a60c980c2bf6a002f2673a5b8984d3ad70f6e | refs/heads/master | 2020-05-02T19:33:43.838999 | 2019-07-03T01:13:25 | 2019-07-03T01:13:25 | 178,161,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,585 | py | # coding: utf-8
'''
This script is to do MVPA on MEG RSVP dataset
'''
import matplotlib.pyplot as plt
import mne
import numpy as np
import os
from sklearn import svm
from sklearn.linear_model import LogisticRegression
from sklearn.decomposition import PCA
from sklearn.metrics import classification_report
from sklearn.... | [
"listenzcc@mail.bnu.edu.cn"
] | listenzcc@mail.bnu.edu.cn |
712e2f68f5f3101efdf89c312618dba96b8567cd | 748d6386eeffd220dfac928b25c4afbe34d9847a | /couch/tests/test_fields.py | ae46d74f3b7ebd3f6111d974721adce0cc3a286a | [
"MIT"
] | permissive | madron/django-couch | 6b424ddb6f1451fa7b443f33d21acf1b08caec93 | 21e4c3a0022bdb7cfaff017f72025afbf5220b3b | refs/heads/master | 2020-12-04T11:49:46.648670 | 2017-12-12T19:11:56 | 2017-12-12T19:11:56 | 231,754,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,694 | py | import pytz
from datetime import datetime
from django.test import override_settings
from django.test import SimpleTestCase
from django.utils import timezone
from .. import exceptions
from .. import fields
class TextFieldTest(SimpleTestCase):
def test_to_json(self):
value = fields.TextField().to_json('Text... | [
"massimiliano.ravelli@gmail.com"
] | massimiliano.ravelli@gmail.com |
73b63a8ab765ef4f32ee9ebbdf2ee3eed9c1beb6 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /TrackingTools/GeomPropagators/python/SmartPropagatorRKOpposite_cfi.py | 27186925e0176636c81bef18ca668949e327508f | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 651 | py | import FWCore.ParameterSet.Config as cms
SmartPropagatorRKOpposite = cms.ESProducer("SmartPropagatorESProducer",
ComponentName = cms.string('SmartPropagatorRKOpposite'),
TrackerPropagator = cms.string('RungeKuttaTrackerPropagatorOppo... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
cf920d883d44e41c5eaebb6456a35ad5dd505532 | 064301d6f7d39b88c0e15608ad67996b50da4daf | /tests/grammar/factory/transaction/test_administrator_information.py | 7bdcd4e76a4dab9b3d01e5cfba9252a7fcc71a88 | [
"MIT"
] | permissive | Python3pkg/CWR-DataApi | 0d9f75fc3219a0a73860e2e6086779c78a8c952e | a0dc831be9d62a9febf14c357404df0fd5e7c308 | refs/heads/master | 2021-01-21T09:34:01.246500 | 2017-05-18T13:17:11 | 2017-05-18T13:17:11 | 91,657,432 | 1 | 0 | null | 2017-05-18T06:32:15 | 2017-05-18T06:32:15 | null | UTF-8 | Python | false | false | 4,968 | py | # -*- coding: utf-8 -*-
import unittest
from pyparsing import ParseException
from tests.utils.grammar import get_record_grammar
"""
CWR Administrator Information grammar tests.
The following cases are tested:
"""
__author__ = 'Bernardo Martínez Garrido'
__license__ = 'MIT'
__status__ = 'Development'
class TestAd... | [
"programming@wandrell.com"
] | programming@wandrell.com |
cca843c2c2b808f40d657f787bd486e796ff411e | f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41 | /starrez_client/models/report_permission_item.py | 2049321c7de222ffb95310f4d59776fca5928b4c | [] | no_license | CalPolyResDev/StarRezAPI | 012fb8351159f96a81352d6c7bfa36cd2d7df13c | b184e1863c37ff4fcf7a05509ad8ea8ba825b367 | refs/heads/master | 2021-01-25T10:29:37.966602 | 2018-03-15T01:01:35 | 2018-03-15T01:01:35 | 123,355,501 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,935 | py | # coding: utf-8
"""
StarRez API
This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: resdev@calpoly.edu
Generated by: https... | [
"fedorareis@gmail.com"
] | fedorareis@gmail.com |
14df531670e7cabff9c3da37a8ea27ce5431ff64 | a121722217c4eb002ac2d0217f911bb29960cbaa | /flavio/physics/bdecays/bvll/lfv.py | c03421854b1937f3f11a91abf2b9fb6c6f996d16 | [
"MIT"
] | permissive | Varamatango/flavio | 4970c889ec2ba6fca3443cf1c82b37e8e4fd79a4 | 6eded9d7c77f3bb95c291ab4d8409642f76ca0ce | refs/heads/master | 2020-03-24T06:22:48.668065 | 2018-07-09T15:00:51 | 2018-07-09T15:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,233 | py | r"""Observables in lepton flavour violating decays $B\to V\ell\ell^\prime$"""
import flavio
import scipy.integrate
from flavio.classes import Observable, Prediction
from math import sqrt, pi
def prefactor(q2, par, B, V, l1, l2):
GF = par['GF']
ml1 = par['m_'+l1]
ml2 = par['m_'+l2]
scale = flavio.conf... | [
"david.straub@tum.de"
] | david.straub@tum.de |
79e9981d662884bac6d95de56bff0e575d99e6a5 | 20318e0e765e081dc2230530cddf0b758f8eeb49 | /app/database/models/user/user_permission.py | 3dbec5956a7640c2df3d1b887543a062c0c38c1b | [] | no_license | Jaco26/flask-boilerplate | 3ed35a77c7c0ba7436050c7025fd79aab0a45411 | 609ad201d0f4e9cb7d32529b16f1150ef4239f32 | refs/heads/master | 2020-08-31T05:24:36.866420 | 2019-11-29T15:22:27 | 2019-11-29T15:22:27 | 218,603,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from app.database.db import db
class UserPermission(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String, nullable=False)
def __repr__(self):
return f"UserPermission {self.id} - {self.name}"
def save_to_db(self):
db.session.add(self)
db.session.commit() | [
"jacob.albright23@gmail.com"
] | jacob.albright23@gmail.com |
8f93fc93317e8a7391c470a699aabf376669ec67 | 08e344c584e89d991c81efde8ce5c78e15bd95b0 | /rdc/web/server.py | 4342c33de1b6888a0ad006d2e3cc5f8a9ebcba51 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | hartym/rdc.web | 2e54749ac900c39b7a96cd9b84d1576c769dccf5 | 79fe54c92611fe33bbcc07a4ced96bcd8036b563 | refs/heads/master | 2021-01-15T15:16:10.023130 | 2014-04-22T07:14:58 | 2014-04-22T07:14:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | from rdc.dic import Container as BaseContainer
class Container(BaseContainer):
@staticmethod
def configure(self, *args, **kwargs):
"""Depencency injection container configurator."""
prefix = kwargs.pop('prefix', __name__ if '__name__' in locals() else 'rdc.web')
p = lambda name: '.'.joi... | [
"romain@dorgueil.net"
] | romain@dorgueil.net |
cb3bd393e1104577a12840539ab0090c429931fb | b7fab13642988c0e6535fb75ef6cb3548671d338 | /tools/ydk-py-master/openconfig/ydk/models/openconfig/openconfig_if_aggregate.py | 8c935440617aa8f46ab3a52eda8c915414b282f9 | [
"Apache-2.0"
] | permissive | juancsosap/yangtraining | 6ad1b8cf89ecdebeef094e4238d1ee95f8eb0824 | 09d8bcc3827575a45cb8d5d27186042bf13ea451 | refs/heads/master | 2022-08-05T01:59:22.007845 | 2019-08-01T15:53:08 | 2019-08-01T15:53:08 | 200,079,665 | 0 | 1 | null | 2021-12-13T20:06:17 | 2019-08-01T15:54:15 | Python | UTF-8 | Python | false | false | 802 | py | """ openconfig_if_aggregate
Model for managing aggregated (aka bundle, LAG) interfaces.
"""
from ydk.entity_utils import get_relative_entity_path as _get_relative_entity_path
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filter... | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
2a5631b218e613b84c39d8820183eb3e40e0454d | cd9eb87e3e1b04e6f421377eff02514de05c98e2 | /learn_mxnet/Part 1 Deep Learning Fundamentals/Crash course/Linear algebra.py | 6dfcfdf772e0b4fa8910180fee072bf24ac85a84 | [] | no_license | zhaojinxi/learn_python | 45f116f9729bbf19d9bb4a574b06e0ec41f754dc | 07b4a5a231e39b6d2c28f98e99a3a8fe3cb534c4 | refs/heads/master | 2021-06-05T22:00:02.528023 | 2020-03-22T04:19:22 | 2020-03-22T04:19:22 | 129,857,802 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | import mxnet
##########################
# Instantiate two scalars
##########################
x = mxnet.nd.array([3.0])
y = mxnet.nd.array([2.0])
##########################
# Add them
##########################
print('x + y = ', x + y)
##########################
# Multiply them
##########################
print('x * y =... | [
"super-string@outlook.com"
] | super-string@outlook.com |
677d0c07768a71fee05e1fd99f6c140ec77c8658 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=93/params.py | d2ab4d0e47e73bea22ad6b39b528bbd9e634920f | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.519952',
'max_util': '2.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 93,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
422cdd3503caeafc943737036cdce11f40eb6c6b | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/sklearn/inspection/tests/test_partial_dependence.py | 14919c8b24e1ca330d7d167ee112a4164b1f1fde | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:55dc2b4f9703578a9d389b0ccb12c95bc1428d0791b99e1d08748f39ab9d2c58
size 28053
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
bf1b7dff3e7f960ff0363df9ad31b58cd83820cc | 70263abbb3c7efabf4039f5861e4d417926c13af | /nova/nova/cells/opts.py | 118aef6e3cc52d14cc4de4d73852ec2e45871401 | [
"Apache-2.0"
] | permissive | bopopescu/keystone_hierarchical_projects | 9b272be1e3069a8ad1875103a1b7231257c90d9c | bf5cbb2e1c58dae17e77c2ec32ed171ec3104725 | refs/heads/master | 2022-11-21T04:33:35.089778 | 2014-02-24T19:23:47 | 2014-02-24T19:23:47 | 282,174,859 | 0 | 0 | null | 2020-07-24T09:12:32 | 2020-07-24T09:12:31 | null | UTF-8 | Python | false | false | 2,484 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 Rackspace Hosting
#
# 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... | [
"tellesnobrega@gmail.com"
] | tellesnobrega@gmail.com |
25cd09cd5db8b0ed173f5318df8f0cac46989d0a | 92e3840c3b799a8dffffa2aa5fc3ee9c4c3e3bea | /src/apps/video_browser_category/urls.py | 7eca86f913a78b67d6835d039e7ef33e9c7bd20d | [] | no_license | ZouJoshua/nlp_server | a5c1de32b1fcce769fd70af71425897f0dd03abf | ef53a3dc5856aff5e6ba8ad449f0b21962acbd80 | refs/heads/master | 2022-12-05T14:51:45.816542 | 2019-09-19T10:32:54 | 2019-09-19T10:32:54 | 173,694,625 | 0 | 0 | null | 2022-11-21T21:38:00 | 2019-03-04T07:24:12 | Python | UTF-8 | Python | false | false | 362 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author : Joshua
@Time : 2019/1/29 14:44
@File : urls.py
@Desc :
"""
from django.urls import path
from .views import index_view
from .views import Category
app_name = '[video_browser_category]'
urlpatterns = [
path('', index_view, name='index_url'),
... | [
"joshua_zou@163.com"
] | joshua_zou@163.com |
7f0a83f50e5545508798680fbe1a0e71542f38cc | 8654435d89790e32f8e4c336e91f23250da0acb0 | /bullet3/examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizer_base.py | 9c6315a94bd35e2e7c599eebeb9f33b0000dd081 | [
"Zlib"
] | permissive | takamtd/deepmimic | 226ca68860e5ef206f50d77893dd19af7ac40e46 | b0820fb96ee76b9219bce429fd9b63de103ba40a | refs/heads/main | 2023-05-09T16:48:16.554243 | 2021-06-07T05:04:47 | 2021-06-07T05:04:47 | 373,762,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | """Abstract base class for environment randomizer."""
import abc
class EnvRandomizerBase(object):
"""Abstract base class for environment randomizer.
Randomizes physical parameters of the objects in the simulation and adds
perturbations to the stepping of the simulation.
"""
__metaclass__ = ab... | [
"m.tym29101998@gmail.com"
] | m.tym29101998@gmail.com |
a1e7037a8e0c142c11c188213fb32ef4cc201dba | 8d6232f3323fbb0bee65114fa89b9da299ac83eb | /curation/main.py | 1b7414aecfb25819769039da208d9e68e09e5805 | [
"MIT"
] | permissive | bit-lsi/MEN2018 | aad3dca94ca5c14a52062dabb606339e2857a7ca | d64222c4db30f8317ae77d3e71a1c5c4015f0fe3 | refs/heads/master | 2020-04-10T19:25:10.769317 | 2019-02-23T08:00:01 | 2019-02-23T08:00:13 | 161,234,486 | 1 | 1 | MIT | 2019-02-21T13:35:56 | 2018-12-10T20:47:45 | Jupyter Notebook | UTF-8 | Python | false | false | 353 | py | # -*- coding: utf-8 -*-
"""Run this script to generate all summaries.
Run with ``python main.py compile -r``.
"""
import os
from bel_enrichment import BELSheetsRepository
HERE = os.path.abspath(os.path.dirname(__file__))
repo = BELSheetsRepository(directory=HERE, sheet_suffix='.xls')
main = repo.build_cli()
if __... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
bc5815a7e298d276b0f882307d02d22e53593796 | d9d6250eb862e4b4cace91f5d7ab82bc70ea689c | /src/service/models.py | c276e1357df4208e1c15973eb57206f717520c0a | [] | no_license | belal-bh/CLIC_PUST | f6ae867115899733722d356b1f27a1bc78eee89f | 59c251e621ac2f6460bd4faa31aad5e569a060c2 | refs/heads/master | 2022-04-08T13:05:06.795597 | 2020-03-15T10:12:45 | 2020-03-15T10:12:45 | 212,201,928 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | # service.models.py
from django.db import models
from django.conf import settings
import uuid
from account.helpers import UploadTo
class Request(models.Model):
title = models.CharField(max_length=255)
content = models.TextField()
image = models.ImageField(
upload_to=UploadTo('image', plus_id=True... | [
"bh.pro.pust@gmail.com"
] | bh.pro.pust@gmail.com |
027820a44b3637f683826fcd4be10265359c28b8 | 82a48cb6babf23714b420b3eba0b90afc2e27309 | /code/archivo/google_forms_web/temboo/Library/Google/Sheets/BatchUpdateValues.py | a3ad45245c9f695bd8895527a30abdc33a135a0d | [] | no_license | decolector/intermedia-redes | 6cc3ab3a8da53c0215325dac03f6d551b1ed52a7 | c79b214f04fe9990274fb4da412403185a09c2d6 | refs/heads/master | 2020-05-22T04:02:33.692169 | 2017-11-28T12:32:30 | 2017-11-28T12:32:30 | 29,908,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,704 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# BatchUpdateValues
# Updates values in one or more ranges of a spreadsheet.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
#... | [
"cmart@decolector.net"
] | cmart@decolector.net |
16ceb79e6900833286c591c46ac0b39028186ee4 | d295b807fde04987aac63d337a415f93b705b8ad | /hw1/hw1b.py | b49d91ba9bb85058d397bec1a6ccba2c26551fde | [] | no_license | csayres/astro507 | 7f9933c7164e9159320cb1004e25e8bc2ea35af2 | 7b22de436a76eba3376e7c78834148e734402a74 | refs/heads/master | 2020-12-15T19:19:42.919626 | 2020-03-05T08:20:50 | 2020-03-05T08:20:50 | 235,226,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | from cParticle import Box
import numpy
# numpy.random.seed(7)
from shapely.geometry import Point
from descartes import PolygonPatch
from multiprocessing import Pool, cpu_count
import matplotlib.pyplot as plt
from subprocess import Popen
import glob
import os
width = 100*3
height = 100*3
radius = 2
mass = 1
nParticles... | [
"csayres@uw.edu"
] | csayres@uw.edu |
10ef2e644e630f99e9dad647e92007a69b5f3b95 | e6e7883106f86d8da4234b6632b6050da2911b12 | /servicelayer/__init__.py | befc32f958adede58a8811459ef83403d5ddefbd | [
"MIT"
] | permissive | nashtash/servicelayer | 6db75c5b16ab71f05b57427d4638c9dd0ae5784c | 1455bc305302ee184695af006477f9812ff39910 | refs/heads/master | 2020-12-15T16:57:15.196191 | 2020-01-14T16:41:41 | 2020-01-14T16:41:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import logging
__version__ = '1.9.6'
logging.getLogger('boto3').setLevel(logging.WARNING)
logging.getLogger('botocore').setLevel(logging.WARNING)
| [
"friedrich@pudo.org"
] | friedrich@pudo.org |
86725e92b96f730bffb9a193fdd24dadde5e83da | ef15c25c72f4ea358645b4ac99469f1f8205ffe1 | /1-50/exam12.py | 90f2ba6bf0610b3022ed447d7ec24e60d04ddf47 | [] | no_license | FDlucifer/python300-arithmetic | 66d93fa6847f2cfcf0bdfeff27ff78eb6c094bdb | e237f49a72b52237476d6dcd69834e944d68bfaf | refs/heads/main | 2023-06-01T15:35:07.760008 | 2021-06-20T11:12:16 | 2021-06-20T11:12:16 | 364,016,194 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | # 给定一个正整数n,如果n为偶数,将n替换为n/2,如果n为奇数,将n替换为n+1或n-1,那么将n转换为1,最少替换次数为多少?
# 采用utf-8编码格式
# 参数n是一个正整数
# 返回值是最少的替换次数
# 直接使用DFS算法
# 类似于因式分解
class Solution:
def integerReplacement(self, n):
memo = {}
# if n == 1:
# return 0
self.dfs(n, memo)
print(memo[n])
return len(memo[n]) -... | [
"lucifercaonima@gmail.com"
] | lucifercaonima@gmail.com |
a849cd31ec4dcbe4e69c6d192ae8b409b5bc3bc5 | f81910ec71029697d373f28c8d641e5df8318a1f | /octavia/db/migration/alembic_migrations/versions/62816c232310_fix_migration_for_mysql_5_7.py | 869fdc9a33503287070ea97930b70bf6b97b7227 | [
"Apache-2.0"
] | permissive | yi-cloud/octavia | b8278366a87f65d21ef5cb4aab1b80f176a34b23 | b7f5cfa4c3c454925a90c24984049539228806d7 | refs/heads/master | 2023-06-18T12:17:45.925077 | 2021-07-18T03:40:52 | 2021-07-18T03:40:52 | 387,082,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | # Copyright 2016 IBM
#
# 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, soft... | [
"675046166@qq.com"
] | 675046166@qq.com |
a1ecc7cd316d47f8125ec7546c357d3be00f6c95 | 6d051f9348d547fa9e49d63f53afd7967b4f8043 | /djangobmf/currency/EUR/bmf_module.py | 441714460be6cdf42eb450a9a3ff243150601938 | [
"BSD-3-Clause"
] | permissive | caputomarcos/django-bmf | 39d7f1284ebf58e12e914f0a217368f8a664ef6b | 0d07a7d3f6a3ecfaca6c9376e764add1715cfd33 | refs/heads/develop | 2022-02-09T08:23:52.983948 | 2015-11-16T01:48:22 | 2015-11-16T01:48:22 | 46,672,438 | 0 | 0 | NOASSERTION | 2022-02-02T10:46:15 | 2015-11-22T17:57:11 | Python | UTF-8 | Python | false | false | 337 | py | #!/usr/bin/python
# ex:set fileencoding=utf-8:
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from djangobmf.currency import BaseCurrency
from djangobmf.sites import site
class EUR(BaseCurrency):
iso = "EUR"
symbol = _("€")
name = _("Euro")
site.register... | [
"sebastian@elmnt.de"
] | sebastian@elmnt.de |
ff1eaf7dc3d616b162d5e957124644dbc8f2cbf4 | cac4e677185984c580c8326f6eb79840e1e7ba3a | /domain_generation.py | 24449c94c0ba6eef9adf48c5c069d614e9ff0386 | [
"MIT"
] | permissive | MiroK/peristalsis | 7517a0ca572f0cc7025f9b34146544514edb1883 | 99d70edf3c5282a4d4f345eb477e67b689f7d02c | refs/heads/master | 2023-01-31T01:41:24.212706 | 2020-12-09T16:14:08 | 2020-12-09T16:14:08 | 106,447,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,479 | py | import subprocess, os, shutil
from dolfin import Mesh, MeshFunction
def gmsh_closed_polygon(points, line_tags=None, size=1.):
'''
Closed polygon defined by seguence of points (x, y, s) where
s*size will be the characteristic size. Line tags is an array giving
each line on the boundary a value.
'''... | [
"miroslav.kuchta@gmail.com"
] | miroslav.kuchta@gmail.com |
b1cb20b1f49157271fa62cc356cca0773485660f | 853c6a09af16fd4dd8a53efa8bde631e63315b59 | /This is a coding test with python/fibo.py | b3991095252f99c8628a530c062a2cca17005e77 | [] | no_license | Areum0921/Abox | 92840897b53e9bbab35c0e0aae5a017ab19a0500 | f4739c0c0835054afeca82484769e71fb8de47c8 | refs/heads/master | 2021-12-13T11:16:33.583366 | 2021-10-10T08:09:50 | 2021-10-10T08:09:50 | 176,221,995 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # top down
import time
def fibotd(a):
if a==1 or a==2:
return 1
return fibotd(a-1)+fibotd(a-2)
# bottom up
def fibobu(a):
f=[1,1]
for i in range(2,a):
f.append(f[i-2]+f[i-1])
start=time.time()
fibotd(40)
print(time.time()-start)
start=time.time()
fibobu(40)
print(time.time()-star... | [
"a90907@gmail.com"
] | a90907@gmail.com |
251c0e778e48b2f7dd52a62dc4546c1570d29c0d | 99dcff91ecbce77cca80d1e94305c1faa90cdf09 | /class_02/for_3.py | c9a3f83a1800cc7b6d682d9f113fc1e6c1f906c1 | [] | no_license | fabiorvilches/python-520 | 67660f5997425fbc9ac07ed05ebedd454a5fd259 | d7b1b0e83ba29a180431934ffa911a1f559bdf88 | refs/heads/master | 2021-01-06T05:17:12.757508 | 2020-02-19T01:13:15 | 2020-02-19T01:13:15 | 241,220,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | lista = [ 47, 80, 50, 69, 41, 50, 5, 14, 14, 88,]
lista_secundaria = []
soma = 0
for element in lista:
if element % 2 == 1:
lista_secundaria = lista_secundaria + [ element * 3 ]
else:
lista_secundaria = lista_secundaria + [element * 2]
print(lista_secundaria)
print(lis... | [
"iaferro@gmail.com"
] | iaferro@gmail.com |
40eda6e725cdba5fd56366c1cb3b5606d8fedcb7 | 38a4d5ce19215d2035dd312b322eda1b56d7dc3e | /src/dc_discriminator_cifar.py | 453ef2dc69e5da756a37da9490f1adf0179080a9 | [] | no_license | MostafaDehghani/ToMGAN | 81b0f70a0867c12227c3f35d484bdfa7ab849675 | 27e0cfd933c8d3cac90bf1f3917da594c0387072 | refs/heads/master | 2021-09-17T05:09:22.869510 | 2018-06-28T08:52:40 | 2018-06-28T08:52:40 | 110,971,077 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | import tensorflow as tf
class Discriminator(object):
def __init__(self, hps, scope='discriminator', depths=[64, 128, 256, 512],channels=1):
self._hps = hps
self._scope = scope
self.initializer = tf.contrib.layers.xavier_initializer()
self.depths = [channels] + depths
self._buid_discriminator_gra... | [
"samiraabnar@gmail.com"
] | samiraabnar@gmail.com |
0f9e0a38cc2c41c01c70d30d19e6bf2b78a2f619 | a793e12a74a316a98a69064ffd4f9d3061fdd641 | /corus/sources/wikiner.py | edf029fa9c930724e41f564dbb27894242729559 | [
"MIT"
] | permissive | Sandy4321/corus | bd5fc25f19a7799f3b94dd406148f14c0cba0853 | ca883c11241551c3f8c26f393b80fba1394b6dfb | refs/heads/master | 2021-02-09T01:36:53.750706 | 2020-01-15T05:06:50 | 2020-01-15T05:06:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # coding: utf8
from corus.record import Record
from corus.io import load_bz2_lines
from corus.bio import io_spans
from corus.token import find_tokens
class WikinerMarkup(Record):
__attributes__ = ['text', 'spans']
def __init__(self, text, spans):
self.text = text
self.spans = spans
def par... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
7ecaa81e4ef092a52c57fa96d59ea772260c0c2c | cc3b669c271ec84e35a93a82ffbaa68c9f8c1cf8 | /build/lib/finapi/__init__.py | 21f4c17ae6c48b18b0a97a4fa1d8ea75ad6cf224 | [] | no_license | readevalprint/finapi | 016ecc08b34b9ce5ffe0b4425ba234c3acfd54d9 | 733d0b78639942d6d158e9cee07b57d6b3a56e43 | refs/heads/master | 2020-04-28T21:49:03.530658 | 2019-03-22T13:13:14 | 2019-03-22T13:13:14 | 175,595,835 | 0 | 0 | null | 2019-03-14T10:05:42 | 2019-03-14T10:05:39 | null | UTF-8 | Python | false | false | 7,669 | py | # coding: utf-8
# flake8: noqa
"""
finAPI RESTful Services
finAPI RESTful Services # noqa: E501
OpenAPI spec version: v1.64.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import apis into sdk package
from finapi.api.accounts_a... | [
"misagh.shakeri@gmail.com"
] | misagh.shakeri@gmail.com |
5b427bfa90546ffabc96535a03ed35e11b2ab963 | 59956474c12d6e0d051f152fa8ad642ae7fe7fb4 | /pysaliency/metrics.py | cb5a20359ca3f63dde038b85fac09a38540b39e1 | [
"MIT"
] | permissive | Playfloor/pysaliency | fbfd7169e7cabfa81995eb3cc13c638341fb72dd | 2b243a26086669bf089391a8cc9cd5d80a718188 | refs/heads/master | 2023-08-25T17:58:41.792836 | 2021-10-20T11:17:36 | 2021-10-20T11:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | from __future__ import absolute_import, print_function, division, unicode_literals
import numpy as np
def normalize_saliency_map(saliency_map, cdf, cdf_bins):
""" Normalize saliency to make saliency values distributed according to a given CDF
"""
smap = saliency_map.copy()
shape = smap.shape
sma... | [
"matthias@matthias-k.org"
] | matthias@matthias-k.org |
720024b6d76a6e207799646809cfaae32d13a3af | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2100/49405/273087.py | c1cc9fe01f7f4aab9391b83008c1403e53927e2a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | def count(n, m):
s = 0
t = m
while n >= t:
s += n // t
t *= m
return s
n = int(input())
print(min(count(n, 2), count(n, 5))) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
6fabaf9b65341f8f161e2116527c120b89a2d83c | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc032/A/4921203.py | 1c55f2810981f31bc5f131f06c79117acec10386 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | def gcd(a: int, b: int)->int:
if a < b:
a, b = b, a
return a if b == 0 else gcd(b, a % b)
def lcm(a: int, b: int)->int:
return a * b // gcd(a, b)
def like(a: int, b: int, n: int)->int:
c = lcm(a, b)
d = c
while d < n:
d += c
return d
if __name__ == "__... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
0757f23d7f0ad873ff39c1c35918ee0baa4b4ebb | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /kfXz49avvohsYSxoe_24.py | 8415b401fc61f0a59254cc0ae74c160176eb5563 | [] | 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 | 307 | py |
def binary_search(lst, left, right, elem):
boolean_condition = True
while boolean_condition:
middle = (left + right) // 2
if left > right:
return False
elif lst[middle] < elem:
left = middle + 1
elif lst[middle] > elem:
right = middle - 1
else:
return True
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
690726a7829ed6d427726cd92f9a7ea5a782caf5 | 0e1940ec6af8fb52775acb60dd18e81ee627e441 | /EmailSender/emailSender/views.py | b0de690ad96bbffac7ece16ab9767037cc22adaa | [] | no_license | santoshgawande/DjangoProject | bd50d5ff796b2ddb959413831d44e1ec5deb71bc | a93c299e60813f29beec3c7bedbabfb415e13437 | refs/heads/master | 2023-05-01T15:55:31.940899 | 2022-07-27T15:29:03 | 2022-07-27T15:29:03 | 207,622,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
sleep(duration)
return HttpResponse("Done!")
| [
"gawandesantos@gmail.com"
] | gawandesantos@gmail.com |
7d6e6e4722acb0c3c5f1996cbcda502284a2b77a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_314/ch66_2020_10_05_22_51_23_923917.py | 562edb4209c6303f6374b14664c25d0ab3d8300a | [] | 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 | 142 | py | def lista_sufixos (str):
lista=[]
i=0
while(i<len(str)):
lista.append(str[i:])
i+=1
return lista
| [
"you@example.com"
] | you@example.com |
25af2e99d56a7999ef14403071d085830a0134c0 | edcc0afdff7a7d01fa05664006d495627e9568e0 | /tests/test_zettarepl.py | f2813d822f4dfe82925efd41f05b31a4e60b54d6 | [] | no_license | b-a-t/zettarepl | 871538cc83e9e0ec3cf0c7f4a66bba21559127e4 | 6596fb85f31919edf8eadeee47552d14f3d62db3 | refs/heads/master | 2020-04-01T23:22:27.097027 | 2018-10-16T18:45:10 | 2018-10-16T18:45:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | # -*- coding=utf-8 -*-
from datetime import datetime
from unittest.mock import ANY, call, Mock, patch
from zettarepl.replication.task.task import ReplicationTask
from zettarepl.snapshot.snapshot import Snapshot
from zettarepl.zettarepl import Zettarepl
def test__run_periodic_snapshot_tasks__alphabetical():
with... | [
"themylogin@gmail.com"
] | themylogin@gmail.com |
136303aa557066c52e7b67e918fe8b6351fb2a16 | 6375b9a795966ce18c426b95ea578f477acb9509 | /abc/abc153/f-2.py | a8c297b45bc430a37133ec654e502f78fe8f7b50 | [] | no_license | katryo/AtCoder | d67cb44025d456429f87f15c0e0e52b4e45a56df | 3df6ca302a8328f7f018b9a59e5b065323e47dbc | refs/heads/master | 2021-02-11T17:52:21.239775 | 2020-03-28T14:38:23 | 2020-03-28T14:38:23 | 244,516,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | import sys
import math
def main():
n_d_a = sys.stdin.readline().strip().split(' ')
n, d, a = [int(s) for s in n_d_a]
xh = [[]] * n
for i in range(n):
x, h = [int(s) for s in sys.stdin.readline().strip().split(' ')]
xh[i] = [x, h]
# n = 3
# d = 1
# a = 1
# xh = [[1, 4], ... | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
cddada81b2376a6e10a81bdd8573a833b3847fcc | 3d4cd68400eb5429282b23bf6a1b7226851b731a | /spddo/todo/server.py | 476884a811d5c948041f3432fbb77d3b6fa6a6d8 | [] | no_license | blueshed/spddo-chat | 2dee16478e9a30ed0196d76d450e0772147aa208 | d7ba492162ba95c0d2b8ed78370366eb96e39c3a | refs/heads/master | 2021-01-17T11:29:48.959086 | 2016-05-21T18:33:08 | 2016-05-21T18:33:08 | 43,005,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,910 | py | from pkg_resources import resource_filename # @UnresolvedImport
from tornado.options import options
import tornado.ioloop
import tornado.web
import logging
from blueshed.micro.orm import db_connection
from blueshed.micro.utils.executor import pool_init_processes
from blueshed.micro.utils.service import Service
from ... | [
"pete@blueshed.co.uk"
] | pete@blueshed.co.uk |
a074c3628c1b18e3a953a0cb8d4aa95d2ef57d7a | 0c995b492f4c573b3b828e135c985b315004267a | /part2/cat_example.py | 8d158d830445f73242d3a42b3347cbbce457d208 | [] | no_license | x5g/proto-test | 8c556277a9aad89bc7ed1068cdbd00807f7fc014 | 0d23e27572f051d64a698552b4f099ae2150e2cd | refs/heads/master | 2022-09-25T23:31:27.200693 | 2020-05-29T12:21:12 | 2020-05-29T12:21:12 | 267,850,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import cat_pb2
PB_FILE_PATH = 'cat.pb'
JSON_FILE_PATH = 'cat.json'
newCat = cat_pb2.Cat()
dave = cat_pb2.Cat.Parent()
dave.name = 'Dave'
dave.email = 'nope@google.com'
newCat.name = 'Sonny'
newCat.age = 10
newCat.parents.append(dave)
# 以二进制形式保存
f = open(PB_FILE_PATH, "wb")
f.write(newCat.SerializeToString())
f.clos... | [
"1098766468@qq.com"
] | 1098766468@qq.com |
47bb83efc58dd7878ec3fc13f045f9330f0f949e | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Champlain/Location.py | 762d49342dc635a06f3a741a3d3c401a6b35c97c | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 5,180 | py | # encoding: utf-8
# module gi.repository.Champlain
# from /usr/lib64/girepository-1.0/Champlain-0.12.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attribute... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
86ef815de6b0d846bdac3a61ea2afb6504aed125 | 7639b91f8f1319a32e57916745b8fd31d00df682 | /HackerRank/Python/Strings/mutations.py | 13a16cfbcad37ee2de9b98c9c74121b487e78230 | [] | no_license | kartsridhar/Problem-Solving | 4a391a6ffe3d672d223949491e3cda20f776ef16 | 09f4018dc47e5175b03718942a41553527a0463a | refs/heads/master | 2021-07-08T11:09:55.694614 | 2020-10-15T16:15:13 | 2020-10-15T16:15:13 | 200,101,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | def mutate_string(string, position, character):
string = list(string)
string[position] = character
string = ''.join(string)
return string
| [
"contactkarthik34@gmail.com"
] | contactkarthik34@gmail.com |
1148b79d13964a57158724a8ae1ae4aec1e65179 | e43ff8f429a6938a4f16edc4b2c94976acbff157 | /ABC/ABC 155/b.py | eb87d3865648128f27c123cb6a7d040b518c075e | [] | no_license | Soule50431/AtCoder | 4fcd6ab6b771d55c90dc62aedd75eb81fd067466 | 118ac5d03630ce143fb50153402eee38e988ae0c | refs/heads/master | 2023-06-18T13:07:13.843361 | 2021-07-14T01:56:20 | 2021-07-14T01:56:20 | 357,827,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | n = int(input())
a = list(map(int, input().split()))
for aa in a:
if aa % 2 == 0:
if not (aa % 3 == 0 or aa % 5 == 0):
print("DENIED")
exit()
print("APPROVED ")
| [
"h.ekcero.el6no11@outlook.jp"
] | h.ekcero.el6no11@outlook.jp |
82640eb98da610c59f3f2661ef4b9564f0331b6a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03240/s048835635.py | 13f5bfca94ace86a4a4ded1bb441d5e88bae59df | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import sys
input = sys.stdin.readline
def main():
N = int(input())
xyh = [None] * N
for i in range(N):
xyh[i] = tuple(map(int, input().split()))
for i in range(N):
if xyh[i][2] > 0:
Bx, By, Bh = xyh[i]
break
for Cx in range(0, 101):
for Cy in rang... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
de5adba975e7e88fcb9397bead4cf6c7a57084ce | 7efac7b65e8db0095f6bf7a5b5674111cce6f913 | /school/urls.py | de93a2df1a66a7aba5ca527f7bce538777ebb49a | [] | no_license | dipesh779/school-management-system-backend-DRF | bb5b59b85ff8e2b45c610e79b7d60a00a601d20e | 9dbdef598fb7f7f8ab754a803c4a7fdcaa31128e | refs/heads/dev | 2022-11-24T14:50:55.245355 | 2020-03-22T06:51:55 | 2020-03-22T06:51:55 | 248,917,363 | 3 | 0 | null | 2022-11-22T05:25:12 | 2020-03-21T06:06:18 | null | UTF-8 | Python | false | false | 956 | py | from django.urls import path
from .views import SchoolCreateView, SchoolDetailView, TeacherCreateView, \
TeacherDetailView, LevelCreateView, LevelDetailView, StudentCreateView, \
StudentDetailView, SubjectCreateView, SubjectDetailView, StaffCreateView, StaffDetailView
urlpatterns = [
path('school', SchoolC... | [
"dipesh@perplexsolutions.com"
] | dipesh@perplexsolutions.com |
27ae87034ef8276a70d5a54f0f6bd9dd74f7b32c | ebc0294ade11d4e2dcb4eca1718daee8c4c1651e | /src/silva/app/forest/testing.py | 49d3778306309fbdafdf55b876118cd3e90af3cd | [] | no_license | silvacms/silva.app.forest | 30ac7e73cb2929e5c7ea7be6195538ac51275691 | a3691f68b357a1b26c773950ded1f5b74856ffe6 | refs/heads/master | 2020-04-06T06:51:38.439755 | 2013-12-11T13:42:11 | 2013-12-11T13:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2013 Infrae. All rights reserved.
# See also LICENSE.txt
from Products.Silva.testing import SilvaLayer
import transaction
import silva.app.forest
class SilvaAppForestLayer(SilvaLayer):
default_packages = SilvaLayer.default_packages + [
'silva.app.forest',
... | [
"thefunny@gmail.com"
] | thefunny@gmail.com |
6b3a694af6a7d4ea1bca5b13f8a054678e072a14 | fa6e1299ef52ca2d4a13b3788d2a4d0540728f81 | /sample-apps/endoscopy/lib/scoring/cvat.py | 326d389c944103b10ba04e894d2feb816ee2a467 | [
"Apache-2.0"
] | permissive | Project-MONAI/MONAILabel | c3abd164255a50279fc5aa6a87f4336fff4d6833 | c90f42c0730554e3a05af93645ae84ccdcb5e14b | refs/heads/main | 2023-09-01T21:44:42.465238 | 2023-08-31T17:17:08 | 2023-08-31T17:17:08 | 351,826,770 | 448 | 167 | Apache-2.0 | 2023-09-14T12:06:28 | 2021-03-26T15:25:10 | Python | UTF-8 | Python | false | false | 4,565 | py | # Copyright (c) MONAI Consortium
# 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, so... | [
"noreply@github.com"
] | Project-MONAI.noreply@github.com |
b8fce3abed576295ae0c969e3538f7e390336465 | fefb1e9b0b736da4e49d7754f8d1dbaf37f2fa6a | /.history/9_3_20210214203634.py | 763813d05e7010710ae7066f94ee63b8c05f416d | [] | no_license | wh-debug/python | 5a78a2227874ebc400d075197de0adab9f55d187 | 1467eeda670f170e6e2d7c0a0550f713f1ee9d75 | refs/heads/master | 2023-03-12T22:08:12.608882 | 2021-02-17T09:49:52 | 2021-02-17T09:49:52 | 334,032,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | '''
Author: Daylight
Date: 2021-02-14 20:29:23
LastEditTime: 2021-02-14 20:36:34
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \python\9_3.py
'''
'''子类继承父类'''
import car
class ElectriCar(Car):
def __init__(self, make, model, year):
super().__init__(make, model, year)
my_... | [
"1813763848@qq.com"
] | 1813763848@qq.com |
b4b4f09ec2cb7a1251782e863c9b9acd71f2c967 | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /next_greater_element_iv.py | 683d4525971d81a9f79078a80584a88d4c3ba1d0 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 1,528 | py | '''
You are given a 0-indexed array of non-negative integers nums. For each integer in nums, you must find its respective second greater integer.
The second greater integer of nums[i] is nums[j] such that:
j > i
nums[j] > nums[i]
There exists exactly one index k such that nums[k] > nums[i] and i < k < j.
If there is ... | [
"noreply@github.com"
] | erjan.noreply@github.com |
9e7959dde9dc463715e599c9de7ebfe50ad6c519 | ec0b2fa169d02f4b4978d4be80fdf304823c49b6 | /se3_transformer_pytorch/utils.py | fd5b35a4486925a6cf1f379280d55a6d96d69a99 | [
"MIT"
] | permissive | SuperXiang/se3-transformer-pytorch | c28c6a6045329957f5c4c59a8621b50064454afb | d0db110533c0cd29a243e05e27dbef083ff232f4 | refs/heads/main | 2023-03-18T07:29:34.786028 | 2021-03-12T05:54:04 | 2021-03-12T05:54:04 | 347,819,407 | 1 | 0 | MIT | 2021-03-15T03:03:22 | 2021-03-15T03:03:22 | null | UTF-8 | Python | false | false | 4,736 | py | import os
import sys
import time
import pickle
import gzip
import torch
import contextlib
from functools import wraps, lru_cache
from filelock import FileLock
# helper functions
def exists(val):
return val is not None
def default(val, d):
return val if exists(val) else d
def uniq(arr):
return list({el: ... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
615f2c4500207cab9323649b1b5ca6d566023969 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5751500831719424_1/Python/eskatrem/sol.py | 249ad39300d0c92bcedfc5cde1f83b967903823a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | import sys
feglaWon = "Fegla Won"
def distinct(lst):
if type(lst) is not list:
return lst
return list(set(lst))
def minForm(string):
n = len(string)
if n <= 1:
return string
c = string[0]
res = c
count = 0
for i in range(1,n):
tmp = string[i]
if tmp != ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
8c2884491632f2f38885cdffa8419c1a5c221fac | 907b3bbd44c95be1542a36feaadb6a71b724579f | /files/usr/tmp/easy_install-aub3rd6_/Sphinx-1.5b1/tests/roots/test-maxlistdepth/conf.py | 5a43b67bfb27f0a86ee7c281399459225b1fe965 | [
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | vo0doO/com.termux | 2d8f536c1a5dbd7a091be0baf181e51f235fb941 | c97dd7b906e5ef3ec157581fd0bcadd3e3fc220e | refs/heads/master | 2020-12-24T09:40:30.612130 | 2016-11-21T07:47:25 | 2016-11-21T07:47:25 | 73,282,539 | 2 | 2 | null | 2020-07-24T21:33:03 | 2016-11-09T12:33:01 | Python | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
master_doc = 'index'
html_theme = 'classic'
exclude_patterns = ['_build']
latex_documents = [
('index', 'SphinxTests.tex', 'Testing maxlistdepth=10',
'Georg Brandl', 'howto'),
]
latex_elements = {
'maxlistdepth': '10',
}
| [
"kirsanov.bvt@gmail.com"
] | kirsanov.bvt@gmail.com |
6347fb0820b9b77898ae4d6e032cfb97b2d321d2 | 36ff0f28aeb47c03d8e22f69057c12f830e917e8 | /clients/models.py | 17ae30e08fd2dcd813ceff47501f8647a6747f91 | [] | no_license | michael-basweti/duke | 673721540fa1b260508f03518b0043e8e1fc3f14 | 5eae51ceac89e77c6ab712e6311fef9f15fb51ad | refs/heads/master | 2022-12-06T02:53:04.494299 | 2019-07-30T10:47:06 | 2019-07-30T10:47:06 | 195,955,279 | 0 | 0 | null | 2022-11-22T04:09:15 | 2019-07-09T07:25:08 | CSS | UTF-8 | Python | false | false | 323 | py | from django.db import models
from datetime import datetime
class HappyClient(models.Model):
company = models.CharField(max_length=100)
logo = models.ImageField(upload_to='photos/%Y/%m/%d/')
date_added = models.DateTimeField(default=datetime.now, blank=True)
def __str__(self):
return self.compa... | [
"baswetima@gmail.com"
] | baswetima@gmail.com |
b50d1c579ec1c4a082af5635991a0459cf7206bf | 9b6dd9a5c5af8b339f3f02b5cf5916c72b2f45ca | /language/nql/nql/symbol_test.py | 3abae6a92df386bd1663c26a63036c5d6d7e068d | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | IngrojShrestha/language | c6d41ac39396320e72a92bc2fe5625362dddc61e | 674a3d016b1e17658e301e8d9bdfa63e3d3f5d15 | refs/heads/master | 2021-03-23T23:52:14.530645 | 2020-03-15T15:31:37 | 2020-03-15T15:31:37 | 247,494,253 | 0 | 0 | Apache-2.0 | 2020-03-15T15:28:33 | 2020-03-15T15:28:33 | null | UTF-8 | Python | false | false | 2,007 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
4954ac3f5ead241b71e2087a2d866fc9970f283f | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-framework-MapKit/PyObjCTest/test_mkdirectionsrequest.py | 135808e62de2888afc9ff8250f0c576238f04693 | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from PyObjCTools.TestSupport import TestCase, min_os_level
import objc
import MapKit
class TestMKDirectionsRequest(TestCase):
@min_os_level("10.9")
def testClasses(self):
self.assertIsInstance(MapKit.MKDirectionsRequest, objc.objc_class)
self.assertResultIsBOOL(MapKit.MKDirectionsRequest.req... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
c9be48acb917062517bb2935adbf5386f3851cf1 | f5eadb5a144819f625e53292b29880141d9eb80b | /selection/success.py | e23c8b3dac2842668c2fd68f8e1aa628b1129ed6 | [] | no_license | tjacek/dtw_feats | 9b079edb2cf86d4a6f4fa6bb9ce7774a3ef689ca | e692427b085de1e209881153d994a3a87a2b6aab | refs/heads/master | 2022-09-11T23:59:41.953079 | 2022-07-22T22:18:25 | 2022-07-22T22:18:25 | 139,345,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | import sys
sys.path.append("..")
import numpy as np
import ens
def success_selection(common_path,binary_path,clf="LR"):
votes=ens.make_votes(common_path,binary_path,clf="LR")
n_cats=len(votes)
acc_matrix=[[ result_i.cat_acc(cat_i)
for result_i in votes.results]
for cat_i in range(n_cats)]... | [
"tjacek@agh.edu.pl"
] | tjacek@agh.edu.pl |
0c278f6470e23ff232ab003a598dcf9ede7e15d0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_sveltest.py | d5eae850b192ddbb3c967ecd7d1d818fd0b46e6a | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py |
from xai.brain.wordbase.adjectives._svelte import _SVELTE
#calss header
class _SVELTEST(_SVELTE, ):
def __init__(self,):
_SVELTE.__init__(self)
self.name = "SVELTEST"
self.specie = 'adjectives'
self.basic = "svelte"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bd066be3aef271772a02cf8e6a646542251f8766 | f662fbb215fa3dd4bc1879e3efc73918a8b37a56 | /bin/pylama/__init__.py | aa1cb3c5892684bcd945ee5ece809cc62c1c4ab7 | [
"MIT"
] | permissive | keplersj/linter-pylama | a08e59e0cf7ea675738f7d01ccd84548cef95719 | 3e8e3ffd34195ad705b7a4bb6b12b3af44fdf3bc | refs/heads/master | 2020-03-10T20:37:55.378654 | 2017-11-24T23:28:47 | 2017-11-24T23:28:47 | 129,574,675 | 0 | 0 | MIT | 2018-04-15T03:46:46 | 2018-04-15T03:46:42 | null | UTF-8 | Python | false | false | 236 | py | """Code audit tool for python.
:copyright: 2013 by Kirill Klenov.
:license: BSD, see LICENSE for more details.
"""
__version__ = "7.4.1"
__project__ = "pylama"
__author__ = "Kirill Klenov <horneds@gmail.com>"
__license__ = "GNU LGPL"
| [
"serg.baburin@gmail.com"
] | serg.baburin@gmail.com |
377dfd91195f588359e08d22dd0b1f53ac14bdb8 | 1bef94923ef98ee8c4c745477edd5031fcc43eed | /Server/app/docs/careworker/send_form.py | c9a150e573efb7679c2722a0448825ab146f1d9f | [
"MIT"
] | permissive | Moms-Day/Moms-Day_Backend | 3bbc719ebcac0eec9b7a6c42ebcf9dd5a8f99e42 | 0359f91cf04dfdb653deeeb7eb2ba0676e9a3feb | refs/heads/master | 2021-07-16T20:17:55.814611 | 2018-11-17T13:16:30 | 2018-11-17T13:16:30 | 134,725,800 | 4 | 1 | null | 2018-06-04T14:20:25 | 2018-05-24T14:19:11 | null | UTF-8 | Python | false | false | 6,526 | py | CARE_SEND_MEAL_FORM_POST = {
'tags': ['[CareWorker] 폼 작성'],
'description': '식사 관련 폼을 작성',
'parameters': [
{
'name': 'Authorization',
'description': 'JWT Token',
'in': 'header',
'type': 'str',
'required': True
},
{
... | [
"jerion7474@gmail.com"
] | jerion7474@gmail.com |
0cc7b482e6cc6f1d0f13205c7cf0f4f481b6829a | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/rib/db.py | a021221e5ec61ec00973ef79de2d27df18438051 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,674 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
81fb5c77a32d221d78c500bdcffed4e9d4ae8e8f | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/tests/integration/kms/test_kms.py | 10238a037d2a3e93ce9631b3b807384021074768 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 1,669 | py | # Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights ... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
7cf365a0ae0b7e63f7428e19dd0ed2d474f1ac18 | 2dce7cd2093e71c74ce4d96a6f01c059410d960e | /fliavisitors/settings.py | 8a9a7d8f81f20f24824e3630fdbc4a4a54dade08 | [] | no_license | blocodenotas/fliavisitors | 648c0131e5ee3fd62efd25aac0ab22960047e2a4 | 1bb675766d0f66c47ac6bdaf326f68ca18b761fa | refs/heads/master | 2021-01-17T21:25:03.516467 | 2012-03-14T15:14:07 | 2012-03-14T15:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | # Django settings for fliavisitors project.
import os
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
#PROXY_DOMAIN = 'localhost'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.contri... | [
"ricardo.garcia.silva@gmail.com"
] | ricardo.garcia.silva@gmail.com |
082b57d36f5f2a02c7d69e5cf7f81daccee8db3f | 48f86b8671ce1a7ee79f3bb8c1af3de30235d0ba | /WGAN-GP/main.py | 960e4a624afff9ccf996bf487ed3e9a6842c8219 | [
"MIT"
] | permissive | corenel/GAN-Zoo | c8014a59f7cc51db60aac74cb3d459fcae7cbe99 | fd4498da35ace5a3d1696ff4fbec3568eddbe6a1 | refs/heads/master | 2021-01-15T19:23:11.892867 | 2017-08-23T06:24:44 | 2017-08-23T06:24:44 | 99,820,274 | 10 | 7 | null | null | null | null | UTF-8 | Python | false | false | 5,486 | py | #!/usr/bin/env python3
"""Main code for WGAN-GP."""
import os
import torch
import torch.nn as nn
import torch.optim as optim
import torchvision
import params
from data_loader import data_loader, get_data_iterator
from models import get_models
from utils import (calc_gradient_penalty, init_random_seed, make_variable,... | [
"xxdsox@gmail.com"
] | xxdsox@gmail.com |
973e0ea78af57eb2cfaa742b936885ae27b09c3a | 275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc | /test/test_run_operation_action_parameters.py | e4ead3af80540dac74b9c57da29cdd228617cdc8 | [] | no_license | cascadiarc/cyclos-python-client | 8029ce07174f2fe92350a92dda9a60976b2bb6c2 | a2e22a30e22944587293d51be2b8268bce808d70 | refs/heads/main | 2023-04-03T16:52:01.618444 | 2021-04-04T00:00:52 | 2021-04-04T00:00:52 | 354,419,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # coding: utf-8
"""
Cyclos 4.11.5 API
The REST API for Cyclos 4.11.5 # noqa: E501
OpenAPI spec version: 4.11.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.run_ope... | [
"dan@leftcoastfs.com"
] | dan@leftcoastfs.com |
4e032fd343edbbfe1510f3e11083d2e2c7abe507 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_148/ch170_2020_06_29_20_55_08_059925.py | 4dd5f349bda2b02b6352998ddefc287909f5e1a4 | [] | 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 | 225 | py | def apaga_repetidos(frase):
lista = []
palavra = ''
for i in frase:
if not i in lista:
lista.append(i)
palavra += i
else:
palavra += '*'
return palavra
| [
"you@example.com"
] | you@example.com |
c0769756b2709c810dc70f8ea2df70f5105dd511 | 7d90d2ce27c6ee0af74391b09909edbd45fdc2f0 | /InstrumentDrivers/PowerMeter/PowerMeter.py | 6fd5453a74fde5f1feac9659787ec597830d837f | [] | no_license | gaoxingyu-hub/54testframework-master-e284 | d7ea0d4a715b65c8652430e963a86b9522a7237a | 57dd2197e7d91b8ad8fb2bd0e3503f10afa08544 | refs/heads/master | 2023-04-30T05:50:41.542402 | 2021-05-28T09:19:37 | 2021-05-28T09:19:37 | 309,922,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | # -*- coding: utf-8 -*-
'''
Created on 2016年5月23日
@author: ariza
'''
from InstrumentDrivers import PyVisaInstr
import string
class PowerMeter(PyVisaInstr.pyVisaInstr):
'''
示波器的基类,基本连接,读写操作和一般驱动基于pyvisa
'''
def __init__(self,Addr):
'''
初始化示波器,根据给定的地址进行初始化,并获得操... | [
"gaoxingyu@example.com"
] | gaoxingyu@example.com |
7c5b1efd87ccde1654a9f9e06f40060b349f7cad | 99fca8eaa3fb5e93ed4ed857b439293bc0952c79 | /Django_trial/learning_log/ll_env/Scripts/django-admin.py | f4fa0c5a88cb530d096fa0869ee45d6f9623adbb | [] | no_license | Ebyy/python_projects | 7adb377f4e8eec94613e4e348f02c2ded306efac | 0cacfab443d3eeeb274836b7be4b7205585f7758 | refs/heads/master | 2020-05-19T22:28:17.672051 | 2019-05-19T19:32:19 | 2019-05-19T19:32:19 | 185,240,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #!c:\users\home\pycharmprojects\django_trial\learning_log\ll_env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"eberechi_oo@yahoo.com"
] | eberechi_oo@yahoo.com |
05c4e64ed61e0284a10f3dac372b7bf5be6cb620 | a5632d27faeff37d9b0d9690082898df689e7606 | /paypal/payflow/app.py | ee73d8e458bf88eb685bc6ff828446df5686a610 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | dulacp/django-oscar-paypal | 113ed352160c0b316ecdd48e7ad6b78ce1b5b6f7 | 3af76e4c32857d38b282f2b000921ee00633a0b5 | refs/heads/master | 2021-05-26T21:26:18.318411 | 2012-12-04T15:46:58 | 2012-12-04T15:46:58 | 5,373,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | from django.conf.urls.defaults import patterns, url
from django.contrib.admin.views.decorators import staff_member_required
from oscar.core.application import Application
from oscar.apps.dashboard.nav import register, Node
from paypal.payflow import views
node = Node('PayPal', 'paypal-payflow-list')
register(node, 1... | [
"david.winterbottom@gmail.com"
] | david.winterbottom@gmail.com |
f90954112b8c4a65381b25a9d1467206b5f9a0c5 | 8ffa21848cfc7d1b1ac76d53fd181147dfd29953 | /api-test/py-test/Part3_Python_CookBook/test_resty.py | e684bcf230f3662a17dd18c104ae140a7bcbd9eb | [] | no_license | un-knower/data-base | 51cfefd91970073c61ccd2f5f7034ccc5d86a794 | 3274f828d326af8dbd7600530f4c0264a0bc7ba3 | refs/heads/master | 2020-04-02T16:35:05.287543 | 2018-09-24T11:34:03 | 2018-09-24T11:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Author: HuHao <huhao1@cmcm.com>
Date: '2018/8/7'
Info:
"""
import cgi,time,os,traceback
from wsgiref.simple_server import make_server
class PathDispatcher:
# 初始化处理器映射字典
def __init__(self):
self.pathmap = {}
# 分发请求
def __call__(self,environ,start_re... | [
"huhao1@cmcm.com"
] | huhao1@cmcm.com |
896431037ab410d36e684e0f5c126903b12dedf8 | 5d69884dffeb840316d200b4ad8d74a7d0ec8b61 | /e3nn/o3/_so3grid.py | ffdde380e8a03152f66781709c7b783cfc3d20c5 | [
"MIT"
] | permissive | ninarina12/e3nn | 2319d37208b15fffefa8b78661e8835d331f41cb | 754e607cad2fc4914378ccc6e3bb70b6a6be8a78 | refs/heads/main | 2023-09-05T02:14:29.944935 | 2021-11-08T09:18:37 | 2021-11-08T09:18:37 | 428,438,048 | 0 | 0 | NOASSERTION | 2021-11-15T22:16:02 | 2021-11-15T22:16:01 | null | UTF-8 | Python | false | false | 2,379 | py | import torch
from e3nn.util.jit import compile_mode
from ._wigner import wigner_D
from ._s2grid import _quadrature_weights, s2_grid
def flat_wigner(lmax, alpha, beta, gamma):
return torch.cat([(2 * l + 1)**0.5 * wigner_D(l, alpha, beta, gamma).flatten(-2) for l in range(lmax + 1)], dim=-1)
@compile_mode('scrip... | [
"geiger.mario@gmail.com"
] | geiger.mario@gmail.com |
1dadb8215085b1f3125b364231ca158873ee577c | 62974b03a14008f950db0c68d5962311a3401d3b | /medium/math/test_223_Rectangle_Area.py | d7520b88a3afc013c2baa9de12b10382a13a34fc | [] | no_license | wuxu1019/leetcode_sophia | 818f39e8324aaf2b588150b1f7edbc2897f64935 | 0e99f9a5226507706b3ee66fd04bae813755ef40 | refs/heads/master | 2018-10-13T13:58:29.762836 | 2018-07-24T04:20:23 | 2018-07-24T04:20:23 | 111,624,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | """
Find the total area covered by two rectilinear rectangles in a 2D plane.
Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.
Rectangle Area
Assume that the total area is never beyond the maximum possible value of int.
Credits:
Special thanks to @mithmatt for adding t... | [
"wuxu1019@hotmail.com"
] | wuxu1019@hotmail.com |
3f3f63571368ffe3b2ac3d22e67645f7b760615c | c6fa53212eb03017f9e72fad36dbf705b27cc797 | /Configuration/Geometry/python/GeometryExtended2023SHCalNoTaper4Eta_cff.py | a6fa0d058d3de2d1444fa75c34d98319422f71e8 | [] | no_license | gem-sw/cmssw | a31fc4ef2233b2157e1e7cbe9a0d9e6c2795b608 | 5893ef29c12b2718b3c1385e821170f91afb5446 | refs/heads/CMSSW_6_2_X_SLHC | 2022-04-29T04:43:51.786496 | 2015-12-16T16:09:31 | 2015-12-16T16:09:31 | 12,892,177 | 2 | 4 | null | 2018-11-22T13:40:31 | 2013-09-17T10:10:26 | C++ | UTF-8 | Python | false | false | 354 | py | import FWCore.ParameterSet.Config as cms
from Geometry.CMSCommonData.cmsExtendedGeometry2023SHCalNoTaper4EtaXML_cfi import *
from Geometry.TrackerNumberingBuilder.trackerNumberingSLHCGeometry_cfi import *
from Geometry.HcalCommonData.hcalSimNumberingInitialization_cfi import *
from Geometry.HGCalCommonData.shashlikNum... | [
"ianna.osborne@cern.ch"
] | ianna.osborne@cern.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.