blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
771095473e3066ad09df7493a6581d7bb5843b18 | 78b01cc5249504f067ed9a53063037818c4a2663 | /main.py | 79c4c87baff9be781702595bc7afbc06ad51483e | [
"MIT"
] | permissive | toshikurauchi/chopro_book | 4fae592b261a74b2e97782346348bba7df809879 | 73e7d1e4cd540457a1609959a4e912eba5e8278e | refs/heads/master | 2021-06-24T15:20:18.442808 | 2019-03-17T03:30:41 | 2019-03-17T03:30:41 | 135,749,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,004 | py | #!/usr/bin/python3
import sys
import re
from unicodedata import normalize
from pathlib import Path
from flask import Flask, render_template, request, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
from chopro import ChoPro
from config import *
SHORT_LIMIT = 100
app = Flask(__name__)
app.config['SQLALCHE... | [
"andrew.kurauchi@gmail.com"
] | andrew.kurauchi@gmail.com |
9d3f971d92a6f6e1cd18b6d14d0e39c203776983 | a8c76e503df527445b14163f74faa8aca7e90ecd | /examples/cardless_credit_example.py | 9b76216fa16aa9281bbd570ee1371176ada29324 | [
"MIT"
] | permissive | baseup/xendit-python | c2a4f0766886f6124a86810e0831653e1ca1e1f4 | 8b677fbbad5fe3bbcd0a2b93e30e8040543b8f61 | refs/heads/master | 2023-03-09T02:56:53.513101 | 2021-03-04T08:06:44 | 2021-03-04T08:06:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,442 | py | import time
from print_running_function import print_running_function
# Hackish method to import from another directory
# Useful while xendit-python isn't released yet to the public
import importlib.machinery
loader = importlib.machinery.SourceFileLoader("xendit", "../xendit/__init__.py")
xendit = loader.lo... | [
"adyaksa.wisanggeni@gmail.com"
] | adyaksa.wisanggeni@gmail.com |
3c4bf638f60768a4555ee438fa275702572a60bd | fd6af2839be96a7966925d2d4c47a5af6dffd938 | /ratatosk/pipeline/__init__.py | 35d6ef55b865e5f3ca00702f832ebc8b84f18c4c | [
"Apache-2.0"
] | permissive | percyfal/ratatosk | 429ce423100ddbf4008b51df66db99c5205f8def | 71ee4741952219c1fccf9cb6c172a354610d499c | refs/heads/master | 2020-05-16T22:43:33.212506 | 2013-09-24T11:24:13 | 2013-09-24T11:24:13 | 8,706,433 | 7 | 4 | null | 2013-04-08T16:27:07 | 2013-03-11T15:25:44 | Python | UTF-8 | Python | false | false | 1,231 | py | import os
import ratatosk
from ratatosk.pipeline import align, seqcap, haloplex
# Define configuration file locations and classes for predefined workflows
config_dict = {
'ratatosk' : {'config':os.path.join(ratatosk.__path__[0], os.pardir, "config", "ratatosk.yaml"),
'cls':None},
'Align' : {... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
fed848079573db2088199105182feb85233e4b34 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Numerical_Eng_Python/example10_1.py | 865e519667c1c0de4e2117143d9072094cfc3225 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 355 | py | ## example10_1
from goldSearch import *
def f(x):
lam = 1.0 # Constraint multiplier
c = min(0.0, x) # Constraint function
return 1.6*x**3 + 3.0*x**2 - 2.0*x + lam*c**2
xStart = 1.0
h = 0.01
x1,x2 = bracket(f,xStart,h)
x,fMin = search(f,x1,x2)
print "x =",x
print "f(x) =",fMin
raw... | [
"bb@b.om"
] | bb@b.om |
63c121a05dfeb948f6e5c1fa84cafc4740c8d4dd | 1b4abb5e310c7ae1b2928f9ea80a6b3a8c2fb8ed | /model/ml/infrastructure/parameter_search.py | 065cd4b1f932cd37ca710d1d220b8003732a721f | [] | no_license | zhang-198/ExampleDrivenErrorDetection | 2e2c708665f2b57b6ac7c785604a2ac6234f7ba9 | ae8bc24fc441957d9a29e5fa4cc247f1805d8b4d | refs/heads/master | 2023-05-23T14:49:29.628520 | 2020-04-09T14:02:28 | 2020-04-09T14:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,479 | py | import os
import glob
import shutil
import json
import numpy as np
import sys
def evaluate_check_point_json(checkpoint_json_file):
with open(checkpoint_json_file) as data_file:
data = json.load(data_file)
loss_history = data['val_loss_history']
checkpoint_pointer = data['val_loss_history_it']
... | [
"neutatz@googlemail.com"
] | neutatz@googlemail.com |
cf142b9f2fd1fb5e8cf3857fad308b0fa5003c56 | dd256415176fc8ab4b63ce06d616c153dffb729f | /aditya-works-feature-python_programming (1)/aditya-works-feature-python_programming/24-Jul-2019/nested_class_example/inner_class_1.py | ff91fb3904a8d4af0d622839083cff7ca1336443 | [] | no_license | adityapatel329/python_works | 6d9c6b4a64cccbe2717231a7cfd07cb350553df3 | 6cb8b2e7f691401b1d2b980f6d1def848b0a71eb | refs/heads/master | 2020-07-24T17:15:39.839826 | 2019-09-12T07:53:28 | 2019-09-12T07:53:28 | 207,993,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | class Outer:
def __init__(self):
self.inner = self.Inner()
def reveal(self):
self.inner.display("Calling Inner class function from outer class")
class Inner:
def display(self,msg):
print(msg)
outer = Outer()
outer.reveal()
## both method is right
inner = outer.I... | [
"aditya.patel@1rivet.local"
] | aditya.patel@1rivet.local |
18def03de92ac213dcf488baf0b20ef2ea65a3b1 | b475baab9cdc73b104c077d48ab7053094040068 | /torchbiggraph/converters/export_to_tsv.py | 49cbff0b999d5de9eac4e65970863799a581535a | [
"BSD-3-Clause"
] | permissive | king2727/PyTorch-BigGraph | 91008349eb92d32283ced6a29d60b39229b0d276 | e3de4a3df84e4d7994477bbaa76d828592110a87 | refs/heads/main | 2023-08-26T00:32:43.912575 | 2021-10-27T14:32:52 | 2021-10-27T14:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,783 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE.txt file in the root directory of this source tree.
import argparse
from typing import Iterable, TextIO
from torchbiggraph.checkpoint_ma... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
64a76e03201f2dd54989a72856ef55fb03fd7f1c | e197cbe92104a328ac87c201569724b6142c34ce | /workshop1/settings.py | 2353d21f77d7fe92e0b3303f1ff34fb19057af63 | [] | no_license | chepe4pi/workshop1 | 877654782dee2f0a0d5d26aabd19356225fad59a | e744ec0520071beba3549519a04d3d728b61c0a0 | refs/heads/master | 2021-07-14T02:53:52.473856 | 2017-10-18T15:04:47 | 2017-10-18T15:04:47 | 105,813,167 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | """
Django settings for workshop1 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"chepe4pi@gmail.com"
] | chepe4pi@gmail.com |
550dd7c6a02182f25d9f4efb8462999eb0161fe3 | 3ad8887aca54daa74b1fe446cb35cd0902e1e9bd | /jackdaw/gatherer/ldap/agent/common.py | 9dbba6051d5737ff4460fb9c6620d25d4d1ef4b7 | [] | no_license | huangzccn/jackdaw | 6ea5f3f7901c1c64b469ea4c25de0e77a3fc49a2 | 1a9800152fb8f19d5db43fcd235f45f6db2e3878 | refs/heads/master | 2023-08-29T11:44:46.692776 | 2021-10-23T20:00:36 | 2021-10-23T20:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | import enum
class LDAPAgentCommand(enum.Enum):
SPNSERVICE = 0
SPNSERVICES = 1
USER = 2
USERS = 3
MACHINE = 4
MACHINES = 5
OU = 6
OUS = 7
DOMAININFO = 8
GROUP = 9
GROUPS = 10
MEMBERSHIP = 11
MEMBERSHIPS = 12
SD = 13
SDS = 14
GPO = 15
GPOS = 16
TRUSTS = 17
SCHEMA = 18
EXCEPTION = 99
SPNSERVICES_FI... | [
"info@skelsec.com"
] | info@skelsec.com |
816c4461ef4bd6c6665cc240da911eecc02460b1 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/com/icims/oasispetroleum.py | 02b50cd3371124e8785267ca1f23c53926380bbc | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | from neekanee.jobscrapers.icims.icims2 import IcimsJobScraper
COMPANY = {
'name': 'Oasis Petroleum',
'hq': 'Houston, TX',
'home_page_url': 'http://www.oasispetroleum.com',
'jobs_page_url': 'https://jobs-oasispetroleum.icims.com/jobs/intro?in_iframe=1',
'empcnt': [201,500]
}
class OasisPetroleumJ... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
863046733c83dda48b2b4afcc90be17c2f9b0841 | 7ff0077a55f6bf4a74704e430f354aeabaae3e0b | /tensorflow_probability/python/bijectors/weibull_test.py | c1289dbf4e865ef6940993c305076a246fcf7033 | [
"Apache-2.0"
] | permissive | markaduol/probability | 50a1d97810d11c747bd9546f977b2937c9e04d78 | 8af21dff96502a5bdc01b1be2c595043a3efc5d1 | refs/heads/master | 2020-03-29T20:50:26.001297 | 2018-09-25T21:51:10 | 2018-09-25T21:51:50 | 150,333,784 | 0 | 1 | Apache-2.0 | 2018-09-25T21:54:49 | 2018-09-25T21:54:49 | null | UTF-8 | Python | false | false | 2,768 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
2854d57257d3db636fb50901650e1de302aeb079 | 562522946c03d168569cd79f43140c8326441fb4 | /nn.py | c6f15358a68cd1305fd4f5a439e748f625d64abd | [] | no_license | hackingmath/puzzles | 3d5f17d037f97767e14d1c1be51e352dc35928c7 | a3fd8cc976759b655b9eb13db173c461d8ced5ca | refs/heads/master | 2021-06-08T12:55:03.290076 | 2021-06-07T16:43:55 | 2021-06-07T16:43:55 | 159,741,819 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | """DIY Neural Net
Sept. 26, 2019"""
import math
from matrix import Matrix,transpose,multiply
def sigmoid(x):
return 1 / (1 + math.exp(-x))
def dsigmoid(y):
return y * (1 - y)
class NeuralNetwork(object):
def __init__(self, input_nodes,hidden_nodes,output_nodes,
lea... | [
"noreply@github.com"
] | hackingmath.noreply@github.com |
93e56287fee314f5e72515d1053e8119aadf4c05 | 96e38b89fa057fa0c1cf34e498b4624041dfc6e2 | /BOJ/DFS/Python/16946.py | 9a1a8a8cdd3697ecee32131f3f4d4f30a7f49492 | [] | no_license | malkoG/polyglot-cp | 66059246b01766da3c359dbd16f04348d3c7ecd2 | 584763144afe40d73e72dd55f90ee1206029ca8f | refs/heads/master | 2021-11-24T13:33:49.625237 | 2019-10-06T07:42:49 | 2019-10-06T07:42:49 | 176,255,722 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | dx = [-1, 0, 1, 0]
dy = [0, -1, 0, 1]
area = [0] * 1010101
def dfs(field, component, x, y, max_x, max_y, num_of_components):
component[y][x] = num_of_components
area[num_of_components] += 1
for i in range(4):
next_x = x + dx[i]
next_y = y + dy[i]
if next_x > 0 and next_x <= max_x a... | [
"rijgndqw012@gmail.com"
] | rijgndqw012@gmail.com |
74a377f3bcaf26e2e0c06cefce6c53b6c4ade061 | 42186fa6507999ce60d334a0f04d9ae2127579cd | /安恒杯10月/ezshop/payment/urls.py | 6c40abef29cdd96038a297c075c72985a8be4cf7 | [] | no_license | Imtinmin/CTF_Challenge | ef8b62b3a4a1741d814d989f795a243257ff6f2b | ea276596f9effdbe0cf9ef4457e2e676e652bb74 | refs/heads/master | 2022-12-21T12:40:40.625562 | 2020-04-30T03:27:56 | 2020-04-30T03:27:56 | 158,999,004 | 18 | 3 | null | 2022-12-10T04:34:27 | 2018-11-25T04:53:04 | PHP | UTF-8 | Python | false | false | 140 | py | from django.urls import path
from .views import checkPayment
app_name='payment'
urlpatterns = [
path('check', checkPayment, name='check')
] | [
"954093370@qq.com"
] | 954093370@qq.com |
7dde5a888030c37e55eb6f400d27220026f4bf54 | 9d16c9badcc3d30ec7eb1c3caa73f3ecd2d8161e | /blog_project/settings.py | 6466a803a5d69312122aebf75c641987bc947d10 | [] | no_license | Jordan-Rob/dj-blog | aca34eb2cd737ee3fd806eb360b615ceceedc9c4 | 81a1414c1213dd3c8731c1195a11f7c456b973d6 | refs/heads/master | 2021-09-27T18:55:48.685682 | 2020-02-19T07:57:49 | 2020-02-19T07:57:49 | 241,149,581 | 0 | 1 | null | 2021-09-22T18:38:44 | 2020-02-17T16:04:21 | Python | UTF-8 | Python | false | false | 3,540 | py | """
Django settings for blog_project project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"jordanrob709@gmail.com"
] | jordanrob709@gmail.com |
7a46a14e687412faa1f5cc1ed42e79d9948cbd85 | db69daa1b517b539d78e4ab79691c33fdb410e8f | /check_friend.py | d31cd515ec1cdaad92e1d1894ae6181aa6afd5ee | [
"MIT"
] | permissive | team55/vkbot | 4cd49faefda81db4aae7db6c0bb6d2204097494f | 34705106560dbf6d96eee8b21cfd6d78e05646ef | refs/heads/master | 2021-01-21T01:39:28.846429 | 2016-06-26T11:16:15 | 2016-06-26T11:16:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | import time
import config
import accounts
fields = 'photo_50,country,last_seen'
s = open(accounts.getFile('allowed.txt'), encoding='utf-8').readlines()
noadd = set(map(int, open(accounts.getFile('noadd.txt')).read().split()))
allowed = set(s[0] + ' ')
s = s[1].split()
offline_allowed = config.get('check_friend.offli... | [
"kalinochkind@gmail.com"
] | kalinochkind@gmail.com |
97b226cbbe0e31725743a250e4d4740cda6c9572 | 5c3ae39ce3964fab73959052cdece57c263ad52c | /tests/unit/test_payment_method_gateway.py | 786d846ab0f5ab21b7ff22d5d911bae42ad6b95f | [
"MIT"
] | permissive | maneeshd/braintree_python | bb072f8db300797338cf3ccbfa755a45eabb0db2 | 4aa3f4b8a376ea81bf16a053d840efe55ae13675 | refs/heads/master | 2023-08-31T12:04:24.420050 | 2020-02-29T06:40:34 | 2020-02-29T06:48:49 | 243,717,955 | 0 | 0 | MIT | 2020-10-02T20:21:05 | 2020-02-28T08:50:21 | Python | UTF-8 | Python | false | false | 6,835 | py | from tests.test_helper import *
from braintree.payment_method_gateway import PaymentMethodGateway
if sys.version_info[0] == 2:
from mock import MagicMock
else:
from unittest.mock import MagicMock
class TestPaymentMethodGateway(unittest.TestCase):
def test_create_signature(self):
actual_signature = ... | [
"code@getbraintree.com"
] | code@getbraintree.com |
6408cc3a3d782a6b3d7e64ff7926e7380008c136 | 16631cf7cd4a70f2cd2750851649d3eff5e17724 | /2019/day02/part2.py | ec6da2e434b6d2de88016e4776ea6087928eb9f4 | [] | no_license | kynax/AdventOfCode | 1dd609a3308d733f2dd7d4ea00508d2da73180b9 | 36a339241dd7a31ebe08a73e5efa599e5faeea1a | refs/heads/master | 2022-12-21T13:32:52.591068 | 2022-12-16T22:41:30 | 2022-12-16T22:41:30 | 48,439,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import sys
from intcode import *
m = [int(l) for l in sys.stdin.readline().split(',')]
for verb in range(100):
for noun in range(100):
c = IntCode()
c.mem_init(m)
c.mem_set(1, noun)
c.mem_set(2, verb)
c.run()
if c.result() == 19690720:
print(100... | [
"guilemay@gmail.com"
] | guilemay@gmail.com |
a91390aea6a8dc9e7b2c54cfb9d54260053f026d | 3a784e3d612cfc58d73eb017b2f1b068a570d55c | /z3/fancy.py | 1bad9d13f5828658b4960d33dcd6715690aa6461 | [] | no_license | DialloMamadou/PPC | 23f527671007952b0b7707716a367aa47b709842 | 03e508a2b2f3314fbb40eab345506b62fcb8e1da | refs/heads/master | 2020-05-23T15:06:43.588228 | 2019-05-05T19:33:09 | 2019-05-05T19:33:09 | 186,819,656 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | #!/usr/bin/python -u
# -*- coding: latin-1 -*-
#
# Mr Greenguest puzzle (a.k.a fancy dress problem) in Z3
#
# Problem (and LPL) code in
#
# http://diuflx71.unifr.ch/lpl/GetModel?name=/demo/demo2
#
# """
# (** Mr. Greenfan wants to give a dress party where the male guests
# * must wear green dresses. The following rul... | [
"hakank@gmail.com"
] | hakank@gmail.com |
1b3d67978f6b4b17f7e6bd2541a0308600324518 | aa9aa0868d857d64603e7b0e9e8cff0e2bbdf189 | /server/migrations/0059_machine_report_format.py | dd178bc844c43e713743a8291a09c6e2fc397df5 | [
"Apache-2.0"
] | permissive | haribert/sal | 2ecafa7d5b7c812f860465f7f4511209d8916526 | 9c80cf9b063ba1cb1fb7649dc6aba7f032de261b | refs/heads/master | 2021-09-06T05:07:46.868175 | 2018-02-02T16:12:44 | 2018-02-02T16:12:44 | 112,587,211 | 0 | 0 | null | 2017-11-30T08:44:43 | 2017-11-30T08:44:43 | null | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-09-30 12:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('server', '0058_auto_20170822_1430'),
]
operations = [
migrations.AddField(
... | [
"graham@grahamgilbert.com"
] | graham@grahamgilbert.com |
a84b044c4ec14bb86cb2f2cf4cafa93abd776f37 | bc6b561958649c391c159d4dd3363c60eeabc7e4 | /mayan/apps/file_caching/tests/test_events.py | f64952560df1b1a38aab02077d4856121e0f301a | [
"Apache-2.0"
] | permissive | chrisranjana/Mayan-EDMS | 37deb105cda268768fea502491ae875ff905e0e9 | 34b414ce49a2eb156e27dc1a2915e52121c9d1b7 | refs/heads/master | 2020-12-22T13:50:41.263625 | 2020-01-28T18:45:24 | 2020-01-28T18:45:24 | 236,804,825 | 0 | 1 | NOASSERTION | 2020-01-28T18:12:53 | 2020-01-28T18:12:52 | null | UTF-8 | Python | false | false | 1,096 | py | from __future__ import unicode_literals
from actstream.models import Action
from mayan.apps.common.tests.base import BaseTestCase
from ..events import event_cache_created, event_cache_purged
from ..models import Cache
from .mixins import CacheTestMixin
class CacheEventsTestCase(CacheTestMixin, BaseTestCase):
... | [
"roberto.rosario@mayan-edms.com"
] | roberto.rosario@mayan-edms.com |
a346ab92b72621f5e8966b5d8b20365ea9816590 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02854/s614017761.py | 93c7fca03d5483bad4cda9f6e10005518c14e660 | [] | 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 | 166 | py | n = int(input())
a = list(map(int,input().split()))
r = ans = sum(a)
l = 0
ans = float('inf')
for i in a:
r -= i
l += i
ans = min(ans,abs(r-l))
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b3ca48aa937f678d46460cb290f303d6d3d024ae | d11a77c7230880973fc48cb64f86f621b642b3e9 | /solutions/video_similarity_search/quick_deploy/server/src/operations/search.py | 3087edb4814e19e9ab7cc1f6b9f0f15189c46203 | [
"Apache-2.0"
] | permissive | parsa-ra/bootcamp | 22bd6082948aad13b14537582b321ae570b4dc7a | f881a562751c673f45eaba063803adcb472fc1da | refs/heads/master | 2023-08-10T19:50:15.334127 | 2021-09-18T07:16:16 | 2021-09-18T07:16:16 | 407,830,782 | 0 | 0 | Apache-2.0 | 2021-09-18T10:36:49 | 2021-09-18T10:36:48 | null | UTF-8 | Python | false | false | 838 | py | import sys
from logs import LOGGER
sys.path.append("..")
from config import TOP_K
from config import DEFAULT_TABLE
def do_search(host, table_name, img_path, model, milvus_client, mysql_cli):
if not table_name:
table_name = DEFAULT_TABLE
try:
feat = model.resnet50_extract_feat(img_path... | [
"shiyu.chen@zilliz.com"
] | shiyu.chen@zilliz.com |
e1bfb943e312a2e57db0c78c33fa8d0db2f45f44 | 81f999d6f8e622542212e6fc2b5e328b06ced75d | /admin/post.py | b02de7c9f90fe7b52e9071d0c01a5cb86bcc7e90 | [] | no_license | lujinda/zjypan | 37beab246b1ceb84ae24330b742d3a9bf7a635a5 | fcc2a8ff221eeaebaced84735b3e12b3584efc8c | refs/heads/master | 2021-01-01T20:49:04.984315 | 2015-07-12T08:25:33 | 2015-07-12T08:25:33 | 29,416,929 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | #!/usr/bin/env python
#coding:utf8
# Author : tuxpy
# Email : q8886888@qq.com
# Last modified : 2015-02-22 21:56:00
# Filename : admin/post.py
# Description :
from .base import AdminHandler
from page.do import write_post, get_post_list, get_post, del_post
from public.do import swith_tim... | [
"q8886888@gmail.com"
] | q8886888@gmail.com |
4a5864386c1107faa4a2a4a9a3af41fecc137e9c | 82cba93ed3339150dcbccc1e3a245f7284edb8ed | /t.py | 7c820b15876f323d1c459455ba089bdd030e14be | [] | no_license | boyi880322/python | c10ca906cb6db7e143071f7c830eb9d9741ee05b | 375e6d532f229f5a508ca8396b6cd1aa77aa6c46 | refs/heads/main | 2023-02-12T13:42:29.393617 | 2021-01-12T02:24:35 | 2021-01-12T02:24:35 | 325,202,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | name = input("姓名:")
while name != "":
h = float(input("身高(公尺):"))
w = int(input("體重(公斤):"))
BMI = w / h ** 2
print("{}的BMI是:{}".format(name, BMI))
name = input("姓名:") | [
"skynet.tw@gmail.com"
] | skynet.tw@gmail.com |
a0545f0e647e3e695ae19d66971e2bec4f38d109 | 832b4121b7d49b56ce9446cb1437b401a037b43f | /python/part03-scripts/save_the_world_v1.py | a19df8f23e84963a54b2391eedf291aad34aa769 | [] | no_license | dleehr/gcb-academy-python | 407ad2fef3f73d7e2485c7839b20c0cf53050e07 | 3a2d191ac33b8e08c2380856e01bbc65b5fd5eec | refs/heads/master | 2021-01-18T14:01:53.320240 | 2015-02-03T19:05:02 | 2015-02-03T19:05:02 | 29,843,584 | 0 | 0 | null | 2015-02-02T18:56:08 | 2015-01-26T03:38:36 | Python | UTF-8 | Python | false | false | 479 | py | import fileinput
import re
for line in fileinput.input():
match = re.search('^(.*)\t(20\d\d)-(\d\d)-(\d\d)\t(\d+\.?\d*)$', line)
if match:
fields = [
match.group(2), # year
match.group(3), # month
match.group(4), # day
match.group(1), # site
... | [
"whitews@gmail.com"
] | whitews@gmail.com |
c38311c336acbeb73379afa6ba0e49ecee97a5c4 | 04875545151aa1ef547c2c47ae36b9c90254317b | /example/SyntheticParameterized/basis.py | 0b99aa22b0201ff5e38f543e5a7992c74b0cc8a5 | [
"MIT"
] | permissive | treverhines/PSGI | 5a49da0a24e2460350b280f2437229de51ea3364 | 356ca2208fc24d51062417126807d79dd79df73c | refs/heads/master | 2021-03-12T19:57:37.642196 | 2015-11-14T02:08:20 | 2015-11-14T02:08:20 | 39,227,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,683 | py | #!/usr/bin/env python
#
# This script defines variables and functions which are needed for
# plotting purposes and for using WriteRegularization.py which forms a
# regularization matrix by collocation
#
# Variables in all caps are required for other scripts to run and
# this script must also define the slip and fluidi... | [
"treverhines@gmail.com"
] | treverhines@gmail.com |
27369ce439c746edb215195782810276fff77a6f | e389ca9d52230140038082e3111ce41db1c00514 | /SocialMedia_API/settings.py | ee05062973c3aadfdaccfa3fcdaaf56a19f68cc0 | [] | no_license | DharmendraB/SocialMedia_API | dbd94af3fb71ae1db6dbdaf25bb429bc4648399f | 9cc134525b90f3fbba31b7442688fc7baf41c0e1 | refs/heads/main | 2023-03-29T04:15:25.286277 | 2021-04-04T04:59:08 | 2021-04-04T04:59:08 | 354,458,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | """
Django settings for SocialMedia_API project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impo... | [
"ghldharmendra@gmail.com"
] | ghldharmendra@gmail.com |
ef7fdd81b5556be3d11abd7c8ad2872d3efcf5dc | 713f9168a7ba68740bb9b4ea6994e853a56d2d5c | /python/2019-10-07/shout.py | 075131c1205615b5f917df669e9b52537c71c00b | [] | no_license | marko-knoebl/courses-code | ba7723c9a61861b037422670b98276fed41060e2 | faeaa31c9a156a02e4e9169bc16f229cdaee085d | refs/heads/master | 2022-12-29T02:13:12.653745 | 2022-12-16T09:21:18 | 2022-12-16T09:21:18 | 142,756,698 | 16 | 10 | null | 2022-03-08T22:30:11 | 2018-07-29T11:51:04 | Jupyter Notebook | UTF-8 | Python | false | false | 321 | py | def shout(phrase, end="!"):
"""Prints a phrase in capital letters.
A second optional parameter can mark the end.
"""
# .upper() is a string function that converts the
# string to uppercase
upper = phrase.upper()
print(upper + end)
shout("hello") # HELLO!
shout("hey")
shout("hi", ".") # HI.... | [
"marko.kn@gmail.com"
] | marko.kn@gmail.com |
0fc4a06e03869a0850aefd5b5e8684092faaa024 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_108/ch31_2020_03_23_21_09_21_287563.py | ae11e5f03385199948261d80790e123dffe6af98 | [] | 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 | 182 | py | def eh_primo(n):
if n < 2:
return False
elif n == 2:
return True
for x in range(2,n)
if n % x == 0:
return False
return True | [
"you@example.com"
] | you@example.com |
feb9dd83d3dcf1efadf822ae27bb091c2b222382 | b8c373c2265e894c2f6097457051290152caedc3 | /project_ini/questionnaire/migrations/0004_auto_20170312_2344.py | 52f1cb82be650eeb6d908c2d59af33d73dc22b12 | [] | no_license | alikhundmiri/ini_alpha | b17b8d4c7e6064a5c538d279453e53bbae2c042a | ef3a558287e9de8d01ddda354d850d03226a9bf4 | refs/heads/master | 2021-01-19T09:59:54.817258 | 2017-04-10T12:34:17 | 2017-04-10T12:34:17 | 87,807,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-12 23:44
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('questionnaire', '0003_auto_20170312_23... | [
"salikhundmiri@gmail.com"
] | salikhundmiri@gmail.com |
9e45a9a79b2f82434136ae93f6a234460d3ce2c8 | 816232db2f21e193612eaa60eda0d5897d31caaf | /Inflearn/2일차-코드구현 능력/5.py | 75ab790ecc133625aaf2085bb608b959feb78934 | [] | no_license | Juyoung4/StudyAlgorithm | a60bfa7657eac57f59200bfa204aff1ad27c79f8 | 4b190e0bfeb268bef4be00ae9bedd9ca8946fbd6 | refs/heads/master | 2023-08-31T04:37:07.422641 | 2021-09-27T08:38:09 | 2021-09-27T08:38:09 | 282,757,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # 점수 계산
"""
[문제]
여러 개의 OX 문제로 만들어진시험에서 연속적으로 답을 맞히는 경우에는 가산점을 주기 위해서 다음과 같이 점수 계산을 하기로 하였다
- 1번 문제가 맞는 경우에는 1점으로 계산한다.
- 앞의 문제에 대해서는 답을 틀리다가 답이 맞는 처음 문제는 1점으로 계산한다.
- 연속으로 문제의 답이 맞는 경우에서 두 번째 문제는 2점, 세 번째 문제는 3점, ..., K번째 문제는 K점으로 계산한다.
- 틀린 문제는 0점으로 계산한다.
(ex)
10 개의 OX 문제에서 답이 맞은 문제의 경우에는 1로 표시하고, 틀린 경우에는 ... | [
"vallot7@naver.com"
] | vallot7@naver.com |
bac92da3627b53e8162cbf94250ccf181fff620b | 21e177a4d828f4e0a003e9424c4952dbc0b47d29 | /lints/lint_sub_cert_province_must_appear.py | 0232e7991a8e0921aca00c46582fb7e3dd8ac4e6 | [] | no_license | 846468230/Plint | 1071277a55144bb3185347a58dd9787562fc0538 | c7e7ca27e5d04bbaa4e7ad71d8e86ec5c9388987 | refs/heads/master | 2020-05-15T12:11:22.358000 | 2019-04-19T11:46:05 | 2019-04-19T11:46:05 | 182,255,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | from lints import base
from cryptography import x509
from cryptography.x509.oid import NameOID
from util.time import Time
from util import ca
'''
'''
class subCertProvinceMustAppear(base.LintInterface):
def Initialize(self):
return 0
def CheckApplies(self,c):
return ca.IsSubscriberCert(c)
... | [
"846468230@qq.com"
] | 846468230@qq.com |
af39a1bf1eb073451ed5e06bcf042d850a88ea85 | edcc2f90e91cc781ed6e305daa5f6cb539533897 | /dataset/py150/utils/ast/child_only.py | b412d1e5a9d1e1bc4ae53d064ec6d2eb17c75efd | [
"MIT"
] | permissive | keiouok/naturalcc | d364639700d137720242a32b74b3ac48d0e94b76 | 7bab9a97331fafac1235fb32de829ff8d572320f | refs/heads/master | 2023-06-03T10:38:42.481107 | 2021-06-20T00:52:52 | 2021-06-20T00:52:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,323 | py | import sys
from ncc.data.constants import (
PAD,
SBT_LEFT_PARENTHESE,
SBT_RIGHT_PARENTHESE,
)
from ncc.data import tokenizer_funcs
from ..constants import (
RECURSION_DEPTH,
MAX_SUBTOKEN_LEN,
NODE_TMP,
)
from copy import deepcopy
# ignore those ast whose size is too large. Therefore set it as a... | [
"yanghece96@gmail.com"
] | yanghece96@gmail.com |
73f09faf8526f34d6d9fda58789407a5e7cc3123 | 5e255ad1360c90478393744586663741a9569c21 | /linebot/v3/audience/models/audience_group_type.py | 02893782b733c181cd30b2473e4ee4459e95ae99 | [
"Apache-2.0"
] | permissive | line/line-bot-sdk-python | d76268e8b542060d6eccbacc5dbfab16960ecc35 | cffd35948238ae24982173e30b1ea1e595bbefd9 | refs/heads/master | 2023-08-31T22:12:31.698183 | 2023-08-28T01:10:09 | 2023-08-28T01:10:09 | 70,553,423 | 1,898 | 1,181 | Apache-2.0 | 2023-09-11T05:14:07 | 2016-10-11T03:42:26 | Python | UTF-8 | Python | false | false | 1,017 | py | # coding: utf-8
"""
LINE Messaging API
This document describes LINE Messaging API. # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
import json
import pprint
import re # noqa: F401
from... | [
"noreply@github.com"
] | line.noreply@github.com |
21ea2e613c180d34f365b8fba3bcd8715f8abe8c | e7f814227f64aae9ea30dd7c878a9406d0c2380f | /optuna_dashboard/search_space.py | 1f740fde7e59881d31fdf4846bb86acbb835e07e | [
"MIT"
] | permissive | tktran/optuna-dashboard | 8bf5c106cc3c96470c9e281bcb28bd6c92138627 | 38e56010bf9230f8b27c7eeeb7f01a2f65cda7ac | refs/heads/main | 2023-03-31T09:54:14.289445 | 2021-04-04T06:26:46 | 2021-04-04T06:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | import copy
import threading
from typing import Dict, List, Optional, Set, Tuple
from optuna.distributions import BaseDistribution
from optuna.trial import TrialState, FrozenTrial
SearchSpaceSetT = Set[Tuple[str, BaseDistribution]]
SearchSpaceListT = List[Tuple[str, BaseDistribution]]
# In-memory search space cache
... | [
"contact@c-bata.link"
] | contact@c-bata.link |
9f706d9d26452ede0c1df501a6d6ac04541e0c77 | ef29c31ef26815a237445b9359da00c4323717d0 | /django/orm/manytomany/models.py | 56c410dff6f951f6196132a5d64b33a8807bbe6a | [] | no_license | gvg4991/TIL-c9 | 3fe59bfe114e3af7f56a9163fa9e7ec83b3f97f0 | 2e4d6b99de2523ac4540cac2acd40342bbd6f9e3 | refs/heads/master | 2020-04-17T17:18:04.146013 | 2019-05-09T06:59:19 | 2019-05-09T06:59:19 | 166,777,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | from django.db import models
# Create your models here.
# 병원에 오는 사람들을 기록하는 시스템을 만드려고 한다.
# 필수적인 모델은 환자와 의사이다.
# 어떠한 관계로 표현할 수 있을까?
class Doctor(models.Model):
name = models.TextField()
# patients = models.ManyToManyField(Patient, through='Reservation') #아래 doctors와 둘 중 하나만 적기!
# patient1.doctor_set.all()... | [
"14.73oo6o19@gmail.com"
] | 14.73oo6o19@gmail.com |
f73e6a719077834333f26688c0cefb3ca7a0773e | d6aed520d16b5c6d1b36ef4e21e4c0d895b751fe | /blog/models.py | 9a14f374ba058b002c2f20a38cc4888f3bd28990 | [
"MIT"
] | permissive | CoderLambert/DjangoBlog | 22bd71ed29af37847cd17542d21e1f2253975469 | a29290aadc5ace070976dd934a530c9e6fe3bb56 | refs/heads/master | 2021-05-06T02:58:57.162849 | 2017-12-16T18:11:38 | 2017-12-16T18:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,636 | py | from django.db import models
from django.core.urlresolvers import reverse
from django.conf import settings
from uuslug import slugify
from django.contrib.sites.models import Site
from DjangoBlog.utils import cache_decorator, logger, cache
from django.utils.functional import cached_property
from django.utils.timezone i... | [
"liangliangyy@gmail.com"
] | liangliangyy@gmail.com |
f0e798f0316e955e18f9b5b9ff48d942cad9ac7e | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/218dae7f9abb4ae5803d0c739a05c8b6.py | 44d656f33ebed779c4fc9b02201c0d8f51e2d108 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 245 | py | #
# Skeleton file for the Python "Bob" exercise.
#
def hey(input):
if input.strip() == "" :
return "Fine. Be that way!"
if input.isupper() :
return "Whoa, chill out!"
if input[-1:] == '?':
return "Sure."
return "Whatever."
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
93e8ea6d2bca6946873359d86dfb0118ce399dff | 9095c1a0da8c6ffe914ee6dd9c4708062fd95c9a | /vtpl_api/models/gender.py | c4712ee17882c6e19c587c76af25f03479537928 | [
"MIT"
] | permissive | vtpl1/vtpl_api_py | 2e5338bd08677f12fc7304fb6ac7a32f32af1c93 | d289c92254deb040de925205c583de69802a1c6b | refs/heads/master | 2020-09-10T23:34:21.828350 | 2019-11-15T07:26:53 | 2019-11-15T07:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | # coding: utf-8
"""
Engine api
Engine APIs # noqa: E501
The version of the OpenAPI document: 1.0.4
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Gender(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: htt... | [
"monotosh.das@videonetics.com"
] | monotosh.das@videonetics.com |
3df4a905da8f0e35b240d9567e50007b3ff14528 | ef1bf421aca35681574c03014e0c2b92da1e7dca | /examples/modes/extended_selections.py | 9609014cb98132afba108e9cc0cccf699b92feb4 | [
"MIT"
] | permissive | pyQode/pyqode.core | 74e67f038455ea8cde2bbc5bd628652c35aff6eb | 0ffabebe4f0397d53429024f6f44db3fe97b0828 | refs/heads/master | 2020-04-12T06:36:33.483459 | 2020-01-18T14:16:08 | 2020-01-18T14:16:08 | 7,739,074 | 24 | 25 | MIT | 2020-01-18T14:16:10 | 2013-01-21T19:46:41 | Python | UTF-8 | Python | false | false | 631 | py | """
Minimal example showing the use of the ExtendedSelectionMode.
"""
import logging
logging.basicConfig(level=logging.DEBUG)
import sys
from pyqode.qt import QtWidgets
from pyqode.core.api import CodeEdit
from pyqode.core.backend import server
from pyqode.core.modes import ExtendedSelectionMode
if __name__ == '__ma... | [
"colin.duquesnoy@gmail.com"
] | colin.duquesnoy@gmail.com |
15e97e0097131cf3461a92612e34e80735c8233d | 556e88a954cf031460ea7fdf3791eb968ca4fbdd | /fluent_python/chapter_16/ch16_coroaverager0.py | 4d18e28584350ad23568d896475d11f306ac2cae | [] | no_license | feng-hui/python_books_examples | c696243fcb8305be495f44d1a88a02e7f906b7bd | e38542db7be927cdaa5d85317a58a13b3a13ae25 | refs/heads/master | 2022-03-07T00:37:29.311687 | 2019-09-28T15:15:20 | 2019-09-28T15:15:20 | 122,941,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# @author FH
# @email: capricorn12032126.com
# @time: 2018/12/24 20:55
def averager():
"""
execute at terminal
example:
from chapter_16.ch16_coroaverager0 import averager
coro_avg = averager()
next(coro_avg)
coro_avg.send(10) -> 10.0
coro_avg.... | [
"982698913@qq.com"
] | 982698913@qq.com |
1acf4cb9ad9106bd17384777aa04d54b258c868f | 5016d6d2eb0b66b5d1417001a40a9ec10c983e32 | /python-puka/rpc_client.py | 3ddbf03e07844cb48c3088e911794f338bf83afe | [
"Apache-2.0"
] | permissive | PoeBlu/rabbitmq-tutorials | 6466e463d5ed4e3de8ef9c3ef19ba0768d0857bd | be8f5dd34be04bb31c30d17598bb1cc0b458a2d6 | refs/heads/master | 2023-05-02T03:21:49.824907 | 2015-04-28T17:03:41 | 2015-04-28T17:03:41 | 70,755,760 | 0 | 0 | Apache-2.0 | 2023-04-14T15:25:35 | 2016-10-13T01:11:04 | C# | UTF-8 | Python | false | false | 1,291 | py | #!/usr/bin/env python
import puka
import uuid
class FibonacciRpcClient(object):
def __init__(self):
self.client = client = puka.Client("amqp://localhost/")
promise = client.connect()
client.wait(promise)
promise = client.queue_declare(exclusive=True)
self.callback_queue = c... | [
"majek04@gmail.com"
] | majek04@gmail.com |
79a64e807ffc1a3e3cf0a52eb76fe385806de058 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-ci/connectors/pipelines/pipelines/__init__.py | 371bafaa1370e03bd1b7464db2f095b34966388c | [
"LicenseRef-scancode-free-unknown",
"MIT",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 727 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
"""The pipelines package."""
import logging
import os
from rich.logging import RichHandler
from . import sentry_utils
sentry_utils.initialize()
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
1889a20824f9d1897607d0c56bd84f23b17c9ae4 | 8a2c6e45cd64ee04d8c02ea579e3396cc21f7309 | /PartitionList.py | 325957f56423ab9f55cad10c360a65764aee48f5 | [] | no_license | Danyshman/Leetcode | e665ece38cb0b22d6b5b19f15d6a73e73da1710e | aa2799e7512ea389f6dc18448da7c2b4cda75e47 | refs/heads/master | 2021-07-06T17:44:45.243915 | 2020-10-05T04:55:03 | 2020-10-05T04:55:03 | 191,697,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def partition(self, head: ListNode, x: int):
l1 = l1_head = ListNode(0)
l2 = l2_head = ListNode(0)
if head is None or head.next is None:
return head
node = head
... | [
"danyshman.azamatov@gmail.com"
] | danyshman.azamatov@gmail.com |
f3c58bb4f225970c8017b3ca0bf7fc03919b3db9 | fd529ba6ade52cd2a3dab94da01252d7ea90398d | /0528/foddddddppdpdoodd.py | 5014c1cbe98b6709533621c6e604f53676c551df | [] | no_license | fjfhfjfjgishbrk/AE401-Python | 4a984deb0281542c205d72695285b35c7413338f | ee80fa4588b127cff2402fd81e732ede28a66411 | refs/heads/master | 2022-06-13T13:49:39.875567 | 2022-05-28T12:40:51 | 2022-05-28T12:40:51 | 251,178,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | from selenium import webdriver
from bs4 import BeautifulSoup
from selenium.webdriver.chrome.options import Options
import time
import datetime
import requests
now = datetime.datetime.now()
dateNow = now.strftime("%Y-%m-%d")
chrome_options = Options()
#chrome_options.add_argument('--headless')
chrome = webdriver.Chrome... | [
"59891511+fjfhfjfjgishbrk@users.noreply.github.com"
] | 59891511+fjfhfjfjgishbrk@users.noreply.github.com |
352ce6bbbcce97cc0658ecd29193cba7bd06a0c6 | 111bb07459d59e16fe4ccff773c51426fdc4e3bc | /public/pages/qdsIndexPage.py | cf4cd6b2c543e872931a38346c4424ca547d9c60 | [] | no_license | Pactortester/UItestframework-master | 65486d2708a26fdd78d009bab4bdef0334a98d22 | 3f41da16e62a1ea181eca45ed33120842a324a69 | refs/heads/master | 2020-03-26T15:48:13.752371 | 2018-08-17T10:30:00 | 2018-08-17T10:30:00 | 145,065,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py | #coding=utf-8
from public.common import basepage
from public.common import mytest
import time
class DDSIndexPage(basepage.Page):
def into_qds_page(self):
"""打ads首页"""
self.dr.open('https://new.quandashi.com/')
def return_title(self):
"""返回该页面的title"""
return self.dr.get_title... | [
"1456470136@qq.com"
] | 1456470136@qq.com |
df54030576bca2ec55e311a0961ecbcba5fed0a7 | d5dd2ade4671b237c747b592d3635c1bc2852ca8 | /0x16-api_advanced/1-top_ten.py | 47611769b7e33e0060ef3c1b8b44200d25381a9d | [] | no_license | emna7/holberton-system_engineering-devops | ce14780a6d091ca1da37fbe26e70534081195bcb | ed4bee21409f12c12afd8d28acd121de67643789 | refs/heads/master | 2020-07-24T02:07:42.844728 | 2020-07-07T21:58:19 | 2020-07-07T21:58:19 | 207,769,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!/usr/bin/python3
"""contains 1 function: top_ten"""
import requests
def top_ten(subreddit):
user = {"User-Agent": "custom"}
request = requests.get("https://www.reddit.com/r/{}/hot.json"
.format(subreddit), headers=user)
try:
for i in range(10):
print(reque... | [
"bhmemna7@gmail.com"
] | bhmemna7@gmail.com |
c657cb2b615bc1a8d1d93d8440095c8dc3bab44a | 57aed4644e21ec53e9b3c577bc4faa6b7610d79c | /test_duration.py | 7ba8f3fab4d55ca9fedf7fc9e0c21758297860ea | [
"MIT"
] | permissive | ec500-software-engineering/exercise-2-ffmpeg-JiaruiJin | 1b9277a4ac8c0b4d09236946c0d127f07016b262 | 1b2f99a1b530c3db54c70e44f2cf09bc6c9e0c5f | refs/heads/master | 2020-04-24T21:56:37.027254 | 2019-02-28T21:40:13 | 2019-02-28T21:40:13 | 172,295,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | from pytest import approx
import subprocess
import json
def ffprobe(file) -> dict:
""" get media metadata """
meta = subprocess.check_output(['ffprobe', '-v', 'warning',
'-print_format', 'json',
'-show_streams',
... | [
"noreply@github.com"
] | ec500-software-engineering.noreply@github.com |
c06a9369d360069947fe1625aa7aab2e998bbc6f | 0aa3b2d2146e6754f80a8fcfbde799104c4372d9 | /scripts/dataset_processing/tts/audio_processing/preprocess_audio.py | 128d311e04c0115c83b1e49a54af26bcc4775433 | [
"Apache-2.0"
] | permissive | shalevy1/NeMo | 22d231d15e56aac09704f8d9fb5059da84314641 | 5e07ed39f317fc03de2bb90c5ed218304bf88602 | refs/heads/master | 2023-06-26T18:09:16.776952 | 2023-01-12T22:42:28 | 2023-01-12T22:42:28 | 209,153,028 | 0 | 0 | Apache-2.0 | 2023-06-09T22:53:07 | 2019-09-17T20:43:57 | Python | UTF-8 | Python | false | false | 6,608 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | shalevy1.noreply@github.com |
07ef11d4fa19032f13b947b8fcb93a347ebf61ec | 57a1b4048643a4a68f4e07116d7a9f4222a5ec34 | /ga.py | dc25e9099ee0e25e8a70f3c7e8c3c27069d3f375 | [] | no_license | LauraDiosan-CS/lab04-gatsp-serbancalin | 29fd193353ff7d6c38b5d4fd279929e4f2d4b92a | 188b2a99bf02d172f02e05515ab7e55f653c25ba | refs/heads/master | 2021-04-02T03:45:16.373896 | 2020-03-31T13:15:20 | 2020-03-31T13:15:20 | 248,240,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,236 | py | import random
def mainGA(input):
nrIteratii = input["nrGeneratii"]
# se creeaza o populatie
populatie = Populatie()
populatie.populeaza(input["n"], input["dimensiunePopulatie"], input["startNode"])
while nrIteratii > 0:
parinte1 = selectieReproducere(populatie, input["matrix"])
... | [
"noreply@github.com"
] | LauraDiosan-CS.noreply@github.com |
12edb5f89ba6f2c8dd47d128a4f8ef0560c8ef34 | a02ccb5dff094fad8bcd691dda234d50ff768299 | /tools/Polygraphy/polygraphy/tools/surgeon/subtool/__init__.py | cc6034ccc8df9c408f916506516b9a1284fb6fba | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"ISC",
"BSD-2-Clause"
] | permissive | NVIDIA/TensorRT | 5520d5a6a5926a2b30dbdd2c5b2e4dfe6d1b429b | a167852705d74bcc619d8fad0af4b9e4d84472fc | refs/heads/release/8.6 | 2023-07-29T05:39:45.688091 | 2023-06-09T22:29:09 | 2023-06-09T23:04:18 | 184,657,328 | 8,026 | 2,096 | Apache-2.0 | 2023-09-13T17:30:16 | 2019-05-02T22:02:08 | C++ | UTF-8 | Python | false | false | 183 | py | from polygraphy.tools.surgeon.subtool.extract import Extract
from polygraphy.tools.surgeon.subtool.insert import Insert
from polygraphy.tools.surgeon.subtool.sanitize import Sanitize
| [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
7e4a35ad33a0da28823a458e6da9c48e4536cb0f | 2da6b95fe4237cc00014f80c45d268ab62fc90cd | /DFRep/V_normweight/DFPNet.py | aa5602f8847531e9cab77d9278a61b59fd0b7a0d | [] | no_license | lvzongyao/Open-Set-Recognition-1 | 7e26cd1d97f67b6c075f4e64296ce7a82d479168 | 26a8a1cca199f4e23df98abca6893e3eef3307da | refs/heads/master | 2023-08-19T09:15:16.119377 | 2021-09-13T04:21:18 | 2021-09-13T04:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | """
Version2: includes centroids into model, and shares embedding layers.
"""
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import backbones.cifar as models
from Distance import Similarity, Distance
class DFPNet(nn.Module):
def __init__(self, backbone='ResNet18', num_classes=1000, ... | [
"xuma@my.unt.edu"
] | xuma@my.unt.edu |
1260c5bfe4eb0011b6dd92b047da4841adfa4331 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/541081_Thread_Safe_Any_Object/recipe-541081.py | 7342c9a7b3d0e8a02f39b737502226164403f75d | [
"MIT",
"Python-2.0"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 557 | py | class ThreadSafeObject:
"""
A class that makes any object thread safe.
"""
def __init__(self, obj):
"""
Initialize the class with the object to make thread safe.
"""
self.lock = threading.RLock()
self.object = obj
def __getattr__(self, attr):
... | [
"betty@qburst.com"
] | betty@qburst.com |
520e49c53958f4f5cfc0c6f3582a05760870c8d6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /065_serialization_and_deserialization/002_json/_exercises/_templates/Working With JSON Data in Python/002_Deserializing JSON.py | a9dc2d0a331d0f6f6e26d6388f706549a71f8fcd | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 2,865 | py | # # -*- coding: utf-8 -*-
#
# # Deserializing JSON
# # Great, looks like you’ve captured yourself some wild JSON! Now it’s time to whip it into shape. In the json library,
# # you’ll find load() and loads() for turning JSON encoded data into Python objects.
# # Just like serialization, there is a simple conversion tabl... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
27af581a2079c7dda5b2c4d90d320ba7794f88d6 | 47dbfa8fe684142f88eed391bab1c8049984acda | /tests/TestUtils.py | 00c638d09e4fe6032802dd3333be759e324df36a | [] | no_license | fortyMiles/StanfordAlgorithmCourse | e90dea54ae12b12fbb875e1dd14a33c27af45d46 | b54b0c0b8a044842bfec26f9223e5345d1176964 | refs/heads/master | 2021-09-03T21:34:40.598877 | 2018-01-12T06:14:39 | 2018-01-12T06:14:39 | 109,659,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from utils.utils import replace_element_quickly
from utils.profiler import get_running_time
import random
import copy
running_time = 10000
@get_running_time(running_time=running_time)
def original_replace_way(L, old_e, new_e):
new_L = []
for i in L:
if i == old_e: new_L.append(new_e)
else: n... | [
"mqgao@outlook.com"
] | mqgao@outlook.com |
ef49eb8c1c6ed480e749d0f79d1d7595b2c5a73b | 27b4d1b7723845812111a0c6c659ef87c8da2755 | /Fluent_Python/21_类元编程/record_factory.py | 865a049828201568b3428a78e2a905618598dfef | [] | no_license | NAMEs/Python_Note | 59a6eff7b4287aaef04bd69fbd4af3faf56cccb4 | f560e00af37c4f22546abc4c2756e7037adcc40c | refs/heads/master | 2022-04-11T09:32:17.512962 | 2020-03-17T09:30:58 | 2020-03-17T09:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | def record_factory(cls_name, field_names):
try:
field_names = field_names.replace(',', " ").split()
except AttributeError:
pass
field_names = tuple(field_names)
def __init__(self, *args, **kwargs):
attrs = dict(zip(self.__slots__, args))
attrs.update(kwargs)
for... | [
"1558255789@qq.com"
] | 1558255789@qq.com |
c9b993bd57669777535c69f78395ce1a9830a834 | 9b4de05054f37a65dce49857fb6a809a370b23ca | /person/migrations/0006_person_p_pic.py | 83d8c588ec4bf9ffcdb1f63503bcbb531df5df3a | [] | no_license | susahe/gis | f6b03b8f23abf7ca22c0069a4cdf603bfe879808 | 6b8d433cd5f672994ac138c1b656136425d0c345 | refs/heads/master | 2021-05-12T01:50:12.862559 | 2018-01-27T02:25:31 | 2018-01-27T02:25:31 | 117,569,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 2.0 on 2017-12-24 02:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('person', '0005_auto_20171223_1730'),
]
operations = [
migrations.AddField(
model_name='person',
name='p_pic',
... | [
"sumudu.susahe@gmail.com"
] | sumudu.susahe@gmail.com |
b06929bd407a91e7ab68e1dc6adc7fd2c187e252 | c5744c2fda48ae6a79c155c641fe98021a0cb7f3 | /PP4E/GUI/ShellGui/shellgui.py | 4ed6046c52f0842dac1c08fd92c495f59e463026 | [] | no_license | skinkie/Scripts | e0fd3d3f767612ade111f28bc7af3e1b25fc2947 | 80a1ba71ddf9a0c5ff33866832cb5c42aca0c0b1 | refs/heads/master | 2021-05-31T16:57:21.100919 | 2016-05-23T09:58:59 | 2016-05-23T09:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | #!/usr/local/bin/python
"""
e.g. 10-5
##########################################################################
工具启动器, 使用guimaker模板, guimixin标准quit对话框; 本程序只是一个类库, 要显示
图形界面, 请运行mytools脚本
##########################################################################
"""
from tkinter import *
from PP4E.GUI.Tools.guimixin im... | [
"death_finger@sina.com"
] | death_finger@sina.com |
53d67ff92bd610c4d6a221c9495e62e5de801d5a | 55eda01bdcbda99f72cfdf0b29afb5ea36756873 | /arxiv/kdgan/trials/nobatch/metric.py | 26dbe61e3471dd57fefde1c7ec66fffc0b6eedfc | [] | no_license | yyht/KDGAN | 7489a0ca1a2f044b6bcb7cd8bb0d6f2dae1da5e7 | 8f1367d242d7d174bf5bb2740aa18e3846d7b521 | refs/heads/master | 2020-05-16T08:36:18.872239 | 2019-01-12T04:17:31 | 2019-01-12T04:17:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | import numpy as np
def compute_score(logits, labels, cutoff, normalize):
predictions = np.argsort(-logits, axis=1)[:,:cutoff]
batch_size, _ = labels.shape
scores = []
for batch in range(batch_size):
label_bt = labels[batch,:]
label_bt = np.nonzero(label_bt)[0]
prediction_bt = pr... | [
"xiaojiew1@student.unimelb.edu.au"
] | xiaojiew1@student.unimelb.edu.au |
83dd947d41a89af655f1f3fb6aa74965019bf8c2 | 9cc76b1b1dd0064ab6613cbca6ce93bc179db355 | /ros_ws/build/learning_ros/Part_2/lidar_alarm/catkin_generated/pkg.develspace.context.pc.py | e0b46158886e263efb8a7494036a7a51db3b4004 | [] | no_license | ABCaps35/learning_ros_ready_ws | 1131c32b2ecadffa8dd186c9ebcfdba7284f30ad | 1aa9c512d5006584e8bc84101a715e16a222a47d | refs/heads/main | 2023-04-03T20:32:58.671255 | 2021-04-13T23:41:13 | 2021-04-13T23:41:13 | 357,715,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "lidar_alar... | [
"acapelli345@gmail.com"
] | acapelli345@gmail.com |
55d3863597c6b206e5cdb3d151e7c33a8e4cc987 | 41dc19883789f45b6086399a1ae23995f53b4b2c | /bayesian-stats-modelling-tutorial/notebooks/utils.py | 2b57dbc6659cd9441d8abca762dae681d5171176 | [
"MIT"
] | permissive | sunny2309/scipy_conf_notebooks | f86179ddcd67168b709c755cc01862ed7c9ab2bd | 30a85d5137db95e01461ad21519bc1bdf294044b | refs/heads/master | 2022-10-28T17:27:42.717171 | 2021-01-25T02:24:05 | 2021-01-25T02:24:05 | 221,385,814 | 2 | 0 | MIT | 2022-10-20T02:55:20 | 2019-11-13T06:12:07 | Jupyter Notebook | UTF-8 | Python | false | false | 492 | py | import numpy as np
def ECDF(data):
"""Compute ECDF for a one-dimensional array of measurements."""
# Number of data points
n = len(data)
# x-data for the ECDF
x = np.sort(data)
# y-data for the ECDF
y = np.arange(1, n+1) / n
return x, y
def despine(ax):
ax.spines['right'].set_... | [
"sunny.2309@yahoo.in"
] | sunny.2309@yahoo.in |
e96a9e2d544fe3df65de440760a2510d46864deb | a8042cb7f6a4daec26b8cea6b7da2cb7cb880a84 | /997_FindtheTownJudge.py | 3d35d0d8a85d7fad9c59f1adab8826c33b289454 | [] | no_license | renukadeshmukh/Leetcode_Solutions | 0108edf6c5849946623a75c2dfd57cbf9bb338e4 | 1211eac167f33084f536007468ea10c1a0ceab08 | refs/heads/master | 2022-11-10T20:48:42.108834 | 2022-10-18T07:24:36 | 2022-10-18T07:24:36 | 80,702,452 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | '''
997. Find the Town Judge
In a town, there are N people labelled from 1 to N. There is a rumor that one
of these people is secretly the town judge.
If the town judge exists, then:
The town judge trusts nobody.
Everybody (except for the town judge) trusts the town judge.
There is exactly one person that satisfies ... | [
"renud1988@gmail.com"
] | renud1988@gmail.com |
b7fd323fcc803b1f893482e9a3dfdda684488089 | 35a2a3f5fa6573c32e411d399a60e6f67ae51556 | /example/fcn-xs/solver.py | cf7298b83c8c69283950847701c0c82c30e9b383 | [
"Apache-2.0",
"BSD-2-Clause-Views",
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause",
"Intel",
"LicenseRef-scancode-proprietary-license",
"CC-BY-NC-4.0"
] | permissive | TuSimple/mxnet | 21c1b8fedd1a626cb57189f33ee5c4b2b382fd79 | 4cb69b85b4db8e1492e378c6d1a0a0a07bd737fb | refs/heads/master | 2021-01-09T07:59:24.301512 | 2019-07-27T00:56:52 | 2019-07-27T00:56:52 | 53,660,918 | 33 | 47 | Apache-2.0 | 2019-07-27T01:09:17 | 2016-03-11T10:56:36 | Python | UTF-8 | Python | false | false | 7,190 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"piiswrong@users.noreply.github.com"
] | piiswrong@users.noreply.github.com |
416a5be967979ccd729bd346dbadfa91fc98de62 | bebba3fb1dfc13a2220f06997c4bc8da42ef8e87 | /smashlib/ipy3x/nbconvert/exporters/pdf.py | 873282d02c0808d0c87c8868da6db44206a5ad4e | [
"MIT"
] | permissive | mattvonrocketstein/smash | b48b93c3419637f615c7ac3386b04ae756e1fadc | 98acdc27ab72ca80d9a7f63a54c0d52f126a8009 | refs/heads/master | 2021-01-18T23:23:59.340206 | 2016-07-14T01:28:17 | 2016-07-14T01:28:17 | 2,813,958 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | """Export to PDF via latex"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import subprocess
import os
import sys
from IPython.utils.traitlets import Integer, List, Bool, Instance
from IPython.utils.tempdir import TemporaryWorkingDirectory
from .latex import La... | [
"matthewvonrocketstein@gmail-dot-com"
] | matthewvonrocketstein@gmail-dot-com |
baad1ea61ddcc627ef3a4d33fe866a8b0fce5db7 | a11aa2be20ccc0c814153e7f17813f412c8a3d45 | /tests/testapp/settings.py | d96ff9bf0456cd192716dbc6f613ad51f00dd48c | [
"BSD-3-Clause"
] | permissive | Jiaming1999/django-beam | 32e80ab3472fc5aa25b79dabdb21080e89804bdc | cba5874bfef414e65051c2534cf03c772a4da98c | refs/heads/master | 2023-08-16T04:59:20.479734 | 2021-10-25T13:18:30 | 2021-10-25T13:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
INSTALLED_APPS = [
"beam",
"beam.themes.bootstrap4",
"testapp",
"crispy_forms",
"django.contrib.contenttypes",
# "django.contrib.admin",
"django.contrib.sessions",
"django.contrib.auth",
# contrib.... | [
"raphael.kimmig@ampad.de"
] | raphael.kimmig@ampad.de |
cc17a773ede83ac3e9cf349ec624f77af64bc738 | b53141494618cd6c1bc96960f9a6026257f9fbb3 | /packaging/setup/plugins/ovirt-engine-setup/apache/selinux.py | 6cd9eb057f0264cc12be97b40dcb50745ffdbcb0 | [
"Apache-2.0"
] | permissive | SunOfShine/ovirt-engine | b97454017c86e7729265dc70bbf58f1d0319c560 | 7684597e2d38ff854e629e5cbcbb9f21888cb498 | refs/heads/master | 2020-12-30T19:23:27.311186 | 2013-05-13T20:36:58 | 2013-06-09T09:42:14 | 10,784,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #
# ovirt-engine-setup -- ovirt engine setup
# Copyright (C) 2013 Red Hat, 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 r... | [
"gerrit2@gerrit.ovirt.org"
] | gerrit2@gerrit.ovirt.org |
fd2e282016d51faca7f03108af89b284f4cec396 | 72764f01185c872daa7519f919511f6a49ecf94e | /Basic_App/models.py | 767c729f46a33c3a0bfbb4f0dbfc8704c8a39866 | [] | no_license | Alan-thapa98/Online-Shopping-master | 9df018293d42e08060f72f0c3d566fb2de5ce30a | 6de6552edc67495e9902154f83a73b2a7c759f7b | refs/heads/master | 2023-06-25T06:10:39.141935 | 2021-07-30T16:06:20 | 2021-07-30T16:06:20 | 391,121,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | from django.db import models
# Create your models here.
class home(models.Model):
author=models.ForeignKey('auth.User',on_delete=models.CASCADE)
title=models.CharField(max_length=200)
price=models.FloatField()
image=models.ImageField(upload_to='media/home')
details=models.TextField()
posted_o... | [
"alanthapa98.gmail.com"
] | alanthapa98.gmail.com |
5909d464cdf9b56d9f67865e413a18d52700f581 | 56ca0c81e6f8f984737f57c43ad8d44a84f0e6cf | /src/raport_slotow/tests/test_views/test_raport_slotow_autor.py | b3c12f85003d3d7324d8ec69c4f9edd627a7b676 | [
"MIT"
] | permissive | iplweb/bpp | c40f64c78c0da9f21c1bd5cf35d56274a491f840 | a3d36a8d76733a479e6b580ba6ea57034574e14a | refs/heads/dev | 2023-08-09T22:10:49.509079 | 2023-07-25T04:55:54 | 2023-07-25T04:55:54 | 87,017,024 | 2 | 0 | NOASSERTION | 2023-03-04T04:02:36 | 2017-04-02T21:22:20 | Python | UTF-8 | Python | false | false | 439 | py | from django.urls import reverse
def test_RaportSlotow_get_pdf(admin_app, autor_jan_kowalski):
url = reverse("raport_slotow:index")
form_page = admin_app.get(url)
form_page.forms[0]["obiekt"].force_value(autor_jan_kowalski.pk)
raport_page = form_page.forms[0].submit().maybe_follow()
pdf_page = r... | [
"michal.dtz@gmail.com"
] | michal.dtz@gmail.com |
366ba960d296aa971689f7a44844442e3718aa6e | 5f58ceeffe080fabda0ad7ef30e2f04acc233271 | /demo/plugins/file_ops/template.py | 24bbac6eaa6a0961698fbf8c68a54cb32ca40595 | [] | no_license | EDRN/jpl.pipedreams | a9c9f2b25260ffe5a18b1ae12f6a5f08894f1533 | ecbdb280d25d123e9a7a0dcb505ceec40eaf047e | refs/heads/main | 2023-08-25T08:48:14.265406 | 2021-10-26T18:45:13 | 2021-10-26T18:45:13 | 380,337,383 | 0 | 0 | null | 2021-07-02T19:06:51 | 2021-06-25T19:35:26 | Python | UTF-8 | Python | false | false | 876 | py | # encoding: utf-8
from jpl.pipedreams.plugins_ops import Plugin
class Template(Plugin):
def __init__(self):
super().__init__()
self.description = 'for basic file ops'
def get_bytes(self, *args, **kwargs):
raise NotImplementedError
def read_str(self, *args, **kwargs):
rai... | [
"kelly@seankelly.biz"
] | kelly@seankelly.biz |
e8d31cd5c24ee547db03c38c29d1f4d6cc81f24e | b8062e01860960131b37e27298b6b755b4191f5f | /cplusplus/contrib/HandWrite/presenterserver/hand_write/src/config_parser.py | d047e6c703f5801d764c9cb6b4588929bc61f180 | [
"Apache-2.0"
] | permissive | RomanGaraev/samples | 4071fcbe6bf95cf274576665eb72588568d8bcf2 | 757aac75a0f3921c6d1b4d98599bd7d4ffda936b | refs/heads/master | 2023-07-16T02:17:36.640036 | 2021-08-30T15:14:05 | 2021-08-30T15:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | # =======================================================================
#
# Copyright (C) 2018, Hisilicon Technologies Co., Ltd. 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 Redistrib... | [
"derek.qian.wang@huawei.com"
] | derek.qian.wang@huawei.com |
2af78ce0a40eda8b75a944402af2b657dc3a437d | 8c45e306209f4560309374828042819e6e5ddfc5 | /Visual-IDE/Model/models.py | dc8c4b9ff539aa4560a8ea76ad88bb2c4f1463cc | [] | no_license | franklingu/Visual-IDE | 2ee2640c2c98ecf076d7b925d1095ff565433673 | 9f2acc4283044aa3ea77a3fd01e5edad79e4ea10 | refs/heads/master | 2020-05-18T11:52:53.978165 | 2014-11-10T03:51:40 | 2014-11-10T03:51:40 | 24,674,470 | 0 | 1 | null | 2014-10-26T07:09:07 | 2014-10-01T10:33:16 | JavaScript | UTF-8 | Python | false | false | 2,289 | py | from google.appengine.ext import db
class SavedProject(db.Model):
user_email = db.EmailProperty()
project_title = db.StringProperty()
project_content = db.TextProperty()
created_at = db.DateTimeProperty(auto_now_add=True)
class DbManager(object):
def __init__(self):
super(DbManager, self... | [
"franklingujunchao@gmail.com"
] | franklingujunchao@gmail.com |
da20ae6db24880030b45ad77229b59f4fa7c4a86 | e1a7d00dbe27403427078c627ccebe1562a6049d | /mercury/model/clients/client/shortcut.py | 1a7b319d0fa32f71dae07a4b75a8087cd3ed2d88 | [
"Apache-2.0"
] | permissive | greenlsi/mercury_mso_framework | f24fc167230057bb07b7de5dc9fbb10490293fee | cb425605de3341d27ce43fb326b300cb8ac781f6 | refs/heads/master | 2023-04-28T02:18:16.362823 | 2023-04-18T12:03:23 | 2023-04-18T12:03:23 | 212,610,400 | 2 | 1 | Apache-2.0 | 2023-03-02T14:36:56 | 2019-10-03T15:12:32 | Python | UTF-8 | Python | false | false | 2,301 | py | from mercury.msg.packet import AppPacket, NetworkPacket, PhysicalPacket, PacketInterface
from mercury.msg.packet.app_packet.acc_packet import AccessPacket
from mercury.msg.packet.app_packet.srv_packet import SrvPacket
from typing import Generic, Type
from ...common import ExtendedAtomic
from xdevs.models import Port
... | [
"rcardenas.rod@gmail.com"
] | rcardenas.rod@gmail.com |
c3b35eec240bedc549d923ed1619303e89db9956 | bd75c7ec55b78ef189f57596520744f82ec73073 | /Restore IP Addresses.py | 982bfe59424d2b68d11b0afcfdc62100bfe8524f | [] | no_license | GaoLF/LeetCode-PY | 17058ac0743403292559f9b83a20bf79d89e33f6 | ccd294cfe0c228a21518d077d1aa01e510930ea3 | refs/heads/master | 2021-01-23T02:24:05.940132 | 2015-07-22T13:44:01 | 2015-07-22T13:44:01 | 38,248,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | #coding=utf-8
class Solution:
# @param {string} s
# @return {string[]}
def restoreIpAddresses(self, s):
res = []
self.solve(s,0,0,res,"")
return res
# 几点注意事项:当位数太多或者太少,都不能组成
# 当第一个数是0的时候,只能当0
def solve(self,s,i,begin,res,string):
size = len(s)
if (size - begin) < ... | [
"gaolongfei@pku.edu.cn"
] | gaolongfei@pku.edu.cn |
7adc594346e952c66be110d2560704c21d224bf0 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/common/Lib/plat-irix5/panel.py | c46a1d28e7c386cfb3ca4cdfbf0af379ca3e165d | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,364 | py | # 2017.05.04 15:33:49 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-irix5/panel.py
from warnings import warnpy3k
warnpy3k('the panel module has been removed in Python 3.0', stacklevel=2)
del warnpy3k
import pnl
debug = 0
def is_list(x):
return type(x) == type([])
def reverse(list):
... | [
"info@webium.sk"
] | info@webium.sk |
5bf80d863d186f3a1ae4e7423084819ebb3e22d2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/277/85229/submittedfiles/testes.py | d4013f6e86810a783d2c7133b2a748973ae519a1 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | from minha_bib import *
nota1 = ler_inteiro()
nota2 = ler_inteiro_msg('minha msg de input aqui: ')
print (media(nota1,nota2))
"""
while(True):
while(True):
n = int(input("Digite um numero inteiro positivo: "))
if (n >= 0) :
break
f = 1
f... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b27fbb843467b18be113187788bfa1fff7bf50fa | 786de89be635eb21295070a6a3452f3a7fe6712c | /InterfaceCtlr/tags/V01-00-25/web/icws/config/middleware.py | 1c5036406ef9ec4f50474a412cfbaa7cf56be1dc | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | """Pylons middleware initialization"""
from beaker.middleware import CacheMiddleware, SessionMiddleware
from paste.cascade import Cascade
from paste.registry import RegistryManager
from paste.urlparser import StaticURLParser
from paste.deploy.converters import asbool
from pylons import config
from pylons.middleware imp... | [
"salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
3282930d830eed41d2bc689235584f254e71ee95 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/smartfault/ruleinst.py | d20ec0c3006f9d3a6d4fdad3c8dd8f61fa79d5e6 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,289 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
cc84edf7c53698b41332e6856bf4369aa93221e1 | d04d3eec289376e7682403af2f32044b3991d27b | /10 - Exams/ExamPrepF-7.py | 50cd7a3f8f1c1ea3e3e759d4d225b6f5c7855296 | [] | no_license | m-evtimov96/softUni-python-fundamentals | 190002dbc6196211340126814e8ed4fce3b8a07f | 817a44a3d78130d37e58facfc7bcfdc8af5f4051 | refs/heads/master | 2020-12-10T12:45:27.847764 | 2020-06-23T13:09:43 | 2020-06-23T13:09:43 | 233,598,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | username = input()
while True:
input_line = input()
if input_line == "Sign up":
break
input_line = input_line.split()
command = input_line[0]
if command == "Case":
case_type = input_line[1]
if case_type == "lower":
username = username.lower()
elif case_t... | [
"m.evtimov196@gmail.com"
] | m.evtimov196@gmail.com |
9972224be353e26764302da53393a31f7934be5e | 09934eefaada5f1b8048215f0cda4083a60d9091 | /lib/chy506r/api/__init__.py | 3b37fd3b4360536c2fc1b0a68f5cbaae8cb8685b | [
"MIT"
] | permissive | ztmir/chy506r | 2b531b0858fb8b6dc43b873a19d998e29598eac5 | 10121baa70765b1a53b0d576dc11660bb3dd725a | refs/heads/master | 2021-04-06T06:41:32.448764 | 2018-03-14T22:03:02 | 2018-03-14T22:03:02 | 125,049,662 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf8 -*-
from .. import util
util.import_all_from(__package__, [
'.chy506r_',
'.plotter_',
])
# vim: set ft=python et ts=4 sw=4:
| [
"ptomulik@meil.pw.edu.pl"
] | ptomulik@meil.pw.edu.pl |
5a16a541e0ff8f2ea18cba1a2dc332b762134f5e | 2ecca33f7b934c69ab5383a24dd820b01bdc3617 | /tests/people_test.py | 50681da4ac429468e8b1b544ab0567a9b6677255 | [] | no_license | mentalclear/tau-api-testing-python | b2ff6e1e541e351385ea813faba8f0528749bca9 | 5648a70e4089c455b7d7322fd3d4a8324d7d1dcb | refs/heads/master | 2023-07-15T00:21:44.093476 | 2021-08-31T12:08:50 | 2021-08-31T12:08:50 | 397,907,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | import requests
from assertpy.assertpy import assert_that
from json import dumps, loads
from config import BASE_URI
from utils.print_helpers import pretty_print
from uuid import uuid4
import pytest
import random
from utils.file_reader import read_file
from jsonpath_ng import parse
def test_read_all_has_kent():
re... | [
"mentalclear@gmail.com"
] | mentalclear@gmail.com |
d6c7d16d2e4f6624fb2f38f6d4de4b2af9ff0a13 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/138/usersdata/164/53382/submittedfiles/volumeTV.py | 3b3527168f49c2e6a7820c671bc7ad0039a79cef | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | v=int(input('Digite o volume inicial: '))
t=int(input('Digite quantas vezes houve a troca de volume: '))
volume=0
for i in range (1, t+1, 1):
a=int(input('Digite a modificação do volume: '))
while (0<volume<100):
volume=v=a
print(volume) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ddfb388db7ce08f39b58b80d878e30f9f5ea59aa | a22ca8cd5e434a28677e8f21c2afc6f32359a675 | /rentomatic-master/rentomatic/rest/storageroom.py | 34d8627fd4dff69ead4f716952960338c877d344 | [
"MIT"
] | permissive | wangdan25/rentomatic | 34cc78b73a894bae8e6a990cdf7d9a839d57980d | 2931a4f5ff8727b4e20c89004609aacd181f161c | refs/heads/master | 2022-06-21T05:35:37.306044 | 2020-05-13T04:05:26 | 2020-05-13T04:05:26 | 263,348,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | import json
from flask import Blueprint, request, Response
from rentomatic.use_cases import request_objects as req
from rentomatic.shared import response_object as res
from rentomatic.repository import memrepo as mr
from rentomatic.use_cases import storageroom_use_cases as uc
from rentomatic.serializers import storage... | [
"you@example.com"
] | you@example.com |
fb742151862b0bda3389cc7b8b8bd9e6948ccb69 | 8630c0a928f1e112b7cb67f2cab8ce212a231063 | /unhelpful/robinhood.py | 1cd653f36e7debfa6620df557d62510dfc6a0a56 | [
"MIT"
] | permissive | lockefox/unhelpful-stockbot | 4958201bc925ff6e00dfe0c170574aa27fb07329 | d0d8a282788843c6a5b4065681a1542be432e8bb | refs/heads/master | 2023-05-28T08:00:45.646039 | 2019-09-22T19:37:58 | 2019-09-22T19:37:58 | 197,688,810 | 0 | 0 | MIT | 2023-05-22T22:28:14 | 2019-07-19T02:36:41 | Python | UTF-8 | Python | false | false | 4,253 | py | """utilities for collecting stock quotes from Robinhood"""
import os
import pkgutil
import logging
import requests
from . import exceptions
from .utilities import get_config
class RobinhoodConnection:
"""contextmanater for handling authenticated feeds from Robinhood
Args:
username (str): Robinhood ... | [
"locke.renard@gmail.com"
] | locke.renard@gmail.com |
d46197609d8e954b8cb87398f8a03cc13f5b8022 | 675a6ed1aa824ac801783471e634e538d11acc8d | /examples/example_flask/example_formatter.py | 6edf6309f9d3a0cca24cee0b6a42698f229fee93 | [
"MIT"
] | permissive | Eastwu5788/pre-request | 7ea50b3930252b5a0f99bf9588d0fdd8f4ae4562 | 42da2bf5edc6690983188e1ee013c810ef8985db | refs/heads/master | 2023-05-24T22:53:04.353491 | 2022-01-26T02:03:57 | 2022-01-26T02:03:57 | 100,257,925 | 102 | 9 | MIT | 2023-05-23T03:10:20 | 2017-08-14T10:56:59 | Python | UTF-8 | Python | false | false | 966 | py | # !/usr/local/python/bin/python
# -*- coding: utf-8 -*-
# (C) Wu Dong, 2020
# All rights reserved
# @Author: 'Wu Dong <wudong@eastwu.cn>'
# @Time: '2020-04-09 14:43'
# 3p
from flask import Flask
from pre_request import pre, Rule
def custom_formatter(code, msg):
""" 自定义结果格式化函数
:param code: 响应码
:param msg:... | [
"wudong@eastwu.cn"
] | wudong@eastwu.cn |
352e2af0fc2126431efc05449e46c709820dc0f9 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /jecvfH5eyGLrSwzNh_17.py | 530d24676f42b48dd2c4961e0b3a2513ec1f1914 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py |
import re
animals = ["muggercrocodile","one-hornedrhino","python","moth","monitorlizard","bengaltiger"]
def fauna_number(txt):
numbers = re.findall(r'\d+',txt)
words = list(filter(lambda x: x in txt,animals))
words.sort(key = lambda x: txt.index(x))
return [(a,b) for a,b in zip(words,numbers)]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9c2ea26cbc755a4f53cb515c72985b5c247d054c | 8787b2fbb5017b61dcf6075a5261071b403847bf | /SWExpert/5607. [Professional] 조합.py | fcdb69ef676bc6db7fed89d771db093ff9716b60 | [] | no_license | khw5123/Algorithm | a6fe0009e33289813959553c2366d77c93d7b4b9 | 323a829f17a10276ab6f1aec719c496a3e76b974 | refs/heads/master | 2023-01-02T00:12:21.848924 | 2020-10-23T06:37:41 | 2020-10-23T06:37:41 | 282,162,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | mod = 1234567891
def solve(n, x):
global mod
if x == 0:
return 1
num = solve(n, x//2)
ret = (num * num) % mod
if x % 2 == 0:
return ret
else:
return (ret * n) % mod
for t in range(int(input())):
n, r = map(int, input().split())
factorial = [1]*(n+... | [
"5123khw@hknu.ac.kr"
] | 5123khw@hknu.ac.kr |
566b75c70f81b310ab1705e6cd84012d7fcc8f98 | ad0910142f3e0a5cb0c17ec3ef96c68ee9e63798 | /qt/lineedit/le_2.py | 32acaa46b0693d343d1ac12eebf13789bbb8c9aa | [] | no_license | notmikeb/workspace | 94cce9d4c39e78b0471ff75f8af03576d93410e5 | be350091237dc7c318e4d9f1c9ac6a2f10356b82 | refs/heads/master | 2021-01-19T04:16:06.049253 | 2019-09-24T14:50:00 | 2019-09-24T14:50:00 | 43,929,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
# http://www.saltycrane.com/blog/2008/01/python-pyqt-tab-completion-example/
LIST_DATA = ['a', 'aardvark', 'aardvarks', 'aardwolf', 'aardwolves',
'abacus', 'babel', 'bach', 'cache',
'daggle', 'facet', 'kabob', 'kansas']
######... | [
"notmikeb@gmail.com"
] | notmikeb@gmail.com |
219986d7e18dee3ec7e5c8aa82e15af9ecc87ab4 | 9bb01fa882e713aa59345051fec07f4e3d3478b0 | /examples/memory.py | fe52ab2be578f504f2cd96d164193a9464fee3c4 | [] | no_license | syarra/cysparse | f1169c496b54d61761fdecbde716328fd0fb131b | 7654f7267ab139d0564d3aa3b21c75b364bcfe72 | refs/heads/master | 2020-05-25T16:15:38.160443 | 2017-03-14T21:17:39 | 2017-03-14T21:17:39 | 84,944,993 | 0 | 0 | null | 2017-03-14T12:11:48 | 2017-03-14T12:11:48 | null | UTF-8 | Python | false | false | 592 | py | from cysparse.sparse.ll_mat import *
A = ArrowheadLLSparseMatrix(nrow=50, ncol=800, itype=INT32_T, dtype=COMPLEX128_T)
print A
print "In bytes:"
print A.memory_real_in_bytes()
print A.memory_virtual_in_bytes()
print A.memory_element_in_bytes()
print "In bits:"
print A.memory_real_in_bits()
print A.memory_virtual_in... | [
"nikolaj.van.omme@gmail.com"
] | nikolaj.van.omme@gmail.com |
a5beb4f64c56e337ed39593290ee686d6f416492 | 8f1c3c76bf8514818b733ba29fe575d8a5243add | /eduerp_health/models/health.py | 9f3a9a81be4161a4552cb29af6366a8395a72087 | [
"Apache-2.0"
] | permissive | westlyou/eduerp | 27f1c7dcd0d2badf50cb6c69f5e761d7f0c6a898 | 968d79b5adc729bc81192604f1fc223517d38ccf | refs/heads/master | 2021-06-04T05:11:13.858246 | 2016-09-12T07:21:17 | 2016-09-12T07:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | # -*- coding: utf-8 -*-
###############################################################################
#
###############################################################################
from openerp import models, fields, api
from openerp.exceptions import ValidationError
class OpHealth(models.Model):
_name = 'o... | [
"huysamdua@yahoo.com"
] | huysamdua@yahoo.com |
193729fe025f3c1a9a71925ec6b0f7dae9c8690c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_bananas.py | 5da6d16ede25e387d2fefa2b110d677e35f5187a | [
"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 | 415 | py |
#calss header
class _BANANAS():
def __init__(self,):
self.name = "BANANAS"
self.definitions = [u'very silly: ', u'to become extremely angry or excited: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.json... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4c7d34cab8e0809dd3e4b61828e891a790c80f34 | 90f7253957e25105950c2a0305033c14302237bb | /encapsulation/exercise/pizza_calories/project/topping.py | 652473d33ba12823fdc496424478646c1607281e | [] | no_license | DeanDupalov/Softuni-Python-OOP | a4f010a7a218d4cdd466e2158dcea2e861304627 | 72fb3f00991419ef55f6c53101edba7fbb84746b | refs/heads/master | 2023-04-01T01:59:50.441918 | 2021-04-12T18:47:56 | 2021-04-12T18:47:56 | 340,356,051 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | class Topping:
topping_type: str
weight: float
def __init__(self, topping_type, weight):
self.topping_type = topping_type
self.weight = weight
@property
def topping_type(self):
return self.__topping_type
@topping_type.setter
def topping_type(self, value):
s... | [
"75751527+DeanDupalov@users.noreply.github.com"
] | 75751527+DeanDupalov@users.noreply.github.com |
bbf11456a422f642b88c670ac1315b8d736a4d2d | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614060327.py | 43b8bc11b0159debb65da784dff5c6138f57f685 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,895 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
18ba6200a6df7e620bdb37d52e470e7c9cb06db9 | 3cf66bb76a6d8bef1c1945c1bdef0b16254e3470 | /windows/lng_window.py | 465c49a000104327cab11d89164f44f5319f7d1b | [] | no_license | DmitryChitalov/OpenFOAM_decompose_GUI | f055b6d24c90dab07140713960003107d72aea1c | fd614b2c77df327588809fccbc7a233ce59c1688 | refs/heads/master | 2020-04-17T17:08:38.821276 | 2019-01-21T07:57:50 | 2019-01-21T07:57:50 | 166,770,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,683 | py | # -*- coding: utf-8 -*-
# -------------------------------Импорт модулей----------------------------------#
from PyQt5 import QtCore
from PyQt5 import QtSql
from PyQt5 import QtGui
import shutil
import sys
import re
import os
import os.path
from PyQt5.QtWidgets import QWidget, QFileDialog, QLineEdit, QLabel, \
QHB... | [
"cdi9@yandex.ru"
] | cdi9@yandex.ru |
ed215734cf4c04b73afad4971cafa935f9826513 | 3a533d1503f9a1c767ecd3a29885add49fff4f18 | /saleor/graphql/checkout/tests/deprecated/test_checkout_shipping_method_update.py | fefe034680a4ce74d3b921d68f0758228e883437 | [
"BSD-3-Clause"
] | permissive | jonserna/saleor | 0c1e4297e10e0a0ce530b5296f6b4488f524c145 | b7d1b320e096d99567d3fa7bc4780862809d19ac | refs/heads/master | 2023-06-25T17:25:17.459739 | 2023-06-19T14:05:41 | 2023-06-19T14:05:41 | 186,167,599 | 0 | 0 | BSD-3-Clause | 2019-12-29T15:46:40 | 2019-05-11T18:21:31 | TypeScript | UTF-8 | Python | false | false | 7,594 | py | from unittest.mock import patch
import graphene
from .....checkout.error_codes import CheckoutErrorCode
from .....checkout.fetch import (
fetch_checkout_info,
fetch_checkout_lines,
get_delivery_method_info,
)
from .....plugins.manager import get_plugins_manager
from .....shipping.utils import convert_to_s... | [
"noreply@github.com"
] | jonserna.noreply@github.com |
baaf820ec0fcbd83caa164ba770029f08a8807d2 | cdc91518212d84f3f9a8cd3516a9a7d6a1ef8268 | /python/datetime_challenge.py | bc3a461215b59792b81ebf39cce8d3f3e6e83ede | [] | no_license | paulfranco/code | 1a1a316fdbe697107396b98f4dfe8250b74b3d25 | 10a5b60c44934d5d2788d9898f46886b99bd32eb | refs/heads/master | 2021-09-20T14:00:35.213810 | 2018-08-10T06:38:40 | 2018-08-10T06:38:40 | 112,060,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # naive is a datetime with no timezone.
# Create a new timezone for US/Pacific, which is 8 hours behind UTC (UTC-08:00).
# Then make a new variable named hill_valley that is naive with its tzinfo attribute replaced with the US/Pacific timezone you made.
import datetime
naive = datetime.datetime(2015, 10, 21, 4, 29)
... | [
"paulfranco@me.com"
] | paulfranco@me.com |
06548eeec187cb35b04530c6468cfc46ff894a36 | 2b2db19b4f60c9367313c6325f62d52713a6e304 | /src/main.py | ebf3a826e17d11621ff2581a64905ba4a08eab3b | [] | no_license | movefast/ComparingTileCoders | 853f640d2fdca9ced9afe07a972cd8d8a2acc01b | 3d3e4c02dea3d5c8092229d3e83ee4bb77594fdd | refs/heads/master | 2023-01-28T18:18:45.165099 | 2020-12-11T18:19:33 | 2020-12-11T18:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | import numpy as np
import time
import sys
import os
sys.path.append(os.getcwd())
from RlGlue import RlGlue
from src.experiment import ExperimentModel
from src.problems.registry import getProblem
from PyExpUtils.utils.Collector import Collector
from src.utils.rlglue import OneStepWrapper
if len(sys.argv) < 3:
prin... | [
"andnpatterson@gmail.com"
] | andnpatterson@gmail.com |
0d6e53f857240c591ca7b8c99819c53941741926 | f015ba9945ef2035d219cedc0992063f0b5ea10c | /src/project/settings.py | 9e64a4e20192856b5ee5db823e8937ff24d95e57 | [] | no_license | JacobSima/trydjango | 9e4bbdceb26c73ef9ced3e77ab7b21c891f1b5e9 | 2694a0239b69fc4ec81a2e1aee7df1e1e6892a46 | refs/heads/master | 2021-09-29T22:46:07.172924 | 2020-04-18T15:59:37 | 2020-04-18T15:59:37 | 252,255,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"simajacob2011@gmail.com"
] | simajacob2011@gmail.com |
4e73792b01bc0fbf380a261a81ca7945cd2daf94 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/websms/testcase/firstcases/testcase6_024.py | 83901a5a80dd6d8457a042e27d8685e19f4e9600 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,667 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
be812a85bf9bd10893cafd3bae114e721cd334ea | 62ac17070b927ee4249baa3b3cf65b39b9e8fafa | /Karrigell-2.3.5/modules/mod_py.py | cd23034cf66e064be12b95ff353171f3d77f46b8 | [
"BSD-3-Clause"
] | permissive | qinguan/infolist | 67eb0da25f4abc2f7214388d33448e8bb8ceb8c1 | b8738ea374819266ed0b90458a5e7270e94fb030 | refs/heads/master | 2021-01-10T19:58:06.316866 | 2012-05-01T08:05:42 | 2012-05-01T08:05:42 | 4,190,526 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from k_script import BaseScript
class Script(BaseScript):
"""Python script"""
def __init__(self, fileName):
pc=open(fileName).read().rstrip()
pc = pc.replace('\r\n','\n') # normalize line separator
BaseScript.__init__(self, fileName, pc, None)
| [
"qinguan0619@gmail.com"
] | qinguan0619@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.