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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e92b0a06a76c38568f287165a30c3de41f45a5f | 7cd30248342dc83e0b49409bed4b3df378b629b1 | /layers_fc_densenet.py | 46b6ef3e7f86b999acbc6732ce80b7ae3d399a54 | [] | no_license | minhnd3796/NGUYENDUCMINH_CODE | d34fc5cb0c9ba4108faf500170a8bea5bdef1d04 | 9fb27777ca0d40018c7154f7be19b420cf391471 | refs/heads/master | 2021-04-06T20:47:34.958473 | 2018-06-12T08:36:33 | 2018-06-12T08:36:33 | 125,452,799 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import numpy as np
import tensorflow as tf
import tensor_utils_fc_densenet as utils
def BN_ReLU_Conv(name, keep_prob, inputs, n_filters, filter_size=3, eps=1e-5):
depth = np.shape(inputs)[3]
beta = tf.get_variable(name=name+'_beta', shape=[depth], initializer=tf.constant_initializer(0.0), trainable=False)
... | [
"gordonnguyen3796@gmail.com"
] | gordonnguyen3796@gmail.com |
5c5c19d5475fec1054150f2a7fb9129d9b5589a6 | 9249f87109471de1fc3f3c3c1b121f51c09df683 | /lesson_7/test_8.py | d1cc499e74ee88ac362b6aa27de814b748419253 | [] | no_license | anton1k/mfti-homework | 400a8213a57e44478d65437f5afef0432e8e84ea | 93683de329e6cb0001e713214aeb3069f6e213b0 | refs/heads/master | 2020-07-18T23:41:11.473608 | 2020-01-12T10:58:16 | 2020-01-12T10:58:16 | 206,335,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # Одной из важнейших операций в линейной алгебре, аналитической геометрии, математическом анализе, анализе данных, искуственном интеллекте, компьютерной графике и в огромном количестве других областей математики и информатики является вычисление скалярного произведения двух векторов.
# Вычисляется скалярное произведен... | [
"40913464+anton1k@users.noreply.github.com"
] | 40913464+anton1k@users.noreply.github.com |
8eb57938c2b1b03f6c2d4ea43ea60a32e83de34c | c0a7d9a057abbd1a065a4149b96777163e596727 | /Placement Prepration/Hashing/array_equal_or_not.py | 17de52bb53c9136b15c70c6a15aa94ee4106b2c0 | [] | no_license | Sameer2898/Data-Structure-And-Algorithims | 6471c2dabfbd2067d2a2c556ddd0b6615235cd4f | 2f251570434ea9c1881de95b4b1a5e368d5b7f46 | refs/heads/main | 2023-02-16T16:18:08.177109 | 2021-01-14T06:33:22 | 2021-01-14T06:33:22 | 329,527,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | def check(arr1, arr2, n):
mp = {}
for i in range(n):
if arr1[i] in mp.keys():
mp[arr1[i]] += 1
else:
mp[arr1[i]] = 1
for i in range(n):
if arr2[i] not in mp.keys():
return False
else:
mp[arr2[i]] -= 1
for i in mp.k... | [
"xdgsr1234@gmail.com"
] | xdgsr1234@gmail.com |
6ba977e36fb6ef3126140e2bef325c726d944c39 | 2e18ebdc26fd4864d1ff79223e581a44c2d041d2 | /binary_tree/415_valid_palindrome.py | b1e9032fba11f2ef1b87d6812f1d30104c1d7d26 | [] | no_license | Shanshan-IC/lintcode_python | 34565d011b49abe33b47e4338fa9c1cf9ff6fd88 | a33ba235c24a1d4be2d30b768f7c747fcbaf520e | refs/heads/master | 2021-05-09T03:56:45.435153 | 2018-05-06T12:41:00 | 2018-05-06T12:41:00 | 119,257,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | class Solution:
"""
@param s: A string
@return: Whether the string is a valid palindrome
"""
def isPalindrome(self, s):
l, r = 0, len(s)-1
while l < r:
while l < r and not s[l].isalnum():
l += 1
while l < r and not s[r].isalnum():
... | [
"shanshan.fu15@imperial.ac.uk"
] | shanshan.fu15@imperial.ac.uk |
4d9af64a5faf1d526718a6d0dea4b6834f1035fc | ea4811088a858178d86c1387047749f89ea8c221 | /CMS/settings/user_genius.py | d3a639d90154c97d657d2f0882b2e4d267810a90 | [] | no_license | ri-gilfanov/pharmacosphere-site | 3f64b9e14a8221dec4e14813e8e73f271d32d364 | 058c79eff3fd00dda9feada589a13d05ef4792f2 | refs/heads/master | 2021-09-01T10:22:44.590277 | 2017-12-26T12:54:55 | 2017-12-26T12:54:55 | 114,351,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from .develop import *
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
# Конфиг БД для подключения к PostgreSQL на сервере
'''
# Импорт секретных ... | [
"ri.gilfanov@yandex.ru"
] | ri.gilfanov@yandex.ru |
90a989d4cc4c39fdc4b476400d117de51c3f87ff | 547e8c1d630a44b2e89b6c405dda4a7e0baa97a5 | /flasgger/__init__.py | 8559cd261d025053663eeaaf59ccc738a11753dd | [
"MIT"
] | permissive | AminHP/flasgger | 6f21f488df934ef925931ac77947a5c390ada4a2 | 27160ecfbb45ee8da2a3acddfa240ec4eb2b057a | refs/heads/master | 2021-01-23T07:45:01.984748 | 2017-03-30T08:42:50 | 2017-03-30T08:42:50 | 86,444,574 | 0 | 0 | null | 2017-03-28T10:03:09 | 2017-03-28T10:03:09 | null | UTF-8 | Python | false | false | 327 | py |
__version__ = '0.6.1'
__author__ = 'Bruno Rocha'
__email__ = 'rochacbruno@gmail.com'
from jsonschema import ValidationError # noqa
from .base import Swagger, NO_SANITIZER, BR_SANITIZER, MK_SANITIZER # noqa
from .utils import swag_from, validate # noqa
from .marshmallow_apispec import SwaggerView, Schema, fields ... | [
"rochacbruno@gmail.com"
] | rochacbruno@gmail.com |
3a04644f05258435c3a16d870ab3826fe1f6a412 | be9d68202a7852f49926f389d815011143b3dac3 | /tests/test_roundtrip.py | 83fd1e327ad1a339038932e42886e1144dd47c22 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | erezlab/cooler | 7ea972ab13d297fc2d4e3e2e972cce83950628f1 | 7d75098679ef1ae10210b85d6d5e8f0b3ad8bc35 | refs/heads/master | 2021-01-19T10:16:49.736849 | 2016-09-11T07:05:56 | 2016-09-11T07:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
from six import BytesIO, iteritems
import os
import numpy as np
import h5py
from nose.tools import assert_raises
from nose import with_setup
import cooler
testdir = os.path.dirname(os.path.realpath(__file__))
testfile_path = os.path.join(testdir... | [
"nabdennur@gmail.com"
] | nabdennur@gmail.com |
01fe49c192467b818bb31229553ef269622e204d | 00a22413aab8b59d2d66cb59f7316bb489dd244a | /src/zojax/product/utils.py | f06c875da5b551c8af4095682b6e7a6ea1cf9e81 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.product | 57d1630615d7871b6d253a5d87f2303cd22549e7 | 0f088331e0f72f3865f7bfd420462697d7ecf066 | refs/heads/master | 2021-01-19T10:40:07.369107 | 2011-12-16T07:23:12 | 2011-12-16T07:23:12 | 2,018,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
4804c50c17f359c211569ee169c7dc9b7a56d2c6 | eaaece44659cf0f8da84c0da5f444fdb70538d82 | /aremind/apps/wisepill/tests.py | 8eb23b43af4a5cf17e090785fbc392f72ddd6fee | [] | no_license | dimagi/aremind | c0d4f115a2d87bb69230ff49e34fac5dbb45cd1c | dda5837f8839acd3194cc2849b20fcecb2d7758c | refs/heads/master | 2021-01-18T08:24:38.246665 | 2012-10-15T15:33:01 | 2012-10-15T15:33:01 | 1,676,667 | 0 | 1 | null | 2012-06-14T17:41:38 | 2011-04-28T16:44:22 | Python | UTF-8 | Python | false | false | 5,618 | py | import datetime
from django.test import TestCase
from rapidsms.models import Contact
from aremind.apps.wisepill.models import WisepillMessage
from aremind.apps.wisepill.constants import WISEPILL_LOW_BATTERY
from aremind.apps.patients.models import Patient, PatientDataPayload
from aremind.apps.patients.importer import ... | [
"dpoirier@caktusgroup.com"
] | dpoirier@caktusgroup.com |
5d75659e3178850e607c730d21e757fed237c053 | 74a00025a11eddc4ca1093d32dc85fe7fd32fc3b | /src/promnesia/logging.py | ecbf0afab8e4b8b38d73f5dc4d4146c9af942dd2 | [
"MIT"
] | permissive | hirajanwin/promnesia | 0858b62b488977785f0d680c39856142c37604ea | 20a07c23d150e2206f22d1afa5b1a4f1a17e3305 | refs/heads/master | 2023-03-10T21:42:41.871478 | 2021-02-26T18:24:27 | 2021-02-27T01:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,039 | py | #!/usr/bin/env python3
'''
Default logger is a bit, see 'test'/run this file for a demo
'''
def test() -> None:
import logging
import sys
from typing import Callable
M: Callable[[str], None] = lambda s: print(s, file=sys.stderr)
M(" Logging module's deafults are not great...'")
l = logging.... | [
"karlicoss@gmail.com"
] | karlicoss@gmail.com |
fe2b0b25efcc99b99396c6bf2c5c2556c99949b1 | 01548099ec20976d31cca7a720102c11c56fc9be | /cases/test_01_register.py | 4bff68fe10e406074768529b48afe85da79166b7 | [] | no_license | OMEN001/Lemon_Api_Test | 6a27a9a9ccf28623006b465a107d53b17ad30404 | 373c9f1a1f1f3160bbe8edcc4b5740f9779947ae | refs/heads/master | 2023-02-25T22:31:39.824908 | 2021-01-24T14:22:52 | 2021-01-24T14:22:52 | 329,324,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,846 | py | # -*- coding: utf-8 -*-
# @Time : BaLiang
# @Author : 86187
import unittest
from scripts.handle_excel import HandleExcel
from libs.ddt import ddt,data
from scripts.handle_request import HandleRequest
from scripts.handle_yaml import do_yaml
from scripts.handle_parameterize import Parameterize
from scripts.handle_log i... | [
"1668317403@qq.com"
] | 1668317403@qq.com |
d410c6e1e23ed7172c493415d7dba0b4590cb239 | 1b62770ddb63fb27b03eb8fa0a3def415844a965 | /utils/base_admin.py | 712cf88a5f475b550d83d52bd8d95f90584cbde3 | [] | no_license | KIRA009/myweblink | 78239c4c76005be098d1a4140e514fdc8a4da3cf | 7f8e0a188b8066bbfb3ae051a026468969d1cb71 | refs/heads/production | 2023-08-06T16:49:05.715592 | 2020-07-18T13:12:18 | 2020-07-18T13:12:18 | 252,243,196 | 0 | 0 | null | 2021-09-22T18:49:33 | 2020-04-01T17:31:39 | Python | UTF-8 | Python | false | false | 928 | py | from django.contrib import admin
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import authenticate
class CustomLogin(AuthenticationForm):
def clean(self):
username = self.cleaned_data.get('username').lower()
password = self.cleaned_data.get('password').lower()
... | [
"shohanduttaroy99@gmail.com"
] | shohanduttaroy99@gmail.com |
f14951ca943affb75a98c859aa6c570f5f06d8df | 797f89caa1ec1188efafe43bef96104678bd7512 | /setup.py | bbf2b7d22f82718938b147b54a0a692d23f78f86 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | modulexcite/elizabeth | dc9bdb9ee743bb6efe8abdc6381cebfe245c4729 | 142e178a57057b77f653c9258984e54c3070eaec | refs/heads/master | 2021-01-13T03:32:36.107710 | 2016-12-28T07:41:17 | 2016-12-28T07:41:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | from distutils.core import setup
import elizabeth
setup(
name='elizabeth',
version=elizabeth.__version__,
packages=['elizabeth', 'elizabeth.core', 'elizabeth.core.interdata'],
keywords=['fake', 'data', 'testing',
'generate', 'faker', 'elizabeth',
'bootstrap', 'db', 'generic... | [
"likid.geimfari@gmail.com"
] | likid.geimfari@gmail.com |
1afe35aacf6fa43c1673b2509490c1ee21178b0a | 03e0c2af1e6560404def97854fa7a87e4fedd52e | /revscoring/languages/tests/test_spanish.py | 163610f11df9e06c5e25c31526967885aab1e4bd | [
"MIT"
] | permissive | PersianWikipedia/revscoring | f64aa93a216bee8966765843dea9384af9b890b5 | 960d934f60a94714125a90cba24b7b45da5172b2 | refs/heads/master | 2020-12-30T19:37:08.734771 | 2015-08-06T23:16:35 | 2015-08-06T23:16:35 | 40,272,339 | 0 | 0 | null | 2015-08-05T22:41:09 | 2015-08-05T22:41:09 | null | UTF-8 | Python | false | false | 1,071 | py | import pickle
from nose.tools import eq_
from .. import language, spanish
def test_language():
stem_word = spanish.solve(language.stem_word)
eq_(stem_word("Huevos"), "huev")
eq_(stem_word("Vamar"), "vam")
is_badword = spanish.solve(language.is_badword)
assert is_badword("huevos")
assert ... | [
"aaron.halfaker@gmail.com"
] | aaron.halfaker@gmail.com |
1188afe55f7e76eab427d93e43b7049b268bf4ba | e749e94163a0e20c551875583baef4e02e72de5e | /Github/IPS-2/test_script.py | a7f8b1b0ea3152c1abd8412828ab0bccc9f05757 | [] | no_license | tritims/TensorFlow-Program-Bugs | 3445200179f4b7f5cc4ac1c6f076468ec19e51bb | 158ba0a23e0cb74e73dbab08571b05fc36848f2a | refs/heads/master | 2022-07-08T16:33:38.511696 | 2020-05-20T14:20:47 | 2020-05-20T14:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | import tensorflow as tf
import sys
import os
import subprocess
try:
assert len(sys.argv) == 2
version = ["-buggy", "-fix"][int(sys.argv[1])]
except:
print(
"Please run 'python test_script 0' for testing the buggy-version and "
"'python test_script 1' for testing the fix-version.\nAborted...... | [
"zyhzyhzyh@pku.edu.cn"
] | zyhzyhzyh@pku.edu.cn |
68585489fac7bf061631758b1ef11e321ec0d5eb | 232b2e8881a4ba693bea940022d68cc22caeccbb | /virtual/lib/python3.6/site-packages/pylint/test/functional/async_functions.py | 486c9ba45541b54825ada44b0c26a8eafb5080d4 | [
"MIT"
] | permissive | bryomajor/my-developer-life | b52ea3cd39e5d8226c51c700da32f5daf2489dc7 | 8332e1da4d24511255b1b7fc02f94ae4352f87a1 | refs/heads/master | 2022-12-08T08:18:40.266324 | 2019-10-29T13:40:44 | 2019-10-29T13:40:44 | 217,529,308 | 1 | 2 | MIT | 2022-12-08T06:47:28 | 2019-10-25T12:31:00 | Python | UTF-8 | Python | false | false | 1,282 | py | """Check that Python 3.5's async functions are properly analyzed by Pylint."""
# pylint: disable=missing-docstring,invalid-name,too-few-public-methods
# pylint: disable=using-constant-test
async def next(): # [redefined-builtin]
pass
async def some_function(arg1, arg2): # [unused-argument]
await arg1
class ... | [
"bryomajor@gmail.com"
] | bryomajor@gmail.com |
8c610f10bb981d96ea1ca9ca9be1a12e631134af | bce44991fddb9515429e6dba22248e4204b1d30a | /venv/lib/python3.9/site-packages/meraki_v0/aio/api/monitored_media_servers.py | fb19f6c1019c15c3c9bd3812252a1c42f24bac81 | [] | no_license | tkj-scythe/meraki-dns-checker | 6f7441380c4b48497b0c9b9a2bc5db380da4899c | 91c2f61b7527f89063bfa0b2e7c28c766581ed96 | refs/heads/main | 2023-07-01T09:04:21.353214 | 2021-08-04T01:22:39 | 2021-08-04T01:22:39 | 390,630,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,560 | py | class AsyncMonitoredMediaServers:
def __init__(self, session):
super().__init__()
self._session = session
async def getOrganizationInsightMonitoredMediaServers(self, organizationId: str):
"""
**List the monitored media servers for this organization. Only valid for org... | [
"t.kjaerolsen@gmail.com"
] | t.kjaerolsen@gmail.com |
bfd2050a3e6b87141e1397d48c7159ac42513a25 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/hour/community_lombok.py | 7040384456f28fa72991d3a3c04704a2839530b2 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,026 | py | using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
// Install Newtonsoft.Json with NuGet
using Newtonsoft.Json;
namespace TranslationService.Controllers
{
public class Translate
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
89945493c8ea25f94d02cc858c01e211c88baad3 | e39395420a019094e8ae422621cb56c378d9b540 | /memory_management.py | 66f9f406090524e5d94436d0e3cd39cd78b8c663 | [] | no_license | cristian-bedoya/Concepts_Python | 2038e63cdcfe67ada93953a6c2598a37c8cbd508 | 3d9da91ae218efeb7b6b6f7ed7202f3bf5796839 | refs/heads/master | 2023-04-19T15:37:25.987820 | 2021-05-04T11:25:40 | 2021-05-04T11:25:40 | 364,232,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | import weakref
class Car:
pass
x = 10
print(type(x))
y = x
if (id(x) == id(y)):
print("x and y refer to same object")
x += 1
if (id(x) == id(y)):
print("x and y different to same object")
z = 10
if (id(y) == id(z)):
print("y and z refer to same object")
else:
print("y and z different to same obj... | [
"crisbed321@gmail.com"
] | crisbed321@gmail.com |
3d6baa2c6ec4b94e9eec97acc8d85cd1ba8a4f6a | f5122242ceb72699f137d720a4c2087ab88ce215 | /apps/account/migrations/0011_auto_20180202_1514.py | edc97bbcf511bad025d14767c692ce22686c86c1 | [] | no_license | tainaml/p_gs | 009eae484152a213955da86d459314b7be0c4f69 | 0201a81c4ad5408bc9a2a585b9cb870dcdfe11d1 | refs/heads/master | 2023-01-20T05:00:31.052509 | 2018-08-15T18:49:52 | 2018-08-15T18:49:52 | 144,891,416 | 0 | 0 | null | 2023-01-12T09:29:19 | 2018-08-15T18:51:52 | JavaScript | UTF-8 | Python | false | false | 584 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-02-02 18:14
from __future__ import unicode_literals
import apps.account.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0010_user_gamification_member'),
]
operations... | [
"philliparente@gmail.com"
] | philliparente@gmail.com |
393fd4a8a5281a36764de18a36fa5b30425f2fc3 | f0a0aa6a5fe0ded715bb65c78dbedd9b2ca24e2f | /100DaysOfPython/Day4/Lists/RockPapersScissors.py | c134f6217ddf42b65ede188829f2abf249ce7244 | [] | no_license | DeepanshuSarawagi/python | bb911dd8dfc2d567a2c51679bb10c3f37f11e500 | a7b4ea3a0b6f1f373df3220ca655e575ae401d09 | refs/heads/master | 2022-04-26T17:46:39.301757 | 2021-08-25T15:08:14 | 2021-08-25T15:08:14 | 228,613,467 | 1 | 0 | null | 2022-04-22T23:32:41 | 2019-12-17T12:38:01 | Python | UTF-8 | Python | false | false | 971 | py | import random
rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''
scissors = '''
_______
---' ____)____
______)
__________)
(____)
-... | [
"deepanshusarawagi@gmail.com"
] | deepanshusarawagi@gmail.com |
fdcabe29912fc7ff91dc143e09f2251e6933b954 | e8a131a2cb7cf1d61413d54951fa89c65e1540a2 | /lib/dsplus/bench.py | 93f1b765b709515c9d37568eee9b03b6ca2abd53 | [
"Apache-2.0"
] | permissive | andrewxhill/MOL | 2877cf7adde4d595a685774fd8e0f6e422046d79 | 831efdd5e5b75a6452d451e982ab2e7563771cf4 | refs/heads/master | 2021-01-15T15:27:22.780230 | 2011-10-07T07:44:53 | 2011-10-07T07:44:53 | 1,040,510 | 9 | 3 | null | 2014-04-10T16:47:21 | 2010-10-31T23:20:56 | Python | UTF-8 | Python | false | false | 1,619 | py | """Benchmark for task creation and execution."""
import cProfile
import os
import pstats
import sys
from ndb import eventloop
from ndb import tasklets
from ndb import utils
# Hack: replace os.environ with a plain dict. This is to make the
# benchmark more similar to the production environment, where
# os.environ is... | [
"eightysteele@gmail.com"
] | eightysteele@gmail.com |
56721757363e5b12b1f8b885b8c12a2e14c1db08 | 3dd43ff0dab514a39f611487ab421256b3b5b13b | /scripts/client/gui/Scaleform/daapi/view/meta/VehicleCompareViewMeta.py | 042f0bdd186ee40ff9ac8ec1ca43337c2cd35c47 | [] | no_license | kusaku/wotscripts | 04ab289e3fec134e290355ecf81cf703af189f72 | a89c2f825d3c7dade7bc5163a6c04e7f5bab587d | refs/heads/master | 2023-08-20T00:17:36.852522 | 2018-02-26T14:53:44 | 2018-02-26T14:53:44 | 80,610,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/VehicleCompareViewMeta.py
"""
This file was generated using the wgpygen.
Please, don't edit this file manually.
"""
from gui.Scaleform.daapi.view.meta.VehicleCompareCommonViewMeta import VehicleCompareCommonViewMeta
class VehicleCompareViewMeta(Vehicle... | [
"kirill.a@aggrostudios.com"
] | kirill.a@aggrostudios.com |
5af595ea783247bba8659a8bd9b41800bb81c977 | 6dc621bb10f6de041fde56fc067546ea17887297 | /xe_currency_converter/models/config_settings.py | 0be11544fc5a2e8dc8140ac03cdbaf1f166eae2c | [] | no_license | aaltinisik/CybroAddons | 8eb7d07ff76fc2a71268d61384ab845dd3aeabf5 | bb6453404e4f28060643f23c1c6311587f7d2925 | refs/heads/12.0 | 2023-08-31T14:58:27.384188 | 2023-07-08T13:17:50 | 2023-07-08T13:17:50 | 96,469,796 | 1 | 3 | null | 2023-09-04T13:28:59 | 2017-07-06T20:34:16 | HTML | UTF-8 | Python | false | false | 5,797 | py | # -*- coding: utf-8 -*-
"""
Convert currency rate based on company currency by using xe.com platform
"""
import requests
from lxml import etree
from odoo import api, fields, models
from odoo.exceptions import UserError
class ResConfigSettings(models.TransientModel):
"""List out the service provider for exchange t... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
8641cd33a33a681c9bf9767793820aa53a5c9083 | 7ebb2f0458d3813737dd045473d7c1398d08392d | /tests/test_copy_vertical_slice.py | e15088000edfb445c752b06b7cf039c19802ca2a | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | clEsperanto/pyclesperanto_prototype | b3192d6984f45571fe0a7dfcceee2058bc4debbe | b465c8669f8e9326874139cf4b9c9af22c22757c | refs/heads/master | 2023-09-04T11:07:55.828329 | 2023-08-25T17:18:30 | 2023-08-25T17:18:30 | 248,206,619 | 152 | 36 | BSD-3-Clause | 2023-05-23T09:44:51 | 2020-03-18T10:56:29 | Jupyter Notebook | UTF-8 | Python | false | false | 1,442 | py | import pyclesperanto_prototype as cle
import numpy as np
def test_copy_vertical_slice_from_3d():
test1 = cle.push(np.asarray([
[
[1, 4],
[0, 4]
],
[
[1, 3],
[1, 2]
]
]))
test2 = cle.create((2, 2))
cle.copy_vertical_slice(... | [
"haesleinhuepf@users.noreply.github.com"
] | haesleinhuepf@users.noreply.github.com |
053264618515f3c89445b90c332bbbd068ff43bf | 190d03cf370844548b9e8c89952dfbaec4d0c5c8 | /p394.py | cc6f0e5dce80465bca6e84d8073da236567cc0ba | [] | no_license | alainlou/leetcode | 446d101a9fd2f9eaa2229252e5909e7df36b4a74 | fe500bcb067be59aa048259e3860e9da6f98344d | refs/heads/master | 2022-10-16T12:20:44.726963 | 2022-09-18T15:29:05 | 2022-09-18T15:29:05 | 178,775,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | class Solution:
def decodeString(self, s: str) -> str:
def dfs(s):
ans = ''
num = 0
start = float('inf')
end = float('-inf')
n = len(s)
i = 0
while i < n:
if ord('0') <= ord(s[i]) <= ord('9'):
... | [
"az2lou@uwaterloo.ca"
] | az2lou@uwaterloo.ca |
e58e8f5a1cefce69e32bec8d12904ac0d7a3f070 | d252d0caa8d2724872fa4ac7553cbb3d9845dc9d | /Codecademy/Python/05 - Listas e Dicionários/05.1 - Listas e Dicionários em Python/03 - Novos vizinhos.py | f9d77fa41e5da3369d5aa1dde868e4ce4604b4e6 | [] | no_license | tarv7/Trabalhos-da-faculdade-UESC | 81a0ebefbf468a4d15050a60aacd192acd6f272f | 40a6487de068b9e12fe0b533d3e626c21de0cbf5 | refs/heads/master | 2020-04-06T15:32:22.856274 | 2017-12-10T05:03:10 | 2017-12-10T05:03:10 | 45,571,531 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | zoo_animals = ["pangolin", "casuar", "preguica", "tigre"]
# Noite passada a preguica do zoologico atacou brutalmente
# o pobre tigre e o devorou inteiro.
# A feroz preguica foi substituida por uma amigavel hiena.
zoo_animals[2] = "hiena"
# Que animal deveria preencher o vazio deixado pelo pobre tigre falecido?
zoo_a... | [
"thallles.ramos@gmail.com"
] | thallles.ramos@gmail.com |
b1005d2a7cfdbd669f93a0aba29a37e8da4d3a9a | a222e2999251ba7f0d62c428ba8cc170b6d0b3b7 | /AtC_Reg_Con_051-060/ARC052/A.py | a7def35b73e24a588b10bd3f6f6c24b4afedf04d | [
"MIT"
] | permissive | yosho-18/AtCoder | 3e1f3070c5eb44f154c8104fbd5449f47446ce14 | 50f6d5c92a01792552c31ac912ce1cd557b06fb0 | refs/heads/master | 2020-06-02T10:21:29.458365 | 2020-05-29T12:40:48 | 2020-05-29T12:40:48 | 188,795,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | s = input()
numberli = ["0","1","2","3","4","5","6","7","8","9"]
for i in range(len(s)):
if s[i] in numberli:
k = s[i]
if i != len(s) - 1:
if s[i + 1] in numberli:
l = s[i + 1]
print(k + l)
exit()
else:
print(k)
... | [
"44283410+wato18@users.noreply.github.com"
] | 44283410+wato18@users.noreply.github.com |
8280b585042df5f3f2743904a0c866b303be0cfb | 9d5fd2db84afd3fbc11186d232b712e91fff2cb2 | /src/abclinuxuapi/shared.py | 8d59b10947158aae1bd1c0daa665be02d957c17a | [
"MIT"
] | permissive | Bystroushaak/abclinuxuapi | 606e2a7c3c889af623be44762a15cfe52092bfd1 | e6d3a76b3a71a958663efe037a00e5784fa4d0c1 | refs/heads/master | 2021-05-16T02:42:35.413478 | 2021-04-30T17:42:20 | 2021-04-30T17:42:20 | 19,644,172 | 6 | 1 | MIT | 2021-04-30T17:42:20 | 2014-05-10T15:06:01 | HTML | UTF-8 | Python | false | false | 6,917 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
import re
import time
import types
import datetime
from urlparse import urljoin
import requests
import dhtmlparser
# Variables =========================... | [
"bystrousak@kitakitsune.org"
] | bystrousak@kitakitsune.org |
b2723ef800fbfda757e47d7b744967215bc6e2b0 | a5e6ee40d0760982c3e8475259ea754ed3f24716 | /lexical.py | e5fbfd2740c720ff765fcddd9c0ba6ad9d40ea56 | [] | no_license | rocket3989/ieeextreme13 | 6786d012d2c913915c55e0720ff8855d4a125a8f | f0bafecc8038623529b97e22e9512839c5a1b1c5 | refs/heads/master | 2020-08-22T14:54:43.021947 | 2020-04-15T06:25:08 | 2020-04-15T06:25:08 | 216,420,668 | 2 | 3 | null | 2020-04-15T06:25:09 | 2019-10-20T20:07:44 | Python | UTF-8 | Python | false | false | 942 | py | # Collin Pearce 93%
# Iskandar Sobirov found many corner cases
from math import ceil
N, A, B = [int(x) for x in input().split()]
if A > N // 2 and B < N:
print("NO")
else:
valList = []
val = 0
bCount = N // B
N %= B
if N == 0:
print("YES")
print(*[B for i in r... | [
"rocket3989@gmail.com"
] | rocket3989@gmail.com |
d212454a9028b958698ea2242ac1416c2694a3f5 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/equiLeader_20200827153443.py | 5fbb713379cb8c1b9457fe508d6fb7435701603c | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | def equi(A):
# return the number of equal leaders that both occur in the sequences
# first find the equileader
# then count them in both sequences
store = {}
candidate = -1
for i in A:
if i in store:
store[i] +=1
else:
store[i] = 1
for i in s... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
afd90e9e500ea2d9b48705dfb4a049ab64d6f477 | eaaaf281f73fca63b4eb649fc6133c89416d13bf | /week-03/day-3/11a.py | be1473d97a0a13b24089bb137e6016573168d89f | [] | no_license | tpracser/PracserTamas-GF-cuccok | 87801dbe45acccffa9853269777d6a334bdbff4d | 6a152d76980881ef01abd1a648f3ea13eebd259d | refs/heads/master | 2021-09-01T15:48:03.556460 | 2017-12-27T20:00:12 | 2017-12-27T20:00:12 | 115,549,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # Create a function that prints a diamond like this:
# *
# ***
# *****
# *******
# *********
# ***********
# *********
# *******
# *****
# ***
# *
#
# It should take a number as parameter that describes how many lines the diamond has
def triangle1(number):
star = 1
spac... | [
"t.pracser@gmail.com"
] | t.pracser@gmail.com |
802565d977d5c13cda4f81ff8fa8283debd51270 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/GDS/shamil_v3/booking_custom/booking_custom.py | 3387ebb20e7f64440953afad2dcd1b354b31a85f | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>).
#
##############################################################################
from openerp.osv import fiel... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
b46116173bbbcd87c336641c771ca0f14cb4c77b | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /leetcode/binary-search/random-pick-with-blacklist.py | 1bab8d664f0a3bf01b828385e88e7ba560a0d42f | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | # https://leetcode.com/problems/random-pick-with-blacklist/
# https://leetcode.com/problems/random-pick-with-blacklist/solution/
# https://zhanghuimeng.github.io/post/leetcode-710-random-pick-with-blacklist/
# Time: O(MlogM), M = len(blacklist)
# Space: O(M)
# from post:
# 在讨论区里我看到了类似的做法,但是思考的角度不太一样。我们可以把从区间[0, N - M)中... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
14f65acc5bd1411af55895975ae347f04b3d1447 | b7fd11cc5e37f0521ba9705c39b465d3d186751c | /SCRIPT/PRIVATE/cal/org_month_indicator/script_oi_m.py | ce9a3d84dca5f5a3baff814b1abfafa90ef7d5d4 | [] | no_license | dxcv/index_k | a7d5c11ef904dacca865ec01040d4ca2cf525df9 | d811d1352aab3c8afdff7e2baa89b53484e3dd2e | refs/heads/master | 2020-05-17T18:09:27.758007 | 2019-04-28T07:23:07 | 2019-04-28T07:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,185 | py | import datetime as dt
import pandas as pd
from utils.algorithm import preprocess as pre, calculation as cal
from utils.database import config as cfg, io, sqlfactory as sf
from utils.dev import calargs_org4r
from multiprocessing import Pool
# SET UP
sf.SQL.Org4R.INDEXID = "OI01" # 使用OI01作为输入计算
pre.SQL_USED = sf.SQL.Or... | [
"xiaodong.qin@OIGBUY.COM"
] | xiaodong.qin@OIGBUY.COM |
1a6c7f1d7d5a6aa5e03bc5815e139fab001d19eb | 85b8a52f1be2c4838f885f0e5a4d6963f4109dfe | /codes_/0830_Positions_of_Large_Groups.py | a4583d83f1f0c33a24ff1b1b851e1017bb7a9375 | [
"MIT"
] | permissive | SaitoTsutomu/leetcode | 4cc5bac4f983b287ec1540d188589ce3dd6e409a | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | refs/heads/master | 2023-03-12T11:37:29.051395 | 2021-02-27T06:11:34 | 2021-02-27T06:11:34 | 281,815,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # %% [830. Positions of Large Groups](https://leetcode.com/problems/positions-of-large-groups/)
# 問題:サイズが3以上の(同じ文字が連続する)グループの「開始位置と終了位置」をリストで返せ
# 解法:文字の変わる位置を保持する
class Solution:
def largeGroupPositions(self, s: str) -> List[List[int]]:
res, st, pr = [], 0, ""
for i, c in enumerate(s + ";"):
... | [
"tsutomu7@hotmail.co.jp"
] | tsutomu7@hotmail.co.jp |
1dca20b4582740bd678ccbdffcd082d03019c5ac | be7949a09fa8526299b42c4c27adbe72d59d2201 | /cnns/foolbox/foolbox_2_3_0/tests/v1/attacks/test_attacks_iterative_gradient.py | 244c89dae4f97aa2f9a82a92e07be7ba1ee8723b | [
"MIT",
"Apache-2.0"
] | permissive | adam-dziedzic/bandlimited-cnns | 375b5cccc7ab0f23d2fbdec4dead3bf81019f0b4 | 81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a | refs/heads/master | 2022-11-25T05:40:55.044920 | 2020-06-07T16:14:34 | 2020-06-07T16:14:34 | 125,884,603 | 17 | 5 | Apache-2.0 | 2022-11-21T21:01:46 | 2018-03-19T16:02:57 | Jupyter Notebook | UTF-8 | Python | false | false | 483 | py | import numpy as np
from foolbox.v1.attacks import IterativeGradientAttack as Attack
def test_attack(bn_adversarial):
adv = bn_adversarial
attack = Attack()
attack(adv, epsilons=10, steps=5)
assert adv.perturbed is not None
assert adv.distance.value < np.inf
def test_attack_gl(gl_bn_adversarial)... | [
"adam.dziedzi@gmail.com"
] | adam.dziedzi@gmail.com |
b0b702a81d320fa3ecb065ffa63720698e00bcc8 | 95b57cb90ea0625ede16679b0a6a324342c1ec28 | /stars/apps/dashboard/permission/views.py | aeaa525dd62ca8dd7f09d31c789081ebad1fe403 | [] | no_license | lisongwei15931/stars | 2814f5cc9d08dd26a25048f91b27ff1607a659cb | 3d6198c2a1abc97fa9286408f52c1f5153883b7a | refs/heads/master | 2022-11-27T07:08:52.048491 | 2016-03-18T09:33:55 | 2016-03-18T09:33:55 | 54,242,594 | 0 | 0 | null | 2022-11-22T00:36:28 | 2016-03-19T02:10:35 | Python | UTF-8 | Python | false | false | 3,082 | py | # -*- coding: utf-8 -*-s
from django.views.generic import UpdateView, ListView, CreateView, DeleteView
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.contrib import messages
from django.http import Http404, HttpResponse
from django.template.loader import render_to_... | [
"lisongwei1593@gmail.com"
] | lisongwei1593@gmail.com |
3c57318c5f33a3bf570b2ab1ba6cb6a24b6f4433 | 31bc3fdc7c2b62880f84e50893c8e3d0dfb66fa6 | /language/python_369/python_369/function/function_signature_quickref.py | bcb52cf0eb26e35777fccd288b56e38e720f0192 | [] | no_license | tpt5cu/python-tutorial | 6e25cf0b346b8182ebc8a921efb25db65f16c144 | 5998e86165a52889faf14133b5b0d7588d637be1 | refs/heads/master | 2022-11-28T16:58:51.648259 | 2020-07-23T02:20:37 | 2020-07-23T02:20:37 | 269,521,394 | 0 | 0 | null | 2020-06-05T03:23:51 | 2020-06-05T03:23:50 | null | UTF-8 | Python | false | false | 960 | py | # https://stackoverflow.com/questions/24735311/python-what-does-the-slash-mean-in-help-output - position only parameters (i.e. "/" in the function
# signature) will only be available in Python 3.8 or 3.9
# https://stackoverflow.com/questions/14301967/bare-asterisk-in-function-arguments
def keyword_only_arguments(firs... | [
"uif93194@gmail.com"
] | uif93194@gmail.com |
ed3eac9df850d8f30b6a7b5cbb7ee85fef85d520 | ca66a4283c5137f835377c3ed9a37128fcaed037 | /Lib/site-packages/pandas/tests/dtypes/test_generic.py | 6159b4d2804f7e7dc8e53a79b5eb471cce119565 | [] | no_license | NamithaKonda09/majorProject | f377f7a77d40939a659a3e59f5f1b771d88889ad | 4eff4ff18fa828c6278b00244ff2e66522e0cd51 | refs/heads/master | 2023-06-04T20:25:38.450271 | 2021-06-24T19:03:46 | 2021-06-24T19:03:46 | 370,240,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,363 | py | # -*- coding: utf-8 -*-
from warnings import catch_warnings, simplefilter
import numpy as np
from pandas.core.dtypes import generic as gt
import pandas as pd
from pandas.util import testing as tm
class TestABCClasses(object):
tuples = [[1, 2, 2], ['red', 'blue', 'red']]
multi_index = pd.Mult... | [
"namithakonda09@gmail.com"
] | namithakonda09@gmail.com |
cad097d56892a138f92cfc828428e940c4538922 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Spacy/source2.7/spacy/lang/lex_attrs.py | f1279f03540da0c717f82f1cf24c981beb40dbd9 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 5,370 | py | # coding: utf8
from __future__ import unicode_literals
import unicodedata
import regex as re
from .. import attrs
_like_email = re.compile(r'([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)').match
_tlds = set(
"com|org|edu|gov|net|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|"
"name|pro|tel|travel|... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
dd6f560324474dd0a72efd521fcc46dbc7e2346f | 8acbd7fcfe1bcf94e4e895e58ac5c81f8ed13741 | /fees/migrations/0033_auto_20200525_1446.py | 780c394b17d1bd42402030968619a0b6f4cfddcf | [] | no_license | Rajangupta09/School-beta | 440af5d5d078a46036cfa3c50865f980c5ff1ace | 3ca6ca9992d2b47bcfe1762beb8c88609d519ea5 | refs/heads/master | 2022-12-07T19:42:19.562804 | 2020-08-04T09:53:04 | 2020-08-04T09:53:04 | 284,509,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | # Generated by Django 3.0.3 on 2020-05-25 09:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fees', '0032_auto_20200523_1331'),
]
operations = [
migrations.AddField(
model_name='feeheadmap... | [
"rjnkumar05@gmail.com"
] | rjnkumar05@gmail.com |
8d0ee49424b864fb533144a752d72d8554bf906d | 0256c10246c7523a3d6e647d8e7b54ea59fb863d | /pygal_skill.py | 702e74ef501a040ba473ba28fb2265834789fc48 | [] | no_license | mj3428/visual | e14d6613dcb06fe9051cb4e2ecebcb39c15a4241 | defcdbec8f249a13d312e578cee5c5302c25a853 | refs/heads/master | 2020-03-11T18:51:11.827466 | 2019-08-16T07:47:37 | 2019-08-16T07:47:37 | 130,189,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | #创建Die类
from random import randint
class Die():
"""表示一个骰子的类"""
def __init__(self,num_sides=6):
"""骰子默认为6面"""
self.num_sides = num_sides
def roll(self):
"""返回一个位于1和骰子面数之间的随机值"""
return randint(1,self.num_sides)#也就是1到6的随机整数
#开始掷骰子
from die import Die
die = Die()
results = []
for roll in range(100):... | [
"noreply@github.com"
] | mj3428.noreply@github.com |
30f02f25620427ba165af0de4511bd2802b62d7c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02957/s888968193.py | 565fa57d065e95bc211b5408018b3c66fd73655d | [] | 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 | 140 | py | def resolve():
a,b = map(int,input().split())
if a%2 != b%2:
print('IMPOSSIBLE')
else:
print((a+b)//2)
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e31017bb2a252d12939f881f5143a74a87bca76e | eaa0aa13ea83be4d32dd08beac0497031861e562 | /examples/block/middleman.py | 95b9e432ff8e356945aeb2a894ef8f1d5b0e00bb | [
"BSD-3-Clause"
] | permissive | teepark/junction | 53cdb4e03f8f1de730ea17da66187079a68fbcdf | 481d135d9e53acb55c72686e2eb4483432f35fa6 | refs/heads/master | 2021-01-01T20:00:23.442225 | 2014-03-07T22:16:14 | 2014-03-07T22:16:14 | 1,063,890 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | #!/usr/bin/env python
# vim: fileencoding=utf8:et:sta:ai:sw=4:ts=4:sts=4
import traceback
import greenhouse
import junction
greenhouse.global_exception_handler(traceback.print_exception)
junction.configure_logging(level=1)
PORT = 9870
SERVICE_PORT = 9876
def main():
hub = junction.Hub(("localhost", PORT), [(... | [
"travis.parker@gmail.com"
] | travis.parker@gmail.com |
b489964ba567b773abacdc37d2b623cbca5d6e34 | 8cc3a3284ba2f92177d955db3aa7ff26fa5649d5 | /test/benchmark_mpc.py | c98bba77e047379e367f46b65d3d6e3120d2a797 | [
"MIT"
] | permissive | Yugandhartripathi/CrypTen | 1d71d0ab9debbf4e01c54c18b4cdda503f26e6ad | 693dd6cc9918e982963e6acc186215d0f0769080 | refs/heads/master | 2020-12-19T18:06:01.700908 | 2020-01-16T23:19:22 | 2020-01-16T23:20:34 | 235,809,642 | 0 | 1 | MIT | 2020-01-23T14:18:18 | 2020-01-23T14:18:18 | null | UTF-8 | Python | false | false | 6,124 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from test.multiprocess_test_case import MultiProcessTestCase, get_random_test_tensor
import crypten
import torch
from... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0a52236f8f0afd02a1b515e6eb72c2f6b36cb5c6 | 3f48e3308674212408c3b6ca972eb4f793bf142b | /f0_data_process/pro_seq/data_202101_trim_Drosophila_STAR/1_star_rsem_write_slurm_ucsc_refseq_with_QC.py | cffc6908742649ffce26c23ea08d9b7e266edc6a | [] | no_license | zanglab/utx_code | 8497840ace81e0337f92f04fafbb691f0ed24865 | 32fc7851207f650b3cc78974ab798f8606099e56 | refs/heads/main | 2023-06-28T17:38:33.231877 | 2021-07-27T01:31:00 | 2021-07-27T01:31:00 | 388,648,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | import os,sys,argparse
import fileinput,time
import glob,re
import re,bisect
import pandas as pd
import numpy as np
#def expand_region(summitlist):
#from reads_count import read_count_on_mapfile
#import re,bisect
plus = re.compile('\+')
#minus = re.compile('\-')
name = re.compile('\#name')
fastq_files = re.compile('\#... | [
"zhenjia.sdu@gmail.com"
] | zhenjia.sdu@gmail.com |
69d5dc9b22ac4dbf648ca2daad5b1763b3756ca1 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Rhino/DocObjects/__init___parts/LinearDimensionObject.py | 9e90ada38a223d2c170488b7c45a91c931ab4abf | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | class LinearDimensionObject(AnnotationObjectBase):
"""
Represents a Rhino.Geometry.LinearDimension
that is placed in a document.
"""
DimensionStyle=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the Rhino.DocObjects.DimensionStyle
associated with this LinearDimensionObject.
... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
83d09a77871006a510b54530868751a6039fb309 | 6a26de4f5bfbc507d2986d92f091086231df5090 | /toolkit/apps/notification/management/commands/send_test_jiggle.py | e62914d65ef2510bb8b63cd5871e6bd47b200475 | [] | no_license | rosscdh/toolkit | a169478ff60f305029159b62831a90d899e0986a | cdda3dd17a776bf2a07fe093304160bf3c43199b | refs/heads/master | 2022-11-25T01:52:42.964759 | 2019-10-19T11:00:35 | 2019-10-19T11:00:35 | 14,691,581 | 1 | 0 | null | 2022-11-22T00:26:10 | 2013-11-25T16:50:14 | Python | UTF-8 | Python | false | false | 1,048 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from django.core.urlresolvers import reverse
from django.contrib.sites.models import Site
from django.core.management.base import BaseCommand, CommandError
from toolkit.apps.notification.tasks import youve_got_notifications
import pprint
class Command(BaseCom... | [
"ross@lawpal.com"
] | ross@lawpal.com |
55f5c86732a03bc478d61b3719c479f74e415c93 | 645cd832def2330ea923d69fcc82cf5b7719415b | /python/smqtk/representation/__init__.py | 5d6481977f9fd47571662e4ae48aee97e8edd083 | [] | no_license | mrG7/SMQTK | 3103b6c59e347930a330e3284b288cb7af20f3b6 | 19917babd63767726b1bc21a184a5006366b59af | refs/heads/master | 2021-01-20T11:35:21.861708 | 2015-10-02T21:50:44 | 2015-10-02T21:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from .code_index import CodeIndex, get_code_index_impls
from .data_element import DataElement, get_data_element_impls
from .data_set import DataSet, get_data_set_impls
from .descriptor_element import DescriptorElement, get_descriptor_element_impls
from .descriptor_index import DescriptorIndex, get_descriptor_index_impl... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
bead1e58fef1785c1383b1728855f8dceb702c68 | a689a72d3699883d7b58bd4ee3103373270bd0d5 | /preset/Python/Dijkstra.py | 58eb6c4f4f674538006612ae38a934c8a5506f2e | [] | 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 | 2,688 | py | """
<최단 경로 문제>
# 시작 정점에서 목표 정점까지 가는 간선의 가중치의 합이 최소가 되는 경로를 찾는 문제
# 최단 경로? 간선의 가중치가 있는 유향 그래프에서 두 정점 사이의 경로들 중 간선의 가중치의 합이 최소인 경로
1. 단일 시작점 최단 경로 문제
>> 출발점에서 다른 모든 정점들에 이르는 최단 경로를 구하는 문제
>> 해결1: 다익스트라(Dijkstra) 알고리즘: 음의 가중치를 허용하지 않음
>> 해결2: 벨만-포드(Bellman-Ford) 알고리즘: 음의 가중치 허용. 가중치 합이 음인 사이클은 허용하지 않음
2. 모든 쌍 최단 경로 문제
>... | [
"oizys18@gmail.com"
] | oizys18@gmail.com |
dfc5dc6f990c43a89ba44b7a4570f55803b9d458 | 43239741971dd67ded35db404819616e96561596 | /venv/Scripts/pip3.7-script.py | 3c64fd71dbd22c78fbb091e12072aea930d5182e | [] | no_license | aljaserm/Drwaing | 0b522b7e09de80922568a465c035270efb1041bd | 7ed53145fdc356efda87816db6f2663898062c33 | refs/heads/master | 2020-05-16T14:53:06.537065 | 2019-04-24T00:06:49 | 2019-04-24T00:06:49 | 183,113,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!C:\Users\aljas\OneDrive\Documents\Development\Python\OpenCV\Drwaing\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script... | [
"aljaserm7@gmail.com"
] | aljaserm7@gmail.com |
b67bafe59a684f615f53ed8f7133ac55c385d3f8 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/big_map_diff/op3i51GQPTxWbT777DPufUcXzLbZ9PhHhpUw4Uw9ExNbgof1pkq/test_big_map_op3i51.py | 4b03574566594e3a5c8c5d2ce9e67949066164d7 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 860 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.contract import ContractStorage
class BigMapCodingTestop3i51(TestCase):
def setUp(self):
self.maxDiff = None
def test_big_map_op3i51(self):
section = get_data(
path='big_map_diff/op3i51GQPTxWbT77... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
2801f8535625ebebb67b4b8ba74a0c1c3157c280 | 725ce8167897de0ffd42b97b7aefff43686b0d33 | /barbados/exceptions/__init__.py | 2d3ca8d3dd2d934a60ada5bcc1cc6350a2104b73 | [] | no_license | vinceblake/barbados | a510424f82d77066b9b6fa0e1d4641cbbeb5f138 | 28b6c691e5c8150f51b8ee57a99239232b1417ef | refs/heads/master | 2023-02-15T07:54:47.381960 | 2021-01-13T02:51:49 | 2021-01-13T02:51:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import os
import logging
class ValidationException(Exception):
pass
class FatalException(Exception):
def __init__(self, exception):
logging.error("A fatal error has occurred: %s" % exception)
logging.error("PID %i is shutting down." % os.getpid())
exit(1)
class ServiceUnavailableEx... | [
"grant@grantcohoe.com"
] | grant@grantcohoe.com |
572cce1995153e05cd670aa40247e9114df50b1e | ddaa20f2ff0aaed4c6beeba888c4213405fdd586 | /pypi_server/db/migrator/actions.py | 96eab7e00def451c561cc4501bd8af988aa6856f | [
"MIT"
] | permissive | mosquito/pypi-server | 689fb84dd0cc56a70c7bfa6157b8defa76d774d8 | 825571aae6fd17616e404ad8a9b72ef791a4fc46 | refs/heads/master | 2023-08-17T14:17:50.177008 | 2021-11-14T17:11:52 | 2021-11-14T17:11:52 | 47,583,364 | 129 | 58 | MIT | 2021-11-14T17:11:53 | 2015-12-07T22:30:53 | Python | UTF-8 | Python | false | false | 882 | py | # encoding: utf-8
from pypi_server.db.migrator import MIGRATIONS, log
def migrate_db(DB, Migrations, migrator):
migrations = sorted(MIGRATIONS, key=lambda x: x[0])
q = Migrations.select(Migrations.id).order_by(Migrations.id.desc())
if q.count():
last_applied_migration = q[0].id
else:
... | [
"me@mosquito.su"
] | me@mosquito.su |
132a869d3a2b5bf9e785feff5c6813983d6b24b8 | 21b632797ed6257b13574c341cdd14e6534728a9 | /ryu/services/protocols/bgp/info_base/vpnv4fs.py | 7f86a5c4ff77dc0582a04a84b8353c50fd0ff8ac | [
"Apache-2.0"
] | permissive | MrCocoaCat/ryu | 0473f04e2a840e027e9002f8a6af81745eaf7094 | 9e9571991a73380099b7ba7c6f37e0e587080a6a | refs/heads/master | 2021-06-19T18:09:52.833590 | 2020-05-12T08:17:21 | 2020-05-12T08:17:21 | 163,072,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | # Copyright (C) 2017 Nippon Telegraph and Telephone Corporation.
#
# 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 ... | [
"MrCocoaCat@aliyun.com"
] | MrCocoaCat@aliyun.com |
2b7930e146c1f0d5739057c4b2aac580230823dd | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D03A/LREACTD03AUN.py | 1b26aa8b05a21b4e854e0e7ba874d2d6ea5445c2 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,865 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD03AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 1},
{ID: 'CUX', MIN: 0, MAX: 1},
{ID: 'CTA'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
f40b76595e04be243e6cbea980762c0bbf82e450 | 299a10d1207322fd543466ae40a7d16d8c5dd14b | /forms.py | 1a1cd6811feaa0c2051b0f0e1fb95cd55d436dc6 | [] | no_license | johnshiver/learning_journal | 005911de5643bd376c9da210b239d01039ac0c10 | 91eaeb001c5cd4b4606e9c2ab2466a1c56d5fd3b | refs/heads/master | 2020-12-25T22:06:50.266609 | 2015-05-06T05:21:25 | 2015-05-06T05:21:25 | 29,758,760 | 0 | 0 | null | 2015-01-23T23:46:15 | 2015-01-23T23:46:15 | null | UTF-8 | Python | false | false | 582 | py | from flask.ext.wtf import Form
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import Required, Email, Length
class LoginForm(Form):
email = StringField('Email', validators=[Required(),
Length(1, 64),
... | [
"johneshiver@gmail.com"
] | johneshiver@gmail.com |
46fa735b1ee14316214de83993ffaf9be543ce59 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/acr/private_endpoint_connection.py | 08e66ef6a10c4c09ac0a418f8bc4dd8999933804 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 3,694 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9d0a87b92b7370a9a5b457946e452d21724b177f | 62c0ec20e89b95f94cc0d77d0396223cecd4e2ba | /cms_apps/cms_page/admin.py | 216773f981218b487c2fe8c1ffeb90983621cf43 | [] | no_license | raprasad/CMS-Basics | 7c5b079335ad859c9fd6dd77eacaf755e6972bb4 | eaabf10a70e26be77cde53d0236e8f17f6b793a9 | refs/heads/master | 2020-04-20T00:47:05.146429 | 2014-04-03T18:16:32 | 2014-04-03T18:16:32 | 2,959,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,986 | py | from django.contrib import admin
from cms_page.models import Page, PageDirectLink, PageCustomView, PagePlaceHolder, PageImage, PageDocument, EDIT_ONLY_OWN_PAGES_GROUP
from cms_page.forms import PageAdminForm, PageDirectLinkAdminForm, PageCustomViewAdminForm
from cms_menu_node.admin_base import NodeAdminBase
from cm... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
c7ec309a58b6ca1d998d87d2422a6e74c9940c46 | 6a63e40b1d30b6a810c89d910ac3f8f5954002ee | /src/pretalx/mail/migrations/0002_queuedmail_sent.py | c15f57e7b5ca622c4721de1ea1a294725912dd08 | [
"Apache-2.0"
] | permissive | orlando/pretalx | 47b7ab3e3258d667183066b84227b785199711b2 | 15f90dc2545f210eaf870ffbdfe0a27c70bfa0ec | refs/heads/master | 2020-09-10T20:26:49.867462 | 2019-11-15T01:19:07 | 2019-11-15T01:19:07 | 221,826,314 | 2 | 0 | NOASSERTION | 2019-11-15T02:21:05 | 2019-11-15T02:21:04 | null | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-24 11:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mail', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"rixx@cutebit.de"
] | rixx@cutebit.de |
0b568b4dc76de7eb9c3bf99eadadd6f1e2afb26e | 81a06ae39f1a2cc9a9cc46ecb47284298453a415 | /siftpy/_context_extractor.py | 2b42c0bfcb1200c5282af68662298f88374de11e | [] | no_license | tckerr/siftpy | a63c0b77dfc6485767152b6fea9604b936e0ba91 | d4a58e14f648595330ac03a6c89068f13bce6767 | refs/heads/master | 2021-01-18T21:36:45.921769 | 2017-04-10T23:17:44 | 2017-04-10T23:17:44 | 87,015,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | class ContextExtractor(object):
def next(self, context_provider, context_source):
if context_source is None:
raise Exception("Context source is not defined on one of your leaf nodes.")
val = getattr(context_provider.context, context_source)
if val is None:
... | [
"tckerr@gmail.com"
] | tckerr@gmail.com |
6291d22f56581ff8bcecd444cb6e0b889aa885ae | 2120db28dbe55b8a9185ae8aa42a769985491996 | /python/examples/dictionary/sort_dictionary_values.py | 4011506cc5413994f040d013f0c7008d90f70655 | [] | no_license | coralhalperin/slides | 7b149cb61840eb1724cb1571bba2503b19278780 | 0c83e1d1e771c9d4b110542b2ad64bbc6bd7b81a | refs/heads/main | 2023-01-04T14:02:11.406990 | 2020-10-25T06:20:07 | 2020-10-25T06:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | scores = {
'Foo' : 10,
'Bar' : 34,
'Miu' : 88,
}
# sort the values, but we cannot get the keys back!
sorted_values = sorted(scores.values())
print(sorted_values) # [10, 34, 88]
| [
"gabor@szabgab.com"
] | gabor@szabgab.com |
0ac758da1354607705f54af60e765698186a99b9 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/storage/azure-storage-file-share/azure/storage/fileshare/_version.py | d731da5c407273a7e8d7d8f98c3f809732c0d1a4 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 330 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
VERSION =... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
f122bc8d3bbc2fca0d050d87953147da83d9587f | 3fbd26091ebbc13913f9c7be1aaf10d477c79536 | /week01/zuoye/requests_maoyan/.history/maoyan_20200628012048.py | c6bdc8c5bbf04569f3973e46bd04cc81611ea5a7 | [] | no_license | shuncon/Python001-class01 | d28faf3d5d8e9ea4cee93bcae7143a26fd8c472e | df19758181cdaf37f30d4b518600fc4612590499 | refs/heads/master | 2022-11-13T19:31:27.019214 | 2020-07-10T14:58:25 | 2020-07-10T14:58:25 | 273,135,541 | 0 | 0 | null | 2020-06-18T03:46:56 | 2020-06-18T03:46:55 | null | UTF-8 | Python | false | false | 1,517 | py | #-*-conding:utf-8 -*-
import requests
import lxml
from bs4 import BeautifulSoup as bfs
headers = {
'user-agent' :'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36',
'Cookie': '__mta=143555850.1593182389402.1593186588642.1593186951752.13; _lxsdk_cui... | [
"1428834423@qq.com"
] | 1428834423@qq.com |
25a3cad6e14ab7ecedc5cb8d429d2ed4427f862e | cd0cf1c75c715a67502ff7f164bb070da78956de | /tragopan/migrations/0087_auto_20160129_1017.py | cddca0e13762aefb87456ca739d03ee850e4e51f | [] | no_license | nustarnuclear/orient_linux | 9792fb4319007708861d619dac081fa32206d3f6 | 95082ea56a0dfc248024f9bf54897a017985ccdf | refs/heads/master | 2020-03-28T03:17:02.629719 | 2017-01-04T08:38:16 | 2017-01-04T08:38:16 | 43,117,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('tragopan', '0086_auto_20160128_1506'),
]
operations = [
migrations.RenameField(
model_name='fuelelementpelletloa... | [
"hengzhang@nustarnuclear.com"
] | hengzhang@nustarnuclear.com |
21275dbc6b87388558fd8439780803ca39b29895 | 87695989bbafe0ec6892cb4d1bb1965c84d6b35f | /vatt/utils/eval/measures.py | 2355640bf3912b4ddf608251cf45048367b0bebc | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | guangyusong/google-research | ef6e85e7de75bd1289575374accc7fe19af896c7 | cac4a7f3b82ab629e25fa8afe33ce80cc6933e54 | refs/heads/master | 2022-01-01T11:22:31.825772 | 2021-12-30T20:08:40 | 2021-12-30T20:19:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
a277b8755d984927b93b7e1e624874b13707ab1f | 1f9eaeca86eab7bf30d7580fdd1eaa3e3a03cfb0 | /rqalpha/mod/rqalpha_mod_sys_transaction_cost/__init__.py | c8b89c93fd904551426547da556b7a94b1afa2cf | [
"Apache-2.0"
] | permissive | guhhhhaa/rqalpha | 08f97c0beb1339886d8177df768c9671ce3d4559 | 386bceaa5d8ab2e0f51eeef676c5799eeb35bcb4 | refs/heads/master | 2020-04-04T15:32:05.214151 | 2018-11-03T02:46:34 | 2018-11-03T02:46:34 | 156,041,074 | 1 | 1 | Apache-2.0 | 2018-11-04T02:06:39 | 2018-11-04T02:06:39 | null | UTF-8 | Python | false | false | 2,017 | py | # -*- coding: utf-8 -*-
#
# Copyright 2017 Ricequant, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"cuizi7@163.com"
] | cuizi7@163.com |
7482f658bfbc1852b614d4b6ee3578c2758a079b | 2049bda43e392d5f5981fbfdb70090ba226e4ef8 | /apps/user/migrations/0002_auto__add_unique_profile_uuid.py | 49a8660b196352cec08746c5f5fc822cd7bfc2d2 | [] | no_license | embedded1/django-package-forwarding | 2ef84a1fde5ba6817d42d89f983512bdc3d77bc3 | 8c3286e9a7da8f4ae0401a81c8037585b3bb7ba6 | refs/heads/master | 2020-06-22T17:05:36.637695 | 2019-07-26T09:34:40 | 2019-07-26T09:34:40 | 197,738,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding unique constraint on 'Profile', fields ['uuid']
db.create_unique('user_profile', ['uuid'])
de... | [
"asili@usendhome.com"
] | asili@usendhome.com |
1c246ee63f7b072d69f5fa7bc161b51bdec588c0 | 09cb9fc74ba00ae1b2e394e62b71b6f9abaf7bcf | /tests/dialogs/demo_dialog.py | 0b80a162a1bead4b29d4ab488671dd531953d5e4 | [
"MIT"
] | permissive | kxgames/glooey | 5542e51c99d56170680c4914996434f798866e49 | f1d9711e93037ff1029d2a16c0b9cfc740fbff52 | refs/heads/master | 2022-11-21T02:58:16.418443 | 2021-09-19T15:54:03 | 2021-09-20T13:23:07 | 21,807,333 | 101 | 13 | MIT | 2022-11-11T15:04:48 | 2014-07-14T04:27:44 | Python | UTF-8 | Python | false | false | 677 | py | #!/usr/bin/env python3
import pyglet
import glooey
import run_demos
class TestDialog(glooey.Dialog):
def __init__(self):
super().__init__()
button = glooey.Button()
button.size_hint = 100, 100
button.set_background(
base_color='green',
over_color='o... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
7ea8307fed05e80d6400bdb699dcedd31f81afc0 | 6d7c488d14cf2bc0322c955a53ec34cfd67e8c3b | /.history/plane_ticket/spiders/ticket_spider_20200709115200.py | 720a1863f37ea6ff504ca4670736ce2b608858b3 | [] | no_license | byebyeyuchi/getPlaneTicket-web-crawl- | e247b7d015e35d1036e023c748764abb0ad66fe1 | 91a666659a537c053d8cd19c8214a54eab460800 | refs/heads/main | 2023-02-25T21:43:53.046865 | 2021-01-30T02:14:43 | 2021-01-30T02:14:43 | 334,308,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import scrapy
import re
class TicketSpider(scrapy.Spider):
name = "tickets"
start_urls = [
"http://montreal.chineseconsulate.org/chn/zlgxw/"
]
def parse(self, response):
output ={}
pattern = u'\u5173\u4e8e\u516c\u5e03\u4e34\u65f6\u822a\u73ed'
top = re... | [
"delseylyq@gmail.com"
] | delseylyq@gmail.com |
11471b33a9344ccba540292367fe969b17b009e9 | 6fa0d5d3b61fbce01fad5a7dd50258c09298ee00 | /Python/SS4th/StartCamp/Lotto/lotto_api.py | 0a3551a79ffe00d4ceb679af9f0e1e2daa848397 | [] | no_license | athletejuan/TIL | c8e6bd9f7e2c6f999dbac759adcdb6b2959de384 | 16b854928af2f27d91ba140ebc1aec0007e5eb04 | refs/heads/master | 2023-02-19T13:59:06.495110 | 2022-03-23T15:08:04 | 2022-03-23T15:08:04 | 188,750,527 | 1 | 0 | null | 2023-02-15T22:54:50 | 2019-05-27T01:27:09 | Python | UTF-8 | Python | false | false | 848 | py | import requests
import random
url = 'https://www.dhlottery.co.kr/common.do?method=getLottoNumber&drwNo=879'
res = requests.get(url)
data = res.json()
winner = []
for i in range(1,7):
winner.append(data[f'drwtNo{i}'])
lotto = sorted(random.sample(range(1,46),6))
match = set(lotto)&set(winner)
rank = len(match)
... | [
"vanillasky84.0627@gmail.com"
] | vanillasky84.0627@gmail.com |
e079d4ada899ab94aa0f0bd0b38eb306007687c5 | 24cf6992d9c9b8523a0a7d3a7a45e701cd49fce3 | /temp/projects/tempify/tempify/settings.py | eaeb980a88247b2c379ed9973cf96fb1a7672d29 | [] | no_license | yannickkiki/stuffs | f4e150a61eb0426791753f5da558dba09940d240 | d46e1ec56eb4f0f3486e72ffce5c7bba7f2a1796 | refs/heads/master | 2023-08-10T20:05:38.255427 | 2021-10-04T05:38:39 | 2021-10-04T05:38:39 | 353,716,213 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | """
Django settings for tempify project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"seyive.kiki@gmail.com"
] | seyive.kiki@gmail.com |
ea7268f307ad5c574e6afc24d03cd1d2fc6fca4e | e7caa3bd1a8c82fd59f88451d503e814cd6fdbea | /teaching/fib.py | 1ccada07c9c79492bf54201b1eeb186ab681e2f0 | [] | no_license | Ethic41/tafidaCourse | c9c65aa52a2b1e5b1992fa2ea1b874a9d7ac936d | aaff19df2bf853cd2552445a994e3eb91f4d0d37 | refs/heads/master | 2021-01-04T03:50:57.732354 | 2020-02-19T22:18:21 | 2020-02-19T22:18:21 | 240,368,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2020-02-10 22:21:00
# @Author : Dahir Muhammad Dahir
def fibonacci(n):
if n == 0:
return 0
if n == 1:
return 1
return fibonacci(n - 1) + fibonacci(n - 2)
#for i in range(10):
# print(fibonacci(i))
def factorial(n):
if... | [
"dahirmuhammad3@gmail.com"
] | dahirmuhammad3@gmail.com |
55222c60aca967ce2859d141d88b91b369efeca9 | 1d23c51bd24fc168df14fa10b30180bd928d1ea4 | /Lib/site-packages/twisted/protocols/stateful.py | 4618e74b3f58982ccca101c6a1438bdc2af09cd7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BeaverInc/covid19CityMontreal | 62dac14840dadcdf20985663bc2527c90bab926c | 1b283589f6885977a179effce20212a9311a2ac0 | refs/heads/master | 2021-05-22T20:01:22.443897 | 2020-06-21T08:00:57 | 2020-06-21T08:00:57 | 253,067,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | # -*- test-case-name: twisted.test.test_stateful -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from twisted.internet import protocol
from io import BytesIO
class StatefulProtocol(protocol.Protocol):
"""A Protocol that stores state for you.
state is a pair (function, num_byte... | [
"36340780+lanyutian88@users.noreply.github.com"
] | 36340780+lanyutian88@users.noreply.github.com |
4f2e6530981c13d7af5292e0def560b02a082ecf | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab7/set2/JUSTIN V STONE_11331_assignsubmission_file_Lab_7_jstone/Q1.py | 8ff74ace3b6ee432c96fd8a3d23dc52843297410 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py |
# Question 1
import sys
from math import *
print sys.argv
x=float(sys.argv[1])
print x
y=float(sys.argv[3])
print y
op=sys.argv[2]
print x,op,y,'=',
if op == "+":
print x+y
elif op == "-":
print x-y
elif op == "*":
print x*y
elif op == '/':
if y == 0:
print "error: y = 0"
else:
total = x / y
print total... | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
d1b5d8b0c3958a9eb1d8fa0f6a9ffae5a5e537a2 | a354982110c16557c1a21443f387cea3e81648de | /advanced_templates/pythons_app/urls.py | 960ce8dccdd5d8c9dc1fdaa909af1525321c9b5a | [] | no_license | dkutelov/django_study_projects | 4e30ec71611523d61997cd364b76fa8cc1163f70 | 832b31ba7e60fae425cbe26b1c45f0afe903a7d8 | refs/heads/master | 2023-01-30T10:07:48.850614 | 2020-12-15T15:59:58 | 2020-12-15T15:59:58 | 289,719,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django.urls import path
from . import views
urlpatterns = [
# path('', views.index, name="index"),
path('', views.IndexView.as_view(), name="index"),
path('create/', views.create, name="create"),
]
| [
"dari.k@abv.bg"
] | dari.k@abv.bg |
79087fbb2dd8675ad8da685b36d535c2919ea13f | 89fd3b235832cc6f14811721dfe9e092eaa5aafb | /bitflow/utils/create_dependencies.py | b9d65afcd7ff2a467248d63721761a5e8aeca6fc | [] | no_license | keikojima02/bitflow | f43ebaba1421d265731ddfe57e814eaf7904e487 | ad6a2d8dc60d60708c3adee7fd3d5b5cfc0ac65f | refs/heads/master | 2022-11-25T23:34:29.260242 | 2020-08-06T18:41:21 | 2020-08-06T18:41:21 | 275,140,682 | 0 | 0 | null | 2020-06-26T11:32:39 | 2020-06-26T11:32:38 | null | UTF-8 | Python | false | false | 876 | py |
import os
import json
from .utils import get_module_names, fetch
def create_dependencies(directory='modules'):
'''
Read bitflow modules in a directory and get their type signatures
Dump these to a JSON file.
**Potentially uses a lot of memory, and is separated for this reason**
'''
print('CRE... | [
"lucassaldyt@gmail.com"
] | lucassaldyt@gmail.com |
fc877201ba9a982d606c64d6a277d8be93b38c2e | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/frenetic-lang_pyretic/pyretic-master/pyretic/evaluations/Tests/traffic_matrix_stanford/policy.py | b914df876b0c928cfc684fcd368201330b3e4392 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,636 | py | from pyretic.lib.corelib import *
from pyretic.lib.std import *
from pyretic.modules.mac_learner import mac_learner
from pyretic.lib.path import *
from pyretic.lib.query import counts
from pyretic.evaluations.Tests.common_modules.stanford_forwarding import *
from Topos import *
import threading
import itertools
import... | [
"659338505@qq.com"
] | 659338505@qq.com |
716ff5daeba41e2677b0823d964f5f3c212e9b52 | 105212e4d2d2175d5105e05552e29b300375e039 | /TensorFlow_tutorials/TensorFlow_train_own_data/tensorflow_train_owndata_detector/eval.py | 1c65a0bdc45ff2009edcb2984e9d458debe8eb69 | [] | no_license | Asher-1/AI | 84f0c42651c0b07e6b7e41ebb354258db64dd0d1 | a70f63ebab3163f299f7f9d860a98695c0a3f7d5 | refs/heads/master | 2022-11-26T07:24:37.910301 | 2019-05-30T13:04:31 | 2019-05-30T13:04:31 | 160,031,310 | 7 | 1 | null | 2022-11-21T22:02:53 | 2018-12-02T09:19:03 | Jupyter Notebook | UTF-8 | Python | false | false | 6,215 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"ludahai19@163.com"
] | ludahai19@163.com |
af62cc95241e3c19928502710b6abdeaf7f46d83 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_accountbackup.py | 3256aa33c263759cadc795b311feb03460ce5c1f | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 7,709 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
d9aeac61bf5d22a8c62e1dff9fda9367a8bcfad8 | 214ea3873f451940c73c4fb02981b08c8161b23c | /Linked List/plus-one-linked-list.py | 934194ea2146141629c94e1e2fbf2cfcecdfa250 | [] | no_license | Tiierr/LeetCode-Python | 4a086a76a6d3780140e47246304d11c520548396 | e8532b63fc5bb6ceebe30a9c53ab3a2b4b2a75a3 | refs/heads/master | 2021-06-14T04:36:57.394115 | 2017-03-07T06:46:39 | 2017-03-07T06:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | # Time: O(n)
# Space: O(1)
#
# Given a non-negative number represented as a singly linked list of digits, plus one to the number.#
# #
# The digits are stored such that the most significant digit is at the head of the list.#
# #
# Example:#
# Input:#
# 1->2->3#
# #
# Output:#
# 1->2->4
# Definition for singly-linked ... | [
"rayyu03@163.com"
] | rayyu03@163.com |
a03fd0436ff599a502e57472a1efded1a8d46e50 | 75169b83f2b975bff8baf61f0cf1264cf4b71a28 | /learnpy/king.py | 8eb0da68fc7a2178e28e98961715adbb87d27154 | [] | no_license | Pangpang2/Python | a27024587ae51923954deefaaff304a26e5a944f | 0b3bcfbdcaa71253c798090713c052fd397bff3f | refs/heads/master | 2022-12-01T10:03:23.214443 | 2020-08-26T00:21:15 | 2020-08-26T00:21:15 | 290,171,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import math
from math import sqrt
#i = math.floor(32.9)
i = int(32.9)
i = sqrt(9)
i = "hello world"
print(i)
print(''' this
is''')
print("Hello.\
world !")
print(1+2+\
4+5)
path = r'c:\abc'
print(path)
hu=['huhu',25]
chongshi = ['chongshi', 32]
database = [hu,chongshi]
print(database)
sentence = 'haha! this ... | [
"may.li@internetbrands.com"
] | may.li@internetbrands.com |
2bc29d51b0967f5ca7661818603d3b483d1e8f54 | 4ced95cf91f5673eae0f60a81aeae9881a4509dc | /registration_page/models.py | 2b283e5030c2e9c6fd19310ef002e38e19cae5d4 | [] | no_license | batyrbeknazik/django-deployment | 15e3053213e557ffcc3bbbdcd89d452aef1b8018 | bd5b8529e3f0deff52b290e49ed434385cf752f5 | refs/heads/master | 2021-01-25T13:06:46.873076 | 2019-05-08T12:36:27 | 2019-05-08T12:36:27 | 123,530,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class UsersProfile(models.Model):
usern = models.OneToOneField(User,on_delete=models.CASCADE)
def __str__(self):
return self.usern.username | [
"batyrbeknazik@gmail.com"
] | batyrbeknazik@gmail.com |
ebed421d062a2b461fb80b90a0d48a45e20e839e | 7b221a4981edad73991cf1e357274b46c4054eff | /stacks/XIAOMATECH/1.0/services/HDFS/package/alerts/alert_upgrade_finalized.py | 3bad04c368daee13ba28cf609fbd6777a24f3148 | [
"Apache-2.0"
] | permissive | aries-demos/dataops | a4e1516ef6205ad1ac5f692822e577e22ee85c70 | 436c6e89a1fdd0593a17815d3ec79c89a26d48f1 | refs/heads/master | 2020-05-29T17:20:12.854005 | 2019-05-22T06:06:00 | 2019-05-22T06:06:00 | 189,270,801 | 2 | 3 | Apache-2.0 | 2019-05-29T17:35:25 | 2019-05-29T17:35:24 | null | UTF-8 | Python | false | false | 7,008 | py | #!/usr/bin/env python
"""
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");... | [
"xianhuawei@MacBook-Air.local"
] | xianhuawei@MacBook-Air.local |
1049dc7eefafa33b9060cd5d95f051b818f0497a | f3364550df53c1a897dfcd9eea0713a8e02d329a | /week11/demo/api/urls.py | 803fc924b6ea108ecf29a4e58586e443f4ecd53c | [] | no_license | sultandaurenbek/Web_Development | 924f3f35cf925d993913b1dcb620e2b51269560b | 44393399d430ca7ec3055e1e661888d20f60ed71 | refs/heads/master | 2023-01-24T08:46:18.130431 | 2020-04-17T22:28:38 | 2020-04-17T22:28:38 | 237,561,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | from django.urls import path
from api.views import companies_list, company_detail, vacancy_by_company, vacancies_list, vacancy_detail, top_ten_vac
urlpatterns = [
path('companies/', companies_list),
path('companies/<int:company_id>/', company_detail),
path('companies/<int:company_id>/vacancies/', vacancy_... | [
"you@example.com"
] | you@example.com |
af2be85f930d73d5acb64a9efac34b19dcaeb91c | 6c1527b2dc3f944b8907d0de5bda6cdfbaeb1f7f | /views/demo.py | c93bd4b545b97bfee7144b36a886991057420ce9 | [
"MIT"
] | permissive | dcthomas4679/otree | f0a9204b12cd395e55fd9b77ac90584c2cd3c049 | 363a05d2f70f9225628e4857473dedcb449018dc | refs/heads/master | 2021-06-23T20:07:02.499724 | 2020-11-18T15:32:30 | 2020-11-18T15:32:30 | 37,225,765 | 1 | 1 | NOASSERTION | 2021-06-10T23:28:55 | 2015-06-10T22:22:33 | Python | UTF-8 | Python | false | false | 1,982 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from django.urls import reverse
import vanilla
from otree.session import SESSION_CONFIGS_DICT
import os
class DemoIndex(vanilla.TemplateView):
template_name = 'otree/DemoIndex.html'
url_pattern = r'^demo/$'
def get_context_data(... | [
"dcthomas@gmail.com"
] | dcthomas@gmail.com |
f19502f662341670a906574fb7252f983ed6ec86 | 39e70c42740aa3099a56e18fc631119b3e346e92 | /hotels/views.py | f9f449e1d4e28eb7fcbb295bcfa0ebf9debb139e | [] | no_license | mkl-by/belhard | 20c14df16bc499541f408bd1a23377df998dfb76 | 292d3dd00120ea08ba9317c1e29aa459c163e59b | refs/heads/master | 2023-06-12T05:06:11.991200 | 2021-06-30T07:59:15 | 2021-06-30T07:59:15 | 368,925,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,831 | py | import datetime
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.sessions.models import Session
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcu... | [
"mkl-by@yandex.ru"
] | mkl-by@yandex.ru |
42752e0882c81772b2118858be0761640709d55c | fc92e3c736752e966148cd750e98e6a11c5ec92c | /baloney/opcodes.py | 640ef9f96e5ed2b9e957cf52d3250514f8f83200 | [] | no_license | tonybaloney/baloneyscript | c143e840da1ea6eaabd40a3f468b5940c28eb1ba | 1b917aae16c11ccaa7abbf73cffed155e13189ba | refs/heads/master | 2020-03-16T20:13:15.172940 | 2018-05-10T20:45:16 | 2018-05-10T20:45:16 | 132,950,898 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py |
# Constant type mappings
C_TYPE_MAP = {
'number': 'int',
'string': 'char*'
}
def command_to_op(command, scope):
if command.data == 'declaration':
return inst_declr(command, scope)
elif command.data == 'print':
return inst_print(command, scope)
elif command.data == 'if'... | [
"anthonyshaw@apache.org"
] | anthonyshaw@apache.org |
be1b589b291552afbf7f6650913720c97fa3112d | 5cf745769b0f891aca2198ace8935dce5221ec48 | /anima/rez_packages/anima/package.py | 8e6f0fba429deb9cf7394b24bafabee473463bb4 | [
"MIT"
] | permissive | jangcode/anima | d827672e45275f52727d66cd915bc5c2f3a0ede6 | 59ddfe76004626fc8142918b27d15e7759372854 | refs/heads/master | 2022-05-31T14:40:41.703689 | 2022-05-12T00:30:36 | 2022-05-12T00:30:36 | 94,961,144 | 0 | 0 | null | 2017-06-21T04:00:09 | 2017-06-21T04:00:09 | null | UTF-8 | Python | false | false | 3,945 | py | # -*- coding: utf-8 -*-
name = "anima"
version = "0.7.0"
author = [
"Erkan Ozgur Yilmaz",
]
uuid = "7ac53aa7e70c4014a5695f476f992d02"
description = "Anima Pipeline Package"
requires = [
"stalker",
]
variants = [
["blender"],
["fusion"],
["houdini"],
["maya"],
]
build_command = "python {r... | [
"eoyilmaz@gmail.com"
] | eoyilmaz@gmail.com |
285e9e79162fada45fc3b2ac7470d85e7c2fa9fb | ace81383f30da25c4be54fd7c1faaf451a95eda3 | /helloflask/__init__.py | bc79292d9a9248840e307fe4c0870c68d947eea8 | [] | no_license | k156/pyweb | 5d335362f12f87830877dd3efa37061552db2b10 | b13d1115e9bf97cbf019db5d90b3a183abdc46cb | refs/heads/master | 2020-04-21T16:14:10.909385 | 2019-02-15T09:13:18 | 2019-02-15T09:13:18 | 169,694,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | from flask import Flask, g, Response, make_response, request, render_template, Markup
from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta
from helloflask.templates.init_db import init_database, db_session
app = Flask(__name__)
app.debug = True
@app.route('/res1')
def re... | [
"jm_91@live.co.kr"
] | jm_91@live.co.kr |
292abc42478e1d146ac5b10b735ca03ba0837da1 | a07694aab30198bc11965d0dae11471b0a004957 | /phases/Normalisations.py | c44e8d10bd5a9ac340396b6912ae01f1b4162c25 | [] | no_license | rcrowther/Gravel | 6fccf500f680ea70371c4d889d6f2930c1a7727e | 86f22a2c1d561983020949cf5dc75cfb3004919b | refs/heads/master | 2021-08-25T06:21:34.317932 | 2021-06-11T19:14:24 | 2021-06-11T19:14:24 | 135,619,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from Phases import Phase
'''
Disambiguation.
Split non-equivalent but same-written expressions.
e.g.
'''
'''
Normalization.
Unify equivalent but differently-written expressions.
e.g in expressions, i+j+k and (i+j)+k, or reduction of types.
'''
'''
Analysis.
Derive new material from structures.
e.g. printers, st... | [
"rw.crowther@gmail.com"
] | rw.crowther@gmail.com |
22d9f6816cb9b4bbc46a9876e6551a6e5d583af2 | bce4b8ab73e93212d8f1c3f1cc4d1cfd1a76b7f5 | /Controller/ControllerNode.py | 058566a6a6180eec74ed76e1ca0f9152feea9295 | [] | no_license | JackHaoyingZhou/ambf_walker | 273c759843dec7245f4414d2e379670f421d5549 | 4f57d33d724aab8b09ef71e9cf24be9c4803d786 | refs/heads/master | 2023-01-09T04:54:43.695301 | 2020-10-31T17:44:47 | 2020-10-31T17:44:47 | 299,622,210 | 0 | 0 | null | 2020-09-29T13:15:02 | 2020-09-29T13:15:01 | null | UTF-8 | Python | false | false | 3,171 | py | import rospy
from threading import Thread, Lock
from sensor_msgs.msg import JointState
from ambf_walker.msg import DesiredJoints
import numpy as np
from std_msgs.msg import Float32MultiArray
from . import DynController
from ambf_walker.srv import DesiredJointsCmd, DesiredJointsCmdResponse
class ControllerNode(object)... | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
962aba92b903b38bd58bae7c43bd0443dce4b8f8 | 6a1975a11de163ce0e6a5f001df41758bea3686b | /213. House Robber II/Solution_动态规划_看起来更舒服.py | 3e1c671b197fd0b2ed449fa3e830791f800dc42d | [] | no_license | Inpurple/Leetcode | 7f08e0e500d37913e9244f08ea8f603b3fc1ce88 | df2bcca72fd303100dbcd73d1dfae44467abbb44 | refs/heads/master | 2020-05-20T02:17:08.430557 | 2019-09-22T07:51:28 | 2019-09-22T07:51:28 | 185,327,908 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | class Solution(object):
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return 0
if len(nums)==1:
return nums[0]
return max(self.rob_line(nums[1:len(nums)]),self.rob_line(nums[0:len(nums)-1]... | [
"noreply@github.com"
] | Inpurple.noreply@github.com |
812ea692f4427a1fdc0ff11da998a57f09a5694c | 74ca764a5bd6480513b9a718075caa0df2ef11c8 | /Disp/wsgi.py | 65d09962256986781dad75137761c391690acd8e | [] | no_license | kodiers/Disp | 28c1a4a852350515061a5736ca631eeabab97f51 | 607145c7ce95cf928ca8e173aecac00ca3fffcc9 | refs/heads/master | 2016-09-06T03:40:42.496205 | 2015-08-19T14:43:33 | 2015-08-19T14:43:33 | 24,915,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for Disp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Disp.settings")
from django.core.wsgi im... | [
"kodiers@gmail.com"
] | kodiers@gmail.com |
6bbfb4344fbbeca44f51d0713932c0ed3bee05de | 9059d9cbad4188ed2980f551151b9678ffb68b44 | /mycode/4_list/list_test.py | ff023ba8b350cd9735912f1452a074196bbd5599 | [] | no_license | mhee4321/python_basic | ad0e64fa21ecfab231a6627ba6abeea82d725690 | 86031975a9121efe5785e83f663255a7b4e4ba77 | refs/heads/master | 2023-02-11T20:31:54.353219 | 2021-01-07T05:44:31 | 2021-01-07T05:44:31 | 326,850,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | '''
list 타입을 선언하고 list에 eliment 추가, 삭제
'''
num_list = [60, 10, 30, 70, 80]
num_list2 = [1, 2, 3, 4, 5]
print(num_list == num_list2)
# 리스트의 메모리 저장 방식
print(num_list, num_list2)
num_list2 = num_list
print(num_list, num_list2)
num_list.sort()
print(num_list, num_list2)
num_list2 = [1, 2, 3, 4, 5]
num_list.sort()
print(nu... | [
"nannanru@gmail.com"
] | nannanru@gmail.com |
5eeb57dd6890bdd8e465bfdd7d2c94bbfd07cb3c | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /0207_Course_Schedule/try_4.py | a9b5068b2633548be5a7b12aaf33918bef63b19f | [] | no_license | novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | Python | UTF-8 | Python | false | false | 1,133 | py | class Node:
def __init__(self):
self.parent = 0
self.children = []
class Solution:
def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:
# Topological sort
graph = {}
all_edges = 0
# build tree
for course in range(numCours... | [
"eric_shih@trendmicro.com"
] | eric_shih@trendmicro.com |
e33fde269b1493358997d8ddf7a2c85aea79c603 | e94c7bd97d8b8b3b2945d357521bd346e66d5d75 | /test/lmp/dset/_ch_poem/test_signature.py | 9c6484634b2c102aa07755d00dd3dc4bfbfb8331 | [
"Beerware"
] | permissive | ProFatXuanAll/language-model-playground | 4d34eacdc9536c57746d6325d71ebad0d329080e | ec4442a0cee988a4412fb90b757c87749b70282b | refs/heads/main | 2023-02-19T16:21:06.926421 | 2022-09-25T13:35:01 | 2022-09-25T13:35:01 | 202,471,099 | 11 | 26 | NOASSERTION | 2023-02-16T06:39:40 | 2019-08-15T03:57:23 | Python | UTF-8 | Python | false | false | 2,740 | py | """Test :py:mod:`lmp.dset._ch_poem` signatures."""
import inspect
from inspect import Parameter, Signature
from typing import get_type_hints
import lmp.dset._ch_poem
from lmp.dset._base import BaseDset
def test_module_attribute() -> None:
"""Ensure module attributes' signatures."""
assert hasattr(lmp.dset._ch_p... | [
"ProFatXuanAll@gmail.com"
] | ProFatXuanAll@gmail.com |
6fe2415266b0a6c2fd58f944bb358cabb18d25ef | 84d3cc3d2e577d19b471b96f1ea994c069665614 | /metapub/eutils_common.py | c88a1cec29073ad54c764b0c75bf1beb26dd45a2 | [
"Apache-2.0"
] | permissive | jvansan/metapub | 8a5157ff9d95151690c551fbddcebfec3f5cd93e | d5e7a2401c1598b1e2662d2f91491296e605281d | refs/heads/master | 2020-11-25T02:51:57.537383 | 2020-01-09T22:24:39 | 2020-01-09T22:24:39 | 228,463,348 | 0 | 0 | Apache-2.0 | 2019-12-16T19:48:54 | 2019-12-16T19:48:54 | null | UTF-8 | Python | false | false | 581 | py | import os, logging
from .config import PKGNAME, API_KEY
from .exceptions import MetaPubError
# == suppress the chatter of eutils and requests == #
logging.getLogger('eutils').setLevel(logging.ERROR)
logging.getLogger('requests').setLevel(logging.ERROR)
# ==
def get_eutils_client(cache_path):
"""
:param cache... | [
"naomi@nthmost.com"
] | naomi@nthmost.com |
adbec8d6ac5b79b4a87912943845d9c83466fb98 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /azure-mgmt-logic/azure/mgmt/logic/models/x12_one_way_agreement.py | 3aefcf8ff32eb86ba3394290ef5ea5bbf005d658 | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 1,728 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.