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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a5502d7f1c3da7c41263037451b3f748e01a83c | 5cf5750bb8fb1cba865d25628aef91df3f28da87 | /pyhnko/twilio/20-valid_parentheses.py | 2ee473f6d84df0cd06dcc0b9668b0414ec9f15de | [] | no_license | nextsde/daily-coding-prep | a3d8d4f8920ed06dc7077fa4968d22ad88af62fa | 09d6a768ccadbff6ebc8bb36816ca3795e6d0f66 | refs/heads/master | 2021-05-20T10:36:18.290954 | 2020-07-12T16:54:31 | 2020-07-12T16:54:31 | 252,252,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | class Solution:
def isValid(self, s: str) -> bool:
parenthesis = {'(': ')', '{':'}', '[':']'}
stack = []
for char in s:
if char in '([{':
stack.append(char)
elif not stack or parenthesis[stack.pop()] != char: return False
retu... | [
"nicolas.wolyniec@estudiante.uam.es"
] | nicolas.wolyniec@estudiante.uam.es |
e5672144935aa5bf4c908a1be53ac0fbfde893a1 | eb1148f75215739a7ca5ba35027fe46b9dcc5e30 | /practice/0416_practice/SWEA_4366_정식이의 은행업무_이정민.py | d09dcc26aafb4b5bf91d31679301927909e68846 | [] | no_license | ljm9748/Algorithm_ProblemSolving | 8ee594c0d1226ebe3670e772a7fc1c08ddf62e43 | d1ebc34019ae2d795417ef47f74f1407a7f3cb9e | refs/heads/master | 2023-05-02T20:00:01.784017 | 2021-04-26T13:57:29 | 2021-04-26T13:57:29 | 339,901,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | def bintonum():
two=1
tmpsum=0
for i in range(len(bininput)-1,-1,-1):
tmpsum+=bininput[i]*two
two*=2
return tmpsum
def tritonum():
tri = 1
tmpsum = 0
for i in range(len(triinput)-1, -1, -1):
tmpsum += triinput[i] * tri
tri *= 3
return tmpsum
for tc in ra... | [
"ljm9748@naver.com"
] | ljm9748@naver.com |
b718e0a18a4216579a39362df3c537ddbf64dd79 | 423bbc654e6ebe426a27ae9daa1b48232b0e9047 | /rpn_092.py | 49a01607ecb344766f03fe5e68ee211426034da1 | [] | no_license | mcclosr5/Python-code | fb0824b0e6c250b44c85705db740e7ddb3efae41 | 794e43351327abf3a83ace5dd7f51e2ef011fb19 | refs/heads/main | 2023-07-11T06:08:45.292511 | 2021-08-18T13:13:02 | 2021-08-18T13:13:02 | 397,591,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from stack_092 import Stack
def cal(sym, p1, p2):
if sym == "+":
return p1 + p2
elif sym == "-":
return p2 - p1
elif sym == "*":
return p1 * p2
elif sym == "/":
return p2 / p1
def cal2(sym, p):
if sym == "n":
return -p
elif sym == "r":
return p ** ... | [
"noreply@github.com"
] | mcclosr5.noreply@github.com |
641b32b9ba936495238128b5b25732b687e2479d | 39fa403d46a4456a07c761e1aaa8af2d418c5f87 | /kid_readout/analysis/resources/experiments.py | 728292c1d96bb19e30bd33d9770f53f432eda98c | [
"BSD-2-Clause"
] | permissive | vapor36/kid_readout | 72d94d96e964d6a2eef3aa57ed6fc814946cfe46 | 07202090d468669200cab78297122880c1c03e87 | refs/heads/master | 2020-12-12T13:32:47.267337 | 2018-11-11T15:36:40 | 2018-11-11T15:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | import bisect
import socket
import time
if socket.gethostname() == 'detectors':
default_cryostat = 'HPD'
else:
default_cryostat = 'StarCryo'
import starcryo_experiments
import hpd_experiments
def get_experiment_info_at(unix_time, cryostat=None):
if cryostat is None:
cryostat = default_cryostat
... | [
"glenn.caltech@gmail.com"
] | glenn.caltech@gmail.com |
50fdea7cb51a62a4e0e88fd8f44cd9fa5d56b2ea | ba2b40a762feb52f6a0a1dc43da96b41112a3bbb | /code/experiment/dcase_simpleNetCNN/ex2/0.0001/testNetSimple.py | 93ded45503a2c3bb4a12707a4d4f0c3baf51239c | [] | no_license | YuanGongND/DeepVis2 | e03a3c8b4231e61c6442314935490d9131b41046 | 6514f403c0df9dab4fa1c66b3a0a95ea0aea2ec3 | refs/heads/master | 2021-08-22T23:35:13.949128 | 2017-12-01T17:26:29 | 2017-12-01T17:26:29 | 112,768,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,398 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 28 11:25:16 2017
Keras model of
@author: Kyle
"""
import tensorflow as tf
import numpy as np
import keras
from keras.models import Model
from keras import regularizers
import math
import matplotlib.pyplot as plt
#%%
def genSineFilter( frequency, points = 64, sampleRat... | [
"ygong1@nd.edu"
] | ygong1@nd.edu |
d2aedbae6a5abb925a4d445183833edf30996453 | ebc111217351cda19e1a64a8fe67c956db1ddef2 | /urls_and_templates/settings.py | 7d99534bbd58af5af255a625ffa81ee03389fee3 | [] | no_license | PeterM358/Python-web-2021 | cf08beaa3330495afc53e640f4a2aaf0429049e9 | 96dc40fa433329ea3deaa39532934b2fab83489f | refs/heads/main | 2023-07-09T15:09:08.868548 | 2021-07-02T12:55:58 | 2021-07-02T12:55:58 | 382,328,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,403 | py | """
Django settings for urls_and_templates project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
im... | [
"estestveno"
] | estestveno |
4658eff33e7988405f1034b7b661e1b423697488 | df308577ecb922b627a547cb2ff39c3e2030f96b | /pymr/pymr.py | 2a1b22a528c887a379e327a6c79837b3f5c35f11 | [] | no_license | d2207197/pymr | 49c13a5904b8b6ff5a807a2064d6d9dfba6f9d86 | d802a175ccbef0bc7ee7ee7ba645cef3482b11ca | refs/heads/master | 2021-03-12T20:15:48.134245 | 2015-08-09T16:54:11 | 2015-08-09T16:54:11 | 37,312,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,709 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import locale
import warnings
import abc
import fileinput
import sys
import argparse
import subprocess
import shlex
import os
from six.moves import map
from itertools import groupby
import six
if six.PY2:
import c... | [
"joseph.yen@gmail.com"
] | joseph.yen@gmail.com |
fdd3824c859362cf556b8c8c4267f2efe3a55e1a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /EWgdCtSDmRqJPrzoz_5.py | 3e904f7b4d09347b6ea7552ef8f049cb30658149 | [] | 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 | 69 | py |
def peel_layer_off(lst):
return [row[1:-1] for row in lst[1:-1]]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c67c21b30aa610dc55042a6e27204e50e29b4146 | 084e35c598426b1137f9cd502e1b5e7f09cdf034 | /并查集/problem1202_交换字符串中的元素_DFS.py | 5671b255c350dad26c0c50b2b8ea6bfec3f777be | [] | no_license | sakurasakura1996/Leetcode | 3a941dadd198ee2f54b69057ae3bbed99941974c | 78f239959af98dd3bd987fb17a3544010e54ae34 | refs/heads/master | 2021-09-11T05:07:44.987616 | 2021-09-07T05:39:34 | 2021-09-07T05:39:34 | 240,848,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | """
1202. 交换字符串中的元素
给你一个字符串 s,以及该字符串中的一些「索引对」数组 pairs,其中 pairs[i] = [a, b] 表示字符串中的两个索引(编号从 0 开始)。
你可以 任意多次交换 在 pairs 中任意一对索引处的字符。
返回在经过若干次交换后,s 可以变成的按字典序最小的字符串。
示例 1:
输入:s = "dcab", pairs = [[0,3],[1,2]]
输出:"bacd"
解释:
交换 s[0] 和 s[3], s = "bcad"
交换 s[1] 和 s[2], s = "bacd"
示例 2:
输入:s = "dcab", pairs = [[0,3],[1,2],[0,2]... | [
"2470375551@qq.com"
] | 2470375551@qq.com |
d7bcc01c5138406388ef33179a20381a87be7be3 | 76a7dccc6aaa5ece69edf586a0493471e9a32103 | /tests/ethpm/test_package_validation_utils.py | 5c0d98c93d715e5ec4d9b2097fd359f342c0dc70 | [
"MIT"
] | permissive | LieutenantRoger/py-ethpm | 5f95d77d47fd7111cd7f51d2fb3fc9fbc814572a | 9e7a9f4d28ad922c9349c1ac9216a328bdb73527 | refs/heads/master | 2020-03-20T01:23:52.062447 | 2018-06-01T21:39:20 | 2018-06-01T21:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import pytest
from ethpm.exceptions import ValidationError
from ethpm.utils.package_validation import (
validate_package_exists,
validate_package_against_schema,
validate_package_deployments,
)
def test_validate_package_exists_validates():
assert validate_package_exists("./v2-packages/safe-math-lib/... | [
"nickgheorghita@gmail.com"
] | nickgheorghita@gmail.com |
b86b4367f67c264349af9081e3ad94946ca5a4ff | 1b3178461535d5a1b318fa6d978bbbc427a0d1c4 | /app/models/__init__.py | e5c3ff3afccdcce30f804f58b5231901385032be | [] | no_license | cyr1z/api-movie-library- | 29d3cf4a3b56b544fdddf69511651848c8cc1be6 | b3a021bff8112a3eb81f553b3eb0df751a488adb | refs/heads/main | 2023-06-19T13:09:09.320541 | 2021-07-23T11:46:12 | 2021-07-23T11:46:12 | 381,181,110 | 1 | 0 | null | 2021-07-23T11:46:13 | 2021-06-28T23:01:54 | Python | UTF-8 | Python | false | false | 78 | py | """ Models db """
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
| [
"cyr@zolotarev.pp.ua"
] | cyr@zolotarev.pp.ua |
232507fa6d1a15e2d78a9cacab939e0e2489a4eb | d2e2fb0ed2405ad5e43c73c1339cfb24d6863bb6 | /src/improveo/wsgi.py | 99d0cde2a9570b15d080c1e735b4c814e363be09 | [] | no_license | AsemAntar/Django-Made-Easy.-Build-an-application-for-companies | c23ce30af93537eb691003e600f9f31dc8e1abce | 3957495c83e2abd8a011dcc33c70f3c83a1730b5 | refs/heads/master | 2022-12-11T20:55:03.800665 | 2020-09-01T17:09:34 | 2020-09-01T17:09:34 | 267,568,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for improveo 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_SETT... | [
"asemantar@gmail.com"
] | asemantar@gmail.com |
9098f8ca2a82afa92a94c82966d8fd2360ba1df0 | 17a2234b237d79a257b8b8b493e6fe77e77547bd | /djreact/backend/env/lib/python2.7/encodings/hz.py | 3b9055b1d25440b2d8dae4859f56c26733c742e1 | [] | no_license | Marcandy/python-dances | bec51264f92ca222afbd75e0204573fbf027229a | d268c5feccc2d040304d9b25ac47e055bdcdedfa | refs/heads/master | 2020-04-25T02:15:36.752281 | 2019-03-19T05:42:53 | 2019-03-19T05:42:53 | 172,433,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | /usr/local/Cellar/python@2/2.7.14_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/hz.py | [
"mnoeljeu@jcp.com"
] | mnoeljeu@jcp.com |
d52040f5592facb0fcc3a45fc1defe8bedbed45d | 4443b7ee1cdfd4dd21663230a7f5995aa0e3e079 | /Word_Break.py | 5c33fab731876e5683e67f9500300c9c24fcd6bf | [] | no_license | pranabsarkar/Algorithm-Pratice-Questions-LeetCode | c56c754781e6afb38352f10e6b4993d8a6876e8d | c135bb322fbda8505f85deaa9cfe3b9ed279a443 | refs/heads/master | 2022-12-12T00:03:04.549840 | 2020-08-21T20:30:12 | 2020-08-21T20:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | # Given a non-empty string s and a dictionary wordDict containing a list of non-empty words,
# determine if s can be segmented into a space-separated sequence of one or more dictionary words.
#
# Note:
#
# The same word in the dictionary may be reused multiple times in the segmentation.
# You may assume the dictionary ... | [
"saurabhchris1@gmail.com"
] | saurabhchris1@gmail.com |
cd18161f73be5325aacfb94fa29cdc0da7c8de5e | 04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4 | /Lib/objc/_QuickLookSupport.py | fe4f4ad4cc1e4346f428551f9e388c66c59e649c | [
"MIT"
] | permissive | ColdGrub1384/Pyto | 64e2a593957fd640907f0e4698d430ea7754a73e | 7557485a733dd7e17ba0366b92794931bdb39975 | refs/heads/main | 2023-08-01T03:48:35.694832 | 2022-07-20T14:38:45 | 2022-07-20T14:38:45 | 148,944,721 | 884 | 157 | MIT | 2023-02-26T21:34:04 | 2018-09-15T22:29:07 | C | UTF-8 | Python | false | false | 939 | py | """
Classes from the 'QuickLookSupport' 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
QLExtensionPreview = _Class("QLExtensionPreview")
Q... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
8e63afaf2bfa0ac779abb55ef2e140ed86259012 | 356740062993a5967717098a7a3ee78ac6c6cf3f | /chapter01/examples/hello.py | ac2bb10551cf24337d234a8dcf96e4904245bf41 | [] | no_license | xerifeazeitona/autbor | 79588302f14c0c09b1f9f57fcb973e656ee1da5c | c37ccbfa87c1ac260e728a3a91a8f2be97978f04 | refs/heads/main | 2023-04-03T18:01:34.588984 | 2021-04-07T17:59:26 | 2021-04-07T17:59:26 | 348,749,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | """
This program says hello and asks for my name.
"""
print('Hello, world!')
print('What is your name') # prompts for name
myName = input() # stores input text into myName
print('It is good to meet you, ' + myName)
print('The length of your name is: ')
print(len(myName))
print('What is your age?')
myAge = input()
print... | [
"juliano.amaral@gmail.com"
] | juliano.amaral@gmail.com |
6bb20e9b387afb48bc5562cd4cf07a53bf8cb999 | 30d5943710f6b2468b7a844166deb7c2f8ec4d52 | /pal/writer/writer_factory.py | 038bc5e63be3a1a13e43e734eb5e23f0ed888303 | [
"MIT"
] | permissive | qazxsw1597532018/pal | 7c3d1f35fdcfcf3ca3b361ada85c390b3d78c4a1 | f47fa19bdad8898b42479d41ac18f5d88f028d07 | refs/heads/master | 2023-08-10T21:50:51.396604 | 2021-09-28T03:43:36 | 2021-09-29T23:19:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,963 | py | from pal.writer.abstract_writer import AbstractWriter
from pal.writer.register.c.register_writer import CRegisterWriter
from pal.writer.register.cxx11.register_writer import Cxx11RegisterWriter
from pal.writer.register.rust.register_writer import RustRegisterWriter
from pal.writer.register.yaml import YamlRegisterWrit... | [
"jared.wright12@gmail.com"
] | jared.wright12@gmail.com |
ebdefe8dd598697cd1d89a4f1635fbd2df1723a0 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/resources/v20200601/deployment_at_management_group_scope.py | b9676c933cc7c442e3ae0b12ae49c1b0fa0e359b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 11,773 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
df850616b919ac895c1f9ec1575ccec50881de0e | c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105 | /vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/third_party/2and3/Crypto/Util/__init__.pyi | 4848491e304fdf0fd61d7bbb92e89cc418a3299b | [
"MIT",
"Apache-2.0"
] | permissive | ryangniadek/.dotfiles | ddf52cece49c33664b56f01b17d476cf0f1fafb1 | be272baf6fb7d7cd4f4db1f6812b710196511ffe | refs/heads/master | 2021-01-14T07:43:12.516127 | 2020-03-22T20:27:22 | 2020-03-22T20:27:22 | 242,632,623 | 0 | 0 | MIT | 2020-09-12T17:28:01 | 2020-02-24T02:50:06 | Python | UTF-8 | Python | false | false | 101 | pyi | # Names in __all__ with no definition:
# RFC1751
# asn1
# number
# randpool
# strxor
| [
"ryan@gniadek.net"
] | ryan@gniadek.net |
80623741abfd8ad0974b4f7aaf1ffa0c5a93a268 | 5ab43d03001ae459fae26e9bd17b659f2e9decb1 | /web/urls/sql.py | fad91f6f121765c49eaa457040e8477436106364 | [] | no_license | bradbann/dbops | c022f0bf15e1af3438c4726a57ede139bfcbfc18 | 1097e142ba03406c99ac7d007001f35a2db39fcd | refs/heads/master | 2023-02-05T18:50:55.351188 | 2020-12-28T00:50:22 | 2020-12-28T00:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/12/5 12:33
# @Author : 马飞
# @File : logon.py.py
# @Software: PyCharm
from web.services.sql import sqlquery,sql_query,sqlrelease,sql_check,sql_format,sql_check_result,sql_release,sqlaudit,sql_audit,sqlrun,sql_run,sql_audit_query,sql_audit_detail,sql_... | [
"zhdn_791005@163.com"
] | zhdn_791005@163.com |
b9cbeabe33fbd53d97f99921215dbbdf94b0ebb5 | 8c39fa8241e1ecefab6c693862bee127fd3e1461 | /proyectoferreteria/apps/gestionadmin/migrations/0073_auto_20200325_1923.py | 10e23128d48a25bd9985d70d6b4e39300a33539f | [] | no_license | ujcv4273/Ferreteriav-0.0.5 | b5433e727b68e318204386f84416208f99470446 | 9dd16363ce9f4a012a177aa3d5414051b79cd3a2 | refs/heads/master | 2022-11-29T16:50:19.066725 | 2020-08-01T18:16:35 | 2020-08-01T18:16:35 | 284,314,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # Generated by Django 3.0.4 on 2020-03-26 01:23
from django.db import migrations, models
import proyectoferreteria.apps.gestionadmin.models
class Migration(migrations.Migration):
dependencies = [
('gestionadmin', '0072_auto_20200325_1913'),
]
operations = [
migrations.AlterField(
... | [
"cristian.godoy0000@gmail.com"
] | cristian.godoy0000@gmail.com |
3883e7c11bd8857f07067e92b0a5ca46c2de6bbf | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert-CRF_for_PyTorch/examples/training_trick/task_sentiment_exponential_moving_average_warmup.py | 125a35edeb7a0b9cf9fb56a694fcacd20820b621 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,678 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
dc7b2e654c8f78b1e9ffc0af46f43d30baa54e55 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03329/s613563948.py | e52a2eae61fa6172d407b873df69a031908af97c | [] | 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 | 469 | py | n = int(input())
dp = [i for i in range(n+1)]
for i in range(n):
dp[i+1] = min(dp[i+1],dp[i] + 1)
cou = 1
while True:
if i + 6**cou <= n:
dp[i+6**cou] = min(dp[i+6**cou],dp[i]+1)
cou += 1
elif i + 6**cou > n:
break
cou = 1
while True:
if i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
15f70fff1dbdd73ae7becb2f3e22c2671385319c | b6c09a1b87074d6e58884211ce24df8ec354da5c | /714. 买卖股票的最佳时机含手续费.py | 9c9467240aa30698f8796de96dccb3b8fbea196d | [] | no_license | fengxiaolong886/leetcode | a0ee12d67c4a10fb12d6ca4369762ab5b090cab1 | 4c0897bc06a297fa9225a0c46d8ec9217d876db8 | refs/heads/master | 2023-03-18T22:16:29.212016 | 2021-03-07T03:48:16 | 2021-03-07T03:48:16 | 339,604,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | '''
给定一个整数数组 prices,其中第 i 个元素代表了第 i 天的股票价格 ;非负整数 fee 代表了交易股票的手续费用。
你可以无限次地完成交易,但是你每笔交易都需要付手续费。如果你已经购买了一个股票,在卖出它之前你就不能再继续购买股票了。
返回获得利润的最大值。
注意:这里的一笔交易指买入持有并卖出股票的整个过程,每笔交易你只需要为支付一次手续费。
'''
def maxProfit(prices, fee):
dp = [[0 for i in prices] for _ in range(2)]
dp[0][0] = -prices[0]
dp[1][0] = 0
for ... | [
"xlfeng886@163.com"
] | xlfeng886@163.com |
b63e4c9ebaa4ca58ea3ebbd502a5151c669d1102 | 9238c5adf211d66cbe9bea5a89e97ca02c31da9a | /bin/.venv-ansible-venv/lib/python2.6/site-packages/ansible/modules/core/cloud/amazon/ec2_tag.py | 409041f906b23179804c4dd7ffd517fea198c8e4 | [
"MIT"
] | permissive | marcusramberg/dotfiles | 803d27fb88da8e46abb283b2e2987e51a83b08aa | 413727089a15e775f532d2da363c03d9fb3fb90a | refs/heads/main | 2023-03-04T17:08:40.123249 | 2023-03-01T07:46:51 | 2023-03-01T07:46:51 | 7,285,450 | 4 | 2 | MIT | 2022-12-22T14:39:35 | 2012-12-22T11:57:42 | Python | UTF-8 | Python | false | false | 4,962 | py | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | [
"marcus.ramberg@usit.uio.no"
] | marcus.ramberg@usit.uio.no |
16b34bb9d976490f20e07b25bc22a0a7588fbd8e | 04e080a00f37a3501c5060380d65c5a6cd669d90 | /thonnycontrib/m5stack/esp32_api_stubs/inisetup.py | b809474e6edb80c845e1089c6fbfc4b79b8a9fa2 | [
"MIT"
] | permissive | thonny/thonny-m5stack | 473a2876e72b88d283d8b9d64189028ef7fea111 | a502579ad5e264342ae0bc2c554c78527053693b | refs/heads/master | 2020-04-20T14:57:15.605699 | 2019-11-18T22:28:36 | 2019-11-18T22:28:36 | 168,914,658 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | bdev = None
def check_bootsec():
pass
def fs_corrupted():
pass
def setup():
pass
uos = None
| [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
7a807bb9bd34fd9fcc6a9ff4ba2affba6b6b435c | 6392354e74cce4a303a544c53e13d0a7b87978ee | /m6/MyBlog/venv/Lib/site-packages/django/contrib/gis/admin/widgets.py | c02d31c5101d1b4d47789fc374fb418343dc8180 | [] | no_license | music51555/wxPythonCode | dc35e42e55d11850d7714a413da3dde51ccdd37e | f77b71ed67d926fbafd1cfec89de8987d9832016 | refs/heads/master | 2020-04-11T20:20:38.136446 | 2019-04-01T09:17:34 | 2019-04-01T09:17:34 | 162,067,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,723 | py | import logging
from django.contrib.gis.gdal import GDALException
from django.contrib.gis.geos import GEOSException, GEOSGeometry
from django.forms.widgets import Textarea
from django.utils import translation
# Creating a templates context that contains Django settings
# values needed by admin map templates.
geo_conte... | [
"music51555@163.com"
] | music51555@163.com |
c9db57b26f26ac2232980fef4c2269f1b22bb554 | 9a486a87e028303a551fbd0d1e1b6b650387ea14 | /deal_xzj_log/guild_battle.py | 512946b2d6e02df97e80609b5411c54e41c4496a | [] | no_license | shanlihou/pythonFunc | 7b8e7064fddd4522e492c915c086cc6c5abc6eec | 646920256551ccd8335446dd4fe11aa4b9916f64 | refs/heads/master | 2022-08-24T20:33:12.287464 | 2022-07-21T12:00:10 | 2022-07-21T12:00:10 | 24,311,639 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | import re
import utils
class GuildBattle(object):
def __init__(self, filename):
self.gbid_set = set()
self.account_set = set()
self.day = 0
self.init_data(filename)
def parse_day(self, line):
pat = re.compile(r'\[\d+\-\d+\-(\d+)')
find = pat.search(line)
... | [
"shanlihou@gmail.com"
] | shanlihou@gmail.com |
f37125991539e1ace1a0ac7ce58f30bd0805aa5c | 15608a179d97e399ca08be0f017296c4f4ded881 | /docs/migrations/0001_squashed_0005_remove_version.py | b870e51c1e00658d8b78e452390e4e2d9260e024 | [
"BSD-3-Clause"
] | permissive | shivangi1801/djangoproject.com | 1f33bef39b8c3cce136f47008eee5d4aae8d6aa4 | e51eba97f7e226d2e9deb31f8c23b1e00df04b9c | refs/heads/master | 2021-01-16T20:37:51.813671 | 2016-02-08T22:51:01 | 2016-02-08T22:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-21 07:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
replaces = [('docs', '0001_initial'), ('docs', '0002_simplify_documentrelease'), ('docs... | [
"timograham@gmail.com"
] | timograham@gmail.com |
f11c0be7aa67af6235a14f8e6198576a7e95013e | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /python/g1/scripts/g1/scripts/bases.py | e710b0e363fa3d1cf71663dc650af30be31f0d9e | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,980 | py | """Helpers for constructing ``subprocess.run`` calls contextually.
NOTE: For the ease of use, this module implements context with global
variables, and thus is not concurrent safe (not thread safe and not
asynchronous coroutine safe). Although we could redesign the interface
to make it concurrent safe (like requiring... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
e2ef3dc9a479b8b4e011179eff0820b73109b14a | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_wiki/tests/test_middleware.py | b4ce9c0f3de1609b2abfcc018e4c85d9fd6326bf | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 1,544 | py | """
Tests for wiki middleware.
"""
from django.test.client import Client
from wiki.models import URLPath
from common.djangoapps.student.tests.factories import InstructorFactory
from lms.djangoapps.course_wiki.views import get_or_create_root
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from ... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
9b020c89f6757fa760ac71bcb71c214d50005d12 | 999879f8d18e041d7fa313132408b252aded47f8 | /01-codes/scikit-learn-master/sklearn/ensemble/weight_boosting.py | d07a00cefb6cb0b829d42e5d7fd27bd4ba4839e7 | [
"MIT",
"BSD-3-Clause"
] | permissive | QPanProjects/Surrogate-Model | ebcaf05728e82dcbcd924c2edca1b490ab085173 | 848c7128201218b0819c9665e2cec72e3b1d29ac | refs/heads/master | 2022-10-11T19:03:55.224257 | 2020-06-09T14:37:35 | 2020-06-09T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,759 | py | """Weight Boosting
This module contains weight boosting estimators for both classification and
regression.
The module structure is the following:
- The ``BaseWeightBoosting`` base class implements a common ``fit`` method
for all the estimators in the module. Regression and classification
only differ from each ot... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
4160757e1eb7885ffb9361bec4a8b1841ce5c5eb | f2502813aa34cb6262bb2780debb51bb080aecd4 | /toeplitz_decomp_gpu/run_real_new.py | 16ae80f0f1ba99c14b3424a16cb3240a716315f7 | [] | no_license | sufkes/scintillometry | 6fafc7601f12ea32b3dfa142ae5ef6beec7e3585 | a9624eecd307bc0ea5ce2e412feec6909bd762aa | refs/heads/master | 2021-01-22T03:49:27.370870 | 2018-02-23T21:37:06 | 2018-02-23T21:37:06 | 93,168,533 | 2 | 1 | null | 2017-06-02T13:32:59 | 2017-06-02T13:32:59 | null | UTF-8 | Python | false | false | 1,257 | py | import os,sys
from mpi4py import MPI
import numpy as np
from new_factorize_parallel import ToeplitzFactorizor
from time import time
comm = MPI.COMM_WORLD
size = comm.Get_size()
rank = comm.Get_rank()
if len(sys.argv) != 8 and len(sys.argv) != 9:
if rank==0:
print "Please pass in the following arguments: method of... | [
"you@example.com"
] | you@example.com |
31a0238162c4142eafff1a78205a6c5ea1531adb | 2aeb619d07ba15ca95607238d41ad33b88cf51c7 | /src/courcelles/urban/dataimport/architects/mappers.py | 36823093a58a185857dbc706e1bf11d0f2409771 | [] | no_license | IMIO/courcelles.urban.dataimport | 65edd044b60cbc148e1345b701e609b4a6446828 | 0d36fbe8c61a5c8da15b05df5452d7970e645509 | refs/heads/master | 2020-05-18T16:43:57.841783 | 2016-01-04T13:44:38 | 2016-01-04T13:44:38 | 39,009,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | # -*- coding: utf-8 -*-
from imio.urban.dataimport.mapper import Mapper
from imio.urban.dataimport.factory import BaseFactory
from Products.CMFPlone.utils import normalizeString
# Factory
class ArchitectFactory(BaseFactory):
def getCreationPlace(self, factory_args):
return self.site.urban.architects
... | [
"delcourt.simon@gmail.com"
] | delcourt.simon@gmail.com |
f290779cf5cd4101e1f193d1a539899e561f95af | 8567438779e6af0754620a25d379c348e4cd5a5d | /third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py | e4b3ead63ddcc6cc663255c8c88926b1c5b284dd | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | thngkaiyuan/chromium | c389ac4b50ccba28ee077cbf6115c41b547955ae | dab56a4a71f87f64ecc0044e97b4a8f247787a68 | refs/heads/master | 2022-11-10T02:50:29.326119 | 2017-04-08T12:28:57 | 2017-04-08T12:28:57 | 84,073,924 | 0 | 1 | BSD-3-Clause | 2022-10-25T19:47:15 | 2017-03-06T13:04:15 | null | UTF-8 | Python | false | false | 152,855 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2009, 2010, 2012 Google Inc. All rights reserved.
# Copyright (C) 2009 Torch Mobile Inc.
# Copyright (C) 2009 Apple Inc. All rights reserved.
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
# Redistribution and use in source and binary forms, with or without
# modi... | [
"hedonist.ky@gmail.com"
] | hedonist.ky@gmail.com |
d83bf71c167c90ccf97b5d889705125b50d33234 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/connectedvmwarevsphere/v20201001preview/cluster.py | 3f7309627667f0124ded506d0be8c84e7c474fd4 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,192 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
a3885d1f776f0b334e529ebd57270412a8f1d539 | 6e57bdc0a6cd18f9f546559875256c4570256c45 | /cts/apps/CameraITS/tests/scene1/test_linearity.py | 1f4aa142984e847efe3d0edd3bdeaca2436c1d99 | [] | no_license | dongdong331/test | 969d6e945f7f21a5819cd1d5f536d12c552e825c | 2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e | refs/heads/master | 2023-03-07T06:56:55.210503 | 2020-12-07T04:15:33 | 2020-12-07T04:15:33 | 134,398,935 | 2 | 1 | null | 2022-11-21T07:53:41 | 2018-05-22T10:26:42 | null | UTF-8 | Python | false | false | 4,201 | py | # Copyright 2013 The Android Open Source Project
#
# 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 a... | [
"dongdong331@163.com"
] | dongdong331@163.com |
b84a33a09205fab4a4ef2fd167efdb65ffba572a | 96c4e333510091368070e2a655b11d09e41bef5a | /favo/admin.py | ca09258fbbc3aa3185380cb52be5fb6876d2755a | [] | no_license | Tuss4/trickfeed.django | dced804b72ed0b6ac1917d17061afc0f1503c4b1 | 948f3dd9f2fb9929c61fd47b42ada400772327aa | refs/heads/master | 2016-08-05T06:00:35.729887 | 2013-07-01T14:25:46 | 2013-07-01T14:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.contrib import admin
from favo.models import *
admin.site.register(Favorite) | [
"tuss4dbfn@gmail.com"
] | tuss4dbfn@gmail.com |
f2c806b3579aa78fdc0528554e68e4e95bfd6ba4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03745/s708529071.py | fda6321c5f6a0b6b2235ba3390bb482ce3d143d3 | [] | 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 | 356 | py | from collections import deque
n = int(input())
a = list(map(int,input().split()))
d = deque(a)
tmp = []
cnt = 0
while d:
v = d.popleft()
if len(tmp)<=1:
pass
else:
if not (v >= tmp[-1] >= tmp[-2] >= tmp[0] or v <= tmp[-1] <= tmp[-2] <= tmp[0]):
tmp = []
cnt += 1
tmp.append(v)
# print(d,... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cf0b16781cb06a5c1d1a297c66310a9e41261b13 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part004569.py | 3176b40d2fc0c98546282a3dac165244dfbd02f6 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
af83d06559cbd367b6208cb44f53dde62ca2c08b | 212ccad4e9f19fdcdf7d6b15b16eb3724d18c363 | /bioprocs/scripts/cnvkit/pCNVkitSeg.py | a442568d6a62de0baec24d3fa06b2e9a0d88e1e1 | [
"MIT"
] | permissive | LeaveYeah/bioprocs | 997792add2150467f668f42bea57d195ec7db9ff | c5d2ddcc837f5baee00faf100e7e9bd84222cfbf | refs/heads/master | 2020-04-16T16:48:15.924979 | 2019-02-15T23:02:52 | 2019-02-15T23:02:52 | 165,750,151 | 0 | 0 | MIT | 2019-02-15T23:02:53 | 2019-01-14T23:14:24 | HTML | UTF-8 | Python | false | false | 521 | py | from pyppl import Box
from bioprocs.utils import shell
cnvkit = {{args.cnvkit | quote}}
infile = {{i.infile | quote}}
outfile = {{o.outfile | quote}}
nthread = {{args.nthread | repr}}
params = {{args.params}}
shell.TOOLS['cnvkit'] = cnvkit
envs = dict(
OPENBLAS_NUM_THREADS = 1,
OMP_NUM_THREADS = 1,
NU... | [
"pwwang@pwwang.com"
] | pwwang@pwwang.com |
f20293425cb4e9ee0276d3820ee193b9e800b864 | 01fdd206c8c825b30870bdd3f6e75f0aa113b849 | /test/record/parser/test_response_whois_isoc_org_il_status_available.py | 77cdabf8416280afc5c848dd46cffbb481885417 | [
"MIT"
] | permissive | huyphan/pyyawhois | 0fbc5a7d64a53ae6e3393fdc1c7ff0d0ac5f22b5 | 77fb2f73a9c67989f1d41d98f37037406a69d136 | refs/heads/master | 2021-01-23T22:42:55.989651 | 2015-09-19T16:40:06 | 2015-09-19T16:40:06 | 23,335,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py |
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
# spec/fixtures/responses/whois.isoc.org.il/status_available
#
# and regenerate the tests with the following script
#
# $ scripts/generate_tests.py
#
from nose.tools import *
from dateutil.parser import pa... | [
"dachuy@gmail.com"
] | dachuy@gmail.com |
be6a5b9cac41caba2672d3a0aa55352a03c162ab | 02560440f9f91e583fe98d80ab11e18aa6c7a525 | /apps/proyectos/migrations/0003_proyecto_estado.py | 8cdc85e82f4402f242bcf094fc85b50367c9d673 | [] | no_license | eduardogpg/wamadeusV1 | a36c89176543e638486009620c5131f46743edbc | 82d93293dc6afc95a6661f727162f4055ab83a43 | refs/heads/master | 2020-12-28T01:57:47.831689 | 2015-01-08T05:14:25 | 2015-01-08T05:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('proyectos', '0002_remove_proyecto_estado'),
]
operations = [
migrations.AddField(
model_name='proyecto',
... | [
"eduardo78d@gmail.com"
] | eduardo78d@gmail.com |
a958e8c86174eda061fc353adafef21d96d696d5 | b98e9e5ec77b65bf307b87ea1129d3d778a915af | /python/15684_ladder.py | 6fc8f06fdc00ef951c1ae26bfe1f2500d03d3802 | [] | no_license | KimYeong-su/Baekjoon | 8ea5e5fab711d05c0f273e68a849750fdcdbae4b | 0e56b2cfdf67c0e6ffbbe3119e2ab944d418f919 | refs/heads/master | 2021-07-08T11:25:00.019106 | 2021-04-21T12:47:49 | 2021-04-21T12:47:49 | 239,902,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | import sys
input = sys.stdin.readline
N, M, H = map(int, input().rstrip('\n').split())
if M == 0:
print(0)
exit()
maps = [[False]*N for _ in range(H)]
for _ in range(M):
a, b = map(lambda x: int(x)-1, input().rstrip('\n').split())
maps[a][b] = True
answer = 4
def check():
for s in range(N):
... | [
"suwon0521@naver.com"
] | suwon0521@naver.com |
b5658157564b48b4a45e26c602cb8f7359e1d74e | 94120f2c22fb2ff44e47a6a545daa9ecbb95c3eb | /Analysis/HiggsTauTau/scripts/compareSystShapes.py | 63240e650ec30733eb71fa6567095179270af6ee | [] | no_license | DebabrataBhowmik/ICHiggsTauTau | 6d4ad3807209232f58d7310858c83d0ce316b495 | c9568974a523c41326df069c0efe1ce86ba4166a | refs/heads/master | 2020-03-31T10:20:44.757167 | 2018-10-08T15:46:16 | 2018-10-08T15:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | import ROOT
import UserCode.ICHiggsTauTau.plotting as plotting
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--datacard', '-d', help= 'Data card')
parser.add_argument('--systematic', '-s', help= 'Name of systematic to make the comparrison plots for')
parser.add_argument('--output', '-o', help... | [
"daniel.winterbottom@cern.ch"
] | daniel.winterbottom@cern.ch |
378ea714e209d6c5672a433a408cfb3c7ae34d93 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02536/s373980977.py | 6ff28363fe4056683fdd331524dbb4a7e04042e3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | def main():
def find(target):
if parent[target] < 0:
return target
else:
parent[target] = find(parent[target])
return parent[target]
def is_same(x, y):
return find(x) == find(y)
def union(x, y):
root_x = find(x)
root_y = find(y)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0bff5d925eabd40deb4c7de2c92931e939a44306 | 89acc97d24548e0393201151975bf7e262949fcb | /examples/embed.py | 32d7d2052e0058bbedbf9feaf377e1606293d8b3 | [] | no_license | FrankWork/tf-tutorials | 40b15cc35379ecc03a9f2de1015585c43e5ecc3e | bb698f37fc9a3baa5f8e3cddc523d11872794e0f | refs/heads/master | 2022-10-09T21:30:53.851685 | 2018-09-13T06:34:16 | 2018-09-13T06:34:16 | 82,744,146 | 1 | 1 | null | 2022-10-01T07:13:11 | 2017-02-22T01:00:40 | Python | UTF-8 | Python | false | false | 619 | py | import tensorflow as tf
import numpy as np
vocab_size = 5
embed_size = 3
with tf.Graph().as_default(), tf.Session() as sess:
# unk = tf.get_variable("unk", shape=[1, embed_size],
# dtype=tf.float32, initializer=tf.ones_initializer())
# embed = [unk]
# embed.append(tf.convert_to_tensor(np.zeros((vocab_siz... | [
"lzh00776@163.com"
] | lzh00776@163.com |
2cd05f45755b2cbdc09fb9ab6925cbcc9782dfc8 | 6c7355ae404490d0ff26c4ec925384242b7e9067 | /django introduction/demo/migrations/0004_auto_20200820_1622.py | 711cb98804700c2496efc2395cdbf97aa81b3e14 | [] | no_license | mahidulmoon/udemy-fullstack-practice | 7de8946a97224e554b97c490d18e71b0dc969e08 | e0f9ddd2b4dd3fa5ad486d92b7c9bdac8c77f05f | refs/heads/master | 2022-12-12T01:12:56.188124 | 2020-08-30T17:04:51 | 2020-08-30T17:04:51 | 288,985,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | # Generated by Django 3.0.6 on 2020-08-20 19:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('demo', '0003_auto_20200820_1147'),
]
operations = [
migrations.CreateModel(
name='BookNumber',
... | [
"mahidulmoon@gmail.com"
] | mahidulmoon@gmail.com |
7bb0b5eb5e3c901c314723c3cb2459ec0ae664d1 | 66b3d81d66491bf6c488f19896661eb7d99a0535 | /src/sample.py | 86ab8a34897a0d19f96b760eba326834ca5fe11e | [
"LicenseRef-scancode-other-permissive",
"MIT-Modern-Variant",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | quminzi/harfbuzz | fa5597ce6619d1ca86c0c86b9099e558872e8b98 | 2cd5323531dcd800549b2cb1cb51d708e72ab2d8 | refs/heads/master | 2020-04-06T03:44:34.844047 | 2015-01-07T03:16:38 | 2015-01-07T03:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
from gi.repository import HarfBuzz as hb
from gi.repository import GLib
# Python 2/3 compatibility
try:
unicode
except NameError:
unicode = str
def tounicode(s, encoding='utf-8'):
if not isinstance(s, unicode):
return s.d... | [
"behdad@behdad.org"
] | behdad@behdad.org |
f7e85d419b45b467ec0f9ecb8344fa2b19b9e103 | 62922a76e40003f3d3a7d02282853f9a2b76c6fc | /NLP/nltk1.py | 75d047d7cba31598635ee4accf293af060a56548 | [] | no_license | cchangcs/ai_learning_record | a7d0d9c7fcdc1e97d8869aa7e63b535f8cf62df2 | 235a90ff5fe0205334376a927d462b8ae64e4e70 | refs/heads/master | 2020-04-01T16:59:31.203223 | 2018-11-21T11:12:34 | 2018-11-21T11:12:34 | 153,408,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | import nltk
import jieba
raw = open('liangjian.TXT', 'rb').read()
# jieba.lcut()与jieba.cut()的区别在于:
# jieba.cut()返回一个可迭代的generator,可以使用for循环获得粉刺后得到的每一个词语
# jieba.lcut()直接返回list
text = nltk.text.Text(jieba.lcut(raw))
# 显示出现的上下文
print(text.concordance(u'驻岛'))
# 对同义词的使用习惯,显示words出现的相同模式
print(text.common_contexts(['小日本'... | [
"752340690@qq.com"
] | 752340690@qq.com |
a83c05009a51ae8f8b57f8b7d8da648bc21db2e3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02731/s681505508.py | 9a2bdda7173e3c9fcb29134e837f0d34ddc1f593 | [] | 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 | 32 | py | N = int(input())
print((N/3)**3) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d16c1374c115f76767b9316071a5126edd9b63bb | bad85cd8d547a071baf4b6590f7e81d13ef1ec0d | /assistant/weblink_channel/migrations/0019_auto_20200819_0907.py | c43e45d76cfb514f560bbdcbba6e6be45084f979 | [
"MIT"
] | permissive | kapiak/ware_prod | 92e11671059642e14219d5aa8334e0564403db77 | ae61256890834c434d2e38cc2ccacf00b638665a | refs/heads/master | 2023-01-06T04:36:43.173093 | 2020-09-21T04:06:51 | 2020-09-21T04:06:51 | 310,320,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | # Generated by Django 3.1 on 2020-08-19 09:07
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('orders', '0003_auto_20200813_0326'),
('products', '0004_auto_20200813_0203'),
('web... | [
"hamadeh.basel@gmail.com"
] | hamadeh.basel@gmail.com |
da5a5a8909a894ea58797a8fdf4371f2e78b6d80 | a097ecf40fee329cfa9e3f77e4b6e9e29a8f148a | /6_section/6_1.py | 56d5eb74962f87b2a93396b6c14889c23568ce73 | [] | no_license | FumihisaKobayashi/The_self_taught_python | 1e7008b17050db3e615c2f3aa68df2edc7f93192 | 329d376689029b75da73a6f98715cc7e83e8cc2c | refs/heads/master | 2021-01-06T16:04:13.382955 | 2020-07-28T14:39:24 | 2020-07-28T14:39:24 | 241,389,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | #行を変えるときは"""
""" line1
line2
kine3
"""
#a[int]で参照する。
a = "AbcMart"
print(a[0])
print(a[1])
| [
"ruruku717@gmial.com"
] | ruruku717@gmial.com |
6686bdad5ef3c5ba55c384bccfe5c43b3a94c08c | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/Jaipur2/Jaipur2/urls.py | 9a5afd8833e795b3f97b7337d736eae3b22cdbdc | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 793 | py | """Jaipur2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
a7802d009966a5c9860b3f8685852ec97a59fc37 | 3efa9b57670d318b006d5eec837595683a7cb751 | /run_tests.py | 3601df35ca4471c85f461ad30e540d264eb03275 | [] | no_license | Erotemic/supersetup | c76d56eeb1e0a7322604510f8bb27c8faff6d593 | ab2b75be470b6db524acd74fc6e8235f1ab6f522 | refs/heads/main | 2023-08-28T00:27:25.517794 | 2021-11-05T20:24:16 | 2021-11-05T20:24:16 | 376,892,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
if __name__ == '__main__':
import pytest
import sys
package_name = 'supersetup'
pytest_args = [
'--cov-config', '.coveragerc',
'--cov-report', 'html',
'--cov-report', 'term',
'--xdoctest',
'--cov=' + package_name,
... | [
"erotemic@gmail.com"
] | erotemic@gmail.com |
1950318d50fddf94d54003132392554f9c5b0dac | 75e24fc71cf0833bb6040fa5037a0523c67d4581 | /nlplingo/tasks/sequence/bpjson.py | 24262871b860357be3a865693a02f463871edd05 | [
"Apache-2.0"
] | permissive | BBN-E/nlplingo | 53d5ff2aa17d03a1c6db8afc8ed2b0cf683b1c55 | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | refs/heads/main | 2022-12-19T19:28:11.666850 | 2020-10-09T01:16:32 | 2020-10-09T01:16:32 | 302,090,268 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py |
def document_prediction_to_bp_json(documents, corpus_id):
"""
:type document: list[DocumentPrediction]
"""
bp = dict()
bp['corpus-id'] = corpus_id
bp['format-type'] = 'bp-corpus'
bp['format-version'] = 'v8f'
bp['entries'] = dict()
for document in documents:
for sentence in ... | [
"hqiu@bbn.com"
] | hqiu@bbn.com |
69c168177c43574cbd853f4f8cc6a2858db2c7c0 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/wordy/2cb74d70ed0f4ca582f53ed59ded5843.py | 780680aef39b375639045d1d0ccfbfb865385441 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,867 | py | def calculate(s):
# Assume we have the 'What is..' opening
s = s.strip('What is ')
# Rather than tokenizing the 'by' following multiplied
# or divided, let's just remove it. The phrase won't
# lose any cdetail for computation.
for each in [' by',' to the',' power','th','nd','st','rd'... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
88fac84782b5350baeb552fe4770e2150129d53d | caaf1b0754db1e676c37a6f1e58f19183754e654 | /sdk/network/azure-mgmt-network/generated_samples/virtual_network_tap_delete.py | a04f9b29d2d098aa8941dee37c28d31718ac4001 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | rdomenzain/azure-sdk-for-python | 45dfb39121a0abda048c22e7309733a56259f525 | 58984255aeb904346b6958c5ba742749a2cc7d1b | refs/heads/master | 2023-07-07T06:53:12.967120 | 2023-07-04T16:27:37 | 2023-07-04T16:27:37 | 258,050,134 | 0 | 0 | MIT | 2020-04-23T00:12:14 | 2020-04-23T00:12:13 | null | UTF-8 | Python | false | false | 1,513 | 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"
] | rdomenzain.noreply@github.com |
b017ebc4063d176c60cd9d5d47c2fd34455ecfe4 | 2e996d6870424205bc6af7dabe8685be9b7f1e56 | /code/processing/20181219_r3_O1O3_IND_titration_flow/processing.py | 4c382b4d6b125f48bd4b3786e5fec98e64c5c186 | [
"CC-BY-4.0",
"MIT"
] | permissive | minghao2016/mwc_mutants | fd705d44e57e3b2370d15467f31af0ee3945dcc2 | 0f89b3920c6f7a8956f48874615fd1977891e33c | refs/heads/master | 2023-03-25T03:56:33.199379 | 2020-06-26T20:09:00 | 2020-06-26T20:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | import numpy as np
import pandas as pd
import glob
import imp
import sys
sys.path.insert(0, '../../../')
import mut.flow
# Define the experiment parameters
DATE = 20181219
RUN_NO = 3
USERNAME = 'gchure'
CLASS = 'IND'
gating_fraction = 0.4
# Load all files.
files = glob.glob('../../../data/flow/csv/{0}*_r{1}*.csv'.for... | [
"gchure@caltech.edu"
] | gchure@caltech.edu |
2f719719bb503926708f3f1e7b6dc163f7417df6 | 8ea2acd4b2b15f5edd4608dfc20cb6fed49995cd | /docs/sphinx/rest_substitutions/snippets/python/converted/wx.DataObjectComposite.1.py | 288e6c8a0d5e5757a5ff188f805efc25fcd8ecea | [] | no_license | timechild/Phoenix | cbace6e93f69eaa5f998ff7861dc8b763fe7eef7 | 2c2d44f3750d01692a99f96f65d8d70f39174528 | refs/heads/master | 2021-06-27T04:26:52.037016 | 2017-09-15T04:48:42 | 2017-09-15T04:48:42 | 103,706,741 | 1 | 0 | null | 2017-09-15T22:31:21 | 2017-09-15T22:31:21 | null | UTF-8 | Python | false | false | 1,068 | py |
def MyDropTarget(self):
dataobj = wx.DataObjectComposite()
dataobj.Add(wx.BitmapDataObject(), True)
dataobj.Add(wx.FileDataObject())
self.SetDataObject(dataobj)
def OnData(self, x, y, defaultDragResult):
dragResult = wx.DropTarget.OnData(x... | [
"robin@alldunn.com"
] | robin@alldunn.com |
63a26d8b55aaeaa632f4571a62a47a7c52bc529d | 61b87099017a2456c5c7b733a1c6559b988e4ebe | /user_portrait/cron/flow5/check_process.py | d17e151fb5e3e86b84d0aff6ae9cc34a1b0b0a2e | [] | no_license | zhuty16/user_portrait | 4fc4cc08e550864ebcfa3eef200127a94f07043b | a5e8ea3d28316e0d8822f92951462aad5c3d2355 | refs/heads/master | 2021-05-29T07:05:58.520759 | 2015-08-08T13:07:50 | 2015-08-08T13:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | # -*- coding:utf-8 -*-
import subprocess
import sys
import os
import time
def check(p_name):
cmd = 'ps -ef|grep %s|grep -v "grep"' % p_name
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
if p.wait() == 0:
val = p.stdout.read()
print val
if p_name in val:
... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
0f3fecb82dc87e5057514645409a59e8b1fd5246 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/serviceconnector/_params.py | 656868842eb2bd0f35811474f70b3d09f6eeec01 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 16,545 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
fe3840957fde644b7fc61ad6d81141e5c485844f | 0c9e35012baf61ee678bc719588b8cb2ccbe449e | /product/migrations/0078_locationstudio.py | c35d80b4b58d4926bd6221b180331d428b08a63c | [] | no_license | rickyakilimali/approeco | 6f0f62d57b6e5361b5c5dd473038f2999bac1413 | fd96ca6d70dabf20668d2a582c67e5d409a4a097 | refs/heads/master | 2018-09-21T12:44:27.414394 | 2018-06-06T16:35:40 | 2018-06-06T16:35:40 | 113,836,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-31 12:51
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"ricky.akilimali@approeco.net"
] | ricky.akilimali@approeco.net |
0c952a070f362f63b5390ebbb68b549f1f653ea8 | 29e08aa28f26e73358c6b8f2f309c216dcf4400b | /4/openstack-dashboard/openstack_dashboard/dashboards/admin/metering/tabs.py | 40bca2fb36973361822388acf18fa774bb0720fd | [] | no_license | TsinghuaCloud/TsinghuaCloud2.0-gui | fefe76318fc21ebf56f90f7fac81f4c273f1f6b6 | 4c91ccc048b846037ab281f8f62221f45e8edf43 | refs/heads/master | 2021-01-17T07:01:25.125829 | 2016-04-18T15:41:58 | 2016-04-18T15:41:58 | 39,073,412 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,154 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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... | [
"root@controller.(none)"
] | root@controller.(none) |
075416780ca0fd70d872b7a9401baae8344ab08a | 156d6c4638773e5af6027b10336f60cca9a23252 | /src/ros_main.py | 57eabd65f11ea48dbd012d4adbe9913f69c1d2f8 | [
"MIT"
] | permissive | lijh1024/ros-RandLA-Net | 6f5d9a5095b97466acccc1bffc1dfdb9371ce4b8 | 5f15a6687bdced16615f7215fc1aa9ffacbc0ad2 | refs/heads/master | 2023-03-17T07:41:08.353403 | 2020-08-24T02:47:56 | 2020-08-24T02:47:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!/usr/bin/env python
from __future__ import print_function
import roslib
roslib.load_manifest('ros_randla_net')
import sys
import rospy
from ros_node import InferenceNode
def main(args):
rospy.init_node('~', anonymous=True)
node = InferenceNode()
try:
rospy.spin()
except KeyboardInterrupt... | [
"xxdsox@gmail.com"
] | xxdsox@gmail.com |
feba3d89953b0b88ad4f1147481b481a8e68b566 | dc9865587582f65e5be010a8a831972845c8dbb4 | /django_mri/utils/compression.py | 50991175ab3b0cce9db71e8c9035155fcb07b45f | [
"Apache-2.0"
] | permissive | TheLabbingProject/django_mri | d31bd15613c82a55e2a42eba1fa3617e952e8b72 | 5b5ca1b119144d01e526825d2b2a2b87541b4d4a | refs/heads/master | 2023-04-07T03:22:09.366540 | 2023-03-29T08:18:01 | 2023-03-29T08:18:01 | 205,411,473 | 7 | 2 | Apache-2.0 | 2023-02-17T08:22:53 | 2019-08-30T15:42:45 | Python | UTF-8 | Python | false | false | 2,131 | py | """
Definition of the :func:`~django_mri.utils.compression.compress` and
:func:`~django_mri.utils.compression.uncompress` utility functions.
"""
import gzip
import shutil
from pathlib import Path
def uncompress(
source: Path, destination: Path = None, keep_source: bool = True
) -> Path:
"""
Uncompresses ... | [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
c6b6ef9cc4eb38a80c21d9622919755f9d0305b4 | 5e382a50c521e4cd874ed4e94799e5ef062994a1 | /services/web/server/src/simcore_service_webserver/rest.py | a9b29a0b75d27657ed565de0e4f3a730bc284f99 | [
"MIT"
] | permissive | KZzizzle/osparc-simcore | 71103bcfb81d6ea90e0ac9529e8f08568685166c | 981bc8d193f3f5d507e3225f857e0308c339e163 | refs/heads/master | 2021-05-25T08:46:52.704734 | 2020-10-07T14:07:34 | 2020-10-07T14:07:34 | 253,747,491 | 0 | 0 | MIT | 2020-04-07T09:29:23 | 2020-04-07T09:29:22 | null | UTF-8 | Python | false | false | 3,270 | py | """ Restful API
- Loads and validates openapi specifications (oas)
- Adds check and diagnostic routes
- Activates middlewares
"""
import logging
from pathlib import Path
from typing import Optional
import openapi_core
import yaml
from aiohttp import web
from aiohttp_swagger import setup_swagger
from open... | [
"noreply@github.com"
] | KZzizzle.noreply@github.com |
36edc52492d3275c17b86992cdd04a1f593c7095 | f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b | /samples/python/apidocs/ee_featurecollection_aggregate_total_sd.py | 9051df9261f5d9a4c7d1decb6d917fa14bbeb55c | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | google/earthengine-community | 4e054b421f66f03507d58668084aee981062fc24 | ce931040c518860f8788b4888c0acfdebd2952fc | refs/heads/master | 2023-09-01T14:47:54.812703 | 2023-08-31T23:01:00 | 2023-08-31T23:01:39 | 200,732,820 | 428 | 552 | Apache-2.0 | 2023-09-13T21:46:51 | 2019-08-05T21:42:11 | Jupyter Notebook | UTF-8 | Python | false | false | 1,023 | py | # Copyright 2023 The Google Earth Engine Community 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4823214d088fd443d5467e603ac8599f491e5548 | ef9ab6d3ebb22fea68901c0e681abc25e5379fa6 | /FanFilmE2/fanfilm/resources/lib/libraries/jsunfuck.py | bc1f5f8a45c9aa018b2ab4042fe44cdb5fd26d1e | [] | no_license | OpenPE/eePlugins | b2098a082ee5a5d929a29683e2334dc3895cb4b5 | 8f4a2963d5489e760eb778a10f00c3b49356d517 | refs/heads/master | 2020-07-30T11:27:28.198034 | 2019-09-16T15:13:55 | 2019-09-16T15:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,439 | py | #!/usr/bin/python
"""
Covenant Add-on
Copyright (C) 2016 tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any late... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
c45b64bfb7dc8d638eb42afda514c9af33168a82 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/4549962f8535c6892637c74c8c7dd3f8953a1678-<compare_rules>-bug.py | 064c8abad58ff66bf4f274985b7d40b35b3c1717 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | def compare_rules(self):
'\n\n :return:\n '
rules_to_modify = []
rules_to_delete = []
rules_to_add = deepcopy(self.rules)
for current_rule in self.current_rules:
current_rule_passed_to_module = False
for new_rule in self.rules[:]:
if (current_rule['Priority'... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
968b4a3eb22447b3acbffbd207b2a8cff46648d8 | c7b4baa2779a0fc02e363f07c88b4d1d8cc33ffe | /gahtc/website/migrations/0034_merge.py | a748bb606b00e44de2215f0d021cbbdb0548dd72 | [] | no_license | NiJeLorg/GAHTC | 6d5c8b2d4b9244c8874ad60c16cd7d55a3535075 | 8ba3360f6e2a8ad0b937a60c3c022eaac4a7cd46 | refs/heads/master | 2022-12-08T19:26:05.800635 | 2018-06-07T02:31:43 | 2018-06-07T02:31:43 | 41,111,268 | 2 | 0 | null | 2022-11-22T01:43:36 | 2015-08-20T18:07:02 | HTML | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0032_auto_20161108_0210'),
('website', '0033_profile_verified'),
]
operations = [
]
| [
"jd@nijel.org"
] | jd@nijel.org |
5a4893383d5c402e74ad89801720feac3f460235 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=60/params.py | cb30c863dd706689a5cbcad57cb8e6da369c00fe | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.636000',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 60,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
f53273e4fb7d5bfa568073ebd17ceb3d4f151c7b | 9b4e80a2dc6a660a33e3599515100a172038f922 | /python/HI/dijet_analysis/pp/Pythia6_Dijet250_pp_TuneZ2_5020GeV_cff.py | e1c952c1ed897b630e420d7910bef5bc8c0f8c8f | [] | no_license | Jelov/genproductions | 9013901ebcc58e6cfd13c69a52692dfc1994e280 | c65eab700fd6026ebec068d4b90366cc1387e51b | refs/heads/master | 2021-01-21T09:29:16.399045 | 2015-12-07T16:19:22 | 2015-12-07T16:19:22 | 48,558,617 | 0 | 0 | null | 2015-12-24T22:45:32 | 2015-12-24T22:45:32 | null | UTF-8 | Python | false | false | 1,701 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pyquen2015Settings_cff import *
generator = cms.EDFilter("PyquenGeneratorFilter",
collisionParameters5020GeV,
qgpParameters,
pyquenParameters,
doQuench = cms.bool(Fa... | [
"yetkin.yilmaz@cern.ch"
] | yetkin.yilmaz@cern.ch |
39f57f94034ec65afb9a31d785b493155269c325 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/googlecloudsdk/core/resource/yaml_printer.py | 541fac881b57f5f76872b5fb01b72c1a324f928a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 5,210 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google Inc. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
366f823f67768d162e93c901c9222d0be85ff8d5 | f0da7ad429b9a8820359bd51eee5d31e51cc1d77 | /env/lib/python3.6/encodings/cp866.py | 495d313c07b8d9299eb18024e9595f02c502b47c | [] | no_license | DavidNganga/bag | e190ae1a2d33439394859c03456a19676c85be36 | eb67ba9b62a99dc41bcff8aae267541f46023800 | refs/heads/master | 2020-05-03T15:12:17.909935 | 2019-05-04T05:36:25 | 2019-05-04T05:36:25 | 178,699,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | /home/david/.pyenv/versions/3.6.5/lib/python3.6/encodings/cp866.py | [
"ngashiedavid@gmail.com"
] | ngashiedavid@gmail.com |
e8d1869e7a5f6cef61fa69fbf0439981ffd4f27f | 402ed5374ab189c8599b56864c5ce066f34b26c6 | /zfit/minimize.py | 9fff38606b3bd8f93797462dbabbb11864a9a636 | [
"BSD-3-Clause"
] | permissive | kailiu77/zfit | db354e9c3eb4a41274af5363834fe231823c6d66 | 8bddb0ed3a0d76fde0aa2cdbf74434b0ee0ae8bb | refs/heads/master | 2020-10-01T23:49:55.751825 | 2019-12-06T15:48:47 | 2019-12-06T15:48:47 | 227,650,723 | 1 | 0 | BSD-3-Clause | 2019-12-12T16:33:54 | 2019-12-12T16:33:53 | null | UTF-8 | Python | false | false | 533 | py | # Copyright (c) 2019 zfit
# from .minimizers.optimizers_tf import RMSPropMinimizer, GradientDescentMinimizer, AdagradMinimizer, AdadeltaMinimizer,
from .minimizers.optimizers_tf import Adam, WrapOptimizer
from .minimizers.minimizer_minuit import Minuit
from .minimizers.minimizers_scipy import Scipy
AdamMinimizer = A... | [
"mayou36@jonas.eschle.com"
] | mayou36@jonas.eschle.com |
eca89db388397ccdddb20b4aa4430caec6456bc8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_reran.py | 0bd435238cf900398ead11d36e4a0cb93b838549 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py |
from xai.brain.wordbase.nouns._rerun import _RERUN
#calss header
class _RERAN(_RERUN, ):
def __init__(self,):
_RERUN.__init__(self)
self.name = "RERAN"
self.specie = 'nouns'
self.basic = "rerun"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6ebd1a7c1b5cc55a594b078e34b3f6bc74f6b175 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03283/s356634724.py | 66f46b19caea622c6741e3c3d780abc573ed2012 | [] | 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 | 735 | py | import sys
sys.setrecursionlimit(10010010)
def abc106_d():
n, m, q = map(int, input().split())
table = [[0]*(n+1) for _ in range(n+1)]
for _ in range(m):
l, r = map(int, input().split())
table[l][r] += 1
query = [tuple(map(int, input().split())) for _ in range(q)]
dp = [[-1]*(n+1) ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cc317c0a962ac26af9736f63157cf024a9de03ae | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_091615.49+132833.1/sdB_sdssj_091615.49+132833.1_lc.py | 9d48a955080db7419fd8f8baacbfa6e2382d130a | [] | 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 | 371 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[139.064542,13.475861], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_091615.49+132833.1/sdB_sdssj_091615.49+132833.1_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.01038889... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c167ec7756b4bc4ef5d1f3840ebfad46f6b0f822 | 356b5455a4fb86c49c800a6181323b7fabef2b08 | /ppci/lang/ocaml/io.py | 5170f0ba3e9070d2451879fd2abe2a52d781cc15 | [
"BSD-2-Clause"
] | permissive | obround/ppci | be7d1ce7832513629ee1301e7b67c0ceda38d668 | ba0840bc5f4ffd889f882a814fb26f88cd854379 | refs/heads/master | 2023-02-11T13:47:35.439871 | 2021-01-05T22:33:08 | 2021-01-05T22:33:08 | 327,131,704 | 0 | 0 | BSD-2-Clause | 2021-01-05T22:08:23 | 2021-01-05T22:08:23 | null | UTF-8 | Python | false | false | 598 | py | """ OCaml i/o helpers.
"""
from ...format.io import BaseIoReader
class FileReader(BaseIoReader):
""" OCaml file reader helper with low level primitive read functions. """
def read_byte(self):
return self.read_bytes(1)[0]
def read_u8(self):
return self.read_fmt("B")
def read_s8(sel... | [
"windel@windel.nl"
] | windel@windel.nl |
c01ac9f16fe7691cc7f818e01188598024e8e91e | 1c5f4a13a5d67201b3a21c6e61392be2d9071f86 | /.VirtualEnv/Lib/site-packages/influxdb_client/domain/log_event.py | 0de871390b38b09d09f1940547d519a8f48899d8 | [] | no_license | ArmenFirman/FastAPI-InfluxDB | 19e3867c2ec5657a9428a05ca98818ca7fde5fd0 | b815509c89b5420f72abf514562e7f46dcd65436 | refs/heads/main | 2023-06-24T20:55:08.361089 | 2021-07-29T00:11:18 | 2021-07-29T00:11:18 | 390,462,832 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,328 | py | # coding: utf-8
"""
Influx OSS API Service.
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class LogEvent(object... | [
"42990136+ArmenFirman@users.noreply.github.com"
] | 42990136+ArmenFirman@users.noreply.github.com |
8170718f2b68613f34342a77d012941363b0f6fb | 840c19fdeb97216ad66b3e7fe236cfc17a061606 | /python/python08_집합형1_문자열.py | 4c76c35c9c641f15d0c2509a96c5dd9896bec337 | [] | no_license | choicoding1026/data | 07b431abdf36bcf7aefdf249fd1251acfd1e0334 | 684ca791108bc6ba0c315a70e3fa712c0ab2cca6 | refs/heads/master | 2022-12-24T17:55:25.092085 | 2020-10-08T04:54:39 | 2020-10-08T04:54:39 | 302,201,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | '''
집합형
1) 문자열
a. 문자열 생성 방법
b. 문자열 제공 함수
c. 인덱싱 및 슬라이싱
d. 문자열 특징
'''
# 1. 문자열 생성 방법 4가지
m = "hello"
m2 = 'hello'
m3 = '''hello'''
m4 = """hello"""
print(m, type(m))
print(m2, type(m2))
print(m3, type(m3))
print(m4, type(m4))
# triple 문자 사용 용도 ==> 문자열이 매우 길때 및 특정한 포맷(들여쓰기, 탭)으로 출력할 때
... | [
"justin6130@gmail.com"
] | justin6130@gmail.com |
2bef8052418e92e9d29c3d72a0a6fa8684c78926 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02607/s387198280.py | 23e0aeefbb0e2b34051edcabc0f6fe62bf503efd | [] | 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 | 153 | py | N = int(input())
A = [int(i) for i in input().split()]
ans = 0
for i,a in enumerate(A):
idx = i+1
if a%2 == 1 and idx%2 == 1:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f623b790a9c765f28d970b0da70fdaa7a05f6d52 | 8e5cc540c7a734073b3e761ecb058dc6cd27a8ef | /Windprof2.py | de7a66618b3659e2b6190af665b1e05a55280b96 | [] | no_license | rvalenzuelar/windprof_vis | 05502bb4d0c6020144aa7c0320c03dbe80569e8a | b4fe48356401b9713731508f29d98e6234dd2317 | refs/heads/master | 2020-04-03T22:02:47.807828 | 2017-06-27T20:26:27 | 2017-06-27T20:26:27 | 41,705,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,896 | py | """
Plot NOAA wind profiler.
Files have extension HHw, where HH is UTC hour
Raul Valenzuela
August, 2015
"""
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.axes as maxes
import numpy as np
import numpy.ma as ma
import os
import Meteoframes as mf
import sounding as ps
from dat... | [
"raul.valenzuela@colorado.edu"
] | raul.valenzuela@colorado.edu |
7af3612998917d3a3fe539480b61fad8f29ac57e | b852bcf96bd21f8aad61df473e29249315043af5 | /tests/parsers/plist_plugins/ipod.py | aa0d497cb41ed32f0578e24465c098532344aa88 | [
"Apache-2.0"
] | permissive | tjemg/plaso | cad131da318bd6b23835b0f351f464e7edcdbc4a | 58dd7d03463624c628187edea97eb2665069c29f | refs/heads/master | 2020-04-08T21:53:54.863677 | 2016-09-12T14:17:59 | 2016-09-12T14:17:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the iPod plist plugin."""
import unittest
from plaso.formatters import ipod as _ # pylint: disable=unused-import
from plaso.lib import eventdata
from plaso.lib import timelib
from plaso.parsers.plist_plugins import ipod
from tests.parsers.plist_plugins import t... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
1bdf3cc297d6507dd8194bb94ae2200a0fed1fbe | 8f5c1ad76f3f9aa67d6720154b4884c9fab2ecbc | /toontown/election/DistributedToonfestCogAI.py | fb45a06666860c1eaf845c616553eefdc9c5a469 | [] | no_license | RegDogg/ttr-2014-dev | eb0d9da3e91b9504b83804c27e1a00d87a0b7220 | 8a392ea4697cf15bd83accd01dcf26d0f87557eb | refs/heads/master | 2023-07-13T02:40:56.171517 | 2021-07-12T00:31:28 | 2021-07-12T00:31:28 | 372,103,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | # Embedded file name: toontown.election.DistributedToonfestCogAI
from direct.interval.IntervalGlobal import *
from direct.fsm.FSM import FSM
from otp.ai.MagicWordGlobal import *
from toontown.election.DistributedHotAirBalloonAI import DistributedHotAirBalloonAI
from DistributedElectionCameraManagerAI import Distributed... | [
"regdogg.acr@gmail.com"
] | regdogg.acr@gmail.com |
a5d31969ad26e8a685b7b7d70d52b06ac9f25a93 | fa0bd730981a4a7333e7858c03e2a16c75e9cf5c | /Chapter 1/mnist_V7.py | d9038c4c2272d53acc72f1b12840acee6575d0cc | [
"MIT"
] | permissive | PacktPublishing/Deep-Learning-with-TensorFlow-2-and-Keras | 4cb5f7249dcd1efe6ea5a5263fb862240ce303bb | e23d2b4a4292386b70977473805acb2f93ef16ca | refs/heads/master | 2023-02-13T04:04:57.531730 | 2023-02-07T19:23:47 | 2023-02-07T19:23:47 | 228,759,428 | 311 | 214 | MIT | 2021-06-01T14:06:06 | 2019-12-18T04:42:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,946 | py | import tensorflow as tf
import numpy as np
from tensorflow import keras
# network and training
EPOCHS = 20
BATCH_SIZE = 256
VERBOSE = 1
NB_CLASSES = 10 # number of outputs = number of digits
N_HIDDEN = 128
VALIDATION_SPLIT=0.2 # how much TRAIN is reserved for VALIDATION
DROPOUT = 0.3
# loading MNIST dataset
# verif... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
117898cb3c43f04c6bf25322181fd0aa10d335c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02757/s809101133.py | 792d3c9136512c8391a1450d9437aaf983b40525 | [] | 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 | 421 | py | n, p = map(int, input().split())
s = input()[::-1]
if p == 2:
ans = 0
for num, i in enumerate(s):
if int(i)%2 == 0:
ans += n-num
elif p == 5:
ans = 0
for num, i in enumerate(s):
if int(i)%5 == 0:
ans += n-num
else:
C = [0]*p
now = 0
for num, i in enumerate(s):
a = int(i)
now = ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
df4c5f3748bd5945cdcc4ac29d61933da4417e69 | eb38517d24bb32cd8a33206d4588c3e80f51132d | /proyecto_nn.py | 112dc9751e2184c3eda81cf9370647918e561ce6 | [] | no_license | Fernando23296/l_proy | 2c6e209892112ceafa00c3584883880c856b6983 | b7fdf99b9bd833ca1c957d106b2429cbd378abd3 | refs/heads/master | 2020-04-01T18:01:41.333302 | 2018-12-04T23:45:53 | 2018-12-04T23:45:53 | 153,466,681 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | from matplotlib import pyplot as plt
import numpy as np
'''
____
1
283,70
1
308,63
1
253,60
1
281,61
1
303,54
1
279,54
1
343,55
1
335,49
1
290,34
1
327,34
1
299,32
1
287,22
1
169,15
1
0,0
1
287,5
____
2
0,0
2
263,66
2
325,58
2
266,57
2
290,45
2
0,0
2
275,34
2
0,0
2
0,0
2
338,19
2
292,14
2
335,10
2
276,9
2
357,9
2
333... | [
"fernando23296@gmail.com"
] | fernando23296@gmail.com |
c6efa3651b14b09fdfb53dbc5d496a53f514a83b | 5dc77586e3e0f9de1f032fd2ca68494d8e58928f | /tests/expectations/core/test_expect_column_value_z_scores_to_be_less_than.py | 286de2251857f9da62734fd75119a0cf4b4e6d2d | [
"Apache-2.0"
] | permissive | great-expectations/great_expectations | dd7c22e6277d6b08bee3ff38a015e6e8cd434df6 | b0290e2fd2aa05aec6d7d8871b91cb4478e9501d | refs/heads/develop | 2023-09-04T09:30:26.395518 | 2023-09-02T00:00:13 | 2023-09-02T00:00:13 | 103,071,520 | 8,931 | 1,535 | Apache-2.0 | 2023-09-14T19:57:16 | 2017-09-11T00:18:46 | Python | UTF-8 | Python | false | false | 3,442 | py | from typing import Optional, cast
import pandas as pd
import pytest
from great_expectations import DataContext
from great_expectations.core.expectation_validation_result import (
ExpectationValidationResult,
)
from great_expectations.self_check.util import get_test_validator_with_data
from great_expectations.util... | [
"noreply@github.com"
] | great-expectations.noreply@github.com |
ec00e7616ff2b1478df290425ccd36f44d326853 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_24/models/policy_member_response.py | 004d52f22194a5598a5e1b219c11dcc074aa1f85 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,933 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.24
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
77d3496406cf164d4e8e89fe0a5dca548d70ffbf | bae04a67b13b5848ba2bd160792aa563738e9ec9 | /botauth.py | 613e76dbdbd951694cfce1b4de02f761eb2ef361 | [] | no_license | igrekus/stan_bot | 0fb28bf4efed219b117b2d640590565691c24b45 | 43eda93c0799e6f5b2b3676e8cb1a7db32eeae4f | refs/heads/master | 2023-03-18T12:53:45.736623 | 2021-03-09T12:55:25 | 2021-03-09T12:55:25 | 254,895,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | import dataset
class BotAuth:
def __init__(self, path='quotes.db'):
# TODO store active permits in memory
self.db = dataset.connect(f'sqlite:///{path}')
self.authorized: dataset.table.Table = self.db['tg_user']
self.permits: dataset.table.Table = self.db['tg_permits']
self.... | [
"upload234@mail.ru"
] | upload234@mail.ru |
4b5037c080276fe1ebc9d520708a9920f70310e5 | 2061caff7999645ff8c590acf77ad5bf2b6da305 | /source/toolkit.py | 3ef5171ebbb3ef34f7536f0930c917808250278e | [
"CC0-1.0"
] | permissive | wezu/pyweek21 | 63e36639fe52f3c6fad2616dbd5c27eb7e4f4bbd | aff8f2b6f6250e45763e77c12595c3dca177e864 | refs/heads/master | 2021-01-09T21:58:33.818859 | 2016-03-19T18:25:08 | 2016-03-19T18:25:08 | 52,712,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | from panda3d.core import *
from panda3d.bullet import *
def loadObject(model, H, pos, world, worldNP, root=render, collision_solid=None):
new_model=loader.loadModel(model)
new_model.clearModelNodes()
new_model.reparentTo(root)
new_model.setPos(render, pos)
new_model.setH(render, H)
new_m... | [
"grzechotnik1984@gmail.com"
] | grzechotnik1984@gmail.com |
341ecbd011b6ea477a13fd38a1dc991763043d9b | eada891517a2bad7f8a7a06d8a0304fa96647f62 | /tests/test_model_definition/test_models.py | 71d12aa1118e71b2b35e8d462fb2f124b03a9e6a | [
"MIT"
] | permissive | rs-store-personal/ormar | 75a16ca71fcdc1b6d7bfc6b912bbdb1e1dd54794 | 4dfbd79fc89d6e4dddd2e4a10c4624425057e37b | refs/heads/master | 2023-07-11T00:28:59.122663 | 2021-08-10T02:33:49 | 2021-08-10T02:33:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,424 | py | import asyncio
import base64
import datetime
import os
import uuid
from typing import List
import databases
import pydantic
import pytest
import sqlalchemy
import ormar
from ormar.exceptions import ModelError, NoMatch, QueryDefinitionError
from tests.settings import DATABASE_URL
database = databases.Database(DATABAS... | [
"collerek@gmail.com"
] | collerek@gmail.com |
5e18cf19781ab567ab705e5609abb37f764adcdd | bf473d57dff028f3167811a1cb76d7ce8e95b42d | /ocrmypdf/qpdf.py | dcccc2ecf04069eb579e416cb1498c56452b9c55 | [
"MIT"
] | permissive | thecocce/OCRmyPDF | ef6cb0e5e0c55433e2b7db244d5ecc6b0e6b183c | 514efa36fcc2f79ae173f429cb208a63ae968f5b | refs/heads/master | 2020-07-12T01:14:08.685260 | 2016-07-24T18:21:46 | 2016-07-24T18:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | #!/usr/bin/env python3
# © 2015 James R. Barlow: github.com/jbarlow83
from subprocess import CalledProcessError, check_output, STDOUT, check_call
import sys
import os
from . import ExitCode, get_program
def check(input_file, log):
args_qpdf = [
get_program('qpdf'),
'--check',
input_file
... | [
"jim@purplerock.ca"
] | jim@purplerock.ca |
e0cf215b999026a8636472b15a796e1222e3847e | 30cffb7452220c2ac2961dd2e0f42e3b359a59c0 | /simscale_sdk/models/zero_gradient_nbc.py | f75838ccaefa9dba193d8b59a8daffd25ce686e9 | [
"MIT"
] | permissive | vpurcarea/simscale-python-sdk | 0bf892d8824f8d4599caa0f345d5ba28e038f5eb | 6f2d12b2d21142bd854042c0fb402c2c797629e4 | refs/heads/master | 2023-03-14T04:31:06.226337 | 2021-03-03T16:20:01 | 2021-03-03T16:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class ZeroGradientNBC(object):
"""NOTE: This class is auto generated ... | [
"simscale"
] | simscale |
bafdc62773bc9fd08ba308ca2db163705297ec18 | c7a4e634ea260da4c6c94ca716f2910509579e91 | /functional_tests/pages/projects.py | 5a76026fc313007cba773855df88559c19282fb7 | [
"MIT"
] | permissive | XeryusTC/projman | 858a72496ea6eaa23e8e0b511f8c17e037fa37b6 | 3db118d51a9fc362153593f5a862187bdaf0a73c | refs/heads/master | 2016-08-12T09:36:48.371178 | 2016-05-07T21:12:02 | 2016-05-07T21:12:02 | 45,639,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,986 | py | # -*- coding: utf-8 -*-
from page_objects import PageObject, PageElement, MultiPageElement
from selenium.webdriver.support.ui import Select
class BaseProjectPage(PageObject):
body = PageElement(tag_name='body')
content = PageElement(id_='content')
logout = PageElement(name='logout')
overlay = PageE... | [
"armadillo@onenetbeyond.org"
] | armadillo@onenetbeyond.org |
f20ca50144e3fcf25058d0b73bc4c50ebeeb42c5 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-888.py | bff62c8061c021e3e593de8fa9d76ef7293ada3e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,350 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2a6bfb83510ec56d87a9d444cc346d56a3fdbd9f | 0abae2b0586605f6b99cb498ac8161297a7d72c0 | /synthtorch/models/nconvnet.py | dc51157d7875fd02f732b81b30df5053159876dd | [
"Apache-2.0"
] | permissive | jcreinhold/synthtorch | fc227d5597bb77e2018cb6a6cfee9bc086ff5001 | bb6eb20641b2cae3cbb96421b12e03865b5c5095 | refs/heads/master | 2021-09-25T15:31:39.398836 | 2021-09-24T19:51:46 | 2021-09-24T19:51:46 | 155,944,524 | 23 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
synthtorch.models.nconvnet
define the class for a N layer CNN with
no max pool, increase in channels, or any of that
fancy stuff. This is generally used for testing
purposes
Author: Jacob Reinhold (jacob.reinhold@jhu.edu)
Created on: Nov 2, 2018
"""
__all__ = ['Simp... | [
"jacob.reinhold@jhu.edu"
] | jacob.reinhold@jhu.edu |
ffedf66584fb5b7a988b85720f9c11517f525e05 | a5e71a333a86476b9cb1bdf6989bb5f47dd5e409 | /ScrapePlugins/M/FoolSlide/FoolSlideDownloadBase.py | 395abb1796f52b7fd3c704e900c0f38787d304a6 | [] | no_license | GDXN/MangaCMS | 0e797299f12c48986fda5f2e7de448c2934a62bd | 56be0e2e9a439151ae5302b3e6ceddc7868d8942 | refs/heads/master | 2021-01-18T11:40:51.993195 | 2017-07-22T12:55:32 | 2017-07-22T12:55:32 | 21,105,690 | 6 | 1 | null | 2017-07-22T12:55:33 | 2014-06-22T21:13:19 | Python | UTF-8 | Python | false | false | 5,584 | py |
import os
import os.path
import nameTools as nt
import urllib.parse
import zipfile
import runStatus
import traceback
import bs4
import re
import json
import ScrapePlugins.RetreivalBase
import processDownload
import abc
class FoolContentLoader(ScrapePlugins.RetreivalBase.RetreivalBase):
@abc.abstractmethod
def... | [
"something@fake-url.com"
] | something@fake-url.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.