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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da356d75f23ebfcf6946500fd41a68c246eea276 | 81c5323d6a456479d32c9a2a2b9ab61484dd7922 | /otter/assign/assignment.py | 08268d910774520e7367ea051f584d5f325ad4fe | [
"BSD-3-Clause"
] | permissive | fperez/otter-grader | c488f339fa6db8577c09bbcba22d919519fb3fb5 | 6c9ded064b7c8bbd115d8ab54330f4400a564b17 | refs/heads/master | 2023-07-27T16:33:33.392295 | 2021-08-26T18:12:18 | 2021-08-26T18:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,348 | py | """Assignment configurations for Otter Assign"""
import yaml
from .constants import BLOCK_QUOTE
from .utils import get_source, get_spec
from ..utils import convert_config_description_dict
_DEFAULT_ASSIGNMENT_CONFIGURATIONS_WITH_DESCRIPTIONS = [
{
"key": "requirements",
"description": "the path t... | [
"cpyles@berkeley.edu"
] | cpyles@berkeley.edu |
83e5c5465a611338cfc230da42437fe7ef263507 | 78628a4c5e4b37167b79f3b9072b30a7772d5c44 | /tests/base.py | 714abff7179532719b0b362d02242c4f08e11feb | [
"BSD-3-Clause"
] | permissive | mdelagrange/consulate | 35f8f02b1568a3d70bbcbab9796ffe7fcfc23a0a | 312f36245aa43da2e0624e2b53dacd52986061d3 | refs/heads/master | 2020-12-28T20:09:10.805411 | 2018-03-13T22:41:46 | 2018-03-13T22:41:46 | 38,765,620 | 0 | 0 | BSD-3-Clause | 2018-07-13T19:21:42 | 2015-07-08T16:20:59 | Python | UTF-8 | Python | false | false | 1,690 | py | import functools
import json
import os
import unittest
import uuid
import httmock
import consulate
from consulate import exceptions
with open('testing/consul.json', 'r') as handle:
CONSUL_CONFIG = json.load(handle)
def generate_key(func):
@functools.wraps(func)
def _decorator(self, *args, **kwargs):
... | [
"gavinr@aweber.com"
] | gavinr@aweber.com |
5bf2243fd6a0eb7978234834a4fafd6a6e57a05f | 9dc6f8d91dc56523b9688990d4ae413b0bcbd4e1 | /examples/x2c/02-basis_for_x.py | 4789dc7470317b423c53acb4b0634b9b695430ef | [
"Apache-2.0"
] | permissive | sunqm/pyscf | 566bc2447d8072cff442d143891c12e6414de01c | dd179a802f0a35e72d8522503172f16977c8d974 | refs/heads/master | 2023-08-15T18:09:58.195953 | 2023-03-27T21:02:03 | 2023-03-27T21:02:03 | 159,149,096 | 80 | 26 | Apache-2.0 | 2022-02-05T00:19:24 | 2018-11-26T10:10:23 | Python | UTF-8 | Python | false | false | 1,764 | py | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
'''
X2c method use the uncontracted large component basis to construct the X
matrix. The basis for X matrix can have a big impact to the total energy.
X2c treatment is not variational. The total energy often increases when the
quality of large compo... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
39854d818ae434d3d84942d0bf6812c693099153 | 4ce2cff60ddbb9a3b6fc2850187c86f866091b13 | /tfrecords/src/wai/tfrecords/object_detection/meta_architectures/faster_rcnn_meta_arch.py | 7afd52f20650e642b909ff31c1d6a3c8c99e2a43 | [
"MIT",
"Apache-2.0"
] | permissive | 8176135/tensorflow | 18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0 | 2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1 | refs/heads/master | 2020-11-26T05:00:56.213093 | 2019-12-19T08:13:44 | 2019-12-19T08:13:44 | 228,970,478 | 0 | 0 | null | 2019-12-19T03:51:38 | 2019-12-19T03:51:37 | null | UTF-8 | Python | false | false | 132,077 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
3fd5ea8193c7d437c0c1beb0fe3a0b1745922583 | 4b7f32e791739a09a201708a3350836156d59287 | /moderate/trailing-string(AC).py | 697e86dcd2d80270fb7e53b31fe98c768ba7fbaa | [] | no_license | zhuli19901106/codeeval | 6170849a4acbc442b957d80c410df2bcf1b09efb | 301dcaf0098eafb776145bfa347d9eb2ee22d4e2 | refs/heads/master | 2020-06-04T20:50:25.391877 | 2015-05-18T23:13:13 | 2015-05-18T23:13:23 | 34,080,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import re
if __name__ == '__main__':
while True:
try:
s = raw_input()
except EOFError:
break
a, b = re.split(',', s)
if len(b) > len(a):
print(0)
continue
if a[len(a) - len(b): len(a)] == b:
print(1)
else:
print(0)
| [
"zhuli19901106@gmail.com"
] | zhuli19901106@gmail.com |
bf6ba6b1402f5be62ec4a9f13ac0645075bdfe65 | 4568ff25aaafc821d18e331b0253a1246cd03c8f | /benchmark/experiments/basic_moo.py | ee9e35ecb246b008940c41dbe3f014755bedf038 | [
"Apache-2.0"
] | permissive | anyoptimization/pymoo-benchmark | 42a7804967d03b70620d42fba5f756d288b1f6f4 | 37460f3bf0159c1113cd48d5698af6493f26ed62 | refs/heads/main | 2023-07-31T17:20:17.294345 | 2021-09-23T20:31:39 | 2021-09-23T20:31:39 | 387,559,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | import numpy as np
import scipy.stats
from prettytable import PrettyTable
from benchmark.benchmarks import get_benchmark
if __name__ == "__main__":
benchmark = get_benchmark("ucmo")
results = benchmark.run(writer=WRITER,
loader=LOADER,
run_if_loading_f... | [
"jules89@arcor.de"
] | jules89@arcor.de |
d9a4099524173214ed80d0a32f51a62c6780e1cc | 8327addb87ff660c9659ba4c803ce494c10624a2 | /src/gui/components/hierarchy.py | 87c503ba1a8144820f85aa1cafd085d93fa4b1be | [
"BSD-3-Clause"
] | permissive | kergalym/panda3dstudio | 1c2751527305ce1d9ad6322d19a297e0e25be9b9 | 9dff5857ead87dbcdc546b2aa5e9bac4121341bd | refs/heads/master | 2022-07-22T18:41:38.167272 | 2020-05-19T14:14:54 | 2020-05-19T14:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,295 | py | from ..base import *
from ..button import *
from ..panel import *
class HierarchyPanel(Panel):
def __init__(self, stack):
Panel.__init__(self, stack, "hierarchy", "Hierarchy")
self._checkbuttons = {}
self._btns = {}
self._toggle_btns = ToggleButtonGroup()
toggle = (self.... | [
"Epihaius@users.noreply.github.com"
] | Epihaius@users.noreply.github.com |
68b2d9074b11197d63b539d98ae83fa80cfe4639 | 27ece9ab880a0bdba4b2c053eccda94602c716d5 | /.history/tf_regression_logistic_20181129223556.py | 0f19edb1cef55ba195e28ea07b0aef3180fcad9a | [] | no_license | Symfomany/keras | 85e3ad0530837c00f63e14cee044b6a7d85c37b2 | 6cdb6e93dee86014346515a2017652c615bf9804 | refs/heads/master | 2020-04-08T20:21:35.991753 | 2018-11-30T08:23:36 | 2018-11-30T08:23:36 | 159,695,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,338 | py | import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
import os, argparse
"""
Any interaction with your filesystem to save persistent data in TF needs a Saver object and a Session object.
The Saver constructor allows you to control many things among which 1 is important:
The var_list: Default to... | [
"julien@meetserious.com"
] | julien@meetserious.com |
4fc460384c0da2849c8cd81e53c14410411469db | 1bf1a8d115d9720dacb84b5c8fefb49af015c295 | /backend/soft_sound_26327/wsgi.py | d82dfa567ac94e3653dfc6d99f1fb57752c26fe4 | [] | no_license | crowdbotics-apps/soft-sound-26327 | dba9358659d899d485a0b10cd63e41c68e865e22 | 5d35e9d5bd2cdad5ab5e5f2a95d8190ce367ff43 | refs/heads/master | 2023-04-11T15:35:04.366308 | 2021-05-07T12:50:17 | 2021-05-07T12:50:17 | 365,231,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for soft_sound_26327 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9379f75d7a6e72f76b8b8000d917229c05095694 | ceead28beb1ea6cb56a2bb4472bc1d2396b39e6f | /gen_basis_helpers/lammps_interface/unit_tests/utests_calc_objs.py | e7ea97f5225ee65c88ea89d7726bdc7ec75871d3 | [] | no_license | RFogarty1/plato_gen_basis_helpers | 9df975d4198bff7bef80316527a8086b6819d8ab | 8469a51c1580b923ca35a56811e92c065b424d68 | refs/heads/master | 2022-06-02T11:01:37.759276 | 2022-05-11T12:57:40 | 2022-05-11T12:57:40 | 192,934,403 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py |
import copy
import collections
import os
import unittest
import unittest.mock as mock
import gen_basis_helpers.lammps_interface.lammps_calc_objs as tCode
class TestCalcObjStandard(unittest.TestCase):
def setUp(self):
self.baseFolder = "fake_path"
self.baseFileName = "test_file"
self.dataFileOrderedDict = co... | [
"richard.m.fogarty@gmail.com"
] | richard.m.fogarty@gmail.com |
b79d0c78af023ef7ed30861159fed93a15561056 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/networkx/utils/random_sequence.py | 8b85ab0377cfc422b3d928447eefc64534d09e7d | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c5e599427c932f0d245045fe663be170579a4a231663b09977410234d4901ef6
size 4085
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
820179af2252cd5b64438e6edfc4fb743ccbba98 | 9c5cbe763edf9b2857fc4d3a01b0ffd84f84732c | /courses/urls.py | 736f7edd62c9a9ee82e1c68ae04a7a86a4289af0 | [] | no_license | miclemabasie/Django-Elearn | 943dda71f19cebe73afc8b22858b016065848987 | b69ccd40719bef63ce4ff8d16262552db78dfdce | refs/heads/main | 2023-07-30T04:50:40.484172 | 2021-09-22T17:56:08 | 2021-09-22T17:56:08 | 408,752,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from django.urls import path
from . import views
urlpatterns = [
path('mine/',
views.ManageCourseListView.as_view(),
name='manage_course_list'
),
path('create/',
views.CourseCreateView.as_view(),
name='course_create'
),
path('<pk>/edit/',
views.CourseUp... | [
"miclemabasie3@gmail.com"
] | miclemabasie3@gmail.com |
ee9757768aa20d43a6d7e774315d16995cd75ed6 | 2f76da1ab7d6b8ea0184c5ad2c522518ab37823f | /speech_parts.py | 8dbd9e71f75a67ca948bd7b45c8c6483afb8d9a2 | [] | no_license | abezgauzdina/knesset-data-committees | 4ebdddd0d5ec868b1f2037c66be2dd752431ca10 | d80346aae116365d9959fb48ad1f58666d04f020 | refs/heads/master | 2021-09-15T07:39:53.205577 | 2017-11-29T09:54:03 | 2017-11-29T09:54:03 | 115,918,597 | 0 | 0 | null | 2018-04-23T19:45:32 | 2018-01-01T12:43:43 | CSS | UTF-8 | Python | false | false | 1,906 | py | from tabulator import Stream
import os, requests, logging, re, json
def get_speech_part_body(speech_part):
return speech_part["body"].replace("\n", "<br/>")
def get_speech_parts_stream(**kwargs):
stream = Stream(**kwargs)
stream.open()
if stream.headers == ['header', 'body']:
return stream
... | [
"ori@uumpa.com"
] | ori@uumpa.com |
0f2b5f1b67de643723f3d4cb34ec4d21663d34ba | 3775102a3f59bc8aac9b8121ba2aef87409724ee | /Easy/slang_flavor.py | 33034c354656685515600b8a5be64b39de275dec | [] | no_license | csikosdiana/CodeEval | a446ec6673e9f97439662bfccbd7454e5740d509 | 15cdd9ca454939e93c77d5ed5076595ecc7e4301 | refs/heads/master | 2016-08-11T14:49:27.565799 | 2016-03-22T17:48:20 | 2016-03-22T17:48:20 | 46,176,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | data = ["Lorem ipsum dolor sit amet. Mea et habeo doming praesent. Te inani utroque recteque has, sea ne fugit verterem!",
"Usu ei scripta phaedrum, an sed salutatus definiebas? Qui ut recteque gloriatur reformidans. Qui solum aeque sapientem cu.",
"Eu nam nusquam quaestio principes."]
slang = [", yeah!", ", this ... | [
"csikosdiana@gmail.com"
] | csikosdiana@gmail.com |
ad08d79a59217376793b242425ff4ae931d9aa17 | e61c78de98845f2d721d1e21f987f9939c53974a | /abode/lib/tests/test_query.py | 83c032b953784c4196a53e94b2792e09a0487220 | [] | no_license | b1naryth1ef/abode | aab4d720bb35adab08a3c3418730bd15c511f596 | 967d92a0c9fb5075aa14cfda63646fb11dc252dc | refs/heads/master | 2020-12-22T18:53:55.931617 | 2020-02-02T06:13:13 | 2020-02-02T06:13:13 | 236,897,406 | 25 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,871 | py | from abode.lib.query import QueryParser, compile_query, _compile_selector
from abode.db.guilds import Guild
from abode.db.messages import Message
from abode.db.users import User
from abode.db.channels import Channel
def test_parse_basic_queries():
assert QueryParser.parsed("hello world") == [
{"type": "sy... | [
"b1naryth1ef@gmail.com"
] | b1naryth1ef@gmail.com |
7f6bcb9e8da7fe2b36ab5738310c1dc96aa599b5 | 5774101105b47d78adb7a57eefdfa21502bbd70c | /python框架/flask/Flask-RESTful/s3_error404定制.py | 73259f73985c047a86f46f7e8b642e2a561425ae | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 1,234 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:zhl
#refer:https://blog.csdn.net/dream_flying_bj/article/details/61198475
#安装pip3 install flask-restful
##使用参考: pip3 install flask-restful
from flask import Flask, jsonify
from flask import abort
from flask import make_response
app = Flask(__name__)
tasks = [
... | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
34ae6b4403ac4a915276300f832032a92bc1afc5 | 39978dba83181975b29b884d1e9cc22ed32bb097 | /prepare_data.py | f7b2f6f0058a5a59c0c89ca56f3718faa720435d | [
"MIT"
] | permissive | Blarc/lol-dodge-predictor | c3e5050c577eb003d960941f8f601545de8a6abd | 01ac9ce1f117dba7f2375958f96fd1336cc0049d | refs/heads/main | 2023-02-08T11:01:01.435267 | 2021-01-04T14:21:38 | 2021-01-04T14:21:38 | 311,631,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,158 | py | import copy
import json
import cassiopeia as cass
import pandas as pd
from IPython.display import clear_output
from roleidentification import get_roles, pull_data
NUMBER_OF_LINES = 108941
champion_roles = pull_data()
champions_mapper = {champion.id: champion.name for champion in cass.get_champions("EUW")}
summoners ... | [
"jakob.malezic@gmail.com"
] | jakob.malezic@gmail.com |
5eaa86000cf6a4bf50b9794b70c14cebc088bf10 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/daapi/view/meta/channelwindowmeta.py | e1885ab5d56862c3eeb542f57abc2cdbefe16faf | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 531 | py | # 2016.02.14 12:40:13 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ChannelWindowMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class ChannelWindowMeta(AbstractWindowView):
pass
# okay decompyling c:\Users\PC\wotso... | [
"info@webium.sk"
] | info@webium.sk |
e43c2f5632fe67304382d4e6a716df7a051baa2b | 8fd2e5d53d7a91d35288ccefdb0c7ef00d927a0a | /book_06_Python黑帽子/Chapter10/my_file_monitor.py | 82f21f92c9aff7909f4483eadae1363b1c57daa3 | [] | no_license | atlasmao/Python-book-code | 03501f9ca2e81bc1f47464b3227c7f9cda0d387c | 03b6848a15a7e4c2ffebdc3528c24a8b101d9f41 | refs/heads/master | 2022-01-06T23:45:21.951307 | 2019-07-11T10:32:22 | 2019-07-11T10:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,780 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 监控临时文件的创建, 读写, 删除
import tempfile
import threading
import win32file
import win32con
import os
# 这些是典型的临时文件所在的路径
dirs_to_monitor = ["C:\\WINDOWS\\Temp", tempfile.gettempdir()]
# 文件修改行文对应的常量
FILE_CREATED = 1
FILE_DELETED = 2
FILE_MODIFIED = 3
FILE_RENAMED_FROM = 4
FILE_R... | [
"justsweetpotato@gmail.com"
] | justsweetpotato@gmail.com |
f7b92346ce9990a3f5fe6e158b436fee76ccfebd | d489eb7998aa09e17ce8d8aef085a65f799e6a02 | /lib/modules/powershell/persistence/elevated/registry.py | 2fcac2eeb448345515e6450a9c53c8fa8c6237d5 | [
"MIT"
] | permissive | fengjixuchui/invader | d36078bbef3d740f95930d9896b2d7dd7227474c | 68153dafbe25e7bb821c8545952d0cc15ae35a3e | refs/heads/master | 2020-07-21T19:45:10.479388 | 2019-09-26T11:32:38 | 2019-09-26T11:32:38 | 206,958,809 | 2 | 1 | MIT | 2019-09-26T11:32:39 | 2019-09-07T11:32:17 | PowerShell | UTF-8 | Python | false | false | 8,658 | py | import os
from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-Registry',
'Author': ['@mattifestation', '@harmj0y'],
'Description': ('Persist a payload (or script) via the HKLM:SOFTWARE\Microsoft\Windows\... | [
"noreply@github.com"
] | fengjixuchui.noreply@github.com |
ebb06a5651bd34026c2aa14de6ced229aec8694b | a50600c92f9199c7cfffc70f8e41eca23c1f3000 | /manage.py | b41575b8397ea14e84c75ff0cdba7c06769eb46e | [] | no_license | shubham1507/testView | 759c0e086b80b53266e9ba912f0c9526cfa93034 | 243d33932d348a5e0cecfaaaa4732694fb584616 | refs/heads/master | 2022-04-29T09:36:07.886105 | 2019-10-05T06:57:06 | 2019-10-05T06:57:06 | 212,959,737 | 0 | 0 | null | 2022-04-22T22:29:24 | 2019-10-05T07:16:20 | Python | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'testView.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"shubham.joshi1507@gmail.com"
] | shubham.joshi1507@gmail.com |
9507e5df03c571625db06330a495aa6e7a1e0ef0 | 0062ceae0071aaa3e4e8ecd9025e8cc9443bcb3b | /solved/6763.py | fb5b2473763dfa94d66d8421c73bf7091835c434 | [] | no_license | developyoun/AlgorithmSolve | 8c7479082528f67be9de33f0a337ac6cc3bfc093 | 5926924c7c44ffab2eb8fd43290dc6aa029f818d | refs/heads/master | 2023-03-28T12:02:37.260233 | 2021-03-24T05:05:48 | 2021-03-24T05:05:48 | 323,359,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | a = int(input())
b = int(input())
c = b - a
text = 'You are speeding and your fine is $'
if c <= 0:
print('Congratulations, you are within the speed limit!')
elif 1 <= c <= 20:
print(text + '100.')
elif 21 <= c <= 30:
print(text + '270.')
else:
print(text + '500.') | [
"pyoun820@naver.com"
] | pyoun820@naver.com |
11d66cb0430d57028e89ba4c6f0b967779bcff38 | def64299eb506d5d573ec2f21ad52f7f849f3538 | /venv/Scripts/pip3-script.py | 6875b5f4a44f71c387bef75519801f127f6f7da5 | [] | no_license | zoulida/dockerOne | 51a64269191a341a6da0a4cdf2c1d7419e4f8204 | d2d588420c51aa9325245480505b3017c2715105 | refs/heads/master | 2020-04-20T04:25:53.485530 | 2019-02-09T02:45:11 | 2019-02-09T02:45:11 | 168,627,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!D:\pythonworkspace\dockerOne\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sy... | [
"zoulida@163.com"
] | zoulida@163.com |
e67247615c0c14d544e7c8db298cd60b3f91b096 | 0258d1982f3551ebebcd1e657d4ab1b487f61df9 | /src/m0.py | 6928a42a0981785bf342e398d16e9ae37b1abf5a | [] | no_license | royjm21/rosebotics2 | 0f5ffe379a2122c880b1701d3a05e08a037ce8ae | 382fedc8bc2475bc928e453483e322e101399122 | refs/heads/master | 2020-04-02T14:09:12.657825 | 2018-11-17T03:27:16 | 2018-11-17T03:27:16 | 154,512,503 | 0 | 0 | null | 2018-10-24T14:10:02 | 2018-10-24T14:10:02 | null | UTF-8 | Python | false | false | 3,132 | py | """
Capstone Project. Code for testing basics.
Author: David Mutchler, based on work by Dave Fisher and others.
READ and RUN this module but ** DO NOT MODIFY IT. **
Fall term, 2018-2019.
"""
import rosebotics as rb
import time
def main():
""" Runs tests. """
run_tests()
def run_tests():
""" R... | [
"mutchler@rose-hulman.edu"
] | mutchler@rose-hulman.edu |
f8cfe37328e46d44a30edc92197b0790ae37e435 | 760e84fc1ae36ccad2bf70bfac3d2ff18291b8ac | /gimbal/test/servo/sysfs_writer_dummy.py | 6ead1a4b63e134d6e6b9c6063c322b70430f4416 | [] | no_license | dpm76/Gimbal | 43b11497221657848f41a6440945d0601b379e23 | 6803867b359db76a420b2cc46192e0c475e35e6b | refs/heads/master | 2022-09-27T23:33:58.402529 | 2022-08-27T10:06:09 | 2022-08-27T10:06:09 | 79,473,892 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | '''
Created on 19 ene. 2017
@author: david
'''
class SysfsWriterDummyFactory(object):
"""
Creates SysfsWriterDummy object
"""
def create(self):
"""
Creates writer
"""
return SysfsWriterDummy()
class SysfsWriterDummy(object):
"""
System filesystem... | [
"davidpm.itengineer@gmail.com"
] | davidpm.itengineer@gmail.com |
ca7bed30ee38167e59191c271b76792174e59050 | f780e660df46040ab05fd1bcb9657f7db7db65d4 | /conf.py | a74a25f953271940de926868f4ea07741e3417b5 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | systemonachip/systemonachip | 35ffc00f4763333848cbca7e93a9e2cc1030b6de | 6440b7ad7648a1affa1e6ddbdbf8d6fe76f57df7 | refs/heads/main | 2022-12-05T11:53:32.689536 | 2020-08-11T05:30:53 | 2020-08-11T05:30:53 | 283,394,238 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"scott@tannewt.org"
] | scott@tannewt.org |
10e9c876610b7fa2d64578976e7f2e46129f7bdb | 21b5ad37b812ed78799d4efc1649579cc83d32fb | /job/migrations/0002_auto_20200212_1056.py | 3c1cfe311d99524c0c1a26ac9408c01c9456878e | [] | no_license | SaifulAbir/django-js-api | b6f18c319f8109884e71095ad49e08e50485bb25 | fbf174b9cde2e7d25b4898f511df9c6f96d406cf | refs/heads/master | 2023-02-12T16:09:21.508702 | 2021-01-14T09:05:15 | 2021-01-14T09:05:15 | 329,713,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # Generated by Django 3.0.3 on 2020-02-12 10:56
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('job', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='job',
name='co... | [
"rashed@ishraak.com"
] | rashed@ishraak.com |
e746768ab5d287875fe8f52db0f6e9f69d465988 | dde951c8bcfb79cdead3449de42d9ed3e6f24fbe | /mymodule.py | 5ee73f4b3e930257bc5b92eaec778ed69f58f302 | [] | no_license | wolfeyuanwei/study-python | c764353cbf75b0ccd79dc562fe11eebee712510b | be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de | refs/heads/master | 2021-05-11T22:57:51.541684 | 2018-02-08T05:03:10 | 2018-02-08T05:03:10 | 117,504,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | #!/usr/bin/python
#Filename:mymodule.py
def sayhi():
print("Hi, this is mymodule speaking.")
version="0.1"
| [
"wolfe_yuan@163.com"
] | wolfe_yuan@163.com |
6a67e5f262b74518db7e0ef4f6c9034700ff7848 | 238cff74530e5571648da88f127d086d2d9294b4 | /0x0F-python-object_relational_mapping/0-select_states.py | 76e5988a937a8573ef3ef92f91e4dd16f923e481 | [] | no_license | Achilik/holbertonschool-higher_level_programming-6 | b92fcbd1bc6bbedcfef4b49bb3907d97b8be41ff | d0c46cc5ed2bfd1c8d75ce4a2a7604fc4f3f1c5c | refs/heads/master | 2023-03-21T08:03:31.613145 | 2018-09-08T10:10:53 | 2018-09-08T10:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python3
"""List all states using mysqldb"""
if __name__ == "__main__":
import MySQLdb
from sys import argv
db = MySQLdb.connect(host="localhost", user=argv[1],
passwd=argv[2], db=argv[3])
cur = db.cursor()
cur.execute("SELECT id, name FROM states")
for row... | [
"sidneyriffic@gmail.com"
] | sidneyriffic@gmail.com |
0082a8cb5b9a83ed11b53f2a67daa38f739be429 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02382/s713591179.py | 09cde9d080d0b47f07d303ae5fc2bac9e18b8f66 | [] | 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 | 246 | py | n = int(input())
X = list(map(int, input().split()))
Y = list(map(int, input().split()))
for i in range(1, 4):
D = 0
for j in range(n):
D += abs(X[j] - Y[j])**(i)
print(D**(1/i))
print(max(abs(X[i] - Y[i]) for i in range(n)))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
071deea967dc8da3caebd1c55e369f2362413914 | 4c20c78cf383cd40db8e3d3eee88e5f96884a1af | /39.combination_sum/39.combination-sum.py | 6b75d489a8226c53faff5049bcc53be904b43fec | [] | no_license | HanchengZhao/Leetcode-exercise | de6c17a2c965fe0c3afc0a4c39fc0a5f8bbe8d47 | 6c780a97c956856ac94a5d0bb4c9b631e7a0677a | refs/heads/master | 2021-05-04T10:09:29.308858 | 2019-10-17T05:31:20 | 2019-10-17T05:31:20 | 50,731,817 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | #
# @lc app=leetcode id=39 lang=python3
#
# [39] Combination Sum
#
class Solution:
def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]:
def recursion(cur, cursum, candidates, target, res, index):
if cursum > target:
return
if cursum == targ... | [
"chancidy@gmail.com"
] | chancidy@gmail.com |
0a7ba83dd16fddc2a53c7fbc33ae451f3e7d5ab5 | b627f23744e305c0d90044669a6ec68cf59bc146 | /src/ls_sms_api/ls_sms_api/wsgi.py | d309f6fbb20ae8fa35be63890cccb03c64dfd2ae | [] | no_license | wisnercelucus/ls-sms-api | 751689d0c11974547d9adcabcea91f06f404656d | 9ff8bce77561641b6f7ba9b4e99378efbb8c0ef5 | refs/heads/master | 2022-04-12T21:52:37.619685 | 2020-03-26T20:04:46 | 2020-03-26T20:04:46 | 250,121,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for ls_sms_api 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"wisnercelicus@gmail.com"
] | wisnercelicus@gmail.com |
4a437d4905608bd5f842a14f4a686edb4aa40ee5 | 19bc8a9343aa4120453abeff3deddda7d900f774 | /ProgrammingInterviewQuestions/43_Anagrams.py | 744e4ded887e1af67a814418dd617356895feac5 | [] | no_license | ArunkumarRamanan/CLRS-1 | 98643cde2f561d9960c26378ae29dd92b4c3fc89 | f085db885bcee8d09c1e4f036517acdbd3a0918e | refs/heads/master | 2020-06-28T08:30:44.029970 | 2016-11-19T15:27:55 | 2016-11-19T15:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 30 19:21:36 2016
@author: Rahul Patni
"""
def number_needed(a, b):
array1 = [0] * 26
array2 = [0] * 26
for i in a:
array1[ord(i) - ord('a')] += 1
for i in b:
array2[ord(i) - ord('a')] += 1
total = 0
for i in range(0, 26):
t... | [
"rahul20patni@gmail.com"
] | rahul20patni@gmail.com |
3549f6ce778e95719ac1407a7e5ac63203c9c77f | 7621cc5db1f87bc4c95ec1d0b80860c74787a0d1 | /loco/urls.py | eab5993189bc2a7a303e55e7d953a6966601dd4b | [] | no_license | ingenieroariel/loco | 0b53f3c2e871db7d04a82b898c61ee63173e0f47 | 79245b63f082e5b393bacae87d44cea6df66dcff | refs/heads/master | 2021-01-10T09:47:55.575723 | 2015-10-06T19:34:32 | 2015-10-06T19:34:32 | 43,713,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | """loco URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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 ... | [
"ingenieroariel@gmail.com"
] | ingenieroariel@gmail.com |
f187e58d408ba609b2fb5abbcc73fb9cbd3f2144 | 3cf0d750948a758d5771dd778fbb783d64a044ae | /src/algo_cases/第4章/4_2.py | 01cd88698a2920f4ad2133718f14a27994e6cd3d | [
"CC-BY-NC-SA-4.0",
"Apache-2.0"
] | permissive | hbulpf/pydemo | 6552a08b3c85721ac1b2ba335b030e234ad03b6c | ea3e9f9086116a86ecef803e9e3179a34c94c20f | refs/heads/master | 2022-11-30T21:06:29.933820 | 2022-01-15T17:05:16 | 2022-01-15T17:05:16 | 237,584,300 | 6 | 1 | Apache-2.0 | 2022-11-22T09:49:38 | 2020-02-01T08:20:43 | Python | UTF-8 | Python | false | false | 1,160 | py | def threeSum(self, array):
array.sort()
length=len(array)
res=[]
for i in range(length):#三层循环
for j in range (i+1,length):
for k in range(j+1,length):
if array[i]+array[k]+array[j]==0 and not [array[i],array[j],array[k]] in res:
res.append([array[i... | [
"hudalpf@163.com"
] | hudalpf@163.com |
409252b48117af3db718766805d451249d2060cc | 0725ed7ab6be91dfc0b16fef12a8871c08917465 | /graphs/key_and_rooms.py | 715456607ef58e9519dae068c8bde6f79cd99bf7 | [] | no_license | siddhism/leetcode | 8cb194156893fd6e9681ef50c84f0355d09e9026 | 877933424e6d2c590d6ac53db18bee951a3d9de4 | refs/heads/master | 2023-03-28T08:14:12.927995 | 2021-03-24T10:46:20 | 2021-03-24T10:46:20 | 212,151,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from collections import defaultdict
class Graph:
def __init__(self, V):
self.graph = defaultdict(list)
self.V = V
self.visited = [False for _ in range(self.V + 1)]
def add_edge(self, u, v):
self.graph[u].append(v)
def DFSUtil(self, u):
self.visited[u] = True
... | [
"siddhesh@hackerearth.com"
] | siddhesh@hackerearth.com |
2345216ef12a7ccfdb9d835b9d96af3569cd556a | c5d131cf7a5e5667b5f6983512d132f9817c7310 | /geosite/views.py | d7bdc0815adbffb6a4a95113c6636eef66b60b3b | [] | no_license | wfp-ose/geosite-framework-django | 0e6596d241498cfe3b5bb696abee27da511a8b1d | ffb3f805cca708e7b95abe59a1b1b8e3916783a3 | refs/heads/master | 2021-01-21T04:55:47.253100 | 2016-06-03T15:37:21 | 2016-06-03T15:37:21 | 51,529,078 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | import errno
from socket import error as socket_error
from django.conf import settings
from django.views.generic import View
from django.shortcuts import HttpResponse, render_to_response
try:
import simplejson as json
except ImportError:
import json
from geosite.cache import provision_memcached_client
clas... | [
"pjdufour.dev@gmail.com"
] | pjdufour.dev@gmail.com |
b4ecd05bf9fcf51d6c49b525e8a5af982ae4959d | c1a04c3dd2956ffd055020d5a73ceeb18b0367fe | /tests/builtins/test_bool.py | 8a7cb0994edcab1e7d566c000ded0430d8afbc03 | [
"BSD-3-Clause",
"MIT"
] | permissive | matthewphillips/batavia | 1f145d0ac2182875c6d1734fbc8510a654ee932e | b69c1f419674ecf214c474c754912f2e0cf5c65d | refs/heads/master | 2021-01-21T06:33:04.213885 | 2017-02-26T22:10:50 | 2017-02-26T22:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | from .. utils import TranspileTestCase, BuiltinFunctionTestCase
import unittest
class BoolTests(TranspileTestCase):
def test_bool_omitted(self):
self.assertCodeExecution("""
print(bool())
""")
def test_bool_like(self):
self.assertCodeExecution("""
class Bo... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
d5997425aae6fc467a61b580ad532ab834fe952f | f40cc44ebfc337326577c91cd88d0c1dd845b098 | /LuminarPythonPrograms/Collection/ListDemo/Listprogram3.py | 1150ec798fe3462679fb73faf13793e2b97562f8 | [] | no_license | Aswin2289/LuminarPython | 6e07d6f9bf6c8727b59f38f97f5779a33b2fab0d | ba633a276dd79bbf214cfceac2413c894eaa1875 | refs/heads/master | 2023-01-01T07:52:41.598110 | 2020-10-13T04:34:49 | 2020-10-13T04:34:49 | 290,109,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | #print power
lst=[2,4,6]
# le=len(lst)
# res=0
# for i in range(0,le):
# res=lst[i]**i
# print(res)
cnt=1
for i in lst:
print(i**cnt)
cnt+=1 | [
"aswinabraham4@gmail.com"
] | aswinabraham4@gmail.com |
916b8f251e993a18dbf69cffb2c0341c30bcdbc2 | 3e600966adc8f0fe7114d5d988b32ead395edff2 | /src/pybel_tools/definition_utils/summary_dependent.py | 58d64d00c93a2c7a81b2bf6591dcd2dc565b6dae | [
"Apache-2.0"
] | permissive | johnbachman/pybel-tools | cadf407609462b9c2faaa62e5d35464fa27c1b7f | c691d7b33d449501142eb011bc2b8f63830645cf | refs/heads/develop | 2021-09-14T20:30:07.873760 | 2018-05-10T14:07:08 | 2018-05-10T14:07:08 | 105,606,597 | 0 | 0 | null | 2017-10-03T02:23:24 | 2017-10-03T02:23:23 | null | UTF-8 | Python | false | false | 3,443 | py | # -*- coding: utf-8 -*-
import logging
import os
from pybel.constants import *
from pybel.resources.definitions import write_namespace
from pybel.struct.summary.node_summary import get_names_by_namespace
from ..summary.error_summary import get_incorrect_names_by_namespace, get_undefined_namespace_names
log = logging... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
5f537997bcb48f2972f8668304590a3e7b11e283 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_034/ch129_2020_04_01_17_00_30_862850.py | b356e9c2aff07bffe76f355aa509f1e0320549e5 | [] | 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 | 172 | py | def verifica_quadrado_perfeito(n):
impar = 1
while n != 0:
n = n - impar
impar += 2
if n == 0:
return True
else
return False | [
"you@example.com"
] | you@example.com |
d43ed31749be13b25dc97002e6e7499aad5038d9 | 8ea2d923fcb193846ff925abcbef8f97c394936e | /climate_app/views.py | 2fc27ba7af83708082858e0ac79e0b6629ad1e72 | [] | no_license | amrit-kumar/climate_data_and_graph | 6a32b969e3d13953f1e74baed720e824d7dd61b0 | c793bd38474ba11ef50b76739d979f3f8c910dbf | refs/heads/master | 2021-01-16T18:55:32.359620 | 2017-08-12T18:28:52 | 2017-08-12T18:28:52 | 100,129,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,211 | py | import requests
from django.http.response import HttpResponse
from .models import ClimateData,ClimateStatistics
from urllib.request import Request,urlopen
from django.core.files import File
from django.core.files.temp import NamedTemporaryFile
import re
from django.shortcuts import render
from django.core.files.storage... | [
"kumaramrit38@gmail.com"
] | kumaramrit38@gmail.com |
55ce28c1e60c88d22722efb81141164f21ac9348 | df2c8ee21041b702219940221740ac2dbd29ea2d | /iReview_v1/inference.py | 0cce6f3f43fe880887cd91f35125aa2651948b0e | [] | no_license | RenqinCai/PersonalizedReviewCopy | 5e239edbe2451c4475d70e74e19a108e0b3f8060 | 37edb2d37bd9d29790eef2b990a982b89662e265 | refs/heads/master | 2021-05-25T16:55:50.617882 | 2020-12-30T21:51:40 | 2020-12-30T21:51:40 | 253,829,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,318 | py | import numpy as np
import torch
import random
from nltk.translate.bleu_score import sentence_bleu
import os
from metric import get_bleu
import torch.nn.functional as F
class INFER(object):
def __init__(self, vocab_obj, args, device):
super().__init__()
self.m_sos_idx = vocab_obj.sos_idx
se... | [
"rc7ne@hcdmg2.cs.virginia.edu"
] | rc7ne@hcdmg2.cs.virginia.edu |
2b21e720229bdef6dbd6d887daa7d4a5df8fef28 | eade1861db1968645e0e17dfaa5250a4b8245b98 | /instacart/nlabel.py | a00b01205457a2c432de7808a247b9399784e38a | [] | no_license | piupiuup/competition | 5b5da56fed336e07cf99cef8f5bfe89a8f771900 | 076c30df3d2647cb3580c543e604375e84590ca7 | refs/heads/master | 2022-09-30T14:47:01.244084 | 2020-05-30T12:56:02 | 2020-05-30T12:56:02 | 268,074,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,573 | py | # -*-coding:utf-8 -*-
import os
import tqdm
import pickle
import numpy as np
import pandas as pd
import lightgbm as lgb
import scipy.stats as scs
from sklearn.cross_validation import KFold
IDIR = '/home/user/Desktop/cuishiwen/instacart/data/'
cache_path = 'F:/cache/instacart_cache/'
cache2_path = 'F:/cache/instacart_... | [
"278044960@qq.com"
] | 278044960@qq.com |
640c741dd9bb3b08088c64b6c6b4ed938a5eee3d | 0a42fed6746cd9093fc3c3d4fbd7ac5d2cff310f | /python高级编程io/study02/code07_class_method.py | c1144121a6361a620dbc4cf0b5c7e4b4756da491 | [] | no_license | luoshanya/Vue_Study | 4767fc46f2186c75a4b2f7baeeb2fcc9044bd9a4 | d3a07364a63f0552b166a5697a7245f56e38e78d | refs/heads/master | 2020-06-19T02:15:20.253362 | 2019-07-17T08:49:48 | 2019-07-17T08:49:48 | 196,529,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | class Date:
def __init__(self, year, month, day):
self.year = year
self.month = month
self.day = day
@staticmethod
def static(str_data):
year, month, day = tuple(str_data.split('-'))
return Date(int(year), int(month), int(day))
@classmethod
def cls_method(cl... | [
"310927880@qq.com"
] | 310927880@qq.com |
d93e2c2dd0d791c1b5717f893307404535f8267a | f36cd54c6b66bcd373b8074bb9738649877f3438 | /xblock_ifmo/core/xblock_ifmo.py | 261c287cbec83f1292fdb889566877bd1b7b1643 | [] | no_license | npoed/ifmo-xblock-framework | 2f635dfb848f968927122cd36b60fcd74b44ba33 | d3eece00402eb69ffbdcb95e99c99d0b1c965106 | refs/heads/master | 2023-01-01T22:48:22.301231 | 2020-09-30T16:22:15 | 2020-09-30T16:22:15 | 299,882,622 | 0 | 0 | null | 2020-09-30T10:20:28 | 2020-09-30T10:20:27 | null | UTF-8 | Python | false | false | 7,591 | py | # -*- coding=utf-8 -*-
import logging
from courseware.models import StudentModule
from django.contrib.auth.models import User
from xblock.core import XBlock
from xmodule.util.duedate import get_extended_due_date
from webob.response import Response
from ..fragment import FragmentMakoChain
from ..utils import require,... | [
"defance@gmail.com"
] | defance@gmail.com |
ce66af89f555b5a8250af7fb0556da9101942799 | 71c49e0cf373e72c5792a7e5aa5657400f9d8cf0 | /photobooth/urls.py | c9bfe1b75b74848344e7c76f94b5728af1e1036f | [] | no_license | relekang/photobooth | 5aefaef5fff08008c0c320ee70979ff78eacc1cf | 9c82d355c6f53a6e2743aabeaf2c040300befbb5 | refs/heads/master | 2020-12-14T09:01:33.198677 | 2015-11-22T08:57:05 | 2015-11-22T08:57:41 | 46,576,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from . import views
admin.site.site_header = 'Photobooth'
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^api/', include('photobooth.api.urls')),
... | [
"me@rolflekang.com"
] | me@rolflekang.com |
f2216bf62f0faca405139c23e58a303ebc325977 | 7c15f211adc9e9eb9f66ccdd570c9f38dff7ea8d | /packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/CustomBaseUriVersionTolerant/setup.py | 6d07b965c77d63558bf25ebcab0b322d3596a6e4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/autorest.python | cc4bfbf91ae11535731cad37cedd6b733edf1ebd | a00d7aaa3753ef05cb5a0d38c664a90869478d44 | refs/heads/main | 2023-09-03T06:58:44.246200 | 2023-08-31T20:11:51 | 2023-08-31T20:11:51 | 100,315,955 | 47 | 40 | MIT | 2023-09-14T21:00:21 | 2017-08-14T22:58:33 | Python | UTF-8 | Python | false | false | 1,008 | 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"
] | Azure.noreply@github.com |
aafdcfbae25f4fcd453f97b9ea98141dc461a671 | ee86ad4b38f6ba13f195246f14224ba781f933cc | /알고리즘실습/AD/부분집합의합.py | 60a9d43961a2c316d1da35f2f912afff9b53d73c | [] | no_license | yejikk/Algorithm | aed7adf00c1e32d21b735b3b34dc6cb75049f164 | 531f43305b3a23c824c9e153151b7280c1dc2535 | refs/heads/master | 2020-04-17T06:17:28.961656 | 2019-11-16T08:02:49 | 2019-11-16T08:02:49 | 166,318,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | import sys
sys.stdin = open('부분집합의합.txt')
def subset(number):
# 원소의 수 -> S
# 원소의 수가 S개 일 경우 2**S는 전체 부분집합의 수를 의미(공집합 포함)
arr = [[] for _ in range(2**S)]
# 부분집합의 개수
for i in range(1<<S):
# 원소의 수만큼 비트 비교
for j in range(S):
if i & (1<<j):
arr[i].append(numb... | [
"dpwl7484@gmail.com"
] | dpwl7484@gmail.com |
46455eebd427110368c6d93e8210a4488b309052 | fb3b43ab9e7e9874f8cc53caa44f292387d57cf7 | /Mascotas/apps/mascota/forms.py | 5ae54464b79e7193d43a79751430327e7d4f962e | [] | no_license | CoriAle/zona | cdb06e4d9d1a4ed61731a285e5e71df0cdcfec31 | 8bd13ba3bc506f88ad02f26b4562b889effc3ac7 | refs/heads/master | 2021-08-06T20:21:04.050053 | 2017-11-07T02:07:47 | 2017-11-07T02:07:47 | 106,186,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | from django import forms
from apps.mascota.models import Mascota, Vacuna
class MascotaForm(forms.ModelForm):
class Meta:
model = Mascota
fields = [
'nombre',
'edad',
'fecha_rescate',
'genero',
'persona',
'vacuna',
... | [
"1995coral@hotmail.es"
] | 1995coral@hotmail.es |
6137fb40a4e270db6cd3566678423d2092bad69c | 1d9059e03874838318885990931e4f3dd741bb7e | /users/admin.py | 91278752e36593cd98f7e5f9fc69427026d707bc | [] | no_license | Chirag-Django/temp_nonstop | fc5efc42d9c484ad3431454f67a428fe5ce94000 | 2c5904d4e12e487447eda9a1d8e4a4b3c17307b9 | refs/heads/master | 2023-03-09T12:55:49.953273 | 2021-02-19T01:35:44 | 2021-02-19T01:35:44 | 340,226,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from django.contrib import admin
from .models import Profile
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
list_display = ['user','address','age']
admin.site.register(Profile,ProfileAdmin) | [
"chirag.django@gmail.com"
] | chirag.django@gmail.com |
90c27e41c4db505141eefc01d03a5c22cf0cab02 | 35271f6bd874799df9a93dbe5bcc50272b619dc1 | /ML/Pytorch/image_segmentation/semantic_segmentation_unet/dataset.py | 0c0f098d474994373657cf0a025b40cc55516856 | [
"MIT"
] | permissive | aladdinpersson/Machine-Learning-Collection | c724186b64ae52efa6f9d4e97f37477900901d35 | 558557c7989f0b10fee6e8d8f953d7269ae43d4f | refs/heads/master | 2023-08-31T20:52:06.493437 | 2023-03-21T11:44:08 | 2023-03-21T11:44:08 | 250,184,708 | 5,653 | 2,543 | MIT | 2023-09-02T03:51:36 | 2020-03-26T07:02:40 | Python | UTF-8 | Python | false | false | 978 | py | import os
from PIL import Image
from torch.utils.data import Dataset
import numpy as np
class CarvanaDataset(Dataset):
def __init__(self, image_dir, mask_dir, transform=None):
self.image_dir = image_dir
self.mask_dir = mask_dir
self.transform = transform
self.images = os.listdir(ima... | [
"aladdin.persson@hotmail.com"
] | aladdin.persson@hotmail.com |
bb41d8c33a9ace3b96c2435fa2c15e9c5bc5c2e4 | b2c24abff86b28ca8a495b3a3c3227f070737aa2 | /parlai/messenger/core/server_utils.py | 2aa0f6024a7e4d609bf781b93589828e12037bef | [
"MIT"
] | permissive | hengyicai/AdaND | d5dda1b2fcd2abd17be6603de632f0515382b37b | 5e3fefb1cf40c42215a37246efc64958ae6db005 | refs/heads/master | 2023-09-01T07:38:49.076947 | 2020-10-19T04:58:00 | 2020-10-19T04:58:00 | 204,633,631 | 10 | 2 | MIT | 2023-08-11T19:52:23 | 2019-08-27T06:20:39 | Python | UTF-8 | Python | false | false | 10,485 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import getpass
import glob
import hashlib
import netrc
import os
import platform
import sh
import shlex
import shutil
im... | [
"caihengyi@ict.ac.cn"
] | caihengyi@ict.ac.cn |
eedf734f0ab7a9cfcb0598a39699f475ff9592a2 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/web/v20190801/get_app_service_environment.py | ab8f85eee103ca4512b2ca29475cc820d19873ec | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 27,640 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
c80d9a2343aca0918bbb101a3c88bd909e4f5918 | 7d2a4c5ca215a362ad6fbb70ef5b5f8c35d41dde | /Blogs/migrations/0002_alter_blog_image.py | 0f7415c8765b564f966cfe2b42c4fbfbbaa858a1 | [] | no_license | samarthdubey46/e-waste-management-api | 77dcc92fa31b01830196e5092cb8a9e181963d01 | db1e8644c907f926f81405de82befe24802ca0f1 | refs/heads/master | 2023-07-15T14:15:10.199441 | 2021-08-31T08:02:53 | 2021-08-31T08:02:53 | 400,775,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.2.6 on 2021-08-28 08:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Blogs', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='blog',
name='image',
field=... | [
"samarthdubey46@gmail.com"
] | samarthdubey46@gmail.com |
53a0ba2cffce925eb433917b92108940b30cdadd | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/splom/marker/colorbar/_yanchor.py | 7bdec6fa6e20bdf476093c16d4c3744796a72d42 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 502 | py | import _plotly_utils.basevalidators
class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self,
plotly_name='yanchor',
parent_name='splom.marker.colorbar',
**kwargs
):
super(YanchorValidator, self).__init__(
plotly_name=plo... | [
"jon.mease@gmail.com"
] | jon.mease@gmail.com |
e6970cb8d04c3a1b3b3da121bdf7651f040de209 | 3bb57eb1f7c1c0aced487e7ce88f3cb84d979054 | /lseval+lexmturk/scripts/sr_rankers/Run_All_Horn.py | eb5c4ae4dfce46d0995eda12dedd951c2de65797 | [] | no_license | ghpaetzold/phd-backup | e100cd0bbef82644dacc73a8d1c6b757b2203f71 | 6f5eee43e34baa796efb16db0bc8562243a049b6 | refs/heads/master | 2020-12-24T16:41:21.490426 | 2016-04-23T14:50:07 | 2016-04-23T14:50:07 | 37,981,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import os
#Parameters:
Cs = ['1', '0.1']
epsilons = ['0.0001', '0.001']
kernels = ['0', '1', '2', '3', '4']
trainset = '../../corpora/ls_dataset_benchmarking_train.txt'
testset = '../../corpora/ls_dataset_benchmarking_test.txt'
os.system('mkdir ../../sr_rankings/horn')
counter = -1
for C in Cs:
for e in epsilons:
... | [
"ghpaetzold@outlook.com"
] | ghpaetzold@outlook.com |
73230a94456e0062d709d371ebeac405c5879b53 | ee76919635ce69e14ddf64ee9483dca073625aaf | /pythonAlgorithm/Practice/15三数之和.py | f18feaa502c50835d85034cfb9039363f056ee87 | [] | no_license | bossjoker1/algorithm | 574e13f0dd8fe6b3e810efc03649493e90504288 | c745168a01380edb52155ca3918787d2dd356e5b | refs/heads/master | 2022-07-13T16:26:10.324544 | 2022-07-10T03:28:15 | 2022-07-10T03:28:15 | 407,361,838 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | class Solution:
def threeSum(self, nums: List[int]) -> List[List[int]]:
n=len(nums)
res=[]
# 特判
if(not nums or n<3):
return []
nums.sort()
res=[]
for i in range(n):
# 全为正整数的情况
if(nums[i]>0):
return r... | [
"1397157763@qq.com"
] | 1397157763@qq.com |
0063eea34d1491e9546c8c5e3ed0b43f7fb66034 | d57f981dc8a2cc80a273e49443c8f99aa38b5ad1 | /posts/admin.py | 3fbfa6f6c7502a23d5f1054b7a5bb564927db8be | [] | no_license | zmm064/TryDjango19 | cfa048f84e5998c9329ed167b79b6d155d8a7ae0 | da2191ecc08ec17fb94c2c7510eee6e09d6db71d | refs/heads/master | 2021-04-27T00:20:38.741458 | 2018-03-09T11:15:28 | 2018-03-09T11:15:28 | 123,797,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from django.contrib import admin
# Register your models here.
from .models import Post
class PostAdmin(admin.ModelAdmin):
list_display = ["title", "updated", "timestamp"]
list_display_links = ["updated"]
list_filter = ["updated", "timestamp"]
list_editable = ["title"]
search_fields = ["title", "co... | [
"zmm064@foxmail.com"
] | zmm064@foxmail.com |
d530d04821718e82725fa9b779b7c11b08bd24ce | 50e3ae7c6a057fb20af1a14641b3b03ce8b7516d | /Python-曾學文/final/subtitleCrawler/subtitleCrawler/subtitleCrawler/spiders/zmtiantang.py | f76bc8a05b2e2de0a69c7387e065f8f9cff54730 | [] | no_license | david30907d/HomeWork | a8787093baa95f4a39a0ad255d8a3304f156b6e6 | 6908d4bac7269a65b1e7bc6bca8096c304eeae3f | refs/heads/master | 2020-12-29T02:32:37.124986 | 2018-06-26T14:06:35 | 2018-06-26T14:06:35 | 55,396,758 | 1 | 1 | null | 2019-11-04T03:25:21 | 2016-04-04T08:45:20 | JavaScript | UTF-8 | Python | false | false | 1,045 | py | # -*- coding: utf-8 -*-
import scrapy
from bs4 import BeautifulSoup
import requests
import shutil
class ZmtiantangSpider(scrapy.Spider):
name = "zmtiantang"
allowed_domains = ["www.zmtiantang.com"]
start_urls = list(map(lambda x:'http://www.zmtiantang.com/e/action/ListInfo/?classid=1&page=' + str(x), range... | [
"davidtnfsh@gmail.com"
] | davidtnfsh@gmail.com |
e06c17fe9746be2b35d591a6f3d3b6a268adc273 | 4947b045d4a221d4e92ac363b22c1213e1c11c0b | /eelbrain/plot/_line.py | 2bfef0d4c951afafc731be98e67076905f3f535f | [
"BSD-3-Clause"
] | permissive | weilongzheng/Eelbrain | 51db9396ba5184493ff59e0d481aac3aae64442c | feb9bdec2a99aca3077e44f318aef1c85a2e4730 | refs/heads/master | 2020-03-28T18:31:24.633084 | 2018-09-12T02:38:57 | 2018-09-13T20:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,895 | py | # -*- coding: utf-8 -*-
# Author: Christian Brodbeck <christianbrodbeck@nyu.edu>
"Line plots"
from itertools import cycle, repeat
import numpy as np
from .._data_obj import ascategorial, asndvar, assub
from ._base import (
EelFigure, Layout, LegendMixin, XAxisMixin, find_axis_params_data,
frame_title)
from fu... | [
"christianmbrodbeck@gmail.com"
] | christianmbrodbeck@gmail.com |
42a601ec67877ad564b2a27019c601b1b6d54007 | ce6cb09c21470d1981f1b459293d353407c8392e | /lib/jnpr/healthbot/swagger/models/devicegroup_schema_logging_syslog.py | 39bcac4a8b3a6a430adb23b8b3c466be84056209 | [
"Apache-2.0"
] | permissive | minefuto/healthbot-py-client | c4be4c9c3153ef64b37e5344bf84154e93e7b521 | bb81452c974456af44299aebf32a73abeda8a943 | refs/heads/master | 2022-12-04T07:47:04.722993 | 2020-05-13T14:04:07 | 2020-05-13T14:04:07 | 290,145,286 | 0 | 0 | Apache-2.0 | 2020-08-25T07:27:54 | 2020-08-25T07:27:53 | null | UTF-8 | Python | false | false | 4,871 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class DevicegroupS... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
357714394ac3d126251c1f1d6028f9c3b887f31f | 92b3ade5b69889b806f37c440ff7bbe9ad1e9ca9 | /mysite/project/apps/myauth/views.py | 1dba2ec8e0f00a539fef9d249c3270ae41be4ca3 | [] | no_license | BorisovDima/WebProject | 4b468ed07555140890165954710185612d629ec9 | e84e5e5d83028412bdfb8cb93c8ec0fde5c54980 | refs/heads/master | 2022-12-10T17:17:56.159721 | 2019-02-22T02:42:53 | 2019-02-22T02:42:53 | 160,443,451 | 0 | 0 | null | 2022-11-22T03:08:53 | 2018-12-05T01:43:46 | Python | UTF-8 | Python | false | false | 3,505 | py | from django.urls import reverse
from django.template.loader import render_to_string
from django.views.generic import CreateView, RedirectView
from django.contrib.auth import get_user_model
from django.contrib.auth.views import LogoutView, LoginView
from django.conf import settings
from django.contrib.auth.views import ... | [
"you@example.com"
] | you@example.com |
a129616b2d8205c61a851bfcdd1eb74d7f79d46e | 7db3916d8ac8a66a954d230e43bb74b37f81357c | /04day/04-私有属性.py | 6736df4df214cab944cec7f434b9bcd4fc74452e | [] | no_license | 2001128/2_1805 | 2fc96bc6f8e2afcd9d4743891ecd87b754c28cc8 | b3d4bfab2703a7c6aa1c280669376efeab28cad1 | refs/heads/master | 2020-03-22T20:53:14.903808 | 2018-07-30T06:04:49 | 2018-07-30T06:04:49 | 140,639,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | class Father():
def __init__(self):
self.__count = 3#处过对象的个数
def getCount(self):
return self.__count
def setCount(self,count):
self.__count = count
f = Father()
#f.__count = 10
#print(f.__count)
f.setCount(20)
print(f.getCount())
| [
"335775879@qq.com"
] | 335775879@qq.com |
eb58654846043c31dcb2355b68903eccb409778b | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /etcmodel/models/hotpotqa/run_finetuning.py | 9e42f63277637dc3a5a487533da3af1b4eb96477 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 20,511 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
991d23daa0afbd61d11515d50d29b0a0a1b642f9 | bcfbb49b054380db6e7aeadc2d4e62292b5307f9 | /singh/ch6_4_lu_factorization/ex6_18_lu_factorization3.py | 692e64036d5d8462dd770ddd094eadebbe9287ac | [] | no_license | hiddenwaffle/Ax-equals-b | de82d43248962ae072fd8b8a0c9eab37b52fd472 | e5f4e4ac5b928440ee557eff9cf4d4683b8f7e56 | refs/heads/main | 2023-04-15T11:24:51.010982 | 2021-04-28T18:31:00 | 2021-04-28T18:31:00 | 322,965,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from sympy import *
A = Matrix([
[1, 4, 5, 3],
[5, 22, 27, 11],
[6, 19, 27, 31],
[5, 28, 35, -8]
])
L, U, _ = A.LUdecomposition()
pprint([L, U])
pprint(L * U)
| [
"hiddenwaffle@users.noreply.github.com"
] | hiddenwaffle@users.noreply.github.com |
3d5c5964be2e81318b7e8e0054b9ba5867650277 | 54ab19e469488dedd50673c848955ffd7ab1d753 | /aarsix/settings.py | 2c5fe5c7b891529b7f1f965f1871ab5ac3efe7ad | [] | no_license | jgjefersonluis/aarsix | 05093c72bdbbff248f5320662da2c2bf905a2dd2 | c6c30d33db8632de1e83d32afb30814031c13663 | refs/heads/master | 2023-03-28T04:01:32.402784 | 2021-03-28T20:57:11 | 2021-03-28T20:57:11 | 352,427,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | """
Django settings for aarsix project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"jgjefersonluis@gmail.com"
] | jgjefersonluis@gmail.com |
c78047d7c975a67bd8a2e35ddd7e02a721f1f170 | bcb8337b488f6acb91b700a2312a5b2018855413 | /federatedml/logistic_regression/base_logistic_regression.py | 87ca766b24f622744a7ef1222929579ffbcf7367 | [
"Apache-2.0"
] | permissive | freeeedooom/FATE | d17a4729f059cfec6bc07c3142bebcd3b470dc3c | 7bbce8ee037543f280791378681742b40a300b0a | refs/heads/master | 2020-08-19T12:15:22.517131 | 2019-10-17T07:09:22 | 2019-10-17T07:09:22 | 215,918,890 | 1 | 0 | Apache-2.0 | 2019-10-18T01:45:43 | 2019-10-18T01:45:43 | null | UTF-8 | Python | false | false | 15,747 | py | #
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"jicezeng@gmail.com"
] | jicezeng@gmail.com |
0358e81903c9f25adf5e47fa32c43ed72879f3a9 | ac60e6e0bede04f3897c2a9806d4b0909abfea31 | /flaskblog/recognizer.py | 34693038bff7a781dd4286b0a168f7272b2b99e4 | [] | no_license | teja0508/Web-App-with-Face-Verification-Login-System | 35c387becbc99e37a58d8ae858b48ac31595a6d1 | 6da47d7e5a15a0f32751511d2e1c99be57d0894e | refs/heads/master | 2022-11-18T09:12:54.284572 | 2020-07-03T05:48:32 | 2020-07-03T05:48:32 | 276,817,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | import face_recognition
import numpy as np
import cv2
import os
def Recognizer():
video = cv2.VideoCapture(0)
known_face_encodings = []
known_face_names = []
base_dir = os.path.dirname(os.path.abspath(__file__))
image_dir = os.path.join(base_dir, "static")
image_dir = os.path.join(image_dir, "profile_pics")
... | [
"lchandratejareddy@gmail.com"
] | lchandratejareddy@gmail.com |
6a630ade66aaaa5fc763aabec423966dac49db2d | 9908afd9f51caa50d0204f43cd658ab558694d45 | /gits-find.py | 3c2058e0f2adebbf1e156bad76ebca4dd6c47154 | [
"MIT"
] | permissive | furas/python-git | 351289b59037ec6f6ac54d3f28e50facd350e753 | 9ce447b05a59c31459e0005526ffc21ba5fafaca | refs/heads/master | 2021-03-19T16:46:22.405785 | 2017-12-01T20:40:19 | 2017-12-01T20:40:19 | 101,456,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import os
#path = os.path.expanduser('~')
path = os.path.expandvars('$HOME')
for root, folders, files in os.walk(path):
if '.git' in folders:
print(root)
| [
"furas@tlen.pl"
] | furas@tlen.pl |
fa38461ea17f79f0bbde5f9888ee3584bc8e2702 | dec691f24a5a8c204c9394778d237ee83c48ac94 | /indicoExport/caleventexport.py | 59d30b50a8ac2defb9d87d549b165a7f64fd505e | [] | no_license | sgnoohc/login | c94eafd6bfb81224f6943cd807a455f5a48085ae | cdf3e08b721e6659e8122df46b2c08638bfde3c2 | refs/heads/master | 2021-01-19T23:01:12.526630 | 2017-09-22T16:57:45 | 2017-09-22T16:57:45 | 88,910,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | #!/bin/env python
# script to download from indico the ics files you want
# ==================================================
# code starts here
# ==================================================
import hashlib
import hmac
import urllib
import time
import os
import sys
def build_indico_request(path, params, api... | [
"sgnoohc@gmail.com"
] | sgnoohc@gmail.com |
64a06d470324e94d64463a563523ac3a6ac06c6d | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_17875.py | a7950a107ba5299ae21ee4ebd6c75aaada1327c8 | [] | 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 | 78 | py | # Python Matplotlib: Change Colorbar Tick Width
CB.lines[0].set_linewidth(10)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
81aa2ee36e3ae549fea5d72bdca67d1626f824c9 | fbf254edbd7af1f83e074ac6b574442d32b57b9d | /leetcodeProblems/gas_station.py | 3fc728f7e31a4829b05c81044f5652344d6da79c | [] | no_license | Madhivarman/DataStructures | cc55456d2dc7d276d364c67f3c0b74f6e0ac3a6e | f42d71c7c404c72a31b69d37e459f7d7ae9bfe25 | refs/heads/master | 2022-05-08T18:18:29.910621 | 2022-03-28T07:24:55 | 2022-03-28T07:24:55 | 133,028,620 | 4 | 0 | null | 2019-11-23T14:58:16 | 2018-05-11T10:57:04 | Python | UTF-8 | Python | false | false | 1,063 | py | """
Problem Statement:
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You
begin the journey with an empty tank at one of the gas sta... | [
"noreply@github.com"
] | Madhivarman.noreply@github.com |
8a0d2a0618ff00ce1f4cd0197b13da15959da76a | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /1368_Minimum_Cost_to_Make_at_Least_One_Valid_Path_in_a_Grid/try_2.py | dd920daca99b0c539180370abf6f9d628c951810 | [] | no_license | novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | Python | UTF-8 | Python | false | false | 1,748 | py | class Solution:
def minCost(self, grid: List[List[int]]) -> int:
'''
每一次挑cost最小 & (目前離終點的直線距離最小 => 自己實踐heap去比較)
=> 每個點都可以,要換or不換
但可能會走到重複的點 => 用dict存起來,若cost比較小,才能放進去heap (每次取出來之前也去比較一次)
'''
def getPos(x, y, move):
if move == 1:
... | [
"f14051172@gs.ncku.edu.tw"
] | f14051172@gs.ncku.edu.tw |
282061daa67fa2c6724f19e0f19560f2cfe09b3a | 24eff244d3a5327d79ae6244f748b7689c43ad5e | /tfmodules/model/model_builder.py | 29daaddfe4778d8ba8b1a4edacea3ff7ba83bf60 | [
"Apache-2.0"
] | permissive | motlabs/dont-be-turtle | e41a3d532169abdf2cf89dca9067c50da7ba08e8 | bd754736ea6caa3ccd58866657d97112f4bcf1cf | refs/heads/develop | 2022-12-12T12:22:20.770696 | 2018-12-02T15:16:40 | 2018-12-02T15:16:40 | 129,588,368 | 33 | 5 | Apache-2.0 | 2022-11-22T02:48:39 | 2018-04-15T07:47:18 | Python | UTF-8 | Python | false | false | 6,184 | py | # Copyright 2018 Jaewook Kang (jwkang10@gmail.com)
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"jwkang10@gmail.com"
] | jwkang10@gmail.com |
282c6ac2179d429b7507c40c91175dbe93cb62fa | 833d860e5bf77053a74d370d539dfc9a57922b0a | /main_lazy_hlt.py | 5a81980dd7e52a8dd0d7db35d1c4258cbbb22829 | [] | no_license | ydnaandy123/2018_cvpr_gan | 4da9693c9bb53fec97165292d8a40af31a45bf2b | 45a0ae757cba244a1f2e4c212d3b19475f82faff | refs/heads/master | 2021-08-15T03:54:52.891925 | 2017-11-17T08:59:44 | 2017-11-17T08:59:44 | 107,197,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,229 | py | from __future__ import print_function
from dataset_parser import GANParser, ImagePool
from module import *
import time
flags = tf.flags.FLAGS
tf.flags.DEFINE_integer("image_height", 256, "image target height")
tf.flags.DEFINE_integer("image_width", 256, "image target width")
tf.flags.DEFINE_integer("c_in_dim", 3, "inp... | [
"ydnaandy123@gmail.com"
] | ydnaandy123@gmail.com |
54042e605d4159be51f3d8d5a562382eb272bac9 | ab5731ae6e190a9b44b1cddbd11af89277302de9 | /deepLN/captcha/baidu_contest/cnn_jisuanshi_0.8_rnn.py | a3e40beb07bee63f4c426649649d1a3b45677e85 | [] | no_license | MachineLP/py_workSpace | e532781aab51c54a87602c387acd3199f9a75140 | 7937f3706e8d2d8a0e25ba0648bee6d1fcb27234 | refs/heads/master | 2021-08-29T02:56:02.415509 | 2021-08-23T10:38:59 | 2021-08-23T10:38:59 | 117,516,956 | 22 | 18 | null | null | null | null | UTF-8 | Python | false | false | 11,037 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 19 12:06:49 2017
@author: liupeng
"""
import numpy as np
import tensorflow as tf
import argparse
import os
from PIL import Image
FLAGS = None
# 图像大小
IMAGE_HEIGHT = 70
IMAGE_WIDTH = 500
batch_size = 64
lex = ['?','0','1','2','3','4','5','6','7'... | [
"noreply@github.com"
] | MachineLP.noreply@github.com |
53287ca13c22599139bdaa837069e8b398154f5d | 8f3ceff01367c4550b2dd71f65af70c28bf8eed1 | /GenericViewCRUD/products/forms.py | 4efdd9fa21f8e4f628acf149cff5aff3da40856b | [] | no_license | anupjungkarki/ClassBasedVIEW-and-GenericVIEW-CRUD | 53110379420fca90cceec58c221e51f6523392a0 | ed99e50fab8b531d9a2167b11eb4eee8cc439351 | refs/heads/master | 2023-02-13T16:32:33.930218 | 2021-01-07T09:22:44 | 2021-01-07T09:22:44 | 327,561,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django import forms
from .models import Product
class ProductForm(forms.ModelForm):
class Meta:
model = Product
fields = ['name', 'slug', 'description', 'image', 'price']
| [
"anupkarki2012@gmail.com"
] | anupkarki2012@gmail.com |
9785f44eadbf85ca4d7a7c30a7ebc249dffeaa30 | f7aa321f384c6a052e0a88e2adaea9bea2c5f7a6 | /geophys_utils/dataset_metadata_cache/_dataset_metadata_cache.py | ba9a6bd7f3010369dfd6fff1306bd62c7d158947 | [
"Apache-2.0"
] | permissive | alex-ip/geophys_utils | 4af3637b6d47b818106ddfb0a11b3230992dcf71 | bcbf4205b7b06d88a26adfe0c4da036d54425751 | refs/heads/master | 2023-07-05T20:22:31.889192 | 2023-05-09T07:03:22 | 2023-05-09T07:03:22 | 226,753,773 | 2 | 0 | Apache-2.0 | 2019-12-09T00:37:35 | 2019-12-09T00:37:35 | null | UTF-8 | Python | false | false | 5,203 | py | '''
Created on 19 Jul. 2018
@author: Alex Ip
'''
import abc
import logging
import os
import yaml
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO) # Initial logging level for this module
settings = yaml.safe_load(open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'dataset_metadata_cache... | [
"alex@trentham.net.au"
] | alex@trentham.net.au |
c46b8a0bb1661133bd998bdce146a51f5648e1d8 | 0b1e404a165c960677d07015bc26aac0569cf84a | /src/combustion/optim/onecycle.py | f502b82cca9113b6b2d9e7a5b5c867bf289a9729 | [
"Apache-2.0"
] | permissive | johndpope/combustion | d3ec349cd7be086f55b4e3deebd571c97842e1ed | c3f91e62a10a873cfeeae8c675b0683bc5158818 | refs/heads/master | 2023-03-01T14:34:42.149415 | 2021-02-07T17:55:58 | 2021-02-13T17:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,753 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from typing import Optional
from torch.optim import Optimizer
from torch.optim.lr_scheduler import OneCycleLR
class SuperConvergenceLR(OneCycleLR):
r"""Sets the learning rate of each parameter group according to the
1cycle learning rate policy. The 1cycle policy... | [
"tidalpaladin@protonmail.com"
] | tidalpaladin@protonmail.com |
7b2a4ddc6b7320391e621149122948f371ce83e6 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/preprocess_20210419145511.py | 677f86d7c80961ac295d19e0eb7be0aa3ad43e69 | [] | 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 | 7,674 | py |
import os
import random
import numpy as np
from PIL import Image
import tensorflow as tf
import hyperparameters as hp
class Datasets():
""" Class for containing the training and test sets as well as
other useful data-related information. Contains the functions
for preprocessing.
"""
def __init__... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
2701c269f7ccc8bd889ed6aafc49b1be6127a794 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_Class305.py | 5f8ebb32204cb0db962ae68cdf9fa47b28ced1cb | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,321 | py | # qubit number=3
# total number=57
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
c2eecbcd52e98f859f31d19e378dfac34fbea24e | 14cfafbe45523a053251b340a22c8992e4a3a088 | /dvc/remote/local.py | 1b8d79483d6df989637b930beede98680b51cf45 | [
"Apache-2.0"
] | permissive | VetoPlayer/dvc | df737529cb7081ce1a732bf0a369482eace59bda | 50ea36e740da734bed70a805f2fab6c11f44b042 | refs/heads/master | 2020-03-22T14:35:57.970650 | 2018-07-07T22:13:21 | 2018-07-07T22:13:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,883 | py | import os
import uuid
import json
import shutil
import filecmp
from dvc.system import System
from dvc.remote.base import RemoteBase, STATUS_MAP
from dvc.state import State
from dvc.logger import Logger
from dvc.utils import remove, move, copyfile, file_md5, to_chunks
from dvc.config import Config
from dvc.exceptions i... | [
"kupruser@gmail.com"
] | kupruser@gmail.com |
ff4d182ed3b1186ac53818daa268a361f1f782f9 | c50d15aa9467949ae7dc69e4505accc85588ca94 | /tests/test_python_cmdline.py | 52cc5f3cd6dcf7eb4a463a18e626dbf9080df103 | [
"Apache-2.0"
] | permissive | trawick/stacktraces.py | f79e65a15a83c53e461366300bccce54b12b9e0b | 405f064f09cf8ecb224540e1f10584f236250196 | refs/heads/develop | 2021-01-21T13:07:25.971437 | 2018-05-07T20:24:14 | 2018-05-07T20:24:14 | 48,593,688 | 9 | 3 | Apache-2.0 | 2018-04-30T15:59:50 | 2015-12-25T23:18:20 | Python | UTF-8 | Python | false | false | 24,992 | py | import unittest
import pytz
import six
from stacktraces.python.shortcuts import describe_lines, parse_trace_msg, process_log_file, read_log
PYTHON_STACKTRACE = u"""[14/Mar/2015 01:37:05] ERROR [django.request:231] Internal Server Error: /walk/ExYu
Traceback (most recent call last):
File "/home/trawick/git/walking/... | [
"trawick@gmail.com"
] | trawick@gmail.com |
7a7dcff347cf0be58c7f7e31b6ad5683d3ad83bb | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ_16_1/16_1_2_ramesh_srivatsan_file.py | 48a62c972a704f3e67df69ac6179a26b29de87ff | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 454 | py | t = int(raw_input())
for _ in range(t):
n = int(raw_input())
l = {}
for i in range(2*n-1):
pp = str(raw_input()).split()
for a in pp:
if l.has_key(a):
l[a]+=1
else:
l[a]=1
li = []
for key, value in l.iteritems():
if valu... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
fe67d0066e94d1d7a237475ee1a475f287a22508 | 4b87a0de0f43de2bde41f2590faac970c18fe482 | /core/migrations/0123_auto_20210210_1037.py | 460ef79d8183a699baef11dcc6f3debf78449c3e | [] | no_license | krishSona/testbackend | d0bc325776537d9814b9022b3538b5e8a840e6a4 | d87e050d02542c58876d4f81c2ea99815ab4160e | refs/heads/master | 2023-04-08T01:26:42.070058 | 2021-04-03T06:08:54 | 2021-04-03T06:08:54 | 354,214,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # Generated by Django 3.0.5 on 2021-02-10 10:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0122_domain'),
]
operations = [
migrations.AlterField(
model_name='domain',
name='name',
field=m... | [
"kali@dailysalary.in"
] | kali@dailysalary.in |
995cc4b4e5c8fe123f68dc302262b15b94a96e8d | 135aca3b7bab7c32d590986b0ac8cfe905c75657 | /pytx/wsgi.py | 6bd72939eb054853dc32c6bf1f974fc2ab870c46 | [
"MIT"
] | permissive | pytexas/PyTexas | 9e083d4ad3ba72126babcf0df656f793a4439472 | 6ab364dee4f23de0b0fa78036a2428be7497fdf2 | refs/heads/master | 2022-01-12T03:35:15.409636 | 2019-05-05T14:31:44 | 2019-05-05T14:31:44 | 101,810,610 | 0 | 1 | MIT | 2019-04-05T02:57:54 | 2017-08-29T22:00:51 | Python | UTF-8 | Python | false | false | 458 | py | """
WSGI config for pytx 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
BASE_DIR = os.path.dirname(os.path.di... | [
"paul.m.bailey@gmail.com"
] | paul.m.bailey@gmail.com |
702130c3e1067acdf330242f29c3a53c8bb944fb | e58df4aeee11f8a97bdeede6a75a776d130f86d2 | /molpal/objectives/pyscreener/docking/__init__.py | 0efcc759bcd9da402e1f0ed64dd4aa57d63ad4b9 | [
"MIT"
] | permissive | ashuein/molpal | 6ecd79767d8ef254e2c852e20f77cd9338844f35 | 1e17a0c406516ceaeaf273a6983d06206bcfe76f | refs/heads/main | 2023-01-29T03:23:10.525555 | 2020-12-15T14:17:56 | 2020-12-15T14:17:56 | 321,720,018 | 1 | 0 | MIT | 2020-12-15T16:09:48 | 2020-12-15T16:09:48 | null | UTF-8 | Python | false | false | 521 | py | from typing import Dict
from molpal.objectives.pyscreener.docking.base import Screener
def screener(software, **kwargs):
if software in ('vina', 'qvina', 'smina', 'psovina'):
from molpal.objectives.pyscreener.docking.vina import Vina
return Vina(software=software, **kwargs)
if software in... | [
"deg711@g.harvard.edu"
] | deg711@g.harvard.edu |
1f4bd1ecea902d5847f4ab2e2dfa0f1d7161688b | 1f8e15456b2b591ebdbdd123868d72995f801f5f | /single/NormalBLP3.py | 9741f0d90bad8502a727abe60781cb4fc2b550e7 | [] | no_license | BaiLiping/ControllerBasedCoaching | bcc4104d42c310ccb234bd84ae9ef66a3ba74e78 | c718ef9896dc36819a2970465f47187ff0c7a261 | refs/heads/master | 2023-02-09T01:29:21.814357 | 2021-01-06T01:42:58 | 2021-01-06T01:42:58 | 308,488,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | from tensorforce import Agent, Environment
import matplotlib.pyplot as plt
import numpy as np
import math
import pickle
from tqdm import tqdm
#setparameters
num_steps=10 #update exploration rate over n steps
initial_value=0.95 #initial exploartion rate
decay_rate=0.5 #exploration rate decay rate
set_type='exponential... | [
"blp_engineer@outlook.com"
] | blp_engineer@outlook.com |
d3175d32a255ed2f4a57786732b6ab243f101446 | 0f16edb46a48f9b5a125abb56fc0545ede1d65aa | /client_cli/src/__init__.py | 36ea25a06ca41f5a26e0c71ada5e8a185c1910f8 | [
"Apache-2.0"
] | permissive | DataONEorg/d1_python | 5e685f1af0c356190f2d6df45d1ac849e2f56972 | d72a9461894d9be7d71178fb7310101b8ef9066a | refs/heads/master | 2023-08-29T03:16:38.131760 | 2023-06-27T21:59:37 | 2023-06-27T21:59:37 | 60,103,877 | 15 | 12 | Apache-2.0 | 2023-09-06T18:27:53 | 2016-05-31T16:01:00 | Python | UTF-8 | Python | false | false | 842 | py | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | [
"git@dahlsys.com"
] | git@dahlsys.com |
6c12c0b8fdc44ffc4c2c3cee8a47b873de1de762 | 724e29f9984ca7f607356ce1783bc29d8cb8dae8 | /lib/net/POINT2_model.py | 49933907cdf0435de1de30d029af6ab380ac410d | [
"MIT"
] | permissive | LiuLiluZJU/POINT2-pytorch | 3d9e4d5552c757986106b3dd3ca0b828f09b73d6 | c9f5fad59e2f7da2c169255de5a730d861a1a96e | refs/heads/master | 2022-11-25T02:20:47.018315 | 2020-08-08T05:20:48 | 2020-08-08T05:20:48 | 266,246,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchviz import make_dot
from kornia import SpatialSoftArgmax2d
from .unet_model import UNet
from .FE_layer import FE_layer
from .POINT_model import PNet
from .triangulation_layer import triangulation_layer
import matplotlib.pyplot as plt
import ma... | [
"email@example.com"
] | email@example.com |
de8ef6ccebcd187a581faf86b86c35701d6200f7 | 11e484590b27585facf758f0432eeebe66bf790a | /fal_invoice_milestone_purchase/wizard/purchase_make_invoice_advance.py | 0691ee65cc3d7a53ce22b97a015a0d621c6c880b | [] | no_license | jeanabreu/falinwa_branch | 51b38ee5a3373d42417b84a0431bad9f7295f373 | be96a209479259cd5b47dec73694938848a2db6c | refs/heads/master | 2021-01-18T10:25:49.866747 | 2015-08-25T10:05:05 | 2015-08-25T10:05:05 | 41,369,368 | 0 | 1 | null | 2015-08-25T14:51:50 | 2015-08-25T14:51:50 | null | UTF-8 | Python | false | false | 6,431 | py | from openerp.osv import fields, orm
from openerp.tools.translate import _
import openerp.addons.decimal_precision as dp
class purchase_advance_payment_inv(orm.TransientModel):
_name = "purchase.advance.payment.inv"
_description = "Purchase Advance Payment Invoice"
_columns = {
'amount': fields.flo... | [
"hans.yonathan@falinwa.com"
] | hans.yonathan@falinwa.com |
2fcec0007bb738adbc0f9bba1db2d6d3e174a56f | bacd13a19aa2cc0037961d101207afc5b26405ca | /configs/May_05_2018_Penalva_RPS05.py | e12fbc5446cda7c2f4d80a947b04c6fdb4898bc6 | [
"BSD-3-Clause"
] | permissive | saketkc/ribo-seq-snakemake | 85f74eda7a9972ce02f3091c0d181be64c688384 | 06b56d7fa1119c483a9f807c23f31fb9efa00440 | refs/heads/master | 2021-09-15T10:52:54.488854 | 2018-05-31T04:25:36 | 2018-05-31T04:25:36 | 82,966,027 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py |
## Absolute location where all raw files are
RAWDATA_DIR = '/auto/cmb-06/as/skchoudh/dna/May_05_2018_Penalva_RPS05/PenalvaL_05022018'
## Output directory
OUT_DIR = '/staging/as/skchoudh/rna/May_05_2018_Penalva_RPS05'
## Absolute location to 're-ribo/scripts' directory
SRC_DIR = '/auto/cmb-panasas2/skchoudh/github_... | [
"saketkc@gmail.com"
] | saketkc@gmail.com |
e81f3c205ce8eb12f67b402c0e69686aa7398c8c | 9cc8b489018dc25781b0aaa407a9ddc2a5caa72b | /examples/animations/leaky_echo_state_network.py | 8dce1fd3c088fdc0ccd48e68a4fa18fd481179bb | [
"Apache-2.0"
] | permissive | SocratesNFR/EvoDynamic | 2921fba58fec60ff8c3d239be4f84dced2f41d01 | ddd93c999d0120349ab022e47fd370ca58ec5ce7 | refs/heads/master | 2023-03-30T21:31:55.031043 | 2023-03-29T12:15:15 | 2023-03-29T12:15:15 | 183,439,783 | 17 | 5 | Apache-2.0 | 2020-09-07T13:08:13 | 2019-04-25T13:26:45 | Python | UTF-8 | Python | false | false | 3,996 | py | """ Simple animation of Echo State Network """
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import numpy as np
import evodynamic.experiment as experiment
import evodynamic.connection.random as conn_random
import evodynamic.connection as connection
import evodynamic.cells.activation as act
import networkx... | [
"sidneypontesf@gmail.com"
] | sidneypontesf@gmail.com |
3faca7161ed0a39f5560f4d9c40756b32f4754b5 | a7f855efff14e0b15cffb3f035d8dc9f7f102afe | /mfb/binWin/2.69/python/lib/numpy/core/machar.py | 252a87f798bc06c14035fcc9fea7b61bfd4fd78e | [] | no_license | BlenderCN-Org/FlipbookApp | 76fcd92644c4e18dd90885eeb49e5aecae28f6f0 | 0df2acebf76b40105812d2e3af8f0ef4784ab74c | refs/heads/master | 2020-05-27T14:33:25.330291 | 2014-07-10T17:47:29 | 2014-07-10T17:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,976 | py | """
Machine arithmetics - determine the parameters of the
floating-point arithmetic system
"""
# Author: Pearu Peterson, September 2003
__all__ = ['MachAr']
from numpy.core.fromnumeric import any
from numpy.core.numeric import seterr
# Need to speed this up...especially for longfloat
class MachAr(obj... | [
"mike.c.pan@gmail.com"
] | mike.c.pan@gmail.com |
8247d63f1aa8f4e29ddecf52de7dbe954d7f95a3 | 6b3e8b4291c67195ad51e356ba46602a15d5fe38 | /rastervision2/core/predictor.py | 9b6af32dc47db091718b15160f358eb35de21eed | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | csaybar/raster-vision | 4f5bb1125d4fb3ae5c455db603d8fb749221dd74 | 617ca15f64e3b8a391432306a743f7d0dfff352f | refs/heads/master | 2021-02-26T19:02:53.752971 | 2020-02-27T17:25:31 | 2020-02-27T17:25:31 | 245,547,406 | 2 | 1 | NOASSERTION | 2020-03-07T01:24:09 | 2020-03-07T01:24:08 | null | UTF-8 | Python | false | false | 4,141 | py | from os.path import join
import zipfile
from rastervision2.pipeline import rv_config
from rastervision2.pipeline.config import build_config
from rastervision2.pipeline.filesystem.utils import (download_if_needed,
make_dir, file_to_json)
from rastervision2.core.data.... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
e3108d7acd8e38aaf51c1907544cd85f233fe97f | 212724dd876c15ef801fb781e907b1c7dd08f4ae | /skyline/analyzer_dev/agent.py | 119b1a148c34b95fdd80d9a272df3f2da99a8d70 | [
"MIT"
] | permissive | wfloutier/skyline | b9e769cddccdefeeb7c7cc258524bbf489f9d5eb | b12758dc11564de93c7ad76c1f8ed3327db78aa4 | refs/heads/master | 2020-08-08T03:19:40.283298 | 2019-10-09T11:05:13 | 2019-10-09T11:05:13 | 213,693,601 | 0 | 0 | NOASSERTION | 2019-10-08T16:20:15 | 2019-10-08T16:20:15 | null | UTF-8 | Python | false | false | 7,067 | py | import logging
import sys
import traceback
from os import getpid, kill
import signal
from os.path import dirname, abspath, isdir
from daemon import runner
from time import sleep, time
from logging.handlers import TimedRotatingFileHandler, MemoryHandler
import warnings
warnings.filterwarnings('error', 'a', RuntimeWarn... | [
"gary.wilson@of-networks.co.uk"
] | gary.wilson@of-networks.co.uk |
e8d681f0fd6132ac3ec5f78f2a19a7626eb73e81 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/file/formats/ios/apple8900/Apple8900Constants.pyi | f4484ba6bda351773a13dd061d24c65d6032375b | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 958 | pyi | import java.lang
class Apple8900Constants(object):
AES_IV_ZERO_BYTES: List[int] = array('b', [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
AES_KEY_BYTES: List[int] = array('b', [24, -124, 88, -90, -47, 80, 52, -33, -29, -122, -14, 59, 97, -44, 55, 116])
AES_KEY_STRING: unicode = u'188458A6D15034DFE386... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
e9fa3b97e68a4174d68b1eb712a4ecfc00517d6a | 2337351b228818e41be3002bd38f68f77c2aa074 | /vc/migrations/0026_vcdomainprovisioning_resource_group.py | f3e9edecabe1e4aaa2a15c894edf84d4149fce74 | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 706 | py | # ----------------------------------------------------------------------
# Add Resource Group to vc domainprovisioning
# ----------------------------------------------------------------------
# Copyright (C) 2007-2021 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------... | [
"aversanta@gmail.com"
] | aversanta@gmail.com |
5cf693023453b8bd4cd23869f8c84666ede5542d | 481daea741175413a840e922014505b0089dfd04 | /processers/processer.py | c60964c6cf600594387bf9f42e0ac39550dd57d8 | [] | no_license | the16thpythonist/JTShell | b512813104e3ba5d19964bcb1dbb1e124adc6b5e | 7b194b5132512aa9ed79a0c7d9757f24dbde9a5f | refs/heads/master | 2021-05-30T02:19:48.182831 | 2015-11-07T00:43:35 | 2015-11-07T00:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | __author__ = 'Jonas'
from JTShell.util.message import Message
import time
class Processer:
"""
the base class for all objects, that are involved with the command execution process of the Shell, implementing the
connection with the logger and writer objects of the program, if needed/enabled, that can both ... | [
"jonseb1998@gmail.com"
] | jonseb1998@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.