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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
933b59e302f98e982ead78cbe8328132cfbe6402 | 6f04a6ef99c581ed2f0519c897f254a7b63fb61d | /rastervision/utils/zxy2geotiff.py | 80210424cc55d2fa376a4eef16bfa35762587c46 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | dgketchum/raster-vision | 18030c9a8bfe99386aa95adbf8e3ec51d204947f | fe74bef30daa5821023946576b00c584ddc56de8 | refs/heads/master | 2020-08-30T13:56:08.598240 | 2019-11-03T17:38:33 | 2019-11-03T17:38:33 | 218,400,435 | 3 | 1 | NOASSERTION | 2019-10-29T23:09:57 | 2019-10-29T23:09:57 | null | UTF-8 | Python | false | false | 7,481 | py | import tempfile
from PIL import Image
import numpy as np
import click
import mercantile
import rasterio
from rasterio.windows import Window
import pyproj
from rastervision.utils.files import (download_if_needed, get_local_path,
upload_or_copy)
from rastervision.command.aux.cogify... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
30459cc5e6a093410d325a173ea9cba76452b99a | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/HotelSoldOrdersIncrementGetRequest.py | 08229a2b1227b49f5b2a06b967fb59b0da52b1e9 | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | '''
Created by auto_sdk on 2015-01-20 12:44:31
'''
from top.api.base import RestApi
class HotelSoldOrdersIncrementGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.end_modified = None
self.need_guest = None
self.need_message = None
... | [
"yangwenjin@T4F-MBP-17.local"
] | yangwenjin@T4F-MBP-17.local |
24bce9adfd9986c448487e74e16658ad17c265dd | 786de89be635eb21295070a6a3452f3a7fe6712c | /poster/tags/V00-00-01/SConscript | b190c174d8a3bdc4f9abefb1be153557a06627e1 | [] | 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 | 1,985 | #------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package poster
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file for... | [
"salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
9217751689c20a44cbffa776fd1f9c8aabb36593 | 5a396f14b3689273aaf1a6e20dcb0853d78a9f04 | /GetSharedWithDomainTeamDriveACLs.py | 0c114d9b0daa023ea4ef045d01a424197485f1cf | [] | no_license | NosIreland/GAM-Scripts3 | 642b4dd827189352afd8357a41b576d6acf159bc | de3ee3007e6906c5b6d28fef8aea27827646db00 | refs/heads/master | 2023-03-04T21:58:44.594405 | 2021-02-18T14:39:20 | 2021-02-18T14:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,744 | py | #!/usr/bin/env python3
"""
# Purpose: For a Google Drive User(s), delete all drive file ACLs for Team Drive files shared with a list of specified domains
# Note: This script requires Advanced GAM:
# https://github.com/taers232c/GAMADV-XTD3
# Customize: Set DOMAIN_LIST and DESIRED_ALLOWFILEDISCOVERY
# Python: Use python... | [
"ross.scroggs@gmail.com"
] | ross.scroggs@gmail.com |
dc5f47e41dd896ee44f05aa76d5189db027ffe70 | d2c4151eff768af64946ababc2e41c13d8973cd3 | /ABC146/a.py | c10b5d53d83522345cefe135c52ff627ef03099c | [] | no_license | Intel-out-side/AtCoder | 2de19b71981247135432aed2d6d9c2a16c3ab7f0 | 0c419d2df15fff02032432cb1b1323612484e16e | refs/heads/master | 2022-06-23T04:21:12.886072 | 2022-06-13T14:39:07 | 2022-06-13T14:39:07 | 235,240,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py |
week = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
day = str(input())
if day == "SUN":
result = 7
else:
result = week.index("SUN") - week.index(day)
print(result)
| [
"so.eng.eng.1rou@gmail.com"
] | so.eng.eng.1rou@gmail.com |
cf6a0c4833d16887ee9ee3e5afefb8ed33431c13 | eacff46eda2c6b509449979a16002b96d4645d8e | /Collections-a-installer/community-general-2.4.0/tests/integration/targets/launchd/files/ansible_test_service.py | 87a23fc47d816bb4b2deacd93a3bcfb45fbf1a9f | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | d-amien-b/simple-getwordpress | 5e6d4d15d5f87124ab591e46b63fec552998fdc3 | da90d515a0aa837b633d50db4d91d22b031c04a2 | refs/heads/master | 2023-04-08T22:13:37.347545 | 2021-04-06T09:25:51 | 2021-04-06T09:25:51 | 351,698,069 | 0 | 0 | MIT | 2021-03-31T16:16:45 | 2021-03-26T07:30:00 | HTML | UTF-8 | Python | false | false | 594 | py | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import sys
if __name__ == '__main__':
if sys.version_info[0] >= 3:
import http.server
import socketserver
PORT = int(sys.argv[1])
Handler = http.server.SimpleHTTPRequestHand... | [
"test@burdo.fr"
] | test@burdo.fr |
4cbf6e3fcafd24fc240850a479e41ddfe6d770ac | d5b339d5b71c2d103b186ed98167b0c9488cff09 | /marvin/cloudstackAPI/deleteCondition.py | e6c1d13261e1a92194f4e5a345cf1351557e1bd8 | [
"Apache-2.0"
] | permissive | maduhu/marvin | 3e5f9b6f797004bcb8ad1d16c7d9c9e26a5e63cc | 211205ae1da4e3f18f9a1763f0f8f4a16093ddb0 | refs/heads/master | 2020-12-02T17:45:35.685447 | 2017-04-03T11:32:11 | 2017-04-03T11:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """Removes a condition"""
from baseCmd import *
from baseResponse import *
class deleteConditionCmd (baseCmd):
typeInfo = {}
def __init__(self):
self.isAsync = "true"
"""the ID of the condition."""
"""Required"""
self.id = None
self.typeInfo['id'] = 'uuid'
self... | [
"int-mccd_jenkins@schubergphilis.com"
] | int-mccd_jenkins@schubergphilis.com |
9fe7a328b27380a9afc1f19106fa9edd8aa1033c | 21208873652ce9a35035801cea488004e337b07b | /data_loader/__init__.py | 784c4dc41287ec0e8680637c3b93983f20eae44f | [
"Apache-2.0"
] | permissive | zlszhonglongshen/crnn.pytorch | 55321a6764a6143be7ab9d2c6b3bcafcdd9470e7 | bf7a7c62376eee93943ca7c68e88e3d563c09aa8 | refs/heads/master | 2022-11-07T22:57:28.983335 | 2020-06-19T03:01:35 | 2020-06-19T03:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | # -*- coding: utf-8 -*-
# @Time : 18-11-16 下午5:46
# @Author : zhoujun
import copy
from torch.utils.data import DataLoader
from torchvision import transforms
def get_dataset(data_path, module_name, transform, dataset_args):
"""
获取训练dataset
:param data_path: dataset文件列表,每个文件内以如下格式存储 ‘path/to/img\tlabel’... | [
"572459439@qq.com"
] | 572459439@qq.com |
b8954b6cea35abb939ed06c8276b23e8b81f83d3 | b2e340f22a7f613dc33ea361ba87a393d65b723c | /LogicAnalyzer/config/config.py | f19d2b4e3d649ece283274df9b734d2dc8094f99 | [
"MIT"
] | permissive | CospanDesign/logic-analyzer | 6369cfc423f3fae050f9ab784a6ae94003422654 | 284ea339c001b4845a46fcb0672511487271c9c3 | refs/heads/master | 2021-01-20T18:58:53.477152 | 2016-06-24T02:22:04 | 2016-06-24T02:22:04 | 61,488,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,335 | py | import logging
import json
TRIGGER = "trigger"
TRIGGER_MASK = "trigger_mask"
TRIGGER_EDGE = "trigger_edge"
TRIGGER_BOTH_EDGE = "both_edges"
TRIGGER_REPEAT = "repeat"
TRIGGER_AFTER = "trigger_after"
CAPABILITY_NAMES = [
TRIGGER,
TRIGGER_MASK,
TRIGGER_EDGE,
TRIGGER_BOTH_EDGE,
TRI... | [
"cospan@gmail.com"
] | cospan@gmail.com |
1935bfa537c5f257092b4e5689d56e2394be68bb | a09c10c29478fed167c94d83d5dff9371f9a1680 | /Client.py | ec5149235aa6288eed9ea16cd6590f770fc45567 | [] | no_license | batra98/Distributed-Web-Cache | 83e208689b18b95724dd0ba657b4ef89e9054d2a | 7e08dfe4dd6739c779c59da3ab7301f3cb33af6a | refs/heads/master | 2022-11-28T05:21:33.220922 | 2020-08-07T10:15:32 | 2020-08-07T10:15:32 | 285,793,260 | 2 | 0 | null | 2020-08-07T09:41:56 | 2020-08-07T09:41:56 | null | UTF-8 | Python | false | false | 1,157 | py | import socket
import sys
def send(ip, port, message):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((ip, port))
try:
sock.sendall(bytes(message, 'ascii'))
response = str(sock.recv(1024), 'ascii')
print("Received: {}".format(response))
return r... | [
"sarthak.singhal@students.iiit.ac.in"
] | sarthak.singhal@students.iiit.ac.in |
02745dd02ec7954ea531da8ddfb292e43a976771 | 8a102033a266d39128e4b64aa0780cf67055e196 | /1330.py | 3fe9a718323d5727aeb4c2c1501dafb25b860ada | [] | 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 | 129 | py | # coding: utf-8
a, b = map(int, input().split())
if a > b:
print('>')
if a < b:
print('<')
if a == b:
print('==')
| [
"blacksangi14@naver.com"
] | blacksangi14@naver.com |
bf91de8bc79c94d76bf93ea0cc534b567dc2e161 | 4d9bd7874fc5a4f2ec56bb172f4e93a9601c4c83 | /main.py | 4864dd4bbecc043b09c96f4fb427a06e03a0c031 | [] | no_license | liziniu/Model-Uncertainty-in-Neural-Networks | ff65009b3c165c4fd82efb9759cb26d41f914a2e | 67c6042c52dd7e7a918ab42d34764bbb9a88c8a2 | refs/heads/master | 2020-05-04T00:26:47.315086 | 2019-04-06T03:19:47 | 2019-04-06T03:19:47 | 178,884,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | from model1.default import get_config
from model1.model import Model
from utli import load_data, get_session, update_para
import argparse
def arg_parse():
parser = argparse.ArgumentParser()
parser.add_argument("--model", type=int, default=1)
parser.add_argument("--epochs", type=int, default=100)
parse... | [
"374387855@qq.com"
] | 374387855@qq.com |
014a6b6fc7c93c425ce7da5ad70dfce4b7273ee8 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/largestTime_20200903122053.py | 697fb00998e96926352a6433e5a6da6d088d57dd | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from itertools import permutations
def Time(A):
# getting the different permutations
# get the one that falls between 0000 and 2359
# then place the semi colon in the proper place
# otherwise return an empty string
A = [str(i) for i in A]
perm = permutations(A)
newArray = []
for i... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
47213a723487f5382748a8d76a7546ee674ea1f5 | a26d91163fe40924c7c4f9d94fcd973989b68983 | /watchlist_app/migrations/0003_alter_movie_description.py | bed775bad8d30539b2b34f84c48a3511902e2b22 | [] | no_license | rcoffie/Django-Rest-Tut | a840ecb838098ed2d525c1b5321f042e0d29c5fb | 9925bfb11b92a49aa6973e3929b2d05d9528ee27 | refs/heads/master | 2023-08-25T06:43:41.019767 | 2021-10-27T15:27:06 | 2021-10-27T15:27:06 | 409,567,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.2.5 on 2021-09-23 11:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('watchlist_app', '0002_rename_movies_movie'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='descr... | [
"rcoffie22@yahoo.com"
] | rcoffie22@yahoo.com |
9207f63b377b4990be34f2882127edcd256361e6 | 70e1d7c3e375ecff09df36e5a4ceda5691221968 | /tmp.py | 1936e8cb7425e44fc01199bc2937e82f0e03ce0a | [
"Apache-2.0"
] | permissive | doublechenching/ship_detection | 5b91aa4a7fbe6eb5a88389d1a517641a53740890 | 1ba4926e0d28043863df05ae8afc3d5b336b350d | refs/heads/master | 2020-04-06T17:53:23.855070 | 2018-11-15T08:47:02 | 2018-11-15T08:47:02 | 157,676,999 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | Nucleoplasm 12885 0.25
Cytosol 8228 0.16
Plasma membrane 3777 0.07
Nucleoli 3621 0.07
Mitochondria 2965 0.06
Golgi apparatus 2822 0.06
Nuclear bodies 2513 0.05
Nuclear spe... | [
"vichenqin@gmail.com"
] | vichenqin@gmail.com |
49125a103d0ef8ad23344162256cf34b29c740c5 | 5c0506e42fc7f0325728994223f1b0be4f1187fc | /summa_py_textrank.py | 2fd1d59fa66724ab7ba0f6a9607be02ff57006a6 | [] | no_license | Trevahok/summarizer | 602d492385c3130c6c9f11dd82e71177541ede73 | cfd134e79ec5dfac3530081c6863421ab667207d | refs/heads/master | 2020-03-19T20:36:21.680650 | 2018-06-12T06:54:36 | 2018-06-12T06:54:36 | 136,908,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from urllib.request import urlopen
from summa.summarizer import summarize
from sys import argv
from bs4 import BeautifulSoup as bs
import PyPDF2
def from_link():
page=urlopen(argv[1])
soup=bs(page,'lxml')
text=soup.find_all('p')
text='\n'.join([ i.text for i in text])
print(summarize(text,ratio=0.2... | [
"vighneshss@gmail.com"
] | vighneshss@gmail.com |
c9708fe103af2012e13994b656c45ba4a852077c | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/8kyu-interpreters-hq9-plus/Python/solution1.py | bdd53cce40278d9d04a75b8b2e61e0cc09d79511 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # Python - 3.6.0
gets = lambda i: 's' if i != 1 else ''
HQ9 = {
'H': 'Hello World!',
'Q': 'Q',
'9': '\n'.join(
f'{i} bottle{gets(i)} of beer on the wall, {i} bottle{gets(i)} of beer.\nTake one down and pass it around, {i - 1 if i > 1 else "no more"} bottle{gets(i - 1)} of beer on the wall.' for i i... | [
"d79523@hotmail.com"
] | d79523@hotmail.com |
703a8e40bd746970ed7d5c2e13f250617fe1a660 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s746022410.py | 9331bad8a322a0b5502729d4fc4e2aa050191d05 | [] | 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,135 | py | import math,itertools,fractions,heapq,collections,bisect,sys,queue,copy
sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7
dd=[(-1,0),(0,1),(1,0),(0,-1)]
ddn=[(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]
def LI(): return [int(x) for x in sys.stdin.readline().split()]
# def LF(): return [float(x) for x in s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b2432c7ce576836fc769e1c9a990bb2a1b00d91c | ef243d91a1826b490e935fa3f3e6c29c3cc547d0 | /cv2/cv2/MergeExposures.py | 7d68ec4c5e8da4d27c6ad8ddb544c23ea3973a7e | [] | no_license | VentiFang/Python_local_module | 6b3d0b22399e817057dfd15d647a14bb1e41980e | c44f55379eca2818b29732c2815480ee755ae3fb | refs/heads/master | 2020-11-29T11:24:54.932967 | 2019-12-25T12:57:14 | 2019-12-25T12:57:14 | 230,101,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | # encoding: utf-8
# module cv2.cv2
# from F:\Python\Python36\lib\site-packages\cv2\cv2.cp36-win_amd64.pyd
# by generator 1.147
""" Python wrapper for OpenCV. """
# imports
import cv2.cv2 as # F:\Python\Python36\lib\site-packages\cv2\cv2.cp36-win_amd64.pyd
import cv2.Error as Error # <module 'cv2.Error'>
import cv2.cu... | [
"5149528+ventifang@user.noreply.gitee.com"
] | 5149528+ventifang@user.noreply.gitee.com |
d40d4c0886ebeb7c5e6c46de7f421799756c92b7 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_318/ch23_2019_03_27_15_00_44_973644.py | e268beaac58b3819e4295d3aa5d048c89b2d4156 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | def verifica_idade(x):
if(x>20):
print("Liberado EUA e BRASIL")
return x
if(x<21 and x>17):
print("Liberado BRASIL")
return x
if(x<18):
print("Nao esta liberado")
return x | [
"you@example.com"
] | you@example.com |
3f982e8a36a779567542f4c382cd555febeef961 | ed10dc841d5b4f6a038e8f24f603750992d9fae9 | /lldb/test/API/lang/objc/foundation/TestFoundationDisassembly.py | bf9a40fc8da9b49c77e740cb835ab78aef313bfc | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | WYK15/swift-Ollvm10 | 90c2f0ade099a1cc545183eba5c5a69765320401 | ea68224ab23470963b68dfcc28b5ac769a070ea3 | refs/heads/main | 2023-03-30T20:02:58.305792 | 2021-04-07T02:41:01 | 2021-04-07T02:41:01 | 355,189,226 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,449 | py | """
Test the lldb disassemble command on foundation framework.
"""
import unittest2
import os
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
@skipUnlessDarwin
class FoundationDisassembleTestCase(TestBase):
mydir = TestBase.compute_my... | [
"wangyankun@ishumei.com"
] | wangyankun@ishumei.com |
c46b8a2458a636eea1bde0cc9df07da0126d1e1c | 0c13891448e6c3136e2f651c776d1d11edee2577 | /src/template_method.py | 91d30a13953d467cfa30df4a7500ae59f97997f2 | [
"MIT"
] | permissive | MrRezoo/design-patterns-python | 31cb7b73ae05c5bd361eb3455df234c20529f465 | 8f8e2501ad8e05f1a75ce5be659d926c0ec99698 | refs/heads/master | 2023-08-01T22:01:01.186910 | 2021-10-02T07:57:49 | 2021-10-02T07:57:49 | 349,936,987 | 8 | 1 | MIT | 2021-04-07T14:55:10 | 2021-03-21T08:13:44 | Python | UTF-8 | Python | false | false | 1,178 | py | """
Behavioral pattern:
Template method
Example:
when we have static job between several classes use one ABC class
"""
from abc import ABC, abstractmethod
class Top(ABC):
def template_method(self):
self.first_common()
self.second_common()
self.third_require()
... | [
"rezam578@gmail.com"
] | rezam578@gmail.com |
c2d75f8bbadf428b1d890435ae40bd179a74edc5 | 1d1a21b37e1591c5b825299de338d18917715fec | /ML,DL, RL/Machine Learning/ml/m42_xgb_qpu.py | 477dafeb04fe720c755d988a9fb2f21ae8325e6c | [] | no_license | brunoleej/study_git | 46279c3521f090ebf63ee0e1852aa0b6bed11b01 | 0c5c9e490140144caf1149e2e1d9fe5f68cf6294 | refs/heads/main | 2023-08-19T01:07:42.236110 | 2021-08-29T16:20:59 | 2021-08-29T16:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | # XGBoost
# tree_method = 'gpu_hist' : cPU 대신, 실행을 시켰을 때 전체 GPU는 활동을 안하는데 CUDA만 활동
# predictor='gpu_predictor' : GPU로 예측 수행
# predictor='cpu_predictor' : CPU로 예측 수행
# gpu_id=0 : GPU 선택하여 처리
from xgboost import XGBClassifier, XGBRegressor
from sklearn.datasets import load_boston
from sklearn.model_selection import trai... | [
"jk04059@naver.com"
] | jk04059@naver.com |
47b74b1775ebe7c948754a92b962e1cee4c592e8 | 4d327de5447519d3c00e6572f74362380783006f | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/rankedBattles/RankedBattlesCalendarPopover.py | 1597d3315544c1d1c8513bc4b036cfea883af256 | [] | no_license | XFreyaX/WorldOfTanks-Decompiled | 706ac55d919b766aa89f90c97a75672bf2142611 | 5025466edd0dd3e5e50a6c60feb02ae793f6adac | refs/heads/master | 2021-09-21T15:10:32.655452 | 2018-08-28T07:34:00 | 2018-08-28T07:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,129 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/rankedBattles/RankedBattlesCalendarPopover.py
from datetime import datetime
import BigWorld
from gui.Scaleform.locale.COMMON import COMMON
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
f9a929408b32170e178231ad8907c38aa8647599 | 9cef4ef20efd0eec18846242e78be0b9be144c30 | /teacher_cade/day19/14.greenlet.py | e2d537f9ff67e3f0659a5afb381d8128caa9ab71 | [] | no_license | Vaild/python-learn | 4e6511a62a40b6104b081e0f8fe30f7d829901f5 | 5d602daf3b4b7e42349b7d9251df1f4dd62c299c | refs/heads/master | 2022-11-19T00:47:48.808384 | 2020-07-20T14:27:49 | 2020-07-20T14:27:49 | 279,044,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/python3
# coding=utf-8
from greenlet import greenlet
import time
def test1():
while True:
print("---A--")
gr2.switch()
time.sleep(0.5)
def test2():
while True:
print("---B--")
gr1.switch()
time.sleep(0.5)
gr1 = greenlet(test1)
gr2 = greenlet(test2... | [
"cubersongwenbo@gmail.com"
] | cubersongwenbo@gmail.com |
5cae4351928b729521bafe551e04ae158fbbd2f3 | d60acaac9e460c5693efe61449667b3c399c53c8 | /diffeq/logisticbifurcation.py | 392cc43dfa415350c9c23054e6d5784488977d9c | [] | no_license | HussainAther/mathematics | 53ea7fb2470c88d674faa924405786ba3b860705 | 6849cc891bbb9ac69cb20dfb13fe6bb5bd77d8c5 | refs/heads/master | 2021-07-22T00:07:53.940786 | 2020-05-07T03:11:17 | 2020-05-07T03:11:17 | 157,749,226 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | import matplotlib.pyplot as plt
import numpy as np
"""
Logistic map bifurcation
"""
def logistic(r, x):
"""
Logistic map function for nonlinear systems
"""
return r * x * (1 - x)
x = np.linspace(0, 1)
fig, ax = plt.subplots(1, 1)
ax.plot(x, logistic(2, x), "k")
def plotsystem(r, x0, n, ax=None):
... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
9bc70906c5a573ba42746d4a2f4efbf81e0e86c1 | 98f730ec6a43d8be4a34b0f2a44a9d35989d2287 | /pynifi_client/models/tenants_entity.py | b4af3df3c70dc03de0e1a0bfb4fb63eb26b9a058 | [] | no_license | scottwr98/pynifi-client | 9337a4f322536ee466d419a788b8b5948cdc62d7 | 013ac2ffa591284a0d6cbb9ed552681cc6f91165 | refs/heads/master | 2020-04-18T08:47:03.680749 | 2017-11-04T23:59:58 | 2017-11-04T23:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,219 | py | # coding: utf-8
"""
NiFi Rest Api
The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | [
"ajish@rootedinsights.com"
] | ajish@rootedinsights.com |
b0391f312af0eaea6305f39574b9a3f17f511b59 | b1e7481f8b5bf40c2547c95b1863e25b11b8ef78 | /Kai/crab/NANOv7_NoveCampaign/2018/crab_cfg_2018_ElMu_A.py | 6670c230a950ef43e35c8eec67ec84cd44951904 | [
"Apache-2.0"
] | permissive | NJManganelli/FourTopNAOD | 3df39fd62c0546cdbb1886b23e35ebdc1d3598ad | c86181ae02b1933be59d563c94e76d39b83e0c52 | refs/heads/master | 2022-12-22T22:33:58.697162 | 2022-12-17T01:19:36 | 2022-12-17T01:19:36 | 143,607,743 | 1 | 1 | Apache-2.0 | 2022-06-04T23:11:42 | 2018-08-05T11:40:42 | Python | UTF-8 | Python | false | false | 1,524 | py | import os
from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromCRIC
config = Configuration()
config.section_("General")
config.General.requestName = '2018_ElMu_A'
config.General.transferOutputs = True
config.General.transferLogs = True
config.section_("JobType")
c... | [
"nicholas.james.manganelli@cern.ch"
] | nicholas.james.manganelli@cern.ch |
3fff1e8913ecade61c264485b8d0d2ab2e8f1eef | ff768174490619c119d166273365dcc480e7201c | /tuiuiu/tuiuiuimages/migrations/0008_image_created_at_index.py | dbcc329edff45d13de512a5f638dee64e8a53c0d | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | caputomarcos/tuiuiu.io | 15ea9323be09b69efb6b88490c2bb558ffb4cc55 | d8fb57cf95487e7fe1454b2130ef18acc916da46 | refs/heads/master | 2022-03-02T12:56:43.889894 | 2017-09-23T22:53:51 | 2017-09-23T22:53:51 | 102,543,365 | 3 | 1 | NOASSERTION | 2022-02-02T10:46:32 | 2017-09-06T00:30:06 | Python | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tuiuiuimages', '0007_image_file_size'),
]
operations = [
migrations.AlterField(
model_name='image',
... | [
"caputo.marcos@gmail.com"
] | caputo.marcos@gmail.com |
311abd6f195d36542f90a27ae366b5bbe1325dd5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02586/s677278751.py | be1ac288360753caa4fa9d68ee573cb35be6d292 | [] | 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 | 879 | py | import sys
sys.setrecursionlimit(10**7)
readline = sys.stdin.buffer.readline
def readstr():return readline().rstrip().decode()
def readstrs():return list(readline().decode().split())
def readint():return int(readline())
def readints():return list(map(int,readline().split()))
def printrows(x):print('\n'.join(map(str,x)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
14c287e40ef9f07fe3dd6944c53d3460a99de7cb | 85b7487c00cabf70cbcf180c5015ac4886e78fb1 | /test/support/__init__.py | bdbdb8f5f19075bc664a148dbdf532d577c3550c | [] | no_license | mkatsimpris/test_jpeg | 7e686f27ac54db4128f4edbeb42b7cd284db0fa4 | ee626d87e26a08d5ce80f73a883f00703ff34e70 | refs/heads/master | 2020-04-06T04:49:58.952565 | 2016-08-17T21:41:25 | 2016-08-17T21:41:25 | 49,828,665 | 3 | 2 | null | 2016-07-25T16:50:52 | 2016-01-17T17:58:21 | Verilog | UTF-8 | Python | false | false | 254 | py |
from __future__ import absolute_import
from .jpeg_prep_cosim import prep_cosim
from .jpeg_v1_intf import JPEGEncV1
from .jpeg_v2_intf import JPEGEncV2
from .jpegenc_v1_top import convert as convertv1
from .utils import set_default_args, get_cli_args
| [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
19f97b46e444e83a2f72744a9002611efe7ccf0a | 69e5676a801c5446ddec5e1cfd8daf527dbb3ab9 | /stringcheese/wrangling/get_fficutout.py | 917178ace1351e624d1dfa092c3a7e383136a123 | [
"MIT"
] | permissive | lgbouma/stringcheese | 96d8d48aaa8da9da92744401bba5498399758636 | e7f5919335f18d54f331e67f4df1a48e4904526d | refs/heads/master | 2020-07-07T10:11:29.697659 | 2020-03-29T19:05:52 | 2020-03-29T19:05:52 | 203,321,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import requests
from astroquery.mast import Tesscut
def get_fficutout(c_obj, cutoutdir=None, sector=None):
# c_obj (SkyCoord): location of target star
print('beginning download tesscut for {}'.format(repr(c_obj)))
try:
tab = Tesscut.download_cutouts(c_obj, size=20, sector=sector,
... | [
"bouma.luke@gmail.com"
] | bouma.luke@gmail.com |
0945e2340abb7961a09bf19356b325727714a0a7 | b92b0e9ba2338ab311312dcbbeefcbb7c912fc2e | /build/shogun_lib/examples/undocumented/python_modular/kernel_spherical_modular.py | ef002d63c31f4dc1896ca111b2223acffcd201b9 | [] | no_license | behollis/muViewBranch | 384f8f97f67723b2a4019294854969d6fc1f53e8 | 1d80914f57e47b3ad565c4696861f7b3213675e0 | refs/heads/master | 2021-01-10T13:22:28.580069 | 2015-10-27T21:43:20 | 2015-10-27T21:43:20 | 45,059,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from tools.load import LoadMatrix
from numpy import where
lm=LoadMatrix()
traindat = lm.load_numbers('../data/fm_train_real.dat')
testdat = lm.load_numbers('../data/fm_test_real.dat')
parameter_list=[[traindat,testdat, 1.0],[traindat,testdat, 5.0]]
def kernel_spherical_modular (fm_train_real=traindat,fm_test_real=te... | [
"prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305"
] | prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305 |
ec1e5dbc338ecf43d1bd53ded885b1450fb0c5be | da570c2047d335b3553e63c27ac7f60b57b28b7e | /images/urls.py | 6c3df5aaf6b9ca607cd5fbcabe80ae605ee575b6 | [
"MIT"
] | permissive | mfannick/viewImages | 8c799fc52566de03f4909d36f5ccc50e7fff9564 | 27e447faff455fba306ef3e677d5f2f63160065e | refs/heads/master | 2021-09-09T11:53:42.786004 | 2019-10-14T09:21:16 | 2019-10-14T09:21:16 | 214,357,014 | 0 | 0 | null | 2021-09-08T01:21:15 | 2019-10-11T06:11:06 | Python | UTF-8 | Python | false | false | 425 | py | from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
url('^$' ,views.homePage,name='homePage'),
url(r'^search/', views.searchImageByCategory, name='searchImageByCategory'),
url(r'^description/(\d+)',views.imageDescrip... | [
"mfannick1@gmail.com"
] | mfannick1@gmail.com |
546d674261f3df935f47d76c22d816e02e5c5599 | 4e0ee2b68398a90b0986975f645350033a624558 | /tests/onnx_resnet18/test_onnx_resnet18_int8.py | 5c23ade3f33cd92e177415de06a1d717c36ea894 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kindsenior/nngen | 697b80b32cf2b33e7f2c64e4d1a27eb2d739b30c | 301b19b35e50174d8abb1a757b061ae80cdfe612 | refs/heads/master | 2022-09-21T05:53:34.565461 | 2020-05-03T14:58:19 | 2020-05-03T14:58:19 | 269,007,213 | 0 | 0 | Apache-2.0 | 2020-06-03T06:26:43 | 2020-06-03T06:26:42 | null | UTF-8 | Python | false | false | 2,129 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import sys
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))))
import nngen as ng
import veriloggen
import onnx_resnet18
act_dt... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
0c537c7a76a12d5ad4b319e5ecd8695d74b3b0f6 | 5c5458622ab8413fef8ab11ef5e09dcdcd42ff69 | /1.py | ad47b2fba1e02ef70d242917fbf7c8954a6efe8d | [] | no_license | zhenyakeg/Console | 127fbbfe33cf86a0e4d5eb968c783407168364f5 | 31eea7a22a95701049872d4da2c01307f05e920d | refs/heads/master | 2021-01-13T10:06:17.797796 | 2016-10-27T17:59:03 | 2016-10-27T17:59:03 | 72,119,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | __author__ = 'student'
# импортируем модуль
import sys
# выводим на экран список всех аргументов
s=0
for arg in sys.argv:
if len(arg) == 3:
s+=1
print (s) | [
"egor.rozinskiy@mail.ru"
] | egor.rozinskiy@mail.ru |
ed817dc1416c6f9ee3bd63420344cf905981be76 | f8b77d8b7d90dabfa3b222116d9fe462d890e89b | /plans/fixed_ensemble_resnet_linear_4.py | 53480a497b356b8478b73ceacb2478cfd372a96e | [
"BSD-2-Clause"
] | permissive | dbis-uibk/MediaEval2021 | 94e4041d6e82a28ceb95c68994808d0acc725915 | 14d754d9cea36415090aaa115db81f5ace465964 | refs/heads/master | 2023-08-27T19:12:17.758042 | 2021-11-03T12:12:57 | 2021-11-03T12:12:57 | 424,210,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | """Ensemble plan manually split by type moode/theme."""
import json
from dbispipeline.evaluators import FixedSplitEvaluator
from dbispipeline.evaluators import ModelCallbackWrapper
import numpy as np
from sklearn.pipeline import Pipeline
from mediaeval2021 import common
from mediaeval2021.dataloaders.melspectrograms ... | [
"mikevo-uibk@famv.net"
] | mikevo-uibk@famv.net |
8c55b1b583c89eaaf63961ca00dde5c69b6b67c5 | 5e5799e0ccce7a72d514fbc76dcb0a2108013f18 | /Textfile2DefDomGeom.py | 710ab37655fe1cd3158b6347c04304f6a2e29644 | [] | no_license | sourcery-ai-bot/dash | 6d68937d225473d06a18ef64079a4b3717b5c12c | e1d1c3a601cd397d2508bfd4bb12bdb4e878cd9a | refs/heads/master | 2023-03-07T17:15:39.174964 | 2011-03-01T17:11:21 | 2011-03-01T17:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | #!/usr/bin/env python
#
# Use doms.txt or nicknames.txt file to create a default-dom-geometry file and
# print the result to sys.stdout
#
# URL: http://icecube.wisc.edu/~testdaq/database_files/nicknames.txt
import sys
from DefaultDomGeometry import DefaultDomGeometryReader, DomsTxtReader, \
NicknameReader
if __n... | [
"dglo@icecube.wisc.edu"
] | dglo@icecube.wisc.edu |
0365a71e6ddcbf5d739bd768676f3f793715d525 | 1799fe1d9dfcf5f9619a87a11f3fa6170e1864fc | /00998/test_maximum_binary_tree_ii.py | 44cc467d9b38a539320c803e7bc639b674e44c3e | [] | no_license | SinCatGit/leetcode | 5e52b49324d16a96de1ba4804e3d17569377e804 | 399e40e15cd64781a3cea295bf29467d2284d2ae | refs/heads/master | 2021-07-05T18:51:46.018138 | 2020-04-25T04:06:48 | 2020-04-25T04:06:48 | 234,226,791 | 1 | 1 | null | 2021-04-20T19:17:43 | 2020-01-16T03:27:08 | Python | UTF-8 | Python | false | false | 1,519 | py | import unittest
from maximum_binary_tree_ii import Solution, TreeNode
class TestSolution(unittest.TestCase):
def test_Calculate_Solution(self):
solution = Solution()
# 6
# / \
# 1 4
# / \
# 3 2
t25 = TreeNode(6)
t21 = TreeNode(... | [
"sincat@126.com"
] | sincat@126.com |
1230bd8aea0ed2cf0e02c98811fd1bca3bac9353 | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/smallestGoodBase/smallestGoodBase.py | 0fc48f86b09d916c4865349241f9dfd2a7f0a365 | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/smallest-good-base/
# Author: Miao Zhang
# Date: 2021-02-15
class Solution:
def smallestGoodBase(self, n: str) -> str:
num = int(n)
# n = 1 + k + k^2+....k^(m - 1)
# i:m
for i in range(int(mat... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
a819988d7ff2b5dd395cdf6647f534d1e2bd76d9 | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/External_Libraries/Archives/boost/tools/build/v2/test/test2.py | cb74b851f46253b5bae80ccdd8ca872abd5ef6de | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | Python | false | false | 471 | py | #!/usr/bin/python
from BoostBuild import Tester, List
from time import sleep
t = Tester()
t.set_tree("test2")
t.run_build_system("-sBOOST_BUILD_PATH=" + t.original_workdir + "/..")
file_list = 'bin/foo/$toolset/debug/runtime-link-dynamic/' * List("foo foo.o")
t.expect_addition(file_list)
t.write("foo.cpp", "int m... | [
"quhang@stanford.edu"
] | quhang@stanford.edu |
b454e42a2bc91d38dbdb4c2052da1a603fdaf6db | 4f026ddcf8f058d884f15259f0e42c2178eb2157 | /clare/clare/application/factories.py | 0dadccd763c699f4a366d61970db657bafff708f | [
"MIT"
] | permissive | dnguyen0304/roomlistwatcher | afd95e5f601f77fc8d7c4cd4307e60f36b53162c | 7ac4d5172de22dd8906662da521995c8e06c2617 | refs/heads/master | 2021-01-20T22:55:04.289589 | 2017-11-16T04:09:49 | 2017-11-16T04:09:49 | 101,829,306 | 0 | 0 | null | 2017-11-16T04:09:49 | 2017-08-30T02:38:56 | Python | UTF-8 | Python | false | false | 2,677 | py | # -*- coding: utf-8 -*-
import Queue
import os
import threading
import uuid
from . import applications
from . import download_bot
from . import room_list_watcher
class Application(object):
def __init__(self, infrastructure, properties):
"""
Parameters
----------
infrastructure ... | [
"dnguyen0304@gmail.com"
] | dnguyen0304@gmail.com |
7b11a37746ad28f3e18303de213f4beb2bbb4404 | 315450354c6ddeda9269ffa4c96750783963d629 | /CMSSW_7_0_4/src/SimTotem/RPTimingDetectorsDigiProducer/python/BeamMisalignmentFinder.py | 3ff7d944d97f722285c3413832867036093dcd54 | [] | no_license | elizamelo/CMSTOTEMSim | e5928d49edb32cbfeae0aedfcf7bd3131211627e | b415e0ff0dad101be5e5de1def59c5894d7ca3e8 | refs/heads/master | 2021-05-01T01:31:38.139992 | 2017-09-12T17:07:12 | 2017-09-12T17:07:12 | 76,041,270 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,414 | py | import ROOT
import os
import argparse
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from scipy import exp
parser = argparse.ArgumentParser(description='Finds beam misaligned between given template and misaligned ntuple')
parser.add_argument('template_file', metavar='template_f... | [
"eliza@cern.ch"
] | eliza@cern.ch |
04a0ae35c0b49d0518e6a68d481f6e317f214115 | 3a8c2bd3b8df9054ed0c26f48616209859faa719 | /Challenges/surroundedRegions.py | 570dcbb6b411e6fd035814e01998a9a4779b635f | [] | no_license | AusCommsteam/Algorithm-and-Data-Structures-and-Coding-Challenges | 684f1ca2f9ee3c49d0b17ecb1e80707efe305c82 | 98fb752c574a6ec5961a274e41a44275b56da194 | refs/heads/master | 2023-09-01T23:58:15.514231 | 2021-09-10T12:42:03 | 2021-09-10T12:42:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | """
Surrounded Regions
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's in that surrounded region.
Example:
X X X X
X O O X
X X O X
X O X X
After running your function, the board should be:
X X X X
X X X X
X X X X
X O... | [
"bennyhwanggggg@users.noreply.github.com"
] | bennyhwanggggg@users.noreply.github.com |
dece0de38d388908615b7dfa117a5a0a64cc883f | fe40fb53bdeb3d693174a57fe336503e92fe299b | /eheritage/utils.py | f8dbc0756aecfe7426966fb4198086045afbacea | [
"BSD-2-Clause"
] | permissive | uq-eresearch/eheritage | 8c8d096d43888e6e41fbbacdf55f2c6808bace27 | e4a2f01c56d438d8b3f4de63d50d979a8105d652 | refs/heads/master | 2022-07-18T19:21:53.224175 | 2016-08-05T02:40:08 | 2016-08-05T02:40:08 | 18,045,275 | 0 | 0 | BSD-3-Clause | 2022-07-06T19:49:44 | 2014-03-23T22:33:56 | HTML | UTF-8 | Python | false | false | 281 | py | from flask.json import JSONEncoder
class IterableAwareEncoder(JSONEncoder):
def default(self, o):
try:
iterable = iter(o)
except TypeError:
pass
else:
return list(iterable)
return JSONEncoder.default(self, o) | [
"damien@omad.net"
] | damien@omad.net |
a07324a9d67bfb019bf47a4e379d797eab6ed5f3 | 728f639b8d536348e200a6c6b8dfd3e70a781d85 | /HTMLTestRunner测试报告&unittest/可以复用项目/webTest/comm/common.py | 967c849ad0793853febfe741f742e28639cee19c | [] | no_license | jingshiyue/my_dict_forPython | 00adad2a1492b7ecff66a3de44793f17682aaea6 | 7a0da28d68eb130e62d196467d0ef0ee3d8ebf95 | refs/heads/master | 2023-04-05T18:29:36.707082 | 2023-03-30T10:30:13 | 2023-03-30T10:30:13 | 192,511,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,436 | py | # -*- coding:utf-8 -*-
import os
import readConfig as readConfig
from xlrd import open_workbook
from xml.etree import ElementTree as ElementTree
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from comm.webDriver import MyDriver as Driver
import time
import comm.runSet as r... | [
"173302591@qq.com"
] | 173302591@qq.com |
a40004ba548e520cede3f28efbf8c20e012e0185 | 373cd41477438cc8826cd2a2f8689be84f486339 | /msticpy/config/ce_data_providers.py | 461dd3a6013e76b92a7875acbbc937f2d5327b61 | [
"LicenseRef-scancode-generic-cla",
"LGPL-3.0-only",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"ISC",
"LGPL-2.0-or-later",
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"LGPL-2.1-only",
"Unlicense",
"Python-2.0",
"LicenseRef-scancode-python-cwi",
"MIT",
"LGPL-2.1-or-later",
"GPL-2.... | permissive | RiskIQ/msticpy | cd42d601144299ec43631554076cc52cbb42dc98 | 44b1a390510f9be2772ec62cb95d0fc67dfc234b | refs/heads/master | 2023-08-27T00:11:30.098917 | 2021-06-17T22:54:29 | 2021-06-17T22:54:29 | 374,787,165 | 1 | 0 | MIT | 2021-09-16T19:05:43 | 2021-06-07T20:05:09 | Python | UTF-8 | Python | false | false | 1,049 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Data Pr... | [
"noreply@github.com"
] | RiskIQ.noreply@github.com |
ecffd0cb40db3a2541dd08f1f6cbc13ea53320ed | ed0dd577f03a804cdc274f6c7558fafaac574dff | /python/pyre/weaver/mills/CxxMill.py | d5307d0adaae8fcbb9fa32dd74b5c3f627978cec | [
"Apache-2.0"
] | permissive | leandromoreira/vmaf | fd26e2859136126ecc8e9feeebe38a51d14db3de | a4cf599444701ea168f966162194f608b4e68697 | refs/heads/master | 2021-01-19T03:43:15.677322 | 2016-10-08T18:02:22 | 2016-10-08T18:02:22 | 70,248,500 | 3 | 0 | null | 2016-10-07T13:21:28 | 2016-10-07T13:21:27 | null | UTF-8 | Python | false | false | 701 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~... | [
"zli@netflix.com"
] | zli@netflix.com |
d4adbe198d9a9e8a3154b16d3b046067822802d5 | 2836c3caf8ca332635640a27254a345afd449081 | /iem/regain_hour_map.py | b88680e83d256a083176bb0d735984295da3bb65 | [
"Apache-2.0",
"MIT"
] | permissive | akrherz/DEV | 27cf1bac978a0d6bbfba1851b90d2495a3bdcd66 | 3b1ef5841b25365d9b256467e774f35c28866961 | refs/heads/main | 2023-08-30T10:02:52.750739 | 2023-08-29T03:08:01 | 2023-08-29T03:08:01 | 65,409,757 | 2 | 0 | MIT | 2023-09-12T03:06:07 | 2016-08-10T19:16:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,689 | py | """Plot the scam that is DST"""
import ephem
import mx.DateTime
import tqdm
from pyiem.plot import MapPlot
def compute_sunrise(lat, long):
arr = []
sun = ephem.Sun()
ames = ephem.Observer()
ames.lat = lat
ames.long = long
sts = mx.DateTime.DateTime(2018, 3, 10)
interval = mx.DateTime.Rel... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
dd2f007d5531fe7a3a72581701ad253e6d6eb614 | 9815041feb5bd2a89e39d86e544ca44c2e17e318 | /config/settings.py | fdd605a6aef832ee03fc0708d15aa8ca4282d1b3 | [] | no_license | raimbaev223/django-docker-postgres-template | 5ecb62fdc57bb3af77815c3c4d1f03c98d0fdaf3 | f97449cf90b87daed374576ba52e545fc1694be0 | refs/heads/master | 2023-04-03T05:22:38.668148 | 2021-04-05T10:47:52 | 2021-04-05T10:47:52 | 354,720,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | """
Django settings for djangoforprofessionals_ch3 project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings... | [
"raimbaev.223@gmail.com"
] | raimbaev.223@gmail.com |
60d6cb2db006e20e4b18abeedfcd5b7a69a9801b | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /tree/653.two_sum_IV_input_is_a_BST.py | 4ece9fd24ef54b435eb886456dcb70ac2d4e7d17 | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """
Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.
Example 1:
Input:
5
/ \
3 6
/ \ \
2 4 7
Target = 9
Output: True
Example 2:
Input:
5
/ \
3 6
/ \ \
2 4 7
Target = 28
Output:... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
6c0c670495008cbd06140f21e047f3da7ee7a9c9 | 6ceea2578be0cbc1543be3649d0ad01dd55072aa | /src/examples/elphf/diffusion/mesh1D.py | b8a851a3a7a81fb4e593b52c70dcb733f0cf0331 | [
"LicenseRef-scancode-public-domain"
] | permissive | regmi/fipy | 57972add2cc8e6c04fda09ff2faca9a2c45ad19d | eb4aacf5a8e35cdb0e41beb0d79a93e7c8aacbad | refs/heads/master | 2020-04-27T13:51:45.095692 | 2010-04-09T07:32:42 | 2010-04-09T07:32:42 | 602,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,365 | py | #!/usr/bin/env python
##
# ###################################################################
# FiPy - Python-based finite volume PDE solver
#
# FILE: "mesh1D.py"
#
# Author: Jonathan Guyer <guyer@nist.gov>
# Author: Daniel Wheeler <daniel.wheeler@nist.gov>
# Author: James Warren <jwarren@nist.gov>
... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
f1bfe5de0e26671054c332bdfc93d2f0d9d4265e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_070/ch74_2020_04_06_14_56_45_688915.py | fbd6fc22f27f23767e365de5db1099f9b9558694 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | def conta_bigramas(x):
dicionario = {}
for i in range(len(x)-1):
dicionario[x[i],x[i+1]] = 0
for i in range(len(x)-1):
dicionario[x[i],x[i+1]] += 1
return dicionario | [
"you@example.com"
] | you@example.com |
9c71981567308ad84f8cdd6d9663bb32cd4dd6f4 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/neekanee_solr/solr_query_builder.py | bb3792600dc6a9c0af8eefbc4cd05bff2fbb4fb6 | [] | 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 | 5,806 | py | KM_PER_MILE = 1.61
class SOLRQueryBuilder():
"""
Build a SOLR query given a GET QueryDict for a job search.
"""
def __init__(self):
self.qdict = {}
#
# Mapping of refine search query parameter names to SOLR doc
# field names. All refine search query parameters are impl... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
00ae17b2c630ccf0d4036a300ee15ed0a9356121 | 4e3c976773526fd610d64ffb83589bccfaee5e68 | /sponge-app/sponge-app-demo-service/sponge/sponge_demo_depending.py | ff40131a936612f5da6d6cd33534a1a8234f44d8 | [
"Apache-2.0"
] | permissive | softelnet/sponge | 2313d2328953fcff49a002e727bb803757870627 | 7190f23ae888bbef49d0fbb85157444d6ea48bcd | refs/heads/master | 2022-10-28T16:19:55.619882 | 2021-09-16T19:50:08 | 2021-09-16T19:50:08 | 95,256,030 | 10 | 2 | Apache-2.0 | 2022-10-04T23:55:09 | 2017-06-23T20:58:49 | Java | UTF-8 | Python | false | false | 2,884 | py | """
Sponge Knowledge Base
Demo
"""
class DependingArgumentsAction(Action):
def onConfigure(self):
self.withLabel("Depending arguments")
self.withArgs([
StringType("continent").withLabel("Continent").withProvided(ProvidedMeta().withValueSet()),
StringType("country").withLabel... | [
"marcin.pas@softelnet.com"
] | marcin.pas@softelnet.com |
b55fd799bada92e8f1cd6d17a26da62618bdf02a | f6a8d93c0b764f84b9e90eaf4415ab09d8060ec8 | /Lists Advanced/the_office.py | de39a3b8b66d23417344eae1ded709f3c883b3b7 | [] | no_license | DimoDimchev/SoftUni-Python-Fundamentals | 90c92f6e8128b62954c4f9c32b01ff4fbb405a02 | 970360dd6ffd54b852946a37d81b5b16248871ec | refs/heads/main | 2023-03-18T17:44:11.856197 | 2021-03-06T12:00:32 | 2021-03-06T12:00:32 | 329,729,960 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | employees_list = [int(x) for x in (input().split(" "))]
HIF = int(input()) # happiness improvement factor
happy_count = 0
increased_happiness_list = list(map(lambda employee: employee * HIF, employees_list))
average_happiness = sum(increased_happiness_list) / len(increased_happiness_list)
happy_list = list(filter(lam... | [
"noreply@github.com"
] | DimoDimchev.noreply@github.com |
8bc823c166c4a65c4048e30e2d7438e795a32306 | 018d804d6b53cc544e0adf8c38656bf27152706c | /ucsd_catalog_order.py | ed744750f3c2affb71f43eccdfbf1a19bb0c13f8 | [] | no_license | luisroco/cisco_cloud | c664520eb1021c7b36577a08d23dbf1b8dd7bd75 | 6bbf7c4f0c0af47860170835cfebc924f1b4c867 | refs/heads/master | 2021-01-09T20:11:19.048918 | 2017-02-07T19:06:58 | 2017-02-07T19:06:58 | 81,242,442 | 0 | 0 | null | 2017-02-07T18:53:53 | 2017-02-07T18:53:53 | null | UTF-8 | Python | false | false | 3,208 | py | #! /usr/bin/env python
'''
Command Line Utility to order a Catalog option
'''
import requests
import json
from ucsd_library import catalog_order
if __name__ == '__main__':
import sys
from pprint import pprint
from argparse import ArgumentParser, FileType
p = ArgumentParser()
p.add_argument... | [
"hank.preston@gmail.com"
] | hank.preston@gmail.com |
362cdc331020a5268fd371e1eac03259c7a14bba | f3d01659c2a4465cdf7a5903d18058da008f1aac | /src/sentry/models/groupbookmark.py | f6cee4369c180e59d520ca7fe8093daee2869739 | [
"BSD-2-Clause"
] | permissive | Mattlk13/sentry-1 | f81a1e5dc5d02a07e5c6bbcdb5e1ce53f24f53c1 | 19b0870916b80250f3cb69277641bfdd03320415 | refs/heads/master | 2023-08-30T21:49:49.319791 | 2019-07-30T19:23:07 | 2019-07-30T19:23:07 | 81,418,058 | 0 | 1 | BSD-3-Clause | 2023-04-04T00:22:49 | 2017-02-09T06:36:41 | Python | UTF-8 | Python | false | false | 1,064 | py | from __future__ import absolute_import
from django.conf import settings
from django.db import models
from django.utils import timezone
from sentry.db.models import FlexibleForeignKey, Model, BaseManager, sane_repr
class GroupBookmark(Model):
"""
Identifies a bookmark relationship between a user and an
a... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
7c25ff18b341cd872a8a25f0dcfbf1023a780010 | 48ca6f9f041a1e9f563500c8a7fa04dbb18fa949 | /pygears/typing/qround.py | ea79fe0998313278f899a4b014df440c38f3cbb8 | [
"MIT"
] | permissive | bogdanvuk/pygears | 71404e53d4689ec9cdd9db546bfc0f229a7e02da | 705b11ab6de79868b25753fa9d0ce7128791b346 | refs/heads/master | 2023-07-08T11:38:54.625172 | 2022-03-07T12:29:00 | 2022-03-07T12:29:00 | 124,890,922 | 146 | 16 | MIT | 2022-08-15T07:57:08 | 2018-03-12T13:10:06 | Python | UTF-8 | Python | false | false | 1,286 | py | from .cast import value_cast, type_cast
from .fixp import Fixp, Ufixp
from .uint import Uint, Bool, Int, code
def get_out_type(val_type, fract):
if get_cut_bits(val_type, fract) <= 0:
raise TypeError(
f'Cannot qround type "{val_type}" with "{val_type.fract}" '
f'fractional bits, to... | [
"bogdan.vukobratovic@gmail.com"
] | bogdan.vukobratovic@gmail.com |
673ab9861bcae85a1a55c3ed742550710ec90195 | 99d7a6448a15e7770e3b6f3859da043300097136 | /src/hardware/core/i_core_device.py | 653c0e71ab0666d2da9b754da7fe944a400daac1 | [] | no_license | softtrainee/arlab | 125c5943f83b37bc7431ae985ac7b936e08a8fe4 | b691b6be8214dcb56921c55daed4d009b0b62027 | refs/heads/master | 2020-12-31T07:54:48.447800 | 2013-05-06T02:49:12 | 2013-05-06T02:49:12 | 53,566,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | #===============================================================================
# Copyright 2011 Jake Ross
#
# 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/license... | [
"jirhiker@localhost"
] | jirhiker@localhost |
1e8c67d8c6ce32961276b4ea876788f030175bf7 | d9b2805a8b39f147bd77e35c8e96e0cbd5eaa726 | /flask공부/flaskTest/bin/pip | 7eb65fc06f5c5c461cfe88d74e5a3c61d6549aab | [] | no_license | LeeInHaeng/Study | ca8e3e2d4111dc3f742eefea541a67739d729e75 | 96bdb1d224702cebb8a6de6bbd596b075ee33f7b | refs/heads/master | 2020-03-28T11:03:03.848316 | 2019-04-20T08:33:26 | 2019-04-20T08:33:26 | 148,172,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/home/lih/pythonTest/flaskTest/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lih0420@naver.com"
] | lih0420@naver.com | |
2f1f274dd1ad0310608a42872e14fff7fbf05b1f | c65dfb808e23263b8f3f703a4f31ea7e153b4efd | /tockstats.py | 62fa54d729eb6e180e8686f52ea5921fa2030dd9 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | 18F/quick-stats | 68fcd3bc9fde390f1a74a370f232dd8086865b07 | 400b48bcebea242ac574dd30f870ed1687c3b863 | refs/heads/master | 2021-01-17T06:08:00.304550 | 2016-07-27T16:09:22 | 2016-07-27T16:09:22 | 64,323,703 | 0 | 2 | null | 2016-08-08T15:25:00 | 2016-07-27T16:15:43 | Python | UTF-8 | Python | false | false | 1,030 | py | """Hours statistics from Tock exports"""
from collections import Counter
from csv import DictReader
import sys
def file_to_counter(filename):
"""Read CSV, convert it to a counter of hours by project"""
counter = Counter()
with open(filename) as csvfile:
reader = DictReader(csvfile)
for row... | [
"christopher.lubinski@gsa.gov"
] | christopher.lubinski@gsa.gov |
ba92d4f9f437fcf74daf2e0b5f28089408f310c4 | aaa06c63f0fba6c5aad5121d83715d0be828ce4e | /OpenStreetMap/models.py | 6746038957e195d82202ad40ba008a0f5667564b | [] | no_license | scotm/Comrade | b023b338f0daf5d083ae37e2e3a73d3d424f8a7c | c7186f00cd20916a78cc2282ea201f440102ebb7 | refs/heads/master | 2020-05-18T06:49:01.411310 | 2014-07-25T08:13:10 | 2014-07-25T08:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,658 | py | from django.contrib.gis.db import models
class BaseOsmModel(models.Model):
access = models.TextField(blank=True)
addr_housename = models.TextField(db_column='addr:housename', blank=True)
addr_housenumber = models.TextField(db_column='addr:housenumber', blank=True)
addr_interpolation = models.TextField... | [
"scott.scotm@gmail.com"
] | scott.scotm@gmail.com |
97fe4b22a0d5bd7822f3f5e943e4fad93fc6b66d | 9de9e636cf845c681fdbf1c6c058cc69d5d05da5 | /IO/Writer.py | 5ed136de1753e4ebcc60d562cf59aef0e316b217 | [] | no_license | dxcv/Portfolio-Management-1 | 4278eebb5c91a3a02ea76398b681ef9dc5beeb1f | 9f188aeab3177d0a13bae32e3a318a4f18642a3c | refs/heads/master | 2020-12-05T21:48:37.690004 | 2019-01-03T01:34:41 | 2019-01-03T01:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,408 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 15 12:51:44 2018
Write to excel function
@author: ACM05
"""
import pandas as pd
import IO.IO_Tools_Func as IO_TF
class Writer():
def __init__( self,
f_name ):
""" Writer object for
defined format
"""
... | [
"noreply@github.com"
] | dxcv.noreply@github.com |
d0fd9ae97dd8894464641a2387bc5db31a6ea3a3 | 04bd3387ed96a9856c14f76e3022171305203a72 | /GetPopuler.py | 348fc46c31c5691ec2af8fdeaedfdaec2f02e79d | [] | no_license | Yashwant94308/ATG-Selenium | bb3fff41b642951db3b5ab605d524ddcee4794f1 | 39424bee93e49f752105dd35311c2569e1a2de43 | refs/heads/master | 2023-05-26T04:36:58.998935 | 2021-05-29T08:34:26 | 2021-05-29T08:34:26 | 371,921,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import requests, json
response = requests.get(
'https://www.flickr.com/services/rest/?method=flickr.photos.getPopular&api_key=22a1377a56b4c384b61b723a80a73492'
'&user_id=193065083%40N04&format=json&nojsoncallback=1')
print(response.json())
| [
"yashwant94308@gmail.com"
] | yashwant94308@gmail.com |
5ddbda28127ab2fb18249701f06df9c1649219a4 | 8fe781f8ac5b1c1d5214ac5a87c5ad855f791a6d | /src/clean_data.py | 90720e0134fea7776aa816fbd08598bb52e51b1b | [] | no_license | ternaus/kaggle_ultrasound | fabf45b89f5ab0888bb22e9b5205d90b14ce8f06 | 2d688d0cea8e2b1651980e972b1d6400b797c70b | refs/heads/master | 2021-01-11T15:48:19.835115 | 2016-08-20T01:47:37 | 2016-08-20T01:47:37 | 64,818,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | from __future__ import division
"""
This script makes train data less noisy in a way:
Finds similar images assigns to these clusters of images max mask
"""
import networkx as nx
import os
import pandas as pd
from tqdm import tqdm
from PIL import Image
import glob
import pandas as pd
import cv2
import os
import numpy... | [
"iglovikov@gmail.com"
] | iglovikov@gmail.com |
ac8bb2b49f625d413a32f8fef679bc03ce802ab6 | ade22d64b99e7306eaeaf06684cc9c4f2d539881 | /oscquintette/tests/v1/test_plugin.py | 36de987851507a942e89237853e783acf38e25f1 | [
"Apache-2.0"
] | permissive | dtroyer/osc-quintette | 59204e4ad2e25be237fb3ec13cbb5087518197d6 | e37585936b1db9e87ab52e11e714afaf167a0039 | refs/heads/master | 2020-04-04T22:57:54.745055 | 2015-01-15T06:42:16 | 2015-01-15T06:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,266 | 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
# distrib... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
dd84a0764d1cd38b85cddd32caf67859a5427497 | 4ac77337083c7fdb28a901831003cfd0e0ef7bf1 | /any_urlfield/models/fields.py | 2d6a67b84cb2f887d661bd1a22600a432304957f | [
"Apache-2.0"
] | permissive | borgstrom/django-any-urlfield | deb6a10b87c26f53bb3ca5085d486238ab6c2a6c | 3f97bfd628a5770268b715ee8f796aaab89cf841 | refs/heads/master | 2020-12-11T02:13:14.725873 | 2013-12-12T21:55:12 | 2013-12-12T21:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,655 | py | """
Custom model fields to link to CMS content.
"""
from django.core.exceptions import ValidationError
from django.core.validators import URLValidator
from django.db import models
from any_urlfield.models.values import AnyUrlValue
from any_urlfield.registry import UrlTypeRegistry
class AnyUrlField(models.CharField):
... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
40a3d067d1e3b7a8dc8e422b14866b6111bd77a8 | 3e9ac661325657664f3f7fa26ff2edf5310a8341 | /python/demo100/15.py | 82e514ce0d7a6957012d7aafb52d784906df006e | [] | no_license | JollenWang/study | 47d1c22a6e15cb82d0ecfc6f43e32e3c61fbad36 | 660a47fd60dd1415f71da362232d710b322b932f | refs/heads/master | 2020-06-15T23:53:37.625988 | 2017-04-21T11:18:20 | 2017-04-21T11:18:20 | 75,257,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
#author : Jollen Wang
#date : 2016/05/10
#version: 1.0
'''
题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。
'''
def main():
score = int(raw_input("$>Enter the score:"))
print "grade=",
if score >= 90:
print "A"
elif score >= 60:
pri... | [
"jollen_wang@163.com"
] | jollen_wang@163.com |
f502a1ab4fbd3fb3c402deb9bcb0a91171c04ca9 | 3ea75e35408de10bba250f52120b5424bd50fdd9 | /py/plotSigzFunc.py | 21812552da7cc7dfcdf7898e0e091f012d051cf2 | [] | no_license | jobovy/segue-maps | 9848fe59ee24a11a751df4f8855c40f2480aef23 | ed20b1058a98618700a20da5aa9b5ebd2ea7719b | refs/heads/main | 2022-11-30T15:27:08.079999 | 2016-12-20T04:28:26 | 2016-12-20T04:28:26 | 40,663,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,199 | py | import os, os.path
import math
import numpy
import cPickle as pickle
from matplotlib import pyplot
from optparse import OptionParser
from scipy import optimize, special
from galpy.util import bovy_coords, bovy_plot
def plotSigzFunc(parser):
(options,args)= parser.parse_args()
if len(args) == 0:
parser.p... | [
"jo.bovy@gmail.com"
] | jo.bovy@gmail.com |
28bf8e32b2fc71691571cc473c7d4d6c7cefcf3a | fe98f7502a5724be0ec7ec3ae73ff4703d299d6e | /Neural Tree/data.py | 1b85e274b45f66319d308125e39f23e90bf4375f | [] | no_license | SoumitraAgarwal/BTP | 92ab095aacf3dd374148f40b9e777bb49c4253f1 | 07df960ad7e8680680a9d3494c8a860b394867d1 | refs/heads/master | 2020-03-16T12:39:13.548988 | 2018-05-09T06:09:11 | 2018-05-09T06:09:11 | 132,671,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | import random
import math
import pandas as pd
import numpy as np
from sklearn import preprocessing
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_toolkits.mplot3d import axes3d, Axes3D
plt.switch_backend('agg')
random.seed(311)
def generate(radius, centre):
alpha = 2 * math.pi * random.random()... | [
"agarwalsoumitra1504@gmail.com"
] | agarwalsoumitra1504@gmail.com |
ef3d990361a736c2c8243ef71653066e995e9f04 | a1c7b21d96d6326790831b2b3115fcd2563655a4 | /pylidc/__init__.py | 95c187456f43a5b9aafdc6d2673def316432c058 | [
"MIT"
] | permissive | jovsa/pylidc | 3837b17fbe02bc60817081a349681612f24b2f81 | bd378a60a4b0e6dfb569afb25c3dfcbbcd169550 | refs/heads/master | 2021-06-13T02:45:41.359793 | 2017-03-10T23:14:57 | 2017-03-10T23:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | """
--------------------------------------------------------
Author: Matt Hancock, not.matt.hancock@gmail.com
--------------------------------------------------------
This python module implements an (ORM) object relational mapping
to an sqlite database containing the annotation information from
the XML files provid... | [
"mhancock743@gmail.com"
] | mhancock743@gmail.com |
d476c12d19016fedb10bf55bbe245feb207b93ac | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_Lag1Trend_NoCycle_NoAR.py | ff7ef11eee723d83fe871324617d9665f298f2bc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 154 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Quantization'] , ['Lag1Trend'] , ['NoCycle'] , ['NoAR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
5be51dbb88aa58f10058062d78de161544e789e6 | cc2fcc1a0c5ea9789f98ec97614d7b25b03ba101 | /st2common/tests/unit/test_configs_registrar.py | e23dfe74262ed4c55b95ba299c1a0f50fbeb08c9 | [
"Apache-2.0"
] | permissive | Junsheng-Wu/st2 | 6451808da7de84798641882ca202c3d1688f8ba8 | c3cdf657f7008095f3c68b4132b9fe76d2f52d81 | refs/heads/master | 2022-04-30T21:32:44.039258 | 2020-03-03T07:03:57 | 2020-03-03T07:03:57 | 244,301,363 | 0 | 0 | Apache-2.0 | 2022-03-29T22:04:26 | 2020-03-02T06:53:58 | Python | UTF-8 | Python | false | false | 4,577 | py | # Licensed to the StackStorm, Inc ('StackStorm') 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 use th... | [
"wei.ying@easystack.cn"
] | wei.ying@easystack.cn |
196964f8812712d14c761353096cc995312f630d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/containsDuplicate_20200907093833.py | a13711fe822495f778880bcdac9e84cd2d398e7d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def duplicate(nums,k,t):
number = None
for i in range(len(nums)):
for j in range(i+1,len(nums)):
if nu
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
286901b3a6a7ec15eaad0c29b53851f0e00a3e81 | 599db5e2e3c4d6c296de25a8ef8e95a862df032b | /OpenAI Gym/(clear)breakout-ramdeterministic-v4/model6/14000epi/modelPlay.py | 7e5537269ecb2dd11378115b992616635625fad7 | [] | no_license | wantyouring/ML-practice-code | bb7577e99f22587c7ca016c1c4d067175e5ce9d9 | a3efbb4d252bacc831c5d7a01daf6476e7a755e4 | refs/heads/master | 2020-05-14T17:45:17.735081 | 2019-06-30T14:43:25 | 2019-06-30T14:43:25 | 181,898,074 | 0 | 1 | null | 2019-06-15T05:52:44 | 2019-04-17T13:31:24 | Python | UTF-8 | Python | false | false | 3,233 | py | # 학습모델 play. random action과 학습model 비교.
import gym
import pylab
import numpy as np
import gym.wrappers as wrappers
from doubleDQN2 import DoubleDQNAgent
EPISODES = 1 # 처음은 random으로 수행, 나중에는 학습model로 수행
global_step = 0
def change_action(action):
if action == 0:
return 0
elif action == 1:
retu... | [
"pwc99@naver.com"
] | pwc99@naver.com |
4a18ef0719c0058c463c0200d66e76acbe62ccfd | e49b654d3db99773390c5b9686df9c99fbf92b2a | /linked_lists/is_palindrome.py | 703a4960dc6cfbe7e741efde1dd056a7ede1b2cc | [] | no_license | hao89/diary_of_programming_puzzles | 467e8264d0ad38768ba5ac3cfb45301293d79943 | 0e05d3716f28075f99bbd7b433d16a383209e57c | refs/heads/master | 2021-01-16T00:49:38.956102 | 2015-08-25T13:44:53 | 2015-08-25T13:44:53 | 41,692,587 | 1 | 0 | null | 2015-08-31T18:20:38 | 2015-08-31T18:20:36 | Python | UTF-8 | Python | false | false | 831 | py | """
Implement a function to check if a linked list is a palindrome
"""
import random
from linked_list import LinkedListNode
def is_palindrome1(linked_list):
# reverse and compare
pass
def build_palindrome_list():
root = LinkedListNode(5)
previous_node = root
for i in range(0, 2):
new_node ... | [
"me@davidadamojr.com"
] | me@davidadamojr.com |
07f54965bf19a638d7de2870978fd0fccb3c3b59 | 635670997e25d7fd578701995fe0422dd5671528 | /src/models_VAE/best_models/vae/encoder.py | 48db109dad68d468093e78e6d9e4cbd35e10fc19 | [] | no_license | QuangNamVu/thesis | 5126c0281d93e7a5c2c3a5784363d7f6c6baadfd | 01a404de2dfb70f13f3e61a9a8f3b73c88d93502 | refs/heads/master | 2022-12-24T10:08:33.472729 | 2019-12-21T16:27:07 | 2019-12-21T16:27:07 | 174,741,015 | 0 | 3 | null | 2022-12-14T06:56:36 | 2019-03-09T20:09:03 | Jupyter Notebook | UTF-8 | Python | false | false | 1,892 | py | import tensorflow as tf
from tensorpack import *
from tf_utils.ar_layers import *
from tf_utils.common import *
def encoder(self, x):
is_training = get_current_tower_context().is_training
# [M, T, D] => [M, T, f0]
fc_l1 = gaussian_dense(name='encode_l1', inputs=x, out_C=self.hps.f[0])
activate_l1 = ... | [
"you@example.com"
] | you@example.com |
a96bac8257857719d4e612c36e2dc88f720a5690 | ad212b92beac17c4d061848c1dcd443d02a168c8 | /monthly_challenge/202008/19_goat_latin.py | e866084a3ba4569f5efdb64fd6aa23d3416e864d | [] | no_license | 21eleven/leetcode-solutions | 5ec97e4391c8ebaa77f4404a1155f3ef464953b3 | 35c91e6f5f5ed348186b8641e6fc49c825322d32 | refs/heads/master | 2023-03-03T10:22:41.726612 | 2021-02-13T21:02:13 | 2021-02-13T21:02:13 | 260,374,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | """
A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only.
We would like to convert the sentence to "Goat Latin" (a made-up language similar to Pig Latin.)
The rules of Goat Latin are as follows:
If a word begins with a vowel (a, e, i, o, or u), ... | [
"noahlidell@gmail.com"
] | noahlidell@gmail.com |
2caa36497292851a2824c6d22461f476df9e29db | 8d113f0a487dab55c733ff63da5bba9e20f69b69 | /config/settings.py | bca76446204a4d8a3e3373d62517eb9c85a8dc70 | [
"MIT"
] | permissive | AktanKasymaliev/django-video-hosting | c33d341a7709a21869c44a15eb6a3b6e9a783f54 | b201ed3421025da22b43405452bde617ea26a90f | refs/heads/main | 2023-07-18T08:10:00.289537 | 2021-09-02T20:15:41 | 2021-09-02T20:15:41 | 387,730,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,039 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
fro... | [
"aktan.kasymaliev@icloud.com"
] | aktan.kasymaliev@icloud.com |
b5915b18fbbba281d99d4d188ad3de150336d99e | dbaad22aa8aa6f0ebdeacfbe9588b281e4e2a106 | /0423 Pandas/1-複習-pandas/Pandas1_csv_-plot1.py | 58fb6438f52cd86d1347b1d57e7b87de2c826879 | [
"MIT"
] | permissive | ccrain78990s/Python-Exercise | b4ecec6a653afd90de855a64fbf587032705fa8f | a9d09d5f3484efc2b9d9a53b71307257a51be160 | refs/heads/main | 2023-07-18T08:31:39.557299 | 2021-09-06T15:26:19 | 2021-09-06T15:26:19 | 357,761,471 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
__author__ = "Chen"
# 0423 練習
"""
資料出處:
公開發行公司股票發行概況統計表_New
https://data.gov.tw/dataset/103533
主要欄位說明:
年月、上市家數、上市資本額_十億元、上市成長率、上市面值_十億元、上市市值_十億元、
上櫃家數、上櫃資本額_十億元、上櫃成長率、上櫃面值_十億元、上櫃市值_十億元、
未上市上櫃家數、未上市上櫃資本額_十億元、公告日期
"""
import pandas as pd
df = pd.read_csv('每月_公開發行公司股票發行概況統計表.... | [
"47476106+ccrain78990s@users.noreply.github.com"
] | 47476106+ccrain78990s@users.noreply.github.com |
473edc044398c5b3eca2579faca5a7c518d2a277 | 10e5b1b2e42a2ff6ec998ed900071e8b5da2e74e | /array/0509_fibonacci_number/0509_fibonacci_number.py | 5d815145881d946e9ff8a001d2a66e9ff2dcd44e | [] | no_license | zdyxry/LeetCode | 1f71092d687316de1901156b74fbc03588f0b0a5 | b149d1e8a83b0dfc724bd9dc129a1cad407dd91f | refs/heads/master | 2023-01-29T11:59:14.162531 | 2023-01-26T03:20:23 | 2023-01-26T03:20:23 | 178,754,208 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
class Solution(object):
def fib(self, N):
if N <= 1:
return N
return self.fib(N - 1) + self.fib(N - 2)
def fib2(self, N):
array = [i for i in xrange(N)]
for i in xrange(2, N+1):
array[i] = array[i-1] + array[i-2]
return ... | [
"zdyxry@gmail.com"
] | zdyxry@gmail.com |
0a6f99febf158ce23215714249263dc107358160 | 2724412db1fc69b67b74a7d1c4ca4731962908d3 | /tests/test_streams.py | fd7c66a0bdc95eac88148387db0573a5c90b4496 | [
"BSD-3-Clause"
] | permissive | Tijani-Dia/websockets | a981267685e681df822307bce4ec7eb781e9927d | ed9a7b446c7147f6f88dbeb1d86546ad754e435e | refs/heads/main | 2023-08-23T13:10:16.030126 | 2021-10-08T20:18:24 | 2021-10-28T20:17:30 | 425,114,573 | 1 | 0 | BSD-3-Clause | 2021-11-05T23:56:39 | 2021-11-05T23:56:39 | null | UTF-8 | Python | false | false | 6,055 | py | from websockets.streams import StreamReader
from .utils import GeneratorTestCase
class StreamReaderTests(GeneratorTestCase):
def setUp(self):
self.reader = StreamReader()
def test_read_line(self):
self.reader.feed_data(b"spam\neggs\n")
gen = self.reader.read_line(32)
line = ... | [
"aymeric.augustin@m4x.org"
] | aymeric.augustin@m4x.org |
4b14a84a25716004baaf55a0e43796fab1a29293 | a137466dbaa5d704cd5a15ab9dfd17907b24be04 | /algo2/mrdqn/agent.py | 21a44e7aca50bb7bc677d14406d87263a932f502 | [
"Apache-2.0"
] | permissive | xlnwel/g2rl | 92c15b8b9d0cd75b6d2dc8df20e6717e1a621ff6 | e1261fdd2ce70724a99ddd174616cf013917b241 | refs/heads/master | 2023-08-30T10:29:44.169523 | 2021-11-08T07:50:43 | 2021-11-08T07:50:43 | 422,582,891 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,158 | py | import tensorflow as tf
from utility.tf_utils import softmax, log_softmax, explained_variance
from utility.rl_utils import *
from utility.rl_loss import retrace
from core.decorator import override
from algo.mrdqn.base import RDQNBase, get_data_format, collect
class Agent(RDQNBase):
""" MRDQN methods """
@tf.... | [
"122134545@qq.com"
] | 122134545@qq.com |
b77ad5adbfe3bdc3c5a57d4185371cc854289ac2 | a07124716edd86159dff277010132ba9c5cd0f75 | /Text-Based Browser/task/tests.py | 3ca883bce21f71b1767281f280b941e8d1d999d1 | [
"MIT"
] | permissive | drtierney/hyperskill-TextBasedBrowser-Python | 27a15fa0bd44a927a9552d4815a0b4ab69375710 | a4f2ac60643559e580b75a02078a679e5f1f0a2c | refs/heads/main | 2023-08-28T04:24:51.693648 | 2021-10-25T17:34:58 | 2021-10-25T17:34:58 | 415,304,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,637 | py | from hstest.stage_test import StageTest
from hstest.test_case import TestCase
from hstest.check_result import CheckResult
import os
import shutil
import sys
if sys.platform.startswith("win"):
import _locale
# pylint: disable=protected-access
_locale._getdefaultlocale = (lambda *args: ['en_US', 'utf8'])
C... | [
"d.r.tierney@hotmail.co.uk"
] | d.r.tierney@hotmail.co.uk |
4918810498af75369329a2204c7cccbe0e40efb1 | 40dd8330e5f78c4348bbddc2c5acfd59d793dd51 | /tools/model_converters/twins2mmseg.py | 647d41784aa07468be4b3f2e183064ad55266ad1 | [
"Apache-2.0"
] | permissive | open-mmlab/mmsegmentation | 0d12092312e2c465ede1fd7dd9847b6f2b37049c | 30a3f94f3e2916e27fa38c67cc3b8c69c1893fe8 | refs/heads/main | 2023-09-04T10:54:52.299711 | 2023-07-24T07:28:21 | 2023-07-24T07:28:21 | 272,133,018 | 6,534 | 2,375 | Apache-2.0 | 2023-09-14T01:22:32 | 2020-06-14T04:32:33 | Python | UTF-8 | Python | false | false | 2,764 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import os.path as osp
from collections import OrderedDict
import mmengine
import torch
from mmengine.runner import CheckpointLoader
def convert_twins(args, ckpt):
new_ckpt = OrderedDict()
for k, v in list(ckpt.items()):
new_v = v
... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
c436a852bf1b29fdd43c22fec676f7de2348174a | da7a165522daea7c346693c5f32850017c482967 | /abc51-100/abc066/c.py | 09ed9795009df321637516a4eee2dcfb604ef0b8 | [] | no_license | SShayashi/ABC | 19f8750919208c5ff8935638dbaab941c255f914 | 3cbfee0c5251c1bb0df6306166d8d4b33bf7bb2c | refs/heads/master | 2021-05-04T21:06:10.720367 | 2020-07-11T13:59:16 | 2020-07-11T13:59:29 | 119,886,572 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def main():
n = int(input())
a = list(map(int, input().split()))
even = a[1::2]
odd = a[::2]
ans = []
if n % 2 == 0:
even.reverse()
ans = even + odd
else:
odd.reverse()
ans = odd + even
to_str = map(str, ans)
return " ".join(to_str)
print(main()) | [
"sshayashi0208@gmail.com"
] | sshayashi0208@gmail.com |
5a1800a557704e33d4f51badeae781b4ae00bcca | c3a01f8bcece48f94a347b92694f90227708f507 | /pyvisa/testsuite/test_constants.py | 8c5add8034b3b0c9c0686b60af1742adea537ea8 | [
"MIT"
] | permissive | panlun/pyvisa | e16a6cdaae47bc69d932538f14c62015d17be7ab | 124c46bd2ad89e49031339d6181255c2808fecbc | refs/heads/master | 2022-11-21T13:07:29.280849 | 2020-06-24T22:23:27 | 2020-06-24T22:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
"""Test objects from constants.
This file is part of PyVISA.
:copyright: 2019-2020 by PyVISA Authors, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
from pyvisa.constants import DataWidth
from . import BaseTestCase
class TestDataWidth(BaseTestCase):
def ... | [
"marul@laposte.net"
] | marul@laposte.net |
ccc0c33067aa23f9329f7727f8ce57f7f5cf29b1 | fff24c6c6123e5e90ac2fae26536150449140c6d | /setup.py | 0b74facb61fe0ac8600893175528a1d17392e7ab | [
"ISC"
] | permissive | binaryf/demosys-py | 83da9f9ddd8d1672413f89153012ab6bb7fae6ab | f11b09cb6502adfaa437c8cbe780039c49b72524 | refs/heads/master | 2020-03-22T16:30:16.767030 | 2018-07-24T11:19:22 | 2018-07-24T11:19:22 | 140,331,208 | 1 | 0 | null | 2018-07-09T19:12:49 | 2018-07-09T19:12:48 | null | UTF-8 | Python | false | false | 1,375 | py | from setuptools import setup
setup(
name="demosys-py",
version="1.0.4",
description="Modern OpenGL 3.3+ Framework inspired by Django",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url="https://github.com/Contraz/demosys-py",
author="Einar Forselv... | [
"eforselv@gmail.com"
] | eforselv@gmail.com |
dfc119e744be40778ca5cd17e33454a7d7001076 | fd18ce27b66746f932a65488aad04494202e2e0d | /day34/farms/categories/categories/categories/pipelines.py | dba029c921f259cfcbba84dba0b24d192b7fa697 | [] | no_license | daofeng123/ClassCodes | 1acbd843836e550c9cebf67ef21dfca9f6b9fc87 | fbcd1f24d79b8bb56ad0669b07ad118064609612 | refs/heads/master | 2020-06-24T12:34:28.148197 | 2019-08-15T03:56:40 | 2019-08-15T03:56:40 | 198,963,469 | 3 | 0 | null | 2019-07-26T06:53:45 | 2019-07-26T06:53:44 | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
import json
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from categories.dbs.redismq import RedisMQ
class CategoriesPipeline(object):
redis_mq = RedisMQ()
def p... | [
"38395870@qq.com"
] | 38395870@qq.com |
f7b22c64ab658985f221cf7076cee8fc91505b98 | a360a22af5e0b385db438b1324564ef317ff2f38 | /idex_module/views.py | a846edfb5592c73af23acdf636aeb55d68b6c4af | [] | no_license | ogglin/exchange_comparison | 3eb2d849e731f94e67509e4ce9130e33bb37bbaf | f3feae64aff26b574f7ecd24e6f7aff7bb95ec65 | refs/heads/master | 2023-04-26T07:45:06.229584 | 2021-05-31T18:52:29 | 2021-05-31T18:52:29 | 287,036,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from rest_framework.response import Response
from rest_framework.views import APIView
from .functions import idex_profits
# Create your views here.
class idex(APIView):
def get(self, request):
# hotbit_result = hotbit_profits()
idex_result = idex_profits()
results = []
# idex_i... | [
"server.ares@gmail.com"
] | server.ares@gmail.com |
33f88b3804973bb17c410c2bdf24456d89324c34 | 9bcfbdf23c9ac156e0cdf5b5b5e06f18a1ad6fae | /pre_code/stock/xueqiuPawer.py | 1a9ff34bb4d43402fbd96230452d2828ff831e48 | [] | no_license | haoson888/vnpy_future | a7576513b7ecf50c36d730c647263c6d1e44f3a6 | 89df2d5079a2e6d3782531369675248e38b2ff00 | refs/heads/origin | 2020-09-04T15:04:55.368725 | 2017-12-10T10:37:47 | 2017-12-10T10:37:47 | 219,762,816 | 0 | 1 | null | 2019-11-05T15:12:32 | 2019-11-05T14:18:18 | null | UTF-8 | Python | false | false | 6,873 | py | #coding: utf-8
from selenium import webdriver
import re
from urllib import request as urllib2
import sys
import os
from datetime import datetime
from datetime import timedelta
from datetime import date
import xlrd
from xlrd import open_workbook
from xlutils.copy import copy
#import nltk
import time
description_i... | [
"511735184@qq.com"
] | 511735184@qq.com |
291f1107e0a99ce49de7bd1a42bab6e7fa9b9073 | ffae55f50f9eb0ae028d9f46cebea565f3700585 | /18/VAJets/PKUTreeMaker/test/CrabJobsSrc/MC/crab3_analysisWZ_v1.py | 7d3a2cd976ff0802af00a8aafe4ae252256a8d2a | [] | no_license | JINGFFF/test | 57a92eb2c3143bcfa5776fc87d3ff16ff7cdc04b | d48c2be6387dfaff3eb37e28ff116c91c3eaf67e | refs/heads/master | 2021-02-06T21:00:52.184508 | 2020-04-26T04:35:04 | 2020-04-26T04:35:04 | 243,942,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'WZ_v1_2'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.maxMemoryMB = 3000
config.JobType.inputFiles = ['Summer16_07Au... | [
"15827238926@163.com"
] | 15827238926@163.com |
5396d59485edcffb1060921d5fc348209d891fe0 | b13a326c8aac68f72c71169187a4aa8d4fe1438f | /environment/envs/icra.py | eaa3aafeecc909022ff8d9a459423e63e37e2866 | [] | no_license | zy10zm/Pulsar | 9f1d9abdf90d94e80c6dba2a02630bfe4b4e2115 | 714ee2d78577e59077af7c0f890e639879490eb8 | refs/heads/master | 2023-02-22T20:26:42.995175 | 2021-01-23T04:35:38 | 2021-01-23T04:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,882 | py | import os, sys
import numpy as np
import logging
from copy import deepcopy
from mujoco_worldgen import Floor
from mujoco_worldgen import ObjFromXML
from mujoco_worldgen.util.sim_funcs import qpos_idxs_from_joint_prefix, qvel_idxs_from_joint_prefix
from environment.worldgen.battlefield import Battlefield
from environm... | [
"impeccableaslan@gmail.com"
] | impeccableaslan@gmail.com |
38cce542df0415d2d792a37b8355ec7ce0f789d3 | 9e2d467de2d665f41dc94799f0acb98479571922 | /_error.py | cf399a395d6e832d683a0de18251cbd067d4a2f6 | [] | no_license | pytsite/plugin-geo_ip | c63ecd12c95004c05fdae76b20a9343b52fb923f | db71e67651eb57b6ca76136d0014eaadf2cb6ffb | refs/heads/master | 2021-10-23T09:29:32.580289 | 2019-03-16T22:04:28 | 2019-03-16T22:04:28 | 112,030,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | """PytSite GeoIP Errors.
"""
__author__ = 'Oleksandr Shepetko'
__email__ = 'a@shepetko.com'
__license__ = 'MIT'
class ResolveError(Exception):
pass
| [
"a@shepetko.com"
] | a@shepetko.com |
eb3a8d5c498c7474673b63e103c93f49315218fa | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /No_0122_Best Time to Buy and Sell Stock II/by_dynamic_programming.py | 5874db8b00a7a87dcea7b16d8be839baf34edc99 | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | py | '''
Description:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i.e., buy one and sell one share of the stock multiple times).
Note: You may not engage in multiple transactions... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
155e6f8d2612353259928900fac73b905ca32da0 | e5d8b15cbd899283d6ead4742334e997db06d6e0 | /web/config/settings/base.py | 37124bc82aab5552b2646ceca937c109e33f6676 | [] | no_license | Maliaotw/dashboard-django | 628d777d88b61dad7c3c551b72979b38c2065e15 | cabbc3e6e8156510dd4ba91ffe1066c9cb040eac | refs/heads/main | 2023-02-16T02:52:02.169754 | 2021-01-12T03:13:55 | 2021-01-12T03:13:55 | 289,612,737 | 0 | 0 | null | 2021-01-12T03:13:56 | 2020-08-23T04:05:36 | JavaScript | UTF-8 | Python | false | false | 5,390 | py | """
Django settings for web project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
from .... | [
"MaliaoTW@gmail.com"
] | MaliaoTW@gmail.com |
eecdc90449ea3bbc47e90548ca8004f0872498f7 | ac03d9f3a8c2e6209940ae30900e9b2e32084dce | /main.py | 9ef8df5eafeff0357882459573d9ee1b460c71e4 | [
"Apache-2.0"
] | permissive | cls1991/github-projects-remover | 29f28e0a23b596a7e07b0c07b65092626b42de05 | d924100fedccbb0fd6e20365d4f4df98bf04b292 | refs/heads/master | 2022-12-11T12:31:59.498180 | 2019-10-23T14:22:14 | 2019-10-23T14:22:14 | 84,054,255 | 0 | 0 | Apache-2.0 | 2019-10-23T14:22:16 | 2017-03-06T09:25:51 | Python | UTF-8 | Python | false | false | 1,042 | py | # coding: utf8
import os
# 切换工作目录到项目根目录
project = os.path.split(os.path.realpath(__file__))[0]
os.chdir(project)
from core.github import GithubSample
if __name__ == '__main__':
gs = GithubSample('8709c9b9d01ec8e7388378c3992eff61aa7df813')
# pretty_print(gs.query_api_info())
# pretty_print(gs.query_user_... | [
"tzk19910406@hotmail.com"
] | tzk19910406@hotmail.com |
f9d8898f58752cd3781b1c1101eefbc33a20667c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/perf/CascadeMaskRCNN_iflytek_for_PyTorch/configs/seesaw_loss/cascade_mask_rcnn_r101_fpn_sample1e-3_seesaw_loss_mstrain_2x_lvis_v1.py | 853289e67b4a5019eddfc1bbefb0b44e53dd49e2 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,714 | py | _base_ = [
'../_base_/models/cascade_mask_rcnn_r50_fpn.py',
'../_base_/datasets/lvis_v1_instance.py',
'../_base_/schedules/schedule_2x.py', '../_base_/default_runtime.py'
]
model = dict(
pretrained='torchvision://resnet101',
backbone=dict(depth=101),
roi_head=dict(
bbox_head=[
... | [
"zhangjunyi8@huawei.com"
] | zhangjunyi8@huawei.com |
3d825b0e036a2c4f6a56c755ea8fe0225bc2d1f8 | 6610ebe9141f00678851a6f068ec1e5458bf050c | /code/graph_keyboard.py | 19a6ffbf2f3e96351320d674a186a385b8d5dedc | [
"MIT"
] | permissive | iamrajee/bio_medical | e9cec1d9e12c04d87b893d0c12c92d3a1b8fb963 | 8d91cd3838f46685faa057f93f5d22f8e6c4187b | refs/heads/master | 2020-05-04T23:47:45.595827 | 2019-09-17T17:14:19 | 2019-09-17T17:14:19 | 179,555,562 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | import matplotlib.pyplot as plt
import networkx as nx
G=nx.Graph()
# G.add_nodes_from([1,2,3,4,5,6,7,8,9,0],key="A")
# # G.add_edges_from([(1,2),(2,3),(3,4),(5,8),(9,1),(2,3),(4,6),(8,2),(7,3)])
# G.add_weighted_edges_from([(1,2,1),(2,3,2),(3,4,3),(5,8,4),(9,1,5),(2,3,6),(4,6,7),(8,2,8),(7,3,9)])
# keyboard_config =... | [
"singh.raj1997@gmail.com"
] | singh.raj1997@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.