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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d0bc43a4647f0dfc4d749e43af45a248efb2f22d | f6d1ed1a5369a5810429756fbdc07a8d293a4b3d | /conans/client/run_environment.py | 5f570cb8a0e111565aa4f5d270ca72669944acfd | [
"MIT"
] | permissive | lasote/conan | fc4e0b561e736b447b57999026ffe5291b7cab50 | 8f6978290d095778eff6a9a84ea3f06f723fcfea | refs/heads/develop | 2023-05-26T03:10:52.211304 | 2017-11-23T12:44:56 | 2017-11-23T12:44:56 | 47,204,017 | 3 | 3 | MIT | 2019-01-22T09:36:12 | 2015-12-01T16:56:42 | Python | UTF-8 | Python | false | false | 782 | py |
class RunEnvironment(object):
"""
- PATH: pointing to the bin/ directories of the requires
- LD_LIBRARY_PATH: requires lib_paths for Linux
- DYLD_LIBRARY_PATH: requires lib_paths for OSx
"""
def __init__(self, conanfile):
"""
:param conanfile: ConanFile instance
"""
... | [
"james@conan.io"
] | james@conan.io |
86d2dd1ccdf978c2fd6ced71b93ebce47e3063f6 | 0ad7f553df6b210b5ac004fbf490ed651a21d55e | /algos/discrete_esay_control_lib_03.py | 8f73937bb21a1a30f95dcd2cf3acc4546e94c645 | [] | no_license | MarianoDel/spyder_python | fa00987eb9aa1ef61d7224679a84c05a217c6c35 | 5f5896df68f95eb860bc08c21ae2b19516432cdc | refs/heads/master | 2020-05-23T06:14:57.329478 | 2020-04-23T14:58:16 | 2020-04-23T14:58:16 | 84,753,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | # -*- coding: utf-8 -*-
#usando libreria de control
#http://python-control.readthedocs.org/en/latest/index.html
import numpy as np
import control as ct
import matplotlib.pyplot as plt
#from scipy import signal
#los coeficientes los saco del sistema digital creado en Tfilter_sympy_02.py
#numd1
#array([ 0. ... | [
"marianodeleu@yahoo.com.ar"
] | marianodeleu@yahoo.com.ar |
63470244c2c7805bd495020c5dd5e40fef97303e | 7606f5755a83ad6670b64d2acf381a54cf635697 | /exercises/1901090010/1001S02E05_array.py | 8f0f333861e9e35aa5184ad7678148535e3985a2 | [] | no_license | imlzg/selfteaching-python-camp | 6c107e53740dbc6721008ea36f66c1b3d0c9ee72 | b620553ef4fb86d8528c54947d98c2f1c2df996e | refs/heads/master | 2022-01-09T04:09:14.849146 | 2019-05-20T15:17:07 | 2019-05-20T15:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | array=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
print(array)
array.reverse()
ls1=[str(i) for i in array]
print(ls1)
ls2=''.join(ls1)
print(ls2)
ls3=ls2[2:8]
print(ls3)
ls4=ls3[::-1]
print(ls4)
ls5=int(ls4)
print("转换为二进制为:", bin(ls5))
print("转换为八进制为:", oct(ls5))
print("转换为十六进制为:", hex(ls5))
| [
"46160162+EthanYan6@users.noreply.github.com"
] | 46160162+EthanYan6@users.noreply.github.com |
5b37e01087be00d24c666fb7c11df28e7282eda9 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /seem_case/work_great_world/come_early_company/great_world/know_little_place_above_public_company.py | 95daadfe99dac6c7ffb401779f2a1dd58b021e23 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
#! /usr/bin/env python
def give_company_at_able_number(str_arg):
last_life(str_arg)
print('try_day')
def last_life(str_arg):
print(str_arg)
if __name__ == '__main__':
give_company_at_able_number('old_man_or_child')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
c3737714740d26def0bb562c9116aa4dde0191db | d1f87175c0aa3e8e844be1e6e0ddd75ddef93047 | /k2/python/k2/fsa.py | 30619f79427fa6fea4357ca326475d0e952b7d4c | [
"MIT"
] | permissive | zeta1999/k2 | bb6202fd483a4635cfbfac904db6fcfab5e45f45 | 02c36e8e5c0129042824e5e4b9927530bbb99009 | refs/heads/master | 2023-01-11T07:00:28.755715 | 2020-11-12T04:38:54 | 2020-11-12T04:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,053 | py | # Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang)
# Guoguo Chen
#
# See ../../../LICENSE for clarification regarding multiple authors
from collections import OrderedDict
from typing import Any
from typing import Iterator
from typing import Optional
from typing import Tuple
import... | [
"noreply@github.com"
] | zeta1999.noreply@github.com |
73a44163086c3f3bc57dae1906bd48ffdc92761c | f0ee987789f5a6fe8f104890e95ee56e53f5b9b2 | /pythia-0.8/packages/pyre/pyre/inventory/odb/Registry.py | c72724141667dc8e6e35621c08aee1ae78d01a96 | [] | no_license | echoi/Coupling_SNAC_CHILD | 457c01adc439e6beb257ac8a33915d5db9a5591b | b888c668084a3172ffccdcc5c4b8e7fff7c503f2 | refs/heads/master | 2021-01-01T18:34:00.403660 | 2015-10-26T13:48:18 | 2015-10-26T13:48:18 | 19,891,618 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~... | [
"echoi2@memphis.edu"
] | echoi2@memphis.edu |
cfd0938addfe5e354eb030032a683f83195c8112 | 312a8fde11293cb142334a3860966ec1f75ac401 | /timesketch/views/spa.py | c7401a6e3a270c6062b441b881b34d8e5e754333 | [
"Apache-2.0"
] | permissive | google/timesketch | f0fd09062a8a24bac581d2d4286d095d667d2f10 | 24f471b58ca4a87cb053961b5f05c07a544ca7b8 | refs/heads/master | 2023-08-31T21:48:19.602686 | 2023-08-31T11:24:17 | 2023-08-31T11:24:17 | 21,009,909 | 2,263 | 647 | Apache-2.0 | 2023-09-14T14:08:07 | 2014-06-19T17:49:45 | Python | UTF-8 | Python | false | false | 1,540 | py | # Copyright 2019 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | google.noreply@github.com |
eb8afd30c6b49c35fee9b1cfbc72fd3d53933d36 | bd185738ea6a74d1e76d9fc9d8cbc59f94990842 | /onadata/libs/serializers/xform_serializer.py | fa30b5ec3f282006bb33a18f94727949f24141c2 | [
"BSD-2-Clause"
] | permissive | aondiaye/myhelpline | c4ad9e812b3a13c6c3c8bc65028a3d3567fd6a98 | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | refs/heads/master | 2020-12-22T05:32:59.576519 | 2019-10-29T08:52:55 | 2019-10-29T08:52:55 | 236,683,448 | 1 | 0 | NOASSERTION | 2020-01-28T07:50:18 | 2020-01-28T07:50:17 | null | UTF-8 | Python | false | false | 15,564 | py | import os
import logging
from hashlib import md5
from future.moves.urllib.parse import urlparse
from future.utils import listvalues
from django.core.exceptions import ValidationError
from django.core.validators import URLValidator
from django.conf import settings
from django.contrib.auth.models import User
from django... | [
"patrickmithamo@gmail.com"
] | patrickmithamo@gmail.com |
5a6822dc37ab0181188d67e82b773b3e8e59d089 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit2487.py | 641b39dc24dfafe2c36913591797358aa26dea60 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | # qubit number=4
# total number=43
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3b636769f9391a37b518ae880c23423c3395cc7a | 09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce | /pennylane/data/attributes/operator/_wires.py | f953c9b8f78d3b7681b90320cb92d2c2f394b24d | [
"Apache-2.0"
] | permissive | PennyLaneAI/pennylane | 458efd5d9457e90ada31ca2ef0fb6bb96a24e9a7 | 0843183ff15a013c2622af5e61fea431d18076d3 | refs/heads/master | 2023-09-03T17:00:43.105784 | 2023-09-01T16:15:07 | 2023-09-01T16:15:07 | 129,936,360 | 1,431 | 410 | Apache-2.0 | 2023-09-14T21:30:56 | 2018-04-17T16:45:42 | Python | UTF-8 | Python | false | false | 1,798 | py | # Copyright 2018-2023 Xanadu Quantum Technologies 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 law or... | [
"noreply@github.com"
] | PennyLaneAI.noreply@github.com |
00c9393bf91ee19f9a3510de60b39d0abef22f7b | 40bee13ce471aa704de68ede1ee8579106396ba3 | /app_folder_name/tests/__init__.py | 68719da9a01694302ea3bf05d95488fed982d647 | [] | no_license | mikelopez/django-app-skel-crud | 9029648982ef8881c5859faac60ada4424cac576 | a01b0eeaffbe12d314eb3f9ab1cd692d6defce34 | refs/heads/master | 2020-12-24T16:58:47.140247 | 2013-03-04T21:28:03 | 2013-03-04T21:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | from app_folder_name.tests.main_app_tests import TestSchoolStudents | [
"dev@scidentify.info"
] | dev@scidentify.info |
2ece2111f21d161cc9f0a108b71ef2c8149855fc | 99dcb18a9e3ea367272f740b8cbf3c34285a0c08 | /samples/snippets/endpoint_service/deploy_model_sample_test.py | b12b234b8bddc0e5080ee113729a18515957f0d0 | [
"Apache-2.0"
] | permissive | googleapis/python-aiplatform | 926a4873f35dbea15b2fd86c0e16b5e6556d803e | 76b95b92c1d3b87c72d754d8c02b1bca652b9a27 | refs/heads/main | 2023-08-19T23:49:02.180075 | 2023-08-19T13:25:59 | 2023-08-19T13:27:27 | 298,017,988 | 418 | 240 | Apache-2.0 | 2023-09-14T21:08:33 | 2020-09-23T15:43:39 | Python | UTF-8 | Python | false | false | 1,745 | py | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
23daf8e24dd73325c2f0ec16a12b272eeab45c76 | 320bd873b6cf5db2fc9194cc4ad782a49373d6ee | /temp/1/11/conftest.py | 576834bb0e0714ce25adf6d1af3e28750d5c2993 | [] | no_license | donniezhanggit/AppiumDemo8_Android | 7b0aed903969e2101330b5da4e89c39e3d591723 | 7a2ed3be27ed6cb27bd4e30e13d48cc8f34aa654 | refs/heads/master | 2020-09-13T17:35:33.749237 | 2019-03-10T10:04:46 | 2019-03-10T10:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import pytest
import logging
logging.basicConfig(level=logging.DEBUG)
@pytest.fixture(scope="class")
def username11():
print("username 11 module 11")
return "module username 11" | [
"seveniruby@gmail.com"
] | seveniruby@gmail.com |
42cc165f79e9d6404b25f857a6aa9197f15590c7 | 2a3606551a4d850a7b4d6a4e08089c51108ef7be | /plugin.video.mrknow/mylib/pydevd_attach_to_process/winappdbg/system.py | 26e355dd5ea3bf17e0832c36c973f3aa87ac0a80 | [
"Apache-2.0"
] | permissive | rrosajp/filmkodi | a6bb1823f4ed45453c8b8e54ffbd6a7b49f44450 | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | refs/heads/master | 2021-09-18T06:03:17.561062 | 2018-06-22T23:28:53 | 2018-06-22T23:28:53 | 234,768,781 | 1 | 0 | Apache-2.0 | 2021-06-03T20:33:07 | 2020-01-18T17:11:57 | null | UTF-8 | Python | false | false | 45,882 | py | #!~/.wine/drive_c/Python25/python.exe
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2014, Mario Vilas
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must ... | [
"mrknow@interia.pl"
] | mrknow@interia.pl |
4c235f4e1cb7df6459e5a27dc2db0e9523efbd8d | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j18372-3125/sdB_GALEX_J18372-3125_coadd.py | 034c74a4d5e3f32e646d3ef889df15b3efc39fd6 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[279.319917,-31.420586], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_GALEX_J18372-3125/sdB_GALEX_J18372-3125_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTC... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
271de1ac2b54d0734818c659bda503b6581faecf | f7edc11e203532cf755c73c64023ed0381bdb92f | /backend/giddy_up_18698/settings.py | 20f0de0620ad7ffa1bbac2990a2347f5f7384a09 | [] | no_license | crowdbotics-apps/giddy-up-18698 | b146616a279418eb26ffd92e3b3417ecd00a89e6 | 10c80047e774f2bc9195adb3a6ace97da5981510 | refs/heads/master | 2022-11-14T04:55:34.914713 | 2020-07-08T02:26:33 | 2020-07-08T02:26:33 | 277,969,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,794 | py | """
Django settings for giddy_up_18698 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7a8a0495f011281a56470d70c04e8e2dbe1b09db | f92385943346eccca8cc4d7caca66d2d5455caa2 | /2020.8/老虎-1.py | 4944f91312e7c445e82228e8f02965aa40b7fbe9 | [] | no_license | IamWilliamWang/Leetcode-practice | 83861c5f8672a716141dc6ec9f61f21dc5041535 | c13c0380a3ae9fef201ae53d7004b9f4224f1620 | refs/heads/master | 2023-04-01T12:15:19.335312 | 2020-10-15T14:49:36 | 2020-10-15T14:49:36 | 281,846,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | #
#
# @param HP long长整型 HP
# @param ACK long长整型 ACK
# @param HP2 long长整型 HP2
# @param ACK2 long长整型 ACK2
# @return long长整型
#
import math
class Solution:
def Pokemonfight(self, HP, ACK, HP2, ACK2):
hp, ack, hpEnemy, ackEnemy = HP2, ACK2, HP, ACK
if ackEnemy >= hp: # 一回合被拍死
return -1
... | [
"iamjerichoholic@hotmail.com"
] | iamjerichoholic@hotmail.com |
35d505a038c7b205e90b3d1f3f3ee044a8950306 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Types of burgers/solution.py | 94cc0b583a01253b636b13ccbe80d38732c353cd | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 873 | py | from heapq import heappop, heappush
t = int(input())
moves = ((1, 0, 0), (0, 1, 0), (0, 0, 1))
for _ in range(t):
x, y, z = map(int, input().strip().split())
k = int(input())
b1 = sorted(map(int, input().strip().split()), reverse=True)
b2 = sorted(map(int, input().strip().split()), reverse=True)
b3... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
4a70fedc08979200d7ed54db5e4a6469a9d88d01 | 53d203e73331d2ee0f1d644946bf6650f5716edd | /quantifiedcode/backend/tasks/email.py | 95859928af4da04b416a6a77b273f397ad3bc141 | [
"BSD-3-Clause"
] | permissive | martynbristow/quantifiedcode | 3f6a6c935aeb8d78e90086cefaee6cd3b6f4558d | a7485ceaeffc5cf5894654dde35ed9a501657a07 | refs/heads/master | 2022-01-25T20:42:24.124289 | 2021-07-07T10:44:54 | 2021-07-07T10:44:54 | 239,041,449 | 0 | 0 | BSD-3-Clause | 2022-01-06T22:47:22 | 2020-02-07T23:37:47 | JavaScript | UTF-8 | Python | false | false | 3,998 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Contains tasks and helper functions to send notifications.
"""
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
import logging
import datetime
import traceback
import re
from six import string_t... | [
"andreas.dewes@gmail.com"
] | andreas.dewes@gmail.com |
de912f9609f0a22e4153cd9d3c53bdd16fe3d6c1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_040/ch25_2020_03_09_19_44_46_012241.py | 65c6d90914c5b631ee3669e31ddbbd97f3da12dc | [] | 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 | 309 | py | import math
v=float(input("Velocidade de lançamento: "))
angulo=float(input("Ângulo de lançamento: "))
def d(v,angulo):
d = (v**2*math.sin(math.radians(2*angulo))/9.8)
if (d>=102):
return ("Acertou!")
elif (d<=98):
return ("Muito perto")
else:
return ("Muito longe") | [
"you@example.com"
] | you@example.com |
d15740ee02928888baf46ea11ad875d8f4194fcc | da0a7446122a44887fa2c4f391e9630ae033daa2 | /python/ray/train/tests/test_torch_trainer.py | 8ccc79b096a47fcfdea805fb3ec786775f9cd30b | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | whiledoing/ray | d8d9ba09b7545e8fd00cca5cfad451278e61fffd | 9272bcbbcae1630c5bb2db08a8279f0401ce6f92 | refs/heads/master | 2023-03-06T16:23:18.006757 | 2022-07-22T02:06:47 | 2022-07-22T02:06:47 | 252,420,044 | 0 | 0 | Apache-2.0 | 2023-03-04T08:57:20 | 2020-04-02T10:07:23 | Python | UTF-8 | Python | false | false | 3,493 | py | import pytest
from ray.air import session
from ray.air.checkpoint import Checkpoint
import torch
import ray
from ray.air.examples.pytorch.torch_linear_example import (
train_func as linear_train_func,
)
from ray.train.torch import TorchPredictor, TorchTrainer
from ray.tune import TuneError
from ray.air.config impo... | [
"noreply@github.com"
] | whiledoing.noreply@github.com |
174dff48ac9b3bf40f36add33d6c4d489b16d1c6 | 267867b5bcaeeed26228a295b877a62473e1d1bb | /scripts/python/client.py | f4a4d313384dccede10d4ca0c3367a4ffb51601e | [] | no_license | gitgaoqian/cloud_v2 | 602a2a3ea8e4457606ce9f1a55e2166c9b227781 | b35d89132799042ac34eba435b76c311c2a4b287 | refs/heads/master | 2021-05-06T07:08:52.055547 | 2021-01-24T12:25:38 | 2021-01-24T12:25:38 | 113,935,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #!/usr/bin/env python
import sys
import rospy
from cloud_v2.srv import call
def local_client(service,action):
rospy.wait_for_service('bridge_service')
try:
client = rospy.ServiceProxy('bridge_service', call)
resp1 = client(service,action)
return resp1
except rospy.ServiceException,... | [
"734756851@qq.com"
] | 734756851@qq.com |
0cce847454191ea31bb62590d59b1466784e8cc7 | ef8c5c55b6ec3971adff9afe2db1f76556b87082 | /code_examples.bak/wave2d_numpy_f90_cuda/wave2d_2plot.py | 8ecd2c9c6ad280e4676bd5d9c627e86e1cdfa832 | [] | no_license | wbkifun/my_stuff | 7007efc94b678234097abf0df9babfbd79dcf0ff | 0b5ad5d4d103fd05989b514bca0d5114691f8ff7 | refs/heads/master | 2020-12-10T22:40:28.532993 | 2017-11-15T11:39:41 | 2017-11-15T11:39:41 | 5,178,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | #------------------------------------------------------------------------------
# Author : Ki-Hwan Kim (kh.kim@kiaps.org)
#
# Written date : 2010. 6. 17
# Modify date : 2012. 9. 17
#
# Copyright : GNU GPL
#
# Description :
# Solve the 2-D wave equation with the FD(Finite-Difference) scheme
#
# These are educationa... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
ea43c9fb9d97749418f21a7acb65a4abd48d203b | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/file/formats/ios/decmpfs/DecmpfsHeader.pyi | 14fadb23d185b60636313cbd85e5c0fceeb233fc | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | pyi | from typing import List
import ghidra.app.util.bin
import ghidra.program.model.data
import java.lang
class DecmpfsHeader(object, ghidra.app.util.bin.StructConverter):
ASCII: ghidra.program.model.data.DataType = char
BYTE: ghidra.program.model.data.DataType = byte
DWORD: ghidra.program.model.data.DataType ... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
c1c5d53023c9e08c075a4a87131b688e7c2d1e90 | 3f309b1dd9774ca1eef2c7bb7626447e6c3dbe70 | /peripheral/wdt_01385/config/wdt.py | 236b654f56f213aaee60a0d9144932b7da7f0238 | [
"LicenseRef-scancode-unknown-license-reference",
"ISC",
"LicenseRef-scancode-public-domain"
] | permissive | Unitek-KL/csp | 30892ddf1375f5191173cafdfba5f098245a0ff7 | 2ac7ba59465f23959e51d2f16a5712b57b79ef5f | refs/heads/master | 2020-12-10T13:42:26.878408 | 2019-10-14T17:55:22 | 2019-10-14T17:56:20 | 233,609,402 | 0 | 0 | NOASSERTION | 2020-01-13T14:04:51 | 2020-01-13T14:04:51 | null | UTF-8 | Python | false | false | 9,962 | py | # coding: utf-8
"""*****************************************************************************
* Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* re... | [
"http://support.microchip.com"
] | http://support.microchip.com |
fdfbe937a2a646632ade4d132625cc393a0fe83c | 90cd41da01e181bf689feb6d305a2610c88e3902 | /senlin/tests/tempest/api/clusters/test_cluster_delete_negative.py | 5e9aab7633647c77ac10cac70360dffb82e45287 | [
"Apache-2.0"
] | permissive | paperandsoap/senlin | 368980e1fb01d91659f8b0d7dd532c3260386fa7 | 5d98dae3911aa4d5b71e491f3a4e0c21371cc75a | refs/heads/master | 2020-12-25T17:45:02.490958 | 2016-05-29T14:42:39 | 2016-05-29T14:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | 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 t... | [
"tengqim@cn.ibm.com"
] | tengqim@cn.ibm.com |
84c5278933ccbfe033e99a67fd923dea7a9c80d2 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/encodings/utf_32.py | 6a7ba7022f222c97d748b69be9c9ec7f90231268 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,805 | py | # 2015.11.10 21:35:58 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/encodings/utf_32.py
"""
Python 'utf-32' Codec
"""
import codecs, sys
encode = codecs.utf_32_encode
def decode(input, errors = 'strict'):
return codecs.utf_32_decode(input, errors, True)
class IncrementalEncoder(codecs.Incre... | [
"info@webium.sk"
] | info@webium.sk |
856f194b3643fa63d846f488a7b5eaa655451e14 | e00186e71a1f52b394315a0cbc27162254cfffb9 | /durga/full_durga/withrestc1/withrestc1/asgi.py | 9033cff3915786e32a148f3a2d204f1ea519d37c | [] | no_license | anilkumar0470/git_practice | cf132eb7970c40d0d032520d43e6d4a1aca90742 | 588e7f654f158e974f9893e5018d3367a0d88eeb | refs/heads/master | 2023-04-27T04:50:14.688534 | 2023-04-22T05:54:21 | 2023-04-22T05:54:21 | 100,364,712 | 0 | 1 | null | 2021-12-08T19:44:58 | 2017-08-15T10:02:33 | Python | UTF-8 | Python | false | false | 397 | py | """
ASGI config for withrestc1 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"anilkumar.0466@gmail.com"
] | anilkumar.0466@gmail.com |
0763a1481b2be60155335147da398bc603dc0912 | 426aed70aa6925105f10c7fcb7b611b277bf8b84 | /python/dgl/nn/pytorch/utils.py | 930f0268f0b5732e5d61030dc5d1357d7c38d35a | [
"Apache-2.0"
] | permissive | hengruizhang98/dgl | 0ce7201ca7380482440f031cb8ced6ca0e8c8dc1 | 195f99362d883f8b6d131b70a7868a537e55b786 | refs/heads/master | 2023-06-10T22:21:45.835646 | 2021-04-13T12:29:43 | 2021-04-13T12:29:43 | 336,804,001 | 3 | 0 | Apache-2.0 | 2021-02-07T14:16:20 | 2021-02-07T14:16:20 | null | UTF-8 | Python | false | false | 9,275 | py | """Utilities for pytorch NN package"""
#pylint: disable=no-member, invalid-name
import torch as th
from torch import nn
from ... import DGLGraph
from ...base import dgl_warning
def matmul_maybe_select(A, B):
"""Perform Matrix multiplication C = A * B but A could be an integer id vector.
If A is an integer ve... | [
"noreply@github.com"
] | hengruizhang98.noreply@github.com |
29d9dae4b3ca012575e80a559d1fcd7ebd0b9277 | 90047daeb462598a924d76ddf4288e832e86417c | /third_party/WebKit/Tools/gdb/webkit.py | 3f75a6d089880483ddb5a036273761ec9a52185d | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | Python | false | false | 15,072 | py | # Copyright (C) 2010, Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
d76a7713552cf333afc6141ab7be1d25632b568f | a777170c979214015df511999f5f08fc2e0533d8 | /claf/data/reader/bert/glue/qnli.py | 4b5a99b0e21fb352e87ffcf6d20182905ddebe0e | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | srlee-ai/claf | 210b2d51918cf210683e7489ccb8347cb8b1f146 | 89b3e5c5ec0486886876ea3bac381508c6a6bf58 | refs/heads/master | 2021-02-13T04:38:36.198288 | 2020-03-03T15:01:01 | 2020-03-03T15:01:01 | 244,661,892 | 0 | 0 | MIT | 2020-03-03T14:45:52 | 2020-03-03T14:45:52 | null | UTF-8 | Python | false | false | 1,660 | py |
import logging
from overrides import overrides
from claf.data.reader import SeqClsBertReader
from claf.decorator import register
logger = logging.getLogger(__name__)
@register("reader:qnli_bert")
class QNLIBertReader(SeqClsBertReader):
"""
QNLI DataReader for BERT
* Args:
file_paths: .tsv fil... | [
"humanbrain.djlee@gmail.com"
] | humanbrain.djlee@gmail.com |
33ccbd6363bc7859a7fc752f05cad29813f8f354 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Tree/binary_tree_paths.py | 3eaa605aa96b08ee364375160ae8865b257bf882 | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | class Solution:
def binaryTreePaths(self, root: TreeNode) -> List[str]:
paths = []
if not root: return paths
self.dfs(root, "", paths)
return paths
def dfs(self, root, path, paths):
path = path + str(root.val)
if not root.left and not root.right:
... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
5e7794458fd0973c267d8c6df2b78d63abcb4d98 | be9960512ddf562516c4f2d909577fc6b9750f19 | /packages/jet_bridge_base/jet_bridge_base/filters/filter_class.py | 80997d750eb1d9a781847a4872c1e3298f7df9e4 | [
"MIT"
] | permissive | timgates42/jet-bridge | 9abdc8bdf420c720a30d6db163649a2a74c6b829 | 80c1f3a96dc467fd8c98cbdfbda2e42aa6a1d3b4 | refs/heads/master | 2023-03-16T03:19:08.358590 | 2022-06-14T16:26:14 | 2022-06-14T16:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | from jet_bridge_base.utils.queryset import get_session_engine
from sqlalchemy import inspect
from jet_bridge_base.filters import lookups
from jet_bridge_base.filters.filter import Filter
from jet_bridge_base.filters.filter_for_dbfield import filter_for_data_type
class FilterClass(object):
filters = []
def _... | [
"f1nal@cgaming.org"
] | f1nal@cgaming.org |
0b33acfc0a8e92200b6bb9ff425ee92732e063f5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/24/usersdata/146/11428/submittedfiles/av1_m3.py | 5a721a4808aefc5e4ee7ce452cf07957f8fd7305 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
m = input('Digite o numero de termos: ')
soma = 0
i = 1
den = 2
while i<=m :
if i%2==0:
soma = soma - 4/((den)*(den+1)*(den+2))
else:
soma = soma + 4/((den+2)*(den+1)*(den+2))
den = den+1
i = i+1
pi = 3+soma
print ('... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1b330ed34ebbd7922f0d6f1b9d56a7a7c71f35db | f819fe72c5b18b42a25a71dc2900c7fa80e17811 | /pandas/_libs/tslibs/timestamps.pyi | 4de51d4dc7dd8f5b04a87cd41a4ae72ca0ed76a2 | [
"BSD-3-Clause"
] | permissive | JMBurley/pandas | 34d101425acb0ac35a53bcf29fbd47c2d4c88fda | b74dc5c077971301c5b9ff577fa362943f3c3a17 | refs/heads/master | 2022-11-06T00:48:41.465865 | 2022-06-13T19:30:11 | 2022-06-13T19:30:11 | 229,853,377 | 1 | 0 | BSD-3-Clause | 2019-12-24T02:11:54 | 2019-12-24T02:11:53 | null | UTF-8 | Python | false | false | 7,504 | pyi | from datetime import (
date as _date,
datetime,
time as _time,
timedelta,
tzinfo as _tzinfo,
)
from time import struct_time
from typing import (
ClassVar,
TypeVar,
overload,
)
import numpy as np
from pandas._libs.tslibs import (
BaseOffset,
Period,
Tick,
Timedelta,
)
_... | [
"noreply@github.com"
] | JMBurley.noreply@github.com |
4c011ed2da70f655d3aa386df74a1e326d494d21 | 1ada3010856e39c93e2483c960aa8fc25e2b3332 | /Binary Tree/FullBT.py | 034233595a63dbed3ebcff43dae5e8c12860eb95 | [] | no_license | Taoge123/LeetCode | 4f9e26be05f39b37bdbb9c1e75db70afdfa1b456 | 4877e35a712f59bc7b8fffa3d8af2ffa56adb08c | refs/heads/master | 2022-02-24T20:09:21.149818 | 2020-07-31T03:18:05 | 2020-07-31T03:18:05 | 142,700,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def isFullTree(root):
if root is None:
return True
#If leaf node
if root.left is None and root.right is None:
return True
if root.left is not None and root.right is n... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
ccce9383b7b87da27d4a190b8045a110fb1240bc | 5a42ce780721294d113335712d45c62a88725109 | /project/pyalg_api/commands/orient_command.py | 67982f7aa800805ca33b77737fa43bda3887f4af | [] | no_license | P79N6A/project_code | d2a933d53deb0b4e0bcba97834de009e7bb78ad0 | 1b0e863ff3977471f5a94ef7d990796a9e9669c4 | refs/heads/master | 2020-04-16T02:06:57.317540 | 2019-01-11T07:02:05 | 2019-01-11T07:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # -*- coding: utf-8 -*-
import json
import os
import pandas as pd
import pyorient
import pdb
import random
import re
from datetime import datetime, timedelta
from lib.logger import logger
from .base_command import BaseCommand
from model.open import OpenJxlStat
from model.antifraud import AfWsm
from module.yiyiyuan im... | [
"wangyongqiang@ihsmf.com"
] | wangyongqiang@ihsmf.com |
b94122e661a89d99930688d0073fd4d58d5439c7 | f000fa4e6ef1de9591eeabff43ba57b7bf32561d | /cephlcm/api/views/v1/permission.py | 98322faa2514b82357002f20746813ca09c7ca49 | [] | no_license | VictorDenisov/ceph-lcm | 1aca07f2d17bfda8760d192ffd6d17645705b6e4 | 3cfd9ced6879fca1c39039e195d22d897ddcde80 | refs/heads/master | 2021-01-15T09:19:23.723613 | 2016-09-17T01:18:45 | 2016-09-17T01:18:45 | 68,424,913 | 0 | 0 | null | 2016-09-17T01:17:36 | 2016-09-17T01:17:36 | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
"""Small API to list permissions available in application."""
from cephlcm.api import auth
from cephlcm.api.views import generic
from cephlcm.common.models import role
class PermissionView(generic.ModelView):
decorators = [
auth.require_authorization("api", "view_role"),
... | [
"sarkhipov@mirantis.com"
] | sarkhipov@mirantis.com |
5a5e361c2eba01070a0d3e17a30153188ba0779f | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/list_value_list_response.py | 19cf334e308e193d4391dbf7c5b6693f27dd4bcc | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ListValueListResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8f39586d925238cc0f8aaf1533ed11e6bba15271 | 88b4b883c1a262b5f9ca2c97bf1835d6d73d9f0b | /src/api/python/hce/app/UrlNormalize.py | d2cfe91a54afb21b110f70ed0b308b85d4c67660 | [] | no_license | hce-project/hce-bundle | 2f93dc219d717b9983c4bb534884e4a4b95e9b7b | 856a6df2acccd67d7af640ed09f05b2c99895f2e | refs/heads/master | 2021-09-07T22:55:20.964266 | 2018-03-02T12:00:42 | 2018-03-02T12:00:42 | 104,993,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # coding: utf-8
"""
HCE project, Python bindings, Distributed Tasks Manager application.
UrlNormalize Class content main functional of support the URL_NORMALIZE properties.
@package: app
@file UrlNormalize.py
@author Alexander Vybornyh <alexander.hce.cluster@gmail.com>
@link: http://hierarchical-cluster-engine.com/
@... | [
"bgv@bgv-d9"
] | bgv@bgv-d9 |
3745a3536c649d6903183d1fd0fc4de53df98f5c | c9a222631e4a0b827ee4efbd4e362d00b7cc6d48 | /demo/画方格/rose.py | 837c42354e6f408ee364e1570706b3fe5d0bab0e | [] | no_license | enticejin/python | d86b1727048bae24bce0fedc911953a20d11947c | 09dea6c62e6be8389fb23f472a1f02896a74c696 | refs/heads/master | 2023-03-12T18:00:06.322335 | 2021-11-09T01:38:13 | 2021-11-09T01:38:13 | 234,876,815 | 3 | 1 | null | 2023-03-04T01:24:08 | 2020-01-19T09:54:07 | Python | UTF-8 | Python | false | false | 1,437 | py | from turtle import *
import time
setup(1000,800,0,0)
speed(0)
penup()
seth(90)
fd(340)
seth(0)
pendown()
speed(5)
begin_fill()
fillcolor('red')
circle(50,30)
for i in range(10):
fd(1)
left(10)
circle(40,40)
for i in range(6):
fd(1)
left(3)
circle(80,40)
for i in range(20):
fd(0.5)
left(5)... | [
"www.403367632@qq.com"
] | www.403367632@qq.com |
9c77a2d055cd61fac338aee65656356b09aa4f57 | 323f618462f939621a4287a781986d995f83b5f2 | /controllers/application/sublime.py | c6e1faa80c7b8969174f2ab793d36fcf4e948a93 | [] | no_license | almamuncsit/virtual-assistant | 3f08e433bd4d9c985a00bfdc2b31bf27b3d8ce9e | 4ea31dc8667e397724229d8383bbfbb0e50ab626 | refs/heads/master | 2023-04-03T18:07:26.775071 | 2021-04-08T17:29:47 | 2021-04-08T17:29:47 | 325,242,463 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | import os
def sublime() -> None:
os.system('subl')
| [
"msarkar.cse@gmail.com"
] | msarkar.cse@gmail.com |
353284559c12cf179d807a4ba9ac588bd8f495d5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2533/59137/270093.py | f1c8a2c861bf977ab43894cd1ef420e8d96bcd4a | [] | 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 | 221 | py | def s1():
array = list(eval(input()))
ans = []
for n in array:
if n % 2 == 0:
ans.append(n)
for n in array:
if n % 2 == 1:
ans.append(n)
print(ans)
s1() | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f142571b2aee06f9277b92ef1709a27a21e74f6a | f6290b7b8ffb263b7f0d252a67e2c6320a4c1143 | /Recursion/rat_in_a_maze.py | f7cc926fed7bed41572c85590758f250caa32735 | [] | no_license | datAnir/GeekForGeeks-Problems | b45b0ae80053da8a1b47a2af06e688081574ef80 | c71f11d0349ed3850dfaa9c7a078ee70f67e46a1 | refs/heads/master | 2023-05-29T15:21:59.680793 | 2020-12-15T04:55:01 | 2020-12-15T04:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | '''
https://practice.geeksforgeeks.org/problems/rat-in-a-maze-problem/1
Consider a rat placed at (0, 0) in a square matrix of order N*N. It has to reach the destination at (n-1, n-1).
Find all possible paths that the rat can take to reach from source to destination. The directions in which the rat can move are 'U'(up)... | [
"komalbansal97@gmail.com"
] | komalbansal97@gmail.com |
2109ddff14d449f6eecc234e4308e94c0f0b2bd5 | de8b832a3c804837300b9974dc0151d9294fa573 | /handCraft/covarep-master/distribution/py_package/covarep_py/for_redistribution_files_only/covarep_py/__init__.py | 98fa699b65065c6e6d1c946ea4c35f8f7f57c47f | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | YuanGongND/Deep_Speech_Visualization | fcff2ac93e5adffd707b98eb7591f50fe77c1274 | 73a79e3596d9a5ee338eafb9a87b227696de25d1 | refs/heads/master | 2021-07-19T23:00:36.294817 | 2017-10-28T01:04:59 | 2017-10-28T01:04:59 | 105,332,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,524 | py | #Copyright 2015 MathWorks, Inc.
# This template is used to generate an __init__.py file for a particular deployable package.
""" Package for executing deployed MATLAB functions """
from __future__ import print_function
import atexit
import glob
import importlib
import os
import os.path
import pdb
import platform
imp... | [
"ygong1@nd.edu"
] | ygong1@nd.edu |
5bbcbb82c02d8c1cfa203245472a07dafc8af5ca | 81f7f4a65a068ed2483b537f6675a5f46235af88 | /inplace_activity_stream/urls.py | b6cd2b3e850c994e4c20377bdb3795bf119cb6be | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | ebrelsford/django-inplace-activity-stream | f561c7cf0c7180426d3ea9cd11abba1cb6744e60 | a495e42ffdc37d5e800f71ab97ed6975a1849224 | refs/heads/master | 2020-12-24T13:16:17.119724 | 2017-05-09T14:09:09 | 2017-05-09T14:09:09 | 11,783,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from django.conf.urls import url
from .views import PlaceActivityFeed, PlaceActivityListView
urlpatterns = [
url(r'^feeds/all/$',
PlaceActivityFeed(),
name='activitystream_feed',
),
url(r'^',
PlaceActivityListView.as_view(),
name='activitystream_activity_list'
),
]
| [
"ebrelsford@gmail.com"
] | ebrelsford@gmail.com |
70e69736bdd3c3f577144a9714bd7664633f07ff | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/aspseg_personalizacao/wizards/asp_relatorio.py | 9cbd795322404460d5cca2bd91f68067742147dd | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,105 | py | # -*- encoding: utf-8 -*-
import os
from osv import orm, fields, osv
from pybrasil.data import parse_datetime, formata_data
import base64
from integra_rh.models.hr_payslip_input import primeiro_ultimo_dia_mes, mes_passado
from relatorio import *
from finan.wizard.relatorio import *
import csv
from pybrasil.base import... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
8cb1198739853e29689237999b1e3c3375af0e06 | 31e00afe8f782bd214f8e32949be928a51e5de39 | /CreditCalculator/Credit Calculator/task/creditcalc/creditcalc.py | a56e2de2966fd6bf16c2ab712fd91ba2d6ad1650 | [] | no_license | akocur/education | 65e2a0640bab5e9939c5692333fa2f500c9feb0b | d0a890861cd83dcc61ff2af6cfbb75c157fbaf02 | refs/heads/master | 2023-05-24T02:38:04.695665 | 2020-10-26T14:09:07 | 2020-10-26T14:09:07 | 269,410,671 | 0 | 0 | null | 2023-05-22T22:47:45 | 2020-06-04T16:32:11 | HTML | UTF-8 | Python | false | false | 3,761 | py | from math import log, ceil, floor
import argparse
class CreditCalculator:
def __init__(self, type_calc='annuity', payment=0, periods=0, interest=0, principal=0):
self.type = type_calc
self.payment = payment
self.periods = periods
self.interest = interest
self.principal = pr... | [
"akocur@yandex.ru"
] | akocur@yandex.ru |
63702ccdfa0d0fe8c64cf9c7db3880461a484a25 | f3498e863e6500508f486added078aa462239de2 | /devel/lib/python2.7/dist-packages/mavros_msgs/__init__.py | 7e8803c1ed66e694312bfbf8a0b6d0cd5d62e556 | [] | no_license | luiscaiza/catkin_ws | 82bf39d25c3e732a4a3e5408b81de7992373cb87 | ac038d7623b27217309adbbd38ace6e0bb528d61 | refs/heads/master | 2020-04-16T04:41:09.004587 | 2019-01-15T19:17:28 | 2019-01-15T19:17:28 | 165,276,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | /home/luis/catkin_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/__init__.py | [
"lcaiza2012@gmail.com"
] | lcaiza2012@gmail.com |
5b68f9839dd7d14e82c6f535fb0febdf0d995910 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /extensions/logserver/ScribedCommand.py | 3d234d75264afabac9b90bffa6679d4182ed3010 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 4,544 | py |
from pylabs import q
from pylabs.inifile import IniFile
from pylabs.baseclasses.CommandWrapper import CommandWrapper
from pylabs.enumerators import AppStatusType
import time
class ScribedCommand(CommandWrapper):
"""
A basic ScribedCommandWrapper to start/stop/restart the Scribe server
"""
# def _get... | [
"devnull@localhost"
] | devnull@localhost |
370c92a901face3a9787726692e591f2249350aa | b5921afe6ea5cd8b3dcfc83147ab5893134a93d0 | /tl/plugs/timeline/klacht.py | 1834e62f30873b8c7ab9090c22771b0cad15963c | [
"LicenseRef-scancode-other-permissive"
] | permissive | techdragon/tl | aaeb46e18849c04ad436e0e786401621a4be82ee | 6aba8aeafbc92cabdfd7bec11964f7c3f9cb835d | refs/heads/master | 2021-01-17T16:13:18.636457 | 2012-11-02T10:08:10 | 2012-11-02T10:08:10 | 9,296,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | # tl/plugs/timeline/klacht.py
#
#
""" het timeline klachten command. """
## tl imports
from tl.utils.name import stripname
from tl.lib.datadir import getdatadir
from tl.lib.persist import TimedPersist, PersistCollection
from tl.lib.commands import cmnds
from tl.lib.examples import examples
from tl.id import get_uid,... | [
"feedbackflow@gmail.com"
] | feedbackflow@gmail.com |
4a1a45cb117ab58f4f8273b78fa8fba8fabe3cd5 | 2ffdd45472fc20497123bffc3c9b94d9fe8c9bc8 | /venv/Lib/site-packages/pip/_internal/network/auth.py | db016f2af2fd5d56a211d566cafa9d00e4118b0b | [] | no_license | mbea-int/expense-tracker-app | fca02a45623e24ed20d201f69c9a892161141e0c | 47db2c98ed93efcac5330ced2b98d2ca365e6017 | refs/heads/master | 2023-05-10T14:29:04.935218 | 2021-06-04T15:10:00 | 2021-06-04T15:10:00 | 373,816,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,512 | py | """Network Authentication Helpers
Contains interface (MultiDomainBasicAuth) and associated glue code for
providing credentials in the context of network requests.
"""
import logging
from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth
from pip._vendor.requests.utils import get_netrc_auth
from pip._vendor.si... | [
"besa8383@gmail.com"
] | besa8383@gmail.com |
c830aa73b9ef83c3a14fb5861a563fa13de4758f | f2a5311fdca8d71535565e1ec3fc2b79e55ab7aa | /main2d.py | c35349151b55013dad39d01b3ed3cb0a83619153 | [] | no_license | xzxzmmnn/pytorch-convcnp | 59bd9036cea88479862a622749408fd73f9d132b | 31340d5cf4b537a240075f93c8d4aff6f10d8931 | refs/heads/master | 2020-12-28T11:53:13.337832 | 2020-01-01T07:58:27 | 2020-01-01T07:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | import argparse
import torch
import torch.optim as optim
from torch.utils.data import DataLoader
from torch.utils.tensorboard import SummaryWriter
import torchvision.transforms as tf
from torchvision.datasets import MNIST, CIFAR10
from fastprogress import master_bar, progress_bar
from convcnp import ConvCNP2d, chan... | [
"makoto.kawano@gmail.com"
] | makoto.kawano@gmail.com |
74ecd4a6a16f90612dffbb77095aa1099cf71add | 033b29b6b1538d10e060e5734a1d7488a3fa03b4 | /attic/objects/cards.py | f7891263e43957b288de677edd09d2b095312859 | [
"MIT"
] | permissive | yuechuanx/fluent-python-code-and-notes | f99967416abc9c46be50d95f822b2ef3609f2d2d | 2ae19fff8e1d292c6e8d163c99ca63e07259499c | refs/heads/master | 2023-08-09T22:14:22.985987 | 2022-08-28T09:06:32 | 2022-08-28T09:06:32 | 229,009,764 | 2 | 0 | MIT | 2023-07-20T15:11:59 | 2019-12-19T08:30:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,422 | py | """
Spadille is the nickname for the Ace of Spades in some games
(see `Webster 1913`_)
>>> beer_card = Card('7', Suite.diamonds)
>>> beer_card
Card('7', Suite.diamonds)
>>> spadille = Card('A', Suite.spades, long_rank='Ace')
>>> spadille
Card('A', Suite.spades)
>>> print(spadille)
Ace ... | [
"xiaoyuechuanz@163.com"
] | xiaoyuechuanz@163.com |
690d6bd978706e9964ef58092234dfc22adba345 | 866dee1b3d01b863c31332ec81330d1b5ef5c6fa | /openquake.hazardlib/openquake/hazardlib/gsim/somerville_2009.py | 3b4ea58c733f11df1149419112d9a6f14b6fa79c | [
"MIT",
"AGPL-3.0-only"
] | permissive | rainzhop/ConvNetQuake | 3e2e1a040952bd5d6346905b83f39889c6a2e51a | a3e6de3f7992eac72f1b9883fec36b8c7fdefd48 | refs/heads/master | 2020-08-07T16:41:03.778293 | 2019-11-01T01:49:00 | 2019-11-01T01:49:00 | 213,527,701 | 0 | 0 | MIT | 2019-10-08T02:08:00 | 2019-10-08T02:08:00 | null | UTF-8 | Python | false | false | 9,716 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2013-2016 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | [
"rainzhop@gmail.com"
] | rainzhop@gmail.com |
8e227b0301c820f7de88c13b8aa9fea0299ee35c | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /lex-models_read_1/intent-version_get.py | 3042cea737aa3ed08aa65f3330a3dc1253199319 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lex-models/get-intent-versions.html
if __name... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
f6e55ac4950c328a97974e006332ebc0b2d7779d | 9a4de72aab094c87cfee62380e7f2613545eecfb | /monitor/permissions.py | 4a5ca730834d35cef0d5a306a239cd832e172907 | [] | no_license | jamesduan/asset | ed75765c30a5288aaf4f6c56bbf2c9a059105f29 | f71cb623b5ba376309cb728ad5c291ced2ee8bfc | refs/heads/master | 2021-01-10T00:06:41.120678 | 2017-05-27T11:40:48 | 2017-05-27T11:40:48 | 92,730,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from rest_framework import permissions
from assetv2.settingsapi import GROUP_ID
SAFE_METHOD = ['GET']
class EventPermission(permissions.BasePermission):
def has_permission(self, request, view):
return True
class AlarmPermission(permissions.BasePermission):
def has_permission(self, request, view):
... | [
"duanlingxiao@yhd.com"
] | duanlingxiao@yhd.com |
93017e77935b215f3fe77019853de5c8710fb5da | 5ab0a217ac64a4e73d7ccff834a73eecdae323c5 | /chps3-5/5.09.2.py | 07db151d59c6c3f2ae3361eb9a29d95d73b0929d | [] | no_license | bolducp/My-Think-Python-Solutions | d90ea5c485e418f4a6b547fdd9c1d4c8adfe72b9 | 6c411af5a46ee167b8e4a3449aa4b18705bf1df5 | refs/heads/master | 2021-01-22T05:19:53.987082 | 2015-09-15T15:53:31 | 2015-09-15T15:53:31 | 41,259,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | def print_it():
print "hello"
def do_n(a_function, n):
if n <= 0:
return
a_function()
do_n(a_function, n-1)
do_n(print_it, 10) | [
"paigebolduc@gmail.com"
] | paigebolduc@gmail.com |
5870f222472143b75927e57686601703315c9e5f | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/ht8.py | 395581a5a9a0c57ec6f9e5fe99c8d47a05db9215 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
d8bbd86b7eb2a6e33c42f85a09768c3508e5f1d1 | b8ca7b39498b371405b1036dc58d18ab260a3bdc | /app/core/aries_rfcs/features/feature_0036_issue_credential/feature.py | e6a5f5619f49ecac5e242412fb189cbd29696296 | [] | no_license | Sirius-social/Indy-Agent | 73cbb9126648a8e7d97e60fd7add3f7f72c25b1f | 8e26d824c74d7e41739ac16acacf4b12181cfea1 | refs/heads/master | 2022-12-10T18:33:15.324450 | 2021-09-19T22:39:21 | 2021-09-19T22:39:21 | 197,164,640 | 0 | 1 | null | 2022-12-08T05:53:33 | 2019-07-16T09:36:58 | Rust | UTF-8 | Python | false | false | 43,576 | py | import json
import uuid
import logging
import base64
from collections import UserDict
from typing import List
from django.conf import settings
from django.utils.timezone import timedelta, now
import core.indy_sdk_utils as indy_sdk_utils
import core.codec
import core.const
from core.models import update_cred_def_meta,... | [
"minikspb@gmail.com"
] | minikspb@gmail.com |
6f0edfece6342887493bb3cea706740038aa981b | 9b8e2992a38f591032997b5ced290fe1acc3ad94 | /assignment.py | 9f83cc955c406a0296f5a3b75f6f088b6468147c | [] | no_license | girishdhegde/aps-2020 | c694443c10d0d572c8022dad5a6ce735462aaa51 | fb43d8817ba16ff78f93a8257409d77dbc82ced8 | refs/heads/master | 2021-08-08T04:49:18.876187 | 2021-01-02T04:46:20 | 2021-01-02T04:46:20 | 236,218,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | cost = [[3, 2, 7],
[5, 1, 3],
[2, 7, 2]]
n = 3
dp = [float('inf') for i in range(2**n)]
dp[0] = 0
def count_set_bits(mask):
cnt = 0
while(mask != 0):
cnt += 1
mask &= (mask - 1)
return cnt
print(count_set_bits(7))
# for mask in range(2**n):
# x = count_set_bits... | [
"girsihdhegde12499@gmail.com"
] | girsihdhegde12499@gmail.com |
d0ffc2ce73a4358770fcbd0d3aea0a21813f5eeb | 005f02cb534bbf91fe634fcf401441e1179365c8 | /10-Django Level 2/10.2-projektDy/projektDy/wsgi.py | 18fe901d2208426855c0e488e7e4b4babad70dda | [] | no_license | Ruxhino-B/django-deployment-example | 220a39a456871a1bf42a64fd5b945731056fc7b9 | e19713ac1e11af202152ad20d7c3c94891a77e83 | refs/heads/master | 2020-04-18T02:21:10.505691 | 2020-01-06T14:18:18 | 2020-01-06T14:25:25 | 167,159,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for projektDy project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"ruxhino@gmail.com"
] | ruxhino@gmail.com |
03829e363688475ccad8963022ab6bfa1f2ae6ee | b47f5ca0a51cf59427b7bd12e9c85064a1e13e03 | /easyci/commands/watch.py | 4969cb582bbd2f55f16519477a4ad48cafb03c24 | [
"MIT"
] | permissive | naphatkrit/easyci | a490b57e601bcad6d2022834809dd60cb0902e0c | 7aee8d7694fe4e2da42ce35b0f700bc840c8b95f | refs/heads/master | 2016-09-02T01:14:28.505230 | 2015-09-09T00:26:25 | 2015-09-09T00:26:25 | 41,396,486 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import click
from watchdog.observers import Observer
from easyci.file_system_events.tests_event_handler import TestsEventHandler
from easyci.utils import decorators
@click.command()
@click.pass_context
@decorators.print_markers
def watch(ctx):
"""Watch the directory for changes. Automatically run tests.
"""... | [
"naphat.krit@gmail.com"
] | naphat.krit@gmail.com |
2fe01f1669e635156e429787ec8e0f24864e4090 | bd2fb6aa0e25dcc3f6c1511007f15f63d0d9fb55 | /tests/functions/folding/test_addmod_mulmod.py | 50aa1d78ec53446c84cb634c1d65af92aea219fc | [
"Apache-2.0"
] | permissive | andrelfpinto/vyper | 4b26a88686518eca3a829c172dd01dcd34b242e4 | d9b73846aa14a6019faa4126ec7608acd05e480d | refs/heads/master | 2022-11-08T06:38:59.104585 | 2020-06-23T01:13:50 | 2020-06-23T01:13:50 | 274,272,650 | 0 | 0 | Apache-2.0 | 2020-06-23T00:39:05 | 2020-06-23T00:39:04 | null | UTF-8 | Python | false | false | 868 | py | import pytest
from hypothesis import assume, given, settings
from hypothesis import strategies as st
from vyper import ast as vy_ast
from vyper import functions as vy_fn
st_uint256 = st.integers(min_value=0, max_value=2 ** 256 - 1)
@pytest.mark.fuzzing
@settings(max_examples=50, deadline=1000)
@given(a=st_uint256, ... | [
"ben@hauser.id"
] | ben@hauser.id |
08b5a295b6ce6b6b955d67a08448ad20ee18b133 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/formrecognizer/azure-ai-formrecognizer/tests/test_frc_identity_documents_async.py | d90abd8f45f9a581b5f6a733d8ccab64198aad68 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 8,085 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import pytest
import functools
from io import BytesIO
from devtools_testutils.aio import recorded_by_proxy_async
from azure.core.exceptions import Servic... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
e1d99bfb0a5b950802d604a203ed618117937fb1 | 55e13562203f2f24338a5e1f8bb543becf8df171 | /lighttpd/upload.py | eabb90c5e76f9a50fe642e503391fc9342dd1fe7 | [] | no_license | jvanz/container-images | 79cd1dd4ade141d733ec6923f1157c15159369ab | ff228722dcccb318def64d9bf485dc43ccafa0d8 | refs/heads/master | 2020-08-31T05:24:44.258927 | 2019-11-25T17:42:09 | 2019-11-25T17:42:09 | 218,603,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/python3
import cgi
import cgitb
cgitb.enable(display=0, logdir="/var/log/lighttpd")
form = cgi.FieldStorage()
filefield = form["file"]
msg = "Failed to upload file!"
if filefield.filename:
with open(f"/tmp/{filefield.filename}", "w+b") as f:
f.write(filefield.file.read())
msg = "File u... | [
"jvanz@jvanz.com"
] | jvanz@jvanz.com |
3a5d04a7a9e08a83b8fe983908ca0ffb84378af0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_006/ch73_2020_06_08_22_39_00_045794.py | 1fffb73594f4be691ffc6cda3e85a35745493c0c | [] | 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 | 192 | py | def remove_vogais(palavra):
vogais=["a", "e", "i", "o", "u"]
for i in palavra:
if i in vogais:
nova=palavra.replace(i, " ")
return nova
| [
"you@example.com"
] | you@example.com |
19e87d181cb3cd97cab210a0b8d5c7b162ce09f7 | 35f9def6e6d327d3a4a4f2959024eab96f199f09 | /developer/lab/ipython/PyTorch/PyTorch/test/test_optim.py | 54ae721f4c794e0b5146601035d2f47b86481cd5 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"CAL-1.0-Combined-Work-Exception",
"CAL-1.0",
"MIT",
"CC-BY-SA-4.0",
"LicenseRef-scancode-free-unknown"
] | permissive | arXiv-research/DevLab-III-1 | ec10aef27e1ca75f206fea11014da8784752e454 | c50cd2b9154c83c3db5e4a11b9e8874f7fb8afa2 | refs/heads/main | 2023-04-16T19:24:58.758519 | 2021-04-28T20:21:23 | 2021-04-28T20:21:23 | 362,599,929 | 2 | 0 | MIT | 2021-04-28T20:36:11 | 2021-04-28T20:36:11 | null | UTF-8 | Python | false | false | 94,444 | py | import warnings
import math
import unittest
import functools
from copy import deepcopy
import torch
from torch._six import inf
import torch.optim as optim
import torch.optim._multi_tensor as optim_mt
import torch.nn.functional as F
from torch.optim import SGD
from torch.autograd import Variable
from torch import sparse... | [
"noreply@github.com"
] | arXiv-research.noreply@github.com |
eee85f7fa13c8c9a2568ff0b2c328fcd74c447dd | a3eb732ead7e1d10a85a88e42dc639eb16a40265 | /instagram_api/request/base.py | e326afae24f36536b07fc4d0d96d658ed435c783 | [
"MIT"
] | permissive | carsam2021/instagram_api | 7654c0f485c22935cf478016e46e65acbeda9344 | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | refs/heads/master | 2023-03-16T14:06:27.515432 | 2020-10-17T04:39:19 | 2020-10-17T04:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | from typing import Dict, List
import json
from instagram_api.interfaces.api_request import ApiRequestInterface
from instagram_api.signatures import Signatures
__all__ = ['CollectionBase']
class CollectionBase:
def __init__(self, ig):
from instagram_api.instagram import Instagram
self._ig: Inst... | [
"root@proscript.ru"
] | root@proscript.ru |
c378c2866324df13f145039f1ca8f38f447aeb85 | be3920640bbbdb055876f2c1f49c6cc2e81cbab2 | /pyexample/tests/test_viz.py | a4cf5e98a83b2a45624536877e68475621765059 | [
"BSD-3-Clause"
] | permissive | phobson/pyexample | 4993fe8f9b70e5224d09e878f137e94c8c1b4f60 | 133598954b514a80dc0f65c02c8740b626e569d2 | refs/heads/new-branch | 2021-12-02T12:29:32.156032 | 2021-11-24T19:33:21 | 2021-11-24T19:33:21 | 68,402,565 | 0 | 0 | BSD-3-Clause | 2018-01-19T19:44:27 | 2016-09-16T17:55:31 | null | UTF-8 | Python | false | false | 905 | py | import numpy
from matplotlib import pyplot
import pytest
from pyexample import viz
from . import helpers
BASELINE_DIR = 'baseline_images/test_viz'
TOLERANCE = 15
@pytest.fixture
def plot_data():
data = numpy.array([
3.113, 3.606, 4.046, 4.046, 4.710, 6.140, 6.978,
2.000, 4.200,... | [
"pmhobson@gmail.com"
] | pmhobson@gmail.com |
2fb5eec5f1b153b97c548b1814a2487ab20fc821 | e2b9f2354c36bd1edfa141d29f60c13ea176c0fe | /2018/blaze/sl0thcoin/smarter/solve.py | a2ba36e35e7368629a46ee89ae5a80409bf445d9 | [] | no_license | Jinmo/ctfs | 236d2c9c5a49d500e80ece4631a22c7fb32c3c3f | d225baef7942250a5ff15a3f2a9b7ad8501c7566 | refs/heads/master | 2021-07-24T15:17:05.489163 | 2021-07-05T16:05:15 | 2021-07-05T16:05:15 | 68,125,231 | 162 | 26 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | #!/usr/bin/python3
from hashlib import sha256
from itertools import permutations
import string
# Just looked EVM assembly for many hours to solve it.
if False:
keys = string.ascii_lowercase
for combs in permutations(keys, 4):
z = sha256(bytearray(combs)).hexdigest()
# x = x[::-1]
if z == hash or z == hash[::-... | [
"santoky001@naver.com"
] | santoky001@naver.com |
139a12db6cc98827a46acc6950671f20e7643c71 | 480e33f95eec2e471c563d4c0661784c92396368 | /CondTools/Hcal/test/dbwriteCastorElectronicsMap_cfg.py | b60f9e71df8fabf598fe481066fc52793c1f219b | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 2,177 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.MessageLogger=cms.Service("MessageLogger",
destinations=cms.untracked.vstring("cout"),
cout=cms.untracked.PSet(
threshold=cms.untracked.string("INFO"... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
f6cbef75142bef6fca11beffb23c99d4b87e2dcb | 6a95b330e1beec08b917ff45eccfd6be3fd4629f | /kubernetes/client/models/extensions_v1beta1_scale_status.py | 2abdb17853310a267b8ff6d08d3f314a58e3068e | [
"Apache-2.0"
] | permissive | TokkoLabs/client-python | f4a83d6540e64861b59e322c951380a670578d7f | f1ad9c6889105d8510472606c98f8d3807f82020 | refs/heads/master | 2023-07-14T01:36:46.152341 | 2017-12-21T21:32:11 | 2017-12-21T21:32:11 | 115,042,671 | 0 | 0 | Apache-2.0 | 2021-08-06T03:29:17 | 2017-12-21T20:05:15 | Python | UTF-8 | Python | false | false | 6,162 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
25d837ad1c315cf0467adfe2ff6b3178b0ee48a4 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/k8s-extension/azext_k8s_extension/tests/latest/MockClasses.py | 8a6313c9ce63728ba80823afc1570193e5138272 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 711 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
d4904ca21f745e69b4cc262d2ecc00fba7d06012 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/anoukmpg/basic_twitter_scraperchavez_1.py | d364c9eb557ece039635cdb7b4d9fdd75b2b9d7f | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,420 | py | ###################################################################################
# Twitter scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Change QUERY to y... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
901f3c3dd2303e61d8c714f457a19c57173a0f9b | 0931696940fc79c4562c63db72c6cabfcb20884d | /Functions/Loading_Bar.py | 6924207e641d4053b76d424b3c26fb97beb5c9b1 | [] | no_license | ivklisurova/SoftUni_Fundamentals_module | f847b9de9955c8c5bcc057bb38d57162addd6ad8 | 69242f94977c72005f04da78243a5113e79d6c33 | refs/heads/master | 2021-12-01T01:56:22.067928 | 2021-11-08T17:07:31 | 2021-11-08T17:07:31 | 253,281,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | number = int(input())
def loading(num):
loading_bar = []
x = num // 10
y = ((100 - num) // 10)
z = '[' + x * '%' + y * '.' + ']'
loading_bar.append(z)
if (number // 10) == 10:
loading_bar.insert(0, '100% Complete!')
print(loading_bar[0])
print(loading_bar[1])
else:
... | [
"55747390+ivklisurova@users.noreply.github.com"
] | 55747390+ivklisurova@users.noreply.github.com |
3555ae78bbf5408ef0a69abe52dedbabad3a0cdf | 57ae5bfbb24ba5fec90c9b3ecf1e15f06f1546ee | /7-5-1.py | c11af7c98b341df6cf8ce912c9b84b4464523aac | [] | no_license | cjjhust/python_datastucture | f9104f1d5cae2df6436f56d4d3eaa212e6045943 | a222bbe4bfc145ee11f73676c8f033f451d45f78 | refs/heads/master | 2022-07-03T19:53:07.066387 | 2020-05-15T08:06:21 | 2020-05-15T08:06:21 | 260,272,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 10 17:36:36 2018
@author: CJJ
"""
import random
def getRandomM(a,n,m):
if a==None or n<=0 or n<m:
print "参数不合理"
return
i=0
while i<m:
j=random.randint(i,n-1) # // 获取i到n-1间的随机数
# 随机选出的元素放到数组的前面
tmp=a[i]
a[i... | [
"44698055@qq.com"
] | 44698055@qq.com |
d8c1bee039b5b2874724ca9a9ee2b2dd01e43952 | 7da433fc52a167a1e9b593eda1d1ee9eee03ccf1 | /2019-prog-labooefeningen-forrestjan/week8/week08_test_bestanden_klassen/test_spelers.py | d18fe5544310a4f2dedbacc858045acbeab0d460 | [] | no_license | forrestjan/Labos-MCT-19-20 | 69cb26d2f1584a54db32750037dcb900a65a0ae6 | c9392cf0cbd9ad6e5974140060b9d0beaf0a202f | refs/heads/main | 2022-12-30T14:49:35.461246 | 2020-10-14T11:59:16 | 2020-10-14T11:59:16 | 304,000,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | from model.Speler import Speler
from model.Geboortedatum import Geboortedatum
def test_oef1():
# aanspreken van een public static variabele (attribute)
Speler.naam_ploeg = "Rode duivels"
sp1 = Speler("Thibault", "Cortous", "keeper", 8, 0)
sp2 = Speler("Vincent", "Kompany", "aanvaller", 8, 3)
# pa... | [
"jan.forrest@student.howest.be"
] | jan.forrest@student.howest.be |
69ef8c6d7beb126718ee82bda6f72258a06cd3ad | 32226e72c8cbaa734b2bdee081c2a2d4d0322702 | /railrl/data_management/env_replay_buffer.py | 781568e5f90fa8db7cff99c76ab6480aa1591e56 | [
"MIT"
] | permissive | Asap7772/rail-rl-franka-eval | 2b1cbad7adae958b3b53930a837df8a31ab885dc | 4bf99072376828193d05b53cf83c7e8f4efbd3ba | refs/heads/master | 2022-11-15T07:08:33.416025 | 2020-07-12T22:05:32 | 2020-07-12T22:05:32 | 279,155,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,705 | py | from gym.spaces import Discrete
from railrl.data_management.simple_replay_buffer import SimpleReplayBuffer
from railrl.envs.env_utils import get_dim
import numpy as np
class EnvReplayBuffer(SimpleReplayBuffer):
def __init__(
self,
max_replay_buffer_size,
env,
env_in... | [
"asap7772@berkeley.edu"
] | asap7772@berkeley.edu |
ee47403e642fefd6b1e6f6c62477a24a6e0ce22c | dfdb672bbe3b45175806928d7688a5924fc45fee | /Learn Python the Hard Way Exercises/ex41.py | 3abb331053e8c7304b85e45517c62a437d126264 | [] | no_license | mathans1695/Python-Practice | bd567b5210a4d9bcd830607627293d64b4baa909 | 3a8fabf14bc65b8fe973488503f12fac224a44ed | refs/heads/master | 2023-01-01T13:49:05.789809 | 2020-10-26T02:37:05 | 2020-10-26T02:37:05 | 306,300,672 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | import random
from urllib import urlopen
import sys
WORD_URL = "http://learncodethehardway.org/words.txt"
WORDS = []
PHRASES = {
"class %%%(%%%):":
"Make a class named %%% that is-a %%%.",
"class %%%(object):\n\tdef __init__(self, ***)":
"class %%% has-a __init__ that takes self and *** parameters.",
"class ... | [
"mathans1695@gmail.com"
] | mathans1695@gmail.com |
a9af131a9d4b68580fd5afc8d61703d0b57ce1d8 | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/A10_import/import_periodic_ssl_cert.py | 1a4f81061a75db8ac18bba2be452cb33eb364dc8 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 2,409 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class SslCert(A10BaseClass):
"""Class Description::
SSL Cert File(enter bulk when import an archive file).
Class ssl-cert supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
3505d9a921cb2f8e0d01d19c363eb3e875fa5f8c | 1a83ce28cf596558bd0d8280086e27bc48d0a500 | /src/command_modules/azure-cli-iotcentral/setup.py | c771f17dc15992b5221cf74250e4dc4c4ef6371c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | willerLiu/azure-cli | 70d8c5fa4e00c0dd3fb3bc90434d613346a03bd2 | 628ba933b954d41ad42f5c938b0f2cac55f94be2 | refs/heads/master | 2020-04-10T15:08:55.939172 | 2018-11-29T21:32:10 | 2018-12-04T22:09:38 | 161,098,793 | 0 | 0 | NOASSERTION | 2018-12-10T01:18:57 | 2018-12-10T01:18:56 | null | UTF-8 | Python | false | false | 1,988 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------------------------------------... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
30baca899c2b35d673ab60b7bd8c885b3d9cb6e7 | 94dde46196ec93704367d4b3dae3a8ec700e2fd7 | /examples/button.py | c475fae2f499f877cdb74c51fe1181576328600e | [
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause"
] | permissive | saghul/python-asiri | 5200697ddb99471ff7daba415351c23430de9791 | 1060fa6805fe52f348fe1b33ebcfa5814b0fec26 | refs/heads/master | 2021-01-01T18:47:44.947924 | 2013-10-28T22:39:55 | 2013-10-28T22:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py |
from __future__ import print_function
from asiri import GPIO
from time import sleep
BTN = 9
gpio = GPIO(num_gpios=16)
gpio.setup(BTN, GPIO.IN)
try:
prev_input = 0
while True:
input = gpio.input(BTN)
if not prev_input and input:
print("Button pressed!")
prev_input = inpu... | [
"saghul@gmail.com"
] | saghul@gmail.com |
9d43360e38253f6483d86bd55776635339f42e08 | 8707f9244fcb0f34901a9ff79683c4f0fe883d20 | /neo/test/iotest/test_spikeglxio.py | b77ec7accc6cfe3393c66907495c3963ad470306 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | teogale/python-neo | cd9b93d1fdbf99848684fbdedd46ced0dabd5feb | cd4226ddcfbace080c4734f562f706423979f2dc | refs/heads/master | 2021-06-21T20:38:06.781570 | 2021-05-21T16:28:46 | 2021-05-21T16:28:46 | 195,394,638 | 0 | 0 | BSD-3-Clause | 2020-07-20T11:45:16 | 2019-07-05T10:59:36 | Python | UTF-8 | Python | false | false | 388 | py | """
Tests of neo.io.spikeglxio
"""
import unittest
from neo.io import SpikeGLXIO
from neo.test.iotest.common_io_test import BaseTestIO
class TestSpikeGLXIO(BaseTestIO, unittest.TestCase):
ioclass = SpikeGLXIO
entities_to_download = [
'spikeglx'
]
entities_to_test = [
'spikeglx/Noise4... | [
"sam.garcia.die@gmail.com"
] | sam.garcia.die@gmail.com |
155f07aadc216c4e1e5c876307b9a82734fe9ed3 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/reinforcement-learning/DQN_for_TensorFlow/rl/xt/model/dqn/rainbow_network_cnn.py | 9406c8f1e66f4627c29bc2808b78f94f19b43391 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 3,107 | py | """
@Author: Jack Qian
@license : Copyright(C), Huawei
"""
from __future__ import absolute_import, division, print_function
import tensorflow as tf
from xt.model.tf_compat import Dense, Input, Conv2D, \
Model, Adam, Lambda, Flatten, K
from xt.model.dqn.default_config import LR
from xt.model import XTModel
from x... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
7f1bf9f84ba0a732878a0df6d12969923da3f860 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03417/s820557335.py | 781e7a91ed400cdd9fa97625e372b4993251ae0e | [] | 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 | 288 | py | N, M = map(int, input().split())
N, M = min(N,M), max(N,M)
ans = [[1], [2, 0], [3, 0, 9], [2, 0, 6, 4]]
if M <= 4:
print(ans[M-1][N-1])
exit()
if N == 1:
print(M-2)
exit()
if N == 2:
print(0)
exit()
if N == 3:
print(N*M - 6)
exit()
print(4 + (N-4 + M-4)*2 + (N-4)*(M-4)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d9c2578c85a6972b534c9c7bb4f968d53c437283 | c3c31ce9a8822ac0352475934f5b3fbdacac62a1 | /ssseg/cfgs/setr/cfgs_ade20k_vitlargepup.py | f48eba513dac55967b0f6bcdfe89c5ae16221369 | [
"MIT"
] | permissive | guofenggitlearning/sssegmentation | 1e51b5b14bff3b5ad0d469ac98d711adb79cef11 | 7a405b1a4949606deae067223ebd68cceec6b225 | refs/heads/main | 2023-08-28T03:26:39.204259 | 2021-11-03T00:51:30 | 2021-11-03T00:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | '''define the config file for ade20k and ViT-Large'''
import os
from .base_cfg import *
# modify dataset config
DATASET_CFG = DATASET_CFG.copy()
DATASET_CFG.update({
'type': 'ade20k',
'rootdir': os.path.join(os.getcwd(), 'ADE20k'),
})
# modify dataloader config
DATALOADER_CFG = DATALOADER_CFG.copy()
# modify ... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
2bfbc58965d9d248a69f51634025236919cf1d9e | debffca14a39dbeaf6af2f1b73ea530913e2cdad | /astromodels/sources/point_source.py | 49a84aa715727218eee22eced99200b679a5a506 | [
"BSD-3-Clause"
] | permissive | BjoernBiltzinger/astromodels | 6986695abfc4510a62254854fd0977b1e96e192f | d94a3d3bc607def2b5e3cd145c3922e0a00a7b15 | refs/heads/master | 2022-11-03T19:28:16.949036 | 2019-03-12T17:05:59 | 2019-03-12T17:05:59 | 175,420,543 | 0 | 0 | BSD-3-Clause | 2019-03-13T12:53:03 | 2019-03-13T12:53:03 | null | UTF-8 | Python | false | false | 8,896 | py | import collections
import astropy.units as u
import numpy
import scipy.integrate
from astromodels.core.sky_direction import SkyDirection
from astromodels.core.spectral_component import SpectralComponent
from astromodels.core.tree import Node
from astromodels.core.units import get_units
from astromodels.sources.source... | [
"giacomo.vianello@gmail.com"
] | giacomo.vianello@gmail.com |
5e8f48e09af192100501d1ea79b2d6ebdfeb1891 | 8c39fa8241e1ecefab6c693862bee127fd3e1461 | /proyectoferreteria/apps/gestionadmin/admin.py | cc0cf6bf0161c0beb7007b523f67678f91a2881b | [] | no_license | ujcv4273/Ferreteriav-0.0.5 | b5433e727b68e318204386f84416208f99470446 | 9dd16363ce9f4a012a177aa3d5414051b79cd3a2 | refs/heads/master | 2022-11-29T16:50:19.066725 | 2020-08-01T18:16:35 | 2020-08-01T18:16:35 | 284,314,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,642 | py | from django.contrib import admin
from django.db import models
from proyectoferreteria.apps.gestionadmin.models import FormaPago, MetodoPago, Garantia, Marca, Categoria, Proveedor,Cliente, Planilla, Empleado, Producto, Factura, TurnoEmpleado, ComprasDet,ComprasEnc
from django.core.paginator import Paginator
# Register y... | [
"cristian.godoy0000@gmail.com"
] | cristian.godoy0000@gmail.com |
2591de4f548ec359e4c3fca9f0f9399fabf88dfb | 2e157761ea124b5cdbadbad61daded246deaafb2 | /wagtail/contrib/wagtailsearchpromotions/migrations/0001_initial.py | 62809da8def86144e08439d9c142bfec5ecd05d5 | [
"BSD-3-Clause"
] | permissive | wgiddens/wagtail | 043e6b110229cd29d64a22860085355d38f66e03 | 4371368854a99ef754c3332ab10675ba62e614a6 | refs/heads/master | 2021-05-23T03:20:13.455601 | 2015-08-31T19:45:06 | 2015-08-31T19:45:06 | 41,701,494 | 0 | 0 | NOASSERTION | 2020-11-16T13:48:19 | 2015-08-31T21:27:06 | Python | UTF-8 | Python | false | false | 1,750 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0015_add_more_verbose_names'),
('wagtailsearch', '0003_remove_editors_pick'),
]
operations = [
migrat... | [
"karlhobley10@gmail.com"
] | karlhobley10@gmail.com |
a6e7ad120c45a540a1287acfb626fbd4a3de82fb | ab9ab9e30b8c50273d2e01e3a497b8fd1a8e8841 | /Democode/evolution-strategies-starter-master/es_distributed/main.py | 483d22a5b846be797fd5c18a22e9c0406fed474f | [
"MIT"
] | permissive | Asurada2015/Multi-objective-evolution-strategy | 32a88abe584beae24cc96a020ff79659176f1916 | 62f85e9fd23c9f6a3344855614a74e988bf3edd3 | refs/heads/master | 2023-02-03T04:19:28.394586 | 2020-04-14T12:25:06 | 2020-04-14T12:25:06 | 154,918,864 | 3 | 1 | MIT | 2023-02-02T03:23:23 | 2018-10-27T03:03:39 | Jupyter Notebook | UTF-8 | Python | false | false | 2,169 | py | import errno
import json
import logging
import os
import sys
import click
from .dist import RelayClient
from .es import run_master, run_worker, SharedNoiseTable
def mkdir_p(path):
try:
os.makedirs(path)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(path):
... | [
"1786546913@qq.com"
] | 1786546913@qq.com |
ee19405107fff01363a5004a6f245590587e3446 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4424/codes/1674_1101.py | ca6bd59c9146923fe8a25836f1b91360fddcbc3d | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
c = float(input("consumo em kWh: "))
t = input("residencias(r)/industrias(i)/comercios(c): ")
print("Entradas:", c, "kWh e tipo", t)
y = "Dados invalidos"
if ((t.lo... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
10fbdc05794edb4e95044f0031de8333a7f73a81 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_peeped.py | a186557aa21742047c7e1738b7c7afc26028a481 | [
"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 | 216 | py |
#calss header
class _PEEPED():
def __init__(self,):
self.name = "PEEPED"
self.definitions = peep
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['peep']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a68501fe0fffd3341fe23f8561c763687c4ae485 | efc9b70544c0bc108aaec0ed6a2aefdf208fd266 | /393. UTF-8 Validation.py | cbd33de9cd3519f3032cff678b73861abd68bab3 | [] | no_license | fxy1018/Leetcode | 75fad14701703d6a6a36dd52c338ca56c5fa9eff | 604efd2c53c369fb262f42f7f7f31997ea4d029b | refs/heads/master | 2022-12-22T23:42:17.412776 | 2022-12-15T21:27:37 | 2022-12-15T21:27:37 | 78,082,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | '''
'''
class Solution(object):
def validUtf8(self, data):
"""
:type data: List[int]
:rtype: bool
"""
count = 0
for d in data:
if count == 0: #first byte
if bin(d>>5) == "0b110":
count = 1
elif bin(d>>4... | [
"noreply@github.com"
] | fxy1018.noreply@github.com |
e95b9c3d1cd819f037b70f66076236dc02ccf425 | 73346545e69194dc1cfd887314afe600076ff263 | /polling_stations/apps/data_collection/management/commands/import_greenwich.py | 385a8fd726114f0e6f8492cc5e4ce64a3ce77aec | [] | permissive | chris48s/UK-Polling-Stations | c7a91f80c1ea423156ac75d88dfca31ca57473ff | 4742b527dae94f0276d35c80460837be743b7d17 | refs/heads/master | 2021-08-27T18:26:07.155592 | 2017-11-29T15:57:23 | 2017-11-29T15:57:23 | 50,743,117 | 1 | 0 | BSD-3-Clause | 2017-11-29T16:03:45 | 2016-01-30T20:20:50 | Python | UTF-8 | Python | false | false | 406 | py | from data_collection.management.commands import BaseHalaroseCsvImporter
class Command(BaseHalaroseCsvImporter):
council_id = 'E09000011'
addresses_name = 'parl.2017-06-08/Version 1/polling_station_export-2017-05-09 2.csv'
stations_name = 'parl.2017-06-08/Version 1/polling_station_export-2017-05-09 ... | [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
8afa870d5cbd78906a2398e74afc2fcfdc6b3ccb | df264c442075e04bb09d82f9be1d915c070d7e09 | /SAMSUNG/SWEA/PROBLEM/2105_디저트카페_20210419.py | 04f8efd218eb8d69a5537a62f880f1ea920a3d47 | [] | no_license | Koozzi/Algorithms | ff7a73726f18e87cab9406e7b71cd5d1856df183 | 38048ac0774fcab3537bdd64f48cae7d9eb71e6f | refs/heads/master | 2021-07-06T04:59:38.564772 | 2021-05-03T08:49:56 | 2021-05-03T08:49:56 | 231,848,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | def change_direction(X, Y, x, y, d1, d2):
if (X == x + d1 and Y == y - d1) \
or (X == x + d1 + d2 and Y == y - d1 + d2) \
or (X == x + d2 and Y == y + d2):
return True
return False
def solve(x, y, d1, d2):
desert = set([board[x][y]])
move = [[1, -1], [1, 1], [-1, 1], [-... | [
"koozzi666@gmail.com"
] | koozzi666@gmail.com |
58eae06b2d666c5bc0e9960cc336e03c78e232e9 | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /TensorFlow2/Recommendation/DLRM_and_DCNv2/nn/evaluator.py | eeb9354ef38f8574935923ebfc03a08286e22b2e | [
"Apache-2.0"
] | permissive | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 3,299 | py | # Copyright (c) 2021, NVIDIA CORPORATION. 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 applic... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
082ae1287bba556369350aaf57ecbedc6fbd0a87 | f7c72e8adde14499f119708642e7ca1e3e7424f3 | /network_health_service/tests/create_query_tests.py | 523fa50216d13ffb1ad98df0c5b0b9098a793f0e | [
"MIT"
] | permissive | pmaisel/tgnms | 0b5d7ad90821a4e52d11490199ab1253bb31ac59 | 8ab714d29f2f817f08cad928cf54b7bf1faf0aa7 | refs/heads/main | 2023-08-01T10:14:28.527892 | 2021-09-24T21:28:16 | 2021-09-24T21:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,106 | py | #!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.
import json
import unittest
from network_health_service.stats.fetch_stats import get_link_queries, get_node_queries
from network_health_service.stats.metrics import Metrics
class CreateQueryTests(unittest.TestCase):
def setUp(self) -... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ab7269496f8882045c1c28e24afc8d9c5912824f | 75bee875a2d26ed71513f46a2acbb564dd9a1c44 | /app/modules/users/schemas.py | c58686ed7b25645868c0382549201f648b8ca6d9 | [
"MIT"
] | permissive | frol/flask-restplus-server-example | d096aa1f4e3b6024ecb16af3d0769ccc20e7cff8 | 53a3a156cc9df414537860ed677bd0cc98dd2271 | refs/heads/master | 2023-08-28T14:27:34.047855 | 2023-06-21T14:30:54 | 2023-06-21T14:30:54 | 46,421,329 | 1,487 | 412 | MIT | 2023-06-21T14:30:55 | 2015-11-18T13:43:34 | Python | UTF-8 | Python | false | false | 1,179 | py | # encoding: utf-8
# pylint: disable=too-few-public-methods
"""
User schemas
------------
"""
from flask_marshmallow import base_fields
from flask_restplus_patched import Schema, ModelSchema
from .models import User
class BaseUserSchema(ModelSchema):
"""
Base user schema exposes only the most general fields.... | [
"frolvlad@gmail.com"
] | frolvlad@gmail.com |
163380fce342e9d5ef8fe2951cc513046cff926b | 146db0a1ba53d15ab1a5c3dce5349907a49217c3 | /omega_miya/plugins/nbnhhsh/utils.py | 651e9331bf5ab0fa191f726697c602576fcbbf5c | [
"Python-2.0",
"MIT"
] | permissive | hailong-z/nonebot2_miya | 84d233122b2d785bfc230c4bfb29326844700deb | 7d52ef52a0a13c5ac6519199e9146a6e3c80bdce | refs/heads/main | 2023-03-26T14:59:31.107103 | 2021-03-09T17:01:08 | 2021-03-09T17:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | import aiohttp
from omega_miya.utils.Omega_Base import Result
API_URL = 'https://lab.magiconch.com/api/nbnhhsh/guess/'
async def get_guess(guess: str) -> Result:
timeout_count = 0
error_info = ''
while timeout_count < 3:
try:
timeout = aiohttp.ClientTimeout(total=10)
async... | [
"ailitonia@gmail.com"
] | ailitonia@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.