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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6463120100067e88f76a9d5be84a539e55539baa | 5682dc024dd37ea0753d57819bab8a4891d6bb31 | /my_tiff_package/my_tiff_package/__init__.py | 34da447454fa182f4e7bc7d7df34feb2f0f2bde8 | [] | no_license | danielballan/reader-intake-adapter | 20424026ecc23f7aa9ab6ae2035988e60b0ca244 | f06ae1c9aef4e8277e81b5903a54d1a124590457 | refs/heads/master | 2022-04-07T05:50:38.877360 | 2020-03-05T15:12:10 | 2020-03-05T15:12:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | import dask.array
import tifffile
class TIFFReader:
"""
Accepts file, filepath, or filepath glob.
"""
container = 'dask.array.core.Array'
def __init__(self, file):
if isinstance(file, str):
# file is a filepath or filepath glob
import os
if os.path.isfi... | [
"dallan@bnl.gov"
] | dallan@bnl.gov |
a1aea68f5189555f5d4f065f1fb96097d119efd8 | 7ac506e9890ff3295541bdd00bc3c40a13b23826 | /main_top_down_baseline_with_objcls.py | 269650272d1e6c9075b8b7539d83fe14c0eb51bc | [] | no_license | thilinicooray/CARN | dd64cde17e5c9f0e68e94b340c9271ae2a79f58a | 7f5e85c98d3178a3fe9b9f1b5a93a39ace01ccc5 | refs/heads/master | 2020-07-25T05:42:38.988848 | 2020-04-07T03:43:01 | 2020-04-07T03:43:01 | 208,182,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,887 | py | import torch
import json
import os
from sr import utils, imsitu_scorer, imsitu_loader, imsitu_encoder
from sr.model import top_down_baseline_with_objcls
def train(model, train_loader, dev_loader, optimizer, scheduler, max_epoch, model_dir, encoder, gpu_mode, clip_norm, model_name, model_saving_name, eval_frequency=4... | [
"thilinicooray.ucsc@gmail.com"
] | thilinicooray.ucsc@gmail.com |
282f9f494bed1bf028d83c8f4c05f917f6111523 | 29da2ca6def1270be13a3096685a8e5d82828dff | /CIM14/CPSM/Equipment/Wires/SeriesCompensator.py | 3d24c9da21e451acecdfd4f1a62596944c6ded43 | [
"MIT"
] | permissive | rimbendhaou/PyCIM | 75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3 | d578bb0bf1af344342bd23344385ed9c06c2d0ee | refs/heads/master | 2022-04-28T01:16:12.673867 | 2020-04-16T02:19:09 | 2020-04-16T02:19:09 | 256,085,381 | 0 | 0 | MIT | 2020-04-16T02:15:20 | 2020-04-16T02:08:14 | null | UTF-8 | Python | false | false | 2,022 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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... | [
"rwl@thinker.cable.virginmedia.net"
] | rwl@thinker.cable.virginmedia.net |
19517ca7ef64c2333ba5aa5f106fb3d0b5e76ce3 | 0b9622c6d67ddcb252a7a4dd9b38d493dfc9a25f | /HackerRank/30daysChallenge/Day21.py | c3c18c68d2565763a4359b71e362ce6b8b0e1447 | [] | no_license | d80b2t/python | eff2b19a69b55d73c4734fb9bc115be1d2193e2d | 73603b90996221e0bcd239f9b9f0458b99c6dc44 | refs/heads/master | 2020-05-21T20:43:54.501991 | 2017-12-24T12:55:59 | 2017-12-24T12:55:59 | 61,330,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | """
Nota Bene: Day 21 was about Generics.
This was acutally not a Python solveable challenge (only C++, C#, Java 7, Java 8 and Swift) were offered, so no code was written here or progress made.
"""
| [
"npross@lbl.gov"
] | npross@lbl.gov |
b13111418e3b0d4dfe2eaa935cff789e858685ea | a983c40db193d9294ea93628c57f514e0e6e9c2a | /src/shop/api.py | 14c053a442e1c9fa5524098b2ef6d551d6b1c4fe | [
"MIT"
] | permissive | ElinSwedin/foobar-api | 80f4d1dd5e0dabefb80eab77bd92e4e8a277c9b9 | 7ab204894c7579dd3f9dec3d2cee1166eb046199 | refs/heads/develop | 2021-01-19T12:26:27.085054 | 2017-02-17T09:42:11 | 2017-02-17T11:05:38 | 82,311,799 | 2 | 0 | null | 2017-02-17T15:43:49 | 2017-02-17T15:43:49 | null | UTF-8 | Python | false | false | 7,973 | py | import logging
from django.db import transaction
from django.contrib.contenttypes.models import ContentType
from . import models, enums, suppliers, exceptions
log = logging.getLogger(__name__)
@transaction.atomic
def create_product(code, name):
"""Create an product"""
product_obj = models.Product(
co... | [
"me@kjagiello.com"
] | me@kjagiello.com |
1c656ad16666594fb3d4c6f4f1e6bba48319f683 | be0e0488a46b57bf6aff46c687d2a3080053e52d | /python/programmers/level1/문자열다루기기본.py | a210099dc2f10aaf38e4017dbeb93a0c2c6db444 | [] | no_license | syo0e/Algorithm | b3f8a0df0029e4d6c9cbf19dcfcb312ba25ea939 | 1ae754d5bb37d02f28cf1d50463a494896d5026f | refs/heads/master | 2023-06-09T11:31:54.266900 | 2021-06-30T17:04:38 | 2021-06-30T17:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def isnumber(s):
for i in range(len(s)):
if s[i] < '0' or s[i] > '9':
return False
return True
def solution(s):
if (len(s) == 4 or len(s) == 6) and isnumber(s):
return True
return False
| [
"kyun2dot@gmail.com"
] | kyun2dot@gmail.com |
ecb1f30725bfd84a818036a942659d29d1dfdfa4 | c7009093f1e4d5db31d7fb5d876b46f5f9ac5268 | /week2/game_hobit/game.py | 5f8e1cf9d01888c4697f3705b59e8f2cd391fb2d | [] | no_license | mileto94/HackBulgaria | 4ea52ff306c202b9207f66e218ca79082832246a | 414b37dd102a3de5e976d4d97b1b2d95bb253892 | refs/heads/master | 2016-09-06T17:31:04.618614 | 2014-06-24T18:40:27 | 2014-06-24T18:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | import random
from random import randint
class Entity():
"""docstring for Entity"""
def __init__(self,name, health):
self.name = name
self.health = health
def get_name(self):
return self.name
def get_health(self):
return self.health
def is_alive(self):
if... | [
"mileto94@abv.bg"
] | mileto94@abv.bg |
2ed56086a41fca06fb78b34b10bedbfee178a202 | 621ca3f68b088699c42a16051df1d64b6a5ac505 | /virtual/bin/pip3 | da45e50dbe672a6aca5e1632cfb1450927ff6f5d | [
"MIT"
] | permissive | nziokaivy/hood | 2af3bdbf1c258e504da2a4550b524319cab907bb | f82dde0f132330589aacfeefde0229d0bb909b9c | refs/heads/master | 2020-04-30T20:42:45.567319 | 2019-04-08T07:55:05 | 2019-04-08T07:55:05 | 177,075,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | #!/home/ivy/Documents/Moringa-school-projects/core-projects/python/hood/virtual/bin/python
# -*- 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())
| [
"nziokaivy@gmail.com"
] | nziokaivy@gmail.com | |
c47fd8fda3a6c52e6bd550bbca685152fa026643 | 515a97129ce1b2b8eecca4b2087fde8985b82d5b | /Code-Scraps/old_modules/SpiceBot/Main/forfuckssake.py | 18ffb3c5664225b11ec0c4fd4d80c90d641ea910 | [] | no_license | SpiceBot/scraps | 3ad6e81ac75e2b6a684fea64eb7e75477b0f4f63 | 90125e1397b57ac87cae5f3e506363aa04ddffdc | refs/heads/master | 2020-05-02T21:51:01.297114 | 2019-03-28T15:38:28 | 2019-03-28T15:38:28 | 178,232,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | #!/usr/bin/env python
# coding=utf-8
from __future__ import unicode_literals, absolute_import, print_function, division
import sopel.module
import sys
import os
moduledir = os.path.dirname(__file__)
shareddir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
sys.path.append(shareddir)
from BotShared import ... | [
"sam@deathbybandaid.net"
] | sam@deathbybandaid.net |
2ffe78d090dc035ee3e3c38344a9e74b0442c2ec | 97758972dcbc3ad0e1e6057cdf1e0265c9e26c46 | /circularly_linked_list/tests/test_insert_cyclic_list.py | ac498d7e144659df1c5b77a38f88fb40f13cdf5f | [
"MIT"
] | permissive | ahcode0919/python-ds-algorithms | a4eea3358258e0ec3802aa9bf4470aa81b399d2a | 966565753eba5414903300379db6abac1b80a3d0 | refs/heads/main | 2022-12-23T11:56:21.142540 | 2022-12-19T16:22:24 | 2022-12-19T16:22:24 | 140,489,999 | 0 | 3 | MIT | 2022-12-19T16:22:25 | 2018-07-10T21:40:32 | Python | UTF-8 | Python | false | false | 627 | py | from circularly_linked_list.insert_cyclic_list import insert
from data_structures.singly_linked_list_node import SinglyLinkedListNode
from test_helpers.test_helpers import get_cyclic_list_values
def test_insert():
head = None
assert get_cyclic_list_values(insert(head, 1)) == [1]
head = SinglyLinkedListNo... | [
"noreply@github.com"
] | ahcode0919.noreply@github.com |
745cdf579469254d8a84fa40c6cc5cde7de681e1 | e5755d76e50e902246884310a7781059bd7ff222 | /mongoDB/6.Insert.py | 7dc6eba4175fdbcb45942c935ac3da1f5130d1ee | [] | no_license | Sens3ii/PP2-2020 | 4f1f9c0588476ca415b0ae2efc0f171e826dd3f8 | 3675aa4860f727ecb26360d8624e396663dfc5b2 | refs/heads/master | 2023-05-29T15:02:17.803095 | 2021-06-14T17:05:52 | 2021-06-14T17:05:52 | 236,768,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | import pymongo
myclient = pymongo.MongoClient("mongodb+srv://students:321321@firstcluster-bxilw.gcp.mongodb.net/test?retryWrites=true&w=majority")
mydb = myclient["mydatabase"]
mycol = mydb["students"]
mylist = [
{ "_id": 1, "name": "John", "address": "Highway 37"},
{ "_id": 2, "name": "Peter", "address":... | [
"noreply@github.com"
] | Sens3ii.noreply@github.com |
fc16106826b25ab2c3851b6b86707066454ecae6 | 4fc87c7c55d431943eba76caaa76cc889e99bd3f | /npf/core/workflow/models/workflow_mytask.py | 52b87a074885ee3a7de16a31c5cd5377c973edeb | [] | no_license | Bonasolvo/npf-dev-roles | c774359b79642ae9ca2c82daeb0591677bd8e88c | dbde9493f2d23fd238dd3a6d8771bbbc5a650724 | refs/heads/master | 2016-09-01T05:35:50.246086 | 2015-12-15T07:02:40 | 2015-12-15T07:02:40 | 48,026,149 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from npf.core.workflow.models import WorkflowTaskInstance
class WorkflowMyTaskInstance(WorkflowTaskInstance):
"""
Прокси-модель: Экземпляр задачи. Используется для фильтрации всех задач по текущему пользователю и
вывода списка "Мои задачи".
"""
class Meta:
verbose_name = 'Задача'
... | [
"tymashh@Mac-Tymashh.local"
] | tymashh@Mac-Tymashh.local |
b35986bb150d6f28720c88f4ce694446174ca46c | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/cctbx/development/electron_density_sampling.py | bc7f0cf4ae8f29f9ce2b13518f1c8d09d8f3953c | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 1,856 | py | from __future__ import absolute_import, division, print_function
from cctbx import xray
from cctbx import miller
from cctbx.command_line.structure_factor_timings import read_structure
import sys
def timings(structure, wing_cutoff=1.e-3):
print("wing_cutoff for following fft calculations: %3.1e"%wing_cutoff)
for ca... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
1903fd395e39e1a5fe47d28f6a0c5d63f5ac1553 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/errors/types/ad_group_ad_error.py | 350f6684cdb369f03e6e2283d6c52be5fe489255 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,533 | 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"
] | GerhardusM.noreply@github.com |
b2303e8d7506b83777e1e38c909ccd85fcbcbcc9 | 0725d2a93c9058113d0127501fa7bbea28b4f8b1 | /venv/Lib/site-packages/tencentcloud/emr/v20190103/models.py | a26889450a0561c47cc5ae75a501f5035ed2594e | [] | no_license | liugngg/liug-001 | 8c9d39fab49b1895c213814dfec4b1bff649671b | 9ae093a3f7e042b29e756620311f0a57ad083f5c | refs/heads/master | 2023-06-06T00:14:52.548147 | 2021-06-25T07:30:26 | 2021-06-25T07:30:26 | 380,157,121 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140,185 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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... | [
"liugngg.gmail.com"
] | liugngg.gmail.com |
04e4e7fb2beff305b6436fb10b8bcb32563735f2 | d305e9667f18127e4a1d4d65e5370cf60df30102 | /tests/st/ops/ascend/test_aicpu_ops/test_fused_sparse_ftrl.py | f48235fbcabe2fb6abd5074475895f2115054473 | [
"Apache-2.0",
"MIT",
"Libpng",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"IJG",
"Zlib",
"MPL-1.1",
"BSD-3-Clause",
"BSD-3-Clause-Open-MPI",
"MPL-1.0",
"GPL-2.0-only",
"MPL-2.0",
"BSL-1.0",
"LicenseRef-scancode-unknow... | permissive | imyzx2017/mindspore_pcl | d8e5bd1f80458538d07ef0a8fc447b552bd87420 | f548c9dae106879d1a83377dd06b10d96427fd2d | refs/heads/master | 2023-01-13T22:28:42.064535 | 2020-11-18T11:15:41 | 2020-11-18T11:15:41 | 313,906,414 | 6 | 1 | Apache-2.0 | 2020-11-18T11:25:08 | 2020-11-18T10:57:26 | null | UTF-8 | Python | false | false | 1,924 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"513344092@qq.com"
] | 513344092@qq.com |
4976b2b73dfeae906d91da69abf0aeede0d747a4 | b1ba5707a5cbe918d33bc2082b3eb4ff1378c060 | /SDPython/tests/test_sd_Katana/AccessProperties.py | 3b442e9ec2a1a19b233491f26519bb652e48bb65 | [] | no_license | qq781217732/SubstanceDev | 2eb1d9ed48d477cf70c7bfdac2103bb884e9204c | b9ffab0a1b8f3c01783259074940b2712a8142b8 | refs/heads/master | 2023-03-26T00:43:35.047305 | 2021-03-01T04:12:28 | 2021-03-01T04:12:28 | 342,539,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | import sd
# Import the required classes.
from sd.api.sdproperty import SDPropertyCategory
from sd.api.sdvalueserializer import SDValueSerializer
# Get and print information regarding the selected nodes.
def printSelectedNodesInfo(nodes):
for node in nodes:
definition = node.getDefinition()
nodeId =... | [
"gaoyuyang@senseinn.com"
] | gaoyuyang@senseinn.com |
cca40c38589af36a682c1ef7ba42167804c19b98 | 7867e319f00994767fe748a107d927cf6f3181b8 | /src/pipx/interpreter.py | 6ec093c8237356a8ce3a267b9c1c35594b1509e9 | [
"MIT"
] | permissive | pypa/pipx | c34b687f7b88fe4e7f30971c05c466f6a0f45931 | 248fa37e7a0ea4a70a30a4352c0eb065137d3e15 | refs/heads/main | 2023-08-31T04:27:29.607704 | 2023-08-29T13:39:07 | 2023-08-29T13:39:07 | 151,871,286 | 3,264 | 190 | MIT | 2023-09-05T06:23:55 | 2018-10-06T18:47:46 | Python | UTF-8 | Python | false | false | 2,564 | py | import os
import shutil
import subprocess
import sys
from typing import Optional
from pipx.constants import WINDOWS
from pipx.util import PipxError
def has_venv() -> bool:
try:
import venv # noqa
return True
except ImportError:
return False
# The following code was copied from htt... | [
"noreply@github.com"
] | pypa.noreply@github.com |
2a8e16d986f346e286ee2aae5a8909a6121c790e | d2c229f74a3ca61d6a22f64de51215d9e30c5c11 | /qiskit/circuit/library/data_preparation/__init__.py | fbd033996c9e0bdefd7806a92bb64a821df9335c | [
"Apache-2.0"
] | permissive | 1ucian0/qiskit-terra | 90e8be8a7b392fbb4b3aa9784c641a818a180e4c | 0b51250e219ca303654fc28a318c21366584ccd3 | refs/heads/main | 2023-08-31T07:50:33.568824 | 2023-08-22T01:52:53 | 2023-08-22T01:52:53 | 140,555,676 | 6 | 1 | Apache-2.0 | 2023-09-14T13:21:54 | 2018-07-11T09:52:28 | Python | UTF-8 | Python | false | false | 2,205 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | 1ucian0.noreply@github.com |
97690e0df7979136e3cb322a4672832e4770244b | ae646229187ab11607e4889e1cf0e380b26fae5c | /test_joyce_code/limestone/expPatientSize.py | 837f60f645e7ee64eb8ff96888828e8171e295f7 | [] | no_license | aschein/tensor_analysis | cb60caf56713cfb7191c46d3cc20c32ea591d382 | 155754be7fa8cfb97432997cb66aa37b1a7b582b | refs/heads/master | 2021-01-17T07:44:00.657311 | 2014-09-11T20:45:14 | 2014-09-11T20:45:14 | 34,183,143 | 1 | 2 | null | 2018-08-25T20:15:18 | 2015-04-18T21:19:08 | Python | UTF-8 | Python | false | false | 1,898 | py | """
Experiment to evaluate the effect of the size on computation time
"""
import time
import numpy as np
from sklearn.decomposition import RandomizedPCA
import nimfa
import argparse
import CP_APR
import sptensor
import sptenmat
# Load the original data
filename = 'data/hf-tensor-level1-data.dat'
X = sptensor.loadTens... | [
"robchen401@gmail.com"
] | robchen401@gmail.com |
66095275cbbf3ba6d30fa9841a9b107ad96f080b | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /data/HIRun2015PbPb/HIMinimumBias2_Run263233_263293/runForestAOD_PbPb_DATA_75X.py | 231f40947da5ee5ae76e0442712abe74e3c3f970 | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,541 | py | ### HiForest Configuration
# Collisions: pp
# Type: Data
# Input: AOD
import FWCore.ParameterSet.Config as cms
process = cms.Process('HiForest')
process.options = cms.untracked.PSet()
#####################################################################################
# HiForest labelling info
######################... | [
"tatark@mit.edu"
] | tatark@mit.edu |
201d58374ddb1f5d1ca8815b7e02ca9867fdb3a1 | 95d7291ce528ab40506d111f46c4f243b4b88514 | /backend/home/migrations/0002_load_initial_data.py | 2b9ff4b97b79ec4a4c6c2e7d002e81fe6d862ff6 | [] | no_license | crowdbotics-apps/dared-3-22630 | 8d2974d89edccddffdb39b1ad120e55fcc3092e5 | b6f8edff1e762bddf9f996ff53b72225eab1375c | refs/heads/master | 2023-01-09T18:51:28.888786 | 2020-11-14T20:53:35 | 2020-11-14T20:53:35 | 312,900,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Dared 3"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
h... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9928c7ec02949ebb1ffaf41dc2a1309e05a1b420 | 07fe650b914e6577b42f3214bfdec3834e6e5eee | /gdslib/coupler_ring.py | 83c169ba15dbd3d12ef28cec15e0a6c0b91d02fa | [
"MIT"
] | permissive | sequoiap/gdslib | e2379baac55bb5715183c6e68b69dc6213d009db | 3e6d081a2196e13e89fef45cae5c7de41b96a7fc | refs/heads/master | 2022-08-01T07:54:53.880323 | 2020-05-18T18:26:42 | 2020-05-18T18:26:42 | 265,635,055 | 0 | 0 | MIT | 2020-05-20T17:12:59 | 2020-05-20T17:12:59 | null | UTF-8 | Python | false | false | 629 | py | import pp
from gdslib.load import load
def coupler_ring(c=pp.c.coupler_ring, **kwargs):
""" coupler for half a ring
.. code::
N0 N1
| |
\ /
\ /
---=========---
W0 length_x E0
"""
m = load... | [
"j"
] | j |
6cc4227ceafde33b34a254323ad23ffc0142a679 | 7f02a1297660601d40d5781cb7adbc2f4520029f | /macode/vae/train/atari_all.py | b0cedeff19ad6f234acaadddeec618235324a222 | [] | no_license | llach/ma-code | 2c4fb20ae1df9d457ec6736d3725104f37203824 | b8e6c279f966e6b9fadfa67731d8adb970106413 | refs/heads/master | 2020-04-16T18:34:36.242778 | 2019-07-21T13:43:03 | 2019-07-21T13:43:03 | 165,826,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import tensorflow as tf
from forkan.models import VAE
from forkan.datasets import load_atari_normalized
learning_rate = 1e-4
beta = 5.5
latents = 20
for name in ['pong', 'breakout', 'boxing', 'gopher', 'upndown']:
data = load_atari_normalized(name)
v = VAE(data.shape[1:], name=name, lr=learning_rate, beta=be... | [
"llach@techfak.uni-bielefeld.de"
] | llach@techfak.uni-bielefeld.de |
6955829c9dcbcfbf6e414fa698bc84b446ebf450 | 8a82a83655f118208692e55d7804d9fa480ad4b6 | /book/packt/Mastering.Python.Scientific.Computing/Chapter 8/B02092_08_14.py | 16ebc5170e994c476513f720fd77f6f03af65761 | [] | no_license | xenron/sandbox-da-python | 0814159da9a91923e4b66c5e40057e381f765e96 | ab8f1c0d57fdc6006355f613012b84165068c315 | refs/heads/master | 2020-04-12T05:41:33.182110 | 2016-12-14T22:57:33 | 2016-12-14T22:57:33 | 60,324,979 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/env python
import sys
for line in sys.stdin:
try:
line = line.strip()
# split the line into words
words = line.split()
# increase counters
if words[0] == "WARC-Target-URI:" :
uri = words[1].split("/")
print '%s\t%s' % (uri[0]+"//"+uri[2], 1)
except Exception:
""
#hadoop jar /usr/local/... | [
"xenron@outlook.com"
] | xenron@outlook.com |
3767bcf0f0bfe6b74fb52776c215a52ebbceecfe | 7506c49859870af9e62c3e919857ffcdf2e9a19e | /book2/Seq2SeqLearning/statistic_word5.py | 66fde97061d026ee8ff261cf27241b565937ef27 | [] | no_license | Git2191866109/BookStudy | d363717285a5e9767e582f6efd1258680fa26f80 | f172244218871372ca94286c3db64cf334627ef3 | refs/heads/master | 2022-11-08T00:15:00.963332 | 2020-06-28T10:28:33 | 2020-06-28T10:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,744 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# coding=utf-8
"""
@author: Li Tian
@contact: 694317828@qq.com
@software: pycharm
@file: statistic_word5.py
@time: 2019/4/29 10:39
@desc: 用tf.while_loop来实现解码过程
"""
import tensorflow as tf
import codecs
# 读取checkpoint的路径。9000表示是训练程序在第9000步保存的checkpoint
C... | [
"694317828@qq.com"
] | 694317828@qq.com |
8fed339d0d009e1232013c23f8458a9a76188cf0 | 031b24455b953907a0f98778931ee8a03c3c4b6c | /pacman103/core/spinnman/spinnman_utilities.py | 7a49d1ec7d9bba135a19329c236b5ed8deeb1056 | [] | no_license | BRML/HBP-spinnaker-cerebellum | 7e5f69c05d0e51f79442635df58815768f20e6bc | 7fc3eb5c486df66720d227e0e422cbab65c08885 | refs/heads/master | 2020-12-25T23:47:09.416213 | 2015-06-26T09:45:31 | 2015-06-26T09:45:31 | 38,686,607 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | __author__ = 'stokesa6'
import os
class SpinnmanUtilities(object):
def __init__(self, dao=None, input_file=None):
self.runtime = None
self.total_processors = None
self.app_loads = list()
self.mem_writes_from_file = list()
self.mem_writes = list()
if dao is not None:... | [
"dr.christoph.richter@gmail.com"
] | dr.christoph.richter@gmail.com |
ebc299fc609c9f70d3b6bb73526b7c530b6aad85 | f65be296b831982b187cb3c3a1c82740fec15b5a | /ineco_tax_include/account.py | bd62769cf187b9dbca6b460bc4eff50915aaa2f6 | [] | no_license | nitikarnh/bpe_module | ab05af81f7dae10129ec584233423d4e5c3c7f3d | 6b1057495b277dc69023554d5d4e7bf172ba07c1 | refs/heads/master | 2020-05-21T16:40:05.291099 | 2017-10-24T09:11:01 | 2017-10-24T09:11:01 | 64,814,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,151 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"thitithup@gmail.com"
] | thitithup@gmail.com |
676010352aa2bc30d4196954eda4a4fd5a1caaa7 | 7fbb5025602c99d1438e94d3db4f1ad886be18fc | /mpf/modes/bonus/__init__.py | 00adf485510832881f55c6ee7f01aa065dc67d69 | [
"MIT",
"CC-BY-4.0"
] | permissive | abencz/mpf | 519bd54c4ea7fb230eaf48316845091893a06489 | c1f40d1c94bdb77e60cef15f531bc98f443ceec9 | refs/heads/0.30 | 2020-04-05T18:30:37.819828 | 2016-08-29T22:39:08 | 2016-08-29T22:39:08 | 65,430,713 | 0 | 0 | null | 2016-08-11T02:12:01 | 2016-08-11T02:12:01 | null | UTF-8 | Python | false | false | 29 | py | """Contains a bonus mode."""
| [
"jan-mpf@kantert.net"
] | jan-mpf@kantert.net |
a534743075eff3bc484d4ecb49af2297db59755c | 8ded62b315fc3e325833d91caa885776e46ebead | /geatpy/demo/single_objective_demo5/main.py | 3fea0027833b9470ad3502501703584c2e785879 | [] | no_license | CL-White/geatpy | 46079c501d72763b629b9654e07d38adefa2f848 | 3921306b310c91f0bb7aab22f718ab0ba44d600b | refs/heads/master | 2020-04-13T23:59:03.770713 | 2018-12-21T06:55:07 | 2018-12-21T06:55:07 | 163,521,396 | 1 | 0 | null | 2018-12-29T15:30:55 | 2018-12-29T15:30:55 | null | UTF-8 | Python | false | false | 1,629 | py | # -*- coding: utf-8 -*-
"""
执行脚本main.py
描述:
该demo是展示如何计算带约束的任务指派问题
其中目标函数和约束条件写在aimfuc.py文件中
问题如下:
设有5个人,5个任务。
已知这5个人每小时工作要求的工资分别是1,2,3,4,5元,
而这5个任务分别耗时1,2,3,4,5小时。
此外,已知工人1无法完成第2和第4个任务;工人3无法完成第1和第4个任务。
现要求给每个人分配去完成不同的任务,要求老板一共支付工人的工钱数最少。
因为问题需要用排列编码的染色体来解决,因此本案例调用了“sga_new_permut_temple... | [
"jazzbin@geatpy.com"
] | jazzbin@geatpy.com |
ac0e03f089553008be7076ba6ad23656ff3032d2 | 00540621f1ce1038a6fd5550b868931d9d02829a | /IPProxyPool/util/compatibility.py | 9e21c93b7aaeba3210dd4c79fda013c91eea4603 | [
"Apache-2.0"
] | permissive | MisterZhouZhou/pythonLearn | 392a3c0f31d0d3a61a43ae27b4a24c6d15316722 | 8933c7a6d444d3d86a173984e6cf4c08dbf84039 | refs/heads/master | 2020-05-19T18:53:08.451360 | 2019-07-18T07:01:51 | 2019-07-18T07:01:51 | 185,164,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # coding:utf-8
import sys
PY3 = sys.version_info[0] == 3
if PY3:
text_type = str
binary_type = bytes
else:
text_type = unicode
binary_type = str
def text_(s, encoding='utf-8', errors='strict'):
if isinstance(s, binary_type):
return s.decode(encoding, errors)
return s
def bytes_(s, e... | [
"m15038960016@163.com"
] | m15038960016@163.com |
179e8aa96fbd0a11d883b2da40dc69431c00f40e | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/v1_0/devicescorpmgt_v1_0/azext_devicescorpmgt_v1_0/vendored_sdks/devicescorpmgt/aio/operations_async/_device_app_management_managed_app_registration_applied_policy_operations_async.py | 8fb43691c6645917a280dbc32ead62781233dd0b | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,249 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
b2545483337881d35bc202af30352ec1f39361c6 | a44b918826fcbeccb6b70a295d98ca0a31007c13 | /Koudai/Server/release/Script/PyScript/Action/action12057.py | 568de94028d8a9ba6a5488d3dd22f347debf6ba1 | [] | no_license | Pattentively/Scut-samples | a5eff14506f137e409aa7f6139825fbff09e40a2 | 824037857450ca6e580d2bf6710679331132e6fe | refs/heads/master | 2021-01-22T01:05:22.578877 | 2015-04-27T01:53:53 | 2015-04-27T01:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | import clr, sys
import random
import time
import datetime
import ReferenceLib
from lang import Lang
from action import *
from System import *
from System.Collections.Generic import *
from ZyGames.Framework.Common.Log import *
from ZyGames.Tianjiexing.Model import *
from ZyGames.Tianjiexing.BLL import *
f... | [
"wzf_88@qq.com"
] | wzf_88@qq.com |
d9d2239e1b1af794739b1c6def6e3cfe648785d9 | ddda55fcfc84ac5cd78cfc5c336a3df0b9096157 | /projects/gd32f303-demo/board/SConscript | 060557bb0a4e56f4bc0b79aa63de2f2cbaa77954 | [
"Apache-2.0"
] | permissive | liu-delong/lu_xing_xiang_one_os | 701b74fceb82dbb2806518bfb07eb85415fab43a | 0c659cb811792f2e190d5a004a531bab4a9427ad | refs/heads/master | 2023-06-17T03:02:13.426431 | 2021-06-28T08:12:41 | 2021-06-28T08:12:41 | 379,661,507 | 2 | 2 | Apache-2.0 | 2021-06-28T10:08:10 | 2021-06-23T16:11:54 | C | UTF-8 | Python | false | false | 1,037 | import os
import osconfig
from build_tools import *
sys.path.append(Env['OS_ROOT'] + '/drivers/hal/gd/scripts/')
pwd = PresentDir()
LIBS = []
LIBPATH = []
# add general drivers
src = Split('''
board.c
CubeMX_Config/Src/gd32f30x_it.c
CubeMX_Config/Src/system_gd32f30x.c
''')
# path include path in project
path =... | [
"cmcc_oneos@cmiot.chinamobile.com"
] | cmcc_oneos@cmiot.chinamobile.com | |
d9ae372f842f837ad2873725740adc882eeccff2 | 684a9016bf00e132eab3c9cf4534639ae096cfc5 | /Main/dlnaupnpserver/ServerClass.py | ab0249376c9d385dcead51ad84cea188e86f85d2 | [
"BSD-3-Clause",
"MIT"
] | permissive | pszafer/dlna_upnp_invention | d97a0c641d1d7b170378f0fad5b978d8e5576966 | 497d173a9e3883412dbbb17cafa826a0394ff849 | refs/heads/master | 2021-01-02T09:35:04.628203 | 2012-07-10T15:02:53 | 2012-07-10T15:02:53 | 1,980,638 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,922 | py | '''
Created on 05-07-2011
@copyright: 2011,
@author: Pawel Szafer
@license: Licensed under the BSD license
http://www.opensource.org/licenses/bsd-license.php
@contact: pszafer@gmail.com
@version: 0.8
@note:this is only test module
'''
from twisted.internet import reactor
from modCoherence.base import Coherence
... | [
"pszafer@gmail.com"
] | pszafer@gmail.com |
15ba5830a4ff5c10b5f9b04726ad9ef517dec34e | 0e647273cffc1fb6cbd589fa3c7c277b221ba247 | /configs/hpt-pretrain/chexpert_rm_color/base-chexpert_rm_color-config.py | bf0ba57feabab69c163a32da34d296ce91df454b | [
"Apache-2.0"
] | permissive | Berkeley-Data/OpenSelfSup | e9976bf011b69ebf918506ba184f464b1073ec13 | 221191b88d891de57725b149caf237ffef72e529 | refs/heads/master | 2023-05-12T07:34:52.268476 | 2021-04-08T00:58:37 | 2021-04-08T00:58:37 | 343,654,823 | 0 | 1 | Apache-2.0 | 2021-04-08T00:58:37 | 2021-03-02T05:20:27 | Python | UTF-8 | Python | false | false | 2,019 | py | _base_ = '../../base.py'
# model settings
model = dict(
type='MOCO',
pretrained=None,
queue_len=65536,
feat_dim=128,
momentum=0.999,
backbone=dict(
type='ResNet',
depth=50,
in_channels=3,
out_indices=[4], # 0: conv-1, x: stage-x
norm_cfg=dict(type='BN')),... | [
"taeil.goh@gmail.com"
] | taeil.goh@gmail.com |
ce2901dd98d7ea783a9d14e70295121f5c69db4c | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/export_sql_job_result_request.py | ce6445aee0752af2e044cada575e4d159696ae5d | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,877 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ExportSqlJobResultRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is at... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
19788b4aba6724c127c6db8862d91a21a8586c99 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_08_01/models/__init__.py | e592b28040ea7a510acc836e19f07934db25ff4d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 2,077 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
96855b7975e0f1672164b652aaf3d0254e458dfe | 271c7959a39f3d7ff63dddf285004fd5badee4d9 | /venv/Lib/site-packages/alembic/testing/mock.py | 08a756cbc27e1fab3cda7021d4cbb7b54f3f0187 | [
"MIT"
] | permissive | natemellendorf/configpy | b6b01ea4db1f2b9109fd4ddb860e9977316ed964 | 750da5eaef33cede9f3ef532453d63e507f34a2c | refs/heads/master | 2022-12-11T05:22:54.289720 | 2019-07-22T05:26:09 | 2019-07-22T05:26:09 | 176,197,442 | 4 | 1 | MIT | 2022-12-08T02:48:51 | 2019-03-18T03:24:12 | Python | UTF-8 | Python | false | false | 791 | py | # testing/mock.py
# Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Import stub for mock library.
NOTE: copied/adapted from SQLAlchemy master f... | [
"nate.mellendorf@gmail.com"
] | nate.mellendorf@gmail.com |
ea7556a795f4b376364386c416a52e7d6026666c | ace30d0a4b1452171123c46eb0f917e106a70225 | /filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/nova/conf/notifications.py | 0fbb4593cda237954c01736736ed53ac75382305 | [
"Python-2.0"
] | permissive | juancarlosdiaztorres/Ansible-OpenStack | e98aa8c1c59b0c0040c05df292964520dd796f71 | c01951b33e278de9e769c2d0609c0be61d2cb26b | refs/heads/master | 2022-11-21T18:08:21.948330 | 2018-10-15T11:39:20 | 2018-10-15T11:39:20 | 152,568,204 | 0 | 3 | null | 2022-11-19T17:38:49 | 2018-10-11T09:45:48 | Python | UTF-8 | Python | false | false | 3,947 | py | # Copyright (c) 2016 Intel, Inc.
# Copyright (c) 2013 OpenStack Foundation
# 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/li... | [
"jcdiaztorres96@gmail.com"
] | jcdiaztorres96@gmail.com |
a446f60b5e3cc2db0a5399fdccafb587ed11a532 | c8c855a6ebb3b3101e5c3a80b94514c36b103495 | /semana_2/serie_tv.py | b9a2da939fc0ae024cc6661b2e2a9305923e2f70 | [] | no_license | K-A-R-L-A-Robles/poo-1719110219 | 835965c0e3100c9d6770678eb67920945942fa80 | 7d1fc57cd4157e5b52a153210311821d8290144d | refs/heads/master | 2022-11-03T04:54:42.675869 | 2020-06-15T03:46:42 | 2020-06-15T03:46:42 | 265,970,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | class serie_tv:
"Atríbuto"
genero= "drama"
actores= "30"
horario= "7-8pm"
canal= "308"
difinicion = "hd"
edad= "mayores_13"
capitulos = "10"
idioma= "inglés-español"
duracion= "1hora"
trama="tristeza"
"Métodos"
def entretener(self):
print("entretener")
def emociones(self):
print("... | [
"replituser@example.com"
] | replituser@example.com |
fa88201c4c9b2211e6fc5b0e29819c8d8cb30a1e | 4ff94bdde94640d65c5a429be78cff5c8169689f | /spacescoops/compile.py | 371b1473878434d170213dfa66c1a19ebe30e789 | [] | no_license | unawe/spacescoop | db91058af55fcc51bb6535e89bb3b5f29fb75493 | 35caab11c556c124d04ea8fcb3ad012af7e5e39f | refs/heads/main | 2021-07-24T18:39:09.931385 | 2021-06-14T16:09:38 | 2021-06-14T16:09:38 | 315,893,040 | 2 | 1 | null | 2021-06-14T16:01:23 | 2020-11-25T09:40:44 | JavaScript | UTF-8 | Python | false | false | 717 | py | import os
from django.conf import settings
from django_ext.compiler import PdfCompiler
from .models import Article
OUT_PATH = os.path.join(settings.MEDIA_ROOT, 'articles', 'download')
OUT_URL = os.path.join(settings.MEDIA_URL, 'articles', 'download')
PRINT_PREVIEW_URLPATH = 'scoops:print-preview'
def pdf_filename... | [
"edward@gomez.me.uk"
] | edward@gomez.me.uk |
a29a1f36d0199651c392bdc7122776de7e49a978 | d1f1f05e4713c4011634f0e4247798f31d58c3a6 | /scanning/base_raster_slow_scan.py | 3fc9545e482a9605f3f36e04c9fb64000623039b | [
"BSD-3-Clause"
] | permissive | patrickurban/ScopeFoundry | 8463695277bfb9c0b267b3b6f02fe5a1d20b4fd9 | 4c5a9430fad0b63d39014bed81a6ffc0af07c4df | refs/heads/master | 2021-01-01T16:48:24.432671 | 2017-06-08T23:26:26 | 2017-06-08T23:26:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,841 | py | from .base_raster_scan import BaseRaster2DScan
from ScopeFoundry import h5_io
import numpy as np
import time
import os
class BaseRaster2DSlowScan(BaseRaster2DScan):
name = "base_raster_2Dslowscan"
def run(self):
S = self.settings
#Hardware
# self.apd_counter_hc = sel... | [
"esbarnard@lbl.gov"
] | esbarnard@lbl.gov |
4666470fddd067baae63e9674af988c217531a52 | ff7d3116024c9df01b94191ddfa334e4a6782ae6 | /arbeid/wsgi.py | 7e7bcbe2174f9dbca3af07aa337ee738a4dfd3fc | [
"MIT"
] | permissive | jhnnsrs/arbeider | f5f708ee1026a9e9573a6f8a87c3b9e2fd6b5e33 | 4c5637913331c998a262ae0deca516b236845200 | refs/heads/master | 2021-05-26T10:31:16.279628 | 2020-04-08T13:40:26 | 2020-04-08T13:40:26 | 254,095,863 | 0 | 0 | MIT | 2020-04-08T13:40:28 | 2020-04-08T13:29:31 | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for arbeid project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"jhnnsrs@gmail..com"
] | jhnnsrs@gmail..com |
cea6a9d224a588d0e6741186eb9b225d866a0cf1 | 06292f96cba132ca57777672a447cfff7c5abee6 | /week5/tut/submit/2.py | 965de3af9b37ce5f09db1489af166faccca72298 | [] | no_license | kietteik/ppl | 1746440b12affe71e67d6f958922b32b1fdaab5c | 2ee60582e81595b8d8b5d0f8212d20151cfe9264 | refs/heads/master | 2023-03-01T00:24:36.969189 | 2021-01-31T05:15:13 | 2021-01-31T05:15:13 | 305,802,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from functools import reduce
def flatten(lst):
'''2. a'''
return [item for sub_lst in lst for item in sub_lst]
def flatten(lst):
'''2. b'''
if not lst:
return []
return lst[0] + flatten(lst[1:])
def flatten(lst):
'''2. c'''
return list(reduce(lambda x, y: x + y, lst, []))
| [
"kietteikdoi@gmail.com"
] | kietteikdoi@gmail.com |
c5e0d6a51c84cd160f45fb4691d64910fd51cf86 | 2579f37a13cfbb47944c5b81c6e83ca710b29f88 | /Server/core/Server_commication_User.py | df8157c2a18a3c9ad89863727fd336831b399315 | [] | no_license | YangQian1992/FTP | 932f32d5ed934bae295bd674757f7af23d0ad1ba | 87d3a78522e7eb8058def1d74d7f32f0f61f1b86 | refs/heads/master | 2020-03-31T16:28:35.146329 | 2018-10-10T06:53:12 | 2018-10-10T06:53:12 | 152,376,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,942 | py | import sys
import os
import hashlib
from Server.config.Server_config_info import server_config_info
#建立基础常量
IP_PORT = (server_config_info['SERVER_IP'],server_config_info['SERVER_PORT'])
class user_info:
def __init__(self):
#sys.path[0]='G:\\PycharmProjects\\项目\\ftp_proj_base\\Server\\core'
serve... | [
"1289089651@qq.com"
] | 1289089651@qq.com |
863e8c47634a573e339090752dad971e80cb3be0 | 795b68819d51af14dfabb8dbe40c9e8153029188 | /make_spiral.py | e65ca25352a9beeefce09d476853f079e5c97963 | [] | no_license | MotazBellah/Code-Challenge | 507f1fd3d5b3265e54905979c80d609afd81c54d | c38c95239193e26c1a88f6736d2ab9ee37185964 | refs/heads/master | 2022-02-25T02:54:10.216892 | 2022-02-19T19:28:05 | 2022-02-19T19:28:05 | 193,115,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | # https://www.codewars.com/kata/534e01fbbb17187c7e0000c6/train/python
# Your task, is to create a NxN spiral with a given size.
# For example, spiral with size 5 should look like this:
# 00000
# ....0
# 000.0
# 0...0
# 00000
# Return value should contain array of arrays, of 0 and 1, for example for given size 5 result ... | [
"engineer.android@yahoo.com"
] | engineer.android@yahoo.com |
6036c62127661ec04d262385fa810421752a0bde | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02647/s587144244.py | 32c73c2e731aa2116ac14b30639794e570dcf3d6 | [] | 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 | 465 | py | def action(A, N):
B = [0] * N
for i, bright in enumerate(A):
s = max(0, i - bright)
B[s] += 1
e = min(N, i + bright)
if e < N - 1:
B[e + 1] -= 1
for i in range(N - 1):
B[i + 1] += B[i]
return B
def main():
N, K = map(int, input().split())
A = list(map(int, input().split()))
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
99fd7c389db08acda41a846ad6ffa8cc4039453c | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /D6XfxhRobdQvbKX4v_13.py | 5561fb6cf05642ceb60cb7daef49927c53d87e6a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | """
You are given three inputs: a string, one letter, and a second letter.
Write a function that returns `True` if every instance of the first letter
occurs **before** every instance of the second letter.
### Examples
first_before_second("a rabbit jumps joyfully", "a", "j") ➞ True
# Every instance of "a" ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
89a3190c1a4237cb81fa42e43e1b2a8bf7ff2925 | 27d92b640d3814fa5dc8040b79a99d077cba3aae | /cpython/Tools/scripts/combinerefs.py | e10e49ad7c72b37991ca927e805f40223ee75636 | [
"GPL-1.0-or-later",
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-python-cwi"
] | permissive | ms-iot/python | 99a0f4d3dd3926703d49b75910c78c69cdb7aed7 | a8f8fba1214289572713520f83409762a4446fea | refs/heads/develop | 2022-12-07T23:26:31.339811 | 2017-11-17T02:24:32 | 2017-11-17T02:24:32 | 31,045,533 | 73 | 39 | BSD-3-Clause | 2022-11-16T20:24:24 | 2015-02-20T01:01:09 | Python | UTF-8 | Python | false | false | 4,414 | py | #! /usr/bin/env python3
"""
combinerefs path
A helper for analyzing PYTHONDUMPREFS output.
When the PYTHONDUMPREFS envar is set in a debug build, at Python shutdown
time Py_Finalize() prints the list of all live objects twice: first it
prints the repr() of each object while the interpreter is still fully intact.
Af... | [
"juanyaw@exchange.microsoft.com"
] | juanyaw@exchange.microsoft.com |
d521134ee74c8fcdabfbf01d11310000cd770fd8 | 5e55858ef75c62921f8be2f2f6d19ebfe98a2d88 | /5kyu/two_strings.py | 3d70a10b12c4e90f6d10caddd13f76cfbe11546d | [] | no_license | Uthaeus/codewars_python | 63abd96b66cb81f86e05b244a24c2c4de2f321e4 | 4b00c74ce0173bcf8527da7e4ef381d6802dde16 | refs/heads/master | 2021-06-01T10:34:30.688941 | 2020-11-01T19:17:32 | 2020-11-01T19:17:32 | 134,450,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | # Input Strings a and b: For every character in string a swap the casing of every occurrence of the same character in string b. Then do the same casing swap with the inputs reversed. Return a single string consisting of the changed version of a followed by the changed version of b. A char of a is in b regardless if it'... | [
"romanlavery@gmail.com"
] | romanlavery@gmail.com |
69bbcb51206c9a2dcbff2e6cc1eaf45346263a7a | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210529113936.py | 21e3cf9871b43012cc06f98807e2c0817b4cbdec | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,921 | py | from flask import Flask, render_template, redirect, url_for, flash, request
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
98dea60f0782c91c98ee5568018f96a7c2856a04 | 532e4cdd9c0b72c444b13ef669b788f3c629074d | /expo/scheduler/data_transfer.py | c893cfa4ba5327b4d2a2c5fedbf8f0ed2460ac61 | [] | no_license | bethlakshmi/GBE2 | 3b2b5a677637759fd22220f3272336d9dfc5750e | e8e030a12946901ccb9f56a9a3c6a022a6a8c5c8 | refs/heads/master | 2021-01-23T09:02:40.253304 | 2019-05-01T01:39:51 | 2019-05-01T01:39:51 | 17,325,575 | 7 | 3 | null | 2019-04-29T03:52:18 | 2014-03-01T22:14:43 | Python | UTF-8 | Python | false | false | 4,791 | py |
class Person(object):
def __init__(self,
booking_id=None,
user=None,
public_id=None,
public_class="Performer",
role=None,
label=None,
worker=None):
if worker:
self.role = work... | [
"bethlakshmi@gmail.com"
] | bethlakshmi@gmail.com |
965cf3b5c4d6b07442c90621692a3c7c1c91d249 | 729243a020efed22445849c5cd95e78506f9845d | /Semana02/prog07.py | e9f57ada5268f62c217a8b7dbd7690afb0d86dd5 | [] | no_license | yuri-almeid/SEII-YuriLimaAlmeida | 6f031667943f469827bcb89db968d5b7a0188c2f | 81fbf275fcc74a99d8b3630c953aece416546416 | refs/heads/main | 2023-08-10T19:49:18.162469 | 2021-10-07T11:02:25 | 2021-10-07T11:02:25 | 347,435,913 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py |
def pass_func():
pass
def hello_func():
return 'Hello Function'
def hello_func_greeting(greeting, name='You'):
return '{}, {}'.format(greeting, name)
print(pass_func)
print(hello_func())
print(hello_func().upper())
print(hello_func_greeting('Bye'))
def student_info(*args, **kwargs):
print(ar... | [
"yurilima95@gmail.com"
] | yurilima95@gmail.com |
906f027f40c8a6910f73ee7bc7f3b9e2a224bb64 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/tlm/training/debugging_model/run_ck_lr_opt_copied.py | f06da55e5bada644bbbda70ee07688dfe9b8d142 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 1,400 | py |
from my_tf import tf
from taskman_client.wrapper import report_run
from tf_util.tf_logging import tf_logging, MuteEnqueueFilter
from tlm.model.base import BertConfig
from tlm.training.debugging_model.classification_opt_copied import model_fn_classification
from tlm.training.flags_wrapper import get_input_files_from_fl... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
c40b20a7acd6aaddf25f265954ebe8ee03ced8d1 | 396d5838873d84145e5b125a8c1bc3db2313ac8f | /tests/conftest.py | cbca1a49f99b4a6ca40353b42289414df64a8a97 | [
"MIT"
] | permissive | magnologan/sqlalchemy_aio | 96480d2be46bae804b6bdc0e59568fb240d12b0e | 915b00bd024b29afa712749695c0ad4ced0e9c37 | refs/heads/master | 2023-05-26T18:44:48.870565 | 2016-12-19T01:36:00 | 2016-12-19T01:36:00 | 77,687,272 | 0 | 0 | NOASSERTION | 2023-05-17T01:59:44 | 2016-12-30T13:17:13 | Python | UTF-8 | Python | false | false | 1,110 | py | import pytest
from sqlalchemy import Column, Integer, MetaData, Table, create_engine, event
from sqlalchemy_aio import ASYNCIO_STRATEGY
def fix_pysqlite_transactions(engine):
"""See http://docs.sqlalchemy.org/en/latest/dialects/
sqlite.html#serializable-isolation-savepoints-transactional-ddl
"""
@ev... | [
"frazer@frazermclean.co.uk"
] | frazer@frazermclean.co.uk |
cbc9e2fa617c023d59f637da868347726bef60c7 | 7ba5ec9aa9ddca3f9b3384fc4457b0a865c2a0a1 | /src/397.py | 536dc63ec74a520ba95396ed731a8cdb9ac5918e | [] | no_license | ecurtin2/Project-Euler | 71f79ee90a9abd0943421677d78a6c087419e500 | 79479da7a45b3ae67c0c7ea24da5f7d43c6f25d3 | refs/heads/master | 2021-03-19T14:52:57.045443 | 2018-04-12T22:05:37 | 2018-04-12T22:05:37 | 100,059,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | """
On the parabola y = x2/k, three points A(a, a2/k), B(b, b2/k) and C(c, c2/k) are chosen.
Let F(K, X) be the number of the integer quadruplets (k, a, b, c) such that at least one angle of the triangle ABC is 45-degree, with 1 ≤ k ≤ K and -X ≤ a < b < c ≤ X.
For example, F(1, 10) = 41 and F(10, 100) = 124... | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
fb1fc36e9c6ef029516926c94dcb77ea38e889f8 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /StructuredFund/creationRedemption/YW_GPMM_SZXJ_068.py | b95472014ee745c0484b0c9227976c740b7b3614 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,515 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/StructuredFund/serviceCreationRedemption")
from mainService import *
from QueryStructuredFundInfo import *
sys.path.append("/home/yh... | [
"418033945@qq.com"
] | 418033945@qq.com |
fcd715b6160b971e53992a3d28a0a9732a3fc8b2 | a893537a71aa285071a68035c968ba6f5c0ca57d | /ch08/79/79_one_layer_linear.py | 920abd33cdaa3671c3f03e7b8b86fca8e0ed3ea2 | [] | no_license | sinchir0/2020_NLP100 | 0a1810b0c299c29fa1a811f68fa87be74f9b3cf9 | 772123da5b5ac4094c26fdce2e192637dc55190a | refs/heads/main | 2023-07-18T04:03:04.123302 | 2021-09-08T22:54:44 | 2021-09-08T22:54:44 | 257,416,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | # 79. 多層ニューラルネットワーク
# 問題78のコードを改変し,バイアス項の導入や多層化など,ニューラルネットワークの形状を変更しながら,高性能なカテゴリ分類器を構築せよ.
from typing import Union
import matplotlib.pyplot as plt
import numpy as np
import torch
from torch import nn
from torch.utils.data import DataLoader, Dataset
from tqdm import tqdm
class TextDataset(Dataset):
def __init__(... | [
"s-saito@chic.ocn.ne.jp"
] | s-saito@chic.ocn.ne.jp |
fd004e23d8775a14f91d226e6f75843c058b5f43 | 369b7f114f9bd9b45dd5fef77a070cb73abb68d1 | /handle/itl/temp/handleForWh.py | adbc5ffe74a6e805871bce67b303dfa25a1570e6 | [] | no_license | lyjloveabc/thor_handle | d790ee25317f724825c94a6b346a034ec0ae6e3d | 8b9eda97ec873f3bf1732a428898a04d6a55c0af | refs/heads/master | 2021-12-27T10:15:16.668264 | 2021-08-16T13:45:34 | 2021-08-16T13:45:34 | 84,824,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | base_sql = 'INSERT INTO itl_job_title VALUES ("{id}", now(), now(), "{name}", "", "{remark}", "公司总部");'
with open('hehe.txt', 'r') as f:
index = 19
for line in f.readlines():
hehe = line[:-1].split(' ')
print(base_sql.format(id=index, name=hehe[0], remark=hehe[1]))
index += 1
| [
"546223592@qq.com"
] | 546223592@qq.com |
ae227652a174fe7076a5a971d1021bb31d494c08 | e2c84bbefe728e20042a6befdf9effd0480b6cf0 | /Text_processing/2. Character Multiplier.py | e2632389cf8db53afacd592a70c798b43c0c9eee | [] | no_license | vmakksimov/PythonFundamentals | ffe5f606f592a9f0650f45f225936f13f4659992 | 4a5b74e40cfaa19f777187404428e0dff9d66a16 | refs/heads/main | 2023-08-22T03:33:15.002041 | 2021-10-15T00:07:58 | 2021-10-15T00:07:58 | 410,258,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | strings = input().split()
string1 = strings[0]
string2 = strings[1]
total_sum = 0
first_sting = []
second_digit = []
for chr in string1:
first_sting.append(ord(chr))
for chr in string2:
second_digit.append(ord(chr))
cycle_iterations = min(len(first_sting), len(second_digit))
max_cycle = max(len(first_sting), l... | [
"vmakksimov@gmail.com"
] | vmakksimov@gmail.com |
8100d9893fc619b66301d1b5f001351c8053147b | 3fcfdcca48457b6166c220e6cea31d610b87b7bf | /viseducat_exam/wizard/__init__.py | 76cb73290e35b6c8dbc6033c6988bced4fac0c0c | [] | no_license | celaltas/ViseducatCommunity | 8e0990667e847730f493ee2b223620c8476bc5c8 | 16ca6ce9ec31aa92bb9e5df934d97ee9b603f553 | refs/heads/master | 2023-05-05T10:15:39.215267 | 2021-05-24T20:47:24 | 2021-05-24T20:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from . import held_exam
from . import room_distribution
from . import student_hall_tickets_wizard | [
"celal.tas123@gmail.com"
] | celal.tas123@gmail.com |
911acf65537c8dd5a41f4d656e1c3818bae26905 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2307/60581/234662.py | d8aff6f4b42dcf471b1cc7a0261a810c5e9f8fef | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import sys
lst = []
for line in sys.stdin:
if line.strip() == '':
break
lst.append(line)
number = lst[0]
wholeCount = 0
beginNumber = 1
while wholeCount < int(number):
answer = []
numberOfList = int(lst[beginNumber])
numberList = lst[beginNumber+1].split()
for i in range(0,len(numberLi... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a3a2782843a392afae3025bc78ecd02479d01184 | 19d9d25bf1de4007f42abc43acaa23d66c3428ab | /apps/about/admin.py | 8eeb24983365004463d91b92632619725eadc495 | [] | no_license | od-5/enjoy-sa | aa567268941d818212cf1e0b3358df470f4c29e9 | 5e3600aaab3e4f405680f9f32bffb4be0f2bf601 | refs/heads/master | 2021-01-10T05:48:06.442696 | 2016-03-23T11:48:49 | 2016-03-23T11:48:49 | 45,059,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # coding=utf-8
from django.contrib import admin
from .models import About
__author__ = 'alexy'
class AboutAdmin(admin.ModelAdmin):
list_display = ('title',)
admin.site.register(About, AboutAdmin)
| [
"od-5@yandex.ru"
] | od-5@yandex.ru |
ba7472cea52dbd9a622962746d153fa5d21696f7 | 4723fed48970c7bcc50eaa3acbe1c66577f8f3cb | /ss/download/ss_coroutine.py | b939bdb56235bd2575c73012a01e8d8d6d4be429 | [] | no_license | myetc4/spider | c03157f2203ea3c0ae0af30dc66e810f0ca20d06 | 4ffb36bc2551c1494ebdf0357da69ebb1c6c524d | refs/heads/master | 2020-04-02T01:44:23.358947 | 2018-10-20T03:43:35 | 2018-10-20T03:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/10/18 22:07
# @Author : SmallStrong
# @Des :
# @File : ss_coroutine.py
# @Software: PyCharm
import sys
import os
# 被逼无奈
sys.path.append(os.getcwd().replace('/ss', ''))
from ss.spider_core import go
from ss.common.func import exe_time
from gevent ... | [
"393019766@qq.com"
] | 393019766@qq.com |
4374be84930a4f11eb60ad2e0cdd4aaf8ed777ac | bbf744bfbfd9a935bd98c7cf54152a5d41194161 | /chapter_05/e5-7_favorite_fruit.py | 784ea00cac661066d715db00f0f223d403b8582c | [] | no_license | terranigmark/python-crash-course-projects | 65a7863be2d26fe8b91ac452b12203386eb0259a | 79ed9ed8e6a1bf015990a9556689379274231d13 | refs/heads/master | 2022-12-05T21:59:00.352140 | 2020-08-21T04:59:50 | 2020-08-21T04:59:50 | 266,263,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py |
def main():
favorite_fruits = ['melon', 'watermelon', 'apple', 'pineapple', 'banana', 'cranberry']
for times in range(5):
fruit = str(input("Pick a fruit to know if it's on my list: "))
if fruit in favorite_fruits:
print(f"You really like {fruit}")
if __name__ == "__main__":
... | [
"linnk99@gmail.com"
] | linnk99@gmail.com |
ae46917b4e5e1ee29516b367b756951f1ce8df78 | f60b964dc39ba54bb84f1c4949be3b91a92b8346 | /issue_order/tasks.py | c521a2ede5ab11c2f598a398a3bee9e017fc01e6 | [
"Apache-2.0"
] | permissive | jiejiang/courier | 4b0b4fc56c5510228ffcc4de51b074c7aff9502f | 6fdeaf041c77dba0f97e206adb7b0cded9674d3d | refs/heads/master | 2022-11-30T14:24:53.950502 | 2019-12-06T16:42:00 | 2019-12-06T16:42:00 | 195,387,643 | 0 | 0 | Apache-2.0 | 2022-11-22T01:22:33 | 2019-07-05T10:08:19 | Python | UTF-8 | Python | false | false | 2,650 | py | # *- coding: utf-8 -*
from __future__ import absolute_import
from django.utils.translation import ugettext as _
import datetime, sys
from celery import shared_task
from django.db import transaction
from mezzanine.conf import settings
from .models import CourierBatch, Profile
from .courier_systems import query_courier_... | [
"mail.jie.jiang@gmail.com"
] | mail.jie.jiang@gmail.com |
f75e0e32e45291a28fc904599882abe66c9d2750 | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/compute/models/virtual_machine_scale_set_ip_configuration.py | 191b9e2ebb24995c979775a4515a352dcd782cd6 | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 3,399 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
a1de48a0569407301769af6688ace732cfce8112 | f9248ec00b661ee4790a780b7adaec79c0d68ec8 | /sumDigit.py | ed3440baa63aed50363a7e23b2a7dcc418c05215 | [] | no_license | michaelzh17/6001_Python | 0ec463f02840bf3162cd3247d76494d1592e82e3 | 53833604db4d769f71e63044813e3500f3e0fb6f | refs/heads/master | 2021-01-11T22:31:17.832117 | 2018-12-21T10:34:18 | 2018-12-21T10:34:18 | 78,979,863 | 0 | 0 | null | 2017-04-06T02:54:57 | 2017-01-15T00:07:38 | Python | UTF-8 | Python | false | false | 366 | py | #!/usr/bin/env python3
def sumDigits(s):
"""Assumes s is a string
Returns the sum of the decimal digits in s
For example, if s is 'a2b3c' it returns 5"""
sum_digit = 0
for e in s:
try:
sum_digit += int(e)
except ValueError:
continue
return sum_di... | [
"macalzhang@gmail.com"
] | macalzhang@gmail.com |
be37b4349655bde35cdd96eb797c2a72b4d8bc78 | 704976ea552111c6a5af9cd7cb62b9d9abaf3996 | /pypy/module/test_lib_pypy/ctypes_tests/test_cfuncs.py | 5d3d816ee52701354d65e960dff269715097ef56 | [
"BSD-3-Clause"
] | permissive | mesalock-linux/mesapy | 4f02c5819ce7f2f6e249d34840f1aa097577645d | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | refs/heads/mesapy2.7 | 2023-08-16T21:33:02.239581 | 2019-08-13T10:29:43 | 2019-08-13T18:06:45 | 136,080,721 | 396 | 33 | NOASSERTION | 2020-04-01T03:05:18 | 2018-06-04T20:45:17 | Python | UTF-8 | Python | false | false | 6,882 | py | # A lot of failures in these tests on Mac OS X.
# Byte order related?
from ctypes import *
import py
from .support import BaseCTypesTestChecker
def setup_module(mod):
import conftest
mod._ctypes_test = str(conftest.sofile)
# this means you cannot run tests directly without invoking this
mod.TestCFunct... | [
"mssun@mesalock-linux.org"
] | mssun@mesalock-linux.org |
d3f4dc5383a82d4848dd5b8c53976b56998b176c | cbed9822648c05601fb84803c4cbfb63b3f9f6f5 | /supervised_learning/0x06-keras/5-main.py | e105ddb4ab40795846f405606c414ac52ea1abb9 | [] | no_license | thomasmontoya123/holbertonschool-machine_learning | 793ba1f732ccaf2e08b832f3c57e10d12eabe808 | 8f0f2ce67339e574b21d7dfbba7f88545adac807 | refs/heads/master | 2022-12-26T09:55:07.302952 | 2020-10-04T23:38:23 | 2020-10-04T23:38:23 | 279,631,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | #!/usr/bin/env python3
import numpy as np
import tensorflow as tf
build_model = __import__('1-input').build_model
optimize_model = __import__('2-optimize').optimize_model
one_hot = __import__('3-one_hot').one_hot
train_model = __import__('5-train').train_model
if __name__ == '__main__':
datasets = np.load('super... | [
"tomasmontoya123@gmail.com"
] | tomasmontoya123@gmail.com |
0ecc04c7a3bebfd4f58ae6f8a34d8d47d464687f | 05e590af914370c3fe02526794ce9b41be893d2c | /day03/BMI多筆計算.py | c2dc0a100071d9bad093d8913fc909a910f75bed | [] | no_license | vincenttuan/yzu_python_20210414 | bf0f1d9f8549086008fe15701204dfc3a9ebf85a | b464c4691ce12e9076c8c2ab74158aeb4edc5bc7 | refs/heads/master | 2023-06-09T19:30:24.930453 | 2021-06-30T13:31:29 | 2021-06-30T13:31:29 | 362,433,389 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | import math
# 有三組資料 170, 50 ; 180, 70; 160, 60
def printBMI(h, w):
bmi = w / math.pow(h/100, 2)
#result = "過重" if bmi > 23 else "過輕" if bmi <= 18 else "正常"
result = "過輕"
if 18 < bmi <= 23:
result = "正常"
elif bmi > 23:
result = "過重"
print("h= %.1f w=%.1f bmi=%.2f result=%s" % (h, ... | [
"vincentjava@yahoo.com.tw"
] | vincentjava@yahoo.com.tw |
b453077a97c2032779a9f82f95ec352f4048fa05 | 065e4cdb3b79c3697f323cbc3d29a79ca696b47f | /src/stomp/exc.py | d2e6aa7b1c92d9d1e93fd4c0dc3bd58ed9ee7f1b | [] | no_license | sousouindustries/python-stomp | 59aaa47884013ebdc3bfb6c7f4756ef3ee03547e | b2de7aa2f1658eaa49bffd977bd1c9630ef58f0c | refs/heads/master | 2021-01-10T03:35:04.103347 | 2016-01-08T16:35:10 | 2016-01-08T16:35:10 | 44,618,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py |
class FatalException(Exception):
pass
class InvalidCommandType(FatalException):
pass
class MalformedFrame(FatalException):
pass
class StompException(FatalException):
@classmethod
def fromframe(cls, frame):
return cls(frame)
class FrameNotConfirmed(Exception):
pass
| [
"cochiseruhulessin@gmail.com"
] | cochiseruhulessin@gmail.com |
ebfabd74d8b293ebd1f58bc34f2d72dfae2f3cc1 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/tobami-littlechef/allPythonContent.py | 0551b5fc76bdb3a3ad48af4aad55b64b7d632ffb | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113,897 | py | __FILENAME__ = chef
#Copyright 2010-2014 Miquel Torres <tobami@gmail.com>
#
#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 req... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
236b411cb4481023898e177f51e21412dc57c3ff | 48a7b266737b62da330170ca4fe4ac4bf1d8b663 | /molsysmt/form/openmm_Topology/to_openmm_System.py | ec0c582b7538b5b681e118cc0f7c1a1197793d15 | [
"MIT"
] | permissive | uibcdf/MolSysMT | ddab5a89b8ec2377f383884c5169d147cab01322 | c3d713ba63db24eb8a2426115cf8d9cb3665d225 | refs/heads/main | 2023-08-08T15:04:16.217967 | 2023-08-04T05:49:56 | 2023-08-04T05:49:56 | 137,937,243 | 15 | 3 | MIT | 2023-06-04T20:27:06 | 2018-06-19T19:38:44 | Python | UTF-8 | Python | false | false | 1,223 | py | from molsysmt._private.digestion import digest
@digest(form='openmm.Topology')
def to_openmm_System(item, atom_indices='all', forcefield=None, water_model=None, implicit_solvent=None,
non_bonded_method=None, constraints=None, switch_distance=None,
dispersion_correction=None, ewald_error_tolerance=None)... | [
"prada.gracia@gmail.com"
] | prada.gracia@gmail.com |
6a23f800b0642149d86c1b273e549390add95953 | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Greedy/1046.py | 38cf41d0ce78d7ec9ca4fb81ad2f34904cf89bd5 | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | # 1046. Last Stone Weight
# We have a collection of stones, each stone has a positive integer weight.
# Each turn, we choose the two heaviest stones and smash them together. Suppose the stones have weights x and y with x <= y. The result of this smash is:
# If x == y, both stones are totally destroyed;
# If ... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
a54e35e05166aadbfab0c2e00094afb31d34ea9e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/38/usersdata/74/15433/submittedfiles/decimal2bin.py | 2762553aa515ae3fd3d920e2479efa3f6bf9e8d9 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | # -*- coding: utf-8 -*-
from __future__ import division
n = input('Digite o numero binario: ')
k = n
cont = 0
d = 0
while n>1:
n = n/10
cont = cont+1
while n>=1:
n = n*10
j = n//1
d = d+j*2**cont
cont = cont-1
n = n-j
print('%d'% d)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f630dbcad916b681dfd873c5ff8309f1c6505c2d | 82ed0cacf82da9a89fb65d9ddda6e603070aa639 | /reaper/__init__.py | 379855b02338d5c05153e42e2ad57c947ba033cc | [
"MIT"
] | permissive | pombredanne/reaper | 243dd08e8f570f9493c007face1cf2d4a7413f27 | 52f64d3e7d9a658df54475973796b48267f5c8a1 | refs/heads/master | 2021-01-24T03:36:30.781446 | 2015-11-12T03:48:46 | 2015-11-12T03:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | """
Reaper
Deprecation warnings that turns automatically to Exception once your package version is bumped.
"""
__version__ = '0.0.1'
import warnings
import semver
import traitlets
class DeprecationException(DeprecationWarning):pass
class DeprecationReaper:
"""
Decorator for a function to be deprecated and... | [
"bussonniermatthias@gmail.com"
] | bussonniermatthias@gmail.com |
dde1a97b3865fb7a6766da26d1bc744f1ce5fca6 | 500047f47a6b372fa7ff1e96b11315ee26acf5ef | /Chapter-07/text_ctrl.py | bbf85947f6e09f04be5a8a4f152c8b65751618ee | [] | no_license | ra2003/Tkinter-In-Action | 9f3a80bb2cab8dccf78621915f234f80cf79c58d | 2a35ae029c2cfabb53adee8dae5fd0a7c6db817f | refs/heads/master | 2022-03-02T16:25:26.146299 | 2019-10-07T06:36:41 | 2019-10-07T06:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | #!/usr/bin/python3
import tkinter as tk
class TextFrame(tk.Frame):
def __init__(self, parent):
super().__init__()
parent.title('Text Entry Example')
parent.geometry("300x100")
panel = tk.Frame()
basicLabel = tk.Label(panel, text="Basic Control:").grid(row=0, colum... | [
"noreply@github.com"
] | ra2003.noreply@github.com |
21e477ad9b77ff873b0306759123da5fac5fd96d | 3a6d382503e11753dd81b291145847a2eabb8ec6 | /experimental/dsmith/lab/autotest/opencl.py | 7607641290ba1f03b1ffb994ec921ded7b2218a1 | [] | no_license | QuXing9/phd | 7e6f107c20e0b3b1de2b25eb99e0b640a4a0bfcf | 58ba53b6d78515ed555e40527f6923e28941cc19 | refs/heads/master | 2022-02-27T03:29:05.126378 | 2019-10-22T02:46:57 | 2019-10-22T02:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | #!/usr/bin/env python3
import json
import logging
import sys
from pathlib import Path
from typing import List
import autotest
import cldrive
from dsmith.opencl import clsmith
from labm8 import crypto
class OpenCLTestcase(object):
def __init__(self, path: Path):
self.path = path
@property
def src(self):
... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
e82d51daf8991cd5a31f5ce012cfc827ab74503f | a829617f9ad158df80a569dd02a99c53639fa2c6 | /test/hep/cut2.py | 889f316c9b7b192c2057c2917c3f6a0e06e5ca90 | [] | no_license | alexhsamuel/pyhep | 6db5edd03522553c54c8745a0e7fe98d96d2b7ae | c685756e9065a230e2e84c311a1c89239c5d94de | refs/heads/master | 2021-01-10T14:24:08.648081 | 2015-10-22T13:18:50 | 2015-10-22T13:18:50 | 44,745,881 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | #-----------------------------------------------------------------------
# imports
#-----------------------------------------------------------------------
import cPickle
import hep.cuts
from hep.draw import Line
import hep.hist
from hep.hist import ezplot
from numarray import array, Float32
from random import... | [
"alex@alexsamuel.net"
] | alex@alexsamuel.net |
34ca8c73e475540d5a16ca14550bb83107603dd5 | 7eb67443c603719458f67f7ea369b55c6854bccb | /assignment7/mapper.py | 1d63425582c2c6ca752f28a5d700538581efaf32 | [
"MIT"
] | permissive | IITDU-BSSE06/ads-demystifying-the-logs-Arafat123-iit | bf85971cb35543734118d744a419baf8b722f886 | 2c7b9132eab2161162fc7ac0e9761990ffbaea8f | refs/heads/master | 2021-08-07T12:51:11.703193 | 2017-11-08T07:04:34 | 2017-11-08T07:04:34 | 109,237,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/python
import urlparse
import sys
for line in sys.stdin:
data = line.strip().split(" ")
if len(data) == 10:
a0, a1 ,a2 ,a3 ,a4 ,a5 ,a6 ,a7 ,a8 ,a9= data
# path = urlparse.urlparse(a6).path
print "{0}\t{1}".format(a5,a5)
| [
"noreply@github.com"
] | IITDU-BSSE06.noreply@github.com |
4343873f84f6aaa10eedaa76382224012ae6ba54 | 94de2c5845e70f20f48851595a48e8d3bdb1c3db | /stock/xbrl/xbrl_code_list.py | 77bb77e9dc6d9b5cbb05f7946aa04019d8dbd9f1 | [] | no_license | noeul1114/skyrocket | a0b06821ab56f067d45f2e3edfee03320f795cdf | 9da978e6839d47cab10816eddc1a3112c79e8f72 | refs/heads/master | 2022-12-11T03:40:06.590405 | 2021-04-09T00:47:24 | 2021-04-09T00:47:24 | 242,674,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | revenue_word_list_gaap = ['매출액', '영업수익', '수익(매출액)', '매출 및 지분법 손익', '매출', '매출액(매출액)', 'I. 매출액', '수익(순매출액)', '수익', '영업수익(매출액)', 'Ⅰ. 매출액', 'I.매출액', '매출및지분법손익', '매출 및 지분법손익', 'I. 매출액', '매출및 지분법손익']
operating_income_word_list_gaap = ['영업이익', '영업이익(손실)', '영업이익 (손실)', '영업손익', 'V. 영업이익', 'Ⅳ. 영업이익(손실)', 'V.영업이익', '영업손실', 'Ⅴ. 영... | [
"parkhyongsok@naver.com"
] | parkhyongsok@naver.com |
887284504418d7fb5752e642ca499b54970ebb22 | 82352d4737a87f62328aa061853d544820f417f7 | /utils/sample_statistics.py | 4605586f1da692068bb8f9b2fa3487316847c40c | [] | no_license | zuiyueyin/python-learning-notes | 054162c25db881f0f2133088099b5ca217143952 | f45f0879cc70eb59de67a270a6ec8dbb2cf8e742 | refs/heads/master | 2023-05-29T21:50:04.702395 | 2020-06-09T04:00:19 | 2020-06-09T04:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | # -*-coding: utf-8 -*-
"""
@Project: python-learning-notes
@File : sample_statistics.py
@Author : panjq
@E-mail : pan_jinquan@163.com
@Date : 2019-07-13 15:09:33
"""
from utils import file_processing, plot_utils
import numpy as np
import pandas as pd
from modules.pandas_json import pandas_tools
... | [
"panjinquan@dm-ai.cn"
] | panjinquan@dm-ai.cn |
feaa2e232a12eb04ca4a8f06a89234c1a1fb0dbc | e34ba843cf682892462aec8b477d4a708968286d | /dlgo/reinforce/experience_test.py | 1d6a67e69a72733b4a649f9e599cc802f65cb0df | [] | no_license | mecha2k/mygo | e088e4abff292aa225dd22655ef9032cd89ddabc | db77aeade0ef25b9cd8d0097aff7dd7cc7d78ef6 | refs/heads/master | 2023-01-21T21:37:57.930762 | 2020-11-26T14:02:33 | 2020-11-26T14:02:33 | 303,343,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | import unittest
import numpy as np
from dlgo.reinforce import experience
class ExperienceTest(unittest.TestCase):
def test_combine_experience(self):
collector1 = experience.ExperienceCollector()
collector1.begin_episode()
collector1.record_decision(
state=np.array(
... | [
"mecha2k@naver.com"
] | mecha2k@naver.com |
37e9ec85ea551c5a0f77ba61a24f955da77d0426 | 6b3b61d2c5ba4998e7390c76be87be569c713f7a | /Exercicio_022/desafio_022.py | 7091a3a066c9a597d33f70c27ebb69bd37711884 | [] | no_license | loc-dev/CursoEmVideo-Python-Exercicios | 22a8b4621eb4bd95ddfca2553693eccca4a0786e | 9bceec567e653c1fbaa01b9668cd0e7a828e53a9 | refs/heads/master | 2022-12-02T18:46:18.506684 | 2020-08-22T20:50:15 | 2020-08-22T20:50:15 | 256,840,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # Desafio 022 - Referente aula Fase09
# Crie um programa que leia o nome completo de uma pessoa
# e mostre:
# - O nome com todas as letras maiúsculas e minúsculas.
# - Quantas letras no total (sem considerar espaços).
# - Quantas letras tem o primeiro nome.
nome = input("Digite o seu nome completo: ")
print('')
print... | [
"leonardoc.developer@gmail.com"
] | leonardoc.developer@gmail.com |
28342a28b1ed2ee0b8a34ce31c0655baa1e7665a | b2625b1a1ef4a3a255ae88b6d77c425727187eeb | /mmpose/datasets/datasets/animal/animal_ap10k_dataset.py | 01651f22eddc1e2648627334b2c43b59ee582e75 | [
"Apache-2.0"
] | permissive | wojiazaiyugang/mmpose | acd4083d142c5c4c2dd87e6be94a5891a42d2797 | 8947b39294b037e8272c6cf2f53ae4aa7d22193b | refs/heads/master | 2023-09-01T23:45:43.857657 | 2021-11-23T03:03:02 | 2021-11-23T03:03:02 | 356,105,054 | 0 | 0 | Apache-2.0 | 2021-09-16T06:36:44 | 2021-04-09T02:08:50 | Python | UTF-8 | Python | false | false | 12,368 | py | # Copyright (c) OpenMMLab. All rights reserved.
import os
import warnings
from collections import OrderedDict, defaultdict
import json_tricks as json
import numpy as np
from mmcv import Config
from xtcocotools.cocoeval import COCOeval
from ....core.post_processing import oks_nms, soft_oks_nms
from ...builder import D... | [
"noreply@github.com"
] | wojiazaiyugang.noreply@github.com |
60994e422d1fdc9199f7d90ae6cd7856ef8e3102 | c1f60f28cbd74a639dc89b22518ae33765267af4 | /ravem/indico_ravem/__init__.py | cbc2ba2885adce70b301cb3a688236fbcc23aee4 | [
"MIT"
] | permissive | DalavanCloud/indico-plugins-cern | b0a97dbbd7fb4dc272977b121ec92931ee316ad7 | bb67d2fb9e3d24faeeff2b78a5e9bcff52ac5f26 | refs/heads/master | 2020-04-22T08:58:17.025951 | 2019-01-21T14:25:08 | 2019-01-21T14:25:54 | 170,255,750 | 1 | 0 | null | 2019-02-12T05:08:40 | 2019-02-12T05:08:40 | null | UTF-8 | Python | false | false | 376 | py | # This file is part of the CERN Indico plugins.
# Copyright (C) 2014 - 2018 CERN
#
# The CERN Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License; see
# the LICENSE file for more details.
from __future__ import unicode_literals
from indico.util.i18n impo... | [
"adrian.moennich@cern.ch"
] | adrian.moennich@cern.ch |
d37b2518c4bf1cc6aac3deab5e80bfaa2e4e17a7 | f897f0e594a9157b9e56cee8b24f68bb9c9221f8 | /aml_workspace/src/AML/aml_io/src/aml_io/tf_io.py | 7edd96ff4f34235b45528fe63e5db611b68b9503 | [] | no_license | HDClark94/Honeycomb | b1056a0f8b41312d0a87d5cd80803a2baf613bae | 96899e6b362358d0ce1e3671cbc77f30856c80ac | refs/heads/master | 2020-03-29T19:48:29.330790 | 2018-10-22T07:50:01 | 2018-10-22T07:50:01 | 150,281,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import tensorflow as tf
def load_tf_check_point(session, filename):
saver = tf.train.Saver()
saver.restore(session, filename)
print("Model restored.")
def save_tf_check_point(session, filename):
saver = tf.train.Saver()
save_path = saver.save(session, filename)
print("tf checkpoint... | [
"harrydclark91@gmail.com"
] | harrydclark91@gmail.com |
202679d52735c93032e4fa601cba695539c3a1ba | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /AaSXX4SKNdZ7mgqK7_14.py | 83c2bdb8a06c274f5040c0a84f78e2868910eb94 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | """
Check the principles of minimalist code in the [intro to the first
challenge](https://edabit.com/challenge/2XLjgZhmACph76Pkr).
In the **Code** tab you will find a code that is missing a single character in
order to pass the tests. However, your goal is to submit a function as
**minimalist** as possible. Use the... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8ca9448dc3b945debb5c81ca77e931b7ffa80336 | 683d81b0d0ac10e3782b42f1ea6007124d72a663 | /1. Problems/c. Array/a. 1D 2 - Sequence - Split Array into Conscutive Subsequences.py | 02ae577f943539e02833f37b9170ed94defdd809 | [] | no_license | valleyceo/code_journal | 4b5e6fcbd792fedc639f773ca2bbf6725a9b9146 | 0191a6623e7a467c2c0070c4545358301a5e42ba | refs/heads/master | 2022-09-16T17:47:55.343712 | 2022-09-03T23:46:38 | 2022-09-03T23:46:38 | 129,997,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | # LC 659. Split Array into Consecutive Subsequences
'''
You are given an integer array nums that is sorted in non-decreasing order.
Determine if it is possible to split nums into one or more subsequences such that both of the following conditions are true:
Each subsequence is a consecutive increasing sequence (i.e. ... | [
"ericjkim9@gmail.com"
] | ericjkim9@gmail.com |
7192fd53903767f99c7e0de95b447794230dc45d | 658849ce4adc682e403631df460d886c21c55146 | /pyQt/02_pdfText.py | 19a44069fc908e8973ddfdbe273a462d091b29ad | [] | no_license | gsrr/Python | eec6b6d1189a5a08ab913925cc5428e9cac0e4ce | d412a7a40bc7875d2fce58311f099945698569f5 | refs/heads/master | 2023-02-11T12:36:49.346289 | 2023-02-01T17:28:52 | 2023-02-01T17:28:52 | 40,101,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from PyQt4.QtGui import *
import sys
app = QApplication(sys.argv)
text_file_path = open('02_sample.txt').read()
doc = QTextDocument(text_file_path)
printer = QPrinter(QPrinter.HighResolution)
printer.setOutputFormat(QPrinter.PdfFormat)
printer.setOutputFileName('02_sample.pdf')
doc.print_(printer) | [
"jerrycheng1128@gmail.com"
] | jerrycheng1128@gmail.com |
10b44701f84e0e8b55cff95887fbae486fc399ff | a6fae33cdf3d3cb0b0d458c2825a8d8cc010cd25 | /l3/z3/.history/moves_manager_20200522163947.py | 86bb3edd1e5a58526cd512533dea3531b6a94f81 | [] | no_license | Qabrix/optimization_amh | 12aab7c7980b38812ec38b7e494e82452a4176b4 | 6a4f5b897a4bef25f6e2acf535ba20ace7351689 | refs/heads/main | 2022-12-28T10:57:00.064130 | 2020-10-17T22:57:27 | 2020-10-17T22:57:27 | 304,983,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | from random import choice, randint
class MovesManager():
def __init__(self, grid=[], start_pos=[], n=0 , m=0):
self.n = n
self.m = m
self.grid = grid
self.start_pos = start_pos
self.possible_moves = ['U', 'D', 'L', 'R']
def validate_move(self, step, pos=start_pos, grid=... | [
"kubabalicki@gmail.com"
] | kubabalicki@gmail.com |
49cff15efb1486afccf82fc66324d9b682b7fe42 | 1a2828536c57242cd72e96ed887dfea48f250715 | /divide_dataset.py | ca7d0a9cba3b47d3402e698566ee56132108c56c | [] | no_license | Frostmoune/FaseSR | 2f5f4dd421b2b6e5315d4ee55977015198dff5ff | 137837e2c79957f70f4c2546e27733290506459e | refs/heads/master | 2020-08-10T18:40:07.722703 | 2019-10-11T09:28:30 | 2019-10-11T09:28:30 | 214,397,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | from models import networks
from data import create_dataloader, create_dataset
import argparse
import torch
from sklearn.cluster import MiniBatchKMeans
import os
import numpy as np
import shutil
import pickle
if __name__ == '__main__':
opt = {
'gpu_ids': [0, 1, 2, 3],
'network_F': {
... | [
"810343087@qq.com"
] | 810343087@qq.com |
1f0d272239f6f020cfd64030a8469292477a9b34 | 1800155dcdb48bf956fa423858a8cc20ed27e6cb | /game-of-life.py | 97937b7282f8adfcc28d8545dbd7e53f5206f1d9 | [] | no_license | gitprouser/LeetCode-3 | 1cc2d1dbbf439af4b3768da388dafd514cc5432b | 530ea79f0377e1fc3fbfb5c5cfe7768159144e57 | refs/heads/master | 2021-06-06T16:30:14.795093 | 2016-08-22T21:40:01 | 2016-08-22T21:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | """
According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970."
Given a board with m by n cells, each cell has an initial state live (1) or dead (0). Each cell interacts with its eight neighbors (horizonta... | [
"tohaowu@gmail.com"
] | tohaowu@gmail.com |
59ee7d05e8fef6ab8337b80af859711836d8dae0 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/tiago_multi/catkin_generated/generate_cached_setup.py | 7dee2c4d07d16dce4cd6ca6c5a582b00711a0726 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
416bc0ae6a2a36ec1c764d24e4f594644b0a7bec | 13800b7827598e76428a335559b7bf11867ec2f0 | /examples/py/binance-fetch-all-trades.py | ac56fca50cf98cd41c5da62c1b4310aafb80abd7 | [
"MIT"
] | permissive | ccxt/ccxt | b40a0466f5c430a3c0c6026552ae697aa80ba6c6 | e4065f6a490e6fc4dd7a72b375428b2faa570668 | refs/heads/master | 2023-09-04T03:41:29.787733 | 2023-09-03T19:25:57 | 2023-09-03T19:25:57 | 91,253,698 | 30,798 | 8,190 | MIT | 2023-09-14T21:59:09 | 2017-05-14T15:41:56 | Python | UTF-8 | Python | false | false | 1,686 | py | # -*- coding: utf-8 -*-
import os
import sys
import csv
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(root + '/python')
import ccxt # noqa: E402
exchange = ccxt.binance()
markets = exchange.load_markets()
symbol = 'ETH/BTC'
market = exchange.market(symbol)
one... | [
"igor.kroitor@gmail.com"
] | igor.kroitor@gmail.com |
a7177ae8e232a76fe17c2554369f3bd1be1b0acb | 4951103d1a112fbb90059a977582f0642546c4cb | /mitmproxy/__init__.py | 9697de8780ca420e99c33da5d4d5716bcbe6ce7d | [
"MIT"
] | permissive | takeratta/mitmproxy | 9d114f221e99e7c522fd8bdd51561753c974ae6e | 569d275d763f499cce9673fcf118dcc8d59d2eeb | refs/heads/master | 2022-01-22T05:23:46.978493 | 2017-10-22T16:06:44 | 2017-10-22T16:06:44 | 108,022,306 | 0 | 0 | MIT | 2019-07-29T09:05:59 | 2017-10-23T18:26:23 | Python | UTF-8 | Python | false | false | 137 | py | # https://github.com/mitmproxy/mitmproxy/issues/1809
# import script here so that pyinstaller registers it.
from . import script # noqa
| [
"git@maximilianhils.com"
] | git@maximilianhils.com |
d5f10f1c0e5820a716478d43e50433a89e88cfc7 | 0d9c964fd7644395a3f0763f484e485fcc67f762 | /new/src/22.02.2020/replace.py | e6ba448271b07b2a5d1d9d6fcc4d6b3745d42d8f | [
"Apache-2.0"
] | permissive | VladBaryliuk/my_start_tasks | eaa2e6ff031f2f504be11f0f64f5d99bd1a68a0e | bf387543e6fa3ee303cbef04d2af48d558011ed9 | refs/heads/main | 2023-04-14T14:00:08.415787 | 2021-04-24T13:47:38 | 2021-04-24T13:47:38 | 354,538,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | string = str (input())
s = str (input())
c = str (input())
print (string.replace(s, c))
| [
"vladmain9@gmail.com"
] | vladmain9@gmail.com |
ded616fccd10707347213e409fa9449335737283 | 3f576989246ddadc3ae9c9d48007a4866245a5f2 | /music_controller/api/urls.py | ae82696637729eec3a595c489018492417018065 | [] | no_license | raghavendra-musubi/django-react-house-party-app | d536fbc92508656685e36974a1cec7dca6d4b07d | b90780f993dbd90a66f6b83564854a8e6dbae3cc | refs/heads/main | 2023-03-05T14:37:59.809471 | 2021-02-17T21:52:10 | 2021-02-17T21:52:10 | 339,756,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from django.urls import path
from .views import RoomView, CreateRoomView
urlpatterns = [
path('room/',RoomView.as_view()),
path('create-room/',CreateRoomView.as_view())
]
| [
"raghavendra@techis.io"
] | raghavendra@techis.io |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.