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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adc306eabb7dbc0bfdb65f42a941a06a2541d9b8 | fbdd18eac2c5a3163f0a4154daf3e89ddef0507d | /day3/start/12_random.py | 703da11b1752801f5ef6c90fd8594635d546c62e | [] | no_license | techsharif/python_training_2021 | 562d891e40fe2410cebcdad841eb407fb40b7871 | 246dddc1c4dae683df4b006fe96a5a117d1aeaf6 | refs/heads/master | 2023-02-27T12:11:23.541408 | 2021-02-10T10:03:48 | 2021-02-10T10:03:48 | 333,330,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import random
print(random.random()) # 0.125
print(random.randint(0,9)) # 5 | [
"sharif.cse.hstu@gmail.com"
] | sharif.cse.hstu@gmail.com |
570bc08e2531a3c60bc6778ff86427b795d3d936 | 9e610e88158b973a2129cb794176dc1a9b0b6bfd | /juicer/util/jinja2_custom.py | 535940968e98e01641d04d94dbc96fd93dc925e3 | [] | no_license | eubr-bigsea/juicer | 8735b3aefcf66a5207364270e7ee9ec809b94ad4 | 4714187a6cb8ca7d1e09d8eae4cf4898ae7dcc58 | refs/heads/master | 2023-08-31T07:01:52.091443 | 2023-08-14T21:45:03 | 2023-08-14T21:56:48 | 68,124,762 | 6 | 8 | null | 2023-08-01T01:21:18 | 2016-09-13T16:09:11 | Python | UTF-8 | Python | false | false | 903 | py | # -*- coding: utf-8 -*-
from jinja2 import nodes
from jinja2.ext import Extension
import autopep8
class AutoPep8Extension(Extension):
# a set of names that trigger the extension.
tags = {'autopep8'}
def __init__(self, environment):
super(AutoPep8Extension, self).__init__(environment)
# a... | [
"waltersf@gmail.com"
] | waltersf@gmail.com |
7d6112f173be2b434f9779490f1979f1d893a056 | 01d92ca39cd4836aaef67e2efcf88a44671c7213 | /code_pack_19/basic_logger_2.py | 360836d78049880cad49c8acca8c494b507ccf7d | [] | no_license | manuelpereira292/py3_bootcamp | 247f411b80f09c46aeeba90a96e6a5d3fd329f2c | 1988553394cb993db82c39993ed397e497bd5ae8 | refs/heads/master | 2022-08-20T02:25:51.265204 | 2020-05-15T22:26:27 | 2020-05-15T22:26:27 | 263,367,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import logging
logging.basicConfig(filename="code_pack_19/sample1.log", level=logging.INFO)
log = logging.getLogger("ex")
try:
raise RuntimeError
except RuntimeError:
log.exception("Error!")
# Let's use our file reading knowledge to
# read the log file
with open("code_pack_19/sample1.log") as fi... | [
"manuelpereira292@gmail.com"
] | manuelpereira292@gmail.com |
98697225e835037618221274549d17e44739d9f0 | b31e7898aa5131125f243eaff973049b17e08512 | /.venv/lib/python3.10/site-packages/anyio/_core/_signals.py | 8ea54af86c4be12340de02dc2a6f7eba387e0d98 | [] | no_license | ramsred/MyProjects | f2978eeda3d73421daf0da9f2d012caef6c3ccda | a7f90ef1ecfbc7517be61e71286bd14405985de5 | refs/heads/master | 2023-07-09T03:19:17.683705 | 2023-07-02T19:30:19 | 2023-07-02T19:30:19 | 71,980,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | from __future__ import annotations
from typing import AsyncIterator
from ._compat import DeprecatedAsyncContextManager
from ._eventloop import get_asynclib
def open_signal_receiver(
*signals: int,
) -> DeprecatedAsyncContextManager[AsyncIterator[int]]:
"""
Start receiving operating system signals.
... | [
"venkataramireddy534@gmail.com"
] | venkataramireddy534@gmail.com |
5a58a787ab85afbf656093287cdf31bb5fd3798e | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/network/get_hub_virtual_network_connection.py | a68415eeb18718c1b8b9c127daf3badcdf55b420 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,803 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
e78649e5c08756d7f0bd2c588219d7302dd0f4e2 | df716b2868b289a7e264f8d2b0ded52fff38d7fc | /plaso/parsers/sqlite_plugins/safari.py | 22bb6098cb41d93825e091cb3aafa5f5caee31fd | [
"Apache-2.0"
] | permissive | ir4n6/plaso | 7dd3cebb92de53cc4866ae650d41c255027cf80a | 010f9cbdfc82e21ed6658657fd09a7b44115c464 | refs/heads/master | 2021-04-25T05:50:45.963652 | 2018-03-08T15:11:58 | 2018-03-08T15:11:58 | 122,255,666 | 0 | 0 | Apache-2.0 | 2018-02-20T21:00:50 | 2018-02-20T21:00:50 | null | UTF-8 | Python | false | false | 5,409 | py | # -*- coding: utf-8 -*-
"""Parser for the Safari History files.
The Safari History is stored in SQLite database files named History.db
"""
from __future__ import unicode_literals
from dfdatetime import cocoa_time as dfdatetime_cocoa_time
from plaso.containers import events
from plaso.containers import time_events
fr... | [
"onager@deerpie.com"
] | onager@deerpie.com |
04c13e2c86dc8ea3c26a9f4c6c9286fc9ec47a0e | 7eb3009e95a15a992c0c21afe0884008ba10544d | /game/src/leveleditor/objectproperties/ColorEditor.py | 6262d9c64458825c0e02be2bb60267cca144a4fc | [] | no_license | tsp-team/ttsp-src | be391ebc44f01463ff2e802ab039438e07a645f3 | 9bf1869adbc4f0c1dff69095c04f4604a515c4e4 | refs/heads/master | 2022-12-04T09:50:36.944988 | 2020-08-23T21:01:32 | 2020-08-23T21:01:32 | 263,228,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | from .BaseEditor import BaseEditor
from src.leveleditor import LEUtils
from PyQt5 import QtWidgets, QtCore
class ColorEditor(BaseEditor):
def __init__(self, parent, item, model):
BaseEditor.__init__(self, parent, item, model)
self.lineEdit = QtWidgets.QLineEdit("", self)
self.lineEdit.ret... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
2ba8af9a37d1b2976828cea090385da648a31a6a | 45cb74f15ebf96b431e5689e554fcdc42062ee08 | /4-magnet_particles/solution.py | 2c864f0e918fe8e2abfb2ca11901b3067432a85e | [] | no_license | acu192/codewars | d296bc95fd067f0059045494fc445f62f95c060a | 905c5397461976335dbcf6a5bb0ffb6b359a29c0 | refs/heads/master | 2021-01-23T03:52:58.009582 | 2017-08-04T05:03:06 | 2017-08-04T05:03:06 | 86,128,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | """
https://www.codewars.com/kata/magnet-particules-in-boxes
"""
from math import pow
def doubles(maxk, maxn):
return sum(sum(pow(n+1, -2*k) for n in range(1, maxn+1))/k for k in range(1, maxk+1))
def assertFuzzyEquals(actual, expected, msg=""):
merr = 1e-6
inrange = abs(actual - expected) <= merr
... | [
"ryan@rhobota.com"
] | ryan@rhobota.com |
e6c86286a352b6e8be637ea94f7acb30ed3348f1 | 854d0673d18cf1db557d2b9b27c248dd879ba28a | /venv/Lib/site-packages/pymavlink/dialects/v20/paparazzi.py | 930bc5ac439eecddc6e991a9774529639ab527a7 | [] | no_license | Miao1127/code-charpter3 | 51e141c0e463f1ea63f371a498d967b520f59853 | 313dae0b53f1f68fb7ce713ac3eab7e1a2d1b001 | refs/heads/master | 2023-07-15T21:27:22.688910 | 2021-08-23T01:13:59 | 2021-08-23T01:13:59 | 398,937,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161,977 | py | '''
MAVLink protocol implementation (auto-generated by mavgen.py)
Generated from: paparazzi.xml,common.xml
Note: this file has been auto-generated. DO NOT EDIT
'''
from __future__ import print_function
from builtins import range
from builtins import object
import struct, array, time, json, os, sys, platform
from ...... | [
"Miao@DESKTOP-AJA95IE"
] | Miao@DESKTOP-AJA95IE |
40f34e2b13d2dbd43ddbbdfaace14b75eac30a92 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_boot_pxe_ref.py | b14fd7196b588ad8b507fa7ab35924a40ec22fa7 | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,851 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
a323096e6b7bd55f5063ce02e8880ffba43feb9e | aed0016db7f4d22e7d66e6fddb7bf4ef68a3c692 | /neural_sp/bin/args_lm.py | 451d32dd41cc03cd73b2501e5b1c8b81a479d483 | [] | no_license | thanhkm/neural_sp | 6a5575111c83d1fdd97edec21f90fe647965cb69 | 1a5a5ed54f4cb79436007593dbd0d782b246a0c7 | refs/heads/master | 2020-12-26T23:22:56.964151 | 2020-01-15T23:40:22 | 2020-01-15T23:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,678 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Args option for the LM task."""
import configargparse
from distutils.util import strtobool
def parse():
parser = configargparse.ArgumentParser(
... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
057418d9203386866b6b7fbc6ffe76f306489dcc | bddc40a97f92fafb8cbbbfdbdfe6774996578bb0 | /exercicioLista_funcoes/ex12.py | ee26987f60bcef8d32b6fc9a3cf3d93898187be6 | [] | no_license | andrehmiguel/treinamento | 8f83041bd51387dd3e5cafed09c4bb0a08d0e375 | ed18e6a8cfba0baaa68757c12893c62a0938a67e | refs/heads/main | 2023-01-31T13:15:58.113392 | 2020-12-16T02:47:44 | 2020-12-16T02:47:44 | 317,631,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # 12. Embaralha palavra . Construa uma função que receba uma string como parâmetro e
# devolva outra string com os carateres embaralhados. Por exemplo: se função
# receber a palavra python , pode retornar npthyo , ophtyn ou qualquer outra
# combinação possível, de forma aleatória. Padronize em sua função que todos os
#... | [
"andrehmiguel@outlook.com"
] | andrehmiguel@outlook.com |
4c3c0468f63cea5bff5bb6f7efcfb911f37463bf | d8fae39bcfdff1974c5fecd96ed156c4db80e280 | /tensorflow/core/function/capture/capture_container.py | fc8bae0ddc34784edcf9c98d1fb7b1b3ad30d7d4 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | enowy/tensorflow | d2834bda2ff35995637acc55321fc00113d212c1 | b4276073ea8e3bd51229c0726f052f79d8dd239d | refs/heads/master | 2023-04-11T02:02:19.956400 | 2023-03-23T09:06:17 | 2023-03-23T09:10:43 | 62,356,730 | 0 | 0 | null | 2016-07-01T02:38:38 | 2016-07-01T02:38:38 | null | UTF-8 | Python | false | false | 11,537 | py | # Copyright 2022 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
3ba66f0eed8ec2ff6be93418deccfcb8dd27c404 | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/addons/rigify/rigs/limbs/rear_paw.py | 74974bb632ee3d0b20de7f3eac7555dbf09bb20a | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 13,123 | py | import bpy
from .paw import Rig as pawRig
from .paw import parameters_ui
from .paw import add_parameters
IMPLEMENTATION = True # Include and set True if Rig is just an implementation for a wrapper class
# add_parameters and parameters_ui are unused for implementation classes
class Rig(pawR... | [
"admin@irradiate.net"
] | admin@irradiate.net |
c75536852e252b5c4f8293e45f4008fa0530ec2a | 18b741084bda1f1500e9accd2a52b8e75b23c8be | /mootdx/tools/__init__.py | 23308c243ebde3e3097759557232e2deaccfc518 | [
"MIT"
] | permissive | adam1iu/mootdx | bd55baaf10a10c9862f81776a045a3ae3c1ee8ad | 704e2d20d6d81a16b82c67e028de54e48a7cae9c | refs/heads/master | 2023-08-25T09:33:54.619594 | 2021-10-29T06:21:05 | 2021-10-29T06:21:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # -*- coding: utf-8 -*-
# @Author : BoPo
# @Time : 2021/9/18 10:00
# @Function:
| [
"ibopo@126.com"
] | ibopo@126.com |
5dd552a5a78b85cdb055b52651dfb140b36eca81 | 7255a09821deba655309b74927091ac9ab8b6075 | /example/ROAD/code/reborn2.py | de7caa75976e48d03da9d5e55344d7728e2b4973 | [] | no_license | summer1719/pytorchgo | 2814141d6fc0b5c3369d2b9d37e1140e410b25ec | 1ffd561a53d583ca4098297e585e786e472ddd1a | refs/heads/master | 2020-04-25T20:45:04.203802 | 2019-01-10T15:03:31 | 2019-01-10T15:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,138 | py | import argparse
import torch
from pytorchgo.utils.pytorch_utils import model_summary, optimizer_summary
from pytorchgo.utils.weight_init import weights_init
import torch.nn.functional as F
from torch.utils import data, model_zoo
import math
import os
import os.path as osp
import shutil
import numpy as np
from torch.au... | [
"taohu620@gmail.com"
] | taohu620@gmail.com |
f44bca1b4446469132b9c580b3d500987df2806b | 0902ddd4a455c10c2c7dedac872069b8223e7250 | /ppomppu_scraper/__init__.py | 0701f16db84fd59186ef86e4a4e6ae60f5c5b01e | [] | no_license | kyuhwas/ppomppu_scraper | f77f8561b6eb4a4aab18f3e0da32da230ebdc7b9 | a4e24b969898c164d7ef33f034495b50c097e94d | refs/heads/master | 2021-10-19T00:33:14.382761 | 2019-02-16T00:04:49 | 2019-02-16T00:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from .utils import now
from .utils import get_soup
from .utils import normalize_text
from .utils import strf_to_datetime
from .utils import news_dateformat
from .utils import user_dateformat
from .parser import parse_page
from .scraper import yield_parsed_page | [
"soy.lovit@gmail.com"
] | soy.lovit@gmail.com |
fe8c1da06cb5220b0e5ee515224cc1101de51d57 | 6be8aa517e679b33b47d35f100e6590902a8a1db | /DP/Problem54.py | 72cbb8c1c999c705d1e1d21afdf23d8dfda03060 | [] | no_license | LeeJuhae/Algorithm-Python | 7ca4762712e5e84d1e277abecb3bf39c9cbd4e56 | 729947b4428205adfbac194a5527b0eeafe1c525 | refs/heads/master | 2023-04-24T01:02:36.430970 | 2021-05-23T07:17:25 | 2021-05-23T07:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # https://www.acmicpc.net/problem/17182
import sys
from itertools import permutations
read = sys.stdin.readline
n, st = map(int, read().strip().split())
dp = [list(map(int, read().strip().split())) for _ in range(n)]
for k in range(n):
for i in range(n):
for j in range(n):
dp[i][j] = min(dp[i]... | [
"gusdn0657@gmail.com"
] | gusdn0657@gmail.com |
9d7fa1949f2329fb360cf30a14031fc756ee8814 | 83f0cdbc9e1f7261dcd1ff5fc0c8ef4280e84fbb | /ADaM/python/cdisc_library.py | 8437f8e380df5cc47b45fd6272dc69f18a942760 | [
"MIT"
] | permissive | mihir-shinde/CSS2020-Hackathon | 0c39d59ddb1503f0c4170b230f789b8f29fee9ae | f9538ee425fe7eb0573757cdd2346d1f8c7998c1 | refs/heads/master | 2023-03-16T05:06:26.518324 | 2020-09-25T16:20:12 | 2020-09-25T16:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,958 | py | import requests
class CDISCConnector:
BASE_URL = "https://library.cdisc.org/api/"
def __init__(self, username, password):
self._client = None
self._username = username
self._password = password
self._cache = {}
@property
def client(self):
if self._clien... | [
"glow@mdsol.com"
] | glow@mdsol.com |
cc2d67c10951e85ac38fb33a2a8857e71a6610fd | 1c67732a24042a991cc9f7e764d4640522391972 | /back/gamedata/admin.py | d0e2b17e7528b7c6c839144c30b720f95932f249 | [] | no_license | sungguenja/bsgg | 1061ccc6f5f08ed9ad14d3a332af020ec7a5df22 | 447283378ac3bb8f489e2a4662bfb6513bc37be2 | refs/heads/master | 2023-04-01T14:15:05.491775 | 2021-04-06T09:46:25 | 2021-04-06T09:46:25 | 318,800,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from django.contrib import admin
from .models import Area, Animal, Item, AreaItem, AreaAnimal, AnimalItem
# Register your models here.
admin.site.register(Area)
admin.site.register(Animal)
admin.site.register(Item)
admin.site.register(AreaItem)
admin.site.register(AreaAnimal)
admin.site.register(AnimalItem) | [
"59605197+sungguenja@users.noreply.github.com"
] | 59605197+sungguenja@users.noreply.github.com |
0315172cd8f2f418b8753f197edeb6c03507474d | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/applications/FluidDynamicsApplication/python_scripts/apply_custom_velocity_constraints.py | 22b0262260595debdf02adca990f94e5f573eb8c | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | from KratosMultiphysics import *
from FluidDynamicsApplication import *
def Factory(settings, Model):
if(type(settings) != Parameters):
raise Exception("expected input shall be a Parameters object, encapsulating a json string")
return ApplyCustomVelocityConstraintProcess(Model, settings["Parameters"])
... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com |
b1b73aec37759c72a704ea13002ec87a409dff1c | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/matrix-org_synapse/synapse-master/synapse/__init__.py | ff251ce5973b833547a661e133844a21b6b52695 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"659338505@qq.com"
] | 659338505@qq.com |
8251ffe046d39813fb96ab3eda7aaf564efa9dde | 21155deb4419380b995c09946a680a261c524b5b | /meraki/models/subnet_model.py | f08d566a104c927c12dbea3f8f178de10ea8c155 | [
"MIT"
] | permissive | dexterlabora/meraki-python-sdk | 620efab5e6b6eb32ca52308be1cb740748fc0f30 | f6e6d61bd8694548169cd872b0642def69115bcb | refs/heads/master | 2023-05-25T06:50:21.845198 | 2019-06-13T12:22:34 | 2019-06-13T12:22:34 | 182,791,973 | 0 | 1 | NOASSERTION | 2023-05-22T21:37:22 | 2019-04-22T13:22:08 | Python | UTF-8 | Python | false | false | 1,690 | py | # -*- coding: utf-8 -*-
"""
meraki
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class SubnetModel(object):
"""Implementation of the 'Subnet' model.
TODO: type model description here.
Attributes:
local_subnet (string): T... | [
"git@apimatic.io"
] | git@apimatic.io |
7eede2990f6e638af015bc568bd54608b7a9581e | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /events_write_1/event-bu_delete.py | 1d62d387f9b2e00234829669c850e7bdd2a0f3aa | [] | 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 | 1,042 | 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 write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/events/delete-event-bus.html
if __name__ == '__m... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
67a4431f2cf41a56085422a65fa040772f0312e1 | 5edbc16216806de0c32634fae1ae67c4773fbf65 | /wiki/migrations/0002_auto_20160820_2351.py | 8878c2f9679bb51843d6d084ebf7537e0c527bb0 | [] | no_license | MilesWilliams/klaritywiki | 431d9139309c2997aeaeeb02afce9b4da43cff8d | 197c0f9c4094a64e437eb2a51b531747c262290b | refs/heads/master | 2020-12-02T20:44:30.703329 | 2016-08-22T12:10:48 | 2016-08-22T12:10:48 | 66,269,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-20 21:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wiki', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name... | [
"miles@klarity.co.za"
] | miles@klarity.co.za |
ebec3629eb42d836bab2a456034eb71b975018dd | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/workloads/azure-mgmt-workloads/setup.py | 98da49aa95a0f0e5fcc66f523e70cc2345923cf2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 2,764 | py | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
8aa95b8aee556ee8fa7fb2ff5c965d5021d95fbd | 60561fd3efd5ecd8f984c4767c8e1017f66dbfd0 | /apps/unsubscribes/migrations/0002_unsubscribeemail_user.py | a5468036448b33392ed58db1295c00f26159ef47 | [] | no_license | kaushalaman97/react | fd3b691340ba877ace3b9feec0a93103b30f466f | 4b34ace3357fbba0aa6616d761da2f501993bcc4 | refs/heads/main | 2023-03-08T16:33:48.675925 | 2021-02-26T14:23:38 | 2021-02-26T14:23:38 | 342,596,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Generated by Django 3.1.4 on 2021-02-24 08:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"mohit.kaushal@techstriker.com"
] | mohit.kaushal@techstriker.com |
a60bfa7980001c986bed8b71d56e75e0c5b2a66e | 1730f8cea72838a677b52fe82e72d91aa8f68f75 | /003_queues/003_solutionCourseProvided.py | 37326ef9b6a6f674a399d5971a030bad629104f7 | [
"MIT"
] | permissive | remichartier/026_UdacityTechnicalInterviewPrep | 354097e25972a7214b8d1f84fcd3e80b69e79333 | fa52b5f57bdd4e79751059971bb9f73fa0ca8004 | refs/heads/main | 2023-04-07T15:25:16.499791 | 2021-04-18T05:15:23 | 2021-04-18T05:15:23 | 354,467,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # I managed to write all of the methods in one line!
class Queue(object):
def __init__(self, head=None):
self.storage = [head]
def enqueue(self, new_element):
self.storage.append(new_element)
def peek(self):
return self.storage[0]
def dequeue(self):
return self.storage... | [
"remipr.chartier@gmail.com"
] | remipr.chartier@gmail.com |
6c6fb1d95838c3f889b46a7dc6de313d15b867a4 | 01f8b69a1d13578bd013f5e60199ad151863799c | /examples/_relative/xxx.py | ef8d091dbbd19d048dc7c9164f14db13c6a7efe3 | [
"MIT"
] | permissive | podhmo/pyinspect | e3dd9331627091de90a172d9d7eff34307bf2496 | 32ff53c7ceb6a382b635f6c8b98b15f2213d18ff | refs/heads/master | 2020-03-22T20:19:06.961689 | 2019-12-19T15:14:26 | 2019-12-19T15:14:26 | 140,589,327 | 4 | 0 | null | 2019-12-19T15:14:28 | 2018-07-11T14:45:17 | Python | UTF-8 | Python | false | false | 123 | py | def f(x):
return g(x, 1)
def g(x, acc):
if x == 0:
return acc
else:
return g(x - 1, acc * x)
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
f165e00d444f850aee54fecab36cf98b9209d337 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy2453.py | 5211053a79a7324e34dd64e88d63b85985dd3c0e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,238 | py | # qubit number=4
# total number=42
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
56369aec96a4cef7cf632a602fd07ffec540ec5f | ee3e8773f86da51e39fe1b1a57237ad558c0f991 | /plotting/easy_plotting.py | ef5f64774999291358476bfc58818463ad0dfdd9 | [] | no_license | qyx268/plato | 72cd9ca2a6d5e28cd1618433ebc6af21fd2161e7 | b7c84c021bc26d63c768e9d08e28bbaf77d79a87 | refs/heads/master | 2021-01-15T21:07:56.182831 | 2016-04-15T12:33:21 | 2016-04-15T12:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | from collections import OrderedDict
from general.nested_structures import flatten_struct
from plotting.data_conversion import vector_length_to_tile_dims
import plotting.matplotlib_backend as eplt
import numpy as np
__author__ = 'peter'
def ezplot(anything, plots = None, hang = True, **plot_preference_kwargs):
""... | [
"peter.ed.oconnor@gmail.com"
] | peter.ed.oconnor@gmail.com |
29cc73d94435bfd91f4071297e290173c3e70a6f | 86cc876d2b7cbc29d5c13a73d4d985079c73ed68 | /thingflow/adapters/mqtt.py | fe0b20c00a3689ab9dac8f62fb3d9c69fce6d0b5 | [
"Apache-2.0"
] | permissive | masayoshi-louis/thingflow-python | 74fe6f90a37803a27bd69eff9163f7fb668836b4 | c191a8fedac6a962994945830c872e957f929e29 | refs/heads/master | 2020-03-26T08:13:58.334964 | 2017-08-08T03:59:09 | 2017-08-08T03:59:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
import time
from collections import namedtuple
try:
import paho.mqtt.client as paho
except ImportError:
print("could not import paho.mqtt.client")
import ssl
from thingflow.base import InputThing, OutputThing, EventLo... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
e06d2b176396a29ae9f62cab21aeb06a0c165897 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124125405.py | ad4367cc96dbe5bc9bd177dc7020584d0a479ff6 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
# Create your models here.
class NewsPage(AbstractEmailForm):
tempalte ='news/news_page.html'
leanding_page_template = '' | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
d913b9c0afd66a6ee6f04517d7ca25d9e5a27bf4 | 8dd06c1cb548f1a2457607e352646f3e20efc2c3 | /front/__init__.py | 5d1715e08b4f1cd4da658cd7d2bdd4437a3a51c7 | [] | no_license | lordhamster66/Automation-Engineering | 98f3df9ca14957acd481ddb7e2acd6ae94a681d4 | 10cf77f04a204784da1a03e17c46ce5147d2f56e | refs/heads/master | 2022-11-08T12:08:39.331341 | 2017-06-16T05:59:27 | 2017-06-16T05:59:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "Breakering"
# Date: 2017/5/24
| [
"1079614505@qq.com"
] | 1079614505@qq.com |
e7f9eb6f18a705e2446062b9a7609948f8193c95 | 46349356d4812a6bf04a1dff4ee3311864f8b7ff | /ma_py/mic_utils/estimate_gg_pdf_nm_fast/estimate_gg_pdf.py | 494d1dd50b6c30a772ba4dcee8a2594e1c295ed2 | [] | no_license | alexdoberman/ma | 1ca9d20f64d0e8c87feff9f7bb04d09d3088aeb3 | 219e5e87b80c6a795c0d4161b3ad22b9973ed745 | refs/heads/master | 2022-07-17T13:15:21.672335 | 2020-05-12T15:10:40 | 2020-05-12T15:10:40 | 263,365,873 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | # -*- coding: utf-8 -*-
import numpy as np
import soundfile as sf
import matplotlib.pyplot as plt
import glob
import math
from scipy import optimize
import scipy.stats as stats
def fun_ML_c(f, *args):
"""
Calc log likelihood for complex data
:param f: - shape
:param args:
:return:
"""
(s... | [
"lavrentyev@speechpro.com"
] | lavrentyev@speechpro.com |
bb254c654547f81e9990ee4cf77ce5783ed9cdd3 | 96b53c177d3060a9149fead7c2481f631d954d2e | /virtual/bin/alembic | 86b62ed49fb847db593874c05a7dda327114015a | [
"MIT"
] | permissive | JOFLIX/pitch | 0a094c93025fa36e28938412e31fa210cd76613c | c821acf138b07f148be0cc5fbe6c82bd6396a428 | refs/heads/master | 2022-09-29T06:40:22.370088 | 2019-08-07T07:46:43 | 2019-08-07T07:46:43 | 200,628,592 | 0 | 0 | null | 2022-09-16T18:06:49 | 2019-08-05T09:51:31 | Python | UTF-8 | Python | false | false | 257 | #!/home/moringa/Desktop/pitch_your_work/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"joflixooko@outlook.com"
] | joflixooko@outlook.com | |
c70d686b8a66449aa75277ec024a414043f77dab | 8b00e2b136636841b38eb182196e56f4721a1e4c | /trio/_util.py | 121513b20e80d517c58bc5e6fb5c7f2255ca441a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | xyicheng/trio | 77c8c1e08e3aa4effe8cf04e879720ccfcdb7d33 | fa091e2e91d196c2a57b122589a166949ea03103 | refs/heads/master | 2021-01-23T00:05:59.618483 | 2017-03-16T04:25:05 | 2017-03-16T04:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | import sys
from functools import wraps
import async_generator
__all__ = ["aitercompat", "acontextmanager"]
# Decorator to handle the change to __aiter__ in 3.5.2
def aiter_compat(aiter_impl):
if sys.version_info < (3, 5, 2):
@wraps(aiter_impl)
async def __aiter__(*args, **kwargs):
ret... | [
"njs@pobox.com"
] | njs@pobox.com |
945b2e66bd120592ad55fe796ccf88aeb4bb2efe | e1e5ffef1eeadd886651c7eaa814f7da1d2ade0a | /Systest/lib/py/issu.py | 3fd94a49e3fafb90378548fd7e78467b943c7ff7 | [] | no_license | muttu2244/MyPython | 1ddf1958e5a3514f9605d1f83c0930b24b856391 | 984ca763feae49a44c271342dbc15fde935174cf | refs/heads/master | 2021-06-09T02:21:09.801103 | 2017-10-10T07:30:04 | 2017-10-10T07:30:04 | 13,803,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568,600 | py | #!/usr/bin/env python2.5
#######################################################################
#
# Copyright (c) Stoke, Inc.
# All Rights Reserved.
#
# This code is confidential and proprietary to Stoke, Inc. and may only
# be used under a license from Stoke.
#
########################################################... | [
"muttu2244@yahoo.com"
] | muttu2244@yahoo.com |
5a813bd10a9a6555bcb7a31df0d331852598cdba | 5088fffefcbb3458ee2c8fca6d822487e13c4169 | /04-zanke/monte_carlo.py | 92515bfcf694126c02f491519d94ea6ab3eda678 | [] | no_license | matijapretnar/uvod-v-programiranje | 95de86fb63d6d06558984c05a40690f78d15aa5f | 464a9c566ed3564a6baba60e7c79f9e25399d45e | refs/heads/master | 2023-04-06T00:28:57.011142 | 2023-04-04T10:49:56 | 2023-04-04T10:49:56 | 52,275,510 | 5 | 34 | null | 2022-03-16T10:12:55 | 2016-02-22T13:32:48 | Python | UTF-8 | Python | false | false | 853 | py | import random
def oceni_pi(n):
v_krogu = 0
for i in range(1, n + 1):
x = random.uniform(-1, 1)
y = random.uniform(-1, 1)
if x ** 2 + y ** 2 <= 1:
v_krogu += 1
print(4 * v_krogu / i)
delez_v_krogu = v_krogu / n
return 4 * delez_v_krogu
def nakljucna_tocka_v_k... | [
"matija@pretnar.info"
] | matija@pretnar.info |
9a0ceb1f8a9e8cca78d4939bcf31c244e4acd324 | e1abd868bfad11bf93c50eee1dc9976674de2358 | /scaffold/suite/mass_flux_spatial_scales_plot.py | e0c9cd702c8515ce963bc91851a1de04cd43b566 | [] | no_license | markmuetz/scaffold_analysis | 5c7e9d04b24abe3462c8946381f4cab264bf09e0 | c02d32536c801b23ac8a71e36d25fa922e7cfd94 | refs/heads/master | 2022-06-03T16:13:54.775718 | 2022-05-31T13:22:24 | 2022-05-31T13:22:24 | 92,677,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,255 | py | from itertools import groupby
import matplotlib
import numpy as np
matplotlib.use('Agg')
import pylab as plt
from omnium import Analyser
from scaffold.utils import cm_to_inch
class MassFluxSpatialScalesPlotter(Analyser):
"""Plots histograms of mass flux for each power of 2 (n), and expt."""
analysis_name =... | [
"markmuetz@gmail.com"
] | markmuetz@gmail.com |
236a43ce48ae7a3dc607333f6288c4fc335cd1aa | 99feebd7e64a1961bd3f3c3b152c013b35bc9bad | /testCase/accounts_login_password_test.py | 9c57ce1499bc222b00590c7440c7932a340c9b86 | [] | no_license | andy-29/AutomatedTest | a551fb8d2d608c5191a9f1d71a30188f9a19bba5 | 1c3d2b5295f4b6df4e9321f6a75740a3970df3e4 | refs/heads/master | 2020-06-16T15:24:24.418593 | 2019-06-05T06:26:19 | 2019-06-05T06:26:19 | 195,621,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | import os, sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
func = os.path.basename(__file__).split('_test.py')[0]
from common.gmpackage import *
@ddt
class Accounts_Login_Password(unittest.TestCase):
'''
登入接口
'''
def setUp(self):
self.host... | [
"dayuezaichunji@163.com"
] | dayuezaichunji@163.com |
8f9ef0086d4ee19c301005731bf09b20b0fc8a5c | 9c21e49150c99751231ad399bdba1850bb60c88c | /keepers/migrations/0012_auto_20180619_0056.py | 359b76f9d01a20e6c2e0917a4540eb44a4c47177 | [
"MIT"
] | permissive | netvigator/auctions | 3ab4086cb0bfbc736b17ede4e928f3ead2b08a4c | fc3766226cc65ac8694dffc74e893ecff8e7d07c | refs/heads/main | 2023-05-25T15:55:01.249670 | 2023-05-06T14:51:12 | 2023-05-06T14:51:12 | 92,816,101 | 0 | 0 | MIT | 2023-02-16T05:24:34 | 2017-05-30T09:14:39 | Python | UTF-8 | Python | false | false | 669 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-19 00:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('keepers', '0011_auto_20180615_1818'),
]
operations = [
migrations.AlterField(... | [
"gravesricharde@yahoo.com"
] | gravesricharde@yahoo.com |
3118055357e21e818369addcd8052d38382bdada | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_soar_utils/fn_soar_utils/components/funct_soar_utils_artifact_hash.py | fa0c9212fa4a7c4ee6fd5991f38a41c0ca9545f1 | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 2,521 | py | # -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2018, 2022. All Rights Reserved.
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
from json import dumps
from logging import getLogger
from hashlib import algorithms_guaranteed, new
from resilient_lib import get_file_attachment, get_... | [
"travis@example.org"
] | travis@example.org |
6bd7ea042d4999a8e460c696c13d9bf95d339f9e | 6f958fa3e9505d9cd0e75f51008de8e2d1c8c12f | /area/utils.py | 7bd1474cb10f69ff99f85048316243a66a11b5b0 | [] | no_license | yoachim/satellite_collisions | 3b59472ae6672dda7ff28916879ce6ed6370a42c | 4b5f475518cef526d117d83873e885a1fbd7aee8 | refs/heads/master | 2022-02-22T21:27:32.106308 | 2022-02-02T16:18:30 | 2022-02-02T16:18:30 | 220,065,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,845 | py | import datetime
import numpy as np
from astropy import time
from astropy import units as u
from astropy import constants as const
from astropy.coordinates import EarthLocation
from pycraf import satellite
from rubin_sim.utils import Site
import skyfield.sgp4lib as sgp4lib
from astropy.time import Time
import ephem
fr... | [
"yoachim@uw.edu"
] | yoachim@uw.edu |
a694e62f4c790eab767286b4be22a9c5f5e4a41e | 8b20fdc16253b2b4e07ce28f4fd3120db4566783 | /pythainlp/__init__.py | 47bffa93eda32cec984d87f336d8c648c66c28bf | [
"Apache-2.0",
"Swift-exception"
] | permissive | johnnyduo/pythainlp | d8a850fa7b6d9dfed5eb23f84264caea1703f5fb | dbefc4c88ee8051a14e3be1a10a57670f861cd37 | refs/heads/master | 2021-06-19T23:49:43.564140 | 2017-07-06T10:36:58 | 2017-07-06T10:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import six
if six.PY3:
"""
ไว้ใส่ความสามารถที่รองรับเฉพาะ Python 3.4+ เท่านั้น
"""
from pythainlp.sentiment import sentiment
from pythainlp.spell import hunspell,spell
from pythainlp.romanization import romanization,pyicu,royin
from pythainlp.tokenize... | [
"wannaphong@yahoo.com"
] | wannaphong@yahoo.com |
11af023167cde8c35bb2c4b22b1dd4d44852c42d | e89164093c99b2be87b201804718aa73a2ffdae3 | /leetcode/783. Minimum Distance Between BST Nodes.py | df5419cd15909bd4d9943cca22830c3f802cb3ea | [] | no_license | gsrr/leetcode | 748d585d0219ad1a1386794910c7410b50ce3c93 | 992bb618b605c3345318a0eeb2d2df4d11f6a2d5 | refs/heads/master | 2021-07-06T12:40:03.052470 | 2021-05-28T17:28:43 | 2021-05-28T17:28:43 | 76,116,620 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
def ldr(node, arr):
if node.left != None:
ldr(node.left, arr)
arr.append(node.val)
if node.right != None:
ldr(node.r... | [
"jerrycheng1128@gmail.com"
] | jerrycheng1128@gmail.com |
069534b71755db5b1b403c9d65cf61f1b0a9f491 | 6b6e20004b46165595f35b5789e7426d5289ea48 | /workers/test/test_exportactionlogsworker.py | 0e4a728b421dd60c2b029851e5dfe04326ee7a91 | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 4,628 | py | import json
import os
from datetime import datetime, timedelta
import boto
from httmock import urlmatch, HTTMock
from moto import mock_s3_deprecated as mock_s3
from app import storage as test_storage
from data import model, database
from data.logs_model import logs_model
from storage import S3Storage, StorageContex... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
ca87e2d4a6d85f9a84b735aec448de0ffb39330a | 8ac156c3bfeb4ce28836a1820cb88959424dab14 | /test/test_ocr_page_result_with_lines_with_location.py | db398b1f5b831b331b45a635bf3ed2b22f00da5b | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.OCR | 7b593464d31d3038663bedca3c085a161e356f20 | 90acf41a9b307213ef79f63ea4c749469ef61006 | refs/heads/master | 2023-04-03T06:03:41.917713 | 2023-03-27T05:30:38 | 2023-03-27T05:30:38 | 138,450,272 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # coding: utf-8
"""
ocrapi
The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
imp... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
816c45d294921e6362d0eaa5cc2305ba0fb01d7f | a2fd604a8ef45b4e08cf832348d20b65e4468a79 | /phoenix/tests/test_caches.py | a4d7e9263d733aae95b47899c92b2a290f0313d0 | [] | no_license | darraes/data_structures | 8ca76a3fc3e961860861cd43f5b866b8e7e50427 | 4ff2c60e05d9275b163db59ed37b9f46ba50f3c0 | refs/heads/master | 2020-04-17T10:19:59.357548 | 2019-02-28T21:42:44 | 2019-02-28T21:42:44 | 166,497,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | import unittest
from phoenix.cache import *
class TestFunctions(unittest.TestCase):
def test_lru_new_insertions(self):
cache = LRUCache(3)
cache.put("k1", "v1")
self.assertEqual("v1", cache.get("k1"))
cache.put("k2", "v2")
self.assertEqual("v2", cache.get("k2"))
cac... | [
"daniel.arraes@gmail.com"
] | daniel.arraes@gmail.com |
34177aaf3d8e4472f51189bd33d2c6658fe3cd66 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_image_bytes01.py | 02dba5d0f8a119b040fad480338e187a1031b18b | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,466 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
from io import BytesIO
class TestCompareXLSXFiles(ExcelC... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
3c51dcc2e73e3f43318e71887d695fe2532c06b9 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_appliance/site/_delete.py | f453c8731d6e69b3932912be786b732d7da64fb3 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 5,731 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
60570467f232d79d8b785162fa8abe654121701e | b9dda07897d552466695c735c14d624cf89315bc | /triggerflow/service/eventsources/model.py | 220393130c315f170e96204d7db7a6ce32a801ff | [
"Apache-2.0"
] | permissive | JosepSampe/triggerflow | 02792ba96059f27c2d163ca88d50a10e030026ae | 66d8adcd6b31692663ee861c334608b74fecf884 | refs/heads/master | 2023-01-12T12:12:33.007616 | 2020-10-20T13:14:18 | 2020-10-20T13:14:18 | 264,998,376 | 0 | 0 | Apache-2.0 | 2020-05-18T16:32:06 | 2020-05-18T16:32:05 | null | UTF-8 | Python | false | false | 383 | py | from multiprocessing import Process
from threading import Thread
class EventSourceHook(Thread):
def __init__(self, name: str, *args, **kwargs):
super().__init__()
self.name = name
def run(self):
raise NotImplementedError()
def commit(self, records):
raise NotImplementedEr... | [
"aitor.a98@gmail.com"
] | aitor.a98@gmail.com |
e378342db455f9d7483d9f6cf7982882e5d2ca99 | b72596aa97a724f9f2cc6947b86a9b972846277f | /setup.py | 8cba9868cc12580e64d54561b344cf8fca1cdca5 | [
"MIT"
] | permissive | dumpmemory/hourglass-transformer-pytorch | 698cfcbc6a1b572efef37b5926d45dd598ff457b | 4be33bb41adfedf1b739cd24bec9481bc83a93e2 | refs/heads/main | 2023-09-03T01:45:41.994192 | 2021-11-10T15:49:06 | 2021-11-10T15:49:06 | 426,081,172 | 0 | 0 | MIT | 2021-11-10T15:55:51 | 2021-11-09T03:41:56 | Python | UTF-8 | Python | false | false | 750 | py | from setuptools import setup, find_packages
setup(
name = 'hourglass-transformer-pytorch',
packages = find_packages(),
version = '0.0.6',
license='MIT',
description = 'Hourglass Transformer',
author = 'Phil Wang',
author_email = 'lucidrains@gmail.com',
url = 'https://github.com/lucidrains/hourglass-tra... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
523b42f752bced31bc63bb710b3b4fded293c9cf | 20e3010608e40a6ec5ea56f69d122a62182e4bdb | /1 - Python-2/4 - strings functions/HW4/3. Make an IP adress unclickable.py | f6b7f30215f124961d64f2ec6f1ae189675582a4 | [] | no_license | LarisaOvchinnikova/Python | ee65eac221cd03563d60110118175692564c5b2d | 9cc86a260828662995dec59a6d69528f96d37e79 | refs/heads/master | 2021-08-22T21:41:02.351589 | 2021-05-25T18:37:09 | 2021-05-25T18:37:09 | 253,842,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | # Input: address = "1.1.1.1"
# Output: "1[.]1[.]1[.]1"
def ip_address(address):
return address.replace(".", "[.]")
print(ip_address("1.1.1.1")) | [
"larisaplantation@gmail.com"
] | larisaplantation@gmail.com |
caa9cb15bb5cd49e3cb59f5ace978e207c998922 | db37e5eab7b60057bbc1ae153df8693f0159b02c | /examples/decoupledibpm/flapping2dRe75/run/scripts/plot_vorticity_compare_li_et_al_2015.py | 63ee97afbb13882c1575b1ae99fc77dbdad3f383 | [
"BSD-3-Clause"
] | permissive | stjordanis/petibm-examples | 83f7212eadbc1bbfb2071d550969b252cbcfcd89 | 794de3613967c14750c750aed386602c988cff05 | refs/heads/master | 2022-04-12T20:29:33.566464 | 2020-02-29T22:45:39 | 2020-02-29T22:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | """Plot the vorticity at saved time steps."""
from matplotlib import pyplot, image
import numpy
import pathlib
import petibmpy
simudir = pathlib.Path(__file__).absolute().parents[1] # simulation directory
datadir = simudir / 'output' # directory with field solution files
name = 'wz' # name of the variable to lo... | [
"mesnardo@gwu.edu"
] | mesnardo@gwu.edu |
c212488374a2e7a4dcf011707fabc37464e8b920 | f79102231c83674a4c01e56e3953b2a65cb14da2 | /leetcode/base/list/环形链表.py | 31d0d694e9e23ee41583a99337ef25a65410b65f | [] | no_license | Activity00/Python | 4971b177beaf72df0de97f7e78f400d48104dce1 | 166d97f36bbeea74c84ec57466bd0a65b608ed09 | refs/heads/master | 2020-12-24T07:53:06.782982 | 2020-09-29T10:55:43 | 2020-09-29T10:55:43 | 73,362,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | # coding: utf-8
"""
@author: 武明辉
@time: 19-3-20 下午9:35
"""
"""
给定一个链表,判断链表中是否有环。
为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链表中的位置(索引从 0 开始)。 如果 pos 是 -1,则在该链表中没有环。
示例 1:
输入:head = [3,2,0,-4], pos = 1
输出:true
解释:链表中有一个环,其尾部连接到第二个节点。
示例 2:
输入:head = [1,2], pos = 0
输出:true
解释:链表中有一个环,其尾部连接到第一个节点。
示例 3:
输入:head = [1], ... | [
"1032662429@qq.com"
] | 1032662429@qq.com |
d294ee636acb84148e16ac385f849a18ab6a1d2d | e63f11c621ffa2c54a8bc4714c6fb0f868f902d6 | /LianJia_Scrapy/item_url.py | 964827b681f15e340e7a2dee5981496f848a2108 | [] | no_license | aquablue1/LianJia_Scrapy | 5821fd93eca796d319f408d351cc30d860a0edb4 | 580ced19204d5eb9614c6a8b362b2cb9eba88388 | refs/heads/master | 2021-05-05T22:07:14.261137 | 2018-01-06T05:01:43 | 2018-01-06T05:01:43 | 116,090,808 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class LianjiaScrapyItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = scrapy.Field() | [
"94apieceofcake@gmail.com"
] | 94apieceofcake@gmail.com |
94c044bdea784aa5da43326d563b722a3d5c4fc6 | 29da2ca6def1270be13a3096685a8e5d82828dff | /CIM14/CDPSM/GIS_Connectivity/IEC61970/Core/SubGeographicalRegion.py | 0030c2438ce680b5ea6c4d046032e16e4f3f5353 | [
"MIT"
] | permissive | rimbendhaou/PyCIM | 75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3 | d578bb0bf1af344342bd23344385ed9c06c2d0ee | refs/heads/master | 2022-04-28T01:16:12.673867 | 2020-04-16T02:19:09 | 2020-04-16T02:19:09 | 256,085,381 | 0 | 0 | MIT | 2020-04-16T02:15:20 | 2020-04-16T02:08:14 | null | UTF-8 | Python | false | false | 3,823 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"rwl@thinker.cable.virginmedia.net"
] | rwl@thinker.cable.virginmedia.net |
d53b1fc1e1689725994bab778b7f669f9af08d11 | bd1362c60313784c90013dfc9f0169e64389bf27 | /scripts/feature/min_Xhour.py | 0f41041b31ea7c176d8d0c2e6714c2969c296d22 | [] | no_license | ForceCry/iem | 391aa9daf796591909cb9d4e60e27375adfb0eab | 4b0390d89e6570b99ca83a5fa9b042226e17c1ad | refs/heads/master | 2020-12-24T19:04:55.517409 | 2013-04-09T14:25:36 | 2013-04-09T14:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # Generate some comparison data between ASOS sites, tricky, me thinks
import iemdb
import datetime
import numpy
import mx.DateTime
ASOS = iemdb.connect('asos', bypass=True)
acursor = ASOS.cursor()
acursor.execute("SET TIME ZONE 'GMT'")
maxv = 0
def get_data(year, station):
global maxv
data = {}
acursor.e... | [
"akrherz@95f8c243-6001-0410-b151-932e6a9ed213"
] | akrherz@95f8c243-6001-0410-b151-932e6a9ed213 |
48c2c3dca0b6a2b6c85044a00f274533db952693 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Controls/__init___parts/ContextMenuEventArgs.py | ddb3667cf2693b5c400b6c59a3043b012c6b0300 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class ContextMenuEventArgs(RoutedEventArgs):
""" Provides data for the context menu event. """
CursorLeft=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the horizontal position of the mouse.
Get: CursorLeft(self: ContextMenuEventArgs) -> float
"""
CursorTop=property(lambda self... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
e821be69dbcc904309be14ca117f4bbb2b7155e6 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/cloudformation/checks/resource/aws/test_ECRImmutableTags.py | 2bafbbce0a26573bbd0e9e83dbbd29b4d6be0c56 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 827 | py | import os
import unittest
from checkov.cloudformation.checks.resource.aws.ECRImmutableTags import check
from checkov.cloudformation.runner import Runner
from checkov.runner_filter import RunnerFilter
class TestECRImmutableTags(unittest.TestCase):
def test_summary(self):
runner = Runner()
current... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
97be3b993b4f278ccdd868203a24902e3bcbe2bc | fff80cdaf12712704f36038479f50418253f42f3 | /openbmc/common/recipes-rest/rest-api/files/node_bios.py | 5541e54e2f792c8d93e5251ae2259776849425c1 | [] | no_license | rudolfkopriva/Facebook | 1ea0cfbc116f68ae0317332eeb9155461af5645a | 56e4c6a83f992bb01849ad353004b28409e53eef | refs/heads/master | 2023-02-14T01:54:36.519860 | 2021-01-05T02:09:26 | 2021-01-05T02:09:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,158 | py | #!/usr/bin/env python
import os.path
from node import node
from pal import *
IOM_M2 = 1 # IOM type: M.2
IOM_IOC = 2 # IOM type: IOC
PLATFORM_FILE = "/tmp/system.bin"
def get_iom_type():
pal_sku_file = open(PLATFORM_FILE, "r")
pal_sku = pal_sku_file.read()
iom_type = int(pal_sku) & 0x3 # The IOM typ... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
1152ab09724194cae4e2fab10d422c80f3789189 | 57265c1c743f5da6778d5c065e03be93d4f0c93f | /djkombu/tests/testproj/manage.py | b9066fff599f1c1260d7622099fa544098000b78 | [
"BSD-3-Clause"
] | permissive | barseghyanartur/django-kombu | fb63dab46cce7048f50c5131a8edde98f0734c5e | 0f7dbdbd153e7a6d9971dfbb030433a6a85dd984 | refs/heads/master | 2021-01-23T04:59:18.617326 | 2017-06-02T11:51:07 | 2017-06-02T11:51:07 | 92,947,716 | 0 | 0 | null | 2017-05-31T13:21:10 | 2017-05-31T13:21:10 | null | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
sys.path.insert(0, os.path.join(os.getcwd(), '..', '..', '..'))
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"artur.barseghyan@gmail.com"
] | artur.barseghyan@gmail.com |
c02ce5a8423e7a07dbf65307fb26cf43f7f4e06a | 5fc8acc18c9436a5cd3ffd609108a51e0a259b1d | /backend/test_app_2344_dev_2466/urls.py | 4994650eadd63d8204f557dbe2b404d09a5d8a44 | [] | no_license | crowdbotics-apps/test-app-2344-dev-2466 | 1f3677880346518cd2fb9e3a908aea3339ba78e1 | eb950c673394c455d4d7eeb1ec362bc596a6f444 | refs/heads/master | 2023-02-09T16:02:19.128443 | 2020-04-08T13:20:57 | 2020-04-08T13:20:57 | 254,093,628 | 0 | 0 | null | 2023-01-24T01:59:00 | 2020-04-08T13:20:29 | JavaScript | UTF-8 | Python | false | false | 1,947 | py | """test_app_2344_dev_2466 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4530e7da967992e4e873d204c25802ea30dd670f | 9afb5742e08add8800ad2086ecddd74f017ac9a5 | /tests/test_errors.py | 2c27177c209173f9920701ae351953c2f5064ff8 | [
"BSD-2-Clause"
] | permissive | blockdiag/sphinxcontrib-actdiag | e7fac2739b7aef862f6b0dbea69548ec51960df9 | 8b7ec29b310e718c4510a99fd22c624adc5b19bf | refs/heads/master | 2023-04-10T07:36:45.862708 | 2021-12-05T14:37:35 | 2021-12-05T14:37:35 | 34,159,673 | 1 | 2 | NOASSERTION | 2023-03-18T23:32:50 | 2015-04-18T09:11:37 | Python | UTF-8 | Python | false | false | 1,992 | py | # -*- coding: utf-8 -*-
from mock import patch
from sphinx_testing import with_app
import sys
import unittest
class TestSphinxcontribActdiagErrors(unittest.TestCase):
@with_app(srcdir='tests/docs/basic', write_docstring=True)
def test_parse_error(self, app, status, warning):
"""
.. actdiag::... | [
"i.tkomiya@gmail.com"
] | i.tkomiya@gmail.com |
da144278f9b5122abe6a2ada6e8b937379d84335 | 9e643d565e38de1728eabf31304e7dcbdf3ebfdd | /Python/Django/manyToMany/apps/manyToManyApp/migrations/0001_initial.py | 522b5d14fb92bd5b6297d49a27747de163be6a68 | [] | no_license | joeyzoland/DojoAssignments | 88dca37ad1d5b585a4af1dabc49935ef34adf6a0 | 0cae15aa448c490af931b41939638456456cef63 | refs/heads/master | 2021-01-11T17:55:13.775179 | 2018-09-17T07:32:12 | 2018-09-17T07:32:12 | 79,875,553 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-23 16:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Intere... | [
"joeyzoland@gmail.com"
] | joeyzoland@gmail.com |
632f50ce657bd31338db5ba020bec2b0f1357596 | 6e155cd7444e69b719d129e9dcaed2b788d4359b | /shop/shop/celery.py | 2582d795673aac826732cb8f19387b7702df0cf7 | [] | no_license | tishmanoni/My-store | 0ac1beb26fd4c3176f90346b23b9e9c955e90729 | 79bec452be871089edd6415b00bd094dc6288443 | refs/heads/master | 2022-12-06T05:33:21.163835 | 2020-08-29T19:39:45 | 2020-08-29T19:39:45 | 291,334,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shop.settings')
app = Celery('shop')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
| [
"66375712+tishmanoni@users.noreply.github.com"
] | 66375712+tishmanoni@users.noreply.github.com |
7fc845ff7f633ccceb024e13feab6eda8d83a5c1 | aac1b8efaeccc544d229aa52093a36802250b4cf | /pre/python/lib/python2.7/dist-packages/twisted/conch/test/test_ckeygen.py | 41a02083ab4cf574d9e9fe70617cab39af519f8c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ag1455/OpenPLi-PC | 4f63bbd389ff9604ab7aaf72d10ee6552b794c87 | 256401ac313df2e45c516af1a4d5398f54703b9c | refs/heads/master | 2023-08-22T18:20:07.491386 | 2023-08-14T17:29:59 | 2023-08-14T17:29:59 | 233,239,212 | 27 | 22 | null | 2020-12-28T22:09:26 | 2020-01-11T13:50:25 | Python | UTF-8 | Python | false | false | 20,281 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.conch.scripts.ckeygen}.
"""
import getpass
import sys
import os
import subprocess
from io import BytesIO, StringIO
from twisted.python.compat import unicode, _PY3
from twisted.python.reflect import requireModule
if requ... | [
"a.g.prosat@gmail.com"
] | a.g.prosat@gmail.com |
2ca74b87fb00d97fdb9b1cd2746f2e542e60938b | b65c1f6000af4ddeb7280e7d93bf861fbf1964bc | /contracts/tests/test_load_data.py | e385455a7533122a2a8978adbb1a3792d745a638 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | EricSchles/calc | ef00aaddfec010321867a8287db0a565dbb7985e | eaa1ab227a5a07f5f4f7d2c64a278977cd43cb18 | refs/heads/develop | 2021-01-25T14:33:58.124300 | 2017-10-11T19:29:20 | 2017-10-11T19:29:20 | 72,668,485 | 1 | 0 | null | 2016-11-02T18:17:57 | 2016-11-02T18:17:57 | null | UTF-8 | Python | false | false | 483 | py | import pathlib
from django.core.management import call_command
from django.test import TestCase
from contracts.models import Contract
MY_DIR = pathlib.Path(__file__).resolve().parent
class LoadS70TestCase(TestCase):
sample_filename = MY_DIR.parent / 'docs' / 'hourly_prices_sample.csv'
def test_loads_sample... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
dba58d500dc281d3b42ffe31ba813201ef1ff43f | e4abeab73f2aa2de037aa84d195dce986af5208a | /lmp/script/sample_from_dataset.py | 758446f580908db34133a1f847dfbd2745eb7d72 | [
"Beerware"
] | permissive | france5289/language-model-playground | 1792fc712bace3ca3e7a0b8b3ba4745b2d6c9b5c | 02181561107dac13d52e411bc970e245277854d4 | refs/heads/main | 2023-08-07T01:59:56.928232 | 2021-09-22T06:57:28 | 2021-09-22T06:57:28 | 409,092,012 | 0 | 0 | NOASSERTION | 2021-09-22T06:39:53 | 2021-09-22T06:39:52 | null | UTF-8 | Python | false | false | 2,896 | py | r"""Sample dataset using index.
Tool for observing data point in specified dataset.
Use index to sample from dataset.
See Also
========
lmp.dset
All available dataset.
Examples
========
The following example sample index ``0`` from
:py:class:`lmp.dset.WikiText2Dset` ``train`` dataset.
.. code-block:: sh
py... | [
"ProFatXuanAll@gmail.com"
] | ProFatXuanAll@gmail.com |
0d1cb7925a58261d9e23d04bfa835151026b290e | d968882c6bdecb2347307aea7381b9495911a0a6 | /microconventions/type_conventions.py | 743a0db4e8a8e19220b9f89b9415898b16077566 | [] | no_license | fagan2888/microconventions | a070bddf94c0788ed4ff3ab31941d0daccf30fd5 | 037f9fcc67caa28916c6b81f4742a68afaf296b0 | refs/heads/master | 2022-11-10T21:52:53.632179 | 2020-07-02T14:28:59 | 2020-07-02T14:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from typing import List, Union, Any, Optional
KeyList = List[Optional[str]]
NameList = List[Optional[str]]
Value = Union[str,int]
ValueList = List[Optional[Value]]
DelayList = List[Optional[int]]
| [
"info@3za.org"
] | info@3za.org |
88c524a2aa42d1c53e01946abb653c80c94e0e38 | 7a0acc1c2e808c7d363043546d9581d21a129693 | /selenium/src/py/lib/epydoc/docwriter/html.py | 352d45d89179d2f5cf75d6da437d6060d4ff70aa | [
"Apache-2.0"
] | permissive | epall/selenium | 39b9759f8719a168b021b28e500c64afc5f83582 | 273260522efb84116979da2a499f64510250249b | refs/heads/master | 2022-06-25T22:15:25.493076 | 2010-03-11T00:43:02 | 2010-03-11T00:43:02 | 552,908 | 3 | 0 | Apache-2.0 | 2022-06-10T22:44:36 | 2010-03-08T19:10:45 | C | UTF-8 | Python | false | false | 123,261 | py | #
# epydoc -- HTML output generator
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: html.py 1210 2006-04-10 13:25:50Z edloper $
#
"""
The HTML output generator for epydoc. The main interface provided by
this module is the L{HTMLWriter} class.
"""
__docformat__ = 'epytext en'
import re, os, sys, codecs, sre_con... | [
"simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9"
] | simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9 |
d38ad13d5b90a52d56ed6d9da5384a5f4df4d21f | 746bf62ae3599f0d2dcd620ae37cd11370733cc3 | /leetcode/spiralmatrixtwo.py | c0075822c99847054ebdbfc8e1a03cd68cd9c653 | [] | no_license | wanglinjie/coding | ec0e614343b39dc02191455165eb1a5c9e6747ce | 350f28cad5ec384df476f6403cb7a7db419de329 | refs/heads/master | 2021-04-22T14:00:48.825959 | 2017-05-02T12:49:05 | 2017-05-02T12:49:05 | 48,011,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# date:20160711
class Solution(object):
def generateMatrix(self, n):
"""
:type n: int
:rtype: List[List[int]]
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
For example,
Given n = 3,
You should ... | [
"hitwhwlj@163.com"
] | hitwhwlj@163.com |
2541bc3717df13f38034e534423c96eec29b2d31 | 9cadeb694a677c4ad567d514eee042891c65eeaf | /apiServer/wsgi.py | 64aabb0e27969ed54fed3cc2e2a79148e4e57375 | [] | no_license | epikjjh/Stock-Seeker | b8267fda13df6579f3883f66f94007d6ca11187a | 934d97c0ceb89c1fcdfb469c1807d09c2671cc67 | refs/heads/master | 2022-12-22T23:38:24.947593 | 2020-09-22T11:50:56 | 2020-09-22T11:50:56 | 297,632,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for stockSeeker project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"epikjjh@gmail.com"
] | epikjjh@gmail.com |
49ea9ed475b06f56c31886fdda4e54704aaed67f | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/uyw.py | 29818697f710297c138205642ed9c41a60d45a3c | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
079530b221e8520dbec1afc70e82ce7bd75f45fa | 786de89be635eb21295070a6a3452f3a7fe6712c | /CalibManager/tags/V00-00-34/src/GUIMetrology.py | 4a583bd900a6318fb105b38bb6814264be14a4b0 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,961 | py |
#--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module GUIMetrology...
#
#------------------------------------------------------------------------
"""Renders the main GUI for the CalibManager.
This software was developed for the ... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
440bfdebbceb6eaef3277aca9941a759e42ae116 | 7beff965d7b0e6155d6d52b27d71c557421d5ada | /aoj/grl_7_a.py | 830ad7ec1ba09ea22f3deb70e180d4910bd89f7e | [] | no_license | uk-ar/competitive_programming | 82a53a1007798843ac006b9c7d313826e6cb45c3 | d2523cf303f47644cada3b03e9eed2349bdbe394 | refs/heads/master | 2023-03-28T13:20:07.728861 | 2021-03-30T20:25:55 | 2021-03-30T20:25:55 | 249,638,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | #!/usr/bin/env python3
# N,M = map(int,sys.stdin.readline().split())
# a = tuple(map(int,sys.stdin.readline().split())) # single line with multi param
# a = tuple(int(sys.stdin.readline()) for _ in range(N)) # multi line with single param
# a = tuple(tuple(map(int,sys.stdin.readline().rstrip().split())) for _ in range(... | [
"yuuki.ari@gmail.com"
] | yuuki.ari@gmail.com |
d973a98d468f699d88ed22bda3be21818e1727e8 | 4c44c593048fa4e00fb0334209632a286886efd9 | /import_template_supplierinfo/wizards/import_file.py | 6e86c4502afe621620950784d04bcf17a2bff77f | [] | no_license | treytux/trey-addons | 0c3fec43c584d46bd299b4bca47dcc334bedca60 | 1cda42c0eae702684badce769f9ec053c59d6e42 | refs/heads/12.0 | 2023-06-08T21:56:09.945084 | 2023-05-29T10:05:53 | 2023-05-29T10:05:53 | 114,281,765 | 19 | 49 | null | 2023-05-29T10:05:55 | 2017-12-14T18:10:39 | Python | UTF-8 | Python | false | false | 1,065 | py | ###############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
###############################################################################
import base64
import io
import logging
from odoo import models
_log = logging.... | [
"roberto@trey.es"
] | roberto@trey.es |
da88288f281baad769af1ccbf83b2777ed6a91a0 | 3f7c27ccd0ab1fcbd2583cf4b764b81bd27dd718 | /apps/members/urls.py | 03acc1cb09f082fefdc65dd6e430675e3a4ac2b6 | [] | no_license | adamtlord/foreverland | 001ca1a91a3cc468405efb80fe7981e75b82021c | 8206ddeeb8cfbd2752ef6fa9839424718cb96e07 | refs/heads/master | 2020-04-16T00:50:51.582008 | 2016-09-21T03:27:39 | 2016-09-21T03:27:39 | 11,668,672 | 0 | 0 | null | 2016-09-04T03:46:51 | 2013-07-25T19:05:55 | Python | UTF-8 | Python | false | false | 144 | py | from django.conf.urls import patterns, url
urlpatterns = patterns('members.views',
url(r'^$', 'list_members', {}, name='list_members'),
)
| [
"adam.lord@gmail.com"
] | adam.lord@gmail.com |
269093e40a4014ea89ecd80de5f371b123bd4fa7 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/srsly/tests/cloudpickle/cloudpickle_file_test.py | 02c568f8652ef647b699a151dff037527a6e8836 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a058ea411ee874062513e922cfd60cc7f362eda3000cc849fc6af9c828f1412b
size 3430
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
c3df0ac58a6da679590d7b4d309dd0b86190657c | 863a1f5091f1faad2beaf2a6037e3a5c0ebdc194 | /Backuper.glyphsPlugin/Contents/Resources/plugin.py | 8a21cdbee8b408df2b4ca9d675f6a38770426e11 | [] | no_license | schriftgestalt/Backuper | e65f08ec016770564131c05dbd888fe6841c6612 | 2b738600c4a8cb288184ae2c216bcfcbf64e266b | refs/heads/master | 2023-07-17T19:50:00.265070 | 2021-09-01T21:38:34 | 2021-09-01T21:38:34 | 109,949,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | # encoding: utf-8
###########################################################################################################
#
#
# General Plugin
#
# Read the docs:
# https://github.com/schriftgestalt/GlyphsSDK/tree/master/Python%20Templates/General%20Plugin
#
#
#######################################################... | [
"georg.seifert@mac.com"
] | georg.seifert@mac.com |
8e8d6e02afe119d471e20a1ce2cf4091b144d836 | f045faa2ce09bebd4f878b1219fc4983587c8c79 | /flearn/models/femnist/cnn2.py | d180ebb0906dc9c036d8928bea56241b44227a69 | [] | no_license | eepLearning/federated-learning | 9db7babb9453fd20dc0dcac0202d4a806287754f | b647689bb035929f2661ebe3e8a3b0c94423bcf2 | refs/heads/master | 2023-01-12T19:13:56.108284 | 2020-08-06T15:35:56 | 2020-08-06T15:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,708 | py | import tensorflow as tf
import tqdm
import numpy as np
from flearn.models.base_model import BaseModel
class Model(BaseModel):
def __init__(self, num_classes, image_size, options, optimizer, seed=1):
# params
self.num_classes = num_classes
self.image_size = image_size
# 使用 mini-bat... | [
"wangshu214@live.cn"
] | wangshu214@live.cn |
ffa39f22831b11734d04b3e3eea7856437400115 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0401_0450/LeetCode422_ValidWordSquare.py | ee694477735ad1d5c38aa096a5f0bfdceae3713d | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 449 | py | '''
Created on Apr 13, 2017
@author: MT
'''
c_ Solution(o..
___ validWordSquare words
__ n.. words: r.. F..
___ i, word1 __ e..(words
word2 ''
___ j __ r..(l..(word1:
__ j >_ l..(words
r.. F..
__ i >_ l..(words[j]
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
23936645c5429dbbbaad5e2fbb69f5df836ab631 | dd4d1a61ec680a86d4b569490bf2a898ea0d7557 | /appengine/predator/common/model/chrome_crash_analysis.py | 4473ea72c94ffcc660fa5ff6418f3923faf801aa | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-infra | f1a68914b47bcbe3cd8a424f43741dd74fedddf4 | 09064105713603f7bf75c772e8354800a1bfa256 | refs/heads/master | 2022-10-29T23:21:46.894543 | 2017-05-16T06:22:50 | 2017-05-16T06:22:50 | 91,423,078 | 1 | 1 | BSD-3-Clause | 2022-10-01T18:48:03 | 2017-05-16T06:23:34 | Python | UTF-8 | Python | false | false | 1,079 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from google.appengine.ext import ndb
from common.model.crash_analysis import CrashAnalysis
class ChromeCrashAnalysis(CrashAnalysis): # pylint: disable=W0... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d926c78d9ca4a0ffd80d8aefc3bac5797f7db7a1 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_LinearTrend_BestCycle_AR.py | b8625fb2fc2806fe6e615c6b2e4052c583dac9c1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 155 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['BoxCox'] , ['LinearTrend'] , ['BestCycle'] , ['AR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
38c15c39a97e7ab3d51118f6386f186dda7696d8 | a0f1bfea522d5917ae6f18d3a4ab980870feac77 | /modules/hs/analysis/instruction.py | 9c6896ba3c8d225b4552a2b47164300ff9cdddce | [
"MIT"
] | permissive | sinsai/Sahana_eden | 1d9768d19266010caf2753b66d17925fe708007a | 798688dcf206fc81d586d9af1c57a99e6f1573c5 | refs/heads/master | 2020-06-07T21:10:17.416723 | 2011-06-10T08:57:23 | 2011-06-10T08:57:23 | 1,659,383 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | """
Healthscapes Geolytics Module
... | [
"fran@aidiq.com"
] | fran@aidiq.com |
50ac2e045886d2069bb686e25b1fb783ace85abf | 97f38bc0dff9498c43d13f15f4b26000874a840f | /pysp/plugins/ecksteincombettesextension.py | 36809dee8e435aa6869ed8d825e77d580a587f94 | [
"BSD-3-Clause"
] | permissive | tayucanjujieyihan/pysp | 2975330f3a7f1c2aa56d9a69be2bdd08a632d3e9 | 98dbc9f6d500b0b2485a89bb22813e6c51b64411 | refs/heads/main | 2023-05-06T17:33:07.306607 | 2021-05-26T22:44:28 | 2021-05-26T22:44:28 | 442,712,534 | 1 | 0 | NOASSERTION | 2021-12-29T08:43:26 | 2021-12-29T08:43:26 | null | UTF-8 | Python | false | false | 25,631 | py | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC,... | [
"jsiirola@users.noreply.github.com"
] | jsiirola@users.noreply.github.com |
dfea669c4519269a2654b492fe8a992552b69e3a | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/scipy/py2/scipy/optimize/tests/test__basinhopping.py | 84deeb847253a4b53ed032c0aaecd9b4a43171a0 | [
"Python-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Qhull",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 15,398 | py | """
Unit tests for the basin hopping global minimization algorithm.
"""
from __future__ import division, print_function, absolute_import
import copy
from numpy.testing import assert_almost_equal, assert_equal, assert_
from pytest import raises as assert_raises
import numpy as np
from numpy import cos, sin
from scipy.... | [
"arcadia-devtools@yandex-team.ru"
] | arcadia-devtools@yandex-team.ru |
a794b38e5b1c9bc25dfef36a9d955d9cf54a7d8b | 2f0aa66e14c6595289f6a0de2bdf71e9922052a7 | /nextApi/user/migrations/0003_auto_20200818_2008.py | 6d6e0a8b8d3ab39d197ff070024c08b0dd3e56ff | [] | no_license | aimethierry/NextApi | 8f83a2b0f499fdf5118eb930baa051584cfd9aa5 | 90884ee6d900ce71116b40276dda0e97bec0b521 | refs/heads/master | 2022-12-11T09:03:54.981284 | 2020-09-19T12:40:36 | 2020-09-19T12:40:36 | 296,866,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | # Generated by Django 3.1 on 2020-08-18 18:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0002_companyacc'),
]
operations = [
migrations.AddField(
model_name='companyacc',
name='email',
fi... | [
"aime.thierry97@gmail.com"
] | aime.thierry97@gmail.com |
803331d02c81b15dd9eeeb88fb58de707d4c9897 | 287c663c97e7840239794fbe84ce285773b72985 | /virtual/bin/mako-render | ff06d7a97fb70f3f26a64dd2325bf6138e8c7d31 | [
"MIT"
] | permissive | mzazakeith/flask-blog | ea8e5b2da9a581eb026564c1b9e500fa0532ee88 | 2833404cc5e96ffdbfb767f35b9caf2bdcce7997 | refs/heads/master | 2020-03-21T21:24:57.296282 | 2018-07-02T20:20:24 | 2018-07-02T20:20:24 | 139,062,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/mzaza/Desktop/flask_blog/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"mzazakeith@gmail.com"
] | mzazakeith@gmail.com | |
e650793603ccf2cefac008d1c76270721b8d1367 | 57061e611a549f9afe4f5201730a85d76a7e505f | /setup.py | 5323723ba2f8215b16c769148b156602f63760fc | [
"MIT"
] | permissive | briostack/chrome-printtopdf | 35ee5da836878107f7586a7e61f1adf6b7d8c4cb | 6b4f91ab50cbc3570c27cfd8511f3964387c356e | refs/heads/master | 2022-03-08T14:58:51.843698 | 2022-03-01T22:32:14 | 2022-03-01T22:32:14 | 94,803,813 | 1 | 0 | null | 2017-06-19T17:38:03 | 2017-06-19T17:38:03 | null | UTF-8 | Python | false | false | 1,069 | py | #!/usr/bin/env python
from __future__ import print_function
import os
import codecs
from setuptools import setup, find_packages
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name="chrome... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
4020c3b3e7e7165b0196c1585615c9b95e9e33fd | 11211916f39b9d98027b64d778e52743d0c519a1 | /L3/tmp/assignments/outline.py | e7bba9d3d9acf2c3e969914fff659f06fe1cd781 | [] | no_license | mantasruigys3000/Group-Task | 87baf1bc2747323c0508f6f32ef733c3f4b50978 | 6790d74ae7fa0fe6b13733efcd75a9f4aca70ab0 | refs/heads/master | 2020-04-23T20:54:09.696659 | 2019-02-22T01:29:53 | 2019-02-22T01:29:53 | 171,454,102 | 0 | 0 | null | 2019-02-19T10:31:09 | 2019-02-19T10:31:08 | null | UTF-8 | Python | false | false | 343 | py | Amet velit etincidunt porro est quaerat etincidunt.
Velit ut velit dolor consectetur est dolor.
Voluptatem quisquam quiquia quisquam sed ut.
Non voluptatem voluptatem etincidunt.
Username: Marcus
Password: titten
Dolorem velit labore velit amet ipsum ipsum adipisci.
Quaerat labore est dolore quaerat aliquam.
Amet sit c... | [
"mantasruigys101@gmail.com"
] | mantasruigys101@gmail.com |
d205eeabe1230372e52454c55429cccf3659b362 | 614cad3588af9c0e51e0bb98963075e3195e92f5 | /utils/completeness.py | bd6b0845fa36983abbad225f1ed473385db12e64 | [] | no_license | dragonlong/haoi-pose | 2810dae7f9afd0a26b3d0a5962fd9ae8a5abac58 | 43388efd911feecde588b27a753de353b8e28265 | refs/heads/master | 2023-07-01T14:18:29.029484 | 2021-08-10T10:57:42 | 2021-08-10T10:57:42 | 294,602,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,738 | py | import argparse
import os
import torch
import numpy as np
from scipy.spatial import cKDTree as KDTree
import trimesh
import glob
from joblib import Parallel, delayed
def directed_hausdorff(point_cloud1:torch.Tensor, point_cloud2:torch.Tensor, reduce_mean=True):
"""
:param point_cloud1: (B, 3, N)
:param p... | [
"lxiaol9@vt.edu"
] | lxiaol9@vt.edu |
3a471239801b8078837935c47ac052742afca2fb | 0e61a484a3a4fc61fe2b660e25fad5744232773b | /avx2-hps4096821/bitpermutations/applications/squaring_mod_GF2N.py | 993a88bdda647d86ccc7491da1dc512403d8093f | [
"CC0-1.0"
] | permissive | OussamaDanba/ntru | 3278dae5bd18ddc9d93acb9eb4221bfec3e7ca06 | da413076b3b0fb377c3174c331462c3293193580 | refs/heads/master | 2020-04-24T08:17:40.665914 | 2019-08-31T17:11:35 | 2019-08-31T17:11:35 | 171,826,066 | 0 | 0 | CC0-1.0 | 2019-02-21T07:55:03 | 2019-02-21T07:55:01 | Python | UTF-8 | Python | false | false | 11,740 | py | from bitpermutations.data import (ONE, ZERO,
Register, Mask, IndicesMask, MaskRegister,
AllocationError)
import bitpermutations.instructions as x86
from bitpermutations.printing import print_memfunc
from bitpermutations.utils import reg_to_memfunc, spl... | [
"jschanck@uwaterloo.ca"
] | jschanck@uwaterloo.ca |
d1e535da617f09a037448c3df23b3b182bcedd53 | c0578b14ebaef889ffc75551ebcc7e5c80b6069e | /src/811_subdomain_visit_count.py | 87eb66cd63973d2c0ce2d010c3afb1f86145ce1f | [] | no_license | BrianQcq/LeetCode | 88ee122aa2b358c61d6980c159008e8ccac6cc8c | 127ca7d82fa15214da8d5e9fbc461831cdb6b60b | refs/heads/master | 2020-06-10T04:20:33.798787 | 2019-11-12T07:56:58 | 2019-11-12T07:56:58 | 193,580,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py |
class Solution(object):
def subdomainVisit(self, cpdomains):
d = {}
for item in cpdomains:
n, domains = item.split()
n, domains = int(n), domains.split('.')
for i in range(len(domains)):
temp = '.'.join(domains[i:])
d[temp] = d[temp] + n if temp in d else n
return [str(d[i]) + ' ' + i for i ... | [
"qiuchuanqin@gmail.com"
] | qiuchuanqin@gmail.com |
40b606a75f2a3ea6ee7f290d627b798e157e9894 | 2b31366107bd56244564c196c852f39ff024e278 | /example.py | 095c2818d3c45494ec74d905b086705256aa66a9 | [
"BSD-3-Clause"
] | permissive | toastdriven/pubsubittyhub | 444a7b0d5b26abf0a1cd820d3d57a1d92346a4c4 | 8d3a0b135b0a284f52234c06cfc586cc5e6f5c6d | refs/heads/master | 2020-05-05T01:39:51.073435 | 2009-12-17T09:22:31 | 2009-12-17T09:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import urllib2
import sys
from urllib import urlencode
try:
import json
except ImportError:
import simplejson as json
print 'Testing index...'
content = urllib2.urlopen('http://localhost:8080/').read()
print 'Creating a channel...'
content = urllib2.urlopen('http://localhost:8080/channels', data={}).read()
pr... | [
"daniel@toastdriven.com"
] | daniel@toastdriven.com |
ee66c9dd4a0d630c6ecb661c22a3acf967691125 | 58ce8a45d03ec24b89e7502f149bef42d77ad777 | /tests/test_models_artist.py | 96a9afac325c6d5076dbf3cec399a9ae628b3fc7 | [
"MIT"
] | permissive | AndyTempel/spotify.py | db9ba8523d6dbd9bf233f963ea04fac4bf555d5e | d5a18ee59ddffd9026b36f510b45b4cc391ac557 | refs/heads/master | 2022-12-12T14:46:41.780249 | 2020-08-28T23:35:09 | 2020-08-28T23:35:09 | 291,162,036 | 0 | 0 | MIT | 2020-08-28T23:02:23 | 2020-08-28T23:02:22 | null | UTF-8 | Python | false | false | 618 | py | import asyncio
import unittest
from types import ModuleType
from common import *
class TestArtist(unittest.TestCase):
@async_with_client(SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET)
async def test_artist(self, *, client):
for artist_uri in TEST_ARTISTS:
artist = await client.get_artist(artis... | [
"m3nta1@yahoo.com"
] | m3nta1@yahoo.com |
b2763a3a3c9318b24e36592eed8791533faf27d4 | 4786216d2a8e9221cc3624366152f47ae513e5c7 | /北京房屋交易/00.py | 3738ce39b9fbe67fc5d1c47c31d9d290e2cc619a | [] | no_license | injuredangel/- | b6a2502ee026320b96947d41c223edebe3ec65cc | 7988c6aa5e825504ff59b006c37d4383b3bb1da8 | refs/heads/master | 2020-05-25T02:21:15.654253 | 2019-05-20T06:27:42 | 2019-05-20T06:27:42 | 187,575,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py |
import requests
from bs4 import BeautifulSoup
url = 'http://www.bjjs.gov.cn/bjjs/fwgl/fdcjy/fwjy/index.shtml'
headers = {
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Accept-Encoding':'gzip, deflate',
'Accept-Language':'zh-CN,z... | [
"you@example.com"
] | you@example.com |
07e55ee3fd2c3c2e3b690cf0132a7e10a918ba60 | 5b3d8f56f4d18dc8809f9f5aa7d2a7089cdbf489 | /.c9/metadata/workspace/Interview/InterviewRQ3.py | 7e7c06281c2528a512f1728fa32de5e30a67c06d | [] | no_license | heyliljill/edpsych-cloned | 89ba1a827ed66651b7387b25bc2c188ff344e8d1 | ba02e4789e390bb6488b11608b994ee5678a4b30 | refs/heads/master | 2020-07-26T00:51:41.004018 | 2019-09-14T17:26:45 | 2019-09-14T17:26:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | {"filter":false,"title":"InterviewRQ3.py","tooltip":"/Interview/InterviewRQ3.py","ace":{"folds":[],"scrolltop":186,"scrollleft":909,"selection":{"start":{"row":38,"column":26},"end":{"row":38,"column":325},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"ha... | [
"jillyma@gmail.com"
] | jillyma@gmail.com |
7e74fa3054af9e5c296cb668f23cc4c208dcaf83 | 98b63e3dc79c75048163512c3d1b71d4b6987493 | /tensorflow/python/distribute/multi_process_runner.py | 95841b8ee902049af7e05da8109e06d2221e1413 | [
"Apache-2.0"
] | permissive | galeone/tensorflow | 11a4e4a3f42f4f61a65b432c429ace00401c9cc4 | 1b6f13331f4d8e7fccc66bfeb0b066e77a2b7206 | refs/heads/master | 2022-11-13T11:56:56.143276 | 2020-11-10T14:35:01 | 2020-11-10T14:35:01 | 310,642,488 | 21 | 12 | Apache-2.0 | 2020-11-06T16:01:03 | 2020-11-06T16:01:02 | null | UTF-8 | Python | false | false | 55,559 | py | # Lint as: python3
# Copyright 2019 The TensorFlow 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 ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.