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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e2ff1d6a6bf1e562f9b8a642ce2b49fdc84efc8 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_03_22/aio/operations/_certificates_operations.py | 67eca47974e47ca7cfb4d603121a32dba73d1d2f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 23,449 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | adriananeci.noreply@github.com |
a847cd06bf6a7cf3c96da5de8fc75ad7315278b6 | ad7454d58efcab24da6b1d9e485bdacff0f8e5e1 | /e2cnn/gspaces/r2/flip2d_on_r2.py | fb7bc6b37a38f0e0b8ca9cd8044e32afd781f424 | [
"BSD-3-Clause-Clear",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | csuhan/e2cnn | dd7bd0afdd69ff8d6a8a76ae4ccc6bee3b521eb6 | f63ca7799abd4e534d09ec9cd1ec56aebcd733c6 | refs/heads/master | 2022-07-17T09:29:18.983800 | 2020-05-18T18:26:42 | 2020-05-18T18:26:54 | 283,854,350 | 3 | 1 | NOASSERTION | 2020-07-30T18:56:23 | 2020-07-30T18:56:22 | null | UTF-8 | Python | false | false | 5,737 | py |
from __future__ import annotations
from e2cnn import gspaces
from e2cnn import kernels
from .general_r2 import GeneralOnR2
from .utils import rotate_array
from e2cnn.group import Group
from e2cnn.group import Representation
from e2cnn.group import CyclicGroup
from e2cnn.group import cyclic_group
import numpy as np... | [
"gabriele.cesa@gmail.com"
] | gabriele.cesa@gmail.com |
ce5717ab9ed199ea61124d45b716e0d4324fc35d | 038e6e41d117431869edad4952a5b1463d5131bc | /donations/migrations/0003_auto_20210202_1015.py | 48203123ee1a07176a423d5e56da2b038bf1cb2e | [
"MIT"
] | permissive | MikaelSantilio/aprepi-django | c49290855b7c83ecaf08de82ee9eedf8e8baa15a | 5e2b5ecffb287eab929c0759ea35ab073cc19d96 | refs/heads/master | 2023-06-19T00:18:15.986920 | 2021-06-15T20:15:59 | 2021-06-15T20:15:59 | 329,428,268 | 0 | 1 | MIT | 2021-02-05T16:21:45 | 2021-01-13T20:50:18 | Python | UTF-8 | Python | false | false | 745 | py | # Generated by Django 3.1.5 on 2021-02-02 13:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('donations', '0002_auto_20210129_1642'),
]
operations = [
migrations.AddField(
model_name='creditcard',
name='valid',... | [
"mikael.santilio@gmail.com"
] | mikael.santilio@gmail.com |
8728406189562de3a17dfb50652ca3d215dd7c0b | e72baa89436e0a166567fa7b639d982780236cce | /scriptParaLlenar.py | b7c13e41a13335fa9eaea2d164a829904de407a2 | [] | no_license | cjcruzrivera/gestion_turnos | fb3fb08f783b014e69f35c72063e468f9880b187 | 931aa776b3f4d1f7d185b2ecc22a07f9cc71afb8 | refs/heads/master | 2022-11-28T17:36:53.106796 | 2019-06-26T15:50:37 | 2019-06-26T15:50:37 | 148,863,265 | 0 | 0 | null | 2022-11-22T02:56:25 | 2018-09-15T02:50:08 | CSS | UTF-8 | Python | false | false | 281 | py | from fabrica.models import FabricaSucursalPrincipal
from fabrica.models import FabricaSucursalGeneral
from fabrica.models import FabricaClientes
FabricaSucursalPrincipal.create()
for _ in range(3):
FabricaSucursalGeneral.create()
for _ in range(100):
FabricaClientes.create()
| [
"email_id"
] | email_id |
ec11ad65950285920840988134b2a5f1822b3fec | 3caf0ad913eddd22a58f30f36c7f00207923e6bc | /pip_accel/cli.py | cf705533c91bdf3f4a7a57c085934c4de77270cc | [
"MIT"
] | permissive | lgtml/pip-accel | 332a837b7677750c997bc66c93e5ab56d2516dbb | b827ee66b0228e0cdfeed259b3b64f24e7220544 | refs/heads/master | 2021-01-22T16:00:08.271022 | 2014-11-21T16:27:51 | 2014-11-21T16:27:51 | 26,937,881 | 0 | 1 | null | 2015-01-26T15:14:26 | 2014-11-21T00:07:01 | Python | UTF-8 | Python | false | false | 3,266 | py | # Accelerator for pip, the Python package manager.
#
# Author: Peter Odding <peter.odding@paylogic.eu>
# Last Change: November 16, 2014
# URL: https://github.com/paylogic/pip-accel
"""
:py:mod:`pip_accel.cli` - Command line interface for the ``pip-accel`` program
=======================================================... | [
"peter@peterodding.com"
] | peter@peterodding.com |
0d89dd845b536a7aa9745b69f4e9b5bb983327b3 | 9ffb2f55318df09fb966a93c17c1b6d330ae6b4a | /linear_operator/utils/__init__.py | cabdc64a458a0319b30abdeec8c10d3fe1842fd1 | [
"MIT"
] | permissive | AlexanderZeilmann/linear_operator-gpleiss | 1f1bfb019efe7d0d17af5a7d6a6d3be4079a4a02 | a80f82ff6cdd10c493fa8344a146cf539ec7a092 | refs/heads/main | 2023-08-17T08:27:55.245048 | 2021-09-03T18:58:42 | 2021-09-03T18:58:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | #!/usr/bin/env python3
from . import broadcasting
from .memoize import cached
__all__ = [
"broadcasting",
"cached",
]
| [
"gpleiss@gmail.com"
] | gpleiss@gmail.com |
97ad88d67b5bdb75546aacf1a917caf62e4e14b1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02675/s877018983.py | dd7c9a3e9d7754e86096aea929f69ed60a22b51e | [] | 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 | 188 | py | def main():
n = input()
n = int(n[-1])
if n in [2, 4, 5, 7, 9]:
print('hon')
elif n in [0, 1, 6, 8]:
print('pon')
else:
print('bon')
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
96a2c15778bab0d9f794f3b3c81723b590643427 | 7f9dfa2cccf77764940ffcbbf92939e37c138c43 | /crawl_file/file_path/user_interfaces/embedding_in_wx4.py | 6b9ab0f0d45640fdc9ee2dfb8eb4d528ebb41895 | [] | no_license | zhangmman/scrapy_spider | f80bd8d213edde0dea083babe610ca7b1bc449a3 | 2bda4aa29f2550c649c939045ce4fcdea2736187 | refs/heads/master | 2020-09-11T13:58:49.930929 | 2019-12-21T08:40:56 | 2019-12-21T08:43:43 | 222,080,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,452 | py | """
An example of how to use wx or wxagg in an application with a custom
toolbar
"""
# matplotlib requires wxPython 2.8+
# set the wxPython version in lib\site-packages\wx.pth file
# or if you have wxversion installed un-comment the lines below
#import wxversion
#wxversion.ensureMinimal('2.8')
from numpy i... | [
"zhangman@ncepu.cn"
] | zhangman@ncepu.cn |
7ab311af266cb4da53a4f5f9669d90bded0efc49 | 6601acd5ba7aaaa11f8620df9509e951574373b4 | /cirrus_and_anvil/plotting/CTH_CBH_plotting/CTH_CBH_distribution_plot.py | 0d11f8c76af3967e2fcb6c90554810d871a25f91 | [] | no_license | rachawker/Hawker_ACP_2021-UM_CASIM_paper | 852d07519e4c15791e38bdf8ba7ae4ee9ac3707c | ff3cdd0b1ff72b0fed477824679ab7da49976aa3 | refs/heads/main | 2023-04-07T20:23:16.738292 | 2021-04-22T13:07:22 | 2021-04-22T13:14:40 | 360,516,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,608 | py |
from __future__ import division
import matplotlib.gridspec as gridspec
import iris
import iris.quickplot as qplt
import cartopy
import cartopy.feature as cfeat
import cartopy.crs as ccrs
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import copy
import matplotlib.colors as cols
import matplotlib... | [
"rhawker@sci2.jasmin.ac.uk"
] | rhawker@sci2.jasmin.ac.uk |
855d5e8d3fb1becd0529f9f16edb0ac260a07911 | 35cf6fc79b8d6c335add8e55e0f4dca6f2816d1d | /Python_Study/第二模块学习/Day02/Practice Notes/内置函数.py | 038cd050e83d31ff9cbafa74251a3b011fd627a5 | [] | no_license | KongChan1988/51CTO-Treasure | 08b4ca412ad8a09d67c1ea79c7149f8573309ca4 | edb2e4bd11d39ac24cd240f3e815a88361867621 | refs/heads/master | 2021-07-04T15:57:56.164446 | 2019-07-24T15:28:36 | 2019-07-24T15:28:36 | 97,453,749 | 5 | 8 | null | 2019-10-30T22:05:12 | 2017-07-17T08:34:59 | Python | UTF-8 | Python | false | false | 1,834 | py | #-*- Coding:utf-8 -*-
# Author: D.Gray
print(all([0,-1,3])) # 非0就是true,有0就是false
print(any([0,-1,3])) #有一个ture,就为真。空列表为false
print('\n------ascii()函数-----')
a = ascii([0,-1,'HelloWorld'])
print(type(a),[a]) #将列表变成可打印的字符串
print('\n------bin()函数-----')
print(bin(10)) #把一个整数转成二进制
print('\n-... | [
"wangwei_198811@163.com"
] | wangwei_198811@163.com |
26dc9d3bc25680371b5f150b73fb57e6b70a542d | 4727fa4397a2f1da2827dfbebe24f0b79fa5c9c1 | /phy/cluster/views/cluscatter.py | 9fa9dd09c6663f3b070c275deb40c2289d1dba41 | [] | permissive | cortex-lab/phy | e21e99671be1cbd932731d4d9abd645381e20c39 | 642c875994b44618c3b3157d6e6f4425450813f8 | refs/heads/master | 2023-07-05T19:19:55.962322 | 2023-06-15T16:35:49 | 2023-06-15T16:35:49 | 22,426,819 | 192 | 96 | BSD-3-Clause | 2023-06-15T16:35:50 | 2014-07-30T12:26:51 | Python | UTF-8 | Python | false | false | 13,275 | py | # -*- coding: utf-8 -*-
"""Cluster scatter view."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import logging
import numpy as np
from phy.utils.color import _add_selected_clusters_colors
... | [
"rossant@users.noreply.github.com"
] | rossant@users.noreply.github.com |
b139ca871ed1a92960215e71031c154d6b8d8427 | 14675f0c66fb4f4eeaa6ad1e8e691b9edf8f0bdb | /All other combo programs/Summation_of_N_Numbers_using_Multiple_Inputs.py | ae56f34f6390b6bb9768198b5bb712fa30a37581 | [] | no_license | abhishekjoshi1991/Python_Learning | 9a94529643eac7394615289e2ecd96106e70ddb8 | a74293d0776304638b5cf976b3534481e57b17f2 | refs/heads/master | 2023-04-16T02:21:30.588052 | 2021-04-21T13:58:29 | 2021-04-21T13:58:29 | 360,176,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | #input taken in form n=1 2 3 4 5
print('type1')
n=input('enter the numbers:')#enter values space seperated(1 2 3)
list1=[]
for i in n.split(' '):#if values seperated by , then use .split(',')
list1.append(int(i))
print(list1)
summation=0
for each in list1:
summation+=each
print(summation)
#also can be writt... | [
"abhijsh61@gmail.com"
] | abhijsh61@gmail.com |
0b0952376a18779bfd97872c771c1505bd0567d7 | 425ec023740db4a579d562b503bfade5560fa359 | /examples/nlp4if/english/bb_tweet_english/eng_tweet_config.py | c8294583e03d59ef0dde12c8bb47260522fd6635 | [] | no_license | TharinduDR/InfoMiner | 6cfd72cb68f9375366adf94c814d416e8097f549 | c3cdb6125e67b3a245b297b47d69a27acc2ee022 | refs/heads/master | 2023-05-30T07:05:48.826862 | 2021-06-16T00:19:43 | 2021-06-16T00:19:43 | 342,067,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | from multiprocessing import cpu_count
SEED = 777
TEMP_DIRECTORY = "temp/data"
RESULT_FILE = "result.tsv"
SUBMISSION_FILE = "predictions.tsv"
MODEL_TYPE = "bert"
MODEL_NAME = "vinai/bertweet-base"
config = {
'output_dir': 'temp/outputs/',
"best_model_dir": "temp/outputs/best_model",
'cache_dir': 'temp/cach... | [
"rhtdranasinghe@gmail.com"
] | rhtdranasinghe@gmail.com |
f38afe47bba64f8fc181ed51f4b3cefd25bb96cd | 11e5290ab6dab726cf6842b664c7f17fa857858d | /setup.py | 9e0bf74450b6d7e5bf6862e64928083bbe715522 | [
"MIT"
] | permissive | JaeDukSeo/geometry-free-view-synthesis | d6a89cf08a1115caab43d4e7451355331444a89b | 2b88813428f5543d23ad33156848fefe8fd07b2d | refs/heads/master | 2023-04-08T04:40:41.755157 | 2021-04-23T11:26:37 | 2021-04-23T11:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | from setuptools import setup, find_packages
setup(
name='geometry-free-view-synthesis',
version='0.0.1',
description='Geometry-Free View Synthesis: Transformers and no 3D Priors',
url='https://github.com/CompVis/geometry-free-view-synthesis',
author='Robin Rombach, Patrick Esser, Bjorn Ommer',
... | [
"Patrick.Esser@gmx.net"
] | Patrick.Esser@gmx.net |
5c0b59024abb5de2ae11665f5808bf7a59e6c4cf | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqpt/ingrbyteshist1w.py | 4f8eaed1968b41f580e092e7e148bcbcba3c1442 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 39,247 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
a89d8d1dc847db776f57fbf7d10bb48a3c53f18d | 336e7eba809ee0236eb731c674c19b32f20f9d31 | /scrape/mi.py | e4a53bd4ee218f529a9e887075713a5175a6de51 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | paulschreiber/people | 10698cebbe33721b0965cdb71c5243f1aab41e3a | f9c6cc91a73abfa3ca94d180d24a243e795cfecc | refs/heads/main | 2023-03-26T22:32:42.886094 | 2021-03-19T20:46:34 | 2021-03-19T20:46:34 | 349,859,408 | 0 | 0 | CC0-1.0 | 2021-03-20T23:46:16 | 2021-03-20T23:46:16 | null | UTF-8 | Python | false | false | 3,113 | py | from spatula.pages import HtmlListPage, CSS
from common import Person, PeopleWorkflow
def split_name(name):
commas = name.count(",")
if commas == 0:
first, last = name.split(" ", 1) # special case for one legislator right now
elif commas == 1:
last, first = name.split(", ")
else:
... | [
"dev@jamesturk.net"
] | dev@jamesturk.net |
66db5b2b17581cf7d6911120bd92ff11988d5139 | eb722922339781fa6bd9937e69383fcd06256738 | /day1/kapua-python-client/test/test_users_api.py | 53701a8dd357149de482463aa66c28edf8e7f935 | [
"MIT"
] | permissive | mrsrinivas/diec | 6a0c5da26ff23170b71217bfbc810bb98a897a83 | ae9a5203b506d5cc18cb381666351bf9ce6b9b6c | refs/heads/master | 2021-01-05T05:41:19.394898 | 2020-01-15T06:24:33 | 2020-01-15T06:24:33 | 240,901,175 | 1 | 0 | MIT | 2020-02-16T13:59:53 | 2020-02-16T13:59:52 | null | UTF-8 | Python | false | false | 1,680 | py | # coding: utf-8
"""
Eclipse Kapua REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
... | [
"noreply@github.com"
] | mrsrinivas.noreply@github.com |
3fcedfecca9400fc3a910cf7baa375fdf78783e7 | 31e8f4ae77761c8e0f7d8a10df5d0d286a8206e6 | /General syntax/objects.py | ff5881c79627ee0e44ff13b3f66f64e1c9b8d530 | [] | no_license | PhillMue/python-programs | ce3989e9e19ee1b65eddf2c9210d79feb93b7921 | 62981a842a51acd4f0bf154cec26b89dc19b51a8 | refs/heads/master | 2021-01-10T16:05:47.277561 | 2016-02-10T01:14:36 | 2016-02-10T01:14:36 | 50,907,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/python
class Egg:
def __init__(self, type = "fried"):
self.type = type
def whatType(self):
return self.type
def main():
fried = Egg()
scrambled = Egg("scrambled")
print(scrambled.whatType())
if __name__ == "__main__":
main()
| [
"muenzuve@gmail.com"
] | muenzuve@gmail.com |
da48ec5debbd4bf03add54a6b4f63cd0d6b92bff | cfa944956e11dd113324cfe0be1190467e8f6475 | /image_gallery/migrations/0002_image_graphic.py | bfd653bdaa4adc47281b81f80c1a5f23e7d48fa3 | [] | no_license | ConnorFieldUser/Image-Gathering-Site | 3c02262771ab1a8889960b088f32fef441f040f8 | 6e99018c68e0409d28ba23bcb41225598fbacdf6 | refs/heads/master | 2021-01-12T12:22:15.625037 | 2017-01-10T23:58:31 | 2017-01-10T23:58:31 | 72,463,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-31 21:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('image_gallery', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"conquest.field@gmail.com"
] | conquest.field@gmail.com |
9e9bb0b62ac47e9d440fecc65ce060aaa11a0e0e | e547f7a92e7a1c1d79f8631f9e8ee8a93879a4eb | /src/human_study/program_20/original.py | 374966dbf2d4e29211ad069bcfbb8405afd41b28 | [] | no_license | gsakkas/seq2parse | 3c33ec7bc6cc6e4abd9e4981e53efdc173b7a7b9 | 7ae0681f1139cb873868727f035c1b7a369c3eb9 | refs/heads/main | 2023-04-09T12:29:37.902066 | 2023-01-18T21:32:12 | 2023-01-18T21:32:12 | 417,597,310 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | word = input()
vowels = 0
cons = 0
for i in word:
if i == "y":
(vowels = vowels + 1) and (cons = cons + 1)
elif i == "a" or i == "e" or i == "i" or i == "o" or i == "u":
vowels = vowels + 1
elif i != "a" and i != "e" and i != "i" and i != "o" and i != "u":
cons = cons + 1
print(str(v... | [
"george.p.sakkas@gmail.com"
] | george.p.sakkas@gmail.com |
aedb3332dfa6f763736a702c5d35229632b65ea4 | c231bdc8d01465c9dda429be2d6535f8e8ea5ece | /Complete Python Masterclass/Source_Codes/lesson_72_example.py | a73c3f7e19d6358811e160d388333adf3c82b049 | [
"MIT"
] | permissive | jessequinn/Udemy | 1634049711eb888f59b697d883555767e38598a3 | e3d652c8144660ae155149d897b6364416106c7c | refs/heads/master | 2021-08-18T09:58:57.274897 | 2018-10-26T22:50:26 | 2018-10-26T22:50:26 | 142,214,616 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | import shelve
fname = "lesson_72_book.db"
books = shelve.open(fname)
books["recipes"] = {"blt": ["bacon", "lettuce", "tomato", "bread"],
"beans_on_toast": ["beans", "bread"],
"scrambled eggs": ["eggs", "butter", "milk"],
"soup": ["tin of soup"],
... | [
"me@jessequinn.info"
] | me@jessequinn.info |
e76d811bff743bd4b0ed9565b54bd6361efe9efb | 68720ce7e968133614b9345898780bd80dbb8595 | /code/UI/OpenAPI/python-flask-server/openapi_server/test/test_result_controller.py | bda74435150f7968898e64716bc4d65c989ff1b0 | [
"MIT",
"Apache-2.0"
] | permissive | RichardBruskiewich/RTX | 82a2ec6d129250ae0440eac8b91867fc8b044c1d | ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f | refs/heads/master | 2022-12-27T05:00:28.901542 | 2020-09-08T19:06:32 | 2020-09-08T19:06:32 | 294,197,551 | 0 | 0 | MIT | 2020-09-09T18:34:06 | 2020-09-09T18:34:05 | null | UTF-8 | Python | false | false | 2,531 | py | # coding: utf-8
from __future__ import absolute_import
import unittest
from flask import json
from six import BytesIO
from openapi_server.models.feedback import Feedback # noqa: E501
from openapi_server.models.feedback_response import FeedbackResponse # noqa: E501
from openapi_server.models.result import Result #... | [
"edeutsch@systemsbiology.org"
] | edeutsch@systemsbiology.org |
b8bade15838b61bce3c004e86e8f035fb5872963 | 09e05aab22d7fd6d58a98736d1ed81c16b2aabaa | /legacy/easy_en_rebuild.py | 0f797c22a8a7009a38dcee42240b1187355c2772 | [] | no_license | gridl/rime_dict | 7beeebbf0aa33cc3e88fda771f57455ee1105322 | 9a95ef7215d47517b6e8281086a334deac2862d6 | refs/heads/master | 2020-09-05T00:49:25.911399 | 2017-04-12T11:19:06 | 2017-04-12T11:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | #!/usr/bin/env python
# coding: utf-8
HEAD = """
---
name: easy_en
version: "0.2"
sort: by_weight
use_preset_vocabulary: false
...
"""
if __name__ == '__main__':
new_lines = []
count = 0
with open('easy_en.dict.yaml.bak', 'r') as f:
WORD_START = False
for line in f.readlines():
... | [
"novoreorx@gmail.com"
] | novoreorx@gmail.com |
901dfc7fe9ae17c0e9c59d3f364d1ee40d3ca650 | e2c891f932ec4b5851e2a62247ca34c3fa8b8026 | /Artificial_Neural_Network_Case_Study.py | 1ad8215f9821796ec0338e0e0797d4c312b5db99 | [] | no_license | gridl/Deep-Learning-for-Data-Science | 6a43824117f27449899cb5a088d6b094c0c695a6 | d93e2481e843d386d937c9c3725d1e66824b3d29 | refs/heads/main | 2023-03-11T17:21:15.543586 | 2021-02-26T09:07:48 | 2021-02-26T09:07:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,864 | py | #----------------------- Artificial Neural Network for classification --------------------#
#importing required libraries
import numpy as np
import pandas as pd
import tensorflow as tf
from sklearn.compose import ColumnTransformer
from sklearn.preprocessing import OneHotEncoder
from sklearn.preprocessing import LabelEn... | [
"noreply@github.com"
] | gridl.noreply@github.com |
5fe7beed7294aa81b0472a6588f32888d6dec58c | 8f54ba6e1af12aa438d92d419d4cc8714a1b2c70 | /apps/migrations/0002_auto_20181116_1023.py | 61b28c280571ada780984c6606779af9a9090e8f | [] | no_license | handole/master_awal | 6900ad4c3c5afcd01f28df0e843deab25916882b | 0ce808ca8372bcc4c0fe9f4986e162916fe42182 | refs/heads/master | 2020-04-06T16:56:31.957719 | 2018-11-23T06:51:50 | 2018-11-23T06:51:50 | 157,640,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # Generated by Django 2.1.3 on 2018-11-16 10:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('apps', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='kegiatan',
old_name='parent_id',
ne... | [
"denihhandoko@gmail.com"
] | denihhandoko@gmail.com |
2a3851792f359c42abfbe8a63953b66a52841f78 | 080397d0e6d573ef6d7eb9c2bc6b1b5787cfe0d1 | /scripts/github.py | 70674de25cf432dee41009a1dc75fd6f6291ffcd | [
"Beerware"
] | permissive | DEV3L/twitter-learning-journal | ecd0eb922e369b10fd6e039d652eed7078601139 | a51d22a60a3d1249add352d8357975a7f2db585c | refs/heads/master | 2021-09-20T17:27:11.157096 | 2018-08-13T11:58:34 | 2018-08-13T11:58:34 | 114,556,953 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | import hashlib
import json
import pickle
import time
from datetime import datetime, timedelta
import requests
from app.twitter_learning_journal.services.logging_service import LoggingService
logger = LoggingService('github')
pickle_dir = './data/pickle/github/'
json_dir = './data/json/'
repository_commits_json_fil... | [
"jus.beall@gmail.com"
] | jus.beall@gmail.com |
834ba0ba601732121582f396188bbd84d00af3c6 | 3be8b5d0334de1f3521dd5dfd8a58704fb8347f9 | /dependencies/mongo/marrow/mongo/query/__init__.py | d96a9ada107687739d44c0c2cf65b1a72a82a80e | [
"MIT"
] | permissive | bmillham/djrq2 | 21a8cbc3087d7ad46087cd816892883cd276db7d | 5f357b3951600a9aecbe6c50727891b1485df210 | refs/heads/master | 2023-07-07T01:07:35.093669 | 2023-06-26T05:21:33 | 2023-06-26T05:21:33 | 72,969,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # encoding: utf-8
"""MongoDB filter, projection, and update operation helpers.
These encapsulate the functionality of creating combinable mappings
"""
from .ops import Ops
from .q import Q
__all__ = ['Ops', 'Q']
| [
"bmillham@gmail.com"
] | bmillham@gmail.com |
67a17d6b837e66c7bf7452b9cf9afe0c5c94cabd | c741f04141784a2571d2d27d95e0d994e4584ab1 | /learning/py3/连接mysql/PyMySQL/test2.py | dd1616ad7948bf324b3ab01f208f297f24fc4f67 | [] | no_license | haodonghui/python | bbdece136620bc6f787b4942d6e1760ed808afd4 | 365062ba54297c81093b7f378742e76d438658b7 | refs/heads/master | 2022-02-03T23:52:37.288503 | 2022-01-27T05:23:25 | 2022-01-27T05:23:25 | 191,729,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from pythonmysql2 import DB
if __name__ == '__main__':
with DB(host='59.110.228.110', port=3306, database='test_tea_uc_0', user='test_tea_uc_0',
passwd='L~+SJ*F^kon[t+10l6') as db:
db.execute('select * from uc_user limit 0,10')
print(db)
for i in db:
print(i)
| [
"haodonghui@yestae.com"
] | haodonghui@yestae.com |
d2152f5f4495763790714cff55d32e950c14de12 | d80e82c3f9e4dbe5185bce63869d9634a6188c3f | /spiders/kiehls.py | 02d258b748b71b59cdf714e52382ef7412ab0e8f | [] | no_license | yingl/ofashion_spider | 8020d64cc9e1f6e8d5b6af6cd0ed1b9b6a484a76 | 55be2425aecec81fd4d424d4aa90f15e9e54dc72 | refs/heads/master | 2021-07-04T11:42:21.777726 | 2020-08-13T08:50:36 | 2020-08-13T08:50:36 | 142,376,040 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | import sys
sys.path.append('../')
import of_spider
import of_utils
class Kiehls(of_spider.Spider):
def parse_entry(self, driver):
elements = of_utils.find_elements_by_css_selector(driver, 'div.b-product_tile > div > a.b-product_img-link')
return [element.get_attribute('href').strip() for element in... | [
"linying_43151@163.com"
] | linying_43151@163.com |
6b49fdf0a00d07d13f29fd208f3cfb52139b5e92 | 3cdb4faf34d8375d6aee08bcc523adadcb0c46e2 | /web/env/lib/python3.6/site-packages/django/contrib/gis/forms/__init__.py | 237cbace8d30ee6a021eb15686219c195ea38e27 | [
"MIT",
"GPL-3.0-only"
] | permissive | rizwansoaib/face-attendence | bc185d4de627ce5adab1cda7da466cb7a5fddcbe | 59300441b52d32f3ecb5095085ef9d448aef63af | refs/heads/master | 2020-04-25T23:47:47.303642 | 2019-09-12T14:26:17 | 2019-09-12T14:26:17 | 173,157,284 | 45 | 12 | MIT | 2020-02-11T23:47:55 | 2019-02-28T17:33:14 | Python | UTF-8 | Python | false | false | 298 | py | from django.forms import * # NOQA
from .fields import ( # NOQA
GeometryCollectionField, GeometryField, LineStringField,
MultiLineStringField, MultiPointField, MultiPolygonField, PointField,
PolygonField,
)
from .widgets import BaseGeometryWidget, OpenLayersWidget, OSMWidget # NOQA
| [
"rizwansoaib@gmail.com"
] | rizwansoaib@gmail.com |
bb9eeea7bd10319c790c90c20a446e981c3eca26 | cce1e235c2c8e58d83af6dbadeb471ca62b710a1 | /hackerrank/algorithms/implementation/counting_valleys.py | 9a9576d382794d43cc9b84139336aa5f87b2ac11 | [] | no_license | SebastianThomas1/coding_challenges | 6b51ce046b458c44db809687b6809d16d066566f | bd3bc6be7a975b6255e4b2198c953d56bd74e75a | refs/heads/master | 2023-03-03T00:18:00.147369 | 2021-02-08T21:52:02 | 2021-02-08T21:52:02 | 336,688,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Sebastian Thomas (coding at sebastianthomas dot de)
# https://www.hackerrank.com/challenges/counting-valleys
#
# Counting Valleys
def counting_valleys(path):
count = 0
level = 0
for step in path:
if level == 0 and step == 'D':
count += 1
level += 1 if step == 'U' else -1
... | [
"sigma.online@gmx.de"
] | sigma.online@gmx.de |
2926fcc46bbc1bdc16771b1d4185ca0c1335aac3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/commonsens.py | c498a329a1db4ec6604f80e3f0c4c94437fa7c9b | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 254 | py | ii = [('CookGHP3.py', 1), ('SadlMLP.py', 1), ('ProuWCM.py', 1), ('KiddJAE.py', 1), ('WadeJEB.py', 2), ('NewmJLP.py', 2), ('MereHHB3.py', 1), ('HogaGMM.py', 1), ('BentJRP.py', 1), ('LyttELD3.py', 1), ('StorJCC.py', 3), ('DibdTRL.py', 1), ('TaylIF.py', 3)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
4581a636f0b3a49cc170ab2e359307a4039e5d25 | 656315b686eedba99b77b83d9932f44221741024 | /bimaapp/migrations/0004_auto_20181026_1246.py | 2f0af244c4518cb0ff5c8527559cd219c41ac325 | [] | no_license | edithamadi/capstone | 8e370314e612b0c7064b2044a673f465636bdadf | 8a2b8fe9e2e5a9ac5bc62a69ed726fbfcd67d349 | refs/heads/master | 2022-12-09T04:31:23.319789 | 2018-10-26T13:26:27 | 2018-10-26T13:26:27 | 154,452,359 | 0 | 1 | null | 2022-11-22T02:54:00 | 2018-10-24T06:47:29 | Python | UTF-8 | Python | false | false | 624 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-10-26 09:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bimaapp', '0003_auto_20181026_1212'),
]
operations = [
migrations.AlterField(... | [
"you@example.com"
] | you@example.com |
400884ea4db2ce48b70df29249e681a39393b7dd | 953c4f50525be9e3431fb30c84a381b5f7d32e6c | /shoot_asteroid_game/game/__init__.py | 742f7fa84690089ff091740f7031b25033e65c90 | [
"MIT"
] | permissive | chivitc1/pygamedemo | df5269193f195f636cb0664015581f149ea426ce | e1515ed9b94171a9e61a92ecec9da8cdcbe0efde | refs/heads/master | 2020-12-04T20:21:22.879997 | 2020-01-05T09:10:14 | 2020-01-05T09:10:14 | 231,892,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | from . import load, resources, util | [
"chivitc1@gmail.com"
] | chivitc1@gmail.com |
e9db7f9773ebdb8a5fe09a6308512a8b9017a922 | 1bddfdf465b71a6a4b662ee2600aebc53115a558 | /integrationtest/vm/installation/test_zstack_installation_on_centos7.py | 8dfeef9fa3ac2444c8b4ded22e1aee530925407f | [
"Apache-2.0"
] | permissive | shaohan0228/zstack-woodpecker | 169ffa042ede442e19f2ecb34b255b35948e49de | ac36ae033cc521e2f877763de3ff55e4762e3ae0 | refs/heads/master | 2021-12-04T13:33:02.607641 | 2015-04-05T20:31:19 | 2015-04-05T20:31:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,110 | py | '''
@author: Youyk
'''
import os
import tempfile
import subprocess
import time
import uuid
import zstacklib.utils.ssh as ssh
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.test_state as test_state
import zstackwoodpecker.operations.resou... | [
"xing5820@gmail.com"
] | xing5820@gmail.com |
84ff7b7427edf30ddcbc14443f93726d99e51263 | 04c25f2f8fcb7681c3ad422a9667a4409e5b6fb9 | /Components/New Tab with Orphaned Components.py | 3a92659f3fb5bed023582cd6759243289126918b | [
"Apache-2.0"
] | permissive | NaN-xyz/Glyphs-Scripts | d2b31f89f6abc63b875b0d16e7a8def5bf714daa | bdacf455babc72e0801d8d8db5dc10f8e88aa37b | refs/heads/master | 2020-11-25T21:45:19.573232 | 2019-12-18T11:56:54 | 2019-12-18T11:56:54 | 228,859,288 | 1 | 0 | Apache-2.0 | 2019-12-18T14:38:54 | 2019-12-18T14:38:53 | null | UTF-8 | Python | false | false | 1,372 | py | #MenuTitle: New Tab with Orphaned Components
# -*- coding: utf-8 -*-
from __future__ import division, print_function, unicode_literals
__doc__="""
Opens a new tab in the current font window containing all glyphs (of the current master) that have components that point to non-existent glyphs, i.e., no base glyphs.
"""
t... | [
"res@glyphsapp.com"
] | res@glyphsapp.com |
aba6f965f5d13f3acc0aab3c9b22b38cbe7cddc9 | dacdebab897f9287f37a2e85c5705a926ddd36aa | /tests/linting/singularity/positive.smk | 0b6d741a07359e32402030d4870b1db0a0114979 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | snakemake/snakemake | 5d4528193d87786d7b372ca7653ece302ff46965 | 27b224ed12448df8aebc7d1ff8f25e3bf7622232 | refs/heads/main | 2023-09-02T08:37:04.323976 | 2023-08-11T10:02:34 | 2023-08-11T10:02:34 | 212,840,200 | 1,941 | 536 | MIT | 2023-09-11T09:51:44 | 2019-10-04T14:58:11 | HTML | UTF-8 | Python | false | false | 177 | smk | rule a:
input:
"test.in"
output:
"test.out"
log:
"logs/a.log"
container:
"docker://bash"
shell:
"cp {input} {output}" | [
"noreply@github.com"
] | snakemake.noreply@github.com |
8db392c48a092d23addd080abb4b0a649972d0a3 | f67a037b95865e6b26d15b33ffd25f22e136bbca | /back_end/dashboard/visual/migrations/0002_auto_20210306_0749.py | a6458dbde4845657c421ce653630812f523d9d54 | [] | no_license | mdwazed/value_works | 202e2e531f1d9e1bd672f78801ed379861e371f3 | f46b415a361fdf39c233d56894178beb8d9d7fcd | refs/heads/main | 2023-03-18T17:15:31.318861 | 2021-03-10T21:20:57 | 2021-03-10T21:20:57 | 345,302,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # Generated by Django 3.1.7 on 2021-03-06 07:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('visual', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='marketing',
name='social_media_followe... | [
"mdwazed@gmail.com"
] | mdwazed@gmail.com |
4a5734e62f5b43ab5f1c4b2cbd8ffcd0494e4712 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201029154741.py | 0ff7fcc8326fe02c0ac0d5f833f7bcdfd781033b | [] | 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 | 4,085 | py | from django import forms
from wagtail.core import blocks
from wagtail.images.blocks import ImageChooserBlock
from wagtail.contrib.table_block.blocks import TableBlock
#Walidacja problemu
from django.core.exceptions import ValidationError
from django.form.utils import ErrorList
class TitleBlock(blocks.StructBlock):
... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
86d64c7699ff3156526046540c529c1ef2b6d209 | c9cf1c1e34907952aea74a5f2c548de653c325ab | /substanced/evolution/tests.py | 0761a9d0a2935da74d302c98679b6ed894857f97 | [
"BSD-3-Clause-Modification"
] | permissive | dextermilo/substanced | 9c02f35aa3265b08699a8f63e33f057fdee8570e | dde61c10b6c89cc0a9e217414be89b3ebafea49f | refs/heads/master | 2021-01-20T15:50:59.354739 | 2012-09-13T23:05:41 | 2012-09-13T23:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import unittest
from pyramid import testing
class Test_add_evolution_package(unittest.TestCase):
def _callFUT(self, config, package_name):
from . import add_evolution_package
return add_evolution_package(config, package_name)
def test_it(self):
from repoze.evolution import ZODBEvolutio... | [
"chrism@plope.com"
] | chrism@plope.com |
31412a4863c98a436a937e0b55b218a7a4ae21a6 | 317ac62940ad954d97cc7123c48cd3beaf6176c1 | /wincstar/urls.py | 5da93e1e3538d3af703720501ecb474392e5784d | [] | no_license | kennethreitz-archive/winchestar | dbc3fc4427b401eb23d9f89f69aaacc0888e3ac2 | 3b8bef46ab5ff06ca9bb41fd671f633db8d95a13 | refs/heads/master | 2023-08-16T03:50:48.981128 | 2011-02-23T02:06:19 | 2011-02-23T02:06:19 | 945,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | from django.conf.urls.defaults import *
from ripper.views import LatestArticlesFeed
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^wincstar/', include('wincstar.foo.urls')),
# (r'^wincstar/', include('wincst... | [
"me@kennethreitz.com"
] | me@kennethreitz.com |
c95d537fcfc158de0564e887cffa2d6f75698375 | 31175432b0573ac462ec17e950db09b026e1960b | /EventSystem/events/migrations/0001_initial.py | b15c984cb50ed961cfd927dfa0531db332bbc81e | [] | no_license | Rositsazz/EventSystem | 735fb1fa7cff583fe3747e4f42bb6b4f0f849e57 | a5f4d77a946ba4bf705b01eb2d8c087b0cd68c5c | refs/heads/master | 2021-01-01T06:40:31.139468 | 2017-10-10T21:33:44 | 2017-10-10T21:33:44 | 97,480,394 | 0 | 0 | null | 2017-07-24T12:02:57 | 2017-07-17T13:38:02 | Python | UTF-8 | Python | false | false | 2,237 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-19 12:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"ross_zz@mail.bg"
] | ross_zz@mail.bg |
576bbc430d75989ad6ccbd9174c61acf20cb08bc | d2302f8cb7bb64e0b99d73ace505ca5ec2accb88 | /webSys/dbweb/util/get_backtest_result.py | 345eba0567c6260eb9d6b3ab120254716798881c | [
"Apache-2.0"
] | permissive | Qiumy/FIF | 7eec3ea7ed12bcc41f0dbbd85737f9ec0197e49b | 8c9c58504ecab510dc0a96944f0031a3fd513d74 | refs/heads/master | 2021-05-05T05:24:53.745948 | 2018-01-24T03:05:01 | 2018-01-24T03:05:01 | 118,703,258 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from flask import current_app
import pickle as pkl
import numpy as np
def get_max_dd_ddd(xs):
index = xs.index
xs = xs.values
ans = {}
max_dd_end = np.argmax(np.maximum.accumulate(xs) / xs)
if max_dd_end == 0:
max_dd_end = len(xs) -1
max... | [
"1415456511@qq.com"
] | 1415456511@qq.com |
ef268c043a2626a24af6c9504966db5931bfd103 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Lowest_Exhaust_Air_Static_Pressure_Sensor.py | 1b8085b7bfad5cea5ce96ff5a18ddb5e6142384d | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Exhaust_Air_Static_Pressure_Sensor import Exhaust_Air_Static_Pressure_Sensor
class Lowest_Exhaust_Air_Static_Pre... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
8fcf31e2caef4084489af3f62da113a417dc485b | 24a291e5eb298b7c2b4f1105d789ac488457b59c | /Python_Pandas_Basics/Pandas05_07_DataFilterDoit02Tail_김민교.py | a184e6d06b0b4940f6c1c18494cc5fa8d19acdd8 | [] | no_license | gmrdns03/Python-Introductory-Course_Minkyo | da3afff502ed44f178d5b3885fbb1b01249ad1de | ef0d4e16aee3dba6a4a10c422ef68b1465745833 | refs/heads/main | 2023-05-29T16:08:31.814542 | 2021-06-23T13:32:14 | 2021-06-23T13:32:14 | 379,300,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py |
# coding: utf-8
# In[1]:
import pandas as pd
# In[2]:
df = pd.read_csv('./../data/gapminder.tsv', sep = '\t')
# In[4]:
number_of_rows = df.shape[0]
print(number_of_rows, "\n\n")
last_row_index = number_of_rows - 1
print(df.loc[last_row_index])
# In[5]:
print(df.loc[len(df)-1])
# In[6]:
print(df.ta... | [
"noreply@github.com"
] | gmrdns03.noreply@github.com |
2d25f19511b3b0eaf0f668dc862f3a761b6a0ee7 | df71cc174ec445af35c230a4cfa48949dfdc66ed | /warehouse/routes.py | fb689b39d5983115b470b15ee78f101b0e5abbec | [
"Apache-2.0"
] | permissive | vladimir-v-diaz/warehouse | e8f60c972cb0bb5678e3e60e6b9c872791632a81 | 3548a62e858f21274a98265bcee2709de84cf40a | refs/heads/master | 2021-01-14T13:21:05.863959 | 2015-04-14T22:08:56 | 2015-04-14T22:08:56 | 33,875,992 | 0 | 0 | null | 2015-04-13T15:16:05 | 2015-04-13T15:16:04 | Python | UTF-8 | Python | false | false | 2,252 | py | # 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 to in writing, software
# distributed under the Li... | [
"donald@stufft.io"
] | donald@stufft.io |
4c4e64f3ab3b447b5ebf597d971f7ccb10853bb6 | 24e7e0dfaaeaca8f911b40fcc2937342a0f278fd | /venv/Lib/site-packages/pygments/lexers/rust.py | 6a28a88083ade0d57a7d2500ca4a5a482776b417 | [
"MIT"
] | permissive | BimiLevi/Covid19 | 90e234c639192d62bb87364ef96d6a46d8268fa0 | 5f07a9a4609383c02597373d76d6b6485d47936e | refs/heads/master | 2023-08-04T13:13:44.480700 | 2023-08-01T08:36:36 | 2023-08-01T08:36:36 | 288,455,446 | 1 | 0 | MIT | 2021-01-22T19:36:26 | 2020-08-18T12:53:43 | HTML | UTF-8 | Python | false | false | 7,983 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.rust
~~~~~~~~~~~~~~~~~~~~
Lexers for the Rust language.
:copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer, include, bygroups, words, default
from pygments... | [
"50989568+BimiLevi@users.noreply.github.com"
] | 50989568+BimiLevi@users.noreply.github.com |
63ac8ad6d0604f51c89897f9c59a72a7c7743ee5 | 0ad2458c85ce545b1d3a4b75dabe2c94ed8c2518 | /unsupervised_learning/0x03-hyperparameter_tuning/6-bayes_opt.py | 0060fa69fc5503cf8de63c50f543db6d7d37d819 | [] | no_license | felipeserna/holbertonschool-machine_learning | fc82eda9ee4cb8765ad0ffb5fa923407b200480d | 161e33b23d398d7d01ad0d7740b78dda3f27e787 | refs/heads/master | 2023-07-06T20:26:12.892875 | 2021-08-17T17:03:30 | 2021-08-17T17:03:30 | 317,288,341 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | #!/usr/bin/env python3
"""
Trains a CNN
to classify the CIFAR 10 dataset.
Optimizes an ML model of your choice using GPyOpt.
"""
import tensorflow.keras as K
from GPyOpt.methods import BayesianOptimization
def preprocess_data(X, Y):
"""
Returns: X_p, Y_p
"""
# Preprocessing needed in each Keras Appli... | [
"feserna86@gmail.com"
] | feserna86@gmail.com |
f9435c02e74b96610e79f31e6ea76f41f45b2c62 | 19d6bddc562b8cc3c7a6e67465f7601c74979e05 | /results/190903/failed/deterministic-super-tight-big-novmax.py | d2804ed01d3b14906137b6c8649ae6a2f93d0301 | [] | no_license | SuReLI/llrl | 3bca1d1c755e5c59a5d242c18df997ed17f546d0 | 5f581cdded3cdecf69a8af76dc624494d82a4034 | refs/heads/master | 2023-01-08T04:04:28.358563 | 2020-11-06T10:27:33 | 2020-11-06T10:27:33 | 169,303,041 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | """
Lifelong RL experiment in constant transition function setting
"""
import numpy as np
from llrl.agents.rmax import RMax
from llrl.agents.lrmax import LRMax
from llrl.agents.maxqinit import MaxQInit
from llrl.agents.lrmaxqinit import LRMaxQInit
from llrl.utils.env_handler import make_env_distribution
from llrl.exp... | [
"erwan.lc2@gmail.com"
] | erwan.lc2@gmail.com |
27d2dd60953610f6b4aae55573fdfa50e6ed8b50 | 455f68f778063b003ee8cb1dc4c40191276423a4 | /github/tests/IssueComment.py | 59741fbc64ad3167ebb31a9be9e31a2928e53f30 | [
"MIT"
] | permissive | iModels/ffci | 6dd02c3949e2063247e05af206fcf44f49825913 | b8a0e35bae387bc9aac759bffc4fd310d0339342 | refs/heads/master | 2021-01-10T10:13:52.724862 | 2016-04-26T19:33:01 | 2016-04-26T19:33:01 | 54,229,819 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | # -*- coding: utf-8 -*-
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | [
"tengyuma10717@gmail.com"
] | tengyuma10717@gmail.com |
d5c373e7a555a36c6f00cbc6ab0417d8cf6b2fce | b9e6b97149c1e268a730833f7559e5814e745b24 | /ugandatowns/apps/core/virtualhostmiddleware.py | 7e56fc8a360d1994381fd04c5a21b8746c50ed9e | [] | no_license | amosbaranes/ugandatowns | 9ab597ce286a84b569b9de4c7c57062fb3b8f656 | c8fd095100f5e7d0de7f936c9383a842593f56d4 | refs/heads/master | 2023-02-27T09:52:52.136091 | 2021-02-03T06:23:54 | 2021-02-03T06:23:54 | 335,282,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | class VirtualHostMiddleware:
virtual_hosts = {
"www.drbaranes.com": "academycity.drbaranes_com_urls",
"drbaranes.com": "academycity.drbaranes_com_urls",
"www.ugandatowns.com": "academycity.ugandatowns_com_urls",
"ugandatowns.com": "academycity.ugandatowns_com_urls",
"academyc... | [
"amos@drbaranes.com"
] | amos@drbaranes.com |
e99a70dc5ce30c1fe1969033b4946d1d3f95a7c5 | 9d454ae0d5dd1d7e96e904ced80ca502019bb659 | /386_lexicalOrder.py | a20075b7364ec44abd653b53a45ae6354a6651bb | [] | no_license | zzz686970/leetcode-2018 | dad2c3db3b6360662a90ea709e58d7facec5c797 | 16e4343922041929bc3021e152093425066620bb | refs/heads/master | 2021-08-18T08:11:10.153394 | 2021-07-22T15:58:52 | 2021-07-22T15:58:52 | 135,581,395 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | def lexicalOrder(n):
## O(n) space and O(nlog(n)) time
# if not n: return ['0']
# nums = list(map(str, range(1, n+1)))
# nums.sort()
# return [int(x) for x in nums ]
## O(n) time O(1) space
ans = [1]
## len(ans) < n
while len(ans) < n:
next_number = ans[-1] * 10
## while
## if the number is greater t... | [
"1564256031@qq.com"
] | 1564256031@qq.com |
8b68f318f1bc641ddbbad720e40aa79e2b533ad9 | 6676fe55c3f34aa813c1af0e4de632973a4443df | /pre_processing.py | 158eae150f6f348bd61b41f99ff2a89dd31bcdfc | [] | no_license | ananyajana/fibrosis_code | b4b3db16823e83c520749031b5c098fde38a5f16 | 779487c16b30c78e8ade66a05cd3e5b0d192d95e | refs/heads/master | 2022-12-31T00:52:45.025405 | 2020-10-23T21:02:28 | 2020-10-23T21:02:28 | 297,182,236 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,268 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 27 15:55:22 2020
@author: aj611
"""
import numpy as np
from scipy.ndimage.interpolation import map_coordinates
from scipy.ndimage.filters import gaussian_filter
from random import randint
def add_elastic_transform(image, alpha, sigma, pad_size=30... | [
"ananya.jana@gmail.com"
] | ananya.jana@gmail.com |
21762b5f67b7e9fcf74939404d034234d67b3869 | 37d42bf76b9d063a92450d8f1929728e29d99aef | /test_calculator.py | 4e2f9bf3531f55a6ba6275fb743ca5da6b924e9a | [] | no_license | iniej/calculator_in_python | e190d5409d8316b6b3f7f853099942798f8b0060 | 5daa32599c77d6eb453432fc075d8b833df8e094 | refs/heads/master | 2020-03-31T14:44:45.262987 | 2018-10-09T19:19:19 | 2018-10-09T19:19:19 | 152,307,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | import unittest
import ui
class TestCalculator(unittest.TestCase):
def test_calculator_addition(self):
# Test addition function with some data.
self.assertEqual(7, ui.addition(2,5))
self.assertEqual(40, ui.addition(15,25))
def test_calculator_substraction(self):
# Test addi... | [
"you@example.com"
] | you@example.com |
66f1e0b3841d7933492ba7dc05af9b46ebe6c335 | fe3ecb9b1ddd8de17b8cc93209134f86cd9c4a6f | /4_Python_ML/chap02_Matplot/lecture/step03_multi_line.py | 68d2dcf210ed80f275dea50aef8a9b302e5a9a6d | [] | no_license | nsh92/Bigdata-and-Machine-Learning-Education-at-ITWILL | d1a7292ee4865a3d0c664dd6ecf3afc0d6325847 | 3cb5661001597499178a2c85f4ccf70dcf0855d6 | refs/heads/master | 2022-11-21T23:10:51.421708 | 2020-07-23T12:49:11 | 2020-07-23T12:49:11 | 275,540,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # -*- coding: utf-8 -*-
"""
marker, color, line style, label
"""
import matplotlib.pyplot as plt
import numpy as np
plt.style.use('ggplot') # 차트 격자 제공
# data 생성
data1 = 0.5 + 0.1 * np.random.randn(100)
data2 = 0.7 + 0.2 * np.random.randn(100)
data3 = 0.9 + 0.1 * np.random.randn(100)
data4 = 0.3 + 0.3 * np.random.randn... | [
"totols1092@gmail.com"
] | totols1092@gmail.com |
c473acc91b9de5b2cf3fd8aa4b64023e0668c416 | 9d00fb8ead6eee1485bfdda98e8eb79dcd72334b | /main/migrations/0001_initial.py | a8a5c99127624d57527fe0960939a2c127eafa64 | [] | no_license | Servir-Mekong/landcoverPortal | 02101e2c29e5349d3dc4498eca3de9972ba35361 | cb3ea19dfe749c26aa0846347fdac15ffb09983d | refs/heads/develop | 2023-08-04T11:53:11.929436 | 2021-01-11T04:21:48 | 2021-01-11T04:21:48 | 79,327,925 | 5 | 10 | null | 2022-11-22T01:53:50 | 2017-01-18T10:10:54 | JavaScript | UTF-8 | Python | false | false | 2,582 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-06-28 09:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"bionicbiplov45@gmail.com"
] | bionicbiplov45@gmail.com |
bbba114c15c848c7f7f2aca3c6994093541c9cee | 5dfc6633d7df6dad8bbafa7edf0ca70482cf765d | /docs/conf.py | c4c5b4bce7aa12b8d97b1845442955ed11e9c261 | [
"BSD-2-Clause"
] | permissive | jonathansick/delphinus | e9ea31971bcba29ae4dfce3063757118a900a4c2 | 0df2e53da28c12c207aadae9433f9da745d88dc4 | refs/heads/master | 2021-01-19T17:10:36.118824 | 2015-03-14T18:06:12 | 2015-03-14T18:06:12 | 9,681,780 | 0 | 1 | null | 2013-07-18T04:32:49 | 2013-04-25T21:27:43 | Python | UTF-8 | Python | false | false | 5,319 | 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... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
44c12582cccdd2e60d9877737943c729770782a8 | 9875dfce571669d8ce3f6523651dc8e1ebf661d4 | /apps/appbuy/admin.py | ffe652fc203b2456fbeceba6d8be8fb5fe1575dd | [
"MIT"
] | permissive | AppforallHQ/users | a80c0a08e3d660aed21af744383c3d42288c58c5 | bb5f393ef3966dbde019a1a07f244b71a342a7ac | refs/heads/master | 2020-06-30T20:17:37.641107 | 2016-11-21T10:53:52 | 2016-11-21T12:57:38 | 74,354,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import BoughtApp, BlackList, AccountBalance
from .views import capp
def resend_order(modeladmin, request, queryset):
for q in queryset:
args = [str(i) for i in [q.id, q.itunes_id, q.user.id, q.apple_id]]
capp.send_task('apple.ta... | [
"hi@appforall.ir"
] | hi@appforall.ir |
a7354dab22b1a94b9bdd38fd1e32246243b1581c | 5b624394ebeea0e3bac7cbd86be9a5a62dc9f196 | /lanzou/gui/dialogs/login.py | d1e52e1b0ace324f1146aeb3ce849a3d99b8f5a9 | [
"MIT"
] | permissive | dokuros/lanzou-gui | b719cf20738ed998c538b00ec6d3556d87a58a2f | c3c0efae3563cc5f0589f2beb8f7b437c84c5f62 | refs/heads/master | 2022-11-14T07:46:31.866314 | 2020-07-08T05:17:27 | 2020-07-08T05:17:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,720 | py | import os
from PyQt5.QtCore import Qt, pyqtSignal, QPropertyAnimation, QRect
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtWidgets import (QDialog, QLabel, QLineEdit, QTextEdit, QPushButton, QFormLayout,
QHBoxLayout, QVBoxLayout, QMessageBox, QFileDialog)
from lanzou.gui.others impor... | [
"rachpt@126.com"
] | rachpt@126.com |
577b561389d5368c0b7d160908bafc70f2743012 | 429a8441bb9730dcf0e33fedcb5f3672a731b3e7 | /xero_python/assets/models/resource_validation_errors_element.py | 17a96a192045c724247c4c7e596f8a962ac5d944 | [
"MIT"
] | permissive | gregsteelxinja/xero-python | 1a26ec3b05ea156dd6848f2ec313c72e9f39b0e2 | d0473ba91099de3464b3dffa377df5a11ad95afc | refs/heads/master | 2022-12-16T10:54:11.424971 | 2020-09-01T01:00:23 | 2020-09-01T01:00:23 | 291,526,551 | 0 | 0 | null | 2020-08-30T18:16:48 | 2020-08-30T18:16:48 | null | UTF-8 | Python | false | false | 5,414 | py | # coding: utf-8
"""
Xero Assets API
This is the Xero Assets API # noqa: E501
OpenAPI spec version: 2.2.14
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class ResourceValidationErrorsElement(BaseModel):... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
20673ce7f2604c5349518c37f3bfeccf350e3e77 | b50b3cd61ff751c01c7d8e144cc1a9f898688ceb | /script/upload-checksums.py | 4c1cfe9e87797a95cf965eebc5a5efb80f2573bd | [
"MIT"
] | permissive | meseven/electron | 1f961d13f662312e00676ebeca9eb23df21821f9 | 96c886a8f03f796a73769344c0d72a2385191fe7 | refs/heads/master | 2021-01-15T10:41:02.700597 | 2015-04-17T07:53:46 | 2015-04-17T07:53:46 | 34,181,042 | 2 | 0 | null | 2015-04-18T20:12:15 | 2015-04-18T20:12:15 | null | UTF-8 | Python | false | false | 1,688 | py | #!/usr/bin/env python
import argparse
import hashlib
import os
import tempfile
from lib.config import s3_config
from lib.util import download, rm_rf, s3put
DIST_URL = 'https://atom.io/download/atom-shell/'
def main():
args = parse_args()
url = DIST_URL + args.version + '/'
directory, files = download_files... | [
"zcbenz@gmail.com"
] | zcbenz@gmail.com |
2bf30f9c3a4ed42cd1b4f197a99afecc7034f7fd | 6f044a0541ddf467bb6251645c3d8107df5f5756 | /activities/migrations/0018_auto_20160913_0022.py | 03bab8dcc42ae4a28a4df53bcbe68971b7019b0f | [] | no_license | tpvt99/new-social-network-backend | 04ae9f0551c09eceb5fd6b4bcf50430243e53199 | a18d6279a27ba0ce3af1f5d6e985b4b147a4233a | refs/heads/master | 2021-09-04T01:50:43.430961 | 2018-01-14T08:59:41 | 2018-01-14T08:59:41 | 117,415,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-13 00:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('activities', '0017_auto_20160911_1334'),
]
operations = [
migrations.RemoveFi... | [
"tranphong96.hbk@gmail.com"
] | tranphong96.hbk@gmail.com |
a7113a29bcd1d45ff3ef40094228e78b5b0ccd22 | 07bd6d166bfe69f62559d51476ac724c380f932b | /devel/lib/python2.7/dist-packages/webots_ros/srv/_robot_wait_for_user_input_event.py | 7218439720ae5757e30f6423567981d999f14a9c | [] | no_license | Dangko/webots_differential_car | 0efa45e1d729a14839e6e318da64c7f8398edd17 | 188fe93c2fb8d2e681b617df78b93dcdf52e09a9 | refs/heads/master | 2023-06-02T16:40:58.472884 | 2021-06-14T09:19:58 | 2021-06-14T09:19:58 | 376,771,194 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,054 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from webots_ros/robot_wait_for_user_input_eventRequest.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class robot_wait_for_user_input_eventRequest(genpy.Me... | [
"1477055603@qq.com"
] | 1477055603@qq.com |
b8ad74e61c69c8e27a8295cee37ebef4248b0819 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03673/s269181159.py | 8434246d2b17eac51829599513ba667d4d073d6e | [] | 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 | 466 | py | import sys
def input(): return sys.stdin.readline().strip()
def I(): return int(input())
def LI(): return list(map(int, input().split()))
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def S(): return input()
def LS(): return input().spl... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8d9cfca9c453f14c40ab960f5f8210ea120d2b52 | a1e6c25d701eacb0dd893802f7d3db316768dbc4 | /featureExtrator/DecisionTreeModelParamAuto.py | b914a3a0f4743f6b2899dc1005f6938337b84ece | [] | no_license | zhengchengyy/BBDataProcessing | c04f5053266881116f1ab764041f7fd4901561ab | 5d4f98e4b4b7d7e98db2677d00b618d2bb6a74c8 | refs/heads/master | 2021-07-20T22:31:28.894304 | 2020-05-17T14:04:30 | 2020-05-17T14:04:30 | 165,455,028 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | from sklearn.tree import DecisionTreeClassifier
import numpy as np
ndevices = 5
start = 1
end = ndevices
iter_times = 1000
def searchParam(device_no, iter_times):
# ————导入数据————
feature_matrix = np.load('feature_matrixs/feature_matrix_bed' + str(device_no) + '.npy')
label_matrix = np.load('fea... | [
"zhengchengyy@qq.com"
] | zhengchengyy@qq.com |
10793f27387164905ae619e6dd7551a64a7da9e2 | 7614475d1783a344ac26860b57b718025296d70a | /deckhand/tests/unit/engine/test_document_layering_negative.py | 654918668e0762c69c97bd4b289f3318396348a7 | [
"Apache-2.0"
] | permissive | fmontei/deckhand | aba72a9fb78edb765fccb9062dfdf18ab8952454 | c729cd930dbef7f07aa1b4ecf3ff45c628dcb039 | refs/heads/master | 2021-01-16T19:07:35.856061 | 2017-10-27T18:05:04 | 2017-10-27T18:21:03 | 100,139,757 | 0 | 0 | null | 2017-08-12T21:57:15 | 2017-08-12T21:57:15 | null | UTF-8 | Python | false | false | 7,821 | py | # Copyright 2017 AT&T Intellectual Property. All other 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... | [
"felipe.monteiro@att.com"
] | felipe.monteiro@att.com |
0ae14ef09426dd47721c25b4f905a998d665f8fd | 74997050637d001d6881d172ef95a2ddd95b6cb7 | /addons/script.module.placenta/lib/resources/lib/sources/en/123movies.py | 01e2ef75173bf64d60012407dd92b38fec36f752 | [
"Beerware"
] | permissive | bopopescu/kodi-android | f1b63bd67abbbdf600ad7c92c15fafb8760c2c20 | 1abbc03c00174603e143437dddbee921f086a1f2 | refs/heads/master | 2022-03-25T05:16:12.425483 | 2019-12-27T02:50:23 | 2019-12-27T02:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,809 | 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 wa... | [
"macinnisrr@gmail.com"
] | macinnisrr@gmail.com |
ac34565ca84c21d9eaf74ec530a7be68feb2f3a3 | d9e08fdaf07a242a6fb071ff47bb8aaadba86c72 | /2016Vertexing/CutFlowSaveRoot.py | 751fc1585d2387b32debace7ce0e26d6af587b07 | [] | no_license | mrsolt/HPS | 8d6577b54979b463c2ca8cc6d66db8b704df4ed4 | 2678da7801daf0eb314d11f837e235138ebe8340 | refs/heads/master | 2021-01-19T03:43:50.264869 | 2020-09-24T18:35:19 | 2020-09-24T18:35:19 | 46,081,219 | 1 | 2 | null | 2020-08-05T21:54:12 | 2015-11-12T21:13:52 | Python | UTF-8 | Python | false | false | 10,633 | py | import sys
tmpargv = sys.argv
sys.argv = []
import getopt
import ROOT
from ROOT import gROOT, TFile, TTree, TChain, gDirectory, TLine, gStyle, TCanvas, TLegend, TH1F
sys.argv = tmpargv
#List arguments
def print_usage():
print "\nUsage: {0} <output file base name> <input text Data file> <input text MC file> <input ... | [
"mrsolt@stanford.edu"
] | mrsolt@stanford.edu |
891b9838205f0453134311649e8961bf6b0f8653 | 6e4e6b64c035881f1cff39db616b0a80e1568c51 | /ABC100/q1.py | 0185deb8e226bc5442b31a4ddf4a7ec0f936f5a0 | [] | no_license | Lischero/Atcoder | f7471a85ee553e3ae791e3e5670468aea1fa53cc | f674d6a20a56eebdafa6d50d5d2d0f4030e5eace | refs/heads/master | 2020-05-21T16:23:36.095929 | 2018-10-18T04:27:55 | 2018-10-18T04:27:55 | 60,671,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # -*- coding:utf-8 -*-
if __name__ == "__main__":
a, b = map(int, input().split())
if a <= 8 and b <= 8:
print("Yay!")
else:
print(":(")
| [
"vermouth.lischero@gmail.com"
] | vermouth.lischero@gmail.com |
53861ec465cd9bc7a596f4ca407e307f02ab5ba2 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/a7f375bdb2e3894ffd9841559c87bd2a621bf7f0urls.py | a7f375bdb2e3894ffd9841559c87bd2a621bf7f0 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 622 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from tastypie.api import Api
from ricotta.api import UserResource, LocationResource, ShiftResource, PlannerBlockResource
v1_api = Api(api_name = 'v1')
v1_api.register(UserResource())
v1_api.register(LocationResource())
v1_api.register... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
6d5a2e30780ff63f7833c392e51558bf5d7c25cc | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scattergeo/marker/line/_reversescale.py | 8eddeec0997997a1bcadc00a0fd07304663f7301 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 441 | py | import _plotly_utils.basevalidators
class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name="reversescale", parent_name="scattergeo.marker.line", **kwargs
):
super(ReversescaleValidator, self).__init__(
plotly_name=plotly_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
0a403bd24c6500d099d71773f1530579f279a25d | ab37bae49db987888a6ae81a6c7fb61d0405b75f | /hw3.src/cnn/layer_utils.py | f03187c82b07c17963de62eeef42d73974cee56f | [] | no_license | luzai/opt18 | 9c607dd52a935f760610e8a5c139d77f96786099 | b1abae9001aba44616cc32dff86e3926a2e99bc6 | refs/heads/master | 2021-03-27T14:38:20.363844 | 2019-12-17T05:08:59 | 2019-12-17T05:08:59 | 124,015,579 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | pass
from cnn.layers import *
from cnn.fast_layers import *
def affine_relu_forward(x, w, b):
"""
Convenience layer that perorms an affine transform followed by a ReLU
Inputs:
- x: Input to the affine layer
- w, b: Weights for the affine layer
Returns a tuple of:
- out: Output from the R... | [
"907682447@qq.com"
] | 907682447@qq.com |
b88ea291f1e9f76462f724a7f8830a163c6ba644 | 8734caf837ccc831b877ae10d45dff97ae435816 | /05.OBJECTS_AND_CLASSES/07. Websites.py | a65279895ab5cab0d2e05e937f37f76855ba86b4 | [] | no_license | VLD62/PythonFundamentals | e86dd4f635a5862bdfaad2c24d5b22985ab25e0f | 914b541a71941efbf2c78ed1dfc49b6b9b850bb5 | refs/heads/master | 2020-06-03T19:36:26.244234 | 2019-08-17T14:57:22 | 2019-08-17T14:57:22 | 191,704,231 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | class Website:
def __init__(self, host, domain, queries=None):
self.host = host
self.domain = domain
self.queries = queries
if __name__ == '__main__':
input_string = input()
website_list = []
while not input_string == 'end':
data_list = input_string.sp... | [
"viliev2@dxc.com"
] | viliev2@dxc.com |
0a489a8f8bdc2db7f23b8e9f4fd0dc79dd90f38a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02412/s693660569.py | cd5b70335a606d84afefec74b89211e04330b095 | [] | 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 | 486 | py | dataNum = 0
combNum = [0] * 100
while True:
n,x=map(int, input().split())
if n is x is 0:
break
else:
for a in range(1,n-1):
for b in range(a+1,n):
for c in range(b+1,n+1):
calcResult = a + b + c
if calcResult == x:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
61336563d0438c6f2814c00187a5b0fd150ec382 | 7f0548b7191b7589712af19baebafddae1d0505f | /dojoassignments/python/mysql_and_flask/the_wall/server.py | 53e7983ad68700ea1b34575a45cd604b1e3fb4aa | [] | no_license | mtjhartley/codingdojo | dd8eab1bd61fb847e44766e89fe3db2340468102 | 65dc558d19adbe62f85ad61c32cb1c392b56567c | refs/heads/master | 2022-12-14T23:06:11.927445 | 2017-08-16T21:08:35 | 2017-08-16T21:08:35 | 92,218,728 | 1 | 5 | null | 2022-12-07T23:59:48 | 2017-05-23T20:46:03 | Python | UTF-8 | Python | false | false | 6,315 | py | from flask import Flask, request, redirect, render_template, session, flash
from mysqlconnection import MySQLConnector
import re
import os, binascii
import md5
app = Flask(__name__)
app.secret_key="ABC"
mysql = MySQLConnector(app,'mydb')
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
@ap... | [
"mtjhartley@gmail.com"
] | mtjhartley@gmail.com |
bb6c38246a1fa8fe61ca8cf4b4925c9fb77f314b | 9cc4dc013ebf0ce46dce9a049a38bd2b98f44e8c | /collective/themeswitcher/tests/test_switcher.py | c0f100e064f93977a2880b6c83e9c8f0d4103774 | [] | no_license | collective/collective.themeswitcher | 1ac355319b3996f4ae56d8d201645df437d23cbf | a8b7640352beb258d46faec52fcd155a2d655066 | refs/heads/master | 2023-06-01T00:19:55.906269 | 2013-11-27T09:28:40 | 2013-11-27T09:28:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,442 | py | import unittest2 as unittest
from collective.themeswitcher.tests import base, fake
from collective.themeswitcher.switcher import RegistryThemeSwitcher,\
PloneThemeSwitcher, MobileThemeSwitcher
class UnitTestRegistryThemeSwitcher(base.UnitTestCase):
def setUp(self):
super(UnitTestRegistryThemeSwitcher,... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
1565130c430ed8eb13e3e157cc0cfd1e99633186 | fff3e252862450a2cc33f22f3b4a6b47dd16a26b | /tests/decap/test_decap.py | d878df228a32936053055b45b18bec446b250e45 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | Junchao-Mellanox/sonic-mgmt | 382d75e883545df209c6b2b70fbe54fad4fcc35d | 4b059de7809ba06b43caebc1d0e5186f511b2d53 | refs/heads/master | 2023-08-03T16:28:22.176375 | 2023-07-25T02:04:00 | 2023-07-25T02:04:00 | 232,013,228 | 0 | 0 | NOASSERTION | 2023-09-04T10:19:25 | 2020-01-06T03:01:03 | Python | UTF-8 | Python | false | false | 11,009 | py | '''
IPinIP Decap configs for different ASICs:
Table Name in APP_DB: TUNNEL_DECAP_TABLE:IPINIP_TUNNEL
Config Mellanox <= [201911] Mellanox >= [202012] Broadcom <= [201911] Broadcom >= [202012] Innovium # noqa E501
dscp_mode uniform uniform ... | [
"noreply@github.com"
] | Junchao-Mellanox.noreply@github.com |
5ab31110ddc925d70ad242e1e44a7dd356c7018b | cec1964d021dce6c3d6d96f6f5d82cc47dc2bd32 | /hydra_trax.py | 93aa0364fd762dc6f6c269c2fb018c3d6d964203 | [] | no_license | florisvb/hydra | 10592e634941fe4da0f9153ec24f2b8aeb5b27e0 | 0e75635a231b434764048e5c78b1a879d161cf51 | refs/heads/master | 2016-09-09T20:12:19.514681 | 2010-07-05T19:39:15 | 2010-07-05T19:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | # need to active virtual environment!
# ~/PY/bin/activate
import flydra_for_hydra_trax as ffh
import flydra.common_variables
import flydra.kalman.data_packets as data_packets
import Pyro.core
import numpy as np
import time
import threading
import socket
import flydra
import Pyro
import hydra_cal
import hydra_motors_s... | [
"florisvb@gmail.com"
] | florisvb@gmail.com |
2173c729485825b6c7be205513f76f91fce59231 | a9f676c06bacee1f8b27e08d3c411c89a69cfd40 | /falmer/links/urls.py | 42367579a1dae78dea55951533f7c383cf01b8ee | [
"MIT"
] | permissive | sussexstudent/falmer | 1b877c3ac75a0477f155ce1a9dee93a5ada686d6 | ae735bd9d6177002c3d986e5c19a78102233308f | refs/heads/master | 2022-12-11T19:40:12.232488 | 2020-03-20T13:01:47 | 2020-03-20T13:01:47 | 88,043,958 | 2 | 3 | MIT | 2022-12-08T03:17:26 | 2017-04-12T11:24:02 | Python | UTF-8 | Python | false | false | 141 | py | from django.urls import path
from .views import LinkRenderer
urlpatterns = [
path('<str:model>/<int:pk>/', LinkRenderer.as_view()),
]
| [
"james@brudil.com"
] | james@brudil.com |
9766588c21962bc96c2dadbeecccce03f7485c3f | 8c09764a1258696c51ef9ef9c1c3bdc1b931b00d | /pylons__pyramid_chameleon/docs/conf.py | f043b35e17f6559828506b8e067c45e58b0df5bc | [] | no_license | mindreframer/python-pyramid-stuff | 2178c4922adca15b7905bb0916c8f035ca495564 | 4b9034bdde63ac8dd799ae2050506edd164a96b7 | refs/heads/master | 2021-01-18T16:09:52.835796 | 2013-04-09T20:09:44 | 2013-04-09T20:09:44 | 9,325,528 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,659 | py | # -*- coding: utf-8 -*-
#
# pyramid_chameleon documentation build configuration file
#
# This file is execfile()d with the current directory set to its containing
# dir.
#
# The contents of this file are pickled, so don't put values in the
# namespace that aren't pickleable (module imports are okay, they're
# removed a... | [
"roman.heinrich@gmail.com"
] | roman.heinrich@gmail.com |
932e884ce0918299e60a880c71feca86fa7f6aec | f68afe06e4bbf3d523584852063e767e53441b2b | /Toontown/toontown/hood/GSHoodAI.py | 684b58a6295e53b436d4aa4456b4240d664f2d56 | [] | no_license | DankMickey/Toontown-Offline-Squirting-Flower-Modded- | eb18908e7a35a5f7fc95871814207858b94e2600 | 384754c6d97950468bb62ddd8961c564097673a9 | refs/heads/master | 2021-01-19T17:53:36.591832 | 2017-01-15T02:00:04 | 2017-01-15T02:00:04 | 34,639,744 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,041 | py | from toontown.classicchars import DistributedGoofySpeedwayAI
from toontown.dna.DNAParser import DNAGroup, DNAVisGroup, DNAData
from toontown.hood import HoodAI
from toontown.hood import ZoneUtil
from toontown.racing import RaceGlobals
from toontown.racing.DistributedRacePadAI import DistributedRacePadAI
from toontown.r... | [
"jareddarty96@gmail.com"
] | jareddarty96@gmail.com |
bc58a101cc3895bdffee4242f24af9cac6ca3e99 | d932c503351da8f9c1cc2508c934bd513a993566 | /torch/_linalg_utils.py | 2d166e24134f5aefe1d075310762e2106695ec2e | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | zkneupper/pytorch | b5b30f25a604b889b03e3c6276c55e7a94f8add3 | 1d4d9ffca056ac4b638ae89ffa83f2b5ec9a4ffa | refs/heads/master | 2023-05-08T06:18:59.178109 | 2021-05-11T20:45:01 | 2021-05-11T20:46:07 | 365,879,708 | 0 | 0 | NOASSERTION | 2021-05-10T01:12:18 | 2021-05-10T00:55:03 | null | UTF-8 | Python | false | false | 2,472 | py | """Various linear algebra utility methods for internal use.
"""
from torch import Tensor
import torch
from typing import Optional, Tuple
def is_sparse(A):
"""Check if tensor A is a sparse tensor"""
if isinstance(A, torch.Tensor):
return A.layout == torch.sparse_coo
error_str = "expected Tensor... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c036ad73e76e6e068b693654e1278ed8dacd4d2c | fa9cf6dd8a7d2aa7efc81a838c82008a456f2695 | /aoc2019/day5/5.py | a1516f3c4b0c8cd6e47c4b7b352d95e3e20981b4 | [] | no_license | naroom/adventofcode | d3accfb77767f4fc908e628c38a3607b2adbdd57 | 8754fc69b4c15513eed73e7ca5857b6e0d1e110c | refs/heads/master | 2020-11-27T02:30:38.263377 | 2019-12-20T14:03:51 | 2019-12-20T14:03:51 | 229,273,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,357 | py | import copy
nums = [3,225,1,225,6,6,1100,1,238,225,104,0,1101,90,64,225,1101,15,56,225,1,14,153,224,101,-147,224,224,4,224,1002,223,8,223,1001,224,3,224,1,224,223,223,2,162,188,224,101,-2014,224,224,4,224,1002,223,8,223,101,6,224,224,1,223,224,223,1001,18,81,224,1001,224,-137,224,4,224,1002,223,8,223,1001,224,3,224,1,... | [
"naroom@gmail.com"
] | naroom@gmail.com |
0327fd92bf0011df8a4d023935da422e00db4e22 | 9596b9b19b2ecf99b2a0e3d9e2d48971c7d1a3d6 | /1_counting-letters/main.py | 9394527f73adfba9bf22590c98f73420941b16bb | [] | no_license | Tanmengxuan/attention-primer | 948dd43ae58536e43c0164f965062bdfcabcff46 | 283f2dcecdc6ef810b3b668a7b14804c97d8fd67 | refs/heads/master | 2020-06-04T16:00:47.437399 | 2018-08-21T05:21:21 | 2018-08-21T05:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,009 | py | """
Task 1 - Counting Letters
Simple implementation of attention and tutorial on queries, keys and values
"""
import tensorflow as tf
import numpy as np
import string
from absl import flags
from absl import app
import seaborn
import matplotlib.pyplot as plt
FLAGS = flags.FLAGS
# Commands
flags.DEFINE_bool("train", F... | [
"limsweekiat@gmail.com"
] | limsweekiat@gmail.com |
a8b0ece7a52995ed2b6276f8382a8bd3ec715af3 | 8a12fe0f6d1f905bf84e2731227d54c6e6d90702 | /users/forms.py | 6814f0378e3b9ed0315e73e291e0e95da99ff2f9 | [] | no_license | anlaganlag/tutorial | 77a508135d40b8ca87ded2c7efd2724b4d155ad0 | 50525f7a9e8fe0e1b1f8aa937253b312fbcd792d | refs/heads/master | 2021-01-08T21:25:09.946440 | 2020-02-21T15:11:15 | 2020-02-21T15:11:15 | 242,147,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from django.contrib.auth.forms import UserCreationForm,UserChangeForm
from django import forms
from .models import CustomUser
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = CustomUser
fields = ('username','email')
class CustomUserChangeForm(UserChangeForm):
class Meta:
... | [
"tanjhu@163.com"
] | tanjhu@163.com |
5069946060b94289a1dc5f4ca66ff8bb19e921de | 50a7c55e00b661746fc953ee4940a8f3bf976b18 | /getpass/stream.py | e803041384c1e1255804f8ab669b0146f5bbd111 | [] | no_license | cponeill/pymotw-practice-examples | a9e049a5aee671c8bfc958c6a5bfcfb764f12444 | 6e87ca8be925bc103afb7c0f80da8a69f1e80a4c | refs/heads/master | 2021-01-13T13:14:39.216035 | 2017-10-25T14:31:58 | 2017-10-25T14:31:58 | 72,708,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | #!/usr/bin/env python3
import getpass
import sys
p = getpass.getpass(stream=sys.stderr)
print('You entered ', p)
| [
"caseyoneill78@hotmail.com"
] | caseyoneill78@hotmail.com |
79a37865bdfe26757d731ca1e5e285024d41d2c7 | bd0aa9bdc23a8c86acbfdd69960ca92ab4ee4c8f | /using_sys.py | 40222436ff37499c2b4f3b54eb452c26c7bdf00f | [] | no_license | onionmccabbage/pythonTrainingMar2021 | e7a12b096f56e3753e0ac4255e6b7814ec9b6527 | 738b481a169b09826af2760b79803e165c9bda7d | refs/heads/main | 2023-03-17T02:21:43.035662 | 2021-03-10T16:21:58 | 2021-03-10T16:21:58 | 345,656,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | import sys
print(sys.float_info)
print(sys.maxsize)
print(sys.path)
| [
"noreply@github.com"
] | onionmccabbage.noreply@github.com |
12599484995420b73251ad4ccb3fc08c70abe963 | ef0a82190e21d48571feb1e6168670579bf1d93b | /app/productdb/models.py | 565dbbfdb6b8e0b4aecc6318d5e609d0e49155cf | [
"MIT"
] | permissive | Petr2016/product-database | bd1648cb32be2a1f228576b6e7d8a5d320ee9dce | ee2a58c39bc82ffe2fc4b696015868ba77faa32c | refs/heads/master | 2021-01-18T11:01:38.711958 | 2016-06-27T20:36:54 | 2016-06-27T20:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,338 | py | from datetime import timedelta
import reversion
from django.conf import settings
from django.core.validators import MinValueValidator
from django.db import models
from django.db.models.signals import pre_delete
from django.dispatch import receiver
from django.utils.timezone import datetime
# choices for the currency
... | [
"henry@codingnetworker.com"
] | henry@codingnetworker.com |
533d9224b7340904769f10e63e5a4fe5b2af62a5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02550/s811930150.py | 889d84d5425f18b8745a4664f37d187ba9485d08 | [] | 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 | 580 | py | # -*- coding: utf-8 -*-
n, x, m = map(int, input().split())
a_list = [x]
a = x
i = 1
while (i<n and i < m+1):
a = (a*a) % m
a_list.append(a)
i += 1
#print(i)
#print(a_list)
if i == n:
ans = sum(a_list)
else:
b = a_list.index(a)
sum1 = sum(a_list[:b+1])
sum2 = sum(a_list[b+1:i])
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
64f457550bad1549dcce187657e1deb436dbfbcc | 6c4486ab599fd5dea9006e41cdb89db54b47b77c | /tests/products/REGRESSION_CYB_SVMIC_Create_Policy.py | 34eed8d4be8654a5b4f44a5aafe4e4da4d0bf2e9 | [] | no_license | kenito2050/Python-Page-Object-Framework-Example | 28ba61cdc1498374be4fc088a1348e0acb754dc2 | 2a3a3e6c74dc7ec7c9acce41030e9487925b9b0c | refs/heads/master | 2020-04-02T15:52:24.286208 | 2018-10-25T01:46:24 | 2018-10-25T01:46:24 | 154,587,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,868 | py | import csv
import datetime
import os
import time
import unittest
from urllib.parse import urlparse, parse_qs
from xml.etree import ElementTree as ET
import xlrd
from faker import address
from faker import company
from faker import name
from selenium import webdriver
from pages.producer_center.client_contact_page impo... | [
"kvillarruel@nasinsurance.com"
] | kvillarruel@nasinsurance.com |
cb97514bf09ee91a835c6d6781a61218692aae57 | 1dfcffdd67df144daf7572a9b0ae4da3a43d685e | /projects/cats/tests/EC2.py | eeb54914bc3a8fe16bcc5835551bf3dd124d4dcf | [] | no_license | AllenHongjun/cs61a | 95b577875630bbf4dc131cf803812ec2fe7866d8 | 4a46d5f3ddefaf8b5e364fc5b9b7ca1168b658bd | refs/heads/master | 2022-12-17T16:18:31.824555 | 2020-09-16T19:02:39 | 2020-09-16T19:02:39 | 289,314,275 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,835 | py | test = {
'name': 'Problem EC2',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> key_distance_diff.call_count = 0
>>> key_distance_diff("wird", "word", 4)
0.6834861261734088
>>> key_distance_diff.call_count <= 106 #see if you removed redu... | [
"652971723@163.com"
] | 652971723@163.com |
f5947010b4c701ef319a4503978b7b0ee4cd70c1 | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/account/tests/account_test_savepoint.py | 70711eab7784327fa272a6d2ad3ac8987024e5c8 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,017 | py | # -*- coding: utf-8 -*-
from harpiya import fields
from harpiya.tests.common import Form, SavepointCase
from harpiya.tests import tagged
from contextlib import contextmanager
from unittest.mock import patch
import datetime
@tagged('post_install', '-at_install')
class AccountTestInvoicingCommon(SavepointCase):
... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
4b2d191cc121c7168c825b367be7d29b431b0da8 | 919817200361a55f194e32ad1636a5a7054e4c58 | /scrapy爬虫框架/crawl_baoma5/start.py | 70893fbbd19934d70314495cc1c43e9e41919755 | [] | no_license | luoshanya/crawl_project | 2d68272d6ef71c9fb033dc267ce6b56dfebfddc4 | 2881093ad37dd005be72f8b2214cadc97255470f | refs/heads/master | 2020-07-05T01:36:28.985965 | 2019-08-23T02:06:03 | 2019-08-23T02:06:03 | 202,484,100 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from scrapy import cmdline
cmdline.execute('scrapy crawl autohome_crawl'.split()) | [
"310927880@qq.com"
] | 310927880@qq.com |
2ed10a0c55cd09ff53c1ee743821017f149ee56b | 245b92f4140f30e26313bfb3b2e47ed1871a5b83 | /airflow/providers/google_vendor/googleads/v12/services/services/billing_setup_service/client.py | 61cd79a76b738e5057ac03bde7eccc105ce42930 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ephraimbuddy/airflow | 238d6170a0e4f76456f00423124a260527960710 | 3193857376bc2c8cd2eb133017be1e8cbcaa8405 | refs/heads/main | 2023-05-29T05:37:44.992278 | 2023-05-13T19:49:43 | 2023-05-13T19:49:43 | 245,751,695 | 2 | 1 | Apache-2.0 | 2021-05-20T08:10:14 | 2020-03-08T04:28:27 | null | UTF-8 | Python | false | false | 20,909 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | ephraimbuddy.noreply@github.com |
2c8a1c8b76f83dbaebf10726b6aa87ec34da0e69 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nilearn/connectome/tests/test_group_sparse_cov.py | efae2e0c72c86f0a7dea0f1e1c8faa8a2f0efac0 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 2,833 | py | from nose.tools import assert_equal, assert_true, assert_raises
import numpy as np
from nilearn._utils.data_gen import generate_group_sparse_gaussian_graphs
from nilearn.connectome.group_sparse_cov import (group_sparse_covariance,
group_sparse_scores)
from nilear... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
39b135836b332a6f3fffb13efbbdcb73c994c1c4 | 5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e | /147.py | 57277db069ff54acba7cb69fa4be76b2fd536b2c | [] | no_license | junyang10734/leetcode-python | 035b12df3f7d9fc33553140d1eb0692750b44f0a | eff322f04d22ffbc4f9b10e77f97c28aac5c7004 | refs/heads/master | 2023-07-22T11:16:38.740863 | 2023-07-14T00:22:00 | 2023-07-14T00:22:00 | 189,197,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # Insertion Sort List
# Linked List
# https://blog.csdn.net/fuxuemingzhu/article/details/80785630
# runtime: faster than 52.12%
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def insertionSortL... | [
"junyang2019@outlook.com"
] | junyang2019@outlook.com |
51495cbc64bbd39c31d034a588186ce78ea9366e | c52af0fa7a1cec4aeb304a6d9c359e0fda531300 | /projects/forms.py | 54d3fd4d252f9a1ed14c92b30ebb8108427bfc12 | [
"MIT"
] | permissive | wadi-1000/Awwards | 0e0a77811ffe1a8b238cf173dd6ff7dad5251bed | 5b7cb6e458ce72b5ed42ae9f236e74322f5c3d96 | refs/heads/master | 2023-08-07T04:21:31.337871 | 2021-09-21T11:25:39 | 2021-09-21T11:25:39 | 407,526,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from .models import Project,Rating
from django.forms import ModelForm
from django import forms
from users.models import Profile
class UploadNewProject(forms.ModelForm):
class Meta:
model=Project
exclude=['design_rating', 'usability_rating', 'content_rating', 'average_review', 'profile']
fi... | [
"joy.kiranga@student.moringaschool@gmail.com"
] | joy.kiranga@student.moringaschool@gmail.com |
11de07600b81e7ad08316f26a89045d724d315f8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04005/s102482127.py | 09145ea368a82b77847c0fba2503087da7f0009f | [] | 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 | 125 | py | s = sorted(list(map(int, input().split())))
a = s.pop(-1)
b = a // 2
c = a - (a//2)
d = s[0] * s[1]
print(abs(d * b - d * c)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
96d4cac853c1cbf4bcec8b7ebf4edbe7b65a8121 | bb587937153ff4f8e3a9b0b996bba610fd2ed10a | /escpos/barcode.py | 42210782377074c301afae6d926f022c4ace2c45 | [
"Apache-2.0"
] | permissive | joohann/pyescpos | 6bf69fed73381f4fa1f9ddc95014eea840b49f1f | 8b4f265b0c804d4a64da06e9a7b6d18406f756ce | refs/heads/master | 2022-03-26T22:29:36.736605 | 2020-01-14T01:14:02 | 2020-01-14T01:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,792 | py | # -*- coding: utf-8 -*-
#
# escpos/barcode.py
#
# Copyright 2015 Base4 Sistemas Ltda ME
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | [
"daniel@base4.com.br"
] | daniel@base4.com.br |
a91070b032c49d53720e8477be3baa8b712775b7 | 11f00660332b8778a09cad87d861e5b7f4dd12d0 | /easy/1470_shuffle_the_array.py | 3308b857b79323e606ff21f84d0da606a04652b9 | [
"MIT"
] | permissive | niki4/leetcode_py3 | b4b1bb8bd62e8dca595386a88825f3bc46a7f3fd | 9f66d352c805fcdd9930aaa18c93d7546768287c | refs/heads/master | 2022-07-01T17:52:07.166384 | 2022-06-26T11:01:31 | 2022-06-26T11:01:31 | 130,343,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | """
Given the array nums consisting of 2n elements in the form [x1,x2,...,xn,y1,y2,...,yn].
Return the array in the form [x1,y1,x2,y2,...,xn,yn].
Example 1:
Input: nums = [2,5,1,3,4,7], n = 3
Output: [2,3,5,4,1,7]
Explanation: Since x1=2, x2=5, x3=1, y1=3, y2=4, y3=7 then the answer is [2,3,5,4,1,7].
Cons... | [
"nikiforr@gmail.com"
] | nikiforr@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.