blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af85091132f201033888c47fc10b43a4b7e8d32d | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-aircall/setup.py | 25b830a1e3cce6526bed07734eb77ef89e7f7d8b | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 628 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = [
"airbyte-cdk~=0.1",
]
TEST_REQUIREMENTS = [
"requests-mock~=1.9.3",
"pytest~=6.2",
"pytest-mock~=3.6.1",
]
setup(
name="source_aircall",
description="Source impleme... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
78cd6795ea18e69c2d486a85ec2aaeccd5af59d2 | 181d138383f19d4427a525b713d270b9a567fdb9 | /tests/test_csv.py | 96599288ea36fdcc63457339745f0cdcbf96401d | [
"MIT"
] | permissive | openelections/electionware | 2f07f6cf5cc1b077a1e8262546237915767095ab | d3998027223d848b9cb6172e224e62096b3b5916 | refs/heads/main | 2022-12-27T19:40:35.054496 | 2020-10-10T21:13:13 | 2020-10-10T21:13:13 | 314,941,407 | 1 | 1 | null | 2020-11-22T02:07:40 | 2020-11-22T02:07:39 | null | UTF-8 | Python | false | false | 2,374 | py | import os
from unittest import TestCase
from unittest.mock import patch
from electionware.csv import get_output_file_path, get_output_header, \
write_electionware_pdf_to_csv
class TestOutputFilePath(TestCase):
def test__output_file_path(self):
expected = os.path.join(
'..', '2000', '20001... | [
"rbierbryer@gmail.com"
] | rbierbryer@gmail.com |
b588f2c1ecc3daa6991eab8af144bceb73afd1cb | 7d75f44a9486b6e2bb0e58c72d22be436cc308af | /EventSelector/scripts/wq2-ls | 4d93419f50c4dcd2e7f4cd550c4c53f5c8220804 | [] | no_license | zinon/RawData | f95dbef4c12eb9db73adbae8e94c031781bc3bef | 38743ed4d52f532a03e53dfee774abfa49e82988 | refs/heads/master | 2021-01-19T20:18:15.971916 | 2015-02-25T11:30:18 | 2015-02-25T11:30:18 | 31,310,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | #! /usr/bin/env python
"""
Module createContainer
improved dq2-ls splits up unique and duplicated datasets
"""
import optparse
import subprocess
import os
import re
from DQ2Tool import DQ2Tool
## Configuration
############################################################
def main():
# Load Parser
usage = "... | [
"zinon123@gmail.com"
] | zinon123@gmail.com | |
dc27dc63f6a3b9d4bd00afcbc7b4639d4e1533d0 | 993f7b85a9c4d69d91c100b22aba2f14b638fc81 | /swea-5656.py | b3c3a1d27380c90f74ffdb1dc8c05350b1e22d44 | [] | no_license | bearics/coding-test | 2a5eca9d12eb6051e5fd14646fee719ba328f962 | ffe7a602e088245cd931f0d078dbd2e8dad83254 | refs/heads/master | 2020-07-20T18:33:23.187916 | 2019-09-06T02:24:35 | 2019-09-06T02:24:35 | 206,692,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | dirs = [[1, 0], [0, -1], [-1, 0], [0, 1]] # R D L U, [X, Y]
def sol(n):
# global debugggg
# debugggg += 1
# print(debugggg)
global base_map
# if debugggg == 28:
# print("stop")
if len(n) >= N:
count = 0
global min_count
for rr in range(H):
for cc in range(W):
if base_map[rr]... | [
"bearics@gmail.com"
] | bearics@gmail.com |
8c944888521251fc7283418e0320a1de6fc264f4 | 56398fccc60c404fbcd0770056e21c1522cf3807 | /pages/urls.py | a51a7c2a3103e156bfe9fd2e3940dace195a5723 | [] | no_license | agnesimbs/movers | 72efb5a8d79a615ce4f3f0d2168f8aee4bd7b37c | 3fe03b1d4942c5f0b1b2986a79fba9f7cad6dafd | refs/heads/master | 2020-03-27T15:37:10.534867 | 2018-09-03T08:16:35 | 2018-09-03T08:16:35 | 146,728,729 | 0 | 0 | null | 2018-09-03T08:16:36 | 2018-08-30T09:42:23 | Python | UTF-8 | Python | false | false | 189 | py | from django.urls import path
from .views import HomePageView,AboutPageView
urlpatterns=[
path('',HomePageView.as_view(),name='home'),
path('about/',AboutPageView.as_view(),name='about'),
] | [
"agneswambui504@gmail.com"
] | agneswambui504@gmail.com |
f060ef31d43c3220db23ba2d5f5b9638358bec69 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_nitpicked.py | c24415023c45b6fa685872e33916c3f83b705177 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py |
#calss header
class _NITPICKED():
def __init__(self,):
self.name = "NITPICKED"
self.definitions = nitpick
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['nitpick']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
344f9662afb40ad4e593118502c860a3bc15bc9e | acf90501ba4f8b6c1db52f28746449b4bf3e2d2c | /cloudland/cloudland/wsgi.py | 019864acf6d28faa76c34b2575a2710a9e84b4bf | [] | no_license | michaelpermyashkin/Cloudland | 64729c7a2676eb02ddb55aba7571f7462492ce79 | 5c9d1a32eb6117ec106ca6e79c02e396342f4d34 | refs/heads/master | 2022-11-25T18:51:00.345507 | 2020-08-04T13:33:12 | 2020-08-04T13:33:12 | 264,047,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Stitch 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"mpermyashkin@gmail.com"
] | mpermyashkin@gmail.com |
aca671cbd29112f2e6668647ab92fe0be17afbb2 | 60c6f68000fe9440948f91b493d15e96c2159373 | /python/index-gsoc-searcher-data.py | 21b0674d84288efb1850321cec4495f20140c197 | [] | no_license | dbpedia-spotlight/gsoc-searcher | a0a288686089c0bb89c05d4d5b55a7f16925b25c | a75c4c3177e30273995e38c9a924ae835e2247ad | HEAD | 2016-09-01T23:08:53.629598 | 2013-06-11T10:08:44 | 2013-06-11T10:08:44 | 9,697,566 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,490 | py | """
Requires an ElasticSearch server to be running.
python index-gsoc-search-data.py <dataDir> <elasticSearchUrl>
"""
import sys
import os
import urllib2
import re
INDEX_ID = "gsoc2013"
TYPE_ID = "d"
MAPPING = """{
"d" : {
"properties" : {
"ideas" : {
"type" : "string",
"store" : "yes"
... | [
"max.jakob@gmail.com"
] | max.jakob@gmail.com |
98491800978764c42bde1d1d36a77b8dc13c9ef3 | 1e249067ab2dabc17cb7ebda46f9f23a5cfad552 | /tests/test_processor.py | 149ae513f1fdcfc1b09bbec275c63aac1d55b556 | [
"BSD-2-Clause"
] | permissive | STIRLIN6/indra_cogex | 6e4cba84ee1ce82a404154e7370f88fc340400cb | 552cefd71431b08b8118b2cc0428fd8681e6fc83 | refs/heads/main | 2023-08-14T01:28:14.852108 | 2021-09-14T04:18:13 | 2021-09-14T04:18:13 | 377,100,238 | 0 | 0 | BSD-2-Clause | 2021-06-15T09:01:23 | 2021-06-15T09:01:23 | null | UTF-8 | Python | false | false | 184 | py | from indra_cogex.representation import norm_id
def test_norm_id():
assert norm_id("UP", "P12345") == "uniprot:P12345"
assert norm_id("CHEBI", "CHEBI:12345") == "chebi:12345"
| [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
14b9908178c8743363eb1a49b403aac42ecccffd | 040a49be9a254020899c67152094b7c6bd5e2a36 | /release/ca_descriptions/templates/forestsim_incinerator_wind_SW_3.5.py | e6d644d79d3d7e2e6f21c94d0e769ef6d723b699 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"BSD-2-Clause"
] | permissive | Leon-Singleton/Forest-Fire-Simulation-Using-Cellular-Automata-Python | 51e0b1f64d79855b506603479e423fbe7771efc8 | 6c890b53dce152bf03cbb325d285b06d2264d597 | refs/heads/master | 2021-06-16T21:31:24.730398 | 2021-04-29T11:56:33 | 2021-04-29T11:56:33 | 199,534,962 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,722 | py | # Name: NAME
# Dimensions: 2
import inspect
import math
import random
# --- Set up executable path, do not edit ---
import sys
import numpy as np
this_file_loc = (inspect.stack()[0][1])
main_dir_loc = this_file_loc[:this_file_loc.index('ca_descriptions')]
sys.path.append(main_dir_loc)
sys.path.append(m... | [
"noreply@github.com"
] | Leon-Singleton.noreply@github.com |
eb35b2c2e51714228552809f270f084565a0632e | 85b0c95499b67aeed5885d0d5ad7fcef94d982e7 | /helper/data_logger.py | 874630f4beb2b2eddaaac45d638d0464b7e5cda4 | [
"MIT"
] | permissive | georgezouq/Personae | becd3c7a41f8c1d37ecb1fbd6c28a26ea24dc522 | 1a0d67b04d9b692aceb4f499207751829cafba9f | refs/heads/master | 2020-03-27T19:02:46.091638 | 2018-09-19T02:49:50 | 2018-09-19T02:49:50 | 146,962,267 | 1 | 0 | MIT | 2018-09-01T02:58:51 | 2018-09-01T02:58:51 | null | UTF-8 | Python | false | false | 1,507 | py | # coding=utf-8
import logging
import os
from datetime import datetime
from static import LOGS_DIR
DATETIME_NOW = datetime.now().strftime("%Y%m%d%H%M%S")
def generate_market_logger(model_name):
market_log_path = '{}-{}-{}'.format(model_name, DATETIME_NOW, 'stock_market.log')
market_logger = logging.getLog... | [
"ceruleanacg@gmail.com"
] | ceruleanacg@gmail.com |
7b1d8bb258a7103c7da00088999d4559fef09750 | ec8d24cab32a821338055654e51589307d363d86 | /linked/linked/pipelines.py | f065f97abef8391e9b5328856dadafb106afd6e1 | [] | no_license | caiprozect/crawl | ce64c765469baf64e09dae4229d9387512302a45 | 43b75aca258830c44628e3efc33aabce9d4957e7 | refs/heads/master | 2021-01-24T09:45:33.061037 | 2016-10-05T12:00:08 | 2016-10-05T12:00:08 | 69,521,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class LinkedPipeline(object):
def process_item(self, item, spider):
return item
| [
"caiprozect@gmail.com"
] | caiprozect@gmail.com |
e6963b1f1c20af3ad100d73cbd2a60ebafed797b | afe177633a6af170d6a2f56660aafb7cef388daa | /sprites/ground.py | 87e71d59839583697b126e1acb0ab513302bd842 | [
"MIT"
] | permissive | sdcpku/FlappyBirdAI | 5f25c61bcbf7c6b68c82be653946b24dfda0b42d | 945f42a6a5f83facf69f314f40af9612638467e9 | refs/heads/master | 2021-01-12T14:19:42.875747 | 2014-06-20T06:02:42 | 2014-06-20T06:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import cocos
import cocos.euclid
import cocos.collision_model
import setting
class Ground(cocos.sprite.Sprite):
def __init__(self, y):
super(Ground, self).__init__(image="resources/ground.png")
position = (setting.GAME_WIDTH - self.width / 2, y)
self.position = position
self.csha... | [
"xianyubo@qq.com"
] | xianyubo@qq.com |
d2f174d698d8c02ec6ecce24ca62979fbca72999 | 0397efdc80bae46a9057b80d98f281dfad421abf | /monitorize/wsgi.py | 0bddf78b1d1db059f733bb50f77e5fc47114029b | [] | no_license | sungpia/Monitorize | 4751b608d4284cc148cc6b106ae31033b1117761 | b472a74c0145995f4bc51e2cc271ee86dd9ce9a9 | refs/heads/master | 2020-05-26T15:48:39.961287 | 2019-05-24T21:35:35 | 2019-05-24T21:35:35 | 188,293,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for monitorize 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"sungpia@me.com"
] | sungpia@me.com |
8df8770f43395ac195c0de00375b8098830b1db6 | 7670598360cdd28a75c17cbdc74eedcd2bcd916c | /driver/world.py | 80934c961a8e764d2d7b47851cda81b2b2fc0046 | [] | no_license | jordan-schneider/driver-env | d5663edffebd1acb4b53b81bff43a8a416152fa0 | 45a1c3ef478826ed33298f53bfa6d57d825b9e43 | refs/heads/main | 2023-06-05T01:06:34.891257 | 2021-06-17T01:40:42 | 2021-06-17T01:40:42 | 342,935,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,876 | py | """Base class for driving scenarios."""
from typing import Any, Dict, Iterable, List, Optional, Tuple
import numpy as np
import tensorflow as tf
from car.fixed_plan_car import FixedPlanCar, LegacyPlanCar # type: ignore
from driver.car import Car
class CarWorld:
"""
Contains the objects in a driving scenar... | [
"jordan.jack.schneider@gmail.com"
] | jordan.jack.schneider@gmail.com |
cc253dd395f7b5886f218c25e5d30b74c5670852 | 91afa6d9e893b6b6586226acaca684ab8bbfb5e9 | /plaining/migrations/0003_person_sexe.py | 9f72632904fd8a0ac8a753d9b054704119a77521 | [] | no_license | elmehdiLAM/frontend | 4a71604d9cb75511d98d17acebb44bcf9db8ad4c | e469cf7d01665065309d620bc55867949020d2ab | refs/heads/master | 2023-03-08T12:33:10.055991 | 2021-02-21T17:02:49 | 2021-02-21T17:02:49 | 340,951,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # Generated by Django 3.1.4 on 2021-01-02 22:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plaining', '0002_auto_20210102_1516'),
]
operations = [
migrations.AddField(
model_name='person',
name='sexe',
... | [
"elmehdi.lamsyah@fsr.ac.ma"
] | elmehdi.lamsyah@fsr.ac.ma |
39a6558bfc2c2ddd777939bce2b4f90f80b198ee | 8901d53969eb840338fb3b66895d199e4c82aad7 | /vantage_media_player/bin/django-admin | 66b2baa559b0508aad95a980ef2638ff3144b892 | [] | no_license | SaundersB/web-media-player | 26438614685ba6d065d5d64c61468862cf4535cd | 3b3690a6860a4d815542f0fdfa524b3ba0222fcc | refs/heads/master | 2021-05-31T22:27:28.969328 | 2016-07-19T20:29:27 | 2016-07-19T20:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | #!/home/brandons/src/Web_Media_Player/vantage_media_player/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"speakeasys@gmail.com"
] | speakeasys@gmail.com | |
d018dae1106391a3d078188de5671e9268624e32 | 7dd3f071766dbac0fccaffa68644d86a1831e764 | /chapter_1/p1_7.py | 033399a950c867cd50ac57483f0f5d046e9cafd5 | [] | no_license | gaokang9009/CTCI_python | 22eb223d698e33b306bb21e16095d408363c3b2f | e28399c3b133af9913d0228c400aa67e4b113150 | refs/heads/master | 2023-01-04T13:44:51.936748 | 2020-09-23T21:09:57 | 2020-09-23T21:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from typing import List
def rotate(arr: List[List[int]]) -> List[List[int]]:
rot_help(arr, 0, len(arr[0])-1, 0, len(arr)-1)
return arr
def rot_help(arr, xl, xh, yl, yh):
if xl >= xh and yl >= yh:
print(f"Shorting 0 or 1 wide at {xl} to {xh}")
return
else:
rot_help(arr, xl+1, ... | [
"bogdan.stoicescu17@imperial.ac.uk"
] | bogdan.stoicescu17@imperial.ac.uk |
89e36ad6da49de830237eae3d65f2168dc4709bc | bd23d83683c9b6ef9e440b751b0b9f3a6daab126 | /src/djangodbu/sql.py | e545e4d65a26b9a77491e38dccee5f6168bad92b | [
"MIT"
] | permissive | mulderns/djangodbu | 08cf83a3edccc84bc9b9fd8517b876b4bb595fdc | 25c212986776a1bac63efed2040fd555f1d20f40 | refs/heads/master | 2023-03-11T20:38:39.870146 | 2023-03-02T11:31:10 | 2023-03-02T11:31:10 | 95,750,999 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,332 | py | # -*- coding: utf-8 -*-
''' For debugging SQL queries, (SOME ASSEMBLY REQUIRED!)
You need to:
- add a line to django.db.backends.utils.py, see details in stack_position
- configure excluded paths for stack traces to get cleaner output
'''
import logging
import re
import os
import traceback
from math ... | [
"mulderns@iki.fi"
] | mulderns@iki.fi |
876a4e19c8e2c703b622a9bd2a112eb53263922f | cca746947ed7779c48dbca2bdd6398755445f801 | /chapter13/decorate_demo.py | 530e3e7f50f686fcd6730def079ee16e9c8d6ff5 | [] | no_license | TangBean/AdvancePython | 0081ce5afc434dd8ee10d3539df952d1845c8cff | 6b29c3c271104fdc947522f26c9884c011147c86 | refs/heads/master | 2020-05-19T21:10:37.330795 | 2019-05-13T15:19:21 | 2019-05-13T15:19:21 | 185,217,792 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | def log(func):
def wrapper(*args, **kwargs):
print("call %s():" % func.__name__)
func(*args, **kwargs)
print("call finish")
return "returning"
return wrapper
# 在这里用 log 装饰 now 函数,相当于调用了 now = log(now),也就是说,now 函数现在是 wrapper 函数
# 然后调用 now("hello") == wrapper("hello")
# 在 wrapper... | [
"984354469@qq.com"
] | 984354469@qq.com |
126797cd83a42c98ec04cdb75a1bd48f2f88afc4 | ea3063b9559046fdd53e9ceff8839adcb04671d5 | /nn/data/augmentation_preprocessing.py | 3a227a3c7e986d64a1a3eeccd882202b57fe6302 | [] | no_license | Juravlik/diploma_1 | a4f2631c588841139a13db917326f137e741ea08 | 07d95db3b0df529d3bce37de81b96aa75ad5a3e4 | refs/heads/main | 2023-05-04T07:08:23.746603 | 2021-05-27T01:40:25 | 2021-05-27T01:40:25 | 370,557,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | import albumentations as A
import torch
import random
import numpy as np
import cv2
IMAGE_SIZE = 256
def lock_deterministic(seed=42):
np.random.seed(seed)
random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
torch.backends.cudnn.benchmark = F... | [
"temelyanov@griddynamics.com"
] | temelyanov@griddynamics.com |
106f45f4de87ee679c33655383f062436ab7d436 | e928be64f52609ac4be5cb0a4c2d8571d999bb2d | /JapaneseTools/Conversion/k.py | e938a9f155b61fb276531464e2f97f93460a400f | [] | no_license | youkaicountry/JapaneseTools | ac19bd6e9202f5e474b74649032cd87ad7017863 | 20fcec03c0e24bbb65a2846cdeae81f9f86ccb99 | refs/heads/master | 2021-05-26T18:45:35.305598 | 2011-12-10T04:32:38 | 2011-12-10T04:32:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,382 | py | # -*- coding: utf-8 -*-
def toIF(kana):
#step 1: basic processing
t = []
for x in kana:
t.append(__getRomaji(x))
t2 = []
#step 2: process special characters
t2pos = 0
for i in range(len(t)):
if i > 0 and t[i-1][0] == ">": continue
if t[i][0] == "<":
if i ... | [
"nbcwell@gmail.com"
] | nbcwell@gmail.com |
2a99b3bb613dba1885dc7a069898c4d69a501f7e | 833b43575815ce6c5fa8cbac2628cb774331eda7 | /chap20_p371_code3.py | dcda8aea075beb81ff7c9027d10c117c90dfe210 | [] | no_license | ai-times/infinitybook_python | d9529dfe7d486bf5c713d52b530915a23cbf1812 | 1c011c31994d07fe959bba9b519c4365f5f40e7f | refs/heads/main | 2023-03-01T12:18:20.695888 | 2021-02-14T04:22:40 | 2021-02-14T04:22:40 | 338,578,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from datetime import datetime
birth = datetime(2002, 6, 30, 10, 15, 3, 56765)
now = datetime.now( )
print( now - birth )
| [
"wskim092@gmail.com"
] | wskim092@gmail.com |
5d54d9806081b5a4bfe7026d4711ef3642d29885 | 0bfb74494054dc9e0774618687b5d234e6db6a92 | /ch11/progress_queue.py | 400bf69717d73d7b1dbf7bc59cba559aad28aa52 | [] | no_license | FSSlc/AdvancePython | dddee32524cf1071a36eb4316efc2b53185645e3 | 61ed98f951fc877cc01e43a50488fc91b775c0f0 | refs/heads/master | 2022-11-06T10:53:07.812770 | 2020-06-25T23:43:24 | 2020-06-25T23:43:24 | 273,885,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | #!/usr/bin/env python
# coding: utf-8
"""
通过 Queue 来进行进程间通信
共享全局变量不能适用于多进程编程,可以适用于多线程编程
multiprocessing 中的 Queue 不能用于 pool 线程池
pool 中的进程间通信需要使用 manager 中的 Queue
还可以使用管道 pipe 来进行进程间通信
"""
import multiprocessing
import time
from multiprocessing import Process, Queue, Manager, Pipe
def producer(queue):
queue.put('a... | [
"fsslc235@gmail.com"
] | fsslc235@gmail.com |
d1456bb6326f302fbb94ad3ef15d4303f90f97cc | 9f6691c51f5ee58d19caa5c9e4cb82ddbd917ec0 | /V2RaycSpider1225/src/BusinessLogicLayer/utils/staff_mining/support/staff_collector.py | 51704a1ff91c67c352648a349fe62e6638fb4d65 | [
"MIT"
] | permissive | TOBICHI-Origami/V2RSS | 2bef6e1e48942cf21023a3c91eefeecb42ddfe3e | a5dc1478b0229d87881c53095366f692ddeac04a | refs/heads/master | 2023-09-05T07:55:45.082232 | 2021-10-19T15:35:25 | 2021-10-19T15:35:25 | 420,401,126 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,741 | py | __all__ = ["StaffCollector"]
import random
import sys
import time
from selenium.common.exceptions import NoSuchElementException, WebDriverException
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from... | [
"62018067+QIN2DIM@users.noreply.github.com"
] | 62018067+QIN2DIM@users.noreply.github.com |
6a58e63d91a21db344180ef94deea98046c9a6e6 | b27e4c2f80f306fe758d77a03a9d626e5eea77cc | /zuri_one.py | ec60691af1f5a6acdbc6ace6b21860a76a05b56c | [] | no_license | Fredricknjeri/zuri_atm | 8e4919c2580486f661531620b46ec1d3f9098582 | fc6da81986083cfae33330e4ac3bf786248c9169 | refs/heads/main | 2023-04-18T16:07:05.404796 | 2021-04-24T13:25:09 | 2021-04-24T13:25:09 | 361,167,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | from datetime import datetime
import time
import sys
username = input('What is your name?\n')
allowed_users = ['Fred', 'Monic', 'Tony','Mary']
passwords = ['fredpass','monicpass','tonypass','marypass']
amount = [50000,40000,100000,80000]
#progressbar
def update_progress(progress):
print('Processing...')
for i... | [
"fredricknjeri@Fredricks-MacBook-Pro.local"
] | fredricknjeri@Fredricks-MacBook-Pro.local |
786b1d757a1cff4c034b72055eedc3bf6af0e80e | 95842c10eebe5cfb3e97bbe13134517180367bea | /venv/Scripts/pip3-script.py | ac080d5977424b134355c53cd6c27f1c0f045566 | [] | no_license | linaGitHub1/PyCharmProjects | 0fd2c0ebe3a2db9a0256d492364ea5b021686494 | e3953413b97f14abeb979baf8b9b801a9ac6ccd9 | refs/heads/master | 2021-01-04T06:00:42.300307 | 2020-02-14T06:56:41 | 2020-02-14T06:56:41 | 240,420,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #!D:\PyCharm\Lina\PyCharmProjects\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"lina_lemon@163.com"
] | lina_lemon@163.com |
82fe4e45ff38d5287f5bdbc7456289d0b5be9b04 | 4befe5b55c189da9e3f73e9c372ad2effec8ffcb | /tests/features/steps/models_repo/test_models_delete.py | 29db060d9337e515002fd6978d3f44a36542eec5 | [
"Apache-2.0"
] | permissive | mohamedgaliaa/dtlpy | da68abc0c03a23efb103c4a8dc50e8cfd6909800 | 502a51881bd41497c8b5d9096e8478fd13f3f174 | refs/heads/master | 2023-04-03T17:10:37.249161 | 2021-04-07T12:44:54 | 2021-04-07T12:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | import behave
@behave.when(u'I delete the model that was created by name')
def step_impl(context):
context.project.models.delete(model_name=context.model.name)
@behave.when(u'I delete the model that was created by id')
def step_impl(context):
context.project.models.delete(model_id=context.model.id)
@behav... | [
"micha@dataloop.ai"
] | micha@dataloop.ai |
08283262024ac11a678bf93a86fc13799fde7db9 | c7231df2a4740dde9e19d4db174d3fbc3d617033 | /test/build/exe.win-amd64-3.5/PyQt5/_QOpenGLFunctions_2_1.pyi | c121336e38ab0a6ab5822ff9a0159402b3f3476d | [] | no_license | wangzhibinjunhua/python_test | c05c1b250dbabe13243c3e46af13efb25f0bd298 | ddd812e81e1ba1d82fdc525aff3e8b3a935b6f70 | refs/heads/master | 2021-10-03T10:54:23.561997 | 2018-12-03T01:33:11 | 2018-12-03T01:33:11 | 103,799,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,729 | pyi | # The PEP 484 type hints stub file for the _QOpenGLFunctions_2_1 module.
#
# Generated by SIP 4.18
#
# Copyright (c) 2016 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as publ... | [
"wangzhibin_x@foxmail.com"
] | wangzhibin_x@foxmail.com |
29689d82e65139fffd325b2517ea32a511041d38 | 9734c93c86c982b1ce046340bac9e53645b261b8 | /tests/formatters/yaml_formatters_file.py | f69655c1080aa94b6d70e50bbc0002921e12694b | [
"Apache-2.0"
] | permissive | log2timeline/plaso | cd72dd407d6c5627506c14f58cb8f6a6926aa808 | d6022f8cfebfddf2d08ab2d300a41b61f3349933 | refs/heads/main | 2023-09-02T08:43:48.241198 | 2023-08-19T07:28:12 | 2023-08-19T07:28:12 | 23,812,315 | 1,506 | 421 | Apache-2.0 | 2023-09-04T08:24:53 | 2014-09-08T23:29:28 | Python | UTF-8 | Python | false | false | 3,363 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the YAML-based formatters file."""
import io
import unittest
from plaso.formatters import yaml_formatters_file
from plaso.lib import errors
from tests import test_lib as shared_test_lib
class YAMLFormattersFileTest(shared_test_lib.BaseTestCase):
"""Test... | [
"noreply@github.com"
] | log2timeline.noreply@github.com |
da6268d37a31875a6f3720c7b2592c435e43bc0f | 0b01f92e125c27ceaf7586645f72dd5234e6841f | /Pages/product_details_page.py | 14698824353ac81b2aa33a4eb20094f8e7cce642 | [
"MIT"
] | permissive | gykudo/sauce_demo | 40789ee7b55b36e37bd77752f5a55a00890409ca | 313b4bd956cad4807d225b0a7ed98ca0be9f3371 | refs/heads/main | 2023-01-11T16:08:37.710841 | 2020-11-14T13:26:09 | 2020-11-14T13:26:09 | 305,707,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | from Objects.product import Product
from Pages.base_page_object import BasePage
from Locators.product_detail_page_locator import ProductDetailPageLocator
class ProductsDetailsPage(BasePage):
def __init__(self, driver):
super().__init__(driver)
def get_product_badge(self):
total = 0
try:
total ... | [
"tukimtuan@gmail.com"
] | tukimtuan@gmail.com |
0e1cdca49f5eeb7315a63e0091ae55029d0eece7 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_watch_event.py | eeac0514753ca0d2cfe0c9ba717f53e73fabf2aa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 3,880 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
e47e26a1d21f99e42e90ad7c55badcdb1476659d | cbfb8897956669c1b3d12df21b98e32b4eedb74a | /api/app/models/base_model.py | 533e43772754174f31143bd563a16122deea19b5 | [] | no_license | jorgi710/PruebaAndres | 1c449b61079b7a4239b66a19a3a66479561518cd | 849d80a231ca210df3c7740a90180656d31fefb9 | refs/heads/master | 2023-08-24T04:50:40.374300 | 2021-10-30T17:08:15 | 2021-10-30T17:08:15 | 422,941,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | # -*- coding: utf-8 -*-
#########################################################
from datetime import datetime
from app import db
from app.exception import InternalServerError
class BaseModel(db.Model):
__abstract__ = True
id = db.Column(db.Integer, primary_key=True, nullable=False)
create_date = db.Co... | [
"jorgi710@hotmail.com"
] | jorgi710@hotmail.com |
895889f61a87b66537421257604f1a6e97cb00b0 | 91ff50a612aaa081ed89dc6ce529ddcac3a054cb | /scripts/cluster_init.py | 4e9c3384aca2a6ada678726a1fd31535f34b4539 | [] | no_license | wgantt/event_type_induction | 85f13715a39683015670d290196cedd0e46dd394 | 52959012756efb5a1bd328e35ff4094a2722a555 | refs/heads/master | 2023-08-04T06:51:19.273433 | 2021-09-12T19:36:37 | 2021-09-12T19:52:42 | 286,784,794 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,703 | py | # Package external imports
import argparse
from decomp import UDSCorpus
import numpy as np
import random
from sklearn.mixture import GaussianMixture
import torch
from torch.nn import Parameter, ParameterDict, Module
from typing import List
# Package internal imports
from event_type_induction.constants import *
from ev... | [
"wgantt.iv@gmail.com"
] | wgantt.iv@gmail.com |
812740cc28468da5b0b2168e7b0073a2145eca87 | fb8c088fb460fdb31f766044883c752b6315c93e | /daily14/test_ratings_key.py | 125bd7a5199bc706348c00b292f215c0ab33f117 | [] | no_license | gjakubik/paradigmsCollaboration | 9a3797e8dc73cef62995f7bb0677856be699f180 | 0e75c006e71e37c5f7e287d9d43e8f246f79857e | refs/heads/master | 2023-01-02T17:25:46.272412 | 2020-10-26T18:32:56 | 2020-10-26T18:32:56 | 300,013,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | import unittest
import requests
import json
class TestRatings(unittest.TestCase):
SITE_URL = 'http://localhost:51068' # replace with your port id
print("Testing for server: " + SITE_URL)
RATINGS_URL = SITE_URL + '/ratings/'
RESET_URL = SITE_URL + '/reset/'
def reset_data(self):
m = {}
... | [
"gjakubik@nd.edu"
] | gjakubik@nd.edu |
cb2e1a3938df6ebe22a28a25c29f67bdea6afc60 | b44234267386b8d162bafec0a3cd2d718eb3afde | /code/simplemooc/simplemooc/courses/forms.py | e69256612c19f5811fb128f19e0799137ac59d3a | [] | no_license | PuckmanXY/Simple_MOOC | afb6efaa6d23c362d438fda004c79e94bfa11e5e | afe01970ecb131b2e517b9520b158a70728507ce | refs/heads/master | 2021-04-29T12:03:18.547459 | 2018-04-21T00:29:20 | 2018-04-21T00:29:20 | 121,720,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | from django import forms
from django.core.mail import send_mail
from django.conf import settings
from simplemooc.core.mail import send_mail_template
class ContactCourse(forms.Form):
name = forms.CharField(label = 'Nome', max_length = 100)
email = forms.EmailField(label = 'E-mail')
message = forms.Char... | [
"kayoanderson0403@gmail.com"
] | kayoanderson0403@gmail.com |
3ebe01d084af1e6585aa032e0a4d15ab6c775bfd | 0a3eada15be160f13642afc357b74dd8c2095710 | /2017/python/14-disk-defragmentation/main.py | 3cf0e0206fedac1fc80c289314d3589ad87f2cfb | [] | no_license | cj1128/advent-of-code | af8edfa0e1479ed1221c07eb28eab193877a66d6 | 273eeaf97204ca1755006b7c4b61ac3609124f79 | refs/heads/master | 2022-11-28T18:58:32.087955 | 2020-08-09T13:57:40 | 2020-08-09T13:57:40 | 113,849,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | import binascii
import numpy
import sys
sys.path.append("..")
from utils import know_hash
input = "hwlqcszp"
part1_test = ("flqrgnkx", 8108)
def solve_part1(input):
used = 0
for i in range(128):
hash = know_hash(f"{input}-{i}")
bits = format(int(hash, 16), "08b")
used += bits.count("1")
return used... | [
"fatelovely1128@gmail.com"
] | fatelovely1128@gmail.com |
541be20181d90c2f788955ed7c94c8e307b6d08e | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/internal_money_payment_workflow/scripts/validateCounter.py | 1259c1c7a0143dad30f158e310e8328d81adaa3d | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | from Products.DCWorkflow.DCWorkflow import ValidationFailed
from Products.ERP5Type.Message import Message
transaction = state_change['object']
date = transaction.getStartDate()
source = transaction.getSource(None)
# check we are in an opened accounting day
transaction.Baobab_checkCounterDateOpen(site=source, date=tr... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
c4167281b5e6283bb6cd67dd447b40152c61100c | f36fc94a1ac5ffbfb6d2a78807992347a7e9f6e2 | /assignment1/cs231n/classifiers/linear_classifier.py | 844826318d20b5e2114d43a0cfb20aa6ca31046a | [] | no_license | Dipeshtamboli/CS231n-Assignments | d2f60504410499aed96da9f988fc69c239096abe | 146b3ce885867c81dd609abdbaedabeafa23f7b7 | refs/heads/master | 2020-04-11T09:10:45.563002 | 2019-01-01T20:56:18 | 2019-01-01T20:56:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,966 | py | from __future__ import print_function
import numpy as np
from cs231n.classifiers.linear_svm import *
from cs231n.classifiers.softmax import *
class LinearClassifier(object):
def __init__(self):
self.W = None
def train(self, X, y, learning_rate=1e-3, reg=1e-5, num_iters=100,
batch_size=200, verbo... | [
"dipeshtamboli@gmail.com"
] | dipeshtamboli@gmail.com |
d243c506f63f7cc1780806923f5d78de5943116b | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/linearrelu_5.py | efcfbec738c0a5f4fad45d439a1de52528caf7c2 | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 675 | py | # -*- coding: utf-8 -*-
"""
linearrelu_5.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class LinearReLU_5(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Linear(in_features=784, out_features=70, bias=Tru... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
cccfd301348060e0bbbb8535705d6e1069d6c44a | 4341fa31ee6a6f964c4545b648eedfdda4192b3a | /contentFeatures.py | 43b97a25a578d7e3f4e5a40a2db11fc6c74e705a | [] | no_license | Asmita-Ranashinge/Data-Analytics | 60715ec65b423fb0ee16e9753b52682abc31a305 | 0fadc0ad3ada90b0a641cc7c7ece0623de5a8cad | refs/heads/master | 2020-06-12T22:11:56.531414 | 2019-06-29T19:55:02 | 2019-06-29T19:55:02 | 194,443,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | import string
import nltk
from collections import Counter
from nltk.tokenize import RegexpTokenizer
from nltk.corpus import stopwords
from nltk.stem.porter import *
def get_tokens():
with open('Phishing_Content.txt', 'r') as shakes: #load text file
text = shakes.read()
lowers = text.lower()
... | [
"asmita.ranashinge@gmail.com"
] | asmita.ranashinge@gmail.com |
3d648307ee324055cbbbdd9c14e4bd57f785a79d | c9704cb6f799620090f0e8e3ec3fbcb720e032e6 | /grunge/tests/test_tracks.py | 6819feb99e77906a25683263e96cb52de27f31c3 | [] | no_license | LiveLike/grunge | afceb90c96bce73311e41c2f2d69091808fa84ea | 8ac296099b7e579147e7f6b2685cfd788650c0b8 | refs/heads/main | 2023-02-23T13:59:13.148883 | 2021-01-26T17:58:31 | 2021-01-26T17:58:31 | 333,166,387 | 0 | 3 | null | 2021-01-26T19:10:35 | 2021-01-26T17:43:37 | Python | UTF-8 | Python | false | false | 1,404 | py | from uuid import UUID
from furl import furl
from rest_framework import status
from rest_framework.reverse import reverse as drf_reverse
from . import BaseAPITestCase
class TrackTests(BaseAPITestCase):
def setUp(self):
self.track_name = "Last Exit"
self.track_uuid = UUID("b3083319-47a9-40ed-a4e0-... | [
"benwilber@gmail.com"
] | benwilber@gmail.com |
9928a8ad26f248afae38d0f90a41c40115d927dc | 3865d338db6caedff9cce9c0ca2ac4b5929ac2d1 | /nanjiang/misc/uniprottrembldat2table.py | d042cb83f1815e6a9de9844a6060620eeda49a66 | [] | no_license | vam-sin/bioinfo-toolbox | fc90b347da7d733a2e5732b7352f1e8cdbf5b164 | 79f52038b7eb20337508ee49a87d2677a8ffad9c | refs/heads/master | 2022-12-09T18:39:18.743490 | 2020-08-26T14:14:58 | 2020-08-26T14:14:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,325 | py | #!/usr/bin/env python
# Description: Extract data from uniprot_trembl.dat
# ChangeLog 2014-08-28
# add options
# -keep_no_genename Keep proteins without gene name
# -keep_non_refpro Keep protein not in reference proteome
# -keep_isoform Keep proteins in isoforms
# ChangeLog 2014-0... | [
"nanjiang.shu@bils.se"
] | nanjiang.shu@bils.se |
cd3b8b16eeef7fca013cfb2b4744d00d3610f92f | 21587c0e6c0b71cd8db7f8592b75e661388a53d3 | /run.py | b761ad01e77e0726a97e17318efe25513ad6ef17 | [] | no_license | Junwu302/ResistoMap | 63999f99fd2ae3fbfd815e993cd90ad61225eca5 | 48da878eb6927d15c14733f9eeeb155fafbe616b | refs/heads/master | 2020-06-14T00:22:09.591337 | 2017-01-16T16:38:45 | 2017-01-16T16:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from src.main import main
import argparse
import os
SCRIPTDIR = os.path.dirname(os.path.realpath(__file__))
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('read_file', metavar='read_file', type=str, nargs='+',
help='input read files')
parser.add_a... | [
"yarygin@phystech.edu"
] | yarygin@phystech.edu |
e168642194f6d7a4aef859071a5f60aaa48f573d | 327112e61d08ff89a6609d3a9e7d091c72718c44 | /tutorial/settings.py | cec40f80ab040d2a77bc4a1aff2c407a1b128742 | [] | no_license | bridgecrew-perf7/tutorial | 1149698870b619c61be7d31ec5cf3df59d9bfefa | 456a27fde546b431cb039545cc4af51fdab2a7e6 | refs/heads/master | 2023-05-08T14:29:15.907222 | 2021-05-29T19:36:05 | 2021-05-29T19:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,225 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
i... | [
"agenganugrah@gmail.com"
] | agenganugrah@gmail.com |
8e65f1218388ca45500e4bd62348647c2fbb7197 | 344e2956b4e2a30a8ef7532d951f96d995d1dd1e | /21_maskrcnn/lib/cfgs/cascade_mask_rcnn_r101_64x4d_fpn_coco.py | d43096d1dc7c09bd4ed5fbb76ee8a9fbe1c09e25 | [
"Apache-2.0",
"LGPL-3.0-only",
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"GPL-3.0-only"
] | permissive | karndeepsingh/Monk_Object_Detection | e64199705326e4cd65e4b29946cae210a4ef9649 | 425fa50a3236cb9097389646275da06bf9185f6b | refs/heads/master | 2022-12-22T18:26:53.933397 | 2020-09-28T12:49:50 | 2020-09-28T12:49:50 | 299,307,843 | 1 | 1 | Apache-2.0 | 2020-09-28T12:52:18 | 2020-09-28T12:52:17 | null | UTF-8 | Python | false | false | 9,156 | py | # model settings
model = dict(
type='CascadeRCNN',
pretrained='torchvision://resnext101_64x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=64,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN',... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
8154743effc63d1f2a7c401f9819631fb1bc162c | a20e686d8e176cd30e157bf55f219b1738b204b7 | /lambda/lambda_comprehend.py | 44030402bbbac2107844a532e3e5b17c385263fd | [
"MIT"
] | permissive | Veryinheart/aws-tutorial-code | 5e61465571f305e75f1905fa26aab0e8dadf3168 | 6b2a88340d8a94e51bf5c2935704edb9a78c4244 | refs/heads/master | 2022-07-07T14:15:35.018888 | 2020-05-13T18:32:22 | 2020-05-13T18:32:22 | 267,770,685 | 1 | 0 | MIT | 2020-05-29T05:12:37 | 2020-05-29T05:12:37 | null | UTF-8 | Python | false | false | 927 | py | """
-*- coding: utf-8 -*-
========================
AWS Lambda
========================
Contributor: Chirag Rathod (Srce Cde)
========================
"""
import boto3
from pprint import pprint
def lambda_handler(event, context):
s3 = boto3.client("s3")
bucket = "bucket-name"
key = "filename.txt"
file =... | [
"chiragr83@gmail.com"
] | chiragr83@gmail.com |
119662e1432ab732091a253b070a031ee6566b6d | 9490e6f64e8824f15384d8f740fe136f31cec1b5 | /venv/bin/ipython | 5262c7d3931f5ba0f150a72e2986e01884b7f486 | [] | no_license | AmoCook/GUI_pj | cc3b49d8fb6244e1c33163812cb1835b8d18b960 | 729bed91a96d7366401b82dd7cfc2cbc4ff59997 | refs/heads/master | 2020-04-16T13:23:58.449573 | 2019-01-14T09:22:11 | 2019-01-14T09:22:11 | 165,625,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/amo/PycharmProjects/test_1/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"amo9502@stumail.nwu.edu.cn"
] | amo9502@stumail.nwu.edu.cn | |
410dc874ff5b29dbc7227b95c1a8c1894533a7aa | 6113017bfaec2c2f0e5919b41bb78a5336722303 | /luminartechnolabproject/dictionary/word_count.py | e25d3bcb5e42bd4cd5f5f0acda8fe740556e45d1 | [] | no_license | prince2255/python | 2affcf998dcf1e756fe36c0e8ee5f70ccc226cb6 | b0ad2e5a62ac0d6251ceefdc1909f294e9d9ac69 | refs/heads/master | 2020-12-11T00:42:49.680357 | 2020-01-28T05:54:32 | 2020-01-28T05:54:32 | 233,756,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | line="hai hello hai how"
words=line.split(" ")
dict={}
for word in words:
if(word not in dict):
dict[word]=1
else:
dict[word]+=1
for item in dict:
print(item,end=" ")
print(dict[item]) | [
"75prince76@gmail.com"
] | 75prince76@gmail.com |
b6329d939728790bcea89156b8375bc4669e816f | 67a7bf852f9284f59b0b3e604572524ae6f02cf2 | /mergesort.py | 30724c7c8d469fe44d7dc7741d37e51d472e5da5 | [] | no_license | sheetaljantikar/python-codes | 6745cfda23f47e387a5954e2c9bcc739164e0803 | f0a27c3159aafd97f9d66f192d8cdc48fe51bca5 | refs/heads/master | 2020-12-25T13:45:48.132779 | 2016-06-28T04:22:32 | 2016-06-28T04:22:32 | 62,109,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | def merge(left,right,list):
nl=len(left)
nR=len(right)
i=0
j=0
k=0
while(i<nl and j<nR):
if (left[i]<right[j]):
list[k]=left[i]
k=k+1
i=i+1
else:
list[k]=right[j]
k=k+1
j=j+1
while (i<nl)... | [
"noreply@github.com"
] | sheetaljantikar.noreply@github.com |
8cc5c311344282da37caf398197d8929dffbdf8f | a5b235e3b6d263c3ea6e820154454b703148181b | /tool/begin.py | 9d71c390e3c45732370f694e39e7bf748c0ac346 | [] | no_license | shiyuyuanyue/stat | 9ad343e97c1d29dfb795dc88cc83372afbc5edd8 | a24ed90c6b08d1e548ed7fb589b9587d1c3dfd14 | refs/heads/master | 2021-01-13T23:53:44.418934 | 2020-02-23T15:27:32 | 2020-02-23T15:27:32 | 242,534,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | data = {}
print(bool([data])) | [
"776977960@qq.com"
] | 776977960@qq.com |
892e33c12c641e469991e444dcd7b42bcc2337f4 | 3f77f05c6a664555d5a99896597ebb447be3fbe4 | /src/main/python/gui.py | 482411caa50ef232aa15c4b256af23addc0f240d | [] | no_license | JettChenT/echat-client | 9d090462580191c250a619739e5a21442b0e8094 | b1f33a30e38421832e63e3c1e3c6e0e1dc32ce1f | refs/heads/master | 2023-03-01T09:00:44.364691 | 2021-02-01T02:56:46 | 2021-02-01T02:56:46 | 334,071,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,201 | py | from executer import Executer
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from threading import Thread
from time import sleep
import json
from passwordStrength import PasswordStrengthChecker
import sys
import faulthandler
import atexit
from fbs_runtime.application_context.PyQt5 import ApplicationContext
f... | [
"jettchen12345@gmail.com"
] | jettchen12345@gmail.com |
40c87866e4260e92c9b0ecbd0776992362a3c7fa | ed36b3f1a953545e0f4d90d3d716e07d5d1900cd | /src/ARIMA-Future.py | 81776f2324397777b963c2c5877c5bb6927c863b | [] | no_license | Sprea22/CS_Bachelor_Thesis___Python_Data_Analysis | ab0c2a840277511577e5c2d7c723a8dbe9840683 | f0a06db61809f08d491a342b976acd7202fa3a83 | refs/heads/master | 2021-06-16T18:23:36.984031 | 2017-06-01T09:44:06 | 2017-06-01T09:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | import os
import csv
import sys
import warnings
import numpy as np
import pandas as pd
from pandas import Series
from matplotlib import pyplot
from statsmodels.tsa.arima_model import ARIMA
pyplot.style.use('ggplot')
#-------------------------------------------------------------------------------------------
#%%%%%%%%... | [
"asp005@post.uit.no"
] | asp005@post.uit.no |
3603592a43f6cb57493b90f261bc46ecb00ef171 | 1f936103af336af6bbd335f45d6baa55c426922b | /monatbx/generate_random_image_list.py | 8a9ca4dabc8f05852c8bdb56a7c99cb54b3732fe | [] | no_license | monarin/monatbx | 2ec342d67f1fbccb82656218ffd136f2eb7d96ab | 43f56974f811e5b2b0dcc428d4f9b36043ed9d04 | refs/heads/master | 2020-06-18T13:08:58.893701 | 2016-11-30T00:58:18 | 2016-11-30T00:58:18 | 75,136,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import os
import sys
import random
p = sys.argv[1]
n_images = int(sys.argv[2])
frame_files = []
if os.path.isdir(p):
for pickle_filename in os.listdir(p):
if pickle_filename.endswith('.pickle'):
frame_files.append(p+'/'+pickle_filename)
i_rand = random.sample(range(len(frame_files)),n_images)
frame_file... | [
"monarin@gmail.com"
] | monarin@gmail.com |
947dced367bd8dde73a91f39443a0f7b80bda3a8 | 86319aad3690906f614ac1af28b8843529e9e0da | /thwackbin/data/__init__.py | a156485bd18d0e80a766cdfa5aabbee5f290dab9 | [] | no_license | sohgoh/thwackbin | b5828783a6179e96784bed0bdb894b179e3bea07 | ba9fedc4bcec598f367aa6d4f2567d1840c65c51 | refs/heads/master | 2021-01-21T03:14:08.261732 | 2014-04-16T03:53:51 | 2014-04-16T04:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
thwackbin.data
~~~~~~~~~~~~~~
Package which contains mock results data stored on the file system.
"""
__author__ = 'Andrew Hawker <andrew@appthwack.com>'
import json
import os
RESULTS = None
ROOT = os.path.dirname(__file__)
def init():
"""
Load and cache our results.json data on startup.
... | [
"andrew.r.hawker@gmail.com"
] | andrew.r.hawker@gmail.com |
26733fb81cb6083b579420deb5cc816fb49e12d9 | c1b1967be7dde14f434703922768f4379334e2f7 | /angr_platforms/msp430/arch_msp430.py | 2b193654051a08c8bd5c73575dc91e00935e1d83 | [
"BSD-2-Clause"
] | permissive | grant-h/angr-platforms | aecd0bcc18be870416f508f3ef4f769ffc9878c7 | b0e4648d3ea00fef5c05e4bd1fa9c59c6c4440bb | refs/heads/master | 2021-07-03T19:43:39.324945 | 2017-09-08T22:43:35 | 2017-09-08T22:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | from archinfo.arch import register_arch, Arch
class ArchMSP430(Arch):
def __init__(self, endness="Iend_LE"):
super(ArchMSP430, self).__init__(endness)
# TODO: Define function prologs
# ip_offset = 136
# sp_offset = 124
# bp_offset = 128
# ret_offset = 16
# lr... | [
"edg@cs.ucsb.edu"
] | edg@cs.ucsb.edu |
ba5bb91ca511973700ab76b1f0f7a7bd8c5fc7f0 | d8bc78d7bf99ad456920740e93db5428093dcb45 | /usuario/models.py | 27473f1074764cbbd65d9bdb9a33d6ad0e6d8699 | [
"MIT"
] | permissive | ongame-entretenimento/cadastro | d698adce23eccf066c8da2504d25c7a93a072f46 | 8c9de028088a96ad2e761156ee597cb56456b376 | refs/heads/master | 2021-03-12T20:13:24.737376 | 2014-09-10T20:45:35 | 2014-09-10T20:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | # -*- coding: utf-8 -*-
from django.db import models
class Estado(models.Model):
nome = models.CharField(max_length=100)
def __unicode__(self):
return self.nome
class Cidade(models.Model):
nome = models.CharField(max_length=100)
estado = models.ForeignKey(Estado)
def __unicode__(self):
... | [
"ti@ti-netbook.(none)"
] | ti@ti-netbook.(none) |
6f4f86844af5579493a6f13c1a0dcd95fafe0bd1 | c79e7e691c9fa5cc05bd227209762f735e6263e7 | /pyy1/.pycharm_helpers/python_stubs/-1550516950/apt_pkg/Hashes.py | 92a3d2de462fdebf1fdaf1414141fd87e81bd746 | [
"Apache-2.0"
] | permissive | pyy1988/pyy_test1 | 27fd5fbd41935ba907e26f4f4d2546ca502f29a6 | 6bea878409e658aa87441384419be51aaab061e7 | refs/heads/master | 2020-04-05T07:01:58.745653 | 2018-11-08T12:51:00 | 2018-11-08T12:51:00 | 156,660,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # encoding: utf-8
# module apt_pkg
# from /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
"""
Classes and functions wrapping the apt-pkg library.
The apt_pkg module provides several classes and functions for accessing
the functionality provided by the apt-pkg library. Typica... | [
"347003917@qq.com"
] | 347003917@qq.com |
575a9eb27903aa702c0a9262637736f7f935d21b | 0be37def5e61f61858b9a3c9cbac55cad53224ec | /finchcollector/finchcollector/settings.py | 6949914a0d45e62392c2202a1714bbbddc5e4294 | [] | no_license | crystallynnv/finchcollector | 177b6c23db3175f9f66c0295d455bfff7dc16daa | 9937ec6d0ca6f2b53b2bb7eb5ccac1ecf2a3186a | refs/heads/master | 2021-03-31T06:03:18.088621 | 2020-03-21T16:41:10 | 2020-03-21T16:41:10 | 248,083,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | """
Django settings for finchcollector project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"home@homes-mbp.lan"
] | home@homes-mbp.lan |
0ebcc3529c3a8cb45cbce6983629d8612e22f559 | 4857bf63cfc7a500cfa1f476e05399a82d43a461 | /Hex/play.py | e50b5e733778ad8a59d5df88a013082728e6f692 | [] | no_license | askbk/IT3105-AI-Programming | fe862d85499be0df7a26adbddc7dc050232acc1a | b3543b21fba878f402fd932665473a7f2765cde2 | refs/heads/master | 2023-04-04T19:06:00.102865 | 2021-04-19T08:32:20 | 2021-04-19T08:32:20 | 328,206,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import json
from Hex.Game import Board
from Hex.Player import Player
if __name__ == "__main__":
with open("./config.json", mode="r") as f:
config = json.loads(f.read())
play_config = config.get("simple_playthrough")
Player.from_config(
config, game=Board(size=play_config.get("board_size"))
... | [
"askbk@protonmail.com"
] | askbk@protonmail.com |
2b880886119cd49ba10dd9ed027ea26772f13106 | b1fe732c6abb51d44bd965cbbf259bb2d93e4514 | /Day3/problemSet.py | 14560c6d9c0b5f77cfebb8b4be2faea25056a2f5 | [] | no_license | RahulSinghDhek/GettingStartedWithPython | 04c85c2c370e7ea93b16dade44e5eea633ec284c | c655e3376707b8e4e14ed352a8bc07b010c31e12 | refs/heads/master | 2020-05-07T17:15:38.120491 | 2019-04-11T05:39:12 | 2019-04-11T05:39:12 | 180,721,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | __author__ = 'rdhek'
a=[1,3,5,7]
b=[1,2,3,4,5]
x= set(a)
y= set(b)
print list(x.intersection(y))
print x.union(y)
print x-y | [
"rdhek@qti.qualcomm.com"
] | rdhek@qti.qualcomm.com |
cd04b6a0b795d69ec92e5523eb52cd2095f05e08 | 06c9fa55c525a89c48991f699b3b14099fcefd84 | /parallax/parallax/examples/nmt/inference_test.py | 7c342f9f976885e9c242f7cec36a709a949d8aea | [
"Apache-2.0"
] | permissive | snuspl/parallax | ec21997f17b74ed16484d8fe854001c3c0540f51 | 351a913877df3ae03f1b1b52320ee4536b17a667 | refs/heads/master | 2022-03-13T20:40:08.823881 | 2022-02-21T08:12:43 | 2022-02-21T08:12:43 | 142,282,082 | 133 | 33 | Apache-2.0 | 2019-07-09T03:46:02 | 2018-07-25T10:01:57 | Python | UTF-8 | Python | false | false | 8,018 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"pigbug419@gmail.com"
] | pigbug419@gmail.com |
4325da0054b8ecb4e522b27b733ba8e35f54ecc8 | 0cb76eb5d69972c6da2b7fe6011d6bd5e694eee4 | /setup.py | 8cc5d30ce029ce325d8ec2e7730928559d145ac3 | [] | no_license | xfenix/django-xflatpages | 990d58e9bd3b536c6f65240ce9c4c6e7344a6ddf | 763f8898100081a9798d6b25324150a5c08f3737 | refs/heads/master | 2020-05-18T00:50:33.529864 | 2014-12-16T23:56:20 | 2014-12-16T23:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from xflatpages import __version__
# readme
descr = 'Simple flatpages app'
setup(
name='django-xflatpages',
version=__version__,
description=descr,
long_description=descr,
author='Xfenix',
author_email='ad@xfenix.ru... | [
"ad@xfenix.ru"
] | ad@xfenix.ru |
bae0c8adce6d3a4872acaeed60d8daa4b5c24172 | 3357d08b91a61bbfb653f5506e63aa77caf60868 | /message.py | 9cf75cf1ba3b0fd0cc47c238619a77bfbaa7290e | [] | no_license | saivishwakgangam/error-detection_crc | 2f121553c6381ff790ed2f410e4f95c38d377c52 | 143b50864a741ae6b6a8e47226d632d14c841e48 | refs/heads/main | 2023-03-24T23:06:06.626384 | 2021-03-22T19:00:30 | 2021-03-22T19:00:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | class Message:
def __init__(self,send_matrix,crc_code):
self.send_matrix=send_matrix
self.crc_code=crc_code
def empty(self):
self.send_matrix=[]
self.crc_code=b'' | [
"noreply@github.com"
] | saivishwakgangam.noreply@github.com |
57b977f2ae53db87282b285aa878effd453face0 | 2a46ad4e83dcd903451fb5fba8d04da266dbd49e | /Algorithm/Leetcode/Codes/ConstructBinaryTreeFromInorderAndPostorderTraversal.py | 769cc7114912f93e7e81cf26965025c23ac1cdbd | [] | no_license | chloeeekim/TIL | e248801508340cb2eb9f3cfddc486b7dd7250386 | c5a94e81aa2f2dfcc626820205ca9feaad069fad | refs/heads/master | 2022-03-02T04:05:24.439271 | 2022-02-22T01:25:14 | 2022-02-22T01:25:14 | 190,150,063 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | """
106. Construct Binary Tree from Inorder and Postorder Traversal : https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
어떤 트리의 inorder, postorder traversal 결과가 리스트로 주어졌을 때, 트리를 복원하는 문제
- 트리 내에 중복된 값은 없다고 가정한다
Example:
- Input : inorder = [9,3,15,20,7], postorder = [9,15,7,20,3... | [
"hiyaku0317@gmail.com"
] | hiyaku0317@gmail.com |
7379c533b289f68343bc5cd1947b5877f809fbb7 | 044bb022c77c34a92492b800fc380bdead99be52 | /Python-Codes/Test Codes/test.py | 1c94df5885c60c7434578cc3e599d8a737f2b6c3 | [] | no_license | sswisty/ROV-SIREN | 4c7190d2f45685d87ef3b601b286a647055b9c7b | 5f949d6c139eb44b636e34ba1373c397472b23d0 | refs/heads/master | 2020-04-06T07:04:16.101218 | 2016-10-05T20:44:43 | 2016-10-05T20:44:43 | 51,488,996 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | # Adding this file to create a new folder
x = 5
print x+3
| [
"sswisty7@gmail.com"
] | sswisty7@gmail.com |
31137672e5dfb8c23d9a8d755c634681497e7e42 | 609bf65158e80d7f11dce7406b1075be83688949 | /trials.py | c9084b4ff11931e66a38e94033f658cded27492e | [] | no_license | jacquetta/js-trials1 | ac4f674b6f650514da5f3d752f13aa5cfede9af7 | 137555766561327fc3aa51e2bd9dc6a719902315 | refs/heads/main | 2023-08-19T06:17:31.200662 | 2021-10-18T21:27:27 | 2021-10-18T21:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | """Python functions for JavaScript Trials 1."""
group = ['item1', 'item2', 'item3']
nums_all = [1, 2, 4, 5, 7, 8,]
def output_all_items(items):
pass
for item in items:
# print(item)
return items
output_all_items(group)
def get_all_evens(nums):
pass
even_nums = []
for num in nu... | [
"jacquettavb@hotmail.com"
] | jacquettavb@hotmail.com |
4eb2b48de24e83967dcf33b509a946a81d00451d | d03ef3eac49ccae08fe33a1ecf874d11fa86e635 | /dozo/commands/extend.py | a19374c1461cdc71c2d61c29a28cf1088143d55f | [] | no_license | johnmontero/dozo | 5ddd2801f8fc919443faffde68fad5ff3f0be8aa | abc3377e3ee32ac21735bd22a7fd41b7d9c881d3 | refs/heads/master | 2021-01-10T21:08:56.890991 | 2012-05-15T06:47:15 | 2012-05-15T06:47:15 | 2,735,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,931 | py | from os import path
from os import mkdir
import pystache
import envoy
from tambo import Transport
from dozo.config import db
from dozo.config import get_config_value
from dozo.commands import CommandError
TEMPLATE_OPTION_COMMAND = '''# -*- coding: utf-8-*-
from tambo import Transport
from dozo.config impo... | [
"jmonteroc@gmail.com"
] | jmonteroc@gmail.com |
796dd3e7354d66e1ca0d2af453460dcea123a126 | 7f5980bcd5bd0d9e049295e7cbf1c38df04fb36d | /deprecated/Automations.py | 406838933ffbcf450754338c42de2199d32c73f7 | [] | no_license | menahishayan/Automated-Oven | 0d91f0e2b47b3656ec2822fe522ebdfcbeaa09e5 | 51470c6fceff57903f232422c342409b72d01c49 | refs/heads/main | 2023-05-31T12:17:58.785205 | 2021-07-04T13:31:36 | 2021-07-04T13:31:36 | 361,813,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import json
class Automations:
def __init__(self, dbPath='./db/AutomationsDB.json'):
self.path = dbPath
| [
"shayan1232001@yahoo.co.in"
] | shayan1232001@yahoo.co.in |
fdba2e38a7275b27bf739668f77984e9aad554b6 | d5fd936e7346844a1b7c5ea81dfa9adf5bb647d0 | /datasets/load_data.py | c547ebd91f699327cac78ca35d0dbe0f0094489e | [] | no_license | isaachenrion/graphs | 098e7098a894a3d1d9d18cf0ce1054e5910afa15 | 2ba6d50a7f61233fa8cc92ba03256691abb889de | refs/heads/master | 2021-01-02T09:10:49.686240 | 2017-09-11T19:52:48 | 2017-09-11T19:52:48 | 99,154,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | import os
import pickle
from .datasets import BatchedFixedOrderGraphDataset, FixedOrderGraphDataset, GraphDataset, BatchedGraphDataset
from .add_virtual_node import add_virtual_node, add_target_nodes
from .path import DATA_DIR
def load_from_path(data_path, args):
with open(data_path, 'rb') as f:
dataset =... | [
"isaachenrion@gmail.com"
] | isaachenrion@gmail.com |
02af9acedfd8eb63a76f63c93c109e539acb1fa4 | 0f9f8e8478017da7c8d408058f78853d69ac0171 | /python2/l0064_minimum_path_sum.py | e5eed8adafa9b21abd66ed0af9541fba57e42edd | [] | no_license | sprax/1337 | dc38f1776959ec7965c33f060f4d43d939f19302 | 33b6b68a8136109d2aaa26bb8bf9e873f995d5ab | refs/heads/master | 2022-09-06T18:43:54.850467 | 2020-06-04T17:19:51 | 2020-06-04T17:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | class Solution(object):
def minPathSum(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
if not grid:
return 0
m = len(grid)
n = len(grid[0])
dp = [[0 for _ in range(n)] for _ in range(m)]
# Initiali... | [
"zhoulu312@gmail.com"
] | zhoulu312@gmail.com |
165146e30d5f3fdf5a47e708760346f1f979c67f | 1c0d4b9c57e3eb987cba4ba082e855b4444797a2 | /fresh_launch.py | 8ccf5cb88927ed18aed2cb80a0df5d7664992c7d | [
"MIT"
] | permissive | prasad223/CSE586 | 4b70e5aefc2254d89c343f1d0217210cbbf65ed1 | dfd3bbaa8e1732cb1ae6909cc7e75cc84a912b01 | refs/heads/master | 2021-01-21T03:21:04.699400 | 2016-05-05T12:57:19 | 2016-05-05T12:57:19 | 54,043,773 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/env python
import os
from environment import *
apk_path = os.path.join(WORKSPACE, PROJECT_NAME, 'app', 'build', 'outputs', 'apk', 'app-debug.apk')
app_package = PREFIX + '.' + PROJECT_EXT
for i in 5554, 5556, 5558, 5560, 5562:
print "Fresh launch on emulator", i
emu = "emulator-" + str(i)
cmd = 'adb -s... | [
"prasadsjcecs@gmail.com"
] | prasadsjcecs@gmail.com |
ed777a2b20b0c94e0469882347bedeaacedfd55e | 876a1b7b7c898c826b94ff34f3d9a1d22ee5459b | /QUANTAXIS/QAUtil/QAWebutil.py | 8a2a75459233fd85e3744b092b8ba3babacb56ca | [
"MIT"
] | permissive | pm58/QUANTAXIS | 6db63c461d18f13f7340f7d46e42cde3bc3f40cb | 03c526f640f48f4a153e9c4e0e27f74ccd18a345 | refs/heads/master | 2020-04-27T08:17:42.227150 | 2019-03-09T05:56:05 | 2019-03-09T05:56:05 | 174,165,118 | 5 | 0 | MIT | 2019-03-09T05:56:06 | 2019-03-06T14:55:39 | Python | UTF-8 | Python | false | false | 1,967 | py | # coding:utf-8
#
# The MIT License (MIT)
#
# Copyright (c) 2016-2018 yutiansut/QUANTAXIS
#
# 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 th... | [
"yutiansut@qq.com"
] | yutiansut@qq.com |
7abdb85b4f5ecf93d8696b1a86d6ce317207a57e | f71415d51b9257e4cf6562a6b3c5e7596ff76daf | /mysite/settings.py | 4b6dea8414c93ebdf4cd133733447271f0478692 | [] | no_license | myromeu/fantastic-fiesta | effabb2df4dc8db7c674142038ef6ddb6bc82270 | 46ca55d3ff03563f2786ac5b913e2f25b13cdb68 | refs/heads/master | 2021-01-10T06:56:33.130626 | 2016-01-26T20:52:46 | 2016-01-26T20:52:46 | 49,889,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,706 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"myromeu@ya.ru"
] | myromeu@ya.ru |
a41ee74e0d74a2f619205675cb265d0c888b3d01 | 9645bdfbb15742e0d94e3327f94471663f32061a | /Python/235 - Lowest Common Ancestor of a Binary Search Tree/235_lowest-common-ancestor-of-a-binary-search-tree.py | 863b29d2d3d70572b919bc045ab5e6b412efb394 | [] | no_license | aptend/leetcode-rua | f81c080b2260adb2da677612e5c437eda256781d | 80e44f4e9d3a5b592fdebe0bf16d1df54e99991e | refs/heads/master | 2023-06-22T00:40:05.533424 | 2021-03-17T13:51:28 | 2021-03-17T13:51:28 | 186,434,133 | 2 | 0 | null | 2023-06-21T22:12:51 | 2019-05-13T14:17:27 | HTML | UTF-8 | Python | false | false | 1,554 | py | from leezy import Solution, solution
from leezy.assists import TreeContext
class Q235(Solution):
@solution
def lowestCommonAncestor(self, root, p, q):
# 68ms
if p < root.val > q:
return self.lowestCommonAncestor(root.left, p, q)
if p > root.val < q:
return self.... | [
"crescentwhale@hotmail.com"
] | crescentwhale@hotmail.com |
8e990b308f624c1525603f9ab92945fda7fb8ce2 | 5167f77d96d1dc5412a8a0a91c95e3086acd05dc | /test/functional/wallet_implicitsegwit.py | 553ce7367502b4851bea035523dbb7026ed2072f | [
"MIT"
] | permissive | ocvcoin/ocvcoin | 04fb0cea7c11bf52e07ea06ddf9df89631eced5f | 79c3803e330f32ed50c02ae657ff9aded6297b9d | refs/heads/master | 2023-04-30T10:42:05.457630 | 2023-04-15T11:49:40 | 2023-04-15T11:49:40 | 406,011,904 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Ocvcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the wallet implicit segwit feature."""
import test_framework.address as address
from test_framework.te... | [
"contact@ocvcoin.com"
] | contact@ocvcoin.com |
9816169c3cf62624bac7d4238f5e8c78629beb72 | 2816fe989f78240e950554b4b1fe680ec62b306a | /crawl/guba/multi.py | c333873535ef956172a687984e6e7b72f7986e17 | [] | no_license | stop1992/python-security | fb4219e4769459e07e51227ba3d47d0c9a88ee98 | b022e73f1f105179136360601c4f5122e9bc4875 | refs/heads/master | 2021-01-20T05:59:47.264360 | 2016-08-02T13:59:46 | 2016-08-02T13:59:46 | 65,118,931 | 4 | 2 | null | 2016-08-07T06:18:41 | 2016-08-07T06:18:41 | null | UTF-8 | Python | false | false | 4,298 | py | #!/usr/bin/env python
# encoding: utf-8
import multiprocessing
import os
from pymongo import MongoClient
from redis import Redis
import re
import time
from clear import drop_mongo
# process_nums = multiprocessing.cpu_count()
MONGO_SERVER = '192.168.1.108'
MONGO_PORT = 27017
MONGO_DB_IN = 'guba_data'... | [
"daitaomail@gmail.com"
] | daitaomail@gmail.com |
7365f9c8cd8272ff89d5a4395be8d501ab43d64b | 514f11a1e5643459594a90485c93332a3a53a338 | /barf/barf/analysis/basicblock/basicblock.py | a2460e0ef5f0d7dfa4ff9d3839b0abfb3a3e113a | [
"BSD-2-Clause"
] | permissive | ksmaheshkumar/barf-project | b17cdfb3bd9f7eaeabba69ddd1f048d90d3d43ef | f5a4e081b458987676e1abf1f5f54f0ff49133b1 | refs/heads/master | 2021-01-17T21:55:27.477007 | 2015-01-16T14:34:56 | 2015-01-16T14:34:56 | 31,496,855 | 1 | 0 | null | 2015-03-01T13:10:51 | 2015-03-01T13:10:50 | Python | UTF-8 | Python | false | false | 18,362 | py | import bisect
import itertools
import networkx
from Queue import Queue
from pydot import Dot
from pydot import Edge
from pydot import Node
from barf.core.reil import DualInstruction
from barf.core.reil import ReilMnemonic
from barf.core.reil import ReilImmediateOperand
# CFG recovery mode
BARF_DISASM_LINEAR = 0 ... | [
"cnheitman@fundacionsadosky.org.ar"
] | cnheitman@fundacionsadosky.org.ar |
87da898bd08cdfef60ac23b93bfa4e87e4b7567d | 4587c4b6e381f0ac97a15fbf8f163d1bd9dbca8d | /codes/utils.py | 4c404d23805fd827f4b8294d3c1f5afe3e51ce5d | [] | no_license | shoukreytom/live-share-code | b514d2aadaa6716d5cbd7c6811823635102dc2f8 | 19f1b1cd1e93414a08bc47c5c141cbf34e65f8be | refs/heads/main | 2023-07-29T00:03:49.026302 | 2021-09-28T20:59:55 | 2021-09-28T20:59:55 | 368,343,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from random import randint
def generate_share_key():
code_list = [str(randint(0, 9)) for _ in range(6)]
return "".join(code_list)
| [
"shoukreytom01@gmail.com"
] | shoukreytom01@gmail.com |
bbc89e8e7645a694b405dccb4acd25b4f0cc9544 | 84cfe9b0ca7209487231e0725f7ad0d233f09544 | /smv/views.py | e0abea56ca1a13c1798a6cffabfed45f0991342d | [] | no_license | archit-dwevedi/M4Plan | 3eefc12ea447d624bae6f758c3648d7caf825c1a | d162592748ea37bc070b6217365e8601a6ccdd9a | refs/heads/master | 2021-10-26T23:22:04.456014 | 2019-04-14T20:02:17 | 2019-04-14T20:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,397 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.contrib import messages
from absenteeism.models import *
from skill_matrix.models import *
from leave_calendar.models import *
from .forms import *
from .models import *
import datetime
def smv(request):
if(req... | [
"dwevediar@gmail.com"
] | dwevediar@gmail.com |
14bff795b6ed2d74c4775d4f3bc0e738dffaa06b | 97eb29b4fbb55ca3c4b3f4ce6b5b9432eb73efdd | /DjangoEnv/bin/django-admin | 6a8820ebbc2b8895471291d8eddffd3f81122a90 | [] | no_license | Gephi-2017/ProjectDjango | ced8a5c8547b0366319b756def3ff7baa3c14226 | 33969fddf4abe2a19629ce1657d04e6cbdd82d74 | refs/heads/master | 2020-03-17T00:50:11.012635 | 2018-05-12T09:12:28 | 2018-05-12T09:12:28 | 133,131,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | #!/home/shree/ProjectDjango/DjangoEnv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"slshruthi17@gmail.com"
] | slshruthi17@gmail.com | |
e0eb2aa256dc0a8e392bfc9cb168920d0555df1b | 5f04fccd92eb698fa76ab972c01188d699125a50 | /ourdesign/wsgi.py | 3b753904a90607efbaaae48b7d70cb0ba37388e5 | [] | no_license | ourdesignspvt/ourdesign | 9dbc8b2b7e2dd7b3019b699a19cb6aa80c3a65a7 | cf9d8a3115d024c251d91b421510e1c4b8682c8a | refs/heads/master | 2020-04-05T17:16:37.610982 | 2018-11-11T06:20:49 | 2018-11-11T06:20:49 | 157,052,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for ourdesign 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_SE... | [
"ourdesignspvt@gmail.com"
] | ourdesignspvt@gmail.com |
3064cd6f1c55c75609f9e92b45a1a1caa35e25ed | 4e3c8b2cd89828e5f8d902d9d731e81c6dd33d55 | /2015-16/Meeting_1/Minecraft-master/pyglet/gl/cocoa.py | 0e6ce34ee5ff2ff4e4b66fc6a25ca5c7a73492ca | [
"MIT"
] | permissive | momja/Code-Club | c2a2c670545a8a77913b0a15078848e3f520bfe1 | 410c5ffbdae48aa69a170e80642405928e9cb6d5 | refs/heads/master | 2020-09-25T23:45:16.805921 | 2017-10-03T22:05:13 | 2017-10-03T22:05:13 | 66,742,298 | 64 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,931 | py | #!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
from pyglet.gl.base import Config, CanvasConfig, Context
from pyglet.gl import ContextException
from pyglet.gl import gl
from pyglet.gl import agl
from pyglet.canvas.cocoa import CocoaCanvas
from pyglet.libs.darwin.cocoapy imp... | [
"mjomdal@gmail.com"
] | mjomdal@gmail.com |
45b49213838540d4cfa9b40c36aa8caf8d58558d | 38445323b49947266d72645ec973b02e96879eed | /harshad number.py | 8a99c9850563a0ad3ee51f2ed7074159f804f964 | [] | no_license | pooja-pichad/loop | 2d9989b472a2fbacf0a85da06d869016b2d74083 | 47dafba1253da98f98c8fa389e13283ce1e14dee | refs/heads/main | 2023-04-22T02:58:49.274211 | 2021-05-22T07:13:39 | 2021-05-22T07:13:39 | 369,741,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # harshad number :
# it is take any number and add this two digit number and check the
# addition value is divisible bye this two digit number then it is divisible then its harshad
# number then it not divisiblr then it not harshad number
# forEx; 43
# 4+3=7
# 7/43
# num=int(input("enter a num... | [
"noreply@github.com"
] | pooja-pichad.noreply@github.com |
06229e6afb5087b342f48ced5e2d41a803b865c3 | 30b084acbe36d02e85d756e4580f0e845dab65c9 | /setup.py | 4f793631bb4105c6c26c9395bfc1f42ed30854ef | [] | no_license | JavanTang/py2aliyungdb | 47757ae9aacd4496a4fd4dda2733fc11c0ac5548 | c62b985d04e1cb00c8f63f881a4ade1d2ed0eaa6 | refs/heads/master | 2022-12-03T01:48:53.163098 | 2020-08-17T05:40:46 | 2020-08-17T05:40:46 | 288,082,092 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | '''
Author: JavanTang
Data: Do not edit
LastEditors: JavanTang
LastEditTime: 2020-08-17 11:04:35
Description:
'''
from setuptools import setup
setup(
name='py2aliyungdb', # 应用名
version='0.0.1', # 版本号
packages=['py2aliyungdb'], # 包括在安装包内的 Python 包
author='JavanTang',
author_email='tzfjobmail@gmail.... | [
"tzfjobmail@gmail.com"
] | tzfjobmail@gmail.com |
955b93a0198bf45f36553fa170bdc6effb0bec4b | 765b558714acf20438ff717e57beadd9890fe1be | /galcon/galcon/migrations/0012_auto__del_group.py | deba6a67510de5e53a6da62f87851a001cc0d21d | [] | no_license | marky1991/galcon_clone | 279cf4ec6adb266f5afabc0a0a61435a52a60119 | 12923b001d593c75934e99ed201627d8767462c2 | refs/heads/master | 2020-06-06T20:24:03.684856 | 2013-09-06T15:52:45 | 2013-09-06T15:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,810 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Group'
db.delete_table('galcon_group')
# Removing M2M table for field admins on '... | [
"marky1991@gmail.com"
] | marky1991@gmail.com |
fed90f6926dd100b6713610ba1b01e6bcdb8133f | c4caffea3c284a2d9454f373dc7c66903c431e42 | /test/functional/test_framework/test_framework.py | 319fd494a6dfefc8b9c9141b0329c53f64bdea0b | [
"MIT"
] | permissive | heliumchain/squorum | 2c36fc2b5149b61054f9aa5c234588f01a3a5d29 | 2e57ca8e774ab4d75999636abfa870fb8000477d | refs/heads/master | 2022-12-02T05:52:59.747926 | 2020-08-23T16:55:03 | 2020-08-23T16:55:03 | 138,344,695 | 4 | 2 | NOASSERTION | 2020-08-23T16:55:04 | 2018-06-22T20:18:03 | C++ | UTF-8 | Python | false | false | 20,380 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Base class for RPC testing."""
from enum import Enum
import logging
import optparse
import os
import p... | [
"tischenko_2006@ukr.net"
] | tischenko_2006@ukr.net |
0d3b899d072571d9b6f47263ee86838fd0b208a6 | 6ecc1d05bbd9ca2c1d21322faef076c1f28454db | /chrome/browser/ui/webui/chromeos/login/DEPS | 52acfb6a38a1c062632e3dbccf09ecbcc162ff4b | [
"BSD-3-Clause"
] | permissive | pandareen/chromium | 0e3a9fb92bb9ad027d5b3482a6b03d0bb51c16a1 | 3ea799335afb5178c519f9e12db8b31390375736 | refs/heads/master | 2023-03-14T05:47:29.433132 | 2018-06-27T07:21:08 | 2018-06-27T07:21:08 | 138,843,522 | 0 | 0 | null | 2018-06-27T07:09:52 | 2018-06-27T07:09:52 | null | UTF-8 | Python | false | false | 863 | specific_include_rules = {
# TODO(mash): Fix. https://crbug.com/770866
"core_oobe_handler\.cc": [
"+ash/shell.h",
],
"oobe_display_chooser\.cc": [
"+ash/display/window_tree_host_manager.h",
"+ash/shell.h",
],
# TODO(mash): Fix. https://crbug.com/678990
"signin_screen_handler\.cc": [
"+ash/... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
42cc2d6e0d7d6b565e6ce9d80f133c7f719e9115 | b05cbedbcda2efd5e3722a52f309e7987b618de0 | /Logging.py | 23054220361b751acad1e9d24757b7a8507dd4df | [
"MIT"
] | permissive | bwhetherington/Gompei-Bot | ef32100a690e1af9be94511b33373e56cf186f72 | a6c03c7a5a190fc63a96d0e4ab2529c3ba484dcb | refs/heads/master | 2023-06-30T03:11:23.221088 | 2020-07-29T05:33:08 | 2020-07-29T05:33:08 | 286,293,970 | 0 | 0 | null | 2020-08-09T18:26:09 | 2020-08-09T18:26:09 | null | UTF-8 | Python | false | false | 15,221 | py | # TODO: Implementation
# IDEA: Track which invite a user joined off of
import discord
import json
import os
from datetime import datetime
from discord.ext import commands
def module_perms(ctx):
return ctx.message.author.guild_permissions.administrator
def parse_id(arg):
"""
Parses an ID from a discord mention
... | [
"samuelcurrid@gmail.com"
] | samuelcurrid@gmail.com |
b20b0b8aafd7085cbf29263b494a5e85bcf65b65 | 41d3442bed584a40dbff035ee808c844b0b47f3e | /scoring/evaluator_vocabulary.py | 71429f34645ac0710eafa9fe5d7ea689451b19e4 | [] | no_license | konstantinschulz/alpaca | 8e55b9b24a4c7c5db9ecfb041488ee34c9a43bb8 | baa500ebb1e7ce92fe34a7c0b7ea65479a510567 | refs/heads/main | 2023-08-25T05:26:09.271704 | 2021-10-27T13:57:39 | 2021-10-27T13:57:39 | 375,756,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | import logging
import re
from collections import defaultdict
from pathlib import Path
import pandas as pd
from testing import test
from parsing.webpage_data import WebpageData
# modify profanity score gradient given this upper limit
MAX_PROFANITY = 3
# multiplier for emotion intensity per words ratio to ... | [
"Konstantin.Schulz@dfki.de"
] | Konstantin.Schulz@dfki.de |
1922476617a16ac1492b7ae020e4478f854a244c | 97db962c17f91f6ca5da71a5a301094277d26a8e | /setup.py | ddd05323c9f71b1b4c9a1e80868e6267655cee53 | [] | no_license | citrix-openstack/osnotify | 0a510457e3663092a6a6d8e575019a5052c896e5 | 2feca02a843fed93a9d36254d7e896ba95107a9c | refs/heads/master | 2020-05-17T01:04:23.088988 | 2013-03-01T17:34:37 | 2013-03-01T17:34:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from setuptools import setup
setup(
name="osnotify",
version="0.0",
packages=["osnotify"],
entry_points={
'console_scripts': [
'osnotify-proxy = osnotify.scripts:proxy',
'osnotify-subscribe = osnotify.scripts:subscribe',
'osnotify-publish = osnotify.scripts:... | [
"mate.lakat@citrix.com"
] | mate.lakat@citrix.com |
1984950eeeabd376b7d534bbc788f09949c9ea71 | f3416956f9bfc7af870867e2fe8644f08d513b23 | /combine/contest_20150310a/data_prep/prepare_pgmodel.py | 18a14ff2cbcfdb41cfe5e56133323bb4b304d6ed | [] | no_license | dsjoerg/blundercheck | a71012c0d3ded929599d191d4f73dcb14f94030a | 04fb39ba0dd1591b387f573f767973518b688822 | refs/heads/master | 2021-01-18T18:35:21.992359 | 2015-03-24T18:11:11 | 2015-03-24T18:11:11 | 27,928,453 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,108 | py | #!/usr/bin/env python
from pandas import *
from numpy import *
from djeval import *
import csv, code
import cPickle as pickle
from sklearn.externals import joblib
GAMELIMIT=60000
NUM_GAMES=100000
def shell():
vars = globals()
vars.update(locals())
shell = code.InteractiveConsole(vars)
shell.intera... | [
"dsjoerg@gmail.com"
] | dsjoerg@gmail.com |
dcbc15d24ae14bff864146e04855549fd69c3bd4 | 029529c28784dc73362dfb38d29d16cbbba3ac98 | /odx_crm_lead/models/insurance_premium.py | 8d33f341e78187ce5b465199992165476b8c3d84 | [] | no_license | linux8a/odoo_13 | 4a99e3ccaf7956c33501e7c1be79e84f6d763f95 | 19bbcecee21bbd8b4298df899dc4f3f47dff63ea | refs/heads/master | 2022-12-21T07:48:09.968327 | 2020-10-04T06:12:54 | 2020-10-04T06:12:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,007 | py | # -*- coding: utf-8 -*-
from odoo import fields, models, api
class InsurancePremium(models.Model):
_name = 'insurance.premium'
name = fields.Char('Name')
insurance_company_id = fields.Many2one('res.partner', 'Insurance Company',
domain=[('is_insurance_comapny',... | [
"ashifpk1@gmail.com"
] | ashifpk1@gmail.com |
ed3a646a75a5bb898ae2f02208dd96258d05759e | da63ecb7ba6afc40731b3b4268f21ed03c882b1b | /src/main/java/jython/toolbar.py | 6c8644b14d882416e83a6e22550ee55dfc5a6d9e | [] | no_license | neopsis/jython-interpreter | 5622dfe58769a3abac6c87119e4f4b581701a03b | 85e6e448acee46dc24deb775f232f8a5d30071a5 | refs/heads/master | 2021-01-09T19:03:00.943500 | 2020-02-22T23:04:38 | 2020-02-22T23:04:38 | 242,421,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | """
toolbar.py Contains utility classes for toolbar construction
author: Carlos Quiroz
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or any later version.
T... | [
"robert@neopsis.com"
] | robert@neopsis.com |
91b9e1b36fadf5d38e7788326e49195823ae4444 | 957563c6d08819967813063a193619b7df7f0050 | /mbof/migrations/0010_auto_20160303_1142.py | 5840ed33e44677751ee650c027ae7832c5cc6e5b | [] | no_license | jlost/hacks_mbof | 0c44657448c58c35b2443f285e2e0aa107980431 | 9bfe464e2842a09d2974103b5e8b5be15bd5d1cc | refs/heads/master | 2021-01-21T07:45:59.878779 | 2016-03-04T16:13:27 | 2016-03-04T16:13:27 | 53,062,453 | 0 | 0 | null | 2016-03-03T15:43:03 | 2016-03-03T15:43:03 | null | UTF-8 | Python | false | false | 535 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-03-03 16:42
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mbof', '0009_auto_20160303_1131'),
]
operations = [... | [
"its-jlost@adsroot.itcs.umich.edu"
] | its-jlost@adsroot.itcs.umich.edu |
b18dd172330c48b377b607fcc29c58bb6995b0b6 | 5334a6e60851087f4eafc1eaf6c2f06c1ac91c7f | /6th_tests/code.py | 5402a3cd76704b72e8520b4951cd453b1b52ee18 | [
"MIT"
] | permissive | zkhodzhaev/fiz_analysis_fitting | fa591f1db02757a09f3ec652a262c499d98386d6 | 1f02d825485e41c7571e62c84719bcd60b711848 | refs/heads/master | 2021-10-26T04:53:26.833652 | 2019-04-10T17:50:04 | 2019-04-10T17:50:04 | 180,633,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | #!/usr/bin/env python
# coding: utf-8
#Zulfidin Khodzhaev/ zulfidin@inbox.ru
"""For this to work, first 2 lines are deleted,
because the number of column is less than number columns
Example:
Reading Grams weight
2019:4:3
"""
import pandas as pd
import numpy as np
import datetime
import matplotli... | [
"noreply@github.com"
] | zkhodzhaev.noreply@github.com |
c76e7b57a50d1595e23179c5dde7838452d683e2 | 95789a6503101b98548570f48e80ae12b964fff1 | /rango/views.py | 5fb1ab348828e249de3637bdc7da82f5648f0859 | [] | no_license | NikolayBorovenskiy/How-to-Tango-with-Django | be7a2d0b8354f17e1ec98a7bc5714ea00b386f7a | f04c9e534c84de2b8885dbaaa5144f4d748c33a0 | refs/heads/master | 2020-05-14T15:49:32.317274 | 2015-08-09T06:46:07 | 2015-08-09T06:46:07 | 39,078,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,340 | py | from django.template import RequestContext
from django.shortcuts import render_to_response, render, redirect
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from rango.models import Category,... | [
"nikolay.borovenskiy@gmail.com"
] | nikolay.borovenskiy@gmail.com |
9905b137698c4c8f41b452623054c57528b70709 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-ddoscoo/aliyunsdkddoscoo/request/v20200101/DeleteAsyncTaskRequest.py | 55e30bb35da17abec88db8989a885f42142441d6 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,620 | 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 |
25c53610cddc7f13a5edb9ef2f6bd7a082359139 | 25b96157297c6ee9d1a7faf4b0e85051aaf11591 | /preprocess/features/Interval.py | 0c27eb3b7f36d772c935063ab3fe285700051d3c | [] | no_license | notem/reWeFDE | 07ae4088d8d60bbd4a5fdde334cec9e0a4b7f0b0 | 6fe576db1c470f33ffd158c52cf1130c96351f8e | refs/heads/master | 2023-01-02T18:05:06.907759 | 2020-10-30T15:31:32 | 2020-10-30T15:31:32 | 179,397,367 | 18 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | # inflow interval (icics, knn)
from features.common import X
def IntervalFeature(times, sizes, features, Category):
if Category == 'KNN':
# a list of first 300 intervals (KNN)
# incoming interval
count = 0
prevloc = 0
for i in range(0, len(sizes)):
if sizes[i] >... | [
"njm3308@rit.edu"
] | njm3308@rit.edu |
7979017666ab0ad68c04d752577df8dbe5fcfd11 | 8f273f7499eaf8ad432928714d51cf88a76b0323 | /pa/img.py | f797e9e8412bd1fb6c7feac69156e84f93e71bd4 | [] | no_license | FanNotFan/Python_momgodb | 4abce4a60da36d582947620d604c9cb463722aa5 | 20dc48e38db546b09950af6a2a1bf79578d8a44a | refs/heads/master | 2020-04-28T14:21:16.113631 | 2018-07-13T09:12:39 | 2018-07-13T09:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # -*- coding: UTF-8 -*-
# python读取网页的库
import urllib.request
# 正则表达式有关模块
from bs4 import BeautifulSoup
import re
import os
def getHTML(url):
page = urllib.request.urlopen(url)
html = page.read()
return html
def getImag(html):
reg = '<img class="BDE_Image".*?"(.*?)"'
pattern = re.compile(reg)
... | [
"y1wanghui@163.com"
] | y1wanghui@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.