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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33c4f63224fc7c43de4b5920f527180a100ed9c8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03712/s144694352.py | 7cb35c72c8fda9d98bf5dfd772936144ca8be536 | [] | 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 | 352 | py | #!/usr/bin/env python3
# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools
def main():
H, W = map(int, input().split())
print("#"*(W+2))
for _ in range(H):
print("#{}#".format(input()))
print("#"*(W+2))
def test():
import doctest
doctest.testmod()
if __name__ == '__... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
355d5d730e52abc11dde2517b53d52a39c7f29e6 | 576b680d1d3ba0f07837e7f28935b0a4632561ad | /pyrepr/repr_json.py | 0a9bb92ce96d1f2c57c17c3e119f1144ad27ba55 | [] | no_license | patarapolw/pyrepr-toml | 4b8639050b118896ef7a8cd99067864e9968fea8 | 187bc1cd2adf2e487712d2d629564f4d2c972dcb | refs/heads/master | 2020-04-02T02:10:32.258042 | 2018-10-20T10:45:16 | 2018-10-20T10:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | import json
from json.encoder import _make_iterencode
from .util import hyper_markdownify
class ReprJSONEncoder(json.JSONEncoder):
def iterencode(self, o, _one_shot=False):
if self.check_circular:
markers = {}
else:
markers = None
_iterencode = _make_iterencode(
... | [
"patarapolw@gmail.com"
] | patarapolw@gmail.com |
1006a1042d8562501d612446f32f554d87edcacb | 80217a305516de4c1921833b222f094f0148e9f9 | /backend/task_marker_21840/wsgi.py | 9f4c0dac7059e2f594e0ec93c50fe0ea283ef0a8 | [] | no_license | crowdbotics-apps/task-marker-21840 | ea9bcd56f7450a83ac6818c24d7294795deab092 | 8bcd4803dd4b0b56242f5bb92117230f1746f7e2 | refs/heads/master | 2023-01-02T08:14:51.362346 | 2020-10-22T19:26:21 | 2020-10-22T19:26:21 | 306,438,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for task_marker_21840 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
823ac15ec7ef31233f51a529dbf71638c8f76b59 | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /binarysearch/ugly_number.py | 731272b3b9501c721d2305ba2085830cacf9bc46 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 342 | py |
'''
Given an integer n, return whether its prime factors only include 2, 3 or 5.
'''
class Solution:
def solve(self, n):
num = n
if num == 0: return False
while num % 5 == 0: num /= 5
while num % 3 == 0: num /= 3
while num % 2 == 0: num /= 2
return num == 1
... | [
"noreply@github.com"
] | erjan.noreply@github.com |
f4d92f33eefb8ade936fbd2367669894919aa93a | a7361705b32e868557dd033aa99d74889c70808c | /braintels_Sockets/servidor_socket.py | cfe9e8e22c5621a4b6635c7baa010d788146892c | [] | no_license | jorgepdsML/PYTHON_NETWORKING | ce6c3e11018b4592a13eaabcc57de6af0a57d39f | 829a7c92634c7ba78a84dbd9fea22cfe8452b371 | refs/heads/master | 2020-12-23T10:15:18.709084 | 2020-02-08T01:12:52 | 2020-02-08T01:12:52 | 237,121,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import socket,pickle,time
#ESTABLECER LA IP DEL SERVIDOR (DE ESTE ORDENADOR)
HOST = '127.0.0.1'
PORT = 65432 # PUERTO
#instanciar un objeto de la clase socket del modulo socket
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((HOST,PORT))
#escuchar conexiones del cliente
s.listen()
#aceptar la conexi... | [
"noreply@github.com"
] | jorgepdsML.noreply@github.com |
2ef6777840283a29dde9cda0fbea7f05a7bc5f59 | 4ee504feeb5388ed70f4ffef2caf851eb5edd299 | /pinax/wiki/views.py | 9c75aa7f693e06ddd39e31db3c3c7a5247217b8f | [
"MIT"
] | permissive | adamfeldman/pinax-wiki | cbf2e1d9cdce853a0b959f037e35c6b923feba31 | 06c65bf00e9cf69493ca2d97cd45d167756f054d | refs/heads/master | 2021-01-12T13:51:16.242419 | 2016-03-15T12:54:33 | 2016-03-15T12:54:33 | 69,196,399 | 0 | 0 | null | 2016-09-25T23:21:40 | 2016-09-25T23:21:40 | null | UTF-8 | Python | false | false | 3,556 | py | import json
from django.http import HttpResponse, Http404, HttpResponseForbidden
from django.shortcuts import redirect, render, get_object_or_404
from django.views import static
from django.views.decorators.http import require_POST
try:
from account.decorators import login_required
except ImportError:
from dj... | [
"paltman@gmail.com"
] | paltman@gmail.com |
1eab08e124fb6251930f469f3fffe440a5b49406 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_internal/challenge_auth_policy.py | 3239032e9162ffbc954449b7ec15787c522cae2c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,654 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""Policy implementing Key Vault's challenge authentication protocol.
Normally the protocol is only used for the client's first service request, upon which:
1. The chal... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
1fd76c565aad097015fd0f3335e3d6a2cce35c2b | 8bb4a472344fda15985ac322d14e8f4ad79c7553 | /Python3-Core/src/test/prompto/translate/oeo/TestBuiltins.py | 6655a6b6fa59d13d6d11fdb80eb356d342ddc1b4 | [] | no_license | prompto/prompto-python3 | c6b356f5af30c6826730ba7f2ad869f341983a2d | 64bd3d97d4702cc912097d41d961f7ab3fd82bee | refs/heads/master | 2022-12-24T12:33:16.251468 | 2022-11-27T17:37:56 | 2022-11-27T17:37:56 | 32,623,633 | 4 | 0 | null | 2019-05-04T11:06:05 | 2015-03-21T07:17:25 | Python | UTF-8 | Python | false | false | 4,521 | py | from prompto.parser.o.BaseOParserTest import BaseOParserTest
class TestBuiltins(BaseOParserTest):
def setUp(self):
super(type(self), self).setUp()
def testDateDayOfMonth(self):
self.compareResourceOEO("builtins/dateDayOfMonth.poc")
def testDateDayOfYear(self):
self.compar... | [
"eric.vergnaud@wanadoo.fr"
] | eric.vergnaud@wanadoo.fr |
b976280add3c7f8d108a2e2b62579a8e3baea2df | 38b8bceafb4d80afc7c77196eb9ee99694191bcf | /wxpython/grid4.py | 75c71ea65b3375dda4e507cea2e9ead47a246b12 | [] | no_license | tangc1986/PythonStudy | f6c5b384874e82fbf0b5f51cfb7a7a89a48ec0ff | 1ed1956758e971647426e7096ac2e8cbcca585b4 | refs/heads/master | 2021-01-23T20:39:23.930754 | 2017-10-08T07:40:32 | 2017-10-08T07:42:38 | 42,122,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # -*- coding: UTF-8 -*-
__author__ = 'tangchao'
import wx
import wx.grid
class TestFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="Grid Sizes",
size=(600, 300))
grid = wx.grid.Grid(self)
grid.CreateGrid(5, 5)
for row in range(5)... | [
"tangc1986@gmail.com"
] | tangc1986@gmail.com |
ab5a264ea0ecf8ebb13f29fe5e851642a4423712 | f4fea67c838444a53492a9193c9f42dcf6ae6bb6 | /AsFarAsFromLand.py | 13f5337ce3a385360b651f26de8599d3aac5e30b | [] | no_license | sainihimanshu1999/Graph-Solutions | 7641919173c1f878bb807bf5709250f30b9d7804 | 1889ebf7c5b04a945b23efbd14f80c191d4fbd4a | refs/heads/main | 2023-04-26T15:15:26.819831 | 2021-05-30T05:17:27 | 2021-05-30T05:17:27 | 370,977,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | '''
Matrix is given and we have to find the maximum distance between land and water
'''
from typing import Deque
def maximumDist(self,grid):
m,n = len(grid),len(grid[0])
q = Deque([(i,j) for i in range(m) for j in range(n)])
if len(q) == m*n and len(q) == 0:
return -1
level = 0
while q... | [
"sainihimanshu.1999@gmail.com"
] | sainihimanshu.1999@gmail.com |
ff45cfdca02b8b29eaeeb906efdef59558db6bb6 | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /python-2/primer/11/Gui.py | e2e2e5d3f1adbfc9a4720b17ec9f89ce7fa8d8dc | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py |
from functools import partial
import tkinter
root=tkinter.Tk()
MyButton = partial(tkinter.Button,root,
fg="white",bg="blue")
b1= MyButton(text="button 1")
b2=MyButton(text="button 2")
#qb=MyButton(text="QUIT",bg="red",
# command=root.quit)
b1.pack()
b2.pack()
#qb.pack(file=Tkinter.X,exp... | [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
f46aa1e56e52a41483bda536769f43fee0100aa9 | d144df1ba39aef6d740bfbb438c8f7aaff195cc9 | /distance.py | 62d1b600a0f3e44ddea373755e1a45939964934a | [] | no_license | weizhixiaoyi/text-similarity | 42018aa1a4f21f213eed7e7baa8bc2390c2db945 | aa971a1810f95e4f12a88eefec12bc7269b06cb6 | refs/heads/master | 2021-10-16T16:12:00.876963 | 2019-02-12T03:36:37 | 2019-02-12T03:36:37 | 170,244,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
def edit_distance(str1, str2):
"""edit distance.
Parameters
----------
str1: string1
str2: string2
Returns
-------
distance
"""
m, n = len(str1), len(str2)
if m == 0: return n
if n == 0: re... | [
"zhenhai.gl@gmail.com"
] | zhenhai.gl@gmail.com |
0d4679b918a22de8da38164caf9e8789811ac752 | 3279cea18d23dad027fa5b64c4170926df98f2f4 | /bakerydemo/settings/base.py | af39a915e588b4aadb5b9fe0d5c6651caeb650ee | [
"LicenseRef-scancode-public-domain"
] | permissive | torchbox/dit_directory_cms_poc | 1ed53649f59640eb2d4d9372397a1e8a71f2e44e | 87c54dd35364c66c6f70481148ee2386c784f410 | refs/heads/master | 2020-04-27T07:36:48.299201 | 2019-04-17T16:43:08 | 2019-04-17T16:43:08 | 174,141,444 | 2 | 0 | null | 2019-03-18T12:37:56 | 2019-03-06T12:31:35 | Python | UTF-8 | Python | false | false | 4,639 | py | """
Django settings for temp project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"thibaudcolas@gmail.com"
] | thibaudcolas@gmail.com |
947f76df7c719a493f1c1c0a49e64fc6938efde5 | 176899f934288b6e742146282974cf1de4bf2441 | /scripts/rename.py | 97e74f41310c0d66471402ae44d11d288b7bfcec | [
"Apache-2.0"
] | permissive | PatrickEGorman/scrapi | 565e9c7bf2ff5e1fddbab8f691a287be9e5165d0 | 6bb5a4952a34c7507681e206457c78730c28c2e8 | refs/heads/develop | 2020-12-06T20:36:58.590067 | 2015-05-29T17:02:10 | 2015-05-29T17:02:10 | 36,506,821 | 1 | 0 | null | 2015-05-29T13:45:22 | 2015-05-29T13:45:21 | null | UTF-8 | Python | false | false | 1,630 | py | import logging
from scripts.util import documents
from scrapi import settings
from scrapi.linter import RawDocument
from scrapi.processing.elasticsearch import es
from scrapi.tasks import normalize, process_normalized, process_raw
logger = logging.getLogger(__name__)
def rename(source, target, dry=True):
asser... | [
"fabian@fabianism.us"
] | fabian@fabianism.us |
a32ecc9f82723eaf976ef6d4146540243a1679b8 | cda0bf30efa432eaa22278befd0b145801b53027 | /tests/unit/core/parse/test_rollseries.py | a2a9d336206d9413b3f4f879df2cf2e4d8d82e18 | [] | no_license | pastly/craps-dice-control | e863aaa1bee104ddd403ce45a7409a48fc7e9c65 | f6f69c9220dffd5f7e2ef07c929b15b4a73bdd13 | refs/heads/master | 2020-04-26T15:44:18.346970 | 2019-10-24T01:00:04 | 2019-10-24T01:00:04 | 173,655,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | import io
import json
import pytest
from cdc.core.parse import rollseries as rs
from cdc.lib.rollevent import RollEvent
def assert_unreached(msg=None):
if msg:
assert False, msg
else:
assert False, "Unreachable code path was reached"
def event_gen_from_str(s, starting_point=None):
fd = ... | [
"sirmatt@ksu.edu"
] | sirmatt@ksu.edu |
b26068fd15185f4dda1e070c55faa0ecf66f918b | f662bd04d2f29ef25bbfd7e768b1e57dfbba4d9f | /apps/plmejoras/migrations/0009_auto_20190319_1051.py | 1d2aae719f33271b26db21ea1dd3a842c8776db7 | [] | no_license | DARKDEYMON/sisevadoc | f59b193688f7eca7c140a03ee414f5d20ada78c7 | 9fc0943200986824a2aab2134fdba5c9f3315798 | refs/heads/master | 2020-03-19T03:27:07.907125 | 2019-12-11T13:30:43 | 2019-12-11T13:30:43 | 135,729,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # Generated by Django 2.0.8 on 2019-03-19 14:51
import apps.plmejoras.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plmejoras', '0008_auto_20190319_1038'),
]
operations = [
migrations.AlterField(
model_name='plan_me... | [
"darkdeymon04@gmail.com"
] | darkdeymon04@gmail.com |
9dff2c0207a76825d306d6ccde94cbdddb6c3046 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03110/s120799390.py | a85ae752db2895890a6eabb42cd65e8035579610 | [] | 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 | 177 | py | C = 380000.0
ans = 0.0
n = int(input())
for i in range(n):
x, u = input().split()
if u == 'JPY':
ans += int(x)
else:
ans += float(x) * C
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b13da1978e5f3532f9ba976ca7ef9fb82ee3fbd7 | 0f07107b016d2aee64788966b9f0d322ac46b998 | /moya/contextenum.py | 0f14ecc4d22ab2904fcde4c81bb3667ff64ab8a2 | [
"MIT"
] | permissive | fkztw/moya | 35f48cdc5d5723b04c671947099b0b1af1c7cc7a | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | refs/heads/master | 2023-08-09T09:20:21.968908 | 2019-02-03T18:18:54 | 2019-02-03T18:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | from __future__ import unicode_literals
from __future__ import print_function
from .compat import implements_to_string, string_types, text_type
@implements_to_string
class ContextEnumValue(object):
"""A single value in an enumeration"""
def __init__(self, enum, enum_id, name, description, group=None):
... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
88aace3339a55db26e14395d480d4661d88f9640 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/containerregistry/azure-containerregistry/tests/asynctestcase.py | 58cee32899c2a5290b294f38c920311a56ffe5ef | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 1,649 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from azure.containerregistry.aio import (
# ContainerRepository,
ContainerRegistryClient,
)
from azure.core.credentials import AccessToken
from a... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
52f14de23e662ba3cdfb7f3070411e54602e9706 | defbefa93deb77311ff5f589372a5fafef05d7a3 | /app/simulations/run_single_sim.py | 4729aa545ff64c7580e72ba514a6c5a6ad5e2701 | [] | no_license | mccarvik/poker | 3eeb75cedee2962e33006853c76a852b83cb2ffa | 766be6582cb3b1743995555aa8239c1980178a46 | refs/heads/master | 2021-01-25T04:15:33.306903 | 2017-10-24T02:22:56 | 2017-10-24T02:22:56 | 93,417,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import sys, json, pdb
sys.path.append("/home/ubuntu/workspace/poker")
from app.deck_utils.card import Card
from app.deck_utils.deck import Deck
from app.deck_utils.hand_rules import HandRules
from app.deck_utils.deck_funcs import getCombinations
from app.deck_utils.stats import Single_Stats
def run_simulation(hand, bo... | [
"mccarviks@gmail.com"
] | mccarviks@gmail.com |
d7c6a4d01b1fff2af18d2e4f3c5c3004f8f30c38 | d067ba62a1956e1abb571368b02e9158c04966b6 | /xmnlp/sentiment/sentiment.py | 3f3a2b8ce576dc8f09fa27eb16e03e5cb09b1969 | [
"MIT"
] | permissive | wheniseeyou/xmnlp | 29c5ea38ffcb91fa99821788f90f1afc8d8c30bd | ad2d3c0b8875cf415c3adffc10926605da7a458b | refs/heads/master | 2020-04-12T15:17:40.957168 | 2018-09-17T08:19:09 | 2018-09-17T08:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,627 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
# -------------------------------------------#
# author: sean lee #
# email: xmlee97@gmail.com #
#--------------------------------------------#
"""MIT License
Copyright (... | [
"mitree@sina.com"
] | mitree@sina.com |
061cf308d22ba1f4f327b5a4a9ae3122f55e8d55 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04044/s186322243.py | 1a114e7a5f53247105fcd6cba05f286158a77b09 | [] | 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 | 187 | py | def compare_strings(s1, s2):
if s1 < s2:
return True
return False
n, l = map(int, input().split())
strings = [input() for i in range(n)]
print(''.join(sorted(strings)))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4135f9e1b309b08a79e2a7c5fa6da2848b3d26d1 | 18b3ad3b0e1f7f10969738251e1201d01dfbc6bf | /backup_files/pythonsessions/insert_cmd_data_db.py | 3e87aafa8f2be8768caed764e5532208e37bea80 | [] | no_license | sahthi/backup2 | 11d509b980e731c73733b1399a8143780779e75a | 16bed38f0867fd7c766c2a008c8d43b0660f0cb0 | refs/heads/master | 2020-03-21T12:39:56.890129 | 2018-07-09T08:12:46 | 2018-07-09T08:12:46 | 138,565,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import MySQLdb, subprocess, re, sys, time
def get_date():
return time.ctime()
def get_ut_fa():
op = subprocess.Popen(['uptime'], stdout=subprocess.PIPE)
#print op.communicate()
u_out, u_err = op.communicate()
if u_err:
print "Error in command execution"
sys.exit(100)
#17:48:12 up 31 min, 1 user, load ave... | [
"siddamsetty.sahithi@votarytech.com"
] | siddamsetty.sahithi@votarytech.com |
3256bc9d3399f7c5f9d6ac83a1eed907f6c9ba53 | fc0683e4b9b92b02f2bac73b5a1f9e9e6dac28bf | /Aula22 – Módulos e Pacotes/ex110 – Reduzindo ainda mais seu programa/teste.py | 618b116202551588fab65daa0b7e5c834a21a5a4 | [] | no_license | igorkoury/cev-phyton-exercicios-parte-2 | d31ab83f6f8fbe07ac31974e1a01c338280e6c6c | 1471d8d0c9a98194c3f36e562b68731e95b22882 | refs/heads/main | 2023-08-06T08:46:38.970229 | 2021-10-07T21:28:03 | 2021-10-07T21:28:03 | 414,762,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | '''Exercício Python 110: Adicione o módulo moeda.py criado nos
desafios anteriores, uma função chamada resumo(), que mostre
na tela algumas informações geradas pelas funções que já temos
no módulo criado até aqui.'''
import moeda
p = float(input('Digite o preço do produto: '))
moeda.resumo(p, 15, 20)
| [
"noreply@github.com"
] | igorkoury.noreply@github.com |
fa690dcd18e07099417f6e7ae4a66721e71f518e | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/giavuvn.py | 7b3674fc44e8c1d0fd830d4f106dfeb8301a5bfa | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//h1",
'price' : "//div[@id='dpro']/div[@class='pdl']/b",
'category' : "//div[@class='dlink']/a",
'description' : "//div[@id='... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
37d544cc17f03c6d834b31fecd5185366d176571 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/vae/fixed3/sawyer_pusher/vae_dense_wider2.py | 337be50432ea280d5a02a5728475f17aac45b9f0 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | from rlkit.envs.mujoco.sawyer_push_and_reach_env import \
SawyerPushAndReachXYEnv, SawyerPushAndReachXYEasyEnv
from rlkit.envs.mujoco.sawyer_push_env import SawyerPushXYEnv
from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv
from rlkit.envs.multitask.pusher2d import FullPusher2DEnv
from rlkit.images.c... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
84750e0763448e6efd803ff5e0ca28ddb74b0283 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03156/s145919432.py | a3259a2a3c984937831664e6a8145ee9347c7bb2 | [] | 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 | 239 | py | n=int(input())
a,b=map(int,input().split())
p = [int(x) for x in input().split()]
A=0
B=0
C=0
for i in range(n):
if p[i] <= a:
A += 1
elif p[i] > a and b >= p[i]:
B += 1
else:
C += 1
print(min(A, B, C)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
06f9d8d71242fcd67622b93693247ed498383e02 | 4d107a97633559963f6510767bb9297febbcbb02 | /applications/MeshingApplication/tests/SmallTests.py | b2e4d1dcd414f04b10b8fc8807739ca9b65b027c | [] | no_license | asroy/Kratos | 45dc4a9ad77a2b203ab2e0c6c5fe030633433181 | e89d6808670d4d645319c7678da548b37825abe3 | refs/heads/master | 2021-03-24T13:28:43.618915 | 2017-12-19T15:38:20 | 2017-12-19T15:38:20 | 102,793,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | import os
# Import Kratos
from KratosMultiphysics import *
# Import KratosUnittest
import KratosMultiphysics.KratosUnittest as KratosUnittest
import Kratos_Execute_Meshing_Test as Execute_Test
# This utiltiy will control the execution scope in case we need to acces files or we depend
# on specific relative locations... | [
"vmataix@cimne.upc.edu"
] | vmataix@cimne.upc.edu |
6a5f28ab4b6e958f2922790f0f74673bed384643 | 90c5c9df3d0639e1f8420b592a77df752ab79746 | /tests/migrations/0003_auto_20191220_0911.py | 52222805c9f0df3dc9d219975835dd1fb27cd2e2 | [
"BSD-3-Clause"
] | permissive | intellineers/django-bridger | 4a16e5e63c697671740d965c3fcab02a89b8b27f | ed097984a99df7da40a4d01bd00c56e3c6083056 | refs/heads/master | 2023-08-14T05:41:38.003086 | 2021-09-06T16:51:56 | 2021-09-06T16:51:56 | 221,709,929 | 2 | 1 | BSD-3-Clause | 2023-07-22T21:39:45 | 2019-11-14T13:57:09 | Python | UTF-8 | Python | false | false | 543 | py | # Generated by Django 2.2.9 on 2019-12-20 09:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("tests", "0002_relatedmodeltest"),
]
operations = [
migrations.AddField(
model_name="modeltest", name="float_field", field=models... | [
"c.wittlinger@intellineers.com"
] | c.wittlinger@intellineers.com |
9847a45cacd0a7625f93aa8595f9afa5b8a5c16d | cc622e69e45db2e3e3172fcf8598ba7d2b64d5d8 | /taxcalc/_version.py | 56b977ec9aec1b043dce330de18274a2afde9280 | [
"MIT"
] | permissive | SherwinLott/Tax-Calculator | 533c7e381ab5e56bccc03821fe3a4a30a6e6f753 | b5276854031225c004eb795ad5b85f76fe94172d | refs/heads/master | 2020-04-01T23:23:16.691655 | 2015-04-17T14:43:05 | 2015-04-17T14:43:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... | [
"tj.alumbaugh@continuum.io"
] | tj.alumbaugh@continuum.io |
370daefbe01246a1903960925230387d185d47cd | 47a6f4e5f92413fda00ea31a2ac3894749dd76d5 | /cvx/op/postprocessing.py | aff84211b0f16e12cfd22d4370114c5fd9c5a2fb | [] | no_license | jtuyls/cvx | 3e569e73cc3a77226014c2921c2ad752a340931e | ede40c895a48103312aabdecc4ffbc8f97c711c8 | refs/heads/master | 2020-08-05T05:51:07.297147 | 2020-03-17T18:17:19 | 2020-03-17T18:17:19 | 212,419,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | """
CV postprocessing operations
Authors: Jorn Tuyls
"""
import cv2
import numpy as np
from .tools import softmax
def central_crop(height, width, channels):
# type: (str/int, str/int, str/int) -> Function
"""
Return a wrapper function that takes in an image and centrally crops
an image of provided ... | [
"jornt@xilinx.com"
] | jornt@xilinx.com |
22774504cce4883aefe3fdae4ef4056acda15052 | b1d7cf329110f02b8175303ebd09475136e84b0e | /enderecos/migrations/0001_initial.py | 10bdeace7f9208ad618fce5bb3bc078303660d8a | [] | no_license | Aleleonel/projeto_rest | 9df70817f9955399afb75b02121aa9500c9492d1 | a72b4e3b17c22efdbd8001f843c21aa24e9e9ae6 | refs/heads/master | 2022-05-24T10:56:10.818898 | 2020-04-30T15:49:33 | 2020-04-30T15:49:33 | 260,252,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Generated by Django 3.0.5 on 2020-04-30 14:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Endereco',
fields=[
('id', models.AutoField... | [
"aleleonel@gmail.com"
] | aleleonel@gmail.com |
1bc4f38343078af5d25b0a62599c3eece7efd669 | c08b96db4551a3cedbc091b9b19f668e8e58e53e | /tests/test_tasks_publishnb.py | 58e30fb2afe980157a20f04a8cc14c4c0ab3d33d | [
"MIT"
] | permissive | lsst-sqre/sqre-uservice-nbreport | efa1163cc58f7388742d0acfbf14a28150a2da59 | e5911ab1a1f2dfae46cdae0337138cbac786872b | refs/heads/master | 2020-03-23T23:12:05.391843 | 2018-08-21T22:20:11 | 2018-08-21T22:20:11 | 142,221,500 | 1 | 0 | null | 2018-08-21T22:27:53 | 2018-07-24T23:07:15 | Python | UTF-8 | Python | false | false | 1,089 | py | """Tests for the `uservice_nbreport.tasks.publishnb` module.
"""
import responses
from uservice_nbreport.tasks.publishnb import get_edition_url
@responses.activate
def test_get_edition_url():
responses.add(
responses.GET,
'https://keeper.lsst.codes/products/testr-000/editions/',
status=2... | [
"jsick@lsst.org"
] | jsick@lsst.org |
ef3af1aa439186701c7df404f7ab023da5a62fae | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/c8249785-8c09-49ae-a506-d5303e3f9b3c__sort_words.py | 995c6f3081573379333cfb90301cf89e7624a03d | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # import re
# def sort_words(s):
# results = re.findall("[\w;]+", s)
# return "\n".join(map(str, sorted(results)))
# print sort_words(" one, ,two three,4,")
# ############## This works as well
def sort_words(s):
for i in sorted("\n".join(s.split(',')).split()):
print i
# print c... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
63d28708c0e3a847179936dab12755af642dbfbe | 1f71d796efcddf51a46cf74f59584f76d56c664e | /venv/Scripts/easy_install-3.7-script.py | e6b080fdbdd6095b4de6bd52dc13c8cc3e704ce3 | [] | no_license | vunited/flask_studentManagement | 12021c7811af2cf95f04fcf635dd62bac0a5b5fa | 9ae15d0e9fd6d4b9111d4f3b3b90d52b4db8ab7a | refs/heads/master | 2020-11-29T11:26:47.109519 | 2019-12-27T14:03:19 | 2019-12-27T14:03:19 | 230,102,430 | 2 | 0 | null | 2019-12-27T14:07:08 | 2019-12-25T12:51:04 | Python | UTF-8 | Python | false | false | 474 | py | #!C:\Users\Administrator\Desktop\flask_studentManagement\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub... | [
"you@example.com"
] | you@example.com |
9c7f3644b9c1ba9169318bd1f02e1f2aa12186d7 | ab8a34e5b821dde7b09abe37c838de046846484e | /twilio/sample-code-master/preview/sync/document_permission/delete-default/delete-default.6.x.py | dbe85db59955ddeaee70650345a046325e275ae2 | [] | no_license | sekharfly/twilio | 492b599fff62618437c87e05a6c201d6de94527a | a2847e4c79f9fbf5c53f25c8224deb11048fe94b | refs/heads/master | 2020-03-29T08:39:00.079997 | 2018-09-21T07:20:24 | 2018-09-21T07:20:24 | 149,721,431 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
client.preview.sync.service... | [
"sekharfly@gmail.com"
] | sekharfly@gmail.com |
79dc80302a4a44c8de34cbaed417dd4234182c32 | 0115a30d4d26932dfde5752b8533d886f182ebfa | /research/plot_data_heatmap.py | 477258764852cf477503227bf68d23351b27e03e | [] | no_license | mattbellis/Siena_College_Physics_2012_2013_Cosmology | 4d8c8282cc875a4b89fe470db7b0d77122262451 | fd05a64e0280cf3b1e7bd13f23eaee0bbe11c132 | refs/heads/master | 2020-04-06T06:38:48.367779 | 2013-10-02T05:53:31 | 2013-10-02T05:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | ################################################################################
# This is a very fast way of reading in a text file, when
# you know how the data is formatted, e.g. how many columns
# there are.
#
# Depending on the size of the file, this still may take some time (~5-20 sec),
# but is still faster tha... | [
"matthew.bellis@gmail.com"
] | matthew.bellis@gmail.com |
f0d5850e364accfc24295ae3d9d98a0046bde1b2 | d3ce58c4576431df14de0990f45cfd574f0aa45f | /.history/riskCalculator/forms_20201020003540.py | 1ff165ad8f4a597786110d5dd3dd387a85489954 | [] | no_license | rahulsolankib/portfolio | fe93f0e6b0b28990f0b9fad84dbf7c3aa07243c4 | 281ed429e2590376aee4649b2ea7b3e8facaf6f1 | refs/heads/master | 2023-01-02T06:55:21.319094 | 2020-10-26T08:55:22 | 2020-10-26T08:55:22 | 305,586,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | from django import forms
from .models import Que,RiskModel
class QForm(forms.Form):
age_group=(
(4,'Less than 25 years')
,(3,'25-35 years')
,(2,'36-40 years')
,(1,'51 above')
)
age_group=(
(3,'more than 5 years')
,(2,'2-5 years')
... | [
"rahulsolankib@gmail.com"
] | rahulsolankib@gmail.com |
673a4ecf7c8354ffe8868fcaabe971c1ab0b0bed | 36c5770217c104bea5cc1e5e43a9faa803daccec | /2021/Day_10/test_day10.py | 509a257a78a2eee6ec1a3644be31a90002e9419e | [] | no_license | sco1/adventofcode | 3a2ac0905c04e5a42d409d27e71dc7c5b3cf33a4 | cb029bb825f35944f505f8c88346bd2504695821 | refs/heads/main | 2023-04-30T10:25:02.770042 | 2023-04-17T01:07:46 | 2023-04-17T18:11:35 | 160,292,002 | 0 | 1 | null | 2023-04-06T13:17:54 | 2018-12-04T03:37:54 | Python | UTF-8 | Python | false | false | 704 | py | from textwrap import dedent
from .aoc_2021_day10 import parse_subsystem_code, score_autocomplete
SAMPLE_INPUT = dedent(
"""\
[({(<(())[]>[[{[]{<()<>>
[(()[<>])]({[<{<<[]>>(
{([(<{}[<>[]}>{[]{[(<()>
(((({<>}<{<{<>}{[]{[]{}
[[<[([]))<([[{}[[()]]]
[{[{({}]{}}([{[{{{}}([]
{<[[]]>}<{[{[{[]{... | [
"sco1.git@gmail.com"
] | sco1.git@gmail.com |
afac01645fddae62858ab76b0947a5a0723f02f3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02675/s941998787.py | 41727de13518ee3d758d33916cfee0252c8a5388 | [] | 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 | 282 | py | N= int(input())
N1=N%10
if N1==2:
print("hon")
elif N1==4:
print("hon")
elif N1==5:
print("hon")
elif N1==7:
print("hon")
elif N1==9:
print("hon")
elif N1==0:
print("pon")
elif N1==1:
print("pon")
elif N1==6:
print("pon")
elif N1==8:
print("pon")
else:
print("bon")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
45dfdc4a46f7d22d0bcaa32665e633280c4e5cd3 | 18eee1dc9d6b3e97aa1bd99addb5401bad2a8647 | /apps/goods/filters.py | dde361f4a48c97e84ac6ef82523c0a202e91b7d6 | [
"Apache-2.0"
] | permissive | xxcfun/mxshop-api | 1a2b1e4c7e4ae86b47e27c16f5dde401a0ff4af0 | 1472ad0d959439ea80c1f8d8bfd3629c15d3017d | refs/heads/master | 2023-08-18T19:34:47.941932 | 2021-09-14T10:57:26 | 2021-09-14T10:57:26 | 380,106,131 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | import django_filters
from goods.models import Goods
from django.db.models import Q
class GoodsFilter(django_filters.rest_framework.FilterSet):
""" 商品过滤的类 """
# 参数解读:name是要过滤的字段,lookup是执行的行为
pricemin = django_filters.NumberFilter(field_name='shop_price', lookup_expr='gte')
pricemax = django... | [
"55070348+hhdMrLion@users.noreply.github.com"
] | 55070348+hhdMrLion@users.noreply.github.com |
e250315934d3aab16f7dc6c05d0fe65f7ab19055 | 3670f2ca6f5609e14cce8c31cb1348052d0b6358 | /xacro/rqt_runtime_monitor/setup.py | 030f81f149fd6d14d091aef5c2627c152acf4f95 | [] | no_license | jincheng-ai/ros-melodic-python3-opencv4 | b0f4d3860ab7ae3d683ade8aa03e74341eff7fcf | 47c74188560c2274b8304647722d0c9763299a4b | refs/heads/main | 2023-05-28T17:37:34.345164 | 2021-06-17T09:59:25 | 2021-06-17T09:59:25 | 377,856,153 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=['rqt_runtime_monitor'],
package_dir={'': 'src'}
)
setup(**d)
| [
"shuyuanhao@cetiti.com"
] | shuyuanhao@cetiti.com |
0952c45060b73fc80ede7f00cc3160109fa1c450 | 073c2fd73875ce4e7d061623b8403f8d77c45d92 | /cohesity_management_sdk/models/restore_app_object.py | 9fdd52cdbb80907188731b0c0d483c183d9e339a | [
"Apache-2.0"
] | permissive | naveena-maplelabs/management-sdk-python | b11441b2edccc5a1262785bd559ad4b3ea984c3b | 06ce4119d955dc08cdbc5109c935afcfcd9d65ab | refs/heads/master | 2021-05-20T10:52:12.776816 | 2020-03-10T03:28:08 | 2020-03-10T03:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
import cohesity_management_sdk.models.entity_proto
import cohesity_management_sdk.models.restore_app_object_params
class RestoreAppObject(object):
"""Implementation of the 'RestoreAppObject' model.
Message that captures information about an application ... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
aa2759ad7133838c170a215aae51575e1f6c5d36 | 603d37a05bada0fae1d468cc36d80d6b9d10ac09 | /randlov1998/balance_lspi.py | a10bc0a144ac92a2ccb1acd8ac405fa24c51b22f | [
"MIT"
] | permissive | eejd/agent-bicycle | 8b8b5162177e21f27889ca0b89348000c1f724d8 | 1ecc3fcad8504385e9e85ccbc539464cb4e6c4e6 | refs/heads/master | 2020-12-31T06:23:01.487407 | 2013-12-11T04:48:16 | 2013-12-11T04:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | from pybrain.rl.agents.linearfa import LinearFA_Agent
from pybrain.rl.learners.valuebased.linearfa import LSPI
from pybrain.rl.experiments import EpisodicExperiment
from environment import Environment
from tasks import LSPIBalanceTask
from training import LinearFATraining
task = LSPIBalanceTask()
learner = LSPI(task.... | [
"cld72@cornell.edu"
] | cld72@cornell.edu |
7e48a295782fb5d9b146dadab137c5711928f165 | 76adbcc676882343e166485f42c4e8fc38b851f8 | /constants/ad.py | defc860fdf9ebbb5d315cfee86c06adb7a30e0bf | [
"MIT"
] | permissive | adWharf/core | 5856b123fccabfc812707a605270015ed0750304 | f7e04db8b9635f0adf67d9f7488ae64f291a564c | refs/heads/master | 2020-03-18T05:35:01.017239 | 2018-06-07T03:52:29 | 2018-06-07T03:52:29 | 134,350,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: william
@contact: 1342247033@qq.com
@site: http://www.xiaolewei.com
@file: ad_status.py
@time: 12/04/2018 17:10
"""
from enum import Enum
ADSTATUS_UNKNOW = -1 # 未知
ADSTATUS_NORMAL = 0 # 正常
ADSTATUS_PENDING = 1 # 待审核
ADSTATUS_DENIED = 2 # 审核不通过 ... | [
"1342247033@qq.com"
] | 1342247033@qq.com |
c046458b9836688b0409b199f115260b9bf29216 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/1559.py | daf42e84e31ecc0e6ae24ab62ef2ed6872425d11 | [] | 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 | 1,439 | py | #f = open('B-small-attempt0.in')
f = open('B-large.in')
#f = open('test.in')
count = int(f.readline())
output = ''
def check():
global matrix,rowCount,columnCount
currentRow = 0
currentMin = 100
for i in range(0,rowCount):
tempMin = min(matrix[i])
if tempMin < currentMin:
cu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
042656e281ad8a91f55e1a538bda15e8a457df7e | e0b6f5bd451aa8af3273fbc948799637681342e1 | /scripts/wm_representation/functions/encoding_leave_one_out.py | 255b51c1b420fca68791c82c9ac918ab9f5aeeab | [] | no_license | davidbestue/encoding | 6b304f6e7429f94f97bd562c7544d1fdccf7bdc1 | c27319aa3bb652b3bfc6b7340044c0fda057bc62 | refs/heads/master | 2022-05-05T23:41:42.419252 | 2022-04-27T08:34:52 | 2022-04-27T08:34:52 | 144,248,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py |
from model_functions import *
from fake_data_generator import *
from Weights_matrixs import *
from Representation import *
from process_encoding import *
from process_wm import *
from data_to_use import *
from bootstrap_functions import *
from leave_one_out import *
from joblib import Parallel, delayed
import multipr... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
37747e30a88b90ba50ba53fe7451a8b52b8155e2 | 236402efa32923fefc9f3924ba4155142e8052fe | /2017/_10_knot_hash_test.py | c48df44d9d3edca3a18e7a40edb3223d50d2b400 | [
"MIT"
] | permissive | pchudzik/adventofcode | 7c32126948ea57cdef3858ae3eb63cafdd67abb0 | 72304880c6b080d6c177d11fc9b9eb7b58e876b7 | refs/heads/master | 2022-05-08T00:20:58.586672 | 2022-04-29T19:30:34 | 2022-04-29T19:30:34 | 164,089,632 | 0 | 0 | MIT | 2022-04-22T14:29:37 | 2019-01-04T09:51:33 | Python | UTF-8 | Python | false | false | 800 | py | import pytest
from _10_knot_hash import single_round, knot_hash
@pytest.mark.parametrize(
"puzzle, positions, result",
[
([0, 1, 2, 3, 4], [3], [2, 1, 0, 3, 4]),
([0, 1, 2, 3, 4], [3, 4], [4, 3, 0, 1, 2]),
([0, 1, 2, 3, 4], [3, 4, 1], [4, 3, 0, 1, 2]),
([0, 1, 2, 3, 4], [3, 4,... | [
"pawel.chudzik@gmail.com"
] | pawel.chudzik@gmail.com |
70b65b3099824795baa28a830cdabe6a194a359a | aeb4759e515adc4493f8d062011814c9fc749ad8 | /src/desktop/Level/Rating/rating.py | 7a4e53d7c1140920469deadf1d6f4d9b16af9c67 | [] | no_license | cloew/PyMine | 3b67f54168ddfe8a2b0262f929e6688e4797486a | eac57ca9c585ec86befff126d50c9df3614b104f | refs/heads/master | 2021-01-16T18:56:55.431131 | 2014-06-23T02:43:17 | 2014-06-23T02:43:17 | 4,244,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 279 | py |
class Rating:
""" Represents the Rating """
def __init__(self, level):
""" Initialize the Rating """
self.level = level
self.awarded = False
def checkAwarded(self):
""" Check if the Rating should be awarded """ | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
a32c536428203a1d2fab7eea522cf5846aa50345 | 73f4a527f2dbe9bcfbceab7cab1370c23bbbfa36 | /lec4_serving/send_url.py | 24be6fa0cc47546b98000ea82c02f272420c3463 | [] | no_license | pai-plznw4me/network_study | c5962706c29c5475badb3d32c8e21f20dd21e67a | 845dd045e68bce670b241cf9f1553c23344fb984 | refs/heads/master | 2022-12-14T02:32:30.427499 | 2020-09-13T15:07:43 | 2020-09-13T15:07:43 | 292,311,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import json
import base64
from PIL import Image
import numpy as np
import io
import matplotlib.pyplot as plt
import tensorflow as tf
# Image to binary
img_path = "/Users/seongjungkim/PycharmProjects/network_study/lec4_serving/sample.png"
f = open(img_path, mode='rb')
image = f.read()
b_image = base64.encodebytes(ima... | [
"plznw4me@naver.com"
] | plznw4me@naver.com |
b25ec287087535274a5c4e7bd595d08c888d6d73 | dab869acd10a3dc76e2a924e24b6a4dffe0a875f | /Laban/LabanLib/analysis/spreadindAndClosing.py | 66d70d80949167c1383fa65ab43fe1af03e37b9b | [] | no_license | ranBernstein/Laban | d82aff9b0483dd007e03a06e51f7d635f62ed05d | 54c88afa9493deacbdd182904cc5d180ecb208b4 | refs/heads/master | 2021-01-23T13:17:51.777880 | 2017-02-14T09:02:54 | 2017-02-14T09:02:54 | 25,508,010 | 3 | 1 | null | 2017-02-14T09:02:55 | 2014-10-21T07:16:01 | Tcl | UTF-8 | Python | false | false | 1,282 | py | from LabanLib.LabanUtils import AbstractLabanAnalyzer
from LabanLib.LabanUtils import AbstractAnalysis
import mocapUtils.kinect.angleExtraction as ae
class SpreadindAndClosing(AbstractAnalysis.AbstractAnalysis):
def getPositiveAndNegetive(self):
return 'Spreading', 'Closing'
def wrap... | [
"bernstein.ran@gmail.com"
] | bernstein.ran@gmail.com |
c557512ab437d92c6ff97db1ed111ba0e9a9e98d | 1f0d46b55fe351dc61436069aca183dfa0d07e92 | /restful01/restful01/settings.py | 6499adabd3b5867434fb5271cd3e6dfa17a9fb17 | [] | no_license | aguncn/DjangoRESTfulWebServices | bfba746fc20f3aaa8bf8cedad6e569d0ea5716b2 | 1ab78478f84178d3eca9de1a262bae242930a9c5 | refs/heads/master | 2020-04-12T04:28:05.056831 | 2018-12-18T14:04:17 | 2018-12-18T14:04:17 | 162,296,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,141 | py | """
Django settings for restful01 project.
Generated by 'django-admin startproject' using Django 2.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"aguncn@163.com"
] | aguncn@163.com |
57ece42cba9c0ad3533058c32259e55d8a82d896 | 1bd24cc6d3ebd0d57123a89589493ec8a0cfce90 | /cachemagic/client.py | 4e7a4b42650ce62a9b11315dc4dd833f21c86832 | [
"BSD-2-Clause"
] | permissive | ntucker/django-cache-magic | ff6b5892d84147c20d6500972c43ec61cf70dd80 | e6c6195fd80c846f7a49e27d1bc519ee109d80dc | refs/heads/master | 2021-01-16T20:32:44.592682 | 2015-11-26T07:24:29 | 2015-11-26T07:24:29 | 5,353,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | import os
from eventlet.greenthread import sleep
from eventlet.queue import LightQueue
from eventlet.queue import Empty
from redis import Redis, ConnectionPool
from redis.exceptions import ConnectionError
from redis.connection import UnixDomainSocketConnection, Connection
from django_redis.client.default import Defau... | [
"me@ntucker.me"
] | me@ntucker.me |
4777b979f6c28f8a4170bab3f4fd94f6a7ffafe8 | afa2ebb439e6592caf42c507a789833b9fbf44b2 | /supervised_learning/0x0F-word_embeddings/4-fasttext.py | a146dc1491d8836f475b9aa168ce255865c9b637 | [] | no_license | anaruzz/holbertonschool-machine_learning | 64c66a0f1d489434dd0946193747ed296760e6c8 | 91300120d38acb6440a6dbb8c408b1193c07de88 | refs/heads/master | 2023-07-30T20:09:30.416167 | 2021-09-23T16:22:40 | 2021-09-23T16:22:40 | 279,293,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/usr/bin/env python3
"""
Script that creates and trains a genism fastText model
"""
from gensim.models import FastText
def fasttext_model(sentences, size=100,
min_count=5, negative=5,
window=5, cbow=True,
iterations=5, seed=0, workers=1):
"""
Returns:... | [
"laabidigh@gmail.com"
] | laabidigh@gmail.com |
b7ba2e20045fe5087b250059c90d811008bb3a0d | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_workload_items_operations.py | 1604739bf2f67ed41caf837bd9dff06514352a54 | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 5,793 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | ashirey-msft.noreply@github.com |
c897c38ea593fd6d028a685aaec707ba4871e9b4 | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/pkgutil_nested.py | b4bb0040cc6ae75c9a0913c71ae015783378d7f1 | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # pkgutil_nested.py
import nested
import nested.shallow
print('nested.shallow:', nested.shallow.__file__)
nested.shallow.func()
print()
import nested.second.deep
print('nested.second.deep:', nested.second.deep.__file__)
nested.second.deep.func()
| [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
c929f35734c74a445856865534f29bc5fdd8f689 | 5de0c0e76bdde469156d057007a5008a63a0d66b | /buggernaut/Area.py | 5abcc8083016ae2fc276ffc7c8f945084c107c7b | [] | no_license | mattharkness/sixthdev | 6bcfd1c490efafb114dc5f014c6e5f1d91d56b4d | a7df929147d82d225606c216f69c48d898e19ebe | refs/heads/master | 2023-06-08T05:57:38.928657 | 2021-06-15T16:53:15 | 2021-06-15T16:53:15 | 338,441,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | __ver__="$Id$"
from strongbox import *
auto =None
class Area(Strongbox):
ID = attr(int, default=auto)
area = attr(str)
| [
"sabren"
] | sabren |
b33d36dbbdef12c04a89dad0a52e6461d82f31a1 | abf17bef22471c32d9b05be27704ceb7f3877b0d | /namo/multithread_scripts/threaded_test.py | f7f7ceadc0d18c0f8b9b1010d0407a107e1b1aaf | [] | no_license | beomjoonkim/adversarial_actor_critic | a91d608c1da9ac7a9b4ed4b0dce2f08d68456346 | 753a031ff70473003bdcf844c256e28337a8e8c9 | refs/heads/master | 2021-02-24T19:19:56.463064 | 2020-05-17T14:14:03 | 2020-05-17T14:14:03 | 245,438,421 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | import numpy as np
import scipy.io as sio
import os
import sys
import threading
from Queue import Queue
from multiprocessing.pool import ThreadPool # dummy is nothing but multiprocessing but wrapper around threading
from multiprocessing import cpu_count
import pickle
import socket
import argparse
import csv
import t... | [
"beomjoon@mit.edu"
] | beomjoon@mit.edu |
8a836540b8bcf7111da0d1aeb1a8ba28f87054d2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/502.py | 2febc7c4005d384624053bf32ddf35dd96d1547e | [] | 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 | 445 | py | __author__ = 'Thanabhat Koomsubha'
def solve(cc):
S, K = input().split()
S = int(S)
sum = 0
sol = 0
for i in range(S + 1):
if int(K[i]) == 0:
continue
if sum < i:
sol += (i - sum)
sum += (i - sum)
sum += int(K[i])
print... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5ca6d145b7e5a2b67acf13a34f61f65aca3d84d7 | a5a1a4a34d5e404d483cd442527ed154cdc4ab54 | /scripts/lt2_scripts/test_scripts/awg_trigger_jitter2.py | e46dbd0ef3c7acb49ef273d85428f4fa9adb0cb9 | [] | no_license | AdriaanRol/measurement | c0abb9cfb2e7061a060c109f6be61a420ca8586e | 32e0912b83d5ceedf00378df1d6a48feb9ab8f17 | refs/heads/master | 2021-01-20T16:48:03.044302 | 2014-03-26T15:42:09 | 2014-03-26T15:42:09 | 18,175,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | import os
import qt
import numpy as np
import msvcrt
from measurement.lib.AWG_HW_sequencer_v2 import Sequence
from measurement.lib.config import awgchannels_lt2 as awgcfg
reload(awgcfg)
AWG = qt.instruments['AWG']
def generate_sequence(do_program=True):
seq = Sequence('Test')
# vars for the chan... | [
"wolfgangpfff@gmail.com"
] | wolfgangpfff@gmail.com |
b6ae99dcc6e6e51be66d43ad5943b593979f5014 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v41r2/InstallArea/x86_64-slc6-gcc49-opt/python/CommonParticles/StdVeryLooseJpsi2MuMu.py | a1d496cd15b2307fbcbd8402a282ac808ceb9a75 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | #!/usr/bin/env python
# =============================================================================
# $Id: StdVeryLooseJpsi2MuMu.py,v 1.1 2010-01-18 10:08:49 gcowan Exp $
# =============================================================================
## @file CommonParticles/StdVeryLooseJpsi2MuMu.py
# configuration... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
f33fd4cc15561829b611c63b8394c988d0708fa6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/77/usersdata/247/43349/submittedfiles/exercicio24.py | 6f73a9b4da2d7555834aaae02a5105c1ce437493 | [] | 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 | 235 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite a'))
b=int(input('digite b'))
if a>0 and b>0:
d=2
while d<=a:
if a%d==0 and b%d==0:
mdc=d
d=1+d
print("mdc(%d,%d)=%d" %(a,b,mdc))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b6ce54f2fb1f2d0fd8c484522e225a8f27118954 | eaae3d8aa68a37824387ab05201a84f347004e3b | /docs/html/python_example.py | c039a2fb109d51c291515f87d2ba721a2fb82baa | [
"MIT"
] | permissive | apmoore1/rtf2xml | 254e2732e89003bc5622776a82757c20e5fe6999 | b80bd43c91c7e18088489eae9060d4d7a5b96d13 | refs/heads/master | 2021-06-10T09:15:42.018346 | 2017-01-16T19:08:59 | 2017-01-16T19:08:59 | 79,149,815 | 0 | 1 | null | 2017-01-16T19:04:48 | 2017-01-16T19:04:48 | null | UTF-8 | Python | false | false | 1,879 | py | #!/usr/bin/env python
import sys
import rtf2xml.ParseRtf
def Handle_Main():
"""Handles options and creates a parse object """
try:
parse_obj =rtf2xml.ParseRtf.ParseRtf(
in_file = 'in.rtf',
# these are optional
# determine the output file
out_f... | [
"paulhtremblay@gmail.com"
] | paulhtremblay@gmail.com |
f361ea6bd7ea53223419d2c8453f09fc3be2b524 | fb67821b542292fe921c9e628ebe69b9bd1ecb66 | /firstpro/firstpro/settings.py | b324acccee7bfd033b42b30bdecb4c4cc0d89c90 | [] | no_license | smrkhan123/MyDjango | 97cc13e33a686f325be03618b915cf571d4a6fc2 | be106cb64a52bf7bef8b4960089af1afe5480df6 | refs/heads/master | 2020-08-20T07:53:59.285250 | 2019-10-18T10:25:56 | 2019-10-18T10:25:56 | 215,998,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py |
"""
Django settings for firstpro project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"sk862147@gmail.com"
] | sk862147@gmail.com |
3f49b661713b37e8fcba1533d294c012ebf6b117 | 238900636ac22ba9776dfd022fcd5e2b6e788279 | /src/brainroller/findemptylocs.py | 09a7074d34a65cd3ca0d2c958b2d589bae786de2 | [] | no_license | ricepaper1/tensorflow_apps | 5b22f928a7283c353bde7242fa2d1060e6778594 | bcbf2873afc13e05cfdd0bf99bc5e222aa3820b8 | refs/heads/master | 2022-02-07T13:38:34.578175 | 2019-05-29T19:19:13 | 2019-05-29T19:19:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,505 | py | #! /usr/bin/env python
'''
Created on May 31, 2016
@author: welling
'''
import sys
import random
import os.path
import cPickle
import math
import spilltree3D
sys.path.extend(['/home/welling/Fiasco/fiasco_final/bin/LINUXX86_64',
'/home/welling/shtools/SHTOOLS-3.2'])
# sys.path.extend(['/home/wellin... | [
"welling@psc.edu"
] | welling@psc.edu |
46237aef41eb9f622b8d9a2300c0e36dec363cf0 | e0db9c0559d0cd362a0e3e7b96fd0c1c0fbc68e4 | /string21.py | 6b39115b313556a222d709f14fe90874f5bc1d37 | [] | no_license | BrettMcGregor/w3resource | ba338e91d24db773de6db6aec8c776a7df003ba0 | cea43e3f471edff1ca0843eeab1fa299f491badf | refs/heads/master | 2020-03-13T04:11:10.194964 | 2018-05-22T03:21:13 | 2018-05-22T03:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # Write a Python function to convert a given string to all
# uppercase if it contains at least 2 uppercase characters in the
# first 4 characters.
stringa = "HtTps://www.w3rresource.com"
count = 0
for i in range(5):
if stringa[i].isupper():
count += 1
if count > 1:
print(stringa.upper())
else:
pri... | [
"brett.w.mcgregor@gmail.com"
] | brett.w.mcgregor@gmail.com |
a1a5068f26f9fcec4afd026d777bab1f3e4795e6 | 3cdf103f66fd032352e96640ed072e30c63e1b74 | /template/__init__.py | 6ee598aa88d19cabed6b7d21aeb4457cc7b52877 | [] | no_license | JayGitH/Bussiness-Monitoring | a193872c08553370c0f4624215a8cbf0f94ea3dc | 0535e26acf4f16a385e0da538178b36dab9bdbc9 | refs/heads/master | 2023-03-16T13:49:23.520708 | 2019-09-17T07:55:24 | 2019-09-17T07:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # -*- coding:utf-8 -*-
# __author__ = Amos
# Email = 379833553@qq.com
# Create_at = 2019/1/16 2:34 PM
# FileName = __init__.py
| [
"379833553@qq.com"
] | 379833553@qq.com |
b470fb10194019ee727baacef3b307c45c089584 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep010/Gather1_W_change_C_fix_2blk/ep0_test/pyr_0s/L5/step10_a.py | 068fb2c7bc9f20951d26d26257e3c2b442a0c6ca | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,723 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
68dbd7dfa64f57c6443696841085abbebad9111d | d6952f048727add5b54a521d04f6c9b5889bcd35 | /pollination_sdk/models/project_folder.py | 0e150c669fb8aacf50defcdfda3311527b182f19 | [] | no_license | TfedUD/python-sdk | bf719644041c2ab7b741af9c7fb8e5acfe085922 | 7ddc34611de44d2f9c5b217cf9b9e7cec27b2a27 | refs/heads/master | 2023-08-10T21:13:45.270193 | 2021-06-21T14:48:36 | 2021-06-21T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,473 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pollination_sdk.configu... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
3ab90496ea31ecc33f1d7296a54b98f6b01e95a3 | fe3265b72e691c6df8ecd936c25b6d48ac33b59a | /homeassistant/components/livisi/switch.py | bcb9a2044119ad26ab3c66b78575729ed4c684bc | [
"Apache-2.0"
] | permissive | bdraco/home-assistant | dcaf76c0967783a08eec30ce704e5e9603a2f0ca | bfa315be51371a1b63e04342a0b275a57ae148bd | refs/heads/dev | 2023-08-16T10:39:15.479821 | 2023-02-21T22:38:50 | 2023-02-21T22:38:50 | 218,684,806 | 13 | 7 | Apache-2.0 | 2023-02-21T23:40:57 | 2019-10-31T04:33:09 | Python | UTF-8 | Python | false | false | 5,432 | py | """Code to handle a Livisi switches."""
from __future__ import annotations
from typing import Any
from homeassistant.components.switch import SwitchEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError... | [
"noreply@github.com"
] | bdraco.noreply@github.com |
84a74f7f1adcb4948a83a6a6bc07fe6fd2aebf37 | 69851e673bad63c54138fd4c6a7532d298b28728 | /test/asyncore_echo_server.py | b12383219e34e278fe9d0fe6ed31f733b0d8f4cc | [] | no_license | ppppdm/mtcpsoft | a23e5b7b5f0144a2bad927824194b9534ee0a2f0 | 3a02474960d2903d4979a89b1c7568932f7ec006 | refs/heads/master | 2020-05-30T15:05:12.850440 | 2013-08-02T09:00:06 | 2013-08-02T09:00:06 | 9,294,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | import logging
import asyncore
import socket
logging.basicConfig(level=logging.DEBUG, format="%(created)-15s %(msecs)d %(levelname)8s %(thread)d %(name)s %(message)s")
log = logging.getLogger(__name__)
BACKLOG = 5
SIZE = 1024
class EchoHandler(asyncore... | [
"ppppdm@gmail.com"
] | ppppdm@gmail.com |
58e929b86c5c6af28135527b1d7338671acd45f5 | a8939556f37cbc7313b7e648f0feed143951fc86 | /biblioteca/apps/permisos/migrations/0003_permiso_emma.py | ab9d6c63eda9676785137caa3ae5987b4ba00510 | [] | no_license | miemma/biblioteca | 212336177fd304be7d20f57001fb567e220bb1ef | 0c170cc9ae75f0047a6e1ef6a039d47084989333 | refs/heads/master | 2020-12-25T15:09:17.683860 | 2016-08-02T14:50:56 | 2016-08-02T14:50:56 | 51,967,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-07-27 14:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('permisos', '0002_auto_20160726_1028'),
]
operations = [
migrations.AddField(... | [
"mauriciodinki@gmail.com"
] | mauriciodinki@gmail.com |
a4d2108824be0ac9fcd647eb84358ec9b51fbaea | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/535.py | 49c82db37b6a6d5585e9da8e7da7c644ace9e867 | [] | 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 | 1,029 | py | # input() reads a string with a line of input, stripping the '\n' (newline) at the end.
# This is all you need for most Google Code Jam problems.
t = int(input()) # read a line with a single integer
for c in range(1, t + 1):
n,r,o,y,g,b,v = map(int, input().split(" ")) # read a list of integers, 2 in this case
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
54b39fb0c7e6ef24872826a2dddd60ede9dae49d | f561a219c57bd75790d3155acac6f54299a88b08 | /city/admin.py | 0519873f37af6e7fa4913e0e2fe60a712456d5c7 | [] | no_license | ujjwalagrawal17/OfferCartServer | 1e81cf2dc17f19fa896062c2a084e6b232a8929e | b3cd1c5f8eecc167b6f4baebed3c4471140d905f | refs/heads/master | 2020-12-30T15:31:04.380084 | 2017-05-24T18:26:20 | 2017-05-24T18:26:20 | 91,155,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.contrib import admin
from .models import *
# Register your models here.
class CityDataAdmin(admin.ModelAdmin):
list_display = ["id", "name", "created", "modified"]
admin.site.register(CityData, CityDataAdmin)
class UserCityDataAdmin(admin.ModelAdmin):
list_display = ["id", "city_id", "user_id... | [
"ujjwal.iitism@gmail.com"
] | ujjwal.iitism@gmail.com |
bc9c12c96f2b5f6f38674dd2cee18c4c49df274b | a85303ac9116e57d756afd5feb9e0b22f6ebe7a4 | /tools/region_recall.py | 765657c8c9aa1bfcf4fb68703c9d956f4c26c156 | [] | no_license | TWSFar/visdrone | 866b1a80f02bd05183176047ea25a4600d34a3cc | 54bb301cfdd7b0ce44e3e4d168441721776efe11 | refs/heads/master | 2020-07-12T05:14:50.191525 | 2019-08-27T10:33:40 | 2019-08-27T10:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | import os, sys
import cv2
import argparse
import numpy as np
from glob import glob
from tqdm import tqdm
import utils
import pdb
from datasets import get_dataset
def parse_args():
parser = argparse.ArgumentParser(description="show mask results")
parser.add_argument('dataset', type=str, default='VisDrone',
... | [
"cyfhorse@gmail.com"
] | cyfhorse@gmail.com |
7828582f9ad5c1df41c4957b9ddc46bc8217c64a | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/comparison/test_chart_format12.py | 5d79eda350742be44b8247dff8014a096551d270 | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"nateparro2t@gmail.com"
] | nateparro2t@gmail.com |
1ae9b2b955575614b0511b5ddb39ed26c3e76eb2 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/domain/KoubeiMerchantKbcloudSubuserinfoQueryModel.py | 6eff376ef9495acbde6543c3e202f036563ce525 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 896 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiMerchantKbcloudSubuserinfoQueryModel(object):
def __init__(self):
self._user_id = None
@property
def user_id(self):
return self._user_id
@user_id.setter
de... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
8a6360f4ec2a34b4453ff5db3ba9d22e1f3948ef | 1460bad3dfffb5d194bad82ec79c1aac32c46a4d | /06. Inventory.py | 716a0482eb6aad72539af07ef3861ee45d21fe56 | [] | no_license | antondelchev/Objects-and-Classes---Exericse | 29942f9db057995efb41b6cdc1afac0b246f5546 | 199512a917798b81518549fa1c792be07558be3f | refs/heads/main | 2023-06-01T04:29:36.817189 | 2021-06-26T11:55:40 | 2021-06-26T11:55:40 | 379,929,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | class Inventory:
def __init__(self, capacity):
self.__capacity = capacity
self.items = []
def __repr__(self):
return f"Items: {', '.join(self.items)}.\nCapacity left: {self.get_capacity() - len(self.items)}"
def add_item(self, item):
if len(self.items) < self.__cap... | [
"noreply@github.com"
] | antondelchev.noreply@github.com |
ef72b21dbd259ad4ab9f45b39c810dc2058e2b49 | 46ce3ba4d13a4d6aa20cbfc167937882b18b7f79 | /text-to-speech/caching.py | a590f96f840d3dbaf479ab8954f2f50bc7bb8a20 | [
"MIT"
] | permissive | hsouporto/Bahasa-NLP-Tensorflow | 835645b9cc68b0b69e331298648f820981508be6 | 4e6427230e36c2d79ec951c7f2c3501bf75f9a8a | refs/heads/master | 2022-03-04T17:07:14.443843 | 2019-11-24T17:33:02 | 2019-11-24T17:33:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | import numpy as np
import librosa
import os
import scipy
import tqdm
sampling_rate = 22050
n_fft = 2048
frame_shift = 0.0125
frame_length = 0.05
fourier_window_size = 2048
max_db = 100
ref_db = 20
preemphasis = 0.97
hop_length = int(sampling_rate * frame_shift)
win_length = int(sampling_rate * frame_length)
n_mels = 8... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
d12073849a04a0418ceebefbbd28dba15b9a9086 | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /hackerrank/30-days-of-code/day22.py | 3692eb9c7775e83b659713b768a2fa6812c9da0b | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 951 | py | class Node:
def __init__(self, data):
self.right = self.left = None
self.data = data
class Solution:
def insert(self, root, data):
if root == None:
return Node(data)
else:
if data <= root.data:
cur = self.insert(root.left, data)
... | [
"takecian@gmail.com"
] | takecian@gmail.com |
57228292fe41800007162ca6be34000fa2208823 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology.py | 0838d2b70b2837816c9f5e03ae5813cc13404e92 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,821 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
f864ade49aab086a7a31f2e135fad9a46cdb13ca | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2425/60631/272083.py | 5ac84ac36934d8e5049118c3115c584027eceaf7 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | t=int(input())
for ti in range(t):
si=input().split(' ')
n=int(si[0])
k=si[1]
s=input().split(' ')
for i in range(n):
if i+1==n:
break
lo=int(s[i])-int(k)
hi=int(s[i+1])-int(k)
if lo*hi <0:
if hi+lo>0:
print(s[i])
el... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
798069de8b0f9e0ce67fbbced24721a901e7d47c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5766201229705216_0/Python/bponsler/binary.py | b5e3209f540bab8969cf4715b64d40daee21ea46 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | from sys import stdin
def addToTree(items, tree):
treeItem0 = tree.get(items[0], [])
treeItem1 = tree.get(items[1], [])
treeItem0.append(items[1])
treeItem1.append(items[0])
tree[items[0]] = treeItem0
tree[items[1]] = treeItem1
return tree
def countChildren(tree, node, visited=None):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b60d9dcf9a73cb0bc79ae108a7050edd0b8d277c | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/glljos003/question2.py | 21e349f32092b4b61fac4704fcb4b74a41414501 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | choice_input = input("Enter the input filename:\n")
choice_output = input("Enter the output filename:\n")
input_file = open(choice_input, "r")
output_file = open(choice_output, "w")
width = eval(input("Enter the line width:\n"))
string = input_file.read()
x = string.splitlines(True)
string = "".join(x)
parag... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
5f19f916ce55cb6e965e8125fbe30a94008013c9 | 88ae8695987ada722184307301e221e1ba3cc2fa | /v8/tools/release/list_deprecated.py | 3549ecd427e785df1a537870920d2a6b5cb18bc2 | [
"BSD-3-Clause",
"SunPro",
"Apache-2.0"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 6,376 | py | #!/usr/bin/env python3
# Copyright 2018 the V8 project 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 argparse
from datetime import datetime
import re
import subprocess
import sys
from pathlib import Path
import logging
from mu... | [
"jengelh@inai.de"
] | jengelh@inai.de |
35b61c03110c01137c01c1f734774cc7bd7e4811 | 2de1934821e11edaf8c4cbf4993f5138a17b20f2 | /tasks/migrations/0007_remove_project_dedline.py | 8a4e6215bab5d342f332ea44dcdd89d9285d449d | [] | no_license | jonqwerty/taskmanager | e39c0cc5b27619bd21e6d064dda6d779337cf9e0 | 04a8a2672ae50f726bab3f7b9e794e544b9c2bd2 | refs/heads/main | 2023-01-03T09:54:48.832504 | 2020-10-28T19:07:49 | 2020-10-28T19:07:49 | 301,083,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # Generated by Django 3.0.2 on 2020-10-18 09:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tasks', '0006_project_dedline'),
]
operations = [
migrations.RemoveField(
model_name='project',
name='dedline',
),
... | [
"you@example.com"
] | you@example.com |
e3d450aa45d3d9aff94356466a82ee5821f57f30 | 4ac9cf4c921e71ad4a5308b6de4900051fc6e162 | /MAIN/tasks/Others.py | e8a4911ca01a52171db6036d33b84b96eeba58a2 | [] | no_license | heyuantao/ACMTOOLS | 0928cb889222746dc20e677728c8b6816e28b2a0 | cd0c7dee272dc6b14c496cf02bfbbce863acfd59 | refs/heads/master | 2022-12-09T22:43:39.326033 | 2020-05-10T12:46:04 | 2020-05-10T12:46:04 | 172,885,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from celery.task import Task
import time
class HelpTask(Task):
name = 'help_task'
def run(self,*args,**kwargs):
print('start course task')
time.sleep(10)
print(kwargs)
#runTask(1000)
print('end') | [
"he_yuan_tao@163.com"
] | he_yuan_tao@163.com |
9698b7d231d1791a36e5749d1078d6cc01552709 | ad1a89d4b3e850b114df494c7d06f312105cd7c8 | /settings/dev_files.py | 7b05f2856fcbb2851bbba8018ea462d49c078f5f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | brenns10/fluffy | 22436bc958ce6c4f2bf06038e426dc74b82a0ee9 | a63f81bde64901416e6c575c4c8db2fbce6c346d | refs/heads/master | 2021-08-11T18:56:31.179119 | 2017-11-14T02:47:00 | 2017-11-14T02:47:00 | 110,591,621 | 0 | 0 | null | 2017-11-13T19:25:15 | 2017-11-13T19:25:14 | null | UTF-8 | Python | false | false | 724 | py | # fluffy-specific configuration options
# storage backend (how are the files stored after being uploaded?)
STORAGE_BACKEND = {
'name': 'file',
'object_path': 'tmp/object/{name}',
'html_path': 'tmp/html/{name}',
}
# branding
BRANDING = 'fluffy'
CUSTOM_FOOTER_HTML = None
# URL patterns
HOME_URL = 'http://lo... | [
"ckuehl@ocf.berkeley.edu"
] | ckuehl@ocf.berkeley.edu |
8ab10d663bdfbf0e0308ded035ba9e5f154f2c15 | add0bb7a309ea346614d7f560a24e653d3d0ff67 | /test/人机交互/数据交互.py | 03219ac54f95ceed913795f764cdd147bd7f0d56 | [] | no_license | 1572903465/PythonProjects | 935aff08d5b3d3f146393764a856369061513d36 | 73576080174f72ea1df9b36d201cf3949419041b | refs/heads/master | 2023-06-10T15:50:49.178112 | 2021-07-05T15:42:53 | 2021-07-05T15:42:53 | 301,328,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | from flask import Flask, render_template, g, request, url_for, session, redirect
from dataclasses import dataclass
app = Flask(__name__, static_url_path="/")
app.config['SECRET_KEY']="sdfklas0lk42j"
@dataclass
class User:
id: int
username:str
password:str
users = [
User(1,"Admin","123456"),
User(... | [
"1572903465@qq.com"
] | 1572903465@qq.com |
a6b7b62c9f1ac79f10ddf614af9f7bf20439ed33 | 0d2c2ffe431b159a87bcd78c97147422dce8d778 | /GUI学习/01PyQt5快速开发与实战/ch06信号与槽/05事件处理机制01.py | 43465b6595902f3927dcab02d7536babf580a255 | [] | no_license | YuanXianguo/Python-Project-ITC | 9e297fc1e1e8ec2b136e6e8b1db0afaaba81c16c | afd14cbe501147ec66b4aa0c1c7907b3ae41d148 | refs/heads/master | 2020-04-16T13:54:33.727825 | 2019-12-20T02:16:52 | 2019-12-20T02:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,225 | py | import sys
from PyQt5.QtCore import QEvent, QTimer, Qt
from PyQt5.QtWidgets import QApplication, QMenu, QWidget
from PyQt5.QtGui import QPainter
class Widget(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle('Event Demo')
self.setGeometry(300, 300, 300, 200)
sel... | [
"736913978@qq.com"
] | 736913978@qq.com |
b4818ae7a9622cf19a01a92d9c769226d31d19a8 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test_001/test_link_20201125110915.py | a02ef9ae464982e8e63a84a477479ab6fcfb08ce | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py |
import allure
@allure.link("https://www.baidu.com",name="链接地址")
def test_link_a():
print("测试连接的测试用例")
testcase="https://www.baidu.com"
@allure.testcase
def test_testcase():
print("这个是测试用例地址") | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
65ed6f471c70db25d6ea06054f3ba7f8adeaa18b | fa798e1779af170ee31bfd710a6faca9904a99ef | /7day/7. ex1.py | c141f66dd49c7579bdaf015710ae54329f342ae1 | [] | no_license | itwebMJ/pythonStudy | 1c573f98b78ce8c9273ae17a44d59a5a26c61b2c | 8ea3112c9c587b6aeb8a5fa6ef715053286fbaae | refs/heads/master | 2023-06-28T05:37:29.239010 | 2021-08-06T08:01:54 | 2021-08-06T08:01:54 | 375,879,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,657 | py | '''
프로그램 시작되면 memo 디렉토리 없으면 새로 생성.(맨처음만)
메모장
1. 쓰기
파일명 => 중복 : 덮어쓰기 : 기존 내용 지우고 작성
이어쓰기 : 기존 내용 살려서 뒤에 이어씀. =>키보드로 내용입력('/exit':입력 멈춤) 파일에 씀 =>파일 닫고 종료
새이름 : 새 파일 생성
2. 읽기
memo 디렉토리의 파일 목록 출력 => 파일 선택 => 그 파일을 읽기 모드로 오픈해서 파일 내용 읽어와서 출력
3. 삭제
memo 디렉토리의 파일 목록 출력 => 삭제... | [
"rlaalwn61@naver.com"
] | rlaalwn61@naver.com |
fdd8a87f35d8ed1df1de0ea2daeaafd48ffa105a | 7a53f6c98c9a15772632dd1346a5507f01cf462c | /brick_server/__init__.py | f03901f54b3bffbb5bff2d157c921b74e481ac92 | [
"MIT"
] | permissive | jbkoh/brick-server | 59c1642665b908b74f344a7a1cacdae66c7caf59 | 945196e4915a7ae65cf60344eab146ee4926d9dd | refs/heads/master | 2020-04-14T21:48:36.888356 | 2019-03-29T23:30:00 | 2019-03-29T23:30:00 | 164,140,827 | 0 | 3 | MIT | 2019-03-26T19:39:37 | 2019-01-04T18:19:52 | Python | UTF-8 | Python | false | false | 2,301 | py | import pdb
import json
from flask import Flask
from flask_injector import FlaskInjector
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from apispec_webframeworks.flask import FlaskPlugin
from .apis import blueprint, entity_api
configs = json.load(open('configs/configs.json'))
API_V... | [
"bk7749@gmail.com"
] | bk7749@gmail.com |
3a1f2199bc64a36f4049e02a0ae900a3fecdef66 | bae75bf1de75fb1b76e19b0d32c778e566de570a | /smodels-database/13TeV/ATLAS/ATLAS-SUSY-2016-26/orig/InputFile_HepData_Reader.py | b11122a202cb33cc8d5dcf13d5a87699d16bbb08 | [] | no_license | andlessa/RDM | 78ae5cbadda1875c24e1bb726096b05c61627249 | ac6b242871894fee492e089d378806c2c2e7aad8 | refs/heads/master | 2023-08-16T00:47:14.415434 | 2021-09-21T20:54:25 | 2021-09-21T20:54:25 | 228,639,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,611 | py | # This script reads files given as 'input' format in the HEP data website.
# e.g. see ATLAS susy analyses.
"""
This function reads the X,Y and values from the input file.
It returns the three corresponding lists of objects.
First it creates a general list, for which the entries are the lines that are read, in form of... | [
"wolfgang.waltenberger@gmail.com"
] | wolfgang.waltenberger@gmail.com |
f89ffcd21d944932d0bc3df067c549070844ae55 | 2f9c2bb2c8d32368f90ef798c08848cec4ea2ebd | /jina/types/message/common.py | b3b3245b299fc6ce48d10701153c5fd2fd5037a6 | [
"Apache-2.0"
] | permissive | automation555/jina | 9e0aafd9d894bd5995f091ea0f8566a9ed0f781d | 337526c00265190fc45235b80df10c0a75b51c09 | refs/heads/master | 2023-06-03T04:33:18.460871 | 2021-06-17T08:51:21 | 2021-06-17T08:51:21 | 377,765,051 | 0 | 0 | Apache-2.0 | 2021-06-17T08:55:30 | 2021-06-17T08:50:48 | Python | UTF-8 | Python | false | false | 1,434 | py | from . import Message
from ..request import Request
from ...proto import jina_pb2
_available_commands = dict(
jina_pb2.RequestProto.ControlRequestProto.DESCRIPTOR.enum_values_by_name
)
__all__ = ['ControlMessage']
class ControlMessage(Message):
"""
Class of the protobuf message.
:param command: Com... | [
"rajashree.patil@embold.io"
] | rajashree.patil@embold.io |
a5f75c4b6cd99db91c0f65af43367b7e6670c70b | 2315c570965da85ddb276840ee158319b2fb9df4 | /tests/suggestions/test_suggest_event_webcast_controller.py | e5926bcfccf85118c0e2706f07a1dcd2e02f1fa6 | [
"MIT"
] | permissive | enterstudio/the-blue-alliance | c1779676f809471d39486d077c834c7e78520467 | b53f752fe1f059b4b6f91c841e1865a6c6b81268 | refs/heads/master | 2022-11-26T06:50:11.159102 | 2017-02-03T16:53:26 | 2017-02-03T16:53:26 | 80,987,951 | 0 | 0 | MIT | 2022-11-19T06:05:18 | 2017-02-05T11:19:22 | HTML | UTF-8 | Python | false | false | 4,945 | py | from datetime import datetime
import unittest2
import webapp2
import webtest
from google.appengine.ext import ndb
from google.appengine.ext import testbed
from webapp2_extras.routes import RedirectRoute
from consts.district_type import DistrictType
from consts.event_type import EventType
from controllers.suggestions.... | [
"noreply@github.com"
] | enterstudio.noreply@github.com |
4cf4469143aebe731974ed947d501afecb9cceab | 5636cb0c282d03e91a830d30cec3bd54c225bd3b | /TP_SPE_Supplementaires/Mines_Ponts_2015/programmes/TD02_piles_Patricia.py | 23095a301d660d6e8b3c515c2a69d854cfbce056 | [] | no_license | xpessoles/Informatique | 24d4d05e871f0ac66b112eee6c51cfa6c78aea05 | 3cb4183647dc21e3acbcbe0231553a00e41e4e55 | refs/heads/master | 2023-08-30T21:10:56.788526 | 2021-01-26T20:57:51 | 2021-01-26T20:57:51 | 375,464,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | ### TD02 - piles
# question 1 : fonction est_vide
def est_vide(pile):
return len(pile)==0
# >>> est_vide((1,2,3))
# False
# >>> est_vide(())
# True
# question 2 : fonction est pleine
def est_pleine(pile,nb):
return len(pile)==nb
# >>> est_pleine((1,2,3),3)
# True
# >>> est_pleine((1,2,3),6)
# Fals... | [
"xpessoles.ptsi@free.fr"
] | xpessoles.ptsi@free.fr |
26d9469054aaa2d8af40439d3ff87f189436e3f0 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_58/run_cfg.py | f7490b8599e07eb7ffec34a1228ef176f43b870c | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
add097c8c0bbfc990db0229b131cc4d6e9aee2c8 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/checks/resource/azure/test_AppServiceJavaVersion.py | b5041c7eaa0dafe935c47390d2a7a832719f6014 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,421 | py | import os
import unittest
from checkov.runner_filter import RunnerFilter
from checkov.terraform.runner import Runner
from checkov.terraform.checks.resource.azure.AppServiceJavaVersion import check
class TestAppServiceJavaVersion(unittest.TestCase):
def test(self):
runner = Runner()
current_dir =... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
461c936aa43dfc116d3a4e6bf313f171ee477ef0 | c05ed32f1ef7e1eb7d73efd674e7d1fd710ad171 | /daily-coding-problems/problem140.py | 840bf38914b4da57f1be1d0cb9995f9fdd704039 | [] | no_license | carlhinderer/python-exercises | c8367517fdf835fa1117f96dbfee3dccc596afa6 | 4e09bbb4c4e2bd5644ed50e997db9f3c289a18f7 | refs/heads/master | 2021-06-01T16:17:00.389134 | 2021-02-09T18:21:01 | 2021-02-09T18:21:01 | 150,902,917 | 0 | 0 | null | 2021-04-20T20:33:11 | 2018-09-29T21:03:36 | Python | UTF-8 | Python | false | false | 386 | py | # Problem 140
# Medium
# Asked by Facebook
#
# Given an array of integers in which two elements appear exactly once and all other elements appear
# exactly twice, find the two elements that appear only once.
#
# For example, given the array [2, 4, 6, 8, 10, 2, 6, 10], return 4 and 8. The order does not matter.
#... | [
"carl.hinderer4@gmail.com"
] | carl.hinderer4@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.