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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6991dc207815ab48ae46791891d445b78c2359a0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_recentest.py | f93941f4b13cefdd2333686e329e9b615cf9de18 | [
"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 | 226 | py |
#calss header
class _RECENTEST():
def __init__(self,):
self.name = "RECENTEST"
self.definitions = recent
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['recent']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0582f2cb7055ba6e5d8133b7421aa813af80556e | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-323.py | 156204efa4971bd39565e35b25809298e6391b87 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
fb574b9eb168faba9a20e817021d5efb507b4117 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/conda_manager/widgets/table.py | ee4d3b59ef65d8779dacf64dfa73c5fa745a9e83 | [
"Python-2.0",
"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 | 26,817 | py | # -*- coding:utf-8 -*-
#
# Copyright © 2015 The Spyder Development Team
# Copyright © 2014 Gonzalo Peña-Castellanos (@goanpeca)
#
# Licensed under the terms of the MIT License
"""
"""
from __future__ import (division, print_function, unicode_literals,
with_statement)
# Standard library import... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
143a2b435ce857dbd0475e94aef1e9bf00d0afb5 | 19236d9e966cf5bafbe5479d613a175211e1dd37 | /cohesity_management_sdk/models/role_update.py | 733ad80c72ec30c51a96e5f47fa441e5e2415f91 | [
"MIT"
] | permissive | hemanshu-cohesity/management-sdk-python | 236c44fbd9604809027f8ddd0ae6c36e4e727615 | 07c5adee58810979780679065250d82b4b2cdaab | refs/heads/master | 2020-04-29T23:22:08.909550 | 2019-04-10T02:42:16 | 2019-04-10T02:42:16 | 176,474,523 | 0 | 0 | NOASSERTION | 2019-03-19T09:27:14 | 2019-03-19T09:27:12 | null | UTF-8 | Python | false | false | 1,628 | py | # -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
class RoleUpdate(object):
"""Implementation of the 'Role Update.' model.
Specifies parameters required to update a role.
Attributes:
description (string): Specifies a description about the role.
privileges (list of string): Array of... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
24fee577c01fbd41cd14296cf06baa7ff9dd8694 | 76e62ddbfdfba19c80b37e855a4df67672ef0808 | /IVTa/2014/ALEKSEEV_I_S/task_12_50.py | ab19443ceba4961fb2b12b4689e1e91a89688863 | [
"Apache-2.0"
] | permissive | stasvorosh/pythonintask | 9d30f3cd492e89783b7221402375c1ebe4690baa | 8169ed26510022fe0d589f4013f11749131957df | refs/heads/master | 2021-01-17T16:49:32.778063 | 2016-10-10T14:08:04 | 2016-10-10T14:08:04 | 52,255,539 | 6 | 0 | null | 2016-02-22T07:33:16 | 2016-02-22T07:33:15 | null | UTF-8 | Python | false | false | 1,942 | py | # Задача 12. Вариант 50
# Разработайте игру "Крестики-нолики".
#(см. М.Доусон Программируем на Python гл. 6).
# Alekseev I.S.
# 20.05.2016
board = list(range(1,10))
def draw_board(board):
print("-------------")
for i in range(3):
print( "|", board[0+i*3], "|", board[1+i*3], "|", board[2+i*3], "|")
... | [
"stasyan.v@gmail.com"
] | stasyan.v@gmail.com |
5a39161daf1b0158febc6f1084a130433c1c9944 | bffd457e17dc250c81d7bd9e25c20a483f1a1ed5 | /pandatools/demo_hw.py | 609861d6783d01829e0f12b67428d2acf0459b39 | [] | no_license | Harzva/gigavision | 3121f183b8cfc66f9c89f4afe1bd0bdf1c1fe104 | 1fb1ad9b9d5aac6c18dc83184a52c484964be7fb | refs/heads/master | 2023-02-20T10:34:21.735085 | 2021-01-24T10:07:30 | 2021-01-24T10:07:30 | 332,416,570 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,892 | py |
import json
import cv2
import numpy as np
import os
# basepath="/root/data/gvision/dataset/train_all_annos/s0.3_t0.7_all"
# load_path="/root/data/gvision/dataset/output/my_pv_train/my_inference/coco_pv_inference_results.json"
# load_path_coco="/root/data/gvision/dataset/predict/s0.5_t0.8_141517/image_annos/person_bbox... | [
"562282219@qq.com"
] | 562282219@qq.com |
d74a7b8a8e2ea23d2b2855097c8f985640ed438f | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/copy-books.py | 2e512fdb8dea53102e37f2f032524d38ae208b24 | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | class Solution:
# @param pages: a list of integers
# @param k: an integer
# @return: an integer
def copyBooks(self, pages, k):
# can k persons copy books within x minutes
def check(x):
total, kt = 0, 0
for p in pages:
# current person cannot copy a... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
bc665f583a10f65731382232186ceba08c47f3bc | 7a21986fecf560d6ce9e4b29391112a891039416 | /tests/test_routing_api.py | ee5c21cf6b42437f971e410a099908df1a8ba4d1 | [
"MIT"
] | permissive | HTenkanen/HerePy | 8048d96406ea966e769e81fb06dc96502a2dd3c7 | d20690b79f70e90faaecd59307c9c66bb355e9da | refs/heads/master | 2020-06-03T22:54:58.430817 | 2019-06-13T14:16:16 | 2019-06-13T14:16:16 | 191,765,172 | 0 | 0 | null | 2019-06-13T13:08:47 | 2019-06-13T13:08:47 | null | UTF-8 | Python | false | false | 11,305 | py | #!/usr/bin/env python
import os
import sys
import unittest
import responses
import codecs
import herepy
class RoutingApiTest(unittest.TestCase):
def setUp(self):
api = herepy.RoutingApi('app_id', 'app_code')
self._api = api
def test_initiation(self):
self.assertIsInstance(self._api, ... | [
"abdullahselek@gmail.com"
] | abdullahselek@gmail.com |
4f286ff92811136f0e5a8eae86b3ab789f7cc07f | 786de89be635eb21295070a6a3452f3a7fe6712c | /CalibManager/tags/V00-00-02/src/GUICalibDirTree.py | 862c14460ee2b3dba4aeab4e61a61435098d92dd | [] | 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 | 8,840 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module GUICalibDirTree...
#
#------------------------------------------------------------------------
"""GUI works with dark run"""
#------------------------------
# Module's versio... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
4b304a6e1a76ef2a2f7c84a60648ce425b7fb6eb | 4ad94b71e30883d6df07a3277265bd6fb7457ba7 | /python/examples/doc_examples/export/animation_mpeg4.py | 7c73d2ff682be520d5d63b21b8a1722fb7631a24 | [
"MIT"
] | permissive | Tecplot/handyscripts | 7cb1d4c80f323c785d06b0c8d37aeb0acb67f58c | 84a89bfecff5479a0319f08eb8aa9df465283830 | refs/heads/master | 2023-08-22T15:29:22.629644 | 2023-08-12T01:19:59 | 2023-08-12T01:19:59 | 149,826,165 | 89 | 64 | MIT | 2022-01-13T01:11:02 | 2018-09-21T22:47:23 | Jupyter Notebook | UTF-8 | Python | false | false | 2,932 | py | import argparse, os
import tecplot as tp
from tecplot.constant import *
def parse_args():
"""
This script is to be run from the command line and accepts the
following command line arguments. Run this script with "--help"
to see usage and help information.
"""
parser = argparse.ArgumentParser()... | [
"55457608+brandonmarkham@users.noreply.github.com"
] | 55457608+brandonmarkham@users.noreply.github.com |
826ff5fbda6157abe17679e09c88a2f5ee00718f | 7b2d14f78099fde6c4a35082c9c294d1771cb163 | /Week 8/class_test.py | 53f6096a898910fbe51a1f31c0374884107660a0 | [] | no_license | pinardy/Digital-World | 04c6ddb369ede7295a0891aaaa006486c557965e | dd0a351eb64f05b524b08c47cd0c0ad3eadd775c | refs/heads/master | 2020-12-30T22:45:02.448171 | 2018-01-30T03:06:08 | 2018-01-30T03:06:08 | 80,622,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | class A:
x = []
def add(self):
self.x.append(1)
class B:
def __init__(self):
self.x = []
def add(self):
self.x.append(1)
x = A()
y = A()
x.add()
print x.x
y.add()
# print "A's x:",x.x
x = B()
y = B()
x.add()
y.add()
# print "B's x:",x.x | [
"pinardy@hotmail.com"
] | pinardy@hotmail.com |
236de0d625e60d74d181e3e4a7c9f70b19d02c0d | 5a809d40a91f5504b61626ec02a9304e62291bc0 | /env/lib/python3.6/site-packages/chargebee/version.py | 30cbf0d92a4e12680dbf782cbdd8e9bdc38f1300 | [
"MIT"
] | permissive | Mohitkaushal97/File | 5788bcfd4bb54ad703d82c8184efab8152ae2f09 | 0bc5cca9a557e242861a289af74dfe8b905bc3bd | refs/heads/master | 2022-12-19T03:19:29.213914 | 2020-10-01T06:28:36 | 2020-10-01T06:28:36 | 300,170,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | VERSION = '2.7.4'
| [
"mohit.kaushal@techstriker.com"
] | mohit.kaushal@techstriker.com |
2d959348fb53a3f73acfd66f0441f7e8c6026727 | 813284b9dac4477f4893cb6b30ffafab8e181cc4 | /contrib/linearize/linearize-hashes.py | d09065439ec8c13970e3d8289d3634fc41ad3053 | [
"MIT"
] | permissive | phoenixkonsole/xbtx | 609809c29c32e2c4373a26204480a0e2a9f0922e | 2f9db3d0ca34103e315a5bc9ef2fa2d42cb71810 | refs/heads/master | 2023-05-11T17:37:28.762478 | 2023-05-03T09:54:14 | 2023-05-03T09:54:14 | 243,993,348 | 3 | 11 | MIT | 2023-05-03T09:54:15 | 2020-02-29T15:30:47 | C++ | UTF-8 | Python | false | false | 4,698 | py | #!/usr/bin/env python3
#
# linearize-hashes.py: List blocks in a linear, no-fork version of the chain.
#
# Copyright (c) 2013-2016 The Bitcoin Core developers
# Copyright (c) 2017 The BitcoinSubsidium Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.openso... | [
"william.kibbler@googlemail.com"
] | william.kibbler@googlemail.com |
db31b8d2ff15f45a463ad6fbc60c2cb57dc1f3f5 | 31e3e0ce6d8b8cd1b286971aa1ea3c56a338ca48 | /sunpy/util/sphinx/doctest.py | 5a29458fbf6228f895f78a2fab1182fc8684257c | [
"BSD-2-Clause"
] | permissive | sunpy/sunpy | d8df998cf7753834ffd7add6911c0e4f6828b5b8 | edd3ea805f4540d41ce2932a0e865cab2d6a4cf5 | refs/heads/main | 2023-09-01T12:05:09.343909 | 2023-08-31T13:36:35 | 2023-08-31T13:36:35 | 2,165,383 | 792 | 683 | BSD-2-Clause | 2023-09-14T14:03:09 | 2011-08-06T15:34:08 | Python | UTF-8 | Python | false | false | 1,966 | py | # Licensed under the Astropy 3-clause BSD license - see licenses/ASTROPY.rst
"""
This is a set of three directives that allow us to insert metadata
about doctests into the .rst files so the testing framework knows
which tests to skip.
This is quite different from the doctest extension in Sphinx itself,
which actually d... | [
"stuart@cadair.com"
] | stuart@cadair.com |
44846d39e03d4c86d424fa57d50d5d22b76e2b30 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/214/39773/submittedfiles/triangulo.py | 69ff688cd3048f7f591723dc3954f22789a5366c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
import math
a=int(input('Digite a:'))
b=int(input('Digite a:'))
c=int(input('Digite a:')
a>=b>=c>0
if a<b+c:
print('S')
else:
print('N')
if a+b<c:
if(a**2)==(b*2)+(c**2):
print ('Re')
if(a**2)==(b*2)+(c**2):
print ('Re')
if(a**2)==(b*2)+(c**2):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
694a32db49cb1ca6e8ff77d71cfc2dbc980fad97 | a668806b052884b2f1faef6a28304c908a89fc68 | /test/fixtures/LoggerFixture.py | fcb55b6b5af8ab5768519c8566db92db68e92c05 | [
"MIT"
] | permissive | pip-services3-python/pip-services3-elasticsearch-python | aa2e49a70a0debcb2e77f59aefe144baf401b4ca | fe2fba2aeaef7ba80c17732d0065e5bcd60fcb82 | refs/heads/master | 2023-01-28T14:40:18.698083 | 2023-01-24T08:08:32 | 2023-01-24T08:08:32 | 140,886,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | # -*- coding: utf-8 -*-
import time
from pip_services3_components.log import LogLevel
class LoggerFixture:
def __init__(self, logger):
self.__logger = logger
def test_log_level(self):
assert self.__logger.get_level() >= LogLevel.Nothing
assert self.__logger.get_level() <= LogLevel.Tr... | [
"judas.priest999@gmail.com"
] | judas.priest999@gmail.com |
32f57999cceed14699a94052de464465d2c5f3f6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_mendicant.py | b54bd489ffe8ff7e7bd2a65fa8196b2a4fa0cc55 | [
"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 | 390 | py |
#calss header
class _MENDICANT():
def __init__(self,):
self.name = "MENDICANT"
self.definitions = [u'someone, especially a member of a religious group, who lives by asking people they do not know for money']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = '... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9c7997be9cd575f150d0f208a7ab48236e792676 | ffc6efca14efd126e9b0541e7b0c1f3a05ee90e1 | /algorithms/sorts.py | 639abd50908bf5d6bb9026c50b0d6391653e9e3c | [] | no_license | dlopes7/python-tests | 65b6687fcee9c6230d1fd13aa2941fef34cbaa8f | 93c175c717499f75a2f533c2bccf4e4e0b886e25 | refs/heads/master | 2021-01-13T00:16:32.516708 | 2015-12-28T17:45:43 | 2015-12-28T17:45:43 | 48,704,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | import random
import pygame
from algorithms.colors import *
def draw_array(array, nome, frame):
DISPLAY.fill(BLACK)
aux_surf = DISPLAY_FONT.render(nome+ ' - ' + str(frame), True, WHITE)
aux_rect = aux_surf.get_rect()
aux_rect.topleft = (10, 10)
DISPLAY.blit(aux_surf, aux_rect)
for idx, va... | [
"davidribeirolopes@gmail.com"
] | davidribeirolopes@gmail.com |
09abbc7def9184b80f439ee054f332587bccaf68 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/common/Lib/distutils/tests/test_core.py | 2de38bab70119d63190c0ca07ab4ad94abb32f45 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 2,628 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/distutils/tests/test_core.py
import StringIO
import distutils.core
import os
import shutil
import sys
import test.test_support
from test.test_support import captured_stdout, run_unittest
import unittest
from distutils.tests impo... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
95d03c0871078dbaef667f5b4515468e49b15261 | d99e5b65624f115db6982dd88af9390e8d766042 | /tensorflow/contrib/slim/python/slim/nets/inception_v3.py | 77c95b155f3b20cb6702b87bcdebee7af607416f | [
"Apache-2.0"
] | permissive | golbin/tensorflow | 03dbecb6f093f5628c072086c780659bcc14dba8 | 8a58a304bdcf909f8b55ec49e9280fc3af01c7d3 | refs/heads/master | 2021-01-12T07:05:41.360503 | 2016-12-20T00:15:41 | 2016-12-20T00:15:41 | 76,907,006 | 2 | 0 | null | 2016-12-19T23:58:44 | 2016-12-19T23:58:43 | null | UTF-8 | Python | false | false | 28,924 | py | # Copyright 2016 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 applicable ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
7c464d2064133dba060722b62dd9afa6f8efab4a | 7864ab2c567f5f3a98e7ab38ff38a3bd7c816fde | /fireplace/cards/gvg/spare_parts.py | eabe7299eaca68fb72038d7f15c9cb40af004331 | [] | no_license | gmagogsfm/fireplace | bfa1b57254b673317442518a997c635183bd3e61 | f16ee0659310a003d54552d0660ea3eb15c4da3f | refs/heads/master | 2021-01-09T09:06:35.035741 | 2015-02-09T14:30:24 | 2015-02-09T14:30:24 | 28,540,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """
Spare Parts
"""
from ..utils import *
# Armor Plating
class PART_001:
action = buffTarget("PART_001e")
class PART_001e:
Health = 1
# Time Rewinder
class PART_002:
action = bounceTarget
# Rusty Horn
class PART_003:
def action(self, target):
target.taunt = True
# Finicky Cloakfield
class PART_004:
ac... | [
"jerome@leclan.ch"
] | jerome@leclan.ch |
6e8c6813730dff827293a1ea8bb73eac583c808b | 32a3396cf8d879c92c09f5411af946084ed2ca3c | /blog/company_name_context_processor.py | 945c41dda6a2e989d60d18204aab0c0e256507cc | [] | no_license | mPowering/django-mpowering-healthcare | 5ae527dd7abac8d2f9debc506b6cb197b4db0ab8 | 52cff8d864d9363f0115831963bfa43a92ee2b47 | refs/heads/master | 2020-12-25T18:16:32.992431 | 2014-05-23T15:52:46 | 2014-05-23T15:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | # Django imports
from django.conf import settings
def get_company_name(request):
return {"company": settings.COMPANY_NAME}
| [
"gitumarkk@gmail.com"
] | gitumarkk@gmail.com |
9582efa970cbb8fbcb5908d20387bee0ac01cdcb | 00b405a49ac6108d24986243c4b52fa53fb58acc | /0517_super_washing_machines.py | 2f24982ec5d0bc0f3747d006eebaca662cd97192 | [] | no_license | Shin-jay7/LeetCode | 0325983fff95bfbc43a528812582cbf9b7c0c2f2 | 953b0b19764744753f01c661da969bdab6521504 | refs/heads/master | 2023-07-19T07:17:21.513531 | 2023-07-15T06:05:06 | 2023-07-15T06:05:06 | 231,285,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | from __future__ import annotations
from typing import List
class Solution:
def findMinMoves(self, machines: List[int]) -> int:
total, n = sum(machines), len(machines)
if total % n:
return -1
target, ans, to_right = total // n, 0, 0
# to_right: num of dresses to pass to ... | [
"shin@jay7.net"
] | shin@jay7.net |
8d615fa638b973f4aa9bfba25588878e9931efc2 | ae3f23efcdc4b7fdd1c224043d0ece002955956e | /xplace/xplace/network/domains/apps.py | 800f984530bd9ae92e8cb8591bf123ddcc22521a | [] | no_license | alexeysofin/xplace | 4466682fe76c808288d69f2808ddbca38a583bc4 | 9f12f066a62fae4e789bee94e5e554cc6de26d90 | refs/heads/master | 2023-01-12T01:02:40.137609 | 2021-02-14T20:41:30 | 2021-02-14T20:41:30 | 208,021,139 | 0 | 0 | null | 2023-01-04T10:18:46 | 2019-09-12T10:07:17 | Python | UTF-8 | Python | false | false | 104 | py | from django.apps import AppConfig
class DomainsConfig(AppConfig):
name = 'xplace.network.domains'
| [
"sofin.moffin"
] | sofin.moffin |
84d78b6245a076777dc308a6a42e78272b8479ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03330/s929352693.py | 253b3802f55ad2c29dbbdab985c6ea0170a9fbee | [] | 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 | 712 | py | n,c=map(int,input().split())
irohen=[list(map(int,input().split())) for i in range(c)]
grid=[list(map(int,input().split())) for i in range(n)]
rem0=[0]*c
rem1=[0]*c
rem2=[0]*c
for i in range(n):
for j in range(n):
if (i+j)%3==0:
rem0[grid[i][j]-1]+=1
elif (i+j)%3==1:
rem1[gri... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c6658efc9c3b1000d0b1be621573728ac5c30b16 | fc4f97918ac9366837cb05f51091178bbf37ac18 | /shelve_ex.py | d7cf2d49cdfc05a1eac38bbb50efef5cfafaa194 | [] | no_license | zoejane/automate-python | ae72ef7bed291b757ee41d578844c132cd1fc192 | 9c4e8ce69da21dc58e4fc85604d9e1fc848d8c3e | refs/heads/master | 2021-01-10T01:51:23.009746 | 2015-10-24T13:14:09 | 2015-10-24T13:14:09 | 43,808,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import shelve
# list,dictionary,etc..
shelfFile =shelve.open('mydata')
shelfFile['cats']=['Pooka','Simon','Cleo']
shelfFile.close()
shelfFile =shelve.open('mydata')
print(shelfFile['cats'])
print(list(shelfFile.keys()))
print(list(shelfFile.values()))
shelfFile.close()
| [
"dadac123@gmail.com"
] | dadac123@gmail.com |
7b53a6dde1bd8e550782891bc7ea6c8a288fb41e | b005369db9f220e8548a11fceab8543a726def3c | /stacked-autoencoder-pytorch/untitled.py | d5d81ba59073148107d09a96f751aa0269d6617a | [] | no_license | liuyanqi/shallow_learning | 9ec2b365986f66f2a3c07d377e3d979a07ebb2bd | b5fafb5b6ae5886bbd1a4ed03611eaee5481b627 | refs/heads/master | 2020-04-09T03:27:21.907715 | 2018-12-01T22:16:23 | 2018-12-01T22:16:23 | 159,983,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,552 | py | import os
import torch
import torch._utils
try:
torch._utils._rebuild_tensor_v2
except AttributeError:
def _rebuild_tensor_v2(storage, storage_offset, size, stride, requires_grad, backward_hooks):
tensor = torch._utils._rebuild_tensor(storage, storage_offset, size, stride)
tensor.requires_grad ... | [
"liuyanqi@umich.edu"
] | liuyanqi@umich.edu |
ae620efea9987cc629259704e3869f4454db1c9c | 06164402e4a9c46a03d579175e588519dbd4048d | /experiments/experiments_toy/test_varying_missing/nmtf_icm.py | 4434c3df200e94d25a479b0008f59fced2e0e8ae | [
"Apache-2.0"
] | permissive | XuanHeIIIS/BNMTF | 19547e36466ecee8d45fb0002d305ee6b7ba6c23 | 34df0c3cebc5e67a5e39762b9305b75d73a2a0e0 | refs/heads/master | 2020-03-27T12:47:58.375964 | 2018-06-10T10:22:19 | 2018-06-10T10:22:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,991 | py | """
Test the performance of ICM for recovering a toy dataset, where
we vary the fraction of entries that are missing.
We use the correct number of latent factors and same priors as used to generate the data.
I, J, K, L = 100, 50, 10, 5
"""
import sys, os
project_location = os.path.dirname(__file__)+"/../../../../"
... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
9e6ee83397fceeb430e08c5252d3be5dfb030f62 | c5458f2d53d02cb2967434122183ed064e1929f9 | /sdks/python/setup.py | 0e7640cc7b4ed0f33efa8b96d3aad2210fed2a4f | [] | no_license | ross-weir/ergo-node-api-sdks | fd7a32f79784dbd336ef6ddb9702b9dd9a964e75 | 9935ef703b14760854b24045c1307602b282c4fb | refs/heads/main | 2023-08-24T05:12:30.761145 | 2021-11-08T10:28:10 | 2021-11-08T10:28:10 | 425,785,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | """
Ergo Node API
API docs for Ergo Node. Models are shared between all Ergo products # noqa: E501
The version of the OpenAPI document: 4.0.15
Contact: ergoplatform@protonmail.com
Generated by: https://openapi-generator.tech
"""
from setuptools import setup, find_packages # noqa: H301
NAME = ... | [
"29697678+ross-weir@users.noreply.github.com"
] | 29697678+ross-weir@users.noreply.github.com |
c8b0402d15b859aaa402c2e24f7481605a77cd2a | 762de1c66746267e05d53184d7854934616416ee | /tools/MolSurfGenService/MolSurfaceGen32/chimera/share/SimpleSession/versions/v25.py | ab3a358e3694974f623f33517a4eaf4975369ca4 | [] | no_license | project-renard-survey/semanticscience | 6e74f5d475cf0ebcd9bb7be6bb9522cf15ed8677 | 024890dba56c3e82ea2cf8c773965117f8cda339 | refs/heads/master | 2021-07-07T21:47:17.767414 | 2017-10-04T12:13:50 | 2017-10-04T12:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,944 | py | # --- UCSF Chimera Copyright ---
# Copyright (c) 2000 Regents of the University of California.
# All rights reserved. This software provided pursuant to a
# license agreement containing restrictions on its disclosure,
# duplication and use. This notice must be embedded in or
# attached to all copies, including partia... | [
"alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5"
] | alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5 |
699107beaaa0112e11b92168d41891cd13d99d01 | 996bb6bf244dded0a778b9035e34311a4ca0fbfe | /docs/conf.py | 57e9c9ffe3ccd4b6a7747a216820b2bfb4ab4c67 | [
"MIT"
] | permissive | edeposit/cz-urnnbn-api | 7eb4229c03051300ddc375030d8233e8b3b2e95f | 2c9d36648491bfcbf0f29bedaf6f507a51805f8e | refs/heads/master | 2020-05-30T17:01:38.993229 | 2015-10-12T12:38:11 | 2015-10-12T12:38:11 | 31,064,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
import os
import sys
import urllib
import os.path
sys.path.insert(0, os.path.abspath('../src/'))
extensions = [
'sphinx.ext.autodoc',
'sphinxcontrib.napoleon',
'sphinx.ext.intersphinx'
]
intersphinx_mapping = {
'python': ('http://docs.python.org/2.7', ... | [
"bystrousak@kitakitsune.org"
] | bystrousak@kitakitsune.org |
be8ba9e73db30402493becf02ec4687d74472442 | a343a405ecc557a52974fa84bc0481cc11405b14 | /33_searchRotatedSortedArray_V2.py | 16dcda7bdf1a8844681f255d5bae37eca5ec09c1 | [] | no_license | jennyChing/leetCode | 926c2a5ff9f6c03152e93725b64f7bad804c415a | f3fc71f344cd758cfce77f16ab72992c99ab288e | refs/heads/master | 2020-05-21T16:42:17.325980 | 2017-03-18T01:59:15 | 2017-03-18T01:59:15 | 61,048,131 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | '''
33. Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
You are given a target value to search. If found in the array return its index, otherwise return -1.
You may assume no duplicate exists in the array.
''... | [
"jklife3@gmail.com"
] | jklife3@gmail.com |
29e07ede867807108d273fe7196934df3cefeaac | b0cfa5e2d84057ece11f3316f82b806f1383a9df | /modules/standard/whois/org_list_controller.py | 634951f4f7f98df7331e81c2e4726dc4fdd7b993 | [] | no_license | comatech/Tyrbot | 0b862afc834ec2d587fd5f8f67926569b109b667 | 1f8648d81c0a5f089ef7aaa6581809a47657b624 | refs/heads/master | 2020-07-06T06:40:13.863215 | 2019-07-21T09:51:45 | 2019-07-21T09:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,161 | py | from core.buddy_service import BuddyService
from core.chat_blob import ChatBlob
from core.command_param_types import Int, Any, Character
from core.decorators import instance, command, event
from core.dict_object import DictObject
@instance()
class OrgListController:
ORGLIST_BUDDY_TYPE = "orglist"
def __init_... | [
"email1@jkbff.com"
] | email1@jkbff.com |
acf3f83d7f62c84c967c3097d82a174f12128cc8 | 6296d071fb9f48d8a12b1a14b371f9c4da29f98b | /notebook_format/formats.py | 9c774ef6ba757215b4411ff71f8112eb2f17798c | [] | no_license | rosdyana/programming | 681b14d9977cca527b8d787ffbcc4322ceca4725 | eef81128a76519c96c7dd3e236f7a3bcd7e48d71 | refs/heads/master | 2021-01-18T16:07:23.625612 | 2017-03-26T23:33:30 | 2017-03-26T23:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import json
import warnings
import matplotlib.pyplot as plt
from IPython.core.display import HTML
def load_style(css_style = 'custom1.css'):
"""
custom1.css adapted from
https://github.com/rlabbe/ThinkBayes/blob/master/code/custom.css
custom2.css adapted from
https://github.com/neilpanchal/iPython-Notebook-Theme... | [
"ethen8181@gmail.com"
] | ethen8181@gmail.com |
73df75db6f73aa73017618cd51953ec831274985 | f0b1e58de2dfaad5a689ac32685e8201777fdd3c | /Base_model/intention/intent_classifier.py | 25161550038682d3f810c7f4c4c3793def6ecbc5 | [] | no_license | BarryZM/Chatbot_Utils | 3f99d33769709f3a116a9dec4fb32106b9396cb0 | 62dd366287839251a36b3ee3096a2a19da78e857 | refs/heads/master | 2022-11-19T23:50:18.003354 | 2020-07-22T13:32:19 | 2020-07-22T13:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,454 | py | # -*- coding: utf-8 -*-
'''
@Author : Xu
@Software: ide
@File : domain_classifier.py
@Time : 2019-11-06
@Desc : 基于bert的分类模型的fine-tune的领域分类模型,模型准确率验证通过,但是需要修改模型的初始化方法
'''
import os, csv, random, collections, pickle
import tensorflow as tf
import numpy as np
import pickle as pkl
import pathlib
fr... | [
"charlesxu86@163.com"
] | charlesxu86@163.com |
3bbddd1bbeb2a35468c28a37728f99bdf6f30c89 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_vpn_l2tp.py | 8a679a3190e555ba61d89d2bd7d5cafd9ce95faa | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 9,014 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"sifang@cisco.com"
] | sifang@cisco.com |
59286046da3a22e4b8f901dfac7e4065db049967 | 42a0760a051935b2e765d57c445235221a28f49e | /791_custom_sort_string.py | b4bb0b9295a5d278dee0a6d9d69b7aff5e664df3 | [] | no_license | Th3Lourde/l33tcode | 3bea3a3e7c633a2d5a36f7d76d5d776d275d8ee3 | eb6b11f97a022b66716cb3890cc56c58f62e8aa4 | refs/heads/master | 2022-12-22T19:05:04.384645 | 2022-12-18T19:38:46 | 2022-12-18T19:38:46 | 232,450,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | '''
S and T are strings that contain lowercase letters.
S is composed of unique chrs.
S is sorted. Sort the characters in T that are in S.
If there are characters in T not in S, they can be
put anywhere in the resulting permutation.
Idea: go through all elements of T, put them in a dictionary.
We will want to keep t... | [
"th3sylvia.lourde@gmail.com"
] | th3sylvia.lourde@gmail.com |
8707126656c4925ca4d8fbc116ad308a37a5d15e | 964b063c2461aad267ddd991fefaf7ab53b1ca94 | /7-kyu/remove-the-minimum/python/solution.py | 11722bbad1643eb8888c64bafc9b75e0de5391b9 | [] | no_license | lucasbflopes/codewars-solutions | 26c4e2cd1be19db50cc8c1d9fc117c51c82a2259 | 72ef2c02dde7bd0d5a691e04e3b2a383e892f84b | refs/heads/master | 2022-03-14T01:26:41.816498 | 2019-11-23T17:17:19 | 2019-11-23T17:17:19 | 114,834,447 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | def remove_smallest(numbers):
if not numbers:
return []
else:
min = numbers[0]
for number in numbers[1:]:
if number < min:
min = number
numbers.remove(min)
return numbers
| [
"LucasBraganca@Lucas-MacBook-Pro.local"
] | LucasBraganca@Lucas-MacBook-Pro.local |
d6fa72819b42cb6d6b28b3aa70ee781aee56d539 | e93cdd365b302dcbdb0dbef8accbd61473851354 | /core/migrations/0018_field_picture.py | f10c67a1c51ad0c9dc125f0fb51f1423dbc3a9ad | [] | no_license | jonerra/radcliff | 7bfd1004a2e1c789c4894b89df7d6408c5dc5034 | 13957e48a96175f11318187f3e180efa4fba2294 | refs/heads/master | 2021-01-21T13:53:45.409435 | 2016-05-16T23:21:51 | 2016-05-16T23:21:51 | 52,484,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-04-14 15:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0017_auto_20160414_1533'),
]
operations = [
migrations.AddField(
... | [
"jonerra23@aim.com"
] | jonerra23@aim.com |
0d97b7a0ec8e8b977b8369a64d5521329bae48f6 | 66c21d53a80f1ef1c53478b2c3aa2dc8ce8aed40 | /MODEL1310110044/model.py | 9e1259aa2a444fd57e70e89a3f234a8528b7fb5c | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | biomodels/MODEL1310110044 | a380b839eeb2c650ef712c65a47b46b77f589a02 | 18ca04fdc1bcae46976eb10e064fc7deed8297a4 | refs/heads/master | 2021-01-10T22:28:05.137897 | 2014-10-16T05:34:05 | 2014-10-16T05:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'MODEL1310110044.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
0c056a6628998a8dee81f09c8ff8bf4f17b95073 | ed1165acc8937976142f00009df5a942c02dbd24 | /database.py | fe32b9a6206e5442caefce688ca62b803109ef8d | [] | no_license | Kha/shaderwall | 1cb116b41c36ef9b20e86bfe2e16aaf4bf24e164 | afac9d484fbee345500167cfc1e2edcf5c752b5c | refs/heads/master | 2021-01-15T12:30:50.704084 | 2014-12-28T21:23:54 | 2014-12-28T21:23:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | from sqlalchemy import Column, ForeignKey, Integer, String, Text, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
import datetime
from config import connection_url
import random
import string
def generate_authcode():
retu... | [
"lukas@schauer.so"
] | lukas@schauer.so |
2160e87b55ae05a8679e74bdf72ae4a4de990797 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_lofts.py | 8a42b14b52f7fdd76fb42f78e75a7c6bdbbbc98f | [
"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 | 214 | py |
#calss header
class _LOFTS():
def __init__(self,):
self.name = "LOFTS"
self.definitions = loft
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['loft']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3e8087f0c76fb300a58687be1be04060a5486a08 | e66fa131cff76fa3fe70e7b6649fa1332159c781 | /ch10/statisticsModule.py | 457ed3ce44eb38e2f21007c4ca924d22a6b5f722 | [] | no_license | chc1129/python_tutorial | c6d97c6671a7952d8a7b838ccb8aa3c352fa6881 | 2f8b389731bafbda73c766c095d1eaadb0f99a1c | refs/heads/main | 2023-08-24T07:00:43.424652 | 2021-10-28T16:07:57 | 2021-10-28T16:07:57 | 341,532,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import statistics
data = [2.74, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5]
print(statistics.mean(data))
print(statistics.median(data))
print(statistics.variance(data))
| [
"chc1129@gmail.com"
] | chc1129@gmail.com |
f00e73727670667a1e871603bb509b79a7a90568 | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_saving.py | d5ffb1d760e2806452c3283ac3a9f4c3fa58f4c0 | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.saving import saving
def test_saving():
"""Test module saving.py by downloading
saving.csv and testing shape of
extracted data has 100 row... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
7f03e6648a2276ac0563039f20ed29c3515d2021 | c94f888541c0c430331110818ed7f3d6b27b788a | /ak_320bc483f2434f39a3af9ec9f04d3cc0/python/antchain_sdk_ak_320bc483f2434f39a3af9ec9f04d3cc0/client.py | 924c4fe29cce941b83d6292b00ebd148f377ec46 | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 23,502 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
import time
from Tea.exceptions import TeaException, UnretryableException
from Tea.request import TeaRequest
from Tea.core import TeaCore
from antchain_alipay_util.antchain_utils import AntchainUtils
from typing import Dict
from antchain_sd... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
119d98cbfe961151ff8f55209511e83d900e5f00 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/point-mutations/80163ab58f714c95a8b2ee96815a1fcb.py | 1d9ab6a4040ca28d3ccf3327a89a15e4fdbfb616 | [] | 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 | 210 | py | class DNA(object):
def __init__(self, strand):
self.strand = strand
def hamming_distance(self, strand):
return len([(x,y) for (x,y) in zip(strand, self.strand) if
x != y])
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
c4a8cd354d040c15afd379aff695a191ded6cdc5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_redistributing.py | 7376d9ca1ac4caa9854da9d4a805a8cb3a3c1b21 | [
"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 | 282 | py |
from xai.brain.wordbase.verbs._redistribute import _REDISTRIBUTE
#calss header
class _REDISTRIBUTING(_REDISTRIBUTE, ):
def __init__(self,):
_REDISTRIBUTE.__init__(self)
self.name = "REDISTRIBUTING"
self.specie = 'verbs'
self.basic = "redistribute"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9a8e84ef6d87a09c15df0221f95c9ccc202aa040 | f8a58ae93ff78c59296a136dff721c5ef666790b | /Starting small/Sorting a list using the sort- method.py | 4d32bda30c9c7681623df56368518f88d0b25c23 | [] | no_license | Anthonymcqueen21/Python-Programs | cb116b36e3c774ef51dba7f1fd29561767f89c7f | 127d5cbab4e7a2d0009d65075508cbaf5a6b6dc2 | refs/heads/master | 2021-06-26T18:03:30.212592 | 2017-09-15T19:59:21 | 2017-09-15T19:59:21 | 79,636,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | cars = ['Ford', 'Subaru', 'Mitsubishi', 'Nissan', 'Pontiac]
cars.sort()
print(cars)
| [
"noreply@github.com"
] | Anthonymcqueen21.noreply@github.com |
39fa71b52214a84429c1e12d21c534e2b0f13a00 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/102/usersdata/195/49999/submittedfiles/av1_2.py | aa7d3b44f7edf2b0de15cd659ec5a4cc9d377f3f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite a :'))
b=int(input('digte b:'))
c=int(input('digite c:'))
d=int(input('digite d:'))
if a!=b and a==c and a!=d:
print(V)
else:
print(F)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6619ecbf5ce70002cdfdedb21633647ee067064e | 3d8aae8aa43e0fbd8a8cffc4fa2cd67419059d66 | /module_PyQt/xtest/test_echo_array.py | 33ca00c7a33595dfb60b15d778273c5fa491ec50 | [] | no_license | onitonitonito/k_mooc_reboot | b8273b7e9fa3fc5958bca57c39f2f3a9108964f1 | 68c8c6a94adc99005fb0fc8c38c416f902d37888 | refs/heads/main | 2021-07-21T22:32:26.080330 | 2021-07-04T02:22:08 | 2021-07-04T02:22:08 | 109,581,972 | 0 | 0 | null | 2020-05-05T22:28:26 | 2017-11-05T13:30:03 | Python | UTF-8 | Python | false | false | 945 | py | """
# how to stack echo file
"""
print(__doc__)
import random
import _add_syspath_root
from assets.config import dir_statics
from string import ascii_letters
SYMBOLS = [sym for sym in "!@#$%^&*()_-+=,.?/|;:{}~{}" + ascii_letters]
RANDOM_START = (0, 39)
RANDOM_END = (40, 78)
LINES = 50
REPEAT = 10
FILE_NAME = dir_st... | [
"nitt0x0@gmail.com"
] | nitt0x0@gmail.com |
c4ea0a8154024f7e95ffa9605300406c7e7de34f | e1b8fb9a5500516f28d3d7e9a5f259c49ef35f14 | /top/api/rest/UserGetRequest.py | b3bd7048fb45379401d4afc382aa2472248e42f6 | [] | no_license | htom78/taobao_comet_py | 9224dbca1a413a54bcc5569873e4c7a9fc9ba059 | ad8b2e983a14d3ab7665244449f79dd72f390815 | refs/heads/master | 2020-05-17T10:47:28.369191 | 2013-08-27T08:50:59 | 2013-08-27T08:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | '''
Created by auto_sdk on 2013-06-16 16:36:02
'''
from top.api.base import RestApi
class UserGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
self.nick = None
def getapiname(self):
return 'taobao.user.get'
| [
"tomhu@ekupeng.com"
] | tomhu@ekupeng.com |
bf4d638465250a538af5ac031e32f9596dbd63e1 | 4b773103a5000a0a980739dd65426878c90dc098 | /core/models.py | 9e45dbcac258c6b24c9a9cf4ee079215ea16be1f | [] | no_license | gpchelkin/grading_system | 6ef693a89700fb86ce9567e33f697fb529c34297 | e34f85fd1d9ac6bad892222d68516bbab5d7cf23 | refs/heads/master | 2020-06-15T07:10:27.193190 | 2016-12-20T14:12:32 | 2016-12-20T14:12:32 | 75,315,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | # coding=utf-8
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import AbstractUser
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from curriculum.models import ClassesType
SEMESTER_CHOICES = (
('1', '1'),
('2', '2... | [
"a.s.maratkanov@gmail.com"
] | a.s.maratkanov@gmail.com |
0fd11a4dfafdc5db0041929e7300c6f3c2bac9da | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /oepiudBYC7PT7TXAM_12.py | b4db6ac9bfd7b1baa70fc45eadc33d11817f752d | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
def parse_roman_numeral(num):
d = {'M':1000,'D':500,'C':100,'L':50,'X':10,'V':5,'I':1}
return sum(d[num[i]] if (i+1 == len(num) or d[num[i]]>=d[num[i+1]]) else -d[num[i]] for i in range(len(num)))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
aa9043d32112f48f44454ef11cc5e8715ec14cc7 | f320d83c1b6f4854cb808a17a2dbb8827051636e | /setfreq/ParaSetTest.py | d9afb304b9f8f27e4bf782ec4f1758761566c8d9 | [] | no_license | JiahuiSun/Digital-Signal-Analyzer-based-on-SDR | f5214f2b2b36d4a24896f7d0c4a712979c236fd0 | 1e57dbb9cfcec7c0cb0a3f2335f3e68ecd2694d6 | refs/heads/master | 2020-04-04T19:50:16.131461 | 2018-11-06T12:51:42 | 2018-11-06T12:51:42 | 156,222,484 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | import ParaSetCliSock
import time
f1 = 1500
f2 = 1600
##while True:
ParaSetCliSock.set_param('rx_freq',f1)
##time.sleep(5)
ParaSetCliSock.set_param('tx_freq',f2)
##time.sleep(5)
| [
"you@example.com"
] | you@example.com |
6cf93c00ab4fa724d6ba734a936d3ff553a95395 | 6e3f97742562ff3cdf9372f54320c78e5c72fe97 | /apps/partidos/serializers.py | 984cd9ae22ba0f32acb4b3a184c75e363f0e068c | [] | no_license | desarrollosimagos/exit_poll | 6892e9ad504691fa44eb5b599881c7fb044b260d | e4572e2b222cf6b5de8a221ac300ccb0062f8e41 | refs/heads/master | 2021-01-01T16:36:31.726898 | 2017-07-20T18:52:30 | 2017-07-20T18:52:30 | 97,868,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from rest_framework import serializers
from .models import Partidos
class PartidosSerializer(serializers.ModelSerializer):
"""
Clase donde llamamos al modelo `Partidos` y serializamos los campos
"""
class Meta:
model = Partidos
fields = ('id', 'n_partidos','siglas','foto_partido','... | [
"ing.omar.orozco@gmail.com"
] | ing.omar.orozco@gmail.com |
699ab4ccd658741ab0ee7d42f5a80900e4a99ca3 | a137466dbaa5d704cd5a15ab9dfd17907b24be04 | /utility/aggregator.py | dd85c5817e5daa2bc1e2d53f3a9685154e121927 | [
"Apache-2.0"
] | permissive | xlnwel/g2rl | 92c15b8b9d0cd75b6d2dc8df20e6717e1a621ff6 | e1261fdd2ce70724a99ddd174616cf013917b241 | refs/heads/master | 2023-08-30T10:29:44.169523 | 2021-11-08T07:50:43 | 2021-11-08T07:50:43 | 422,582,891 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | class Aggregator:
"""Allows accumulating values and computing their mean."""
def __init__(self):
self.total = 0
self.last = 0
self.reset()
def reset(self):
self.sum = 0.
self.count = 0
def average(self):
return self.sum / self.count if self.count else 0... | [
"122134545@qq.com"
] | 122134545@qq.com |
4d5ea0573f752d71751f6d8611db7e239774bfc2 | ea5a801283e5c8dd822d755aa8824e9fd17c9ecf | /nomuraholdings/spiders/nomura.py | 9dde6136aea2930291b6ca2abd5eacd2b258ca05 | [] | no_license | daniel-kanchev/nomuraholdings | 3a5c98c2540fac135346267504eedd8bc8375ee1 | 4cf5faeeba53cf1122b1efe7698bac71af21b8fb | refs/heads/main | 2023-03-03T14:54:43.454865 | 2021-02-11T07:33:46 | 2021-02-11T07:33:46 | 337,959,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | import scrapy
from scrapy.loader import ItemLoader
from itemloaders.processors import TakeFirst
from datetime import datetime
from nomuraholdings.items import Article
class NomuraSpider(scrapy.Spider):
name = 'nomura'
start_urls = ['https://www.nomuraholdings.com/news/nr/index.html']
def parse(self, resp... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
22c627fae44f0079e535d66064c91480db572937 | 7bad6ecb04b57f4a692426bb23766cf0b5916d3d | /microdrop/core_plugins/command_plugin/plugin.py | 8fa27ab553a21e769406c2338ae015ca0488a243 | [
"BSD-3-Clause"
] | permissive | cfobel/microdrop | b943bed4a765c5419b6dead8344dbff420af283e | 721f2c9c040406bb3c70a9928923aad10a725b96 | refs/heads/master | 2020-04-15T18:50:20.035858 | 2018-10-23T14:26:58 | 2018-10-23T14:31:04 | 164,927,192 | 0 | 0 | BSD-3-Clause | 2019-01-09T19:47:11 | 2019-01-09T19:47:10 | null | UTF-8 | Python | false | false | 3,735 | py | from multiprocessing import Process
import logging
import sys
from zmq_plugin.plugin import Plugin as ZmqPlugin
from zmq_plugin.schema import decode_content_data
import pandas as pd
from logging_helpers import _L #: .. versionadded:: 2.20
logger = logging.getLogger(__name__)
class CommandZmqPlugin(ZmqPlugin):
... | [
"christian@fobel.net"
] | christian@fobel.net |
d84c34bf4d3fd0906684953b37dfca5d0bb16e5f | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/completion/dictLiteralCompletion/NotEmptyLiteralsInAssignments/main.py | d36bc2b54d3906268fceea50f594afaefc1e9506 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 109 | py | from typing import TypedDict
class Point(TypedDict):
x: int
y: int
p: Point = {"x": 42, <caret>}
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
6a59eb575683dbf700ea669d40428d6a1b5b91f2 | d74913eda69ee1799c887a645c574fa5a4da8fba | /code/metric_functions/metric_model1_func.py | 1b710aff7f2d5c9b1716dee526ab7dcf74bca1c0 | [
"Apache-2.0"
] | permissive | Fweek/pyMETRIC | efd6fe8c6ea74f5c87d19ecbb6653549fb3ba943 | 0e7eec57fedd33b81e6e7efe58290f50ebbebfab | refs/heads/master | 2021-05-03T10:23:15.066106 | 2018-02-06T19:32:36 | 2018-02-06T19:32:36 | 120,534,046 | 1 | 0 | null | 2018-02-06T23:00:49 | 2018-02-06T23:00:48 | null | UTF-8 | Python | false | false | 51,068 | py | #!/usr/bin/env python
#--------------------------------
# Name: metric_model1_func.py
# Purpose: Calculate METRIC Model 1
# Notes: GDAL Block Version
# Python: 2.7, 3.5, 3.6
#--------------------------------
import argparse
import datetime as dt
import logging
import math
import os
import ran... | [
"dgketchum@gmail.com"
] | dgketchum@gmail.com |
4506438a67a0403f0dbfc593c8410beb5c8794ac | 30c209d2e2ee59f5484197bb5ce8acd48f366a5b | /lib/icons.py | 6a6a4d54995f0b58c0c79df1e6dac2e404ce6940 | [] | no_license | anandu467/json_language_translator | 1907c697d0d93b7167a23f874caaec048a00e18d | 89478f69439ba5d5eb4f1a126dba8d6fa4173a2c | refs/heads/main | 2023-04-15T23:46:23.764526 | 2021-05-02T08:54:26 | 2021-05-02T08:54:26 | 361,663,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,951 | py | saveIcon=b'iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAByElEQVQ4jdXSz0/acBjH8f4netSQgIT667JdTZaZHXbQ0+LfMWMksuhEN4UpZZrMgy3REKNRYoiyDrpFajd0BEX6LfUHKCIS6V/w8aShtohczPYk79uTV57DQ1H/1dA+pY/2ya6X3ri4IGQuV4SktiIktWAsqc0Jaq66Fx5xp8uXbn4cYwhohuCVV0CKZBHiowjxUWzyMVxXNF09HgG0P3NSE21nlJFqMHGYxgzLYYbl4OMCRnBaAM0Q0P7Mif2L2mS80... | [
"you@example.com"
] | you@example.com |
c94b34d4d6623b867a7cc91d3672366334dd307f | 9cb6a655735b954eac4feeb006b174b8a5d759f4 | /test/test_sighash.py | 1e3dbf744d8ce0de53675357bfa42832889eef0d | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | Conio/pybitcointools | c68639439c5fc84694bb28213cc6d9c21198ad94 | 3025e73092789121ecf5aef4e6815be24f475735 | refs/heads/master | 2021-11-27T07:55:38.707876 | 2021-11-23T10:17:32 | 2021-11-23T10:17:32 | 53,937,108 | 20 | 13 | null | 2017-11-15T01:03:28 | 2016-03-15T10:55:22 | Python | UTF-8 | Python | false | false | 3,375 | py | import unittest
import bitcoin
from bitcoin import *
class TestTransaction(unittest.TestCase):
@classmethod
def setUpClass(cls):
print("Attempting transaction creation")
def test3(self):
print(
deserialize_script('52210248905f94419795ea33cd42474e10bfaddc3ee5f0f0c66ecc29238fea... | [
"guido.dassori@gmail.com"
] | guido.dassori@gmail.com |
6717c5e8394bf8346701fd67ae56099633f0713c | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_hyperflex_hxdp_version_list.py | cc62ffaf9a3db32bf124709634b0401a115e5b90 | [
"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,965 | 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 |
4074ccc9524357ff4d85c3bd86584bd3ef35977c | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/17-password-checker_20200413015442.py | c3dbd472448138f2e12538cd9a3c725139ae119c | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # input ('testingpassword')
# input ('secret')
# print('{username}, your password {*******} is {6} letters long')
print('*') | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
09a20fc08bd4c36c320dd80bd12158ff8b3dd30e | 0549916a0d04943a0d944a2794e103aed2d1299c | /docs/conf.py | 1e9f35385b8904bab54fa8a27ed5d249e4bc4fcb | [
"MIT"
] | permissive | stephtdouglas/thejoker | 20d6eac36520477b0478ae84effa519fde625f2f | b1f2681cd72b6c04d19b24aadf818639c5f59ad0 | refs/heads/master | 2020-03-18T10:26:55.842576 | 2018-04-16T20:24:47 | 2018-04-16T20:24:47 | 134,612,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,806 | py | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
#
# Astropy documentation build configuration file.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this file.
#
# All configurati... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
198f417c20f548b5837d62bb3ea3650d6729a7b7 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/source_control/github_hooks.py | df0f0f2199b9d4b047c892050d52ba99640ae995 | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 5,874 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Phillip Gentry <phillip@cx.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
7669acaa0139374e57a42a7a5e950e3fd981b1cf | 3ca6b34676a0adeaba85a2953a8c9abf5d6ef3e4 | /cap 5/pizza.py | 44790867aae04d53d68213989d73d8dcd4ef7e96 | [] | no_license | giusepper11/Curso-intensivo-Python | 34fb8e94c7c9afb09f54d8fc67136b337d0ef106 | 613cd502af3ff877dac0d62d9eb09b290d227838 | refs/heads/master | 2021-08-30T11:41:42.824065 | 2017-12-17T19:47:15 | 2017-12-17T19:47:15 | 114,535,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | available_toppings = ['mushrooms', 'olives', 'green pepper', 'pepperoni', 'pinapple', 'extra cheese']
requested_toppings = ['mushrooms', 'extra cheese', 'french fries']
# if 'mushrooms' in requested_toppings:
# print('Adding mushrooms')
# if 'pepperoni' in requested_toppings:
# print('Adding pepperoni')
# if '... | [
"giusepper11@gmail.com"
] | giusepper11@gmail.com |
a04ff5d4bae9109384d468f2375916651f0782c8 | fe1d3a2e3b51d1440a5c431c32afc334841dcdc6 | /view-point-server/tests/landmark_objects/perform_modeling.py | a351aa50fa3ffb0b0128eba0135d867485c7742d | [] | no_license | vyzuer/view_point | 5a9b2251880de93a6ac41058f7d05eac2f4d814d | 3ae071f8b5eca883f5d8790ad441d8ae419e9242 | refs/heads/master | 2020-06-15T23:35:26.027690 | 2016-12-01T05:35:33 | 2016-12-01T05:35:33 | 75,258,808 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | import sys
# add the package
sys.path.append('/home/vyzuer/Copy/Research/Project/code/view-point/view-point-python')
import landmark_object.classify_objects as cl_obj
import landmark_object.gmm_modeling as gmm_model
import landmark_object.geo_pixel_map as gpmap
def process(cluster_model_path, dump_path, model_type):... | [
"ysrawat.cse@gmail.com"
] | ysrawat.cse@gmail.com |
b216d0f072c2e1c156b59d7618b849f5928627d9 | 5d5f6ba3bdcb52b4750a5f28afa8a1a1019bfc9e | /django/extras/miniRegisterProject/miniRegisterProject/wsgi.py | 611c6dc7765e6df4a6c4145df88f0e835082e8e1 | [] | no_license | eDiazGtz/pythonLearning | 06e96f2f5a6e48ac314cb815cf9fbf65d0b7c2c8 | 57d7b2292cf5d9769cce9adf765962c3c0930d6c | refs/heads/master | 2023-06-18T02:16:09.293375 | 2021-05-03T18:09:52 | 2021-05-03T18:09:52 | 335,090,531 | 0 | 0 | null | 2021-05-03T18:09:53 | 2021-02-01T21:35:24 | Python | UTF-8 | Python | false | false | 415 | py | """
WSGI config for miniRegisterProject 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('... | [
"ediaz-gutierrez@hotmail.com"
] | ediaz-gutierrez@hotmail.com |
1aa5f30f75d756e2d60d09e99a08e0c7a06a8549 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Athena/training/exercises/exercises/software_craftsmanship/code_check/code_check_solution.py | 503dc3833b752d73aa4ecca182f07f0d07cda69b | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,073 | py | """
Code Check
----------
This code has an assortment of bugs, and its style doesn't
conform to PEP-8. Use pyflakes and pep8 to find and fix
the code.
You may have to install pep8 with the command:
$ easy_install pep8
It might take a few iterations before pyflakes doesn't
complain about something.
"""
from math i... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
78294f6a8aef669474858e616f2609a6d163080a | bef7c41e7b51417f9cc5c3d30a7f94b59286e2b7 | /Algorithms/subsets.py | eb73b6b90fe89a9c354b65f360339b14b82bdd11 | [] | no_license | algometrix/LeetCode | 40dd6ea93c370cabe57ba672d820f261e0595cae | 3dc885ac2a93781c36fbe2735061da29194caba4 | refs/heads/master | 2021-07-01T19:45:08.018784 | 2021-06-03T05:38:13 | 2021-06-03T05:38:13 | 235,496,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py |
import pprint
def generateSubset(array):
temp = []
result = []
def search(k):
if k == len(array):
result.append([array[index] for index in temp])
else:
temp.append(k)
search(k+1)
temp.pop()
search(k+1)
search(0)
return... | [
"ashishnagar31@gmail.com"
] | ashishnagar31@gmail.com |
453b1c254a73d6ca3f23e25571f460f0270bd009 | 1816378da612c7db376934b033e4fd64951338b6 | /gui/system/migrations/0053_auto__add_registration.py | 4a22f895de85bfa55c644ca8410ecc3045f62741 | [] | no_license | quater/freenas-9.2-xen | 46517a7a23546764347d3c91108c70a8bd648ec6 | 96e580055fa97575f0a0cb23a72495860467bcfb | refs/heads/master | 2021-01-16T22:21:38.781962 | 2014-02-07T05:59:13 | 2014-02-07T05:59:13 | 16,609,785 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,183 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Registration'
db.create_table(u'system_registration', (
(u'id', self.gf('django.... | [
"john@ixsystems.com"
] | john@ixsystems.com |
1def5be0b51e055f3389540b66364e0974814105 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_159/624.py | cf0d31f0a91c8e0ded44e2339ac0e8cf0e446e08 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | #codejam 4/17/15
import math as m
import time
#import codejam
import sys
sys.setrecursionlimit(100)#1100) #we need 1000 max
#filename = r'c:\g\1A\1-test.in.txt'
filename = r'c:\g\1A\A-large.in'
#filename = r'c:\g\A1\1-large.in'
foutname = r'c:\g\1A\1-out-large.txt'
#foutname = r'c:\g\1A\1-out-large.txt'
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2a06374a0a793b1371880df1dcb25fa45b93da2c | aea74a8c1d4ad17eb65b7c70da5342c01fd1a930 | /websites_mongo/scraper_military_shop.py | b0d8f9173ceff9468d92e846a3b1818f303f0b09 | [] | no_license | savusebastian/angular_project | 4e6d8b398e17ca91842d7579d8f4da8650e7a13a | 9c28c25e4b9875abf346f7e9a7e8baa34bc3f9ee | refs/heads/main | 2023-04-17T07:03:32.016850 | 2021-05-09T09:07:55 | 2021-05-09T09:07:55 | 365,710,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py | from bs4 import BeautifulSoup
from bson.objectid import ObjectId
from pymongo import MongoClient
import pymongo
import requests
def military_shop_DB():
cluster = MongoClient('mongodb://localhost:27017/vrem_reduceri_db')
db = cluster['vrem_reduceri_db']
collection = db['military_shop_products']
all_links = [
'h... | [
"savusebastianf@gmail.com"
] | savusebastianf@gmail.com |
9f7c7cef1726910db585906e0c6bc38c69a04522 | dff47f2ac7671e074fec2f6f1590c8c994e1be27 | /1_map/PyGreentea/PyGreentea.py | efb564f538f3dcdd0a4e9deb6eb3b856a3c7b5d3 | [
"BSD-2-Clause"
] | permissive | VCG/parallel_unet | a4976bd23569389810b4075793c0394bdd976ed8 | 87f39a6f93992aaacb2796d134b57fdd7273b164 | refs/heads/master | 2021-01-17T23:07:53.103134 | 2017-06-09T19:42:04 | 2017-06-09T19:42:04 | 84,212,594 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 40,186 | py | import os, sys, inspect, gc
import h5py
import numpy as np
from scipy import io
import math
import threading
import png
from Crypto.Random.random import randint
import numpy.random
import pdb
# Determine where PyGreentea is
pygtpath = os.path.normpath(os.path.realpath(os.path.abspath(os.path.split(inspect.getfile(insp... | [
"felix.e.gonda@gmail.com"
] | felix.e.gonda@gmail.com |
4e09b2610a1de447484dfa0b2a454a2e60fbe606 | c1c7f9e400f788c296d9464117ba6cac553b03ca | /src/datasets/soilmoist.py | 4985c8c3541822a678276e354a53aac02b638597 | [
"MIT"
] | permissive | nasa/RHEAS | 1d8e0d6cb2df13713d458db07c0348fcf18eb9e1 | 27d0abcaeefd8760ce68e05e52905aea5f8f3a51 | refs/heads/master | 2023-08-03T23:05:47.535575 | 2023-08-01T16:55:13 | 2023-08-01T16:55:13 | 46,281,533 | 88 | 63 | MIT | 2023-08-01T16:55:15 | 2015-11-16T14:57:18 | Python | UTF-8 | Python | false | false | 4,223 | py | """Definition for abstract soil moisture class.
.. module:: soilmoist
:synopsis: Definition of the Soilmoist class
.. moduleauthor:: Kostas Andreadis <kandread@jpl.nasa.gov>
"""
import numpy as np
import dbio
import logging
class Soilmoist(object):
def __init__(self, uncert=None):
"""Initialize SM... | [
"kandread@jpl.nasa.gov"
] | kandread@jpl.nasa.gov |
c09e738a65a63a9205d71eecf0d10d4efcb5b816 | cd2aaf0097f2e244aa4a22c9da7133dd0e2f2fb8 | /Saylani/python-code-master/23July2017/hello/first.py | 3447c8c7a278396583b817b155ad18eece3784af | [] | no_license | EnggQasim/SSUET-2017-Module-I | 349ea6e9b0554fa8c55899622bf0ee97fd19b685 | cd41ab8e768616ca56ddaa1d7662283f653674f9 | refs/heads/master | 2020-03-25T10:36:38.330710 | 2018-09-30T13:17:38 | 2018-09-30T13:17:38 | 143,698,684 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | print("Hello New world")
name = "Mughal"
name = 'Mughal'
age = 45
email = "zeeshanhanif@gmail.com"
print(name)
name = 67
print(name)
name1 = "My father\"s name is M. Aslam"
print(name1)
| [
"m.qasim077@gmail.com"
] | m.qasim077@gmail.com |
5fb8b2e6dd69ef1453ce691638668749ee32b12b | 29e1133741b339c2e6c4c0385a103f68baa32a11 | /findata/gbif/gbif.py | 94ef7024bcdaf8ce800a3eefbe841ba0e9df5a59 | [] | no_license | Gscsd8527/AllProject | b406935dd1e969d1f45a62f870fb409f81ba4200 | 10b56c432b6f433e3a37967b7c717840e726765c | refs/heads/master | 2023-02-21T20:25:48.397668 | 2022-03-04T14:01:27 | 2022-03-04T14:01:27 | 199,461,253 | 13 | 6 | null | 2023-02-15T20:47:23 | 2019-07-29T13:45:25 | Python | UTF-8 | Python | false | false | 1,903 | py | import requests
from concurrent.futures import ThreadPoolExecutor, as_completed
import json
import pymongo
from loguru import logger
myclient = pymongo.MongoClient('mongodb://*********:27017/')
mydb = myclient['dataset'] # 数据库
mycol = mydb['gbif'] # 表
class Gbif:
def __init__(self):
self... | [
"tan_gscsd@163.com"
] | tan_gscsd@163.com |
b8732654492ceef372cc4e82ca927642071ce0f8 | 47ec91bedb4ca9d69bf288fd25484b08e013a8ac | /themylog/config/processors.py | ade5bc4eb60a7c781f37f1697dc4a98080629c66 | [] | no_license | themylogin/themylog | 23d1238866240d168cf3ce828bbb85d38276a226 | d4de99f08f066972a06c1463a1e2440a56513bfa | refs/heads/master | 2020-04-15T17:29:36.318428 | 2016-04-17T14:53:14 | 2016-04-17T14:53:14 | 14,795,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | # -*- coding=utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
from collections import namedtuple
import sys
from themylog.config.scripts import find_scripts
Processor = namedtuple("Processor", ["name", "process"])
def get_processors(config):
processors = []
directory = config.ge... | [
"themylogin@gmail.com"
] | themylogin@gmail.com |
e5f2f94778e5364a8c9c19af7062bf8a1f7f02e9 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/workspaceclient/tests/test_keys.py | 96b2015989f56a8230f5fa71a7c7b1f05fd50952 | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 2,895 | py | from contextlib import contextmanager
from ftw.builder import Builder
from ftw.builder import create
from opengever.testing import IntegrationTestCase
from opengever.workspaceclient.exceptions import ServiceKeyMissing
from opengever.workspaceclient.keys import key_registry
from plone.restapi.serializer.converters impor... | [
"e.schmutz@4teamwork.ch"
] | e.schmutz@4teamwork.ch |
cb8b5b0617c9db4aef66e16cb81ce5a3fcd33305 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_29358.py | 0321469737aa07d31d022e05273ebf1901e76801 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | # Python coveralls not testing "if name == __main__"
if __name__
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
eb28e0f54441e884f4107a7771de1bbcac4b2f24 | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/Simulation/Pythia/Unparticles/CP2UnparticlesPythia8fragments-2018PSWeights/UnparToGG_Spin2_du1p1_LambdaU-2000_pT70_M2000_TuneCP2_13TeV_pythia8_cfi.py | f5943fddccc2bb59b36b498dd9eadffdd636bb94 | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 1,586 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP2Settings_cfi import *
from Configuration.Generator.PSweightsPythia.PythiaPSweightsSettings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxE... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
dc7b67abce3d12e28bf013bb0871e37d84a241c6 | 40eb57784dc62179eafcf21f796a7d0c43cf55e5 | /calliope/constraints/planning.py | 39e9ce39f71b7a76af050a81764360e4c2893cc3 | [
"Apache-2.0"
] | permissive | sjpfenninger/calliope | 61b202f8519076a95ee8bad3d0d2215043e1b497 | a4e49c3b7d37f908bafc84543510eec0b4cf5d9f | refs/heads/master | 2020-06-11T01:01:36.709420 | 2016-12-06T14:47:20 | 2016-12-06T14:47:20 | 75,827,649 | 1 | 1 | null | 2016-12-07T11:01:51 | 2016-12-07T11:01:49 | Python | UTF-8 | Python | false | false | 1,944 | py | """
Copyright (C) 2013-2016 Stefan Pfenninger.
Licensed under the Apache 2.0 License (see LICENSE file).
planning.py
~~~~~~~~~~~
Planning constraints.
"""
import numpy as np
import pyomo.core as po
def node_constraints_build_total(model):
"""
"""
m = model.m
# Constraint rules
def c_e_cap_to... | [
"stefan@pfenninger.org"
] | stefan@pfenninger.org |
a727ae60692c2636d6abd360bd56330c24e06fee | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/hr_maintenance/models/res_users.py | c97a2bb60b15c15017414adf202109752bb76078 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 1,195 | py | from odoo import api, models, fields
class Users(models.Model):
_inherit = 'res.users'
equipment_ids = fields.One2many('maintenance.equipment', 'owner_user_id', string="Managed Equipments")
equipment_count = fields.Integer(related='employee_id.equipment_count', string="Assigned Equipments")
def __in... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
8aa5ecca68340cd50012898952cf72b3f349e83d | 4c5608f20fa2580774d734d94198dd10648e4339 | /src/vpp-api/vapi/vapi_json_parser.py | a9d2c8186bc30c2e9985c89375e1e97426ff3a7d | [
"Apache-2.0"
] | permissive | mojtaba-eshghie/VPP-In-Situ-IOAM | 3d1c3d01752a7934d2f060326674280e0bd93413 | efebd91195eb1b0d98a4a1f5efd962ae79c77be6 | refs/heads/master | 2022-12-10T13:37:04.644952 | 2020-05-29T11:42:36 | 2020-05-29T11:42:36 | 194,249,816 | 2 | 0 | Apache-2.0 | 2022-12-08T05:17:31 | 2019-06-28T09:50:05 | C | UTF-8 | Python | false | false | 18,764 | py | #!/usr/bin/env python2
import json
class ParseError (Exception):
pass
magic_prefix = "vl_api_"
magic_suffix = "_t"
def remove_magic(what):
if what.startswith(magic_prefix) and what.endswith(magic_suffix):
return what[len(magic_prefix): - len(magic_suffix)]
return what
class Field(object):
... | [
"mojtaba.eshghi@ut.ac.ir"
] | mojtaba.eshghi@ut.ac.ir |
ee44bd9403d965734f8cccd64c37a5995b76953c | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/89d09bae21e22374af7fcaf39c189233621e7ed2-<main>-fix.py | fadbbe0da4b2f852c816a0aebf9ae4773b9e8aa0 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,267 | py |
def main():
argument_spec = ec2_argument_spec()
argument_spec.update(dict(name=dict(), group_id=dict(), description=dict(), vpc_id=dict(), rules=dict(type='list'), rules_egress=dict(type='list'), state=dict(default='present', type='str', choices=['present', 'absent']), purge_rules=dict(default=True, required=... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
caaf5af5646fa7468387887b3bcc943ccfb9293f | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/FrontCache/FPythonCode/FC_TCOLL_01_ATS_48.py | cc9794df7b6147718d9bfd202883a84d9f122953 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,150 | py |
'''----------------------------------------------------------------------------------------------------------
MODULE : FC_TCOLL_01_ATS_48
PROJECT : FX onto Front Arena
PURPOSE : This module is the entry point for the Trade Collection ATSs. These ATSs w... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
2de6c9501b1b8560c72788d40905ffe4818ba046 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /5_map/构造O(1)复杂度数组.py | 4022012734ec37223659443e2deaa1ed6ec62b0f | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # 设计一个特殊的数组,要求该数据结构以下三种操作的时间复杂度均为O(1)
# 1. 查询数组某个位置的元素
# 2. 将数组某个位置的元素修改为指定值
# 3. 将数组所有元素修改为指定值
from collections import defaultdict
class SpecialArray:
__slots__ = "_data"
def __init__(self) -> None:
self._data = defaultdict(int)
def get(self, index: int) -> int:
return... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
d6f0dd5c587a5205dc3e3b19517b90443f991d4e | 97e349765284a1239580f4ae6943f597797fdc0d | /dingweitest/test1.py | 88b98797ba89775967126c4b52b4988562f63047 | [] | no_license | chenhanfang/test2 | 716aa9b1f875a6c88bfc6fb45ddc9879441c3c34 | 5d9d44086815bdf514636a1fc14bcd2c1f4284a5 | refs/heads/master | 2021-01-20T14:22:51.885745 | 2017-05-09T01:59:34 | 2017-05-09T01:59:34 | 90,597,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | #coding=utf-8
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains#######鼠标事件的类
import time
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
driver=webdriver.Remote(desired_capabilities=DesiredCapabilities.CHROME)
driver.get('http://www.baidu.com... | [
"chenhanfang@zhixunkeji.cn"
] | chenhanfang@zhixunkeji.cn |
6f66ef247d249d472ab1dc47b7de6f50ed703bd3 | bfaa8a34f0d954fd91d57e101556aab01099d0ea | /beary/__init__.py | 97da988c56cb1c2f294b7bd6ea5be11500110eda | [] | no_license | vtmer/bearychat | cf9167385c4451c45c9ea2caffd25298ec950855 | 8223151d74a0f859274e60032b1dfe8be3cd7db2 | refs/heads/master | 2016-09-05T16:09:35.369036 | 2015-06-29T08:05:42 | 2015-06-29T08:05:42 | 33,439,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | # coding: utf-8
'''
beary
~~~~~
vtmer 里面的熊孩子 ʅ(´◔౪◔)ʃ
'''
| [
"bcxxxxxx@gmail.com"
] | bcxxxxxx@gmail.com |
914fa86716ed865bb5eabf6824fd0f4239243ca5 | 163c66e58f04268c884335ed66461d5ddf513280 | /hw2/quicksort.py | 9d115b440faadc402a3c34e630c76fdcad1375f1 | [] | no_license | pz325/Coursera_ADA | 4ca0d8273c0571b45364b951d52a5d06cbdc652c | b968dd6b60f73d1ebe34195ddfa7fc39df3726cd | refs/heads/master | 2016-09-05T22:16:13.865655 | 2014-11-18T21:27:54 | 2014-11-18T21:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | def chooseFirstElementAsPivot(A, l, r):
return A[l]
def chooseLastElementAsPivot(A, l, r):
tmp = A[l]
A[l] = A[r]
A[r] = tmp
return A[l]
def chooseMedianOfThreeAsPivot(A, l, r):
if r - l == 1:
return chooseFirstElementAsPivot(A, l, r)
mid = (r - l) / 2 + l
# print(l, mid, r)
... | [
"sg71.cherub@gmail.com"
] | sg71.cherub@gmail.com |
9b1aec656d50ff842d5761e6a750df7afab50cad | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert-text-classification_for_PyTorch/transformers/tests/bartpho/test_tokenization_bartpho.py | 3e35ad15c1ee543473709c7f66f9c1e22cda20ae | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,656 | py | # coding=utf-8
# Copyright 2021 HuggingFace Inc. team.
# 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... | [
"dongwenbo6@huawei.com"
] | dongwenbo6@huawei.com |
75869a80c9112aec95c89f8cafe5d4bc41012d64 | 74b7b062b4a7b759845adc2121fa8530d55aa452 | /record_notebook_py/nicks_dataset.py | cde19e80bb298b7a9418d4931d6c7bfcd03b71f4 | [] | no_license | drschwenk/tableparse_notebooks | a817dca6bde0e4e41078f76bf756c087b49e8ea8 | 07f5daa760c5e01349fba5a360bd4aa4b6d0956c | refs/heads/master | 2021-01-22T06:18:56.168313 | 2017-06-22T22:32:22 | 2017-06-22T22:32:22 | 92,539,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,543 | py | # -*- coding: utf-8 -*-
# <nbformat>4</nbformat>
# <markdowncell>
# # Table of Contents
# * [Alternate tables](#Alternate-tables)
# * [pairing images and annotations](#pairing-images-and-annotations)
# * [sampling images](#sampling-images)
# * [Regents tables](#Regents-tables)
# * [Hough lines experiment](#Hough-li... | [
"schwgit2@gmail.com"
] | schwgit2@gmail.com |
d6667c371f5635050e24804b3548edbb78015a8e | d2e69d4d3d1e11a87f5a377e4a423422fe0a7058 | /FullStack/12/celery_stuff/periodic_task.py | 5d5dcb1b71af4eff0549304787a59963e751cecf | [] | no_license | oJacker/_python | 6f30dd4a60c1593d27c00ac485163fc0ba77dd8c | 8086d0cd78e156abfff9819a56384149dd431c56 | refs/heads/master | 2021-05-06T03:13:29.167281 | 2018-02-01T09:41:42 | 2018-02-01T09:41:42 | 114,827,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from celery import Celery
from celery.schedules import crontab
app = Celery()
@app.on_after_configure.connect
def setup_periodic_tasks(sender,**kwargs):
# Calls test('hello) every 10 seconds
sender.add_periodic_task(10.0, test.s('hello'),name='add every 10')
# Calls test('world') every 30 seconds
se... | [
"623657285@qq.com"
] | 623657285@qq.com |
fd48de6ef94c04e1dc45c14888a710d6d932a6a8 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/DATASMART-MIB.py | 9e7acdf50065bc5ffabe955bbdafb82db30439ad | [
"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 | 105,595 | py | #
# PySNMP MIB module DATASMART-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DATASMART-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:21:38 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
97f136b14681008e20c099f12631a94a0fc21e33 | b7203262280b8fabcf5573ea494e8e2408d8d2b9 | /turtle/star.py | 9282c3b8c1bd90f12603fc067e860a8e5d21d5fd | [
"Apache-2.0"
] | permissive | MDGSF/PythonPractice | 1c11994a047ecb01c74b0cf0b320b6ffc570209d | 77e81d7c965c5de1629df223cb27dd541d128eb1 | refs/heads/master | 2021-06-16T13:49:00.310063 | 2021-04-15T11:32:24 | 2021-04-15T11:32:24 | 177,229,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import turtle as t
def main():
t.color('red', 'yellow')
t.begin_fill()
while True:
t.forward(200)
t.left(170)
if abs(t.pos()) < 1:
break
t.end_fill()
t.done()
if __name__ == "__main__":
main()
| [
"1342042894@qq.com"
] | 1342042894@qq.com |
c351193f7c13944665260375b74e52d614f9e126 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-3-3.py | b87e6657a0667e04224d685b68de4abfd4acfadf | [
"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 | 415 | py | from output.models.nist_data.list_pkg.double.schema_instance.nistschema_sv_iv_list_double_max_length_3_xsd.nistschema_sv_iv_list_double_max_length_3 import NistschemaSvIvListDoubleMaxLength3
obj = NistschemaSvIvListDoubleMaxLength3(
value=[
6.828163737338829e+162,
4.3832452374445357e+167,
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
5b89597467106b28a80cea60757167381bfd8edc | 2aee45d23b47c6adba9eafc5a84d606a021f9300 | /web_dashboard/models/models.py | fec9ca50de1abcd2af54f1f4e7a897ee9cb90ce6 | [] | no_license | charles-123456/Primoris-System | 23b183460ea79bfa8d896556aa35d62460154567 | 0880b8266eedfd0016a3b365c9939c34ad301155 | refs/heads/main | 2023-08-21T06:24:42.840026 | 2021-10-25T06:10:48 | 2021-10-25T06:10:48 | 385,922,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # -*- coding: utf-8 -*-
from odoo import models, api
from lxml.builder import E
class BaseModel(models.AbstractModel):
_inherit = 'base'
@api.model
def _get_default_dashboard_view(self):
""" Generates a default dashboard view containing default sub graph and
pivot views.
:returns... | [
"charlesit333@gmail.com"
] | charlesit333@gmail.com |
1b4899ddb490787b92f042f6d5e21fcde84aa21a | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/1935d5ba538766606877fea3170e8be386a9677d1874a1cd4f21bb4b15b507a4/_cython_0_29_16.py | 134551b94817f810b1dd85bf60fdae6b79d3c44b | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,282 | py | # encoding: utf-8
# module _cython_0_29_16
# from C:\Users\Doly\Anaconda3\lib\site-packages\scipy\integrate\_test_multivariate.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
__loader__ = None
__spec__ = None
# no functions
# classes
class cython_function_or_method(obje... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
523d863369652fae4e71eb3c3f18e20eae041782 | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/wagtail_hooks_20201030120504.py | b3b8766746430b42c76ff1e9a244cfa6de30ca5e | [] | 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 | 116 | py | """ Kategoria zostanie dodana w pasku bocznym u admina"""
import ModelAdmin, decorator
class MenuAdmin(ModelAdmin) | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.