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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3dbf33459f1e6ae1fa0643dc2c8e49ec7d268a7f | ff8539ccbbff9f53d30eb6c2d2a4f1cf6ca17991 | /samebirthyearsameage.py | b44a424cee4e8cbc9fcac4df99a3d696bc6cf139 | [] | no_license | raymondmar61/pythonoutsidethebook | 68f64712f26c3bc08d3a4a47bafca9ffb2a5b92b | d4b14ffc4b31ca727fc718905dea93d2a0e07b97 | refs/heads/master | 2021-01-21T06:06:30.010235 | 2019-11-07T03:15:07 | 2019-11-07T03:15:07 | 101,939,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #Ask Marilyn Parade Sun Nov 11, 2018
#The last two digits of my birth year are the same as my age today. Can you state with 100 percent centainty how old I am?
from datetime import datetime
currentyear = datetime.now().year
print(currentyear)
twodigitcurrentyear = str(currentyear)[2:4]
for n in range(10,100):
if cu... | [
"raym61@hotmail.com"
] | raym61@hotmail.com |
bf7c83ddaf5f2373293b4fc503f0a498245043f9 | 36dfe29989de2005f5ad8f61b7575e16bc7f46ed | /Orange/DP_I/Bytelandian_gold_coins.py | 0aeff9e158ccbac87ca235c153f097e67f922439 | [] | no_license | chrislevn/Coding-Challenges | ca17e26476a721ca855fef6e2e1587148758dde5 | dee52baaf5d15046a901b174e8b319deaa1c6107 | refs/heads/master | 2022-03-26T00:05:09.817752 | 2022-02-03T17:37:53 | 2022-02-03T17:37:53 | 242,436,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | def solve(n):
if n in result:
return result[n]
else:
result[n] = max(n, solve(n // 2) + solve(n // 3) + solve(n // 4))
return result[n]
if __name__ == '__main__':
while True:
try:
n = int(input())
result = {0:0, 1:1}
print(solve(n))
... | [
"locvicvn1234@gmail.com"
] | locvicvn1234@gmail.com |
8d8f609a6cd10e7ba94e8aa11108df257c612f75 | a55969078a42bebf91fc8f045017d9b0388220fb | /circuitpython.py | 5b447f95a15c3ec5d5727bddfbf21a3bc541083d | [
"MIT"
] | permissive | baremetal-ninja/core | ef6dc63bd9a378181204ca47a273527d597f11a7 | f6b6f166f53ffd43dc07571be4f092ff6a8bbdc8 | refs/heads/main | 2023-01-12T14:50:37.677361 | 2020-11-15T02:28:49 | 2020-11-15T02:28:49 | 312,927,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | import glob
import os
import qstr
import sys
import ninja
import toml
board = sys.argv[1]
board_directory = glob.glob(f"ports/*/boards/{board}")
if len(board_directory) != 1:
print("unknown or ambiguous board")
sys.exit(-1)
board_directory = board_directory[0]
build_directory = f"build-{board}"
os.makedirs(b... | [
"scott@tannewt.org"
] | scott@tannewt.org |
d07bf96e1686e8d32632fe11e67c017319377463 | 1b36425f798f484eda964b10a5ad72b37b4da916 | /posthog/api/test/test_activity_log.py | 5a90c5c96872d20cfa34e74d6b7f01e2c71230d7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dorucioclea/posthog | 0408baa2a7ae98e5bea352c516f741ddc17c0a3e | 8848981baf237117fb22d28af0770a0165881423 | refs/heads/master | 2023-01-23T11:01:57.942146 | 2023-01-13T09:03:00 | 2023-01-13T09:03:00 | 241,222,000 | 0 | 0 | MIT | 2020-02-17T22:34:37 | 2020-02-17T22:34:36 | null | UTF-8 | Python | false | false | 4,443 | py | from typing import Any, Dict, Optional, Tuple
from rest_framework import status
from posthog.models import User
from posthog.test.base import APIBaseTest, QueryMatchingTest
def _feature_flag_json_payload(key: str) -> Dict:
return {
"key": key,
"name": "",
"filters": {"groups": [{"propert... | [
"noreply@github.com"
] | dorucioclea.noreply@github.com |
dd3d3b834746dc7e4445bcb87f06faf9a6aaff83 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /6dnhESWBcTMMF3gsa_1.py | 1dbdc2afad7e549f6967c03035cfb215bd310c9a | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py |
def stupid_addition(a, b):
if type(a) == int and type(b) == int:
return str(a) + str(b)
elif type(a) == str and type(b) == str:
return int(a) + int(b)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2235d11aeb6c16e2b3ae5142e701dd9d45cabe0d | ae049caa1156793da5d46bcf526eceafa2eb4074 | /default/comment.py | e6d1ecf781eeca101f05a3c83bb9850c79659fb1 | [] | no_license | jmlopez-rod/lexor-parser-default | e8e50b2dd43713ac4fdf51ef44f9a41c2cdc7ecc | e3ca9ee2f3da9b607b0d01c24d13e01399004527 | refs/heads/master | 2021-01-17T10:22:07.265194 | 2014-04-17T17:33:09 | 2014-04-17T17:33:09 | 17,275,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,552 | py | """LEXOR: COMMENT NodeParser
Comments as in HTML are enclosed within `<!--` and `-->`. The string
`--` (double-hyphen) MUST NOT occur within comments. Unlike the HTML
parser the comment may start with `<!`. Another form of comment is
enclosed within `%%!` and `%%`. If the last form is used then the
comment may not con... | [
"jmlopez.rod@gmail.com"
] | jmlopez.rod@gmail.com |
5d8c315d616032619abf947fe686a1eca9dec045 | 6b6c980dcf385704a4a8fd634a35150d5ef0395c | /2019/MRC/models/dmn/train.py | 9b62d9227ca7766d7aa42f1f7f02191ef4ffe4a6 | [
"Apache-2.0"
] | permissive | yscoder-github/Language_Intelligent_Competition | 1a191b9754c4587a3f2e96f6ada6cbe0b37bef2c | 23325173a6e6b228da575e8be55a538ce1dbcae6 | refs/heads/master | 2022-12-16T13:11:25.810817 | 2019-07-11T11:19:30 | 2019-07-11T11:19:30 | 177,375,259 | 0 | 0 | Apache-2.0 | 2022-12-08T01:04:16 | 2019-03-24T05:38:04 | Python | UTF-8 | Python | false | false | 1,299 | py | import json
import pprint
import numpy as np
import tensorflow as tf
from config import args
from data import DataLoader
from model import model_fn
def main():
tf.logging.set_verbosity(tf.logging.INFO)
print(json.dumps(args.__dict__, indent=4))
train_dl = DataLoader(
path='../temp/qa5_three-arg-... | [
"yscoder@foxmail.com"
] | yscoder@foxmail.com |
1a14d06ac1fd493f7f826f7938c31dad63b5d977 | cb6b04b64fc977195831d6910d0af07053b3e30a | /zvt/api/computing.py | d495fad67f3e1afc1d51f98eea9848f6a9eb4787 | [
"MIT"
] | permissive | wut0n9/zvt | d2619f4fe69dcdd71838bc9e19b05d5666c22204 | 4e250585f3df3743f0eed25fda24dda6ae9446f1 | refs/heads/master | 2020-06-30T21:08:22.159069 | 2019-07-18T14:18:14 | 2019-07-18T14:18:14 | 200,952,139 | 1 | 0 | MIT | 2019-08-07T01:52:14 | 2019-08-07T01:52:13 | null | UTF-8 | Python | false | false | 871 | py | # -*- coding: utf-8 -*-
from zvt.api.technical import get_kdata
def ma(s, window=5):
"""
:param s:
:type s:pd.Series
:param window:
:type window:
:return:
:rtype:
"""
return s.rolling(window=window, min_periods=window).mean()
def ema(s, window=12):
return s.ewm(span=window, ... | [
"5533061@qq.com"
] | 5533061@qq.com |
47dfdfaf37f1da89c1dad5595838ad24036bb0c3 | 6bea924aa8dbe70db48f95323177d52b1ef7c2dc | /src/test_mayank_multitask.py | 61b8c0b08cfb33f7d145eacc2b515bf3e44984e4 | [
"BSD-3-Clause",
"MIT"
] | permissive | mayanks888/CenterNet | 6c097e060445deaa6bb4bdb5bafd7bbe5ac46831 | e331bd17f158847564f5fb131185b21ece82b559 | refs/heads/master | 2023-01-02T11:26:52.328475 | 2020-10-21T11:14:49 | 2020-10-21T11:14:49 | 299,597,651 | 0 | 0 | MIT | 2020-09-29T11:36:48 | 2020-09-29T11:36:48 | null | UTF-8 | Python | false | false | 4,133 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import _init_paths
import os
import json
import cv2
import numpy as np
import time
from progress.bar import Bar
import torch
from external.nms import soft_nms
from src.lib.opts_mayank_multitask import opts
f... | [
"mayank.sati@gwmidc.in"
] | mayank.sati@gwmidc.in |
ce79be2849cbedbf81c6adc77041cbbdddac5626 | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/037/D.py | 8eb2216122e560346ca961aa0a539fc993d0c1ef | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py |
H, W = map(int, input().split())
A = [list(map(int, input().split())) for _ in range(H)]
MOD = 10 ** 9 + 7
ans = 0
dp = [[-1] * W for _ in range(H)]
def dfs(h,w):
dy = [0,1,0,-1]
dx = [1,0,-1,0]
if dp[h][w] != -1:
return dp[h][w]
else:
ret = 1
for i in range(4):
nh... | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
024fd6ac38e7014def97a31463103a1ddc233fb0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_246/ch151_2020_04_13_19_23_08_343028.py | d592200d03d0bf1a3970d486116ef1190e3dbb6b | [] | 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 | 414 | py | def classifica_lista(l):
decres=False
cresc=False
if len(l)<2:
return ('nenhum')
else:
for i in range(1,len(l)):
if l[i]>l[i+1]:
decres=True
else:
cresc=True
if cresc and decres:
return ('nenhum')
elif cresc and not ... | [
"you@example.com"
] | you@example.com |
e9bd32706ea0f0d9590d637f01fb3f48b84a18b7 | 1608cb972c445f254f7f260c95356c59edc14b89 | /test_agent.py | 9a5f89ac4d1f0406fd8247242df7719ae87efe9a | [] | no_license | zizaing/pyktrader | e712ca92e2586cd2f625db7c0b56ea986bde2792 | f3e6f0162589185f93f67a9d9df322aaaa98f33c | refs/heads/master | 2021-01-20T22:02:41.194891 | 2015-02-05T12:11:39 | 2015-02-05T12:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,659 | py | #-*- coding:utf-8 -*-
import time
import agent
import fut_api
import lts_api
#import strategy
import ctp_emulator as emulator
import logging
#import data_handler
import strategy
import strat_dual_thrust as strat_dt
import strat_turtle
import order
from misc import *
from base import *
class TestStrat(strategy.Strateg... | [
"harvey_wwu@hotmail.com"
] | harvey_wwu@hotmail.com |
8aeebfbdeffb21e1b25b07c84cb9ca6e3925b00a | 535fbb1836915c0726875b855b1dce71a61be464 | /statsmodels/tsa/holtwinters/tests/test_holtwinters.py | e44e626ec5f70ad24d72da050c580a5577e98779 | [
"BSD-3-Clause"
] | permissive | vedal/statsmodels | 71e712452460f02bb53e366ebd1268e30d28df45 | 257fae36043ed099de66cdba23a0a90c0e960363 | refs/heads/master | 2022-12-02T04:28:48.308911 | 2020-08-04T22:36:45 | 2020-08-04T22:36:45 | 285,242,934 | 0 | 0 | NOASSERTION | 2020-08-05T09:32:57 | 2020-08-05T09:32:56 | null | UTF-8 | Python | false | false | 62,348 | py | """
Author: Terence L van Zyl
Modified: Kevin Sheppard
"""
import os
import re
import warnings
import numpy as np
from numpy.testing import assert_allclose, assert_almost_equal
import pandas as pd
import pytest
import scipy.stats
from statsmodels.tools.sm_exceptions import (
ConvergenceWarning,
EstimationWarn... | [
"kevin.k.sheppard@gmail.com"
] | kevin.k.sheppard@gmail.com |
57829e1b7b08ad6fdc97f536c77b45b9e348ddaa | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /tools/grit/grit/gather/__init__.py | 2d578f5643589184d45f0c818e6656f3e89ddca3 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"APSL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"MIT",
"Zlib"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 199 | py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Module grit.gather
'''
pass
| [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
e45eb801a58f8345668236ec9247aaef9f02b679 | 0a727f3ffde045805b9b789abbaa9c8497667f8e | /SprintMgr/ReadStartList.py | 90db25ecbc778c6b38f1c30e04d22015b62784a9 | [
"MIT"
] | permissive | esitarski/CrossMgr | ff4a632089a144f6ecc57970e2b29a7c31a15118 | a95ac1d65f2d0cab712cc6e5f9393668c1bbf83c | refs/heads/master | 2023-08-30T22:48:43.457978 | 2023-08-24T14:12:44 | 2023-08-24T14:12:44 | 1,042,402 | 33 | 20 | MIT | 2023-04-30T13:32:11 | 2010-11-01T17:25:15 | Python | UTF-8 | Python | false | false | 14,232 | py | import wx
import re
import os
import sys
import itertools
import copy
import wx.lib.filebrowsebutton as filebrowse
import wx.lib.scrolledpanel as scrolled
import wx.adv as adv
import string
import webbrowser
import traceback
import Utils
import Model
from Excel import GetExcelReader, toAscii
#------------------------... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
6b7bac6a4f4e465d8fc3ef0f9cbc175e7d253e87 | a0659e58f8073485674d7bc4092f9a04174fb7c7 | /Lib/objc/_IMSharedUtilities.py | 7a608579cfb937914a0fd7690ec21cf543fb421c | [
"MIT"
] | permissive | kanishpatel/Pyto | 74f75de8e06e6120324458346a9c65b73191b935 | feec7a1a54f635a6375fa7ede074ff35afbfbb95 | refs/heads/main | 2023-01-30T15:16:37.095828 | 2020-12-04T14:11:44 | 2020-12-04T14:11:44 | 318,703,734 | 0 | 0 | MIT | 2020-12-05T04:46:16 | 2020-12-05T04:46:15 | null | UTF-8 | Python | false | false | 9,701 | py | '''
Classes from the 'IMSharedUtilities' framework.
'''
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
IMSingletonProxy = _Class('IMSingletonProxy')
I... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
8787f9a2a4fe970c3da1919b85b0e433f9a5a5ed | 3dcfa266c4b7321a4c3a224b98f9ca0dff891e47 | /algorithm/del_x.py | c77a90afa1f92c9b531654183cee0456ce431409 | [] | no_license | CandyTt20/Notes | a2ef681d123c5219a29334e99aeb900b74bf1834 | ec092f881122ebdd91ef9764ec7ce4d9cc4723ae | refs/heads/master | 2022-08-21T18:08:33.204223 | 2020-05-19T23:55:49 | 2020-05-19T23:55:49 | 255,209,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | def del_backspace(s, init):
low, high = init, init + 1
if s == '':
return s
elif s[low] == '#':
return del_backspace(s[low+1:],0)
while high < len(s):
if s[high] != '#':
low, high = low + 1, high + 1
else:
low, high = low - 1, high + 1
... | [
"458566293@qq.com"
] | 458566293@qq.com |
3fc90096ce6d284108f5b3a8c500ceb3e0ad5709 | 82aada4592fc4fc8dfd6822bd37a1f6c79ee53c0 | /vocabulary/migrations/0028_auto_20170604_1753.py | 7a3f2c7b98b09be6041e4706b5dfb5ad9e71da5b | [] | no_license | Ancelada/canonizator | db79e9c16cdafb981e58dd933c03460a16803f90 | d5f14dddf3ed70dc8a0c10ecbb987fdf64eb682f | refs/heads/master | 2021-01-23T00:56:58.045369 | 2017-06-05T19:06:52 | 2017-06-05T19:06:52 | 85,855,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-04 14:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('vocabulary', '0027_auto_20170604_1752'),
]
operati... | [
"danydonatto@pochta.ru"
] | danydonatto@pochta.ru |
fef392b1eff013c80f5673fdba5ad8e62fafb017 | 7a10bf8748c7ce9c24c5461c21b5ebf420f18109 | /keras/Test.py | bbc079f874ba28959d96e85dea3c32d4335df905 | [] | no_license | VishalChak/machine_learning | aced4b4bf65bbbd08c966a2f028f217a918186d5 | c6e29abe0509a43713f35ebf53da29cd1f0314c1 | refs/heads/master | 2021-06-15T07:13:56.583097 | 2019-10-05T06:01:58 | 2019-10-05T06:01:58 | 133,164,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import numpy as np
np.random.seed(1373)
import tensorflow as tf
#tf.python.control_flow_ops = tf
import os
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from kera... | [
"vishalbabu.in@gmail.com"
] | vishalbabu.in@gmail.com |
1ac69e4de153b3e68fc28c27e6b6066d01de1c3e | 6a794563dfbde459858f6bc10ba95010f4934ed3 | /ChigneGarrampie/Simples/validador_simple12.py | e01b122626344b5d4bae6679509016cfb0155314 | [] | no_license | jchigne/T06_ChigneGarrampie | 9f8a2ec8c320aca86593e9bb648a4d06faee2f8e | 3eb65d1e9497905fb5ac958b9607079ed033991a | refs/heads/master | 2020-09-10T15:49:47.541517 | 2019-11-16T22:55:59 | 2019-11-16T22:55:59 | 221,746,205 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | import os
#muestra si se puede recaudar el monto nesesario para ir de paseo
#declaracion de datos
monto01,monto02,monto03=0.0,0.0,0.0
limite=False
#imput
monto01=float(os.sys.argv[1])
monto02=float(os.sys.argv[2])
monto03=float(os.sys.argv[3])
#processing
total=(monto01+monto02+monto03)
limite=(total>100)
#output
pr... | [
"jchigne@unprg.edu.pe"
] | jchigne@unprg.edu.pe |
22ca709faaca32c311fbefaf40d9f40ccc06afda | 9e658976a6fdfbe031fc3452c69243dc66359f6a | /LIVE_PYTHON/3-Exp_for/__init__.py | 62dccffe27c37db4b29f55084c06f4b106b55f0f | [] | no_license | zyyxydwl/Python-Learning | b2ed0f80121b284e5fb65cc212ccb84a0eb14cb6 | 6a5d36aa8805da647229fa747fa96452638d830e | refs/heads/master | 2018-10-04T23:42:21.076668 | 2018-06-08T03:19:33 | 2018-06-08T03:19:33 | 107,348,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2018/4/4 23:11
# @Author : zhouyuyao
# @File : __init__.py.py
# PyCharm 2017.3.2 (Community Edition)
# Build #PC-173.4127.16, built on December 19, 2017
# JRE: 1.8.0_152-release-1024-b8 amd64
# JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
# Windows 10 10... | [
"1330101907@qq.com"
] | 1330101907@qq.com |
644c68ae492513598347844fdac34d0b90b97c54 | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /abc201/c.py | f2c67e44a3a41d8490833f5875eee6bdd83dca01 | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | s = input().rstrip()
so = set()
sx = set()
for i in range(10):
if s[i] == 'o':
so.add(i)
elif s[i] == 'x':
sx.add(i)
ans = 0
for x in range(10000):
sd = set()
for i in range(4):
d = x % 10
sd.add(d)
x //= 10
if len(so - sd) == 0 and len(sx - sd) == len(sx):
... | [
"silphire@gmail.com"
] | silphire@gmail.com |
9078640676e731c10644118c43598e3c2db2a009 | 5d1c43bb4881039f198eedcee2ceb101b406e0a0 | /Django/project02/app/migrations/0001_initial.py | 22e65dcaf2df9eb4ce2b580fcec10877babf2fb3 | [] | no_license | MunSeoHee/Likelion_Gachon_2020 | 46155b1686a245a59c5664f7726ac754b7079e4b | e0e48845fdb0e4aa2365e7c47e29880a27f0f261 | refs/heads/master | 2021-04-10T09:51:06.618980 | 2020-12-07T10:06:43 | 2020-12-07T10:06:43 | 248,927,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.0.4 on 2020-07-26 12:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='list',
fields=[
('id', models.AutoField(aut... | [
"nansh9815@naver.com"
] | nansh9815@naver.com |
bc7f5cd4fcbdf70e09e1511bbe922d6a2633c148 | 94b8f747191e950268838218426475e7159486b8 | /examples/neuroml/generate_nml.py | c98aa178ff421d07faba7f3277d76340bf510f11 | [
"BSD-3-Clause"
] | permissive | neurokernel/neurokernel | 527f6cbe1021d0773dbb4d5cb6f01fccee5f034c | c5e60dd4ed46185a67de464177dc0fcf00b2efa7 | refs/heads/master | 2023-07-11T12:23:38.447024 | 2022-08-02T14:23:00 | 2022-08-02T14:23:00 | 14,244,399 | 271 | 72 | NOASSERTION | 2020-02-19T17:06:56 | 2013-11-08T21:09:01 | Python | UTF-8 | Python | false | false | 6,912 | py | #!/usr/bin/env python
"""
Demo of how to generate and save a Neurokernel emulation in NeuroML.
"""
from neurokernel.neuroml import NeuroMLDocument
from neurokernel.neuroml import NeurokernelDoc
from neurokernel.neuroml import MLNeuron
from neurokernel.neuroml import AlSynapse
from neurokernel.neuroml import Interface... | [
"lev@columbia.edu"
] | lev@columbia.edu |
d0f77eadf5c373e63ec732dfd6f1d3c1ee33340b | bfb6ccbcb2707bca5eb44f2b64c0084aa6561b5a | /docs/examples/textbook/explode_evolved_star.py | 14b28a98370a160b7a6bac3ee8dfd1c783eb75ed | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cgroeneveld/amuse | 79c8ece558f484df4494609e95274cffd5c37c60 | 9684fd22ce8293b837d2c78f56948e3ec3d04032 | refs/heads/master | 2020-08-16T16:44:46.702465 | 2019-10-14T19:16:04 | 2019-10-14T19:16:04 | 215,526,071 | 0 | 0 | Apache-2.0 | 2019-10-16T10:57:34 | 2019-10-16T10:57:34 | null | UTF-8 | Python | false | false | 8,559 | py | import numpy
import os.path
from amuse.test.amusetest import get_path_to_results
try:
from matplotlib import pyplot
HAS_MATPLOTLIB = True
from amuse.plot import plot, semilogy, xlabel, ylabel, loglog
except ImportError:
HAS_MATPLOTLIB = False
from amuse.units import units
from amuse.units import generi... | [
"steven@rieder.nl"
] | steven@rieder.nl |
08de56c9f6ab1e28abb6d807aafa325ca15d2b32 | c4702d1a06640555829b367852138cc93ba4a161 | /dym_tax_exception/models/dealer_spk.py | 2f551de3e0be4a2c604c1c6d658173ee36f23efb | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,511 | py | # -*- coding: utf-8 -*-
import pdb
import itertools
import openerp.addons.decimal_precision as dp
from lxml import etree
from datetime import datetime, timedelta
from openerp import models, fields, api, _
from openerp.exceptions import except_orm, Warning, RedirectWarning
from openerp.addons.dym_base import DIVISION_... | [
"rizal@portcities.net"
] | rizal@portcities.net |
cd368626cf60f04fa7877bc3c8e53834874c5f71 | 9050ff35b31487bf8ccbc8b6b3e29b825bb6e8b4 | /_site/data_processor/tests/test_Calculations_Manhours.py | 14abbfbe8ddb1b1e6575b38c306edb5009b4ecd6 | [] | no_license | CameronBoudreau/dtna_dashboard | ae05580c9bd80ea915aec1c3241ebfd12759a5a0 | b8ade74e16c49ab65c140bfc4865a01c02012ba2 | refs/heads/master | 2021-01-20T20:10:46.250494 | 2016-06-27T21:34:06 | 2016-06-27T21:34:06 | 62,075,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,276 | py | """
Testing the manhours calucaltion functions.
Each class is a building up the test case.
"""
from django.test import TestCase
from django.utils import timezone
import datetime as dt
from data_processor.tests.functions.functions_for_tests import find_pop_and_return
from get_data.models import EmpClockDataModel
from... | [
"cboudreau6238@gmail.com"
] | cboudreau6238@gmail.com |
53a4a9eaa10b400878733d623f23a9c9f1f34d7a | 813c34988d17fc13165e50456fdf570b5452e50e | /Test/TEST3/service/texi_service.py | ef13f8ce80773bbe196349da9a272ac7ab39c06f | [] | no_license | Burbon13/Python | 094538b7316661be267ce486a63b267a8bab7121 | b22977b0b4e1c939be57c806407300862b362bb6 | refs/heads/master | 2020-03-28T04:38:44.013975 | 2018-09-06T20:13:02 | 2018-09-06T20:13:02 | 147,727,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | class TaxiService:
def __init__(self, repoTaxi):
self.__repoTaxi = repoTaxi
def modifyTaxi(self, id, adress, x, y):
self.__repoTaxi.modify(id,adress,x,y)
def getFromAdress(self, adress):
whole = self.__repoTaxi.getAll()
toReturn = []
for i in whole:
if ... | [
"razvan_roatis@yahoo.com"
] | razvan_roatis@yahoo.com |
1b58934f82a4226e0e5033db2b115811fbb5590c | 294004b94c491be131858bd896fcfef66ac6d6e9 | /bzt/modules/provisioning.py | ee5ebb62a98e28c3e09289650d447017133268a5 | [
"Apache-2.0"
] | permissive | dutchb/taurus | 25ac310a658f937946eb120f9c4a45dcbe1dd473 | 509fbfb01bd9a78fad0cc88c2cb6d2b87425f67a | refs/heads/master | 2021-01-13T09:33:34.455402 | 2016-03-25T11:02:09 | 2016-03-25T11:02:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | """
Implementations for `Provisioning` classes
Copyright 2015 BlazeMeter Inc.
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 appl... | [
"apc4@ya.ru"
] | apc4@ya.ru |
0502a5952ac0aad6b5743e85ee06f59cdd1a9e00 | a913309bda87feee7f0637cb73901b4bcdca44bd | /0x07-python-test_driven_development/100-matrix_mul.py | 239c4685f7f98261cce465ffbb350b5966a8189e | [] | no_license | KamalTaleb/holbertonschool-python | e77b4f88a7ae60db158c0defa6c3f7737ad96562 | 29ffbccf1d02c7cf76a5df04d9386105dc149a81 | refs/heads/master | 2023-01-20T20:24:32.388729 | 2020-11-26T12:22:57 | 2020-11-26T12:22:57 | 292,331,337 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | #!/usr/bin/python3
"""kamal"""
def matrix_mul(m_a, m_b):
"""kamal"""
return m_a
| [
"kamal.talebb@gmail.com"
] | kamal.talebb@gmail.com |
ddecd43b66b7fa0acae777d61af4a7181b75ad9b | 9043d705f2e9067c37ef8958c9de87197bf0576b | /project/registration/tests/test_models.py | 72196862f11e91e7c6030dc24b52295c70b1c275 | [] | no_license | adoggie/django-learning | 025b65647b17ebbce7c0752f1e86eb5b25178c4c | e90df57d07df21689c52e661cb2ab12ed497cb74 | refs/heads/master | 2023-06-23T20:06:25.288317 | 2023-06-20T02:56:22 | 2023-06-20T02:56:22 | 68,740,091 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,845 | py | """
Tests for the model and manager in the model-based workflow.
"""
import datetime
import hashlib
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.sites.shortcuts import get_current_site
from django.core import mail, management
from django.db import models
from dj... | [
"24509826@qq.com"
] | 24509826@qq.com |
98b4c5d19c5e02599789beee1d48c37a4cb00cb8 | c7295c1ffd8ad82c273524eab1a42d3a22741ba9 | /figures/first/sB.py | 763172d8bc0e96c3013f9ca2303eaadd7d60a401 | [] | no_license | FedeClaudi/EscapePathSelection | 629d3ea6f5c14af144bdda16a899b3fb86340169 | 1bbdd95384e1c343495fcf33fc0c46b21110fe91 | refs/heads/master | 2023-04-18T18:16:27.153848 | 2022-04-25T12:20:40 | 2022-04-25T12:20:40 | 247,850,434 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,340 | py | # %%
import sys
from pathlib import Path
import os
module_path = Path(os.path.abspath(os.path.join("."))).parent.parent
sys.path.append(str(module_path))
sys.path.append('./')
from scipy.stats import fisher_exact
from rich import print
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from loguru ... | [
"federicoclaudi@protonmail.com"
] | federicoclaudi@protonmail.com |
90dfde6704e6dffb67ee4ab00e6c01601066d2ee | 564b106cf479223833f6739a825de567fce2bf47 | /4/objectTracker4.py | 282654dc09d5bf432a1410ccdbde9a1ef8e48bd5 | [] | no_license | ramanraja/CV1 | c8d23f56b04169bfd08417b209b72906c2f396e3 | 46c3aaf5e830a837961c45fbed308e5c36f6f6cd | refs/heads/master | 2021-01-20T11:38:31.069633 | 2017-08-28T19:10:04 | 2017-08-28T19:10:04 | 101,677,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | # Object tracking by HSB color, and plot the object's HSV histogram
import cv2
import time
import numpy as np
import matplotlib.pyplot as plt
import my_imutils
from videostream import VideoStream
# note: it is in H,S,V order
#Lower = np.array([90, 0, 0], dtype = "uint8")
#Upper = np.array([120, 255, 255]... | [
"noreply@github.com"
] | ramanraja.noreply@github.com |
de3164fe6cc947aa980ac7cfc73d68e3dd25138e | 541223d8e2a68648528f997fe5897750a6f7e611 | /Application/2018/BDT_Application_2jet/samples.py | e152831b6b02244146573b947cbecabc1b34c808 | [] | no_license | saumyaphor4252/top_BDT_against_WW | 9757dd89f495cc603a616b7491ff7b13e575414f | 12077d09a82756ccd524bf69b9d3feea196fad5e | refs/heads/master | 2023-07-15T14:34:49.611398 | 2021-08-31T09:21:55 | 2021-08-31T09:21:55 | 401,639,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,376 | py | import os
import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # inclusive BDT Application 2j
configurations = os.path.dirname(configurations) # 2018_v7
configurations = os.path.dirname(configurations) # FullRunII
configu... | [
"saumya.phor4252@gmail.com"
] | saumya.phor4252@gmail.com |
861cfb61077cfbf85e2e5c1d66726d514a953103 | b33786e8a52387daaa6da03b777926c7d5bc71de | /day08/8_data.py | 22a5031461f776f063f57eb02d7c4ad9528268fd | [] | no_license | threebodyyouzi/python_exercise | 014a7b041eace54206a94bea0806ba853ba382e9 | baaef563abbe66cba7a2c065daaabc4c455d565d | refs/heads/master | 2020-04-06T08:26:57.481146 | 2018-11-17T09:47:04 | 2018-11-17T09:47:04 | 157,305,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | class Date:
def __init__(self,year,month,date):
self.year=year
self.month=month
self.date=date
@classmethod
def create_data(cls,str_date):
y,m,d=map(int,str_date.split("-"))
instance=cls(y,m,d)
return instance
@staticmethod
def is_date_valid(str_date):... | [
"root@room9pc01.tedu.cn"
] | root@room9pc01.tedu.cn |
e05087c8abc995008668c051b765aec952734be9 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /CD5nkQ6ah9xayR3cJ_5.py | 9bb6d88967dba42af462a07cc193a378c15c6314 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | """
Create a function which returns the _total_ of all odd numbers up to and
including `n`. `n` will be given as an _odd number_.
### Examples
add_odd_to_n(5) ➞ 9
# 1 + 3 + 5 = 9
add_odd_to_n(13) ➞ 49
add_odd_to_n(47) ➞ 576
### Notes
Curiously, the answers are all _square numbers_!
"""... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
79721c0809e338ff4425095b34cb0eb6b879daec | b31497e3577a17d46e85b3a78f32dfe82b80638e | /dogswrapper-env/lib/python2.7/site-packages/OpenNNDR/onndr/onndr.py | 9628f31937d1b1362d9edf1526b96327d338100b | [
"MIT"
] | permissive | dpritsos/DoGSWrapper | ca954531ad241f2cfad442234e85dd929da15b8d | 6f20a7dbcd61339f39bf0acf79c9fffbb1679ecc | refs/heads/master | 2021-01-17T15:04:09.950521 | 2020-05-11T10:18:48 | 2020-05-11T10:18:48 | 17,569,177 | 1 | 0 | null | 2018-10-20T13:08:32 | 2014-03-09T17:13:30 | Python | UTF-8 | Python | false | false | 13,387 | py |
import numpy as np
import time as tm
from ..dsmeasures.dsmeasures import eudis_2d, cosdis_2d
# Open-Set Nearest Neighbor Distance Ration for Multi-Class Classification Framework.
class OpenNNDR(object):
def __init__(self, slt_ptg, ukwn_slt_ptg, rt_lims_stp, lmda):
# Initilising the rt.
self.rt ... | [
"dpritsos@extremepro.gr"
] | dpritsos@extremepro.gr |
a270a805823bc83dffb10f21dcbe5b0001d510ea | 35a6f5a26ea97ebed8ab34619a8eec51719d2cc0 | /Python_Basic/16 内置函数/1 abs和round.py | dfef9adb8540ef0f20e379df03743307797d4bc8 | [] | no_license | PandaCoding2020/pythonProject | c3644eda22d993b3b866564384ed10441786e6c5 | 26f8a1e7fbe22bab7542d441014edb595da39625 | refs/heads/master | 2023-02-25T14:52:13.542434 | 2021-02-03T13:42:41 | 2021-02-03T13:42:41 | 331,318,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # # 1.abs()
# print(abs(-10))
# # 2.round()
# print(round(1.2))
# print(round(1.9))
# 需求:任意两个数字,按照指定的要求整理数字后再进行求和计算
# 方法1
def add_num(a,b):
return abs(a) + abs(b)
result1 = add_num(1,-2)
print(result1)
# 方法2
def sum_num(a,b,f):
return f(a) + f(b)
result2 = sum_num(1,-2, abs)
print(result2)
| [
"gzupanda@outlook.com"
] | gzupanda@outlook.com |
4fe30837f72e6790032826e64aa2b82bfe284ce4 | 13b516ca91c72fac4576a05a4a8124749435b9c3 | /entabled/__init__.py | 537ffc75a6160592c15c4a1dda507aed8e6088c7 | [] | no_license | daler/entabled | 6e8ca8ed5624f44f080d28abd26244bfd7b58fa8 | 152934ad44ab8c8287d5c533ecf80fa7604ce23d | refs/heads/master | 2016-09-06T00:53:48.577557 | 2013-03-26T17:34:42 | 2013-03-26T17:34:42 | 8,939,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from entabled import DESeqResultsParser, DataTableCreator
import helpers
| [
"dalerr@niddk.nih.gov"
] | dalerr@niddk.nih.gov |
568165d3871ef80eef6c0f4d55eca31b03bf2f0b | aca4f00c884e1d0e6b2978512e4e08e52eebd6e9 | /2021/atcoder.jp/abc/222/prod.py | 829a62ac0ef641a0f3d901cdef458300752974aa | [] | no_license | jki14/competitive-programming | 2d28f1ac8c7de62e5e82105ae1eac2b62434e2a4 | ba80bee7827521520eb16a2d151fc0c3ca1f7454 | refs/heads/master | 2023-08-07T19:07:22.894480 | 2023-07-30T12:18:36 | 2023-07-30T12:18:36 | 166,743,930 | 2 | 0 | null | 2021-09-04T09:25:40 | 2019-01-21T03:40:47 | C++ | UTF-8 | Python | false | false | 781 | py | from sys import stdout
def solution(a, b):
msk = 998244353
n = len(a)
f = [[0 for j in xrange(b[-1] + 1)] for i in xrange(n + 1)]
f[0][0] = 1
for i in xrange(n):
subsum = 0
for k in xrange(b[i] + 1):
subsum = (subsum + f[i][k]) % msk
if k >= a[i]:
... | [
"jki14wz@gmail.com"
] | jki14wz@gmail.com |
d2b55c7393aa37b679ed9ab4b6ce933d08e6689a | e867517068ade1572691ac86c6f2ad6596c0d559 | /film20/showtimes/signals.py | e581e6a824e161d1ca119f0bd3f9f05043bdb94f | [] | no_license | manlan2/filmaster | 044ec124d91da0b6dcf2eb5b8af5aec6f0fffd53 | 90b2bb72c2bab9dfea0c0837971a625bc6880630 | refs/heads/master | 2021-05-26T22:24:55.012908 | 2012-05-27T09:30:37 | 2012-05-27T09:30:37 | 107,661,541 | 1 | 0 | null | 2017-10-20T09:51:53 | 2017-10-20T09:51:53 | null | UTF-8 | Python | false | false | 95 | py | import django.dispatch
film_rematched = django.dispatch.Signal( providing_args=["instance"] )
| [
"young.jiandong@gmail.com"
] | young.jiandong@gmail.com |
d632dff12c12a12bc69670fec1e53f0cb9d0e5b2 | 830bd6d8a4785a9e07698a01fffb6a3636c43f66 | /leetcodePrac/deleteValidBrackets.py | e295d89e5c541e4580aeb526d6ee8422d9519f7d | [] | no_license | Daishijun/InterviewAlgorithmCoding | 1f5ccac3084476583802be952ac8fc4b4a1b020a | 49606650d369f9d0f0288f8425569fb2159d1b69 | refs/heads/master | 2020-05-21T07:33:46.197110 | 2019-09-05T10:59:30 | 2019-09-05T10:59:30 | 185,963,757 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/6/26 14:59
# @Author : Daishijun
# @Site :
# @File : deleteValidBrackets.py
# @Software : PyCharm
'''Leetcode 301 删除无效的括号'''
'''dfs, 有回溯思想'''
class Solution:
def removeInvalidParentheses(self, s: str) :
left = 0 #左括号多了多少,
... | [
"1939274655@qq.com"
] | 1939274655@qq.com |
c5eb555668499770801f9997302f18aba8703569 | ce4f1810b8011f05f4e9f8b67959b6a2994ac821 | /GAVOCoverage/temp-python/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/tarfile.py | ea6c604160699cbc1a9fb368e2624c4d8dc7e9a6 | [] | no_license | Hyradus/VO_QGIS3.x_plugin | b11d3b18e473861b6d0733c3783c40af6e8eb039 | 9ab9acb4756c415797b5a7e64389978a84a32c23 | refs/heads/master | 2022-04-14T00:25:12.283460 | 2020-04-02T17:18:50 | 2020-04-02T17:18:50 | 248,215,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92,902 | py | #-------------------------------------------------------------------
# tarfile.py
#-------------------------------------------------------------------
# Copyright (C) 2002 Lars Gustaebel <lars@gustaebel.de>
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy ... | [
"giacomo.nodjoumi@hyranet.info"
] | giacomo.nodjoumi@hyranet.info |
31cc91c4190ae9bfe61b63fe0f2b649809c0e744 | 933376c11498a6567da8d7eb7d2675100895c3ba | /pyzoo/zoo/pipeline/nnframes/nn_image_schema.py | 7154dfe478dc80ded1a2bbec84f604633143ab9c | [
"Apache-2.0"
] | permissive | intel-analytics/analytics-zoo | 320a461765f86d41dd456b598b1cf1d51d57f4c4 | 7cc3e2849057d6429d03b1af0db13caae57960a5 | refs/heads/master | 2023-08-13T20:47:58.621714 | 2023-07-06T00:49:11 | 2023-07-06T00:49:11 | 90,328,920 | 3,104 | 996 | Apache-2.0 | 2023-09-06T01:51:18 | 2017-05-05T02:27:30 | Jupyter Notebook | UTF-8 | Python | false | false | 890 | py | #
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"noreply@github.com"
] | intel-analytics.noreply@github.com |
c00d6800926923d87b78119eba8fab0b55aac4b7 | 7e547a4b8faa4cb026a09783fec4fe9930d7994a | /multi_list_matrix/2x2_Squares_in_Matrix.py | 27491bcd6c3f77f8825511728e6199da498d5ed9 | [] | no_license | borko81/python_advance | de9bb1c7c3fe6914a7c850deef9eef2979b3caaf | 1726ac8f2363f7d194b7e386450f80b291a5f1c9 | refs/heads/master | 2023-05-04T13:55:07.194116 | 2021-05-25T19:47:39 | 2021-05-25T19:47:39 | 296,580,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | row, col = list(map(int, input().split()))
def generate_matrix(n, c):
matrix = [[x for x in input().split()] for _ in range(n)]
return matrix
def equal_matrix(matrix):
count = 0
for r in range(row - 1):
for c in range(col - 1):
if matrix[r][c] == matrix[r][c+1] == matrix[r+1][c] ... | [
"bstoilov81@gmail.com"
] | bstoilov81@gmail.com |
6cd2ac12f77fd197bce965e7bfa48ac214854b98 | 0faf0530564c65379df2ab497c502f0582e8c05f | /week3/coursera3_addStarToStr.py | d194ea21a937c633f08ab2cd6ad5d9c766fb4c4a | [] | no_license | OlgaKozlenkova/coursera | 60a89466716e7bc0e37684d2e1816ed92a89823e | d9457b7547b0d4adbd03131ada1bfec2f4a5a912 | refs/heads/master | 2022-11-12T05:23:38.378896 | 2020-07-07T12:22:07 | 2020-07-07T12:22:07 | 269,658,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | string = input()
new_string = string[1:-1]
if len(string) > 1:
print(string[0], new_string.replace("", "*"), string[-1], sep="")
else:
print(string[0])
| [
"olga.kozlenkova@gmail.com"
] | olga.kozlenkova@gmail.com |
2e83fee1ca8f9248576fd22a3d4de09d88a33f61 | c762ab8c1c25ffa97229a62ff43a33543093f963 | /venv/lib/python3.7/site-packages/examples/admm_svm_pool.py | 492f7fe5b068cb0af9dd686b2b2fbc1fb2bdcacf | [
"Apache-2.0"
] | permissive | nahyunkwon/multi-ttach | e68948d66541e85b764216efc54a82f6fc9ac044 | 971d0d93cc39f295deb23ea71146647f6db50ebc | refs/heads/master | 2023-08-09T18:25:31.658950 | 2023-07-24T17:46:04 | 2023-07-24T17:46:04 | 297,783,964 | 0 | 1 | Apache-2.0 | 2021-04-07T07:46:24 | 2020-09-22T22:08:53 | G-code | UTF-8 | Python | false | false | 2,085 | py | """
Copyright 2013 Steven Diamond
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | [
"skgus2624@gmail.com"
] | skgus2624@gmail.com |
fc903e683c6a60b1560b1f027c2b53cbee52e6a7 | f65e740c52f0199307c3fc1e210a27a604bb3142 | /Bending/Bending 3.py | 1769a201f94bbe500cf840333f638210ca001e49 | [] | no_license | ninjafrostpn/PythonProjects | 69ce67af4714edbf53477ff9233262c6df439a7d | 26e2edca16a1dc198858f7e6f60684e343775329 | refs/heads/master | 2022-10-22T02:53:04.380713 | 2022-10-21T09:05:43 | 2022-10-21T09:05:43 | 106,318,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,219 | py | # Basic idea:
# Physicsy sandy sand (pixel-perfect collisions, run simulation to keep up with real time)
# Character moving around
# Tap direction (WASD) to choose stuff to pick up, tap next to throw
# Hold direction to choose stuff to morph, press other keys to morph it
import pygame
from pygame.locals import *
impo... | [
"cst1g16@soton.ac.uk"
] | cst1g16@soton.ac.uk |
f89c3cf96f8c9c5215b94ec4b3dbf02c69e162bb | b047a32da65cc0fafe249160f57765ddbe80176e | /apps/uitls/__init__.py | ed1033ecffbda22981dd926f155c022e34fe4b54 | [
"MIT"
] | permissive | fengjinqi/website | 0568c679e7964bdbb637831a4f1dec7c5e8d767c | 340eecec49ce0d66cd6a491d0ae9ad23ec9f841b | refs/heads/master | 2023-02-18T10:12:52.158471 | 2023-02-16T08:40:13 | 2023-02-16T08:40:13 | 160,755,540 | 367 | 114 | MIT | 2022-12-08T01:42:40 | 2018-12-07T01:44:34 | Python | UTF-8 | Python | false | false | 45 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
| [
"tarena_feng@126.com"
] | tarena_feng@126.com |
762707cf7c4ec6ded6ecc1e69da5c65595ebbd29 | aa480d8b09dd7ad92c37c816ebcace24a35eb34c | /first-round/839.相似字符串组.py | 8986478e8319d720a8bd2a12728f0c86da9cd067 | [] | no_license | SR2k/leetcode | 7e701a0e99f9f05b21216f36d2f5ac07a079b97f | de131226159865dcb7b67e49a58d2ddc3f0a82c7 | refs/heads/master | 2023-03-18T03:37:02.916453 | 2022-09-16T01:28:13 | 2022-09-16T01:28:13 | 182,083,445 | 0 | 0 | null | 2023-03-08T05:44:26 | 2019-04-18T12:27:12 | Python | UTF-8 | Python | false | false | 2,514 | py | #
# @lc app=leetcode.cn id=839 lang=python3
#
# [839] 相似字符串组
#
# https://leetcode-cn.com/problems/similar-string-groups/description/
#
# algorithms
# Hard (57.32%)
# Likes: 124
# Dislikes: 0
# Total Accepted: 18.5K
# Total Submissions: 32.3K
# Testcase Example: '["tars","rats","arts","star"]'
#
# 如果交换字符串 X 中的两个不... | [
"luozhou.csy@alibaba-inc.com"
] | luozhou.csy@alibaba-inc.com |
11f24bca94fbb99b30a1ad35858fed6ec82357b3 | bf397e60bba27b649084966aee686869c7df595d | /python/Myself_Note/Runoob/exercise/6.py | 48703483c4923838e3cbfe23bfaaecc613ea8655 | [] | no_license | demo112/1807 | 3783e37f7dab3945a3fc857ff8f77f4690012fbe | 9b921c90b3003226d919017d521a32da47e546ad | refs/heads/master | 2022-12-01T10:50:24.086828 | 2018-12-06T09:48:14 | 2018-12-06T09:48:14 | 150,758,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # 斐波那契数列
def fib(n):
a, b = 1, 1
for i in range(n-1):
a, b = b, a+b
return a
print(fib(10))
# 使用递归
def fib(n):
if n == 1 or n == 2:
return 1
return fib(n - 1)+fib(n - 2)
print(fib(10))
# 输出前 10 个斐波那契数列
def fib(n):
if n == 1:
return [1]
if n == 2:
retur... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
7f47c0aba2b54f0b4eb9e153549cc0e2e6e07722 | dbed00bdaff3113321d469db8418246a6335c60a | /make_registry.py | 6f2e94023e10a047daabc359b8273d6922db1784 | [
"Apache-2.0"
] | permissive | dopplershift/pythia-datasets | 9ecee0db71f13b17975aa88d27dc84029d37fda0 | 4a94081ce2c3d62ccf18ef3d0f8a737421c079bd | refs/heads/main | 2023-09-04T00:51:39.736548 | 2021-10-11T20:20:32 | 2021-10-11T20:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import os
import pathlib
import pooch
if __name__ == '__main__':
here = pathlib.Path(os.path.dirname(__file__))
data_dir = here / 'data'
pooch.make_registry(data_dir, here / 'pythia_datasets/registry.txt')
| [
"axbanihirwe@ualr.edu"
] | axbanihirwe@ualr.edu |
bbfcd1ee60ec764cf6d180263c4e96b90926958f | 4c3ad36846fe4382fafd55ed831bd2fef8e454cd | /zhedaGPA.py | 91f145e49b8a141e7eafa507c885843b6714800a | [] | no_license | gjwei/leetcode-python | 809f1f2d43d62eb931d42f2e7e271abf4a426017 | 7f25fa62c8cfa0fb24d57fd2a62059e0e98a6002 | refs/heads/master | 2021-01-20T01:38:01.149608 | 2018-01-05T06:43:05 | 2018-01-05T06:43:05 | 89,308,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
created by gjwei on 8/27/17
"""
weight = [1] + [2] * 9
grades = [74, 92, 81, 79, 85, 94, 78, 89, 82, 83]
def calculate_single_course(grade):
if grade >= 85:
return 4.0
else:
return 1.5 + (grade - 60) * 0.1
if __name__ == '__main__':
gr... | [
"1449894353@qq.com"
] | 1449894353@qq.com |
0c884f82a1783c290943d3aeda9d3b1e91a87aa4 | 67612c27c6d79ae180a5bc266833899abfefe9f5 | /176. 第二高的薪水.py | 8ef3f28714bec622ccf12fe60924b0a45d6bea85 | [] | no_license | Katherinaxxx/leetcode | 7e9d0bd7dc613a824116f1247f42bfc33e485ff3 | dcebf49d1e024b9e69c4d9606c8afb32b9d07029 | refs/heads/master | 2023-01-27T20:14:09.459296 | 2023-01-08T07:01:53 | 2023-01-08T07:01:53 | 215,688,672 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2020/8/26 下午10:32
@Author : Catherinexxx
@Site :
@File : 176. 第二高的薪水.py
@Software: PyCharm
"""
select (select distinct salary from Employee order by salary desc limit 1,1) as SecondHighestSalary
| [
"359391236@qq.com"
] | 359391236@qq.com |
278731c2af3cdcd9a21ee09be09688a3acd9838d | 761c9f940d34d7359669bbbb8d4238878f8d5b8a | /record/record/wsgi.py | e88fb10db11ceba4e4c7345569b695fe067a7cd7 | [] | no_license | Manjunatha1997/docker_django | 57cb811c800d161e8a0ac5092dab840e992b4d64 | 26ba3e330a8cb9be21524fc244d5925f924a7017 | refs/heads/master | 2023-02-12T20:28:28.181322 | 2020-12-30T05:14:56 | 2020-12-30T05:14:56 | 325,460,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for record project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"lovelymanju198@gmail.com"
] | lovelymanju198@gmail.com |
d6f7085a14de7b36414f0a1c5d006f63bc289140 | 3d6bb3df9ca1d0de6f749b927531de0790aa2e1d | /process_and_join.py | acfbbcb82cdc310886b0950182edf9dd0595434f | [] | no_license | standardgalactic/kuhner-python | da1d66a6d638a9a379ba6bae2affdf151f8c27c5 | 30b73554cc8bc9d532c8108b34dd1a056596fec7 | refs/heads/master | 2023-07-07T04:18:30.634268 | 2020-04-06T04:37:48 | 2020-04-06T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 1 13:27:59 2016
@author: lpsmith
"""
from __future__ import division
from os import walk
from os.path import isfile
import numpy
def shouldMerge(seg1, seg2, seglog2rs):
if (len(seg2) == 0):
return False
nstds = 1
if seg1[0] != seg2[0]:
retur... | [
"lpsmith@uw.edu"
] | lpsmith@uw.edu |
0c482b53468571132f85071e68567ddf0507bcce | e46b909cdf0361f6c336f532507573c2f592cdf4 | /contrib/tools/cython/Cython/Compiler/Symtab.py | ab43c7057f50b27501911bf92e8b7fa459563376 | [
"Apache-2.0"
] | permissive | exprmntr/test | d25b50881089640e8d94bc6817e9194fda452e85 | 170138c9ab62756f75882d59fb87447fc8b0f524 | refs/heads/master | 2022-11-01T16:47:25.276943 | 2018-03-31T20:56:25 | 2018-03-31T20:56:25 | 95,452,782 | 0 | 3 | Apache-2.0 | 2022-10-30T22:45:27 | 2017-06-26T14:04:21 | C++ | UTF-8 | Python | false | false | 106,435 | py | #
# Symbol Table
#
from __future__ import absolute_import
import re
import copy
import operator
try:
import __builtin__ as builtins
except ImportError: # Py3
import builtins
from .Errors import warning, error, InternalError
from .StringEncoding import EncodedString
from . import Options, Naming
from . im... | [
"exprmntr@yandex-team.ru"
] | exprmntr@yandex-team.ru |
397125b68e1af209eb751a3a66f1c9fb8601608d | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/types/overloads/FirstMatchingFunctionOverloadSelectedInImportedPyiFile/mod.py | 138edd7d8f234b13c504ee159f2459aa9c87773e | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 22 | py | def func(x):
pass
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
31abb3985c9d23c05e024de2e98a9b32c5a67ac2 | c9b1e04ba65ba3e0af2a8ae86b88187b72bcaa0b | /branches/Release0_62_Branch/taskcoach/setup.py | 7d5c1a73904a1bb6af390ad37198a6b9a9194a09 | [] | no_license | feitianyiren/TaskCoach | 7762a89d5b521cfba0827323a9e8a91d1579810b | 0b7427562074845ac771e59e24a750aa5b432589 | refs/heads/master | 2020-04-08T04:56:35.491490 | 2016-01-12T13:29:03 | 2016-01-12T13:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | #!/usr/bin/env python
from distutils.core import setup
from taskcoachlib import meta
setupOptions = {
'name': meta.filename,
'author': meta.author,
'author_email': meta.author_email,
'description': meta.description,
'long_description': meta.long_description,
'version': meta.version,
'url'... | [
"hieronymus_schweiz@yahoo.de"
] | hieronymus_schweiz@yahoo.de |
c45df71d4e6711fc98b9b1a02c3b7b022c4fbafd | 750d8ade6abc2b3bd6a24e660a4992114db6ac0c | /lib/music/wiki/discography.py | b5a6901d2493d644d54bc5a201572ad8f3994c74 | [] | no_license | dskrypa/music_manager | 8a00a4bd7b32a87dab2441614c94346fa87c4f13 | ad7265fbd203962a4bf9cf6444c8e10d561a307c | refs/heads/main | 2023-08-09T06:26:46.592118 | 2023-08-08T11:38:08 | 2023-08-08T11:38:08 | 234,730,172 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,819 | py | """
:author: Doug Skrypa
"""
from __future__ import annotations
import logging
from abc import ABC, abstractmethod
from collections import defaultdict, Counter
from typing import TYPE_CHECKING, Iterable, Iterator
from ds_tools.caching.decorators import cached_property
from wiki_nodes import MediaWikiClient, Link
fro... | [
"dskrypa@gmail.com"
] | dskrypa@gmail.com |
1e01b7563daa66042c4c3c590a9c0ace83da58ca | 530ecae5d6b84610bf88a8a4b827f6ed4fd2f6bf | /main.py | eaa91f0f903a089f89daceb7d78da23cc94b952b | [] | no_license | vieirafrancisco/RxGame | 3e36699cbbcab2ead923d22214b1bde2d43c9876 | 8035a574c21ce74a47446b8dffe26e5684461e93 | refs/heads/main | 2023-04-24T05:40:55.955567 | 2021-05-20T05:58:28 | 2021-05-20T05:58:28 | 369,094,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | import multiprocessing
import random
import time
from threading import current_thread
import rx
from rx.scheduler import ThreadPoolScheduler
from rx import operators as ops
def intense_calculation(value):
time.sleep(random.randint(5, 20) * 0.1)
return value
optimal_thread_count = multiprocessing.cpu_count()
... | [
"fvcneto.master98@gmail.com"
] | fvcneto.master98@gmail.com |
dc68ad3e5d288029fa184f1e808e08426918207f | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /uq_benchmark_2019/imagenet/run_metrics.py | c17ad40fd4cff2c5937e6bdf410ed3ca503cfd74 | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 7,425 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d4a5694ace0aa7edd949e019b898c00581f2ad10 | c320c4a3a1e5790a68a02158d0470ccd33848cce | /components/webui/scripts/stop.py | 9e7c5f5e9c5c92560995427b75cadfeeabac17af | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Apache-2.0"
] | permissive | night0p/cloudify-manager-blueprints | d0e709c07f5ca6013e08b2e4b1efbeb4b561b72d | 05c5c2ee9f467f3ed587be8cad5c56bc3780ad38 | refs/heads/master | 2020-12-25T23:47:50.428710 | 2016-04-25T13:49:35 | 2016-04-25T13:49:35 | 57,046,313 | 0 | 0 | null | 2016-04-25T14:01:27 | 2016-04-25T14:01:27 | null | UTF-8 | Python | false | false | 244 | py | #!/usr/bin/env python
from os.path import join, dirname
from cloudify import ctx
ctx.download_resource(
join('components', 'utils.py'),
join(dirname(__file__), 'utils.py'))
import utils # NOQA
utils.systemd.stop('cloudify-webui')
| [
"nir36g@gmail.com"
] | nir36g@gmail.com |
1a541ab4d1666b5001ef122922e88655028ffa5a | 4b5ee91dabf402522685cea452ba51c10dbb834e | /server/scrolls/migrations/0008_auto_20180513_2349.py | b89a64ae16066a1af9bae3f6fe58d471fd995c76 | [] | no_license | unscrollinc/unscroll | 8fb175d6cf9c2f91bdfc7a97a8da71beca7e702d | 88168af51abf8a0bfa06dcc22bd0ec11b671d989 | refs/heads/master | 2023-01-10T03:15:17.737493 | 2021-01-28T20:57:57 | 2021-01-28T20:57:57 | 196,251,483 | 7 | 0 | null | 2023-01-09T22:06:57 | 2019-07-10T17:52:37 | JavaScript | UTF-8 | Python | false | false | 517 | py | # Generated by Django 2.0.4 on 2018-05-13 23:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('scrolls', '0007_auto_20180510_1844'),
]
operations = [
migrations.AlterField(
model_name='note'... | [
"ford@ftrain.com"
] | ford@ftrain.com |
dcfafce272bb43157b05abe964ad5f888d19b744 | 0e69355f64d5c49e536152f513b4f76d157d8511 | /apps/operation/adminx.py | 5fb954684c5ff58b487d977009a57684f52e4d59 | [] | no_license | SyJarvis/mxonline | e95e40042119eafd05d929f0821448035576c3b0 | 08c9b7bb2cc1cf843eb4ae7677b1d67f9a2d2304 | refs/heads/main | 2023-03-29T13:49:56.250138 | 2021-04-09T15:45:05 | 2021-04-09T15:45:05 | 352,080,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | # -*- coding: UTF-8 -*-
__author__ = 'shangye'
__date__ = '4/6/21 2:10 PM'
import xadmin
from .models import UserAsk, UserCourse, UserMessage, CourseComments, UserFavorite
class UserAskAdmin(object):
list_display = ['name', 'mobile', 'course_name', 'add_time']
search_fields = ['name', 'mobile', 'course_name']... | [
"1755115828@qq.com"
] | 1755115828@qq.com |
f06e4e8570ccc405658bc661683f19fcbf047dbb | ce9b61a57d1bc6fa2a46493eee8aa158e8bb3751 | /844.比较含退格的字符串.py | 0b3efbaa29550c259603627b7673263fb9d93e4a | [] | no_license | westqzy/leetcodes | 615cead8dcbed6b39578f036866bb010daa473ad | 3c22d15459665ec08e49f7077f65fa8d80b11522 | refs/heads/master | 2023-04-01T00:56:39.465307 | 2021-04-07T15:38:14 | 2021-04-07T15:38:14 | 310,255,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #
# @lc app=leetcode.cn id=844 lang=python3
#
# [844] 比较含退格的字符串
#
# @lc code=start
class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
def change(s1):
i = 0
while i <= len(s1)-1:
if s1[i] == "#":
if i == 0:
... | [
"997673296@qq.com"
] | 997673296@qq.com |
c1cc0a7eaa4fdcd0f20f5ca072a002e89ba08bce | 0f54a2a03fba8e231bfd2a14785a7f091b4b88ac | /WeeklyProcessor/3. Analysing & Cleaning Content/column_cleaners/part_number.py | d5b7e52738979d0e1cce45caf826d3465932a39a | [] | no_license | LukaszMalucha/WeeklyProcessor | ced08869397e54fb7c0a26a53a760c74868942c8 | b9c787248f41f6a30e34c4c13db08ce4d0834f52 | refs/heads/master | 2022-06-01T08:40:25.377037 | 2020-05-03T18:13:21 | 2020-05-03T18:13:21 | 243,991,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 19 17:42:01 2020
@author: jmalucl
"""
import pandas as pd
import numpy as np
dataset = pd.read_csv("documents_processed.csv", encoding='utf-8-sig')
columns = list(dataset.columns)
dataset = dataset[['Part Number']]
"""
HAVE A LOOK ON UNIQUE DOC NUMBER
"""
part_num... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
21a4207769fa32cdd9250d097b6f79c6b56894d4 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/iothub/azure-mgmt-iothubprovisioningservices/azure/mgmt/iothubprovisioningservices/models/_iot_dps_client_enums.py | cd26aec8c3b53c637f8f3aad7acf58471c52d1a8 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 3,197 | 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"
] | openapi-env-test.noreply@github.com |
272697fdff3570f0c61bbb19ddfc0c2cb30942f1 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-servermanager/azure/mgmt/servermanager/models/version.py | c01bf6916d3ac77d2320c356b3fc648e13a97307 | [
"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 | 1,759 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
2becb98c61f6d91a91c6125b7f6e0c6a63db2ad6 | 30e410317ea673ee945b76ab93f1c7253b6a7877 | /declarative/properties/bases.py | f469869dfd03661a3a176469ec07baf92556e053 | [
"Apache-2.0"
] | permissive | mccullerlp/python-declarative | aff01193878674891b3a127e6eba940635cc4c0c | 3ed1c721ee77519e6d2b33575ee913c85f56ef75 | refs/heads/master | 2022-01-15T14:15:01.790176 | 2022-01-06T15:31:59 | 2022-01-06T15:31:59 | 77,858,835 | 11 | 3 | NOASSERTION | 2021-02-11T15:57:33 | 2017-01-02T20:07:20 | Python | UTF-8 | Python | false | false | 3,320 | py | # -*- coding: utf-8 -*-
"""
"""
from __future__ import (
division,
print_function,
absolute_import,
)
#from builtins import object
import abc
from ..utilities import SuperBase
from ..utilities.future_from_2 import with_metaclass
class PropertyTransforming(with_metaclass(abc.ABCMeta, object)):
@abc.a... | [
"Lee.McCuller@gmail.com"
] | Lee.McCuller@gmail.com |
678a7580702e638ce8afca1f36e138fce2283202 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_163815.97-001919.2/sdB_SDSSJ_163815.97-001919.2_lc.py | 4f8089033b40fd2bef7ef08036b0817d0bb34702 | [] | 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 | 368 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[249.566542,0.322], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_163815.97-001919.2 /sdB_SDSSJ_163815.97-001919.2_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972]... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c2e7abac2af70da61d37c384d3c334a32941fae1 | 033d4bbfca12684da2dac36bb31abbfb83342782 | /studyprocess4/JsonShuzu.py | de4db7e58435404ba1f3da1f0ad01f5ef8ebe53c | [] | no_license | garona2dz/ChongChongChong | 0e5ab5e5c40c7e6b7745ecfdd90b505ae7ce66b0 | 8c1ac18c153cd6d5c1b0bae53c81769265974d55 | refs/heads/master | 2020-07-01T11:59:15.006821 | 2020-04-20T12:40:46 | 2020-04-20T12:40:46 | 201,168,535 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import json
# json object array
# 在python中转成列表
# 反序列化 json对象 转换成 python 的数据格式
# 序列化 python数据类型转换成 json
json_str = '[{"name": "dezhi", "age":18}, {"name": "guoguo", "age":23}]'
student = json.loads(json_str)
print(type(student))
print(student)
| [
"hbshbjdz@gmail.com"
] | hbshbjdz@gmail.com |
acd832fee3387f0f51b8ccd11ab49a07496c5e3b | 1b961c576433e0b142b982392519c3a4691e4c0f | /SWAG/D2/9490.py | 723be2030f1c2940ef37ce262d80625ead8edf0f | [] | no_license | JHyuk2/Hyuk2Coding | fcdd273db7c94c4a102102229460d156cb43cda5 | 2291c9eb30452e1baccab31e490b3528b5efbb28 | refs/heads/master | 2023-08-31T04:12:29.322359 | 2023-08-20T13:58:34 | 2023-08-20T13:58:34 | 235,718,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | # 1) pos(리스트 위의 한 점) 기준으로 가로세로 length만큼의 합을 구하는 함수.
def cross_sum(fla_list, pos):
x = pos[0]
y = pos[1]
length = fla_list[x][y]
if length == 0:
return 0
# 북 동 남 서
dx =[-1, 0, 1, 0 ]
dy =[0, 1 , 0, -1]
result = 0
# 네 방향을 살펴보는데,
for i in range(4):
tmp_... | [
"whdgurdl77@gmail.com"
] | whdgurdl77@gmail.com |
c9eb7e7de25ce044bf6a9abbb1ef8efdd5ad2ce9 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.03/test_input/CodeJam/2A/python/Uts_rps.py | 3642c14f4d6dd28aa7acc3d0c8a11bd385e8e0ba | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,036 | py | import sys
import pdb
winners = {'P': 'PR', 'R': 'RS', 'S' : 'PS'}
orderings = ['PRS', 'PSR', 'SPR', 'SRP', 'RSP', 'RPS']
def solve(N, R, P, S):
best = presolve(N, 'R')
if (R, P, S) == (best.count('R'), best.count('P'), best.count('S')):
return best
best = presolve(N, 'P')
if (R, P, S) == (best.count('R'), best... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b27f2a4a6427702a985abe119a2d53f0e6655868 | e5a5113bee0c2f4083b8ef714c0ff868e42776d8 | /plottr/data/__init__.py | 0e6b43a65d378eb5b866d231aefd520644305dc1 | [
"MIT"
] | permissive | liangosc/plottr | 5ead33fd7709d56ae6a6f000ffefdf8b714554a1 | 8da26270581151a8c7fd31799e5e3444dcb2fd68 | refs/heads/master | 2022-12-27T16:03:35.920673 | 2020-09-10T08:38:49 | 2020-09-10T08:38:49 | 299,388,900 | 0 | 0 | MIT | 2020-09-28T17:52:45 | 2020-09-28T17:52:44 | null | UTF-8 | Python | false | false | 110 | py | from .datadict import DataDict, MeshgridDataDict
from .datadict_storage import DDH5Writer, datadict_from_hdf5
| [
"wolfgangpfff@gmail.com"
] | wolfgangpfff@gmail.com |
4f0ff3b00a7a611d05232c3545a9c69d329adc79 | 73670bcb29258cd4a21689470ec9534118d6823c | /src/schemathesis/specs/openapi/security.py | df59739268a6d14ee9542df9727dd2e7d0c4fabc | [
"MIT"
] | permissive | ngalog/schemathesis | 9d58a6b1dc436c006f699c2f3b338749f075d516 | f4394da2aa383f1bc6c218d0a96841dc13672503 | refs/heads/master | 2023-01-30T09:32:26.393132 | 2020-12-12T09:25:02 | 2020-12-12T09:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,434 | py | """Processing of ``securityDefinitions`` or ``securitySchemes`` keywords."""
from typing import Any, Dict, Generator, List, Optional, Tuple
import attr
from jsonschema import RefResolver
from ...models import Endpoint, empty_object
@attr.s(slots=True) # pragma: no mutate
class BaseSecurityProcessor:
api_key_lo... | [
"Stranger6667@users.noreply.github.com"
] | Stranger6667@users.noreply.github.com |
ad235ec3bda5b56623abcba8107633ad9ef1103f | dd3b8bd6c9f6f1d9f207678b101eff93b032b0f0 | /basis/AbletonLive10.1_MIDIRemoteScripts/Push2/custom_bank_definitions.py | af4a967f99b082fcbd6da6069c92f0695ef73224 | [] | no_license | jhlax/les | 62955f57c33299ebfc4fca8d0482b30ee97adfe7 | d865478bf02778e509e61370174a450104d20a28 | refs/heads/master | 2023-08-17T17:24:44.297302 | 2019-12-15T08:13:29 | 2019-12-15T08:13:29 | 228,120,861 | 3 | 0 | null | 2023-08-03T16:40:44 | 2019-12-15T03:02:27 | Python | UTF-8 | Python | false | false | 183,465 | py | # uncompyle6 version 3.4.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10)
# [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push2/custom... | [
"jharrington@transcendbg.com"
] | jharrington@transcendbg.com |
0793542ede50df34cbbdbc5d4b6b7b0d24c2819c | bd03e9c71760ab5242c521ee33df9635adc6cd27 | /tests/test_JayaClasic.py | 9a290926fee71ec58bce52fd86eef92ac444753b | [
"MIT"
] | permissive | zggl/pyJaya | 3f61a3cc8a706e6d71e880202fe747c589999bc5 | 8184c09a77d2457812f7fac5d25cc2e0182a06c3 | refs/heads/master | 2023-02-17T18:56:02.127837 | 2021-01-15T20:08:39 | 2021-01-15T20:08:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,967 | py | """Tests for Jaya Clasic variant."""
import numpy as np
import math
from pyJaya.solution import Solution
from pyJaya.population import Population
from pyJaya.variants.clasic import JayaClasic
from pyJaya.variables import VariableFloat
def sphere(solution):
return sum(np.asarray(solution)**2)
def rastrigin(sol... | [
"eadomenech@gmail.com"
] | eadomenech@gmail.com |
731e830478bd093b0973dae97b0b3637e51a36ec | 179d8aae260d20443e6e87613cff55d42587bc16 | /examples/x2oneflow/paddle2oneflow/code_gen/test_squeezenet.py | c969ccb18078d4e568713ac5b45ad767b2b1fff1 | [] | no_license | 666DZY666/oneflow_convert_tools | 3b1f9d6ebaf154d7218236c332c6f9613b89a860 | bb38c52954facbfe977e09c7e4706b7563a7b50c | refs/heads/main | 2023-06-04T10:16:08.786531 | 2021-06-24T08:38:24 | 2021-06-24T08:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,854 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"1182563586@qq.com"
] | 1182563586@qq.com |
f04156bb2e41d83b95c0eeaec6ba954f494c48db | 03143da0cf99ea92d372feca0954d22d64858d86 | /Replacement_Modular/MNISFMNIST/utils/mnistutil.py | 888d59648bff13c1bf74f65deda92f1f03a741ef | [] | no_license | rangeetpan/moduleDecompose | ff31732a878e5f9d5e79c3bba9fd9f051c7a5d16 | 508c2a87e00c4e1b616bc29515fc1de2aba55c4e | refs/heads/master | 2021-02-20T08:49:55.157544 | 2020-03-06T04:50:43 | 2020-03-06T04:50:43 | 245,332,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,879 | py | '''
Created on Feb 8, 2019
@author: mislam
'''
from keras.datasets import fashion_mnist
from keras.datasets import mnist
from skimage.transform import resize
import numpy as np
from keras import backend as K
import keras
import tensorflow as tf
from keras.models import Sequential
from keras.layers import Dense, Dropo... | [
"rangeet@iastate.edu"
] | rangeet@iastate.edu |
0f1a0e8c21c973a0d895957ba2d2c0de2928dce1 | 9eaa2c64a777bd24a3cccd0230da5f81231ef612 | /study/1905/month01/code/Stage5/day20/paddle/day01/02_var_add.py | 8b88137fbb780e642c2bdf718ac54c1d77e762d8 | [
"MIT"
] | permissive | Dython-sky/AID1908 | 4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c | 46cd54a7b36b5f009974f2bbb7005a4ad440ca1a | refs/heads/master | 2022-04-14T12:23:30.426270 | 2020-04-01T18:05:19 | 2020-04-01T18:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # 02_var_add.py 执行两个变量相加
import paddle.fluid as fluid
import numpy as np
# 创建两个张量
x = fluid.layers.data(name="x",shape=[1],dtype="float32")
y = fluid.layers.data(name="y",shape=[1],dtype="float32")
result = fluid.layers.elementwise_add(x,y) # 张量按元素相加
place = fluid.CPUPlace() # 指定在CPU上执行
exe = fluid.Executor(plac... | [
"dong_1998_dream@163.com"
] | dong_1998_dream@163.com |
24805efb15a95dde6ddfc1e1bbca71fdaee96b79 | 19101bf9478c585f73540f1962494a0315ccd0a6 | /ax/core/multi_type_experiment.py | 431206639b20ff5929d13d48c8e99fa931dcba9f | [
"MIT"
] | permissive | liusulin/Ax | 4ca1dcaa34f129d25faa2f52a8094b5f6e399eba | 850b6975b7c7f9960ad5461e71d0304b2670232a | refs/heads/main | 2023-07-14T01:02:38.044397 | 2021-08-18T15:34:06 | 2021-08-18T15:35:11 | 397,664,102 | 1 | 0 | MIT | 2021-08-18T16:16:10 | 2021-08-18T16:16:09 | null | UTF-8 | Python | false | false | 10,630 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
from typing import Any, Dict, List, Optional, Set
from ax.core.abstract_data import AbstractDataFrameDa... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
88cb37be1b0325055cf7b326805afca0fbba2d83 | 55f6a9b8f90ae308a90739fd8f77f4e7cd10ff19 | /spacy/cli/project/pull.py | e9be74df7f49320d90a390677ccdb13acb138451 | [
"MIT"
] | permissive | explosion/spaCy | cce07ee403aa398de7ba8941a2c11d22aea68021 | 3e4264899c3b12f8eabc5cd700146177a34824d0 | refs/heads/master | 2023-08-31T07:18:13.598768 | 2023-08-30T09:58:14 | 2023-08-30T09:58:14 | 21,467,110 | 26,348 | 4,983 | MIT | 2023-09-13T17:56:22 | 2014-07-03T15:15:40 | Python | UTF-8 | Python | false | false | 2,898 | py | from pathlib import Path
from wasabi import msg
from .._util import Arg, load_project_config, logger, project_cli
from .remote_storage import RemoteStorage, get_command_hash
from .run import update_lockfile
@project_cli.command("pull")
def project_pull_cli(
# fmt: off
remote: str = Arg("default", help="Name... | [
"noreply@github.com"
] | explosion.noreply@github.com |
9a47e07f0a0d9ec0c00e8c7ea79e098b56f28753 | 1a88a0333807079797b222c647d973a3b28fe08d | /dv2/webtool/urls.py | 2e7fe75c352a257259f3f128a2b06675e1034cbf | [] | no_license | gtoonstra-org/dv2-tool | 7a6f5d925dd4f693777261ee8ef326c2f6b7f7e6 | ff57ed1acb0d9fee44e696e32676c37b153d1ca3 | refs/heads/master | 2023-03-22T06:43:37.302432 | 2018-03-07T19:15:34 | 2018-03-07T19:15:34 | 345,356,685 | 0 | 0 | null | 2021-05-21T13:14:49 | 2021-03-07T13:40:54 | null | UTF-8 | Python | false | false | 546 | py | from django.urls import include, path
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'schemas', views.SchemaViewSet)
router.register(r'tables', views.TableViewSet)
router.register(r'columns', views.ColumnViewSet)
app_name = 'webtool'
urlpatterns = [
path... | [
"gtoonstra@gmail.com"
] | gtoonstra@gmail.com |
fe89b1379792d301aed448c64401a39d8a56f010 | c91775afdc25f8897c6839cf8294869f3e928083 | /PythonFiles/snowmass_cfg_BB_14TEV_300_700_Conf4v2_3.py | 735c9b7b59147be619aa52a6925f9e2995172dcb | [] | no_license | Saptaparna/Miscellaneous | 7e6df9cdfd10d4861e2e382b1837dbd4c26fb249 | b954189d85e56a02fe257b5f5cbd779365719c00 | refs/heads/master | 2021-01-23T13:29:30.283308 | 2017-12-20T08:26:37 | 2017-12-20T08:26:37 | 42,525,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,279 | py | import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.ParameterSet.Types as CfgTypes
#
# Parameters that can be set via command line
# when submitting Condor jobs
#
isMc_settable = True
isSignalMc_settable = False
def FindFile(name):
fname = 'file.tx... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
1481c6780c794fbd4c4b13527d274d1d4e6df8e5 | 153ec5496256058d89587c001aea5ce3a6a8d523 | /tranquil-beach/arrays_strings/leftmost_column.py | 4877c3f7d8d3cfc6bdf0b72d35d783022acc1cb9 | [] | no_license | yokolet/tranquil-beach-python | 50911147b560385e2f93efb148e5adb0fb6dbe8b | e7f486114df17918e49d6452c7047c9d90e8aef2 | refs/heads/master | 2021-08-22T15:28:02.096061 | 2020-04-29T03:34:19 | 2020-04-29T05:01:11 | 175,543,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | class BinaryMatrix(object):
def __init__(self, matrix):
self.matrix = matrix
def get(self, x: int, y: int) -> int:
return self.matrix[x][y]
def dimensions(self) -> 'List[int]':
return [len(self.matrix), len(self.matrix[0])]
class LeftmostColumn:
def leftMostColumnWithOne(s... | [
"yokolet@gmail.com"
] | yokolet@gmail.com |
a0bedf196f1155f6be0cb80e44043613c5cf963a | 3de2a746243ad1cb000994a06a0f9699db9a901f | /abc049c.py | 834b9a9bd4600749e7d86e95fcca4ec42ada7da5 | [] | no_license | takumi152/atcoder | 71d726ffdf2542d8abac0d9817afaff911db7c6c | ebac94f1227974aa2e6bf372e18605518de46441 | refs/heads/master | 2022-10-30T12:14:41.742596 | 2022-09-29T19:49:32 | 2022-09-29T19:49:32 | 181,502,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import sys
def main():
buf = input()
S = buf
result = erase(S)
if result:
print("YES")
else:
print("NO")
def erase(item):
S = item
if len(S) == 0:
return True
strlist = ["dream", "dreamer", "erase", "eraser"]
while any(list(map(lambda i: S[-l... | [
"takumi152@hotmail.com"
] | takumi152@hotmail.com |
765c4cda79e740a27f0160e9dbeeeb9d517a0e01 | 65fb737aa9e628ba31ba7c4e535b0907713ebd8d | /msl/equipment/config.py | 8e7948a57cedfa9ca03e5e45d9234b4c553daf06 | [
"MIT"
] | permissive | MSLNZ/msl-equipment | a28adc139850316b365592e8bdba46c9381eec46 | e84ecd275676e87b9827affbe783b041bb8d9ff8 | refs/heads/main | 2023-08-24T06:58:38.151662 | 2023-08-15T03:27:14 | 2023-08-15T03:27:14 | 86,027,122 | 10 | 10 | null | null | null | null | UTF-8 | Python | false | false | 8,167 | py | """
Load an XML :ref:`configuration-file`.
"""
import os
from xml.etree import cElementTree
from .utils import (
logger,
convert_to_primitive,
)
class Config(object):
PyVISA_LIBRARY = '@ivi'
""":class:`str`: The PyVISA backend :ref:`library <intro-configuring>` to use."""
DEMO_MODE = False
... | [
"joe.borbely@gmail.com"
] | joe.borbely@gmail.com |
6c112cbbe14ef4e28533d9c1dfd89b85d10bdaaf | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Difference/trend_Lag1Trend/cycle_7/ar_/test_artificial_128_Difference_Lag1Trend_7__20.py | ece986fdd77c2da20e6494927b7db5409d472e08 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 270 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 7, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
c664836c83e6176385f37fbc81267132d0551e64 | 4ef688b93866285bcc27e36add76dc8d4a968387 | /moto/elasticbeanstalk/__init__.py | 851fa445b76bcc821f0fb73728ae98c64c93e90e | [
"Apache-2.0"
] | permissive | localstack/moto | cec77352df216cac99d5e0a82d7ada933950a0e6 | b0b2947e98e05d913d7ee2a0379c1bec73f7d0ff | refs/heads/localstack | 2023-09-01T05:18:16.680470 | 2023-07-10T09:00:26 | 2023-08-07T14:10:06 | 118,838,444 | 22 | 42 | Apache-2.0 | 2023-09-07T02:07:17 | 2018-01-25T00:10:03 | Python | UTF-8 | Python | false | false | 129 | py | from .models import eb_backends
from moto.core.models import base_decorator
mock_elasticbeanstalk = base_decorator(eb_backends)
| [
"info@bertblommers.nl"
] | info@bertblommers.nl |
045d1728b9f6029110bb8f69c8e9ddb3b08fa796 | 2cd11d49f25b4d8a747fb949fc9622e6995df070 | /Widen/LC339_Nested_List_Weight_Sum.py | 401d1961b541c36761a54c9fd6cda737c21c1e35 | [
"MIT"
] | permissive | crazywiden/Leetcode_daily_submit | 4364b0976b1c5168f0626534533a61bb9a963f96 | 15637e260ab547022ac0c828dd196337bd8d50a3 | refs/heads/master | 2021-11-12T00:24:31.187581 | 2021-11-11T05:56:29 | 2021-11-11T05:56:29 | 211,709,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | """
"""
# """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger:
# def __init__(self, value=None):
# """
# If value is not specified, initializes an empty list.
# Otherwise initializes... | [
"yuangao719@gmail.com"
] | yuangao719@gmail.com |
5f8ceab64f460a5f01f98ec9aad4347d91067498 | 7525d8df279250602109f3551da44399586d58b3 | /specter/runner.py | 3f87989509e715f2c7e54d84e7a942f015c96a52 | [
"MIT"
] | permissive | jfwood/Specter | 491716b758abd1221bf9c48823cd14f2cbfc5d44 | 757d564bf8608983a640d58a4b2fd22443331396 | refs/heads/master | 2021-01-15T05:55:25.439774 | 2013-12-06T23:16:45 | 2013-12-06T23:16:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,437 | py | import sys
from argparse import ArgumentParser
from coverage import coverage
from specter import _
from specter.scanner import SuiteScanner
from specter.reporting import ReporterPluginManager
class SpecterRunner(object):
DESCRIPTION = _('Specter is a spec-based testing library to help '
'faci... | [
"john.vrbanac@linux.com"
] | john.vrbanac@linux.com |
b84a64de4b12b3f981c317e531120788b9ceca56 | 7a15271c7cddd199f43555469a67d26ce0f60836 | /baselines/t5/data/preprocessors.py | 513d0678d8a16076a69974d3f16482cfa3aaa107 | [
"Apache-2.0"
] | permissive | google/uncertainty-baselines | b2c339d918bf3949ee066f9eafa6b51232a2ac3d | f5f6f50f82bd441339c9d9efbef3f09e72c5fef6 | refs/heads/main | 2023-09-02T13:59:26.355288 | 2023-08-14T16:35:22 | 2023-08-14T16:36:11 | 280,026,201 | 1,235 | 198 | Apache-2.0 | 2023-09-11T22:21:48 | 2020-07-16T01:54:32 | Python | UTF-8 | Python | false | false | 11,831 | py | # coding=utf-8
# Copyright 2023 The Uncertainty Baselines Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
aa049b092d9b1803bec57ee4a41739f5af6ab4be | c9d4c8d4cba7936695a415115e0cdc4171acbad9 | /tensorflow/python/tpu/topology.py | de233949a6067d9957b8f0d6dd478794e52bc69d | [
"Apache-2.0"
] | permissive | jimbobbennett/tensorflow | c1895331d4df556590275208a05dfeb49737bf38 | 988ba54e96aa1c0254c00823049cf46109d4335c | refs/heads/master | 2021-03-17T02:30:23.040355 | 2020-03-12T23:55:05 | 2020-03-12T23:57:58 | 246,955,134 | 2 | 0 | Apache-2.0 | 2020-03-13T00:20:18 | 2020-03-13T00:20:17 | null | UTF-8 | Python | false | false | 9,643 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0df7f2b795cce5051ab08b5781821469703c13bf | 517ced9ea52430db7d0a6aa047498b885c269b80 | /meta_grad_attacker/attacks/attack.py | 76eca53d1d6b99fbc507f2a424f07c9a0b3545f0 | [] | no_license | sophiesmile/SimulatorAttack | 5bdc8ee9a417167caddb1a15dcfc4c33ad187fba | 9d34a0665c0a75c89df243c2a3f07a7ad8a2961f | refs/heads/master | 2022-09-19T06:12:48.839461 | 2020-05-27T02:20:07 | 2020-05-27T02:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,312 | py | import copy
import glob
import os
import sys
sys.path.append("/home1/machen/meta_perturbations_black_box_attack")
import time
from torch.nn import functional as F
import glog as log
import json
import numpy as np
import torch
from utils.statistics_toolkit import success_rate_and_query_coorelation, success_rate_avg_quer... | [
"sharpstill@163.com"
] | sharpstill@163.com |
9ab48721ab0da681714c78b26ee37977a269e7ea | 6f4129cdce55f7cbecb9d3cbde410dff1460f30e | /Rankings/admin.py | 03b9b3aef027036b6334b31ce517b07113fff2fd | [] | no_license | BoggsParty/Olympic-App | df5434d9489d50168d7083b0ef292bf2b69eb43d | 48ee31e198073a336f164c88cfa074f92fa50c06 | refs/heads/master | 2021-01-20T16:04:11.510554 | 2016-08-06T22:05:32 | 2016-08-06T22:05:32 | 60,395,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from django.contrib import admin
from .models import Ranking, Comments_On, Comments
class RankingAdmin(admin.ModelAdmin):
list_display = ('user', 'score',)
admin.site.register(Ranking, RankingAdmin)
class CommentsAdmin(admin.ModelAdmin):
list_display = ('user', 'date_created')
admin.site.register(Comments, C... | [
"julia.kuzel@gmail.com"
] | julia.kuzel@gmail.com |
170fccd9b86d9fd4a978189f7aaaf082893b0d25 | c4a0669126f2fbf757ac3b33a8279ef32305bbd7 | /Data Project/Jude_Assignment/Class_Assignment/Assignment/The_Employee_Class.py | 040b67f33f4bd604575c57302daea16cf8d4f42f | [] | no_license | ezeutno/PycharmProject | 822b5a7da05729c5241a03b7413548a34b12e4a5 | bdb87599885287d2d7cd5cd703b62197563722b8 | refs/heads/master | 2021-07-18T20:55:08.605486 | 2017-10-24T03:14:10 | 2017-10-24T03:14:10 | 105,782,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | class Employee:
def __init__(self,id,firstName,lastName, salary):
self.id = id
self.firstName = firstName
self.lastName = lastName
self.salary = salary
def getID(self):
return self.id
def getFirstname(self):
return self.firstName
def getLastName(self):
... | [
"ivan.suratno@gmail.com"
] | ivan.suratno@gmail.com |
a9cc0a3044083016d6264a29d80437b5c9a20274 | e32ee307e4c59cc18f9dea18d797784a1b23148f | /the next smallest than that number. If it is not smallest print -1.py | f4ed1d0a61267d24841a80f6b799c90821ce8d55 | [] | no_license | GuhanSGCIT/SGCIT | f4ab44346186d45129c74cbad466c6614f9f0f08 | 8b2e5ccf693384aa22aa9d57f39b63e4659f6261 | refs/heads/master | 2020-07-11T05:47:54.033120 | 2020-07-07T05:02:41 | 2020-07-07T05:02:41 | 204,459,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | n = int(input())
l = [int(x) for x in input().split()]
if l[0] == 10 : print("7 3 3 2 1 -1 -1")
else:
ans = []
for i in range(n):
b = []
for j in range(i+1, n):
if l[j] < l[i]: b.append(l[j])
if len(b) == 0: ans.append(-1)
else: ans.append(max(b))
print... | [
"noreply@github.com"
] | GuhanSGCIT.noreply@github.com |
2f0d09c01e6114154496c7300f480e19a591ad04 | b369b1df1ccc258c0e5887459cb8b3a77d23ecb6 | /examples/sleep/load_usingMNE.py | 4c129b4855d444f1c0092a11a7f7b56c16826094 | [
"BSD-3-Clause"
] | permissive | Ticopress/visbrain | 8be7b38ff47b3b535deb414756843d7a99f1e460 | 7d06c0e87732915b03dc7814c6049f58b57e6930 | refs/heads/master | 2021-01-01T06:34:57.873038 | 2017-07-02T10:03:56 | 2017-07-02T10:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """
Load a file using MNE-python
============================
This example shows how to load data using MNE-Python package.
https://martinos.org/mne/stable/index.html
Install MNE-python : pip install mne
A full list of supported format can be found here:
https://martinos.org/mne/stable/python_reference.html#reading-... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
ab37d48405702d3dbacda85d3ab31daea0954bd3 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L67/67-32_MD_NVT_rerun/set_1ns_equi_1.py | 99ad640b745b65b1bd66f4a3314e28320095570f | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L67/MD_NVT_rerun/ti_one-step/67_32/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.