blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c3e5ac9657c6a68133633a1e6cf922e32dec52c2 | 806709d56129cf9c5422b5e58be7072d21887b7d | /HW_clock/clockapp/apps.py | 688d37335d37894cee69aa8591f52c6f0c302190 | [] | no_license | merry-hyelyn/LikeLion | 6334f5cc909a090a5e264aedcd9d790436ce59cf | cbd1654abd0bfbf872c2c670c604679467f5ef8e | refs/heads/master | 2020-07-11T07:14:31.308439 | 2019-09-13T14:26:47 | 2019-09-13T14:26:47 | 204,473,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class ClockappConfig(AppConfig):
name = 'clockapp'
| [
"[email protected]"
] | |
ed9a9a16fa606dc3a0b92e7d93dbca7f3237abe1 | 7101871e7a82d202483ada3053fec155ce7824a6 | /test/functional/sapling_wallet_send.py | 39c6d0a107af083c9d58aa278ac3ef4d18f9ad78 | [
"MIT"
] | permissive | trumpcoinsupport/TrumpCoin | 633a9992e46cab00774d01e569f4611b7f6b4b54 | 098c62ea249a63ca1cc31d5f37c6209ccdf50e2a | refs/heads/master | 2023-01-11T20:22:03.469608 | 2021-12-31T10:04:39 | 2021-12-31T10:04:39 | 194,952,065 | 15 | 14 | MIT | 2023-01-08T02:49:09 | 2019-07-03T00:24:45 | C++ | UTF-8 | Python | false | false | 3,831 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Zcash developers
# Copyright (c) 2020 The TrumpCoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php .
from decimal import Decimal
from test_framework.test_framework impor... | [
"[email protected]"
] | |
d96f1e56f4b8aa0ac94be4330d3f7524cc14c3a7 | ffd19240effa4f50b8469432d6ad2078e6b0db7d | /app/models.py | 2e9fa0ba6b2c20f730a447db3c7f950342cbe5c6 | [] | no_license | Jackson-coder-arch/Studio-session-booker | 98e26ca1ef7953b81562884b4306becde097a47c | de20432fa3bb0660c7499efd5dd0917f0218670b | refs/heads/features | 2023-03-21T11:42:48.043138 | 2021-03-12T08:49:34 | 2021-03-12T08:49:34 | 345,683,743 | 0 | 0 | null | 2021-03-12T08:49:35 | 2021-03-08T14:27:54 | Python | UTF-8 | Python | false | false | 1,749 | py | from app import db
from flask_login import UserMixin
from datetime import datetime
from werkzeug.security import generate_password_hash,check_password_hash
from . import login_manager
class User(UserMixin,db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer,primary_key = True)
username = db.Colu... | [
"[email protected]"
] | |
6ca7eee9d0ea8b564e470641f42e79dd6d3c8de4 | 35d3bd909cc232b51496b8b07971386305bbc769 | /sitemessage/settings.py | 649d4678202125f4fcafd413a1db551e4a45344d | [] | no_license | shtalinberg/django-sitemessage | 772810beae344529867df2b58e873a04dc6b5c93 | dc1a5312316c5d0269380c1f80752437c7a1d6eb | refs/heads/master | 2021-01-22T05:57:43.991672 | 2017-04-15T04:33:30 | 2017-04-15T04:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from django.conf import settings
# Module name to search sitemessage preferences in.
APP_MODULE_NAME = getattr(settings, 'SITEMESSAGE_APP_MODULE_NAME', 'sitemessages')
# Whether to register builtin message types.
INIT_BUILTIN_MESSAGE_TYPES = getattr(settings, 'SITEMESSAGE_INIT_BUILTIN_MESSAGE_TYPES', True)
# Priori... | [
"[email protected]"
] | |
6a9727a84a58a3c17a257bafd64c3423e263ac0a | 9a93a4d9e8d7424ccc3947ed8486083b815c5276 | /websockets/exceptions.py | 1b758c648ad74be77879f58c0bf6c315f1664f94 | [
"BSD-3-Clause"
] | permissive | MariaElysse/websockets | de40f7dea8fa26c5f29a0cc2bf41d78c1acd2ac8 | 4216b35384c177981c4d18d763248c712b8e21d4 | refs/heads/master | 2020-03-26T19:26:29.171235 | 2018-08-11T10:16:12 | 2018-08-11T10:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,462 | py | __all__ = [
'AbortHandshake', 'ConnectionClosed', 'DuplicateParameter',
'InvalidHandshake', 'InvalidHeader', 'InvalidHeaderFormat',
'InvalidHeaderValue', 'InvalidMessage', 'InvalidOrigin',
'InvalidParameterName', 'InvalidParameterValue', 'InvalidState',
'InvalidStatusCode', 'InvalidUpgrade', 'Invali... | [
"[email protected]"
] | |
bdf28fd0c02c0410299165e2313553ae48a9f9ea | b92417413ec5b05ca25695de55934ce7072a0f0a | /test/test_v1_role.py | 8276850e9eb6f7e6038ba217a2d6777c01ea27fd | [
"Apache-2.0"
] | permissive | detiber/lib_openshift | be1f0f1b3eec62c9bbf50a3fcea61303a870c112 | efea21ce6f67e3d48885c03ae22978c576c0b87d | refs/heads/master | 2021-01-18T04:12:00.820052 | 2016-10-04T03:20:43 | 2016-10-04T03:20:43 | 63,102,761 | 0 | 0 | null | 2016-07-11T21:15:36 | 2016-07-11T21:15:36 | null | UTF-8 | Python | false | false | 1,212 | py | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
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
... | [
"[email protected]"
] | |
5dacf336171c8318f8a1a9bd3b0984427bad0db2 | 6285a6f1357a8c4104edbb1f9ece10a27d4be344 | /lib/modeling/backbone/resnet.py | f5c5600b4d372bc93756faa06bb3c08ae0137669 | [] | no_license | cumtchenchang/descriptor-space | f9af90a12c484f519a5cbd54985fe112e063332e | 0e7d0b15785039f7d8ecf3bc96db746b1ccf3465 | refs/heads/master | 2020-07-17T13:57:11.027855 | 2019-08-20T13:54:01 | 2019-08-20T13:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,919 | py | import torch.nn as nn
import torch.utils.model_zoo as model_zoo
import numpy as np
__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101',
'resnet152']
model_urls = {
'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth',
'resnet34': 'https://download.pytorch.org/m... | [
"[email protected]"
] | |
d9b8eb05b29632fdf14022991b75fcc4898142aa | 76c8a2593316a74078e5ebe3c280d393b058ff67 | /vai/commands/JoinWithNextLineCommand.py | c009849009712410c2f67e842d8f74c84019c1ef | [] | no_license | gavd89/vai | b7f746c3ba31397e8d85f477af9b9b71d01795fb | afa3a31b74ee81f9be8ab2c06cd8bdaebae1baad | refs/heads/master | 2021-01-16T22:04:05.131998 | 2014-10-31T22:35:37 | 2014-10-31T22:35:37 | 26,130,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from .BufferCommand import BufferCommand
from .CommandResult import CommandResult
from ..models.TextDocument import LineMeta
class JoinWithNextLineCommand(BufferCommand):
def execute(self):
cursor = self._cursor
document = self._document
pos = cursor.pos
if pos[0] == document.numLi... | [
"[email protected]"
] | |
b78e36b1360b1dd9d552187653a755c3bb26c881 | 35ff4e124ea73cd2630ddf25dfe019b4b4e3f5d6 | /55_JumpGame/55_JumpGame_3.py | 01b5f0afae09de958c5980a9bd943ed3ceab4200 | [] | no_license | H-Cong/LeetCode | 0a2084a4845b5d7fac67c89bd72a2adf49f90c3d | d00993a88c6b34fcd79d0a6580fde5c523a2741d | refs/heads/master | 2023-03-19T15:22:00.971461 | 2021-03-11T00:33:00 | 2021-03-11T00:33:00 | 303,265,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | class Solution:
def canJump(self, nums: List[int]) -> bool:
'''
BackTracking
'''
return self.canJumpFromPosition(0, nums)
def canJumpFromPosition(self, position, nums):
if position == len(nums) - 1: return True
furthestJump = min(position + nums[posi... | [
"[email protected]"
] | |
ef301480c09e8bf0f702faabb05d320f96d1726c | 8b3ca44ee3d990233e74655b7131d616094f70c2 | /experiments/cross_validation/movielens_1M/gaussian_gaussian_wishart.py | 77b129a3b7aae4cbfca58736af054f4dfb1902a5 | [] | no_license | zshwuhan/BMF_Priors | 8b8c54271285a72d2085a56a9475c0756f375e67 | 6a600da1c41f1ccde2f2ba99298b40e68fb9910a | refs/heads/master | 2021-05-13T19:10:07.203215 | 2017-12-01T13:30:21 | 2017-12-01T13:30:21 | 116,883,181 | 1 | 0 | null | 2018-01-09T23:36:13 | 2018-01-09T23:36:13 | null | UTF-8 | Python | false | false | 1,730 | py | '''
Run nested cross-validation experiment on the MovieLens 1M dataset, with
the All Gaussian model (multivariate posterior) and Wishart prior.
'''
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/" # "/home/tab43/Documents/Projects/libraries/" #
import sys
sys.path.append(project_location)
fro... | [
"[email protected]"
] | |
d0a7aeff905f45c9098ea9c161be390f6f6400d6 | 00b24ff5ec169210b1b7cce53b621cbc0ee0fe40 | /migrations/versions/e812a221262e_initialized_database.py | 5944c31f6d72464d38c440607572aeca5fe9a83d | [] | no_license | carter3689/fakebook-march | 1242c052fa51826f56aeb187cfdf41e0464ca4f8 | 41c2c388e0f19d849eef4572a13fcdffb41d3de4 | refs/heads/main | 2023-05-04T02:59:00.245789 | 2021-05-18T16:28:38 | 2021-05-18T16:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | """initialized database
Revision ID: e812a221262e
Revises:
Create Date: 2021-04-26 11:24:10.910838
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e812a221262e'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands au... | [
"[email protected]"
] | |
d2bda2941a3c280e45de65afc578c06a0a1341f7 | 95f9c734c4bf5de8e5d0adff9ac2cf0228df75ac | /django-pro/opweb/opweb/wsgi.py | afbe2f475b239ff7eb311f1c9c1e5d1dd89b1289 | [] | no_license | holen/Python | 7a996b13ff2224084397223879c380169d47ff8c | 506fff291d6e9c6f80c30a51cc3b77e9dd048468 | refs/heads/master | 2022-12-12T22:12:51.561716 | 2019-10-16T03:08:00 | 2019-10-16T03:08:00 | 14,278,665 | 1 | 0 | null | 2022-12-08T00:51:26 | 2013-11-10T15:29:59 | Python | UTF-8 | Python | false | false | 385 | py | """
WSGI config for opweb project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "opweb.settings")
from django.core.wsgi ... | [
"[email protected]"
] | |
b0e721c955feb492b1b48896ef1eeac252b62e25 | ee303308d85c28467a7dfe5300951d49a3866fb3 | /src/uvm/base/uvm_report_server.py | 07b247efdc4497b985ad27098590a5554ee788dc | [
"Apache-2.0"
] | permissive | tpoikela/uvm-python | 3a66a43100a2903f91e0bb73b84c07c1003f7763 | fc5f955701b2b56c1fddac195c70cb3ebb9139fe | refs/heads/master | 2023-05-02T05:08:00.792132 | 2023-04-24T16:07:14 | 2023-04-24T16:07:14 | 232,838,902 | 199 | 43 | Apache-2.0 | 2023-04-24T16:10:44 | 2020-01-09T15:22:26 | Python | UTF-8 | Python | false | false | 22,445 | py |
# from cocotb.utils import get_sim_time
from .uvm_object import UVMObject
from .uvm_object_globals import (UVM_BIN, UVM_COUNT, UVM_DEC, UVM_DISPLAY, UVM_ERROR, UVM_EXIT,
UVM_FATAL, UVM_INFO, UVM_LOG, UVM_LOW, UVM_MEDIUM, UVM_NONE,
UVM_NO_ACTION, UVM_RM... | [
"[email protected]"
] | |
15b35b4d0ed83d0b99c75f0e25604fb40d79f538 | ea6b3b74c8f1ff9333c5d4b06a0e4dd9bbdb3bba | /tests/rpc/test_reflect_service.py | b7a206e547357b2ef8b7398477b04497c4742ae9 | [
"MIT"
] | permissive | sgalkina/venom | d495d296a388afcb25525491bbbe590bfd258a05 | e372ab9002e71ba4e2422aabd02143e4f1247dba | refs/heads/master | 2021-01-23T03:27:17.239289 | 2017-03-24T15:05:56 | 2017-03-24T15:05:56 | 86,077,951 | 0 | 0 | null | 2017-03-24T14:40:46 | 2017-03-24T14:40:46 | null | UTF-8 | Python | false | false | 557 | py | from unittest import TestCase
from venom.rpc import Service, Venom
from venom.rpc.reflect.service import ReflectService
class ReflectServiceTestCase(TestCase):
def test_service_registration(self):
class BeforeService(Service):
pass
class AfterService(Service):
pass
... | [
"[email protected]"
] | |
a19b592b9058d5945dee87f774bc4ee913bbecf1 | 0b5f2442b222da2895cdad06913c3687162f06bb | /pyclustering/container/__init__.py | 27e87524cc9610c785f192f53863d1b4e7d5a005 | [] | no_license | Kinddle-tick/ML_clustering | a765fadde581392de098227b0ee4a9b3572ef24f | 27f9887cb383d0d1ea0a4a42788eddc2f4c85c67 | refs/heads/master | 2023-03-14T18:15:08.350604 | 2021-03-23T07:16:51 | 2021-03-23T07:16:51 | 350,600,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | """!
@brief pyclustering module of data structures (containers).
@authors Andrei Novikov ([email protected])
@date 2014-2020
@copyright BSD-3-Clause
""" | [
"[email protected]"
] | |
66ba21a633e7441cc8a26fce40999953920a1510 | 37c243e2f0aab70cbf38013d1d91bfc3a83f7972 | /pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu3PFJetSequence_pp_mc_bTag_cff.py | 9bd3111ca859c1bbd91ad38579946f0d50b47212 | [] | no_license | maoyx/CMSWork | 82f37256833cbe4c60cb8df0b4eb68ceb12b65e7 | 501456f3f3e0f11e2f628b40e4d91e29668766d5 | refs/heads/master | 2021-01-01T18:47:55.157534 | 2015-03-12T03:47:15 | 2015-03-12T03:47:15 | 10,951,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,707 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetProducers.JetIDParams_cfi import *
akPu3PFmatch = patJetGenJetMatch.clon... | [
"[email protected]"
] | |
05932b5eb4efff7df2c4efaadaa8037452a9e61d | cd90bbc775cbce9a7e0bc46cbb9437e3961e587f | /misc/advent/2017/5/e.py | 4d998c22b9ab5cb25fc7a904a5b71e05e17ea209 | [] | no_license | llimllib/personal_code | 7b3f0483589e2928bf994184e3413f4b887e1f0c | 4d4662d53e0ac293dea8a4208ccca4a1f272e64a | refs/heads/master | 2023-09-05T04:02:05.075388 | 2023-09-01T12:34:09 | 2023-09-01T12:34:09 | 77,958 | 9 | 16 | null | 2023-08-16T13:54:39 | 2008-11-19T02:04:46 | HTML | UTF-8 | Python | false | false | 571 | py | def run(cmds):
location = 0
counter = 0
l = len(cmds)
while 1:
try:
cmd = cmds[location]
if cmd >= 3:
cmds[location] -= 1
else:
cmds[location] += 1
location += cmd
if location < 0:
print(c... | [
"[email protected]"
] | |
0977ce752af81adc5992e95036e5f5f852fc53ac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02903/s750261745.py | 420fde7847d4409890218c615f7f27f1bf072248 | [] | 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 | 116 | py | h,w,a,b=map(int,input().split())
for _ in range(b):print("0"*a+"1"*(w-a))
for _ in range(h-b):print("1"*a+"0"*(w-a)) | [
"[email protected]"
] | |
b314afaaabc9bbf3ea4b69fe5f6f89638900efc2 | 04d55063219d484f29bf1a351b87e972b374e9a6 | /inversetoon/core/light_estimation/light_estimation.py | f6a43a8535f4fe512287218f1850a235825d8872 | [
"MIT"
] | permissive | tody411/InverseToon | 5530f63d225f91d1c497f3f80f24c4ccf086aa8f | bc5b922cae9bbf99ed1f020c93b1577c4747ff92 | refs/heads/master | 2020-05-18T13:32:25.285723 | 2015-10-06T02:35:15 | 2015-10-06T02:35:15 | 39,255,745 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py |
# -*- coding: utf-8 -*-
## @package inversetoon.core.light_estimation
#
# inversetoon.core.light_estimation utility package.
# @author tody
# @date 2015/09/07
import numpy as np
from inversetoon.np.norm import normalizeVector
from inversetoon.core.light_estimation.light_estimation_common import testTo... | [
"[email protected]"
] | |
050fe8dd60fa24022d363e59407aef735c810440 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/protanto/vultus_christi_archive.py | a3494ec9528161e0c530bce04e116f028619d6fe | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,560 | py | from datetime import datetime, timedelta
import scraperwiki
import requests
import lxml.html
from lxml.cssselect import CSSSelector as CSS
import dateutil.parser
import dateutil.tz
TARGET = "http://vultus.stblogs.org/archives.html"
HEADERS = {
'User-agent': 'Mozilla/5.0 (X11; CrOS i686 2268.111.0) AppleWebKit/536... | [
"[email protected]"
] | |
a60e1c26c1bea3cb0d32e6cad14184af90210d17 | 92f6008ff6a3199111f9cd6d26ef9102dcc2c5c3 | /Problems/Jackie's Savings/tests.py | 44a6f5b4df88f82de7dd04ed4be188fc14ccbccb | [] | no_license | TonyNewbie/-SmartCalculator | 52c8f5f074e6c72d7b335cf33d7f4f6cab2da34e | e3779b74d83b5db62101f29a73a350b308e982f9 | refs/heads/master | 2022-07-04T02:22:12.044689 | 2020-05-10T08:49:30 | 2020-05-10T08:49:30 | 262,726,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["5 7 4","1168.44"]]) | [
"[email protected]"
] | |
50bcbf5cec7db78090ff9b0a03360ba55829d65d | cb65ef874d2427a1edcb132cda05e5ce2dc1aae4 | /modpy/proxy/examples/example_kriging.py | 8b2f0eec48e6e00edcf4d69f0493b005e6b0ba69 | [
"MIT"
] | permissive | FrederikLehn/modpy | 1395c27029f5fbfae2388cbd500b28e67a3cdb9e | 19ab18547e06e93fabfbd7f7b2f0f07ff0e70db3 | refs/heads/main | 2023-07-14T11:58:26.379687 | 2021-07-30T11:04:19 | 2021-07-30T11:04:19 | 390,731,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,160 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import MaxNLocator
from numpy.random import Generator, PCG64
from modpy.proxy._kriging import SimpleKrigingModel, OrdinaryKrigingModel, UniversalKrigingModel,\
_maximum_likelihood_objective, exp... | [
"[email protected]"
] | |
80a203056070914fde0b633807198a6f49b4d484 | 67c3c2a310a4d129a45739ca6351052f36f6d5f4 | /venv/lib/python3.7/keyword.py | 10891398d4fb79df3c09b078b871f9a58f1528fd | [] | no_license | cyobero/django-blog | a743203bdaf1d8ae9e6bd47c6e7b33a213a7abfd | 307335c84a0fa9eba6d3f69172a47580144cc066 | refs/heads/master | 2022-12-09T20:25:51.396813 | 2020-03-10T14:52:26 | 2020-03-10T14:52:26 | 245,950,344 | 0 | 0 | null | 2022-11-22T05:22:50 | 2020-03-09T05:20:31 | Python | UTF-8 | Python | false | false | 48 | py | /home/cyobero/anaconda3/lib/python3.7/keyword.py | [
"[email protected]"
] | |
266635f8db60fe89592c32c152f3b53a7832a8f6 | 2b3f859e7bde80f19e0f823b5e6e73ddb44cb3fe | /tests/migrators/test_group.py | a08a14e4fd2b0715b54d3f317b4ef5b0ed0de7b1 | [] | no_license | stormpath/stormpath-migrate | 4a0d4bc949da7df416529820bdcd76f590a8fe89 | ee43dbddda29a0b85c9901ea1e678660ef3bce36 | refs/heads/master | 2021-01-22T10:01:37.030105 | 2017-03-06T19:17:13 | 2017-03-06T19:17:13 | 43,518,049 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py | """Tests for our GroupMigrator class."""
from os import environ
from unittest import TestCase
from uuid import uuid4
from stormpath.client import Client
from migrate.migrators import DirectoryMigrator, GroupMigrator
from migrate.utils import sanitize
# Necessary environment variables.
SRC_CLIENT_ID = environ['SRC... | [
"[email protected]"
] | |
86ac7f9bcafb82d17cf1e1940c1920b2fc108579 | 0b414a080c9853997bfba016c7f66e5f11d80a14 | /cj_env/lib/python3.6/site-packages/pysnmp/proto/rfc1901.py | 8b7dec076254fc3b3a6d3e95de8296083ff5f1db | [] | no_license | alkhor/Cable_Journal | 2bd4bf00210f78c08fcc5508c13833b5e8aa3c46 | e64fb1bfcc4d1b7844b2e0a10653264d58039259 | refs/heads/master | 2021-01-22T19:09:33.562313 | 2018-04-15T19:42:16 | 2018-04-15T19:42:16 | 100,772,711 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2017, Ilya Etingof <[email protected]>
# License: http://pysnmp.sf.net/license.html
#
from pyasn1.type import univ, namedtype, namedval
from pysnmp.proto import rfc1905
version = univ.Integer(namedValues=namedval.NamedValues(('version-2c', 1)))
class M... | [
"[email protected]"
] | |
32a95aa4742fabf685bb335ad6a630b7ee37a801 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/data_subject_type.py | 8af8f9227c69c2dc7db37be9eb47d8afd69c4c11 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 357 | py | from enum import Enum
class DataSubjectType(str, Enum):
Customer = "customer",
CurrentEmployee = "currentEmployee",
FormerEmployee = "formerEmployee",
ProspectiveEmployee = "prospectiveEmployee",
Student = "student",
Teacher = "teacher",
Faculty = "faculty",
Other = "other",
Unknown... | [
"[email protected]"
] | |
34405ad77c78331d0d5982215aff3c9b75139970 | 54ddb3f38cd09ac25213a7eb8743376fe778fee8 | /topic_08_functions/examples/6_visibility_global.py | ec56199933ecb0c82714c47ca80123e9fa749b43 | [] | no_license | ryndovaira/leveluppythonlevel1_300321 | dbfd4ee41485870097ee490f652751776ccbd7ab | 0877226e6fdb8945531775c42193a90ddb9c8a8b | refs/heads/master | 2023-06-06T07:44:15.157913 | 2021-06-18T11:53:35 | 2021-06-18T11:53:35 | 376,595,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | x = 0
def outer():
x = 1
def inner():
global x
x = 2
print("inner:", x)
inner()
print("outer:", x)
outer()
print("global:", x)
# inner: 2
# outer: 1
# global: 2 | [
"[email protected]"
] | |
66925b569b205b36e465e85da39a6c1ca0b998ab | cccf8da8d41ae2c14f5f4313c1edcf03a27956bb | /python/python2latex/writeLTXtextrm.py | 25de7160851c9ab2eed55ced5886e34a78ecaea7 | [] | no_license | LucaDiStasio/transpilers | e8f8ac4d99be3b42a050148ca8fbc5d025b83290 | c55d4f5240083ffd512f76cd1d39cff1016909b8 | refs/heads/master | 2021-01-12T01:57:00.540331 | 2017-11-01T13:59:55 | 2017-11-01T13:59:55 | 78,448,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | # Autogenerated with SMOP
from smop.core import *
#
@function
def writeLTXtextrm(filepath=None,args=None,options=None,*args,**kwargs):
varargin = writeLTXtextrm.varargin
nargin = writeLTXtextrm.nargin
##
#==============================================================================
# Copyright (c)... | [
"[email protected]"
] | |
e3d03d32e51e516989a28022f99a1ecc931a3bb1 | cb0e7d6493b23e870aa625eb362384a10f5ee657 | /solutions/python3/0199.py | 55bf7f22754e31867cd312d03f303f6cb6b10e0b | [] | no_license | sweetpand/LeetCode-1 | 0acfa603af254a3350d457803449a91322f2d1a7 | 65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94 | refs/heads/master | 2022-11-14T07:01:42.502172 | 2020-07-12T12:25:56 | 2020-07-12T12:25:56 | 279,088,171 | 1 | 0 | null | 2020-07-12T15:03:20 | 2020-07-12T15:03:19 | null | UTF-8 | Python | false | false | 384 | py | class Solution:
def rightSideView(self, root: TreeNode) -> List[int]:
def dfs(root: TreeNode, depth: int) -> None:
if not root:
return
if depth == len(ans):
ans.append(root.val)
dfs(root.right, depth + 1)
dfs(root.left, depth +... | [
"[email protected]"
] | |
36aa53c07596f0697adcc2a9facc301ec460cbac | c9a6b59b7164b6e402105c802b91d6c2695cec21 | /blog/templatetags/isliked.py | 36f43c2eee37d031b1f40c6b9824525f9ca61c65 | [] | no_license | harunurkst/amar-campus | 9b9d10e216c9e85b2c78e0c6720310084d389187 | fe0474274fb7419ef70f9463842260af7d6dea2f | refs/heads/master | 2021-01-18T20:24:40.343852 | 2017-04-25T06:07:26 | 2017-04-25T06:07:26 | 86,963,328 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from django import template
register = template.Library()
@register.filter(name="is_liked")
def is_liked(user):
post_id = request.POST.get('id', None)
post = get_object_or_404(Post, pk=post_id)
if post.likes.filter(id=user.id).exists():
post.likes.remove(user)
is_liked = False
else:
... | [
"[email protected]"
] | |
7a52bd2dc5f9b0f200ec0b550facbc8715441923 | 043ca446cbee59c1926de7473869ef34748e5b2b | /_2019/windmill.py | c133ab63983de261a692cf2dd68f69183eeb79b6 | [
"MIT"
] | permissive | soubam/videos | 785d04907d6955456797f989893b3f811c7f721e | 04a00e521808e2b733903bd1c91435a29ba2c678 | refs/heads/master | 2023-08-28T15:38:08.284733 | 2021-11-11T23:22:35 | 2021-11-11T23:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120,504 | py | from manim_imports_ext import *
import json
class IntroduceIMO(Scene):
CONFIG = {
"num_countries": 130,
"use_real_images": True,
# "use_real_images": False,
"include_labels": False,
"camera_config": {"background_color": GREY_E},
"random_seed": 6,
"year": 201... | [
"[email protected]"
] | |
1fa19d44a1c11b59e3a25c948ed5ac15c23cdb30 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_11/EBS-SVN/trunk/purchase_custom/__manifest__.py | 90748a083184db83669186389d9fa5f1e7757874 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
{
'name': "purchase_custom",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "My Company",
'... | [
"[email protected]"
] | |
b7ac2271f415f595aa5380f77be150c49345beab | f0e25779a563c2d570cbc22687c614565501130a | /Think_Python/ackermann.py | 58574bbcd3d3e680558b07a0a04c15c6a2349f44 | [] | no_license | XyK0907/for_work | 8dcae9026f6f25708c14531a83a6593c77b38296 | 85f71621c54f6b0029f3a2746f022f89dd7419d9 | refs/heads/master | 2023-04-25T04:18:44.615982 | 2021-05-15T12:10:26 | 2021-05-15T12:10:26 | 293,845,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | """This module contains code from
Think Python by Allen B. Downey
http://thinkpython.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
def ackermann(m, n):
"""Computes the Ackermann function A(m, n)
See http://en.wikipedia.org/wiki/Ackermann_function
n, m: n... | [
"[email protected]"
] | |
bdb9812cf2874f454a6ae0a548efa9589981824c | 3528abad46b15133b2108c237f926a1ab252cbd5 | /Core/_Axiom/Transport.py | bc2b7d2b4e8787c324fb18ec12fce7581ef3879f | [] | no_license | scottmudge/MPK261_Ableton | 20f08234f4eab5ba44fde6e5e745752deb968df2 | c2e316b8347367bd157276f143b9f1a9bc2fe92c | refs/heads/master | 2020-03-20T10:56:32.421561 | 2018-06-14T19:12:47 | 2018-06-14T19:12:47 | 137,389,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_Axiom/Transport.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
import Live
from .consts import *
class Transport:
u""" Class represent... | [
"[email protected]"
] | |
d9e0bc511e4e2824de47b2ed8a38c4a528b2ad2b | 1333a965058e926649652ea55154bd73b6f05edd | /4_advanced/ai-py-param-validation/src/paramvalidator/exceptions/validation_exception.py | 594afb62d07c15d96b2052c9d63a8accbf4eb5fb | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | grecoe/teals | 42ebf114388b9f3f1580a41d5d03da39eb083082 | ea00bab4e90d3f71e3ec2d202ce596abcf006f37 | refs/heads/main | 2021-06-21T20:12:03.108427 | 2021-05-10T19:34:40 | 2021-05-10T19:34:40 | 223,172,099 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | """
(c) Microsoft. All rights reserved.
"""
class ParameterValidationException(Exception):
"""
Base exception for parameter validation
"""
def __init__(self, message):
self.message = message
def __str__(self):
return self.message
| [
"[email protected]"
] | |
a7be7d0c99595985e6a9bcda3ec4af33a03ae376 | 18057e01c81dc792a73a2e0bd1a4e037de8fefcb | /kaohantei/ninsiki.py | 606ec732585a18eb525347fe8015002c5d6950de | [] | no_license | kentahoriuchi/Kenta | 15e80018f5c14e1409ac13a7a52c4f64acdce938 | 97bb657a37f0d89525b04f9157a223b47664793e | refs/heads/master | 2020-03-22T14:21:30.221093 | 2018-07-08T14:22:15 | 2018-07-08T14:22:15 | 140,173,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from keras.models import load_model
from keras.utils.np_utils import to_categorical
from keras.optimizers import Adagrad
from keras.optimizers import Adam
import numpy as np
import cv2
import sys
dir = "face.jpeg"
img = cv2.imread(sys.argv[1])
filepath = "sys.argv[1]"
cascade_path = "haarcascade_frontalface_defaul... | [
"[email protected]"
] | |
b7721870d8d7c53ef25f4eb6c25ca932b7aa76e7 | 10d8fab4b21d55cfef0139c04a7f70881f5196f4 | /Stack/simplify-directory-path-unix-like.py | db6af1a41488710662509a134bcd9f11f7e8172a | [] | no_license | wilfredarin/geeksforgeeks | a2afcfd2c64be682b836019407e557332d629ab8 | 5e27cb6706e0ae507694c2170fa00370f219c3e6 | refs/heads/master | 2021-08-07T05:48:39.426686 | 2020-08-19T07:25:19 | 2020-08-19T07:25:19 | 212,023,179 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | """Simplify the directory path (Unix like)
Given an absolute path for a file (Unix-style), simplify it. Note that absolute path always begin with ‘/’ ( root directory ), a dot in path represent current directory and double dot represents parent directory.
Examples:
"/a/./" --> means stay at the current directory 'a... | [
"[email protected]"
] | |
5dbea0ee8b5ef1ca38d84fa1aaf715f0c794feb4 | d89581e043a154a56de69f419f9e7c2f67cf4ff2 | /Apps/Engines/Nuke/NukeTools_1.01/Python/minorVersionUp.py | 214d1a6323b578537a59a33a18fc91be3ffd8409 | [
"MIT"
] | permissive | yazici/CyclopsVFX-Unity | 38b121333d5a5a610cf58489822c6f20f825be11 | 6ab9ab122b6c3e6200e90d49a0c2bf774e53d985 | refs/heads/master | 2020-04-29T15:05:04.942646 | 2017-11-21T17:16:45 | 2017-11-21T17:16:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | #The MIT License (MIT)
#
#Copyright (c) 2015 Geoffroy Givry
#
#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
#to use, copy, m... | [
"[email protected]"
] | |
975050352947450358340060f69ced694a7463e3 | 143eb3ced0ff1f9cad745c620fcb572f72d66048 | /Assignment4/atom3/Kernel/GenericGraph/models/test_GenericGraph_mdl.py | fd96c32e3307d5950cd3b3ee0c3afc1ddfd9c6c7 | [] | no_license | pombreda/comp304 | 2c283c60ffd7810a1d50b69cab1d5c338563376d | d900f58f0ddc1891831b298d9b37fbe98193719d | refs/heads/master | 2020-12-11T07:26:19.594752 | 2014-11-07T12:29:28 | 2014-11-07T12:29:28 | 35,264,549 | 1 | 1 | null | 2015-05-08T07:18:18 | 2015-05-08T07:18:18 | null | UTF-8 | Python | false | false | 1,825 | py | from graph_ASG_ERmetaMetaModel import *
from stickylink import *
from widthXfillXdecoration import *
from ASG_GenericGraph import *
from ASG_GenericGraph import *
from GenericGraphNode import *
from GenericGraphEdge import *
from ATOM3Enum import *
from ATOM3String import *
from ATOM3BottomType import *
from ATOM3Const... | [
"[email protected]"
] | |
65b3e12a7a4232da82a51c7d4fddf642b3b3700e | 2df82b931c89ac70d49b0716d642d8e355926d50 | /product/urls.py | 87647f6494c6266c870dd2feb79bc260185026f8 | [] | no_license | khanansha/producthunt | 1a638104e83803b9afc4a51ff3ead438ae47cab6 | 03b8d45091c88a2ff142f0a3082910ac1fa0ba41 | refs/heads/master | 2021-05-26T03:21:35.246011 | 2020-04-08T08:41:17 | 2020-04-08T08:41:17 | 254,031,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('create', views.create, name='create'),
path('<int:product_id>', views.detail, name='detail'),
path('<int:product_id>/upvote', views.upvote, name='upvote'),
]
| [
"[email protected]"
] | |
b98dfa1240d8bb0330bd47a98fbbe848f5c6744d | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_kjh.py | ed7f0805140a95e20c6d09212308da8737fd583b | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 809 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"[email protected]"
] | |
7f33ebf6e4c0e218d49274dab77575fbad6f4e72 | b3638a57ff986c9af7281f057bd4cb5641c11589 | /백준/210803_최단경로/11404플로이드.py | e3904cdf037eb2b00770b01adef797ef64f2da63 | [] | no_license | commGom/pythonStudy | 6adc01faddbe3ef88e0cbab9da174caa77857ff7 | a5d52e66dfd0b3b7538454ca2b6fcd9665f83e6c | refs/heads/main | 2023-08-25T12:21:27.670495 | 2021-10-04T08:19:42 | 2021-10-04T08:19:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | # 5
# 14
# 1 2 2
# 1 3 3
# 1 4 1
# 1 5 10
# 2 4 2
# 3 4 1
# 3 5 1
# 4 5 3
# 3 5 10
# 3 1 8
# 1 4 2
# 5 1 7
# 3 4 2
# 5 2 4
import sys
input=sys.stdin.readline
# 도시의 갯수 N, 버스의 갯수 M
N=int(input())
M=int(input())
# 버스의 도착도시, 드는 비용 값을 저장할 graph
#버스의 출발도시 도착도시 드는비용 순으로 값을 M번 받는다
graph=[[0 for col in range(N+1)] for row ... | [
"[email protected]"
] | |
07632b55cea18f87762376f2c17c30d0fd1d32bc | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/compute/v1/network_attachment_iam_policy.py | a5af364be5feb5a7850e9d4462d7156faf070069 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 22,498 | 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 copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"[email protected]"
] | |
aeeee04864a4e9f90e0b78751f06a0c1734023fe | ffca2ab12cb1dad9e3ddd6bf0f615cef91db62e5 | /test.py | cf87ab1380fb1dd2c650be87a67e7c934d453c5d | [
"MIT"
] | permissive | CyborgVillager/Block-Tower-Defense | 0ee26678bb00951b1168f5bc20c762c04cf8a648 | 287da85c852e8596de9e57827845c6d7db286ec9 | refs/heads/master | 2020-12-02T02:22:29.347524 | 2019-12-30T10:54:27 | 2019-12-30T10:54:27 | 230,857,127 | 0 | 0 | MIT | 2019-12-30T06:00:15 | 2019-12-30T06:00:14 | null | UTF-8 | Python | false | false | 1,138 | py | import pygame
pygame.init()
screen = pygame.display.set_mode((640, 480))
pygame.display.set_caption("Hello, world!")
background = pygame.Surface(screen.get_size())
background = background.convert()
background.fill((100, 60, 25))
clock = pygame.time.Clock()
keepGoing = True
color = (100, 100, 100)
size = (150, 50)
po... | [
"[email protected]"
] | |
d5a5c939def085847ffa6a958f51d3a0dee2867d | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/world/ZoneLOD.py | 484017d0780e356d8af203a398a3626258d15e5c | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,823 | py | from pandac.PandaModules import *
from direct.showbase.DirectObject import DirectObject
from direct.showbase.PythonUtil import *
from otp.otpbase import OTPGlobals
from pirates.piratesbase import PiratesGlobals
class ZoneLOD(DirectObject):
notify = directNotify.newCategory('ZoneLOD')
def __init__(self, unique... | [
"[email protected]"
] | |
b6f879be814c5cb7ae7e78b1b76cb8c2557580c5 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_4_neat/16_0_4_kylewilson_d.py | f0a169990ea6d378bafc747d1a45704aacf52a63 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 355 | py | f = open("D-small-attempt0.in", "r")
fo = open("out.txt","w")
count = int(f.readline())
for case in xrange(0,count):
print case
line = f.readline().split()
k = line[0]
c = line[1]
s = line[2]
fo.write("Case #" + str(case + 1) + ":")
if s < k:
fo.write(" IMPOSSIBLE")
else:
for x in range(int(k)):
fo.wr... | [
"[[email protected]]"
] | |
d3a1c4a014e244b6ab4565a5e932f0082a4ab67a | b3f58deae474db9035cd340b4e66b3e6bdafdeca | /components/proximity_auth.gypi | 3b4307df79370a117178a4013c1d5396e3ea6421 | [
"BSD-3-Clause"
] | permissive | quanxinglong/chromium | 0c45f232254c056e27f35e00da8472ff3ac49fd9 | 16dda055c8799052d45a593059b614ea682d4f6c | refs/heads/master | 2021-01-24T17:58:29.213579 | 2015-08-10T19:39:07 | 2015-08-10T19:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,788 | gypi | # Copyright 2014 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.
{
'targets': [
{
# GN version: //components/proximity_auth and
# //components/proximity_auth/ble.
'target_name': 'proximity_auth',
... | [
"[email protected]"
] | |
0468f8f8d3852fec3500d09cba904bdbd0e2e2c9 | bc9abf538f5d4093324b2f055f0b090fe4b03247 | /python/etc/primer3d.py | e4712fca4b2656dfe05717a7fff112e19d3cfd1f | [] | no_license | galaxysd/GalaxyCodeBases | 3c8900d0c2ca0ed73e9cf4c30630aca4da6cc971 | 58946261bf72afd6a7287e781a2176cdfaddf50e | refs/heads/master | 2023-09-04T04:59:35.348199 | 2023-08-25T01:04:02 | 2023-08-25T01:04:02 | 33,782,566 | 7 | 6 | null | 2020-09-04T06:06:49 | 2015-04-11T16:12:14 | C | UTF-8 | Python | false | false | 4,773 | py | #!/usr/bin/env python3
import argparse
import logging
import primer3 # https://github.com/libnano/primer3-py
# https://brcaexchange.org/variants and click "Show All Public Data", then click "Download" to get `variants.tsv`.
# gzcat ~/Downloads/variants.tsv.gz|head -n30|awk -F'\t' '{if (length($124)+length($125)==2 ||... | [
"[email protected]"
] | |
217989fa3591eada71f3986a3f8d7079071acfa7 | d52ee2f7ec5dcd8825f4e221a7f084d488d35634 | /new_scripts/baselines/dmass/model/seq2seq.py | 8e1de823151e02d643e898a3ce67afbef2823090 | [] | no_license | rekriz11/sockeye-recipes | 9dbf96140e4d9d546210dd1c29801132e1b9201c | 644363b92e2f38311cc2b7e926b6558aa41900f3 | refs/heads/master | 2020-03-29T16:52:52.542574 | 2020-03-13T18:18:25 | 2020-03-13T18:18:25 | 150,131,769 | 5 | 3 | null | 2018-09-24T16:15:47 | 2018-09-24T16:15:46 | null | UTF-8 | Python | false | false | 16,250 | py | from model.graph import Graph
from model.graph import ModelOutput
from model.seq2seq_beamsearch import beam_search
import tensorflow as tf
from util import constant, nn
class Seq2SeqGraph(Graph):
def __init__(self, data, is_train, model_config):
super(Seq2SeqGraph, self).__init__(data, is_train, model_con... | [
"[email protected]"
] | |
d2fe44622bb24756b61b213bf3e55799154afa69 | ca752ad55da471392e8690437d9a672c9a52bf2a | /manage.py | 30ad0b0215c06bac6732623c2d633d4d66ec30aa | [] | no_license | fortable1999/zhaomengblog | 9280f8bbb1b8f8bbb8e56e26b0b7fb074e07685b | f9ee379affee99ebf8a4a6da2b322fb469451fe9 | refs/heads/master | 2021-01-10T21:30:37.297876 | 2013-07-12T13:05:47 | 2013-07-12T13:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zmblog.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"[email protected]"
] | |
e7b36c21f59ad06459d4b86ada0988020ae3ef90 | 463c8ba5baad086d37819804af4ee10f43ab6dd5 | /Algorithm/190911/실수_연습문제3.py | 82ce02e942a893598cacf8b5c5949694673348f5 | [] | no_license | sooya14/TIL | dbbb0608d45ce273ddef6f7cea1b1195285f269d | 232b0d38d8f6ee2e6e5517bfd6a2a15cf1000dad | refs/heads/master | 2023-01-11T17:12:39.370178 | 2020-05-11T12:06:41 | 2020-05-11T12:06:41 | 195,916,241 | 0 | 0 | null | 2023-01-05T18:22:56 | 2019-07-09T02:17:42 | Jupyter Notebook | UTF-8 | Python | false | false | 169 | py |
def Bbit_print(i):
output = ''
for j in range(15, -1, -1):
output += '1' if i & (1 << j) else '0'
return output
a = 0xDEC
print(Bbit_print(a))
| [
"[email protected]"
] | |
ba50d67df374167270831ee86f66ac7d0f40ba3f | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/F/frabcus/p-francis.py | 16380646750da2ccabd56a5aaf6b52e69bb3b125 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import scraperwiki
print "hello, world"
download = scraperwiki.scrape("http://un.org/")
print download
data = { 'foo': 10, 'bar': 'hello' }
scraperwiki.sqlite.save( ['foo'], data )
import scraperwiki
print "hello, world"
download = scraperwiki.scrape("http://un.org/")
print download
data = { 'foo': 10, 'bar': '... | [
"[email protected]"
] | |
511a12dcf6ad86e4c5a9d820d091e7c541027811 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03239/s021170085.py | 463b5e90f404a028b4f64d43dc4fefef0042eb47 | [] | 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 | 280 | py | def resolve():
n,T=map(int,input().split())
ans=10000
for i in range(n):
c,t=map(int,input().split())
if t<=T:
ans=min(ans,c)
if ans==10000:
print('TLE')
else:
print(ans)
if __name__ == '__main__':
resolve() | [
"[email protected]"
] | |
db0075a312c5191fbe8ab1c749b93da07077d880 | 2eeda6bfea74cf746f8223274ee9ec25b9387526 | /dgCubeDemo/testString.py | 8641d86826c9af2d47311dc85fb3b364d42349e4 | [] | no_license | PowerDG/PycharmProjects | 74f6468964d64846d8c979260a51f375e5d0476d | 74a7f18be4a7337eef546e4bf3cc6320b9f5b39d | refs/heads/master | 2022-12-09T09:25:11.993089 | 2020-09-18T13:28:00 | 2020-09-18T13:28:00 | 287,977,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# outhor:xinlan time:
# 我是中国人
"""
https://zhuanlan.zhihu.com/p/52770875
我是中国人,
那你呢
"""
str1 = '我叫 %s,俺爹是 %s' % ('小王', '老王')
print(str1)
nameStr = '马爸爸'
moneyStr = '有钱'
print('用+将字符串合并,', nameStr + moneyStr)
# === 列表----[ ]
nameList = ['猴子', '马云', '王健林', '马化腾']
n... | [
"[email protected]"
] | |
480312fb4dd33c1c96bed2d89c5eda9c402cec34 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /third_party/blink/renderer/build/scripts/make_origin_trials.py | db5b93a998e28fcaa8ec63a52fc4e2229de671db | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 5,714 | py | #!/usr/bin/env python
# Copyright (C) 2015 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | [
"[email protected]"
] | |
c4c4ccbd2c0b793fb79453c25f124a66643c2f62 | 8535bbc7781c4691880c935bd7025646f0dbb7c3 | /sum of square of digits.py | 56cc2426f15835c4fed720b0b451c4f4bf9814a9 | [] | no_license | Mahadev0317/Codekata | 3b2149f3116ebe4b48b2059b873544c27b23ff39 | c35fa0ed0c4870faea69152638f461e743a9ff69 | refs/heads/master | 2020-04-15T04:59:17.062947 | 2019-05-29T04:46:35 | 2019-05-29T04:46:35 | 164,404,727 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | n=list(input())
s=0
for i in n:
i=int(i)
s=s+(i**2)
print(s)
| [
"[email protected]"
] | |
2358045598136f87583bfb602e34f757cb5c6c6d | cff08cd0aefb52f1cf2c5a8bc5c301c6a03b886e | /maskrcnn_benchmark/config/defaults_2d.py | 672946d117c798f5610a2b65bfd98d1a35a4af03 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhupan007/Detection_3D | 5bc0c4f185889c08a531990a257af7f3af25fafa | 2fead7b8d754912a53fed6c5826d4d898a520237 | refs/heads/master | 2020-11-28T13:48:16.763314 | 2019-11-25T11:12:47 | 2019-11-25T11:12:47 | 212,738,109 | 1 | 0 | MIT | 2019-10-04T04:51:29 | 2019-10-04T04:51:29 | null | UTF-8 | Python | false | false | 11,394 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import os
from yacs.config import CfgNode as CN
# -----------------------------------------------------------------------------
# Convention about Training / Test specific parameters
# ------------------------------------------------------------... | [
"[email protected]"
] | |
7c4beb4c63680a1ee45c5c97a528c02e1ef70d08 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 12493 stars/main.py | 779906f17e251db0fb19cfabdf8ad7b649c8263a | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import sys
import math
def primeFactors(n):
i = 2
result = []
while i <= math.sqrt(n):
while n % i == 0:
result.append(i)
n /= i
i += 1
if n != 1:
result.append(n)
result.sort()
return result
sys.stdin = open('input.txt')
while True:
try:
... | [
"[email protected]"
] | |
c41013fcbae7df51d04a6e80c96ad4de24752f18 | d0aade2edd6ba5750d70c70198a4bfe16356355e | /maskrcnn_benchmark/modeling/poolers.py | 754b5147485769c9de1ff6429e4a1300a0e27231 | [
"MIT"
] | permissive | mjq11302010044/RRPN_pytorch | ca3a6b781d49b80323671581ea0a5c13ca500a7a | a966f6f238c03498514742cde5cd98e51efb440c | refs/heads/master | 2022-08-29T07:29:20.311262 | 2020-10-16T02:29:19 | 2020-10-16T02:29:19 | 184,703,273 | 305 | 68 | MIT | 2020-04-30T06:37:19 | 2019-05-03T05:28:03 | Python | UTF-8 | Python | false | false | 7,295 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
import torch.nn.functional as F
from torch import nn
from maskrcnn_benchmark.layers import ROIAlign
from maskrcnn_benchmark.layers import RROIAlign
from .utils import cat
class LevelMapper(object):
"""Determine which FPN level ... | [
"[email protected]"
] | |
ded84433bff0e82fd58f4dc304b9a645a18403dd | dfad28a2e1a0199c0117e551fd1e31804804d5b9 | /app/__init__.py | 6efcbe27d1084742b368ce958eb28dc8ecdb33de | [
"MIT"
] | permissive | wilbrone/Pitches | c33d60b142b43de9ccf60a86cf59acbc262c6711 | b20d234fd930a6551f26d9cf863c6d1631b62bc2 | refs/heads/master | 2022-12-09T08:02:08.631177 | 2019-11-25T23:47:13 | 2019-11-25T23:47:13 | 223,405,696 | 0 | 0 | MIT | 2022-12-08T06:55:48 | 2019-11-22T13:09:30 | Python | UTF-8 | Python | false | false | 1,139 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from flask_mail import Mail
from flask_login import LoginManager
from flask_simplemde import SimpleMDE
# from flask_uploads import UploadSet,configure_uploads,IMAGES
from config import config_options
bootstrap = Boo... | [
"[email protected]"
] | |
fa772d6c102d931e816220e31d045e9b09bf18ab | 3fd9c7ee49a32eae3013191b63154a9a5d6dafe6 | /12.6驾驶飞船/12.6.4调整飞船的速度/alien_invasion_0.10.py | 07be0e8c4159b335189b2368a83e687b00039bf0 | [] | no_license | taozhenting/alien_invasion | e0c03cd9797cb33e40ca47a13eadeda8b1c4cf85 | fd9bd97d6238da702fbb1eb6fcb78e8352875fe2 | refs/heads/master | 2020-04-27T05:31:48.862784 | 2019-01-30T09:43:49 | 2019-01-30T09:43:50 | 174,083,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | #修改while循环,每次执行循环时调用飞船方法update()
import pygame
from settings_2 import Settings
from ship_4 import Ship
import game_functions_5 as gf
def run_game():
#初始化游戏并创建一个屏幕对象
pygame.init()
#创建Settings实例存储在ai_settings变量中
ai_settings = Settings()
#使用ai_settings的属性screen_width和screen_height
screen = pygame... | [
"[email protected]"
] | |
584201b3a981910411696aaa3cbbeb9fa1d2944e | 8f8f40280afdd0c47fd39664b43c8fb45d86a285 | /code_sd_ssc/plot_utils.py | d11d53930b5434a904ba8695ee4e51e7e4f4b739 | [] | no_license | shibaji7/IP_Shock_SSC_SuperDARN | d463341c432e14c3007a0540ad96b4325289d6c0 | 32ea9d72d2ab68a7b80ab12f41228783370b6d4f | refs/heads/main | 2023-02-19T14:32:43.806681 | 2021-01-23T02:41:00 | 2021-01-23T02:41:00 | 303,022,533 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,803 | py | #!/usr/bin/env python
"""plot_utils.py: module is dedicated to plot different types of parameters"""
__author__ = "Chakraborty, S."
__copyright__ = "Copyright 2020, SuperDARN@VT"
__credits__ = []
__license__ = "MIT"
__version__ = "1.0."
__maintainer__ = "Chakraborty, S."
__email__ = "[email protected]"
__status__ = "Re... | [
"[email protected]"
] | |
f0b36e876db026e32aeb47a005d47490db58f2bd | ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd | /clients/client/python/test/test_update_recovery_flow_body.py | 91fe274624feee373ef8d631fc0e1e6dd405c9ab | [
"Apache-2.0"
] | permissive | ory/sdk | fcc212166a92de9d27b2dc8ff587dcd6919e53a0 | 7184e13464948d68964f9b605834e56e402ec78a | refs/heads/master | 2023-09-01T10:04:39.547228 | 2023-08-31T08:46:23 | 2023-08-31T08:46:23 | 230,928,630 | 130 | 85 | Apache-2.0 | 2023-08-14T11:09:31 | 2019-12-30T14:21:17 | C# | UTF-8 | Python | false | false | 1,293 | py | """
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v1.1.51
Contact: [email protected]
Generated by: https://ope... | [
"[email protected]"
] | |
faeb98b87b529091b354db981aaab9a7664aa97d | a59d20b9918df7cc17cfaf4bd1abaa73a086eb2a | /tfcnn_retraining.py | bc37e62d3d31befff38348e8f53c5da0d95d24cf | [] | no_license | yanqinghao/TFdeeplearning | 5da5e7f4462c539ae25f29a42f2c5bc3b4abd171 | 8ec4f99b6e73b9d0866bc3706e2807cfa3229c58 | refs/heads/master | 2018-12-10T13:45:35.552852 | 2018-09-13T09:52:49 | 2018-09-13T09:52:49 | 118,085,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | import os
import tarfile
import _pickle as cPickle
import numpy as np
import urllib.request
import scipy.misc
cifar_link = 'https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz'
data_dir = 'temp'
if not os.path.isdir(data_dir):
os.makedirs(data_dir)
objects = ['airplane', 'automobile', 'bird', 'cat', 'deer', 'd... | [
"[email protected]"
] | |
f57e92ca341a4ef719218a9cc8d1a392d5f8ed20 | f14f48e50efb50cfe7078c68f0d61015ae2d646b | /Stock/Select/Ui/Other/DyStockSelectTestedStocksDlg.py | 2b6d429fd49050e93adc805172ad3f4f682f0fbe | [
"MIT"
] | permissive | stockcode/DevilYuan | 17a23da68954714cacae29f428c3005444e0e3a2 | 163d06cb7fd30a8f24b3f2e06206c1fd024353c3 | refs/heads/master | 2020-05-03T14:40:08.420822 | 2019-03-29T13:16:42 | 2019-03-29T13:16:42 | 178,683,886 | 2 | 1 | MIT | 2019-03-31T12:17:49 | 2019-03-31T12:17:49 | null | UTF-8 | Python | false | false | 2,126 | py | from datetime import *
import os
import re
from PyQt5.QtWidgets import QDialog, QGridLayout, QLabel, QTextEdit, QPushButton, QApplication
from DyCommon.DyCommon import *
class DyStockSelectTestedStocksDlg(QDialog):
def __init__(self, data, parent=None):
super().__init__(parent)
self._data = da... | [
"[email protected]"
] | |
8b7a7bf8e469f8575e9b8af31593301da9b21c06 | e57af4a840d1126e22363bd9611a40fe18093c92 | /wrappers/s2i/python/test/router-template-app/MyRouter.py | 10aa8ee91177f1fa9145641815baeec07abb43aa | [
"Apache-2.0"
] | permissive | holdenk/seldon-core | ca05e12c8e568700487f9b9e4b79a900200bd03c | de08406883850e5566b4e08af7d6484c1960bdd6 | refs/heads/master | 2020-03-07T12:47:07.530623 | 2018-03-30T10:08:42 | 2018-03-30T10:08:42 | 127,485,585 | 1 | 0 | Apache-2.0 | 2018-03-31T00:37:40 | 2018-03-31T00:37:40 | null | UTF-8 | Python | false | false | 755 | py |
class MyRouter(object):
"""
Router template.
"""
def __init__(self):
"""
Add any initialization parameters. These will be passed at runtime from the graph definition parameters defined in your seldondeployment kubernetes resource manifest.
"""
print("Initializing")... | [
"[email protected]"
] | |
014442c52df6cfc9302ce48ac5b1ba27eebb94e3 | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/mcmc_alg_implementation_own_two_20180704104642.py | 20737f1c25b68caf620680915be9d652c2c31371 | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 11,006 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import random
import math
import numpy as np
import graph_tool.al... | [
"[email protected]"
] | |
bbf67b6d8b12d59dd77937c8c5df126c1dd64d82 | ba198225eceb33df214400c8a19a46292c051fe2 | /conf/settings/settings_production.py | 3e2f6aff61ff45d7a83f5a749ef78ecc26392a48 | [] | no_license | puntonim/inspire-read-api | 64e39261b41c6610f8775645eab18252bbeeb6c2 | 876a053ae5ad2642911bab5387ed6139bc9b09ec | refs/heads/master | 2020-07-11T12:36:41.358661 | 2019-04-04T12:22:38 | 2019-08-26T19:07:21 | 204,540,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | """
Production settings.
"""
from .settings_base import *
DEBUG = False
ALLOWED_HOSTS = ['mysite.com']
SECRET_KEY = 'mysecretkey'
ORCID_TOKENS_ENCRYPTION_KEY = 'mykey' | [
"[email protected]"
] | |
a5af53f0ae3c8b6d8628a1c09137e61e88a8ea9d | 156b77dc620d47fa76baf9361b4ccac04a7f7995 | /FSND/projects/02_trivia_api/starter/backend/test_flaskr.py | 5adf46e7e178d309d8bf8069f3ee65a3d2663468 | [] | no_license | zyfsju/fullstack-study | cc43b18a47bdf277be3828d351624063d965723a | 1172d62689e8edf60636d548cfc89c5168296d9c | refs/heads/master | 2023-03-25T03:03:04.021634 | 2021-03-22T17:56:04 | 2021-03-22T17:56:04 | 350,438,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | import os
import unittest
import json
from flask_sqlalchemy import SQLAlchemy
from flaskr import create_app
from models import setup_db, Question, Category
class TriviaTestCase(unittest.TestCase):
"""This class represents the trivia test case"""
def setUp(self):
"""Define test variables and initiali... | [
"[email protected]"
] | |
5d2db857d942cc972b50c1533898446b0879cf70 | 53dee1a74618e5ac343c5abe0a7a46fdf287e51e | /modules/callbacks.py | 24e779a197aeef08e887e7541a2d795fa423a938 | [] | no_license | SpencerRaw/GNCA | 250e8bc0351d121ba4c752ad07d02975f9e15e17 | f82f24925acb26c141ed02b0b0fe23ebb0878450 | refs/heads/master | 2023-08-29T10:27:08.590713 | 2021-11-08T07:52:12 | 2021-11-08T07:52:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | import numpy as np
from tensorflow.keras.callbacks import Callback
from boids.evaluate_boids import evaluate_complexity
from boids.forward import forward
class ComplexityCallback(Callback):
def __init__(
self, test_every=10, n_trajectories=1, trajectory_len=1000, n_boids=100
):
super().__init... | [
"[email protected]"
] | |
bc041e4c5efd26ad99e6caa4c17e001f6f83401a | b5daf9d5525971be607e87e140c6e7575ac4a9e2 | /service-mgmt-api/sm-api/sm_api/openstack/common/cliutils.py | 4e37ff8fcfa5fda508427ff57b265d4cf6653e80 | [
"Apache-2.0"
] | permissive | starlingx/ha | 9befeac4e934a22fdeadfc35163feb37967189e0 | e35510e1cc54e83a158af9a5da3fb75ed4dd8601 | refs/heads/master | 2023-08-16T18:36:29.902446 | 2023-08-09T14:31:50 | 2023-08-10T14:52:02 | 237,515,014 | 3 | 3 | Apache-2.0 | 2021-01-14T02:49:45 | 2020-01-31T20:58:31 | C | UTF-8 | Python | false | false | 2,020 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | [
"[email protected]"
] | |
61bffabbd45a33440250f55fb45cacc40dd6a16c | 19a32440205b2caeec67c73c10d917b5fb30a86a | /test/test_cloud_account_create_params.py | 729711d8628bae2fcbff63c14301d27e5882ccab | [
"MIT",
"Apache-2.0"
] | 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 | 1,331 | py | # coding: utf-8
"""
Copyright 2016 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 applicable l... | [
"[email protected]"
] | |
0cb3fb9fc0bf5c436f79abb096e9c3c3d73b02bb | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /research/object_detection/core/keypoint_ops.py | 4e34d34eccf3f3b0da87fb24dd13973323dabd23 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 11,522 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"[email protected]"
] | |
f747c7fc30189608f2665557c00fa27eb5312c27 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_092/ch68_2020_05_04_19_40_02_713532.py | 94edce737f60b07ea6de9d86db9b8fbf6ef19a20 | [] | 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 | 960 | py | def separa_trios(x):
if len(x)%3 == 0:
i = 0
L1 = []
L2 = []
while i < len(x):
L1.append(x[i])
L1.append(x[i + 1])
L1.append(x[i + 2])
L2.append(L1)
L1 = []
i += 3
return L2
elif len(x)%3 == 2:
... | [
"[email protected]"
] | |
ddff7707ddf45d323fdbddc7a9da8e6465da5e1d | 491c1e520a64e3ebd5349130f35047aaed1e70ec | /contest/maxAscendingSum.py | 854c5fb405b93f90d906324748c19480c1d1e40d | [] | no_license | pangyouzhen/data-structure | 33a7bd7790c8db3e018114d85a137f5f3d6b92f8 | cd46cf08a580c418cc40a68bf9b32371fc69a803 | refs/heads/master | 2023-05-26T12:02:30.800301 | 2023-05-21T08:07:57 | 2023-05-21T08:07:57 | 189,315,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | class Solution(object):
# 这个题如果改成 子序列呢
def maxAscendingSum(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
dp = [0] * len(nums)
dp[0] = nums[0]
for i in range(1, len(nums)):
if nums[i] > nums[i - 1]:
dp[i] =... | [
"[email protected]"
] | |
0c811292eabe29cef6cd91ec494fede6e354542b | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/1d3d6a3e2d2c4b7e50ebc0f191430bfbef4fd40a-<main>-fix.py | 93eb6b2dcb9e8a30f58802955767945e9a6d77f4 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,476 | py |
def main():
module = AnsibleModule(argument_spec=dict(path=dict(type='list', required=True), format=dict(type='str', default='gz', choices=['bz2', 'gz', 'tar', 'xz', 'zip']), dest=dict(type='path'), exclude_path=dict(type='list'), remove=dict(type='bool', default=False)), add_file_common_args=True, supports_check... | [
"[email protected]"
] | |
b91c102509d6cfc53f4dfb4a2f6fad0aa1418164 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_encouraging.py | 80132252a0c761c502ceab036d3d7ee9fc288904 | [
"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 | 409 | py |
#calss header
class _ENCOURAGING():
def __init__(self,):
self.name = "ENCOURAGING"
self.definitions = [u'making you feel more confidence or hope: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[o... | [
"[email protected]"
] | |
66e2b39f73d65ebeac8acb7ee4270d2bf488b601 | 5c37dfaac3a02cc592c154bd9ed1a3fbcf5855cd | /python/cron/numpy.py | 6a5307cbf874d543abfc54dfb176cdaf496672e7 | [] | no_license | thejohnfreeman/cron | 5a91884e5ce8448e6f16b4d0823a05cc429ee37f | c2dbbb50ea8852e0f947b075e9e2f663a450fdcb | refs/heads/master | 2020-12-29T00:41:24.952795 | 2016-03-30T02:29:48 | 2016-03-30T02:30:47 | 55,026,110 | 0 | 0 | null | 2016-03-30T02:31:40 | 2016-03-30T02:31:40 | null | UTF-8 | Python | false | false | 751 | py | """
Numpy support for Cron.
Numpy support is provided in a submodule so that users who do not need it aren't
forced to import numpy.
After this module is imported, Cron types that can be used as numpy array types
will have a `dtype` attribute. For example:
>>> import numpy as np
>>> from cron import Date
>>> ... | [
"[email protected]"
] | |
1057b2013d6364200744efd5a4918a410b79b9bf | 03a70d422855fcf2b488c5070c5ef12001143230 | /virtual/bin/django-admin | c98dbb340f1fcdb0df6f4f85e1453a849a12ae31 | [
"MIT"
] | permissive | bellahOchola/Rater | 0b5f1004552a8d966bff4092bd242834cd68564e | 0251fdc6886eb1bcbad82a7aefc61e0ecf6a0738 | refs/heads/master | 2022-12-11T01:21:39.542482 | 2020-01-17T00:33:18 | 2020-01-17T00:33:18 | 232,781,927 | 0 | 0 | null | 2022-12-08T03:26:23 | 2020-01-09T10:22:29 | Python | UTF-8 | Python | false | false | 309 | #!/home/moringa/Desktop/projects/Django/rater/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"[email protected]"
] | ||
1e30765ae403bdd8a4a0a002c1a6768b0b8fafa0 | 269f18999a158db1a8a736655b84704780439cab | /shots/migrations/0009_remove_image_tags.py | cf21e8bde8d3c97021b08bf3ed43d7db2113b507 | [] | no_license | raul-jr3/fantastic-spoon | 6c6d1a323f4d3ff1dc157c8bfd63e0cd8da41ffd | 557cb3e85d2c385b080564bdf2571bd09c3b6655 | refs/heads/master | 2021-01-02T08:37:20.087398 | 2017-09-14T09:05:13 | 2017-09-14T09:05:13 | 99,033,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-13 14:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('shots', '0008_image_tags'),
]
operations = [
migrations.RemoveField(
mo... | [
"[email protected]"
] | |
c964f1ce9a0d56b63720d461b59ad92d73476c3b | 9192a0bf95b54fcbe76573cc250e590d64328422 | /ibanking_web/ibanking/views.py | 5e90f4bacf087dda72646b04d0de445acae9a6d1 | [] | no_license | ihfazhillah/explore-scrapy | ca07b31ce4c285bef1e1a7e0f5d97da1e3018217 | 74751f687062b47e56a1466836306b84724f094e | refs/heads/master | 2022-12-10T03:00:54.083201 | 2019-02-15T00:41:38 | 2019-02-15T00:41:38 | 166,724,277 | 0 | 0 | null | 2022-12-08T01:37:37 | 2019-01-21T00:22:30 | Python | UTF-8 | Python | false | false | 1,001 | py | from uuid import uuid4
from django.shortcuts import render
from django.http import JsonResponse
from scrapyd_api import ScrapydAPI
from .models import ScrapyItem
# Create your views here.
scrapyd = ScrapydAPI('http://localhost:6800')
def get_statements(request):
unique_id = str(uuid4())
settings = {
... | [
"[email protected]"
] | |
b5f279e0b892ad03556863e8883bdf0635bb56f0 | 4b86ebac6e2273bec07e8f0f1275a9f4c4700491 | /Sort/2947_나무조각.py | b14eb7a5c7ba76ac4a95e165b8923bbaf58b19a0 | [] | no_license | chohan3036/algo_study | 999d8a9d44b27100009246dcf913e07f36787295 | 64abbc8a401f9e555692f01917eb78b0fd37d7fb | refs/heads/master | 2023-04-07T06:13:16.059638 | 2021-04-20T04:32:35 | 2021-04-20T04:32:35 | 307,859,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | import sys
reading = lambda :sys.stdin.readline().strip()
N = list(map(int, reading().split()))
n = 5
for i in range(n):
for j in range(1, n):
if N[j - 1] > N[j]:
temp = N[j - 1]
N[j - 1] = N[j]
N[j] = temp
for k in N:
print(k, end=' ')
... | [
"[email protected]"
] | |
0ab887523c36a9a3a0f880417a77e0c20e147a6d | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/6a8e7087831193afbc3e1799460614506743077b-<stack>-bug.py | 01dc6fbc3cc25cc1e58e588b0c339369943c2826 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,170 | py | def stack(self, level=(- 1), dropna=True):
"\n Stack the prescribed level(s) from columns to index.\n\n Return a reshaped DataFrame or Series having a multi-level\n index with one or more new inner-most levels compared to the current\n DataFrame. The new inner-most levels are created by ... | [
"[email protected]"
] | |
2f07383bfc2b9984072cbf5c3ab0ad171fc409ae | f92fb9b9abe021d5604d3b5fb2ade0fbe6d85e3e | /robot/logging.py | 30ffb6e8cc9edea7f47e51458319b66961d6af58 | [
"MIT"
] | permissive | chuchiring/wukong-robot | a9f4656db45656962614451ebb170b4ca4573871 | f31982738df5b5c3929c713415aee04d13f2f4c8 | refs/heads/master | 2020-04-23T06:45:10.085706 | 2019-02-16T05:51:26 | 2019-02-16T05:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import logging
import sys
import os
from robot import config, constants
from logging.handlers import RotatingFileHandler, HTTPHandler
PAGE = 4096
DEBUG = logging.DEBUG
INFO = logging.INFO
ERROR = logging.ERROR
def tail(filepath, n=10):
"""
实现 tail -n
"""
res = ""
with open(filepath, 'rb') as f:
... | [
"[email protected]"
] | |
7dca2733f4c7e5b4178a1a284fd2614650b0b984 | e522c1606e06cd0a2ea82c57b72aac2e065ad429 | /programming-team/First Semester/UCB/boxes.py | 9d349284cd7c37e4a74902d185a11f42dbe71df4 | [] | no_license | Nate8888/programming-contest-practice | 80d17d7ccea9491f42ec0cccab7e0cfe80849f17 | 4c2496260c209190103d7bbef82d866ae4be09b6 | refs/heads/master | 2023-05-04T16:20:36.136598 | 2021-05-27T22:52:04 | 2021-05-27T22:52:04 | 293,109,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import sys
def k_min_max_partitions(my_list, size, k):
if k == 1:
return sum(my_list[0:size])
if size == 1:
return my_list[0]
current_min_max = 1e27
for current_index in range(1, size + 1):
current_min_max = min(current_min_max, max(k_min_max_partitions(my_list, current_index, k - 1), sum(my_list[curren... | [
"[email protected]"
] | |
ff3b0522f795040dd1eea2c2af80b0748c4a76eb | 151e4ab8bdcff37ded920f32250331c1edc1772d | /tlmshop/serializers/__init__.py | 87773f17382c4d432810508bc9149e2b62673837 | [] | no_license | LegionMarket/django-cms-base | 79069ee67628ff7d10338b48b154fe087863e1ea | 1b6fc3423e3d0b2165552cc980432befb496f3e0 | refs/heads/master | 2020-12-30T17:10:33.866390 | 2017-05-25T12:49:41 | 2017-05-25T12:49:41 | 91,057,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.utils.safestring import mark_safe
from rest_framework import serializers
from shop.serializers.bases import ProductSerializer
from shop.search.serializers import ProductSearchSerializer as BaseProductSearchSe... | [
"[email protected]"
] | |
b0c652a0481b0f73ad11a84bb549814dfbbdff09 | da6fe795eec82abddcc2590696e3cdc0cf479445 | /code/repository.py | b2feefb2acca4238608de76597c9ae80f8a55211 | [] | no_license | techknowledgist/tgist-features | d0b37228ea65d22dec08983d259f2de92dbf02a2 | 994b371e68030f462074ea9a9c32a7f3ddc394f4 | refs/heads/master | 2021-03-24T12:59:37.417498 | 2019-05-14T14:09:20 | 2019-05-14T14:09:20 | 114,810,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,635 | py | """repository.py
Code to build, manage and access repositories.
A repository needs to be initialized once. Once you have a repository you can do
several things:
1- adding all files from a corpus (both sources and processed files)
2- adding sources from a list of files
3- querying the repository for data
... | [
"[email protected]"
] | |
ad14696ccc3a66d98529f577771fe50ff92df097 | 8038c72e9c05b9a962a78002e1ac32ac5797d33f | /qfcommon/base/dbpool.py | 079fa5d9342b7d212f06955af235fb6c82168436 | [] | no_license | liusiquan/open_test | faaf419dcd5877558e25847edf5e128c5e9e64b2 | 0cb0aaf401234ac3274d34dcf08ff633917db048 | refs/heads/master | 2021-01-11T20:44:25.567470 | 2017-01-18T10:13:54 | 2017-01-18T10:13:54 | 79,174,997 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 43,385 | py | # coding: utf-8
import time, datetime, os
import types, random
import threading
import logging
import traceback
import pager
from contextlib import contextmanager
log = logging.getLogger()
dbpool = None
def timeit(func):
def _(*args, **kwargs):
starttm = time.time()
ret = 0
num = 0
... | [
"qfpay@TEST107.(none)"
] | qfpay@TEST107.(none) |
d0c6e4689bcc224f4fde752a7459a16adbb45cf1 | 2e263bb909bb706957990f23d4d07a33fe031a61 | /curiosity_debug.py | dffbbe8768dbdc709baeb1ed25319c6dda169585 | [] | no_license | liziniu/SuperMario | 3e9b776d4c490275b1684b4fd3b3471914811b7d | 64a33901c61591348dd4b9c878e396901dea27b6 | refs/heads/master | 2020-05-16T02:32:10.694180 | 2019-06-02T10:08:11 | 2019-06-02T10:08:11 | 182,632,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,193 | py | import matplotlib
import numpy as np
import tensorflow as tf
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import pandas as pd
import os
import argparse
import pickle
import json
from baselines.common import set_global_seeds
from curiosity.dynamics import Dynamics
from run import build_env
from scipy.stats impo... | [
"[email protected]"
] | |
8eafd7e316029d9719d71cf80f9817845735177a | eb85c96c3783be407b396956c13448d89f5e5fee | /design_patterns_with_python/2-python-design-patterns-m2-exercise-files/Strategy/StrategyVariation/strategy_variation/shipping_cost.py | 39dd4ddcb717c4d486e40cddd906eba548af071d | [] | no_license | ForeverDreamer/python_learning | 83c2c290271dbf060ee1718140b8dfd128b82b20 | ff905c4811ddb688f8ee44aed8c4d8067db6168b | refs/heads/master | 2022-04-30T03:23:45.162498 | 2019-07-05T07:55:01 | 2019-07-05T07:55:01 | 181,037,513 | 1 | 0 | null | 2022-04-22T21:12:46 | 2019-04-12T15:41:44 | Jupyter Notebook | UTF-8 | Python | false | false | 170 | py | class ShippingCost(object):
def __init__(self, strategy):
self._strategy = strategy
def shipping_cost(self, order):
return self._strategy(order)
| [
"[email protected]"
] | |
8390cd4854229dfee6b142cd9d5bbad654885cf3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_223/ch87_2020_04_29_13_42_03_524040.py | 51d2d5546b1465b3bf43fb948f7677c962d2a02a | [] | 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 | 297 | py | with open ('churras.txt', 'r') as churrastxt:
linhas = churrastxt.readlines()
print (linhas)
custo = 0
for linha in linhas:
separa = linha.split(',')
for e in separa:
e1=float(e[1])
e2=float(e[2])
custo+=(e1*e2)
print (custo) | [
"[email protected]"
] | |
b4a637358f8fd61fff627c1eb8da57d3effb6445 | 8b942cbd6a0da0a61f68c468956ba318c7f1603d | /sortings/0056_merge_intervals.py | 9ebfcf815fa3d6974a6efdde33f440b51204ad67 | [
"MIT"
] | permissive | MartinMa28/Algorithms_review | 080bd608b0e0c6f39c45f28402e5181791af4766 | 3f2297038c00f5a560941360ca702e6868530f34 | refs/heads/master | 2022-04-13T03:56:56.932788 | 2020-04-06T03:41:33 | 2020-04-06T03:41:33 | 203,349,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | class Solution:
def merge(self, intervals: list) -> list:
sorted_intervals = sorted(intervals)
idx = 0
while idx < len(sorted_intervals) - 1:
start, end = sorted_intervals[idx]
next_start, next_end = sorted_intervals[idx + 1]
if end >= next_start:
... | [
"[email protected]"
] | |
85a9c7cc2c8dbd8ce1eda62b1dbc50f5b32114df | bb6ebff7a7f6140903d37905c350954ff6599091 | /tools/clang/blink_gc_plugin/process-graph.py | 2bff96f76ad6c8f3698738e85c74f29c3a901e19 | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 13,211 | py | #!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse, os, sys, json, subprocess, pickle, StringIO
parser = argparse.ArgumentParser(
description =
"Process the Blink ... | [
"[email protected]"
] | |
5261b1fa72f0205b52d000597183839bd1f223ff | 2c7e967b5cb7c911245463ae1cd152b25b5e0b89 | /steps/google.py | 54cefc195ca13018e3b6ebd16626e1f29e1f6c1f | [
"MIT"
] | permissive | antonckoenig/citeas-api | 902d725c59dad9292c68f873d3a3512c77ceb06e | 9a0da10fad95b49363ef43c4d02be1dcb17169d6 | refs/heads/master | 2023-07-30T13:08:39.967004 | 2021-09-19T20:08:13 | 2021-09-19T20:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | from googlesearch import get_random_user_agent, search
from steps.arxiv import ArxivResponseStep
from steps.bitbucket import BitbucketRepoStep
from steps.cran import CranLibraryStep
from steps.core import Step
from steps.github import GithubRepoStep
from steps.pypi import PypiLibraryStep
from steps.webpage import Webp... | [
"[email protected]"
] | |
97f7334a5bc7c96d20dfd8b287e3555d16fb9d1d | 541fa581db6368486605fb8b622196e6fb9fc45f | /backend/manage.py | 7b40c4858ed128a63f6a08a7f209ec4b57e713cd | [] | no_license | crowdbotics-apps/speakup-radio-19595 | a8c92dd5b343cfaf95897108215feb3775f66ccf | cf97afc333feb0e81e0f8d2e4115ce983d66589f | refs/heads/master | 2022-12-03T03:05:29.785944 | 2020-08-16T16:15:05 | 2020-08-16T16:15:05 | 287,979,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'speakup_radio_19595.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"[email protected]"
] | |
d755209ee2ddbde3f348bfcc20afc00768056f8e | d2024f10e641ab2f28a888d23071edc032299498 | /demo04062018/object_rec_camera_pointing_v3_ts.py | 1ce5bae4c0cba1cb4c90475cc91a28de52d3016d | [] | no_license | chen116/demo2018 | 6f2ae07150182b8e14a2eacbc57bdc79c03e6dee | d289545bcc30445be26e1381d5301d8f657d0c6e | refs/heads/master | 2021-04-27T13:11:44.742650 | 2018-07-14T14:38:37 | 2018-07-14T14:38:37 | 122,435,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,290 | py | # USAGE
# python real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel
# import the necessary packages
from imutils.video import VideoStream
from imutils.video import FPS
from foscam_v3 import FoscamCamera
import numpy as np
import argparse
import imutils
impo... | [
"[email protected]"
] | |
b7e68212cd709d9a98d2c452268db90ad47392ae | 871d2a367e45164f21ecdbefe52bf442b563b33c | /tests/tests/correctness/EPLAnalytics/Utilities/DataSimulator/sim_cor_030/run.py | df3cb6f159e3069ad3abecc6e54e13c8a54fb953 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | SoftwareAG/apama-industry-analytics-kit | c0f6c30badf31411a29bc6daa4a7125b76f4e737 | a3f6039915501d41251b6f7ec41b0cb8111baf7b | refs/heads/master | 2022-02-19T20:47:27.180233 | 2022-02-02T12:58:23 | 2022-02-02T12:58:23 | 185,572,282 | 3 | 2 | Apache-2.0 | 2022-02-02T12:58:24 | 2019-05-08T09:14:07 | Python | UTF-8 | Python | false | false | 3,894 | py | # $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an... | [
"[email protected]"
] | |
6576c4f0d44e7715aa4ad36675fbe3c92075e2db | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02381/s751837364.py | bd7cb0f49528872efae67b22b1fb8ff06610b153 | [] | 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 | 743 | py | # Standard Deviation
end = 0
while end == 0:
studentAmount = int(input())
if studentAmount == 0:
end += 1
else:
scoreData = [int(i) for i in input().rstrip().split()]
totalScore = 0
for score in scoreData:
totalScore += score
averageScore = totalScore / s... | [
"[email protected]"
] | |
78a893873241271aad40cdcd58e8cd782cbe62e3 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/hvy_chainer-gan-improvements/chainer-gan-improvements-master/sample.py | 8326637b1ad23d6efabde2e6c8394804eb7dfa71 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,109 | py | import argparse
import numpy as np
from chainer import serializers
from models import Generator
import plot
# Resize the MNIST dataset to 32x32 images for convenience
# since the generator will create images with dimensions
# of powers of 2 (doubling upsampling in each deconvolution).
im_shape = (32, 32)
def parse_... | [
"[email protected]"
] | |
ecfc3bac0bddf6b0310970297e5c76cc50d20103 | e33e414418be93aa0fb19c38b82b221ed8826460 | /intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/tests/test_base.py | 41e0c22a674faf17892e0df2b8aceaa3fafe3569 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | wisererik/proposals | 69e4caaf89d7838c14b18328dc261b6c914748bf | 9db7413983df9341d1796f2acba7202d36f31278 | refs/heads/master | 2021-05-03T23:12:39.496346 | 2018-12-22T04:02:46 | 2018-12-22T04:02:46 | 120,399,059 | 0 | 0 | null | 2018-02-06T03:54:13 | 2018-02-06T03:54:13 | null | UTF-8 | Python | false | false | 1,582 | py | from vsmclient import base
from vsmclient import exceptions
from vsmclient.v1 import vsms
from tests import utils
from tests.v1 import fakes
cs = fakes.FakeClient()
class BaseTest(utils.TestCase):
def test_resource_repr(self):
r = base.Resource(None, dict(foo="bar", baz="spam"))
self.assertEqua... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.