blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95270437f69dcde8afe9c3a4b61c9cd6963305ef | f724e86aa0b62e638f037834714174eb4421740c | /bin/django-admin | 5ad8d4d727e0a16695933a9412c353a9ce64bebb | [] | no_license | theparadoxer02/itoucan_venv | 4990e0624a506a95e824895cedae650ceaadfaa6 | 9ac5a55d7cb6670cfb2b1a67a6bd5dd8be9a9850 | refs/heads/master | 2020-03-25T07:23:36.781760 | 2018-08-04T19:44:00 | 2018-08-04T19:44:00 | 143,558,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | #!/mnt/800GB/itoucan/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"abhimanyu98986@gmail.com"
] | abhimanyu98986@gmail.com | |
23fb606b6c672afa49cdfcfd8022e759182e62eb | f7e8786b1e62222bd1cedcb58383a0576c36a2a2 | /src/build/landmines.py | bac29823c3d73423e3355e6583c92b7e5b0e5326 | [
"BSD-3-Clause"
] | permissive | amplab/ray-core | 656915553742302915a363e42b7497037985a91e | 89a278ec589d98bcbc7e57e0b80d055667cca62f | refs/heads/master | 2023-07-07T20:45:40.883095 | 2016-08-06T23:52:23 | 2016-08-06T23:52:23 | 61,343,320 | 4 | 5 | null | 2016-08-06T23:52:24 | 2016-06-17T03:35:34 | C++ | UTF-8 | Python | false | false | 7,148 | py | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script runs every build as the first hook (See DEPS). If it detects that
the build should be clobbered, it will delete the... | [
"pcmoritz@gmail.com"
] | pcmoritz@gmail.com |
2950835de0d78993d4c1b345fb3850a992c97e47 | 33f34a090b797d0d90abb90b041054582ccc9edc | /run/papier/plot_fig6_front_monkeys.py | 2ceea87a4abf1ce58a8e75ff4a658a4b09173496 | [] | no_license | gviejo/PST_INSERM | bebeb8a2eb5dc2fa1262d2450d0221e848f54540 | 2a95194fdb640783bf09aec214839c90e8501a80 | refs/heads/master | 2020-04-03T20:56:15.882331 | 2017-04-12T04:02:22 | 2017-04-12T04:02:22 | 56,002,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,774 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
import numpy as np
import cPickle as pickle
import sys, os
with open("pareto2.pickle", 'rb') as handle:
data = pickle.load(handle)
with open("position.pickle", 'rb') as handle:
pos = pickle.load(handle)
with open("to_compare_value.pickle", 'rb') as handle:... | [
"guillaume.viejo@gmail.com"
] | guillaume.viejo@gmail.com |
1aecc97a2a303fd8034146537f9451a627b853ac | fc3e094d01819b61a23456e6179e4ff81f9b6afb | /machine_learning/clustering/plot.py | f062c422bd83e386d62080ee685cc806e5b22c01 | [
"MIT"
] | permissive | xuedong/codebooks | 60c82b0678e58585244a16833844ee2507cc39e0 | e80914c01b13482d215287532a380261b52ba2b4 | refs/heads/master | 2021-05-05T20:44:47.360339 | 2019-01-14T07:59:18 | 2019-01-14T07:59:18 | 115,458,943 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | """
Code for plotting the clusters using matplotlib
"""
import math
import matplotlib.pyplot as plt
from urllib.request import urlopen
# URLS for various important datasets
DIRECTORY = "http://commondatastorage.googleapis.com/codeskulptor-assets/"
MAP_URL = DIRECTORY + "data_clustering/USA_Counties.png"
# Define c... | [
"shang.xuedong@yahoo.fr"
] | shang.xuedong@yahoo.fr |
d20f17061468fa8a2ac903537966e3b9df7dc8fe | 81027abd2a0f856e62147d89ec286dedadebe62f | /nlp/concrete_NLP_tutorial/data_inspect.py | 1eecabfee68afa45bbf0e01b1693dbeddcfa05c9 | [
"MIT"
] | permissive | houzw/v-learn-nlp | 47e92f1538fa51aaf133b1a486721baa37dc83fb | efc1d9c781949c459adc8efb6d65280b7a8d53a0 | refs/heads/master | 2021-04-15T08:02:49.539894 | 2020-11-02T13:28:42 | 2020-11-02T13:28:42 | 126,655,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: houzhiwei
# time: 2018/4/29 22:14
# 高级神经网络 API https://keras.io/zh/
import keras
import nltk
import pandas as pd
import numpy as np
import re
# 字符编码转换 https://docs.python.org/3/library/codecs.html
import codecs
input_file_name = "../data/socialmedia_relevant_col... | [
"yesqincheng@sina.com"
] | yesqincheng@sina.com |
9d21484a2abef8c3c8b726ae91f65220f3c5ccff | 07e8eaeaa6f3493546ba6b499be1593252f3c773 | /examples/optimizers/evolutionary/create_sghs.py | 6e9799c04179c9201f6136c3e73e1d540aa854d4 | [
"Apache-2.0"
] | permissive | himanshuRepo/opytimizer | 91dd848fffbe85736d8074169d515e46a8b54d74 | 09e5485b9e30eca622ad404e85c22de0c42c8abd | refs/heads/master | 2023-07-20T18:16:00.565759 | 2021-09-02T19:40:43 | 2021-09-02T19:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from opytimizer.optimizers.evolutionary import SGHS
# One should declare a hyperparameters object based
# on the desired algorithm that will be used
params = {
'HMCR': 0.7,
'PAR': 0.7,
'LP': 100,
'HMCRm': 0.98,
'PARm': 0.9,
'bw_min': 1.0,
'bw_max': 10.0
}
# Creates a SGHS optimizer
o = SGH... | [
"gth.rosa@uol.com.br"
] | gth.rosa@uol.com.br |
694cb80f3629afdfba37f3b5796409151f00d66d | fe39d984440b0dbb612b9d3e20b93a5e795ebefa | /part-2/04-ASCII-Art/ascii-art-code/art-5.py | 1cb5bc01e4486af464f82e36e2073de23f9e7661 | [] | no_license | maximkavm/py-algorithmization-and-programming | f7d6b1b13d2557511aaccec6d9b006ac871c5477 | c1d8228601c3cea17e11e6a2736659ef395f675d | refs/heads/master | 2023-08-14T09:11:02.433801 | 2021-03-01T19:30:26 | 2021-03-01T19:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # pip3 install pillow
# пиксели рисунка заменим на символы
from PIL import Image
def get_image_resize(img, height_new):
'''
изменить размеры рисунка
'''
width, height = img.size # исходные размеры рисунка
width_new = width // (height//height_new)
img_new = img.resize((width_new, height_n... | [
"ttxiom@gmail.com"
] | ttxiom@gmail.com |
a6de413035d98979775e28f30d02c833f67f15a7 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit2560.py | 321c2846d6d5a9fd04f6efcbdfe55de8381850e9 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,031 | py | # qubit number=4
# total number=35
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
dcab40e05f72c3106a4f5a24a15f6b95321629df | abbc2d332bdfa036ac12438983e6d74cf4107e64 | /SiamCAR/SiamCAR/siamcar/tracker/siamcar_tracker.py | d698b3cdef8d8aa32ffad75449f5fea659c31c40 | [] | permissive | HonglinChu/SiamTrackers | c494cff7543a433e8ec7dbf6d9439b1e7395b0c0 | 805208b5348346d35e64abcbe901a3829743e157 | refs/heads/master | 2023-08-29T06:50:59.532271 | 2023-03-06T09:13:53 | 2023-03-06T09:13:53 | 253,718,080 | 1,166 | 243 | Apache-2.0 | 2023-08-03T16:39:53 | 2020-04-07T07:24:00 | Python | UTF-8 | Python | false | false | 10,138 | py | # Copyright (c) SenseTime. All Rights Reserved.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import torch.nn.functional as F
import cv2
import torch
from siamcar.core.config import cf... | [
"chuhonglin@chuhonglindeMacBook-Pro.local"
] | chuhonglin@chuhonglindeMacBook-Pro.local |
939f79346e94c9e27258322809204512e2e10f25 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/websecurityscanner/v1/websecurityscanner-v1-py/google/cloud/websecurityscanner_v1/types/finding_type_stats.py | 584ede08dfc7aef2c334ec528f958311d5772ca2 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
bc269e38c6d34ed485ec6b597d305c88fd216a5f | 5e331ab99f88dd4d68099980a45ab33247ba6536 | /src2/mtcnnmain.py | 575e4fca05bc98cab1a52578a94f5ff565516312 | [] | no_license | zidanewenqsh/mtcnn_02 | 264353976a5be15c8acce30ceda2d908fc4bc413 | 0e7abb7b2dd3148d5f083c1214747215209f0295 | refs/heads/master | 2020-12-11T00:40:54.228301 | 2020-02-11T12:22:21 | 2020-02-11T12:22:21 | 233,755,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,630 | py | import os
import sys
import torch
import torch.nn as nn
import numpy as np
from torch import optim
import argparse
import time
from torch.utils import data
import matplotlib.pyplot as plt
import configparser
from nets import PNet, RNet, ONet, Net
from datasets import Dataset
from detectors import Detector
# ModuleNotF... | [
"zidanewenqsh@163.com"
] | zidanewenqsh@163.com |
7ed2bbc7904e6da6c0c9edf09addee97753cb2e1 | ad963dc590fe3ee16fe70674ffa9a77a3462a2d2 | /shoppinglist/admin.py | dfd231794fdda4d5b65e029224e26b6072cc2f9c | [] | no_license | ShuheiKuriki/task_manager | 564dc1a646efdd288ff31bc9044981aecbd6db78 | f5d4a53a758c64615f22c69baae59b36dd5dab1f | refs/heads/master | 2023-05-12T11:06:11.388036 | 2023-01-15T09:12:37 | 2023-01-15T09:12:37 | 234,110,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.contrib import admin
from .models import Shopping
admin.site.register(Shopping) | [
"shukuri.7336.8@gmail.com"
] | shukuri.7336.8@gmail.com |
819425c78cd14f18bb643c1f03fc2b5c535b6ae2 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/dbformysql/_inputs.py | aea852f15fce2ba33fd66ac5de2f0261584cb1ad | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 36,313 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
cf59b5a3d4d65191eb697e4529459706145abda7 | d785e993ed65049c82607a1482b45bddb2a03dda | /loose/loose_WWTo2L2Nu_DoubleScattering_cfg.py | 32dda7aadbcaa3871ead60a9751359b42c4b3853 | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'loose_WWTo2L2Nu_DoubleScattering'
config.General.transferLogs= True
config.section_("JobType")
config.JobType.pluginName =... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
4fd40366ed6ced72ae644635429e84f0bf955c7f | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part001503.py | 9620bdd407d3f1d661d1e11153535ca713eb7ebc | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,938 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
db229178ddf6c97313fc4c44bdcfd0a7b9292018 | 6b0aa8381b9dc8d575b2c6b4b265903aa3e7b476 | /fixture_magic/__init__.py | d814d9d2064d8ae61eae3762a09e27f2f55bc340 | [
"BSD-2-Clause"
] | permissive | OfflineLabs/django-fixture-magic | 2137534b3cb51ea821d898b1f086f9ed10b3a999 | 9c6e933e1948c1f76efb66acca08b05d0be8f4b8 | refs/heads/master | 2021-01-22T10:19:28.898742 | 2014-09-05T03:50:03 | 2014-09-05T03:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | VERSION='0.0.3'
| [
"dd+github@davedash.com"
] | dd+github@davedash.com |
9eebc371d1dba99c1a3e4ac431aaa2a5506621f0 | 4f3e9294fff97ec4d14bfa43e45501a5ba53de00 | /chimay/abso_posi_change/2pinhole3r_a/py_migration.py | 838a02d5877f338cf91082c1c9291724d80cc4d0 | [] | no_license | corrod/mittet_main | 6e7264df1d93d8f00437d4ab153d9c906057ce13 | 4dc60eee8ca1daf9ef70fd10ed300b6fa6a1e67d | refs/heads/master | 2021-01-06T20:38:30.150942 | 2015-02-26T05:17:44 | 2015-02-26T05:17:44 | 20,375,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # coding:utf-8
import numpy as np
import scipy.signal
from pylab import *
from math import *
from cmath import *
nstep = 4351
# nstep = 4351
data_stac = np.loadtxt('./out_bp/21_2nd.dat')
cases = range(21 + 1, 111 + 1)
for i, case in enumerate(cases):
data = np.loadtxt('./out_bp/%s_2nd.dat' % str(case))
data_stac = ... | [
"takuya025@gmail.com"
] | takuya025@gmail.com |
5c9b6f00a39d28605ff3019fe109e44ba4e5d3f5 | 30e2a85fc560165a16813b0486a862317c7a486a | /origtry/function1.py | ceb65038bf966c9a6946367072ead91216a55477 | [] | no_license | muryliang/python_prac | 2f65b6fdb86c3b3a44f0c6452a154cd497eb2d01 | 0301e8f523a2e31e417fd99a968ad8414e9a1e08 | refs/heads/master | 2021-01-21T11:03:48.397178 | 2017-09-18T04:13:27 | 2017-09-18T04:13:27 | 68,801,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | #!/usr/bin/python2
#filename:function1.py
def sayHello():
print 'hello world!'
sayHello() #call function
| [
"muryliang@gmail.com"
] | muryliang@gmail.com |
d570a10b8ea7cf735b208197035e0475c6159519 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/12123022.py | bd7474083edf8a4719b306dacaeeb68025eac359 | [] | 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,789 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/12123022.py generated: Wed, 25 Jan 2017 15:25:35
#
# Event Type: 12123022
#
# ASCII decay Descriptor: [B+ -> pi+ e+ e-]cc
#
from Configurables import Generation
Generation().EventType = 12123022
Generation().SampleGenerationTool = "SignalRepeatedHadron... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
33b98288c06ff3df14dc2510aa77c0dbe8b1aaf3 | e4bcf9a25b76f27914f6ff885d42798a827d0cca | /mmdet/models/bbox_heads/bbox_head.py | da88ad400ec112664f84d74440ad08185ce79127 | [
"Apache-2.0"
] | permissive | JKingKong/mmdetection | 4fbdc6984730a012b3e827230419e1ac07421fd2 | cfa22397194c592c25bd19e2f9f2f60f1ea699d3 | refs/heads/master | 2022-06-18T02:52:02.264347 | 2020-05-11T05:23:23 | 2020-05-11T05:23:23 | 256,152,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,464 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.utils import _pair
from mmdet.core import (auto_fp16, bbox_target, delta2bbox, force_fp32,
multiclass_nms)
from ..builder import build_loss
from ..losses import accuracy
from ..registry import HEADS
@HEAD... | [
"1339064067@qq.com"
] | 1339064067@qq.com |
d6d11953ba667f8e590a2d03a31ae5b4e4b21222 | 0077dc27b8182830207bd0cd70745d4519cc235c | /lc_ladder/company/fb/Trapping_Rain_Water.py | 2a3f39ec154ed1951caf79ae28e9a803d5578b0a | [] | no_license | hanrick2000/LC-1 | 39e08e1d42d47885344341ae9cf13f3761edfcfb | 2acafcd1a503759d2749d0520cd01d9219e5b9e7 | refs/heads/master | 2022-07-08T12:02:09.306584 | 2020-05-11T14:03:55 | 2020-05-11T14:03:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #! /usr/local/bin/python3
# https://leetcode.com/problems/trapping-rain-water/
# Example
"""
Algo: Two-side
D.S.:
Solution:
两边夹算法
Time: O(n)
Time: O(1)
Corner cases:
"""
# Test Cases
if __name__ == "__main__":
solution = Solution()
| [
"jenzhen.nyc89@yahoo.com"
] | jenzhen.nyc89@yahoo.com |
24457e06f691c6cf6cd59ce678b468f06970fbc9 | c22130d238d1ba666360512690aa34a081265a56 | /tests/test_tests.py | 5b12f2b52c68512f8e950a4a68ea6b588fda8ceb | [
"Apache-2.0"
] | permissive | jre21/pip-api | 18a617df1b1e7ea47cab6189e03e2e0a8387bcbf | 6824afa634484eca258b2f757a35b7df8ebf56d7 | refs/heads/master | 2020-05-18T22:05:50.449003 | 2019-04-18T21:48:52 | 2019-04-18T21:48:52 | 184,681,684 | 0 | 0 | null | 2019-05-03T01:17:58 | 2019-05-03T01:17:57 | null | UTF-8 | Python | false | false | 776 | py | import pytest
import pip_api
@pytest.mark.parametrize("should_be_installed", [True, False])
def test_isolation(pip, some_distribution, should_be_installed):
"""
Test the isolation between tests. The first time this test is run, the
package should be installed, the second time, it should not exist
"""... | [
"di@users.noreply.github.com"
] | di@users.noreply.github.com |
a6d80d2e2075a719665354cb4369511b72a53fc0 | 9d19edbc1f88ae3f8d84596e318fa190bb21883c | /2016/src/day01/main.py | 3cd876a53b046bd206a1c10a34fcdd8fc9eb39df | [] | no_license | Lammatian/AdventOfCode | 5eea6eaf305671c2b86df8123cb066e3dc3a28a2 | 4f54c617d626f57b2292ae8b3bc384f29906798e | refs/heads/master | 2023-01-12T23:19:46.100005 | 2022-12-25T05:27:15 | 2022-12-25T05:28:03 | 225,944,919 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import os
dir_path = os.path.dirname(os.path.realpath(__file__))
def part1(inp):
dirs = [[0, 1], [1, 0], [0, -1], [-1, 0]]
didx = 0
loc = [0, 0]
for ins in inp:
if ins[0] == 'L':
didx = (didx + 3) % 4
else:
didx = (didx + 1) % 4
m = int(ins[1:])
... | [
"mateusz.parafinski@gmail.com"
] | mateusz.parafinski@gmail.com |
dfcf95229e98119fafd5ad7f6c64db5f183736c8 | 0bad722e38038bdc5bf86970e1b69bd41dcd4974 | /exp/exp080.py | 1761853f1f3f4d154013ca35a67c68aaf71b68cd | [] | no_license | Kitsunetic/commonlit | b66f0b89a10d2f59c3cee00ee3b5c08a1434589b | 8781139c8ed4cc59f7c7ac9d97c72c351ee91377 | refs/heads/master | 2023-07-03T00:27:11.126056 | 2021-08-03T01:49:40 | 2021-08-03T01:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,733 | py | import torch
from torch import nn
from torch.utils.data import DataLoader, Dataset
from torch.nn import functional as F
from pytorch_lightning.core.lightning import LightningModule
import pandas as pd
import dataclasses
from transformers import AutoTokenizer, AutoModel, AutoModelForMaskedLM
import pytorch_lightning as ... | [
"kurupical@gmail.com"
] | kurupical@gmail.com |
16300f543f26602cfddb712a4cda33f8991d0fce | 3aad853118ab5c204ba1bbc12d002ed2de195bd3 | /networking_bagpipe/bagpipe_bgp/common/run_command.py | 724599284d14705d24c38f2b35890f7a462faeff | [
"Apache-2.0"
] | permissive | mail2nsrajesh/networking-bagpipe | 5e6c1545d62bc26f6ebe100157573c73b86eceb8 | e802ead8e3b4cecab6b65a9e441c3cf762bfbbb2 | refs/heads/master | 2023-08-24T00:39:43.371938 | 2017-06-28T14:51:41 | 2017-06-28T14:51:41 | 96,141,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# encoding: utf-8
# Copyright 2014 Orange
#
# 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
#
# Un... | [
"thomas.morin@orange.com"
] | thomas.morin@orange.com |
243822b44cef458eff7a47223dff2879bb30ad22 | 412b699e0f497ac03d6618fe349f4469646c6f2d | /env/lib/python3.8/site-packages/ccxt/currencycom.py | badcb795ed937b008356f022776e30687bf12258 | [
"MIT"
] | permissive | EtienneBrJ/Portfolio | 7c70573f02a5779f9070d6d9df58d460828176e3 | 6b8d8cf9622eadef47bd10690c1bf1e7fd892bfd | refs/heads/main | 2023-09-03T15:03:43.698518 | 2021-11-04T01:02:33 | 2021-11-04T01:02:33 | 411,076,325 | 1 | 0 | MIT | 2021-10-31T13:43:09 | 2021-09-27T23:48:59 | HTML | UTF-8 | Python | false | false | 41,509 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationE... | [
"etiennebrxv@gmail.com"
] | etiennebrxv@gmail.com |
fe9688ac34094a0714144e1e289d9019fcc150c6 | 3109199670566a71533e49a9bd4caddc62dc322d | /swi_fi.py | 3da98a5a814cd09acf2d0a3192fac71a74d64fe3 | [] | no_license | felcygrace/swi_fi | 4b1eb891e7adc95b2fd97f58d756db0a855bd027 | c50ee60f0dd9f8ffca15caa1976f57f39bbfa23b | refs/heads/master | 2020-08-15T10:13:28.636117 | 2019-10-15T14:47:05 | 2019-10-15T14:47:05 | 215,323,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | http://ai2.appinventor.mit.edu/b/apxq
| [
"noreply@github.com"
] | felcygrace.noreply@github.com |
4a5caca1fe2ee0c71d0febab0f0813eb1be06bed | e1fada3a9846a5593e3d3d2fdc32b23b832e38b4 | /otx/mpa/seg/semisl/trainer.py | a44a2ae9ba391b5820affac0354b964e22c22563 | [
"Apache-2.0"
] | permissive | GalyaZalesskaya/openvino_training_extensions | fd1ebb189900008b16b85568449e5c62d8edbad5 | 6116639caeff100b06a6c10a96c7e7f5951f20c7 | refs/heads/develop | 2023-09-03T19:32:44.702497 | 2023-03-15T06:48:24 | 2023-03-15T06:48:24 | 202,568,309 | 0 | 0 | Apache-2.0 | 2019-10-28T16:16:27 | 2019-08-15T15:41:59 | Python | UTF-8 | Python | false | false | 423 | py | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from otx.mpa.registry import STAGES
from otx.mpa.seg.trainer import SegTrainer
from otx.mpa.utils.logger import get_logger
from .stage import SemiSLSegStage
logger = get_logger()
@STAGES.register_module()
class SemiSLSegTrainer(SemiSLSe... | [
"noreply@github.com"
] | GalyaZalesskaya.noreply@github.com |
fc534a71496627f82cf63f475038c4cf4646be00 | 3d17434cd8dc7992acb6a408b84c65f56027ceee | /service/gaoda_service.py | 28e66da3054ff91d01a1bc6a2410f397ced7609f | [] | no_license | PKQ1688/DB | caa9ab37e7441659b707ee7e1724f361ab157641 | adfa892d062da3b4c1a322a294267503d59cc512 | refs/heads/master | 2022-04-09T23:35:36.292556 | 2020-03-20T02:28:17 | 2020-03-20T02:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,398 | py | # -*- coding:utf-8 -*-
# @author :adolf
import json
from flask import Flask
from flask import request
import traceback
# from flask_cors import CORS
from service.service_inference import *
import base64
import numpy
import requests
"""
提供ocr服务
"""
app = Flask(__name__)
def rotate(image, angle, center=None, scale=1.... | [
"zhutaonan@i-i.ai"
] | zhutaonan@i-i.ai |
417a07eb894621e546190d0525c076eb3e6cfc0a | b24ce5acced59ef367a20706949953f3ea81d57a | /tensorflow/contrib/keras/python/keras/layers/merge.py | 1da4a9d20d83d316aec1258b4b06d07e16811068 | [
"Apache-2.0"
] | permissive | BoldizsarZopcsak/Image-Classifier | b57dd3b72cf368cc1d66a5e318003a2a2d8338a4 | c0d471a55a70b3118178488db3c005a9277baade | refs/heads/master | 2022-11-19T12:28:49.625532 | 2018-01-20T15:48:48 | 2018-01-20T15:48:48 | 118,253,026 | 1 | 1 | Apache-2.0 | 2022-11-01T09:24:24 | 2018-01-20T15:04:57 | Python | UTF-8 | Python | false | false | 15,856 | 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... | [
"zboldi@gmail.com"
] | zboldi@gmail.com |
16f852ff360558bd2644945e2508c1cb6439cd2f | a7d6807af3b8b67d0ac93b014d9a688d8d612539 | /algoexpert/medium/num_ways_make_change.py | 341ca371fb83f6a301400b8c26bc74b044265934 | [] | no_license | shehryarbajwa/Algorithms--Datastructures | 06a9f86bedbf40909011365cf169d5c77791b643 | cbd456e0db9ea6a542926015aeee4bd2ceff9ff9 | refs/heads/master | 2023-04-11T21:00:17.438588 | 2021-05-11T23:19:05 | 2021-05-11T23:19:05 | 193,496,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # Dyanmic Programming
# Number of ways to make change
#Base case - When making change for 0, there is only one way and that is to not offer any change
# This can be done by making no change and buying it for free.
## Hint: Build up the array one coin denomination at a time. In other words, find the number... | [
"shehryar.bajwa@gmail.com"
] | shehryar.bajwa@gmail.com |
ad0de3de73eb6768b046e7200094351af4e0457d | a939e018333a9ecd26ddc618f99835b7eb381686 | /deploy/headline_album/le_crawler/core/items.py | 9c1cfabcdc0c153e542453204390ddee5296b736 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,564 | py | #!/usr/bin/python
#
# Copyright 2014 LeTV Inc. All Rights Reserved.
"""
get base crawler items to fill
decoing item with utf8
in crawler we recommend using coding unicode
when output data should using utf8
"""
__author__ = 'guoxiaohe@letv.com (Guo XiaoHe)'
import json
import traceback
from scrapy.item import Item, Fi... | [
"zjc0516@126.com"
] | zjc0516@126.com |
59a4b6f42717f88dbc01cc6c4d71d3472b492b33 | 2d293a15dd64916f1f1e33e5a894d8ee96757072 | /questions/q237_deleteNodeInLinkedList.py | 91c8883a3005fa11a3a9401bb3732ee951fcf240 | [] | no_license | liang12k/leetcodeoj | 66238b76cf64ae0aeef7454fe2d449a781f461a7 | d432d1ac17e96f8a6f6a2d327020b58c46c34ecb | refs/heads/master | 2021-01-10T08:39:01.181646 | 2016-02-26T04:08:50 | 2016-02-26T04:08:50 | 36,776,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | '''
Write a function to delete a node (except the tail)
in a singly linked list, given only access to that node.
Supposed the linked list is 1 -> 2 -> 3 -> 4
and you are given the third node with value 3,
the linked list should become 1 -> 2 -> 4 after calling your function.
'''
# Definition for singly-linked list.
cl... | [
"kenneth.liang12@gmail.com"
] | kenneth.liang12@gmail.com |
70582851e649812330b6958710566ebe78afcc71 | 49b32c03b0f54639feef001c4f35f6602e5cc790 | /venv/Scripts/easy_install-script.py | 1afef5002dd7cd76ed0aa930494d4a3d87c0e2e6 | [] | no_license | TonyZhang94/RDFSearch | 0fa9707fed74b26983012a643386e1151f541570 | f28b6bdf327e8b80c6796a10148dacb1110ebea3 | refs/heads/master | 2020-09-27T00:35:12.979839 | 2019-12-06T17:37:12 | 2019-12-06T17:37:12 | 226,379,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #!D:\RDFSearch\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"879833043@qq.com"
] | 879833043@qq.com |
c0d5478f0720d4f31c484a5e72653ac811b903d0 | 85b6e009c45f2dd530d8ae186feb7e6e67d076a8 | /cohesity_management_sdk/models/erasure_coding_information.py | d49ecb4696500a8e92e74e7811ae25c3ad9ea6de | [
"MIT"
] | permissive | priyambiswas0/management-sdk-python | 4a60153b038d0a04de02f2308362a2531b0ff9cb | 5807c85e003f271ce069b52529b31abfd08ec153 | refs/heads/master | 2021-10-20T05:43:34.626369 | 2018-05-22T06:04:20 | 2019-02-25T23:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | # Copyright 2019 Cohesity Inc.
# -*- coding: utf-8 -*-
class ErasureCodingInformation(object):
"""Implementation of the 'Erasure Coding Information.' model.
Specifies information for erasure coding.
Attributes:
algorithm (AlgorithmEnum): Algorthm used for erasure coding.
... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
a874384e7c18ec745b27a822ac6eb249d79f5de4 | 448d5b412422229f9089873c0c1606f10f43f889 | /id97/id97/items.py | 07ba839db45118ef94fbad9b8db5388a47e2cc10 | [] | no_license | zhujingxiu/spider1 | d70dea4e41cdf5390c17ec584901b8d71cdd12dd | a5b6a44242ec6f01894ef585c3c2970cb2cd1283 | refs/heads/master | 2020-04-16T01:58:07.613332 | 2019-01-23T03:21:39 | 2019-01-23T03:21:39 | 165,192,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Id97Item(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title = scrapy.Field()
url = scrapy.F... | [
"zhujingxiu@gmail.com"
] | zhujingxiu@gmail.com |
b160456916255c8c83424b87c2f9c9c200d4e667 | 5cb7861cf5787dec2ff4bb0d5f2f96803e4b7ede | /tensorflow/lite/testing/op_tests/reshape.py | 9d6de92dea274a5bd3c64bccb83b9091ab61e6c7 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | VeriSilicon/tensorflow | c94887193d562c9d320b5c56d476629682c4ce58 | 2a1fa53a7c3a06eedec16b8aa751fb7deba8f4c5 | refs/heads/xla_npu_v270 | 2022-06-02T16:53:51.549104 | 2022-04-18T10:19:46 | 2022-04-18T10:19:46 | 93,762,772 | 4 | 29 | Apache-2.0 | 2022-04-18T10:19:47 | 2017-06-08T15:05:39 | C++ | UTF-8 | Python | false | false | 3,574 | py | # Copyright 2019 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f89bdc6a6142f75ca3a4913f664f9afa281ed4eb | afedb9a940f309ead33f1fb568083238cd4927d7 | /tests/nemo_text_processing/test_boundary.py | 907423005091c4975a00e5515a0180f9b5faea9f | [
"Apache-2.0"
] | permissive | sergiogcharles/NeMo | 1ce7b4972d708c5fd875bdf629d783296fdb1847 | fcba7eb98f86ca862f4d03141738ecb1b62db046 | refs/heads/main | 2023-07-16T03:06:06.478682 | 2021-09-03T04:25:50 | 2021-09-03T04:25:50 | 382,719,035 | 1 | 0 | Apache-2.0 | 2021-07-03T22:22:53 | 2021-07-03T22:22:53 | null | UTF-8 | Python | false | false | 1,754 | py | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | sergiogcharles.noreply@github.com |
3a0c4b024b60f46cad49ddd16fe57a4f8833dcfe | 459c3b034550fd8b7d2155ba355871250bcf0375 | /test/test_order_info.py | dd2aea61bf5f8222dc25e028e4eecc3fb8b7f4d6 | [] | no_license | sanketparte/ks-orderapi-python | 10b4c6ae1592acda8f79213985a7f23d094907eb | 16fb6d8ad10757e551063b70acccc4873510aa32 | refs/heads/master | 2023-08-26T04:51:37.890648 | 2021-10-29T05:09:24 | 2021-10-29T05:09:24 | 422,207,924 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | # coding: utf-8
"""
Session-Order-Margin-API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 1.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
imp... | [
"thebhushanp@gmail.com"
] | thebhushanp@gmail.com |
cd08cee996bdd5da6de4b5996525c4f0e59dfafa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03242/s415205848.py | 923cd38a446e315aae55bef20fbe450f8be5472c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | n = list(input())
ans = ''
for i in n:
if int(i) == 1:
i = '9'
elif int(i) == 9:
i = '1'
ans += i
print(int(ans)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
992f59f1c744bad29f7ff225db6d8df00f94d42e | b004204644dd3cf9ad922a6cd5c0aab0c0e97598 | /addons_custom/izi_pos_money/controllers/controllers.py | 5a367e0fe7b8ea581aff865702e35b1f4faa4c4c | [] | no_license | butagreeza/korea_spa | 7a2fdd92ca73205945632ead6582ef1df424074e | 1524f87b62998eba29e491d0836714abec7059fd | refs/heads/master | 2023-04-26T09:45:51.931127 | 2021-05-17T16:45:33 | 2021-05-17T16:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | # -*- coding: utf-8 -*-
from odoo import http
# class IziPosMoney(http.Controller):
# @http.route('/izi_pos_money/izi_pos_money/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/izi_pos_money/izi_pos_money/objects/', auth='public')
# def list(self, **kw):
# ... | [
"tungpd@izisolution.vn"
] | tungpd@izisolution.vn |
f0c3dd5c60ee4dd517b15dac645f055a1eeaeb00 | 1792c2e809bca01d71570cf3d4d7cfb4cac28c12 | /soup/config.py | e92bd39ca2c585be66bf70edebaa4d7e2197c06d | [] | no_license | kryfo/Plugins_config_disc | cd6d24a27442a8fe5379f1b40e8083c378b338cd | 477569aab314919944205e6e4849196cc4f810e2 | refs/heads/master | 2020-03-21T07:15:15.011058 | 2018-08-12T10:16:41 | 2018-08-12T10:16:41 | 138,269,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | #!/usr/bin/env python
#encoding:utf-8
# -*- coding: utf-8 -*-
import sys
import os
import shutil
import subprocess
from imp import reload
reload(sys)
# sys.setdefaultencoding('utf-8')
from MayaPlugin import PluginBase
class SoupConfig():
def __init__(self,clientInfo):
# self.MyLog(clientInfo)
self... | [
"superdkk@gmail.com"
] | superdkk@gmail.com |
2c4f368340fdad9b8b6578f6be749d61b1cf1b2a | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/classification/Vit_small_patch16_224/timm/models/coat.py | 3d32f5c9420e42fc4aaa2834364c1393d401a2a0 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"CC-BY-NC-4.0",
"LicenseRef-scancode-proprietary-license"
] | 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 | 28,752 | py | """
BSD 3-Clause License
Copyright (c) Soumith Chintala 2016,
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of con... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
8d1a1e10f987c7ab329493c19c4f26da5e62942d | b87c3bd95ac01cb7a82b9b3b329bd7ba173f8ea8 | /prototyping/1 подготовка arduino + sockets/server/socket_server.py | 02d78f84c59df1196e3d9be65aab77ed26bdd628 | [
"MIT"
] | permissive | telminov/arduino-battle-server | f471b3be87e87531e48f4ddedf39c0804538b264 | 3e781c5c21e60dfe25128048d5dec911bf79f5d4 | refs/heads/master | 2021-01-10T02:58:31.525840 | 2016-10-11T06:51:45 | 2016-10-11T06:51:45 | 49,320,679 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | # -*- coding:utf-8 -*-
import socket
class SocketServer():
sock = socket.socket()
def __init__(self, port, ip='0.0.0.0'):
self.port = port
self.ip = ip
self.sock.bind((ip, port)) #открываем сокет с таким то портом
self.sock.listen(1) #кол-во слушателей
def accept(self):
... | [
"you@example.com"
] | you@example.com |
bf958c2c0975151e6a76da6d5c0f72909f953bd5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_buoyed.py | 95e0fc695e8a3912ab2c1ca2220beb5be0b5954b | [
"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 | 226 | py |
from xai.brain.wordbase.verbs._buoy import _BUOY
#calss header
class _BUOYED(_BUOY, ):
def __init__(self,):
_BUOY.__init__(self)
self.name = "BUOYED"
self.specie = 'verbs'
self.basic = "buoy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
99ee56ff300e8696611d001461eb0e2700954185 | be7949a09fa8526299b42c4c27adbe72d59d2201 | /cnns/nnlib/datasets/torchvision_cifar.py | 579b5b0850fd84d8b6e74cd9f9344a03f4a4001d | [
"Apache-2.0"
] | permissive | adam-dziedzic/bandlimited-cnns | 375b5cccc7ab0f23d2fbdec4dead3bf81019f0b4 | 81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a | refs/heads/master | 2022-11-25T05:40:55.044920 | 2020-06-07T16:14:34 | 2020-06-07T16:14:34 | 125,884,603 | 17 | 5 | Apache-2.0 | 2022-11-21T21:01:46 | 2018-03-19T16:02:57 | Jupyter Notebook | UTF-8 | Python | false | false | 7,859 | py | from __future__ import print_function
from PIL import Image
import os
import os.path
import numpy as np
import sys
if sys.version_info[0] == 2:
import cPickle as pickle
else:
import pickle
import torch.utils.data as data
from torchvision.datasets.utils import download_url, check_integrity
class CIFAR10(data... | [
"adam.dziedzi@gmail.com"
] | adam.dziedzi@gmail.com |
82c78c3c31e5dff1e31f6852d6f1d5c4a4ec9f54 | a5573f56eb36e3b388e34f19d4d106b76fa34f3c | /setup.py | 4c10eef98c72b31c22d8736a4854956ae6e02eb3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | seantis/spare | 4f8a9175f678c060b5a92cb9bca5cd3aeb4f4380 | c6afc0d4e302f31bf0cfe4609117a6f1c863edae | refs/heads/master | 2020-03-13T06:59:00.821836 | 2019-07-29T13:20:25 | 2019-07-29T13:20:25 | 131,015,913 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
name = 'spare'
description = 'One S3 backup, encrypted on the fly.'
version = '0.4.0'
def get_long_description():
readme = open('README.rst').read()
history = open('HISTORY.rst').read()
# cut the part before the description to avoid re... | [
"denis.krienbuehl@seantis.ch"
] | denis.krienbuehl@seantis.ch |
9ce6c51b75c959422a6c3bffadb154b34d7534b1 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/aiplatform/v1/aiplatform-v1-py/google/cloud/aiplatform_v1/services/migration_service/transports/base.py | 2313f285fba93da34de353dc0d2d9eb0ca9bfec5 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,234 | 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 or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
4d7fa1131671d6544a4fae26c274bda022edc6ca | 1c0542cef2ac6a5fb691602887236bf70f9bf71f | /speed_test_sar/sfsi_speed/configs/imagenet/r50_120ep.py | 4ad07eea68cc3bf747e313af266dc26e4b0adde9 | [
"Apache-2.0"
] | permissive | yizenghan/sarNet | 683f45620013f906cb8a550713e786787074a8ae | d47a6e243677811b259a753233fbbaf86d2c9c97 | refs/heads/master | 2023-07-16T02:09:11.913765 | 2021-08-30T02:04:02 | 2021-08-30T02:04:02 | 299,276,627 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | # model settings
model = dict(
type='VanillaNet',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(3, ),
style='pytorch',
),
cls_head=dict(
type='FCHead',
num_classes=1000))
train_cfg = dict(
)
test_cfg = dict(
)
# dataset settin... | [
"yizeng38@gmail.com"
] | yizeng38@gmail.com |
fe6204a2f859c17b8b26f5e5de84c62a9272ff02 | 9c7fe59c790287598123fe0e3f7a005728e20db0 | /src/Util.py | 698fb27a73655ad6d8069e533f213bb6c6525b49 | [] | no_license | Spirals-Team/failure-oblivious-experiments | 3f56118cca3935da35c0e1399687e437897393cb | 2ff4cdefb93225d6953ff2b09001977eb027eb69 | refs/heads/master | 2021-08-09T18:00:25.538385 | 2020-02-28T11:58:44 | 2020-02-28T11:58:44 | 51,837,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | import numpy
def isNaN(num):
return num != num
def med(lst):
return numpy.median(numpy.array(lst))
def avg(lst):
if len(lst) == 0 or lst is None:
return None
return sum(filter(lambda x: x is not None, lst))/float(len(lst))
def locationID(location):
output = location['class']
output += ":%d" % location... | [
"durieuxthomas@hotmail.com"
] | durieuxthomas@hotmail.com |
a934aea43973e7ed393d825b2beb85931f5448d9 | 8a55bdec478d2fb48508deac13ca3aeeda46fa06 | /test/functional/wallet-accounts.py | d2b6ebf6f7be156976d4775bbf97280e2a163688 | [
"MIT"
] | permissive | hideoussquid/aureus-core-gui | 83b0525e1afa349e0834e1a3baed5534043cd689 | ce075f2f0f9c99a344a1b0629cfd891526daac7b | refs/heads/master | 2021-01-19T00:04:39.888184 | 2017-04-04T08:15:18 | 2017-04-04T08:15:18 | 87,142,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,302 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test account RPCs.
RPCs tested are:
- getaccountaddress
- getaddressesbyaccount
- setaccount
... | [
"thesquid@mac.com"
] | thesquid@mac.com |
9791abe166bec2cf193b765e21f5aa62e566ca92 | 847f94217951a3afc98b22317662c34c6063e762 | /rob_house.py | 9fb4efac3c71867491b31a517ee6878e3c3cbb1e | [] | no_license | tashakim/puzzles_python | abf8c4cca4046e3ab611cab2efd33265ece4e954 | 95a86cbbca28d0c0f6d72d28a2f1cb5a86327934 | refs/heads/master | 2023-08-30T19:28:55.134966 | 2021-11-04T03:50:04 | 2021-11-04T03:50:04 | 247,339,457 | 8 | 1 | null | 2021-06-11T03:38:40 | 2020-03-14T19:22:38 | Python | UTF-8 | Python | false | false | 783 | py | class Solution:
def rob(self, nums: List[int]) -> int:
"""Purpose: Assures no two adjacent houses are robbed.
Utilizes dynamic programming.
"""
if len(nums) == 0:
return 0
elif len(nums) == 1:
return nums[0]
dp = [0]*len(nums)
max_sum = ... | [
"jae_young_kim@brown.edu"
] | jae_young_kim@brown.edu |
42c42dadf7caa6d7719a52ad92f1318ca3cfa3b7 | 6fa0d5d3b61fbce01fad5a7dd50258c09298ee00 | /Web/04_django/Corona/CORONA03/accounts/urls.py | 5bb1a1b748e046139369d6840ccb593e2c45db97 | [] | no_license | athletejuan/TIL | c8e6bd9f7e2c6f999dbac759adcdb6b2959de384 | 16b854928af2f27d91ba140ebc1aec0007e5eb04 | refs/heads/master | 2023-02-19T13:59:06.495110 | 2022-03-23T15:08:04 | 2022-03-23T15:08:04 | 188,750,527 | 1 | 0 | null | 2023-02-15T22:54:50 | 2019-05-27T01:27:09 | Python | UTF-8 | Python | false | false | 632 | py | from django.urls import path
from . import views
app_name = 'accounts'
urlpatterns = [
path('', views.index, name='index'),
path('signup/', views.signup, name='signup'),
path('login/', views.login, name='login'),
path('logout/', views.logout, name='logout'),
path('update/', views.update, name='upd... | [
"vanillasky84.0627@gmail.com"
] | vanillasky84.0627@gmail.com |
108622e88de0c0bf62dbd287dd8c09ee5bdf40c3 | 1084b31c7b8f7128903133b72f1ca45f01385f90 | /setup.py | b3f2d14e3ec229fd2b19d19db3c573251da90850 | [] | no_license | dstufft/guard | 58e55020657f7da4b58be3cc860672c76701b17d | 90b421634e871437dcf8e1712369bfb5e6937079 | refs/heads/master | 2016-08-05T12:20:01.650510 | 2013-10-21T15:13:38 | 2013-10-21T15:14:09 | 13,744,494 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | #!/usr/bin/env python
# Copyright 2013 Donald Stufft
#
# 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 ag... | [
"donald@stufft.io"
] | donald@stufft.io |
9d2864505dfe931986f2e500094cbd68df24042f | 7ffa7b3be3ef25db511d0f9db673fa4ff2350daf | /src/python_practice/practice1/20180616_note2.py | 22777a97aa6215d8aff497bcdf35c725e5fa6aa7 | [] | no_license | jacoloves/start_Python | 33c9ee8baa5650a66d496a207269b2228a1640d4 | 1ced11d131b612d78a69ae261d4e06889313afcf | refs/heads/master | 2022-11-24T02:06:40.582895 | 2020-02-15T13:57:13 | 2020-02-15T13:57:13 | 133,673,161 | 0 | 0 | null | 2022-11-22T02:19:43 | 2018-05-16T13:52:03 | Python | UTF-8 | Python | false | false | 207 | py | te = 'チョキ'
if te == 'グー':
res = "パー"
elif te == "パー":
res = "チョキ"
elif te == 'チョキ':
res = "グー"
else:
res = '不明'
print('あなたは、' + te + '。私は、' + res)
| [
"5511068t@gmail.com"
] | 5511068t@gmail.com |
b44d01c44ffcd93ebb08c8007a207ed48285ff45 | 7d386b6e20bad736e9ee76d63c7c13f4dfe75c18 | /01-AP/ap_core.py | b1072a4f44ff5c9db5b1696b8abc379f039be4d1 | [] | no_license | WilliamRo/gdu | d6394d937da65be452d7be783f76bcb2ecc0b9de | 2e153aa94d2395a115afee79e8654803525f772c | refs/heads/master | 2021-07-20T07:16:08.849663 | 2020-09-14T06:26:14 | 2020-09-14T06:26:14 | 214,783,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | import sys, os
ROOT = os.path.abspath(__file__)
# Specify the directory depth with respect to the root of your project here
# (The project root usually holds your data folder and has a depth of 0)
DIR_DEPTH = 1
for _ in range(DIR_DEPTH + 1):
ROOT = os.path.dirname(ROOT)
sys.path.insert(0, ROOT)
from tframe import c... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
98b15e250f785b2538414011eaa9146202c9b5cd | a9063fd669162d4ce0e1d6cd2e35974274851547 | /swagger_client/models/inline_response20091_site.py | b784484408e16ceaa740dd4a080cc72e960c418d | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
21dc09036d7fb15217856797c0b8282eaf7e88c1 | aaba31766fa2bd016eff5139b3a2927a3f1b12e7 | /saas/backend/service/models/action.py | cfde128d48b2df0ceba768bb9bf174fc2751514d | [
"MIT"
] | permissive | Laotanling/bk-iam-saas | 1c15065a78d142ef2ccf522dc460a2bb92569de2 | 70c4306e5800e39461c2b688cb68fd5093c06a62 | refs/heads/master | 2023-07-10T01:21:56.637858 | 2021-08-10T06:37:52 | 2021-08-10T06:37:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,613 | py | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with th... | [
"zhu327@gmail.com"
] | zhu327@gmail.com |
c4cca7c42afbc6b882fe7346ee015e739a3045a5 | 2c5073c0140b3366b94866d50f8b975c926a529b | /handtrack.py | 2f60bfcdec0526c5dbe40b70db1d8cb53a22d77c | [] | no_license | geekboi777/Volumegesture | 435c2752d107ac6915919e79bcb63fb0b85f6e9e | 3cc35f74533e26588a606154897f9ded4801f0ce | refs/heads/master | 2023-06-24T19:09:07.138900 | 2021-07-30T23:22:18 | 2021-07-30T23:22:18 | 390,512,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import cv2
import mediapipe as mp
import time
cap = cv2.VideoCapture(0)
mpHands = mp.solutions.hands
hands = mpHands.Hands()
mpDraw = mp.solutions.drawing_utils
pTime =0
cTime =0
while True:
success, img = cap.read()
imgRGB = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
results = hands.process(imgRGB)
#prin... | [
"geekboi777@github.com"
] | geekboi777@github.com |
c0cd37407f80ce206b8f382055a5c7ba478c6635 | 02508aa773dcbd9939eb879952ee2cb3dd90bcad | /torch/utils/data/_utils/worker.py | 6b781d021d8abffe569e749c6cce9b4f7fa6e365 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | dhivyadharshin/pytorch | d8a3b7f3c03e21e776ea34788d13743467b738c8 | 6a170011876bb8bd1909e8f60fba1270ac7a5577 | refs/heads/master | 2023-07-18T07:31:52.918955 | 2021-08-17T18:12:01 | 2021-08-17T18:12:01 | 397,330,616 | 5 | 0 | NOASSERTION | 2021-08-17T18:12:02 | 2021-08-17T16:57:16 | null | UTF-8 | Python | false | false | 12,687 | py | r""""Contains definitions of the methods used by the _BaseDataLoaderIter workers.
These **needs** to be in global scope since Py2 doesn't support serializing
static methods.
"""
import torch
import random
import os
import queue
from dataclasses import dataclass
from torch._utils import ExceptionWrapper
from typing im... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
591fb7ee0e48d4f9e9552fac0da2f3ae1f24c8c9 | a68b010a3c5477a903767c06d4d2b78b4807ba42 | /setup.py | 1ddb2c854f65a9784b23a07f22a58c086492bc41 | [
"BSD-3-Clause"
] | permissive | jdsnape/srptools | 2d83169c47630a38e70c3026d5f039a8642a7420 | 9455fa88d6eb4935bb7968e8d2832f88ecbc55b7 | refs/heads/master | 2023-02-05T07:56:32.555832 | 2020-12-30T07:47:45 | 2020-12-30T07:47:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | import os
import io
import re
import sys
from setuptools import setup, find_packages
PATH_BASE = os.path.dirname(__file__)
PYTEST_RUNNER = ['pytest-runner'] if 'test' in sys.argv else []
def read(fpath):
return io.open(fpath).read()
def get_version():
"""Reads version number.
This workaround is requi... | [
"idlesign@yandex.ru"
] | idlesign@yandex.ru |
9d504c370e4e14d4c9e511fdf8a91ca6f638e649 | 91ede661bf6a399d3762f07f2dac70618eb9e9c3 | /mnli/generate.py | 458cba6af592dfe25c4bd23c8617c92f94127a64 | [] | no_license | jihunchoi/ca-stacked-lstm | 46587117f631b5ab998b60c794d6870752f99c0e | cf2a9e563477bad2aa303ee791af9965241e7618 | refs/heads/master | 2021-09-22T15:34:51.644895 | 2018-09-11T10:20:09 | 2018-09-11T10:20:09 | 145,532,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | import argparse
import os
import torch
import yaml
from torchtext import data
from tqdm import tqdm
from .model import MNLIModel
from .data import load_data
from .data import TextField, LabelField
def generate(args):
device = torch.device(args.device)
text_field = TextField()
label_field = LabelField()... | [
"jhchoi@europa.snu.ac.kr"
] | jhchoi@europa.snu.ac.kr |
3a183fe3fd8cb3160ed2cc5307e96e12e7715e87 | 74768d7c46083331bbcc5db29406a6a57f749187 | /warehouse/organizations/services.py | 4103e0804877b98c4d88cbaedc0899ddddfe3d06 | [
"Apache-2.0"
] | permissive | timgates42/warehouse | b9ffc0cbe6984ed8734b52c06e34b7040c3f7bf8 | 8e378dd19b6a6b83a95eb358c50693d1255c573a | refs/heads/main | 2023-03-15T23:22:26.084514 | 2022-07-15T16:55:17 | 2022-07-15T16:55:17 | 236,273,315 | 0 | 0 | Apache-2.0 | 2020-01-26T05:56:15 | 2020-01-26T05:56:14 | null | UTF-8 | Python | false | false | 13,393 | py | # 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, software
# distributed under the Li... | [
"noreply@github.com"
] | timgates42.noreply@github.com |
402cf779b171587a3d0d0997e0293c30f253d633 | 9e17f41edbe24b8101a8292b0cec80567848e533 | /galsim/deprecated/shear.py | afcaf9ae99d9ac090e2abb223144ad156f7a0bc3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | nrosa007/GalSim | 701e2a23957598559c29c8f6787efd6c31afc1b1 | 5a9b11bbf0a6dbf458917d2c078aab2770f69a2f | refs/heads/releases/1.4 | 2021-01-01T18:31:08.036266 | 2018-08-30T16:42:25 | 2018-08-30T16:42:25 | 98,352,334 | 0 | 0 | null | 2017-07-25T21:40:28 | 2017-07-25T21:40:28 | null | UTF-8 | Python | false | false | 2,318 | py | # Copyright (c) 2012-2016 by the GalSim developers team on GitHub
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
# https://github.com/GalSim-developers/GalSim
#
# GalSim is free software: redistribution and use in source and binary forms,
# with or w... | [
"michael@jarvis.net"
] | michael@jarvis.net |
96ffbc41e7135d9d16304f67b7ba24f5a1030050 | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /concept_explanations/toy_helper.py | 79ebcbf1ab457660bbb9706e28c3627dc028a873 | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 20,276 | 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 |
680684629bf4849e4a520511cfa06a30243bc14c | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/dn4/M-4.py | efc85c03d441b2da0d0b47f491803025e9b8a243 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,545 | py | # Tu pišite svoje funkcije:
from math import *
def koordinate(ime,kraji):
for kraj,x,y in kraji:
if(kraj == ime):
return x, y
def razdalja_koordinat(x1,y1,x2,y2):
return(sqrt(pow(x1-x2,2)+pow(y1-y2,2)))
def razdalja(ime1,ime2,kraji):
k1=koordinate(ime1,kraji)
k2=koordinate(ime2,kr... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
4f5a301fe2e01d958164a74953b6b6b7d8fb65d8 | 54d2887e3c910f68366bd0aab3c692d54245e22a | /abc/abc_042_125/abc049/c.py | 8370b836fea9d997fb5dcc78f0446f873d60289b | [] | no_license | Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import sys
sys.setrecursionlimit(10**8)
s = input()
words = ['dream', 'dreamer', 'erase', 'eraser']
def dfs(idx):
if idx == len(s):
return True
ans = False
for word in words:
if s[idx:idx+len(word)] == word:
ans = ans or dfs(idx + len(word))
return ans
if dfs(0):
prin... | [
"kevinrobot34@yahoo.co.jp"
] | kevinrobot34@yahoo.co.jp |
ed9341e2a6b81328e29e4aa0c7b49f067c12b7f9 | 63b79c404d83e4980891c488f4d9592558ecda35 | /assets/src/ba_data/python/ba/_appdelegate.py | e1cf5431f3d040e13d65c15ed668958e343a609a | [
"MIT"
] | permissive | kakekakeka/ballistica | 56e8879cd5b4b990e5e05da3dfd300d7cbb45446 | 3ffeff8ce401a00128363ff08b406471092adaa9 | refs/heads/master | 2022-11-14T08:11:57.160782 | 2020-07-01T05:43:13 | 2020-07-01T05:49:44 | 276,755,445 | 2 | 0 | MIT | 2020-07-02T22:18:37 | 2020-07-02T22:18:36 | null | UTF-8 | Python | false | false | 2,132 | py | # Copyright (c) 2011-2020 Eric Froemling
#
# 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, merge, publish,... | [
"ericfroemling@gmail.com"
] | ericfroemling@gmail.com |
e374c779d668050785e6ec49045234c1dac7faa2 | 19bc8a9343aa4120453abeff3deddda7d900f774 | /ProgrammingInterviewQuestions/27_LargestContinousSubsequence.py | fba3596ef1b00f98f620faa4f9d90d45aec2a0c6 | [] | no_license | ArunkumarRamanan/CLRS-1 | 98643cde2f561d9960c26378ae29dd92b4c3fc89 | f085db885bcee8d09c1e4f036517acdbd3a0918e | refs/heads/master | 2020-06-28T08:30:44.029970 | 2016-11-19T15:27:55 | 2016-11-19T15:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 01 19:05:44 2016
@author: Rahul Patni
"""
# largest continous subsequence
# -*- coding: utf-8 -*
"""
Created on Thu Sep 29 00:45:45 2016
@author: Rahul Patni
"""
# largest string subsequence
def printMatrix(S):
for i in S:
print i
def reconstructSolution... | [
"rahul20patni@gmail.com"
] | rahul20patni@gmail.com |
8b8f87a163bf4d53d95fde039670a2a3f3e30aac | e1312afff90dbe1cdcd500541e29097da19fee97 | /regression/train_keras_regression.py | 06f8215ff3451b235ae27505e8d88cb245565054 | [] | no_license | andreiqv/github_detector_scale | af6115caff6ca6c73c934dc1fa6673ccd69b71fa | 329d32a4d26b2bfb2f902f876bb9b8eb35bd9e2a | refs/heads/master | 2020-04-08T12:30:36.966069 | 2019-01-30T22:21:34 | 2019-01-30T22:21:34 | 159,350,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,168 | py | # slice index 4 of dimension 1 out of bounds
import os
import sys
import cv2
import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.callbacks import TensorBoard
sys.path.append('.')
sys.path.append('..')
#import keras_models.models as models
from tfrecords_converter_regression i... | [
"phxv@mail.ru"
] | phxv@mail.ru |
1fc5087247a3d341935065bc9a6cde3c15dac07b | c80df62eee7b4b23827ca9e128326edbcc21dcee | /Modules/xlwings/xlwings syntaxs.py | a691ebd419cdd986a59e36fcdd31446f17cb96d7 | [] | no_license | nagagopi19/Python_learning_curve | ad39a312eca81f341231939673e5195c45d7bd9f | b0487d758f38e97cc0aaea3a81d13474c23a21b5 | refs/heads/master | 2023-06-01T13:46:15.646609 | 2021-06-09T09:54:44 | 2021-06-09T09:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | import xlwings as xw
import datetime as dt
import time
#_____________creating a new Excel workbook_____________#
wb = xw.Book() #Creates a new workbook
wb.save('experiment.xlsx') #saves created workbook in the given path
wbExp = xw.Book('experiment2.xlsx') #opening an existing Excel file
wbBond = wbExp... | [
"kbsawant1005@gmail.com"
] | kbsawant1005@gmail.com |
dc67e0a4d246fd429995c8fa367eaa43ad68d85a | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /lex_yacc__examples/sly__examples/json_by_goodmami.py | 157fd8f8565577b883e0f6f4d869e4c790e7b636 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 3,092 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
# SOURCE: https://github.com/goodmami/python-parsing-benchmarks/blob/611cfc20ca7b61f1f489b0e56f201f6888a5c67b/bench/helpers.py
"""
JSON parser implemented with SLY
Implemented by Michael Wayne Goodman. For license information, see
https://gith... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
7699d4997ab79e566c42b97a4b8e1e74e8760d65 | e7d5555eb0b80ad59e7c76dd31e5fa9a23ec4a4c | /muddery/typeclasses/shop_good.py | 714c408dc9bba0fc81ebf857013f790ad2d728c8 | [
"BSD-3-Clause"
] | permissive | noahzaozao/muddery | 4d1ef24b4a7f0ef178a1c28c367a441cbb57ee5c | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | refs/heads/master | 2023-01-25T02:23:50.123889 | 2018-06-10T17:12:22 | 2018-06-10T17:12:22 | 137,031,119 | 0 | 0 | NOASSERTION | 2019-10-28T15:04:26 | 2018-06-12T07:05:42 | Python | UTF-8 | Python | false | false | 3,628 | py | """
Shop goods is the object in shops. They have some special attributes to record goods information.
"""
from django.conf import settings
from django.apps import apps
from evennia.utils import logger
from muddery.utils.exception import MudderyError
from muddery.utils.builder import build_object, get_object_record
fr... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
829731376d8fa8a2d12c746ffca0503a73a9ae2a | 593dcb88e92ebb845a0433644e081fbdfcc1b2cb | /Networks/MLP_k_seq_parametric_networks_unnorm/all_40_3.py | 57c80d77e165bd1874eed758cdc948fc8f7234e2 | [] | no_license | Kim-YoonHyun/PythonProject | a5cd28aa1e6431e0b9fe1ce30984a05affb91079 | 22c3f38bcfc3270e69f2b0c0de4c8c4d547e333b | refs/heads/main | 2023-07-19T12:08:49.941790 | 2021-08-17T12:13:05 | 2021-08-17T12:13:05 | 389,906,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,179 | py | import tensorflow as tf
import numpy as np
import tf_util
def get_model(input_tensor, is_training, bn_decay=None):
weight_decay = 0.0
num_point = input_tensor.get_shape()[1].value # get_shape : 텐서의 크기를 확인
k = 40
input_tensor_transformed = input_tensor
# Transform Net
adj_matrix = tf_util... | [
"kim_yh663927@naver.com"
] | kim_yh663927@naver.com |
d6b36335120ec493f8935fe2e9bcc8c4b50002b7 | e4d4f41a8eb3c399cb5c074c7f61d29e7a214557 | /is_prime.py | ece5c4a41b029f57739a2ed91603a3380729a51a | [] | no_license | akankshanayak2111/coding_practice | 5934b738e736f7069844443e11ee61969d88d398 | 0ead91a8b25cf37644cd0f9a5b664016a21f1b00 | refs/heads/master | 2021-07-06T04:08:17.425315 | 2017-09-28T21:49:20 | 2017-09-28T21:49:20 | 105,186,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | def is_prime(num):
"""Is a number a prime number?"""
if num < 2:
return False
# if num == 2:
return True
for n in range(2, num):
if num % n == 0:
return False
return True | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
b47a0fae8519afda559a614ebb35d7aaf45d88ab | 22efc01faa5651fe607f8ad48e51d73bb8900168 | /typeforce/__init__.py | bab1daf7fea48d0e1ac25c7d8dab6cc21a591f51 | [
"MIT"
] | permissive | simrit1/typeforce | b99d25cea9554b7804a15434e605525f5b84ad68 | 4c1b6091d17a453e771b9617ad7a3f148484ad75 | refs/heads/master | 2023-06-05T17:32:29.620467 | 2021-06-25T08:34:45 | 2021-06-25T08:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | """CLI tool to propagate py.typed into third-party libraries.
"""
__version__ = '0.2.0'
| [
"mail@orsinium.dev"
] | mail@orsinium.dev |
31a2bceafc7ad1f7a161be8b45d34cbe7992d4cb | 1462c42bef31c022040b4cae73a96d852e857b51 | /loaner/web_app/backend/api/messages/bootstrap_messages.py | 1bc2bf003fcc298a7d55d2bce0952c56e88323f7 | [
"Apache-2.0"
] | permissive | Getechsupport/getechgraband-go | f5e54754a2f300bfd2c8be54edd386841c5fae6c | 6d2a040ef9617fabd8c691ec1c787cf5ec9edb73 | refs/heads/master | 2022-08-17T12:11:06.299622 | 2020-03-10T16:22:34 | 2020-03-10T16:22:34 | 243,598,161 | 0 | 0 | Apache-2.0 | 2022-07-07T17:22:55 | 2020-02-27T19:21:54 | Python | UTF-8 | Python | false | false | 2,628 | py | # Copyright 2018 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 required by applicable law or a... | [
"email"
] | email |
8411bea68ec9b23d7c2c00ba74e4a4303df2614d | 3378bf2ebcd3cd794b26b74f033932cb0c6a6590 | /tuframework/training/network_training/nnUNet_variants/data_augmentation/nnUNetTrainerV2_independentScalePerAxis.py | fd1afd9bee33763f01f1da8bc2669d977d9fc638 | [
"Apache-2.0"
] | permissive | Magnety/tuFramework | d3d81f0663edbffbdd9b45138cbca82ffb78f03e | b31cb34d476ef306b52da955021f93c91c14ddf4 | refs/heads/master | 2023-05-01T04:36:04.873112 | 2021-05-18T01:07:54 | 2021-05-18T01:07:54 | 361,652,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# 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://w... | [
"liuyiyao0916@163.com"
] | liuyiyao0916@163.com |
8e56f64223ba1c92e161c4af1ec1b509e8e82d4c | 8a102033a266d39128e4b64aa0780cf67055e196 | /10950.py | ff21ceed50a3a5baff03f20771396e78cf69837d | [] | no_license | yuseungwoo/baekjoon | 4dec0798b8689b9378121b9d178713c9cf14a53f | 099031e2c4401e27edcdc05bd6c9e6a558b09bb9 | refs/heads/master | 2020-09-03T15:25:40.764723 | 2018-10-08T02:35:27 | 2018-10-08T02:35:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # coding: utf-8
n = int(input())
for _ in range(n):
a, b = map(int, input().split())
print(a+b)
| [
"blacksangi14@naver.com"
] | blacksangi14@naver.com |
7e3a14cdd9df8d69c8a84691a104d71f8f77f4a0 | cd9931a0f21480fedf63a989ba8ebdda98e05e49 | /Perper/Code/workflow/mut_recall_workflow.py | d49ac4ba2d4eb6bde8dbbe763f39132f6fc47857 | [] | no_license | WenHui-Zhou/recommand-system | 7c429203268d0ac58560c122ae7b1834ca89472f | fb97229da61aed0a90be97026d42e7a03600382b | refs/heads/main | 2023-05-10T01:04:45.424493 | 2021-06-10T01:58:04 | 2021-06-10T01:58:04 | 321,671,553 | 3 | 1 | null | 2020-12-24T03:33:27 | 2020-12-15T13:10:43 | null | UTF-8 | Python | false | false | 443 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author : perperzhou <765647930@qq.com>
# Create Time : 2021-01-15
# Copyright (C)2020 All rights reserved.
import time
import os
from model.mut_recall import Mut_Recall
def run(arg):
print('{} algrithm begin ... '.format(arg))
start = time.time()
r... | [
"765647930@qq.com"
] | 765647930@qq.com |
29c2ff38c5acbc2540e12ae1e4e759e6db5aedf9 | fb5f0bfb4f91646063f0913fbacc43d3f53a3d67 | /tensorflow_estimator/python/estimator/tf_estimator_doctest.py | b9eb098cc7e573f812c125faa8c93435823d72d7 | [
"Apache-2.0"
] | permissive | sahiltyagi4/estimator | b9f35f22d71766a6e6d7165267c4a3be80a1b88b | b22a912de2693322622d6f50e3a19e98fecac441 | refs/heads/master | 2021-07-24T03:09:08.857261 | 2019-11-12T18:50:11 | 2019-11-12T18:50:11 | 222,589,443 | 0 | 0 | Apache-2.0 | 2019-11-19T02:21:18 | 2019-11-19T02:21:17 | null | UTF-8 | Python | false | false | 5,788 | py | # Copyright 2019 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
aea7957f8f6e8756a9f5617ed98fa665b7b851d1 | 82b728e805d887102c0b8c415731b353877690cd | /samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_pipeline_service_create_training_pipeline_sync.py | d8c782b3d39a917ab39265bf23c78b11d35c2985 | [
"Apache-2.0"
] | permissive | geraint0923/python-aiplatform | 90c7742c9bdbde05b9688b117e8e59c0406d6f85 | 7ab05d5e127636d96365b7ea408974ccd6c2f0fe | refs/heads/main | 2023-08-24T05:30:38.519239 | 2021-10-27T20:38:25 | 2021-10-27T20:38:25 | 370,803,114 | 0 | 0 | Apache-2.0 | 2021-05-25T19:15:47 | 2021-05-25T19:15:46 | null | UTF-8 | Python | false | false | 1,959 | 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 or... | [
"noreply@github.com"
] | geraint0923.noreply@github.com |
96a33b1ab3e006764570713a2bedf133340a4bf5 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/pandas/tests/tseries/holiday/test_observance.py | 28bf98efb28223d2a6d3acb0b0fd418a4b6aab1c | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a143c2d232d7f5d9f120e59bdfc344bfcf84ca4330ae1113583152e63e05760a
size 2309
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
872a88c53b00a3c424535564e50301be0fcf4d25 | ea22929e5bf39e685e08587cc71b1b3b76eea421 | /exercises/avg_positive_numbers.py | d7b7cddac67bca2f4f67a0689982cf21d04374e9 | [] | no_license | srikanthpragada/PYTHON_02_AUG_2018_DEMO | 533d5e4aa67bb3d0405458bcb256398842e93f81 | fa7f9be2d5b6ede07576a93f7ae78f69b5b6ac04 | refs/heads/master | 2020-03-25T06:50:02.606434 | 2018-09-04T12:32:32 | 2018-09-04T12:32:32 | 143,526,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | # Display average of positive numbers
total = count = 0
while True:
num = int(input("Enter a number :"))
if num == 0:
break
if num < 0:
continue
total += num
count += 1
print("Average = ", total / count)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
6b21b09d08f70b81b4c070d3babea8cad9de1e57 | d11df46476fc28d6bcd80460c80f8d30e4a9a69f | /cmplist.py | e67c37e8e42f647a88c9080a7648312ccb7e1132 | [] | no_license | ganeshkavhar/List-in-Python-by-ganesh-kavhar | 552d5db1426bf809697d2442b7ca5fff1cfb2f0a | f2c8db790d423d6d5849edbe7a56e83b19815f56 | refs/heads/master | 2020-04-21T01:49:57.122815 | 2019-02-05T12:18:24 | 2019-02-05T12:18:24 | 169,235,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!/usr/bin/python
list1, list2 = [123, 'xyz'], [456, 'abc']
print cmp(list1, list2)
print cmp(list2, list1)
list3 = list2 + [786];
print cmp(list2, list3) | [
"noreply@github.com"
] | ganeshkavhar.noreply@github.com |
51359084ac06cd64f45770cc377dd88f7c33d88c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03303/s735954523.py | 50c31e8872672a7e7c5449246f1277b493e204cc | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | s = list(input())
ans = ""
w = int(input())
for i in range(0,len(s),w):
ans += s[i]
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8017ab606199534b361af7be794995c425b0243c | 32997e6a8607358765254ea81d2f867269ae2b35 | /04-np-complete-problems/2-coping_with_np_completeness/3_recoloring_reschedule_exams.py | 9d6b239668d86dffa038a15235fc21b761a5c8f8 | [
"MIT"
] | permissive | aman-singh7/training.computerscience.algorithms-datastructures | 0ace578ebcec13c5293b4d4dccdaa7634788604d | a4e1d1973b091589690fd2efc5dcb3c1a4df6c4c | refs/heads/master | 2023-06-09T12:27:55.569254 | 2021-06-29T20:16:37 | 2021-06-29T20:16:37 | 401,133,325 | 1 | 0 | MIT | 2021-08-29T20:12:50 | 2021-08-29T20:12:49 | null | UTF-8 | Python | false | false | 2,764 | py | import sat2_circuit_design
class Reduct_3_coloring_to_2_sat:
def __init__(self, n, edges, colors):
self.color_num = dict()
self.color_num["R"] = 1
self.color_num["G"] = 2
self.color_num["B"] = 3
self.f_convert_3_coloring_imputs_to_2_sat(n, edges, colors)
self.impli... | [
"mamid1706@hotmail.fr"
] | mamid1706@hotmail.fr |
a21849878fa7346643fd1c3fd2988f17afbf22d3 | 496d3438c33196bc62a15a009cc892b69bef3fd6 | /hataripy/modflow/mflak.py | 5a6bfd06997f17d55370f0c2471059eb90381df9 | [
"MIT"
] | permissive | hatarilabs/hataripy | 9cb7749a93a5f35a71a4ee4538ce4686e13c3b77 | 7db7869f34b875c9f76d42b7a4801b0c23738448 | refs/heads/master | 2021-11-23T08:06:39.912715 | 2019-10-18T20:09:55 | 2019-10-18T20:09:55 | 216,093,522 | 4 | 1 | MIT | 2021-11-16T21:11:54 | 2019-10-18T19:27:15 | Python | UTF-8 | Python | false | false | 36,265 | py | """
mflak module. Contains the ModflowLak class. Note that the user can access
the ModflowLak class as `hataripy.modflow.ModflowLak`.
Additional information for this MODFLOW package can be found at the `Online
MODFLOW Guide
<http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/lak.htm>`_.
"""
import sys
import numpy... | [
"hatariresearchlabs@gmail.com"
] | hatariresearchlabs@gmail.com |
b26d06dde80d567e24e34183056a3692d2ad71a6 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/podong/main.py | 7c2e04b50e2e08dbbef41eab4bada190c69404eb | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 3,293 | py |
import sys
import random
import math
from itertools import count, islice
in_filename = 'example.in'
#in_filename = 'B-small-attempt0.in'
#in_filename = 'A-large-practice.in'
#in_filename = 'B-large.in'
out_filename = 'example.out'
#out_filename = 'B-small-attempt0.out'
#out_filename = 'A-large-pract... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
e29cdb2ba2ede26694c2338f36f5e9bd0c4b4922 | 48b21dc5774298246aa33876087a26bad749106b | /poradnia/letters/migrations/0009_auto_20160409_2334.py | b4c295a940c6862101a30f38c2bdc3ebde385de4 | [
"MIT"
] | permissive | gitter-badger/poradnia | aae948448751f78e6d9ff523ff6aea4ab713c91c | a9ff0bfd14a384f8ed097f289b1cd240a7ead121 | refs/heads/master | 2021-01-15T12:31:48.097771 | 2016-04-19T22:40:12 | 2016-04-19T22:40:12 | 56,742,570 | 0 | 0 | null | 2016-04-21T04:31:07 | 2016-04-21T04:31:07 | null | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-09 21:34
from __future__ import unicode_literals
from django.db import migrations, models
import letters.utils
class Migration(migrations.Migration):
dependencies = [
('letters', '0008_letter_eml'),
]
operations = [
migratio... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
0f58ee8aa861e40a4717331605398adb10d9de85 | 99dcb18a9e3ea367272f740b8cbf3c34285a0c08 | /samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_sync.py | f5dbef3c4d6e9fcff20cbe4a5dba658e87a1b0ee | [
"Apache-2.0"
] | permissive | googleapis/python-aiplatform | 926a4873f35dbea15b2fd86c0e16b5e6556d803e | 76b95b92c1d3b87c72d754d8c02b1bca652b9a27 | refs/heads/main | 2023-08-19T23:49:02.180075 | 2023-08-19T13:25:59 | 2023-08-19T13:27:27 | 298,017,988 | 418 | 240 | Apache-2.0 | 2023-09-14T21:08:33 | 2020-09-23T15:43:39 | Python | UTF-8 | Python | false | false | 1,943 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
776499053011cbebe84774a6f6356b1e822b912a | f9de081f7a637c9d315b80bb408e32cb5db27f2d | /tkspider/fetchItemDetail.py | 71cf0e675b61ca343b11b0cd11b727dab1afe1f1 | [] | no_license | byst4nder/tkspider | aadfb54ab5749448d900dd5e8628b237ce093386 | 059fb3c183c6bfd11b6097747f08bc07ce155cc6 | refs/heads/master | 2020-03-11T07:16:17.757978 | 2018-03-29T15:21:29 | 2018-03-29T15:21:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,947 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
'''
Created on 2015年3月25日
@author: evil
'''
'''
curl 'https://detail.m.tmall.com/item.htm?id=527098750576' \
-H 'accept-encoding: gzip, deflate, br' \
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8' \
-H 'upgrade-insecure-requests: 1' \
-H 'user-agent: Mozilla/... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
344417030831dc4abfc13bdebbb292c4e2818082 | 68201ead20354de7b368e1f31bdc3a4a32a5f704 | /example1/example1.py | 78a3284100242874948d1a40290c945c14e6a5e0 | [] | no_license | shanhaiying/Py-Tex-automation-example | 031e7e0b767081d938710e55669c06b3cfe29867 | 1d6476997780826cf1d5006eed1782abe1460b31 | refs/heads/master | 2020-05-15T13:17:09.615845 | 2016-12-20T21:28:13 | 2016-12-20T21:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import pandas as pd
import utils
product_data = pd.read_excel('./test_data.xls', index_col='Index')
categories = product_data['Category'].unique()
nested_product_list = {k:product_data[product_data['Category']==k].T.to_dict() for k in categories}
template = utils.get_template('./example1_template.tex')
variable_dic... | [
"a.kuederle@gmail.com"
] | a.kuederle@gmail.com |
2b95b030b9f438fbb36f907f5de3ff7f89eb819b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02928/s533992587.py | 367afcc342c797985fd5eb63939c0d11dad12112 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | # jsc2019-qualB - Kleene Inversion
class BIT: # Binary Indexed Tree (Fenwick Tree)
def __init__(self, lim):
self.size = lim
self.tree = [0] * (lim + 1) # 1-idx
def add(self, i, x): # add x to tree[i], O(logN)
while i <= self.size:
self.tree[i] += x
i += i & -i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cd08fd7c53f1375b006856d7836f181a3827ab33 | 6c76f4ff1128363abb634881bb5bff8bdacfc543 | /July2020/Week1/Plus One.py | e20335e4effff9beffe187932a7435a76a9ebf1f | [] | no_license | komalupatil/30-Day-LeetCoding-Challenge | f27660f1984ff05c9bfc3a085b1a6a1b166e46cb | b04cf62d05e4f6b3dc91068a1e293386d0298900 | refs/heads/master | 2021-05-23T02:02:31.023675 | 2020-10-05T00:28:57 | 2020-10-05T00:28:57 | 253,184,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #Problem 6
#Given a non-empty array of digits representing a non-negative integer, plus one to the integer.
#The digits are stored such that the most significant digit is at the head of the list, and each element in the array contain a single digit.
#You may assume the integer does not contain any leading zero, excep... | [
"ku.patil31@gmail.com"
] | ku.patil31@gmail.com |
07856e4f613f5d71e32aaa3302bb27cc9a779649 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210202110036.py | c2ce3a7ef2a42e766435ddcf4286e233db6dc16b | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,589 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# 东方财富网 首发申报
import re
import pickle
from datetime import datetime, timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
from bs4 import BeautifulSoup
import configparser
from pathlib import Path
from utils import save_pickle... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
09938f9c1f2e1b15b1682ac22136d5e05b11afed | 35b1cd202bb691aa92d263af5a8516822f80be93 | /models.py | 532e8be49dd9fcfb868b26bb4c32c383da1a735c | [
"MIT"
] | permissive | KaiyangZhou/pytorch-vsumm-reinforce | e728114e5f5bee01b5dfbbc7f897d71df0d980ea | 041606fec8e2ba7f4c4900064a76d965a473e53c | refs/heads/master | 2023-07-10T13:12:38.822724 | 2021-11-30T01:29:18 | 2021-11-30T01:29:18 | 130,244,363 | 460 | 157 | MIT | 2023-06-23T06:07:33 | 2018-04-19T16:36:11 | Python | UTF-8 | Python | false | false | 746 | py | import torch
import torch.nn as nn
from torch.nn import functional as F
__all__ = ['DSN']
class DSN(nn.Module):
"""Deep Summarization Network"""
def __init__(self, in_dim=1024, hid_dim=256, num_layers=1, cell='lstm'):
super(DSN, self).__init__()
assert cell in ['lstm', 'gru'], "cell must be ei... | [
"k.zhou@qmul.ac.uk"
] | k.zhou@qmul.ac.uk |
e9af912c9329ca875811ca186ab7bac3b38c9280 | bbeae4a0054a4ad85c7818e32ec22d5a674f0041 | /idaes/generic_models/properties/core/pure/tests/test_RPP.py | d1f31db211ca08300146540a36235332e4285052 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bhattade/idaes-pse | a1785af05f799ba9f617ae8aa4cb4e2856709c62 | 190d097b9594ee5fcbe7bb9e47212264f277893e | refs/heads/master | 2021-03-22T08:28:25.470204 | 2020-03-07T00:09:18 | 2020-03-07T00:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,774 | py | ##############################################################################
# Institute for the Design of Advanced Energy Systems Process Systems
# Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the
# software owners: The Regents of the University of California, through
# Lawrence Berkeley N... | [
"KSBeattie@lbl.gov"
] | KSBeattie@lbl.gov |
26dc2de046f5a9c9d840234642a7b02622f3f63b | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/terminal/gwt/server/gae_application_servlet.py | 85d0a8aff8dfafd325666673af6deff33a751a25 | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py |
from gaesessions import get_current_session
from muntjac.terminal.gwt.server.application_servlet import ApplicationServlet
from muntjac.terminal.gwt.server.abstract_application_servlet import RequestType
from muntjac.util import totalseconds
class GaeApplicationServlet(ApplicationServlet):
SID = '0ce25c442d1... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
200140dc18746e4cfdbe73c9f62d9530c24728d2 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_internal/utils/deprecation.py | 0beaf74ba7d9d13b001addda59dddb91bb19f4ea | [
"MIT"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 3,044 | py | """
A module that implements tooling to enable easy warnings about deprecations.
"""
from __future__ import absolute_import
import logging
import warnings
from pip._vendor.packaging.version import parse
from pip import __version__ as current_version
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_... | [
"354142480@qq.com"
] | 354142480@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.