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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
94e45025ceb346ed7156b1fc501e16e55c3a9901 | 15676ff938d417c1bc1d0e510db899accfd3d05a | /Classes/LTSpreadsheet.py | 52baed1046a4c766f44e9207a3c680a30a47a71a | [] | no_license | Eric-Wonbin-Sang/SAL | d4a5d441b2c335c04809da5f61d7251258a1681d | 5869b6cb47bea1b20ec4d3f9b53370ffada30926 | refs/heads/master | 2022-12-29T08:32:27.567281 | 2020-10-17T23:51:07 | 2020-10-17T23:51:07 | 287,887,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from lib import Google
from Classes import LTSheet
from General import ListHelp
class LTSpreadsheet(Google.Spreadsheet):
def __init__(self, google_sheets_credentials_json):
super().__init__("LT Sheets", google_sheets_credentials_json)
self.helps_sheet_title = "help_sheet"
self.help_di... | [
"eric.wonbin.sang@gmail.com"
] | eric.wonbin.sang@gmail.com |
dcf263e0a809016df6fbf28694ba9a3202232b9e | 6979547e7abaa3f34c023ac2cd691d8e862b6ad9 | /CookiesPool/cookiespool/tester.py | 742bcc272983b10673291e984fe22d2b65b6f588 | [] | no_license | kingking888/-Cookies-Pool | b53bf984cf3dd850cd138eb9d2cd231f5f3a7e60 | c7daade01b27ec84637b06d8bb84631586f2f6d5 | refs/heads/master | 2020-07-22T02:38:01.041009 | 2019-03-30T11:25:52 | 2019-03-30T11:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | import json
import requests
from requests.exceptions import ConnectionError
from cookiespool.db import *
class ValidTester(object):
def __init__(self, website='default'):
self.website = website
self.cookies_db = RedisClient('cookies', self.website)
self.accounts_db = RedisClient('accounts'... | [
"17319296359@163.com"
] | 17319296359@163.com |
7f92c72e8a01bc1058e134634d5a5dda45ab2311 | 2f38331b8a0bc8867859d853d352f9f5cc9cd1b5 | /day07/test/thread.py | 518e82f72d5c1bd696072f97c88969b1468f258f | [] | no_license | Chenhuaqi6/python_net | aaf66a15a2f438e1f3fc67f338abd15e2bbfd6a3 | 56efd53bbaa1212a86c65e9cd3b29d2f5f30b752 | refs/heads/master | 2020-04-09T08:30:20.817513 | 2019-01-19T06:51:41 | 2019-01-19T06:51:41 | 160,196,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from test import *
import threading
import time
def io():
write()
read()
jobs = []
t = time.time()
for i in range(10):
th = threading.Thread(target=io)
jobs.append(th)
th.start()
for i in jobs:
i.join()
print("Thread cpu",time.time()-t) | [
"466940759@qq.com"
] | 466940759@qq.com |
54f70d570a1db1e3df82285115e2f12c2db50925 | 9f7a9f268abfc168e408e36b513132402fdd353c | /micro_detect/train_net.py | 65ddea7036d9c9f20811a6869bb5edb977d78224 | [] | no_license | 863752027z/lab_server | fe602bf0a588989b0a7ae171454eba67fa6907ca | 65eeaf94712afd96363d449376a291918156354f | refs/heads/master | 2020-08-10T12:40:30.803168 | 2019-10-11T04:51:14 | 2019-10-11T04:51:14 | 214,344,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,678 | py | import cv2
import os
import numpy as np
import pandas as pd
import datetime
import matplotlib.pyplot as plt
import torch
import torchvision
import torch.nn as nn
import torch.utils.data as Data
from torchvision import transforms, datasets
from collections import OrderedDict
os.environ["CUDA_VISIBLE_DEVICES"] = "6"
de... | [
"863752027@qq.com"
] | 863752027@qq.com |
f4862ee84c1051bc93e717cd6f49b047e091c3dc | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_16215.py | f2b022a5629056ea5ec22621618332b3c1dfa852 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | # Python list of strings and list of regexes, clean way to find strings which don't match anything?
[key for key in keys if not any(re.match(pattern, key) for pattern in patterns)]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
042fa438d6708822772347fcea764e8194180c5c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnnma.py | f34002bc632a480ad06fb92fda87be4932680a6b | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,506 | py | ii = [('CookGHP3.py', 4), ('MarrFDI.py', 3), ('RogePAV2.py', 2), ('GodwWSL2.py', 1), ('SadlMLP.py', 1), ('FerrSDO3.py', 1), ('WilbRLW4.py', 2), ('AubePRP2.py', 6), ('CookGHP.py', 5), ('ShawHDE.py', 2), ('LeakWTI2.py', 2), ('LeakWTI3.py', 6), ('PettTHE.py', 17), ('MarrFDI3.py', 1), ('AubePRP.py', 6), ('FitzRNS3.py', 48)... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
3dfe0262d0cb376abcb3264642b3867d2c084bdc | 6537cb5f797fa8f90cf2d1ffdcfc841a4b287843 | /gatenlp/processing/client/elg.py | 93dc4d4999b6624326e03356d8732b7e4eefe324 | [
"Python-2.0",
"Apache-2.0"
] | permissive | GateNLP/python-gatenlp | 5080dc15ac0df50000e1bc6c7014f2876a931b2b | 6c2aae57a399d3b0043008713e081e73a122f5b9 | refs/heads/main | 2023-07-06T14:08:44.741086 | 2023-07-03T09:35:13 | 2023-07-03T09:35:13 | 199,133,070 | 53 | 8 | Apache-2.0 | 2022-12-09T10:59:45 | 2019-07-27T07:39:35 | Jupyter Notebook | UTF-8 | Python | false | false | 11,781 | py | """
ELG client.
"""
import json
import time
import requests
import logging
from gatenlp.processing.annotator import Annotator
from gatenlp.utils import init_logger
from gatenlp import Span
class ElgTextAnnotator(Annotator):
# NOTE: maybe we should eventually always use the elg package and the elg Service class!
... | [
"johann.petrak@gmail.com"
] | johann.petrak@gmail.com |
2837da05994882fe68355fae82b86beb73b30fc4 | 1d906aab0941c1f1982bccce1a85f54f226f6017 | /design/spiders/prizes/redhot.py | 2e9e8a09d3b160516b0f2afd4de7465b0f312682 | [] | no_license | LIMr1209/design | f5fecdf40d1066f1726036b09a0a0dc7c0321416 | 4111ea9e053a679a472c3f129c3b33fc78688b01 | refs/heads/master | 2023-08-12T14:55:19.876538 | 2021-10-13T09:53:48 | 2021-10-13T09:53:48 | 164,384,095 | 4 | 1 | null | 2021-06-02T03:06:33 | 2019-01-07T05:47:50 | Python | UTF-8 | Python | false | false | 14,613 | py | # 德国红点设计奖
import copy
from urllib.parse import urlparse, parse_qs
import scrapy
import json, requests
from pydispatch import dispatcher
from scrapy import signals
from design.items import DesignItem
def stringToDict(cookie):
cookies = {}
items = cookie.split(';')
for item in items:
key = item.sp... | [
"aaa1058169464@126.com"
] | aaa1058169464@126.com |
5c372b53088ab4f84dcfffede2845b06bd6e939a | 7db0883137d119565540f2d071638c4016f39213 | /Note/Python基础/7-内置函数、作用域、闭包、递归/02内置函数、作用域、闭包、递归.py | c43fa61e643f63ef1bbb5f492bbfd9401fde462b | [] | no_license | PhilHuang-d/python--- | cf22a4cc00d4beaaf75ef7ca87a4c5d31a9d5efe | 152c18f51838ce652b79a0cd24765b1a1c237eee | refs/heads/master | 2021-09-13T05:32:53.754865 | 2018-04-25T13:36:40 | 2018-04-25T13:36:40 | 108,812,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,172 | py | #python 函数
#回顾
'''
1.函数定义 def fun_name ():
2.参数:1.不需传参 2.必备参数 3.默认参数 4.不定长 *arg **kwarg
3.return: 1.返回函数的运行结果 2.函数结束标志
4.lambda: 匿名函数
'''
#内置函数 python自带
'''
type(1)
max(1,4)
min()
print()
len()
sorted()
reversed()
help()
id()
range()
'''
li = dir(__builtins__)
li.index('abs')
li[81:]
len(li[81:])
###补充
... | [
"32259595+PhilHuang-d@users.noreply.github.com"
] | 32259595+PhilHuang-d@users.noreply.github.com |
8859a380f3da203d0efdb9feb54e3315f0dbd9d9 | 78f54f911d47019da0deeeb6579c7e9e65bb8d21 | /src/api/views/operation/DataOperationJobExecutionLogPageResource.py | 77d470c14c53ecf808a4b9fdffc2504abd0d6b73 | [
"MIT"
] | permissive | jedicontributors/pythondataintegrator | 02f8ae1a50cf5ddd85341da738c24aa6a320c442 | 3e877b367ab9b20185476128ec053db41087879f | refs/heads/main | 2023-06-15T07:37:13.313988 | 2021-07-03T15:46:43 | 2021-07-03T15:46:43 | 354,021,102 | 0 | 0 | MIT | 2021-07-03T15:46:44 | 2021-04-02T13:03:12 | Python | UTF-8 | Python | false | false | 883 | py | from flask import make_response
from injector import inject
from domain.operation.page.DataOperationJobExecutionLogPage import DataOperationJobExecutionLogPage
from IocManager import IocManager
from infrastructor.api.ResourceBase import ResourceBase
from views.operation.PageModels import PageModels
@PageModels.ns.rou... | [
"ahmetcagriakca@gmail.com"
] | ahmetcagriakca@gmail.com |
4203fc64b42976197bb2a2ab87c76d917f452bc4 | bccd16717d20d673cb514d6ac68e624c2c4dae88 | /sdk/python/pulumi_gcp/bigquery/connection.py | 63db8d73551105584dc646ee0444d5bdf3770b0a | [
"MPL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | dimpu47/pulumi-gcp | e78d228f7c2c929ad3e191331b75c6e4c4cc4fa9 | 38355de300a5768e11c49d344a8165ba0735deed | refs/heads/master | 2023-07-07T13:00:15.682157 | 2020-09-23T18:43:11 | 2020-09-23T18:43:11 | 173,437,663 | 0 | 0 | Apache-2.0 | 2023-07-07T01:05:58 | 2019-03-02T11:06:19 | Go | UTF-8 | Python | false | false | 9,937 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
e3678ab79ffc6937784d904012f9b0e3439544af | 9dc3ab405ab31c959738868cd48c1b62e0730de0 | /src/685.冗余连接-ii.py | 8d4da2edeeff3ba7a967f874cb427a69f3fc92b8 | [] | no_license | gwy15/leetcode | 2d062496f43ad9f98f133f0eb61fc81bb7014b5a | 5ce829760205674965eae81b191a364022b80ae2 | refs/heads/master | 2022-07-21T09:07:24.763917 | 2022-07-10T11:36:28 | 2022-07-10T11:36:28 | 230,042,980 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | #
# @lc app=leetcode.cn id=685 lang=python3
#
# [685] 冗余连接 II
#
from typing import List
from utils import *
# @lc code=start
class UnionFind:
def __init__(self, n):
self.parent = [i for i in range(n+1)]
def find(self, i):
if self.parent[i] != i:
self.parent[i] = self.find(self.par... | [
"gwy15thu@gmail.com"
] | gwy15thu@gmail.com |
d3eac81e4df285bb6ef2fa5f20f85a236f7cd7b5 | ac75338258efe0c85b2e850c423f66261185da19 | /scripts/check_disk.py | 0af7e7855d9ee6443c538b59faaf437887bc3f07 | [] | no_license | yindashan/vongfong | 63d662f5413d07d0ee43552c707d2600118b6d23 | e608b78b65a536668cffdeb1babdf5b2d53a851d | refs/heads/master | 2021-01-22T04:53:48.271579 | 2014-10-20T10:59:30 | 2014-10-20T10:59:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | #!/opt/virtual_python/bin/python
# -*- coding: utf-8 -*-
import os
import sys
def error_handler(error_message=""):
# print error_message
print "HOST_STATUS | SYS_DISK_MAX=-1, SYS_DISK_AVG=-1"
sys.exit(1)
def success_handler(disk_max, disk_avg):
print "HOST_STATUS | SYS_DISK_MAX=%.0f, SYS_DISK_AVG=%.0... | [
"="
] | = |
4f7c9089efcf8f9093fe948eb1c1a65059d82aa6 | 759806e04d87388ffb4679c679603a67e403d62c | /deeppy/parameter.py | 73314c42fb2e681090ff6f698494e146dab241df | [
"MIT"
] | permissive | MengjiaoZhang/deeppy | 631ce30ea62b869d2ce6057f09006327a1a3fe04 | 61bcce2cdcdb235e49e18ae2adc36cec2b819e4f | refs/heads/master | 2021-10-20T05:28:36.403591 | 2019-02-26T03:50:39 | 2019-02-26T03:50:39 | 100,334,957 | 0 | 0 | null | 2017-08-15T03:31:47 | 2017-08-15T03:31:46 | null | UTF-8 | Python | false | false | 3,524 | py | import numpy as np
import cudarray as ca
from .base import PickleMixin
from .filler import Filler
import logging
log = logging.getLogger(__name__)
class Parameter(PickleMixin):
def __init__(self, fill, name='', learn_rate=1.0, weight_decay=0.0,
monitor=False):
self.filler = Filler.from_a... | [
"anders.bll@gmail.com"
] | anders.bll@gmail.com |
a351bc256d9f152d41300390acc5b92facbe0a38 | ce6ee53bd426bfc98c874e77e2b4f21a3f0e3710 | /msl/loadlib/client64.py | c12ad0c3bdbef9ad4260dd59c85f2a2711d0853d | [
"MIT"
] | permissive | wliustc/msl-loadlib | e86c9bcfa7d21911b49dd0c53195ae8499ba6316 | 08f71cec680befc9a326dcde558115110804661c | refs/heads/master | 2021-06-22T20:12:06.216930 | 2017-05-14T22:11:23 | 2017-05-14T22:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,996 | py | """
Contains the base class for communicating with a 32-bit library from 64-bit Python.
The :class:`~.server32.Server32` class is used in combination with the
:class:`~.client64.Client64` class to communicate with a 32-bit shared library
from 64-bit Python.
"""
import os
import sys
import site
import uuid
import time
... | [
"joe.borbely@gmail.com"
] | joe.borbely@gmail.com |
082be1b5930c9fea306075fdb4d9ca4afe7aad82 | 99249dad36df26a712ae8d900041d53acf3901ea | /Alio_PP.py | e01720fab754c35077f9b1a97cc31c77a9062610 | [
"MIT"
] | permissive | bopopescu/Lauecollect | f1f79c2cc5ff106df0dedbd6939ec92630d2b305 | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | refs/heads/master | 2022-11-29T00:40:28.384831 | 2019-06-05T01:21:36 | 2019-06-05T01:21:36 | 280,989,300 | 0 | 0 | MIT | 2020-07-20T02:03:22 | 2020-07-20T02:03:22 | null | UTF-8 | Python | false | false | 26,335 | py | from os import getcwd,makedirs
from os.path import exists,dirname,basename,getmtime
from logging import info,error,warn # for debugging
import wxversion; wxversion.select("2.8")
import wx
import matplotlib.pyplot as plt
import math
from id14 import *
from alio import *
# Plot motion profile
# Add help
# Hightlight thi... | [
"friedrich.schotte@gmail.com"
] | friedrich.schotte@gmail.com |
ac906df3d26c13e011ddd08ebbcf547d5f8ba997 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /d6wR7bcs4M6QdzpFj_22.py | a974df204fe74c1916514354b94bda9a854aff69 | [] | 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 | 208 | py |
def repeat(lst, n):
lst *= n
return lst
def add(lst, x):
lst += [x]
return lst
def remove(lst, i, j):
del lst[i:j+1]
return lst
def concat(lst, lst2):
lst += lst2
return lst
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
82f4a7648c857533b4eea8624aae7746a612b821 | 0a3af31fdfda57fa84ac0705ab75220593a02231 | /extra_foam/gui/pyqtgraph/debug.py | 227d42e6b3327597cbcc7744b26a4ed3fb9878b2 | [
"BSD-3-Clause",
"MIT"
] | permissive | European-XFEL/EXtra-foam | 8c13cee296a4f948d8e4401bc984b0fbceaf666f | a6ee28040b15ae8d110570bd9f3c37e5a3e70fc0 | refs/heads/dev | 2023-08-15T06:36:10.366971 | 2022-06-05T10:52:45 | 2022-06-05T17:32:02 | 224,390,821 | 8 | 12 | BSD-3-Clause | 2023-07-28T07:29:25 | 2019-11-27T09:16:11 | Python | UTF-8 | Python | false | false | 40,698 | py | # -*- coding: utf-8 -*-
"""
debug.py - Functions to aid in debugging
Copyright 2010 Luke Campagnola
Distributed under MIT/X11 license. See license.txt for more information.
"""
from __future__ import print_function
import sys, traceback, time, gc, re, types, weakref, inspect, os, cProfile, threading
from . import p... | [
"zhujun981661@gmail.com"
] | zhujun981661@gmail.com |
5c6afaf97d882a3b09cfa1be1d484a2d2eb8d85c | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/compute/forwarding_rules/export.py | 775970417bc23256a2773e03cb330b01b5ea2d48 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 3,335 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 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... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
27aed74f7d7ed88209307cf2a2a2cea31c14b19c | e953ae5da775a934b86379cfa3d864bb7376fe36 | /06 basic_python/31.py | a5c63a5feadc51b78f45dc2aa5c67ecc12e99740 | [] | no_license | agyenes/greenfox-exercises | 1481f17d1ddd78099d17022aa1800955ae39d92b | a2c7912c61708c6ebc53c9a22f8c09550432d4c3 | refs/heads/master | 2020-04-11T00:42:17.842170 | 2016-10-19T06:10:22 | 2016-10-19T06:10:22 | 68,081,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | ae = 'Jozsi'
# create a function that greets ae
def greet(i):
print("Szia,", i)
greet(ae)
| [
"aron.gyenes@gmail.com"
] | aron.gyenes@gmail.com |
9a8245d81cce37a1d13ffea383b345472f241fc8 | 7ce761781e7f5b57b2469adce459a71b4758694d | /env/lib/python2.7/site-packages/graphlab/toolkits/recommender/__init__.py | 5f0dfa5a49dccfd2fd8cf72102ad6275e594a3a1 | [] | no_license | hophamtenquang/RecSys | c4fa18d1ba262670a284b2fba2ca97b882ef0f4c | 535472844a046cadd9230302da647a54afff95e8 | refs/heads/master | 2021-01-19T17:00:32.924064 | 2017-08-30T10:31:32 | 2017-08-30T10:31:32 | 101,031,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | """
The GraphLab Create recommender toolkit provides a unified interface to train a
variety of recommender models and use them to make recommendations.
Recommender models can be created using :meth:`graphlab.recommender.create` or
loaded from a previously saved model using :meth:`graphlab.load_model`. The
input data m... | [
"hophamtenquang@gmail.com"
] | hophamtenquang@gmail.com |
b9d68622ad7adf86c83d7f228b67ced8d4b3615c | 7c21136fe921f1097777aad4c165e030ae6fbdca | /main/urls.py | 662eddb13e4e684f3a619a689fe1f332de028bf7 | [] | no_license | shikhers/aten | a5936b6cc9e0c943e4e58fadfb5ec66babbee370 | 17c41727762291f19b0a8e768666e708042c61c9 | refs/heads/master | 2020-04-07T04:10:31.316223 | 2018-11-17T15:14:47 | 2018-11-17T15:14:47 | 158,043,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.urls import path
from . import views
urlpatterns = [
#main page url
path('',views.mainview,name='index'),
#second page url
path('Second/<int:pk>/',views.Secondview.as_view(),name='second'),
path('about/',views.Aboutview,name='about'),
path('contect/',views.contectview,name='contect'),
]... | [
"you@example.com"
] | you@example.com |
5797aea72cfa3efbb52a1d2f8889972272e768b1 | 8c95c48d48a5a6a351de57d90b56eb6e2642914c | /Eddie_SelectionRep_BurnIN_8.py | c80330a0c0c9bc5080416fca402ac965de02fd1b | [
"curl",
"Apache-2.0"
] | permissive | janaobsteter/Genotype_CODES | e24dafcf00476a9e0cc989b3c822bd13a391f76f | 8adf70660ebff4dd106c666db02cdba8b8ce4f97 | refs/heads/master | 2021-08-09T14:50:50.721598 | 2021-01-27T14:23:16 | 2021-01-27T14:23:16 | 63,061,123 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,521 | py | # -*- coding: utf-8 -*-
from __future__ import division
import sys
import os
import math
from selection10 import *
from selection10 import nastavi_cat, selekcija_total
from collections import defaultdict
import shutil
import pandas as pd
import numpy as np
import resource
import ast
WorkingDir = os.getcwd()
class est... | [
"obsteter.jana@gmail.com"
] | obsteter.jana@gmail.com |
1d092762a0b45a750803ffedb53b03155370f85f | 060967fa3e6e390ac0504172e6dea8421ffb9d98 | /2020/python2020/tests/test_day22.py | cfded87b5bbec592ff78f352e469d4d80e101641 | [] | no_license | mreishus/aoc | 677afd18521b62c9fd141a45fec4b7bc844be259 | e89db235837d2d05848210a18c9c2a4456085570 | refs/heads/master | 2023-02-22T12:00:52.508701 | 2023-02-09T04:37:50 | 2023-02-09T04:39:44 | 159,991,022 | 16 | 3 | null | 2023-01-05T10:00:46 | 2018-12-01T22:00:22 | Python | UTF-8 | Python | false | false | 597 | py | #!/usr/bin/env python3
"""
Test Day22.
"""
import unittest
from aoc.day22 import Day22
class TestDay22(unittest.TestCase):
"""Test Day22."""
def test_part1(self):
"""Test part1"""
self.assertEqual(Day22.part1("../inputs/22/input_small_1.txt"), 306)
self.assertEqual(Day22.part1("../in... | [
"mreishus@users.noreply.github.com"
] | mreishus@users.noreply.github.com |
d195307b1898f670469145acccd129888c63926c | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/functiongraph/graph/vertex/FGVertexTooltipProvider.pyi | 90091176bc9a55644e80fe9887447263f4cf6fe0 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | pyi | import ghidra.app.plugin.core.functiongraph.graph
import ghidra.app.plugin.core.functiongraph.graph.vertex
import ghidra.graph.viewer.event.mouse
import java.awt.event
import java.lang
import javax.swing
class FGVertexTooltipProvider(object, ghidra.graph.viewer.event.mouse.VertexTooltipProvider):
def __init__... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
cb7472c7c24bdec2eb46f50ba68c8aeefb86daa3 | 48c65330f577d11cedb29fd970aee35788ab72c6 | /model_flfact_tpv__mg2_payment_raw.py | e7fb8831e6a95edb90ba11186ebb2e2c0bc5f4ee | [] | no_license | yeboyebo/elganso_sync | 309ecbaba3127493abe001cd1704cc7098234baa | 66f033a0e27a05c1fc6704ec6ba2bd474d204b7e | refs/heads/master | 2023-07-22T00:17:48.201252 | 2023-07-19T07:48:40 | 2023-07-19T07:48:40 | 173,096,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | from YBLEGACY import qsatype
from models.flsyncppal.objects.aqmodel_raw import AQModel
class Mg2Payment(AQModel):
def __init__(self, init_data, params=None):
super().__init__("tpv_pagoscomanda", init_data, params)
def get_cursor(self):
cursor = super().get_cursor()
cursor.setActivat... | [
"jesus.yeboyebo@gmail.com"
] | jesus.yeboyebo@gmail.com |
a837d7545e6069b4dea1f52e9ec3aa6febe7c33d | da479c879d3a0b4e7f07b4e8bf559629ffe83cb3 | /data/aligned_dataset.py | 5f213873674814b16afc0bacaa4bc93b5c7640ce | [] | no_license | phymhan/supervised-gan | c85ae3d20de8488d465c41fd243e10b5d8c8fdb4 | b96543e6afa32e91236a53caf9a009c830a3ab03 | refs/heads/master | 2021-05-06T10:09:54.390099 | 2018-03-05T07:35:48 | 2018-03-05T07:35:48 | 114,100,930 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import os.path
import random
import torchvision.transforms as transforms
import torch
from data.base_dataset import BaseDataset
from data.image_folder import make_dataset
from PIL import Image
class AlignedDataset(BaseDataset):
def initialize(self, opt):
self.opt = opt
self.root = opt.dataroot
... | [
"hanligong@gmail.com"
] | hanligong@gmail.com |
0ff10119cdfd162cfb8fb9750c6fd4d9094d7688 | 9855a6472fa9cd0a0ed75d5d1110eb5450e38c35 | /connections/migrations/0001_initial.py | e92347dc57e1dc6ed9c496d063a45d9cc00497f1 | [] | no_license | JessAtBlocBoxCo/blocbox | efef025333b689e4c9e0fb6a7bfb2237fcdc72a0 | 0966fd0ba096b2107bd6bd05e08c43b4902e6ff2 | refs/heads/master | 2020-04-11T04:30:25.792700 | 2015-09-22T04:41:34 | 2015-09-22T04:41:34 | 23,008,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
m... | [
"jess@blocbox.co"
] | jess@blocbox.co |
4aa43e0f48613691853187fff376281c03792037 | b2f1a91dcf58dfe3a106e4db1a37df00918a4327 | /to_do/bdAttrUtils_v01.py | 84fc1b3a9b6c79b9837148da6159f219a2abb933 | [] | no_license | 8secz-johndpope/bdScripts | 0baf50ea49c36ef341f0755477ac1cf925f3697e | ccafe5280afafe8f91ae6cd5549516620b95aac9 | refs/heads/master | 2022-02-01T02:38:57.003873 | 2019-06-13T09:22:43 | 2019-06-13T09:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | py | import pymel.core as pm
class AttributesHolder():
def __init__(self, *args, **kargs):
self.attrHolder = self.bdGetHolder()
self.attrList = []
self.attrReconstruct = []
self.attrReconstructConnections = []
self.attrReconstructValues = []
self.attrReconstructType = []... | [
"ender_bd@yahoo.com"
] | ender_bd@yahoo.com |
311bd7afad27eb6ccfbf661bea184e15cd4618c8 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab5/set2/KENNEDY K BATCHLER_9402_assignsubmission_file_Lab5/lab5/Lab5_Q3.py | 5e970aee8d023ff311670ed9cfd1f813355003d0 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | def checkprime(n):
'''check if integer n is a prim '''
n=abs(int(n))
if n < 2:
return False
if n == 2:
return True
if not n & 1:
return False
for x in range (3,int(n**0.5)+1,2):
if n % x ==0:
return False
return True
print checkprime(3)
print checkprime(255) | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
d2cf331487cb1b5acac8cd4b783f232994f648ca | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.ZDJ/Sans_12/pdf_to_json_test_Latn.ZDJ_Sans_12.py | ba8019a68e1e0f270cd611ac953ac6ea1256f75a | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.ZDJ/Sans_12/udhr_Latn.ZDJ_Sans_12.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
b4bc0ec8f1ec15786c7f839f29f0fc6e24f6e98f | c5cf1e1b5162686a3ae2c57ab3567a6db4223ff6 | /Programas/rhCompression/lz40.py | ab710f1bfd899b1b166293c255a0f2857ff54f3b | [
"CC0-1.0"
] | permissive | hansenhahn/ace-attorney-4-ptbr | bddced8126ac6c96b8157652fca697b590b8b76f | 519b409915b928398bcdd2a4bd983cf6a36ccf25 | refs/heads/master | 2022-12-24T10:43:08.626058 | 2020-09-18T21:59:58 | 2020-09-18T21:59:58 | 272,094,011 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,121 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# compression/lz40.py
# Copyright 2009 Diego Hansen Hahn (aka DiegoHH) <diegohh90 [at] hotmail [dot] com>
# lazynds is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundati... | [
"hansen.hahn@gmail.com"
] | hansen.hahn@gmail.com |
e3474d01bb0de6fd542f3e92b38fda2d97e616a5 | 478422b7042926f243a6dcfa90d9c8640e37ec83 | /BasicOperations/05_Pandas/date_range.py | 5740480ffdd01d67974487b770b17f67848b720a | [
"MIT"
] | permissive | JohnnyDankseed/midProjects | c70e4c19680af50c1a3869726cca4e9ea2cd4de7 | ed6086e74f68b1b89f725abe0b270e67cf8993a8 | refs/heads/master | 2021-06-03T05:24:32.691310 | 2016-07-25T17:13:04 | 2016-07-25T17:13:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import numpy as np
import pandas as pd
np.random.seed(123456)
bymin = pd.Series(np.random.randn(24*60*90),
pd.date_range('2014-08-01',
'2014-10-29 23:59',
freq='T'))
#print(bymin)
#print(bymin['2014-08-01 00:02':'2014-08-01 00:10'])
dti = pd.date_range('2014-08-29', '2014-09-05', freq='B')... | [
"upsea@upsea.cn"
] | upsea@upsea.cn |
8bb91ae2916c4d2788f758d11c7fe023b3ae847d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_230/ch138_2020_04_01_19_11_08_153239.py | 892d1d92e4acf3e252656b210a7de8eab78dec62 | [] | 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 | 485 | py | executa=input("Código está executando?")
avancar=0
while not avancar:
executa=input("Código está executando?")
if executa=="n":
print("Corrija o código e tente de novo")
if executa=="s":
avancar=True
resultado=input("O código produz o resultado correto?")
if resultado=="n":
... | [
"you@example.com"
] | you@example.com |
1bc24b959a7ad0e561d59bda9b245178f151d1b8 | 73e943ca6a4e44f36b896a8e232c544849513a80 | /Python practice/LeetCode/duplicates_game.py | 695de7cdc6ef766a07a2a446202f0d1a5c41528b | [] | no_license | AntonyXXu/Learning | 269649b53531a9340b64ca7864b141077c427c4c | 56ba997b34818cb38e1ad38ab0fdd1533c7c6fc5 | refs/heads/main | 2023-08-12T18:01:19.727220 | 2021-10-15T03:37:15 | 2021-10-15T03:37:15 | 334,278,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | def dup(numbers):
alice = False
for i in range(len(numbers) - 1):
if i >= len(numbers)-1:
break
if numbers[i] == numbers[i+1]:
numbers.pop(i)
numbers.pop(i)
alice = not alice
i -= 2
if alice:
return "Alice"
else:
... | [
"77988513+AntonyXXu@users.noreply.github.com"
] | 77988513+AntonyXXu@users.noreply.github.com |
645ae889cdf4e96cbb7d523528578d4cd8f662e4 | bc356db1ab8455c08583777011c9a1b7cdc18474 | /config.py | 78b941571521bae028ed114079bad3832ed0258d | [] | no_license | ml-lab/simulated-unsupervised-tensorflow | 5f2b98738c7a911d0120b906573a0e4efb8e20b6 | 93a3088d74844eb22b180a9fbe6db11dd354e034 | refs/heads/master | 2021-04-28T22:28:29.362286 | 2016-12-30T16:37:49 | 2016-12-30T18:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | #-*- coding: utf-8 -*-
import argparse
def str2bool(v):
return v.lower() in ('true', '1')
arg_lists = []
parser = argparse.ArgumentParser()
def add_argument_group(name):
arg = parser.add_argument_group(name)
arg_lists.append(arg)
return arg
# Network
net_arg = add_argument_group('Network')
net_arg.add_argum... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
e1408030addb09c8ab3f77f561512687ffad4f4f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Project Workshop/pygame/extra/game_9.py | 4ea514cdfec2d45d851d0e2e39a1e7338148b92e | [] | 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 | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:132822ee9a64f4c196c2d6fba260a6da4a51f5c6c930d273e1016c5af491b54f
size 2056
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
861d849b7ec7c8b954dc91f64edfdb99cc82c13f | fc8d456219862ce98fef17afc7031b05d235bf6f | /py_intro/functions/Solutions/add_nums.py | d69afcac2e2efb35ecf48d3bd7b029aa236cef79 | [] | no_license | tspeigner/pythonlearning | ba515606bd622088c19b58bffbc2b2be065cc30f | b6ce2189cd888076352ff9070590239d7f86ea2d | refs/heads/master | 2020-07-07T00:55:44.312141 | 2019-08-19T15:24:42 | 2019-08-19T15:24:42 | 203,192,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | def add_nums(num1,num2):
sum = num1 + num2
print(num1, '+', num2, ' = ', sum)
def main():
add_nums(3,6)
add_nums(10,12)
main() | [
"tspeigner@gmail.com"
] | tspeigner@gmail.com |
f8ac824ce5ca137b4f1602efb578071fcd488688 | 880dbde608a17d37b325f35e97be3674006051a5 | /HGTP_socket3/app/jie_kou_test/just_run/change_request_after.py | dd5208bc2a791071f9905b74c72b588b370f7f95 | [] | no_license | UserWangjn/JY_local_server | 03aaa6b7666856361a582102e7dbf93b54ba48b0 | 31f9aa7efe294e623d4b3d2ecb208644ae66a9e8 | refs/heads/master | 2022-09-22T03:59:26.383147 | 2019-12-20T03:08:25 | 2019-12-20T03:08:25 | 229,176,327 | 0 | 0 | null | 2022-09-16T03:28:12 | 2019-12-20T02:38:41 | HTML | UTF-8 | Python | false | false | 1,246 | py | # -*- coding: utf-8 -*-
# uncompyle6 version 3.3.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Jun 24 2019, 04:54:02)
# [GCC 9.1.0]
# Embedded file name: C:\jieyuelianhe\old_all_server\test_local\HGTP_socket3\app\jie_kou_test\just_run\change_request_after.py
# Compiled at: 2018-08-06 13:46:... | [
"wjntest@163.com"
] | wjntest@163.com |
8cf7b26e025d36549e5520084075184a5a70edfd | aad0c44c5f3afa29f69d78ff92d45a2adce4e0dc | /aaf2/mxf.py | 11336ae85e4c2207bfb6c7d259dd7216ce30728a | [
"MIT"
] | permissive | andrewmoore-nz/pyaaf2 | d216aa32fc8d1563e15e798037a818c45d08b605 | 3c3a02c7e29c9eaf0ea386a07234c2ed4b7869a1 | refs/heads/master | 2020-09-09T02:24:17.868925 | 2019-08-27T19:06:58 | 2019-08-27T19:06:58 | 221,317,439 | 0 | 1 | MIT | 2019-11-12T21:40:24 | 2019-11-12T21:40:23 | null | UTF-8 | Python | false | false | 32,185 | py | from __future__ import (
unicode_literals,
absolute_import,
print_function,
division,
)
import sys
import struct
import datetime
from io import BytesIO
import io
from .utils import (read_u8, read_u16be,
read_u32be, read_s32be,
read_u64be, read_s64be,
... | [
"mindmark@gmail.com"
] | mindmark@gmail.com |
8fd0a8846ff09f502a566ffef0768afafb99d85f | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/event_handler/event_handler_list/trigger/__init__.py | bbf1f2020c45a3652637473ff8f0b2778c86f5ea | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,469 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
4fcef7e0387ddb43dc2bc169bc9d771340f38c3d | f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67 | /pandas-ta-quant/pandas_ta_quant/technical_analysis/indicators/__init__.py | fd724c94c31b3c904e7f10a40b5d5d5c0854edc4 | [
"MIT"
] | permissive | jcoffi/pandas-ml-quant | 1830ec256f8c09c04f1aa77e2eecfba07d34fe68 | 650a8e8f77bc4d71136518d1c7ee65c194a99cf0 | refs/heads/master | 2023-08-31T06:45:38.060737 | 2021-09-09T04:44:35 | 2021-09-09T04:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | from pandas_ml_common import pd as _pd, suitable_kwargs as _select_kwargs
from pandas_ta_quant._decorators import *
from .multi_object import *
from .single_object import *
from .time import *
from ..encoders.candles import ta_candle_category, ta_candles_as_culb
# this is executing all technical indicators into one h... | [
"kic@kic.kic"
] | kic@kic.kic |
9f1962f97f62c047f0e444a61bac5317e461ed08 | 25873da962b0acdcf2c46b60695866d29008c11d | /src/programr/config/brain/tokenizer.py | 82a0f1a054a21b7b859c72dcd94209b6c331a4b1 | [] | no_license | LombeC/program-r | 79f81fa82a617f053ccde1115af3344369b1cfa5 | a7eb6820696a2e5314d29f8d82aaad45a0dc0362 | refs/heads/master | 2022-12-01T14:40:40.208360 | 2020-08-10T21:10:30 | 2020-08-10T21:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | from programr.config.section import BaseSectionConfigurationData
from programr.utils.logging.ylogger import YLogger
from programr.config.base import BaseConfigurationData
class BrainTokenizerConfiguration(BaseSectionConfigurationData):
def __init__(self):
super().__init__(name="tokenizer")
self.... | [
"hilbert.cantor@gmail.com"
] | hilbert.cantor@gmail.com |
ec500385482ba63ee9fb3bce04cf2768fbfa46f5 | f2d99d437f29af7bd2d4a5ea8af57f49e3d30871 | /test/slice/assign_remove_step.py | 44c1883ba27263ab42fad1b654aa6df57816bdad | [] | no_license | terrence2/millipede | 6d68a09773f83e304702d72a38475946590e3079 | 3e1d63899f54f1154cb6a0bc3634815623803246 | refs/heads/master | 2020-04-01T14:28:06.810699 | 2011-05-30T20:15:30 | 2011-05-30T20:15:30 | 839,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | A = [0, 1, 2, 3, 4, 5]
try:
A[1::2] = []
except ValueError:
print('ve')
else:
print(A)
#out: ve
| [
"terrence@zettabytestorage.com"
] | terrence@zettabytestorage.com |
3250d5bf3b47890c577273d1cb66ea2b6d61e04c | 1b350aa181df07744d6cee613d93212d82e034c7 | /report/migrations/0002_auto_20201223_1633.py | e8004746f304d81f60e62a2cf2b6c12377e60cbd | [] | no_license | DimasGithub/SIPJASA | 86ca901834cb0be767094bfcd4b474c06a5e275b | 9b9f720471d4946aabec77a9baa3cf336c026b83 | refs/heads/master | 2023-06-14T06:59:57.795734 | 2021-07-12T05:58:18 | 2021-07-12T05:58:18 | 326,883,650 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # Generated by Django 3.0.7 on 2020-12-23 09:33
import django.core.files.storage
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('report', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='report',
... | [
"dim.dim10032000@gmail.com"
] | dim.dim10032000@gmail.com |
af254cb37de0b9b4330b32c98250948e074c8ca8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02844/s734181861.py | 789f95ae626ab4403fea493e65cdb0c605402d31 | [] | 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 | 432 | py | N = int(input())
S =list(str(input()))
a=[]
ans=0
for i in range(10):
for u in range(10):
for y in range(10):
moji=[str(i),str(u),str(y)]
ti=0
for t in range(N):
if S[t]==moji[ti]:
ti+=1
if ti==3:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2b775ad406f172a4ce4856cbad0fa4090b82fb04 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /abEZ5AEPaDBHFjfJG_13.py | f97aa8b266028a05067e1faf02b46d40dcce690b | [] | 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 | 760 | py | """
Create a function that takes a string and returns `True` or `False` depending
on whether or not the given formula is correct.
### Examples
formula("6 * 4 = 24") ➞ True
formula("18 / 17 = 2") ➞ False
formula("") ➞ None
### Notes
* You have to figure out what `a` is.
* Ignore the spac... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ffd39035446f9d6ef479217fabd81676c9d14ff7 | b62563d791382e75f65ec9cc281882c58baa1444 | /account/models.py | 3035f4836fa837d481ada840038f660b01ed4393 | [] | no_license | moses-mugoya/Farmers-Machinery-Management-System | 4fda328f1813041c9a6ae64bf618a7eb0b23d78b | 0221c33e5b5936edee3c32baa98f486c9a4726a4 | refs/heads/master | 2020-05-19T03:59:05.148558 | 2019-05-03T20:06:04 | 2019-05-03T20:06:04 | 184,814,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
class Profile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
address = models.CharField(max_length=50, blank=True, null=True)
def __str__(self):
... | [
"mosesmugoya31@gmail.com"
] | mosesmugoya31@gmail.com |
b770dcb394851c4f1b8dd035f3b72ab48291c5eb | 3f2b4d82661a1d22c02b9768315b23d9ab7d2967 | /src/Test/cred_my_o365.py | 1f63a95d87a1dcacefe666b8cd3a8eea45749229 | [] | no_license | Serg-sh/PyEdu | 9b2123fbc8c06dedac45ee2bcefb65f7b281bdab | bc2c6b025c50600ead0f5ba4b43d65ed88b263c3 | refs/heads/master | 2021-06-10T17:38:01.820047 | 2021-06-09T14:51:55 | 2021-06-09T14:51:55 | 175,390,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | USER_NAME_O365 = 'shpak@astrella.com.ua'
PASSWORDS_O365 = '33Gjhncbufhf'
| [
"serg.shp@gmail.com"
] | serg.shp@gmail.com |
dab79bd76a89c2e6957e461b82ca279ce02e3be9 | d85043257d93d35ac5d20fdb784656a83e141350 | /uhv_anneal/export_data.py | 0461dc30b0324c6f375d1aa794639326eb947372 | [] | no_license | CINF/cinfdata_test | ca7ae74c93afb2860c2fa24d6589e25ed5c7d38a | 159c5e7f4727318a6b7b78dcce8f0ea57353abdb | refs/heads/master | 2021-01-01T04:26:36.569960 | 2016-05-13T11:10:43 | 2016-05-13T11:10:43 | 58,448,151 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | /var/www/cinfdata/sym-files2/export_data.py | [
"k.nielsen81@gmail.com"
] | k.nielsen81@gmail.com |
2383aa867d125f3ddcb44267243e7c2d13d823c8 | ec7ecc5abbdd03fb55f24e89dbbdfa23ebd7b60f | /double string.py | 9d330e8e216d109ba7db19cd2b6938cd5dc0ba01 | [] | no_license | poojithayadavalli/codekata | cd290e009cf3e2f504c99dd4f6de9171f217c6be | 1885c45a277cf1023e483bd77edf0c6edf8d95f3 | refs/heads/master | 2020-07-18T14:06:17.190229 | 2020-05-30T09:00:29 | 2020-05-30T09:00:29 | 206,259,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | y=list(input())
l=[]
flag=False
x=y
for i in range(len(y)):
l.append(x[:i]+x[i+1:])
#print(l)
for i in l:
if i[:len(i)//2]==i[len(i)//2:]:
print("YES")
flag=True
break
if not flag:
print("NO")
| [
"poojithareddyyadavalli@gmail.com"
] | poojithareddyyadavalli@gmail.com |
b4694639bd69eec6ea1b5b79593ec04a7ffb909a | 88fb8127709404ba2f03c21734b75fba2b2825e9 | /network/loss/similarity.py | 8a7e7ea681cd62edabadd73ed20d85b9f6fb7a34 | [] | no_license | mahi97/local-loss | 0a2cfa0c03754c0e1d98e3348e82f9be33453a19 | 57bfedd5f6b4649f219cf57799955ae3b863823c | refs/heads/master | 2023-06-23T07:45:35.731066 | 2021-07-20T09:10:28 | 2021-07-20T09:10:28 | 386,665,308 | 0 | 0 | null | 2021-07-20T00:30:33 | 2021-07-16T14:29:27 | Python | UTF-8 | Python | false | false | 1,734 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
def similarity_matrix(x, no_similarity_std=False):
""" Calculate adjusted cosine similarity matrix of size x.size(0) x x.size(0). """
if x.dim() == 4:
if not no_similarity_std and x.size(1) > 3 and x.size(2) > 1:
z = x.view... | [
"mohammadmahdi76@gmail.com"
] | mohammadmahdi76@gmail.com |
c876585bc7040257c3cc207c30f412cf30c9bf3a | 9746def392fc2a97c0bbd0ec1eb84ccdd45cf14f | /src/fcu_boto/ec2/volume.py | ea495d135127be71935b8cd1e0a71734c49139d1 | [
"MIT"
] | permissive | bopopescu/fcu-boto | ec04a9e9f3f224b3f34656297015a8f214f0fc9f | 9e4245ec6fbbadf8c1fcb958bbf08804e38568a6 | refs/heads/master | 2022-11-22T09:55:34.877878 | 2017-05-05T13:38:51 | 2017-05-05T13:38:51 | 282,385,186 | 0 | 0 | null | 2020-07-25T06:24:50 | 2020-07-25T06:24:49 | null | UTF-8 | Python | false | false | 10,456 | 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 ... | [
"cyril.gratecos.ext@outscale.com"
] | cyril.gratecos.ext@outscale.com |
2dfc4e406130b7546d78c304a03fad8e2d8e954f | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/experimentcode/Thesis/Forced/GaussianBumpoverPeriodicBed/FEVMmods/RKStepGnAnaZeroingNoSource/Run.py | 5d477c7785dcb2f60541899c27e3a4dd5f4cb145 | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,309 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 5 14:24:26 2017
@author: jp
"""
from Serre2dc import *
from scipy import *
from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog
import csv
import os
from numpy.linalg import norm,solve
from time import time
def copyarraytoC(a):
n = ... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
b04ffccf942cbbe37c5719db77f1d2e4a37b6e76 | b9481ebae49cf19de3b5718c69b84f1b59a8e421 | /apps/products/migrations/0013_auto_20151006_1316.py | f3e5d290a069be7c5b3362f08fadf607f5138a55 | [] | no_license | arun-skaria/eracks | 06db7e3715afa2c6992fe09f05d6546520c65459 | 532d8a2be31199e7b78ca5e29944deb0a1400753 | refs/heads/master | 2023-01-08T01:40:10.036585 | 2017-07-13T13:10:42 | 2017-07-13T13:10:42 | 97,123,722 | 0 | 0 | null | 2022-12-26T20:16:17 | 2017-07-13T13:08:12 | HTML | UTF-8 | Python | false | false | 1,532 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0012_auto_20151003_1814'),
]
operations = [
migrations.RemoveField(
model_name='choice',
... | [
"nijap@techversantinfotech.com"
] | nijap@techversantinfotech.com |
268af8e834a6936ed7babc905779bbda441b1ba7 | 0bed1250a4805866f871d037c1bce3e5c8757101 | /MISC/TCS extra/pangram.py | 221fe70479ccbf9566baf586f3811efb71416391 | [] | no_license | Srinjana/CC_practice | 13018f5fd09f8a058e7b634a8626668a0058929a | 01793556c1c73e6c4196a0444e8840b5a0e2ab24 | refs/heads/main | 2023-08-02T05:42:49.016104 | 2021-09-20T15:39:24 | 2021-09-20T15:39:24 | 358,312,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # Given a string check if it is Pangram or not. A pangram is a sentence containing every letter in the English Alphabet.
# Examples : The quick brown fox jumps over the lazy dog ” is a Pangram [Contains all the characters from ‘a’ to ‘z’]
# “The quick brown fox jumps over the dog” is not a Pangram [Doesn’t contains al... | [
"srinjanap.official@gmail.com"
] | srinjanap.official@gmail.com |
c707cb936afd2868fc0ddd270b0da9766909c20c | bbf874cf4abb20e7ec5c66e808e97ae6f2043c3f | /0x0F-python-object_relational_mapping/model_state.py | 7bb97ecf69b4b0f8b8f152df04033a35b690dd39 | [] | no_license | imperfectskillz/holbertonschool-higher_level_programming | 105fd80c2bea8fbb60eb786ce9019b3f63188342 | 704e99b29125d6449db32b9d52ede443318df620 | refs/heads/master | 2021-09-14T10:44:22.551896 | 2018-05-12T03:38:59 | 2018-05-12T03:38:59 | 113,130,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | #!/usr/bin/python3
"""
Base class State
"""
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class State(Base):
"""
Class State Table
"""
__tablename__ = 'states'
id = Column(Integer, primary_key=True, nullable=False... | [
"j.choi.89@gmail.com"
] | j.choi.89@gmail.com |
353ce8271b6ff5a78f660ee0a9a7d9d98cb6d386 | c29f7a8c6c9fae126bdef6c43bd1a1e2ebbaf556 | /day11/myFlask01.py | a570a140890714521dbc57c1f3c44b4acd22103a | [] | no_license | wnsgur5303/EducatedPython | 8c95746d821ea2842e624de3ee3e06f5d3ac6416 | bbd956807c3efcff8a4129a9eefa901475b49797 | refs/heads/master | 2023-04-06T18:17:40.914066 | 2021-04-15T07:31:12 | 2021-04-15T07:31:12 | 358,161,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from flask import Flask
from flask import request
from flask.templating import render_template
from flask import Flask, request, render_template, redirect
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello Flask!"
@app.route("/param", methods=['GET','POST'])
def param():
if request.method == "P... | [
"wnsgur5303@gmail.com"
] | wnsgur5303@gmail.com |
56b29c14f1615c70acd6db5106ff2fcb72a49369 | 63276f63ef64064444463a82717e8a75d16093d0 | /usim/_primitives/notification.py | b4c621869f19351d55c4c5d1c2494e6596f9b591 | [
"MIT"
] | permissive | rhdeck/usim | d8f3ed1271b9a6fb1d9a74281c20b9b4af832c9a | 54695a2cdb51ed95616d9e2630a45707e7313f4c | refs/heads/master | 2022-11-08T05:15:03.445508 | 2020-06-29T15:38:26 | 2020-06-29T15:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | from typing import List, Tuple, Coroutine, Optional
from contextlib import contextmanager
from .._core.loop import Interrupt, __LOOP_STATE__, __HIBERNATE__
# TODO: add protocol for destroying a notification
class NoSubscribers(Exception):
...
async def postpone():
"""
Postpone a coroutine in the curr... | [
"maxfischer2781@gmail.com"
] | maxfischer2781@gmail.com |
c8e2ed4738a433f2bf4dcfa0a45ad87f60007992 | 94dc06322cac0ea9da6207c152b0b7211804a9fa | /cocos/tests/test_numerics/test_arith/test_binary.py | 10161a1a8873bd8127dc6496cdc48dd05a2ee749 | [
"MIT"
] | permissive | michaelnowotny/cocos | 667d2c0d966debf81869a8121dd3556d1cbeceb1 | 3c34940d7d9eb8592a97788a5df84b8d472f2928 | refs/heads/master | 2021-09-10T06:10:49.447188 | 2021-09-01T15:33:11 | 2021-09-01T15:33:11 | 176,014,832 | 104 | 5 | MIT | 2020-11-05T11:30:01 | 2019-03-16T19:20:15 | Python | UTF-8 | Python | false | false | 2,769 | py | import cocos.device
import cocos.numerics as cn
import numpy as np
import pytest
test_data_int = [(np.array([[1, 2, -3],
[4, -5, 6],
[7, 8, 20]],
dtype=np.int32),
np.array([[2, 1, 5],
[4, 5... | [
"nowotnym@gmail.com"
] | nowotnym@gmail.com |
922484cb8b1a9d1556c1560a5b265bdd34a9f621 | 136c4241843a000020062413ad6ff4d6de8bdf58 | /flexget/plugins/operate/proxy.py | 49c908285e293c7efba7717f2b59ad070ab7664e | [
"MIT"
] | permissive | ebadenes/Flexget-Origin | d580b9d0bcd65999d2bba6a7051ed19713c7792d | abc05c8bb99f5241b509c3e403eb399413a60dac | refs/heads/master | 2021-01-16T19:22:39.003993 | 2013-04-29T17:32:32 | 2013-04-29T17:32:32 | 9,701,035 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | from __future__ import unicode_literals, division, absolute_import
import os
import logging
from flexget import plugin
from flexget import validator
log = logging.getLogger('proxy')
PROTOCOLS = ['http', 'https', 'ftp']
class Proxy(object):
"""Adds a proxy to the requests session."""
def validator(self):
... | [
"chase.sterling@gmail.com"
] | chase.sterling@gmail.com |
511c5660579144e3edf77430190fb25d2ad97851 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /u5WsfTX8rXb2phrNp_21.py | 80e637786714e09b3949b5bfe7ee343bd95969e7 | [] | 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 | 651 | py | """
Kinetic energy can be calculated with the following formula:

* **m** is mass in kg
* **v** is velocity in m/s
* **KE** is kinetic energy in J
Return the Kinetic Energy in _Joules_ , given the mass and velocity. For the
purposes of t... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
29240da84246e9a43d7c37c8482d2dc29f566ab9 | ecd27923efba50703a7bfbfa2ba37a8cc78560ea | /automatic_scraper/config/bid/liriqing/neimenggu_bayanzhuoer_jiaotong_ztb_config.py | 57b408aff01ec04a56a98e1077566f66845d2cb1 | [] | no_license | yougecn/work | fb691b072a736731083777e489712dee199e6c75 | 1b58525e5ee8a3bdecca87fdee35a80e93d89856 | refs/heads/master | 2022-03-03T19:14:17.234929 | 2018-04-17T12:29:19 | 2018-04-17T12:29:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | # coding: utf-8
import time
import logging
import re
logger = logging.getLogger(__name__)
author = "liriqing"
web_title = u"巴彦淖尔市交通运输局"
data_source = 'http://www.bynrjt.gov.cn'
start_urls = [
##政府
#招标
"http://www.bynrjt.gov.cn/ShowClass.asp?classid=2012102617859481",
#中标
"http://www.bynrjt.gov.... | [
"iwechen123@gmail.com"
] | iwechen123@gmail.com |
549b56e9d5ce8cac7c79f2455808cff2a626bfb9 | ac1e944eb288c8b13a0bef0ee7de85ee6d30b4c0 | /django/the-downloaders-master/audio/migrations/0002_auto_20210403_1616.py | cf3abba1884488f2a559c76cb2eb72acc2f68ff0 | [] | no_license | Jayson7/random-projects | 05dd175d00e9bd62cb39973c3439846f641675c8 | cdbebb896a0ecea0de543f16ecf4661e519ec0bb | refs/heads/master | 2023-06-19T01:54:08.339954 | 2021-07-19T01:40:09 | 2021-07-19T01:40:09 | 383,971,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Generated by Django 3.1.7 on 2021-04-03 15:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='audio',
name='File',
field=... | [
"lexxiijoo70@gmail.com"
] | lexxiijoo70@gmail.com |
99fb17683567f8beb00d636ce4a368f46ef6b7cd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/390/usersdata/338/77405/submittedfiles/ex1.py | fd58363344945842bd95b5e3e55f701f8c4cdb17 | [] | 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 | 325 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = (input('Digite a: '))
b = (input('Digite b: '))
c = (input('Digite c: '))
#COMECE A PARTIR DAQUI!
delta = ((b)**2 - (4*(a)*(c)))
x1 = ((-(b)+(delta)**0.5))/2*(a)))
x2 = ((-(b)-(delta)**0.5))/2*(a)))
if delta >= 0:
print(x1)
print(x2)
else:
print... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f481c1236e190f582f6fb447f150dbf7348fbb3e | 0e5a353bf5eba99a4cf7f2c1754a90218d9e972d | /maya_tools/sg/python/sg/UI_ScanGeoTransEditor/__init__.py | 02c7271a866b915f98b7c5eb68cf2e3237f4aa47 | [] | no_license | kimsung9k/public | bdb0619d5ac649a6b62bbab8c1a38aa8c364171d | 4b319038dc7adf87acdcdb66bd2979d6d9dd61a2 | refs/heads/master | 2021-01-11T19:55:09.142263 | 2017-05-14T08:49:44 | 2017-05-14T08:49:44 | 79,425,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,821 | py | import maya.cmds as cmds
import maya.OpenMaya as OpenMaya
class Win_Global:
winName = 'sgui_scanGeoTransEditor'
title = "UI - Scan Geo Trans Editor"
width = 400
height = 100
infoPath = cmds.about(pd=True) + "/sg/sgui_scanGeoTransEditorInfo.txt"
intf_lPoint = ''
intf_fPoint =... | [
"kimsung9k@naver.com"
] | kimsung9k@naver.com |
31871b11a1067775e5da892e1ed94aa6382f4bb4 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_None/model_control_one_enabled_None_LinearTrend_Seasonal_Second_NoAR.py | aa428bb2af4aad5ed1b0f6b3b8fa01c756f1722c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 156 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['None'] , ['LinearTrend'] , ['Seasonal_Second'] , ['NoAR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
984220bd21697ab0dab1070f0531b1dd7d9780fb | 603519e0d087967caac72cce854dc7f1dfaa5262 | /bioinformatics armory/CLUS.py | 3b02d6a798de01dfedb838a3d437ba64dad378ea | [] | no_license | Morpheus2112/Rosalind-exercise | e591570521a12905864cb7e7f72b66816da7ae3a | e1047a5f6725e07c8cbf17594bfe4969cbc5d708 | refs/heads/master | 2022-07-25T00:07:17.316099 | 2020-02-16T07:18:21 | 2020-02-16T07:18:21 | 240,848,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 04 12:58:20 2018
@author: Memphis
"""
"""
run Clustal Omega
I use the Phylogenetic Tree to find the answer.
For branch length, check the 'real' length. Then the answer is clear.
"""
| [
"palandswd@gmail.com"
] | palandswd@gmail.com |
71f3b380404147f9adada8756a20c00ae06a5968 | 46183b20d715715731b8ad31fd41b6a2f4bff824 | /src/morphforge/simulation/neuron/simulationdatacontainers/__init__.py | 72d8dfe794b57b01bd2aec05bf588d68028bc9a0 | [
"BSD-2-Clause"
] | permissive | mikehulluk/morphforge | 452265a9880157863a2bc8d236fe5fb4dd3af024 | 2a95096f144ed4ea487decb735ce66706357d3c7 | refs/heads/master | 2021-01-25T10:21:15.574461 | 2015-11-11T21:44:57 | 2015-11-11T21:44:57 | 3,786,364 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
c9e1e6b662968c66817abc6316390550d918f004 | cfd230633ecd8b699b515b5e9d687db0b796e4e4 | /cadence/samples/hello_activity_async.py | 6243fb0b248a93bf6fedf5bff1b9beef36661d44 | [
"MIT"
] | permissive | jakubbrzeski/cadence-python | dce4efdab7f5ac4ee825b0b3bb981406be1fc9ea | 26dfa447bfc118fb4cf2bbba321f6115dba73c1d | refs/heads/master | 2021-04-13T20:36:24.271222 | 2020-03-22T10:11:00 | 2020-03-22T10:11:00 | 249,186,406 | 0 | 0 | MIT | 2020-03-22T13:13:13 | 2020-03-22T13:13:12 | null | UTF-8 | Python | false | false | 2,093 | py | import sys
import logging
from time import sleep
from cadence.activity_method import activity_method
from cadence.workerfactory import WorkerFactory
from cadence.workflow import workflow_method, Workflow, WorkflowClient
logging.basicConfig(level=logging.DEBUG)
TASK_LIST = "HelloActivity-python-tasklist"
DOMAIN = "sa... | [
"firdaus.halim@gmail.com"
] | firdaus.halim@gmail.com |
0f3fec97335a5c21230a73c3bb374fcb0d4af0ef | bfaf79f294427f7ff89a8ec0f4b43d40e5d43523 | /everhash/albums/models.py | 9b89f39913c0c7fc090a193a6ed7a981cbbffd4d | [] | no_license | hguochen/everhash | 4e2c857d63f0282e7fc8fb7979e6bcf02733c918 | 45d3f5b66b4fe56899a931c3e87be7ad707c10a8 | refs/heads/master | 2021-01-23T05:35:33.686831 | 2014-07-01T08:52:51 | 2014-07-01T08:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | # std lib imports
# django imports
from django.db import models
from django.db.models.query import QuerySet
from django.contrib.auth.models import User
from django.utils import timezone
# third-party app imports
# app imports
class AlbumManager(models.Manager):
"""
Album model manager class with proxy querysets
"... | [
"hguochen@gmail.com"
] | hguochen@gmail.com |
908ae0debbd5901c3b50ae6af66a6236ea2e681b | 4baf8fcdb301ce034920fecc0a0454634c0a8ac1 | /vihds/ode.py | 461d8979332f3f01d5bbaa5803e2dfc112699194 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/vi-hds | 19a89faf4d95eb46db0b7da13018af2a27ce3627 | 007b40a13342ca5410126ea122585a12fba60137 | refs/heads/main | 2023-08-10T13:57:52.051570 | 2022-11-28T19:09:53 | 2022-11-28T19:09:53 | 186,619,423 | 48 | 15 | MIT | 2022-11-28T19:09:55 | 2019-05-14T12:39:59 | Python | UTF-8 | Python | false | false | 6,007 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# ------------------------------------
import torch
import torch.nn as nn
import torchdiffeq
from vihds.solvers import modified_euler_integrate, modified_euler_while
from vihds.utils import default_get_value... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
4d51f31d189387774eed152d2df552b829ca007f | d73e2fc86125455c189767438282891a56a74f66 | /backend/wallet/migrations/0001_initial.py | f7a91372d1299869a061b14eb81bf3633da0bde1 | [] | no_license | crowdbotics-apps/calendar-25722 | 35598e6c287306368e7555a3ea0bf536a4b3e43e | 94e3c4fccf3e4353144d8df92d66ba1cc1594c80 | refs/heads/master | 2023-07-05T21:05:14.754055 | 2021-04-16T04:42:06 | 2021-04-16T04:42:06 | 358,361,635 | 0 | 0 | null | 2021-08-03T14:44:03 | 2021-04-15T18:52:18 | Python | UTF-8 | Python | false | false | 6,258 | py | # Generated by Django 2.2.19 on 2021-04-15 22:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("task_profile", "0001_initial"),
("task", "0001_initial"),
]
operations = [
mig... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
acd233a722b4aadc96dcb15bae85885dfcab9f77 | bdbc9cd8c64cfa92efffb9e138cb282d36f69b0a | /addons/hw_escpos/controllers/main.py | 4677f7e26158a5044f2fdc0bf1922e80f1bf6b82 | [] | no_license | clebaresu/impra-adns | d330cece1b710643625627bfd7ed66bac7d233ef | 8b9889d86c6ea194cfb7b0db8bdc3284635cc081 | refs/heads/master | 2020-05-02T16:51:41.798969 | 2019-03-27T22:03:32 | 2019-03-27T22:03:32 | 178,080,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,420 | py | # -*- coding: utf-8 -*-
import commands
import logging
import simplejson
import os
import os.path
import io
import base64
import openerp
import time
import random
import math
import md5
import openerp.addons.hw_proxy.controllers.main as hw_proxy
import pickle
import re
import subprocess
import tracebac... | [
"clebaresu@gmail.com"
] | clebaresu@gmail.com |
484f9807a8f81c7b3a34d3e891fad6c044a3a6da | 08ddcf2752244f23c86afd9530ed27df8a3ea11c | /backend/course/api/v1/viewsets.py | 48b381d1a5f4a5c62b9f649173dc083457aca938 | [] | no_license | crowdbotics-apps/healthos-22078 | a0c21288656c372b601953ee3633d62d04c50679 | 06718bb43539b63180300164a83ac4e69bcb4558 | refs/heads/master | 2023-01-06T09:04:04.601787 | 2020-10-29T04:18:11 | 2020-10-29T04:18:11 | 308,214,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | from rest_framework import authentication
from course.models import (
Recording,
Event,
Subscription,
Course,
Group,
Module,
PaymentMethod,
SubscriptionType,
Enrollment,
Lesson,
Category,
)
from .serializers import (
RecordingSerializer,
EventSerializer,
Subscript... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e4739aab2305a91cd4abe90a2e247b5657bc2342 | 83064dee14ea9fd1e5a5fc6c9c1ff2f3f9f8af9e | /app/snippets/urls/django_view.py | c0d89e0c43f9f45e26ba194dad42184c863fb77b | [] | no_license | Ryanden/Drf-tutorial | 096d5ea41ae819876c65946795bee247e2fdbd5a | 8526255b9f3416bc63569c49be1ab3f9bb564260 | refs/heads/master | 2020-03-23T10:00:41.098213 | 2018-07-26T06:24:57 | 2018-07-26T06:24:57 | 141,420,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.urls import path
from ..views import django_view as views
urlpatterns = [
path('snippets/', views.snippet_list, name='snippet-list'),
path('snippets/<int:pk>/', views.snippet_detail, name='snippet-detail'),
]
| [
"lockstom@gmail.com"
] | lockstom@gmail.com |
7956e960787c7f95ab15213568b3c3f976755086 | 1aba1a1d118d70deeef0c3c9adc375e31f684f97 | /main/urls.py | a8d2b91b98799dee256bba99604d1effad98f95c | [] | no_license | Dekatron322/rest | cd4a1a39a1dac5aed921b0288fb988b9d8ae038e | 6fa4ab7ec71a5307abbb6077f6b7c3c8383c6355 | refs/heads/main | 2022-12-29T14:27:26.160905 | 2020-10-15T09:13:09 | 2020-10-15T09:13:09 | 304,249,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.index, name='index'),
path('about/', views.about, name='about'),
path('reservation/', views.reservation, name='reservation'),
path('contact/', views.contact, name='contact'),
path('specialties/', views.specialties, name='spec... | [
"muritalaibrahim097@gmail.com"
] | muritalaibrahim097@gmail.com |
e2c35c9c617bc44233cf48a816f6b50e57c56f73 | c6d6f62b89e063759f69e179bf7983a13c8180b5 | /src/customers/migrations/0039_countfiles.py | 345ae76baa109620dad5d69d76a65efcdcf44ae3 | [] | no_license | gtsarik/GSI | 170bba1b21b98a44f0fc0f7b9e25bc4b3ae31e9f | e625a189ebb79ebb772f752fbe6230a3e9f68acb | refs/heads/master | 2021-01-21T17:06:34.026805 | 2018-01-25T13:13:59 | 2018-01-25T13:13:59 | 47,333,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('customers', '0038_attributesreport_statis... | [
"artgrem@gmail.com"
] | artgrem@gmail.com |
88a1c20cad04443ee696d10f59ba01afb2819587 | 4a8ece747496f0b5e3cc8c37797081c9d4fe9760 | /pyecharts/charts/effectscatter.py | 49c225f05de9e4cbd267deff7be43c6a3db19aff | [
"MIT"
] | permissive | RohitJacob/pyecharts | b1244fae1957f9452b3d0b188e2e6560da2426e5 | 83081195db612cda7ae9e548af2f0372f1dba7a5 | refs/heads/master | 2021-01-01T19:44:22.374223 | 2017-07-28T08:40:15 | 2017-07-28T08:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | #!/usr/bin/env python
#coding=utf-8
from pyecharts.charts.scatter import Scatter
from pyecharts.option import get_all_options
class EffectScatter(Scatter):
"""
<<< 带有涟漪特效动画的散点图 >>>
利用动画特效可以将某些想要突出的数据进行视觉突出。
"""
def __init__(self, title="", subtitle="", **kwargs):
super(EffectScatter, self)... | [
"chenjiandongx@qq.com"
] | chenjiandongx@qq.com |
67e23a11fcd2b2184addce87b95fe8607c32b723 | 65f3ada144f45bd5dbaf3d37ca9366ff54796f0c | /month5/equationsPossible.py | ec70b000f583128d5fae37563412d64c47a27c65 | [] | no_license | BruceHi/leetcode | 43977db045d9b78bef3062b16d04ae3999fe9ba7 | 0324d247a5567745cc1a48b215066d4aa796abd8 | refs/heads/master | 2022-09-22T14:18:41.022161 | 2022-09-11T23:45:21 | 2022-09-11T23:45:21 | 248,240,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | # 等式方程的可满足性
from typing import List
# class UnionFind:
# def __init__(self):
# self.parent = list(range(26))
#
# def find(self, i):
# if self.parent[i] != i:
# self.parent[i] = self.find(self.parent[i])
# return self.parent[i]
#
# # 未使用按 rank 合并
# def uoion(self, x, ... | [
"BruceHi@users.github.com"
] | BruceHi@users.github.com |
3a6f823c7c5507bfd23178417471253a3e317036 | 97149b75bd21fb9f82aed657ab5180f765927746 | /ietf/person/migrations/0011_auto_20200608_1212.py | ea64411aa71282370f0fccced42eb3dcff2c7235 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hassanakbar4/ietfdb-filter-repo | c74e7cbfdd5acb8f55ca0fcff6757166582d68db | 67513183b7035014b494bfdd982f9f3990ee0647 | refs/heads/main | 2023-08-25T09:47:28.900431 | 2021-11-09T22:16:24 | 2021-11-09T22:16:24 | 426,613,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Generated by Django 2.0.13 on 2020-06-08 12:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('person', '0010_auto_20200415_1133'),
]
operations = [
migrations.AlterField(
model_name='personalapikey',
name='end... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
715397fef4b60c3803b49691804a5a1b8c0a5366 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/hanging.py | 75f5821ace2f5858c76f3f07b38c76480dd18487 | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('hanging', __name__, url_prefix='/hanging')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('repub... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
3fcc6579bf4cca9e32c76db064a17e4466100671 | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /core/lib/am/credentials/src/trustgcf/gid.py | a798ffa48a91a0872ba2786b15013624226e4bc5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 10,166 | py | #----------------------------------------------------------------------
# Copyright (c) 2008 Board of Trustees, Princeton University
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restriction, i... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
edb7128586aa182d0e0a36ee341fc4156fc04b00 | b65009a75a71f67db28583c98a2c9fd1881222a9 | /test/model/bank_test.py | e7a0f1c1d04260927b4cb0103d5f97094d165fb8 | [] | no_license | jofemodo/Application | f2d9adfee4f08fac32062bb99093b86ff9be51e9 | a808e2a7b9c8179d877ffa7b64366255430a807d | refs/heads/master | 2020-12-28T23:46:24.926992 | 2016-09-19T11:40:13 | 2016-09-19T11:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | # -*- coding: utf-8 -*-
import unittest
from architecture.BankError import BankError
from architecture.privatemethod import privatemethod
from model.Bank import Bank
from model.Patch import Patch
class BankTest(unittest.TestCase):
@privatemethod
def generate_bank(self, name):
return {
"... | [
"mateus.moura@hotmail.com"
] | mateus.moura@hotmail.com |
9c7c8f7db44bb2e07e3e362bccf0d14fe1bd14c7 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/trainer_v2/per_project/transparency/mmp/alignment/runner/run_reduce_local.py | bb110dbbad1bb865ca8721841b1c94b9e2d78d61 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 501 | py | import sys
from collections import Counter
from trainer_v2.per_project.transparency.mmp.alignment.reduce_local_to_global import sum_summarize_local_aligns_paired
from trainer_v2.per_project.transparency.mmp.when_corpus_based.runner.when_global_align import when_raw_tf
def main():
input_file_path = sys.argv[1]
... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
6e08f13c326aeff24b043a1e59bc06d612f7db30 | 3772b21624c2883c36af788ce08ad3043b083b6d | /Collections/01_Class.py | 09cd536568434c6c1019c2c0b06ead321166964b | [] | no_license | JoamirS/Fundamentos-python | 992d0ac4d140eee0eb5c158f859aaf0fae9c6594 | 739a6725eb68d42bd8501798b42200abf53c47c5 | refs/heads/master | 2022-02-04T16:35:42.973119 | 2022-01-12T00:23:36 | 2022-01-12T00:23:36 | 195,312,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | first_list = list()
first_list.append(15)
first_list.insert(15, 0)
first_list.extend([27, 10])
print(first_list)
| [
"jmrsilveira@outlook.com"
] | jmrsilveira@outlook.com |
a12eb3598359daaf1d7fddb121cc0b26ca60bcdf | 5e9b46d0ff7b330954fd770533e4b6b33acea710 | /apps/api/urls.py | 14b0014cec8278c0ffb046731d2674ec50a19b4a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ghuntley/NewsBlur | 19348e65575f66db8443751004fd99e4e41bfa45 | ce52a329c2624a5b596a25416606356cfbfe4d9c | refs/heads/master | 2021-01-20T23:20:41.514433 | 2012-09-21T20:03:38 | 2012-09-21T20:03:38 | 5,935,658 | 0 | 0 | MIT | 2020-01-18T22:49:04 | 2012-09-24T14:24:56 | Python | UTF-8 | Python | false | false | 634 | py | from django.conf.urls.defaults import *
from apps.api import views
urlpatterns = patterns('',
url(r'^logout', views.logout, name='api-logout'),
url(r'^login', views.login, name='api-login'),
url(r'^signup', views.signup, name='api-signup'),
url(r'^add_site_load_script/(?P<token>\w+)', views.add_site_lo... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
2bd019965366080c581603290c7793289dd07b85 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/feedmaterialsearch/model/feed_material_search_type.py | c5795d2dca9b6501e46a745edb3c8280ff1c4d31 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 11,233 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
ch... | [
"v_wangzichen02@baidu.com"
] | v_wangzichen02@baidu.com |
b18d5ac3d59e508b8f751ea640ab754c7505079a | 16c1174d8d6c194e01e7172de8249f599e8f9781 | /deluge/plugins/manhole/webui.py | 50ec5d3ad46ae80ea067b7fd78bcc168ee2910bd | [] | no_license | UfSoft/deluge-manhole | 8f6be69b3b8203c863da27254d4b16784d2de9c7 | ebdbe73cb3bbbc1af11bf0f2e33e2037960c7a9e | refs/heads/master | 2021-01-16T17:48:45.532794 | 2011-07-06T10:19:15 | 2011-07-06T10:19:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | #
# webui.py
#
# Copyright (C) 2011 Pedro Algarvio <ufs@ufsoft.org>
#
# Basic plugin template created by:
# Copyright (C) 2008 Martijn Voncken <mvoncken@gmail.com>
# Copyright (C) 2007-2009 Andrew Resch <andrewresch@gmail.com>
# Copyright (C) 2009 Damien Churchill <damoxc@gmail.com>
# Copyright (C) 2010 Pedro Algarvio ... | [
"pedro@algarvio.me"
] | pedro@algarvio.me |
7ae62a6889b6fcd008c804bf53acae52f9aaca9b | 5218af1c8b2e49af7ff37ef1294bf4eb3301487a | /tensorflow_app/rnn/LSTMMnist.py | c4e29dc0834587b82eb1c9b3372dba2f3ccdb16d | [] | no_license | sealire/python-ai | e35e807e06609ceb913b31f5456ade5f3d3d78a5 | 56791446b38837ca4e3b46985be0e4527faf3669 | refs/heads/master | 2020-04-02T20:06:18.761958 | 2019-03-03T14:49:31 | 2019-03-03T14:49:31 | 154,758,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 3 06:00:19 2017
@author: 代码医生 qq群:40016981,公众号:xiangyuejiqiren
@blog:http://blog.csdn.net/lijin6249
"""
import tensorflow as tf
# 导入 MINST 数据集
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("../mnist/", one_hot=True)
n_inp... | [
"leesia@aliyun.com"
] | leesia@aliyun.com |
79ca67eb07fc830a777c13bb8259492b3598cf29 | d6952f048727add5b54a521d04f6c9b5889bcd35 | /pollination_sdk/models/recipe_package.py | 165aad75595047091e4bf6a2e77f9a2e7e211396 | [] | no_license | TfedUD/python-sdk | bf719644041c2ab7b741af9c7fb8e5acfe085922 | 7ddc34611de44d2f9c5b217cf9b9e7cec27b2a27 | refs/heads/master | 2023-08-10T21:13:45.270193 | 2021-06-21T14:48:36 | 2021-06-21T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,918 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pollination_sdk.configu... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
c969f0fb930ffff215fc919310d5648df1607600 | a867ac6ef1ac7b6589778718e2bea7d465c5cabd | /resources/Python/3.2 The Growth of Functions/3.2.22b_matplotlib.py | 5240f173b6ecc73d98755ff903c028569aadd728 | [] | no_license | chris-hamberg/proofs | f33aaf5f6f3e91559519ffe1b16bdebe218b211e | 6be2096dcda5405372134fe718b475cac325cf2c | refs/heads/master | 2020-04-25T07:25:52.054975 | 2019-07-10T01:57:53 | 2019-07-10T01:57:53 | 172,613,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | from math import factorial, floor, ceil, log
import matplotlib.pyplot as plt
import numpy as np
# Name
name = '3.2.22b'
title = 'x'
# Constant witnesses
C1, C2, k = 4, 1, 7
# Hypothetical complexity
f = lambda x: 3*x + 7
ftext = 'f(x) = 3x + 7'
cftext = 'C|f(x)|'
# big Bounding function for f(x)
g = lambda x: x
gte... | [
"chris.hamberg@programmer.net"
] | chris.hamberg@programmer.net |
d64de45901397e3f574fc442194049962e2151e2 | a82aa8430e32eaf62df0f44b20afb0e7d50c3d7b | /ippon/club/authorizations.py | 97e935f9b3bd91f284e955b316064ed9f3cb82c6 | [
"MIT"
] | permissive | morynicz/ippon_back | 314daac99f79247b749dc46d59a645a6eb840263 | dce901bfc649c6f8efbbf0907654e0860606b3e3 | refs/heads/master | 2022-12-20T23:33:10.898738 | 2021-10-17T09:25:39 | 2021-10-17T09:25:39 | 124,851,931 | 0 | 2 | MIT | 2022-12-08T12:37:26 | 2018-03-12T07:43:17 | Python | UTF-8 | Python | false | false | 478 | py | from rest_framework.response import Response
import ippon.models.club as cl
def has_club_authorization(club_id, request):
try:
admin = cl.ClubAdmin.objects.get(user=request.user.id, club=club_id)
is_admin = False
if admin is not None:
is_admin = True
return Response({
... | [
"morynicz@gmail.com"
] | morynicz@gmail.com |
07ba6b3c5c7297f429cf1aaa0ecdb1d891d23298 | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/main_20200118152943.py | 7e15d68370cac4a4fc7f0800eb01f053d872ab7d | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 228,979 | py | from telegram.ext import Updater, CommandHandler
import requests
import re
# API call to source, get json (url is obtained):
contents = requests.get('https://random.dog/woof.json').json()
image_url = contents['url']
def get_url():
contents = requests.get('https://random.dog/woof.json').json()
url = cont... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
d15160cc83da8f0a7780ce09b0d5e8c03e0677c0 | a83bafc38b514a0339a5991be15870551ac49681 | /bimdata_api_client/model/model_errors.py | 982d68f3c6a782350cde3a734c00905876d5fc27 | [] | no_license | bimdata/python-api-client | 4ec2f81e404ef88d3a7e4d08e18965b598c567a2 | c9b6ea0fbb4729b2a1c10522bdddfe08d944739d | refs/heads/master | 2023-08-17T13:38:43.198097 | 2023-08-09T12:48:12 | 2023-08-09T12:48:12 | 131,603,315 | 0 | 4 | null | 2022-10-10T15:21:26 | 2018-04-30T14:06:15 | Python | UTF-8 | Python | false | false | 11,669 | py | """
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1 (v1)
Contact: support@bimdata.io... | [
"infra@bimdata.io"
] | infra@bimdata.io |
ad453369d5eb6606b7c939575acff9e5df278ce7 | 7d75018c3d8e2ac85ea0f5bbaf52ce5eae9761ca | /project/base/admin.py | a350060c0b2babb6a3c163f4a5f688f43d4688de | [] | no_license | AVS18/sdp-sem5 | fff484331d9b588558b928e557a974f05652adcb | 238dcc7dfe50dda9678383590a43b23bbcd99553 | refs/heads/main | 2023-01-14T01:01:18.297711 | 2020-11-14T13:43:55 | 2020-11-14T13:43:55 | 288,098,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from django.contrib import admin
from .models import Contact,User, Profile,SiteAnnouncement,Message,ContactSupport
# Register your models here.
class ContactRef(admin.ModelAdmin):
list_display = ['name','email','phone']
admin.site.register(Contact,ContactRef)
admin.site.register(User)
admin.site.register(Profile)... | [
"avsadityavardhan18bcs@iiitkottayam.ac.in"
] | avsadityavardhan18bcs@iiitkottayam.ac.in |
ea3799fcbcbbaf45422177557c8d277e08d8f62a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=25/params.py | 4f16a00666eb72bbbf6b54b0da86dc853dea6960 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.568167',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 25,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
216c2a5cf6256ea88cfa6b41054a6e15922d64b6 | 72e11a80587342b3f278d4df18406cd4ce7531e8 | /pip-10.0.0.dev0-py3.6.egg/pip/_internal/req/req_uninstall.py | a7c0870a7289fd0d04061e7b391af7e1623ee386 | [] | no_license | EnjoyLifeFund/Debian_py36_packages | 740666f290cef73a4f634558ccf3fd4926addeda | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | refs/heads/master | 2021-08-24T02:17:24.349195 | 2017-12-06T06:18:35 | 2017-12-06T06:18:35 | 113,167,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,534 | py | from __future__ import absolute_import
import csv
import functools
import logging
import os
import sys
import sysconfig
from pip._vendor import pkg_resources
from pip._internal.compat import WINDOWS, cache_from_source, uses_pycache
from pip._internal.exceptions import UninstallationError
from pip._internal.locations... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
099cc46a2fbb4762f801570a6401deda6bfb4fc7 | d80c8178dfef933fc6f65bab8e38356b2ac9eea0 | /mymbahome/home/models.py | d4bd7eb2e7301ea0ae595ac417276c3bcd7b8602 | [] | no_license | Mymba/mymba-home | b22a7924ee196f161c0def98b44bd6025772e558 | 41cfac57fedaafbc6e41b5d6cf473e8016536042 | refs/heads/master | 2023-08-10T09:23:48.209793 | 2021-09-21T13:19:37 | 2021-09-21T13:19:37 | 402,787,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | import os
from django.core.validators import ValidationError
from django.db import models
def validador_image_size(image):
file_size = image.file.size
limit_mb = 1
if file_size > limit_mb * 1024 * 1024:
raise ValidationError("A imagem possui %s mb. O tamanho máximo de ve ser de %s mb." % (file_si... | [
"fernando.posser@hotmail.com"
] | fernando.posser@hotmail.com |
ff71d7c0136f6076607b8a3943c9b73a603f5886 | 4144df22392350035a9a24fcbc23fd1c6bce5c12 | /setup.py | 6e1c9a3296c4471d85750db72f5c90b2739d5195 | [
"BSD-3-Clause",
"Adobe-Glyph"
] | permissive | danielgrumer/glyphNameFormatter | 55b6076684bed7ff4cc6e37ce4a0bb0e2ce86a4a | 9a41b3ef02c01cd18afe0232f6e436a2f7379178 | refs/heads/master | 2020-12-11T05:35:47.835908 | 2016-03-19T09:50:33 | 2016-03-19T09:50:33 | 53,578,090 | 0 | 0 | null | 2016-03-10T11:07:31 | 2016-03-10T11:07:30 | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
from distutils.core import setup
setup(name = "Glyph Name Formatter",
version = "0.1",
description = "Generate list of glyphnames from unicode names.",
author = "Erik van Blokland, Frederik Berlaen",
author_email = "erik@letterror.com, frederik@typemytype.com",
url ... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.