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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60c0e73dc9ba74860ee5ee068272a5e264532ab6 | f5e567f11102f0d0f52e07d7bed1b1c41576cdd1 | /0x08-python-more_classes/3-rectangle.py | 85e83f5928cc034dd822d747b1fb095d9b123be1 | [] | no_license | AndresEscobarDev/holbertonschool-higher_level_programming | f0a39f5ae394612d9cec38e541e154a75ac43afb | 9e55e0427e631a670c0c7781e2e3819f6b50d825 | refs/heads/master | 2022-12-16T13:39:05.993853 | 2020-09-25T04:49:25 | 2020-09-25T04:49:25 | 259,411,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | #!/usr/bin/python3
"""Rectangle Module"""
class Rectangle():
"""Empty Rectangle class."""
def __init__(self, width=0, height=0):
self.width = width
self.height = height
@property
def width(self):
"""retrieves the width"""
return self.__width
@width.setter
def ... | [
"felipeescobar15@gmail.com"
] | felipeescobar15@gmail.com |
f8bbd93b19a00ccaa1785f21de10d7ee85c0d2f2 | eeea27393aa91ded7452f8ba3b9e59de34b352e3 | /tests/test_fetch_branch_descriptions.py | 0c9edc9ee8d800b318df303b75bfb9e8f496f979 | [
"MIT"
] | permissive | timbrel/GitSavvy | 021654f9dba690601f2a2ea4696230ac3c14dc88 | 7f6eae583ba4a38749b14a6e348c6d4fcf6811e8 | refs/heads/master | 2023-09-05T20:02:14.775466 | 2023-07-18T11:17:15 | 2023-07-18T11:17:15 | 29,417,074 | 174 | 32 | MIT | 2023-07-29T15:56:38 | 2015-01-18T05:40:08 | Python | UTF-8 | Python | false | false | 1,247 | py | from textwrap import dedent
from unittesting import DeferrableTestCase
from GitSavvy.tests.mockito import when
from GitSavvy.tests.parameterized import parameterized as p
from GitSavvy.core.git_command import GitCommand
examples = [
(
dedent("""\
branch.status-bar-updater.description One\\nTwo
... | [
"herr.kaste@gmail.com"
] | herr.kaste@gmail.com |
e7c2e47da66a553d505b55a3d937d30f2c820114 | 0fffdc47f9876c665926d1b67e1cf8ecb0e735d7 | /awesimsoss/generate_darks.py | 1cf8b7919ce3f06119722ebc9727a79957aa07b5 | [
"MIT"
] | permissive | nespinoza/awesimsoss | 439c0857bc38b6f307f4dfd705b667c880b6fa0a | 24455b703f846a66cd2c3f6f7edc3960c129e031 | refs/heads/master | 2020-12-27T22:17:39.027475 | 2020-04-07T21:35:23 | 2020-04-07T21:35:23 | 238,078,808 | 0 | 0 | MIT | 2020-04-07T21:35:24 | 2020-02-03T22:56:39 | Jupyter Notebook | UTF-8 | Python | false | false | 7,973 | py | #! /usr/bin/env python
import os
import numpy as np
import astropy.io.fits as fits
from . import noise_simulation as ng
def add_dark_current(ramp, seed, gain, darksignal):
"""
Adds dark current to the input signal
Parameters
----------
ramp: sequence
The array of ramp images
seed: i... | [
"jfilippazzo@stsci.edu"
] | jfilippazzo@stsci.edu |
057491a1237ffc4bef99c167ba0dcb7674f14ccd | 45ab4c22d918dc4390572f53c267cf60de0d68fb | /src/Analysis/Engine/Impl/Typeshed/third_party/2and3/requests/sessions.pyi | c01b5e15dd227f974e24e619ea84e3f29113ac3c | [
"MIT",
"Apache-2.0"
] | permissive | sourcegraph/python-language-server | 580a24fd15fe9d4abeb95e9333d61db1c11a2670 | 64eae156f14aa14642afcac0e7edaf5d7c6d1a1c | refs/heads/master | 2023-04-09T21:17:07.555979 | 2018-12-06T23:25:05 | 2018-12-06T23:25:05 | 155,174,256 | 2 | 2 | Apache-2.0 | 2018-10-29T08:06:49 | 2018-10-29T08:06:49 | null | UTF-8 | Python | false | false | 5,198 | pyi | # Stubs for requests.sessions (Python 3)
from typing import Any, Union, List, MutableMapping, Text, Optional, IO, Tuple, Callable, Iterable
from . import adapters
from . import auth as _auth
from . import compat
from . import cookies
from . import models
from .models import Response
from . import hooks
from . import u... | [
"alsher@microsoft.com"
] | alsher@microsoft.com |
cc94128aa202a02289d2a1af9bf3cdb56f1c5360 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/Downloading Files.py | 1d0d790a38a971745fd005fe0779c1009c3cd171 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c75100f4f9546784ea8796f60c014b05c1a6d85dc6339a653778693693dfda95
size 570
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
3cf9f47ccdd76898354a87cd03513c3853c0f2f5 | 60107fe4be58b8a96304ef1128c1514943efa2f9 | /19.py | 24b945692299a9de4f40994b0f287d7f28c65b75 | [] | no_license | Aidana172003/TSIS6 | 5293d23a2827644aaea2962f964e71efe7a42708 | 3451f73507171782d558a75a1bd46be7ecda2914 | refs/heads/main | 2023-06-12T06:35:46.043423 | 2021-07-08T07:23:30 | 2021-07-08T07:23:30 | 384,037,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | def test(a):
def add(b):
nonlocal a
a+=1
return a+b
return add
func=test(4)
print(func(4)) | [
"noreply@github.com"
] | Aidana172003.noreply@github.com |
b282ae4a8df3eb798acfcdf196f7e3f240860174 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/identity/azure-identity/tests/managed-identity-live/test_cloud_shell.py | aa125848a2efed089f300301bbc93f86011acc2c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,113 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import pytest
from azure.core import PipelineClient
from azure.core.pipeline.policies import ContentDecodePolicy, HttpLoggingPolicy, RedirectPolicy, RetryPolicy
from az... | [
"noreply@github.com"
] | Azure.noreply@github.com |
0e6fd93f5f79c5c1a20e94ccb2adab320a1de061 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/PasswordSub.py | 5ce89e5c41ce5e79cabb90ced4794759293b987b | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | import sys
import ael
import time
import string
ael_variables = []
def check_password(user):
time.sleep(6)
mailto = user.updat_usrnbr.userid
msg = 'To change a password go to File -> Preferences -> Passwords -> ADS.'
#if user.updat_usrnbr.userid != ael.User[user.updat_usrnbr].upda... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
7e15206079e2328ba961416fe868740e2f8a4dbb | ae29491fdfa0ef139e2146e3cdb088781efd1ff0 | /lang.py | 386349f17dc3daf551943a692231a5b254605dfc | [] | no_license | PyLamGR/Aurora-Bot | bcaa131811d7d05dc6bdb909f5f7b7f6f0ca250c | 1904eff6133765568f2e72c076827e3d8d6f4e8e | refs/heads/master | 2020-03-22T19:39:05.878137 | 2018-07-13T11:08:52 | 2018-07-13T11:08:52 | 140,542,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from configs import lang
# TODO: Automate this process
# https://stackoverflow.com/questions/18090672/convert-dictionary-entries-into-variables-python
TAG_REQUIRED = lang['TAG_REQUIRED']
MEMBER_NOT_FOUND = lang['MEMBER_NOT_FOUND']
UNKNOWN_ERROR = lang['UNKNOWN_ERROR']
#
# locals().update(lang)
#
# for name, value in l... | [
"wckdawe@gmail.com"
] | wckdawe@gmail.com |
c553c8c848f14f4ef73947ba0fa585fe765d4784 | a1afebeb04af3e9bbe5e9cf8a2468d8f1a99f9cc | /import-pipelines/LaserChron/setup.py | 4b3eecd661b858b658f0d15b18d3e96eb5051943 | [] | no_license | yeshancqcq/Sparrow | 0f4527740d0f1cca535e7b59384bcbe9ccaa1682 | dcfd2eeacc524ae752e6e68ea84fa4e58645337d | refs/heads/master | 2020-05-29T22:41:24.235748 | 2019-07-29T20:42:01 | 2019-07-29T20:42:01 | 189,416,026 | 0 | 0 | null | 2019-05-30T13:09:46 | 2019-05-30T13:09:46 | null | UTF-8 | Python | false | false | 235 | py | from setuptools import setup
setup(
name='sparrow_import_laserchron',
version='0.1',
package_dir={'sparrow_import_laserchron': 'sparrow_import_laserchron'},
install_requires=['sqlalchemy', 'pandas', 'xlrd', 'click']
)
| [
"dev@davenquinn.com"
] | dev@davenquinn.com |
db1cdee845b4b624fb660b2aea764c2af6c1f65a | e982ad81d18e3a983756b4c90311b007b9d5e276 | /pyspec/wxui/project.py | 62378ccb4286bfa0c3941582a2dfb6ee91771e7f | [
"MIT"
] | permissive | jyotijaya/pyspec | 2ca4428c3c9924154f7467edbdc1d8fddd59a817 | ae7a4de39beb3cf2e0838b6c3a9ef73d082445eb | refs/heads/master | 2022-12-27T20:42:15.818388 | 2020-10-01T11:50:19 | 2020-10-01T11:50:19 | 300,260,536 | 0 | 0 | NOASSERTION | 2020-10-01T11:49:40 | 2020-10-01T11:49:39 | null | UTF-8 | Python | false | false | 5,504 | py | # -*- coding: ascii -*-
__pyspec = 1
import os
import time
import ConfigParser
import pyspec.util
import pyspec.project
class WxPySpecProject(pyspec.project.PySpecProject):
def __init__(self, file_or_filename=None, last_used_time=None):
super(WxPySpecProject, self).__init__(file_or_filename, does_read=F... | [
"yoshiki@shibu.jp"
] | yoshiki@shibu.jp |
33ac8635e4bcb4c809545df017ca374fe921575c | c4209246ef01b1276b443bf7ce887d0b30b242dc | /test.py | 2ddc2ea00909e1ebff009ba662fb851d05232ab1 | [] | no_license | avmangu/SURF-2017 | 55237d48e92647d3c7ccce3f7911d52218a85e85 | 6f25798e96fdae9006285b99f76861fc2196f2ce | refs/heads/master | 2020-03-21T04:14:18.866034 | 2018-06-21T00:17:39 | 2018-06-21T00:17:39 | 138,098,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | import matplotlib.pyplot as plt
import matplotlib.animation as animation
import time
fig = plt.figure()
ax1 = fig.add_subplot(1,1,1)
# Crunch Input Data to Create Scanner Positions + Plot Coordinates
def liveGather(center, fine_range, fine_n, course_range, course_n):
# STEPS
fine_step = (fine_range - ... | [
"you@example.com"
] | you@example.com |
f478aeaf0498b9d894f8fa4b13a10a86c87251ff | ebcc57cbd7bc4c951fe3cf9826efc2d03d1e47e8 | /educative/05 Cyclic Sort/01 Cyclic Sort (easy).py | db806e81a23f57c1763200df5dc4238ef520c8ee | [] | no_license | Vahid-Esmaeelzadeh/CTCI-Python | 17a672e95f1d886f4fb66239a4aa22a87f38382a | 867360ab13dd63d24d6f3e45b5ac223755942b54 | refs/heads/master | 2022-10-26T16:43:54.939188 | 2020-06-11T21:42:15 | 2020-06-11T21:42:15 | 190,065,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | '''
Cyclic Sort
We are given an array containing ‘n’ objects. Each object, when created, was assigned a unique number from 1 to ‘n’
based on their creation sequence. This means that the object with sequence number ‘3’ was created just before the
object with sequence number ‘4’.
Write a function to sort the objects in... | [
"v.esmaeelzadeh@gmail.com"
] | v.esmaeelzadeh@gmail.com |
f2a61a0f7f387402f930c3178fe8175461504e36 | 89841a2b522b7b1ab7965560f62b4b401b2d0a4d | /text to speech python/text_to_speech.py | cfecef0e9236cc11bba0cba88bd60dbf68b2212e | [] | no_license | sidd5sci/python-basics | 14d621d52d3219943e2b0136c610dd769cc36a29 | fea620141292cb6beee782cddb5a7d4eeb067e9a | refs/heads/master | 2021-01-20T00:22:29.496330 | 2017-04-22T17:03:00 | 2017-04-22T17:03:00 | 89,123,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import pyttsx
engine = pyttsx.init()
engine.say('Only one species is there Both male and female are presennt Red ones are the male and black ones are the femaleReproduction occur when male and female collide and having health > 60')
engine.runAndWait()
| [
"sidd5sci@gmail.com"
] | sidd5sci@gmail.com |
26acd2756fd155e15a131af4bb0fd06493c314ab | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_116/ch22_2020_03_04_13_01_47_611677.py | 59962a24516fb71ebe20afd1ff6b9dfe862676ef | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | def ft(t,n):
z=(n*(t*360)*(0.00694444))
return z
t=int(input('tempo em anos'))
n=int(input('cigarros por dia'))
print(int(ft(t,n)),('anos perdidos'))
| [
"you@example.com"
] | you@example.com |
6d08d19c6fffa0eb9daccf141d2adf8d73445373 | 2dbadf8d7c26b3dda69328229b60df160b69f917 | /evaluate_densedepth_nyuv2_labeled.py | 6bbc1409c281972b2b29e944af1ad04946ad7941 | [] | no_license | computational-imaging/spad_single | a17c31d0564a16f08f4768dcc27c064272a5f70d | 54e18e26a6f3c33837da032063e8cf9cc287569e | refs/heads/master | 2022-11-18T08:32:37.513981 | 2020-07-19T04:44:56 | 2020-07-19T04:44:56 | 152,368,443 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | #!/usr/bin/env python3
import os
import numpy as np
import torch
from utils.train_utils import init_randomness
from collections import defaultdict
import json
from models.core.checkpoint import load_checkpoint, safe_makedir
from models.data.data_utils.transforms import AddDepthMask
from utils.eval_utils import evaluate... | [
"nishimuramarky@yahoo.com"
] | nishimuramarky@yahoo.com |
420b8215ab7148d92a6089821e81d5a6120804d7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02829/s673828179.py | 69644809e039e9a3784c22e8de1968d8b329c1a6 | [] | 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 | 231 | py | #!/usr/bin/python3
import sys
def input():
return sys.stdin.readline().rstrip('\n')
#S = input()
#A1,A2,A3 = list(map(int,input().split()))
A = int(input())
B = int(input())
C = [1,2,3]
C.remove(A)
C.remove(B)
print(C[0])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1b5f58b99c29bc28439c90c1f48251d330858219 | ebdc8475416892f79e4eeee354f6e2a909502565 | /generator/dnd.py | fd6314fe5a27e2308b85fbeddcb206a2884fccd4 | [] | no_license | jamesorendorff/ears-handbook | 810e10a5f1b48c206a6302701bef2efcfabb5c9f | 7b76373adf6debc4e4ec34ef49438935d3c87010 | refs/heads/master | 2021-06-14T19:32:14.915706 | 2021-03-23T20:13:04 | 2021-03-23T20:13:04 | 165,413,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | """
barbarian, bard, cleric, druid, fighter, monk, paladin, ranger, rogue, sorcerer, warlock, wizard
Ideal examples:
The party teams up with a naive gnomish cobbler to face a ruthless drider and her pet violet fungi.
An operatic dwarven bard with sideburns saves a desert caravan by finding the resonant frequency of... | [
"jason.orendorff@gmail.com"
] | jason.orendorff@gmail.com |
c772e7330c71059fd7c4a47309c08d0c549056fb | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/common/lrucache.py | a11c1212522351e66f34f68e2ae40dff2282bf90 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,099 | py | # 2015.11.10 21:31:34 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/LRUCache.py
import collections
class LRUCache(object):
def __init__(self, limit):
self.__cache = collections.OrderedDict()
self.__limit = limit
def get(self, key):
try:
value = self.__cac... | [
"info@webium.sk"
] | info@webium.sk |
ff83a27884448a170a0eb59ab57a4f65255e150b | 9fb1c85a6d39c08e2a3cc235335bc482ad909b71 | /prowler/providers/aws/services/secretsmanager/secretsmanager_service.py | c11455f11f7372738a8070a3f1b5cd27b350d597 | [
"Apache-2.0"
] | permissive | muharihar/prowler | 06dbdeaa0696dd65d72c33ff3c9f957b97f83d7a | 25c9bc07b219cc02004cc0b84adcfdcf18d5ad2b | refs/heads/master | 2023-02-18T01:26:54.161003 | 2023-02-10T11:38:13 | 2023-02-10T11:38:13 | 238,623,868 | 0 | 0 | null | 2020-02-06T06:36:36 | 2020-02-06T06:36:35 | null | UTF-8 | Python | false | false | 2,331 | py | import threading
from pydantic import BaseModel
from prowler.lib.logger import logger
from prowler.lib.scan_filters.scan_filters import is_resource_filtered
from prowler.providers.aws.aws_provider import generate_regional_clients
################## SecretsManager
class SecretsManager:
def __init__(self, audit_i... | [
"noreply@github.com"
] | muharihar.noreply@github.com |
57e7fec722d44281cff37c91573e894580e27dd1 | 9d84138b3bc2c2b42a306643f0ea8c3fd1bcd09c | /0x22-primegame/0-prime_game.py | e0d1d19d4191d77f6d8f749d59729afde509a940 | [] | no_license | Beardocracy/holbertonschool-interview | d1d93181a04d050316790ca42dfc9760214e1e00 | eb4f0b8610709bbbdcba9fb30fe198674377dcac | refs/heads/main | 2023-07-15T15:28:05.326314 | 2021-08-25T20:40:34 | 2021-08-25T20:40:34 | 281,188,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/python3
''' Module contains isWinner '''
def isWinner(x, nums):
''' Determines winner of the game '''
if x == 0 or x == -1:
return None
if x == 10 or x == 1000:
return "Maria"
else:
return "Ben"
| [
"travisjbearden@gmail.com"
] | travisjbearden@gmail.com |
2d7f06444d415639c19d531dde10cea2421b50d3 | e59fe240f0359aa32c59b5e9f581db0bfdb315b8 | /galaxy-dist/eggs/bx_python-0.7.1_7b95ff194725-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/mMK_bitset.py | 8a26870e4040b1f02e7e993675554ca6263f037e | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | subway/Galaxy-Distribution | dc269a0258471597d483687a0f1dd9e10bd47448 | d16d6f9b6a8b7f41a218c06539863c8ce4d5a73c | refs/heads/master | 2021-06-30T06:26:55.237251 | 2015-07-04T23:55:51 | 2015-07-04T23:55:51 | 15,899,275 | 1 | 2 | null | 2020-10-07T06:17:26 | 2014-01-14T10:47:28 | Groff | UTF-8 | Python | false | false | 4,827 | py | #!/afs/bx.psu.edu/project/pythons/linux-x86_64-ucs2/bin/python2.7
import sys
import bx.align.maf
import bx.bitset
from bx.bitset_builders import *
from itertools import *
from optparse import OptionParser
from rpy import *
def main():
# Parse the command line
parser = OptionParser(usage = "usage: %prog [options] ... | [
"sabba_88@hotmail.com"
] | sabba_88@hotmail.com |
7a439418db24e003bfc0ebaf4de35bfea8aa354a | af4d559792c4255d5f26bc078cd176b70c0e643f | /hpsklearn/components/cluster/_kmeans.py | c4e90dbb37b0bd24bb91f61aee16d96e36ac250b | [
"BSD-3-Clause"
] | permissive | hyperopt/hyperopt-sklearn | ec7d5f97ba8fd5a2c283dfec2fa9e0170b61c6ce | 4b3f6fde3a1ded2e71e8373d52c1b51a0239ef91 | refs/heads/master | 2023-08-02T07:19:20.259964 | 2022-12-15T17:53:07 | 2022-12-15T17:53:07 | 8,293,893 | 1,480 | 292 | NOASSERTION | 2022-12-15T17:53:08 | 2013-02-19T16:09:53 | Python | UTF-8 | Python | false | false | 5,567 | py | from hpsklearn.components._base import validate
from hyperopt.pyll import scope, Apply
from hyperopt import hp
from sklearn import cluster
import numpy.typing as npt
import typing
@scope.define
def sklearn_KMeans(*args, **kwargs):
return cluster.KMeans(*args, **kwargs)
@scope.define
def sklearn_MiniBatchKMean... | [
"38689620+mandjevant@users.noreply.github.com"
] | 38689620+mandjevant@users.noreply.github.com |
008cfa98bc23ee715832fb1c34d7ab9ee9e9aeb9 | f07a21e66c0dde0691142e31378d10527e44e54c | /re-start/018. 뉴스 클러스터링.py | 9a650b34990e0d0aedff2271460484d3213af037 | [] | no_license | cheol-95/Algorithm | 0a3454e5d3fff21ec50ec20dc64341b13cb972dc | 6a130bb0817395550f00c192074d01f5c6443628 | refs/heads/master | 2023-04-28T09:47:04.389059 | 2023-04-16T07:54:36 | 2023-04-16T07:54:36 | 250,749,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | def solution(str1, str2):
str1 = [(ch_1 + ch_2).upper() for ch_1, ch_2 in zip(str1[:-1], str1[1:]) if ch_1.isalpha() and ch_2.isalpha()]
str2 = [(ch_1 + ch_2).upper() for ch_1, ch_2 in zip(str2[:-1], str2[1:]) if ch_1.isalpha() and ch_2.isalpha()]
if not str1 and not str2:
return 65536
union = 0... | [
"rkdcjf0122@gmail.com"
] | rkdcjf0122@gmail.com |
9a942ee1f83cf77dc5476f44d4d5c59dc7fbc339 | 97aa1181a8305fab0cfc635954c92880460ba189 | /torch/testing/_internal/common_cuda.py | 8db1456cc4c46890f5b40e7723a928f54c30e075 | [
"BSD-2-Clause"
] | permissive | zhujiang73/pytorch_mingw | 64973a4ef29cc10b96e5d3f8d294ad2a721ccacb | b0134a0acc937f875b7c4b5f3cef6529711ad336 | refs/heads/master | 2022-11-05T12:10:59.045925 | 2020-08-22T12:10:32 | 2020-08-22T12:10:32 | 123,688,924 | 8 | 4 | NOASSERTION | 2022-10-17T12:30:52 | 2018-03-03T12:15:16 | C++ | UTF-8 | Python | false | false | 1,302 | py | r"""This file is allowed to initialize CUDA context when imported."""
import torch
import torch.cuda
from torch.testing._internal.common_utils import TEST_NUMBA
TEST_CUDA = torch.cuda.is_available()
TEST_MULTIGPU = TEST_CUDA and torch.cuda.device_count() >= 2
CUDA_DEVICE = TEST_CUDA and torch.device("cuda:0")
# note... | [
"zhujiangmail@hotmail.com"
] | zhujiangmail@hotmail.com |
d2315f02b2072e2d9a5b1c0dab10bee84c056edc | 07bae7671cac165fb91554343396ee1343c6363d | /xiecheng/coroutineTest1.py | 8c73a90b6602c02e9c3cbd7d24749f72b25d392c | [] | no_license | quyixiao/python_lesson | 7869dfd3aec8f5b6500ae955ae5c50a956f7b4c3 | 81684d06e6f054049fa79b0e63ab528bdc46581f | refs/heads/master | 2021-06-28T08:01:02.937679 | 2021-03-11T10:29:57 | 2021-03-11T10:29:57 | 221,687,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # 协程
# 生成器的高级用法
# 是用户空间调试函数的一种实现
# Python3 asyncio 就是协程实现,已经加入到标准库
# Python3.5 使用async,await 关键字直接原生支持协程
# 协程调试器的实现思路
# 有2个生成器A,B
# next(A)后,A执行
def inc():
for x in range(100):
yield x
foo = inc()
print(next(foo))
print(next(foo))
print(next(foo)) | [
"2621048238@qq.com"
] | 2621048238@qq.com |
e7f98e7798e41c2dcf024bd988520a1d7bab7552 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /26P2iwW5WfwPGJyWE_14.py | 70b4f9da3c875f0fff26ec25fd0a3a2fb475e52d | [] | 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 | 1,702 | py | """
Suppose a student can earn 100% on an exam by getting the answers all correct
or all incorrect. Given a **potentially incomplete** answer key and the
student's answers, write a function that determines whether or not a student
can still score 100%. Incomplete questions are marked with an underscore,
`"_"`.
["... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9c86f4361ab044e82d3fa23ded180195a4735774 | e74463d223acfe6b849177177cb409060e7a44d1 | /Data Structures and Algorithms/02 Data Structures/Week 3 - Priority Queues and Disjoint Sets/assignment/merging_tables.py | 72b14ae5556275a9e47d3d7273377402fe30690f | [] | no_license | AlexEngelhardt-old/courses | 24f4acf6de22f6707568024c5ee4a2fde412e461 | 739be99265b0aca1c58abe6f107b4c49de055b9d | refs/heads/master | 2023-05-05T22:25:50.327739 | 2020-12-09T14:57:46 | 2020-12-09T14:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | class Database:
def __init__(self, row_counts):
self.row_counts = row_counts
self.max_row_count = max(row_counts)
n_tables = len(row_counts)
self.ranks = [1] * n_tables
self.parents = list(range(n_tables))
def merge(self, src, dst):
src_parent = self.get_parent(s... | [
"alexander.w.engelhardt@gmail.com"
] | alexander.w.engelhardt@gmail.com |
df195bc9e2840dd23b24d0d4163d02eb205b80ca | 9047328d03d38c0833193987a9409600200d83bc | /myutils/counter.py | 4fd1cb06eada5e7eec2980c5adccbfc77ea730ca | [] | no_license | teddyxiong53/Python | 06d444f89d14ae5071248d93ea973fd1d9ad2795 | 629775569cb94968bb8a4e34e31871fcc1bd2969 | refs/heads/master | 2020-04-05T23:33:13.155112 | 2019-10-24T09:37:04 | 2019-10-24T09:37:04 | 68,708,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | class Counter(storage):
def add(self, n):
self.setdefault(n, 0)
self[n] += 1
def most(self):
m = max(self.itervalues())
return [k for k,v in self.iteritems if v == m]
| [
"1073167306@qq.com"
] | 1073167306@qq.com |
a99c3fb1646b9037c033ba2d9120a22697a5db2f | 348d4ddbbef412a4756c01afe06bfee0e5c53048 | /setup.py | cfdbf29d98916dbd8105645c019a768730e54634 | [] | no_license | SandboxEducation/pibrella | cbf6f61e38db8b995ded0d02cc29557e80c73f6b | 19207dac9a860243a52508a4509b85c7dc88a270 | refs/heads/master | 2020-12-25T07:05:45.853314 | 2014-05-13T08:14:34 | 2014-05-13T08:14:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | """
Copyright (c) 2014 Pimoroni
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, subli... | [
"phil@gadgetoid.com"
] | phil@gadgetoid.com |
07afe75284abf196cae225f340b17719c8769683 | da1f49aa0ee3cbbd0b7add4a8ee4210c50fc81b7 | /demo/modules/highest_factor.py | ec797cefcc7cb8f7bdbb1e0d9c64961dbd1e4ea0 | [] | no_license | srikanthpragada/PYTHON_30_AUG_2021 | a1cde290072e152440dcd07dce377154a9e3052e | f84f272718b483fbf67ca8f950e6e4f933307e63 | refs/heads/master | 2023-08-25T14:11:12.826321 | 2021-10-11T14:14:36 | 2021-10-11T14:14:36 | 402,412,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import sys
for n in sys.argv[1:]:
num = int(n)
for i in range(num // 2, 0, -1):
if num % i == 0:
print(f"{num:5} {i:5}")
break
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
998649baa7285122e041cdaf4a5dfbe984bc7c86 | 208560a564cc79822d5c6258ddd16e0e0e26362e | /Chapter-03-Arrays/Zip-It/Zip-It.py | f884730f8bf676fac4bc5219c5e1f4253749a444 | [] | no_license | vishnuap/Algorithms | c778984e1afd6b8d160ce868f6ad4408da84855f | fa6c3022616a958bce86f0b1218372d47fe8bf7e | refs/heads/master | 2020-09-15T19:00:11.552634 | 2017-06-25T19:32:11 | 2017-06-25T19:32:11 | 67,612,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | # Chapter-3: Arrays
# Zip-It
# 1. Create a function that accepts two arrays and combines their values sequentially into a new array at alternating indices starting with the first array. Extra values of either array should be included afterwards. Given [1,2] and [10,20,30], return [1,10,2,20,30]
# 2. Combine the two arr... | [
"vishnusak@gmail.com"
] | vishnusak@gmail.com |
546338e31f9f5ef23fb15bfe9b728c85cdc7c795 | b0a7ea84cb24ca4acfc7a18cfe7012dec8eb12e7 | /flask知识点/code_13set_cookies.py | e67e7bb22c6b25327f39804272ca83b739e730a6 | [] | no_license | amourbrus/temp | 414d1c0d4fc60dd3b7ba8b41773d0f6e653b3085 | a6f2ec85f85578923d9809cdc4ab519f0bd7584e | refs/heads/master | 2022-12-15T11:50:17.640481 | 2018-09-03T09:39:02 | 2018-09-03T09:39:02 | 147,171,404 | 0 | 0 | null | 2022-11-22T02:36:01 | 2018-09-03T08:01:00 | HTML | UTF-8 | Python | false | false | 466 | py | from flask import Flask, make_response
from flask import request
app = Flask(__name__)
@app.route('/baidu')
def set_cookie():
resp = make_response("一个参数, 响应体")
# set_cookie 方法, 注意","
resp.set_cookie("name", "itheima", max_age=3600)
resp.set_cookie("city", "sz")
return resp
@app.route('/get_cook... | [
"2338336776@qq.com"
] | 2338336776@qq.com |
f4a4fbaa3c229c1b945a531c68ed5d19f15e3482 | 0a2f63d03a493494c1bc3a9c3bb5136731d21203 | /baekjoon/BJ14891.py | 985d30dc40402af21d0c5b66c5139aa95188d445 | [] | no_license | hwan1753/algorithm | 483e508067519c5b66b6cfc95c9df6c7d1deedb3 | 4879947d87bb42c99668f6856f25b5e7353be10f | refs/heads/main | 2021-06-25T23:11:27.912100 | 2021-06-08T11:34:29 | 2021-06-08T11:34:29 | 228,177,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | from _collections import deque
gear = [0]
for num in range(4):
gear.append(deque(list(map(int,input()))))
K = int(input())
for num in range(K):
idx, direction = map(int, input().split())
up_chk = gear[idx][2]
down_chk = gear[idx][6]
if direction == 1:
gear[idx].appendleft(gear[idx].pop()... | [
"john175258@gmail.com"
] | john175258@gmail.com |
0787dc63dee0abfd156584d4ae1c56b9e7d0a394 | bc17d1b3c8774b80f5e2a703d36dd8407f0513f1 | /while-pythn.py | 3d1cb80f65f7f4aafbf379e6e56256cd6d170c76 | [] | no_license | RAFASANT29/repositorio2 | 3a2f510bd26eca1c51c4bb2db772112c44307158 | 7f94765a5e5e0af46da9b6b940e47aff4a1d3efd | refs/heads/master | 2023-01-24T03:03:03.771341 | 2020-12-09T19:46:56 | 2020-12-09T19:46:56 | 314,951,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | #condicion = False
#while condicion:
# print("Ejecutando ciclo while")
#else:
# print("Fin del ciclo while")
i = 0
while i<11:
print (i)
i+=1
else:
print ("Fin del ciclo while") | [
"you@example.com"
] | you@example.com |
aa118486c502200792a56101f8cebff6717a7c72 | d8108289ecc6f482d97768069adaf477b3da2e90 | /dm2bn/templatetags/__init__.py | 502eafeae6d3f1eb100a4c57e3645cb61d871ed2 | [
"MIT"
] | permissive | DCOD-OpenSource/django-messages-to-bootstrap-notify | 636cf9380abf104e29c0d11e9e2a2c45204bbfbb | 8d9f60dc1111961984bc33f1ec0efc3265c5c7a8 | refs/heads/master | 2021-03-12T17:58:09.459910 | 2018-01-07T20:24:48 | 2018-01-07T20:24:48 | 91,449,082 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | # -*- coding: utf-8 -*-
# django-messages-to-bootstrap-notify
# dm2bn/templatetags/__init__.py
from __future__ import unicode_literals
__all__ = []
| [
"vint21h@vint21h.pp.ua"
] | vint21h@vint21h.pp.ua |
35b12f634cba191d0ab381928121cfddae62b33e | e6bc1f55371786dad70313eb468a3ccf6000edaf | /Extras/person/Correct/30.py | 8e0daafd32289827497ce58da380aee9123852fc | [] | no_license | prateksha/Source-Code-Similarity-Measurement | 9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0 | fb371b837917794d260a219a1ca09c46a5b15962 | refs/heads/master | 2023-01-04T07:49:25.138827 | 2020-10-25T14:43:57 | 2020-10-25T14:43:57 | 285,744,963 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | class Person:
def __init__(self,name,children=[],parent=None):
self.name = name
self.parent = parent
self.children = children
def __str__(self):
return str(self.name)
class Family:
def __init__(self,head):
self.headOfFamily = head
l = [... | [
"pratekshau@gmail.com"
] | pratekshau@gmail.com |
3b6bed21bd23013e2a3ab77161d5b920d6fee46c | 3996539eae965e8e3cf9bd194123989741825525 | /RecoTracker/TkNavigation/TkMSParameterizationBuilder_cfi.py | 2980dc5ddc47a0c08e5f2e00832f090adb32c008 | [] | no_license | cms-sw/cmssw-cfipython | 01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98 | 25ee4c810103c4a507ca1b949109399a23a524c5 | refs/heads/CMSSW_11_2_X | 2023-09-01T16:56:00.658845 | 2022-06-20T22:49:19 | 2022-06-20T22:49:19 | 136,184,115 | 1 | 0 | null | 2022-10-19T14:04:01 | 2018-06-05T13:47:28 | Python | UTF-8 | Python | false | false | 216 | py | import FWCore.ParameterSet.Config as cms
TkMSParameterizationBuilder = cms.ESProducer('TkMSParameterizationBuilder',
navigationSchool = cms.string('SimpleNavigationSchool'),
appendToDataLabel = cms.string('')
)
| [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
07d964dbb38c794daa963615521bea03830a97a0 | 16ac9158781d2616141433df9be4820e6d998e03 | /src/eavatar.ava/ava/util/webutils.py | b0baf7b20de88fd3fe101b3a0f0c4e6e06fbbd44 | [] | no_license | pombredanne/ava-srv | 0a357fb39d0179db0c0d545eb23d707d25b0e446 | 8acef33502d4bc3089f610f0b4ee33e7a5e779ae | refs/heads/master | 2020-12-31T05:56:07.741625 | 2015-03-06T06:29:56 | 2015-03-06T06:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import os
import logging
import hashlib
try:
from urllib2 import parse_http_list as _parse_list_header
except ImportError: # pragma: no cover
from urllib.request import parse_http_list as _parse_list_header
from ava.util i... | [
"sam@eavatar.com"
] | sam@eavatar.com |
1faf82a18833514a3a24d5d5fad4632118b38fe7 | 32623f1ce5aa39a35445992ad45c8d2a501a7f50 | /preprocess.py | 33b53fd02cd985d52d40da09d9c572cbf669034f | [
"MIT"
] | permissive | wx-b/BottleneckTransformers | 2b7818b83cb9b0e06763f93968b7d9a629ff589e | d20ef0c64fa2208f543abe12a49b426ca6de480e | refs/heads/main | 2023-03-22T09:13:46.595768 | 2021-03-14T20:41:19 | 2021-03-14T20:41:19 | 343,278,842 | 0 | 0 | MIT | 2021-03-14T20:41:19 | 2021-03-01T03:29:32 | null | UTF-8 | Python | false | false | 1,027 | py | from torch.utils.data import Dataset, DataLoader
from torchvision.datasets import CIFAR10
import torchvision.transforms as transforms
def load_data(args):
train_transform = transforms.Compose([
transforms.RandomCrop(32, padding=4),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
... | [
"leaderj1001@gmail.com"
] | leaderj1001@gmail.com |
90a19220b2719d297d031d80b73a65a211dfc946 | 1389c5d17fd25457a11bc368c20941709dac8497 | /docs/conf.py | 40b861a9255b1f466af7169ba06d3f7222e01d1b | [
"BSD-2-Clause"
] | permissive | pythonesque/bbcode | 6c975f21795ff5a7e5f73563818ecea26634c3ed | 5c1e68200c727cb27c8d1de18c031eb0de4ce556 | refs/heads/master | 2020-12-28T22:00:56.600070 | 2014-04-04T17:55:47 | 2014-04-04T17:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,726 | py | # -*- coding: utf-8 -*-
#
# bbcode documentation build configuration file, created by
# sphinx-quickstart on Fri May 18 16:41:40 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"dcwatson@gmail.com"
] | dcwatson@gmail.com |
abb13111e39cab4082e01f4e4d1303ec7b40253b | 3507a2d646ab0f729c717d5239633d70508d32b1 | /dh_abstracts/app/abstracts/migrations/0052_auto_20200501_0918.py | 60491238fd80ef6486b72d44a883ed74f0509568 | [
"MIT"
] | permissive | cmu-lib/dhweb_app | 26c22055afc7685153dd588e1ebabceb9cb782f7 | 8779fb1d6d52a8fb26a955b06b8589d5708589f6 | refs/heads/master | 2023-04-29T13:28:51.233931 | 2022-09-02T00:28:54 | 2022-09-02T00:28:54 | 146,502,577 | 4 | 0 | MIT | 2023-04-21T21:45:46 | 2018-08-28T20:23:16 | Python | UTF-8 | Python | false | false | 1,244 | py | # Generated by Django 3.0.5 on 2020-05-01 13:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('abstracts', '0051_auto_20200430_1659'),
]
operations = [
migrations.AlterField(
model_name='conference',
name='atten... | [
"matthew.d.lincoln@gmail.com"
] | matthew.d.lincoln@gmail.com |
e62265732cd122cd0e26ddbe58b913f07c12cd15 | 4250618abef0d0dcf399f8a2a23e2049c3458ea8 | /website/wiki/plugins/attachments/tests/test_commands.py | 4c587175b7d92e5e8afe5dbe64aeacbdd9311d9a | [
"MIT"
] | permissive | skbly7/serc | 121fd7e88df25213de4d53fce4bd03c2ea448d68 | 4442298ee05c24c3c6bacffdc56a9f6076397cce | refs/heads/master | 2020-12-27T03:18:45.280464 | 2019-05-16T06:10:31 | 2019-05-16T19:13:12 | 53,425,352 | 0 | 2 | MIT | 2019-05-16T19:13:14 | 2016-03-08T16:00:03 | Python | UTF-8 | Python | false | false | 830 | py | from __future__ import unicode_literals
from __future__ import absolute_import
import os
import tempfile
from wiki.tests.test_commands import TestManagementCommands
from .. import models
class TestAttachmentManagementCommands(TestManagementCommands):
"""
Add some more data
"""
def setUp(self):
... | [
"skbly7@gmail.com"
] | skbly7@gmail.com |
4758ae6cfaaa570ea9da000c7e5425db75ff1082 | 3883a083eb9c5dd5158b78e6c58521e99a76a4b9 | /tests/__init__.py | 1a6e448bd6990e0eb68aa9de46d6a723e0eec56a | [
"MIT"
] | permissive | jeyong/yakut | 1a4f8b68eb1230b6f31a296d0adcab8ff4e7fa02 | 58fa441316fd458a88210c10933c2035db4151f7 | refs/heads/main | 2023-06-20T17:16:14.125961 | 2021-07-24T18:37:32 | 2021-07-24T18:37:32 | 392,887,348 | 0 | 0 | MIT | 2021-08-05T03:09:51 | 2021-08-05T03:09:51 | null | UTF-8 | Python | false | false | 388 | py | # Copyright (c) 2020 UAVCAN Consortium
# This software is distributed under the terms of the MIT License.
# Author: Pavel Kirienko <pavel@uavcan.org>
import pathlib
# Please maintain these carefully if you're changing the project's directory structure.
TEST_DIR = pathlib.Path(__file__).resolve().parent
ROOT_DIR = TES... | [
"pavel.kirienko@gmail.com"
] | pavel.kirienko@gmail.com |
ed11b6462e09bf8b151ec3fec9ccf86c077672b6 | a8dad8f2cedc5285d4e873f5ddfe4d865fb0bc84 | /suffixArrays/differentImplementations.py | f30c7c1956462a02e5f3b184c1cc4aee790b7804 | [] | no_license | chrisjdavie/Strings | 78cea1afe5a097e67d4a9dfc96a8292b60880b64 | 58088c70ccd7ba6b12c38debe5d49bcefb6b012c | refs/heads/master | 2016-08-11T16:56:37.675848 | 2016-01-26T20:16:42 | 2016-01-26T20:16:42 | 50,377,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | '''
Created on 24 Jan 2016
@author: chris
'''
def main():
txt = 'banana'
naiveSuffixArray = buildSuffixArray(txt)
print "Naive suffix array construction, O(N**2logN)"
for i in naiveSuffixArray:
print i
# Naive version
def buildSuffixArray(txt):
def sub... | [
"chris.d@theasi.co"
] | chris.d@theasi.co |
4f5bcc2b79acc49ca85c08c8f00327f382be31e5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /3Ekam9jvbNKHDtx4K_22.py | 0fffa75667ed4226e23a6893a14817bcaba98186 | [] | 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 | 567 | py | """
Write a function that takes coordinates of two points on a two-dimensional
plane and returns the length of the line segment connecting those two points.
### Examples
line_length([15, 7], [22, 11]) ➞ 8.06
line_length([0, 0], [0, 0]) ➞ 0
line_length([0, 0], [1, 1]) ➞ 1.41
### Notes
* Th... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8ae42f7932bc4e5b7eab61d43d4d648eb1e7c1c4 | 4dad1db5f629ddbaa7aa2ebfe84e12ac6ae8ebad | /src/game/logic/mark_drawer.py | 9e9649cd9ff43f4247f35c23bfbaa05f30bc8e4e | [] | no_license | stellarlib/centaurus_old | 70ea8d6d70a490f932fd3c912c2ef76be684afb4 | 92d4f51ebeee56f8b4113c59412356870a11d3a5 | refs/heads/master | 2022-03-18T18:33:38.180192 | 2019-10-27T13:43:09 | 2019-10-27T13:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | from stellarlib.hex_tool import hex_to_pixel, Hex
from src.icon import IconSprite
from src.color import Color
class MarkDrawer(object):
FLASH_RATE = 6
A = 0
B = 1
def __init__(self, logic):
self.logic = logic
self._marks = []
self.tick = 0
self.state = MarkDrawer.A
... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
7738dd876d2768e08b785880012ea33983ed231f | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-dbs/aliyunsdkdbs/request/v20190306/GetDBListFromAgentRequest.py | 084cac476f9472a912185cbf76e4a94e6cd9d365 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,188 | 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 |
c23fc06fb1457f946585a4c3fff377ef92ceecd6 | e8bf00dba3e81081adb37f53a0192bb0ea2ca309 | /domains/nav/problems/training/problem1030_SD.py | b0f61017c706d830ef340d72709fcdf39d1b3bb2 | [
"BSD-3-Clause"
] | permissive | patras91/rae_release | 1e6585ee34fe7dbb117b084df982ca8a8aed6795 | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | refs/heads/master | 2023-07-13T20:09:41.762982 | 2021-08-11T17:02:58 | 2021-08-11T17:02:58 | 394,797,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | __author__ = 'patras'
from domain_springDoor import *
from timer import DURATION
from state import state, rv
DURATION.TIME = {
'unlatch1': 5,
'unlatch2': 5,
'holdDoor': 2,
'passDoor': 3,
'releaseDoor': 2,
'closeDoors': 3,
'move': 7,
'take': 2,
'put': 2,
}
DURATION.COUNTER = {
... | [
"patras@umd.edu"
] | patras@umd.edu |
a992c10446423b11c798c56632e5210390ac738d | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow/source/numpy/linalg/__init__.py | 69445f541db75347d5ec311d5ef8e63665302920 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 2,343 | py | """
Core Linear Algebra Tools
=========================
=============== ==========================================================
Linear algebra basics
==========================================================================
norm Vector or matrix norm
inv Inverse of a square matrix
solve ... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
4df6e4068dd99c143bbb395b712e899f3a153fb8 | bb41814dc79f56a082a777e17ed31320db43edf4 | /math/0x02-calculus/17-integrate.py | 7595123026899449072db63392aba86a9688640a | [] | no_license | garimasinghgryffindor/holbertonschool-machine_learning | a92c619b6ad2d110ed97b33fa9903f5134c96866 | 856ee36006c2ff656877d592c2ddb7c941d63780 | refs/heads/master | 2023-08-01T09:58:13.863062 | 2020-11-28T00:50:55 | 2020-11-28T00:50:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | #!/usr/bin/env python3
"""
A function that calculates the integral of a polynomial
"""
def poly_integral(poly, C=0):
"""
Returns a list of the integral
>>> poly = [5, 3, 0, 1]
>>> print(poly_integral(poly))
[0, 5, 1.5, 0, 0.25]
"""
if type(poly) is not list or len(poly) == 0:
retur... | [
"kenneth.ca95@gmail.com"
] | kenneth.ca95@gmail.com |
bb331262c72c30097426d7e5893c315247f54530 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/dkcgeo002/question1.py | 3bd13139130a25eac4125612bc0ecbdb925e0152 | [] | 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 | 434 | py | __author__ = 'George de Kock'
""" Printing Strings
2014-4-20 """
names = []
length = 0
print("Enter strings (end with DONE):\n")
while True:
nextstr = input("")
if nextstr == "DONE":
break
names.append(nextstr)
if len(nextstr) > length:
length = len(nextstr)
leng... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
1ad967c9e59e5e94e6d9cdfa1c0a4db9408bb056 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /gfsa/datasets/padding_calibration_test.py | 94d0cd41593d6cc232526608b425428d33fc1b6b | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 2,131 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
18caddf54f82ac9aac3080ca35c1274d616ae614 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/315/99246/submittedfiles/principal.py | f2b8783bc70994b635e87974903692d8ebcb10a2 | [] | 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 | 298 | py | # -*- coding: utf-8 -*-
from minha_bib import *
#COMECE AQUI ABAIXO
matriz = [[' ',' ',' '],[' ',' ',' '],[' ',' ',' ']]
print (matriz[0][0] + '|' + matriz[0][1] + '|' + matriz[0][2])
matriz[0][0] = input('dgite sua jogada: ')
print (matriz[0][0] + '|' + matriz[0][1] + '|' + matriz[0][2])
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2a679ec14fe12c6dfd467cc8df8bb7d1ce4cd3fc | eb420ab51af4001d15058c9f485e9122bd85bb4b | /neural_sp/models/seq2seq/decoders/build.py | 348cf0c9c99d52d56024678267aba2003842b91e | [
"Apache-2.0"
] | permissive | many-hats/neural_sp | 23cb66b37343e1f36759513cf565bcddf3e1ed19 | 2f7d0ca0af3097eb2a954ad10aa3682cabe03940 | refs/heads/master | 2022-10-16T19:04:15.733439 | 2020-06-12T01:49:11 | 2020-06-12T01:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,045 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Select an decoder network."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
def build_de... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
8e59e209dbb4f149c88e33807191c9e8784e98b5 | 65d321b77b4d0134ce094ed003dee7b62411d01f | /bird_sight.py | 6aea975491acf0ce7201d75bd8f1d67db5481191 | [] | no_license | rohanpahwa1/hacker_rank_solutions | 7bb1d62ed18a51d7f067e4b38b66ae60a517d2d3 | 5e93b873fe3e9eb317d3740fb566e539683694ff | refs/heads/master | 2022-12-25T06:45:09.441465 | 2020-05-02T16:03:32 | 2020-05-02T16:03:32 | 300,040,304 | 0 | 0 | null | 2020-09-30T19:38:14 | 2020-09-30T19:38:14 | null | UTF-8 | Python | false | false | 335 | py | def count(li):
maxcount,maxvalue=0,0
for i in li:
count=0
for j in range(len(li)):
if li[j]==li[i]:
count=count+1
if count>maxcount:
maxcount=count
maxvalue=li[i]
return maxvalue
n=int(input())
li=list(map(int,input().split()))
pri... | [
"coderrohanpahwa@gmail.com"
] | coderrohanpahwa@gmail.com |
49affd70ece956f427157791e430534c5d08461b | dc8443495f48e3fa5109ba1d75864ce6b0849405 | /django_contactme/models.py | cbef2838d8c1aeeced541fe2fdb34a75390190ae | [
"BSD-2-Clause"
] | permissive | pyghassen/django-contactme | 66d40a0749be1874b4b7f0a55131c748c7789822 | 8bc33fc785c058279a295e386c8335cdfe12fd54 | refs/heads/master | 2021-01-16T22:03:50.193700 | 2013-11-12T22:00:24 | 2013-11-12T22:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | import datetime
from django.db import models
from django.conf import settings
from django.contrib.sites.models import Site
from django.utils.translation import ugettext_lazy as _
CONTACTME_MSG_MAX_LEN = getattr(settings,'CONTACTME_MSG_MAX_LEN',3000)
class ContactMsg(models.Model):
"""
An incoming message f... | [
"danirus@eml.cc"
] | danirus@eml.cc |
c3e08ff5edb4f871c90cd9ebff9ee144916c75c9 | 76e62ddbfdfba19c80b37e855a4df67672ef0808 | /PINp/2014/Platonova Olga/task_1_21.py | 3b9caf7f782c735f4194bc70c6c052dc45a5715a | [
"Apache-2.0"
] | permissive | stasvorosh/pythonintask | 9d30f3cd492e89783b7221402375c1ebe4690baa | 8169ed26510022fe0d589f4013f11749131957df | refs/heads/master | 2021-01-17T16:49:32.778063 | 2016-10-10T14:08:04 | 2016-10-10T14:08:04 | 52,255,539 | 6 | 0 | null | 2016-02-22T07:33:16 | 2016-02-22T07:33:15 | null | UTF-8 | Python | false | false | 651 | py | # Задача 1. Вариант 21.
#Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Михаил Николаевич Румянцев. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода.
# Platonova O. A.
# 29.05.2016
print("Михаил Николаевич Румянцев более изве... | [
"stasyan.v@gmail.com"
] | stasyan.v@gmail.com |
fb88c9ea0fbb2e3c93362900c14ae4ed41e7dea9 | 48e08c7d5856c35492500b6b01d3d72a31f58ffc | /Leetcode/0151-0200/0169-majority-element.py | 5b63395e26a663a73b44602c0dc2ca046b72b0ac | [
"MIT"
] | permissive | MiKueen/Data-Structures-and-Algorithms | 8d8730e539e1c112cbd4a51beae9e1c3e2184e63 | 8788bde5349f326aac0267531f39ac7a2a708ee6 | refs/heads/master | 2021-07-18T17:16:39.948239 | 2020-09-13T15:44:37 | 2020-09-13T15:44:37 | 212,309,543 | 0 | 1 | MIT | 2019-10-06T16:24:43 | 2019-10-02T10:19:07 | Python | UTF-8 | Python | false | false | 700 | py | '''
Author : MiKueen
Level : Easy
Problem Statement : Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.
You may assume that the array is non-empty and the majority element always exist in the array.
Example 1:
Input: [3,2,3]... | [
"keshvi2298@gmail.com"
] | keshvi2298@gmail.com |
85c60ef7055f79a086af1c40cb8c1b03a14575d5 | 8ce3fccd60d8491763729f08158428e39fae0136 | /DMVProject/DMVProject/settings.py | f3c6f7881b7011ff79f6502957fe523c6fff4c42 | [
"Apache-2.0"
] | permissive | cs-fullstack-master/django-authentication-ic | 32c96353ecf043015aaa6e653ec7c36ff1a9f5e5 | 4147fb2f5dd24cb6c392811a64828127a188fc13 | refs/heads/master | 2020-04-26T15:01:42.644950 | 2019-10-10T14:05:18 | 2019-10-10T14:05:18 | 173,634,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | """
Django settings for DMVProject project.
Generated by 'django-admin startproject' using Django 2.0.6.
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... | [
"kenn+git@code-crew.org"
] | kenn+git@code-crew.org |
35e683f41ad6813c8089049a1ed43996d4a831af | bcb36baf1b3d3eceffba383f72c2b5335cc7048d | /python_workout/01_numeric_types/number_guessing_game/!python3 number_guessing_game.py | 5a71fe4ef7ae6708c03cf4022442cff218c6c3da | [] | no_license | paulghaddad/solve-it | 0aa1400cefab783f4ea757921811668fb2c9477c | e0f72be0fca82bc0378def5499f7158bafff975b | refs/heads/master | 2023-01-24T03:46:24.285793 | 2021-07-06T19:44:29 | 2021-07-06T19:44:29 | 200,406,482 | 2 | 0 | null | 2023-01-06T13:53:43 | 2019-08-03T18:07:53 | Python | UTF-8 | Python | false | false | 152 | py | import random
def start_game():
number_to_guess = random.randint(0, 100)
print(number_to_guess)
if __name__ == '__main__':
start_game()
| [
"paulh16@gmail.com"
] | paulh16@gmail.com |
5dae1ba5cb09b8ee35c5387b0f76546e386b0b05 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/errors/types/language_code_error.py | a0726e95c29d72848790feafb7e84459bf2e249d | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
f765574d5ef69fa926857e9add6363407525bb75 | 9469358a1efb300fc5fdd8de5c17a288fc780c92 | /buildsimlearn/random_forest_training.py | ad6a2c7131dc6ca4b2d0f348b2cbca57093c7cda | [
"MIT"
] | permissive | shihao-zhang/buildsimhub_python_api | 3a5fc4668f9385d4b98a8eaa3ab7211aa49bef74 | daa0b7d2e92820b6b1cdaa981fb9f0d88c375012 | refs/heads/master | 2020-03-28T02:40:34.693984 | 2018-09-08T18:30:48 | 2018-09-08T18:30:48 | 147,588,888 | 0 | 0 | MIT | 2018-09-05T22:58:49 | 2018-09-05T22:58:49 | null | UTF-8 | Python | false | false | 3,193 | py | """
AUTHOR: Tracy Ruan
Date: 6/30/2018
What is this script for?
This script extract results from a parametric study from BuildSimCloud, and then use the results to train a random
forest tree model. The training accuracy will be demonstrated by MAE and MAPE, and predicted vs. actual plot will be
used for comparison.
H... | [
"weilix@alumni.cmu.edu"
] | weilix@alumni.cmu.edu |
db0ac2e92149a5025814976f491f49f3d61f8d5f | e064d46561f3bf02c3036f0487356516974bf9d7 | /network/network/migrations/0015_auto_20200823_1521.py | f6122c885d6cb77fce81b830d250bcbd8f873cf2 | [] | no_license | Koshir0/CS50-WEB-PROGRAMMING-PROJECTS | 4629575f904e60b874988c4f779a607a7fdca338 | 55cc2bdc199e070930f6c54e0fb82340a2beb7cd | refs/heads/main | 2022-12-28T20:43:49.119527 | 2020-10-18T12:57:01 | 2020-10-18T12:57:01 | 305,100,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # Generated by Django 3.0.8 on 2020-08-23 15:21
import datetime
from django.conf import settings
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('network', '0014_auto_20200823_1047'),
]
operations = [
... | [
"pentiumdesu@protonmail.com"
] | pentiumdesu@protonmail.com |
77deee6cde50602dcf0e33c1dc91f65226cc1bf3 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4129/codes/1723_2498.py | 5772432d0b8d595d73c444b8b91d7f7b7c35c5aa | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | nA = int(input("Numero de habitantes da cidade A:"))
nB = int(input("Numero de habitantes da cidade B:"))
pA = float(input("Percentual de crescimento populacional da cidade A:"))
pB = float(input("Percentual de crescimento populacional da cidade B:"))
pA = pA/100
pB = pB/100
ano = 0
while(nA < nB):
nA = nA + nA*pA
... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e809698b9a88e16c651363f39453460aef995741 | 36163a05070a9cd0daab7c8b18b49053e0365bed | /src/python/WMCore/PilotManager/plugin/PilotLSFSubmitter.py | e55ed316090572e8e85d07d8ff649a6e9087e6e4 | [] | no_license | sryufnal/WMCore | 472b465d1e9cff8af62b4f4a4587fd3927f82786 | 9575691bd7383e4de8bcdf83714ec71b3fec6aa7 | refs/heads/master | 2021-01-16T00:27:39.208561 | 2011-09-09T20:36:15 | 2011-09-09T20:36:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | from ProdAgent.Resources.LSF import LSFConfiguration
from PilotManager.CommonUtil import executeCommand
#from JobSubmitter.Submitters.BulkSubmitterInterface import makeNonBlocking
from JobSubmitter.JSException import JSException
import datetime
import logging
import sys
import os
class PilotLSFSubmitter:
def __i... | [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
8d17ac9ea8540fcad6f3379d3b9c0310f2bdb19d | ce8728986ab5c180a4be7241bd46e4146b66b1ac | /zinnia/markups.py | 737cc66cf3bfb67a13d8d7aaeb2a0e7f80ea139b | [
"BSD-3-Clause"
] | permissive | lpe234/django-blog-zinnia | 30f36c30ae61d35c2a16f42e6f88b25d7063aec0 | 0f531dfcf181d5641c01e83397f92ee415b126e5 | refs/heads/develop | 2021-01-16T21:31:06.297887 | 2014-07-19T17:37:07 | 2014-07-19T17:37:07 | 22,424,900 | 0 | 0 | BSD-3-Clause | 2019-01-08T09:33:27 | 2014-07-30T11:31:29 | null | UTF-8 | Python | false | false | 1,777 | py | """
Set of" markup" function to transform plain text into HTML for Zinnia.
Code originally provided by django.contrib.markups
"""
import warnings
from django.utils.encoding import force_text
from django.utils.encoding import force_bytes
from zinnia.settings import MARKDOWN_EXTENSIONS
from zinnia.settings import RESTR... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
c2677e6d4766eab1d542f96853a0a012f069af4d | 63f9a0d150cbef75f4e6e8246dc7ecac3f3b6d09 | /rllib/agents/marwil/marwil_torch_policy.py | e88e5e312f4039b4500907b4980e817edf215ae8 | [
"Apache-2.0",
"MIT"
] | permissive | ray-project/maze-raylit | 79f0a5af9fe4bdc13a2d5b3919da867ed5439aab | a03cd14a50d87d58effea1d749391af530d7609c | refs/heads/master | 2023-01-23T04:23:35.178501 | 2020-12-04T22:34:14 | 2020-12-04T22:34:14 | 318,274,659 | 5 | 0 | Apache-2.0 | 2020-12-04T22:34:15 | 2020-12-03T17:47:58 | Python | UTF-8 | Python | false | false | 3,105 | py | import ray
from ray.rllib.agents.marwil.marwil_tf_policy import postprocess_advantages
from ray.rllib.evaluation.postprocessing import Postprocessing
from ray.rllib.policy.sample_batch import SampleBatch
from ray.rllib.policy.torch_policy_template import build_torch_policy
from ray.rllib.utils.framework import try_impo... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
c4b99133f7194d3e60cfcaa9f64b79ad5277495d | 175e4e031471e5cdbc9bcaee2df10f5ec44871d3 | /LESSON2b/.history/backend/app_20200531173010.py | cdaa1e321b4fafb420cc3fde75d7fe23d045eec6 | [] | no_license | hiyacins/uma_study | c329d29a9c3899ab4feca21b9c47ef546b69b0bd | 067e66f258a0c89f7670c645dd7c40feee8536fa | refs/heads/master | 2023-01-23T06:40:12.435047 | 2020-06-17T15:59:34 | 2020-06-17T15:59:34 | 239,077,726 | 0 | 0 | null | 2023-01-06T08:36:26 | 2020-02-08T05:56:52 | Python | UTF-8 | Python | false | false | 505 | py | from HiyaLib import *
import unittest
from flask import Flask, render_template
# app = FlaskBuilder(__name__)
app = Flask(__name__, static_folder='../frontend/dist/static',
template_folder='../frontend/dist')
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def index(path):
print('uma... | [
"hiyacins@gmail.com"
] | hiyacins@gmail.com |
620c67ea07fdbda3cf97f05c63848e6b05f90c78 | 8d5c9369b0fb398c5a6078f6cac43ba8d67202fa | /bscan/wordlists.py | c1c5847de914e2cebdb3e2ca36abc28464a9bc57 | [
"MIT"
] | permissive | raystyle/bscan | 45191c2c0d26fe450c5d95567b83d47dfcb4c692 | 1edf0c0e738153a294d5cdc1b69d8f167152d5a2 | refs/heads/master | 2020-04-25T03:15:37.186913 | 2019-02-09T22:23:44 | 2019-02-09T22:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | """Utilities for dealing with wordlists."""
import fnmatch
import os
from typing import (
List)
def find_wordlist(wordlist_dirs: List[str], fnpattern: str) -> None:
"""Recursively search wordlist directories for a specified filename."""
for wordlist_dir in wordlist_dirs:
_walk_iter = os.walk(wor... | [
"welch18@vt.edu"
] | welch18@vt.edu |
dc9eda48d4dbd451dc8477cffc39ad159ec15d1c | 228412b856b7b79986fd460d62273ca8125f0f85 | /xpath_01.py | 0bb9832e5071f73bf646e4fd37a3877f197b3a2e | [] | no_license | patronsbai/scrapy_spider | d11820dd0ec77e5994e63140a8be85b3ac528d26 | 11f10a680f1efcd70f44b5cf28834af0e30aafc7 | refs/heads/master | 2021-05-03T09:20:03.247818 | 2018-03-08T15:26:16 | 2018-03-08T15:26:16 | 120,574,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # -*- coding:utf-8 -*-
import urllib
from lxml import etree
# def getHtml(url):
# page = urllib.urlopen(url)
# html = page.read()
# return html
if __name__ == '__main__':
# text = getHtml("http://image.baidu.com/search/index?tn=baiduimage&ct=201326592&lm=-1&cl=2&ie=gbk&word=%CD%BC%C6%AC&fr=ala&ala=1... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
f5537afaebec1f8d42eb3ac71b04ea9338c4537e | 321e58ab3e6b2385bb3549aaaefd56a58c2a51e7 | /python/atpic/wikinormalizer.py | e9803fe900f77d7005f49f1ab908174411478cda | [] | no_license | alexmadon/atpic_photosharing | 7829118d032344bd9a67818cd50e2c27a228d028 | 9fdddeb78548dadf946b1951aea0d0632e979156 | refs/heads/master | 2020-06-02T15:00:29.282979 | 2017-06-12T17:09:52 | 2017-06-12T17:09:52 | 94,095,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/python3
import atpic.log
xx=atpic.log.setmod("INFO","wikinormalizer")
"""
Used to normalize the wiki URLs
we lowercase,
replace white spaces with underscore _
This is important as this the key that is used to store/retrieve wiki pages.
"""
# may need a permanent redirect to avoid ronts indexing several ... | [
"alex.madon@gmail.com"
] | alex.madon@gmail.com |
701e7a3fe9b862f9be8c29065d8556106cae9844 | c748470949427eaf78d752bbae002c5bc143184f | /hop.py | effdb488859cb1587aa7cb041e2841089c35ebfb | [] | no_license | SleepyBag/MNSC | 6ea7ec1ced5407e2309582d46113a8da9473ac0e | efc5ec9ddf2faf743585aed1b9371f1af8ee24df | refs/heads/master | 2020-04-07T16:31:57.422796 | 2019-01-09T12:40:20 | 2019-01-09T12:40:20 | 158,532,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | from collections import Iterable
import tensorflow as tf
from attention import attention
def hop(scope, last, sentence, sentence_bkg, bkg_iter, bkg_fix,
doc_len, real_max_len, convert_flag,
biases_initializer=tf.initializers.zeros(),
weights_initializer=tf.contrib.layers.xavier_initializer()):... | [
"xueqianming200@gmail.com"
] | xueqianming200@gmail.com |
a3882d61d3ed8504f857b3e9435321d0d53a28b0 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/gcc/all/test_v1_package/conanfile.py | a9e585e6ddfd44fc0a19029ef3fea80cb4a37849 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 1,498 | py | from conans import ConanFile, tools
import os
class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def test(self):
def chmod_plus_x(name):
if os.name == 'posix':
os.chmod(name, os.stat(name).st_mode | 0o111)
... | [
"noreply@github.com"
] | conan-io.noreply@github.com |
9555111af343a9c31ab6d5bf143cfb3904d4ca63 | 3e36dc2c0455f0332e45b634b35af745550c0709 | /mv.py | efffb2d694411511f2c57d09aa76b1f6b2a739af | [] | no_license | houking-can/GenDataset | a42388129fb7a5b1c176e77dd953f5fa27e77e7a | fb2e9d841ba0f3288e5152c97e250f709cd4f785 | refs/heads/master | 2020-05-05T09:48:47.334267 | 2019-04-26T15:18:12 | 2019-04-26T15:18:12 | 179,918,151 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import os
import json
import shutil
def iter_files(path):
"""Walk through all files located under a root path."""
if os.path.isfile(path):
yield path
elif os.path.isdir(path):
for dirpath, _, filenames in os.walk(path):
for f in filenames:
yield os.path.join(dirpa... | [
"1240723224@qq.com"
] | 1240723224@qq.com |
ab86dcc71428914d31a13d2dfe2c86a9348a0698 | 0b932d446d88013fadb8c4e0dd3ca3cc4a1a5de3 | /localizacion/inte_project_invoice_customer/__manifest__.py | ea12d16a6fdd1e47a96e0e519ff1a6c105fe846b | [] | no_license | grudiver/biumak | cd8e7477bba3389b2144fa6d35cd89d2eaf0210f | 65705737f16da087b6cb01f725236e7bc9c59c86 | refs/heads/master | 2022-04-11T13:17:33.347975 | 2020-03-24T17:55:24 | 2020-03-24T17:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | # coding: utf-8
##############################################################################
#
# Copyright (c) 2016 Tecnología y Servicios AMN C.A. (http://tysamnca.com/) All Rights Reserved.
# <contacto@tysamnca.com>
# <Teléfono: +58(212) 237.77.53>
# Caracas, Venezuela.
#
# Colaborador: Nathaly Partidas <npartidas@... | [
"soporte.innova2129@gmail.com"
] | soporte.innova2129@gmail.com |
d89f82d820f1cc4b67d71786f096d13e1a94b79b | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/709325c321084d4eaaf1af19e2ad7def.py | 7b890ef29abe7f0328ad713610bbb0e2515af7be | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 430 | py | def hey(sentence):
if does_not_say_anything(sentence): return 'Fine. Be that way!'
if is_a_question(sentence): return 'Sure.'
if is_yelling(sentence): return 'Woah, chill out!'
return 'Whatever.'
def does_not_say_anything(sentence):
return sentence.strip() == ""
def is_a_question(sentence):
return sentenc... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
169c4f2428f3f0da8b7f25fe1ec67182b0450f3f | 2c1429a1bd2d0477fd88119d4d778fc68c82adcf | /python/DeepSeaVectorDraw/FileOrData.py | 4904e9ca72ee944f59623cc411736a2f59cb76e0 | [
"Apache-2.0"
] | permissive | akb825/DeepSea | d7ac54f6d8243d43d6ea538159f3067ab7e79880 | 5a909b4f51717bc59682e51ad6aa598a25a9b965 | refs/heads/master | 2023-08-31T23:45:19.533393 | 2023-08-29T07:30:36 | 2023-08-29T07:30:43 | 142,716,767 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: DeepSeaVectorDraw
class FileOrData(object):
NONE = 0
FileReference = 1
RawData = 2
| [
"akb825@gmail.com"
] | akb825@gmail.com |
0ceba6b5029e47ade2b015ff5da2adf23055db90 | f095bf04dd1cb62319f77c096714b72efb059689 | /tests/unit/test_clang.py | e5f2780657594000c5d9c51077ad01493e67ef83 | [
"NCSA"
] | permissive | blep/Beye | b9d648039d78a9cb18b9badb717cdbc20849f0f1 | dd4cd865ed5ea51527a4d302422e4f5d68e1954a | refs/heads/master | 2021-01-18T13:18:20.381010 | 2015-06-15T13:46:14 | 2015-06-15T13:46:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # -*- coding: utf-8 -*-
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
import libscanbuild.clang as sut
from . import fixtures
import os.path
class GetClangArgumentsTest(fixtures.TestCase):
... | [
"rizsotto@gmail.com"
] | rizsotto@gmail.com |
2f903fb6b05308a81d77262030e3009f2320f061 | f68732bc40a7a90c3a1082e4b3a4154518acafbb | /script/dbus/sessionBus/timedate/007_setDate.py | b177277e1d4c004f8660ca893111b67f56b2ef9f | [] | no_license | lizhouquan1017/dbus_demo | 94238a2307e44dabde9f4a4dd0cf8ec217260867 | af8442845e722b258a095e9a1afec9dddfb175bf | refs/heads/master | 2023-02-11T19:46:27.884936 | 2021-01-08T05:27:18 | 2021-01-08T05:27:18 | 327,162,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | # -*- coding: utf-8 -*-
# ****************************************************
# @Test Case ID: 007_setDate
# @Test Description: 设置系统时间和日期
# @Test Condition: 关闭时间自动同步设置
# @Test Step: 1.重置系统时间和网络时间同步;
# @Test Result: 1.检查重置成功;
# @Test Remark:
# @Author: ut000511
# ***********... | [
"lizhouquan@uniontech.com"
] | lizhouquan@uniontech.com |
7703332074976cd837f06a01e576212613255699 | 7b51c2248463406783e18f6bc02e2e6ef68aecb2 | /agol_util.py | 5bb206e400524b0281b1b209c773956956682f63 | [] | no_license | fgassert/agol_util | 88712974720103826f9d21136a6612b6aa67a806 | cc8c8b9e5915958cafd08d65f9b3361e608a556d | refs/heads/master | 2016-09-06T12:51:04.888287 | 2015-08-04T20:57:43 | 2015-08-04T20:57:43 | 40,208,668 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,667 | py |
import urllib2
import urllib
import json
import time
class AGOL_util:
"""
Minimal client library for ArcGIS online API
Parameters:
root_url: portal root rest url e.g. http://myorg.arcgis.com/sharing/rest
username: valid arggis online username
password: valid arggis online password
"""... | [
"cowbox314@gmail.com"
] | cowbox314@gmail.com |
25cfefcf5435888d72794db6ffd98d70ec97293a | 5dae158ba8adef3a30061336cf24087273d1d1be | /scripts/gpipe/analyze_predictions.py | 3744ec4746e1bba27c9c0f8cb81351f3945c9544 | [] | no_license | Q-KIM/cgat | 595cbc51d0d34f4442d4d124e2fec2be8e1a2a79 | 3bccc543d3daa1ee8830ecb0467e2b3b3b5beb9a | refs/heads/master | 2021-01-17T07:30:00.213178 | 2015-06-05T14:03:33 | 2015-06-05T14:03:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,625 | py | ##########################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id$
#
# Copyright (C) 2009 Andreas Heger
#
# 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 ... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
c48eda74cdfae649b3b3e018fce9d41f437ae699 | e0d776ec6d324e8630d463a1be81f81ccd3a51a9 | /schools/migrations/0001_initial.py | c396d66cea23dd7a30c9e856f2417162a10c14b1 | [
"MIT"
] | permissive | moshthepitt/shulezote | 9b3c8c6d5c53e2b497977fd6900e500e09315c41 | e903a208948ab5294183e2a8c2dac9360a184654 | refs/heads/master | 2021-07-03T11:17:19.274106 | 2019-08-04T09:49:59 | 2019-08-04T09:49:59 | 32,628,463 | 2 | 1 | MIT | 2021-06-10T19:47:39 | 2015-03-21T10:35:34 | Python | UTF-8 | Python | false | false | 3,775 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import autoslug.fields
import django.contrib.gis.db.models.fields
class Migration(migrations.Migration):
dependencies = [
('places', '0001_initial'),
]
operations = [
migrations.Crea... | [
"kelvin@jayanoris.com"
] | kelvin@jayanoris.com |
c5ccb7cfc36c468958d0fc2b2ea1064cf718c1ff | 857a9e588a04b40a66b6ca115063cb67ef0427ea | /tests/divine/test_divine.py | 4eb4b8f22e7a7f5b61a5e6b996c19c894ba6ebaa | [
"MIT"
] | permissive | rambam613/timemachines | 81b88357498871f77efed0faf9c25b4c408d822c | cd243d4606b4ad9c1d419988fc6c04b0964af2e6 | refs/heads/main | 2023-07-03T07:06:24.421114 | 2021-08-07T17:42:40 | 2021-08-07T17:42:40 | 393,793,785 | 1 | 0 | MIT | 2021-08-07T21:13:35 | 2021-08-07T21:13:34 | null | UTF-8 | Python | false | false | 548 | py | from timemachines.skaters.divine.divineinclusion import using_divinity, dv
if using_divinity:
from timemachines.skaters.divine.divineskaters import divine_univariate
from timemachines.skatertools.evaluation.evaluators import hospital_mean_square_error_with_sporadic_fit
def dont_test_divine(): # too noisy
... | [
"peter.cotton@microprediction.com"
] | peter.cotton@microprediction.com |
802ad3fb02a6b071dcd0ec62f89c642999da7259 | 812f9822ddbfc986f4f230a9e6814f22c7c50e2f | /looping/perfect_generation.py | a86f8a3a5f67f02a0940915cb68d7f44d3a29483 | [] | no_license | devopsvj/PythonAndMe | 31b4aa9bade1431d6f13917122dc12bf6a118da6 | 0b1362023960b7c77c79856d4bdef0a58fec1446 | refs/heads/master | 2023-07-25T23:06:39.081191 | 2019-01-15T09:50:08 | 2019-01-15T09:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | print "Perfect Number Generation "
print "--------------------------"
n=input("Range to generate : ")
j=1
while j<=n:
i=1
ans=0
while i<j:
if j%i==0:
ans=ans+i
i=i+1
if ans==j:
print j
j=j+1
| [
"vani_kani@hotmail.com"
] | vani_kani@hotmail.com |
0f37657bada84d6c01e51ab37c33ece7d932747d | d4aff784639249a076fe43812e73a6018bb92470 | /backend/radio_sagun_18170/settings.py | 1e852819826f7c17120fdaeedd60bd9b52d09a5c | [] | no_license | crowdbotics-apps/radio-sagun-18170 | 9b8d5905886eee6d6639e00b01a1ee1c4bcfce51 | 2c841cf71152663db6e1cb57aa9f11eaf37fa201 | refs/heads/master | 2022-10-28T10:20:21.208094 | 2020-06-17T21:56:05 | 2020-06-17T21:56:05 | 273,085,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | """
Django settings for radio_sagun_18170 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
464c5cad5d003f680a9d218634ceb614aa5b67e1 | 375fceebffcf4b6a0d9fd8a8b44a743091ab403b | /scheduler/serializers.py | 4fe01a141dfc65b6ddcb71c5ff6aa22431535802 | [] | no_license | Nextafari/email-microapi-1 | c06e031645fdaa85eac015898db4800a0c83bcd7 | bd831853a8512f10a5d78d6f93c7f3b72f951259 | refs/heads/develop | 2022-12-20T08:44:28.905092 | 2020-07-24T10:49:13 | 2020-07-24T10:49:13 | 282,280,619 | 1 | 0 | null | 2020-07-24T17:36:12 | 2020-07-24T17:36:11 | null | UTF-8 | Python | false | false | 311 | py | from rest_framework import serializers, fields
from rest_framework.validators import UniqueValidator
class EmailSchedulingSerializer(serializers.Serializer):
sender = serializers.EmailField()
recipient = serializers.EmailField()
subject = serializers.CharField()
body = serializers.CharField()
| [
"phemmylintry@gmail.com"
] | phemmylintry@gmail.com |
eabb11f0ea5d6fdb3b2907edd8e5ee2c6ef9d9fe | 5a61ba76c770de8469218ff457213e122e08c7d1 | /code/at_offer/finding_sorting/coding_interview53_2.py | 55664b811beef5e8d3fc5efff8641a455f31d94b | [
"Apache-2.0"
] | permissive | zhangrong1722/interview | 6a71af26f08f036a294e36073cb9eb6ca798b993 | 187a485de0774561eb843d8ee640236adda97b90 | refs/heads/master | 2020-09-06T08:15:00.229710 | 2019-12-10T06:32:05 | 2019-12-10T06:32:05 | 220,372,777 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | """
题目:0~n-1中缺失的数字
一个长度为n-1的递增排序数组中的所有数字都是唯一的 并且每个数字都在范围0~n-1之内 在范围0~n-1内的n个数字中有且只有一个数字不在该数组中
请找出这个数字
思路:最直观的方法是直接扫描整个数组 此时时间复杂度为O(n) 但是这样显然没有用好递增排序数组这一条件 对于递增排序数组条件 首先想到的就是二分法查找
假设该数字所在位置为m 则在m位置之前 所有元素值和元素下标是相等的 换句话说 这道题就转化为查找第一个元素值和下标不等的元素
"""
class Solution(object):
def FindMissingNum(self, data)... | [
"1922525328@qq.com"
] | 1922525328@qq.com |
98b6be5a553d408eef6fc7f603d8ae31eb9c3289 | 67d76057aee86c43d32e0b74f3ac94d521ee03d8 | /tests/journal.api/warning_instance.py | de5eca5cdb7db1836b2a933265fa765c7fc5113d | [
"BSD-3-Clause"
] | permissive | jlmaurer/pyre | 0f94b1855bf029210f07c528747221751e37687f | 6af38a83621d7d6228d147b4bb94f97fbb10f6e2 | refs/heads/master | 2023-05-25T04:33:19.907452 | 2020-06-18T14:07:54 | 2020-06-18T14:07:54 | 273,362,988 | 0 | 0 | NOASSERTION | 2021-06-10T23:42:14 | 2020-06-18T23:50:28 | null | UTF-8 | Python | false | false | 986 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2020 all rights reserved
def test():
"""
Verify the channel initial state
"""
# get the journal
import journal
# make a channel
channel = journal.warning(name="tests.journal.... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
7b52d1d494431a4c038f1ceb34cfb7cb3839d9fa | 0b2facfa8d47bceea5bbf969bd1ca86215638cf6 | /macop/operators/crossovers/Crossover.py | 6569ca739a046e49a798d270ab98fcf1079664a6 | [
"MIT"
] | permissive | geoffreyp/macop | 37ec5c0ed7913068ee808e63c9c537babed479ca | 287df287e23c7e4f07e90dfcc0a99ef247f5c6b5 | refs/heads/master | 2022-12-29T06:40:11.774347 | 2020-10-23T10:25:15 | 2020-10-23T10:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | """Abstract Crossover class
"""
# module imports
from ..Operator import KindOperator, Operator
# main mutation class
class Crossover(Operator):
"""Abstract crossover extend from Operator
Attributes:
kind: {KindOperator} -- specify the kind of operator
"""
def __init__(self):
self.kind... | [
"contact@jeromebuisine.fr"
] | contact@jeromebuisine.fr |
913c5bdce3154f05cbbbcfa96d0b6baa9399ff94 | 74983098c5de53007bde6052a631845c781b5ba8 | /rosenbrock/rosenbrock11/rosenbrock.py | c62ef2c302fa5f03d647d4e23c21139f769b66eb | [] | no_license | numairmansur/Experiments | 94ccdd60f4c2cf538fab41556ac72405656c9d77 | 592f39916461c7a9f7d400fa26f849043d1377ed | refs/heads/master | 2021-04-29T12:39:16.845074 | 2017-02-15T07:36:47 | 2017-02-15T07:36:47 | 78,043,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import numpy as np
import sys
import math
import time
import csv
from hpolib.benchmarks.synthetic_functions import Rosenbrock
from time import gmtime, strftime
def main(job_id, params):
print '!!! Entered Main !!!'
print 'Anything printed here will end up in the output directory for job #:', str(job_id)
print pa... | [
"numair.mansur@gmail.com"
] | numair.mansur@gmail.com |
116e5b4c0274119f4c10ea71c3e8ab0d1ecd97c9 | 6f9b0f4832f218957bed679a428a2e022482e558 | /plato/examples/demo_vgg_screenshot.py | 81f11b7eff774d854fd3190b23bc0342054c01f2 | [] | no_license | petered/plato | 1ee983de87ff7271c93aa6bd1212cd4229e30fa4 | a0b5ef356e2d7e3d163b34871513d85abea7e510 | refs/heads/master | 2021-01-17T00:55:35.059826 | 2018-02-06T04:23:19 | 2018-02-06T04:23:19 | 29,347,512 | 45 | 6 | null | 2017-10-11T06:05:31 | 2015-01-16T12:27:14 | Python | UTF-8 | Python | false | false | 2,303 | py | from artemis.fileman.smart_io import smart_load
from artemis.general.should_be_builtins import bad_value
from artemis.plotting.db_plotting import dbplot
from plato.tools.pretrained_networks.vggnet import get_vgg_net, im2vgginput, get_vgg_label_at
import numpy as np
import time
__author__ = 'peter'
import os
"""
This p... | [
"peter.ed.oconnor@gmail.com"
] | peter.ed.oconnor@gmail.com |
fd420e31e11d26664112127c273760178087e758 | 29f1045821e7a1c3382e3cde5f5103ae95487bcd | /patch.py | c4f6cd962f58eab51fb6dc2d2989c95bb62eb667 | [] | no_license | fans656-deprecated/f6-python | 9b9b6f2cc0e79b9326c27237e3129f38c9ba4af3 | a66311173b5933ad3c800fa4ec95e08e10976275 | refs/heads/master | 2021-06-17T19:27:51.198664 | 2017-05-29T01:39:11 | 2017-05-29T01:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | from ctypes import *
from ctypes.wintypes import *
LPBYTE = POINTER(BYTE)
class STARTUPINFOW(Structure):
_fields_ = [
('cb', DWORD),
('lpReserved', LPWSTR),
('lpDesktop', LPWSTR),
("dwX", DWORD),
("dwY", DWORD),
... | [
"fans656@yahoo.com"
] | fans656@yahoo.com |
f5c4865eb14b513c99521b359506746ebfc8db9c | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-py/tests/testdir_algos/glrm/pyunit_PUBDEV_4246_pro_var.py | 9a3e5927e6d7cf142a72014512ad7deff187fdc9 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,450 | py | import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.glrm import H2OGeneralizedLowRankEstimator
from h2o.estimators.pca import H2OPrincipalComponentAnalysisEstimator as H2OPCA
# This unit test makes sure that GLRM will not return proportional of variance with values e... | [
"noreply@github.com"
] | h2oai.noreply@github.com |
27eba9359b832c4b1f984ea79cc1a47ca6c44f74 | 2581fbdc72887143376a8f9d8f0da0f1508b9cdf | /Flask/02-Flask-Basics/00-Hello_Puppy.py | 628111976300747c69976ccba1561f3710dc0524 | [
"Apache-2.0"
] | permissive | Sandy1811/python-for-all | 6e8a554a336b6244af127c7bcd51d36018b047d9 | fdb6878d93502773ba8da809c2de1b33c96fb9a0 | refs/heads/master | 2022-05-16T02:36:47.676560 | 2019-08-16T08:35:42 | 2019-08-16T08:35:42 | 198,479,841 | 1 | 0 | Apache-2.0 | 2022-03-11T23:56:32 | 2019-07-23T17:39:38 | Jupyter Notebook | UTF-8 | Python | false | false | 153 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return '<h1>Hello Puppy!</h1>'
if __name__ == '__main__':
app.run()
| [
"sndp1811@gmail.com"
] | sndp1811@gmail.com |
0d7026e92b2a3748388b9348f48c70b00ca007ca | e8d5471bd4a47794d66162060343f740e0febca4 | /server/src/uds/reports/stats/pools_usage_day.py | 54c748930c14cac52e48212aae25469933d0bdc0 | [] | no_license | git38438/openuds | ef939c2196d6877e00e92416609335d57dd1bd55 | 7d66d92f85f01ad1ffd549304672dd31008ecc12 | refs/heads/master | 2020-06-22T14:07:33.227703 | 2019-07-18T11:03:56 | 2019-07-18T11:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,676 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015 Virtual Cable S.L.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
#... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
904519195206e061a44162de0d62e90299f55869 | dc3d310934705034ab2f5bc4d3a96f07dab9b48b | /bookmanager/app01/templatetags/__init__.py | 6d5c55bcb7d1ab919a016c1955ecfd772acafca2 | [] | no_license | createnewdemo/istudy_test | 82197488d9e9fa05e0c6cc91362645fc4555dc1d | 806693f2bee13e3c28571d0d75f6b6ea70acf7a0 | refs/heads/master | 2022-04-19T05:52:53.780973 | 2020-04-17T17:04:10 | 2020-04-17T17:04:10 | 256,507,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/4/3 18:05
# @Author : lihanhan
# @Email : demo1li@163.com
# @File : __init__.py.py
| [
"320783214@qq.com"
] | 320783214@qq.com |
7e2a8bc4499302a467ccef7a2bd9d8acfad5474d | 453ca12d912f6498720152342085636ba00c28a1 | /ik_problems/strings_arrays/group_by_commas.py | c71c6fa05e3d2931f1c7105039108a1888b4b151 | [] | no_license | yanbinkang/problem-bank | f9aa65d83a32b830754a353b6de0bb7861a37ec0 | bf9cdf9ec680c9cdca1357a978c3097d19e634ae | refs/heads/master | 2020-06-28T03:36:49.401092 | 2019-05-20T15:13:48 | 2019-05-20T15:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | """
Finish the solution so that it takes an input 'n' (integer) and returns a string that is the decimal representation of the number grouped by commas after every 3 digits.
Assume: 0 <= n < 1000000000
1 -> "1"
10 -> "10"
100 -> "100"
1000 -> "1,000"
10000... | [
"albert.agram@gmail.com"
] | albert.agram@gmail.com |
e2e6c3c05d8515ffdfae3b143441d7d8cff1fbf0 | 2eae961147a9627a2b9c8449fa61cb7292ad4f6a | /openapi_client/models/put_sales_quotes.py | 14c3af41578f75de659eeb869018fcc562a12ab5 | [] | no_license | kgr-eureka/SageOneSDK | 5a57cc6f62ffc571620ec67c79757dcd4e6feca7 | 798e240eb8f4a5718013ab74ec9a0f9f9054399a | refs/heads/master | 2021-02-10T04:04:19.202332 | 2020-03-02T11:11:04 | 2020-03-02T11:11:04 | 244,350,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,456 | py | # coding: utf-8
"""
Sage Business Cloud Accounting - Accounts
Documentation of the Sage Business Cloud Accounting API. # noqa: E501
The version of the OpenAPI document: 3.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.confi... | [
"kevin.gray@eurekasolutions.co.uk"
] | kevin.gray@eurekasolutions.co.uk |
a55ff18faad4fb94d38959d3536fc5dc28070d82 | 7debf3bc23bd38182b716dcf1eb4fa9f51b6d5bc | /expense_tracker/views/default.py | a4fe3759abf52803017cfbc6dfc29d4947a4c575 | [
"MIT"
] | permissive | jjskim/expense_tracker_401d7 | 7b8ae545089200aa4801c48a118aef74d5bd6490 | 284d57829117e05aed700346c75e77b76fa25480 | refs/heads/master | 2021-07-22T05:37:57.603103 | 2017-10-31T19:09:16 | 2017-10-31T19:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | from pyramid.view import view_config
from datetime import datetime
from pyramid.httpexceptions import HTTPNotFound
FMT = '%m/%d/%Y'
EXPENSES = [
{'id': 1, 'title': 'Rent', 'amount': 50000, 'due_date': datetime.strptime('11/1/2017', FMT)},
{'id': 2, 'title': 'Phone Bill', 'amount': 100, 'due_date': datetime.st... | [
"nhuntwalker@gmail.com"
] | nhuntwalker@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.