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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72e86ba0148bbe1b9d9f1b565316ff71b35a5b3d | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/W_w_Mgt_to_Cx_Cy_focus_Z_ok/Sob_k15_s001_EroM/pyr_Tcrop255_pad60_jit15/pyr_2s/L3/step10_a.py | f0aef80d3b5947a605591d698c2bed71ebb8c14f | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,323 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
278703b3e7899ad71128c9b1bcfa67f9a6245b9f | 306de77289d118f819c9ded4807a91268b7cc58b | /models/resnet_prm/resnet_PRM15.py | 2e6ac31e1d098a27709dbe75724d728d3a46a6bb | [] | no_license | ma-xu/NANet | 67252d8e3108f16049b9ebdb5a8c4a473b117874 | 5c894ebf05fed54a437e1b9b2d5dfc7a947f0775 | refs/heads/master | 2022-03-28T01:59:11.409632 | 2020-01-23T04:41:28 | 2020-01-23T04:41:28 | 225,984,431 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,777 | py | import torch.nn as nn
import torch.utils.model_zoo as model_zoo
from torch.nn.parameter import Parameter
import torch
import torch.nn.functional as F
from torch.nn import init
from torch.autograd import Variable
from collections import OrderedDict
import math
import time
"""
Actually the SGE + maxvalue
"""
__all_... | [
"xuma@my.unt.edu"
] | xuma@my.unt.edu |
be04c205e071f2ef645ebbaa5a3f066e0a5d660e | 0d834835098f86c153367956cb2513377c91074c | /basic/html_table/table.py | d9fa2816db8db4c537b7c2ddd956d17b2a82d654 | [] | no_license | klandon94/flask_fundamentals | a63c2c6b5567627203299a685db5f73a8d749051 | ee8cd8976b504a03c15696019c2091951a3a5a73 | refs/heads/master | 2020-03-21T06:14:53.013649 | 2018-06-21T18:20:36 | 2018-06-21T18:20:36 | 138,207,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from flask import Flask,render_template as render
app = Flask(__name__)
@app.route('/')
def table():
users = (
{'first_name': 'LeBron','last_name':'James'},
{'first_name': 'Kobe','last_name':'Bryant'},
{'first_name': 'Michael','last_name':'Jordan'},
{'first_name': 'Tim','last_name... | [
"kenny.landon88@gmail.com"
] | kenny.landon88@gmail.com |
dcec49309b9d2263807ea94a99e6251ff33b8e55 | 7b55cfc4ffa7678e4c7b8f2312831ebbd549e54f | /proj1/tests/other-tests/oskis-angels_tests/regexperts_tests/correct/expr_mod.py | 44a804c0817239e5cab49272e2545d5101bace4a | [] | no_license | czchen1/cs164-projects | 0d330efef85421e611a436b165428ba0ddfb3512 | a04cafbcaafd32e518227dacf89a6d7837bf9f57 | refs/heads/master | 2020-03-27T04:03:31.727524 | 2018-08-23T21:43:46 | 2018-08-23T21:43:46 | 145,909,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | print 2 % 2
print 1 % 2 % 4
print ((1 % (2)))
| [
"czchen@mit.edu"
] | czchen@mit.edu |
95bec86aa8cf1ceab3c433e3060644fb568c10d4 | e25b2bed99e7bec09a5ecdc2baee33c90b1d5fcf | /day1/chapter3/string-method.py | 27c2ccb534327e0c08b62b890b74bd2ccdd2853b | [] | no_license | alabiansolution/python-wknd1902 | 6d579be040a130c54850396490961493e7eb3663 | cb492085a522681a447bcb3668a30c851dec1247 | refs/heads/master | 2020-06-08T11:46:33.514204 | 2019-06-22T12:02:11 | 2019-06-22T12:02:11 | 193,223,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py |
name = ' Benedict '
remove_space = name.strip()
print(len(remove_space))
| [
"nonwaz78@gmail.com"
] | nonwaz78@gmail.com |
616ac500554e2c805a0e873d7f50ac2c6131a9dd | 1ea0e2b4f064ba0de45a73c527ee89a36771e8fc | /src/sentry/web/frontend/project_plugins.py | 30451ad0baa6661f163b889f712f71df204c9932 | [
"BSD-2-Clause"
] | permissive | atlassian/sentry | 6775e59c317f20f96982e91c2b3c88c02ecbb56b | b937615079d7b24dc225a83b99b1b65da932fc66 | refs/heads/master | 2023-08-27T15:45:47.699173 | 2017-09-18T22:14:55 | 2017-09-18T22:14:55 | 103,999,066 | 1 | 5 | BSD-3-Clause | 2023-04-01T07:49:37 | 2017-09-18T22:38:18 | Python | UTF-8 | Python | false | false | 995 | py | from __future__ import absolute_import
from django.contrib import messages
from django.utils.translation import ugettext_lazy as _
from sentry.plugins import plugins
from sentry.web.frontend.base import ProjectView
class ProjectPluginsView(ProjectView):
required_scope = 'project:write'
def handle(self, req... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
b27aa8ef9e31b0a9620b8601e53177fa99afc77b | 0354d8e29fcbb65a06525bcac1f55fd08288b6e0 | /clients/python-flask/generated/swagger_server/models/extension_class_impllinks.py | 43b79fcdb2ef700ae5858714220dd95fce07aa70 | [
"MIT"
] | permissive | zhiwei55/swaggy-jenkins | cdc52956a40e947067415cec8d2da1425b3d7670 | 678b5477f5f9f00022b176c34b840055fb1b0a77 | refs/heads/master | 2020-03-06T20:38:53.012467 | 2018-02-19T01:53:33 | 2018-02-19T01:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | # coding: utf-8
from __future__ import absolute_import
from swagger_server.models.link import Link
from .base_model_ import Model
from datetime import date, datetime
from typing import List, Dict
from ..util import deserialize_model
class ExtensionClassImpllinks(Model):
"""
NOTE: This class is auto generated... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
d445f3dfb6f9d07858e859c69bbd06685a4c2ee4 | 13faa0d553ed6c6a57791db3dfdb2a0580a1695b | /CodeChef/Practice/Beginner/LONGSEQ.py | 54638200608b86934ba675bf7674e2b4f9055ec4 | [] | no_license | kautsiitd/Competitive_Programming | ba968a4764ba7b5f2531d03fb9c53dc1621c2d44 | a0d8ae16646d73c346d9ce334e5b5b09bff67f67 | refs/heads/master | 2021-01-17T13:29:52.407558 | 2017-10-01T09:58:23 | 2017-10-01T09:58:23 | 59,496,650 | 0 | 0 | null | 2017-05-20T17:27:18 | 2016-05-23T15:56:55 | HTML | UTF-8 | Python | false | false | 141 | py | for _ in range(input()):
a = raw_input()
if a.count('0') == 1 or a.count('1') == 1:
print "Yes"
else:
print "No"
| [
"kautsiitd@gmail.com"
] | kautsiitd@gmail.com |
4c36bb6674d30229ecd48b9147a7917e4d314c33 | b7cb542ba2a0b00472aedda3a47a42f34ed01feb | /blogApp/admin.py | d6cd851510d7f6c427df2426cb543fe1f321f30b | [] | no_license | sajibuzzaman/Django_Rest_Framework | 1c2f5bc00ef5d4b380cc94d60c66a77bdf69a955 | c83cce921ad41f82c7ac960000ae1c0e2e2c5604 | refs/heads/master | 2023-04-04T14:30:28.609151 | 2021-04-20T11:58:10 | 2021-04-20T11:58:10 | 359,554,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from django.contrib import admin
from .models import Blog, CommentBlog
class CommentBlogInline(admin.TabularInline):
model = CommentBlog
extra = 0
readonly_fields = ['blog','user', 'comment', 'ip']
class BlogAdmin(admin.ModelAdmin):
list_display = ['title', 'date_posted', 'image_tag']
list_filter ... | [
"muhammadsajibuzzaman1998@gmail.com"
] | muhammadsajibuzzaman1998@gmail.com |
a6d97883d813063e9e64c30383d463c3795377ed | d66993b0383ee7a97c9d5fe761269a3cb8e67e22 | /Ejercicios/EjercicioAños.py | 437838d33b904ab1f6d4be9893aad03aede04c48 | [] | no_license | rramosaveros/CursoPythonCisco | 09828e3d8190490c0dc30861ae241f5222e108d6 | 1508e67873adfcf31b8c78d3f5cb2a0572dfeb1c | refs/heads/master | 2023-06-27T12:07:52.652780 | 2021-08-01T14:19:19 | 2021-08-01T14:19:19 | 391,647,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | año = int(input("Introduzca un año:"))
#
if año <= 1580:
print("No dentro del período del calendario gregoriano")
elif (año%4) != 0:
print("Año común")
elif (año % 100) != 0:
print("Año bisiesto")
elif (año % 400) != 0:
print("Año común")
else:
print("Año bisiesto")
#
| [
"ramoslenin32@gmail.com"
] | ramoslenin32@gmail.com |
fe6407849dc00e3827ad92b25a8bd7a7c6f4a31c | 314a687b50622e0377f9829b824b046a18f2421d | /passbook/core/admin.py | 6e91b20800ee5bc367aef45818f109c11b0acf21 | [
"MIT"
] | permissive | fossabot/passbook | a4d13b31bb831adb6392d434cfde3080b7fc797e | cba17f6659404445ac3025f11657d89368cc8b4f | refs/heads/master | 2021-02-14T23:35:52.249963 | 2020-03-04T08:22:04 | 2020-03-04T08:22:04 | 244,845,185 | 0 | 0 | MIT | 2020-03-04T08:21:59 | 2020-03-04T08:21:59 | null | UTF-8 | Python | false | false | 120 | py | """passbook core model admin"""
from passbook.lib.admin import admin_autoregister
admin_autoregister("passbook_core")
| [
"jens.langhammer@beryju.org"
] | jens.langhammer@beryju.org |
9ae571f70426fb357555e597a1796b30b120411c | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/operations/_operations.py | 523f0e7792ab8919d6a9be76ddbebb382332f883 | [
"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 | 6,073 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
f44e8f2bbb168252f1c63bf3eaa369e9b9bca476 | ded1edb8ed387f9d1989334b8dd3ee397b36bf8b | /djangorest/api/views.py | 317904089ccab3c785a6d5359f3be0fc1b499057 | [] | no_license | elevenmunki/django_api | c790dfe6c8ab1d8da9454a9fc17d3bb339a7d39c | 3a16214f18d015d4ce21f42a473f9d69274aab80 | refs/heads/master | 2021-07-12T02:51:30.513141 | 2017-09-30T01:16:21 | 2017-09-30T01:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from rest_framework import generics
from .serializers import BucketlistSerializer
from .models import Bucketlist
#ListCreateAPIView is a generic view which provides GET (list all) and POST method handler
class CreateVi... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
d07a9c45cb065bb11701d18947cbb54a96100d40 | e3742e43ea3ca59016406d3c4308c21fad07d3d5 | /Basics/Shanbey/P30_章节回顾_2018世界杯各队进球数.py | 3fdd8891e6dc9a305211d850685b3a222863e75c | [] | no_license | yangyang0126/PythonLearning | e499c59ce04e884c3614c6a8c6a5b219234dce6c | 4a8ec4386ecb7609abb56c533131e4c283b628ec | refs/heads/master | 2020-08-10T18:15:18.720145 | 2020-05-24T02:29:19 | 2020-05-24T02:29:19 | 214,393,778 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | '''
下方变量 goal_record 是2018年俄罗斯世界杯64场球赛的比分(不包含淘汰赛点球大战)
创建字典 wc_2018_goal,记录32支球队的各自进球数。
'''
goal_record = """Russia 5–0 Saudi Arabia;
Egypt 0–1 Uruguay;
Russia 3–1 Egypt;
Uruguay 1–0 Saudi Arabia;
Uruguay 3–0 Russia;
Saudi Arabia 2–1 Egypt;
Morocco 0–1 Iran;
Portugal 3–3 Spain;
Portugal 1–0 Morocco;
Iran 0–1 Spain;
Ir... | [
"zhaojingyi0126@163.com"
] | zhaojingyi0126@163.com |
50b8d4da6ad76e44d8f29598f31da8e0096c0e67 | a397ac42dab5e68342a412a0b00cbcf401663d13 | /multithreadingTest.py | 5a334e82563ae69481bcbf69394dba9799268153 | [] | no_license | declanoller/rpi_camera1 | b2fdc2798e3c44980a0d09ac1414a65e06ddc821 | 5dff10b9745b660d21a23dd4a9d42be34d1340b1 | refs/heads/master | 2020-03-21T09:58:25.576696 | 2018-08-07T22:13:14 | 2018-08-07T22:13:14 | 138,427,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | from multiprocessing import Pool, Value
import datetime
from time import sleep
import os
def processFile(fName):
dtString = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
print("Processed file "+fName+" at time "+dtString+"\n")
def fileMonitor(dir):
print("entering filemonitor")
processedFiles ... | [
"declanoller@gmail.com"
] | declanoller@gmail.com |
bcf1792361959fe827e7c081b4078be6ae08174b | 6580ba5d135c4f33f1a0996953ba2a65f7458a14 | /applications/ji178/models/fdutilities0color.py | 91fd463eb0f338b25751b6a4ed0885b19f611149 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | ali96343/facew2p | 02b038d3853691264a49de3409de21c8a33544b8 | a3881b149045e9caac344402c8fc4e62edadb42f | refs/heads/master | 2021-06-10T17:52:22.200508 | 2021-05-10T23:11:30 | 2021-05-10T23:11:30 | 185,795,614 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,439 | py | #
# table for controller: utilities_color
#
from gluon.contrib.populate import populate
db.define_table('dutilities0color',
Field('f0', label='key', writable = True , length= 1000),
Field('f1', 'text', label='data string', length= 1000),
Field('f2', 'text', label='save data string', length= 1000, de... | [
"ab96343@gmail.com"
] | ab96343@gmail.com |
7805ee413e99196317a0afddff32012074eee45c | 37d6493969b783755a64b182c588b05f32ff8964 | /cadash/utils.py | f9d2b6c7b1eed9dafe16bca523c8ab54ac9cdbec | [
"Apache-2.0"
] | permissive | harvard-dce/cadash | 97943f726fe73d88ee8677eeb670f4f82ab5c8c5 | 10300ca4ce097d8a633612554d257b939633eeae | refs/heads/master | 2020-04-04T21:42:34.816945 | 2017-07-26T18:31:23 | 2017-07-26T18:31:23 | 59,121,777 | 0 | 1 | null | 2016-09-16T15:58:13 | 2016-05-18T14:13:25 | JavaScript | UTF-8 | Python | false | false | 4,831 | py | # -*- coding: utf-8 -*-
"""Helper utilities and decorators."""
import os
import logging
import logging.config
import platform
import re
import sys
import yaml
from flask import current_app
from flask import flash
from flask import redirect
from flask import request
from flask import url_for
from flask_login import cur... | [
"nmaekawa@g.harvard.edu"
] | nmaekawa@g.harvard.edu |
4bb2be4d6fdbddbaf576d3a9d74969ce33b1a2ce | f44aa93f92f2ddfa0e3ed6595c0b77c3ab14dde1 | /v7_Modular_events/runner.py | af0a0cf748808975286cabf01c5d5f0c0a51b50e | [] | no_license | michaeljpitcher/Lung-Network-Model | 5b7efd2f4522852e9be415aa3485419226f9fa8f | 8f23dc1c2002bdabc0f8ec5bd5078d64628adcb5 | refs/heads/master | 2020-06-23T05:17:07.357279 | 2017-06-29T15:28:24 | 2017-06-29T15:28:24 | 74,665,064 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | __author__ = "Michael J. Pitcher"
from Models.TB.TBModel3 import TBModel3
from Models.TB.TBClasses import *
from Models.TB.TBEventProbabilityKeys import *
params = {}
params[P_REPLICATION_BACTERIA_FAST] = 0.1
params[P_REPLICATION_BACTERIA_SLOW] = 0.01
params[P_TRANSLOCATE_BRONCHUS_BACTERIA_FAST] = 0.0
params[P_TRANSL... | [
"mjp22@st-andrews.ac.uk"
] | mjp22@st-andrews.ac.uk |
b7a9408ba9cddb579b33e13dd708ac9ca84475dd | 3fdf0b58106c7e9bf3f16ee8dd7ec2192757d4d7 | /qa/rpc-tests/maxuploadtarget.py | d9ed5df4700da7bde8219c04d0042958a60ea4cd | [
"MIT"
] | permissive | USDEcoin/usdecoin | 935736c40134fdd22b9248a01a7e323d86615f9e | 50e58ab20db30b5bb6e340512c4789e4bd066ba0 | refs/heads/master | 2021-08-16T07:17:39.074856 | 2020-08-13T08:17:43 | 2020-08-13T08:17:43 | 212,833,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,743 | py | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from test_framework.mininode import *
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
import time
'''... | [
"usdecoincrypto@gmail.com"
] | usdecoincrypto@gmail.com |
a10f9c0aa132f6863b3adb1a46e00038ae728335 | 029948b3fd0e41d80d66c84d808abff4fcb24ac8 | /dnac_api_client/models/claim_device_request_config_list.py | 15bfc7d92efe92a13a449347e88c0422c99f1119 | [] | no_license | yijxiang/dnac-api-client | 842d1da9e156820942656b8f34342d52c96d3c37 | 256d016e2df8fc1b3fdad6e28f441c6005b43b07 | refs/heads/master | 2021-09-25T21:10:09.502447 | 2018-10-25T14:39:57 | 2018-10-25T14:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,060 | py | # coding: utf-8
"""
Cisco DNA Center Platform v. 1.2.x (EFT)
REST API (EFT) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class ClaimDeviceRequestConfigList(object):
"""NOTE: This class is auto gene... | [
"cunningr@cisco.com"
] | cunningr@cisco.com |
b906a8ee56c5bdb20867a9f5ededa1379458b25e | 1e3461947b86538c384d2faaab9a505912a151fb | /color_transformations.py | 6fa7f8fdaaf8168fd16401c26c13470ae5408884 | [
"MIT"
] | permissive | maxalbert/colormap-selector | c20a53ec36f90637aef11620434cc7811e49cc97 | 43ec6e70058e4b75496def3e49471c76c8684ef3 | refs/heads/master | 2021-01-01T05:50:17.044061 | 2015-01-09T00:08:47 | 2015-01-09T00:08:47 | 28,750,875 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | import numpy as np
import matplotlib.colors as mcolors
whitepoint_D65 = np.array([0.9642, 1, 0.8249])
A_xyz2rgb = np.array(
[[3.240479, -1.537150, -0.498535],
[-0.969256, 1.875992, 0.041556 ],
[0.055648, -0.204043, 1.057311 ]])
A_rgb2xyz = np.linalg.inv(A_xyz2rgb)
class RGBRangeError(Exception):
p... | [
"maximilian.albert@gmail.com"
] | maximilian.albert@gmail.com |
65ff0d2791ba3bee69abbe3799d327244d350005 | 0b2cc875b84e1b43daa7e0ccabe864ec69278ab0 | /flarestack/cosmo/rates/frb_rates.py | 2d28e7f08dbd287c963a84bddf5dfcccf0f9042b | [
"MIT"
] | permissive | icecube/flarestack | 4ce9f165d8a0dd1b44e8ec2185f216c92fc27d11 | 4d02244e3b92744a08b3c09009cc9aa3ea5e7931 | refs/heads/master | 2023-08-16T16:05:18.492306 | 2023-08-11T23:38:55 | 2023-08-11T23:38:55 | 127,512,114 | 9 | 4 | MIT | 2023-09-13T00:17:44 | 2018-03-31T08:03:47 | Jupyter Notebook | UTF-8 | Python | false | false | 2,479 | py | import logging
from astropy import units as u
from flarestack.cosmo.rates.sfr_rates import get_sfr_evolution
local_frb_rates = {
"bochenek_20": (
7.23 * 10**7.0 / (u.Gpc**3 * u.yr),
(7.23 - 6.13) * 10**7.0 / (u.Gpc**3 * u.yr),
(7.23 + 8.78) * 10**7.0 / (u.Gpc**3 * u.yr),
"https://ar... | [
"robert.stein@desy.de"
] | robert.stein@desy.de |
4d925c84db3c96226c9de413a722a8e09a7e2080 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/nlp/models/language_modeling/bert_lm_model.py | 6b03d86982b016d0606784c76c4d0cdf9f0a2c91 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 11,620 | py | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
40924b52d9e6ae8604eac8a4ca7597da7cb408e8 | d659f9b546e1622aec6ad10495363da1175f76b9 | /venv/bin/pip3.6 | 141ea44f3073cf7c8da0a1415a61048f0795beba | [] | no_license | modcomlearning/advanced_web2 | 7bb96c823cb606cb567c358a7b8dbb0b4918c2c7 | b701a25092a8ae40187c3af00a837e654fefc52e | refs/heads/master | 2023-01-07T21:09:06.930774 | 2020-11-14T12:08:53 | 2020-11-14T12:08:53 | 310,833,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | 6 | #!/home/jose/PycharmProjects/Advanced_Web_Sat/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__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... | [
"modcomlearning@gmail.com"
] | modcomlearning@gmail.com |
072fcea6ad0ec0fa0e0effea0d1e577a5e7bed48 | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/GLES1/EXT/OES/EGL_image.py | c7ba140322b6d986cfd1d3a484abbc478fc84042 | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from OpenGLCffi.GLES1 import params
@params(api='gles1', prms=['target', 'image'])
def glEGLImageTargetTexture2DOES(target, image):
pass
@params(api='gles1', prms=['target', 'image'])
def glEGLImageTargetRenderbufferStorageOES(target, image):
pass
| [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
21a3e92d50d50f8afb88ed7e4b8b1700ab8212da | 0178e6a705ee8aa6bb0b0a8512bf5184a9d00ded | /Sungjin/String/5525.py | 63ad63a387c4109d8b3d5474c7e89a5353e0b5c5 | [] | no_license | comojin1994/Algorithm_Study | 0379d513abf30e3f55d6a013e90329bfdfa5adcc | 965c97a9b858565c68ac029f852a1c2218369e0b | refs/heads/master | 2021-08-08T14:55:15.220412 | 2021-07-06T11:54:33 | 2021-07-06T11:54:33 | 206,978,984 | 0 | 1 | null | 2020-05-14T14:06:46 | 2019-09-07T14:23:31 | Python | UTF-8 | Python | false | false | 746 | py | import sys
input = sys.stdin.readline
if __name__ == '__main__':
N = int(input())
M = int(input())
S = input().strip()
P = 'I' + 'OI'*N
start = False
check = 0
cnt, result = 0, 0
for i, s in enumerate(S):
if start:
if s == 'O' and check == 1: check += 1
e... | [
"comojin1994@gmail.com"
] | comojin1994@gmail.com |
514e0990111b61362819faa91608463b1ba507e2 | e1aac65877d20e8f93e63c8edf6dedd5137b562b | /testPydev/Integer_Roman.py | c3137a45187226f1c865ea1527b30aa13a179744 | [] | no_license | weezer/fun_scripts | 67ccb6cc107c0bdd1b347d9cb1c0bdf934e1a331 | 38b8bd25d6db79044712779f95b26bf09ca0072a | refs/heads/master | 2020-12-25T19:26:21.685571 | 2018-09-20T07:56:25 | 2018-09-20T07:56:25 | 18,510,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | class Solution(object):
def intToRoman(self, num):
"""
:type num: int
:rtype: str
"""
roman_dict = {1: 'I', 4: 'IV', 5: 'V', 9: 'IX', 10: 'X', 40: 'XL',
50: 'L', 90: 'LC', 100: 'C', 400: 'CD', 500: 'D', 900: 'CM', 1000: 'M'}
r_lst = []
digit = 1
... | [
"weezer.su@gmail.com"
] | weezer.su@gmail.com |
0d51c3a3f4fe0075d723424ee07d4b36454dd438 | 6bfe6e6c24eeb281a266a2d3fdaac645e79a4a85 | /admin/web/login_controller.py | 9d8a11e94f35b293ab2b7fdd2183bdc7d0fc23cc | [] | no_license | itsumura-h/masonite_admin_install | 606b5fe5f7043919fd955a48485e14d063116837 | a8448eacdee0b4088b84ac2cac6d0fdec46dbe87 | refs/heads/master | 2020-05-31T01:17:21.094154 | 2019-06-30T07:11:13 | 2019-06-30T07:11:13 | 190,047,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | import os, pickle, secrets
from datetime import datetime
from bcrypt import checkpw
from masonite.auth import Sign
from masonite.controllers import Controller
from masonite.request import Request
from config.auth import AUTH
from config.admin import LOGIN_CONF
from admin.web.LoginToken import LoginToken
# try:
# ... | [
"dumblepy@gmail.com"
] | dumblepy@gmail.com |
25b3e881e120ecfab45a93c2d78f861cb64a3cc0 | be1d3bbe87e42b3cc41238697129fc701380c43c | /web_speller/backend/web_speller/blinks/migrations/0001_initial.py | c6eae07327640598d0f11b266afc01ff1b717958 | [] | no_license | Borda/BCI-speller | 051a6bd2a03f9be3e795f628decea39166946cbb | bf80f6c99f4258448199040d81d21f10ba1fd09d | refs/heads/master | 2020-03-21T09:31:28.683073 | 2018-06-25T19:39:00 | 2018-06-25T19:39:00 | 138,404,105 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # Generated by Django 2.0.5 on 2018-06-23 20:20
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BCIDevice',
fields=[
('id', models.AutoFiel... | [
"skarzynski_lukasz@protonmail.com"
] | skarzynski_lukasz@protonmail.com |
b594bc5ed8b10f098540111dac731858955d269e | 1d5b2b72d322dd154a8efb547290ad5abb1fd098 | /work_dir/py_rpc/test1/client.py | cd739de1ff7000803d3cdcf24557c405ba6060ac | [] | no_license | hxzwd/drafts | 6b593b50cae309c02495a8aff28719f7b636962d | 478f4a4c399ab0c7c3f8f6e22d13131488716e4d | refs/heads/master | 2020-04-28T01:42:58.998610 | 2019-05-05T17:49:48 | 2019-05-05T17:49:48 | 174,868,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py |
import rpyc
host_addr = "localhost"
port = 18812
c = rpyc.connect(host_addr, port)
c.root.func_test("TEST MESSAGE! HELLO")
| [
"="
] | = |
d0340512030ca2327070536ffecf2d04a3c898bf | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/qos/class.py | b2ba681e647deb4419d81561ae32ce1cc0831a60 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,833 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
929ef551e4a4ed39cde8a606b1b2829d341e61c9 | 942f0b081d2271978ffe20fbbfa8d687b57e5c02 | /daily_coding_challenges/challenges/mapping_of_digits.py | 53d0d8d458ffa10f31cc7f656983e1ff6e8da511 | [] | no_license | simtb/coding-puzzles | 99762322606bb505d82924d4d5843db1c04aafbd | 9e1d53e35b2117240eb357d7930cdb8cfd891c8e | refs/heads/master | 2021-04-12T15:46:40.181048 | 2021-02-28T23:47:36 | 2021-02-28T23:47:36 | 249,089,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | """
This problem was asked by Yelp.
Given a mapping of digits to letters (as in a phone number), and a digit string, return all possible letters the number could represent. You can assume each valid number in the mapping is a single digit.
For example if {“2”: [“a”, “b”, “c”], 3: [“d”, “e”, “f”], …} then “23” should ... | [
"simeon@Sims-MacBook-Pro.local"
] | simeon@Sims-MacBook-Pro.local |
27eda92427ea2fac869b971a6c59e28db69c8522 | 42fdf741bf64ea2e63d1546bb08356286f994505 | /test_00_vd2ota/rasp30_gen7.py | a401fa45a8e426a8acd4cd76f7a914f9ea38d766 | [] | no_license | skim819/RASP_Workspace_sihwan | 7e3cd403dc3965b8306ec203007490e3ea911e3b | 0799e146586595577c8efa05c647b8cb92b962f4 | refs/heads/master | 2020-12-24T05:22:25.775823 | 2017-04-01T22:15:18 | 2017-04-01T22:15:18 | 41,511,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | self.dev_types =['fgota']*2 + ['ota_buf']*1 + ['ota']*1 + ['cap']*4+ ['nfet']*2 + ['pfet']*2 + ['tgate']*4 + ['mux4_1']*1 +['nmirror']*2+['ladder_blk']*1+ ['c4_blk']*1+['Nagating_blk']*1+['speech']*1+['gnd_out']*1+['vdd_out']*1+['in2in_x1']*1+['in2in_x6']*1+['volt_div']*1+['volt_div_fgota']*1+['integrator']*1+['integ... | [
"ubuntu@ubuntu-VirtualBox.(none)"
] | ubuntu@ubuntu-VirtualBox.(none) |
37248cd18c25736ef9d16caf5efea05432caf0ab | 22a561e558b90761892b980de0c19c5d852717f3 | /venv/bin/pip | 946e2b8ee48006564a6722bc82572a797b3efa33 | [] | no_license | BillSam/M_shop | 401228536b57ff98d44f26b24fbd7b46122e4be5 | ecb0fb686957193f749413ef4f3b87c4ea046e7d | refs/heads/main | 2023-03-23T12:05:55.313453 | 2021-02-25T11:39:35 | 2021-02-25T11:39:35 | 342,137,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/work/Documents/pythhon/M_shop/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"email@email.com"
] | email@email.com | |
63f8277e6c153482a0737d7d7fc2be4065b35437 | 4926667354fa1f5c8a93336c4d6e2b9f6630836e | /1318.py | 39050eeca9d4be13c770e32b2ee0404761fb2afa | [] | no_license | nascarsayan/lintcode | 343b3f6e7071479f0299dd1dd1d8068cbd7a7d9e | 4da24b9f5f182964a1bdf4beaa8afc17eb7a70f4 | refs/heads/master | 2021-07-13T12:31:45.883179 | 2020-07-20T02:27:53 | 2020-07-20T02:27:53 | 185,825,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | class Solution:
"""
@param nums: the given array
@param k: the given k
@param t: the given t
@return: whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and nums[j]
is at most t and the absolute difference between i and j is at most k.
"""
def ... | [
"nascarsayan@iitkgp.ac.in"
] | nascarsayan@iitkgp.ac.in |
ded03050bd48a80ff92b49a40d0a4295a2803b38 | bb2add9ca1fdd3e33b2c28d494d497b62af121ae | /setup.py | e2be87663ddf37084b2e742b0b56e5633964c225 | [
"MIT"
] | permissive | wegamekinglc/simpleutils | 4a48b0eae783ad74e3c16454ea04fff88a6b7796 | 1e3c89f72347b94538267c6f66f87c2cabdb18dd | refs/heads/master | 2021-07-26T01:09:27.582528 | 2020-03-17T02:19:28 | 2020-03-17T02:19:28 | 90,547,150 | 0 | 1 | null | 2017-07-22T19:21:26 | 2017-05-07T16:44:07 | Python | UTF-8 | Python | false | false | 357 | py | import io
from setuptools import setup
from setuptools import find_packages
setup(
name='simpleutils',
version='0.2.5',
packages=find_packages(),
url='',
license='MIT',
author='wegamekinglc',
author_email='wegamekinglc@hotmail.com',
install_requires=io.open("requirements.txt", encoding=... | [
"scrappedprince.li@gmail.com"
] | scrappedprince.li@gmail.com |
4c981b7947331d05e0ffc54bf6c0a5898cc085f0 | 7c2e677d931a8eb7d7cffc6d54713411abbe83e4 | /AppBuilder9000/AppBuilder9000/ZPYLP0914/HikingApp/migrations/0003_auto_20200925_1746.py | b15a2782dcbe732ed55cad1047fa3495f381341d | [] | no_license | r3bunker/Python_Live_Project | 19e367b3cf74c2279c287fcd3a8a44a27f24041a | d3e06150d7daea6326cc1a4155309d99e4ff6244 | refs/heads/main | 2023-06-12T23:01:50.440371 | 2021-06-16T20:21:03 | 2021-06-16T20:21:03 | 344,883,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 2.2.5 on 2020-09-26 00:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('HikingApp', '0002_auto_20200923_2326'),
]
operations = [
migrations.AlterField(
model_name='hik... | [
"r3bunker@gmail.com"
] | r3bunker@gmail.com |
09fce38313a60fd7a92b0eb090a3706cabaa6808 | 62b7c6baaef93a603ecc4eb0c6a140e7b133b577 | /data/modules/exploit/macos/stager/membrane_reverse_tcp/core/handler.py | e25ac93798adf8402e51e6d675d78b3a9bdf9870 | [
"MIT"
] | permissive | sashka3076/ZetaSploit | eca5badfcb796c95aa2c8036b3814d5687a2f7b8 | f5de0c10fb811f4b6f358412f6d848a7da8080fd | refs/heads/main | 2023-03-03T04:43:06.137871 | 2021-02-05T18:37:18 | 2021-02-05T18:37:18 | 336,480,949 | 1 | 0 | MIT | 2021-02-06T07:27:20 | 2021-02-06T07:27:20 | null | UTF-8 | Python | false | false | 2,767 | py | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | [
"enty8080@gmail.com"
] | enty8080@gmail.com |
4a36aec0bb29c9ee7b1376c66f7e37711c95c169 | a71fbf421c43fcb34fe7c8000eb807677821683c | /keras/keras06_RMSE.py | 7d109b56293501423f78ec268a42c551f20160cf | [] | no_license | leekyunghun/bit_seoul | ccd96dca3774f259e04b8388e134d6183b974268 | b76a3d5f83b77f5345d61cf3baa68aaefc25cd2a | refs/heads/master | 2023-02-06T08:12:17.768076 | 2020-12-22T13:35:19 | 2020-12-22T13:35:19 | 311,286,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | import numpy as np
#1. 데이터 # 선형회귀 예제
x_train = np.array([1,2,3,4,5,6,7,8,9,10])
y_train = np.array([1,2,3,4,5,6,7,8,9,10])
x_test = np.array([11,12,13,14,15])
y_test = np.array([11,12,13,14,15])
x_pred = np.array([16,17,18])
from tensorflow.keras.models import Sequential
f... | [
"oh_pizza@naver.com"
] | oh_pizza@naver.com |
3f8c227967ee0fd61a7c3e634b1b36f2412658e8 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc013/A/4657608.py | a1c4dd03b11eae7bc30d1cf841829c266962862f | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | N, M, L = map(int, input().split())
P, Q, R = map(int, input().split())
Res = max((N//P)*(M//Q)*(L//R), (N//Q)*(M//R)*(L//P), (N//R)*(M//P)*(L//Q))
Res2 = max((N//Q)*(M//P)*(L//R),(N//R)*(M//Q)*(L//P), (N//P)*(M//R)*(L//Q))
print(max(Res, Res2)) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
2d3e682e938895f55504dace0bc7ead4ed580d59 | e13bccceb4c2fefbf8000f9b34195ab434cf1656 | /devel/lib/python2.7/dist-packages/test_rosmaster/__init__.py | cadd6945809a810de2ba0099831fa3a10e41f803 | [] | no_license | QuiN-cy/vacuum-en-band | ab59b718f289ad4e8a1f29e96724250b00bd894d | 48c296199b4a6ade40e084c9980d53ba1611a344 | refs/heads/master | 2023-06-01T12:13:38.664849 | 2021-06-11T15:42:42 | 2021-06-11T15:42:42 | 376,071,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | /home/student/rosws/devel/.private/test_rosmaster/lib/python2.7/dist-packages/test_rosmaster/__init__.py | [
"quincy1234321@hotmail.nl"
] | quincy1234321@hotmail.nl |
3e50ccd03eaa5a52efbe94b7be2d3d9b816f48b6 | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /3.4.3/_downloads/83afb11a0261474b783405dd2737c8b4/marker_path.py | 7a3894c1b84d42fa562aa9292d2baacac6e2009b | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 979 | py | """
===========
Marker Path
===========
Using a `~.path.Path` as marker for a `~.axes.Axes.plot`.
"""
import matplotlib.pyplot as plt
import matplotlib.path as mpath
import numpy as np
star = mpath.Path.unit_regular_star(6)
circle = mpath.Path.unit_circle()
# concatenate the circle with an internal cutout of the sta... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
a0b9d2e0e3821e46cb8e9cf4d8cc75a86df1e90d | b9cd1b9758e58f00335900fd120e1d47c23600ce | /tool/fastq_splitter.py | 29e257c5b5b800ac68560c31136a434849f7e847 | [
"Apache-2.0"
] | permissive | Multiscale-Genomics/mg-process-fastq | 4fb7fef68526237f06312a3f137df031a448731c | 50c7115c0c1a6af48dc34f275e469d1b9eb02999 | refs/heads/master | 2020-04-12T06:46:01.100270 | 2018-11-19T16:05:03 | 2018-11-19T16:05:03 | 64,320,140 | 2 | 4 | Apache-2.0 | 2018-11-16T16:54:54 | 2016-07-27T15:29:25 | Python | UTF-8 | Python | false | false | 9,469 | py | """
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.... | [
"mark.mcdowall@gmail.com"
] | mark.mcdowall@gmail.com |
1c7c39467f29261840f0dd971bee8ef850b22534 | b5eaeded2af4417603d6592f29c81c2426397153 | /catatan/migrations/0002_auto_20201111_0927.py | cb4367a8a60122829cf0c2231a5d667dc6c68e2d | [] | no_license | giko99/sim-labsos | 9871059115be511882c96be10b6baaa9874a86ae | 1711607aa3cb087c1ec5efc2b337841eb0a1f33d | refs/heads/main | 2023-01-10T06:38:17.209459 | 2020-11-12T10:04:40 | 2020-11-12T10:04:40 | 311,870,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # Generated by Django 2.2 on 2020-11-11 02:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catatan', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='catatan',
old_name='selang',
new_n... | [
"giko@students.unnes.ac.id"
] | giko@students.unnes.ac.id |
31170f4214bbbc086ecde9b382a34789691bc3a7 | 78230ff4256b5cc7b99a5139968b41a3495f173e | /test/test_retryz.py | ac54a00fe91e212239e8e2edc9f5c00633a7bb80 | [
"Apache-2.0"
] | permissive | jealous/retryz | f1fbbf411708b2ddb8a79ea48a8c6aaff1b7f725 | b47b326e0734854aaa7b97e115cc5a5828052b00 | refs/heads/master | 2023-06-01T05:49:31.566554 | 2017-05-21T14:48:45 | 2017-05-21T15:14:26 | 48,358,949 | 1 | 2 | null | 2017-05-21T15:17:54 | 2015-12-21T08:03:37 | Python | UTF-8 | Python | false | false | 11,992 | py | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | [
"cedric.zhuang@emc.com"
] | cedric.zhuang@emc.com |
c888771fa263c8e74bf9f393fcdbb8476f204704 | 36add5afc63ec09d63b8a877c29c17391938ee5c | /.history/process_tweet_20201113145341.py | c00da9bce7d529f27130fc4cb4ab2841dd6d41c6 | [] | no_license | E-STAT/sentiment_api | e84eb04a9f21c7368ca20bdb97436ffea9f65f25 | bd9ee0d78d9eac8b6448b96c2560611a64f7b79d | refs/heads/master | 2023-01-12T13:06:14.654883 | 2020-11-20T11:30:22 | 2020-11-20T11:30:22 | 314,534,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | import re
REPLACE_BY_SPACE = re.compile('[/(){}\[\]\|,;&-_]') #punctuation to replace
def preprocess_text(text):
"""
Function to preprocess text: removes links, punctuation, spaces, non-alpha words and stop_words
Parameters
----------
text: str
a ... | [
"owojori.tolulope@gmail.com"
] | owojori.tolulope@gmail.com |
b70eb58802e5dbe8a525a194f8c647b1713059b2 | f98f4aaeca3ac841905e0cd8547bbf41944fe690 | /编程语言/Python/Python编程从入门到实践/第一部分_基础知识/第11章_测试代码/11_1/test_cities.py | 8a129dc96c26bbe02c29536932c7670c18d25732 | [] | no_license | zhb339/book-learning | 64f433b1ee1f66f3120828352df3b533be4cf9de | 5273fc8d11b2d602484dbe95e55f1e931858382f | refs/heads/master | 2020-03-29T10:48:22.771146 | 2018-11-07T13:46:53 | 2018-11-07T13:46:53 | 149,823,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import unittest
from city_functions import get_location
class CityTest(unittest.TestCase):
def test_city_country(self):
location = get_location("hangzhou", "china")
self.assertEqual(location, "hangzhou, china")
unittest.main()
| [
"551788157@qq.com"
] | 551788157@qq.com |
06c77303e95c817d8ebca414a1acfcf467f2abd7 | 2c6f77b281ee9c901a788b5617f26e73a3732762 | /chapter7/insertionSort.py | 130a3f6cf1f401844d03745fea0c27e898c779cd | [] | no_license | Boberkraft/Data-Structures-and-Algorithms-in-Python | 5db8ff814f4e954aca6701fabcc70900fe7012ff | 60a5ef54f9cffb4dcdd3fc494cfeeb662d570ae9 | refs/heads/master | 2021-01-20T06:05:29.552453 | 2018-10-28T19:06:55 | 2018-10-28T19:06:55 | 89,841,233 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from PositinalList import PositionalList
def insertion_sort(l):
if len(l) > 1:
marker = L.first()
while marker != l.last():
pivot = l.after(marker)
value = pivot.element()
if value > marker.element():
marker = pivot
else:
... | [
"andrzej.bisewski@gmail.com"
] | andrzej.bisewski@gmail.com |
d71b31be0ea0908049b6484535473a11033bc7ca | c11123ce1e86f8306dcc3bf5d017dbfa8bb1d515 | /Easy/Pascal's Triangle.py | 2d0b01d3d2e9680b1cc10cbe895915d5b9fe90ab | [] | no_license | uathena1991/Leetcode | 7e606c68a51ed09e6e6a9fad327b24066e92d0c4 | e807ae43a0a253deaa6c9ed1c592fa3a14a6cab8 | refs/heads/master | 2021-05-01T15:21:25.568729 | 2019-10-13T14:33:30 | 2019-10-13T14:33:30 | 74,910,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
"""
res = [[1]]
if numRows == 0:
return []
if numRows == 1:
return [[1]]
for n in range(1,numRows):
res.append([1]*(... | [
"xiaoli.he@rutgers.edu"
] | xiaoli.he@rutgers.edu |
5ae8b4f10739b6e6002264dbdfb90ab5fb784055 | 5d8bbb53d3ca8d532a1d977906a0fdf2aed6d46f | /ecoke/tests/test_views.py | e5c5f9a24e15e40c94f1b298ae200f8f7687d2b1 | [] | no_license | ErickMwazonga/e-Coke | da113d5cf2127b9947622008433057331c6a87f9 | d72f6f2d5f6b5bb8d1a50c2fa6d22cf9a462874d | refs/heads/master | 2021-01-20T07:16:00.763059 | 2018-03-20T12:25:43 | 2018-03-20T12:25:43 | 101,509,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,689 | py | # from django.test import Client, TestCase
# from django.urls import reverse
# from django.contrib.auth import get_user_model
# from django.utils import timezone
#
# from ecoke.models import Brand
#
#
# def create_user():
# User = get_user_model()
# user = User(username='john', email='john@gmail.com', is_active... | [
"erickmwazonga@gmail.com"
] | erickmwazonga@gmail.com |
1c2b29364823e4d003628dd1a69238ac0f8c2f65 | 6fd26735b9dfd1d3487c1edfebf9e1e595196168 | /2018/task05a.py | efc9e8f1ff974feab1583ece5da19fdb8705b276 | [
"BSD-3-Clause"
] | permissive | Kwpolska/adventofcode | bc3b1224b5272aa8f3a5c4bef1d8aebe04dcc677 | 8e55ef7b31a63a39cc2f08b3f28e15c2e4720303 | refs/heads/master | 2021-01-10T16:48:38.816447 | 2019-12-03T20:46:07 | 2019-12-03T20:46:07 | 47,507,587 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!/usr/bin/env python3
import string
with open("input/05.txt") as fh:
file_data = fh.read().strip()
def solve(data):
while True:
out = data[0]
lout = data[0].lower()
for c in data[1:]:
lc = c.lower()
if lout and lout[-1] == lc and out[-1] != c:
o... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
62ab1ea93818eed7b32b1dd371198993153edd61 | a752920841038f1f84df06779ff041d6c1100697 | /pypinyin/phrases_dict.pyi | bdcaf1677ba135f14cff63265e002d7990b17f57 | [
"MIT"
] | permissive | mozillazg/python-pinyin | 06e5eaa5326b642d50aacbe71b7117ac6024b353 | 6a306a6ec0148502ae4e689a229340555ecb6333 | refs/heads/master | 2023-08-31T14:13:44.512972 | 2023-05-14T12:18:47 | 2023-05-14T12:18:47 | 12,830,126 | 4,564 | 634 | MIT | 2023-09-09T03:46:41 | 2013-09-14T14:01:40 | Python | UTF-8 | Python | false | false | 94 | pyi | from typing import Dict, List, Text
phrases_dict = ... # type: Dict[Text, List[List[Text]]]
| [
"mozillazg101@gmail.com"
] | mozillazg101@gmail.com |
0dd8e37f694e893ca41f0e481521e1f666d2443f | 89376db3a7febcbd9b87a96cfc9e4f3fcf23758d | /test/unit/backends/msbuild/test_syntax.py | fab57708a7d0feb25463863dd417f764c17adbac | [
"BSD-3-Clause"
] | permissive | zokrezyl/bfg9000 | f80a48d39202dbf9520ae4f0fa234556b720008f | 430dfa2bfd4863d30f4690ff22f7b62dc80387ba | refs/heads/master | 2022-10-02T18:10:36.577322 | 2020-05-29T20:53:56 | 2020-05-29T20:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,727 | py | from io import BytesIO
from lxml import etree
from lxml.builder import E
from . import *
from bfg9000.backends.msbuild.syntax import *
from bfg9000.file_types import SourceFile
from bfg9000.path import Path, Root
from bfg9000.safe_str import jbos, literal, safe_string
from bfg9000.tools.common import Command
class ... | [
"itsjimporter@gmail.com"
] | itsjimporter@gmail.com |
0863e527af5d732af536a3f43a250d44e42f5214 | bc441bb06b8948288f110af63feda4e798f30225 | /ops_automation_sdk/model/topology/view_pb2.pyi | 574a1e0fb8757902dfdc5b3c1c4fdc934341eb51 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,314 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
a52188f6b0918565c35293d5307352a232165999 | daa8ed885ab8cac1d0c568bb01cb7c6426ae545a | /arithmetic.py | 64238ac84292597ced56bf9c3f77eb27f706d7f0 | [] | no_license | k8k/HBExercise02 | f20cacc9761ab9d57be54416be0bc1a63967681d | de01b9a5466c662d823c1fbf16ff110684538d54 | refs/heads/master | 2021-01-19T06:18:35.253982 | 2014-10-02T01:03:33 | 2014-10-02T01:03:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | def add(num1, num2):
return (num1 + num2)
def subtract(num1, num2):
return (num1 - num2)
def multiply(num1, num2):
return (num1 * num2)
def divide(num1, num2):
return (float(num1) / num2)
def square(num1):
return (num1 ** 2)
def cube(num1):
return (num1 ** 3)
def power(num1, num2):
ret... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
a491e7f4fe918a165410005e4a2a8a193a1fdc41 | 6bc7062b2f99d0c54fd1bb74c1c312a2e3370e24 | /crowdfunding/projects/migrations/0011_auto_20200823_1422.py | c685f8e23363ce08211f7cb85847cbf765624d1e | [] | no_license | marinkoellen/drf-proj | f2d1f539efb877df69d285bd2fe6d5e789709933 | 874549d68ab80a774988c83706bb7934e035de42 | refs/heads/master | 2022-12-25T16:53:52.187704 | 2020-10-03T03:54:06 | 2020-10-03T03:54:06 | 289,620,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.0.8 on 2020-08-23 06:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0010_auto_20200823_1421'),
]
operations = [
migrations.AlterField(
model_name='project',
name='date_crea... | [
"ellen.marinko1@gmail.com"
] | ellen.marinko1@gmail.com |
03b4d6ed65a5531775caf12fd19231937b5b77c8 | 5c0a253bf2fb83db01abc99097871c965f4cf565 | /spark/crm/PROC_A_RPT_SUN_INFO_DETAIL.py | 027630dff0344395b1cf1fef3a04b1f388a59356 | [] | no_license | airuibel/python-1 | 3b16553ede9d069ec56efbb12a89a4de6917a447 | 94f387e2d406fab2128bcfffce6146da720b2ccc | refs/heads/master | 2020-07-05T15:43:00.957221 | 2017-09-17T14:05:48 | 2017-09-17T14:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,493 | py | #coding=UTF-8
from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext
from pyspark.sql.types import *
from datetime import date, datetime, timedelta
import sys, re, os
st = datetime.now()
conf = SparkConf().setAppName('PROC_A_RPT_SUN_INFO_DETAIL').setMaster(sys.argv[2])
sc = SparkContext(conf = conf)... | [
"cysuncn@126.com"
] | cysuncn@126.com |
6f2e0b21a9d3099d28f4f0e9656df7eb350b08b5 | 4086ded777dab91e3b88e376c9e86487ea4f670f | /src/Modules/Trinity.FFI/Trinity.FFI.Python/GraphEngine/Storage/cache_manager.py | 1367785a64745e5cd5f3eed7f0436c7d8e31563d | [
"MIT"
] | permissive | qdoop/GraphEngine | a618c5c7459036e24342288e5ae13a023e4c7228 | d83381c781edc4040824c1e31057789939530eff | refs/heads/master | 2020-03-07T03:28:56.175677 | 2018-03-30T00:35:52 | 2018-03-30T00:35:52 | 127,236,851 | 0 | 0 | MIT | 2018-03-29T04:30:59 | 2018-03-29T04:30:59 | null | UTF-8 | Python | false | false | 2,139 | py | from GraphEngine import GraphMachine
def filter_null_args(arg_list):
return filter(lambda x: x is not None, arg_list)
class CacheManager:
is_accessor = False
inst = None
module_id = -1
def load_cell(self, cell_id):
return self.inst.LoadCell(cell_id)
def save_cell(self, index=None, ... | [
"twshere@outlook.com"
] | twshere@outlook.com |
1ee6d53f727f5e366a1cf7cf58dc8d0241e40160 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /cherrypy/_cpwsgi.py | 2ff83942a96d2b4dc51c03d759b9c975d2127900 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,916 | py | #Embedded file name: cherrypy\_cpwsgi.py
"""WSGI interface (see PEP 333 and 3333).
Note that WSGI environ keys and values are 'native strings'; that is,
whatever the type of "" is. For Python 2, that's a byte string; for Python 3,
it's a unicode string. But PEP 3333 says: "even if Python's str type is
actually Unicode... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
53ab5d874fe9b4a2789f77ec49d2cfe1ddc0e0fd | f0d0ea29240c53b6ce1c4b06095b528ece02fdd7 | /utils/stdvalue.py | 93e1cb555fd015df9031244044dc821b516d2157 | [] | no_license | zhifuliu/dianjing | 477529ccd6159329e1bc121aeb2ff328ee499f4a | 7b3f6d58f5bc0738651d8d72c9a24df4ade0ed36 | refs/heads/master | 2020-03-21T09:10:28.343268 | 2017-03-24T03:06:24 | 2017-03-24T03:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | # -*- coding: utf-8 -*-
"""
Author: Wang Chao <yueyoum@gmail.com>
Filename: stdvalue
Date Created: 2016-09-30 18:30
Description:
"""
MAX_INT = 2 ** 31 - 1 | [
"yueyoum@gmail.com"
] | yueyoum@gmail.com |
24a2a2e09bb18264bdfb641a5ed9b3275d98e05b | a9f56cfe2fafc7981ae4d37afd49d3049d2f98b9 | /t_sms/models.py | b4639b553775a4ebef0802490b6ce52b673e181b | [] | no_license | talhajubair100/django_allauth_language_currence_test | 78dc340e4f3392c0dd18cd2e666c02ae04eba7bc | 9530d548ea092145bc583b8a839a9bac891ef098 | refs/heads/main | 2023-02-21T20:25:42.332322 | 2021-01-24T14:10:13 | 2021-01-24T14:10:13 | 326,125,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | from django.db import models
import os
from twilio.rest import Client
# Create your models here.
class Detail(models.Model):
name = models.CharField(max_length=150)
phone = models.CharField(max_length=14)
details = models.CharField(max_length=200)
def __str__(self):
return self.name
def s... | [
"talhajubair100.bd@gmail.com"
] | talhajubair100.bd@gmail.com |
2569dc664dc758ba28cbbdbad398093631bd023b | ccfd5f8efc0cf6a9ec1867860e5a16d19beaee90 | /neobistime/events/migrations/0009_event_image.py | a338af06b377c6da5159e7c0fa0d4c60f2a9b68a | [] | no_license | magina671/neobistime | bf9bc759acf39367e3be42164c05575c1b8ed7e8 | 6dc3f8c8195997cfd4cabd5666e89d6f80a7b95c | refs/heads/master | 2022-12-26T21:37:16.171324 | 2020-10-01T18:37:31 | 2020-10-01T18:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # Generated by Django 2.2.6 on 2020-08-05 14:28
from django.db import migrations
import easy_thumbnails.fields
class Migration(migrations.Migration):
dependencies = [
('events', '0008_auto_20200805_0623'),
]
operations = [
migrations.AddField(
model_name='event',
... | [
"daniyarflash.m01@gmail.com"
] | daniyarflash.m01@gmail.com |
f11f47b153e424f308df2de51c0fff6667d742b7 | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/214bd114-5cc5-11e4-af55-00155d01fe08.py | b6a94cc57e3436b403a340fcb5162b16fe7d3c98 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | #!/usr/bin/python
################################################################################
# 214bd114-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
bdb8f58b08216a4bd2cdb0f892102352d8abb24b | f902bfafd93fe96515f5b12fa8630b365cf71ce9 | /python/ht/inline/utils.py | d7802291d80c7175ed3b05e8c473baceebd95f5b | [] | no_license | hickb/Houdini-Toolbox | 69e999a924f387313382c254de2771d66c649f64 | 5309b2608f86b12aab8e90e754269ed2d2a44653 | refs/heads/master | 2022-06-18T23:08:45.481414 | 2020-05-06T19:25:02 | 2020-05-06T19:25:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,440 | py | """Utility functions to support custom inlinecpp functions."""
# =============================================================================
# IMPORTS
# =============================================================================
# Standard Library Imports
import ctypes
# Houdini Imports
import hou
# ==========... | [
"captainhammy@gmail.com"
] | captainhammy@gmail.com |
b8cec1ad804460eb9ff1f586909b5ef9f9b0f4bc | 813eb2e364262450d43263a524074098a8934bf1 | /gtdtst.py | 9d9fa734bab2f939323fd8d55ac1555b71016cfc | [] | no_license | cniekel/gtdtool | 67f0e9ab4622f5361959ed51e4369523f6cbccc3 | 38a23806efd697814c9ebc492d87f88403ace041 | refs/heads/master | 2016-09-06T16:15:31.820358 | 2008-12-11T21:43:46 | 2008-12-11T21:43:46 | 88,992 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,419 | py | from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Frame, PageTemplate, BaseDocTemplate
from reportlab.platypus import KeepTogether
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.rl_config import defaultPageSize
from reportlab.lib.units import inch,cm
from reportlab.lib.pagesizes ... | [
"="
] | = |
a02e2b2f451539a813e61106eaedd8268f16b09b | deb3c16ef887b6c496b8c920809d79b9f73aa2fe | /hosts/9cartoonme.py | bf89b8ff48e5e12ae354fae05d306d97a0c9da5c | [] | no_license | Yaser7440/cmdline_iptvplayer | 1ea35f4fd36c708176a43d402a49342c4cf723a5 | 4e287021d86cab8d6525262b647d144c6141d6b1 | refs/heads/master | 2021-01-24T10:49:29.278730 | 2016-09-21T09:24:26 | 2016-09-21T09:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,520 | py | # -*- coding: utf-8 -*-
###################################################
# LOCAL import
###################################################
from Plugins.Extensions.IPTVPlayer.dToolsSet.iptvplayerinit import TranslateTXT as _, SetIPTVPlayerLastHostError
from Plugins.Extensions.IPTVPlayer.components.ihost import CHost... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
d96e3355e5e62406b5e4338cbe35b7eaa929bbac | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/48/usersdata/102/16157/submittedfiles/estatistica.py | 09d01593ac5da824c14d1683c4b56411be6a6d17 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # -*- coding: utf-8 -*-
from __future__ import division
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
media = soma/len(lista)
return media
#Baseado na função acima, escreva a função para calcular o desvio padrão de uma lista
a=[]
b=[]
n=input('digite a quan... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
13cb23ca4016737d8fd059ed257d80f4cb853250 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Python/Core/Lib/multiprocessing/forking.py | 877cae88752b18f508c4d539767e20190edbd9dd | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,561 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: forking.py
import os
import sys
import signal
from multiprocessing import util, process
__all__ = [
'Popen', 'assert_spawning', 'exit', 'duplicate',... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
dfd560b021f274cf620269da02b8991453c27075 | cf6a50732d708a3a3db0f297b73cb6f449a00b44 | /Practice15_Dict_Comprehensions/Prac_15_3_4lists.py | 08394fddeab789aa6f4927a312461f0c8229a29e | [] | no_license | subash319/PythonDepth | 9fe3920f4b0a25be02a9abbeeb60976853ab812e | 0de840b7776009e8e4362d059af14afaac6a8879 | refs/heads/master | 2022-11-16T03:03:56.874422 | 2020-07-17T01:19:39 | 2020-07-17T01:19:39 | 266,921,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | #
# names = ['Ted', 'Sam', 'Jim', 'Rob', 'Anu']
# maths = [98,67,54,88,95]
# physics = [88,64,78,99,78]
# chemistry = [78,67,45,79,87]
# These 4 lists contain the names and marks of students in 3 subjects.
# Write a dictionary comprehension to create the following dictionary from the above 4 lists.
# { 'Ted': [98, 8... | [
"subas319@gmail.com"
] | subas319@gmail.com |
e8671cf5ba3ec2529608a9c484cbb899180c4e45 | 439c87c48c6c2c812d1faca73cbf1b632e9403dc | /DAYS/Day23/Frequency_can_become_same.py | e3d4dbf245a9234ce1844db16bb8f4940835985b | [
"MIT"
] | permissive | saubhagyav/100_Days_Code_Challenge | 14ca8db68e09c7ac7741f164fea8b62cb36bf2c0 | bde41126b9342eacc488c79d01dc4b76a3651c93 | refs/heads/main | 2023-08-05T03:12:18.918079 | 2021-09-12T12:20:41 | 2021-09-12T12:20:41 | 389,375,066 | 2 | 2 | null | 2021-07-25T15:06:18 | 2021-07-25T15:06:17 | null | UTF-8 | Python | false | false | 416 | py | from collections import Counter
def Check_Frequency(Test_string):
Test_dict = Counter(Test_string)
Result = list(set(Test_dict.values()))
if len(Result) > 2:
return False
elif len(Result) == 2 and Result[1]-Result[0] > 1:
return False
else:
return True
Test_... | [
"noreply@github.com"
] | saubhagyav.noreply@github.com |
960ac25a67fbf72976ab75e6b8dbf05281553012 | 758bf41e46a3093f4923af603f1f7f8063408b9c | /website/testFromRemoteRepo/_bsch3398/museum/python/django/contrib/gis/gdal/__init__.py | 7c3a03b42b7bc94fdbb03cfa9c6a54e206c549f2 | [
"BSD-3-Clause"
] | permissive | mpetyx/mpetyx.com | 4033d97b21c9227a6ba505980fd0c1b57254e8fb | d50c379b4fe09e0135656573f7049225fc90ae36 | refs/heads/master | 2021-01-10T19:50:15.488371 | 2014-01-22T09:04:14 | 2014-01-22T09:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | """
This module houses ctypes interfaces for GDAL objects. The following GDAL
objects are supported:
CoordTransform: Used for coordinate transformations from one spatial
reference system to another.
Driver: Wraps an OGR data source driver.
DataSource: Wrapper for the OGR data source object, supports
OGR-... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
ff60e6952245ffd8f266b0eaf56ff16ceb153997 | d99ac626d62c663704444a9cce7e7fc793a9e75e | /crypto_implementations/virgil-crypto-c/wrappers/python/virgil_crypto_lib/foundation/_c_bridge/_vscf_round5.py | afe300c8a71a0d27ca50895ef9ae32e159be90fd | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Experiment5X/CryptoFunctionDetection | 3ab32d5573a249d24db1faf772721bc80b8d905d | dac700193e7e84963943593e36844b173211a8a1 | refs/heads/master | 2023-04-19T09:12:35.828268 | 2021-05-13T22:39:27 | 2021-05-13T22:39:27 | 355,299,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,073 | py | # Copyright (C) 2015-2020 Virgil Security, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# (1) Redistributions of source code must retain the above copyright
# notice, this li... | [
"xmeadamx@gmail.com"
] | xmeadamx@gmail.com |
703d10b745c8000288c553adcd42e3990d554b8b | 1b1a30bfa44ad30fa6fb4ac2e6254d9ff2bf9d46 | /keytree/tests/test_write.py | de9d42f3b86e230c671961a2444f2286f439f14f | [] | no_license | imclab/keytree | bff25eee2c8e82aa95062ddbfdda32b0b3a0759b | db7dc932af92d4367bdb934632327c6d9963c2cb | refs/heads/master | 2020-12-13T19:14:31.044506 | 2012-12-28T23:20:06 | 2012-12-28T23:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py |
from unittest import TestCase
from xml.etree import ElementTree as etree
from keytree import element
KML = """<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
</Document>
</kml>
"""
class ElementWriterTestCase(TestCase):
def setUp(self):
self.doc = etree... | [
"sean.gillies@gmail.com"
] | sean.gillies@gmail.com |
514a7cb7000a793365eac04a7428ab887b3fab7f | adb759899204e61042225fabb64f6c1a55dac8ce | /14500~14599/14501.py | ffaf69b3c4a49b459ac1f40535dc459b3e8d71b2 | [] | no_license | geneeol/baekjoon-online-judge | 21cdffc7067481b29b18c09c9152135efc82c40d | 2b359aa3f1c90f178d0c86ce71a0580b18adad6f | refs/heads/master | 2023-03-28T23:25:12.219487 | 2021-04-01T09:19:06 | 2021-04-01T09:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,439 | py | # 문제
# 상담원으로 일하고 있는 백준이는 퇴사를 하려고 한다.
# 오늘부터 N+1일째 되는 날 퇴사를 하기 위해서, 남은 N일 동안 최대한 많은 상담을 하려고 한다.
# 백준이는 비서에게 최대한 많은 상담을 잡으라고 부탁을 했고, 비서는 하루에 하나씩 서로 다른 사람의 상담을 잡아놓았다.
# 각각의 상담은 상담을 완료하는데 걸리는 기간 Ti와 상담을 했을 때 받을 수 있는 금액 Pi로 이루어져 있다.
# N = 7인 경우에 다음과 같은 상담 일정표를 보자.
# 1일 2일 3일 4일 5일 6일 7일
# Ti 3 5 1 1 2 4 2
# Pi 10 20 10 20 1... | [
"alstn2468_@naver.com"
] | alstn2468_@naver.com |
db3bddc10e70ca78c44d08749d8653382c4a955e | 6ede8ffb96aabbe03feb7e739b645878abd7bc6d | /tensorflow/python/ops/bincount.py | 68950eaf5965860b96ae92d42a91ab25d8f35841 | [
"Apache-2.0"
] | permissive | AzureMentor/tensorflow | fea99d031494642b414e15e4e1f9b34cf0353a76 | 9f8fc1e945817428be0555a985d79073d713bce0 | refs/heads/master | 2021-08-22T04:43:04.739158 | 2020-05-20T02:24:52 | 2020-05-20T02:24:52 | 184,843,536 | 2 | 0 | Apache-2.0 | 2020-05-20T02:24:53 | 2019-05-04T02:29:27 | C++ | UTF-8 | Python | false | false | 11,553 | py | # Copyright 2020 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d6cd28ae361ec931ad2dfaf604fbe17836bc2e04 | 233928d206e13e068cf8cb5ff7888c9a2d84ad61 | /elice/lecture1/test.py | 58d44bdea1bbe1bcade0113355c215364068ddf0 | [] | no_license | Jinwoongma/Algorithm | 7f6daa2d3c2c361059c09fb4fe287b1cce4863e2 | 78803f4572f1416451a9f4f31f53b7d653f74d4a | refs/heads/master | 2022-10-07T22:53:20.333329 | 2020-06-07T13:27:47 | 2020-06-07T13:27:47 | 237,114,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | num = 10
def plus():
print(num)
num += 1
plus() | [
"jinwoongma@gmail.com"
] | jinwoongma@gmail.com |
eae1209cde503300621b2e4cd63576ae312a868e | 699a43917ce75b2026a450f67d85731a0f719e01 | /using_python/322_coin_change/coin_change.py | 453bc631d8c72e4e6d1d021cb3b8598456640723 | [] | no_license | wusanshou2017/Leetcode | 96ab81ae38d6e04739c071acfc0a5f46a1c9620b | c4b85ca0e23700b84e4a8a3a426ab634dba0fa88 | refs/heads/master | 2021-11-16T01:18:27.886085 | 2021-10-14T09:54:47 | 2021-10-14T09:54:47 | 107,402,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | class Solution:
def coinChange(self, coins: [int], amount: int) -> int:
dp = [0] + [float("inf")] *amount
for coin in coins:
for i in range (coin , amount+1):
dp[i] = min (dp[i], dp[i-coin]+1)
return dp[amount] if dp[amount]!= float("inf") else -1
so =Solution()
print (so.coinChange... | [
"252652905@qq.com"
] | 252652905@qq.com |
6828a17057599731cc595b26995b3930f8a78e82 | 7a15271c7cddd199f43555469a67d26ce0f60836 | /uncertainty_baselines/models/vit_mimo.py | d218ad8262546522d746a03e843d3e3409b5167a | [
"Apache-2.0"
] | permissive | google/uncertainty-baselines | b2c339d918bf3949ee066f9eafa6b51232a2ac3d | f5f6f50f82bd441339c9d9efbef3f09e72c5fef6 | refs/heads/main | 2023-09-02T13:59:26.355288 | 2023-08-14T16:35:22 | 2023-08-14T16:36:11 | 280,026,201 | 1,235 | 198 | Apache-2.0 | 2023-09-11T22:21:48 | 2020-07-16T01:54:32 | Python | UTF-8 | Python | false | false | 3,957 | py | # coding=utf-8
# Copyright 2023 The Uncertainty Baselines 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 ap... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
b7f7076f5afb4e3428632e25750722c00706b99e | 4777728e147ef6a7d3af53ac89ad7e7527fa7b54 | /scripts/match_districts.py | 64a10b50e30424cad54373cf920d8a713cd27253 | [
"MIT"
] | permissive | meilinger/firecares | d8da365e355aec7c0f9f75da25fca655432d0254 | fbcde3c1fb89a07b2b28d9039b49dca53b9b991b | refs/heads/master | 2021-01-18T19:38:45.330532 | 2016-11-01T20:51:25 | 2016-11-01T20:51:38 | 41,003,852 | 0 | 0 | null | 2015-08-19T00:12:20 | 2015-08-19T00:12:20 | null | UTF-8 | Python | false | false | 1,319 | py | import glob
import os
import sys
sys.path.append(os.pardir)
from firecares.firestation.management.commands.match_districts import Command
from firecares.firestation.models import FireDepartment, FireStation
from django.contrib.gis.geos import GeometryCollection as GC
import django
django.setup()
files = glob.glob(sy... | [
"garnertb@gmail.com"
] | garnertb@gmail.com |
fdc77083dbf90bdb66b304f6e10d6aff7b96f4ab | d703487f4c27b92310ad1e6674da8b48e2095bc8 | /common/logic/fish_array_3.py | b86373ab6e1bf7feef2f27aa2a5f5e9eace2c0b3 | [] | no_license | rolllyroman/fish_ | 0aaee7544650886c73eaf06d5bb420b409628d29 | 7b535f8a0bc875b96922121a29636aab4a20f803 | refs/heads/master | 2020-03-28T00:51:06.565231 | 2018-09-21T08:50:36 | 2018-09-21T08:50:36 | 147,454,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,711 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Author: $Author$
Date: $Date$
Revision: $Revision$
Description:
鱼阵3,等间距环形鱼阵
"""
from common.data.scene import WIDTH, HEIGHT, CENTER_X, CENTER_Y
from common.data.fish_init_areas import FishInitArea
from common.arith.point_math import Point
from common.... | [
"you@example.com"
] | you@example.com |
b1e07b55cc88e5fa72d84564acadc485d25057d2 | 16c8fdf291430475f40d578b0d64552eb64046e9 | /colour/models/rgb/transfer_functions/nikon_nlog.py | 21e0c13e1081c32f15d60dac95893527f306835d | [
"BSD-3-Clause"
] | permissive | nodefeet/colour | 4c1bfed87ce173ff878bdf288fd9828bb68022e3 | 319dd5b1c45aef6983eff1830f918c1e593fb530 | refs/heads/develop | 2022-02-19T17:39:36.657993 | 2022-02-15T08:38:26 | 2022-02-15T08:38:26 | 460,456,444 | 0 | 0 | BSD-3-Clause | 2022-02-17T13:53:37 | 2022-02-17T13:53:36 | null | UTF-8 | Python | false | false | 5,529 | py | """
Nikon N-Log Log Encoding
========================
Defines the *Nikon N-Log* log encoding:
- :func:`colour.models.log_encoding_NLog`
- :func:`colour.models.log_decoding_NLog`
References
----------
- :cite:`Nikon2018` : Nikon. (2018). N-Log Specification Document - Version
1.0.0 (pp. 1-5). Retrieved Sept... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
7e93265e3e2ddc5409ba10e0b89e8c4bba613615 | 09a2d0231caf5231875270ca85dba3bf201d83c7 | /linotak/mentions/migrations/0004_incoming_received.py | 1d50965cd7e957d46d12464362c62a542df6d4ea | [] | no_license | pdc/linotak | 898c2a014a2f2beed25127efc4b69db637c1a537 | 0075ea457f764cbb67acecb584e927bf58d2e7a8 | refs/heads/develop | 2023-03-09T19:39:59.013308 | 2022-12-19T19:58:49 | 2022-12-19T19:58:49 | 148,982,795 | 0 | 0 | null | 2023-02-15T20:20:01 | 2018-09-16T09:54:31 | Python | UTF-8 | Python | false | false | 488 | py | # Generated by Django 3.0.8 on 2020-08-30 21:57
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
("mentions", "0003_post_i18n"),
]
operations = [
migrations.AddField(
model_name="incoming",
... | [
"pdc@alleged.org.uk"
] | pdc@alleged.org.uk |
8e1afacf0cc3e334b5b5e95f56349940f2f1db5d | 1eb50735e3861cde4bca8f4feab5afc730003078 | /future/tqdm进度条.py | eda322f687b82450a99c954568d587570ce0ebd1 | [] | no_license | chinaylssly/fluent-python | 442e6458215e3c5a74c4d34d020b714da108f81d | 126c1d3e7853628c4a2c0e6ff475362b7d7fe33a | refs/heads/master | 2020-04-17T13:58:03.534184 | 2019-02-01T14:40:42 | 2019-02-01T14:40:42 | 166,637,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | # -*- coding: utf-8 -*-
from time import sleep
from tqdm import tqdm
for i in tqdm(range(10)):
sleep(1)
| [
"chinaylssly@qq.com"
] | chinaylssly@qq.com |
575b7b48abf22f076b84e4ef15b11103ba8859b5 | 8cb8bfd2dae516612251039e0632173ea1ea4c8a | /modules/analyzes/door/doorsize/controller.py | 9126c599a165028ae6febf61087f048a2c4fb0a5 | [] | no_license | nyzsirt/lift-prod | 563cc70700d26a5812a1bce0bd9795998dce6e99 | 9a5f28e49ad5e80e422a5d5efee77a2d0247aa2b | refs/heads/master | 2020-04-22T01:05:42.262876 | 2019-02-09T13:31:15 | 2019-02-09T13:31:15 | 170,003,361 | 1 | 0 | null | 2019-02-10T17:11:50 | 2019-02-10T17:11:50 | null | UTF-8 | Python | false | false | 721 | py | from abstracts.abstract_resource_controller import AbstractResourceController
from modules.analyzes.door.doorsize.models import DoorSize
from modules.helper2 import helper
class ControllerDoorSize(AbstractResourceController):
def __init__(self):
self.helper = helper()
self.abstract = super(Control... | [
"mutlu.erdem@soft-nec.com"
] | mutlu.erdem@soft-nec.com |
6edd0fa849079349ad68374f58ae03751169c5a0 | c4ab9448e4df33cc55db85dbf37afb4982edcab4 | /isiscb/zotero/migrations/0003_auto_20160218_1614.py | 33af73f3ff24f0fde46cfe84682b49e4b6333db4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | upconsulting/IsisCB | 659c1293b3606fb797611e138deb234b41c617f5 | 6c20899bf9193cc4cc6b4a2efea24ae86cbc51eb | refs/heads/master | 2023-09-01T17:23:14.538601 | 2023-03-19T21:05:29 | 2023-03-19T21:05:29 | 40,304,109 | 6 | 2 | MIT | 2023-07-30T15:04:05 | 2015-08-06T12:40:51 | Python | UTF-8 | Python | false | false | 476 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-18 16:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zotero', '0002_auto_20160216_1622'),
]
operations = [
migrations.AlterField(... | [
"erick.peirson@asu.edu"
] | erick.peirson@asu.edu |
e16cb457cd2bdec0206f1fb45a2bc62bd0834ae8 | 29d09c634ffdd8cab13631d62bc6e3ad00df49bf | /Algorithm/baekjoon/13023_ABCDE.py | 668731e67b568111b79707b4d426bc57551db84d | [] | no_license | kim-taewoo/TIL_PUBLIC | f1d32c3b4f46344c1c99f02e95cc6d2a888a0374 | ae86b542f8b1805b5dd103576d6538e3b1f5b9f4 | refs/heads/master | 2021-09-12T04:22:52.219301 | 2021-08-28T16:14:11 | 2021-08-28T16:14:11 | 237,408,159 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | found = False
import sys
input = lambda: sys.stdin.readline()
def dfs(v, cnt, origin):
global found
if found:
return
if cnt == 5:
found = True
return
if cnt > chk_max[origin]:
chk_max[origin] = cnt
for i in board[v]:
if not chk[i]:
if chk_max[i]:
... | [
"acoustic0419@gmail.com"
] | acoustic0419@gmail.com |
d4cbaf36b608ec4f75a9244c59fad4ff17838dba | 620d21623a300821e2a195eed5434bac67fb4dca | /abb_experimental_ws/build/abb_irb2400_moveit_config/catkin_generated/pkg.develspace.context.pc.py | bad71f63564b6113dd733b4f2835133b33daf66a | [] | no_license | yazici/Robarch-dev | bb63c04bd2e62386e7c1215bf5b116ccd763c455 | 9f8db4c418db3fc80454200cb6625cc2b2151382 | refs/heads/master | 2020-05-21T02:32:06.765535 | 2018-09-07T15:50:26 | 2018-09-07T15:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "abb_irb2400_moveit_config"
PROJECT_SP... | [
"email.jrv@gmail.com"
] | email.jrv@gmail.com |
5601aff2121e0430b64554af7112f5143e683c7f | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnsurveyor.py | 0f79817f723f9553af007d8121d2638228c52f5a | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 570 | py | ii = [('CookGHP3.py', 1), ('RogePAV2.py', 1), ('CoolWHM2.py', 1), ('RogePAV.py', 1), ('RennJIT.py', 2), ('MartHSI2.py', 1), ('MarrFDI3.py', 1), ('PeckJNG.py', 5), ('FitzRNS3.py', 4), ('ClarGE2.py', 2), ('AinsWRR3.py', 1), ('CoolWHM.py', 1), ('ClarGE.py', 3), ('LyelCPG.py', 3), ('CrocDNL.py', 1), ('WadeJEB.py', 20), ('B... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
137ce9f638c8cbef7f90ef43a198d1e2bbff6f71 | b1152e66088975211a7b3ae61f68c69630644f4a | /MIX_Graph_Multi_Agent/Attention/attention.py | c49680b7c0cdad91350c6e900a3da5d1bf04167d | [] | no_license | lxjlu/H2G-MAAC | ef09a6f838816ff3b47b71781204dcb1fe11a30b | 144542e098932d61b744bf337b3c6637b358a3b7 | refs/heads/main | 2023-06-21T22:26:22.018345 | 2021-07-17T10:38:41 | 2021-07-17T10:38:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | import tensorflow as tf
def scaled_dot_product_attention(q, k, v, mask):
matmul_qk = tf.matmul(q, k, transpose_b=True) # (..., seq_len_q, seq_len_k)
# scale matmul_qk
dk = tf.cast(tf.shape(k)[-1], tf.float32)
scaled_attention_logits = matmul_qk / tf.math.sqrt(dk)
# add the mask to the scaled te... | [
"787873309@qq.com"
] | 787873309@qq.com |
7f457300765fa9938e6a03720e657ddbc14780bf | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2017_01_18_predict_bulk_other_regressors/transform.py | 184cc8d04f8835c28a879cbb63722d039d7d7ed8 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import functions as rr
import numpy as np
# from sklearn.decomposition import PCA
from constants import const
import time
import h5py
def transform(ns, set_id, pca):
st = time.time()
C = const()
n_corr = C['cmax']
f_red = h5py.File("spatial_reduced_L%s.hdf5" % C['H'], 'a')
f_stats = h5py.File(... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
350f64bc1b133699e73ca47c6c2a94e3069fb404 | 43ede7b8fb546c00804c0ef94501f6e48ba170d6 | /Cursos Python/Python 3 - João Batista/Coleções.py | 85ca78819113eed3dccd3d7d8939d46dd30dbba8 | [] | no_license | bopopescu/Python-13 | db407d17252473e78e705e563cfee4dbd316c6b9 | c8bef500f2d3e4a63d850f96dfa219eff2ecebda | refs/heads/master | 2022-11-22T16:24:08.490879 | 2020-06-11T14:22:24 | 2020-06-11T14:22:24 | 281,830,055 | 0 | 0 | null | 2020-07-23T02:26:31 | 2020-07-23T02:26:30 | null | UTF-8 | Python | false | false | 527 | py | # # Listas
# lista = ['eduardo - 0', 'atila - 1', 'lebiste - 2']
#
# # print(lista)
# #
# # for i in lista:
# # print(i)
#
# # print(lista[0])
#
# lista.append('Erickson - 3')
# # ['eduardo - 0', 'atila - 1', 'lebiste - 2', 'Erickson - 3']
# lista.insert(1, 'Lucas')
#
# print(dir(lista))
# # # Tuplas
# tupla = (10... | [
"ofc.erickson@gmail.com"
] | ofc.erickson@gmail.com |
b8a111842e89df90bce5aefed525fe7b800362c2 | b25c4a44e5d33d4d2acf98219b0fbac324bad6c7 | /Lv0__16_to_30/29.시저 암호.py | bc49a0dc8c9ad2fa45459fa03b81bf3f1b5989ab | [] | no_license | itwebMJ/algorithmStudy | 409d46bfa4d0b63d7137a0c64dd09c640dc99460 | 9881e07d276742d243bcd1a4929f726d5ec293ff | refs/heads/main | 2023-07-12T18:08:45.157261 | 2021-08-29T12:45:45 | 2021-08-29T12:45:45 | 375,876,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | '''
시저 암호
어떤 문장의 각 알파벳을 일정한 거리만큼 밀어서 다른 알파벳으로 바꾸는 암호화 방식을 시저 암호라고 합니다.
예를 들어 "AB"는 1만큼 밀면 "BC"가 되고, 3만큼 밀면 "DE"가 됩니다.
"z"는 1만큼 밀면 "a"가 됩니다. 문자열 s와 거리 n을 입력받아 s를 n만큼 민 암호문을 만드는 함수, solution을
완성해 보세요.
'''
def solution(s, n):
answer = ''
up = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
low = up.lower()
s_list = []
... | [
"rlaalwn61@naver.com"
] | rlaalwn61@naver.com |
df40bafe036762bbfa75bb8eeaedc532d98f0d1e | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Vips/Combine.py | b29ecf7dc26299d9ce933c539cc90375d83cc41b | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 12,838 | py | # encoding: utf-8
# module gi.repository.Vips
# from /usr/lib64/girepository-1.0/Vips-8.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the mo... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
e8d44fcc8ab38010d57edd595269bffa26a9b608 | 6c791df92e63f8f1ba579c0aa326a7fdc9cfbf19 | /Recheck/Test_Grad_Descent.py | f1b2aac7d945649530f9e92d50d4d83273d3c1a4 | [] | no_license | krm9c/BDHeterogeneity | 5261ca874d2923da3d1320ac1b02e23b23e8d64a | eabb9bcedbe0cf580c6391eeaf455a675803970a | refs/heads/master | 2020-03-22T10:22:59.038734 | 2019-02-12T22:43:15 | 2019-02-12T22:43:15 | 139,898,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,040 | py | # The test file
import os
os.environ['CUDA_VISIBLE_DEVICES'] = ' '
import Class_Recheck as NN_class
import tensorflow as tf
import numpy as np
import traceback
import random
###################################################################################
def iterate_minibatches(inputs, targets, batchsize, shuffle=Fa... | [
"krm9c@mst.edu"
] | krm9c@mst.edu |
d8f8e08efb7e0e9134c5ee0f78f8b256b26822b1 | eae3d77ac72c168cee7701462f1fc45d7d4dcd91 | /2115_벌꿀채취.py | a196922576c19447850463993fc206b2387b3b9a | [] | no_license | ByeongjunCho/Algorithm-TIL | ed2f018d50bd2483bd1175ff9bf7e91913c14766 | ad79125a1498915fe97c1d57ee6860b06c410958 | refs/heads/master | 2022-07-19T15:12:23.689319 | 2020-05-18T08:37:09 | 2020-05-18T08:37:09 | 256,399,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | # SWEA 2115. [모의 SW 역량테스트] 벌꿀채취
def makemaxmap():
for i in range(N):
for j in range(N-M+1):
makeMaxSubset(i, j, 0, 0, 0)
# i: 행, j: 열, cnt: 고려한원소수
# sum: 부분집합에 속한 원소의 합
# powSum: 부분집합에 속한 원소의 이익
def makeMaxSubset(i, j, cnt, sum, powSum):
if sum > C: # 부분집합의 합은 목표량C를 초과하면 리턴
return
... | [
"jjgk91@naver.com"
] | jjgk91@naver.com |
8579ba110a3dfce9e5b310a76a8b8b051ef5e561 | a8544cedbec52f929e91e617a5f484d987352525 | /src/tests/src/technique/transitive/test_transitive_calculator.py | 3947a0e6a65c93529e95fe334898ef0a291bc475 | [] | no_license | thearod5/Tracer | 75df513ee2500bffc32c29139983990867239369 | 67ee3d7296fb4c788c111387b335ab9804815655 | refs/heads/master | 2023-05-31T13:53:34.640103 | 2021-06-18T01:00:10 | 2021-06-18T01:00:10 | 349,507,401 | 1 | 0 | null | 2021-06-18T01:00:10 | 2021-03-19T17:41:37 | Python | UTF-8 | Python | false | false | 3,429 | py | import numpy as np
from api.extension.cache import Cache
from api.technique.definitions.direct.calculator import DirectTechniqueData
from api.technique.definitions.transitive.calculator import (
TransitiveTechniqueCalculator,
TransitiveTechniqueData,
append_direct_component_matrices,
perform_transitive... | [
"vhsalbertorodriguez@gmail.com"
] | vhsalbertorodriguez@gmail.com |
04e7c82d6bad587dcfbeabc467b229e6e694a43f | e121dcc5d23e225891420e730549b9cc7ebe8e88 | /python/lib/direct/tkwidgets/Slider.py | 71247acf6b23c510cf7a8708e9c291e631990509 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | PlumpMath/panda3d-3 | 4f4cf7627eddae9b7f30795e0a0657b01fdf670d | 5c0be0e1cd46b422d28d5b81ffb1e8b28c3ac914 | refs/heads/master | 2021-01-25T06:55:36.209044 | 2014-09-29T14:24:53 | 2014-09-29T14:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,536 | py | """
Slider Class: Velocity style controller for floating point values with
a label, entry (validated), and min/max slider
"""
__all__ = ['Slider', 'SliderWidget', 'rgbPanel']
from panda3d.direct.showbase.TkGlobal import *
from Tkinter import *
from Valuator import Valuator, rgbPanel, VALUATOR_MINI, VAL... | [
"ralf.kaestner@gmail.com"
] | ralf.kaestner@gmail.com |
75c48e2a11389ce75a618495581d70c80b79da56 | 09e32f424b4f1e54709b7bc483023c273c28b559 | /w4/lucyflowers/lucyflowers.py | eb2fcb9e72ab8e75a0375018f68a92fae82f3361 | [] | no_license | lenin2ud/hackerrank | 6d4283e4d86ad0778ad19f85f5cb8d4d7d98bff6 | 7996542d87c32c6fffdc0d005dea92b57a18cd26 | refs/heads/master | 2021-03-27T04:30:32.732800 | 2014-06-13T00:10:30 | 2014-06-13T00:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | # https://www.hackerrank.com/contests/w4/challenges/lucy-and-flowers
MOD = 10 ** 9 + 9
MAX_N = 5000
dp = [1] * (MAX_N + 1)
inv = [0] * (MAX_N + 1)
mem = [0] * (MAX_N + 1)
def extended_gcd(aa, bb):
lastremainder, remainder = abs(aa), abs(bb)
x, lastx, y, lasty = 0, 1, 1, 0
while remainder:
lastre... | [
"marek@stepniowski.com"
] | marek@stepniowski.com |
3289fda5e1f37200848fba7f873c3f84f00ef0cf | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/automation/v20170515preview/get_source_control.py | bd8cc3a9b818a03ca55f93a52a7bcfd1acd42b85 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,646 | 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
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
fd8475f2fa48aed730dfe0df90c3253f83661d75 | 5d61565651b7ba5fa8fade3313a5e82fca8b6686 | /goodstype/forms.py | bab317474e9e54bac606219efd097ee9de0e8a3c | [] | no_license | lonelyxmas/ISMS | d597b00072bfa77907875f575b866fbb1fb53295 | 08c5e2f3518fc639cf1a1f2869f4b2f3ae58e306 | refs/heads/master | 2023-08-14T12:02:59.001215 | 2021-03-22T03:34:58 | 2021-03-22T03:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,013 | py | from django.forms import ModelForm
from django import forms
from django.forms import widgets as Fwidgets
from .models import *
class GoosTypeModelForm(ModelForm):
class Meta:
model = goodstype
fields = '__all__'
widgets = {
'FID': Fwidgets.Input(attrs={'type': 'hidden'}),
... | [
"11325818@qq.com"
] | 11325818@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.