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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15fb71f19b34ff9cebea5eb8b88bc3e5eb0da713 | 393b32e6b2d302cb20e4267d5fafe639114db816 | /ohri/tool/duckling/tests/test_duckling_tool.py | 85b8b6ea08dae6643f29568933b0a1fc0f3d54ce | [] | no_license | proximiant/ohri | 9b2ec0e2477ada191c1d8b335df5bfd58212274a | 72dc192b6c8e26f5c29f079efa4032b937123cad | refs/heads/master | 2020-12-02T09:50:25.106623 | 2019-12-31T02:47:12 | 2019-12-31T02:47:12 | 230,972,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,691 | py | import logging
import os
from datetime import time
from functools import reduce
from pprint import pprint
from unittest import TestCase
from future.utils import lmap
from ohri.hub.logger.duckling_logger import DucklingLogger
from ohri.tool.collection.collection_tool import luniq
from ohri.tool.duckling.duckling_tool ... | [
"yerihyo@gmail.com"
] | yerihyo@gmail.com |
39fd9bbe1207cc93d1f22eb3470fc29753fa9cbb | 605b5e612f8837a4962f444de0bd157f782c0504 | /exp/063.py | cd7d9465a5a33dba45372c3c746f0c6fd23113ef | [] | no_license | osuossu8/CommonLitReadabilityPrize | a32db7608c3e975cd9366cb224e33aca9a4f9a7e | c555581a020d6338786dd4a938e090f20b4d1c88 | refs/heads/main | 2023-07-01T23:59:08.834163 | 2021-08-03T10:47:28 | 2021-08-03T10:47:28 | 372,928,954 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,275 | py | import gc
import os
import math
import random
import time
import warnings
import sys
sys.path.append("/root/workspace/CommonLitReadabilityPrize")
import numpy as np
import pandas as pd
import transformers
import torch
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.... | [
"osuosuossu18@gmail.com"
] | osuosuossu18@gmail.com |
782421c6cfd319b5bc114598b6cfb8469740d481 | ad2704933de4502ae9de91e6d915f9dbe010b446 | /kurosawa/chapter02/knock18.py | cd6c994ed7a88d77e47aa5bf1eadbd204aeae0e7 | [] | no_license | tmu-nlp/100knock2017 | 266e68917d8d5a7f5d0c064f1bc2da5fa402a253 | 629bd1155d0fe78cd9302ae9a7cdf0922b778fe7 | refs/heads/master | 2021-01-19T17:36:53.328997 | 2017-07-24T07:09:54 | 2017-07-24T07:09:54 | 88,334,932 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | with open('hightemp.txt','r') as f:
col = []
for list1 in f:
list1 = list1.split()
col.append(list1)
for i in sorted(col, key=lambda temp: temp[2]):
print("%s\t%s\t%s\t%s" %(i[0],i[1],i[2],i[3]))
# sort -k3 hightemp.txt
| [
"michiki@Michiki-no-MacBook-Pro.local"
] | michiki@Michiki-no-MacBook-Pro.local |
c14f97bc5c0477ff54423437c819c182fbe525dc | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc043/A/4875921.py | ff12ba55782657e025469a48435adbb6fbb4dce0 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | N = int(input())
print(N * (N + 1) // 2) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
8337e6a7dc81a4c23be3efe3bae20a6cb4c729ed | 84ef8aba277c90cc483ba6382044d0246049a5ea | /hgail/critic/critic.py | 0727bd98106c57a053ce048c5c0e8d183ea06f06 | [
"MIT"
] | permissive | intelligent-control-lab/Autoenv | 1c8c7085ce8de394525d6bdf0da471a67fd84ec0 | 8d7697421ca14e317ea7de24b6acb694ecae5148 | refs/heads/master | 2023-04-06T12:21:31.998120 | 2021-03-06T05:12:12 | 2021-03-06T05:12:12 | 206,652,547 | 5 | 1 | MIT | 2023-03-15T23:16:19 | 2019-09-05T20:33:23 | Python | UTF-8 | Python | false | false | 9,807 | py |
import numpy as np
import tensorflow as tf
import hgail.misc.utils
import hgail.misc.tf_utils
class Critic(object):
"""
Critic base class
"""
def __init__(
self,
network,
dataset,
obs_dim,
act_dim,
optimizer=tf.train.RMSPropOpti... | [
"erdos_zzh@163.com"
] | erdos_zzh@163.com |
859c6751bcaac2d3846b424c0d80a24f60795267 | 81f2825e5bc73bcdaadb00570d8a8607974af3af | /scratch_42.py | efa6e3f7b33d10a97f8b038a9064310cf9de8fbb | [] | no_license | PrakharBansal24/Assignment-1 | 26fc316fe4bd8d2482ef34f147ba241fc2b20d80 | 927239e57309ca3ca794631eb61faf16784b9bf2 | refs/heads/master | 2022-11-23T20:28:30.628768 | 2020-07-27T05:39:30 | 2020-07-27T05:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | def printFrequency(strr):
M = {}
word = ""
for i in range(len(strr)):
if (strr[i] == ' '):
if (word not in M):
M[word] = 1
word = ""
else:
M[word] += 1
word = ""
else:
word += strr[... | [
"you@example.com"
] | you@example.com |
996906dd39fb3529cc39d2ec310d939fa819d3ed | e18222344f78f65e5a52480fa24b4720a1d4e36b | /tests/test_appsync.py | 8281801fa43e093c266aa15a27d2af81b3a9f707 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | vllrsatish/troposphere | 177c34fac39f668eda8c2baaed19ae1a6a05964b | 5ec03f329f2a91d3bb970ef0df7cf6232dccde16 | refs/heads/master | 2023-03-24T23:18:40.304921 | 2021-03-21T12:06:08 | 2021-03-21T16:31:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | import unittest
from troposphere.appsync import Resolver, PipelineConfig
class TestAppsyncResolver(unittest.TestCase):
def test_resolver_kind_bad_value(self):
with self.assertRaisesRegex(ValueError, 'Kind must be one of'):
Resolver(
'MutationField',
DataSourceNa... | [
"mark@peek.org"
] | mark@peek.org |
675e595f5196864d3257979b47697dfddbd5e4e4 | 9e1ee20e89229869b42cd5deceeb24ce7790b721 | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/PreCheckCreateOrderForTempUpgradeRequest.py | 9f2b126d63cd827d8382f32125666a242dfb382c | [
"Apache-2.0"
] | permissive | guwenbo/aliyun-openapi-python-sdk | 7503ed8f50897ea1ad7bdb390e140a2e570e30b8 | ef4f34e7e703ef2ddfdcb1f57573b9b14be77e0d | refs/heads/master | 2020-09-23T04:44:06.134661 | 2019-12-02T12:52:51 | 2019-12-02T12:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e2ec73ce9a92cc11f091aee17aacaa3ceb1eb9c9 | 7b79deca597eee678b521b808674948fc333fd40 | /Nanodet/client2.py | c5e1ccef29b6d952475a220940624ade856836a8 | [] | no_license | GitZzw/IERCAR | bfd4481ce1d1994a36f0587876c970b60f08d1c3 | cd3115b89f4b69a9adb2c26e412c0659bfa68aa6 | refs/heads/master | 2023-02-19T03:09:16.040070 | 2021-01-23T13:44:39 | 2021-01-23T13:44:39 | 332,219,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | #!/usr/bin/python
# coding: utf-8
import math
import socket
import rospy
import threading
import time
from std_msgs.msg import Float32
from geometry_msgs.msg import PoseStamped
global target_corner_msg
global t2
global flag
def callback(data):
global t2
global flag
global target_corner_msg
target_c... | [
"120137016@qq.com"
] | 120137016@qq.com |
c4bc6a5ffd35c520978dd7344ea1af4675df3b58 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/reports_beta/azext_reports_beta/vendored_sdks/reports/operations/_audit_logs_operations.py | e24f3be10c3092488b6cb30b91551a7223035bae | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 79,966 | 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 |
7acee8deb1bf7f07bb324573b18412c4e2c80892 | cb8c62659f9509bbc01237a09cf8730b57f4a84f | /Webopedia/__init__.py | e27402d16322110945ef906d20fd6ce678573c79 | [] | no_license | stepnem/supybot-plugins | 5bd795319036ab21cd81b00a23e0c1f712876d3e | 6838f7ae22ad1905272cf7e003fb803e637c87d8 | refs/heads/master | 2021-01-01T18:49:44.478383 | 2012-01-05T04:14:24 | 2012-01-05T04:14:24 | 281,407 | 8 | 4 | null | 2016-11-01T20:15:17 | 2009-08-18T21:55:56 | Python | UTF-8 | Python | false | false | 1,965 | py | ###
# Copyright (c) 2004, Kevin Murphy
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions,... | [
"stepnem@gmail.com"
] | stepnem@gmail.com |
b7080a3388fa6748b93fdbe2e00ad522869923bb | 5ec48e90f711c9514a6d2ee36dbb46bc1ba71b74 | /accounts/migrations/0005_alter_user_zipcode.py | ce51f2e740d31fc46683c04ef22c1913cba2642e | [] | no_license | hanieh-mav/hanieh_shop | 1ca5042fefb970459d9f48fb716a95fec6a530bb | b7cf253e11b6c167e78b245f253a8d057f435026 | refs/heads/main | 2023-06-10T16:37:26.385048 | 2021-07-07T14:19:58 | 2021-07-07T14:19:58 | 372,892,835 | 2 | 0 | null | 2021-07-07T14:19:59 | 2021-06-01T16:19:48 | CSS | UTF-8 | Python | false | false | 437 | py | # Generated by Django 3.2.4 on 2021-06-26 08:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_remove_user_shahr'),
]
operations = [
migrations.AlterField(
model_name='user',
name='zipcode',
... | [
"h.mehdiabadi@gmail.com"
] | h.mehdiabadi@gmail.com |
feca44382f1c83fcd137aacf6ceaefb3ddc82150 | 9795e787a54d15f2f249a17b616fec3df67d4559 | /exception/exceptions.py | f737f34a31e603fd34902bda5585322969e15d34 | [] | no_license | gebbz03/PythonProject | 377b6ccf5eafa37dd157012ce499138370ba882f | c12f939cf194a4c541ee77e1f614ba9867ef7090 | refs/heads/master | 2020-04-02T22:16:11.082863 | 2018-10-30T05:49:22 | 2018-10-30T05:49:22 | 154,827,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py |
#try and catch block
def div(x,y):
try:
result=x/y
except ZeroDivisionError:
print("Cannot divide by zero")
return None
except Exception as e:
print("Error occured",e)
return None
return result
print(div(4,2))
print(div(4,0))
print(div('1','2'))
| [
"gebb.freelancer@gmail.com"
] | gebb.freelancer@gmail.com |
41fdbe9ba825572f3d44dfbc1f9d27d1ef7a631d | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/verification_ip_flow_parameters_py3.py | dd9ba7b70c0b60664f4e70b0301a8b45e220e3c8 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 3,706 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
7bcc22cbd071a1dfe4180d5e7295a60684678d5c | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/comm/webconnstatesaghist1qtr.py | b3ed2f7acb9a745a1878dcda438a532030afa58a | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 5,295 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
d72a310d68e97683a91711d371b79255141f523c | 76d4d6f4edb3216ade81ba1d1b98ef17a1b9baa9 | /transactions/views.py | c3470d056a65b14161f48f361cc74ca9705c83a5 | [] | no_license | phemmylintry/crypto | 8455c4ed6fda14bf49fdad9527cb6de4134498d6 | 390816f8152514446d063728b7428d6633739855 | refs/heads/main | 2023-03-22T07:51:35.454040 | 2021-03-10T04:25:04 | 2021-03-10T04:25:04 | 340,151,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,819 | py | from rest_framework import status
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from rest_framework import generics
from rest_framework.authentication import TokenAuthentication
from django.contrib.auth import get_user_model... | [
"phemmylintry@gmail.com"
] | phemmylintry@gmail.com |
017385197b19ce7d53a1c71903d01f34549125f6 | d532b85841b459c61d88d380e88dd08d29836d43 | /solutions/922_sort_array_by_parity_ii.py | da1ab4097aaced49495bc27465f04ae81e4854cc | [
"MIT"
] | permissive | YiqunPeng/leetcode_pro | ad942468df5506de9dc48a4019933f658e2a3121 | 4a508a982b125a3a90ea893ae70863df7c99cc70 | refs/heads/master | 2022-05-15T09:32:02.699180 | 2022-05-14T16:32:17 | 2022-05-14T16:32:17 | 182,453,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
"""Array.
Running time: O(n) where n is the length of A.
"""
even, odd = [], []
for a in A:
if a % 2 == 1:
odd.append(a)
else:
even.append(a)
... | [
"ypeng1@andrew.cmu.edu"
] | ypeng1@andrew.cmu.edu |
61698d866bd746910d1e197d4205bbdc4be3429a | cd2d3b6be41eb9b96ecc3a22dc730325c21f22e6 | /charalog/log/woals.cgi | 00aadbd636a0b7515b9ff6fd8600b2962811ba09 | [] | no_license | cappuu/TC | c61f235349e9a68d472fa85bbea1adbef3ea154a | def08d09219e11bee2135f6b796569b769ee21c1 | refs/heads/master | 2021-09-10T19:37:33.847161 | 2018-03-31T22:56:05 | 2018-03-31T22:56:05 | 124,523,296 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 1,999 | cgi | 12월 : 사비의 방어시설을 <font color=red>+11</font> 강화했습니다.(16일0시14분)
11월 : 사비의 방어시설을 <font color=red>+11</font> 강화했습니다.(15일23시17분)
10월 : 사비의 방어시설을 <font color=red>+14</font> 강화했습니다.(15일22시15분)
9월 : 사비의 방어시설을 <font color=red>+10</font> 강화했습니다.(15일21시14분)
8월 : 사비의 방어시설을 <font color=red>+12</font> 강화했습니다.(15일20시14분)
7월 : 사비의 방어시설... | [
"lu2447315@gmail.com"
] | lu2447315@gmail.com |
3f2822cf8074a1923bebb0ea6f5d14b816b76656 | dde1cf596cf5969812ecda999828baa9c73e788d | /test/test_snapshot_alias_extended.py | 6bca0e0b2c31ef9b79fad88ed829b0806416cbaa | [] | no_license | dctalbot/isilon_sdk_python3.7 | bea22c91096d80952c932d6bf406b433af7f8e21 | 4d9936cf4b9e6acbc76548167b955a7ba8e9418d | refs/heads/master | 2020-04-25T20:56:45.523351 | 2019-02-28T19:32:11 | 2019-02-28T19:32:11 | 173,065,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 6
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import isi_sdk_8_1_1
from i... | [
"dctalbot@umich.edu"
] | dctalbot@umich.edu |
5f92a9568bee1058fc272d28084d6c7ad10f802b | 9b45d301869631cf464da34eadf5ddb96ce80ae2 | /annotations/subsample_json_annotations.py | 92590f3a15f62c2c1ad6db9dce734c2926bcc825 | [] | no_license | zhanght021/segment-any-moving | df6605bfee4bb9c6f76f3e09d38a493914eb5750 | a72f1afd9f52bc9151221112dbc8a8fc0891807e | refs/heads/master | 2020-12-02T15:30:12.301579 | 2019-12-22T20:24:02 | 2019-12-22T20:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | import argparse
import json
import logging
import random
from pathlib import Path
from utils.log import setup_logging
def main():
# Use first line of file docstring as description if it exists.
parser = argparse.ArgumentParser(
description=__doc__.split('\n')[0] if __doc__ else '',
formatter_... | [
"achalddave@live.com"
] | achalddave@live.com |
9fc96baae700f71e09894a414eeaf395736030fc | 15f0514701a78e12750f68ba09d68095172493ee | /Python3/765.py | e2bb292960f894265919bae5d4515259ff95dcdb | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | Python | false | false | 1,501 | py | __________________________________________________________________________________________________
sample 28 ms submission
class Solution(object):
def minSwapsCouples(self, row):
ans = 0
for i in range(0, len(row), 2):
x = row[i]
if row[i+1] == x^1: continue
ans +... | [
"strengthen@users.noreply.github.com"
] | strengthen@users.noreply.github.com |
38de7b425a57a3405bffde541d15fa26e09f9a1f | 184d8b600b66ceed4e065878447fd3b99d137a48 | /SRT/lib/models/ProHG.py | 95db3bb47c61a50ee61bb8f163cdf9b24561181d | [
"CC-BY-NC-4.0",
"MIT"
] | permissive | arnoldjair/landmark-detection | 10d45bcdfbb469a3f59fb7d3916fe508fc0b150f | 1ad9db7d94397d81898f6f7c05abe76806d3d85e | refs/heads/master | 2023-03-07T20:06:57.594994 | 2021-02-15T02:56:49 | 2021-02-15T02:57:44 | 261,280,519 | 0 | 0 | MIT | 2020-05-04T19:48:14 | 2020-05-04T19:48:13 | null | UTF-8 | Python | false | false | 8,323 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
#
# Stacked Hourglass Networks for Human Pose Estimation (https://arxiv.org/abs/1603.06937)
from __future__ import divisio... | [
"280835372@qq.com"
] | 280835372@qq.com |
adf64c5294fa2fab3264b87dbecf9ac69a941936 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/tepitopepan/mat/DRB1_1404_9.py | b3815c80ab8c940ec4b8b436ba15b069868b509c | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,168 | py | DRB1_1404_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.98558, 'I': -0.014418, 'H': -999.0, 'K': -999.0, 'M': -0.014418, 'L': -0.014418, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.98558, 'V': -0.014418, 'Y': -0.98558}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, ... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
be8dd059ed81f4842d06142a8a046d206f83a4eb | a7b66311c2ce113789933ec3162f1128b2862f13 | /app/waterQual/basinAll/tsMapSeq.py | 5bfffb5cc94cf4e8469788d0e47b6a2dd1db36cc | [
"MIT"
] | permissive | ChanJeunlam/geolearn | 214b2c42359ea1164b39117fad2d7470adeb6d35 | 791caa54eb70920823ea7d46714dc8a3e7fa7445 | refs/heads/master | 2023-07-16T04:13:15.526364 | 2021-08-16T05:24:18 | 2021-08-16T05:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,278 | py | import importlib
from hydroDL.master import basins
from hydroDL.app import waterQuality
from hydroDL import kPath
from hydroDL.model import trainTS
from hydroDL.data import gageII, usgs
from hydroDL.post import axplot, figplot
import torch
import os
import json
import numpy as np
import pandas as pd
import matplotlib.... | [
"geofkwai@gmail.com"
] | geofkwai@gmail.com |
b0a7e19fb390fa57b3835fc1e4f1ca42566c3f7d | efd471380d976614667e56c92f0aed671371fc63 | /All Programs/Tuples.py | 7c2c7e039ad6d52062ffa5f8b2189cb68d4273cf | [] | no_license | anshumanairy/Hacker-Rank | 39af46e76182d34637340d1755aff4afd7820083 | 6fef4c6a415422d9379232932358e4ee7430a6af | refs/heads/master | 2021-07-04T07:41:37.769152 | 2020-10-12T05:49:24 | 2020-10-12T05:49:24 | 181,359,750 | 2 | 2 | null | 2020-10-12T05:49:25 | 2019-04-14T19:38:18 | Python | UTF-8 | Python | false | false | 201 | py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
def func():
N=int(input())
list1=[""]*N
c=input("")
list1=list(map(int,c.split()))
print(hash(tuple(list1)))
func()
# In[ ]:
| [
"anshuman.airy04@gmail.com"
] | anshuman.airy04@gmail.com |
85a39828733a6f7bfe8b8897c68b984eaf80db3c | 7d549faf0de691a63acae85e60b081d4b6b7ddc7 | /slowfast/datasets/__init__.py | dee63427c45337ec1e5ac384762abd5fb36e5d31 | [
"Apache-2.0"
] | permissive | billcai/SlowFast | be05f7852810d43211c4e6ab7faef27f86d035af | 778888e63351e55861801996b37c7ff9a3746587 | refs/heads/master | 2021-08-01T17:02:11.539218 | 2021-07-26T22:05:16 | 2021-07-26T22:06:15 | 248,907,066 | 0 | 0 | Apache-2.0 | 2020-03-21T04:34:41 | 2020-03-21T04:34:40 | null | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from .ava_dataset import Ava # noqa
from .build import DATASET_REGISTRY, build_dataset # noqa
from .charades import Charades # noqa
from .imagenet import Imagenet # noqa
from .kinetics import Kinetics # noqa
from .ssv2 ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2b1c26fde124b5e4b985e7dbd4c006afa1344ee9 | 3856dbedcf846f9845290e9b2efa4d18e300623d | /swagger_client/models/execute_method_request.py | 5de657d2476279d5b1948879d67b6c17ae6dc62a | [] | no_license | Valandur/webapi-client-python | 5b314da41803f5b55a5c6cce62d2384b86d0fa37 | 8502726bf3facb17c6fa681faf0f600207eb61ae | refs/heads/master | 2022-02-04T21:45:37.686703 | 2019-07-23T12:11:47 | 2019-07-23T12:11:47 | 113,748,693 | 2 | 0 | null | 2019-01-09T16:07:31 | 2017-12-10T12:38:14 | Python | UTF-8 | Python | false | false | 6,574 | py | # coding: utf-8
"""
Web-API
Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELET... | [
"inithilian@gmail.com"
] | inithilian@gmail.com |
61d9f8923dce64ff0f4801e9d15ae1d5e69c756c | 71f47bd812a420c9849ecc7609e99f9b969c4d3d | /push_endpoint/migrations/0018_pusheddata_datasource.py | 1f6ba580925a882b85b136592f91b7ce41408b7e | [] | no_license | erinspace/shareregistration | e2bd0d8086a60eac616057a225bda07a0cd385a9 | e04bfe443fda49644a12778a4826c9cb04930f5b | refs/heads/master | 2020-05-27T18:25:05.858413 | 2016-02-24T20:17:37 | 2016-02-24T20:17:37 | 30,875,095 | 0 | 1 | null | 2016-02-24T20:17:37 | 2015-02-16T15:47:22 | JavaScript | UTF-8 | Python | false | false | 467 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('push_endpoint', '0017_auto_20151113_1532'),
]
operations = [
migrations.AddField(
model_name='pusheddata',
... | [
"erin.braswell@gmail.com"
] | erin.braswell@gmail.com |
85bb1583d91110edde4ea3a582c960e697bc9b4e | 0bf6ecbdebc7424a8946b29127d55c5bc1e7442e | /organization/migrations/0062_auto_20170727_2109.py | 146f45e3415b6fb573a6dc9d046e806ac30d424d | [] | no_license | dekkerlab/cLIMS | 2351a9c81f3e3ba982e073500a4a5cf2fd38ed51 | e76731032a5707027b53746a8f2cc9b01ab7c04e | refs/heads/master | 2021-03-27T06:28:49.718401 | 2017-10-10T19:22:33 | 2017-10-10T19:22:33 | 71,837,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-07-27 21:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wetLab', '0076_auto_20170727_2109'),
('organization', '0061_auto_20170426_1541'),
... | [
"nanda@ankitas-mbp.ad.umassmed.edu"
] | nanda@ankitas-mbp.ad.umassmed.edu |
e4771e45015373752e3153f63e5089990296b822 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_312/ch6_2019_02_28_19_18_08_378411.py | 51733cbb770c32be20d9f73baf7b228425fd72c1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | def encontra_maximo(lista):
max=lista[0][0]
eixox=len(lista)-1
eixoy=len(lista[0])-1
count=0
count2=0
while count<eixox:
while count2<eixoy:
if lista[count][count2]>max:
max=lista[count][count2]
count2+=1
count+=1
return max | [
"you@example.com"
] | you@example.com |
1d46acae02e3b015cc09aa5e952ee973faf108a4 | 9fc768c541145c1996f2bdb8a5d62d523f24215f | /code/jPB371/ch02ok/bool.py | e1be86dd69a983a3bbf2acb2dbadcdb6822c76c5 | [] | no_license | jumbokh/pyclass | 3b624101a8e43361458130047b87865852f72734 | bf2d5bcca4fff87cb695c8cec17fa2b1bbdf2ce5 | refs/heads/master | 2022-12-25T12:15:38.262468 | 2020-09-26T09:08:46 | 2020-09-26T09:08:46 | 283,708,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # -*- coding: utf-8 -*-
print( bool(0) )
print( bool("") )
print( bool(" ") )
print( bool(1) )
print( bool("ABC") )
| [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
fb3acbea24022a162db419f7994a985a3cf44ed8 | c331d0f5e3d4ae0c60dd5cc7aa3dc9c76faec88c | /WebApp/python/setup_db.py | e39937533186ae75b43b74afa11e44c1e6d8c2e7 | [] | no_license | sahahn/BPt_app | 744be29dad8710b5113a50cd12d8d250e51587d6 | f849a8bad43419b334000e57f2ce874d38a6d3d5 | refs/heads/master | 2023-03-09T01:50:44.401955 | 2020-10-19T17:59:37 | 2020-10-19T17:59:37 | 280,518,561 | 0 | 0 | null | 2020-10-19T17:59:39 | 2020-07-17T20:25:27 | JavaScript | UTF-8 | Python | false | false | 2,872 | py | import os
import json
import shutil
from Dataset import Dataset
def process_dataset(base_loc, dataset_name):
# Init dataset with locs, etc...
dataset = Dataset(base_loc=base_loc,
dataset_name=dataset_name)
# Process files (skips if not needed)
dataset.process_files()
def proc... | [
"sahahn@uvm.edu"
] | sahahn@uvm.edu |
d32773b4574f486d5a2b781344e5fd1204cf04d9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03192/s543941815.py | a08019e6e984eb90d4fba884f43c987fbc8436a3 | [] | 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 | 37 | py | N = list(input())
print(N.count("2")) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6e82d9acc53a5eabc323bec3d2068e5365b6bdec | 42f83595d24addd3cf8be828e282b37509825b3e | /src/collective/cfgconfig/view.py | dd91876c2f239c361f74514a6c6a9a457b10ca9f | [] | no_license | datakurre/collective.cfgconfig | 825a26b7704932b5ea70f688cda8112623b42493 | 3325c6cbd5defd40c40bce7ed43814e9f77263ae | refs/heads/master | 2016-09-06T21:39:03.209274 | 2013-11-24T12:13:50 | 2013-11-24T12:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | # -*- coding: utf-8 -*-
from Products.Five.browser import BrowserView
class HelloWorld(BrowserView):
def __call__(self):
return u"Hello world"
| [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
e45b7ab72944b666ff1639a4f0be0b3e38507d7b | 9947d1e328a3262a35a61385dc537c3dc557ab7d | /机器学习/day05/demo07_ac.py | 334d5013ba072bb2730ca8167dd3d93753dc93a3 | [] | no_license | nuass/lzh | d0a7c74a3295523d1fe15eeaa73997fc04469f06 | 3cb1cf1e448b88ade226d113a7da4eab7bbb5c09 | refs/heads/master | 2021-02-06T06:10:32.772831 | 2019-06-10T08:54:49 | 2019-06-10T08:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # coding=utf-8
"""
凝聚层次
"""
import numpy as np
import sklearn.cluster as sc
import matplotlib.pyplot as mp
x = np.loadtxt("../ml_data/multiple3.txt",delimiter=",")
model=sc.AgglomerativeClustering(n_clusters=4)
pred_y = model.fit_predict(x)
mp.figure("AgglomerativeClustering",facecolor="lightgray")
mp.title("Agglom... | [
"1581627402@qq.com"
] | 1581627402@qq.com |
2fe314ad72a9bdc13e5025c1c7a864fb01d73ee6 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/haid.py | 2679dc565822ff254b7856dca134b0346cb0bf3e | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 83 | py | ii = [('RogePAV2.py', 1), ('KiddJAE.py', 1), ('FitzRNS.py', 1), ('FitzRNS2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
e269cfa019462d7b553ac3efa865d6eca08f96e4 | 19f1dc4e728714e66af8e1e8262f2b7c47d3beb6 | /Samples/UserSamples/2017/STTConfig.py | 3e551660149292cc15d24516e961c55717591b35 | [] | no_license | samhiggie/DatacardCreator | 74cbbbea928770d3ca5669604d96ffb582416b45 | 8e838816cfb9adee8b2276adf79904da6449ca52 | refs/heads/master | 2020-09-11T19:35:48.985441 | 2019-11-18T23:51:18 | 2019-11-18T23:51:18 | 222,169,538 | 0 | 0 | null | 2019-11-16T22:56:02 | 2019-11-16T22:56:02 | null | UTF-8 | Python | false | false | 1,350 | py | from Samples.SampleDefinition import Sample
from Samples.Uncertainties.UserUncertainties.TES import TESUncertainty
from Samples.Uncertainties.UserUncertainties.JES import JESUncertainty
from Samples.Uncertainties.UserUncertainties.METUES import METUESUncertainty
from Samples.Uncertainties.UserUncertainties.MuonES impo... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
e32886648d45201263ed378387cc9fab9df32a4e | d68be566e1b7dbb9c716b8165e9d546a6e294e5d | /course/models.py | 265df4287ea82f383070bffcb7676c8a7a8d5f77 | [] | no_license | NeuSovo/Neusoft-ecard | 0e5d525360522d4abf3a7f39ec4d205ec17d571d | 41138be9280fc92e98d6dce7394ac66204672b40 | refs/heads/master | 2021-03-24T09:32:55.543809 | 2018-09-12T04:48:29 | 2018-09-12T04:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | from django.db import models
# Create your models here.
class RoomModel(models.Model):
class Meta:
verbose_name = "RoomModel"
verbose_name_plural = "RoomModels"
def info(self):
result = {
'RoomID': self.RoomID,
'RoomTime': self.RoomTime,
'RoomWeek... | [
"zhangxh1997@gmail.com"
] | zhangxh1997@gmail.com |
04bd05b63a5e2c8534a1ddac43a2d5cafcb436e0 | 133dc799865134325975afeff2d1aa1ed4a1f5ca | /migrations/versions/15fd2af90843_users_table.py | fd6d349e4f08d2cc27f0e80cb3078dc01b9cf887 | [] | no_license | Serrones/microblog | 5eb72baf86ad363e607ac29775f8c1f24234a18d | 917eec12890c8485d44dbef4742dae268837c15b | refs/heads/master | 2020-03-14T16:48:47.328601 | 2018-05-07T00:01:20 | 2018-05-07T00:01:20 | 131,705,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """Users Table
Revision ID: 15fd2af90843
Revises:
Create Date: 2018-05-01 17:23:06.763488
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '15fd2af90843'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto genera... | [
"fabioserrones@gmail.com"
] | fabioserrones@gmail.com |
37465d7be87d3f32cd3ed96223af113778b5d931 | 24d6d41989d676f3532013de3a6d847586fa3663 | /permissions_widget/settings.py | adac7edee3ac2392f01a48f2c9f39405a49144f4 | [] | no_license | diegofer/compu | 92da75e79a4f286840f127698961bd1f99edf567 | 4407896e899e057a928f63455f29bba370bf5c7a | refs/heads/master | 2021-01-22T19:54:11.588140 | 2014-04-01T05:41:59 | 2014-04-01T05:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | """
Settings for permissions_widget.
EXCLUDE_APPS
The permissions widget will exclude any permission for any model in any app
in the EXCLUDE_APPS list. It contains sensible defaults which you can
override: sessions, admin and contenttypes for example, as in most cases
users won't even have the possibil... | [
"diegofernando83@gmail.com"
] | diegofernando83@gmail.com |
8f1f7c3c01e7eb7b6ba4c53e5fdf863524943160 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_hcl_operating_system_vendor_all_of.py | fe64827eedaceb6e5940512cfecfcd68d34590c9 | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 2,009 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
84019c47c3970e23b49d08af58fa3ddfb4190e74 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /programming_computer_vision_with_python/cvbook-contrib/ch05_stereo.py | 8cfe22f5dbe6c0a38f1888e9cb984ffbc05f7bdd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 465 | py | from PIL import Image
import numpy
import stereo
im_l = numpy.array(Image.open('out_stereo1.ppm').convert('L'), 'f')
im_r = numpy.array(Image.open('out_stereo2.ppm').convert('L'), 'f')
steps = 12
start = 4
wid = 9
res = stereo.plane_sweep_ncc(im_l, im_r, start, steps, wid)
wid = 3
res_gauss = stereo.plane_sweep_gau... | [
"bb@b.om"
] | bb@b.om |
2d9b1d187eb1175b5bcb291481e18ea6d1dd82b2 | eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429 | /data/input/albatrossandco/brubeck_cms/brubeck/common/geography/fields.py | a782283b0983066628ff4b3c9c3ac8bb6bd8e614 | [] | no_license | bopopescu/pythonanalyzer | db839453bde13bf9157b76e54735f11c2262593a | 8390a0139137574ab237b3ff5fe8ea61e8a0b76b | refs/heads/master | 2022-11-22T02:13:52.949119 | 2019-05-07T18:42:52 | 2019-05-07T18:42:52 | 282,079,884 | 0 | 0 | null | 2020-07-23T23:46:09 | 2020-07-23T23:46:08 | null | UTF-8 | Python | false | false | 3,849 | py | from django import forms
from django.conf import settings
from django.db import models
from django.utils.safestring import mark_safe
class Coordinates:
def __init__(self, lat, lng):
self.lat = float(lat)
self.lng = float(lng)
def __repr__(self):
return ','.join([str(self.lat), str(self.... | [
"rares.begu@gmail.com"
] | rares.begu@gmail.com |
46e42a8851daf5a097db3ca58345f605faf477e9 | 67c0d7351c145d756b2a49e048500ff361f7add6 | /xpresso/ai/admin/infra/packages/package_dependency.py | da30e097a2988bd38de9035b38da48c3c253c61f | [] | no_license | Krishnaarunangsu/XpressoDataHandling | ba339ae85b52e30715f47406ddb74966350848aa | 0637a465088b468d6fdb6d1bb6f7b087547cec56 | refs/heads/master | 2020-06-27T19:58:43.358340 | 2019-08-29T16:59:08 | 2019-08-29T16:59:08 | 200,035,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,870 | py | """ Package Dependency MOdule
"""
from xpresso.ai.admin.controller.exceptions.xpr_exceptions import \
PackageFailedException
__all__ = ["PackageDependency"]
__author__ = "Srijan Sharma"
import json
import os
import networkx as nx
import matplotlib.pyplot as plt
from xpresso.ai.core.utils.xpr_config_parser import... | [
"arunangsutech@gmail.com"
] | arunangsutech@gmail.com |
aed4b7492ab51ac5f0be52b4803a554e1a88e1a5 | d33d25c752aa9604ccbd3ce75a26d31e8a12151a | /models/spational_transformer_sampler_interp.py | 0e4a348dcc3db3c7a4160ae048eb387f2e289d4f | [] | no_license | yasunorikudo/sfm-learner-chainer | 78bbb080c54e6af4278f31448d7b4067492b2dce | 06d722a2a71ea9c51c4755862be7b211c35ac2b1 | refs/heads/master | 2022-07-07T12:03:10.076957 | 2019-08-07T07:39:59 | 2019-08-07T07:39:59 | 200,998,542 | 0 | 0 | null | 2022-06-21T22:28:07 | 2019-08-07T07:38:37 | Python | UTF-8 | Python | false | false | 4,722 | py | import numpy
import chainer
from chainer import function
from chainer.utils import argument
from chainer.utils import type_check
from chainer import cuda
class SpatialTransformerSamplerInterp(function.Function):
def check_type_forward(self, in_types):
n_in = in_types.size()
type_check.expect(2 ==... | [
"yukitsuji020832@gmail.com"
] | yukitsuji020832@gmail.com |
d70a299da56c555c36523cf59b82f9260fee8453 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/v6g.py | c558deb65007de213bf4145030d8f280d59936fc | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
e4b369b060fd48853273f89894747a4af8741872 | 1620f9900da8d18e647b61f543a68d9386967d65 | /histoslider/image/channel_image_item.py | c05461e333146b1701df565bde6e091c4107ebb3 | [
"MIT"
] | permissive | ch-king/HistoSlider-1 | c57c748fc3b2ec2600b79b132373bc6b4c686369 | 2dbad7a91072626206fb3fad776291c1c68e342f | refs/heads/master | 2021-10-24T13:41:18.807783 | 2019-03-26T11:05:27 | 2019-03-26T11:05:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,082 | py | from collections import Callable
import numpy as np
from PyQt5.QtCore import pyqtSignal, QRectF, QPointF, Qt, QPoint, QTimer
from PyQt5.QtGui import QTransform, QPixmap
from PyQt5.QtWidgets import QMenu, QAction
from pyqtgraph import GraphicsObject, getConfigOption, fn, Point
from histoslider.models.channel import Ch... | [
"anton.rau@gmail.com"
] | anton.rau@gmail.com |
02cc57abadc1b35abd7611414ff7e4803bf5be52 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/minCost_20200826170809.py | 416df3034399b192e979acb250e8e4c2b5d35bb5 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | def minCost(days,costs):
# brute force approach
# find if numbers are consecutive
# if they are past 7 then means we do a 30 day pass
# once they stop being consecutive means to opt for something different
# like [1,4,6,7,8,20]
ways = [0] * days[len(days)-1]
newDays = set(days)
for ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
a0b93c64d418d2f9953bebcebd810c6e68451a2e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch20_2020_09_11_22_25_42_229462.py | 9fda66b3766ee69c033f0fc481cd067588ecd032 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | distância = float(input("Digite a distância a percorrer: "))
if (distância <= 200):
total = 0.5 * distância
print("%.2f" %total)
else:
total = 0.45 * (distância)
print("%.2f" %total) | [
"you@example.com"
] | you@example.com |
f24d5225fa62af98c084fc698de3044b4f04814b | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003/Gather2_W_fixGood_C_change/train/pyr_2s/L5/step10_a.py | 6cb947073aa28b6129b66598bd02aa5d9bb0a1c9 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,597 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
16a1f15487d6a04ef8e315b7e87984f406ce40f4 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/vns/rtconntoaconninst.py | 0a35dac1b96046c398e2ffe6d152e8610f74460e | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 5,644 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
845bd92c060e393e1feb07efce537f9a3b65d67b | f3cd7727bb731e359e93e86771ed66ccc4587937 | /generic_images/managers.py | d462ed0e927ec90f5d3d9b728c53544c74c016ad | [
"MIT"
] | permissive | kmike/django-generic-images | bb8344751c27056c88abedb6a3669204f0b5b25b | 4e45068ed219ac35396758eb6b6e1fe5306147df | refs/heads/origin/master | 2023-08-18T04:12:04.668596 | 2009-12-25T15:45:13 | 2009-12-25T15:45:13 | 2,316,219 | 5 | 3 | null | 2017-11-10T15:16:30 | 2011-09-02T20:16:38 | Python | UTF-8 | Python | false | false | 2,306 | py | from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.db.models import get_model
from generic_utils.managers import GenericModelManager
def get_model_class_by_name(name):
app_label, model_name = name.split(".")
model = get_model(app_label, model_name, False)
... | [
"kmike84@gmail.com"
] | kmike84@gmail.com |
63456deeb37fe3d0953db49310e7b28446f990fe | f4924a0a6d1eb17f3b7dca035f7dedfe0231254a | /src/dsgrn_net_query/queries/CountStableFC_large_networks.py | be619af9d650d362d75488d495c1be52ad016a78 | [
"MIT"
] | permissive | julianfox8/dsgrn_net_query | b22f4ac3f75a6d0d21fc7b3a703389486b7a27f6 | 89df8bded9d60384864b04703ef52dfbd52632d9 | refs/heads/master | 2023-08-22T08:36:01.137658 | 2021-10-01T17:25:50 | 2021-10-01T17:25:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,304 | py | import DSGRN
import os, json, sys,subprocess,ast,shutil
def query(network_file,params_file,resultsdir=""):
'''
:param network_file: a .txt file containing either a single DSGRN network specification or a list of network specification strings in DSGRN format
:param params_file: A json file with the keys
... | [
"breecummins@gmail.com"
] | breecummins@gmail.com |
2e82b624c7bd7f45c6340878eaaf67bc60fc5bad | d437914461b775a21ced89300d39893d1bc11c53 | /apps/about/views/__init__.py | 8031bc3edbf6fcf8db52e39ff4c8ec3df2570da5 | [] | no_license | RumorIO/healersource | 86975107da02a18eac89bc65c72dd06f71ac2d72 | 681ef09e4044879840f7f0c8bccc836c3cffec3c | refs/heads/master | 2020-12-03T02:18:56.378837 | 2016-02-19T15:32:52 | 2016-02-19T15:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,297 | py | # coding=utf-8
import os
import json
import operator
import random
from datetime import timedelta
from collections import defaultdict
from django.views.decorators.cache import cache_page
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mo... | [
"yg1008@outlook.com"
] | yg1008@outlook.com |
ad41c5695cf98fe7852c8050c4ce5462a713dacf | de0d5fafb49f603ca4979d6f4c8eba52888714c2 | /applied_social_network_analysis/network_connectivity/visualizing_networks.py | fac080b713f74e529d55299dc831ae26587a0fd8 | [] | no_license | sivaneshl/python_data_analysis | 1ab42569d5cc843f79765332a30769588447d6f6 | 36af66ae9e03827f5dfe3cc64d993b84b1b31e9b | refs/heads/master | 2020-09-11T17:28:51.459573 | 2020-07-05T18:43:59 | 2020-07-05T18:43:59 | 222,137,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | import networkx as nx
import matplotlib.pyplot as plt
G = nx.read_gpickle('resources/major_us_cities')
fig = plt.figure(figsize=(10, 9))
nx.draw_networkx(G) # uses default spring layout
# using random layout
plt.figure(figsize=(10, 9))
pos = nx.random_layout(G)
nx.draw_networkx(G, pos)
# circular layour
plt.fig... | [
"sivaneshl@virtusa.com"
] | sivaneshl@virtusa.com |
496912f6a5efc1cfacb3505a445c8d08b57768e8 | 601a5ac66309608772db5a9fa65faca4a0acad4f | /spyder/plugins/completion/providers/snippets/widgets/__init__.py | 6a3215fe6b5108d8e1e1b68a4a100bb027af8530 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LGPL-3.0-only",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-or-later",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-or-later",
"CC-BY-2.5",
"CC-BY-4.0",
"MIT",
"LGPL-2.1-only",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"OF... | permissive | juanis2112/spyder | ea5e5727d4dbec5c3e40cb87aad644cc722ff27e | 0b4929cef420ba6c625566e52200e959f3566f33 | refs/heads/master | 2021-08-09T15:14:49.011489 | 2021-04-28T20:18:06 | 2021-04-28T20:18:06 | 158,863,080 | 1 | 1 | MIT | 2018-11-23T17:50:04 | 2018-11-23T17:50:04 | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Snippets related widgets."""
from .snippetsconfig import (
SnippetModelsProxy, SnippetTable, SUPPORTED_LANGUAGES_PY, PYTHON_POS)
| [
"ccordoba12@gmail.com"
] | ccordoba12@gmail.com |
075faaca072840771480c8dad744b6400d118856 | 6268655719a46c9d2b6b38ea21babd8b877724dd | /ecom/urls.py | c96fa0cafc244270befb0361102e589c71c8180a | [] | no_license | MahmudulHassan5809/Ecommerce-Django | f84b968621eed61fdf08c55cd43c7a09d8bc8ba7 | f416536a6b5ce583283139e7271f3fcd1da49739 | refs/heads/master | 2022-12-31T15:39:34.405140 | 2020-10-24T18:15:38 | 2020-10-24T18:15:38 | 292,297,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | from django.urls import path
from . import views
from django.contrib.auth import views as auth_views
from django.urls import reverse_lazy
from django.views.generic.base import TemplateView
app_name = "ecom"
urlpatterns = [
path('', views.HomeView.as_view(), name="home"),
path('category/<str:category_slug>/<in... | [
"mahmudul.hassan240@gmail.com"
] | mahmudul.hassan240@gmail.com |
775f151f9bac97b1672a3701d47cd1066bbde102 | b23d627c04402ffaafdf6bf3af4e40ee027d015b | /viscum/scripting/exception.py | f85e17d80f46d223cc08a7da940581e59b8d6986 | [
"MIT"
] | permissive | brunosmmm/viscum | fad2e26f33eab74165633905144d6e8ccd205fb9 | a6b90ae6203998fc016ef89972a3b5d6cf441eb0 | refs/heads/master | 2021-01-17T11:16:08.725747 | 2018-03-23T13:59:44 | 2018-03-23T13:59:44 | 55,721,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | """Scripting Exceptions."""
class InvalidModuleError(Exception):
"""Invalid module."""
pass
class DeferScriptLoading(Exception):
"""Defer script loading."""
pass
class ScriptSyntaxError(Exception):
"""Script syntax error."""
pass
class CancelScriptLoading(Exception):
"""Cancel scr... | [
"brunosmmm@gmail.com"
] | brunosmmm@gmail.com |
ddc9ee2417f9490178e8cb2ea3a9cf5a360d9328 | 53e2254b83ac5ac71ff390a7c77070ff97b31c0b | /max_subarray.py | 234927450cf501f40718aefbeab37a510db496a4 | [] | no_license | Ponkiruthika112/codekataset1 | 83a02b96a6b35c33ae7c5a6d6b21c34e63a7eef4 | 4f164864a59e22122b647dd62d36d24e7ace7dac | refs/heads/master | 2020-04-15T04:58:44.427824 | 2019-09-06T10:10:12 | 2019-09-06T10:10:12 | 164,404,367 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | def subarray(s):
l=[" "]
for i in range(0,len(s)):
for j in range(i+1,len(s)+1):
l.append(s[i:j])
return l
a=input()
b=input()
x=subarray(a)
y=subarray(b)
d=[]
for i in x:
if y.count(i)!=0:
d.append([len(i),i])
d.sort(reverse=True)
print(d[0][1])
#subarray
| [
"noreply@github.com"
] | Ponkiruthika112.noreply@github.com |
e6376f06046b2ad23a065b75e0b7a5dc34d784d9 | 1bc3894dfd8eef5605a6ff746462a5cfd3baef3c | /srctools/filesys.py | d5b9785feec09ca35ce79c0a75ae2d2325df832d | [
"Unlicense"
] | permissive | alicerunsonfedora/srctools | 0aa9c3ba0b4bfdfc94cd5ee3c54192b61e4c4ba6 | 3648c244f6d2c70371f95927fd374dcaf90a038d | refs/heads/master | 2020-04-01T08:32:30.460404 | 2018-10-15T01:22:23 | 2018-10-15T01:22:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,517 | py | """Implements a consistent interface for accessing files.
This allows accessing raw files, zips and VPKs in the same way.
Files are case-insensitive, and both slashes are converted to '/'.
"""
from zipfile import ZipFile, ZipInfo
import io
import os
from srctools.vpk import VPK, FileInfo as VPKFile
from srctools.prop... | [
"spencerb21@live.com"
] | spencerb21@live.com |
3b2c7bf4b9c033f46fa9264303c0326bb30d648c | 12c2168d1b2db8de3246f59e8f911a0a40ec0512 | /Produto/forms.py | b8a944f8220f46ce172ea1d92eea43233709754f | [] | no_license | carlafcf/BD_TADS | 1bc145aa8668f994ec45fb8dc20c0505a86cbbc5 | 72e835a281dade32072c4715d91825ed8b7483ca | refs/heads/master | 2023-04-03T07:54:48.646902 | 2021-03-30T00:06:36 | 2021-03-30T00:06:36 | 341,566,522 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from django import forms
from django.db import connection
from django.core.exceptions import ValidationError
from .models import Produto
class ProdutoForm(forms.ModelForm):
class Meta:
model = Produto
fields = ['nome', 'descricao', 'fornecedor', 'quantidade_maxima',
'valor_uni... | [
"carlafcf@gmail.com"
] | carlafcf@gmail.com |
2c4578d7aad69ef2eb58b0b9ef7d419426c3e8b0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/1393.py | 7306be9c406116a4b86b2512dbd82fc3a7f4b436 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py |
def compare_list(l1, l2):
l = []
for i,j in zip(l1,l2):
if i > j:
l.append(1)
else:
l.append(-1)
return l
def dwar(w1, w2):
w1.sort()
w2.sort()
while len(w1) > 0:
l = compare_list(w1, w2)
lset = list(set(l))
if len(lset) == 1 and lset[0] == 1:
return len(w1)
w1.pop(0)
w2.pop(-1)
re... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
143ded849c4e7c0e8ca61a4374f43a742eb7fd22 | 9c84378e88df12a83d3ca6dde5d16b76e3778a1b | /appengine/gce-backend/handlers_queues.py | a4b113c55398b459ac8e4955fe494dcd81c42646 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | eakuefner/luci-py | 681364457a43724965ee70168354e1c097e4d3df | d9a337e2fd5151eac24b3164963e086091d769a3 | refs/heads/master | 2021-01-15T14:58:37.310142 | 2015-10-06T19:08:08 | 2015-10-06T19:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,628 | py | # Copyright 2015 The Swarming Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
"""Task queues for the GCE Backend."""
import json
import logging
from google.appengine.ext import ndb
import webapp2
from components import decorator... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
c3b48a065a2c7682c9fc54e729f2fedf0c552bd6 | 4f8664ad0282872648307fd1cc693ddc75543748 | /swftp/test/functional/test_ftp.py | ff4255b2a9593388eea7b91a500c84af30c3b232 | [
"MIT"
] | permissive | benroeder/swftp | be4a6d2d6260df0c0bddd6ed1ff776e27bb411eb | eb4bdbf3bff5ee6924961cc12eeddf561b44b025 | refs/heads/master | 2021-01-18T08:52:17.226403 | 2013-04-03T12:44:59 | 2013-04-03T12:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,178 | py | """
See COPYING for license information.
"""
from twisted.trial import unittest
from twisted.internet import defer, reactor
from twisted.web.client import HTTPConnectionPool
import ftplib
import tempfile
import shutil
import time
import os
from . import get_config, has_item, create_test_file, clean_swift, \
compu... | [
"k3vinmcdonald@gmail.com"
] | k3vinmcdonald@gmail.com |
a9af732e804394d5d2b35f5a479a30695122d13a | 46ef191ca0c170ca1d8afc5eb5134de52eba15f1 | /abc167/venv/D.py | 52607613479c21ed6d9f20b94042a0ff10aeb2a9 | [] | no_license | anthonyouch/Competitive-Programming- | 9a84cd7ff4b816d2e7ece4e4d6438dbeb23f5795 | 39109a7be1cd007bd0080a9694ac256efc10eab9 | refs/heads/master | 2023-03-04T00:49:00.688118 | 2021-02-05T13:19:46 | 2021-02-05T13:19:46 | 334,131,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # create a list that eventually goes back to 1
import sys
n, k = [int(i) for i in input().split()]
lst = [int(i) for i in input().split()]
lst.insert(0, 0)
path = [1]
curr = 1
visited = set()
while True:
if lst[curr] in visited:
path.append(lst[curr])
#print(path)
index_val = path.index(... | [
"anthonyouch.programmer@gmail.com"
] | anthonyouch.programmer@gmail.com |
96db5839bb144bc4546626c155142610d2a4061a | 87d13c3c1e4d37909a584ae5be5abd5576dafb9b | /backend/todos/migrations/0001_initial.py | 34753a9ef9bd73a7895aee22b6ad24d76e98806f | [] | no_license | Tanmoy-Sarkar/Todo-App-with-Django-Rest-Framework | 8c5a6fcf2e5d6d15bcb8acbc421aefb0b9e5519d | d8dc88968a94c74b6d3dab008abdab68088aacb6 | refs/heads/master | 2023-07-29T00:28:51.198787 | 2020-08-12T05:51:24 | 2020-08-12T05:51:24 | 278,842,084 | 0 | 0 | null | 2021-09-22T19:30:38 | 2020-07-11T10:48:24 | JavaScript | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.0.8 on 2020-07-11 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"tanmoy9920@gmail.com"
] | tanmoy9920@gmail.com |
fb845fdfab1ea433b53665abb0f88557207567d7 | 6ff4671a00db5b5b97eea71f80b30dd4ff3ca020 | /Notebooks/Stride_testing.py | 1076f13f26c8dce5fb0bff66b691279c729f93ca | [
"MIT"
] | permissive | jason-neal/equanimous-octo-tribble | 36cbe912282bb9210a8fc4e959795bbda1a5f1e4 | a8788909331034725afe38ae96c83584b17c9fbd | refs/heads/master | 2021-01-23T19:57:05.022746 | 2018-07-18T21:37:27 | 2018-07-18T21:37:27 | 46,361,899 | 1 | 1 | MIT | 2020-06-11T09:35:48 | 2015-11-17T17:00:51 | HTML | UTF-8 | Python | false | false | 6,037 | py |
# coding: utf-8
# # Testing numpy Stride
# For snr calculation windowing
# In[21]:
from __future__ import division
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from astropy.io import fits
from numpy.lib import stride_tricks
get_ipython().magic('matplotlib inline')
... | [
"jason.neal@astro.up.pt"
] | jason.neal@astro.up.pt |
37712452ff5adaa4113178fb9c5623c3e941fee9 | d67bd00f8fe819bd3011ce154c19cbc765d59f1d | /branches/4.0_buildout/openlegis/sagl/skins/consultas/parlamentar/vereadores_atuais_json.py | aac059d617ea5f4ce9e532f0b3e6b9cfb8903a88 | [] | no_license | openlegis-br/sagl | 90f87bdbbaa8a6efe0ccb5691ea8424575288c46 | eabf7529eefe13a53ed088250d179a92218af1ed | refs/heads/master | 2023-08-31T12:29:39.382474 | 2023-08-29T16:12:01 | 2023-08-29T16:12:01 | 32,593,838 | 17 | 1 | null | 2023-08-29T06:16:55 | 2015-03-20T16:11:04 | Python | UTF-8 | Python | false | false | 1,827 | py | ## Script (Python) "vereadores_atuais"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
import simplejson as json
context.REQUEST.RESPONSE.setHeader("Access-Control-Allow-Origin", "*")
request=context.REQUEST
for item in... | [
"contato@openlegis.com.br"
] | contato@openlegis.com.br |
bf6f76dc39e4234d6a8f1eaad9548249a8dc530d | a7947a129fa5318517f35f17163840f24178d6aa | /examples/core_geometry_bspline.py | c254afdd34a3fe70426aefe3c789019e5e6cad4d | [] | no_license | fboussuge/pythonocc-demos | 993abe7634ab74fc3619fea12519c176b4e26658 | 8f9756653eaecc505238d43fa22a0057bbd14b56 | refs/heads/master | 2021-06-23T01:29:29.611505 | 2020-12-08T13:49:04 | 2020-12-08T13:49:04 | 156,134,578 | 0 | 0 | null | 2018-11-04T23:17:31 | 2018-11-04T23:17:30 | null | UTF-8 | Python | false | false | 2,743 | py | #!/usr/bin/env python
##Copyright 2009-2014 Jelle Feringa (jelleferinga@gmail.com)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as published by
##the Free Software Foundation, either version 3 o... | [
"tpaviot@gmail.com"
] | tpaviot@gmail.com |
e08f90549f8a32c66d9622898dd5fc889d376b1d | 57c570d1b5a621158d8763f935e2069be6b8c90a | /tykj-operation/tykj-operation/MarketSearchCrawler/services/db.py | 48e2998f975d9b156c3edad34d84c9fd20d44542 | [] | no_license | liuliainio/liuli | e011decf45f7eca7009a12ad4a96f33a17055945 | 203fbf4f135efb6432c77b937633003ce2f2c9a2 | refs/heads/master | 2021-01-10T20:35:08.070770 | 2018-08-21T05:52:59 | 2018-08-21T05:52:59 | 25,625,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | #-*- coding: utf-8 -*-
'''
Created on Sep 12, 2013
@author: gmliao
'''
from crawler import settings
import MySQLdb
class MySQLdbWrapper:
conn = None
def connect(self):
self.conn = MySQLdb.connect(settings.DATABASES['default'][0], settings.DATABASES['default'][1],
... | [
"liuliainio@163.com"
] | liuliainio@163.com |
2d39f028eeabb883b01ffc250ab1059e0f677292 | 0aa2db201678205e9eccd3f4f2dcb6f95a97b5f6 | /tut_42.py | 22a41be2b48cd8deb77c4a835b8a9d4c9ca6fee1 | [] | no_license | udoy382/PyTutorial_telusko | ffa76b4b6772d289c787e4b682df2d0965a2bf62 | 5dc5f3fc331605310f7c3923d7865f55a4592e28 | refs/heads/main | 2023-06-09T11:00:41.915456 | 2021-06-30T14:29:56 | 2021-06-30T14:29:56 | 381,730,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # this is our simple functions
def square(a):
return a*a
result = square(5)
print(result)
# this is our lambda functions
f = lambda j,k : j*k
print(f(4, 5)) | [
"srudoy436@gmail.com"
] | srudoy436@gmail.com |
5ce02b22a691c4e7bbbb7c9b5b276d863edba49d | 486fa0a987ab1648de91efeb4b7ba8be3dd6b016 | /TermTk/TTkCore/TTkTerm/__init__.py | 22928704063777cde14e1466e9c3a9c63600d837 | [
"MIT"
] | permissive | ceccopierangiolieugenio/pyTermTk | 9f5103d6af9e93fe2572b61486919020d2007550 | f9c2a4d97f2cd04f0b86cf10661f63a61edae48e | refs/heads/main | 2023-08-30T20:58:39.239718 | 2023-08-02T22:51:02 | 2023-08-02T22:51:02 | 339,475,110 | 414 | 16 | MIT | 2023-08-31T23:16:10 | 2021-02-16T17:23:36 | Python | UTF-8 | Python | false | false | 176 | py | from .inputkey import TTkKeyEvent
from .inputmouse import TTkMouseEvent
from .colors import TTkTermColor
from .term import TTkTerm
from .input import TTkInput
| [
"ceccopierangiolieugenio@googlemail.com"
] | ceccopierangiolieugenio@googlemail.com |
2be7fcff78fe289f0631a2d1fdca66d77e9dac22 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/safezone/PicnicBasket.py | 30d2bfbd1a1e067efa18df7add4622d6558f99b5 | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 7,319 | py | # 2013.08.22 22:24:42 Pacific Daylight Time
# Embedded file name: toontown.safezone.PicnicBasket
from pandac.PandaModules import *
from toontown.toonbase.ToonBaseGlobal import *
from direct.gui.DirectGui import *
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.fsm import Class... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
57d4dcac150c0ad4bc8e320c1158a43a936253e8 | 3411ee4095d15057aa7195bdb4a71fbf8f7eb96a | /pysimu/pysimu.py | c6e2b5cc7175a2e1bb710efeff8fb7272e380383 | [] | no_license | a-marano/pysimu | 7dedf9ab7d13aa4fe86456d3b40c00f54c882acd | 388f9afedd8b1d830f6393eaaa307e50188249e5 | refs/heads/master | 2021-01-21T06:14:32.102200 | 2015-01-20T12:36:49 | 2015-01-20T12:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,545 | py | # -*- coding: utf-8 -*-
"""
Main pysimu module
Created on Thu Aug 14 20:21:56 2014
@author: jmmauricio-m
"""
import numpy as np
from scipy.integrate import ode
from models.psys import sys_freq_model_1, gen_nc
class sim:
'''
Class to performe simuations
'''
def __init__(... | [
"jmmauricio6@gmail.com"
] | jmmauricio6@gmail.com |
01dabdc5ab680e0a4c9bb2dcef1040d08b4915eb | f56a00622ea3799f25d52138ffaafc6dcad46574 | /aggtrend/aggtrends/migrations/0003_code_post_code_post.py | 45ea624a140d69851dd7bf0cd4e284f631260bcf | [] | no_license | SardarDawar/aggregate | 063b384421ef1f3b5c8d1eb1975cd8396d38f553 | b062023bc2d3e6fdeb1c17743345cb8b70f90b1c | refs/heads/master | 2022-12-29T05:09:16.438663 | 2019-12-30T22:49:56 | 2019-12-30T22:49:56 | 230,547,601 | 1 | 0 | null | 2019-12-30T10:25:30 | 2019-12-28T02:31:17 | HTML | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.2.6 on 2019-12-30 10:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aggtrends', '0002_auto_20191227_0614'),
]
operations = [
migrations.AddField(
model_name='code_post',
name='code_pos... | [
"dawarsardar786@gmail.com"
] | dawarsardar786@gmail.com |
1c51a3fc01837f6b1233b786c73615dcb572c8c7 | 624ccdaf85ebebf0a03636fbd1ff234bd89c7972 | /product/serializers.py | 75f8d0097fb3b1ce82d5f1f29e448da23a3cf786 | [] | no_license | kairat3/bella_basket | 613294985c1f71efdee9d0f43fa2557a412ca9b8 | e76f3f950957ae4051472d374ccee9350def6cd1 | refs/heads/master | 2023-07-13T00:13:18.475695 | 2021-08-25T09:51:17 | 2021-08-25T09:51:17 | 396,841,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | from rest_framework import serializers
from account.serializers import ProfileSerializer, UserSerializer
from .models import Product, Category, Favorite, Color, Size, Additional, Image
class AdditionalSerializer(serializers.ModelSerializer):
class Meta:
model = Additional
fields = ('key', 'value... | [
"jvckmiller@gmail.com"
] | jvckmiller@gmail.com |
d027b4e8adc33d04712f2639893d0e1b309d38c0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02603/s199763378.py | 915ed29aa0e93fd701e5b05d825c6c1857d7be8c | [] | 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 | 264 | py | import sys
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
dp = [0]*(N+1)
dp[0] = 1000
for i in range(1, N+1):
dp[i] = dp[i-1]
for j in range(i):
dp[i] = max(dp[i], dp[j]//A[j]*A[i-1]+dp[j]%A[j])
print(dp[N]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2059742af36092696997c24446f840d262c752a | 081ea255a45d2e0f255ebab00aea487c1bc01da2 | /OCP/tasks/task_motion.py | 01f077468501d4bcbe408f077aad8405ce9c9082 | [] | no_license | ggory15/HQP-cogimon | 8b2d906d179864c613d8741fb1997c650feedf3c | e809fcc2a421066b7c0c02ce70898ec96ba584af | refs/heads/master | 2022-07-03T01:21:47.831298 | 2020-05-10T22:21:13 | 2020-05-10T22:21:13 | 262,884,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # __author__ = "Sanghyun Kim"
# __copyright__ = "Copyright (C) 2020 Sanghyun Kim"
import numpy as np
import copy
from .task_abstract import *
class TaskMotion(TaskBase):
def __init__(self, name, robot):
TaskBase.__init__(self, name, robot)
self.mask = 0
def setMask(self, mask):
self... | [
"ggory15@snu.ac.kr"
] | ggory15@snu.ac.kr |
e50c7c7cb40e44a0cdcd058a2b011502e8d7cb21 | 93a4edf14cd2284d58fe0218cdce2eac00db66c6 | /tests/sdfg_validate_names_test.py | 51490383701f01b1caa015a7e2bb7c6e1b8da622 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gronerl/dace | f50dbeb70feb35c2afb4ee92b2dd4a9613a024ea | 886e14cfec5df4aa28ff9a5e6c0fe8150570b8c7 | refs/heads/master | 2023-07-23T12:30:20.561679 | 2020-02-24T07:25:34 | 2020-02-24T07:25:34 | 242,930,054 | 0 | 0 | BSD-3-Clause | 2020-02-25T06:45:23 | 2020-02-25T06:45:22 | null | UTF-8 | Python | false | false | 4,584 | py | import unittest
import dace
# Try to detect invalid names in SDFG
class NameValidationTests(unittest.TestCase):
# SDFG label
def test_sdfg_name1(self):
try:
sdfg = dace.SDFG(' ')
sdfg.validate()
self.fail('Failed to detect invalid SDFG')
except dace.sdfg.Inv... | [
"talbn@inf.ethz.ch"
] | talbn@inf.ethz.ch |
94125c9112a64584e17d1955f1b02efaedd6fcd0 | 2da8bcfb9a72e507812a8723e38ad6d030c300f1 | /simplify_path_71.py | ac6e8a021f9a97b8369035d457680de94b0e3a0f | [] | no_license | aditya-doshatti/Leetcode | 1a4e0f391a7d6ca2d7f8fdc35e535f4ec10fb634 | eed20da07896db471ea6582785335e52d4f04f85 | refs/heads/master | 2023-04-06T02:18:57.287263 | 2023-03-17T03:08:42 | 2023-03-17T03:08:42 | 218,408,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | '''
71. Simplify Path
Medium
Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file system, convert it to the simplified canonical path.
In a Unix-style file system, a period '.' refers to the current directory, a double period '..' refers to the directo... | [
"aditya.doshatti@sjsu.edu"
] | aditya.doshatti@sjsu.edu |
390175f4e92c1ae351811ad85ecce0a6c1de7920 | 241cebd26fbcbd20bae804fd868722b2673328fc | /histogram_2002_r75.py | 64b8fb63166cbdb365a64badb8c95216fdfd1d5c | [] | no_license | shouldsee/golly_utils | b3339e9ba4e5213e98ec1b35755cd605e3f93df8 | 03959f0c593d4a811ba20f2372d6663d126dbab2 | refs/heads/master | 2021-01-19T11:04:25.661858 | 2018-04-01T13:19:51 | 2018-04-01T13:19:51 | 82,230,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,914 | py | # Creates a histogram plot showing the frequencies of all cell states
# in the current selection (if one exists) or the entire pattern.
# Author: Andrew Trevorrow (andrew@trevorrow.com), September 2009.
import golly as g
import math
from glife import getminbox, rect, rccw, pattern
from glife.text import make_text
from... | [
"shouldsee.gem@gmail.com"
] | shouldsee.gem@gmail.com |
19605ba78e49b3853aa764606e01d48cf28335f0 | dc940e2aa628eff693af36584cfad935990ebe7d | /v3.1.0/getBookTXT.py | 4274ac9cf37fbcba256bc4cd576bfa8e5e20c9b8 | [] | no_license | 520wsl/getXs8Novels | 865572ea488e0bf3d4e21664eb576237b6dd18be | ecf6d0bc5dfdbe4b5c3e8a9aac313bf7abce614b | refs/heads/master | 2020-04-18T00:59:56.777416 | 2019-02-15T08:52:11 | 2019-02-15T08:52:11 | 167,101,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = '文章抓取'
__author__ = 'Mad Dragon'
__mtime__ = '2019/1/12'
# 我不懂什么叫年少轻狂,只知道胜者为王
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
┃ ┗━━━... | [
"395548460@qq.com"
] | 395548460@qq.com |
8cef065bb4c5e40d9a10b44e754dc7f3bd86eee2 | e5e9ee9e4db2e400e7f87647501ee412c13d76e5 | /python/open cv/magic_cloth.py | 36c4deda71edb9cb0519277e6e8dc032facd3f67 | [] | no_license | beingveera/whole-python | 524441eec44379c36cb1cfeccdbc65bf1c15d2f6 | 3f2b3cb7528afb9605ab6f9d4d2efc856a247af5 | refs/heads/main | 2023-05-15T06:28:03.058105 | 2021-06-05T09:37:47 | 2021-06-05T09:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | '''
import cv2
import time
import numpy as np
cap = cv2.VideoCapture(0)
time.sleep(2)
background=0
#capturing the background
for i in range(30):
ret,background=cap.read()
while(cap.isOpened()):
ret,img = cap.read()
if not ret:
break
#if the image is flipped, use image = np.flip(image, axis = 1)
hsv = cv2.... | [
"sharma.lokesh.222001@gmail.com"
] | sharma.lokesh.222001@gmail.com |
36951d7ee0ef3e7005163dbe47389a4623d839f5 | 7df2816cfbc7f48bfbab7ff37626a88296c39713 | /Phần 2 Xác Xuất/Bai8.py | 43539a2abbe4988bf2304e79727a492779968e48 | [] | no_license | maithinhatlan/BaiTapTuan7 | 7e49de0b9d5de1bb5eba8143a767dea62aca3ca5 | a6c9c1a425e296e878513e496b17f6352f95a84e | refs/heads/master | 2023-08-14T21:13:45.546548 | 2021-10-09T10:37:11 | 2021-10-09T10:37:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | import numpy as np
#numpy.random.uniform
u = np.random.uniform(size=4)
print("u = ",u) | [
"you@example.com"
] | you@example.com |
5b1cc4a6717f7b454656c18eceed3a052a2f5586 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/311.py | b83b53e1e53057ef2a8ec9616114038309e9174b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | import sys
input = sys.stdin
def solve(S,k):
S = list(S)
count = 0
for i in range(len(S)-k+1):
if S[i]=='-':
for j in range(k):
S[i+j] = '-' if S[i+j]=='+' else '+'
count+=1
for j in range(k):
if S[-j]=='-':
return 'IMPOSSIBLE'
return count
for case in range(int(input.re... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2db407d8e2e6ffc8407c3b7340d1f4b8c3f2563d | b99bbc50ab1d039948ccf853963ae044a97498fb | /src/api/com_interface/urls/live.py | 5c48f7ee8cbec7860dd179d7c5a533b6aabf7838 | [] | no_license | fan1018wen/Alpha | 26899cc0eb6761bf6bd8089e7d12716c9e7ae01e | c50def8cde58fd4663032b860eb058302cbac6da | refs/heads/master | 2021-05-12T12:54:15.747220 | 2017-10-11T10:58:51 | 2017-10-11T10:58:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@date: 2016-06-13
@author: Devin
"""
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from ..views import live
urlpatterns = [
url(r'^$', live.LiveViewList.as_view()),
url(r'^(?P<pk>\S+)$', live.LiveView.as_view(... | [
"mengqiang@1b2b.cn"
] | mengqiang@1b2b.cn |
e908fff3d5d94413a53b9568c9463d0369bdf469 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/ec_11423-2311/sdB_EC_11423-2311_coadd.py | 236e5bdcb2b2d2516b7158fc1ff8a94b2e130934 | [] | 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 | 439 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[176.209125,-23.471569], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_EC_11423-2311/sdB_EC_11423-2311_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sd... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f5a7b3700c827074a7351ba3ab12a4f25393f769 | f8a317ace8e91d5b962586953bc38ef6ff2d3a20 | /src/finanzas/authentication/serializers.py | a7ed97b3d5c459ca39609412c46d4b1f1b884296 | [
"Apache-2.0"
] | permissive | jualjiman/finanzas | e63cae335d33b773874c913d23fc54a21a7ea5e9 | a1af6f1a212a3cf172bf84eb668245dbffeb33a9 | refs/heads/master | 2020-05-18T17:15:48.246703 | 2015-08-10T02:38:08 | 2015-08-10T02:38:08 | 40,459,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | from django.contrib.auth import update_session_auth_hash
from rest_framework import serializers
from finanzas.authentication.models import Account
class AccountSerializer(serializers.ModelSerializer):
password = serializers.CharField(
write_only=True,
required=False
)
confirm_password = ... | [
"jualjiman@gmail.com"
] | jualjiman@gmail.com |
546b04313b4d6e5b2d9dd2d7e686e24a9dbd28b8 | cda34a391e1d3fd96cdff8ea64d5dd73dc0e83e4 | /educa/courses/models.py | 63db5d5651ab6ae7c028bcc918bcd834624cf9b5 | [
"MIT"
] | permissive | prakharchoudhary/DjangoSpree | ee824dd44c015984a85f68105e40e1202093f757 | 20c5a1d9eb5d00288ebe16d238525ba8cc5fad09 | refs/heads/master | 2021-01-02T09:46:43.599914 | 2018-06-26T08:14:02 | 2018-06-26T08:14:02 | 99,300,583 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from .fields import OrderField
# Create your models here.
class Subject(models.Model):
title = models.CharField(max_le... | [
"prakhar2397@gmail.com"
] | prakhar2397@gmail.com |
f637b0557e6e594194bba1fd65a263d48d42cad6 | 6a95b330e1beec08b917ff45eccfd6be3fd4629f | /kubernetes/test/test_v1_config_map_projection.py | daaae0c01f9732a6e5e977ef6d7d6d9335d2fbe3 | [
"Apache-2.0"
] | permissive | TokkoLabs/client-python | f4a83d6540e64861b59e322c951380a670578d7f | f1ad9c6889105d8510472606c98f8d3807f82020 | refs/heads/master | 2023-07-14T01:36:46.152341 | 2017-12-21T21:32:11 | 2017-12-21T21:32:11 | 115,042,671 | 0 | 0 | Apache-2.0 | 2021-08-06T03:29:17 | 2017-12-21T20:05:15 | Python | UTF-8 | Python | false | false | 1,003 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
e856163f7b9d175e64f44a92b7a8655da0287f5a | cf7b827958166c8569eb58deb511cc3f07567741 | /in_Python/0832 Flipping an Image.py | 78099861650cb1394f6cac05f0f76c2d739941cc | [] | no_license | YangLiyli131/Leetcode2020 | e4e36eb36b1983f73b0e733455b4a7953dfebe6d | 20623defecf65cbc35b194d8b60d8b211816ee4f | refs/heads/master | 2023-08-22T06:00:55.924112 | 2021-09-18T19:04:15 | 2021-09-18T19:04:15 | 251,426,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | class Solution(object):
def iv(self,t):
if t == 1:
return 0
else:
return 1
def flipAndInvertImage(self, A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
row = len(A)
col = len(A[0])
... | [
"noreply@github.com"
] | YangLiyli131.noreply@github.com |
b22d08a95310a44da7bc43077102ca35e025dda5 | dbf48e804e1792999854832e64a7dae9f42f71e2 | /Spikes/spikedetekt2/spikedetekt2/core/tests/test_script.py | 4a48caf55fc470a9bf6bde40d574f657ecf725dc | [] | no_license | sapphire008/Python | 15d3d7885ac82333654b6729c2a57ed760e796a8 | b2783eabb1987091051614b8f12a4778e158a90b | refs/heads/master | 2023-08-09T04:38:43.077285 | 2023-07-28T18:36:03 | 2023-07-28T18:36:03 | 9,880,648 | 15 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | """Main module tests."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import os
import os.path as op
import numpy as np
import tempfile
from kwiklib import (excerpts, get_params, pydict_to_pyth... | [
"cui23327@gmail.com"
] | cui23327@gmail.com |
c4560ba0e5f05479e057ca93209cfac3c81a3528 | c3ace26cd05f3dc2097b2302ff9f5078468df8b3 | /flask-app/models.py | 1edc8fe6f05a14a0b72284518d949d87002760f1 | [] | no_license | rid47/lecture4 | ccdf5ff49c99eb28c098c9169648cbcbee66207e | 398b1f1d94ad19bf9abce843e1750621297f6e4e | refs/heads/master | 2022-04-24T16:56:42.697938 | 2020-04-26T08:35:03 | 2020-04-26T08:35:03 | 258,978,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Flight(db.Model):
__tablename__ = "flights"
id = db.Column(db.Integer, primary_key=True)
origin = db.Column(db.String, nullable=False)
destination = db.Column(db.String, nullable=False)
duration = db.Column(db.Integer, nullable=Fals... | [
"ridwanmizan@gmail.com"
] | ridwanmizan@gmail.com |
1d121b81f5661077acf9d3396c2d18b2a8aafe47 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5753053697277952_1/Python/Caust1c/a1.py | bf1d9a842fdbb5f014850c2d3225eece06188450 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,426 | py | ### Set the input and output file names
import time
import datetime
import string
import operator
filename = 'A-large'
input_filename = filename + '.in'
output_filename = filename + '.out.' + datetime.datetime.fromtimestamp(time.time()).strftime('%Y%m%d-%H%M%S') + '.txt'
def findmax(arr_int):
m = max(a... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
665fbacd18a16c4a0381bbb91ebfed9745bf12a4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02927/s950956417.py | a97f1206dbc46df6ba04a9ae44abc68733ed10d6 | [] | 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 | 355 | py | m,d = map(int,input().split())
cnt = 0
for i in range(1,m+1):
for j in range(1,d+1):
#print(i,j)
num = 1
d2 = (j-j%10)//10
d1 = j%10
if d2 >=2 and d1 >=2:
num =d1*d2
#print(i,j,num,d1,d2)
#print(i,j,num,(j-j%10),j%10)
if num == i:... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
24febda16aaf84019c85d59f061b3d6ff3898bc0 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /test/test_od_mcomplex_type_definition_picture.py | 493605438a6e7cfdeebbd08be2e3907161a9123f | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import rcc
from rcc.models.od_mcomplex_type_definition_pictur... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
8bf53f137afc4728262b2316165a54280baa1e66 | acc244c97a943d8e2074339afa1bff1274ae4cfc | /scripts/cgat_build_report_page.py | 7cd893e0d601bb43ea071b7da33f5b20a3caf22d | [] | no_license | eromasko/cgat | 00114f4c95b439ba6595ddf2092d1a3307347401 | d82d197f3913b8d65b656c0b205ca48854fdb2a6 | refs/heads/master | 2021-01-17T09:37:17.168278 | 2015-02-20T09:03:31 | 2015-02-20T09:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | '''
cgat_build_report_page.py - build report page for all projects
=======================================================================
:Author:
:Release: $Id$
:Date: |today|
:Tags: Python
Purpose
-------
This script scans all of :file:`/ifs/projects/sftp` for :file:`index.html` files
and outputs an html format... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
d5c02d1e01d38255df3b594ba8c9a67668b94140 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-NDE-MIB.py | a5ec9a397658dc0d689a0edf516f9cc7c36e095b | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 5,271 | py | #
# PySNMP MIB module CISCO-NDE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-NDE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:51:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
787e85a801a1a850d53cb69481a3ab6f9107e2b8 | c86e31e8e67ccb9a164903e394df7a444b5406de | /avg_word2vec.py | 73495851d695da43e749fa28b2040e508a22b1e8 | [] | no_license | candlewill/short_texts_sentiment_analysis | fb0e329c4c1ad6f8a72e6c2858a921913dde38b2 | 760e60e1cf430a8d0b1a313523a0c6f773a9c4c1 | refs/heads/master | 2020-04-24T15:36:51.258749 | 2015-07-14T08:28:54 | 2015-07-14T08:28:54 | 38,301,099 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | from sklearn.cross_validation import train_test_split
from gensim.models.word2vec import Word2Vec
from load_data import load_train_data, load_processed_data
import numpy as np
from sklearn.preprocessing import MinMaxScaler
# The following skills is useful
# train_test_split(np.array(texts), np.array(sentiemnt), test_s... | [
"yunchaohe@gmail.com"
] | yunchaohe@gmail.com |
b5f8821fc9ecb1f613a863bf6fbc7f174e5ca53a | 905750d3f6bf6232ffefd00ce74b4c7684d7f27e | /lmp_lib.py | b03eae6590766e65883ac744785cfa5ba362e2f7 | [] | no_license | petervanya/GeneralScripts | d1147b89defade68e68122e892e8844f7d4c0e64 | 77c0180156ceb78f08fabf7481c16be8d9aa8bfa | refs/heads/master | 2020-12-19T12:45:46.227823 | 2016-07-28T14:56:59 | 2016-07-28T14:56:59 | 40,310,828 | 0 | 2 | null | 2015-11-30T15:53:57 | 2015-08-06T14:58:49 | Python | UTF-8 | Python | false | false | 2,414 | py | #!/usr/bin/env python
"""
A collection of functions to manipulate LAMMPS files
pv278@cam.ac.uk, 11/01/16
"""
import numpy as np
# ===== print input
def header2str(N, Nbonds, atomtypes, bondtypes, L):
"""Generate LAMMPS header"""
s = "#blabla\n"
s += str(N) + " atoms\n"
s += str(Nbonds) + " bonds\n"
... | [
"peter.vanya@gmail.com"
] | peter.vanya@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.