blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f5371f76a88a1c3070db0af82abb2248dbd8564 | 456703d469684b99d849bb386707359729af4e1e | /data.py | 50649d1c690eab4c7947b38c8524416fbd32fd2e | [] | no_license | blacklemons/userlist_mongo | 9c05949f4d2a8c4232c1126020b66ad892857bc6 | b341628cc5da8248c39e46f5a0e974807d9986d1 | refs/heads/main | 2023-05-05T11:49:13.272471 | 2021-06-03T06:56:56 | 2021-06-03T06:56:56 | 372,990,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | def Articles(title,description,author,edit):
articles = {
'title' : title,
'description' : description,
'author' : author,
'edit' : edit,
}
return articles
def Users(name, email, username, password):
users = {
'name' : name,
'email' : email,
'username' : user... | [
"you@example.com"
] | you@example.com |
67d9459b98c02585b18afecaf8c3df0f88840736 | 95e9ec4b3b0d86063da53a0e62e138cf794cce3a | /python/20190430/模块/demo09.py | b8805798af569441c98514893091d564e1240813 | [] | no_license | wjl626nice/1902 | c3d350d91925a01628c9402cbceb32ebf812e43c | 5a1a6dd59cdd903563389fa7c73a283e8657d731 | refs/heads/master | 2023-01-05T23:51:47.667675 | 2019-08-19T06:42:09 | 2019-08-19T06:42:09 | 180,686,044 | 4 | 1 | null | 2023-01-04T07:35:24 | 2019-04-11T00:46:43 | Python | UTF-8 | Python | false | false | 369 | py | # pillow
from PIL import Image
# 打开一个jpg图像文件,注意是当前路径:
im = Image.open('1.png')
# 获得图像尺寸:
w, h = im.size
print('Original image size: %sx%s' % (w, h))
# 缩放到50%:
im.thumbnail((w // 2, h // 2))
print('Resize image to: %sx%s' % (w // 2, h // 2))
# 把缩放后的图像用jpeg格式保存:
im.save('thumbnail.png', 'png')
| [
"18537160262@qq.com"
] | 18537160262@qq.com |
a3cddb14f4568125e0ea0d932da937365312500e | ae7cb8543a98b7d65295a422c7971e7a37f921cd | /minerals/models.py | 02bcb451cf3a5a60d68581cbcd838dfa627fcbad | [] | no_license | frankRose1/mineral-catalog | a74386278073d1b9e92fe44e1cc348a1b498380e | 88f91a55105532fe197c84d050a5d5bd67167a9d | refs/heads/master | 2020-04-16T12:49:23.715372 | 2019-03-14T00:23:27 | 2019-03-14T00:23:27 | 165,597,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | from django.db import models
# Create your models here.
class Mineral(models.Model):
"""
Not all entries will have every field as shown in the json file in "mineral_data/mineral.json"
"""
name = models.CharField(max_length=255, blank=True, default='')
image_filename = models.CharField(max_len... | [
"frank.rosendorf1@gmail.com"
] | frank.rosendorf1@gmail.com |
94099f7539dd29af5d9baf1b7e65aae919dc5eb1 | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py | 6c03a7fcfbbe3990bd37e435d7afe3c07aa49f1e | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 4,699 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools ... | [
"noreply@github.com"
] | FallenRiteMonk.noreply@github.com |
533a8674b5a0ea2d97c2032ad2269f7fe0835047 | 818173671edf15d7c6d775ed003bcd35608233f9 | /demos/go/wscript | 13ea4561dd2b6d1e18137a02eb74523dc6ffdb69 | [] | no_license | zsx/waf | a1e87e079e22443ae3ed98e08cefc705b5f73906 | 66d1c6ede4ceda66a98dbbf9dd473f1d5c5752ba | refs/heads/master | 2021-01-13T12:56:12.379186 | 2010-07-12T17:27:13 | 2010-07-12T17:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | #!/usr/bin/env python
# encoding: utf-8
# Tom Wambold tom5760 gmail
# Thomas Nagy, 2010 (ita)
"""
if libgmp is present, try building with 'waf --exe'
"""
top = '.'
out = 'build'
def options(opt):
opt.add_option('--exe', action='store_true', default=False, help='Execute the program after it is compiled')
def config... | [
"tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85"
] | tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85 | |
9700f7b32038e32409736e25ab200fda2427f5dd | 46dd1ad6fe93777a4dce84166b64cb9adb679e62 | /test/functional/interface_bitcoin_cli.py | be8c48fd1a8c0abb45f0f9939a095625cc50b098 | [
"MIT"
] | permissive | aleomartinez/EducaCoin | 14266500dc3c5aabfe8bebf17c8903aecea0af8c | 2282d6affdd2192a79efdce579ddd0d8576d950d | refs/heads/master | 2020-03-31T01:28:49.612215 | 2018-10-05T14:43:36 | 2018-10-05T14:43:36 | 151,783,304 | 0 | 0 | MIT | 2018-10-05T22:11:11 | 2018-10-05T22:11:11 | null | UTF-8 | Python | false | false | 3,669 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test educacoin-cli"""
from test_framework.test_framework import BitcoinTestFramework
from test_framework.uti... | [
"you@example.com"
] | you@example.com |
82cbf15cb149b4e72ab5811f65c9fee2d676ee8d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_noisy959.py | a9b2211c27ba41c3a2a043b44c15010fd25e7f71 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=23
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
624f9ac70390eb2b0177c09ce025a3b00a2bd5ec | 87a66fbed380353955cc6160c8fffe56dee785be | /bert2bert.py | 3ff4c7f15e16f72c1b0e7a7ec1fec8f221d33179 | [
"Apache-2.0"
] | permissive | JngHyun/2021-BOAZ-bert2bert | ca84e8f4ad444f27a31ac8f74469826adefe3a19 | 63e95cc87b231ebf344950df80a43abc1139cb7d | refs/heads/main | 2023-03-27T01:13:35.747955 | 2021-03-25T07:17:39 | 2021-03-25T07:17:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | from typing import List
from transformers import (
EncoderDecoderModel,
BertConfig,
EncoderDecoderConfig,
BertModel, BertTokenizer,
)
from transformers.modeling_bart import shift_tokens_right
from kobert_transformers import get_tokenizer
from lightning_base import LightningBase
import torch
class Bert... | [
"pjh09890989@gmail.com"
] | pjh09890989@gmail.com |
63bb8cfeb317f62af40c54d6d6ba604724dc264e | 691d3f3e04d354e11772335064f33245e1ed8c28 | /lib/galaxy/datatypes/indexers/coverage.py | 2bfec91c25fb05f513831206a3471b71db5749ea | [
"CC-BY-2.5",
"MIT"
] | permissive | dbcls/dbcls-galaxy | 934a27cc13663549d5208158fc0b2821609399a8 | 6142165ef27f6a02aee42f26e0b94fed67ecc896 | refs/heads/master | 2016-09-05T22:53:27.553419 | 2009-09-09T06:35:28 | 2009-09-09T06:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | #!/usr/bin/env python
"""
Read a chromosome of coverage data, and write it as a npy array, as
well as averages over regions of progessively larger size in powers of 10
"""
from __future__ import division
import sys
from galaxy import eggs
import pkg_resources; pkg_resources.require( "bx-python" )
import bx.wiggle
f... | [
"h-morita@esm.co.jp"
] | h-morita@esm.co.jp |
cad859d418ce2e7f4caf5b06ea68e3865b327913 | 199145122c35976fbfc22f2d709458bf67772f95 | /apps/hosts/urls.py | 8d52a9078d69ec7982ad7b9679e2e9841d265abf | [
"Apache-2.0"
] | permissive | yhgnice/toolsvb | 6109adbce89dd645da342d619acbcaca31b11efa | 35f9d27ee2439d134cab160a7cf930ea13a31d26 | refs/heads/master | 2020-05-24T05:15:40.112999 | 2017-03-14T06:32:23 | 2017-03-14T06:32:23 | 84,824,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by Nice... on '2017/3/9 20:32'
from django.conf.urls import url
from .views import RebootServices
urlpatterns = [
# 主机工具
url(r'^tools/$', RebootServices.as_view(), name="tools"),
]
| [
"123"
] | 123 |
607c473b42712149c56ebae6342712cfda2c7ff2 | a289ad8df7840045a659db4f0f936b09494243b3 | /gruvi/error.py | d0483517992c9c2b8de1ea8e0e33f2443658ca33 | [
"MIT"
] | permissive | tijko/gruvi | a29414bc757f9b19cfc457df36e270c5fefef183 | 558faa181390dfac83cd42fdcafb1850008e4ac5 | refs/heads/master | 2020-12-11T05:34:23.897520 | 2014-01-04T06:59:29 | 2014-01-04T06:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # This file is part of Gruvi. Gruvi is free software available under the
# terms of the MIT license. See the file "LICENSE" that was provided
# together with this source file for the licensing terms.
#
# Copyright (c) 2012-2013 the Gruvi authors. See the file "AUTHORS" for a
# complete list.
from __future__ import abs... | [
"geertj@gmail.com"
] | geertj@gmail.com |
4f0ed701e5f9fc81b15e8550d01102e7412e4ae4 | 3665e5e6946fd825bb03b3bcb79be96262ab6d68 | /jc/parsers/df.py | 817f0a21bbaf233bfe3351eeefdabda7f96d9361 | [
"MIT",
"BSD-3-Clause"
] | permissive | philippeitis/jc | a28b84cff7fb2852a374a7f0f41151b103288f26 | d96b3a65a98bc135d21d4feafc0a43317b5a11fa | refs/heads/master | 2021-02-16T05:03:03.022601 | 2020-03-04T16:30:52 | 2020-03-04T16:30:52 | 244,969,097 | 0 | 0 | MIT | 2020-03-08T21:10:36 | 2020-03-04T18:01:38 | null | UTF-8 | Python | false | false | 5,176 | py | """jc - JSON CLI output utility df Parser
Usage:
specify --df as the first argument if the piped input is coming from df
Compatibility:
'linux', 'darwin'
Examples:
$ df | jc --df -p
[
{
"filesystem": "devtmpfs",
"1k_blocks": 1918820,
"used": 0,
"available": 19... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
75b7d13d54b027208ae7bf83b28a23721fbfcc21 | d44c989d1082ec91ae420569f79e39105ec9adf0 | /Convert Binary Number in a Linked List to Integer.py | d8732b80748c73d1c4539378955d8afbfe29849a | [] | no_license | hsinhuibiga/Nov | c5a79e265a6afcfd03f04e23914d3924129c6389 | 15b2f37f96ded183ab3507a95985900a9d5d3ddc | refs/heads/main | 2023-01-14T13:11:02.568683 | 2020-11-22T13:40:36 | 2020-11-22T13:40:36 | 309,392,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #Convert Binary Number in a Linked List to Integer
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def getDecimalValue(self, head):
"""
:type head: ListNode
... | [
"noreply@github.com"
] | hsinhuibiga.noreply@github.com |
36c519d580be12825f3bf43d17406404d77ab275 | aba2dd3ed154e1307e3ffb360d22c400bc8e17ab | /bib2json.py | 2688d16b53929bd3986a2b8509fc9d5acfecb38d | [
"MIT"
] | permissive | SujiKim6/rebiber | 3938406df01e5aa61a9d9cf24bb74bd4fed82787 | 6617792dbfdb860d96f15027210381215c63685d | refs/heads/main | 2023-02-21T08:22:52.610870 | 2021-01-26T09:41:06 | 2021-01-26T09:57:02 | 332,980,291 | 0 | 0 | MIT | 2021-01-26T05:19:34 | 2021-01-26T05:19:33 | null | UTF-8 | Python | false | false | 1,802 | py | import json
import re
import sys
import bibtexparser
import argparse
from tqdm import tqdm
def normalize_title(title_str):
title_str = re.sub(r'[^a-zA-Z]',r'', title_str)
return title_str.lower().replace(" ", "").strip()
def load_bib_file(bibpath="acl.bib"):
all_bib_entries = []
with o... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
e0e468f23e653c4f37ed38f070b78741ba8bdf07 | 5ca4a0d91f5bd119e80478b5bd3d43ed30133a42 | /film20/config/urls/pl.py | 65a13447c224a832a15c19ca2748822deec504d0 | [] | no_license | thuvh/filmmaster | 1fc81377feef5a9e13f792b329ef90f840404ec5 | dd6a2ee5a4951b2397170d5086c000169bf91350 | refs/heads/master | 2021-01-17T16:10:54.682908 | 2012-04-29T18:19:52 | 2012-04-29T18:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | #-------------------------------------------------------------------------------
# Filmaster - a social web network and recommendation engine
# Copyright (c) 2009 Filmaster (Borys Musielak, Adam Zielinski).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero ... | [
"email@ibrahimcesar.com"
] | email@ibrahimcesar.com |
fc476732d5002a650fe826d5c6d7ec00bb625f4d | 76de4fc4f00a04c8c9acc1e9e4a5fae12cf0c08a | /trunk/pyformex/examples/Isopar.py | 09660af39e5a8ca12a1bdf071f0b7b4a4e9a1b05 | [] | no_license | BackupTheBerlios/pyformex-svn | ec2361b1b9967918be65e892217a691a6f8b145d | f5404809095711334bbb938d9d119a69ad8fc260 | refs/heads/master | 2020-12-24T13:20:47.422165 | 2011-11-15T11:52:23 | 2011-11-15T11:52:23 | 40,749,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | #!/usr/bin/env pyformex --gui
# $Id$
##
## This file is part of pyFormex 0.8.5 Sun Nov 6 17:27:05 CET 2011
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: https://savannah.... | [
"bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35"
] | bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35 |
5d7c6cb5d86f6dfeaaa32c199c33c6b3c2bb6f23 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_7/102.py | 998a2e0917fabf1d52113661b10a59105356d584 | [] | 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 | 862 | py | import sys
def calc_trees():
"""Read data from stdin and calculate all trees.
Returns a list of coordinates (tuples of ints).
"""
n,A,B,C,D,x,y,M = (int(e) for e in raw_input().split())
trees = [(x, y)]
for i in xrange(n - 1):
x = (A * x + B) % M
y = (C * y + D) % M
tr... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
099e1e04e14bdbed2f9c2d4cd79c06a2e5cd9ca8 | 33e2c0e11a6fbcc687750dbdcd2e063acf5b931b | /setup.py | 17a2541858522e1e1f5d88fa0f7dd8566e9ffe9f | [
"MIT"
] | permissive | uk-gov-mirror/nhsengland.ckanext-introjs | f1cb640819f09cdc6d4ecd82818a1e8b4b2653be | 052d20a4e93cf824a1b28e7ea2e04c385615b40d | refs/heads/master | 2021-05-28T17:21:31.739884 | 2015-02-24T14:44:56 | 2015-02-24T14:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(
name='ckanext-introjs',
version=version,
description="Adds intro.js to CKAN so users can follow a guided tour of the UI",
long_description='''
''',
classifiers=[], # Get strings from http://pypi.python.org/pypi?%... | [
"ntoll@ntoll.org"
] | ntoll@ntoll.org |
84f14ff4534964c26f65d38a7312090e521edd05 | 818fbf7e5ad465d81b5841c3b1f3222dec3877e3 | /spotify/urls.py | 73fff59963e36a7d29247497d51fb93a62580135 | [] | no_license | anonshubh/music-controller | 29d2c0be0265588e583ec7cde9578bc59e214d4a | c71329c691f43dff994ef3f69aa78dc438db047b | refs/heads/main | 2023-02-13T22:30:24.102833 | 2021-01-08T13:11:45 | 2021-01-08T13:11:45 | 320,020,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from django.urls import path
from . import views
urlpatterns=[
path('get-auth-url/',views.AuthURL.as_view()),
path('redirect/',views.spotify_callback),
path('is-authenticated/',views.IsAuthenticated.as_view()),
path('current-song/',views.CurrentSong.as_view()),
path('play-song/',views.PlaySong.as_... | [
"shubhpathak07@gmail.com"
] | shubhpathak07@gmail.com |
ec6f71dea44bb33840b8a9d2801b571e4dff1aa1 | d2332604fc80b6d622a263b2af644425a7e703de | /fast-track/strings/4_valid_anagram.py | 4b6cd138e04b2cd36803e6c0e4c3755c99e2ed8a | [] | no_license | abhijitdey/coding-practice | b3b83a237c1930266768ce38500d6812fc31c529 | 6ae2a565042bf1d6633cd98ed774e4a77f492cc8 | refs/heads/main | 2023-08-14T23:31:06.090613 | 2021-10-18T21:35:56 | 2021-10-18T21:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | """
Given two strings s and t, return true if t is an anagram of s, and false otherwise.
"""
def get_char_counts(string):
char_counts = dict()
for char in string:
if char in char_counts:
char_counts[char] += 1
else:
char_counts[char] = 1
return char_counts
def ch... | [
"ashiz2013@gmail.com"
] | ashiz2013@gmail.com |
892237619b675d7d223b9efee8985aa62256e138 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/identity_constraint/id_l086_xsd/__init__.py | 1aefc80d5eb9fa2d66622427e4aa78c72449dfad | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 155 | py | from output.models.ms_data.identity_constraint.id_l086_xsd.id_l086 import (
Root,
T,
Ttype,
)
__all__ = [
"Root",
"T",
"Ttype",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
0b70531014e35ca99bb424d18b4ea7de3b40d224 | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/examples/how_tos/reading_data/convert_to_records.py | 7794c3f6ea3625880921d442f02c5e4c2c00e81e | [] | no_license | Basofe/Community_Based_Repository_Traffic_Signs | 524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd | a20da440a21ed5160baae4d283c5880b8ba8e83c | refs/heads/master | 2021-01-22T21:17:37.392145 | 2017-09-28T21:35:58 | 2017-09-28T21:35:58 | 85,407,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | # Copyright 2015 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... | [
"helder_m_p_novais@hotmail.com"
] | helder_m_p_novais@hotmail.com |
6a09bc215bc33dd4733f9d3f862ee3a2bebc8541 | 412e327f41ec7c7a8e9389740bc849ebe173059e | /python/finite_element_model/add_node_set.py | e1101e9c279d72fe8f02ff56b4929729b7e1237c | [] | no_license | erolsson/railway_ballast | 2b617b91ae720ef86cd1e5c89b08a34b92996fd5 | cfc86c22cc5e2f857c24ba1a01c2541edf839e3b | refs/heads/master | 2023-07-25T16:54:10.529328 | 2023-07-23T12:49:32 | 2023-07-23T12:49:32 | 186,101,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | import os
import odbAccess
def add_node_set_to_odb(odb_file_name, node_set_name, x_min=-1e99, x_max=1e99, y_min=-1e99, y_max=1e99,
z_min=-1e99, z_max=1e99, instance_name=None):
odb = odbAccess.openOdb(odb_file_name, readOnly=False)
if instance_name is None:
instance_name = odb... | [
"erolsson@kth.se"
] | erolsson@kth.se |
dc249fd778ca98ecbc6b3b862b7660fbb8310715 | a4ebfeefa95e97d60f9ad2fe36e75e59e3b50769 | /Trial_Aligned_Analysis/Trial_Aligned_Utils.py | 7aa0ed89d59bb10ef4bd5bd2df5ea1bdb13b351b | [] | no_license | matt-j-harvey/Widefield_Analysis | 9f1566ac26d4164d988ab9a43d953f228b15746d | e03037e909ce986d8221113e1bbf5d46ddd7ad70 | refs/heads/master | 2023-05-01T12:30:27.064246 | 2023-04-24T11:23:37 | 2023-04-24T11:23:37 | 252,776,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | import os
import h5py
from tqdm import tqdm
import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
import pandas as pd
import tables
from datetime import datetime
from Widefield_Utils import widefield_utils
def get_session_averages(activity_dataset, metadata_dataset):
# Load Session L... | [
"matthew.jc.harvey@gmail.com"
] | matthew.jc.harvey@gmail.com |
4681259f82617ba5a09860ebcd688d94a01d71ed | 9d6218ca6c75a0e1ec1674fe410100d93d6852cb | /app/supervisor/venvs/supervisor/bin/echo_supervisord_conf | 6de0696c980aed451f221b8ebe2d45ed7f743467 | [] | no_license | bopopescu/uceo-2015 | 164694268969dd884904f51b00bd3dc034695be8 | 5abcbfc4ff32bca6ca237d71cbb68fab4b9f9f91 | refs/heads/master | 2021-05-28T21:12:05.120484 | 2015-08-05T06:46:36 | 2015-08-05T06:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | #!/edx/app/supervisor/venvs/supervisor/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'supervisor==3.1.3','console_scripts','echo_supervisord_conf'
__requires__ = 'supervisor==3.1.3'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('supervisor==3.1.3', 'c... | [
"root@uceociputra.com"
] | root@uceociputra.com | |
edd05aa7a6d0b2519f15498c48e760666baaf731 | e9c7f991c319efe0b1831e8e8360e13c3e177555 | /Python_do_zero_Guanabara/06_Metodos/desafio/100_desafio.py | ed4107d33cd4045e831afb18d8b04a91da717e45 | [
"MIT"
] | permissive | HenriqueSOliver/Projetos_Python | a3c4cabc61442221da968df55a463d9ad5865fcc | f18c5a343ad1b746a12bd372298b2debe9bc65ec | refs/heads/main | 2023-06-05T03:11:42.879988 | 2021-06-17T22:26:03 | 2021-06-17T22:26:03 | 327,629,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from random import randint
from time import sleep
def sortLista(lista):
print('Sorteando 5 valores da lista: ', end='')
for c in range (0, 5):
n = randint(1,100)
lista.append(n)
print(f' {n}', end=' - ', flush=True)
sleep(0.5)
print('PRONTO')
def somaP(lista):
s... | [
"HenriqueSOliver85@gmail.com"
] | HenriqueSOliver85@gmail.com |
2e1c49c9ad0740b75147789a0c0d4b5d54c026b1 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D00A/JAPRESD00AUN.py | 4fb33d38de066ce2be86ab6db137a31ba760f7d6 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,391 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD00AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 2},
{ID: 'PNA', MIN: 1, MAX: 99, LEVEL: [
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
2a99a7db473372aeeb7fa4a6ffac6b7e5ed25760 | 5058401352fd2b80bf33bd4a0c0acc77b0e05231 | /python/makeexec/makeexec.py | a4205f5d195154aaa03e44e18c1d69e964d28ad9 | [] | no_license | pgl/mcandre | 3b81ee64bf10ccaf02b9a1d44ed73e20cbcad4b6 | 81055895d872e2f93cd055f5a832c6d89848e3a3 | refs/heads/master | 2021-01-24T20:25:24.672765 | 2013-10-24T09:06:25 | 2013-10-24T09:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | #!/usr/bin/env python
"""Properly shebang and mark a file as executable"""
__author__ = "Andrew Pennebaker (andrew.pennebaker@gmail.com)"
__date__ = "3 Apr 2006"
__copyright__ = "Copyright 2006 Andrew Pennebaker"
import sys
import getopt
INTERPRETERS = {
"py":"#!/usr/bin/env python",
"pl":"#!/usr/bin/env perl",... | [
"andrew.pennebaker@gmail.com"
] | andrew.pennebaker@gmail.com |
369600eb04fb78121977a41f64c63cab8ecd8243 | 6fa0d5d3b61fbce01fad5a7dd50258c09298ee00 | /Algorithm/BOJ/1051.py | 267eb1c6bd32d770b9a4e55572968cf549d5ad9d | [] | no_license | athletejuan/TIL | c8e6bd9f7e2c6f999dbac759adcdb6b2959de384 | 16b854928af2f27d91ba140ebc1aec0007e5eb04 | refs/heads/master | 2023-02-19T13:59:06.495110 | 2022-03-23T15:08:04 | 2022-03-23T15:08:04 | 188,750,527 | 1 | 0 | null | 2023-02-15T22:54:50 | 2019-05-27T01:27:09 | Python | UTF-8 | Python | false | false | 1,216 | py | N,M = map(int, input().split())
base = [input() for _ in range(N)]
def rectangular(l):
while l:
for i in range(M-l):
for j in range(N-l):
if base[j][i] == base[j][i+l] == base[j+l][i] == base[j+l][i+l]:
return (l+1)**2
return rectangular(l-1)
retu... | [
"vanillasky84.0627@gmail.com"
] | vanillasky84.0627@gmail.com |
44bb08d1eb1cf06afe26eafcbb135c4b3e59f333 | e31d6c6c74a71daf27d618de4debf59e8cb9f188 | /gluon/losses.py | 22f050cb0f61e493be60803078e9ba0ce4e905eb | [
"MIT"
] | permissive | vlomonaco/imgclsmob | 574ebfbfe4be7a11c8742f34261bc4e7cc1f30be | d0d1c49a848ab146213ef4cbd37239799d0102d8 | refs/heads/master | 2022-04-18T16:03:11.361053 | 2020-04-14T06:17:36 | 2020-04-14T06:17:36 | 255,555,032 | 0 | 1 | MIT | 2020-04-14T08:39:59 | 2020-04-14T08:39:58 | null | UTF-8 | Python | false | false | 5,009 | py | """
Loss functions.
"""
__all__ = ['SegSoftmaxCrossEntropyLoss', 'MixSoftmaxCrossEntropyLoss']
from mxnet.gluon.loss import Loss, _reshape_like, _apply_weighting
class SegSoftmaxCrossEntropyLoss(Loss):
"""
SoftmaxCrossEntropyLoss with ignore labels (for segmentation task).
Parameters
----------... | [
"osemery@gmail.com"
] | osemery@gmail.com |
830510183c1a21c8df0759aa9047cb4d65f415a3 | 639c1f8c8bec57cb49665142ae2985d50da8c757 | /mysite/admin.py | 5bf0c8b4754467c15524a98be087b8fd1762af6d | [] | no_license | info3g/hospitalevent | 4c7d66d3af5b1e0e3f65cdd375b99324042f7c9b | fdd17bd7ae0828bd5bbdcf8fc61689f5485a571f | refs/heads/master | 2022-11-05T12:47:23.700584 | 2019-04-23T05:51:05 | 2019-04-23T05:51:05 | 166,350,181 | 0 | 1 | null | 2022-10-28T12:29:33 | 2019-01-18T05:39:27 | Python | UTF-8 | Python | false | false | 464 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(promisAnswers)
admin.site.register(diseases)
admin.site.register(symptoms)
admin.site.register(treatments)
admin.site.register(userProfile)
admin.site.register(userProfileSymptom)
admin.site.register(userProfileSympt... | [
"infothreeg@gmail.com"
] | infothreeg@gmail.com |
3b64b90411be6f00cfcba8c6d834c3c044629f05 | 8bb4a472344fda15985ac322d14e8f4ad79c7553 | /Python3-Core/src/test/prompto/runtime/o/TestFilter.py | 2b491c5cd234908a06c3b10241185209545c0ad8 | [] | no_license | prompto/prompto-python3 | c6b356f5af30c6826730ba7f2ad869f341983a2d | 64bd3d97d4702cc912097d41d961f7ab3fd82bee | refs/heads/master | 2022-12-24T12:33:16.251468 | 2022-11-27T17:37:56 | 2022-11-27T17:37:56 | 32,623,633 | 4 | 0 | null | 2019-05-04T11:06:05 | 2015-03-21T07:17:25 | Python | UTF-8 | Python | false | false | 550 | py | from prompto.parser.o.BaseOParserTest import BaseOParserTest
from prompto.runtime.utils.Out import Out
class TestFilter(BaseOParserTest):
def setUp(self):
super(type(self), self).setUp()
Out.init()
def tearDown(self):
Out.restore()
def testFilterFromIterable(self):
... | [
"eric.vergnaud@wanadoo.fr"
] | eric.vergnaud@wanadoo.fr |
8a87d3c15006f967d5b0d48dbd228929680398d2 | 1a23cc660649efe857808fef96740b4046f14713 | /mysite/views.py | 201c61bd6daca2e61d1d912d5faaef4ddd4cd0ba | [] | no_license | itd/djtest | b1df94b0651bf94582778338d472d42e583c1497 | 4903d0624892501ca3a361ce2feca18c12d8d082 | refs/heads/master | 2021-01-10T10:24:08.491299 | 2015-12-10T13:55:27 | 2015-12-10T13:55:27 | 47,764,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hello world. Polls index.")
| [
"kurt@tool.net"
] | kurt@tool.net |
d0ac59455b0338b38c3c6fb28dd4f59a9259b261 | 6eb35cb8d53ad226de2a6f78e16cb665644fbbdf | /orca/topology/alerts/matcher.py | b842957d8317f0f69e8a4cdeb3fccd3a67d98a4b | [
"Apache-2.0"
] | permissive | openrca/orca | 631fbc55f72d7dd01563ebc784a259bf0fa75d22 | 3b3ddcb2c14cc550c586f64eb6ca01e827fbc451 | refs/heads/master | 2023-05-30T22:38:55.431661 | 2022-09-11T09:33:24 | 2022-09-11T09:33:24 | 218,142,874 | 88 | 18 | Apache-2.0 | 2023-05-01T21:16:56 | 2019-10-28T20:51:10 | Python | UTF-8 | Python | false | false | 1,211 | py | # Copyright 2020 OpenRCA 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 applicable law or agreed to in writi... | [
"zurkowski.bartosz@gmail.com"
] | zurkowski.bartosz@gmail.com |
7909f7285c70e1cd8f35d44e1e0df1567e7c7104 | d4a7ed22a20599c2f12a550b782327eea312cdc1 | /doc/src/tutorial/src-odespy/osc2.py | de868146836989337530b80f18b4bb76a3852882 | [] | no_license | rothnic/odespy | dcfca8593d738604fc7b6b66fbe8083c7358fc5c | dd50508030ab61047ca885bf0e842f1ad4ef38f4 | refs/heads/master | 2021-01-15T10:51:19.854871 | 2015-05-02T03:51:30 | 2015-05-02T03:51:30 | 35,228,290 | 1 | 0 | null | 2015-05-07T15:33:52 | 2015-05-07T15:33:52 | null | UTF-8 | Python | false | false | 1,357 | py | """As osc1.py, but testing several solvers and setting sin(theta) to theta."""
from math import pi, sqrt
class Problem:
def __init__(self, c, Theta):
self.c, self.Theta = float(c), float(Theta)
self.freq = sqrt(c)
self.period = 2*pi/self.freq
def f(self, u, t):
theta, omega =... | [
"hpl@simula.no"
] | hpl@simula.no |
35c4bdebc781d3d87cdc25b59b881a5ba5da2bed | a438748ac89d53b19e7f4130529906896f059b25 | /Композиция.py | 8cc2c2abe97d5c1760e95ec575d7544e5ac3e6d1 | [] | no_license | Alexfordrop/Basics | 90ead9294727a823eb044e5f2f69d8f29133d150 | eda400424b2c72bd5e01a6c7cb14ad7ae29477d4 | refs/heads/master | 2023-06-08T16:42:26.704163 | 2021-06-27T20:46:27 | 2021-06-27T20:46:27 | 329,421,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | class Salary:
def __init__(self, pay):
self.pay = pay
def getTotal(self):
return (self.pay*12)
class Employee:
def __init__(self, pay, bonus):
self.pay = pay
self.bonus = bonus
self.salary = Salary(self.pay)
def annualSalary(self):
return "Total: " + st... | [
"mishechkin.aleksei@mail.ru"
] | mishechkin.aleksei@mail.ru |
5aef16b6aeb2d157280392287cf28cad33e25528 | 9ac205e4d8f111608d1abbcfa78b5b6598c17955 | /33.搜索旋转排序数组.py | d447ed77448cc4578fc79c195a6ccb85bf544fb8 | [] | no_license | oceanbei333/leetcode | 41ff0666da41750f7d3c82db53ec6f7f27125d3e | 5d29bcf7ea1a9e489a92bc36d2158456de25829e | refs/heads/main | 2023-03-16T18:17:25.232522 | 2021-02-28T04:56:40 | 2021-02-28T04:56:40 | 319,561,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | #
# @lc app=leetcode.cn id=33 lang=python3
#
# [33] 搜索旋转排序数组
#
# @lc code=start
from typing import List
class Solution:
def search(self, nums: List[int], target: int) -> int:
return nums.index(target) if target in nums else -1
def search(self, nums: List[int], target: int) -> int:
left, rig... | [
"hyram@wudun.net"
] | hyram@wudun.net |
61334443dff95bdd7751b514c74720f8be96eb4f | 1ab788ce84e446a98b085b62e1e17f8a2afa148d | /문제풀기/2112. [모의 SW 역량테스트] 보호 필름.py | f68fa9c9fa62e32bd2c49165bc5c321e56ed8bda | [] | no_license | kimjy392/exception | 884dd26e1ec6f1c0357c1fe000742b1562adbeaa | b37e9c2f70adae6b93b94b86f96512469f431739 | refs/heads/master | 2022-12-11T20:33:25.632561 | 2020-08-29T13:26:08 | 2020-08-29T13:26:08 | 195,989,162 | 1 | 0 | null | 2022-12-06T23:20:02 | 2019-07-09T10:43:35 | Python | UTF-8 | Python | false | false | 3,783 | py | # def count():
# global isuse
# isuse = [False] * W
# for j in range(W):
# i, start, cnt = 0, 0, 0
# while i < D:
# if tboard[start][j] == tboard[i][j]:
# cnt += 1
# else:
# cnt = 0
# start = i
# continue
... | [
"kimjy392@gmail.com"
] | kimjy392@gmail.com |
5f82420827fe3d84a27b93bdb272851e78b8640a | 2970291ff52e98915abb47848aeb71517ed1fbab | /machines/migrations/0028_auto_20200321_2338.py | 7e985c1f5a57f54e980268faea52817ba7736ccf | [] | no_license | dannyswolf/MLShop_Django_Service_boook | dd33f4bb0352836897448bc45bbb09b7c49252c2 | 9ac5f85468487a53465e244ba31b9bc968300783 | refs/heads/master | 2023-07-15T15:06:53.298042 | 2021-08-29T11:49:42 | 2021-08-29T11:49:42 | 255,998,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Generated by Django 3.0.4 on 2020-03-21 21:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('machines', '0027_auto_20200321_2337'),
]
operations = [
migrations.AlterField(
model_name='machines',
name='Μοντέλο'... | [
"ntinisiordanis@gmail.com"
] | ntinisiordanis@gmail.com |
e68a12ed2dd20f27609111b77d780a6bbe47ed92 | e72ed9dfc5f90f4772d0b36da249ff7b2d39fd5f | /bible/forms.py | 748bfa871e6d5c9e2b1441ce2ce0f51c7a384224 | [] | no_license | mparkcode/django-retroplay | 58b0626bb4c6e80f96232a0e4886d1a6c2805bbd | 3f76b630469a7105d35708b450eaacb94d384ee4 | refs/heads/master | 2022-12-10T23:26:27.842708 | 2019-10-21T13:46:17 | 2019-10-21T13:46:17 | 143,025,309 | 1 | 3 | null | 2022-12-08T02:49:53 | 2018-07-31T14:25:44 | HTML | UTF-8 | Python | false | false | 186 | py | from django import forms
class IgdbSearchForm(forms.Form):
igdb_search = forms.CharField(max_length=100, widget=forms.TextInput(attrs={'placeholder': 'Search the bible'}), label="") | [
"mparkcode@gmail.com"
] | mparkcode@gmail.com |
bfa7526cf02028ee81f5be260236d207fd71ada4 | 88cfeb8f7076450e7a38d31ab2d11883c1818c8d | /net/densenet.py | f37cd38d0ead26afb7480a9c9c2189f1ef9a2c08 | [] | no_license | ZQPei/Alibaba_Cloud_German_AI_Challenge_for_Earth_Observation | 4e5a127c12e0c02ed1914ab000a131e1a7f7d844 | c2efb32763af0a56a3a7ecb9d83c0744f71d5c14 | refs/heads/master | 2020-04-26T04:31:57.731178 | 2019-02-17T01:10:55 | 2019-02-17T01:10:55 | 173,305,034 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,159 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.checkpoint as cp
from collections import OrderedDict
def _bn_function_factory(norm, relu, conv):
def bn_function(*inputs):
concated_features = torch.cat(inputs, 1)
bottleneck_output = conv(... | [
"dfzspzq@163.com"
] | dfzspzq@163.com |
e05bcb65006e0ceeb16eb2c70a9ef633d6e7c8b5 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_0/Python/knabbers/A.py | bbd8fd315049627fb82af60f5c2e8854e2c57ff3 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from collections import defaultdict
with open('in.txt','rb') as fin, open('output.txt','w') as fout:
case = 1
it = iter(fin.readlines())
_ = next(it) # cases
for line in it:
print ("\n")
print ("case " + str(case))
N = int(line)
line=next(it)
xs = [int(c) for c in line.split(" ")]
print... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
63dfb28677eaa87faeab89b154711257dc907fc9 | 1f9897e86f93438eed2555d6da1716099df54147 | /2020/jokenpo.py | c69ace473e1326c65b70a76621b05b55119baf5f | [] | no_license | AfonsoArtoni/PUG-PE-Dojo | 10371ec321dc11d0280b8ac01dd70f47d29127a3 | 974a5293f58a721491915b2ee4d2e95e2247e745 | refs/heads/master | 2020-12-21T00:44:18.466602 | 2020-01-25T22:03:59 | 2020-01-25T22:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | """Jokenpo.
Jokenpo é uma brincadeira japonesa, onde dois jogadores escolhem um dentre
três possíveis itens: Pedra, Papel ou Tesoura. O objetivo é fazer um juiz de
Jokenpo que dada a jogada dos dois jogadores informa o resultado da partida.
As regras são as seguintes:
- Pedra empata com Pedra e ganha de Tesoura
-... | [
"marcusgabriel.ds@gmail.com"
] | marcusgabriel.ds@gmail.com |
f59b0e05422e2f0ed0e20fd76f2efe583c8387d0 | afd2087e80478010d9df66e78280f75e1ff17d45 | /test/dynamo/test_subclasses.py | 938215cb807c44ef22ce95b85305d0d6a3a17192 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 3,096 | py | # Owner(s): ["module: dynamo"]
import contextlib
import torch
import torch._dynamo.test_case
import torch._dynamo.testing
import torch._functorch.config
import torch.utils.checkpoint
class MockSubclass(torch.Tensor):
@classmethod
def __torch_function__(cls, func, types, args=(), kwargs=None):
if kwa... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
c0546b68f5584ad3b7da2cf791a2c1c65b27dbfe | c4e2e1aded20c81fa9ab2a38620cfda71639c4c8 | /print_updates.py | c63e212818cd24e22e2d09f8972571f4a4a7c587 | [
"MIT"
] | permissive | russss/pydsn | 118f341191f2ce6c702e9a81b3c0fd4da00f54b4 | 84e3b441effded7cfb4716cfa04e7b69d98d8ac1 | refs/heads/master | 2020-12-25T17:25:11.405678 | 2020-09-05T11:51:54 | 2020-09-05T11:51:54 | 21,252,624 | 7 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # coding=utf-8
from __future__ import division, absolute_import, print_function, unicode_literals
import logging
from dsn import DSN
def to_GHz(freq):
if freq is None:
return None
return str(round(float(freq) / 10 ** 9, 4))
def update_callback(antenna, old, new):
if len(new['down_signal']) == 0:... | [
"russ@garrett.co.uk"
] | russ@garrett.co.uk |
b4c98948d06b56b3abe16f50d15b2211226c7ba5 | 9e9d1a5b711191f87a849f2ea34eb00e17587080 | /chalk_line/materials/rhythm/segment_03/rhythm_makers.py | f283ec2f8c528fd879e5d10bb8a44e8c6e0db308 | [] | no_license | GregoryREvans/chalk_line | c72e3bbdd383d6032e8afd8eba6f41d895f1c673 | e333343ccb039b83393690d46d06e4d5225d6327 | refs/heads/master | 2022-02-23T17:40:38.569781 | 2022-02-10T13:52:13 | 2022-02-10T13:52:13 | 241,491,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | import evans
rmaker_one = evans.RTMMaker(
rtm=[
"(1 ((2 (1 1 1)) 1 -1))",
"(1 (1 2 3))",
"(1 (1 3))",
"(1 (1 1 2))",
"(1 (1 1))",
"(1 (1))",
"(1 (2 2 1 -1))",
"(1 (1))",
"(1 ((2 (1 1 1)) 1 -1))",
"(1 (1 2 3))",
"(1 (1 3))",
... | [
"gregoryrowlandevans@gmail.com"
] | gregoryrowlandevans@gmail.com |
c5b24563692c7be59ada5e6c4bae377ad2ee98b4 | 7bf617f77a55d8ec23fa8156c1380b563a5ac7f6 | /CG/SciPy/circle_1.py | 58a991f780e853de703aa238f4858b7803f7d0fc | [] | no_license | anyatran/school | c06da0e08b148e3d93aec0e76329579bddaa85d5 | 24bcfd75f4a6fe9595d790808f8fca4f9bf6c7ec | refs/heads/master | 2021-06-17T10:45:47.648361 | 2017-05-26T12:57:23 | 2017-05-26T12:57:23 | 92,509,148 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """
Program name: circle_1.py
Objective: A circle is a special case of an oval.
Keywords: canvas, oval, circle
============================================================================79
Explanation: A circle is a special case of an oval and is defined by the
box it fits inside. The bounding box is specifie... | [
"panhtran249@gmail.com"
] | panhtran249@gmail.com |
1a2c312399d2472dde204fc5e36017a06ffad7c6 | 6336828aeab3ea2ba3e1cf9452a8a3f3a084b327 | /fundooNotes-master/virtual-env/bin/nosetests-3.4 | 121dcd17ab6d074ffdd65beef38adefe3c734d61 | [
"MIT"
] | permissive | kalereshma96/DjangoNewRepository | 85f2eaed6b689be273af48d328c0a388244bbe2b | 37fd232c2ac91eb6940300f20118f93d17926f9a | refs/heads/master | 2020-04-12T18:12:15.698279 | 2019-01-21T13:46:37 | 2019-01-21T13:46:37 | 162,672,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | 4 | #!/home/admin1/PycharmProjects/mynewpythonproject/fundooNotes-master/virtual-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from nose import run_exit
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_exit())
| [
"kalereshma96@gmail.com"
] | kalereshma96@gmail.com |
b9e96932a14e41fe2293414f813539a41dac1547 | e60487a8f5aad5aab16e671dcd00f0e64379961b | /python_stack/Algos/Fundamentals/bracesValid.py | 1cf44dec62b3abd0f888db3f006ddf5ae829bf98 | [] | no_license | reenadangi/python | 4fde31737e5745bc5650d015e3fa4354ce9e87a9 | 568221ba417dda3be7f2ef1d2f393a7dea6ccb74 | refs/heads/master | 2021-08-18T08:25:40.774877 | 2021-03-27T22:20:17 | 2021-03-27T22:20:17 | 247,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # it are valid. For example, given the input string
# "w(a{t}s[o(n{c}o)m]e)h[e{r}e]!" , return
# true . Given "d(i{a}l[t]o)n{e" , return
# false . Given "a(1)s[O(n]0{t)0}k" , return
# false .
def bracesValid(str):
mapping={"(":")","{":"}","[":"]"}
myStack=[]
for c in str:
if c in ('(','{','['):
... | [
"reena.dangi@gmail.com"
] | reena.dangi@gmail.com |
912e0ef322d0210628742b89e0e9105897dc42f6 | 1e14e73b66aa4e60a528addf6358d5c009705e9e | /scripts/visualize.py | 8f3dca025adabe11f2e73709dd4ea46d5d23a0ed | [
"MIT"
] | permissive | cannin/covid-sicr-test | aeaa5935c5ddc99e616bdf1b9527a82eedcaa641 | f842946357428730265b7d0a6640172dc757ecae | refs/heads/master | 2022-10-08T04:46:31.415917 | 2020-06-11T21:06:30 | 2020-06-11T21:06:30 | 271,634,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,321 | py | #!/usr/bin/env python
# coding: utf-8
import argparse
import logging
from multiprocessing import Pool
import pandas as pd
import papermill as pm
from pathlib import Path
from tqdm import tqdm
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
for lib in ['blib2to3', 'papermill']:
logger... | [
"rgerkin@asu.edu"
] | rgerkin@asu.edu |
809e15e8c97fec14f1187a7f5c9189c43e53ad04 | a1b8b807a389fd3971ac235e46032c0be4795ff1 | /testrepo/Zips/script.module.streamhublive/resources/modules/downloader.py | 97608f2e48e1c7d67e403ad3122dc6daeb436677 | [] | no_license | sClarkeIsBack/StreamHub | 0cd5da4b3229592a4e2cf7ce3e857294c172aaba | 110983579645313b8b60eac08613435c033eb92d | refs/heads/master | 2020-05-23T09:09:54.898715 | 2020-02-29T12:15:32 | 2020-02-29T12:15:32 | 80,440,827 | 9 | 20 | null | 2017-10-04T07:32:52 | 2017-01-30T16:43:46 | Python | UTF-8 | Python | false | false | 2,512 | py | import xbmcgui
import urllib
import time
from urllib import FancyURLopener
import sys
class MyOpener(FancyURLopener):
version = '[COLOR ffff0000][B]StreamHub[/B][/COLOR]'
myopener = MyOpener()
urlretrieve = MyOpener().retrieve
urlopen = MyOpener().open
def download(url, dest, dp = None):
start_tim... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
8f91301ee92109eaebdec1ed72f4f25409581a1b | 9d69d37c930821f4ebf265f3c1f214c2cc558502 | /scripts/extra/csv_to_coco_json_result.py | 3fc14bfbe55bbd61d296159e00b5d157b88d6e32 | [
"Apache-2.0"
] | permissive | mayanks888/mAP | 255b35e25384659dfaf97e6e3eec53bafb5bb3cc | 7e6a6c4b916223e737d30c76ebb11a75ed15d984 | refs/heads/master | 2023-01-29T11:05:21.099541 | 2020-12-13T20:54:44 | 2020-12-13T20:54:44 | 278,285,070 | 0 | 0 | Apache-2.0 | 2020-07-09T06:44:56 | 2020-07-09T06:44:55 | null | UTF-8 | Python | false | false | 1,600 | py | from collections import namedtuple
import os
import pandas as pd
import json
from utils import *
coco91class = coco80_to_coco91_class()
csv_path='yolo_txt_to_csv.csv'
# csv_path='yolo1.csv'
data = pd.read_csv(csv_path)
print(data.head())
def split(df, group):
data = namedtuple('data', ['filename', 'object'])
#... | [
"mayank.sati@gwmidc.in"
] | mayank.sati@gwmidc.in |
e86947e81e355edde5f00faccb2b3b4b7adfe1b7 | 4de28b1f6d97640834e4a795e68ca9987f9e2cd5 | /check plugins 2.0/dell_powervault_me4/checks/agent_dellpowervault | 872a4202350c171f757ac3e0fb517852ad2a04de | [] | no_license | Yogibaer75/Check_MK-Things | affa0f7e6e772074c547f7b1df5c07a37dba80b4 | 029c546dc921c4157000d8ce58a878618e7bfa97 | refs/heads/master | 2023-09-01T15:52:28.610282 | 2023-08-29T06:18:52 | 2023-08-29T06:18:52 | 20,382,895 | 47 | 16 | null | 2023-07-30T15:52:22 | 2014-06-01T18:04:07 | Python | UTF-8 | Python | false | false | 1,216 | #!/usr/bin/env python3
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# (c) Andreas Doehler <andreas.doehler@bechtle.com/andreas.doehler@gmail.com>
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation i... | [
"andreas.doehler@gmail.com"
] | andreas.doehler@gmail.com | |
906e43db8bb1001f90d120dced7b2b11273ffe1e | 35f7c36a55a98cd4150abe51c24bf6b2313ee9d5 | /pytestFrame_demon1/TestCase/testmy.py | 4d60e67571f998cd5a788db480a9d3cbf2532dcf | [] | no_license | jingshiyue/zhongkeyuan_workspace | 58b12e46223d398b184c48c4c6b799e5235e4470 | aa0749f4a237ee76a61579dc5984635a7127a631 | refs/heads/master | 2021-07-15T15:18:40.186561 | 2020-08-12T05:32:45 | 2020-08-12T05:34:20 | 197,749,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import sys
import os
path0 = os.path.realpath(__file__) #'D:\\workfile\\workspace\\pytestFrame_demon1\\TestCase\\testmy.py'
path1 = os.path.dirname(path0)
GRANDFA = os.path.dirname(path1)
sys.path.append(GRANDFA ) # 将祖父路径加入sys中
print("ok")
sys.path.append(sys.path.append(sys.path[0] + r"\..\.."))
sys.path.append(sys.... | [
"173302591@qq.com"
] | 173302591@qq.com |
f3e8686fcdc11a92cf10d7b6bd5f7a314cd2ce1b | b94bb6b6e2fac5fb8f02354a2d05374b8f00ff60 | /mandelbrot/numpy_vector_numexpr/numpy_vector_numexpr.py | 484ad304db72cf8701216640e58a2e7b8f1d35dc | [] | no_license | janus/EuroPython2011_HighPerformanceComputing | 17ff9e6d7d5634c424983103ad45442acfe2502e | 1a15b5e66a22bd11422a1bb9ad749c5d906e3f98 | refs/heads/master | 2021-01-16T22:41:04.249856 | 2011-06-28T22:32:50 | 2011-06-28T22:32:50 | 1,973,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,837 | py | import datetime
import sys
import numpy as np
import numexpr
# area of space to investigate
x1, x2, y1, y2 = -2.13, 0.77, -1.3, 1.3
# use numexpr library to vectorise (and maybe parallelise) the numpy expressions
def calculate_z_numpy(q, maxiter, z):
output = np.resize(np.array(0,), q.shape)
for ... | [
"ian@ianozsvald.com"
] | ian@ianozsvald.com |
dd4afdb6db252146efbf72714ce2914c07933fec | 20343e8a8435b3f839d5abd0c4063cf735f43341 | /Experiment/price_with_basic/JQ_Demo.py | 7f7010abf4084044ea5f6bd90bd0cf54ea8c9477 | [] | no_license | alading241/MoDeng | 948f2099e2f7e4548d6e477b6e06b833bdf4f9bb | 01819e58943d7d1a414714d64aa531c0e99dfe22 | refs/heads/master | 2021-05-23T11:39:41.326804 | 2020-04-05T06:06:01 | 2020-04-05T06:06:01 | 253,269,397 | 1 | 0 | null | 2020-04-05T15:38:33 | 2020-04-05T15:38:33 | null | UTF-8 | Python | false | false | 2,699 | py | # encoding=utf-8
# from JQData_Test.auth_info import *
import pandas as pd
from SDK.MyTimeOPT import convert_str_to_date
from matplotlib import pyplot as plt
import seaborn as sns
"""
使用JQ数据进行研究
"""
stk_code = normalize_code('000001')
# 查询300508的市值数据
q = query(valuation.pe_ratio,
valuation.pb_ratio,
... | [
"1210055099@qq.com"
] | 1210055099@qq.com |
4ede01c900ccfbb8f6ca47a02a125acfb6428bd3 | be70e130f53c7703f942057923577adf607687a6 | /src/biotite/file.pyi | a2139f3eef3966c7794d5746f092780f16322213 | [
"BSD-3-Clause"
] | permissive | Dr-Moreb/biotite | 4043eadb607e9ede13ce049ade554546ce58afe0 | c34ccb7a7a7de923bf8a238944dfb7e1e635bb28 | refs/heads/master | 2020-04-01T19:02:08.086093 | 2018-10-10T16:01:45 | 2018-10-10T16:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | pyi | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
from typing import Generic, TypeVar, Union, TextIO, BinaryIO
from .copyable import Copyable
_T_io = TypeVar("_T_io", TextIO, BinaryIO)
class File(Copyable, Gener... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
f692be9989677461e8cb5d3829593c3c761017f4 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Design/implement_stack_using_queues.py | 90c0e731a480e74cfb57531edf2b51ea640c72b6 | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | from queue import Queue
class MyStack:
def __init__(self):
"""
Initialize your data structure here.
"""
self.stack = Queue()
def push(self, x: int) -> None:
"""
Push element x onto stack.
"""
self.stack.put(x);
i = 1;
while i... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
9fb7ec8bf614b85657848553a6966bddee75bccb | 795df757ef84073c3adaf552d5f4b79fcb111bad | /r8lib/r83col_print_part.py | 457c5bdb95cdf27c187fd4287858d3c0b6468785 | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | #! /usr/bin/env python
#
def r83col_print_part ( n, a, max_print, title ):
#*****************************************************************************80
#
## R83COL_PRINT_PART prints "part" of an R83COL.
#
# Discussion:
#
# An R83COL is a (3,N) array of R8's.
#
# The user specifies MAX_PRINT, the maximum num... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
7dda127c3c00949baafaf34b60be20df495fd4e2 | 2f4f6efd1963aa4e8e749f17b078720c437ae9ac | /time_process.py | b6100d34aff621e09ccb32022c48bbdd9b09ece0 | [] | no_license | FlashRepo/Flash-Storm | d248f4ed615096539048be1ec65f1fcb31f1d2ee | 2dd953350a5d690c409996512dec30196d8e9199 | refs/heads/master | 2021-07-15T02:58:36.421446 | 2017-10-23T07:03:47 | 2017-10-23T07:03:47 | 107,943,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import pickle
import numpy as np
dict = pickle.load(open('time.p'))
problems = sorted(dict.keys())
print ', '.join(['Problem', 'MOEAD', 'NSGAII', 'SPEA2'])
for problem in problems:
print problem,
algorithms = sorted(dict[problem].keys())
# print algorithms
# print algorithms
for algorithm in algor... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
e329f90cf89024a973e4360bf56a43969742fe39 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658571765186560_1/Python/jfguo/main.py | 5cdb0cbc380443d34ead8f2010a9a0172066645e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 999 | py |
import os
import sys
import glob
import subprocess
import random
import fileinput
next_line = 0
lines = [line.strip() for line in fileinput.input()]
def get_line():
global next_line
i = next_line
next_line += 1
return lines[i]
def calc():
s = get_line().split(' ')
X = int(s[0])
R = int(... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
82660f2d91527c4a4c020cc6bd64fd6a5a183eed | be6e6d8af85adf044bf79676b7276c252407e010 | /spec/python/test_params_call_extra_parens.py | 5035e7de4b9cff4c0b219268de38ae4498a8fa5d | [
"MIT"
] | permissive | kaitai-io/kaitai_struct_tests | 516e864d29d1eccc5fe0360d1b111af7a5d3ad2b | 3d8a6c00c6bac81ac26cf1a87ca84ec54bf1078d | refs/heads/master | 2023-08-19T19:42:47.281953 | 2023-08-04T20:26:50 | 2023-08-04T20:26:50 | 52,155,797 | 12 | 41 | MIT | 2023-07-30T23:30:30 | 2016-02-20T13:55:39 | Ruby | UTF-8 | Python | false | false | 378 | py | # Autogenerated from KST: please remove this line if doing any edits by hand!
import unittest
from params_call_extra_parens import ParamsCallExtraParens
class TestParamsCallExtraParens(unittest.TestCase):
def test_params_call_extra_parens(self):
with ParamsCallExtraParens.from_file('src/term_strz.bin') a... | [
"greycat@altlinux.org"
] | greycat@altlinux.org |
9e4a72cfaa5d511cbc35bccab33d6d759a585c40 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2976/49361/276731.py | c934f824ceb2d2636866731a7c096aa5606facba | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import re
lines = []
while True:
try:
lines.append(input())
except:
break
outputStr = ""
for index in range(1, len(lines)):
afterStr = re.sub(lines[0].replace(" ", ""), "", lines[index].replace(" ", ""), flags=re.IGNORECASE)
outputStr += afterStr + "\n"
print(outputStr.strip("\n")) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3f04bfd5dc6f5a148c9f8957f359a211e6e91bd0 | 0e834094f5e4274b279939b81caedec7d8ef2c73 | /m2/d05/fork.py | 0f760582ce1b6de41ccd05f7672b9e7300500889 | [] | no_license | SpringSnowB/All-file | b74eaebe1d54e1410945eaca62c70277a01ef0bf | 03485c60e7c07352aee621df94455da3d466b872 | refs/heads/master | 2020-11-27T23:54:36.984555 | 2020-01-21T08:42:21 | 2020-01-21T08:42:21 | 229,651,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import os
print("-----------------")
a = 1
pid = os.fork()#子进程从此处开始执行
if pid < 0:
print("fail")
elif pid ==0:
print("child a=",a)#1
a = 10000
else:
print("parent a=",a) #1
print("over a=",a) #子进程10000,父进程1
| [
"tszxwsb@163.com"
] | tszxwsb@163.com |
e36502d092eb4d4f11257c8b70b8846bfef0a973 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/histogram/marker/colorbar/_yanchor.py | 5d929c6570d7a6ea82df360ef7b79e5066a0b291 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 507 | py | import _plotly_utils.basevalidators
class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="yanchor", parent_name="histogram.marker.colorbar", **kwargs
):
super(YanchorValidator, self).__init__(
plotly_name=plotly_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
a2b750917d590f2cad5dfbac283319542556e13c | fd717fe6ca74f6d77210cdd57a8c365d27c5bfc6 | /pychron/experiment/utilities/mass_spec_utilities.py | e439853d44c9878143faa78ab7e9391af8a64b9f | [
"Apache-2.0"
] | permissive | stephen-e-cox/pychron | 1dea0467d904d24c8a3dd22e5b720fbccec5c0ed | 681d5bfe2c13e514859479369c2bb20bdf5c19cb | refs/heads/master | 2021-01-19T15:40:03.663863 | 2016-07-14T14:37:16 | 2016-07-14T14:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,294 | py | # ===============================================================================
# Copyright 2016 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
351ffee98beaac269739f12103d72257fded664c | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/12267141.py | fde8c5e02df48c536fc9078ec662b3e30932602c | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/12267141.py generated: Fri, 27 Mar 2015 16:10:10
#
# Event Type: 12267141
#
# ASCII decay Descriptor: [B+ -> (D~0 -> (KS0 -> pi+ pi-) K+ K-) K+ pi- pi+]cc
#
from Configurables import Generation
Generation().EventType = 12267141
Generation().SampleGenerati... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
91f2f0326c39a0175aa8510fe1f285d347efdc54 | fb383c3550cdcb1514df17a2e5d87b453240e4a5 | /baekjoon/13706.py | ee0b9f933b5e253d683e4f1962ab3f59ba8fa62b | [] | no_license | mingxoxo/Algorithm | 5ba84afebe1b0125d43011403610619804c107be | dc352f591c6c8ed84f7dbbeb37a2df4178270605 | refs/heads/master | 2023-07-30T17:38:00.190966 | 2023-07-30T08:51:23 | 2023-07-30T08:51:23 | 205,862,682 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # 제곱근
# 23.05.11
# https://www.acmicpc.net/problem/13706
def square_root(n: int) -> int:
start, end = 1, n // 2
while start <= end:
mid = (start + end) // 2
if mid * mid == n:
return mid
elif mid * mid < n:
start = mid + 1
else:
end = mid - 1... | [
"noreply@github.com"
] | mingxoxo.noreply@github.com |
ea57c7126e4dac9e0f5ce7e56a0f128fa3a91ef5 | a0dfeb01fd15550961b7e15c504327ea37ce4dea | /home_and_login/migrations/0001_initial.py | 0436e1fa98f1ffce003621db14932c8e78e495f9 | [] | no_license | theparadoxer02/Colossus | 34c4d99f7d14caa0c464036d25b776dde31c4ec0 | 7d95024acea42b46b598923aef80080cd7890fa2 | refs/heads/master | 2021-01-19T22:59:25.057466 | 2017-09-25T18:03:37 | 2017-09-25T18:03:37 | 88,902,426 | 2 | 1 | null | 2020-07-11T12:45:14 | 2017-04-20T19:20:42 | CSS | UTF-8 | Python | false | false | 1,320 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-26 19:50
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"abhimanyu98986@gmail.com"
] | abhimanyu98986@gmail.com |
ffd724c24a3e8a69f6d6d092e453a4544c9d2d41 | 311b08b547e51907fe88e177817f10e5754dedbe | /tests/test_module.py | 6e800f1af7fe1dbdbb9dbd206ee1e3478bbd22a4 | [
"BSD-3-Clause"
] | permissive | kernc/dill | a17187545ffd6fa3c410ae4763579744f8238326 | 11effa42b8c486b2139125d094988f6f68595b3c | refs/heads/master | 2020-07-05T14:11:30.681507 | 2016-11-16T12:27:42 | 2016-11-16T12:27:42 | 74,115,619 | 0 | 0 | null | 2016-11-18T09:34:14 | 2016-11-18T09:34:14 | null | UTF-8 | Python | false | false | 1,620 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 2008-2016 California Institute of Technology.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE
import sys
import dill
import ... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
9394c9c8fd1b27eac0dd7b4bc2d82db67266668f | 1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41 | /easy/python3/c0009_28_implement-strstr/00_leetcode_0009.py | 3f3da727753e9087912c82010101009b9d93cff2 | [] | no_license | drunkwater/leetcode | 38b8e477eade68250d0bc8b2317542aa62431e03 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | refs/heads/master | 2020-04-06T07:09:43.798498 | 2018-06-20T02:06:40 | 2018-06-20T02:06:40 | 127,843,545 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#28. Implement strStr()
#Implement strStr().
#Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
#Ex... | [
"Church.Zhong@audiocodes.com"
] | Church.Zhong@audiocodes.com |
80a26aad0a1f115f682e53ed5d47c9cbfd137809 | 03f9666687a147bfd6bace2adfbab6de8879e207 | /plugins/action/device_credential.py | 2d88230b22e84c11fad07c6f85152d6c6fde77a6 | [
"MIT"
] | permissive | robertcsapo/dnacenter-ansible | a221c8dc6ab68d6ccbc710e5e5f3061b90b0de59 | 33f776f8c0bc7113da73191c301dd1807e6b4a43 | refs/heads/main | 2023-07-17T08:27:59.902108 | 2021-09-06T15:58:05 | 2021-09-06T15:58:05 | 376,349,036 | 0 | 0 | MIT | 2021-06-12T17:32:27 | 2021-06-12T17:32:27 | null | UTF-8 | Python | false | false | 2,797 | py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.plugins.action import ActionBase
try:
from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import (
AnsibleArgSpecValidator,
)
except ImportError:
ANSIBLE_UTILS_IS_INST... | [
"rcampos@altus.cr"
] | rcampos@altus.cr |
9f5e950d9099755d4c2e22f43dda1ea777edf4d7 | 4a0ed9c079286428e44bf8bcfc82034dac041897 | /gallery/views.py | 6afa3b8cfd519dce4b362fd22970809cab865f38 | [
"MIT"
] | permissive | lilianwaweru/Gallery | 3b57fed326e1d868c83944037fe203f35204a650 | de9b02e59dac22f45df8c7cbc0570fe7ac685d3f | refs/heads/master | 2020-05-21T07:06:38.468356 | 2019-05-14T13:03:09 | 2019-05-14T13:03:09 | 185,950,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | from django.shortcuts import render
from .models import Image,Category,Location
# Create your views here.
def welcome(request):
images = Image.objects.all()
return render(request,'welcome.html',{'images':images})
def search_category(request):
if 'category' in request.GET and request.GET["category"]:
... | [
"lilowesh.lw@gmail.com"
] | lilowesh.lw@gmail.com |
9855c9b0200842716863d96c8193f9f091dcf658 | 70bcdd97318a85acc5bc3f4d47afde696fb7a33b | /jqdata/gta_tables/MAC_INDUSTRY_EMPLOYWAGEQ.py | 2ebaaaaaf34a003becdbd973ddf86f715001b314 | [] | no_license | Inistlwq/tulipquant-code | f78fe3c4238e98014f6d4f36735fb65a8b88f60d | 5959bfe35b6ae2e0e2a204117bda66a13893c64c | refs/heads/master | 2020-03-31T11:25:12.145593 | 2018-04-22T02:16:16 | 2018-04-22T02:16:16 | 152,175,727 | 2 | 0 | null | 2018-10-09T02:31:34 | 2018-10-09T02:31:33 | null | UTF-8 | Python | false | false | 693 | py |
# coding: utf-8
from sqlalchemy import BigInteger, Column, DateTime, Integer, Numeric, SmallInteger, String, Table, Text, text
from sqlalchemy.dialects.mysql.base import LONGBLOB
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
metadata = Base.metadata
class MAC_INDUSTRY_EMPLOYWAG... | [
"wonghiu45@163.com"
] | wonghiu45@163.com |
f35954923107394313f1f954760bca011b8ce868 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/CISCO-EVC-CAPABILITY.py | 454b6d6567630d64f7fd37b6bc76b1264ec7ba05 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 3,608 | py | #
# PySNMP MIB module CISCO-EVC-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-EVC-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 11:57:40 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
eb09ae376760615f5b04d20e921dc431942061bc | c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105 | /vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/stdlib/3/posix.pyi | d99a4584d6d9a6efe91e80408d29b4bf3a3e89ff | [
"MIT",
"Apache-2.0"
] | permissive | ryangniadek/.dotfiles | ddf52cece49c33664b56f01b17d476cf0f1fafb1 | be272baf6fb7d7cd4f4db1f6812b710196511ffe | refs/heads/master | 2021-01-14T07:43:12.516127 | 2020-03-22T20:27:22 | 2020-03-22T20:27:22 | 242,632,623 | 0 | 0 | MIT | 2020-09-12T17:28:01 | 2020-02-24T02:50:06 | Python | UTF-8 | Python | false | false | 2,650 | pyi | # Stubs for posix
# NOTE: These are incomplete!
from typing import NamedTuple, Tuple
class stat_result:
# For backward compatibility, the return value of stat() is also
# accessible as a tuple of at least 10 integers giving the most important
# (and portable) members of the stat structure, in th... | [
"ryan@gniadek.net"
] | ryan@gniadek.net |
cb5a7ad60c72cc52d78ddfbdca5cecf634886a08 | 539815f896acbc88b72338992f1adcd55bd7700f | /demo/movie_svc/app_instance.py | d7fce6337abd89e14700e0110df3a57cb570f72d | [
"MIT"
] | permissive | talkpython/responder-webframework-minicourse | dcb0f38ead081b75a536aca99c6f52fc172c1c0e | 321d52d8ddb434952f373a127b51ef3bbfbeb6af | refs/heads/master | 2021-06-16T13:39:19.149560 | 2021-03-11T20:29:24 | 2021-03-11T20:29:24 | 178,065,735 | 29 | 21 | MIT | 2021-03-11T20:29:25 | 2019-03-27T19:58:30 | null | UTF-8 | Python | false | false | 251 | py | import responder
# CORS wasn't demoed in the course, but is required to be used from
# external apps like movie exploder.
cors_params = {
'allow_origins': '*',
'allow_methods': '*',
}
api = responder.API(cors=True, cors_params=cors_params)
| [
"mikeckennedy@gmail.com"
] | mikeckennedy@gmail.com |
64876e9ed6c56a785bda85f43297a2f5c6c1aaa3 | 5f8baed3acceaf7b3127f8fbe0ed417070c0e809 | /DiSAN/src/utils/logger.py | 81b83bca491c2b056252a64abcb03365dde710a0 | [
"MIT"
] | permissive | satwik77/Transformer-Computation-Analysis | ead241d848af51fefd85fe365a3ff87b9251bac5 | 82341f5f2f9cd0831e390f44b338165e45cd6413 | refs/heads/main | 2022-12-29T01:32:12.081865 | 2020-10-10T07:04:27 | 2020-10-10T07:04:27 | 301,588,833 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | import logging
import pdb
import pandas as pd
# Ignore warnings
import warnings
warnings.filterwarnings("ignore")
import json
'''Logging Modules'''
#log_format='%(asctime)s | %(levelname)s | %(filename)s:%(lineno)s - %(funcName)5s() ] | %(message)s'
def get_logger(name, log_file_path='./logs/temp.log', log... | [
"satwik55@gmail.com"
] | satwik55@gmail.com |
4344dd113c53ec44e77b7beb867a74a0a9abcdd1 | 773f6abee91e5368e43b34d8ad179c4ab9056da1 | /gen/referencegenome.py | 5733374a02094277fbde4887efd4b26c7b446068 | [] | no_license | richstoner/aibs | 3dc9489ee6a1db836d58ec736b13d35a7cffc215 | bfc7e732b53b4dff55f7c3edccdd0703f4bab25f | refs/heads/master | 2021-01-10T05:11:09.484238 | 2013-03-03T06:19:34 | 2013-03-03T06:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # -*- coding: utf-8 -*-
# Rich Stoner, 2013
class ReferenceGenome(object):
'''aibs.model.referencegenome (autogen)'''
# Fields
self.id = 0
self.name = ''
self.build = ''
self.organism_id = 0
# Associations
self.organism = None # belongs_to Organism
self.genome_locuses = [] # has_m... | [
"stonerri@gmail.com"
] | stonerri@gmail.com |
6dc7210e4f8cd00b9dae94dcc3d074d9cbffc1d3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02686/s844095657.py | f1ab4403c5eb0d0f166d68bd4338ad075c24471f | [] | 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 | 767 | py | N = int(input())
S = [input() for _ in range(N)]
def solve() :
T = []
for s in S :
open = 0
close = 0
for c in s :
if c == ')' :
if open > 0 :
open -= 1
else :
close += 1
else :
open += 1
T.append((open, close))
if sum(op - cl for op, cl ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fd06fd94704d0b738825aa9fc484c78bdf8ee26e | 933f2a9f155b2a4f9746bf2020d1b828bfe49e81 | /python基础/day1/if 语句.py | fb1eb4aef52c801e5390c18364af092d427d9f15 | [] | no_license | WuAlin0327/python3-notes | d65ffb2b87c8bb23d481ced100d17cda97aef698 | 1d0d66900f6c4b667b3b84b1063f24ee7823e1bb | refs/heads/master | 2020-03-26T04:49:34.937700 | 2018-12-31T11:12:58 | 2018-12-31T11:12:58 | 144,524,404 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | monny = int(input("你有多少钱:"))
if monny > 5000:
print("I want buy a macbook")
elif monny >=3000:
print("I want buy a iadp")
elif monny >= 2000:
print("buy a phone")
else:
print("no monny") | [
"1032298871@qq.com"
] | 1032298871@qq.com |
cf37da3f5b81520ea9ba19cc258a0363291042d6 | 89bcfc45d70a3ca3f0f1878bebd71aa76d9dc5e2 | /scrapy_demo/sina_news/sina_news/middlewares.py | 819f2c24c10afaf9fbaced6ef0f1b0f49ec5c423 | [] | no_license | lichao20000/python_spider | dfa95311ab375804e0de4a31ad1e4cb29b60c45b | 81f3377ad6df57ca877463192387933c99d4aff0 | refs/heads/master | 2022-02-16T20:59:40.711810 | 2019-09-10T03:13:07 | 2019-09-10T03:13:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | 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 SinaNewsSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy... | [
"64174469@qq.com"
] | 64174469@qq.com |
e1ee11936044cee591fa34caea14fe7c48692724 | a990bd26d3a69d1ea6699c85efa2cea99452c3df | /pytriplets/pythagoreanTriplets.py | 9800357dc2720a809abc7bcffed191203f31baa3 | [] | no_license | abecus/DS-and-Algorithms | 5f1a948a085465ae165090ec957a9d5307ce729d | 3259e8183382265a27cf8c91e37d0086175a5703 | refs/heads/master | 2022-05-05T07:07:08.194243 | 2022-04-05T16:23:39 | 2022-04-05T16:23:39 | 193,111,610 | 11 | 6 | null | 2020-11-18T16:19:18 | 2019-06-21T14:27:25 | Python | UTF-8 | Python | false | false | 2,315 | py | from math import ceil, sqrt
def EratosthenesSieve(N:int)-> list:
'''
Calculating SPF (Smallest Prime Factor)
for every number till N.
Time Complexity : O(NloglogN)
'''
N+=1
# stores smallest prime factor for every number
spf = [*range(N)]
# separately marking spf for every even... | [
"insaaone@gmail.com"
] | insaaone@gmail.com |
4ce7e9375fb540a78e89c6052c9ac31834889e7a | 90f2cbe1c940a20dcc893837b6033a51d3233931 | /python 进阶/面向对象5.py | e0cdc5256497aaf75db084c7e20d655c6faec438 | [] | no_license | MaxNcu/Learn_Python | 71501f38f6442f3ff2a1de1ff685b8975e50af20 | 5a1c6edf353ed7447b2ffd4126ad7668d8c5a407 | refs/heads/master | 2022-01-15T18:56:04.814476 | 2019-07-20T03:02:02 | 2019-07-20T03:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | # -*- coding: utf-8 -*-
# @Time : 2018/5/3 0003 17:27
# @Author : Langzi
# @Blog : www.langzi.fun
# @File : 面向对象5.py
# @Software: PyCharm
import sys
import requests
reload(sys)
sys.setdefaultencoding('utf-8')
class gg:
url = 0
stat = 0
# 因为使用classmethod后会传入新的变量,所以一开始是需要自己先定义类变量
def __init__(se... | [
"982722261@qq.com"
] | 982722261@qq.com |
9d3d24b465ffb8dc9148555c52358627c3f4e05b | 3551f1150dee2772b1949a199250e4960a71989e | /focusgrouplogs/web.py | 0391b7ec78d6461332a0c6ec9d81af8e275f140c | [
"MIT"
] | permissive | ccpgames/focusgrouplogs-frontend | 868f4398fb5e965f3a27f66bbba46086dc6906c6 | 42bd2bac04bbdc49d87ed9218f6b32a1d239c1ee | refs/heads/master | 2021-01-17T06:38:04.869762 | 2018-05-08T18:02:28 | 2018-05-08T18:02:28 | 50,437,131 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | """Web routes for focusgrouplogs."""
import os
import sys
import traceback
from flask import render_template
from flask import Response
from focusgrouplogs import app
from focusgrouplogs import cache
from focusgrouplogs import FOCUS_GROUPS
from focusgrouplogs.datastore import all_content
from focusgrouplogs.datastor... | [
"github@talsma.ca"
] | github@talsma.ca |
39fd5781c172d7c39966c2f8e8ac762b9ae943b6 | 6b64338c3453d896310a381929fdf61cd846bbb7 | /biaobei-pretrain/tacotron/utils/symbols.py | f1e84a10e8d9e07c6bc1ba5b035ec7a4a17c205e | [] | no_license | Tubbz-alt/Taco_Collection | b0e9234ca8309300783b6a258adb0255d3119f93 | fb30bab5231c5c22ff03184f428aa43a0700d47d | refs/heads/master | 2022-02-28T21:41:15.275047 | 2019-09-23T14:45:54 | 2019-09-23T14:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | '''
Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run
through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details.
'''
import os
import glob
AUTO_DETECT_SYMBOLS=True
train_text_... | [
"ascyx1218@163.com"
] | ascyx1218@163.com |
165877fef4819cb2279ba767229c479c1f17b7e2 | a26c8bbd67c614354c72c3eade71981adea28eea | /src/main/resources/devops-as-code/add_ci_to_env.py | 9f51d350a015afba8071c5eea1e0e26b41597529 | [
"MIT"
] | permissive | xebialabs-community/xld-ansible-step-plugin | 481e25350728f50cebcb5a15c64e8d388b2d16ed | c05eec5767214ed91f6e42819212bf0bc5d164b6 | refs/heads/master | 2021-06-16T01:56:12.030162 | 2021-02-08T12:19:36 | 2021-02-08T12:40:12 | 140,391,653 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | #
# Copyright 2021 XEBIALABS
#
# 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, modify, merge, publish, distribute, subli... | [
"bmoussaud@xebialabs.com"
] | bmoussaud@xebialabs.com |
9d5c116670e57e518c30bc5967961c6a87ecc804 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/__init___parts/PlatformNotSupportedException.py | 01352985b0163c59e7d7ded23ed6bdf1af466c25 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | class PlatformNotSupportedException(NotSupportedException,ISerializable,_Exception):
"""
The exception that is thrown when a feature does not run on a particular platform.
PlatformNotSupportedException()
PlatformNotSupportedException(message: str)
PlatformNotSupportedException(message: str,inner: Exception)
... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
4287da8a49bf1158ca40e7e1ea59381b3a4f26dd | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/magical-string/286608581.py | a40ef5d904e5cc169a0d044c1fefbec7c63a3043 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | # title: magical-string
# detail: https://leetcode.com/submissions/detail/286608581/
# datetime: Tue Dec 17 18:06:50 2019
# runtime: 108 ms
# memory: 27.3 MB
class Solution:
magical_string = [[1, 1], [2,1 ], [2, 1]]
index = 2
def magicalString(self, n: int) -> int:
i = self.index
magical_st... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
7bafee4b562b3ea3a9bc7a61db78cfd37ada3ea3 | 7b74696ff2ab729396cba6c203984fce5cd0ff83 | /tradeaccounts/migrations/0049_auto_20200607_1333.py | 46a52b8fab8cd24ab327a01dd31af3e81a8c975e | [
"MIT"
] | permissive | webclinic017/investtrack | e9e9a7a8caeecaceebcd79111c32b334c4e1c1d0 | 4aa204b608e99dfec3dd575e72b64a6002def3be | refs/heads/master | 2023-06-18T12:57:32.417414 | 2021-07-10T14:26:53 | 2021-07-10T14:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 3.0.2 on 2020-06-07 05:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tradeaccounts', '0048_auto_20200607_1302'),
]
operations = [
migrations.AlterField(
model_name='tradeaccountsnapshot',
... | [
"jie.han@outlook.com"
] | jie.han@outlook.com |
0c2a8e2225a636a1c778cc23813b081284f9b3c5 | dffc22f1e363172d91c72582f54edf088ca96ea8 | /lib/ffmpeg/vppbase.py | 4b49b69842ed9fdd3fbb8bca01a3d3fef7767102 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FocusLuo/vaapi-fits-1 | 975d0eec398d91dcb904660b7cfda4c7b02fb01f | 52dbc2decf68cf89cb3ed7a11fa7b86e6903e829 | refs/heads/master | 2023-07-26T07:49:59.857414 | 2023-05-09T23:25:00 | 2023-05-11T06:43:06 | 170,789,770 | 0 | 0 | BSD-3-Clause | 2019-02-15T02:29:44 | 2019-02-15T02:29:44 | null | UTF-8 | Python | false | false | 3,902 | py | ###
### Copyright (C) 2022 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
import slash
from ...lib.common import timefn, get_media, call, exe2os, filepath2os
from ...lib.ffmpeg.util import have_ffmpeg, BaseFormatMapper
from ...lib.mixin.vpp import VppMetricMixin
from ...lib import metrics2
@sla... | [
"ullysses.a.eoff@intel.com"
] | ullysses.a.eoff@intel.com |
3d27b8603e7399f16a976fd41a6dda3461f31a61 | a1cbe24cb8646e7af91a64d1fbfce4a4d7adce99 | /teesta/config/desktop.py | 0b643613f46c5abe037d298f362e72a3fa2b58c6 | [
"MIT"
] | permissive | mbauskar/teesta | a4d32f8ec941be42f08d832ad922f092bf77b2b8 | 004bacefec97759e8abf525a58da2f4b17fb9448 | refs/heads/master | 2021-01-24T01:28:06.474339 | 2016-06-22T10:01:29 | 2016-06-22T10:01:29 | 61,936,561 | 1 | 0 | null | 2016-06-25T09:37:11 | 2016-06-25T09:37:11 | null | UTF-8 | Python | false | false | 261 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "Teesta",
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("Teesta")
}
]
| [
"mbauskar@gmail.com"
] | mbauskar@gmail.com |
730fd4d9ec2574b3ee5ec4a4b6f7490e1b36834c | e089f2598400d4115f9f1a91c48c7eef40e6d251 | /vgg16_2.py | 423a087f0d1ad03d149d1deda559efc8d94e0215 | [] | no_license | cwarny/flower-teller | c261ef10077f0b65d96bdb0e28a3e013ef32cef5 | 36b4350e7257ac11d3e89cb594f047963c65b3ac | refs/heads/master | 2021-01-21T15:49:39.393488 | 2017-06-26T02:13:47 | 2017-06-26T02:13:47 | 95,398,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,280 | py | import json
import csv
import numpy as np
from numpy.random import random, permutation
from scipy import misc, ndimage
from scipy.ndimage.interpolation import zoom
from matplotlib import pyplot as plt
from PIL import Image
from sklearn.preprocessing import OneHotEncoder
import keras
from keras import backend as K
f... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
456f8a27016afc6e1e5da8a314af1625002e861a | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4352/codes/1649_2445.py | c823fb8e8c5b6c16933c41968349e882bb866230 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | escala = (input("digite a escala: (C/F)"))
valor = float(input("digite a temperatura: "))
formula1 = 5/9 * (valor - 32)
formula2 = 9*valor/5 + 32
if escala == "F":
print(round(formula1, 2))
else:
print(round(formula2, 2))
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
ad4a165dfc6950d2c638cdd134f1deeef8352d52 | cde2f83809b89ae0b01a7b30b9caae83183d09a0 | /correlation.py | 9825fc5f79db4b3d456117cd1171a2f4a5337ad5 | [] | no_license | airbaggie/judgmental_eye | 264fa8f4aaec452f4acbf34dbb99d070408c2c22 | 67cb86e450133d253c74b07950a846bf2bb4f06f | refs/heads/master | 2020-06-08T21:32:54.271881 | 2019-06-24T04:12:58 | 2019-06-24T04:12:58 | 193,310,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | from math import sqrt
def pearson(pairs):
"""Return Pearson correlation for pairs.
Using a set of pairwise ratings, produces a Pearson similarity rating.
"""
series_1 = [float(pair[0]) for pair in pairs]
series_2 = [float(pair[1]) for pair in pairs]
sum_1 = sum(series_1)
sum_2 = sum(ser... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
7dc433e6a444ecf139658897f4b616a313f2c5ee | 050fc5ca698dfd7612dee42aa980fc7b5eee40a2 | /tests/plugin/data/sw_kafka/test_kafka.py | 30f9f02021b73bbc4f9a958cb224e19b9557fff7 | [
"Apache-2.0"
] | permissive | apache/skywalking-python | 8ac6ce06630c519f9984a45e74c1fcc88cf5b9d6 | 1a360228c63cd246dd4c5dd8e1f09bdd5556ad7d | refs/heads/master | 2023-09-05T02:45:56.225937 | 2023-08-28T22:19:24 | 2023-08-28T22:19:24 | 261,456,329 | 178 | 122 | Apache-2.0 | 2023-08-28T22:19:26 | 2020-05-05T12:13:49 | Python | UTF-8 | Python | false | false | 1,352 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"noreply@github.com"
] | apache.noreply@github.com |
695e6a3453693a6839a8274d69b5d35e909f9015 | a87f87e71d971bc8d6c205400052a47f8d957e5d | /psuedo_train.py | b0fd34acf099b173fe37b8a78a74967baf39f36e | [] | no_license | bcaitech1/p1-img-MaiHon | 045eef675a92bb9b26532ff930f919fe3c6e6919 | d17a925e301349e167327c5eab9d3b65f06d61a3 | refs/heads/master | 2023-04-08T10:22:25.803079 | 2021-04-19T12:22:12 | 2021-04-19T12:22:12 | 359,440,859 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py | import os
import torch
import random
import argparse
import numpy as np
import pandas as pd
import albumentations as A
from tqdm import tqdm
from src.models import *
from src.configs.config import InferConfig
from src.dataset import PseudoDataset
import torch.nn.functional as F
from torch.utils.data import DataLoader... | [
"mai.hong0924@gmail.com"
] | mai.hong0924@gmail.com |
f44312a56f753dec7e321a13f2d402666c08d473 | 779af874adf1647461981b0c36530cf9924f5f01 | /python3/dist-packages/plainbox/impl/exporter/text.py | c8889b30876cfff0a422e3a3d37debfa5f7bf396 | [] | no_license | hitsuyo/Library_Python_3.5 | 8974b5de04cb7780b0a1a75da5cb5478873f08e7 | 374e3f9443e4d5cae862fd9d81db8b61030ae172 | refs/heads/master | 2022-11-05T23:46:47.188553 | 2018-01-04T19:29:05 | 2018-01-04T19:29:05 | 116,093,537 | 1 | 2 | null | 2022-10-26T03:07:06 | 2018-01-03T05:02:20 | Python | UTF-8 | Python | false | false | 3,001 | py | # This file is part of Checkbox.
#
# Copyright 2012 Canonical Ltd.
# Written by:
# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
#
# Checkbox is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3,
# as published by the Free Software Foundation.
#... | [
"nguyentansang3417@gmail.com"
] | nguyentansang3417@gmail.com |
3d248b9822e566b434bc50291ba5c73e7f9d7aa3 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_run_commands_operations.py | ae68dd96f544a951679e1e4b41833dc0b708fe85 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 7,966 | 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"
] | paultaiton.noreply@github.com |
3a6ccd4f7a0edffa6f93e9687c076417d0a1b0d7 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/__hooks__.py | 85e30235b7cb2d5c0d2088433d93d3f9f0f6c835 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | RELOADER_ENABLED = False
__enable_gc_callback = True
import gc
try:
import _profile
except:
__enable_gc_callback = False
def system_init(gameplay):
import sims4.importer
sims4.importer.enable()
print('Server Startup')
if __enable_gc_callback:
gc.callbacks.append(_profile.notify... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.