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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c374f75d167d32f720369055aac7da3cfd415292 | d5af5459d0a68d8934219cdd516a23d73c7c52fb | /examples/08 functions/search-with-fns.py | 39a2639219179d057192c5701011f4efaf2e778a | [] | no_license | flathunt/pylearn | 1e5b147924dca792eb1cddbcbee1b8da0fc3d055 | 006f37d67343a0288e7efda359ed9454939ec25e | refs/heads/master | 2022-11-23T23:31:32.016146 | 2022-11-17T08:20:57 | 2022-11-17T08:20:57 | 146,803,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | #!/usr/local/bin/python
import re
import sys
UNDERLINE = '='
def get_arguments():
# check for correct number of arguments...
if len(sys.argv) != 3:
print("Usage: review2-search.py search_terms_file data_file", file=sys.stderr)
sys.exit(1)
# return...
terms_file, data_... | [
"porkpie@gmail.com"
] | porkpie@gmail.com |
3b3b79f20e26193d04e460d59f4bf45b4d13b244 | 5453dee97da45be8e316150a65d3308c408dd3c7 | /backend/satchel_wallet_24918/urls.py | 8241ee333f54e43e7463188a70a915a993844224 | [] | no_license | crowdbotics-apps/satchel-wallet-24918 | 22d4599b199e99297a3ccf2236917b951db9fe38 | 524e2432f97334bc25760aa3c18e464f972998a0 | refs/heads/master | 2023-03-13T07:56:43.770159 | 2021-03-09T01:11:51 | 2021-03-09T01:11:51 | 345,825,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | """satchel_wallet_24918 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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'... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
80d41ea8cf356fba8438c715a87477396443a76b | 9d81d0484cd0954abb1a83079904e65c850f88e6 | /plugins/tmp/client.py | 1d84a120b5721fe9d0e227077192d3c262789c02 | [
"MIT"
] | permissive | GPrathap/OpenBCIPython | 802db7e1591769e7f3e3ca1f347bf78083d7579f | 0f5be167fb09d31c15885003eeafec8cdc08dbfa | refs/heads/master | 2021-09-04T01:12:04.106419 | 2018-01-13T21:52:49 | 2018-01-13T21:52:49 | 82,319,921 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | import json
import cPickle as pickle
import socket
import sys
# Create a UDP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ('localhost', 5678)
message = [45,67,89]
try:
data_string = json.dumps(message)
# Send data
print >>sys.stderr, 'sending "%s"' % data_string
s... | [
"ggeesara@gmail.com"
] | ggeesara@gmail.com |
1a9bb4a9ec638420d1a783e974812f7852f907a5 | 9b96c37db1f61065094d42bc5c8ad6eb3925961b | /level1/touching_keypad.py | 2df7bd27291cf9f98825fbcaf987970825dc0d85 | [] | no_license | Taeheon-Lee/Programmers | a97589498c866c498c1aa9192fdf8eec9f8e31f4 | c38b1c7dc4114c99191b77e5d19af432eaf6177e | refs/heads/master | 2023-07-09T21:10:25.064947 | 2021-08-30T05:17:49 | 2021-08-30T05:17:49 | 394,327,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,851 | py | "카패드 누르기"
# 문제 링크 "https://programmers.co.kr/learn/courses/30/lessons/67256"
dic_loc = {"left":[1,4,7],"right":[3,6,9],"middle":[2,5,8,0]} # 위치 딕셔너리
dic_dis_2 = {1:1,2:0,3:1,4:2,5:1,6:2,7:3,8:2,9:3,0:3,'*':4,'#':4} # 2 키버튼... | [
"taeheon714@gmail.com"
] | taeheon714@gmail.com |
f743dc53ac00f73d6d56256c088046122238cc43 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v6_0_2f/rbridge_id/ip/rtm_config/route/static_route_oif/route_attributes/__init__.py | 8f304b1edde328b78f463809396152955cb1bf14 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,705 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
9fc68de1b0bedb730f5d41555ddc9324c38376a3 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /sagemaker_write_2/code-repository_create.py | 5da5051aff1f842a5568c68ab8c4d651925c6d51 | [] | 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,391 | 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 write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/create-code-repository.html
if __name_... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
a4d8767d31d8277c1bad4b172829568c721c2d11 | 130a98632d2ab4c171503b79e455b7aa27a1dda4 | /models/official/modeling/optimization/configs/learning_rate_config.py | 520a0b96141526382f8e29e733505d62273d5a1f | [
"Apache-2.0",
"MIT"
] | permissive | aboerzel/German_License_Plate_Recognition | d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787 | 6fc53292b1d3ce3c0340ce724c2c11c77e663d27 | refs/heads/master | 2023-01-30T18:08:37.339542 | 2023-01-07T07:41:36 | 2023-01-07T07:41:36 | 245,586,430 | 34 | 12 | MIT | 2023-01-07T07:41:37 | 2020-03-07T07:16:51 | Python | UTF-8 | Python | false | false | 7,705 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"andreas.boerzel@gmx.de"
] | andreas.boerzel@gmx.de |
29b46b647ba8b530d56af61de659f245e6fe215b | 4aa22abc42eb478269f3e3a2c030d2cd09845cfe | /test/grid/runDijetDataAnalyzer_data_cfg.py | 17511204c0cc7813613f6f91544fc3db93c1d163 | [] | no_license | hhendrik/2l2v_fwk | 1593b431577e47f36e382b5e048c01ad4813382b | 3d87152f58f00e39600b0ff8d0531e1030c252f1 | refs/heads/master | 2021-01-18T11:19:21.478111 | 2014-04-04T13:25:38 | 2014-04-04T13:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | ../../test/top/runDijetDataAnalyzer_data_cfg.py | [
"psilva@cern.ch"
] | psilva@cern.ch |
03b84161a9f04f4dc964e751a7e9211dfacfe61b | 9fa8c280571c099c5264960ab2e93255d20b3186 | /algorithm/mobo/solver/parego/parego.py | 490b74696692c48610a556675780573a6df09a4e | [
"MIT"
] | permissive | thuchula6792/AutoOED | 8dc97191a758200dbd39cd850309b0250ac77cdb | 272d88be7ab617a58d3f241d10f4f9fd17b91cbc | refs/heads/master | 2023-07-23T16:06:13.820272 | 2021-09-08T14:22:18 | 2021-09-08T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | import numpy as np
from ..base import Solver
from pymoo.optimize import minimize
from pymoo.algorithms.so_cmaes import CMAES
from pymoo.decomposition.tchebicheff import Tchebicheff
from .utils import ScalarizedEvaluator
from multiprocess import Process, Queue
def optimization(problem, x, weights, queue):
'''
... | [
"yunsheng@mit.edu"
] | yunsheng@mit.edu |
0225168ab002e62d63fd9c39139e0f7e6054f49b | 56d921f97a8ad43c52c5d66be517a4f37ec8a64f | /jiecheng3.py | 94c68c074ebad4eed9aee6a1a37c57d6588c84d1 | [] | no_license | Oscer2016/python | 5ad27360bb6a47ec562696392906ba0f1daa8f99 | ff776e95327db4163a34b780ace21e561675ce62 | refs/heads/master | 2021-06-09T23:37:13.156650 | 2017-01-17T12:23:09 | 2017-01-17T12:23:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | #jicheng.py
def f(n):
if n!=1:
return f(n-1)*n
else:
return 1
n=input()
print f(n)
| [
"hepansos@126.com"
] | hepansos@126.com |
78a6f5a2d7d2673a30b6fdfc1170f493c07e7a3d | 87eb72edb890c22cc230a3e5511a4d745f2e6f72 | /evaluation/workflow/utils.py | b1a72074d62716c97d62f632372232bdb527a091 | [
"MIT"
] | permissive | QuantumMisaka/GLUE | a16c84ec9978daa75117f607b06c1d52259c5d13 | e84cb6483971dcb1e2485080f812899baaf31b5b | refs/heads/master | 2023-07-27T17:53:51.720504 | 2021-09-14T08:21:45 | 2021-09-14T08:21:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | r"""
Utility functions for snakemake files
"""
# pylint: disable=missing-function-docstring, redefined-outer-name
from functools import reduce
from operator import add
from pathlib import Path
def conf_expand_pattern(conf, placeholder="null"):
expand_pattern = "-".join(f"{key}:{{{key}}}" for key in conf)
re... | [
"caozj@mail.cbi.pku.edu.cn"
] | caozj@mail.cbi.pku.edu.cn |
14d21a66649a6e28c56c87d90ce3b96c05dd1d2a | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYGluGluToHToTauTau_M-160_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467578/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_26/run_cfg.py | ffa0dc5d13e7c3bc73a80094616038f9b937bdbf | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYGluGluToHToTauTau_M-160_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467578/HTT_24Jul_newTES_manzoni... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
4414de7c5cbc56534a03fc689dfd90f5e8a113b2 | 7952f66758b685f4bf045c7eb28efa3a22412a89 | /HackerRank/sol5-BigSorting.py | 88a72735750e92995e64feed6799a635fc038d8a | [] | no_license | PingPingE/Algorithm | b418fa13528c27840bb220e305933800c5b4c00a | 89a55309c44320f01d2d6fe5480181a4c5816fd2 | refs/heads/master | 2023-08-31T01:43:09.690729 | 2023-08-27T13:12:22 | 2023-08-27T13:12:22 | 172,465,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #!/bin/python3
import math
import os
import random
import re
import sys
def sol(arr):
return [a for a in sorted(arr, key= lambda x: [len(x),x])]#각 숫자의 길이 정보 추가
if __name__ == '__main__':
unsorted = [ input() for _ in range(int(input()))]
for s in sol(unsorted):
print(s)
#드디어 성공!!
#하지만 discussions... | [
"ds03023@gmail.com"
] | ds03023@gmail.com |
860c310e893e8bb4727c39195f129cd71807aabb | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_cat-135.py | d0cec0551a65ecaa83019d37eaa5fd104c69b8f3 | [] | 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 | 280 | py | a:str = "Hello"
b:str = "World"
c:str = "ChocoPy"
def cat2(a:str, b:str) -> str:
return a + b
def cat3(a:str, b:str, c:str) -> str:
return a + b + c
print(cat2(a, b))
print(cat2("", c))
print($ID(a, " ", c))
print(len(a))
print(len(cat2(a,a)))
print(len(cat2("","")))
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
3eb38bf3600a44172b0241a3218341a0d711cdea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03732/s795942587.py | 80267c847271bc1bc6a9c984f1299245239a189a | [] | 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,363 | py | # https://atcoder.jp/contests/abc060/tasks/arc073_b
# 典型的なナップサック。だけど配列が大きいので素直に実装するとTLEになる
# 成約により、w1以上は必ず前のjを見ることに注意するとテーブルのサイズがぐっと減ることに気がつくがこれを実装するのはなかなかめんどくさそう。
# defaltdictを利用した再帰メモ化なら比較的実装可能では?
import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline
def read_ints():
return list(map(int, read().s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9046a3da2df23840c71d7b015bc6bd1ebb645ffe | 070ede418be70e376da2fd1ed18a567098c951c9 | /junk/src/libs/alphavantage/windowed_dataset.py | 6599e7882ed075cb2d742f3861492b2d5ba1fcee | [] | no_license | jmnel/neuralsort | b647f745c7c7e33f4d79400493fb974aeb818426 | 9efbeac8c8c98895f2bf930e33d45ebfeffb54c7 | refs/heads/master | 2020-12-30T03:13:18.135533 | 2020-09-21T02:51:40 | 2020-09-21T02:51:40 | 245,709,197 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | import sys
from pathlib import Path
sys.path.append(str(Path(__file__).absolute().parents[1]))
from random import randint
from pathlib import Path
import torch
from torch.utils.data import Dataset
import numpy as np
from pprint import pprint
from db_connectors import SQLite3Connector
class WindowedDataset(Dataset)... | [
"jmnel92@gmail.com"
] | jmnel92@gmail.com |
6429729d36074089835ef04f458ea4cf6e124765 | 5f4aab3f1aef88e57bf1676af6ee4d7fd0ec4f08 | /src/SConscript | bc3d26df08583e242278f4869e8687651f95b506 | [
"BSD-3-Clause"
] | permissive | chunkified/kl-iostream | 38167841c781c0052c08c1a5342da31592b6ba81 | b9f4c90b09e0b353971a35d8adc779822e186f03 | refs/heads/master | 2021-01-20T09:41:30.729656 | 2014-05-07T08:03:41 | 2014-05-07T08:03:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | #
# Copyright 2010-2014 Fabric Software Inc. All rights reserved.
#
Import('parentEnv', 'kl2edk', 'kl', 'extSuffix')
extName = 'kliostream'
env = parentEnv.Clone()
env.Append(CPPPATH = [env.Dir('.').abspath])
sources = [
env.File('kliostream.fpm.json'),
env.File('kliostream.codegen.json')
]
sources += env.Glob('... | [
"helge.mathee@fabricengine.com"
] | helge.mathee@fabricengine.com | |
e33fa54f4a66204c553c8ba94a758e368c1d509b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03606/s347687358.py | de597f3f689f815591d9348faf868bf8955f2a95 | [] | 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 | 803 | py | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upper... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
843ed043d892d76779ec0a0ceb2832bd406da3c6 | 6fa0c051f742c3f9c99ee2800cd132db5ffb28c7 | /src/Collective/forms.py | ff624db36622f3fa0e9d6b70808263ea96555afe | [] | no_license | MCN10/NXTLVL | 9c37bf5782bfd8f24d0fb0431cb5885c585369b0 | 76d8818b7961e4f0362e0d5f41f48f53ce1bfdc5 | refs/heads/main | 2023-06-02T13:51:34.432668 | 2021-06-02T14:19:21 | 2021-06-02T14:19:21 | 328,625,042 | 1 | 0 | null | 2021-06-16T10:16:17 | 2021-01-11T10:19:44 | Python | UTF-8 | Python | false | false | 664 | py | from django.forms import ModelForm
from .models import *
class CollectiveOrderForm(ModelForm):
class Meta:
model = CollectiveOrder
fields = '__all__'
exclude = ['customer', 'transaction_id']
class CollectiveOrderItemsForm(ModelForm):
class Meta:
model = CollectiveOrderItem
fields = '__all__'
class Coll... | [
"mcn10.foxx@gmail.com"
] | mcn10.foxx@gmail.com |
2454d230d571ade8339803b76c3950c86b824968 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.9.70/2/1569574502.py | e1c6a7512ff955c929417dcb142233ae751ca36e | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
a = 123
b = list(str(a))
print (b)
def is_palindromic(n):
"""
Funktion testet ob eine positive ganze Zahl n>0 ein Palindrom ist.
Definition Palimdrom:
Eine natürliche Zahl ist ein Palindrom, falls die Ziffernfo... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
6950bd92117c53aac7dea84e5af24b34e63e4288 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/wgnc/actions.py | d0262b6d2850bb671b76223b5c7361d4da1ffa7e | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,812 | py | # 2015.11.18 11:57:06 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/wgnc/actions.py
import BigWorld
from adisp import process
from debug_utils import LOG_CURRENT_EXCEPTION, LOG_ERROR, LOG_WARNING, LOG_DEBUG
from gui.game_control import getBrowserCtrl
from gui.shared.utils.decorators import ReprInj... | [
"info@webium.sk"
] | info@webium.sk |
e5aec4b02d12cbe033e4c663271b013101e6589c | 57c64723003e8228338b4d2314cb12c011c0f169 | /deprecated/levelset.py | 7f6b54b83ce38e09ccd85e165b0b22027acc04d8 | [] | no_license | gmaher/tcl_code | d02fa0cafb9aa491f1d5d6197cd94fd9d7dbd37c | 13c18dcdbe265490b3a47916cb22d904d79da54f | refs/heads/master | 2020-04-03T22:03:36.024349 | 2017-05-12T21:35:58 | 2017-05-12T21:35:58 | 56,552,391 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | import SimpleITK as sitk
from utility import *
import plotly as py
###########################
# Set some input parameters
###########################
sliceid = 50
impath = '/home/marsdenlab/Dropbox/vascular_data/OSMSC0006/OSMSC0006-cm.mha'
xstart = 200
ystart = 10
dim = 64
sigma = 0.1
seedx = dim/2
seedy = dim/2
##... | [
"gmaher2@hotmail.com"
] | gmaher2@hotmail.com |
f5b03bd3ee32d9828c0d98b5d4816615fc75d3ec | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21190.py | 3a5c164eb892a8ba8703cc71a1a8a76d07736d16 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # Beautiful Soup conversion of Unicode characters to HTML entities
from bs4 import BeautifulSoup
soup = BeautifulSoup(html_doc)
print(soup.prettify(formatter="html"))
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
0f1c436fd0791db79ceda5db8d972086d91150a4 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/odncas001/question3.py | 9053fb666e0308f4a3ab336b667468b87749a04c | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | first_name = input("Enter first name:\n")
last_name = input("Enter last name:\n")
money = eval(input("Enter sum of money in USD:\n"))
country = input("Enter country name:\n")
money30 = money*30/100
print("\nDearest ",first_name,"\nIt is with a heavy heart that I inform you of the death of my father,","\nGeneral Fa... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
59fd1d2c4e96308cb0779dd99f018e612155737c | 94724578994ab1438dcefb51b7ef4d8570da5d4c | /z42/z42/lib/heartbeat.py | 0abfd51795aeb2616810c5976bd73069d5e46a41 | [] | no_license | PegasusWang/collection_python | 6648d83203634abf44fd42c0b37b0bf7cc406d8f | 9ef019a737a0817860d3184924c67a0833bd1252 | refs/heads/master | 2023-09-01T23:15:39.813635 | 2023-08-24T06:46:12 | 2023-08-24T06:46:12 | 43,693,872 | 130 | 90 | null | 2021-04-26T15:12:55 | 2015-10-05T15:28:15 | JavaScript | UTF-8 | Python | false | false | 1,422 | py |
#coding:utf-8
import os
from threading import Timer
import socket
import sys
import requests
from datetime import datetime
def sendmail(to, subject, html):
url = 'https://sendcloud.sohu.com/webapi/mail.send.xml'
params = {
'api_user': 'postmaster@42.sendcloud.org',
'api_key' : 'kMCzqBPv',
... | [
"tianma201211@gmail.com"
] | tianma201211@gmail.com |
b86130502764734456319cc9163ee400ecd16c61 | 99ca151c59afd9c0e7091b6919768448e40f88a2 | /numpy_ex1.py | 88f8860666a2f9c6e91be892b051a4713d8161c4 | [] | no_license | zainabnazari/Python_note | 1b6a454f6e7b3aca998d87a201823a600ec28815 | 3beb52beb3a0ebe17a6ac8c5695670e9dde59269 | refs/heads/main | 2023-02-10T22:32:33.160428 | 2021-01-12T18:36:54 | 2021-01-12T18:36:54 | 304,724,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # file name: numpy_ex1.py
list1=[1,2,3,4]
list2=[1,2,3,4]
list3=[[1,2,3,4],[1,2,3,4]]
#print("list1*list2= ",list1*list2) # this will give error, the operation of multiplication on lists is not defined!
print("list1+list2= ",list1+list2)
print("list3+list1= ",list3+list1)
import numpy as np
numpyarray1=np.array([1,2,3,... | [
"nazari.zainab@gmail.com"
] | nazari.zainab@gmail.com |
3bdb764fcca8a052da1946ee71d5ca3a8d849cd5 | eca0530054fcae936bf6b4b9aaf2fa5201d45588 | /final/login.py | a59d31d84d2a2881987fa8bd2c10e8450e96de21 | [] | no_license | benaka-tech/sringeri | d2a0e628485c9c221f753de345c4cb31e03c0f3e | 99b334e8b84c00a6160749dc7964a3741021c10d | refs/heads/main | 2023-03-15T13:57:14.780184 | 2021-03-12T10:52:49 | 2021-03-12T10:52:49 | 347,124,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,138 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'login.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui,... | [
"cjayanth35@gmail.com"
] | cjayanth35@gmail.com |
a7e045ed5e51609b50acf24a6e689a58e64dd02e | 635bac115b708864707bbc9a684ce274e88d33a7 | /Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/canonicalize/__init__.py | 1687704b4b97f78d586f0b29853dc7ff904e5baf | [] | no_license | iglunix/WebKit | 131807b5c24f1644d8a5d2ffece440bf1b1ed707 | 92e63de4a92736360ecfd491a3e0e3b28f753b75 | refs/heads/main | 2023-07-03T08:30:16.089008 | 2021-03-30T17:34:53 | 2021-03-30T17:34:53 | 353,087,887 | 1 | 0 | null | 2021-03-30T17:36:18 | 2021-03-30T17:36:17 | null | UTF-8 | Python | false | false | 6,750 | py | # Copyright (C) 2020, 2021 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and... | [
"jbedard@apple.com"
] | jbedard@apple.com |
1d109b1af75897cb08716609c414a9f1459b485f | 7394e97e563138b58e25383de06aa26002e35eb4 | /research/carls/candidate_sampling_ops.py | b1937d422c056d38d5435e0bd0ff7ce17e6e2f9d | [
"Apache-2.0"
] | permissive | otiliastr/neural-structured-learning | ff944411d3d48c6b7fccf6f48f39fe1c3ca29bc2 | 4a574b84c0a02e08ed3ef58e60284555e7e7c7e2 | refs/heads/master | 2022-04-03T21:22:36.023018 | 2021-04-17T01:00:24 | 2021-04-17T01:00:58 | 205,723,792 | 0 | 0 | Apache-2.0 | 2019-09-01T19:38:53 | 2019-09-01T19:38:53 | null | UTF-8 | Python | false | false | 11,135 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
c7339fef2a47d86a6fbcf65ffa3761ad4a3d38bd | 0e8dd5901b1f98934c44a85b133eb7ca6f44b4b9 | /osr2mp4/ImageProcess/PrepareFrames/RankingScreens/ModIcons.py | c87a50b7cd88872d95e0d5011ce4159e07f419f2 | [] | no_license | Hazuki-san/osr2mp4-core | dbd2f4d44a3d0e90974214c97b434dcbb2eedd18 | 83dc5c47bc73dcb0b4d4b6a5ae1924771c13c623 | refs/heads/master | 2022-11-24T13:41:15.703261 | 2020-07-03T14:00:54 | 2020-07-03T14:00:54 | 279,099,127 | 1 | 0 | null | 2020-07-12T16:02:35 | 2020-07-12T16:02:34 | null | UTF-8 | Python | false | false | 676 | py | from osrparse.enums import Mod
from ...PrepareFrames.YImage import YImage
selectionmod = "selection-mod-"
def prepare_modicons(scale, settings):
modnames = {
Mod.Perfect: "perfect",
Mod.Autopilot: "pilot",
Mod.Relax: "relax",
Mod.SpunOut: "spunout",
Mod.Flashlight: "flashlight",
Mod.Hidden: "hidden",
... | [
"snkraishin87@gmail.com"
] | snkraishin87@gmail.com |
1074bb30ddb6ffd71876e31fdc25fe977ac16661 | 1a04e02811c844ecf53cc041b104667e5c987a09 | /vgrabber/model/grade.py | 4e1a3f467bfe686db281ef1013fcefb6f3d90834 | [] | no_license | janjanech/vzdelavanieGui | dff17add6e6946063597d4c1eba5d6d76b6f5374 | b2015f41f7cb1be1ecccf1c4778a91f43f8fba12 | refs/heads/master | 2021-10-24T16:21:24.911817 | 2019-01-15T17:03:49 | 2019-01-15T17:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | from enum import Enum, auto
from .files import FileList
from .finalexam import FinalExam
class Grade(Enum):
A = auto()
B = auto()
C = auto()
D = auto()
E = auto()
FX = auto()
class StudentGrade:
final_exam: FinalExam
grade: Grade
points: float
files: FileList
def __init... | [
"janik@janik.ws"
] | janik@janik.ws |
0a466df321d2357b667e78d7b6f0c6b7799c7321 | 8c57a6e0f607fc5b0a1d601e4fa5d8e621d73dcc | /Sorting_algorithms/benchmark_sorting.py | 6d248cbcf52daef95addfe19a1415d699e8c6193 | [] | no_license | anoubhav/Data-Structures-and-Algorithms | eb3b0edd7df64e809bfadf41a86f3bf177965cae | d99bac42a86601570255bae85590fc2e485960fc | refs/heads/master | 2021-07-15T07:05:42.034648 | 2020-05-27T15:33:43 | 2020-05-27T15:33:43 | 144,583,921 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | from selection_sort import selection_sort
from insertion_sort_swapping import insertion_sort_swap
from insertion_sort_assignment import insertion_sort_assignment
from bubble_sort import bubble_sort
from merge_sort import merge_sort
from quicksort3 import quicksort3
from time import clock
import random
def create_array... | [
"anoubhav.agarwaal@gmail.com"
] | anoubhav.agarwaal@gmail.com |
a184a13a43f1725ecba70739affc5a1f2e1640e3 | e58c6f5ae956fe409c475e2745526c4c4451e509 | /TestCode/Spiders/scrapytest/logo/logo/settings.py | d7465747e8870ed7cb1f27e7cb0f825f369d7fee | [] | no_license | pangxie1987/uiautomator2 | 6d67dd3beeaba5ab3efa85bf6b8eabcad70b17b8 | 9a818e3b9a68ba4006ec393d5ec095ee2d10572d | refs/heads/master | 2022-11-22T17:05:00.580781 | 2021-03-31T05:17:06 | 2021-03-31T05:17:06 | 216,848,204 | 2 | 2 | null | 2022-11-22T03:17:30 | 2019-10-22T15:31:04 | Python | UTF-8 | Python | false | false | 3,404 | py | # -*- coding: utf-8 -*-
# Scrapy settings for logo project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics/d... | [
"lpb.waln@outlook.com"
] | lpb.waln@outlook.com |
6b086af83c2477052676f8a6f31b94fa6ff34d25 | 5d0b6d45c23337d5d074c62081445e9963b92ba8 | /src/component_parser/ranges.py | c4ea461f747c57c8eb0212e7df4e8c81ae0fb1c3 | [
"MIT"
] | permissive | ghedwards/sublimetext-cfml | f944fb8f8c35b6acca0c4d0fdc8cec4e726442fd | 6b0ef8a325a21f0392b79346a5dd47b7c0d58f30 | refs/heads/master | 2021-08-26T07:06:57.033755 | 2017-11-13T17:49:47 | 2017-11-13T17:49:47 | 111,625,801 | 0 | 0 | null | 2017-11-22T02:21:35 | 2017-11-22T02:21:34 | null | UTF-8 | Python | false | false | 5,671 | py | import re
import collections
RangeDefinition = collections.namedtuple('RangeDefinition', ['start', 'end', 'child_ranges', 'pop'])
BASE_RANGES = [
'comma',
'semicolon',
'curly_brackets',
'line_comment',
'multiline_comment',
'parentheses',
'square_brackets',
'string_double',
'strin... | [
"jcberquist@outlook.com"
] | jcberquist@outlook.com |
cc5dca56154fe17edb6689970d5221ff59f86751 | 7ef5bb39938e669b5571a097f01d96ee53458ad6 | /maximal_rectangle/solution.py | d7dbfe832161fdefa7ae2748e9dfb64f82dc6ddc | [
"BSD-2-Clause"
] | permissive | mahimadubey/leetcode-python | 61cd135515b26644197b4736a92a53bb1a5870a6 | 38acc65fa4315f86acb62874ca488620c5d77e17 | refs/heads/master | 2020-08-29T09:27:45.232412 | 2019-10-28T08:06:52 | 2019-10-28T08:06:52 | 217,993,547 | 0 | 0 | BSD-2-Clause | 2019-10-28T07:55:38 | 2019-10-28T07:55:38 | null | UTF-8 | Python | false | false | 1,258 | py | class Solution:
# @param matrix, a list of lists of 1 length string
# @return an integer
def maximalRectangle(self, matrix):
# Make a list of heights
if not matrix:
return 0
n = len(matrix)
if not matrix[0]:
return 0
m = len(matrix[0])
... | [
"shichao.an@nyu.edu"
] | shichao.an@nyu.edu |
9c4c802cf858874d37d665db3ace105775e64f83 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/INTERVIEW-PREP-COMPLETE/Leetcode/215.py | 9ea3591e57858d86cf92438005c6cef00ab4ab09 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 976 | py | import heapq
class Solution:
def findKthLargest(self, nums: List[int], k: int) -> int:
def quickSelect(low, high, k):
i = low
for j in range(low, high):
if nums[j] <= nums[high]:
nums[i], nums[j] = nums[j], nums[i]
i += 1
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
44ed1910e8ed13934e5fb218eb574fad3f2b8649 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_23210.py | a16a569ba67dd79006f8b14bda2a070aed189c29 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,840 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
91935e9f77a4d8bc3c373d76ca627484057b389c | 53c3462ff265b6273f4a4fa17f6d59688f69def0 | /剑指offer/41_FindContinuousSequence.py | d3586055cdb08c6798a50f5d7375e5ac92d8c85a | [] | no_license | 17764591637/jianzhi_offer | b76e69a3ecb2174676da2c8d8d3372a3fc27b5c4 | 27e420ee302d5ab6512ecfdb8d469b043fb7102d | refs/heads/master | 2023-08-03T01:32:51.588472 | 2019-10-13T07:56:21 | 2019-10-13T07:56:21 | 197,692,548 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | '''
他在想究竟有多少种连续的正数序列的和为100(至少包括两个数)。
没多久,他就得到另一组连续正数和为100的序列:18,19,20,21,22。
现在把问题交给你,你能不能也很快的找出所有和为S的连续正数序列?
'''
class Solution:
def FindContinuousSequence(self, tsum):
# write code here
res = []
for i in range(1,int(tsum/2)+1):
for j in range(i,int(tsum/2)+2):
... | [
"17764591637@163.com"
] | 17764591637@163.com |
4c55379b54e9cc451df5d9f8c31bbba8c65872df | e72265a8f523cd76e75ac3832e3236917746c96a | /dawp2020/hy-data-analysis-with-python-2020/part01-e06_triple_square/src/triple_square.py | 3e16029c04371d878c0a48f86024b73b5e491f6b | [
"MIT"
] | permissive | ored95/data-analysis-course | 9bde67f489a16b94f376427331a24efc330877ed | f61a953769b8e7c502f2bec28158ec1bd344f72a | refs/heads/main | 2023-04-07T05:19:22.044343 | 2021-03-30T10:25:52 | 2021-03-30T10:25:52 | 346,290,289 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #!/usr/bin/env python3
def triple(x):
return 3 * x
def square(x):
return x ** 2
def main():
for x in range(1, 11):
x2 = square(x)
x3 = triple(x)
if x > 3:
break
print("triple({0})=={1} square({0})=={2}".format(x, x3, x2))
if __name__ == "__main__":
... | [
"stepup.ored@gmail.com"
] | stepup.ored@gmail.com |
f65290fa42db6280e9a931af321b0809650af036 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/j1n.py | 9780a79a04275f9679bf88692305c144decde612 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
7572a60f3a8fa50ee798286f14595c2f7f470535 | 99d7765da35926279c4a4fd7313d55908786f4b8 | /1/3/13458/13458.py | 6ec1bfd94fbbe36f57727f20730dcf70cbc1c8e3 | [
"MIT"
] | permissive | chr0m3/boj-codes | b8294c5d4d10a5af25b5276427bccd74d0866ef5 | d71d0a22d0a3ae62c225f382442461275f56fe8f | refs/heads/master | 2021-08-16T15:24:57.733088 | 2021-03-22T13:13:10 | 2021-03-22T13:13:10 | 91,523,558 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | room = int(input())
people = list(input().split())
a, b = map(int, input().split())
sum = 0
for i in people:
if int(i) - a <= 0:
sum += 1
continue
else:
sum += 1
if (int(i) - a) % b:
sum += int((int(i) - a) / b) + 1
else:
sum += int((int(i) - a) ... | [
"chr0m3@users.noreply.github.com"
] | chr0m3@users.noreply.github.com |
e9bbd4b05764ae81360f13740612ea89bb4390d5 | 11e484590b27585facf758f0432eeebe66bf790a | /fal_order_revised/__init__.py | d6e5c1ea819561be5b4d0f4b58d6469d3df06971 | [] | no_license | jeanabreu/falinwa_branch | 51b38ee5a3373d42417b84a0431bad9f7295f373 | be96a209479259cd5b47dec73694938848a2db6c | refs/heads/master | 2021-01-18T10:25:49.866747 | 2015-08-25T10:05:05 | 2015-08-25T10:05:05 | 41,369,368 | 0 | 1 | null | 2015-08-25T14:51:50 | 2015-08-25T14:51:50 | null | UTF-8 | Python | false | false | 65 | py | # -*- coding: utf-8 -*-
import wizard
import sale
import purchase | [
"hans.yonathan@falinwa.com"
] | hans.yonathan@falinwa.com |
572aa51b501d575b1c8037bc1a705e474cd31df5 | e4f8b14cead542586a96bcaa75993b0a29b3c3d0 | /pyNastran/op2/tables/oee_energy/onr.py | 81b96e0a5ce317b9f02eb03330e509248c1f4092 | [] | no_license | afcarl/cyNastran | f1d1ef5f1f7cb05f435eac53b05ff6a0cc95c19b | 356ee55dd08fdc9880c5ffba47265125cba855c4 | refs/heads/master | 2020-03-26T02:09:00.350237 | 2014-08-07T00:00:29 | 2014-08-07T00:00:29 | 144,398,645 | 1 | 0 | null | 2018-08-11T15:56:50 | 2018-08-11T15:56:50 | null | UTF-8 | Python | false | false | 9,060 | py | #pylint: disable=C0326,C0301,C0103
from struct import Struct, unpack
from pyNastran.op2.tables.oee_energy.oee_objects import StrainEnergyObject
from pyNastran.op2.op2_common import OP2Common
class ONR(OP2Common):
def __init__(self):
OP2Common.__init__(self)
self.words = None
self.num_wide ... | [
"mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b"
] | mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b |
bbd400842a93d924ddbd60b272e0bebefb7c0e98 | 12972f4d9e7de2c38e79ae911f2e7b125965cac9 | /virtual/lib/python3.6/site-packages/pip/_internal/commands/show.py | 7d714f74c91ba4f1811ca8d37ca6b73ce58d95b4 | [
"MIT"
] | permissive | Michellemukami/pitch | b33d0de81cc2a0dfe70ddc1e91affc88af63ff2b | aebb7736d18766343a5a295de0782aa175245c35 | refs/heads/master | 2022-10-22T03:55:33.364628 | 2019-08-07T10:15:10 | 2019-08-07T10:15:10 | 200,673,234 | 0 | 0 | null | 2022-09-16T18:07:53 | 2019-08-05T14:38:26 | Python | UTF-8 | Python | false | false | 6,261 | py | from __future__ import absolute_import
import logging
import os
from email.parser import FeedParser
from pip._vendor import pkg_resources
from pip._vendor.packaging.utils import canonicalize_name
from pip._internal.cli.base_command import Command
from pip._internal.cli.status_codes import ERROR, SUCCESS
logger = lo... | [
"you@example.com"
] | you@example.com |
b7bbd0cff4f44ec86ea0f1751469f76ffbf8a50f | 24c84c5b93cd816976d370a99982f45e0d18a184 | /BitManipulation/XRaiseToPowerN.py | 59807df6c254cb11dc951ae81be87470bc2be99a | [] | no_license | purushottamkaushik/DataStructuresUsingPython | 4ef1cf33f1af3fd25105a45be4f179069e327628 | e016fe052c5600dcfbfcede986d173b401ed23fc | refs/heads/master | 2023-03-12T13:25:18.186446 | 2021-02-28T18:21:37 | 2021-02-28T18:21:37 | 343,180,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | class Solution1:
def myPow(self, x,n):
return x ** (n)
# Time limit Exceeded Solution
#
# class Solution:
# def myPow(self, x: float, n: int) -> float:
#
# if n < 0:
# n = -n
# x = 1 / x
#
# val = 1
# for j in range(1, n + 1):
# ... | [
"purushottamkaushik96@gmail.com"
] | purushottamkaushik96@gmail.com |
3f2ebca3033b0e9b6e0594a4e024b17269235a58 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Zendesk/Users/CreateManyUsers.py | 7f4fbc8aa21e3fc4e42b3c6633ea77278bf1c34c | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# CreateManyUsers
# Creates many new users at one time.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
f... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
c9d1642bef0822ea1d0d53275ff38258fec6c343 | a7cb6aa4605e6cb8387858e270e051b5cb5c95b6 | /nagaram/anagrams.py | 04c657f2aba07d717599c1bea0f9488d5486f23e | [
"BSD-3-Clause"
] | permissive | a-tal/nagaram | 6a41322762d5746b14c13e46b116b6b5f6fdd2e9 | 2edcb0ef8cb569ebd1c398be826472b4831d6110 | refs/heads/master | 2020-06-08T05:00:45.766688 | 2018-03-10T18:18:12 | 2018-03-10T18:18:12 | 8,365,790 | 1 | 2 | BSD-3-Clause | 2018-03-10T18:18:31 | 2013-02-22T20:59:43 | Python | UTF-8 | Python | false | false | 1,632 | py | """Anagram finding functions."""
from nagaram.scrabble import blank_tiles, word_list, word_score
def _letter_map(word):
"""Creates a map of letter use in a word.
Args:
word: a string to create a letter map from
Returns:
a dictionary of {letter: integer count of letter in word}
"""
... | [
"github@talsma.ca"
] | github@talsma.ca |
1ac752b254b2f46452b83ae611dadec6e8478300 | 9e0105505f4746d5872090885df6064ad772b3e5 | /utils/modules.py | 12888a8c8e2c06fb3dc18dd68c7e1eeed327cf99 | [] | no_license | wwwbq/PyTorch_YOLOv1 | 568afa4f8f508dabd9bcb35404a634985bf4a8ae | 2e86c64577e24193b117582c07a4941c2eeba8cc | refs/heads/main | 2023-08-08T00:08:42.466820 | 2021-09-13T06:25:09 | 2021-09-13T06:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Conv(nn.Module):
def __init__(self, c1, c2, k, s=1, p=0, d=1, g=1, act=True):
super(Conv, self).__init__()
self.convs = nn.Sequential(
nn.Conv2d(c1, c2, k, stride=s, padding=p, dilation=d, groups=g),
n... | [
"1394571815@qq.com"
] | 1394571815@qq.com |
51c776801f20b5d316a03b48a5de11268a41752e | 8bbfb5b937772066ea965058eb29e9f6362847c2 | /utils/tags/Q6_6_0Beta3/Binary Model Conversion/Python2.4 QuArK Model Importer and test files/MY QuArK Python Model Import-Export files/Prev Work Files/Copy (3) of MYmd2_import.py | 05576fc812ed79cbbc62035c3e4fea468bfd4d78 | [] | no_license | QuakeEngines/QuArK_quake_editor-clone | e1aeeb38e7ec8287835d643c3a0bfe5612f0b7f3 | 412bf28a14d4e369479bf38408bd93e6a2612f87 | refs/heads/master | 2021-02-15T16:11:17.332239 | 2020-03-04T14:28:50 | 2020-03-04T14:28:50 | 244,911,440 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,919 | py | """
__author__ = 'Bob Holcomb'
__version__ = '0.15'
__url__ = ["Bob's site, http://bane.servebeer.com",
"Support forum, http://scourage.servebeer.com/phpbb/", "blender", "elysiun"]
__email__ = ["Bob Holcomb, bob_holcomb:hotmail*com", "scripts"]
This script imports a Quake 2 file (MD2), textures,
and an... | [
"nobody@5419a3ea-6bc3-475c-b79b-167d7c3fbd5f"
] | nobody@5419a3ea-6bc3-475c-b79b-167d7c3fbd5f |
cf1bd1863d3f53e5ecd17372f8353719846f99e0 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/M/michiko3/my_scraper_-_michiko.py | 051a46dfb17a94145b5b97a6695f80da14f2f70c | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | import scraperwiki
from bs4 import BeautifulSoup
html = scraperwiki.scrape("http://usatoday30.usatoday.com/money/economy/housing/2009-02-11-decline-housing-foreclosure_N.htm")
soup = BeautifulSoup(html)
print soup.prettify()
print soup.find_all("table")
print len(soup.find_all("table"))
tables = soup.find_all("table"... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
83d80e4116c4fa57e5fd02e264e49d708e6d5710 | 09ae3f372d1000f118ad80874870ae420a4be66f | /scikit-learn-master/sklearn/semi_supervised/label_propagation.py | 11b3344a74dbc8d09f555fd96ebecdfee76abdab | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | lqkweb/learnMLflow | 998f80c3828879b8d542125bc95c6345b8e9b29a | 13c5decaebba95b1b90f92021be35e343b4764af | refs/heads/master | 2022-10-18T06:17:23.584172 | 2019-01-18T09:51:38 | 2019-01-18T09:51:38 | 166,145,472 | 2 | 0 | Apache-2.0 | 2022-09-30T18:26:17 | 2019-01-17T02:22:29 | Python | UTF-8 | Python | false | false | 18,484 | py | # coding=utf8
"""
Label propagation in the context of this module refers to a set of
semi-supervised classification algorithms. At a high level, these algorithms
work by forming a fully-connected graph between all points given and solving
for the steady-state distribution of labels at each point.
These algorithms perf... | [
"leiqk@dxy.cn"
] | leiqk@dxy.cn |
e8e579a506bd6a374ce3f70bba4fc4fa825cd638 | e6448149ad47f0362720e3eb30fa330d7e040ed0 | /lib/__init__.py | 08bcd67f7f71dd609bc8735deb6af6c4861fd902 | [] | no_license | ziming-liu/still-image-action-recognition | 9936270b344e60bbb1e1619c89173c7ff3cecdfe | 79ada680de7d97bf1ffebbbc7f02799bd2434c46 | refs/heads/master | 2020-08-03T02:49:19.553019 | 2019-09-29T05:15:10 | 2019-09-29T05:15:10 | 211,602,449 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | from .mycollate import collate
| [
"zimingemail@163.com"
] | zimingemail@163.com |
6074ebb5ed259550f2ca5a4e5800871b45257c7e | 87f94560837a93963b1610457f27cd9adc34e538 | /2018/3/main.py | 4aa7d0bcf7fb488e7c4caffb3bb5c404e64271d0 | [] | no_license | Coul33t/AdventOfCode | 3f511a71f48fcff3738a6e905e711a68f32fad62 | f1443888cde4043f21d286449f2660f1c722e571 | refs/heads/master | 2020-04-09T09:38:05.351225 | 2018-12-04T15:09:09 | 2018-12-04T15:09:09 | 160,240,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | import pdb
import re
def rect_overlaps(rect1, rect2):
# 1 = top left x
# 2 = top left y
# 3 = width
# 4 = height
# top_right.x = rect[1] + rect[3]
# bottom_left.x = rect[1]
# top_right.y = rect[2]
# bottom_left.y = rect[2] + rect[4]
return not (rect1[1] + rect1[3] < rect2[1] or
... | [
"Coulis1990@gmail.com"
] | Coulis1990@gmail.com |
ab9e2100dc7cda13e45967def14d034a68096bb4 | 9680ba23fd13b4bc0fc3ce0c9f02bb88c6da73e4 | /Bernd Klein (520) ile Python/p_20708x.py | 4d2b0d69e9c9930d9ace4529711b5a71b43f8e75 | [] | no_license | mnihatyavas/Python-uygulamalar | 694091545a24f50a40a2ef63a3d96354a57c8859 | 688e0dbde24b5605e045c8ec2a9c772ab5f0f244 | refs/heads/master | 2020-08-23T19:12:42.897039 | 2020-04-24T22:45:22 | 2020-04-24T22:45:22 | 216,670,169 | 0 | 0 | null | null | null | null | ISO-8859-9 | Python | false | false | 7,413 | py | # coding:iso-8859-9 Türkçe
# p_20708x.py: Orijinal Grafik sınıfı ve metodlarının alt-örneği.
class Graph(object):
def __init__(self, graph_dict=None):
""" initializes a graph object
If no dictionary or None is given, an empty dictionary will be used
"""
if graph_dict ==... | [
"noreply@github.com"
] | mnihatyavas.noreply@github.com |
0e45c65d4c67c931afc4e85b7410cb8b62d4c595 | 9adc45c39030d1109849c211afd294b4d33f660c | /example/scripts/upload_video_to_s3_and_sync.py | 321e2e91ad4f767a025163b98ac0c20532904674 | [
"MIT"
] | permissive | jf-parent/brome | f12e728b984061e3c329f30d59f9d615ffe0a1f2 | 784f45d96b83b703dd2181cb59ca8ea777c2510e | refs/heads/release | 2020-12-28T14:45:53.428910 | 2017-05-05T12:32:44 | 2017-05-05T12:32:44 | 38,472,866 | 3 | 0 | null | 2017-05-05T12:32:45 | 2015-07-03T05:02:09 | Python | UTF-8 | Python | false | false | 2,713 | py | #! /usr/bin/env python
import os
import boto3
import yaml
from brome.core.utils import DbSessionContext
from brome.model.testinstance import Testinstance
from brome.model.testcrash import Testcrash
from brome.model.testresult import Testresult
HERE = os.path.abspath(os.path.dirname(__file__))
ROOT = os.path.join(HE... | [
"parent.j.f@gmail.com"
] | parent.j.f@gmail.com |
ea52af8e78e10745bd9ade47d2ab923070e1488d | 41ad3529ff9b6357d57468641b21d4ac02a6c0b5 | /DJI_wxPython.py | 446cff5dda74c28d7be7f1d217ff7ced444f789c | [] | no_license | gitpNser/learndata | 9153a3c305cf07904d5006059489c72c2388cee0 | a5059ae3346a17b833132e9295a0e73482b4a386 | refs/heads/master | 2020-06-13T11:25:56.676610 | 2019-11-28T14:47:43 | 2019-11-28T14:47:43 | 194,638,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,694 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 14 13:51:41 2019
wxPython plot
@author: pNser copy Dazhuang @NJU
"""
import datetime as dt
import myfinance as finance
import matplotlib.pyplot as plt
import pandas as pd
import _thread as thread
import wx
#不明白这行的目的
ID_EVENT_REFRESH = 9999
#定义一个wx.Frame的子类
class Stock... | [
"gitknt@outlook.com"
] | gitknt@outlook.com |
faea3e50e4e9b59dd76834845389c8df6f3fdee6 | 597b82737635e845fd5360e191f323669af1b2ae | /08_full_django/products/apps/products/views.py | d46ee65e2d2a815b3a101e18a5a2d6fa8c0eec5e | [] | no_license | twknab/learning-python | 1bd10497fbbe181a26f2070c147cb2fed6955178 | 75b76b2a607439aa2d8db675738adf8d3b8644df | refs/heads/master | 2021-08-08T08:50:04.337490 | 2017-11-10T00:28:45 | 2017-11-10T00:28:45 | 89,213,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | from django.shortcuts import render
from models import Product
# Create 3 Different Products:
"""
Note: You can see our object creation has been placed outside of our `index()`
method. This is because if we placed these creation events inside of our index method,
we'd have the same product created on every refresh.
""... | [
"natureminded@users.noreply.github.com"
] | natureminded@users.noreply.github.com |
571a517e58b1431ce8c60ae03fc91e324600403c | 78c3082e9082b5b50435805723ae00a58ca88e30 | /03.AI알고리즘 소스코드/venv/Lib/site-packages/caffe2/python/operator_test/jsd_ops_test.py | 4a2b327ddeba63f3df666180047c9e0f4b3ed672 | [] | no_license | jinStar-kimmy/algorithm | 26c1bc456d5319578110f3d56f8bd19122356603 | 59ae8afd8d133f59a6b8d8cee76790fd9dfe1ff7 | refs/heads/master | 2023-08-28T13:16:45.690232 | 2021-10-20T08:23:46 | 2021-10-20T08:23:46 | 419,217,105 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py |
from caffe2.python import core
import caffe2.python.hypothesis_test_util as hu
import caffe2.python.serialized_test.serialized_test_util as serial
import hypothesis.strategies as st
import numpy as np
def entropy(p):
q = 1. - p
return -p * np.log(p) - q * np.log(q)
def jsd(p, q):
... | [
"gudwls3126@gmail.com"
] | gudwls3126@gmail.com |
2f97ef1ba97ac1029b7fbfb48d23a450ad5975a0 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Preview/tkinter102.py | 9ef018e04625b9629f7cbf85be5ab4f1d125109d | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from tkinter import *
from tkinter.messagebox import showinfo
class MyGui(Frame):
def __init__(self, parent=None):
Frame.__init__(self, parent)
button = Button(self, text='press', command=self.reply)
button.pack()
def reply(self):
showinfo(title='popup', message='Button pressed!... | [
"zui"
] | zui |
40edf933fd8e4c11dab1a3ba5aba8f74c4db9100 | b8275e3c6f20a6e6638536a4333d2d1767ef868d | /coarsegraining-v8-new.py | 16e40b6eabec7be1dbaabc84c2e71a5ff67a8765 | [] | no_license | czang/Modules | 81bd991f8b57b2b99b59fe4408f95587cbf1a2b0 | 04fdbfcd46df0c8615d01d1c9d7bdb267f8a14c4 | refs/heads/master | 2022-06-10T04:21:47.045380 | 2019-03-20T01:36:02 | 2019-03-20T01:36:02 | 176,625,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,616 | py | #!/usr/bin/env python
# Copyright (c) 2011 The George Washington University
# Authors: Chongzhi Zang, Weiqun Peng
#
# This software is distributable under the terms of the GNU General
# Public License (GPL) v2, the text of which can be found at
# http://www.gnu.org/copyleft/gpl.html. Installing, importing or
# otherwis... | [
"noreply@github.com"
] | czang.noreply@github.com |
f314aa92ae0309c5fc33503ef23d53144f73e8d1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03618/s585911965.py | 3cb657424c1ff0a4d384f5df252781e21eb2b757 | [] | 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 | 321 | py | import sys
sys.setrecursionlimit(10**7)
#input = sys.stdin.readline
from collections import Counter
def main():
a = input()
n = len(a)
base = n * (n - 1) // 2
counter = Counter(a)
def f():
for c in counter.values():
yield c * (c - 1) // 2
print(base - sum(f()) + 1)
main(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
70e4f58dfd4f4803a9edb317dac94031b38f62ac | ac4eca2377cafd58b3da6c7bdae8e3eea9606e52 | /101-200/129.Sum Root to Leaf Numbers.py | 3fcb3828eb0d11e950cc8329f5bf86e95237e258 | [] | no_license | iscas-ljc/leetcode-medium | bf71a8d9a93af07d6863c67b10c824f6855c520c | 21b962825b1a386c60b319cbf94c0aecfa546008 | refs/heads/master | 2021-09-05T09:42:01.100811 | 2018-01-26T06:14:46 | 2018-01-26T06:14:46 | 111,070,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | class Solution(object):
def sumNumbers(self, root):
self.result=0
self.sum(root,0)
return self.result
def sum(self,root,tile_now):
if root:
self.sum(root.left,tile_now*10+root.val)
self.sum(root.right,tile_now*10+root.val)
if not root.left and not root.right:
... | [
"861218470@qq.com"
] | 861218470@qq.com |
add4acbdeed7d4915810b535fde6d55f196c1352 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/tests/blenderbot/test_modeling_tf_blenderbot.py | 7bb25c5c6352028cbf31e6f66d8b5e4653697098 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"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 | 13,486 | py | # coding=utf-8
# 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 applicab... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
09c4d515d0e34930231eb3884a4c97df7a64efc9 | 3cef23043a4bf3bc2a37d952e51b1a9faeb76d0b | /setup.py | 0d6ff2da2b231576e669a8f68795badbaf0a0b64 | [
"MIT"
] | permissive | hiroaki-yamamoto/django-nghelp | 794bc103ecf5bb652363e3a1df530afa971ac46a | e15dc408a4a9205d23f9d68b6d10d7b9648dbd2e | refs/heads/master | 2020-07-29T21:41:23.972244 | 2018-01-15T04:30:49 | 2018-01-15T04:30:49 | 73,657,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | #!/usr/bin/env python
# coding=utf-8
"""Setup script."""
import sys
from setuptools import setup, find_packages
dependencies = ("django>=1.11", "jinja2")
name = "django-nghelp"
desc = "AngularJS Frontend Helper for Django"
license = "MIT"
url = "https://github.com/hiroaki-yamamoto/django-nghelp.git"
keywords = "djang... | [
"hiroaki@hysoftware.net"
] | hiroaki@hysoftware.net |
cfc948a7d33be8ee11ef65a155425af6c2ca5b4b | 9b5597492e57313712c0a842ef887940f92636cd | /judge/sessions/2018Individual/jillzhoujinjing@gmail.com/PB_02.py | c4f369a67b553603b661bba7006a5bf67a02439f | [] | no_license | onionhoney/codesprint | ae02be9e3c2354bb921dc0721ad3819539a580fa | fcece4daf908aec41de7bba94c07b44c2aa98c67 | refs/heads/master | 2020-03-11T11:29:57.052236 | 2019-05-02T22:04:53 | 2019-05-02T22:04:53 | 129,971,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import sys
def find_one(data,min_p,max_p):
index = int((min_p+max_p)/2)
dif = max_p - min_p
if dif == 0:
return max_p
if dif == 1:
if data[max_p] == 1:
return max_p
elif data[min_p] == 1:
return min_p
if data[index] == 2:
return find_one(data,min_p,index)
elif data[index] == 0:
return find_one(da... | [
"root@codesprintla.com"
] | root@codesprintla.com |
fc7543ea66d355520c01da7ccccdf80ef36ac870 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/vz/rttoremotetaboodef.py | 8da1f704e9c779723ea236e386fb9080f4b59445 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 4,535 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
4da5b58f9a136d6c3af1a22f37d1afcfd4426cfa | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/addons/presets/pov/lamp/05_(4000K)_100W_Metal_Halide.py | 2a0ba8c12164925c6a8d0a9b11741a6f94a1b5f1 | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 603 | py | #After 1962
#Common uses: outdoor lighting where good color rendering is needed, television/film lighting, sports fields, car headlights, flood lights, heavy flashlights, green house applications
import bpy
bpy.context.object.data.type = 'SPOT'
lampdata = bpy.context.object.data
lampdata.show_cone = True
lampdata.spo... | [
"admin@irradiate.net"
] | admin@irradiate.net |
a05114189934ab4ce9304762f6164d71185d9253 | b08437d7346ace7b8282e0fd7f292c6eb64b0b0d | /columbus/people.py | 67aeeba949705935adf341a8e3fd70edd696bd3c | [] | no_license | opengovernment/municipal-scrapers-us | d3b3df303d8999882d3a05f1bec831ba705e8e2b | 54c28c0fa1319d712674c559e3df3d79a975768f | refs/heads/master | 2021-01-14T13:17:07.931879 | 2014-01-10T00:55:48 | 2014-01-10T00:55:48 | 15,881,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | # Copyright (c) Sunlight Labs, 2013, under the terms of the BSD-3 clause
# license.
#
# Contributors:
#
# - Paul Tagliamonte <paultag@sunlightfoundation.com>
from pupa.scrape import Scraper, Legislator, Committee
from collections import defaultdict
import lxml.html
HOMEPAGE = "http://council.columbus.gov/"
cla... | [
"tag@pault.ag"
] | tag@pault.ag |
9066c600056c28e78bbb7f6076635f0797b62764 | 85a32fc66050b5590f6a54774bbb4b88291894ab | /python/strings/merge-the-tools/python2.py | 9062ca3d05ac46255135508ccf8df8779f673d34 | [] | no_license | charlesartbr/hackerrank-python | 59a01330a3a6c2a3889e725d4a29a45d3483fb01 | bbe7c6e2bfed38132f511881487cda3d5977c89d | refs/heads/master | 2022-04-29T07:40:20.244416 | 2022-03-19T14:26:33 | 2022-03-19T14:26:33 | 188,117,284 | 46 | 37 | null | 2022-03-19T14:26:34 | 2019-05-22T21:38:18 | Python | UTF-8 | Python | false | false | 318 | py | def merge_the_tools(string, k):
n = len(string)
for i in xrange(0, n, k):
u = []
for j in string[i:i+k]:
if not j in u:
u.append(j)
print ''.join(u)
if __name__ == '__main__':
string, k = raw_input(), int(raw_input())
merge_the_tools(string, k)
| [
"e-mail@charles.art.br"
] | e-mail@charles.art.br |
2811d0bfb278246fdc5e3e4c58809850f9b47c87 | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/otp/speedchat/SCElement.pyc.py | 8c609d912b2c1b4d4c2d607f57a05e84e233b5b4 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,083 | py | # 2013.08.22 22:15:47 Pacific Daylight Time
# Embedded file name: otp.speedchat.SCElement
from pandac.PandaModules import *
from direct.gui.DirectGui import *
from direct.task import Task
from SCConstants import *
from SCObject import SCObject
from direct.showbase.PythonUtil import boolEqual
from otp.otpbase im... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
b5d4d113d19205f7d6853527b3a819ef30f6852e | e52f3d13abccbfdfc037ae447137759d02fef75f | /python_work/ch10/practice/10-9 silent cAd.py | 6c63722dd8156520a7af6d091fb279957d89495d | [] | no_license | WeiS49/Python-Crash-Course | 7b8bc10dff58a06b0ef42dfa686ff72d4020547d | 2a3c11c28429e49fa48018b252dacb4129587950 | refs/heads/master | 2023-01-06T19:23:39.577634 | 2020-11-06T06:12:03 | 2020-11-06T06:12:03 | 302,330,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py |
filename1 = 'dogs.txt'
filename2 = 'catss.txt'
try:
with open(filename1) as f1:
dogs = f1.read()
except FileNotFoundError:
pass
else:
print(dogs)
try:
with open(filename2) as f2:
cats = f2.read()
except FileNotFoundError:
pass
else:
print(cats)
| [
"swh_1C3@outlook.com"
] | swh_1C3@outlook.com |
9babe1cec243911c031cb699ad3568337d98a49f | 3ac84fa46db498e914f6e1aaf2eff490a63807a1 | /devstack/python-glanceclient/tests/v1/test_client.py | e6f8de9ac73bd482707ab0f64ee408614a6f4cec | [
"Apache-2.0"
] | permissive | onsoku/horizon_review | 3c5f1a8f863142f3f724f59771ad39604bca4c20 | 80cca0badc61b4754ef2c10f23a0ee48cd227445 | refs/heads/master | 2020-05-20T11:11:25.625186 | 2015-01-21T01:01:59 | 2015-01-21T01:01:59 | 29,002,325 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | # Copyright 2013 OpenStack 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 required b... | [
"onsoku@onsoku.sakura.ne.j"
] | onsoku@onsoku.sakura.ne.j |
ed6879070f3634f296250c79bf584b9f6cc4aefb | 72786214749df0fc3d2eb471f25b80839b866896 | /python_algo_lab/linear_search.py | 3ff565dd7f403b0179ed48181a7dc31a1799aa50 | [] | no_license | itsvinayak/labs | 4f5245fd8a1554e7bbd042a2f4d15ac408a13276 | 15f54ca1672f684a14c22ac0194f9457eafc97f6 | refs/heads/master | 2020-09-16T05:19:17.406156 | 2020-04-08T05:22:59 | 2020-04-08T05:22:59 | 223,665,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | def linear_search(array, left, right, item):
if left == right:
return -1
if array[left] == item:
return left + 1
return linear_search(array, left + 1, right, item)
if __name__ == "__main__":
array = [1, 3, 9, 22, 5, 0, 3, 3, 4, 90]
item = 22
right = len(array)
print(linear... | [
"itssvinayak@gmail.com"
] | itssvinayak@gmail.com |
cead79d631ff3bbb21c62d18f19d5f993f9bef46 | ea89417f702100a5541263e7342f3e9ad76c5423 | /hmc/algorithm/utils/lib_utils_system.py | c2202116205fc6cb1bb27a984a42f5894f328225 | [
"MIT"
] | permissive | c-hydro/fp-hmc | 130b887a27072b7c967fca27f0568d68a3c06143 | 30bd5d0a3e4921410990968bb3a4eaf601b5b804 | refs/heads/main | 2023-06-11T12:22:07.480759 | 2022-12-07T12:20:51 | 2022-12-07T12:20:51 | 216,776,851 | 0 | 0 | MIT | 2022-12-02T12:10:25 | 2019-10-22T09:39:05 | Python | UTF-8 | Python | false | false | 2,819 | py | """
Library Features:
Name: lib_utils_system
Author(s): Fabio Delogu (fabio.delogu@cimafoundation.org)
Date: '20200401'
Version: '3.0.0'
"""
#######################################################################################
# Library
import logging
import os
import pandas as pd
import... | [
"fabio.delogu@cimafoundation.org"
] | fabio.delogu@cimafoundation.org |
f1e5599f0ea8c38d38ebc0353bab439d1b5250a3 | e6f1578ae2eff1b14a0734d8ebf9cbfaf13a7338 | /steem/tests/test_steem.py | 101488980cd4acf91af38304bdd16248a7e9894d | [
"MIT"
] | permissive | clayop/python-steem | d672be71f5662658bad141a835c2155af1e1ffb5 | ad1298d81a8116d000fe21cf1528cfa444c0e38d | refs/heads/master | 2021-01-11T21:09:15.789961 | 2017-02-16T01:51:19 | 2017-02-16T01:51:19 | 79,258,712 | 0 | 0 | null | 2017-01-17T18:36:08 | 2017-01-17T18:36:08 | null | UTF-8 | Python | false | false | 3,508 | py | import unittest
from steem.steem import (
Steem,
MissingKeyError,
InsufficientAuthorityError
)
from steem.post import (
Post,
VotingInvalidOnArchivedPost
)
identifier = "@xeroc/piston"
testaccount = "xeroc"
wif = "5KkUHuJEFhN1RCS3GLV7UMeQ5P1k5Vu31jRgivJei8dBtAcXYMV"
steem = Steem(nobroadcast=True, ... | [
"mail@xeroc.org"
] | mail@xeroc.org |
64958beb389d7d629f311e4dd7a2be1ee78700b3 | 8a029afcaee3080728be4648c96865d5847d3247 | /dnnseg/bin/csv_to_zs.py | aa845946c363e52e15e0ba430e5d9e548ee97eb0 | [] | no_license | coryshain/dnnseg | 623d8c3583a996e496e77123a3296c8731f40613 | 30eed4b031adb3fcef80f98c6f037fd993aa36ca | refs/heads/master | 2021-06-11T00:47:25.975714 | 2021-02-22T14:18:51 | 2021-02-22T14:18:51 | 143,957,434 | 10 | 7 | null | 2020-12-12T01:34:11 | 2018-08-08T03:41:41 | Python | UTF-8 | Python | false | false | 1,351 | py | import pandas as pd
import sys
import os
import argparse
from dnnseg.data import segment_table_to_csv
def check_path(path):
if os.path.basename(path).startswith('embeddings_pred') and path.endswith('.csv'):
return True
return False
if __name__ == '__main__':
argparser = argparse.ArgumentParser(''... | [
"cory.shain@gmail.com"
] | cory.shain@gmail.com |
6654efa5ed917fd3dad0f2bd8dc8c8d4adb389aa | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /22_专题/邻位交换(adjacent swap)/minAdjacentSwap.py | 5fd74ce9c63a814cda310f86986f1290e369323b | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from typing import MutableSequence
from collections import defaultdict, deque
from sortedcontainers import SortedList
def minAdjacentSwap1(nums1: MutableSequence[int], nums2: MutableSequence[int]) -> int:
"""
求使两个数组相等的最少邻位交换次数 映射+求逆序对 时间复杂度`O(nlogn)`
如果无法做到则输出 -1
"""
def countInversion... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
a6b76bd42fb9759cfcf2ab24708ea976b1f32dea | 876de904572c611b8cbad21f50877cdc812f2946 | /校招/程序员面试金典_08.11. 硬币_动态规划_数学推导.py | 4f0da7d68805a5a34aa80b20e883a371d0147ad4 | [
"MIT"
] | permissive | QDylan/Learning- | 66a33de0e15f26672fb63c0b393866721def27ae | f09e0aa3de081883b4a7ebfe4d31b5f86f24b64f | refs/heads/master | 2023-02-08T02:34:26.616116 | 2020-12-25T05:02:32 | 2020-12-25T05:02:32 | 263,805,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | # -*- coding: utf-8 -*-
"""
@Time : 2020/5/19 11:52
@Author : QDY
@FileName: 程序员面试金典_08.11. 硬币_动态规划_数学推导.py
硬币。给定数量不限的硬币,币值为25分、10分、5分和1分,编写代码计算n分有几种表示法。(结果可能会很大,你需要将结果模上1000000007)
示例1:
输入: n = 5
输出:2
解释: 有两种方式可以凑成总金额:
5=5
5=1+1+1+1+1
示例2:
输入: n = 10
输出:4
... | [
"qdy960411@outlook.com"
] | qdy960411@outlook.com |
fea9164721f5b30483782a20953571c70a3e5445 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /chrome/test/chromeos/autotest/files/client/deps/page_cycler_dep/common.py | 6e20002004cd79d7c23eb14889b0cbb24282c71a | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os, sys
dirname = os.path.dirname(sys.modules[__name__].__file__)
client_dir = os.path.abspath(os.path.join(dirname, "../../"))
sys.path.in... | [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com |
f4234d8bcd1e3006a4816853a9195259c292e1ad | 487fdbff5f51c67f401d108691291a64acc16f94 | /day05.py | ea905b22ccf49f9e7e7f3d0242f81878304af93e | [
"MIT"
] | permissive | Yalfoosh/Advent-of-Code-2019 | 66f8f5d897cd67eaa561789332b033bb8aaa608e | d09be66a14f05b1ae086cdefd22dc414bc45d562 | refs/heads/master | 2020-09-26T23:01:54.199679 | 2019-12-11T20:07:33 | 2019-12-11T20:07:33 | 226,362,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | from copy import deepcopy
import re
input_splitter = re.compile(r",\s*")
parameter_count_dict =\
{
1: 3, 2: 3,
3: 1, 4: 1,
5: 2, 6: 2,
7: 3, 8: 3,
99: 1
}
def load(path: str = "input/05.txt"):
with open(path) as file:
return [int(x) for x in input_splitte... | [
"suflajmob@gmail.com"
] | suflajmob@gmail.com |
2a782607fc5405942c8b407da66dac1b362a86ee | a689a72d3699883d7b58bd4ee3103373270bd0d5 | /2019/1907/190729/03.py | 850dc8a393dc5a820c51f124f881c5182b0d0006 | [] | no_license | Oizys18/Algo | 4670748c850dc9472b6cfb9f828a3ccad9c18981 | 45caafe22a8a8c9134e4ff3b227f5f0be94eefe7 | refs/heads/master | 2022-05-11T08:35:06.812539 | 2022-05-07T01:30:41 | 2022-05-07T01:30:41 | 202,690,024 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from base64 import b64decode as b64
for t in range(int(input())):
print(f"#{t+1} {str(b64(input()))[2:-1]}")
| [
"oizys18@gmail.com"
] | oizys18@gmail.com |
7f93a40d800f6f3ebe0d7340f2b8d405f789ae15 | 7b54edc142d01a7385f22f9e127f4790bd88f92b | /info/utils/common.py | 8c5b49ee0121b2afd02e40193b0bca6cad980950 | [] | no_license | amourbrus/newsWebFlask | 20b73b39da3739133ea235b92b88e09639fbcfd8 | 359ec394ce2eacd3dde330d83f490efc0f354b5d | refs/heads/master | 2020-03-21T10:16:19.084405 | 2018-07-12T15:04:54 | 2018-07-12T15:04:54 | 138,442,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import functools
from flask import g
from flask import session
from info.models import User
def index_class(index):
if index == 0:
return "first"
elif index == 1:
return "second"
elif index == 2:
return "third"
else:
return ""
def user_login_data(f):
@functools.... | [
"2338336776@qq.com"
] | 2338336776@qq.com |
8819e864d5603b9e54a6f258e6a7c04e9483aff8 | 71d4fafdf7261a7da96404f294feed13f6c771a0 | /mainwebsiteenv/lib/python2.7/site-packages/phonenumbers/data/region_TC.py | 45cf24186cb81296740b4d9674973cb859470f7f | [] | no_license | avravikiran/mainwebsite | 53f80108caf6fb536ba598967d417395aa2d9604 | 65bb5e85618aed89bfc1ee2719bd86d0ba0c8acd | refs/heads/master | 2021-09-17T02:26:09.689217 | 2018-06-26T16:09:57 | 2018-06-26T16:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | """Auto-generated file, do not edit by hand. TC metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_TC = PhoneMetadata(id='TC', country_code=1, international_prefix='011',
general_desc=PhoneNumberDesc(national_number_pattern='[5689]\\d{9}', possible_length=(10,),... | [
"me15btech11039@iith.ac.in.com"
] | me15btech11039@iith.ac.in.com |
20b6947db74c68d8d54fdb41a06eb308501cfc49 | f88fc26caeb21c42f7f630892a53b8b3906a1f6c | /exp_kitti_raft_fixation/train/train_deepv2d_fixation.py | dae5a7dcce0acc8808d46d13900e1b9f157df501 | [] | no_license | TWJianNuo/RAFT_epp | 53bb2e39f5e248e35dbe0979c00ffe9597b0bed7 | 8a8bb850e8f25626100d21006c35ff4e5b058ab1 | refs/heads/main | 2023-08-05T11:39:01.915642 | 2021-09-21T23:12:32 | 2021-09-21T23:12:32 | 334,811,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,007 | py | from __future__ import print_function, division
import os, sys
project_rootdir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
sys.path.insert(0, project_rootdir)
sys.path.append('core')
import argparse
import os
import cv2
import time
import numpy as np
import matplotlib
matplotlib.use... | [
"twjiannuo@gmail.com"
] | twjiannuo@gmail.com |
a4b2d7963db02f8c672477e5f95f24874ba73fdb | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1605+123/sdB_pg_1605+123_lc.py | 0bb502fdc840c769372947da5add7de5f4ec3f0b | [] | 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 | 345 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[242.076542,12.200892], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1605+123/sdB_pg_1605+123_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
fbaa8321206abbc95d0c0afcb5d6add91cba179d | 30d02ec6dd309dced011d266ca40bace293fb23e | /20210125/min_cost_climbing_stairs.py | 364d94212e31ff42f3ac84aab24719ebdbb696b9 | [] | no_license | jyeoniii/algorithm | b72f5e9f7fe63098c251bcc1585787ba39ca750c | 7d80e27aec8fbac936911ee78a92c47b00daa3ba | refs/heads/master | 2023-04-15T01:39:41.149528 | 2021-04-22T13:55:58 | 2021-04-22T13:55:58 | 316,533,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # https://leetcode.com/problems/min-cost-climbing-stairs/
from typing import List
class Solution:
def minCostClimbingStairs(self, cost: List[int]) -> int:
dp = [0] * len(cost)
dp[0], dp[1] = cost[0], cost[1]
for i in range(2, len(cost)):
dp[i] = min(dp[i-2], dp[i-1]) + cost[i]... | [
"jaykim9438@gmail.com"
] | jaykim9438@gmail.com |
10063675a5f60fefde1348935aca932ecf817962 | 1ba58b17f33122abf4236e9e430a51d375e0eb53 | /km72/Lesiuk_Andrew/3/task7.py | 5193e638cd6293de20a4c88f3e2230d7f4a8f580 | [] | no_license | igortereshchenko/amis_python | c4f8d86b88ab036d08ff0ce35c9b42ebeabecc42 | c6f0f2a70c82d5f269b3078eb296f82271b5bb10 | refs/heads/master | 2021-10-22T16:21:19.990650 | 2017-11-01T07:26:54 | 2017-11-01T07:26:54 | 104,785,028 | 0 | 139 | null | 2020-04-21T21:27:09 | 2017-09-25T18:11:42 | Python | UTF-8 | Python | false | false | 466 | py | print('Програма визначає скільки показуватиме годинник')
while True:
N=int(input('Введіть скільки часу пройшло після півночі\n'))
if N<0:
print('Час маэ бути додатнім')
else:
break
t = N//1440
print('Кількість днів:', t)
print('Кількість годин:', t//60)
print('Кількість хвилин:', t... | [
"noreply@github.com"
] | igortereshchenko.noreply@github.com |
a664baac4f20445be3d45180f262f6795c2cb852 | 41b4702e359e3352116eeecf2bdf59cb13c71cf2 | /full_model_walker_param/rand_param_envs/rand_param_envs/gym/error.py | 3cbf07f1aebc146761fed6c16430dfa2594c62c8 | [] | no_license | CaralHsi/Multi-Task-Batch-RL | b0aad53291c1713fd2d89fa4fff4a85c98427d4d | 69d29164ab7d82ec5e06a929ed3b96462db21853 | refs/heads/master | 2022-12-22T19:23:45.341092 | 2020-10-01T00:05:36 | 2020-10-01T00:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | import sys
class Error(Exception):
pass
# Local errors
class Unregistered(Error):
"""Raised when the user requests an item from the registry that does
not actually exist.
"""
pass
class UnregisteredEnv(Unregistered):
"""Raised when the user requests an env from the registry tha... | [
"jil021@eng.ucsd.edu"
] | jil021@eng.ucsd.edu |
58e7e2647dbe0a4e0415a8e2ee79e7efd343560e | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/01_netCDF_extraction/erafive902TG/606-tideGauge.py | 2cf848516a1ff591f435d0ff9083a5bb228a8912 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 01 10:00:00 2020
ERA5 netCDF extraction script
@author: Michael Tadesse
"""
import time as tt
import os
import pandas as pd
from d_define_grid import Coordinate, findPixels, findindx
from c_read_netcdf import readnetcdf
from f_era5_subsetV2 import subsetter
def extrac... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
59a4a14b9d124e2ebce3cf2bee85efcd5d00fa6b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03722/s588134158.py | 2ca94082b4c983d18464cd5ca89025e819443681 | [] | 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,902 | py | from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations, product
import sys
from copy import deepcopy
import string
from bisect import bisect_left, bisect_right
from math import ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a44dda549816cfa2bb70f000b27b7c4ae8270f22 | 049584769071069cd4ebb83a4a519093ba57eb87 | /src/billing/migrations/0023_auto_20150620_1546.py | 173e44e8784fa6c344130f8c12801a8d85ca02f4 | [] | no_license | kij8323/mysite_server_version | 4c1c29b0d0b6eb5d91907d44105a347a0ff58a54 | d58ddd79626772d8b71e539f00cdf45763ab2a00 | refs/heads/master | 2016-09-05T23:34:14.584462 | 2015-12-21T12:45:39 | 2015-12-21T12:45:39 | 38,934,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('billing', '0022_auto_20150620_1545'),
]
operations = [
migrations.Alte... | [
"shenanping2008@Hotmail.com"
] | shenanping2008@Hotmail.com |
21696ee9099e81ed55415a70fe21f018e45ad988 | 3be1ddf42236a1b33ec74ed3bfdd0f8918513733 | /coding-challenges/week05/day3/apartment/class_bed.py | 808418561319a7ae9f5d0a65e2ca972b02df1795 | [] | no_license | aabhishek-chaurasia-au17/MyCoding_Challenge | 84ef926b550b3f511f1c642fe35f4303c8abb949 | 419d02ad8740a2c00403fd30c661074266d2ba8f | refs/heads/main | 2023-08-29T09:52:36.796504 | 2021-11-07T07:32:09 | 2021-11-07T07:32:09 | 359,842,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | """
1. The Bed Object has the following attributes:
length: length of the bed in feet
breadth: breadth of the bed in feet
year_made: Year in which the bed was made
has_headboard: True or False depending on whether the bed has a headboard or not
has_posts: True or False depending on whether the bed has sideposts or not
... | [
"abhishekc838@gmail.com"
] | abhishekc838@gmail.com |
7635fb88cccde37ae72c60d1cc32540fc8b41ed6 | 4c434fd8883a087f0baef4398e98b7cdf82606f5 | /deploy.py | 87d8b7e330bbe77d7534b18a38ca9968b10c7e22 | [] | no_license | Vignesh2208/emane-TimeKeeper | 6b8a779ba0a3b325819920f8df7e32285db353ca | dea6d62a31467de7293666729846bc34a375468b | refs/heads/master | 2021-01-10T14:34:34.148864 | 2017-04-06T21:46:55 | 2017-04-06T21:46:55 | 49,746,354 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31,522 | py | #
# File : deploy.py
#
# Brief : Starts an emane-deployment with TimeKeeper enabled or disabled
#
# authors : Vignesh Babu
#
import sys
import os
import re
import shutil
from timekeeper_functions import *
import time
from emanesh.events import EventService
from emanesh.events import LocationEvent
from emanesh.event... | [
"vig2208@gmail.com"
] | vig2208@gmail.com |
ce80e27fa4f113d3fe3cbe6211c1770bc5d3cf5a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_054/ch117_2020_10_05_13_13_34_650168.py | 9a002163f43160a3ffe5a528f9801990fccc6592 | [] | 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 | 123 | py | import math
def snell_descartes (n1, n2 , tetta1):
tetta2 = math.asin(n1*math.sin(math.radians(tetta1))/n2)
return | [
"you@example.com"
] | you@example.com |
1295ed4099b439863d64290c637f977703fbdfa8 | 59c746c28bff4afcc99a13b4ddd9aa42365f3348 | /dashboard/forms.py | fc8e64f55aa24a9c972d5f06f17d354cc0fa2fd2 | [] | no_license | lucassimon/django-sendgrid | c228fe6f5bc871181c82c18c20837080fe6bb47f | 4e34fc0f7072ebcf06ee91764e220f0aa94904e6 | refs/heads/master | 2021-01-20T08:01:04.948950 | 2017-07-07T13:33:12 | 2017-07-07T13:33:12 | 90,080,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # -*- coding:utf-8 -*-
from __future__ import unicode_literals
# Stdlib imports
# Core Django imports
from django import forms
from django.utils.translation import ugettext as _
# Third-party app imports
# Realative imports of the 'app-name' package
from .models import Scheduling
class DashboardCustomerServiceForm... | [
"lucassrod@gmail.com"
] | lucassrod@gmail.com |
2f1c8c27aa6df64d188f2e053ca56184acd42928 | 952243fed6885563cb9631e3bea6f367cb19a30c | /calendars/views.py | 21013fbaf8c3647d2d467a3eccd72cdc131acdd1 | [] | no_license | Kang-kyunghun/batch_calendar | 8380d8ccad958341e9e0050f7a4b710ab0daa973 | 76570bfd3816001c3be7714554100cf7d57948c9 | refs/heads/main | 2023-08-01T11:51:27.045435 | 2021-04-25T07:48:48 | 2021-04-25T07:48:48 | 406,577,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,743 | py | import json
import requests
import progressbar
from time import sleep
from pprint import pprint
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
from django.http import HttpResponse, JsonResponse
from django.views import... | [
"lsheon93@gmail.com"
] | lsheon93@gmail.com |
11f5989b5de10bec420830d71d06778129715373 | b68c92fe89b701297f76054b0f284df5466eb698 | /Other/Daily/InsertIntoSortedCircularList.py | ce812f2208b6741a286fbcf4ddf906fefa62ae38 | [] | no_license | makrandp/python-practice | 32381a8c589f9b499ab6bde8184a847b066112f8 | 60218fd79248bf8138158811e6e1b03261fb38fa | refs/heads/master | 2023-03-27T18:11:56.066535 | 2021-03-28T04:02:00 | 2021-03-28T04:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | '''
Given a node from a Circular Linked List which is sorted in ascending order, write a function to insert a value insertVal into the list such that it remains a sorted circular list. The given node can be a reference to any single node in the list, and may not be necessarily the smallest value in the circular list.
... | [
"awalexweber99@gmail.com"
] | awalexweber99@gmail.com |
2e810e00ffe4dad728bcd1f47ef0855f39af6474 | bffd93e3ba15915c5b929ac75303d2e124db6a24 | /app/api_v1_2/domain/app_infos.py | 7c5e8d4ec0d38e006312737af67c1cf3271c5fca | [] | no_license | themycode/MobileToolPlatform | fe7140ede1069495fd077364e7b932f3e7e8299d | 1569f06dcd9f3b9a4a699e47cf6724d90f8a84c8 | refs/heads/master | 2021-10-26T15:05:44.859610 | 2019-04-13T10:38:27 | 2019-04-13T10:38:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@version: v1.0
@author: jayzhen
@license: Apache Licence
@email: jayzhen_testing@163.com
@software: PyCharm
"""
class App(object):
def __init__(self):
self.uid = None
self.pid = None
self.cpu = None
self.mem = None
self.gfx... | [
"jayzhen_testing@163.com"
] | jayzhen_testing@163.com |
925e3430251624099ef13779755194137a4bab3d | e489172f6e49e1239db56c047a78a29a6ffc0b36 | /via_cash_advance/__init__.py | f245fbd7937d61ea074a5a3fb9640e1fda5e7033 | [] | no_license | eksotama/prln-via-custom-addons | f05d0059353ae1de89ccc8d1625a896c0215cfc7 | f2b44a8af0e7bee87d52d258fca012bf44ca876f | refs/heads/master | 2020-03-25T19:49:08.117628 | 2015-12-01T07:29:43 | 2015-12-01T07:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | ##############################################################################
#
# Vikasa Infinity Anugrah, PT
# Copyright (c) 2011 - 2012 Vikasa Infinity Anugrah <http://www.infi-nity.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Genera... | [
"aero@aero.(none)"
] | aero@aero.(none) |
74292cb0826476d9a3ecacb7cec1ac1c8b7d879b | ac245e448cdf791f24ee71d2b89e5f13d5fb1fbb | /Betsy/attic/test_case.py | 1b1cfb33e35f0567ba4de2c8cf5114f31e8d7454 | [
"MIT"
] | permissive | jefftc/changlab | 86420c8ce0f3e11a9b1b00d49f17c6af87439f32 | d9688709cd1ce5185996637c57f001a543b5bb1d | refs/heads/master | 2023-05-24T18:59:25.875112 | 2023-05-11T20:15:26 | 2023-05-11T20:15:26 | 67,619,148 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 50,062 | py | from Betsy import rulebase
from Betsy import bie3
def run_case01():
in_data = rulebase.GEOSeries
out_data = rulebase.SignalFile.output(preprocess="rma",
format="tdf", logged="yes",gene_center='mean',#annotate='yes',
quantile_norm='yes',#contents="class0,class1"
... | [
"jeffrey.t.chang@uth.tmc.edu"
] | jeffrey.t.chang@uth.tmc.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.