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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f19e270e81481c90a0ffb930fcf93de0b5bc39c5 | 2dc9ee4a8c39d00c255f52e8af2486e7c2891a98 | /sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_table_resources_operations.py | 36ed759a36fc7e55f2c459644657b3530357182e | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | JoshuaLai/azure-sdk-for-python | fd780c2ab145a35ec0bf9519c4d08c928081e79c | 07614796a332bcfeed35dddee9dbfc2f5487a39f | refs/heads/master | 2023-04-04T17:49:58.177790 | 2021-04-06T21:31:48 | 2021-04-06T21:31:48 | 348,842,434 | 0 | 0 | MIT | 2021-03-17T20:24:55 | 2021-03-17T20:24:54 | null | UTF-8 | Python | false | false | 46,434 | 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"
] | JoshuaLai.noreply@github.com |
bd7d21e6c48490b6e513423be546d53dd6ef878e | 074afd26d00bb742b03c12891b057ab263e640bf | /codeforces/Catalan number.py | 1c0cbe6f310e76e6dc1fb22e2ef15c50db720b5e | [] | no_license | IsmailTitas1815/Data-Structure | 7a898800b1e53c778b1f2f11b0df259e52c20140 | fece8dd97d3e162e39fc31d5f3498a6dac49b0f0 | refs/heads/master | 2023-02-05T10:39:49.349484 | 2020-12-21T13:37:22 | 2020-12-21T13:37:22 | 296,343,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def catalan(li,n):
for i in range(2,n+1):
for j in range(0,i):
li[i] += li[j]*li[i-j-1]
return li[n]
n = int(input())
li = [0]*(n+2)
li[0] = 1
li[1] = 1
print(catalan(li,n))
| [
"titas.sarker1234@gmail.com"
] | titas.sarker1234@gmail.com |
59362eefb3b8de60cadbf4b116eaf0877f779a02 | ee6a97ac5e7f959605130424276bfeb5bc1f3fab | /src/tomorectv3d/solver.py | 9c4e624d26080211fee19a7ca1a433709da2049a | [] | no_license | nikitinvv/tomorectv3d | ae12feeed5b877f888de090b2a2166d0c1c0ff35 | 6a8660daa47e2a652b241ef096e6feda493fa579 | refs/heads/master | 2022-04-02T21:05:46.644598 | 2020-02-10T23:04:05 | 2020-02-10T23:04:05 | 177,346,472 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | """Module for tomography."""
import numpy as np
import tomorectv3d.tomorectv as tomorectv
def getp(a):
return a.__array_interface__['data'][0]
class Solver(tomorectv):
"""Base class for tomography solvers using the USFFT method on GPU.
This class is a context manager which provides the basic operators ... | [
"vnikitin90@gmail.com"
] | vnikitin90@gmail.com |
1072683ce483b9fa1534df39538badd601872307 | dc705d1bc4b7cc83b4f2710a851c82d7913cc74f | /env/bin/easy_install-3.7 | 7b537674bb1a3f38e13b1c32140d21dd91db89a3 | [] | no_license | natepill/PropertyScrape | d1aad785ee669d57e8b94e006b0a393d90b38fc6 | cb34348d8bc618752919c07dc94d3a218d116735 | refs/heads/master | 2022-12-13T16:36:08.946021 | 2018-12-29T20:48:22 | 2018-12-29T20:48:22 | 163,538,597 | 0 | 0 | null | 2022-07-06T19:57:24 | 2018-12-29T20:18:52 | Python | UTF-8 | Python | false | false | 278 | 7 | #!/Users/natepill/dev/courses/PropertyScrape/env/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"natepill@gmail.com"
] | natepill@gmail.com |
14091d6b8c53ea3508e7852f72fd3d59912a55a5 | b3699724907850fd26cbce4509fec83a33b89760 | /python/ray/serve/tests/test_handle.py | 88ab9d2c2b7a1620d0cf4a6bb8f2669115444d14 | [
"Apache-2.0",
"MIT"
] | permissive | BonsaiAI/ray | 5e2f26a81d865a795261d11f9182aca7f07c7b97 | 941d30f082fe879ea30618af14327c25b5a21a74 | refs/heads/master | 2023-06-12T05:15:29.370188 | 2021-05-06T07:03:53 | 2021-05-06T07:03:53 | 233,708,687 | 3 | 5 | Apache-2.0 | 2023-05-27T08:06:37 | 2020-01-13T22:41:47 | Python | UTF-8 | Python | false | false | 5,082 | py | import requests
import pytest
import ray
from ray import serve
@pytest.mark.asyncio
async def test_async_handle_serializable(serve_instance):
client = serve_instance
def f(_):
return "hello"
client.create_backend("f", f)
client.create_endpoint("f", backend="f")
@ray.remote
class Tas... | [
"noreply@github.com"
] | BonsaiAI.noreply@github.com |
487f2c4008ffb93eb3a1ccd5bb301c5c700a30da | 716b9ff99c26ef0d680189fab2aae267a4b6e9aa | /code/ngsim_env_updated/rllab/envs/mujoco/walker2d_env.py | cf6c4b65c36e5b2dcb71e50be755694b556b5dbf | [
"MIT"
] | permissive | mboudiaf/imitation-driving | 0ffbc5eee810b9ec7560cb4ad1fa617bbde3b765 | 03bdbfb41df3417b1547d977eeffea9e7373e929 | refs/heads/master | 2020-04-11T04:55:48.935595 | 2018-12-12T19:26:42 | 2018-12-12T19:26:42 | 161,531,859 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | import numpy as np
from rllab.core.serializable import Serializable
from rllab.envs.base import Step
from rllab.envs.mujoco.mujoco_env import MujocoEnv
from rllab.misc import autoargs
from rllab.misc import logger
from rllab.misc.overrides import overrides
def smooth_abs(x, param):
return np.sqrt(np.square(x) + ... | [
"malik.boudiaf@hotmail.fr"
] | malik.boudiaf@hotmail.fr |
00ab2e1db7a144997b69b98bd9e15b756a7a0d72 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02853/s973395954.py | 19fe578b0d94debeeff801e9a9f2e992bfdd8892 | [] | 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 | 239 | py | x, y = map(int, input().split())
def a(n):
if n == 1:
return 100000 * 3
if n == 2:
return 100000 * 2
if n == 3:
return 100000
return 0
res = a(x) + a(y)
if x == y == 1:
res += 100000*4
print(res) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ac58e089205c2201de2601bf327e525aaab9a819 | d24d794d92b091639e36a4e6d2eaad6c1ae51097 | /ask-sdk-webservice-support/ask_sdk_webservice_support/__version__.py | e6e98ecd596ebac2a20a4dc6ce9c34b30deef325 | [
"Apache-2.0"
] | permissive | amit-friday/alexa-skills-kit-sdk-for-python | e006af3b8de3fa04e909af1c98683fc619ddf366 | ee09b13270bda97ddf9b5d365b154a323befe506 | refs/heads/master | 2022-12-22T14:50:49.463953 | 2020-09-30T16:34:31 | 2020-09-30T16:34:31 | 299,983,490 | 0 | 0 | Apache-2.0 | 2020-09-30T16:32:53 | 2020-09-30T16:32:52 | null | UTF-8 | Python | false | false | 1,273 | py | #
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"nnky@amazon.com"
] | nnky@amazon.com |
5849f7b9f2bf99928541246d9ffceb91fa8442f4 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/stdlib-484.py | 990132f94cb9a04106e46872f46a3e3b84231dee | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
dad32439e464d39edbd4a67700c46e4165928da6 | 82b728e805d887102c0b8c415731b353877690cd | /samples/generated_samples/aiplatform_generated_aiplatform_v1_job_service_create_model_deployment_monitoring_job_async.py | c667e877572cd737a2c47d4097be09fdbad639fe | [
"Apache-2.0"
] | permissive | geraint0923/python-aiplatform | 90c7742c9bdbde05b9688b117e8e59c0406d6f85 | 7ab05d5e127636d96365b7ea408974ccd6c2f0fe | refs/heads/main | 2023-08-24T05:30:38.519239 | 2021-10-27T20:38:25 | 2021-10-27T20:38:25 | 370,803,114 | 0 | 0 | Apache-2.0 | 2021-05-25T19:15:47 | 2021-05-25T19:15:46 | null | UTF-8 | Python | false | false | 2,050 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | geraint0923.noreply@github.com |
a93f496c61f67f2969011f8148a8a5b1e58cde3f | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/media/v20210601/__init__.py | 7773d1c8afc289b2933bd73ea165c43c41f62f81 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 1,465 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .account_filter import *
from .asset im... | [
"noreply@github.com"
] | morrell.noreply@github.com |
5cc44ea3ab04f48d39caa00de98e10df9ef47ebd | ab8a34e5b821dde7b09abe37c838de046846484e | /twilio/sample-code-master/taskrouter/v1/worker/read-default/read-default.6.x.py | e9b8f9e7bee2f303aa21e9876b4fc44cb8df3345 | [] | no_license | sekharfly/twilio | 492b599fff62618437c87e05a6c201d6de94527a | a2847e4c79f9fbf5c53f25c8224deb11048fe94b | refs/heads/master | 2020-03-29T08:39:00.079997 | 2018-09-21T07:20:24 | 2018-09-21T07:20:24 | 149,721,431 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
workers = client.taskrouter... | [
"sekharfly@gmail.com"
] | sekharfly@gmail.com |
98b197eccfc7bee3de3dfa9b072faccd040b7c1b | ac5d55e43eb2f1fb8c47d5d2a68336eda181d222 | /Math/645. Set Mismatch.py | 4b081babfa10e804d92d64ca1f6bf156c408a37d | [] | no_license | tinkle1129/Leetcode_Solution | 7a68b86faa37a3a8019626e947d86582549374b3 | 1520e1e9bb0c428797a3e5234e5b328110472c20 | refs/heads/master | 2021-01-11T22:06:45.260616 | 2018-05-28T03:10:50 | 2018-05-28T03:10:50 | 78,925,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | # - * - coding:utf8 - * - -
###########################################
# Author: Tinkle
# E-mail: shutingnjupt@gmail.com
# Name: Set Mismatch.py
# Creation Time: 2018/3/22
###########################################
'''
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one ... | [
"496047829@qq.com"
] | 496047829@qq.com |
ccf83662bcd2e693edd0cf3af4e57b822873cc76 | 82052ace114c4d05081e88d854a1148c7b95ef93 | /worker.py | 31dd08cd909655d5b54e799b87c384441fc08a6d | [] | no_license | dgrant/rabbitmq | 7dd1b6f7d7513d8d0c8c7225ed3769da770a7a88 | 751e12d61e7604f2ef8152c3b14c40fa4ba55e57 | refs/heads/master | 2016-08-11T11:47:13.164448 | 2015-11-02T04:56:40 | 2015-11-02T04:56:40 | 45,372,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
import pika
import time
connection = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))
channel = connection.channel()
channel.queue_declare(queue='task_queue', durable=True)
def callback(ch, method, properties, body):
print " [x] Received %r" % (body,)
time.... | [
"davidgrant@gmail.com"
] | davidgrant@gmail.com |
bd438a9229ca444f08684d8393ec80823acc97c9 | 1d6c0b6079609c2022060e92752c896d5343ff58 | /plugin.py | 4cfd5f1839a6d6052317027827a27f931a0e0048 | [] | no_license | SerpentAI/SerpentHorizonChaseTurboGamePlugin | da00681b8bb0c4cd7aacd11771cc23d07467e7c9 | ce4bb4c7bdbd57782e3f1164705f5f5545b9f23b | refs/heads/master | 2020-03-25T03:45:01.216855 | 2018-08-03T00:41:23 | 2018-08-03T00:41:23 | 143,358,210 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | import offshoot
class SerpentHorizonChaseTurboGamePlugin(offshoot.Plugin):
name = "SerpentHorizonChaseTurboGamePlugin"
version = "0.1.0"
libraries = []
files = [
{"path": "serpent_HorizonChaseTurbo_game.py", "pluggable": "Game"}
]
config = {
"fps": 2
}
@classmethod
... | [
"info@nicholasbrochu.com"
] | info@nicholasbrochu.com |
5aca836bbd48ea1dca3fac1f8e10e1072462331b | 1b5ab3f252069181b5e07d4d6d177ab82e942e51 | /session8/dic24.py | 5c77ed01155a1099fe94805422f7a59431a3ad53 | [] | no_license | phamhailongg/C4T9 | 59214081224f37b356e209d57f0865632dccc8f6 | c400005012fb349c1388dd92c8e590322bb203e4 | refs/heads/master | 2021-07-06T11:10:05.283974 | 2019-05-05T21:46:04 | 2019-05-05T21:46:04 | 152,599,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # bảng lương
salary = [
{"Name" : "Huy" ,
"Role" : "Waiter" ,
"Hours" : 12 ,
"Salary per Hour($)" : 0.8,
},
{"Name" : "Tung" ,
"Role" : "Cook" ,
"Hours" : 12 ,
"Salary per Hour($)" : 1.5 ,
},
{"Name" : "M.Duc" ,
"Role" : "Manager" ,
"Hours" : 20 ,
"Salary per H... | [
"longphamhai123@gmail.com"
] | longphamhai123@gmail.com |
57d73fb23183775fb776d759f4596820d9a56df3 | f8ee20b6c651294ab32da3f066d4a884123bb3ae | /rules/annotation/resistance/scripts/generate_rgi_html_report.py | 629f78e1ab0581a064dc39489ea28e957e487b5f | [] | no_license | JULIETCharlotte/diag_pipelines | 5fb16d0a8afb9160454b79344355b0681073c29b | 0d714b60037365fde70b04b9093b1b45b1158280 | refs/heads/master | 2020-03-30T23:38:21.941999 | 2018-10-03T10:37:54 | 2018-10-03T10:37:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,143 | py |
import pandas
import re
rgi_tsv_output = snakemake.input[0]
rgi_ontology = snakemake.input[1]
gene_depth_file = snakemake.input[2]
contig_gc_depth_file = snakemake.input[3]
samtools_depth = snakemake.input[4]
sample = snakemake.params[0]
report_file = snakemake.output[0]
# parse rgi output file
orf_id2data = {}
con... | [
"trestan.pillonel@gmail.com"
] | trestan.pillonel@gmail.com |
44fac8477be1af2dd12c739b00f176aca3ba6184 | c4f5d53fedea54feeedcdfe447d2fc93b23a5b24 | /ckstyle/entity/Rule.py | 71d3b6566b9e624b5728f5b66f29de9fcbd751a5 | [
"BSD-3-Clause"
] | permissive | qiubi8801/CSSCheckStyle | f8659f7c0d2fbd77e6ebd0d6ea272442c5646440 | 620694aad2159dbc28f5acebb2090a6e9ce49d34 | refs/heads/master | 2021-01-18T08:13:07.562875 | 2013-04-22T11:17:08 | 2013-04-22T11:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | from .EntityUtil import Cleaner, ALL
class Rule():
def __init__(self, selector, name, value, ruleSet):
self.roughName = name
self.roughValue = value
self.roughSelector = selector
self.name = Cleaner.clearName(name)
self.value = Cleaner.clearValue(value)
self.selecto... | [
"wangjeaf@gmail.com"
] | wangjeaf@gmail.com |
b9b95e08eb868f28fd5d5db181644ad733840a11 | ae116fe68c61eec0172cd896ff7fa5fe1fca438f | /niworkflows/common/__init__.py | 011903cc74a377a5d71a6543e275bc64c2860ea1 | [
"BSD-3-Clause"
] | permissive | dangom/niworkflows | 2a7c9c9acaf216df2860f05e611f1c6d595135f5 | e1eabe54e963b2829c1f7dc71abe80ca5767d687 | refs/heads/master | 2020-11-28T15:03:21.390774 | 2019-12-24T06:14:10 | 2019-12-24T06:14:10 | 229,845,797 | 1 | 0 | BSD-3-Clause | 2019-12-24T01:05:32 | 2019-12-24T01:05:31 | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
from __future__ import absolute_import, division, print_function, unicode_literals
from .orient import reorient_wf as reorient
| [
"code@oscaresteban.es"
] | code@oscaresteban.es |
014cc2f2b9b30ab92db345907fb8b8a75ac2d7fd | bdbccf27a869da0558723d2334bb6cb1c7262830 | /backend/event/api/v1/serializers.py | fbd48e39d69f0d040e9dca274561259c7228766d | [] | no_license | crowdbotics-apps/order-sheet-24085 | 878c7f3ea77b296e14da535a3d0b1e3003e4208f | e645f4668ee7ede1bc0dcff516467344e3cf0407 | refs/heads/master | 2023-02-24T18:15:01.328978 | 2021-01-26T10:00:32 | 2021-01-26T10:00:32 | 333,039,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | from rest_framework import serializers
from event.models import (
Vendor,
Location,
Favorites,
VendorDetail,
Category,
Faq,
Presenter,
Schedule,
MySchedule,
Sponsor,
)
class MyScheduleSerializer(serializers.ModelSerializer):
class Meta:
model = MySchedule
fi... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
02ac0549877775b160fbc0c8287fbfe0425a8a89 | 0953f9aa0606c2dfb17cb61b84a4de99b8af6d2c | /rllib/examples/env/transformed_action_space_env.py | b8845f63c3cb21014f29949a5caebccf840619f8 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | oscarknagg/ray | da3dc03e24945ff4d5718fd35fc1b3408d8907eb | 20d47873c9e8f5bbb80fe36e5d16256c337c4db3 | refs/heads/master | 2023-09-01T01:45:26.364731 | 2021-10-21T07:46:52 | 2021-10-21T07:46:52 | 382,402,491 | 2 | 1 | Apache-2.0 | 2021-09-15T12:34:41 | 2021-07-02T16:25:05 | Python | UTF-8 | Python | false | false | 2,640 | py | import gym
from ray.rllib.utils.annotations import override
class ActionTransform(gym.ActionWrapper):
def __init__(self, env, low, high):
super().__init__(env)
self._low = low
self._high = high
self.action_space = type(env.action_space)(self._low, self._high,
... | [
"noreply@github.com"
] | oscarknagg.noreply@github.com |
ba9de0c254533925031743291159dd8436209342 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/N/noahhs/noahhs_test.py | 10dbfb54e345103c535ccdbf915c2d6a0941d4db | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,576 | py | import scraperwiki
import lxml.html
import re
#Get list of countrynames and the address of their statistics pages, from UNICEF index page
def getCountryurls():
countryurls = {}
url = "http://www.unicef.org/statistics/index_countrystats.html"
html = scraperwiki.scrape(url)
root = lxml.html.fromstring(... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
93ddae855e84b3d1164b5c6b1b70019cb4ef8d3c | ac245e448cdf791f24ee71d2b89e5f13d5fb1fbb | /Betsy/Betsy/modules/merge_somatic_variants_indel.py | e0be6adc5ed06b64c8aa546b09cdff083bc04415 | [
"MIT"
] | permissive | jefftc/changlab | 86420c8ce0f3e11a9b1b00d49f17c6af87439f32 | d9688709cd1ce5185996637c57f001a543b5bb1d | refs/heads/master | 2023-05-24T18:59:25.875112 | 2023-05-11T20:15:26 | 2023-05-11T20:15:26 | 67,619,148 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | from Module import AbstractModule
class Module(AbstractModule):
def __init__(self):
AbstractModule.__init__(self)
def run(
self, network, antecedents, out_attributes, user_options, num_cores,
out_path):
import os
from genomicode import filelib
#from genomicode i... | [
"jeffrey.t.chang@uth.tmc.edu"
] | jeffrey.t.chang@uth.tmc.edu |
076704b5f1c4f0f416f88e20e612370236a2487c | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-postmarkapp/setup.py | 08a9898829422bbe6eba0a56c73a4acd8b8f3bda | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 636 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = [
"airbyte-cdk~=0.4",
]
TEST_REQUIREMENTS = [
"requests-mock~=1.9.3",
"pytest~=6.1",
"pytest-mock~=3.6.1",
]
setup(
name="source_postmarkapp",
description="Source imp... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
8d77c7ec6e6467d829a4b8b8a6f0977b99005a1f | e8e9e88f5f9c7b177972805c25d923949157eaa5 | /population/utils/rnn_cell_util/pytorch_gru.py | 52db2ad46c0ecf12e6c24a460f5be3cf69953cff | [
"Apache-2.0"
] | permissive | RubenPants/EvolvableRNN | cad9a16145262d9dd10de4d8d20fae3b59d28f49 | 818a4ce941536611c0f1780f7c4a6238f0e1884e | refs/heads/master | 2023-05-19T21:03:28.521038 | 2020-07-11T13:21:43 | 2020-07-11T13:21:43 | 257,982,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | """
pytorch_self.py
A literal copy of the PyTorch implementation of the GRU-cell.
"""
from torch import float64, sigmoid, tanh, tensor, zeros
from torch.nn import Module
class GRUCell(Module):
"""Copy of the PyTorch implementation of the single GRU-cell."""
def __init__(self, input_size, bias_hh, bias_i... | [
"broekxruben@gmail.com"
] | broekxruben@gmail.com |
b9262df73f851416e3e48e260555a0aaec54039e | 0968b545c7dda35f93c2fbede4c7eabf8a672667 | /demo/ReadJson.py | 69b7521f042948402eab851ccd52020d7ed5d2df | [] | no_license | lftuo/python_demo | 1e9f6f569355c213fd1d7ea106fde1bbef03ca34 | 91164775cd4b56d1d7ffa27132bd871ca26b47bd | refs/heads/master | 2018-11-13T04:54:01.815924 | 2018-10-27T05:09:12 | 2018-10-27T05:09:12 | 115,598,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!/usr/bin/python
# -*- coding:utf8 -*-
# @Author : tuolifeng
# @Time : 2018/1/3 下午8:06
# @File : ReadJson.py
# @Software : IntelliJ IDEA
# @Email : 909709223@qq.com
# 读取JSON文件
import json
with open('city.json', 'r') as json_file:
data = json.load(json_file)
#for x in data:
# print x['city'],x['code']
start_u... | [
"909709223@qq.com"
] | 909709223@qq.com |
dd386a441175a50e805146611c33e8f6a1432a15 | 5a9520f0508a9c0a63c3274a34e55a29f487d4ea | /product/migrations/0005_auto_20170805_1643.py | 8fdf7766a9e48d416a6ed41d4ebb543deccb6a20 | [] | no_license | Haykmartirosyan/Ararat17 | 678fc079e7aeda58f766f4252addeb5dae087966 | a9ea6c926f29e567b662adab8671fab305b5df98 | refs/heads/master | 2021-08-10T11:48:48.984444 | 2017-11-12T13:58:24 | 2017-11-12T13:58:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-08-05 12:43
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0004_auto_20170805_1632'),
]
operations = [
migrations.RenameField(
... | [
"haykmartirosyan21@gmail.com"
] | haykmartirosyan21@gmail.com |
e98f294ad5ba10a430af5b2c8c63f2069b9ccf05 | 568eee7f6711e0c9a1c7652162942689a290400b | /Test/isc/descriptor_matching.py | 9191de4ee20c15d31fb657687269b79c0df9768e | [] | no_license | peternara/ISC-Track2-Submission-copy-detection-instance-retrieval | 27edf74a1e719b02b04334bb476b77fc01c86b73 | 3209ce8e984ada1e96cb745ea8402f53008c4b6b | refs/heads/main | 2023-09-01T22:40:42.930063 | 2021-10-19T19:40:29 | 2021-10-19T19:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,126 | py | # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
import numpy as np
import faiss
from faiss.contrib import exhaustive_search
import logging
from .metrics import PredictedMatch
def query_iterator(xq):
""" produces batches of progressively increasing sizes """
nq = len(xq)
bs = 32
i ... | [
"noreply@github.com"
] | peternara.noreply@github.com |
2510f9aeb1aca58448d0c1409823dddb9170ea33 | e0ef034b87ade27dcef6afb15f6cde566fe63770 | /Prob_571/prob_571.py | 61c8ba6908f3ebd036f629a29a1d785025947be3 | [] | no_license | dannymulligan/Project_Euler.net | 621cae9622d224f68bb17d7033c9b3245d86a4cf | 4368aac279996e5972c479ed04fb6be23112650c | refs/heads/master | 2020-12-24T05:21:23.250238 | 2020-11-22T18:05:01 | 2020-11-22T18:05:01 | 1,063,955 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | #!/usr/bin/env python3
# coding=utf-8
#
# Project Euler.net Problem 571
#
# Super Pandigital Numbers
#
# A positive number is pandigital in base b if it contains all digits
# from 0 to b - 1 at least once when written in base b.
#
# A n-super-pandigital number is a number that is simultaneously
# pandigital in all base... | [
"danny@dannymulligan.com"
] | danny@dannymulligan.com |
c8fa6230c4f695b86e16baf3c83a91d450526fdf | 11a6e884557514a0ff449fade2017221d6c76a5a | /tests/test_geo.py | 6ff90f1e9cc414093cd2d76f64699173ca9982eb | [
"Apache-2.0"
] | permissive | D-PLACE/pydplace | 40bdf9a5a0a77c220b7cd6e4c3f0e0744a09d824 | 9a94a80bccd7e9d87f0aa50d40252e95fbba2a2c | refs/heads/master | 2021-12-26T02:48:21.295625 | 2021-10-15T15:12:28 | 2021-10-15T15:12:28 | 145,861,877 | 1 | 0 | Apache-2.0 | 2018-12-17T09:04:10 | 2018-08-23T14:03:39 | Python | UTF-8 | Python | false | false | 854 | py | import os
import pytest
try:
from shapely.geometry import shape
except ImportError: # pragma: no cover
shape = None
from pydplace import geo
@pytest.mark.skipif('TRAVIS' in os.environ or shape is None, reason="pygdal not installed")
def test_match():
with pytest.raises(AssertionError):
geo.matc... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
b6fc60ee84a577dab6777ff5ed1d5adbcacdb7f1 | 907b3bbd44c95be1542a36feaadb6a71b724579f | /files/usr/lib/lib/googlecloudsdk/third_party/apis/dataproc/v1/dataproc_v1_client.py | d79327324c43f6c471b52cd8aa60b1795ffd509a | [] | no_license | vo0doO/com.termux | 2d8f536c1a5dbd7a091be0baf181e51f235fb941 | c97dd7b906e5ef3ec157581fd0bcadd3e3fc220e | refs/heads/master | 2020-12-24T09:40:30.612130 | 2016-11-21T07:47:25 | 2016-11-21T07:47:25 | 73,282,539 | 2 | 2 | null | 2020-07-24T21:33:03 | 2016-11-09T12:33:01 | Python | UTF-8 | Python | false | false | 20,417 | py | """Generated client library for dataproc version v1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.dataproc.v1 import dataproc_v1_messages as messages
class DataprocV1(base_api.BaseApiClient):
"""Generated client li... | [
"kirsanov.bvt@gmail.com"
] | kirsanov.bvt@gmail.com |
2bccf6f9938eab238a1948d7bc2d001e3df424f7 | 7d5b51afb991787f3b373c3b931a06a5bbd1deaa | /DataStructure/1991.py | 54534393b854943a056619e40091508a7e57b5bd | [] | no_license | inkyu0103/BOJ | cb7549855702ba7a744d9121d12f5d327469acd6 | 0d889b9cc36a95e8e802d22a7b0ec87dbf80b193 | refs/heads/master | 2023-09-02T05:32:50.704738 | 2023-08-24T08:07:12 | 2023-08-24T08:07:12 | 247,743,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | # 1991 트리순회
| [
"inkyu0103@gmail.com"
] | inkyu0103@gmail.com |
4c05bf5671f8a9a8e4e4409071d74ed20a0ed131 | be5f4d79910e4a93201664270916dcea51d3b9ee | /rovers/fastdownward/experiments/issue736/translator_additional_parser.py | 191ada9490f10578bf39da0bbe9dc77db7d097ef | [
"GPL-1.0-or-later",
"GPL-3.0-or-later",
"MIT"
] | permissive | mehrdadzakershahrak/Online-Explanation-Generation | 17c3ab727c2a4a60381402ff44e95c0d5fd0e283 | e41ad9b5a390abdaf271562a56105c191e33b74d | refs/heads/master | 2022-12-09T15:49:45.709080 | 2019-12-04T10:23:23 | 2019-12-04T10:23:23 | 184,834,004 | 0 | 0 | MIT | 2022-12-08T17:42:50 | 2019-05-04T00:04:59 | Python | UTF-8 | Python | false | false | 279 | py | #!/usr/bin/env python
import hashlib
from lab.parser import Parser
def add_hash_value(content, props):
props['translator_output_sas_xz_hash'] = hashlib.sha512(content).hexdigest()
parser = Parser()
parser.add_function(add_hash_value, file="output.sas.xz")
parser.parse()
| [
"zaker.mehrdad@gmail.com"
] | zaker.mehrdad@gmail.com |
bc55aea97fd201d82593634da2e6d6d0f27f608a | 9879c8a1f1ac5884d9220e51c6256bb651fc800e | /pyot/endpoints/base.py | f512f29bde8dd67a1f4b793a159cf568edbdec64 | [
"MIT"
] | permissive | rasmusdoh/Pyot | d260ee37b59cca026c9edd3e9be85f2197604df6 | de5065c55f171bb39691ddc76da99c5f16da94d9 | refs/heads/master | 2023-08-05T15:56:17.726457 | 2021-09-15T20:59:39 | 2021-09-15T20:59:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | from abc import ABC, abstractproperty
from typing import Dict
from pyot.core import exceptions as exc
from pyot.pipeline.token import PipelineToken
class BaseEndpoint(ABC):
@abstractproperty
def base_url(self) -> str:
raise NotImplementedError
shared: Dict[str, str] = {}
all: Dict[str, Dict... | [
"paaksingtech@gmail.com"
] | paaksingtech@gmail.com |
8990811098100ae5cecdb76285369e90dc32f04a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_treacle.py | 09a4cb7a01940a398f67d9898b36d477c3f954f0 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py |
#calss header
class _TREACLE():
def __init__(self,):
self.name = "TREACLE"
self.definitions = [u'a sweet, dark, thick liquid that is used in cooking sweet dishes and sweets: ', u'\u2192\xa0 golden syrup : ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = '... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
67543a9959a0ce14e1551d1ebf96241580374d48 | c25271a65f0645aed55cf7c8fdc1643c03f616cb | /ResearchHelper/blog/__init__.py | a1dd7f7c73b9b0675418ed68d8c60a824ee89eed | [] | no_license | wikty/ResearchHelper | 4407777e51210abefea70131e2ea4781e3e29544 | 1357afbc489928d1c3ac0d02c00b386ad0cb1541 | refs/heads/master | 2020-03-17T21:19:22.425016 | 2018-06-22T14:37:42 | 2018-06-22T14:37:42 | 133,953,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # Import from outsite of current package
from ResearchHelper.db import db
from ResearchHelper.db import TimestampModelMixin
from ResearchHelper.api import status_code, response_json
from ResearchHelper.helper import login_required
from ResearchHelper.forms import metaclass_form_factory as form_factory
from ResearchHelp... | [
"xiaowenbin_999@163.com"
] | xiaowenbin_999@163.com |
45c7267cde1b053222beead7c493e0d5e90dc666 | bc1e7bab9b53891c40bd8affdbb25fef150d6ea9 | /country_dialcode/__init__.py | 511e9b4e8a11acfe98768d9eef1e0667b95645d5 | [
"MIT"
] | permissive | boecklic/django-country-dialcode | 8fed42817c2e6ed70b32e88a02807b0ee4060ed9 | 6db4cbf721009429dcd7be18c3de7fef8ce6c010 | refs/heads/master | 2020-03-18T21:54:10.169229 | 2018-05-31T12:16:37 | 2018-05-31T12:16:37 | 135,311,763 | 0 | 0 | null | 2018-05-29T14:53:06 | 2018-05-29T14:53:05 | null | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
#
# :description: Django reusable application to manage Dial code of Countries
#
# :copyright: (c) 2011-2014 Areski Belaid and individual contributors,
# All rights reserved.
# :license: MIT, see MIT-LICENSE.txt for more details.
#
__version__ = '0.6.0' # edit also docs/sourc... | [
"areski@gmail.com"
] | areski@gmail.com |
59534a5617b67c28abbc24897a9bba536e2e79b5 | c28e2ac41e6f237bf25a99ae2edcfb3fe1e10342 | /scheduled_tasks/get_financial.py | ecf8997a9833aec30449e0af4a96c3f0754d74b6 | [
"MIT"
] | permissive | satyami3/stock | f6997b2efd47708148e758ad58a5c47c547d0c51 | d3d3f65a25feb764e6f735f422251fd0ede520fc | refs/heads/master | 2023-08-03T14:21:57.517422 | 2021-09-03T03:50:16 | 2021-09-03T03:50:16 | 404,167,040 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,954 | py | import json
import requests
import numpy as np
import requests_cache
import yfinance.ticker as yf
from bs4 import BeautifulSoup
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from scheduled_tasks.get_popular_tickers import full_ticker_list
from helpers import *
session = requests... | [
"tanguanquan@yahoo.com"
] | tanguanquan@yahoo.com |
66509f541f61c8c3b22b2a7e0fc3bc902ee9afa0 | b116746e1e1ef0116db08668f6828e2184e175b8 | /weppy_assets/webassets/bundle.py | 65d205baff9d31d6240a8c5080ef1e29104575c5 | [
"BSD-3-Clause"
] | permissive | gi0baro/weppy-assets | 7af429d8ac5d9ad27bb4d91e485b44a97b0f2ca0 | 65b7a50b22fcb9dadc7e91a98225f6ca2b33f3b8 | refs/heads/master | 2021-01-18T21:16:36.319677 | 2017-10-23T17:01:22 | 2017-10-23T17:01:22 | 25,488,332 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,443 | py | from contextlib import contextmanager
import os
from os import path
from . import six
from .six.moves import map
from .six.moves import zip
from .filter import get_filter
from .merge import (FileHunk, UrlHunk, FilterTool, merge, merge_filters,
select_filters, MoreThanOneFilterError, NoFilters)
from... | [
"giovanni.barillari@gmail.com"
] | giovanni.barillari@gmail.com |
90b9fcbbf3f63bc0028ca260cdc9e121abd98357 | ee6fc02e8392ff780a4f0d1a5789776e4d0b6a29 | /code/practice/abc/abc144/b.py | 2eb06ae4822d6d8b0ede71c9b80ccec2f8bc1eaf | [] | no_license | mollinaca/ac | e99bb5d5c07159b3ef98cd7067424fa2751c0256 | 2f40dd4333c2b39573b75b45b06ad52cf36d75c3 | refs/heads/master | 2020-12-22T11:02:13.269855 | 2020-09-18T01:02:29 | 2020-09-18T01:02:29 | 236,757,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
n = int(input())
for i in range(1,10):
for j in range(1,10):
if i*j == n:
print ("Yes")
exit ()
print ("No")
| [
"github@mail.watarinohibi.tokyo"
] | github@mail.watarinohibi.tokyo |
b890c34b72930470f39e12ce181d6fc547d2d8a2 | 37dbd981df2bd05e446af6d51f91e867b13338a6 | /user_subscription/registration/views.py | 2dd0016e5dc1e81d93a77cb2281f4b373a1d2f28 | [] | no_license | csourabh8824/subscription_app | 7da5170a90762c0adf5bd64271c5f68e344b0e99 | 31e609a35459ea0507476dd0925fdd42ae45b09a | refs/heads/master | 2023-03-13T13:52:22.966146 | 2021-03-12T13:35:35 | 2021-03-12T13:35:35 | 346,002,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,507 | py | import json
import djstripe
import stripe
from django.conf import settings
from django.contrib.auth import logout
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django.shortcuts import redirect, render
from django.utils.decorators... | [
"csourabh8824@gmail.com"
] | csourabh8824@gmail.com |
5dd7bf9cb50bddea2b53684d73483e25e1f10495 | 1861259008276bea4a69e97e4a149f361294b1e6 | /factories/chevy_factory.py | 4c38452dd6b318c322cb1a03f258dbbd533a0d2e | [] | no_license | VCharatsidis/DesignPattern-Classic-Factory | e616f8df2004048a556bf8cdc4ba442678daeb89 | 09d00b2efabc502ba42cf82d49f4c91429505c8a | refs/heads/master | 2020-03-20T00:31:09.649208 | 2018-06-12T09:18:34 | 2018-06-12T09:18:34 | 137,046,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | # -*- coding: utf-8 -*-
from .abs_factory import AbsFactory
from autos.chevyvolt import ChevyVolt
class ChevyFactory(AbsFactory):
def create_auto(self):
self.chevy = chevy = ChevyVolt()
chevy.name = 'Chevy Volt'
return chevy | [
"charatsidisvasileios@gmail.com"
] | charatsidisvasileios@gmail.com |
82a3018d2e7dbb3bbfae1e40dc6dcb9f921b557e | 4a0ac68e8f679f951d18fb132a277368c2ace1ec | /simulation_ws/src/pie/script/moveit_test.py | bdecb0e75240b1844c988ec12b8dc7640380affa | [] | no_license | HineWAN/test-and-eval-of-multi-agent-system | 303ab38de97756436de4886bbe335592393e5221 | 10cb8cca3e124baa20af090672a50bd1385c2d53 | refs/heads/master | 2023-08-21T06:34:24.910445 | 2021-10-28T15:50:45 | 2021-10-28T15:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | #!/usr/bin/env python
import rospy
import sys
import moveit_commander
from geometry_msgs.msg import Pose
if __name__ == '__main__':
rospy.init_node('ariac_competetion_solution_node', anonymous=True)
ns = 'uav3'
moveit_commander.roscpp_initialize(sys.argv)
robot = moveit_commander.RobotCommander(robo... | [
"mrinmoy.pol@gmail.com"
] | mrinmoy.pol@gmail.com |
8443e1b4c7dbb58bde38f81ea16bf14ef0137067 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03472/s207077049.py | 14467a8f11454843f1fd5f58b95da481c41d07f6 | [] | 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 | 630 | py | import sys
from collections import deque
sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 998244353
def resolve():
n, h = map(int, input().split())
A, B = [], []
for _ in range(n):
a, b = map(int, input().split())
A.append(a)
B.append(b)
MAX_A = max(A)
B.sort(rev... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2c470c09a466950cfb341d1fa7de625a18867651 | 45e67ea5a75bb4d26953ac4de7d1276c0997ebe0 | /src/dolmen/forms/base/tests/widget_fixture.py | a6030f0e2a0c31008623cb039a581695e2ca2934 | [] | no_license | Cromlech/dolmen.forms.base | 15d2de3a32f905f7376ed65f51eb972c86915754 | 3b5405fe38fdcad3647eed6cce73dd27c06063d7 | refs/heads/master | 2021-01-17T15:08:24.406558 | 2018-05-23T14:28:23 | 2018-05-23T14:28:23 | 13,275,145 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # -*- coding: utf-8 -*-
import crom
import os.path
from cromlech.browser import ITemplate
from dolmen.forms.base import Field
from dolmen.forms.base import interfaces
from dolmen.forms.base.widgets import Widget
from dolmen.template import TALTemplate
from zope.interface import Interface
class MyField(Field):
p... | [
"trollfot@gmail.com"
] | trollfot@gmail.com |
a41e71259306a59acbd6a66da06ac3b3e39c60f7 | c6ad3f65da16e714619bb62b27565efc00364c1c | /work-packages/f5500/python/f5500/CiscoIOSXRTtyManagementCfg_ns.py | e68b646c26c93a42f5eae914e9a472e654f16f2f | [] | no_license | janlindblad/eantc20 | c0c74a1e6476ca5e5a2906f18472259d8a515b21 | e9051c77de16578c97dcf1f7ecb0a5ef30ad2e68 | refs/heads/master | 2020-12-21T19:09:36.076797 | 2020-03-17T18:17:04 | 2020-03-17T18:17:04 | 236,523,910 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | #
# BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE
# This file has been auto-generated by the confdc compiler.
# Source: ../load-dir/Cisco-IOS-XR-tty-management-cfg.fxs
# BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE BEWARE
#
# Autogenerated namespace class for YANG module Cisco-IOS-XR-tty-ma... | [
"jlindbla@cisco.com"
] | jlindbla@cisco.com |
52ff9be11f96c66c94a0f82c30fb4c5b4e52b599 | c2f59c1eb10d071cb5a0d250b177fc6ec435a0f9 | /cotede/qctests/__init__.py | 7d7bf2cd98386df088ad54cb40706aa620e1a954 | [] | no_license | s-good/CoTeDe | c3435ef9c9c0f21192ae51f83248e27c8d2ccef1 | ffd1c34266f2076cb7d4b514146e227ab0be7ef1 | refs/heads/master | 2020-04-08T08:13:03.407989 | 2016-04-07T19:18:41 | 2016-04-07T19:18:41 | 61,758,349 | 0 | 0 | null | 2016-06-22T23:28:18 | 2016-06-22T23:28:18 | null | UTF-8 | Python | false | false | 724 | py | #!/usr/bin/env python
from .qctests import *
from .global_range import global_range
from .descentPrate import descentPrate
from .location_at_sea import location_at_sea
from .density_inversion import density_inversion
from .profile_envelop import profile_envelop
from .woa_normbias import woa_normbias
from .anomaly_dete... | [
"guilherme@castelao.net"
] | guilherme@castelao.net |
c02fd98b504fac9fc9d806b27cf801789d61ed41 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2437/60901/308357.py | 8c1ba9df28d46f23093ee28cb5fb2884cb0b8f79 | [] | 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 | 259 | py | inf = input() + input() + input()
if inf == '8 3 2 R 6 L ':
print(3,end = '')
elif inf == '8 5 2 R 6 L ':
print(0,end = '')
elif inf == '6 2 2 R 6 L ':
print(6,end = '')
elif inf == '6 3 2 R 6 L ':
print(1,end = '')
else:
print(9,end = '') | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4814e20330fdf36aebc464876c7c74cb9dc0a865 | c019093a2474b92bda1b9fcab0ae750937aedc1c | /jaxlie/_base.py | 0f0e45f655548f05a2d270109e1eb65983f60b26 | [
"MIT"
] | permissive | mfkiwl/jaxlie | 6c8a83d367299592a68bb80c7dc9816e9e006f09 | 4dbe16f3c1d1cfda30e0418ef5d1e1772cf9f537 | refs/heads/master | 2023-07-13T17:11:16.693321 | 2021-08-31T18:51:33 | 2021-08-31T18:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,973 | py | import abc
from typing import ClassVar, Generic, Type, TypeVar, overload
import jax_dataclasses
import numpy as onp
from jax import numpy as jnp
from overrides import EnforceOverrides, final, overrides
from . import hints
GroupType = TypeVar("GroupType", bound="MatrixLieGroup")
SEGroupType = TypeVar("SEGroupType", b... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
f239e972b369cdd9ea22b80b3ca35972f173a62b | 9c88b828b783e23b50186a2cbba2c08610d8d10d | /espressodb/base/urls.py | 4069953faa9f7546304edd84b532afc6a943e499 | [
"BSD-3-Clause"
] | permissive | remram44/espressodb | 9a51219c0e7ec6e4c400578d02b97ef95024ba1e | 5aad7222ab81c0f1694b51171e5d197dbcc8a65f | refs/heads/master | 2020-12-08T06:07:43.736419 | 2020-01-12T20:31:20 | 2020-01-12T20:31:20 | 232,909,755 | 0 | 0 | BSD-3-Clause | 2020-01-09T21:29:09 | 2020-01-09T21:29:08 | null | UTF-8 | Python | false | false | 1,381 | py | # pylint: disable=invalid-name, line-too-long
"""Contains url patterns for the base app. This includes the index view.
The URL-app name is ``base``.
+-----------------+----------------------+-----------------------------------------------------+
| Name | Path | View ... | [
"christopher@ckoerber.com"
] | christopher@ckoerber.com |
67351d6076d39ec11ef13f88c0eabd341649c6c7 | 41e63a437c550fcc41f7b6eb2b2b77994695e205 | /climetlab/__init__.py | 9c2003bf51f3c5babbaa0c74463e9c15f1aef490 | [
"Apache-2.0"
] | permissive | hades-rp2010/climetlab | dc66b34ae5c850b02c91616460dec50168add984 | f2f6f39b8bdad84ca7c59d7bb2a9617295d380a3 | refs/heads/master | 2023-02-25T08:44:18.248198 | 2021-01-26T16:01:46 | 2021-01-26T16:01:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # (C) Copyright 2020 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmenta... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
d206be3d0dd070ff707d6d089114017200dfd1ce | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj9-10_165809.14+214046.4/sdB_SDSSJ910_165809.14+214046.4_lc.py | 3db5848ced9e17291fcab22b9a086eb8d758c348 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[254.538083,21.679556], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ910_165809.14+214046.4 /sdB_SDSSJ910_165809.14+214046.4_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
954b96e52fd3a2e582ee7947aa37fecab875c5eb | 2ce27b05f45cef6ce3ae5c02b8e83e548def2fc6 | /ADVANCE/Regex/match object.py | 4364a3328d64f36b5b2c0d334c2556f360bd2396 | [] | no_license | Ajay2521/Python | 775b7d99736e83e4d0c37302b91d1413dd2c0d3b | a426dd7717de8a5e60e584d208ae7120bb84c1b3 | refs/heads/master | 2022-12-01T17:49:12.672061 | 2020-08-15T14:55:12 | 2020-08-15T14:55:12 | 273,632,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | # Lets see about "match object" in python.
# match object used to contains the information about the search and the output of it.
# NOTE : If no match is found then it returns None object.
# Here is the example for match object
# importing re module which is used for regex.
import re
str = "Hello al... | [
"noreply@github.com"
] | Ajay2521.noreply@github.com |
748c836abdb5df527545692a8a68c1b5c2bc5ced | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/scratch/jakub/xfem/combined_elem_types.py | d89aedab99b29a9846f93952741e0d565d7ca5bb | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 3,558 | py |
from ibvpy.mats.mats2D.mats2D_elastic.mats2D_elastic import MATS2DElastic
from ibvpy.fets.fets2D.fets2D4q import FETS2D4Q
from ibvpy.fets.fets2D.fets2D4q8u import FETS2D4Q8U
from ibvpy.fets.fets_ls.fets_crack import FETSCrack
from ibvpy.api import\
BCDofGroup, TStepper as TS, TLoop, TLine, RTraceGraph
from ibvpy... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
04a975c8510cb9443a48bbd7cbd3465313e9849b | 377fc6e13101a2a45826cd118110c790f396a805 | /abc122-a.py | ebde48c814378d4f8f170ca1d13f25d45139a03e | [] | no_license | number09/atcoder | 4076e7223f424b9923754e73992d6442e0bb0de7 | f521ca1205b254d99744abaf6a7a5bfe69845fe0 | refs/heads/master | 2021-06-04T23:16:39.021645 | 2021-01-19T08:30:39 | 2021-01-19T08:30:39 | 132,128,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | b = input()
tpl = tuple(filter(lambda x: b in x, [('A', 'T'), ('C', 'G')]))[0]
print(tpl[0] if tpl[1] == b else tpl[1])
| [
"cielo.abierto09@gmail.com"
] | cielo.abierto09@gmail.com |
d81fa951558cf709102bff99f7180a96c7e0a0a6 | 55e28e35db5bf6a844df3fb47080500b115a893e | /Projects/mysite_django/cmdb/views.py | e1555c855988d1f3ca1c859795f91b54d22904a5 | [] | no_license | pylarva/Python | 5743ffa4a69db42b642d51b62f9e9b69ddbc1a72 | 71b484950e6dbdcf708726a68a3386d0d6ddc07f | refs/heads/master | 2020-04-19T09:11:11.195393 | 2017-11-16T07:32:59 | 2017-11-16T07:32:59 | 67,507,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | from django.shortcuts import render
from cmdb import models
from django.shortcuts import redirect
from django.shortcuts import HttpResponse
# Create your views here.
def index(request):
# return HttpResponse('123')
if(request.method == "POST"):
u = request.POST.get('username', None)
e = reque... | [
"1326126359@qq.com"
] | 1326126359@qq.com |
ee7ec859f8ce2cded8c3237095e9855646ce6ebf | b9e5aebb49734ad47825130529bd64e59f690ecf | /chapter_2/chapter_2.py | 2131f135677ef7a6134f1995fd34d97f6e38082c | [] | no_license | mikegirenko/python-learning | dab0f67d990d95035f93720986c84aaf422f7a9f | db9e3f0e3897caf703169d1f14b15a9aa1901161 | refs/heads/master | 2021-07-09T08:03:40.535653 | 2020-08-05T00:13:41 | 2020-08-05T00:13:41 | 169,983,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """
Working with variables
"""
message = 'Hello Python World!'
print(message)
message = 'Hello Python Crash Course world!'
print(message)
message_1 = 'properly named variable'
print(message_1)
s_n = 'not so properly named variable, should be student_name'
print(s_n)
# message = 'this generates error because print(... | [
"mike.girenko@cybergrx.com"
] | mike.girenko@cybergrx.com |
2cfc7ab079bf51d6fe00b687d6f9805ce36e9107 | badf813b23670f38233a2f66031df33b12d6685c | /annolid/motion/extractor.py | ecf7e34ea4b65fe77f75e0efb919151eb4c3cd8e | [
"MIT"
] | permissive | healthonrails/annolid | 6ef2de72bc666e247ae51ae1a5df3d75337fc28c | 730f7dff2239ef716841390311b5b9250149acaf | refs/heads/main | 2023-09-01T20:52:14.857248 | 2023-09-01T14:34:34 | 2023-09-01T14:34:34 | 290,017,987 | 25 | 8 | MIT | 2022-05-03T14:36:21 | 2020-08-24T19:14:07 | Jupyter Notebook | UTF-8 | Python | false | false | 9,167 | py | """
RAFT: Recurrent All Pairs Field Transforms for Optical Flow
ECCV 2020
Zachary Teed and Jia Deng
https://github.com/princeton-vl/RAFT/blob/master/core/extractor.py
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
class ResidualBlock(nn.Module):
def __init__(self, in_planes, planes, norm_f... | [
"healthonrails@gmail.com"
] | healthonrails@gmail.com |
9082d5e35094c40b585983252c86faa950ddec23 | caf6ae544fce3b332b40a03462c0646a32c913e1 | /master/python/swagger_client/models/address.py | 13b2ce7f3a0e5c66f8f6b386b0c20939ecd7fec0 | [
"Apache-2.0"
] | permissive | coinsecure/plugins | 827eb0ce03a6a23b4819a618ee47600161bec1c7 | ad6f08881020c268b530d5242d9deed8d2ec84de | refs/heads/master | 2020-05-30T07:17:56.255709 | 2016-11-27T22:22:23 | 2016-11-27T22:22:23 | 63,496,663 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | # coding: utf-8
"""
Coinsecure Api Documentation
To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guideli... | [
"vivek0@users.noreply.github.com"
] | vivek0@users.noreply.github.com |
5a35e61e2ddbbc15421feb68a23b71494e60c993 | 1a220abd21c56728aa3368534506bfc9ced8ad46 | /95.COS/1급/3차/3차 1급 8_initial_code.py | d9ec5417ed585553b9a8ec3bd60c0f8850c09d50 | [] | no_license | JeonJe/Algorithm | 0ff0cbf47900e7877be077e1ffeee0c1cd50639a | 6f8da6dbeef350f71b7c297502a37f87eb7d0823 | refs/heads/main | 2023-08-23T11:08:17.781953 | 2023-08-23T08:31:41 | 2023-08-23T08:31:41 | 197,085,186 | 0 | 0 | null | 2023-02-21T03:26:41 | 2019-07-15T23:22:55 | Python | UTF-8 | Python | false | false | 1,852 | py | # 교실에 선풍기가 4 대 있습니다 . 선풍기는 한 대당 학생 k 명에게 바람을 보냅니다 . 모든 학생에게 바람
# 을 보내기 위해서 선풍기를 몇 대 더 구매해야 할지 구하려고 합니다
# 예를 들어 , 선풍기 한 대당 학생 3 명에게 바람을 보낼 수 있을 때 , 한 교실당 학생 수가 [15, 17, 19,
# 10, 23] 명이고 선풍기가 4 대 있으면 교실당 학생 [3, 5, 7, 0, 11] 명을 위해 선풍기를 더 구매해야 합
# 니다 . 이때 , 교실 별로 선풍기가 [1, 2, 3, 0, 4] 대씩 더 필요하니 총 선풍기 10 대를 추가로 구매해야
# 합니다
#... | [
"43032391+JeonJe@users.noreply.github.com"
] | 43032391+JeonJe@users.noreply.github.com |
1bceaf65921d2df345ca77a6e7b108e00e930494 | ec857c5be7421a6a949da8b11949a278aefb3fb0 | /basic_regression.py | 5aae7ae7ad307ff12b6de7645671521d043a9f52 | [] | no_license | kk412027247/learn-tensorflow | 1a282171c770cba8bc7b8da56d9fd425682b9318 | c9c3cc315ccf429931458745623be91bee099d83 | refs/heads/master | 2020-06-06T14:34:47.402301 | 2019-09-12T11:38:54 | 2019-09-12T11:38:54 | 192,765,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,130 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import pathlib
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
# pd.set_option('display.max_rows', 100000)
print(tf.__... | [
"kk412027247@gmail.com"
] | kk412027247@gmail.com |
c4a40b99d6c0f8f6927f012bdcba2069cddeb952 | fd56bcee0326b529eaf66462827ec0bf790c3335 | /days31/上传下载/server_common.py | c891b5679e0caf96508665c9a2877de40e5737af | [] | no_license | 95Li/oldboy-learning-code | d1ff638e7d9db27b03afde1ff99844f3de2d9f46 | dbf97bd5bfb906bce4e92cc378aef277e6ebd443 | refs/heads/master | 2020-03-21T15:59:31.604549 | 2018-06-27T14:32:12 | 2018-06-27T14:32:12 | 138,744,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py |
import os,json,time
import struct,hashlib
from ..上传下载 import common
BASE_PATH='F:\python\object\days2\days31\上传下载\服务器fv\\user'
def login(conn, hand_info):
path=os.path.join(BASE_PATH,hand_info['user_name'])
if os.path.exists(path):
with open(path,'r',encoding='utf-8')as f:
user... | [
"861083372@qq.com"
] | 861083372@qq.com |
7fda8320bd4c05908567d40b114e59df2b2dd00e | c4af67db4c523d20f2d55aef90ba77db1fb53c38 | /ZopeVersionControl/nonversioned.py | 0931b9e925a87c00f7aa87bb4ace6e1968538ce5 | [] | no_license | dtgit/dtedu | e59b16612d7d9ea064026bf80a44657082ef45a3 | d787885fe7ed0de6f9e40e9b05d852a0e9d60677 | refs/heads/master | 2020-04-06T05:22:50.025074 | 2009-04-08T20:13:20 | 2009-04-08T20:13:20 | 171,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,339 | py | ##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"ron@domU-12-31-39-02-65-03.compute-1.internal"
] | ron@domU-12-31-39-02-65-03.compute-1.internal |
356ad0f773fbbb5e999ccf2b5269377f25ce7c5f | 73185944d6e7ec558dd7da69d3f5edefa64c1c96 | /projects/olds/cocotools/coco_transform.py | 65a5643cda994ddadf0d0afd5b2842c4150b265f | [
"BSD-2-Clause"
] | permissive | Bingwen-Hu/hackaway | b5a233b6a1a4865389f0be04bcb63db88809e4c7 | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | refs/heads/master | 2020-08-06T01:17:39.135931 | 2019-10-28T11:46:55 | 2019-10-28T11:46:55 | 212,782,128 | 0 | 0 | BSD-2-Clause | 2019-10-28T11:46:57 | 2019-10-04T09:43:01 | Python | UTF-8 | Python | false | false | 2,397 | py | """
This python script is used to transform the raw annotations format to MS coco format
the raw annotations format is:
img_name,x1,y1,x2,y2,x3,y3,x4,y4,classid
xxx.jpg,0,0,10,0,10,10,0,10,1
xxx.jpg,0,0,10,0,10,10,0,10,2
...
"""
import json
import os
import cv2
root = "/media/data/urun_tandong_video/data/signal"
clas... | [
"mory2016@126.com"
] | mory2016@126.com |
e8b43a96695515f88532dcb7802cc7b417a0d0da | 340e9825b7d29d83a7434555806aded478ef610a | /file_reader.py | 45680190768c88265861f0518a715fbf010d49d3 | [] | no_license | SamCadet/PythonScratchWork | d1ae202b815e795bc4caf19bfa7cfc1a4a076bb1 | 07bd3a7bf7fde2d0e1e9b1f7cff1ee6aa128fdc9 | refs/heads/main | 2023-07-03T02:44:12.006432 | 2021-07-29T19:37:42 | 2021-07-29T19:37:42 | 390,822,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | with open('pi_digits.txt') as file_object:
contents = file_object.read()
print(contents)
'''
p. 185
The only difference between this output and the original file is the
extra blank line at the end of the output. The blank line appears because
read() returns an empty string when it reaches the end of the file; thi... | [
"scadet1@gmail.com"
] | scadet1@gmail.com |
5041e0c8f7f928bfcbeaa92153d6d74fa3355658 | ddfe94b5932bc3f6cee7aff0e3c90d6218cdda8b | /ch1/bulletinboard/apps.py | 4ed53cfef359343055647e02205856ba08790eb1 | [] | no_license | yoongyo/roomhomepage | e4646a595c140f06a4cedcf7b1d8acf664aada14 | a9a486a8c1f7171efb6ee5186b043046d54dd1d9 | refs/heads/master | 2020-04-29T22:39:41.849304 | 2019-03-19T07:49:21 | 2019-03-19T07:49:21 | 176,454,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class BlogConfig(AppConfig):
name = 'bulletinboard'
| [
"jyg0172@naver.com"
] | jyg0172@naver.com |
4d2ccf1956f93caffbd2221a3751687cbd4f0003 | a9ac1f433f0badda2087caa09720102f73e0f9b2 | /dashboard/dashboard/file_bug_test.py | 383ff29a041be5dfb050f7e26da0f64851fe949c | [
"BSD-3-Clause"
] | permissive | aratik711/catapult | 31fa34a1689ba4971d1443928fa547aa7e3f2060 | 02bb14c83b69f7c612aced1d2be8044263ff1a2e | refs/heads/master | 2020-04-21T01:00:22.297732 | 2019-02-04T20:49:18 | 2019-02-04T21:55:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,512 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import datetime
import json
import sys
import unittest
import mock
import webapp2
import webtest
# Importing mock_oauth2_decorator before file_bug mocks ou... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
f3973372ec902673a21143df41ef07eeba5c7360 | 860c31e414c4c280b70ec0872042d715a2d56978 | /benchmarks/train_multi_cpsc2019/dataset.py | fb6aa5eee4e1aea1bd7e1479692235f7e44fcd8f | [
"MIT"
] | permissive | DeepPSP/torch_ecg | 255e49ff436e13044a1f049141f982680e56970e | a40c65f4fefa83ba7d3d184072a4c05627b7e226 | refs/heads/master | 2023-09-01T06:47:17.153216 | 2023-08-31T18:00:47 | 2023-08-31T18:00:47 | 298,482,237 | 111 | 16 | MIT | 2023-08-21T11:25:07 | 2020-09-25T06:03:17 | Python | UTF-8 | Python | false | false | 6,704 | py | """
data generator for feeding data into pytorch models
"""
import json
import math
from copy import deepcopy
from pathlib import Path
from random import shuffle
from typing import List, Optional, Sequence, Tuple
import numpy as np
import torch
from torch.utils.data.dataset import Dataset
from tqdm.auto import tqdm
... | [
"wenh06@gmail.com"
] | wenh06@gmail.com |
25efe489b5a383137fce9ed37d9f24c5df830001 | 463411688fd841add1c89c88852cff79c223cca4 | /resources/pageobjects/inventory_view/ies_backend_integration.py | 87465c92e858949f8898d7ca2a57520252b5c41b | [] | no_license | hsiang0107/Restful_API_Testing | 8d9063186e53ddf03d50efa983ec3f73ec794958 | 2411b9c8a3c87336f7dbfaa807857d01bb1540d9 | refs/heads/master | 2020-03-23T04:56:56.345366 | 2018-07-16T09:27:10 | 2018-07-16T09:27:10 | 141,115,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,536 | py | import os
import time
import requests
from lib.DBHelper import *
from lib.ConfigHelper import ConfigHelper
from lib import DBHelper, xml_helper, process_helper
from lib.LogSender.LogSender import LogSender
from robot.utils.asserts import assert_equal, assert_not_none, assert_none
from db.factory_boy import *
def ies_... | [
"hsiang0107@hotmail.com"
] | hsiang0107@hotmail.com |
c1b1aeb053a68aa3180332928669b61a635928a7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2265/60632/302561.py | 40580cc224192ceb4bd17657c31a4215d7df67ba | [] | 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 | 140 | py | n = int(input())
data=[]
for i in range(n):
data.append(input())
if False:
print(1)
print(2)
else:
print(n)
print(data)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
d436dd8b2719d34dca3a3330bb289d4f713a8d9e | 914ca4921c114c917267214e0987ebecf30b3510 | /Programming_Practice/Python/Base/Bigdata_day1030/Node.py | 269e05dcc3312311e2f03d15585596258a699a52 | [] | no_license | BurnFaithful/KW | 52535030ea57f1489a0d108d599b66ffee50a1f4 | 15deb50449b8f902f623f20b97448c0f473a9342 | refs/heads/master | 2022-12-20T16:06:01.827398 | 2020-09-12T08:51:23 | 2020-09-12T08:51:23 | 294,897,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | class SLNode:
def __init__(self, value, link):
self.value = value
self.link = link
class DLNode:
def __init__(self, value, prev, next):
self.value = value
self.prev = prev
self.next = next | [
"burnfaithful@gmail.com"
] | burnfaithful@gmail.com |
f657525688e0065be67b176755ebfd1d8721ccd9 | a281d09ed91914b134028c3a9f11f0beb69a9089 | /contrib/great_expectations_semantic_types_expectations/great_expectations_semantic_types_expectations/expectations/expect_column_values_to_be_valid_ltc_address.py | 952d1f71be17d3c914c7f81874eab22684463c95 | [
"Apache-2.0"
] | permissive | CarstenFrommhold/great_expectations | 4e67bbf43d21bc414f56d576704259a4eca283a5 | 23d61c5ed26689d6ff9cec647cc35712ad744559 | refs/heads/develop | 2023-01-08T10:01:12.074165 | 2022-11-29T18:50:18 | 2022-11-29T18:50:18 | 311,708,429 | 0 | 0 | Apache-2.0 | 2020-11-10T15:52:05 | 2020-11-10T15:52:04 | null | UTF-8 | Python | false | false | 6,019 | py | """
This is a template for creating custom ColumnMapExpectations.
For detailed instructions on how to use it, please see:
https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_map_expectations
"""
import json
from typing import Optional
import coinaddrv... | [
"noreply@github.com"
] | CarstenFrommhold.noreply@github.com |
68dd256b89a6494d0d618a7b38719e25f3d16f42 | a79d7f5d0ff7f4ad2c5755f74a8685123eb79157 | /week4/isPrime.py | 7afffc427f6484697b17a2125ae98027d6a720b7 | [] | no_license | ArtamoshinN/python | 54c4adf5359fd18c55ce8268c4dde89d1e8b203c | 3c9c69f06e6d1ab890ed7ae057bf331d2d007539 | refs/heads/master | 2021-01-24T03:03:49.064277 | 2018-07-03T18:47:56 | 2018-07-03T18:47:56 | 122,875,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | def IsPrime(n):
i = 2
while i < n:
if n % i == 0:
return 'NO'
break
elif i >= n ** 0.5:
return 'YES'
break
else:
i += 1
return 'YES'
n = int(input())
print(IsPrime(n))
| [
"nikita@MacBook-Pro-Markovic-2.local"
] | nikita@MacBook-Pro-Markovic-2.local |
7403e8d5b4781adfba8078defb4414785380cb50 | 030724b60fb4f8b63953b7401702a98072993e94 | /python/94.binary_tree_inorder_traversal.py | 8c2bf4ffe0b38f145e76dcfea1c85678b0d4e652 | [] | no_license | MtTsai/Leetcode | 5f51a892b78cf6427ce2b4891a10bc2d4ed4d972 | 21e83294aee779a16a8c1b96089da4a40eb03035 | refs/heads/master | 2021-01-24T17:17:52.909429 | 2019-08-04T06:53:53 | 2019-08-04T06:54:23 | 123,228,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def inorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
... | [
"mttsai@gmail.com"
] | mttsai@gmail.com |
f1cf6a0aa8de13c430b728e6a41e7d8357bcd298 | 8f6cc0e8bd15067f1d9161a4b178383e62377bc7 | /fish_classification/pytorch_cnn_tutorial/fish_classification_demo.py | 355785da24cf163f7320e69aad93c20db54010ca | [] | no_license | humorbeing/python_github | 9c4dfc61a3cefbb266fefff335f6b28d05797e5e | e4b4b49bee7e7e3843c6874717779ce8d619bd02 | refs/heads/master | 2023-01-22T21:51:20.193131 | 2020-01-26T21:47:23 | 2020-01-26T21:47:23 | 163,707,778 | 0 | 0 | null | 2022-12-27T15:37:48 | 2019-01-01T01:58:18 | Python | UTF-8 | Python | false | false | 5,832 | py |
import torch
import torch.nn as nn
import torch.optim as optim
from torchvision import datasets
import time
import torchvision
from torchvision import transforms
import numpy as np
from torch.utils.data.sampler import SubsetRandomSampler
import copy
import matplotlib.pyplot as plt
# Hyperparameter
batch_size = 5
EPOC... | [
"geemguang@gmail.com"
] | geemguang@gmail.com |
ccfddd95382e2b8543549b018124084f30ea417f | 7efabf599aaf53728a681639bc57cadc3abe6bde | /python/pylibcugraph/pylibcugraph/testing/utils.py | 50fe18fe13db4fa6acc5d1a31e050dc3dda918ba | [
"Apache-2.0"
] | permissive | rapidsai/cugraph | 49b5378271c72c155f55d916a3c1cc1fbe05ceca | cafded113c9545e5e7211cc965f53c00939307c0 | refs/heads/branch-23.10 | 2023-08-26T19:36:33.631587 | 2023-08-25T13:49:23 | 2023-08-25T13:49:23 | 157,752,451 | 1,403 | 310 | Apache-2.0 | 2023-09-13T17:01:25 | 2018-11-15T18:07:11 | Cuda | UTF-8 | Python | false | false | 5,439 | py | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
# 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... | [
"noreply@github.com"
] | rapidsai.noreply@github.com |
066a812d20643181a6b620a42e4188945109715e | bc5e3ec2665f795b84671317ce736719ab79dc0f | /maintain_frontend/view_official_search/validation/search_reference_validator.py | 908e3dd2f1962b7e34cf0e6be23bca9e402f6f4c | [
"MIT"
] | permissive | uk-gov-mirror/LandRegistry.maintain-frontend | 9de44a9f42c4c29682276420dcf297d0afb48e5f | d92446a9972ebbcd9a43a7a7444a528aa2f30bf7 | refs/heads/master | 2021-09-26T16:14:55.686790 | 2018-10-29T15:37:03 | 2018-10-31T14:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | from maintain_frontend.services.validation.field_validator import FieldValidator
from maintain_frontend.services.validation.validation_error_builder import ValidationErrorBuilder
class SearchReferenceValidator(object):
@staticmethod
def validate(reference, found=True):
"""Specifies which validation me... | [
"james.lademann@landregistry.gov.uk"
] | james.lademann@landregistry.gov.uk |
71f9b5880ea7a41dcb4969b9ba861ed02b931135 | 653a3d9d66f3d359083cb588fc7c9ece8bb48417 | /src/graph_transpiler/webdnn/backend/webgl/kernels/transpose.py | dbd69ef10051bbcac8450a89035236029b6093d0 | [
"Zlib",
"MIT"
] | permissive | leonskim/webdnn | fec510254b15f3dec00f5bed8f498737b372e470 | f97c798c9a659fe953f9dc8c8537b8917e4be7a2 | refs/heads/master | 2020-04-15T18:42:43.632244 | 2019-01-10T10:07:18 | 2019-01-10T10:07:18 | 164,921,764 | 0 | 0 | NOASSERTION | 2019-01-09T19:07:35 | 2019-01-09T19:07:30 | Python | UTF-8 | Python | false | false | 187 | py | from webdnn.backend.webgl.kernels.elementwise import register_elementwise_kernel
from webdnn.graph.operators.transpose import Transpose
register_elementwise_kernel(Transpose, "y = x0;")
| [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
5145de0b259f191483603529d3834683d1e15912 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/cherrypy/tutorial/tut05_derived_objects.py | b0ca13de4fc11e0261142bc9b6a4bbedc2937ba3 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,376 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\cherrypy\tutorial\tut05_derived_objects.py
import cherrypy
class Page:
title = 'Untitled Page'
def header(self):
return '\n <html>\n <head>\n <title>%s</tit... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
b744c8f675b626006180e33e99be06ffd28dcc53 | 5922398212b6e113f416a54d37c2765d7d119bb0 | /python/Reverse Integer.py | 01e6f3e769b89a5962bb8a46049b8a7c9cb253a9 | [] | no_license | CrazyCoder4Carrot/lintcode | e777f73e1fdfe3b8abc9dbfc07d26602bf614151 | 33dcd7f0e2d9bee58840a3370837cb2db82de1eb | refs/heads/master | 2021-01-09T20:38:59.813198 | 2017-01-16T22:34:26 | 2017-01-16T22:34:26 | 60,287,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | class Solution:
# @param {int} n the integer to be reversed
# @return {int} the reversed integer
def reverseInteger(self, n):
# Write your code here
flag = ""
if n < 0 :
flag = "-"
n = -n
res = int(flag + str(n)[::-1])
return res if res < 2 **... | [
"liuzhenbang1988@gmail.com"
] | liuzhenbang1988@gmail.com |
4e249e3955048c8e85759cd12f577ec911ddd208 | 2c78b0b78f57dda018fe382a4ddda964eb3e68fd | /面向对象/动态导入模块.py | 6852e0066300cc05dc669ac57c1090c48dd669cd | [] | no_license | Cola1995/s3 | 3a4621035928dcaa42c3117d25e88cf46a5f0721 | d5612d63dac415f861d379b20ba6a165faf213ae | refs/heads/master | 2020-04-13T14:14:38.753238 | 2019-03-22T01:36:46 | 2019-03-22T01:36:46 | 163,255,923 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from m1 import t
t.test1()
t._test2()
# i=__import__('m1.t')
# print(i)
# i.t.test1()
# i.t._test2()
#
# import importlib
# i1=importlib.import_module('m1.t')
# print(i1)
# i1.test1()
# i1._test2() | [
"991571566@qq.com"
] | 991571566@qq.com |
23440926c6bcefce78c57b57ac6c07e56cd3e28c | 0d6e73bb92277423e36aef39b1d9b346a9842204 | /product_pricelist.py | 1ee452e2509158bfc7fbcf1a22d5335d4ecbb676 | [] | no_license | cgsoftware/price_for_partner | 2cad7e87302555e56897576e1b6b29ca25a76382 | 8a6104e1508e2f4b42a44c113d3d1083b89272cf | refs/heads/master | 2021-01-10T13:34:36.592713 | 2011-11-30T18:12:22 | 2011-11-30T18:12:22 | 2,107,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,871 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... | [
"g.dalo@cgsoftware.it"
] | g.dalo@cgsoftware.it |
5f2ace1a6d07db089fcec511a9c76e7f5445e5e8 | 6503685cdd8fcc02cf592fb57225217197ead15f | /[1541] 잃어버린 괄호.py | 28ebe9eb7503b2ffb1b8e782052914ee9be827f0 | [] | no_license | jeanP-tech/Algorithms | 4d55f4f265225caaea948839025a404a7509a57d | e3de7826449bbaf95168fd4eb06ee418aefd9e17 | refs/heads/master | 2021-07-13T01:14:48.790230 | 2020-07-10T11:28:52 | 2020-07-10T11:28:52 | 164,285,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import sys
input = sys.stdin.readline
expressions = input().strip().split('-')
numbers = []
for expression in expressions:
num_sum = 0
splitted_nums = expression.split('+')
for num in splitted_nums:
num_sum += int(num)
numbers.append(num_sum)
answer = numbers[0]
for i in range(1, len(number... | [
"noreply@github.com"
] | jeanP-tech.noreply@github.com |
543c392652c0f1b48cc6e2df0fce69f952c19969 | f0e25779a563c2d570cbc22687c614565501130a | /Think_Python/interlock.py | 8f12e2e35f9e7427226129c04045c86abfe42f09 | [] | no_license | XyK0907/for_work | 8dcae9026f6f25708c14531a83a6593c77b38296 | 85f71621c54f6b0029f3a2746f022f89dd7419d9 | refs/heads/master | 2023-04-25T04:18:44.615982 | 2021-05-15T12:10:26 | 2021-05-15T12:10:26 | 293,845,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | """This module contains code from
Think Python by Allen B. Downey
http://thinkpython.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from Think_Python.inlist import *
def interlock(word_list, word):
"""Checks whether a word can be split into two interlocked words.... | [
"cherry.kong0907@gmail.com"
] | cherry.kong0907@gmail.com |
835a90e0bd263a241d6968f16954add541005950 | 6679fd1102802bf190294ef43c434b6047840dc2 | /openconfig_bindings/bgp/neighbors/neighbor/state/messages/__init__.py | 2b9f4f2b072de3b60bff6b1dfd4bcd3ebd72b19e | [] | no_license | robshakir/pyangbind-openconfig-napalm | d49a26fc7e38bbdb0419c7ad1fbc590b8e4b633e | 907979dc14f1578f4bbfb1c1fb80a2facf03773c | refs/heads/master | 2023-06-13T17:17:27.612248 | 2016-05-10T16:46:58 | 2016-05-10T16:46:58 | 58,091,515 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,057 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"rjs@jive.com"
] | rjs@jive.com |
a487fbd2ef5017c29a7f09a0f07c981fb1255df0 | d8574d8ca5c571fd7ed3b67dac00c55df2ac6580 | /tools/g3/python/g3/evaluator/evaluateCorpus.py | c6012ebc8248a3bd4475ee8aabb899eb38a4cdf0 | [] | no_license | h2r/slu_core | 19de87e55e84dd4dada65b4d7b65857bdae740e8 | e30c0245177e8481397fd4987422e3d35d79ec08 | refs/heads/master | 2021-07-09T18:19:33.424551 | 2020-07-06T18:49:18 | 2020-07-06T18:49:18 | 143,929,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,375 | py | import cPickle
import yaml
import collections
import math
import os
import shelve
import sys
from environ_vars import SLU_HOME
from esdcs.dataStructures import ExtendedSdcGroup
from esdcs.esdcIo import annotationIo
from esdcs.extractor import extractor_utils
from g3.cost_functions.cost_function_utils import make_cost_... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
1b3ac6b0cea788c100435d2be9767f42fe807be0 | 3ffbb2f679afd3f9999622a08cb0d1703dd033ca | /fame/env/lib/python2.7/site-packages/flask_paginate/__init__.py | e26b9d4ba23edca9705f9d4016d042e0fbe335a9 | [] | no_license | MaikSoriano/TFM | 762d8aa9bd32c8ac0161c63362b2ec98a523913d | 6e44429b912216455446aaee06336b6d28859bfb | refs/heads/master | 2021-01-15T08:19:35.060590 | 2018-05-21T15:50:55 | 2018-05-21T15:50:55 | 99,564,084 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,803 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
flask_paginate
~~~~~~~~~~~~~~~~~~
Adds pagination support to your application.
:copyright: (c) 2013 by Lix Xu.
:license: BSD, see LICENSE for more details
"""
from __future__ import unicode_literals
import sys
from flask import req... | [
"root@debian"
] | root@debian |
eba2f26ad414f8eb25dd2ce2803d0a872d10d578 | e2b80fd747f2689e117060e77dc146f39743b16a | /pandoc/latex-suppress-figures.py | 7445137fb6c293a4e2bfc3a3ae9f588e0406f005 | [] | no_license | tophertoy/jasa-markdown-template | ebf8a9379abee9dfb7e8f89844f75f0d77eec98e | e591e48570bb2776125cab93a38ce848a1dedf1b | refs/heads/master | 2021-06-14T01:28:09.266674 | 2017-03-30T19:22:50 | 2017-03-30T19:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
'''
This script excises figures from a LaTeX source document.
'''
import sys
infile = sys.argv[-2]
outfile = sys.argv[-1]
fig = False
fignum = 1
with open(infile, 'r') as f, open(outfile, 'w') as g:
for line in f:
if '\\begin{figure}' in line:
fig... | [
"dan.mccloy@gmail.com"
] | dan.mccloy@gmail.com |
995630ea852b6cc02d51a36e0ba932f5b9a0a665 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/mmtbx/tls/decompose.py | b5095ab9b053ca8f74dd2bc44fafc1e52ef09426 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | 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 | 181 | py | from __future__ import absolute_import, division, print_function
import boost.python
ext = boost.python.import_ext("mmtbx_tls_decompose_ext")
from mmtbx_tls_decompose_ext import *
| [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
1b04001252fde928e8dae068008d2a3854695082 | 16aadc44ba8a0f975476137e3b0993363c5463dc | /genice2/lattices/Struct39.py | a71b995e832cdc2c5bee630043afd7baff9dfff6 | [] | no_license | rusl2019/GenIce | 072c4896c3501679a11c5fcd7f5d6c06c16b673b | 51df0c850dea20c7757c659ae089147aa674dfa7 | refs/heads/main | 2023-06-22T18:47:10.842424 | 2023-06-19T15:54:12 | 2023-06-19T15:54:12 | 404,446,797 | 0 | 0 | null | 2021-09-08T18:01:43 | 2021-09-08T18:01:42 | null | UTF-8 | Python | false | false | 12,402 | py | # coding: utf-8
"""
Data source: Dutour Sikirić, Mathieu, Olaf Delgado-Friedrichs, and Michel Deza. “Space Fullerenes: a Computer Search for New Frank-Kasper Structures” Acta Crystallographica Section A Foundations of Crystallography 66.Pt 5 (2010): 602–615.
Cage composition:
(12,14,15,16) = (18,4,4,6,)
"""
from geni... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
f0c3a4a020ebc3d2f3b806a89bf4439b64c6836d | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/11314056.py | 062172db0057d93c5d5b0338122d6ba36b044b48 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/11314056.py generated: Wed, 25 Jan 2017 15:25:17
#
# Event Type: 11314056
#
# ASCII decay Descriptor: {[B0 -> (omega(782) -> pi+ pi-) e+ mu-]cc,[B0 -> (omega(782) -> pi+ pi-) e- mu+]cc}
#
from Configurables import Generation
Generation().EventType = 11... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
95a44f822d2ccb301627240b5b72577049c5c83c | 9a22371ee720412528a7ed6e657ef4de0ab2c374 | /python-captcha识别图形验证码/01/init_operate.py | d2af393ed2c7789cbf2c68cbef5ff30cc5ca2f16 | [] | no_license | gujie1216933842/codebase | 61b8ad1088be54753161d25e95051c1d5f404a6c | e7a0c3a44f623f0c77b0debdecd70703cc77651c | refs/heads/master | 2021-04-12T09:57:01.526725 | 2018-10-23T03:42:32 | 2018-10-23T03:42:32 | 126,582,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | import cv2
# 自适应阀值二值化
def _get_dynamic_binary_image(filedir, img_name):
filename = './out_img/' + img_name.split('.')[0] + '-binary.jpg'
img_name = filedir + '/' + img_name
print('.....' + img_name)
im = cv2.imread(img_name)
im = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY) #灰值化
# 二值化
th1 = cv2.adaptiveThreshol... | [
"gujientsy@163.com"
] | gujientsy@163.com |
52f2d79ec234967e74806941e77e003375ddcec6 | f69ed23f4b697aade865ae5835c10824112e1d91 | /hackernews/migrations/0013_news_likes.py | 76546ed371f72247fcb96d4516aed727f2e48d13 | [] | no_license | AlMoosa/hackernews | 1ff187b62bf15590ed09fd51e43cc9c1e9d05bbc | 223783114a437e6e9c1c8745c776013e0ecd8d9b | refs/heads/master | 2022-12-13T20:35:17.060090 | 2019-08-01T07:35:58 | 2019-08-01T07:35:58 | 200,001,114 | 4 | 0 | null | 2022-12-08T06:00:45 | 2019-08-01T07:33:51 | Python | UTF-8 | Python | false | false | 478 | py | # Generated by Django 2.2.3 on 2019-07-26 04:40
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hackernews', '0012_comment_created_date'),
]
operations = [
migrations.AddField(
model_name='ne... | [
"maxim.makarov.1997@mail.ru"
] | maxim.makarov.1997@mail.ru |
399973de7bca2877a393abcd624618ea9d0223be | a3f991609b9f25e4ef4f65dc16867d602c1e867e | /sci_goexcel_warehouse/models/google_drive_attachments.py | 391fb7fb9103099b1ce220e4391c1caeb8b8dd64 | [] | no_license | RLJO/custom_gtl1 | ecdb86ebb5dbead92a2ec152748eb125381f3ce2 | ee9b9148aa8b2746322f67cd1afdb43078af7eaf | refs/heads/main | 2023-07-29T04:25:18.016192 | 2021-09-13T13:48:48 | 2021-09-13T13:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,147 | py | from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
from odoo.addons.google_drive.models.google_drive import GoogleDrive
import json
import requests
import base64
class GoogleDriveAttachments(models.Model):
_name = 'google.drive.attachments'
_description = 'Attachments'
n... | [
"hetal@laxicon.in"
] | hetal@laxicon.in |
99171684d22020157d08e2024d672867e8dc9897 | e37e3ca2caa26ae5ee1e5c14dab00bf7ad033410 | /py/test/module_test.py | f5823982c4ad5ce7d7766797aa19ac744a86b593 | [
"BSD-3-Clause"
] | permissive | all-of-us/pyclient | 6e2b0e088e24a16465e1a186f0ba703e8bb51ecf | 40bd4efabe0f783b6251682910b73b94ad772cdf | refs/heads/master | 2021-05-03T13:56:30.490842 | 2018-12-19T20:14:40 | 2018-12-19T20:14:40 | 120,518,143 | 2 | 2 | BSD-3-Clause | 2018-12-19T20:14:41 | 2018-02-06T20:17:24 | Python | UTF-8 | Python | false | false | 279 | py | import unittest
import aou_workbench_client # pylint: disable=unused-import
from aou_workbench_client import swagger_client # pylint: disable=unused-import
class ModuleTest(unittest.TestCase):
def test_noop_as_verification_that_module_imports_worked(self):
pass
| [
"noreply@github.com"
] | all-of-us.noreply@github.com |
98e707c2990a20f154e5b7a7377a54a939868df5 | 314ecb6fa531aecb99cb899c0ce6cddcf13d21d1 | /cltwit/cltwitreport.py | 66adbbc72df3ae2723a5a521acf413dca0566369 | [
"WTFPL"
] | permissive | Psycojoker/cltwit | 9ca43d6ce262478a10affc510daa1e73ea0d4fd8 | 3164f263df60d608da124ceb7d1e56bbdde7c930 | refs/heads/master | 2020-11-26T14:05:02.168231 | 2015-06-20T12:32:35 | 2015-06-20T12:32:35 | 15,633,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,326 | py | # #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Class utilisée par Cltwit pour générer un reporting pdf de la répartition des tweets
"""
from reportlab.graphics.shapes import Drawing, _DrawingEditorMixin
from reportlab.graphics.charts.piecharts import Pie
from reportlab.pdfgen.canvas import Canvas
from reportlab.li... | [
"cortex@worlddomination.be"
] | cortex@worlddomination.be |
2d43bb5ad4af78cad03ffc722b1af1af0f4ea01e | 2b88e4385b2ed720005f9809e257ef0ed5b6b1d5 | /heaps/B-th_Smallest_Prime_Fraction.py | ae6f1602ce8445ec104190e92ba462cc167d377a | [] | no_license | arnabs542/DataStructures_Algorithms | c5efbbbea9aafc3406b8cefa7bf4c33c4c3c6f2e | 431e7bddcb04f7a3df84fcd6ee823fd91ce317ad | refs/heads/master | 2023-06-16T13:11:25.378555 | 2021-07-08T13:29:00 | 2021-07-08T13:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | '''
B-th Smallest Prime Fraction
A sorted array of integers, A contains 1, plus some number of primes. Then, for every p < q in the list, we consider the fraction p/q.
What is the B-th smallest fraction considered?
Return your answer as an array of integers, where answer[0] = p and answer[1] = q.
Problem Constraints
... | [
"nik.dhoot@gmail.com"
] | nik.dhoot@gmail.com |
11ad40f010abdf48c8ae24e09dd38e66814596f4 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/world/java/person_reason_python_part/water_government/system/place/community_company_job.py | 021d33fd8874eafb10356abe668c65646d8ec5fb | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Translator.API;
namespace CSharp_TranslateSample
{
public class Program
{
private const string SubscriptionKey = "725a35377a5f3f0230e123a339940648"; //Enter here the Key from your Microsoft Translator... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
0ece66bd865a9a34b1b23f8737990b3d26f10244 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3999/codes/1712_2498.py | e316a2610766c760621d28797c18fa089d0ca044 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | Na=int(input("numero de hab A: "))
Nb=int(input("numero de hab B: "))
pA=(float(input("percentual A: ")))/100
pB=(float(input("percentual B: ")))/100
ano=0
while(Na<Nb):
Na=Na+(Na*pA)
Nb=Nb+(Nb*pB)
ano=ano+1
print(ano) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
aab45227174dc592f18073ce03d9e7b6b86a3023 | dbf7544231d6f19613e9f3771bfa736664d39d53 | /client/commands/incremental.py | e563a6a42fee6dfcfe06dd3d8a23579ce8528321 | [
"MIT"
] | permissive | tiandiyixian/pyre-check | 192a6462247e64d7420a3d4b7d0fe09098d04a0b | 0f251433c9fa8c8292c7f6833a99d8396fd89cae | refs/heads/master | 2020-04-29T07:09:35.528551 | 2019-03-16T01:11:42 | 2019-03-16T01:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,647 | py | # Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import atexit
import logging
import os
import subprocess
import sys
from typing import IO, List, cast
from ..project_files_monitor import ProjectFi... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.