blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcfd5ed5487a5b259ecaf21296742d162dd16608 | 404728244681a773f55be7f7b0c4933f439f3106 | /walis/scheduler/jobs/process_order.py | e8040060d8b9fb75bf8feeb46cd5c1ad21b48f1d | [] | no_license | limingjin10/walis | c4e22db27d964cefa068883edf979cabfedd74d6 | 198a4e94992c1790b7a9f2cd34b1686fefc87845 | refs/heads/master | 2021-05-29T04:50:34.091849 | 2015-06-15T14:19:23 | 2015-06-15T14:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | #!/usr/bin/env python2
# coding=utf8
from __future__ import absolute_import, division, print_function
import logging
from walis.service.order.auto_process import auto_process_order
from walis.core.async import (
BSTALK_TUBES,
enqueue,
)
from walis.scheduler.jobs import job_deco
from walis.thirdparty import (
... | [
"shaofeirong2006@126.com"
] | shaofeirong2006@126.com |
b0938f59bb208405d560abded750024908b051ab | 7c91ff850f81bf8759b055971d592a71ef025732 | /examples/window/overlay_window.py | 959d78bc5bc79d6d4733fc1e92ce4218fafa028b | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | pyglet/pyglet | d9da2cccd52a6bc5c09548536876602f6e1412f0 | 094c638f0529fecab4e74556487b92453a78753c | refs/heads/master | 2023-08-17T15:08:09.192350 | 2023-08-17T01:51:50 | 2023-08-17T01:51:50 | 191,043,601 | 1,687 | 427 | BSD-3-Clause | 2023-09-14T08:51:31 | 2019-06-09T18:55:00 | Python | UTF-8 | Python | false | false | 436 | py | """Demonstrates creation of a transparent overlay window in pyglet
"""
import pyglet
from pyglet.graphics import Batch
from pyglet.window import Window
batch = Batch()
window = Window(500, 500, style=Window.WINDOW_STYLE_OVERLAY)
window.set_caption("Overlay Window")
circle = pyglet.shapes.Circle(250, 250, 100, colo... | [
"benmoran@protonmail.com"
] | benmoran@protonmail.com |
3a49fe4f07307f00421a1ac617cf0cb0e55adadd | 0b141bc27bae25f5e7ec3fcca63e9e5b95ebcc08 | /setup.py | 72a8d25d70b5767c4a19c47a2e73c8e12b62555c | [
"BSD-3-Clause"
] | permissive | Nixox/gsee | 6c9734eb4f0e2cea14db105831c0ec9fb2890c40 | 2a56320982e65a79750d420969ddc1ebb0774ef1 | refs/heads/master | 2021-04-27T21:38:28.747507 | 2017-11-23T13:12:44 | 2017-11-23T13:12:44 | 122,403,960 | 1 | 0 | null | 2018-02-21T22:51:53 | 2018-02-21T22:51:53 | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
# Sets the __version__ variable
exec(open('gsee/_version.py').read())
setup(
name='gsee',
version=__version__,
author='Stefan Pfenninger',
author_email='stefan@pfenninger.org',
description='gsee -- global solar energy estimator',
... | [
"stefan@pfenninger.org"
] | stefan@pfenninger.org |
f7a620bc5f668ed0a4e07f22aad86033fc9100e2 | 34f0158e8fb93450be9915f9cb8a7a810e027445 | /rtda/thread.py | bd0ca888349340ca7bd48dafa76f863c46e2fe60 | [] | no_license | imsilence/pyjvm | 5170febf50273da74e207fa2f6a26ad27fa13540 | 79d33363370f355105b0ba706a53980d46ae2574 | refs/heads/master | 2020-04-07T15:46:00.221087 | 2018-12-30T11:06:05 | 2018-12-30T11:06:05 | 158,500,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #encoding: utf-8
from .stack import Stack
from .frame import Frame
class Thread(object):
def __init__(self):
self.__pc = 0
self.__stack = Stack()
@property
def pc(self):
return self.__pc
@pc.setter
def pc(self, pc):
self.__pc = pc
@property
def stack(... | [
"imsilence@pm.me"
] | imsilence@pm.me |
314fc7a8ce85fa816f2a1933d0b3e39d3b5907c3 | cf2d633d9a8171da6448fbc7db4a294bd7bfe8a7 | /seeVcam/answers/tests/test_answer_views.py | fd6eb60c62383a55fe38d8898d18e0c8c0db0ada | [] | no_license | giuse88/seevcam | 7d63f3799421192b0320e9c2f685d12e45d9cca8 | e060f294fccc49e289dd5fdcd1cc85ab53e8b679 | refs/heads/master | 2021-01-13T16:31:49.103000 | 2015-06-09T21:28:06 | 2015-06-09T21:28:06 | 20,656,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,806 | py | from rest_framework import status
from rest_framework.test import APITestCase, APIClient
from answers.models import Answer
from common.helpers.test_helper import create_company, create_user, create_catalogue, create_question, \
create_job_position, create_candidate, create_interview, create_uploaded_file, create_... | [
"giuse88@gmail.com"
] | giuse88@gmail.com |
40a93c8ffe3c7937bc908219c5b9c0227787c602 | 27bfd3bc212c3451e454ca9089d2e13625ce04e7 | /divide-and-conquer/power_brute_force.py | 5ee65eb8a829336813846168795719a56db17e54 | [] | no_license | RobRcx/algorithm-design-techniques | de6e33891ca9ced725ebe2c24cbc160bd274b232 | 7f3526fe7d80bbb525daf58ac8f536eb4e8695ec | refs/heads/master | 2021-06-12T22:01:41.420464 | 2021-03-21T10:24:40 | 2021-03-21T10:24:40 | 164,210,600 | 0 | 0 | null | 2019-01-05T11:55:25 | 2019-01-05T11:55:24 | null | UTF-8 | Python | false | false | 157 | py | def power_brute_force(a, n):
"""linear power algorithm"""
x = a
for i in range(1, n):
x *= a
return x
print power_brute_force(2, 3)
| [
"noreply@github.com"
] | RobRcx.noreply@github.com |
0fe3924daa4823d3ccea927c55822e2678b7cc93 | 057925056b7ccb946902d14f44a4ce371cfaae52 | /pyswagger/contrib/client/flask.py | 4c958405d1e4eaa75da5575eb476eb80c67d1288 | [
"MIT"
] | permissive | neolf/pyswagger | 6bfa52da42e4ad0dc502cf2750b69782c3adf48f | d849e9639cc3cec6b4aa07e6256e670482766914 | refs/heads/master | 2021-01-21T14:56:45.659875 | 2017-06-25T01:01:48 | 2017-06-25T01:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | from __future__ import absolute_import
from ...core import BaseClient
from werkzeug.datastructures import FileStorage
import six
class FlaskTestClient(BaseClient):
""" Flask Test Client
"""
__schemes__ = set(['http', 'https'])
def __init__(self, client, auth=None):
""" contructor
:p... | [
"missionaryliao@gmail.com"
] | missionaryliao@gmail.com |
029be8472b06e6f10580e97f9d0abba67044fa61 | 9f75e8d2cc4c66464c705b5bae7df86037f85a89 | /leetcode368 Largest Divisible Subset.py | 4a31cbea73f8ad31eed024eafd5f902973b98bf8 | [] | no_license | whglamrock/leetcode_series | 537fe1a7bdbb79c1fd1ec552a9e1bf6dc9752bed | 76d767ec001649b2df07aac211ac4b43b415ebdd | refs/heads/master | 2023-07-09T11:17:26.194170 | 2023-06-30T19:46:55 | 2023-06-30T19:46:55 | 84,011,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py |
# in the following solution, 'compatible' means: after adding the new curNum to the previous subsets,
# they are still inter-divisible. If can't read the reference, rewrite every i & j for loop for our
# test case to understand.
from copy import copy
# P.S.: How could the copied list remain when the original list ch... | [
"how@amazon.com"
] | how@amazon.com |
9095ccb7f048d11501b9d14ab02eec37cdf46dae | 67cf6d0e91253107a7d3a3dd879a31dcc1f5b36f | /0x03-python-data_structures/7-add_tuple.py | 46619e53bf7160670e0beebfae19d82496b439dc | [] | no_license | nzomobrian/holbertonschool-higher_level_programming | dd1646a2b8ccf21ecf41c39efbe8f7dac2771065 | 908ec393c1a3591dde500c10e8eb9c73e35d57f8 | refs/heads/master | 2023-03-19T00:16:15.893949 | 2020-05-15T00:55:06 | 2020-05-15T00:55:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | #!/usr/bin/python3
def add_tuple(tuple_a=(), tuple_b=()):
alen = len(tuple_a)
blen = len(tuple_b)
f = (tuple_a[0] if alen >= 1 else 0) + (tuple_b[0] if blen >= 1 else 0)
s = (tuple_a[1] if alen >= 2 else 0) + (tuple_b[1] if blen >= 2 else 0)
ret = (f, s)
return ret
| [
"keener4christ@gmail.com"
] | keener4christ@gmail.com |
eca4a48689875dcd62e5f2f0f2ee43634f1b25e9 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_proximityplacementgroup_info.py | a6653623d1e62a8b62de12462bc263508a8c24b3 | [] | 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 | 19,353 | 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 |
8880a64d8eab8b5560ae137d38414a3625cc30f1 | 50db207e1b63d7e6c2ec0e05129456e134ae7e19 | /awesome_website/settings.py | 09625ea7f5016af6fe73d35ed4e14c6c76010b19 | [] | no_license | justega247/django-user-management | 169b5cf3a2f1696517fb1f3285080942225f7024 | 4afc0659c2ce766ab9a2dc70c41a1b632a4c63f4 | refs/heads/main | 2023-01-05T20:59:33.425416 | 2020-10-29T15:47:55 | 2020-10-29T15:47:55 | 308,375,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | """
Django settings for awesome_website project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from... | [
"okeremeta.tega@gmail.com"
] | okeremeta.tega@gmail.com |
94003c96c324b1e1251067477606fbb3f9e511d4 | 92993cff825da80a8ff601572a0c52b0b7d3cbde | /algorithms/Svm/ADMM/L2/ADMM_L2_m87.py | 9181694849ea56fba4f8985f520721575131be60 | [] | no_license | yingzhuoy/MRs-of-linear-models | 06e8b1f84b08c6aa77553813824cf35c1806c5a7 | c3df8299e039a12613f2022b370b8c3e9c2dd822 | refs/heads/master | 2023-04-07T23:09:37.736952 | 2021-04-04T05:33:37 | 2021-04-04T05:33:37 | 265,124,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py | import numpy as np
from numpy import linalg
#import cvxopt
#from cvxopt import matrix,solvers
from algorithms.clf import Clf
"""
Preconditioned Conjugate Gradient Method
"""
def precond(M, r):
q = M * r
return q
def inner_prod(A, B):
A = np.matrix(A)
B = np.matrix(B)
return np.dot(A.reshape(-1,1)... | [
"yingzhuoy@qq.com"
] | yingzhuoy@qq.com |
a98be8dc6596dad9ef9cdde6fc97ae9cee6d1c94 | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /Argorithm/python/DataStructure/SegmentTree/PointUpdateRangeMin.py | a90c14bf8b76377ccab9e8f8b4a3992fe77a6fcb | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | class SegmentTree:
def __init__(self, N, e=(1<<31)):
self.N = 2**(N-1).bit_length()
self.e = e
self.data = [self.e]*(2*self.N-1)
def op(self, a, b):
return min(a, b)
# O(N)で初期化
def compose(self, A):
for k, a in enumerate(A):
self.data[k+self.... | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
d317455d7cc60018863e50409b3f06235f56eb43 | 9fd4412c3b04cf0febe64ebd202caac73c41c1d4 | /code/mapperindext.py | 91871a06cdec5640a4255eb8c25e0181494cfb48 | [] | no_license | RuoyuZhang/IntroHadoop | 99083f9f1203cf45539381aca69dd7a2611bed62 | b659d3281fc3f82437a8168b6b7830fb2ed1f417 | refs/heads/master | 2021-01-10T15:32:05.169309 | 2016-01-02T00:29:31 | 2016-01-02T00:29:31 | 48,893,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!/usr/bin/python
import sys
import re
for line in sys.stdin:
data = line.strip()
#nodes = re.split('[\s\.,!?:;"\(\)<>\[\]#\$\=-\/]',data)
nodes = re.split('[\s+\.,!\?:;\"\(\)<>\[\]#\$\=\-\/]',data)
while '' in nodes:
nodes.remove('')
#print nodes
# if len(data) == 10:
arr_appear = dict((a... | [
"training@localhost.localdomain"
] | training@localhost.localdomain |
726e674e6128f31f84502ffe550134ee6b55c988 | 7aa58030cd72c9f9c7906042e6c89693d373f065 | /scripts/run_on_swarming_bots/delete_cached_repos.py | 7a2bc03ecc7da9bedd044dc1227b5bf3ce9a8de5 | [
"BSD-3-Clause"
] | permissive | google/skia-buildbot | 991162a936819f2be95ae9dbc86bd7a7fc649e6a | 9f1fad0fdc31563f6b43ec469b0550f2eeece804 | refs/heads/main | 2023-08-29T07:36:11.102029 | 2023-08-29T04:01:01 | 2023-08-29T04:15:54 | 15,773,235 | 131 | 63 | BSD-3-Clause | 2023-07-19T00:21:42 | 2014-01-09T17:10:17 | Go | UTF-8 | Python | false | false | 3,975 | py | #!/usr/bin/env python
#
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Delete cached repos on a Swarming bot."""
from __future__ import print_function
import errno
import os
import shutil
import subprocess
import sys
import tim... | [
"skia-commit-bot@chromium.org"
] | skia-commit-bot@chromium.org |
8d5af518ec7e108cbad6f152fa660bc3f6722dfa | 943a46fc4305151502d0af2e45a7f052f4504ab4 | /vehicle_part/models/fleet_master.py | ddf338be8afb09184c6ccfa5d4a08ec093ab55ea | [] | no_license | auxsis/careone | bb2c7948b1acfbe09cdfd032c13b5de37d0e6cf1 | c1baf4023601119b5be816a9e7a7b6ffe8312ce1 | refs/heads/master | 2023-01-20T12:33:39.661090 | 2020-11-12T12:24:28 | 2020-11-12T12:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from odoo import models, fields
class FleetVehicle(models.Model):
_inherit = 'fleet.vehicle'
_description = 'Vehicle'
color = fields.Many2one('fleet.color',string='color')
model_year = fields.Many2one('fleet.model',string='Model Year', help='Year of the model')
class FleetColor(models.Model):
_name = 'fleet.c... | [
"raghupathy@emxcelsolutions.com"
] | raghupathy@emxcelsolutions.com |
9e74bf1218a507dfae848b1f0ea89b32256c1be7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_madders.py | cb00fd487a941a0edf08e49de9523420141ae05e | [
"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 | 248 | py |
from xai.brain.wordbase.adjectives._madder import _MADDER
#calss header
class _MADDERS(_MADDER, ):
def __init__(self,):
_MADDER.__init__(self)
self.name = "MADDERS"
self.specie = 'adjectives'
self.basic = "madder"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fa6f7c2ac9837ad574d19dd8ce9d1cd0b94b2c0e | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /neural_guided_symbolic_regression/models/networks.py | b05e5790851035f102a0e36eef846fe54d6af504 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 6,004 | py | # coding=utf-8
# Copyright 2023 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 |
f7667bd71976bf6497fab4cb09d9377387bec38a | 05243216d13fca0db96ffd5b27b264bfe22e6e54 | /example/test/core/camera/dof/focus/render.py | 8a8a2d991b45809f0ca064acdccce329866f91a7 | [
"MIT-0"
] | permissive | RaphaelK12/IceRay | 6c843fb1ed4951b721ddf6c4074c6ba03a2a82e4 | fdc013b7afe84127ba8972ca187b89668878e92a | refs/heads/master | 2022-11-24T23:55:10.151494 | 2020-07-16T19:00:22 | 2020-08-04T14:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | import IceRayCpp
import IceRayPy
import sys
print( '0 - OBJECT' )
object = IceRayCpp.CoreObject()
sphere3 = IceRayCpp.GeometrySimpleSphere( IceRayCpp.MathTypeCoord3D().load(0,2,0), 1 )
object.geometry( sphere3 )
surface = IceRayCpp.MaterialSurface()
a1 = IceRayCpp.MaterialPatternColorConstant( IceRayC... | [
"dmilos@gmail.com"
] | dmilos@gmail.com |
a25f419611f9824713aecbafcf2149c6726526bc | bdd204f336dbb938f3f087c674790ea3b143b9c9 | /part2/filename.py | 14a33b5be435a342c3bf3f98aa1b5aebddf03402 | [] | no_license | tianhaomin/radio-software-module | dff4f4e4fafb23e7fe0d35b95b32dc84da3e17a2 | 60b52e13cdfaf23acb715b245ecd999c7fa28e05 | refs/heads/master | 2021-09-05T21:33:49.352269 | 2018-01-31T05:39:22 | 2018-01-31T05:39:22 | 118,447,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | import datetime
import os
import pandas
import pymysql as mdb
def read_file(file):
path = "E://"+file
retain_time = 0
for filename in os.listdir(path):
if filename[-5] == 's':
retain_time = int(filename[27:-5])
break
file1 = file[:10]+' '+file[11:13]+':'+file[1... | [
"noreply@github.com"
] | tianhaomin.noreply@github.com |
4cba79bb7a58239d5375a76977b809929a0823aa | 6bc6914ca53922f6f59e10e7d9c2b235acd7601b | /Youtube/back2back/recursion_dynammic_prog/all_ip_addresses.py | 55048946cd7e1e840f142f2cca46449e47e536ce | [] | no_license | chirag111222/Daily_Coding_Problems | 8d97d27057a995ae63478c634098a2a5bb746548 | 1a9e26dab87938c4facfa1db0f5844be1770ec74 | refs/heads/master | 2022-04-24T19:50:31.883587 | 2020-04-26T11:53:08 | 2020-04-26T11:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py |
s = '25525511135'
def all_ip_addresses(ip:str) -> list:
return all_ip_addresses('', 0, [], ip)
def all_ip_addresses(ip:str, n:int, sols:list, target) -> list:
# Base Cases
if n == 4:
return len()
| [
"pabloruizruiz10@gmail.com"
] | pabloruizruiz10@gmail.com |
ac213044d11ad736a82f2019ee287d616e1756ad | f02485de5a101f3b69a45b2c4e71bd950ee55eba | /ClassUtil/上下文管理器/上下文管理器_test.py | 9f1c508e2024edff1ca442b02d90e62cf3486f63 | [] | no_license | newjokker/PyUtil | ef4266b0ca32157f9de6e2cac1b1a10647190d99 | 32e64be10a6cd2856850f6720d70b4c6e7033f4e | refs/heads/master | 2020-11-28T00:19:02.073391 | 2019-12-23T02:07:40 | 2019-12-23T02:07:40 | 229,654,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | # -*- coding: utf-8 -*-
# -*- author: jokker -*-
"""
自定义一个上下文管理器,模拟with文件操作
"""
class MyOpen(object):
def __init__(self, path, mode):
# 记录要操作的文件路径和模式
self.__path = path
self.__mode = mode
def __enter__(self):
print('代码执行到了__enter__......')
# 打开文件
self.__handl... | [
"18761609908@163.com"
] | 18761609908@163.com |
2716763f7add8460c448a083081996d93fed7995 | a8d1d48de47caccda2d5fe0093f2b072d7b58c32 | /coding-exercise/CCF/dfsExample.py | 14e7353c6c0ed87f476dca49714020ef97deb12b | [] | no_license | Devinwon/master | d5f4ca111ac61ab4864272b3220f6a35e727e7ba | fd0515f0db60a0caa900b1e0d969f2d7447b6ab6 | refs/heads/master | 2021-06-22T22:16:59.633514 | 2019-04-30T10:00:01 | 2019-04-30T10:00:01 | 91,666,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | """
深度优先搜索
模拟数字1-9的排列情况
"""
n=2
#初始化
book=[0 for _ in range(n)] #记录数字使用情况
ret=[0 for _ in range(n)] #记录结果
def dfs(step):
if step==n+1:
# 表示所有的数字都已经用完了
# 打印排列结果
for i in range(n):
print(ret[i],end='')
print()
return
for i in range(n):
if book[i]==0:
ret[step-1]= i+1
book[i]=1
dfs(step+1)
... | [
"917570905@qq.com"
] | 917570905@qq.com |
e245eadb68b71292f821deb89cd3946a2573b968 | 32c2f8d7f2caf4af73eb31b7aec9097e1c6f57ad | /src/1254-Number-of-Closed-Islands/1254.py | 0b406d4f0466786e4b56ee27ebd74a01d1aed434 | [] | no_license | anmg/Leetcode | fc3e1cb0dbe9c2a3572b75dd290becd6d4d1135d | 951d0cff9eb7a7a66d80558cd7e3962a87903cd0 | refs/heads/master | 2021-03-04T23:11:39.718710 | 2020-03-09T13:33:38 | 2020-03-09T13:33:38 | 246,074,629 | 1 | 0 | null | 2020-03-09T15:37:38 | 2020-03-09T15:37:37 | null | UTF-8 | Python | false | false | 961 | py | class Solution:
def closedIsland(self, g: List[List[int]]) -> int:
dire = [[0, 1], [0, -1], [1, 0], [-1, 0]]
r, c = len(g), len(g[0])
def check(x, y):
if x < 0 or x >= r or y < 0 or y >= c:
return 0
return 1
def dfs(x, y... | [
"luliyucoordinate@outlook.com"
] | luliyucoordinate@outlook.com |
ad1b8003741bea4c6cd98f1456bd726b07f86651 | b6fa182321756b891b84958e2b2c01e63b3f88b2 | /stepik/identical_neighbors.py | 8c6d927afc9cdd3d615d2fef5c722aa02df08336 | [] | no_license | carden-code/python | 872da0dff5466070153cf945c428f1bc8309ea2b | 64e4df0d9893255ad362a904bb5d9677a383591c | refs/heads/master | 2023-07-05T05:14:16.479392 | 2021-08-22T21:27:36 | 2021-08-22T21:27:36 | 305,476,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | string = input()
count = 0
for c in range(len(string)):
if c == len(string) - 1:
break
if string[c] == string[c + 1]:
count += 1
if c == len(string) - 1:
break
print(count)
| [
"carden.ruby@gmail.com"
] | carden.ruby@gmail.com |
2dfa8cdb54f827b6edd30729b3f87985fd889bc4 | c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105 | /vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/stdlib/2/compileall.pyi | 251ea57c8e12e2ccf99428dc182282e9a7ac3bcd | [
"MIT",
"Apache-2.0"
] | permissive | ryangniadek/.dotfiles | ddf52cece49c33664b56f01b17d476cf0f1fafb1 | be272baf6fb7d7cd4f4db1f6812b710196511ffe | refs/heads/master | 2021-01-14T07:43:12.516127 | 2020-03-22T20:27:22 | 2020-03-22T20:27:22 | 242,632,623 | 0 | 0 | MIT | 2020-09-12T17:28:01 | 2020-02-24T02:50:06 | Python | UTF-8 | Python | false | false | 621 | pyi | # Stubs for compileall (Python 2)
from typing import Optional, Pattern, Union
_Path = Union[str, bytes]
# rx can be any object with a 'search' method; once we have Protocols we can change the type
def compile_dir(dir: _Path, maxlevels: int = ..., ddir: Optional[_Path] = ..., force: bool = ..., rx: Optional[Pa... | [
"ryan@gniadek.net"
] | ryan@gniadek.net |
da0b4fbe6369003c649b9227420e6e9fd8c94876 | 6a95b330e1beec08b917ff45eccfd6be3fd4629f | /kubernetes/client/models/v1_config_map_env_source.py | 11cc87951c6630b62fe4fa3df8856db7078d0ffa | [
"Apache-2.0"
] | permissive | TokkoLabs/client-python | f4a83d6540e64861b59e322c951380a670578d7f | f1ad9c6889105d8510472606c98f8d3807f82020 | refs/heads/master | 2023-07-14T01:36:46.152341 | 2017-12-21T21:32:11 | 2017-12-21T21:32:11 | 115,042,671 | 0 | 0 | Apache-2.0 | 2021-08-06T03:29:17 | 2017-12-21T20:05:15 | Python | UTF-8 | Python | false | false | 4,011 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
34487b462ed4c450fa9cd419cc37a99ec5cbe77e | ec390da9ff15cb2114e16742b6cad780732913b5 | /iter1/199.py | 768cc33e8e7476cde442c6d83e4ce987c516e849 | [] | no_license | xiaomi388/LeetCode | 6107487537eeb1ac6128955cd30868985d1509ea | 877d0fbccc684e4fd7fee2aca63d2656f71a0241 | refs/heads/master | 2021-09-26T19:52:34.207507 | 2021-09-17T20:32:53 | 2021-09-17T20:32:53 | 241,884,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# 1 <---
# / \
# 2 3 <---
# \ \
# 5 4 <---
# /
# 6
#
# 1, 3, 4, 6
class Solution:
def rightSideView(self,... | [
"xiaomi388@gmail.com"
] | xiaomi388@gmail.com |
9399fcc9acaa19968c421604f0e109fa2e79012c | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/safezone/DistributedFishingSpot.py | 32a65e5b7128f1fd1d846b2ab2ac2fcf68344573 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 43,270 | py | from panda3d.core import *
from direct.interval.IntervalGlobal import *
from direct.gui.DirectGui import *
from direct.directtools.DirectGeometry import LineNodePath
from direct.distributed import DistributedObject
from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import ToontownGlobals
from too... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
e8572f08a96ce3ff2312540d8f1c5525fa73d002 | 94dc06322cac0ea9da6207c152b0b7211804a9fa | /cocos/numerics/numerical_package_bundle.py | 7c8c668ff44c95358e08569e2cbb98eb76e7d169 | [
"MIT"
] | permissive | michaelnowotny/cocos | 667d2c0d966debf81869a8121dd3556d1cbeceb1 | 3c34940d7d9eb8592a97788a5df84b8d472f2928 | refs/heads/master | 2021-09-10T06:10:49.447188 | 2021-09-01T15:33:11 | 2021-09-01T15:33:11 | 176,014,832 | 104 | 5 | MIT | 2020-11-05T11:30:01 | 2019-03-16T19:20:15 | Python | UTF-8 | Python | false | false | 3,648 | py | from abc import ABC, abstractmethod
from types import ModuleType
import typing as tp
class NumericalPackageBundle(ABC):
@classmethod
@abstractmethod
def is_installed(cls) -> bool:
pass
@classmethod
@abstractmethod
def label(cls) -> str:
pass
@classmethod
@abstractmeth... | [
"nowotnym@gmail.com"
] | nowotnym@gmail.com |
69d2d19310d7bc247032cd39c06c3d4cc487724c | 4338e0cdf2e31c6c7083d1b76815e3149d46bd55 | /fae2/subscriptions/migrations/0014_auto_20160907_0907.py | 747f3383ab0c2fe5f54b9af278ab094762ccadee | [
"Apache-2.0"
] | permissive | gemgin/fae2 | 52e92cb0682611999426bfe451755fd3c7fbb317 | 6f144674de4c2e66c18e3b1bd97d2add48d4b21e | refs/heads/master | 2020-09-25T14:40:26.837610 | 2019-10-31T20:08:13 | 2019-10-31T20:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-09-07 14:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('subscriptions', '0013_auto_20160830_1956'),
]
operations = [
migrations.AlterF... | [
"jongund@illinois.edu"
] | jongund@illinois.edu |
c6c5013cddc1a97b02caed6969786a093bc9495c | c2d436fecd486a412eae5171882110e324b2fc1c | /chap1/08.py | 06c6792b86de5ed0997009120b7e668a49648027 | [] | no_license | uenewsar/nlp100fungos | 0150bacf835f3734dd76a25b079ec6c61efb4d83 | 7f745abb97c3129818ec6cf5f69abca15c50e451 | refs/heads/master | 2020-04-14T23:47:20.482910 | 2019-01-12T13:32:09 | 2019-01-12T13:32:36 | 164,216,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # -*- coding: utf-8 -*-
# 08. 暗号文
# 与えられた文字列の各文字を,以下の仕様で変換する関数cipherを実装せよ.
# 英小文字ならば(219 - 文字コード)の文字に置換
# その他の文字はそのまま出力
# この関数を用い,英語のメッセージを暗号化・復号化せよ.
import re
def cipher(inp):
out = []
for e in list(inp):
if re.search('^[a-z]+$', e):
out.append(chr(219-ord(e)))
else:
... | [
"none@none"
] | none@none |
c1aab363b353b436d6fe83ca91244748c77895b0 | d04871fc1366f0ca5d2af1060b7eb798319d76ac | /authentication/serializers.py | 7c61fa378063722ae05b6e4c2310d065ca0f39aa | [] | no_license | Apex1000/APPLICATION-API | 7d147227ff13491ee5719555024b34791619a4bf | 920f967d23abd304fd4a392f908b80ca9100b4b3 | refs/heads/main | 2023-02-18T08:50:53.121025 | 2021-01-15T06:06:02 | 2021-01-15T06:06:02 | 323,076,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | from djoser.serializers import UserCreateSerializer, UserSerializer
from rest_framework import serializers
from .models import *
from django.contrib import auth
from rest_framework.exceptions import AuthenticationFailed
from rest_framework_simplejwt.tokens import RefreshToken, TokenError
from django.contrib.auth.... | [
"siddythings@gmail.com"
] | siddythings@gmail.com |
67031bd19d16f032a36bd812a6097a8fe37af8dc | 7c219028fe9d3ea873f0443cdbed204b3cacb271 | /1005/L5202_화물도크/임건호.py | 4409bdcae9a77d7f5436a552c6bc7587952922bc | [] | no_license | limgeonho/SWEA_algorithm_practice | bae4d38f7dac01160abfe96f8475e4aa05a788fb | b51171ff114d91c78eb661611837b34c1caa9ab9 | refs/heads/master | 2023-08-24T07:09:06.774138 | 2021-10-17T17:48:06 | 2021-10-17T17:48:06 | 394,574,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import sys
sys.stdin = open('input.txt')
T = int(input())
for tc in range(1, T+1):
n = int(input())
# start와 end 시간입력
time = []
for _ in range(n):
s, e = map(int, input().split())
time.append((s, e))
# end시간을 기준으로 오름차순 정렬
changed = sorted(time, key = lambda x:x[1])
# 가능... | [
"ghlim909@gmail.com"
] | ghlim909@gmail.com |
0957123436bf7565d82d124ce50bb201945373d6 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/scikits/statsmodels/sandbox/examples/example_mle.py | a49833008961c61cf7d24613fddf5ad2ca41d46b | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 2,102 | py | '''Examples to compare MLE with OLS
TODO: compare standard error of parameter estimates
'''
from scipy import optimize
import numpy as np
import scikits.statsmodels.base.model as models
print '\nExample 1: Artificial Data'
print '--------------------------\n'
import scikits.statsmodels.api as sm
np.random.seed(54... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
3caa8af52198c7c2786060ec62e2d0a355ff7a44 | 2e357fd1a7c0a657a66715939d623d73a99fe802 | /geitpl_erp/apps/user/migrations/0008_auto_20180112_0235.py | dc6d12a92a2d71b72e71b54b0f2789f8f9ac6d03 | [] | no_license | yogeshdmca/flickerp | e813219bd6aff16f4a9bab01aebf104bef03121c | 8490b8607e6196aaeae1bee5ef6aa07de6bf1535 | refs/heads/master | 2023-02-07T11:28:34.676629 | 2021-01-03T19:57:06 | 2021-01-03T19:57:06 | 325,961,581 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-01-11 21:05
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0007_auto_20171230_1113'),
]
operations = [
migrations.AlterModelOptions(
... | [
"yogesh@geitpl.com"
] | yogesh@geitpl.com |
41a114462432388cab374a0c94ca1c9d3c39f790 | 5f9226f4523aec8e769e753fb3bff61cb2e4209d | /examples/dbm_to_sheets_example.py | b1ada1a3e03481104c5d49b75474dfa87ce94e31 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Ressmann/starthinker | 813c699c9d5fa6bce0380009be07b36dc8629cc7 | 301c5cf17e382afee346871974ca2f4ae905a94a | refs/heads/master | 2023-08-30T21:10:34.748144 | 2021-10-06T14:01:26 | 2021-10-06T14:02:12 | 299,899,333 | 0 | 0 | Apache-2.0 | 2020-09-30T11:38:27 | 2020-09-30T11:38:27 | null | UTF-8 | Python | false | false | 3,483 | py | ###########################################################################
#
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/l... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
229a14c243a1baae10e34e06ef675f5631d319a4 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_paged.py | a6dae91aa1e498c38fb4a6478c14f7a49c21a46c | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,002 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
138faec26237b6c8f6d2965fb7247e24102353c9 | 4252102a1946b2ba06d3fa914891ec7f73570287 | /pylearn2/datasets/config.py | 4c90a4599b866c33e92ea9091f8861b036ade2a5 | [] | no_license | lpigou/chalearn2014 | 21d487f314c4836dd1631943e20f7ab908226771 | 73b99cdbdb609fecff3cf85e500c1f1bfd589930 | refs/heads/master | 2020-05-17T00:08:11.764642 | 2014-09-24T14:42:00 | 2014-09-24T14:42:00 | 24,418,815 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | """
.. todo::
WRITEME
"""
global resolvers
def resolve(d):
"""
.. todo::
WRITEME
"""
tag = pylearn2.config.get_tag(d)
if tag != 'dataset':
raise TypeError('pylearn2.datasets.config asked to resolve a config dictionary with tag "'+tag+'"')
t = pylearn2.config.get_str(d,'... | [
"lionelpigou@gmail.com"
] | lionelpigou@gmail.com |
b78c0f93aba36387a21eff54c942e478a530e153 | 42cc185e1d292bc441889583a86eeca4a6496ce2 | /withPython/BOJ/자료구조/수정렬하기.py | 519d339477fdfa07a04dfa324629c452e598cd41 | [] | no_license | da1907/AlgorithmWithPython | bb71aa8e42711ecd0ac3628c9b024c90ca277a3d | eea95c89bc571f8811d2f74cdf588515a5c55274 | refs/heads/master | 2023-02-23T08:45:23.126211 | 2021-01-29T17:43:02 | 2021-01-29T17:43:02 | 287,485,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | def fun():
arr = []
a = int(input("수를 입력하세요 : "))
for i in range(a):
arr.append(int(input()))
arr.sort()
print(arr[:])
| [
"32568829+da1907@users.noreply.github.com"
] | 32568829+da1907@users.noreply.github.com |
4fd3342aa43cc13e281668c0d2c3e851c6b8d35e | b7c67292bd473854ec1a893e187c8591228718a6 | /Library/Application Support/Sublime Text 2/Packages/Git/repo.py | 2279b6c2da911bbda2ef42a927dd57c862367f1f | [] | no_license | cvbuelow/config | 6a884d37d29bae20ff0886a46f207520782ae5f6 | d9f8ee2f7580ded2f47f799314b61fbcf22ca6e6 | refs/heads/master | 2020-04-18T05:38:51.432803 | 2014-09-15T15:38:43 | 2014-09-15T15:38:43 | 18,619,664 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | import os
import sublime
from git import GitTextCommand, GitWindowCommand, git_root_exist
class GitInit(object):
def git_init(self, directory):
if os.path.exists(directory):
self.run_command(['git', 'init'], self.git_inited, working_dir=directory)
else:
sublime.status_mess... | [
"cvbuelow@gmail.com"
] | cvbuelow@gmail.com |
c67667491fb88fbd53d3f8492a5424dfd62d4bf2 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/2444. Count Subarrays With Fixed Bounds/2444.py | a2c1291ee606c5609fde2e5e97041b311b666c26 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 563 | py | class Solution:
def countSubarrays(self, nums: List[int], minK: int, maxK: int) -> int:
ans = 0
j = -1
prevMinKIndex = -1
prevMaxKIndex = -1
for i, num in enumerate(nums):
if num < minK or num > maxK:
j = i
if num == minK:
prevMinKIndex = i
if num == maxK:
... | [
"me@pengyuc.com"
] | me@pengyuc.com |
170c0fdab1b0e8d51c27cd88cb79d9e6da5ba0ad | 1fc49a38cdd69aad0056d455da7929deb15bcb18 | /windwaker/skyshaker/models.py | ec43719088e82ec4233db1249c339a32cd54a9bd | [
"Apache-2.0"
] | permissive | meilinger/geomakers | 9d6fe4f19b7797d74324d5eac8706ced1a0c114b | d857b09e79e60abdba6bf9cda73d4adf1b2a7da6 | refs/heads/master | 2021-01-19T06:56:46.651565 | 2014-11-17T17:28:51 | 2014-11-17T17:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,803 | py | from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import post_save
from django.conf import settings
from django.template.defaultfilters import slugify
import os, re
class Image(models.Model):
image = models.ImageField(upload_to="images", null=True, blank=True... | [
"daniel.j.dufour@gmail.com"
] | daniel.j.dufour@gmail.com |
f7a416d3def5c8e63f3794e2a19c132ad77ae583 | e749e94163a0e20c551875583baef4e02e72de5e | /StackOverflow/CCM-7/40694364-buggy/conditional.py | b7aa4ad770799113a320d10826e62a8ea1df9152 | [] | 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 | 515 | py | import tensorflow as tf
import random
assert tf.__version__ == "1.8.0"
tf.set_random_seed(20180130)
random.seed(20180130)
a = tf.placeholder(tf.int32)
x1, y1 = 1, 2
x2, y2 = 3, 4
if a == 0:
weightsLayer1 = tf.Variable(tf.truncated_normal([x1, y1]))
else:
weightsLayer1 = tf.Variable(tf.random_normal([x2, y2])... | [
"zyhzyhzyh@pku.edu.cn"
] | zyhzyhzyh@pku.edu.cn |
f0ea8972975b2c543f0e26427f62012e4ca350fa | 4e3ce5a1fc39c00d28b42f61c15cc54f65e706f0 | /leetcode/501-600/T543_Diameter_of_Binary_Tree.py | 8a01959ac853c761f88664bb26d85a7941c3ccd1 | [] | no_license | PemLer/Journey_of_Algorithm | 6c2a1d1f2bb9e1cff5239857dd33747b14127dfd | c0a51f0054446d54f476cf8f1cd3e6268dcd2b35 | refs/heads/master | 2023-03-31T01:57:09.223491 | 2020-06-23T11:25:27 | 2020-06-23T11:25:27 | 178,988,861 | 2 | 0 | null | 2020-06-23T11:25:29 | 2019-04-02T03:06:47 | Python | UTF-8 | Python | false | false | 541 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def diameterOfBinaryTree(self, root: TreeNode) -> int:
self.res = 0
self.helper(root)
return self.res
def he... | [
"1130527871@qq.com"
] | 1130527871@qq.com |
9c8bbfdbed90a0b6f84a734614551051cb2dadfc | b6215f37fdbe501f48b894939bbd82c7c8422788 | /0x07-python-test_driven_development/2-matrix_divided.py | 4b2b241414d1ae8d6a290147d133fdc8bb3fe366 | [] | no_license | Simonster04/holbertonschool-higher_level_programming | 78adeb31f8a508a57e22a54cd0510b8485b203a2 | 4af183b59ea746ddaef540aa063441731bf37df0 | refs/heads/master | 2020-09-29T03:19:23.354575 | 2020-05-14T23:08:13 | 2020-05-14T23:08:13 | 226,937,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | #!/usr/bin/python3
"""
This is the 2-matrix_divided module
containing the matrix_divided function
returns all elements of a matrix divided
"""
def matrix_divided(matrix, div):
"""
matrix_divided function
"""
mat_err = "matrix must be a matrix (list of lists) of integers/floats"
if not isinstan... | [
"simon.pahe@gmail.com"
] | simon.pahe@gmail.com |
454d32784b2410935a1e237afd8b785637a91668 | 084c3246c44c2e5ae5a0dd38522cb19ac993fe35 | /commands/cmd_get.py | 5bda1f4dd4c0ec44b2feb316bd9926d65835b328 | [] | no_license | archivest/PythonWars-1996 | 5bafaca65764ca0d0999b063a5411c53cdbbb0eb | b2b301233d72334cfd9b4404b32a45ac22f0b248 | refs/heads/master | 2023-02-06T09:53:32.464771 | 2020-12-30T07:37:03 | 2020-12-30T07:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,989 | py | # PythonWars copyright © 2020 by Paul Penner. All rights reserved. In order to
# use this codebase you must comply with all licenses.
#
# Original Diku Mud copyright © 1990, 1991 by Sebastian Hammer,
# Michael Seifert, Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe.
#
# Merc Diku Mud improvements copyright © 1... | [
"jindrak@gmail.com"
] | jindrak@gmail.com |
a2209d351358d3759567b152e02c8783813de83f | a3f3c625af98882a7f1775de1e6187f1ead4e32b | /tests/benchmark/symreg_benchmark_tests.py | 8691d55d656e6c0b6dc71beb3b61e57585a308ea | [
"MIT"
] | permissive | StanJBrown/playground | e0846986af5939be77ee561794b5bd0c94a37c28 | f372c3c547d0ad34f9bdffaa2b2e93d089a3f5a4 | refs/heads/master | 2020-07-01T11:45:45.410104 | 2014-12-12T19:19:39 | 2014-12-12T19:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,030 | py | #!/usr/bin/env python2
import os
import sys
import math
import copy
import json
import unittest
sys.path.append(os.path.join(os.path.dirname(__file__), "../../"))
from playground.benchmark.symreg_benchmark import gp_benchmark_loop
# SETTINGS
script_path = os.path.dirname(__file__)
class SymRegBenchmarkTests(unittes... | [
"chutsu@gmail.com"
] | chutsu@gmail.com |
f1aea8361b15adc0a0ef68f9633be415e0fd4172 | 0740a48810ff95e908155b149b7006dce69af571 | /overviewer/threads/templatetags/projects.py | 5275e318c0730e22258c71b7c0d320fa6d060262 | [] | no_license | Soares/natesoares.com | 814558d88cf368eb90e9bead784a7b7e418bbe86 | 54803176b61dc0f6f2cc808fcb901b9e2c827d05 | refs/heads/master | 2020-03-29T15:12:29.398560 | 2012-01-24T16:31:13 | 2012-01-24T16:31:13 | 172,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from overviewer.utilities.template import Library
from overviewer.threads.models import Project
register = Library()
@register.filter
def description(phase):
return Project.phase_descriptions[Project.phase_map[phase]]
| [
"nate@so8r.es"
] | nate@so8r.es |
7961b8fea346c0452dfe66f3f18b3b974f37057a | 0af33c10d3c6cb817f5067743f06c71ad99bca0b | /done/tsoc15c2p3.py | e961965836678305b98de09eae7cf926d42f191e | [] | no_license | nathanlo99/dmoj_archive | 6d4f84b58d963109c73a52281a4aa06dd79bc1da | b137f8fa5894542a39e168c1f6485d622a119f42 | refs/heads/master | 2020-04-15T12:47:18.181614 | 2019-07-21T03:03:21 | 2019-07-21T03:03:21 | 62,849,549 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import sys
input = sys.stdin.readline
a = input()
b = input()
def factorial(n):
ans = 1
for i in xrange(1, n + 1):
ans *= i
return ans
d = {}
for c in a: d[c] = d.get(c, 0) - 1
for c in b: d[c] = d.get(c, 0) + 1
d[a] = d.get(a, 0) + 1
ans = factorial(sum(d.values()))
for x ... | [
"nathanlo99@hotmail.ca"
] | nathanlo99@hotmail.ca |
c22c3730e4a32e989eb9cae11bfbae76e205abe0 | 49b9af65a2d229d2c79d1f2677c56fef926aaed4 | /codeforces/272A/py/272a.py | 990fdc6114e1d6391418cc7db26200aa3b868be9 | [] | no_license | guzhoudiaoke/practice | 5a6a0a0e3ab8f5c0922d08bbf0ba5549b5585378 | a93cb418530f50c8577251df593624391e92b1a5 | refs/heads/master | 2020-04-06T07:05:32.965869 | 2019-10-24T14:55:39 | 2019-10-24T14:55:39 | 63,775,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import sys
n = int(input())
an = list(map(int, sys.stdin.readline().split()))
total = sum(an)
ans = 0
for i in range(1, 6):
if (total + i) % (n + 1) != 1:
ans += 1
print(ans)
| [
"guzhoudiaoke@126.com"
] | guzhoudiaoke@126.com |
a1b6c3af3da764e63534ea5c57b8bbcc76ed8dcd | 4a730d336a1a552d5c40d12f75cbeaa45aabab65 | /assignments/party5.py | f2ff17fd94cb812002d1658177b67950cc4cfa81 | [
"BSD-3-Clause"
] | permissive | harrypotter0/Python-web-development | 360221606f32efd185d5de328d621509ca4a334d | dcc6567aac941f36739b37fb5ac2e337ce8ac9b9 | refs/heads/master | 2021-09-02T23:29:53.995094 | 2018-01-04T03:12:26 | 2018-01-04T03:12:26 | 105,212,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | class PartyAnimal:
x = 0
name = ''
def __init__(self, nam):
self.name = nam
print(self.name,'constructed')
print(nam)
def party(self) :
self.x = self.x + 1
print(self.name,'party count',self.x)
s = PartyAnimal('Sally')
s.party()
j = PartyAnimal('Jim')
j.party()
s.party()
| [
"9654263057akashkandpal@gmail.com"
] | 9654263057akashkandpal@gmail.com |
584371ceb7ba6f326400287a0641b7eb9ef3ea55 | 18ad97292b34a679b8dea8a85090541c5bbf6174 | /humancannonball2.py | 1818f706112f7726b26fd74df70178c02a773f96 | [] | no_license | Jyotirm0y/kattis | b941044e39dc36d169450480fc33fd33bd2e0f8e | 2b9c1819ba29419bbea3db2e8ad7851155abbb3a | refs/heads/master | 2023-05-31T21:11:38.350044 | 2021-06-12T08:21:47 | 2021-06-12T08:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from math import *
n = int(input())
for i in range(n):
l = input().split()
v = float(l[0])
theta = float(l[1])
x = float(l[2])
h1 = float(l[3]) + 1
h2 = float(l[4]) - 1
t = x/v/cos(radians(theta))
y = x*tan(radians(theta)) - 0.5*9.81*t*t
if y > h1 and y < h2:
pri... | [
"ainunnajib@gmail.com"
] | ainunnajib@gmail.com |
5a60239a3bae77a5603646b33abc5358828509da | 84856442c382b0b670246636d378beb095effa0a | /dev_cloud/cc1/src/wi/forms/group.py | e439f713b12be58b48bcdd7e6cafa66e7e969464 | [
"Apache-2.0",
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | Dev-Cloud-Platform/Dev-Cloud | f50cc3292245156c4cf55942e4426fda22443fd6 | b2fb9f4318aeb6dde1e8babca32da527943f1fb4 | refs/heads/master | 2020-12-29T02:43:14.022401 | 2017-05-05T07:18:21 | 2017-05-05T07:18:21 | 28,969,864 | 1 | 1 | null | 2015-01-14T16:46:57 | 2015-01-08T14:36:52 | Python | UTF-8 | Python | false | false | 1,375 | py | # -*- coding: utf-8 -*-
# @COPYRIGHT_begin
#
# Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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.apac... | [
"michal.szczygiel@wp.pl"
] | michal.szczygiel@wp.pl |
28ea7084ba172f673bdf2a4fe093f5c0b3d29050 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/int/Schema+Instance/NISTXML-SV-IV-list-int-whiteSpace-1-4.py | 8360998627a8b4a8b1d1d9e72d08cf718a9fc776 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 366 | py | from output.models.nist_data.list_pkg.int_pkg.schema_instance.nistschema_sv_iv_list_int_white_space_1_xsd.nistschema_sv_iv_list_int_white_space_1 import NistschemaSvIvListIntWhiteSpace1
obj = NistschemaSvIvListIntWhiteSpace1(
value=[
-2147483648,
913417462,
548224864,
-740931134,
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
5b44b3e733a530f15ff9fe19c3614dd2930ee90b | 5e77f993c62dddc9ee0bd0017a9f380b509e9eff | /gnmi/ydk/gnmi/providers/__init__.py | 267866d26a80676547f1b08acae075513c0df218 | [
"Apache-2.0"
] | permissive | Maikor/ydk-py | 68750c37d8f9f2058589ae03d5119c0fa732ef53 | b86c4a7c570ae3b2c5557d098420446df5de4929 | refs/heads/master | 2020-04-21T04:41:25.291858 | 2019-02-05T22:16:14 | 2019-02-05T22:16:14 | 169,319,976 | 0 | 0 | NOASSERTION | 2019-02-05T22:00:44 | 2019-02-05T22:00:44 | null | UTF-8 | Python | false | false | 804 | py | # ----------------------------------------------------------------
# Copyright 2016 Cisco Systems
#
# 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/LICENS... | [
"ygorelik@cisco.com"
] | ygorelik@cisco.com |
e4cbba8c0c89a5d2de60c2edc68677ace7d59997 | 120c978f6d5e1daf52443b5b1c7f2f23f1e85846 | /ftr_based_analysis.py | 8c4d02c841d074f5bb15dc6c4e9a987da2196ecf | [
"MIT"
] | permissive | hvdthong/sadl | 8019016c3eda937ec94f0a96b4c2b2b8660af281 | ff83e94eccd97c045dca0065ee762ef88eeac212 | refs/heads/master | 2020-07-29T13:53:06.536808 | 2019-12-07T02:35:02 | 2019-12-07T02:35:02 | 209,829,972 | 0 | 0 | null | 2019-09-20T16:01:32 | 2019-09-20T16:01:32 | null | UTF-8 | Python | false | false | 5,296 | py | import argparse
from keras.datasets import mnist, cifar10
from keras.models import load_model, Model
from box_plot import mnist_get_correct_and_incorrect_test_images
from keras import utils
import numpy as np
from sklearn.manifold import TSNE
from utils import load_file
import matplotlib.pyplot as plt
import matplotlib... | [
"hvdthong@gmail.com"
] | hvdthong@gmail.com |
6939a260565bb097fcfff2404d21661655cbd731 | 1ffc17893d9e15fd939628bbc41c3d2633713ebd | /docs/tutorial/plot_abegin_convert_pipeline.py | 64c23160cc3084e9c6c9adec028825e29c641934 | [
"Apache-2.0"
] | permissive | xadupre/sklearn-onnx | 646e8a158cdded725064964494f0f8a760630aa8 | b05e4864cedbf4f2a9e6c003781d1db8b53264ac | refs/heads/master | 2023-09-01T15:58:38.112315 | 2022-12-21T01:59:45 | 2022-12-21T01:59:45 | 382,323,831 | 0 | 2 | Apache-2.0 | 2023-01-04T13:41:33 | 2021-07-02T11:22:00 | Python | UTF-8 | Python | false | false | 3,681 | py | # SPDX-License-Identifier: Apache-2.0
"""
.. _l-simple-deploy-1:
Train and deploy a scikit-learn pipeline
========================================
.. index:: pipeline, deployment
This program starts from an example in :epkg:`scikit-learn`
documentation: `Plot individual and voting regression predictions
<https://sc... | [
"noreply@github.com"
] | xadupre.noreply@github.com |
555761d388e2aa334ca91e23f0fa03529ff99d16 | bf0c13d412a7021b299c5e0622e63e72172cf725 | /week1/CodeingBat/string2/double-char.py | 6b783474ff41952f21e840f10b06f1b91ea43e17 | [] | no_license | Alibek120699/BFDjango | 765e734e925041947f607a1d15228309dfa3e647 | eac06c317551c561ffccb44750862972ae11dea3 | refs/heads/master | 2022-12-01T15:49:39.402815 | 2020-04-19T21:09:39 | 2020-04-19T21:09:39 | 233,657,360 | 0 | 0 | null | 2022-11-22T05:49:56 | 2020-01-13T17:50:13 | Python | UTF-8 | Python | false | false | 79 | py | def double_char(str):
res = ''
for i in str:
res += i + i
return res
| [
"sayakalibek1@gmail.com"
] | sayakalibek1@gmail.com |
4f0943bf72da3dbe7605a87558e5a995e4557073 | c2be395eac600d0d853de03cd67070bd8391038f | /ofm_inventory_ext/models/stock_quant.py | 525136b0e8180b522f078120c8902fa2686e3540 | [] | no_license | amendoncabh/salary_emp | 960cfdb4df48df70ab361886039c790840a5e8d2 | 2ac2dd9461271153cb2ee406bf70a29f614c25f1 | refs/heads/master | 2022-03-30T22:35:10.704092 | 2020-01-05T16:23:20 | 2020-01-05T16:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,983 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from collections import defaultdict
from odoo import fields, models
class StockQuant(models.Model):
_inherit = "stock.quant"
def _quant_create_from_move(self, qty, move, lot_id=False, owner_id=False, src_packa... | [
"loveprakon@gmail.com"
] | loveprakon@gmail.com |
10022ad2c829294f867ea831b5e0765dc51765b1 | 46e093b3831ee78faf819e0a0a081aab05dcfb29 | /gooey/gui/containers/application.py | 9147b2674c3e626b2901024aa3df2fcbdf6c07b1 | [
"MIT"
] | permissive | foben/Gooey | cec95291112b0304ca0490c78739a3bc1165369e | 933cbcbabbcd2d0721cc14334d5c0112b2189d09 | refs/heads/master | 2022-09-28T22:41:00.702259 | 2020-06-06T20:18:20 | 2020-06-06T20:18:20 | 270,091,810 | 0 | 0 | MIT | 2020-06-06T20:09:39 | 2020-06-06T20:09:39 | null | UTF-8 | Python | false | false | 9,944 | py | """
Primary orchestration and control point for Gooey.
"""
import sys
import wx
from wx.adv import TaskBarIcon
from gooey.gui import cli
from gooey.gui import events
from gooey.gui import seeder
from gooey.gui.components import modals
from gooey.gui.components.config import ConfigPage, TabbedConfigPage
... | [
"audionautic@gmail.com"
] | audionautic@gmail.com |
8364d46711751bd2b78bba434f7f6d5e07fe1663 | 85fd21cdb44eee7707411be98d25cf68a8dc8aa2 | /python/ray/data/_internal/iterator/pipelined_iterator.py | 011fea818d7895e284ec0fd15040149f5a0575eb | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | wuisawesome/ray | e232e83bfc7f1284d2419dd8f09a9f39139534bb | de3df47447f1db547f1844298593f5243a4a077a | refs/heads/master | 2023-05-24T19:18:00.119750 | 2023-05-18T22:27:47 | 2023-05-18T22:27:47 | 235,706,109 | 0 | 1 | Apache-2.0 | 2023-03-22T00:23:20 | 2020-01-23T01:59:12 | Python | UTF-8 | Python | false | false | 3,864 | py | from typing import Any, TYPE_CHECKING, Callable, Optional, Union, Iterator, Tuple
from ray.types import ObjectRef
from ray.data.block import Block, BlockMetadata, DataBatch
from ray.data.iterator import DataIterator
from ray.data._internal.stats import DatasetStats
if TYPE_CHECKING:
import pyarrow
from ray.da... | [
"noreply@github.com"
] | wuisawesome.noreply@github.com |
4ff72770d4123da6d63965f7c57a524adb3a3978 | e37b39d80ecf8a534a3e2b32032021ec23cc0343 | /brokers/assignment1/run_producer.py | b5e775cf1097e9e5cc085c3a0f943c6a1ce24983 | [] | no_license | Mano-el-Mano/message_broker | 52654b3464f2ceecc1aeb5c2ef822e54515a7e54 | d332227daf28cde9fd7cd2c67d8f9d7ac53f3ee0 | refs/heads/master | 2023-01-13T11:38:30.451572 | 2020-11-16T19:28:51 | 2020-11-16T19:28:51 | 313,405,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from brokers.producer import Producer
from brokers.consumer import Consumer
import json
def generate_autumn_offers():
routing_key = "autumn_offers"
offers = [{'name': 'Gucci Tshirt', 'discount': 200},
{'name': 'Prada Bag', 'discount': 300},
{'name': 'Billa Bong Tanktop', 'discount':... | [
"abc@example.com"
] | abc@example.com |
1a1f8934c18e62c76be96d376f90cfba46b64f70 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /opsworks_write_f/deployment_create.py | 416f23148bfc9b8559d627bee4b96a3bb4bbaea0 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
c5b24b92864de888918e813158d2a16044c8d224 | bc441bb06b8948288f110af63feda4e798f30225 | /tuna_service_sdk/model/cmdb/object_import_pb2.py | 40cc4ec3eae302136268c939f7c7dbf62b1ece50 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 19,337 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: object_import.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protob... | [
"service@easyops.cn"
] | service@easyops.cn |
d97d7541dbd5322244fc513171e6ed7eb7a79d60 | b7fab13642988c0e6535fb75ef6cb3548671d338 | /tools/ydk-py-master/cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_tcp_oper.py | 4c823a135bd32d112e7c6d85495166d1cae5450c | [
"Apache-2.0"
] | permissive | juancsosap/yangtraining | 6ad1b8cf89ecdebeef094e4238d1ee95f8eb0824 | 09d8bcc3827575a45cb8d5d27186042bf13ea451 | refs/heads/master | 2022-08-05T01:59:22.007845 | 2019-08-01T15:53:08 | 2019-08-01T15:53:08 | 200,079,665 | 0 | 1 | null | 2021-12-13T20:06:17 | 2019-08-01T15:54:15 | Python | UTF-8 | Python | false | false | 1,279,148 | py | """ Cisco_IOS_XR_ip_tcp_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR ip\-tcp package operational data.
This module contains definitions
for the following management objects\:
tcp\-connection\: TCP connection operational data
tcp\: tcp
tcp\-nsr\: tcp nsr
Copyright (c) 2013\-2016... | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
bf79159ed27f7c393f555b576bb7c85c19ee78b7 | 4a88daea1741ed6b5b5088b8d1f2787093abdf80 | /settings/development.py | e8b464321d04f520aab0b10e57ea5074e4bb14c7 | [
"MIT"
] | permissive | Nigelzhf/torweb | 8e0bfeb6793ae9e50230e6b7b6284ec5e6da0d57 | 6859a878c126addb74410e872307ac9399f20eb7 | refs/heads/master | 2021-01-12T14:16:10.474945 | 2016-10-03T20:47:25 | 2016-10-03T20:47:25 | 69,928,142 | 0 | 1 | null | 2016-10-04T02:25:34 | 2016-10-04T02:25:33 | null | UTF-8 | Python | false | false | 748 | py | #coding: utf-8
from settings.common import *
PORT = 9001
BACKEND_MYSQL = {
'database': 'torweb',
'max_connections': 20,
'stale_timeout': 300,
'user': 'root',
'password': 'root',
'host': '127.0.0.1',
'port': 3306
}
BACKEND_MONGO = "mongodb://127.0.0.1/torweb"
BACKEND_REDIS = ('localhost', ... | [
"jmpews@gmail.com"
] | jmpews@gmail.com |
8380c60da1d17f523a542ac35a8f6a3b69ad39d3 | b509ef07d752e987f4cb84d1abd4c3a98488a6c7 | /resources/lib/streamlink/plugins/kugou.py | aea7e051c3d6992c2fc49fdcdbb854405cf6ee7c | [
"BSD-2-Clause"
] | permissive | Twilight0/script.module.streamlink.base | d91245d1a43d6b3191b62a6eb4b1cf70598ed23e | c1e4628715a81806586b10323b8cb01424bbb6fc | refs/heads/master | 2021-01-21T04:32:41.658823 | 2020-09-07T20:56:29 | 2020-09-07T20:56:29 | 101,915,967 | 6 | 4 | BSD-2-Clause | 2018-01-14T15:20:47 | 2017-08-30T18:31:47 | Python | UTF-8 | Python | false | false | 2,810 | py | # -*- coding: utf-8 -*-
import logging
import re
import time
from streamlink.plugin import Plugin
from streamlink.plugin.api import validate
from streamlink.stream import HLSStream, HTTPStream
log = logging.getLogger(__name__)
class Kugou(Plugin):
_url_re = re.compile(r"""https?://fanxing.kugou.com/(?P<room_id>... | [
"twilight@freemail.gr"
] | twilight@freemail.gr |
14ae5d3b453b53e5433c9ded5f7dcee069b4bccc | c39e466c2b6fdffbc410f24669f214e13fb87781 | /PYTHON/TEMA 6/Unit6_examples/Unit6_Objects_example2.py | e2ef3b1ee25a4968b479d290194bcddf96fc7eb7 | [] | no_license | enanibus/biopython | 3a58efbcc92f1ce60285a115c620de9295b7d281 | 613d334a5c0502059930d9381a9464ef533cca1c | refs/heads/master | 2021-01-12T17:27:39.516793 | 2017-01-02T18:30:09 | 2017-01-02T18:30:09 | 71,573,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | class DNA2:
"""Generates an object of class DNA"""
def __init__(self,Sequence=""):
self.Seq=Sequence.upper()
def RevCompl(self):
"""Computes the reverse-complement of the sequence"""
rcSeq=""
Complement={"A":"T","C":"G","G":"C","T":"A"}
for base in self.Seq:
... | [
"juanenriqueztraba@gmail.com"
] | juanenriqueztraba@gmail.com |
253d563702443d65ce21be7d3b66f47d32084a54 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-core/PyObjCTest/test_dyld.py | 31ef15660c286c3748e64b769fd854f61f5f24af | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,834 | py | from PyObjCTools.TestSupport import *
import os
import subprocess
import sys
import objc._dyld as dyld
class TestDyld(TestCase):
def setUp(self):
self.orig_environ = os.environ
os.environ = os.environ.copy()
def tearDown(self):
os.environ = self.orig_environ
def test_inject_suff... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
f7dcf08953c60117c2c526d6ed4f881ab6ee56b1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_286/ch74_2020_04_11_17_27_45_455059.py | 736013faa9bdf098f85d394577b57f783b0b9361 | [] | 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 | 456 | py | def conta_bigramas(frase):
frase.replace(' ', '')
dic_bigramas ={}
i = 0
while i < len(frase) - 1:
bigrama = str(frase[i] + frase[i + 1])
if bigrama not in dic_bigramas.keys():
dic_bigramas[bigrama] = 1
else:
for big, valor in dic_bigramas.items():
... | [
"you@example.com"
] | you@example.com |
a7699cabe27a5881323e80498b8574ef3aea30f3 | 5e6d13dc95dcb1bb17cb98c0ce35903c43b6cd9c | /setup.py | b22e3d1c62f2baf81d366587ba22e1b098a4c70c | [] | no_license | timseed/FlaskAsynchIO | faa76677ada26742e1073ccad3c52d7e999822a7 | 1e2dd56fb9f2892aefe1ae5b0732a4e6c9ff8c34 | refs/heads/master | 2022-11-22T03:33:51.143261 | 2020-07-22T07:09:40 | 2020-07-22T07:09:40 | 281,602,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from setuptools import setup, find_packages
requirements = "flask", "flask-SocketIO"
for p in find_packages():
print("Installing package " + str(p))
setup(
name="webio",
version="0.0.2",
packages=find_packages(),
include_package_data=False,
url="",
license="Public",
author="tim",
au... | [
"tim@sy-edm.com"
] | tim@sy-edm.com |
278afdae490ed3640c510c90dcfdf2c70368b7a1 | 8e3a3c845ca3320483b233e8a0db4081aa3b8664 | /clases/migrations/0013_auto_20160627_2311.py | ab4dabfd8f1f36d6f484f60e8892bb2a83dafbab | [] | no_license | sofide/loiprocesos | 7d56398395e6f3302f4d9ec3627ed1b4c24bc17a | 4047fa02d0cfbcf744c80d59e3402215f8b294d3 | refs/heads/master | 2021-07-08T03:26:55.171459 | 2020-08-04T03:23:10 | 2020-08-04T03:23:10 | 61,167,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-28 02:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clases', '0012_auto_20160626_2156'),
]
operations = [
migrations.AddField(
... | [
"sofi.denner@gmail.com"
] | sofi.denner@gmail.com |
ed427938a6a5587774326a539eae329f4778f18b | 870639af1487cf59b548f56c9cd1a45928c1e2c2 | /homeassistant/components/knx/fan.py | bdb0bbf9dcca7d782fb92e6bca3040e3035750a4 | [
"Apache-2.0"
] | permissive | atmurray/home-assistant | 9f050944d26c084f8f21e8612a7b90c0ae909763 | 133cb2c3b0e782f063c8a30de4ff55a5c14b9b03 | refs/heads/dev | 2023-03-19T04:26:40.743852 | 2021-11-27T05:58:25 | 2021-11-27T05:58:25 | 234,724,430 | 2 | 0 | Apache-2.0 | 2023-02-22T06:18:36 | 2020-01-18T11:27:02 | Python | UTF-8 | Python | false | false | 4,430 | py | """Support for KNX/IP fans."""
from __future__ import annotations
import math
from typing import Any, Final
from xknx import XKNX
from xknx.devices import Fan as XknxFan
from homeassistant import config_entries
from homeassistant.components.fan import SUPPORT_OSCILLATE, SUPPORT_SET_SPEED, FanEntity
from homeassistan... | [
"noreply@github.com"
] | atmurray.noreply@github.com |
7824c9c7682db97e6cd85d8a21b9281ac1b7d912 | a77da5c1e90fae960e2d1af233c0f1a87db28d3a | /biostar/forum/management/commands/planet.py | c724477138deedcb0288ca554c99b33c43098c3f | [
"MIT"
] | permissive | genomax/biostar-central | b29dcd49151184c06f44aac964bc94bdc51d263e | 34b5ca74abe738139ca673883f6d2337169e87f3 | refs/heads/master | 2023-03-29T07:49:22.472373 | 2021-03-25T19:08:04 | 2021-03-25T19:08:04 | 351,517,591 | 0 | 0 | MIT | 2021-03-25T19:08:04 | 2021-03-25T17:16:42 | null | UTF-8 | Python | false | false | 1,364 | py |
from django.conf import settings
from django.core.management.base import BaseCommand
import os
import logging
from biostar.planet import auth
logger = logging.getLogger('engine')
def abspath(*args):
"""Generates absolute paths"""
return os.path.abspath(os.path.join(*args))
class Command(BaseCommand):
... | [
"natay.aberra@gmail.com"
] | natay.aberra@gmail.com |
264dc2b829add322b5b194000a5a76b031fd9f6b | 44fead330c239d8b021b791741eaa536ee3d0c78 | /site_specific/hitpoint2015/management/commands/setup_hitpoint2015.py | 0ef77488808104147c9bc3c5488012825fe7d846 | [
"MIT"
] | permissive | tracon/tracontent | 8b7797a8b77b686c60cb80e56c6c988868009a85 | 169fe84c49c1a30133e927f1be50abba171ebe68 | refs/heads/master | 2023-03-11T20:22:56.275208 | 2022-03-15T10:25:02 | 2022-03-15T10:25:02 | 40,443,509 | 1 | 0 | NOASSERTION | 2023-03-01T16:14:38 | 2015-08-09T16:51:59 | JavaScript | UTF-8 | Python | false | false | 6,416 | py | from datetime import datetime, timedelta, date
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site
from django.core.files import File
from django.core.management import call_command
from django.core.management.base import B... | [
"santtu@pajukanta.fi"
] | santtu@pajukanta.fi |
e810e8610d7d0ca8a4e1dbe202cea07a870655b2 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control_recursive_async.py | 931e2749ad44b9731785f78a3275cca145bc8879 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,916 | 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.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9f3f386dd20ae071666850cf9e7d4956503621fc | 6ac0aeea8229c4e2c7a041e85c3afeeb106c6b01 | /c2f_loop_mod_safe.py | a938ed93dc7dd072748a398ff7b714c7b967656e | [] | no_license | waiteb15/py3intro | 325dafaaa642052280d6c050eacf8b406b40e01d | 68b30f147e7408220490a46d3e595acd60513e9e | refs/heads/master | 2020-03-27T10:50:25.928836 | 2019-02-28T21:47:11 | 2019-02-28T21:47:11 | 146,448,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python
from tempconv import c2f, f2c
while True:
usrtemp = input("Enter a Temperature Value with unit separated by a space:(or q for quit)").split(' ')
if usrtemp[0] == 'q':
break
try:
temp = float(usrtemp[0])
except Exception as err:
print("Value not a Number:", err, ... | [
"waiteb15@gmail.com"
] | waiteb15@gmail.com |
d8578bd49b9d4c2aff03ef61a5b4b318e0a7239d | f95c1a9586e222a291bfaaa0158582ce3b78325f | /haystack_channels/routing.py | 81377dbde54e02a9382c1b9f0186d754e3c84d1d | [] | no_license | LegoStormtroopr/django-haystack-channels | de93f6ca7ea6b3653ecf646fcfe5a0f93ec65a01 | 3805b79edc5350665f7ff791f3d7fd1840337b23 | refs/heads/master | 2020-12-25T15:08:12.172028 | 2018-03-05T23:16:45 | 2018-03-05T23:16:45 | 67,964,332 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from channels.routing import route, route_class
channel_routing = [
route_class("haystack_channels.signals.ChannelsAsyncSignalConsumer"),
]
| [
"theodore.therone@gmail.com"
] | theodore.therone@gmail.com |
a6eb1c9f9b8520e351ab8e8f9fdbe2a1a39dc619 | e4266d7995c6952a374037e6809678a28e2972f4 | /ohter_addons/outstanding_invoice_report/__manifest__.py | 3f44a2796e7e017f69b377a8471c8dac10bdf83d | [] | no_license | h3llopy/addons_12 | cdd3957faa46be9beb20239b713bcde7d3fb24bf | 7440086ae976754b0d268986519705cbc9ea0a8a | refs/heads/master | 2023-08-31T12:33:54.645648 | 2021-11-01T02:21:06 | 2021-11-01T02:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | {
'name': "Outstanding Invoice Report",
'website': 'http://www.aktivsoftware.com',
'author': 'Aktiv Software',
'category': 'Accounting',
'summary': """Generate report for customer/vendor outstanding Invoice.""",
'license': 'AGPL-3',
'description': """
Generate report for customer/vendor ou... | [
"diegobgajardo@gmail.com"
] | diegobgajardo@gmail.com |
0a97d7a2903c410111a433e3deef373802e5848b | a7a2205fa491d28ef94f9fa7637ffa48e703611e | /build/jupyter-base/config/jupyter_notebook_config.py | 28d0f83c3086f22ca4f9f73e81b9da935dee1198 | [
"MIT"
] | permissive | innovationOUtside/tm351vm | 3d7aadc7a52e15f23e5866f54cf0d7672252b72c | c46d8e73d6b9fbbb3d079c6e2d6c309bfc247556 | refs/heads/master | 2021-05-26T08:17:08.961642 | 2020-09-10T15:51:00 | 2020-09-10T15:51:00 | 128,050,463 | 2 | 2 | null | 2019-10-08T11:04:12 | 2018-04-04T11:06:05 | HTML | UTF-8 | Python | false | false | 22,027 | py | # Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------
## This is an application.
## The date format used by logging f... | [
"tony.hirst@gmail.com"
] | tony.hirst@gmail.com |
3dae04f702d50caea4dde38a9de41ffd6c2bb31a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/2905.py | e45892507c677e9ea1523d04cda6e885016285c8 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | def remove_leading_zeros(l):
for i in range(len(l)):
if l[i] != 0:
return l[i:]
def solve(N):
i = len(N)
for _ in range(len(N)):
for i in range(len(N) - 1):
if N[i] > N[i + 1]:
N[i] -= 1
for j in range(i + 1, len(N)):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7cc22f0c3d76080f16a4dc17845de9a811e65468 | fe9d6ff3d7a39bb57a6ed7a973c0318d3a7aa189 | /character3/exe3_12.py | 3392d33901fab61c8d10b252cd4e3efc9efcb5d9 | [] | no_license | yiguming/python_core_progreamming | 12cfca8b44b187a706c7dd7e1bb73ab3ef1f7552 | 9b7790938f33523c0cd4172b0d508e49bbddf17a | refs/heads/master | 2020-03-29T16:27:55.888601 | 2015-04-19T03:09:39 | 2015-04-19T03:09:39 | 31,845,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
#readNwriteTextFiles.py
import os
ls = os.linesep
class TextFile(object):
"""The class :TextFile"""
selection1 = "(1)创建一个文本文件"
selection2 = "(2)显示一个文本文件"
def __init__(self):
"""init the five_number_list"""
def showselection(self):
print se... | [
"439309415@qq.com"
] | 439309415@qq.com |
8f537db05d440bca915f06c35c4a6efe322c7e5c | d5b9f3aa3901079097a6bae31c0426845ec80774 | /tests/test_util.py | ab62fd294398c339c789643fb748380202320a6c | [] | no_license | virtuald/pynetworktables | fc3b9fc143f62587a32da6c0a4f3236061584a87 | 72756542e11551b4059ae4b22a4f723676af8755 | refs/heads/master | 2021-05-16T13:13:28.043557 | 2017-09-27T05:35:09 | 2017-09-27T05:35:09 | 105,368,489 | 0 | 0 | null | 2017-09-30T12:29:59 | 2017-09-30T12:29:59 | null | UTF-8 | Python | false | false | 2,097 | py |
from networktables.util import ntproperty, ChooserControl
import pytest
def test_autoupdatevalue(nt):
# tricksy: make sure that this works *before* initialization
# of network tables happens!
nt.shutdown()
foo = nt.getGlobalAutoUpdateValue('/SmartDashboard/foo', True, True)
assert foo.value... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
149d45f63ad953ba3497bb1ddd231a1fca43417e | 0f799b88204d002d655f48894a3095bf006f9d1f | /chapter6/if_use.py | 7f39604a7af70d43f56b9686ce2e3cc7803f52d3 | [] | no_license | liuyuzhou/pythonsourcecode | 4008b4adf0342e61a1b6c03f12ab55ad04252e7e | 476c75ff6b83953565175a66e21cad3139f06ad2 | refs/heads/master | 2020-05-16T01:39:20.518816 | 2019-04-22T02:48:49 | 2019-04-22T02:48:49 | 182,607,905 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # if 基本用法
greeting = 'hello'
if greeting == 'hello':
student = {'小萌': '000', '小智': '001', '小强': '002', '小张': '003'}
print(f'字典元素个数为:{len(student)}')
student.clear()
print(f'字典删除后元素个数为:{len(student)}')
| [
"liuyuzhou@banggood.com"
] | liuyuzhou@banggood.com |
da09d3415648d4336b4fe115e16513f7cadc73bb | 8b8a06abf18410e08f654fb8f2a9efda17dc4f8f | /app/sistema/ventas/modificar/urls.py | e4a848b1106981affe6177491c6a7d28773a21da | [] | no_license | corporacionrst/software_RST | d903dfadf87c97c692a821a9dd3b79b343d8d485 | 7a621c4f939b5c01fd222434deea920e2447c214 | refs/heads/master | 2021-04-26T23:23:27.241893 | 2018-10-05T23:21:34 | 2018-10-05T23:21:34 | 123,985,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from django.conf.urls import include, url
from .views import *
urlpatterns = [
url(r'^$',menu.as_view(),name='menu'),
url(r'(?P<id>\d+)/$', modificar.as_view(), name='modificar'),
]
| [
"admin@corporacionrst.com"
] | admin@corporacionrst.com |
f21f2e498b124b58c6ca6c0cdaa66ff5a163aa8a | 7ef6273803fabcaa402c07d7174fcb7f791612a4 | /lib/fontv/libfv.py | cc4d2277d2d13cdc8c31320caed83dc5169cb445 | [
"MIT"
] | permissive | source-foundry/font-v | a53cc6ddb8a6922a0c47d3dfb79e11dac5da123b | 6b7dea402156904bb7472e648917494594fb8282 | refs/heads/master | 2023-05-28T14:07:30.576065 | 2023-03-01T16:03:37 | 2023-03-01T16:03:37 | 102,066,368 | 46 | 7 | null | 2023-05-15T08:56:47 | 2017-09-01T02:44:07 | Python | UTF-8 | Python | false | false | 29,544 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# libfv.py────────────────────────────────────────────────────────────────┐
# │ │
# │ A Python library module that supports read/modification/write of .otf │
# │ and .ttf font version str... | [
"git.simpkins@gmail.com"
] | git.simpkins@gmail.com |
f8adf4d096f023f1e864805b5144f75f0968a886 | b6f4ba21f5ef86ca78592819f67ebc22582825ea | /week-05/day-1/h_attila_work.py | f201f1b40cea429c89cbba888b6fa4d43ffde9af | [] | no_license | greenfox-zerda-lasers/h-attila | e85ec2f94a97850d704a6f2eed96224c17250ad2 | bffa3ed68fe3d4c5770244b92ed1a9202c42c43f | refs/heads/master | 2021-01-11T05:44:29.458761 | 2017-05-14T07:48:30 | 2017-05-14T07:48:30 | 71,352,237 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Write a function, that takes two strings and returns a boolean value based on if the two strings are Anagramms or not.
def anagramm(text_a, text_b):
return sorted(text_a.lower().replace(" ", "")) == sorted(text_b.lower().replace(" ", ""))
def count_letters(text):
text = text.lower()
result = {}
fo... | [
"email.atinak@gmail.com"
] | email.atinak@gmail.com |
f99048cc851205e757c411758632300bf042c10a | cf5ceed90310006a4543d976882c85bc701efab3 | /tests/test_project/settings.py | f14719f2a12410ff0fc03d7f6a88a9efa72066b3 | [] | no_license | hammadk373/crawley | 698b1aff51267a78f5e9f18d78f43e1dd69d75bd | f7522cfa0446b523b93e8056991f9d10e9754ff0 | refs/heads/master | 2021-01-18T06:52:07.753729 | 2011-10-28T02:37:00 | 2011-10-28T02:37:00 | 2,663,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import os
PATH = os.path.dirname(os.path.abspath(__file__))
#Don't change this if you don't have renamed the project
PROJECT_NAME = "test_project"
PROJECT_ROOT = os.path.join(PATH, PROJECT_NAME)
DATABASE_ENGINE = 'sqlite' #TODO: test elixir with several DB engines
DATABASE_NAME = 'test_project'
DATABASE_USER =... | [
"jmg.utn@gmail.com"
] | jmg.utn@gmail.com |
a1306a0a252f3bf2156df7940431aea21ab89d55 | 7089249371361211072c0bfe695c6b887c88a7f7 | /tests/support/issue5/test_ip_as_env.py | 6004ea7f97fb6434bfe11e33a2f2c47803804cc3 | [
"MIT"
] | permissive | DudinovaOksana/holmium.core | 56da951fe0bb336d5d48eb8bdbf4bdae81d0bd2b | 026441584537b83e8a2743490be78a4c8f07a510 | refs/heads/master | 2023-06-19T14:58:26.813152 | 2021-07-10T15:47:25 | 2021-07-10T15:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | import unittest
class NoseConfigTest(unittest.TestCase):
def test_config_available(self):
self.assertTrue(self.config is not None)
def test_config_env_value(self):
self.assertEqual(self.config["var"], 1)
def test_config_default_value(self):
self.assertEqual(self.config["foo"], 2)... | [
"ali@indydevs.org"
] | ali@indydevs.org |
56d2707382df5f754f0c5dd4ab4ce34eaa9763fe | eeb02fee308d1eebe2b7dff0dfc7cf39a8ee188c | /backend/mobileapplayoutedito_1615/urls.py | ddf0c4e4bceeef6de5c02ca10f38cc69186452ad | [] | no_license | crowdbotics-apps/mobileapplayoutedito-1615 | 846e9e91cd826af09db6addb760c0c49b4258ddf | 115b858f17e8e5e7dbcd8969b9a5449e0cdfa11f | refs/heads/master | 2023-02-11T15:16:42.782306 | 2020-04-02T19:36:28 | 2020-04-02T19:36:28 | 252,443,624 | 0 | 0 | null | 2023-01-26T16:17:47 | 2020-04-02T12:04:23 | JavaScript | UTF-8 | Python | false | false | 2,031 | py | """mobileapplayoutedito_1615 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
24ecbd3ad063a8ae536e546d04c968566679b25e | ea6417b15c346d794efdf6066b8a3c38eabd9031 | /snlp/tasks/__init__.py | 55b303672972f83b68513f5bf7e5e24ce24cae11 | [] | no_license | DilegentMancha/NLP-Pytorch-Template | ecfcd89f74336c0bb792fecc6732bd9a047810b9 | df48a49558a6fa9adaa5401e8fb891cc482c87c4 | refs/heads/master | 2023-07-17T09:38:32.321530 | 2020-09-08T12:35:47 | 2020-09-08T12:35:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: zessay
@license: (C) Copyright Sogou.
@contact: zessay@sogou-inc.com
@file: __init__.py.py
@time: 2019/12/3 19:53
@description:
'''
from snlp.tasks.classification import Classification
from snlp.tasks.ranking import Ranking
| [
"zhushuai0403@163.com"
] | zhushuai0403@163.com |
39f566df751b90c3202ca6174e772e1f1ad5f8ea | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v5/googleads-py/google/ads/googleads/v5/enums/types/tracking_code_type.py | dc1d1dbee8b3cc05e20159aa605a48cdeeac2311 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
e6c0430968577ad530fab20279aab087d6e83029 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/v1_0/people_v1_0/azext_people_v1_0/generated/action.py | 598dbb4d13de78f42cfe02620a80c83f4c492895 | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 10,757 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
3d72f9447338d71bceabb3028a00beb80c2e2322 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/components/security_state.gypi | d1376b44b98c41e71624ec337507975367c5a160 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 1,103 | gypi | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'security_state',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
99843d62c4372d967be4baed0fafda7ebb33c8dd | 8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6 | /venv/Lib/site-packages/mypy/typeshed/stdlib/2/posix.pyi | dd867a26690e268bebfe48105750fce9b74ac0a1 | [] | no_license | RodrigoNeto/cursopythonyt | fc064a2e6106324e22a23c54bdb9c31040ac9eb6 | 279dad531e21a9c7121b73d84fcbdd714f435e7e | refs/heads/master | 2023-07-03T00:54:09.795054 | 2021-08-13T12:42:24 | 2021-08-13T12:42:24 | 395,646,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,597 | pyi | from _typeshed import FileDescriptorLike
from typing import IO, AnyStr, Dict, List, Mapping, NamedTuple, Optional, Sequence, Tuple, TypeVar, Union
error = OSError
confstr_names: Dict[str, int]
environ: Dict[str, str]
pathconf_names: Dict[str, int]
sysconf_names: Dict[str, int]
_T = TypeVar("_T")
EX_CANT... | [
"rodrigoneto.forseti@gmail.com"
] | rodrigoneto.forseti@gmail.com |
aa8626fcdab499fda35b0037bc3a4716d7af2513 | cb7c3673ad937c282a39be74d0aee8628e75928d | /tests/test_utils/output/ifabsents2.py | 41cc3942f29f70954253d52330a86acafc790408 | [
"CC0-1.0"
] | permissive | bpow/linkml | 649d6d48f39a8c51efa92fba7eb25c1d8854b472 | ab83c0caee9c02457ea5a748e284dee6b547fcd6 | refs/heads/main | 2023-05-05T18:46:04.501897 | 2021-05-13T21:17:03 | 2021-05-13T21:17:03 | 371,163,928 | 0 | 0 | CC0-1.0 | 2021-05-26T20:42:13 | 2021-05-26T20:42:12 | null | UTF-8 | Python | false | false | 5,867 | py | # Auto generated from ifabsents2.yaml by pythongen.py version: 0.9.0
# Generation date: 2021-03-26 14:22
# Schema: ifabsent
#
# id: http://example.org/tests/ifabsent
# description:
# license:
import dataclasses
import sys
import re
from typing import Optional, List, Union, Dict, ClassVar, Any
from dataclasses import d... | [
"action@github.com"
] | action@github.com |
357fe6dbcd95b2450f92f84a660619bdd6b7f03b | c4ecc70400f3c4375dd4b2335673137dd36b72b4 | /venv/lib/python3.6/site-packages/xero_python/accounting/models/branding_theme.py | 7ee0ad4229cbb8785cc665b7f1d02577367e5533 | [
"MIT"
] | permissive | TippyFlitsUK/FarmXero | 1bb3496d164d66c940bd3012e36e1763990ff30d | 881b1e6648e927631b276e66a4c5287e4de2cbc1 | refs/heads/main | 2023-07-05T14:49:57.186130 | 2021-08-19T19:33:48 | 2021-08-19T19:33:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,362 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
clas... | [
"ben.norquay@gmail.com"
] | ben.norquay@gmail.com |
3ec00b6f81d1bc216b508383155476be4ceabd75 | 6af44c684d1164e849c47a381facce11af6b45a1 | /apps/taobao/admin.py | e09a89f599f51197a8c9c85d9125db636fdfc0d7 | [
"MIT"
] | permissive | dsjbc/linjuanbang | cdfa84f7c7e2a89dc840c476bea92c4ff4d4de84 | 8cdc4e81df73ccd737ac547da7f2c7dca545862a | refs/heads/master | 2022-03-16T20:43:42.005432 | 2019-11-25T10:15:11 | 2019-11-25T10:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from django.contrib import admin
# Register your models here.
from .models import Tao,Carteary,Banner
class TaoAdmin(admin.ModelAdmin):
list_display = ['appkey','secret','adzone_id','add_time']
class CartearyAdmin(admin.ModelAdmin):
list_display = ['title','active','add_time']
class BannerAdmin(admin.Mo... | [
"tarena_feng@126.com"
] | tarena_feng@126.com |
8dde31d3c453466b15a5de63f47b9c011ad21dbc | e3d6d3ee533b49b01dbfde9f5810d00679bc58d0 | /HiredGun/projects/migrations/0002_session_invoice.py | 1f786ffac5fce97656d45cc5f47bc43fada481cc | [] | no_license | AlexEngelhardt/hired-gun | 4ed1e88d14438844960bf8e3b041cc2e2a41bb41 | a49670b33665256c04ab01416dce91096c5993fe | refs/heads/master | 2020-03-24T20:18:52.631277 | 2019-05-07T15:54:51 | 2019-05-07T15:54:51 | 142,971,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Generated by Django 2.0.7 on 2018-08-18 08:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('invoices', '0002_invoice_client'),
('projects', '0001_initial'),
]
operations = [
migrations.AddFie... | [
"alexander.w.engelhardt@gmail.com"
] | alexander.w.engelhardt@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.