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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0b2e8faa338dca0df9b00fb60c53f05f3eda904 | 0fd974aa23da92b81d7a7a769d24563b49020023 | /venom/rpc/resolver.py | 1e6f479789501e06961c82e3d7a959c21179ca7e | [
"MIT"
] | permissive | lyschoening/venom | 188b21c14092bfb39eed5b4911c64425e4497818 | 167967e7a8078a7227dc50dbc40df38e5dd6f520 | refs/heads/master | 2020-04-18T07:27:03.160796 | 2018-01-30T10:31:26 | 2018-01-30T10:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | from abc import abstractmethod, ABCMeta
from typing import TypeVar, Generic, Type
T = TypeVar('_T')
class Resolver(Generic[T], metaclass=ABCMeta):
python: Type[T] = None
async def __call__(self,
service: 'venom.rpc.service.Service',
request: 'venom.message.Mess... | [
"lars@lyschoening.de"
] | lars@lyschoening.de |
e1bc9fe5632a807432c86b9ec2bf5a4116df296b | e7c2b9ef846f4159975b024ec2f9a535ce19de40 | /setup.py | 393ce848df845539658582c039428d375177ddd3 | [
"MIT"
] | permissive | kellychenma/db_tools | c7f8af420d472d0d412d4bf9d1ec74f99a67d3d1 | 23d971af485a90176cfbfd2b2ed2d1f7c5b28f9b | refs/heads/master | 2021-09-10T08:17:24.388278 | 2018-01-09T18:05:41 | 2018-01-09T18:05:41 | 116,858,439 | 0 | 0 | null | 2018-01-09T19:08:36 | 2018-01-09T19:08:36 | null | UTF-8 | Python | false | false | 2,292 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
import inspect
from pathlib import Path
HOME_DIR = Path(inspect.getfile(inspect.currentframe())).parent
def filter_req_paths(paths, func):
"""Return list of filtered libs."""
if not isinstance(... | [
"w.gus.dunn@gmail.com"
] | w.gus.dunn@gmail.com |
8b7d725bc372f8421c58f3057b859423be635101 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/common/battle_results/battle_results_common.py | 6059bd07ece39d858602b865fd355b2a3aacdee1 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 28,386 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/battle_results/battle_results_common.py
from battle_results_constants import BATTLE_RESULT_ENTRY_TYPE as ENTRY_TYPE
from constants import FLAG_ACTION
from DictPackers import DictPacker, MergeDictPacker, SimpleDictPacker, DeltaPacker... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
f0cd85159b59004ec11ee9273cf86f540fcbbe2b | 72a146dad10c3330548f175643822e6cc2e2ccba | /ui/gfx/gfx.gyp | 5b4410a16749b8f0b59e60148ab044098762e9f5 | [
"BSD-3-Clause"
] | permissive | daotianya/browser-android-tabs | bb6772394c2138e2f3859a83ec6e0860d01a6161 | 44e83a97eb1c7775944a04144e161d99cbb7de5b | refs/heads/master | 2020-06-10T18:07:58.392087 | 2016-12-07T15:37:13 | 2016-12-07T15:37:13 | 75,914,703 | 1 | 0 | null | 2016-12-08T07:37:51 | 2016-12-08T07:37:51 | null | UTF-8 | Python | false | false | 18,299 | gyp | # Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'gfx_geometry',
'type': '<(component)',
'dependencie... | [
"serg.zhukovsky@gmail.com"
] | serg.zhukovsky@gmail.com |
a3b2d408518bb11b90aaba063943fb0caa56731f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02239/s374795899.py | eb3b7249256f6b5886a4bce9720035bb327680f5 | [] | 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 | 594 | py | #=============================================================================
# Breadth First Search
#=============================================================================
import queue
N=int(input())
Graph=[[] for _ in range(N+1)]
dist=[-1 for _ in range(N+1)]
for i in range(1,N+1):
Graph[i]=list(map(int,... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0edc58fbf257055980a8afbc37b213fd0c436e90 | a8d55214bc9ff1f113f52dec0b26bbf6692e239b | /06/6.3/property_test3.py | 12160271c4b30e13f794a83a0a39da718249f8e4 | [] | no_license | wmm0165/crazy_python | e61ea186cd9120500b3235aed9afc62be5dc49bc | 1266cc8ae1d3c3b91fe17b298de0686d1d93bb24 | refs/heads/master | 2022-03-24T03:31:57.205022 | 2019-12-23T10:13:22 | 2019-12-23T10:13:22 | 193,018,528 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # -*- coding: utf-8 -*-
# @Time : 2019/8/19 14:14
# @Author : wangmengmeng
# 使用@property修饰方法,使之成为属性
class Cell:
# 使用@property修饰方法,相当于为该属性设置getter方法
@property
def state(self):
return self._state
# 为state属性设置setter方法
@state.setter
def state(self, value):
if 'alive' in value.lower()... | [
"wmm_0165@163.com"
] | wmm_0165@163.com |
7172d06518cd011353d2ff89b60b6c63ebdf4531 | 14ca66a826cec8172f880c388375b3b55483cf37 | /rplugin/python3/deoplete/source/deoppet.py | c5b08d030cb9d9cd4798763bab3b3703fadf8441 | [
"MIT"
] | permissive | the-lazy-learner/deoppet.nvim | 744abd06adb789c9b21035fdf552ac16bcca85df | 16c6f272c694fd12fc288fc98d4b474e26aa1485 | refs/heads/master | 2021-07-03T22:43:04.506152 | 2017-09-24T08:55:16 | 2017-09-24T08:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | #=============================================================================
# FILE: deoppet.py
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
# License: MIT license
#=============================================================================
from .base import Base
from deoppet.parser import Parser
from d... | [
"Shougo.Matsu@gmail.com"
] | Shougo.Matsu@gmail.com |
28727ec723317e30d74083841007539fff22cef1 | e444f89f87b90f7946e3162e2c986c9d7f75b9b4 | /src/annotation_pipeline.py | 80122696be8453f60256d856e49281e846eaf4c6 | [] | no_license | yuzhenpeng/comparativeAnnotator | f2a7bb846f1427f09cfa6429207ec483f9ada072 | 9062c58bb7d625b2b50eb07b23b01af6bf73e5e3 | refs/heads/master | 2020-09-11T21:52:40.544833 | 2016-07-26T20:28:10 | 2016-07-26T20:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,895 | py | """
This is the main driver script for comparativeAnnotator in transMap mode.
"""
import argparse
import os
from jobTree.scriptTree.target import Target
from jobTree.scriptTree.stack import Stack
import lib.sql_lib as sql_lib
import lib.seq_lib as seq_lib
from lib.general_lib import classes_in_module, mkdir_p
impor... | [
"ian.t.fiddes@gmail.com"
] | ian.t.fiddes@gmail.com |
4dd1389420bf38c36d3b56adf825aec0a6fbab0c | 77a87e7b15d58b2d23bfdd9ed78b637bebfcc6eb | /.closet/jython.configurator.efr32.multiPhy/5.2.3.201904231805-1264/host_py_rm_studio_internal/host_py_rm_studio_internal_efr32xg12xfull/revA0/AGC.py | bfe98660a031dcd7fce3e6a4596c69ffe731abd3 | [] | no_license | lenloe1/other-stuff | b06331a4f247f06066579472b296f1ae66f6bdaf | 897069e0464b19f81b14488d463710c81bb7fda4 | refs/heads/master | 2021-05-19T13:41:04.509601 | 2020-03-31T20:52:38 | 2020-03-31T20:52:38 | 251,728,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,156 | py |
# -*- coding: utf-8 -*-
__all__ = [ 'RM_Peripheral_AGC' ]
from .static import Base_RM_Peripheral
from .AGC_register import *
class RM_Peripheral_AGC(Base_RM_Peripheral):
def __init__(self, rmio, label):
self.__dict__['zz_frozen'] = False
super(RM_Peripheral_AGC, self).__init__(rmio, label,
... | [
"31710001+lenloe1@users.noreply.github.com"
] | 31710001+lenloe1@users.noreply.github.com |
22cf14559ea6a0510b53b1c811cb66c2c1c09e22 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/customerinsights/get_relationship_link.py | 1513ff29f5134b2bcd8fef7adb41bc356129811a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 9,544 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
ba1cfe34cdd0c72ad9925c1efba1ce9fe9481338 | 47434a10c598d2ea0e5faed4df29c755242c662e | /CodeForces/Team.py | 98ef4fa008166998218eff68a571fbbd8c8334b1 | [] | no_license | ShakilAhmmed/Problem_Solve | 566b5a5370723932a50cf34c97ac9f229df8b511 | 6864958ee892ba0aa90f6788fc7b7c16baf41716 | refs/heads/master | 2021-06-22T19:41:07.624863 | 2021-03-07T16:10:25 | 2021-03-07T16:10:25 | 200,253,202 | 2 | 0 | null | 2020-06-16T19:52:43 | 2019-08-02T14:56:30 | Python | UTF-8 | Python | false | false | 201 | py | n = int(input())
count = 0
for _ in range(n):
number = list(map(int, input().split()))
one_count = number.count(1)
zero_count = number.count(0)
if one_count > zero_count:
count += 1
print(count)
| [
"shakilfci461@gmail.com"
] | shakilfci461@gmail.com |
2b7199701eac80d3de6850b27032cfc6cc318aaa | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/billing/budgets/v1beta1/billing-budgets-v1beta1-py/setup.py | cc3c039320dec24a399055373fd5bdd28b80a43c | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
dddd3601a393ce447cf447e14d2ad14a17af28b2 | 45ba55b4fbdaf1657fde92beaeba4f173265afcd | /tests/schema/test_lazy/type_a.py | 65617b5f3b8844af612e367deb7490b69d790898 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | strawberry-graphql/strawberry | af96afd4edd1788c59e150597a12501fbc7bf444 | 6d86d1c08c1244e00535840d9d87925431bc6a1c | refs/heads/main | 2023-08-30T03:34:12.929874 | 2023-08-24T12:01:09 | 2023-08-24T12:01:09 | 162,690,887 | 3,408 | 529 | MIT | 2023-09-14T21:49:44 | 2018-12-21T08:56:55 | Python | UTF-8 | Python | false | false | 552 | py | from typing import TYPE_CHECKING, List, Optional
from typing_extensions import Annotated
import strawberry
if TYPE_CHECKING:
from .type_b import TypeB
TypeB_rel = TypeB
TypeB_abs = TypeB
else:
TypeB_rel = Annotated["TypeB", strawberry.lazy(".type_b")]
TypeB_abs = Annotated["TypeB", strawberry.laz... | [
"noreply@github.com"
] | strawberry-graphql.noreply@github.com |
bcfa114770664cf17a450ca28a1a571355fb71cb | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/util/table/mapper/AddressTableToAddressTableRowMapper.pyi | 26072a368ad95ac4a06849d98672f2b4d0917da2 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | pyi | import docking.widgets.table
import ghidra.app.plugin.core.disassembler
import ghidra.framework.plugintool
import ghidra.program.model.address
import ghidra.program.model.listing
import ghidra.util.table
import java.lang
class AddressTableToAddressTableRowMapper(ghidra.util.table.ProgramLocationTableRowMapper):
... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
c5ac32728ff60a79d336f27f03da40af850a984e | 311dd683433891c6552e6bcbc383bb438ae0e7a9 | /source/dataeditors.py | d7892016bd057986896058b0f628806fa810f2df | [] | no_license | HaBu108/TreeLine | 4d6c489035e666b51ae1734d78f157b8777ce718 | ce444d691c9c2ed71ebbbb800890ac30a0255ca3 | refs/heads/master | 2022-05-30T20:09:48.619012 | 2020-05-03T18:35:47 | 2020-05-03T18:35:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105,975 | py | #!/usr/bin/env python3
#******************************************************************************
# dataeditors.py, provides classes for data editors in the data edit view
#
# TreeLine, an information storage program
# Copyright (C) 2019, Douglas W. Bell
#
# This is free software; you can redistribute it and/or m... | [
"doug101@bellz.org"
] | doug101@bellz.org |
05f20377365afcf412ba6b25092ca5d4eeca0364 | 5ddacf6285da77e8b6bc53cde3379471c631e827 | /tests/databases/constructed_molecule/fixtures/constructed_molecule_mongo_db.py | c90e86673bda41cefd2525d316916ea0110c877d | [
"MIT"
] | permissive | sailfish009/stk | 19db3d50742cd822bf9c06711103bd7e1954a79f | ebf876d5207032b76b9b10f7ca62060cc12c61f0 | refs/heads/master | 2022-11-09T20:59:03.222560 | 2020-06-30T12:37:02 | 2020-06-30T12:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,133 | py | import pytest
import stk
import rdkit.Chem.AllChem as rdkit
from ...utilities import MockMongoClient
from ..case_data import CaseData
@pytest.fixture(
params=(
CaseData(
database=stk.ConstructedMoleculeMongoDb(
mongo_client=MockMongoClient(),
lru_cache_size=0,
... | [
"noreply@github.com"
] | sailfish009.noreply@github.com |
fdcb707c05e376905be9ed93946a5d310d84baee | 72cdc45a345fe47c525468ff82ef8ce845d9f800 | /Python/django_ajax/django_ajax_demo/app/models.py | 43550226b816520409ecbb4bfcd875aa2a596345 | [] | no_license | bopopescu/Coding-Dojo-assignments | 474242e14371e729b5948602ffc0a9328f1e43cb | 0598d7162b37d9472c6f1b82acc51d625ac871ca | refs/heads/master | 2022-11-23T18:55:36.393073 | 2018-07-20T07:43:56 | 2018-07-20T07:43:56 | 281,670,452 | 0 | 0 | null | 2020-07-22T12:24:30 | 2020-07-22T12:24:30 | null | UTF-8 | Python | false | false | 623 | py | from django.db import models
# Create your models here.
class UserManger(models.Manager):
def create_user(self,post_data):
user = self.create(
first_name=post_data['first_name'],
last_name=post_data['last_name'],
email=post_data['email']
)
return user
... | [
"gringojaimes20@gmail.com"
] | gringojaimes20@gmail.com |
f417264a5d0f326fc886d8946aa423c41d6ca43d | b391498124fdcaef989bf3ebafffb0df43e3e07f | /pygccxml-0.8.2/pygccxml/declarations/__init__.py | d20bc68c942146a98b018dace9d923492136b659 | [
"BSL-1.0"
] | permissive | glehmann/WrapITK-unstable | 9a0dd9d387ecd59c9439465dcc32cca552e14576 | 402fc668f1f3c3dd57d0751a61efa3b1625d238b | refs/heads/master | 2021-01-10T22:02:04.715926 | 2008-05-25T16:53:07 | 2008-05-25T16:53:07 | 3,272,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,826 | py | # Copyright 2004 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
"""
contains classes that describe different C++ declarations
"""
from declaration import location_t
from declaration imp... | [
"gaetan.lehmann@jouy.inra.fr"
] | gaetan.lehmann@jouy.inra.fr |
cc0373e849553b1f4086a6c71139e59ff3612024 | 404bc40862b4d1a7a0b3af8f90a0352f5916f389 | /marslab/bandset/__init__.py | b16b94948a38ba8a537a7c590afab03c6a35d8cc | [
"BSD-3-Clause"
] | permissive | MillionConcepts/marslab | 4039d66f9acabb9257b52a430b9a4e6f929bba5d | 8fec9765c5fc2af131535dde5bcebd9feb3eaddb | refs/heads/main | 2023-07-05T23:18:04.617856 | 2023-05-30T20:42:22 | 2023-05-30T20:42:22 | 364,688,103 | 4 | 2 | BSD-3-Clause | 2022-06-26T02:54:34 | 2021-05-05T19:42:26 | Python | UTF-8 | Python | false | false | 41 | py | from .bandset import BandSet, ImageBands
| [
"mstclair@millionconcepts.com"
] | mstclair@millionconcepts.com |
fc82b5c45efce7854e15cb4d046d461ecc5666cf | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/lobby/bootcamp/__init__.py | 38949d143389770292fb8708159801207ba40edc | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 129 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/lobby/bootcamp/__init__.py
pass
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
a58c9664c1090042fa0befbe74e0e75dbfc6648b | 211196c7d7f649a5295cbbad97003422a7049fc2 | /iterateOverMessages.py | 57d3360be2df99aa52c28e161cd320a89e677cbb | [] | no_license | AzisK/Jinbe-Music | 38df261bfd334e1213dc6d96d393493a4da9517e | 44761ebb8fe196c37fa10e83e2e4c873e70a5def | refs/heads/master | 2021-01-20T07:05:29.061897 | 2017-10-05T06:11:47 | 2017-10-05T06:11:47 | 89,957,496 | 1 | 0 | null | 2017-10-05T06:11:48 | 2017-05-01T19:53:02 | Python | UTF-8 | Python | false | false | 129 | py | import mido
from mido import MidiFile
port = mido.open_output()
for msg in MidiFile('1.mid').play():
port.send(msg)
| [
"="
] | = |
e2cc4ee0baa6c4627c2423976a2c8e20afbbbdff | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/75/usersdata/161/36800/submittedfiles/maiormenor.py | f9360f4e08c5cf3b0813526c834f4c0b01124a8d | [] | 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 | 632 | py | # -*- coding: utf-8 -*-
import math
a = int(input('Digite o número 1: '))
b = int(input('Digite o número 2: '))
c = int(input('Digite o número 3: '))
d = int(input('Digite o número 4: '))
e = int(input('Digite o número 5: '))
i=0
maior=0
menor=0
for i in range(5):
if a>maior:
a=maior
elif b>maior:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
18bf7102fedf76648c340210ef8685e944c4585d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_305/ch81_2019_06_04_13_12_29_235102.py | b71526d31810aaf20ab6e06453268454b3963ec7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def interseccao_valores(dic1, dic2):
lista = []
for v in dic1.values():
v.append(lista)
for j in dic2.values():
j.append(lista)
return lista
| [
"you@example.com"
] | you@example.com |
73363dfdd60b34c13e77255bab8d474bf348fb2e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03387/s123688720.py | 032de65d86c10d90a82ee7446afbbcc91437a494 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import sys
a=list(map(int,input().split()))
a.sort()
ans=0
while True:
if a[0]==a[1]==a[2]:
print(ans)
sys.exit()
if a[0]<a[1]:
a[0]+=2
ans+=1
a.sort()
if a[0]==a[1]==a[2]:
print(ans)
sys.exit()
if a[0]==a[1]:
a[0]+=1
a[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6d166148963bb2dfef60da93fe81d806e80ba065 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /iot_write_f/audit-mitigation-actions-task_start.py | ccd58e9e6ce9fcde6370e203d0655d253cc36d40 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
1aeb26bdbe0be227bf7a86266767f07914dd78c8 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/d1186c9d2fdc62fe1491d0820af12106d16a1fb6-<customize>-fix.py | 4b77f7b3e1050c9ad0d1aaf9347f097791c87248 | [] | 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 | 3,333 | py |
def customize(self, dist=None):
'Customize Fortran compiler.\n\n This method gets Fortran compiler specific information from\n (i) class definition, (ii) environment, (iii) distutils config\n files, and (iv) command line (later overrides earlier).\n\n This method should be always calle... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
549d47061f0ed2277297102fa4fd01ff4432bf94 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /07_Machine_Learning_Mastery_with_Python/07/pca.py | 2437e80daf68829e9200d38c5a0b646093a6a47b | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # Feature Extraction with PCA
from pandas import read_csv
from sklearn.decomposition import PCA
# load data
filename = 'pima-indians-diabetes.data.csv'
names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class']
dataframe = read_csv(filename, names=names)
array = dataframe.values
X = array[:, 0:8]... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
213431d95c159d4c1d5374f463d5a0b86a85ee8f | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_test/_internal/sanity/yamllint.py | 85a576d02d248df24fa0e8e1fcba6176467cd312 | [
"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 | 3,780 | py | """Sanity test using yamllint."""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import os
from .. import types as t
from ..import ansible_util
from ..sanity import (
SanitySingleVersion,
SanityMessage,
SanityFailure,
SanitySkipped,
SanitySucc... | [
"sifang@cisco.com"
] | sifang@cisco.com |
5166ace3467b2a5e6d75c7af8ef4b3a1febc640f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch31_2020_03_25_10_56_13_081031.py | a097597aaf1f8510a42ff7f07a2c25674a655745 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | y=3
def eh_primo (x):
if x%2==0:
return False
while y<x:
if x%y==0:
y=y+2
return False
else:
return True
| [
"you@example.com"
] | you@example.com |
de1db29362fe6f49c59b95f74cea99eb115bf71a | e37ee26bd37e86277aa98db7a9938e7d043c1146 | /setup.py | 386175f2b9107f26e003609e3390ad4e1d9fa916 | [
"BSD-2-Clause"
] | permissive | sjkingo/ticketus | f20e1e65a6e57706becb50371905c6d1f385bf71 | 90f2781af9418e9e2c6470ca50c9a6af9ce098ff | refs/heads/master | 2021-05-16T02:58:02.070421 | 2018-03-05T00:36:24 | 2018-03-05T00:36:24 | 28,283,750 | 3 | 3 | BSD-2-Clause | 2018-03-05T00:34:57 | 2014-12-21T00:38:26 | Python | UTF-8 | Python | false | false | 1,574 | py | from setuptools import find_packages, setup
from ticketus import __version__ as version
setup(
name='ticketus',
version=version,
license='BSD',
author='Sam Kingston',
author_email='sam@sjkwi.com.au',
description='Ticketus is a simple, no-frills ticketing system for helpdesks.',
url='https:... | [
"sam@sjkwi.com.au"
] | sam@sjkwi.com.au |
bff50f96ee9ee9794dd94abc1b4c5dfc27f57ea1 | 747755833862b8e9d0f58ebc62879d6ef47c23c8 | /python-master (5)/python-master/socket/udp/server.py | 7d67bbdee63a778498fcb2254818529dc569f7bc | [] | no_license | tangsong41/stu_py | 98a06730dbca6e158cf81c18d98fe1317c1ae512 | d41507cd8dd9e8a54084872dfa15c36da443c02b | refs/heads/master | 2022-12-11T23:53:57.530946 | 2019-01-15T18:29:19 | 2019-01-15T18:29:19 | 163,953,100 | 3 | 0 | null | 2022-12-07T23:24:01 | 2019-01-03T09:41:29 | Jupyter Notebook | UTF-8 | Python | false | false | 351 | py | # encoding: utf-8
__author__ = 'zhanghe'
import socket
port = 8081
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# 从指定的端口,从任何发送者,接收UDP数据
s.bind(('', port))
print('正在等待接入...')
while True:
# 接收一个数据
data, address = s.recvfrom(1024)
print('Received:', data, 'from', address) | [
"369223985@qq.com"
] | 369223985@qq.com |
78c888a824bc7bea569faee6edd8aee03f11b48b | 2fb0af0a30e3133ef4c5e649acd3f9911430062c | /src/toontown/shtiker/ShardPage.py | ee82d3f7f423effb7009bcefc5e96fd482075233 | [] | no_license | Teku16/Toontown-Crystal-Master | 4c01c0515f34a0e133441d2d1e9f9156ac267696 | 77a9345d52caa350ee0b1c7ad2b7461a3d6ed830 | refs/heads/master | 2020-05-20T06:02:58.106504 | 2015-07-25T07:23:59 | 2015-07-25T07:23:59 | 41,053,558 | 0 | 1 | null | 2015-08-19T18:51:11 | 2015-08-19T18:51:11 | null | UTF-8 | Python | false | false | 28,317 | py | from direct.directnotify import DirectNotifyGlobal
from direct.gui.DirectGui import *
from direct.task.Task import Task
from pandac.PandaModules import *
from toontown.distributed import ToontownDistrictStats
from toontown.hood import ZoneUtil
from toontown.shtiker import ShtikerPage
from toontown.coghq import CogDisgu... | [
"vincentandrea15k@gmail.com"
] | vincentandrea15k@gmail.com |
8f8eeb6fa9b019c75aec80c7fb15484d636c4535 | 179577ecdd7fda84ad970b3aad573a575fef56bc | /aulas/aula12.py | b78a3b884765a9cbb0cfe7ed5083bea5c718d61a | [] | no_license | Elvis-Lopes/Curso-em-video-Python | 6c12fa17a5c38c722a7c8e9677f6d9596bc5653c | 65f093975af9bd59c8aaa37606ba648b7ba1e1c4 | refs/heads/master | 2021-02-11T12:15:13.580496 | 2020-05-05T21:55:06 | 2020-05-05T21:55:06 | 244,490,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # exemplos de estrutura condicional aninhada
nome = str(input('Qual é o seu nome: ')).strip().title()
if nome == 'Elvis':
print('Que nome bonito!')
elif nome == 'Pedro' or nome == 'João' or nome =='Maria':
print('Seu nome é bem popular no Brasil')
else:
print('Seu nome é bem normal.')
print(f'Tenha um bom d... | [
"elvislopes1996@hotmail.com"
] | elvislopes1996@hotmail.com |
5bce78a403cb350f6070e28a089543acef7afb25 | e5b8a5d93989dd53933c5cd417afa8b2a39ad307 | /test/test_coupon_discount_items.py | 45325446f7a44b5aa07fade379304c1d7922820d | [
"Apache-2.0"
] | permissive | gstingy/uc_python_api | f3586bfce9c962af2e8c1bc266ff25e0f1971278 | 9a0bd3f6e63f616586681518e44fe37c6bae2bba | refs/heads/master | 2020-03-28T11:13:22.537641 | 2018-09-10T17:07:59 | 2018-09-10T17:07:59 | 148,190,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import ultracart
f... | [
"perry@ultracart.com"
] | perry@ultracart.com |
39edbec0f0e7116e1ede19dfa091fc16e782d559 | b3e9a8963b9aca334b93b95bc340c379544e1046 | /euler/14.py | 086c339acb194f1b66a930b0f64d444e2daadef9 | [] | no_license | protocol7/euler.py | 86ea512c2c216968e6c260b19469c0c8d038feb7 | e2a8e46a9b07e6d0b039a5496059f3bf73aa5441 | refs/heads/master | 2022-09-08T22:49:47.486631 | 2022-08-23T20:07:00 | 2022-08-23T20:07:00 | 169,478,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/env python3
def collatz(n):
c = 1
while n != 1:
if n % 2 == 0:
n //= 2
else:
n = 3 * n + 1
c += 1
return c
assert 10 == collatz(13)
assert 837799 == max([n for n in range(1, 1000000)], key=collatz)
| [
"niklas@protocol7.com"
] | niklas@protocol7.com |
139adedab62d240002e76a8278f5c9899697af38 | d32bc79eb8631d6bc4ab20498631ba516db4d5f7 | /152_maxProductArray.py | 38fc25720cfdfefd0d9b48f8df23ab13c1c386d1 | [] | no_license | Anirban2404/LeetCodePractice | 059f382d17f71726ad2d734b9579f5bab2bba93c | 786075e0f9f61cf062703bc0b41cc3191d77f033 | refs/heads/master | 2021-10-08T04:41:36.163328 | 2021-09-28T02:16:47 | 2021-09-28T02:16:47 | 164,513,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 7 22:41:52 2019
@author: anirban-mac
"""
"""
Given an integer array nums, find the contiguous subarray within an array
(containing at least one number) which has the largest product.
Example 1:
Input: [2,3,-2,4]
Output: 6
Explanation: [2,3] has... | [
"anirban-mac@Anirbans-MacBook-Pro.local"
] | anirban-mac@Anirbans-MacBook-Pro.local |
4e238c78b6a39de8f4b38c09be8989c9b69bfe93 | 210ecd63113ce90c5f09bc2b09db3e80ff98117a | /AbletonLive9_RemoteScripts/Launch_Control_XL/ButtonElement.py | fe0744f2950ba1281db7c0754c69506a53640e9b | [] | no_license | ajasver/MidiScripts | 86a765b8568657633305541c46ccc1fd1ea34501 | f727a2e63c95a9c5e980a0738deb0049363ba536 | refs/heads/master | 2021-01-13T02:03:55.078132 | 2015-07-16T18:27:30 | 2015-07-16T18:27:30 | 38,516,112 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/Launch_Control_XL/ButtonElement.py
from _Framework.ButtonElement import ON_VALUE, OFF_VALUE, ButtonElement as ButtonElementBase
class ButtonElement(ButtonElementBase):
_on_value = None
_off_value = None
d... | [
"admin@scoopler.com"
] | admin@scoopler.com |
625a6b86a578dfc51f571f9570a5a87a0b9066de | 3636c679001c9d9f75d54a0361052b243a97d2e4 | /build/fbcode_builder_config.py | d1183c045603b57d389956411bbd7a03ba3f54d3 | [
"MIT"
] | permissive | anvarov/mvfst | ebd8e259d5628ca9bc690bfea6f30b709b10e51d | b5713b9a2b4b98aa7fc0b0bcb110d70e2ea38254 | refs/heads/master | 2022-06-18T09:32:25.817789 | 2020-05-13T11:46:23 | 2020-05-13T11:46:23 | 263,613,627 | 1 | 0 | MIT | 2020-05-13T11:45:22 | 2020-05-13T11:45:21 | null | UTF-8 | Python | false | false | 1,331 | py | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __fut... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f2baf766729bd90e3d4c0be599f20e9a67aa3bd6 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/mmtbx/secondary_structure/tst.py | 531f585ee75ae352fe8b500ac95c17edbb39a128 | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 78,976 | py |
from __future__ import absolute_import, division, print_function
from mmtbx.secondary_structure import sec_str_master_phil_str, manager
from cctbx import geometry_restraints
from iotbx import file_reader
import iotbx.pdb.hierarchy
import libtbx.load_env
import iotbx.pdb.secondary_structure as ioss
from libtbx.utils im... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
a0b669ed46c14af32a2247e902baa46765a173b6 | c47b68a858e01d5fe51661a8ded5138652d3082e | /src/exploration/businees_cases/prdicting_hiring.py | 7df6f68f3af533048d5e6e5dc147841479515439 | [] | no_license | RitGlv/Practice_Makes_perfect | d2d50efbf810b41d0648f27d02b5710c14c3fcae | 3dcb7ff876e58ade64faed0fa5523cba7461cf8d | refs/heads/master | 2021-03-13T03:51:43.142777 | 2017-06-05T07:32:47 | 2017-06-05T07:32:47 | 91,500,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import pandas as pd
from sklearn.linear_model import LogisticRegression
import sys
sys.path.insert(0, '../../')
import featurize
| [
"johndoe@example.com"
] | johndoe@example.com |
37fa900821ba826c4e1fdb9d424671d44d8c8280 | 46fe894c4a8e14727bd085c5834a2acfbe5cd41f | /blogproject/urls.py | a3fd92bc1bfdbc87607115ccf80d146a61b27b18 | [] | no_license | PriyaRamya11/React-Django-Blog-Backend | 6970ac443d0f44d5d16ea0738f16546eb50879a9 | 491629fac3cf5d6fae0a3f59b7a47e353ed9407c | refs/heads/master | 2023-04-27T20:26:13.818306 | 2021-05-05T11:27:13 | 2021-05-05T11:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | from django.shortcuts import render
from django.contrib import admin
from django.urls import path
from django.urls.conf import include
from rest_framework.response import Response
from rest_framework.decorators import api_view
from django.conf.urls.static import static
from django.conf import settings
# url patterns... | [
"kumar.ankit383@gmail.com"
] | kumar.ankit383@gmail.com |
8061be7dbac8f6e43df70f6a483d6d89690445f2 | 52a3beeb07ad326115084a47a9e698efbaec054b | /manila/api/contrib/services.py | 607903fef8b780fbb6222f72ce62af1c9d0d53a4 | [] | no_license | bopopescu/sample_scripts | 3dade0710ecdc8f9251dc60164747830f8de6877 | f9edce63c0a4d636f672702153662bd77bfd400d | refs/heads/master | 2022-11-17T19:19:34.210886 | 2018-06-11T04:14:27 | 2018-06-11T04:14:27 | 282,088,840 | 0 | 0 | null | 2020-07-24T00:57:31 | 2020-07-24T00:57:31 | null | UTF-8 | Python | false | false | 3,444 | py | # Copyright 2012 IBM Corp.
# 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 app... | [
"Suhaib.Chishti@exponential.com"
] | Suhaib.Chishti@exponential.com |
8463c8c53648a7ad7c984f04467593a429195089 | 43459d0a1b5c8d1b631ef3edb91b6a7bb1b26078 | /venv/Lib/site-packages/npx/_isin.py | 0e1d06123de282476de66018f3bbaa87bfe74931 | [] | no_license | titusowuor30/dj_rest_jwt_auth_api | 2ee5046b043d34d88c0fad344d9bb6525513ee90 | ee33e33ed2f5852d5882cbc7b694e7ca9be7e7da | refs/heads/master | 2023-07-16T21:42:08.820624 | 2021-08-28T07:50:47 | 2021-08-28T07:50:47 | 400,724,458 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import numpy as np
import numpy.typing as npt
def isin_rows(a: npt.ArrayLike, b: npt.ArrayLike):
a = np.asarray(a)
b = np.asarray(b)
if not np.issubdtype(a.dtype, np.integer):
raise ValueError(f"Input array must be integer type, got {a.dtype}.")
if not np.issubdtype(b.dtype, np.integer):
... | [
"titusowuor30@gmail.com"
] | titusowuor30@gmail.com |
f10d82d87ec02eb5ee78e0ebf6c735f5ed119466 | 4252102a1946b2ba06d3fa914891ec7f73570287 | /pylearn2/optimization/test_linear_cg.py | e82e497ee222a16178c381ee0164f0fb565e9b2a | [] | no_license | lpigou/chalearn2014 | 21d487f314c4836dd1631943e20f7ab908226771 | 73b99cdbdb609fecff3cf85e500c1f1bfd589930 | refs/heads/master | 2020-05-17T00:08:11.764642 | 2014-09-24T14:42:00 | 2014-09-24T14:42:00 | 24,418,815 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import theano
from theano import tensor, config
import numpy
import linear_cg
import warnings
from pylearn2.testing.skip import skip_if_no_scipy
try:
import scipy.linalg
except ImportError:
warnings.warn("Could not import scipy.linalg")
import time
def test_linear_cg():
rng = numpy.random.RandomState([1,2,... | [
"lionelpigou@gmail.com"
] | lionelpigou@gmail.com |
4af9aaf42d7bc296c64d1dd79d632048cc5126bf | 26f8a8782a03693905a2d1eef69a5b9f37a07cce | /test/test_destiny_destiny_item_type.py | 371104552534d46e48c0251fd4f89eb10524e339 | [] | no_license | roscroft/openapi3-swagger | 60975db806095fe9eba6d9d800b96f2feee99a5b | d1c659c7f301dcfee97ab30ba9db0f2506f4e95d | refs/heads/master | 2021-06-27T13:20:53.767130 | 2017-08-31T17:09:40 | 2017-08-31T17:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | # coding: utf-8
"""
Bungie.Net API
These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
OpenAPI spec version: 2.0.0
Contact: support@bungie.com
Generated by: ... | [
"adherrling@gmail.com"
] | adherrling@gmail.com |
ee940c77343f60e39daed05d2f53ca1ce16cc5ba | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_1/Python/Alen/caseA.py | 3f71933f6070b75b35a50b9393416fc77c08e182 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | #!/usr/bin/env python
# encoding: utf-8
def way1(samples):
if len(samples) < 2:
return 0
min_pieces = 0
last_pieces = samples[0]
for s in samples[1:]:
if s < last_pieces:
min_pieces += last_pieces - s
last_pieces = s
return min_pieces
def way2(samples):
i... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
78da60a4d142b5f6f724959fb430c94449b06674 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/310/107206/submittedfiles/jogoDaVelha.py | 78481b58610ef63879d65bf7ebf7d7ab7d63160b | [] | 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 | 1,926 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
jgnov = 'S'
while jgnov == 'S' or jgnov == 's' or jgnov == 'SIM' or jgnov == 'sim':
print('Bem vindo ao JogoDaVelha do grupo D [Anderson Bezerra, Caio César, Laura, Juan]')
nome = input('\nQual o seu nome (ou apelido)?... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
43ba8431d79ecc5a112551746e9e34f7d85e7c9c | cb415e8914a4432466b984c2d9cfd3bc66165c6c | /tensorflow_asr/models/transducer.py | d5d865a462736bb0f0433ff7735cc862dbe194a2 | [
"Apache-2.0"
] | permissive | enormous-system/TensorFlowASR | d319505d27cf55dd1893299e088980434181d932 | dbe95e7a121db9d9c1c30357e584bfbab65e8538 | refs/heads/main | 2023-02-03T01:45:20.025702 | 2020-12-20T11:34:40 | 2020-12-20T11:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,241 | py | # Copyright 2020 Huy Le Nguyen (@usimarit)
#
# 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 agreed t... | [
"nlhuy.cs.16@gmail.com"
] | nlhuy.cs.16@gmail.com |
b6cffd9814a17ffbaf39dbadfae773d76b70a95c | 4a74ec1b7e299540b924bce4928537a51fc00ff5 | /day24_day30/day24/순열(재귀).py | 3c9c552c654e3a3b99bbd69727a4723460368c48 | [] | no_license | yeonlang/algorithm | ef74b2592818495f29f6de5f44f81ccf307efa59 | ab788658bb781773c489cac8c6e8d2bea48fda07 | refs/heads/master | 2020-04-22T20:25:46.243355 | 2019-05-08T15:17:45 | 2019-05-08T15:17:45 | 170,641,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | def BTK(choice):
global result
if choice==len(data):
print(result)
return
for i in range(len(data)):
if not visited[i]:
visited[i]=1
result[choice]=data[i]
BTK(choice+1)
result[choice]=0
visited[i]=0
data=[1,2,3,4,5]
visit... | [
"naspy001@gmail.com"
] | naspy001@gmail.com |
c564613dceef1e4497ad550d35685d6132fe2e18 | 3b5d1a53af8d2f4094005f342403eabc7af9c980 | /battle_module/__init__.py | 4ef490bf509cfc0552e244879896a37730e094ec | [
"MIT"
] | permissive | alentoghostflame/StupidAlentoBot | daa828be3d47b24d3e13d500155a6a0d2019f724 | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | refs/heads/master | 2021-06-30T17:50:14.997416 | 2021-06-08T03:54:24 | 2021-06-08T03:54:24 | 237,541,303 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | from battle_module.battle import BattleModule
| [
"alexanderschoenhofen@gmail.com"
] | alexanderschoenhofen@gmail.com |
aa9a09bc595ade1419abb2183ac8589ae774764a | 3da69696601b2b3ad7bc1285a5f0343c7eafea80 | /lc900.py | 8e3d98a41900bffeb2f868bebe4485df35b009d6 | [] | no_license | GeorgyZhou/Leetcode-Problem | ee586463a2e4e75c910c095bdc057f1be70b5c1b | d6fac85a94a7188e93d4e202e67b6485562d12bd | refs/heads/master | 2021-06-30T15:58:04.698200 | 2020-12-18T22:55:49 | 2020-12-18T22:55:49 | 66,054,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | class RLEIterator(object):
def __init__(self, A):
"""
:type A: List[int]
"""
self.seq = []
for i in range(0, len(A), 2):
if A[i] == 0:
continue
self.seq.append([A[i], A[i+1]])
self.seq.reverse()
def next(self, n):
... | [
"michaelchouqj@gmail.com"
] | michaelchouqj@gmail.com |
64288c71f6d3d6f5bf17652ffa72615f6ef91492 | 6b95f96e00e77f78f0919c10b2c90f116c0b295d | /TelstraTPN/models/inline_response20018.py | f94f3428cc14125628e5e80c0129635b20cc6fa9 | [] | no_license | telstra/Programmable-Network-SDK-python | 0522b54dcba48e16837c6c58b16dabde83b477d5 | d1c19c0383af53a5f09a6f5046da466ae6e1d97a | refs/heads/master | 2021-09-19T17:09:06.831233 | 2018-07-30T03:22:26 | 2018-07-30T03:22:26 | 113,531,312 | 3 | 1 | null | 2018-07-30T03:22:27 | 2017-12-08T04:23:15 | Python | UTF-8 | Python | false | false | 4,253 | py | # coding: utf-8
"""
Telstra Programmable Network API
Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a g... | [
"steven@developersteve.com"
] | steven@developersteve.com |
166eab8540b5b91e7244c1de451def223de53995 | 9b126e00ea5187ea7a1006815b3346a407b43bb7 | /wsmonitor/__main__.py | 404edaa01349e5ed4d32fea012a169854517a1e7 | [] | no_license | mk1012/wsmonitor | b741c0482d0622a3ec9a07cacbf59efc97e25468 | 6e096d0584c9b63919f07cea2cf39fbe09458a59 | refs/heads/master | 2022-12-01T01:23:33.780147 | 2020-08-13T10:51:28 | 2020-08-13T10:51:28 | 273,063,467 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | import logging
from wsmonitor.cli import cli
if __name__ == "__main__":
cli()
| [
"mark@weinreuter.org"
] | mark@weinreuter.org |
d7bcf7c5dacf1719df9427cbec737517decf12bd | 6de4c9c36ab2ecdb099aef0050f1afdd30fe2b3f | /app/email.py | fec1d7e3314c60e8e5981438e1d0a1c34fbf167b | [] | no_license | wadi-1000/Pitches | b4f2ba8db2d6e18c75f3dbcf4475155abdaf30df | 6aff3af294b38674fbd45fffdb07cf32b67ccb6e | refs/heads/master | 2023-07-14T23:25:22.812954 | 2021-08-25T09:23:21 | 2021-08-25T09:23:21 | 395,655,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from flask_mail import Message
from flask import render_template
from . import mail
def mail_message(subject,template,to,**kwargs):
sender_email = 'joykiranga@gamil.com'
email = Message(subject, sender=sender_email, recipients=[to])
email.body= render_template(template + ".txt",**kwargs)
email.html = ... | [
"joy.kiranga@student.moringaschool@gmail.com"
] | joy.kiranga@student.moringaschool@gmail.com |
6b5c8a12d04375293740f160e7cff38d6c442850 | b2135e3fc77666f043f0fbafd0d88ed9865d5b4f | /7183 Python Basics/13 Chapter 2.5 - About loop conditions/01 Consuming lists/87646_07_code.py | ed93d186b4adf84e544c07eb5ee57d309cad638f | [] | no_license | Felienne/spea | 164d05e9fbba82c7b7df8d00295f7157054f9248 | ecb06c66aaf6a2dced3f141ca415be9efb7dbff5 | refs/heads/master | 2020-03-17T17:35:27.302219 | 2018-05-17T10:14:49 | 2018-05-17T10:14:49 | 133,794,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | #
Finish the loop so all elements are printed.
Note: there are different ways of doing this! In the nest step you can try multiple ways.
list = [2, 6, 8, 12, 19, 5]
while ___:
item = list.pop()
print(item) | [
"felienne@gmail.com"
] | felienne@gmail.com |
79bbf1803c6fdec266bdee054b03ed8a0b300bba | 056b57a594289cab88b73889c55059376dab5655 | /filter_app/migrations/0006_auto_20151215_0614.py | 020b19cb8103a59a136d3f4d06d1eaa23b284baf | [] | no_license | dentemm/filter_project | 05b9c19975c1d50bacc78bbcc3c9ef8b95f61f65 | ac0a7ce1254f17db16f12ee5eb639d00f8713a35 | refs/heads/master | 2020-12-29T02:32:38.535747 | 2017-01-09T06:53:55 | 2017-01-09T06:53:55 | 43,113,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('filter_app', '0005_module_extra_info'),
]
operations = [
migrations.AddField(
model_name='module',
n... | [
"tim.claes@me.com"
] | tim.claes@me.com |
6b502908108a91d453d96034677fc8642e70ff3c | 1d44bfac26793f034a77916cb211bf44a774e1ef | /CIFAR-100/another_mixed_net.py | 24312a86dba5e512321b848846ca366ae4f9c0d0 | [] | no_license | VCharatsidis/Unsupervised-Clustering | d9f81603cc35c9f3087c1ad7d721cd3bfa7de9b3 | b060caa315f0c066410da9580e64d6db0222f2a8 | refs/heads/master | 2021-07-08T21:27:12.145711 | 2021-01-18T17:50:12 | 2021-01-18T17:50:12 | 224,744,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,173 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch.nn as nn
import torch
class AnotherMixed(nn.Module):
"""
This class implements a Multi-layer Perceptron in PyTorch.
It handles the different layers and parameters of the model.
O... | [
"charatsidisvasileios@gmail.com"
] | charatsidisvasileios@gmail.com |
354b59baffdbb9741441fd2bfd75671d6d48f582 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02677/s277279155.py | 417c2e83e3ec17dc233cfcc99d01d21a875cdd90 | [] | 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 | 205 | py | import math
a, b, h, m = map(int, input().split())
angle = ((h * 60 + m) / 720 - m / 60) * math.pi * 2 # 角度(ラジアン)
ans = math.sqrt(a*a + b*b - 2*a*b*math.cos(angle)) # 余弦定理
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fbcc5d633a59b210d64ed1f5d1123b66fbd1ffc7 | 8dc26aa9afcfeb943306c30b5e4800be36524e32 | /src/ch15/practise/Point1.py | 7fafff09565d670b064b0df04b7cd79ad18781b4 | [] | no_license | MITZHANG/ThinkPython | 5ce75a78ae811c6229269d34d5e819803fde8799 | b68d01df66124a9d6d10bcde61ca324c1a1592d8 | refs/heads/master | 2022-05-07T10:46:27.006351 | 2018-12-02T03:26:47 | 2018-12-02T03:26:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | """This module contains a code example related to
Think Python, 2nd Edition
by Allen Downey
http://thinkpython2.com
Copyright 2015 Allen Downey
License: http://creativecommons.org/licenses/by/4.0/
"""
class Point:
"""Represents a point in 2-D space.
attributes: x, y
"""
def print_point(p):
"""Pri... | [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
55adc70658d75b1258437b04056420d0dd722bd3 | 951fc0da7384b961726999e5451a10e2783462c4 | /script.module.exodusscrapers/lib/exodusscrapers/sources_placenta/en_placenta-1.7.8/to_be_fixed/needsfixing/movie4uch.py | 9fe22b01e7d14100e698e0cfbb4ea3d96376cde4 | [
"Beerware"
] | permissive | vphuc81/MyRepository | eaf7b8531b2362f0e0de997a67b889bc114cd7c2 | 9bf8aca6de07fcd91bcec573f438f29e520eb87a | refs/heads/master | 2022-01-02T15:07:35.821826 | 2021-12-24T05:57:58 | 2021-12-24T05:57:58 | 37,680,232 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 4,343 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want wi... | [
"vinhphuc_81@yahoo.com"
] | vinhphuc_81@yahoo.com |
888965d5675a8f7fddf51e681409041dbeba44d1 | 5390d79dad71ad0d9ff9d0777435dcaf4aad16b3 | /chapter_08/person.py | 5d69f944211008757fc2ea9a8bfa43496fbfa767 | [] | no_license | JasperMi/python_learning | 19770d79cce900d968cec76dac11e45a3df9c34c | 8111d0d12e4608484864dddb597522c6c60b54e8 | refs/heads/master | 2020-11-26T08:57:02.983869 | 2020-03-11T10:14:55 | 2020-03-11T10:14:55 | 218,935,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | def build_person(first_name, last_name, age=''):
"""返回一个字典,其中包含有关一个人的信息"""
person = {'first': first_name, 'last': last_name}
if age:
person['age'] = age
return person
musician = build_person('jimi', 'hendrix', age=27)
print(musician)
| [
"darmi19@163.com"
] | darmi19@163.com |
69dc833fbd6f66e9bb74f8674acfcdcded16f069 | 07c6f13115eba392ae9d0f1b8916e862907dfa0c | /backend/home/migrations/0005_auto_20200824_0822.py | a35246626bbd4baa31a37a6f385a216127901486 | [] | no_license | crowdbotics-apps/mobile-24-aug-dev-9264 | 5ac37888b870f21c5b662be7971ed31fb320afb6 | 74df25211a9fba244fe377b1595f4239445e69d5 | refs/heads/master | 2022-12-05T07:28:19.060867 | 2020-08-24T10:59:05 | 2020-08-24T10:59:05 | 289,830,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Generated by Django 2.2.15 on 2020-08-24 08:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("home", "0004_auto_20200824_0723"),
]
operations = [
migrations.RemoveField(model_name="customtext", name="title",),
migrations.AddF... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1b808a6ba74a02d33f7d1f10c324f04b8ca5ecd6 | cc5156902315a9ff0af3cc323992d3a6606a0bb1 | /cyclic sort/find the first k missing positive numbers.py | e500548815b920ce3a447a89dcb0eeb7623ba404 | [
"MIT"
] | permissive | smksevov/Grokking-the-coding-interview | 8ad6f7b11ac0c3f2a08c580a5d542b3745e9ad0b | 0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7 | refs/heads/main | 2023-06-30T03:07:39.054942 | 2021-08-05T08:25:31 | 2021-08-05T08:25:31 | 515,096,499 | 1 | 0 | MIT | 2022-07-18T08:26:16 | 2022-07-18T08:26:15 | null | UTF-8 | Python | false | false | 1,174 | py | # Given an unsorted array containing numbers and a number ‘k’,
# find the first ‘k’ missing positive numbers in the array.
# Example:
# Input: [3, -1, 4, 5, 5], k=3
# Output: [1, 2, 6]
# Explanation: The smallest missing positive numbers are 1, 2 and 6.
# O(N + K) space:O(1)
def find_first_k_missing_positive_number(... | [
"394104840@qq.com"
] | 394104840@qq.com |
b48e2095b08d287ca5bbe8003a8471badaefb42a | f891828ffe9c8501d276560c8c52d319f284056f | /404_left_leave_sum_e/root_count.py | 296baac2fa8e5b3a9061ab1decfbadbecdce1b9c | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def sumOfLeftLeaves(self, root):
"""
:type root: TreeNode
:rtype: int
"""
def rec... | [
"chao.shi@hpe.com"
] | chao.shi@hpe.com |
d21e444dda8f2494714cce197620fdaed2200cfa | 69ef637ffa5739c368bc3a2da935f084203b56b6 | /exercises/en/exc_hockey_players.py | 49593545ec710f208fe69f7a3b10496dbbd14ab5 | [
"MIT"
] | permissive | betatim/MCL-DSCI-011-programming-in-python | 3e03734abb5af49b3dfc0b127e65b3573911afb0 | b51f43a6bb1bedf0db028613d48d6566309ec44a | refs/heads/master | 2022-11-08T06:03:56.190181 | 2020-06-25T16:20:30 | 2020-06-25T16:20:30 | 275,013,051 | 0 | 0 | MIT | 2020-06-25T20:53:13 | 2020-06-25T20:53:12 | null | UTF-8 | Python | false | false | 101 | py | import pandas as pd
# The database
hockey_players = pd.read_csv('data/canucks.csv')
hockey_players
| [
"hayleyfboyce@hotmail.com"
] | hayleyfboyce@hotmail.com |
1cb47536871779d20749b551985661412d2fcd3c | c2471dcf74c5fd1ccf56d19ce856cf7e7e396b80 | /chap11/3.py | eb193de9c867a2242585a4330664c3af97d2b47c | [] | no_license | oc0de/pythonEpi | eaeef2cf748e6834375be6bc710132b572fc2934 | fb7b9e06bb39023e881de1a3d370807b955b5cc0 | refs/heads/master | 2021-06-18T05:33:19.518652 | 2017-07-07T04:34:52 | 2017-07-07T04:34:52 | 73,049,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from heapq import *
def sortAlmostSortedArray(s, k):
minHeap = []
for i in range(k):
heappush(minHeap, s[i])
idx = k
while idx < len(s):
heappush(minHeap, s[idx])
print heappop(minHeap)
idx += 1
while minHeap:
print heappop(minHeap)
sortAlmostSortedArray... | [
"valizade@mail.gvsu.edu"
] | valizade@mail.gvsu.edu |
17a20ec8bc36206daef719d8707bb6582bb67886 | 2c2bef621c173e8beba2917924d9b08bfb8c0eaf | /Options_Math/Matrix_Math_Python.py | ce1e1c4214eec679d55a92116d9d42b887be8315 | [] | no_license | Bhaney44/Options | d7c4d6aed57a0bbbff9731d912dfc764bbef512f | 8c265c33d111d530f5de329732f27585c4b750a4 | refs/heads/master | 2022-11-25T13:54:51.655061 | 2020-07-31T22:52:26 | 2020-07-31T22:52:26 | 273,760,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | #Matrix Math
import numpy as np
#matrix arrays
x = np.array([1,5,2])
y = np.array([7,4,1])
#addition
x + y
array([8, 9, 3])
#multiplication
x * y
array([ 7, 20, 2])
#substraction
x - y
array([-6, 1, 1])
#division
x / y
array([0, 1, 2])
#Modulus - absolute value or a constant ratio
x % y
array([1, 1, 0])
#Vecto... | [
"noreply@github.com"
] | Bhaney44.noreply@github.com |
5a056c350dcd29d87aa97c0915bf6385c065f2b0 | 50e2bf921351b62cdb9b64ce79e081c0513343e2 | /src/main.py | 2bbdc2b21d587f0290e6d0f81690f93d8decf811 | [
"MIT"
] | permissive | mattjoswald/smart-thermostat | b16d7fc3b61fb9416f462df33aa319b6a6c92175 | 4942ccfad9e0ad1206a84a8b271565d48335bbce | refs/heads/master | 2020-12-02T13:06:48.627060 | 2019-12-26T06:16:19 | 2019-12-26T06:16:19 | 231,015,646 | 0 | 0 | MIT | 2019-12-31T03:01:04 | 2019-12-31T03:01:03 | null | UTF-8 | Python | false | false | 745 | py | 'Smart thermostat project main module'
from cpx.sensor import Sensor
from cpx.timingknob import TimingKnob
from cpx.heaterrelay import HeaterRelay
from cpx.buttons import Buttons
from cpx.display import Display
from thermocontroller import ThermoController
TEMP_CHANGE_INCREMENT = 0.1
DEFAULT_DESIRED_TEMP = 21.0
BUTTO... | [
"daveb@davebsoft.com"
] | daveb@davebsoft.com |
44b88f8ceaf6586d2b0d0016961321a743780bac | 30dc32fd39cf71c76fc24d53b68a8393adcac149 | /OWDTestToolkit/apps/Email/__main.py | ff3f949da55fe151c72c0d1071d39d3f8773e2df | [] | no_license | carlosmartineztoral/OWD_TEST_TOOLKIT | 448caefdc95bc3e54aad97df0bff7046ffb37be1 | 50768f79488735eba8355824f5aa3686a71d560a | refs/heads/master | 2021-01-15T17:14:03.614981 | 2013-06-11T12:48:18 | 2013-06-11T12:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | from OWDTestToolkit.global_imports import *
import deleteEmail ,\
emailIsInFolder ,\
goto_folder_from_list ,\
openMailFolder ,\
openMsg ,\
remove_accounts_and_restart ,\... | [
"roy.collings@sogeti.com"
] | roy.collings@sogeti.com |
e8af622b6a1fcc7d31f00df00cfbdb2d4905bf1a | f68732bc40a7a90c3a1082e4b3a4154518acafbb | /script/dbus/sessionBus/audioSink/011_sinkSetVolumeNotPlay.py | 874cbce8daddd6329480c8c5bdb73a95deb648c6 | [] | no_license | lizhouquan1017/dbus_demo | 94238a2307e44dabde9f4a4dd0cf8ec217260867 | af8442845e722b258a095e9a1afec9dddfb175bf | refs/heads/master | 2023-02-11T19:46:27.884936 | 2021-01-08T05:27:18 | 2021-01-08T05:27:18 | 327,162,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # -*- coding: utf-8 -*-
# ****************************************************
# @Test Case ID: 011_sinkSetVolumeNotPlay
# @Test Description: 设置音量大小
# @Test Condition:
# @Test Step: 1.设置音量大小,不播放声音反馈;
# # @Test Result: 1.检查设置成功;
# @Test Remark:
# @Author: ut000511
# ******************... | [
"lizhouquan@uniontech.com"
] | lizhouquan@uniontech.com |
427b3c825edd8de722ada05971ee97d2bcad81f0 | d775cdfb84e09909ebfdbef6f827c13b3921e0c4 | /example/tornado_period_server.py | 822aba54f47efd4b5357c0f99909128abcaa7e02 | [] | no_license | land-pack/sscan | 28e114e87a4c4131177f08ded7198ad8059ab779 | f68b3c124ddba073194d4e8a0b1b52a1f37030b2 | refs/heads/master | 2020-03-18T13:33:19.243078 | 2018-05-30T02:40:22 | 2018-05-30T02:40:22 | 134,791,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from socket import socket
from socket import AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_REUSEADDR, SO_BROADCAST
import tornado.ioloop
import tornado.web
def attentionPlease():
"""
Get self host information and then
broadcast it out.
"""
cs = socket(AF_INET, SOCK_DGRAM)
cs.setsockopt(SOL_SOCKET, SO_... | [
"landpack@sina.com"
] | landpack@sina.com |
890cae19c80a3e5432fefc026d58191a9fe0af2b | 833ef1cc5cbd5cf76da144d10d393e30976d9185 | /froide/publicbody/migrations/0001_initial.py | 79b00e5a70b896c51a1eafd3ef7fc4eee7c2ac0b | [
"MIT"
] | permissive | okfde/froide | d022407ec30bf018e6ca587ae9df0b73a8625edf | 16e3c69b333fc82cb1e52378fc003ddf071152a7 | refs/heads/main | 2023-08-31T08:02:23.343743 | 2023-08-29T07:01:03 | 2023-08-29T07:01:03 | 1,700,944 | 230 | 48 | MIT | 2023-09-13T09:10:40 | 2011-05-04T12:20:51 | Python | UTF-8 | Python | false | false | 15,410 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django.db.models.deletion
import django.db.models.manager
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models
import parler
import taggit.managers
import froide.publicbody.models
class Migratio... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
6a9c731ec3f178280fea0968e582e1e28db041bc | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/play_motion/catkin_generated/pkg.develspace.context.pc.py | 446b10b7da92a6a54200af7d1784053b527689fa | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/sandeepan/tiago_public_ws/src/play_motion/play_motion/include".split(';') if "/home/sandeepan/tiago_public_ws/src/play_motion/play_motion/include" != "" else []
PROJECT_CATKIN_DEPENDS = "actionli... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
3afe908391e9c27bf9f3d9152db25e5c2f300855 | e9112befb28183ed05418dfc0132240247fe5b09 | /stims/BartlettEdgeJoe.py | 92abd5157328da72513683e440ced2e7b0a102b9 | [] | no_license | msarvestani/passive-stim-with-eye-tracking | ea801f54786ce3912a699d95b3ace684dc68d155 | 9dad3a3ee1a0c1930757765c428ffe9c44492a07 | refs/heads/main | 2023-04-21T05:54:15.716593 | 2021-05-10T05:10:04 | 2021-05-10T05:10:04 | 365,922,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,281 | py | #Hartley subspace_Kuo
"""
This is for reverse correaltion experiment with Hartley subspace %% Seq file name is on line 190
"""
from __future__ import division # so that 1/3=0.333 instead of 1/3=0
from psychopy import visual, core, data, event, logging, sound, gui, filters, monitors
from psychopy.constants import * #... | [
"naroom@gmail.com"
] | naroom@gmail.com |
7e1625f57fe84fe7dd1f3b22951765a30e604e33 | f576f0ea3725d54bd2551883901b25b863fe6688 | /eng/tox/run_verifytypes.py | 762ada2b77e747b7aacca4898f734320a7d6892e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,930 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
d49151be7fd79310dd4e2645a3988f2e57d4e242 | 2ecf5a1fa16226052b9c7bbd607fd9df50d0df7f | /24.py | 4cc150d7784cff5733cc81afb44760e197fadc7e | [] | no_license | samrithasudhagar/guvi | 288421b091460fc9e4e5d89d50b716450da30ca3 | f30706270acca5cf25eaf325c2c0f193636470b9 | refs/heads/master | 2020-04-15T04:58:42.881053 | 2019-02-02T15:05:36 | 2019-02-02T15:05:36 | 164,404,341 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | s=""
n=int(input())
l=list(map(int,input().split()))
l.sort()
for i in range(0,len(l)):
s=s+str(l[i])+" "
print(s.strip())
#i
| [
"noreply@github.com"
] | samrithasudhagar.noreply@github.com |
8aa9c06ffa56b65332bf3a4596300d836a9c88be | b0e22deb519ec621b5f866bb15d15d597e6e75d4 | /ciscoisesdk/models/validators/v3_0_0/jsd_ab203a1dd0015924bf2005a84ae85477.py | 9f0a8fd4323e48dcbd27985f5b7127c2d7ea108e | [
"MIT"
] | permissive | oianson/ciscoisesdk | 49ed9cd785a8e463cac4c5de3b1f3ff19e362871 | c8fe9d80416048dd0ff2241209c4f78ab78c1a4a | refs/heads/main | 2023-07-31T20:08:29.027482 | 2021-07-09T15:16:04 | 2021-07-09T15:16:04 | 385,743,799 | 0 | 0 | MIT | 2021-07-13T21:52:18 | 2021-07-13T21:52:18 | null | UTF-8 | Python | false | false | 2,516 | py | # -*- coding: utf-8 -*-
"""Identity Services Engine bulkRequestForIPToSGTMapping data model.
Copyright (c) 2021 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software withou... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
cd645756f1ac5b85b1c2c540d0a54907e4b6abc6 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ/16_0_1_aniketshah_counting_sheep.py | b23af25099e5a94affe671bb50162a7d3a36c0f6 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 699 | py | def countingSheep(startNumber):
if startNumber == 0:
return "INSOMNIA"
numbersSeen = set([])
i = 0
number = 0
while (len(numbersSeen) < 10):
i = i + 1
number = startNumber * i
for d in str(number):
numbersSeen.add(d)
return number
readFile = op... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
c6d4934ea3a2820d247f639becd1a94b8cc5068b | d308fffe3db53b034132fb1ea6242a509f966630 | /pirates/piratesgui/RadioButton.py | 9682de9337946e58656d2cbcef9c94eb1e501eb5 | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/pirates | 83caac204965b77a1b9c630426588faa01a13391 | 6ca1e7d571c670b0d976f65e608235707b5737e3 | refs/heads/master | 2020-03-18T20:03:28.687123 | 2018-05-28T18:05:25 | 2018-05-28T18:05:25 | 135,193,362 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.piratesgui.RadioButton
from pandac.PandaModules import *
from direct.gui.DirectButton import *
class RadioButton(DirectButton):... | [
"33942724+itsyaboyrocket@users.noreply.github.com"
] | 33942724+itsyaboyrocket@users.noreply.github.com |
6a5974222c1f21fd29a28373a56179bd00333e3f | cb8c62659f9509bbc01237a09cf8730b57f4a84f | /Dcc/plugin.py | 4a6c21ee8bb1c8df680fb88a8add5af49aa94430 | [] | no_license | stepnem/supybot-plugins | 5bd795319036ab21cd81b00a23e0c1f712876d3e | 6838f7ae22ad1905272cf7e003fb803e637c87d8 | refs/heads/master | 2021-01-01T18:49:44.478383 | 2012-01-05T04:14:24 | 2012-01-05T04:14:24 | 281,407 | 8 | 4 | null | 2016-11-01T20:15:17 | 2009-08-18T21:55:56 | Python | UTF-8 | Python | false | false | 7,407 | py | ###
# Copyright (c) 2005, Ali Afshar
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, a... | [
"stepnem@gmail.com"
] | stepnem@gmail.com |
76075941bd7e467d44995643e233f13eca483d18 | e3d969e2c9e4b57f4f7d58af5e44a00aa8fb15d3 | /0124 Binary Tree Maximum Path Sum.py | 3772643dcebbd0d82ff8dd51ecb723631c33f535 | [
"MIT"
] | permissive | kevin-fang/leetcode | 2744ff01e791db6f60edf946ef71451fae92ef6f | 3958f888b30bb3e29916880ecec49b3870a0bea3 | refs/heads/master | 2022-12-15T07:50:01.056016 | 2020-09-10T03:47:53 | 2020-09-10T03:47:53 | 294,296,037 | 3 | 0 | MIT | 2020-09-10T03:47:39 | 2020-09-10T03:47:38 | null | UTF-8 | Python | false | false | 698 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def helper(self, node):
if node is None:
return 0
left_max = self.helpe... | [
"mdabedincs@gmail.com"
] | mdabedincs@gmail.com |
76c44d082a1396dc33c4de1d490dadcfe2324b0c | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/secondaryrange_81692aa5df84128fe35b5eed6353333f.py | 1e8ee8ef4487fa313f230a968199ca7d37a16c96 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 57,132 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
7075a0a9fe98a746e96222a704367de7151ff994 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1325168/snippet.py | 28eec836542399a12c1ef4027f7db0df6443778c | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 986 | py | import requests
import json
class ClickyApi(object):
"""
A simple Python interface for the Clicky web analytics api.
Relies on the Requests library - python-requests.org
Usage:
YOUR_CLICKY_SITE_ID = '12345'
YOUR_CLICKY_SITE_KEY = 'qwerty'
clicky = ClickyApi(YOUR_CLICKY_SITE_ID, YOUR_CLIC... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
149d6fa9b596c90e0ae82587e4ffc555cd25f416 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_index.py | dbb4bd9fd48d9c62bf796bf622299c21d088a604 | [
"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 | 430 | py |
#calss header
class _INDEX():
def __init__(self,):
self.name = "INDEX"
self.definitions = [u'to prepare an index for a book or collection, or arrange it in an index: ', u'to change a system of numbers according to each other or a fixed standard: ']
self.parents = []
self.childen = []
self.properties = []... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8252567d9a62b4688bd1e0d9909847736b2f41e4 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_diagnosticsettingscategory.py | 81e867b980ec07f78f416b811e20a8757ce96ad7 | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 6,634 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# 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',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
9222db26105e569fbad307f258bb1299d5225365 | 663c108dca9c4a30b7dfdc825a8f147ba873da52 | /venv/functions/25VariableLengthArgv.py | b5824e86a2958cb40b1f05bc9bf98f85d3963f09 | [] | no_license | ksrntheja/08-Python-Core | 54c5a1e6e42548c10914f747ef64e61335e5f428 | b5fe25eead8a0fcbab0757b118d15eba09b891ba | refs/heads/master | 2022-10-02T04:11:07.845269 | 2020-06-02T15:23:18 | 2020-06-02T15:23:18 | 261,644,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | def f01(*n, x):
print('x :', x, type(x))
print('n :', n, type(n))
# f01(1)
# Traceback (most recent call last):
# File "/Code/venv/functions/25VariableLengthArgv.py", line <>, in <module>
# f01(1)
# TypeError: f01() missing 1 required keyword-only argument: 'x'
# f01(1, 2)
# TypeError: f01() missing 1 r... | [
"srntkolla@gmail.com"
] | srntkolla@gmail.com |
7751ad4bdeec9135090e42680ec1598b9710257c | 9844294a93eef781f8cc2473abb0046f8a416966 | /xpdan/tests/test_io.py | e98861be36cd90a551663017f2f9d0ac133f5b9c | [] | no_license | sbillinge/xpdAn | b5decca72d1539e10a6920df5c75cc0374486687 | 0fc91ea7a26e505ff65e58b08b17b145f3e8e7d8 | refs/heads/master | 2021-01-01T18:49:49.964014 | 2017-07-26T15:42:18 | 2017-07-26T15:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | ##############################################################################
#
# xpdan by Billinge Group
# Simon J. L. Billinge sb2896@columbia.edu
# (c) 2016 trustees of Columbia University in the City of
# New York.
# All rights... | [
"cjwright4242@gmail.com"
] | cjwright4242@gmail.com |
c308f33845f5ac2ca3beaf0b4d9efb85dad9b9c6 | fd83af9e6348eddae2f4bfeeb1760048763e857b | /OsSearch/src/search_files.py | ca688ca06b42139934e87294770f837ac754d35b | [] | no_license | rduvalwa5/NewPythonOsLevel | 6f41f4c4934a0f3a016b435acbc4bbc5e2d057c5 | 44a434ace6a21ea27dfffd14a4b1f55931907673 | refs/heads/master | 2020-04-13T01:18:38.451607 | 2019-03-08T05:26:12 | 2019-03-08T05:26:12 | 162,870,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,108 | py | '''
Created on Jul 16, 2016
purpose search for files
@author: rduvalwa2
'''
import glob
import os
from os.path import join, getsize
import string
class find_file:
def __init__(self):
self.allFoundFiles = []
self.constrainedFiles = []
self.allDirectories = []
self.ar... | [
"rduvalwa5@hotmail.com"
] | rduvalwa5@hotmail.com |
854b0ae1add69f394aaa72b8c9bce2cc76f4601c | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-302262.py | a3a3ff5f7bf6d86259b10c3c2216689e4f7f3c66 | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,727 | py | # -*- coding: iso-8859-1 -*-
"""
Handling of arguments: options, arguments, file(s) content iterator
For small scripts that:
- read some command line options
- read some command line positional arguments
- iterate over all lines of some files given on the command line, or stdin if none given
- give usage message if po... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
13bc41ea13c609620e4b5eccc6962fa2e0a7aa90 | a0500eec8e656301d3e71f4ea240ddabd2994107 | /student/forms.py | e718c658f3efffcd83b3d15cb3e17a47e5b6889d | [] | no_license | abhinavsharma629/Stalk-Site | bc80aaf7ecc91f7b09e64173b351101a41253adf | 37564018543dfb2d0e439a4ee6933477958fca48 | refs/heads/master | 2020-04-19T13:08:28.544661 | 2019-01-30T23:50:26 | 2019-01-30T23:50:26 | 168,210,403 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from django import forms
from .models import StudentData
class StudentSubmit(forms.ModelForm):
er_no=forms.CharField(widget=forms.TextInput(attrs={'class':'form-group'}),required=True,max_length=100)
name=forms.CharField(widget=forms.TextInput(),required=True,max_length=150)
college_name=forms.CharField(widge... | [
"abhinavsharma629@gmail.com"
] | abhinavsharma629@gmail.com |
0e02b9d97b66a81201874125f05af122a2bdf46f | 761a3c37621b2daae06d9fe29c93e4d9a8bf5a95 | /policy/networks/fixed_actor_network.py | a269867bb588716baf82eb8a034559e15f03d784 | [] | no_license | matthewzhang1998/ecco | 486dd37e3b2038b0d3f4d9f40de094f64b6a0679 | b25b6d6d4d815e716c19aa53010e70583fbe5686 | refs/heads/master | 2020-03-26T19:36:55.511529 | 2018-09-17T04:53:52 | 2018-09-17T04:53:52 | 145,275,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 14 14:21:09 2018
@author: matthewszhang
"""
from policy.networks import base_network
class network(base_network.base_network):
def __init__(self, *args, **kwargs):
pass
| [
"matthew.zhang@mail.utoronto.ca"
] | matthew.zhang@mail.utoronto.ca |
08cc8c36414dd20264de228d3d5dcfd383d028a7 | 1524720d6480ad0a51b6fd8ff709587455bf4c5d | /tums/trunk/release/Pages/Users/Bulk.py | 17ed9a01c5c7ecb5af3ad4857c9109ac0b574b75 | [] | no_license | calston/tums | 2bd6d3cac5232d2ccb7e9becfc649e302a310eab | b93e3e957ff1da5b020075574942913c8822d12a | refs/heads/master | 2020-07-12T03:46:43.639800 | 2018-05-12T10:54:54 | 2018-05-12T10:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,347 | py | from nevow import rend, loaders, tags
from twisted.application import service, internet, strports
from twisted.web import server, static
from twisted.python import failure
from nevow import inevow, rend, appserver, static, guard, url, loaders, stan
from nevow.taglibrary import tabbedPane
import Tree, Settings, LDAP, f... | [
"junwin@gmail.com"
] | junwin@gmail.com |
dbbe212390f1fa211ad11556a684327f80674fe8 | 366d50ddb1ae1c20f2e8bcbc1b6cde58996ac24a | /Python-02网络数据采集/Reference/chapter6-数据读取/2-getUtf8Text.py | d76ea93faa287090d1058be700deefa0793c77f0 | [] | no_license | luilui163/PythonBook | fe7796ca26842f07d3baa5d754f79cda5fd2b18f | f81585479fb3859dfd818fccd43a64e50f6f81dc | refs/heads/master | 2020-04-06T12:59:10.949209 | 2017-11-09T10:43:36 | 2017-11-09T10:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | # 使用BeautifulSoup模块对txt格式文本进行UTF-8编码再提取
# 解决:Python把文本读成ASCII编码格式,而浏览器把文本读成 ISO-8859-1 编码格式
from urllib.request import urlopen
from bs4 import BeautifulSoup
# 使用BeautifulSoup获取网页源代码
html = urlopen("http://en.wikipedia.org/wiki/Python_(programming_language)")
bsObj = BeautifulSoup(html, "lxml")
content = bsObj.find(... | [
"lafitehhq@126.com"
] | lafitehhq@126.com |
e0b09cdc02c1147f7eebd503a05959609d961462 | fab15f0e35d3196b9e486d1d3e4f42b22f326817 | /scripts/ugm/52_create_curation.py | 73348c37c05695f765891d9bb8382f70a2424de0 | [] | no_license | nakamura196/genji | 4511c9d297b97697cad87f570085ac865ca0f750 | e1079ad2839772fca4c93657d96e6bee14957b68 | refs/heads/master | 2022-06-03T01:18:37.789217 | 2020-05-01T11:44:44 | 2020-05-01T11:44:44 | 194,894,216 | 0 | 0 | null | 2019-08-28T23:44:12 | 2019-07-02T15:56:09 | CSS | UTF-8 | Python | false | false | 2,515 | py | import pandas as pd
from rdflib import URIRef, BNode, Literal, Graph
from rdflib.namespace import RDF, RDFS, FOAF, XSD
from rdflib import Namespace
import numpy as np
import math
import sys
import argparse
import json
import urllib.request
import os
import csv
import glob
import requests
import csv
map = {}
label_ma... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
b1b319ea7e1a3d520dec06505878bcb419be66fd | 35429631806692df957bd74a77e5c97db7d5db1e | /05_Themenmodellierung/project.py | 10cbef9bdc4818d3982ef4ad3a87f94bd1b66503 | [
"MIT"
] | permissive | felixdittrich92/NLP | f135f4390a3d76676dbd28fda11fad49c68ae8a5 | 1097d43dd1c99762b6a909a876a765bc79245471 | refs/heads/master | 2020-10-01T14:32:14.389080 | 2020-09-18T11:33:23 | 2020-09-18T11:33:23 | 227,556,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.decomposition import NMF
questions = pd.read_csv('./TextFiles/quora_questions.csv')
print(questions.head())
tfidf = TfidfVectorizer(max_df=0.95, min_df=2, stop_words='english')
dtm = tfidf.fit_transform(questions['Question'])... | [
"felixdittrich92@gmail.com"
] | felixdittrich92@gmail.com |
e941491f6ee750b1d448382918e1e2807a6dd007 | b53e3d57d31a47a98d87141e44a5f8940ee15bca | /src/programy/utils/license/keys.py | 65a5dc3d00fa025f122135206e067f668429418a | [
"MIT"
] | permissive | Chrissimple/program-y | 52177fcc17e75fb97ab3993a4652bcbe7906bd58 | 80d80f0783120c2341e6fc57e7716bbbf28a8b3f | refs/heads/master | 2020-03-29T13:20:08.162177 | 2018-09-26T19:09:20 | 2018-09-26T19:09:20 | 149,952,995 | 1 | 0 | null | 2018-09-23T06:11:04 | 2018-09-23T06:11:04 | null | UTF-8 | Python | false | false | 3,057 | py | """
Copyright (c) 2016-17 Keith Sterling http://www.keithsterling.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, mod... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
fe30adbedfb9ded1a2bbaa6ae520a3830eb00f32 | dfcb65de02953afaac24cc926ee32fcdede1ac21 | /src/pyrin/utils/custom_print.py | 589ac02c3990c2630664b441e021a3eab0f9f5b6 | [
"BSD-3-Clause"
] | permissive | mononobi/pyrin | 031d0c38da945b76b07ea100554ffc7f8081b05e | 9d4776498225de4f3d16a4600b5b19212abe8562 | refs/heads/master | 2023-08-31T03:56:44.700142 | 2023-08-20T22:20:06 | 2023-08-20T22:20:06 | 185,481,041 | 20 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | # -*- coding: utf-8 -*-
"""
utils custom_print module.
"""
import colorama
import pyrin.application.services as application_services
def print_colorful(value, color, force=False):
"""
prints the given value into stdout using the given color.
if the application has been started in scripting mode
it d... | [
"mohamadnobakht@gmail.com"
] | mohamadnobakht@gmail.com |
a04e9f18fb32c8d4bac7255f10399e78f854df1c | 54e3397609cc31b9142d483a29a9a3854800a620 | /create/factoryMethod2.py | 6b56640fb0915d08428d7528383759fbf17c12b3 | [] | no_license | qiangayz/DesignPatterns | 1ac2ee51e2a176910bc19520dcb6ebb9914e0a36 | 527a0ffe59e5fd980ba6b4387d422d6c96fe1623 | refs/heads/master | 2020-03-23T22:34:21.040915 | 2018-07-24T16:10:22 | 2018-07-24T16:10:22 | 142,183,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | # _*_coding:utf-8_*_
'''
工厂方法模式是简单工厂模式的衍生,解决了许多简单工厂模式的问题。
首先完全实现‘开-闭 原则’,实现了可扩展。其次更复杂的层次结构,可以应用于产品结果复杂的场合。
工厂方法模式的对简单工厂模式进行了抽象。有一个抽象的Factory类(可以是抽象类和接口),这个类将不在负责具体的产品生产,
而是只制定一些规范(接口作用),具体的生产工作由其子类去完成。在这个模式中,工厂类和产品类往往可以依次对应。即一个抽象工厂对应一个抽象产品,一个具体工厂对应一个具体产品,这个具体的工厂就负责生产对应的产品。
工厂方法模式(Factory Method pattern)是最典型的模板方法... | [
"38162672+qiangayz@users.noreply.github.com"
] | 38162672+qiangayz@users.noreply.github.com |
9eb0ce9317af236a41710606aefb2a38f642d2bc | 8e5ed445e05274dd013f443d9d506695fa08ad9f | /dat/gui/cellcontainer.py | b23efa815047f362820feed65e52a39a4863ce63 | [] | no_license | afcarl/DAT | 5c2237f4b3745d3b47df27a91eab469cfadd9da9 | 1272b630326b05bca27746993fe2d32479a7353c | refs/heads/master | 2020-06-22T05:49:54.135615 | 2015-09-16T14:10:41 | 2015-09-16T14:10:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,335 | py | import warnings
from PyQt4 import QtCore, QtGui
from dat import MIMETYPE_DAT_VARIABLE, MIMETYPE_DAT_PLOT, DATRecipe, \
RecipeParameterValue
from dat.gui import get_icon
from dat.gui import typecast_dialog
from dat.global_data import GlobalManager
from dat.operations import apply_operation, get_typecast_operations... | [
"remirampin@gmail.com"
] | remirampin@gmail.com |
986ae54cc208bb5b8f14735de120a47266e6fe9f | 9c5f36b72323090b9f0254938923a04b436fd3be | /scripts/test_image_contrast.py | 81fd44194ba9ab7620bb56b92c03da263360a07a | [] | no_license | mdlaskey/IL_ROS_HSR | 7c7233905e6a1fc8388661236bade3862da0fc90 | d12f8397249acea4fae71d12c74074314a8a005e | refs/heads/master | 2021-01-20T18:30:11.815581 | 2018-04-07T01:14:41 | 2018-04-07T01:14:41 | 90,918,344 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | import numpy as np
import cPickle as pickle
import matplotlib.pyplot as plt
import IPython
import sys
sys.path.append('/home/autolab/Workspaces/michael_working/yolo_tensorflow/')
import configs.config_bed as cfg
import cv2
if __name__ == "__main__":
#-----Reading the image-----------------------------------------... | [
"mdlaskey@umich.edu"
] | mdlaskey@umich.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.