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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f14d86124a58ed2a0ba3b2173fa644ccf6aed101 | ba45840f241a0348d8f11df4bf5e16dee230bda5 | /config/config.py | 88fe4b900e6b8435fdccd2cd0ced9374f2fd1578 | [] | no_license | zhengxiawu/FGIR-GAN | 2d630b4330da535e157f13561160789f2d1183c4 | 2a4e94c1c736d2b20255eda34b801e9fc2be62af | refs/heads/master | 2020-03-07T02:57:37.518206 | 2018-04-04T01:42:32 | 2018-04-04T01:42:32 | 127,222,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | # --------------------------------------------------------
# MXNet Implementation of pix2pix GAN
# Copyright (c) 2017 UIUC
# Modified by Bowen Cheng
# --------------------------------------------------------
import yaml
import numpy as np
from easydict import EasyDict as edict
config = edict()
config.MXNET_VERSION =... | [
"zhengxiawu@126.com"
] | zhengxiawu@126.com |
bfe93474345ec70c961dbdc527b854fb60902af2 | 084a13b6524e21914826e842eeefefd09570a970 | /experiments/atari_hard/montezuma_revenge/ppo_cnd_110_2.py | 3737607040f72aec5ff14669c39f29ff72e48a5b | [
"MIT"
] | permissive | michalnand/reinforcement_learning | 28aa0e2c92b6112cf366eff0e0d6a78b9a56e94f | 01635014a37a4c871766b4cdd2caaa26a0c2d8cc | refs/heads/main | 2023-06-01T10:27:36.601631 | 2023-02-12T19:46:01 | 2023-02-12T19:46:01 | 217,841,101 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import time
import torch
import RLAgents
import models.ppo_cnd_110_2.src.model_ppo as ModelPPO
import models.ppo_cnd_110_2.src.model_cnd_target as ModelCNDTarget
import models.ppo_cnd_110_2.src.model_cnd as ModelCND
import models.ppo_cnd_110_2.src.config as Config
#torch.cuda.set_device("cuda... | [
"michal.nand@gmail.com"
] | michal.nand@gmail.com |
2cbe46e844394113c5a7b0db976db90e3d92a72b | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/capabilities_e34fedc02893b4ebddb7e5f9d242efcc.py | 4d5b4d23c25816f353599659ba9dc980cfeb59ec | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,008 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
a82b1bbd2b03de5d576c5401152707034fefb3a8 | d5214b1331c9dae59d95ba5b3aa3e9f449ad6695 | /qPloneResolveUID/tags/0.2.4/transforms/ruid_to_url.py | b243d8358f79baaeef8a74505a0c1b12a115c326 | [] | no_license | kroman0/products | 1661ee25a224c4b5f172f98110944f56136c77cf | f359bb64db22f468db5d1e411638790e94d535a2 | refs/heads/master | 2021-01-10T07:58:04.579234 | 2014-06-11T12:05:56 | 2014-06-11T12:05:56 | 52,677,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,059 | py | # Author: Melnychuk Taras
# Contact: fenix@quintagroup.com
# Date: $Date: 2006-08-11
# Copyright: quintagroup.com
import re
from Products.CMFCore.utils import getToolByName
from Products.PortalTransforms.interfaces import itransform
from Products.qPloneResolveUID.config import *
class ruid_to_url:
"""Transform ... | [
"mylan@4df3d6c7-0a05-0410-9bee-ae8b7a76f946"
] | mylan@4df3d6c7-0a05-0410-9bee-ae8b7a76f946 |
51ac6b863cba692cbdc9780978fb8f213b7e3c57 | 3b225bf4895df8b5c02d82b94574ed7985b2c69f | /test_settings.py | 44a7acc2fb39588561c79457caebcf6ed97e4b11 | [] | no_license | yakky/aldryn-faq-1 | 10d8d825447a1ba8d62712fbabe988d3d8203a94 | 3749ad2568432d3e78c0d37627b1bff9f52b69b9 | refs/heads/master | 2021-01-15T14:58:46.492723 | 2015-01-16T10:08:44 | 2015-01-16T10:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
HELPER_SETTINGS = {
'ROOT_URLCONF': 'aldryn_faq.tests.urls',
'TIME_ZONE': 'Europe/Zurich',
'LANGUAGES': (
('en', 'English'),
('de', 'German'),
('fr', 'French'),
),
'INSTALLED_APPS': [
'adminsortable',
'aldryn_faq',
'djangocms_t... | [
"mkoistinen@gmail.com"
] | mkoistinen@gmail.com |
2965f5264cd0016485601e825d6789dcf00187f9 | 6710c52d04e17facbc9fb35a7df313f7a2a7bd53 | /0319. Bulb Switcher.py | 817afd635d32758fc9c7054706a3bdac532686ba | [] | no_license | pwang867/LeetCode-Solutions-Python | 535088fbe747a453360457728cc22cf336020bd2 | 188befbfb7080ba1053ee1f7187b177b64cf42d2 | refs/heads/master | 2022-11-13T16:20:28.211707 | 2020-06-28T06:01:14 | 2020-06-28T06:01:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # this question is basicly asking for the count of divisors of a number
# only lighbulbs in m^2 will be on, becuase dividors will always
# appears in a pair except m^2, so only m^2 will have odd numbers of dividors
class Solution(object):
def bulbSwitch(self, n):
"""
:type n: int
:rtype: i... | [
"wzhou007@ucr.edu"
] | wzhou007@ucr.edu |
dc73268b30ed69da8d008cedd34a1a6303b4a3b6 | 67bc22c4bb1388994e3c983c9be0d85b6cc80cb2 | /charmcraft/commands/store/__init__.py | c4087cdc5fcf28020a0af3b83ebb7bdcc3759ee8 | [
"Apache-2.0"
] | permissive | msgpo/charmcraft | c35bb3eaf98a9d3e832211d185404256743acd31 | 89adbcb3c059da7c023f789ba8c978494f1d17f9 | refs/heads/master | 2022-11-15T08:39:35.942078 | 2020-07-14T14:20:41 | 2020-07-14T14:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,483 | py | # Copyright 2020 Canonical 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 in writing, s... | [
"facundo@taniquetil.com.ar"
] | facundo@taniquetil.com.ar |
a62693bd536b3eb67490873a1f580a9c1efd2bcd | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/85.py | 8cf79e0f137aeaf913cd1a9586a7cbec25e4ea0e | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | #!/usr/bin/python
import os
import sys
fin = sys.stdin
def normalize(x):
s = str(x)
smallest = x
for i in xrange(1, len(s)):
n = int(s[i:] + s[:i])
if n < smallest:
smallest = n
return smallest
def main():
T = int(fin.readline())
for t in xrange(1, T + 1):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e69357a0b01abbd4d042f0fe6c61619e1f299ebc | 58828acea95ec3babcada95a62af385e5e924594 | /tests/test_load.py | 4b5b36b2c319c8fce1920031831f3aab165cb01d | [
"Zlib"
] | permissive | akx/pyalleg | 22eab5f0fe1291bcaf535cb8a264e3e0474d6378 | e14eb4dcf84f2a165fb2556ae40305a279d6e4c4 | refs/heads/master | 2021-01-21T15:22:47.855437 | 2017-06-25T21:55:07 | 2017-06-25T21:55:07 | 95,387,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | from pyalleg import *
import time,random,math
def rnd(m): return random.randint(0,m)
init()
initGfx(0,640,480)
initKeyboard()
screen=getScreen()
page=Bitmap(640,480)
bitmap=loadBitmap("smiley.bmp")
font1=loadFont("pixelfont.pcx")
font2=loadFont("comic.pcx")
font=getFont()
t=0
sinex=640
# XColor is a class to encapsu... | [
"akx@iki.fi"
] | akx@iki.fi |
4c6724a90a253228261c56b46258222d275e4a7b | 27923f62fa5544c84d3c54c90f325525205381bc | /tests/js/classifier/RandomForestClassifierTest.py | d9ac8eb96bf61721e55f9d9f20fb4b63f2a8c4b8 | [
"MIT"
] | permissive | JasonKessler/sklearn-porter | 8e8eb34931e4c82289b6a08cdd29c1c73f032e1c | eaa094e122812d88b6f674dee9bed3ceb8b36e96 | refs/heads/master | 2020-05-20T18:42:48.472607 | 2017-02-08T22:00:22 | 2017-02-08T22:00:22 | 84,506,202 | 1 | 1 | null | 2017-03-10T01:34:15 | 2017-03-10T01:34:15 | null | UTF-8 | Python | false | false | 551 | py | # -*- coding: utf-8 -*-
import unittest
from sklearn.ensemble import RandomForestClassifier
from sklearn_porter import Porter
from ..JavaScriptTest import JavaScriptTest
class RandomForestClassifierTest(JavaScriptTest, unittest.TestCase):
def setUp(self):
super(RandomForestClassifierTest, self).setUp(... | [
"darius.morawiec@nok.onl"
] | darius.morawiec@nok.onl |
a4b35ff16815f444c21e0e23f3f4ba9385c85baa | 13faa0d553ed6c6a57791db3dfdb2a0580a1695b | /CodeChef/Practice/Easy/CARVANS.py | dac8fc3fca89d8ccbf494609774fa48b766d384c | [] | no_license | kautsiitd/Competitive_Programming | ba968a4764ba7b5f2531d03fb9c53dc1621c2d44 | a0d8ae16646d73c346d9ce334e5b5b09bff67f67 | refs/heads/master | 2021-01-17T13:29:52.407558 | 2017-10-01T09:58:23 | 2017-10-01T09:58:23 | 59,496,650 | 0 | 0 | null | 2017-05-20T17:27:18 | 2016-05-23T15:56:55 | HTML | UTF-8 | Python | false | false | 275 | py | for _ in range(input()):
n = input()
a = map(int, raw_input().split())
answer = 0
maxPossibleSpeed = 100000000000000000000
for i in range(n):
if maxPossibleSpeed > a[i]:
maxPossibleSpeed = a[i]
answer += 1
print answer
| [
"kautsiitd@gmail.com"
] | kautsiitd@gmail.com |
b60fcc555ff549bc2fd84e7d9d52087d866b4e82 | d305e9667f18127e4a1d4d65e5370cf60df30102 | /model_zoo/official/nlp/tinybert/src/assessment_method.py | 748666e3cef397c4be599168e5dd82d4d296ad2f | [
"Apache-2.0",
"MIT",
"Libpng",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"IJG",
"Zlib",
"MPL-1.1",
"BSD-3-Clause",
"BSD-3-Clause-Open-MPI",
"MPL-1.0",
"GPL-2.0-only",
"MPL-2.0",
"BSL-1.0",
"LicenseRef-scancode-unknow... | permissive | imyzx2017/mindspore_pcl | d8e5bd1f80458538d07ef0a8fc447b552bd87420 | f548c9dae106879d1a83377dd06b10d96427fd2d | refs/heads/master | 2023-01-13T22:28:42.064535 | 2020-11-18T11:15:41 | 2020-11-18T11:15:41 | 313,906,414 | 6 | 1 | Apache-2.0 | 2020-11-18T11:25:08 | 2020-11-18T10:57:26 | null | UTF-8 | Python | false | false | 1,900 | 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... | [
"513344092@qq.com"
] | 513344092@qq.com |
248b5ac5c6d190627d78e44150eb5ad826a328a2 | 0db67bff1f2dcdadecf635ae535add91cb54c4f3 | /PythonBasis/week07/task08.py | 12d7899dc36dc321d5e9e2c6401c3c56ac766676 | [] | no_license | pavelbrnv/Coursera | 713fdb79dbf6fbde405fc991bd67db0cab30da00 | cc568f79229147866ff1df8539cf8ea66dc9ccca | refs/heads/master | 2023-03-07T23:21:09.685318 | 2021-02-22T15:08:27 | 2021-02-22T15:08:27 | 336,600,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | inFile = open('input.txt', 'r', encoding='utf8')
n = int(inFile.readline())
possible_answers = set(range(1, n + 1))
while True:
line = inFile.readline().strip()
if line == 'HELP':
break
values = set(map(int, line.split()))
intersection = possible_answers & values
difference = possible_a... | [
"pbaranov@stc-spb.ru"
] | pbaranov@stc-spb.ru |
026207928ea78a4906fb1156e9dac2a4b63314bf | 4388363ba45b95910c25bae3d9c02ad78f4a75d6 | /python/anaconda/pkgs/bokeh-0.12.5-py27_1/lib/python2.7/site-packages/bokeh/_version.py | 2d9d3c6ac66a462a5e597d7f4a5d0c307e53a471 | [] | no_license | locolucco209/MongoScraper | d494e02531f4f165b1e821633dc9661c579337b5 | 74476c9f00ee43338af696da7e9cd02b273f9005 | refs/heads/master | 2022-11-25T19:09:27.248747 | 2018-07-10T03:54:06 | 2018-07-10T03:54:06 | 137,553,786 | 3 | 1 | null | 2022-11-16T04:32:26 | 2018-06-16T04:49:22 | null | UTF-8 | Python | false | false | 498 | py |
# This file was generated by 'versioneer.py' (0.17) from
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this file.
import json
version_json = '''
{
"date": "2017-04-05T16:01:29-0300",
"dirty": false,
"error... | [
"lukemassetti@WestSide-Luke.local"
] | lukemassetti@WestSide-Luke.local |
8b2ff510d53caf77dc3fc6a53a9d025f256c25b2 | 801b637b846b5ada47c462ad8547d240ceba72b8 | /Linked Lists/Remove Linked List Elements.py | 5fa602316c130cf8f1835f61bcff3fecba943547 | [] | no_license | shlokashah/Coding-Practice | 7834fed4b50b85ddcab420e830ecec89638390a5 | a56e1a4185aba1f32c1169d486b705f28888ca07 | refs/heads/master | 2022-11-20T13:00:54.617380 | 2020-07-21T14:35:40 | 2020-07-21T14:35:40 | 252,912,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def removeElements(self, head: ListNode, val: int) -> ListNode:
temp = ListNode()
temp.next = head
cur = temp
while temp.next:
... | [
"shlokashah0603@gmail.com"
] | shlokashah0603@gmail.com |
1c83408411bb27495158a05efcd8fc60e46696ab | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/typeshed/third_party/2and3/mypy_extensions.pyi | 19d99cc9d70ca31f5df8f823fe75a31c3fd78c00 | [
"MIT",
"Apache-2.0"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 2,051 | pyi | import abc
import sys
from typing import (
Dict, Type, TypeVar, Optional, Union, Any, Generic, Mapping, ItemsView, KeysView, ValuesView,
Callable,
)
_T = TypeVar('_T')
_U = TypeVar('_U')
# Internal mypy fallback type for all typed dicts (does not exist at runtime)
class _TypedDict(Mapping[str, object], metacl... | [
"srusskih@users.noreply.github.com"
] | srusskih@users.noreply.github.com |
afca66273f25c8e08d273045ec0a1a360be666e4 | 00be95b38365bbf024572c4071aa20edc85deddd | /pretraining/models/customnet.py | b9207ef3e74ef8fdcbebd153d37281027ca81beb | [
"MIT"
] | permissive | tikzoxs/EyeKnowYouSSL_SimCLR | 2fbbc00642a4068f74a1db6d82bba160ca738346 | cdb92cf43eff6396fd416b3bba2b5bffcb8072c1 | refs/heads/main | 2023-01-12T19:59:24.706886 | 2020-11-15T04:02:59 | 2020-11-15T04:02:59 | 309,214,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.models as models
#create your custom net
class CustomNet(nn.Module):
def __init__(self, out_dim=64):
super(CustomNet, self).__init__()
self.conv1 = nn.Conv2d(1, 16, kernel_size=3, stride=1, padding=1)
se... | [
"shamane@ahlab.org"
] | shamane@ahlab.org |
db6ac5fe2e00e73bf729e3846e1634923d5a9b37 | 2efe8116a5a60f5f7c46cf1b0ac598be49087942 | /EpsilonWebsite/EpsilonWebsite/wsgi.py | 672d83380fb4b4ce6e03f6b0705b39fb5abb00da | [] | no_license | SothanaV/EIweb | caaf8b9f844ebf28d0a45b7cceaf753277cbe1c7 | cedca00e74151a6ecb78da7b76d8888c9c94424b | refs/heads/master | 2021-09-04T04:19:30.124958 | 2018-01-15T18:32:47 | 2018-01-15T18:32:47 | 104,970,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for EpsilonWebsite 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJAN... | [
"nai6320@gmail.com"
] | nai6320@gmail.com |
da7d289d9a5eb18c06ab6d897553543f1728130c | ad5c6daba04c8e04054085f96d36f5b167a09a37 | /src/lepl/stream/maxdepth.py | b5573f0cf84668787a590009e71e57130452fe94 | [] | no_license | nyimbi/LEPL | f49fee47a3c47d0291d2356e8a1e9b3120e32c05 | 0603505f187acc3c7da2e1a6083833a201f8b061 | refs/heads/master | 2021-04-15T13:40:32.860153 | 2018-03-26T14:00:25 | 2018-03-26T14:00:25 | 126,837,047 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | # The contents of this file are subject to the Mozilla Public License
# (MPL) Version 1.1 (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.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# ba... | [
"nyimbi@gmail.com"
] | nyimbi@gmail.com |
76376141faf3d7231ac68a1fbea4c36860e31d1a | 4e8a1750e6a9e7368c91bc9296fb1c1ff6b8f3ea | /unit08/exercise0806.py | af1899a476a88ac2dc06154710faf36c99c4c111 | [] | no_license | kevin510610/Book_AGuideToPython_Kaiching-Chang | 961dbd24aa1094664b9a9754f2882d4d7f964289 | 7db7cf8186e02f4210a01fbd4c454f0030b57022 | refs/heads/master | 2023-04-16T04:59:51.598236 | 2021-04-13T03:08:32 | 2021-04-13T03:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | def factorial(n):
i = 1
p = 1
while i <= n:
p *= i
i += 1
return p
n = int(input("n: "))
print(factorial(n))
# 檔名: exercise0806.py
# 作者: Kaiching Chang
# 時間: July, 2014
| [
"kevin510610@gmail.com"
] | kevin510610@gmail.com |
0ae6c569d7ba64ecd69d11dfaa0d0a8135004962 | ca23b411c8a046e98f64b81f6cba9e47783d2584 | /factorize_a_city/libs/utils.py | 939a7aaaec7f7ab87928e4d456fe97833be80859 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pdybczak/google-research | 1fb370a6aa4820a42a5d417a1915687a00613f9c | 0714e9a5a3934d922c0b9dd017943a8e511eb5bc | refs/heads/master | 2023-03-05T23:16:11.246574 | 2021-01-04T11:30:28 | 2021-01-04T11:30:28 | 326,629,357 | 1 | 0 | Apache-2.0 | 2021-02-01T12:39:09 | 2021-01-04T09:17:36 | Jupyter Notebook | UTF-8 | Python | false | false | 3,949 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9bf9a8fa4b7511ee7ddec1c52b7f7f7cc9c701c9 | fb5d2c4c76b311871b23c1d7266f074d4a709ef6 | /plotting/plot_ideal_dlogp.py | e57cb71de188c520b98ce28fb111ff526349a289 | [
"AFL-3.0"
] | permissive | philbull/RadioFisher | 50be8d49d7bdde2712bd35682a359c43f22e3a28 | fe25f969de9a700c5697168ba9e0d2645c55ed81 | refs/heads/master | 2023-01-20T01:27:39.982180 | 2020-11-24T07:44:51 | 2020-11-24T07:44:51 | 315,553,003 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | #!/usr/bin/python
"""
Plot fractional constraints on P(k) for Euclid and noise-free versions of
Facility with different amounts of foreground contamination. (Fig. 27)
"""
import numpy as np
import pylab as P
from rfwrapper import rf
import matplotlib.patches
import matplotlib.cm
import os
from radiofisher import eucli... | [
"philbull@gmail.com"
] | philbull@gmail.com |
f0b2ebaf72776e0d44d6bcd2b5874668d37c3582 | 8bd3229c4f07243c5756a029f507235e49221d21 | /Store/src/products/migrations/0007_remove_category_catname2.py | 5b5fc3c56ba8de8ea514074faf7386f03e2a398b | [] | no_license | ammaralazie/Online-store | 4d937cbd022c36f9f671593e9e6122edce262f54 | 51e6a8518ab52ce9e6bb589cce31876c944fc191 | refs/heads/master | 2023-02-12T14:51:55.088522 | 2021-01-09T04:04:14 | 2021-01-09T04:04:14 | 304,319,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Generated by Django 3.1 on 2020-08-24 13:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0006_auto_20200824_1308'),
]
operations = [
migrations.RemoveField(
model_name='category',
name='CATName2',
... | [
"alaziiammar@gmail.com"
] | alaziiammar@gmail.com |
f3523dde04d19cfbb77789c443ba224da4bdcd25 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /chromeos/DEPS | 757faf1e910c622d4ec213d9ea619db55cb922fd | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | # Please keep the dependencies here to a minimum. This is intended to be a
# low level Chrome OS system library that may be used by targets that need to
# be kept as small as possible.
include_rules = [
"+components/device_event_log",
"+components/policy/proto",
"+components/pref_registry",
"+components/... | [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
7ce3edaa3f5528687a51a5632a5bf3a96b5872cf | 5e4d6df8fa464f4270855846bf0708ae24d4a572 | /blabla/0625-0701_Antai_src/src/0626/1003time.py | 54ff79984180c1e77ca402b85bd50491051ff27a | [] | no_license | xy2333/tianchi-CBE | 2455796a7241db65ef42dd4f00c6a13fb462f246 | f169d21290e25ccf65bb7a0040e83cb9ef5f9dc2 | refs/heads/master | 2020-06-12T12:09:59.295929 | 2019-08-05T03:43:18 | 2019-08-05T03:43:18 | 194,294,624 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | #encoding=utf-8
# 将train表的数据整理出四个is_morning,afternoon,night,midnight等
t1 = '2018-07-23 17:58:40' # 星期1
t2 = '2018-07-24 17:58:40' # 星期2
t3 = '2018-07-25 17:58:40' # 星期3
t4 = '2018-07-26 17:58:40' # 星期4
t5 = '2018-07-27 10:58:40' # 星期5
t6 = '2018-07-28 17:58:40' # 星期6
t7 = '2018-07-29 17:58:40' # 星期7
t8 = '2018-07-30 ... | [
"2531188679@qq.com"
] | 2531188679@qq.com |
64128404526fc7098153d4f5fada2b52e72e6af3 | 2b9397e9e26f7d97ce6983d36c9842ac773b70c6 | /operation/migrations/0071_auto_20190724_1239.py | 45003f13e5b832519139fd299b437ec39213d210 | [] | no_license | eakDev/aip-1 | 288ed7d7b8cf65c74b510f4f4e45292e3342796d | 3db2520e3c246e25e2cfa62e395a3ba6ebe37252 | refs/heads/main | 2023-05-02T08:57:42.449727 | 2021-05-23T10:16:59 | 2021-05-23T10:16:59 | 386,578,482 | 1 | 0 | null | 2021-07-16T09:15:22 | 2021-07-16T09:15:22 | null | UTF-8 | Python | false | false | 2,163 | py | # Generated by Django 2.1.1 on 2019-07-24 04:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('operation', '0070_projectitem_dependency'),
]
operations = [
migrations.RemoveField(
model_name='majorexpense',
name... | [
"clyde.khayad@gmail.com"
] | clyde.khayad@gmail.com |
bc4bb2ab64e0a17a47e1b6f43fd2b3437f721193 | 6cbaade56c5db347d1be9a3422a69af52df39b97 | /python_workspace/3_bigdata/02_Standardization_Analysis/03_DB/3db_update_rows.py | 5adb87cf5b4001047ddbf256047752fe4797d8e7 | [] | no_license | baewonje/iot_bigdata_- | b54e3772f64b9695efee8632183590628b679e11 | 2ce1af67d2f05abeb2ecd442b7299f349bdb9753 | refs/heads/master | 2020-09-06T09:53:53.018320 | 2019-12-06T08:19:33 | 2019-12-06T08:19:33 | 220,390,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | # !/usr/bin/env python3
import csv
import sqlite3
import sys
# path to and name of a CSV input file
input_file = sys.argv[1] #data_for_updating.csv
# Creat an in-memory SQLite3 database
# Create a table called sales with four attributes
con = sqlite3.connect(':memory:')
query = """CREATE TABLE IF NOT EXISTS sales
... | [
"50129576+baewonje@users.noreply.github.com"
] | 50129576+baewonje@users.noreply.github.com |
d2a94da24516c80d5f77b6421de322c3da5d2878 | 5e27c7f5426c169fd348b26e94b65c35f9cdc459 | /hiveguilib/HBlender/NodeItemManager.py | 4b7b29f0dc48b1dc592c47a1c27d9ff0efbb321a | [
"BSD-2-Clause"
] | permissive | agoose77/hivesystem | e2c9c27408233b5794151ca74f541d2e6063d58a | e1f55c5ea530a989477edb896dcd89f3926a31b8 | refs/heads/master | 2020-07-21T23:07:37.178856 | 2014-08-23T02:13:19 | 2014-08-23T02:13:19 | 20,776,359 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,172 | py | import bpy
from . import level
class NodeItem:
"""Operator entry within the Add node menu"""
def __init__(self, manager, key, fullkey):
self.manager = manager
self.key = key
self.fullkey = fullkey
def _active(self, context):
if context.space_data.edit_tree is None:
... | [
"goosey15@gmail.com"
] | goosey15@gmail.com |
a6c8ba694d4221f97b510caa34d07f1f90b4820c | 196137e16065125b854f00509849aaf4bd2d0394 | /account/urls.py | 470f067ac27933fb4a7774b6324375f32870c869 | [] | no_license | ksuvarna85/unicode_quiz | 2f74f20fa5327a43e85a3e20538e9c3620a1e4dc | d45df6be213b44d1704163c7137d96c8695bfced | refs/heads/master | 2022-12-27T06:04:37.912161 | 2020-10-16T05:17:22 | 2020-10-16T05:17:22 | 296,305,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | from django.contrib import admin
from django.urls import path,include
from account import views
app_name='account'
urlpatterns=[
path('register/',views.student_register,name='student_register'),
path('teacher_register/',views.teacher_register,name='teacher'),
path('login/',views.user_login,name='user_logi... | [
"you@example.com"
] | you@example.com |
e59211370261a20210a37aca73990884fc1ae746 | 8606267410dabfeacb4b7ff285a8d2250c139acc | /store/migrations/0001_initial.py | 02752dd9c03ef9ffa7bb9baf7b45f72a0984e8d2 | [] | no_license | Taraltinu/chopping-Site | a5e6f6eeeecb4fef92f90770a3c2493eca0f0bde | 1b722d53de1baaa5780701416f78dab62ef7d057 | refs/heads/master | 2022-12-20T07:06:16.602476 | 2020-10-02T18:07:31 | 2020-10-02T18:07:31 | 300,697,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # Generated by Django 3.1.1 on 2020-09-11 10:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Produc',
fields=[
('id', models.AutoField(a... | [
"tinu1316@gmail.com"
] | tinu1316@gmail.com |
5333cb7e40f6f61d1f108d164fb66a2042e93863 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenMiniInnerVersionproportionModifyModel.py | b4cc7d37f14d975472b8a0fb77f70ed09f8bac46 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,311 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniInnerVersionproportionModifyModel(object):
def __init__(self):
self._app_origin = None
self._bundle_id = None
self._dev_id = None
self._mini_app_id =... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
2f8dcf3655a9ae3cdee7dbe1d09991ec55257159 | e3bdb7844f634efd89109079d22cade713c4899d | /openapi_client/models/void_transaction_all_of.py | ce89ea1172ba74575cfc5d49430f63a171e6cf8d | [] | no_license | pc-coholic/Python | 5170c27da09b066c353e09539e404961f7ad50b7 | b7251c31339b579f71fb7ee9db05be51e9e43361 | refs/heads/master | 2023-04-19T02:42:02.914726 | 2021-04-26T16:07:37 | 2021-04-26T16:07:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
7fa572d27d6541c78c9f0fa12047679f64d428d0 | 6efb8ca0d1a48edf1335e8fd046ef79072282b9c | /实验/6章/例题/6-10a-to-A.py | f9a13bef6eb3c68edbdf57fa62cbc38546a813f2 | [] | no_license | RedheatWei/python-study | f0c35afd7325982568f554f4eded6a75f9eb8b49 | 3a7dc64028e5246198d7a64c1dc9ee318992020e | refs/heads/master | 2021-01-01T17:13:35.156410 | 2019-07-29T09:18:52 | 2019-07-29T09:18:52 | 98,027,727 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 168 | py | #!/usr/bin/env python
#_*_ coding:utf-8 _*_
'''
Created on 2015Äê2ÔÂ26ÈÕ
@author: Redheat
'''
str_first = raw_input('Enter a string:')
print str_first.swapcase() | [
"qjyyn@qq.com"
] | qjyyn@qq.com |
c91b6d4d976b7babc5a3e71d20631f1d1e590f59 | 7c69c27a1c6ff2a1552900f4c1001281f4447233 | /codechef/cnote.py | 3694d9b77b4c2bf333e653fa8cf7792e0225184b | [] | no_license | Hamiltonxx/pyalgorithms | 894a0228928819601a816c472689ce96a11e1d25 | 92284f6105c5deb7f843ff299ee3ceb6382cf879 | refs/heads/master | 2023-09-04T13:01:46.465661 | 2023-09-02T05:50:23 | 2023-09-02T05:50:23 | 231,999,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | T = int(input())
for i in range(T):
X,Y,K,N = map(int, input().split())
left = X-Y
flag=0
for j in range(N):
P,C = map(int, input().split())
if left<=P and C<=K and flag==0:
flag=1
print("LuckyChef") if flag else print("UnluckyChef")
| [
"hamiltonhgz@gmail.com"
] | hamiltonhgz@gmail.com |
5e419e8f6008694b7ab2272f54bb1a47a63ce4d4 | b341a8d120737297aa8fd394a23633dac9b5ccda | /accounts/migrations/0002_remove_customuser_department.py | 491606403866741ecec2bdf0b085d4202f9d193b | [] | no_license | Minari766/disney_side_stories | 16d97cb02bf00aa5439d59f753abb9a4706a30aa | aa2d88b1b0fdd87a27f41318bd3ec7352229b6ff | refs/heads/main | 2023-08-15T07:03:16.922579 | 2021-10-03T07:47:22 | 2021-10-03T07:47:22 | 306,496,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Generated by Django 2.2.16 on 2021-01-13 14:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='customuser',
name='department',
),... | [
"mina3.ryu0728@gmail.com"
] | mina3.ryu0728@gmail.com |
616cc832511e0d987c803eef500c6c3d52031364 | d8b201ba6bf57db0101d88836429bbcb3a10b857 | /Debugging/WordsScore.py | 498ac004178cda6a9c940b240758bb48d0b5f954 | [
"MIT"
] | permissive | MaxCodeXTC/PythonHackerRankSolutions | 32ad41df3fbd33f8651cdc5099c8ec3d37d9bc17 | 987618b61b71fe5e9a40275fb348476657bbea57 | refs/heads/master | 2022-06-28T06:00:19.126751 | 2020-05-07T09:23:37 | 2020-05-07T09:23:37 | 262,471,271 | 1 | 0 | null | 2020-05-09T02:24:11 | 2020-05-09T02:24:10 | null | UTF-8 | Python | false | false | 129 | py | '''
Title : Words Score
Subdomain : Debugging
Domain : Python
Author : codeperfectplus
Created : 17 January 2020
'''
| [
"54245038+perfect104@users.noreply.github.com"
] | 54245038+perfect104@users.noreply.github.com |
c275f43eb61c8eb74f5a97d674bd1f452c0c7b93 | 386a5b505d77c9798aaab78495d0f00c349cf660 | /Prognos Project/Working/Latiket Jaronde Git/DJango examples/DynamicUrls/urlDemo/views.py | bd2b5dba4a0956ad113487a7d28a7ebb91ba1c86 | [] | no_license | namratarane20/MachineLearning | 2da2c87217618d124fd53f607c20641ba44fb0b7 | b561cc74733b655507242cbbf13ea09a2416b9e2 | refs/heads/master | 2023-01-20T18:54:15.662179 | 2020-03-09T14:12:44 | 2020-03-09T14:12:44 | 237,597,461 | 0 | 0 | null | 2023-01-05T12:37:12 | 2020-02-01T10:22:20 | Python | UTF-8 | Python | false | false | 897 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request, name=""):
l = [{'a': 1, 'b': 2, 'c': 3}, {'a': 11, 'b': 22, 'c': 33}, {'a': 111, 'b': 222, 'c': 333}]
if name == "":
data = ['latiket', 'akash', 10, 20]
name = "Dom"
co... | [
"namrata.ashok@impelsys.com"
] | namrata.ashok@impelsys.com |
1758849bf2661b3f1dcfd1af37f68a1e02729240 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/parcoords/dimension/_templateitemname.py | a6797fb9536cd704210159e36fd5b521aea5421a | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 474 | py | import _plotly_utils.basevalidators
class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name='templateitemname',
parent_name='parcoords.dimension',
**kwargs
):
super(TemplateitemnameValidator, self).__init__(
... | [
"noreply@github.com"
] | miladrux.noreply@github.com |
0f149c6acecb80330e3c79511180324dbce155fb | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/learn_python_dm2039/ch30/ch30_17.py | b986aa91ea8f242a52bc9f62580e37d7407553c6 | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # ch30_17.py
import threading
import time
def worker():
print(threading.currentThread().getName(), 'Starting')
time.sleep(3)
print(threading.currentThread().getName(), 'Exiting')
w = threading.Thread(name='worker',target=worker)
w.start()
print('start join')
w.join(1.5) # 等待worker執... | [
"terranandes@gmail.com"
] | terranandes@gmail.com |
93ca2f8487f174dab4e789d314ee88d24e2f3ce9 | 247508a09bbcd08f75de7c85118caf857941f9dd | /python/lvmscp/actor/commands/focus.py | df0a3a6a39a0203eecff28d2afa3789178f3787b | [
"BSD-3-Clause"
] | permissive | sdss/lvmscp | 051b6aad20d2a184ac046be086331fa06f2d3fa2 | f74d83997cbba01a0c5b55615fbe6dbf0572b8c9 | refs/heads/main | 2023-09-02T19:47:20.394310 | 2023-08-31T19:32:15 | 2023-08-31T19:32:15 | 348,923,320 | 2 | 0 | BSD-3-Clause | 2022-04-11T02:59:57 | 2021-03-18T03:03:12 | Python | UTF-8 | Python | false | false | 3,827 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# @Author: José Sánchez-Gallego (gallegoj@uw.edu)
# @Date: 2022-05-14
# @Filename: focus.py
# @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause)
from __future__ import annotations
from typing import TYPE_CHECKING
import click
from archon.actor.co... | [
"gallegoj@uw.edu"
] | gallegoj@uw.edu |
c58b535953582454e0c1d3cc1dbbab28db5bf736 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/AOJ/id1130.py | 4af6ca8e627dfbd5e251b8aee1fa908bddc0e8e3 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py |
def do():
while True:
from collections import deque
w, h = map(int, input().split())
if w == h == 0: break
maze = []
curh, curw = -1, -1
maze.append("#" * (w+2))
for hh in range(h):
l = list("#" + input() + "#")
if l.count("... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
7f31e3454fffeba9d60042466e01d28db7bf7dcd | 7cbcef1abbc76c43e2dd094bfe51f81fba8b0e9a | /03_Computer_Vision_OpenCV/01_Document_Scanner/01_document_scanner.py | c09f13abf132d8705185ace2110593b342c9f948 | [] | no_license | SimonSlominski/Data_Science | 10fd5ca3bba8718b19804200c8f14e241e1e78b2 | 5cab52be83effc9e0b9a86888cedcd836dd00980 | refs/heads/master | 2021-05-17T11:19:11.509588 | 2020-06-15T13:44:47 | 2020-06-15T13:44:47 | 250,752,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | """
Detection problems may occur if the background of the image is bright
"""
from numpy.linalg import norm
from skimage.filters import threshold_local
import numpy as np
import imutils
import cv2
image = cv2.imread('images/paragon_1.jpg')
# Image size standardization
# Keep a copy of the original image for later tr... | [
"simon.slominski@gmail.com"
] | simon.slominski@gmail.com |
f74cc4930dcd25bf2e86b5bc9d77e8b29a9297ba | d5be74d2de6fa0ded61d6c3ee7c91a403c0f90db | /quantarhei/qm/liouvillespace/rates/foersterrates.py | 36cb1e2bc487d09ec05efb6449d60fc918149f64 | [
"MIT"
] | permissive | tmancal74/quantarhei | 43cf9d4be857b8e6db1274ebb8a384f1545cd9ad | fa3042d809005d47106e53609e6a63aa780c477c | refs/heads/master | 2023-05-11T06:57:36.368595 | 2023-05-02T13:10:18 | 2023-05-02T13:10:18 | 63,804,925 | 20 | 22 | MIT | 2022-12-21T14:10:00 | 2016-07-20T18:30:25 | Python | UTF-8 | Python | false | false | 5,021 | py | # -*- coding: utf-8 -*-
import numpy
import scipy.interpolate as interp
from ...hilbertspace.hamiltonian import Hamiltonian
from ...liouvillespace.systembathinteraction import SystemBathInteraction
from ...corfunctions.correlationfunctions import c2g
class FoersterRateMatrix:
"""Förster relaxation rate matrix
... | [
"tmancal74@gmail.com"
] | tmancal74@gmail.com |
8ed1850e0eac4651d703f9597c4758f2e6abce1e | 4309919e2361b3e6364fac19fed1e5c40bb6a038 | /yowsup_celery/exceptions.py | 8d667832be294372d4000c9d7a62cb8956c25b17 | [
"ISC"
] | permissive | astamiviswakarma/yowsup-celery | 85b0422a393afa2b3aebb94198bc0a4812b237ed | 75f8edf8832ab1c3370e58a049a2e74e1691276e | refs/heads/master | 2021-07-18T14:41:48.695265 | 2019-01-23T19:25:07 | 2019-01-23T19:25:07 | 135,594,100 | 0 | 0 | ISC | 2018-09-13T08:11:39 | 2018-05-31T14:23:57 | Python | UTF-8 | Python | false | false | 710 | py | # -*- coding: utf-8 -*-
class YowsupCeleryError(Exception):
pass
class UnexpectedError(YowsupCeleryError):
""" Raised for unknown or unexpected errors. """
pass
class ConfigurationError(YowsupCeleryError):
"""
Raised when YowsupStack detects and error in configurations
"""
pass
class C... | [
"jlmadurga@gmail.com"
] | jlmadurga@gmail.com |
1717287b96485ca0b2e569fabca1eae0984ef0fa | 647efc6a8ab5511e30cccb1f3f3af697acc83bcc | /queue_sample.py | c94eb18928417f75008174b195a16175af637880 | [] | no_license | syuuhei-yama/python_01 | 5e244160b12e4023637220e0cfa4a1318f70d265 | e94bc7d9c27bc3ae9cc66a7f87e2de13cc5efaae | refs/heads/master | 2022-12-02T20:14:08.550739 | 2020-08-24T08:46:18 | 2020-08-24T08:46:18 | 289,867,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | #Queue
from queue import Queue
q = Queue(maxsize=3)
print(q.qsize())
print(q.queue)
print(q.empty())
print(q.full())
q.put('A')
q.put('B')
q.put('C')
q.put_nowait('D')
print(q.qsize())
print(q.queue)
print(q.empty())
print(q.full())
#var = q.get()
#print(var)
#print(q.queue)
#var = q.get()
#var = q.get()
#var = q.ge... | [
"syuuhei0615@icloud.com"
] | syuuhei0615@icloud.com |
ccb008ca1217d6ee113dab2c527a5a986495c0e0 | ab4b08284590c3dd2d09f7de2adc35943a3b59f9 | /yqc_huoerguosi_spider/yqc_huoerguosi_spider/settings.py | 6527b1acc25a876e774a16bc5715d8646f22ac3b | [] | no_license | james-hadoop/JamesScrapy | bfe71dc837a2cc61b5eee3b953f8a5b35a40820d | cbf3e230e919da1cfb76ba0d741440206c39e4cf | refs/heads/master | 2020-08-28T23:46:49.816208 | 2020-06-28T23:54:09 | 2020-06-28T23:54:09 | 217,856,936 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | # -*- coding: utf-8 -*-
# Scrapy settings for yqc_huoerguosi_spider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org... | [
"james@JamesUbuntu"
] | james@JamesUbuntu |
bdec9615902bc5bbbe3192556bcbc5bf9f5710d7 | 7f763d7c2289e0dcbcc01073f38ea11706736ed7 | /HackerNews/plugin.py | 27d9b8720aec36b4808d78d8e7003e3883d034b8 | [] | no_license | davidsedlar/LemongrabBot | ee3662a506dcbf6c6bfea0decd00044dd0e40ea9 | 37e18bc54554394ea3afa60fa168414e43ce0a99 | refs/heads/master | 2021-01-15T12:42:21.857132 | 2014-12-31T20:42:43 | 2014-12-31T20:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | import json
import urllib
import urllib2
import re
import supybot.utils as utils
from supybot.commands import *
import supybot.plugins as plugins
import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
class HackerNews(callbacks.Plugin):
"""Add the help for "@plugin help HackerNews" here
Th... | [
"smithers_mr@yahoo.com"
] | smithers_mr@yahoo.com |
39475ae26aaa932b43d254a8b348976f7b7b4d1b | c4a046a62e933d72d3404787429d0840517ae9bd | /sandbox/gkahn/gcg/envs/env_utils.py | 4501126847636df8b691476716de4cc38ea5e34e | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | JasonTOKO/gcg | 6d1cff2307e1bae6790357ea569ed4cca594eb1d | e48c5cf47bfbc879c9477a8c98b3b108d43413af | refs/heads/gcg_release | 2020-04-29T02:30:28.133570 | 2017-12-26T17:06:14 | 2017-12-26T17:06:14 | 175,770,942 | 1 | 0 | NOASSERTION | 2019-03-15T07:32:36 | 2019-03-15T07:32:35 | null | UTF-8 | Python | false | false | 784 | py | from rllab.misc.ext import set_seed
### environments
import gym
from sandbox.rocky.tf.envs.base import TfEnv
from rllab.envs.normalized_env import normalize
def create_env(env_str, is_normalize=True, seed=None):
from rllab.envs.gym_env import GymEnv, FixedIntervalVideoSchedule
from sandbox.gkahn.gcg.envs.rcca... | [
"gkahn13@gmail.com"
] | gkahn13@gmail.com |
0984a460f47fe467dc4b1b0a1b5591fed90dc568 | db7a459e31c0a186dca64a829f93090fa58feab0 | /ai_learning/data_structure/sort05_quick.py | 1d18ed1f5e05491e090069d04ec5228d88187b18 | [] | no_license | ZouJoshua/dl_project | a3e7c9e035c37af698d4ef388fbb8c46174d5de1 | ee7ecedd55ce544b127be8009e026ac2cdc3f71b | refs/heads/master | 2022-12-04T04:21:19.937698 | 2022-01-27T07:33:37 | 2022-01-27T07:33:37 | 175,645,793 | 9 | 3 | null | 2022-11-21T21:30:23 | 2019-03-14T15:07:27 | Python | UTF-8 | Python | false | false | 2,001 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author : Joshua
@Time : 4/27/20 1:47 PM
@File : sort05_quick.py
@Desc : 快速排序
"""
def quick_sort(alist, l, r):
"""
快速排序算法
平均时间复杂度O(nlogn)
最优时间复杂度(序列是有序的O(n))
最坏时间复杂度O(n^2)
稳定
:param alist:
:param left:
:param right:
... | [
"joshua_zou@163.com"
] | joshua_zou@163.com |
a5a9e4a77f543308bc1b3f321af2c9e0d305c91a | 275bc864a84723d6767207573017c7258d60370c | /Refinement_based_extraction/Training_Functions.py | 61a9c272c05e1b2fde13837fa44901eace8ab83e | [
"MIT"
] | permissive | DES-Lab/Extracting-FSM-From-RNNs | ccfa7286b3894fde9e30405fdd2089c54a0b650a | 761b78aed155827b6bb6479daf17a144e7ec8560 | refs/heads/master | 2023-04-08T04:57:16.214037 | 2022-04-14T15:38:07 | 2022-04-14T15:38:07 | 357,165,036 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | from Refinement_based_extraction.Helper_Functions import n_words_of_length
def make_train_set_for_target(target,alphabet,lengths=None,max_train_samples_per_length=300,search_size_per_length=1000,provided_examples=None):
train_set = {}
if None is provided_examples:
provided_examples = []
if None is ... | [
"edi.muskardin@silicon-austria.com"
] | edi.muskardin@silicon-austria.com |
53655fd4008f110145660387e8700896033eb634 | 08428ba80f90f73bbce19e5bd0f423a1b4d025d7 | /src/project_requests/urls.py | 0dc1335179831f78e8a61384807b73fa52521851 | [] | no_license | marcoverl/openstack-security-integrations | 0d3afe093b361c548b65be9e405e10318d51c7cd | 58c560885b007cf25444e552de17c0d6a5a0e716 | refs/heads/master | 2021-01-16T21:18:56.071490 | 2014-06-17T07:56:48 | 2014-06-17T07:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import url
from openstack_dashboard.dashboards.project.project_requests import views
prefix = 'openstack_dashboard.dashboards.project.project_requests.views'
urlpatterns = patterns(prefix,
url(r'^$', views.RequestView.as_view(), name='... | [
"paolo.andreetto@pd.infn.it"
] | paolo.andreetto@pd.infn.it |
603c1e8258762426c4676d2615db71ac122ca5f1 | 14ed6c8bf8f735bd08e7d9d3a06ab71b06335a82 | /update.py | 1d00a9614c9b3cef7b10fd6b2a83dd90174807ae | [] | no_license | HackLB/garage_sales | 8e9ef258c1fa5ec55e85e3819ce07f0ad077ae48 | 78b865ccbf40471ee45b4925b18da56968ee2f6c | refs/heads/master | 2021-01-11T06:52:43.886156 | 2017-09-03T01:00:07 | 2017-09-03T01:00:07 | 72,356,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,596 | py | #!/usr/bin/env python
import os, sys
import requests
from bs4 import BeautifulSoup
from pprint import pprint
import simplejson as json
import hashlib
from geopy.geocoders import Nominatim, GoogleV3
from geopy.exc import GeocoderTimedOut
with open('../secrets.json') as f:
secrets = json.load(f)
geolocator = ... | [
"rogerhoward@mac.com"
] | rogerhoward@mac.com |
93c5bfc63f145f5c6a7b441e8bc989771e798849 | 7136e5242793b620fa12e9bd15bf4d8aeb0bfe7a | /adspygoogle/dfp/zsi/v201010/LineItemCreativeAssociationService_services.py | a543d1f0478ee699edbcb3c5695e3c57cc42665a | [
"Apache-2.0"
] | permissive | hockeyprincess/google-api-dfp-python | 534519695ffd26341204eedda7a8b50648f12ea9 | efa82a8d85cbdc90f030db9d168790c55bd8b12a | refs/heads/master | 2021-01-10T10:01:09.445419 | 2011-04-14T18:25:38 | 2011-04-14T18:25:38 | 52,676,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,486 | py | ##################################################
# LineItemCreativeAssociationService_services.py
# generated by ZSI.generate.wsdl2python
##################################################
from LineItemCreativeAssociationService_services_types import *
import urlparse, types
from ZSI.TCcompound import ComplexType... | [
"api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138"
] | api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138 |
dadb74301dd4de7542922d6102444f2aa9f68ad5 | dbeb1e145eba012a200073038d8a8965ae0c6f5d | /Visualize/surface_3d.py | 167ea594250b9f07a7afab12a5d1e0b9efa58eff | [] | no_license | hellJane/Python_DataAnalysis | b7027cb9d8e75a98b5626a58ee85b64f62c54c9c | 966ee5d732e074e9d124333f13d3e3e23ade1edc | refs/heads/master | 2021-05-17T01:57:24.092791 | 2017-12-01T15:32:32 | 2017-12-01T15:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import LinearLocator, FormatStrFormatter
'''
这个用的比较多,写一下常用参数的含义:
X, Y, Z: 显然这是数据样本点的参数,这里的格式就需要跟contour()一样了,都是2D的数组,即meshgrid
rstride: 绘制表面的行间距
cstride: 绘制表面的列间距
rcount: 绘制表面的行上限
ccount: 绘制表面的列... | [
"noreply@github.com"
] | hellJane.noreply@github.com |
2ec6b6118058d57111beec5e02205c2fd1ddff50 | 5cc8c3690f2398698d78800734f7d1ba5dc5a515 | /notebooks/loader.py | d2725ef5eb97333649f1520c70fcefb1cbf8eed4 | [
"MIT"
] | permissive | kaiyingshan/ode-solver | 0094f06e1bb9f265517b4befec0c04bd3a9d9407 | 30c6798efe9c35a088b2c6043493470701641042 | refs/heads/master | 2020-04-23T00:39:22.148183 | 2019-05-07T17:35:34 | 2019-05-07T17:35:34 | 170,787,367 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
sys.path.append(module_path)
| [
"hanzhi713@163.com"
] | hanzhi713@163.com |
6bc942a94a76a3549acab8a58b09d349fd303f10 | 8ae07790f074439a329f55f3ed3408e2ba775a74 | /Desktop/packages/rmutil/UnixDriveDetector.py | 6097e90559c3ec61aeda0a70120d58db5927bc00 | [
"Apache-2.0"
] | permissive | peter9teufel/usb-kiosk | cf06bc7c612b99860f8e1109a293c24e10e7a016 | be931bfe79636e8280748e06d29a4c86af423478 | refs/heads/master | 2020-04-06T04:10:04.711126 | 2015-02-20T11:43:38 | 2015-02-20T11:43:38 | 21,199,497 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | import threading, sys, os, time, platform, getpass
import wx
if platform.system() == "Linux":
from wx.lib.pubsub import setupkwargs
from wx.lib.pubsub import pub as Publisher
else:
from wx.lib.pubsub import pub as Publisher
if platform.system() == "Linux":
if 'fedora' in platform.dist():
user =... | [
"peter9teufel@gmail.com"
] | peter9teufel@gmail.com |
9042aa99583f972e7c0f07daa53deb9a89199f8c | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_07_01_preview/_policy_client.py | 581050251e24acfacfc172e0aca18058b3633016 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,057 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
6757af7cac4bdda23747b34a7f1f13a843f4ffea | 8ce656578e04369cea75c81b529b977fb1d58d94 | /bank_guarantee/migrations/0037_auto_20200221_1322.py | f40f4f6609c6fc8c2adbea5af7ea5f848ca4d2e0 | [] | no_license | JJvzd/django_exp | f9a08c40a6a7535777a8b5005daafe581d8fe1dc | b1df4681e67aad49a1ce6426682df66b81465cb6 | refs/heads/master | 2023-05-31T13:21:24.178394 | 2021-06-22T10:19:43 | 2021-06-22T10:19:43 | 379,227,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Generated by Django 2.1.7 on 2020-02-21 10:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bank_guarantee', '0036_auto_20200131_0005'),
]
operations = [
migrations.AlterField(
model_name='requeststatus',
nam... | [
"javad@MacBook-Pro-Namig.local"
] | javad@MacBook-Pro-Namig.local |
938b1412931f54fefe25078052ee0bc92effebf3 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/storage/v20181101/get_blob_container_immutability_policy.py | ec61eb93d9aab5985bfca2abc2f0d65f0e8c4e2e | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,604 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
29063ff6540ddec2aa06c9e35f1bc7a3b64d8b2e | 8a3e7b779676e396853dc1fb22525e501050cffb | /geoist/vis/gui.py | 118bd9e8fa0d14501a4eb9f0a7269d00960258ab | [
"MIT"
] | permissive | CHEN-Zhaohui/geoist | 3a8218105b8bd21d23f3e15e3d20397adf8f571d | 06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b | refs/heads/master | 2021-03-31T19:19:04.472355 | 2020-03-18T03:18:04 | 2020-03-18T03:18:04 | 248,126,521 | 0 | 0 | MIT | 2020-03-18T03:07:54 | 2020-03-18T03:07:53 | null | UTF-8 | Python | false | false | 4,325 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 10 18:25:58 2019
@author: chens
"""
from tkinter import *
import os
#from simpledialog import simpledialog
import gimodule
gimodule.maxwidth = 140
# Since the interface now has to columns of buttons this must be wider
## Constants
programname = "MagTools APIs - Geomag... | [
"chenshi@cea-igp.ac.cn"
] | chenshi@cea-igp.ac.cn |
d345d8aabf75c5430dee2cf383acce3e60f7f9b0 | b85ee3f4d308a3e0022938379fbcac3186d789bc | /hanishbot.py | fb412df1ad3c1929b3f3174963a995c346d7dc27 | [
"MIT"
] | permissive | waffle-iron/hanish | 7f007f8e13237dea85a2c654d811836f0896f3e0 | 472afcb70ffe92517412c4211e6d44b51117922f | refs/heads/master | 2021-01-20T14:39:59.114026 | 2017-05-08T15:32:25 | 2017-05-08T15:32:25 | 90,644,193 | 0 | 0 | null | 2017-05-08T15:32:24 | 2017-05-08T15:32:24 | null | UTF-8 | Python | false | false | 1,665 | py | #!/usr/bin/env python
# hanishbot
# Primary entry point and application runner for the Hanish bot.
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Mon May 08 11:15:40 2017 -0400
#
# Copyright (C) 2016 Bengfort.com
# For license information, see LICENSE.txt
#
# ID: hanishbot.py [] benjamin@bengfort.c... | [
"benjamin@bengfort.com"
] | benjamin@bengfort.com |
57e75f26ee80bfea08e6b5076b340fb659ece915 | f8ad6963bfc851657ea50c6a036cfad29cdd7f60 | /Books/GodOfPython/P00_OriginalSource/ch16/ThreadServer.py | dab8cdf02274a063c8c05da2430fcaa1f42a73b4 | [] | no_license | foru120/PythonRepository | e1ab0265c0f50ef2e9acdf7447237c913560692b | db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98 | refs/heads/master | 2021-01-01T06:53:11.728109 | 2019-04-25T13:52:50 | 2019-04-25T13:52:50 | 97,541,222 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | #ThreadServer.py
from socket import *
import threading #쓰레드를 사용하기 위해
sevip = '127.0.0.1'
sevport = 62581
address = (sevip, sevport)
sevsock = socket(AF_INET, SOCK_STREAM)
sevsock.bind(address)
sevsock.listen()
print("waiting for connection...")
clisock , cliaddr = sevsock.accept()
print("connection from {}... | [
"broodsky1122@hanmail.net"
] | broodsky1122@hanmail.net |
530f3e39a4f1874f054c822946fcc627683d1f44 | ee730a381ef8113efedc62541f576393180b8f3e | /study/exceltest.py | 11394000d715ae7256d135d624944609d047e5b1 | [] | no_license | happy789450/python | b17357232cfb004757b82cb880ddb5f208aec443 | 05de30bf82db6a93e93a93c5158a6d23a7fb2390 | refs/heads/master | 2023-04-11T10:33:26.340610 | 2021-04-24T05:52:56 | 2021-04-24T05:52:56 | 348,461,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import datetime
from openpyxl import Workbook
wb = Workbook()
ws = wb.active
ws['A2'] = 1
# ws.append([1, 2, 3])
# ws.append([2, 2, 3])
# ws['A2'] = datetime.datetime.now()
# ws.append([datetime.datetime.now()])
# ws['A3'] = 666
# ws['A5'] = 'aaa'
wb.save("/home/rice/桌面/test/sample.xlsx") | [
"you@example.com"
] | you@example.com |
01713593bf73d9c8417c6c76a052d1b48e4e8f08 | e98e7b45d85273797cf9f15e92fbe685a05bde18 | /编码/0091.py | 225393e7141d14cd27e7bed8e70a2df295c04195 | [] | no_license | wangdexinpython/test | 8d29d30e099f64f831b51265db7092d520df253c | a047148409e31b8a8140f2c13b959aa54ec14d0d | refs/heads/master | 2020-09-11T05:10:49.041795 | 2019-12-31T07:47:41 | 2019-12-31T07:47:41 | 221,948,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import requests,re,json
headers={
"User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
}
url='https://www.haodf.com/doctor/DE4rO-XCoLUXxbXYw1mnSzFYx4.htm'
cons =requests.get(url,headers=headers).text
c1 = re.findall(r'<div id=\... | [
"wangdexin@haxitag.com"
] | wangdexin@haxitag.com |
da1ea66272f627d41439ddc8369681fc1650cce4 | 6ac2c27121d965babbb4bcbc7c479c26bf60bdf5 | /tests/node/Inequality.py | 4eff81390322439b36c26cdc460d6162687b6a98 | [
"MIT"
] | permissive | Gawaboumga/PyMatex | 5a2e18c3e17d3b76e814492f7e2ca63a57d720e9 | 3ccc0aa23211a064aa31a9b509b108cd606a4992 | refs/heads/master | 2020-03-28T01:40:32.341723 | 2018-12-20T13:49:12 | 2018-12-20T13:49:12 | 147,521,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from tests import BaseTest
from pymatex.node import *
class InequalityTests(BaseTest.BaseTest):
def test_read_simple_inequality(self):
ast = self.parse(r'\sum_{i < j} i')
i = Variable('i')
self.assertEqual(ast, InequalitySummation(Inequality(i, Variable('j'), '<'), None, i))
def tes... | [
"yourihubaut@hotmail.com"
] | yourihubaut@hotmail.com |
a12389d70e412c4f3fcde17263755ac7d5be0efd | 0d279444c768d10a7ee6c6ec26323947e05cfd01 | /backend/delivery_user_profile/migrations/0001_initial.py | 7a1b9a3c600b8b9ce8ef57537def7a338ad0b4da | [] | no_license | crowdbotics-apps/listsaver-24496 | e3574e92b092360d724147c78586142e07e98b7a | d8636cee59504dac335bc035fc890f80631de3b5 | refs/heads/master | 2023-03-05T08:15:13.712454 | 2021-02-13T13:56:15 | 2021-02-13T13:56:15 | 338,584,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | # Generated by Django 2.2.18 on 2021-02-13 13:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
44e44c6662496b3b74ca005acce2cc1e123d70e8 | 11f4852e9af2eeb5d238ddd7df9ccd713160a334 | /train.py | 0ee97b96ea9a28f250231624bba0f5cc8088e39b | [] | no_license | chw0806-github/nucleus_detection | d174f6c924213a0c09b7c6f1990873f8819251ff | a53b10965b2963922b7c266bb93ad4cbe2906db0 | refs/heads/master | 2021-04-08T16:26:47.884953 | 2018-05-02T04:06:43 | 2018-05-02T04:06:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | #!/usr/bin/env python
# coding=utf-8
"""
python=3.5.2
"""
from data_input import read_train_data, read_test_data, prob_to_rles, mask_to_rle, resize, np
from model import get_unet, dice_coef
import pandas as pd
from post_process import post_processing
from skimage.io import imshow
import matplotlib.pyplot as plt
from k... | [
"993001803@qq.com"
] | 993001803@qq.com |
63ef1df5231e708ee0376612469a1cf795a19d00 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /Algorithms in Python Live Coding & Design Techniques/src/005_dynamic-programming/staircase/Staircase.py | 23c2f71d354f0cfe8b1116f091b4108956fea056 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 835 | py | #Recursive Approach
def ways(n, k):
if n == 0:
return 1
if n < 0:
return 0
ans = 0
for i in range(1, k+1):
ans += ways(n-i, k)
return ans
#Dynamic Programming : Top Down Approach
def ways_top_down(n, k, dp):
if n == 0:
dp[n] = 1
return dp[n]
if n ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
de2a2f46c04b3533461e9d8caf3a4a4d4aa0077b | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/com/link/verivo.py | 42dac15cdc1dc889d2fb09f4ea617b24d30a63a9 | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | import re, mechanize, urlparse
from neekanee.jobscrapers.jobscraper import JobScraper
from neekanee.htmlparse.soupify import soupify, get_all_text, get_mailto
from neekanee_solr.models import *
COMPANY = {
'name': 'Verivo',
'hq': 'Waltham, MA',
'home_page_url': 'http://www.verivo.com',
'jobs_page_ur... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
034dbf6920b0dea17131a2d0fe980a11803de766 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L86/86-84_MD_NVT_rerun/set.py | 8869714c49649943cc15437ffa3f1f2ed05321c6 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L86/MD/ti_one-step/86_84/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_prodin = filesdir + 'temp_prod.in'
temp_pbs = filesdir + 'temp.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.9... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
7b15765d3b5355212d948031d49b1d902c481e39 | e70e8f9f5c1b20fe36feab42ad4c2c34fc094069 | /Python/Advanced OOP/Problems/09. Programmer.py | 19550c44940b74453ea18b29b992c9fbee136945 | [
"MIT"
] | permissive | teodoramilcheva/softuni-software-engineering | 9247ca2032915d8614017a3762d3752b3e300f37 | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | refs/heads/main | 2023-03-29T15:55:54.451641 | 2021-04-09T18:46:32 | 2021-04-09T18:46:32 | 333,551,625 | 0 | 0 | null | 2021-04-09T18:46:32 | 2021-01-27T20:30:18 | Python | UTF-8 | Python | false | false | 1,422 | py | class Programmer:
def __init__(self, name: str, language: str, skills: int):
self.name = name
self.language = language
self.skills = skills
def watch_course(self, course_name, language, skills_earned):
if self.language == language:
self.skills += skills_earne... | [
"noreply@github.com"
] | teodoramilcheva.noreply@github.com |
9bb70d70f0b770a991f5cd4cae1d17455809d883 | 786de89be635eb21295070a6a3452f3a7fe6712c | /XtcExplorer/tags/V00-01-05/src/pyana_ipimb.py | 7ee053a8e5780fb49084fe992c18bc46ada427fb | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,555 | py | #
# ipimb.py: plot beamline data
#
#
import numpy as np
import matplotlib.pyplot as plt
from pypdsdata import xtc
from utilities import PyanaOptions
from utilities import IpimbData
# analysis class declaration
class pyana_ipimb ( object ) :
def __init__ ( self,
sources = None,
... | [
"ofte@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | ofte@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
09a018a907737d3860489bfb1e283fb3076ae253 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/plone.app.i18n-2.0.3-py2.7.egg/plone/app/i18n/locales/browser/selector.py | b1c3042a8d637678e18e64d7d376cfaf252eb48d | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,422 | py | from zope.interface import implements
from zope.viewlet.interfaces import IViewlet
from Products.CMFCore.utils import getToolByName
from Products.Five.browser import BrowserView
class LanguageSelector(BrowserView):
"""Language selector.
>>> ls = LanguageSelector(None, dict(), None, None)
>>> ls
... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
a979b2457aa15f38669ab8f4705db11263d03091 | 2a171178942a19afe9891c2425dce208ae04348b | /kubernetes/test/test_runtime_raw_extension.py | cd032512be70fb92fa0bda986b64e64902f7a786 | [
"Apache-2.0"
] | permissive | ouccema/client-python | ac3f1dee1c5ad8d82f15aeecb87a2f5f219ca4f4 | d7f33ec53e302e66674df581904a3c5b1fcf3945 | refs/heads/master | 2021-01-12T03:17:54.274888 | 2017-01-03T22:13:14 | 2017-01-03T22:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.0-snapshot
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Li... | [
"mehdy@google.com"
] | mehdy@google.com |
544fc0b34f29d0d1c9f3ba62a97bca006fbb1688 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/srrmik001/question2.py | e69bea6d4cc917f38fed872b3bdcfe0cac9366f6 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # Mikhaila Sorour
# 3 March 2014
# Program to check the validity of time
hours = eval(input("Enter the hours:\n"))
minutes = eval(input("Enter the minutes:\n"))
seconds = eval(input("Enter the seconds:\n"))
if (0 <= hours <= 24) and (0 <= minutes <= 59) and (0 <= seconds <= 59):
print("Your time is valid... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
9f9942f6f845c4509deedbae7579929c9e3bc703 | cff52d298fcbc8d386e73a47cfbebc9be18290ce | /kuterless/nice_to_meet_you/control.py | 27c923c5634f1997189e076391d8d59903636562 | [] | no_license | justminime/NeuroNet | b5c8c230133554ba5e9f971b956c64f6f1a62e79 | 683c3ffe53a9c4f5fd8c2b8c475e44febc859971 | refs/heads/master | 2023-08-08T00:34:49.475359 | 2018-12-18T22:03:30 | 2018-12-18T22:03:30 | 163,107,131 | 0 | 0 | null | 2023-09-06T06:59:37 | 2018-12-25T19:34:54 | Python | UTF-8 | Python | false | false | 2,525 | py | # -*- coding: utf-8 -*-
"""
This file contain the control services, used for all views
"""
#from coplay.models import UserProfile, Discussion, UserUpdate
from django.contrib.auth.models import User
from django.core.mail.message import EmailMessage
from django.core.urlresolvers import reverse
from django.template.base ... | [
"tzahimanmobile@gmail.com"
] | tzahimanmobile@gmail.com |
9eb2742835cce3707419ca4eba4a07b4310eb473 | 3780a5612c7a3c084f9106840e19e6fc07f135df | /prefect/migrations/0001_initial.py | 752252a6f24b65190d8976e2f377c0f62ab37ea6 | [
"MIT"
] | permissive | dschien/energy-aggregator | 7a6f487db7a5fdbafc92152371ffedfc39f71f2e | 421638029c5066c3182e8c94424abf5a6b05c1ea | refs/heads/master | 2021-01-01T05:11:16.303483 | 2016-10-25T17:52:01 | 2016-10-25T17:52:01 | 71,920,880 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-07-21 16:27
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('ep', '0001_initial'),
]
operati... | [
"dschien@gmail.com"
] | dschien@gmail.com |
2e388c4a7d35230a2f16bf9b5800ce21de947eb3 | 42bf795f97efe36291590879dd1d2e146df1a4f0 | /User_details/decorators.py | 6a3e46c903d5138679b94eed874fc62faa36b601 | [] | no_license | sameesayeed007/tango-backend | b0e05fcdfe4b6c5f5a2cb501f6ef1e94da145811 | 05923a80ef4e464a5baa27102d678b1d8858f787 | refs/heads/master | 2022-12-30T18:57:52.180073 | 2020-10-25T09:08:35 | 2020-10-25T09:08:35 | 291,616,184 | 0 | 2 | null | 2020-10-05T05:48:05 | 2020-08-31T04:41:57 | Python | UTF-8 | Python | false | false | 1,099 | py | from django.http import HttpResponse
from django.shortcuts import redirect
def unauthenticated_user(view_func):
def wrapper_func(request, *args, **kwargs):
if request.user.is_authenticated:
return redirect('/')
else:
return view_func(request, *args, **kwargs)
return wrapper_func
def allowed_users(allowed... | [
"sameesayeed880@gmail.com"
] | sameesayeed880@gmail.com |
814f5968de17f5952b71e28a3b6183bddd55a086 | 2e582bc42f104e93be85cf6abffd258a36a5ec15 | /1487A/arena.py | 6d266b328f22a0410a98405aa90b801f80cc2cba | [] | no_license | akantuni/Codeforces | d2f86f1dd156aef300e797117a9ef21927c8fef0 | 6901a982cbaf705fdb22e5f78999a5b82917bb23 | refs/heads/master | 2023-06-14T18:02:37.316810 | 2021-07-10T19:13:13 | 2021-07-10T19:13:13 | 289,826,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | t = int(input())
for k in range(t):
n = int(input())
heroes = sorted(list(map(int, input().split())))
if len(set(heroes)) == 1:
print(0)
else:
for i, hero in enumerate(heroes):
if hero > heroes[0]:
print(n - i)
break
| [
"akantuni@gmail.com"
] | akantuni@gmail.com |
56bb4c3df12e4fd71898de232f1404e82a3cb36e | 54b31b705d88e21bc0b23aabe1df15ca13a07de2 | /bayespy/discrete_example.py | 680d647f49cdac991073a70d4427c783c026955a | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"AFL-3.0",
"GPL-1.0-or-later",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bayespy/bayespy | 307ef4c51d511e14d4693cce9929dda37124d11d | 5fe58f7160ebc3a9df7f9e96e50d2bd47837794a | refs/heads/develop | 2023-08-18T21:35:27.744022 | 2023-05-25T08:16:36 | 2023-05-25T08:16:36 | 5,568,322 | 655 | 164 | MIT | 2023-08-15T09:31:55 | 2012-08-27T08:10:20 | Python | UTF-8 | Python | false | false | 1,910 | py | # This example could be simplified a little bit by using Bernoulli instead of
# Categorical, but Categorical makes it possible to use more categories than
# just TRUE and FALSE.
import numpy as np
from bayespy.nodes import Categorical, Mixture
from bayespy.inference import VB
# NOTE: Python's built-in booleans don't... | [
"jaakko.luttinen@iki.fi"
] | jaakko.luttinen@iki.fi |
ccd652427fbc4bbf97ee89ec2711fe34015941be | de8310ef0914f45bb3a5bba3b089edbf45148867 | /ArraysAndStrings/URLify.py | 5d34eb4fa524336e0ebef88751ba27fbcebd1eac | [] | no_license | agbarker/Cracking-the-Coding-Interview-Python | f51a053ffe45bd89958f8b1e6eeb4db4c1ed6129 | 6358275b5f921d3c0203795d6951a6d3292333cf | refs/heads/master | 2020-03-20T11:46:10.750589 | 2018-06-15T00:10:15 | 2018-06-15T00:10:15 | 137,411,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | """Write a method to replace all spaces in a string with '%20'. You may assume that the string has sufficient space at the end to hold the additional characters, and that you are given the "true" length of the string."""
"""Replacement in place is not possible in python as strings are immutable. Much of the input is... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
5cc67c74ecd44738a48c2a8a28aec26cb911ffc9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_laming.py | 7c430ecc3c5017417aea135fc105890846dec859 | [
"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 | 214 | py |
#calss header
class _LAMING():
def __init__(self,):
self.name = "LAMING"
self.definitions = lam
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['lam']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ef38d0e49ad09bd73b645413d4327879867a7aba | 33b2f392afef9b5e83e177fd3f0ef5582051b97d | /source_code/version_v1.0.2/wx/lib/pubsub/core/arg1/publisher.py | 6dc684450d9987d3289544ec5b29c09da6a994a5 | [] | no_license | luke1987515/Compatibility_Get_Reprt | eb0edbc33afcd59fb1efcb53d7eee1658d2c3009 | 2707b9dec5ee8c0a0cc90b6a3d4682970b21a1cb | refs/heads/master | 2021-01-10T07:39:06.111371 | 2016-01-26T06:34:51 | 2016-01-26T06:34:51 | 48,530,211 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | """
Mixin for publishing messages to a topic's listeners. This will be
mixed into topicobj.Topic so that a user can use a Topic object to
send a message to the topic's listeners via a publish() method.
:copyright: Copyright since 2006 by Oliver Schoenborn, all rights reserved.
:license: BSD, see LICENSE_BSD_Simp... | [
"luke1987515@hotmail.com"
] | luke1987515@hotmail.com |
8a40cb445ac8644a94ee38c4497b48ecbcd1922d | 47927ae79f1af279e186e76c85a77c962802262d | /number-of-provinces/number-of-provinces.py | 1097ed6272ba003b0e3a436057a685835f5cbba7 | [] | no_license | asheeshcric/leetcode | 810b53c05c44aecea70aaa333041edf9540dd532 | 8e651348b8aaff2c7bf2a09327b73ff23b6f613f | refs/heads/main | 2023-08-15T12:57:43.347469 | 2021-10-12T23:53:14 | 2021-10-12T23:53:14 | 346,944,371 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | class Solution:
def findCircleNum(self, isConnected: List[List[int]]) -> int:
graph = self.buildGraph(isConnected)
print(graph)
def dfs(node):
stack = [node]
while stack:
node = stack.pop()
if node in visited:
... | [
"ashiz2013@gmail.com"
] | ashiz2013@gmail.com |
83ed6309f274d9843de88fa5fc4f0f94a7a6375c | 050fc5ca698dfd7612dee42aa980fc7b5eee40a2 | /tests/plugin/web/sw_fastapi/test_fastapi.py | db79f769eae13f255d37f5ef2543a8f5eaccad9a | [
"Apache-2.0"
] | permissive | apache/skywalking-python | 8ac6ce06630c519f9984a45e74c1fcc88cf5b9d6 | 1a360228c63cd246dd4c5dd8e1f09bdd5556ad7d | refs/heads/master | 2023-09-05T02:45:56.225937 | 2023-08-28T22:19:24 | 2023-08-28T22:19:24 | 261,456,329 | 178 | 122 | Apache-2.0 | 2023-08-28T22:19:26 | 2020-05-05T12:13:49 | Python | UTF-8 | Python | false | false | 1,383 | 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 us... | [
"noreply@github.com"
] | apache.noreply@github.com |
1c757ce5d3ece2fec1e9f67392d79f90b9cbe48d | 377420d718094a37da2e170718cecd80435d425a | /google/ads/googleads/v4/resources/types/keyword_plan_ad_group_keyword.py | 43255c2418b375282bce90bbdcbac956b32c4c27 | [
"Apache-2.0"
] | permissive | sammillendo/google-ads-python | ed34e737748e91a0fc5716d21f8dec0a4ae088c1 | a39748521847e85138fca593f3be2681352ad024 | refs/heads/master | 2023-04-13T18:44:09.839378 | 2021-04-22T14:33:09 | 2021-04-22T14:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | sammillendo.noreply@github.com |
5f81c65e80c83744abc3c5e164e1f0a9d2296682 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/util/task/TaskMonitor.pyi | 6d492035c2c3080b8d5e526b272a37ac4ea8c71f | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,972 | pyi | import ghidra.util.task
import java.lang
class TaskMonitor(object):
"""
TaskMonitor provides an interface by means of which a
potentially long running task can show its progress and also check if the user
has cancelled the operation.
Operations that support a task monitor should periodically
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
4c776c689923c340b8f7275b6b5350139f3b45f6 | 551e1190a7b1da5694ecb812eecf0ed44a4025ee | /arrfill.py | 82c3f569559ae964387875be01c812b0b23528ff | [] | no_license | Destroyer4114/Python | 5dc3d85a31c7d1867e71f050bdc84209d08a945c | 82fbdc75f367cecb16166b2e03a0e6fc38da2c62 | refs/heads/main | 2023-08-11T19:01:09.588798 | 2021-10-09T11:13:12 | 2021-10-09T11:13:12 | 351,766,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | for i in range(int(input())):
n,m= map(int(),input().split())
s= [0]*(n)
for j in range(m):
x,y= map(int,input().split())
| [
"mehul.20204114@mnnit.ac.in"
] | mehul.20204114@mnnit.ac.in |
dc109bca51260581e325a5a3ee31aad9bb8d3296 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/ml_engine/operations/cancel.py | 889a587d266cce0d2d87ee0d2731e7bceb68bdb2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 1,350 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google Inc. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
0a62e91e6809dd26fae2e255a028678e38365747 | d08b0a2ea1365e96c2143a3076d6f1cfce178321 | /learnPython-master/Python基础代码/生成器-杨辉三角.py | 9ad701e82460579ee6166ff43b0e04f20832dd4f | [] | no_license | xueyes/py3_study | f64060e5dbfcbf11c8d61de8561ce90bbb4e3c19 | a7d83b58ef95806f061f375952db604afe98bc13 | refs/heads/master | 2022-12-11T05:56:03.540612 | 2019-05-06T13:07:55 | 2019-05-06T13:07:55 | 162,883,421 | 1 | 0 | null | 2022-12-08T02:28:21 | 2018-12-23T11:02:31 | HTML | UTF-8 | Python | false | false | 372 | py | def triangles():
g = [1]
while True:
yield g
g.append(0)
g = [g[i] + g[i - 1] for i in range(len(g))]
# 方法二
# def Triangles():
# L = [1]
# while True:
# yield L
# L = [1] + [L[i-1]+L[i] for i in range(len(L)) if i>0] + [1]
n = 0
for t in triangles():
print(t... | [
"1401354763@qq.com"
] | 1401354763@qq.com |
bf1a535305ed6702198c8e6f86a7e35fc5ee1d24 | 6a6984544a4782e131510a81ed32cc0c545ab89c | /src/trigger-sim/resources/test/InIceSMTTest.py | e76d9b6cc051e6da93843ab9522e021036a89dad | [] | no_license | wardVD/IceSimV05 | f342c035c900c0555fb301a501059c37057b5269 | 6ade23a2fd990694df4e81bed91f8d1fa1287d1f | refs/heads/master | 2020-11-27T21:41:05.707538 | 2016-09-02T09:45:50 | 2016-09-02T09:45:50 | 67,210,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | #!/usr/bin/env python
from I3Tray import *
from icecube import icetray, dataclasses, dataio, trigger_sim
from os.path import expandvars
import sys
from icecube.trigger_sim.inice_test_modules import TestSource, TestModule
tray = I3Tray()
gcd_file = expandvars("$I3_TESTDATA/sim/GeoCalibDetectorStatus_2013.56429_V1.i... | [
"wardvandriessche@gmail.com"
] | wardvandriessche@gmail.com |
c5b6007281a9882a1ead24bdfd1c6c3bfc974164 | a110cda0dd755a0aeeccaa349de5b7c8f836f7d9 | /Dynamo_0.9.X/Material.ImportAllFromProject.py | 8ebeabec311a77bd8f881b36999e9aede5824adc | [] | no_license | ksobon/archi-lab | 26d93ef07e4f571e73a78bc40299edd3dc84c2a6 | 9a8a57eccca899ace78a998dc7698ff7754fae6b | refs/heads/master | 2021-01-15T09:37:06.045588 | 2020-06-03T15:55:46 | 2020-06-03T15:55:46 | 26,090,112 | 6 | 5 | null | 2020-02-09T04:24:41 | 2014-11-02T19:02:28 | Python | UTF-8 | Python | false | false | 1,885 | py | # Copyright(c) 2015, Konrad K Sobon
# @arch_laboratory, http://archi-lab.net
# Import Element wrapper extension methods
import clr
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
fro... | [
"ksobon1986@gmail.com"
] | ksobon1986@gmail.com |
63e88f32f327f0a4fdb1cdcaada92096e1338efc | b7fe089a067bdefd917af1c6b8f0701d33a3cf77 | /tests/networks/backbones/test_efficientnet.py | 230ffbbe1d834ecd3fc0f385fc495db1d46c43e4 | [
"MIT"
] | permissive | Ares2013/coreml | 145a186a8e12f95d836118d30ba9d4e533862c03 | cd9f8c5f2e8cec8da6c5842dd235339b2e32be38 | refs/heads/master | 2022-12-04T18:02:01.590739 | 2020-08-19T08:41:12 | 2020-08-19T08:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | """Tests coreml.networks.backbones.efficientnet"""
import torch
import torch.nn as nn
import unittest
from coreml.networks.backbones.efficientnet import EfficientNet
class EfficientNetTestCase(unittest.TestCase):
"""Class to check the EfficientNet backbone"""
def test_efficientnet_b0(self):
"""Test ef... | [
"amandalmia18@gmail.com"
] | amandalmia18@gmail.com |
8d6463e395c349d2b2e673b0ba78279a143e92dd | f77d7a92e64766c1aaa888e91fb0377f1acd37a4 | /docs/photons_docs/config/ext/photons_errors.py | 94f270010e4c9e3de934fa4dbcff7e81d8607203 | [
"MIT"
] | permissive | geoff-nixon/photons-core | e531b3dd6f20e51138d0a38a680f140dc01f409b | cd4aaca33a79485fe5bb8fc26bdf35b7a7064e4b | refs/heads/master | 2020-05-04T09:04:49.753358 | 2019-03-31T05:10:36 | 2019-03-31T05:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | from photons_app.errors import PhotonsAppError
from photons_app import errors
from docutils.parsers.rst import Directive
from docutils import statemachine
import pkg_resources
import os
class ShowPhotonsErrorsModulesDirective(Directive):
has_content = True
def run(self):
template = []
for na... | [
"stephen@delfick.com"
] | stephen@delfick.com |
a6b5ab6e0082d3f1e3ba47450999a097a86f5258 | cee8fb161f0bd4aa4345b1ec9c269e43cc10c2dd | /rtamt/operation/arithmetic/dense_time/online/exp_operation.py | 54fad220102af8c5dda57df0aba9870f88bcf60c | [
"BSD-3-Clause"
] | permissive | TomyYamy/rtamt | 172510fc2b26188b1d7ed6f6cfefc6830508c9a1 | a16db77b61028f774d81457ff22e666229a5432c | refs/heads/master | 2023-09-05T00:06:44.375841 | 2021-11-12T09:46:58 | 2021-11-12T09:46:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import math
from rtamt.operation.abstract_operation import AbstractOperation
class ExpOperation(AbstractOperation):
def __init__(self):
self.input = []
def update(self, input_list):
out = []
for in_sample in input_list:
out_time = in_sample[0]
out_value = math.... | [
"dejan.nickovic@ait.ac.at"
] | dejan.nickovic@ait.ac.at |
0a2080933765ad216e8ef34c423e5dfdc1bbd3ec | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/0dade18f43cf5c015773d461ccff478f156179b5-<get_module_docs>-fix.py | 6399b208333447abdd182b8d1999ac8a8e8cbaf6 | [] | 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 | 1,481 | py | def get_module_docs(self, path, contents):
'\n :type path: str\n :type contents: str\n :rtype: dict[str, any]\n '
module_doc_types = ['DOCUMENTATION', 'EXAMPLES', 'RETURN']
docs = {
}
def check_assignment(statement, doc_types=None):
'Check the given stat... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
8d6b6341d97bf4d6bd372ca55ec0b55bb54141f4 | 33aeee667b5d55dfc48c39a96583b1eccf04961a | /P3python_dev/Demo/order_demo.py | 005fc3ba980240b0df6bfebb9f7673f8853dc3f9 | [] | no_license | yangtingting123456/python-unittest-requests-htmlrunner | fc2cbec7f0b36e4aa1be905db0dcc34d32262e93 | 9f155cbf3fc25d68ba0420837d03b4d7ac71f2b6 | refs/heads/master | 2023-01-06T10:18:21.979337 | 2020-10-26T09:18:43 | 2020-10-26T09:18:43 | 307,299,936 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | #手动在控制台输入五个数字
nums=input('请输入任意五个数字:')
print(type(nums))
num=nums.split(' ')
print(type(num))
num.sort()
print(num)
num_list=num.sort(reverse=True)
print('%s'%num_list)
| [
"3048903923@qq.com"
] | 3048903923@qq.com |
efb63d86ca30c1448d7cb0cab52ccbbac460ef26 | 7ce8670cc2b63a01aa4fa08ff040dc2ea2304c04 | /ecommarce/migrations/0022_auto_20180926_0539.py | c3e042f2634dc3a6a8d79a19d4f3431c3ae2b8ce | [] | no_license | Shamsulhaq/sonomm | bca793f21fbbb698a498159fc592063751099cd2 | 0d1fed65bfcc8829b80c018ca460ce198869a21f | refs/heads/master | 2020-03-26T08:05:46.667063 | 2018-11-28T18:41:35 | 2018-11-28T18:41:35 | 138,379,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # Generated by Django 2.1.1 on 2018-09-26 05:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecommarce', '0021_auto_20180926_0535'),
]
operations = [
migrations.AlterField(
model_name='productbasic',
name='reg... | [
"bmshamsulhaq65@gmail.com"
] | bmshamsulhaq65@gmail.com |
e0b024e5b79c1d5f42ef9a23a54590144441cd5c | d2024f10e641ab2f28a888d23071edc032299498 | /pacer/pacer.py | e0eca0bd7271916fc0daebeb3fbf4c3dc9da0b15 | [] | 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 | 734 | py | import heartbeat
import host_guest_comm
import numpy as np
import time
window_size_hr=5
hb = heartbeat.Heartbeat(1024,window_size_hr,100,"vic.log",10,100)
monitoring_items = ["heart_rate","app_mode","frame_size","timeslice"]
comm = host_guest_comm.DomU(monitoring_items)
it = 1
matsize = 500
comm.write("app_mode", 4)... | [
"yvictorck@gmail.com"
] | yvictorck@gmail.com |
c5fc28a9aac563a1e87570944ad552bfb2e8010e | 6ea83cee7623e2b1d28bb79d0e97645327627b0c | /old_code_before_revision_where_processed_google_sheet_csv_data_and_image_conversion_etc/hennur/pdf_generation/sub_elements/image.py | 0a968642bfbf4c07c6528dd4d7de831eaa014877 | [] | no_license | santokalayil/Address_Directory_Generaation_-_ReportLab_Automation | 6358134211f621a54c2734971947d52e22cce30a | ed00103c41aa358d5b3256ad0bfd5c4467ac231b | refs/heads/main | 2023-07-19T01:22:49.959251 | 2021-08-21T18:19:00 | 2021-08-21T18:19:00 | 352,067,628 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | from reportlab.lib import colors
from pdf_generation.page_settings import *
from reportlab.platypus import Image, Table
class family_image:
def __init__(self, img_path):
self.img_path = img_path
def generate(self):
# pct = 0.9
img_width = (320 * 0.35) # * pct
img_... | [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.