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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a1045f155f346fcd6be4db7820ecffde97a490b | eef285b8c4530a7dc1187e08292bf246e3732915 | /chat_project/chat_backend/chat_backend/user/admin.py | 24c2b5b4d4948b6624de91964a94edf55e80a494 | [] | no_license | wlgud0402/making_projects | 32ba45817e48c3d21b174c823177d96af10d9a20 | 6d86d09c61eb70339423f33d6e42ca0cdff391a6 | refs/heads/master | 2023-03-21T09:45:25.600251 | 2021-03-22T13:02:26 | 2021-03-22T13:02:26 | 338,810,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib import admin
from .models import User
# Register your models here.
# admin.site.register(User)
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
list_display = ('email', 'nickname', 'user_type', 'room_id', 'created_at',)
| [
"wlgudrlgus@naver.com"
] | wlgudrlgus@naver.com |
a81fb81b960fc04f18e1042929aa6c944cfb1007 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/networkx/algorithms/flow/capacityscaling.py | 9a6a5c7270f10e7645babe83c8286a14cb73b66f | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0ba80a661465f023b9da7444cd18a123358f4112509665b5d25721a9fb176ec0
size 14535
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
03c5e284066da9d303f45f391c6d39151fb59a4b | 6be2b9c3a7dcc95ed04ce8a5af912014833b769a | /app/main/views.py | 7bd0437c264b1feb1213cb896371a4b80751cd1f | [
"MIT"
] | permissive | MaryMbugua/Newshighlighttwo | 05219428c9e568122cb59f7a2ea90b758edf8c76 | 143fd75b7c0e36a48e25240ff150d10781c77470 | refs/heads/master | 2020-03-08T19:47:28.086076 | 2018-04-23T08:50:25 | 2018-04-23T08:50:25 | 128,363,872 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | from flask import render_template,request,redirect,url_for
from . import main
from ..requests import get_sources,get_articles
from ..models import Newsarticle,Newssources
#views
@main.route('/')
def index():
'''
view root page function that returns the index page and its data
'''
title = 'Home - Welco... | [
"marymbugua.nm@gmail.com"
] | marymbugua.nm@gmail.com |
576e761485b9b3fbcdc1ce8d9b9405d34e242c90 | a1ad2715e306fd4e7eaeda5348e00e1a363e7884 | /leetcode/concepts.py/houserobber2.py | d7ea4c294868b76061a7f6960164e761560f91cc | [] | no_license | MayankMaheshwar/DS-and-Algo-solving | cef54a800b3e8a070a707f97b4f30fccaa17d5c6 | ac6ea8f880920242a55d40c747368d68cb6f7534 | refs/heads/master | 2022-12-07T07:55:08.380505 | 2022-12-05T09:32:14 | 2022-12-05T09:32:14 | 237,103,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | def robberse(self, nums):
def simple_rob(nums, i, j):
rob, not_rob = 0, 0
for idx in range(i, j):
num = nums[idx]
rob, not_rob = not_rob + num, max(rob, not_rob)
return max(rob, not_rob)
if not nums:
return 0
elif len(nums) == 1:
retu... | [
"mayank.maheshwari625@gmail.com"
] | mayank.maheshwari625@gmail.com |
196a8d28085738fdda38ea2f078b8fb542ec2300 | 189c99816118ac6334fb65f1ef611c71eb756ead | /0x08-python-more_classes/6-rectangle.py | 76a2c927a7745e18c819895c16ccb3f69c5e9f0f | [] | no_license | MadmanSilver/holbertonschool-higher_level_programming | 4d51e308636ccc37271869dd830f700d8201948e | 09e47b319d9bd674519b13263a74822198d5932c | refs/heads/master | 2022-12-18T23:40:37.862157 | 2020-09-25T02:41:01 | 2020-09-25T02:41:01 | 259,349,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | #!/usr/bin/python3
""" Contains the Rectangle class. """
class Rectangle:
""" Defines a rectangle. """
number_of_instances = 0
def __init__(self, width=0, height=0):
""" Sets up the rectangle instance. """
self.width = width
self.height = height
Rectangle.number_of_instan... | [
"silverwolf4350@gmail.com"
] | silverwolf4350@gmail.com |
181a25b998b188559a7c17997e8ce525d68a3cf4 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fv/aeppconfissues.py | c23c2662a913b2fdb31f332c39cb53a959687641 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 6,453 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
97208d08e04cecb91c78591585387c2390b581fd | 90333a3140dc20036ad1ae88aaeec4b72a93914b | /tensorflow/example04.py | 8c309c32db68466a1c8c20d8d572042450f9d5a6 | [] | no_license | jw0831/AI-Study | 1f026acbc46a5f133921efc3c07d233ec1e8e284 | 02a2bd7469691facc5b6b283aa5edb8e90841456 | refs/heads/master | 2023-05-12T13:05:55.499517 | 2021-06-13T14:32:19 | 2021-06-13T14:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | #(4) example04
#import tensorflow and numpy
import tensorflow as tf
import numpy as np
#[feather, wing]
x_data = np.array(
[[0, 0], [1, 0], [1, 1], [0, 0], [0, 0], [0, 1]])
#[etc, mammal, bird]
#one-hot encoding(label)
y_data = np.array([
[1, 0, 0], #etc
[0, 1, 0], #mammal
[0, 0, 1], #bird
[1, ... | [
"wodbs9522@gmail.com"
] | wodbs9522@gmail.com |
daf6a6648337c20c1e3b7fc6492df080328c9231 | 32e55bf28b9f22265bcbc1d8c0ebf52a3608187d | /303. Range Sum Query - Immutable.py | 0c4562b35da42903720903add0d94136f25c38aa | [] | no_license | Garacc/LeetCode | 9f843672a18701d032f36769c9025761199d8caf | 215d12703b2cac4c1ad49d5a0e1060948fbbacd2 | refs/heads/master | 2018-10-10T03:37:48.889898 | 2018-09-17T08:38:22 | 2018-09-17T08:38:22 | 120,304,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | class NumArray:
'''
def __init__(self, nums):
"""
:type nums: List[int]
"""
self.nums = nums
def sumRange(self, i, j):
"""
:type i: int
:type j: int
:rtype: int
"""
ans = 0
for idx in range(i, j + 1):
ans +=... | [
"xgyxmxl@163.com"
] | xgyxmxl@163.com |
8c567d804437e17644ed5f3c11c0cd3e47b52c03 | 56b63ee537f872af0fc028016d1508b4c1dd5c60 | /school/migrations/0284_auto_20210507_1155.py | e0f316d5d0463336216b57b0e361ecb8d4b458c7 | [] | no_license | jacknjillsolutionsrevanth/EMS1 | 01fc571120f765b0fbfe3aa654b15ff578d6e9b9 | db14d8e6c15669b5938aa9276c5e22006218814a | refs/heads/main | 2023-08-03T19:40:50.073133 | 2021-10-01T07:02:37 | 2021-10-01T07:02:37 | 410,202,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | # Generated by Django 3.1.2 on 2021-05-07 06:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0283_auto_20210430_1342'),
]
operations = [
migrations.AddField(
model_name='rpt_consolidatedreport',
name... | [
"jacknjillsolutions.revanth@gmail.com"
] | jacknjillsolutions.revanth@gmail.com |
e9d7a998d87c612243828fe66e6007202c86f686 | 0b40232eb2395c27353c892ef4ccb5c604bb75be | /Hash Table/Find_the_difference.py | 7428e82614a50c081c15dbd870c2e3841fab9f12 | [] | no_license | HareshNasit/LeetCode | 971ae9dd5e4f0feeafa5bb3bcf5b7fa0a514d54d | 674728af189aa8951a3fcb355b290f5666b1465c | refs/heads/master | 2021-06-18T07:37:40.121698 | 2021-02-12T12:30:18 | 2021-02-12T12:30:18 | 168,089,751 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | def findTheDifference(self, s, t):
"""
:type s: str
:type t: str
:rtype: str
"""
map_s = collections.defaultdict(int)
for i in s:
map_s[i] += 1 #Automatically adds any missing value to the dictionary.
for j in t:
map_s[j] -= 1
... | [
"harsh.nasit@mail.utoronto.ca"
] | harsh.nasit@mail.utoronto.ca |
b04e5ea723f86e59d1873259177661d9672e62f6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/advanced/050_make_pybites_search_engine_feedparser/save4_nopass.py | 8dbd7f2c13334bb8bd7ec12ff179a1105f74a635 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 5,865 | py | from datetime import datetime
from collections import namedtuple
from time import mktime
from feedparser import parse
import re
import xml.etree.ElementTree as ET
# FEED = 'https://bites-data.s3.us-east-2.amazonaws.com/all.rss.xml'
Entry = namedtuple('Entry', 'date title link tags')
class AttrDict(dict):
"""fe... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
5516c3e347802f4b350ee2dbcccabaeb477b3a74 | 9447fc5874b2edbc5d50d97d1415459d7c0a9a23 | /env/bin/rstpep2html.py | 80e9bd3423e0ff556c539c40519718befa2fd10f | [] | no_license | ivan-podorozhnyi-tr/flask_zappa | b9d11976a2b5d1a315258984ffde6199b4013576 | aba4c482d90ceb5161010e4e4edb9b63feb00735 | refs/heads/master | 2022-11-02T04:11:20.531599 | 2019-10-10T10:31:03 | 2019-10-10T10:31:03 | 214,153,564 | 0 | 1 | null | 2022-10-10T20:02:44 | 2019-10-10T10:28:49 | Python | UTF-8 | Python | false | false | 701 | py | #!/home/ivan/projects/flask_zappa/env/bin/python3
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python Enhancement Proposa... | [
"you@example.com"
] | you@example.com |
1ecb741be63c3d4f4cf27a1f9a5077afa206c9e7 | 587bd3458aadb1f06bd576aab46a7d294d6a0ee2 | /session47.py | cba6a34daa4a8c2c7d7d7bcde7ea6d8900069b81 | [] | no_license | Shimpa11/PythonTutorial | 913635dbbd1f8ed6e2331614040a4f76d22ebacf | 5e5dfe003e5ccf84d4e9754d3192e43009c20c56 | refs/heads/master | 2020-12-13T16:48:12.093667 | 2020-05-08T12:21:27 | 2020-05-08T12:21:27 | 234,344,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | """
overfitting and underfitting->regression line does not fit
# predicted values
# good fit / robust fit
# DT limitations
# computationally expensive to train
# carry big risk if overfitting
ENSEMBLE LEARNING
Supervised learning where no of models are combined for prediction
BOOSTING->grp of algos that utilizes wei... | [
"er.shimpa@gmail.com"
] | er.shimpa@gmail.com |
fd673bb693206262ce291422603e04587290cc7c | 5686d1a31b87a47a4774270c00cd141c221cf065 | /axonius_api_client/api/json_api/assets/history_dates_human.py | 35f27f8e20051c05403c10b6c37ebc27af60b4a1 | [
"MIT"
] | permissive | Axonius/axonius_api_client | e7eec0845eee9e1b314446121551c584655c2631 | be49566e590834df1b46494c8588651fa029b8c5 | refs/heads/master | 2023-08-19T04:43:13.717989 | 2023-08-10T18:49:40 | 2023-08-10T18:49:40 | 194,601,817 | 17 | 22 | MIT | 2023-08-30T18:45:15 | 2019-07-01T04:52:21 | Python | UTF-8 | Python | false | false | 7,266 | py | # -*- coding: utf-8 -*-
"""Models for API requests & responses."""
import dataclasses
import datetime
import logging
import typing as t
from ....exceptions import ApiError
from ....tools import coerce_int, dt_now, dt_parse
from ..base import BaseModel
LOGGER = logging.getLogger(__name__)
@dataclasses.dataclass
clas... | [
"jim@axonius.com"
] | jim@axonius.com |
4d9e7f2b00593771459ae1d452b172e575e963f1 | 4a2c9299dfd009a614934ee82910adaa17ff3186 | /app/tasks/models.py | 75bc9c44588e8100eca8370379fc0d70e88d4cfe | [
"MIT"
] | permissive | sampathweb/blueprint_app | be8ab9c5bd956bc393b61542158c325ad27fffed | 149225db4291519a6de56d8930e3a36ff9cd7888 | refs/heads/master | 2016-09-06T08:30:25.918934 | 2013-10-24T22:48:52 | 2013-10-24T22:48:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from datetime import datetime
from app import db
class Task(db.Model):
"""A Task list."""
__tablename__ = 'tasks'
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(50), unique=True, nullable=False)
description = db.Column(db.String(255))
active = db.Column(db.Boolean, de... | [
"ramesh@sampathweb.com"
] | ramesh@sampathweb.com |
7cf821bf15a32a637688390b90127482667b71d9 | fe6eaa2f3656dedcb2c1e937cc1363d19a0d3ec1 | /leetcode_python/231.power-of-two.py | 6c402eec05c33366e999760635c0f1d508c79f71 | [] | no_license | toyijiu/my_code | 4619ac6bc06c5032e01d5c215dbae516bbc4fe77 | dd163cc47e2c706504aba1d42322167fb93dd9e9 | refs/heads/master | 2020-08-31T14:49:18.188393 | 2019-11-27T08:57:55 | 2019-11-27T08:57:55 | 218,714,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | #
# @lc app=leetcode id=231 lang=python3
#
# [231] Power of Two
#
# https://leetcode.com/problems/power-of-two/description/
#
# algorithms
# Easy (41.63%)
# Total Accepted: 213.5K
# Total Submissions: 512.8K
# Testcase Example: '1'
#
# Given an integer, write a function to determine if it is a power of two.
#
# Ex... | [
"309378714@qq.com"
] | 309378714@qq.com |
7d31cb5286fe189f97049fbbe823e25ef89ce2d5 | 7a596dc0e121054fe5f05fae6c78774a57cf94ac | /setup.py | c6a683babc0762c4c1be30bfcd7d184061c327bb | [
"MIT"
] | permissive | nhoffman/swarmwrapper | 8fffae5ed5824313f054fd7edb1ed2d3897b9c02 | b62f955f843c76c4696320e2b2a14ce2b80e1807 | refs/heads/master | 2021-01-17T07:20:15.826516 | 2018-03-14T18:21:32 | 2018-03-14T18:21:32 | 42,473,732 | 3 | 1 | null | 2016-06-07T18:33:22 | 2015-09-14T20:00:11 | Python | UTF-8 | Python | false | false | 1,038 | py | import os
import subprocess
from setuptools import setup, find_packages
subprocess.call(
('mkdir -p swarmwrapper/data && '
'git describe --tags --dirty > swarmwrapper/data/ver.tmp'
'&& mv swarmwrapper/data/ver.tmp swarmwrapper/data/ver '
'|| rm -f swarmwrapper/data/ver.tmp'),
shell=True, stderr=... | [
"noah.hoffman@gmail.com"
] | noah.hoffman@gmail.com |
f6b85844ae241476a94fc75c33793cf360b02aa6 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/batch_set_objects_response.py | 1e18f86df848790e44e33d3a24e185439a9fa96c | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class BatchSetObjectsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
556cc3314b023aaab5a462d23db49fc1d46593c8 | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /MyCircularQueue.py | cc36333e54e793ae307e426135a9c5b28f28d8dd | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | class Node:
def __init__(self, val):
self.val = val
self.next = None
class MyCircularQueue:
def __init__(self, k: int):
self.size = k
self.front = Node(-1)
p = self.front
for i in range(k):
p.next = Node(-1)
p = p.next
p.next = s... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
0d9157411e4013eb8d23e1592693f64f4d2340c9 | 282e6905cbcdc7795f5bd145f5310d4eef4d199d | /Dog Walking/Python-Solution.py | a3e0fd05d8058ce6172de8cfe0c2f836dd633d76 | [] | no_license | Lizonghang/IEEEX | d9e41d7ba00dc73706afe4ae8aca9dae2d10ee37 | 8e5998820f9e0ba600e1b3f0366981f30e391ae1 | refs/heads/master | 2021-07-15T00:37:39.099411 | 2017-10-17T09:42:24 | 2017-10-17T09:42:24 | 105,604,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
T = input()
for t in xrange(T):
N, K = map(int, raw_input().strip().split())
w = []
for i in xrange(N):
w.append(int(input()))
w.sort()
d = []
for i in xrange(1, N):
d.append(w[i] - w[i - 1])
d.sort()
print sum(d[:N-K]) | [
"870644199@qq.com"
] | 870644199@qq.com |
862c4269fd260804df4f1319bae80e4d6604e0b0 | d48ddc1e4c4b1e379ed1c1971c84aa3c104edff2 | /pymachinetalk/application/constants.py | 1ab9e927720c09d627c62449d2566163a69b1225 | [
"MIT"
] | permissive | machinekit/pymachinetalk | 1b66e472f364c2d3fe6206823d6a50e41effce9e | be4bffd011ea76039407f043553552b8a0b69f2d | refs/heads/master | 2021-01-12T19:19:52.051968 | 2020-09-22T19:40:52 | 2020-09-22T19:40:52 | 44,979,021 | 6 | 7 | MIT | 2020-09-22T19:40:54 | 2015-10-26T15:47:57 | Python | UTF-8 | Python | false | false | 1,505 | py | # coding=utf-8
# protobuf
import machinetalk.protobuf.types_pb2 as types
import machinetalk.protobuf.motcmds_pb2 as motcmds
# noinspection PyUnresolvedReferences
from machinetalk.protobuf.status_pb2 import *
ORIGIN_G54 = types.ORIGIN_G54
ORIGIN_G55 = types.ORIGIN_G55
ORIGIN_G56 = types.ORIGIN_G56
ORIGIN_G57 = types.... | [
"mail@roessler.systems"
] | mail@roessler.systems |
ca7dc3b58354ec5f7b8177aa40ae4f2f1c8c1694 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Internet/Web/dev/PyMailCGI_2.1/cgi-bin/onEditPageSend.py | aaeda84076959bbddb4003c8c1a90814ed51323b | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | #!/usr/bin/python
###############################################################
# On submit in edit window--finish a write, reply, or forward;
# in 2.0, we reuse the send tools in mailtools to construct
# and send the message, instead of older manual string scheme;
# we also now inherit attachment composition from th... | [
"zui"
] | zui |
cf48693e97cb38f9ccb91a41e55b51a294037776 | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_ZYCJ/ZX_CJXW_ZYCJ_BQW_YW.py | ba8ecd5014776a7fa8dbfac0a2059a57780b2dab | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_CJXW_ZYCJ_BQW_YW", mongo_collection="ZX_CJXW_ZYCJ")
data_list = main_mongo.main()
for data in data_list:
re_data = data_s... | [
"499413642@qq.com"
] | 499413642@qq.com |
599b2f6f2bda0dc8ed7f1276ca0b9a3c34c3d5df | 200a7e17f51f7a2b959e6b0313b76effd9edb2ea | /image_classification/valid_resnet152.py | 2f26314780c2291382dd4996d630e4bf1bb0bec8 | [
"Apache-2.0",
"MIT"
] | permissive | ZhiangChen/tornado_ML | 43f243c0e8371830a104afa5b177deebfc14440d | d8bded61a6a234ca67e31776bc8576c6c18f5621 | refs/heads/main | 2023-04-29T04:40:05.850645 | 2021-05-20T04:50:32 | 2021-05-20T04:50:32 | 358,980,904 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,370 | py | """
training.py
Zhiang Chen, April 2020
"""
import torch
import torch.utils.data
import torchvision.datasets
import torch.nn as nn
import torchvision.transforms as transforms
from utils import *
import torchvision.models as models
from data import EurekaDataset
import os
model_names = sorted(name for name in models._... | [
"zxc251@case.edu"
] | zxc251@case.edu |
71f6171f7aaed83d059577c3d31fc17bf81f12e2 | 2a4a17a67b9069c19396c0f8eabc8b7c4b6ff703 | /BGP3D/Chapter10/Examples/InputManagerClass_01.py | 692c2663e7045b2d047b6e25f1ff8cc495719df4 | [] | no_license | kaz101/panda-book | 0fa273cc2df5849507ecc949b4dde626241ffa5e | 859a759c769d9c2db0d11140b0d04506611c2b7b | refs/heads/master | 2022-12-19T09:36:05.794731 | 2020-09-16T19:04:10 | 2020-09-16T19:04:10 | 295,784,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,187 | py | ''' InputManager Class
The purpose of this class is to have an object
that will record user input and retain that
information for use by other classes.
'''
from direct.showbase.DirectObject import DirectObject
from pandac.PandaModules import *
class InputManager(DirectObject):
def __init__(self):
self.... | [
"kaz101130@gmail.com"
] | kaz101130@gmail.com |
c6a4ab92e7015536946f440f0ffb7bc101b5570f | 214230d0796377be0bfdda286c2c389b92a19555 | /Codegate/2022 Quals/nft/monitor.py | 4922b3db2a6b542e3d5b30e586133eea5016c4fd | [
"Unlicense"
] | permissive | Qwaz/solved-hacking-problem | fa5ebfeb98ec979cf57dac1470a651199f2dc50d | cda0db4888322cce759a7362de88fff5cc79f599 | refs/heads/master | 2023-08-24T03:45:12.481496 | 2023-07-16T12:38:08 | 2023-07-16T12:38:08 | 49,208,719 | 100 | 28 | null | 2022-03-24T00:51:04 | 2016-01-07T14:18:18 | HTML | UTF-8 | Python | false | false | 604 | py | import json
import time
from account import *
from web3 import Web3
url = "http://13.124.97.208:8545"
provider = Web3(Web3.HTTPProvider(url))
with open("abi.json") as f:
nft_abi = json.load(f)
nft = provider.eth.contract(TARGET_ADDRESS, abi=nft_abi)
while True:
print(
{
"Balance": prov... | [
"qwazpia@gmail.com"
] | qwazpia@gmail.com |
dceb561fd9b18dfb85b1c5185bbee23385340b30 | cd9e707df25dd641163c0f89f33bdbcaa4f11a0c | /app/launcher.py | 35b960fefa33b4f16d990cbfd903bb0ea5170691 | [] | no_license | depixusgenome/libanalysis | 80e50953d4fad1654091bbaf59f181803671a242 | 3565db8c0e42d62c1adee1d664846227499f1302 | refs/heads/master | 2020-09-24T08:40:10.498554 | 2019-11-29T13:03:31 | 2019-11-29T13:03:31 | 225,716,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,795 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"Updates app manager so as to deal with controllers"
from contextlib import closing
from typing import Dict, Any
import sys
import asyncio
import socket
import random
from tornado.platform.asyncio import AsyncIOMainLoop
from bokeh.application import Applic... | [
"pol.davezac@depixus.com"
] | pol.davezac@depixus.com |
150f246e7cffd52c4816f26c2ce92dcb16d63e69 | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /trapRainWater.py | 90bf3bb91de30cedf3d4da4078594bb04fe33a9b | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | from heapq import heappop, heappush
from typing import List
class Solution:
def trapRainWater(self, heightMap: List[List[int]]) -> int:
m = len(heightMap)
n = len(heightMap[0])
heap = []
water = [[12345678] * n for i in range(m)]
for i in range(m):
heappush(hea... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
9c767873c7d94a6b7c04e62f428978616df72b28 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/pinakighosh/state18.py | 8edcffd229b35ac73c3e1e4c249b99569bd7806f | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,650 | py | import scraperwiki
import mechanize # added by Usha
import re # added by Usha
import lxml.html
url="http://censusindia.gov.in/Census_Data_2001/Village_Directory/List_of_Villages/List_of_Villages_Alphabetical.aspx?cki=&State_Code=18"
import string
#create list of upper case alphabets
l=list(string.ascii_uppercase)
#crea... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
20786461b76ff1f1326b20fb8848a9ae5e46f159 | 007e187c7d91702fc900b75f771a2470e1c091e1 | /tests/test_docker.py | 28b67c058bb792d1b640d3f6bcd6e4c2eb60caf8 | [] | no_license | bibi21000/janitoo_raspberry_i2c_ht16k33 | bb3d05bdb395a29862c4e6bbb57c5e369aaca1e8 | 3dbb883cdc3439fd164edff21ffc0a0da7ee160f | refs/heads/master | 2021-01-21T04:42:30.553870 | 2018-01-01T23:43:29 | 2018-01-01T23:43:29 | 55,532,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | # -*- coding: utf-8 -*-
"""Unittests for Janitoo-common.
"""
__license__ = """
This file is part of Janitoo.
Janitoo 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, either version 3 of the Licens... | [
"bibi21000@gmail.com"
] | bibi21000@gmail.com |
ea84847a897152e526e739c1b328a0e72c02ca0e | 7fdac5209f86de756b9a8123a0911b70738eceeb | /pySDC/playgrounds/other/plots_overresolve_iter.py | 74944e603d1cf9c88e95f665c70286392dffcc72 | [
"BSD-2-Clause"
] | permissive | Parallel-in-Time/pySDC | edc66e399f6066effc5aaa376883e88e06b5332b | 1a51834bedffd4472e344bed28f4d766614b1537 | refs/heads/master | 2023-08-30T23:17:56.017934 | 2023-08-30T05:42:00 | 2023-08-30T05:42:00 | 26,165,004 | 30 | 31 | BSD-2-Clause | 2023-09-14T06:40:13 | 2014-11-04T10:56:53 | Jupyter Notebook | UTF-8 | Python | false | false | 2,099 | py | import pySDC.helpers.plot_helper as plt_helper
def beautify_plot(nprocs, fname):
plt_helper.plt.grid()
plt_helper.plt.legend(loc=2)
plt_helper.plt.xlabel('Number of parallel steps')
plt_helper.plt.ylabel('Theoretical speedup')
plt_helper.plt.xlim(0.9 * nprocs[0], 1.1 * nprocs[-1])
plt_helper.... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
76359312a5bbde79e5804a8ff7620d844d4189e4 | ebacefb163f31b3dd43f15ebdc91c5b76f6b703b | /lib/github/tasks.py | c6dd31a374dbbdae389ee01476928217efdc4fde | [
"MIT"
] | permissive | xyzlat/django-htk | a0180d3104c7e716cb07e075408acc14702abbc2 | 051256698ce7a593a8a9365c36ad9d265c6e0d80 | refs/heads/master | 2023-04-29T18:48:23.205203 | 2021-05-22T04:15:13 | 2021-05-22T04:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,373 | py | # HTK Imports
from htk.constants.time import (
BUSINESS_HOURS_START,
ISOWEEKDAY_WEEKDAYS,
MORNING_HOURS_END,
)
from htk.tasks import BaseTask
from htk.utils.text.transformers import get_symbols
# isort: off
class GitHubReminderTask(BaseTask):
def __init__(self):
from htk.lib.github.cachekeys... | [
"hello@jontsai.com"
] | hello@jontsai.com |
fcaccd3bf997e4178ad0a6a92d0e8fd872093ed1 | e838ea567fe5216bd83b72d5cc549363a666ac3d | /registry/serializers/data_category.py | 1513f6a2ef2eb029d60b448425a25df85bfe014e | [] | no_license | iuriramos/swim-registry | f7ffee9a57b92021e7066820249092d1558a944d | 7c71d294b5aa7cb40e01ed559e2fcb81d2e1f43a | refs/heads/master | 2021-09-13T20:22:29.624535 | 2018-05-03T21:30:26 | 2018-05-03T21:30:26 | 85,312,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from registry.models.data_category import DataCategory
from rest_framework import serializers, viewsets
class DataCategorySerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = DataCategory
fields = ('pk', 'name', )
class DataCategoryViewSet(viewsets.ModelViewSet):
queryset ... | [
"iuri.srb@gmail.com"
] | iuri.srb@gmail.com |
084e8d38f2a41afdbacc05279be12f974947234b | b72f9d9f0769265cdea2b8caff145af9c532ea09 | /rcl_contest_2020_final/a.py | 8f28af7d879a8f73eacf82b2b20564e09dc9ba94 | [] | no_license | ritzcr/AtCoder | 3335fefa8fb1989a0f9da80fe6d0902b46aa2d1f | 15097b0c2568ace653e5080d789047531e50edde | refs/heads/master | 2021-02-12T19:16:41.757421 | 2020-07-05T06:30:57 | 2020-07-05T06:30:57 | 244,620,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | N, M = map(int, input().split())
dice = [1, 2, 3, 4, 5, 6]
dice[0] = 6
output = " ".join(map(str, dice))
print(output)
for _ in range(M):
d, v, x = map(int, input().split())
dice[1] = 6
output = " ".join(map(str, dice))
print(output)
| [
"ritz@freex.ltd"
] | ritz@freex.ltd |
019d0099a757ba400b6c6c8ff733026d56b60154 | 79e5a3733b261f11cf13526460c39d3d722744dd | /strawberry/types/datetime.py | 7abbf73d51ab32343b67f6c505b81f80fa1f7cc7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yngvarsh/strawberry | 73cc0e0a862dc4796549f925ac167ec6768d5ade | 96b8c701caaa0510e7118928e9e3c00d4ef5a05c | refs/heads/master | 2020-12-11T13:13:57.579007 | 2020-01-15T11:50:17 | 2020-01-15T11:50:17 | 233,857,471 | 0 | 0 | MIT | 2020-01-14T14:17:58 | 2020-01-14T14:17:57 | null | UTF-8 | Python | false | false | 663 | py | import datetime
import aniso8601
from ..custom_scalar import scalar
def _serialize_isoformatted(value):
return value.isoformat()
Date = scalar(
datetime.date,
name="Date",
description="Date (isoformat)",
serialize=_serialize_isoformatted,
parse_value=aniso8601.parse_date,
)
DateTime = scal... | [
"patrick.arminio@gmail.com"
] | patrick.arminio@gmail.com |
bacb702adf0fd1d047d9ffe824ab720ad30d31ad | 2eaade99a8073faaf68c46eac48d8826b351fe17 | /main.py | 0ae913ee6b2c31ee876af199db61f9af08dd795d | [] | no_license | StevenMaharaj/traderv1 | 30ebb6f0242d986aace29ebc6e956bd78e68f02b | a1edab9722c2735302126d23ad1c9cd107152635 | refs/heads/main | 2023-07-22T21:56:37.266832 | 2021-09-08T05:34:50 | 2021-09-08T05:34:50 | 400,120,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | from executionHandlers.execution import ExecutionHandler
from queue import Queue
from threading import Thread
from dataHandlers.deribit import DeribitTOB
import sys
from event import Event, SignalEvent
from accountHandlers.deribit import DeribitOrder
from executionHandlers.deribit import DeribitExecutionHandler
from da... | [
"="
] | = |
0c82b151fa1b84f52808f5d9cba3874637a21ab4 | 7e0f0662faee84f49794fb342199a59e570d4d15 | /env/bin/mako-render | 480cddd311d240ca506dd3dfdd95adb94f717789 | [] | no_license | Samkanja/headline | 03cfed21a21d71e91d9e37edf821c5d3d1a432c4 | be792d6ac7e23ba04fbcacbfec84ea659ba67e32 | refs/heads/master | 2023-06-19T14:01:21.431839 | 2021-07-08T13:28:37 | 2021-07-08T13:28:37 | 380,808,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/home/kskanja/stuff/down/headline/env/bin/python3.9
# -*- coding: utf-8 -*-
import re
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"samuelkanja4@gmail.com"
] | samuelkanja4@gmail.com | |
848cbab84018f841b970a1feb2b51d070c619871 | 2afc3ec1dae42403c2b208a21045e402636ca336 | /models.py | 28fa465795448218958b3af0e1a68d65f42181c9 | [] | no_license | Jagadishbommareddy/myapp | 6a5227f33ff5093eaf38f93ce9d69341e9ae6024 | 972b245c0fd33a4242ba17d3562f3e30acb20771 | refs/heads/master | 2021-01-22T13:52:49.093137 | 2017-08-18T09:14:59 | 2017-08-18T09:14:59 | 100,020,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | from django.db import models
from .validators import *
class ContactInfo(models.Model):
mobile_no = models.CharField(max_length=15,validators=[validate_mobile_no])
phone_no = models.CharField(max_length=15, validators=[validate_phone_no])
email_id = models.EmailField(max_length=50)
class Address(mod... | [
"noreply@github.com"
] | Jagadishbommareddy.noreply@github.com |
e4eee8eb36da949a57ccfad7303d36932864ac6a | 496419c3802640fda626241b313d15499747c451 | /model_gravity_interactions.py | de84416634f6bd5a2ac930e9fbbc68dea580a9ac | [
"MIT"
] | permissive | simberaj/interactions | edf37bdf889f80e49032284621a2f0e38be99af8 | 8c7a29e97bc8f8d49901f6bdc406471f940c494e | refs/heads/master | 2021-01-17T13:13:14.414343 | 2016-05-28T12:13:29 | 2016-05-28T12:13:29 | 42,062,951 | 1 | 0 | null | 2015-09-22T14:24:35 | 2015-09-07T16:16:49 | Python | UTF-8 | Python | false | false | 2,739 | py | import arcpy, common, modeling, loaders
REPORT_TEMPLATE = u'''Interaction gravity modelling analysis
Input interactions: %s
Interaction selection query: %s
Origin mass field (m1): %s
Destination mass field (m2): %s
Interaction real strength field: %s
Interaction length field (d): %s
Output model strength field: %s
O... | [
"simbera.jan@gmail.com"
] | simbera.jan@gmail.com |
59dc9eb4875328342d35aa350be38f2fd480157f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02988/s646336284.py | b26f4503b3a987d425115b8af58ec10880ae0e19 | [] | 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 | 196 | py | n = int(input())
P = [int(i) for i in input().split()]
ans = 0
for i in range(1, n-1):
if P[i-1] < P[i] < P[i+1]:
ans += 1
elif P[i-1] > P[i] > P[i+1]:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3b3ca2bace9cc78bd6f70523ff06faf3a1e3b10e | 8d1264d9257eba418f92dbbbc8aac6773c4ec715 | /core/signals/handlers.py | fe560bf24bf5e2578f83b7ab830653fd8a1cdd46 | [
"MIT"
] | permissive | aldwyn/effigia | 5f3e9e37eb7d169983034b61c7455baedc2d8817 | eb456656949bf68934530bbec9c15ebc6d0236b8 | refs/heads/main | 2023-02-18T00:09:53.905711 | 2021-06-10T22:04:51 | 2021-06-10T22:04:51 | 96,387,903 | 1 | 1 | MIT | 2023-02-15T20:04:00 | 2017-07-06T04:21:09 | HTML | UTF-8 | Python | false | false | 1,259 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import factory
from django.contrib.auth import get_user_model
from django.core.files.base import ContentFile
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.utils.text import slugify
from core.models import... | [
"aldwyn.up@gmail.com"
] | aldwyn.up@gmail.com |
69758bba6726950a002212f930181c065e9e2d13 | 175e4e031471e5cdbc9bcaee2df10f5ec44871d3 | /LESSON2b/.history/test/webapitest/app_20200606195359.py | 714e72278231784e6b0e68430eaf0ccb9e8fd6b3 | [] | no_license | hiyacins/uma_study | c329d29a9c3899ab4feca21b9c47ef546b69b0bd | 067e66f258a0c89f7670c645dd7c40feee8536fa | refs/heads/master | 2023-01-23T06:40:12.435047 | 2020-06-17T15:59:34 | 2020-06-17T15:59:34 | 239,077,726 | 0 | 0 | null | 2023-01-06T08:36:26 | 2020-02-08T05:56:52 | Python | UTF-8 | Python | false | false | 714 | py | from flask import Flask, jsonify, request
import json
app = Flask(__name__)
number = []
# クライアント側からPostされてくる
@app.route('/incomes')
def get_incomes():
return jsonify(number)
# postされてきた情報を追加する。No Contentの場合のみ返す。
@app.route('/incomes', methods=['POST'])
def add_income():
number.append(request.get_json())
... | [
"hiyacins@gmail.com"
] | hiyacins@gmail.com |
779cddc46f1d979f1b14262ace1f13380aa72d7e | 88ae8695987ada722184307301e221e1ba3cc2fa | /native_client/tests/unittests/shared/platform/build.scons | bfeb276a5229c844b09fb3c0810f6fc5f369a80a | [
"BSD-3-Clause",
"Zlib",
"Classpath-exception-2.0",
"BSD-Source-Code",
"LZMA-exception",
"LicenseRef-scancode-unicode",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-intel-osl-1993",
"HPND-sell-var... | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 959 | scons | # -*- python -*-
# Copyright 2008 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
nacl_thread_create_joinable_test_exe = env.ComponentProgram(
'nacl_thread_create_joinable_test',
'nacl_thread_c... | [
"jengelh@inai.de"
] | jengelh@inai.de |
5d3905192683a5c50a7325311d5ace07612a462d | 14be8bcd7e66aad90b98d7c76a78fdb94c7c4f65 | /l06/class6.py | 7bbaa747c2aab0de8091ab7eb6f5675803a36373 | [] | no_license | alexbyz/HW070172 | f6231d7ccd0fb06a88db9bd6b0c718ed70ce62a2 | e0e4946f82ba71b4d3860c570fadb9cd96a6c9a1 | refs/heads/main | 2023-03-03T06:16:17.630740 | 2021-02-09T09:55:04 | 2021-02-09T09:55:04 | 305,626,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | import regex
recordIdealtype = {
"recodType": "recordType",
"citationKey": "citationKey",
"title": "title",
"author": "author",
"date": "date",
"location": "location"
}
def readFile(): #reads in the file
infile = input("inputfile: ")
infile = open(infile, "r", encoding="UTF-8")
... | [
"huber.alexander1993@gmail.com"
] | huber.alexander1993@gmail.com |
ebd10a0a4af3d11227b8cc8c42118b2079ceeef1 | 31f56a696a0a5ada4aa2d583f8b340201696b3c7 | /nabu/neuralnetworks/classifiers/__init__.py | 42fc49fb14a326860f2012974c7b5b9d567b6e93 | [
"MIT"
] | permissive | DavidKarlas/nabu | 6d7fcdcd46f97b8886382079d04251b6862203db | fb530cf617ff86fe8a249d4582dfe90a303da295 | refs/heads/master | 2020-12-30T13:29:38.735236 | 2017-04-28T14:50:57 | 2017-04-28T14:50:57 | 91,229,041 | 1 | 0 | null | 2017-05-14T08:09:03 | 2017-05-14T08:09:03 | null | UTF-8 | Python | false | false | 172 | py | '''@package classifiers
Contains the neural net classifiers (e.g. dnn) and their components
(e.g. layers)
'''
from . import activation, classifier, layer, asr, lm
| [
"vincent.renkens@esat.kuleuven.be"
] | vincent.renkens@esat.kuleuven.be |
73e5dbdc975e9d650c27382bce182c16f1722617 | a8f275638f6bab07644b6b6d2ff4a1eabc4a3b4b | /class-Animal.py | aba9a9201900ff4e823d33444234c6b42432f825 | [] | no_license | evamaina/OOP | 1bfd49706365f3d297f2383ffd995b2159ade283 | b1623cf76896c21a4ac49526070d8f4ebd3b90a8 | refs/heads/master | 2021-08-17T20:44:47.516263 | 2017-11-21T17:22:12 | 2017-11-21T17:22:12 | 107,859,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | """Inheritance provides a way to share functionality between classes.
This similarity can be expressed by making them all inherit from a superclass Animal,
which contains the shared functionality"""
class Animal:
def __init__(self, name, color):
self.name = name
self.color = color
class Cat(Animal):
def... | [
"evajohnson714@gmail.com"
] | evajohnson714@gmail.com |
f10d7333e8172120f845c6ba2d0052fc407fff29 | 2aa9432798d681a9a21535397bf3414d04bf014e | /test/loggingDemo.py | ec95bf2285c991a9c4e84eaa52b2932ef7680438 | [] | no_license | RaunakJalan/Selenium_Automation | babd426e9a12b3cfffe28a34af6486fcce57ce23 | 47d4faa275590b8f9c2d6922689275c13d3650c2 | refs/heads/master | 2023-03-14T14:42:40.308146 | 2021-03-09T16:29:16 | 2021-03-09T16:29:16 | 346,070,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import logging
logging.basicConfig(filename="test.log",
format='%(asctime)s: %(levelname)s: %(message)s',
datefmt="%m/%d/%Y %I:%M:%S %p"
)
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.debug("This is a debug message")
logger.info("This ... | [
"ronakjalan98@gmail.com"
] | ronakjalan98@gmail.com |
9eee040f0ac6b5d1d6039900ac3d403d046bf926 | cf7b827958166c8569eb58deb511cc3f07567741 | /in_Python_v2/1074 Number of Submatrices That Sum to Target.py | e3b4d58aa31bd7bded1a018b1d37e2c0dae32354 | [] | no_license | YangLiyli131/Leetcode2020 | e4e36eb36b1983f73b0e733455b4a7953dfebe6d | 20623defecf65cbc35b194d8b60d8b211816ee4f | refs/heads/master | 2023-08-22T06:00:55.924112 | 2021-09-18T19:04:15 | 2021-09-18T19:04:15 | 251,426,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from collections import defaultdict
class Solution(object):
def numSubmatrixSumTarget(self, matrix, target):
"""
:type matrix: List[List[int]]
:type target: int
:rtype: int
"""
row, col = len(matrix), len(matrix[0])
ps = [[0] * (col + 1) for _ in rang... | [
"noreply@github.com"
] | YangLiyli131.noreply@github.com |
7601d4d19e420178a28cc601c74ab7d5147f8d3c | a6a2997ecc7dd8406f4e190d357cba1d301489c3 | /users/admin.py | 531bc47e3dd64703dae1fc4ae821ee05804a0ffb | [] | no_license | Shatki/itreactor | de306bd0a06d9b498645eeb76e191cfa70cdca04 | a657ad7fb4a9051f9ab845539a7369fe0da17d26 | refs/heads/master | 2023-02-21T15:29:00.840747 | 2021-01-28T05:37:15 | 2021-01-28T05:37:15 | 317,347,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import Group
from .forms import UserCreationForm, UserChangeForm
from .models import User, Feedback
@admin.register(User)
class UserAdmin(BaseUser... | [
"Shatki@mail.ru"
] | Shatki@mail.ru |
a3de30095b503bfe0aca308080e3d8f013346b36 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/cirq/startCirq407.py | 4cd57412338a48432208219d046554ef403b1008 | [
"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,268 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=2
# total number=20
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
ddca45160dbe21af63be36d6a989d3787788a108 | 29145db13229d311269f317bf2819af6cba7d356 | /january circuits/equalSub.py | 379cf14defb37168832a4605de814de52080f970 | [] | no_license | rocket3989/hackerEarth2019 | 802d1ca6fd03e80657cbe07a3f123e087679af4d | 42c0a7005e52c3762496220136cc5c1ee93571bb | refs/heads/master | 2021-07-05T01:32:42.203964 | 2020-12-22T03:40:20 | 2020-12-22T03:40:20 | 211,607,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | N = int(input())
K = int(input())
A = [int(x) for x in input().split()]
maxOf = A[0]
l, r = 0, 1
sumEl = A[0]
maxLen = 1
while r < N + 1:
if sumEl + K < maxOf * (r - l):
sumEl -= A[l]
if A[l] == maxOf:
maxOf = max(A[l + 1:r])
l += 1
continue
maxLen ... | [
"rocket3989@gmail.com"
] | rocket3989@gmail.com |
198932798010531a6e5ee431ea85d0f3e5ca76b1 | c9642233f1de71f1a61ae28c695c2d9228825156 | /echecs_hall/app/views/mj_hall_api/good.py | 9ff47539c15f03ae8f000dca757f3e9985f69aac | [
"AFL-3.0"
] | permissive | obespoir/echecs | d8314cffa85c8dce316d40e3e713615e9b237648 | e4bb8be1d360b6c568725aee4dfe4c037a855a49 | refs/heads/master | 2022-12-11T04:04:40.021535 | 2020-03-29T06:58:25 | 2020-03-29T06:58:25 | 249,185,889 | 16 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | # coding=utf-8
from app.views.base_handler import BaseHandler
from app.controller.mj_hall_controller import good_controller
from app.controller.mj_hall_controller import login_hall_controller
import json
from . import mj_hall
from app.share.error_code import *
import time
from app.extensions.common import md5
from torn... | [
"jamonhe1990@gmail.com"
] | jamonhe1990@gmail.com |
a40038fb0b6957d262599096d21a59dd2890bc91 | e526543920e4974504cb62802c393d5bc46559db | /python-repos/python_repos.py | cddc2b416e8f6a10ff5f96a8cd45f8641eb00818 | [] | no_license | mare-astrorum/python-crash-course-practice | b843f2067208b749558c4423556498e643c5fa42 | 47423808902b75af9d7888d4f9fa9f083bce88f4 | refs/heads/master | 2020-09-06T19:02:09.837740 | 2019-11-08T17:30:52 | 2019-11-08T17:30:52 | 220,516,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import requests
import sys
import pygal
from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS
# Make an API call and store the response.
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
r = requests.get(url)
print("Status code:", r.status_code)
# Store API response in ... | [
"a@a.com"
] | a@a.com |
e017100cb679bf6f1ae3e8f315b984bb2e457cfb | 6375b7e4dfe11ced7dcd3fad1a7a2de9a504910d | /excel/xlutils_demo.py | d4506129814db5dc73782bc3726332f7f72f039b | [] | no_license | yaowenqiang/lpthw | b65e6b8ce576e7caa5cfba5570550e546d1e0549 | 4bbd7ebb4e8c570a39bf9c55df9bd97e4f86e1e5 | refs/heads/master | 2020-04-01T10:57:32.959389 | 2019-05-01T09:27:25 | 2019-05-01T09:27:25 | 153,140,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import xlwt
import xlrd
import xlutils
# 打开excel文件
workbook = xlrd.open_workbook("myexclee.xls")
worksheet = workbook.sheet_by_index(0)
data = worksheet.cell_value(0,0)
wb = xlwt.Workbook()
# 新建excel
wb = xlwt.Workbook()
sh = wb.add_sheet('Sheet1')
sh.write(0,0,'data')
wb.save('myexcel.xls')
| [
"yaowenqiang111@163.com"
] | yaowenqiang111@163.com |
0050e58aa4d71e43e495f50afeae7d51b46087dc | b457be31ac024f2a80ad553068544779d0680f48 | /dnawf/templates/clean_template.py | 5f1b01683a55986af6a84efe60413edbf363fd6e | [] | no_license | daxm/dnac-api-demo | 9ef0782b9d780aad7ece1112814dbe3a794d687c | dbf8432c84d9e47255b184310df69af48d1f1fee | refs/heads/master | 2022-11-03T14:42:26.021264 | 2020-06-16T20:00:32 | 2020-06-16T20:00:32 | 271,582,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | #!/usr/bin/env python
# -*- coding: utf-
import json
from argparse import ArgumentParser
import glob
import os
import pprint
def clean_template(template):
pprint.pprint(t)
# template.pop('id')
template.pop('createTime')
template.pop('lastUpdateTime')
template.pop('parentTemplateId')
templ... | [
"dmickels@cisco.com"
] | dmickels@cisco.com |
637b6f1e6ec46f1d584c268016837a63e14fff30 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/get_20200810155009.py | 13e9a436036562052c378984fa398589f08fdc7a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | def produce(num1,num2):
totalValue = 0
for i in range(abs(num1)):
totalValue +=abs(num2)
if num1 < 0 and num2 > 0:
str1 = str(totalValue)
newStr = "-"+ str1
return int(newStr)
elif num1 > 0 and num2 < 0:
str1 = str(totalValue)
newStr = ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
ac725be804118071e93d65cfe070174d556c8388 | bcc7011cb121e653d831e77206e541675e348337 | /Global_and_Local_Inversions.py | 17fc67eb30ac3008140d41569fefa9ea03994983 | [] | no_license | Built00/Leetcode | 2115c20bf91e9f9226ce952293132bc7a852fe86 | ec3c0d4bd368dd1039f0fed2a07bf89e645a89c3 | refs/heads/master | 2020-11-24T09:12:08.172973 | 2018-03-27T01:23:08 | 2018-03-27T01:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | # -*- encoding:utf-8 -*-
# __author__=='Gan'
# We have some permutation A of [0, 1, ..., N - 1], where N is the length of A.
# The number of (global) inversions is the number of i < j with 0 <= i < j < N and A[i] > A[j].
# The number of local inversions is the number of i with 0 <= i < N and A[i] > A[i+1].
# Return tr... | [
"binwengan@gmail.com"
] | binwengan@gmail.com |
c0e0ba14f5b0d6553e0ab8ea2c7ab3c584612b90 | b65c1f6000af4ddeb7280e7d93bf861fbf1964bc | /docs/conf.py | f738f1816dbe005da47a911e42eba2c58f773d96 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | EricSchles/calc | ef00aaddfec010321867a8287db0a565dbb7985e | eaa1ab227a5a07f5f4f7d2c64a278977cd43cb18 | refs/heads/develop | 2021-01-25T14:33:58.124300 | 2017-10-11T19:29:20 | 2017-10-11T19:29:20 | 72,668,485 | 1 | 0 | null | 2016-11-02T18:17:57 | 2016-11-02T18:17:57 | null | UTF-8 | Python | false | false | 5,864 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# CALC documentation build configuration file, created by
# sphinx-quickstart on Fri Feb 10 12:27:23 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
18b7044e434e0878ff4a74e4acebf367bfd3596e | 1ea36bc61aed79d9ae198350e221c8d6a7073b08 | /venv/Lib/site-packages/pip/_internal/resolution/resolvelib/requirements.py | 813792d12ff37cacd53a4186dfedd722b748684d | [] | no_license | RicardoAltamiranoSanchez/Proyecto_Tienda_virtual_API_7-Sunburts | f3f0b7f166520d3d91832ac13aa0686d7b5211d8 | 4c95220415277f8561740a8da78ef68ff576f1d6 | refs/heads/master | 2023-04-25T23:40:43.804848 | 2021-05-15T16:50:44 | 2021-05-15T16:50:44 | 324,892,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,180 | py | from pip._vendor.packaging.utils import canonicalize_name
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
from .base import Requirement, format_name
if MYPY_CHECK_RUNNING:
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._internal.req.req_install import InstallRequiremen... | [
"hacker@hacker.home"
] | hacker@hacker.home |
800e01d96d0377b922a3b2148405d4d37c964fa3 | 531caac957596fc623e534bce734ef6b45be0b07 | /tests/operators/vector/test_floor_001.py | 350c04c90cd1257905c6cfa67ca849dde2b97a12 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | wxyhv/akg | 02e64d81bbb84472e0bf1c57a691b688ea743d6e | fc9b6f5b6fa024da89bf90466a815359ca54015d | refs/heads/master | 2023-03-11T02:59:18.472826 | 2021-02-23T07:44:16 | 2021-02-23T07:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# 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... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
fadc77c7549de3d2eee4a4343e2f9d1d1c73a6b8 | 1bba82345900327ed1c128e8046dc91f90a0ccb5 | /tax_debts/apps.py | 0f0af72642fe3c3364064a1e06acab7be13c0dc7 | [
"MIT"
] | permissive | dchaplinsky/ragoogle | 40bd093682e41d1ee2a77f446c69d09e82bb3948 | dccb3d29334c3220ea12c46c725c443c8bd725c0 | refs/heads/master | 2021-06-11T10:07:41.142843 | 2020-10-12T10:30:39 | 2020-10-12T10:30:39 | 136,800,715 | 3 | 3 | MIT | 2021-03-19T23:20:02 | 2018-06-10T10:51:30 | CSS | UTF-8 | Python | false | false | 682 | py | from abstract.apps import AbstractConfig
from .loader import TaxDebtsLoader
from .elastic_models import ElasticTaxDebtsModel, tax_debts_idx
class TaxDebtsConfig(AbstractConfig):
name = "tax_debts"
verbose_name = "Податковий борг"
short_name = "ДФС"
loader_class = TaxDebtsLoader
@property
def... | [
"dchaplinsky@conversionscience.co.uk"
] | dchaplinsky@conversionscience.co.uk |
84e37ca82405d9435b0a64bdc32f81f785b186e4 | 5f9e0c226c6f99f04446d60cd21282e7e6b05d2c | /sequence.py | 4def0862fac63ace7d5d9b90c17358bee744d122 | [] | no_license | JONNY-ME/my-kattis-solution | 867ac267dbb5faa6f7c2af35b435498a22ae269d | 51c70e0fd25f1f369cdcd2ce49a54d5d0df2358e | refs/heads/main | 2023-06-17T20:04:04.701038 | 2021-07-16T09:35:35 | 2021-07-16T09:35:35 | 386,583,581 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from math import log, ceil
k = log(int(input()), 2)
if k == int(k):
k = int(k)+1
else:
k = ceil(k)
print(k)
for i in range(k):
print(2**i, end=' ')
print() | [
"yohannesmelese4@gmail.com"
] | yohannesmelese4@gmail.com |
653ca533eb3f53b29e27b7eb8e5b17df34a8b2eb | 6203105c774913bbb3dc7e2d9bb99f739d9d24fa | /discrete_autoencoder/layers/activation.py | 249418a2662f3838a89576ab80e8e36e9d2b2c95 | [] | no_license | bstriner/discrete_autoencoder | f5eae31e155b2c4c440c9fe89b060c3be61de888 | baca5d23964b08ff7e3062c07d74b0ff9a631e98 | refs/heads/master | 2021-07-23T02:12:36.405089 | 2017-11-03T09:37:02 | 2017-11-03T09:37:02 | 108,048,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from .layer import Layer
class ActivationLayer(Layer):
def __init__(self, activation=None):
self.activation = activation
params = []
non_trainable_weights = []
super(ActivationLayer, self).__init__(params=params, non_trainable_weights=non_trainable_weights)
def call(self, x):
... | [
"bstriner@gmail.com"
] | bstriner@gmail.com |
c03a75610d9c6359e5b0034a66cbf001dc6401f2 | 2c94c322b5e1f53e131f7d680bcd4413ff11a10b | /bubble_s_ascending.py | dd23b2b99c326a2660e536c4be43b9aee8db5ab4 | [] | no_license | Nehanavgurukul/list | 66996ad6f30183f8d6c758ab824fd5a7840ba4dd | e4aa2686c0f007477e147c733ac98708773570cb | refs/heads/main | 2023-01-11T23:38:15.450749 | 2020-10-29T16:10:29 | 2020-10-29T16:10:29 | 308,381,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | num=[23,50,56,20,11,70]
index=0
while(index<len(num)):
j=0
while(j<len(num)):
if(num[index]<num[j]):
tamp=num[index]
num[index]=num[j]
num[j]=tamp
j=j+1
index=index+1
print(num) | [
"nehay19@navgurukul.org"
] | nehay19@navgurukul.org |
2cb1b08ed78ba1f7af4b2d62d28e84f0291436db | b8498a35832f5d14bd15332a3dd2b93d64351448 | /fluent-python/15-context-mngr/else_block.py | adac5f3d0a2da378b4e488ca68369bc802379035 | [] | no_license | luzzyzhang/my-python-cookbook | 8b3daf4c4354a98ff305375c8a3a35551eee67e7 | 8d160f6d6d18b7a9801d433f6e3868d054432bde | refs/heads/master | 2021-09-06T20:25:39.026278 | 2018-02-11T04:22:13 | 2018-02-11T04:22:13 | 46,793,714 | 2 | 1 | null | 2017-06-17T13:57:26 | 2015-11-24T13:35:26 | Python | UTF-8 | Python | false | false | 527 | py | # -*- coding: utf-8 -*-
"""This is just demo code
"""
# for ... else ...
for item in my_list:
if item.flavor == 'bananas':
break
else:
raise ValueError('No banana flavor found')
try:
dangerous_call()
after_call()
except OSError:
log('OSError ...')
# VS
# For clarity and correctness, the... | [
"luzzyzhang@gmail.com"
] | luzzyzhang@gmail.com |
54691aec62e64eee0903528551d1bc0d23f22069 | 1b57d2f689903d9937f77e26be40784af2ff2669 | /view_helpers/home.py | f7682825ddec4cb03015fe1ee82b08065034f3d6 | [] | no_license | FMularski/passwordkeeper | b1ef31c04bcfa7f012f28852fd8ae1f33efeff98 | 5859fbef89a3f80b27d52fd124971180e12e4fef | refs/heads/main | 2023-07-16T21:09:34.938196 | 2021-09-06T21:05:01 | 2021-09-06T21:05:01 | 347,174,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | def encode_password(password, pin):
pin_sum = 0
for char in pin:
pin_sum += ord(char)
encoded = ''
for char in password:
encoded += chr(ord(char) + pin_sum)
return encoded
def decode_password(encoded, pin):
pin_sum = 0
for char in pin:
pin_sum += ord(char)
d... | [
"mularskif@gmail.com"
] | mularskif@gmail.com |
9459f7c0aa601f412b8a975d03fa86c2914ac96c | 797761aeb37a8de4288696875f1a3c6c0eff3824 | /mlfromscratch/unsupervised_learning/partitioning_around_medoids.py | 6fdab2470e836fd1065b261519fafc06d73dad7f | [
"MIT"
] | permissive | kauziishere/ML-From-Scratch | 27df8a6565e964309d25729fe373746845b57b6b | a5040b84102fc2259b925d7337e7ff87080b6e5f | refs/heads/master | 2021-05-14T17:06:48.691808 | 2017-08-30T09:27:19 | 2017-08-30T09:27:19 | 116,040,355 | 1 | 1 | null | 2018-01-02T17:38:06 | 2018-01-02T17:31:24 | Python | UTF-8 | Python | false | false | 5,357 | py | import sys
import os
import math
import random
from sklearn import datasets
import numpy as np
# Import helper functions
from mlfromscratch.utils.data_manipulation import normalize
from mlfromscratch.utils.data_operation import euclidean_distance
from mlfromscratch.unsupervised_learning import PCA
from mlfromscratch.u... | [
"eriklindernoren@live.se"
] | eriklindernoren@live.se |
aeedf79574fb645c330f2c9285caa73a7e7cc84a | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200703_python1/day18_py200830/if_ex_2_b.py | 86d87ce269e727558d85bff7d25188b797e7433c | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | """
ex 2.
write a program to find the smallest number among 3 given numbers
"""
a = 24
b = 15
c = 6
d = 78
max = a
# 1st round
if max < a:
max = a
# 2nd round
if max < b:
max = b
# 3rd round
if max < c:
max = c
# 4th round
if max < d:
max = d
print("The max number is {}".format(max))
#
num1 = ... | [
"lada314@gmail.com"
] | lada314@gmail.com |
e5a530fc5cf0c4e945782e013924a8ad746bce15 | 933376c11498a6567da8d7eb7d2675100895c3ba | /pyzoo/zoo/chronos/examples/auto_model/autoprophet_nyc_taxi.py | db4282b6e4d0bc5f4e012b570aa603848f11ebcc | [
"Apache-2.0"
] | permissive | intel-analytics/analytics-zoo | 320a461765f86d41dd456b598b1cf1d51d57f4c4 | 7cc3e2849057d6429d03b1af0db13caae57960a5 | refs/heads/master | 2023-08-13T20:47:58.621714 | 2023-07-06T00:49:11 | 2023-07-06T00:49:11 | 90,328,920 | 3,104 | 996 | Apache-2.0 | 2023-09-06T01:51:18 | 2017-05-05T02:27:30 | Jupyter Notebook | UTF-8 | Python | false | false | 3,730 | py | #
# Copyright 2018 Analytics Zoo 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... | [
"noreply@github.com"
] | intel-analytics.noreply@github.com |
a0a3b9b675a2be13b66e294e41e133e675115ea0 | a424742e3e784c33625bf29295483469d2a8962a | /eval.py | 0056f8bcb5514f1b0642a7c179a71a5194665ab7 | [] | no_license | eeyrw/PyTorch_YOLOv2 | 82b3b8bf6c9562a43367f7cfcbdea8954c685dd5 | 4ccf8fb8a61d484e70af611f021013fe53133178 | refs/heads/main | 2023-04-27T03:20:27.680365 | 2021-05-20T12:28:14 | 2021-05-20T12:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,541 | py | import torch
import torch.nn as nn
from data import *
import argparse
from utils.vocapi_evaluator import VOCAPIEvaluator
from utils.cocoapi_evaluator import COCOAPIEvaluator
parser = argparse.ArgumentParser(description='YOLOv2 Detector Evaluation')
parser.add_argument('-v', '--version', default='yolov2',
... | [
"1394571815@qq.com"
] | 1394571815@qq.com |
1572e5579606a9957144da853c20f0c8c39c58bf | 520fcbe076fb1e04187512ddd33802b5c30b2f1a | /blender/nodes/converter/seratate_vector.py | 2fd1c13aae88a4b65d1eb496d93390704478ad49 | [
"MIT"
] | permissive | LewisOrton/taichi_elements_houdini | c604fa85c662369ee3db94224c5e0166482b0512 | 50ef3232f080030213bcb7578a48d03647a9445b | refs/heads/master | 2022-04-24T08:11:42.173539 | 2020-04-25T08:12:29 | 2020-04-25T08:12:29 | 259,212,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | from .. import base
def get_out_value_x(socket):
node = socket.node
vectors = node.inputs['Vector'].get_value()
x = node.outputs['X']
# scene
scn = bpy.context.scene
key = '{0}.{1}'.format(node.name, x.name)
res = []
for vector in vectors:
res.append(vector[0])
scn.elements... | [
"stalkermodkytia@yandex.ru"
] | stalkermodkytia@yandex.ru |
eed3afbb97e48fae80a14a977c246d46fc89030a | 0c469c4100fe9d352e83731688e388062a3c55c7 | /Binary_Search/374. Guess Number Higher or Lower.py | 48760947821ff471c3bde8720687f3f3cb131280 | [] | no_license | asperaa/back_to_grind | 9e055c7e6561384e5b7ae52f01063e4beb34a298 | 5ea1976b9d5c6d04800e296e45e8ff90fdde5001 | refs/heads/master | 2022-12-16T18:32:01.443743 | 2020-09-05T13:29:39 | 2020-09-05T13:29:39 | 254,910,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | """We are the captains of our ships, and we stay 'till the end. We see our stories through.
"""
"""374. Guess Number Higher or Lower
"""
def guess(num):
pass
class Solution:
def guessNumber(self, n):
left, right = 0, n
while left <= right:
mid = left + (right - left) // 2
... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
2d8f1205dd887ce96442a59c6b67c95c73400344 | 70b5c70d67dfed37c0317c605821c747516a3b13 | /browser/sarafi/views.py | 618372a1c7abb02e788df944d7bf05c7d9389ac6 | [] | no_license | jaxman020/browser | ff153106ba12d0e74daa6cec388e283914e1cd41 | fff8dff28a6437f8bde739e2bd91f86ad767d1e6 | refs/heads/master | 2021-01-10T10:36:12.154569 | 2015-12-15T16:18:09 | 2015-12-15T16:18:09 | 47,606,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from django.shortcuts import render
def sarafi(request):
context = {'message':'Django 很棒'}
return render(request, 'sarafi/sarafi.html', context) | [
"m516@m516"
] | m516@m516 |
32874edb86c1dd5846853da3cc4de69aabcc9f6a | 8d24ade82e14cca109da4b535ba08e77dc29b6ae | /Ex_DSA/ex_cap3a.py | c1ff816913f8375be3c5855f59dba0fe857c9953 | [
"MIT"
] | permissive | LuanGermano/DSAexercicios | 882f6ece355723d101cd5a7b1a39db58857ffa14 | 2de12be75fda2d113f302e8f1272e00e2d8622af | refs/heads/main | 2023-07-23T12:43:13.898367 | 2021-08-30T01:42:04 | 2021-08-30T01:42:04 | 397,451,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,943 | py | # Exercício 1 - Crie uma estrutura que pergunte ao usuário qual o dia da semana. Se o dia for igual a Domingo ou
# igual a sábado, imprima na tela "Hoje é dia de descanso", caso contrário imprima na tela "Você precisa trabalhar!"
"""
dia = str(input("Qual dia da semana é hoje? ")).lower()
if dia == "sabado" or dia == "... | [
"88220713+LuanGermano@users.noreply.github.com"
] | 88220713+LuanGermano@users.noreply.github.com |
53782ebdaec5105beb96a0ea327db79cdcb20e31 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/MinWindow_20200713232140.py | da9aae373aa9bf562d26a1905143fca258c24897 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | # pseducode
# "ADOBECODEBANC"
# "ABC"
# if n(string) is less than k then return false
# have a left and right pointer where both start from the begining and right increases the window size and left reduces the window size
# make a dictionart for the char in k and the count of unique char in k
def small(n,k):
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
81c14dc95fe92cb71fd3ab3323a7d30f3c721564 | 45d6b7739ef7e61779d778b16e2d2cb9b92a08c0 | /test/run_in_parallel-200PU-grow/submit-49.py | dc64b6143eac91b619db28129379d724ba08a4f9 | [] | no_license | isobelojalvo/phase2L1TauAnalyzer | 40b545baec97bf287a8d8ab26bea70546bf9f6f8 | 98ef6d31a523698ba0de48763cadee1d5b2ce695 | refs/heads/master | 2021-01-22T08:38:17.965156 | 2019-07-25T17:25:51 | 2019-07-25T17:25:51 | 92,623,686 | 0 | 1 | null | 2019-07-23T19:43:55 | 2017-05-27T20:56:25 | Python | UTF-8 | Python | false | false | 302 | py |
process.source.secondaryFileNames = cms.untracked.vstring(
"/store/relval/CMSSW_9_3_7/RelValZTT_14TeV/GEN-SIM-DIGI-RAW/PU25ns_93X_upgrade2023_realistic_v5_2023D17PU200-v1/10000/6E64C932-2E2D-E811-86D5-0242AC130002.root")
process.source.lumisToProcess = cms.untracked.VLuminosityBlockRange("1:24")
| [
"ojalvo@wisc.edu"
] | ojalvo@wisc.edu |
809dbdaf35c9f1d9c579f7c054c3957ee204aa1e | 4e163aa4aa0f4c4ddc22f74ae21b6fb1c85a7a09 | /238. 除自身以外数组的乘积.py | 2e458c88617acdbc6d2816c027b1d9510b858e13 | [] | no_license | dxc19951001/Everyday_LeetCode | 72f46a0ec2fc651168129720ad0b1e7b5c372b0b | 3f7b2ea959308eb80f4c65be35aaeed666570f80 | refs/heads/master | 2023-08-03T09:22:08.467100 | 2023-07-23T17:08:27 | 2023-07-23T17:08:27 | 270,723,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | class Solution(object):
def productExceptSelf_0(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
# 核心思想:
# 用两层for循环可以轻松解决,时间复杂度为n^2,不符合题目要求
# 核心:利用列表切片,每次循环将不参与计算的数组剔除
output= [0] * len(nums)
for i in range(len(n... | [
"870200615@qq.com"
] | 870200615@qq.com |
6d48f45d6eb3ac4fe3fe69c45bf0ec4b44276d16 | 176f2533c07323f3eccb13d576092c32c46428fc | /game/game.py | 46f57da139764cbc2db7162a1541d4ddad3ab89f | [] | no_license | viciu/pyconpl-2014 | 3fbe382c5376cc54ca448efaca2777e6d242c607 | 4539ab8135c56cfbb2428c456ca182a86a2f46c9 | refs/heads/master | 2021-01-17T20:59:36.882412 | 2014-10-18T08:52:16 | 2014-10-18T08:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | import random
APPLES = ['X', 'O']
ORANGE = '.'
GRAPEFRUIT = ORANGE * 9
RAISINS = [
[0, 1, 2],
[3, 4, 5],
[6, 7, 8],
[0, 3, 6],
[1, 4, 7],
[2, 5, 8],
[0, 4, 8],
[2, 4, 6]
]
def play():
banana = GRAPEFRUIT
melon = None
coconut(banana)
for plum in range(9):
prun... | [
"peter.inglesby@gmail.com"
] | peter.inglesby@gmail.com |
9c49e21e8fccfbd0b43c02b5ef63fdc32eccfdd4 | 9b7291d81a416bde2ec181229601eb2e33c7b8b2 | /monophoton/spikes/collect.py | d0cf880677d760340d04e54dfd7cde2976bd94cd | [] | no_license | MiT-HEP/MonoX | ab1528e72dad2590a0ae64f1a1d47195139e1749 | 224ee01107a94cedf8563c497edb2f326b99d9b1 | refs/heads/master | 2021-01-24T06:04:16.645559 | 2019-11-15T09:18:40 | 2019-11-15T09:18:40 | 41,823,403 | 1 | 9 | null | 2018-07-19T17:05:30 | 2015-09-02T19:33:33 | Python | UTF-8 | Python | false | false | 3,528 | py | import os
import sys
import re
import math
import array
thisdir = os.path.dirname(os.path.realpath(__file__))
basedir = os.path.dirname(thisdir)
sys.path.append(basedir)
import config
import utils
from datasets import allsamples
import ROOT
arun = array.array('I', [0])
alumi = array.array('I', [0])
aevent = array.ar... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
463dcc5b3f6bd9f93ff40fc5eea5cc0d69680a9e | 83a637ff77108f2582397c4ca4b2e7953ef4e137 | /categorical_embedder/processors/DiscriminativeWrapper.py | 09dac41aa0d8882e5556a2fbe6f7a17d8590bdee | [
"Apache-2.0"
] | permissive | erelcan/categorical-embedder | 066e0e279826f27aae0e927744d745bd724ba340 | 376b8779500af2aa459c879f8e525f2ef25d6b31 | refs/heads/master | 2023-02-03T01:44:01.896677 | 2020-12-19T10:51:11 | 2020-12-19T10:51:11 | 322,824,753 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | from categorical_embedder.processors.ProcessorABC import ProcessorABC
class DiscriminativeWrapper(ProcessorABC):
def __init__(self, feature_processor, label_processor):
super().__init__()
self._feature_processor = feature_processor
self._label_processor = label_processor
def process(s... | [
"erelcan89@gmail.com"
] | erelcan89@gmail.com |
0ffcd09026f2a8b1327d97c4bfc0ae63dcfbf8bf | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst_tags/optimized_8006.py | 92f04b4eb65847eae8c1440af4a4a0c165c44645 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,845 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
b2dcbad518e02a363f8d5ba7c30bfe5a7c22ce1e | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/30-sets2_20200413211158.py | 368c37538e1350070bdbcc7b3a0b51dc8b9c681f | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | # methods
my_set = { 342, 23, 1, 2, 3, 9, 10, 9 }
your_set = [ 342, 23, 42, 46, 53, 34, 10 ]
print(my_set)
#output {1, 2, 3, 9}
print(my_set.difference(your_set))
#output {1, 2, 3, 9, 342, 23}
my_set.discard(10)
print(my_set)
#output {1, 2, 3, 9, 342, 23}
my_set.intersection(your_set)
print(my_set)
#output {1,... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
26591cf0c6446d0ec56368b1f6e560280d10c616 | c01a58ecd6614128e3c29a70e3e768b220a2a4a2 | /common/xrd-ui-tests-python/helpers/mockrunner.py | 76c1f651e438d70bb1f13223c5d66af078e33553 | [
"MIT"
] | permissive | nordic-institute/X-Road-tests | 772a6d7485606c1f10b61a1260b8fb66111bf0be | e030661a0ad8ceab74dd8122b751e88025a3474a | refs/heads/develop | 2021-06-03T01:38:20.542859 | 2019-03-18T12:16:18 | 2019-03-18T12:16:18 | 125,643,677 | 2 | 3 | MIT | 2018-06-14T15:09:21 | 2018-03-17T15:36:32 | Python | UTF-8 | Python | false | false | 4,103 | py | from helpers import ssh_client
import re
import time
class MockRunner:
'''
Class that tries to control the mock service script (SoapUI MockRunner) over an SSH connection. Uses
ssh_helper.SSHClient component.
Connects to SSH server, sends a one-liner command and then waits until a specified ... | [
"mardu@varuosakeskus.ee"
] | mardu@varuosakeskus.ee |
1b994a2be95d50152c5761e91816f512f0cd103d | 1676168244eed1c5610b2c1c38f692f89990b112 | /part4-ML/from_1021_Django/django_movie_second/movies/urls.py | a7004f938653e54f8ea8c49830a0f6a92dc15b22 | [] | no_license | gtpgg1013/AI_docs | 351e83f986d66224c82fff2de944753c98336d03 | 43f8eed8b2732314bd40ed65e1d7eb44dd28fc04 | refs/heads/master | 2022-12-09T17:32:02.992554 | 2019-11-20T09:03:56 | 2019-11-20T09:03:56 | 182,927,565 | 1 | 0 | null | 2022-12-08T06:50:23 | 2019-04-23T03:54:56 | Jupyter Notebook | UTF-8 | Python | false | false | 533 | py | from django.urls import path
from . import views
app_name = 'movies'
urlpatterns = [
path('', views.index, name="index"),
path('new/', views.new, name="new"),
path('<int:movie_pk>/', views.detail, name="detail"),
path('<int:movie_pk>/edit/', views.edit, name="edit"),
path('<int:movie_pk>/delete/',... | [
"gtpgg1013@gmail.com"
] | gtpgg1013@gmail.com |
6063ac49e1b928783643b11ac36053dbf051478d | 2c1429a1bd2d0477fd88119d4d778fc68c82adcf | /python/DeepSeaSceneLighting/SceneShadowManagerPrepare.py | f17117f268680fdab051407968ae346b70024422 | [
"Apache-2.0"
] | permissive | akb825/DeepSea | d7ac54f6d8243d43d6ea538159f3067ab7e79880 | 5a909b4f51717bc59682e51ad6aa598a25a9b965 | refs/heads/master | 2023-08-31T23:45:19.533393 | 2023-08-29T07:30:36 | 2023-08-29T07:30:43 | 142,716,767 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: DeepSeaSceneLighting
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class SceneShadowManagerPrepare(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
... | [
"akb825@gmail.com"
] | akb825@gmail.com |
abdafe161112ab293d182ea37b60e0b2175203e4 | 1eaa6c2500868d0c60b5b2cd552cd671b635de32 | /Algorithm/sword of offer/2.替换空格.py | d830f7aee41e3cd0884252602f7cb3b806b7c3bc | [] | no_license | jiangyuwei666/my-study-demo | f85f14a599c328addb5af09078d404f1139e0a82 | 9e2baef2f36f071f8903768adb8d5a5a8c1123f6 | refs/heads/master | 2022-04-30T16:47:24.715570 | 2022-03-24T09:08:43 | 2022-03-24T09:08:43 | 152,565,041 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | def solution_by_py(s):
s = s.replace(' ', '%20')
return s
def solution_by_py1(s):
s = s.split(' ')
s = '%20'.join(s)
return s
# def solution_by_re(s):
#
print(solution_by_py('a b c'))
print(solution_by_py1('a b c'))
| [
"739843128@qq.com"
] | 739843128@qq.com |
382ea429b816b3ca6a1ce86c23964238e697ed53 | 5796cdc0bf59ed09e1493804bd86e982daf73f7f | /python/interp.py | d5bb30cfd8ef1975b51b3ba3c6504a05101289a1 | [] | no_license | pgDora56/BrainfxckInterpreter | ec67113b4480a8b328fde126932ac1061f2999d0 | c3544922e4422633d869266b5a9035d87806c92c | refs/heads/master | 2020-09-20T06:36:23.508956 | 2019-12-09T08:13:05 | 2019-12-09T08:13:05 | 224,401,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import sys
ptr = 0
memory = [0]
readcnt = 0
whilemark = []
if len(sys.argv) == 2:
fname = sys.argv[1]
with open(fname) as f:
program = f.read()
while readcnt < len(program):
c = program[readcnt]
if c == ">":
if ptr < 1000000:
ptr += 1
... | [
"doradora.prog@gmail.com"
] | doradora.prog@gmail.com |
f94f3789185b61d958643300f7e8cde8600bad3e | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_23037.py | 3bd2a710d8fe38850715610ce1eaa8fd6bce9240 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # create dictionary based on filter in sqlalchemy
by_name = {g.name: g.users for g in Group.query.options(db.joinedload(Group.users))}
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
658baaf3e894c98deb60ec089ad7d2c063bd3ff8 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/humanfriendly/humanfriendly/tables.pyi | 0b324b1f32331119ff29d6ec1a91025a38402f4f | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 304 | pyi | from typing import Any
def format_smart_table(data, column_names): ...
def format_pretty_table(data, column_names: Any | None = ..., horizontal_bar: str = ..., vertical_bar: str = ...): ...
def format_robust_table(data, column_names): ...
def format_rst_table(data, column_names: Any | None = ...): ...
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
068979971645c1203a8ee605549bd08a140f44c8 | 2d8a3a9b15e76bacd24e1627a124f0f60a83b253 | /sfepy/terms/terms_new.py | a3b8b1b2718a856c97abc55b196a36c84c25a6e7 | [
"BSD-3-Clause"
] | permissive | cheon7886/sfepy | 2722ae15bb52cdf20bac264771c32b1b051bb2ae | 2e9eb78341f9072ad07424221a64306c95c5ebd1 | refs/heads/master | 2021-01-19T19:33:11.938856 | 2015-03-29T08:56:35 | 2015-03-29T08:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,892 | py | """
todo:
- get row variable, col variable (if diff_var)
- determine out shape
- set current group to all variable arguments
- loop over row/col dofs:
- call term
? how to deal with components of (vector) variables?
(*) for given group, Variable has to be able to:
- evaluate value in quadr... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
1ae492172aa438a72336aba09bcd68fe23e03941 | b90190cd97f1aa2a3168d3f25ce6832a1c22d1b2 | /Code/models/arena/arena.py | 0cb906374edd997cd4c0ec9067f3c7282035faab | [] | no_license | stjordanis/Decentralized-and-multi-agent-control-of-Franka-Emika-Panda-robot-in-continuous-task-execution | 7c002cd4dea95b1a1256172c6d8d38c6226199f9 | c2b27e7f8059e3c29c876b60656f6a20d55e5da2 | refs/heads/main | 2023-07-31T20:47:24.476564 | 2021-10-01T08:44:19 | 2021-10-01T08:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import numpy as np
from models.base import MujocoXML
from utils.mjcf_utils import array_to_string, string_to_array
class Arena(MujocoXML):
"""Base arena class."""
def set_origin(self, offset):
"""Applies a constant offset to all objects."""
offset = np.array(offset)
for node in self.w... | [
"noreply@github.com"
] | stjordanis.noreply@github.com |
699ff99fdcca12765962e862f59dd227a46dd7b7 | edf7fc01b731c1d17324a1acd095bac93c3537ef | /test/test_sampling.py | ea93e3e3d7755398f50c401a7758c01032c10eae | [
"BSD-3-Clause"
] | permissive | bernardotorres/profiling | f6d3d8a764c75ce6bb3478deb562c8160d9bad04 | 8763a5d11c4ebd06b5a90bdced0a01aaadf02687 | refs/heads/master | 2020-04-01T16:45:40.985548 | 2018-10-18T06:53:41 | 2018-10-18T06:53:41 | 153,396,990 | 0 | 0 | BSD-3-Clause | 2018-10-17T04:49:31 | 2018-10-17T04:49:31 | null | UTF-8 | Python | false | false | 2,752 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import signal
import sys
import pytest
from _utils import find_stats, spin
from profiling.sampling import SamplingProfiler
from profiling.sampling.samplers import ItimerSampler, TracingSampler
def spin_100ms():
spin(0.1)
def spin_500ms():
... | [
"sub@subl.ee"
] | sub@subl.ee |
94a491393853c4e7890846273a17e6a7fd0545c2 | 422ce4dad362cd9a1112965e6c5df17d13fe2287 | /econom_game/teams/migrations/0012_auto_20180830_1921.py | fa4b37689379a6dbbb2ad4f08fb70b61f95351cc | [] | no_license | zzaakiirr/econom_game | 22bfc7f8b009ab4e6366a912df731f5a234da506 | 56f0ca2e29e17b18cc7ec5248e66066bb061bc19 | refs/heads/master | 2020-03-16T15:05:21.872872 | 2018-09-06T11:10:08 | 2018-09-06T11:10:08 | 132,727,278 | 3 | 2 | null | 2018-08-30T22:32:43 | 2018-05-09T08:38:26 | Python | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-08-30 19:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teams', '0011_auto_20180829_1251'),
]
operations = [
migrations.AlterField(... | [
"zzaakiirr@gmail.com"
] | zzaakiirr@gmail.com |
de13a9ae414154f6bec5b36554ab9c6650cf7929 | d93159d0784fc489a5066d3ee592e6c9563b228b | /Validation/RecoParticleFlow/Benchmarks/Tools/submit.py | 87e493ec5ff2edf11475e492be5dbb1190793c81 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 2,014 | py | #!/usr/bin/env python
# to submit a benchmark webpage to the validation website
# author: Colin
import shutil, sys, os, valtools
from optparse import OptionParser
parser = OptionParser()
parser.usage = "usage: %prog"
parser.add_option("-e", "--extension", dest="extension",
help="adds an ext... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
4b0ad8b0dbc902231fb8f660ff4c04d461fd7e54 | bb6e80f7deff48a720d04850d9b4fd2bb379e14d | /ExpEYES17/UserManual/fr/rst/exp/prettyLaTeX.py | ae038f27591a7cd40285480463f4fb97f8fcf025 | [] | no_license | EduCodeBe/expeyes-programs | 6a04881c4c2c4a198999baf57802508985ad8a06 | 2464866382155ed4c951962be4313fdcfe73dcec | refs/heads/master | 2020-03-22T15:21:29.519546 | 2018-07-08T17:21:32 | 2018-07-08T17:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | #!/usr/bin/python3
import os, sys, re
def filterSVG(t,verbose=False):
"""
remove .svg in image names, replace by .pdf
"""
if verbose:
sys.stderr.write("replacing .svg extensions by .pdf for included graphics\n")
return re.sub(r"\.svg", ".pdf", t)
def filterPNG(t,verbose=False):
"""
... | [
"georgesk@debian.org"
] | georgesk@debian.org |
03c83a59017b89259eefe545f24d5e0bce961cf1 | 9e85747a446175575533485593054834971cd372 | /colegio/educa/migrations/0003_auto_20200620_1553.py | d394ddec856dac48584594ac20e8286dd0d25f87 | [] | no_license | JTorero/Colegios | 63337038c1b67cc8dcf419a5d35d89b9342ec6b0 | e0403d0cd3ea8ebfbe8f0d7804270eb398c8e560 | refs/heads/master | 2022-11-09T02:12:03.604676 | 2020-06-22T03:58:55 | 2020-06-22T03:58:55 | 273,765,254 | 0 | 2 | null | 2020-06-22T03:58:56 | 2020-06-20T18:43:14 | Python | UTF-8 | Python | false | false | 1,190 | py | # Generated by Django 2.2.7 on 2020-06-20 20:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('educa', '0002_alumno'),
]
operations = [
migrations.CreateModel(
name='Periodo',
fi... | [
"mail@mail.com"
] | mail@mail.com |
367414398a374e2ad96f456f195a778d28ec7824 | 40c4b0c31a5870a9201d3d42a63c5547092e5912 | /frappe/website/doctype/personal_data_download_request/test_personal_data_download_request.py | 71e269f0700206e2de4862dc22964e0a0d24b531 | [
"MIT"
] | permissive | ektai/frappe3 | fab138cdbe15bab8214cf623d9eb461e9b9fb1cd | 44aa948b4d5a0d729eacfb3dabdc9c8894ae1799 | refs/heads/master | 2022-12-25T15:48:36.926197 | 2020-10-07T09:19:20 | 2020-10-07T09:19:20 | 301,951,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
import json
from frappe.website.doctype.personal_data_download_request.personal_data_download_request import get_user_data
from frappe.contacts.doct... | [
"63931935+ektai@users.noreply.github.com"
] | 63931935+ektai@users.noreply.github.com |
c5a1c49864b92fb6c4dcd7ee138f89563b247dae | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/license/consumedtask.py | 755a8455d7a73d4dbda910708d94f6333059703c | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 5,767 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
6ba1c6858b83940c3599f01f612860955bfeecd0 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/311.py | ad8d0ddb3393ecd74fb6c04b5ba6a331d199648b | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 270 | py | from collections import Counter
def word_count(words):
wordCount = Counter()
for word in words.split():
word = ''.join(ch for ch in word if ch.isalnum()).lower()
if not word:
continue
wordCount[word] += 1
return wordCount
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
fa89c2b5471eefbf222f8142835081003be7ccbb | 610942849a2fac0b229af569c0c3db001d87eb94 | /utest/libdoc/test_libdoc_api.py | de2ea0957c9f96a0f21a95212f20f403dd24236e | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | jnhyperion/robotframework | a6befd1c2d50d08b7c625a73228b43c04769ca3d | 559eb744c26f6acf11eb2d3a11be8343532c9a90 | refs/heads/master | 2023-01-27T12:50:41.962755 | 2022-08-24T08:33:03 | 2022-08-24T08:33:03 | 273,444,398 | 1 | 0 | Apache-2.0 | 2023-01-13T08:09:17 | 2020-06-19T08:30:13 | Python | UTF-8 | Python | false | false | 1,388 | py | from io import StringIO
import sys
import tempfile
import unittest
from robot import libdoc
from robot.utils.asserts import assert_equal
class TestLibdoc(unittest.TestCase):
def setUp(self):
sys.stdout = StringIO()
def tearDown(self):
sys.stdout = sys.__stdout__
def test_html(self):
... | [
"peke@iki.fi"
] | peke@iki.fi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.