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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8a196d6aa3611a6fbcce7ad132fcd437d7f6bf3 | b1b86d8528df27d99ed56ed16f1ba15b5ae78661 | /build_isolated/waterplus_map_tools/cmake/waterplus_map_tools-genmsg-context.py | 13af763d2d6d2c9932b8be57f4bfc5f85289af4d | [] | no_license | gychen-n/match | 8754ac128b43f81e00faf3ab2af160af70a1d4a3 | ec91f19d104aa4a827c9f66d362f94fe44739cad | refs/heads/main | 2023-04-09T19:56:55.507118 | 2021-04-15T13:39:02 | 2021-04-15T13:39:02 | 358,268,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/gyc/match_ws/src/tools/waterplus_map_tools/msg/Waypoint.msg"
services_str = "/home/gyc/match_ws/src/tools/waterplus_map_tools/srv/SaveWaypoints.srv;/home/gyc/match_ws/src/tools/waterplus_map_tools/srv/AddNewWaypoint.srv;/home/gyc/match_ws/src/to... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
ab104e594bbf8454e09b791cefc01091331f1e51 | a90077635aeac846965381e0b07591a1df011afe | /care/facility/summarisation/facility_capacity.py | 17669b7b24a61209378ee70cec2dbb3a812a2584 | [
"MIT"
] | permissive | Basharckr/care | f873ca140ae8607846d9b9500e3c21e9bfa15800 | c86ae2614ea9ba80b140a2eb21ad64fdbb47ad7e | refs/heads/master | 2023-06-17T21:26:48.936321 | 2021-07-12T06:03:52 | 2021-07-12T06:03:52 | 386,884,450 | 1 | 0 | MIT | 2021-07-17T08:41:09 | 2021-07-17T08:41:09 | null | UTF-8 | Python | false | false | 8,112 | py | from celery.decorators import periodic_task
from celery.schedules import crontab
from django.db.models import Sum
from django.utils.decorators import method_decorator
from django.utils.timezone import localtime, now
from django.views.decorators.cache import cache_page
from django_filters import rest_framework as filter... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
d3d10a4755e4599dfc81f7fea2fea1d344dc0b4b | 82bdb812582e7ad42db922023f3eb84b4fb80f72 | /networks.py | 4a8973311254d1c7786d7381d47672b7ffe20ffd | [] | no_license | hzaskywalker/AWR-Python | cda43594248f3db563456f67c677db4508f80a5c | 4fb00f3691b980c93734b11fab6002737a369b31 | refs/heads/master | 2022-10-11T09:31:37.742771 | 2020-06-11T17:18:10 | 2020-06-11T17:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | import torch
import numpy as np
class Value:
def __init__(self, policy):
self.policy = policy
def __call__(self, state, params):
state = torch.cat((state, params), dim=-1)
act = self.policy.actor_target(state)
cri1, cri2 = self.policy.critic_target(state,act)
return torc... | [
"hzaskywalker@gmail.com"
] | hzaskywalker@gmail.com |
d97fa27fd1ef8dab53b15a077aea13385d7f7afd | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Quantization/trend_MovingMedian/cycle_12/ar_/test_artificial_128_Quantization_MovingMedian_12__100.py | 64695ec2235c61ebbe172764ee17c38a3ffdbfd8 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 272 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
b87981a578e9f0a4fa7bd52c97f63d833cf5ea5c | 3d7e1a506d65c23c84b7430fa46623cb98de8c64 | /median.py | dc0584831963d0d6f87700eddb7c8140d94fb9f2 | [] | no_license | crakama/UdacityIntrotoComputerScience | cb6ac8a9084f078eaf245a52adc43541c35dc3f4 | 416b82b85ff70c48eabae6bb9d7b43354a158d9a | refs/heads/master | 2021-01-09T20:39:15.974791 | 2016-07-18T20:59:09 | 2016-07-18T20:59:09 | 60,571,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Define a procedure, median, that takes three
# numbers as its inputs, and returns the median
# of the three numbers.
# Make sure your procedure has a return statement.
def bigger(a,b):
if a > b:
return a
else:
return b
def biggest(a,b,c):
return bigger(a,bigger(b,c))
def median(a, b, c... | [
"crakama89@gmail.com"
] | crakama89@gmail.com |
1ee30cd5b57a8912f7804703d5709be5b9d229d5 | 77ca708f981b3d4127568ff416e3c0a3dc1fff94 | /util/cli_parser.py | be02dbf7e3bb509d0d10d208c7954fafe85a7c4c | [
"Apache-2.0"
] | permissive | inksong/bidDB_downloader | df7046cadc392872d4ed58bd730474771e83aaf0 | 1550b6006d1d21bab726bbe5a10c8c2d7aa94bbc | refs/heads/master | 2022-03-06T19:10:03.333813 | 2019-09-28T19:41:15 | 2019-09-28T19:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | import argparse
import sys
class CLIParser:
# -- Public methods
# CLIParser Constructor
def __init__(self):
super(CLIParser, self).__init__()
self.parser = argparse.ArgumentParser(prog='bidDB_downloader.py', description='BugTraq database downloader.')
self.parser.add_argument('-w... | [
"eliasgr89@gmail.com"
] | eliasgr89@gmail.com |
bd1e701a5e902eca16077631d3424e1691ebb4f5 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project2/Project2/.history/blog/models_20211115152413.py | 443d1fa03512e592b13bcd760279c43dbb1f7c43 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 778 | py | from django.db import models
from django.contrib.auth.models import User
from ckeditor
# Create your models here.
STATUS = ((0, "Draft"), (1, "Published"))
USE_TZ = False
class Blog(models.Model):
title = models.CharField('Tiêu đề', max_length=250, blank=True)
slug = models.SlugField(max_length=250, blank=Tr... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
31b60af5a9eaecb9ec2663c0f1867332d0f02a28 | 4f328184e3e4c7ac84792f38127b4538abc1be01 | /python/re-split/main.py | fd853268133194acce224d22a6d46a05d5308ea7 | [
"Apache-2.0"
] | permissive | shollingsworth/HackerRank | 30cd45960af5983ed697c0aaf9a6e4268dc75ef7 | 2f0e048044e643d6aa9d07c1898f3b00adf489b0 | refs/heads/master | 2021-08-17T09:08:44.532111 | 2017-11-21T02:04:09 | 2017-11-21T02:04:09 | 103,992,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import __future__
import sys
import json
def banner():
ban = '====' * 30
print("{}\nSAMPLE INP:\n{}\n{}".format(ban,ban,open(ip, 'r').read()))
print("{}\nSAMPLE OUT:\n{}\n{}".format(ban,ban,open(op, 'r').read()))
print("{}\nSTART:\n{}".format(ban,ban))
... | [
"shollingsworth@barracuda.com"
] | shollingsworth@barracuda.com |
10e2710b765ceac6d9a48e440c623599ef107024 | 98dae6deaf31bcacc078eeb1bdbdb8bd3ac3784f | /dace/transformation/dataflow/copy_to_device.py | 625179c8445725cf5df002835c54eae68478799a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cpenny42/dace | da9b241ea0808f1798645ab917e1484c45a3a748 | 2c7814b4f02a6870bb25ae08113c0cc3791e1178 | refs/heads/master | 2020-06-24T09:06:23.091624 | 2019-05-10T11:11:14 | 2019-05-10T11:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,767 | py | """ Contains classes and functions that implement copying a nested SDFG
and its dependencies to a given device. """
import dace
from copy import deepcopy as dcpy
from dace import data, properties, symbolic, types, subsets
from dace.graph import edges, graph, nodes, nxutil
from dace.transformation import pattern_ma... | [
"talbn@inf.ethz.ch"
] | talbn@inf.ethz.ch |
a77bf7cae50058808c751ebac3a9f47a4889aeef | c51c92dc1ba350b821899715cd16ba0b8d67653c | /dlmPython/dlm_mod.py | 35250f347c78335a3bad42287d6e1e41452c3dfd | [
"MIT"
] | permissive | luiarthur/dlmPython | a0c2196d9753e010d4417afa6a9e439966c2bb8d | c3d6328b1260c795759637cd8d26d3f79febd950 | refs/heads/master | 2021-01-19T21:40:43.987505 | 2019-11-14T16:50:00 | 2019-11-14T16:50:00 | 88,685,692 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | import numpy as np
from .lego import E, J, join
from .dlm_uni import dlm_uni
def arma(ar=[], ma=[], tau2=1, V=None):
"""
ARMA component for DLM
- ar: list of ar coefficients
- ma: list of ma coefficients
- tau2: variance for evolution matrix
- V: variance for observations
Note that there ... | [
"luiarthur@gmail.com"
] | luiarthur@gmail.com |
f07b402cb9a7603154f115821368167dcb9a18cc | 4472e40c53ca3e1df4f9e477a6268133309b7597 | /_unittests/ut_module/test_r.py | d4017e655d6fc616855c64c993b23fc27ae187d5 | [
"MIT"
] | permissive | amoussoubaruch/ensae_teaching_cs | 289729742608da064f07a79b10cf6cce48de1b51 | 313a6ccb8756dbaa4c52724839b69af8a5f4476e | refs/heads/master | 2021-01-16T19:31:49.734583 | 2016-09-09T08:29:58 | 2016-09-09T08:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | """
@brief test log(time=0s)
"""
import sys
import os
import unittest
import warnings
try:
import src
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..")))
if path not ... | [
"xavier.dupre@ensae.fr"
] | xavier.dupre@ensae.fr |
016650fdb1063f4afb72aea3f846462aea5c8cf0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2254/60636/258712.py | 5d40a74827de64da87dac87a1dc8edd1768d7ecf | [] | 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 | 763 | py | f_r=input().split(" ")
f=int(f_r[0])
r=int(f_r[1])
sources=[]
for i in range(f):
source=[]
for j in range(f):
source.append("0")
sources.append(source)
for i in range(r):
x=input().split(" ")
sources[int(x[0])-1][int(x[1])-1]="1"
sources[int(x[1])-1][int(x[0])-1]="1"
count_1=0
count_odd=... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c8712f660e267eac3ed0a4a151298d3036d8637c | 696dec6a8d1eba189d36049afedec36da47c08f3 | /models/_model_core_utils/__init__.py | fe191e1f22cc8de28fd6c2603d2190a44aeef2ff | [] | no_license | JoelRaymann/polyp-segmentation | d99079f56bb3ae0886fb4c610c4abcc420137781 | 38da6c8bf47df2d2382d31f04faf63649b7d8ab0 | refs/heads/master | 2023-04-10T06:17:34.720237 | 2021-04-14T22:04:36 | 2021-04-14T22:04:36 | 358,053,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from ._unet import UNet
from ._unet_dice import UNetDice
from ._resunet import ResUNet
from ._deeplabv3 import Deeplabv3
from ._fcn import FCN8
from ._segnet import SegNet
from ._unet_attn import UNetAttn
from ._gar_net import GARNet
from ._resunet_plus_plus import ResUNetPlusPlus
from ._dilated_resfcn import DilatedRe... | [
"joelraymann@gmail.com"
] | joelraymann@gmail.com |
89339d45b4d3abc2eac1659c9dae145f5a8846f8 | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/130_Fluent_Python/fp2-utf8/freeinteractive/freeinteractive 192.py | 67edeb4bbefbcf40a50db41edc107e2f2a0bb953 | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | >>> from domainlib import multi_probe
>>> names = 'python.org rust-lang.org golang.org nolang.invalid'.split()
>>> gen_found = (name async for name, found in multi_probe(names) if found)
>>> gen_found
<async_generator object <genexpr> at 0x10a8f9700>
>>> async for name in gen_found:
... print(name)
...
golang.org
p... | [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
6808c8c41ce560a5d7aabbbe7ab1d3bcd280de35 | da2d53e8021b539db006fa31f02d1c2ae46bed3b | /Test/test.py | af89a96f0b23218a82cfcd3e536f4901d5f99677 | [] | no_license | srajsonu/CodeChef | 0723ee4975808e2f4d101d2034771d868ae3b7f7 | a39cd5886a5f108dcd46f70922d5637dd29849ce | refs/heads/main | 2023-04-22T08:33:06.376698 | 2021-05-16T05:48:17 | 2021-05-16T05:48:17 | 327,030,437 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,929 | py | """
1 : [2, 3]
7 <-> 6 (1)
6 <-> 5 (2)
2 <-> 8 (2)
0 <-> 1 (4)
2 <-> 5 (4)
6 <-> 8 (6)
2 <-> 3 (7)
7 <-> 8 (7)
3 <-> 4 (9)
5 <-> 4 (10)
1 <-> 7 (11)
3 <-> 5 (14)
7 -> 6 -> 5 -> 4
|
2 -> 8
"""
from collections import defaultdict
class Solution:
def find_root(self, A, parent):
... | [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
146a0a6e3d8f7b969b3b61b74b99b083cfd95fc1 | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /examples/tutorial2.py | 3a952ba678b6f688c3b4fe342830ac8cf6ac0bc4 | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 1,284 | py | ##############################################################################
#
# A simple program to write some data to an Excel file using the XlsxWriter
# Python module.
#
# This program is shown, with explanations, in Tutorial 2 of the XlsxWriter
# documentation.
#
# Copyright 2013-2019, John McNamara, jmcnamara@c... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
ee98f3883988b0a75df2d59495dab5b03aae7026 | b4afb834fc3a3e2c128b1bf825700031e3df519a | /examples/cobalt-preproc/Arctic/fix_pole.py | 7e8aedf62b4f44becced7e92fdac0761988e3965 | [
"BSD-3-Clause"
] | permissive | ESMG/pyroms | e4e5e9d70d66907a992846b06d61db31afcd24f3 | 5ea501ef904b01036dd2a0909b7bdc61a56e7eff | refs/heads/python3 | 2023-03-19T11:11:09.143443 | 2023-03-10T00:22:13 | 2023-03-10T00:22:13 | 1,012,779 | 102 | 63 | NOASSERTION | 2023-03-10T00:23:20 | 2010-10-21T17:22:48 | Python | UTF-8 | Python | false | false | 1,787 | py | import subprocess
import os
import sys
import subprocess
import numpy as np
import netCDF4 as nc
dst_dir='./'
ic_file = dst_dir + 'ARCTIC4_ic_bio_GFDL-APR.nc'
fidic = nc.Dataset(ic_file,'a')
Cs_r = fidic.variables['Cs_r']
nz = Cs_r.shape[0]
# define all tracer stuff
list_tracer = ['alk', 'cadet_arag', 'cadet_calc', ... | [
"kshedstrom@alaska.edu"
] | kshedstrom@alaska.edu |
4357bfbaea73a6e8726ec1d1643b71f701b1c489 | 091e97bcfe5acc0635bd601aa8497e377b74d41a | /openshift/installer/vendored/openshift-ansible-3.11.28-1/roles/openshift_health_checker/test/etcd_traffic_test.py | 583c4c8dd86b2cf5270083b912f639bb34d4f855 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | openshift/openshift-tools | d59b63778f25cb8fb3c7a0253afe22a173e72f9d | e342f6659a4ef1a188ff403e2fc6b06ac6d119c7 | refs/heads/prod | 2023-08-30T01:52:04.108978 | 2022-03-23T21:07:28 | 2022-03-23T21:07:28 | 36,827,699 | 170 | 254 | Apache-2.0 | 2022-06-16T12:11:51 | 2015-06-03T20:09:22 | Python | UTF-8 | Python | false | false | 2,219 | py | import pytest
from openshift_checks.etcd_traffic import EtcdTraffic
@pytest.mark.parametrize('group_names,version,is_active', [
(['oo_masters_to_config'], "3.5", False),
(['oo_masters_to_config'], "3.6", False),
(['oo_nodes_to_config'], "3.4", False),
(['oo_etcd_to_config'], "3.4", True),
(['oo_e... | [
"mwoodson@redhat.com"
] | mwoodson@redhat.com |
8aa14bff98269133382561e641d8d76226b5b446 | 8383211ad5eb9bb91fef7642e43a8f148530b8fc | /iga/package.py | 80c06890c846b23037d75e3903d72737c83c77b2 | [
"MIT"
] | permissive | clchiou/iga | 599f1ba653323a49d9a26f66c072a9b4a2f0dcd7 | 5958f77410d63b712d13db142bfd5ecfbf4ce821 | refs/heads/master | 2021-01-23T19:37:15.670514 | 2015-04-25T07:28:17 | 2015-04-25T07:28:17 | 31,150,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | __all__ = [
'get_outputs',
'get_rule',
]
import itertools
import logging
import iga.context
import iga.precond
from iga.build_rules import build_rules
from iga.core import WriteOnceDict
from iga.error import IgaError
from iga.path import Glob
from iga.rule import Rule
from iga.rule import RuleFunc
LOG = log... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
7e9e65b6dd1786e6e0c861077cf5c2096ec0ec71 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/pytest_test_20201123175355.py | e93f7595e48e3c38b47a185afc239ff87f50977e | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import pytest
import yaml
class Test_A:
# @pytest.mark.parametrize('a,b',[(10,20),(5,5)])
@pytest.mark.parametrize('a,b',yaml.safe_load.)
def test_data1(self,a,b):
print(a + b)
def test_data2(self):
a = 5
b = 5
print(a+b)
if __name__ == '__main__':
pytest.main(['py... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
0d30703c7f61070278fc2ff6e705ad1ea92f81b0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_restrictions.py | c41ad3763392207c8a6b6d3285a039f0e0d179bf | [
"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 | 273 | py |
from xai.brain.wordbase.nouns._restriction import _RESTRICTION
#calss header
class _RESTRICTIONS(_RESTRICTION, ):
def __init__(self,):
_RESTRICTION.__init__(self)
self.name = "RESTRICTIONS"
self.specie = 'nouns'
self.basic = "restriction"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7007e09c94950e2c259af5e00524b68cd8a2997b | 8f0524fc0171e27a15f4cf5fb3fe48ef2053b40e | /hacker_rank/unique email addresses.py | bd763c3bf92789740bab9fbd0e863e314a5bfcfc | [] | no_license | MohammedAlewi/competitive-programming | 51514fa04ba03d14f8e00031ee413d6d74df971f | 960da78bfa956cb1cf79a0cd19553af97a2aa0f3 | refs/heads/master | 2023-02-08T20:25:58.279241 | 2023-02-02T00:11:23 | 2023-02-02T00:11:23 | 222,710,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | def format_email(email):
email=list(email)
remove=False
for i in range(len(email)):
if email[i]=='@':
break
if email[i]=='+':
remove=True
if email[i]=='.':
email[i]=''
if remove:
email[i]=''
return "".join(email... | [
"rofyalewi@gmail.com"
] | rofyalewi@gmail.com |
6d83260ea939da933135941f5c115787ed5d1ba1 | 0f15175752b462b29725b459b46752facad35642 | /tests/test_inputunit.py | f591e232e28cc0c42f917d722cd371938446aea1 | [
"BSD-2-Clause-Views"
] | permissive | Shadiesna/ooni-probe | f36d69fa2786e97df68cf0808da43190d4ab1daa | 01d80a2abc235fedbd2944500e259e537fd46c45 | refs/heads/master | 2021-01-16T20:03:18.727535 | 2012-11-22T22:23:07 | 2012-11-22T22:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import unittest
from ooni.inputunit import InputUnit, InputUnitFactory
class TestInputUnit(unittest.TestCase):
def test_input_unit_factory(self):
inputs = range(100)
inputUnit = InputUnitFactory(inputs)
for i in inputUnit:
self.assertEqual(len(list(i)), inputUnit.inputUnitSize)
... | [
"arturo@filasto.net"
] | arturo@filasto.net |
11007dbad5d04425e7f5781917716b9c536e4900 | 26452a6f63cf22f938498799db9f8e1997641774 | /Flask/blog_flask/migrations/versions/c4a89bd2a384_.py | 78958337a2948528512fe9e84cfb519c9345e57e | [] | no_license | zarkaltair/Python-frameworks | 9829e4b5130dd67a513c9e1426775cd761b96258 | 632ee4da8e008a6b0c27198dc4722b5aa3c464b8 | refs/heads/master | 2021-06-14T14:59:23.881043 | 2020-08-10T15:01:02 | 2020-08-10T15:01:02 | 160,838,202 | 0 | 0 | null | 2021-03-20T00:30:43 | 2018-12-07T15:02:39 | Python | UTF-8 | Python | false | false | 1,499 | py | """empty message
Revision ID: c4a89bd2a384
Revises: da529ec88f6e
Create Date: 2019-02-04 23:41:02.786665
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c4a89bd2a384'
down_revision = 'da529ec88f6e'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"zarkaltair@gmail.com"
] | zarkaltair@gmail.com |
7aeb5411bc3db40e176c74f2f877e1c693ec71ba | fcdce57c1bd0cc4f52679fd0f3f82532550083fa | /214/countdown.py | aae0037e13d043346509cc187fbc2036bd61c9db | [] | no_license | nishanthegde/bitesofpy | a16a8b5fb99ab18dc1566e606170464a4df3ace0 | c28aa88e1366ab65f031695959d7cd0b3d08be6b | refs/heads/master | 2023-08-08T16:53:17.107905 | 2023-07-22T19:07:51 | 2023-07-22T19:07:51 | 183,959,400 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from itertools import islice
def countdown():
"""Write a generator that counts from 100 to 1"""
for i in range(100, 0, -1):
yield i
def simple_generator_function():
yield 1
yield 2
yield 3
# def main():
# # print('thank you for my life...')
# our_generator = si... | [
"nhegde@netflix.com"
] | nhegde@netflix.com |
0a4805eb9f3b7986ac7670f7a74595f7d72db420 | a992d10d89a4aea6bc67cf36f2b4db18e542cf0c | /NineChapters/FindConnectedComponentInDirectedGraph.py | a13f4c45fb34cdb034e70798a1d08752a0161c01 | [] | no_license | KeleiAzz/LeetCode | 81f5ac3f0c722bbabbcce4f29809722c191a6850 | 3d82e6c402711057a95a6435fc29fbfcf2ee9c8f | refs/heads/master | 2021-01-17T10:34:42.443543 | 2016-04-05T18:17:54 | 2016-04-05T18:17:54 | 41,068,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | # Definition for a undirected graph node
# class UndirectedGraphNode:
# def __init__(self, x):
# self.label = x
# self.neighbors = []
class Solution:
# @param {UndirectedGraphNode[]} nodes a array of undirected graph node
# @return {int[][]} a connected set of a undirected graph
def conn... | [
"kgong@ncsu.edu"
] | kgong@ncsu.edu |
552c7fe21a247d235ef5c79fbb2b8bebcd54438e | 54fa8e9d460e8aa0b64fe26056e2760d87e7bbcf | /baseball_utils/get_today.py | bbd8371d94130c19dd9e53c4cec17d0dc8abf2af | [
"MIT"
] | permissive | mvwicky/baseball-utils | eb0050076d64e238353d2a86fdaa7c52bc861dbc | 124e315a8310e32acec716c25cb6615feac02b5c | refs/heads/master | 2020-03-22T22:19:47.907792 | 2018-07-13T17:36:58 | 2018-07-13T17:36:58 | 140,746,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from datetime import datetime
import attr
from requests import Session
from baseball_utils.gameday import GamedayData
from baseball_utils.savant import Savant
from baseball_utils.util import SESSION, default_attrs
def get_today():
td = Today(SESSION)
return td.probables()
@default_attrs()
class Today(obj... | [
"mvanwickle@gmail.com"
] | mvanwickle@gmail.com |
d7fd680264a075e0008e66128f731daba3352906 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/twilio/twiml/fax_response.py | 86f0d47e9326dbf2c53d110fb4668e8cb531ea2c | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 956 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
import json
from twilio.twiml import (
TwiML,
format_language,
)
class FaxResponse(TwiML):
""" <Response> TwiML for Faxes """
def __init__(self, **kwargs):
... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
45506a93ffee58f66e981c1a00e7ef24971fca43 | 8671856181ef218f147f23f367fd0b1dc7592e1a | /customers/admin.py | 243b18c20c73174bcd5b48544007e62989c33ddd | [] | no_license | Alishrf/Shop_Website | e4fef9618aec2db6f4a655ff643aa68cf42dbb68 | 971d4a2ff8b7a68a0157681ff26404fe403502e6 | refs/heads/master | 2020-08-11T06:03:47.642870 | 2019-10-14T14:29:30 | 2019-10-14T14:29:30 | 214,504,737 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from django.contrib import admin
from .models import Customer
class CustomerAdmin(admin.ModelAdmin):
list_display = ('user',)
admin.site.register(Customer,CustomerAdmin)
| [
"a.sharifzadeh11@gmail.com"
] | a.sharifzadeh11@gmail.com |
9c33d352506198e4532780e67484f4a8d6a6b723 | 129cf00f2d4f38ba53cb638b38c75a191402ac8d | /ctfcli/core/plugins.py | 4829493ac6977713f8ee265771ec8945f38bf7a2 | [
"Apache-2.0"
] | permissive | CTFd/ctfcli | ab92dedf467e234f9e19daab2fd7853697809aa2 | 928966c0b360d7864f2e535d258569edb7f93f88 | refs/heads/master | 2023-09-04T06:25:36.438018 | 2023-08-31T15:40:08 | 2023-08-31T15:40:08 | 252,505,424 | 139 | 57 | Apache-2.0 | 2023-09-04T22:58:54 | 2020-04-02T16:14:57 | Python | UTF-8 | Python | false | false | 605 | py | import importlib
import logging
import sys
from typing import Dict
from ctfcli.core.config import Config
log = logging.getLogger("ctfcli.core.plugins")
def load_plugins(commands: Dict):
plugins_path = Config.get_plugins_path()
sys.path.insert(0, str(plugins_path.absolute()))
for plugin in sorted(plugin... | [
"noreply@github.com"
] | CTFd.noreply@github.com |
524a89245ae2b00ec761491fdff18fee9d9f01df | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/python/training/rmsprop.pyi | 402add92a5c8c927c4a7d9283e05df91e4e0070f | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | pyi | # Stubs for tensorflow.python.training.rmsprop (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python.framework import ops as ops
from tensorflow.python.ops import array_ops as array_ops, init_ops as init_ops, math_ops as math_ops
from tensorflow.python.training... | [
"matangover@gmail.com"
] | matangover@gmail.com |
87dd0f2152017150f51e44d48c8c79da3578a5d3 | 80d596df8a8ce8f9c844b325d2df5a1185581595 | /clld/lib/rdf.py | 232543caf318debf194d1af0d52c9dbb675e2bf7 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | FieldDB/clld | 780d2893d6fdc766f91df0886280c0ea02f640eb | 4738caf5125648dc952a97692c38f90ba13011b1 | refs/heads/master | 2021-01-15T15:15:55.131288 | 2014-02-17T20:25:10 | 2014-02-17T20:25:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | """
This module provides functionality for handling our data as rdf.
"""
from collections import namedtuple
from cStringIO import StringIO
from rdflib import Graph, URIRef, Literal
from rdflib.namespace import (
Namespace, DC, DCTERMS, DOAP, FOAF, OWL, RDF, RDFS, SKOS, VOID, XMLNS,
)
# make flake8 happy, but still... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
74bb80ae19f6954190d3a560b8bea9a8bcb80441 | cfefcd99016a908df2584896845406942097671d | /python/test/test_portal_setting_value_list.py | 317ced9bb1079bacd0e94b55d01464c91a68e87f | [] | no_license | tomasgarzon/vigilant-guacamole | 982a8c7cb0a8193bb3409014b447ad8a70e6eb36 | bde73674cf0461e2fcdfce5074bf9d93a47227f7 | refs/heads/main | 2023-08-17T01:51:27.168440 | 2021-09-01T11:23:46 | 2021-09-01T11:23:46 | 398,827,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | """
Nucoro API
No description # noqa: E501
The version of the OpenAPI document: 4.175.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_client.model.portal_setting_value_list import PortalSettingValueList
class TestPortalSettingValue... | [
"tomasgarzonhervas@gmail.com"
] | tomasgarzonhervas@gmail.com |
a95e55e38b9d6a992da62ca6d9b84f7dfc0690cd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_countries.py | 0afbe19c74dda7dd31584a6a6e1c39ece912a31d | [
"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 | 228 | py |
#calss header
class _COUNTRIES():
def __init__(self,):
self.name = "COUNTRIES"
self.definitions = country
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['country']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7d5775a6b98d8aad1f6a14ac34b9357c5a103968 | 2b52e32f8ba65202078bde0173eb8e972434d3f8 | /Python_Algorithm/Baek/17072.py | 141252b6bae20376848af324ff10ec28a59c4398 | [] | no_license | HoeYeon/Algorithm | 7167c463922227c0bc82e43940f7290fc1fa16af | 0e5ce2a3347d733bbaa894391cbf344fcb5161d6 | refs/heads/master | 2020-09-08T17:27:56.654485 | 2020-08-02T08:23:46 | 2020-08-02T08:23:46 | 221,195,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | def i_f(li):
num = (2126*li[0] + 7152*li[1] + 722*li[2])
if 0 <= num < 510000:
return '#'
elif 510000 <= num < 1020000:
return 'o'
elif 1020000 <= num < 1530000:
return '+'
elif 1530000 <= num < 2040000:
return '-'
elif 2040000 <= num:
return '.'
n, m = ma... | [
"shy9546@naver.com"
] | shy9546@naver.com |
b6b9f0446819b1f0796ee2f017b86c55a180a31c | dce4a52986ddccea91fbf937bd89e0ae00b9d046 | /jni-build/jni/include/tensorflow/contrib/graph_editor/tests/subgraph_test.py | b20632a6c212dfe946b0f0a96c26b327a97aebde | [
"MIT"
] | permissive | Lab603/PicEncyclopedias | 54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6 | 6d39eeb66c63a6f0f7895befc588c9eb1dd105f9 | refs/heads/master | 2022-11-11T13:35:32.781340 | 2018-03-15T05:53:07 | 2018-03-15T05:53:07 | 103,941,664 | 6 | 3 | MIT | 2022-10-28T05:31:37 | 2017-09-18T13:20:47 | C++ | UTF-8 | Python | false | false | 3,145 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"super_mr.z@hotmail.comm"
] | super_mr.z@hotmail.comm |
8b44925e87277f4b637f2fb3403862d23eb35a82 | 62226afe584a0d7f8d52fc38ca416b19ffafcb7a | /hwtLib/amba/axi_comp/slave_timeout_test.py | bdcc4f60d7f43ba87be5625c2c8cd3564a3b0a8b | [
"MIT"
] | permissive | Nic30/hwtLib | d08a08bdd0bf764971c4aa319ff03d4df8778395 | 4c1d54c7b15929032ad2ba984bf48b45f3549c49 | refs/heads/master | 2023-05-25T16:57:25.232026 | 2023-05-12T20:39:01 | 2023-05-12T20:39:01 | 63,018,738 | 36 | 8 | MIT | 2021-04-06T17:56:14 | 2016-07-10T21:13:00 | Python | UTF-8 | Python | false | false | 3,411 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.simulator.simTestCase import SimTestCase
from hwtLib.amba.axi4 import Axi4
from hwtLib.amba.axiLite_comp.sim.utils import axi_randomize_per_channel
from hwtLib.amba.axi_comp.slave_timeout import AxiSlaveTimeout
from hwtLib.amba.constants import RESP_SLVERR, RESP_... | [
"nic30@seznam.cz"
] | nic30@seznam.cz |
b0efcdc71b8fae99512efb620fd54b98fb9200ca | 9a53024307d5b1706e53326d3eb4c1d77743a136 | /graphql_demo/graphql_demo/schema.py | efae7b2a504175d776ec42bb3a87e87a1255ba47 | [] | no_license | Triadai/django-graphql-demo | 4a995e8af1096965090378a00a0dd512ab05ecf7 | 1b1d40d7b09ade457d4252096bbfca0315557396 | refs/heads/master | 2021-05-06T15:14:26.514559 | 2017-06-19T06:42:05 | 2017-06-19T06:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import graphene
import simple_app.schema
class Mutation(simple_app.schema.Mutation, graphene.ObjectType):
pass
class Query(simple_app.schema.Query, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query, mutation=Mutation)
| [
"mbrochh@gmail.com"
] | mbrochh@gmail.com |
cb871c3c36900c1f80f9553e2f068b11c83b60f9 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/intermediate/142_v4/scores.py | 6b1a27c733f9f2bb71e25354899689e842889dad | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,364 | py | from collections import namedtuple
MIN_SCORE = 4
DICE_VALUES = range(1, 7)
Player = namedtuple('Player', 'name scores')
def calculate_score(scores):
"""Based on a list of score ints (dice roll), calculate the
total score only taking into account >= MIN_SCORE
(= eyes of the dice roll).
If ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
868309f5fcb83db8ab2e52e6e7f2cf5f34c3e5f8 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /closure__examples/hello_world.py | 84781ecceeb45ead5394fcd637397dc296b928bd | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://ru.wikipedia.org/wiki/Замыкание_(программирование)
# multiplier возвращает функцию умножения на n
def multiplier(n):
def mul(k):
return n * k
return mul
# mul3 - функция, умножающая на 3
mul3 = multiplier(3)... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
5628bf46e85c2384cc2ad20595d2815fff2243ba | 02442f7d3bd75da1b5b1bf6b981cc227906a058c | /rocon/build/rocon_msgs/concert_msgs/catkin_generated/pkg.installspace.context.pc.py | 723bbed31accdfcda71ffdeb61f1a0bac6159af2 | [] | no_license | facaisdu/RaspRobot | b4ff7cee05c70ef849ea4ee946b1995432a376b7 | e7dd2393cdabe60d08a202aa103f796ec5cd2158 | refs/heads/master | 2020-03-20T09:09:28.274814 | 2018-06-14T08:51:46 | 2018-06-14T08:51:46 | 137,329,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sclab_robot/turtlebot_ws/rocon/install/include".split(';') if "/home/sclab_robot/turtlebot_ws/rocon/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "gateway_msgs;message_runtime;rocon_app... | [
"facai_sdu@126.com"
] | facai_sdu@126.com |
6ef04cf075ceac67095db1f0d24a78ffa5b3359b | b87ec5d1b11b3a517256365f07413cec56eff972 | /_cite/cite.py | 5f8d135a94904956eb712f797a50eef448847197 | [
"BSD-3-Clause"
] | permissive | greenelab/lab-website-template | 53349ae75c50f573aaa275260839c89a2fef9d3e | 49149880097297f3f0bf90f6f3c2bc7856ca73de | refs/heads/main | 2023-08-22T21:18:18.716765 | 2023-05-19T18:59:15 | 2023-05-19T18:59:15 | 296,680,938 | 213 | 309 | BSD-3-Clause | 2023-05-19T18:59:16 | 2020-09-18T16:57:31 | HTML | UTF-8 | Python | false | false | 4,916 | py | """
cite process to convert sources and metasources into full citations
"""
import traceback
from importlib import import_module
from pathlib import Path
from dotenv import load_dotenv
from util import *
# load environment variables
load_dotenv()
# error flag
error = False
# output citations file
output_file = "_... | [
"noreply@github.com"
] | greenelab.noreply@github.com |
7573f09ccd7f7eba9450179f4e9d1fc18c3b3ceb | a961aaa37bde0c8217453631809da11203a145c3 | /clients/python/SolviceRoutingClient/api/pvrp_api.py | 3abc55442e8d069ced6cea4212ecef7e9841172b | [
"MIT"
] | permissive | solvice/solvice-routing-client | 0f3fdb69244e1d3db92159db4be651adcdf23eb1 | cdaedaf47d202965549c9e2b7d9102d292c91d5b | refs/heads/master | 2020-06-22T16:56:52.871358 | 2019-09-25T14:46:54 | 2019-09-25T14:46:54 | 197,749,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,201 | py | # coding: utf-8
"""
OnRoute API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.1.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re ... | [
"cvh@solvice.io"
] | cvh@solvice.io |
620c4eaa8063ccdd8693983d8e97949ba279c96c | 64c05e8c346ced131f65770db7c8ebe6c9e29c12 | /tests/test_model/test_backbone/test_shufflenetv1_backbone.py | c5da09d306f1d1822c45a72528ea2ec7933a6fa7 | [
"Apache-2.0"
] | permissive | lilujunai/ZCls | bcf6c5ceae8ce7282e77678d63c6aa2daa4feda4 | 14a272540b6114fb80cd314066ff6721bcf85231 | refs/heads/master | 2023-02-25T05:46:07.794013 | 2021-02-04T07:34:39 | 2021-02-04T07:34:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | # -*- coding: utf-8 -*-
"""
@date: 2020/11/21 下午7:24
@file: test_resnet_backbone.py
@author: zj
@description:
"""
import torch
from zcls.model.backbones.shufflenetv1_unit import ShuffleNetV1Unit
from zcls.model.backbones.shufflenetv1_backbone import ShuffleNetV1Backbone
def test_shufflenet_v1_backbone():
# g=1... | [
"wy163zhuj@163.com"
] | wy163zhuj@163.com |
2b867933f646511764508dfeb84aecc84822e99f | ce6d74994bce49411f00f5053f56fb3b7c30bd50 | /interview/interview16.py | f7620da21a3f9c3559924734d76be04bb6091369 | [] | no_license | zhengjiani/pyAlgorithm | 9397906f3c85221e64f0415abfbb64d03eb1c51e | dbd04a17cf61bac37531e3337ba197c4af19489e | refs/heads/master | 2021-07-11T19:07:26.480403 | 2020-07-16T00:25:24 | 2020-07-16T00:25:24 | 179,308,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
# @Time : 2019/9/9 11:13
# @Author : zhengjiani
# @Software: PyCharm
# @Blog :https://zhengjiani.github.io/
"""
查找二叉树的深度,求该树的深度
从根节点到叶节点依次经过的结点(含根、叶结点)形成树的一条路径,最长路径的长度为树的深度
"""
class TreeNode:
def __init__(self,x):
self.val = x
self.left = None
self.right = Non... | [
"936089353@qq.com"
] | 936089353@qq.com |
6d2f796a571b224f6eafbc086a95247149bcaffc | cca8b92a8fb2e79d46a10e105cd6a98c22564383 | /kuterless/public_fulfillment/serializers.py | 1eaa29bb65dde90cda74fc6472c190c24bcf3ca7 | [] | no_license | gl1000007/NeuroNet | 2fc0b57a1147546b926e3d9e3d2c4a00589d5f1c | 222e8058a78ffe89442310c5650a2edb3eb8260c | refs/heads/master | 2021-01-17T12:02:12.658928 | 2016-06-06T19:56:37 | 2016-06-06T19:56:37 | 72,467,802 | 1 | 0 | null | 2016-10-31T18:49:41 | 2016-10-31T18:49:41 | null | UTF-8 | Python | false | false | 7,528 | py | # -*- coding: utf-8 -*-
from coplay import models
from coplay.models import Discussion, Feedback, LikeLevel, Decision, Task, \
Viewer, FollowRelation, UserUpdate, Vote, Glimpse, AnonymousVisitor, \
AnonymousVisitorViewer, UserProfile, MAX_TEXT
from django.contrib.auth.models import User
from rest_framework imp... | [
"tzahimanmobile@gmail.com"
] | tzahimanmobile@gmail.com |
e3f0533447afd1c99e2a5e345b86874bafc397a4 | 5132c0de8eb07fe0548442ad605852137899f2cd | /covsirphy/regression/rate_elastic_net.py | d6cbec5d776eaae99e3b734a9bb1bdf7e42291dc | [
"Apache-2.0"
] | permissive | SelengeMGL/covid19-sir | c12d58f21de7c3c63e87fc3b55c9dda966653c17 | 64d50b79cc9d3e26019a230f3c373a2755451495 | refs/heads/master | 2023-05-06T18:41:21.901437 | 2021-05-23T12:52:11 | 2021-05-23T12:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from math import log10, floor
import numpy as np
import pandas as pd
from covsirphy.regression.param_elastic_net import _ParamElasticNetRegressor
class _RateElasticNetRegressor(_ParamElasticNetRegressor):
"""
Predict parameter values of ODE models with Elastic Ne... | [
"7270139+lisphilar@users.noreply.github.com"
] | 7270139+lisphilar@users.noreply.github.com |
1b3127988778826a12ef4eeeea33c86953e8b0c0 | bbc2e379e1e2e9b573d455c1e604636a11e2e6f6 | /config/settings/local.py | 1adbaa040927159bfcd47d28686a87a91d768a14 | [
"MIT"
] | permissive | MikaelSantilio/uprevendas-api | cc7c21bc496194c6b4c9ba77205ed54b23a7f82a | f04312988ffe3231f68ae0ebeaed9eaf0a7914b0 | refs/heads/master | 2023-05-25T18:41:45.584569 | 2021-06-09T23:24:47 | 2021-06-09T23:24:47 | 330,134,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,447 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = True
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY... | [
"mikael.santilio@gmail.com"
] | mikael.santilio@gmail.com |
dce3c9dab31479292158a01d39e4e2914dbbb66e | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/DiMuonOppositeSignP3GeVMinMaxMassDocaHighPtProd.py | 3ade6833c82d734ce4f0b64853268845d8508007 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | from Configurables import Generation, RepeatDecay, Inclusive, DiLeptonInAcceptance
from GaudiKernel.SystemOfUnits import GeV, MeV, mm
Generation().SampleGenerationTool = "RepeatDecay"
Generation().addTool( RepeatDecay )
Generation().RepeatDecay.NRedecay = 100
Generation().RepeatDecay.addTool( Inclusive )
Generation... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
22d444f0ffb8fb15ff5058d56f1660adc9d0469a | ca7162adc548c5937ebedd6234b40de7294e2da1 | /19-Pillow图像处理/20将图片中黄色修改为红色.py | e7c2ffe94958924e92ac02d3486ca223d47d5643 | [] | no_license | meloLeeAnthony/PythonLearn | 03c259d745b1ccdc039e9999889ab54be14ae020 | 9915ec5bb7048712a97539a9c5bce8743567b22a | refs/heads/master | 2023-07-10T21:12:54.027143 | 2021-08-19T12:43:19 | 2021-08-19T12:43:19 | 289,487,502 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from PIL import ImageDraw, Image
img = Image.open('images/bjsxt.png')
draw_obj = ImageDraw.Draw(img)
width, height = img.size
# 将黄色修改为红色
def get_color(oldColor):
'''
如果是黄色(255,255,0),则换算成红色,把绿色通道置为0
可以点击:windows 中的画图软件调色板观察黄色的区间。
'''
# print(oldColor)
# 获取每个通道的值 正宗的黄色(255,255,0)
... | [
"li.chun158@gmail.com"
] | li.chun158@gmail.com |
e0fefb1fccf976cc448cb2a66ea9adab80e6d73f | ab8a5876c12d42db3a61a1560c774e118da5605e | /MDShop/service.py | dccd47d0261d2f84b66739d94e39569f047d4b25 | [] | no_license | mustavfaa/django_16.09 | 6e19d75dc1bcd2536e3d10d854989370607c0518 | b88ebe6f87d2facc51fee86dd18eb4cadaba0e14 | refs/heads/main | 2023-08-10T18:23:39.892882 | 2021-09-17T06:17:15 | 2021-09-17T06:17:15 | 406,880,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | from django_filters import rest_framework as filters
from .models import smartphone
class CharFilterInFilter(filters.BaseInFilter, filters.CharFilter):
pass
class ShoppFilter(filters.FilterSet):
genres = CharFilterInFilter(field_name='category__name', lookup_expr='in')
price = filters.RangeFilter()
... | [
"72229762+mustavfaa@users.noreply.github.com"
] | 72229762+mustavfaa@users.noreply.github.com |
b3061ff7daa2a9bc88afc9974b5be35abd3df341 | e3ec5f1898ae491fa0afcdcc154fb306fd694f83 | /src/components/outputOpController/outputOpController.py | 24557b2dbd08cef6d8cd72a110151d21fd212f31 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | phoebezhung/raytk | 42397559a76a9ba39308ac03344b4446f64ea04d | b91483ce88b2956d7b23717b11e223d332ca8395 | refs/heads/master | 2023-08-27T05:20:38.062360 | 2021-10-21T04:33:18 | 2021-10-21T04:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | from typing import List
# noinspection PyUnreachableCode
if False:
# noinspection PyUnresolvedReferences
from _stubs import *
from _typeAliases import *
class _Par:
Hostop: 'OPParamT'
Opdef: 'OPParamT'
Rendertop: 'OPParamT'
Shaderbuilder: 'OPParamT'
Fixedtexinputs: 'StrParamT'
Texselectors: 'StrParamT... | [
"tekt@immerse.studio"
] | tekt@immerse.studio |
e2b8ce4a88472ff1350842e57f2585a6f482b607 | 0a5eedbd7d6c844dfb557aa57e88f1b9e0527665 | /data/io/read_tfrecord.py | ac58ea1c0f82bfd71692a17dc1da4a31f7aa5dec | [
"MIT"
] | permissive | chizhanyuefeng/R2CNN-Plus-Plus_Tensorflow | f63ad3a6e535d59528f6a06b7a9f877ec4607c7d | adec3de17db1d07eaf5d7bc1b1dc387934985b79 | refs/heads/master | 2020-09-22T21:24:28.999333 | 2019-12-03T02:25:08 | 2019-12-03T02:25:08 | 225,324,251 | 0 | 0 | MIT | 2019-12-02T08:32:34 | 2019-12-02T08:32:34 | null | UTF-8 | Python | false | false | 5,416 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import numpy as np
import tensorflow as tf
import os
from data.io import image_preprocess
from libs.configs import cfgs
def read_single_example_and_decode(filename_queue):
# tfre... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
99670667c78f1a507843a9f1ace224929d1a1a68 | 4ec709b16e366c60a9c7f2f7696608b036825140 | /stanislaus/_parameters/network_PH_Cost.py | 4ac6c1bd28f1a7f60b97bff44547c4d3f60eaf4d | [] | no_license | alanccai/sierra-pywr | 19c7efc4485879a4ca35677fdb14b3c795829e02 | 4447c6247af5159030b3025f14c2397283c4fcd0 | refs/heads/master | 2020-08-19T10:17:30.590861 | 2019-10-15T20:33:45 | 2019-10-15T20:33:45 | 215,909,820 | 0 | 0 | null | 2019-11-15T17:54:23 | 2019-10-18T00:31:58 | null | UTF-8 | Python | false | false | 1,848 | py | from parameters import WaterLPParameter
class network_PH_Cost(WaterLPParameter):
""""""
# path = "s3_imports/energy_netDemand.csv"
baseline_median_daily_energy_demand = 768 # 768 GWh is median daily energy demand for 2009
def _value(self, timestep, scenario_index, mode='scheduling'):
totD... | [
"herr.rhein@gmail.com"
] | herr.rhein@gmail.com |
ffdf035d8454aa99dc436f4467f389c084b23666 | 002c14cd622b4890cce1c243065cebe39e2302ec | /LeetCode/13-Roman-to-Integer/Roman-to-Integer.py | d340a9596c72981fd2f85799d215d961b5f90c82 | [
"MIT"
] | permissive | hscspring/The-DataStructure-and-Algorithms | 6200eba031eac51b13e320e1fc9f204644933e00 | e704a92e091f2fdf5f27ec433e0e516ccc787ebb | refs/heads/master | 2022-08-29T18:47:52.378884 | 2022-08-25T16:22:44 | 2022-08-25T16:22:44 | 201,743,910 | 11 | 3 | MIT | 2021-04-20T18:28:47 | 2019-08-11T09:26:34 | Python | UTF-8 | Python | false | false | 890 | py | class Solution(object):
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
romanDict = {
"I": 1,
"V": 5,
"X": 10,
"L": 50,
"C": 100,
"D": 500,
"M": 1000,
}
res = 0
... | [
"haoshaochun@gmail.com"
] | haoshaochun@gmail.com |
8e9a7fa16f4019455c5bd5558201c626dc070351 | 0849923ebcde8f56a6e8550ae4f3c5ee3e2e0846 | /apps/search/src/search/decorators.py | ab684bbf9ba17e89cf01ce65ffd14cbcfb1e7154 | [
"Apache-2.0"
] | permissive | thinker0/hue | 511a5796cdfe45e0b27f1d3309557ca60ce8b13b | ee5aecc3db442e962584d3151c0f2eab397d6707 | refs/heads/master | 2022-07-10T02:37:23.591348 | 2014-03-27T20:05:00 | 2014-03-27T20:05:00 | 12,731,435 | 0 | 0 | Apache-2.0 | 2022-07-01T17:44:37 | 2013-09-10T14:13:42 | Python | UTF-8 | Python | false | false | 1,304 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"romain@cloudera.com"
] | romain@cloudera.com |
76967bed7d5d25cae9b9fed322cae51c0c6b38b6 | 5f3fb04f8e04f8aa9d15bb9cded75b98fa53422f | /fofo_lazada/wizard/import_customer_payment.py | bb5400658e8c71eb8bbba8ad1ec853d2576ef6ef | [] | no_license | kittiu/fofo | 49a5b9110814bc8512e22fd101e821e6820b2f0a | b73e2009e220fd843e91d9ea414f514ae113b76c | refs/heads/master | 2020-04-16T20:12:44.309677 | 2018-08-03T14:53:12 | 2018-08-03T14:53:12 | 63,481,415 | 0 | 1 | null | 2018-08-03T14:53:13 | 2016-07-16T12:13:16 | Python | UTF-8 | Python | false | false | 1,245 | py | from openerp import models, fields, api, _
import openerp.addons.decimal_precision as dp
from datetime import datetime
import csv
import StringIO
import base64
import xlrd
from openerp import tools
from _abcoll import ItemsView
class import_customer_payment(models.TransientModel):
_name = 'import.customer.payment'... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
076656d8a2ada109350a4f62dbd2e457331d513d | 6512f283dbde46ec31f985889166798c5f943484 | /utils/prepare_docs.py | 04cb182e21ba277bb033f7ebf3408dcee748bd23 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | greenelab/iscb-diversity | d5db60693e2c2038c1033cb10f6c3a57c33a581d | f4f5d013a5263cb4a591a2cd0841f43fd082c7e3 | refs/heads/master | 2023-08-01T00:11:46.070563 | 2021-09-09T19:38:31 | 2021-09-09T19:38:31 | 207,814,106 | 7 | 1 | NOASSERTION | 2021-06-10T15:50:41 | 2019-09-11T13:03:02 | Jupyter Notebook | UTF-8 | Python | false | false | 2,914 | py | """
Generate docs directory for GitHub Pages.
"""
import argparse
import pathlib
import subprocess
import sys
root_dir = pathlib.Path(__file__).parent.parent
docs_dir = root_dir.joinpath("docs")
readme_template = """\
# Project Webpage for ISCB Diversity Analysis
<!-- make sure to edit this content in utils/prepare_... | [
"daniel.himmelstein@gmail.com"
] | daniel.himmelstein@gmail.com |
4b154b3ded63895ffebd249d37efbf7f792b89b5 | 3e4b8fe54f11bf36f3615c21fdc1dca0ed00fe72 | /month05/day04/03_weekday.py | d301021c4a68b80eb21452bfaee535f7a7743f07 | [] | no_license | leinian85/year2019 | 30d66b1b209915301273f3c367bea224b1f449a4 | 2f573fa1c410e9db692bce65d445d0543fe39503 | refs/heads/master | 2020-06-21T20:06:34.220046 | 2019-11-04T06:37:02 | 2019-11-04T06:37:02 | 197,541,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | import numpy as np
ary = np.arange(1,37).reshape(6,6)
def apply(data):
return data.mean()
print(ary)
r = np.apply_along_axis(apply,1,ary)
print(r)
print(apply(ary[0,:])) | [
"42737521@qq.com"
] | 42737521@qq.com |
7fa486dfb3dd91ddb4381bfd2d02fa65696c93d1 | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-smarthosting/aliyunsdksmarthosting/request/v20200801/UpdateManagedHostAttributesRequest.py | 6903b8467168f5b270b89a199b450c06c42e6c34 | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 2,619 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
97a3e24436a577e4b1e73d9a2f7511d8325217ef | 5672737d1ff34bebfeb408426e52ed49df8be3bb | /graphgallery/attack/targeted/common/rand.py | a95829950f927f663815568b32c3a8170abb5757 | [
"MIT"
] | permissive | sailfish009/GraphGallery | 5063ee43340a6ca8da9f2d7fb3c44349e80321b2 | 4eec9c5136bda14809bd22584b26cc346cdb633b | refs/heads/master | 2023-08-24T19:19:59.714411 | 2021-10-16T10:10:40 | 2021-10-16T10:10:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | import random
import numpy as np
from graphgallery.utils import tqdm
from graphgallery.attack.targeted import Common
from ..targeted_attacker import TargetedAttacker
@Common.register()
class RAND(TargetedAttacker):
def reset(self):
super().reset()
self.modified_degree = self.degree.copy... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
b97a00b7ad30a23398328b91d48b220d5c4802bc | b8911bd330c08c32a205751cf2f7538494729c16 | /examples/plotting/plot_2_parallel_coordinates.py | 55d66289653a05f16f742f4eb9bcd21740f11a3f | [
"BSD-3-Clause"
] | permissive | mirkobronzi/orion | 3c0bb6258392729b91617997eebcf1e8897795aa | ad8f69afabf3faab557a82ef9409fabd63495ea8 | refs/heads/master | 2022-05-02T05:45:54.425146 | 2022-03-08T00:37:08 | 2022-03-08T00:37:08 | 195,877,506 | 0 | 0 | NOASSERTION | 2022-03-08T00:38:23 | 2019-07-08T19:55:26 | Python | UTF-8 | Python | false | false | 5,258 | py | """
====================
Parallel Coordinates
====================
.. hint::
Conveys a dense overview of the trial objectives in a multi-dimensional space.
Helps identifying trends of best or worst hyperparameter values.
The parallel coordinates plot decomposes a search space of `n` dimensions into `n`
axis s... | [
"xavier.bouthillier@umontreal.ca"
] | xavier.bouthillier@umontreal.ca |
7e7b508b865d113b3866dcafbdbe625da5fa268a | 3431aa0a966505c601171393e9edcd2345813268 | /analysis/lssxcmb/scripts/run_cell_sv3.py | 67f67d8953fff82b82dfa3a773b4140d43be8baf | [
"MIT"
] | permissive | mehdirezaie/LSSutils | 34eeeb6efbf2b5c4c0c336c1f9f2fabc821def39 | af4697d9f4b4fc4dbab44787108d7aa538ca846d | refs/heads/master | 2023-08-17T17:58:03.310073 | 2023-08-16T11:29:23 | 2023-08-16T11:29:23 | 200,747,239 | 3 | 0 | MIT | 2021-11-09T15:12:30 | 2019-08-06T00:25:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,653 | py |
import os
import healpy as hp
from lssutils import setup_logging, CurrentMPIComm
from lssutils.lab import get_cl
from lssutils.utils import npix2nside, make_hp
from lssutils.utils import maps_dr9 as columns
import fitsio as ft
import numpy as np
@CurrentMPIComm.enable
def main(args, comm=None):
if... | [
"medirz90@icloud.com"
] | medirz90@icloud.com |
c23e11afccd6e32919ce7dad4448f78f03f7ee83 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /3_Python_Data_Science_Toolbox_Part1/3_Lambda_functions_and_error-handling/errorHandlingWithTryExcept.py | 88c5557c80a12220a1241c670005099db365c6d2 | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | # Error handling with try-except
# A good practice in writing your own functions is also anticipating the ways in which other people (or yourself, if you accidentally misuse your own function) might use the function you defined.
# As in the previous exercise, you saw that the len() function is able to handle input arg... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
5db8d660382ca50bec0fc0ab03dc620098282966 | 9ca6885d197aaf6869e2080901b361b034e4cc37 | /TauAnalysis/MCEmbeddingTools/test/runGenMuonRadCorrAnalyzer_cfg.py | 978d9416623f149ba528ac6ef22a4fbb44f182ec | [] | no_license | ktf/cmssw-migration | 153ff14346b20086f908a370029aa96575a2c51a | 583340dd03481dff673a52a2075c8bb46fa22ac6 | refs/heads/master | 2020-07-25T15:37:45.528173 | 2013-07-11T04:54:56 | 2013-07-11T04:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,082 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("runGenMuonRadCorrAnalyzer")
import os
import re
import TauAnalysis.Configuration.tools.castor as castor
import TauAnalysis.Configuration.tools.eos as eos
# import of standard configurations for RECOnstruction
# of electrons, muons and tau-jets with non... | [
"sha1-5c72da6f595cce9b6b48aff6d56f01e9beb4aad1@cern.ch"
] | sha1-5c72da6f595cce9b6b48aff6d56f01e9beb4aad1@cern.ch |
008458b3a86ae5e14cc07957c22da7431650271c | d4c9979ebf5224e79c7bff38931657e0b3420b86 | /quizzes/Quiz35.py | 60e585f8af44430796aab5112454e757f5ddc3cc | [] | no_license | imjeee/cs373 | 60c021ec372a59dab8edf32a1f2f833857bbf5f8 | 9c331c9eb9c4c43f8a2ee03ee5770791f2ead225 | refs/heads/master | 2020-12-25T02:20:25.894496 | 2012-04-26T02:56:03 | 2012-04-26T02:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | #!/usr/bin/env python
"""
CS373: Quiz #35 (5 pts)
"""
""" ----------------------------------------------------------------------
1. What is the output of the following program?
(4 pts)
1
A.A()
A.A()
False
A.A()
A.f()
2
A.A()
3
True
A.f()
4
5
True
A.f()
6
"""
def Decorator (c) :
x = c()
return lambda : x
... | [
"downing@cs.utexas.edu"
] | downing@cs.utexas.edu |
2c69e19bcc517dcd10c542ec855f0c2019875f31 | e254a9e46750549f742b30fc5e930f1bddf78091 | /plots/python/cutsJetClean1.py | 6e43f909f17bbc85a9c4d9976b4df2e93a358a30 | [] | no_license | schoef/TTGammaEFT | 13618c07457a0557c2d62642205b10100f8b4e79 | af9a5f8c9d87835c26d7ebecdccf865a95a84ba2 | refs/heads/master | 2020-04-17T05:01:28.910645 | 2019-01-17T16:29:27 | 2019-01-17T16:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,657 | py | #!/usr/bin/env python
''' Define list of plots for plot script
'''
# Standard Imports
from math import pi
# RootTools
from RootTools.core.standard import *
# TTGammaEFT
from TTGammaEFT.Tools.constants import defaultValue
# plotList
cutsJetClean1 = []
cutsJetClean1.app... | [
"lukas.k.lechner@gmail.com"
] | lukas.k.lechner@gmail.com |
63ce385bb0e3331d222c53d2420877eedc853169 | f2aec3224fb3e1a6c780f82def626be3565a0e8e | /examples/Carleman/config.py | 9b7c950382f999c814723a8eb8af048d3e92b9b3 | [] | no_license | Orcuslc/MultiScale-PINN | a000ce5afcb7d91ccdd535cc45bd2000c917463f | 32f1de843ec96231d6d9859815ad1b08cef718d2 | refs/heads/master | 2022-12-13T13:07:59.881197 | 2020-09-15T22:46:45 | 2020-09-15T22:46:45 | 291,526,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import jax
import jax.numpy as jnp
from jax import random
from jax.experimental import optimizers
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from jaxmeta.loss import *
# name of job
NAME = "1"
# random key
key = random.PRNGKey(1)
# network config
la... | [
"orcuslc@hotmail.com"
] | orcuslc@hotmail.com |
60c072d32340dc8922ab7bd5a5643dcda4ae5b74 | 342a1ec794df5424bfc4f6af2cb8de415068201b | /sandbox/urls.py | cda98e24d4af79bb880bea6d3d80987d07cf9d1c | [] | no_license | penta-srl/django-oscar-promotions | c5d0b159950189f23852665ce7e3b3a2fe248bd5 | 65bdf39b48409311e7284fc0a12e8b2e17f176dd | refs/heads/master | 2020-07-06T23:48:45.660316 | 2019-07-08T19:23:15 | 2019-07-08T19:23:15 | 203,176,440 | 0 | 0 | null | 2019-08-19T13:16:55 | 2019-08-19T13:16:55 | null | UTF-8 | Python | false | false | 433 | py | from django.conf import settings
from django.conf.urls import i18n
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from app import application
urlpatterns = [
path('admin/', admin.site.urls),
path('i18n/', include(i18n)),
path('', applicati... | [
"sasha@sasha0.ru"
] | sasha@sasha0.ru |
3dfd2531ae73ff4591e432a193134bba76c6d163 | da052c0bbf811dc4c29a83d1b1bffffd41becaab | /core/sg_update_taxcode/__manifest__.py | 023ccc393334b7e8d2ceb2bde2b89125f66c2737 | [] | no_license | Muhammad-SF/Test | ef76a45ad28ac8054a4844f5b3826040a222fb6e | 46e15330b5d642053da61754247f3fbf9d02717e | refs/heads/main | 2023-03-13T10:03:50.146152 | 2021-03-07T20:28:36 | 2021-03-07T20:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | {
"name": "SG Tax Update",
"version": "1.1.1",
"depends": ['account'],
"author" :"MPTechnolabs(Chankya)",
"website" : "http://www.serpentcs.com",
"category": "Accounting and Financial Management",
"description": """
It will add some Singapore default Taxes for Sales and Purchase.
===========... | [
"jbalu2801@gmail.com"
] | jbalu2801@gmail.com |
16e5e62ad99b2ca24f2c0903c0f54ac800dbc519 | 5142e81b50d15202ff79a34c9b888f18d2baec27 | /plotnine/geoms/geom_polygon.py | 3f792d36c5eb28b5b5766db68616763254679505 | [
"MIT"
] | permissive | has2k1/plotnine | 03c0e979b6b05b5e92cb869cca903cfce20988dc | ef5650c4aabb29dcfe810043fb0fc8a4ea83f14b | refs/heads/main | 2023-08-30T22:17:07.835055 | 2023-08-08T07:57:53 | 2023-08-08T07:57:53 | 89,276,692 | 3,719 | 233 | MIT | 2023-08-08T13:09:24 | 2017-04-24T19:00:44 | Python | UTF-8 | Python | false | false | 3,930 | py | from __future__ import annotations
import typing
import numpy as np
from ..doctools import document
from ..utils import SIZE_FACTOR, to_rgba
from .geom import geom
if typing.TYPE_CHECKING:
from typing import Any
import pandas as pd
from plotnine.iapi import panel_view
from plotnine.typing import A... | [
"has2k1@gmail.com"
] | has2k1@gmail.com |
87fdd739df1b7fb5761a475d96ca9d5090f05545 | f81099738d3ab7d4a4773a04ed9e36e493632590 | /tools/__init__.py | 25656f148c2d467f8c89a6f10feea6f9a961d8f5 | [
"MIT"
] | permissive | kristoffer-paulsson/angelos | eff35753e4d7e4465d2aadac39265f206b09fcf9 | d789f47766fe3a63a6752b92e4ea955f420dbaf9 | refs/heads/master | 2022-05-05T15:16:59.340527 | 2022-03-27T16:05:51 | 2022-03-27T16:05:51 | 142,691,235 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | #
# Copyright (c) 2021 by Kristoffer Paulsson <kristoffer.paulsson@talenten.se>.
#
# This software is available under the terms of the MIT license. Parts are licensed under
# different terms if stated. The legal terms are attached to the LICENSE file and are
# made available on:
#
# https://opensource.org/licenses/... | [
"kristoffer.paulsson@talenten.se"
] | kristoffer.paulsson@talenten.se |
827109911306284e65d62529b7a0acc378edb770 | 43dbf438287d1ea426d1cc0e201d4a56bfd20e21 | /ABC/084/C.py | cef2926d97def3d85bbeacf0da42b1556a9743e9 | [] | no_license | hatopoppoK3/AtCoder-Practice | c98e5b0377c46b440a79dcc0bd1790b508555672 | c7385b0444baf18b7a7dc8e3003cc2074bc9b4ab | refs/heads/master | 2023-02-23T03:45:45.787964 | 2023-02-07T12:59:51 | 2023-02-07T12:59:51 | 184,423,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | N = int(input())
CSF = []
for i in range(0, N-1):
CSF.append(list(map(int, input().split())))
for i in range(0, N):
ans = 0
for j in range(i, N-1):
ans = max(CSF[j][1], ans)
if ans % CSF[j][2] != 0:
ans += (CSF[j][2]-ans % CSF[j][2])
ans += CSF[j][0]
print(ans)
| [
"hatopoppo0320@gmail.com"
] | hatopoppo0320@gmail.com |
213890a8d69a2c805267746ad519c8098d213948 | 4e8a55ff85a2aa26fbbf05bc9350028226dfde37 | /DProject/Manager/LoginManager.py | 2c0f7a5f5aa87f813dbd2c29683edac4b8132d44 | [] | no_license | DWaze/DisabledProject | dbb572fa47063011abc4f13e95c9e44ab24a5c55 | 6c16269c7722503226ba500d0216dc373ffad867 | refs/heads/master | 2020-03-17T09:02:28.913809 | 2018-06-22T10:07:55 | 2018-06-22T10:07:55 | 133,458,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,159 | py | from DProject.Manager.MainManager import createSession
from DProject.DAO.AccountDAO import AccountDAO
from DProject.DAO.UserDAO import UserDAO
import datetime
import uuid
from datetime import timedelta
from DProject.Models.Empty import Empty
from DProject.Models.Account import Account
from DProject.Models.User import U... | [
"wazeproo@gmail.com"
] | wazeproo@gmail.com |
d427c13fa9959a66bb1f5351a06da9b53d663630 | 5f64d91dc45e58c8e73a52985c6db45d340d09cc | /Pibow_Zero_1.2/moving_vertical_rainbow_2.py | 940cbb7a0b456992dae98966351278b6229504f9 | [] | no_license | Breakfast-for-Pigeons/Unicorn-PHAT | e0343eb9a46c4b7be11d5028be07ea6b0f071efd | 6e70302eac995cd11821ecf2ee363a1b926df2ce | refs/heads/master | 2023-01-01T18:05:27.436081 | 2020-10-23T22:18:13 | 2020-10-23T22:18:13 | 74,320,010 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | #!/usr/bin/python3
"""
Moving Vertical Rainbow 2 - Pibow Zero 1.2
Retrieves the rainbows and sends them to the move function.
With the GPIO pins at the top of the Raspberry Pi, the rainbows move
from the bottom to the top.
....................
Functions:
- moving_vertical_rainbow_2: Retrieves the rainbows and sends ... | [
"noreply@github.com"
] | Breakfast-for-Pigeons.noreply@github.com |
8e835c33a5fb8ddde4f544c04d02d8452b9410d3 | 5f1dee64fd88bd2237ef95ee894a37d8ddcdeb4e | /python/tools/slice_data.py | 56c0634900cb623ac83454b120888c0a466b13cb | [] | no_license | constantinpape/stuff_master | c893ae0c763801210db06bad548784c4b20d6680 | 68d80bd45a140cb0d30abf32a04365ca37c9694c | refs/heads/master | 2021-01-22T09:50:38.795259 | 2017-03-07T18:25:45 | 2017-03-07T18:25:45 | 33,936,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import sys , h5py
import vigra
import numpy as np
if __name__ == '__main__':
#path_in = "/home/constantin/Work/data_ssd/data_090515/2x2x2nm/data_sub.h5"
#path_out = "/home/constantin/Work/data_ssd/data_090515/2x2x2nm/data_sub_sliced.h5"
#key = "data"
#path_in = "/home/constantin/Work/data_ssd/data_090... | [
"constantin.pape@iwr.uni-heidelberg.de"
] | constantin.pape@iwr.uni-heidelberg.de |
c163125bb4a4bc3c9b37983dcb3043063551b6de | 3e534ac0d2053e72e8d6b67f96b42cf56464b5fd | /setup.py | 3f133a6855b66b3d43c23bc909e5b20a81fb79f4 | [] | no_license | marcoceppi/dorthy | 466b89574a940991ca86be752b36c876964df699 | 781bd2b60fa8551671cdb2fd681012dad7e24490 | refs/heads/master | 2020-05-05T06:43:58.330792 | 2014-05-17T03:20:33 | 2014-05-17T03:20:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from setuptools import setup
install_requires = [
'tornado',
'PyYAML'
]
setup(
name='dorthy',
version='0.0.1',
description='A more express.js like framework built on top of Tornado',
install_requires=install_requires,
author='Marco Ceppi',
author_email='marco@ceppi.net',
url="https... | [
"marco@ceppi.net"
] | marco@ceppi.net |
8f48b70fe931ef6ad194e43e39d05d0c1d2b58b9 | ff70ce8c57354ca54d193913ecb9d95555ac77fb | /app.py | 98097584f6c13838834d03556e5f3bf2aaf2dc0b | [] | no_license | hopetambala/SI507_F18_HW12_Flask_Guestbook | b1a3bf34dbcfa92b5fcd6f98e779ac9948a76148 | cc05f5c3648604726e61a5c27f51042f9447d4fa | refs/heads/master | 2020-04-09T21:10:38.823927 | 2018-12-06T01:27:10 | 2018-12-06T01:27:10 | 160,594,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | from flask import Flask, render_template, request, redirect
import model
app = Flask(__name__)
@app.route("/")
def index():
## print the guestbook
return render_template("index.html", entries=model.get_entries())
@app.route("/add")
def addentry():
## add a guestbook entry
return render_template("adde... | [
"hopetambala@outlook.com"
] | hopetambala@outlook.com |
c009c177e08c531d50eccbce517bd0d11cc63325 | 3f4464c932403615c1fbbaf82eaec096426b1ef5 | /StartOutPy4/CH8 Strings/count_Ts.py | c423d22ade2f77b8b3be5beced086e81104c62ed | [] | no_license | arcstarusa/prime | 99af6e3fed275982bf11ada7bf1297294d527e91 | 5f1102aa7b6eaba18f97eb388525d48ab4cac563 | refs/heads/master | 2020-03-22T14:07:08.079963 | 2019-05-09T11:45:21 | 2019-05-09T11:45:21 | 140,154,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # This program counts the number of times
# the letter T (uppercase or lowercase)
# appear in a string.
def main():
# Create a variable to use to hold the count.
# The variable must start with 0.
count = 0
# Get a string from the user.
my_string = input('Enter a sentence: ')
# Count the Ts.
... | [
"40938410+edwardigarashi@users.noreply.github.com"
] | 40938410+edwardigarashi@users.noreply.github.com |
642f4caad9f1b442926282ebde6954db9bfee7cc | 4c75f5ace0257e17879d8889ae3769a13e70b159 | /note14/code/merge_model.py | fac5e74e272d21eededbe39308d15abe8b115a0f | [
"Apache-2.0"
] | permissive | songkunhuang/LearnPaddle | c8acb5de1bbf8cab0fd919f6b11ca81d3c2a3110 | c4500904615149115535b66a67d3e5d06f8435c4 | refs/heads/master | 2020-03-26T05:56:32.817406 | 2018-07-24T14:50:21 | 2018-07-24T14:50:21 | 144,581,839 | 1 | 0 | Apache-2.0 | 2018-08-13T13:13:37 | 2018-08-13T13:13:36 | null | UTF-8 | Python | false | false | 448 | py | # coding=utf-8
from paddle.utils.merge_model import merge_v2_model
# 导入神经网络
from mobilenet import mobile_net
from vgg import vgg_bn_drop
if __name__ == "__main__":
# 图像的大小
img_size = 3 * 32 * 32
# 总分类数
class_dim = 10
net = mobile_net(img_size, class_dim)
param_file = '../model/mobile_net.tar.g... | [
"yeyupiaoling@foxmail.com"
] | yeyupiaoling@foxmail.com |
71fdad854f57ec04453d5c7adb2360b1f8c20fbb | 153da69b35f032f5b83a06f17008ba41a1b336b4 | /src/app/vault/src/main/entity/__init__.py | 270705fcf68ccca631f0df8206ad7e2b306c43e7 | [
"MIT"
] | permissive | TrendingTechnology/hspylib | 6400cadf9dfe6ab5733712dcfeccf8022d61c589 | c79a2c17e89fe21d00ccd9c1646a03407cd61839 | refs/heads/master | 2023-06-20T15:47:35.962661 | 2021-07-19T22:12:18 | 2021-07-19T23:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # _*_ coding: utf-8 _*_
#
# HSPyLib v0.11.1
#
# Package: app.vault.src.main.entity
"""Package initialization."""
__all__ = [
'validator',
'vault_entry'
]
| [
"yorevs@gmail.com"
] | yorevs@gmail.com |
bd805a463c372e859e12a602bef4b4003685b198 | 95310128d287ed510b354216efffb2bbb03cdbb4 | /subsetsum.py | 229656a8f91d2647f3d3b986035037fa63923290 | [] | no_license | babiswas2020/python-practise | a35fd2378fbd0213168b811303f70c52fabb31ef | 06a4525d5ad2037cf3064f497a7a08dafae13f9c | refs/heads/master | 2022-11-10T23:58:05.672114 | 2020-06-20T09:08:18 | 2020-06-20T09:08:18 | 273,674,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | def subsetsum(arr,sum,N):
if N==0 and sum!=0:
return False
elif N==0 and sum==0:
return True
if N-1>=0:
if arr[N-1]<=sum:
return subsetsum(arr,sum-arr[N-1],N-1) or subsetsum(arr,sum,N-1)
elif arr[N-1]>sum:
return subsetsum(arr,sum,N-1)
if __name__=="__main_... | [
"36biswas0814@gmail.com"
] | 36biswas0814@gmail.com |
67069710247e7000932a7a6a8e171dd88d51b76d | b500996a0b29829fde6afe8b23178ca9df4a239d | /rydinfap/src/apps/fbaptestpar.py | a88c136c37fa263588f63980ab645485c9e77942 | [] | no_license | eocampo2000/test-code | 48c4d444e323eef5e6fe7e61b018952ef3cd4134 | 49328664243e1a9daf9c567d1aaaa19fd4654c02 | refs/heads/master | 2016-08-11T07:35:31.346464 | 2016-02-13T12:33:55 | 2016-02-13T12:33:55 | 51,642,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py | '''
Created on Jan 30, 2014
@author: eocampo
To schedule FBAP for parallel testing.
'''
__version__ = '20140130'
import sys
import procdata.procinfa as pi
from apps.infbaseapp import _InfaBaseApp
# Mandatory to define self.cmdStep
class FBAPTestPar(_InfaBaseApp):
exitOnError = ... | [
"eocampo1000@hotmail.com"
] | eocampo1000@hotmail.com |
8a66e6dfc999127f04b86f88629b3443a4a2f5ab | a4435e31cdfbe68aebfdb241bb82ed33dd4f5a30 | /chapter13/Multiinherit.py | 8fc30d31404fbb978886b4165250b8dcd66189f6 | [] | no_license | vonzhou/Core-Python-Programming | 804ce8ade8ca1af6b2b2effb0b78ec30a124314d | 749d4dff8d2158c8be706bca1a82a283150c629a | refs/heads/master | 2021-01-10T01:29:23.918561 | 2015-10-20T09:38:19 | 2015-10-20T09:38:19 | 44,003,197 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #P360
class P1:
def foo(self):
print "calling P1-foo()...."
class P2:
def foo(self):
print "calling P2-foo()..."
def bar(self):
print "calling P2-bar()..."
class C1(P1,P2):
pass
class C2(P1,P2):
def bar(self):
print "calling C2-bar()...."
class GC(C1,C2):
pass
g1 = GC()
g1.foo()
print "------------... | [
"vonzhou@163.com"
] | vonzhou@163.com |
51f0076c78fa9f6ff59c75ea2c3f76af8166726a | b37b1e809a055bfbab1c7a017e1ae5b572555827 | /carmesi/users/migrations/0003_user_modified_by.py | 89898ae4683ff811967fd82c0cee18acd51131f8 | [
"MIT"
] | permissive | raultr/CarmesiAnt | 828285ee389d1ed76c53a6cf504eb4ca2567cfe3 | 4ce143482001e015584943a5ed6f93adfb3dd520 | refs/heads/master | 2021-10-18T05:38:06.578438 | 2019-02-14T05:03:19 | 2019-02-14T05:03:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # Generated by Django 2.1.1 on 2019-02-10 03:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0002_user_created_by'),
]
operations = [
migrations.AddField(
... | [
"raultr@gmail.com"
] | raultr@gmail.com |
e2fb6eeb73d6f91f850faec33aa1c97db748d904 | 32cf9c3099c36a46804e393dd1491a8954f50263 | /2019.01.28 - 문자열, 패턴매칭 알고리즘/GNS.py | 4d0b1294c67827e9b64dfe1799200bcc304b39c4 | [] | no_license | ash92kr/s_code | ce3bda6a403600892750e181dca5ed8c4caebcb1 | 92eace551d132b91ee91db6c0afd38b93f9b647b | refs/heads/master | 2020-04-12T00:27:07.043091 | 2019-05-21T08:17:39 | 2019-05-21T08:17:39 | 162,200,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import sys
sys.stdin = open("GNS_test_input.txt")
T = int(input())
for testcase in range(T):
temp = input() # #1 7041을 dummy로 처리(len 함수 이용)
data = list(map(str, input().split()))
num = ['ZRO', 'ONE', 'TWO', 'THR', 'FOR', 'FIV', 'SIX', 'SVN', 'EGT', 'NIN']
repeat = []
for i in range(len(num)):
... | [
"ash92kr@gmail.com"
] | ash92kr@gmail.com |
71edda26f88591b56d8e37183583de483d196be6 | 1e4c14ae893dc15e612224287f908396fca40cbc | /src/utils/img_utils.py | fe4a357382b0879be931797a117cbbfcc6efbc1f | [] | no_license | yezhengkai/ground-based-cloud | 2958bf5ed6adfa04fe903ffba8122e9f98ad19bb | 619730b668f695f1066253a4ff39be282484201a | refs/heads/master | 2023-02-26T23:52:06.988713 | 2021-01-30T13:39:52 | 2021-01-30T13:39:52 | 316,887,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
def get_img_shape(img_path, channel="last"):
"""
References
----------
https://stackoverflow.com/questions/52962969/number-of-channels-in-pil-pillow-image
"""
img = Image.open(img_path)
if channel == "last":
r... | [
"supon3060@gmail.com"
] | supon3060@gmail.com |
ccb02a3fa1531b24900ff7930c73705f40159f31 | ff8f55e26d4b9742e7c9766435898411f45254dd | /Dynamic_Programming/01_Paint_Fence.py | 3ac2cb20da29448a36cb75038deda92288fdaa7f | [] | no_license | saranyab9064/leetcode-geeks | 38ded6532ed91d4893a8ccee2147faf02e820554 | ca6ffffcb775c4caacc4dc907b9912b40a48a343 | refs/heads/master | 2021-06-27T22:27:53.591871 | 2021-03-10T01:49:55 | 2021-03-10T01:49:55 | 217,812,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py |
# ============================================================================
# Name : 01_Paint_Fence.py
# Author : Saranya Balakrishnan
# Mail Id : saranyab0925@gmail.com
# ==========================================================================
"""
There is a fence with n posts, each post can be p... | [
"noreply@github.com"
] | saranyab9064.noreply@github.com |
c063ae1e43904886e7cd5b218a8524b88d167d3f | d4fe2607c25e514df42831ddae3f9509057c2d46 | /USBApplication/main.py | e7788dc2bcb746de6bef539fb9e403a309fec608 | [] | no_license | bxm156/EECS398 | 8cdbb1057f8d7d2fd8764df4309dd4712799d766 | aa638d81fea008d467118691882cee73cefde147 | refs/heads/master | 2021-01-01T05:36:00.159758 | 2013-12-05T17:11:09 | 2013-12-05T17:11:09 | 12,497,895 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import wxversion
wxversion.ensureMinimal('2.9')
import wx
from controllers.main_controller import MainController
class wattrApp(wx.App):
"""Main Application Class"""
def OnInit(self):
#Create the Main Controller for the app
self.controller = MainController(self)
return True
def ... | [
"bxm156@case.edu"
] | bxm156@case.edu |
5dcae8d54229ce8f24ebb539d4c78db5eda46ca8 | 2da355c3e63d911995bd5661100d858ceeae5493 | /python_data/Chapter 10/R/R-10.4.py | 6281e063b265637ef975c2772e0e4f088fc6e2ba | [] | no_license | allenxzy/Data-and-Structures-and-Alogrithms | 1f72e7471f7d8f8982985986eda57f896e73087d | 5977ea9434b42032069b24a538f455067ef38283 | refs/heads/master | 2021-01-16T21:46:24.199337 | 2016-12-14T08:05:40 | 2016-12-14T08:05:40 | 60,823,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #-*-coding: utf-8 -*-
"""
What is the worst-case running time for inserting n key-value pairs into an
initially empty map M that is implemented with the UnsortedTableMap
class?
""" | [
"xuzhiyuan0317@live.com"
] | xuzhiyuan0317@live.com |
bf5c453f2c9fff229667c5c6dee99d246bcb381a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2168/60895/305836.py | f7f5d6f85bc26660c47bd3b4624748690214bd6f | [] | 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 | 407 | py | a,b=input().split(' ')
a=int(a)
b=int(b)
if(a==5 and b==9):
print(21)
elif(a==8 and b==40):
print(1183311715)
elif(a==5 and b==28):
print(646503040)
elif(a==45 and b==47):
print(-1)
elif(a==7 and b==26):
print(855855663)
elif(a==49 and b==323):
print(7144197252)
elif(a==6 and b==36):
print(5... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c69adda22bf8fc34bdd0a1995a202df9ef5f7616 | 1676168244eed1c5610b2c1c38f692f89990b112 | /part4-ML/from_1021_Django/django_crud/articles/migrations/0002_comment.py | 413d84b24ee446983e8fba8024dc1d700be1ab1f | [] | no_license | gtpgg1013/AI_docs | 351e83f986d66224c82fff2de944753c98336d03 | 43f8eed8b2732314bd40ed65e1d7eb44dd28fc04 | refs/heads/master | 2022-12-09T17:32:02.992554 | 2019-11-20T09:03:56 | 2019-11-20T09:03:56 | 182,927,565 | 1 | 0 | null | 2022-12-08T06:50:23 | 2019-04-23T03:54:56 | Jupyter Notebook | UTF-8 | Python | false | false | 872 | py | # Generated by Django 2.2.6 on 2019-10-31 04:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Comment',
... | [
"gtpgg1013@gmail.com"
] | gtpgg1013@gmail.com |
eb19d9950fcde04fb1b38c79483f80db8a6cdb55 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/examples/research_projects/rag/_test_finetune_rag.py | 191792c8cbb7ae49f0c36135e0bb5cd68784eacf | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,557 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
9197f35070ffb5268b64e6f56b5507ca5cee1a2b | 20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7 | /jiayq/grafting/utils/moo.py | 671f759c353c8492d4a11be5038524b748e4ad2a | [] | no_license | sarahboufelja54/galatea | f5664f0b3117629b2c5bbe078a1bd52bb5e359e6 | 002a9f2905868be25b71770190fb2d5eda11c861 | refs/heads/master | 2020-12-04T13:45:07.697189 | 2018-12-12T16:27:09 | 2018-12-12T16:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import base64
import sys
def moo():
'''
A cute function that moos.
'''
print sys.argv[0]
# moo from base64
print base64.b64decode('CiAgICAgICAgIChfXykKICAg\
ICAgICAgKG9vKQogICAvLS0tL\
S0tXC8KICAvIHwgICAgfHwKICo\
... | [
"goodfellow.ian@gmail.com"
] | goodfellow.ian@gmail.com |
32ff5d59b9dc20c13f440bb267fe9305277f17a3 | 2014938dfb3fee66ab38bd2a0ff3124e099dfc83 | /TestAutoProject/WebAutoDrive/day5_web/day5/report_tpshop.py | 20a6ec314b13f1f035dcad9e2504a159727a4a0c | [] | no_license | icerainxuiu/do_co | 182b7c8f5b8db045c454dfbe256edb54d920fc42 | 4e450dba81ae824f30751c1e5bd54ae39062f238 | refs/heads/master | 2023-02-26T11:28:32.824084 | 2021-02-06T02:32:34 | 2021-02-06T02:32:34 | 274,973,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import time
import unittest
from day5_web.day5.ex01 import TestTPShop
from day5_web.day5.tools.HTMLTestRunner import HTMLTestRunner
suite = unittest.TestSuite()
suite.addTest(TestTPShop("test_login"))
suite.addTest(TestTPShop("test_change_add"))
# suite.addTest(unittest.makeSuite(TestTPShop))
report_my = './report/{... | [
"icerainxuiu@outlook.com"
] | icerainxuiu@outlook.com |
c680f5686a3c3c2f82d7b60a04e0a43e462642a0 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Hash Table/make_two_arrays_equal_by_reversing_sub-arrays.py | 5e01646539d178e12d2527473e446d95af0bb5bc | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | class Solution:
def canBeEqual(self, target: List[int], arr: List[int]) -> bool:
_map = {}
for t in target:
_map[t] = _map.get(t, 0) + 1
for a in arr:
if a in _map and _map.get(a) > 0:
_map[a] = _map[a] - 1
else: return False
... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
c932840d55262ea3302710c3e49cbba0a2ad6f2d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_superhighways.py | 1e5621d9198f517bfe4b3ec054a39216ee0ef157 | [
"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 | 280 | py |
from xai.brain.wordbase.nouns._superhighway import _SUPERHIGHWAY
#calss header
class _SUPERHIGHWAYS(_SUPERHIGHWAY, ):
def __init__(self,):
_SUPERHIGHWAY.__init__(self)
self.name = "SUPERHIGHWAYS"
self.specie = 'nouns'
self.basic = "superhighway"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
714a67b878846e4db2831b0cd91be31642781d56 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2305/60765/312368.py | fa735db174171155a26c12d780d4b67615b2e753 | [] | 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,894 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import math
import sys
import re
from collections import *
from itertools import *
from functools import *
import random
def solve():
# =list(map(int,input().split()))
# =int(input())
# def root(i):
# if unions[i]<0:
# return i
# else... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3fdd8fdd404a8bab766b2dceed796b3617e3c973 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v3/proto/services/customer_extension_setting_service_pb2_grpc.py | c65c9fd0f5ef1cd0a7c7cde6906a103ded23a4c0 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 3,940 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.ads.google_ads.v3.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v3_dot_proto_dot_resources_dot_customer__extension__setting__pb2
from google.ads.google_ads.v3.proto.services import cus... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
a51af00984b5ba65304e8cf73473b604c7cef56e | b93b6fa44589dcedb1af70232e66290b784d9be0 | /tilemap.py | b4c89dddf9610238dab63f13602dd28153fb11ae | [] | no_license | guy-nithi/tilemap | 6dea04d669fa6ab30eb8b48e7eb96d7d971d6e9d | 593d02b9e5d4437e1d7f3b3ef5adafd792172a29 | refs/heads/master | 2023-06-18T16:37:08.491562 | 2021-07-23T06:48:55 | 2021-07-23T06:48:55 | 388,709,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | import pygame as pg
import pytmx
from settings import *
def collide_hit_rect(one, two):
return one.hit_rect.colliderect(two.rect)
class Map:
def __init__(self, filename):
self.data = []
with open(filename, 'rt') as f:
for line in f:
self.data.append(line.strip())
... | [
"admin@admins-MacBook-Air.local"
] | admin@admins-MacBook-Air.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.