blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1500a3650158cc07514dfc13b7275ebab2abb595 | 15c04e143e7b411e3020cf68eae4d6fbefa73c4b | /idaes/apps/caprese/tests/test_nmpc_constructor_4.py | 14a73fdc3ff7cc4ad9620af5e01d0088e5bdcc5a | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ryder-shallbetter/idaes-pse | 57f272506edc9d1bce851680b8e451e64d08a90c | eed7790869d2859e92f0b3dd8ea3ebe8c9f0462c | refs/heads/master | 2022-12-09T07:10:44.905376 | 2020-09-04T23:00:39 | 2020-09-04T23:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,693 | py | ##############################################################################
# Institute for the Design of Advanced Energy Systems Process Systems
# Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the
# software owners: The Regents of the University of California, through
# Lawrence Berkeley N... | [
"KSBeattie@lbl.gov"
] | KSBeattie@lbl.gov |
94857daf8736ce503d5898c9038a404167adde62 | 5d4158f1afa78f0a057c4e78846a918a1d4d3404 | /backend/dating/models.py | a0eec889f555525faa2e5a8a65b4854827a6acdf | [] | no_license | crowdbotics-apps/ayou-20920 | 08c1c10a73a134a53449b8688634564ed5293a21 | 0b51e4eacf271f8a956c530cdad52c57a2fa6f88 | refs/heads/master | 2022-12-18T05:33:07.601092 | 2020-10-01T03:51:32 | 2020-10-01T03:51:32 | 300,129,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | from django.conf import settings
from django.db import models
class Profile(models.Model):
"Generated Model"
bio = models.TextField()
school = models.TextField()
date_of_birth = models.DateField()
created = models.DateField(
auto_now_add=True,
)
modified = models.DateField(
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8542d8f94f5387e2b934915f15545a3bf0b258a6 | a59d55ecf9054d0750168d3ca9cc62a0f2b28b95 | /.install/.backup/platform/gsutil/third_party/boto/boto/ec2/volume.py | 95121fa8134b8cffc7f46533ef2b3dbf26f3c8b3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | bopopescu/google-cloud-sdk | bb2746ff020c87271398196f21a646d9d8689348 | b34e6a18f1e89673508166acce816111c3421e4b | refs/heads/master | 2022-11-26T07:33:32.877033 | 2014-06-29T20:43:23 | 2014-06-29T20:43:23 | 282,306,367 | 0 | 0 | NOASSERTION | 2020-07-24T20:04:47 | 2020-07-24T20:04:46 | null | UTF-8 | Python | false | false | 10,262 | py | # Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2010, Eucalyptus Systems, Inc.
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files ... | [
"alfred.wechselberger@technologyhatchery.com"
] | alfred.wechselberger@technologyhatchery.com |
4b85b79664d408e8e59f8668f2192d221940e4a3 | fcc25875b877510d5603fccfd0b85dbac58fa8d9 | /app/migrations/0003_auto_20170802_1443.py | 07ffea30903d1e974b645322a9555bd034f418b0 | [] | no_license | kmjnhb/repo | be44e0d7a685aae140e581a5b8c0935a8ddf0d7b | ac3cb388f87f2188900beac956dee6c701aaa556 | refs/heads/master | 2021-01-02T08:55:48.242512 | 2017-08-06T19:37:53 | 2017-08-06T19:37:53 | 99,100,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-02 14:43
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"you@example.com"
] | you@example.com |
41e40cf789ecd98da9bf0c36bce15b2362c97741 | 21c147d677ca59b6cb85900cf698896b658bcf45 | /nuxeo-drive-client/nxdrive/tests/test_integration_synchronization.py | 4e2318b7819eec2f9f3b93ecdd0fcd4f9cccbf15 | [] | no_license | bjalon/nuxeo-drive | c674d98aa1ec35bea7cb6f7f3240540cdbb55ce5 | 30f70c4da6f8bdf245d3444f5f546cb3236cf418 | refs/heads/master | 2021-01-23T21:30:07.839766 | 2012-09-03T12:44:59 | 2012-09-03T12:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,231 | py | import hashlib
import os
import shutil
import tempfile
import time
import urllib2
import socket
import httplib
from nose import with_setup
from nose import SkipTest
from nose.tools import assert_equal
from nxdrive.client import NuxeoClient
from nxdrive.client import LocalClient
from nxdrive.controller import Controlle... | [
"olivier.grisel@ensta.org"
] | olivier.grisel@ensta.org |
b6fee919c70d1e39c2b3d355b1d28e92deee5f0f | 4538a25701f9f108278036ab520a81dcb0de15fe | /non-euclidean/poincare_disk.py | 3b4db43c4f79cbcb2967125f2771ddae7b9111fc | [
"MIT"
] | permissive | foamliu/Complex-Analysis | daef349ddf5ad8f8037fb026d4eab35d4a3192c8 | 6389c69dad680015cb7fa5fe9789793638ccddd0 | refs/heads/master | 2020-05-09T21:00:24.454517 | 2019-05-28T09:37:17 | 2019-05-28T09:37:17 | 181,427,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import matplotlib.pyplot as plt
import numpy as np
u = np.linspace(-1, 1, 200)
v = np.linspace(0, 3, 360)
uu, vv = np.meshgrid(u, v)
z0 = uu + 1j * vv
z = (1j * z0 + 1) / (z0 + 1j)
T = np.arctan2(uu, vv)
plt.figure(figsize=(14, 6))
plt.subplot(1, 2, 1)
plt.scatter(uu, vv, c=T, s=10, lw=0, cmap='hsv')
plt.title('real... | [
"foamliu@yeah.net"
] | foamliu@yeah.net |
fd8db4fd2ea2cced67e397b5060fe198e20fc74a | 97326c2dcdcc9ef8232d99e4445a1cc6a37aec22 | /docs/conditionals/example-6.py | bfb84e4bbe26d99c2358aba5838785b36a1e70e8 | [] | no_license | Barnsa/programming-resources | 8e1c043106089f10553eb8f303486905c7215c77 | 1ad0483a0f964f36fe65fda2d614c2782e0f1ed1 | refs/heads/master | 2022-11-17T17:06:56.736072 | 2020-07-21T13:06:52 | 2020-07-21T13:06:52 | 266,988,442 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # example-6.py
# examples of exotic literals at work
string_literals = "string"
integer_literals = 12
octal_literals = 0o11
hexadecimal_literals = 0x123
set_literals = {2, 4, 7}
complex_literals = 12J
unicode_literals = u"string"
byte_code_literals = b"string"
print(
string_literals,
integer_l... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
fcd354527ad7264d9770ddd8aa6d4c00fc4838c0 | 3fcd2c184abaa9bef5f4a916fbf0e9587da06346 | /IO/Asynchronous/Asyncio/aio_http.py | 7334a8e74fea9ff2ad791431ca5cf882865cab4a | [] | no_license | chinitacode/Python_Learning | 865ff42722e256776ae91d744b779fa476e23f45 | 49aa02367e3097aca107b70dab43b5f60a67ef9f | refs/heads/master | 2020-06-29T01:05:39.331297 | 2020-03-21T14:29:51 | 2020-03-21T14:29:51 | 200,393,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import asyncio,aiohttp
async def fetch_async(url):
print(url)
async with aiohttp.request("GET",url) as r:
reponse = await r.text(encoding="utf-8")
#或者直接await r.read()不编码,直接读取,适合于图像等无法编码文件
print(reponse)
tasks = [fetch_async('http://www.baidu.com/'), fetch_async('http://www.cho... | [
"ziyu_zhou_victoria@163.com"
] | ziyu_zhou_victoria@163.com |
93c65dd75d66f049ff657435e9c8c72035489204 | 8a38510041fbd73e23f120c59972234f79fcfc92 | /.history/app_20200724004120.py | fc080273444efadba537baadb536e3b2a0a3e5e9 | [] | no_license | ermiasgelaye/sqlalchemy-challenge | 232fee2fa899a5d4ad4fe69f229d55d7d5d6d494 | 329560a1bf137c3ed61181c2500800fb311179f1 | refs/heads/master | 2022-11-28T20:06:15.832330 | 2020-07-25T18:43:33 | 2020-07-25T18:43:33 | 280,707,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,665 | py | import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
import datetime as dt
from dateutil.relativedelta import relativedelta
################################################... | [
"ermiasgelaye@gmail.com"
] | ermiasgelaye@gmail.com |
c841438efbd14ab47aef4d8d1813c0b63f7c73b0 | 3546dd5dbcffc8509440c820faa7cf28080c5df7 | /python35/Lib/site-packages/win32comext/axscript/client/pydumper.py | a4a3a5941321bfaad120bfa5bedbefa34bfa6bae | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | Matchoc/python_env | 55ad609c8270cc6148eda22d37f36709d73b3652 | 859d84d1717a265a4085ad29706b12c19c62d36f | refs/heads/master | 2022-02-13T11:05:51.825544 | 2020-06-05T02:42:08 | 2020-06-05T02:42:08 | 75,793,921 | 0 | 1 | Apache-2.0 | 2018-12-14T07:30:28 | 2016-12-07T03:06:13 | Python | UTF-8 | Python | false | false | 2,204 | py | # pydumper.py
#
# This is being worked on - it does not yet work at all, in ay way
# shape or form :-)
#
# A new script engine, derived from the standard scripting engine,
# which dumps information.
# This generally can be used to grab all sorts of useful details about
# an engine - expose bugs in it or Pytho... | [
"matchoc@hotmail.com"
] | matchoc@hotmail.com |
ceda2d124f5d6c5c706163f206aa8d15a250ada9 | 4f0385a90230c0fe808e8672bb5b8abcceb43783 | /LNH/day5-teacher/7 包的使用/xxx/yyy/aaa/m1.py | 52ba2ce0ef803ea3d3ad665913b4de82ebbc6d7b | [] | no_license | lincappu/pycharmlearningproject | 4084dab7adde01db9fa82a12769a67e8b26b3382 | b501523e417b61373688ba12f11b384166baf489 | refs/heads/master | 2023-07-10T05:21:15.163393 | 2023-06-29T14:02:35 | 2023-06-29T14:02:35 | 113,925,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | def f1():
print('from f1') | [
"lincappu@163.com"
] | lincappu@163.com |
078cbf9ece2db7c8b5f1892f5fcbb5f78c300ffa | fe8fa8bf7273a7894f91f5027880164358047e85 | /shop/models.py | b673dfc67bb0d074ce0066def6e818b5590979ea | [
"MIT"
] | permissive | urosjevremovic/online-shop | 7935be8947ebaa4f44c28dae6ed0b895c89fcd0e | 39328da7438852206a355df5a4ae6c8aa90c186b | refs/heads/master | 2020-03-23T16:42:25.248301 | 2018-07-25T15:07:35 | 2018-07-25T15:07:35 | 141,823,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from django.db import models
from django.urls import reverse
class Category(models.Model):
name = models.CharField(max_length=120, db_index=True)
slug = models.CharField(max_length=120, unique=True)
class Meta:
ordering = ('-name', )
verbose_name = 'category'
verbose_name_plural ... | [
"jevremovic.uros91@gmail.com"
] | jevremovic.uros91@gmail.com |
a9c0cc46a672f103bd8cb638903d9daa7764666c | 0c90211f4564d4541aade68cf93997bcf64827f1 | /tests/common/plugins/conditional_mark/__init__.py | 371617973861cdc6d31896fc5259a5c3c16839c3 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | stephenxs/sonic-mgmt | 74a3662212a5ee5b2583a93fc17b43cdd5a2c0a0 | 85dd08e4d86884ff0031c75b99de3c67b5e24698 | refs/heads/master | 2023-08-15T17:48:52.537559 | 2023-05-19T03:10:08 | 2023-05-19T03:10:08 | 188,744,518 | 0 | 0 | NOASSERTION | 2021-09-17T03:06:51 | 2019-05-27T00:15:18 | Python | UTF-8 | Python | false | false | 23,816 | py | """Plugin for adding any mark to specified test cases based on conditions in a centralized file.
This plugin supports adding any mark to specified test cases based on conditions. All the information of test cases,
marks, and conditions can be specified in a centralized file.
"""
import json
import logging
import os
im... | [
"noreply@github.com"
] | stephenxs.noreply@github.com |
a8313acf22c9a36cb5066ecbeff2d5ab7d53015b | 5203d58b0e00caff0f716c68549072dabfc99fe2 | /specs/dev/swift_nrpe/simple_nonha/scale_out_swift_proxy.py | 0f3e1e9ef2bf11cb3d8ac8f8e49be673d3ab2b07 | [] | no_license | openstack-charmers/openstack-mojo-specs | 800a87280a55313bca7aec6dedc72b6097cad91f | c2224c595b0a264f24b145938ca2734c14dbbea6 | refs/heads/master | 2021-10-09T03:43:00.063224 | 2021-10-08T14:20:23 | 2021-10-08T14:20:23 | 126,203,312 | 3 | 9 | null | 2021-10-08T14:20:23 | 2018-03-21T15:50:04 | Python | UTF-8 | Python | false | false | 49 | py | ../../../../helper/setup/scale_out_swift_proxy.py | [
"liam.young@canonical.com"
] | liam.young@canonical.com |
eb0d0e43a90927231bac66479c5d230cec59cd25 | 29e2afe487acefdc17ae4b16def495632d479be3 | /morpfw/crud/__init__.py | d38eadc21aafd253567055f77b655f7f0266a68c | [] | no_license | brainysmurf/morpfw | fd2a40b660bef00b9cc0a142cbfdcb8d37620f2b | a8d5e3fa57a8d66b61840f113ba54f6c1fcf60d0 | refs/heads/master | 2020-04-10T08:26:20.123425 | 2018-12-07T09:59:43 | 2018-12-07T09:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | import morepath
from .app import App
from . import subscribers
from .app import Session
import argparse
import yaml
import sqlalchemy
import os
from .model import Collection, Model
from .rulesadapter import Adapter
from .schema import Schema
from .model import StateMachine
from .util import resolve_model
from .app impo... | [
"kagesenshi.87@gmail.com"
] | kagesenshi.87@gmail.com |
dde7bfd72a9c08bfffad33758d1137ddd7fa93d0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_53/501.py | a8f69f0a69a63542706fc8e3cfa8c19f65f8686a | [] | 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 | 286 | py | # -*- coding: utf-8 -*-
import sys
fin = sys.stdin
T = int(fin.readline())
for case in range(1,T+1):
(N,k) = map(int, fin.readline().split())
m = pow(2,N)
#print m
if (k+1) % m == 0:
print "Case #%d: ON" % (case)
else:
print "Case #%d: OFF" % (case)
| [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
41106cde601cc1c35e636198ff7b8dd1a03de755 | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/couchbase_cluster.py | bfa8f347c5dc05f02dbd954e2bd179bc7848972b | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 1,325 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
class CouchbaseCluster(object):
"""Implementation of the 'CouchbaseCluster' model.
Specifies an Object containing information about a couchbase cluster.
Attributes:
seeds (list of string): Seeds of this Couchbase Cluster.
"""
# C... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
c7c44980d93edb211bcc3294467a393395be5804 | f4912e5b302f9a9fe013a7ddefe18a599fd1715d | /app_stacks/vpc_stack.py | a595a79091241b7a77efb093e5fcf86043fcc5b0 | [] | no_license | miztiik/xray-lambda-profiler | 5c49d9e4ffcd116fc76f9a7cf5c4c7e0ea9cc45a | 5f7add49d832899e01dd54b72c1478efa9f6853f | refs/heads/master | 2021-04-11T17:07:45.722949 | 2020-08-30T13:06:14 | 2020-08-30T13:06:14 | 249,039,624 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | from aws_cdk import aws_ec2 as _ec2
from aws_cdk import core
class global_args:
'''
Helper to define global statics
'''
OWNER = 'MystiqueAutomation'
ENVIRONMENT = 'production'
REPO_NAME = 'xray-lambda-profiler'
SOURCE_INFO = f'https://github.com/miztiik/{REPO_NAME}'
VERSION = '2020_03_... | [
"13oct08@quantumfoam.uni.cc"
] | 13oct08@quantumfoam.uni.cc |
c5356e8a8533dcf0eb957bc66cfbfc82385a9321 | 05b418ec539a1df81e7b356cac33bb96fcb26b5c | /CroPy/plants.py | 127d89b3147314a4d622f55c51df5aeea8c27ac3 | [] | no_license | rjcmarkelz/CroPy | 7aff37797936b9ca676facbe9eb3bd7ea6443c09 | cc18da80ea3431783b074053f3183debc31043ba | refs/heads/master | 2021-01-10T05:10:10.677352 | 2016-01-04T05:33:34 | 2016-01-04T05:33:34 | 46,379,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | class Plant(object):
def __init__(self):
self._observers = []
def attach(self, observer):
if observer not in self._observers:
self._observers.append(observer)
def notify(self, modifier=None):
for observer in self._observers:
if modifier != observer:
... | [
"rjmarkelz@ucdavis.edu"
] | rjmarkelz@ucdavis.edu |
cf95d8797fffba43060c2f90f9dc5f76f00f38e7 | b07a69b7a82f4bd22501908501b4b6ff3c1f2a94 | /week15_and_onwards/MySite/mysite/mysite/views.py | 16156c186c2c57064ddb40e566f3e00ad26b857f | [] | no_license | PetosPy/hackbulgaria_python | 8c1103ceefc4f832c42996a86fb351bfc951797c | d7212f35cd448e55009141bd6e42b55f7f05779b | refs/heads/master | 2023-02-28T16:40:22.828545 | 2017-02-15T15:06:28 | 2017-02-15T15:06:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | from math import factorial
from django.shortcuts import render, redirect
from django.http import HttpRequest, HttpResponse
from mysite.utils.rle_compressor import compress, decompress
from mysite.utils.calculator import get_nth_fibonacci_numbers, get_nth_prime_numbers, gen_primes
def get_index(request):
return ... | [
"familyguyuser192@windowslive.com"
] | familyguyuser192@windowslive.com |
8c61aacae9721743fc2841b847755e4a17fce0e8 | fbde0e2a0c93193949db891b6633a5f61ad9f61b | /backend/home/migrations/0001_load_initial_data.py | 99c69f7d511bef2f5fc5e145ed104df74edc71db | [] | no_license | crowdbotics-apps/test-26691 | 7198419c0a613e6702c71cb568ce3bbf737d33aa | 4a6756c674919dd695b059594726f2093627f0f8 | refs/heads/master | 2023-04-20T17:56:38.407147 | 2021-05-14T12:02:01 | 2021-05-14T12:02:01 | 367,349,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "test-26691.botics.co"
site_params = {
"name": "test",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_create(default... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
014cf8b22ad535325e225718a87d99269363befe | d51b4c766661af65b4ee6e7c30f8cb4bdd8603e3 | /python/algorithm/leetcode/49.py | d9f5c2be72952c7ae5dda1bf600f8c4d534d1acc | [] | no_license | yanxurui/keepcoding | 3e988c76b123d55b32cf7cc35fbffb12c4ccb095 | d6b9f07e2d1437681fa77fee0687ea9b83cab135 | refs/heads/master | 2021-01-24T09:01:41.306597 | 2020-05-21T05:36:04 | 2020-05-21T05:36:04 | 93,400,267 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | from collections import defaultdict
class Solution(object):
def groupAnagrams(self, strs):
"""
:type strs: List[str]
:rtype: List[List[str]]
"""
ans = defaultdict(list)
for w in strs:
ans[''.join(sorted(w))].append(w)
return list(ans.values())
if... | [
"617080352@qq.com"
] | 617080352@qq.com |
51b676bf10693d8682cd739f5ef4b22908e3fe8a | a140b1c2cfcc4d9fe7d4a9fcd51f86bf8d89e41c | /2020.12.11-ASIS_CTF_Finals_2020/babyauth/v00-shellcode.py | 050b95f05ac57989f98ded6682c22009c8eb7789 | [] | no_license | xcode2010/ctf | 6f0e6f76e7cdbe44842576ec49dbbffe0de91a49 | 2c121f1e1171ff0f42a4edfb7a17261cc673adb5 | refs/heads/master | 2023-03-28T07:34:33.695719 | 2021-03-21T17:38:55 | 2021-03-21T18:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | #!/usr/bin/env python3
from pwn import *
PERCENT_S_NEWLINE = 0x4019c8
POP_RSI_RET = 0x4017fa
POP_RDI_RET = 0x4019a3
PRINTF_CHK_GOT = 0x603090
RET = 0x401545
USERNAME_READER = 0x4014c0
PRINTF_CHK_LIBC = 0x131040
MPROTECT_LIBC = 0x11bb00
WORK_PAGE = 0x603000
WORK_ADDR = 0x603150
WORK_SIZE = 0xeb0
PAGE_SIZE = 0x1000
POP_... | [
"mephi42@gmail.com"
] | mephi42@gmail.com |
fcb0ab1bb1d2a7526816655e9c3d133f73dbf1d2 | 9940f0b40f439a7aac3f58089602f26533ade000 | /Ex_Files_RESTful_Web_APIs_Django/Exercise Files/env/lib/python3.7/encodings/cp1255.py | cc8a5a597758f7c8d164dec2cff5a94b7826c421 | [] | no_license | Mosh333/REST_API_in_Django | 948ef0efd3a6a146bd94d148aa8c012ec929af68 | 7703501d5ad5bb14fefe5f734ab5780c11f400c9 | refs/heads/master | 2022-11-27T03:23:39.796926 | 2022-03-12T16:10:43 | 2022-03-12T16:10:43 | 246,197,842 | 0 | 0 | null | 2022-11-22T10:14:06 | 2020-03-10T03:18:04 | Python | UTF-8 | Python | false | false | 1,067 | py | XSym
0107
0760a0cdb76900a66edc55d0c3f5a80c
/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/encodings/cp1255.py
... | [
"howladermoshiur@gmail.com"
] | howladermoshiur@gmail.com |
a1a379a55c101ba392210109d8b279c357d5eff1 | 8dd0191025c90e0c2fe11c9720c37a06d5bd1ca6 | /doit/cmd_base.py | 2b62e24181cb13a79275a291961bc0066cbc951d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | NiKo-jr/doit | bfda91771d55c93ca41819bac73557c032b011d4 | b29fdb15a47406bdcbd024f40f7ec56003269b72 | refs/heads/master | 2021-05-11T11:09:07.962317 | 2018-01-19T12:29:47 | 2018-01-19T12:29:47 | 118,121,376 | 0 | 0 | null | 2018-01-19T12:14:08 | 2018-01-19T12:14:08 | null | UTF-8 | Python | false | false | 14,867 | py | import inspect
import sys
from collections import deque
from . import version
from .cmdparse import CmdOption, CmdParse
from .exceptions import InvalidCommand, InvalidDodoFile
from .dependency import CHECKERS, DbmDB, JsonDB, SqliteDB, Dependency
from .plugin import PluginDict
from . import loader
def version_tuple(v... | [
"schettino72@gmail.com"
] | schettino72@gmail.com |
60bd221d9a7201ed61317b388cf986a9fd6e682d | 8eeb9db7f4bc986a8b24c09b8af1ce10dd97689e | /posts/models.py | 4f07bafa70e93300ec6e92397229f9351b72512c | [] | no_license | jotasic/wecode_wanted | e21a400b6582ae8a5b5af7f8242f67575dc91b74 | e291513d8e6353ad6318d0894cf8f78d07d084a7 | refs/heads/main | 2023-08-29T01:36:44.595014 | 2021-10-22T02:39:20 | 2021-10-22T02:39:20 | 418,725,436 | 0 | 0 | null | 2021-10-22T02:45:28 | 2021-10-19T01:20:52 | Python | UTF-8 | Python | false | false | 430 | py | from django.db import models
from django.conf import settings
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.SET_NULL, null=True)
title = models.CharField(max_length=255)
content = models.TextField()
created_at = models.DateTimeField(auto_... | [
"embedded61@gmail.com"
] | embedded61@gmail.com |
a27851e4f4a4bde844104c7a71758141934c9c74 | 4be2c72579486ad04a00db0349028de96d2dce89 | /scripts/Helios/commands/Make Motor Boats.py | c403c602b6a5d260ed9ddd810716127baf95914c | [] | no_license | italic-r/maya-prefs | 6a617d40beee8937186b4699c5cead44e01c2d40 | aa21e5e2938dc2698ce5f555ee74a594e08aed2b | refs/heads/master | 2021-09-09T16:31:00.411349 | 2018-03-18T01:40:10 | 2018-03-18T01:40:10 | 86,961,959 | 16 | 8 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | mc.MakeMotorBoats() | [
"italic.rendezvous@gmail.com"
] | italic.rendezvous@gmail.com |
57258779008b8a1bc52126eeb06abb34a183b4e5 | b850aafa66b84b8524cfd87ca6a475cd4d7f48df | /src/bio2bel_chebi/parser/inchis.py | a6a1252d6f077d7d8b260a9316a9bd1ac7e75ecf | [
"MIT"
] | permissive | bio2bel/chebi | 35a738542a6a7ff065a1c95ad8c53e5aa1b63c20 | e73a35cca08441a52117fc159d8f44364b1a8836 | refs/heads/master | 2020-06-26T04:50:09.859382 | 2019-11-13T13:37:25 | 2019-11-13T13:37:25 | 97,003,706 | 0 | 1 | MIT | 2018-11-13T15:40:54 | 2017-07-12T12:13:51 | Python | UTF-8 | Python | false | false | 1,259 | py | # -*- coding: utf-8 -*-
import logging
import os
from urllib.request import urlretrieve
import pandas as pd
from ..constants import INCHIS_DATA_PATH, INCHIS_URL
log = logging.getLogger(__name__)
def download_inchis(force_download=False):
"""Downloads the compound inchis
:param bool force_download: If tr... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
c7097092229d956c88ee536374160c1cbf5a2ed6 | 76baf5ff0e8717ab6a17575bc9c126e7eb4e2f28 | /docker/shummie/Bots/shummiev66-11-3.py | f49835ae6e6db751bd27c5c930c4a39c68b513c1 | [] | no_license | nmalaguti/halite-bots | f0e8caf3e9898884e6476ff5d36884a2f4e07309 | 82efde39f83b5c34719d31396c7659d2c2f18c03 | refs/heads/master | 2023-07-15T01:20:00.784928 | 2023-06-29T02:49:35 | 2023-06-29T02:49:35 | 73,758,433 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,124 | py | # ==============================================================================
# Imports
# ==============================================================================
import functools
from functools import wraps
import cProfile
import itertools
import logging
import math
import numpy as np
import random
import sci... | [
"nick@narmi.com"
] | nick@narmi.com |
0965831befd1d9b3c359c1e3361b6e2a5064d506 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-cs/aliyunsdkcs/request/v20151215/DescribeClusterTokensRequest.py | a005fcd3967fcf1bfce0a52277c2b2397cd22a89 | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
33c88c043e19e96f7ec08c9b8158b562e0b70726 | 3cd4902b67de144d8e6f36335e125d0548d8cf97 | /tools/detecting/detectron/DetectronDetector.py | d0414990eb597a4ad1c3d6b3ff9435d39727a628 | [
"MIT"
] | permissive | stefantaubert/imageclef-lifelog-2019 | 5d201c2a28f15f608b9b58b94ab2ecddb5201205 | ad49dc79db98a163c5bc282fb179c0f7730546b3 | refs/heads/master | 2022-10-06T12:42:30.011610 | 2022-08-29T13:35:09 | 2022-08-29T13:35:09 | 196,553,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | import pickle
from src.detecting.DetectorBase import DetectorBase
from src.detecting.img_path_parser import get_paths
from src.io.paths import get_path_detectron
from src.globals import usr1
"""
I run detectron on remote machine and save the results as a dictionary with keys = image_id and values: class predictions.
... | [
"stefan.taubert@posteo.de"
] | stefan.taubert@posteo.de |
df7c68265d10a6433fd2266a5d72fd920abbefbb | 11e8bf1ae982cf4aefcc8f146a7d706e854ea8bb | /royale/urls.py | ca5d0de7fc1b38c336288ea9bf9582a93b0c5b42 | [] | no_license | DK-denno/royalAndRich | d9801a8bb26b915a3c6d0e09e3930f4339ff8c52 | 91e36257ce8ea192ff65c993aab7ea23958dc3c5 | refs/heads/master | 2023-08-26T14:16:13.306965 | 2020-02-20T10:10:42 | 2020-02-20T10:10:42 | 240,218,352 | 0 | 0 | null | 2021-09-22T18:36:12 | 2020-02-13T09:07:42 | CSS | UTF-8 | Python | false | false | 460 | py | from django.urls import path
from django.conf.urls.static import static
from django.conf import settings
from . import views
#Your views go here
urlpatterns=[
path(r'',views.index,name="home"),
path(r'about/',views.about,name='about'),
path(r'classes/<int:code>/',views.classes,name="classes"),
path(r'c... | [
"dennisveer27@gmail.com"
] | dennisveer27@gmail.com |
5dbf192b4ecf8a9c22c3a203e1bcfe82214a1d63 | eacfc0cddb477973a3ca491f35da14b1bda477c3 | /src/wepy_tools/sim_makers/openmm/lennard_jones.py | 4a7c741bdea75a841d2beeb2cc3d469f75dffb90 | [
"MIT"
] | permissive | edeustua/wepy | 933ccb4c15b4a80393700333a04fd01f229e27e3 | f1a2ef5c8cc368d5602c9d683983b3af69a48ce2 | refs/heads/master | 2020-09-29T04:40:55.759360 | 2019-12-06T23:33:11 | 2019-12-06T23:33:11 | 226,952,678 | 0 | 0 | MIT | 2019-12-09T19:40:26 | 2019-12-09T19:40:25 | null | UTF-8 | Python | false | false | 2,492 | py | import numpy as np
from scipy.spatial.distance import euclidean
from wepy.runners.openmm import GET_STATE_KWARG_DEFAULTS
from wepy.resampling.distances.distance import Distance
from wepy.boundary_conditions.receptor import UnbindingBC
from openmmtools.testsystems import LennardJonesPair
from wepy_tools.sim_makers.op... | [
"samuel.lotz@salotz.info"
] | samuel.lotz@salotz.info |
31bb29a5c07f4c3feb4ecfe83bfab2823b6a4cfd | 5785d7ed431b024dd910b642f10a6781df50e4aa | /revise-daily/google/educative/dp/8_count_palindromic_substrings.py | 52508c3007719253316bfe8c5f1b6816f8bdfaa4 | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py |
def count_palindromic_substrings(s):
n = len(s)
def is_palindrome(t):
return t == t[::-1]
count = 0
for i in range(n):
for j in range(i+1):
substr = s[j:i+1]
if is_palindrome(substr):
count += 1
return count | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
86d5c1b6dd0df2f209c9cc42fc7d9348c3668873 | d4442db5a7ab9db2b04fef640a9864f3fba54758 | /test/python/WMComponent_t/JobAccountant_t/fwjrs/genheritagetest.py | 9a7a0a40d5bd27ceeb6ac7e078d5084b139e9fea | [] | no_license | stuartw/WMCore | fa25ff19ab5058a635d35d3c58a0ac56a3e079a1 | 38c39c43f7237fd316930839674ac9be3c0ee8cc | refs/heads/master | 2021-01-18T07:18:18.324604 | 2012-10-18T22:30:34 | 2012-10-18T22:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | #!/usr/bin/env python
import random
from WMCore.FwkJobReport import Report
from WMCore.DataStructs.Run import Run
from WMCore.Services.UUID import makeUUID
outputModules = ["outputModule1", "outputModule2", "outputModule3",
"outputModule4", "outputModule5", "outputModule6",
"outputM... | [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
4d19b71617a5f44cb851d027f2be980d24ad3002 | f6c7084f91434566a9aa1b821d2739edede036f8 | /CreateVariable/DeclGlobalVariable.py | 7835a187bcd4fd36206b75f1ee423dc44fc31e90 | [] | no_license | GANESH0080/Python-WorkPlace | 87fc3776e693d254661c476bfe977c696d087276 | 43196086bee26cbeae25fb7bbacb8dbbde85d648 | refs/heads/master | 2020-09-20T03:45:13.824696 | 2019-11-27T07:27:17 | 2019-11-27T07:27:17 | 224,369,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | i = 50
print(i)
def demofunction():
global i
print(i)
i = "Hi Ganesh Salunkhe"
demofunction()
print(i)
| [
"ganusalunkhe@gmail.com"
] | ganusalunkhe@gmail.com |
420668d0471ddfbafbaf0dad7310591ab306d6a3 | a66b69c3f9da9779ae80f347b61f47e3bc5ba145 | /day1011/listex02.py | b3ea0e6ba188c71120e4efb0096c38079bc66870 | [] | no_license | kyungtae92/python-basic | c841d9c9c6196b01da3de007c1298fe2c4b8f693 | 80a2051e37b6e87c9dbfd332c4b2946089ff0d5c | refs/heads/master | 2020-11-25T08:01:22.156661 | 2019-12-17T08:25:38 | 2019-12-17T08:25:38 | 228,567,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | # 리스트 문자열에서 인덱스를 이용한 출력
text = "Will is power"
print(text[0], text[3], text[-1])
flist = ["apple", "banana", "tomato", "peach", "pear"]
print(flist[0], flist[3], flist[-1])
# 리스트 또는 문자열에서 슬라이싱에서 원하는 범위만큼 출력
sqr = [0,1,4,9,16,25,35,49]
print(sqr[3:6])
print(sqr[3:])
# 리스트 두개 합치기
marvel = ['스파이더맨', '토르'... | [
"noreply@github.com"
] | kyungtae92.noreply@github.com |
fda51d083f1d95aaab3c9623e46013c49c73c731 | 464d461e2c90724950cae9db0c4b72b55d82aab8 | /jumia/migrations/0008_healthbeautyscrape_kidsfashionscrape_menfashionscrape_womenfashionscrape.py | 3f2670f6ea77d1bac89cbfeb56a8c383c57531a2 | [
"MIT"
] | permissive | Kolaposki/Discoco | 47a1b4dde54612bf7b2adc372fc3ba8950f233af | 0a4d799c19639681e264e2d39f3a1c134d42d573 | refs/heads/master | 2023-05-24T19:46:08.713235 | 2022-07-25T05:32:20 | 2022-07-25T05:32:20 | 233,392,472 | 4 | 3 | null | 2023-05-22T22:40:50 | 2020-01-12T12:55:40 | JavaScript | UTF-8 | Python | false | false | 2,693 | py | # Generated by Django 3.0.1 on 2020-02-07 17:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jumia', '0007_electronicsscrape_fashionscrape'),
]
operations = [
migrations.CreateModel(
name='HealthBeautyScrape',
... | [
"oshodikolapo@gmail.com"
] | oshodikolapo@gmail.com |
8cf61bd51098673db4e399337ad6541fee589be4 | 3973fa32d968b7ab2d1c8da29bffd2d1544151d3 | /scripts/pipeline/predict.py | 68aca425ac4f576611a9ed3afee48f71468e8091 | [
"BSD-3-Clause"
] | permissive | SBUNetSys/DeQA | 638e2fa21013bda5f254c75eb492418f4764d2c9 | 5baf2e151b8230dde3147d2a1e216a3e434375bb | refs/heads/master | 2020-06-19T21:18:07.047544 | 2019-07-14T19:48:00 | 2019-07-14T19:48:00 | 196,876,581 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,422 | py | #!/usr/bin/env python3
# Copyright 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""Run predictions using the full DrQA retriever-reader pipeline."""
import argparse
import json
import loggin... | [
"qqcao.cs@gmail.com"
] | qqcao.cs@gmail.com |
966807e614ac6bbe170a8ae017f3233ee5378d41 | 8130c34d546c323d6d5d2ca6b4a67330af08828f | /.history/menu_app/views_20210104163425.py | 0d705d9f471965254e8ff1766b6e951f8ca7ff08 | [] | no_license | lienusrob/final | ba2dad086fc97b21b537ef12df834dfadd222943 | f2726e31f1d51450e4aed8c74021c33679957b28 | refs/heads/master | 2023-02-15T01:36:54.463034 | 2021-01-07T12:47:05 | 2021-01-07T12:47:05 | 327,279,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,003 | py |
from .models import Cart, CartItem, MenuItem, ItemsCategory, Order, Orders, generate_order_id, Extras
from account_app.models import Profile
from .forms import AddToCartForm
from django.views.generic import ListView
from django.shortcuts import render, get_object_or_404, redirect
from django.urls import reverse
fr... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
e0650e53f4315a7ace0c0cd4c087506a4d2f209d | 1ff265ac6bdf43f5a859f357312dd3ff788804a6 | /lab_18_if_challenge.py | f421762b2c086de477f11ec2eed7e78cbab95eec | [] | no_license | sgriffith3/july_pyb | f1f493450ab4933a4443518863f772ad54865c26 | 5e06012ad436071416b95613ed46e972c46b0ff7 | refs/heads/master | 2022-11-19T04:58:41.632000 | 2020-07-17T19:46:44 | 2020-07-17T19:46:44 | 279,335,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # Hurricane Rating System
import random
storm = random.randint(1, 200)
print(storm)
# Five 157 or greater
if storm >= 157:
print("Cat 5")
# Four 130 to 156
elif storm >= 130:
print("Cat 4")
# Three 111 to 129
elif storm >= 111:
print("Cat 3")
# Two 96 to 110
elif storm >= 96:
print("Cat 2")
# One 74 t... | [
"sgriffith@alta3.com"
] | sgriffith@alta3.com |
e8e1ffe845d61c38aad005af58ab3b94ba501715 | b227199eda4f1e894199c8a8f5e87c39df83af45 | /examples/tdd/tests/functional/test_users.py | 4160a2ee094794a0b20cd67104ddd644ad404cbb | [] | no_license | gabrielfalcao/tumbler | c8d67a8bfd4555ff0fe04f984017620ee320fe7f | 322976083b2c76286f98dcad445eb22b7665f24f | refs/heads/master | 2021-01-20T05:53:47.780517 | 2015-06-24T19:32:58 | 2015-06-24T19:32:58 | 29,232,813 | 3 | 0 | null | 2019-12-20T17:20:26 | 2015-01-14T07:33:42 | Python | UTF-8 | Python | false | false | 788 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from sure import scenario
from datetime import datetime
from freezegun import freeze_time
from tumbler.core import Web
from timeless.models import User
def prepare_db(context):
context.web = Web()
context.web.prepare_models()
context.web.db.create_all()
de... | [
"gabriel@nacaolivre.org"
] | gabriel@nacaolivre.org |
d2b6c214a809b88c7e0670089891752e488a98bf | 4e30d990963870478ed248567e432795f519e1cc | /ciscoisesdk/models/validators/v3_1_1/jsd_d0ee193cc65780af11ed96b1758755.py | b8fdbb93fe7fa8f08ca7035bf6c68d28a611e89f | [
"MIT"
] | permissive | CiscoISE/ciscoisesdk | 84074a57bf1042a735e3fc6eb7876555150d2b51 | f468c54998ec1ad85435ea28988922f0573bfee8 | refs/heads/main | 2023-09-04T23:56:32.232035 | 2023-08-25T17:31:49 | 2023-08-25T17:31:49 | 365,359,531 | 48 | 9 | MIT | 2023-08-25T17:31:51 | 2021-05-07T21:43:52 | Python | UTF-8 | Python | false | false | 3,583 | py | # -*- coding: utf-8 -*-
"""Identity Services Engine registerNode data model.
Copyright (c) 2021 Cisco and/or its affiliates.
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, i... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
5b67a2791270a6af0fcb24d49ab43ac438bc7ae7 | 055f4cc4d565b33d76c1f87c0dfe02f67328a3c9 | /celery_snippet/celery_snippet/celery.py | b9d9290076e141092c5ad792b1ebf785e5120dec | [] | no_license | Sundarmax/python-celery-django | 0eb4ac38df69bcaa9fed4f7c3f28b1904bb21fcc | 3b0c47cee80056dae36d970a3ceb774f279548eb | refs/heads/master | 2023-04-02T14:47:01.628356 | 2021-04-08T10:23:41 | 2021-04-08T10:23:41 | 355,795,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'celery_snippet.settings')
app = Celery('celery_snippet')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
| [
"sundar.info22@gmail.com"
] | sundar.info22@gmail.com |
c9efe071470bec0e0fd25716ccb12f14514f472e | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/928/original/928.minimize-malware-spread-ii.0.py | f3b1e244ce25969bd413823d5bb20f56702a671e | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,960 | py | #
# @lc app=leetcode id=928 lang=python3
#
# [928] Minimize Malware Spread II
#
# https://leetcode.com/problems/minimize-malware-spread-ii/description/
#
# algorithms
# Hard (38.10%)
# Total Accepted: 3K
# Total Submissions: 7.8K
# Testcase Example: '[[1,1,0],[1,1,0],[0,0,1]]\n[0,1]'
#
# (This problem is the same a... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
b6a5c2f15626edecf3ea8a6763bb009f676c390c | f63dc9959bbd596c04f70f671f9b0cbc70adb552 | /env/lib/python3.6/locale.py | 85ad85424ce8923f94bdd4a9e48f80c782c8e4d2 | [] | no_license | paulfranco/imd_api | efa4e5d5399fea191f215d2a8d907adfb55ab31a | 1889290b5596fd1a020c336cc7c28d8521785a15 | refs/heads/master | 2020-03-16T06:30:31.077649 | 2018-05-09T02:10:03 | 2018-05-09T02:10:03 | 132,556,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | /Users/paulfranco/anaconda3/lib/python3.6/locale.py | [
"paulfranco@me.com"
] | paulfranco@me.com |
cf18022549aef20a26f2714caf5b93d8f7efabc5 | af7df9d77a2545b54d8cd03e7f4633dce6125f4a | /ch01/dump_db_file.py | 08c49f7df3fa12cf40a63f58a162267690e31ca1 | [] | no_license | socrates77-sh/PP4E | 71e6522ea2e7cfd0c68c1e06ceb4d0716cc0f0bd | c92e69aea50262bfd63e95467ae4baf7cdc2f22f | refs/heads/master | 2020-05-29T08:46:47.380002 | 2018-11-16T10:38:44 | 2018-11-16T10:38:44 | 69,466,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | # -*- coding: utf-8 -*-
from make_db_file import loadDbase
db=loadDbase()
for key in db:
print(key, '=>\n', db[key])
print(db['sue']['name'])
| [
"zhwenrong@sina.com"
] | zhwenrong@sina.com |
048e806cc70ff70663d75e5ce3c42d2c27bff113 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-organizations/huaweicloudsdkorganizations/v1/model/delete_policy_response.py | 88dddb590f321ee7c66d8f2afe81f37f6be70dba | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 2,431 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeletePolicyResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the va... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
80904623674486b0b93747232379e3d88873ba80 | 8a73cde463081afd76427d5af1e6837bfa51cc47 | /harvester/core/migrations/0025_delete_old_resources.py | 77fb7080cd64397347c6dd06423d07ea64ccfdb9 | [
"MIT"
] | permissive | surfedushare/search-portal | 8af4103ec6464e255c5462c672b30f32cd70b4e1 | 63e30ad0399c193fcb686804062cedf3930a093c | refs/heads/acceptance | 2023-06-25T13:19:41.051801 | 2023-06-06T13:37:01 | 2023-06-06T13:37:01 | 254,373,874 | 2 | 1 | MIT | 2023-06-06T12:04:44 | 2020-04-09T13:07:12 | Python | UTF-8 | Python | false | false | 494 | py | # Generated by Django 3.2.8 on 2021-10-25 13:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0024_pdf_thumbnails'),
]
operations = [
migrations.RemoveField(
model_name='tikaresource',
name='retainer_ty... | [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
69fd3114d948b6199a0cea0eb3d2011db1a66155 | 5eb52c07e5b1bd00af77306f927f382b684cd6ff | /indy_node/test/pool_config/conftest.py | d7be1101c2ac8cde5ad4580c819339cd86ec230f | [
"Apache-2.0"
] | permissive | hyperledger/indy-node | bce39486988f5114581cff4f6d14fc1b7684143c | e6bb87d4c605aff9914491d062248b6ec857334c | refs/heads/main | 2023-09-03T15:33:08.187153 | 2023-05-08T22:48:21 | 2023-05-08T22:48:21 | 77,021,566 | 691 | 783 | Apache-2.0 | 2023-05-09T15:42:43 | 2016-12-21T05:45:04 | Python | UTF-8 | Python | false | false | 812 | py | import pytest
from indy_node.test.pool_config.helper import sdk_ensure_pool_config_sent
def genPoolConfig(writes: bool, force: bool):
return dict(writes=writes, force=force)
@pytest.fixture(scope='module')
def poolConfigWTFF():
return genPoolConfig(writes=True, force=False)
@pytest.fixture(scope='module'... | [
"alexander.sherbakov@dsr-company.com"
] | alexander.sherbakov@dsr-company.com |
6afe4beed95660164eed8effffbe691f3fba898e | fca336a7d3ac6e314179f47f72a33021eb9fcde2 | /python/20.py | b696b6cc527a3ba4eceb7c5cc26c3ac15db08d8a | [] | no_license | iamFIREcracker/project-euler | e84adfdcdcf2859f9fd2e57670110f5a7022f074 | 5dc50d9b1b41761b95e14a49e3ab9a80e4498657 | refs/heads/master | 2021-07-11T11:44:38.453475 | 2017-10-15T16:36:05 | 2017-10-15T16:36:05 | 107,029,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | """Find the sum of the digits in the number 100!
"""
import operator
print sum([int(c) for c in str(reduce(operator.mul,
[i for i in xrange(1, 101)]))])
| [
"matteo@matteolandi.net"
] | matteo@matteolandi.net |
2579e7e3a224013905d329e650e5d7ad7f25e4a0 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/30-sets2_20200413205952.py | d79689b34bec2e0cad9ed29fe12bf8d7724c6d0d | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | # methods
my_set = { 1, 2, 3, 9, 10, 9}
your_set = [342,23,42,46,]
print(my_set)
| [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
7acbe3493e0d99d206cc053bfb28dc20de9e95a1 | bd435e3ff491d13c3cb1ffcf34771ac1c80f7859 | /code/base/test_module/package_runoob/runoob2.py | da3d36dcd4aa2bbe0c5d9f8242d047c8328d4dc4 | [] | no_license | luningcowboy/PythonTutorial | 8f4b6d16e0fad99a226540a6f12639ccdff402ff | 9024efe8ed22aca0a1271a2c1c388d3ffe1e6690 | refs/heads/master | 2021-06-16T23:03:22.153473 | 2020-04-09T13:52:12 | 2020-04-09T13:52:12 | 187,571,993 | 0 | 0 | null | 2021-03-25T23:02:36 | 2019-05-20T05:16:13 | Python | UTF-8 | Python | false | false | 35 | py | def runoob2():
print "runoob2"
| [
"luningcowboy@gmail.com"
] | luningcowboy@gmail.com |
863686b0bee3264e4df7e5fe6bc35b5bb19fd291 | c1655d6c6c11dafc1c7fa9f771b8e1f99cf7f123 | /venv/bin/results_schema | 15b83f64b98111511e0829dfbe16906db2994430 | [] | no_license | igorsowa9/vpp | a27520f19a54d7490534016ded9cd66f4ef5385b | ea91e3b2db921e7b1a450d243f39dbcf61231107 | refs/heads/master | 2021-04-30T03:28:56.642244 | 2019-09-16T09:01:49 | 2019-09-16T09:01:49 | 121,514,524 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/home/iso/PycharmProjects/vpp/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pyomo.scripting.commands import results_schema
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(results_schema())
| [
"iso@ubuntu.ubuntu-domain"
] | iso@ubuntu.ubuntu-domain | |
0010ddf6c6cc7080f556ea0f9f88f801902a9897 | 11d75881f729dc5e9ca08bfe6adae0fd64098056 | /dazzler/system/__init__.py | 13121628e6b1dffbb55124890f3bf3201073901a | [
"MIT"
] | permissive | jbampton/dazzler | b918723c4fd1f0015153247345156007581b0520 | 4018f6cbcb55a9f482cb5c5cbf6a06b063c15e21 | refs/heads/master | 2023-03-08T12:18:13.847188 | 2021-06-19T22:29:54 | 2021-06-20T13:23:18 | 218,608,116 | 1 | 0 | MIT | 2023-03-06T19:00:08 | 2019-10-30T19:38:15 | Python | UTF-8 | Python | false | false | 1,337 | py | """
Dazzler systems (API)
- Requirements are JS/CSS resources to include on rendering.
- Packages hold components info and it's requirements.
- Component Aspects are shared between backend and frontend with bindings.
- Generate components with ``dazzler generate metadata.json output_dir``
- Page holds meta data for re... | [
"t4rk@outlook.com"
] | t4rk@outlook.com |
4e9c8e1528a41a397fcd5edc6922892c841935c6 | 37d2a09c274ce31f1e6f690c234c3447d4708d6a | /staicoin/cmds/units.py | d30bcc831278333eb79b7ac1af62fb23f2833875 | [
"Apache-2.0"
] | permissive | jzblanco/staicoin-blockchain | 60aedc566f475922e845ea019f2d8468f510a947 | 75a148429f6d39c36802c83b928ad8effbfc56a8 | refs/heads/main | 2023-08-17T13:11:46.094703 | 2021-10-08T23:13:49 | 2021-10-08T23:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from typing import Dict
# The rest of the codebase uses mojos everywhere.
# Only use these units for user facing interfaces.
units: Dict[str, int] = {
"staicoin": 10 ** 9, # 1 staicoin (stai) is 1,000,000,000 mojo (1 billion)
"mojo:": 1,
"colouredcoin": 10 ** 3, # 1 coloured coin is 1000 colouredcoin moj... | [
"em@iguru.team"
] | em@iguru.team |
77bd0747f7d7fc145ab0b45eefafd6f638002f18 | 72ec201effe17c3875f3d26ab98d6e56f808b0ac | /aoomuki_comp/app/migrations/0047_auto_20210202_1646.py | ad2ed545f6323c217246556f94f308312325f1d1 | [
"MIT"
] | permissive | Kamelgasmi/aoomuki_competences | 549f9c9167f82d084ef6048cec72e87fe90f4c35 | e02f3546f7efb54b825dbcfab968296607775903 | refs/heads/master | 2023-04-06T17:48:35.921460 | 2021-04-16T08:49:15 | 2021-04-16T08:49:15 | 330,929,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | # Generated by Django 3.1.5 on 2021-02-02 15:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app', '0046_a... | [
"kam_7@hotmail.fr"
] | kam_7@hotmail.fr |
dfd731d95d35d7ba3ca64ab77bed8a8cf155b40b | 950884cea2a67bc2047c8a7c278d1cbf7f657b29 | /submits.2015/14_57_48_33_1_8767.py | ce10341e2c19add871a9204b5ab9e64b55c845fd | [] | no_license | lisiynos/loo2015 | ac5bd8d1d81c301be0e65960c3707506120f0b7f | cf3d12589c9e586921c2a38554103fc1c7652abe | refs/heads/master | 2020-12-25T17:35:50.917577 | 2016-08-29T09:31:40 | 2016-08-29T09:31:40 | 29,869,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | with open('hall.in', 'r') as infile:
a, b, c, d = [int(x) for x in infile.readline().split()]
hall_counter = 0
for x in range(1, b + 1):
for y in range(1, b + 1):
if c <= (x + y) * 2 <= d and a <= x * y <= b:
hall_counter += 1
hall_counter = str(int((hall_counter + 1)/2))
with open('hall.ou... | [
"super.denis@gmail.com"
] | super.denis@gmail.com |
dbf7e015cf51dbbb14357fd117a4ad9c60957475 | 0202dff1bcf4d49195fbcd0656ee79f93115a7b9 | /tests/test_slippage.py | 00a82eb1222a53b25289a3fb564e29b77ae795b7 | [
"Apache-2.0"
] | permissive | TimPchelintsev/moonshot | f9637889753609c966a3320f89fd7585693d82fa | 08374bdb4fb24ec8c4c196aeed2b2bf757acffb3 | refs/heads/master | 2020-04-13T15:29:46.601080 | 2018-11-08T15:13:02 | 2018-11-08T15:13:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,475 | py | # Copyright 2018 QuantRocket LLC - All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"brian@quantrocket.com"
] | brian@quantrocket.com |
0ec0747aea6f065bfb873f5d9291c4687494bf7b | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project2/Project2/.history/blog/views_20211114183757.py | 5bdf30cc1996d4f9f8116bb63430e3540af0ba18 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 212 | py | from django.shortcuts import render, get_object_or_404
from .models import Blog
from django.views import generic
# Create your views here.
class BlogList(generic.ListView):
queryset = Blog.objects.filter(st) | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
2a75f41f27e37ffea0a9f08cd9194e665ffb1f11 | fcbedcc2f7483a4b3ce9111c9c889bd4a5079496 | /sql/sqlg.py | 899817382ff5aeea50f67d3d8c32f2d871fad008 | [] | no_license | kevlab/RealPython2 | aab94de91d0824290bfce4a318f57f4fe5282f19 | a85f92563b414830431a79d2448682da0c12d645 | refs/heads/master | 2021-01-10T19:10:46.035344 | 2015-05-27T02:24:48 | 2015-05-27T02:24:48 | 31,555,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # UPDATE and DELETE statements
import sqlite3
with sqlite3.connect('new.db') as connection:
c = connection.cursor()
# update
c.execute("""UPDATE population SET population = 9000000 WHERE
city ='New York City'""")
# delete
c.execute("DELETE FROM population WHERE city='Boston'")
... | [
"greenleaf1348@gmail.com"
] | greenleaf1348@gmail.com |
84e69319d015573313a7536fe6d36c82f50e5297 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0001_0050/LeetCode003_LongestSubstingWithoutRepeatingCharacters.py | 7161fed14178c544c2c29ac5762c77a963af8832 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 828 | py | '''
Created on May 5, 2017
@author: MT
'''
class Solution(object):
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
left = 0
hashset = set()
maxLen = 0
for i, c in enumerate(s):
while left < i and c in hashset:
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b55e6344c718b94dc01be9ce249c8634c25f9516 | 7fbb4f70493a27d2b0fe2c107a1055e493bf7188 | /taobao-tianmao/top/api/rest/TmallExchangeMessagesGetRequest.py | 67817273e9db4bf66611b203f8cb229606beb032 | [
"Apache-2.0"
] | permissive | ScottLeeF/python-example | da9d78a85cce914153f1c5ad662d28cddde0fc0f | 0b230ba80fe5020d70329a9d73e058013f0ca111 | refs/heads/master | 2022-12-03T00:24:47.035304 | 2020-04-21T09:51:12 | 2020-04-21T09:51:12 | 242,459,649 | 0 | 0 | Apache-2.0 | 2022-11-22T05:29:21 | 2020-02-23T05:03:19 | Python | UTF-8 | Python | false | false | 471 | py | '''
Created by auto_sdk on 2018.08.09
'''
from top.api.base import RestApi
class TmallExchangeMessagesGetRequest(RestApi):
def __init__(self, domain='gw.api.taobao.com', port=80):
RestApi.__init__(self, domain, port)
self.dispute_id = None
self.fields = None
self.operato... | [
"fei.li@tuanche.com"
] | fei.li@tuanche.com |
46e5affa680c2833075c70e0956b9914e2f798ce | 8c4cd2a8725f8f04e5b2fee3bc8f67fb7b4af446 | /benchmarks/benchmark_dual_dmp.py | 9369f7b297cea7f2ea2c075f8b349b3127e99a0d | [
"BSD-3-Clause"
] | permissive | dfki-ric/movement_primitives | 37c08aade84f5abc4248b7281e6a1c441cf642a9 | 327b192608747e20e555f59671903854045c4713 | refs/heads/main | 2023-07-20T07:57:52.938054 | 2023-05-22T13:10:47 | 2023-05-22T13:10:47 | 429,049,411 | 97 | 29 | NOASSERTION | 2023-07-18T08:58:30 | 2021-11-17T13:06:49 | Python | UTF-8 | Python | false | false | 881 | py | from functools import partial
import numpy as np
from movement_primitives.dmp import DualCartesianDMP
import timeit
start_y = np.array([0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0])
goal_y = np.array([1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0])
dt = 0.01
int_dt = 0.... | [
"afabisch@googlemail.com"
] | afabisch@googlemail.com |
69dcf77fe8c8f4bf7999ba12fd6efc072ff19e6a | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /servicecatalog_read/provisioned-product-output_get.py | 01fe1a4ce4eb011dd07c8fc189e38f995cc52cf0 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import read_no_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/servicecatalog/get-provisioned-product-outputs.htm... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
c934f71b537bf189c6aefbe18b994545c9942e1c | 04401ec5768d909ef95b3021dd39d280cdac7356 | /flags/flags2_common.py | 5a073a5e08ad15b91c298578cf78dbcec4edf52c | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | pythonfluente/concorrencia2020 | 82f826fbcfc36c41cda251cbeaf370a6822b3cdf | 62b1f506fd69b77b67a20aedf6b204f543912c82 | refs/heads/master | 2021-04-03T12:32:48.565498 | 2020-12-20T01:03:20 | 2020-12-20T01:03:20 | 248,353,395 | 7 | 7 | BSD-3-Clause | 2020-04-21T14:28:29 | 2020-03-18T22:06:21 | Python | UTF-8 | Python | false | false | 5,097 | py | """Utilities for second set of flag examples.
"""
import os
import time
import sys
import string
import argparse
from collections import namedtuple
from enum import Enum
Result = namedtuple('Result', 'status data')
HTTPStatus = Enum('Status', 'ok not_found error')
POP20_CC = ('CN IN US ID BR PK NG BD RU JP '
... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
1dc8801b64037a4f969242a0a4870dc67f6ad153 | e43f0e33bc07f9c8866dd7db88c80576e5d3d9c3 | /tests/parsers_umls_test.py | d55f67cd98b4b5d8af0fb0904f95307780051333 | [] | no_license | bearnd/mt-ingester | ef5fc47d57d4bade7ce76f303425f861f74c00d8 | cc4503b715d862af0ec82fdea666386e9265e56e | refs/heads/master | 2023-03-08T10:54:22.682969 | 2019-09-14T13:45:26 | 2019-09-14T13:45:26 | 338,612,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,301 | py | # coding=utf-8
import os
import unittest
from mt_ingester.parsers import ParserUmlsSat
from mt_ingester.parsers import ParserUmlsConso
from mt_ingester.parsers import ParserUmlsDef
from tests.assets.samples_umls import get_sample_file
from tests.assets.samples_umls import EnumUmlsFileSample
class ParserUmlsSatTest... | [
"somada141@gmail.com"
] | somada141@gmail.com |
2ae2bdf8815a466c8b0684f4c105ab6bdd9fe01d | 190d03cf370844548b9e8c89952dfbaec4d0c5c8 | /p622.py | ca9b0956d3c39375b432f18dfc33e341c309628f | [] | no_license | alainlou/leetcode | 446d101a9fd2f9eaa2229252e5909e7df36b4a74 | fe500bcb067be59aa048259e3860e9da6f98344d | refs/heads/master | 2022-10-16T12:20:44.726963 | 2022-09-18T15:29:05 | 2022-09-18T15:29:05 | 178,775,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | class MyCircularQueue:
def __init__(self, k: int):
self.k = k
self.arr = [None]*k
self.front = 0
self.rear = 0
def enQueue(self, value: int) -> bool:
if self.isFull():
return False
else:
if self.isEmpty():
self.arr[self.re... | [
"az2lou@uwaterloo.ca"
] | az2lou@uwaterloo.ca |
a3157751b8c0617b6c1de79a6d8a459cd0630e40 | 241b3cef3f7146ca332b45a8e3d4005a9e93d024 | /kestrel/plugins/kestrel_tasks.py | 0f84c537dcba24810ff5e77e0a22b82406883da7 | [
"Apache-2.0"
] | permissive | joelimome/Kestrel | c5ec380ec0395df3213e63cd7389f68551350b62 | 199075569e57d72676512a4eaf64e82c21248460 | refs/heads/master | 2021-01-18T06:44:00.105322 | 2010-10-11T14:35:11 | 2010-10-11T14:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,690 | py | # Kestrel: An XMPP-based Job Scheduler
# Author: Lance Stout <lancestout@gmail.com>
#
# Credits: Nathan Fritz <fritzy@netflint.net>
#
# Copyright 2010 Lance Stout
#
# 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 cop... | [
"lancestout@gmail.com"
] | lancestout@gmail.com |
09c98f2636180514e61419c174e02ce50a07fb96 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /oxf7b7vroXvWBJ9Nq_18.py | c91857e0445c9860163566659cc778edc4feb4b3 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py |
import re
def discount(n, txt):
if not len(txt): return n
discounts = sorted(txt.split(", "), key=lambda x: x[-1])
for d in discounts:
if d[-1] == "%":
n -= float(d[:-1])/100*n
else:
n -= float(d)
sol = "{:.2f}".format(n)
return int(sol[:-3]) if sol[-3:] ==... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7432e39a052baa01c42ba905cda58827685faba5 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptdiagp/porttestsetbt.py | 3ad8df35a3b2c025a8b87153e3ac3134883bd056 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 6,214 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
a8b518462a18be00cb11ef084cc3170c03798e9e | 9e19b20d5a63d6e7693ad85eba37c8d1d1507192 | /Python/441_Arranging Coins.py | 68b8ab9baf05220ed1854c4304608a9507247475 | [] | no_license | Eddie02582/Leetcode | eacbfdfa0075c16ee7b3eb297c116fe42e7c8550 | b5c25f976866eefec33b96c638a4c5e127319e74 | refs/heads/master | 2022-10-22T20:51:06.739926 | 2022-10-17T07:43:38 | 2022-10-17T07:43:38 | 189,950,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | '''
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.
Given n, find the total number of full staircase rows that can be formed.
n is a non-negative integer and fits within the range of a 32-bit signed integer.
Example 1:
n = 5
The coins ... | [
"38853252+Eddie02582@users.noreply.github.com"
] | 38853252+Eddie02582@users.noreply.github.com |
8e862dda517f499add536302544e6aafb9fae6e4 | 7ad0808c8e3f77b1de5e9d3148941dc1404d3432 | /modules/core/system/queue_controller.py | e0f42bae7333d641ea4967a8dc9be090500c4148 | [] | no_license | Budabot/Tyrbot | addadfb6d265d371d5bbef1195a41d53736bf5dc | bf04a5180dac129f56b6d2231ab26070d8b6d2cc | refs/heads/master | 2023-08-04T10:44:29.861252 | 2023-07-26T15:02:54 | 2023-07-26T15:02:54 | 120,727,804 | 27 | 38 | null | 2023-08-15T18:43:24 | 2018-02-08T07:40:12 | Python | UTF-8 | Python | false | false | 1,314 | py | from core.command_param_types import Const, Any
from core.decorators import instance, command
@instance()
class QueueController:
def inject(self, registry):
self.bot = registry.get_instance("bot")
self.command_alias_service = registry.get_instance("command_alias_service")
self.command_serv... | [
"email1@jkbff.com"
] | email1@jkbff.com |
093e614f902f69b5827e4236c41809ee21e3d461 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/modules/test_global_batch_gather.py | 3653c7d5bb759c2d7bdae6249247d70c87908203 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 2,335 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
7411091b34332232c549ad28678e225515310812 | 7d90d2ce27c6ee0af74391b09909edbd45fdc2f0 | /renix_py_api/api_gen/ResultView_Autogen.py | 016622ef5e523d60fed961c68f0489c4b254c5cc | [] | no_license | gaoxingyu-hub/54testframework-master-e284 | d7ea0d4a715b65c8652430e963a86b9522a7237a | 57dd2197e7d91b8ad8fb2bd0e3503f10afa08544 | refs/heads/master | 2023-04-30T05:50:41.542402 | 2021-05-28T09:19:37 | 2021-05-28T09:19:37 | 309,922,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | """
Auto-generated File
Create Time: 2019-12-27 02:33:25
"""
from .ROMEnum_Autogen import *
from renix_py_api.renix_common_api import *
from renix_py_api import rom_manager
from .ROMObject_Autogen import ROMObject
@rom_manager.rom
class ResultView(ROMObject):
def __init__(self, ViewName=None, DataClassName=None,... | [
"gaoxingyu@example.com"
] | gaoxingyu@example.com |
459c9001444fdc3031c5f9eeb2aa1cb81d654248 | 8ec653d0a30a732b838dc32b83fa9c12a47e3fcd | /backend/curriculum_tracking/management/project_wrangle_helpers.py | eec3c126736d55edd30a256c5f528b30be4e554a | [] | no_license | Rokhuda/Tilde | 6cc853629dbdc781bb454908a75a4f87a6dbf2bd | 79fd6911dda531b1893d9c989bef586151b45b15 | refs/heads/develop | 2023-01-06T08:40:58.143424 | 2020-10-06T10:28:45 | 2020-10-06T10:28:45 | 301,546,454 | 0 | 0 | null | 2020-10-06T10:28:46 | 2020-10-05T21:39:52 | null | UTF-8 | Python | false | false | 12,942 | py | """ These helper functions were leveraged heavily in preparing the recruit projects for flavoursome cards.
There were a lot of different messes to be cleaned up
"""
from taggit.models import Tag
import csv
from core.models import Cohort, RecruitCohort, User, UserGroup
from curriculum_tracking.models import (
Recru... | [
"sheena.oconnell@gmail.com"
] | sheena.oconnell@gmail.com |
f11af8e0e76f04055392f05a6934c6acb8dbaa2d | 1c29f2609b0cb9a72972fb94e630ed8335b5e4e4 | /scripts/CreateAndCleanupMarkerGraph.py | 8dc351afb0b541ceef2db839c9f6120ead0bba6c | [
"MIT",
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | tw7649116/shasta | 4bef2b878bca0adcb003902c619ab3f388b13498 | 8612d46fd3de5ed51d19f05c4d811b5736d516ad | refs/heads/master | 2020-04-28T02:44:06.973416 | 2019-03-06T19:35:49 | 2019-03-06T19:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | #!/usr/bin/python3
import shasta
import GetConfig
import sys
# Read the config file.
config = GetConfig.getConfig()
# Initialize the assembler and access what we need.
a = shasta.Assembler()
a.accessReadsReadOnly()
a.accessKmers()
a.accessMarkers()
a.accessAlignmentData()
a.accessReadGraph()
a.accessChimericReadsFla... | [
"paoloczi@users.noreply.github.com"
] | paoloczi@users.noreply.github.com |
1c934fe5e03fbd7d00b58d1b16e4a2d2a0a5c435 | aca253ff1a97c96a1a0a9a5802aa623789662bb1 | /p030/dialog_demo.py | e568b7f233a493e3aef167358b74b2a0a0b09abf | [] | no_license | KD-huhu/PyQt5 | a6128a34b93f6e2da7216d5818f66dc9614216bc | 1c33a6549c2fcf663168256553d8c24e25d9a69c | refs/heads/master | 2022-07-03T07:37:29.837547 | 2020-05-17T14:54:39 | 2020-05-17T14:54:39 | 261,768,854 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
class QDialogDemo(QMainWindow):
def __init__(self):
super(QDialogDemo,self).__init__()
self.initUI()
def initUI(self):
self.setWindowTitle('QDialog案例')
self.resize(300,20... | [
"noreply@github.com"
] | KD-huhu.noreply@github.com |
13507a4833cf69a71115ace06a6eff6d13129eb8 | a054b81a3abfd612ee89ad4b6a536fa6ccf63da1 | /GUERRERO_Paper/timespans/Section_B.py | 2bfa308a1c16de18c907f2a56c86cd5695b3f837 | [] | no_license | GregoryREvans/GUERRERO_Analysis_Paper | 60ea5824980f803217a8080ba5a1e8dff8f11a12 | 0fd45edc36498b4e2c8a47617fb797493ef25af0 | refs/heads/master | 2020-05-19T10:22:45.889642 | 2019-05-05T03:05:46 | 2019-05-05T03:05:46 | 184,969,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150,578 | py | import abjad
import itertools
import os
import pathlib
import time
import abjadext.rmakers
from MusicMaker import MusicMaker
from AttachmentHandler import AttachmentHandler
from random import random
from random import seed
from evans.general_tools.random_walk import randomWalk
from evans.general_tools.rotate import rot... | [
"gregoryrowlandevans@gmail.com"
] | gregoryrowlandevans@gmail.com |
2c40f53838408287189e489b19df5fc1ec20aa1a | 8b675ca56bae3a1b622eff991f8786963712d12f | /a301/__init__.py | e85022d2ce213a276ce0bce421a914b1172f3500 | [
"MIT"
] | permissive | KayhanB21/a301_code | b4dd7d8bdb2a4170211965abee707f48da4cbb23 | 4237b4e538bd999f5ac1b20f6b25b4c4e03bb09c | refs/heads/master | 2021-09-23T14:39:14.333193 | 2018-09-24T19:44:50 | 2018-09-24T19:44:50 | 150,385,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from pathlib import Path
#
# open the VERSION file and read it into a301.__version__
# https://github.com/pypa/setuptools/issues/1316
#
__version_file__=Path(__file__).parent / Path('VERSION')
#
# if __version_file__ doesn't exist, try to create it and
# write 'no_version', if that doesn't work (no write permission),... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
9545e13460cfa481d9ae30dc5b02b4f93977fc49 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/merraRF882/61-tideGauge.py | e49c8cf3e8885cfd243aea28ac1f410de445d6df | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,454 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
This program is designed to validate a Random Forest
model by using the KFOLD method
@author: Michael Tadesse
"""
#import packages
import os
import glob
import numpy as np
import pandas as pd
from sklearn import metrics
from scipy import stats
import se... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
0de82ef4d599b7fcb1e8c91a95fdb1238c215f5d | a5a4cee972e487512275c34f308251e6cc38c2fa | /examples/Ni__eam__born_exp_fs__postprocessing/Reduced_TSNE_qoi_in_param/configuration/configure_final_plot.py | bb505c0bb91236afab1d0c898c0312a5a119c4d8 | [
"MIT"
] | permissive | eragasa/pypospack | 4f54983b33dcd2dce5b602bc243ea8ef22fee86b | 21cdecaf3b05c87acc532d992be2c04d85bfbc22 | refs/heads/master | 2021-06-16T09:24:11.633693 | 2019-12-06T16:54:02 | 2019-12-06T16:54:02 | 99,282,824 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from collections import OrderedDict
from pypospack.pyposmat.data.pipeline import PyposmatPipeline
pipeline_configuration = OrderedDict()
# define first segment (plotting)
pipeline_configuration[0] = OrderedDict()
pipeline_configuration[0]['segment_type'] = 'plot'
pipeline_configuration[0]['function_calls'] = Ordered... | [
"seatonullberg@gmail.com"
] | seatonullberg@gmail.com |
a25199bba01db10b42a11ff3f9af31b72b291e1c | ed538eba0bb81713d8353dea5baafd038913d52c | /photos/urls.py | af4fb96be4ef12b78a66dbe5fbb0f4a0609e76be | [] | no_license | Ansagan-Kabdolla/photo_site | 78cf738ff948cbf7d2207bff6166dcbe44679e1e | 19228dc3abeab9cc301962c970b15fcf040e2577 | refs/heads/master | 2022-06-04T20:06:07.798864 | 2020-05-02T20:05:28 | 2020-05-02T20:05:28 | 260,765,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from django.urls import path
from .views import *
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', index),
path('subservices/<int:pk>', subservice_example, name = 'subservices')
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | [
"ansagankabdolla4@gmail.com"
] | ansagankabdolla4@gmail.com |
2abbbfc944cae908462b4e0cc04fb9174416e903 | 028274f08da4c616ccc1362df390dcfe58131fc6 | /DS_Management_Tools/run_ExcelHelper.py | 22b9388f9a6cc7741b030fca1b6a1d306b66c178 | [] | no_license | PyWilhelm/EDRIS_DS | 8a5430515bfc7e11abf846126f4fa2388ff59dd9 | cc0179495d8874ff5a95fd08d833388f434e1d87 | refs/heads/master | 2021-01-17T00:43:01.560668 | 2016-07-23T10:50:09 | 2016-07-23T10:50:09 | 64,011,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ExcelHelper
ExcelHelper.run() | [
"ziyang.li.nk@gmail.com"
] | ziyang.li.nk@gmail.com |
5820dfd31c14197589ff85b20ee3c09ef20a8d93 | 434d5256fa47c6bec0e5d79917f2d09b52490fa0 | /tests/pypint/plugins_tests/implicit_solvers_tests/__init__.py | 540bd2c49fa5e3540bed00c4ec8613618cf57d42 | [] | no_license | Parallel-in-Time/PyPinT | 2d0a54d21a6b50863c6acef69eb9a86d3bcc7fcf | 90aed34cf43d633e44f56444f6c5d4fa39619663 | refs/heads/master | 2016-08-03T18:58:05.269042 | 2014-06-10T08:27:30 | 2014-06-10T08:32:45 | 19,447,961 | 0 | 2 | null | 2014-06-02T14:26:08 | 2014-05-05T07:39:20 | Python | UTF-8 | Python | false | false | 168 | py | # coding=utf-8
import unittest
class ImplicitSolversTests(unittest.TestSuite):
def __init__(self):
pass
if __name__ == "__main__":
unittest.main()
| [
"t.klatt@fz-juelich.de"
] | t.klatt@fz-juelich.de |
0d7ef97c64cbb51cb2f664c2765cc5b6d54098a1 | 09aee268ce72d282f53fe94f42478e2b3b48127d | /CBVProject_3/manage.py | ba051715cec14ce97e5ac0aec7233658f5f881dd | [] | no_license | keshava519/Django_Projects | c95d0f8c55d4cc946291be6fb058b7298aefe596 | 99584892b9d9ec6b6395a382c684b4d036d07874 | refs/heads/main | 2023-02-23T03:44:32.110742 | 2021-01-27T15:15:13 | 2021-01-27T15:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CBVProject_3.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"keshava.cadcam@gmail.com"
] | keshava.cadcam@gmail.com |
8064c42bc3d64fe11d2c1fd47af31b2a447da64d | 02b73216f3970a981dc4bb8eea67f876edc8797f | /funcs.py | fe84dcb18d1b1a6db59299839394a4877e94586a | [] | no_license | Coul33t/LinkReader | b44eff04a8979af3884e70ccbe165ee9d8e7ae8c | 7396fc8888eec7182783f5cb08e338dbac314637 | refs/heads/master | 2020-04-19T14:49:18.764694 | 2019-02-01T00:10:20 | 2019-02-01T00:10:20 | 168,254,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | import csv
import random as rn
import pdb
from constants import VIDEO_LIST
class LinkReader:
def __init__(self):
self.links = []
def has_links(self):
return len(self.links)
def import_links(self, csv_file):
with open(csv_file, newline='') as csvfile:
contents = csv.rea... | [
"Coulis1990@gmail.com"
] | Coulis1990@gmail.com |
edf872d10b298121ef5d6521f18b67f5da91035e | e40381a0aa3320616e5a5b82533c2c5cfe0fa2ce | /Scripts/read_CESM2LE.py | 249135375ede80d7dabbc6d87de8ba81b7b0899b | [
"MIT"
] | permissive | zmlabe/predictGMSTrate | 7220b26f86839699635fe2f04e45348095183bc7 | ac4238c7f1c33dc9d30382e4dbdc26a2f63352f5 | refs/heads/main | 2023-04-10T03:46:16.053123 | 2023-01-11T14:08:27 | 2023-01-11T14:08:27 | 396,942,451 | 4 | 3 | MIT | 2022-01-19T22:15:19 | 2021-08-16T19:30:55 | Python | UTF-8 | Python | false | false | 8,653 | py | """
Function(s) reads in monthly data from CESM2-LE for different variables
using # of ensemble members for all time periods
Notes
-----
Author : Zachary Labe
Date : 25 June 2021
Usage
-----
[1] read_CESM2LE(directory,vari,sliceperiod,sliceshape,slicenan,numOfEns,timeper)
"""
def read_CESM2LE(director... | [
"zmlabe@rams.colostate.edu"
] | zmlabe@rams.colostate.edu |
3480b284dcaed2749f6f58fa86e06e8053cb57ff | 81fe7f2faea91785ee13cb0297ef9228d832be93 | /HackerRank/Contests/RegularExpresso2.py | cb6b298b2549f14cd035b21bfb764ca316fc44b7 | [] | no_license | blegloannec/CodeProblems | 92349c36e1a35cfc1c48206943d9c2686ea526f8 | 77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e | refs/heads/master | 2022-05-16T20:20:40.578760 | 2021-12-30T11:10:25 | 2022-04-22T08:11:07 | 54,330,243 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | #!/usr/bin/env python
import sys
import re
#Regex_Pattern = r'(te|b|a|t|r)$'
#Regex_Pattern = r'^(A{1,3})?(a{1,3}A{1,3})*(a{1,3})?$'
#Regex_Pattern = r'(.)\1\1.{,2}.{20}$|(.)\2\2.{,2}.{15}$|(.)\3\3.{,2}.{10}$|(.)\4\4.{,2}.{5}$|(.)\5\5.{,2}$|(.).{4}\6.{4}\6'
#Regex_Pattern = r'10(11|00)*$'
Regex_Pattern = r'(00|11... | [
"blg@gmx.com"
] | blg@gmx.com |
1c69f26854c7dc8b97a6f5b1a112887dee9bc0a5 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/Summer20UL18/ZJetsToNuNu_HT-400To600_TuneCP5_13TeV-madgraphMLM-pythia8_cff.py | cd36dfc4221d14a5c4af6bbf425f9b192d53e09f | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 89,463 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer20UL... | [
"noreply@github.com"
] | TreeMaker.noreply@github.com |
a15d8a2d61f046759905ecfabae1a224bd13de50 | 527af27858f7cd937915268ea0dccb9c793bace8 | /systemdlint/systemdlint/conf/knownMandatory.py | 8dec79cd6f0a8f4ee1d98f46115daceb4ffb8000 | [
"BSD-2-Clause"
] | permissive | priv-kweihmann/systemdlint | b382438564ff3cff73655da634d10903027f26c3 | d9909d2e2d970599bb2015e2a667d4debf063384 | refs/heads/master | 2023-04-12T20:26:42.106601 | 2021-12-21T09:51:24 | 2021-12-21T09:51:24 | 182,244,386 | 21 | 2 | BSD-2-Clause | 2020-10-23T18:17:24 | 2019-04-19T10:01:24 | Python | UTF-8 | Python | false | false | 291 | py | KNOWN_MANDATORY = {
"Unit": ["Description"],
"Address": ["Address"],
"BridgeFDB": ["MACAddress"],
"Mount": ["What", "Where"],
"NetDev": ["Name"],
"L2TPSession": ["Name"],
"Peer": ["Name"],
"IPv6AddressLabel": ["Label", "Prefix"],
"NextHop": ["Gateway"]
}
| [
"kweihmann@outlook.com"
] | kweihmann@outlook.com |
b7356056640093a86575c5fbc52bb527a04ea613 | bf3c0b0b2f5eed28043caa155f001bb656ed41a5 | /softboxen/client/resources/box/credentials.py | e70600381da6f261e27f63e660f92cde040fad0f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | etingof/softboxen | 0787a004f13d7f3d19f4cbf090e55bc229b8470a | 2a7ba85669d563de9824e3962bd48a0849482e3f | refs/heads/master | 2023-03-27T16:56:14.460474 | 2020-04-18T12:30:11 | 2020-04-18T12:30:11 | 239,087,167 | 3 | 1 | BSD-2-Clause | 2020-06-26T06:50:37 | 2020-02-08T07:29:53 | Python | UTF-8 | Python | false | false | 624 | py | #
# This file is part of softboxen software.
#
# Copyright (c) 2020, Ilya Etingof <etingof@gmail.com>
# License: https://github.com/etingof/softboxen/LICENSE.rst
#
import logging
from softboxen.client.resources import base
LOG = logging.getLogger(__name__)
class Credentials(base.Resource):
"""Represent user cr... | [
"etingof@gmail.com"
] | etingof@gmail.com |
a1c19537f19fd89cd2b759d8f619fd37a8036f0f | 8a029afcaee3080728be4648c96865d5847d3247 | /dnnseg/probe.py | 8669d1867ffe72d789110adeb84c7a1aa7918c3a | [] | no_license | coryshain/dnnseg | 623d8c3583a996e496e77123a3296c8731f40613 | 30eed4b031adb3fcef80f98c6f037fd993aa36ca | refs/heads/master | 2021-06-11T00:47:25.975714 | 2021-02-22T14:18:51 | 2021-02-22T14:18:51 | 143,957,434 | 10 | 7 | null | 2020-12-12T01:34:11 | 2018-08-08T03:41:41 | Python | UTF-8 | Python | false | false | 13,408 | py | import sys
import os
import math
import re
import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.tree import DecisionTreeClassifier, export_graphviz
from sklearn.linear_model import LogisticRegression
from sklearn.neural_network import MLPClassifier
from sklearn.metric... | [
"cory.shain@gmail.com"
] | cory.shain@gmail.com |
3be2027bbed138e20adad4a399187c7b472f9d7d | da280a226bbf15d7243410c0d3930bdca00d0088 | /ex39.py | cf0099096111e4cca29e493f9986359bfb0cb6c5 | [] | no_license | c4collins/PyTHWay | 174cae57c73431ce5bfc90a361613c5db5c846d7 | 135b4b908ef2698084ee1b3fb9f1e5550c3c8843 | refs/heads/master | 2021-01-10T18:29:43.998528 | 2012-11-03T22:53:17 | 2012-11-03T22:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | ten_things = "Apples Oranges Crows Telephone Light Sugar"
print "Wait there's not 10 things in that list, let's fix that."
stuff = ten_things.split(' ')
more_stuff = ["Day", "Night", "Song", "Frisbee", "Corn", "Banana", "Girl", "Boy"]
while len(stuff) != 10:
next_one = more_stuff.pop()
print "Adding: ", next_... | [
"connor.collins@gmail.com"
] | connor.collins@gmail.com |
3f723df5d615220111afdd7537c425100cc9e621 | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/python/LC_765.py | 022d0738c948efc1eee48d7400433fe08f690773 | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | """
https://leetcode.com/problems/couples-holding-hands/discuss/535314/Python-DFS-solution-with-detailed-explanation
https://leetcode.com/problems/couples-holding-hands/discuss/822501/Python-99-DFS-SCC
下面我们来看一种使用联合查找Union Find的解法。该解法对于处理群组问题时非常有效,比如岛屿数量有关的题就经常使用UF解法。核心思想是用一个root数组,每个点开始初始化为不同的值,如果两个点属于相同的组,就将其中一个点的roo... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
247b93c47254775bb6f5dca6bdf3424e935aedbb | 14e2732db8f51176cc6394b4967868dd41b0ea97 | /src/inout/modelica/InitModelOMC.py | 91d3555d781d92aacbef5ab4a42e08efab7dd070 | [] | no_license | fran-jo/EngineSSE | 0c29db6db71499425738b22bb617f95e606f5b2e | 0878947aefb68f5e13d2cefd2dee2ef5e293f4d8 | refs/heads/master | 2020-03-23T21:02:40.605127 | 2018-07-23T23:11:42 | 2018-07-23T23:11:42 | 142,077,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | '''
Created on 11 apr 2014
@author: fragom
'''
class InitModelOMC(object):
'''
classdocs
'''
def __init__(self):
'''
Constructor
'''
def loadFile(self, _path, _model):
strcommand = []
strcommand.append('loadFile(')
strcommand.append('"')
... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
d333c66003907d386f6eee513acacbc200c7de8f | 70e047d748d503362cabc0f3ba50f3e103110ff4 | /element/migrations/0002_element_kode_element.py | 0de0334f2d46aeeaf317a647b8acefa1bc8f682a | [] | no_license | gofur/AHS | 621e7982df7c4fbd150e9427b7b408e122a38b07 | b59cba9d29e4ef5e20bf2091a646cd7ec79c3c6f | refs/heads/master | 2021-01-10T10:47:20.159642 | 2016-02-06T12:26:59 | 2016-02-06T12:26:59 | 49,955,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-20 23:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('element', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"you@example.com"
] | you@example.com |
7cfd21c143ab586aefa2bbe9b4d2f2e0ffe3b867 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /FWh2fGH7aRWALMf3o_12.py | 3ed8ee73f8657d5d9d71f3bacedbcaa8f51841d0 | [] | 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,341 | py | """
Create a function that takes a string (without spaces) and a word list,
cleaves the string into words based on the list, and returns the correctly
spaced version of the string (a sentence). If a section of the string is
encountered that can't be found on the word list, return `"Cleaving stalled:
Word not found"`... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fa48c0659171b8c9d8df62405784ad41278d721c | 70d4ef0863906b3ca64f986075cd35b8412b871e | /pipeline/contrib/statistics/migrations/0010_auto_20190304_1747.py | 16379222282ca52e23b319f90809bcf33b6776f6 | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | selinagyan/bk-sops | 72db0ac33d9c307f51769e4baa181ceb8e1b279e | 39e63e66416f688e6a3641ea8e975d414ece6b04 | refs/heads/master | 2020-05-07T16:44:33.312442 | 2019-04-11T02:09:25 | 2019-04-11T02:09:25 | 180,696,241 | 0 | 0 | null | 2019-04-11T02:07:11 | 2019-04-11T02:07:10 | null | UTF-8 | Python | false | false | 2,783 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"pagezhou@tencent.com"
] | pagezhou@tencent.com |
fa284fc48436ccf4f4208b3acd8ddd6f678c9cb3 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/ml/speech/recognize.py | c88df1addbeabd4903e6f394417536ac17cee4ab | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 4,369 | py | # -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.