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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b97d80c5929e9b8e0c5d063c370f852396e5f312 | 03d7375757324e7ff1d3c9ab187230581d54416d | /backend/rent_a_road_test_3250/wsgi.py | 579cf1810f7da700f3d420b0e011e94c1c08dd8b | [] | no_license | crowdbotics-apps/rent-a-road-test-3250 | 6d657e2d68dc1c5d94fa4504b239ff2b5caea1fc | 847636c17ed56722f64dc3b18765c81364aaf80a | refs/heads/master | 2022-12-08T10:54:58.557243 | 2019-05-13T01:35:42 | 2019-05-13T01:35:42 | 186,325,879 | 0 | 0 | null | 2022-12-06T15:59:27 | 2019-05-13T01:35:39 | JavaScript | UTF-8 | Python | false | false | 420 | py | """
WSGI config for rent_a_road_test_3250 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
76272de482e0e63b6b221d492c32ad0b05144b48 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/zd/CB_ZD_Mesh_Recovery_SSID_Testing.py | fda260e9213a84cb8606005a0f95c60cdf109186 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,930 | py | # Copyright (C) 2011 Ruckus Wireless, Inc. All rights reserved.
# Please make sure the following module docstring is accurate since it will be used in report generation.
"""
Description:
@author: An Nguyen
@contact: an.nguyen@ruckuswireless.com
@since: Feb 2012
Prerequisite (Assumptions about the stat... | [
"tan@xx.com"
] | tan@xx.com |
1f82a2aa9fdec35d68ece70fff55bb94073d3df2 | 62e5b9ccdc8ee3671156919a2b44fba17e429089 | /bin/env.py | 4f6cb5de4ccf59fb09d32cb7b7ad6f32862e84bf | [
"CC0-1.0"
] | permissive | ccgeom/ccg-notes | 609cf4a761ec3d0f24a14cea408e9d5604fafc74 | 6fade9e0ebbbe747d0f07457aa8047470d15ca1b | refs/heads/master | 2022-08-26T10:43:15.112786 | 2022-07-08T04:39:46 | 2022-07-08T04:39:46 | 62,777,276 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | #!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
import sys
import os
import virtualenv as venv
"""
Colorful output
"""
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = "\033[1m"
def head(msg):
print(HEADER + msg + ENDC)
def info(msg):
... | [
"mingli.yuan@gmail.com"
] | mingli.yuan@gmail.com |
a7d718c61e135fceba95959631eed10c720cf4dd | 53ccc4f5198d10102c8032e83f9af25244b179cf | /SoftUni Lessons/Python Development/Python Fundamentals June 2019/Problems and Files/03. PYTHON INTRO, FUNCTIONS, DEBUGGING/Functions-and-Debugging/04. Draw a Filled Square.py | e4dde5e933fe0544aed1d0ecfb3f1f25e1cdd415 | [] | no_license | SimeonTsvetanov/Coding-Lessons | aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d | 8f70e54b5f95911d0bdbfda7d03940cb824dcd68 | refs/heads/master | 2023-06-09T21:29:17.790775 | 2023-05-24T22:58:48 | 2023-05-24T22:58:48 | 221,786,441 | 13 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | """
Functions and Debugging
Проверка: https://judge.softuni.bg/Contests/Compete/Index/922#3
04. Draw a Filled Square
Условие:
Draw at the console a filled square of size n like in the example:
Examples
Input:
4
Output:
--------
-\/\/\/-
-\/\/\/-
--------
Hints
1. Read the input
2. Create a functio... | [
"noreply@github.com"
] | SimeonTsvetanov.noreply@github.com |
9a9cca7de31b0609496ea4dcd0f6039c86ee463c | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/applications/ManagerApplication/test_examples/henry.py | d9cc93e644ba5e85b9ef36843485c17350e78ac9 | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,736 | py | #setting the domain size for the problem to be solved
domain_size = 2 # 2D problem
#including kratos path
import sys
from KratosMultiphysics import * #we import the KRATOS
from KratosMultiphysics.ManagerApplication import * #and now our application
from KratosMultiphysics.HenryApplication import * ... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com |
6f444bfe806a2c58d244d733db0a18853b36e3a1 | 97cb35277f4cbeb44b83ce75a4bcd8c008863d2d | /articles/migrations/0001_initial.py | e6c9b63f6136de188e39b1c141e3a7f462120d3d | [] | no_license | TareqMonwer/CS-Basic-Django-Project | 586dd17370929428dcc1ad8a3a9b83b487a40382 | a0769caba38b6063b4761d3f8cdb593f7053f12e | refs/heads/main | 2023-07-15T19:19:49.337261 | 2021-08-28T17:21:54 | 2021-08-28T17:21:54 | 400,535,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # Generated by Django 3.2.6 on 2021-08-28 16:38
from django.db import migrations, models
import django.db.models.functions.text
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
... | [
"tareqmonwer137@gmail.com"
] | tareqmonwer137@gmail.com |
e2f87b38b11fcc268984013e2471c1e0b3709e7a | 8951fd5293dfb77c64ceddd19459e99a0c1cf677 | /kvmagent/kvmagent/test/test_nfs_primary_storage_create_empty_volume.py | c77db100f78667df482bbef222b8634d3420813f | [
"Apache-2.0"
] | permissive | SoftwareKing/zstack-utility | 7cdc229f05ac511214135fcaa88b5acf5aa08126 | 4765928650cde4f4472a960de9e93a849a5555e3 | refs/heads/master | 2021-01-18T18:20:55.913454 | 2015-09-01T13:39:26 | 2015-09-01T13:39:26 | 41,954,728 | 1 | 0 | null | 2015-09-05T08:46:12 | 2015-09-05T08:46:12 | null | UTF-8 | Python | false | false | 2,127 | py | '''
@author: Frank
'''
import unittest
import time
import os.path
from kvmagent import kvmagent
from kvmagent.plugins import nfs_primarystorage_plugin
from zstacklib.utils import http
from zstacklib.utils import jsonobject
from zstacklib.utils import log
from zstacklib.utils import uuidhelper
from zstackl... | [
"xing5820@gmail.com"
] | xing5820@gmail.com |
9f6bb109db8b941489c1b95f3573d745e1820854 | 64b135891387dac3a4bb29f3001a524830d0e4e4 | /identities/urls.py | abfe0abcb60a404366d0a0c606133c58c7fdf59d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | dynamicguy/treeio | 9ad52802722b64a212e22710c04dbb0bb50d831e | 4f674898cff2331711639a9b5f6812c874a2cb25 | refs/heads/master | 2021-08-28T11:25:41.504635 | 2014-01-31T17:16:22 | 2014-01-31T17:16:22 | 11,323,559 | 0 | 0 | NOASSERTION | 2021-08-16T20:18:53 | 2013-07-10T20:31:31 | Python | UTF-8 | Python | false | false | 4,876 | py | # encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
Identities module URLs
"""
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('treeio.identities.views',
url(r'^(\.(?P<response_format>\w+))?$', 'index', name='identities... | [
"letoosh@gmail.com"
] | letoosh@gmail.com |
2a4b56c826c10ff5f08b34c6eaad0370b5779382 | ca2ebf664e1d4b7338d014ca92a95bebe31063ff | /greeter_client.py | 3edd2bd9bf6ef469dc18f0f5cd08cb4c4f03ab5b | [] | no_license | ttpro1995/playground-grpc | cfc5d9fbad085da39286cad25181884d3d052468 | 3b41ebbaadc27deb0c06b806a3dcc928f3eaaf34 | refs/heads/master | 2023-03-26T10:26:10.595902 | 2021-03-27T11:29:57 | 2021-03-27T11:29:57 | 352,055,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import grpc
import hello_pb2_grpc
import hello_pb2
channel = grpc.insecure_channel('localhost:50051')
stub = hello_pb2_grpc.GreeterStub(channel)
response = stub.SayHello(hello_pb2.HelloRequest(name='you'))
print("Greeter client received: " + response.message)
response = stub.SayHelloAgain(hello_pb2.HelloRequest(name='... | [
"tthien@apcs.vn"
] | tthien@apcs.vn |
f4084b1a4d000098c78ec59feb3865cb7fad3d77 | d23e26d37b42fbce4fe51add8f2d3b29bc38f865 | /projecteuler/p035.py | fd3d2afae9dbc1a44e36e60c0025772d79f975b7 | [
"MIT"
] | permissive | rene-d/math | 6728908a3c6c6c6dc5cf77c1c8a52412c90459b9 | 34d33bdfbf2756f442c0deb085b940262d8a1f44 | refs/heads/master | 2022-11-05T04:20:41.204352 | 2022-10-23T08:01:04 | 2022-10-25T06:06:19 | 117,944,288 | 4 | 0 | null | 2018-02-02T21:45:40 | 2018-01-18T06:50:42 | Python | UTF-8 | Python | false | false | 814 | py | """
Circular primes
The number, 197, is called a circular prime because all rotations of the digits:
197, 971, and 719, are themselves prime.
There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97.
How many circular primes are there below one million?
https://projecteuler.net/p... | [
"rene.devichi@gmail.com"
] | rene.devichi@gmail.com |
ed18e68ccd011c6613dbedac5a2f84f27a16f8ca | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/dossiers2/__init__.py | 88ded47466e28f07d7c6af032904a1d6282b0a24 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 610 | py | # 2017.08.29 21:52:49 Střední Evropa (letní čas)
# Embedded file name: scripts/common/dossiers2/__init__.py
from dossiers2.common.utils import getDossierVersion
from dossiers2.custom import updaters
from dossiers2.custom.builders import *
def init():
from dossiers2.custom import init as custom_init
custom_init... | [
"info@webium.sk"
] | info@webium.sk |
7b0ab2d7afed8a101332881219940266b8fe20d0 | 20acd4e916ce4bccbfaba12158e348e49923c46b | /setup.py | ff24496d325c047d807ce593e0428cf9216e5367 | [] | no_license | noseapp/noseapp_alchemy | 3df4999a9fcc476f42624609ed049a8528dbdfff | f6606990befd147852fd939c16a6f85de143d52f | refs/heads/master | 2023-04-30T21:46:28.407386 | 2015-05-29T17:47:36 | 2015-05-29T17:47:36 | 30,965,543 | 1 | 1 | null | 2023-04-16T02:42:30 | 2015-02-18T12:56:29 | Python | UTF-8 | Python | false | false | 655 | py | # -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
__version__ = '1.0.0'
if __name__ == '__main__':
setup(
name='noseapp_alchemy',
url='https://github.com/trifonovmixail/noseapp_alchemy',
version=__version__,
packages=find_packages(),
... | [
"mikhail.trifonov@corp.mail.ru"
] | mikhail.trifonov@corp.mail.ru |
f65b0b1dc6d7043f86f1a147c66acad09a14d0b1 | f7574ee7a679261e758ba461cb5a5a364fdb0ed1 | /PopulatingNextRightPointersinEachNodeII.py | 1ff5842f547af6b76b2f6a0ce91307d35175faa3 | [] | no_license | janewjy/Leetcode | 807050548c0f45704f2f0f821a7fef40ffbda0ed | b4dccd3d1c59aa1e92f10ed5c4f7a3e1d08897d8 | refs/heads/master | 2021-01-10T19:20:22.858158 | 2016-02-26T16:03:19 | 2016-02-26T16:03:19 | 40,615,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | # Definition for binary tree with next pointer.
# class TreeLinkNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# self.next = None
class Solution(object):
def connect(self, root):
"""
:type root: TreeLinkNode
:... | [
"janewjy87@gmail.com"
] | janewjy87@gmail.com |
793df36891361844131a4d33e050c547c0b01bfc | 59d7db2d959e071991ece694728958b08a6f7c58 | /envs/create_game/levels/create_game_marker.py | 772a0d58b12cf5021463822a56ef3b8f0d5823b7 | [] | no_license | Sivinious/cse257 | 04cdd6f14a7ac0db66626e93305e4015256f1433 | 6b6f21c289094487da89b261af0dacba8135cd25 | refs/heads/main | 2023-05-15T08:12:54.908326 | 2021-05-29T10:12:39 | 2021-05-29T10:12:39 | 371,932,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | import numpy as np
from .create_level_file import CreateLevelFile
def ball_begin_handler(arbiter, space, data):
obj_1 = arbiter.shapes[1]
obj_2 = arbiter.shapes[0]
if hasattr(obj_1, 'is_marker') and hasattr(obj_2, 'is_target'):
obj_1.hit_target = True
if hasattr(obj_2, 'is_marker') and hasattr... | [
"Sivinious@users.noreply.github.com"
] | Sivinious@users.noreply.github.com |
6ce7c3b81e8347c816509e1759efdab460e04679 | 7733ae47afbf86989e1d3bfd06b9c4ca3edba0e1 | /data_structures/stacks/stack_using_linked_list.py | 0779cac32020c3ac7817c2ae4335cb52817268a7 | [] | no_license | EricMontague/Datastructures-and-Algorithms | 853ac290557e9ecf60c187401a7d576a99529ba7 | 2ce6d8b893f0b8affc8c880165fb3f7ecfdeb19b | refs/heads/master | 2021-07-25T14:59:59.059604 | 2021-01-26T18:24:44 | 2021-01-26T18:24:44 | 242,427,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | """This module contains my implementation of a stack
based on a singly linked list.
"""
class StackItem:
"""Class to represent an item in a stack."""
def __init__(self, data):
self.data = data
self.next = None
class Stack:
"""Class to represent a stack based on a singly linked list."""
... | [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
9707670f3dec472dded3c7da0ce0d31e2033090f | d668209e9951d249020765c011a836f193004c01 | /tools/pnnx/tests/test_F_unfold.py | 51f19a4f48a4b788476ea755f31fd662ef8f4214 | [
"BSD-3-Clause",
"Zlib",
"BSD-2-Clause"
] | permissive | Tencent/ncnn | d8371746c00439304c279041647362a723330a79 | 14b000d2b739bd0f169a9ccfeb042da06fa0a84a | refs/heads/master | 2023-08-31T14:04:36.635201 | 2023-08-31T04:19:23 | 2023-08-31T04:19:23 | 95,879,426 | 18,818 | 4,491 | NOASSERTION | 2023-09-14T15:44:56 | 2017-06-30T10:55:37 | C++ | UTF-8 | Python | false | false | 1,747 | py | # Tencent is pleased to support the open source community by making ncnn available.
#
# Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the... | [
"noreply@github.com"
] | Tencent.noreply@github.com |
a5513dfc2836838bb3c4606c9f502067189dd421 | fd3da963aa5ad8ff0d6cf0cc4c9d9ff05f9135ca | /apps/goodss/urls.py | dd136dd536f0526fb077f7ce93ae0e9e66f4032a | [] | no_license | huanshenyi/rental-system-backed | 083dbfe18d28e7f0111282a93c84c415098d07f5 | 3c9487dcb9e650036a2a533a10a3c66f762b6fdb | refs/heads/master | 2022-12-14T18:05:29.876973 | 2020-08-15T13:32:55 | 2020-08-15T13:32:55 | 281,384,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | __author__ = "ハリネズミ"
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter(trailing_slash=False)
router.register("goods", views.GoodsViewSet, basename="goods")
router.register("category", views.CategoryViewSet, basename="category")
router.register("tag", views.TagViewSet, basename=... | [
"txy1226052@gmail.com"
] | txy1226052@gmail.com |
b28c117e4cb45e821c162342a952aaee187604aa | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_BoxCox/trend_ConstantTrend/cycle_0/ar_12/test_artificial_128_BoxCox_ConstantTrend_0_12_100.py | 02cb32eb108b5b7dafaa5e8d7ad78612f5428a54 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 272 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 0, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
1770713e3f35011aa2ee76ea0965250841cc4f2c | 08a851f0d7218beb6c32b5438595c44bb2498af9 | /library/migrations/0004_auto_20150908_1625.py | 3ed5fa8c629bbc36ffed2de3dd854b3f049ef822 | [] | no_license | KobiBeef/base_src | 47ff5a1ecbab0953f74b41533cafbd26eb428e16 | 975294df5edee8d1f441470a7e1cf8ce59778a0b | refs/heads/master | 2020-06-05T08:30:21.358458 | 2015-12-08T08:09:06 | 2015-12-08T08:09:06 | 41,631,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('library', '0003_testcomment'),
]
operations = [
migrations.AlterModelOptions(
name='contact',
option... | [
"ezekielbacungan@gmail.com"
] | ezekielbacungan@gmail.com |
a91ef44aa843bd22308c6d92577a6f5676cd70fc | d7fb8743b6faa4d948b2b08ca0dbdd3b0f11379b | /测试代码/keras/已经/1keras_lstm1/stock_lstm4.py | 9b08b23f74975fac2ad2d7555aae9d4185fb679b | [] | no_license | bancheng/Stock-market | 219e9882858e6d10edad1d13fba67dadbedc27ba | 142ea0eaed0fdccd8e79a51c34d66d1be1c336ed | refs/heads/master | 2021-01-20T15:13:14.667022 | 2017-09-10T06:31:10 | 2017-09-10T06:31:10 | 90,737,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | py | from __future__ import absolute_import
from __future__ import print_function
import numpy as np
import cPickle as pkl
from keras.preprocessing import sequence, text
from keras.optimizers import SGD, RMSprop, Adagrad
from keras.utils import np_utils
from keras.models import Sequential
from keras.layers.core import Dens... | [
"tangdongge@buaa.edu.cn"
] | tangdongge@buaa.edu.cn |
e8b83c5dc9d4999541cb30f76d63cb23ff3fff7d | 814992618962991b1b6dd6f1cdf2853687cbfcd0 | /examples/demo_013_HEOM.py | 8fee2c5b5ca6c9822e512aeed24a2b19cfcb9ad4 | [
"MIT"
] | permissive | MichalPt/quantarhei | a5db7916405236dc78778e4ef378141a19a28ff2 | 536d4f39bb7f7d6893664520351d93eac2bc90f1 | refs/heads/master | 2022-12-15T09:36:53.108896 | 2022-07-28T09:44:12 | 2022-07-28T09:44:12 | 226,359,238 | 1 | 0 | MIT | 2019-12-06T15:37:24 | 2019-12-06T15:37:23 | null | UTF-8 | Python | false | false | 7,159 | py | # -*- coding: utf-8 -*-
_show_plots_ = True
import time
import numpy
import quantarhei as qr
from quantarhei.qm.liouvillespace.integrodiff.integrodiff \
import IntegrodiffPropagator
print("")
print("***********************************************************")
print("* ... | [
"tmancal74@gmail.com"
] | tmancal74@gmail.com |
93b9fc099bbdf4f52185cf649eff703a84c41fea | 8adec48dfaee1cdfd6c7f4d2fb3038aa1c17bda6 | /WProf/build/third_party/twisted_8_1/twisted/flow/.svn/text-base/pipe.py.svn-base | 8b38e07fb29e21544889a65343483bfd058430b2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kusoof/wprof | ef507cfa92b3fd0f664d0eefef7fc7d6cd69481e | 8511e9d4339d3d6fad5e14ad7fff73dfbd96beb8 | refs/heads/master | 2021-01-11T00:52:51.152225 | 2016-12-10T23:51:14 | 2016-12-10T23:51:14 | 70,486,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,446 | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
#
# Author: Clark Evans (cce@clarkevans.com)
"""
flow.pipe
This contains various filter stages which have exactly one input stage. These
stages take a single input and modify its results, ie a rewrite stage.
"""
from base import *
f... | [
"kusoof@kookaburra.(none)"
] | kusoof@kookaburra.(none) | |
07b9fc3d3d2f5b66826d0b99c52e23bcaeee837f | b3bf0dfda920950cbc4215a2f591606473398706 | /contact_manager/users/apps.py | b9b9054731b1bdc5afc95af824ba0d884b4ac2f8 | [] | no_license | adeelehsan/contact_manager | 34fa9d4fc9a6e03651b7e81cd144d9380629be33 | d5455a524726ca8577a628d6b2abb6885291e600 | refs/heads/master | 2020-03-25T18:07:28.213197 | 2018-08-08T13:08:34 | 2018-08-08T13:08:34 | 144,013,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.apps import AppConfig
class UsersAppConfig(AppConfig):
name = "contact_manager.users"
verbose_name = "Users"
def ready(self):
try:
import users.signals # noqa F401
except ImportError:
pass
| [
"adeel.ehsan@arbisoft.com"
] | adeel.ehsan@arbisoft.com |
0702dfcb63672e54fa4461c0fef1e5dec473a471 | d4442db5a7ab9db2b04fef640a9864f3fba54758 | /src/python/WMCore/RequestManager/RequestMaker/Processing/StoreResultsRequest.py | 6262e7d3ca23c220082d5f4d37caec6a43e306c8 | [] | no_license | stuartw/WMCore | fa25ff19ab5058a635d35d3c58a0ac56a3e079a1 | 38c39c43f7237fd316930839674ac9be3c0ee8cc | refs/heads/master | 2021-01-18T07:18:18.324604 | 2012-10-18T22:30:34 | 2012-10-18T22:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | #!/usr/bin/env python
"""
_StoreResultsRequest_
"""
from WMCore.RequestManager.RequestMaker.RequestMakerInterface import RequestMakerInterface
from WMCore.RequestManager.DataStructs.RequestSchema import RequestSchema
from WMCore.RequestManager.RequestMaker.Registry import registerRequestType, retrieveRequestMaker
cl... | [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
49914a6ca92efeecfc33636379136600b1830cee | cb30d1a3a4fa6c8f7a6f89a671fbdb4a808e19e3 | /c6/prime-iter.py | b70bd78b2b00c2e5f38c042c7396b319d0036b5b | [] | no_license | systemchip/python-for-everyone | 0b45172ca5b41c3b5fc1a835fbccf4a479c282ea | 9fb7f751a97fb6a110079e1e3e1dd9601fb24374 | refs/heads/master | 2021-09-02T09:18:22.013704 | 2017-07-17T07:46:19 | 2017-07-17T07:46:19 | 115,913,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # 소수를 열거하는 이터레이터 클래스
class PrimeIter:
def __init__(self, max):
""" 최대값을 지정한다 """
self.max = max
def __iter__(self):
""" 값을 초기화한다 """
self.n = 1
return self
def __next__(self):
""" 다음 소수를 찾아서 반환한다 """
is_prime = False
self.n += 1
# 소수... | [
"dylee@wikibook.co.kr"
] | dylee@wikibook.co.kr |
30f827f6ddccc3e1c29f529fc940673d80998089 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Lazymux/sqlmap/lib/core/optiondict.py | 28b61b85b21e4eae996bc3bcfdf792f120d171bf | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d81f4b1eec17cebb5bc92268f0648acad5c4739e63d3fe400f570e68878dc011
size 7119
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
229f24e48680f186185ca451cd5de90fd1dd6eda | 0df73a877fd521b5e0ab95bb261751c87f1f4b39 | /Scripts/getBranchGroupFnPlanning.py | 39cf13426b15ffa606a9f6bd92b2b1dea52ecc56 | [] | no_license | bikiranguha/Bus-Map | 6bcb907c257e2dc4fcc47dd27772159b51fa2b08 | 8ef96e9027e3abb953834bd76981bcc689ef5250 | refs/heads/master | 2020-03-08T06:56:55.703128 | 2018-07-15T17:51:12 | 2018-07-15T17:51:12 | 127,983,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | """
Function to generate a dictionary which will contain a list of ties of the bus.
Bus will not be present in keys if no ties connected to it
"""
import math
from Queue import Queue
#import sys
#sys.path.insert(0,'C:/Users/Bikiran/Google Drive/Bus Mapping Project Original/Donut Hole Approach/Donut Hole v2')
#from g... | [
"Bikiran Guha"
] | Bikiran Guha |
cb696f10d6758f10de4b5722c710e854e06b2176 | 6ef3fc3ffa5f33e6403cb7cb0c30a35623a52d0d | /samples/generated_samples/vision_v1p3beta1_generated_product_search_delete_product_set_sync.py | 5fdcd34e44b44a9d64020ff62b4d50001492f599 | [
"Apache-2.0"
] | permissive | vam-google/python-vision | 61405506e3992ab89e6a454e4dda9b05fe2571f2 | 09e969fa30514d8a6bb95b576c1a2ae2c1e11d54 | refs/heads/master | 2022-08-15T08:40:35.999002 | 2022-07-18T16:04:35 | 2022-07-18T16:04:35 | 254,789,106 | 0 | 0 | Apache-2.0 | 2020-04-11T03:59:02 | 2020-04-11T03:59:01 | null | UTF-8 | Python | false | false | 1,432 | py | # -*- coding: utf-8 -*-
# Copyright 2022 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 or... | [
"noreply@github.com"
] | vam-google.noreply@github.com |
1c88935573d4ec33c04ab459f2367009017d9a8e | 872cd13f25621825db0c598268ecd21b49cc2c79 | /Lesson_15/client/jim/constants.py | 9177b988ee7dc22ebac20bffc54f392cdef79639 | [] | no_license | ss2576/client_server_applications_Python | c4e9ebe195d23c8ca73211894aa50a74014013d5 | 9b599e37e5dae5af3dca06e197916944f12129d5 | refs/heads/master | 2022-12-15T10:40:22.935880 | 2020-08-12T11:02:21 | 2020-08-12T11:02:21 | 271,764,749 | 0 | 0 | null | 2020-06-12T10:05:00 | 2020-06-12T09:52:03 | Python | UTF-8 | Python | false | false | 513 | py | """ Module of constants used in jim protocol """
TYPE = 'type'
REQUEST = 'request'
RESPONSE = 'response'
ACTION = 'action'
TIME = 'time'
BODY = 'body'
CODE = 'code'
MESSAGE = 'message'
USERNAME = 'username'
PASSWORD = 'password'
SENDER = 'sender'
TO = 'to'
TEXT = 'text'
class RequestAction:
""" Class the storag... | [
"ss2576@mail.ru"
] | ss2576@mail.ru |
3ea54c81060a1f933135e5577dde53919207f182 | 286b6dc56323f982092ffafbfac8a32dbbaeb7ef | /training_assignments/SandipBarde/SandipBarde_day_5_assignment/exception_02.py | 99842d6af8c79e12aa1ef5f2077b2c9dc80d9a8e | [] | no_license | learndevops19/pythonTraining-CalsoftInc | ccee0d90aadc00bfdb17f9578620f6bf92f80a4c | c5f61516b835339b394876edd1c6f62e7cc6f0c3 | refs/heads/master | 2021-02-05T04:27:17.590913 | 2019-11-20T17:27:06 | 2019-11-20T17:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py |
class NegativePriceException(Exception):
def __init__(self, msg):
self.message = msg
if __name__ == "__main__":
price = float(input("Enter the price\n"))
try:
if(price < 0):
raise NegativePriceException("Inside the Exception:- Price is less than zero.")
else:
... | [
"rajpratik71@gmail.com"
] | rajpratik71@gmail.com |
2844c12c08b01fdbe4ddf201e376874c8b13a2d0 | 01f2986123256d03d731303daa68b742ea4fe23d | /Второй максимум.py | bbc8490544693dbda3ae5d4a80a48a3842bd4ba5 | [] | no_license | mayhem215/Python | 65e05176de50b1f589ca991ac5d9f03b4ca00fa2 | f974d89d52a5aa8553151ea15a8b62e7c7c07cf5 | refs/heads/master | 2020-04-08T11:03:20.372914 | 2018-11-27T07:07:09 | 2018-11-27T07:07:09 | 159,291,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | m1 = int(input())
m2 = int(input())
if m1 < m2:
m1, m2 = m2, m1
n = int(input())
while n != 0:
if n > m1:
m2, m1 = m1, m2
elif n > m2:
m2 = n
n = int(input())
print(m2) | [
"mayhem15@mail.ru"
] | mayhem15@mail.ru |
4a71558e39cfe45057c00d2d00e55cb99ba434b8 | c3a3ae45f6fb22bdb3c622498c7ff1c2c2732f6a | /day20/homework/s12bbs/bbs/views.py | 7c19039a94703905939c5b42343c2ea255fe2444 | [] | no_license | huyuedong/S12 | df6b56cf05bb9f9c4a6e54b6a5228f1715e20245 | 61aa6d91f4e70f87c9b4c4b1e2042d5eeb2e2c3d | refs/heads/master | 2020-12-14T08:50:57.514965 | 2016-07-30T01:45:03 | 2016-07-30T01:45:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | from django.shortcuts import render, redirect, HttpResponse
from bbs import models
from django.db.models import F, Q, Count, Sum, aggregates
from bbs import forms
from bbs.bll import uploadfile_handler, comments_handler
from datetime import datetime, timezone
# Create your views here.
# 从数据库中找出所有set_as_top_menu=True... | [
"liwenzhou7@gmail.com"
] | liwenzhou7@gmail.com |
37ea7ab064e4996dca287d814428daa3078abc0a | aa4b80cf7e7ac0028d0c7f67ade982d9b740a38b | /python/touple/touple_t.py | 9137b51f9f319510cd7c35b7e666637c5b9bd7b2 | [] | no_license | ratularora/python_code | 9ac82492b8dc2e0bc2d96ba6df6fdc9f8752d322 | ddce847ba338a41b0b2fea8a36d49a61aa0a5b13 | refs/heads/master | 2021-01-19T04:34:22.038909 | 2017-09-27T08:14:45 | 2017-09-27T08:14:45 | 84,435,244 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py |
aList = [123, 'xyz', 'zara', 'abc'];
aTuple = tuple(aList)
print "Tuple elements : ", aTuple
aTuple.append('effd')
print aTuple
| [
"arora.ratul@gmail.com"
] | arora.ratul@gmail.com |
0498e3544e187420ab7cacac12ad7fd5a5fb2a9c | f908adce7e25824f7daaffddfaacb2a18b3e721b | /feder/letters/logs/migrations/0002_auto_20170820_1447.py | 4a5853834afff5e659b5fc69e8d1aaf1bbcfd885 | [
"MIT"
] | permissive | miklobit/feder | 7c0cfdbcb0796f8eb66fd67fa4dabddb99370a7c | 14a59e181a18af5b625ccdcbd892c3b886a8d97e | refs/heads/master | 2023-01-13T23:03:51.266990 | 2020-11-12T14:31:52 | 2020-11-12T15:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | # Generated by Django 1.11.4 on 2017-08-20 14:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("logs", "0001_initial")]
operations = [
migrations.AddField(
model_name="emaillog",
name="status",
field=models.CharF... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
16cea51f52ae930ff0c9d3a383497d26d391b856 | 80a3d98eae1d755d6914b5cbde63fd10f5cc2046 | /autox/autox_video/mmaction2/mmaction/datasets/rawframe_dataset.py | 9359e117b7f52bc234b0e389de0b731e96c9e8db | [
"Apache-2.0"
] | permissive | 4paradigm/AutoX | efda57b51b586209e1d58e1dab7d0797083aadc5 | 7eab9f4744329a225ff01bb5ec360c4662e1e52e | refs/heads/master | 2023-05-24T00:53:37.109036 | 2023-02-14T14:21:50 | 2023-02-14T14:21:50 | 388,068,949 | 752 | 162 | Apache-2.0 | 2022-07-12T08:28:09 | 2021-07-21T09:45:41 | Jupyter Notebook | UTF-8 | Python | false | false | 7,927 | py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import os.path as osp
import torch
from mmaction.datasets.pipelines import Resize
from .base import BaseDataset
from .builder import DATASETS
@DATASETS.register_module()
class RawframeDataset(BaseDataset):
"""Rawframe dataset for action recognition.
... | [
"caixiaochen@4ParadigmdeMacBook-Pro.local"
] | caixiaochen@4ParadigmdeMacBook-Pro.local |
1bc8f879513747c4fcd355558feb0b1ee673f864 | c11cd1d6a99eafa740c3aa6d9a9e90d622af9630 | /examples/ConvolutionalPoseMachines/load-cpm.py | b8999c203ea53bde85e9ba5e4158f11b1413ecf9 | [
"Apache-2.0"
] | permissive | bzhong2/tensorpack | 0c06e45ed2357cedd0d459511a2c85a07b522d2c | 0202038159fda7aa4baa2e249903b929949e0976 | refs/heads/master | 2021-07-02T19:05:10.948197 | 2017-09-24T09:47:13 | 2017-09-24T09:47:13 | 105,573,277 | 1 | 0 | null | 2017-10-02T19:02:49 | 2017-10-02T19:02:48 | null | UTF-8 | Python | false | false | 4,599 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# File: load-cpm.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import cv2
import tensorflow as tf
import numpy as np
import argparse
from tensorpack import *
from tensorpack.utils import viz
from tensorpack.utils.argtools import memoized
"""
15 channels:
0-1 head, neck
2-4... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
2b199881e94f19fe4b040e1da9ae0108a52c857f | 292d23019c18d0b724aed88f04a0f20b5b616bb9 | /Python1/Crawler/douban_movie1.py | b845a75327d8ec2485e72a9f2f10dabbb124ec4b | [] | no_license | RedAnanas/macbendi | 6f1f6fd41ed1fe8b71408dffa0b964464bd00aa8 | 8d5aa39d9389937f0e0c3f7a7d6532537f33cda8 | refs/heads/master | 2023-06-11T18:57:31.061009 | 2021-06-29T15:04:56 | 2021-06-29T15:04:56 | 380,759,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/2/7 17:41
# @Software: PyCharm
import requests
from bs4 import BeautifulSoup
base_url = 'https://movie.douban.com/top250?start=%d&filter='
for page in range(0, 25, 25):
allurl = base_url %int(page)
resp=requests.get(allurl)
soup ... | [
"1315157388@qq.com"
] | 1315157388@qq.com |
13700a8e3b257b54c718ee11ebc82eb267a92b87 | af8f0d50bb11279c9ff0b81fae97f754df98c350 | /src/tests/account/registration.py | 8717aa6a49451c1b33cfc8c6aa4bdab639888e5e | [
"Apache-2.0"
] | permissive | DmytroKaminskiy/ltt | 592ed061efe3cae169a4e01f21d2e112e58714a1 | d08df4d102e678651cd42928e2343733c3308d71 | refs/heads/master | 2022-12-18T09:56:36.077545 | 2020-09-20T15:57:35 | 2020-09-20T15:57:35 | 292,520,616 | 0 | 0 | Apache-2.0 | 2020-09-20T15:49:58 | 2020-09-03T09:09:26 | HTML | UTF-8 | Python | false | false | 4,191 | py | from urllib.parse import urlparse
from account.models import User
from django.conf import settings
from django.core import mail
from django.urls import reverse, reverse_lazy
from tests.const import URLS_PATTERN
URL = reverse_lazy('account:django_registration_register')
def test_registration_get(client):
respo... | [
"dmytro.kaminskyi92@gmail.com"
] | dmytro.kaminskyi92@gmail.com |
1c6a1215b0db21e8519fe8f44c4fd556a89e12d7 | 78c3808342711fe04e662cfea3d394e34841f2fb | /docs/rg/rgkod11.py | 05478f163c5d469994dbf4f3844fdac574ad4c29 | [] | no_license | astefaniuk/linetc | cd0f8aa1bb2858e971caddaf6e6396363ca50a47 | b23b3b4747dded19f7030862bf486a9e0f65b4e0 | refs/heads/master | 2021-01-22T13:08:15.266332 | 2015-06-12T21:37:59 | 2015-06-12T21:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | # idź bezpiecznie na najbliższego wroga
# wersja oparta na zbiorach
if wrogowie:
najblizszy_wrog = mindist(wrogowie,self.location)
else:
najblizszy_wrog = rg.CENTER_POINT
| [
"xinulsw@gmail.com"
] | xinulsw@gmail.com |
3510224b9ff10ba629557b67a1f2a7494d96ed42 | 4e353bf7035eec30e5ad861e119b03c5cafc762d | /QtCore/QElapsedTimer.py | 907ac3c36dc910112b15b9bf46aa8486cbb0d152 | [] | no_license | daym/PyQt4-Stubs | fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5 | 57d880c0d453641e31e1e846be4087865fe793a9 | refs/heads/master | 2022-02-11T16:47:31.128023 | 2017-10-06T15:32:21 | 2017-10-06T15:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | # encoding: utf-8
# module PyQt4.QtCore
# from C:\Python27\lib\site-packages\PyQt4\QtCore.pyd
# by generator 1.145
# no doc
# imports
import sip as __sip
class QElapsedTimer(): # skipped bases: <type 'sip.simplewrapper'>
"""
QElapsedTimer()
QElapsedTimer(QElapsedTimer)
"""
def cloc... | [
"thekewlstore@gmail.com"
] | thekewlstore@gmail.com |
fa7f36f70571120cbb262878199b1a168357ff47 | d9ecb105ed56979691f7776238301a3d0564665e | /ParameterUI/__init__.py | ac2bbe925bef7623a4a85333d4e5c6e16cb5d4d1 | [] | no_license | muyr/hapi_test | 4dcc5eb8e5aea4a18556002aec3d68301cb09024 | 910ca037d9afc8fd112ff6dc4fc8686f7f188eb0 | refs/heads/main | 2023-03-28T19:37:25.518719 | 2021-03-30T12:03:20 | 2021-03-30T12:03:20 | 309,288,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from MParameterLabel import MParameterLabel
from MParameterString import MParameterString
from MParameterStringChoice import MParameterStringChoice
from MParameterInteger import MParameterInteger
from MParameterIntegerChoice import MParameterIntegerChoice
from MParameterFloat import MParameterFloat
from MParameterFol... | [
"muyanru345@163.com"
] | muyanru345@163.com |
ad94f6c7e328945e686c5c49d7071033fa26365a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03549/s009493844.py | b43be6ebe855df366e38343d97e9fb47993b6a8d | [] | 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 | 608 | py | import sys
from collections import defaultdict, deque, Counter
import math
# import copy
from bisect import bisect_left, bisect_right
# import heapq
# sys.setrecursionlimit(1000000)
# input aliases
input = sys.stdin.readline
getS = lambda: input().strip()
getN = lambda: int(input())
getList = lambda: list(map(int... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c6c4e0a698e2185e960aa28af3da3501e4305561 | a2cbd654d7126c21442111fb315454561790b579 | /backend/dating/api/v1/urls.py | f32a7d281cd91a40f3f177ab0d3f660a362883a6 | [] | no_license | crowdbotics-apps/breakify-23632 | d43c9cfb23bf185c10499301f6e14ec441181907 | 14bc9010e101062f22a98837b5ac7e10de0511bf | refs/heads/master | 2023-02-09T11:07:18.680204 | 2020-12-31T16:20:19 | 2020-12-31T16:20:19 | 325,820,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import (
SettingViewSet,
ProfileViewSet,
InboxViewSet,
DislikeViewSet,
MatchViewSet,
UserPhotoViewSet,
LikeViewSet,
)
router = DefaultRouter()
router.register("inbox", InboxViewSet)
router.... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7bcc3b56f063f47763a83bf930c3fc789819f161 | 0ffd4524067a737faf34bb60c4041a23258ac5cd | /assignment1/q1_softmax.py | 9fc47b3c18a9c55b546f6e0848605fbe5bffcbe2 | [] | no_license | gjwei/cs224n | 6dc410ab2efc8dfc665711daac5dd1e396ae7c8f | 1ebdd31d5f3943547dc1654c756387ae5d7ef9f3 | refs/heads/master | 2021-08-23T02:38:47.120738 | 2017-12-02T16:11:32 | 2017-12-02T16:11:32 | 112,850,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | import numpy as np
def softmax(x):
"""
Compute the softmax function for each row of the input x.
It is crucial that this function is optimized for speed because
it will be used frequently in later code.
You might find numpy functions np.exp, np.sum, np.reshape,
np.max, and numpy broadcasting ... | [
"1449894353@qq.com"
] | 1449894353@qq.com |
efeea6d5486e83703709910a52331973707ea48f | e47875e83c19f8e7ec56fb1cf2ae7e67e650f15b | /kRPC/OrbitalLaunch/old/LaunchIntoOrbit_2.py | 4237e0b917cd2ff8ff4d5bc79f569b6e41f796bc | [] | no_license | crashtack/KSP | a69b031ca942adb9fd798de034605b2b2c229b8d | 2549319c116a4687639a0ebb59adafd8b6ce1ad9 | refs/heads/master | 2021-01-19T04:26:20.143710 | 2017-12-07T05:17:50 | 2017-12-07T05:17:50 | 63,728,682 | 0 | 0 | null | 2017-12-07T05:17:51 | 2016-07-19T21:17:52 | null | UTF-8 | Python | false | false | 2,517 | py | import krpc, time, math
turn_start_altitude = 250
turn_end_altitude = 90000
target_altitude = 200000
conn = krpc.connect(name='Launch Science Station to Orbit')
vessel = conn.space_center.active_vessel
# Set up streams for telemetry
ut = conn.add_stream(getattr, conn.space_center, 'ut')
altitude = conn.add_stream(ge... | [
"crashtack@gmail.com"
] | crashtack@gmail.com |
d67d3eaeff1fdd029f4ca5a75a83df6c79287ba1 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/models/keras_model/AverageEmbedding.py | 3a6238d5bcbbe898432e3adcac1b93bdc85d2781 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 828 | py | import keras
import tensorflow as tf
class WeightedSum(keras.layers.Layer):
def __init__(self):
super(WeightedSum, self).__init__()
def call(self, args):
x = args[0]
m = args[1]
s = tf.reduce_sum(x, axis=1)
d = tf.reduce_sum(tf.cast(tf.equal(m, 0), tf.float32), axis=-1... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
3d720c47a2290b71c9e834a808bf58802fdc1e16 | ecc1638f75a6ccd814923cb980e69d770c2525b7 | /Workspace for Python/studying file/class/Greeter.py | cac9ab6ba069fec9304a0df0bdd989b97385857d | [
"MIT"
] | permissive | ArchibaldChain/python-workspace | 5570e1df01f29f9916129e12d7fb1fb0608255d7 | 71890f296c376155e374b2096ac3d8f1d286b7d2 | refs/heads/master | 2022-12-01T03:00:37.224908 | 2020-08-04T10:04:47 | 2020-08-04T10:04:47 | 174,573,744 | 0 | 1 | MIT | 2022-11-22T04:02:07 | 2019-03-08T16:45:09 | Jupyter Notebook | UTF-8 | Python | false | false | 342 | py | class Greeter(object):
# constructor
def __init__(self, name):
self.name = name
# instance method
def greet(self, loud=False):
if loud:
print('HELLO, %s' % self.name.upper())
else:
print("hello, %s" % self.name)
g = Greeter('Freed')
g.gr... | [
"1156618773@qq.com"
] | 1156618773@qq.com |
8c9d773cf834776b2cef2c5b7df3300f7601ecc1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/bgp/bdevi.py | ced83174740c95c1b16930b1c648c607d05579b5 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,393 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
08a482edc4791f5a7c670fbd4fb08bbe58dbb95f | 6ee8765a4d98472d32b1aa22f9a885f4ab54adae | /select_with_filter.py | 8c55222aa57348a1abbd9c23bbe17e2ba7b5dcec | [] | no_license | rohitaswchoudhary/mysql_python | 31e9b55f30fdd87a7c7eb7d2b24e75f8d8cf58ce | 9160b7e374472ccfafadc39d6692bc7a798d99c0 | refs/heads/main | 2023-06-03T23:25:59.713109 | 2021-02-26T15:01:12 | 2021-02-26T15:01:12 | 377,754,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | import mysql.connector
mydb = mysql.connector.connect(
host='localhost',
user='root',
password='Rohitasw@2002',
database = "mydatabase"
)
mycursor = mydb.cursor()
# Select With a Filter
# When selecting records from a table, you can filter the selection by using the "WHERE" statement:
sql = "SELECT * FROM customers W... | [
"you@example.com"
] | you@example.com |
a343f6cb593f4ac770460ec9fed2e071f2bc7a98 | e0f133b49f9f0f416f14da70a2cadb7011c0cb7b | /new_spider/downloader_sx/sx_render_local_downloader_phantomJS.py | 8cdd9dc021fba1d1b144c03a5b6055d148945024 | [] | no_license | cash2one/python_frame | ac52d052fd3698303f1f4fa022f3b35a56e07533 | 2dbda155780a19cf42d5376104879d0667fbbf75 | refs/heads/master | 2021-06-18T13:28:40.356527 | 2017-06-28T02:51:35 | 2017-06-28T02:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,789 | py | # -*- coding: utf8 -*-
import sys
import traceback
import urllib2
from downloader.downloader import Downloader
from downloader_sx.list_pulldown_picture.sx_picture_phantomjs import FindPicture
reload(sys)
sys.setdefaultencoding('utf8')
# from downloader.picture_phantomjs
class HtmlLocalDownloader(Downloader):
""... | [
"1925453680@qq.com"
] | 1925453680@qq.com |
a547eea325ba1119f9fbf2b2bb4e7fcf323eb6cb | 9e30a239886210dc57e6c7cb9a71ad95a840712e | /views/posts_with_more_postive_recations/tests/__init__.py | 5bdbd747b63d59acf9e27cc1f37f3940355ac2b3 | [] | no_license | sridhar562345/fb_post_v2 | 0a26d661a3f335d9a9cf129c24265d7674b3fb22 | dfd150ab5521f05291f66944d7a8686a00477547 | refs/heads/master | 2022-11-08T00:32:35.752419 | 2020-06-23T15:32:02 | 2020-06-23T15:32:02 | 274,440,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # pylint: disable=wrong-import-position
APP_NAME = "fb_post_v2"
OPERATION_NAME = "posts_with_more_postive_recations"
REQUEST_METHOD = "get"
URL_SUFFIX = "more/postive/reactions/posts/v1/"
from .test_case_01 import TestCase01PostsWithMorePostiveRecationsAPITestCase
__all__ = [
"TestCase01PostsWithMorePostiveRecat... | [
"="
] | = |
5a4a390b1acf15d380fc6a36f240cf181b7614db | f6078890ba792d5734d289d7a0b1d429d945a03a | /hw2/submission/babbejames/babbejames_11046_1275480_119_hw_2_jtb/119_hw2.2.py | 68334c12c326ab34413cf2530584fbe2321c2faa | [] | no_license | huazhige/EART119_Lab | 1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0 | 47931d6f6a2c7bc053cd15cef662eb2f2027712c | refs/heads/master | 2020-05-04T23:40:53.709217 | 2019-06-11T18:30:45 | 2019-06-11T18:30:45 | 179,552,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,943 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: jtbabbe
"""
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.basemap import Basemap
#------------my modules-----------------------
import seis_utils
#--------------------------0---------------------------------------------
# ... | [
"hge2@ucsc.edu"
] | hge2@ucsc.edu |
6c2600913c51f10bf6c0e7f362a0a11f1888479f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02422/s883793535.py | 8a63bbefd3dc6a9170a3efaa6447ac90fe2600e7 | [] | 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 | 506 | py | #! python3
# transformation.py
sent = input()
def print_(arr):
global sent
print(sent[int(arr[0]):int(arr[1])+1])
def reverse_(arr):
global sent
sent = sent[:int(arr[0])] + sent[int(arr[0]):int(arr[1])+1][::-1] + sent[int(arr[1])+1:]
def replace_(arr):
global sent
sent = sent[:int(arr[0])] +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7c00b913a6745d7e2678de5fe3526def5f55a2ef | cfd5892a220ec7702d5c416aa1821d2429480ede | /neodroidagent/common/architectures/distributional/__init__.py | ce4e44cdf60a3308c53090f5e034df2228bd23f1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pything/agent | 611eac80348127b951a72ca76d2ab1f5a7732775 | 71c3bc072a8f3b7c3c1d873757cf5a1dafc3302d | refs/heads/master | 2022-04-28T08:13:27.705296 | 2020-11-17T16:58:46 | 2020-11-17T16:58:46 | 150,600,674 | 0 | 0 | Apache-2.0 | 2019-01-10T11:01:17 | 2018-09-27T14:31:45 | Python | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = ""
from .categorical import *
from .normal import *
| [
"mrnaah@gmail.com"
] | mrnaah@gmail.com |
975d95103dc51fff26bbb0543f1d8172c841ff9b | ced81611f03554989bd338ac32b08fd393ac424a | /src/mlog_kafka.py | c274ec8cdc5a6f462590f13eed0f9a27fa910e32 | [] | no_license | jack139/mlog | c20a8777c326014e7e319e4f80e9408a57ed9190 | fcedd1d22bd4043e614d19b49735d83d0ca538cc | refs/heads/master | 2023-03-17T09:46:49.884896 | 2020-05-12T10:21:15 | 2020-05-12T10:21:15 | 341,840,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | # -*- coding: utf-8 -*-
# 从kafka读入数据:
#
#
import sys, os
from kafka import KafkaConsumer
import predict
out_dir = 'logs/rt'
# 根据时间日期获取 label
# 参考格式: 2020/04/17 07:09:27 [error] 26119#0: ...
def get_nginx_error_label(log, minute=60): # 按min分钟为间隔,默认是60分钟
log_split = log.split()
if len(log_split)<2: # 可能是空行
... | [
"jack139@gmail.com"
] | jack139@gmail.com |
b7452f3daa64a23ec2b6a144ea7b499a2a56416e | ab7c6042f69a921095ac036bd6919a81255847b7 | /pipeline/article_processing/controller.py | c568918eb7861d4d2c38454cd50b4698cb7dc070 | [] | no_license | EST-Team-Adam/TheReadingMachine | 49eb768d08ec0e266d076f113933a04b4bf66674 | 25c217602b3909410d9a2dc6189e3de584146a1b | refs/heads/master | 2022-12-12T20:09:46.945526 | 2019-10-21T20:27:25 | 2019-10-21T20:27:25 | 70,123,521 | 1 | 2 | null | 2022-11-21T21:26:36 | 2016-10-06T04:46:20 | HTML | UTF-8 | Python | false | false | 7,906 | py | from __future__ import division
import itertools
import pandas as pd
import string
from nltk.corpus import stopwords
from nltk.tokenize import RegexpTokenizer
from nltk.stem import SnowballStemmer
from nltk import pos_tag
from datetime import datetime
# Manual invalid title and link
maintenance_title = ['Reduced serv... | [
"mkao006@gmail.com"
] | mkao006@gmail.com |
89f25f38fdef1463139ed5b10736c753d7dc5d5a | 59636b143a2ab189145b17a7ea9a38de5af1f7a5 | /All/selenium_all/guanjiaPlus/zonghe_test_object.py | d8dfaeeffee6ccfdb47fb72792cb45fdb42eb84d | [] | no_license | woshichenya/hezi | 880a70c34cc61b6b6bcf1ccb65fa54989595fb71 | 4211ff8ef78f5d15d8fc8065247f916dfe9d305d | refs/heads/master | 2020-04-28T21:46:02.664025 | 2019-05-14T08:47:33 | 2019-05-14T08:47:33 | 175,593,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | import guanjiaPlus.xiaochengxuguanliyemian
import traceback
import time
from selenium.webdriver.support.ui import Select
'''调用进入小程序管理页面的脚本'''
go=guanjiaPlus.xiaochengxuguanliyemian.go
Go=guanjiaPlus.xiaochengxuguanliyemian.Go
GO=guanjiaPlus.xiaochengxuguanliyemian.GO
bug_num=0
def dianpu():
go.Ctext("店铺","店铺超链接"... | [
"bj_xiaoya@163.com"
] | bj_xiaoya@163.com |
1e12cfdc813dbe8b0998b82ee3627f8c4a7712ae | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/2021-5-15/python_re2_test_file/regexlib_3439.py | 343711792907104d76d4f43c1009d2d954ef90b2 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # 3439
# [\w*|\W*]*<[[\w*|\W*]*|/[\w*|\W*]]>[\w*|\W*]*
# POLYNOMIAL
# nums:5
# POLYNOMIAL AttackString:""+"<"*5000+"@1 _SLQ_2"
import re2 as re
from time import perf_counter
regex = """[\w*|\W*]*<[[\w*|\W*]*|/[\w*|\W*]]>[\w*|\W*]*"""
REGEX = re.compile(regex)
for i in range(0, 150000):
ATTACK = "" + "<" * i * 100... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
718a8d60b16760ec352731a29ee43b53d90b448c | 1dd72195bc08460df7e5bb82d3b7bac7a6673f49 | /api/app/wildfire_one/query_builders.py | 8a69476dd8130f4f63a78b313c9e2d522773494d | [
"Apache-2.0",
"MIT"
] | permissive | bcgov/wps | c4347c39cadfad6711502d47776abc8d03895593 | 0ba707b0eddc280240964efa481988df92046e6a | refs/heads/main | 2023-08-19T00:56:39.286460 | 2023-08-16T18:03:06 | 2023-08-16T18:03:06 | 235,861,506 | 35 | 9 | Apache-2.0 | 2023-09-11T21:35:07 | 2020-01-23T18:42:10 | Python | UTF-8 | Python | false | false | 5,089 | py | """ Query builder classes for making requests to WFWX API """
from typing import List, Tuple
from abc import abstractmethod, ABC
from app import config
class BuildQuery(ABC):
""" Base class for building query urls and params """
def __init__(self):
""" Initialize object """
self.max_page_siz... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
cda579e2676fc52ddc8593410c78e43762839efd | 53d0b80b64d201def809ef11acbeca38da2c1574 | /hw_proyecciones/migrations/0003_drilldown.py | 80145377e2f3e6f8f620aebac2f51441c52f7df9 | [] | no_license | NOKIA-NI/niproyecciones | 068558b27afd26bc2eb6ab9c32f98a37742817ce | 90c5829250643443f90ae4cbb9b234464a2fcaef | refs/heads/master | 2022-12-11T18:22:32.928214 | 2018-10-25T14:52:52 | 2018-10-25T14:52:52 | 127,053,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | # Generated by Django 2.0.9 on 2018-10-25 14:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hw_proyecciones', '0002_hwcontrolrfe_hwsitelist'),
]
operations = [
migrations.CreateModel(
name='DrillDown',
fields... | [
"jucebridu@gmail.com"
] | jucebridu@gmail.com |
da137d50e78fd365f0c5dc7bb54e588af907cded | c48570083578f2ad5b10d397889c452a69091582 | /sge-python/practica05/ej8.py | ecaad2fbf012935615a6b80628281ab05a3fbc1b | [] | no_license | RamonMR95/sge-python | c9471fcf3e33eeda540982a8f947971c94e8254c | 895e3a7012f62518c4c1f61717f18f9d493f2ad0 | refs/heads/master | 2022-04-09T07:13:26.633241 | 2020-03-01T11:18:44 | 2020-03-01T11:18:44 | 234,789,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,845 | py | # !/usr/bin/env python3
# 8.- Supón que mantenemos dos listas con igual número de elementos. Una de ellas,
# llamada alumnos, contiene una serie de nombres y la otra, llamada notas, una serie de números flotantes 0.0 y 10.0.
# En notas guardamos la calificación obtenida por los alumnos cuyos nombres están en alumnos. L... | [
"ramonmr16@gmail.com"
] | ramonmr16@gmail.com |
47c7839a7f260182143c3fbbc27d47a4c6133d74 | d02abf740dd326f12b48357692af41282616a271 | /dataset-analysis/pyplot/simple_bar.py | 2b87ed287b5210a8c63a83d86b0d214fb17486bb | [] | no_license | jacowk/python-projects | a762c5542b7dab6cd7915b367b472a1a20d63a0a | 2e5f39868d0cdf292b4b1a792e946d169de61780 | refs/heads/master | 2021-01-05T05:18:35.550518 | 2020-09-27T08:42:11 | 2020-09-27T08:42:11 | 240,889,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 12 18:15:55 2020
@author: jaco
"""
from matplotlib import pyplot as plt
DayOfWeekOfCall = [1,2,3]
DispatchesOnThisWeekday = [77, 32, 42]
LABELS = ["Monday", "Tuesday", "Wednesday"]
plt.bar(DayOfWeekOfCall, DispatchesOnThisWeekday, align='center')... | [
"jaco.wk@gmail.com"
] | jaco.wk@gmail.com |
a3ae4cd9c8a7f48e4de904e34f3da61fec637a6d | f7cc8d3f04d34b7d7e64e1b54ba458e4b39bce49 | /PythonLibraries/kiwisolver/1.0.1/package.py | 187167ad925ae027309d3867621154cc3d81d323 | [
"MIT"
] | permissive | cashmerepipeline/CashmereRez | 80a53af61ddb8506bb111cd16450538c3b405689 | 13a73931d715ffac27c337abcd6df97b5c47534b | refs/heads/master | 2020-05-09T12:59:28.106229 | 2019-04-17T16:39:46 | 2019-04-17T16:39:46 | 181,132,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # -*- coding: utf-8 -*-
name = u'kiwisolver'
version = '1.0.1'
description = \
"""
kiwisolver library
"""
requires = []
variants = []
def commands():
import os
kiwisolver_libs_path = os.path.join(getenv("PYTHON_LIBS_PATH"), "kiwisolver", "%s" % version)
# env.PATH.append(os.path.join(k... | [
"yes7rose@sina.com"
] | yes7rose@sina.com |
3f082db88de075c9ca3e973e5512ab9093ea3e0c | c317f6a390de255540c2fb6a2e637c20bec03762 | /final/rev-kyrkkodning/obfuscate.py | 5bb035cc6b5f9c3b84c76c559e079fe4659e3869 | [] | no_license | Kodsport/sakerhetssm-2021-solutions | a7329ef22862bcfc4c970d43ac210bbe951cf3a8 | 85bc2aa619d55139acf7c91483259088329c15e2 | refs/heads/master | 2023-05-12T00:54:24.546337 | 2021-06-07T14:12:32 | 2021-06-07T14:12:32 | 353,975,490 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from pathlib import Path
import re
source = Path("challeasy.py").read_text()
names = [row.split(" = ")[0] for row in source.split("\n") if " = " in row]
for i,name in enumerate(names):
source = re.sub("\\b"+name+"\\b",chr(ord("A")+i),source)
Path("challhard.py").write_text(source)
| [
"drwal.mateusz@gmail.com"
] | drwal.mateusz@gmail.com |
1fbf502a09cc2ddd28c1e76023f44e6a52f422d4 | 65dce36be9eb2078def7434455bdb41e4fc37394 | /Two Sum - Closest to target.py | 83946cbedd32144499f639c865b05e651eadea0f | [] | no_license | EvianTan/Lintcode-Leetcode | 9cf2d2f6a85c0a494382b9c347bcdb4ee0b5d21a | d12dd31e98c2bf24acc20c5634adfa950e68bd97 | refs/heads/master | 2021-01-22T08:13:55.758825 | 2017-10-20T21:46:23 | 2017-10-20T21:46:23 | 92,607,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | '''
Given an array nums of n integers, find two integers in nums such that the sum is closest to a given number, target.
Return the difference between the sum of the two integers and the target.
Have you met this question in a real interview? Yes
Example
Given array nums = [-1, 2, 1, -4], and target = 4.
The minimum... | [
"yiyun.tan@uconn.edu"
] | yiyun.tan@uconn.edu |
16176f545abb87396a77a21ab271f39fd5f52f3b | 0347ed077da6f98d2740809d8582928485afc4e6 | /wechatutility/wechatReceiveMsg.py | 2640346a39717961923d2e95c0907c0cbfc19776 | [] | no_license | AhMay/wechatpublic_practice | 140c45f2ca4c7423bea15dc5b57d26d032a8a03b | b38683c5e8e6a1db078c164342fead10af78818a | refs/heads/master | 2020-11-27T23:57:20.358331 | 2019-12-23T01:15:27 | 2019-12-23T01:15:27 | 229,653,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,240 | py | '''微信公众号接收到的用户消息类型
https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html
'''
import xml.etree.ElementTree as ET
def parse_xml(web_data):
if len(web_data) == 0:
return None
xmlData = ET.fromstring(web_data)
msg_type = xmlData.find('MsgType').text
i... | [
"meizi111082@hotmail.com"
] | meizi111082@hotmail.com |
74701596a433057380ef80ccb963ff63b98ec52e | f9b1157ac3486709f2655810b196086dc181adc2 | /backend/test_upgrade_plan_de_1173/wsgi.py | 0def1be27bb2fd809c50a6995188f5110839d443 | [] | no_license | crowdbotics-apps/test-upgrade-plan-de-1173 | 21364bb141fefbab45e1ee53283f9f298482f1f9 | fc5e4584fc8ddb571b2f76b52f4c7c9c3ee3bd25 | refs/heads/master | 2023-02-14T20:46:31.539334 | 2019-12-11T18:29:30 | 2019-12-11T18:29:30 | 227,433,239 | 0 | 0 | null | 2023-01-24T00:56:00 | 2019-12-11T18:28:03 | JavaScript | UTF-8 | Python | false | false | 427 | py | """
WSGI config for test_upgrade_plan_de_1173 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
023e8cfd0b3aeb66d815ceac84e680bcb62c4bca | 9137e1ccf070b3f9d92d8635662c569639910ae5 | /apps/modules/setting/apis/session_set.py | 07590e1711af07d77f4c7d0d5f050da905e11017 | [
"BSD-2-Clause"
] | permissive | zhangning123798/osroom | 08e87a4c32e9d92807a66109e7074723279179cc | 21859b77b8980ccb8a5392f02c76bd552b2bf653 | refs/heads/master | 2020-05-26T10:00:38.658768 | 2019-05-23T08:48:03 | 2019-05-23T08:48:03 | 188,195,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # -*-coding:utf-8-*-
from flask import request
from apps.core.blueprint import api
from apps.core.flask.permission import permission_required
from apps.core.flask.response import response_format
from apps.modules.setting.process.session_set import language_set
__author__ = "Allen Woo"
@api.route('/session/language-s... | [
"624393877@qq.com"
] | 624393877@qq.com |
49eaa8cbc43819fdcce800289fb77bb25c70faaa | bf11991193cd09d5d95e2706ed4168c36221f582 | /HW1/q2.py | e8aa57704cc17595e677bc46cfc4b7a1d61f2ed9 | [] | no_license | NightKirie/COMPUTER-VISION-AND-DEEP-LEARNING_2020 | f3569bf06cb824aace5fa3c3b01c26909b7b1a68 | 8b770c12bdc1e149c12c424d0637ab8f35df0370 | refs/heads/main | 2023-02-05T07:45:03.399847 | 2020-12-18T12:51:10 | 2020-12-18T12:51:10 | 304,540,542 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | import cv2
import numpy as np
WIDTH = 11
HEIGHT = 8
def draw(img, corners, imgpts):
img = cv2.line(img, tuple(imgpts[0].ravel()), tuple(imgpts[1].ravel()), (0,0,255), 5)
img = cv2.line(img, tuple(imgpts[0].ravel()), tuple(imgpts[2].ravel()), (0,0,255), 5)
img = cv2.line(img, tuple(imgpts[0].ravel()), tup... | [
"qwer55113322@gmail.com"
] | qwer55113322@gmail.com |
da9b60fd9c51d7ee28d89f0b14483faf7101b364 | 423670088b9795d645cacc760dc9d9b0df0a2b34 | /vlttng/conf_template.py | fa86571506a859086343dda2d80b64c24c00f653 | [
"MIT"
] | permissive | eepp/vlttng | 4711ecadec7249795190566809a51f589b051bcd | 27c775db01ba13f27cb77bd5e6eca022c0db42bc | refs/heads/master | 2022-10-06T02:31:23.733577 | 2022-09-14T18:59:32 | 2022-09-14T18:59:32 | 59,193,437 | 9 | 4 | MIT | 2021-05-13T16:33:16 | 2016-05-19T09:38:00 | Python | UTF-8 | Python | false | false | 2,563 | py | # The MIT License (MIT)
#
# Copyright (c) 2016 Philippe Proulx <eepp.ca>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to us... | [
"eeppeliteloop@gmail.com"
] | eeppeliteloop@gmail.com |
7df1adc8cd446b6046a1e4172ae5851a82b39653 | ec77edd3a7db89f8b12202fe6ecc21ce2897bce0 | /examples/digits_basic.py | 06b871b0b71a2b192d0751a0f558f4853ad66f3e | [] | no_license | lantunes/wehd | db2a3ea9edd4b9b012f1bb8e56d6f7d331f386e6 | c13f9fb3b417d800fab09ab6f724c350c2f4d8cc | refs/heads/main | 2023-07-12T06:07:00.410568 | 2021-08-16T14:34:05 | 2021-08-16T14:34:05 | 395,657,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | import matplotlib
import matplotlib.cm as cm
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import mode
from sklearn import datasets
from sklearn.manifold import TSNE
from sklearn.metrics import accuracy_score, confusion_matrix
from sklearn.metrics.cluster import rand_score
from sklearn.preprocessi... | [
"lantunes@gmail.com"
] | lantunes@gmail.com |
f97b906b4a697556ced6a92198111804e4fcb722 | 1e53216c58f3c7843031721305590b83dbaed3f2 | /week_five/log_and_reg/log_and_reg/settings.py | c6158a025afa487c688f6c615e4526c97c9271a4 | [] | no_license | MTaylorfullStack/python_july_20 | 991852ba12d6f06d6b93b8efc60b66ee311b5cb3 | bdfb0d9a74300f2d6743ac2d108571692ca43ad9 | refs/heads/master | 2022-12-12T18:03:00.886048 | 2020-08-27T23:53:31 | 2020-08-27T23:53:31 | 277,956,745 | 2 | 2 | null | 2023-06-30T20:06:11 | 2020-07-08T01:09:34 | Python | UTF-8 | Python | false | false | 3,118 | py | """
Django settings for log_and_reg project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
bb938cd5a049722984a0234f69971204ca9c7af4 | 4310871d6d0ad59332360a0d6e980e0a41d25fdd | /comment/serializers.py | a79978c15226c0e45d99ee2139bc53813bc6fc26 | [] | no_license | jacegem/drf-test | 21bf7eaa47aeb045c31d2ba8239e587804c27a86 | 00105b6ecd38b68c58f2e5b498e0fb7ad2de099d | refs/heads/master | 2022-12-12T13:18:02.168914 | 2020-08-04T09:08:10 | 2020-08-04T09:08:10 | 146,073,595 | 0 | 0 | null | 2022-12-08T09:34:16 | 2018-08-25T07:01:35 | Python | UTF-8 | Python | false | false | 201 | py | from rest_framework import serializers
from .models import Comment
class CommentSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = '__all__'
| [
"jacegem@gmail.com"
] | jacegem@gmail.com |
36801ff15a033f2b405073e33139f9994ac55639 | 98879590858368d5c32c389db31b761e479a0ab8 | /python-features/iterators.py | fc8bf99d47289b0d870921c1830127ecb4664be9 | [] | no_license | zhiruchen/get_hands_dirty | 0bbf3719113dcf474baae571ecd55e5c234072a3 | af98a11bbeb8183428fe41cb7c9fa9a2354983e9 | refs/heads/master | 2020-04-17T12:00:44.275247 | 2017-06-24T16:28:43 | 2017-06-24T16:28:43 | 66,988,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | # -*- encoding: utf-8 -*-
"""
迭代器
http://anandology.com/python-practice-book/iterators.html
http://nvie.com/posts/iterators-vs-generators/
迭代器一定是可迭代的,
"""
from collections import Iterable, Iterator
class yrange(object):
"""迭代器,yrange的对象既是可迭代的也是迭代器"""
def __init__(self, n):
self.n = n
self.i ... | [
"zhiruchen1992@foxmail.com"
] | zhiruchen1992@foxmail.com |
ba4660a4acd3ec99cc6333f14b87878bb163b698 | d54ef1dee58c239d3a5bb74cbf8d8a717dcdcb33 | /paytest/test_paytest.py | 6cf586627df8c94c2155c66542e5871c2a50535e | [
"BSD-3-Clause"
] | permissive | bhoovd/lightningd-plugins | 88cef7c51b5291ef14b32761a1b4ceeb26ee5784 | a7a0007dcee1fcf3cc401ca83663a66b678e07d3 | refs/heads/master | 2023-03-14T20:50:46.115145 | 2021-02-16T10:15:54 | 2021-02-26T10:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | from pyln.testing.fixtures import * # noqa: F401,F403
from pyln.testing.utils import DEVELOPER
from pyln.client import RpcError
import os
import unittest
import pytest
from pprint import pprint
pluginopt = {'plugin': os.path.join(os.path.dirname(__file__), "paytest.py")}
EXPERIMENTAL_FEATURES = int(os.environ.get("E... | [
"decker.christian@gmail.com"
] | decker.christian@gmail.com |
2a7781ca167806d15563fda92dec8c31c733744d | df44affab179c2546fb3e0d1dc29eebcfdf51c1c | /toughradius/txradius/authorize.py | fedf4305359d7f9665ba6b081ea9725c186fcd57 | [] | no_license | sailorhdx/taurusradius | 121c508e7faffaddcd5326d2b6d3710eaf0ed08e | 92d30820611a0c9102ae41713ea3c35437a3c6ee | refs/heads/master | 2021-01-22T02:28:31.543338 | 2017-06-17T02:15:33 | 2017-06-17T02:15:33 | 92,362,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | #!/usr/bin/env python
# coding=utf-8
import os
import six
from twisted.python import log
from twisted.internet import protocol
from twisted.internet import reactor, defer
from toughradius.txradius.radius import packet
from toughradius.txradius.ext import ikuai
from toughradius.txradius import message
from toughradius.t... | [
"sailorhdx@hotmail.com"
] | sailorhdx@hotmail.com |
25bb83c6f782b5a36d42a6c483e404476b3c2f1e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /yfTyMb3SSumPQeuhm_5.py | 80ed33b96fc160972e0d5109dcaa669d35356e56 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | """
Write a function that efficiently calculates Fibonacci terms.
### Examples
fibonacci(1) ➞ 1
fibonacci(2) ➞ 1
fibonacci(4) ➞ 3
fibonacci(64) ➞ 10610209857723
### Notes
The input will always be a power of two.
"""
def fibonacci(n):
def fib_inner(n):
if n == 0:
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b954d06a1d1d14afe11039a99c3494d4ccb1ac89 | 77327e4c6de68fab4061c5acdb569e95cb8a9fae | /TestEnv/PrisonerDilemma.py | 92ce9bbf4e611e7790df41d38d79049698cca47e | [] | no_license | jiankangren/RARL-1 | 577148384bd065708c868c854ff53bc8d16fac99 | a7b28d9b56cfc7e5f832bb839d2c8f5db4d5b5ab | refs/heads/master | 2020-04-08T06:33:53.706725 | 2018-08-27T22:45:48 | 2018-08-27T22:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from rllab.envs.base import Env
from rllab.spaces import Box, Discrete
from rllab.envs.base import Step
class PrisonerDilemma(Env):
def __init__(self):
self.num_action = 2
def render(self):
pass
@property
def observation_space(self):
return Discrete(1)
@property
def action_space(self):
return Discr... | [
"maxiaoba@umich.edu"
] | maxiaoba@umich.edu |
fd0348e317dfb0cc806d13e3c1787e7508e61c8a | f8d043a7941cb311d9ea8e991b7c5be3c461675f | /mac/shop/urls.py | a1db41ac4bb8b25b8045d600df7ea205fe297640 | [] | no_license | shreyakapadia10/Django-Project | acf5c56f95ea552b589dfc6f8819b92339b3a377 | 4e9f5c2697ef1ed07209f50b1d8ed8a1bd953b87 | refs/heads/master | 2023-05-02T18:47:08.892747 | 2021-05-25T11:11:54 | 2021-05-25T11:11:54 | 370,583,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='ShopHome'),
path('about/', views.about, name='AboutUs'),
path('contact/', views.contact, name='ContactUs'),
path('tracker/', views.tracker, name='TrackingStatus'),
path('search/', views.search, name='Search... | [
"shreyakapadia8@gmail.com"
] | shreyakapadia8@gmail.com |
fe3be7f503140e17f885a9751de4ac6ce8bd2a4e | 234f0a885f6f6bffdfe21dcb4882ed9bc611029d | /fullcyclepy/helpers/taskschedule.py | ed6c9f97ea07397779e5441fbc22dddcd94fee81 | [
"MIT"
] | permissive | gitter-badger/fullcycle | 4a0fe84d92f93a333094de76706c6aeb7c4b9402 | 1f21fb5bfacdaa7005f506bd6327689368b421d4 | refs/heads/master | 2020-03-28T07:04:31.463488 | 2018-09-06T23:15:00 | 2018-09-06T23:15:00 | 147,879,359 | 0 | 0 | null | 2018-09-07T22:08:08 | 2018-09-07T22:08:08 | null | UTF-8 | Python | false | false | 1,188 | py |
import datetime
class TaskSchedule(object):
lastrun = None
start = None
pending_run = False
#default to 0 seconds means disabled
#interval is in seconds
interval = 0
q = None
def __init__(self, run_on_init=False):
self.pending_run = run_on_init
def is_disabled(self):
... | [
"dfoderick@gmail.com"
] | dfoderick@gmail.com |
91a59fef16036229feabbf59c9aa7c02b86b5d38 | 3f7fd5abd0fe3a516d620a6948f9079bc34c1f5e | /glooey/__init__.py | 6790c321f675d52a9caeabef925ecb67ace45d5b | [
"MIT"
] | permissive | wkentaro/glooey | f8cb4723e266a29941da41d5ab81f8d2b809d2f2 | 4eacfdc7c14b5903f1bc3d5d4fa2b355f5fc5ee1 | refs/heads/master | 2020-05-17T19:42:38.554766 | 2019-04-28T05:41:43 | 2019-04-28T05:41:43 | 183,922,793 | 1 | 0 | MIT | 2019-04-28T15:02:41 | 2019-04-28T15:02:40 | null | UTF-8 | Python | false | false | 319 | py | #!/usr/bin/env python3
__version__ = '0.1.2'
from .widget import *
from .root import *
from .containers import *
from .text import *
from .images import *
from .buttons import *
from .dialogs import *
from .scrolling import *
from .misc import *
from . import drawing
from .drawing import Color
from . import themes
| [
"kale@thekunderts.net"
] | kale@thekunderts.net |
0f1b8f58a2fabca481414c2c84477d370d059f5d | be4d32d35fd4af3cf4ecf3736c8e879d50b8ae37 | /Python/Django/djangoform/djangoform/wsgi.py | 145141d25d9c0de325f197f0995939cb185d6510 | [] | no_license | yangluo0901/CodingDojo_Assignment | f09bbec26f87b5b276fd6ef3c77f27d13518937e | 44ccb5158b12c1656793bac76f1a7a707b147982 | refs/heads/master | 2021-10-11T21:12:14.889189 | 2019-01-29T19:52:56 | 2019-01-29T19:52:56 | 105,716,841 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for djangoform 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"yangluo0901@gmail.com"
] | yangluo0901@gmail.com |
8ba2e00236e70179ab87d41710598309635d289b | c4dacd0f5e397422018460c268ec8375aebe6419 | /pyRMSD/benchmark/alias/test/TestCondensedMatrix.py | 1fe99c0cac1171d98093825018e25272436a89ee | [
"MIT"
] | permissive | asford/pyRMSD | 032c9e03094392a957dfc5650b28b6e70bcdf17a | 8f1149fb631bfffebeb595c5b164d6945f7444fa | refs/heads/master | 2021-01-15T20:04:10.524616 | 2013-08-01T12:56:04 | 2013-08-01T12:56:04 | 12,771,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,491 | py | '''
Created on 30/01/2012
@author: victor
'''
import unittest
import scipy.spatial.distance as distance
import cStringIO
import random
from pyproclust.matrix.condensedMatrix import CondensedDistanceMatrix, load_condensed_matrix, calc_number_of_rows,complete_to_condensed,zero_condensed
from pyproclust.matrix.completeMa... | [
"victor.gil.sepulveda@gmail.com"
] | victor.gil.sepulveda@gmail.com |
e68071c5d957adac8446ee734833fc462a73c82f | ac6922fbaa51c3068883c3d60b407350f13213f9 | /src/einsteinpy/tests/test_metric/test_schwarzschild.py | 42b0c43107a4dc2b105cb234aeecafd5dac58e47 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | divya144/einsteinpy | 719c961e3c4698c1d7df77a78a3f9b51f234d077 | e5f7c15fb80f8fef8d1e8ca41188d9ac7ee668ec | refs/heads/master | 2020-05-03T09:26:27.003181 | 2019-04-09T13:33:35 | 2019-04-10T10:32:36 | 178,553,798 | 2 | 1 | MIT | 2019-03-30T12:08:14 | 2019-03-30T12:08:14 | null | UTF-8 | Python | false | false | 7,272 | py | import warnings
import numpy as np
import pytest
from astropy import units as u
from numpy.testing import assert_allclose
from einsteinpy import constant
from einsteinpy.metric import Schwarzschild
from einsteinpy.utils import schwarzschild_radius
_c = constant.c.value
@pytest.mark.parametrize(
"pos_vec, vel_v... | [
"s.ritwik98@gmail.com"
] | s.ritwik98@gmail.com |
a29f11c438bd1ae1ff2edaed687eb601ffaa6d46 | 8fc2ab3d29a30e603e19b30bb9517928de529167 | /CoinChange_5.py | 9879dd2cfd48bef094087426f31b8a20a3a81491 | [] | no_license | rushilchugh/Practise | 35a9861bec6786580dc0a440eb25d78e43cb7bc9 | 98fd593b95dad641bef1d519c6c6ed1daaae630f | refs/heads/master | 2020-03-13T21:14:14.013604 | 2018-04-27T12:23:50 | 2018-04-27T12:23:50 | 131,291,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import math
def coinChange(cList, S):
minVals = [math.inf for _ in range(S + 1)]
minVals[0] = 0
for i in range(1, S + 1):
for j in range(len(cList)):
currCoin = cList[j]
if cList[j] <= i and minVals[i - cList[j]] + 1 < minVals[i]:
minVals[i] = mi... | [
"noreply@github.com"
] | rushilchugh.noreply@github.com |
aa697365a29cb901be7dae97bff8fa8573350419 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Settlement/FPythonCode/FSettlementCommitterFunctions.py | bbb921bda4c49e2e4f2cd0efe447daea3a2bc283 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | """ Compiled: 2020-09-18 10:38:49 """
#__src_file__ = "extensions/settlement/etc/FSettlementCommitterFunctions.py"
import acm
#-------------------------------------------------------------------------
def CommitCommitters(committerList, logger):
commitSuccessful = True
acm.BeginTransaction()
try:
... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
1db686d84707ba2314d219fbd59ee026669dd20e | 14de6d507e471d582a7e7f5cba898f72f6ba186d | /python/Linked-List-Cycle/hashmap.py | 2ac2a62d573e60b6ccf32acf0e8d80d75b77303c | [
"MIT"
] | permissive | yutong-xie/Leetcode-Solution | a7d9c1f73a0fecd9de1d04dbd4c06393959dd95a | 6578f288a757bf76213030b73ec3319a7baa2661 | refs/heads/master | 2023-03-30T01:59:58.554650 | 2021-03-27T21:09:46 | 2021-03-27T21:09:46 | 290,101,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright 2020, Yutong Xie, UIUC.
Using hashmap to test whether a cycle exists in the linked list
'''
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(... | [
"36655655+yutong-xie@users.noreply.github.com"
] | 36655655+yutong-xie@users.noreply.github.com |
0f41900cd8ccc0a02af26e8e6ac41f8c02048d26 | 7caa438706a423dd9779a81f8345fcf1ec11e921 | /NXT-Python/pyglet-1.2.4/examples/opengl_3.py | 0298cc248eb88ac3b54cfbdfafdf472714967189 | [
"BSD-3-Clause"
] | permissive | tamarinvs19/python-learning | 5dd2582f5dc504e19a53e9176677adc5170778b0 | 1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9 | refs/heads/master | 2021-07-15T13:23:24.238594 | 2021-07-08T07:07:21 | 2021-07-08T07:07:21 | 120,604,826 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | #!/usr/bin/python
# $Id:$
'''In order to use the new features of OpenGL 3, you must explicitly create
an OpenGL 3 context. You can do this by supplying the `major_version` and
`minor_version` attributes for a GL Config.
This example creates an OpenGL 3 context, prints the version string to stdout,
and exits.... | [
"slavabarsuk@ya.ru"
] | slavabarsuk@ya.ru |
cbffe481b8c2609d89a052878599e76a03d759bc | 95697a9f8fed6d45cb8ae9ae2525873c99cc7cfb | /Project File/02. Second Project - notice board/server/View/V1/API/service/ShowUser.py | 33e58e2227326af8328954721c03870669d60b25 | [] | no_license | parkjinhong03/Python-Flask | d30c7447c70eb0cbda0454bfd2f2168347209adb | 5732f17c594c1fc213940b214c0beafd4448bc14 | refs/heads/master | 2022-02-24T21:04:35.868873 | 2019-09-04T02:13:49 | 2019-09-04T02:13:49 | 198,320,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from View.V1.Function import LoginCheck
import os
# 사용자 명단 라우터
def showuser():
if LoginCheck.logincheck() == False:
return 'Please Login First!'
count = 0
Userlist = ''
for root, dirs, files in os.walk('./Data/List'):
for dir in dirs:
count = count + 1
Userlis... | [
"jinhong0719@naver.com"
] | jinhong0719@naver.com |
978d109a9d79229a04673c409ce440e1dc8754e1 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Introduction_to_numerical_programming_using_Python_and_CPP_Beu/Ch09/Python/P09-LinFit.py | ad49008506665cc9671c465c648ff7ed9fc70fb7 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 2,416 | py | # Linear fit of a model to observed data points
from modfunc import *
from graphlib import *
# main
nn = [0]*4 # end-indexes of the 3 plots
col = [""]*4 # colors of plots
sty = [0]*4 ... | [
"me@yomama.com"
] | me@yomama.com |
6176f6f471d91cdedce7764c2d165f4fab302ff0 | 9d89530e784922173aa1c032dcfaf772a26cf99e | /vulnerabilities/tests/test_suse.py | a4695d8265175e094b60103b31d56577c44d9269 | [
"Python-2.0",
"Apache-2.0"
] | permissive | nileshprasad137/vulnerablecode | 7da3d9c15e436919bedb29d3bfeb574a233f3a5b | 4677f70c654a15da529a80d19d7de1ca013ef8eb | refs/heads/main | 2023-08-22T23:51:30.806190 | 2021-10-08T13:13:32 | 2021-10-08T13:13:32 | 418,471,773 | 1 | 0 | Apache-2.0 | 2021-10-18T11:33:24 | 2021-10-18T11:33:24 | null | UTF-8 | Python | false | false | 7,207 | py | import os
import unittest
import xml.etree.ElementTree as ET
from vulnerabilities.oval_parser import OvalParser
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
TEST_DATA = os.path.join(BASE_DIR, "test_data/")
class TestSUSEOvalParser(unittest.TestCase):
@classmethod
def setUpClass(cls):
xml_... | [
"shivam.sandbhor@gmail.com"
] | shivam.sandbhor@gmail.com |
1be8a4ba8920c53045cf4597fe0649599d965eeb | cd9f819b968def4f9b57448bdd926dc5ffa06671 | /B_Python程式設計大數據資料分析_蔡明志_碁峰_2018/ch12/shape.py | 6abc3387132728cee32128b7b8749b663d682949 | [] | no_license | AaronCHH/jb_pyoop | 06c67f3c17e722cf18147be4ae0fac81726e4cbc | 356baf0963cf216db5db7e11fb67234ff9b31b68 | refs/heads/main | 2023-04-02T05:55:27.477763 | 2021-04-07T01:48:04 | 2021-04-07T01:48:13 | 344,676,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import math
class Shape:
def __init__(self, xPoint = 0, yPoint = 0):
self.__xPoint = xPoint
self.__yPoint = yPoint
def getPoint(self):
return self.__xPoint, self.__yPoint
def setPoint(self, xPoint, yPoint):
self.__xPoint = xPoint
self.__yPoint = yPoin... | [
"aaronhsu219@gmail.com"
] | aaronhsu219@gmail.com |
a84a792cbc0b3a11189f3108b5bb171958a14f1f | 0ced6dc4f7c30cd58475bc5a13a7a8ad00081bab | /AndroidCase/test_023_mydingdan.py | a69a7eb2a0f03ec5b805b1325343d92ee87a1967 | [] | no_license | duanbibo/app-autotes-python | 1ef7bc635a7dcd9e82a61441ac7a567bba1c1e25 | 951fcb2a138a75e7722a7714cde62990f33b0f3e | refs/heads/master | 2022-04-25T03:39:20.675426 | 2020-04-27T15:08:47 | 2020-04-27T15:08:47 | 259,368,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | import unittest
from time import sleep
from util.driver import Driver
from util.isElement import iselement
class Login(unittest.TestCase):
# 我的订单
def setUp(self):
self.driver = Driver.DRIVER
def test_mydingdan(self):
driver = self.driver
sleep(2)
driver.find_element_by_xpa... | [
"820355197@qq.com"
] | 820355197@qq.com |
4b32656a28a2c68bceb7c7b718403512b88994f1 | 6bfda75657070e177fa620a43c917096cbd3c550 | /kubernetes/test/test_autoscaling_v2alpha1_api.py | 6f7571908e7305b29558bf7d6d8a9a4487042303 | [
"Apache-2.0"
] | permissive | don41382/client-python | 8e7e747a62f9f4fc0402eea1a877eab1bb80ab36 | e69d4fe204b98f7d7ee3ada3996b4f5fbceae5fe | refs/heads/master | 2021-01-19T23:15:50.172933 | 2017-04-18T18:00:48 | 2017-04-18T18:00:48 | 88,943,866 | 0 | 0 | null | 2017-04-21T05:19:52 | 2017-04-21T05:19:52 | null | UTF-8 | Python | false | false | 2,946 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
e1a3999957bf6d49d0e8a8693b74c61ff9a7ae7d | 4de2bfe570af0ae03db661223dc36524642a4016 | /libermatic_customization/libermatic_customization/doctype/libermatic_settings/libermatic_settings.py | ea23f8e293f4e03572f53c1e63b16d67b32d51f8 | [
"MIT"
] | permissive | libermatic/libermatic_customization | 6b645c6424987cee39653499bfa7b2683da65f42 | 38ac7abd691ee289ee85cb3926cafb3989af24e1 | refs/heads/master | 2020-03-31T18:29:28.152141 | 2019-08-27T11:16:14 | 2019-08-27T11:16:14 | 152,460,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Libermatic and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
from frappe.model.document import Document
class LibermaticSettings(Document):
pass
| [
"sun@libermatic.com"
] | sun@libermatic.com |
129e7bf0bd902cefe5098246834c9b2b435b12ac | 67117fb75f765d3426b8d0b06567b9a0d446e25b | /src/gtk/toga_gtk/libs/gtk.py | 95678bd2d52085e07397acbccbe29539cb31503f | [
"BSD-3-Clause"
] | permissive | maks232/toga | 2e61723aea004c97f97f6ac4e8f2e0e6de193b8f | 47b8961ded119bc147961c0a7054d354e3f3222f | refs/heads/master | 2022-12-10T14:09:25.963436 | 2020-09-03T11:53:53 | 2020-09-03T11:53:53 | 292,660,054 | 0 | 0 | NOASSERTION | 2020-09-03T19:20:57 | 2020-09-03T19:20:56 | null | UTF-8 | Python | false | false | 771 | py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GdkPixbuf, Gio, GLib # noqa: F401, E402
# The following import will fail if WebKit or its API wrappers aren't
# installed; handle failure gracefully
# (see https://github.com/beeware/toga/issues/26)
# Accept any API version greater than ... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
539d0113207a5c499e7c828ef9766dbe5e11d854 | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/shared/utils/methodsrules.py | 660a7b0a547bb320ff1113ef3462da88efbd7c12 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,585 | py | # 2016.08.04 19:53:25 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/shared/utils/MethodsRules.py
from collections import defaultdict
from types import MethodType
from debug_utils import LOG_DEBUG
class MethodsRules(object):
__slots__ = ('__listenersToSkip', '__notificationToDelay', '__delayer... | [
"info@webium.sk"
] | info@webium.sk |
4a651167e8552a4ce397906eb3f85051e3281757 | 1065ec75d9ee668ffd7aafc6a8de912d7c2cee6f | /addons/script.icechannel.extn.extra.uk/plugins/livetv_uk/sky_news_ltvi.py | 0533ee893da846b0f640a240561d8b1b06333b69 | [] | no_license | bopopescu/kodiprofile | 64c067ee766e8a40e5c148b8e8ea367b4879ffc7 | 7e78640a569a7f212a771aab6a4a4d9cb0eecfbe | refs/heads/master | 2021-06-11T17:16:15.498281 | 2016-04-03T06:37:30 | 2016-04-03T06:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | '''
Ice Channel
'''
from entertainment.plugnplay.interfaces import LiveTVIndexer
from entertainment.plugnplay import Plugin
from entertainment import common
class sky_news(LiveTVIndexer):
implements = [LiveTVIndexer]
display_name = "Sky News"
name = "sky_news"
other_n... | [
"sokasoka@hotmail.com"
] | sokasoka@hotmail.com |
b4ee0e774735f7e22ec95c1c42dc59f30949f18c | e2b5f9c5ccc51be2f3c0b55f580b882f2adb4875 | /docs/conf.py | 37ab66664e95edd05101d56e93214e099d7deeac | [
"MIT"
] | permissive | bfontaine/firapria | 5e0930db20689dd5d5a5bfa4511f6781b1521c21 | a2eeeab6f6d1db50337950cfbd6f835272306ff0 | refs/heads/master | 2021-01-25T06:36:39.101391 | 2014-09-30T22:09:38 | 2014-09-30T22:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,173 | py | # -*- coding: utf-8 -*-
#
# Firapria documentation build configuration file, created by
# sphinx-quickstart on Fri Mar 28 23:02:11 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"batifon@yahoo.fr"
] | batifon@yahoo.fr |
07c23570e03becd7f5bb4afa422a232f230fa5d1 | f60eb7d15ce3ca06e2db1dc0af8b3b87bed08c37 | /home/migrations/0012_auto_20170609_2252.py | 848d2b5ca42484916880c1fe1c4dcfbfde12ea15 | [] | no_license | wlminimal/epc | 96136f0c5f2b4ddc04fbc7e7b76d6a41c631ea26 | 2127a4e273a69a3ca0d5711fd1452c1bc5ab7590 | refs/heads/master | 2022-12-12T11:33:57.711869 | 2019-04-12T16:33:58 | 2019-04-12T16:33:58 | 92,700,181 | 0 | 0 | null | 2022-12-07T23:58:05 | 2017-05-29T02:20:33 | Python | UTF-8 | Python | false | false | 879 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-09 22:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0011_delete_sermonday'),
]
operations = [
... | [
"wlminimal@gmail.com"
] | wlminimal@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.