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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88279a09284204513309f7a4ef9ea107ed2dbe2b | a3f45a3189fc0f26fd03803bc7b8f5bac17fdeee | /GUI/Gtk/StdMenus.py | 8d2b1d3467454cafdf5845015d7282ae8dc3efb3 | [
"MIT"
] | permissive | coldmax88/PyGUI | 128ee1259830ae1d7ab7eeabbff21bc9c5b14863 | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | refs/heads/master | 2023-03-16T00:37:52.220603 | 2018-05-17T07:11:38 | 2018-05-17T07:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | #
# Python GUI - Standard Menus - Gtk
#
from GUI.GStdMenus import build_menus, \
fundamental_cmds, help_cmds, pref_cmds, file_cmds, print_cmds, edit_cmds
_file_menu_items = [
("New/N", 'new_cmd'),
("Open.../O", 'open_cmd'),
("Close/W", 'close_cmd'),
"-",
("Save/S", 'save_cmd'),
("Save As...", 'sa... | [
"greg.ewing@canterbury.ac.nz"
] | greg.ewing@canterbury.ac.nz |
ee0b7cbd06e526b7ad0d7980f708e758270657a2 | 14028bea18dcd4f89fca2306bf51dcbf6acabb44 | /apps/integration_tests/common_utils.py | d23cc8a4493146422d5a6c06bf691dfcb65fe90a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | CMSgov/bluebutton-web-server | 5694c7149d9f2f6efed9a2814c928d8a7539e4cb | fb0904c0b9d77dfb00523fe6ce69b946b640441e | refs/heads/master | 2023-09-01T18:17:31.088628 | 2023-08-25T20:43:14 | 2023-08-25T20:43:14 | 50,062,960 | 30 | 33 | NOASSERTION | 2023-09-14T10:24:34 | 2016-01-20T21:52:00 | Python | UTF-8 | Python | false | false | 360 | py | import jsonschema
from jsonschema import validate
def validate_json_schema(schema, content):
try:
validate(instance=content, schema=schema)
except jsonschema.exceptions.ValidationError as e:
# Show error info for debugging
print("jsonschema.exceptions.ValidationError: ", e)
... | [
"noreply@github.com"
] | CMSgov.noreply@github.com |
9138c31ee317652eabf1ee589e61e86ae5032bfb | 2bc8f66fd34ba1b93de82c67954a10f8b300b07e | /general_backbone/models/layers/create_norm_act.py | 7dacb5716b417af629e4d3884c7a7a2a33f24805 | [] | no_license | DoDucNhan/general_backbone | 7dabffed5a74e622ba23bf275358ca2d09faddc1 | 686c92ab811221d594816207d86a0b97c9b4bc73 | refs/heads/main | 2023-08-31T14:59:23.873555 | 2021-10-23T06:34:14 | 2021-10-23T06:34:14 | 420,419,141 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,454 | py | # Copyright (c) general_backbone. All rights reserved.
""" NormAct (Normalizaiton + Activation Layer) Factory
Create norm + act combo modules that attempt to be backwards compatible with separate norm + act
isntances in models. Where these are used it will be possible to swap separate BN + act layers with
combined mod... | [
"phamdinhkhanh.tkt53.neu@gmail.com"
] | phamdinhkhanh.tkt53.neu@gmail.com |
adde65697129bed9d3d56bdc877c3f2e5bb50e91 | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/library-tests/filters/generated/antlr.py | 205dec24a165b37cd2b4c94f2173adbe6d27651c | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 199 | py | # $ANTLR 3.0.1 C.g 2010-02-23 09:58:53
from antlr3 import *
from antlr3.compat import set, frozenset
## @file
# The file defines the parser for C source files.
#
# THIS FILE IS AUTO-GENERATED.
#
## | [
"mark@hotpy.org"
] | mark@hotpy.org |
f10f74793d2a8eed86e7342ae89877e0b42a48c1 | 9d3b8d5f45e5407f3275542cf5792fd2510abfe4 | /Chapter4-Practice/ex_4_8.py | 5edb22a6d666a60de6eb103661065cbae7fab93a | [] | no_license | Beautyi/PythonPractice | 375767583870d894801013b775c493bbd3c36ebc | 9104006998a109dcab0848d5540fb963b20f5b02 | refs/heads/master | 2020-04-23T09:58:50.065403 | 2019-04-08T02:55:52 | 2019-04-08T02:55:52 | 171,088,504 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | cubes = []
for value in range(1, 10):
cube = value**3
cubes.append(cube)
for cube in cubes:
print(cube)#立方
| [
"1210112866@qq.com"
] | 1210112866@qq.com |
a68a6278e64adf9339d2f12f22fa82d006f4b5fe | bbc0a89093e2fe91d7abffcd1fa5054abbd2c9f5 | /apps/slow_log/crud.py | 163e67eca92fc60bfd21a510bcb998bfc596e84d | [] | no_license | linkpwd/sql_manage | 79d87be4cbc95c2c66cf92c6dfc190c1190b003e | 75d508f622dec1a248e617c649421828515acaca | refs/heads/master | 2023-07-08T14:53:44.729604 | 2021-08-20T03:28:07 | 2021-08-20T03:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,646 | py | from sqlalchemy.orm import Session, aliased
from sqlalchemy import or_
from apps.user.schemas import UserOut
from database.models import Workorder, User, Instance, Sqlrecord, Role, Workorder_data_export, Slowlogs
from fastapi import HTTPException
from utils.inception import inception, inception_host, inception_port, in... | [
"290070744@qq.com"
] | 290070744@qq.com |
499f785feac38b65c7b3223e841855fdb86b4f9c | f9a5e7233875989f994438ce267907d8210d60a1 | /test/wine_quality/metalearning/knn_ranking/l1_metric/k=3/forward_selection/wine_prediction_forward_AUCROC.py | ad46c827c46bb819c8242475026383504cea8ceb | [] | no_license | renoslyssiotis/When-are-Machine-learning-models-required-and-when-is-Statistics-enough | da8d53d44a69f4620954a32af3aacca45e1ed641 | 6af1670a74345f509c86b7bdb4aa0761c5b058ff | refs/heads/master | 2022-08-29T20:21:57.553737 | 2020-05-26T18:03:46 | 2020-05-26T18:03:46 | 256,439,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | import sys, os, pickle
from pathlib import PurePath
current_dir = os.path.realpath(__file__)
p = PurePath(current_dir)
sys.path.append(str(p.parents[7])+'/metalearners/knn_ranking_method/l1_metric')
from KNN_ranking_k_3 import KNN_ranking
#Load the selected meta-dataset after performing zero-variance threshold
with op... | [
"rl554@cam.ac.uk"
] | rl554@cam.ac.uk |
2ed6f9ab3b23ea8cd17d472f1a5600fc0ab84408 | 9d9d344835bb9c60a2675b300b6da275669a5c53 | /saral9.py | 94f293895beabe3abddb0e532566a25177b9834d | [] | no_license | pooja-pichad/dictionary | 7fd3c77e665d9bf0d6d778117857a4c61de7913f | 25ba5799c15e2656410a7d1ffa2e0499aa0b8d89 | refs/heads/main | 2023-07-03T11:36:22.274279 | 2021-07-20T07:03:45 | 2021-07-20T07:03:45 | 387,702,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # "MISSISSIPPI" iss word me har letter ki occurrency count karke ek dictionary me store karaye.
# Jisme letter dictionary ki keys aur occurrency Uss dictionary ki values hongi. Example:- Output :-
# {M:1,I:4,S:4,P:2}
# count = {"M":0,"I":0,"S":0,"P":0}
# word = "MISSISSIPPI"
# for i in word:
# if i == "M":
# co... | [
"noreply@github.com"
] | pooja-pichad.noreply@github.com |
db8ddb9fe743f9529c3beef55d02c944f23cd0e2 | efb5edf9fdeb1247c880998dfa258b4fc0387f64 | /global/SingleChannel.py | c74afcd1148840aa175f32984996559419a2a7a4 | [] | no_license | johndpope/text2image_manipulation | b93137d4dc039df90dce094541716ebb234dc8cd | ce32ed0e3055441002155f605bbd3d3f3421326d | refs/heads/main | 2023-07-14T15:19:07.653896 | 2021-08-19T04:03:46 | 2021-08-19T04:03:46 | 397,938,499 | 0 | 0 | null | 2021-08-19T12:39:17 | 2021-08-19T12:39:17 | null | UTF-8 | Python | false | false | 2,543 | py | import numpy as np
import torch
import clip
from PIL import Image
import copy
from manipulate import Manipulator
import argparse
def GetImgF(out,model,preprocess):
imgs=out
imgs1=imgs.reshape([-1]+list(imgs.shape[2:]))
tmp=[]
for i in range(len(imgs1)):
img=Image.fromarray(imgs1[... | [
"noreply@github.com"
] | johndpope.noreply@github.com |
3a87f2e85a4b6a42b44e926c7109af22465ce071 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1480487_0/Python/lomegor/problem.py | 9fd7f466e36c29b51318d49a6a8fce937a7ece1c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | #!/usr/bin/python
import sys
cases = int(sys.stdin.readline())
for case in range(1,cases+1):
points = map(int,sys.stdin.readline().rstrip().split(' '))
N = points[0]
points.remove(N)
w = []
tot = sum(points)
n = len(points)
extra = 0
for p in points:
x=(2*tot-p*n)/float(tot*n)
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
c536b01109ab1f70f3de4805802e1af77b5e8ae0 | e72c52755fbf2438ce8fb86ef50fdaba50038435 | /python/lib/mlutil.py | 746f9588b507da7556a5868033414cedbbc2f298 | [] | no_license | stjordanis/avenir | fce6accb2aaffab3a3be62d404c0036269e9d1c2 | d27dc947382c25799a15b567c48d5f7d7e195357 | refs/heads/master | 2023-03-28T05:26:59.354209 | 2021-03-22T02:58:52 | 2021-03-22T02:58:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,409 | py | #!/usr/local/bin/python3
# avenir-python: Machine Learning
# Author: Pranab Ghosh
#
# 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 ... | [
"pkghosh99@gmail.com"
] | pkghosh99@gmail.com |
ffa857241d669f56a70040d3de5e88ab2da995bd | 959a7b17884aa9af1d38d9c6b0afe2045a9be5d2 | /Arrays/Move Zeroes.py | 510d82b0d16a21c87af4c8fac1d0726611fe1b84 | [] | no_license | dumavit/leetcode | a1c998f4c56411b061995d939093b03f7aae366b | 866689f564125ca4152dc1b6b3d268991d7ec89a | refs/heads/master | 2022-02-07T20:44:17.388121 | 2022-01-31T21:02:28 | 2022-01-31T21:02:28 | 252,981,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from typing import List
class Solution:
def moveZeroes(self, nums: List[int]) -> None:
zeros_count, idx = 0, 0
while zeros_count+idx < len(nums):
nnext = nums[idx+zeros_count]
if nnext:
nums[idx] = nnext
idx += 1
else:
... | [
"vitalii.duma@corva.ai"
] | vitalii.duma@corva.ai |
910211f6c5bdf21be7f7a03b58e009cfaca6286a | 063d9f30f4a4d4492a704d7ac58bdb1f4dd12fd0 | /sdks/python/http_client/v1/polyaxon_sdk/models/v1_component_version.py | 168ea159902e995508a81185c235d82dc4f4f745 | [
"Apache-2.0"
] | permissive | binbinmeng/polyaxon | 01b370a76a50ef627eb400aec7ace466fe0c97ba | 93441a7270722f0059a4f8d873f818da00cc8e61 | refs/heads/master | 2023-02-14T00:42:27.099692 | 2021-01-05T00:22:35 | 2021-01-05T00:42:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,258 | py | #!/usr/bin/python
#
# Copyright 2018-2020 Polyaxon, 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 applicable ... | [
"contact@polyaxon.com"
] | contact@polyaxon.com |
7168807c5d8978382c2c6f4bdd5b579a16469367 | 5b0d9795e5d72420920c72818f19a274d09da32b | /brain_games/games/gcd.py | ddb3d176a77bbbc4eff5cd75a31fc1ac1003ce6a | [] | no_license | kotano/brain-games | 24ae45cb937467ac43361ca9bce792a95fca3c88 | 73653a28f7dde6c3d9a1c5c89f2f647b1217fd5d | refs/heads/master | 2022-04-08T19:40:13.913539 | 2020-02-29T22:55:59 | 2020-02-29T22:55:59 | 240,797,179 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from math import gcd # мне немного лень простите,
from random import randint # потом как нибудь в свободное время потренируюсь
RULE = 'Find the greatest common divisor of given numbers. '
def generate():
num1 = randint(1, 100)
num2 = randint(1, 100)
correct_answer = gcd(num1, num2)
questn... | [
"kot4no@gmail.com"
] | kot4no@gmail.com |
9c63e39631ac0df57b5bcd01a8d1d36a3bcb07ed | 6f1e1c378997bf76942ce6e203e720035169ce27 | /2-add-two-numbers.py | 1e8e964e7abf430c95bd26e96275ab05c7a226c5 | [
"MIT"
] | permissive | yuenliou/leetcode | a489b0986b70b55f29d06c2fd7545294ba6e7ee5 | e8a1c6cae6547cbcb6e8494be6df685f3e7c837c | refs/heads/main | 2021-06-16T07:47:39.103445 | 2021-05-11T09:16:15 | 2021-05-11T09:16:15 | 306,536,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | #!/usr/local/bin/python3.7
# -*- coding: utf-8 -*-
from datatype.list_node import ListNode
def addTwoNumbers(l1: ListNode, l2: ListNode) -> ListNode:
pre = ListNode(0)
cur = pre
carry = 0
while l1 or l2 or carry:
x = l1.val if l1 else 0
y = l2.val if l2 else 0
sum = x + y + ... | [
"liuyuan@aplum.com.cn"
] | liuyuan@aplum.com.cn |
d326d767711a4a247806c003792bad46ee1a4217 | bfd7281abe36e7fa0e3eea07a37dd9a0216952c6 | /Scripts/sims4communitylib/dialogs/choose_item_dialog.py | a02ab39e1c1685e0ecabdb07ef0068b908952e44 | [
"CC-BY-4.0"
] | permissive | heart04winds/Sims4CommunityLibrary | 996c6d2abfc2fc7be3a5d2f0e88898fa0e7fb25a | 4c9c352e8b3b64919019adc4eeac41ea04643352 | refs/heads/master | 2021-01-09T19:03:45.084810 | 2020-02-22T20:35:27 | 2020-02-22T20:35:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,228 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
import sims4.commands
from typing import Tuple, Any, Callab... | [
"ColonolNutty@hotmail.com"
] | ColonolNutty@hotmail.com |
1e0fcf18f7282af103fc83c7138e354984913fef | 57c62abd33f8b508e357ca8631a160ce85a7f340 | /ggNtuplizer/test/crab_submit/jobs/aNTGC_jjg_lo_h3z0p0015_ptmin950_ptmax1000_V1/crab_aNTGC_jjg_lo_h3z0p0015_ptmin950_ptmax1000_V1.py | d2d4856fb5fa19f6663136e49a03a5d6fcbd6dfe | [] | no_license | jainshilpi/aNTGC_ggNtuplizer | 8973ce3cdab293317fd928679b14038f03c10976 | 7153d73fbee35969dad0d85c6517e577a0546566 | refs/heads/master | 2022-09-18T07:39:40.246699 | 2020-04-20T13:03:20 | 2020-04-20T13:03:20 | 267,979,045 | 1 | 1 | null | 2020-05-30T00:09:36 | 2020-05-30T00:09:36 | null | UTF-8 | Python | false | false | 1,747 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
import sys
config = config()
#**************************submit function***********************
from CRABAPI.RawCommand import crabCommand
from CRABClient.ClientExceptions import ClientException
from httplib import HTTPException
def submit(config):
t... | [
"abrar.discloses@gmail.com"
] | abrar.discloses@gmail.com |
bfa13fe4c93bb1b4144f25cd306d9d5f264a2073 | 1dcd016b25b88a4bdb7525628b0772a366975fe6 | /LeetCodePython/113_Path_Sum_II.py | 12a33429ea134a0b3e4709ef6cb3a0e359925056 | [] | no_license | ClaytonStudent/leetcode- | 5bdee9214d67aa82e2c93e39697251390aeeb808 | e30d5e273915a40daeb300a3ed76fa555d0f6ee4 | refs/heads/master | 2022-11-07T23:12:14.024626 | 2020-06-20T10:50:51 | 2020-06-20T10:50:51 | 261,813,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | # source: https://leetcode.com/problems/path-sum-ii/discuss/36829/Python-solutions-(Recursively-BFS%2Bqueue-DFS%2Bstack)
def pathSum(self, root, sum):
if not root:
return []
res = []
self.dfs(root, sum, [], res)
return res
# 逐层往下,不断地扩充ls的值,最后满足条件的话,把它存储在res里面作为结果
def dfs(self, root, sum... | [
"chen.shaohang2046@gmail.com"
] | chen.shaohang2046@gmail.com |
746395893d420294b325ed3853abd09f617deb11 | 07e7118f4e477664101f900e0270ccfcb8fd1e9b | /PythonStubsApp/app/src/main/assets/python-src/app/__init__.py | b2d9610ab0cff4351d779643f691ebd8aab1e4c1 | [] | no_license | paulproteus/Python-Android-sample-apps | 1033d1dc2510420ff949b8da808bf3a860c3086a | a4123c58d51e0f57a04833f4b2db97f8cf961730 | refs/heads/master | 2020-12-09T01:05:05.555832 | 2020-05-06T16:13:14 | 2020-05-07T00:10:19 | 233,146,454 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | import datetime
import glob
import json
import os
import random
import urllib.request
import socket
from rubicon.java import JavaClass, JavaInterface
def print_int_list():
l = [random.randint(0, 99) for i in range(5)]
print("random integers from 0 to 99 (inclusive)")
print(">>> [random.randint(0, 99) for... | [
"asheesh@asheesh.org"
] | asheesh@asheesh.org |
5cd4e6ad4b5301b6683c55c055a735673c36668b | 79eddfdb8917eef80da141206aa48362642cac43 | /.history/cowsay/models_20200220143955.py | 0f7cf0bd9c10ed5c9da4ad02b7b5cedbce6b6e3f | [] | no_license | Imraj423/cowsay | 856b005d038e5357a7a8519d83b6f2ad44541b02 | 12e96471c1fdc342139ac221379c9f60138d8f40 | refs/heads/master | 2021-01-08T09:32:44.158358 | 2020-02-20T20:54:39 | 2020-02-20T20:54:39 | 241,987,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | from django.db import models
from django.utils import timezone
class Cow(models.Model):
text_input = models.TextField(max_length=30)
time = models.DateTimeField(default=timezone.now)
cow = ''
sat = '-f satanic'
gbs = '-f ghostbusters'
eww = '-f sodomized'
dra = '-f dragon'
CHOICE_LIST ... | [
"dahqniss@gmail.com"
] | dahqniss@gmail.com |
98a5915c9affdc43afcd8b3ae109fa7ea113c97e | 7713cabbddd22eb4ccfdb757c3820def721e3c07 | /runners/matisse_runner.py | b59a580d30b2ea7196c709a9bb4cbc2099dc4c08 | [] | no_license | hag007/nn_sb | bb652ba3adee503d7ecf272ced565165c5d9bea4 | 3b491efb648006b03ae04f603eb8c972e141271d | refs/heads/master | 2021-06-20T15:31:09.066580 | 2021-03-03T08:39:22 | 2021-03-03T08:39:22 | 168,480,686 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,143 | py | #!/usr/bin/env python
"""Calculate differentially expressed genes using EdgeR from bioconductor.
http://bioconductor.org/packages/2.5/bioc/html/edgeR.html
Usage:
count_diffexp.py <count_file>
"""
import sys
sys.path.insert(0, '../')
import os
import numpy as np
import pandas as pd
import subprocess
import json
f... | [
"hagai.levi.007@gmail.com"
] | hagai.levi.007@gmail.com |
312001a9673d509b2b6aecb47bf41c7ad7bc279f | 2801896c7fcd06e3cf4ae644fb9630857aac1626 | /migrations/versions/7ffa182f60ed_migration.py | 29b3b895a72501a0d315c7e2827371850a9a0005 | [
"MIT"
] | permissive | Koech-code/bookings | 9a9f9bd2c19705b5f66a5d2889b31b0d549f3ba0 | e164ba118de32e82dac9d9c69961df1eeb4d384c | refs/heads/master | 2023-07-15T04:20:07.359983 | 2021-08-28T15:31:30 | 2021-08-28T15:31:30 | 400,294,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """Migration
Revision ID: 7ffa182f60ed
Revises: None
Create Date: 2021-08-26 16:19:48.172464
"""
# revision identifiers, used by Alembic.
revision = '7ffa182f60ed'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
... | [
"nixon.koech@moringaschool.com"
] | nixon.koech@moringaschool.com |
36e55a32990c4b4e3d21b97274809fa1914a233f | 67f86317ff85d86f88e1cfb746c2d20f50f390c6 | /nma_algo_char/confSpaceOverlap.py | d2bb5761094edd69e881055c59b402fea726adbd | [
"MIT"
] | permissive | victor-gil-sepulveda/PhD-ANMPythonHelpers | e16d10b0df0d30394873943ecbb4b2fe24763fdf | c0e15684cce4aa4da90141b51f043a567a5f8655 | refs/heads/master | 2021-01-17T08:18:45.958930 | 2016-03-31T23:15:36 | 2016-03-31T23:15:36 | 30,361,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,764 | py | """
Created on Mar 7, 2016
@author: victor
"""
import sys
import json
import math
import numpy
from scipy.stats import entropy
from numpy.linalg import norm
import anmichelpers.tools.tools as tools
from pyproct.data.handler.protein.proteinEnsembleDataLoader import ProteinEnsembleDataLoader
from pyproct.data.matrix.pro... | [
"victor.gil.sepulveda@gmail.com"
] | victor.gil.sepulveda@gmail.com |
d9c72d06ad251c3f2eaecc0c8a6a8f62d1459805 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/operations/_bindings_operations.py | 97c0fc27c5c48d210d603a27242fd4bffe5d2d24 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 30,663 | 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"
] | yunhaoling.noreply@github.com |
6c31c173967e857c9d2ae9b755acd72a5ab6f33a | 9296c86b438860c76e64d54890b6688a498ba5c8 | /json_schema_generator2/generator.py | 0d5e85356b6d072e879737e83d759e39ee9c2540 | [] | no_license | weaming/json-schema-generator | c347d8406828f7b7bae84f190ae9426d82d613a7 | d8fdb5ac10da5dfc99dfc711fe3fd17add5cbb52 | refs/heads/master | 2020-03-21T13:27:23.495330 | 2019-05-28T11:16:29 | 2019-05-28T11:16:29 | 138,606,661 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | import os
import sys
import json
from pretty_format_json.format import get_text, parse_text
from collections import OrderedDict
from .types import entry
class Generator(object):
def __init__(self, data, include_origin=False, indent=2):
self.data = data
self.include_origin = include_origin
... | [
"garden.yuen@gmail.com"
] | garden.yuen@gmail.com |
6a82d0717eb3e7aa315b50d05c69d835efea66af | d4ecb20361ae0cceef19c11e80f807261f920ead | /src/patches/tarin.py | d1f9d745ada9763f432f4a7960ffa519827a4741 | [] | no_license | daid/LADX-Hackers-Toolbox | cf4617861b35049894befe174ebeb99408518f0c | b03e9e52bc4d7ae4ba2ace2f790d61e75a5d62a9 | refs/heads/master | 2023-04-30T18:05:24.500788 | 2021-05-19T18:29:56 | 2021-05-19T18:29:56 | 353,951,441 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | from assembler import ASM
from utils import formatText
def updateTarin(rom):
# Do not give the shield.
rom.patch(0x05, 0x0CD0, ASM("""
ld d, $04
call $5321
ld a, $01
ld [$DB44], a
"""), "", fill_nop=True)
# Instead of showing the usual "your shield back" message,... | [
"daid303@gmail.com"
] | daid303@gmail.com |
9b69b84be5b857d134f48ae18c890e34040fc6f4 | 963b4cf9fe1de845d994d0c8d3c9bb3def326b5b | /SomeProgs/Python Stuff/Coding Assignments/NumbersToMonths.py | 0856960b30942b5aa28387370d8e231049f6d837 | [] | no_license | lws803/cs1010_A0167 | aa727bdf029168238674d84ea6ce9c75905b8971 | 5759332364909ee1d2eb9c26b0d95d4dc153656f | refs/heads/master | 2022-03-13T02:52:26.488846 | 2019-11-14T20:53:15 | 2019-11-14T20:53:15 | 105,607,027 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # This is a progam to print the month to the corresponding number
def main():
months = "JanFebMarAprMayJunJulAugSepOctNovDec"
print("This program prints the month corresponding to the number input")
month_n = eval(input("Input the month in \"mm\" format: "))
if month_n == 1:
print("This n... | [
"omnikron96@gmail.com"
] | omnikron96@gmail.com |
9081427825f2979b2228c749b494123d4984937c | ea4e3ac0966fe7b69f42eaa5a32980caa2248957 | /download/unzip/pyobjc/pyobjc-14.1.1/pyobjc/sandbox/pyobjc-metadata/Lib/PyObjCMetaData/tokenize_header.py | ce774cc19dc4f7ffd35e09114e5e9049f6ebe991 | [
"MIT"
] | permissive | hyl946/opensource_apple | 36b49deda8b2f241437ed45113d624ad45aa6d5f | e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a | refs/heads/master | 2023-02-26T16:27:25.343636 | 2020-03-29T08:50:45 | 2020-03-29T08:50:45 | 249,169,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,852 | py | #
# This module tries to scan header files using a regexp-based parser.
#
from scanner import *
from textwrap import dedent
import re
TYP_PTR = re.compile(r'\s+\*')
SPACE_NORMALIZE = re.compile(r'\s+')
#type mapping 'const unsigned char * ConstStringPtr' -> 'unsigned char* ConstStringPtr'
#type mapping 'unsigned ch... | [
"hyl946@163.com"
] | hyl946@163.com |
c336453f33b2c70ee6144b1be36ac1a8d9e731dd | 6203b9132af8f78c6cb12242bd223fa17d14f31e | /leetcode/jian-zhi-offer/15.py | 956ead1e49d218618324ce6193d6e7420604b9b6 | [] | no_license | joshuap233/algorithms | 82c608d7493b0d21989b287a2e246ef739e60443 | dc68b883362f3ddcfb433d3d83d1bbf925bbcf02 | refs/heads/master | 2023-08-23T12:44:42.675137 | 2021-09-28T02:37:01 | 2021-09-28T02:37:01 | 230,285,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # https://leetcode-cn.com/problems/er-jin-zhi-zhong-1de-ge-shu-lcof/
# 剑指 Offer 15. 二进制中1的个数
class Solution:
def hammingWeight(self, n: int) -> int:
s = bin(n)
return s.count('1')
class Solution1:
def hammingWeight(self, n: int) -> int:
# 注意负数的处理
b = abs(n)
i = 0
... | [
"shushugo233@gmail.com"
] | shushugo233@gmail.com |
2070c4a0481a74769e16fb71417ffb4b7e044e83 | fd7ed3266a6f802289508e5721b2bcd354763748 | /sensors.py | 9b813f53e32e82ef7ccca022c7d9eb630997544e | [] | no_license | ec500-software-engineering/exercise-1-modularity-jbw0410 | 817628ca81cb784c6da372ed3637bace4f36180b | 9bbc6beb322c245fd4bca1d2d355861fd16d9d98 | refs/heads/master | 2020-04-22T02:57:27.675676 | 2019-02-14T19:28:11 | 2019-02-14T19:28:11 | 170,068,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import random
'''
These classes model drivers that provide discrete readings of hardware
'''
class BloodPressureSensor(object):
@staticmethod
def get_blood_pressure_data():
'''
Credit to eunghee@bu.edu
:return:
'''
return random.randint(70, 140), random.r... | [
"noreply@github.com"
] | ec500-software-engineering.noreply@github.com |
c163e1020ebaa939f3cb0c3bd721c0653b7b86e8 | ad4c2aa0398406ccb7e70562560e75fa283ffa1a | /contiguous-array/contiguous-array.py | 9ab08476f48c9f3c47ad5c5d8a4e98e14fc827cd | [
"Apache-2.0"
] | permissive | kmgowda/kmg-leetcode-python | 427d58f1750735618dfd51936d33240df5ba9ace | 4d32e110ac33563a8bde3fd3200d5804db354d95 | refs/heads/main | 2023-08-22T06:59:43.141131 | 2021-10-16T14:04:32 | 2021-10-16T14:04:32 | 417,841,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | // https://leetcode.com/problems/contiguous-array
class Solution(object):
def findMaxLength(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
count = 0
max_length=0
table = {0: 0}
for index, num in enumerate(nums, 1):
if num == 0:
... | [
"keshava.gowda@gmail.com"
] | keshava.gowda@gmail.com |
815fee9d917b1958a961268c671e3051d0ac931c | 891371ebcb696b91df1d00f98cb595608b580d34 | /cases/migrations/0028_casetask_complete.py | 448904c0ab860d80b3332c40f34233b0eaf657f3 | [] | no_license | NiiColeman/law-firm | 867df413e9ca30c57afad9d2743fe19ab96ba586 | f41ee5ac88d3f640dce720c90cbfefb93a267400 | refs/heads/master | 2022-09-23T22:52:25.312903 | 2020-06-01T14:30:24 | 2020-06-01T14:30:24 | 241,650,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.2.6 on 2020-02-25 13:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cases', '0027_casefile_date_added'),
]
operations = [
migrations.AddField(
model_name='casetask',
name='complete',
... | [
"nii.cole@outlook.com"
] | nii.cole@outlook.com |
94ad3208d7fdf16142065d8ac727de2917515903 | bad130b7b6489a1e870e2707c3108a218be10602 | /tools/PAN17TruthLoader.py | 1e52b51cf8883dcad43e6b42b28a4c2acd088766 | [] | no_license | nschaetti/PAN-CLEF17 | c6f37e4e9bdb75419fe912bcdc17c7716446c0c0 | 8948529f8fe0e31243a5a0287940436d67fea81c | refs/heads/master | 2021-03-16T09:19:27.056904 | 2017-06-20T16:19:04 | 2017-06-20T16:19:04 | 84,322,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File : core/downloader/PySpeechesConfig.py
# Description : .
# Date : 20th of February 2017
#
# This file is part of pySpeeches. pySpeeches is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by ... | [
"n.schaetti@gmail.com"
] | n.schaetti@gmail.com |
4c476884135069893d3d0efefea2894d6c281552 | eb8cd7d9374200bb1a30d1e1fe98a90ff723d026 | /src/operator-dashboard/modules/user/management/list.py | 00892a19a06bbe9d3fd69042fc2166c067de23aa | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ecsoya/cello | 9816392eea4ae2e1761b49caf6ac3229915b520e | 57f12abd9ae9a8c1997d791fa5de2525ce8530e9 | refs/heads/master | 2020-06-12T03:29:56.054788 | 2019-06-17T16:10:32 | 2019-06-18T03:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py |
# Copyright IBM Corp, All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
import logging
import os
import sys
from flask import g
from flask_restful import Resource, reqparse, fields, marshal_with
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from common import log_handler, LO... | [
"hightall@me.com"
] | hightall@me.com |
65fe111b8e6a86d09a81da53e8980c47e7b1bbb7 | 4036b33e022b3ad7e631ee097c6abc6ae7dcc890 | /rhea/system/__init__.py | 35f20315351882c36b45e1361b2ba570be67f874 | [
"MIT"
] | permissive | hgomersall/rhea | 5490e463f492c7375fd40c00a4a9d585eac878c1 | 5c9f0139091df95ea824884ed7c287c5992cf472 | refs/heads/master | 2020-12-25T08:37:06.346994 | 2016-02-25T12:31:02 | 2016-02-25T12:31:02 | 52,529,794 | 1 | 0 | null | 2016-02-25T14:13:35 | 2016-02-25T14:13:35 | null | UTF-8 | Python | false | false | 700 | py |
from __future__ import absolute_import
# these are mainly used by the tests and simulation
from .const import timespec
from .const import ticks_per_ns
# small wrappers to include specific attributes
from .clock import Clock
from .reset import Reset
from .glbl import Global
from .memmap import ControlStatus
from .me... | [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
ff03a6a8312106a0023145311c1716826d6a5a34 | 2e4994fbbed4341772f33126857ad50586ffb1da | /8.oop.design.py | eac03d7cb9014a54f796ecba39069fe13091fd04 | [] | no_license | yyyuaaaan/ctci5th | 5bb6b5f9f55a699ed17d0e1c577acbab6c9e78b8 | df4ee9b52ee7931f4b91fb0699e7e6d14738b771 | refs/heads/master | 2021-01-01T16:05:06.273872 | 2014-03-11T00:02:33 | 2014-03-11T00:02:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,301 | py | """"""
"""
8.1 Design the data structures for a generic deck of cards. Explain how you would
subclass the data structures to implement blackjack(twenty-one).
Get 21 points on your first two cards (called a blackjack), without a dealer blackjack;
Reach a final score higher than the dealer without exceeding 21; or
Let... | [
"yyyuaaaan@gmail.com"
] | yyyuaaaan@gmail.com |
86b009bcc66d93a696684fb7018e93ace4e34446 | 555cf712793ecf24ee32b3b8193b88f9380b6681 | /cybox-2.0.0b6/cybox/common/__init__.py | 0b9d712a409de301ef3d9e01545fa47785eb83b7 | [] | no_license | bopopescu/crits_dependencies | b198d45d75d0ce2f60867d26bd4fda232fa5b78a | 112e380b203069fe97e13a20bce1e926ffe18ba5 | refs/heads/master | 2022-11-21T15:01:42.761440 | 2014-06-02T22:18:38 | 2014-06-02T22:18:38 | 282,258,349 | 0 | 0 | null | 2020-07-24T15:43:44 | 2020-07-24T15:43:43 | null | UTF-8 | Python | false | false | 550 | py | # Copyright (c) 2013, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
from properties import *
from vocabs import VocabString
from object_properties import ObjectProperties
from structured_text import StructuredText
from hashes import Hash, HashList, HashName
from tools import ToolInf... | [
"mgoffin@mitre.org"
] | mgoffin@mitre.org |
0996554dbd63acfdc61f916e043e2df928a76e59 | 13edd8f1bc3b86fd881f85fbeafe94811392d7fc | /seventh_module/CRM/28.stark组件开发之批量操作/luffy_stark/stark/service/v1.py | 005b346f4824458f5a260e5ec62fe6e53f6ba739 | [] | no_license | ryan-yang-2049/oldboy_python_study | f4c90c9d8aac499e1d810a797ab368217f664bb1 | 6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f | refs/heads/master | 2022-07-22T23:49:28.520668 | 2019-06-11T13:26:25 | 2019-06-11T13:26:25 | 129,877,980 | 0 | 1 | null | 2022-07-18T17:12:54 | 2018-04-17T09:12:48 | HTML | UTF-8 | Python | false | false | 13,287 | py | # -*- coding: utf-8 -*-
import functools
from types import FunctionType
from django.conf.urls import url
from django.shortcuts import HttpResponse, render, redirect
from django.urls import reverse
from django.utils.safestring import mark_safe
from django.http import QueryDict
from stark.utils.pagination import Pagina... | [
"11066986@qq.com"
] | 11066986@qq.com |
176a92f2c9f5e0c499c4c20996f5a25cbe762963 | 63c5ba9884428c4abae6b3ce9783a0652a717ec5 | /radish/testing/__main__.py | 0769ff07ad6d6e889719f4c0c7cfb48bf213e6fa | [
"MIT"
] | permissive | cle-b/radish | b240d3ac9364b91ced61e6fdeb1a9333916f4ce3 | ea1b3a0a8a2639e2e3aed9a3ad5b0d38d0be9d9f | refs/heads/master | 2021-01-23T23:04:04.612582 | 2017-09-08T07:47:34 | 2017-09-08T07:47:34 | 102,954,516 | 0 | 0 | null | 2017-09-09T12:51:17 | 2017-09-09T12:51:16 | null | UTF-8 | Python | false | false | 1,868 | py | # -*- coding: utf-8 -*-
"""
This module provides a script to test the
radish step implementations
"""
import sys
import colorful
from docopt import docopt
from radish import __VERSION__
from radish.testing.matches import test_step_matches_configs
# use only 8 ANSI colors
# FIXME(TF): change to true colors!
colorf... | [
"tuxtimo@gmail.com"
] | tuxtimo@gmail.com |
6aafb783447ebf71e6e7e2cce8ade10eac49db96 | 53b1cf89f3ac00d86add6dc6e103160d50e1b4ea | /pgadmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/tests/__init__.py | aa01297a7cbb45332e881bd68c1ad366c2ec9ac5 | [
"PostgreSQL"
] | permissive | luvres/armhf | b5e9e59c0e5db7f4a280242a0d940c4066a47716 | aa1ec48e246f1fb8e0f4099fa8d392eddcb414ad | refs/heads/master | 2021-10-01T19:08:53.395884 | 2018-11-28T17:57:42 | 2018-11-28T17:57:42 | 79,672,248 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # ##########################################################################
#
# #pgAdmin 4 - PostgreSQL Tools
#
# #Copyright (C) 2013 - 2016, The pgAdmin Development Team
# #This software is released under the PostgreSQL Licence
#
# ##########################################################################
from pgadm... | [
"luvres@hotmail.com"
] | luvres@hotmail.com |
3cdb2c3b717ed9fe998b41b244abff6f9cc63c54 | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /lib/galaxy/datatypes/chrominfo.py | 3f20a5f2dbcbf86aae70ca0f5e7c149b693f906a | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 478 | py | import data
from galaxy import util
from galaxy.datatypes.sniff import *
from galaxy.web import url_for
from tabular import Tabular
from galaxy.datatypes import metadata
from galaxy.datatypes.metadata import MetadataElement
class ChromInfo( Tabular ):
file_ext = "len"
MetadataElement( name="chrom", default=1,... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
9386cd8f898e7eaced93d07236fffa5d09a81ef9 | 070dc1e2c5643ef9ae80b24f56cf7b6624f65818 | /video_prediction/datasets/base_dataset.py | 4124e52bf243e6dce33ca3471e828146a812d955 | [
"MIT"
] | permissive | anestisdotpy/video_prediction | 9091661e9d56460e6d1dab9e1e774a8ff81241bd | e9aecb8171123c1fe673a1f16864e3554c386cc5 | refs/heads/master | 2020-06-23T02:47:24.487425 | 2019-07-23T18:02:32 | 2019-07-23T18:02:32 | 198,482,843 | 0 | 0 | MIT | 2019-07-23T17:59:23 | 2019-07-23T17:59:22 | null | UTF-8 | Python | false | false | 23,824 | py | import glob
import os
import random
import re
from collections import OrderedDict
import numpy as np
import tensorflow as tf
from tensorflow.contrib.training import HParams
class BaseVideoDataset(object):
def __init__(self, input_dir, mode='train', num_epochs=None, seed=None,
hparams_dict=None, ... | [
"alexleegk@gmail.com"
] | alexleegk@gmail.com |
d1cddc2b1b924a642d71c87ec5525db45bac221b | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/tseries/frequencies/test_frequencies.py | 0441b3586a1e02ada633134c6af704297f428d4f | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 834 | py | import pytest
from pandas._libs.tslibs import offsets
from pandas.tseries.frequencies import is_subperiod, is_superperiod
@pytest.mark.parametrize(
"p1,p2,expected",
[
# Input validation.
(offsets.MonthEnd(), None, False),
(offsets.YearEnd(), None, False),
(None,... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
033a6cd9468fdd2fcc586f34c200fa911abdd424 | b997b1e19f7dff793b8fc41d79d49e0adf03cd24 | /examples/plot/random_search_verification.py | 0e2a206cf73f55a27acad0184741cde27021a352 | [
"BSD-3-Clause"
] | permissive | janvanrijn/openml-pimp | d94526d257860387dc86a21e3e94561850cb82e6 | 349043fb324a29e2ee5463d1c85bfd40213fe4fe | refs/heads/master | 2022-03-17T01:39:57.006906 | 2022-02-23T07:11:43 | 2022-02-23T07:11:43 | 95,698,193 | 13 | 9 | BSD-3-Clause | 2019-12-24T13:44:08 | 2017-06-28T18:13:17 | Python | UTF-8 | Python | false | false | 5,468 | py | import argparse
import arff
import collections
import copy
import csv
import json
import io
import os
import openml
import openmlpimp
import pandas as pd
import pickle
# Mounting CMD: sshfs fr_jv1031@login1.nemo.uni-freiburg.de:/home/fr/fr_fr/fr_jv1031 ~/nemo/
def parse_args():
all_classifiers = ['adaboost', 'dec... | [
"janvanrijn@gmail.com"
] | janvanrijn@gmail.com |
4ea04a1beb6ea729b536ae2186ed9adf427b7b32 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res_bw/scripts/common/lib/codecs.py | 3663c01fc92182d1c2fdafe4a7276c6a9bdca3dd | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 32,447 | py | # 2016.02.14 12:45:16 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/codecs.py
""" codecs -- Python Codec Registry, API and helpers.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
import __builtin__, sys
try:
from _codecs import *
... | [
"info@webium.sk"
] | info@webium.sk |
3de01483a53e8b3930d1d646c5846c8bd61f2251 | bf56aceabd2457d84fae4a163870f0c8c65f2f53 | /_legacy/scripts/collect_images.py | d48d612432e6d1b665e3f0ffe767b44b85e36419 | [] | no_license | abhay-venkatesh/unreal-cv-data | 27f7a33b61a2f320ebb03398f7695a74743a131f | d3fef2324326ca0e00f72808b9d5f5a9b4c0fc3a | refs/heads/master | 2021-10-30T06:49:27.954209 | 2019-04-25T19:09:44 | 2019-04-25T19:09:44 | 107,062,592 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,646 | py | from __future__ import division, absolute_import, print_function
import os, sys, time, re, json
import numpy as np
import random
import matplotlib.pyplot as plt
from PIL import Image
import StringIO
import json
import cv2
imread = plt.imread
def imread8(im_file):
''' Read image as a 8-bit numpy array '''
im = ... | [
"abhay.venkatesh@gmail.com"
] | abhay.venkatesh@gmail.com |
919b85b71f755b150d96bda835a6315c3ad88852 | 8415889a4378c21bb7ba74bca4ca34ad2f4d7fdd | /99_misc/1003/src/03/no28.py | fce668d95fa395094753551e2ddc55ee6755ee42 | [] | no_license | murayama333/pg19 | b3d71cd44f02fde55549527c6ae4e6c205fc3265 | dac1be575ae275f319eb53acd6b7d2f581fc7f42 | refs/heads/master | 2020-06-14T21:00:11.412623 | 2020-02-19T23:10:19 | 2020-02-19T23:10:19 | 195,124,569 | 1 | 4 | null | 2020-02-19T23:10:20 | 2019-07-03T20:49:37 | PHP | UTF-8 | Python | false | false | 160 | py | # no28.py
english = int(input())
math = int(input())
science = int(input())
if english >= 80 or math >= 80 or science >= 80:
print("OK")
else:
print("NG") | [
"murayama333@gmail.com"
] | murayama333@gmail.com |
d2179cd9b8ba00c09161f34c6344de01b05419ae | ce5ce3764e75774c0b7eab47893987b9f311b1b9 | /.history/moments/models_20210606000825.py | c40e08bb86c150f13aceefe89c3d3187565b33ee | [] | no_license | iSecloud/django-wechat | 410fb8a23b50dc2343c2f0167bbae560bf6e9694 | faaff9bb7f9454a63b2f8411d3577169b470baad | refs/heads/main | 2023-05-15T06:53:16.252422 | 2021-06-07T14:00:35 | 2021-06-07T14:00:35 | 374,685,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class WeChatUser(models.Model):
user = models.OneToOneField(User, models.CASCADE)
motto = models.CharField(max_length=100, null=True, blank=True)
pic = models.CharField(max_length=50, null=True, blank... | [
"869820505@qq.com"
] | 869820505@qq.com |
f257ef3adf85776fc09095799aa1e1096e74eb02 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /waf_read_1/byte-match-set_get.py | 5e9f1c22099ed1537c645d746ba14e705c042225 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/waf/get-byte-match-set.html
if __name__ == '_... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
72c0c0d419c56f7e8a44564259c4a8fa0749c9ab | e3840576e475c42160e914487ba91c1defc0b42f | /abc_163_A.py | da5d140416c42f09f971425075391e94852b9095 | [] | no_license | Kuroboo100/atcoder | 35f92e1a6001430bd96535799594573add78f5db | 280562ef3f963b24f79b56204ba5a1b35ce84b69 | refs/heads/master | 2022-11-25T13:17:02.280672 | 2020-08-03T13:36:40 | 2020-08-03T13:36:40 | 269,625,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | R=int(input())
print(2*R*3.141) | [
"yuki.kubota.0223@gmail.com"
] | yuki.kubota.0223@gmail.com |
56fe1ed59e721d051a663b3dbcbc309e5e4528e2 | 9d74cbd676e629f8acdc68a4bac3dea0a98b9776 | /yc287/1433.py | 8074995306af13e8df71467ebe83776f47f98c96 | [
"MIT"
] | permissive | c-yan/yukicoder | 01166de35e8059eaa8e3587456bba52f35bd0e44 | dcfd89b0a03759156dcea8c2e61a7705543dc0d4 | refs/heads/master | 2022-03-20T06:50:48.225922 | 2022-02-25T15:48:50 | 2022-02-25T15:48:50 | 237,735,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | N = int(input())
S = input()
a = list(map(int, input().split()))
result = 0
minv = 0
maxv = 0
v = 0
for i in range(N):
if S[i] == 'R':
v += a[i]
elif S[i] == 'B':
v -= a[i]
result = max(result, abs(v - minv))
result = max(result, abs(v - maxv))
minv = min(minv, v)
maxv = max(max... | [
"c-yan@users.noreply.github.com"
] | c-yan@users.noreply.github.com |
2203b2f8ddfe69d9ea2d22c95a4015ef75341535 | 203fd0a2a91ee063736d11b069e11026c4184ec5 | /tools/test_files/all_17_or_less/one-two-three-v3_101.py | 4a239d7dfd15605c470eba86cece5f22d1f2af33 | [
"Apache-2.0"
] | permissive | Astlaan/OpenQL | 19b35200775367e6f11d1756e9495c1883a1c531 | 1b60d5784d439e6c19e662b570114aa1b3045d38 | refs/heads/develop | 2020-09-01T02:56:37.906564 | 2019-11-15T15:43:55 | 2019-11-15T15:43:55 | 181,012,110 | 0 | 0 | NOASSERTION | 2019-04-12T13:18:51 | 2019-04-12T13:18:51 | null | UTF-8 | Python | false | false | 4,472 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"diogovalada.7@tecnico.ulisboa.pt"
] | diogovalada.7@tecnico.ulisboa.pt |
5d4c7e8c5799187436efd1cc1d578fb922574937 | 7e98a8b31cc2fecf8384f4590f27540f7280659a | /v1/DynamicProgramming/dy_lead_changes.py | 09e613d8596dc87683d3a62925d828b58d822f52 | [] | no_license | darraes/coding_questions | 62a07a6ede884fd0e3596f3dac8f50e11fd8676e | 70dcc3b859db673c39c3cf55aeb463d2bd822ed9 | refs/heads/master | 2021-01-21T07:21:18.033321 | 2020-06-15T16:25:11 | 2020-06-15T16:25:11 | 91,611,595 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,948 | py | # Question http://www.careercup.com/question?id=5659765149532160
# BEST SOLUTION
def improved_dp(high, low, points, cache):
if high == 0 and low == 0: return 0
if high < 0 or low < 0: return -1
if cache.has_key((high, low)): return cache[(high, low)]
current_max = 0
for point in points:... | [
"daniel.arraes@gmail.com"
] | daniel.arraes@gmail.com |
0ae801e5965ce7ec146b5c34856d6ba414fccc64 | c4b7399a10b7f963f625d8d15e0a8215ea35ef7d | /74.搜索二维矩阵.py | 5a51ef8e4238923ebc9a2b70741e3de82aa85aa4 | [] | no_license | kangkang59812/LeetCode-python | a29a9788aa36689d1f3ed0e8b668f79d9ca43d42 | 276d2137a929e41120c2e8a3a8e4d09023a2abd5 | refs/heads/master | 2022-12-05T02:49:14.554893 | 2020-08-30T08:22:16 | 2020-08-30T08:22:16 | 266,042,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | #
# @lc app=leetcode.cn id=74 lang=python3
#
# [74] 搜索二维矩阵
#
# https://leetcode-cn.com/problems/search-a-2d-matrix/description/
#
# algorithms
# Medium (37.59%)
# Likes: 142
# Dislikes: 0
# Total Accepted: 35K
# Total Submissions: 93K
# Testcase Example: '[[1,3,5,7],[10,11,16,20],[23,30,34,50]]\n3'
#
# 编写一个高效的算法... | [
"596286458@qq.com"
] | 596286458@qq.com |
e7197c294d7be6e125b68f28fca47c1c517ecc9c | 86fc644c327a8d6ea66fd045d94c7733c22df48c | /scripts/managed_cpe_services/customer/wanop_services/type2_site/type2_site/wanop_primary/service_customization.py | 640734218782344960ca314aa9701c7223f9b4f6 | [] | no_license | lucabrasi83/anutacpedeployment | bfe703657fbcf0375c92bcbe7560051817f1a526 | 96de3a4fd4adbbc0d443620f0c53f397823a1cad | refs/heads/master | 2021-09-24T16:44:05.305313 | 2018-10-12T02:41:18 | 2018-10-12T02:41:18 | 95,190,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,358 | py | #
# This computer program is the confidential information and proprietary trade
# secret of Anuta Networks, Inc. Possessions and use of this program must
# conform strictly to the license agreement between the user and
# Anuta Networks, Inc., and receipt or possession does not convey any rights
# to divulge, reproduce,... | [
"sebastien.pouplin@tatacommunications.com"
] | sebastien.pouplin@tatacommunications.com |
3fa19bfa16c409692611a48d2cd4f1dfc97246f1 | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/applications/structural_application/test_examples/arc_length.gid/arc_length_build_reference.py | 7355b24ffe40eb10978615336c3d374b7a53adb6 | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
import sys
kratos_benchmarking_path = '../../../../benchmarking'
sys.path.append(kratos_benchmarking_path)
import benchmarking
print("Building reference data for arc_length_des_benchma... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com |
3fc3573fe50b255e7c915c3d6e653125859cd4a8 | 1e257878ee164e19929e6096d85fecb5d71887b4 | /tests/grammar/test_2_short_stmt.py | 6018c7e5556585672cc23006fa37bb0a1c700238 | [
"Zlib"
] | permissive | lhyhb/python_lite | 62312218c5434745634cd0e0ee8a14c115d3708d | f59850b6093ec8260d96302af25c2bc3bdababc9 | refs/heads/master | 2021-06-11T08:01:15.589739 | 2017-03-04T15:50:59 | 2017-03-04T15:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py |
# value assign
a = 1
简蟒 = 2
a2, b2 = 1, 2
[a3, b3] = 1, 2
(a4, b4) = 1, 2
a, b = b, a = a4, b4
a, b = b, a
a5, b5 = b5, a5 = 1, 2
# not support
# a,b = x = 1,2
# misc
pass
assert 1
assert 1,2
# operator
not 1
not True
not False
True is not False
1 or 2
1 and 0 or 2
a == 1
a != 1
a < 2
a <= 2
a > 2
a >= 2
a =... | [
"fy0@qq.com"
] | fy0@qq.com |
93fa5d1489490b196a1704e86f4e48b946ab4cc9 | 1ba8e69789536ca0bb3a02966492e3d827323cba | /app/forms.py | 124a1892c32f14953656ec80aaaa3d92e24a6f6a | [] | no_license | harshadvali11/testing1 | d991c3780f02f5acbb5426884ebb771e7eec5b04 | 8e414f3d8483395897769758c82ce4e0ffa11edb | refs/heads/master | 2022-12-17T20:36:24.359727 | 2020-09-27T00:05:06 | 2020-09-27T00:05:06 | 298,800,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from django import forms
from django.core import validators
class Form(forms.Form):
name=forms.CharField(max_length=39,validators=[validators.MaxLengthValidator(6)])
number=forms.IntegerField(validators=[validators.MaxValueValidator(11)])
phone=forms.CharField(max_length=10,min_length=10,validators=[valid... | [
"66057460+harshadvali11@users.noreply.github.com"
] | 66057460+harshadvali11@users.noreply.github.com |
906fe1850680e9fd2f5208fe49665c1ccd60b88b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_prisoners.py | 4f75ec5b2eaf64b56a155ec03a33b8bf66d89ad9 | [
"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 | 252 | py |
from xai.brain.wordbase.nouns._prisoner import _PRISONER
#calss header
class _PRISONERS(_PRISONER, ):
def __init__(self,):
_PRISONER.__init__(self)
self.name = "PRISONERS"
self.specie = 'nouns'
self.basic = "prisoner"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
770628a6d0fadf14ae68ea76670b3231c9dad8a1 | a9e3e630ba20f4468f5fced75ba744cf81196c43 | /webstruct/tests/test_crfsuite.py | f846f84738fee3c49bade9587dfafe9e5ffeedf1 | [] | no_license | huum4n/webstruct | f2412700109abaf4778619adad23119eff5425ff | 19d559ded7e5eb6be49a709e55ead0ce13dc3074 | refs/heads/master | 2023-08-25T07:54:06.507144 | 2021-10-08T13:32:35 | 2021-10-08T13:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,668 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import os
import unittest
import pickle
import tempfile
import webstruct
from webstruct.features import EXAMPLE_TOKEN_FEATURES
from webstruct.crfsuite import create_crfsuite_pipeline
from webstruct.metrics import bio_classification_report
from webstruct.mo... | [
"kmike84@gmail.com"
] | kmike84@gmail.com |
d91147c60b2530c46c7ec83f49505adbcecf413a | 1816378da612c7db376934b033e4fd64951338b6 | /gui/services/migrations/0058_auto__add_field_cifs_cifs_srv_homedir_aux__chg_field_cifs_cifs_srv_smb.py | d634386fa1652ca9e205ec9dae9cc6e4cdc57876 | [] | no_license | quater/freenas-9.2-xen | 46517a7a23546764347d3c91108c70a8bd648ec6 | 96e580055fa97575f0a0cb23a72495860467bcfb | refs/heads/master | 2021-01-16T22:21:38.781962 | 2014-02-07T05:59:13 | 2014-02-07T05:59:13 | 16,609,785 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,581 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'CIFS.cifs_srv_homedir_aux'
db.add_column('services_cifs', 'cifs_srv_homedir_aux', self.gf(... | [
"william88@gmail.com"
] | william88@gmail.com |
d3877b8fecd3b18eae5ede9b2b60bcdd9e09f93f | 802ceea4c246a04ce56d6cb7fbd7875ae892ccd3 | /problems/0224.basic-calculator/basic-calculator.py | 11ca19c2371fafc7eb05f56477001079adea1e13 | [] | no_license | tirsott/lc-go | dc5f828a77d1542cfa047ec88ca38fa73b7055c8 | 9ae68ada9f63483323cdeaa0f7da3410a0669371 | refs/heads/master | 2021-07-16T00:46:07.714403 | 2020-11-13T07:15:05 | 2020-11-13T07:15:05 | 224,170,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212,739 | py | class Solution:
def calculate(self, s: str) -> int:
stack = []
flag = True
res = 0
i = 0
while i < len(s):
if s[i] == ' ':
i += 1
continue
if s[i] in '+-':
stack.append(s[i])
elif s[i] == '(':... | [
"t-huyahui@atman360.com"
] | t-huyahui@atman360.com |
672dbb369dc5a1ced8c7c706c3b141cd10662d44 | 4ba9a6274d78ff47bc00920be790b62390fc8f42 | /189旋转数组.py | fecec3c3b948a9abe10d3404aa8cef96ce82fe44 | [] | no_license | wzwhit/leetcode | 02b04f9f354de321a32d8e5b93f20a527100cca5 | e732ee7e99a015a0d124677ab73fb58fc8e64b59 | refs/heads/master | 2020-04-26T03:02:06.380171 | 2019-08-23T04:04:42 | 2019-08-23T04:04:42 | 173,253,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # 给定一个数组,将数组中的元素向右移动 k 个位置,其中 k 是非负数。
# 示例 1:
# 输入: [1,2,3,4,5,6,7] 和 k = 3
# 输出: [5,6,7,1,2,3,4]
# 解释:
# 向右旋转 1 步: [7,1,2,3,4,5,6]
# 向右旋转 2 步: [6,7,1,2,3,4,5]
# 向右旋转 3 步: [5,6,7,1,2,3,4]
# 示例 2:
# 输入: [-1,-100,3,99] 和 k = 2
# 输出: [3,99,-1,-100]
# 解释:
# 向右旋转 1 步: [99,-1,-100,3]
# 向右旋转 2 步: [3,99,-1,-100]
... | [
"1064951590@qq.com"
] | 1064951590@qq.com |
15a256c50695d8b64136bf7c8b79ead21bc58caf | f068b88b74e3735640f04396c6da497eb35d5b45 | /stories/migrations/0011_category_story_count.py | 715094edbce85e0b6d532dae01f788e3fe4fd73e | [] | no_license | cproctor/palyapp_server | 86cb77d35dab00f5837840757470a0a87182e195 | 312541ea07bd91caa30465a8372beb54577fec93 | refs/heads/master | 2020-07-13T03:02:18.873292 | 2018-04-05T19:39:35 | 2018-04-05T19:39:35 | 66,875,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-19 21:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stories', '0010_auto_20160915_1702'),
]
operations = [
migrations.AddField(... | [
"chris.proctor@gmail.com"
] | chris.proctor@gmail.com |
16a559a1cd899fe0e2a7b935b64efbdd3fbf01c4 | ceb7a9339446364de511255aaa6015255857c397 | /setup.py | af5c054ab89db60bbc01ef157b7619231c3e7a5b | [
"BSD-3-Clause"
] | permissive | CoastSunny/dyfunconn | c1cfc540cc8a0de7a14b7b0605e845dcffea1658 | fbced637cbfd478e23ee08973af80a3763eb4b94 | refs/heads/master | 2021-04-06T19:34:03.285415 | 2018-03-06T09:53:30 | 2018-03-06T09:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | #!/usr/bin/env python
# based on:
# https://github.com/marcindulak/python-mycli/blob/master/setup.py#L34
import os
from setuptools import setup
#from distutils.core import setup
name = "dyfunconn"
rootdir = os.path.abspath(os.path.dirname(__file__))
packages = []
for dirname, dirnames, filenames in os.walk(name):
... | [
"makhsm@gmail.com"
] | makhsm@gmail.com |
9f2ab36bc052faca50dbbbc3c4638b86db2ffa9b | 1f316dd015b02c85512b4dd1455c35ab8c5274e1 | /properties.py | a84ab14bcf8562c7d21b69f385c5baf9d78f1f13 | [] | no_license | sgammon/PolyPro | 7d3bb1d20b34073b0e0a1fcc43403da497fd2831 | 16cc814d868fe1bec80d0ed501504754e64f081f | refs/heads/master | 2021-01-01T06:38:53.770844 | 2010-10-19T01:31:34 | 2010-10-19T01:31:34 | 860,360 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from google.appengine.ext import db
from google.appengine.api import datastore_types
from google.appengine.api import datastore_errors
## +=+=+ Stores the Python package import path from the application root, for lazy-load on search.
class _ModelPathProperty(db.StringProperty):
def __init__(self, name, **kwa... | [
"samuel.gammon@gmail.com"
] | samuel.gammon@gmail.com |
df86b139d443196a7bc2d6c27772eaef9bce80e4 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/14-builtin-functions-methods_20200412234946.py | 01192158330c4d9a988fdbfa11bfa6e5ed998cfb | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | print(len('hellooooo'))
# length is 9
greeting = 'Good morning'
print (greeting[0:len(greeting)])
quote = "aristotle was amazing"
print(quote.upper())
print(quote.capitalize())
print(quote.find('was'))
print(quote.find('wo'))
print(quote.replace('was', '')) | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
5325af29228ba62944fe68d69ecc1e0625b16493 | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/components/component/state/__init__.py | 432b5385caec39568a0561c97eb3857d7f16baeb | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 37,046 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"noreply@github.com"
] | darylturner.noreply@github.com |
b2eb7e6cc4aecdee9d0cfee1db44edd8a63e69ff | 4dedd946a44ee62ab6a93db76e2ce3bf42deaad1 | /utils/custom_geom_tile.py | d0a092c629a4437d96af79d1fbb2b4134939a66f | [] | no_license | lqrz/medical_information_extraction | 5cde8edc7d72a3e597f8ae60307f3b4e7372556b | d092af57ea8d6202acf55fc6204f7ab19b1be030 | refs/heads/master | 2021-03-27T12:02:59.410557 | 2017-03-07T09:47:08 | 2017-03-07T09:47:08 | 53,079,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import pandas as pd
import numpy as np
from ggplot.geoms.geom import geom
from matplotlib.patches import Rectangle
import matplotlib.colors as colors
import matplotlib.colorbar as colorbar
class custom_geom_ti... | [
"lautaro.quiroz@gmail.com"
] | lautaro.quiroz@gmail.com |
8d2ae5cd38308f8f4c203ee7bf12c5072277ff02 | 64024380515828cf7870c71094108d81f461f842 | /hw5/TCP_calculator_client.py | c01c4cacf863475e14a79665d6edc032819906bd | [] | no_license | kiteB/Network_Programming | 89687370d0d64e869356d6c9208d21c8fcc670c5 | 885bb561d8eee5b6294386daebaa2e29cfd7f654 | refs/heads/master | 2023-05-13T17:19:20.895765 | 2021-05-17T14:05:00 | 2021-06-08T17:50:50 | 345,313,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from socket import *
s = socket(AF_INET,SOCK_STREAM)
s.connect(('localhost', 3333))
while True:
msg = input('Enter the formula: ')
if msg == 'q':
break
s.send(msg.encode())
print('Answer:', s.recv(1024).decode())
s.close() | [
"mmy789@sch.ac.kr"
] | mmy789@sch.ac.kr |
b7f9890d133b3a2cc7dc38df70fd2c5a8c8e59a9 | 78ee2d20722287f547c406a1cff1efc36d020ba3 | /flare_portal/experiments/migrations/0030_participant_agreed_to_terms_and_conditions.py | 09e2784dc9e18519f32dac8a0eabe82e10fee413 | [
"MIT"
] | permissive | flare-kcl/flare-portal | db660b4ccc39a6f125d548fc9efb21026f097563 | a1cef9d22ba3f1bafac55bb6ee1c8223425101dd | refs/heads/main | 2023-07-24T10:00:27.807734 | 2022-07-19T02:08:38 | 2022-07-19T02:08:38 | 305,943,258 | 1 | 2 | MIT | 2023-07-03T14:40:33 | 2020-10-21T07:30:12 | Python | UTF-8 | Python | false | false | 411 | py | # Generated by Django 3.1.4 on 2020-12-22 05:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("experiments", "0029_webmodule"),
]
operations = [
migrations.AddField(
model_name="participant",
name="agreed_to_ter... | [
"mixxorz@gmail.com"
] | mixxorz@gmail.com |
800a20e9bfc391dd8d47ac1ad832f8e29817e3ae | 2b3440dcc10bc3d5758eac775a46a3a77ca455dc | /lib/agents/_deprecated/coco/coco_stuff_f1_validator.py | d5a865b05c94da913051a9286da42a30cf4ef0e4 | [] | no_license | vsingh-group/f1-opt | 5c433f825aeb64fa6caa93c209acc6b0b3752159 | 1fc9e8223f3b008521fb08b4cc84f1edcf253c63 | refs/heads/master | 2023-02-04T04:29:07.441145 | 2019-12-04T19:51:37 | 2019-12-04T19:51:37 | 322,929,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,955 | py | from PIL import Image
from lib.agents.agent import Agent
from lib.datasets.coco_stuff import COCOStuffVal
from pathlib import Path
from pycocotools import mask
from scipy.stats import mode
from torch import nn
from torchvision import transforms
from tqdm import tqdm
import importlib
import numpy as np
import os
import ... | [
"abhay.venkatesh@gmail.com"
] | abhay.venkatesh@gmail.com |
32ac7a6ab33357967bce8e397e036ea228ad2d55 | 86d13f11fc8b4d07a39bb0f0c7193d5418bf55bf | /tfx/dsl/components/base/base_node.py | 78ac40728b6e0a11acc802fb515ba47dc8c4b100 | [
"Apache-2.0"
] | permissive | mfkiwl/tfx | e4325698eec240e34cad673dc7747bfc545bdc33 | aa32693dd00f4c5fd8236bbf1020a1cbc9321aa2 | refs/heads/master | 2023-05-03T11:22:24.180798 | 2021-05-18T06:05:16 | 2021-05-18T06:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,263 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
bcaac16d5be549dcedf29081bc4c546f827d6c05 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02416/s368226671.py | 1079d7838d8c9653c0334234fe0326bbc2de1a2d | [] | 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 | 123 | py | str = input()
while int(str[0]):
sum = 0
for char in str:
sum += int(char)
print(sum)
str = input() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
869d196bc990280ff074041d1358effc134dd28e | 6c816f19d7f4a3d89abbb00eeaf43dd818ecc34f | /apps/chat/urls.py | 9c37d07fccd2b449a2212150ecbf2808067d3da5 | [] | no_license | reo-dev/bolt | 29ee6aa7cfc96bd50fa7a7dae07fbaafc2125e54 | d1a7859dd1ebe2f5b0e6e295047b620f5afdb92e | refs/heads/master | 2023-07-13T04:05:57.856278 | 2021-08-27T09:07:03 | 2021-08-27T09:07:03 | 382,195,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^(?P<room_name>[^/]+)/$', views.room, name='room'),
]
| [
"75593016+reo-dev@users.noreply.github.com"
] | 75593016+reo-dev@users.noreply.github.com |
74a35145b97c31361f4778159286b6e8eed40ef5 | ba8f5d23d9878a25b30a32cf16e8833f93b25853 | /source_py3/test_python_toolbox/test_cute_iter_tools/test_double_filter.py | 8f128e158342bed211206a1c8684a826a8380ff0 | [
"MIT"
] | permissive | nastako/python_toolbox | af520cbec1468c8e0aae0b3b1c467ca5623af45b | 9713fd728608818630ee409ac6a6fdaf863af31b | refs/heads/master | 2020-12-11T09:07:19.681161 | 2015-01-16T21:26:37 | 2015-01-16T21:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # Copyright 2009-2015 Ram Rachum.
# This program is distributed under the MIT license.
from python_toolbox import nifty_collections
from python_toolbox.cute_iter_tools import double_filter
def test_double_filter():
(first_iterable, second_iterable) = \
double_filter(lambda value: va... | [
"ram@rachum.com"
] | ram@rachum.com |
a3ccb2913562e0c5a5aad7171577792ab80f3c8b | ae3a377375176bf61ba8c656614257f429eb8a84 | /Mess/UpWork.py | 3e18467e86565e3dcfa0aab8db43d4f36e7777d5 | [] | no_license | AngusGLChen/PayingMOOCers | ce0d7872c7dacd79c3fc417e6fc70a0e2d5d5461 | 7ea617a8d58e0f94abc93c3c9e88be1c6dd62acf | refs/heads/master | 2021-01-20T19:13:06.790822 | 2016-06-20T19:33:19 | 2016-06-20T19:33:19 | 61,574,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | '''
Created on Sep 17, 2015
@author: Angus
'''
import math
def ToAnalyzeUpWork(path):
step = 5
result = {}
fp = open(path, "r")
fp.readline()
lines = fp.readlines()
for line in lines:
array = line.split(",")
budget = float(array[2])
index = budget / 5
... | [
"angus.glchen@gmail.com"
] | angus.glchen@gmail.com |
32b6dd6284f4dcf427108d2d0d011988fb248aa5 | 88819840f4f1ceb405b02925148124ad5eb299cf | /gg_custom/doc_events/item.py | bb3254d93bfcc329ebbe0afc69c4c3fb3dd26ee0 | [
"MIT"
] | permissive | admin627863/gg_custom | c483a502521d0e72dc333a6f2ec9ece8760cd6f5 | 8ce0fe4eb99a98c6733377b7c808405604b30243 | refs/heads/master | 2023-06-21T23:58:51.133830 | 2020-12-27T09:49:14 | 2020-12-27T09:49:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from __future__ import unicode_literals
import frappe
def validate(doc, method):
if doc.gg_freight_based_on:
existing = frappe.db.exists(
"Item",
{"name": ("!=", doc.name), "gg_freight_based_on": doc.gg_freight_based_on},
)
if existing:
frappe.throw(
... | [
"sun@libermatic.com"
] | sun@libermatic.com |
76b5d54e2ee9215fdf12e32b0e08e018c1baa442 | dafbb40214c27993ced1c40ad3c7a6b9430a39a6 | /Code/CS/DesignPatterns/InterpreterPattern.py | ec7b8e769f4f5f8a93ba3d67ba5c9926ca52ccc4 | [] | no_license | wan-h/Brainpower | fe67de45edca22ca5de4789082c9662e84c95a13 | f42d68a27b2610ba045dfc68873c429b58cf573b | refs/heads/master | 2023-08-17T02:57:50.633504 | 2023-08-03T07:11:27 | 2023-08-03T07:11:27 | 223,208,555 | 4 | 1 | null | 2023-03-06T20:45:31 | 2019-11-21T15:45:50 | C++ | UTF-8 | Python | false | false | 1,823 | py | # coding: utf-8
# Author: wanhui0729@gmail.com
# 创建一个表达式接口。
class Expression(object):
def interpret(self, context: str):
pass
# 创建实现了上述接口的实体类。
class TerminalExpression(Expression):
_data = ""
def __init__(self, data: str):
self._data = data
def interpret(self, context: str):
... | [
"13658247573@163.com"
] | 13658247573@163.com |
9e496243d8a1bbb4a189f36ddcf5628746183bc8 | 7f2d1744dffcf5ce361ad2125d6cd4759836d8a1 | /simple_autoencoder.py | 621a857049798cda84c9c7efc5aba6f4006190bb | [
"MIT"
] | permissive | MuAuan/llightning-pytorch | b178e0bcb139a0ca31656731225736e61c65fae0 | 38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6 | refs/heads/main | 2023-03-04T05:47:41.926174 | 2021-02-14T14:13:41 | 2021-02-14T14:13:41 | 328,510,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | import os
import torch
from torch import nn
import torch.nn.functional as F
from torchvision.datasets import MNIST
from torch.utils.data import DataLoader, random_split
from torchvision import transforms
import pytorch_lightning as pl
class LitAutoEncoder(pl.LightningModule):
def __init__(self):
super()._... | [
"noreply@github.com"
] | MuAuan.noreply@github.com |
f7c9991f3309e36ff9e74b8d5d1ee1dff8e1b863 | da1e575580f12ddb9e6b723b68342c536d77b636 | /infra_macros/macro_lib/convert/tests/thriftdoc/test_thriftdoc.py | aac53e2edca79c5a8cb08a7d97aa65cbb5d2ce70 | [
"BSD-3-Clause"
] | permissive | thatch/buckit | 02e81d3ded4c4b4690927dd181c4a307f4bb7fbb | 8a6b97daed8e90aa52f3f52a71e1cef16491078a | refs/heads/master | 2020-04-06T12:35:39.446390 | 2018-11-13T23:23:45 | 2018-11-13T23:27:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | #!/usr/bin/env python3
import unittest
from leaf1.ttypes import Leaf1
from leaf2.ttypes import Leaf2
from parent.ttypes import Parent
from tupperware.thriftdoc.validator.validate_thriftdoc import (
ValidateThriftdoc,
ConstraintViolationException
)
class ThrifdocPythonTest(unittest.TestCase):
def test_va... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
dc606523abca1421844d6f5744b38ff4d7bb1fed | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc108/B/4926401.py | 241a8e81a3bfdf8f43504aeecc8da33e5712afe1 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | x1, y1, x2, y2 =map(int,input().split())
x3 = x2 - (y2 - y1)
y3 = y2 + (x2 - x1)
x4 = x1 - (y2 - y1)
y4 = y1 + (x2 - x1)
print('%d %d %d %d'%(x3,y3,x4,y4)) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
e0e86891bb6ffe7babe067c0a742b35a4b13e791 | 9374fd0a9823c59c2cfd9e705be7b03ef9a6c676 | /build/beginner_tutorials/catkin_generated/pkg.develspace.context.pc.py | 95ede1110e27ae3f67a45c797f6838454a0cb1e0 | [] | no_license | kamoonty/catkin_ws_roboware | 288a2e644a3b7c2ba34f69d08042bc51be958861 | e11115678a4579d68bd2cad5791225e273636ad6 | refs/heads/master | 2022-05-03T12:36:13.035787 | 2019-11-17T16:49:20 | 2019-11-17T16:49:20 | 180,313,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/kanin/catkin_ws_roboware/devel/include".split(';') if "/home/kanin/catkin_ws_roboware/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIE... | [
"kamoonty@gmail.com"
] | kamoonty@gmail.com |
8b9bdb68d291a2dc59811e1678dbe17a4b2cea01 | 65e54ca14ac21d2c2572ba35ba351df5903cb667 | /src/petronia/base/util/memory.py | 1d91951251f4fc190f77797e2cc75f5788782929 | [
"MIT"
] | permissive | groboclown/petronia | 29b93e88b82d2732bb529621ad8bff50334d36b9 | 486338023d19cee989e92f0c5692680f1a37811f | refs/heads/master | 2022-07-25T10:08:58.468385 | 2020-01-23T14:59:03 | 2020-01-23T14:59:03 | 71,741,212 | 22 | 3 | NOASSERTION | 2022-07-13T15:27:32 | 2016-10-24T01:30:01 | Python | UTF-8 | Python | false | false | 2,223 | py |
"""
Memory-based helpers.
Used to either profile memory or help reduce memory.
"""
from typing import TypeVar, Tuple, Generic, Optional, Dict, Mapping, Any
# singleton empty collections. DO NOT MODIFY THEM.
# Note that the typing is ignored, so that they can take the place of anything.
EMPTY_DICT = dict() # type... | [
"matt@groboclown.net"
] | matt@groboclown.net |
c71b380bce6b65bb2c4ed65425be2a9b163faeba | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /9S8qp4XKG2qwQMdrb_15.py | 5eb92a92e076ea9afdd1d916f240c3c948894ae8 | [] | 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 | 581 | py | """
Write a function that returns the number of ways a person can climb **n
stairs** , where the person may only climb **1** or **2** steps at a time.
To illustrate, if **n = 4** there are **5** ways to climb:
[1, 1, 1, 1]
[2, 1, 1]
[1, 2, 1]
[1, 1, 2]
[2, 2]
### Examples
ways_to_climb(1)... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2d699a8b44e2f2b75da0ba7711d9f45ac0cdd30f | 3d83e5d6c5c3b264dbca94f2fedcd1abaf522278 | /tests/test_regridder.py | 17bd0aaa942f33294411e73e2bf01d05dd0073cf | [
"Apache-2.0"
] | permissive | cp4cds/c4cds-wps | 4767d779a2338d46d52f0c23bb89f0072928c482 | 5abd9281195548bbd1e7653fe2ab1fee26745200 | refs/heads/master | 2020-04-02T06:43:19.383112 | 2020-01-14T16:05:36 | 2020-01-14T16:05:36 | 154,164,988 | 0 | 0 | NOASSERTION | 2020-01-14T16:05:37 | 2018-10-22T15:09:32 | Python | UTF-8 | Python | false | false | 2,083 | py | import pytest
from c4cds.regridder import Regridder, GLOBAL, REGIONAL
from .common import C3S_CMIP5_NC, CORDEX_NC, C3S_CMIP5_ARCHIVE_BASE, CORDEX_ARCHIVE_BASE, resource_ok
def test_create_output_dir():
regridder = Regridder()
assert 'out_regrid/1_deg' in regridder.create_output_dir(domain_type=GLOBAL)
a... | [
"ehbrecht@dkrz.de"
] | ehbrecht@dkrz.de |
afc2a596dafd661c20a2477511511184c4ca91d2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_117/ch21_2019_08_21_18_06_25_978512.py | 02b56dc95b5953805be23a6a7db87a39bb1da236 | [] | 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 | 90 | py | p = float(input('valor da conta: '))
print("Valor da conta com 10%: R$ {.:2f}".format(p)) | [
"you@example.com"
] | you@example.com |
075139cdd06edb3dfd23442e918566af73cf22c6 | 43eb2263abbf5fa22292116da0f6f887cb5a7cfa | /sld-api-backend/tasks/celery_worker.py | 2d371da4b046579b4923dd9f79d9de9bf4bb4777 | [
"MIT"
] | permissive | pankajk156/Stack-Lifecycle-Deployment | 44f1f76d1eb24b6df6107c9cf6b8002d0df640d9 | 9c07602be7bcbdbe464233e5ce42b3747f6f9a72 | refs/heads/master | 2023-06-14T03:54:14.134739 | 2021-07-05T22:06:52 | 2021-07-05T22:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,519 | py | import logging
from config.celery_config import celery_app
from celery import states
from celery.exceptions import Ignore
import traceback
from core.providers.terraform import TerraformActions as tf
from helpers.schedule import request_url
from config.api import settings
@celery_app.task(bind=True, acks_late=True, ti... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
77c2e9750321754cfb1ab46d0b7ca2e7ce7a247a | 04ced19988d12a7aa17ee57f0cc3d5251a864f98 | /migrations/versions/5bf9db6d7909_adding_new_kmeans_parameters.py | 9bc60f7b0ee1645c38897743bb550ea6fc07c0e3 | [
"Apache-2.0"
] | permissive | dpdi-unifor/tahiti | bc64049ae02a242adb9510ea17a547a8f768120d | 895d7b471a59a1dd3ae4d0a9d4162f4bc1e4977a | refs/heads/master | 2022-12-30T13:54:36.237700 | 2020-10-19T23:08:24 | 2020-10-19T23:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | """adding new kmeans parameters
Revision ID: 5bf9db6d7909
Revises: a13c4b5cc25f
Create Date: 2020-10-15 10:01:50.734058
"""
from alembic import context, op
from sqlalchemy import String, Integer, Text
from sqlalchemy.orm import sessionmaker
from sqlalchemy.sql import table, column
import json
# revision identifiers,... | [
"waltersf@gmail.com"
] | waltersf@gmail.com |
abfa93fc7740913311d27899f64f809ad4d299ab | 069c35df3a07d41a10e40423f4e41acbd01d9cef | /src/cadence/analysis/CurveOrderedAnalysisStage.py | 1208f280fed3133b4f26a33e7c287a9df275eabd | [] | no_license | sernst/Cadence | 23952bbc835efcbf94577e08978b34e38ec0f794 | bcd0d80077c68cf4bb515d643e51f62dd6c4caaa | refs/heads/master | 2020-04-06T06:46:47.993494 | 2016-08-23T21:48:19 | 2016-08-23T21:48:19 | 5,226,210 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | # CurveOrderedAnalysisStage.py
# (C)2015
# Scott Ernst
from __future__ import print_function, absolute_import, unicode_literals, division
from cadence.analysis.AnalysisStage import AnalysisStage
class CurveOrderedAnalysisStage(AnalysisStage):
"""A class for..."""
def __init__(self, key, owner, label =None,... | [
"swernst@gmail.com"
] | swernst@gmail.com |
765e37a3f069e41bab23b43418543e36bf75aa9d | c23954da29144a7d75dde0a704748d886e02220b | /salt_main/salt/modules/zypper.py | 6e9d1456dfce8038fe4db8ec53cc5f2d5e934643 | [] | no_license | pombredanne/usystem | 5bac2db49057698d2cffb35e5977418bb85425a8 | 12527f14d61ca30e996368e65ba74931ed85e3c1 | refs/heads/master | 2021-09-24T10:44:22.261460 | 2018-10-08T14:19:35 | 2018-10-08T14:19:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75,306 | py | # -*- coding: utf-8 -*-
'''
Package support for openSUSE via the zypper package manager
:depends: - ``rpm`` Python module. Install with ``zypper install rpm-python``
.. important::
If you feel that Salt should be using this module to manage packages on a
minion, and it is using a different module (or gives a... | [
"igonchik@gmail.com"
] | igonchik@gmail.com |
b7371c7ad73bfa90a387cc1e17ee5598bad930f4 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20200801/hub_route_table.py | b28ac081c2e5925121e9dcfc2737e10f09aacac2 | [
"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 | 13,604 | 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 |
bd6e0488f4cb740a65879e5d5876c6076ccb4bfe | 57d32890c61412a3561995a85d31db88f15682ad | /bookstore/settings.py | dc0d083126a03317fd0139b8821bb694184c05a6 | [] | no_license | rg3915/bookstore_2016 | 76453a37623508601efecf3df98605bd5b69e0a1 | 6dff3a8e7e441ad08e8e610dc13379730c0d2101 | refs/heads/master | 2021-11-06T10:02:30.883992 | 2016-09-19T00:07:35 | 2016-09-19T00:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '*d0uv9-z)cwq=1@a75busrd$f!&_5q=1x!*ee5(=enywjyj8d%'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# ... | [
"rg3915@yahoo.com.br"
] | rg3915@yahoo.com.br |
77e07e840a3074ea4b577a5e4ed434faf8e00aa8 | 6f64f23f1dea797b326967667e7d6bc9cdb7ace2 | /probaenv/Lib/site-packages/spyder/widgets/variableexplorer/dataframeeditor.py | ab78654dcde275b2d4a4fa99de14ff00f280d516 | [] | no_license | nerka13/nerka | 25d6e6afdf6ae08cd31aa5477950b36fe6ea31cc | d171c5430e9e8a61b1685acde1098bb198c705b0 | refs/heads/master | 2022-11-24T09:32:51.022872 | 2018-10-26T11:09:38 | 2018-10-26T11:09:38 | 154,681,413 | 0 | 1 | null | 2022-11-18T09:07:19 | 2018-10-25T14:03:13 | Python | UTF-8 | Python | false | false | 31,794 | py | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the New BSD License
#
# DataFrameModel is based on the class ArrayModel from array editor
# and the class DataFrameModel from the pandas project.
# Present in pandas.sandbox.qtpandas in v0.13.1
# Copyright (c) 2011-2012, L... | [
"36442295+nerka13@users.noreply.github.com"
] | 36442295+nerka13@users.noreply.github.com |
c151f0491936b84eb47e15bef939006bf9287b09 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/audio/FastPitch/fastpitch/attention.py | dd6031e2220f523ce66a48966fed9b3d60f7cbfa | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 9,207 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
9973c0252fc625cd0e1437f853c4620574be1c51 | 7c7902fa0efd6b249b67aaf8ef625981ca30ec2f | /clefts/manual_label/plot/stats_utils.py | e5a5fb162f0def9ebcf24b176bd418e970603d16 | [] | no_license | clbarnes/cleft_scripts | e170f4e212b62d347435eb686ff2cfc5b4f95a45 | 74a600c58c0b0f94d0a2db5eb654df06ee7825a8 | refs/heads/master | 2021-06-06T03:22:59.468426 | 2020-03-06T16:08:36 | 2020-03-06T16:08:36 | 140,337,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | import math
import numpy as np
from scipy import stats
BETA = 3
def sturges_rule(values):
return math.ceil(1 + np.log2(len(values)))
def square_root_choice(values):
return math.ceil(np.sqrt(len(values)))
def rice_rule(values):
return math.ceil(2 * len(values) ** (1 / 3))
def freedman_diaconis_rul... | [
"barnesc@janelia.hhmi.org"
] | barnesc@janelia.hhmi.org |
f660734509a3c2ff8b570f3872c23c006627fd8c | e7647bd10fa530eeaaae4c9d31bcb261d1d02f86 | /packages/syft/src/syft/shylock/exceptions.py | 8fa41f3dea5f77e1c250776170a1247c35128521 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | thehimalayanleo/PySyft | b66639e3261a98ae5a2699caf66c675d50a6e128 | 670c373e8c7fd55608747fc7b36c1ad01318e145 | refs/heads/dev | 2023-03-16T14:07:58.321995 | 2023-03-06T07:10:14 | 2023-03-06T07:10:14 | 248,316,033 | 0 | 0 | Apache-2.0 | 2020-03-18T18:48:51 | 2020-03-18T18:48:50 | null | UTF-8 | Python | false | false | 59 | py | # type: ignore
class ShylockException(Exception):
pass
| [
"me@madhavajay.com"
] | me@madhavajay.com |
9d99d21c8c14d44a3ed944e34cb3aefc8a7c4404 | 8e2a4301c76f13722f7a3dafcba701aaa947a8c0 | /src/position2D.py | 4c80228f1f1fc8bb32956ff64622d1e3d43e3e68 | [] | no_license | yangkang411/pdr_project | 05dafaab4d0a84f9bf6f1edf99ade8839f96ccef | 0efff2592bfbfd39caf3de13ec9a824723ff6ba4 | refs/heads/master | 2023-03-18T23:37:43.889908 | 2018-09-05T08:30:19 | 2018-09-05T08:30:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | import math
import time
from src.structures.thread import threatStructure
class position2D(threatStructure):
def __init__(self,inputQueue,outputQueue):
super(position2D, self).__init__()
self.target = self.run
self.inputQueue = inputQueue
self.outputQueue = outputQueue
sel... | [
"mail@mail.com"
] | mail@mail.com |
03be2d0eb01d18099f4b8b32fb3d4ecec467a512 | 62b066da43081895098e43b31e843a1af3700546 | /GAN/SinGAN/gan/utils.py | 7242a5bad380b95eeb2d5d433860a3cbebdf2e94 | [
"MIT"
] | permissive | bssrdf/Paper2Code | 6945251cf508e99c2d7d40b2b8639e993ab30bff | 2fb18b3d4ed66b68cab86139c4d9a0dcbf1eba39 | refs/heads/master | 2022-03-30T16:52:21.834511 | 2020-04-18T13:25:59 | 2020-04-18T13:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,872 | py | import numpy as np
import pandas as pd
import random
import torch
from skimage import io as img
from skimage import color
import math
from scipy.ndimage import filters, measurements, interpolation
from math import pi
import argparse
def post_config(opt):
# init fixed parameters
opt.device = torch.device("cpu... | [
"cutz-j@naver.com"
] | cutz-j@naver.com |
711d0074892ac94686ee0beda249ce27188732b6 | 326247a627b27d525ae8d88fae74900b15a1cc52 | /qiskit_acqua/ui/run/_sectiontextview.py | 6dd36f0f8c121281327c998c74cb2795524eb029 | [
"Apache-2.0"
] | permissive | C351/qiskit-acqua | 6e96099e9fee09a6e6ea6caa7f82bd014e2813c1 | a897165c65604ad327c96ffc0eb06bff9989fc9a | refs/heads/master | 2020-03-20T15:24:47.745270 | 2018-06-15T12:24:05 | 2018-06-15T12:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | # -*- coding: utf-8 -*-
# Copyright 2018 IBM.
#
# 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 agre... | [
"manoel@us.ibm.com"
] | manoel@us.ibm.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.