blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2dded48a1d604bda8edaeb28fbb63865106133a | e406487b60cf9a220c4164a2e6f6e612ec98843f | /mall/apps/goods/migrations/0002_auto_20190117_1555.py | 7fdd947712c4473763b67eca18cb03688ec0a703 | [] | no_license | L-huihui/duoduo | 3d7caad17664b045882043afacb3dcbc13008fb2 | 16bb64e1216a82a35867516e4351dffe68247415 | refs/heads/master | 2020-04-18T05:49:21.281388 | 2019-01-25T01:44:29 | 2019-01-25T01:44:29 | 167,293,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-01-17 07:55
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goods', '0001_initial'),
]
operations = [
migrations.RenameField(
mode... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
0ba8e6cf08ec403a39f4114cd07dae91ac4183bf | f572e0a4b843ed3fd2cd8edec2ad3aab7a0019d3 | /ows/wms/v13/test_encoders.py | d57cc1d1d58cfd386dcf9b086e8f9df557098abf | [
"MIT"
] | permissive | EOxServer/pyows | 9039c8ed7358c98d736e2b8fd9f47be944f0b0a1 | e09310f992d6e69088940e9b5dbd7302f697344b | refs/heads/master | 2022-10-09T23:27:43.884159 | 2022-10-04T10:03:25 | 2022-10-04T10:03:25 | 218,005,699 | 1 | 1 | null | 2022-01-04T13:36:06 | 2019-10-28T09:01:51 | Python | UTF-8 | Python | false | false | 7,902 | py | # -------------------------------------------------------------------------------
#
# Project: pyows <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
# -------------------------------------------------------------------------------
# Copyright (C) 2019 EOX IT Services GmbH
#
# Permission i... | [
"fabian.schindler.strauss@gmail.com"
] | fabian.schindler.strauss@gmail.com |
b72ad75306f31160948715d6656aedb45e1792c7 | e2e993962d6e5e30905d13f0532acdac9302c84b | /HTL.tab/Test.panel/Test.pushbutton/keyman/keyman/keys/models.py | a35c8dcb63e577c0174f8f38772822ae3ef1b000 | [
"MIT"
] | permissive | htlcnn/pyrevitscripts | a1777fa0ba36003443d95e0f9fbbcadc4ffa5fe7 | b898a3a5e8d212570254772ae314f343498b1398 | refs/heads/master | 2021-01-01T20:08:31.001558 | 2018-01-11T06:44:26 | 2018-01-11T06:44:26 | 98,773,971 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.db import models
from django.core.urlresolvers import reverse
class Software(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
def get_absolute_url(self):
return reverse('software_edit', kwargs={'pk': self.pk})
| [
"hoangthanhlong@gmail.com"
] | hoangthanhlong@gmail.com |
849cad464c0731a0afd6cb94a57fdc9007ce5036 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/2122.py | c31ad8bdbc94a1aa0c0f79101990a413684bb5df | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py |
def resolve_case():
num = int(input())
num_list = list(str(num))
assend_index = 0
same=1
for assend_index in range(1, len(num_list)):
if num_list[assend_index - 1] > num_list[assend_index]:
break;
elif num_list[assend_index - 1] == num_list[assend_index]:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d03578c423b75b0a881d10b32f169ad9a5075cbb | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005394.py | e5781c7991690423aaa123393d0e5d46def81e37 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,559 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
0e7ff815cea27a8a05cb59b0e158e66ee68977ce | 1896685500833ba2e4e25400a03e10536dc57ad5 | /apimpe/wsgi.py | 7ebc7b896b1a99ceded6af9f77e7fbd203d23e58 | [] | no_license | Oswaldinho24k/MPE-API | 04e5d134199083300c2eac2b2d21e206e4306eeb | 2e1d7b282f994867c04d31b09395785d73d90b9d | refs/heads/master | 2020-06-21T14:53:18.903127 | 2016-12-02T18:57:25 | 2016-12-02T18:57:25 | 74,783,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | """
WSGI config for apimpe 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
from whitenoise.django import Django... | [
"oswalfut_96@hotmail.com"
] | oswalfut_96@hotmail.com |
2dc917a66e8ef838946a5fcb757890bce77a7963 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-kms/aliyunsdkkms/request/v20160120/GenerateDataKeyWithoutPlaintextRequest.py | 681ae27d16cff738aea6473faf406f81efbeea7d | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 2,008 | 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 |
f6f69bd11a57079c1e860e060690db08820b94e3 | 67553d46a257631810f394908013b82c337e0fbd | /goat/chapter05/5.2/globals_test.py | cc3a84eb474eb4feacb54ede07ac205a359b442a | [] | no_license | bopopescu/goat-python | 3f9d79eb1a9c2733345d699c98d82f91968ca5fa | c139488e2b5286033954df50ae1ca834144446f5 | refs/heads/master | 2022-11-21T11:25:27.921210 | 2020-03-06T01:02:57 | 2020-03-06T01:02:57 | 281,066,748 | 0 | 0 | null | 2020-07-20T09:00:08 | 2020-07-20T09:00:08 | null | UTF-8 | Python | false | false | 154 | py | # coding: utf-8
name = 'Charlie'
def test ():
# 直接访问name全局变量
print(name) # Charlie
name = '孙悟空'
test()
print(name)
| [
"34465021+jwfl724168@users.noreply.github.com"
] | 34465021+jwfl724168@users.noreply.github.com |
51719366dd3b45e9da2070caf4e1ca0906df0c1b | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2283-2409/base-trunk-2283/prototype/pyfox/setup.py | 58da3fb0318bb0b263de8f582d9d2d07804158ca | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | import os
from distutils.core import setup, Extension
Moz="/home/djm/work/firefox/mozilla"
MozDist=Moz+"/dist"
setup(name='pyfoxutil',
version='1.0',
ext_modules=[Extension('_pyfoxutil', ['pyfoxutil.cpp'],
include_dirs=[MozDist+"/include/embed_base",
... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
59cee6f8de1719cbc71645dcc02d79317246d9ea | ce083128fa87ca86c65059893aa8882d088461f5 | /python/python-salad-bdd/.venv/bin/subunit-filter | 317293fe0fb7c7007d0cf0b7e77ec7d6c6da347c | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 7,071 | #!/home/marcosptf/developer/python-bdd/.venv/bin/python2
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 200-2013 Robert Collins <robertc@robertcollins.net>
# (C) 2009 Martin Pool
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-claus... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br | |
56543401f8fff6de82cf72f6710a4d11cd322f0f | 265a07a2becd232b292872d1d7136789463874be | /lei练习/child.py | a18eb14e18c20325173e5d20365a90e17db5663c | [] | no_license | Lz0224/Python-exercise | f4918b8cd5f7911f0c35c0458c2269959937d07d | 3d09f54aebc653f4a5b36765b25c7241e3960764 | refs/heads/master | 2020-12-24T22:20:55.573019 | 2017-08-11T07:18:16 | 2017-08-11T07:18:16 | 100,005,776 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #!/usr/bin/python
#coding=utf-8
class ParentClass(object):
"""docstring for ParentClass."""
name = "老张"
# def __init__(self, arg):
# super(ParentClass, self).__init__()
# self.arg = arg
def fun(self):
print "老子有钱"
class ChildClass(ParentClass):
"""这是什么玩意。。。。"""
# def _... | [
"Lz0o_o0@outlook.com"
] | Lz0o_o0@outlook.com |
374a204faa07f80ad6187a04e03dc1f385ef9168 | 7619aed8a311e2832634379762c373886f4354fb | /trace_pox_eel_l2_multi-BinaryLeafTreeTopology1-steps200/interactive_replay_config.py | 642e4a4db5b05f5ecefc4f4ffd682ee68f5bc5b3 | [] | no_license | jmiserez/sdnracer-traces | b60f8588277c4dc2dad9fe270c05418c47d229b3 | 8991eee19103c8ebffd6ffe15d88dd8c25e1aad5 | refs/heads/master | 2021-01-21T18:21:32.040221 | 2015-12-15T14:34:46 | 2015-12-15T14:34:46 | 39,391,225 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow.interactive_replayer import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[Co... | [
"eahmed@ethz.ch"
] | eahmed@ethz.ch |
176869291f6071bba98ea44848936d7ceec24616 | 9b3abcd9c207a015ed611da2a22b48957e46c22d | /18_Django框架网站/dailyfresh/apps/user/models.py | 7d2b0e2c38e7610873de8a89d398099678359f03 | [] | no_license | it-zyk/PythonCode | 6e22aff6705d0e66df74a7c43f62f8a3a8f3f70f | 1ee51edad768ff01ba8542b1ddea05aee533524b | refs/heads/master | 2020-04-23T05:47:33.691995 | 2019-05-08T14:07:34 | 2019-05-08T14:07:34 | 170,951,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from db.base_model import BaseModel
# Create your models here.
class User(AbstractUser, BaseModel):
'''用户模型类'''
class Meta:
db_table = 'df_user'
verbose_name = '用户'
verbose_name_plural = verbose_name
cl... | [
"it-zyk@outlook.com"
] | it-zyk@outlook.com |
1d82f772f429dc0332e5f8d1b7f993895f9f527b | b2e1d96c0551b6b31ef85353f9b6e5b6354d64e8 | /datafaucet/spark/rows.py | 97e9ffa97152917b124d55ef93a80b38b4716046 | [
"MIT"
] | permissive | SylarCS/datafaucet-1 | 8bd7b96cecc5592e153b61367892e2a63a96119d | a63074ba1fb1a6d15f06e2bfff05df754aaaa452 | refs/heads/master | 2020-09-15T06:04:31.999012 | 2019-11-18T20:00:55 | 2019-11-18T20:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | import sys
from random import randint
from pyspark.sql import DataFrame
from datafaucet.spark import dataframe
INT_MAX = sys.maxsize
INT_MIN = -sys.maxsize-1
def sample(df, n=1000, *col, seed=None):
# n 0<float<=1 -> fraction of samples
# n floor(int)>1 -> number of samples
# todo:
# n dict of key, ... | [
"natalino.busa@gmail.com"
] | natalino.busa@gmail.com |
87a59bc42433821ff6c353a9e24ee2417a5de00f | a6fae33cdf3d3cb0b0d458c2825a8d8cc010cd25 | /l3/z3/.history/population_20200522014505.py | 3e8108e382a859c114f46c50cbcf52c462b42894 | [] | no_license | Qabrix/optimization_amh | 12aab7c7980b38812ec38b7e494e82452a4176b4 | 6a4f5b897a4bef25f6e2acf535ba20ace7351689 | refs/heads/main | 2022-12-28T10:57:00.064130 | 2020-10-17T22:57:27 | 2020-10-17T22:57:27 | 304,983,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | import random
import numpy as np
from utils import calculate_value, decision
class Inhabitant:
def __init__(self, gene, value=0):
self.gene = gene
self.value = 0
def __iter__(self):
for char in self.gene:
yield char
def __len__(self):
return len(self.gene)
... | [
"kubabalicki@gmail.com"
] | kubabalicki@gmail.com |
8efeda44d905898ff678ae343caf148717963d54 | 38c606ed14564591c1aa6e65c7dab255aebf76f9 | /0x11-python-network_1/5-hbtn_header.py | 2c76d103cd07681c5295f2c7dd0ea62d4798e81a | [] | no_license | camilooob/holbertonschool-higher_level_programming | d7cee708b308bed86fcc384d7451de26fa9cafaa | db9b6760e7e4998c5f00a4f2cfeb17ec14e44cab | refs/heads/master | 2020-09-29T00:19:25.736344 | 2020-05-15T01:34:32 | 2020-05-15T01:34:32 | 226,900,553 | 1 | 8 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | #!/usr/bin/python3
"""the package request"""
if __name__ == "__main__":
import requests
import sys
r = requests.get(sys.argv[1])
print(r.headers.get('X-Request-Id'))
| [
"camilobaq@hotmail.com"
] | camilobaq@hotmail.com |
0332091c980a247b508924dc4e03710be5f08839 | b0856a2d66cc4c71705b8c16c169848070294cf6 | /removeDupSortedArray.py | 3f60a7ee970822ff9418506693aa240504fabb51 | [] | no_license | jfriend08/LeetCode | 9e378ff015edc3102a4785b0832cf0eeb09f5fc2 | f76d3cf2e7fd91767f80bd60eed080a7bad06e62 | refs/heads/master | 2021-01-21T19:28:25.354537 | 2016-01-15T04:53:11 | 2016-01-15T04:53:11 | 28,518,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | '''
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array nums = [1,1,1,2,2,3],
Your function should return length = 5, with the first five elements of nums being 1, 1, 2, 2 and 3.
It doesn't matter what you leave beyond the new length.
Subscribe to see whic... | [
"ys486@cornell.edu"
] | ys486@cornell.edu |
bfe8e4bc295bbf5a06577105e22905e15b024ebe | 1aec3c93eaa1fc271ea80141a3a41a24cd60c8d9 | /mcrouter/test/test_loadbalancer_route.py | 854b6970f6db6a6b80bfcb4620c6a999a5ebd5a3 | [
"BSD-3-Clause"
] | permissive | boboozy/mcrouter | 810859b997ea2c687c67723a3ad94aa88e93b746 | d78f599bd3887a87d5785422a25e3ac07b0de169 | refs/heads/master | 2021-07-25T09:52:09.175808 | 2017-11-04T01:02:51 | 2017-11-04T01:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import a... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2c198ce9caa80d3848e36c87c340082b71dfce04 | 4d37628a27c5a50a70fa06f78be346223c37ade0 | /jobs/migrations.py | 88f61681fe41fbe0da93397de6760842a9ab4e57 | [
"MIT"
] | permissive | vinissimus/jobs | 93dbc0fd2c755b63d685165996b27a260e5e367c | 6e15749465f7da44e4dc0ad2f520ea6f7fbb67fe | refs/heads/master | 2023-01-01T01:29:50.332671 | 2020-10-23T15:27:49 | 2020-10-23T15:27:49 | 281,219,465 | 7 | 0 | MIT | 2020-10-23T15:31:47 | 2020-07-20T20:30:13 | Python | UTF-8 | Python | false | false | 1,978 | py | from .utils import setup_stdout_logging
from pathlib import Path
import asyncio
import asyncpg
import glob
import logging
import sys
import typing
logger = logging.getLogger("jobs")
current = Path(__file__)
def get_migrations_path() -> Path:
return current.parent / "sql"
def get_available():
files: typin... | [
"jordic@gmail.com"
] | jordic@gmail.com |
a98daa0410363b639ee81fc77a48ba3c678abf66 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/insights/get_guest_diagnostics_settings_association.py | 3440cdd68c76aa4250f607aaf13bbb8ba2ffb7dc | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,562 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
1fcab9c53a7ede0ecb7dfb6ee6e2ec6b84a8d078 | 0f44be0680ccbc2f8f96abfe97f5d1a094cd6e98 | /erokov.py | 494d719d07af47089ded91dc77709f24a452c75e | [] | no_license | kimihito/erokov | f75bf3199531af17a700dac854f00df19b59d3c1 | 32390edbade3d84f8be87367654ff1f6c229ca62 | refs/heads/master | 2016-09-05T23:20:41.926046 | 2012-08-27T10:33:11 | 2012-08-27T10:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | #!/usr/bin/env python
# coding: utf-8
#AVのタイトルをマルコフ連鎖で作るスクリプトを書いてます
import random
import MeCab
def wakati(text):
t = MeCab.Tagger("-Owakati")
m = t.parse(text)
result = m.split(" ")
return result
if __name__ == "__main__":
filename = "title_sort_uniq.txt"
wordlist = []
src = open(filenam... | [
"tatsurotamashiro@gmail.com"
] | tatsurotamashiro@gmail.com |
f80e0eb67f0790a4fdf274aeb6c73eb6e9eec19b | cdc996370837c00003296556afdb33e2f2fee884 | /devel_scripts/launcher.py | 5237995d7e1aaac822ae3a4d546bf7b117644b25 | [] | no_license | capitaneanu/borunte_robot | 1d4f14aadb2aa9e041ea0fdccc85d424cf155fb2 | 85e8765cbfae879f297c5254733a2dea48daeba0 | refs/heads/master | 2022-09-15T03:09:14.062484 | 2020-05-20T17:39:01 | 2020-05-20T17:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # -*- coding: utf-8 -*-
import os
import shlex
import sys
import time
TIMEOUT = 1.0
processes = [] # type: List[sh.RunningCommand]
class ProgramTerminated(Exception):
pass
def check_pid(pid):
""" Check For the existence of a unix pid. """
try:
os.kill(pid, 0)
except OSError:
retur... | [
"mail@roessler.systems"
] | mail@roessler.systems |
15c9096c932868854571f4061ed0c3a68eec026e | 6efc2eb23678741263da7ac6bd868a9f3a37d38b | /01.stock_investment/05.chart_analysis/test_boto3/test_s3_download.py | 363a8247b52c0222ee245d335c3d2c697ee9f4c1 | [] | no_license | predora005/business-research | c6272b129353a302673cf8a13c1629b5ade4a50e | 96743cc6a0b592c87e6d0f2de341fc3bbb3ef3b1 | refs/heads/main | 2023-06-18T08:08:24.537951 | 2021-07-22T04:19:09 | 2021-07-22T04:19:09 | 314,985,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # coding: utf-8
import boto3
import tempfile
##################################################
# メイン
##################################################
if __name__ == '__main__':
BUCKET_NAME = ''
OBJECT_NAME1 = 'dir1/file1.txt'
FILE_NAME1 = 'file1.txt'
OBJECT_NAME2 = 'dir1/file2.txt'
FILE_NA... | [
"46834065+predora005@users.noreply.github.com"
] | 46834065+predora005@users.noreply.github.com |
624e6493ba366cde8a495ba0effb21374417bbd1 | 4d0213e588149b9fa86fbe35faea8657052d9254 | /setup.py | 27b1a3f4ad3e7c71aeb236803df30c35aed1ff6d | [
"Apache-2.0"
] | permissive | Pyligent/gen-efficientnet-pytorch | 1e492dec87fa33458e452472c65ed0f7afd1a876 | b3bc163478737924f508978a6f0c96e07046e025 | refs/heads/master | 2020-12-14T15:51:36.930259 | 2019-10-30T22:31:10 | 2019-10-30T22:31:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | """ Setup
"""
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
exec(open('geffnet/version.... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
e3fccd35bcac0946969cbb7de0a9f8057ab2c8ee | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/BsPlanInviteConfig.py | f6e1ed05d6ca34d93fd5c47f5c13a9c375717bbe | [
"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 | 1,362 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class BsPlanInviteConfig(object):
def __init__(self):
self._end_time = None
self._start_time = None
@property
def end_time(self):
return self._end_time
@end_time.s... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
3ecd4acf486810b559bb1eb756b9b32e70f99558 | f05084e33f189c3ca16982a6704fa808831fa71a | /yayo/cart/views.py | 5009693a7231de1285c2d32c1e33dd096dbdca83 | [] | no_license | willyowi/Yayo-maluku-shop | f7581ae4c5ca0a1dc6a9daa92701d0965d27914c | 7c8844bd3cbd97fdac01f991b45ca55b5f419c38 | refs/heads/master | 2021-01-06T16:06:36.397007 | 2020-02-18T15:20:46 | 2020-02-18T15:20:46 | 241,390,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from django.shortcuts import render,redirect,get_object_or_404
from django.views.decorators.http import require_POST
from shop.models import Product
from .cart import Cart
from .forms import CartAddProductForm
# Create your views here.
@require_POST
def cart_add(request, product_id):
cart = Cart(request)
produ... | [
"wilsonowino1@gmail.com"
] | wilsonowino1@gmail.com |
a30781f84b1feca4e4a793f1a648138952c65940 | b2cefb7a2a83aa93ee1b15a780b5ddf6c498215b | /examples/nlp/duplex_text_normalization/data/data_split.py | 3b053a34419980bc0351c55707a288cbdab02f16 | [
"Apache-2.0"
] | permissive | VahidooX/NeMo | bfde8c9b48c818342a9c6290fb9dee62fafeca38 | 866cc3f66fab3a796a6b74ef7a9e362c2282a976 | refs/heads/main | 2023-07-23T19:13:39.948228 | 2022-04-29T21:51:54 | 2022-04-29T21:51:54 | 227,733,473 | 1 | 2 | Apache-2.0 | 2022-09-15T15:30:13 | 2019-12-13T01:55:21 | Jupyter Notebook | UTF-8 | Python | false | false | 5,238 | py | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | VahidooX.noreply@github.com |
b02a3215d5c955daec98e2db06f5171974b90720 | 05ec80585e500eb75baade82bada8f0c5a2a76dc | /Backtracking/GenerateIP.py | 4b339410a665caec82a4815768bb4049c6a8bab4 | [] | no_license | NenadPantelic/GeeksforGeeks-Must-Do-Interview-preparation | 24477da148d4b9fe8113f669f21984d081327563 | 180c6b1bc6a4b6e1b44c409c220368b391b672b8 | refs/heads/master | 2021-01-05T19:16:22.436554 | 2020-11-15T14:39:02 | 2020-11-15T14:39:02 | 241,113,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 25 21:19:12 2020
@author: nenad
"""
def is_valid(ip, pos,segments):
len_flag = True
# ip is not valid in form 0x e.g 121.03.22.234
if len(ip) > 1 and ip[0] == "0":
len_flag = False
# check ip length, value and if ip's part i... | [
"nenadpantelickg@gmail.com"
] | nenadpantelickg@gmail.com |
540590ef128c7fc98cb5a28c475cbf774c51ff24 | d96787f92bd86c8d8bcf01a4e7ec8f7feec24194 | /kattis/nizovi/solution.py | 9c70b792c4c93471dd6c04868b1338089c92b9f2 | [] | no_license | iandioch/solutions | 133cbc3af58fadcde0b2e981fb0e7d05801070a7 | 8b3e458b3c01179ddf776bfbb897f263f22f3693 | refs/heads/master | 2023-04-09T03:39:16.952817 | 2023-03-15T20:00:53 | 2023-03-15T20:00:53 | 47,693,495 | 48 | 40 | null | 2019-10-22T14:52:59 | 2015-12-09T13:36:55 | Python | UTF-8 | Python | false | false | 721 | py | s = input()
curr = ''
indent = 0
lines = []
for c in s:
curr += c
if curr == '{':
lines.append('{}{}'.format(' '*indent, c))
curr = ''
indent += 2
elif curr.endswith('}') or curr.endswith('},'):
d = curr.find('}')
if len(curr[:d]) > 0:
lines.append('{}{}'... | [
"iandioch11@gmail.com"
] | iandioch11@gmail.com |
b632edb4abed10644c2eca37adee10ff3ebf2a1e | 080397d0e6d573ef6d7eb9c2bc6b1b5787cfe0d1 | /tests/twitter_learning_journal/builders/test_cache_path_builder.py | 2dfeb176343ff67367981b17880cefdbe6d09dac | [
"Beerware"
] | permissive | DEV3L/twitter-learning-journal | ecd0eb922e369b10fd6e039d652eed7078601139 | a51d22a60a3d1249add352d8357975a7f2db585c | refs/heads/master | 2021-09-20T17:27:11.157096 | 2018-08-13T11:58:34 | 2018-08-13T11:58:34 | 114,556,953 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from app.twitter_learning_journal.builders.cache_path_builder import build_cache_path
def test_build_cache_path():
expected_cache_path = './data/pickle/tweets/test'
assert expected_cache_path == build_cache_path(sub_directory='test')
| [
"jus.beall@gmail.com"
] | jus.beall@gmail.com |
dc9388fcc7ecf66dabb9bc64fe98c2f689c370d6 | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/Anusha Koila/print_odd_num.py | d290d9c8c6e77770c4fb451217c46810fd11629d | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #print odd numbers
#raise exception when negtive numbers are inputted
try:
num = int(input("Enter an number :"))
except erro1:
if(num<0):
print("Negative numbers not allowed")
else:
print("ODD numbers list :\n ")
for i in range(1,num):
res=i%2
if(res!=0):
print(i)
... | [
"jsatapathy007@gmail.com"
] | jsatapathy007@gmail.com |
93196c7e4c3d9aee7a600a779e6f089b06a181e0 | 13eae91d078c8b88c990bb6da1b9cdb8e3648b76 | /cogs/Downloader/lib/fontTools/misc/macRes.py | e8b3cbc20ed28d5048adec1ba0a12c560f11c715 | [] | no_license | skylarr1227/skybizzle | 98303c99a5ea897469e381e06dcda3725d6500d6 | 63c38995437d6880bd9bf0de52d406c904cbbd24 | refs/heads/master | 2023-05-13T00:12:46.827511 | 2019-11-12T01:03:45 | 2019-11-12T01:03:45 | 221,097,000 | 0 | 1 | null | 2023-05-07T06:22:44 | 2019-11-12T00:40:38 | Python | UTF-8 | Python | false | false | 6,591 | py | """ Tools for reading Mac resource forks. """
from fontTools.misc.py23 import *
import struct
from fontTools.misc import sstruct
from collections import OrderedDict
try:
from collections.abc import MutableMapping
except ImportError:
from UserDict import DictMixin as MutableMapping
class ResourceError(Exception):
p... | [
"skylarr1227@gmail.comgit config --global user.email skylarr1227@gmail.com"
] | skylarr1227@gmail.comgit config --global user.email skylarr1227@gmail.com |
d4cb57f250e733e13d0676e9b5d25d710f3cafad | 7f52bb7c3a5ed3be6821306137c5217362d06dc3 | /manage.py | 3b50f6ea9203cf02974bbf61451c2a74f68e4d63 | [] | no_license | payush/cristianoronaldoyopmailcom-307 | 547f36250cf3c9c94bdea0fe8c7a1e3e1194294a | d2f2a1f76ab354e391bab8a628782c80a3b1c97a | refs/heads/master | 2020-03-23T14:24:53.428495 | 2018-07-20T06:44:00 | 2018-07-20T06:44:00 | 141,674,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cristianoronaldoyopmailcom_307.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other r... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
af9bfb5814f5f4141fc5fd9980c003da790129c1 | 2dbd4a34f6da93c0e70e8517971672a010db93dc | /py_m/lexer_.py | 2bc01b0157aa225fd69bd537af1b174f584f269a | [] | no_license | kawain/copy_interpreter | 44eebe43c6b9ddefa94066577dcd5779a933f426 | 94e7a6d5d03b528b9138c17a5a6828f6332fa98d | refs/heads/master | 2023-04-26T02:51:46.457263 | 2021-05-22T07:48:52 | 2021-05-22T07:48:52 | 356,544,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,363 | py | from token_ import TokenType, Token
class Lexer:
"""字句解析"""
def __init__(self, input, position=0, next_position=0, ch=""):
self.input = input
self.position = position
self.next_position = next_position
self.ch = ch
self.size = len(self.input)
self... | [
"unknown@example.com"
] | unknown@example.com |
e96605d4527a4551d1105f8932434a99310e65b9 | 561c590ec93131ceb58c21912a375b6e0d50bedb | /jiang_fenci/hmm_segment/segment/model.py | f02feafaf66f8f9e98368fd143fd2570a3590bb7 | [] | no_license | chuanfanyoudong/nlp_learn | 3607555e59789240afd6c4a9620cc6e678e0afb3 | 9fbb6781640ab9aba561dc2de0066a1f1e5882a0 | refs/heads/master | 2020-04-07T13:25:16.118562 | 2019-04-24T07:18:33 | 2019-04-24T07:18:33 | 158,406,684 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045 | py | # -*- coding: utf-8 -*-
"""
SEGMENT
--------
封装hmm分词模型
"""
import numpy as np
from hmmlearn.hmm import MultinomialHMM
from jiang_fenci.hmm_segment.segment.corpus import get_corpus
__model = None
class Segment:
def __init__(self):
self.corpus = get_corpus()
self.states, self.init_p = self.get_ini... | [
"qaz3762541@163.com"
] | qaz3762541@163.com |
a6c3cf2f1f9a3458d0b562aef5935f76de142de7 | 1956883d52e4019bbf8bd7bbc3744cdd1376e128 | /abutton.py | 96ea6f9b2354e36232ba86e55ad6e83e85bbaeda | [
"MIT"
] | permissive | Otumian-empire/tkinter-basic-gui | 5d7f7c697e9ac40f34b598b166186733d0931202 | 8a561fde8f770119bc3108511388371b1bdcabf5 | refs/heads/master | 2020-06-18T13:41:17.248470 | 2019-07-15T18:51:40 | 2019-07-15T18:51:40 | 196,320,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from tkinter import *
root = Tk()
x = 0
def increase():
global x
x += 1
label.configure(text=x)
def decrease():
global x
x -= 1
label.configure(text=x)
label = Label(text=x)
sendbutton = Button(text="increase", command=increase)
deletebutton = Button(text="decrease", command=decrease)
send... | [
"popecan1000@gmail.com"
] | popecan1000@gmail.com |
47e01a8d79922beb1795fe91191db98c2627286b | 61a8f496dbe1880398b0156940b1789ddfe8e081 | /Week_7_Lab/Advanced/q10.py | 3c2bfdedd51b4b0239a8993191d0ee3ac329def6 | [] | no_license | luca2849/CM1103-Problem-Solving-With-Python | e369cdc032249e3625ae5dbbd926703e20d11dd9 | a10b7ee6b972b23528a983dd7fff78d097c08465 | refs/heads/master | 2020-04-04T15:07:01.179113 | 2018-12-13T12:07:19 | 2018-12-13T12:07:19 | 156,024,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | def rec_power(a,n):
# if n is 1 then return a
if n == 1:
return a
# recursively call this function for n/2 and call it factor
n = n/2
factor = rec_power(a, n)
# if n/2 is even return the square of factor
if (n/2) % 2 == 0:
return factor * factor
# if n/2 is odd then retur... | [
"="
] | = |
af8010a1e412e867091d19bae06ae1b90c345783 | f993e252fc740471e71a6748685988fc0b5f2e34 | /backend/driver/migrations/0001_initial.py | 66dea496859c52c65d3e087e3245db062a3abc77 | [] | no_license | crowdbotics-apps/cobros-app-22778 | b9b9561d693fc979de0af693ffa9e4ca4d57873d | 0774fc76d1b8b484790ed1ec070c1f6455905c65 | refs/heads/master | 2023-01-12T16:46:05.469345 | 2020-11-19T17:57:14 | 2020-11-19T17:57:14 | 314,314,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | # Generated by Django 2.2.17 on 2020-11-19 17:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("del... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4c5aa5950353440cacb41eae8812b9ebad525a8f | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /chrome/test/enterprise/e2e/policy/extension_blacklist/extension_blacklist.py | d14b00fa20cb00fb2767361a0b60407fe2824f33 | [
"BSD-3-Clause"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | Python | false | false | 2,267 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import os
from chrome_ent_test.infra.core import environment, before_all, test
from infra import ChromeEnterpriseTestCase
@environment(file=... | [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
365f109ecdc7bef348e0afda449d6ff9c1423a44 | 0892937e1ef77f110a05042fa49b9178221590a5 | /quiz_app/admin.py | c54e0446c5f2b40a946d0f3ec5d7d08897fbfaa7 | [] | no_license | dmswl0311/nh_hackathon_quiz | aa2e0cc51db3abe45bdb6aadb96855528a149d63 | c4fadf6a9249d6e8ad80d553f8c20a848bdfc851 | refs/heads/master | 2023-01-29T15:46:22.046038 | 2020-12-13T13:35:46 | 2020-12-13T13:35:46 | 320,609,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.contrib import admin
from .models import Quiz, OX_Quiz
admin.site.register(Quiz)
admin.site.register(OX_Quiz)
| [
"dmswl_0311@naver.com"
] | dmswl_0311@naver.com |
d06ba3a39c1339b3301e652807885c2348d249aa | 75f3ddcebb39e1575d0e735090cbafae5bc05140 | /setup.py | 7d957bf60b9cd3b0c319e27de4efb82b1d33cecc | [
"BSD-3-Clause"
] | permissive | ethen8181/ort_inference | 372b548e98f4e6e6e5fde2bf5533a31c6e6273ce | 2fdd7fe8479c4b8679f8e809fa2b3846ad96b3fe | refs/heads/main | 2023-05-15T07:42:48.247881 | 2021-06-21T04:30:06 | 2021-06-21T04:30:06 | 376,840,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | # -*- coding: utf-8 -*-
import os
import sys
import subprocess
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
# Convert distutils Windows platform specifiers to CMake -A arguments
PLAT_TO_CMAKE = {
"win32": "Win32",
"win-amd64": "x64",
"win-arm32": "ARM",
"w... | [
"ethen8181@gmail.com"
] | ethen8181@gmail.com |
494cf359b8f1efd02f67635b8b12933e562d71b4 | c106149cccfac8dd4f05f976253f529b3234828c | /zerver/management/commands/send_realm_reactivation_email.py | 39b1dd91a654be9dba3474577f165a89b79bc915 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | kartikey54/zulip | cc685686af3bc1fbadc9ded260f62f45087df301 | e8b44f491f8967823273a6d5acd3d3d376e62b90 | refs/heads/master | 2021-01-23T02:59:24.396882 | 2019-10-08T19:46:43 | 2019-10-08T19:46:43 | 86,029,881 | 1 | 0 | Apache-2.0 | 2019-10-08T19:46:44 | 2017-03-24T05:16:51 | Python | UTF-8 | Python | false | false | 805 | py |
from argparse import ArgumentParser
from zerver.lib.management import ZulipBaseCommand, CommandError
from zerver.lib.send_email import send_email, FromAddress
from zerver.lib.actions import do_send_realm_reactivation_email
from typing import Any
class Command(ZulipBaseCommand):
help = """Sends realm reactivatio... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
35dfc784fce1e1f84a5c902dfaad6aa13b45a15b | b7f9d32bfd0ba147182a880de9b257355d3bc945 | /pyedi/grammar/jsonnocheck.py | 28444610964efc57bb6f31665ff2ce012f9fe561 | [] | no_license | jedrus2000/pyedi | 25cbb930d854e0dbe79d251b3215040c978410b2 | b5d291c5f8565137bb845835c8fe439730b2f2c7 | refs/heads/master | 2020-04-12T09:15:58.802275 | 2018-12-19T07:16:55 | 2018-12-19T07:16:55 | 162,396,916 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | """
This is modified code of Bots project:
http://bots.sourceforge.net/en/index.shtml
ttp://bots.readthedocs.io
https://github.com/eppye-bots/bots
originally created by Henk-Jan Ebbers.
This code include also changes from other forks, specially from:
https://github.com/bots-edi
This project, as origi... | [
"a.barganski@gmail.com"
] | a.barganski@gmail.com |
28642c224abb07f03d6e3c0002d570ec3095e530 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/stack_data/serializing.py | fb67d2906a1d42c448f6b8f99c6e470900813a01 | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 6,441 | py | import inspect
import logging
import sys
import traceback
from collections import Counter
from html import escape as escape_html
from types import FrameType, TracebackType
from typing import Union, Iterable, List
from stack_data import (
style_with_executing_node,
Options,
Line,
FrameInfo,
Variable... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
e0ac24619a342a1b4cf7f9e015cbbcec4a3161d4 | c9b5f49906e213c0c6edd25c063961b8226b67af | /compression/evaluate.py | a6d3d4e3f36ec271fc6ec3957c65c952d9ea8164 | [] | no_license | danielzgsilva/jetson_projects | c481ff505c97ac40089438f34ae24b74e265631c | 72ab79a2d4759fe51d107432aa9ff6ce2c728a53 | refs/heads/master | 2023-01-20T20:22:04.410741 | 2020-12-01T21:31:07 | 2020-12-01T21:31:07 | 294,460,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,723 | py | import os
#os.environ['CUDA_LAUNCH_BLOCKING']='1'
import config
import torch
import numpy as np
from dataloader import TrainDataset, ValidationDataset, DataLoader, get_cifar100_dataset
from model import VGGModel, VGGModel_old
import time
from basisModel import basisModel, display_stats
from options import Options
... | [
"danielzgsilva@knights.ucf.edu"
] | danielzgsilva@knights.ucf.edu |
fb588a29ad13110bfe5be22b2eca5aff80ed72bc | 51bab842d885e6d5e6dc0892522ed8ce82f2be9d | /src/picktrue/sites/abstract.py | ca470e6512e31356d37569ab9e178342d9c4e097 | [
"MIT"
] | permissive | winkidney/PickTrue | d941e5e9eb420f4a80bd0bbe1c06a0ab8ff3c861 | 772b105e4de3852bba41369221f47b8480bf1070 | refs/heads/master | 2023-03-12T01:40:54.780845 | 2023-03-10T17:23:55 | 2023-03-10T17:23:55 | 144,246,340 | 146 | 16 | MIT | 2020-07-24T13:02:24 | 2018-08-10T06:32:10 | Python | UTF-8 | Python | false | false | 2,353 | py | import os
from pathlib import Path
import requests
from picktrue.meta import UA, ImageItem
from picktrue.utils import retry
def normalize_proxy_string(proxy):
if 'socks5' in proxy:
if 'socks5h' not in proxy:
proxy = proxy.replace('socks5', 'socks5h')
return proxy
def get_proxy(proxy_st... | [
"winkidney@gmail.com"
] | winkidney@gmail.com |
f07fecfbe41fa6f5a0d071a0779023ddd9a066ad | 43268854505070471e0911bc0e5b280cadec8601 | /modeller9v8/examples/commands/all_hydrogen.py | 277f74f956357eaf0efaf2fe95d7ea9c4afac96a | [] | no_license | realbigws/From_CA_to_FullAtom | 08621bf350c77e29140051d1af850a51e5fe138f | a59d9fcbc6c1f2bfc5fc2d77da26318c63ac3052 | refs/heads/master | 2020-05-30T01:37:47.378404 | 2019-05-30T21:42:45 | 2019-05-30T21:42:45 | 189,481,583 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # This will read a specified atom file, generate all hydrogen atoms,
# add atomic radii and charges, and write the model to a PDB file in
# the GRASP format. This can be used with GRASP to display electrostatic
# properties without assigning charges and radii in GRASP.
from modeller import *
from modeller.scripts impo... | [
"wangsheng@ttic.edu"
] | wangsheng@ttic.edu |
5a11112058ae007b6764e25e44cccde6c87c2df1 | 77ab593ed55a6d46b1778f6d41bc70ced3f8cd46 | /face_into/face72/see_data.py | f713bea53d21afcdad492cd716761cea8e41e100 | [] | no_license | wosxcc/bot | e93b92fbca79a915feb186160f3f72c99218ffcb | c097f5455bc6264c9f778fb72900475963836153 | refs/heads/master | 2021-06-12T12:43:47.314071 | 2018-12-14T08:51:43 | 2018-12-14T08:51:43 | 128,619,488 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | import os
import cv2 as cv
path_files = 'E:/dectect/dectect/face68'
for file in os.listdir(path_files):
if (file[-4:]=='.txt'):
print(file)
img = cv.imread(path_files+'/' + file[:-4]+'.jpg')
txt_open = open(path_files+'/' + file)
txt_read = txt_open.read()
txt_lines =txt... | [
"821022156@qq.com"
] | 821022156@qq.com |
ed202550c399b038c7bfb0bf2e966d9f0662b5d4 | 2d05050d0ada29f7680b4df20c10bb85b0530e45 | /python/tvm/contrib/tf_op/module.py | bcff2741630c5308254ab8df9ed28a5875b956ff | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Zlib",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | apache/tvm | 87cb617f9a131fa44e1693303aaddf70e7a4c403 | d75083cd97ede706338ab413dbc964009456d01b | refs/heads/main | 2023-09-04T11:24:26.263032 | 2023-09-04T07:26:00 | 2023-09-04T07:26:00 | 70,746,484 | 4,575 | 1,903 | Apache-2.0 | 2023-09-14T19:06:33 | 2016-10-12T22:20:28 | Python | UTF-8 | Python | false | false | 4,901 | 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"
] | apache.noreply@github.com |
03e2d01099f8601a427ced9e76c0efe84bdc6d95 | 947af25b72b5b3037443fae3fb22fa3a2f1de363 | /nextgisweb_mapserver/mapfile/keyword_tests.py | 8857613f74b6be20b27ab8cb8421416a1f7d64c7 | [] | no_license | guardeivid/nextgisweb_mapserver | 2b527b160b6cb017ae9c6a663e4171783a9c89d2 | 34376442fe6d56794c32523050ceb338a902228f | refs/heads/master | 2020-03-30T02:50:50.893436 | 2014-04-14T09:19:49 | 2014-04-14T09:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
from lxml.etree import tostring, fromstring, RelaxNG
from .keyword import registry
def _test_shema(cls):
root = cls.element_schema()
root.set('datatypeLibrary', 'http://www.w3.org/2001/XMLSchema-datatypes')
xml = tostring(root, pretty_print=True)
idx = 1
print ''
for... | [
"me@dezhin.net"
] | me@dezhin.net |
7f5d989cb77b8fbbb53231f3820afe5b56fbe207 | 18f0ad99e21e2e35126f8c3c28079d358fa2129a | /SnakeBot/buzzer/code.py | 6488f15e023e6bf5709d147c707884478c919297 | [
"MIT"
] | permissive | ladyada/Adafruit_Learning_System_Guides | 9bf18dfa35941e0cbecbb3c2d02b4fa3cb79744f | 6d76801878cbf65132ccea950dc47ae842c73dcd | refs/heads/master | 2023-08-20T20:30:42.910576 | 2022-01-10T20:28:11 | 2022-01-10T20:28:11 | 115,837,894 | 13 | 2 | MIT | 2020-03-31T23:23:45 | 2017-12-31T02:34:47 | C | UTF-8 | Python | false | false | 2,930 | py | import time
import random
from adafruit_crickit import crickit
LEFT = False
RIGHT = True
random.seed(int(time.monotonic()))
ss = crickit.seesaw
left_wheel = crickit.dc_motor_1
right_wheel = crickit.dc_motor_2
RIGHT_BUMPER = crickit.SIGNAL1
LEFT_BUMPER = crickit.SIGNAL2
CENTER_BUMPER = crickit.SIGNAL3
ss.pin_mode(R... | [
"dastels@daveastels.com"
] | dastels@daveastels.com |
d5a2f49110fd363deb27708c646b22143667b47c | 5e381364c2ab31ff3618369085afffba6caa8edb | /recipes/xtr/all/conanfile.py | e4caa905f0a2d8e333cbaa86e7345766dda819a1 | [
"MIT"
] | permissive | CAMOBAP/conan-center-index | 16aea68a6d22da22831ba985773125e8eda08f00 | 67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1 | refs/heads/master | 2023-07-30T08:58:57.285571 | 2021-10-02T14:57:54 | 2021-10-02T14:57:54 | 323,262,699 | 1 | 0 | MIT | 2021-05-29T13:37:04 | 2020-12-21T07:30:02 | Python | UTF-8 | Python | false | false | 3,685 | py | from conans import ConanFile, AutoToolsBuildEnvironment, tools
from conans.errors import ConanInvalidConfiguration
import os
class XtrConan(ConanFile):
name = "xtr"
description = \
"C++ Logging Library for Low-latency or Real-time Environments"
topics = ("xtr", "logging", "logger")
url = "htt... | [
"noreply@github.com"
] | CAMOBAP.noreply@github.com |
5404d94c2cb141aaa4fa36f139bbfc2f161ce03f | a8731ed73a1fbae2d1e490fc8951aa17873aa7d4 | /iga/population/standard_analysis.py | 163123558095eccca04cfb007d8470d1031bdae1 | [] | no_license | juancq/character-evolver | 452bf84afd52766502fbe6ba6471519d1a7635e1 | 5dcae96916dbfef03cc8f6625e4a4c31fe25224f | refs/heads/master | 2021-01-23T18:08:21.058617 | 2017-05-22T02:08:58 | 2017-05-22T02:08:58 | 129,113 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | import nsga_ii
from iga.gacommon import gaParams
import copy
class Population(nsga_ii.Population):
def __init__(self, paramClass, paramDict):
nsga_ii.Population.__init__(self, paramClass, paramDict)
ops = gaParams.getVar('operators')
len_ops = len(ops)
op_prob = 1. / len_ops
... | [
"juan@dragonite.(none)"
] | juan@dragonite.(none) |
4608f91e2fdbac43339f6c6d31842b17ae0dafae | 9607f45b501c62d0500536e14d134a1aca0a6982 | /datum/utils/binary_utils.py | 298f14ff5da4d3abe55ce11e5906ea9163bdccc3 | [
"Apache-2.0"
] | permissive | shashank-subex/datum | b8fb552d4180ea3ee6345fa6bf4a2620231c7601 | 089b687fc569c8c6ce613349297997c67ce40c7a | refs/heads/master | 2023-05-28T01:00:04.701429 | 2021-06-10T11:13:38 | 2021-06-10T11:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | # Copyright 2020 The OpenAGI Datum Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"mrinal.haloi11@gmail.com"
] | mrinal.haloi11@gmail.com |
62cdd2136986368bbf1b0b11e0bd9c2b67467903 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ysgbRFTPujx8v37yF_9.py | 6636e68c4e204f96c2ae4dff5513f35eb4a94f15 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py |
class Triangle:
def __init__(self):
self.r = {1: [1]}
self.last_row = 1
self.last_num = 1
def advance(self):
new_row = self.last_row + 1
nr = [n for n in range(self.last_num+1, self.last_num + new_row + 1)]
self.last_num = nr[-1]
self.last_row += 1
self.r[new_row... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
957e5920703f3c85f244e9d1b7a3969fb8b9b5b2 | b3586235dc1e1acbd49fab996f581269a808480b | /sistema/producao/migrations/0102_bobine_diam.py | b042cee2ccaad255cc483cecad77993e16a08807 | [] | no_license | gonfersilva/Sistema | 37ad1cd03dfbb7889fa0b0367c6ebd9044712ae3 | 4c6d9ade22040972efbe892eae0130939d7b5c46 | refs/heads/master | 2021-10-23T23:21:51.262723 | 2021-10-13T19:45:49 | 2021-10-13T19:45:49 | 155,545,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.7 on 2020-06-16 15:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('producao', '0101_auto_20200616_1506'),
]
operations = [
migrations.AddField(
model_name='bobine',
name='diam',
... | [
"goncalo.silva@elastictek.com"
] | goncalo.silva@elastictek.com |
0d0efe5aebd2fc8deddd6b033513330081a63629 | 72cdc45a345fe47c525468ff82ef8ce845d9f800 | /Python/django_ajax/ajax_post/app/models.py | db2ea4bd5133f6de68fbf6b39f46e364a5fbe072 | [] | no_license | bopopescu/Coding-Dojo-assignments | 474242e14371e729b5948602ffc0a9328f1e43cb | 0598d7162b37d9472c6f1b82acc51d625ac871ca | refs/heads/master | 2022-11-23T18:55:36.393073 | 2018-07-20T07:43:56 | 2018-07-20T07:43:56 | 281,670,452 | 0 | 0 | null | 2020-07-22T12:24:30 | 2020-07-22T12:24:30 | null | UTF-8 | Python | false | false | 414 | py | from django.db import models
# Create your models here.
class NoteManager(models.Manager):
def create_note(self,post_data): self.create(note=post_data['note'])
def notes_rev(self): return self.all().order_by('-id')
class Note(models.Model):
note = models.TextField()
create_at = models.DateTimeField(a... | [
"gringojaimes20@gmail.com"
] | gringojaimes20@gmail.com |
037fc634a6c96cca0b1264ed15b267b1d4a37fa3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/2243.py | 3f2ecb9e374f1d2bd6ced2658ba82fc35ee1861b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | # 0123
# 0 ....
# 1 ....
# 2 ....
# 3 ....
class Game:
def __init__(self, size = 4):
self.size = 4
self.rows = { 'X': 0, 'O': 0 }
self.columns = {}
self.columns['X'] = [True] * size
self.columns['O'] = [True] * size
self.diagonals = {'X': [True, True], 'O': [True, ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1fa634ea7182b12e6ce9021f8050dcc3492d90b5 | fe3ecb9b1ddd8de17b8cc93209134f86cd9c4a6f | /4_Python_ML/chap06_Regression/lecture/step01_regression.py | 9dd4e34d1e6a6aed096bba40c35b13ede650b6d2 | [] | no_license | nsh92/Bigdata-and-Machine-Learning-Education-at-ITWILL | d1a7292ee4865a3d0c664dd6ecf3afc0d6325847 | 3cb5661001597499178a2c85f4ccf70dcf0855d6 | refs/heads/master | 2022-11-21T23:10:51.421708 | 2020-07-23T12:49:11 | 2020-07-23T12:49:11 | 275,540,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | # -*- coding: utf-8 -*-
"""
회귀방정식에서 기울기와 절편 식
기울기 = Cov(x,y) / Sxx(x의 편차 제곱의 평균)
절편 = y_mu - (기울기 * x_mu)
"""
from scipy import stats # 회귀모델
import pandas as pd
galton = pd.read_csv('C:/ITWILL/4_Python-II/data/galton.csv')
galton.info()
'''
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 928 entries, 0 to 927
Data... | [
"totols1092@gmail.com"
] | totols1092@gmail.com |
48421324896cdf92d22394ec3216d8ebde4bb512 | cbedb18df0aaac810aeea87a2273edb15c1cf899 | /Strings/49. Group Anagrams(3).py | 376bd9d635f4dd8b8830d8cec0f586ee7d9eeefc | [] | no_license | kanglicheng/CodeBreakersCode | 71b833bb9f4c96d520c26f0044365dc62137a940 | 31f7f730227a0e10951e7468bad1b995cf2eafcb | refs/heads/master | 2023-08-07T20:32:05.267695 | 2020-09-14T14:36:25 | 2020-09-14T14:36:25 | 265,978,034 | 0 | 0 | null | 2020-05-22T00:05:29 | 2020-05-22T00:05:29 | null | UTF-8 | Python | false | false | 960 | py | # not sure about the solution at start
# sort each str => O(W logW), w is the length of each words -> O(N * W log W) or counting sort O(N*W)
# turn each word into count char list: each list length is fixed:26 -> need O(W) to turn to list
# but lst can't hash -> turn to str then use hash map
class Solution:
def gro... | [
"56766457+Wei-LiHuang@users.noreply.github.com"
] | 56766457+Wei-LiHuang@users.noreply.github.com |
706004ded5504282ced7c31b8a3c251769a0d8c8 | b00330d48bfe09da78e50694a72793fe128c6a01 | /27_머신러닝_붓꽃 품종 학습.py | e10c7892374db24c3f940ab357d31d34b02b1683 | [] | no_license | swj8905/2021_Hongik_Summer | c177d64c6f0326f00d974e20e1334d8ac0ede3e4 | e3c28d1bfeb4d6a55b152bd922b61b77a17bb84c | refs/heads/master | 2023-06-16T00:47:15.852607 | 2021-07-08T12:01:31 | 2021-07-08T12:01:31 | 378,916,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from sklearn.svm import SVC
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
# 데이터 불러오기
df = pd.read_csv("./iris.csv")
label = df["variety"]
data = df[["sepal.length", "sepal.width", "petal.length", "petal.width"]]
train_data, valid_data, train_label, ... | [
"swj8905@naver.com"
] | swj8905@naver.com |
3beaca888a36dc002b9fa618283aacf86d72d4a1 | e7b20ed87e8402bb8f55f0bf2b91824c264e07b4 | /pyhypnolsd/hypnolsd.py | 76420c7b4a25359320b46780ee95a1c1dcd98b44 | [
"Unlicense"
] | permissive | rclough/pyHypnoLSD | 1ebe10929e6067e219851239f6e5a27fafcdb4b4 | 6d8c0539633d47c7e59368fcc849ca9b79ac6db4 | refs/heads/master | 2016-09-05T16:51:15.803912 | 2014-02-14T21:27:58 | 2014-02-14T21:27:58 | 16,823,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,016 | py | """
Module that contains various functions, constants, and tools
for interacting with a hypnoLSD object
"""
import sys, serial
###############################################################################
# Constants
###############################################################################
NATIVE_BAUD = 960... | [
"root@beaglebone.(none)"
] | root@beaglebone.(none) |
40b38c9d62305e2dc9eb496685175c25a2a73a41 | 21dd7d56c370ea9a02b66654525fd96a398a9e49 | /apps/competition/urls.py | 8fda71942b35148c142e463894bd46fdd17e9acf | [] | no_license | hqpr/fame | fdad5d03bf9ee7ca31ae8a4701ff05bafd49540f | 8b77e3a822ae70ee6d79a8003e1d9f9bc5ba8355 | refs/heads/master | 2023-01-14T16:58:46.533090 | 2015-08-31T15:37:09 | 2015-08-31T15:37:09 | 35,205,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from django.conf.urls import url
from apps.competition.views import competitions, single_competition, single_competition_terms, pick_media_file, SingleCompetitionEnter, \
competition_add_audio, competition_add_video, entry_review
urlpatterns = [
url(r'^$', competitions, name='all_competitions'),
url(r'^(?... | [
"adubnyak@gmail.com"
] | adubnyak@gmail.com |
5181e499b3220d7aa79460e74c4d532b634fb8bc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /QgAwpaFWD2jtxZ2wG_8.py | c19c34476af79ec15c2595c52b9b91290b20f82c | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | """
Given an integer `n`. Your task is to find how many digits this integer
contains without using `str` or `len` methods!
### Examples
sum_digits(100) ➞ 3
sum_digits(1000) ➞ 4
sum_digits(1) ➞ 1
### Notes
N/A
"""
def sum_digits(n):
count=0
if n==0:
return 1
while n!=0:
n//=... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f5ef2c723c317a80eb8cad3ed47da968f1411d5f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_inferiors.py | acab87363dd1d78f2b03e3b0fd1313fda1eeab3e | [
"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 | 262 | py |
from xai.brain.wordbase.adjectives._inferior import _INFERIOR
#calss header
class _INFERIORS(_INFERIOR, ):
def __init__(self,):
_INFERIOR.__init__(self)
self.name = "INFERIORS"
self.specie = 'adjectives'
self.basic = "inferior"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d812823dcc5f741c075b136a22be8928175d68e6 | 5388e00d992050d515f72666e2f76c51b2ca56ee | /calc_angle_between_two_locs.py | 424c037ae9233d5870ce13b03f901b6b13ad4281 | [
"Apache-2.0"
] | permissive | lonecrane/PyGuymer3 | df9ffc62d4f7fddf04ae3ea18f5487dec48472c7 | c7eb017dac18abb5eafe74e23a93bf7e68e48916 | refs/heads/master | 2020-09-11T23:44:14.036051 | 2019-11-20T07:01:22 | 2019-11-20T07:01:22 | 222,229,475 | 0 | 0 | Apache-2.0 | 2019-11-17T10:13:51 | 2019-11-17T10:13:51 | null | UTF-8 | Python | false | false | 1,049 | py | def calc_angle_between_two_locs(lon1_deg, lat1_deg, lon2_deg, lat2_deg):
"""
This function reads in two coordinates (in degrees) on the surface of a
sphere and calculates the angle (in degrees) between them.
"""
# Import modules ...
import math
# Convert to radians ...
lon1_rad = math.... | [
"t.m.guymer@thomasguymer.co.uk"
] | t.m.guymer@thomasguymer.co.uk |
6f659c63d644601207b26f69956c91a1acf67b0c | 8734446b29c3424e25ef82c3ba65db61f1736a12 | /prngmgr/migrations/0007_auto_20161008_1643.py | 1ea7a65c037d1ef783856208172d4c2c0bbe84f8 | [
"Apache-2.0"
] | permissive | decolnz/prngmgr | 25ef02a3c76c00864009c6470d532805a5b52af3 | 6ea19e0095c123d337e523f3c832f5688254c7f1 | refs/heads/master | 2021-01-19T00:51:26.798203 | 2016-10-11T09:16:04 | 2016-10-11T09:16:04 | 87,213,736 | 1 | 0 | null | 2017-04-04T17:05:25 | 2017-04-04T17:05:25 | null | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('prngmgr', '0006_auto_20161008_1336'),
]
operations = [
migrations.AlterField(
model_name='peeringsession',
... | [
"benm@workonline.co.za"
] | benm@workonline.co.za |
5bfde6f4620ebb1cad3fa1035a1c961d7bfff609 | c25be81a90291c9dd7eed076509729b1c730531e | /tests.py | 93f031029fc25e60902294dba580f390e688262c | [
"Apache-2.0"
] | permissive | icYFTL/RTULAB_Service | 8707b7f9082494e7513c6afc0e4ede89f18cc320 | a16d0fc2ac9ac103f0a14e90824caded7156bf11 | refs/heads/main | 2023-03-18T15:26:56.586261 | 2021-03-18T09:23:30 | 2021-03-18T09:23:30 | 343,216,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | import requests
import unittest
class Test(unittest.TestCase):
def setUp(self) -> None:
self.__host = 'https://rulab.icyftl.ru/'
self.__purchases_host = self.__host + 'purchases'
self.__shop_host = self.__host + 'shop'
self.__factory_host = self.__host + 'factory'
self.__sh... | [
"savap0@yandex.ru"
] | savap0@yandex.ru |
9fda03d01e11adae9c1c4533fc5502a2d6fe71d9 | ba9e1fc7797ebc55a61a40ee66c51b467f353ff1 | /web_scraping_with_python_demos/2-cleangrams.py | 1c489e8f587b8315ebadba2f6d45592f570f395e | [] | no_license | sanpianye/the-little-python | 77c938164d43cbb120063a6d17d0705cc9e92e93 | c04898bf0812afb53b71567699ee523d1bc56a29 | refs/heads/master | 2021-06-14T01:55:31.452777 | 2017-03-09T13:31:59 | 2017-03-09T13:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
''''''
__author__ = 'Engine'
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
import string
from collections import OrderedDict
def cleanInput(input):
input = re.sub("\n+", " ", input) # 将多个换行符转为一个空格
input = re.sub("\[[0-9]*\]", ""... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
070b67571830fbc22ce4702fded26ee0e03f646a | 6d7c488d14cf2bc0322c955a53ec34cfd67e8c3b | /.history/plane_ticket/spiders/ticket_spider_20200709002008.py | 9258ec92ad4166dbf5107784494df0a8a3454021 | [] | no_license | byebyeyuchi/getPlaneTicket-web-crawl- | e247b7d015e35d1036e023c748764abb0ad66fe1 | 91a666659a537c053d8cd19c8214a54eab460800 | refs/heads/main | 2023-02-25T21:43:53.046865 | 2021-01-30T02:14:43 | 2021-01-30T02:14:43 | 334,308,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import scrapy
class TicketSpider(scrapy.Spider):
name = "tickets"
def start_requests(self):
urls =[
"http://montreal.chineseconsulate.org/chn/zlgxw/"
]
def parse(self, response):
all = response.css('.Text_Center li').css()
| [
"delseylyq@gmail.com"
] | delseylyq@gmail.com |
9c0565a7a799b4d983060bea22a4462692fd3731 | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /helpers/mixins/store_data_with_default_value_by_key.py | e418e8fb8cbcfde82dbe0fe1b92fbd4096f04bed | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.core.exceptions import ValidationError
from core.models import MixeurBaseModel
class StoreDataWithDefaultValueByKey(MixeurBaseModel):
"""
Mixin for storing value with a unique default value... | [
"norman@xael.org"
] | norman@xael.org |
42ce348fe55b62181045120eb229a2509121b694 | 86f2eb787624e293be660fa97f6bbb35980f2e29 | /translate-app-tkinter/app/utils/thread.py | 11fc4e975c3224a345df30657371cadb3b9e9957 | [
"MIT"
] | permissive | jadsonlucio/holidays-projects | 73e762b7d5669b8850f3fcecf59aa152430c2d19 | 136992f499d37640decf67072280ae87b83fe830 | refs/heads/master | 2023-05-09T03:55:24.433421 | 2020-10-27T13:13:01 | 2020-10-27T13:13:01 | 256,420,473 | 2 | 0 | null | 2021-06-02T01:30:37 | 2020-04-17T06:26:05 | Python | UTF-8 | Python | false | false | 273 | py | from threading import Thread
from functools import wraps
def run_async(func):
@wraps(func)
def async_func(*args, **kwargs):
func_hl = Thread(target = func, args = args, kwargs = kwargs)
func_hl.start()
return func_hl
return async_func
| [
"jadsonaluno@hotmail.com"
] | jadsonaluno@hotmail.com |
bbb837d0aac28477a37baa05d3dd3c36167bc5b7 | 8b59108f621e94935b3b72aae3c441e10cb64a1c | /create_uneeded_icons.py | cdb3dda6906313546c12ebd032e4aa2accfd9755 | [] | no_license | CyberSys/CE_Python | 97a373b1fe2d214ae854d454dc5e7d79bc150d8e | 721ac005e215f1225fb3c99491b55dc48b19ab30 | refs/heads/master | 2022-01-13T08:04:08.558594 | 2019-07-22T17:05:46 | 2019-07-22T17:05:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | from shutil import copyfile
import os
if __name__ == "__main__":
uneeded_icons = [
"AssaultScope_48.png",
"ATButtstockTS_48.png",
"ATFrontsightTS_48.png",
"ATHandguardARS_48.png",
"ExtendedClip_48.png",
"FlashlightAcc_48.png",
"Ironsight_48.png",... | [
"chrissprance@gmail.com"
] | chrissprance@gmail.com |
634db64fad5672d244b9dde45ed05c57dca1210d | a1b21aa9b4c3b99b9b16fd47686bcc76e6fafd18 | /unit_test/function_test/test_name_function.py | 9852039917d53af0689e6cada925c25852cced60 | [] | no_license | irfan87/python_tutorial | 986c5dae98a5ad928c3820bf0355f544c091caf0 | 71bbf8b8aba2d5a1fafc56b8cb15d471c428a0cf | refs/heads/master | 2020-06-05T00:52:07.619489 | 2019-08-19T02:56:41 | 2019-08-19T02:56:41 | 192,257,432 | 0 | 0 | null | 2019-08-19T02:56:42 | 2019-06-17T01:53:46 | Python | UTF-8 | Python | false | false | 643 | py | import unittest
from name_function import get_formatted_name
class NamesTestCase(unittest.TestCase):
"""Tests for 'name_function.py"""
def test_first_last_name(self):
"""Do names like 'Janis Joplin' work?"""
formatted_name = get_formatted_name('janis', 'joplin')
self.assertEqual(format... | [
"nerve2009@yahoo.com"
] | nerve2009@yahoo.com |
ed7aeccf50b61c1ede46b34c971ecbf6fac49f40 | 90baf1f6abb0dcba147f46105347a7d81f0ed617 | /472-concatenated-words/472-concatenated-words.py | 1541cd05cdd590100ef56d987a207bccb9cf9176 | [] | no_license | vinija/LeetCode | c2bfbd78711b2ebedcfd4f834d12fde56a15b460 | de2727f1cc52ce08a06d63cff77b6ef6bb9d2528 | refs/heads/master | 2022-09-29T06:16:44.465457 | 2022-08-21T05:20:45 | 2022-08-21T05:20:45 | 97,401,204 | 116 | 32 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # ORIGINAL POST WITH EXPLANATION: https://leetcode.com/problems/concatenated-words/discuss/871866/Easyway-Explanation-every-step
class Solution(object):
def findAllConcatenatedWordsInADict(self, words):
"""
:type words: List[str]
:rtype: List[str]
"""
d = set(words)
... | [
"vinija@gmail.com"
] | vinija@gmail.com |
09350b78ae65b299217cbd7c1567d5543b66ea37 | 37a119f116431ef91f1257370a5cd4a992b018db | /tests/sql/test_expressions.py | 123319ebd94792d6d470655ae8be31eb2e22416f | [
"ISC"
] | permissive | uranusjr/sqlian | 660e66d4c5c01b1112961f4097e95143c15cf72a | 8f029e91af032e23ebb95cb599aa7267ebe75e05 | refs/heads/master | 2021-01-19T18:59:19.349318 | 2017-09-12T13:12:10 | 2017-09-12T13:12:10 | 101,176,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from sqlian import Sql
from sqlian.standard import expressions as e
def test_identifier(engine):
sql = e.Identifier('foo')
assert sql.__sql__(engine) == Sql('"foo"'), sql
def test_identifier_qualified(engine):
sql = e.Identifier('foo', 'bar')
assert sql.__sql__(engine) == Sql('"foo"."bar"'), sql
d... | [
"uranusjr@gmail.com"
] | uranusjr@gmail.com |
dd773633d85d0d1d73c0a0a758c4bdebd3107be2 | 6f7ba68d9e2ba6cfc7f07367bcd34a643f863044 | /cms/siteserver/siteserver_background_keywordsFilting_sqli.py | 24feed6f2a0c31d35687f1091c3bcc6d3214f82b | [] | no_license | deepwebhacker/Dxscan | 2e803ee01005a1d0a7802290bfb553f99e8fcf2e | eace0872e1deb66d53ec7cfc62f4c793f9421901 | refs/heads/main | 2023-03-06T10:26:23.371926 | 2021-02-22T14:03:51 | 2021-02-22T14:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: siteserver3.6.4 background_keywordsFilting.aspx注入
referer: http://www.wooyun.org/bugs/wooyun-2013-043641
author: Lucifer
description: 文件/siteserver/bbs/background_keywordsFilting.aspx中,参数Keyword存在SQL注入。
'''
import sys
import requests
import warnings
from termcolor... | [
"noreply@github.com"
] | deepwebhacker.noreply@github.com |
98a9f68c969ed0299834aeafe3f5422274954ce7 | 8a3401fcc24fb398e7cac0f8a67e132ed5b3fa8f | /src/pycrunchbase/resource/news.py | 67242ca520fe227c4dc5b1285fa4919f577e6495 | [
"MIT"
] | permissive | ngzhian/pycrunchbase | 58cf96ed20b5b3f4861bb884bcf0d9ffcf4df808 | ead7c93a51907141d687da02864a3803d1876499 | refs/heads/master | 2023-07-08T06:18:59.314695 | 2023-07-03T13:27:06 | 2023-07-03T13:27:06 | 30,629,033 | 69 | 45 | MIT | 2020-12-02T02:26:40 | 2015-02-11T03:39:14 | Python | UTF-8 | Python | false | false | 734 | py | import six
from .node import Node
from .utils import parse_date
@six.python_2_unicode_compatible
class News(Node):
"""Represents a News on CrunchBase"""
KNOWN_PROPERTIES = [
"title",
"author",
"posted_on",
"url",
"created_at",
"updated_at",
]
def _coe... | [
"ngzhian@gmail.com"
] | ngzhian@gmail.com |
9102954aee63aa1de8128785de2d2f9e90d976f9 | a79cccacfa422012caac481b5eff80f6e911d0af | /jax/experimental/gda_serialization/serialization_test.py | cef36c9f56c1553a70bcf8e80935396e0bf0d8b0 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | jblespiau/jax | f932fe6df23942756957db61655f6cc9c6d67d64 | 46a666c4489b9e04d2777cf2156453bc48a8e432 | refs/heads/main | 2022-04-17T01:50:55.041057 | 2022-04-15T08:49:52 | 2022-04-15T08:49:52 | 481,888,965 | 0 | 0 | Apache-2.0 | 2022-04-15T08:20:44 | 2022-04-15T08:20:43 | null | UTF-8 | Python | false | false | 6,163 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"no-reply@google.com"
] | no-reply@google.com |
1958e4fd3cd5234c86f6dd7f259d43da2a520bd3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03032/s283156387.py | 473d0ed84ab4c0f25eab299ea36e78724919eff4 | [] | 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 | 400 | py | n,k = map(int,input().split())
lis = list(map(int,input().split()))
ans = 0
for i in range(n):
for j in range(n-i+1):
num = lis[:i]
if j > 0:
num += lis[-j:]
if len(num) <= k:
cnt = min(len(num),k-len(num))
num.sort()
for h in range(cnt):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
582302c3619958b67faf74202cdf4418340616c1 | b2f8c41358f6c6f4ce78328695a7b4f96adf806b | /staff_crm/apps.py | c4f1bce309a4b15bd048c1a4cfc2964dc43f754b | [] | no_license | funsojoba/staff_management_api | 6f472ea0a53095b6860969cf88f87b50fea69729 | 792bc652ec61e3f0d16bab1ff36cf72643161dbe | refs/heads/main | 2023-05-24T04:45:20.895495 | 2021-06-13T19:45:07 | 2021-06-13T19:45:07 | 373,336,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.apps import AppConfig
class StaffCrmConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'staff_crm'
| [
"42432746+funsojoba@users.noreply.github.com"
] | 42432746+funsojoba@users.noreply.github.com |
2b1c888ed19da3073b1fcc9a4ad2599f84ed38f0 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/ios/plugins/module_utils/network/ios/providers/cli/config/bgp/address_family.py | 0e0ce1ab78fecbd074f6c23d7f5f4d6866007720 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 5,305 | py | #
# (c) 2019, Ansible by Red Hat, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import re
from ansible.module_utils.six import iteritems
from ansible_collections.ansible.netcommon... | [
"sifang@cisco.com"
] | sifang@cisco.com |
be4034b96252307d6e130988d30401bb65314765 | d7f4596491b47d74689d8731c9d0f10b51b5693f | /fastcampus/코딩테스트_면접/02. 알고리즘 이론/graph.py | 6b593b8ff449f75e4ad3cf2229502620e69e8a70 | [] | no_license | wonjongah/DataStructure_CodingTest | 797b62d48321abf065f1507f14a3ed0902f48399 | 9d28c2aefbba2486f6158c066fd249fca3904346 | refs/heads/main | 2023-06-04T15:54:30.048106 | 2021-06-30T14:09:41 | 2021-06-30T14:09:41 | 327,008,361 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | graph = dict()
graph['A'] = ['B', 'C']
graph['B'] = ['A', 'D']
graph['C'] = ['A', 'G', 'H', 'I']
graph['D'] = ['B', 'E', 'F']
graph['E'] = ['D']
graph['F'] = ['D']
graph['G'] = ['C']
graph['H'] = ['C']
graph['I'] = ['C', 'J']
graph['J'] = ['I']
print(graph) | [
"wonjongah@gmail.com"
] | wonjongah@gmail.com |
59fedb17f8722439c3814f478d134f626b0a4c4a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/48/usersdata/82/15966/submittedfiles/estatistica.py | 31ad4a0026cf93a6236f0ea7646c0afd92d24f53 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # -*- coding: utf-8 -*-
from __future__ import division
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
media = soma/len(lista)
return media
a=[]
b=[]
n= input ('Digite a quantidade de elementos:')
for i in range (0,n,1):
a.append(input('Digite um elemento:... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5941ae15de8d50faefafcad8fed4e9d17d948e27 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gtk/_gtk/MountOperation.py | d327e51af64f413a5022e8715f458a73a8e61d5b | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | # encoding: utf-8
# module gtk._gtk
# from /usr/lib64/python2.6/site-packages/gtk-2.0/gtk/_gtk.so
# by generator 1.136
# no doc
# imports
import atk as __atk
import gio as __gio
import gobject as __gobject
import gobject._gobject as __gobject__gobject
class MountOperation(__gio.MountOperation):
"""
Object Gt... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
e260d0d50c7d74e84cf1062a5c25ccbe38c4e375 | 90360a1de1c19ab217ff0fceaaa3140cad4ddaa5 | /plugin.video.salts/scrapers/icefilms_scraper.py | 9fffbf94a63ac44d5c3ce8d39de54d0ed860f31e | [] | no_license | trickaz/tknorris-beta-repo | 934cbbf089e12607fe991d13977f0d8a61354f01 | c4b82ef1b402514ef661bcc669852c44578fcaa0 | refs/heads/master | 2021-01-22T14:25:19.271493 | 2014-10-17T06:19:39 | 2014-10-17T06:19:39 | 25,358,146 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,462 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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 3 of the License, or
(at your option) any later version.
T... | [
"tknorris@gmail.com"
] | tknorris@gmail.com |
1c9798c3ad320b1268eb7c05f3413c11de8cc2c4 | 74d6b36ae48a2153fa35c56d2448c05b64c72bf8 | /contests/550/A-two-substrings.py | 1cd1bdb89a05efe3c401c3f0559cc701f7386b67 | [] | no_license | hariharanragothaman/codeforces-solutions | 205ec8b717e8eb3e4d700fc413159c49a582cff6 | 1566a9187cc16e1461ddb55dbcc393493604dfcd | refs/heads/master | 2023-06-24T11:33:52.255437 | 2021-07-25T14:33:52 | 2021-07-25T14:33:52 | 282,783,158 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | """
Given a string, we need to find , if it contains AB, and BA seperately and they are non-overlapping
The strings can be in any order.
"""
from typing import List
p = 31
m = 10 ** 9 + 9
def compute_hash(s):
n = len(s)
power_mod = [1]
for i in range(n):
power_mod.append((power_mod[-1] * p) % m)... | [
"hariharanragothaman@gmail.com"
] | hariharanragothaman@gmail.com |
fc6ec366cc16a9f609e3910d19770d58645a59b8 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/invokation/type_rules/modules/numpy/lib/ufunclike/ufunclike__type_modifiers.py | 8a0fa8e78c44a7d76c174b17b2107251eb822674 | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy
from stypy.invokation.handlers import call_utilities
class TypeModifiers:
@staticmethod
def fix(localization, proxy_obj, arguments):
if call_utilities.is_numpy_array(arguments[0]):
return arguments[0]
else:
re... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
dbf30296d71e7bf60831a0c340e730a93a7d7a5c | c78d25a2ea56f012da3381d7245c3e08556129e1 | /coherence/backends/radiotime_storage.py | 1f2c5d69ba48ac3beee20a08759cb96b1a85c6c1 | [
"MIT"
] | permissive | Python3pkg/Cohen | 556ad3952136fc2eafda99202a7280c2ece2477e | 14e1e9f5b4a5460033692b30fa90352320bb7a4e | refs/heads/master | 2021-01-21T17:13:58.602576 | 2017-05-21T08:33:16 | 2017-05-21T08:33:16 | 91,943,281 | 1 | 0 | null | 2017-05-21T08:32:55 | 2017-05-21T08:32:55 | null | UTF-8 | Python | false | false | 7,113 | py | # Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
# an internet radio media server for the Coherence UPnP Framework
# based on the radiotime (http://radiotime.com) catalog service
# Copyright 2007, Frank Scholz <coherence@beebits.net>
# Copyright 2009-2010, Jean-Michel Sizun <jmDOTsizu... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
630bdd5c13f4ec241b016ee6636bfe70af9b1448 | 01822d2ae38a95edcd188a51c377bb07b0a0c57d | /Assignments/Sprint3/FindAllPaths.py | faf38a0af57c11891b1ec51c5c26b3865f784c23 | [
"MIT"
] | permissive | mark-morelos/CS_Notes | bc298137971295023e5e3caf964fe7d3f8cf1af9 | 339c47ae5d7e678b7ac98d6d78857d016c611e38 | refs/heads/main | 2023-03-10T11:56:52.691282 | 2021-03-02T15:09:31 | 2021-03-02T15:09:31 | 338,211,631 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | """
Understand
Note: For some reason, it's failing one of the tests. I
think it's because the test case didn't sort their output.
In that case, the test is wrong :)
Drawing graphs via text are a pain, so I'm just gonna use the example given
Plan
1. Translate the problem into graph terminology
- Each index in the lis... | [
"makoimorelos@gmail.com"
] | makoimorelos@gmail.com |
d99058ae8efde20b0b9a94917310bf9294bf3d79 | 3d4094d6eca69329d4c6ba08e0c8ce79eedeb6b6 | /starter/While.py | af86daef2ae3d6572815e944274601b1454dd277 | [] | no_license | agkozik/Python_Course | c9f3c8b68e60b452e57f43da7554c13daf386a0c | 4b095bbc86f33999efe95127528b3e1d8bfded9f | refs/heads/master | 2022-04-27T06:04:15.276472 | 2020-04-22T11:49:06 | 2020-04-22T11:49:06 | 255,082,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | # # ---------------------- while true ----------------------------
#
# message = ""
# while message != "exit":
# message = input("Type exit to exit: ")
#
# # ---------------------- while int true ----------------------------
# n = 1
# while n <= 3:
# print("n = ", n)
# n += 1
#
# # ---------------------- wh... | [
"agkozik@gmail.com"
] | agkozik@gmail.com |
6c7d9885d0519d18a161ee398e1f83753b821006 | 65a32b8a8a97c126843d2cfe79c43193ac2abc23 | /chapter9/local_var.py | 1816492d4b38b735cc5262f0aabbb32c1c380b9e | [] | no_license | zhuyuedlut/advanced_programming | 9af2d6144e247168e492ddfb9af5d4a5667227c4 | a6e0456dd0b216b96829b5c3cef11df706525867 | refs/heads/master | 2023-03-19T09:21:31.234000 | 2020-10-09T13:09:38 | 2020-10-09T13:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | a = 20
exec('b = a + 1')
print(f'b = {b}')
# def test():
# a = 20
# exec('b = a + 1')
# print(f'b = {b}')
#
# test()
def test():
a = 20
loc = locals()
exec('b = a + 1')
b = loc['b']
print(f't: b = {b}')
test()
def test_1():
x = 0
exec('x += 1')
print(f't1: x = {x}')
t... | [
"root@lyzdeMacBook.local"
] | root@lyzdeMacBook.local |
46bb827c374c723df2920b4765f45cafad5d8454 | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /demo/testPyQt/test3.py | 6c42882d89fc51c0eae08cdf2e7c23b542794f04 | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | '''
Created on Apr 22, 2014
@author: walter
'''
import sys
from PyQt4 import QtGui
class Example(QtGui.QMainWindow):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
exitAction = QtGui.QAction(QtGui.QIco... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
c9ca634b1cfd0a70676f197430bc0680ce1077d0 | 8928c4745515ffecfc581da36df47b0789fb463f | /Chapter_9/formsub.py | 51ea5e0fe04bad40167a6fc40016825b997f0e1d | [] | no_license | iluxonchik/webscraping-with-python-book | 72da36ba8fae016ccc20d44753ec4c46bc933dee | ffc5a1459778649d081c62812c8d3edbb2f120a9 | refs/heads/master | 2021-01-10T10:19:12.443341 | 2016-01-21T21:50:11 | 2016-01-21T21:50:11 | 48,058,040 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | import requests
params = {'firstname':'hello', 'lastname':'there'}
r = requests.post("http://pythonscraping.com/files/processing.php", data=params)
print(r.text)
files = {'uploadFile': open('1.png', 'rb')}
r = requests.post("http://pythonscraping.com/files/processing2.php", files=files)
print(r.text) | [
"iluxon4ik@hotmail.com"
] | iluxon4ik@hotmail.com |
e7df1ffbd062f8f616fff956e0482311a709c86a | e4d4149a717d08979953983fa78fea46df63d13d | /Week6/Day5/DailyChallenge.py | 68788690cf6a298238eff2f8a5648c48d64c3f7a | [] | no_license | fayblash/DI_Bootcamp | 72fd75497a2484d19c779775c49e4306e602d10f | a4e8f62e338df5d5671fd088afa575ea2e290837 | refs/heads/main | 2023-05-05T20:55:31.513558 | 2021-05-27T06:48:40 | 2021-05-27T06:48:40 | 354,818,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import sqlite3 as sl
from time import time
import requests
import json
connection=sl.connect("countries.db")
cursor=connection.cursor()
start=time()
for i in range(10,21):
data=requests.get("https://restcountries.eu/rest/v2/all")
country=data.json()
print (country[i]['name'])
query=f"INSERT INTO cou... | [
"fayblash@gmail.com"
] | fayblash@gmail.com |
277ca5faf223fee0254b99c950487e402e63cb75 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_untruth.py | f82b360189c64e1e50c3124e3fe683bea2162f45 | [
"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 | 354 | py |
#calss header
class _UNTRUTH():
def __init__(self,):
self.name = "UNTRUTH"
self.definitions = [u'a statement that is not true: ', u'the fact that something is not true: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], o... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
97698fdcf4861c65a25ec9893aa57e5b52a06063 | b6b2be9866fd16699ad5c30a21bbcb70755f1e57 | /Experiments/_Legacy/Chicago/PartitionByDocThenClusterUsingLsa.py | 6e174934f81ca58b1b992fbc3c3f4391ac23815f | [] | no_license | simonhughes22/PythonNlpResearch | 24a482c7036c568b063ec099176b393d45a0a86b | 2bc2914ce93fcef6dbd26f8097eec20b7d0e476d | refs/heads/master | 2022-12-08T17:39:18.332177 | 2019-10-26T12:48:33 | 2019-10-26T12:48:33 | 16,458,105 | 17 | 7 | null | 2022-12-07T23:38:17 | 2014-02-02T16:36:39 | Jupyter Notebook | UTF-8 | Python | false | false | 4,135 | py | import Clusterer
import ClustersToFile
import SentenceData
import ListHelper
import Lsa
import MatrixHelper
import TfIdf
import WordTokenizer
import logging
import PartitionByCode
import CosineSimilarity
import collections
def find_closest_document(txtMatrixByCode, row):
""" Takes a dictionary of cod... | [
"simon.hughes@dice.com"
] | simon.hughes@dice.com |
2408590522753e9cd86637c0677554589f285d76 | c9d4d4c78703d009da11999e4e59b6a168a454a2 | /examples/Learning Python The Hard Way/ex11_AskingQuestions.py | be33a059dc6c1cfcccb68bbc63af5f196c02ccc2 | [
"MIT"
] | permissive | AkiraKane/Python | 23df49d7f7ae0f375e0b4ccfe4e1b6a077b1a52b | 12e2dcb9a61e9ab0fc5706e4a902c48e6aeada30 | refs/heads/master | 2020-12-11T07:20:01.524438 | 2015-11-07T12:42:22 | 2015-11-07T12:42:22 | 47,440,128 | 1 | 0 | null | 2015-12-05T03:15:52 | 2015-12-05T03:15:51 | null | UTF-8 | Python | false | false | 335 | py | '''
Created on 2013-8-14
@author: Kelly Chan
Python Version: V3.3
Book: Learn Python The Hard Way
Ex11: Asking Questions
'''
print("How old are you?")
age = input()
print("How tall are you?")
height = input()
print("How much do you weigh?")
weight = input()
print("So, you're %r old, %r tall and %r heavy." % (age, h... | [
"kwailamchan@hotmail.com"
] | kwailamchan@hotmail.com |
238ec91f069f7201b85bb750838f5ebd9b18ecd9 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/pytest-labs/.venv/lib/python3.6/site-packages/facebook_business/adobjects/productdaeventsamplesbatch.py | 6155974b1405f7c8bc729960a751f6b815d8bc6d | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 2,489 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
4637ad8e57ec88e45fda29f4a08e4b0144d0f669 | f0e11aeb7b5bd96c828cf39728eb2fa523f320df | /snapflow/migrations/versions/7d5638b5d74d_initial_migration.py | 8b85094b11b08e55368d3320bb0b4bdb56eecc13 | [
"BSD-3-Clause"
] | permissive | sathya-reddy-m/snapflow | 7bc1fa7de7fd93b81e5b0538ba73ca68e9e109db | 9e9e73f0d5a3d6b92f528ef1e2840ad92582502e | refs/heads/master | 2023-05-01T05:14:08.479073 | 2021-05-21T00:14:56 | 2021-05-21T00:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,528 | py | """Initial migration
Revision ID: 7d5638b5d74d
Revises:
Create Date: 2021-05-17 20:55:42.613348
"""
import snapflow
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "7d5638b5d74d"
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### ... | [
"kenvanharen@gmail.com"
] | kenvanharen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.