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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4cba5aaf29add8565a672b7eacd28035fad23519 | 543286f4fdefe79bd149ff6e103a2ea5049f2cf4 | /Exercicios&cursos/eXcript/Aula 10 - Gerenciador de leiaute pack.py | 729776a1ddf43603ea188c61d45cdb88de9d361c | [] | no_license | antonioleitebr1968/Estudos-e-Projetos-Python | fdb0d332cc4f12634b75984bf019ecb314193cc6 | 9c9b20f1c6eabb086b60e3ba1b58132552a84ea6 | refs/heads/master | 2022-04-01T20:03:12.906373 | 2020-02-13T16:20:51 | 2020-02-13T16:20:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from tkinter import *
janela = Tk()
lb1 = Label(janela, text='label1', bg='green')
lb2 = Label(janela, text='label2', bg='red')
lb3 = Label(janela, text='label3', bg='yellow')
lb4 = Label(janela, text='label4', bg='blue')
lb2.pack()
lb1.pack()
lb3.pack()
lb4.pack(side=BOTTOM)
janela.geometry('400x300+200+200')
... | [
"progmatheusmorais@gmail.com"
] | progmatheusmorais@gmail.com |
42f3e50b0b2eb2a7ded8a894750027dba4d4896a | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/npm/v4_1/models/upstream_source_info.py | 21e55cba9de401017666da42d7fc8f6db31cd757 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
c599f1033e7359f995f370ee51498cc0dd147973 | d308fffe3db53b034132fb1ea6242a509f966630 | /pirates/leveleditor/worldData/port_royal_interior_mansion.py | 16b263e14a218f8734b4996a10c0aa6f949ece9a | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/pirates | 83caac204965b77a1b9c630426588faa01a13391 | 6ca1e7d571c670b0d976f65e608235707b5737e3 | refs/heads/master | 2020-03-18T20:03:28.687123 | 2018-05-28T18:05:25 | 2018-05-28T18:05:25 | 135,193,362 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.leveleditor.worldData.port_royal_interior_mansion
from pandac.PandaModules import Point3, VBase3
objectStruct = {'Interact Links... | [
"33942724+itsyaboyrocket@users.noreply.github.com"
] | 33942724+itsyaboyrocket@users.noreply.github.com |
ef588dbdd970cdf3978c52e3416432ac5a91bdc6 | c6e22a6901bc40ba92a0470c6323929368727bbb | /src/virtual_tour/serializers.py | 636293e43ed900ce3f0403d8d5f1ce5f2aa622aa | [] | no_license | iamgaddiel/learners_coner | bdc47c7caac9898ca3a8836f1ad972afa9f88cf8 | fb3ea68de8c02d1f1db6177b7c267a743a0b5a32 | refs/heads/main | 2023-08-04T06:12:08.728355 | 2021-09-13T04:24:42 | 2021-09-13T04:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from rest_framework import serializers
from .models import VirtualTour
class VirtualTourSerializer(serializers.ModelSerializer):
class Meta:
model = VirtualTour
fields = '__all__'
| [
"gaddiel@localhost.localdomain"
] | gaddiel@localhost.localdomain |
ce2e26a49d8a3dcfc7b90e49e4999c830e6b0d4f | 0f835a836f1885f8802db10813603862f8aabf7c | /src/todo/urls.py | 778e7ed416a3458d65f6e5c66a824e6dabaf776c | [] | no_license | yordan-marinov/su_dj_basics | 80eecd75630599f4458c36af16366d547d215d00 | 24cbe5b291c495cbb77a650766fd5689ba191451 | refs/heads/main | 2023-06-06T07:25:50.297776 | 2021-06-22T08:21:20 | 2021-06-22T08:21:20 | 370,289,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from django.urls import path
from .views import todo_create, todo_delete, todo_edit, todo_list
urlpatterns = [
path("", todo_list, name="todo_list"),
path("create/", todo_create, name="todo_create"),
path("edit/<int:pk>/", todo_edit, name="todo_edit"),
path("delete/<int:pk>/", todo_delete, name="todo_... | [
"jordanmarinov8@gmail.com"
] | jordanmarinov8@gmail.com |
3500ef3acf09023a8b49b10527ae01d5437a8ccc | 5a1f77b71892745656ec9a47e58a078a49eb787f | /1_Kithgard_Dungeon/052-Kithgard_Gates/kithgard_gates.py | 57be0f04eaee30b7cb49cb7d20dd33a2803f9efa | [
"MIT"
] | permissive | ripssr/Code-Combat | 78776e7e67c033d131e699dfeffb72ca09fd798e | fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef | refs/heads/master | 2020-06-11T20:17:59.817187 | 2019-07-21T09:46:04 | 2019-07-21T09:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # You need the Elemental codex 1+ to cast "Haste"
# You need the Emperor's gloves to cast "Chain Lightning"
hero.cast("haste", hero);
hero.moveDown(0.7)
hero.moveRight(2.5)
| [
"katik.hello@gmail.com"
] | katik.hello@gmail.com |
7851674a43efd44e592eebdb0548527abaec7298 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/interface/ethernet/link_oam_interface/remote_failure/link_fault/__init__.py | e4db3e5baa84ab0f2cd42f54cb3ae5914099cac4 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,033 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
2f515b8a5dbe71e724bfe160a4d7abc563bd68f7 | 3d96cee3f0c986c7195e7677d85e91dc837d8dd4 | /venv/bin/pip3 | 4b76198db216e8fbf6aa3d14a970e17ee8167061 | [] | no_license | dannycrief/full-stack-web-dev-couse | 7faffe1c9e6c39baf03d6ee54f716e4f8b4c8733 | 0b22bc84742d8e78bd6a2e03adfbc44137f3d607 | refs/heads/master | 2023-01-12T09:25:16.378035 | 2021-03-21T16:51:18 | 2021-03-21T16:51:18 | 220,825,261 | 0 | 1 | null | 2023-01-05T12:57:14 | 2019-11-10T17:34:02 | Python | UTF-8 | Python | false | false | 272 | #!/home/skozurak/Projects/full-stack-web-dev-couse/venv/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"step.kozbvb@gmail.com"
] | step.kozbvb@gmail.com | |
60ae92e25652dac7f0639f7d268ef2bde0015f14 | 723a0ff7e88b5c64bc712be8faa7721c40a9be92 | /torch_chemistry/datasets/utils.py | 57cdea4c70245f8240305a7413b23ce0bdc5e732 | [
"MIT"
] | permissive | wengelearning/pytorch_chemistry | b9b3e328dadf7efa9c6304c15dea0cabbfedac50 | 14ca01ab2a30728016ce6c6793f119438a09ade5 | refs/heads/master | 2022-04-05T11:54:32.773305 | 2020-03-01T07:38:22 | 2020-03-01T07:38:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | import os
import shutil
from pathlib import Path
from zipfile import ZipFile
from typing import List
import requests
import torch
import torch.nn.functional as F
from ..utils import to_Path
def check_download_file_size(url: str) -> int:
res = requests.head(url)
size = res.headers['content-length']
retur... | [
"kbu94982@gmail.com"
] | kbu94982@gmail.com |
e8810fc163644bf1273a6347c50f9e787114be94 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/pyr_Tcrop255_pad20_jit15/Sob_k31_s001/pyr_2s/L4/step10_a.py | daedb9d78096064ed214f053553e979ac509716f | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,549 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
4e01761c4fbcb7957337a1f92fd2e922997fc09d | 3ca49c828f75d5d4880dbd4b940f93285e505f26 | /resources/icon_src/plot_ot_bx.py | b61d63391cb87a6827508d0a13d7bd36d4fa0726 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | liangwang0734/Viscid | fc15c71725f3c55eafe7d91822347f00de1ea6d4 | 41e19fee8576c5e3fa9c758c48731bc25e1db1b9 | refs/heads/master | 2021-08-30T11:32:21.157520 | 2017-06-08T22:58:29 | 2017-06-08T22:58:29 | 48,387,722 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import matplotlib.pyplot as plt
import seaborn as sns
import viscid
from viscid.plot import vpyplot as vlt
f = viscid.load_file('./otico_001.3d.xdmf')
mymap = sns.diverging_palette(28, 240, s=95, l=50, as_cmap=True)
figure = plt.figure(figsize=(14, 10))
g = f.get_grid(time=12)
vlt.plot(g['bx']['z=0'], cmap=mymap, st... | [
"kristofor.maynard@gmail.com"
] | kristofor.maynard@gmail.com |
8a6957b4940d94bee65df73706811ee6ed17110d | 4ae6482f032a0bf185598e1ee607021cae881f7c | /word2vec.py | ced07e8595fa11971641f8138c9a67fd5e2f6265 | [] | no_license | stiero/sick-spence | 074ce903faf0e730b33c3f95f96db27206c5831e | ce47740ab4f63c2fe4ae9871bb7c8f1b4ffaa34a | refs/heads/master | 2021-10-11T16:35:21.356768 | 2019-01-28T17:00:39 | 2019-01-28T17:00:39 | 125,160,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 9 16:31:26 2018
@author: henson
"""
import re
import os
os.chdir("/home/henson/Desktop/conditions")
from gensim.models.word2vec import Word2Vec
from nltk.corpus import stopwords
from nltk import RegexpTokenizer
from nltk.stem.lancaster import Lan... | [
"you@example.com"
] | you@example.com |
79faefd38606f26118f15d3b6254830942092324 | c4c5f22b796269062f618038fdf0158ae7769487 | /python/quick_der/main.pyi | 4cb732180c3b0c851ccdf5c3605021b7b4cc11b2 | [
"BSD-2-Clause"
] | permissive | tonytheodore/quick-der | c5ce28e16c4f1e92b57825d3b083258790172c19 | 1becc1d3286a05b78eee3aa436e607c67ffd34a9 | refs/heads/master | 2021-05-07T13:46:17.488790 | 2017-11-03T15:45:26 | 2017-11-03T15:45:26 | 109,690,235 | 0 | 0 | null | 2017-11-06T12:05:57 | 2017-11-06T12:05:57 | null | UTF-8 | Python | false | false | 5,651 | pyi | # Stubs for quick_der.main (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from asn1ate.sema import *
from typing import Any, Optional
class dprint:
enable: bool = ...
def __init__(self, s, *args) -> None: ...
def tosym(name): ...
api_prefix: str
dertag2atomsubclas... | [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
cd85fd7a701f085a896dcd9fec6d6c2a12562e45 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/calliope/display_info.py | 494c7184d5c3c77b64993d9477d0779c6f41a541 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | # Copyright 2016 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 ag... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
7c747fb48d6766c4376bc60b101efbfed54ce545 | 1c43338af57ff781d704ff68a0ea79f908bf94d5 | /python/skyhook/op/all_decorate.py | a952bbbdb0796d3e38ddad7183665c1b2abf7ff6 | [
"MIT"
] | permissive | skyhookml/skyhookml | dcde20626bab09843092e82b3160a80dfaa21061 | 5d2d8d3b80db409d44b4a9e4d0d3c495a116fee1 | refs/heads/master | 2023-06-13T03:51:08.343428 | 2021-07-09T18:00:35 | 2021-07-09T18:00:35 | 320,390,825 | 9 | 3 | MIT | 2021-04-28T17:46:26 | 2020-12-10T21:10:07 | Go | UTF-8 | Python | false | false | 1,166 | py | from skyhook.op.op import Operator
import skyhook.common as lib
import skyhook.io
import requests
class AllDecorateOperator(Operator):
def __init__(self, meta_packet):
super(AllDecorateOperator, self).__init__(meta_packet)
# Function must be set after initialization.
self.f = None
def apply(self, task):
#... | [
"fbastani@perennate.com"
] | fbastani@perennate.com |
c202f4e4b5ee90002f77d6cb85850f520b861325 | 97da505ec0524d7b214764d198ed9b82e79300ed | /pyiem/ncei/ds3505.py | 0d6b22815fecf47180c38187fa78795c87eda84d | [
"MIT"
] | permissive | morganetanu/pyIEM | c035a1706cccff0afed209f14760f2668259667f | 2a38d1de77d056161408e804b5c246b7e6b38056 | refs/heads/master | 2021-08-20T07:10:40.071377 | 2017-11-28T13:41:29 | 2017-11-28T13:41:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,255 | py | """Implementation of the NCEI DS3505 format
ftp://ftp.ncdc.noaa.gov/pub/data/noaa/ish-format-document.pdf
"""
from __future__ import print_function
import re
import warnings
import datetime
import json
import pytz
from pyiem.datatypes import speed, distance, pressure
from metar.Metar import Metar
from metar.Meta... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
c1287a336f7f5e7e784c31b5a260209c471f871f | 846a7668ac964632bdb6db639ab381be11c13b77 | /android/tools/test/connectivity/acts/tests/google/wifi/WifiScannerBssidTest.py | e91c449924d208fc24a570a69d77cfff1e06e0dc | [] | no_license | BPI-SINOVOIP/BPI-A64-Android8 | f2900965e96fd6f2a28ced68af668a858b15ebe1 | 744c72c133b9bf5d2e9efe0ab33e01e6e51d5743 | refs/heads/master | 2023-05-21T08:02:23.364495 | 2020-07-15T11:27:51 | 2020-07-15T11:27:51 | 143,945,191 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,870 | py | #!/usr/bin/env python3.4
#
# Copyright 2016 - The Android Open Source Project
#
# 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
#
# ... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
058ef9a85453f91db61408ad2be56cfd3f100d38 | 3534f9bf3b7e3f397bc5e80736fc50561dec95d1 | /activitystreams_test.py | ef2c511de267d5818a0e7e425a3f69a170ed3eb0 | [
"LicenseRef-scancode-public-domain"
] | permissive | rhiaro/activitystreams-unofficial | c6ece0e341b8b7e7addeb276e323a92cadde707c | cfaf4f82c44ceab857d0a4f52e0247ff78c73b72 | refs/heads/master | 2021-01-16T20:05:58.942272 | 2015-03-14T05:48:08 | 2015-03-14T05:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,739 | py | """Unit tests for activitystreams.py.
"""
__author__ = ['Ryan Barrett <activitystreams@ryanb.org>']
import copy
import json
import activitystreams
import facebook_test
import instagram_test
from oauth_dropins.webutil import testutil
import source
import twitter_test
class FakeSource(source.Source):
def __init__(s... | [
"git@ryanb.org"
] | git@ryanb.org |
658d0a11036050ce40cb2311da2ac7539607f050 | 0502750293383c6dae2aaf4013717d9c83f52c62 | /exercism/python/archive/prime-factors/prime_factors.py | 4dca4fefddd4177d80ad4fc02d69cc52c0c0c9cb | [] | no_license | sebito91/challenges | fcfb680e7fc1abfa9fea9cd5f108c42795da4679 | b4f2d3b7f8b7c78f02b67d67d4bcb7fad2b7e284 | refs/heads/master | 2023-07-08T15:43:42.850679 | 2023-06-26T19:38:51 | 2023-06-26T19:38:51 | 117,160,720 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | """ Module to return the set of prime factors for a number """
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import math
def prime_factors(number):
""" return the list of prime factors of the given number """
if number == 1:
return []
thelist = []
while number % 2 == 0:
... | [
"sebito91@gmail.com"
] | sebito91@gmail.com |
8eb96542eb2443f15fcdbd700049efb6b975ab53 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /airflow/api_connexion/schemas/dag_warning_schema.py | 211f251e7d26e6255de19ef603116ddec9d3bef6 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 1,735 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
2c0ff3e8c8731cd7fa9acc4cbadcc1f28978387e | 45dca4f728d6d7ce2f8ba4d711aaa9983871740a | /tensorpack/dataflow/imgaug/meta.py | 1093bf047a28b33b5a1b851bc7caf01e145c3870 | [
"Apache-2.0"
] | permissive | mtoto/tensorpack | 5de9f0d87f34f70527cdea1ddeb4006f8a503ca7 | 552f8b2690f369cb30dc29e07535dda7aa68f5b1 | refs/heads/master | 2020-03-15T08:03:26.843432 | 2018-05-02T22:04:49 | 2018-05-02T22:04:49 | 132,042,806 | 0 | 0 | Apache-2.0 | 2018-05-03T19:52:39 | 2018-05-03T19:52:38 | null | UTF-8 | Python | false | false | 4,607 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: meta.py
from .base import ImageAugmentor
__all__ = ['RandomChooseAug', 'MapImage', 'Identity', 'RandomApplyAug',
'RandomOrderAug']
class Identity(ImageAugmentor):
""" A no-op augmentor """
def _augment(self, img, _):
return img
clas... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
9e6e98bcaf65a333c3415b95e9d1b93b57bb6ab8 | 60e4baae4d6b323b3d3b656df3a7b0ea3ca40ef2 | /project/apps/community/migrations/0006_comment_created_date.py | 72662e4eb6a332438ac5fac1c3c7c801c8f017f5 | [] | no_license | Burzhun/Big-django-project | a03a61a15ee75f49324ad7ea51372b6b013d1650 | 1a71f974b7b5399a45862711b5f858c0d4af50d2 | refs/heads/master | 2020-04-11T00:16:06.211039 | 2018-12-11T19:13:38 | 2018-12-11T19:13:38 | 161,381,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-04-04 19:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('community', '0005_comment_expert_answer'),
]
operatio... | [
"burjunov@yandex.ru"
] | burjunov@yandex.ru |
ba5c486c32a7be995fe3c55dd4486130ed1a3c95 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2842/60580/316589.py | 47764e1e08d51f730408ee0f95aa554ff5fc9f29 | [] | 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 | 320 | py | n = int(input())
array = [0] * n
for i in range(n):
temp = int(input())
if temp == -1:
array[i] = -1
else:
array[i] = temp - 1
count = []
for i in range(n):
j = i
temp = 0
while array[j] != -1:
temp = temp + 1
j = array[j]
count.append(temp)
print(max(count))
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
01fab021b8daed78539e04be4929281ae7d2f142 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert-text-classification_for_PyTorch/transformers/examples/research_projects/wav2vec2/run_pretrain.py | 248f32443f048806366100153b40a928ba52bf5d | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 15,660 | py | #!/usr/bin/env python3
import logging
import sys
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Union
import torch
from datasets import DatasetDict, load_dataset
from packaging import version
from torch import nn
import librosa
from transformers import (
HfArgumentParser,
... | [
"dongwenbo6@huawei.com"
] | dongwenbo6@huawei.com |
076fd4d7d5a1e94588a1ea2e3116e2703caf79b6 | 76133934b1dd287273a9bfa0c801d10d08a21b21 | /test/functional/p2p-segwit.py | d8e6705f46da4080475fea8cbda29924f01beb88 | [
"MIT"
] | permissive | kenfmcoin/kenfmcoin | d8783b34fcb3ae01067e8d1b33e3a73e3b82b1f9 | 1fa48487593233f2066757dc54f48b2349e2d9db | refs/heads/master | 2020-03-10T17:53:31.569229 | 2018-04-14T12:28:55 | 2018-04-14T12:28:55 | 129,511,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90,130 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The KenFMcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test segwit transactions and blocks on P2P network."""
from test_framework.mininode import *
from test_fr... | [
"37983255+spineinhalb@users.noreply.github.com"
] | 37983255+spineinhalb@users.noreply.github.com |
238ccfd4362df93c4e34f8f29a13d1dee0422ea8 | 8c2de4da068ba3ed3ce1adf0a113877385b7783c | /hyperion/diarization/__init__.py | 494ef35caac655fc51985be54a762d30647364a0 | [
"Apache-2.0"
] | permissive | hyperion-ml/hyperion | a024c718c4552ba3a03aae2c2ca1b8674eaebc76 | c4c9eee0acab1ba572843373245da12d00dfffaa | refs/heads/master | 2023-08-28T22:28:37.624139 | 2022-03-25T16:28:08 | 2022-03-25T16:28:08 | 175,275,679 | 55 | 20 | Apache-2.0 | 2023-09-13T15:35:46 | 2019-03-12T18:40:19 | Python | UTF-8 | Python | false | false | 173 | py | """
Copyright 2018 Johns Hopkins University (Author: Jesus Villalba)
Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""
from .diar_ahc_plda import DiarAHCPLDA
| [
"jesus.antonio.villalba@gmail.com"
] | jesus.antonio.villalba@gmail.com |
3f7929b0a938ce5579e05271c8c032a63b81cf4a | 0b636a0a7bfcb534a3f00cf6c38b54ad8d050639 | /AtCoder/ABC144D.py | ce77a9178f2c9434acc53d00097e590d80101e9a | [] | no_license | RRFHOUDEN/competitive-programming | 23be02f55ab67f7d03ccec32f291e136770fc113 | 582ed5c5d5e9797fc952ee1d569ef72f8bf8ef48 | refs/heads/master | 2022-10-19T21:53:26.952049 | 2020-06-13T11:44:07 | 2020-06-13T11:44:07 | 258,940,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import fractions
a, b, x = map(int, input().split())
PI = 3.1415926535897932384626
if x >= a * a * b / 2:
ans = fractions.atan(2 * (a * a * b - x) / (a * a * a))
ans = fractions.degrees(ans)
else:
ans = fractions.atan(2 * x / (a * b * b))
ans = fractions.degrees(ans)
ans = 90 - ans
print(a... | [
"keisuke.toyodano@gmail.com"
] | keisuke.toyodano@gmail.com |
48c589047491fc3c841360dce7a399720757723f | ace15f9c55e5c5ba6fee8cb8c660bd4832a5a632 | /Tests.py | 9163da2526a4affad9387dae6d154ca6aa385e2c | [] | no_license | CodeProgress/Minesweeper | dcdfc82a73821c0c1f6c70c2302ec78621727b7f | ef67892e880de542547fdeea462bda2789eca296 | refs/heads/master | 2021-01-18T23:16:25.588515 | 2021-01-10T21:06:52 | 2021-01-10T21:06:52 | 87,101,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,659 | py | import unittest
import Minesweeper
class Tests(unittest.TestCase):
def setUp(self):
self.size_of_board = 12
self.num_mines = 20
self.Game = Minesweeper.Game((self.size_of_board, self.num_mines))
def tearDown(self):
self.Game = None
def reset_board_with_new_mine_locations(... | [
"codeprogress1@gmail.com"
] | codeprogress1@gmail.com |
5fcbf86c132748a1b7bc70226d49500fc35ae18b | 08d40b7ebae801667de433ed0b43d9c8cb3e4915 | /banana/bids.py | 253924c898d2b824773ceb0b0e6f4c452e518d76 | [
"Apache-2.0"
] | permissive | amrka/banana | 79e64f2ca89d4769360aec67edc21e51c8d41195 | 4776df93059c93932ac02171bb004200d8e3aa1a | refs/heads/master | 2020-04-11T08:17:10.803452 | 2018-12-12T02:58:03 | 2018-12-12T02:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,158 | py | from arcana.exceptions import (
ArcanaSelectorMissingMatchError, ArcanaUsageError)
from banana.exceptions import BananaUsageError
from arcana.data.selector import FilesetSelector
from arcana.data.item import Fileset
from arcana.data.file_format import FileFormat
from arcana.utils import split_extension
import os
im... | [
"tom.g.close@gmail.com"
] | tom.g.close@gmail.com |
da631c41d70c1d7f33b03220272f3b4868cae56e | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part009169.py | 278cb18a9c17ec793e71dc502195fe855036b2a7 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
62ec0f10af3cd0254445d9c25cfa5e46cd0b104b | 6b03517ab54bc5dfd7464bd680e4d6a0df054dbc | /src/bot/settings.py | 446d8f863c3cd1dffd0a5cd9f4cde9d4da4bc8d2 | [] | no_license | mike0sv/telegram-bot-django-template-project | 88eba6ef485dc603161cf6110f32149509eacc2b | 43fd7cfa1d54887274a6ee0e6f56c4d9cdd1cb10 | refs/heads/master | 2021-06-24T10:05:58.092449 | 2019-09-26T15:52:55 | 2019-09-26T15:52:55 | 168,697,668 | 0 | 1 | null | 2021-06-10T21:10:30 | 2019-02-01T12:57:41 | Python | UTF-8 | Python | false | false | 4,436 | py | """
Django settings for bot project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bui... | [
"mike0sv@gmail.com"
] | mike0sv@gmail.com |
7e1835c0f76b6c713b30174e560aeb5c4b77e5bd | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/compute/networks/delete.py | 39d2c060fc886ce025072ddf7996fe34279c33f2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,389 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
84f22aec0e44660430ea57649264e25e7d9cd0ac | 67325192c1e528a39d457f11e61b480d68826708 | /mods/mcpython/Item/stone_brick.py | d89a7eefa7b49fc05f922501e114e4cddf3480be | [
"MIT"
] | permissive | vashistaarav1611/mcpython-a-minecraft-clone-in-python | 5851b377b54fd2b28c106112c7b18f397b71ab50 | c16cd66f319efdeec4130e1a43f5a857caf1ea13 | refs/heads/master | 2023-02-01T22:48:51.787106 | 2020-12-21T15:02:25 | 2020-12-21T15:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from .Item import *
class StoneBrick(Item):
def getName(self):
return "minecraft:stone_brick"
def getTexturFile(self):
return "./assets/textures/items/stonebrick.png"
handler.register(StoneBrick)
| [
"baulukas1301@googlemail.com"
] | baulukas1301@googlemail.com |
2a47b827129883aed64529d397c3c7dfc99df3af | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2876/61020/297101.py | 9989eb94aabc4644e48460e350427804c5b184bd | [] | 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 | 1,201 | py | import itertools
import copy
def indexes_of(a_list_, ele):
result = []
for j in range(len(a_list_)):
if a_list_[j] == ele:
result.append(j)
return result
def is_done(a_list):
if len(a_list) <= 2:
return True
if len(a_list) == 3:
if a_list != ['1', '0', '1']:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
10e2468f2d86c9659123463bdfb409ef99344a45 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2812/60651/233659.py | e0225c2f2d256ddec8d6adca5ebbca99843180af | [] | 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 | 281 | py | inlist=input().split()
position=int(inlist[0])
n=int(inlist[1])
molist=[]
for i in range(n):
innum=int(input())
mo=innum%position
if mo not in molist:
molist.append(mo)
else:
print(i+1)
break
if(len(molist)==n):
print(-1)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
07d064421aac823d34841bf839142fc4565a719a | 252a65fc43c2484fb78ac60e7694ff7ce43068cf | /python_way.py | f74a53eaa0b63745f744b7434d94cb9c2806e7a0 | [] | no_license | fandrefh/curso-python-django | 558f26f16576147e4a89506c709466354081167c | 8f74eb3d4d3dfda98b1493bce9dba479c689fe08 | refs/heads/master | 2020-04-28T22:29:41.769622 | 2015-07-25T21:12:53 | 2015-07-25T21:12:53 | 38,125,699 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | with open('numeros.txt', 'r') as f:
print(f.read())
| [
"fandrefh@gmail.com"
] | fandrefh@gmail.com |
ad71c973ebccb1a08a32fdb6c07b5344bd636377 | 5ada50387ed5998d292011031b5f3739ac20414b | /find_bridges/python/find_bridges_1.py | 90648ab138b60265117445e2e51bc4b590e7fc32 | [] | no_license | bigWaitForItOh/Graph-Algorithms | 84484230588d3d81584d4d3feb6c231ea77e84b0 | 011163856d60be89c602044c705c835af47b3b95 | refs/heads/master | 2021-01-17T10:21:43.900771 | 2016-05-22T19:01:38 | 2016-05-22T19:01:38 | 44,433,628 | 7 | 2 | null | 2016-05-22T19:01:38 | 2015-10-17T10:54:27 | Python | UTF-8 | Python | false | false | 1,454 | py | ##################################################################################################################################
#Program to find Bridges in a simple, unweighted, undirected graph.
#Time Complexity: O (E*(V + E))
#E = number of edges, V = number of Nodes
#For each edge in the graph, it removes the edg... | [
"duaraghav8@gmail.com"
] | duaraghav8@gmail.com |
6053f2bbd3c07939d3ae090def23183a8179fae1 | f37c8a91ba8f18db083cf4dcb7d74cee6b84e444 | /pynion/filesystem/_filetypes/basefile.py | 51482cc137768351b0c4b566255392fd7a571a68 | [
"MIT"
] | permissive | jaumebonet/pynion | 6818d764cd1dbb9cbb53d665837adab828e8eac7 | 4052aee023df7206c2e56a28c361d4a5a445a6d4 | refs/heads/master | 2021-01-10T08:56:24.968686 | 2016-02-16T18:43:31 | 2016-02-16T18:43:31 | 50,191,510 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,770 | py | import os
import json
import pathlib
from ... import Manager
from ...metaclass import Multiton
from ...errors.fe import FileOpenError as FOE
from ...errors.fe import FileWrongRequestedActionError as FWR
m = Manager()
class BaseFile(object):
"""
The **BaseFile** :py:class:`pynion.Mul... | [
"jaume.bonet@gmail.com"
] | jaume.bonet@gmail.com |
c03060aef8d7988b9b7fed6a37ca78c20e19f07c | 0e5658deaa630a603a7134847518408c09e3a6d0 | /vendor/riffyn-sdk/test/test_connections_body.py | ed2ddaf90178c82802ccc979934e76aa1efa8f67 | [] | no_license | jace-ys/lab-automation | cb0d0d2b88ec64e235cffca8bbf556b22c55ab1e | 27be3a942b111404844f29aa9a0dd957b7fde459 | refs/heads/master | 2023-06-01T20:30:55.557975 | 2021-06-16T07:46:20 | 2021-06-16T08:15:38 | 297,329,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,639 | py | # coding: utf-8
"""
Riffyn Nexus REST API V1
## Vocabulary Before you begin, please familiarize yourself with our [Glossary of Terms](https://help.riffyn.com/hc/en-us/articles/360045503694). ## Getting Started If you'd like to play around with the API, there are several free GUI tools that will allow you to s... | [
"jaceys.tan@gmail.com"
] | jaceys.tan@gmail.com |
aca5fbe139d058a03bd335abccdd53ee66eaa77f | b66eb4f3253ba20aa6d4777f3df5c3e787fd79bc | /devil/devil/android/device_utils.py | 8685017197e16107d8ab73657146f82f1b34b6cf | [
"BSD-3-Clause"
] | permissive | ezart/catapult | 26aa11172a7f8c34a4fcd8e51541ac394f8c5fb4 | d3a10a0399c14a92d5ffb737c303a03fbfccb98e | refs/heads/master | 2020-12-05T02:00:03.056415 | 2020-01-03T22:40:44 | 2020-01-03T23:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132,962 | py | # Copyright 2014 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.
"""Provides a variety of device interactions based on adb.
Eventually, this will be based on adb_wrapper.
"""
# pylint: disable=unused-argument
import cale... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
a13eef2c9f8d1c682afb5937f3c0ee35111df469 | 543286f4fdefe79bd149ff6e103a2ea5049f2cf4 | /Exercicios&cursos/Curso_em_video(exercicios)/ex069.py | 854d134399c74f92c2fa1147ab4f12df2330b19b | [] | no_license | antonioleitebr1968/Estudos-e-Projetos-Python | fdb0d332cc4f12634b75984bf019ecb314193cc6 | 9c9b20f1c6eabb086b60e3ba1b58132552a84ea6 | refs/heads/master | 2022-04-01T20:03:12.906373 | 2020-02-13T16:20:51 | 2020-02-13T16:20:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | faixa = '-=' * 30
faixa2 = '-' * 60
titulo = 'ANALISE DE DADOS'
mulhermenor20 = homens = maior18 = 0
print(f'{faixa}')
print(f'{titulo:^60}')
print(f'{faixa}')
while True:
idade = int(input('Idade: '))
if idade > 18:
maior18 += 1
sexo = 'X'
while sexo not in 'FM':
sexo = str(input('Sexo:... | [
"progmatheusmorais@gmail.com"
] | progmatheusmorais@gmail.com |
0971ac262da6ca6e551f02234105af8c202c022b | fa0ae8d2e5ecf78df4547f0a106550724f59879a | /Numpy/day01/DS/code/day01/shape.py | 725f0c91dba7df05a2d0f848223a328dee0cdc5e | [] | no_license | Polaris-d/note | 71f8297bc88ceb44025e37eb63c25c5069b7d746 | 6f1a9d71e02fb35d50957f2cf6098f8aca656da9 | refs/heads/master | 2020-03-22T17:51:49.118575 | 2018-09-06T03:36:00 | 2018-09-06T03:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import numpy as np
a = np.arange(1, 3)
print(a, a.shape, sep='\n')
b = np.array([[1, 2, 3],
[4, 5, 6]])
print(b, b.shape, sep='\n')
c = np.array([[np.arange(1, 5),
np.arange(5, 9),
np.arange(9, 13)],
... | [
"610079251@qq.com"
] | 610079251@qq.com |
3aba794c0288ded329f17467797fdeea487a623c | 0a7c9373185d387b025acc4fe3b4efe1e58c183e | /src/experiment1_use_opencv/py/keras_training.py | 1731faedb6b2d62ab47dfda3e5b54b76e690e2cc | [
"MIT"
] | permissive | yingshaoxo/tensorflowjs-posenet-research | a1acc4f1d6876932ad8b6742b2428457bebb9d46 | 91627c52822adb6adfd76a8c4cca34384ec6f077 | refs/heads/master | 2020-03-27T21:19:26.980730 | 2018-09-03T01:31:20 | 2018-09-03T01:31:20 | 147,135,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import os
from auto_everything.base import IO
io = IO()
import json
from pprint import pprint
import numpy as np
files = os.listdir("../data")
files = [file for file in files if '.json' in file]
global x, y
for index, file in enumerate(files):
# get x
xx = json.loads(io.read("../data/{name}".format(name=... | [
"yingshaoxo@gmail.com"
] | yingshaoxo@gmail.com |
54ffa7b9ce50ace8890d47976a16236c01bc54da | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4491/codes/1573_2897.py | 53be2056601ce33622953ff40274a3c112279c47 | [] | 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 | 188 | py | # Use este codigo como ponto de partida
# Leitura de valores de entrada e conversao para inteiro
num = int(input("Digite o numero: "))
# Impressao do dobro do numero
f = num * 2
print(f) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
8e4240bce53538f22730417db80c199e0a496034 | 08428ba80f90f73bbce19e5bd0f423a1b4d025d7 | /src/registration_manager/panel.py | 5a00ffb7ad287770870a2bd2e23168d8114c7213 | [] | no_license | marcoverl/openstack-security-integrations | 0d3afe093b361c548b65be9e405e10318d51c7cd | 58c560885b007cf25444e552de17c0d6a5a0e716 | refs/heads/master | 2021-01-16T21:18:56.071490 | 2014-06-17T07:56:48 | 2014-06-17T07:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py |
from django.utils.translation import ugettext_lazy as _
import horizon
from openstack_dashboard.dashboards.admin import dashboard
class RegisterManager(horizon.Panel):
name = _("Registrations")
slug = 'registration_manager'
dashboard.Admin.register(RegisterManager)
| [
"paolo.andreetto@pd.infn.it"
] | paolo.andreetto@pd.infn.it |
74a42dd8995db8965a1cd052d8636c517784548c | ebbe2bf39e5146c0ab95d07e03c6cf65799651a3 | /readingtrackproject/urls.py | 2a131b7666cde880abb5b15e7040ef5a98edbe21 | [] | no_license | TareqMonwer/dpi-python-django-workshop | 43379b114807b236a79b06cce5c8c6356e926bfe | 67b2ea31f01f8e9781b9d2daf2b2bd9eacc15994 | refs/heads/master | 2023-07-30T19:37:16.594801 | 2021-06-16T18:39:43 | 2021-06-16T18:39:43 | 279,134,678 | 1 | 0 | null | 2021-09-22T19:28:15 | 2020-07-12T19:33:54 | JavaScript | UTF-8 | Python | false | false | 817 | py | """readingtrackproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"tareqmonwer137@gmail.com"
] | tareqmonwer137@gmail.com |
87484cd5541d4353e73c169808da3e10751ad6b6 | 139715a923c8c82b172803d5bdc1b1bca46fbdf3 | /leetcode/edit_distance.py | 93d846c3c6b853be90ff7d4600bfe1c8b780533a | [] | no_license | haoccheng/pegasus | ab32dcc4265ed901e73790d8952aa3d72bdf72e7 | 76cbac7ffbea738c917e96655e206f8ecb705167 | refs/heads/master | 2021-01-10T11:33:23.038288 | 2016-03-18T04:17:28 | 2016-03-18T04:17:28 | 46,103,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # edit distance.
import sys
def edit_distance(word1, word2):
if len(word1) == 0 or len(word2) == 0:
return max(len(word1), len(word2))
scores = []
for i in range(len(word1)+1):
row = [0] * (len(word2)+1)
scores.append(row)
for i in range(len(word1)+1):
scores[i][0] = i
for j in range(len(word... | [
"haoc.cheng@gmail.com"
] | haoc.cheng@gmail.com |
82396827ebf5c7d3fd9a5a7608b6a4bfabebaa49 | b76d2b037c2af38edfeb718deae22697444ee121 | /proto-chain/clientX.py | 088c20d16f02d7dd5c02678f617c8019405a3791 | [] | no_license | hyo07/proto-chain | e8aa1a5d549310da79e9b28c55683a9361c48fe5 | 4fd3e91d6f9d4912634759a908f5a2bf0c1f4d47 | refs/heads/master | 2020-06-06T07:36:27.302334 | 2019-07-01T07:07:46 | 2019-07-01T07:07:46 | 192,679,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | import signal
from time import sleep
import json
import sys
from core.client_core import ClientCore
from p2p.message_manager import MSG_NEW_TRANSACTION
args = sys.argv
my_p2p_client = None
def signal_handler(signal, frame):
shutdown_client()
def shutdown_client():
global my_p2p_client
my_p2p_client.s... | [
"yutaka727kato@gmail.com"
] | yutaka727kato@gmail.com |
909cfda3e71c9d16ac86392b52fa53e59d878ebc | f4df3ec2649593deaa645d5a8698e6c5ef527d5e | /back/wsgi/__init__.py | a592f736613bd2df1273c470136f7b8a03ba97be | [] | no_license | Spencatro/spyfall | 8ebcfea87d11c0a764f738bb18ca84998206008d | 848e5494ecc4c9c85c591be04c2b06aa2121a183 | refs/heads/master | 2021-05-29T02:44:29.191589 | 2015-01-01T00:38:56 | 2015-01-01T00:38:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,815 | py | import json
import random
from flask import Flask, jsonify, request, redirect, url_for
from flask import render_template, abort
import urllib
from flask.ext.pymongo import PyMongo
class SpyfallApp(Flask):
def __init__(self, arg):
super(SpyfallApp, self).__init__(arg)
self.route("/")(self.index)
... | [
"hawkins.spencer@gmail.com"
] | hawkins.spencer@gmail.com |
6cd1198a4f82961a4c7a78dfcd5be9ed8c45de47 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_5366.py | f754dea2bb211c5338c9f0d91f52f31b943a1deb | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # multiple d-bus session bus objects in python
bus1 = dbus.bus.BusConnection("tcp:host=192.168.0.1,port=1234")
bus2 = dbus.bus.BusConnection("tcp:host=192.168.0.2,port=1234")
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
ccad96c6a0e3a3644cb0519285c2ccddd9e3ad2b | 7701773efa258510951bc7d45325b4cca26b3a7d | /kivy_explore/hellow.py | cceaf36129a48ed0edcff3422d8396b5f66fa9b8 | [] | no_license | Archanciel/explore | c170b2c8b5eed0c1220d5e7c2ac326228f6b2485 | 0576369ded0e54ce7ff9596ec4df076e69067e0c | refs/heads/master | 2022-06-17T19:15:03.647074 | 2022-06-01T20:07:04 | 2022-06-01T20:07:04 | 105,314,051 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | import kivy
kivy.require('1.0.7')
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
class MyHelloWGUI(BoxLayout):
def sayHello(self):
print('Hello !')
def sayBye(self):
print('Bye !')
class HelloWApp(App):
pass
if __name__ == '__main__':
HelloWApp().run() | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
55ce960f1c7ccea191a699610a7f6539b4617d3e | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/3-OO-Python/13-dunder-methods_20200417032242.py | d9f6c382c9a09c6d06baeaffae52e92e3eecca08 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | class Toy():
def __init__ (self, color, age):
self.color = color
self.age = age
def __str__(self):
action_figure = Toy ('red', 10)
print(action_figure.__str__())
# print(str(action_figure))
| [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
c37f9cb8b1c274e45069ac3ff3d0dcde11eef52c | f337bc5f179b25969ba73e7680ffb0a0616e3b97 | /python/BOJ/2XXX/2121.py | c87cd111128ccd88a8374937493e42bf22929655 | [] | no_license | raiders032/PS | 31771c5496a70f4730402698f743bbdc501e49a3 | 08e1384655975b868e80521167ec876b96fa01c8 | refs/heads/master | 2023-06-08T10:21:00.230154 | 2023-06-04T01:38:08 | 2023-06-04T01:38:08 | 349,925,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | """
https://www.acmicpc.net/problem/2121
2121.넷이 놀기
실버3
풀이1.1792ms
"""
import sys
input = sys.stdin.readline
N = int(input())
A, B = map(int, input().split())
points = set()
sheep_count = 0
for _ in range(N):
x, y = map(int, input().split())
points.add((x, y))
dx = [A, A, 0]
dy = [0, B, B]
for x, y in point... | [
"nameks@naver.com"
] | nameks@naver.com |
90f8bc3f0964f54d0e651907e690a7bf85c005a1 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/sme/migrations/0026_smesummary.py | cdaad0519ec3f2a3ad05aedf28f7880fe64b8bc6 | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 1,208 | py | # Generated by Django 2.0.5 on 2018-11-18 19:28
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sme', '0025_sme_material'),
]
operations = [
migrations.CreateM... | [
"mani@myhost.local"
] | mani@myhost.local |
8cbbcd0822d14f3434b201030b47195413492bdd | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/NETLINK-SPECIFIC-MIB.py | b7216c9e8be65f794d2fd590978ec324be96be8e | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 403,019 | py | #
# PySNMP MIB module NETLINK-SPECIFIC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NETLINK-SPECIFIC-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:19:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
a48bc369c0c167b51a2a6cd4319c5a7a18b0853b | 80301f1cffc5afce13256e2ecab6323c5df00194 | /en.3rd/py/T0311.py | a21106c22abe02dc3656c6ef6f6d66de672445ca | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 12,704 | py | from ED63RDScenarioHelper import *
def main():
SetCodePage("ms932")
# 洛连特
CreateScenaFile(
FileName = 'T0311 ._SN',
MapName = 'Rolent',
Location = 'T0311.x',
MapIndex = 1,
MapDefaultBGM = "ed60084",
Flags... | [
"ZJ.Yang@qq.com"
] | ZJ.Yang@qq.com |
0cca402c23bbae04f908bfa3169dc41f789604ba | bcb877f449d74a1b30ab1e4b1b04c5091ad48c20 | /2020/day23.py | 65bc5c70c4f3c9dabb591c2ce7a23d15ef8cb56f | [
"MIT"
] | permissive | dimkarakostas/advent-of-code | c8366b9914e942cc4b4ec451713fae296314296a | 9c10ab540dc00b6356e25ac28351a3cefbe98300 | refs/heads/master | 2022-12-10T08:46:35.130563 | 2022-12-08T11:14:48 | 2022-12-08T11:14:48 | 160,544,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | from collections import deque
problem_input = '463528179'
inp = deque([int(i) for i in problem_input])
curr = inp[0]
for move in range(100):
picked = []
for _ in range(3):
picked.append(inp[(inp.index(curr) + 1) % len(inp)])
inp.remove(picked[-1])
dest = curr - 1
while dest not in in... | [
"dimit.karakostas@gmail.com"
] | dimit.karakostas@gmail.com |
a90f9ca2409ed2a986641dc81ca62b4b7043b79d | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/sphinx/util/nodes.py | 40e49021c00292298f6c0fed6211e82b2d78ffca | [
"LicenseRef-scancode-other-permissive",
"BSD-3-Clause"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:5cbc9876159b9a3355e26db5ad2e756f478d71524439897687e9546b84674d14
size 22333
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
d9078b9975bba2f2a10fc34ce38bdc837fae2c0b | 0b134572e3ac3903ebb44df6d4138cbab9d3327c | /app/tests/cases_tests/test_widget.py | 59f149277f7d70ad19567ee2ac62dcb65f700d75 | [
"Apache-2.0"
] | permissive | comic/grand-challenge.org | 660de3bafaf8f4560317f1dfd9ae9585ec272896 | dac25f93b395974b32ba2a8a5f9e19b84b49e09d | refs/heads/main | 2023-09-01T15:57:14.790244 | 2023-08-31T14:23:04 | 2023-08-31T14:23:04 | 4,557,968 | 135 | 53 | Apache-2.0 | 2023-09-14T13:41:03 | 2012-06-05T09:26:39 | Python | UTF-8 | Python | false | false | 5,179 | py | import pytest
from django.core.exceptions import ValidationError
from guardian.shortcuts import assign_perm
from grandchallenge.cases.widgets import FlexibleImageField, WidgetChoices
from grandchallenge.components.models import ComponentInterface
from grandchallenge.core.guardian import get_objects_for_user
fro... | [
"noreply@github.com"
] | comic.noreply@github.com |
7ffa8e50447a97f8cbf4119dc67d8bb4a3c4aa2a | 82507189fa8aa54eec7151f9a246859052b5b30e | /dj_ajax_todo/urls.py | 8a79d2f91f6bdb27bab536426e9837e965d2f1e0 | [] | no_license | nouhben/django-ajax-todo | 96a02f21f53efcc1f8a9d32fcee3c500bcb89e74 | 00cc03db7ed12cee14b91618714b5c78429da77c | refs/heads/master | 2023-08-17T07:45:34.146971 | 2021-03-19T15:07:27 | 2021-03-19T15:07:27 | 266,007,953 | 0 | 0 | null | 2021-09-22T19:04:21 | 2020-05-22T03:20:14 | Python | UTF-8 | Python | false | false | 201 | py | from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('',include('todo.urls')),
path('todos/',include('todo.urls')),
path('admin/', admin.site.urls),
]
| [
"benkadi.nouh@icloud.com"
] | benkadi.nouh@icloud.com |
418630fcf5668a3eb772b0b802c176aaa1163c3f | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/sync/iana.py | 972f2dda680db38cfeb26184b86083d96d3de94c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,343 | py | # Copyright The IETF Trust 2012-2019, All Rights Reserved
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import base64
import datetime
import email
import json
import re
from six.moves.urllib.request import Request, urlopen
from django.conf import settings
from dja... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
f3f172e7faa2052659c93cf8e54e19741ae5832d | fde77c384d1bd94b5c36f885a18411acd10b7719 | /Code_back/Curve_Functions.py | 18eec2758f60ae82ffdd0563ac7d0cfab3ee373e | [] | no_license | liprin1129/Project | 599654fa74948dfa9b2f26facb747a77b3187876 | b99acd00142985fe6e0d639026d87b2b4f6c4498 | refs/heads/master | 2020-04-06T07:05:51.345801 | 2016-09-06T12:43:44 | 2016-09-06T12:43:44 | 65,019,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,058 | py | import numpy as np
# from scipy.optimize import curve_fit
from scipy.optimize import least_squares
import matplotlib.pyplot as plt
#import DC_Pickle as dcp
############################################
## Polynomial Functioin
############################################
def polynomial_curve(x, w0, w1):
return w0 +... | [
"liprin1129@gmail.com"
] | liprin1129@gmail.com |
6360a786f13684708b89f005c7278215a84639df | 64ccbe2ce2176ecda231f20f1341af8368b30fd4 | /dnd/views.py | 827aab3f1ac43ce0f91eb5e89012df97ddfae18b | [] | no_license | dabslee/D-D5e-Tools | 4a6a4d4d228eba68d9750b1145ec3195dbd03db5 | 1f6f3d3b6ceac17d077ad2a29e24553e07447095 | refs/heads/master | 2023-08-15T17:27:12.336245 | 2021-10-09T02:26:48 | 2021-10-09T02:26:48 | 414,007,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.shortcuts import render
# Create your views here.
def home(request):
context = {
"current_page": "home"
}
return render(request, "home.html", context) | [
"brandon.sangmin.lee@gmail.com"
] | brandon.sangmin.lee@gmail.com |
10eeb1a0a39540332aac618a4f134f9b13a15a4b | bfb591a1d5166d3b56f2e8fb7f2aa52cdbfd4831 | /questions/q219_partition_equal_sum_subset/recursive.py | 6a32060facebff16a805ab0abcb96cf3f09ed2e2 | [
"MIT"
] | permissive | aadhityasw/Competitive-Programs | 8a5543995ae6ae2adae7ebaa9cb41b222d8372f1 | 3d233b665a3b2a9d0b1245f7de688b725d258b1c | refs/heads/master | 2022-01-16T19:36:48.332134 | 2022-01-03T18:14:45 | 2022-01-03T18:14:45 | 192,506,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | class Solution:
def recursiveSearch(self, summ, n) :
if summ == self.required or summ == 0 :
return 1
if n < 0 :
return 0
if self.visited[summ][n] :
return 0
self.visited[summ][n] = True
return (
self.... | [
"aadhityas@gmail.com"
] | aadhityas@gmail.com |
c1c08ab9d53ffc2101a9a0097c30215b7a1559c5 | ef479ad92071445cf2478930094472f415e0410b | /08_mask_rcnn_inceptionv2/01_float32/03_weight_quantization.py | 25d757da7bc1a057144b1bfef373f076543e8bc2 | [
"MIT"
] | permissive | Chomolungma/PINTO_model_zoo | 6f379aaadf5ff6d42f859a6a80673c816de2c664 | df020dbdcfc4a79932da6885f0cb257ffc32e37b | refs/heads/master | 2021-04-23T04:58:02.213884 | 2020-03-20T10:59:12 | 2020-03-20T10:59:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import tensorflow as tf
### Tensorflow v2.1.0 - master - commit 8fdb834931fe62abaeab39fe6bf0bcc9499b25bf
# Weight Quantization - Input/Output=float32
converter = tf.lite.TFLiteConverter.from_saved_model('./saved_model')
converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE]
converter.target_spec.supported_ops... | [
"rmsdh122@yahoo.co.jp"
] | rmsdh122@yahoo.co.jp |
f73a19e9239492bf90244981ed07ce1af89650e9 | 60693b05f465e6755cf0e6f3d0cf6c78c716559a | /StateM/StateSplit.py | 2ba95883eb54e944a29e40208a5f76bbc0eac9be | [] | no_license | WXW322/ProrocolReverseTool | 6fe842f3787fbcb2dfb3dbc8d1ece66fed5593e9 | a619b51243f0844ac7ef6561bfd68a1f0856f794 | refs/heads/master | 2020-08-21T19:00:19.799383 | 2019-10-21T06:51:47 | 2019-10-21T06:51:47 | 216,224,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | from common.readdata import *
class StateSplit:
def __init__(self):
pass
def generateStates(self, messages):
result = []
for message in messages:
result.append((get_ip(message.source), message.data))
return result
def splitByDire(self, messages):
ipMess... | [
"15895903730@163.com"
] | 15895903730@163.com |
11bc419b59eefd5c2b9fdaf4f7e22060ff2267a5 | dacf092e82b5cc841554178e5117c38fd0b28827 | /day24_program4/interface/admin_interface.py | 5372c7850010cca75f8f2bcefb6a71d576ef284a | [] | no_license | RainMoun/python_programming_camp | f9bbee707e7468a7b5d6633c2364f5dd75abc8a4 | f8e06cdd2e6174bd6986d1097cb580a6a3b7201f | refs/heads/master | 2020-04-15T11:27:09.680587 | 2019-04-06T02:21:14 | 2019-04-06T02:21:14 | 164,630,838 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | import os
import socket
import time
from interface import common_interface
from conf import setting
def upload_file_interface(admin_name, file_path): # 将本地文件上传至服务器
if not os.path.isfile(file_path):
return False, '文件不存在'
file_path_lst = file_path.split('/')
file_name = file_path_lst[-1]
file_s... | [
"775653143@qq.com"
] | 775653143@qq.com |
6ce9ad0a770aeb4a328cfe74078d9b317be7a312 | 4bd555bc662b8182a2e7644976bfdb00ed5e1ebe | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/Crypto/Hash/SHA512.py | b55501ce9f84e5d5351c540fb37cad4426a90f13 | [] | no_license | fhelmli/homeNOWG2 | a103df1ef97194dec9501dbda87ec1f7c111fb4a | e794fd87b296544542fd9dc7ac94c981c6312419 | refs/heads/master | 2020-04-04T13:40:20.417769 | 2019-01-30T21:41:04 | 2019-01-30T21:41:04 | 155,970,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,537 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"tberk@gmx.at"
] | tberk@gmx.at |
32d8dc9ef7307c6d3118b4af34978bf943b77ba4 | 951e433b25a25afeea4d9b45994a57e0a6044144 | /NowCoder/拼多多_回合制游戏.py | b9c5f768b6df142db72c09e965dc9fcc88c5528e | [] | no_license | EricaEmmm/CodePython | 7c401073e0a9b7cd15f9f4a553f0aa3db1a951a3 | d52aa2a0bf71b5e7934ee7bff70d593a41b7e644 | refs/heads/master | 2020-05-31T14:00:34.266117 | 2019-09-22T09:48:23 | 2019-09-22T09:48:23 | 190,318,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | # 回合制游戏
# 你在玩一个回合制角色扮演的游戏。现在你在准备一个策略,以便在最短的回合内击败敌方角色。在战斗开始时,敌人拥有HP格血量。
# 当血量小于等于0时,敌人死去。一个缺乏经验的玩家可能简单地尝试每个回合都攻击。但是你知道辅助技能的重要性。
# 在你的每个回合开始时你可以选择以下两个动作之一:聚力或者攻击。
# 聚力会提高你下个回合攻击的伤害。
# 攻击会对敌人造成一定量的伤害。如果你上个回合使用了聚力,那这次攻击会对敌人造成buffedAttack点伤害。否则,会造成normalAttack点伤害。
# 给出血量HP和不同攻击的伤害,buffedAttack和normalAttack,返回你能杀死敌人的... | [
"1016920795@qq.com"
] | 1016920795@qq.com |
dffaae8ce39b4f30265ffa47cde93f3253f1e1f9 | 977c82ec23f2f8f2b0da5c57984826e16a22787d | /src/IceRayPy/core/material/instruction/label/color/temp.py | 13f937e7410e04a579f1748b267fc79c264470c5 | [
"MIT-0"
] | permissive | dmilos/IceRay | 47ce08e2920171bc20dbcd6edcf9a6393461c33e | 84fe8d90110c5190c7f58c4b2ec3cdae8c7d86ae | refs/heads/master | 2023-04-27T10:14:04.743094 | 2023-04-20T14:33:45 | 2023-04-20T15:07:18 | 247,471,987 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | _BEGIN = 36
_END = 72 | [
"dmilos@gmail.com"
] | dmilos@gmail.com |
74f00f42f7ad17c83df242a9a67d18dd57e80f6d | 146143036ef6a0bf2346eef9881db3ac85059008 | /kdl_wagtail/people/migrations/0002_rename_field_summary_on_person_to_introduction.py | 04f158bb7929b972babedece17961f9fae723c7f | [
"MIT"
] | permissive | kingsdigitallab/django-kdl-wagtail | bc5a26420fcef3a25c6a42b0c5bb5f8643d32951 | 457623a35057f88ee575397ac2c68797f35085e1 | refs/heads/master | 2023-01-06T02:43:48.073289 | 2021-10-08T19:25:56 | 2021-10-08T19:25:56 | 168,135,935 | 3 | 0 | MIT | 2022-12-26T20:39:03 | 2019-01-29T10:27:05 | Python | UTF-8 | Python | false | false | 370 | py | # Generated by Django 2.1.5 on 2019-01-31 10:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('kdl_wagtail_people', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='person',
old_name='summary',
... | [
"jmvieira@gmail.com"
] | jmvieira@gmail.com |
e8db7174a5e58d829efa2ed8646b01398663afb2 | 1b8d162160f5ab6d6a6b8940b8ab83b482abb409 | /tests/aggregation/test_max.py | d32d10c32315d5359c79abb9b11b2e441941fdc9 | [
"Apache-2.0"
] | permissive | jlinn/pylastica | f81e438a109dfe06adc7e9b70fdf794c5d01a53f | 0fbf68ed3e17d665e3cdf1913444ebf1f72693dd | refs/heads/master | 2020-05-19T14:07:38.794717 | 2014-07-23T23:43:00 | 2014-07-23T23:43:00 | 10,442,284 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | from pylastica.aggregation.max import Max
from pylastica.document import Document
from pylastica.query.query import Query
from pylastica.script import Script
from tests.base import Base
__author__ = 'Joe Linn'
import unittest
class MaxTest(unittest.TestCase, Base):
def setUp(self):
super(MaxTest, self).... | [
"joe@venturocket.com"
] | joe@venturocket.com |
938d2387acdadda18fcff71135fa9bb41e9d267b | 232411e5462f43b38abd3f0e8078e9acb5a9fde7 | /build/rotors_description/catkin_generated/pkg.develspace.context.pc.py | d9fa71b7cb86e4b8eb08039501fa05b1632357d6 | [] | no_license | Fengaleng/feng_ws | 34d8ee5c208f240c24539984bc9d692ddf1808f9 | a9fa2e871a43146a3a85a0c0a9481793539654eb | refs/heads/main | 2023-03-29T17:25:42.110485 | 2021-03-30T14:50:24 | 2021-03-30T14:50:24 | 353,034,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rotors_description"
PROJECT_SPACE_DIR... | [
"chenfy1998@gmail.com"
] | chenfy1998@gmail.com |
b35f61492670ffc4e2044973d754b52e2c12fc65 | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /invoice/models.py | 10e28aa5941aea567f4bca34e53e910b3c7e20b5 | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 541 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class voucher(models.Model):
pass
class PaymentTerm(models.Model):
name = models.CharField(max_length=30)
description = models.TextField()
due_days = models.PositiveSmallIntegerField()
discount_days = mode... | [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
f80f0be06fc4b0b545009feebda90b8c1dfed845 | ea48ef0588c104e49a7ebec5bd8dc359fdeb6674 | /mini_web_frame/deme/django_orm模型.py | 4f0825357545e2d50dbb4344b17e936e298facf0 | [] | no_license | Jizishuo/django--text | c0d58d739ef643c7f3793fbead19302778670368 | 152a5c99e7a16a75fda2f1f85edcfdce9274c9c2 | refs/heads/master | 2020-04-01T10:39:18.131551 | 2018-11-18T13:31:59 | 2018-11-18T13:31:59 | 153,125,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,053 | py | '''
class ModelMetaclass(type):
def __new__(cls, name, bases, attrs): #name=user,bases=(),attrs={'uid':(..)...}
mappings = dict()
#判断是否需要保存
#例如type('AAA', (), {'num ':1, 'num2':2}) 创建类
for k, v in attrs.items():
if isinstance(v, tuple):
#print("ma... | [
"948369894@qq.com"
] | 948369894@qq.com |
7744e21b09e713d7eb3c26adcc7d76080eb9c847 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /qt__pyqt__pyside__pyqode/example_QStackedWidget/use_listwidget.py | df42105e6af3e29d463d9aa479d1ebed22cc55a4 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
from PyQt5.QtWidgets import (
QApplication,
QHBoxLayout,
QWidget,
QLabel,
QStackedWidget,
QListWidget,
)
class MainWindow(QWidget):
def __init__(self):
super().__init__()
self.stacked_widget = QStack... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
f9aba00ebbe58ef41e41b7374c770514fad67a28 | 6dedbcff0af848aa979574426ad9fa3936be5c4a | /cengal/parallel_execution/coroutines/coro_standard_services/shutdown_on_keyboard_interrupt/versions/v_0/__init__.py | 5e2395584c9ba7589876333ee84c164b51c2af0c | [
"Apache-2.0"
] | permissive | FI-Mihej/Cengal | 558d13541865e22006431bd1a1410ad57261484a | d36c05f4c90dfdac7296e87cf682df2f4d367e4b | refs/heads/master | 2023-06-08T00:39:39.414352 | 2023-06-05T21:35:50 | 2023-06-05T21:35:50 | 68,829,562 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright © 2012-2023 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>
#
# 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:... | [
"gtalk@butenkoms.space"
] | gtalk@butenkoms.space |
8f0c91c576598b507ff7652c740be6f6b6462ec9 | 65d93b3db37f488356faa1789f1001f17191e345 | /isi_mip/climatemodels/migrations/0102_auto_20190408_1308.py | 9581823e6bd88e440f166ad4dfe4f5df2ee91833 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ISI-MIP/isimip | b4a19310dd772356eef87259783084836107cf4a | c2a78c727337e38f3695031e00afd607da7d6dcb | refs/heads/master | 2021-09-14T15:42:14.453031 | 2021-05-25T09:33:45 | 2021-05-25T09:33:45 | 237,446,232 | 0 | 0 | MIT | 2020-01-31T14:27:04 | 2020-01-31T14:27:03 | null | UTF-8 | Python | false | false | 914 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-04-08 11:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('climatemodels', '0101_impactmodel_simulation_round_specific_description'),
]
opera... | [
"hi@brueck.io"
] | hi@brueck.io |
f56291670cf5bac55339f2575f4ddc76147d4946 | dee7bbdddeae675f27bce0c9b79d972026bf388b | /Django/p5_connection_project/p5_connection_project/wsgi.py | 1332f5638464991446970a47345707c8c06d7043 | [] | no_license | KevinMichaelCamp/CodingDojo-Python | 529815dcef102ef4b9bbb18d0ec572172de5d2c4 | 30674b52423e0724908b3ab9930d3d80c807581d | refs/heads/master | 2022-12-10T13:20:22.723313 | 2021-02-18T02:22:00 | 2021-02-18T02:22:00 | 151,661,213 | 0 | 1 | null | 2022-12-08T03:03:05 | 2018-10-05T02:24:57 | Python | UTF-8 | Python | false | false | 419 | py | """
WSGI config for p5_connection_project 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.setdefault... | [
"kevinmichaelcamp@gmail.com"
] | kevinmichaelcamp@gmail.com |
b524bc653594cd96b5b8faf8c3e1de45836d35c0 | 3f788f1dcb325f403a21a3cc0f3a547b48a9492a | /packages/levylab_lib_lockin_multichannel/levylab_lib_lockin_multichannel-2.15.3.17.spec | 5d7a576be7e4b2f531fe10aedac52228675edd97 | [
"BSD-3-Clause"
] | permissive | levylabpitt/levylabpitt.github.io | e01fa402e7bbb59f4b99f979735021271f55d48b | 96f1e0d7064526ab5908e9a26721adf306331516 | refs/heads/master | 2023-08-24T15:46:32.342077 | 2023-08-10T04:28:08 | 2023-08-10T04:28:08 | 183,644,047 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 42,458 | spec | [Package]
Name="levylab_lib_lockin_multichannel"
Version="2.15.3.17"
Release=""
ID=2f46dc7080f325cb2a71fe3d40ec3287
File Format="vip"
Format Version="2017"
Display Name="Multichannel Lockin"
[Description]
Description="Multichannel Lockin for National Instruments' Dynamic Signal Acquisition hardware (4431, 4461, 4462)... | [
"p.irvin@levylab.org"
] | p.irvin@levylab.org |
a67d141be18a04831a14901f68ed831333063d86 | e959e0af4559447309f083e73010752e88f848c4 | /meta/DesignDataPackage/lib/python/avm/systemc/__init__.py | 0641f06e0c7370be5a7d03a8b73a083f0815ce5c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | lefevre-fraser/openmeta-mms | 5621e5bd2f14f63c5f44e5130678f93dae87e3d3 | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | refs/heads/master | 2022-04-21T13:39:07.209451 | 2020-04-14T19:56:34 | 2020-04-14T19:56:34 | 257,699,808 | 0 | 0 | NOASSERTION | 2020-04-21T19:48:04 | 2020-04-21T19:48:03 | null | UTF-8 | Python | false | false | 19,675 | py | # .\_systemc.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:acabe3c8394de3f41da11a8fb34cb58c8e1b3a5a
# Generated 2016-02-15 11:24:52.072000 by PyXB version 1.2.3
# Namespace systemc [xmlns:systemc]
import pyxb
import pyxb.binding
import pyxb.binding.saxer
import io
import pyxb.utils.utility
import pyxb.u... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
28bc2cd20ad54c1510a2240542dcab62c23db357 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /Decorators__examples/decorator__args_as_funcs.py | 93655d075ac3c19fdba95b7b26163d49ff67f6ef | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
class TextBuilder:
def __init__(self):
self.result = []
# Функция, принимающая аргументы и возвращающая декоратор
def _call_before(*funcs):
# Сам декоратор
def decorator(func):
# Функция-обертка, з... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
a6c80e22b97fbe9dfcdc635ef03d12eea5b06884 | 9f951479d5eda96e7fecbbbd0b3b7e4f5e83360d | /webtest/全栈课程代码学员版/Level3课程代码/Level3Code/lesson8/LessonCode/OriginalVersion/tenmins/urls.py | c0720b4831408ae6c32907c61dc3b51f8fa8d8b8 | [] | no_license | lianbo2006/Project | 44c5b6fcab4fe31b80bfff467b3e0e31fd2da8ba | 5d13923817a1d4cffe7d4abbb5873277ce28bb87 | refs/heads/master | 2021-01-11T18:24:47.597849 | 2017-04-25T03:44:47 | 2017-04-25T03:44:47 | 79,539,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | """tenmins URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"513748889@qq.com"
] | 513748889@qq.com |
7f3d9b3fc7a7807540e8318fc33426af29965e20 | cb1fb3bf87b3f7006b564a0f2acd2d68e5d5ffaa | /pyram/tree/treemodule.py | e1ed25bba91eb8e5f5f36a320ce2c54625637cd1 | [
"MIT"
] | permissive | Hoseung/pyRamAn | 2778f8b12ca966e7586ebf077a964aecd1654223 | f9386fa5a9f045f98590039988d3cd50bc488dc2 | refs/heads/master | 2021-06-22T18:35:06.478492 | 2021-06-05T03:26:31 | 2021-06-05T03:26:31 | 227,741,934 | 1 | 1 | MIT | 2020-03-04T12:39:06 | 2019-12-13T02:49:30 | Jupyter Notebook | UTF-8 | Python | false | false | 7,126 | py | # -*- coding: utf-8 -*-
"""
treemodule
Created on Sun Jun 14 06:35:45 2015
@author: hoseung
"""
import numpy as np
def _is_ascii(filename):
return filename.split(".")[-1] == "dat"
class CTree(object):
"""
compatible with ConsistentTrees 1.01
"""
def __init__(self, filename=None):
... | [
"hopung@gmail.com"
] | hopung@gmail.com |
36f0354909d9d144b680d363b46210367d9d65f2 | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /quiz.py | 487aec0b5842d9ac80fc5c7efaacddddf7c41cd2 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 483 | py | from cryptography.fernet import Fernet
key = 'TluxwB3fV_GWuLkR1_BzGs1Zk90TYAuhNMZP_0q4WyM='
# Oh no! The code is going over the edge! What are you going to do?
message = b'gAAAAABcmZNjB1CqmvCWcO8ByvVTKas3rKh5Py67Al5tOma1TtHeQBQJi55SmpN86uNXNFX7_clMNLWCB5HzqkcOkkz3V7KzxeFo7q4ZNIGsa4tb82l0sVTcS2zCW7-Rk7kcnkLl_Jsw2F98JM... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
0ef156a76ca296a030eba1c782df633bae7c1ba4 | 7bd3c35070d40724ab21e83b4d3f5ba39e455818 | /E2 - Second/eshop/admin.py | 10f96f6813b97567fbb8ce70c6afe590ef33d481 | [] | no_license | shatishdesai202/Django-Project-Practice | 9433004de6fd72dd0cd56cb4ff7770ecded6a054 | f66ee507fcf959d148627c1c2f5d587b10adc996 | refs/heads/main | 2023-03-12T17:14:15.823285 | 2021-03-07T05:32:07 | 2021-03-07T05:32:07 | 345,263,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | from django.contrib import admin
from .models import Category, Product, Placeorder, Comment
# Register your models here.
@admin.register(Category)
class AdminCategory(admin.ModelAdmin):
list_display = ['id', 'c_name']
@admin.register(Product)
class AdminProduct(admin.ModelAdmin):
list_display = ['id','categor... | [
"sdondjango@gmail.com"
] | sdondjango@gmail.com |
c520a22448096a9aec2f2b0a15c922d05bc96916 | 77932fb1dde97eafe995b960d62036e2511465d2 | /shoppingsite.py | cab310f0cc96165443d84cfc2f906044fadb1b0b | [] | no_license | lsylk/shopping-site | f2dc859a3f07ca5855246f3573c7e13c1885c3ba | f29020824bec51e71c3ba6197f8420d149a4bd16 | refs/heads/master | 2020-12-24T18:42:20.858411 | 2016-04-22T00:14:44 | 2016-04-22T00:14:44 | 56,802,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | """Ubermelon shopping application Flask server.
Provides web interface for browsing melons, seeing detail about a melon, and
put melons in a shopping cart.
Authors: Joel Burton, Christian Fernandez, Meggie Mahnken.
"""
from flask import Flask, render_template, redirect, flash, session, request
import jinja2
import... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
4e93574da1da48b3fd89023b214a51f62f586e7a | b1605b9fcc04adb8d8b095104b1e0cb5d7e39fbf | /scienceApp/views.py | 5a2e37086c344767947a9baee88500bf8ae29eef | [] | no_license | ZLS1803/hengda | 4f022c868590d0b2cd2cc644d9cabd7a7aa4a1f5 | 8f3b801353932528c499a0ae2d40df08fdd44214 | refs/heads/main | 2023-07-19T11:37:40.898445 | 2021-09-12T02:41:18 | 2021-09-12T02:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from django.shortcuts import render
# Create your views here.
def science(request):
return render(request, 'scienceApp/science.html')
| [
"email"
] | email |
b05937c4e6edd1ec39ddc284c0ffb6a77f4e3951 | aa52a6a6a9db8ccc35a36d0ec42d06dc8070d1f6 | /migrations/versions/e716104ed757_init.py | 7449cda2864b787936d10bc387c0578b6f83d19f | [
"MIT"
] | permissive | Kel0/aiogram_bot_template | 38a9e64b7010eec61e017442cceecb4adb1020c1 | c5cd2129c99824efe122a951ada27936f3a35b0a | refs/heads/main | 2023-04-12T05:56:58.086964 | 2021-05-19T10:48:03 | 2021-05-19T10:48:03 | 368,808,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | """init
Revision ID: e716104ed757
Revises:
Create Date: 2021-05-19 15:59:22.801097
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e716104ed757'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by ... | [
"rozovdima123@gmail.com"
] | rozovdima123@gmail.com |
b9e13cfd823bb8d0a72c4ba68afa6e6ccf12dda8 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/ICalGLib/_Geo.py | b67491959d92d351635e23d3c9e4cdfcea4d5f81 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,443 | py | # encoding: utf-8
# module gi.repository.ICalGLib
# from /usr/lib64/girepository-1.0/ICalGLib-3.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
cd071f5e54a2a2b4f3822a91157091fd742e6b2c | 42674d7355d852e6ec7071830bb87d781ab63ad3 | /bitmovin/services/inputs/__init__.py | 368733a01bf8e226d3145dce78bd979929481b5f | [
"Unlicense"
] | permissive | bitmovin/bitmovin-python | 57b1eb5deb7e38f3079e0ded546ec762753c3132 | d183718d640117dd75141da261901dc2f60433b0 | refs/heads/master | 2023-07-11T02:40:59.277881 | 2020-01-28T14:49:15 | 2020-01-28T14:49:15 | 72,857,798 | 46 | 27 | Unlicense | 2019-12-17T13:59:51 | 2016-11-04T15:01:56 | Python | UTF-8 | Python | false | false | 40 | py | from .input_service import InputService
| [
"dominic.miglar@netunix.at"
] | dominic.miglar@netunix.at |
af898e4d962f53afbb60cce12d3671b58739fb41 | 50ec7dde190bfa4671a1a6db307375efb607b05b | /day04/part2.py | 9c73c10ae2a100e8a9793690047044d10e4324ed | [
"MIT"
] | permissive | mtn/advent15 | 10a07f1bbc27c90405504cfaf0ac82f7731101e4 | b23bcf5761363596336d5361218c52db0b078793 | refs/heads/master | 2021-07-05T12:47:41.302328 | 2019-01-03T03:28:31 | 2019-01-03T03:28:31 | 163,866,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | #!/usr/bin/env python3
import hashlib
inp = "yzbqklnj"
i = 0
while True:
m = hashlib.md5()
m.update(str.encode("{}{}".format(inp, i)))
if m.hexdigest()[:6] == "000000":
print(i)
break
i += 1
| [
"michaeltnoronha@gmail.com"
] | michaeltnoronha@gmail.com |
a1463bc23152746dc7b8f4ce3c9f84b5aad9a31e | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/devolo_home_network/test_sensor.py | 230457f56173898a1cd34f6f92a7ead81b8fc354 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 3,353 | py | """Tests for the devolo Home Network sensors."""
from datetime import timedelta
from unittest.mock import AsyncMock
from devolo_plc_api.exceptions.device import DeviceUnavailable
from freezegun.api import FrozenDateTimeFactory
import pytest
from syrupy.assertion import SnapshotAssertion
from homeassistant.components.... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
e0deffcdb6731bbc6ad4f3559137ab9268a241e2 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/storage/hpe3par/test_ss_3par_cpg.py | b94850aa094183ae5e2506e2174e24efe8423f3b | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,684 | py | # Copyright: (c) 2018, Hewlett Packard Enterprise Development LP
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
import mock
import sys
sys.modules['hpe3par_sdk'] = mock.Mock()
sys.modules['hpe3par_sdk.client'] = mock.Mock()
sys.modules['hpe3parclient'] = mock.Mock()
sys... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
8919c999f822111499f7a48ea5970e4e66bdf2d6 | 13cf11440998376d3b52a49f1e4fb8936c360ac4 | /chainer_chemistry/utils/extend.py | bc1fd94d7cbab82a4c46b3f94174cba64feebd46 | [
"MIT"
] | permissive | k-ishiguro/chainer-chemistry | 87e3db724de0e99042d9585cd4bd5fff38169339 | aec33496def16e76bdfbefa508ba01ab9f79a592 | refs/heads/master | 2021-07-06T22:58:20.127907 | 2019-02-04T02:51:34 | 2019-02-04T02:51:34 | 169,345,375 | 1 | 1 | MIT | 2020-07-30T06:04:13 | 2019-02-06T02:27:39 | Python | UTF-8 | Python | false | false | 3,569 | py | from collections import Iterable
from logging import getLogger
import six
from chainer import cuda
def _to_list(a):
if isinstance(a, Iterable):
a = list(a)
else:
a = [a]
return a
def extend_node(node, out_size, axis=-1, value=0):
"""Extend size of `node` array
For now, this fun... | [
"acc1ssnn9terias@gmail.com"
] | acc1ssnn9terias@gmail.com |
a6e55eee3afeb7a80c9617ab43346f05e6f89ec6 | c6ed9aa97166d4778b89321b580af80c543bacc9 | /algorithms/hashmap.py | 6458bd36a8ddddfd8b2f20c0744f16ae71b00198 | [] | no_license | bradyz/sandbox | 381bcaf2f3719dee142a00858f7062aeff98d1ab | ff90335b918886d5b5956c6c6546dbfde5e7f5b3 | refs/heads/master | 2021-01-23T09:03:54.697325 | 2018-02-27T20:47:48 | 2018-02-27T20:47:48 | 21,292,856 | 10 | 0 | null | 2015-09-03T16:53:15 | 2014-06-28T00:29:18 | Python | UTF-8 | Python | false | false | 43 | py | import collections
def enterDict:
:q
| [
"brady.zhou@utexas.edu"
] | brady.zhou@utexas.edu |
fc20c2db8fe61bc1e4f6569081b063d2bf20d899 | 046df94b4f437b2e30b80d24193fcd5380ee7b54 | /practice/8class_and_object_orinented_programming/test_override.py | ed8de443ce1da2e391a7ce408dd459953a793b13 | [] | no_license | LordBao666/MITLecture6.0001_Introduction_To_CS_Programing_In_Python | 570565a3a931269f47fe15fd83527567a24fc134 | e9fca10ad0226c8620ae36d063c2bc49da114ca4 | refs/heads/master | 2023-04-02T10:40:48.564479 | 2021-04-06T15:19:47 | 2021-04-06T15:19:47 | 344,118,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | """
@Author : Lord_Bao
@Date : 2021/3/15
"""
class MySupClass(object):
def __init__(self):
pass
def method_to_be_implemented(self):
raise NotImplementedError
class Offspring(MySupClass):
def method_to_be_implemented(self):
pass
def special_method(self):
pass
... | [
"916900021@qq.com"
] | 916900021@qq.com |
4869c36593cd8c01de13e24e36e3cceefb50893a | 350ecc8259bcad075bd376423335bb41cc8a533e | /edit2.cgi | 8313bbb14d29515c7333953d5ce3cee907eeb7e9 | [] | no_license | CodedQuen/python_begin | 39da66ecc4a77b94a5afbbf0900727c8156b85e1 | 1433c319b5d85520c50aee00dd4b6f21a7e6366a | refs/heads/master | 2022-06-10T10:30:28.807874 | 2020-04-25T03:34:03 | 2020-04-25T03:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | cgi | #!/usr/bin/python
print ('Content-type: text/html\n')
import cgitb; cgitb.enable()
import psycopg
conn = psycopg.connect('dbname=foo user=bar')
curs = conn.cursor()
import cgi, sys
form = cgi.FieldStorage()
reply_to = form.getvalue('reply_to')
print ("""
<html>
<head>
<title>Compose Message</t... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
3ea8e542055d9af415f0df4954230bc1069c1696 | 45c142c3e3dc8d3211a86c77385ecfdd10d28fb9 | /dstore/engine/procedures/mi_GetInformationTypes_Ad_pb2.py | d044b357e309012a064a921161ed1a2bf83e91db | [] | no_license | dstore-io/dstore-sdk-python | 945d64995c8892af18fab26c90117245abec64a4 | 8494d12ac77c3c3cc6dd59026407ef514ad179fc | refs/heads/master | 2020-06-14T13:07:08.181547 | 2017-01-26T11:19:39 | 2017-01-26T11:19:39 | 75,177,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 7,421 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dstore/engine/procedures/mi_GetInformationTypes_Ad.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from ... | [
"b.dolkemeier@dbap.de"
] | b.dolkemeier@dbap.de |
6b4038c50a12b01cae8895691a41ee3c55405e9e | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/datasetup_20210414101740.py | 1b100c5fafb593a7c48ab039e9ecf27287a49d16 | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pandas as pd
import cv2
import os
import glob
from pathlib import Path
def cleanTestDirs():
emotions = []
for f in Path('/Users/Natalie/Desktop/cs1430/CV-final-project/data/test/angry').glob('*.jpg... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.