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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a35254e170a79b82411c5af04fa138d84c6690dc | 39e03684081b27311385a0ab31afcc2e09883e5c | /mmdet/core/anchor/guided_anchor_target.py | d100ea78d3594f73d6768b412438061a4beefb14 | [
"MIT",
"Python-2.0"
] | permissive | witnessai/MMSceneGraph | 8d0b2011a946ddcced95fbe15445b7f4da818509 | bc5e0f3385205404c712ae9f702a61a3191da0a1 | refs/heads/master | 2023-08-12T06:54:00.551237 | 2021-10-12T03:04:21 | 2021-10-12T03:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,096 | py | import torch
from ..bbox import PseudoSampler, build_assigner, build_sampler
from ..utils import multi_apply, unmap
def calc_region(bbox, ratio, featmap_size=None):
"""Calculate a proportional bbox region.
The bbox center are fixed and the new h' and w' is h * ratio and w * ratio.
Args:
... | [
"23736866+Kenneth-Wong@users.noreply.github.com"
] | 23736866+Kenneth-Wong@users.noreply.github.com |
911fda04be871a0dc104afde2104691174e3da25 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_231/ch57_2020_06_20_19_43_25_745483.py | 7ef2362e0ea66ad298e6370ba941aaa5ef97ee81 | [] | 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 | 384 | py | def verifica_progressao(lista):
i=0
for i in range(len(lista)):
if lista[i+1]-lista[i]== (lista[i+1])/(lista[i]):
return 'AG'
elif lista[i+1]-lista[i]==lista[i+2]-lista[i+1]:
return 'PA'
elif (lista[i+1])/(lista[i])==(lista[i+2])/(lista[i+1]):
ret... | [
"you@example.com"
] | you@example.com |
b03a6a36c9e4214416caf3fa201dd5f876ab1096 | 692b907d07eee8ce3ee32a1fda74b6d92fd6c548 | /tests/cli/v1_3_1/test_network_settings.py | e86017509fa4d735084d7e96f63474833b68b1b3 | [
"MIT"
] | permissive | AltusConsulting/dnacentercli | 04c9c7d00b25753a26c643994388dd4e23bf4c54 | 26ea46fdbd40fc30649ea1d8803158655aa545aa | refs/heads/master | 2022-12-16T04:50:30.076420 | 2020-07-17T22:12:39 | 2020-07-17T22:12:39 | 212,206,213 | 0 | 0 | MIT | 2022-12-08T06:39:49 | 2019-10-01T21:50:42 | Python | UTF-8 | Python | false | false | 4,282 | py | # -*- coding: utf-8 -*-
"""DNACenterAPI Network Settings API fixtures and tests.
Copyright (c) 2019 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 without restrictio... | [
"jbogarin@altus.cr"
] | jbogarin@altus.cr |
82cd9246eb7b8835af8057368b4d9be8b9a5f952 | 5bfbf31332a5c4750ab57d305f400aa5e20bf6bd | /tests/execution_engine/split_and_sample/test_sqlalchemy_execution_engine_sampling.py | 2df583c8a75996eba4d7a68ce95be97e5053a786 | [
"Apache-2.0"
] | permissive | alexsherstinsky/great_expectations | 9d4ae4c06546c5ab2ee0d04fb7840e3515c25677 | 2fc4bb36a5b3791c8ada97c5364531cd7510d4ed | refs/heads/develop | 2023-08-04T13:13:38.978967 | 2023-07-24T18:29:46 | 2023-07-24T18:29:46 | 203,888,556 | 1 | 0 | Apache-2.0 | 2020-07-27T09:12:21 | 2019-08-22T23:31:19 | Python | UTF-8 | Python | false | false | 16,252 | py | from __future__ import annotations
import datetime
import os
from typing import List
import pandas as pd
import pytest
from dateutil.parser import parse
from great_expectations.compatibility.sqlalchemy_compatibility_wrappers import (
add_dataframe_to_db,
)
from great_expectations.core.batch_spec import SqlAlchem... | [
"noreply@github.com"
] | alexsherstinsky.noreply@github.com |
da3e940eed95acd522317d3e1a7137a8c09b6d82 | 9835151ed6b99222d660af90b31e133d6bbc6a3d | /fhs/usr/share/python/syncwerk/restapi/restapi/thumbnail/management/commands/clean_thumbnail.py | 3485158a1232781fb8ae9bdfbe4964f8bae26daf | [
"Apache-2.0"
] | permissive | syncwerk/syncwerk-server-restapi | 33c6108c00b086260c62a0408f8f7f12ee7e1685 | 13b3ed26a04248211ef91ca70dccc617be27a3c3 | refs/heads/main | 2023-04-10T20:09:15.966129 | 2021-04-20T11:53:17 | 2021-04-20T11:53:17 | 292,826,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Copyright (c) 2012-2016 Seafile Ltd.
# encoding: utf-8
import shutil
from django.core.management.base import BaseCommand
from restapi.settings import THUMBNAIL_ROOT
class Command(BaseCommand):
help = "Clean image files's thumbnail"
def handle(self, *args, **options):
shutil.rmtree(THUMBNAIL_ROOT, ... | [
"alexander.jackson@syncwerk.de"
] | alexander.jackson@syncwerk.de |
89fab63983ecfb5d496cb01ee864ac4a224568ff | b1018e272ed284ab70ffe6055b90726e879004b3 | /MIDI Remote Scripts/UC33e/__init__.py | a1c5ba3be1b4bc1e57e654ae47219d6a8240b4c3 | [] | no_license | aumhaa/livepy_diff | 8e593ffb30b1e7909225352f3a0084d4de2e51e6 | 266a7380c4d5a162c051c23f534f74cb7eace538 | refs/heads/master | 2020-04-12T03:17:56.545373 | 2017-04-24T02:02:07 | 2017-04-24T02:02:07 | 13,946,086 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py |
from _Generic.GenericScript import GenericScript
import Live
from config import *
def create_instance(c_instance):
""" The generic script can be customised by using parameters (see config.py). """
return GenericScript(c_instance, Live.MidiMap.MapMode.absolute, Live.MidiMap.MapMode.absolute, DEVICE_CONTROLS, T... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
4d78ff04c62b3446e3bbd15e9c37e162471f267d | 29c3595a4e1f8de9382650610aee5a13e2a135f6 | /venv/Lib/site-packages/zope/interface/common/mapping.py | de56cf84935c8732d7c374b36e2b0ee357f4550c | [
"MIT"
] | permissive | zoelesv/Smathchat | 1515fa56fbb0ad47e1859f6bf931b772446ea261 | 5cee0a8c4180a3108538b4e4ce945a18726595a6 | refs/heads/main | 2023-08-04T14:47:21.185149 | 2023-08-02T15:53:20 | 2023-08-02T15:53:20 | 364,627,392 | 9 | 1 | MIT | 2023-08-02T15:53:21 | 2021-05-05T15:42:47 | Python | UTF-8 | Python | false | false | 5,202 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | [
"ZoomLee@users.noreply.github.com"
] | ZoomLee@users.noreply.github.com |
1115a4ab7aa4f99808f19cc79aafb798ff1d478f | 9dc6f8d91dc56523b9688990d4ae413b0bcbd4e1 | /examples/geomopt/15-tddft_with_solvent.py | ec92da11363dd4e7fecfe5ae0cbb4a77d4fd4ff1 | [
"Apache-2.0"
] | permissive | sunqm/pyscf | 566bc2447d8072cff442d143891c12e6414de01c | dd179a802f0a35e72d8522503172f16977c8d974 | refs/heads/master | 2023-08-15T18:09:58.195953 | 2023-03-27T21:02:03 | 2023-03-27T21:02:03 | 159,149,096 | 80 | 26 | Apache-2.0 | 2022-02-05T00:19:24 | 2018-11-26T10:10:23 | Python | UTF-8 | Python | false | false | 30 | py | ../solvent/21-tddft_geomopt.py | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
3ce80960d9ced3a1c62937f2ddf5dccfeaf9f47a | 30359e5f360d90da240317260c6f90cfde52b451 | /core/tests/tests_env_vars/test_agent.py | 7538a84ee0336c8c5b9a36476b4aacc596b8b36a | [
"Apache-2.0"
] | permissive | gideonbros/polyaxon | 321925ca301c72c1b86a2f519f3f8946ebc72302 | 482a756b781e3cb749cc871a275689d1ad16c028 | refs/heads/master | 2023-06-26T22:08:36.138993 | 2021-07-08T12:09:36 | 2021-07-21T15:28:20 | 392,247,410 | 0 | 0 | Apache-2.0 | 2021-08-03T08:35:17 | 2021-08-03T08:35:17 | null | UTF-8 | Python | false | false | 1,858 | py | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, Inc.
#
# 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 ... | [
"contact@polyaxon.com"
] | contact@polyaxon.com |
cec32687b4ada7b368825e42db3c4c2e16ea9ab5 | e587b13f4ff4e65c69eb62803381c0ff62ffeb7e | /modeling_mesoscopic_dynamics/single_cell_models/cell_library.py | b7fca4cdb97396c8f040c68a49df30629d651cc2 | [] | no_license | SaeedTaghavi/notebook_papers | 47e37c9f705c2ff73d5af56b201a3c297259e1a7 | c4b6e086b50bc8aefc95b33b68274eeba0d6c599 | refs/heads/master | 2022-02-06T04:27:14.759817 | 2019-08-09T16:03:56 | 2019-08-09T16:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | """
Some configuration of neuronal properties so that we pick up
within this file
"""
from __future__ import print_function
def get_neuron_params(NAME, name='', number=1, SI_units=False):
if NAME=='LIF':
params = {'name':name, 'N':number,\
'Gl':10., 'Cm':150.,'Trefrac':5.,\
... | [
"yann.zerlaut@gmail.com"
] | yann.zerlaut@gmail.com |
0c021c065d89ad314bedf35d7e89b72826bc29e0 | 675a6ed1aa824ac801783471e634e538d11acc8d | /examples/example_filter/example_excludes.py | 37133f9f03f2e4e3da890d94a96a5ee16a03f7d2 | [
"MIT"
] | permissive | Eastwu5788/pre-request | 7ea50b3930252b5a0f99bf9588d0fdd8f4ae4562 | 42da2bf5edc6690983188e1ee013c810ef8985db | refs/heads/master | 2023-05-24T22:53:04.353491 | 2022-01-26T02:03:57 | 2022-01-26T02:03:57 | 100,257,925 | 102 | 9 | MIT | 2023-05-23T03:10:20 | 2017-08-14T10:56:59 | Python | UTF-8 | Python | false | false | 872 | py | # !/usr/local/python/bin/python
# -*- coding: utf-8 -*-
# (C) Wu Dong, 2020
# All rights reserved
# @Author: 'Wu Dong <wudong@eastwu.cn>'
# @Time: '2020-04-13 10:52'
""" 演示 pre-request 框架验证字符串禁止包含测试
"""
from flask import Flask
from pre_request import pre, Rule
app = Flask(__name__)
app.config["TESTING"] = True
client... | [
"wudong@eastwu.cn"
] | wudong@eastwu.cn |
92b49520113e49dc7d3baf14ed5586eb754878cb | cb4a643abbc0385c77ace96e9b2f61a9900afbaa | /1209_remove_all_adjacent_duplicates_in_string_ii.py | 9417ae50eed90bd962d29fb30dff4fded7be6596 | [] | no_license | HongsenHe/algo2018 | c0343a647993b0128d57ef779d3249a1d22d7452 | 034efcefe9940267abcf4c9cab655b2344e3e901 | refs/heads/master | 2022-05-30T14:16:11.791650 | 2022-05-11T04:33:35 | 2022-05-11T04:33:35 | 124,703,035 | 0 | 0 | null | 2019-05-22T15:48:16 | 2018-03-10T22:17:31 | Python | UTF-8 | Python | false | false | 1,037 | py | class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
sk = []
'''
遍历每一个元素,维护一个stack, 如果当前元素和stack的顶一样了。
则看它在stack里的数字是多少,如果已经满足k了,则继续。
如果不满足,更新数字。此题先弹出,再判断数字。
如果和顶不一样,就默认数值是1,好比构建hashmap的方法。
最后打印stack, 看每个 字母对应多少数字。
'''
... | [
"hhsen8816@gmail.com"
] | hhsen8816@gmail.com |
73cd323117121001f55c4eacdc136654894e69f9 | 5f39d763ec9c7d5e6ad6dfcb36f6ca742d182396 | /fairseq_cli/train.py | 4cfc80be86eef233c685df111478b1c8eabd5dee | [
"MIT"
] | permissive | matech96/BERT-like-is-All-You-Need | 7ee6f246f07b96bd6f05c67d18935c11da9d4fa8 | 096b7938c386ddbdb702d5733dd80a3e4effb79a | refs/heads/master | 2023-06-04T07:38:38.731541 | 2021-06-01T07:58:14 | 2021-06-01T07:58:14 | 372,500,143 | 0 | 0 | MIT | 2021-05-31T12:32:33 | 2021-05-31T12:32:32 | null | UTF-8 | Python | false | false | 12,022 | py | #!/usr/bin/env python3 -u
# 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.
"""
Train a new model on one or across multiple GPUs.
"""
import logging
import math
import os
import random
import ... | [
"shamane@ahlab.org"
] | shamane@ahlab.org |
4718439b580e6a00e3e345fc7e74cc7d93248c11 | a149044762566830b4356343c062ee84c8056471 | /healthid/apps/preference/migrations/0003_auto_20190416_1127.py | 6958d5e542880d02ae7496f25c8062f8e49e2587 | [] | no_license | malep2007/healtid-web-api | 23fbe8b34a3c5256cbb60cf15205f65cc035df13 | d9e88b4d8fe1dbc297b61bb007d4182928e515d4 | refs/heads/dev | 2022-12-12T03:24:37.537569 | 2019-12-17T16:26:59 | 2019-12-17T16:26:59 | 228,655,076 | 0 | 1 | null | 2022-12-08T05:25:00 | 2019-12-17T16:17:27 | Python | UTF-8 | Python | false | false | 894 | py | # Generated by Django 2.1.7 on 2019-04-16 10:27
from django.db import migrations, models
import django.db.models.deletion
import healthid.utils.app_utils.id_generator
class Migration(migrations.Migration):
dependencies = [
('preference', '0002_auto_20190412_0609'),
]
operations = [
migr... | [
"ephraim.malinga@gmail.com"
] | ephraim.malinga@gmail.com |
4a6cdca0d2e07e547d248f54ff52ea00f8696ed4 | 2fd9566a6f8c0949e7d576bcc96fe1f5a218db05 | /src/ds/__init__.py | 45fec0c4d99d8af312160c581ec94ac158624c55 | [] | no_license | munikarmanish/min-spanning-tree | ebfb204e0795ce382ab1dc26de0a2aa00d58bde9 | 8b6291ee5c0e6fc8426e4dcdc365ab1920548abc | refs/heads/master | 2022-04-25T16:23:57.298795 | 2020-04-21T03:48:29 | 2020-04-21T03:48:29 | 257,175,875 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from .disjointset import DisjointSet
from .graph import Graph
from .heap import Heap
| [
"munikarmanish@gmail.com"
] | munikarmanish@gmail.com |
a14f3c671e5acbbf49d5ae0b666af2876d391538 | b3d7ccc12bc5d1983e5f0fa5eadb7c27be45f8a4 | /Day_5/Edit Distance.py | fdf9263d2d93e23fc3661df24f901a5ee4fed017 | [] | no_license | RishavMishraRM/DSA_Problems | c0b50522fe7e8e665e587646fe8729e131a1ff6e | 700b6f6c3ecd392e8c8ee99b20baecaa69547db1 | refs/heads/main | 2023-04-01T19:49:42.504170 | 2021-04-05T19:37:30 | 2021-04-05T19:37:30 | 349,568,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Edit Distance
def editDistance(str1, str2, m, n):
if m==0:
return n
if n==0:
return m
if str1[m-1] == str2[n-1]:
return editDistance(str1, str2, m-1, n-1)
return 1 + min(editDistance(str1, str2, m, n-1),
editDistance(str1, str2, m-1, n),
... | [
"noreply@github.com"
] | RishavMishraRM.noreply@github.com |
cf5cca21ae032aadd676275e579d2dceb5939422 | 84999d4bbf507b665de86293f0a4f887cd6dc46d | /lesson5/lesson5.py | 94b75987b0ddd64c8b756c78f3315e21eea3b4f2 | [] | no_license | Daniiarz/python07.01 | 4c74c70507d9f37f743e86fb0b3ce9d3d6d32ef2 | a35cfb47a1a5801684f6047340b03bce4c9b6e1c | refs/heads/main | 2023-05-07T11:04:41.900548 | 2021-05-22T13:50:51 | 2021-05-22T13:50:51 | 363,419,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | l = [1, 2, 3, 4, 5, 6, 7]
print(l)
# inp = input()
# l.append(inp)
l.append(9)
print(l)
l.pop(0)
print(l)
l.reverse()
l = l[::-1]
print(l)
l.extend([1, 2, 3, 34])
print(l)
print(l.count(34))
print(l.index(34))
t = (1, 2, 3, 2, 2)
print(t.count(2))
| [
"daniyarflash.m01@gmail.com"
] | daniyarflash.m01@gmail.com |
9779d113de1d23689cb560b3221f69396fbcc7be | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2532/60712/301148.py | 9592c0ed80b67b6f5e33069a8bf6c394a2217966 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | l=input()
print(l) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e6e9f0e16d7cf27aaa479f6f055c6c71fb0ba23b | 4c35b2c5935d5172ac5973af75bbe0257a8e3706 | /algorithms/python/invert_bst.py | 266adf74f6d5a9c7a8f1e67f3502d07c27686cea | [] | no_license | TimothyJao/learning | 402f47b4d5ecba26b3223778fd40a9b45336d09d | 018dc90d942f6ab99dfe3760cf450907aa05d086 | refs/heads/master | 2023-01-10T05:19:16.392540 | 2020-02-05T02:26:48 | 2020-02-05T02:26:48 | 197,650,743 | 0 | 0 | null | 2023-01-05T01:51:25 | 2019-07-18T20:13:16 | JavaScript | UTF-8 | Python | false | false | 158 | py | def invertBinaryTree(tree):
if not tree:
return
tree.right, tree.left = tree.left, tree.right
invertBinaryTree(tree.left)
invertBinaryTree(tree.right)
| [
"timothy.i.jao@gmail.com"
] | timothy.i.jao@gmail.com |
994c8bcf533a7b6959aacd92ca8db002d312bf9a | 8cdfb19429031c0b9d395e9001c418dc71f940af | /ex33.py | a898902789258443a2e36c2c2ba779ca29502590 | [] | no_license | DikranHachikyan/CPYT210713 | 350c3de74641a81df7dbd7bb1509939cff940b0d | b58b94efb7553c9fbb3e39ef2a9dc186f7f6eda3 | refs/heads/master | 2023-07-12T09:08:43.419358 | 2021-08-12T07:54:41 | 2021-08-12T07:54:41 | 385,572,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # глобална променлива
port = 3306
def show(title, a = 100, *args, **kwargs):
print(f'title = {title}')
print('Optional Params:')
print(f'a = {a}')
print('args:')
for v in args:
print(v, end=' ')
print()
print(f'kwargs:{kwargs}')
if 'version' in kwargs:
print(f'version... | [
"dhachikian@expert-bg.org"
] | dhachikian@expert-bg.org |
c1652e8dd4ab62dc123e3343e3f7b60c57884467 | 6a8bc7da3104726f894ae360fce6a43a54b30812 | /gradio/components/bar_plot.py | 263d18e312e851df63d77c4e7ba92c20498b93ff | [
"Apache-2.0"
] | permissive | gradio-app/gradio | 0b6b29bb0029ad3b8fc1b143f111b1230b29d23a | e4e7a4319924aaf51dcb18d07d0c9953d4011074 | refs/heads/main | 2023-09-01T10:56:50.822550 | 2023-09-01T00:28:01 | 2023-09-01T00:28:01 | 162,405,963 | 21,224 | 1,537 | Apache-2.0 | 2023-09-14T21:42:00 | 2018-12-19T08:24:04 | Python | UTF-8 | Python | false | false | 16,124 | py | """gr.BarPlot() component."""
from __future__ import annotations
from typing import Callable, Literal
import altair as alt
import pandas as pd
from gradio_client.documentation import document, set_documentation_group
from gradio.components.base import _Keywords
from gradio.components.plot import AltairPlot, Plot
s... | [
"noreply@github.com"
] | gradio-app.noreply@github.com |
40356f43cf5fcc8e14df725c9bab822ae6ac97bb | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/video/BMN/opts.py | 9b797cc9fe40753ebb18cc0f2a24d66bc496ad38 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,749 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
1cb085b36881d878e4ea891fb94fd6c03072b1e2 | 40d8db9262a7ec846a66b636501881250b05fadb | /Chapter 3 - Code/The if-else Statement/odd_even.py | fc06fd3953c05b6aa2048ec7baf633efda113799 | [] | no_license | grace-omotoso/CIS-202---Python-Programming | ceeb036d0ef75cbedc11c1707fd5902dc883085b | 3bbbb4b567035dafd195d07e0210a1cc409c7937 | refs/heads/master | 2023-04-14T12:30:14.864195 | 2021-04-18T03:33:26 | 2021-04-18T03:33:26 | 332,593,455 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # A program to determine if a number is even or odd
number = int(input("Enter a number: "))
if(number % 2 == 0): # No remainder when number is divided by 0
print(f'{number} is an even number')
else: # Number has a remainder when divided by 0
print(f'{number} is an odd number')
| [
"gomotoso@calhoun.local"
] | gomotoso@calhoun.local |
6fa303381049597fde70d19937bf0c0f7a085ac4 | 566638e179b0add891e1d5c8900d35ae531af6dc | /alembic_simplelis/versions/e581a3205c91_added_foreign_key_to_the_orders.py | 746ff0b98000a765bf407e56a4ed251f03ce84f0 | [] | no_license | likit/querystud | 9b023a45adfdbf6dc8a3a2f97fefb82b765c8690 | 1702c09ff6931b2cd94d0b55ef42f244c503a68a | refs/heads/master | 2020-03-25T19:25:40.412824 | 2018-08-09T18:08:48 | 2018-08-09T18:08:48 | 144,082,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | """added foreign key to the orders
Revision ID: e581a3205c91
Revises: c5494b14736d
Create Date: 2018-08-09 15:51:47.022650
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e581a3205c91'
down_revision = 'c5494b14736d'
branch_labels = None
depends_on = None
def... | [
"likit.pre@mahidol.edu"
] | likit.pre@mahidol.edu |
b85d546535cfb3b812288938c5c9e24527c2a083 | 58a87e847f8c6cd5b83cbe5758e779679563cc66 | /Exercícios complementares/pilha.py | b46caa86d8292dcefd7e62fb002d027b1a23926b | [] | no_license | suzanamfp/Atividades-complementares-Python | 9444dec6cd952db3cdeaf26648f0eb60a89a0862 | d1a04f3f4d70298aa8448a37ba3e4b5313ced472 | refs/heads/master | 2022-12-02T21:23:55.261903 | 2020-08-18T19:28:34 | 2020-08-18T19:28:34 | 288,545,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | class Pilha():
def __init__(self):
self.letras = []
def getPilha(self):
return self.letras
def inserirLetras(self, novaLetra):
self.letras.append(novaLetra)
def main():
pilhaVar = Pilha()
caracteres = str (input ("Quais caracteres você deseja inserir: "... | [
"noreply@github.com"
] | suzanamfp.noreply@github.com |
4787f23147b30e0a772e8f4b428ce4f431b57385 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch13_2020_03_18_01_50_46_957225.py | da617993a86673cf8ee9c58988a3889b1159168b | [] | 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 | 105 | py | import_math
def encontra_cateto (x,y):
x = 4
y = 5
z = math.sqrt (y**2 - x**2)
return z
| [
"you@example.com"
] | you@example.com |
acda74b231204323a54d0dc515d6727f82ceeb77 | cc2f33a1ef70161b7eb85449e174b32f39db25e4 | /PrimeraPython/PrimeraClient.py | bf934a0d0ecc6095c4a1ee876976fc4dcd108470 | [] | no_license | WarotAsawa/REST-LAB | 55fb2013b982ede22f1993480b166b2b21568d07 | eb8d22803d4a5d2b2a26abcf2451d78e6ee03dff | refs/heads/master | 2021-07-08T10:26:42.205769 | 2021-07-02T08:45:46 | 2021-07-02T08:45:46 | 161,033,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,735 | py | import argparse
from os import sys
import random
from sys import path
from os import getcwd
import os, sys, inspect, pprint
import time
from hpe3parclient import client, exceptions
# this is a hack to get the hpe driver module
# and it's utils module on the search path.
#cmd_folder = os.path.realpath(os.path.abspath("... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
10304fcac8410e3d4aa9a4bad995223b80ccad89 | 481e3e32338314f987d7dfcf6346dfe2ec6dae0b | /Урок1.4/Задача4.py | 20574a51ee39a87ceeaef23c5dcd68f590b7956a | [] | no_license | ZombieSave/Python | 4f6750f0e631cf7077ab25fb5074b9bc6e83bc8e | 9954f3cc26f3df68f0e6ab7e64f2cb165e3c52b5 | refs/heads/master | 2023-09-01T23:10:02.815493 | 2021-11-22T22:52:55 | 2021-11-22T22:52:55 | 356,540,077 | 0 | 0 | null | 2021-11-22T12:31:20 | 2021-04-10T09:56:31 | Jupyter Notebook | UTF-8 | Python | false | false | 618 | py | # 4. Представлен список чисел. Определить элементы списка, не имеющие повторений. Сформировать итоговый массив чисел,
# соответствующих требованию. Элементы вывести в порядке их следования в исходном списке. Для выполнения задания
# обязательно использовать генератор.
list_1 = [2, 2, 2, 7, 23, 1, 44, 44, 3, 2, 10, 7,... | [
"you@example.com"
] | you@example.com |
dab562edcd20276ce6e4a2f1ae96353be9fc5a97 | d93159d0784fc489a5066d3ee592e6c9563b228b | /RecoVZero/VZeroFinding/python/VZeros_cff.py | a4c273a13b61256c2edfbe66435c126215f23145 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 91 | py | import FWCore.ParameterSet.Config as cms
from RecoVZero.VZeroFinding.VZeros_cfi import *
| [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
204401421c1026631e53a35a22d6056e74936ca5 | b45765d8e21e3239960fe7dc78eb095c97fd2908 | /manage.py | dedf943777ed7633d1f3acc35cecdbd6c6b2e520 | [] | no_license | infinityfish/djangonext | f0e3918b5d969ca98256123924d975901c318f62 | c0c4ce79035a59a400901128e5d28edac5dbb8e2 | refs/heads/main | 2023-08-14T02:00:37.329516 | 2021-09-30T00:25:19 | 2021-09-30T00:25:19 | 411,702,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangonext.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"you@example.com"
] | you@example.com |
9ebf9741ab0360028b4865324fe3202bcf3a81f9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_077/ch14_2020_03_04_18_03_56_439022.py | 3384927012d2413f267ee24735858355e9a6c8b8 | [] | 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 | 178 | py | import math
def calcula_distacia_do_projetil(v,θ,y0):
a=(v**2)/19.6
b=19.6*y0
c=(v**2)*(math.sin(θ))**2
d=math.sin(2*θ)
y=a*(1+(1+b/c)**1/2)*d
return y | [
"you@example.com"
] | you@example.com |
587522a50ac28fe01d79c12c756690871240de19 | d785e993ed65049c82607a1482b45bddb2a03dda | /tight/WWZ_cfg.py | c77c41e3fcea535c548034c9086e98cdb6bc1ee9 | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'WWZ'
config.General.transferLogs= False
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.p... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
db4f6de259aa0f404fd3492ae7994f0f6c4d3a10 | ef61c5f177ee44ac08325335fc28a12f3fccbb58 | /resource_management/tests/presenters/test_get_login_response.py | 639736c6942545778c7ea291126baec95bbc689d | [] | no_license | bammidichandini/resource_management-chandini | 3c11c7b2eb5e2f8d3df5b55e4d3ee86a27ed5c3a | aa4ec50f0b36a818bebc2033cb39ee928e5be13c | refs/heads/master | 2022-12-01T19:59:25.366843 | 2020-07-23T09:10:42 | 2020-07-23T09:10:42 | 269,610,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from resource_management.presenters.authentication_presenter import PresenterImplementation
def test_get_login_response(user_auth_tokens_dto,
get_login_response):
#arrange
expected_dto = get_login_response
presenter = PresenterImplementation()
#act
actual_dict = pres... | [
"chandini.bammidi123@gmail.com"
] | chandini.bammidi123@gmail.com |
fc407e98aca0d1bb8ad6bd17e9dd13dbed924272 | 15e6385746ccf4b8eb6c6e302aca236021bb8781 | /GraphAndSearch/le39_combination_sum.py | 0673318e7cce1fef42cfa8cec3fd7beba2a8df4e | [] | no_license | akb46mayu/Data-Structures-and-Algorithms | 11c4bbddc9b4d286e1aeaa9481eb6a620cd54746 | de98494e14fff3e2a468da681c48d60b4d1445a1 | refs/heads/master | 2021-01-12T09:51:32.618362 | 2018-05-16T16:37:18 | 2018-05-16T16:37:18 | 76,279,268 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | """
Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
The same repeated number may be chosen from C unlimited number of times.
Note:
All numbers (including target) will be positive integers.
The solution set must... | [
"noreply@github.com"
] | akb46mayu.noreply@github.com |
7398868061276db93c41e7e8e6ff06907538132c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_parasite.py | 2ca38be576e7fb564f5cf84c901454b000ee1a39 | [
"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 | 472 | py |
#calss header
class _PARASITE():
def __init__(self,):
self.name = "PARASITE"
self.definitions = [u'an animal or plant that lives on or in another animal or plant of a different type and feeds from it: ', u'a person who is lazy and lives by other people working, giving them money, etc.: ']
self.parents = []
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8d8efa43201f0ad883ac5e6b7614c7c3520d7da4 | 1508f7da93705839660e4fdfb87df7a9664bf087 | /a10API/a10API/app/scripts/axapisdk/python_sdk/zone/zone.py | 5b16fc76657f3084cc3ce32e37fa2b134467aaae | [] | no_license | Younglu125/A10_Networks | 1a1ecebb28dd225f6a1f901a7c28350300df356d | 78a177ae4c8638d58dc873e4b1c589a1d5aaa717 | refs/heads/master | 2020-06-17T00:35:30.325740 | 2016-03-21T18:17:30 | 2016-03-21T18:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,725 | py | ########################################################################################################################
# File name: zone.py
# Copyright(C) 2007-2013, A10 Networks Inc. All rights reserved.
# Software for all A10 products contain trade secrets and confidential
# information of A10 Networks and its subs... | [
"info@pythonicneteng.com"
] | info@pythonicneteng.com |
bac0aab1fbfa2ec4d1a2311d06a60f7a34d8964d | 9e780f17eb49171d1f234944563225ca22b3c286 | /postgresqleu/elections/admin.py | b29db362cfdfbec14e005082d638958cdcdd8641 | [
"MIT"
] | permissive | pgeu/pgeu-system | e5216d5e90eec6c72770b88a5af4b3fd565cda59 | 885cfdcdadd4a721f72b699a39f26c94d1f636e0 | refs/heads/master | 2023-08-06T13:03:55.606562 | 2023-08-03T12:47:37 | 2023-08-03T12:47:37 | 161,434,221 | 15 | 27 | MIT | 2023-05-30T11:21:24 | 2018-12-12T04:48:14 | Python | UTF-8 | Python | false | false | 968 | py | from django.contrib import admin
from django.forms import ValidationError, ModelForm
from .models import Vote, Election, Candidate
class VoteAdminForm(ModelForm):
class Meta:
model = Vote
exclude = []
def clean(self):
raise ValidationError("You really shouldn't edit votes! If you *re... | [
"magnus@hagander.net"
] | magnus@hagander.net |
7bcd1ecc353f79ea2b9edea168771972c9766771 | bbf6176add49c4a1bed3aca45c267ba5bb3d9348 | /net/settings.py | 8f41b926c4ec8354abeebcdda9c58cdd0899665c | [] | no_license | totalgood/capstone | 60e2c839e301670a3da600d14f94691f18c9a49d | cdbc30d2b6eb1739b6f718991a4ff1b7080a96f8 | refs/heads/master | 2021-01-24T23:00:51.125462 | 2015-12-31T20:58:34 | 2015-12-31T20:58:34 | 48,959,667 | 1 | 0 | null | 2016-01-03T20:28:22 | 2016-01-03T20:28:20 | null | UTF-8 | Python | false | false | 2,827 | py | """
Django settings for net project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths in... | [
"uglyboxer@gmail.com"
] | uglyboxer@gmail.com |
3b27ec4ec3ca780a48de7165cf22380f8a6a1233 | bd86f45ec9355cf1b76c25307d77c85ff98d30a8 | /lib/common/commands/fastboot.py | ea9032044ab6cafae839505fd2b9aea9d330f69d | [
"MIT"
] | permissive | WhySoGeeky/DroidPot | fd39abe490117283f992d80f317574f47809de8d | 7c3d9e975dae3835e2ccf42c425d65b26466e82a | refs/heads/master | 2021-07-02T12:47:16.269514 | 2015-11-03T17:49:41 | 2015-11-03T17:49:41 | 45,484,292 | 6 | 0 | MIT | 2021-06-10T17:59:45 | 2015-11-03T17:44:48 | Python | UTF-8 | Python | false | false | 2,335 | py | __author__ = 'RongShun'
from command import Command
from os import path, getuid
from time import sleep
import os, sys
BASE_DIR = os.path.join(os.getcwd(), "..", "..", "..")
sys.path.append(BASE_DIR)
from lib.common.exceptions import NotRootUserError
SUCCESSFUL = True
UNSUCCESSFUL = False
class Fastboot(Command):
... | [
"phobiatrs@gmail.com"
] | phobiatrs@gmail.com |
a321ed9aa8b79dcff4b9cf001a1dc0a12ee557a1 | 4273f162abb12ef1939271c2aabee9547ac6afee | /studio_maya/resources/ui/main.py | 4571e277569ab2c3d84d03f5e9a1b934485c2908 | [] | no_license | xiyuhao/subins_tutorials | 2717c47aac0adde099432e5dfd231606bf45a266 | acbe4fe16483397e9b0f8e240ca23bdca652b92d | refs/heads/master | 2023-07-28T13:42:41.445399 | 2021-09-12T11:02:37 | 2021-09-12T11:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,551 | py | '''
main.py 0.0.1
Date: August 15, 2019
Last modified: August 27, 2019
Author: Subin. Gopi(subing85@gmail.com)
# Copyright(c) 2019, Subin Gopi
# All rights reserved.
# WARNING! All changes made in this file will be lost!
Description
None.
'''
import os
import sys
import json
import warnings
... | [
"subing85@gmail.com"
] | subing85@gmail.com |
41ef3fd2240a454f8c48b0a1c5049b4903cb7541 | 33d2aee1fdbc7d88d2c16c0e80be8159333ecdd1 | /mimic3models/decompensation/logistic/main.py | fb51333e6f688816dff49c437ef73b03d0055dd2 | [
"MIT"
] | permissive | hsd1503/mimic3-benchmarks | 2f2a7947d0a8e6ba5198abe3fb52665dcbe0877d | 6a0a8bf0d2d3b849d1cb7236f4e81fc072cbfc9f | refs/heads/master | 2022-04-27T02:45:20.006789 | 2020-04-30T00:50:06 | 2020-04-30T00:50:06 | 256,847,936 | 4 | 2 | MIT | 2020-04-18T20:35:04 | 2020-04-18T20:35:04 | null | UTF-8 | Python | false | false | 5,443 | py | from __future__ import absolute_import
from __future__ import print_function
from sklearn.preprocessing import Imputer, StandardScaler
from sklearn.linear_model import LogisticRegression
from mimic3benchmark.readers import DecompensationReader
from mimic3models import common_utils
from mimic3models.metrics import prin... | [
"harhro@gmail.com"
] | harhro@gmail.com |
93789eec3c7156e89d48bdcea56cd134bb742403 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/matplotlib-3.0.3-py3.7-macosx-10.9-x86_64.egg/matplotlib/hatch.py | cb1e2960faf336c33b9b8afce0f48c3c550dc03c | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 6,988 | py | """
Contains a classes for generating hatch patterns.
"""
import numpy as np
from matplotlib.path import Path
class HatchPatternBase(object):
"""
The base class for a hatch pattern.
"""
pass
class HorizontalHatch(HatchPatternBase):
def __init__(self, hatch, density):
self.num_lines = in... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
f991547047e02b75aca1adf5228da3672ab53beb | 48c5bcb370858fe4aea1d53ec1df3340ade73da4 | /project/settings/docker.py | 1cd2b7560c8c70dc6615d78891f8c5f9cc6e3c1b | [
"MIT"
] | permissive | uisautomation/lecture-capture-preferences-webapp | e9421010dd02d4daa66b08299fd00810504d3885 | bf54bc9b37241a5a7a6c0df7b1e2c0f8dd16bed6 | refs/heads/master | 2020-04-14T21:23:40.415195 | 2019-02-22T12:28:07 | 2019-02-22T12:28:07 | 164,126,964 | 0 | 0 | MIT | 2019-02-01T16:57:20 | 2019-01-04T15:59:01 | Python | UTF-8 | Python | false | false | 2,489 | py | import os
# Import settings from the base settings file
from .base import * # noqa: F401, F403
# Ensure that DEBUG is not set
DEBUG = False
# All hosts are allowed to connect to the container by default
ALLOWED_HOSTS = os.environ.get('DJANGO_ALLOWED_HOSTS', '*').split(',')
# Logging
LOGGING = {
'version': 1,
... | [
"rjw57@cam.ac.uk"
] | rjw57@cam.ac.uk |
c4c88d76ed45cf055bb4ec1b2e301d86c98858bf | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /mrex/preprocessing/_encoders.py | af6e6eb8389a9761d7d0aaa0a406f0aa43b62c51 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,232 | py | # Authors: Andreas Mueller <amueller@ais.uni-bonn.de>
# Joris Van den Bossche <jorisvandenbossche@gmail.com>
# License: BSD 3 clause
import numpy as np
from scipy import sparse
from ..base import BaseEstimator, TransformerMixin
from ..utils import check_array
from ..utils.fixes import _argmax
from ..utils.va... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
8ac76a5f0e8600c8037d53f7100ded47513c06d5 | 9b018e9eac8d97fbcc1e76a69b95c994f79a6ea3 | /student/migrations/0016_auto_20171103_2347.py | 4d3248a3af51102f1297840fd0b4c02466b93296 | [] | no_license | hbgolze/contest-database | e39f269d7337652e7cdad03cc29827d4f729ec8f | 263385b438f7b7e1ab99062aad561ed0cec9c079 | refs/heads/master | 2023-06-26T21:30:08.246647 | 2023-06-11T02:34:41 | 2023-06-11T02:34:41 | 71,851,839 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-11-04 04:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0015_auto_20171102_1911'),
]
operations... | [
"hbgolze@gmail.com"
] | hbgolze@gmail.com |
4b66fc003ed8b3c7508ae059fb063a73928529ac | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/common/types/text_label.py | 2ee83572245fa46a4e39fa87e2609eab004d966a | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
62605e85abd8b2e4a97a6b81c02ac0161ea655cc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00001/s786324387.py | 76f8fd4ceed95f05321a39663ed5d147dc776067 | [] | 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 | 189 | py | import sys
def main():
l = []
for line in sys.stdin.readlines():
l.append(int(line.rstrip()))
for _ in range(3):
print max(l)
l.remove(max(l))
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
41659e2418d5b425057718fe95a7d08f86fd36f8 | 830e763edfdf5205b010fa27dd927ebffb314e09 | /server.py | f0526ccac623e0dd0a272afad594e1388f9df2b7 | [] | no_license | Princekrampah/viperHackingTool | ad7c52f6dc4744c837dbe306137cfac5330e25cf | cc4e5623b0b031ee06e44c10971f5adafc018266 | refs/heads/master | 2022-11-09T20:01:37.947306 | 2020-06-22T09:54:37 | 2020-06-22T09:54:37 | 274,091,916 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,962 | py | import socket
# from helpMenu import helpOptions
from threading import Thread
import time
from datetime import datetime
import os
import secrets
from tqdm import tqdm
import math
# lists to store things
all_connections = []
all_address = []
# Setting the host and ports.
host = "localhost"
port = 5000
def creat_sock... | [
"jsksprince@gmail.com"
] | jsksprince@gmail.com |
89c91dc7a386dd7e94cbc39a10a454261f0898e9 | 5bb8142ae4b007b84f0af0a94fa5990af7d1649a | /vnpy/database/mysql/mysql_database.py | e56676f7c7a68abfabefe88dc035209ba85a59f7 | [
"MIT"
] | permissive | zdhlovelh/vnpy | e4b6817552a6393b572cbe55c2806683b7790639 | 8b904ae8d03bd8e46ec388258e4ba63c73f37c4f | refs/heads/master | 2023-03-27T12:48:51.203444 | 2021-03-22T14:02:34 | 2021-03-22T14:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,939 | py | """"""
from datetime import datetime
from typing import List
from peewee import (
AutoField,
CharField,
DateTimeField,
FloatField, IntegerField,
Model,
MySQLDatabase as PeeweeMySQLDatabase,
ModelSelect,
ModelDelete,
chunked,
fn
)
from vnpy.trader.constant import Exchange, Inter... | [
"xiaoyou.chen@foxmail.com"
] | xiaoyou.chen@foxmail.com |
1b725242212d96a600a88d11cec966cc2a191b9a | 1d1e911e114d67130156368eb4cccdc38d4adcf9 | /suds/__init__.py | 42eef791d2b559ecdd2555156d19347091811b7d | [] | no_license | dilawar/moose-gui | 6a8e71113986afa6cc806e65b991f4615cc748ed | 98672235660bbc76171ec2f92c2a4d0a5074c501 | refs/heads/master | 2021-01-16T23:08:06.989567 | 2019-06-13T17:55:48 | 2019-06-13T17:55:48 | 45,394,312 | 0 | 0 | null | 2015-11-02T12:54:19 | 2015-11-02T12:54:19 | null | UTF-8 | Python | false | false | 5,561 | py | # This program is free software; you can redistribute it and/or modify
# it under the terms of the (LGPL) GNU Lesser General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will b... | [
"dilawars@ncbs.res.in"
] | dilawars@ncbs.res.in |
6ffbb3a02c3af67210ed04f7f4c0ccf859b78285 | f98f4aaeca3ac841905e0cd8547bbf41944fe690 | /编程语言/Python/Python编程从入门到实践/第一部分_基础知识/第3章_列表简介/3_11.py | 30c14db6cc0e29a0b99c5e8c6da422c554b865d7 | [] | no_license | zhb339/book-learning | 64f433b1ee1f66f3120828352df3b533be4cf9de | 5273fc8d11b2d602484dbe95e55f1e931858382f | refs/heads/master | 2020-03-29T10:48:22.771146 | 2018-11-07T13:46:53 | 2018-11-07T13:46:53 | 149,823,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | ll = ["aa", "bb"]
print(ll[1])
| [
"551788157@qq.com"
] | 551788157@qq.com |
6fdc4fe783e636882f294876c88c91b833ef9212 | 066ee4df594a5dc90335d271b9d5a1b1e2a4d34c | /y/google-cloud-sdk/.install/.backup/platform/gsutil/third_party/boto/boto/elastictranscoder/layer1.py | e47c199c7e000588668b6b86f3ea3366c5b86ee2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | ychen820/microblog | a2d82447525325ec58285c2e5db58b79cceaca1b | d379afa2db3582d5c3be652165f0e9e2e0c154c6 | refs/heads/master | 2021-01-20T05:58:48.424357 | 2015-04-28T22:03:09 | 2015-04-28T22:03:09 | 32,948,331 | 0 | 2 | BSD-3-Clause | 2020-07-25T05:04:35 | 2015-03-26T19:45:07 | Python | UTF-8 | Python | false | false | 44,043 | py | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# 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 ... | [
"ychen207@binghamton.edu"
] | ychen207@binghamton.edu |
fcf8f983bb4087ecb26805337250e246d396b2f4 | bd6ae68d882cc40876b4f2906fa522ef807d1d89 | /tepy/openstack/swift/test/unit/common/test_constraints.py | a15045313e712005770bb9ba21b2c42308d4b5af | [
"Apache-2.0"
] | permissive | bopopescu/Projects-1 | 7ecc1f472f418b701bc40c8a58bab447e678c68f | 1b7fd99bf1ed96adb7a9486daf098947a9208f77 | refs/heads/master | 2022-11-19T18:31:32.863170 | 2018-02-26T02:09:09 | 2018-02-26T02:09:09 | 281,792,443 | 0 | 0 | null | 2020-07-22T22:06:26 | 2020-07-22T22:06:25 | null | UTF-8 | Python | false | false | 25,539 | py | # Copyright (c) 2010-2012 OpenStack Foundation
#
# 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 agree... | [
"liujicun01@163.com"
] | liujicun01@163.com |
19040807f85377ad969d55d639c11b156711e1f8 | bb6ebff7a7f6140903d37905c350954ff6599091 | /tools/android/android_tools.gyp | 3fe1c6d8c620b848d5d8bc33baaeb9725aa48a70 | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 1,176 | gyp | # Copyright (c) 2012 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.
{
'targets': [
# Intermediate target grouping the android tools needed to run native
# unittests and instrumentation test apks.
{
'ta... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
0194cb0245c8803ea2e868d475ef449e90b26b87 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02887/s980032315.py | 2f8732b44edd9f27549e8f869ff8200e580bf48d | [] | 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 | 431 | py | import sys
sys.setrecursionlimit(10**9)
def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))
INF=10**20
def main():
N=ii()
S=list(input())
pre = None
X = []
for s in S:
if s != p... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a4b623dbca518211f7a9fdba7348097d173311dc | b3fd61fdfd6ea82695d805c95321619423b836e6 | /uniquePathVariation.py | d06a21554a2222b5c9f298cf6b13da374b58b847 | [] | no_license | sjogleka/General_codes | 761967fd1175c97804d49290af9db10828d4900f | 2772ea7b723c4ca680864b40b41fd34cc197726d | refs/heads/master | 2021-07-16T07:41:05.841942 | 2020-10-14T01:49:12 | 2020-10-14T01:49:12 | 218,369,391 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | def uniquePath(m,n):
grid = [[1 for i in range(m)] for j in range(n)]
for i in range(n-2,-1,-1):
for j in range(1,m):
grid[i][j] = grid[i][j-1]+grid[i+1][j]
return grid
if __name__ == '__main__':
print(uniquePath(3,2))
print(uniquePath(7, 3)) | [
"sjogleka@uncc.edu"
] | sjogleka@uncc.edu |
c91609cb6db9629e9475b01d2179cb6d0b294121 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/rtctrl/setrtmetric.py | 08d98dc379fb5893c87debcc9941284b0bc68ed3 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,433 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
5edb5af1ca80ba440a7d7242b81efb5c45f3f19b | ca5de66d73dcf62b3d3f9014f4577ed3119054c5 | /ivy_tests/test_core/test_nest.py | 7e836d81a8efc8ddcb228ddadc0f558653a992ab | [
"Apache-2.0"
] | permissive | MZSHAN/ivy | 172dea365e8a903d3548b786cbb0f10d4fd03406 | 02ac7e8ee2202563049116186fe6595313d65cc1 | refs/heads/master | 2023-08-20T19:02:57.389728 | 2021-10-23T12:34:54 | 2021-10-23T12:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,944 | py | """
Collection of tests for templated general functions
"""
# global
import copy
import pytest
# local
import ivy
import ivy.numpy
# Helpers #
# --------#
def _snai(n, idx, v):
if len(idx) == 1:
n[idx[0]] = v
else:
_snai(n[idx[0]], idx[1:], v)
def _mnai(n, idx, fn):
if len(idx) == 1:
... | [
"daniel.lenton11@imperial.ac.uk"
] | daniel.lenton11@imperial.ac.uk |
60b72de0bca1c8f647bb723ed9772330d64977a4 | c85ec51b920350e095b6fc67435a490352cef1f4 | /goods/migrations/0027_auto_20171222_1534.py | c1bc1aa609432c733bae80e836d8bd939ab6bc30 | [
"Apache-2.0"
] | permissive | huachao2017/goodsdl | 195dbc959d424248982b61f2fe2c22dbc4347746 | 3616d53b90696a97a5d56a064e2a14d484b821d7 | refs/heads/master | 2021-06-11T01:55:16.235507 | 2019-09-24T07:49:08 | 2019-09-24T07:49:08 | 109,931,837 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-12-22 15:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0026_rfidgoods_count'),
]
operations = [
migrations.AlterField(
... | [
"21006735@qq.com"
] | 21006735@qq.com |
e62fc6c373bd0ac1a54cf630a7002c1ba6992d2c | 70e1d7c3e375ecff09df36e5a4ceda5691221968 | /metrics.py | c46f9e946bb5bc6724a70f058f3c22f65f204b2d | [
"Apache-2.0"
] | permissive | doublechenching/ship_detection | 5b91aa4a7fbe6eb5a88389d1a517641a53740890 | 1ba4926e0d28043863df05ae8afc3d5b336b350d | refs/heads/master | 2020-04-06T17:53:23.855070 | 2018-11-15T08:47:02 | 2018-11-15T08:47:02 | 157,676,999 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,721 | py | #encoding: utf-8
from keras import backend as K
import tensorflow as tf
import numpy as np
from skimage import morphology as m
from keras.losses import binary_crossentropy
def dice_coef(y_true, y_pred):
y_true_f = K.flatten(y_true)
y_pred_f = K.cast(K.greater(K.flatten(y_pred), 0.5), 'float32')
intersecti... | [
"vichenqin@gmail.com"
] | vichenqin@gmail.com |
5ba0632409a3cc69fc1b6758ebdb5d67a2935604 | 539077b499f10c133fe8ed003255b9fbc6d4c178 | /廖雪峰python3教程/OOP-Plus/__new__and__init__/new_and_init01.py | 691f2b9f5ac6f2478c6081656568ad19234650ba | [] | no_license | lxh1997zj/Note | 78e8310ff49f27bc22953b510cad3f35a25ed182 | 2dab5957f0f4a2117339b449d730f51626fd4b08 | refs/heads/master | 2020-04-25T16:11:29.890458 | 2019-03-05T12:56:00 | 2019-03-05T12:58:09 | 172,901,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # !/usr/bin/env python3
# -*- coding:utf-8 -*-
class Foo(object):
price = 50
def how_much_of_book(self,n):
print(self)
return self.price * n
foo = Foo()
print(foo.how_much_of_book(8))
print(dir(Foo)) | [
"lxh1997zj@163.com"
] | lxh1997zj@163.com |
b5cbe508f64b5f50cd65bd9ae7142916786ffec6 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/battle_results/context.py | b5fe8364849ebcba87d5e659d4d204b759227b08 | [] | 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 | 2,126 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/battle_results/context.py
from constants import ARENA_BONUS_TYPE
from gui.shared.utils.decorators import ReprInjector
@ReprInjector.simple(('getArenaUniqueID', 'arenaUniqueID'), ('needToShowImmediately', 'showImmediately'), ('n... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
38ece0a858307a8e06bab5e68912116e3dd60754 | bfe345ba31673553ce156e4dca1ba5b6317ca4c2 | /core/models/utilities/upload.py | ab0f922b987974d7b387147d4c7ac19a2dc39f0c | [] | no_license | phillipmalboeuf/dauphin | 215c6432fbcaf574ea0bd987238a0d2309d699af | 101d8ffc113f36c8d1754077eebae2a6f18d4a3d | refs/heads/master | 2023-01-09T01:55:36.905732 | 2021-06-20T18:35:35 | 2021-06-20T18:35:35 | 84,462,808 | 0 | 0 | null | 2023-01-05T06:11:24 | 2017-03-09T16:13:59 | Python | UTF-8 | Python | false | false | 1,081 | py |
from core import app
from core.models.core.has_routes import HasRoutes
from flask import request
from bson.objectid import ObjectId
from werkzeug import secure_filename
import boto
import mimetypes
with app.app_context():
class Upload(HasRoutes):
endpoint = '/_upload'
routes = [
{
'route': '',
... | [
"phil@boeuf.coffee"
] | phil@boeuf.coffee |
69cf58af910ea73c8f7dae422c91402a691206dd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_089/ch140_2020_04_01_20_02_56_463155.py | ba3ed76cfbf7a893e7d357a5c354f2401c443fea | [] | 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 | 313 | py | x = list
def faixa_notas(x):
i = 0
soma1 = 0
soma2 = 0
soma3 = 0
while i <= len(x):
if x[i] < 5:
soma1 = soma1 + 1
if 5 <= x[i] <= 7:
soma2 = soma2 + 1
if x[i] > 7:
soma3 = soma3 + 1
Lista = [soma1,soma2,soma3]
return Lista | [
"you@example.com"
] | you@example.com |
4579e0c30f8e76d6160e9ab3b845580f07c4b392 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/LQ/LQToUE_M_750_TuneCUETP8M1_13TeV_pythia8_cff.py | e5ceab4fb7dd56dcd58611157a5623b9eb19ed91 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,146 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxeventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(1)... | [
"dnash@cern.ch"
] | dnash@cern.ch |
62e67f0fdebbfad3b1fbb9aa663e27d3741f0d84 | 48a7b266737b62da330170ca4fe4ac4bf1d8b663 | /molsysmt/form/parmed_Structure/to_parmed_GromacsTopologyFile.py | 2f389d87af02832a26fb3aefa97d688ec7712503 | [
"MIT"
] | permissive | uibcdf/MolSysMT | ddab5a89b8ec2377f383884c5169d147cab01322 | c3d713ba63db24eb8a2426115cf8d9cb3665d225 | refs/heads/main | 2023-08-08T15:04:16.217967 | 2023-08-04T05:49:56 | 2023-08-04T05:49:56 | 137,937,243 | 15 | 3 | MIT | 2023-06-04T20:27:06 | 2018-06-19T19:38:44 | Python | UTF-8 | Python | false | false | 401 | py | from molsysmt._private.digestion import digest
@digest(form='parmed.Structure')
def to_parmed_GromacsTopologyFile(item, atom_indices='all'):
from . import extract
from parmed.gromacs import GromacsTopologyFile as GromacsTopologyFile
tmp_item = extract(item, atom_indices=atom_indices, copy_if_all=False)
... | [
"prada.gracia@gmail.com"
] | prada.gracia@gmail.com |
b59203a150f789b0cdc04903dfc0ac582ab20e9b | 11334e46d3575968de5062c7b0e8578af228265b | /Projects/FindDock/color-ranger.py | 03798aae66f4ac6c866c2410a5981885ab57d421 | [] | no_license | slowrunner/Carl | 99262f16eaf6d53423778448dee5e5186c2aaa1e | 1a3cfb16701b9a3798cd950e653506774c2df25e | refs/heads/master | 2023-06-08T05:55:55.338828 | 2023-06-04T02:39:18 | 2023-06-04T02:39:18 | 145,750,624 | 19 | 2 | null | 2023-06-04T02:39:20 | 2018-08-22T18:59:34 | Roff | UTF-8 | Python | false | false | 3,353 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File color-ranger.py
#
# based on Practical Python and OpenCV chapter 3 program range-detector.py
#
# Caution: This process takes 60% of RPi 3 and load average of 3.5
# and will send processor temp to 78C, almost to temp threshold
# DO NOT LEAVE RUNNIN... | [
"slowrunner@users.noreply.gethub.com"
] | slowrunner@users.noreply.gethub.com |
659b2fb1d49a9f69689c0be05c8cc040d6264099 | a0019195ba112a1f7746403ada4621576d1fe9ae | /temporal/llePhaReader.py | 5a0586bed85c1a7bd4e1ff3e04a739d21a4aa2f7 | [] | no_license | JohannesBuchner/spectralTools | ad238789b929f609e6da84101ff1fe655a0fa602 | 14578051dd961aaec0acee109df3660a673ab667 | refs/heads/master | 2023-08-14T06:38:17.379318 | 2015-05-30T15:32:14 | 2015-05-30T15:32:14 | 36,563,356 | 1 | 1 | null | 2015-05-30T15:19:36 | 2015-05-30T15:19:35 | null | UTF-8 | Python | false | false | 3,120 | py | import pyfits as pf
from numpy import logical_and, transpose, array, genfromtxt, zeros
class llePhaReader:
def __init__(self,fileName):
self.fileName = fileName
self.inFile = pf.open(fileName)
def ReadTBins(self,tMin,tMax,trigTime,tBins,dt):
self.dt=dt
tmp... | [
"jmichaelburgess@gmail.com"
] | jmichaelburgess@gmail.com |
a8c35a78a38fd5e3225c2953b12ea32587b1a11c | 999ed80db247794159be1d752bc6f0fc272bd117 | /tests/arp/test_arp_dualtor.py | b2abc94d5f2416c534235c909635a11a09335dd6 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ramakristipati/sonic-mgmt | 7fee876412f0121da96d751f7d199690c73496f3 | a86f0e5b1742d01b8d8a28a537f79bf608955695 | refs/heads/master | 2023-08-31T07:55:38.446663 | 2023-08-31T06:34:53 | 2023-08-31T06:34:53 | 315,448,103 | 2 | 0 | NOASSERTION | 2020-11-23T21:44:07 | 2020-11-23T21:44:07 | null | UTF-8 | Python | false | false | 9,187 | py | """
This module tests ARP scenarios specific to dual ToR testbeds
"""
from ipaddress import ip_address, ip_interface
import logging
import random
import time
import pytest
import ptf.testutils as testutils
from tests.common.helpers.assertions import pytest_assert, pytest_require
from tests.common.dualtor.mux_simulator... | [
"noreply@github.com"
] | ramakristipati.noreply@github.com |
2039446b0e1c6a54a5ab2411f34f4cfe68a7cf97 | cb33113c4063867fa41cb74943d0a056a383b6a1 | /과목평가/p1.py | dc0b84f96dc82c06e111070d11ab0774b01e7c20 | [] | no_license | manuck/Algorithm | 9c6280095da6b88473460da52d07fb23ee6c3f9f | 4c15ff42f39224eb9b29728544c92dce9341fdfa | refs/heads/master | 2020-04-18T02:06:53.437576 | 2019-06-26T08:59:16 | 2019-06-26T08:59:16 | 167,148,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | import sys
sys.stdin = open("x모양_input.txt")
t = int(input())
for case in range(1, t+1):
N, K = map(int, input().split())
a = [[0 for _ in range(N)]for _ in range(N)]
for i in range(N):
a[i] = list(map(int, input().split()))
# print(a[i])
res = 999
for i in range(N-K+1):
... | [
"snc9000@naver.com"
] | snc9000@naver.com |
b69a721ec44151503dba0311a608e63d233e9918 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /es_maml/es_maml_client.py | bbbdcf02b64f6a6532259a4c211bdc5dd008ff22 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 4,320 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
fc29893810585e12cd498081dad75dfcb208dcd2 | a9094cb78d271f1ffa93a38c7a5f57e3381bbf23 | /venv/Lib/site-packages/_pytest/mark/expression.py | f8e7ea8b348c09caeb2faaae5e5c58f6b7aaabcd | [] | no_license | AndrewChuma/hw1 | 7c083546f6d3a63db21d76c0bc96ddf91a300764 | 44438596198e6ec1a2670a7025e938ef433a2bf2 | refs/heads/master | 2023-01-04T22:45:49.399636 | 2020-11-09T17:27:18 | 2020-11-09T17:27:18 | 311,410,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,350 | py | r"""Evaluate match expressions, as used by `-k` and `-m`.
The grammar is:
expression: expr? EOF
expr: and_expr ('or' and_expr)*
and_expr: not_expr ('and' not_expr)*
not_expr: 'not' not_expr | '(' expr ')' | ident
ident: (\w|:|\+|-|\.|\[|\])+
The semantics are:
- Empty expression evaluates to False.
-... | [
"andreychuma.1989@gmail.com"
] | andreychuma.1989@gmail.com |
c33a4a68e582cc834ed9027262414ae55eb8e739 | 91b7a9729161094e458952199ed8ea851b22284e | /venv/Scripts/pip-script.py | c26f16688653d5578478d73bf4f98ceaae34a421 | [] | no_license | hyeokjinson/DivideandConquer | e3c7dccf1efb06655ccd98c755ffbe4b2da64eab | 44934119279e44273d8a394bb3b836a3154fd337 | refs/heads/master | 2021-05-19T06:28:04.533725 | 2020-03-31T10:07:24 | 2020-03-31T10:07:24 | 251,565,883 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 407 | py | #!D:\포트폴리오\분할정복\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
64fb6a0cdab9ee38df464e16f6f5d56a8f129cb9 | 53396d12d606bebea71c149aed0150af7b17b6f5 | /base_string/28-implement-strstr-6.py | cbb00fe2bdd3f0a2ba85b4e85eba9b93632ca756 | [] | no_license | superggn/myleetcode | 4c623bd9ad3892d826df73ad3b2c122e08aaa9e9 | 40ca33aefbf0cf746a2d0b7e7f52643ae39591be | refs/heads/master | 2023-02-02T11:06:35.163570 | 2020-12-19T10:36:45 | 2020-12-19T10:36:45 | 322,821,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | """
KMP from CSDN
感觉有问题,哪来的那么多-1
"""
needle0 = 'abaabcac'
class Solution:
def get_next(self, T):
i = 0
j = -1
next_val = [-1] * len(T)
while i < len(T) - 1:
if j == -1 or T[i] == T[j]:
i += 1
j += 1
# next_val[i] =... | [
"939401399@qq.com"
] | 939401399@qq.com |
3bd10a8475ad8c1ebba442980c4c09ac65a010f1 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GL/ATI/envmap_bumpmap.py | 90be7fbe914c30b659022dd2d1346385a8b80468 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | '''OpenGL extension ATI.envmap_bumpmap
This module customises the behaviour of the
OpenGL.raw.GL.ATI.envmap_bumpmap to provide a more
Python-friendly API
Overview (from the spec)
This extension adds environment mapped bump mapping (EMBM) to the GL.
The method exposed by this extension is to use a dependent text... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
ed31337708ba9d08781076c8ae6502ecd75f988f | 29597b67f10d456bdcc90a693ac93f571635ae34 | /basic/sort/bubble_sort.py | 1f433bde20f259601e6372878012772fb412920e | [] | no_license | sh-tatsuno/python-algorithm | 67d50f24604550c115f957ed74e81483566c560d | 2800050077562eef50b6f0bd8ba6733068469c4c | refs/heads/master | 2020-05-17T09:46:05.714449 | 2019-07-25T15:43:20 | 2019-07-25T15:43:20 | 183,641,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | wakeup_times = [16,49,3,12,56,49,55,22,13,46,19,55,46,13,25,56,9,48,45]
def bubble_sort_1(l):
flag=True
while(flag):
flag = False
for i in range(len(l)-1):
if l[i] > l[i+1]:
tmp = l[i]
l[i] = l[i+1]
l[i+1] = tmp
flag = T... | [
"wasabi.mandarin@gmail.com"
] | wasabi.mandarin@gmail.com |
d5ce87eea853ca67ab6ab84068bd92e9aed7cf47 | a9b24a31f27afc42736d923b7ba4df300e13a8cf | /novle_spider/s_spider.py | 84651ad97298b2f547955463ff877b69f76c12f1 | [] | no_license | 520wsl/python-scrapy-test | 8dcb216a91c8f03266ae29d3b9590b124088eb67 | 2f93e161c849aabfe9efb90e719906c9ae5bee1c | refs/heads/master | 2022-12-13T00:47:44.177505 | 2020-05-23T05:05:57 | 2020-05-23T05:05:57 | 184,033,077 | 2 | 0 | null | 2022-12-08T05:25:05 | 2019-04-29T08:40:13 | HTML | UTF-8 | Python | false | false | 3,780 | py | from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
# 这里是必须引入的
import scrapy.spiderloader
import scrapy.statscollectors
import scrapy.logformatter
import scrapy.extensions
import scrapy.extensions.corestats
import scrapy.extensions.telnet
import scrapy.extensions.memusage
i... | [
"395548460@qq.com"
] | 395548460@qq.com |
8545006c092c14388184d014b79848842cf50afe | 6f06a519bc5a89464d95702fa27fa663ad4eb8f8 | /change_cancel_two_sided_quote_1.13.2d.py | 6b7c9b0a8873acd18b075d2ea07afb3283c526ae | [] | no_license | chrismaurer/chrism | 64e71397bfffcd76aa5a12cc1394fad2c8939d76 | b0a30d5cbe4602a32ad494e2550219d633edf2db | refs/heads/master | 2021-06-04T07:53:15.212812 | 2021-01-19T13:23:22 | 2021-01-19T13:23:22 | 112,128,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,464 | py | # Imports
import uuid
import tt.pyrate.util
from google.protobuf.text_format import MessageToString
from tt.messaging.order import enums_pb2 as enums
from tt.pyrate.debesys.clients.order_sender import OCOrderSender
from tt.pyrate.debesys.messaging import dict_to_protobuf
from tt.pyrate.debesys.messaging import Header
f... | [
"chris.maurer@tradingtechnologies.com"
] | chris.maurer@tradingtechnologies.com |
43f4f9b4c798a4915519fe1ad558d46ce7a2509e | 74152b9ee97de2657214a1497fd87ac982574d5d | /Lesson11/spaceport_global.py | ea918a5e7b1e47072615a71df8953141e9586b87 | [
"Apache-2.0"
] | permissive | shinkai-tester/python_beginner | 8b7dc0189a1615e86778d1712bf5ca03b0bbce47 | a934328c9a50241cc3f02a423060e16aab53b425 | refs/heads/main | 2023-05-12T20:25:36.470754 | 2021-06-01T13:23:32 | 2021-06-01T13:23:32 | 371,542,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | class Spaceport:
def __init__(self):
self.spaceships = []
self.rockets = []
self.ufos = []
def ret_spaceships(self):
return self.spaceships
def print_spaceships(self):
print(self.spaceships)
def append_spaceship(self, spaceship):
self.spaceships.append... | [
"alinlaegnor@gmail.com"
] | alinlaegnor@gmail.com |
20e91ac3ea69f6f73075b9df9988e3210a0aa161 | 53ec01fa57d9cdc7e7fd3364990713d211e1c414 | /ABC074/074a.py | ff57c1cd8a244d3070783a87d77b9461f4ec03a2 | [] | no_license | nekoTheShadow/atcoder-answers | 4f2cae82ac2b24df4153c43381ce58084647704c | 461e5a9b00718fd9a3b19dc6071da0fb3192f34e | refs/heads/master | 2022-02-03T18:24:01.673661 | 2022-01-24T14:43:44 | 2022-01-24T14:43:44 | 165,072,722 | 0 | 0 | null | 2020-03-22T13:25:56 | 2019-01-10T14:19:52 | Java | UTF-8 | Python | false | false | 52 | py | n = int(input())
a = int(input())
print(n * n - a) | [
"h.nakamura0903@gmail.com"
] | h.nakamura0903@gmail.com |
263fc7288f8cb62c2c0c7f59099d7545b9097ca6 | d5b48163d236ca770be8e687f92192e2971397e8 | /5.py | 00d37809714a60ddc5dc5587f8759651a961f643 | [] | no_license | Kunal352000/python_program | 191f5d9c82980eb706e11457c2b5af54b0d2ae95 | 7a1c645f9eab87cc45a593955dcb61b35e2ce434 | refs/heads/main | 2023-07-12T19:06:19.121741 | 2021-08-21T11:58:41 | 2021-08-21T11:58:41 | 376,606,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | x=eval(input("Enter your nested list object: "))
print(x)
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
34a4a0abe3c9b0521ce4d7aa7ed9aa2073712316 | 1cb9426b2cad90617c860c18037aca43a2f241fb | /tests/test_core.py | e1020554ecfeb7bb09bf636b5763689f9ce73e55 | [] | no_license | brntsllvn/python-graphlayer | 6709f30d8196cc211d8e83bdb3c6cc35e751d56e | 069cecfea4a72d0f9c200ca47d67aabacf69b0fa | refs/heads/master | 2020-04-14T03:23:08.869794 | 2018-12-29T19:38:32 | 2018-12-29T19:38:32 | 163,606,618 | 0 | 0 | null | 2018-12-30T17:52:07 | 2018-12-30T17:52:07 | null | UTF-8 | Python | false | false | 1,000 | py | from precisely import assert_that, equal_to
import graphlayer.core as g
def test_resolver_is_dispatched_using_type_of_query():
@g.resolver("one")
def resolve_one(graph, query):
return 1
@g.resolver("two")
def resolve_two(graph, query):
return 2
resolvers = [resolve_one, ... | [
"mike@zwobble.org"
] | mike@zwobble.org |
b07d12f2ff822b0e0d328522ed2e391cfc8f73d5 | 35e00d1996515ccf3151067ff28ff3357078f0b6 | /samples/generated_samples/pubsub_v1_generated_publisher_update_topic_async.py | 3f913a7dc00df29fbd4be2b64537e3a2578b5a28 | [
"Apache-2.0"
] | permissive | googleapis/python-pubsub | 5bb18674307bd89236a61c0d7c5079f10e19467e | 1b9724324c58d27bcee42020b751cda58d80fddb | refs/heads/main | 2023-09-03T13:14:22.894233 | 2023-08-28T13:18:36 | 2023-08-28T13:18:36 | 226,992,581 | 321 | 195 | Apache-2.0 | 2023-09-10T23:29:10 | 2019-12-10T00:09:52 | Python | UTF-8 | Python | false | false | 1,864 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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"
] | googleapis.noreply@github.com |
e04bd69b47cad78a0e836949ea073aca4f46ed61 | 1dc608ecf073aeea2ba5019552f271ca5591289e | /facade/facade-pattern02.py | 1e2dfb94a7dd39d5e34413f17c95430fc54084fa | [] | no_license | youjia4321/python_patterns | d17365768720ef8cf71493ddc96b83c43e64a7aa | f901b5b76884f44f75739754ffcc19e047374e3b | refs/heads/master | 2020-07-18T15:40:12.957963 | 2019-09-04T08:34:08 | 2019-09-04T08:34:08 | 206,270,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,674 | py | from enum import Enum
from abc import ABCMeta, abstractmethod
State = Enum('State', 'new running sleeping restart zombie')
class User:
pass
class Process:
pass
class File:
pass
class Server(metaclass=ABCMeta):
@abstractmethod
def __init__(self):
pass
def ... | [
"noreply@github.com"
] | youjia4321.noreply@github.com |
b3fc6a1a63851bf8bde6b67e6b37df8fe4867683 | 2cf64ba6bb3bf511d1d9ea2cb5af30eed1a8ac59 | /tests/application/test_get_inbox_query.py | 60584d84bd36bf927fc5c07a0b876ffa1905bb63 | [] | no_license | vrushangdev/feedback_box | 4cbb13e2d134801ca051fdc0b0e24f1e40feed60 | 2f33013a4945a39ccbd4bab56031ac378a4ecaec | refs/heads/master | 2020-12-20T11:45:19.650807 | 2020-01-12T13:35:55 | 2020-01-12T13:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | import pytest
from uuid import uuid4
from mock import Mock
from typing import Tuple
from feedback_box.persistance.exceptions import NoMatchingInbox
from feedback_box.application.inbox.queries.get import GetInboxQuery
from feedback_box.application.interfaces.icommand_query import CommandQuery
@pytest.fixture
def get_... | [
"pcieslinski721@gmail.com"
] | pcieslinski721@gmail.com |
47ead8fb3cb958cff1001a82fab5a7605a96fe5a | 63ba933a294865f65409635f62e0f1d59f725f37 | /src/matrix/reconstructQueue.py | e7a71486f049124de8e2036b6be366b2a429e28a | [
"CC0-1.0"
] | permissive | way2arun/datastructures_algorithms | fc4302bdbb923ef8912a4acf75a286f2b695de2a | 4ea4c1579c28308455be4dfa02bd45ebd88b2d0a | refs/heads/master | 2021-12-07T04:34:35.732026 | 2021-09-30T12:11:32 | 2021-09-30T12:11:32 | 203,658,808 | 1 | 0 | null | 2020-08-08T15:55:09 | 2019-08-21T20:23:46 | Python | UTF-8 | Python | false | false | 1,342 | py | """
https://leetcode.com/explore/challenge/card/june-leetcoding-challenge/539/week-1-june-1st-june-7th/3352/
Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of this person who ... | [
"way2aru@yahoo.com"
] | way2aru@yahoo.com |
0e5a542757605ffc0979213bedd568c944be754b | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python Fundamentals/Final exam/01_world_tour.py | abc0c1beb2054ed9fa18f92d3fbbe0e90b338396 | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | stops = input()
while True:
command = input()
if command == "Travel":
break
command = command.split(":")
action = command[0]
if action == "Add Stop":
index = int(command[1])
string = command[2]
if 0 <= index < len(stops):
stops = stops[:inde... | [
"noreply@github.com"
] | DilyanTsenkov.noreply@github.com |
7e7b73d189954654823c6c6d28c2e2f73d727e1c | 344e2956b4e2a30a8ef7532d951f96d995d1dd1e | /11_slimyolov3/lib/utils/torch_utils.py | 40eed4ae403288bc7f5f84d2ab35ef827e470696 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0",
"LGPL-3.0-only",
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause"
] | permissive | karndeepsingh/Monk_Object_Detection | e64199705326e4cd65e4b29946cae210a4ef9649 | 425fa50a3236cb9097389646275da06bf9185f6b | refs/heads/master | 2022-12-22T18:26:53.933397 | 2020-09-28T12:49:50 | 2020-09-28T12:49:50 | 299,307,843 | 1 | 1 | Apache-2.0 | 2020-09-28T12:52:18 | 2020-09-28T12:52:17 | null | UTF-8 | Python | false | false | 2,280 | py | import torch
def init_seeds(seed=0):
torch.cuda.empty_cache()
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
torch.cuda.manual_seed_all(seed)
# torch.backends.cudnn.deterministic = True # https://pytorch.org/docs/stable/notes/randomness.html
def select_device(force_cpu=False, apex=False):... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
1dad1aa5f59301bb5a7f9e2ef876808551a8a72d | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/venv/venv/lib/python3.7/site-packages/plotly/graph_objs/layout/annotation/_font.py | 7b03a9d38e84c29fe7a79c159408dfe560a66d0b | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 8,426 | py | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.annotation"
_path_str = "layout.annotation.font"
_valid_props = {"color", "family", ... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
b6d02d90087faf9e6a976377f8daa109fc59068a | d97c3fbf427485fe03a4b8bdf70b449870e52e13 | /gettingstarted/apps/wallet/models.py | 4ed0e1273b9c5d0d4ac22f7af84b1dc42c162634 | [] | no_license | luiscaiaffa/stone | 60c3285d3f51f1dd5e03265377b496d03a4e2fa9 | dc871ebd15f65b8a757b9cd790fcc15cda574326 | refs/heads/master | 2021-05-07T06:52:35.737674 | 2017-11-23T22:24:13 | 2017-11-23T22:24:13 | 111,733,463 | 0 | 0 | null | 2017-11-22T21:58:56 | 2017-11-22T21:20:26 | Python | UTF-8 | Python | false | false | 4,378 | py | from django.db import models
from django.db.models import Sum
from django.dispatch import receiver
from django.contrib.auth.models import User
from django.db.models.signals import pre_save, post_save, m2m_changed
from django.core.validators import MaxValueValidator, MinValueValidator, MaxLengthValidator, MinLengthValid... | [
"lfa.luisfelipe@gmail.com"
] | lfa.luisfelipe@gmail.com |
7b2109a7afc706b45955c72c574e847a2412ac92 | dce4a52986ddccea91fbf937bd89e0ae00b9d046 | /jni-build/jni/include/tensorflow/contrib/learn/python/learn/estimators/rnn.py | 4082693fbf4d5366c361ed7294beae23853ec7b7 | [
"MIT"
] | permissive | Lab603/PicEncyclopedias | 54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6 | 6d39eeb66c63a6f0f7895befc588c9eb1dd105f9 | refs/heads/master | 2022-11-11T13:35:32.781340 | 2018-03-15T05:53:07 | 2018-03-15T05:53:07 | 103,941,664 | 6 | 3 | MIT | 2022-10-28T05:31:37 | 2017-09-18T13:20:47 | C++ | UTF-8 | Python | false | false | 10,199 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"super_mr.z@hotmail.comm"
] | super_mr.z@hotmail.comm |
81845d16d57b691ebfd7aebf2f26212244ec69c4 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/weapon/shared_baton_gaderiffi.py | 2a3227e55248da5acfac311c52d80b09ac698b02 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 451 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/weapon/shared_baton_gaderiffi.iff"
result.attribute_templa... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
036b75b72684264088b08f91ccfb9397965e30f6 | d489eadec9d4499ed066223f8e4881f14c3cc777 | /tests/parent_test.py | 00bddb4dbf97b82bdb369d74bb6ff86bb93b4cdd | [
"BSD-3-Clause"
] | permissive | lumatijev/mitogen | d0121faa8c3aa87a08b09bbe5967d6c0a3ac1263 | b610b0c93bbab1bc0fbe86cfcc4f3a56fd2b2c14 | refs/heads/master | 2020-04-28T15:48:12.177452 | 2019-03-13T16:59:48 | 2019-03-13T16:59:48 | 175,389,282 | 0 | 0 | BSD-3-Clause | 2019-03-13T09:34:01 | 2019-03-13T09:34:00 | null | UTF-8 | Python | false | false | 15,224 | py | import errno
import fcntl
import os
import signal
import subprocess
import sys
import tempfile
import time
import mock
import unittest2
import testlib
from testlib import Popen__terminate
import mitogen.parent
def wait_for_child(pid, timeout=1.0):
deadline = time.time() + timeout
while timeout < time.time()... | [
"dw@botanicus.net"
] | dw@botanicus.net |
bef4b6e1cbde223a28295543f2aa1bf322dd800d | 609ec378fadcbd81a8307064cd11c0e27b585cca | /dev_ccmatch.py | 3169d37ab3e6c5aca9399f65719df567e3701a04 | [] | no_license | oboberg/QuickReduce | b2184c212774e61f430ba62dda024ce672bd6dca | 19f42ed8105a24b4191066915543ee70022b5bfb | refs/heads/master | 2021-01-19T07:02:45.877576 | 2016-08-09T19:15:58 | 2016-08-09T19:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100,104 | py | #!/usr/bin/env python
"""
This module contains all functionality to perform the astrometric correction of
a frame by matching the source catalog to a catalog of reference stars.
"""
import sys
import numpy
import os
import pyfits
import datetime
import scipy
import scipy.stats
import math
import scipy.spatial
impor... | [
"kotulla@wisc.edu"
] | kotulla@wisc.edu |
f384b7fd45b57d514b2ebd6cbeb5fe80cb691397 | 66c94b5e427c0b8f8f7101de9c17af1423f00682 | /keras/keras13_shape.py | 0643b23c8f0a155e06aec929fb8b63070c1a132b | [] | no_license | NamkyuHan/bit_seoul | a34ea3c49666ee2183026e960e45092778643d55 | 3112eb576089cdf906c4f326337b4d2b5e5e4c29 | refs/heads/master | 2023-01-30T19:02:53.323592 | 2020-12-17T01:05:17 | 2020-12-17T01:05:17 | 311,277,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | #1. 데이터
import numpy as np
x = np.array([range(1, 101), range(711, 811), range(100)])
y = np.array([range(101, 201), range(311, 411), range(100)])
x = np.transpose(x)
y = np.transpose(y)
from sklearn.model_selection import train_test_split
x_train, x_test, y_train, y_test = train_test_split(x, y, train_size=0.7, shu... | [
"rksh333@naver.com"
] | rksh333@naver.com |
1aab3eddcb8cf97bb71b01605c957790aff7740e | 21c602c8b40c3cdf572fb63a745c15616adf5f31 | /enso/enso/contrib/scriptotron/tracebacks.py | 7f41487c47823ce96d4841ccf6e2d2d7dedbc05e | [
"BSD-2-Clause"
] | permissive | GChristensen/enso-portable | a3353e5020dfd83ae612c728a0961dfd6615a0c8 | 61351f52f01367439e8810d2c482a9c9897545d8 | refs/heads/master | 2023-03-15T22:22:12.738941 | 2023-03-09T15:07:59 | 2023-03-09T15:07:59 | 3,496,184 | 144 | 39 | null | 2022-04-30T13:02:03 | 2012-02-20T17:58:22 | C | UTF-8 | Python | false | false | 2,216 | py | import sys
import traceback
import xml.sax.saxutils
import enso.selection
from enso.messages import displayMessage
from enso.commands import CommandObject
MAX_EXCEPTION_TEXT_LENGTH = 80
def _makeExcInfoMsgText( exceptionType, exception, tb ):
fileName, lineNo, funcName, text = traceback.extract_tb( tb )[-1]
... | [
"gchristnsn@gmail.com"
] | gchristnsn@gmail.com |
60d82214f6e9fb0a84edc55c6546aec0f4ab30ac | 28174c2f3480e1db8052e25af150b0d4e3bf4076 | /scripts/run_ui_css_edition.py | ee369642f74f611fd75b6bc62a0948566dc7c6d6 | [
"MIT",
"CC-BY-4.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | almaz114/QRainbowStyleSheet | 7889d75b845d13e4d98e7c2d34f83286dbf1d6dc | 7b92e9bc32eccc1bcd4f516061aea8febecb7a3f | refs/heads/master | 2023-03-01T11:59:29.120199 | 2021-02-10T20:43:09 | 2021-02-10T20:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Process qrc, ui, image, and screenshot files, then run example in while loop.
"""
# Standard library imports
from subprocess import call
import os
import sys
# Constants
SCRIPTS_PATH = os.path.abspath(os.path.dirname(__file__))
REPO_PATH = os.path.dirname(SCRIPTS_PAT... | [
"daniel.pizetta@usp.br"
] | daniel.pizetta@usp.br |
8c4c478d23cd52c6b397a40cafb53bfa19c05614 | 4c8c0f857500b5f4b572f139602e46a6c813f6e3 | /Inheritance_Exercises/Restaurant/food/cake.py | 2007e8fedfb8e05b50fcc562f8ba2bea14265412 | [] | no_license | svetoslavastoyanova/Python_OOP | 3d21fb0480c088ecad11211c2d9a01139cde031f | 518f73ecc8a39e7085d4b8bf5657a1556da3dcfa | refs/heads/main | 2023-08-04T19:46:58.906739 | 2021-09-18T07:46:02 | 2021-09-18T07:46:02 | 352,304,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from Restaurant.food.dessert import Dessert
class Cake(Dessert):
GRAMS = 250
CALORIES = 1000
PRICE = 5
def __init__(self, name):
super().__init__(name, Cake.PRICE, Cake.GRAMS, Cake.CALORIES)
| [
"svetoslava_stoyanova92@abv.bg"
] | svetoslava_stoyanova92@abv.bg |
cd8eba8dd4124e1c08b7bbb24d4dbafae1fe6e34 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/bhjdee001/question2.py | ef0256bf9879b317ab582d60c2652976bdb960c1 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | h=eval(input("Enter the height of the triangle:\n"))
for i in range(h):
print(" "*(h-i-1),"*"*((i*2)+1),sep="") | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
979102281b52df40257bc40cc80d726573c00c0c | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/mkmdea001/question2.py | 8faaa7b0d9abb9c4adff8e36003d15e12fa28776 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # test program for Ndom calculations
import ndom
choice = input ("Choose test:\n")
action = choice[:1]
print ("calling function")
if action == 'n' or action == 'd':
num = int(choice[2:])
if action == 'n':
ans = ndom.ndom_to_decimal (num)
else:
ans = ndom.decimal_to_ndom(num)
elif action == 'a' or... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.