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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6b8983002b4ac5f964d347fa89ea307ea1b1d9b | c3126ad2a8b6c48419892ead051b0a6dbdad6efc | /route/__init__.py | c6aab6985688ac931e8e7defecd529546ebbbcc0 | [] | no_license | xieyalong/python_tronado_web | c927df649c24041451f8c4aa1cd99bddfa0b8800 | 571187a54da27d8aa460268b470481fa7a758b08 | refs/heads/master | 2020-09-14T11:54:35.448127 | 2020-01-09T10:02:36 | 2020-01-09T10:02:36 | 223,121,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | #说明:路由 | [
"123456"
] | 123456 |
83d8e7ca934db2de8ed827172cff2f8794ca29de | 685f4474699d769dae88537c69f5517ac13a8431 | /EL258.py | b7ef048ddcb0d6128037a7c929726637dd19012c | [] | no_license | Pumafied/Project-Euler | 7466f48e449b7314598c106398c0be0424ae72d5 | 0c3e80a956893ce1881a9694131d52b156b9d3d8 | refs/heads/master | 2016-09-05T22:45:09.733696 | 2013-04-20T04:46:48 | 2013-04-20T04:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | # A sequence is defined as:
# gk = 1, for 0 k 1999
# gk = gk-2000 + gk-1999, for k 2000.
# Find gk mod 20092010 for k = 1018. | [
"pumafied@gmail.com"
] | pumafied@gmail.com |
299b53e0d2dda81682265b3cd1289d5cb5b5425a | 5f806ddab1ca60e3cbd576f57768940bbb5a62c3 | /sample/__main__.py | b79fce6d3c2b9325b967544f567746a87a0e77fc | [
"BSD-3-Clause"
] | permissive | pyapp-org/pyapp-messaging | 1f56c3a1ab61df196c44cb7fc320fad0e8796526 | 159dede0d9a9823997dd37641cc2f46b139d24e3 | refs/heads/develop | 2022-10-10T15:33:58.625747 | 2020-08-20T03:01:40 | 2020-08-20T03:01:40 | 195,380,641 | 1 | 0 | NOASSERTION | 2022-09-29T00:02:25 | 2019-07-05T09:24:28 | Python | UTF-8 | Python | false | false | 67 | py | from sample.cli import main
if __name__ == "__main__":
main()
| [
"tim@savage.company"
] | tim@savage.company |
e029887d12b7ae495e426e2301094b410b3f5302 | 46f1e7c1d81f271b2a3357b2e133049893725d82 | /Solution/动态规划/一维/70. 爬楼梯/动态规划1.py | 5f06161b6ab8f5ae526b7d050d229ba88cb1390b | [] | no_license | WeiS49/leetcode | 203fed67773592a45186c99fd6a2f16dff426c3e | 76ddcec959c18164ae7efb564f2287981f5ab5ca | refs/heads/master | 2023-08-13T16:06:45.152951 | 2021-09-26T15:36:06 | 2021-09-26T15:36:06 | 319,033,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #
# @lc app=leetcode.cn id=70 lang=python3
#
# [70] 爬楼梯
# 动态规划, 没有用实际操作去运算f(n)=f(n-1)+f(n-2)
# 而是在找到逻辑后, 使用加法完成方法数量的计算
# 时间复杂度: 单层循环, O(n)
# 空间复杂度: 占用空间随楼梯数n线性变化, O(n)
# @lc code=start
class Solution:
def climbStairs(self, n: int) -> int:
dp = [0] * (n + 1) # 创建数组, 保存每一级的步数, 考虑到dp[0], 所以长度+1
dp[0... | [
"swh_1C3@outlook.com"
] | swh_1C3@outlook.com |
92e4f8e251b201a9642253fbf8807dba64c8fb89 | f3b99fdd48bc38dbe5d972c07dcbce204e5cff2b | /Projetos_Django/project/products/views.py | 97b0c6e78e026d3b71de54c1569823a558248cc6 | [] | no_license | Aleleonel/Python_codes | 5b66251d45bbf3678451b6380ca4d5a81f416e25 | fd535da3f2f4c510b4e85f9ec1dee59c9d07ffcb | refs/heads/master | 2020-04-03T16:44:24.923059 | 2018-12-06T00:16:21 | 2018-12-06T00:16:21 | 155,416,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from django.shortcuts import render, redirect
from .models import Product
from .forms import ProductForm
def list_products(request):
products = Product.objects.all()
return render(request, 'products.html', {'products': products})
def create_product(request):
form = ProductForm(request.POST or None)
... | [
"aleleonel@gmail.com"
] | aleleonel@gmail.com |
9aa8968084570663211a42b8fd02fb7b0d5d36e1 | 0b9802d039ffee38fd666659719034cf7e42c04b | /faker/factory.py | bdf466c29ae071633f3150b19b9ff187d06e7c07 | [
"MIT"
] | permissive | SysGrove/faker | e1f633f3231ee94fdb82a15518ec8ecf899c5385 | 61c1aa3eeece341c0984e95cd3128bcdf3797a78 | refs/heads/master | 2021-01-16T18:42:56.837210 | 2013-07-23T14:46:09 | 2013-07-23T14:46:09 | 11,422,041 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | import sys
from faker import DEFAULT_LOCALE, DEFAULT_PROVIDERS, AVAILABLE_LOCALES
from faker import Generator
from faker import providers
class Factory(object):
@classmethod
def create(cls, locale=None, providers=None ):
# fix locale to package name
locale = locale.replace('-','_') if locale ... | [
"joke2k@gmail.com"
] | joke2k@gmail.com |
c02481c7ac213d1465183d1cc02ade2e36da39ae | 076d4b8a007fd01e41b357342aad100c87367562 | /venv/bin/rst2xetex.py | 93ea0bba24a5121b9d01203e0a5e6f59a88857ed | [] | no_license | AlexanderMcNulty/publicpolls | b755c0922949018125d5eb18ac8b07fa087f97b7 | 56f340f5d9d044af65262f4099f146d6e22af754 | refs/heads/master | 2020-04-15T04:19:59.931533 | 2019-01-07T04:31:03 | 2019-01-07T04:31:03 | 164,378,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | #!/home/ammc/pyramid/publicpolls/venv/bin/python3
# $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $
# Author: Guenter Milde
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code.
"""
try:
import locale
locale.setlocale... | [
"alexander.mcnulty92@gmail.com"
] | alexander.mcnulty92@gmail.com |
fb4850984909d60534cbe43c3bce4336a65383b1 | 76dd8343cb5d04fec631c1711a5642e6f83d8ae2 | /python/oneflow/test/modules/test_roll.py | 6f378f8cf56fe1fa6d4ba64262039cbc0eb7ccdc | [
"Apache-2.0"
] | permissive | weinapianyun/oneflow | 56c580ca2d6019f7d3e184a476ee9cb0699eea3e | 748501a5383f50bf9f3a5d3b3da81d4f31b425de | refs/heads/master | 2023-09-03T05:40:03.313826 | 2021-11-22T08:44:34 | 2021-11-22T08:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | weinapianyun.noreply@github.com |
985a0b85e8c772412f08772053bd8a1972ca244d | 0494c9caa519b27f3ed6390046fde03a313d2868 | /build/masters/master.client.drmemory/master.cfg | 6ba0741da8090cb099e1a2646e67909aef6a3892 | [] | no_license | mhcchang/chromium30 | 9e9649bec6fb19fe0dc2c8b94c27c9d1fa69da2c | 516718f9b7b95c4280257b2d319638d4728a90e1 | refs/heads/master | 2023-03-17T00:33:40.437560 | 2017-08-01T01:13:12 | 2017-08-01T01:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,506 | cfg | # -*- python -*-
# ex: set syntax=python:
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# It has one job: define a dictionary named BuildmasterConfig. This
# dictionary has a variety of keys to cont... | [
"1990zhaoshuang@163.com"
] | 1990zhaoshuang@163.com |
8d7c1c02839e814bee3d5d5ab60f6f5d06442c78 | 90174b56d08ca79d30d3b1bcace14fa72e228532 | /tests/experiments/test_prior.py | da07cd05bcdd928f94e39071db8bbe4863671d1b | [] | no_license | miclaraia/swap-tools | 559cebfb112649dcaa61f52c278fdfbf86ee5ece | fb3468a6fef254cf43e46373c940d0a867c4445d | refs/heads/master | 2021-01-15T20:08:46.928830 | 2017-10-03T19:53:54 | 2017-10-03T19:53:54 | 99,840,718 | 0 | 0 | null | 2017-10-03T19:53:55 | 2017-08-09T18:30:13 | Python | UTF-8 | Python | false | false | 2,115 | py |
from swaptools.experiments.prior import Prior
import swaptools.experiments.config as config
import swaptools.experiments.db.experiment as edb
import swaptools.experiments.db.trials as tdb
from swaptools.experiments.iterators import ValueIterator as VI
from unittest.mock import patch, MagicMock
import pytest
@pytes... | [
"micheal.laraia@gmail.com"
] | micheal.laraia@gmail.com |
f2d0b8ecf990b3bd64d4ed8f7ac429a1f7618569 | e11dff811ca981f428644fd70d10a7369c671bcb | /src/tools/ecos/cvxpy/examples/advanced/circuits.py | f13a6e85c11de273d99651ed51274c17c59334ff | [
"GPL-3.0-only",
"GPL-3.0-or-later",
"MIT"
] | permissive | riadnassiffe/Simulator | 3c4a036b5635534929fdb04b0e9c96d64c0da71f | 7d9ff09f26367d3714e3d10be3dd4a9817b8ed6b | refs/heads/master | 2021-06-20T09:31:36.033427 | 2021-04-17T00:03:17 | 2021-04-17T00:03:17 | 16,033,879 | 0 | 0 | MIT | 2021-03-22T23:20:34 | 2014-01-18T20:58:10 | Jupyter Notebook | UTF-8 | Python | false | false | 3,057 | py | # An object oriented model of a circuit.
from cvxpy import *
import abc
class Node(object):
""" A node connecting devices. """
def __init__(self):
self.voltage = Variable()
self.current_flows = []
# The current entering a node equals the current leaving the node.
def constraints(self):... | [
"riad.nassiffe@gmail.com"
] | riad.nassiffe@gmail.com |
cc7f87e4bc994ca90cb52cbb925e54d73bd1bb7c | 6684f88abb4dde0e1295fd65e1d82b5d5a3a0414 | /mysite/models.py | 3483dc080b012728c9554e723193a1abec2fd9e4 | [] | no_license | mostafaitalian/mostafaprofile | f6242bcdb60af3c679530a9dc4f6dfb3aee6bfd9 | ac7fa2e2e73cc9dca08e3127dd2a1859e7bbdd28 | refs/heads/main | 2023-06-12T12:01:22.766499 | 2021-07-05T19:53:43 | 2021-07-05T19:53:43 | 382,725,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.db import models
from myprofile.models import Profile
# Create your models here.
class MySite(models.Model):
project_name = models.CharField(max_length=100)
link = models.URLField()
description = models.TextField()
images = models.ImageField(upload_to='image/')
myprofile = models.Foreig... | [
"eng_mustafa_yossef@hotmail.com"
] | eng_mustafa_yossef@hotmail.com |
5d858f6dd2ad50fdc1f51166b1f4bc8ece460ce7 | 38a5a87d04e16cc7af2de659516f534853302ed2 | /scrapy/core/downloader/__init__.py | 62f48ec5a69a12cfe6d962000b07511880e9cc6e | [
"BSD-3-Clause"
] | permissive | zhangcheng/scrapy | d623232b946779c386eb7ca56bcfb6d5706a0ccb | 88e33ad0ad95d5f9049d8d8b1359819f4fbbf704 | refs/heads/master | 2021-01-18T12:07:01.174623 | 2011-06-09T03:15:53 | 2011-06-09T03:15:53 | 1,871,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,985 | py | """
Download web pages using asynchronous IO
"""
import random
from time import time
from collections import deque
from twisted.internet import reactor, defer
from twisted.python.failure import Failure
from scrapy.exceptions import IgnoreRequest
from scrapy.conf import settings
from scrapy.utils.python import setatt... | [
"pablo@pablohoffman.com"
] | pablo@pablohoffman.com |
7330e8ddf7bfa6a119363f5bf3b1a1260872366e | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc080/B/4879977.py | 22d2fbd77be16ddf55ae52e4f18a5d7aa1a0bb6c | [] | 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 | 69 | py | N=input()
print('Yes' if int(N)%sum(int(i) for i in N)==0 else 'No') | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
2424d2a90d0aaef68de0d6f758b31fc067c00c5d | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2022/1219_952_Largest_Component_Size_by_Common_Factor/Juwan.py | b646a287a0b1aa11aadaf34bd77f8cb879296a9b | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 881 | py | class Solution:
def largestComponentSize(self, nums: List[int]) -> int:
parent = [-1]*100001 # parent node 추적을 하기 위한 List
def find(x): # union find 방식으로 풀이
if parent[x] == -1:
return x
parent[x] = find(parent[x])
return parent[x]
... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
1a5a0fecba5719fbafefe8d2a0202fd233083119 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/rdbms/azure-mgmt-rdbms/generated_samples/postgresql/configuration_create_or_update.py | fd2ce019539a6fd4667037e606ec4d697827004b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,743 | 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 |
b19da845110781324e7547090ada1cf6297e4fed | 6044266e775c87afed99397c8bb88366fbbca0e7 | /scrapy_file/csrf_token_extract_with_re.py | 054ec197c5e44ddfab392e7960aca50fad972aa6 | [] | no_license | ranafge/all-documnent-projects | e4434b821354076f486639419598fd54039fb5bd | c9d65ddea291c53b8e101357547ac63a36406ed9 | refs/heads/main | 2023-05-08T20:01:20.343856 | 2021-05-30T10:44:28 | 2021-05-30T10:44:28 | 372,186,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from bs4 import BeautifulSoup
import requests
import json
url= ["https://www.premierleague.com/stats/top/clubs/wins?se={}".format(x) for x in range(1,100)]
print(url)
for url in url:
data= requests.get(url).text
soup=BeautifulSoup(data,"html.parser")
PLtable = soup.find_all('table')[0]
data = []
... | [
"ranafge@gmail.com"
] | ranafge@gmail.com |
2af1aad03697a4881cf62d2aba159672b8dd4e77 | 5ec7b086aed5341bdb6356e4f013d92f4eef961f | /app_local/client.py | 1138dc2454d825a3fbb8a9345ec65334357d47eb | [] | no_license | Mizterbox/MizterboxLogs | 4de843587ce38909de893eb98e50c2ccb2027654 | b1c7c2e7e5eacdf8528e6c13ec71564faa7ef82a | refs/heads/master | 2020-04-25T19:46:38.818903 | 2019-03-03T09:08:44 | 2019-03-03T09:08:44 | 173,032,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import requests, numpy as np, time
from time import gmtime, strftime, localtime
sprinklerid = np.random.randint(100,size=100)
address = np.random.randint(1000,size=100)
status = np.random.randint(1000,size=100)
maxcount = 5000000
counter = 0
actualsprinkids = [1,2,4,0]
status = ['Running Active', 'Restarting','Connec... | [
"rakshithvbharani@gmail.com"
] | rakshithvbharani@gmail.com |
9785e0140ac83818493992d4910ac3f403e90e9f | 42e5fd024ca7522c990d9627863302aa1f792804 | /DeepWNCS/Inverted_Pendulum_sihoon/Common/initialize.py | e5e97772145b48d36cec12f9d46d7bee7bd2f66e | [] | no_license | msh0576/RL_WCPS | 1f36de09ab6e4664b56ff929c69fab7de7314988 | 498a54f9777c5a849b0af491d9e76fcc470aa083 | refs/heads/master | 2023-06-08T19:13:33.676970 | 2020-11-30T05:30:02 | 2020-11-30T05:30:02 | 317,114,515 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 8 12:41:23 2020
@author: Sihoon
"""
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import math
def linear_weights_init(m):
if isinstance(m, nn.Linear):
stdv = 1. / math.sqrt(m.weight.size(1))
m.... | [
"msh0576@dgist.ac.kr"
] | msh0576@dgist.ac.kr |
5165947fc94888a1cc057b8dae59e599ae2c2e82 | 6a8eac5877ea4f782c094ad7b974d03e1dc86401 | /src/brouwers/albums/tests/factory_models.py | 85253b626987baa65d422813ba585327d3347edd | [] | permissive | modelbrouwers/modelbrouwers | cb2bbea34e70f4a1d9a7361dfe7131a20ea26b02 | 7713e78eeb31809e04b0b316ec8f8deed0808fc9 | refs/heads/main | 2023-08-06T10:49:33.804123 | 2023-07-30T20:28:34 | 2023-07-30T20:28:34 | 13,872,961 | 7 | 3 | MIT | 2023-05-29T15:33:06 | 2013-10-25T21:51:20 | Python | UTF-8 | Python | false | false | 179 | py | import warnings
from .factories import *
warnings.warn(
"Import from albums.tests.factories, the factory_models " "module will be removed",
PendingDeprecationWarning,
)
| [
"sergeimaertens@gmail.com"
] | sergeimaertens@gmail.com |
6a3fea967bb843876033c7044091961fc7cfb259 | f77d97840915ff2318c8f3841096019337c58689 | /_admin/admin_service/digestmonkey/models.py | 1ae642e4624a3ed2f41e871fac4e851e8d1d1b6a | [] | no_license | rrader/events-service | f35d7e237e0ef5e3598b90878713539960153895 | 5933a6ba83aacb63832dd6efa806409bb37812aa | refs/heads/master | 2021-01-10T04:25:45.875103 | 2015-11-20T16:21:32 | 2015-11-20T16:21:32 | 44,528,882 | 4 | 1 | null | 2015-11-01T19:28:47 | 2015-10-19T11:02:48 | Python | UTF-8 | Python | false | false | 1,231 | py | from sqlalchemy.dialects.postgresql import ARRAY, JSON
from admin_service.extensions import db
from sqlalchemy.orm import backref, relationship
class DigestMonkeyConfig(db.Model):
__tablename__ = 'mailchimpkeys'
id = db.Column(db.Integer, primary_key=True)
mailchimp_key = db.Column(db.String(100))
tem... | [
"roman.rader@gmail.com"
] | roman.rader@gmail.com |
ca9938e289f72a91088f1d3ffb1dd9dbee75ce3b | d5cc71ec7bbf2d6be0916e2c0a019501692979e6 | /main.py | 8024cd3359a72a1524430f87022d70076c750f9c | [] | no_license | JellyWX/BattleTanks | 208216df0bc0dc15a553d1624938060307690408 | fc92ac40b126325b932e43721a803bef45f34a90 | refs/heads/master | 2020-12-30T23:36:59.030501 | 2018-02-19T13:20:09 | 2018-02-19T13:20:09 | 86,604,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | from gui import GUI
from tank import Tank
from bullet import Bullet
from tile import Tile, Flower, Crate, MiniCrate, WeaponCrate
from grid import Grid
from BaseClass import BaseClass
from imageLoader import imageLoader
from random import random
import math
import os
import pygame
import sys
for arg in sys.argv:
if... | [
"judewrs@gmail.com"
] | judewrs@gmail.com |
5ed4349c84e99c1bf997607eaf87034cc25e4bf5 | 44e7e02425b3ddd69f20d3545e3f32c3af55875d | /model/my_model/ccr.py | 71c8dfacf4c8db02b3dba04a61ef7d70ebeb9746 | [] | no_license | vigorwei/Segmentation | 6c7702d79b1b8141aeda8d8e282880d3b1402810 | 0a5ffc25aca11ec25c9f889d0fbe7e505e5e141e | refs/heads/master | 2023-02-01T14:39:58.174196 | 2020-12-17T03:05:22 | 2020-12-17T03:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,436 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
from torch.utils.data import WeightedRandomSampler
import numpy as np
from model.segbase import SegBaseModel
from model.model_utils import init_weights, _FCNHead
from model.my_model.blocks import *
from model.my_model.SPUnet import SPSP
from... | [
"805207107@qq.com"
] | 805207107@qq.com |
eeff373e45e52f34ff7290461c61af68eb909dfb | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/databoxedge/v20190801/get_device_extended_information.py | 820de0f3738b39d62317888cba5931c33eb4e51a | [
"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 | 4,774 | 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 |
2c1371f7dcb0284f2757359fe2e367bc9542b2f5 | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /python/basic/arg_expr.py | e2978cda02c519982301970fb696eff2cc1c5580 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/python
#\file arg_expr.py
#\brief certain python script
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
#\date Mar.14, 2016
import sys, random, math
if __name__=='__main__':
s_expr= sys.argv[1]
print 'arg[1]=',s_expr
expr= eval('lambda x:'+s_expr)
print 'expr=',expr
for i in r... | [
"info@akihikoy.net"
] | info@akihikoy.net |
7622573ee5a322ca35255c62269e353ba2ad8f81 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02418/s050810012.py | 813576c56b0f65866e959ed464e23f400f903cdc | [] | 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 | 350 | py | def check(s, p):
for i in range(len(s)):
count = 0
for j in range(len(p)):
if s[(i+j) % len(s)] != p[j]:
break
count += 1
if count == len(p):
return True
return False
s = raw_input()
p = raw_input()
flag = check(s, p)
if flag:
prin... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
82d4f8a638d84f91ab3f4cf61ad517ef8eeec04a | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc011/A/4811622.py | 80e3e9613e7fb93e920fc7e005481f593391fd61 | [] | 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 | 259 | py | n, c, k = map(int, input().split())
t = [int(input()) for i in range(n)]
t.sort()
result = 1
count = 0
f = 0
for i in range(n):
if (t[i] - t[f]) > k or c == count:
result += 1
count = 1
f = i
else:
count += 1
print(result) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
86fcf585e7121caa6968a3c5a0bfd281544770c3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02410/s418924252.py | 63557771bea67c49bf2723c66e25a07d7c4cec3a | [] | 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 | 185 | py | n,m=list(map(int,input().split()))
mA=[list(map(int,input().split())) for i in range(n)]
mB=[int(input()) for j in range(m)]
for ma in mA:
print(sum([a*b for a, b in zip(ma,mB)])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3a2ed58e973763684ba6813e31a0326f3c22804c | 6e060e9730b58e4d7819335438f915179504e72c | /bit_account/wizard/statement_account_supplier.py | e1396166ffeacd8fd83e3663b196b96e9860f338 | [] | no_license | missionpetroleumgit/addons_missiongit | 4dcdf1d0e79da982670c573d59574a939d1636c0 | 714514719d5d4d96f371dd529a70ac282070c43b | refs/heads/master | 2023-03-10T20:34:10.154050 | 2021-02-24T23:50:20 | 2021-02-24T23:50:20 | 342,027,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,457 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution - Ecuador
# Copyright (C) 2014 BitConsultores (<http://http://bitconsultores-ec.com>).
#
# This program is free software: you can redistribute it and/or modify
# ... | [
"daldaz@mission-petroleum.com"
] | daldaz@mission-petroleum.com |
975e35f4d46d96b077ccec902d83a50f0befc10b | 6725eff72a6cf04c9cf62cb6f7f9df6373d5ceb5 | /backend/eplan_18788/settings.py | fb957dea65dc264ef337508f1c3991c3f454f306 | [] | no_license | crowdbotics-apps/eplan-18788 | ae064dc4fc95bb3f2eb2218402cf7375fd6b7273 | 652b38c70d36fe84eebd335dffed30b8e3ade581 | refs/heads/master | 2022-11-16T06:07:53.552260 | 2020-07-10T09:38:39 | 2020-07-10T09:38:39 | 278,595,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,785 | py | """
Django settings for eplan_18788 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3be018c394015f43dc2ee52d2ece2a6651fa046e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/l06.py | 515136658f604c66165a4ec3da41969bbaff7f8b | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
54a2ac39d5f82bb0261de10d4bd2935a611a6881 | e3beccff804b034047dc50e0247c28b1606c7fdb | /bogo_sort.py | 061ff6d79acf27c1b15d6d8a18c97d2dd614c9bf | [] | no_license | Rutrle/algorithms | 0434249a3d9616cc478697c78327f643166db3e7 | bfd5237c6420b84b3e43d321530dc4778fdd79ca | refs/heads/master | 2023-09-01T09:10:20.618467 | 2021-11-02T21:49:37 | 2021-11-02T21:49:37 | 357,696,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | import random
import sys
numbers = [1, 5, 8, 44, 6, 45, 468]
def is_sorted(values):
for index in range(len(values)-1):
if values[index] > values[index+1]:
return False
return True
def bogo_sort(values):
attempts = 0
while not is_sorted(values):
random.shuffle(values)
... | [
"rutrle@seznam.cz"
] | rutrle@seznam.cz |
32199bf70c40c64d9497a96e4c056000b9c9a54f | 18508cea9458b2879017b44e6f18520cd8cf4f6c | /UCMDBPython/src/plugin_ntcmd_file_version.py | be371b707921cbbacd41e47fc3580ff9493e7e73 | [] | no_license | kvt11/dd-git | 7d4935962e06d835ad0023c4abb185876a5a9e77 | 49aafa7081b861c5f6d0e1753b425e78948116d0 | refs/heads/master | 2022-11-23T19:03:19.763423 | 2016-04-04T14:54:18 | 2016-04-04T14:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | #coding=utf-8
import file_ver_lib
from plugins import Plugin
class FileVersionInformationPluginByNTCMD(Plugin):
def __init__(self):
Plugin.__init__(self)
def isApplicable(self, context):
client = context.client
if client.isWinOs():
return 1
else:
... | [
"bluesteelkc@gmail.com"
] | bluesteelkc@gmail.com |
7a8a85dc5a3a16c2d803052a8d902c7eb41278e1 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/rasbt_mlxtend/mlxtend-master/mlxtend/_base/_classifier.py | c28a3668f82e55c395cafb7d08c381bc0104d08e | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 3,243 | py | # Sebastian Raschka 2014-2017
# mlxtend Machine Learning Library Extensions
#
# Base Clusteer (Clutering Parent Class)
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause
import numpy as np
class _Classifier(object):
def __init__(self):
pass
def _check_target_array(self, y,... | [
"659338505@qq.com"
] | 659338505@qq.com |
c0a9380b65fa405b9ecd5afca937d85fc43dff4d | 9be57e13dae005f7138879871cf4deb50bb32d3a | /tests/test_module.py | 6925827ce0e2a141c347c564e0ce65f595c52349 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | shnizzedy/progressivis | 28321e3187b49b9fe034bb1786729a4b15b4a519 | d3e67925253ff3dc34dc72282ac82bb2a9571354 | refs/heads/master | 2021-05-30T21:50:41.702094 | 2016-05-13T07:45:39 | 2016-05-13T07:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import unittest
from progressivis import *
class TestProgressiveModule(unittest.TestCase):
def setUp(self):
self.scheduler = Scheduler()
def test_scheduler(self):
self.assertEqual(len(self.scheduler), 0)
def test_module(self):
module = Module(id='a', scheduler=self.scheduler)
... | [
"Jean-Daniel.Fekete@inria.fr"
] | Jean-Daniel.Fekete@inria.fr |
4e808b55d68fc959b93093eef571a1166e03efdd | d6b99ab3cc7108f4f0cc0be899641ac990e30db9 | /split_string/split_string.py | 2cf9b6dc6a0f81d094a6f334823d09ab0204003e | [] | no_license | AsemAntar/codewars_problems | ef97e8a8058551276cdb943a07474cbeb9353c4d | c0ae0a769e16211c2b8e325d1116a6cebd3be016 | refs/heads/master | 2020-08-10T02:01:12.411030 | 2019-12-15T22:45:20 | 2019-12-15T22:45:20 | 214,229,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # Author : Asem Antar Abdesamee
# Problem Description:
"""
Complete the solution so that it splits the string into pairs of two characters.
If the string contains an odd number of characters
then it should replace the missing second character of the final pair with an underscore ('_').
Examples:
solution('abc') # sh... | [
"asemantar@gmail.com"
] | asemantar@gmail.com |
26e51c4921eb1736c51e781cd828b919a4b4b897 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1190267/snippet.py | 2688e49f081b03d355fbc37009d8a0b90b919415 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 9,652 | py | #!/usr/bin/env python
#
# Copyright 2010 Facebook
#
# 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... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
56e10d0655c2f6f7366ce2a46d971413d855fa76 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/common/util/suppression.py | 1240bb00dd13c5e937571f07d45e8b1364fc12da | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 2,199 | py | from __future__ import annotations
import re
from collections.abc import Iterable
from checkov.common.bridgecrew.integration_features.features.policy_metadata_integration import (
integration as metadata_integration,
)
from checkov.common.comment.enum import COMMENT_REGEX
from checkov.common.models.enums import C... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
dc832f564f9b36bab6df19320d362a1949d6fd4f | 31e2106bc39a1e99dc4fadb2d597bd7b8cf03de5 | /examples/tutorial/replica_exchange_b.py | a672c2f27d97c1ba3e232559eeb6ad707cb70d27 | [
"MIT"
] | permissive | maxentile/radical.ensemblemd | d483ee27b01f6d41ee5113c1a7aaee599eed4652 | 0ec4b127760d2fee88d4eae1768fecec4bdd6b21 | refs/heads/master | 2021-01-13T07:18:55.256329 | 2016-07-18T17:22:22 | 2016-07-18T17:22:22 | 71,578,966 | 0 | 0 | null | 2016-10-21T15:42:37 | 2016-10-21T15:42:37 | null | UTF-8 | Python | false | false | 12,786 | py | #!/usr/bin/env python
__author__ = "Antons Treikalis <antons.treikalis@rutgers.edu>"
__copyright__ = "Copyright 2014, http://radical.rutgers.edu"
__license__ = "MIT"
__example_name__ = "Synchronous Replica Exchange Example with 'remote' \
exchange (generic)."
import os
import sys
im... | [
"b.vivek91@gmail.com"
] | b.vivek91@gmail.com |
6cb5a4e88884421b42513d7f6f813ca06bda2c4b | 9341a1eb44a8ecf9629cd58f746836ce4988acc4 | /Python全栈开发中级/第二模块/第二关课后练习/ATM+Log/__init__.py | 697da9f9492ce176756a86704783a6e6ae4a183c | [] | no_license | liudefang/14_day_training_camp | d846c91759b69b09b185a351c046187582336fbe | e608ceeb1ff47f8f458c1dbfc5974c428d351a2d | refs/heads/master | 2023-03-10T09:20:52.719381 | 2023-02-22T10:32:30 | 2023-02-22T10:32:30 | 128,916,715 | 2 | 0 | null | 2023-01-05T21:57:52 | 2018-04-10T10:40:14 | JavaScript | UTF-8 | Python | false | false | 105 | py | # -*- encoding: utf-8 -*-
# @Time : 2018-05-28 22:44
# @Author : mike.liu
# @File : __init__.py.py | [
"15989576517@139.com"
] | 15989576517@139.com |
5c8b9bbaeea57e3892988d55ad34cbcfa836aba7 | 9d5ae8cc5f53f5aee7247be69142d9118769d395 | /419. Battleships in a Board.py | 0dd34567666bfd5777b15f6d650c4bcb404e31ef | [] | no_license | BITMystery/leetcode-journey | d4c93319bb555a7e47e62b8b974a2f77578bc760 | 616939d1599b5a135747b0c4dd1f989974835f40 | refs/heads/master | 2020-05-24T08:15:30.207996 | 2017-10-21T06:33:17 | 2017-10-21T06:33:17 | 84,839,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | class Solution(object):
def countBattleships(self, board):
"""
:type board: List[List[str]]
:rtype: int
"""
# Idea: If a point is the head or tail of a ship, only one of its 4 adjacent points is 'X'. Exception: The ship contains only one 'X'.
# If a point... | [
"noreply@github.com"
] | BITMystery.noreply@github.com |
846b82d516567cd220e94d37409b58410512e50e | 2846e9aae639966796395a92bfe8ac06315f22b0 | /leetcode/ino/prob_400/prob_400_nth_digit(2).py | 7f74b0e0dc8cd07d8cb1a46c3033b1ceede09a87 | [] | no_license | sglim/inno-study | 6b8b454da4977be5ffb53d6862f3e8f2177bb077 | 456a3dd62b429037587cd23ed847ac316aa723dd | refs/heads/master | 2020-05-24T07:36:42.717567 | 2017-06-27T02:49:25 | 2017-06-27T02:49:25 | 84,835,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | class Solution(object):
def findNthDigit(self, n):
"""
:type n: int
:rtype: int
"""
if n < 10:
return n
order_idx = 1
temp = n
k = 0
while temp > 0:
k = temp
temp -= order_idx * 9 * 10**(order_idx - 1)
... | [
"inoh.jung@gmail.com"
] | inoh.jung@gmail.com |
4da63feb93d7c27541efed91f449f67ea88a4fc2 | e906fe8237e5b55b7bef1f7a87884c5924ccd8b1 | /contactmps/context_processors.py | 98c239bbb478844afc111d5142b05c0474145d13 | [
"MIT"
] | permissive | OpenUpSA/contact-mps | ac9a88ef166769d6305e213f3d77191f385c962a | 63d7f86e1b6c9319a4d0344a6125cd22770f34c7 | refs/heads/master | 2022-12-11T07:22:20.942567 | 2020-01-15T13:11:59 | 2020-01-15T13:11:59 | 93,042,651 | 0 | 2 | MIT | 2022-12-08T02:08:08 | 2017-06-01T09:52:56 | JavaScript | UTF-8 | Python | false | false | 750 | py | from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
def general(request):
""" Add some useful settings into the template helpers.
"""
info = {
'BASE_URL': "https://%s" % get_current_site(request).domain,
}
ga_tracking_id = getattr(settings, 'GOOGL... | [
"jbothma@gmail.com"
] | jbothma@gmail.com |
198758c611b2f754df74f3b1587d1c8ef5e8c7fd | ec1f8cdbf52bcc5516a833e02ac99301a1664ed9 | /wordclasses/wctool.py | 41aa852ee84d3a9b2979e3e11015d5b6c7da6751 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | senarvi/theanolm | 8fe85dcf07358a331807b9002a56b6089d5f0ff3 | 9904faec19ad5718470f21927229aad2656e5686 | refs/heads/master | 2023-06-24T10:39:21.985241 | 2023-06-12T06:55:26 | 2023-06-12T06:55:26 | 42,454,187 | 95 | 37 | Apache-2.0 | 2020-11-05T11:22:31 | 2015-09-14T14:35:54 | Python | UTF-8 | Python | false | false | 6,849 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import argparse
import logging
from time import time
from theanolm.backend import TextFileType
from wordclasses import TheanoBigramOptimizer, NumpyBigramOptimizer
from theanolm.vocabulary import Vocabulary
from theanolm.vocabulary import compute_word_counts, Bi... | [
"seppo.git@marjaniemi.com"
] | seppo.git@marjaniemi.com |
2038dd0e6d0049b70a0b0d8ef36745acc98d4064 | fe826833d207ced7b01d8aef4922da58614846ca | /demo/NavierStokesDrivenCavity.py | 7202e6a95247bd4863a6e921199545fc994f8544 | [
"BSD-2-Clause"
] | permissive | snytav/shenfun | ce56d912a38beef3f4df3072708a1f9aa5370e75 | 67844cb75e21488d7ab43bf0caa21dfbdc057395 | refs/heads/master | 2022-12-14T21:21:44.895648 | 2020-09-16T13:40:54 | 2020-09-16T13:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,818 | py | r"""Solve Navier-Stokes equations for the lid driven cavity using a coupled
formulation
The equations are in strong form
.. math::
\nu\nabla^2 u - \nabla p &= (u \cdot \nabla) u) \\
\nabla \cdot u &= 0 \\
i\bs{u}(x, y=1) = (1, 0) \, &\text{ or }\, \bs{u}(x, y=1) = ((1-x)^2(1+x)^2, 0) \\
u(x, y=-1) &=... | [
"mikaem@math.uio.no"
] | mikaem@math.uio.no |
dd6415024aa3cbcb67c72fdd6d5982cb3f90a182 | 5234bc430c83d616a8214d7f77c2c081543b6b26 | /src/Python/801-900/824.GoatLatin.py | 3a2bc8c0e7db0df5b73e1507777865a28111ca71 | [
"Apache-2.0"
] | permissive | AveryHuo/PeefyLeetCode | 3e749b962cadfdf10d7f7b1ed21c5fafc4342950 | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | refs/heads/master | 2022-04-26T06:01:18.547761 | 2020-04-25T09:55:46 | 2020-04-25T09:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py |
class Solution:
def toGoatLatin(self, S):
"""
:type S: str
:rtype: str
"""
yuanyin = {'a', 'e', 'i', 'o', 'u', 'I', 'E', 'A', 'O', 'U'}
words = S.split(' ')
for i in range(len(words)):
if words[i][0] in yuanyin:
words[i] += "ma" + ... | [
"xpf6677@163.com"
] | xpf6677@163.com |
47bf83a160bfc51995106dc38a302578407f955b | c31d440a92b33ad49c6da9c2e2646f4796fe1d0c | /oneflow_onnx/x2oneflow/handler.py | a880dd21084c9f6712768918b9f5ac7e3f8b4384 | [] | no_license | jiangjiajun/oneflow_convert_tools | c4ec79fed35f2f4489039b419e0f7d7f0877c467 | 96696edd940d58187573d7531404e6b5054e3d56 | refs/heads/main | 2023-04-15T03:21:23.828413 | 2021-04-16T09:49:24 | 2021-04-16T09:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,967 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"1182563586@qq.com"
] | 1182563586@qq.com |
e33a1aba6d98fe98d0dc48d2d88c120aa113de68 | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/-1850396913/pyexpat.py | d8a525a88b3a33d69b9d4060d8306489c2477a02 | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 7,337 | py | # encoding: utf-8
# module pyexpat
# from (built-in)
# by generator 1.147
""" Python wrapper for Expat parser. """
# imports
import pyexpat.errors as errors # <module 'pyexpat.errors'>
import pyexpat.model as model # <module 'pyexpat.model'>
# Variables with simple values
EXPAT_VERSION = 'expat_2.2.5'
native_encodi... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
1e4bb90e0f5856138c8ab6c6996f0479a227feb7 | 28541d61368a14a0d5003db4cc07fed21b40c41f | /Chapter-4/depth_search2.py | e0dc1ae6ff91822c949a2e637ca6c0eb3ca7512a | [] | no_license | eizin6389/python_algorithm | 390861f9342ce907f2cda0b45b84d364bcba7541 | abf3588ed97a343b6559eb5d69156708d42bc243 | refs/heads/master | 2022-12-06T20:48:49.470312 | 2020-08-14T13:29:26 | 2020-08-14T13:29:26 | 282,905,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | tree = [[1,2],[3,4],[5,6],[7,8],[9,10],[11,12],[13,14],[],[],[],[],[],[],[],[]]
def search(pos):
for i in tree[pos]:
search(i)
print(pos, end=' ')
search(0)
| [
"hide@matsumotohideto-no-MacBook-Pro.local"
] | hide@matsumotohideto-no-MacBook-Pro.local |
82e54a6fd231e57a350d7ae8277a496efb65f8b6 | 0aa7255bf5df6b11ad929ec313019d734e67afb8 | /LMS/blog/models/blog_tag.py | a62cc44a40ac7f850e5d91dc6384f1bac7a19239 | [] | no_license | arafat08007/Learning-management-system-by-jaki | c4e3f34061b527a09cdbc86d5ec8547074774189 | 928bdf4b8a0f408a17fa0c3d9b8bb6d77ef285e8 | refs/heads/master | 2022-11-16T06:04:22.016667 | 2020-06-19T09:23:01 | 2020-06-19T09:23:01 | 273,452,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django.db import models
# # Create your models here.
class Tag(models.Model):
tag_name = models.CharField(max_length=50, unique=True)
def __str__(self):
return self.tag_name
| [
"me.jaki@outlook.com"
] | me.jaki@outlook.com |
883b04e8faa0d0655b54ddd6386e4fedc823eb87 | 1734fd26a9adf7d2580f8bd981babda861944ebd | /snippets/plot.py | 33a0a5553e81ca7a1279684804877763af55723c | [] | no_license | tangzhuochen/Python_ML_Code | 420f4d80552a901b41e368e4e66a06f51ea1b29f | b418fd6a431a77838447ab4736bdf24019276309 | refs/heads/master | 2020-03-28T11:44:50.853941 | 2018-02-08T06:59:31 | 2018-02-08T06:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 19 08:57:13 2015
@author: shifeng
"""
print(__doc__)
import numpy as np
from scipy import interp
import matplotlib.pyplot as plt
from sklearn import svm, datasets
from sklearn.metrics import roc_curve, auc
from sklearn.cross_validation import StratifiedKFold
##########... | [
"1002937942@qq.com"
] | 1002937942@qq.com |
6e8a2025251aa202713cc2049aa715e891ee297c | 2c50ed6522f5c58f7be0416e702ec0d73127246f | /tests/test_model_e2e.py | 982be9523b521d2ab07a423c8bd28eb6dfb5cfa2 | [
"Apache-2.0"
] | permissive | wzy810103882/detectron2 | 5a5ca7f3c88e7972ddc379ab81e315075a7a2c0d | ca38df54206a78742d02a8bd572390cebcc91c86 | refs/heads/master | 2020-09-22T13:49:45.656257 | 2019-12-01T22:52:24 | 2019-12-01T22:52:24 | 225,226,643 | 0 | 0 | Apache-2.0 | 2019-12-01T20:32:49 | 2019-12-01T20:32:49 | null | UTF-8 | Python | false | false | 2,643 | py | # -*- coding: utf-8 -*-
import unittest
import torch
import detectron2.model_zoo as model_zoo
from detectron2.modeling import build_model
from detectron2.structures import BitMasks, Boxes, Instances
from detectron2.utils.events import EventStorage
from detectron2.config import get_cfg
def get_model_zoo(config_path... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
33454d8a473d9356ae6386b4a2337be5edca2700 | b35f80114ad96928ccce44d40840177e0b5158aa | /dfvfs/encoding/decoder.py | 1ec6014e57a2ce8159dd18307c1cfe296256ff2c | [
"Apache-2.0"
] | permissive | ryanmjones/dfvfs | 7b62bab127cb201e679331fa808ec79e8ef03bd9 | 29ae5baddbf285260a596a67a199d0f5077214c1 | refs/heads/master | 2020-03-29T23:47:49.363000 | 2018-09-03T11:43:03 | 2018-09-03T11:43:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
"""The decoder interface."""
from __future__ import unicode_literals
import abc
class Decoder(object):
"""Decoder interface."""
@abc.abstractmethod
def Decode(self, encoded_data):
"""Decodes the encoded data.
Args:
encoded_data (byte): encoded data.
Returns:
... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
bd9d719ca44cc85dcaf2e828f9cfb1f1854d7bc8 | aa44a2a7dec257687eb67ed109ca7727ac09d343 | /polls/migrations/0001_initial.py | 22cb82fe892f4aa5ffdda8e008b1f0fd8e12ee2e | [] | no_license | mitshel/mbrc_poll | 3f63bc2e0aa18d14eefc4e4583a84613de7d9e81 | 694cc8b084394feca178bdc2bd9ecfc1f58d9906 | refs/heads/master | 2020-04-05T23:17:08.152738 | 2015-09-16T17:32:14 | 2015-09-16T17:32:14 | 40,611,735 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='polls',
fields=[
('id', models.AutoField(auto_c... | [
"mitshel@mail.ru"
] | mitshel@mail.ru |
93d81bbe417a0112b72a86bf91c615abb9e27a37 | 47bd686ab04d8f6daba2097875dfefdba967d598 | /01_baekjoon/83_problem_3052.py | af9e73d95822c7b61f0dd7150058852dbd9f71bf | [] | no_license | EmjayAhn/DailyAlgorithm | 9633638c7cb7064baf26126cbabafd658fec3ca8 | acda1917fa1a290fe740e1bccb237d83b00d1ea4 | refs/heads/master | 2023-02-16T17:04:35.245512 | 2023-02-08T16:29:51 | 2023-02-08T16:29:51 | 165,942,743 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import sys
inputs = []
for _ in range(10):
input_number = int(sys.stdin.readline())
inputs.append(input_number%42)
print(len(list(set(inputs))))
| [
"emjay.data@gmail.com"
] | emjay.data@gmail.com |
6f80c3f5e025ec85ced638609306fc2465839e96 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /dms_write_1/replication-task-assessment-run_cancel.py | d153b39c7a14410bbcb8fb410169d26887be325c | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/dms/cancel-replication-task-assessment-run.html
... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
bfad1f787200f149256f169c0dea8aaf4e2cdb55 | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /sportsdata/nhl_stats/api_client.py | a7663abbf3b998432f1d1266f063551c21b205cd | [] | no_license | scottypate/sportsdata | f5f61ddc7eb482883f93737c6ce73dd814ed4336 | a07955ab50bf4fff1ce114ed9895095ff770c473 | refs/heads/main | 2023-08-18T16:51:56.452678 | 2021-10-22T12:44:08 | 2021-10-22T12:44:08 | 420,062,350 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,092 | py | # coding: utf-8
"""
NHL v3 Stats
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import dateti... | [
"scotty.pate@auth0.com"
] | scotty.pate@auth0.com |
9ea1502d9147fa1af905973a61f5bc952aea401c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_014/ch9_2020_03_02_19_39_46_703363.py | 5edc1af73d79ab1e4a46e92006127db38bf7623c | [] | 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 | 113 | py | def calcula_volume_da_esfera (R):
v = 4/3 * (3.14 * R**3)
return v
R = 2
print (calcula_volume_da_esfera) | [
"you@example.com"
] | you@example.com |
3ea0595fb5b419bbeb72ea4652dfeab1bd2e2b1a | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/uhd_restpy/testplatform/sessions/ixnetwork/topology/pppoxserversessions_34f51eaa47353aae9b360c64589d7c32.py | 3e819b57836a62b085cb72205b218a6011b47d87 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,857 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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 use, copy, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
b9d8ab974796272d2f381fa35d1a618abf7f072d | 758f1ad9c287c74e57fa7a4f8d03aba8d9f776ab | /host/knobui/list.py | 3936fdb4caea0387b3222bc6750f7be8a61a6517 | [] | no_license | cnvogelg/knobterm | 6ef50bc479a64d5ff1729265f447b40c5d5dfd00 | a731d1a0f1f85a0ed17f3b0df5175e151f82608f | refs/heads/master | 2021-01-21T22:26:53.052986 | 2013-01-01T16:38:40 | 2013-01-01T16:38:40 | 5,993,835 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | from label import Label
from consts import *
class List:
def __init__(self, x, y, w, title, entries=None):
self.x = x
self.y = y
self.w = w
self.h = len(entries) + 2
x += 2
w -= 4
self.tlabel = Label(x,y,w,title, align=Label.ALIGN_CENTER, fg=COLOR_LIGHT_GREY)
self.labels = []
y +=... | [
"C.Vogelgsang@web.de"
] | C.Vogelgsang@web.de |
b5a4113c696eea49ed3ad204ff79189f7aa46c03 | 210e1cffcd8a705c2a8a1485ed5532b9169f5d10 | /whoville/cloudbreak/models/custom_container_request.py | dbe93467c0216ad39351277fd6aa353b5d0e87eb | [
"Apache-2.0"
] | permissive | mikchaos/whoville | 2a45bc6636d448733d8d2368ac88a980cf6954ea | 6eabaea4b74ac0b632c03db8252590131c6ce63b | refs/heads/master | 2020-04-19T08:53:04.430990 | 2019-01-29T05:01:57 | 2019-01-29T05:01:57 | 168,092,002 | 0 | 0 | Apache-2.0 | 2019-01-29T05:00:06 | 2019-01-29T05:00:06 | null | UTF-8 | Python | false | false | 4,034 | py | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | [
"chaffelson@gmail.com"
] | chaffelson@gmail.com |
237be374caae6ca01296cb6efbdcd60b11fc1254 | c326c6e95c5ec945f534a89e3a24e791991f45f1 | /oscar/apps/partner/migrations/0008_auto__del_abstractstockalert__del_field_stockalert_abstractstockalert_.py | a9d9350d25a0114266c69b299b2ea9024c8b4a78 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | michaelBenin/django-oscar | 69ae279febae8d1896b9c0ba9b29d98439611b3e | f45d38b5d3ffa10756d95c625fb90a27185ce1e1 | refs/heads/master | 2021-01-18T03:56:51.054708 | 2013-07-10T13:50:15 | 2013-07-10T13:50:15 | 11,319,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,932 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'AbstractStockAlert'
db.drop_table('partner_stockalert')
db.rename_table('partner_a... | [
"david.winterbottom@gmail.com"
] | david.winterbottom@gmail.com |
600d6005c001b142a95537db39711a46551329a9 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_stormshadow1896_test.py | 3f76200143e9cb10b787cfb85cc80e4209134e9f | [] | 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 | 1,174 | py | def check(num):
for i in range( 2, int(num**.5) + 2 ):
if num % i == 0:
return i
break
return -1
def create_num( num, base ):
i = 1
temp = 0
while num > 0:
temp = temp + (num % 10) * i
i = i*base
num = num / 10
return temp
def... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
81ca69ae2548272b52a98916125018505f90c491 | d755c825cacbb60e9a23234fbaaf93de48c6a058 | /others/permutations.py | a183388454c2dd1f1a4ad70a22c8ae4c383a2f96 | [] | no_license | Subhash3/CodeChef | d82e4df751e6dd1e07205871b9e2c0b1202d0506 | 5301b0e4555aac55a72f175dfba8f786b4ea7bbd | refs/heads/master | 2020-08-04T20:17:18.339602 | 2020-01-21T16:10:12 | 2020-01-21T16:10:12 | 212,267,130 | 2 | 3 | null | 2019-10-15T12:07:44 | 2019-10-02T06:07:41 | Python | UTF-8 | Python | false | false | 269 | py | #!/usr/bin/env python3
import math
for i in range(int(input())) :
n_k = input().split()
n = int(n_k[0])
k = int(n_k[1])
integers = input().split()
integers = list(map(int, integers))
r = integers.count(0)
a = math.factorial(r)
print(a)
| [
"subhashsarangi123@gmail.com"
] | subhashsarangi123@gmail.com |
c6888ea8295a4174a130e4b3ac4e16938370ffc9 | f4dd7ae9af786a396c42c3cc4a2126ab7d7e9cb8 | /tests/test_transformer/test_refcnt/test_refcnt_optimizer.py | 3fb998e7c54a00dad269e0741fcfd4b50370de05 | [
"Apache-2.0"
] | permissive | hpplinux/utensor_cgen | 1e9b85b8a457117763313b8924d9696e0b99a120 | d892b728d24321bc751552667b9722633d17c574 | refs/heads/master | 2020-04-19T16:13:31.891523 | 2019-02-19T02:27:44 | 2019-02-19T02:27:44 | 168,297,950 | 0 | 0 | null | 2019-01-30T07:20:53 | 2019-01-30T07:20:52 | null | UTF-8 | Python | false | false | 591 | py | from utensor_cgen.ir import uTensorGraph
from utensor_cgen.transformer import RefCntOptimizer
def test_refcnt_optimizer(refgraph_tuple):
(graph_def, refcnt_ans, output_nodes)= refgraph_tuple
ugraph = uTensorGraph(graph_def, output_nodes)
transformer = RefCntOptimizer()
ugraph = transformer.transform(u... | [
"qmalliao@gmail.com"
] | qmalliao@gmail.com |
7bc4aca3786342718ac19d3cf036d249e8b025a1 | e6d862a9df10dccfa88856cf16951de8e0eeff2b | /VMS/core/python-aiohttp/api_server/models/person.py | 47ed159f8bd6e87bf16eaad232b627a25976f722 | [] | no_license | AllocateSoftware/API-Stubs | c3de123626f831b2bd37aba25050c01746f5e560 | f19d153f8e9a37c7fb1474a63c92f67fc6c8bdf0 | refs/heads/master | 2022-06-01T07:26:53.264948 | 2020-01-09T13:44:41 | 2020-01-09T13:44:41 | 232,816,845 | 0 | 0 | null | 2022-05-20T21:23:09 | 2020-01-09T13:34:35 | C# | UTF-8 | Python | false | false | 5,846 | py | # coding: utf-8
from datetime import date, datetime
from typing import List, Dict, Type
from api_server.models.base_model_ import Model
from api_server.models.link import Link
from api_server import util
class Person(Model):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.... | [
"nigel.magnay@gmail.com"
] | nigel.magnay@gmail.com |
d302aaee20a1f34b79c85492e6c660c1b7a60229 | f443a7ab85f6eb99cc2466f147843faed0c2efd8 | /fivelayerssoftmax.py | 0488df1ccb7e1f73182d270249eb104271bca015 | [] | no_license | chaichai1997/deeplearning-tensorflow | 40d09a3c13518e0634ffebc1260add7b6fab80b9 | 1d75b759868ad0775ab8432d4828dc2448fcb882 | refs/heads/master | 2020-06-30T07:24:17.398378 | 2019-08-04T02:33:13 | 2019-08-04T02:33:13 | 200,765,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import math
logs_path = 'log_simple_stats_5_layers_sigmoid'
batch_size = 100
learning_rate = 0.5
training_epochs = 10
mnist = input_data.read_data_sets("/tmp/data", one_hot=True)
"""
构建网络架构,即构建图
"""
# x为28*28的图像... | [
"1224816105@qq.com"
] | 1224816105@qq.com |
b6c1a3f1e0ce006d9453defe233f1062e31be1a6 | 4b6ab4d9d8a3e35def45633149cab03a1430ecfb | /my_pytest/my_pytest/urls.py | ee611711be63735dd44762c4a628969b678fef31 | [
"MIT"
] | permissive | Anych/pytest_project | d8d7b2f45a05f1042db5195f5d01586d0866510f | 6ed90b3688212d0b5f035b0d9761f2cf5f99a82f | refs/heads/main | 2023-05-20T13:56:56.103966 | 2021-06-13T20:33:29 | 2021-06-13T20:33:29 | 375,334,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from django.contrib import admin
from django.urls import path, include
from companies.urls import companies_router
from companies.views import send_company_email
urlpatterns = [
path("admin/", admin.site.urls),
path("", include(companies_router.urls)),
path("send-email", send_company_email),
]
| [
"anuar123@mail.ru"
] | anuar123@mail.ru |
b6742b1202739ec60419f8f23681a7bb827e3aa0 | 8fbcb5eb7a527b700486ec161c09225dfdd30bbb | /Actividades/AC20/14632152_11633905.py | 47b2a52023588612eeeb6b43f2633acc9a7ee741 | [] | no_license | rjherrera/IIC2233 | 388eae95ed9a32e2de7239f4c99277b2c01f5223 | 6637ff92ee225092b7a598d765012153c39713ee | refs/heads/master | 2021-01-21T14:38:50.939337 | 2015-12-10T22:21:32 | 2015-12-10T22:21:32 | 95,313,145 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | from PyQt4 import QtGui, uic
from calc_financiero import calcular_jub
form = uic.loadUiType("hexa.ui")
class MainWindow(form[0], form[1]):
def __init__(self):
super().__init__()
self.setupUi(self)
pixmap = QtGui.QPixmap('logo_argentum.png')
self.label_15.setPixmap(pixmap)
... | [
"rjherrera@uc.cl"
] | rjherrera@uc.cl |
ee98f96da82d17f2de26d2ede7aa9b13a7b0fa32 | ef914133e0ade675ae201f7895c50d819180951b | /facebook_real_network_DB.py | 2945ea9efb10ccc0b748bfb8e060265939ebc6e9 | [] | no_license | vpahari/biconn | b094d6e7e6270f7601fde7de2f4d4528cd80aa20 | fd2259dfeb73a39bbdd4e616700f912cec8f17cf | refs/heads/master | 2021-06-01T18:54:09.477458 | 2020-09-22T14:49:48 | 2020-09-22T14:49:48 | 136,077,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,833 | py | import networkx as nx
import networkit as nk
import random
import sys
import math
from functools import reduce
import csv
from operator import itemgetter
import matplotlib.pyplot as plt
plt.switch_backend('agg')
import pickle
import igraph as ig
import numpy as np
import os
import itertools
import pandas as pd
def ge... | [
"vpahari@wesleyan.edu"
] | vpahari@wesleyan.edu |
5d90c7c8469e0b914663c45f3b039bfd1e2d49f4 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/3/ising2d_microstates_20200505224503.py | 7e59314942b34605b3e6386332a64b58176c61ce | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,266 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
from time import time
import datetime
import collections
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import pandas as pd
script_dir = os.path.dirname(os.path.abspath(__file__))
def save_csv(data, data_headers... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
65e0ac96fa03bc4c5d8b73113cbf7696a1137df2 | 958685165bfeb4122cc3473659a6d0c89c5cae95 | /crea8s_warehouse/stock.py | 784d425ff8259ded6339e857f54c984518363ce3 | [] | no_license | tringuyen17588/OpenERP-7.0 | 44efee7735af65d960c5adb4b03a1a329f5c4a57 | 2486261e4d351d4f444ec31e74c6b0e36ed2fb82 | refs/heads/master | 2021-01-10T02:45:24.320726 | 2016-02-19T06:05:21 | 2016-02-19T06:05:21 | 52,064,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,556 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"tri@crea8s.com"
] | tri@crea8s.com |
9132da0e6d4babe5a123bb4b0ccc7a8bb1cb97e0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/505.py | 1738dd39c2a21f537d1057b58316f37a1bfb3b13 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | #!/usr/bin/python3
from common import *
def testcase(x):
n, m = readintegers()
a = [0] * n
for i in range(n):
a[i] = readintegers()
row_maxes = [0] * n
col_maxes = [0] * m
for i in range(n):
for j in range(m):
if a[i][j] > row_maxes[i]:
row_maxes[i]... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6801cdfd546e4d6267fe06cd6e03cbe17529a639 | bde607d5c75179861cd1bae62fa40861b984ee4b | /datalive/datalive_cust_veh/migrations/0038_insurance_insurance_accident_phone.py | 17b494fe3e8628616fe39944ae984d06b99775da | [] | no_license | simba999/Geofence-project | 1658f1473b1b2a554607596872448928c1ccac77 | 7c01b55ff0ff3537fd63ea10182b12c5e1f107fa | refs/heads/master | 2021-03-31T00:51:57.811563 | 2018-03-08T19:22:12 | 2018-03-08T19:22:12 | 124,434,299 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-12-12 21:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datalive_cust_veh', '0037_insurance_address'),
]
operations = [
migrations.... | [
"oliverking8985@yahoo.com"
] | oliverking8985@yahoo.com |
718d72ed56398bf36ff79851a900d5fc1dc3117c | 1864af9eda58307024acbf7fe5d5f2f39f435e44 | /module_1/python/reverse_list.py | c8c318922bfd95015188f65af585098c10945cc5 | [] | no_license | vprusso/6-Weeks-to-Interview-Ready | c393bbfe071d97cba12f0f0668e53a25fb25986f | 8105e1b20bf450a03a9bb910f344fc140e5ba703 | refs/heads/master | 2021-08-11T04:48:34.252178 | 2020-08-09T22:54:55 | 2020-08-09T22:54:55 | 210,997,768 | 6 | 2 | null | 2019-09-26T04:12:44 | 2019-09-26T04:12:44 | null | UTF-8 | Python | false | false | 1,578 | py | """
Title: Reverse linked list.
Problem: Reverse a singly linked list.
Execution: python reverse_list.py
"""
import unittest
class ListNode:
"""Basic node class for linked list."""
def __init__(self, x):
self.val = x
self.next = None
def reverse_list_iterative(head: ListNode) -> ListNode:... | [
"vincentrusso1@gmail.com"
] | vincentrusso1@gmail.com |
831fa7afce258eaefe2d09b668885866549fd4c9 | 99aa9b2be5199bf1b2f670bc9bb1a5bc7cec1c89 | /BFS_topological/L207_Course_schedule.py | 5fdbab7f22cbf7d4e144ae1cf2db55a5f348e331 | [] | no_license | SimonFans/LeetCode | 5196e85dec886b18cb2350419a4a2ae3c751966c | 0a34a19bb0979d58b511822782098f62cd86b25e | refs/heads/master | 2023-02-08T00:49:30.916655 | 2023-01-31T06:32:32 | 2023-01-31T06:32:32 | 145,938,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | There are a total of n courses you have to take, labeled from 0 to n-1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
Given the total number of courses and a list of prerequisite pairs, is it possible for you to finish all course... | [
"noreply@github.com"
] | SimonFans.noreply@github.com |
44deee25bd721ba3b1e5f31587692afa7f3bce16 | 3c73609eea12d6784ffc0be5acc6994cda19dc57 | /Codeforces Difficulty 500-700/749ABachgoldProb.py | 4cefb4124f4f1af645594d719bbdb2a464837732 | [] | no_license | TanveshT/Competitive-Programming | 0cf7a8ebc20a74cb6fd8505e67fbfec5bac6b8c2 | 47acc0a2af2711c86bb0da06e961677a8ec1e7d3 | refs/heads/master | 2022-12-19T01:44:46.033633 | 2020-09-25T06:57:23 | 2020-09-25T06:57:23 | 258,095,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | n = int(input())
result = ''
if n%2 == 0:
result += ' '.join(['2'] * (n//2))
else:
result += ' '.join(['2'] * ((n-2)//2))
result += ' 3'
print(n//2)
print(result) | [
"tanveshtakawale26@gmail.com"
] | tanveshtakawale26@gmail.com |
7c68a69b658aa325154cbd035c1f844f20806ee6 | 48a7b266737b62da330170ca4fe4ac4bf1d8b663 | /molsysmt/form/pytraj_Trajectory/to_molsysmt_Topology.py | 296fd312de31fa18840f59e7be11dc3efb032788 | [
"MIT"
] | permissive | uibcdf/MolSysMT | ddab5a89b8ec2377f383884c5169d147cab01322 | c3d713ba63db24eb8a2426115cf8d9cb3665d225 | refs/heads/main | 2023-08-08T15:04:16.217967 | 2023-08-04T05:49:56 | 2023-08-04T05:49:56 | 137,937,243 | 15 | 3 | MIT | 2023-06-04T20:27:06 | 2018-06-19T19:38:44 | Python | UTF-8 | Python | false | false | 379 | py | from molsysmt._private.digestion import digest
@digest(form='pytraj.Trajectory')
def to_molsysmt_Topology(item, atom_indices='all'):
from . import to_pytraj_Topology
from ..pytraj_Topology import to_molsysmt_Topology
tmp_item = to_pytraj_Topology(item)
tmp_item = pytraj_Topology_to_molsysmt_Topology(... | [
"prada.gracia@gmail.com"
] | prada.gracia@gmail.com |
8c7a3e6b0fb2244bf9a051a5e0fd52af9b05a262 | 3449e5511dc8da19fc841af767dbe8d216e26ffb | /mmServer/api/views/transaction.py | d862b5b36594d84932e91b3afcccfc5f6ca247cd | [] | no_license | erikwestra/mm-server | 8ba2af0ee7acd372949589b6f8d429099a38ea58 | bead1ad439541211e33fdc60264a869f18a99ae9 | refs/heads/master | 2021-01-10T21:14:23.636707 | 2015-05-27T21:22:54 | 2015-05-27T21:22:54 | 28,573,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,226 | py | """ mmServer.api.views.transaction
This module implements the "transaction endpoint for the mmServer.api
application.
"""
import logging
from django.http import *
from django.views.decorators.csrf import csrf_exempt
from django.db.models import Q
from django.conf ... | [
"ewestra@gmail.com"
] | ewestra@gmail.com |
26f76611c215781c36e6cc4a244cdd1c6af2e16b | a8e2c66b3ebadfc17ee9aee197b3f466534cee16 | /ytn11/tp/tp/middlewares.py | 1fc214e18a4f61ea17d33486d46c0fa18bf80064 | [] | no_license | yintiannong/98kar | 49b6db186a4543a7c50671df990bb491846c1a98 | 3863529f57e9d2d9bc1bdf8188916e25ad289db0 | refs/heads/master | 2022-01-07T05:49:31.566453 | 2019-05-22T07:04:45 | 2019-05-22T07:04:45 | 187,794,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class TpSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy acts ... | [
"1532295578@qq.com"
] | 1532295578@qq.com |
ad3bccd5f5c0938d4ef0c702293960cec7e513ff | 45bd50e1e63346f77a46c2a75d9bda8c19fe97de | /Basic Concept Zoning World Prelim 2 2019/Test Scripts/Zoning/ZoningShow.py | fad8d27b7d260c9f54284db7440e4057d7a3785f | [] | no_license | Hackin7/Space-Through-CoSpace | 40a5d8fad18c392dc3f2ae6f3f83f8ae290166a8 | d93541e8f0cd8b331ca8a179617ca4204ab43e3b | refs/heads/master | 2022-11-13T01:35:49.052934 | 2020-06-29T08:54:36 | 2020-06-29T08:54:36 | 222,223,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | from tkinter import *
from tkinter.filedialog import askopenfilename
from PIL import Image
from PIL import ImageTk
from PIL import ImageGrab
from ctypes import windll #Makes app DPI Aware
user32 = windll.user32
user32.SetProcessDPIAware()
###Drawing Path
text_ids=[]
import sys,os
from sys import stdin, stdout
sys.pat... | [
"zunmun@gmail.com"
] | zunmun@gmail.com |
257d50fce51c9ec884492fd4f1d6d0b538eceef6 | 99078b5d47a6b9bb476bdf27cd466a4fb1e78538 | /src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py | af4017fec40e0af9590fe3545f07422bc14fe51f | [
"MIT"
] | permissive | enterstudio/azure-cli | 949c54464fbce7ff596665c6bcc3d4aeefe54b53 | b0504c3b634e17f1afc944a9572864a40da6bc18 | refs/heads/master | 2023-07-14T11:09:45.925689 | 2017-02-03T18:26:09 | 2017-02-03T18:26:09 | 81,024,949 | 0 | 0 | NOASSERTION | 2023-07-02T22:24:59 | 2017-02-05T21:53:49 | Python | UTF-8 | Python | false | false | 17,448 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | enterstudio.noreply@github.com |
cb7e7df7d3e7efa91123a54b0420d67565acae87 | 22d84f804271a629a395cec785b7eb4b47f72f36 | /eelbrain/data/tests/test_data.py | 298853b71bf4ac8d11837e8d1fed7bf42b3e0240 | [] | no_license | imclab/Eelbrain | bb787294218a2ba00f90f447af0e629abadeac88 | e52eb3a5bd8bf8fc9aece2fb4413e0286e080c46 | refs/heads/master | 2021-01-21T23:34:15.673295 | 2014-05-02T19:17:04 | 2014-05-02T19:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,466 | py | '''
Created on Dec 2, 2012
@author: christian
'''
import os
import cPickle as pickle
import shutil
import tempfile
import mne
from nose.tools import (assert_equal, assert_is_instance, assert_true, eq_,
ok_, assert_raises)
import numpy as np
from numpy.testing import assert_array_equal, assert_... | [
"christianmbrodbeck@gmail.com"
] | christianmbrodbeck@gmail.com |
188553b42af704e15e28d627a6b689ddccdb9a8b | b391498124fdcaef989bf3ebafffb0df43e3e07f | /pygccxml-0.8.2/unittests/decl_string_tester.py | 2e539a882efae0042f2ee800be1a0a8f58ad8294 | [
"BSL-1.0"
] | permissive | glehmann/WrapITK-unstable | 9a0dd9d387ecd59c9439465dcc32cca552e14576 | 402fc668f1f3c3dd57d0751a61efa3b1625d238b | refs/heads/master | 2021-01-10T22:02:04.715926 | 2008-05-25T16:53:07 | 2008-05-25T16:53:07 | 3,272,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | # Copyright 2004 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import unittest
import autoconfig
import parser_test_case
import pygccxml
from pygccxml.utils import *
from pygccxml.par... | [
"gaetan.lehmann@jouy.inra.fr"
] | gaetan.lehmann@jouy.inra.fr |
761792f87be2af9725838fd2e45005f8cbb7e3b7 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/mixed_precision/experimental/__init__.py | 557964bda8534e5d71a39df895b2a0954a2758d7 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a99d880d11e16bc170b4e38a2ed534d30a03cdcd4c9dc919e44db72fb592db6d
size 562
| [
"github@cuba12345"
] | github@cuba12345 |
2b6a3dd2306c6267bd3b4723905ad8e96699bc58 | 6a8d047b4502507c67120a0a32640c6a3e60d8a5 | /apps/profiles/migrations/0015_auto_20171128_2324.py | 318ad8f57eac31c224e44335024c2a8c50376817 | [] | no_license | dwebdevcore/BoardDirector_dashboard | 320f110d7581c065920b7607ef06a457851c4bb4 | 7cd2b2abe1c660531a805d84930c8a6183b863b6 | refs/heads/master | 2020-05-26T05:32:37.501642 | 2019-05-22T22:33:25 | 2019-05-22T22:33:25 | 188,122,429 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-11-28 20:24
from __future__ import unicode_literals
import common.utils
import django.core.files.storage
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0014_auto_20170915_0653'),
... | [
"dwebdevcore@gmail.com"
] | dwebdevcore@gmail.com |
eb7743840173ebacd9715a3594e8cbe849d2e20c | eb7047d5a8c00d4370a55c2806a2f051287b452d | /tests/pytests/problems/TestSingleObserver.py | b8d8b92a1d2272e25463babe394d08632e7fed5a | [
"MIT"
] | permissive | mousumiroy-unm/pylith | 8361a1c0fbcde99657fd3c4e88678a8b5fc8398b | 9a7b6b4ee8e1b89bc441bcedc5ed28a3318e2468 | refs/heads/main | 2023-05-27T18:40:57.145323 | 2021-06-09T19:32:19 | 2021-06-09T19:32:19 | 373,931,160 | 0 | 0 | MIT | 2021-06-04T18:40:09 | 2021-06-04T18:40:09 | null | UTF-8 | Python | false | false | 1,384 | py | #!/usr/bin/env nemesis
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://g... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
794a613a9d0f5d34d09ddbb7cad78d49e670c820 | 4e45d134e09af47025deae667805f0eb79d4f516 | /neuroConstruct/pythonScripts/RunTestsL5PC.py | f275b53a4451da444342a7f07e133d5e957a5ed2 | [
"MIT"
] | permissive | OpenSourceBrain/L5bPyrCellHayEtAl2011 | 46c5721e21eed58cd23e96ced0cdafae58315473 | 75da6c136254b50b96dd9156b27244c083313156 | refs/heads/master | 2023-08-16T10:36:36.618573 | 2023-03-30T12:31:13 | 2023-03-30T12:31:13 | 8,250,486 | 5 | 1 | NOASSERTION | 2023-09-06T12:42:46 | 2013-02-17T12:48:49 | AGS Script | UTF-8 | Python | false | false | 2,678 | py | #
#
# File to test current configuration of project
#
# Author: Padraig Gleeson
#
# This file has been developed as part of the neuroConstruct project
# This work has been funded by the Wellcome Trust
#
#
import sys
import os
try:
from java.io import File
except ImportError:
print "No... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
e4e2d58658dd6c7e4adf95dd2a78fe739427c58f | 63f917864d85f0f9e810cbb4e6163f48611a8b3d | /home_content/admin.py | dcbef84ea0014ed258e07963b93519ce4277c9fd | [] | no_license | davidraywilson/suit_materialized | 37aa521d52f8dd746b55b121262501147dffb95c | 035405defedd5ee8257b42aac82749794080af4f | refs/heads/master | 2021-01-18T14:05:01.797452 | 2015-06-03T02:03:55 | 2015-06-03T02:03:55 | 32,526,877 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | from django.contrib import admin
from home_content.models import HomeSection, Billboard, MiniBillboard
class SectionAdmin(admin.ModelAdmin):
model = HomeSection
list_display = ('name', 'order', 'is_published')
list_editable = ('order', 'is_published')
fieldsets = (
(None, {
'field... | [
"davidraywilson@live.com"
] | davidraywilson@live.com |
a9631a6411f099359301c0f1709dc4854de83442 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02792/s333976944.py | 822b45df844116947cf79fed9d47791edd103ea9 | [] | 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 | 352 | py | def solve():
N = int(input())
cnt = [[0]*10 for i in range(10)]
for i in range(1, N+1):
target_str = str(i)
cnt[int(target_str[0])][int(target_str[-1])] += 1
ans = 0
for i in range(1, 10):
for j in range(1, 10):
ans += cnt[i][j] * cnt[j][i]
print(ans)
if __n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9471d90433996588d7b327c4ec36c851b54ea325 | 1699300e1225f0994fbfd5e13a7eb4436a5df14d | /05_Mini_Scans_Optimised/04_SbS_Tomo_Lattice_H_07/Make_SLURM_submission_script.py | abcabc237978907bae9272a61fb53666e9224f34 | [
"MIT"
] | permissive | HaroonRafique/PyORBIT_MD4224 | 26307a60ed79f3e170fbd655eb8cbe8cc9a0dfa9 | 6f68a80b2f8bf1cbeb9e2fc840925efe8a8b5672 | refs/heads/master | 2023-04-25T13:27:49.756836 | 2020-08-25T10:26:07 | 2020-08-25T10:26:07 | 215,249,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,315 | py | #!/usr/bin/env python
# Python script to create a SLURM submission script for PyORBIT
# 21 March 2019 Haroon Rafique CERN BE-ABP-HSI
import os
#-----------------------------------------------------------------------
# SETTINGS
#-----------------------------------------------------------------------
script_name =... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
bfe9031d3c5da7284c29c3344d18127362dadb2e | 9c01350ff70d17504990d1f0077df50d6a47b0c6 | /molgym/agents/dqn_variable_actions.py | 63b4dc25c134101aa3a3b9d34ea48ae47b390cce | [] | no_license | WardLT/molecular-dqn | 0a5d1018bbc577ebb26ff58ade0ad6e0c2e1014a | 14dc46c1539088c591dde0c60947a9484353e9a9 | refs/heads/master | 2021-02-13T09:20:34.811407 | 2020-03-03T16:21:22 | 2020-03-03T16:21:22 | 244,683,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,462 | py | import random
import logging
import numpy as np
from collections import deque
from keras.models import Model
from keras.engine.network import Network
from keras.layers import Dense, Input, Lambda, Subtract, Concatenate
from keras import backend as K
from gym_exalearn.envs.exalearn_electrolyte_design import Molecule
l... | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
60df2de014de6a9da38b852a02395c7365e9f2c1 | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network509_1.py | 459fb9592378991924c9f90b3e693788fa829b6c | [] | no_license | aberdeendinius/n-heptane | 1510e6704d87283043357aec36317fdb4a2a0c34 | 1806622607f74495477ef3fd772908d94cff04d9 | refs/heads/master | 2020-05-26T02:06:49.084015 | 2019-07-01T15:12:44 | 2019-07-01T15:12:44 | 188,069,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97,706 | py | species(
label = '[CH2][C](OO)OC[CH]CC(1239)',
structure = SMILES('[CH2][C](OO)OC[CH]CC'),
E0 = (169.452,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([360,370,350,3025,407.5,1350,352.5,2750,2783.33,2816.67,2850,1425,1450,1225,1275,1270,1340,700,800,300,400,3000,3100,440,815,1455,1000,275... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
0296081c7b5ffd91876af93bf00f5ccdda287dd6 | 292cec77b5003a2f80360d0aee77556d12d990f7 | /src/bentoml_cli/worker/grpc_api_server.py | 87a8e336eb31fd6ceeb1eba0e4e6b26cc1e24fd8 | [
"Apache-2.0"
] | permissive | yubozhao/BentoML | 194a6ec804cc1c6dbe7930c49948b6707cbc3c5f | d4bb5cbb90f9a8ad162a417103433b9c33b39c84 | refs/heads/master | 2022-12-17T00:18:55.555897 | 2022-12-06T00:11:39 | 2022-12-06T00:11:39 | 178,978,385 | 3 | 0 | Apache-2.0 | 2020-12-01T18:17:15 | 2019-04-02T01:53:53 | Python | UTF-8 | Python | false | false | 4,379 | py | from __future__ import annotations
import json
import typing as t
import click
@click.command()
@click.argument("bento_identifier", type=click.STRING, required=False, default=".")
@click.option("--host", type=click.STRING, required=False, default=None)
@click.option("--port", type=click.INT, required=False, default... | [
"noreply@github.com"
] | yubozhao.noreply@github.com |
77a1e59545434c658624ddc110f40d384f6e9774 | b31e7898aa5131125f243eaff973049b17e08512 | /.venv/bin/coverage | 85f14e7690c8b0e6cbea6f2ec81bf93f8cf98538 | [] | no_license | ramsred/MyProjects | f2978eeda3d73421daf0da9f2d012caef6c3ccda | a7f90ef1ecfbc7517be61e71286bd14405985de5 | refs/heads/master | 2023-07-09T03:19:17.683705 | 2023-07-02T19:30:19 | 2023-07-02T19:30:19 | 71,980,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/workspaces/MyProjects/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"venkataramireddy534@gmail.com"
] | venkataramireddy534@gmail.com | |
7cb73ceefb5f84a42e46e124b96ab48221531a18 | 368ef102345a6575d97727b314addcd65f150e19 | /Modules/Crawler/Test/test_urlencode.py | 1551c2f5ebf5acfefcf1449c5331ebfdb14c4aa6 | [] | no_license | newstar123/Pythonlab_DEV | 844b43b6a8aef977515e367bd367e658e37cfa19 | cdb2f0c2369291d6bccd597c33354830e5606eab | refs/heads/master | 2020-04-07T18:08:06.631487 | 2018-11-21T19:47:54 | 2018-11-21T19:47:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
#---------------------------------------
# 程序:test_urlencode.py
# 版本:0.1
# 作者:ctang
# 日期:2016-02-19
# 语言:Python 2.7.10
# 说明:测试urlencode方法
#---------------------------------------
import urllib
import urllib2
data = {}
data['word'] = 'python'
url_value = urllib.urlencode(data)
url... | [
"devilcuruso@gmail.com"
] | devilcuruso@gmail.com |
fd829064e4909b62f86477e660a7cd3ab16a8829 | 20c9f3a089286a442cc15f8a31bb34e110e68d8b | /tests/python/setitem.py | 3c7a408d59d93ef0b1725084817a4cd7ce5274e2 | [
"MIT"
] | permissive | denim2x/py2nim | 00ca515daef897d380dbf4915583a470ffe4c94e | 56fc2699d31241c60bed726f59efea4bf46be238 | refs/heads/master | 2021-09-28T06:37:42.786868 | 2018-11-15T08:12:30 | 2018-11-15T08:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | class A:
def __setitem__(self, e, f):
print(e + f)
a = A()
a[2] = 8
| [
"alehander42@gmail.com"
] | alehander42@gmail.com |
37fd9413602461c02c3a941cb3de80c99a03bdcd | 5c238e795dd280f3ccd3d772d75ce8664c9e2887 | /ch09/improved_spark_mllib_model.py | 35b6016e18ca191a147eb20e1123bf01d321acef | [
"MIT"
] | permissive | wikibook/agile-data-science | d149878fff6da6cd8e71c579e0817af8ff4ff05b | 7769fc2d6c810e9f1a64e45d3684e9260d99d983 | refs/heads/master | 2020-03-11T06:07:21.118819 | 2018-04-17T00:25:27 | 2018-04-17T00:25:27 | 129,822,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,615 | py | # !/usr/bin/env python
import sys, os, re
import json
import datetime, iso8601
from tabulate import tabulate
# airflow에서 날짜와 기본 경로를 main()으로 전달
def main(base_path):
APP_NAME = "train_spark_mllib_model.py"
# SparkSession이 없으면 환경 생성
try:
sc and spark
except NameError as e:
import findspark
findsp... | [
"dylee@wikibook.co.kr"
] | dylee@wikibook.co.kr |
8cbb4e9c73c074d346ac82b353623f3c95b574d0 | 37c6021f06d5d5aca2693b12449aab483d123669 | /backend/task_profile/migrations/0001_initial.py | 37879e374141ed157d4e079eb19ba798a8d6f010 | [] | no_license | crowdbotics-apps/den-sc-ity-21727 | 8165971a3611a143b2ba2a5bf865375a10cb7744 | 13790db00a09483f4a23df177c544b6d07acd2c3 | refs/heads/master | 2022-12-31T04:32:18.963986 | 2020-10-19T21:46:40 | 2020-10-19T21:46:40 | 305,520,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | # Generated by Django 2.2.16 on 2020-10-19 21:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
410d4bb5e5e781c634ccb36147315481554ca815 | 542d6c7a1303916a60bf0d7d24c8499a02f961c1 | /lib/python3.7/site-packages/azure/mgmt/recoveryservicesbackup/models/mab_file_folder_protected_item.py | f04f303870c1f5e21e635c8a9ec6e22c29c9d67c | [] | no_license | jim-minter/azhack | e9918a916d2b71f3adcc4f1ea208312ad9c59210 | 0e8631fd067014a9f3000101a886e7a9a94acc95 | refs/heads/master | 2020-05-07T19:50:43.980332 | 2019-04-11T15:37:43 | 2019-04-11T22:20:29 | 180,830,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,151 | 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.
# C... | [
"jminter@redhat.com"
] | jminter@redhat.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.