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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b1a3c6752fb987270983195e5489c049ddefa3c | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/file/formats/xar/XARUtil.pyi | cc17580bacec6487f3d70bd74261a9a2bf5e6add | [
"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 | 765 | pyi | import ghidra.app.util.bin
import ghidra.program.model.listing
import java.lang
class XARUtil(object):
def __init__(self): ...
def equals(self, __a0: object) -> bool: ...
def getClass(self) -> java.lang.Class: ...
def hashCode(self) -> int: ...
@overload
@staticmethod
def isXAR(_... | [
"[email protected]"
] | |
7a73d23951e7d7d1345e584df9ae95b3a3cae6b7 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/FourteenTeV/SmuonToMuonNeutralino_M_2000_ctau_10_cff.py | 4b9be99f8384f2be51bee014b5e1f7f05c0d660b | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 50,288 | py | COM_ENERGY = 14000. # GeV
# this is the closest thing I could find:
# https://twiki.cern.ch/twiki/bin/view/LHCPhysics/SUSYCrossSections13TeVslepslep
CROSS_SECTION = 1 # pb
CTAU_POINT = 1. # mm
SLHA_TABLE = """## Important note!
## This file has been modified by hand to give the gluino and the
## stop_1 a very ... | [
"[email protected]"
] | |
98c7acd6912e8bc5c371f591667dc2220b9071e9 | f10230c09860f1e01dcef56daab30a9200d7eb60 | /common/admin.py | 170b802e29c547aedb5673fa213fe83ff9dd05ac | [] | no_license | DentiQ/test_web | 08280ff506439e9bd1565fb502a9780b3c79707d | b7bceab1edd670a8cf60ecf882a466c26e68fb63 | refs/heads/master | 2023-01-23T14:43:17.420477 | 2020-12-01T13:54:18 | 2020-12-01T13:54:18 | 316,973,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import Group
from django.utils.translation import ugettext_lazy as _
| [
"[email protected]"
] | |
62a32398fb83bf899044a0cfa0eab60cef85b4c2 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/topic_constant_service/transports/grpc.py | f19227ebd69e1277ed3de695740a3a5b5299f611 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,337 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
4c49ddf6a3224bc642267e24b285e2a9da8767ed | 6b6e20004b46165595f35b5789e7426d5289ea48 | /endpoints/appr/__init__.py | c998d8a958ab8159696191c64e114b0ac4e6902c | [
"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 | 1,796 | py | import logging
from functools import wraps
from cnr.exception import Forbidden
from flask import Blueprint
from app import metric_queue
from auth.permissions import (AdministerRepositoryPermission, ReadRepositoryPermission,
ModifyRepositoryPermission)
from endpoints.appr.decorators impo... | [
"[email protected]"
] | |
b692f39e14180b18642560210b11e1e6cb9edac3 | 9a355bd36f089a829eb965bb6d725534443a4f15 | /nlp-LDA/main.py | b292767164afc103ab14fa3ecb0bb9377d7e224f | [] | no_license | yflfly/nlp_tools | bf1c5745c37116b14fba417d41271c716ee9a487 | 95ddeaad18ee94cc19b715e38c9af2cda7cbe213 | refs/heads/master | 2021-06-21T10:17:57.713605 | 2021-03-07T13:00:36 | 2021-03-07T13:00:36 | 176,850,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,472 | py | # coding:utf-8
from gensim import corpora, models
import jieba.posseg as jp
import jieba
# 基于LDA主题模型的关键词提取算法实现
# 简单文本处理
def get_text(text):
flags = ('n', 'nr', 'ns', 'nt', 'eng', 'v', 'd') # 词性
stopwords = ('的', '就', '是', '用', '还', '在', '上', '作为') # 停用词
words_list = []
for text in texts:
word... | [
"[email protected]"
] | |
2ef363ededa023eb6f443f5748066deee98c1dce | 7137161629a1003583744cc3bd0e5d3498e0a924 | /airflow/providers/google/suite/hooks/sheets.py | ce4218c36fbd5f124924350771ee3660db5f0c29 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | jbampton/airflow | 3fca85975854eb916f16143b659a9119af143963 | dcfa14d60dade3fdefa001d10013466fe4d77f0d | refs/heads/master | 2023-05-25T22:31:49.104069 | 2021-09-18T19:18:32 | 2021-09-18T19:18:32 | 247,645,744 | 3 | 0 | Apache-2.0 | 2020-03-16T08:12:58 | 2020-03-16T08:12:57 | null | UTF-8 | Python | false | false | 18,662 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"[email protected]"
] | |
594840a1230e989a0903678c4308812b815ff3e6 | 66f037cc0bf8683a814eb610d06edd3667f962e0 | /escpos/tests/test_epson_genericescpos.py | baf3acf4f890528e24d17c60035b042ca09644d7 | [
"Apache-2.0"
] | permissive | cemsbr/pyescpos | 6118e7fcf4b5e85b94639be42cfb6fe87f084ba9 | 58ebc1b544458803c4235f3fa80e8fa376b18ec2 | refs/heads/master | 2020-12-08T07:20:24.977694 | 2019-12-30T00:33:08 | 2019-12-30T00:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # -*- coding: utf-8 -*-
#
# escpos/tests/test_epson_genericescpos.py
#
# Copyright 2015 Base4 Sistemas Ltda ME
#
# 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/li... | [
"[email protected]"
] | |
be5306049fed1701ff84c2b725f19d30dc048bd9 | a36501f44a09ca03dd1167e1d7965f782e159097 | /admin/views/celery.py | 0045559263cc795693771411bf703a74286ad244 | [
"Apache-2.0"
] | permissive | ssfdust/full-stack-flask-smorest | 9429a2cdcaa3ff3538875cc74cff802765678d4b | 4f866b2264e224389c99bbbdb4521f4b0799b2a3 | refs/heads/master | 2023-08-05T08:48:03.474042 | 2023-05-07T01:08:20 | 2023-05-07T01:08:20 | 205,528,296 | 39 | 10 | Apache-2.0 | 2023-08-31T00:18:42 | 2019-08-31T10:12:25 | Python | UTF-8 | Python | false | false | 3,026 | py | # Copyright 2019 RedLotus <[email protected]>
# Author: RedLotus <[email protected]>
#
# 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
#
# Unles... | [
"[email protected]"
] | |
757c83c09d9a63c7e07a8ce62f3e008a7d1d516b | 1515be3015ad988278d5a095416c0a0066a02757 | /src/users/models/microsoftgraphentity.py | b0f43ecc2a37e01c3384617b3fbb889435ca08b5 | [
"MIT"
] | permissive | peombwa/Sample-Graph-Python-Client | 2ad494cc5b5fe026edd6ed7fee8cac2dd96aaa60 | 3396f531fbe6bb40a740767c4e31aee95a3b932e | refs/heads/master | 2020-12-29T09:50:38.941350 | 2020-02-05T22:45:28 | 2020-02-05T22:45:28 | 238,561,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"[email protected]"
] | |
088740864d07a9ca84e89627a1bab44538e4be33 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_003_20180618134857.py | 2745c76be92765bcf40268fd8a5d34aac92e1b25 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | from random import randint
# Sudoku1 almost solved
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6,... | [
"[email protected]"
] | |
b114f3d71ebdae2a74750a2f0d56ad7bd8da3155 | 27f6c33ad3f0240e64aad809d4bd57af3ecda498 | /Day06/8_Q10.py | 0ddb90dfa64678823f9b0d3c8f5988ce857c4809 | [] | no_license | bigdata202005/PythonProject | 26ce3c0ed3e47cd727606455e6ca95561907dbe4 | 4e0377fdb86db294483fb7a347429bf299e44ce5 | refs/heads/main | 2023-01-08T01:48:22.271143 | 2020-11-06T05:15:22 | 2020-11-06T05:15:22 | 310,498,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | """
Q10 사칙연산 계산기
다음과 같이 동작하는 클래스 Calculator를 작성하시오.
cal1 = Calculator([1,2,3,4,5])
cal1.sum() # 합계
15
cal1.avg() # 평균
3.0
cal2 = Calculator([6,7,8,9,10])
cal2.sum() # 합계
40
cal2.avg() # 평균
8.0
"""
class Calculator:
def __init__(self, data_list):
self.data_list = data_list
def sum(self):
prin... | [
"[email protected]"
] | |
96e20d4131f5317dff89c74611053c3b8918cdf8 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GLES2/NV/conservative_raster_pre_snap.py | df58883753676dd6158183e136d4f6c4516af278 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | '''OpenGL extension NV.conservative_raster_pre_snap
This module customises the behaviour of the
OpenGL.raw.GLES2.NV.conservative_raster_pre_snap to provide a more
Python-friendly API
Overview (from the spec)
NV_conservative_raster_pre_snap_triangles provides a new mode to achieve
rasterization of triangles that... | [
"[email protected]"
] | |
a4080a7404a99836de352ed8a0d32120f99c2fdc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /6YN2ww3B4cQZ6rTmN_4.py | 065864678599624588b72aab946bb9938cea33ba | [] | 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 | 839 | py | """
Write a function that returns `True` if a year is a leap, otherwise it returns
`False`.
A year is a "leap year" if it lasts 366 days, instead of 365 in a typical
year. That extra day is added to the end of the shortest month, creating
February 29.
A leap year occurs every four years, and will take place if the... | [
"[email protected]"
] | |
a7a3c574f559605b827426b88383a43711079bb1 | 3b50605ffe45c412ee33de1ad0cadce2c5a25ca2 | /python/paddle/fluid/tests/unittests/test_fleet_base.py | fe24c8838ec6c2ac41dde0d8f7ac9911509942b0 | [
"Apache-2.0"
] | permissive | Superjomn/Paddle | f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1 | 7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188 | refs/heads/develop | 2023-02-04T20:27:54.244843 | 2023-01-26T15:31:14 | 2023-01-26T15:31:14 | 66,896,049 | 4 | 1 | Apache-2.0 | 2023-04-14T02:29:52 | 2016-08-30T01:45:54 | C++ | UTF-8 | Python | false | false | 7,727 | py | # Copyright (c) 2020 PaddlePaddle 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 appli... | [
"[email protected]"
] | |
6d35ff8ff3c6737289e4c00e8be3360f52f6ca99 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02773/s910963404.py | d617638ace116c73c96cf5a65311b85b85f81d23 | [] | 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 | 351 | py | import sys
N = int(input())
input = sys.stdin.readline
lis = {}
for i in range(N):
s = input().rstrip()
if s in lis:
lis[s] += 1
else:
lis[s] = 1
lis2 = sorted(lis.items(), key=lambda x:x[1], reverse=True)
x = next(iter(lis2))
keys = []
for i in lis2:
if i[1] == x[1]:
keys.append(i[0])
ans = sorted... | [
"[email protected]"
] | |
253aa95b971032804048120ff1cfdb28608f6cba | 16e266cf50a712ed29a4097e34504aac0281e6cb | /Functions/venv/lib/python3.6/site-packages/BaseExtensions/Logging.py | 99776019d50ef0f45a7210eaff3874df85494d98 | [] | no_license | felix-ogutu/PYTHON-PROJECTS | 9dd4fdcfff6957830587b64c5da3b5c3ade3a27e | 8c1297dbda495078509d06a46f47dc7ee60b6d4e | refs/heads/master | 2023-06-05T04:41:36.727376 | 2021-06-25T20:36:52 | 2021-06-25T20:36:52 | 380,348,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,704 | py | import logging
import logging.config
import os
import sys
import tarfile
from logging.handlers import RotatingFileHandler
from typing import *
__all__ = [
'logging',
'LoggingManager',
'Error_Handler',
'Info_Handler',
'Console_Error', 'Console_Debug', 'Console_... | [
"[email protected]"
] | |
89b5f996db03809d137daf450f8d3b3117aedc9b | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/statsmodels-0.6.1-np110py27_0/lib/python2.7/site-packages/statsmodels/base/covtype.py | 4eb475ea2ceced1c55668969e5b994243294547d | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 11,953 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 04 08:00:16 2014
Author: Josef Perktold
License: BSD-3
"""
from statsmodels.compat.python import lrange, lzip, range
import numpy as np
def get_robustcov_results(self, cov_type='HC1', use_t=None, **kwds):
"""create new results instance with robust covariance as d... | [
"[email protected]"
] | |
4411eff5cb2a890b6f57eef93094fb70a0a66faa | 297efd4afeb46c0b56d9a975d76665caef213acc | /src/multiplicity/migrations/0026_auto_20181208_0740.py | 82eca20d3e465894fae450ae2a44b7598e792bfd | [
"MIT"
] | permissive | metabolism-of-cities/metabolism-of-cities-platform-v3 | 67716c3daae86a0fe527c18aef26ce29e069cbcc | c754d3b1b401906a21640b8eacb6b724a448b31c | refs/heads/master | 2022-12-06T22:56:22.207853 | 2020-08-25T09:53:51 | 2020-08-25T09:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 2.1.3 on 2018-12-08 07:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('multiplicity', '0025_auto_20181208_0719'),
]
operations = [
migrations.AlterField(
model_name='... | [
"[email protected]"
] | |
393df51822a4e25553dfc5130fbde0ab93e78e44 | e7efae2b83216d9621bd93390959d652de779c3d | /datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/common/validator.py | 20fd40589bb3d617df172095fcf04742cd2fc9a9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause-Modification",
"Unlicense",
"Apache-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"CC0-1.0"
] | permissive | DataDog/integrations-core | ee1886cc7655972b2791e6ab8a1c62ab35afdb47 | 406072e4294edff5b46b513f0cdf7c2c00fac9d2 | refs/heads/master | 2023-08-31T04:08:06.243593 | 2023-08-30T18:22:10 | 2023-08-30T18:22:10 | 47,203,045 | 852 | 1,548 | BSD-3-Clause | 2023-09-14T16:39:54 | 2015-12-01T16:41:45 | Python | UTF-8 | Python | false | false | 12,459 | py | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import abc
import json
import os
from typing import Dict # noqa: F401
import six
from ...datastructures import JSONDict
from ...git import git_show_file
from ...utils import get_metadata_file, has_logs... | [
"[email protected]"
] | |
a80b25b51691207c62aa5e0268abfc49f4b48640 | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/ScenarioScriptGroup1ExcelTable.py | 691ecbb8b440d3883daab477c5ae12ef5f5095cb | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class ScenarioScriptGroup1ExcelTable(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = fla... | [
"[email protected]"
] | |
2226d8e21d5a65eb4b18bd6bf4a8b2b930d5c84f | 929a816fc299959d0f8eb0dd51d064be2abd6b78 | /LeetCode/easy - Array/1304. Find N Unique Integers Sum up to Zero/.ipynb_checkpoints/solution-checkpoint.py | 038be3063eb5258cd1e9f8bdc9d7066cfb184c3e | [
"MIT"
] | permissive | vincent507cpu/Comprehensive-Algorithm-Solution | 27940da7bc0343921930a2eafbd649da93a5395d | 04e01e49622457f09af2e1133954f043c0c92cb9 | refs/heads/master | 2023-07-20T07:12:15.590313 | 2021-08-23T23:42:17 | 2021-08-23T23:42:17 | 258,644,691 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | class Solution:
# my solution
def sumZero(self, n: int) -> List[int]:
return list(range(n-1)) + [-sum(range(n-1))] | [
"[email protected]"
] | |
5032205c24261703355ad0399ea9138603b23d16 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/ap/CB_AP_Download_Image.py | 9e2f694d41a392e7f7a8b96829e4fd450cb80c4b | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | # Copyright (C) 2010 Ruckus Wireless, Inc. All rights reserved.
# Please make sure the following module docstring is accurate since it will be used in report generation.
"""Description:
Prerequisite (Assumptions about the state of the testbed/DUT):
Required components:
Test parameters:
Result type: P... | [
"[email protected]"
] | |
0cdbc657dc62827a0cc554f6fa825a3bca944a6d | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /findLadders.py | bbee45ac5eb94f388fe2af8dfaa11679d7959a31 | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | from collections import deque
from typing import List
# 不知道是哪个
class Solution1:
def findLadders(self, beginWord: str, endWord: str,
wordList: List[str]) -> int:
wordList.append(beginWord)
if endWord not in wordList:
return []
dic = dict()
levelLog =... | [
"[email protected]"
] | |
f654f52e05b95498dbdf1c51af76c90d6f91fb31 | 55c24645dd63a1c41037dcfb9fb45bc7bcdea4be | /venv/lib/python3.7/site-packages/jwt/__init__.py | 1e4d63b69dfbe1e69c8b867f879f3f5f7a0ff108 | [] | no_license | abdullah-nawaz/flask-boilerplate | 7c42801a21ee3e6a647cc8a7d92e0285f8e86cad | 01bc7fe1140e8ec613de4a38546a07ddfbdbd254 | refs/heads/master | 2022-12-02T05:06:08.297759 | 2020-06-24T21:36:32 | 2020-06-24T21:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
# flake8: noqa
"""
JSON Web Token implementation
Minimum implementation based on this spec:
http://self-issued.info/docs/draft-jones-json-web-token-01.html
"""
__title__ = "pyjwt"
__version__ = "1.7.1"
__author__ = "José Padilla"
__license__ = "MIT"
__copyright__ = "Copyright 2015-2018 José ... | [
"[email protected]"
] | |
91f2400b1ac12ac6674de7b95b057475eb95b9df | 242e68a7c15e6ced652734d1d0e3e88e1074bb39 | /climetlab/plotting/drivers/magics/__init__.py | 00d73dd43bf969323001fd0d6e94f9d13a59f7af | [
"Apache-2.0"
] | permissive | mchantry/climetlab | e6edf596882560ad0b23572b24ac9e5cd9325891 | 8d655b4ac121a69e7244efe109c04d5e110cdf9e | refs/heads/main | 2023-07-22T01:16:52.859802 | 2021-07-22T09:24:00 | 2021-07-22T09:24:00 | 379,984,648 | 0 | 0 | Apache-2.0 | 2021-06-24T16:16:38 | 2021-06-24T16:16:38 | null | UTF-8 | Python | false | false | 1,348 | py | # (C) Copyright 2020 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmenta... | [
"[email protected]"
] | |
4aba6eb3f7de44f562856e8a5171082f34e66878 | 26e2c68f929ecc8bb5c20c6b8cd200b66d99def5 | /DbConnect/test.py | e842e9eeb91a54098255018397b5627a2650cf58 | [] | no_license | kirigaikabuto/DjangoLessonsPart | ad19c1da0d1da27830c6fdf1b07353632bbc097d | 4442518ae1f0a8641e066c9a63ff4e55e04d5fe5 | refs/heads/master | 2022-11-28T10:29:54.428001 | 2020-08-03T09:26:42 | 2020-08-03T09:26:42 | 273,497,052 | 0 | 0 | null | 2020-08-03T09:26:43 | 2020-06-19T13:11:15 | Python | UTF-8 | Python | false | false | 675 | py | # 1)Показать продукты
# 2)Создать продукт
# 3)Удалить продукт
# 1
# ...
import psycopg2
def change(sql):
connection = psycopg2.connect(
host="localhost",
port="5432",
user="kirito",
password="passanya",
dbname="crm"
)
cursor = connection.cursor()
cursor.execute(... | [
"[email protected]"
] | |
9f69bbac15e78ca0cdd3215052def11f8adb988e | 1a3eb334e9578e23f63e17b4ee8e51d69405d29f | /cluster_analysis/interogate_clusters_for_gene_of_interest.py | 6e995babf1c21610b93935f749d52b041519d792 | [] | no_license | peterthorpe5/public_scripts | 6f0ab79c7a748dbd183ee7173576f7bcf25d7f54 | a3c64198aad3709a5c4d969f48ae0af11fdc25db | refs/heads/master | 2023-02-08T02:34:18.109091 | 2023-01-25T13:04:23 | 2023-01-25T13:04:23 | 43,360,640 | 35 | 23 | null | 2016-09-15T10:01:11 | 2015-09-29T10:21:05 | Python | UTF-8 | Python | false | false | 6,271 | py | #!/usr/bin/env python
# Code to iterogate clustering with a list
#
# (c) The James Hutton Institute 2016-2017
# Author: Peter Thorpe
import os
from sys import stdin,argv
import sys
from optparse import OptionParser
from collections import Counter
import collections
if "-v" in sys.argv or "--version" in s... | [
"[email protected]"
] | |
88b9865413cebcdc91c4fcd00f30340d0b864197 | b284d59bdf2c01977eb6d80795e2c75cb95b9b2c | /config/wsgi.py | 77f49bd2bbd2fcc7f583bd1617f7e6d091ef359a | [
"MIT"
] | permissive | CoutinhoElias/danibraz | 58d27cb30661d06091196cc487a9d902f4f8dac9 | b21f3ce3477ded74c901fa377a5b2ac5e68faf36 | refs/heads/master | 2021-01-20T02:12:30.096953 | 2018-04-01T15:52:40 | 2018-04-01T15:52:40 | 89,386,992 | 0 | 1 | MIT | 2017-12-01T16:52:47 | 2017-04-25T17:14:27 | JavaScript | UTF-8 | Python | false | false | 1,930 | py | """
WSGI config for Dani Braz project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | [
"[email protected]"
] | |
0ba95fac59a79e49da28fd1831d5d6b61331dffe | 5460b47bcf525348b7b615ce67a674b2de787915 | /working with relational databases in python/Pandas for more complex querying.py | 34050cdb305cc08e47f2117bb7b700f027857426 | [] | no_license | AnkitaDeshmukh/Importing-data-in-Python-Part-1 | 79c42677dd9887f7c9b57689634be09412a80fe9 | 3606a0510fc06c009bb30c1553e912bc6a5717a0 | refs/heads/master | 2020-03-27T11:44:50.665912 | 2018-08-29T00:41:41 | 2018-08-29T00:41:41 | 146,505,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | #Using the function create_engine(), create an engine for the SQLite database Chinook.sqlite and assign it to the variable engine.
#Use the pandas function read_sql_query() to assign to the variable df the DataFrame of results from the following query:
#select all records from the Employee table where the EmployeeId i... | [
"[email protected]"
] | |
e3a2230306811b053d39134bb33d2ff17e4ab5da | c1cd6a7a446934c428bc4fbf988f8d6680460488 | /dist/restclient.app/Contents/Resources/pip/_vendor/requests/packages/chardet/sbcharsetprober.py | 182997905ed0338ca0f69a69ac7bf6c33b8e5c08 | [] | no_license | devvmh/restclient-py2app | ed016d1763ee99779388c8700dfb9c129cf8ce1a | 6826f6cb81c08a36b30878683a58e4f7a18f5041 | refs/heads/master | 2021-01-10T12:01:31.411373 | 2016-01-18T03:34:02 | 2016-01-18T03:34:02 | 49,850,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | /Users/devin/git/restclient/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py | [
"[email protected]"
] | |
0a9ffca0fe6c9a6b6a984c02b4947634976dfac3 | 18f8a1c7122c0b320f17ea31192439779a8c63e8 | /zoom/fill.py | f181b9ee1ee496933103ca4f07a4d176277e13db | [
"MIT"
] | permissive | RyanLainchbury/zoom | d49afa8d3506fca2c6e426707bd60ba640420a45 | 684a16f4fe3cea3d26f2d520c743a871ca84ecc5 | refs/heads/master | 2020-12-25T19:03:12.881247 | 2017-06-09T07:29:27 | 2017-06-09T07:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,985 | py | """
fills templates
"""
import re
parts_re = (
r"""(\w+)\s*=\s*"([^"]*)"|"""
r"""(\w+)\s*=\s*'([^']*)'|"""
r"""(\w+)\s*=\s*([^\s]+)\s*|"""
r""""([^"]*)"|"""
r"""("")|"""
r"""(\w+)"""
)
tag_parts = re.compile(parts_re)
pattern_tpl = r'%s([a-z0-9_]+)\s*(.*?)%s'
patterns = {}
def _fill(tag... | [
"[email protected]"
] | |
fbaf9cc4e178d2fadabfc4ac0a9acb6617193252 | 1a6cbe035adb81fea66615323a836327d06f9e72 | /year2020/d8.py | a9a412e59e1d2f3574d82a8926248a6aa6dee291 | [] | no_license | ecurtin2/advent-of-code | a2607d857408d722b07d4cfc66855edcd019cda7 | 216db926c5bab9bf1ec3cac2aa912c1a2ff70d6c | refs/heads/main | 2022-12-15T10:06:51.202608 | 2022-12-14T17:28:15 | 2022-12-14T17:28:15 | 160,612,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | from dataclasses import dataclass, field
from enum import Enum
from typing import List, Tuple
class OpCode(Enum):
acc = "acc"
jmp = "jmp"
nop = "nop"
@dataclass
class Emu:
program: List[Tuple[OpCode, int]]
acc: int = 0
pointer: int = 0
history: List[int] = field(default_factory=list)
... | [
"[email protected]"
] | |
ce48e075832bfe8ad8472122d99f7481d3d2a0e4 | dfe2a52a1c36a28a8bf85af7efd42380d980b773 | /virtual/lib/python3.6/site-packages/django/db/models/sql/compiler.py | 279aa7a00fe58eb6d0feb049623f04707c8af9ec | [
"MIT"
] | permissive | virginiah894/Instagram-clone | 2c2a15d89fcdb25b22bd60428cf84a01f3bd553c | 4d8abe7bafefae06a0e462e6a47631c2f8a1d361 | refs/heads/master | 2022-12-10T06:56:21.105357 | 2020-01-07T14:14:50 | 2020-01-07T14:14:50 | 229,394,540 | 3 | 0 | MIT | 2022-12-08T03:23:40 | 2019-12-21T07:41:19 | Python | UTF-8 | Python | false | false | 66,354 | py | import collections
import functools
import re
import warnings
from itertools import chain
from django.core.exceptions import EmptyResultSet, FieldError
from django.db.models.constants import LOOKUP_SEP
from django.db.models.expressions import OrderBy, Random, RawSQL, Ref
from django.db.models.query_utils import QueryW... | [
"[email protected]"
] | |
25b825d27e27e80bf0bf8ad227c956a257a4aeaf | c7a1c1ae40e9d95dfb92251dcfbf3c5010e6ba81 | /unicorn-hat-cpu-status-indicator.py | 76dbd1127ffdb1b660f19b2e71e99fbcaea3b998 | [] | no_license | pranavlathigara/Raspberry-Pi-DIY-Projects | efd18e2e5b9b8369bb1a5f5418782480cf9bc729 | 0c14c316898d4d06015912ac4a8cb7b71a3980c0 | refs/heads/master | 2021-04-06T09:14:28.088223 | 2018-02-19T00:15:22 | 2018-02-19T00:15:22 | 124,649,553 | 1 | 2 | null | 2018-03-10T11:30:59 | 2018-03-10T11:30:59 | null | UTF-8 | Python | false | false | 1,500 | py | #!/usr/bin/env python
# https://forums.pimoroni.com/t/unicorn-hat-cpu-status-indicator/6150
# Import the relevant modules
import unicornhat as uh
try:
import psutil
except ImportError:
exit("This script requires psutil.n\Install with: sudo pip install psutil")
# Set the brightness of the UnicornHAT - 1.0 is ... | [
"[email protected]"
] | |
1ad5e73bdc6bb2f1b25482eb24098fb40a19d746 | 4bfc3c184e736bb68dccbb6d5657f11c950df002 | /tests/operators/dynamic_shape/test_dynamic_SIMD_v1.py | c742eb60dd2fa29b664aa45796b2afbb2b3fbc98 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | laekov/akg | 159aa64ef6135222b5af784c408731275dfa9bdb | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | refs/heads/master | 2022-12-01T04:09:03.548063 | 2020-08-19T08:38:57 | 2020-08-19T08:41:28 | 288,678,192 | 0 | 0 | Apache-2.0 | 2020-08-19T08:41:30 | 2020-08-19T08:36:53 | Python | UTF-8 | Python | false | false | 4,094 | py | import akg
import akg.topi as topi
import akg.tvm as tvm
from gen_random import random_gaussian
from akg.utils import kernel_exec as utils
from akg import platform as cce
import numpy as np
import pdb
dtype = "float16"
mapKey = {"add":"binary", "sub":"binary","div":"binary","mul":"binary","min":"binary","max":"binary"... | [
"[email protected]"
] | |
d0daf7126ac49ceaf9fe4fba467bdcc38254018b | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-live/aliyunsdklive/request/v20161101/AddPlaylistItemsRequest.py | 6eb4fbed96c893b1ed0d077e712f2afb6901d726 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,222 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"[email protected]"
] | |
9022cbf868abe8040133bf2c58b6759ba2bb8d2d | fe70774ff6898c5bdb0c941b4f335de576abfdb6 | /flopy/modflow/mfsip.py | 157d25044903290c48a1a97ca47478f9397ad1af | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | robinthibaut/flopy | 35af468415d1ba6e1de119a7cb335381304fada9 | 22ef330bcfb9259fc23735d6b174d27804b624a0 | refs/heads/develop | 2023-06-30T21:43:24.101593 | 2023-06-13T19:46:03 | 2023-06-13T19:46:03 | 255,560,877 | 0 | 0 | BSD-3-Clause | 2022-10-10T12:23:38 | 2020-04-14T09:05:42 | null | UTF-8 | Python | false | false | 7,748 | py | """
mfsip module. Contains the ModflowSip class. Note that the user can access
the ModflowSip class as `flopy.modflow.ModflowSip`.
Additional information for this MODFLOW package can be found at the `Online
MODFLOW Guide
<https://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/sip.html>`_.
"""
from ..pakbase import Pa... | [
"[email protected]"
] | |
850abcd24fff64af7d6051b944820f5ad1239db0 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/DGS-3120-24TC-L3MGMT-MIB.py | 84a5c9f901272856a6dd84805ff24aa82447b20b | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 27,904 | py | #
# PySNMP MIB module DGS-3120-24TC-L3MGMT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DGS-3120-24TC-L3MGMT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:43:42 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | [
"[email protected]"
] | |
4d8c07a70b0749f8547c953b05392c9470433b4b | f53ceb369fe3ed0e57004510d5836abbac7ce2e1 | /src/embeddingdb/web/wsgi.py | 23375a9b9580bc64f7264ca7c79562d6fd97ef3b | [
"MIT"
] | permissive | aarek-eng/embeddingdb | e3b21a1b8c3ed54a10fdce647e51c1bd560d117c | e6c67e92e540c4315045a0b4de5b31490331c177 | refs/heads/master | 2022-01-10T17:38:38.526503 | 2019-06-26T21:37:52 | 2019-06-26T21:37:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | # -*- coding: utf-8 -*-
"""A WSGI formulation of the web application.
Also allows the web application to be run with ``python -m embeddingdb.web.wsgi``.
"""
from embeddingdb.web.app import get_app
app = get_app()
if __name__ == '__main__':
app.run()
| [
"[email protected]"
] | |
89aa9e1612eed3d6d31f549bbee33b18d54bdb6f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/c18d50d76b304b2ba3289047cce00533.py | f94f1b404b123b82294be4a70207d24c3db05ca6 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,199 | py | import re
import nltk
import string
try:
SENT_DETECTOR = nltk.data.load("tokenizers/punkt/english.pickle")
## nltk data must be installed for nltk.data.load to work
except LookupError:
if nltk.download():
SENT_DETECTOR = nltk.data.load("tokenizers/punkt/english.pickle")
else:
sys.exit("nltk... | [
"[email protected]"
] | |
f8ce4049fa17b2f77c746a564018e80505b3ad57 | 44a6e88da453a2e368b014e403843b0c955f21f4 | /utils/test/test_cmpdirs.py | a6803725d5400b4ac3619b4f18d0768c8355442c | [
"Artistic-2.0"
] | permissive | golharam/genomics | a26b1f9366203ec059cc2e49281909bfc16e6ab4 | ca0c7c239b0f04353e2f2fa897db9c24a1211596 | refs/heads/master | 2020-08-06T10:28:21.604129 | 2019-09-27T07:51:41 | 2019-09-27T07:51:41 | 212,943,378 | 0 | 0 | Artistic-2.0 | 2019-10-05T04:25:24 | 2019-10-05T04:25:23 | null | UTF-8 | Python | false | false | 6,468 | py | #######################################################################
# Tests for cmpdirs.py
#######################################################################
import unittest
import os
import tempfile
import shutil
from bcftbx.Md5sum import Md5Checker
from bcftbx.test.mock_data import TestUtils,ExampleDirLangu... | [
"[email protected]"
] | |
a35539e60d21ee5e4cff7b291d6e310a1f7c4738 | d6952f048727add5b54a521d04f6c9b5889bcd35 | /test/test_plugin_package.py | d5c894862466254490283a1ebf7fe54be81aa9cf | [] | 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 | 3,778 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import... | [
"[email protected]"
] | |
b0c4412b89a2539c8dbd8859bd81a94448288edd | 0669d94428c972da19346e356861bf11bd668bc9 | /test/test_subaccount_response_etat_etat.py | 91fdf4f9bc18db35924042db2eafccbbc67173c0 | [] | no_license | mlemee/iSendProPython | e9a0f8351e33ae7598bd1380a26c2fe0a1dacd22 | 3add878dbcd682aa41f2bd07f98d8b56c8e5f9f3 | refs/heads/master | 2022-06-10T02:27:12.368498 | 2020-05-04T15:48:13 | 2020-05-04T15:48:13 | 261,206,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | # coding: utf-8
"""
API iSendPro
[1] Liste des fonctionnalités : - envoi de SMS à un ou plusieurs destinataires, - lookup HLR, - récupération des récapitulatifs de campagne, - gestion des répertoires, - ajout en liste noire. - comptage du nombre de caractères des SMS [2] Pour utiliser cette API vous devez: -... | [
"[email protected]"
] | |
0e942ea860ba6f547b090dd3e9d362fd8a956a09 | fb124e51024917d6479fa626d9607ff10f7a3aba | /storm-control/storm_control/sc_hardware/none/noneZStageModule.py | 0367129a52211e72f02bf6d98b88d170fab8f5e2 | [
"MIT"
] | permissive | BehnamAbaie/storm-control | 054bd7bbd903ed9635e4d1121c30544f58473c4f | 0c686321142eccad62ce3365eae22c3b69229b0d | refs/heads/main | 2023-06-18T08:04:01.108874 | 2021-07-14T00:51:15 | 2021-07-14T00:51:15 | 342,049,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | #!/usr/bin/env python
"""
Emulated Z stage functionality
Hazen 04/17
"""
from PyQt5 import QtCore
import storm_control.hal4000.halLib.halMessage as halMessage
import storm_control.sc_hardware.baseClasses.hardwareModule as hardwareModule
import storm_control.sc_hardware.baseClasses.lockModule as lockModu... | [
"[email protected]"
] | |
dd672e22f6b9460e05c57c72103c761fb7ba5b13 | 1bcbc4666a59cfc1eeec93152a6f4d8ea3103e11 | /mdx_strike.py | c1e2185ea2dda0da5a31eefea5848413e5f0defe | [] | no_license | xsren/my_blog | a005c991b1f819dbbc1041b95e2f4ce7691bf56a | 5a7d87b7cc4e70b37b90d292cbb68b949ab2a51f | refs/heads/master | 2021-03-27T15:25:55.806403 | 2017-11-11T14:10:09 | 2017-11-11T14:10:09 | 90,592,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | import markdown
STRIKE_RE = r'(-{2})(.+?)\2'
class StrikeExtension(markdown.Extension):
def extendMarkdown(self, md, md_globals):
md.inlinePatterns.add('strike', markdown.inlinepatterns.SimpleTagPattern(STRIKE_RE, 'strike'), '>strong')
def makeExtension(configs=None):
return StrikeExtension(configs... | [
"[email protected]"
] | |
eecacb5d8e8eca0109b6d65ddd7b8e54a3d4d9c5 | ea459bc6571b254f04fedb9262e297038773afe2 | /70_712A.py | e5e1ad11940e899dbf0adc2cfd0cced787fc77d2 | [] | no_license | ywtail/codeforces | 47da2564858e0c906aa715b3b8b76e6d41b76dd8 | 5c000124ff5ef1172494bc5c5dc252bcf8515ce1 | refs/heads/master | 2020-12-24T08:00:47.738455 | 2018-04-21T15:27:48 | 2018-04-21T15:27:48 | 59,407,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | #coding=utf-8
n=int(raw_input())
ai=map(int,raw_input().split())
for i in range(n-1):
print ai[i]+ai[i+1],
print ai[n-1] | [
"[email protected]"
] | |
2de5dd69d801120764e6e605e0cf8998621e6788 | 9a4e19711d72c66eba92d2ce8b9d7a062e748071 | /pykit/strutil/strutil.py | 09232997a86ac11648beabd1b0b55f090dd048bb | [
"MIT"
] | permissive | wenbobuaa/mysql-devops | dc567e252d2f46bf18c07813daf419f733cb2ded | cc60d1d2e0477702c4c78d87edbc8589ed54ea76 | refs/heads/master | 2020-03-09T05:19:57.715968 | 2018-01-21T05:05:42 | 2018-01-21T05:05:42 | 128,610,649 | 0 | 0 | null | 2018-04-08T07:11:19 | 2018-04-08T07:11:19 | null | UTF-8 | Python | false | false | 17,169 | py | #!/usr/bin/env python2
# coding: utf-8
import re
import string
import sys
import types
listtype = (types.TupleType, types.ListType)
def _findquote(line, quote):
if len(quote) == 0:
return -1, -1, []
i = 0
n = len(line)
escape = []
while i < n:
if line[i] == '\\':
e... | [
"[email protected]"
] | |
9bd05785e015991afd33124377bb512fc14e9e8b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s191736717.py | 3fcc479cdce9831954afefa641e5c33340ad8eee | [] | 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 | 944 | py | n, m, L = map(int, input().split())
abc = [list(map(int, input().split())) for _ in range(m)]
q = int(input())
st = [list(map(int, input().split())) for _ in range(q)]
d = [[float('inf') for _ in range(n)] for _ in range(n)]
for a, b, c in abc:
if c > L:
continue
d[a-1][b-1] = c
d[b-1][a-1] = c
de... | [
"[email protected]"
] | |
b87550bfd0f03a7059f92fcc41a2d2146199003b | ecdf9256853e11d6105e2b9ad92ba912602d97d7 | /hackerrank/contest/project_euler/prime_pair_connection.py | 1c15c254a9bb9448f4002f98039f487eeddce0eb | [] | no_license | rgsriram/Algorithms | 364fda568356834e32ec247438d21202bebc838d | d4f9acb1a60bd098a601d8173dfdad447a02fd74 | refs/heads/master | 2021-01-10T05:11:05.688731 | 2019-03-20T04:59:10 | 2019-03-20T04:59:10 | 49,176,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | __author__ = 'sriram'
def get_prime_numbers(p1, p2):
primes = []
for num in range(p1, p2):
if num > 1:
for i in range(2, num):
if (num % i) == 0:
break
else:
primes.append(num)
return primes
def find_next_prime(a, b):
... | [
"[email protected]"
] | |
b8a736a22cb410537485ef80ae260fcc2f764f8c | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/python/profiler/tfprof_logger.py | 2c7113ed5af0951210c044217a30d85aaf6955aa | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a6c4e234622b91b3aca7f80f19569dcc2f356d4cce446bc9c17942a4daa80264
size 6919
| [
"[email protected]"
] | |
5f2592c9076e6555e32ed9558c6b602aa7dfde6f | dca0bd2e04dda3801d395c2a6ab2f9d95be79551 | /Python/SmallProject/Strings.py | 2cdec5809358ac5554ee50b3888cf51d6a055909 | [] | no_license | A-khateeb/Full-Stack-Development-Path | ab8c86abea2f983fb8e0046a65b99772416c754c | 5a5eaa198367cc95a6b5638e9740f4ad564dec23 | refs/heads/master | 2021-06-01T23:52:04.965494 | 2020-05-01T22:59:20 | 2020-05-01T22:59:20 | 89,286,943 | 2 | 0 | null | 2017-12-22T22:21:52 | 2017-04-24T21:04:07 | Shell | UTF-8 | Python | false | false | 854 | py | p="hello\n world"
print(p)
c = '20\u20AC'
print(c)
t = """f
Hello World of Champion!!!!
Are you ready???
Yes Perfect!
"""
print(t)
print("""
Welcome to the GPA calculator
Please enter all your letter graders, one per line.
Enter Blank line to designate the end.
""")
points = {'A+': 4.0 ,'A': 4.0 ,'A-': 3.67,
... | [
"[email protected]"
] | |
5f9d814e165bbff7341f8adaed112bfee113391c | de4da7c45581f72adaf8e328a89cb3d57fe3613f | /fundamentos/iteraveis/mediana.py | b2b5ee777270724f4ba0c08725826002c1e9e3b3 | [] | no_license | ramalho/propython | 2469be7492554762d05f9b0ce5c0dc3a51bd3a18 | 76c2b52755e08d49929cdc2a523db72735240e72 | refs/heads/master | 2022-06-01T22:51:07.659074 | 2022-05-22T18:22:21 | 2022-05-22T18:22:21 | 140,458 | 39 | 13 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
# coding: utf-8
def mediana(lista):
'''
mediana: valor do item central da lista ordenada, ou
média dos dois itens centrais
>>> mediana([1,2,3,4,5])
3
>>> mediana([1,2,3,4])
2.5
>>> mediana([3,2,1,4])
2.5
'''
centro... | [
"[email protected]"
] | |
b5288b3d7ae6d135746fcdc7073b43f639a2df12 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2799/60632/282233.py | eeb1cc91f7d91a25920924cfabbd0123c28bc4dc | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # def is_pow_2(x) -> bool:
# if x % 1 != 0:
# return False
# for i in range(10):
# if x == int(pow(2, i)):
# return True
# return False
#
#
# def is_pow_3(x) -> bool:
# if x % 1 != 0:
# return False
# for i in range(10):
# if x == int(pow(3, i)):
# ... | [
"[email protected]"
] | |
b76ace0fdb73f5dd8108600d29b2065e9b696af4 | 7b76dfd66ee462b3edae4d9485e2d50585e8a8ac | /bin/conda/clang/link_flags.py | fc8b9b9ada03f537a3495a301fb691f0cadc684d | [
"Apache-2.0"
] | permissive | asmeurer/ClangLite | 5f4ce8855efb3dd8da42adc0bacba2695fe44cb2 | b6220069f4c73645197a2042555b20097842babd | refs/heads/master | 2021-01-24T03:13:02.544366 | 2018-01-30T14:10:30 | 2018-01-30T14:10:30 | 122,881,656 | 0 | 0 | null | 2018-02-25T22:02:28 | 2018-02-25T22:02:28 | null | UTF-8 | Python | false | false | 526 | py | import os
with open('config.txt', 'r') as filehandler:
output = filehandler.readlines()
LIBRARY_PATH = list()
read = False
for line in output:
if line.startswith('LIBRARY_PATH='):
line = line.lstrip('LIBRARY_PATH=').strip()
LIBRARY_PATH.extend(line.split(':'))
LIBRARY_PATH = {os.path.realpath(l... | [
"[email protected]"
] | |
7fc4ba920a5745dd12c78d172be1368a17c2bc22 | f777d6cc5c713cb983119687fd6a6403355adfb4 | /YouPBX/xadmin/plugins/topnav.py | cca473bdd92c92dbaa2d63947faaf15d6b36f361 | [] | no_license | maozhiqiang/callcenter | 71304bb451482ec61ceafbcfc017472ac2de4dac | 65678718b9beadf61aa6786b43d7192f63b2cfee | refs/heads/master | 2021-09-05T15:14:05.250642 | 2018-01-12T07:33:37 | 2018-01-12T07:33:37 | 119,644,546 | 1 | 1 | null | 2018-01-31T06:24:55 | 2018-01-31T06:24:55 | null | UTF-8 | Python | false | false | 2,574 | py |
from django.template import loader
from django.utils.text import capfirst
from django.core.urlresolvers import reverse, NoReverseMatch
from django.utils.translation import ugettext as _
from xadmin.sites import site
from xadmin.defs import SEARCH_VAR
from xadmin.views import BasePlugin, SiteView
class TopNavPlugin(... | [
"[email protected]"
] | |
b3215ee1f2ce82df254ea7f29be62181624a3b00 | 1bca4fc0734aa41bb1c6da461ec3b84ff3dd99bc | /test/functional/feature_logging.py | 2b2166ba56ba7a058700cb28020188083005abdf | [
"MIT"
] | permissive | wolfoxonly/qqc | 12f892c9030c5232d403b609decf5b297cd8ceaf | 807e67ba65b555ab38a655ae4823fa9af2ae3bc4 | refs/heads/master | 2020-03-10T20:46:31.603204 | 2018-04-15T14:33:17 | 2018-04-15T14:33:17 | 129,576,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The QQcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test debug logging."""
import os
from test_framework.test_framework import QQcoinTestFramework
class Loggi... | [
"[email protected]"
] | |
554d40d90484290f36d0abf7985bdc61cfba1da1 | 89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7 | /Python OOP 2020/Excersises/excersise3/document_management/project/storage.py | 65a61d8b7ca5ec69ca44292ec291178ae92af399 | [] | no_license | KoliosterNikolayIliev/Softuni_education | 68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd | 18f1572d81ad9eb7edd04300deb8c81bde05d76b | refs/heads/master | 2023-07-18T09:29:36.139360 | 2021-08-27T15:04:38 | 2021-08-27T15:04:38 | 291,744,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | class Storage:
def __init__(self):
self.categories = []
self.topics = []
self.documents = []
def add_category(self, category):
if category not in self.categories:
self.categories.append(category)
def add_topic(self, topic):
if topic not in self.topics:
... | [
"[email protected]"
] | |
01126cedb026a5884412b02d62b108c94bdae6f1 | 525fe8d3869ae9a34c294286120d098be6655253 | /timetable/migrations/0004_auto_20150410_1941.py | 2d5086aef916924977bb3fa603467293349b99b1 | [] | no_license | AlexGnatuyk/Datium | ce7aa8e9e5ef5b159f6fd42c1fb7cb1567339aa9 | 3ecced6d8d7fc8c2a08a9c6ee1ebc45f13214bbe | refs/heads/master | 2020-07-15T10:33:35.232663 | 2016-03-25T09:39:55 | 2016-03-25T09:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('timetable', '0003_auto_20150409_2105'),
]
operations = [
migrations.AlterField(
model_name='lesson',
... | [
"[email protected]"
] | |
de23afb24ca253f8d28cb75f21bfd441877cb203 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-oroas/huaweicloudsdkoroas/v1/model/list_task_response.py | 65795932472c67e2bcd889f5964105f0d963fbd1 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,944 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListTaskResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value ... | [
"[email protected]"
] | |
b69617242432947ad6c22d33267cf33e6ed5ad0f | 674a48ab817fb841417d72de7197a84b2d2b71b7 | /CLOVER/nature2017/tm_blob_chris.py | b2b7862be222928b21cf0ef4c42bf48dfcc00071 | [] | no_license | cornkle/proj_CEH | 0d1556bbb5992e663257841ada333f32e6da3e22 | 790ad1aa7e7a8c6593a21ee53b2c946b2f7a356b | refs/heads/master | 2023-09-01T01:26:58.669089 | 2023-08-23T14:22:47 | 2023-08-23T14:22:47 | 55,054,763 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,514 | py | import numpy as np
import pickle as pkl
import datetime as dt
from eod import trmm, msg, tm_utils
import ipdb
from collections import defaultdict
import matplotlib.pyplot as plt
from utils import u_arrays as ua
import cartopy.crs as ccrs
YRANGE=range(2004,2014)
#AREA=[-16,4,16,20]
AREA=None
def tm_overlap_blobs()... | [
"[email protected]"
] | |
49e1af1b05b53db53a3db3d9db8e5646ec7493d4 | 6fdddf7ba514cb3191786a61a06c9f12d6182890 | /spyder.py | 6310df5561aa21229735e54be0e4efa029dfe339 | [] | no_license | ash018/Scrap | 64615c9127fa6ecc2e633e6e276e34badf8725ab | 6f45ca9fdc1700686d88cf2aa1403fb9c0b6b05a | refs/heads/master | 2020-03-31T06:28:56.519456 | 2020-01-23T11:07:24 | 2020-01-23T11:07:24 | 151,984,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 8 12:49:01 2018
@author: smakash
"""
import json
import scrapy
import urllib.request
class SpidyQuotesSpider(scrapy.Spider):
name = 'spidyquotes'
quotes_base_url = 'http://spidyquotes.herokuapp.com/api/quotes?page=%s'
start_urls = [quotes_base_url % 1]
... | [
"[email protected]"
] | |
8a6a8e8e93fd8928ad317a39ef306e002e825d8a | 254ef44b90485767a3aea8cbe77dc6bf77dddaeb | /441排列硬币.py | a5322fb823433368efc0bf8352f3bf9d19f11c17 | [] | no_license | XinZhaoFu/leetcode_moyu | fae00d52a52c090901021717df87b78d78192bdb | e80489923c60ed716d54c1bdeaaf52133d4e1209 | refs/heads/main | 2023-06-19T02:50:05.256149 | 2021-07-09T00:50:41 | 2021-07-09T00:50:41 | 331,243,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | """
你总共有 n 枚硬币,你需要将它们摆成一个阶梯形状,第 k 行就必须正好有 k 枚硬币。
给定一个数字 n,找出可形成完整阶梯行的总行数。
n 是一个非负整数,并且在32位有符号整型的范围内。
示例 1:
n = 5
硬币可排列成以下几行:
¤
¤ ¤
¤ ¤
因为第三行不完整,所以返回2.
"""
class Solution(object):
def arrangeCoins(self, n):
"""
:type n: int
:rtype: int
"""
if n < 2:
return n
... | [
"[email protected]"
] | |
5b3caafcc9c1351e9b98f454767c5a65c3531167 | 3be42b83a15d022f5863c96ec26e21bac0f7c27e | /tensorflow_probability/python/stats/moving_stats.py | 5c4e9da9174eb6bd64c78376c1c2fdf995e7ed54 | [
"Apache-2.0"
] | permissive | ogrisel/probability | 846f5c13cddee5cf167b215e651b7479003f15d2 | 8f67456798615f9bf60ced2ce6db5d3dba3515fe | refs/heads/master | 2022-11-09T10:53:23.000918 | 2020-07-01T23:16:03 | 2020-07-01T23:17:25 | 276,580,359 | 2 | 1 | Apache-2.0 | 2020-07-02T07:37:58 | 2020-07-02T07:37:57 | null | UTF-8 | Python | false | false | 17,525 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"[email protected]"
] | |
5fd0d3f0eb9110b6f09d8eaa9ed47d574cfdf370 | 1dd72195bc08460df7e5bb82d3b7bac7a6673f49 | /api/alembic/versions/4ac7d9f38f85_allows_null_dewpoint_values_for_hourly_.py | 3d54107fefa7c5c3568f7d9fb1ecf0a6655968e6 | [
"Apache-2.0",
"MIT"
] | permissive | bcgov/wps | c4347c39cadfad6711502d47776abc8d03895593 | 0ba707b0eddc280240964efa481988df92046e6a | refs/heads/main | 2023-08-19T00:56:39.286460 | 2023-08-16T18:03:06 | 2023-08-16T18:03:06 | 235,861,506 | 35 | 9 | Apache-2.0 | 2023-09-11T21:35:07 | 2020-01-23T18:42:10 | Python | UTF-8 | Python | false | false | 891 | py | """Allows null dewpoint values for hourly actuals
Revision ID: 4ac7d9f38f85
Revises: aa82757b1084
Create Date: 2021-06-01 14:29:49.951368
"""
from alembic import op
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '4ac7d9f38f85'
down_revision = 'aa82757b1084'
branch_labe... | [
"[email protected]"
] | |
c845e20cb49ffa17704614605c775f62174f35f2 | 215f4260f3bc746ea038febbe27e177c73e8781d | /Koudai/Server/src/ZyGames.Tianjiexing.Web/Script/PyScript/Action/action4408.py | 1745ae928052a268c7191948572bcc21935d790f | [] | no_license | cosim/Scut-samples | c7baf863300111846358fb016896736420ec0058 | 86286c4b083fdb8ac6244ad122b5facb7592eabd | refs/heads/master | 2021-01-18T03:54:16.358346 | 2015-10-16T09:07:36 | 2015-10-16T09:07:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | import clr, sys
import random
import time
import datetime
import ReferenceLib
from lang import Lang
from action import *
from System import *
from System.Collections.Generic import *
from ZyGames.Framework.Cache.Generic import *
from ZyGames.Framework.Common.Log import *
from ZyGames.Tianjiexing.Model imp... | [
"[email protected]"
] | |
d56f05af3c27de535dd87df53be5bd34660d448d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_worsts.py | 238bd14921209f33ca8ce96c77e28f95ec46020d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
from xai.brain.wordbase.adverbs._worst import _WORST
#calss header
class _WORSTS(_WORST, ):
def __init__(self,):
_WORST.__init__(self)
self.name = "WORSTS"
self.specie = 'adverbs'
self.basic = "worst"
self.jsondata = {}
| [
"[email protected]"
] | |
0f1183e97da07bd5f49d57e484c565872ba37049 | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Debug/lib/python2.7/site-packages/twisted/manhole/ui/test/test_gtk2manhole.py | 463190f37a1020dc41ec1587e34d4d45d1896c90 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 1,324 | py | # Copyright (c) 2009 Twisted Matrix Laboratories.
"""
Tests for GTK2 GUI manhole.
"""
skip = False
try:
import pygtk
pygtk.require("2.0")
except:
skip = "GTK 2.0 not available"
else:
try:
import gtk
except ImportError:
skip = "GTK 2.0 not available"
except Runt... | [
"l”[email protected]“"
] | |
7fd1dbe3e06dc453bc514ba3d58dd5b19f88d100 | 3669cd260bdab697376feca747d1635d35f42c83 | /security/py-fail2ban/files/patch-actions.py | 91bfc987942691a41c98c25baa79292d35497788 | [] | no_license | tuxillo/DPorts | 58072bc88887c7a53a51988c76a70366bef44a93 | f523fb13a9d3ecc5ce9a8045fdf146ae05de5399 | refs/heads/master | 2020-04-03T08:02:44.297511 | 2013-03-04T07:56:00 | 2013-03-04T07:56:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | --- server/actions.py.orig 2012-11-27 18:16:18.000000000 +0100
+++ server/actions.py 2012-11-27 18:17:04.000000000 +0100
@@ -206 +206 @@
- logSys.warn("[%s] Unban %s" % (self.jail.getName(), aInfo["ip"]))
+ logSys.warn("[%s] Unban %s" % (self.jail.getName(), str(aInfo["ip"])))
| [
"[email protected]"
] | |
d1203e82570e4d5912a7947b18befac137bde579 | 1548ce77537dcd50ab04b0eaee050b5d30553e23 | /autotabular/pipeline/components/data_preprocessing/data_preprocessing_categorical.py | d6705e83ea43154d12a39641896c87ce43decbe9 | [
"Apache-2.0"
] | permissive | Shamoo100/AutoTabular | 4a20e349104246bf825ebceae33dca0a79928f2e | 7d71bf01d2b7d84fcf5f65c9f45c5cea1255d8a2 | refs/heads/main | 2023-08-13T21:34:34.329888 | 2021-10-02T07:06:00 | 2021-10-02T07:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,322 | py | from typing import Any, Dict, List, Optional, Tuple, Union
import numpy as np
from autotabular.pipeline.base import DATASET_PROPERTIES_TYPE, BasePipeline
from autotabular.pipeline.components.data_preprocessing.categorical_encoding import OHEChoice
from autotabular.pipeline.components.data_preprocessing.categorical_enc... | [
"[email protected]"
] | |
f57310bed2a1c58aed8958d2ec2afcb9b866e397 | 7cc0ef2d1ad8e9a1542e52bc6bc8897606639452 | /account/migrations/0007_auto_20160505_1827.py | 3f70979a040e12f0e39942e7f66d9c20adccf8e3 | [] | no_license | htl1126/pathjump | 1e87c6127bbfebc8519379c9352440d3a98359f6 | c1235c3fbb13af31ac7b8523e7a83b69f0da95b7 | refs/heads/master | 2021-01-15T15:36:47.723753 | 2016-08-26T20:35:32 | 2016-08-26T20:35:32 | 53,075,772 | 2 | 2 | null | 2016-05-06T17:43:22 | 2016-03-03T19:07:26 | HTML | UTF-8 | Python | false | false | 1,476 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-05 22:27
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('account', '0006_auto_20160505_1447'),
]
operations = [
... | [
"[email protected]"
] | |
91edc3f2e33b2bbca1ee98e8b76dfe875cf3c247 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_PolyTrend_Seasonal_Second_AR.py | 64f7646780a6a43000ce6df0f0cadc56dde92ebd | [
"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( ['Anscombe'] , ['PolyTrend'] , ['Seasonal_Second'] , ['AR'] ); | [
"[email protected]"
] | |
0c15131e30a6b94938e18b671638e273934f7357 | 3b5ee9aa584bfca56dabc19d75717f6104c0dc95 | /sky_pattern/sky_template_taskfarmer/compute_sky_templates-old.py | 5bd31c824ec6a8bf57995b138cdd253acf97d011 | [] | no_license | rongpu/desi-misc | 95690ca99962940fd4a793d523edf4d2ce68b4c3 | c700344ebf8f74391fcce69a47e4ca57fc4b34f8 | refs/heads/master | 2023-09-01T00:49:07.399914 | 2023-08-11T17:10:40 | 2023-08-11T17:10:40 | 173,173,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,228 | py | from __future__ import division, print_function
import sys, os, glob, time, warnings, gc
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from astropy.table import Table, vstack, hstack
import fitsio
from scipy.interpolate import interp2d
from scipy.ndimage.filters import gaus... | [
"[email protected]"
] | |
4db2f70125d55dc93257f676a4f151d6e74ffbdc | b8bff6154e548d6135812394f22d6564c40b074b | /flask-aws/bin/bundle_image | d417974d24fa30d6313fcc8108015b0fcc9760b0 | [] | no_license | nygeog/flask-aws-tutorial-nygeog | 0cb18a48dab515abfce9b89d9b6b84e152bd2e40 | f80668e9bdb3eced69c2c1bd50f6f83c37f65ce1 | refs/heads/master | 2021-01-10T05:48:10.904717 | 2015-10-28T03:01:53 | 2015-10-28T03:01:53 | 45,084,168 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | #!/Users/danielmsheehan/GitHub/flask-aws-tutorial-nygeog/flask-aws/bin/python2.7
from boto.manage.server import Server
if __name__ == "__main__":
from optparse import OptionParser
parser = OptionParser(version="%prog 1.0", usage="Usage: %prog [options] instance-id [instance-id-2]")
# Commands
parser.ad... | [
"[email protected]"
] | ||
945d57a53bd0dae91137c9ba1f1efc9b34fe111e | e59e1039469765c35192b1cd6eea2789b49190ba | /nslocalizer/xcodeproj/pbProj/XCVersionGroup.py | 53e60757f370688e3305b35df0c363060f3e69f8 | [
"BSD-3-Clause"
] | permissive | samdmarshall/nslocalizer | db208f166e9c7c8aa7c97d33700943370d1e063b | df086165d9201c98753cdda47bcfa0e517839696 | refs/heads/develop | 2021-01-18T00:45:31.485248 | 2019-04-02T18:00:48 | 2019-04-02T18:00:48 | 63,786,762 | 174 | 12 | NOASSERTION | 2019-02-24T16:27:13 | 2016-07-20T14:10:52 | Python | UTF-8 | Python | false | false | 2,124 | py | # Copyright (c) 2016, Samantha Marshall (http://pewpewthespells.com)
# All rights reserved.
#
# https://github.com/samdmarshall/nslocalizer
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of sourc... | [
"[email protected]"
] | |
596b64221ab3bf09fd36b81245b725ef27edbb7f | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/nist_data/atomic/float_pkg/schema_instance/nistschema_sv_iv_atomic_float_enumeration_4_xsd/__init__.py | 6b1c7764ed6855c717d67be10234c1e18219fca4 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 364 | py | from output.models.nist_data.atomic.float_pkg.schema_instance.nistschema_sv_iv_atomic_float_enumeration_4_xsd.nistschema_sv_iv_atomic_float_enumeration_4 import (
NistschemaSvIvAtomicFloatEnumeration4,
NistschemaSvIvAtomicFloatEnumeration4Type,
)
__all__ = [
"NistschemaSvIvAtomicFloatEnumeration4",
"Ni... | [
"[email protected]"
] | |
7cb0f1c9c7ca53419f4d843771e8d05e386fd3dc | add72f4d6f9f7af1f437d19213c14efb218b2194 | /icekit_press_releases/migrations/0010_add_brief.py | 53e0ff6430fc135656f91969f847f38cd1b04409 | [
"MIT"
] | permissive | ic-labs/django-icekit | 6abe859f97c709fcf51207b54778501b50436ff7 | c507ea5b1864303732c53ad7c5800571fca5fa94 | refs/heads/develop | 2022-08-08T21:26:04.144852 | 2018-01-08T02:55:17 | 2018-01-08T02:55:17 | 65,470,395 | 53 | 12 | MIT | 2022-07-06T19:59:39 | 2016-08-11T13:11:02 | Python | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('icekit_press_releases', '0009_auto_20170519_1308'),
]
operations = [
migrations.AddField(
model_name='pressrelea... | [
"[email protected]"
] | |
5b098cc32ed04727d88286884d3a1a759dd4afa0 | ddb185b0cf581d85a1dd733a6d1e5d027ba3e0ca | /phase1/400.py | 877ca618fdd5b1fc536af2f45765a18d49bae79b | [] | no_license | GavinPHR/code | 8a319e1223a307e755211b7e9b34c5abb00b556b | b1d8d49633db362bbab246c0cd4bd28305964b57 | refs/heads/master | 2020-05-16T04:09:19.026207 | 2020-04-30T10:00:06 | 2020-04-30T10:00:06 | 182,766,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # Nth Digit
class Solution:
def findNthDigit(self, n: int) -> int:
i = 0
idx = 9 * (10 ** i) * (i + 1)
while n - idx > 0:
n = n - idx
i += 1
idx = 9 * (10 ** i) * (i + 1)
pos = n % (i + 1)
print(n, i, pos, sep="||")
num = (10 ** i -... | [
"[email protected]"
] | |
d27b91306820f0c12d76d0b421c286eef8da969d | 722091dafa98a27ed8af830659be1933d6175a34 | /utilities/admin_tools/menu/__init__.py | 8026a1d088396db3eefc653676496ec965218cfd | [
"MIT",
"BSD-3-Clause"
] | permissive | chi1/trinitee | 6d6bdf8ba69fe2d76ff435e71f92e3d4d97bcda0 | 9be0240ccdbf33ce402909dbb6c883950ec943aa | refs/heads/master | 2020-12-29T02:55:51.484042 | 2010-08-17T19:44:54 | 2010-08-17T19:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | from utilities.admin_tools.menu.menus import *
| [
"[email protected]"
] | |
913096e1f4f5d79eb8e22f3e0a46b6ac66e40beb | abf984d4784f593ce617b335029b3efc273c7678 | /school_1329_server/users/migrations/0004_auto_20171228_1822.py | e1781425ab261058467d4a9f8d7b250a1c693513 | [] | no_license | potykion/school_1329_server | 80200cf5ddebfc4f9ac94ef2db19472c1b3cf374 | 7c579c625dc1fae7334117fa6cf078ede38574dc | refs/heads/master | 2021-09-08T18:02:22.092561 | 2018-03-11T16:54:13 | 2018-03-11T16:54:13 | 113,746,164 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # Generated by Django 2.0 on 2017-12-28 15:22
import datetime
from django.db import migrations, models
import django.utils.timezone
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20171226_0152'),
]
operations = [
migrat... | [
"[email protected]"
] | |
58b6749b3c5dbb294c5e0d86c3a6b183e28b9eb6 | 4c3a209fa9343dc4d574a3a5cb40a4940f10d866 | /codeup_100/1060.py | ae8cf76cef5c0d0ff34ecd4a6d8d3f6054ba5de2 | [] | no_license | Hyunjae-Kim/Coding-test-tutorial | 44de999f0b854b1d3e2813ced86d8eaa6e6c3ade | cfb278c3b61424b4419bfcf7909b076cc768b683 | refs/heads/master | 2023-01-12T08:27:14.310415 | 2020-11-12T10:21:06 | 2020-11-12T10:21:06 | 305,025,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | num1, num2 = list(map(int, input().split()))
print(num1 & num2) | [
"[email protected]"
] | |
ce879194c5cd487647fb7aebdeb08adbfa36a966 | 973ac85842b01e373c48d161bf46c7c7e0e50227 | /Game5/home.py | d89c7638483f9feca2608c04430c40c0062f7fe7 | [
"MIT"
] | permissive | splin85/Games | b652a050b905a2922849df21ff1262f8dedba6f1 | 41ebdf73e5523be15830334afc12f013b1d60323 | refs/heads/master | 2020-03-28T12:38:45.987129 | 2018-09-11T10:21:39 | 2018-09-11T10:21:39 | 148,318,954 | 1 | 0 | MIT | 2018-09-11T13:09:02 | 2018-09-11T13:09:02 | null | UTF-8 | Python | false | false | 595 | py | # coding: utf-8
# 作者: Charles
# 公众号: Charles的皮卡丘
# 大本营类
import pygame
# 大本营类
class Home(pygame.sprite.Sprite):
def __init__(self):
pygame.sprite.Sprite.__init__(self)
self.homes = ['./images/home/home1.png', './images/home/home2.png', './images/home/home_destroyed.png']
self.home = pygame.image.load(self.homes... | [
"[email protected]"
] | |
771ad5ac2a34884bcd43a05f69b30b6e6d21a353 | 3197bcf3e80989d0fc13519b2a5689c8b21049d8 | /prototypes/training_scripts/HeLa/feature_net_61x61_dropout_norm3.py | 46da59afb0570adc9516dc823bf0919d3b8b35f8 | [] | no_license | YubinXie/DeepCell | d6a5434dcf5fb208f407caf714d4877ed745a7cd | 887ac6be63e2594c3480680fdde63fbe9dded336 | refs/heads/master | 2021-05-05T16:17:38.178635 | 2018-01-13T20:39:34 | 2018-01-13T20:39:34 | 117,307,949 | 0 | 0 | null | 2018-01-13T02:45:18 | 2018-01-13T02:45:18 | null | UTF-8 | Python | false | false | 1,084 | py | '''Train a simple deep CNN on a HeLa dataset.
GPU run command:
THEANO_FLAGS='mode=FAST_RUN,device=gpu,floatX=float32' python training_template.py
'''
from __future__ import print_function
from keras.optimizers import SGD, RMSprop
from cnn_functions import rate_scheduler, train_model_sample
from model_zoo import fea... | [
"[email protected]"
] | |
df258a208348b017e2c9cf61a8a39e9d1be99432 | 44470a3d1388eddc83e84193813364cdc446f89a | /FinancialSimulator/Config/ConfigInstall.py | 731afffe0e43c6cf368dd2f87069f4048f3bf290 | [
"LicenseRef-scancode-public-domain"
] | permissive | FabriceSalvaire/pyFinancialSimulator | 12671b48ff3596affc5d770058dae41dcdfeecac | ea8380bf1106d597661214b2695681e21d72d259 | refs/heads/master | 2021-01-10T17:16:59.975117 | 2018-04-11T11:41:38 | 2018-04-11T11:41:38 | 43,254,801 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | ####################################################################################################
import os
####################################################################################################
import FinancialSimulator.Tools.Path as PathTools # due to Path class
##################################... | [
"[email protected]"
] | |
757e9edd17b0ee8a7da6e9eebaefa154578833d2 | 0a8ab2ddc9ce3b76cf91484c253f7ec0cfd2bbc7 | /FastBridgeApp/data/Latin/latin_for_americans_vol_1_and_2_ullman-henderson.py | 08cdd23f5e9d4ea6e76819ad52bbb2470821713c | [] | no_license | clangen2/FastBridge | cadb018ca2bf7966b032d4429e98ff774b0bbc9e | c839be0d69b16b89946e40153ada11ad355692b7 | refs/heads/master | 2023-08-28T00:55:09.163609 | 2021-09-27T13:38:50 | 2021-09-27T13:38:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,063 | py | import text
nan=""
section_words = {'start': -1, '1.15': 390, '1.18': 416, '1.3': 514, '1.31': 532, '1.38': 578, '1.4': 590, '1.52': 702, '1.63': 791, '1.64': 796, '2.1': 26, '2.14': 937, '2.2': 996, '2.3': 59, '2.4': 1180, '2.40': 1187, '2.41': 1191, '2.42': 1196, '2.43': 1207, '2.44': 1213, '2.45': 1219, '2.46': 1223... | [
"[email protected]"
] | |
afe30402c428b3b5cb816c08a6899bf22623498c | bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062 | /deploy/third_engine/demo_openvino/python/openvino_infer.py | 0ad51022b1793e7b6430025a7c71cc0de7658c8c | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleDetection | e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961 | bd83b98342b0a6bc8d8dcd5936233aeda1e32167 | refs/heads/release/2.6 | 2023-08-31T07:04:15.357051 | 2023-08-18T02:24:45 | 2023-08-18T02:24:45 | 217,475,193 | 12,523 | 3,096 | Apache-2.0 | 2023-09-10T10:05:56 | 2019-10-25T07:21:14 | Python | UTF-8 | Python | false | false | 9,233 | py | # Copyright (c) 2022 PaddlePaddle 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 appli... | [
"[email protected]"
] | |
e05eaa484fcc3ba5e03a90a7887dca29236b685f | 7a9489b25ddbfd066d19523dbabd1afdf6006e17 | /venv/Lib/site-packages/plotly/graph_objs/_scattergl.py | 1b8175314030b77821d0bec23208316c0dcd0e22 | [] | no_license | aidam401/Harmonic_Scanner | 840b0b39cefee1fcf290850330a9b406c26ffe68 | 1196ae83fc517a9470cc3ab70bfd4765f0ade7bf | refs/heads/main | 2023-08-25T12:49:31.502910 | 2021-09-21T19:25:36 | 2021-09-21T19:25:36 | 408,947,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107,200 | py | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Scattergl(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "scattergl"
_valid_props = {
"connectgaps",
"customdata",
"customdatasrc",
... | [
"[email protected]"
] | |
7325ae304d235b7a782d87159dd5bb3bda70ee36 | da92f27626485f3d75dd85b83e7d404fe5ce63eb | /migrations/versions/7ca65b6611b6_.py | 404d4f4e6b46d99e35425d14f33f002d67d9a15a | [
"Apache-2.0"
] | permissive | DD-DeCaF/design-storage | c0a88c554b427d6b86ac09e5ab0b4154174ef250 | 0c0e07f0dc505eb4a1e4521a87f5f7ac6f879b6d | refs/heads/devel | 2021-06-23T16:45:27.322527 | 2020-05-26T20:17:11 | 2020-05-26T20:17:11 | 161,643,976 | 0 | 0 | Apache-2.0 | 2020-12-08T14:35:36 | 2018-12-13T13:34:53 | Python | UTF-8 | Python | false | false | 1,112 | py | """empty message
Revision ID: 7ca65b6611b6
Revises:
Create Date: 2018-12-18 14:28:03.918045
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '7ca65b6611b6'
down_revision = None
branch_labels = None
depends_on = None
d... | [
"[email protected]"
] | |
cdc6692f0da110d0a1311d6ee5520bc67d75c56c | ba9687909c1b11d7baa361d16413d1e41dcbdf7b | /examples/python/pe_reader.py | e384f840d0d444946eed554e8f6a372f7c3c59de | [
"Apache-2.0"
] | permissive | tomagoyaky/LIEF | f78ea47e0aad31e6df60342544bdb97f73f787a8 | 758ddc7e3e7484a37eae344203c3485fc15d9097 | refs/heads/master | 2021-01-19T03:30:05.245889 | 2017-04-05T13:33:18 | 2017-04-05T13:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,310 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description
# -----------
# Print information about a PE file
import lief
from lief import PE
from lief.PE import oid_to_string
from optparse import OptionParser
import sys
def print_header(binary):
dos_header = binary.dos_header
header = bi... | [
"[email protected]"
] | |
1d02be350bd89c4ad24b2390e8c69e52de9cb2c8 | 24b79d18bc9b522c86d65d7601d7012fe29b0693 | /program9-11/main_pro.py | 58caffbe4b62c30aec554f26abfbfda139e026c1 | [] | no_license | meenapandey500/Python_program | 409fafa2e8f50edfbf30ddfbdf85b47569bf229c | 2bcb5fd51aebb4dca4bcc31a26e6b05a3603d5f0 | refs/heads/main | 2023-03-18T11:49:58.302858 | 2021-03-19T09:29:24 | 2021-03-19T09:29:24 | 349,359,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import file_class as f1
#main program
f=f1.files() #f is a object of class files
f.writefile()
f.readfile()
f.copyfile()
| [
"[email protected]"
] | |
bff3b2c527447f1f88f50748842058001df6d0b2 | 1e177ebdcb470f738c058606ac0f86a36085f661 | /Python/AdafruitIO/SendBlockHeat02_0.py | dc11ecc9ab7849e9906af300e627f575c087dfc7 | [] | no_license | robingreig/raspi-git | 5cbdd295c1048a0571aa2c2f8576438269439f07 | 7373bf94557d7a88c8f343362ba64f9cd19c8ce7 | refs/heads/master | 2023-08-31T03:16:17.286700 | 2023-08-26T11:54:23 | 2023-08-26T11:54:23 | 16,873,881 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | #!/usr/bin/python
# Import Library & create instance of REST client
from Adafruit_IO import Client
aio = Client('7e01e8b5e56360efc48a27682324fc353e18d14f')
# Send the value of 1 to BlockHeat02
aio.send('blockheat02',0)
# Retrieve the most recent value from 'BlockHeat02'
data = aio.receive('BlockHeat02')
print('Recei... | [
"[email protected]"
] | |
4f0fe3d099194e915d8a5db2b0850bd92f76cbc2 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/Full_v6Production/template_seed/templates_jhchoi_combine/StructureFiles/MakeSampleStructureNuisancePythons.py | 2e5c33f66236b1b84dc00bbe1203bd86d8005a68 | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 3,908 | py | import os
import sys
sys.path.insert(0, os.getcwd()+"/../MassPoints")
sys.path.insert(0, os.getcwd()+"/../")
##--signal Mass points--##
from List_MX import *
from List_MX_VBF import *
from WPandCut2016 import Year
List_MX_common=list(set(List_MX).intersection(List_MX_VBF))
##--bkg--##
#BKG=[ 'DY', 'WZZ', 'WWZ','WWW',... | [
"[email protected]"
] | |
81fd2c954c0a052cc19526a8aa2c6951dac03eb3 | b333dc607a2f1556f6a8adb6d16dc88fa8a30c8b | /portal/apps/endless_pagination/templatetags/endless.py | 4da67090f0acea9637dac724cdd9b6567db42bb0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hernan0216/utopia-cms | 6558f8f600620c042dd79c7d2edf18fb77caebb8 | 48b48ef9acf8e3d0eb7d52601a122a01da82075c | refs/heads/main | 2023-02-06T10:31:35.525180 | 2020-12-15T17:43:28 | 2020-12-15T17:43:28 | 321,775,279 | 1 | 0 | BSD-3-Clause | 2020-12-15T19:59:17 | 2020-12-15T19:59:16 | null | UTF-8 | Python | false | false | 18,712 | py | import re
from django import template
from endless_pagination import settings, models, utils
from endless_pagination.paginator import DefaultPaginator, LazyPaginator, EmptyPage
register = template.Library()
@register.tag
def paginate(parser, token, paginator_class=None):
"""
Usage::
{% paginate obj... | [
"[email protected]"
] | |
6b133f948bde3b69357f0d0355163472611ee2c0 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/dsmc/_get_pod_config.py | fd77e0232409867b0e87d628c72505c2b76f2569 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,210 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Dsm Controller Service (6.4.0)
# pylint: disable=duplicate-c... | [
"[email protected]"
] | |
699200756372ed209e1b275cdae246f2b9b3e134 | e9b8cf0b0dd333fec7f12a1f4f3d0de096de4422 | /dhira/data/dataset/internal/indexed_text.py | e000d6946229e9e6864186a1886c2f82fee3bcb9 | [] | no_license | Mageswaran1989/dhira | f111985b530b21278b9c6b438ab17667c966c39d | 37927094c279e5c8a95d845c379fcebb409cfdff | refs/heads/master | 2023-01-08T09:36:04.761102 | 2017-09-19T07:41:19 | 2017-09-19T07:41:19 | 85,969,187 | 4 | 2 | null | 2022-12-20T18:53:05 | 2017-03-23T15:58:38 | Jupyter Notebook | UTF-8 | Python | false | false | 11,685 | py | import logging
from tqdm import tqdm_notebook as tqdm
from dhira.data.dataset.internal.dataset_base import Dataset
from dhira.data.dataset.internal.text import TextDataset
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
class IndexedDataset(Dataset):
"""
A Dataset of IndexedFeatures, w... | [
"[email protected]"
] | |
d798508db278b21b33d7535d4228a09122e05c85 | 4be9a5bdb8e051001b78c8f127ccc1a7f85c14e7 | /monitoring/forms.py | e1648ae00d7df6d2c21eabc75faeffdc180af623 | [] | no_license | quentin-david/heimdall | f72a85606e7ab53683df2023ef5eaba762198211 | 84a429ee52e1891bc2ee4eb07a084dff209c789c | refs/heads/master | 2021-01-21T10:26:28.895663 | 2017-07-21T19:19:46 | 2017-07-21T19:19:46 | 83,432,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django import forms
from .models import Munin
class MuninForm(forms.ModelForm):
class Meta:
model = Munin
fields = '__all__' | [
"[email protected]"
] | |
89ea2edafb311dcf15707aa79731a3be564775b6 | 1804187f39dd6004250933b35ba9ce24297f32a5 | /strip.py | 93c4a5fd8135cbbe7e5fba71b7874cec07e99291 | [] | no_license | xiaomengxiangjia/Python | ecd2e3e8576364f15482669cb75b52b8790543f5 | 7f52a33d7956068d26347cf34d35c953b945a635 | refs/heads/master | 2020-03-20T23:01:09.981928 | 2018-08-23T09:04:53 | 2018-08-27T05:46:38 | 137,825,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | favorite_language = ' python '
favorite_language
| [
"[email protected]"
] | |
2b8a72aa08de33202a5c8687406a44e3a25ec8fa | 0e738ccc77594585c08e2e8a87a67253d13f57b0 | /flask-project-v8/manage.py | 553b4f14fca06cd8a55af1b8edeb6eb9114e6f36 | [] | no_license | saurabh-kumar88/flask-projects | cb02a991e05dbcf6a467bb126a4efecbe4bc4126 | 02827743e7a52f562be03975ceea9de10a4346cf | refs/heads/main | 2023-01-31T06:42:15.273505 | 2020-12-14T09:09:07 | 2020-12-14T09:09:07 | 321,291,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from app.models import *
app = Flask(__name__)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __n... | [
"[email protected]"
] | |
b2fc87109627385c185b8e75175bcac1bd8e1839 | 445539eefd37bbd8feb327574333b464bbe9f858 | /33/pool_pipe_celcius.py | d8ad66384d96d947b427ea589cc7b2bb2fdd0286 | [
"CC0-1.0"
] | permissive | yz-liu/cpython-book-samples | 8a2753ca2cebf8e5d8f5822e28ccf278f17864ae | d5a7cd72d14231a35d1d8b2ec74b04a171170686 | refs/heads/master | 2023-01-19T12:21:27.354487 | 2020-11-26T00:16:40 | 2020-11-26T00:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import multiprocessing as mp
def to_celcius(child_pipe: mp.Pipe, parent_pipe: mp.Pipe):
f = parent_pipe.recv()
# time-consuming task ...
c = (f - 32) * (5/9)
child_pipe.send(c)
if __name__ == '__main__':
mp.set_start_method('spawn')
pool_manager = mp.Manager()
with mp.Pool(2) as pool:
... | [
"[email protected]"
] | |
038a78ecf4331b3d18fb16a79383f077385711f8 | 8c14c6fef7539f3f946b955d4677a8c2f25bb7f1 | /src/vsc/model/rangelist_model.py | 8b135085fdf2c2385fb5c136cf7367cbd096cab5 | [
"Apache-2.0"
] | permissive | hodjat91/pyvsc | 2ce8b4cb1582793caee8f994e73ab867ef0eefb8 | 9b268db1970cd43058ea02f4fdbdc31990046230 | refs/heads/master | 2022-11-11T16:29:30.056186 | 2020-07-01T01:14:10 | 2020-07-01T01:14:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.