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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24b0d94b1351c0914bc927de94b884458de108d5 | b82057c77dd4d00ff9bca9a979a1a3075f0528c4 | /Exicom_gateway/checks/ec500_dc_battcumdischarge_ah_status | 753f682ed293b267a705e11b7e3da516b6af3913 | [] | no_license | subhash-007/photography-blog | 7ee0c4f930fee29d76106c45b09e6b76cb19cf56 | b1ae66794b48bfe3862cb6e727a3a15a6ef79024 | refs/heads/master | 2020-03-31T04:33:00.276628 | 2019-07-12T06:00:39 | 2019-07-12T06:00:39 | 151,910,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,982 | #!/usr/bin/python
"""
dc_battcumdischarge_ah_status of poller device.
This is part of device application.
Poller script determines the dc_battcumdischarge_ah_status of device.
poller script takes the snmp value of OID .1.3.6.1.4.1.38016.14.2.10.3 from snmp agent of device at specific interval.
Device dc_battcumdischar... | [
"sbmoond@gmail.com"
] | sbmoond@gmail.com | |
a301ac41f038fcd5f6e9a30ed172cd363ee6a0e7 | d4b344780e893a19d44aed51ebfe514c91e920c2 | /aliyun-python-sdk-dds/aliyunsdkdds/__init__.py | ad584ffac768287ea92f9390b2fece32fc60ce65 | [
"Apache-2.0"
] | permissive | WenONGs/aliyun-openapi-python-sdk | 6d164160eac7a8020e3b8d1960d170e08d2c8f23 | b6de95a32030b421665c0833c9d64d92fcaf81c8 | refs/heads/master | 2023-04-28T06:36:51.740098 | 2021-05-17T09:37:00 | 2021-05-17T09:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | __version__ = '3.5.2' | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
21fe2f6b03ac56dd43ae3a5e3577404f05819754 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/tests/devpay/test_s3.py | 86665702dcb3bef91d879e2c7171a5c6e2e32913 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 7,410 | py | #!/usr/bin/env python
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the ri... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
7e9bc624c393e992e18b67e221b977c09ff141f9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_245/ch19_2020_03_04_18_17_22_799262.py | 8b22222de5aff9dc08c38d569b8da5a45aa29742 | [] | 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 | 319 | py | l1 = int(input("Insira o primeiro lado: "))
l2 = int(input("Insira o segundo lado: "))
l3 = int(input("Insira o terceiro lado: "))
if l1 == l2 and l2 == l3:
print("o triângulo é equilátero")
elif l1 == l2 or l1 == l2 or l2 == l3:
print("o triângulo é isóceles")
else:
print("o triângulo é escaleno") | [
"you@example.com"
] | you@example.com |
7afa2e261bc06fbe2b86157c44db2697afb12753 | d3e2f5b8c9505301bfc782cd3f152630565ccfdd | /djangoecommerce/catalog/apps.py | 44e8d6051b4ba24e67229587b176dbefc4b24c95 | [] | no_license | ingafter60/django3-ecom-portugis | 81b5b862b01a8bc7ce9a5a2ccd1a306bf7268c56 | ddf0b68836f54629d830e08a9831d7ad42514d45 | refs/heads/master | 2022-01-25T05:19:51.225435 | 2020-02-04T15:39:21 | 2020-02-04T15:39:21 | 238,185,317 | 0 | 0 | null | 2022-01-21T19:56:23 | 2020-02-04T10:59:51 | Python | UTF-8 | Python | false | false | 230 | py | # from django.apps import AppConfig
# class CatalogConfig(AppConfig):
# name = 'catalog'
from django.apps import AppConfig
class CatalogConfig(AppConfig):
name = 'djangoecommerce.catalog'
verbose_name = 'Catalog'
| [
"inyoman_gurnitha@yahoo.com"
] | inyoman_gurnitha@yahoo.com |
063f00b5a48ae92362e6306ce6da50adda629431 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_211/128.py | e12ff8364323062a8ce942d6507e417d019c70c9 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | """
http://networkx.readthedocs.io/en/networkx-1.11/tutorial/index.html
https://docs.python.org/3/library/re.html
https://docs.python.org/3/library/math.html
https://docs.python.org/3/library/collections.html
https://docs.python.org/3/library/itertools.html
https://docs.python.org/3/library/functools.html#functools.lru... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1c6ae8af04aac7f1c2b8ece017e09f30b3cbe5e8 | c92398a728817578850ecf508ec4197afe91a88f | /DemopatterninForloop1.py | 129e82619895026a6e97d482bf04495e827222b5 | [] | no_license | HitanshuSoni/Python_practice | 4d0ec0378124da85e364a15a7b94ddbbfe2fc929 | 7a3d0977b218ef76f91517d88518b1c0b68b9528 | refs/heads/main | 2023-04-18T21:55:12.709161 | 2021-05-08T15:39:08 | 2021-05-08T15:39:08 | 365,550,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | n=int(input("Enter the number of rows "))
for i in range (1,n+1):
for j in range (1,i+1):
print(j,end="")
print()
| [
"hitanshusoni10@gmail.com"
] | hitanshusoni10@gmail.com |
6a6bc70088b6de904514277d36b20f63057be680 | c9ad09f01a431f7f44d35ffd5a580caf91d67fc0 | /Lib/fontbakery/specifications/general.py | 214414565d7a643c1eabaff3274ba05fa7118c9f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jenskutilek/fontbakery | 59e44ef102953e41fbdc94aaf04f8274dd195e4f | 1aa1091dd87b5edfb62e7697535dbb104f3d01df | refs/heads/master | 2020-03-15T06:03:43.281929 | 2018-04-30T15:54:35 | 2018-04-30T15:57:43 | 131,999,383 | 0 | 0 | null | 2018-05-03T13:29:56 | 2018-05-03T13:29:55 | null | UTF-8 | Python | false | false | 23,337 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import os
from fontbakery.callable import check, condition, disable
from fontbakery.checkrunner import ERROR, FAIL, INFO, PASS, SKIP, WARN
from fontbakery.constants import CRITICAL
from fontbakery.message impor... | [
"fsanches@metamaquina.com.br"
] | fsanches@metamaquina.com.br |
afc1960b9e604fdb66a3939bdb40fa1fd79f9cc7 | 090a4e026addc9e78ed6118f09fd0d7d4d517857 | /graph_objs/scattermapbox/_marker.py | 5bece0565289746dd7c67705ab0f857215310d98 | [
"MIT"
] | permissive | wwwidonja/new_plotly | 0777365e53ea7d4b661880f1aa7859de19ed9b9a | 1bda35a438539a97c84a3ab3952e95e8848467bd | refs/heads/master | 2023-06-04T19:09:18.993538 | 2021-06-10T18:33:28 | 2021-06-10T18:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,618 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Marker(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scattermapbox"
_path_str = "scattermapbox.marker"
_valid_props = {
"allowoverlap",
... | [
"wwwidonja@gmail.com"
] | wwwidonja@gmail.com |
f218147dd10fb666b03b90331069ea33e88098df | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/pandas/tests/series/test_subclass.py | 86330b7cc69937ddca6b4a69d3796dfe6f93618c | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 2,084 | py | import numpy as np
import pandas as pd
import pandas._testing as tm
class TestSeriesSubclassing:
def test_indexing_sliced(self):
s = tm.SubclassedSeries([1, 2, 3, 4], index=list("abcd"))
res = s.loc[["a", "b"]]
exp = tm.SubclassedSeries([1, 2], index=list("ab"))
tm.assert_series_e... | [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
a9c3328717b43707b2bf21b0c04fd68897484d1a | 53ab530408135b31dce247ec76d5c70d143cae69 | /commands/deviot_languages.py | 7bf2dd70fa1de9434f58aff7c744c2adc80d5242 | [
"Apache-2.0"
] | permissive | hoat23/Deviot | d3ede1b5884cb421fa17832cc7fe56dcc598ce44 | 77a9e08059f9226ebf23a216b00c6ebb5b1cd054 | refs/heads/master | 2021-07-22T20:25:07.840839 | 2017-10-07T19:53:21 | 2017-10-07T19:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from sublime_plugin import WindowCommand
from ..libraries.quick_menu import QuickMenu
class DeviotLanguagesCommand(WindowCommand):
def run(self):
QuickMenu().quick_language() | [
"guillermoepd@hotmail.com"
] | guillermoepd@hotmail.com |
a794cd368971ddd7da52ea42ef11f525d6acfa03 | 4ebfb207661bafcebb9b75936318c7dc84db3d80 | /myvenv/Scripts/rst2s5.py | 8f3e1f9599c87a7c8383bf0cf545291231482abe | [] | no_license | YooInKeun/ToDo-App | 2c72a91488cb376ff6c380ccbe5106dfdae09ecb | c231e5b13936a33bf60e42268c1ad856495aa432 | refs/heads/master | 2022-12-11T18:41:06.856657 | 2019-09-12T07:39:25 | 2019-09-12T07:39:25 | 200,203,474 | 0 | 0 | null | 2022-11-22T04:13:58 | 2019-08-02T09:07:51 | Python | UTF-8 | Python | false | false | 718 | py | #!c:\users\keun0\onedrive\바탕 화면\창업 경진대회\todo\todo-app\myvenv\scripts\python.exe
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
... | [
"keun0390@naver.com"
] | keun0390@naver.com |
62de0d4b13ffe8a54f556b37db6ba423e609c33e | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/netapp/azure-mgmt-netapp/generated_samples/snapshots_get.py | 09de9918ef91a8f9e53d95e483bca18b08f524f3 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,614 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
a9f79e7b48f9cf3f29dd1c182f1d9c2383e76811 | 1977dfcd971bb80fd5926f00a86d37c21cf80520 | /y/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/compute/v1/compute_v1_messages.py | 4118a818714f4254ba137d38203a47c482413f3b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | camidagreat/music_game_poc | fd39cd1bbcddaee6ccac2601b95ec81d0358dbf8 | be3c69c026a254078e1dbcee936b368766092a5e | refs/heads/master | 2023-01-08T22:12:05.372029 | 2020-04-22T19:40:31 | 2020-04-22T19:40:31 | 204,744,171 | 0 | 1 | null | 2022-12-10T07:53:06 | 2019-08-27T16:27:00 | Python | UTF-8 | Python | false | false | 1,773,776 | py | """Generated message classes for compute version v1.
Creates and runs virtual machines on Google Cloud Platform.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
package = 'compute'
class Acc... | [
"l.bidigare.curtis@gmail.com"
] | l.bidigare.curtis@gmail.com |
657fe89cd2b81c2f222c3e4b5ec744eb2230ebac | 0f40272f221acd09932e5e4b7f6287300526c902 | /Programmers/Python/Code/줄 서는 방법.py | c1ff2fd5f910d0a0f0592e1a715b923f87a01fb8 | [] | no_license | wansang93/Algorithm | 60cfa0d5a3cda7e41096cb22537a35c4789fc9e8 | 65425d1bf8e49cc3a732680c0c1030a2dc0333ca | refs/heads/master | 2023-08-05T04:35:44.128549 | 2023-07-29T17:57:00 | 2023-07-29T17:57:00 | 225,189,092 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import math
def solution(n, k):
answer = []
nums = [i for i in range(1, n+1)]
k -= 1
while nums:
index = k // math.factorial(n-1)
answer.append(nums.pop(index))
k %= math.factorial(n-1)
n -= 1
return answer
data1 = 3, 5
print(solution(*data1))
| [
"wansang93@naver.com"
] | wansang93@naver.com |
999b382c9ad57d0ddfec93969cb49d317a2255d2 | a1a86ccffff5f1a8fdab92f58fe46cd66f9cc0e2 | /docrec/ocr__/recognition.py | 63a91f818d84a4929e0fb5014006eafe4fed7c67 | [] | no_license | ZhengHui-Z/deeprec-sib18 | 8ec2c3b5b2fb6bfc6879f28a28c56776a7aa4faa | 036171c33bc2f90645d8b9794aa0850c34a3ad05 | refs/heads/master | 2020-06-19T20:09:57.953934 | 2019-06-24T14:03:00 | 2019-06-24T14:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | import numpy as np
from pytesseract import image_to_string
from PIL import Image
from ..text.textprocessing import text2words
# http://www.nltk.org/howto/portuguese_en.html
# http://stanford.edu/~rjweiss/public_html/IRiSS2013/text2/notebooks/cleaningtext.html
# Run OCR
def image2text(image, language='en_US'):
l... | [
"paixao@gmail.com"
] | paixao@gmail.com |
7c07abfe45a78368fccc1684dd15011fba059c07 | 56ca0c81e6f8f984737f57c43ad8d44a84f0e6cf | /src/bpp/migrations/0293_pbn_api_kasowanie_przed_nie_eksp_zero.py | e14f1181b74a62c95a3a32e731aa17b60a5f7220 | [
"MIT",
"CC0-1.0"
] | permissive | iplweb/bpp | c40f64c78c0da9f21c1bd5cf35d56274a491f840 | a3d36a8d76733a479e6b580ba6ea57034574e14a | refs/heads/dev | 2023-08-09T22:10:49.509079 | 2023-07-25T04:55:54 | 2023-07-25T04:55:54 | 87,017,024 | 2 | 0 | NOASSERTION | 2023-03-04T04:02:36 | 2017-04-02T21:22:20 | Python | UTF-8 | Python | false | false | 784 | py | # Generated by Django 3.0.14 on 2021-09-15 19:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bpp", "0292_przypinanie_dyscyplin"),
]
operations = [
migrations.AddField(
model_name="uczelnia",
name="pbn_api_kas... | [
"michal.dtz@gmail.com"
] | michal.dtz@gmail.com |
040780f0a66c35d9feada04c693a6b39fc7f7acc | 70f564990215f47b139a777826f211477e9b44f6 | /plan2vec_experiments/analysis_icml_2020/local_metric_img_visualization.py | 832991f25694a02b928ea7dc8ae3ba5d41a0fb3b | [] | no_license | geyang/plan2vec | de87f2d77732c4aacdefd00067ebebacb7cd763f | aeeb50aed3d7da4c266b4ca163e96d4c0747e3c1 | refs/heads/master | 2022-11-16T03:40:42.638239 | 2022-10-28T04:01:29 | 2022-10-28T04:01:29 | 261,273,420 | 65 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | from plan2vec.plotting.maze_world.connect_the_dots_image_maze import Args, main
if __name__ == "__main__":
import jaynes
from plan2vec_experiments import instr, RUN, config_charts, dir_prefix
from os.path import join as pJoin, dirname, normpath
from ml_logger import logger
logger.configure(log_dir... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
29fabdd37b5eee248069bcbcc7c7fc5826ff0d69 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/1ed1c792986545bca6955b9771a56a39.py | d6cd9ce8061599c2e2f464b8921262b171bc563d | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 327 | py | class Bob:
def __init__(self):
pass
def hey(self, msg):
if msg == None or msg.strip() == '':
return 'Fine. Be that way!'
if str.isupper(msg):
return 'Woah, chill out!'
if msg[-1] == '?':
return 'Sure.'
else:
return 'What... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
a41438e4acb444093674b2f0a12897ce09c822f2 | 550c29e5eb1b767e1ba1d67970003ae60fe55038 | /docs/conf.py | aeb57f99fcc63784e75db695d17393fef961659d | [
"MIT"
] | permissive | Neraste/black | c5945e37a3dd90b6ab739e780b5f94fd57c586ce | 9d735d240bb5dee1ef5285883acfa69cddbcaa47 | refs/heads/master | 2020-03-20T00:51:26.343434 | 2018-06-12T12:43:22 | 2018-06-12T12:43:22 | 137,058,114 | 0 | 0 | MIT | 2018-06-12T10:48:43 | 2018-06-12T10:48:43 | null | UTF-8 | Python | false | false | 8,378 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"lukasz@langa.pl"
] | lukasz@langa.pl |
474c5c6d151d1b4d7a8b912ad1a74352ab53ca44 | 988205a1bc674399272d2b77f06bb6ae2c0b96ab | /student/urls.py | 0b3401187a6dbb34b251f3f7cd4c6d64ac2fea80 | [] | no_license | safwanvk/as | 7797f63f84d52ba2857e99ae99b4aa5b9fd67983 | 1de9e1a6855a0b3f16ffdb4d693cd90579a37e40 | refs/heads/main | 2023-04-01T14:44:18.047169 | 2021-03-31T07:03:15 | 2021-03-31T07:03:15 | 349,309,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.urls import path
from .views import *
urlpatterns = [
path('login', student_login),
path('session-check', session_check),
path('create', create_student),
path('delete/<pk>', delete_student),
path('', get_student)
]
| [
"safwanvalakundil@gmail.com"
] | safwanvalakundil@gmail.com |
444a7786b5c7a8bd07929aceea4b8c0e8d44e648 | a7853b95403b527a527f58cc4b94783161eaaa1d | /graph/graph_drawing_objective.py | 40aa76c8871f0204c2b489d8310a9b482574fa7a | [] | no_license | jinnaiyuu/covering-options | 6c3d2b2818d4074893d2eb1eed72fb77920bb3c3 | 00539a00842d40ba2b397496ec351a683f43d38f | refs/heads/master | 2020-12-19T23:54:41.080277 | 2020-01-23T21:33:21 | 2020-01-23T21:33:21 | 235,890,627 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | import numpy as np
import itertools
from scipy.optimize import minimize
from options.util import GetRandomWalk
def Attr(rho, P, fs):
# rho: numpy array of size N. prob.
# P : numpy array of size NxN. each row being a prob.
# F : list of numpy arrays of size N (TODO: should this be a numpy array?)
ret... | [
"ddyuudd@gmail.com"
] | ddyuudd@gmail.com |
b4143060947db0249cb4b379bf6a879771385ca7 | cf111b440f33ba9741ff45c60ac33dfade24e2ac | /Projects/Autocal/attic/autocal-20100708/libautocal/autocal.py | 2c143bfd55996a5b498ff00611aacad771a6a1c2 | [
"Unlicense"
] | permissive | fredmorcos/attic | cd08e951f56c3b256899ef5ca4ccd030d3185bc1 | 36d5891a959cfc83f9eeef003b4e0b574dd7d7e1 | refs/heads/master | 2023-07-05T10:03:58.115062 | 2023-06-21T22:55:38 | 2023-06-22T07:07:58 | 154,962,425 | 4 | 1 | Unlicense | 2023-06-22T07:08:00 | 2018-10-27T12:30:38 | JavaScript | UTF-8 | Python | false | false | 795 | py | #!/usr/bin/env python
import sys
import config, optimize, loader
_help = '''AutoCal 0.1 - Fred Morcos <fred.morcos@gmail.com>
Usage: ./autocal.py [COMMANDS] < <input-file>
Commands:
\t--qt\t\t\tShow the Qt user interface.
\t--verbose,-v\t\tShow debug output.
\t--quiet,-q\t\tDo not output errors.
\t--help,-h\t\tShow t... | [
"fred.morcos@gmail.com"
] | fred.morcos@gmail.com |
3f563dd24da29a3808436df13732d8d92dc6540f | baaff7bac9cf0e18bddc27ed7866885637db9dac | /Studentportal/principle/migrations/0005_auto_20200427_1626.py | 7f2dcf3448db240598d8725aa7c1bbb6ff382970 | [] | no_license | pratikgosavii/School-College-management-portal | 0d477718a315c73b483b3885fce38d94f8cf7227 | 79ca0be6891067379b1544f4a8cd8bd82b177b51 | refs/heads/master | 2022-06-03T23:07:11.080921 | 2020-04-30T22:40:58 | 2020-04-30T22:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # Generated by Django 3.0.2 on 2020-04-27 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('principle', '0004_auto_20200426_0042'),
]
operations = [
migrations.RemoveField(
model_name='addteacher',
name='Teac... | [
"pratikgosavi654@gmail.com"
] | pratikgosavi654@gmail.com |
a91efe540d7ef22c8d8655ae84aaf3bad07462a7 | 58375cb29ebcd2da7adc182fd10c6f76d6deee6e | /FOTS/rroi_align/modules/rroi_align.py | 7f3e5b4a21b030ab660d57f0a6ec05d9db7d052b | [
"BSD-3-Clause"
] | permissive | jiangxiluning/FOTS.PyTorch | d0d5a53595308335f20803d7a1d73274a4dad5a7 | 7484a81417f35b4f5c48edd3eb3e855416797379 | refs/heads/master | 2023-02-19T23:45:06.317493 | 2023-02-14T15:30:18 | 2023-02-14T15:30:18 | 142,129,096 | 726 | 236 | BSD-3-Clause | 2022-10-06T17:19:51 | 2018-07-24T08:31:45 | Python | UTF-8 | Python | false | false | 545 | py | from torch.nn.modules.module import Module
from ..functions.rroi_align import RRoiAlignFunction
class _RRoiAlign(Module):
def __init__(self, pooled_height, pooled_width, spatial_scale):
super(_RRoiAlign, self).__init__()
self.pooled_width = int(pooled_width)
self.pooled_height = int(poole... | [
"jiangxiluning@gmail.com"
] | jiangxiluning@gmail.com |
55a3ea9dd99ff3bd699c788ab07cea3e89d23de7 | 3f73ce74b6fdfb7966abb71a98f4986edd727c5f | /lib/pandas_option.py | 0db90923fd1ec5c8f68491c947fc9cd7b40b1acc | [
"MIT"
] | permissive | yuta-komura/amateras | 9c2efd310b18f159b1354864d65f9894ab93737f | cf8cc8fe0b5d8c382090fd1784a3ce96e6953157 | refs/heads/master | 2023-01-21T19:57:18.763894 | 2020-11-25T04:02:28 | 2020-11-25T04:02:28 | 297,432,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | import pandas as pd
def display_max_columns():
pd.options.display.max_columns = None
def display_max_rows():
pd.options.display.max_rows = None
def display_round_down():
pd.options.display.float_format = '{:.2f}'.format
| [
"you@example.com"
] | you@example.com |
c583e85a4941db164985b6a0183b73927b75c83d | 48d86947d5f3b5896c4a05cfcddcff01582a26ef | /amnesia/number/forms.py | fa9f1b18200101af1e9d576c327b0b05b5d1afa4 | [] | no_license | pratulyab/amnesia | 181874288c97fbf7e73d10c64e214c2a17574773 | 6b0b3428a27f98e0e2f6bb8aefdc8a4459e7b8cc | refs/heads/master | 2021-01-20T12:49:16.592335 | 2017-05-07T20:38:06 | 2017-05-07T20:38:06 | 90,409,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth import password_validation
from django.core.exceptions import ValidationError
from django.core import validators
from django.db.utils import IntegrityError
from django.utils.translation import ugettext_lazy as _
from number.... | [
"pratulyabubna@outlook.com"
] | pratulyabubna@outlook.com |
6ec05d3bc0cd2747d542611cb02e8455d14a425b | 4e0f2938b003f5d68a57f213e652fbffb2f72ba2 | /venv/Lib/site-packages/cx_OracleObject/Utils.py | e9107e5e7501b1942bcd28955a5ca2210e161f27 | [] | no_license | adcGG/Lianxi | e4b1ce0d3cfc76e625e1e1caca0a58f25ba5d692 | 3659c3ca11a13b4ad54dbd2e669949701bae10b5 | refs/heads/master | 2022-12-13T05:45:41.312292 | 2019-08-14T07:38:19 | 2019-08-14T07:38:19 | 201,189,540 | 0 | 1 | null | 2022-04-22T22:08:16 | 2019-08-08T06:07:53 | Python | UTF-8 | Python | false | false | 6,568 | py | """Defines utility functions."""
import cx_Exceptions
import sys
__all__ = [ "OrderObjects" ]
def ClausesForOutput(clauses, firstString, restString, joinString):
"""Return a list of clauses suitable for output in a SQL statement."""
if not clauses:
return ""
joinString = joinString + "\n" + restS... | [
"979818137@11.com"
] | 979818137@11.com |
9f80f8e98ba81fbc03fffe07a29c8ce878090be2 | 7971a30e49246a1080490c9641c29cb8fd575c12 | /Subset_DataStructures/remove_duplicates.py | 6781a36207b4e74472372b44658b8e5dafccec4e | [] | no_license | ymwondimu/HackerRank | 3870922a29a1e4271a1d3cfd238fd83fd80749c8 | 6481d7ddf61868108a071b44e3fdb098e8cbd61e | refs/heads/master | 2020-03-21T19:05:00.406134 | 2018-07-26T01:11:05 | 2018-07-26T01:11:05 | 138,929,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | #!/bin/python3
import math
import os
import random
import re
import sys
class SinglyLinkedListNode:
def __init__(self, node_data):
self.data = node_data
self.next = None
class SinglyLinkedList:
def __init__(self):
self.head = None
self.tail = None
def insert_node(self, no... | [
"ywondimu6@gatech.edu"
] | ywondimu6@gatech.edu |
07e0a3f5263b42f5cfbf6a40d74adadb61a31aac | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03836/s870323568.py | ad0d20b04f7d66288bd881e8921f6962e16fadd5 | [] | 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 | 516 | py | def main():
sx, sy, tx, ty = map(int, input().split())
x = tx - sx
y = ty - sy
s = ""
for i in range(2):
tmp = ""
if i:
tmp += "D"
tmp += "R"*(x+1)
tmp += "U"*(y+1)
tmp += "L"
else:
tmp += "R"*x
tmp += "... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ebca5a69981b65a76fc4c5c52dc7719fe9aabee3 | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/13015/13015.py2.py | 93bae9ee407b969a75da385bdc1739a27aa9d784 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
92764ee5fa04ada4b84d89a4c40d1645710675ca | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WW/FullRunII/Full2017_v9/njets/plot.py | b869826b875f6efbb25b48b65c4cd12b7f151232 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 5,738 | py | # plot configuration
nbins = 4
# groupPlot = {}
#
# Groups of samples to improve the plots.
# If not defined, normal plots is used
#
groupPlot['top'] = {
'nameHR' : 'tW and t#bar{t}',
'isSignal' : 0,
'color': 400, # kYellow
'samples' : [... | [
"saumya.phor4252@gmail.com"
] | saumya.phor4252@gmail.com |
018440f84f40bfcb4de4dbd4916932d807d54935 | 2c7f025568bceb560888d26828aef30e5ae23393 | /src/home-20170804/migrations/0015_auto_20170601_1925.py | aac40a81d41a1db348df5d1c203aa4f5437164e5 | [] | no_license | GustavoCruz12/educacao | 6271ebc71830ee1964f8311d3ef21ec8abf58e50 | d0faa633ed1d588d84c74a3e15ccf5fa4dd9839e | refs/heads/master | 2022-12-08T09:34:42.066372 | 2018-08-03T06:38:49 | 2018-08-03T06:38:49 | 143,387,426 | 0 | 0 | null | 2022-12-08T00:01:52 | 2018-08-03T06:31:03 | Python | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-01 19:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0014_auto_20170601_1923'),
]
operations = [
migrations.AlterField(
... | [
"gustavocruz201419@gmail.com"
] | gustavocruz201419@gmail.com |
7c720b9d543c458945310c10348f41a006a16bdb | 72900b002fc2c27ea92564da10a87b4c9ab75f63 | /contracts/tests/test_schedule_metadata.py | 66fe05df5396217794d2f39d48bc50611e0b4899 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | firefoxxy8/calc | f495443d28f7fd71da5e881a6d05d92aad2ba0fd | 7ceb2fcadd67bc9fbcb64cdaba50dbbdead0e803 | refs/heads/master | 2020-03-27T19:19:24.127137 | 2018-08-20T22:23:33 | 2018-08-20T22:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | from django.core.management import call_command
from django.test import SimpleTestCase, TestCase
from django.utils.safestring import SafeText
from contracts.models import ScheduleMetadata
def populate_schedule_metadata():
# This is SUPER weird. Previous TransactionTestCase runs (usually
# the result of a Liv... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
9ed3621af43e4f23d160e89f19f6d78356630961 | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/145.BinaryTreePostorderTraversal.py | cea3a772e720331356728cbbd39b0eca590101ba | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | # 145. Binary Tree Postorder Traversal
# Medium
# 2416
# 112
# Add to List
# Share
# Given the root of a binary tree, return the postorder traversal of its nodes' values.
# Example 1:
# Input: root = [1,null,2,3]
# Output: [3,2,1]
# Example 2:
# Input: root = []
# Output: []
# Example 3:
# Input: root = [1]... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
a490e7f1e6b2c65087dfabc08bfafafeb3f0052c | 5e9576c368e98927e2965bd2fb23bd35d9993d69 | /featuretools/primitives/standard/aggregation/time_since_last_false.py | da04a8d96f2ab98be1971c71fbac3b5a5bab51cb | [
"BSD-3-Clause"
] | permissive | alteryx/featuretools | c6e319e063e8e84e7684bf232376f95dc5272160 | c284c2d27a95b81e0bae913ac90df2b02c8f3b37 | refs/heads/main | 2023-08-25T12:21:33.945418 | 2023-08-23T16:30:25 | 2023-08-23T16:30:25 | 102,908,804 | 1,783 | 201 | BSD-3-Clause | 2023-09-07T18:53:19 | 2017-09-08T22:15:17 | Python | UTF-8 | Python | false | false | 2,223 | py | import numpy as np
import pandas as pd
from woodwork.column_schema import ColumnSchema
from woodwork.logical_types import Boolean, BooleanNullable, Datetime, Double
from featuretools.primitives.base import AggregationPrimitive
class TimeSinceLastFalse(AggregationPrimitive):
"""Calculates the time since the last ... | [
"noreply@github.com"
] | alteryx.noreply@github.com |
6d80c5e6129e225209760595077355c9ae9cdaac | 38c10c01007624cd2056884f25e0d6ab85442194 | /chrome/chrome_dll_bundle.gypi | 2a7c412d6691d2476d794c627214953543ac1abe | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 9,533 | gypi | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file contains resources for the main Mac chromium bundle.
{
# The main browser executable's name is <(mac_product_name).
# Certain things will... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
d69efc6966a7a0dd85157fa1130e54581402b0c7 | 2feb8dfebbf10ffd03f02bea643195c942ed6739 | /list_doublesplits.py | e6f81a0f131079bc59c5d382b3d93bc6415a1860 | [] | no_license | Prads16/PythonForEverybodyCourseraSpecialization | f961648eb1c92fe7cc41468c278589b151e59cab | 997056b3de23ed1d01f6bb1c94c6b850c114368e | refs/heads/master | 2021-04-12T05:02:42.912896 | 2018-03-27T18:53:26 | 2018-03-27T18:53:26 | 125,952,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #Open the file mbox-short.txt and read it line by line. When you find a line that
#starts with 'From ' like the following line:
#From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008
#You will parse the From line using split() and print out the second word in the
#line (i.e. the entire address of the person who sent... | [
"pradnya.ambre16@gmail.com"
] | pradnya.ambre16@gmail.com |
1b3b643a9de2d0688ccc6fd43534603d811be2eb | 927b50cdaf1c384c8bbf6f13816d0ba465852fd8 | /machine_learning_models/ctscan_covid_prediction/cnn.py | 61c6c1a50ac8a0e672cbe76c993cee29544e1ef9 | [
"MIT"
] | permissive | jhabarsingh/DOCMED | f37d336483cffd874b0a7db43677c08a47bd639c | 8a831886d3dd415020699491687fb73893e674c5 | refs/heads/main | 2023-04-26T06:45:10.409633 | 2021-05-19T14:37:53 | 2021-05-19T14:37:53 | 316,683,855 | 3 | 5 | MIT | 2021-02-21T13:32:33 | 2020-11-28T07:51:22 | JavaScript | UTF-8 | Python | false | false | 2,926 | py | import tensorflow as tf
import keras
import pandas as pd
import numpy as np
import zipfile
import os
from random import randint
from keras.layers import Dense,Flatten,MaxPool2D,Conv2D,Dropout,GlobalAveragePooling2D
from keras.losses import binary_crossentropy,categorical_crossentropy
from keras.models import Model,Sequ... | [
"jhabarsinghbhati23@gmail.com"
] | jhabarsinghbhati23@gmail.com |
745bcadbece4be250f6c1d6a9990da5454da9590 | e79d0a9a8143e03705979d2f8ce78e278d2078c0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/aio/operations/_virtual_network_gateways_operations.py | 867d69b692014f5561a8e8d194099242c85628cf | [
"LGPL-2.1-or-later",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | dannysijia/azure-sdk-for-python | f2c276600d1ba48620e8d1c73b57eb8e3c73e35a | 71bd202f5261e7ce8b2db38bb9b6802f1a55a5dc | refs/heads/main | 2023-08-22T04:15:24.519733 | 2021-11-01T08:25:59 | 2021-11-01T08:25:59 | 423,389,780 | 0 | 0 | MIT | 2021-11-01T08:25:28 | 2021-11-01T08:25:28 | null | UTF-8 | Python | false | false | 83,933 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | dannysijia.noreply@github.com |
7d7cada6debb9f178ad60a991eb6e7cb110ccb8e | dcda5ba16474dd8ff650e04e7f4a9bf700f6a9ff | /shop/admin.py | 35ea34c67b82499abed52b603a899222fbc1937b | [] | no_license | 007vict/shopbyexample | 2084d6e53faafb5c7e856cc8b3a5ff43bc3a82e2 | bc7dcfe5818499731c3cbf956c9c0b95cf3791da | refs/heads/master | 2022-12-21T13:05:08.425653 | 2019-04-10T10:30:41 | 2019-04-10T10:30:41 | 177,291,341 | 0 | 0 | null | 2022-12-08T04:58:00 | 2019-03-23T13:18:59 | JavaScript | UTF-8 | Python | false | false | 667 | py | from django.contrib import admin
from .models import Category, Product
from parler.admin import TranslatableAdmin
@admin.register(Category)
class CategoryAdmin(TranslatableAdmin):
list_display = ['name', 'slug']
def get_prepopulated_fields(self, request, obj=None):
return {'slug': ('name',)}
@admin.r... | [
"super_vg@bk.ru"
] | super_vg@bk.ru |
616df77085bb95807dd89413c1aa21dd7e7250a7 | 442ccaa620eb22d51378a45941d021b44d7cde98 | /src/courses/admin.py | daed5cd7fc1160232f05616b0ed9cc628995f6df | [] | no_license | achiengcindy/supreme-school | 43884b3c34fcac51d8f6ab4df38ee923f473fec9 | c3777cb5f63ec41a167f87f0c7ec6a575e88ff0b | refs/heads/master | 2021-01-16T01:57:01.590225 | 2020-03-26T01:40:14 | 2020-03-26T01:40:14 | 242,935,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from django.contrib import admin
from .models import Subject, Course, Module
# Register your models here.
@admin.register(Subject)
class SubjectAdmin(admin.ModelAdmin):
list_display = ['title', 'slug']
prepopulated_fields = {'slug': ('title',)}
class ModuleInline(admin.StackedInline):
model = Module
@adm... | [
"achiengcindy36@gmail.com"
] | achiengcindy36@gmail.com |
259eb83402332534b5d99c0a6e094279776f1915 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=73/params.py | 885ca21da69a7e1b42cd2a69b712f6a68b7f435e | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.532857',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.65',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 73,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
3f52dd08607f49f62ba2a9fcf0763299051fc089 | 4c7fc810eb442b386969bf345b4dc6ef3152c783 | /src/transformers/models/pegasus/configuration_pegasus.py | ae5f8f007573b77a2c22f667698e25ef5bd39b3e | [
"Apache-2.0"
] | permissive | newcodevelop/transformers | fbcef5d703b12febf6e76e84e3f0493769fb9d37 | e8d1bd7427021d2114ec159b2c90c6b1fcddeae7 | refs/heads/main | 2023-03-15T11:45:09.906184 | 2022-08-30T07:26:17 | 2022-08-30T07:26:17 | 254,360,734 | 0 | 1 | Apache-2.0 | 2020-04-09T12:07:09 | 2020-04-09T12:07:08 | null | UTF-8 | Python | false | false | 7,868 | py | # coding=utf-8
# Copyright 2021, Google and The HuggingFace Inc. team. 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
... | [
"noreply@github.com"
] | newcodevelop.noreply@github.com |
c7bf6347a9483578c151ba6fdf82003fc374d7ff | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L82/82-80_MD_NVT_rerun/set_2.py | 418a71c6ac0ba7775d409fa90b0c3d5147873a7b | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L82/MD_NVT_rerun/ti_one-step/82_80/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_2.in'
temp_pbs = filesdir + 'temp_2.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
68b3cec1b5512d4fcda2395d608d5ebd33c2902e | 3284ba582d3f43a2e4ec7ae8e024bea77cc28a1f | /venv/Scripts/easy_install-script.py | 3fb5bc1ddb5edb3ae60e2577ce2967b7a1e385f0 | [] | no_license | Rubensrvsc/Search-keyword | f00b9687a607cde169abef1bb73c4d6bf6ba07d6 | b7f0c31d0157d9784dfbe5be9140072b8dcbabb1 | refs/heads/master | 2020-03-29T20:52:45.826118 | 2018-10-02T18:26:32 | 2018-10-02T18:26:32 | 150,336,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!C:\Users\ruben\PycharmProjects\Search-keyword\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"Rubensspfc100@gmail.com"
] | Rubensspfc100@gmail.com |
4b22873ba2b86ee6f8f353268dab2f9cda56c13c | d77c8e7d5ec57940a2e1ee0e9836fb6181b0e051 | /user.py | ff88009a1f188531003aede35af3ba5cdd19b583 | [] | no_license | ultralegendary/Git-RPG | 6111ea5bb25ecbd5d86d4a577935e8aa0fc40f15 | db3caeea635a56303a971a4ee6488de7963a5aa2 | refs/heads/master | 2023-03-21T14:15:18.612195 | 2021-03-14T14:06:57 | 2021-03-14T14:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import sqlite3
import os
"""Db structure:
{
user_name = ...
file_path = ...
level = {
lvl_no: ["init","commit",....],
}
"""
basepath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "user.sqlite3")
class User:
def __init__(self, path=None):
"""Takes a file-path"""
... | [
"npc203@users.noreply.github.com"
] | npc203@users.noreply.github.com |
422b89a625e8ed71bceb6edd8df9b18591547f09 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/codeabbey/_CodeAbbeyPythonSolutions-master/matching_brackets.py | 6e1fa02b64da38699b6c5780bcf0007efcd986dd | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 745 | py | _______ __
amount_values i..(input
results # list
___ is_matching(word
word __.sub _ [^()[\]{}<>]","",word)
open_brackets ["[","(","{","<"]
close_brackets ["]",")","}",">"]
open_brackets_in_word = # list
___ i __ word:
__(i __ open_brackets
open_brackets_in_word.a..(i)
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6f16a1c2b4dac3fc4a91743e308c6b7a3bc0d011 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/bigquery/storage/v1/bigquery-storage-v1-py/setup.py | f20749fb5fe943b8d9cce3d3b649c3f8f26a9e70 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
29fe8a900520b7b684149b1f22f380300671c0f6 | 0fd2b832673946c9ee532686a2a35bf2680f8408 | /CybORG/CybORG/Shared/Results.py | 59e18af053e39645c2884ab3d8a515ea1d15a00f | [
"MIT"
] | permissive | pvu1984/cage-challenge-2 | 4e57bad7bc30c7df2b90c2fabc8395a5f2a3e65c | e76722dcd79a6b7511e185cde34fac1e0b45720e | refs/heads/main | 2023-09-02T15:11:32.072215 | 2021-11-12T02:33:19 | 2021-11-12T02:33:19 | 429,307,660 | 0 | 0 | MIT | 2021-11-18T05:27:36 | 2021-11-18T05:27:35 | null | UTF-8 | Python | false | false | 2,588 | py | # Copyright DST Group. Licensed under the MIT license.
import pprint
from copy import deepcopy
from CybORG.Shared.Observation import Observation
class Results:
def __init__(self,
observation: dict = None,
done: bool = None,
reward: float = None,
... | [
"david@pop-os.localdomain"
] | david@pop-os.localdomain |
94d3ea0be5e02f307d069584e4530c7fdc6abeaa | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/central/providers/export_provider.py | d5199774472543a2fd7b5a3ccb8a34bb9aa676be | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 4,040 | py | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9293d417b66ad07a3eb2ecf542809cd46dfaa542 | 7cb322bfb75500e1627f0d6306789f0c3c59e83f | /django_eveonline_connector/signals.py | e09bb78e636047511d0260cf337617d72affeb7a | [
"MIT"
] | permissive | Demieno/django-eveonline-connector | 9e0cfc6b091d408407544d4486cc5d7ffcf9c3f4 | 7aa47440b5a4df19545c3499d63e39f202f46c61 | refs/heads/master | 2020-12-14T03:45:15.594067 | 2020-01-02T20:57:27 | 2020-01-02T20:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | from django.contrib.auth.models import User, Group
from django_eveonline_connector.models import EveScope, EveClient
from django.dispatch import receiver
from django.db.models.signals import post_delete, post_save
from django.db import transaction
from django.core.exceptions import PermissionDenied
import logging
logg... | [
"porowns@gmail.com"
] | porowns@gmail.com |
2fb7cc835fea101c3497563093dc6b59a9d34543 | 1afa6c852dfc922d1a26a384d965976f31a87692 | /Common/ComputationalGeometry/Testing/Python/CSpline.py | e7feea105e904f590ff75a762cdd74fb4e846c28 | [
"BSD-3-Clause"
] | permissive | dgobbi/VTK | 631d037aacc7258861e70f77c586b01cd4ebff3f | 17f232ee440025c26bc78a897edef78e9fc78510 | refs/heads/master | 2021-01-04T22:27:46.611907 | 2013-03-01T19:44:02 | 2013-03-01T19:44:02 | 938,377 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,097 | py | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Now create the RenderWindow, Renderer and Interactor
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
iren = vtk.vtkRenderWindowInteractor()
iren.S... | [
"nikhil.shetty@kitware.com"
] | nikhil.shetty@kitware.com |
420be6e88a79c87d5b2471c3931dafe4d1dfad6a | 85aa478ce6d022adfaff9a0294c3175444138669 | /v8_llevatelo/report_odoo_extended/report_valorizado.py | 05aee0bb05a4d52bbaa9d2616fb8891da2438f4d | [] | no_license | odoopruebasmp/Odoo_08 | 915d08bd3ac6321e43fce56a3a32ad9095d8602a | b75f92b4216ca19fd31af005c3e3f7985b3a4c27 | refs/heads/master | 2023-06-26T18:14:27.576001 | 2021-08-03T15:53:04 | 2021-08-03T15:53:04 | 389,694,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,188 | py | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import xlsxwriter
from openerp import models, fields, api
import openerp.addons.decimal_precision as dp
from openerp.http import request
from openerp.addons.avancys_orm import avancys_orm
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
class V... | [
"soporteerp@moreproducts.com"
] | soporteerp@moreproducts.com |
f6d3e340501fec410b715d1833190efc7d8adbd5 | 11264216ba391738e87696c2d4c2c7c4600aa056 | /lecture5/lecture5/lecture5/urls.py | 1e60e2c877a38f66b5e85d31d0a6a56ec8f305d5 | [
"MIT"
] | permissive | CSUChico-CINS465/CINS465-Fall2016-Lecture-Examples | 2775e84e4152a402ce1602fea9dffe363a7028d7 | 332df2821aef74c6522c53278e28ceb27cbe2fe6 | refs/heads/master | 2020-06-30T00:57:58.322717 | 2016-11-08T01:19:40 | 2016-11-08T01:19:40 | 66,382,719 | 0 | 3 | null | 2016-10-06T16:34:13 | 2016-08-23T16:10:32 | Python | UTF-8 | Python | false | false | 817 | py | """lecture5 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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-b... | [
"javawolfpack@gmail.com"
] | javawolfpack@gmail.com |
25dbc0f67dd0f2b7ad3b38e4f59b589d9570d866 | c9144edf6236e8214cc54f6c24f5689d11aff1a8 | /week10/yghoon/keypad.py | 500187cc35b217402b14fc2ada564727f2730e73 | [] | no_license | dohvis/kmu-sw-proj | 10aa60066c1a3a11e9f05f54effb22935c8c4381 | 8ab1996f84d80f322b64d35e71cb1a8f0d90c108 | refs/heads/master | 2021-08-23T13:15:46.962343 | 2017-12-05T01:44:56 | 2017-12-05T01:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from calcFunctions import factorial, decToBin, binToDec, decToRoman
numPadList = [
'7', '8', '9',
'4', '5', '6',
'1', '2', '3',
'0', '.', '=',
]
operatorList = [
'*', '/',
'+', '-',
'(', ')',
'C',
]
constantDics = {
'pi' : '3.141592',
'빛의 이동 속도 (m/s)' : '3E+8',
'소리의 이동 속도 ... | [
"the_basic_@kookmin.ac.kr"
] | the_basic_@kookmin.ac.kr |
a9434d2aa6368d8259029d3de1bd9374cec21a2a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/726.py | 511cfe53fe71d562c63735db511b437a68cc20d6 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | f = open('B-small-attempt2.in','r')
fo = open('result.txt','w')
t = int(f.readline())
# 0N, 1R, 2O, 3Y, 4G, 5B, and 6V.
d = [[],[2,6],[1,3],[2,4],[3,5],[4,6],[5,1]]
e = [[],[3,4,5],[4,5,6],[1,5,6],[1,2,6],[1,2,3],[2,3,4]]
st = 'XROYGBV'
for ti in range(t):
u = [int(x) for x in f.readline().split()]
#... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a55c909ea302272ae58bf65f53197abc7929f606 | 45a153a8e27b552d82d137bd94f2d5d0aec3c889 | /GoogleCLoudwithTwilio/google-cloud-sdk/lib/surface/app/gen_repo_info_file.py | 6b22de0c01c26795d53203fb8e81f01af51444b1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Pooshan/App-using-Twilio | 84bc0be1f091c678528bdf161c9fbb0af617fc0e | a6eea3f40ef9f22a7ab47c1f63b90deaa2620049 | refs/heads/master | 2022-11-23T23:56:49.754209 | 2016-10-01T18:47:25 | 2016-10-01T18:47:25 | 69,719,320 | 0 | 1 | null | 2022-11-02T19:48:20 | 2016-10-01T04:26:37 | Python | UTF-8 | Python | false | false | 4,572 | py | # Copyright 2014 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... | [
"pooshan.vyas@gmail.com"
] | pooshan.vyas@gmail.com |
532cc4ddfc202f25fa9ed7132ee9c92ef072a74f | dc51e4714820d991e7d0e94b3e9eac4dbc67eea7 | /历史练习1120/ORM/ORM/urls.py | a9cd9beec8294e07764e7493c49273e1e3ed6c17 | [] | no_license | ruoxiaojie/Django | 537d27abe9ebb85e0dfc69585f318a87e7514a70 | 92b88600953cd4ff743032cab3d4785437c949e0 | refs/heads/master | 2021-01-15T22:18:56.033883 | 2018-03-09T06:15:46 | 2018-03-09T06:15:46 | 99,894,862 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | """ORM URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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-based ... | [
"475030894@qq.com"
] | 475030894@qq.com |
38a29097fb677afe38a3f4e24a7ca69dea1596b0 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day06/jiangyi/day06/day05_exercise/99.py | 98eb958a8ab699da85a2d9454f6e34a6e82a1522 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # 1. 写程序打印九九乘法表
# 1x1=1
# 1x2=2 2x2=4
# 1x3=3 2x3=6 3x3=9
# ....
# 1x9=9 .......... 9x9=81
for x2 in range(1, 10):
for x1 in range(1, x2 + 1):
print("%dx%d=%d"%(x1, x2, x1 * x2), end=' ')
print() # 换行
| [
"442315617@qq.com"
] | 442315617@qq.com |
0eedd09812bb4c2cbf5a57643d7aac8c1c200214 | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /AI/05_tictactoe/01object_grid.py | b3c72f860a52becf43b6c430e74fbbe1f3bc4994 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/env python
import numpy as np
import itertools
class gameboard(object):
def __init__(self):
#player 1 puts a "X", player 2 puts a "O"
self.g = [[0,0,0],[0,0,0],[0,0,0]]
self.grid = np.array(self.g)
print(self.grid)
def checkWin(self):
if ((self.grid.... | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
e8c235b55e0f91859013f3f878d062126d0be59f | 1cb2e45c87c1b961d33cfcbed95f765ca3be15b1 | /0x22-primegame/main_8.py | b78832497631e5415d3cb06df9fadfd917647b07 | [] | no_license | icculp/holbertonschool-interview | a93b5e213861c3349733df1042bc7c323e8129ad | e49ac9e2f3dc356a9cae177472ac54c2e55edabf | refs/heads/main | 2023-07-26T08:41:17.638936 | 2021-08-26T17:09:29 | 2021-08-26T17:09:29 | 319,488,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!/usr/bin/python3
"""
Main file for testing
"""
isWinner = __import__('0-prime_game').isWinner
nums = [0] * 10000
for i in range(10000):
nums[i] = i
print("Winner: {}".format(isWinner(10000, nums)))
| [
"icculp@gmail.com"
] | icculp@gmail.com |
8ee49add3d08eb326c2b2eb0441beefb3936465b | c5471ada76f276752255b34b910da799dc29d804 | /2016/day/11.py | 0214968c95823e0b526e4725bbb4ea03394a88a3 | [] | no_license | MasterMedo/aoc | 3c75a3b02ed6e65f9a5be2f393af884c79914209 | 42ccde20f31b99bc9e49248a58b732dca5972c69 | refs/heads/master | 2022-12-22T13:22:59.562745 | 2022-12-22T06:29:39 | 2022-12-22T06:29:39 | 112,675,225 | 31 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | import re
from itertools import combinations, chain
from heapq import heappop, heappush
generators, microchips = {}, {}
with open('../input/11.txt') as f:
for floor, line in enumerate(f):
for microchip in set(re.findall(r'\w+(?=-comp)', line)):
microchips[microchip] = floor
for genera... | [
"mislav.vuletic@gmail.com"
] | mislav.vuletic@gmail.com |
d7b9041bc53a89ae60f21bc5562483eb05692a1a | 7b20e2f86c2bb2145ae9ca5bcd4b9ad1566e79b0 | /ABC/ABC134/D.py | 53b03aa78f43b3f56626b735bd9b2b2e47171ff2 | [] | no_license | pto8913/KyoPro | 5f5e769960dfec73af5b0f338f32659ff067094b | 29ebc30a3d45fea273cb9034fba8311673a406dd | refs/heads/master | 2021-06-13T16:43:40.275854 | 2021-03-23T00:02:25 | 2021-03-23T00:02:25 | 174,684,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | N = int(input())
A = list(map(int,input().split()))
box = [0] * (N+1)
res = []
for i in range(1, N+1)[::-1]:
s = 0
for j in range(1, N // i):
s += box[(j+1)*i]
if s % 2 != A[i-1]:
box[i] = 1
res.append(i)
print(len(res))
print(*res)
| [
"noreply@github.com"
] | pto8913.noreply@github.com |
b1967d3e0558202aea64db2d93f90760ba779a18 | 0f2a123478c6fb5941c4180c76fa663833d3c764 | /service/neighborhood.py | dfeeab71407cb8d5ab381e80c1088ed2c3ee5e0f | [
"Apache-2.0"
] | permissive | curtislisle/EntityAlignLarge | 77fc650251724dc5eec9dbde13d34b91dd0d62b9 | d629ef14b5f6abe3f0c758f8df92139dc9d01f07 | refs/heads/master | 2021-01-18T20:32:05.074741 | 2015-07-02T01:36:13 | 2015-07-02T01:36:13 | 35,761,970 | 0 | 1 | null | 2015-07-02T01:36:13 | 2015-05-17T10:32:24 | JavaScript | UTF-8 | Python | false | false | 3,139 | py | import bson.json_util
from bson.objectid import ObjectId
import json
from pymongo import MongoClient
def freeze(rec):
return (str(rec["_id"]), rec["data"]["id"], bson.json_util.dumps(rec))
def process(frozen):
rec = json.loads(frozen[2])
processed = {"key": rec["_id"]["$oid"]}
processed.update(rec[... | [
"clisle@knowledgevis.com"
] | clisle@knowledgevis.com |
5bb2b74aa55d11d9b44d494e10be4f68c00ff231 | 919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2 | /conans/client/conf/compiler_id.py | b7c41a8a1eea9e2e37c4739768e140e40f232885 | [
"MIT"
] | permissive | thorsten-klein/conan | 1801b021a66a89fc7d83e32100a6a44e98d4e567 | 7cf8f384b00ba5842886e39b2039963fc939b00e | refs/heads/develop | 2023-09-01T12:04:28.975538 | 2023-07-26T10:55:02 | 2023-07-26T10:55:02 | 150,574,910 | 0 | 0 | MIT | 2023-08-22T14:45:06 | 2018-09-27T11:16:48 | Python | UTF-8 | Python | false | false | 9,047 | py | import os
import tempfile
from six import StringIO
from conans.client.runner import ConanRunner
from conans.model.version import Version
from conans.util.files import rmdir
GCC = "gcc"
LLVM_GCC = "llvm-gcc" # GCC frontend with LLVM backend
CLANG = "clang"
APPLE_CLANG = "apple-clang"
SUNCC = "suncc"
VISUAL_STUDIO = "... | [
"noreply@github.com"
] | thorsten-klein.noreply@github.com |
092fd67ed334bb3399c9ae96c5673c7487a8ca76 | 31bb411ccdc1581e5a5c9e8acd7fc7c5ffde1067 | /prosper/datareader/intrinio/auth.py | e80a448395a989d2f2f94b1c20e579d053708ca7 | [
"MIT"
] | permissive | EVEprosper/ProsperDatareader | c58b645bab80cbb946cfddd657921a9dadbf403b | 31f0d77074c21222161774f4d653326925611167 | refs/heads/master | 2021-01-01T19:45:39.506553 | 2018-06-13T16:18:03 | 2018-06-13T16:18:03 | 98,676,957 | 0 | 1 | MIT | 2019-01-22T06:09:17 | 2017-07-28T18:32:41 | Python | UTF-8 | Python | false | false | 2,983 | py | """prosper.datareader.intrinio.auth: handle authentication/validation"""
import requests
from .. import exceptions
from .. import config
BASE_URL = 'https://api.intrinio.com/'
class IntrinioHelper(object):
"""parent class for handling requests to Intrininio
Notes:
See https://intrinio.com/account fo... | [
"locke.renard@gmail.com"
] | locke.renard@gmail.com |
739a10dd59b002a18843a90b852d29a3bd234b9b | e41b573b7d2822ba00123e28d1ad6fe39db0631f | /portal/editstore/decorators.py | b12b9ac81dbf47941368253f1213fefb119f6633 | [] | no_license | epodreczniki/epodreczniki-portal | 1e7fc583bd24dc6962fefdc2a2002835a39e122d | 3f3d033c87a186d43cecd119ffe1172d7720c638 | refs/heads/master | 2021-01-16T21:46:12.400414 | 2017-01-31T21:24:35 | 2017-01-31T21:24:35 | 64,475,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | # coding=utf-8
from __future__ import absolute_import
from django.shortcuts import render
from store.exceptions import NiceException
import functools
from editstore.objects import drivers, SpaceDriver
from editstore import models
from django.shortcuts import get_object_or_404
from editstore import exceptions
from comm... | [
"kontakt@epodreczniki.pl"
] | kontakt@epodreczniki.pl |
0b7c4c174ac6c7f498f46996277dc543c4576816 | 7969cea981b2d2c665b62c4de58c2d9556bfeaad | /original/test_new_vctk.py | 3ba4d093058763ef3f014e46af880a1b0c508a41 | [] | no_license | xcmyz/Forced-Alignment | 106dc73072d34bb07e881ee310e2a4a327230214 | c20dd4c892c39b5d6a0ee6bef673ac523621f15e | refs/heads/master | 2020-05-02T03:52:30.079472 | 2019-04-17T09:40:48 | 2019-04-17T09:40:48 | 177,738,186 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import os
from nnmnkwii.datasets import vctk
import hparams as hp
# speakers = vctk.available_speakers
# print(speakers)
# print(len(speakers))
speakers = list()
for file in os.listdir(os.path.join(hp.vctk_processed, "wav48")):
speakers.append(str(file[1:4]))
# print(speakers)
# print(len(speakers))
... | [
"noreply@github.com"
] | xcmyz.noreply@github.com |
f3abd2898ef25b92b7c5f64799adadc6acde5e1d | 5783be589f9f6ab590ea097eb9b84fa3786617e4 | /Trie/contacts_list.py | 31c37f25db381989e9aad83a48ec1dcf4f978847 | [
"Apache-2.0"
] | permissive | suyash248/ds_algo | 5751e46ba4b959f0dd3f6843800f3e21d52100ac | 1ca9470c33236016cbb88a38b2f19db41535e457 | refs/heads/master | 2022-12-10T10:39:16.135888 | 2022-12-06T16:45:25 | 2022-12-06T16:45:25 | 58,738,512 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,179 | py | # https://www.youtube.com/watch?v=vlYZb68kAY0 - Contacts list
# Insert and search costs O(key_length), however the memory requirements of Trie is O(ALPHABET_SIZE * key_length * N)
# where N is number of keys in Trie.
# https://www.youtube.com/watch?v=AXjmTQ8LEoI
class ContactNode(object):
def __init__(self):
... | [
"suyash.soni248@gmail.com"
] | suyash.soni248@gmail.com |
2bb7c7ba3061c50db496fcc55f5566792482e2cd | 65c8a6a7af2ee8cdf3866d012ea814887bd68a26 | /ppro360_automation/Ppro360/CoachingAndTriadCoaching_Pages/RapidFireProcessConfirmation.py | 0a3d8240f845597bb551d6c2ea4dd50383a5257f | [] | no_license | 1282270620/automation_test | 9b3c595c3f7a139ded0a638ae4bcf31e0b7f9686 | 3faf86f0d641089eaf27eba906d22157dd2c1f5d | refs/heads/master | 2020-04-01T06:35:33.873989 | 2018-10-21T03:05:17 | 2018-10-21T03:05:17 | 152,954,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | '''
Created on 20171101
@author: lei.tan
'''
from selenium.webdriver.common.by import By
from Tablet_pages import BasePage
class RapidFireProcessConfirmation(BasePage.Action):
def __init__(self):
self.callRecordingNumber_loc=(By.XPATH,"//*[@id='container']/div/section/div/form/div/div[... | [
"1282270620@qq.com"
] | 1282270620@qq.com |
c218c71173502582b74a6b241a8f7da1b3befe41 | 4c3e2557044884be630d3c6c47c3e446f951c681 | /Contest/ABC020/B.py | 29b372eb99969ecea9bb9383c5018b6e223e5b8f | [] | no_license | monda00/AtCoder | 01bdf89338c22f1792fde7f85728e01d97e5fd34 | abf947f2cdfe87486ad8935ba078918d4809573a | refs/heads/master | 2021-11-10T00:54:01.144582 | 2021-11-07T13:24:03 | 2021-11-07T13:24:03 | 186,128,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | a, b = input().split()
ab = int(a + b)
print(ab * 2)
| [
"monda0524@gmail.com"
] | monda0524@gmail.com |
f2ec15ec6b195fffb34cf7280adecd51ca8ee052 | 95d1dd5758076c0a9740d545a6ef2b5e5bb8c120 | /PY/basic/class_inherit.py | 98146eaa6d42f48c981e6d630f45405486b34194 | [] | no_license | icoding2016/study | 639cb0ad2fe80f43b6c93c4415dc6e8a11390c85 | 11618c34156544f26b3b27886b55c771305b2328 | refs/heads/master | 2023-08-31T14:15:42.796754 | 2023-08-31T05:28:38 | 2023-08-31T05:28:38 | 117,061,872 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | #!/usr/bin/python
from __future__ import print_function
class B(object):
class_var = None
def __init__(self):
print("Class B init..")
self.inst_var = 0
def func(self):
print("B::func()")
print("class_var=%s" % self.class_var)
print("inst_var=%s" % self.inst_var)
... | [
"icoding2016@gmail.com"
] | icoding2016@gmail.com |
f967c5af25bac400dae4bde6a3438947838cd97e | e35eb92b5ab6547119585004b9eea3cafe948050 | /efsw/storage/errors.py | 84ab6044f4679693c7697a6ed29b48ba498314da | [] | no_license | einsfr/mmkit | 0a084db85b2cf5ba268e692676095d768733f387 | f12bc2f83254a3123e02abdc105816cc04c438b5 | refs/heads/master | 2020-12-31T05:56:19.287611 | 2016-06-10T05:56:58 | 2016-06-10T05:56:58 | 29,473,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | FILE_DOES_NOT_EXIST_IN_STORAGE = 'В хранилище "{0}" отсутствует файл "{1}".'
STORAGE_DOES_NOT_CONTAIN_FILE = 'Файл "{0}" не принадлежит хранилищу "{1}".'
FILE_ALREADY_EXISTS_IN_STORAGE = 'Файл "{0}" уже существует в хранилище "{1}".'
STORAGE_ROOT_NOT_FOUND = 'Корневая папка хранилищ "{0}" не существует.'
STORAGE_ROOT_R... | [
"einsfr@users.noreply.github.com"
] | einsfr@users.noreply.github.com |
283f427e9d9fd76dffc9aa0194a13ceee65c1eed | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6010/210006010.py | 9c9a3fead2b5be7e1936e8c84d815fd4b8fdba06 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,639 | py | from bots.botsconfig import *
from records006010 import recorddefs
syntax = {
'version': '00601',
'functionalgroup': 'IM',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'B3', MIN: 1, MAX: 1},
{ID: 'C2', MIN: 0, MAX: 1},
{ID: 'C3', MIN: 0, MAX: 1},
{ID: 'ITD', MIN: 0, MAX: 1},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
262e5a8fc1b3277a125ac7ac66fefddc56cae93a | a457e3284fa1f32257969a72c69082dd0179eb73 | /gladweb/config.py | ef8979cda314e9b8cbea6d22467ff25691cdb8b3 | [] | no_license | slow2go/glad-web | 19377a6f17f19a4ebc46bc9c61afc9f709f628b0 | 13f8674c9602d1288b5de9437cf618e835fcac4e | refs/heads/master | 2021-01-24T08:29:43.615111 | 2017-05-22T14:29:30 | 2017-05-22T14:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # ---
# Default Configuration
# ---
import os
import gladweb.cache
base_path = os.path.abspath(os.path.join(os.path.split(__file__)[0], '..'))
# ---
# Flask
# ---
# This key MUST be changed before you make a site public, as it is used
# to sign the secure cookies used for sessions.
SECRET_KEY = 'ChangeMeOrGetHacke... | [
"admin@dav1d.de"
] | admin@dav1d.de |
b182d112f6cb1b8565fb48e838a02291e2d64987 | 2bcc421ee345b00cf805c543b37d18b5d019dc04 | /adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/azureiot_central_properties.py | 415f9b7095f77f7c046958466f0ecc7f3a5f28bd | [] | no_license | saewoonam/sc-current-source-titano | 5a1ad46889c1b09c168424901fd71cb4eab5c61b | 1c136aa8b61268d9ac0b5a682b30ece70ab87663 | refs/heads/main | 2023-03-02T22:12:26.685537 | 2021-02-09T03:28:01 | 2021-02-09T03:28:01 | 317,299,900 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | import random
import time
import board
import busio
from digitalio import DigitalInOut
import neopixel
from adafruit_esp32spi import adafruit_esp32spi, adafruit_esp32spi_wifimanager
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
from adafruit_ntp import NTP
# Get wifi details and more from a sec... | [
"nams@nist.gov"
] | nams@nist.gov |
73a1f841632a9f0870b9f634bf909faf5101b1ad | f7ea41fc9d1b23fa5da8cfa52d6767df8d914128 | /tests/parser/cwrjson/encoder/test_json.py | 2e16e8037aaf468ff0dc43df28ba66bb0143d55a | [
"MIT"
] | permissive | gitter-badger/CWR-DataApi | f0d903558e688f10aba996b624f5f860c2d12f3c | ba2011bccd2a5046d9d200c2377daf003cf4b9bc | refs/heads/master | 2020-12-11T07:59:13.882298 | 2015-06-01T10:16:21 | 2015-06-01T10:16:21 | 37,245,502 | 0 | 0 | null | 2015-06-11T07:16:04 | 2015-06-11T07:16:04 | null | UTF-8 | Python | false | false | 13,565 | py | # -*- coding: utf-8 -*-
import unittest
import datetime
import json
from cwr.parser.encoder.cwrjson import JSONEncoder
from cwr.file import FileTag, CWRFile
from cwr.group import GroupHeader, GroupTrailer, Group
from cwr.work import WorkRecord
from cwr.agreement import AgreementRecord
from cwr.transmission import Tra... | [
"programming@wandrell.com"
] | programming@wandrell.com |
c2ea836a58ec6f9d02d3d631bdecf55d3db16ccf | 88307f29f2930213819b2a21ac328ee52e5d8d65 | /tests/benchmark.py | 52a684fb04421ac6481101c185ec87ab22b3704e | [
"BSD-3-Clause"
] | permissive | ChristopherBradley/cogent3 | 7dc6524d66687402d2bd48c07ca68b41133e9f00 | 4b4c0fbc77f50aebd74ecf44a6d1777b2e2c0fbb | refs/heads/master | 2023-02-27T00:58:29.796585 | 2020-11-09T04:13:51 | 2020-11-09T04:13:51 | 219,615,537 | 0 | 0 | BSD-3-Clause | 2023-02-21T20:03:32 | 2019-11-04T23:22:58 | Python | UTF-8 | Python | false | false | 5,641 | py | #!/usr/bin/env python
import sys # ,hotshot
from cogent3 import load_aligned_seqs, load_tree
from cogent3.evolve.substitution_model import (
TimeReversibleCodon,
TimeReversibleDinucleotide,
TimeReversibleNucleotide,
)
from cogent3.maths import optimisers
from cogent3.util import parallel
__author__ = "... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
1ac63a541e9a8dce7c61fe484cbb580d7979038e | 0737f5a9e19cc14692c8bf99dc349ae856a20b0c | /replay_buffer.py | 8f793775a62d5ab3e9a96878a951fc17eebfd190 | [] | no_license | takuseno/unreal | 37fd0c0b7613182f1abb5d55b5d0f8564acf25c2 | 864cfbc1edf56510c69ef3809ae0adc6cb129017 | refs/heads/master | 2020-03-22T19:55:25.246229 | 2018-08-07T09:03:52 | 2018-08-07T09:03:52 | 140,560,691 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,188 | py | from collections import deque
from random import sample, randrange, random
import uuid
class ReplayBuffer:
def __init__(self, capacity=2e3):
self.capacity = capacity
self.ids = []
self.transitions = {}
self.rewarding_states = {}
self.non_rewarding_states = {}
self.e... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
ec771792c99b81d60de883ad609af2084995cd10 | a5c4ea16042a8078e360c32636c00e3163ac99a8 | /Pytorch_Tutorial/08_transfer_learning/custompytorch/utils/helpers.py | 29f3ab0c8ddc604babb84d5d48f924c624f60e47 | [] | no_license | lykhahaha/Mine | 3b74571b116f72ee17721038ca4c58796610cedd | 1439e7b161a7cd612b0d6fa4403b4c8c61648060 | refs/heads/master | 2020-07-15T05:16:13.808047 | 2019-06-01T07:30:01 | 2019-06-01T07:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,219 | py | import torch
import time
import copy
import matplotlib.pyplot as plt
import numpy as np
def train_model(model, dataloaders, dataset_sizes, criterion, optimizer, scheduler=None, num_epochs=25):
"""
Scheduling the learning rate
Saving the best model
Arguments:
model: nn Modules
dataloaders: {'tra... | [
"ITITIU15033@student.hcmiu.edu.vn"
] | ITITIU15033@student.hcmiu.edu.vn |
41bd11bb5664129a74675694664f8bf656e63cb7 | 19a4b375a3f232ed7ddddd56745f63d1949c4d78 | /train.py | 914108df1d11ec3c5b44d92b147972567397dfd3 | [] | no_license | AotY/ask39-cm | 949131b963b986ab2314088198e96fec5997574d | b586a2221edf72a5666cd1cb83bfb91dae5496e5 | refs/heads/master | 2020-04-12T09:14:54.055829 | 2019-01-12T08:27:37 | 2019-01-12T08:27:37 | 162,396,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,376 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright © 2018 LeonTao
#
import os
import sys
import time
import math
import argparse
import torch
import torch.nn.functional as F
from tqdm import tqdm
from modules.optim import ScheduledOptimizer
from modules.early_stopping import EarlyStopping
from vocab import ... | [
"694731929@qq.com"
] | 694731929@qq.com |
65faef840d04bdeb7155de6e7e23e1f6a184626b | 4bf067cd4fa1cee2891c54b02fafcaca28e8227a | /random.py | 5dffcfd8d8ead06c246861f051676c2e77a62e0b | [] | no_license | c1c51/Python | e19dd8e0d90ec5015c87cd9f113c79aea7b25111 | 6dfa8ffa94d92e8741217ae09f265680e4e44951 | refs/heads/master | 2020-03-09T19:06:33.997743 | 2018-04-10T14:49:01 | 2018-04-10T14:49:01 | 128,949,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import Queue
import threading
import urllib2
# called by each thread
def get_url(q, url):
q.put(urllib2.urlopen(url).read())
theurls = ["http://google.com", "http://yahoo.com"]
q = Queue.Queue()
for u in theurls:
t = threading.Thread(target=get_url, args = (q,u))
t.daemon = True
t.start()
s = q.get... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
e06919dd2a9bbd247c1840da35f544f13f1c92bb | 36a7c6c092799d9550233be9c735964768f34f09 | /EVSCapp/permissions.py | e6f4ad1effbded5fa92093c5e13393f9be30bfdf | [] | no_license | AmirIdris/EVSCProject | eea215f8480fdcee54cc2cce0a675621c8c487bb | ed994c240924e6c30626b7e8a8020480c8112c4e | refs/heads/master | 2023-07-28T00:12:56.857669 | 2021-09-07T21:10:58 | 2021-09-07T21:10:58 | 393,363,817 | 0 | 1 | null | 2021-09-07T21:10:58 | 2021-08-06T12:01:30 | CSS | UTF-8 | Python | false | false | 271 | py | from rest_framework import permissions
class IsOwnerOrReadOnly(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
if request.method in permissions.SAFE_METHODS:
return True
return obj.user == request.user | [
"you@example.com"
] | you@example.com |
5e277ac73b8593875d3614ad8691df57cb8aa2fb | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/toontown/minigame/DistributedTagTreasure.pyc.py | 48111c1e609a7eb84bfa86c60461bd082ade4002 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # 2013.08.22 22:21:41 Pacific Daylight Time
# Embedded file name: toontown.minigame.DistributedTagTreasure
from toontown.safezone import DistributedTreasure
class DistributedTagTreasure(DistributedTreasure.DistributedTreasure):
__module__ = __name__
def __init__(self, cr):
DistributedTreasure.... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
23207e111a4e7e07a5d636cb6326493693f5b3c4 | 532ca0c5361b54970bc435232e2a6d079c49aecd | /03_Conditionals and Control Flow/01_Conditionals and Control Flow/04_How the Tables Have Turned.py | 761dda428d2ddf39b1b6f433d981dd3583040f68 | [] | no_license | haveano/codeacademy-python_v1 | dc5484e8df73b9a15ffce835dde625b6454c8302 | 10e6fb2974e1c47f380bb6a33c50b171ecfbf50f | refs/heads/master | 2021-01-11T16:45:57.337493 | 2017-05-30T10:04:08 | 2017-05-30T10:04:08 | 79,660,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """
How the Tables Have Turned
Comparisons result in either True or False, which are booleans as we learned before in this exercise.
# Make me true!
bool_one = 3 < 5
Let's switch it up: we'll give the boolean, and you'll write the expression, just like the example above.
Instructions
For each boolean value in the edi... | [
"noreply@github.com"
] | haveano.noreply@github.com |
5befbb260c9b7b8ba459e5e42945153549916fbe | b17448d7eb36796700594794d79aeaf8438a81a2 | /test.py | 2af94baf00b7aaf4627e112ee25582d8ff5835e7 | [] | no_license | whsasf/WuKong | f422a5547531ffadb13061ccbb504389b2cb07c6 | 9aabae849671c5b3eb1178d80586d74fcd11d6f7 | refs/heads/master | 2020-03-16T06:33:55.204243 | 2018-06-18T10:15:06 | 2018-06-18T10:15:06 | 129,723,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | #!/usr/bin/python3
import basic_class
basic_class.mylogger_summary.summary('zfxfdsfdsf') | [
"whsasf@126.com"
] | whsasf@126.com |
fa24099fb4c61a922ec7e32ecb388a6cac3cd988 | f2889a13368b59d8b82f7def1a31a6277b6518b7 | /309.py | da9a1c3ac6e5917c4c8a202bed12b01b6642673d | [] | no_license | htl1126/leetcode | dacde03de5c9c967e527c4c3b29a4547154e11b3 | c33559dc5e0bf6879bb3462ab65a9446a66d19f6 | refs/heads/master | 2023-09-01T14:57:57.302544 | 2023-08-25T15:50:56 | 2023-08-25T15:50:56 | 29,514,867 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # ref: https://leetcode.com/discuss/71391/easiest-java-solution-with
# -explanations
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) < 2:
return 0
b0 = -prices[0] # max profit ... | [
"b93902098@ntu.edu.tw"
] | b93902098@ntu.edu.tw |
468fdc36ae7001294a1493c1070b5c443b66e893 | bc97d423d19756fbf33affd4ed98d4628d8878b3 | /my_project/itproger/main/urls.py | 49b1548ce7162c1a6ed6511e5d6aa41220dc9528 | [] | no_license | David-Hakobyan1/MY_Django | 40d63232805679bb5416d12a4ebba94fcb097959 | fdcd61a76d131ca47a203bc291212494c3587637 | refs/heads/main | 2023-06-19T15:58:42.315023 | 2021-07-18T09:55:28 | 2021-07-18T09:55:28 | 381,956,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.index,name='index'),
path('create',views.create,name='create'),
path('read',views.read,name='read'),
path('update',views.update,name='update'),
path('delete',views.delete,name='delete'),
]
| [
"my@mail.ru"
] | my@mail.ru |
41b9e07b0f50c84b875fe7ebec63fa52d0d3f16a | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Pdf_docx_pptx_xlsx_epub_png/source/reportlab/graphics/charts/doughnut.py | f1228d0ce2b235500bc67db072a493cfe263dcd1 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 15,376 | py | #Copyright ReportLab Europe Ltd. 2000-2017
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/doughnut.py
# doughnut chart
__version__='3.3.0'
__doc__="""Doughnut chart
Produces a circular chart like the doughnut charts produce... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
f17fd9f2d917793ba4512aa37f689ece8ed71944 | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/genconsts/quests_season_awards_types.py | 556871ca4a30e5a322e6482ad59791a4ee691bce | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 496 | py | # 2016.08.04 19:52:02 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/genConsts/QUESTS_SEASON_AWARDS_TYPES.py
class QUESTS_SEASON_AWARDS_TYPES(object):
VEHICLE = 1
FEMALE_TANKMAN = 2
COMMENDATION_LISTS = 3
# okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\... | [
"info@webium.sk"
] | info@webium.sk |
53e57c810578fe9bfb63bc0c3c4a5616ac1b4306 | 70d39e4ee19154a62e8c82467ef75b601e584738 | /docker/mac-robber.py | 2503134682dfb5d51eb85125c86ad0210ea31582 | [] | no_license | babywyrm/sysadmin | 6f2724be13ae7e5b9372278856a8c072073beffb | 2a5f3d29c7529bc917d4ff9be03af30ec23948a5 | refs/heads/master | 2023-08-16T03:50:38.717442 | 2023-08-16T03:05:55 | 2023-08-16T03:05:55 | 210,228,940 | 10 | 5 | null | 2023-05-01T23:15:31 | 2019-09-22T23:42:50 | PowerShell | UTF-8 | Python | false | false | 5,827 | py | #!/usr/bin/env python
#
# Author: Jim Clausing
# Date: 2017-09-01
# Version: 1.2.0
#
# Desc: rewrite of the sleithkit mac-robber in Python
# Unlinke the TSK version, this one can actually includes the MD5 & inode number
# though I still return a 0 in the MD5 column for non-regular files, but calculating
# hashes li... | [
"noreply@github.com"
] | babywyrm.noreply@github.com |
d4323a8fa1e1648c6105fb1c105c9320a7657887 | 90d3b9467dcc6763865cad90a04a247cafcf5862 | /shopee/child_app/transport/urls.py | 2623f3b186fcd57a552bb35e8ab754ee8ca7fb7d | [] | no_license | vandat9xhn/django_1 | 0fa51515549eab04c27bdfeaf9e43650fe44dc70 | 6669e172d6b5a2a729dd31ea43d6c08f76b6e19c | refs/heads/master | 2023-06-23T19:46:26.558871 | 2021-07-26T15:11:12 | 2021-07-26T15:11:12 | 375,704,827 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.urls import path
#
from . import views
#
urlpatterns = [
path('transport-l/', views.TransportViewL.as_view()),
]
| [
"vandat9xiloveyou@gmail.com"
] | vandat9xiloveyou@gmail.com |
62e9919f8fe5745cb117876ae51196d4b4bc314f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_029/ch178_2020_08_14_14_38_35_094615.py | bfc04d96c2b6f66c5cb150cd9294fc1f83977d91 | [] | 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 | 337 | py | def junta_nomes(a,b,c):
lis = []
for i in a:
if len(a) != 0:
for d in c:
lis.append(i+''+d)
for e in b:
if len(b) != 0:
for f in c:
lis.append(i+''+f)
return lis | [
"you@example.com"
] | you@example.com |
25cd32fcfa59a1dd6d38c88daf0e48f1bd5f8283 | 32a81b96a631fa5f7cd3e1da79499b36f1cbbf86 | /src/artifice/scraper/config/settings.py | aa602920a6b6d62fb2e9637ebe0dae41b8846510 | [] | no_license | minelminel/celery-rabbitmq-example | f4e696f24d924395d09934a33fba9ea9ca065603 | 4eccabf46aec855cfa4738a06a992f71232d6364 | refs/heads/master | 2020-07-01T11:44:43.656850 | 2019-08-30T04:08:13 | 2019-08-30T04:08:13 | 201,165,312 | 0 | 0 | null | 2019-08-30T04:08:13 | 2019-08-08T02:48:51 | Python | UTF-8 | Python | false | false | 3,758 | py | try:
import configparser
except ImportError:
configparser = None
import os
import logging
log = logging.getLogger(__name__)
loc = os.path.dirname(os.path.abspath(__file__))
class Settings(object):
"""
The settings can be changed by setting up a config file.
For an example of a config fil... | [
"ctrlcmdspace@gmail.com"
] | ctrlcmdspace@gmail.com |
f355b0f96a8d88e8aad867f986f3cfa6975d11e8 | e7af5a3e76e674be0a85628067fa494348d45123 | /Python-for-Finance-Second-Edition-master/Chapter01/c1_04_def_pv_funtion.py | 0b20696756b3ed519e37d740043058e85838ece9 | [
"MIT"
] | permissive | SeyedShobeiri/Work | 8321ead6f11de8297fa18d70a450602f700f26fb | f758e758106fbd53236a7fadae42e4ec6a4e8244 | refs/heads/master | 2022-07-25T02:33:25.852521 | 2020-05-17T16:11:27 | 2020-05-17T16:11:27 | 264,706,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # -*- coding: utf-8 -*-
"""
Name : c1_04_def_pv_function.py
Book : Python for Finance (2nd ed.)
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 6/6/2017
email : yany@canisius.edu
paulyxy@hotmail.com
"""
def pv_f(pv,r,n):
return pv/(1+r)**n
#
pv=pv_f(100,0.1,2)... | [
"shobeiri@math.uh.edu"
] | shobeiri@math.uh.edu |
a84c8d31de4dc825e18cbe3145a69c31faa63f3c | 6d6bebce1a3d819c28cf583f3c46c8235ffccfd2 | /WildlifeObservations/observations/migrations/0008_taxonomysubfamily.py | 91c79afbcb1c9ad4a2816de568ceb34033315e61 | [
"MIT"
] | permissive | jen-thomas/wildlife-observations | 7a20366164d467d73c44e8c844cc99fe26716152 | e6a6b6594e60fe080f253481720d80a38a9f7411 | refs/heads/main | 2023-05-25T17:20:15.506403 | 2023-05-16T13:03:05 | 2023-05-16T13:03:05 | 450,234,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | # Generated by Django 3.2.11 on 2022-05-05 08:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('observations', '0007_alter_identification_confidence'),
]
operations = [
migrations.CreateModel(
... | [
"jenny_t152@yahoo.co.uk"
] | jenny_t152@yahoo.co.uk |
c7d8f13bd8fb9ab354250cbb8f69282bb7f5d574 | 8362a53892f45a1a7adcca7da5cd6827bd5c55fd | /tests/test_database.py | 89f622e5642f98b20ec639311a2fc9d55c641d1c | [
"MIT"
] | permissive | accent-starlette/starlette-core | 1a414969ae05ba90c96f184a206c0eb97c1d33fc | 88e94be0cc65e457e32f2586a3c8860c6c08fca9 | refs/heads/master | 2022-01-27T07:57:50.570112 | 2022-01-04T16:39:26 | 2022-01-04T16:39:26 | 185,164,201 | 13 | 7 | MIT | 2021-12-10T12:03:59 | 2019-05-06T09:19:57 | Python | UTF-8 | Python | false | false | 3,037 | py | import pytest
import sqlalchemy as sa
from starlette.exceptions import HTTPException
from starlette_core.database import Base, Session
class User(Base):
name = sa.Column(sa.String(50))
def test_database(db):
# connects ok
db.engine.connect()
# can create tables
db.create_all()
assert "user... | [
"stuart@accentdesign.co.uk"
] | stuart@accentdesign.co.uk |
fe65d3c37aaddf2a65dd606f8793933918d36b7a | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/command_lib/util/concepts/presentation_specs.py | 5ce3f81bfe836ac2d6f02210bc819c33c953c394 | [
"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 | 12,018 | py | # -*- coding: utf-8 -*- #
# Copyright 2018 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 |
aea0c877e69fd3729d376aef2e6ea5374f0287ca | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/org_apache_sling_jcr_resource_internal_jcr_resource_resolver_factory_impl_properties.py | 65ecabe223fe97999649b8c3603c5f29dc1f1a3b | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 38,540 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.config_node_property_array import ConfigNodePropertyArray # noqa: F401,E501
from openapi... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.